Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

experimental: Add animation ranges (#5133)

Ivan Starkovf6d859c245ec
diff --git a/apps/builder/app/builder/features/settings-panel/props-section/animation/animation-panel-content.tsx b/apps/builder/app/builder/features/settings-panel/props-section/animation/animation-panel-content.tsx
index 7e30e18ab6..0aa3a9f4d5 100644
--- a/apps/builder/app/builder/features/settings-panel/props-section/animation/animation-panel-content.tsx
+++ b/apps/builder/app/builder/features/settings-panel/props-section/animation/animation-panel-content.tsx
@@ -1,15 +1,15 @@
import { useState, type ReactNode } from "react";
import {
Box,
- EnhancedTooltip,
Grid,
InputField,
Label,
ScrollArea,
Select,
- SmallToggleButton,
theme,
toast,
+ ToggleGroup,
+ ToggleGroupButton,
} from "@webstudio-is/design-system";
import { keywordValues } from "@webstudio-is/css-data";
import { useIds } from "~/shared/form-utils";
@@ -38,8 +38,30 @@ import {
} from "@webstudio-is/css-engine";
import { Keyframes } from "./animation-keyframes";
import { humanizeString } from "~/shared/string-utils";
-import { Link2Icon, Link2UnlinkedIcon } from "@webstudio-is/icons";
+
+import {
+ EllipsesIcon,
+ RangeContain50Icon,
+ RangeContainIcon,
+ RangeCoverIcon,
+} from "@webstudio-is/icons";
import { $availableUnitVariables } from "~/builder/features/style-panel/shared/model";
+import isEqual from "fast-deep-equal";
+
+const RotateIcon180 = ({ children }: { children: React.ReactNode }) => {
+ return (
+ <Box
+ css={{
+ transform: "rotate(180deg)",
+ display: "flex",
+ alignItems: "center",
+ justifyContent: "center",
+ }}
+ >
+ {children}
+ </Box>
+ );
+};
const fillModeDescriptions: Record<
NonNullable<ViewAnimation["timing"]["fill"]>,
@@ -305,36 +327,126 @@ const PanelContainer = ({ children }: { children: ReactNode }) => {
);
};
+const simplifiedRanges = [
+ [
+ "cover 0%",
+ <RangeCoverIcon />,
+ ["cover", { type: "unit", unit: "%", value: 0 }],
+ ],
+ [
+ "contain 0%",
+ <RangeContainIcon />,
+ ["contain", { type: "unit", unit: "%", value: 0 }],
+ ],
+ [
+ "contain 50%",
+ <RangeContain50Icon />,
+ ["contain", { type: "unit", unit: "%", value: 50 }],
+ ],
+
+ [
+ "contain 100%",
+ <RotateIcon180>
+ <RangeContainIcon />
+ </RotateIcon180>,
+ ["contain", { type: "unit", unit: "%", value: 100 }],
+ ],
+
+ [
+ "cover 100%",
+ <RotateIcon180>
+ <RangeCoverIcon />
+ </RotateIcon180>,
+ ["cover", { type: "unit", unit: "%", value: 100 }],
+ ],
+] as const;
+
+const simplifiedStartRanges = simplifiedRanges.slice(0, -1);
+const simplifiedEndRanges = simplifiedRanges.slice(1);
+
+const isRangeEqual = (
+ rangeA:
+ | Readonly<ViewAnimation["timing"]["rangeStart"]>
+ | Readonly<ScrollAnimation["timing"]["rangeStart"]>,
+ rangeB:
+ | Readonly<ViewAnimation["timing"]["rangeStart"]>
+ | Readonly<ScrollAnimation["timing"]["rangeStart"]>
+): boolean => {
+ if (isEqual(rangeA, rangeB)) {
+ return true;
+ }
+
+ if (rangeA === undefined || rangeB === undefined) {
+ return false;
+ }
+
+ const rangeAValue = `${rangeA[0]} ${toValue(rangeA[1])}`;
+ const rangeBValue = `${rangeB[0]} ${toValue(rangeB[1])}`;
+
+ const rangesMap = {
+ "entry 0%": "cover 0%",
+ "entry 100%": "contain 0%",
+ "exit 0%": "contain 100%",
+ "exit 100%": "cover 100%",
+ "cover 50%": "contain 50%",
+ };
+
+ return (
+ (rangesMap[rangeAValue as keyof typeof rangesMap] ?? rangeAValue) ===
+ (rangesMap[rangeBValue as keyof typeof rangesMap] ?? rangeBValue)
+ );
+};
+
export const AnimationPanelContent = ({
onChange,
value,
type,
}: AnimationPanelContentProps) => {
- const [isLinked, setIsLinked] = useState(
- value.timing.rangeStart?.[0] === value.timing.rangeEnd?.[0]
- );
-
const fieldIds = useIds([
- "rangeStartName",
- "rangeStartValue",
- "rangeEndName",
- "rangeEndValue",
"fill",
"easing",
"name",
"duration",
+ "rangeStartName",
+ "rangeStartValue",
+ "rangeEndName",
+ "rangeEndValue",
] as const);
+ const startRangeIndex = simplifiedStartRanges.findIndex(([, , range]) =>
+ isRangeEqual(range, value.timing.rangeStart)
+ );
+
+ const [startRangeValue] = simplifiedStartRanges.find(([, , range]) =>
+ isRangeEqual(range, value.timing.rangeStart)
+ ) ?? [undefined, undefined, undefined];
+
+ const endRangeIndex = simplifiedEndRanges.findIndex(([, , range]) =>
+ isRangeEqual(range, value.timing.rangeEnd)
+ );
+
+ const [endRangeValue] = simplifiedEndRanges.find(([, , range]) =>
+ isRangeEqual(range, value.timing.rangeEnd)
+ ) ?? [undefined, undefined, undefined];
+
+ const [isAdvancedRangeStart, setIsAdvancedRangeStart] = useState(
+ () => startRangeValue === undefined
+ );
+
+ const [isAdvancedRangeEnd, setIsAdvancedRangeEnd] = useState(
+ () => endRangeValue === undefined
+ );
+
const timelineRangeDescriptions =
type === "scroll" ? scrollTimelineRangeName : viewTimelineRangeName;
const timelineRangeNames = Object.keys(timelineRangeDescriptions);
+ const isRangeEndEnabled = value.timing.duration === undefined;
+
const animationSchema =
type === "scroll" ? scrollAnimationSchema : viewAnimationSchema;
- const isRangeEndEnabled = value.timing.duration === undefined;
-
const handleChange = (rawValue: unknown, isEphemeral: boolean) => {
if (rawValue === undefined) {
onChange(undefined, true);
@@ -384,16 +496,16 @@ export const AnimationPanelContent = ({
</Grid>
<Grid
- gap={1}
align={"center"}
css={{
- gridTemplateColumns: "1fr 16px 1fr",
+ columnGap: theme.spacing[6],
+ rowGap: theme.spacing[2],
+ gridTemplateColumns: "1fr 1fr",
paddingInline: theme.panel.paddingInline,
flexShrink: 0,
}}
>
<Label htmlFor={fieldIds.fill}>Fill Mode</Label>
- <div />
<Label htmlFor={fieldIds.easing}>Easing</Label>
<Select
@@ -444,7 +556,6 @@ export const AnimationPanelContent = ({
);
}}
/>
- <div />
<EasingInput
id={fieldIds.easing}
value={value.timing.easing}
@@ -467,284 +578,336 @@ export const AnimationPanelContent = ({
}}
/>
</Grid>
+
<Grid
gap={1}
- align={"center"}
css={{
- gridTemplateColumns: "1fr 16px 1fr",
paddingInline: theme.panel.paddingInline,
- flexShrink: 0,
}}
>
- <Label htmlFor={fieldIds.rangeStartName}>Range Start</Label>
- <div />
- <Label disabled={!isRangeEndEnabled} htmlFor={fieldIds.rangeEndName}>
- Range End
- </Label>
-
- <Select
- id={fieldIds.rangeStartName}
- options={timelineRangeNames}
- getLabel={humanizeString}
- value={value.timing.rangeStart?.[0] ?? timelineRangeNames[0]!}
- getDescription={(timelineRangeName: string) => (
- <Box
+ <Grid
+ css={{
+ gridTemplateColumns: "1.1fr 2fr",
+ }}
+ gap={2}
+ align={"center"}
+ >
+ <Label>Range End</Label>
+ <ToggleGroup
+ value={
+ isAdvancedRangeEnd ? "advanced" : (endRangeValue ?? "advanced")
+ }
+ type="single"
+ >
+ {simplifiedEndRanges.map(([toggleValue, icon, range], index) => (
+ <ToggleGroupButton
+ disabled={
+ !isRangeEndEnabled ||
+ (!isAdvancedRangeStart && index < startRangeIndex)
+ }
+ key={toggleValue}
+ value={toggleValue}
+ onClick={() => {
+ setIsAdvancedRangeEnd(false);
+ handleChange(
+ {
+ ...value,
+ timing: {
+ ...value.timing,
+ rangeStart: value.timing.rangeStart,
+ rangeEnd: range,
+ },
+ },
+ false
+ );
+ }}
+ >
+ {icon}
+ </ToggleGroupButton>
+ ))}
+
+ <ToggleGroupButton
+ disabled={!isRangeEndEnabled}
+ onClick={() => {
+ setIsAdvancedRangeEnd(true);
+ }}
+ value="advanced"
+ >
+ <EllipsesIcon />
+ </ToggleGroupButton>
+ </ToggleGroup>
+ {isAdvancedRangeEnd && (
+ <Grid
css={{
- width: theme.spacing[28],
+ gridColumn: "2 / -1",
+ gridTemplateColumns: "1.5fr 1fr",
}}
+ gap={2}
>
- {
- timelineRangeDescriptions[
- timelineRangeName as keyof typeof timelineRangeDescriptions
- ]
- }
- </Box>
+ <Select
+ id={fieldIds.rangeEndName}
+ disabled={!isRangeEndEnabled}
+ options={timelineRangeNames}
+ getLabel={humanizeString}
+ value={value.timing.rangeEnd?.[0] ?? timelineRangeNames[0]!}
+ getDescription={(timelineRangeName: string) => (
+ <Box
+ css={{
+ width: theme.spacing[28],
+ }}
+ >
+ {
+ timelineRangeDescriptions[
+ timelineRangeName as keyof typeof timelineRangeDescriptions
+ ]
+ }
+ </Box>
+ )}
+ onItemHighlight={(timelineRangeName) => {
+ if (timelineRangeName === undefined) {
+ handleChange(undefined, true);
+ return;
+ }
+ handleChange(
+ {
+ ...value,
+ timing: {
+ ...value.timing,
+ rangeEnd: [
+ timelineRangeName,
+ value.timing.rangeEnd?.[1] ?? defaultRangeEnd,
+ ],
+ rangeStart: value.timing.rangeStart,
+ },
+ },
+ true
+ );
+ }}
+ onChange={(timelineRangeName) => {
+ handleChange(
+ {
+ ...value,
+ timing: {
+ ...value.timing,
+ rangeEnd: [
+ timelineRangeName,
+ value.timing.rangeEnd?.[1] ?? defaultRangeEnd,
+ ],
+ rangeStart: value.timing.rangeStart,
+ },
+ },
+ false
+ );
+ }}
+ />
+
+ <RangeValueInput
+ id={fieldIds.rangeEndValue}
+ disabled={!isRangeEndEnabled}
+ value={
+ value.timing.rangeEnd?.[1] ?? {
+ type: "unit",
+ value: 0,
+ unit: "%",
+ }
+ }
+ onChange={(rangeEnd, isEphemeral) => {
+ if (rangeEnd === undefined && isEphemeral) {
+ handleChange(undefined, true);
+ return;
+ }
+
+ const defaultTimelineRangeName = timelineRangeNames[0]!;
+
+ handleChange(
+ {
+ ...value,
+ timing: {
+ ...value.timing,
+ rangeEnd: [
+ value.timing.rangeEnd?.[0] ??
+ defaultTimelineRangeName,
+ rangeEnd,
+ ],
+ },
+ },
+ isEphemeral
+ );
+ }}
+ />
+ </Grid>
)}
- onItemHighlight={(timelineRangeName) => {
- if (timelineRangeName === undefined) {
- handleChange(undefined, true);
- return;
- }
- handleChange(
- {
- ...value,
- timing: {
- ...value.timing,
- rangeStart: [
- timelineRangeName,
- value.timing.rangeStart?.[1] ?? defaultRangeStart,
- ],
- rangeEnd: isLinked
- ? [
- timelineRangeName,
- value.timing.rangeEnd?.[1] ?? defaultRangeEnd,
- ]
- : value.timing.rangeEnd,
- },
- },
- true
- );
- }}
- onChange={(timelineRangeName) => {
- handleChange(
- {
- ...value,
- timing: {
- ...value.timing,
- rangeStart: [
- timelineRangeName,
- value.timing.rangeStart?.[1] ?? defaultRangeStart,
- ],
- rangeEnd: isLinked
- ? [
- timelineRangeName,
- value.timing.rangeEnd?.[1] ?? defaultRangeEnd,
- ]
- : value.timing.rangeEnd,
- },
- },
- false
- );
- }}
- />
- <Grid>
- <EnhancedTooltip
- content={isLinked ? "Unlink range names" : "Link range names"}
+ <Label>Range Start</Label>
+
+ <ToggleGroup
+ value={
+ isAdvancedRangeStart
+ ? "advanced"
+ : (startRangeValue ?? "advanced")
+ }
+ type="single"
>
- <SmallToggleButton
- pressed={isLinked}
- onPressedChange={(pressed) => {
- setIsLinked(pressed);
- if (pressed) {
+ {simplifiedStartRanges.map(([toggleValue, icon, range], index) => (
+ <ToggleGroupButton
+ key={toggleValue}
+ value={toggleValue}
+ onClick={() => {
+ setIsAdvancedRangeStart(false);
handleChange(
{
...value,
timing: {
...value.timing,
- rangeEnd: pressed
- ? [
- value.timing.rangeStart?.[0] ?? "entry",
- value.timing.rangeEnd?.[1] ?? defaultRangeEnd,
- ]
- : value.timing.rangeEnd,
+ rangeStart: range,
+ rangeEnd:
+ endRangeIndex < index
+ ? simplifiedEndRanges[index][2]
+ : value.timing.rangeEnd,
},
},
false
);
- }
+ }}
+ >
+ {icon}
+ </ToggleGroupButton>
+ ))}
+
+ <ToggleGroupButton
+ onClick={() => {
+ setIsAdvancedRangeStart(true);
}}
- variant="normal"
- icon={isLinked ? <Link2Icon /> : <Link2UnlinkedIcon />}
- />
- </EnhancedTooltip>
- </Grid>
- <Select
- id={fieldIds.rangeEndName}
- disabled={!isRangeEndEnabled}
- options={timelineRangeNames}
- getLabel={humanizeString}
- value={value.timing.rangeEnd?.[0] ?? timelineRangeNames[0]!}
- getDescription={(timelineRangeName: string) => (
- <Box
+ value="advanced"
+ >
+ <EllipsesIcon />
+ </ToggleGroupButton>
+ </ToggleGroup>
+
+ {isAdvancedRangeStart && (
+ <Grid
css={{
- width: theme.spacing[28],
+ gridColumn: "2 / -1",
+ gridTemplateColumns: "1.5fr 1fr",
}}
+ gap={2}
>
- {
- timelineRangeDescriptions[
- timelineRangeName as keyof typeof timelineRangeDescriptions
- ]
- }
- </Box>
- )}
- onItemHighlight={(timelineRangeName) => {
- if (timelineRangeName === undefined) {
- handleChange(undefined, true);
- return;
- }
- handleChange(
- {
- ...value,
- timing: {
- ...value.timing,
- rangeEnd: [
- timelineRangeName,
- value.timing.rangeEnd?.[1] ?? defaultRangeEnd,
- ],
- rangeStart: isLinked
- ? [
- timelineRangeName,
- value.timing.rangeStart?.[1] ?? defaultRangeStart,
- ]
- : value.timing.rangeStart,
- },
- },
- true
- );
- }}
- onChange={(timelineRangeName) => {
- handleChange(
- {
- ...value,
- timing: {
- ...value.timing,
- rangeEnd: [
- timelineRangeName,
- value.timing.rangeEnd?.[1] ?? defaultRangeEnd,
- ],
- rangeStart: isLinked
- ? [
- timelineRangeName,
- value.timing.rangeStart?.[1] ?? defaultRangeStart,
+ <Select
+ id={fieldIds.rangeStartName}
+ options={timelineRangeNames}
+ getLabel={humanizeString}
+ value={value.timing.rangeStart?.[0] ?? timelineRangeNames[0]!}
+ getDescription={(timelineRangeName: string) => (
+ <Box
+ css={{
+ width: theme.spacing[28],
+ }}
+ >
+ {
+ timelineRangeDescriptions[
+ timelineRangeName as keyof typeof timelineRangeDescriptions
]
- : value.timing.rangeStart,
- },
- },
- false
- );
- }}
- />
-
- <RangeValueInput
- id={fieldIds.rangeStartValue}
- value={
- value.timing.rangeStart?.[1] ?? {
- type: "unit",
- value: 0,
- unit: "%",
- }
- }
- onChange={(rangeStart, isEphemeral) => {
- if (rangeStart === undefined && isEphemeral) {
- handleChange(undefined, true);
- return;
- }
+ }
+ </Box>
+ )}
+ onItemHighlight={(timelineRangeName) => {
+ if (timelineRangeName === undefined) {
+ handleChange(undefined, true);
+ return;
+ }
- const defaultTimelineRangeName = timelineRangeNames[0]!;
+ handleChange(
+ {
+ ...value,
+ timing: {
+ ...value.timing,
+ rangeStart: [
+ timelineRangeName,
+ value.timing.rangeStart?.[1] ?? defaultRangeStart,
+ ],
+ rangeEnd: value.timing.rangeEnd,
+ },
+ },
+ true
+ );
+ }}
+ onChange={(timelineRangeName) => {
+ handleChange(
+ {
+ ...value,
+ timing: {
+ ...value.timing,
+ rangeStart: [
+ timelineRangeName,
+ value.timing.rangeStart?.[1] ?? defaultRangeStart,
+ ],
+ rangeEnd: value.timing.rangeEnd,
+ },
+ },
+ false
+ );
+ }}
+ />
+ <RangeValueInput
+ id={fieldIds.rangeStartValue}
+ value={
+ value.timing.rangeStart?.[1] ?? {
+ type: "unit",
+ value: 0,
+ unit: "%",
+ }
+ }
+ onChange={(rangeStart, isEphemeral) => {
+ if (rangeStart === undefined && isEphemeral) {
+ handleChange(undefined, true);
+ return;
+ }
- handleChange(
- {
- ...value,
- timing: {
- ...value.timing,
- rangeStart: [
- value.timing.rangeStart?.[0] ?? defaultTimelineRangeName,
- rangeStart,
- ],
- },
- },
- isEphemeral
- );
- }}
- />
- <div />
- <RangeValueInput
- id={fieldIds.rangeEndValue}
- disabled={!isRangeEndEnabled}
- value={
- value.timing.rangeEnd?.[1] ?? {
- type: "unit",
- value: 0,
- unit: "%",
- }
- }
- onChange={(rangeEnd, isEphemeral) => {
- if (rangeEnd === undefined && isEphemeral) {
- handleChange(undefined, true);
- return;
- }
+ const defaultTimelineRangeName = timelineRangeNames[0]!;
- const defaultTimelineRangeName = timelineRangeNames[0]!;
+ handleChange(
+ {
+ ...value,
+ timing: {
+ ...value.timing,
+ rangeStart: [
+ value.timing.rangeStart?.[0] ??
+ defaultTimelineRangeName,
+ rangeStart,
+ ],
+ },
+ },
+ isEphemeral
+ );
+ }}
+ />
+ </Grid>
+ )}
- handleChange(
- {
- ...value,
- timing: {
- ...value.timing,
- rangeEnd: [
- value.timing.rangeEnd?.[0] ?? defaultTimelineRangeName,
- rangeEnd,
- ],
- },
- },
- isEphemeral
- );
- }}
- />
- </Grid>
+ <Label htmlFor={fieldIds.duration}>Duration</Label>
- <Grid
- gap={1}
- align={"center"}
- css={{
- gridTemplateColumns: "1fr 16px 1fr",
- paddingInline: theme.panel.paddingInline,
- }}
- >
- <Label htmlFor={fieldIds.duration}>Duration</Label>
- <div />
- <DurationInput
- id={fieldIds.duration}
- value={value.timing.duration}
- onChange={(duration, isEphemeral) => {
- if (duration === undefined && isEphemeral) {
- handleChange(undefined, true);
- return;
- }
+ <DurationInput
+ id={fieldIds.duration}
+ value={value.timing.duration}
+ onChange={(duration, isEphemeral) => {
+ if (duration === undefined && isEphemeral) {
+ handleChange(undefined, true);
+ return;
+ }
- handleChange(
- {
- ...value,
- timing: {
- ...value.timing,
- duration,
+ handleChange(
+ {
+ ...value,
+ timing: {
+ ...value.timing,
+ duration,
+ },
},
- },
- isEphemeral
- );
- }}
- />
+ isEphemeral
+ );
+ }}
+ />
+ </Grid>
</Grid>
<Keyframes
diff --git a/packages/icons/icons/range-contain-50.svg b/packages/icons/icons/range-contain-50.svg
new file mode 100644
index 0000000000..d371c23542
--- /dev/null
+++ b/packages/icons/icons/range-contain-50.svg
@@ -0,0 +1,26 @@
+<svg
+ width="16"
+ height="16"
+ viewBox="0 0 16 16"
+ fill="none"
+ xmlns="http://www.w3.org/2000/svg"
+>
+ <path
+ d="M11 8.5V7.5C11 6.94772 10.403 6.5 9.66667 6.5H6.33333C5.59695 6.5 5 6.94772 5 7.5V8.5C5 9.05228 5.59695 9.5 6.33333 9.5H9.66667C10.403 9.5 11 9.05228 11 8.5Z"
+ stroke="currentColor"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ />
+ <path
+ d="M1.45229 1.5L7.95216 1.5L14.452 1.5"
+ stroke="currentColor"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ />
+ <path
+ d="M1.50026 14.5069L8.00013 14.5069L14.5 14.5069"
+ stroke="currentColor"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ />
+</svg>
\ No newline at end of file
diff --git a/packages/icons/icons/range-contain.svg b/packages/icons/icons/range-contain.svg
new file mode 100644
index 0000000000..64cb185490
--- /dev/null
+++ b/packages/icons/icons/range-contain.svg
@@ -0,0 +1,26 @@
+<svg
+ width="16"
+ height="16"
+ viewBox="0 0 16 16"
+ fill="none"
+ xmlns="http://www.w3.org/2000/svg"
+>
+ <path
+ d="M1.50026 14.5069L8.00013 14.5069L14.5 14.5069"
+ stroke="currentColor"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ />
+ <path
+ d="M11 11.5V10.5C11 9.94772 10.403 9.5 9.66667 9.5H6.33333C5.59695 9.5 5 9.94772 5 10.5V11.5C5 12.0523 5.59695 12.5 6.33333 12.5H9.66667C10.403 12.5 11 12.0523 11 11.5Z"
+ stroke="currentColor"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ />
+ <path
+ d="M1.45229 1.5L7.95216 1.5L14.452 1.5"
+ stroke="currentColor"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ />
+</svg>
\ No newline at end of file
diff --git a/packages/icons/icons/range-cover.svg b/packages/icons/icons/range-cover.svg
new file mode 100644
index 0000000000..a5ed1b7f22
--- /dev/null
+++ b/packages/icons/icons/range-cover.svg
@@ -0,0 +1,26 @@
+<svg
+ width="16"
+ height="16"
+ viewBox="0 0 16 16"
+ fill="none"
+ xmlns="http://www.w3.org/2000/svg"
+>
+ <path
+ d="M11 13.5V12.5C11 11.9477 10.403 11.5 9.66667 11.5H6.33333C5.59695 11.5 5 11.9477 5 12.5V13.5C5 14.0523 5.59695 14.5 6.33333 14.5H9.66667C10.403 14.5 11 14.0523 11 13.5Z"
+ stroke="currentColor"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ />
+ <path
+ d="M1.50026 9.5L8.00013 9.5L14.5 9.5"
+ stroke="currentColor"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ />
+ <path
+ d="M1.45229 1.5L7.95216 1.5L14.452 1.5"
+ stroke="currentColor"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ />
+</svg>
\ No newline at end of file
diff --git a/packages/icons/src/__generated__/components.tsx b/packages/icons/src/__generated__/components.tsx
index 6452673540..d4103dd8e2 100644
--- a/packages/icons/src/__generated__/components.tsx
+++ b/packages/icons/src/__generated__/components.tsx
@@ -3905,6 +3905,78 @@ export const RadioUncheckedIcon: IconComponent = forwardRef(
);
RadioUncheckedIcon.displayName = "RadioUncheckedIcon";
+export const RangeContain50Icon: IconComponent = forwardRef(
+ ({ fill = "none", size = 16, ...props }, forwardedRef) => {
+ return (
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 16 16"
+ width={size}
+ height={size}
+ fill={fill}
+ {...props}
+ ref={forwardedRef}
+ >
+ <path
+ stroke="currentColor"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ d="M11 8.5v-1c0-.552-.597-1-1.333-1H6.333C5.597 6.5 5 6.948 5 7.5v1c0 .552.597 1 1.333 1h3.334c.736 0 1.333-.448 1.333-1ZM1.452 1.5h13M1.5 14.507h13"
+ />
+ </svg>
+ );
+ }
+);
+RangeContain50Icon.displayName = "RangeContain50Icon";
+
+export const RangeContainIcon: IconComponent = forwardRef(
+ ({ fill = "none", size = 16, ...props }, forwardedRef) => {
+ return (
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 16 16"
+ width={size}
+ height={size}
+ fill={fill}
+ {...props}
+ ref={forwardedRef}
+ >
+ <path
+ stroke="currentColor"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ d="M1.5 14.507h13M11 11.5v-1c0-.552-.597-1-1.333-1H6.333C5.597 9.5 5 9.948 5 10.5v1c0 .552.597 1 1.333 1h3.334c.736 0 1.333-.448 1.333-1ZM1.452 1.5h13"
+ />
+ </svg>
+ );
+ }
+);
+RangeContainIcon.displayName = "RangeContainIcon";
+
+export const RangeCoverIcon: IconComponent = forwardRef(
+ ({ fill = "none", size = 16, ...props }, forwardedRef) => {
+ return (
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 16 16"
+ width={size}
+ height={size}
+ fill={fill}
+ {...props}
+ ref={forwardedRef}
+ >
+ <path
+ stroke="currentColor"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ d="M11 13.5v-1c0-.552-.597-1-1.333-1H6.333c-.736 0-1.333.448-1.333 1v1c0 .552.597 1 1.333 1h3.334c.736 0 1.333-.448 1.333-1ZM1.5 9.5h13M1.452 1.5h13"
+ />
+ </svg>
+ );
+ }
+);
+RangeCoverIcon.displayName = "RangeCoverIcon";
+
export const RefreshIcon: IconComponent = forwardRef(
({ fill = "none", size = 16, ...props }, forwardedRef) => {
return (
diff --git a/packages/icons/src/__generated__/svg.ts b/packages/icons/src/__generated__/svg.ts
index fbf48bf7a7..c9d4cdb72d 100644
--- a/packages/icons/src/__generated__/svg.ts
+++ b/packages/icons/src/__generated__/svg.ts
@@ -288,6 +288,12 @@ export const RadioGroupIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="non
export const RadioUncheckedIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16" width="100%" height="100%" style="display: block;"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M8 14.5a6.5 6.5 0 1 0 0-13 6.5 6.5 0 0 0 0 13Z"/></svg>`;
+export const RangeContain50Icon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16" width="100%" height="100%" style="display: block;"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M11 8.5v-1c0-.552-.597-1-1.333-1H6.333C5.597 6.5 5 6.948 5 7.5v1c0 .552.597 1 1.333 1h3.334c.736 0 1.333-.448 1.333-1ZM1.452 1.5h13M1.5 14.507h13"/></svg>`;
+
+export const RangeContainIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16" width="100%" height="100%" style="display: block;"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M1.5 14.507h13M11 11.5v-1c0-.552-.597-1-1.333-1H6.333C5.597 9.5 5 9.948 5 10.5v1c0 .552.597 1 1.333 1h3.334c.736 0 1.333-.448 1.333-1ZM1.452 1.5h13"/></svg>`;
+
+export const RangeCoverIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16" width="100%" height="100%" style="display: block;"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M11 13.5v-1c0-.552-.597-1-1.333-1H6.333c-.736 0-1.333.448-1.333 1v1c0 .552.597 1 1.333 1h3.334c.736 0 1.333-.448 1.333-1ZM1.5 9.5h13M1.452 1.5h13"/></svg>`;
+
export const RefreshIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16" width="100%" height="100%" style="display: block;"><path fill="currentColor" fill-rule="evenodd" d="M8 1.5h-.002A7 7 0 0 0 3.16 3.467l-.006.006-.653.653V2a.5.5 0 0 0-1 0v3.333a.498.498 0 0 0 .144.352l.005.004A.498.498 0 0 0 2 5.833h3.357a.5.5 0 1 0 0-1h-2.15l.65-.65A6 6 0 0 1 8.001 2.5 5.5 5.5 0 0 1 13.5 8a.5.5 0 0 0 1 0A6.5 6.5 0 0 0 8 1.5Zm-6 6a.5.5 0 0 1 .5.5A5.5 5.5 0 0 0 8 13.5a6 6 0 0 0 4.143-1.683l.759-.76h-2.235a.5.5 0 1 1 0-1H14a.5.5 0 0 1 .5.5v3.334a.5.5 0 0 1-1 0v-2.017l-.653.653-.006.006A7 7 0 0 1 8 14.5H8A6.5 6.5 0 0 1 1.5 8a.5.5 0 0 1 .5-.5Z" clip-rule="evenodd"/></svg>`;
export const RepeatColumnIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16" width="100%" height="100%" style="display: block;"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M10.25 12.417V3.083c0-.736-.597-1.333-1.333-1.333H7.083c-.736 0-1.333.597-1.333 1.333v9.334c0 .736.597 1.333 1.333 1.333h1.834c.736 0 1.333-.597 1.333-1.333ZM10.25 5.75h-4M10.25 9.75h-4"/></svg>`;