@fanvue/ui 3.26.0 → 3.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/dist/cjs/components/Icons/AISettingsIcon.cjs +83 -0
  2. package/dist/cjs/components/Icons/AISettingsIcon.cjs.map +1 -0
  3. package/dist/cjs/components/Icons/AddCircleIcon.cjs +81 -0
  4. package/dist/cjs/components/Icons/AddCircleIcon.cjs.map +1 -0
  5. package/dist/cjs/components/Icons/ProgrammingArrowIcon.cjs +9 -76
  6. package/dist/cjs/components/Icons/ProgrammingArrowIcon.cjs.map +1 -1
  7. package/dist/cjs/components/Icons/RefreshArrowIcon.cjs +3 -12
  8. package/dist/cjs/components/Icons/RefreshArrowIcon.cjs.map +1 -1
  9. package/dist/cjs/components/SegmentedControl/SegmentedControl.cjs +21 -13
  10. package/dist/cjs/components/SegmentedControl/SegmentedControl.cjs.map +1 -1
  11. package/dist/cjs/index.cjs +4 -2
  12. package/dist/cjs/index.cjs.map +1 -1
  13. package/dist/components/Icons/AISettingsIcon.mjs +66 -0
  14. package/dist/components/Icons/AISettingsIcon.mjs.map +1 -0
  15. package/dist/components/Icons/AddCircleIcon.mjs +64 -0
  16. package/dist/components/Icons/AddCircleIcon.mjs.map +1 -0
  17. package/dist/components/Icons/ProgrammingArrowIcon.mjs +9 -76
  18. package/dist/components/Icons/ProgrammingArrowIcon.mjs.map +1 -1
  19. package/dist/components/Icons/RefreshArrowIcon.mjs +3 -12
  20. package/dist/components/Icons/RefreshArrowIcon.mjs.map +1 -1
  21. package/dist/components/SegmentedControl/SegmentedControl.mjs +21 -13
  22. package/dist/components/SegmentedControl/SegmentedControl.mjs.map +1 -1
  23. package/dist/index.d.ts +48 -9
  24. package/dist/index.mjs +3 -1
  25. package/dist/index.mjs.map +1 -1
  26. package/package.json +1 -1
  27. package/dist/cjs/components/Icons/AiSettingsIcon.cjs +0 -92
  28. package/dist/cjs/components/Icons/AiSettingsIcon.cjs.map +0 -1
  29. package/dist/components/Icons/AiSettingsIcon.mjs +0 -75
  30. package/dist/components/Icons/AiSettingsIcon.mjs.map +0 -1
@@ -46,15 +46,15 @@ function warnMissingOptionAccessibleName(options) {
46
46
  }
47
47
  }
48
48
  }
49
- function warnUnsupportedCollapsible(appearance, options) {
49
+ function warnUnsupportedCollapsible(appearance, options, hasCollapsedIcon) {
50
50
  if (process.env.NODE_ENV !== "production") {
51
51
  if (appearance === "pill") {
52
52
  console.warn(
53
53
  'SegmentedControl: `collapsible` is only supported for the "plain" and "brand" appearances; ignoring it.'
54
54
  );
55
- } else if (!options.every((option) => option.icon)) {
55
+ } else if (!hasCollapsedIcon && !options.every((option) => option.icon)) {
56
56
  console.warn(
57
- "SegmentedControl: `collapsible` requires every option to define an `icon`; ignoring it."
57
+ "SegmentedControl: `collapsible` requires every option to define an `icon`, or a `collapsedIcon` to show instead; ignoring it."
58
58
  );
59
59
  }
60
60
  }
@@ -89,10 +89,10 @@ function getSegmentClassName({
89
89
  disabled && "pointer-events-none"
90
90
  );
91
91
  }
92
- const collapsedPaddingClasses = {
93
- "32": "p-1",
94
- "40": "p-2",
95
- "48": "p-3"
92
+ const collapsedSizeClasses = {
93
+ "32": "size-8",
94
+ "40": "size-10",
95
+ "48": "size-12"
96
96
  };
97
97
  function getCollapsedButtonClassName({
98
98
  appearance,
@@ -108,8 +108,10 @@ function getCollapsedButtonClassName({
108
108
  // footprint icon-sized while the padding enlarges the hit target.
109
109
  "-m-1 p-1 text-icons-primary"
110
110
  ) : cn.cn(
111
- collapsedPaddingClasses[size],
112
- "bg-brand-primary-muted text-content-always-black shadow-sm ring-1 ring-brand-primary-default"
111
+ collapsedSizeClasses[size],
112
+ // Neutral circle rather than the brand pill: collapsed, the control is a switch
113
+ // affordance, not a preview of the selected segment.
114
+ "bg-surface-secondary text-icons-primary hover:bg-buttons-switch-hover"
113
115
  ),
114
116
  disabled && "pointer-events-none"
115
117
  );
@@ -151,17 +153,18 @@ const SegmentedControl = React__namespace.forwardRef(
151
153
  onChange,
152
154
  disabled = false,
153
155
  collapsible = false,
156
+ collapsedIcon,
154
157
  ...props
155
158
  }, ref) => {
156
159
  warnMissingAccessibleName(props["aria-label"], props["aria-labelledby"]);
157
160
  warnMissingOptionAccessibleName(options);
158
- if (collapsible) warnUnsupportedCollapsible(appearance, options);
161
+ if (collapsible) warnUnsupportedCollapsible(appearance, options, collapsedIcon !== void 0);
159
162
  const [internalValue, setInternalValue] = React__namespace.useState(defaultValue ?? options[0]?.value);
160
163
  const isControlled = controlledValue !== void 0;
161
164
  const currentValue = isControlled ? controlledValue : internalValue;
162
165
  const anySelected = options.some((o) => o.value === currentValue);
163
166
  const buttonRefs = React__namespace.useRef([]);
164
- const canCollapse = collapsible && (appearance === "plain" || appearance === "brand") && options.every((option) => option.icon);
167
+ const canCollapse = collapsible && (appearance === "plain" || appearance === "brand") && (collapsedIcon !== void 0 || options.every((option) => option.icon));
165
168
  const rootRef = React__namespace.useRef(null);
166
169
  const measureRef = React__namespace.useRef(null);
167
170
  const setRootRef = React__namespace.useCallback(
@@ -257,7 +260,12 @@ const SegmentedControl = React__namespace.forwardRef(
257
260
  className: cn.cn(
258
261
  "relative items-center rounded-full",
259
262
  variant === "fill" ? "flex w-full" : "inline-flex",
260
- appearance === "plain" ? "gap-2" : "bg-surface-tertiary p-1",
263
+ isCollapsed ? (
264
+ // Collapsed, the toggle itself carries the surface, so the container drops its own
265
+ // chrome and centres the button instead of pinning it to the start of a full-width
266
+ // row — in a narrow rail that offset is the whole width of the column.
267
+ "justify-center"
268
+ ) : appearance === "plain" ? "gap-2" : "bg-surface-tertiary p-1",
261
269
  disabled && "cursor-not-allowed opacity-50",
262
270
  className
263
271
  ),
@@ -271,7 +279,7 @@ const SegmentedControl = React__namespace.forwardRef(
271
279
  "aria-label": selectedOption.label,
272
280
  onClick: handleCycle,
273
281
  className: getCollapsedButtonClassName({ appearance, size, disabled }),
274
- children: selectedOption.icon && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex shrink-0 items-center justify-center", "aria-hidden": "true", children: selectedOption.icon })
282
+ children: (collapsedIcon ?? selectedOption.icon) && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex shrink-0 items-center justify-center", "aria-hidden": "true", children: collapsedIcon ?? selectedOption.icon })
275
283
  }
276
284
  ) : options.map((option, index) => renderSegment(option, index)),
277
285
  canCollapse && // Off-screen replica of the fully expanded control. Kept in the DOM (out of flow, hidden
@@ -1 +1 @@
1
- {"version":3,"file":"SegmentedControl.cjs","sources":["../../../../src/components/SegmentedControl/SegmentedControl.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { cn } from \"../../utils/cn\";\n\n/** Height of the segmented control in pixels. */\nexport type SegmentedControlSize = \"32\" | \"40\" | \"48\";\n\n/**\n * Segment layout.\n * - `\"hug\"`: each segment is sized to its content.\n * - `\"fill\"`: the control spans the full width of its container and each segment grows equally.\n */\nexport type SegmentedControlVariant = \"hug\" | \"fill\";\n\n/**\n * Visual style of the control.\n * - `\"pill\"`: the container has a muted background and the selected segment shows a filled pill (default).\n * - `\"plain\"`: no container or selected-pill background; segments are bare content and selection is\n * communicated by color alone. Designed for icon-only toggles (e.g. a list/grid view switch).\n * - `\"brand\"`: like `\"pill\"`, but segments render their `icon` alongside the visible `label` and the\n * selected segment uses the brand-green pill. Designed for prominent toggles such as the\n * Home/Agent navigation switch.\n */\nexport type SegmentedControlAppearance = \"pill\" | \"plain\" | \"brand\";\n\n/** Describes one selectable segment. */\nexport interface SegmentedControlOption {\n /**\n * Display label for the segment. In `pill`/`plain` appearances, when `icon` is provided the\n * segment renders icon-only and this value becomes its accessible name (applied as `aria-label`)\n * instead of visible text. In the `brand` appearance the label is always rendered as visible text\n * (alongside the icon when present).\n */\n label: string;\n /** Value identifier returned via `onChange`. */\n value: string;\n /**\n * Icon to render for the segment. In `pill`/`plain` appearances the segment renders icon-only and\n * `label` becomes required as its accessible name (applied as `aria-label`, no visible text). In\n * the `brand` appearance the icon renders alongside the visible `label`. Required for every option\n * when `collapsible` is set, since the collapsed control shows the selected option's icon alone.\n */\n icon?: React.ReactNode;\n}\n\nexport interface SegmentedControlProps\n extends Omit<React.HTMLAttributes<HTMLDivElement>, \"onChange\"> {\n /** Height of the control in pixels. @default \"32\" */\n size?: SegmentedControlSize;\n /** Segment layout. @default \"hug\" */\n variant?: SegmentedControlVariant;\n /** Visual style of the control. @default \"pill\" */\n appearance?: SegmentedControlAppearance;\n /** The selectable segments. Designed for two or three mutually exclusive options. */\n options: SegmentedControlOption[];\n /** Currently selected value (controlled). */\n value?: string;\n /** Initially selected value (uncontrolled). Defaults to the first option. */\n defaultValue?: string;\n /** Callback fired when the selected value changes. */\n onChange?: (value: string) => void;\n /** Whether the control is disabled. @default false */\n disabled?: boolean;\n /**\n * When `true`, the control automatically collapses to a single icon-only toggle whenever its\n * container is too narrow to show every segment side by side, and expands again when the space\n * returns. Collapsed, it shows the currently-selected option's `icon`; clicking it (or pressing\n * Enter/Space) advances to the next option, wrapping around from the last back to the first.\n *\n * Only supported for the icon-bearing `\"plain\"` and `\"brand\"` appearances, and every option must\n * define an `icon` (there is nothing to show otherwise). Ignored, with a dev-time warning, when\n * those conditions are not met. @default false\n */\n collapsible?: boolean;\n}\n\n/** Padding and typography per size. Combined with the container's `p-1` these hit the 32/40/48px heights. */\nconst sizeClasses: Record<SegmentedControlSize, string> = {\n \"32\": \"px-2 py-1 typography-description-12px-semibold\",\n \"40\": \"px-3 py-1.75 typography-body-small-14px-semibold\",\n \"48\": \"px-4 py-2 typography-body-default-16px-semibold\",\n};\n\nfunction warnMissingAccessibleName(ariaLabel?: string, ariaLabelledBy?: string) {\n if (process.env.NODE_ENV !== \"production\") {\n if (!ariaLabel && !ariaLabelledBy) {\n console.warn(\n \"SegmentedControl: no accessible name provided. Pass an `aria-label` or `aria-labelledby` prop.\",\n );\n }\n }\n}\n\nfunction warnMissingOptionAccessibleName(options: SegmentedControlOption[]) {\n if (process.env.NODE_ENV !== \"production\") {\n for (const option of options) {\n if (option.icon && !option.label?.trim()) {\n console.warn(\n `SegmentedControl: icon-only segment \"${option.value}\" is missing a non-empty \\`label\\` to use as its accessible name.`,\n );\n }\n }\n }\n}\n\nfunction warnUnsupportedCollapsible(\n appearance: SegmentedControlAppearance,\n options: SegmentedControlOption[],\n) {\n if (process.env.NODE_ENV !== \"production\") {\n if (appearance === \"pill\") {\n console.warn(\n 'SegmentedControl: `collapsible` is only supported for the \"plain\" and \"brand\" appearances; ignoring it.',\n );\n } else if (!options.every((option) => option.icon)) {\n console.warn(\n \"SegmentedControl: `collapsible` requires every option to define an `icon`; ignoring it.\",\n );\n }\n }\n}\n\nfunction getSegmentClassName({\n appearance,\n size,\n variant,\n isSelected,\n disabled,\n}: {\n appearance: SegmentedControlAppearance;\n size: SegmentedControlSize;\n variant: SegmentedControlVariant;\n isSelected: boolean;\n disabled: boolean;\n}) {\n return cn(\n \"relative inline-flex min-w-0 cursor-pointer items-center justify-center rounded-full\",\n \"motion-safe:transition-colors motion-safe:duration-150 motion-safe:ease-in-out\",\n \"focus-visible:shadow-focus-ring focus-visible:outline-none\",\n variant === \"fill\" ? \"flex-1\" : \"shrink-0\",\n appearance === \"plain\"\n ? cn(\n // Padding + negative margin enlarge the hit target without changing the\n // visual footprint, which must stay glyph-only to match the design.\n \"-m-1 p-1\",\n isSelected ? \"text-icons-primary\" : \"text-icons-tertiary hover:text-icons-primary\",\n )\n : cn(\n sizeClasses[size],\n // brand renders icon + label together, so space them.\n appearance === \"brand\" && \"gap-1.5\",\n isSelected\n ? appearance === \"brand\"\n ? // Approximate brand-green pill using existing tokens; exact colours pending\n // dedicated navigation tokens (see ENG follow-up).\n \"bg-brand-primary-muted text-content-always-black shadow-sm ring-1 ring-brand-primary-default\"\n : \"bg-buttons-primary-default text-content-primary-inverted shadow-sm\"\n : \"text-content-primary hover:bg-buttons-switch-hover\",\n ),\n disabled && \"pointer-events-none\",\n );\n}\n\n/** Symmetric padding per size so the collapsed toggle is a square (a circle once `rounded-full`). */\nconst collapsedPaddingClasses: Record<SegmentedControlSize, string> = {\n \"32\": \"p-1\",\n \"40\": \"p-2\",\n \"48\": \"p-3\",\n};\n\n/**\n * Classes for the single button shown while the control is collapsed. Unlike an expanded segment\n * (which carries asymmetric `px`/`py` padding and so reads slightly wider than tall), the collapsed\n * toggle is forced to an `aspect-square` circle via symmetric padding and `rounded-full`, so the\n * icon-only control reads as a round button.\n */\nfunction getCollapsedButtonClassName({\n appearance,\n size,\n disabled,\n}: {\n appearance: SegmentedControlAppearance;\n size: SegmentedControlSize;\n disabled: boolean;\n}) {\n return cn(\n \"relative inline-flex aspect-square shrink-0 cursor-pointer items-center justify-center rounded-full\",\n \"motion-safe:transition-colors motion-safe:duration-150 motion-safe:ease-in-out\",\n \"focus-visible:shadow-focus-ring focus-visible:outline-none\",\n appearance === \"plain\"\n ? // Glyph-only: no pill, just the selected icon colour. The negative margin keeps the visual\n // footprint icon-sized while the padding enlarges the hit target.\n \"-m-1 p-1 text-icons-primary\"\n : cn(\n collapsedPaddingClasses[size],\n \"bg-brand-primary-muted text-content-always-black shadow-sm ring-1 ring-brand-primary-default\",\n ),\n disabled && \"pointer-events-none\",\n );\n}\n\n/**\n * Watches `rootRef`'s available width against the natural width of the fully expanded control\n * (measured from `measureRef`, an off-screen replica) and returns whether the control should\n * collapse. Comparing available space to a stable off-screen measurement — rather than to the\n * live control, which shrinks when it collapses — avoids the expand/collapse oscillation that a\n * self-referential measurement would cause. Returns `false` until both widths are measurable\n * (SSR, jsdom, or a zero-width layout), so the control renders expanded by default.\n */\nfunction useAutoCollapse(\n rootRef: React.RefObject<HTMLDivElement | null>,\n measureRef: React.RefObject<HTMLDivElement | null>,\n enabled: boolean,\n): boolean {\n const [collapsed, setCollapsed] = React.useState(false);\n\n React.useEffect(() => {\n if (!enabled) {\n setCollapsed(false);\n return;\n }\n const root = rootRef.current;\n const measure = measureRef.current;\n const parent = root?.parentElement;\n if (!root || !measure || !parent) return;\n\n const evaluate = () => {\n const available = parent.getBoundingClientRect().width;\n const required = measure.getBoundingClientRect().width;\n // Both unmeasured (SSR/jsdom/zero-width): leave the current state untouched.\n if (available <= 0 || required <= 0) return;\n setCollapsed(required > available);\n };\n\n evaluate();\n\n const observer = new ResizeObserver(evaluate);\n observer.observe(parent);\n observer.observe(measure);\n return () => observer.disconnect();\n }, [enabled, rootRef, measureRef]);\n\n return enabled && collapsed;\n}\n\n/**\n * A compact selector for choosing between two or three mutually exclusive\n * options where the choice affects the content immediately below it. Use\n * instead of tabs when the options are more like settings or filters than\n * navigation, such as toggling a list/grid view or a monthly/annual price.\n *\n * Rendered as a `radiogroup` with roving-tabindex keyboard navigation. Supports\n * both controlled and uncontrolled usage. With `collapsible`, the icon-bearing\n * `plain`/`brand` appearances shrink to a single cycling icon toggle when space\n * is tight (rendered as a `group` containing one button).\n *\n * @example\n * ```tsx\n * <SegmentedControl\n * options={[\n * { label: \"Net\", value: \"net\" },\n * { label: \"Gross\", value: \"gross\" },\n * ]}\n * value={amount}\n * onChange={setAmount}\n * aria-label=\"Amount type\"\n * />\n * ```\n *\n * @example Icon-only segments (e.g. a list/grid view toggle)\n * ```tsx\n * <SegmentedControl\n * appearance=\"plain\"\n * options={[\n * { label: \"List view\", value: \"list\", icon: <ListViewIcon size={16} /> },\n * { label: \"Grid view\", value: \"grid\", icon: <GridViewIcon size={16} /> },\n * ]}\n * value={view}\n * onChange={setView}\n * aria-label=\"View\"\n * />\n * ```\n *\n * @example Icon + label with the brand-green pill (e.g. the Home/Agent nav switch)\n * ```tsx\n * <SegmentedControl\n * appearance=\"brand\"\n * options={[\n * { label: \"Home\", value: \"home\", icon: <HomeIcon size={16} /> },\n * { label: \"Agent\", value: \"agent\", icon: <AIIcon size={16} /> },\n * ]}\n * value={mode}\n * onChange={setMode}\n * aria-label=\"Navigation mode\"\n * />\n * ```\n *\n * @example Collapses to a cycling icon toggle when the container is too narrow\n * ```tsx\n * <SegmentedControl\n * appearance=\"plain\"\n * collapsible\n * options={[\n * { label: \"List view\", value: \"list\", icon: <ListViewIcon size={16} /> },\n * { label: \"Grid view\", value: \"grid\", icon: <GridViewIcon size={16} /> },\n * ]}\n * value={view}\n * onChange={setView}\n * aria-label=\"View\"\n * />\n * ```\n */\nexport const SegmentedControl = React.forwardRef<HTMLDivElement, SegmentedControlProps>(\n (\n {\n className,\n size = \"32\",\n variant = \"hug\",\n appearance = \"pill\",\n options,\n value: controlledValue,\n defaultValue,\n onChange,\n disabled = false,\n collapsible = false,\n ...props\n },\n ref,\n ) => {\n warnMissingAccessibleName(props[\"aria-label\"], props[\"aria-labelledby\"]);\n warnMissingOptionAccessibleName(options);\n if (collapsible) warnUnsupportedCollapsible(appearance, options);\n\n // Tracks selection for uncontrolled usage; ignored when `value` prop is provided\n const [internalValue, setInternalValue] = React.useState(defaultValue ?? options[0]?.value);\n const isControlled = controlledValue !== undefined;\n const currentValue = isControlled ? controlledValue : internalValue;\n const anySelected = options.some((o) => o.value === currentValue);\n const buttonRefs = React.useRef<(HTMLButtonElement | null)[]>([]);\n\n // Collapsing only makes sense for icon-bearing appearances where every option has an icon\n // to show. Anything else falls back to the normal expanded control (a dev warning fires above).\n const canCollapse =\n collapsible &&\n (appearance === \"plain\" || appearance === \"brand\") &&\n options.every((option) => option.icon);\n\n const rootRef = React.useRef<HTMLDivElement | null>(null);\n const measureRef = React.useRef<HTMLDivElement | null>(null);\n const setRootRef = React.useCallback(\n (node: HTMLDivElement | null) => {\n rootRef.current = node;\n if (typeof ref === \"function\") ref(node);\n else if (ref) ref.current = node;\n },\n [ref],\n );\n const isCollapsed = useAutoCollapse(rootRef, measureRef, canCollapse);\n\n const handleSelect = (optionValue: string) => {\n if (disabled || optionValue === currentValue) return;\n if (!isControlled) {\n setInternalValue(optionValue);\n }\n onChange?.(optionValue);\n };\n\n const handleKeyDown = (e: React.KeyboardEvent, index: number) => {\n const nextIndex =\n e.key === \"ArrowRight\" || e.key === \"ArrowDown\"\n ? (index + 1) % options.length\n : e.key === \"ArrowLeft\" || e.key === \"ArrowUp\"\n ? (index - 1 + options.length) % options.length\n : null;\n if (nextIndex === null) return;\n e.preventDefault();\n const nextOption = options[nextIndex] as SegmentedControlOption;\n handleSelect(nextOption.value);\n buttonRefs.current[nextIndex]?.focus();\n };\n\n const renderSegment = (option: SegmentedControlOption, index: number) => {\n const isSelected = currentValue === option.value;\n // `brand` shows the label as visible text (with the icon); `pill`/`plain` render\n // icon-only when an icon is given, falling back to the label otherwise.\n const showLabelText = appearance === \"brand\" || !option.icon;\n return (\n // biome-ignore lint/a11y/useSemanticElements: native radio inputs only allow Tab-focus on the checked item; buttons with roving tabindex give full keyboard navigation\n <button\n key={option.value}\n ref={(el) => {\n buttonRefs.current[index] = el;\n }}\n type=\"button\"\n role=\"radio\"\n aria-checked={isSelected}\n tabIndex={isSelected || (!anySelected && index === 0) ? 0 : -1}\n disabled={disabled}\n aria-label={showLabelText ? undefined : option.label}\n onClick={() => handleSelect(option.value)}\n onKeyDown={(e) => handleKeyDown(e, index)}\n className={getSegmentClassName({ appearance, size, variant, isSelected, disabled })}\n >\n {option.icon && (\n <span className=\"flex shrink-0 items-center justify-center\" aria-hidden=\"true\">\n {option.icon}\n </span>\n )}\n {showLabelText && <span className=\"min-w-0 truncate\">{option.label}</span>}\n </button>\n );\n };\n\n // Off-screen replica of one segment used only to size the expanded control. Rendered as an\n // inert (disabled + `aria-hidden`) button with no `radio` semantics so it stays out of the\n // accessibility tree and tab order, and always with hug sizing so the replica reflects the\n // natural (uncompressed) width even under a `fill` layout.\n const renderMeasureSegment = (option: SegmentedControlOption) => {\n const showLabelText = appearance === \"brand\" || !option.icon;\n return (\n <button\n key={option.value}\n type=\"button\"\n disabled\n aria-hidden=\"true\"\n tabIndex={-1}\n className={getSegmentClassName({\n appearance,\n size,\n variant: \"hug\",\n isSelected: currentValue === option.value,\n disabled,\n })}\n >\n {option.icon && (\n <span className=\"flex shrink-0 items-center justify-center\" aria-hidden=\"true\">\n {option.icon}\n </span>\n )}\n {showLabelText && <span className=\"min-w-0 truncate\">{option.label}</span>}\n </button>\n );\n };\n\n // Collapsed: a single button showing the selected option's icon that cycles to the next\n // option on activation, wrapping from the last option back to the first.\n const selectedIndex = options.findIndex((option) => option.value === currentValue);\n const selectedOption = options[selectedIndex] ?? options[0];\n const handleCycle = () => {\n if (disabled || options.length === 0) return;\n const from = selectedIndex < 0 ? 0 : selectedIndex;\n const nextOption = options[(from + 1) % options.length] as SegmentedControlOption;\n handleSelect(nextOption.value);\n };\n\n return (\n <div\n ref={setRootRef}\n role={isCollapsed ? \"group\" : \"radiogroup\"}\n className={cn(\n \"relative items-center rounded-full\",\n variant === \"fill\" ? \"flex w-full\" : \"inline-flex\",\n appearance === \"plain\" ? \"gap-2\" : \"bg-surface-tertiary p-1\",\n disabled && \"cursor-not-allowed opacity-50\",\n className,\n )}\n {...props}\n >\n {isCollapsed && selectedOption ? (\n <button\n type=\"button\"\n disabled={disabled}\n aria-label={selectedOption.label}\n onClick={handleCycle}\n className={getCollapsedButtonClassName({ appearance, size, disabled })}\n >\n {selectedOption.icon && (\n <span className=\"flex shrink-0 items-center justify-center\" aria-hidden=\"true\">\n {selectedOption.icon}\n </span>\n )}\n </button>\n ) : (\n options.map((option, index) => renderSegment(option, index))\n )}\n\n {canCollapse && (\n // Off-screen replica of the fully expanded control. Kept in the DOM (out of flow, hidden\n // from AT and tab order) so its natural width is always measurable, whether the visible\n // control is currently expanded or collapsed.\n <div\n ref={measureRef}\n aria-hidden=\"true\"\n className={cn(\n \"pointer-events-none invisible absolute top-0 left-0 -z-10 flex items-center whitespace-nowrap rounded-full\",\n appearance === \"plain\" ? \"gap-2\" : \"bg-surface-tertiary p-1\",\n )}\n >\n {options.map((option) => renderMeasureSegment(option))}\n </div>\n )}\n </div>\n );\n },\n);\n\nSegmentedControl.displayName = \"SegmentedControl\";\n"],"names":["cn","React","jsxs","jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AA4EA,MAAM,cAAoD;AAAA,EACxD,MAAM;AAAA,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A;AAAAA,gBACT;AAAA,gBACA,eAAe,UAAU,UAAU;AAAA,cAAA;AAAA,cAGpC,kBAAQ,IAAI,CAAC,WAAW,qBAAqB,MAAM,CAAC;AAAA,YAAA;AAAA,UAAA;AAAA,QACvD;AAAA,MAAA;AAAA,IAAA;AAAA,EAIR;AACF;AAEA,iBAAiB,cAAc;;"}
1
+ {"version":3,"file":"SegmentedControl.cjs","sources":["../../../../src/components/SegmentedControl/SegmentedControl.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { cn } from \"../../utils/cn\";\n\n/** Height of the segmented control in pixels. */\nexport type SegmentedControlSize = \"32\" | \"40\" | \"48\";\n\n/**\n * Segment layout.\n * - `\"hug\"`: each segment is sized to its content.\n * - `\"fill\"`: the control spans the full width of its container and each segment grows equally.\n */\nexport type SegmentedControlVariant = \"hug\" | \"fill\";\n\n/**\n * Visual style of the control.\n * - `\"pill\"`: the container has a muted background and the selected segment shows a filled pill (default).\n * - `\"plain\"`: no container or selected-pill background; segments are bare content and selection is\n * communicated by color alone. Designed for icon-only toggles (e.g. a list/grid view switch).\n * - `\"brand\"`: like `\"pill\"`, but segments render their `icon` alongside the visible `label` and the\n * selected segment uses the brand-green pill. Designed for prominent toggles such as the\n * Home/Agent navigation switch.\n */\nexport type SegmentedControlAppearance = \"pill\" | \"plain\" | \"brand\";\n\n/** Describes one selectable segment. */\nexport interface SegmentedControlOption {\n /**\n * Display label for the segment. In `pill`/`plain` appearances, when `icon` is provided the\n * segment renders icon-only and this value becomes its accessible name (applied as `aria-label`)\n * instead of visible text. In the `brand` appearance the label is always rendered as visible text\n * (alongside the icon when present).\n */\n label: string;\n /** Value identifier returned via `onChange`. */\n value: string;\n /**\n * Icon to render for the segment. In `pill`/`plain` appearances the segment renders icon-only and\n * `label` becomes required as its accessible name (applied as `aria-label`, no visible text). In\n * the `brand` appearance the icon renders alongside the visible `label`. Required for every option\n * when `collapsible` is set unless a `collapsedIcon` is given, since the collapsed control\n * otherwise shows the selected option's icon alone.\n */\n icon?: React.ReactNode;\n}\n\nexport interface SegmentedControlProps\n extends Omit<React.HTMLAttributes<HTMLDivElement>, \"onChange\"> {\n /** Height of the control in pixels. @default \"32\" */\n size?: SegmentedControlSize;\n /** Segment layout. @default \"hug\" */\n variant?: SegmentedControlVariant;\n /** Visual style of the control. @default \"pill\" */\n appearance?: SegmentedControlAppearance;\n /** The selectable segments. Designed for two or three mutually exclusive options. */\n options: SegmentedControlOption[];\n /** Currently selected value (controlled). */\n value?: string;\n /** Initially selected value (uncontrolled). Defaults to the first option. */\n defaultValue?: string;\n /** Callback fired when the selected value changes. */\n onChange?: (value: string) => void;\n /** Whether the control is disabled. @default false */\n disabled?: boolean;\n /**\n * When `true`, the control automatically collapses to a single icon-only toggle whenever its\n * container is too narrow to show every segment side by side, and expands again when the space\n * returns. Collapsed, it shows `collapsedIcon` when given and otherwise the currently-selected\n * option's `icon`; clicking it (or pressing Enter/Space) advances to the next option, wrapping\n * around from the last back to the first.\n *\n * Only supported for the icon-bearing `\"plain\"` and `\"brand\"` appearances, and every option must\n * define an `icon` unless `collapsedIcon` is given (there is nothing to show otherwise). Ignored,\n * with a dev-time warning, when those conditions are not met. @default false\n */\n collapsible?: boolean;\n /**\n * Single glyph for the collapsed toggle, replacing the selected option's icon. Use it when the\n * collapsed control should read as one switch affordance rather than as a preview of the current\n * selection — the collapsed navigation rail shows a repeat glyph this way. The button still\n * announces the selected option as its accessible name, so the current state stays available to\n * assistive tech. Only meaningful alongside `collapsible`.\n */\n collapsedIcon?: React.ReactNode;\n}\n\n/** Padding and typography per size. Combined with the container's `p-1` these hit the 32/40/48px heights. */\nconst sizeClasses: Record<SegmentedControlSize, string> = {\n \"32\": \"px-2 py-1 typography-description-12px-semibold\",\n \"40\": \"px-3 py-1.75 typography-body-small-14px-semibold\",\n \"48\": \"px-4 py-2 typography-body-default-16px-semibold\",\n};\n\nfunction warnMissingAccessibleName(ariaLabel?: string, ariaLabelledBy?: string) {\n if (process.env.NODE_ENV !== \"production\") {\n if (!ariaLabel && !ariaLabelledBy) {\n console.warn(\n \"SegmentedControl: no accessible name provided. Pass an `aria-label` or `aria-labelledby` prop.\",\n );\n }\n }\n}\n\nfunction warnMissingOptionAccessibleName(options: SegmentedControlOption[]) {\n if (process.env.NODE_ENV !== \"production\") {\n for (const option of options) {\n if (option.icon && !option.label?.trim()) {\n console.warn(\n `SegmentedControl: icon-only segment \"${option.value}\" is missing a non-empty \\`label\\` to use as its accessible name.`,\n );\n }\n }\n }\n}\n\nfunction warnUnsupportedCollapsible(\n appearance: SegmentedControlAppearance,\n options: SegmentedControlOption[],\n hasCollapsedIcon: boolean,\n) {\n if (process.env.NODE_ENV !== \"production\") {\n if (appearance === \"pill\") {\n console.warn(\n 'SegmentedControl: `collapsible` is only supported for the \"plain\" and \"brand\" appearances; ignoring it.',\n );\n } else if (!hasCollapsedIcon && !options.every((option) => option.icon)) {\n console.warn(\n \"SegmentedControl: `collapsible` requires every option to define an `icon`, or a `collapsedIcon` to show instead; ignoring it.\",\n );\n }\n }\n}\n\nfunction getSegmentClassName({\n appearance,\n size,\n variant,\n isSelected,\n disabled,\n}: {\n appearance: SegmentedControlAppearance;\n size: SegmentedControlSize;\n variant: SegmentedControlVariant;\n isSelected: boolean;\n disabled: boolean;\n}) {\n return cn(\n \"relative inline-flex min-w-0 cursor-pointer items-center justify-center rounded-full\",\n \"motion-safe:transition-colors motion-safe:duration-150 motion-safe:ease-in-out\",\n \"focus-visible:shadow-focus-ring focus-visible:outline-none\",\n variant === \"fill\" ? \"flex-1\" : \"shrink-0\",\n appearance === \"plain\"\n ? cn(\n // Padding + negative margin enlarge the hit target without changing the\n // visual footprint, which must stay glyph-only to match the design.\n \"-m-1 p-1\",\n isSelected ? \"text-icons-primary\" : \"text-icons-tertiary hover:text-icons-primary\",\n )\n : cn(\n sizeClasses[size],\n // brand renders icon + label together, so space them.\n appearance === \"brand\" && \"gap-1.5\",\n isSelected\n ? appearance === \"brand\"\n ? // Approximate brand-green pill using existing tokens; exact colours pending\n // dedicated navigation tokens (see ENG follow-up).\n \"bg-brand-primary-muted text-content-always-black shadow-sm ring-1 ring-brand-primary-default\"\n : \"bg-buttons-primary-default text-content-primary-inverted shadow-sm\"\n : \"text-content-primary hover:bg-buttons-switch-hover\",\n ),\n disabled && \"pointer-events-none\",\n );\n}\n\n/**\n * Footprint of the collapsed toggle per size. A fixed square keeps the collapsed control the same\n * height as the expanded one, whose height comes from the segment padding plus the container's\n * `p-1` — padding the collapsed button alone would fall short of it by that container padding.\n */\nconst collapsedSizeClasses: Record<SegmentedControlSize, string> = {\n \"32\": \"size-8\",\n \"40\": \"size-10\",\n \"48\": \"size-12\",\n};\n\n/**\n * Classes for the single button shown while the control is collapsed. Unlike an expanded segment\n * (which carries asymmetric `px`/`py` padding and so reads slightly wider than tall), the collapsed\n * toggle is forced to a square via a fixed footprint and `aspect-square`, so with `rounded-full` the\n * icon-only control reads as a round button.\n */\nfunction getCollapsedButtonClassName({\n appearance,\n size,\n disabled,\n}: {\n appearance: SegmentedControlAppearance;\n size: SegmentedControlSize;\n disabled: boolean;\n}) {\n return cn(\n \"relative inline-flex aspect-square shrink-0 cursor-pointer items-center justify-center rounded-full\",\n \"motion-safe:transition-colors motion-safe:duration-150 motion-safe:ease-in-out\",\n \"focus-visible:shadow-focus-ring focus-visible:outline-none\",\n appearance === \"plain\"\n ? // Glyph-only: no pill, just the selected icon colour. The negative margin keeps the visual\n // footprint icon-sized while the padding enlarges the hit target.\n \"-m-1 p-1 text-icons-primary\"\n : cn(\n collapsedSizeClasses[size],\n // Neutral circle rather than the brand pill: collapsed, the control is a switch\n // affordance, not a preview of the selected segment.\n \"bg-surface-secondary text-icons-primary hover:bg-buttons-switch-hover\",\n ),\n disabled && \"pointer-events-none\",\n );\n}\n\n/**\n * Watches `rootRef`'s available width against the natural width of the fully expanded control\n * (measured from `measureRef`, an off-screen replica) and returns whether the control should\n * collapse. Comparing available space to a stable off-screen measurement — rather than to the\n * live control, which shrinks when it collapses — avoids the expand/collapse oscillation that a\n * self-referential measurement would cause. Returns `false` until both widths are measurable\n * (SSR, jsdom, or a zero-width layout), so the control renders expanded by default.\n */\nfunction useAutoCollapse(\n rootRef: React.RefObject<HTMLDivElement | null>,\n measureRef: React.RefObject<HTMLDivElement | null>,\n enabled: boolean,\n): boolean {\n const [collapsed, setCollapsed] = React.useState(false);\n\n React.useEffect(() => {\n if (!enabled) {\n setCollapsed(false);\n return;\n }\n const root = rootRef.current;\n const measure = measureRef.current;\n const parent = root?.parentElement;\n if (!root || !measure || !parent) return;\n\n const evaluate = () => {\n const available = parent.getBoundingClientRect().width;\n const required = measure.getBoundingClientRect().width;\n // Both unmeasured (SSR/jsdom/zero-width): leave the current state untouched.\n if (available <= 0 || required <= 0) return;\n setCollapsed(required > available);\n };\n\n evaluate();\n\n const observer = new ResizeObserver(evaluate);\n observer.observe(parent);\n observer.observe(measure);\n return () => observer.disconnect();\n }, [enabled, rootRef, measureRef]);\n\n return enabled && collapsed;\n}\n\n/**\n * A compact selector for choosing between two or three mutually exclusive\n * options where the choice affects the content immediately below it. Use\n * instead of tabs when the options are more like settings or filters than\n * navigation, such as toggling a list/grid view or a monthly/annual price.\n *\n * Rendered as a `radiogroup` with roving-tabindex keyboard navigation. Supports\n * both controlled and uncontrolled usage. With `collapsible`, the icon-bearing\n * `plain`/`brand` appearances shrink to a single cycling icon toggle when space\n * is tight (rendered as a `group` containing one button).\n *\n * @example\n * ```tsx\n * <SegmentedControl\n * options={[\n * { label: \"Net\", value: \"net\" },\n * { label: \"Gross\", value: \"gross\" },\n * ]}\n * value={amount}\n * onChange={setAmount}\n * aria-label=\"Amount type\"\n * />\n * ```\n *\n * @example Icon-only segments (e.g. a list/grid view toggle)\n * ```tsx\n * <SegmentedControl\n * appearance=\"plain\"\n * options={[\n * { label: \"List view\", value: \"list\", icon: <ListViewIcon size={16} /> },\n * { label: \"Grid view\", value: \"grid\", icon: <GridViewIcon size={16} /> },\n * ]}\n * value={view}\n * onChange={setView}\n * aria-label=\"View\"\n * />\n * ```\n *\n * @example Icon + label with the brand-green pill (e.g. the Home/Agent nav switch)\n * ```tsx\n * <SegmentedControl\n * appearance=\"brand\"\n * options={[\n * { label: \"Home\", value: \"home\", icon: <HomeIcon size={16} /> },\n * { label: \"Agent\", value: \"agent\", icon: <AIIcon size={16} /> },\n * ]}\n * value={mode}\n * onChange={setMode}\n * aria-label=\"Navigation mode\"\n * />\n * ```\n *\n * @example Collapses to a cycling icon toggle when the container is too narrow\n * ```tsx\n * <SegmentedControl\n * appearance=\"plain\"\n * collapsible\n * options={[\n * { label: \"List view\", value: \"list\", icon: <ListViewIcon size={16} /> },\n * { label: \"Grid view\", value: \"grid\", icon: <GridViewIcon size={16} /> },\n * ]}\n * value={view}\n * onChange={setView}\n * aria-label=\"View\"\n * />\n * ```\n *\n * @example A collapsed toggle that shows one switch glyph instead of the selected icon\n * ```tsx\n * <SegmentedControl\n * appearance=\"brand\"\n * collapsible\n * collapsedIcon={<RepeatIcon size={16} />}\n * options={[\n * { label: \"Home\", value: \"home\", icon: <HomeIcon size={16} /> },\n * { label: \"Agent\", value: \"agent\", icon: <AIIcon size={16} filled /> },\n * ]}\n * value={mode}\n * onChange={setMode}\n * aria-label=\"Navigation mode\"\n * />\n * ```\n */\nexport const SegmentedControl = React.forwardRef<HTMLDivElement, SegmentedControlProps>(\n (\n {\n className,\n size = \"32\",\n variant = \"hug\",\n appearance = \"pill\",\n options,\n value: controlledValue,\n defaultValue,\n onChange,\n disabled = false,\n collapsible = false,\n collapsedIcon,\n ...props\n },\n ref,\n ) => {\n warnMissingAccessibleName(props[\"aria-label\"], props[\"aria-labelledby\"]);\n warnMissingOptionAccessibleName(options);\n if (collapsible) warnUnsupportedCollapsible(appearance, options, collapsedIcon !== undefined);\n\n // Tracks selection for uncontrolled usage; ignored when `value` prop is provided\n const [internalValue, setInternalValue] = React.useState(defaultValue ?? options[0]?.value);\n const isControlled = controlledValue !== undefined;\n const currentValue = isControlled ? controlledValue : internalValue;\n const anySelected = options.some((o) => o.value === currentValue);\n const buttonRefs = React.useRef<(HTMLButtonElement | null)[]>([]);\n\n // Collapsing only makes sense for icon-bearing appearances where there is a glyph to show:\n // either a `collapsedIcon` for every state, or an icon on every option. Anything else falls\n // back to the normal expanded control (a dev warning fires above).\n const canCollapse =\n collapsible &&\n (appearance === \"plain\" || appearance === \"brand\") &&\n (collapsedIcon !== undefined || options.every((option) => option.icon));\n\n const rootRef = React.useRef<HTMLDivElement | null>(null);\n const measureRef = React.useRef<HTMLDivElement | null>(null);\n const setRootRef = React.useCallback(\n (node: HTMLDivElement | null) => {\n rootRef.current = node;\n if (typeof ref === \"function\") ref(node);\n else if (ref) ref.current = node;\n },\n [ref],\n );\n const isCollapsed = useAutoCollapse(rootRef, measureRef, canCollapse);\n\n const handleSelect = (optionValue: string) => {\n if (disabled || optionValue === currentValue) return;\n if (!isControlled) {\n setInternalValue(optionValue);\n }\n onChange?.(optionValue);\n };\n\n const handleKeyDown = (e: React.KeyboardEvent, index: number) => {\n const nextIndex =\n e.key === \"ArrowRight\" || e.key === \"ArrowDown\"\n ? (index + 1) % options.length\n : e.key === \"ArrowLeft\" || e.key === \"ArrowUp\"\n ? (index - 1 + options.length) % options.length\n : null;\n if (nextIndex === null) return;\n e.preventDefault();\n const nextOption = options[nextIndex] as SegmentedControlOption;\n handleSelect(nextOption.value);\n buttonRefs.current[nextIndex]?.focus();\n };\n\n const renderSegment = (option: SegmentedControlOption, index: number) => {\n const isSelected = currentValue === option.value;\n // `brand` shows the label as visible text (with the icon); `pill`/`plain` render\n // icon-only when an icon is given, falling back to the label otherwise.\n const showLabelText = appearance === \"brand\" || !option.icon;\n return (\n // biome-ignore lint/a11y/useSemanticElements: native radio inputs only allow Tab-focus on the checked item; buttons with roving tabindex give full keyboard navigation\n <button\n key={option.value}\n ref={(el) => {\n buttonRefs.current[index] = el;\n }}\n type=\"button\"\n role=\"radio\"\n aria-checked={isSelected}\n tabIndex={isSelected || (!anySelected && index === 0) ? 0 : -1}\n disabled={disabled}\n aria-label={showLabelText ? undefined : option.label}\n onClick={() => handleSelect(option.value)}\n onKeyDown={(e) => handleKeyDown(e, index)}\n className={getSegmentClassName({ appearance, size, variant, isSelected, disabled })}\n >\n {option.icon && (\n <span className=\"flex shrink-0 items-center justify-center\" aria-hidden=\"true\">\n {option.icon}\n </span>\n )}\n {showLabelText && <span className=\"min-w-0 truncate\">{option.label}</span>}\n </button>\n );\n };\n\n // Off-screen replica of one segment used only to size the expanded control. Rendered as an\n // inert (disabled + `aria-hidden`) button with no `radio` semantics so it stays out of the\n // accessibility tree and tab order, and always with hug sizing so the replica reflects the\n // natural (uncompressed) width even under a `fill` layout.\n const renderMeasureSegment = (option: SegmentedControlOption) => {\n const showLabelText = appearance === \"brand\" || !option.icon;\n return (\n <button\n key={option.value}\n type=\"button\"\n disabled\n aria-hidden=\"true\"\n tabIndex={-1}\n className={getSegmentClassName({\n appearance,\n size,\n variant: \"hug\",\n isSelected: currentValue === option.value,\n disabled,\n })}\n >\n {option.icon && (\n <span className=\"flex shrink-0 items-center justify-center\" aria-hidden=\"true\">\n {option.icon}\n </span>\n )}\n {showLabelText && <span className=\"min-w-0 truncate\">{option.label}</span>}\n </button>\n );\n };\n\n // Collapsed: a single button showing the selected option's icon that cycles to the next\n // option on activation, wrapping from the last option back to the first.\n const selectedIndex = options.findIndex((option) => option.value === currentValue);\n const selectedOption = options[selectedIndex] ?? options[0];\n const handleCycle = () => {\n if (disabled || options.length === 0) return;\n const from = selectedIndex < 0 ? 0 : selectedIndex;\n const nextOption = options[(from + 1) % options.length] as SegmentedControlOption;\n handleSelect(nextOption.value);\n };\n\n return (\n <div\n ref={setRootRef}\n role={isCollapsed ? \"group\" : \"radiogroup\"}\n className={cn(\n \"relative items-center rounded-full\",\n variant === \"fill\" ? \"flex w-full\" : \"inline-flex\",\n isCollapsed\n ? // Collapsed, the toggle itself carries the surface, so the container drops its own\n // chrome and centres the button instead of pinning it to the start of a full-width\n // row — in a narrow rail that offset is the whole width of the column.\n \"justify-center\"\n : appearance === \"plain\"\n ? \"gap-2\"\n : \"bg-surface-tertiary p-1\",\n disabled && \"cursor-not-allowed opacity-50\",\n className,\n )}\n {...props}\n >\n {isCollapsed && selectedOption ? (\n <button\n type=\"button\"\n disabled={disabled}\n aria-label={selectedOption.label}\n onClick={handleCycle}\n className={getCollapsedButtonClassName({ appearance, size, disabled })}\n >\n {(collapsedIcon ?? selectedOption.icon) && (\n <span className=\"flex shrink-0 items-center justify-center\" aria-hidden=\"true\">\n {collapsedIcon ?? selectedOption.icon}\n </span>\n )}\n </button>\n ) : (\n options.map((option, index) => renderSegment(option, index))\n )}\n\n {canCollapse && (\n // Off-screen replica of the fully expanded control. Kept in the DOM (out of flow, hidden\n // from AT and tab order) so its natural width is always measurable, whether the visible\n // control is currently expanded or collapsed.\n <div\n ref={measureRef}\n aria-hidden=\"true\"\n className={cn(\n \"pointer-events-none invisible absolute top-0 left-0 -z-10 flex items-center whitespace-nowrap rounded-full\",\n appearance === \"plain\" ? \"gap-2\" : \"bg-surface-tertiary p-1\",\n )}\n >\n {options.map((option) => renderMeasureSegment(option))}\n </div>\n )}\n </div>\n );\n },\n);\n\nSegmentedControl.displayName = \"SegmentedControl\";\n"],"names":["cn","React","jsxs","jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAsFA,MAAM,cAAoD;AAAA,EACxD,MAAM;AAAA,EACN,MAAM;AAAA,EACN,MAAM;AACR;AAEA,SAAS,0BAA0B,WAAoB,gBAAyB;AAC9E,MAAI,QAAQ,IAAI,aAAa,cAAc;AACzC,QAAI,CAAC,aAAa,CAAC,gBAAgB;AACjC,cAAQ;AAAA,QACN;AAAA,MAAA;AAAA,IAEJ;AAAA,EACF;AACF;AAEA,SAAS,gCAAgC,SAAmC;AAC1E,MAAI,QAAQ,IAAI,aAAa,cAAc;AACzC,eAAW,UAAU,SAAS;AAC5B,UAAI,OAAO,QAAQ,CAAC,OAAO,OAAO,QAAQ;AACxC,gBAAQ;AAAA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= require("./components/EmptyState/EmptyState.cjs");
45
45
  const FanFollowerCount = require("./components/FanFollowerCount/FanFollowerCount.cjs");
46
46
  const FloatingActionButton = require("./components/FloatingActionButton/FloatingActionButton.cjs");
47
47
  const IconButton = require("./components/IconButton/IconButton.cjs");
48
+ const AddCircleIcon = require("./components/Icons/AddCircleIcon.cjs");
48
49
  const AddIcon = require("./components/Icons/AddIcon.cjs");
49
50
  const AffiliatesIcon = require("./components/Icons/AffiliatesIcon.cjs");
50
51
  const AI2Icon = require("./components/Icons/AI2Icon.cjs");
51
52
  const AICallIcon = require("./components/Icons/AICallIcon.cjs");
52
53
  const AIDisclosureIcon = require("./components/Icons/AIDisclosureIcon.cjs");
53
54
  const AIIcon = require("./components/Icons/AIIcon.cjs");
54
- const AiSettingsIcon = require("./components/Icons/AiSettingsIcon.cjs");
55
+ const AISettingsIcon = require("./components/Icons/AISettingsIcon.cjs");
55
56
  const AlertIcon = require("./components/Icons/AlertIcon.cjs");
56
57
  const AppsIcon = require("./components/Icons/AppsIcon.cjs");
57
58
  const ArrowDownIcon = require("./components/Icons/ArrowDownIcon.cjs");
@@ -361,13 +362,14 @@ exports.EmptyState = EmptyState.EmptyState;
361
362
  exports.FanFollowerCount = FanFollowerCount.FanFollowerCount;
362
363
  exports.FloatingActionButton = FloatingActionButton.FloatingActionButton;
363
364
  exports.IconButton = IconButton.IconButton;
365
+ exports.AddCircleIcon = AddCircleIcon.AddCircleIcon;
364
366
  exports.AddIcon = AddIcon.AddIcon;
365
367
  exports.AffiliatesIcon = AffiliatesIcon.AffiliatesIcon;
366
368
  exports.AI2Icon = AI2Icon.AI2Icon;
367
369
  exports.AICallIcon = AICallIcon.AICallIcon;
368
370
  exports.AIDisclosureIcon = AIDisclosureIcon.AIDisclosureIcon;
369
371
  exports.AIIcon = AIIcon.AIIcon;
370
- exports.AISettingsIcon = AiSettingsIcon.AISettingsIcon;
372
+ exports.AISettingsIcon = AISettingsIcon.AISettingsIcon;
371
373
  exports.AlertIcon = AlertIcon.AlertIcon;
372
374
  exports.AppsIcon = AppsIcon.AppsIcon;
373
375
  exports.ArrowDownIcon = ArrowDownIcon.ArrowDownIcon;
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,66 @@
1
+ "use client";
2
+ import { jsx } from "react/jsx-runtime";
3
+ import * as React from "react";
4
+ import { BaseIcon } from "./BaseIcon.mjs";
5
+ const VARIANTS = {
6
+ 16: {
7
+ outlined: [
8
+ {
9
+ d: "M11.954 15.227a.59.59 0 0 1-.574-.454l-.193-.84c-.1-.42-.42-.74-.833-.833l-.84-.193a.586.586 0 0 1-.454-.574c0-.273.187-.506.454-.573l.84-.193c.42-.1.74-.42.833-.834l.193-.84a.591.591 0 0 1 1.147 0l.193.84c.1.42.42.74.834.834l.84.193c.266.06.453.3.453.573a.586.586 0 0 1-.453.574l-.84.193c-.42.1-.74.42-.834.833l-.193.84a.58.58 0 0 1-.567.454zm-.834-2.9c.354.193.64.48.834.833.193-.353.48-.64.833-.833a2.1 2.1 0 0 1-.833-.834c-.194.354-.48.64-.834.834M8 10.5a2.5 2.5 0 0 1 0-5 2.5 2.5 0 0 1 0 5m0-4c-.827 0-1.5.673-1.5 1.5S7.173 9.5 8 9.5 9.5 8.827 9.5 8 8.827 6.5 8 6.5"
10
+ },
11
+ {
12
+ d: "M5.854 14.8a1.6 1.6 0 0 1-.8-.227l-1.147-.653a1.77 1.77 0 0 1-.827-1.067 1.74 1.74 0 0 1 .174-1.34c.2-.34.246-.646.133-.84s-.4-.306-.793-.306A1.77 1.77 0 0 1 .827 8.6V7.427A1.77 1.77 0 0 1 2.594 5.66c.393 0 .68-.113.793-.307.113-.193.067-.5-.133-.84a1.74 1.74 0 0 1-.174-1.34c.127-.46.414-.84.827-1.073l1.153-.66c.754-.447 1.74-.187 2.2.58l.074.133c.193.34.433.534.66.534.226 0 .466-.194.666-.534l.074-.126c.22-.374.573-.64.986-.747a1.58 1.58 0 0 1 1.227.167l1.147.653a1.766 1.766 0 0 1 .653 2.413c-.2.34-.247.647-.133.84.113.194.4.307.793.307a1.77 1.77 0 0 1 1.767 1.767V8.6c0 .273-.227.5-.5.5a.504.504 0 0 1-.5-.5V7.427a.77.77 0 0 0-.767-.767c-.76 0-1.367-.293-1.66-.807-.293-.513-.247-1.186.133-1.84a.76.76 0 0 0-.28-1.04l-1.153-.66a.6.6 0 0 0-.467-.066.63.63 0 0 0-.38.286l-.066.12c-.38.66-.94 1.034-1.534 1.034-.593 0-1.146-.38-1.526-1.034L6.4 2.527a.62.62 0 0 0-.833-.22l-1.16.666a.766.766 0 0 0-.28 1.04c.38.66.427 1.327.133 1.84-.293.514-.9.807-1.66.807a.77.77 0 0 0-.766.767V8.6c0 .42.346.767.766.767.76 0 1.367.293 1.66.806.294.514.247 1.187-.133 1.84a.76.76 0 0 0 .28 1.04l1.153.66a.61.61 0 0 0 .84-.22l.067-.12c.14-.24.447-.32.68-.18.24.14.32.447.18.68L7.254 14c-.307.513-.847.8-1.4.8"
13
+ }
14
+ ],
15
+ filled: [
16
+ {
17
+ d: "m10.827 12.973-.654-.193a.866.866 0 0 1-.64-.847.87.87 0 0 1 .654-.853l.64-.167c.34-.1.586-.346.68-.68l.173-.633.04-.113a.82.82 0 0 1 .793-.54.86.86 0 0 1 .82.546l.02.067.047.18c.527-.147.92-.627.92-1.2V7.38c0-.687-.567-1.253-1.26-1.253-1.194 0-1.68-.847-1.087-1.88.34-.6.14-1.367-.46-1.707l-1.14-.653a1.1 1.1 0 0 0-1.5.393l-.073.127c-.593 1.033-1.567 1.033-2.167 0L6.56 2.28a1.075 1.075 0 0 0-1.487-.393l-1.14.653c-.6.34-.806 1.113-.46 1.713.6 1.027.114 1.874-1.08 1.874-.686 0-1.253.56-1.253 1.253v1.16c0 .687.56 1.253 1.253 1.253 1.194 0 1.68.847 1.08 1.88-.34.6-.14 1.367.46 1.707l1.14.653c.52.307 1.194.127 1.5-.393l.074-.127c.593-1.033 1.566-1.033 2.166 0l.074.127c.306.52.98.707 1.5.393l1.033-.586a.96.96 0 0 0-.594-.474m-3.1-2.873c-1.18 0-2.14-.96-2.14-2.14s.96-2.14 2.14-2.14 2.14.96 2.14 2.14-.96 2.14-2.14 2.14"
18
+ },
19
+ {
20
+ d: "M14.867 11.947a.21.21 0 0 1-.154.193l-.653.18a1.61 1.61 0 0 0-1.146 1.147l-.174.64a.2.2 0 0 1-.207.16.2.2 0 0 1-.206-.16l-.174-.647a1.62 1.62 0 0 0-1.146-1.14l-.647-.173c-.14-.04-.153-.16-.153-.207 0-.053.013-.173.153-.213l.654-.174c.56-.16.986-.586 1.14-1.146l.186-.68a.21.21 0 0 1 .194-.134c.04 0 .153.014.193.12l.187.687c.153.56.586.987 1.146 1.147l.667.186a.22.22 0 0 1 .14.214"
21
+ }
22
+ ]
23
+ },
24
+ 24: {
25
+ outlined: [
26
+ {
27
+ d: "M17.93 22.84c-.41 0-.76-.28-.86-.68l-.29-1.26c-.15-.63-.63-1.11-1.25-1.25l-1.26-.29a.88.88 0 0 1-.68-.86c0-.41.28-.76.68-.86l1.26-.29c.63-.15 1.11-.63 1.25-1.25l.29-1.26c.09-.4.45-.68.86-.68s.76.28.86.68l.29 1.26c.15.63.63 1.11 1.25 1.25l1.26.29c.4.09.68.45.68.86s-.28.77-.68.86l-1.26.29c-.63.15-1.11.63-1.25 1.25l-.29 1.26c-.09.4-.44.68-.85.68zm-1.25-4.35c.53.29.96.72 1.25 1.25.29-.53.72-.96 1.25-1.25-.53-.29-.96-.72-1.25-1.25-.29.53-.72.96-1.25 1.25M12 15.75c-2.07 0-3.75-1.68-3.75-3.75S9.93 8.25 12 8.25s3.75 1.68 3.75 3.75-1.68 3.75-3.75 3.75m0-6c-1.24 0-2.25 1.01-2.25 2.25s1.01 2.25 2.25 2.25 2.25-1.01 2.25-2.25S13.24 9.75 12 9.75"
28
+ },
29
+ {
30
+ d: "M8.78 22.2c-.41 0-.82-.12-1.2-.34l-1.72-.98c-.61-.35-1.05-.92-1.24-1.6-.19-.69-.09-1.4.26-2.01.3-.51.37-.97.2-1.26s-.6-.46-1.19-.46c-1.46 0-2.65-1.19-2.65-2.65v-1.76c0-1.46 1.19-2.65 2.65-2.65.59 0 1.02-.17 1.19-.46s.1-.75-.2-1.26c-.35-.61-.45-1.33-.26-2.01.19-.69.62-1.26 1.24-1.61l1.73-.99c1.13-.67 2.61-.28 3.3.87l.11.2c.29.51.65.8.99.8s.7-.29 1-.8l.11-.19c.33-.56.86-.96 1.48-1.12.63-.17 1.28-.08 1.84.25l1.72.98a2.65 2.65 0 0 1 .98 3.62c-.3.51-.37.97-.2 1.26s.6.46 1.19.46c1.46 0 2.65 1.19 2.65 2.65v1.76c0 .41-.34.75-.75.75s-.75-.34-.75-.75v-1.76c0-.63-.52-1.15-1.15-1.15-1.14 0-2.05-.44-2.49-1.21s-.37-1.78.2-2.76c.15-.26.19-.57.11-.87s-.27-.54-.53-.69l-1.73-.99a.9.9 0 0 0-.7-.1c-.24.06-.44.22-.57.43l-.1.18c-.57.99-1.41 1.55-2.3 1.55s-1.72-.57-2.29-1.55l-.11-.19a.926.926 0 0 0-1.25-.33l-1.74 1a1.15 1.15 0 0 0-.42 1.56c.57.99.64 1.99.2 2.76S5.04 9.99 3.9 9.99c-.63 0-1.15.52-1.15 1.15v1.76c0 .63.52 1.15 1.15 1.15 1.14 0 2.05.44 2.49 1.21s.37 1.78-.2 2.76c-.15.26-.19.57-.11.87s.27.54.53.69l1.73.99c.44.26 1 .11 1.26-.33l.1-.18c.21-.36.67-.48 1.02-.27.36.21.48.67.27 1.02l-.11.19c-.46.77-1.27 1.2-2.1 1.2"
31
+ }
32
+ ],
33
+ filled: [
34
+ {
35
+ d: "m16.24 19.46-.98-.29a1.3 1.3 0 0 1-.96-1.27c0-.61.38-1.11.98-1.28l.96-.25c.51-.15.88-.52 1.02-1.02l.26-.95.06-.17c.19-.5.64-.81 1.19-.81.56 0 1.04.32 1.23.82l.03.1.07.27c.79-.22 1.38-.94 1.38-1.8v-1.74c0-1.03-.85-1.88-1.89-1.88-1.79 0-2.52-1.27-1.63-2.82.51-.9.21-2.05-.69-2.56l-1.71-.98c-.78-.46-1.79-.19-2.25.59l-.11.19c-.89 1.55-2.35 1.55-3.25 0l-.11-.19a1.61 1.61 0 0 0-2.23-.59l-1.71.98c-.9.51-1.21 1.67-.69 2.57.9 1.54.17 2.81-1.62 2.81-1.03 0-1.88.84-1.88 1.88v1.74c0 1.03.84 1.88 1.88 1.88 1.79 0 2.52 1.27 1.62 2.82-.51.9-.21 2.05.69 2.56l1.71.98c.78.46 1.79.19 2.25-.59l.11-.19c.89-1.55 2.35-1.55 3.25 0l.11.19c.46.78 1.47 1.06 2.25.59l1.55-.88c-.19-.35-.5-.6-.89-.71m-4.65-4.31c-1.77 0-3.21-1.44-3.21-3.21s1.44-3.21 3.21-3.21 3.21 1.44 3.21 3.21-1.44 3.21-3.21 3.21"
36
+ },
37
+ {
38
+ d: "M22.3 17.92c0 .07-.04.23-.23.29l-.98.27c-.85.23-1.49.87-1.72 1.72l-.26.96c-.06.22-.23.24-.31.24s-.25-.02-.31-.24l-.26-.97c-.23-.84-.88-1.48-1.72-1.71l-.97-.26c-.21-.06-.23-.24-.23-.31 0-.08.02-.26.23-.32l.98-.26c.84-.24 1.48-.88 1.71-1.72l.28-1.02c.07-.17.23-.2.29-.2s.23.02.29.18l.28 1.03c.23.84.88 1.48 1.72 1.72l1 .28c.2.08.21.26.21.32"
39
+ }
40
+ ]
41
+ },
42
+ 32: {
43
+ outlined: [
44
+ {
45
+ d: "M23.907 30.453a1.18 1.18 0 0 1-1.147-.906l-.386-1.68c-.2-.84-.84-1.48-1.667-1.667l-1.68-.387a1.17 1.17 0 0 1-.907-1.146c0-.547.374-1.014.907-1.147l1.68-.387c.84-.2 1.48-.84 1.667-1.666l.386-1.68c.12-.534.6-.907 1.147-.907s1.013.373 1.147.907l.386 1.68c.2.84.84 1.48 1.667 1.666l1.68.387c.533.12.907.6.907 1.147a1.17 1.17 0 0 1-.907 1.146l-1.68.387c-.84.2-1.48.84-1.667 1.667l-.386 1.68c-.12.533-.587.906-1.134.906zm-1.667-5.8c.707.387 1.28.96 1.667 1.667.387-.707.96-1.28 1.667-1.667a4.2 4.2 0 0 1-1.667-1.666 4.2 4.2 0 0 1-1.667 1.666M16 21c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.653 0-3 1.347-3 3s1.347 3 3 3 3-1.347 3-3-1.347-3-3-3"
46
+ },
47
+ {
48
+ d: "M11.707 29.6c-.547 0-1.093-.16-1.6-.453L7.814 27.84a3.54 3.54 0 0 1-1.654-2.133 3.48 3.48 0 0 1 .347-2.68c.4-.68.493-1.294.267-1.68-.227-.387-.8-.614-1.587-.614A3.54 3.54 0 0 1 1.654 17.2v-2.347a3.54 3.54 0 0 1 3.533-3.533c.787 0 1.36-.227 1.587-.613.226-.387.133-1-.267-1.68a3.5 3.5 0 0 1-.347-2.68c.254-.92.827-1.68 1.654-2.147l2.306-1.32c1.507-.893 3.48-.373 4.4 1.16l.147.267c.386.68.867 1.066 1.32 1.066s.933-.386 1.333-1.066l.147-.254A3.22 3.22 0 0 1 19.44 2.56a3.16 3.16 0 0 1 2.453.333L24.188 4.2a3.54 3.54 0 0 1 1.307 4.827c-.4.68-.494 1.293-.267 1.68.226.386.8.613 1.587.613a3.54 3.54 0 0 1 3.533 3.533V17.2c0 .547-.454 1-1 1-.547 0-1-.453-1-1v-2.347c0-.84-.694-1.533-1.533-1.533-1.52 0-2.734-.587-3.32-1.613-.587-1.027-.494-2.374.266-3.68.2-.347.253-.76.147-1.16s-.36-.72-.707-.92l-2.306-1.32a1.2 1.2 0 0 0-.934-.134c-.32.08-.587.294-.76.574l-.133.24c-.76 1.32-1.88 2.066-3.067 2.066s-2.293-.76-3.053-2.066l-.147-.254a1.235 1.235 0 0 0-1.666-.44l-2.32 1.334a1.53 1.53 0 0 0-.56 2.08c.76 1.32.853 2.653.266 3.68-.586 1.026-1.8 1.613-3.32 1.613-.84 0-1.533.693-1.533 1.533V17.2c0 .84.693 1.533 1.533 1.533 1.52 0 2.734.587 3.32 1.614.587 1.026.494 2.373-.266 3.68-.2.346-.254.76-.147 1.16s.36.72.707.92l2.306 1.32a1.224 1.224 0 0 0 1.68-.44l.134-.24a.99.99 0 0 1 1.36-.36c.48.28.64.893.36 1.36l-.147.253a3.26 3.26 0 0 1-2.8 1.6"
49
+ }
50
+ ],
51
+ filled: [
52
+ {
53
+ d: "m21.653 25.947-1.306-.387a1.73 1.73 0 0 1-1.28-1.693c0-.814.506-1.48 1.306-1.707l1.28-.333c.68-.2 1.174-.694 1.36-1.36l.347-1.267.08-.227c.253-.666.853-1.08 1.587-1.08.746 0 1.386.427 1.64 1.094l.04.133.093.36c1.053-.293 1.84-1.253 1.84-2.4v-2.32a2.524 2.524 0 0 0-2.52-2.507c-2.387 0-3.36-1.693-2.173-3.76.68-1.2.28-2.733-.92-3.413l-2.28-1.307a2.2 2.2 0 0 0-3 .787l-.147.253c-1.187 2.067-3.133 2.067-4.333 0l-.147-.253a2.15 2.15 0 0 0-2.973-.787L7.867 5.08c-1.2.68-1.614 2.227-.92 3.427 1.2 2.053.226 3.746-2.16 3.746A2.51 2.51 0 0 0 2.28 14.76v2.32a2.51 2.51 0 0 0 2.507 2.507c2.386 0 3.36 1.693 2.16 3.76-.68 1.2-.28 2.733.92 3.413l2.28 1.307c1.04.613 2.386.253 3-.787l.146-.253c1.187-2.067 3.134-2.067 4.334 0l.146.253c.614 1.04 1.96 1.413 3 .787l2.067-1.174a1.92 1.92 0 0 0-1.187-.946m-6.2-5.747c-2.36 0-4.28-1.92-4.28-4.28s1.92-4.28 4.28-4.28 4.28 1.92 4.28 4.28-1.92 4.28-4.28 4.28"
54
+ },
55
+ {
56
+ d: "M29.733 23.893a.415.415 0 0 1-.306.387l-1.307.36a3.22 3.22 0 0 0-2.293 2.293l-.347 1.28c-.08.294-.307.32-.413.32-.107 0-.334-.026-.414-.32l-.346-1.293a3.25 3.25 0 0 0-2.294-2.28l-1.293-.347a.41.41 0 0 1-.307-.413c0-.107.027-.347.307-.427l1.307-.346a3.27 3.27 0 0 0 2.28-2.294l.373-1.36a.43.43 0 0 1 .387-.266c.08 0 .306.026.386.24l.374 1.373a3.29 3.29 0 0 0 2.293 2.293l1.333.374c.267.106.28.346.28.426"
57
+ }
58
+ ]
59
+ }
60
+ };
61
+ const AISettingsIcon = React.forwardRef((props, ref) => /* @__PURE__ */ jsx(BaseIcon, { ref, variants: VARIANTS, ...props }));
62
+ AISettingsIcon.displayName = "AISettingsIcon";
63
+ export {
64
+ AISettingsIcon
65
+ };
66
+ //# sourceMappingURL=AISettingsIcon.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AISettingsIcon.mjs","sources":["../../../src/components/Icons/AISettingsIcon.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { BaseIcon } from \"./BaseIcon\";\nimport type { BaseIconProps, IconVariants } from \"./types\";\n\nconst VARIANTS: IconVariants = {\n 16: {\n outlined: [\n {\n d: \"M11.954 15.227a.59.59 0 0 1-.574-.454l-.193-.84c-.1-.42-.42-.74-.833-.833l-.84-.193a.586.586 0 0 1-.454-.574c0-.273.187-.506.454-.573l.84-.193c.42-.1.74-.42.833-.834l.193-.84a.591.591 0 0 1 1.147 0l.193.84c.1.42.42.74.834.834l.84.193c.266.06.453.3.453.573a.586.586 0 0 1-.453.574l-.84.193c-.42.1-.74.42-.834.833l-.193.84a.58.58 0 0 1-.567.454zm-.834-2.9c.354.193.64.48.834.833.193-.353.48-.64.833-.833a2.1 2.1 0 0 1-.833-.834c-.194.354-.48.64-.834.834M8 10.5a2.5 2.5 0 0 1 0-5 2.5 2.5 0 0 1 0 5m0-4c-.827 0-1.5.673-1.5 1.5S7.173 9.5 8 9.5 9.5 8.827 9.5 8 8.827 6.5 8 6.5\",\n },\n {\n d: \"M5.854 14.8a1.6 1.6 0 0 1-.8-.227l-1.147-.653a1.77 1.77 0 0 1-.827-1.067 1.74 1.74 0 0 1 .174-1.34c.2-.34.246-.646.133-.84s-.4-.306-.793-.306A1.77 1.77 0 0 1 .827 8.6V7.427A1.77 1.77 0 0 1 2.594 5.66c.393 0 .68-.113.793-.307.113-.193.067-.5-.133-.84a1.74 1.74 0 0 1-.174-1.34c.127-.46.414-.84.827-1.073l1.153-.66c.754-.447 1.74-.187 2.2.58l.074.133c.193.34.433.534.66.534.226 0 .466-.194.666-.534l.074-.126c.22-.374.573-.64.986-.747a1.58 1.58 0 0 1 1.227.167l1.147.653a1.766 1.766 0 0 1 .653 2.413c-.2.34-.247.647-.133.84.113.194.4.307.793.307a1.77 1.77 0 0 1 1.767 1.767V8.6c0 .273-.227.5-.5.5a.504.504 0 0 1-.5-.5V7.427a.77.77 0 0 0-.767-.767c-.76 0-1.367-.293-1.66-.807-.293-.513-.247-1.186.133-1.84a.76.76 0 0 0-.28-1.04l-1.153-.66a.6.6 0 0 0-.467-.066.63.63 0 0 0-.38.286l-.066.12c-.38.66-.94 1.034-1.534 1.034-.593 0-1.146-.38-1.526-1.034L6.4 2.527a.62.62 0 0 0-.833-.22l-1.16.666a.766.766 0 0 0-.28 1.04c.38.66.427 1.327.133 1.84-.293.514-.9.807-1.66.807a.77.77 0 0 0-.766.767V8.6c0 .42.346.767.766.767.76 0 1.367.293 1.66.806.294.514.247 1.187-.133 1.84a.76.76 0 0 0 .28 1.04l1.153.66a.61.61 0 0 0 .84-.22l.067-.12c.14-.24.447-.32.68-.18.24.14.32.447.18.68L7.254 14c-.307.513-.847.8-1.4.8\",\n },\n ],\n filled: [\n {\n d: \"m10.827 12.973-.654-.193a.866.866 0 0 1-.64-.847.87.87 0 0 1 .654-.853l.64-.167c.34-.1.586-.346.68-.68l.173-.633.04-.113a.82.82 0 0 1 .793-.54.86.86 0 0 1 .82.546l.02.067.047.18c.527-.147.92-.627.92-1.2V7.38c0-.687-.567-1.253-1.26-1.253-1.194 0-1.68-.847-1.087-1.88.34-.6.14-1.367-.46-1.707l-1.14-.653a1.1 1.1 0 0 0-1.5.393l-.073.127c-.593 1.033-1.567 1.033-2.167 0L6.56 2.28a1.075 1.075 0 0 0-1.487-.393l-1.14.653c-.6.34-.806 1.113-.46 1.713.6 1.027.114 1.874-1.08 1.874-.686 0-1.253.56-1.253 1.253v1.16c0 .687.56 1.253 1.253 1.253 1.194 0 1.68.847 1.08 1.88-.34.6-.14 1.367.46 1.707l1.14.653c.52.307 1.194.127 1.5-.393l.074-.127c.593-1.033 1.566-1.033 2.166 0l.074.127c.306.52.98.707 1.5.393l1.033-.586a.96.96 0 0 0-.594-.474m-3.1-2.873c-1.18 0-2.14-.96-2.14-2.14s.96-2.14 2.14-2.14 2.14.96 2.14 2.14-.96 2.14-2.14 2.14\",\n },\n {\n d: \"M14.867 11.947a.21.21 0 0 1-.154.193l-.653.18a1.61 1.61 0 0 0-1.146 1.147l-.174.64a.2.2 0 0 1-.207.16.2.2 0 0 1-.206-.16l-.174-.647a1.62 1.62 0 0 0-1.146-1.14l-.647-.173c-.14-.04-.153-.16-.153-.207 0-.053.013-.173.153-.213l.654-.174c.56-.16.986-.586 1.14-1.146l.186-.68a.21.21 0 0 1 .194-.134c.04 0 .153.014.193.12l.187.687c.153.56.586.987 1.146 1.147l.667.186a.22.22 0 0 1 .14.214\",\n },\n ],\n },\n 24: {\n outlined: [\n {\n d: \"M17.93 22.84c-.41 0-.76-.28-.86-.68l-.29-1.26c-.15-.63-.63-1.11-1.25-1.25l-1.26-.29a.88.88 0 0 1-.68-.86c0-.41.28-.76.68-.86l1.26-.29c.63-.15 1.11-.63 1.25-1.25l.29-1.26c.09-.4.45-.68.86-.68s.76.28.86.68l.29 1.26c.15.63.63 1.11 1.25 1.25l1.26.29c.4.09.68.45.68.86s-.28.77-.68.86l-1.26.29c-.63.15-1.11.63-1.25 1.25l-.29 1.26c-.09.4-.44.68-.85.68zm-1.25-4.35c.53.29.96.72 1.25 1.25.29-.53.72-.96 1.25-1.25-.53-.29-.96-.72-1.25-1.25-.29.53-.72.96-1.25 1.25M12 15.75c-2.07 0-3.75-1.68-3.75-3.75S9.93 8.25 12 8.25s3.75 1.68 3.75 3.75-1.68 3.75-3.75 3.75m0-6c-1.24 0-2.25 1.01-2.25 2.25s1.01 2.25 2.25 2.25 2.25-1.01 2.25-2.25S13.24 9.75 12 9.75\",\n },\n {\n d: \"M8.78 22.2c-.41 0-.82-.12-1.2-.34l-1.72-.98c-.61-.35-1.05-.92-1.24-1.6-.19-.69-.09-1.4.26-2.01.3-.51.37-.97.2-1.26s-.6-.46-1.19-.46c-1.46 0-2.65-1.19-2.65-2.65v-1.76c0-1.46 1.19-2.65 2.65-2.65.59 0 1.02-.17 1.19-.46s.1-.75-.2-1.26c-.35-.61-.45-1.33-.26-2.01.19-.69.62-1.26 1.24-1.61l1.73-.99c1.13-.67 2.61-.28 3.3.87l.11.2c.29.51.65.8.99.8s.7-.29 1-.8l.11-.19c.33-.56.86-.96 1.48-1.12.63-.17 1.28-.08 1.84.25l1.72.98a2.65 2.65 0 0 1 .98 3.62c-.3.51-.37.97-.2 1.26s.6.46 1.19.46c1.46 0 2.65 1.19 2.65 2.65v1.76c0 .41-.34.75-.75.75s-.75-.34-.75-.75v-1.76c0-.63-.52-1.15-1.15-1.15-1.14 0-2.05-.44-2.49-1.21s-.37-1.78.2-2.76c.15-.26.19-.57.11-.87s-.27-.54-.53-.69l-1.73-.99a.9.9 0 0 0-.7-.1c-.24.06-.44.22-.57.43l-.1.18c-.57.99-1.41 1.55-2.3 1.55s-1.72-.57-2.29-1.55l-.11-.19a.926.926 0 0 0-1.25-.33l-1.74 1a1.15 1.15 0 0 0-.42 1.56c.57.99.64 1.99.2 2.76S5.04 9.99 3.9 9.99c-.63 0-1.15.52-1.15 1.15v1.76c0 .63.52 1.15 1.15 1.15 1.14 0 2.05.44 2.49 1.21s.37 1.78-.2 2.76c-.15.26-.19.57-.11.87s.27.54.53.69l1.73.99c.44.26 1 .11 1.26-.33l.1-.18c.21-.36.67-.48 1.02-.27.36.21.48.67.27 1.02l-.11.19c-.46.77-1.27 1.2-2.1 1.2\",\n },\n ],\n filled: [\n {\n d: \"m16.24 19.46-.98-.29a1.3 1.3 0 0 1-.96-1.27c0-.61.38-1.11.98-1.28l.96-.25c.51-.15.88-.52 1.02-1.02l.26-.95.06-.17c.19-.5.64-.81 1.19-.81.56 0 1.04.32 1.23.82l.03.1.07.27c.79-.22 1.38-.94 1.38-1.8v-1.74c0-1.03-.85-1.88-1.89-1.88-1.79 0-2.52-1.27-1.63-2.82.51-.9.21-2.05-.69-2.56l-1.71-.98c-.78-.46-1.79-.19-2.25.59l-.11.19c-.89 1.55-2.35 1.55-3.25 0l-.11-.19a1.61 1.61 0 0 0-2.23-.59l-1.71.98c-.9.51-1.21 1.67-.69 2.57.9 1.54.17 2.81-1.62 2.81-1.03 0-1.88.84-1.88 1.88v1.74c0 1.03.84 1.88 1.88 1.88 1.79 0 2.52 1.27 1.62 2.82-.51.9-.21 2.05.69 2.56l1.71.98c.78.46 1.79.19 2.25-.59l.11-.19c.89-1.55 2.35-1.55 3.25 0l.11.19c.46.78 1.47 1.06 2.25.59l1.55-.88c-.19-.35-.5-.6-.89-.71m-4.65-4.31c-1.77 0-3.21-1.44-3.21-3.21s1.44-3.21 3.21-3.21 3.21 1.44 3.21 3.21-1.44 3.21-3.21 3.21\",\n },\n {\n d: \"M22.3 17.92c0 .07-.04.23-.23.29l-.98.27c-.85.23-1.49.87-1.72 1.72l-.26.96c-.06.22-.23.24-.31.24s-.25-.02-.31-.24l-.26-.97c-.23-.84-.88-1.48-1.72-1.71l-.97-.26c-.21-.06-.23-.24-.23-.31 0-.08.02-.26.23-.32l.98-.26c.84-.24 1.48-.88 1.71-1.72l.28-1.02c.07-.17.23-.2.29-.2s.23.02.29.18l.28 1.03c.23.84.88 1.48 1.72 1.72l1 .28c.2.08.21.26.21.32\",\n },\n ],\n },\n 32: {\n outlined: [\n {\n d: \"M23.907 30.453a1.18 1.18 0 0 1-1.147-.906l-.386-1.68c-.2-.84-.84-1.48-1.667-1.667l-1.68-.387a1.17 1.17 0 0 1-.907-1.146c0-.547.374-1.014.907-1.147l1.68-.387c.84-.2 1.48-.84 1.667-1.666l.386-1.68c.12-.534.6-.907 1.147-.907s1.013.373 1.147.907l.386 1.68c.2.84.84 1.48 1.667 1.666l1.68.387c.533.12.907.6.907 1.147a1.17 1.17 0 0 1-.907 1.146l-1.68.387c-.84.2-1.48.84-1.667 1.667l-.386 1.68c-.12.533-.587.906-1.134.906zm-1.667-5.8c.707.387 1.28.96 1.667 1.667.387-.707.96-1.28 1.667-1.667a4.2 4.2 0 0 1-1.667-1.666 4.2 4.2 0 0 1-1.667 1.666M16 21c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.653 0-3 1.347-3 3s1.347 3 3 3 3-1.347 3-3-1.347-3-3-3\",\n },\n {\n d: \"M11.707 29.6c-.547 0-1.093-.16-1.6-.453L7.814 27.84a3.54 3.54 0 0 1-1.654-2.133 3.48 3.48 0 0 1 .347-2.68c.4-.68.493-1.294.267-1.68-.227-.387-.8-.614-1.587-.614A3.54 3.54 0 0 1 1.654 17.2v-2.347a3.54 3.54 0 0 1 3.533-3.533c.787 0 1.36-.227 1.587-.613.226-.387.133-1-.267-1.68a3.5 3.5 0 0 1-.347-2.68c.254-.92.827-1.68 1.654-2.147l2.306-1.32c1.507-.893 3.48-.373 4.4 1.16l.147.267c.386.68.867 1.066 1.32 1.066s.933-.386 1.333-1.066l.147-.254A3.22 3.22 0 0 1 19.44 2.56a3.16 3.16 0 0 1 2.453.333L24.188 4.2a3.54 3.54 0 0 1 1.307 4.827c-.4.68-.494 1.293-.267 1.68.226.386.8.613 1.587.613a3.54 3.54 0 0 1 3.533 3.533V17.2c0 .547-.454 1-1 1-.547 0-1-.453-1-1v-2.347c0-.84-.694-1.533-1.533-1.533-1.52 0-2.734-.587-3.32-1.613-.587-1.027-.494-2.374.266-3.68.2-.347.253-.76.147-1.16s-.36-.72-.707-.92l-2.306-1.32a1.2 1.2 0 0 0-.934-.134c-.32.08-.587.294-.76.574l-.133.24c-.76 1.32-1.88 2.066-3.067 2.066s-2.293-.76-3.053-2.066l-.147-.254a1.235 1.235 0 0 0-1.666-.44l-2.32 1.334a1.53 1.53 0 0 0-.56 2.08c.76 1.32.853 2.653.266 3.68-.586 1.026-1.8 1.613-3.32 1.613-.84 0-1.533.693-1.533 1.533V17.2c0 .84.693 1.533 1.533 1.533 1.52 0 2.734.587 3.32 1.614.587 1.026.494 2.373-.266 3.68-.2.346-.254.76-.147 1.16s.36.72.707.92l2.306 1.32a1.224 1.224 0 0 0 1.68-.44l.134-.24a.99.99 0 0 1 1.36-.36c.48.28.64.893.36 1.36l-.147.253a3.26 3.26 0 0 1-2.8 1.6\",\n },\n ],\n filled: [\n {\n d: \"m21.653 25.947-1.306-.387a1.73 1.73 0 0 1-1.28-1.693c0-.814.506-1.48 1.306-1.707l1.28-.333c.68-.2 1.174-.694 1.36-1.36l.347-1.267.08-.227c.253-.666.853-1.08 1.587-1.08.746 0 1.386.427 1.64 1.094l.04.133.093.36c1.053-.293 1.84-1.253 1.84-2.4v-2.32a2.524 2.524 0 0 0-2.52-2.507c-2.387 0-3.36-1.693-2.173-3.76.68-1.2.28-2.733-.92-3.413l-2.28-1.307a2.2 2.2 0 0 0-3 .787l-.147.253c-1.187 2.067-3.133 2.067-4.333 0l-.147-.253a2.15 2.15 0 0 0-2.973-.787L7.867 5.08c-1.2.68-1.614 2.227-.92 3.427 1.2 2.053.226 3.746-2.16 3.746A2.51 2.51 0 0 0 2.28 14.76v2.32a2.51 2.51 0 0 0 2.507 2.507c2.386 0 3.36 1.693 2.16 3.76-.68 1.2-.28 2.733.92 3.413l2.28 1.307c1.04.613 2.386.253 3-.787l.146-.253c1.187-2.067 3.134-2.067 4.334 0l.146.253c.614 1.04 1.96 1.413 3 .787l2.067-1.174a1.92 1.92 0 0 0-1.187-.946m-6.2-5.747c-2.36 0-4.28-1.92-4.28-4.28s1.92-4.28 4.28-4.28 4.28 1.92 4.28 4.28-1.92 4.28-4.28 4.28\",\n },\n {\n d: \"M29.733 23.893a.415.415 0 0 1-.306.387l-1.307.36a3.22 3.22 0 0 0-2.293 2.293l-.347 1.28c-.08.294-.307.32-.413.32-.107 0-.334-.026-.414-.32l-.346-1.293a3.25 3.25 0 0 0-2.294-2.28l-1.293-.347a.41.41 0 0 1-.307-.413c0-.107.027-.347.307-.427l1.307-.346a3.27 3.27 0 0 0 2.28-2.294l.373-1.36a.43.43 0 0 1 .387-.266c.08 0 .306.026.386.24l.374 1.373a3.29 3.29 0 0 0 2.293 2.293l1.333.374c.267.106.28.346.28.426\",\n },\n ],\n },\n};\n\n/** Props for {@link AISettingsIcon}. See {@link BaseIconProps} for the shared shape. */\nexport type AISettingsIconProps = BaseIconProps;\n\n/**\n * AI Settings icon. Renders at sizes 16, 24, or 32 px with outlined and filled variants.\n *\n * @example\n * ```tsx\n * <AISettingsIcon size={24} filled />\n * ```\n */\nexport const AISettingsIcon = React.forwardRef<SVGSVGElement, AISettingsIconProps>((props, ref) => (\n <BaseIcon ref={ref} variants={VARIANTS} {...props} />\n));\n\nAISettingsIcon.displayName = \"AISettingsIcon\";\n"],"names":[],"mappings":";;;;AAIA,MAAM,WAAyB;AAAA,EAC7B,IAAI;AAAA,IACF,UAAU;AAAA,MACR;AAAA,QACE,GAAG;AAAA,MAAA;AAAA,MAEL;AAAA,QACE,GAAG;AAAA,MAAA;AAAA,IACL;AAAA,IAEF,QAAQ;AAAA,MACN;AAAA,QACE,GAAG;AAAA,MAAA;AAAA,MAEL;AAAA,QACE,GAAG;AAAA,MAAA;AAAA,IACL;AAAA,EACF;AAAA,EAEF,IAAI;AAAA,IACF,UAAU;AAAA,MACR;AAAA,QACE,GAAG;AAAA,MAAA;AAAA,MAEL;AAAA,QACE,GAAG;AAAA,MAAA;AAAA,IACL;AAAA,IAEF,QAAQ;AAAA,MACN;AAAA,QACE,GAAG;AAAA,MAAA;AAAA,MAEL;AAAA,QACE,GAAG;AAAA,MAAA;AAAA,IACL;AAAA,EACF;AAAA,EAEF,IAAI;AAAA,IACF,UAAU;AAAA,MACR;AAAA,QACE,GAAG;AAAA,MAAA;AAAA,MAEL;AAAA,QACE,GAAG;AAAA,MAAA;AAAA,IACL;AAAA,IAEF,QAAQ;AAAA,MACN;AAAA,QACE,GAAG;AAAA,MAAA;AAAA,MAEL;AAAA,QACE,GAAG;AAAA,MAAA;AAAA,IACL;AAAA,EACF;AAEJ;AAaO,MAAM,iBAAiB,MAAM,WAA+C,CAAC,OAAO,QACzF,oBAAC,UAAA,EAAS,KAAU,UAAU,UAAW,GAAG,OAAO,CACpD;AAED,eAAe,cAAc;"}
@@ -0,0 +1,64 @@
1
+ "use client";
2
+ import { jsx } from "react/jsx-runtime";
3
+ import * as React from "react";
4
+ import { BaseIcon } from "./BaseIcon.mjs";
5
+ const VARIANTS = {
6
+ 16: {
7
+ outlined: [
8
+ {
9
+ d: "M10.667 8.5H5.334a.504.504 0 0 1-.5-.5c0-.273.226-.5.5-.5h5.333c.273 0 .5.227.5.5s-.227.5-.5.5"
10
+ },
11
+ {
12
+ d: "M8 11.167a.504.504 0 0 1-.5-.5V5.333c0-.273.227-.5.5-.5s.5.227.5.5v5.334c0 .273-.227.5-.5.5"
13
+ },
14
+ {
15
+ d: "M10 15.167H6C2.38 15.167.833 13.62.833 10V6C.833 2.38 2.38.833 6 .833h4c3.62 0 5.167 1.547 5.167 5.167v4c0 3.62-1.547 5.167-5.167 5.167M6 1.833C2.927 1.833 1.834 2.927 1.834 6v4c0 3.073 1.093 4.167 4.166 4.167h4c3.073 0 4.167-1.094 4.167-4.167V6c0-3.073-1.094-4.167-4.167-4.167z"
16
+ }
17
+ ],
18
+ filled: [
19
+ {
20
+ d: "M10.793 1.333H5.207c-2.427 0-3.874 1.447-3.874 3.874v5.58c0 2.433 1.447 3.88 3.874 3.88h5.58c2.426 0 3.873-1.447 3.873-3.874V5.207c.007-2.427-1.44-3.874-3.867-3.874M10.667 8.5H8.5v2.167c0 .273-.227.5-.5.5a.504.504 0 0 1-.5-.5V8.5H5.333a.504.504 0 0 1-.5-.5c0-.273.227-.5.5-.5H7.5V5.333c0-.273.227-.5.5-.5s.5.227.5.5V7.5h2.167c.273 0 .5.227.5.5s-.227.5-.5.5"
21
+ }
22
+ ]
23
+ },
24
+ 24: {
25
+ outlined: [
26
+ {
27
+ d: "M16 12.75H8c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h8c.41 0 .75.34.75.75s-.34.75-.75.75"
28
+ },
29
+ {
30
+ d: "M12 16.75c-.41 0-.75-.34-.75-.75V8c0-.41.34-.75.75-.75s.75.34.75.75v8c0 .41-.34.75-.75.75"
31
+ },
32
+ {
33
+ d: "M15 22.75H9c-5.43 0-7.75-2.32-7.75-7.75V9c0-5.43 2.32-7.75 7.75-7.75h6c5.43 0 7.75 2.32 7.75 7.75v6c0 5.43-2.32 7.75-7.75 7.75m-6-20C4.39 2.75 2.75 4.39 2.75 9v6c0 4.61 1.64 6.25 6.25 6.25h6c4.61 0 6.25-1.64 6.25-6.25V9c0-4.61-1.64-6.25-6.25-6.25z"
34
+ }
35
+ ],
36
+ filled: [
37
+ {
38
+ d: "M16.19 2H7.81C4.17 2 2 4.17 2 7.81v8.37C2 19.83 4.17 22 7.81 22h8.37c3.64 0 5.81-2.17 5.81-5.81V7.81C22 4.17 19.83 2 16.19 2M16 12.75h-3.25V16c0 .41-.34.75-.75.75s-.75-.34-.75-.75v-3.25H8c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h3.25V8c0-.41.34-.75.75-.75s.75.34.75.75v3.25H16c.41 0 .75.34.75.75s-.34.75-.75.75"
39
+ }
40
+ ]
41
+ },
42
+ 32: {
43
+ outlined: [
44
+ { d: "M21.334 17H10.667c-.547 0-1-.453-1-1s.453-1 1-1h10.667c.546 0 1 .453 1 1s-.454 1-1 1" },
45
+ {
46
+ d: "M16 22.333c-.547 0-1-.453-1-1V10.667c0-.547.453-1 1-1s1 .453 1 1v10.666c0 .547-.453 1-1 1"
47
+ },
48
+ {
49
+ d: "M20 30.333h-8C4.76 30.333 1.667 27.24 1.667 20v-8C1.667 4.76 4.76 1.667 12 1.667h8c7.24 0 10.334 3.093 10.334 10.333v8c0 7.24-3.094 10.333-10.334 10.333M12 3.667c-6.146 0-8.333 2.186-8.333 8.333v8c0 6.147 2.187 8.333 8.333 8.333h8c6.147 0 8.334-2.186 8.334-8.333v-8c0-6.147-2.187-8.333-8.334-8.333z"
50
+ }
51
+ ],
52
+ filled: [
53
+ {
54
+ d: "M21.587 2.667H10.413c-4.853 0-7.746 2.893-7.746 7.746v11.16c0 4.867 2.893 7.76 7.746 7.76h11.16c4.854 0 7.747-2.893 7.747-7.746V10.413c.013-4.853-2.88-7.746-7.733-7.746M21.333 17H17v4.333c0 .547-.453 1-1 1s-1-.453-1-1V17h-4.334c-.546 0-1-.453-1-1s.454-1 1-1H15v-4.333c0-.547.453-1 1-1s1 .453 1 1V15h4.333c.547 0 1 .453 1 1s-.453 1-1 1"
55
+ }
56
+ ]
57
+ }
58
+ };
59
+ const AddCircleIcon = React.forwardRef((props, ref) => /* @__PURE__ */ jsx(BaseIcon, { ref, variants: VARIANTS, ...props }));
60
+ AddCircleIcon.displayName = "AddCircleIcon";
61
+ export {
62
+ AddCircleIcon
63
+ };
64
+ //# sourceMappingURL=AddCircleIcon.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AddCircleIcon.mjs","sources":["../../../src/components/Icons/AddCircleIcon.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { BaseIcon } from \"./BaseIcon\";\nimport type { BaseIconProps, IconVariants } from \"./types\";\n\nconst VARIANTS: IconVariants = {\n 16: {\n outlined: [\n {\n d: \"M10.667 8.5H5.334a.504.504 0 0 1-.5-.5c0-.273.226-.5.5-.5h5.333c.273 0 .5.227.5.5s-.227.5-.5.5\",\n },\n {\n d: \"M8 11.167a.504.504 0 0 1-.5-.5V5.333c0-.273.227-.5.5-.5s.5.227.5.5v5.334c0 .273-.227.5-.5.5\",\n },\n {\n d: \"M10 15.167H6C2.38 15.167.833 13.62.833 10V6C.833 2.38 2.38.833 6 .833h4c3.62 0 5.167 1.547 5.167 5.167v4c0 3.62-1.547 5.167-5.167 5.167M6 1.833C2.927 1.833 1.834 2.927 1.834 6v4c0 3.073 1.093 4.167 4.166 4.167h4c3.073 0 4.167-1.094 4.167-4.167V6c0-3.073-1.094-4.167-4.167-4.167z\",\n },\n ],\n filled: [\n {\n d: \"M10.793 1.333H5.207c-2.427 0-3.874 1.447-3.874 3.874v5.58c0 2.433 1.447 3.88 3.874 3.88h5.58c2.426 0 3.873-1.447 3.873-3.874V5.207c.007-2.427-1.44-3.874-3.867-3.874M10.667 8.5H8.5v2.167c0 .273-.227.5-.5.5a.504.504 0 0 1-.5-.5V8.5H5.333a.504.504 0 0 1-.5-.5c0-.273.227-.5.5-.5H7.5V5.333c0-.273.227-.5.5-.5s.5.227.5.5V7.5h2.167c.273 0 .5.227.5.5s-.227.5-.5.5\",\n },\n ],\n },\n 24: {\n outlined: [\n {\n d: \"M16 12.75H8c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h8c.41 0 .75.34.75.75s-.34.75-.75.75\",\n },\n {\n d: \"M12 16.75c-.41 0-.75-.34-.75-.75V8c0-.41.34-.75.75-.75s.75.34.75.75v8c0 .41-.34.75-.75.75\",\n },\n {\n d: \"M15 22.75H9c-5.43 0-7.75-2.32-7.75-7.75V9c0-5.43 2.32-7.75 7.75-7.75h6c5.43 0 7.75 2.32 7.75 7.75v6c0 5.43-2.32 7.75-7.75 7.75m-6-20C4.39 2.75 2.75 4.39 2.75 9v6c0 4.61 1.64 6.25 6.25 6.25h6c4.61 0 6.25-1.64 6.25-6.25V9c0-4.61-1.64-6.25-6.25-6.25z\",\n },\n ],\n filled: [\n {\n d: \"M16.19 2H7.81C4.17 2 2 4.17 2 7.81v8.37C2 19.83 4.17 22 7.81 22h8.37c3.64 0 5.81-2.17 5.81-5.81V7.81C22 4.17 19.83 2 16.19 2M16 12.75h-3.25V16c0 .41-.34.75-.75.75s-.75-.34-.75-.75v-3.25H8c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h3.25V8c0-.41.34-.75.75-.75s.75.34.75.75v3.25H16c.41 0 .75.34.75.75s-.34.75-.75.75\",\n },\n ],\n },\n 32: {\n outlined: [\n { d: \"M21.334 17H10.667c-.547 0-1-.453-1-1s.453-1 1-1h10.667c.546 0 1 .453 1 1s-.454 1-1 1\" },\n {\n d: \"M16 22.333c-.547 0-1-.453-1-1V10.667c0-.547.453-1 1-1s1 .453 1 1v10.666c0 .547-.453 1-1 1\",\n },\n {\n d: \"M20 30.333h-8C4.76 30.333 1.667 27.24 1.667 20v-8C1.667 4.76 4.76 1.667 12 1.667h8c7.24 0 10.334 3.093 10.334 10.333v8c0 7.24-3.094 10.333-10.334 10.333M12 3.667c-6.146 0-8.333 2.186-8.333 8.333v8c0 6.147 2.187 8.333 8.333 8.333h8c6.147 0 8.334-2.186 8.334-8.333v-8c0-6.147-2.187-8.333-8.334-8.333z\",\n },\n ],\n filled: [\n {\n d: \"M21.587 2.667H10.413c-4.853 0-7.746 2.893-7.746 7.746v11.16c0 4.867 2.893 7.76 7.746 7.76h11.16c4.854 0 7.747-2.893 7.747-7.746V10.413c.013-4.853-2.88-7.746-7.733-7.746M21.333 17H17v4.333c0 .547-.453 1-1 1s-1-.453-1-1V17h-4.334c-.546 0-1-.453-1-1s.454-1 1-1H15v-4.333c0-.547.453-1 1-1s1 .453 1 1V15h4.333c.547 0 1 .453 1 1s-.453 1-1 1\",\n },\n ],\n },\n};\n\n/** Props for {@link AddCircleIcon}. See {@link BaseIconProps} for the shared shape. */\nexport type AddCircleIconProps = BaseIconProps;\n\n/**\n * Add Circle icon. Renders at sizes 16, 24, or 32 px with outlined and filled variants.\n *\n * @example\n * ```tsx\n * <AddCircleIcon size={24} filled />\n * ```\n */\nexport const AddCircleIcon = React.forwardRef<SVGSVGElement, AddCircleIconProps>((props, ref) => (\n <BaseIcon ref={ref} variants={VARIANTS} {...props} />\n));\n\nAddCircleIcon.displayName = \"AddCircleIcon\";\n"],"names":[],"mappings":";;;;AAIA,MAAM,WAAyB;AAAA,EAC7B,IAAI;AAAA,IACF,UAAU;AAAA,MACR;AAAA,QACE,GAAG;AAAA,MAAA;AAAA,MAEL;AAAA,QACE,GAAG;AAAA,MAAA;AAAA,MAEL;AAAA,QACE,GAAG;AAAA,MAAA;AAAA,IACL;AAAA,IAEF,QAAQ;AAAA,MACN;AAAA,QACE,GAAG;AAAA,MAAA;AAAA,IACL;AAAA,EACF;AAAA,EAEF,IAAI;AAAA,IACF,UAAU;AAAA,MACR;AAAA,QACE,GAAG;AAAA,MAAA;AAAA,MAEL;AAAA,QACE,GAAG;AAAA,MAAA;AAAA,MAEL;AAAA,QACE,GAAG;AAAA,MAAA;AAAA,IACL;AAAA,IAEF,QAAQ;AAAA,MACN;AAAA,QACE,GAAG;AAAA,MAAA;AAAA,IACL;AAAA,EACF;AAAA,EAEF,IAAI;AAAA,IACF,UAAU;AAAA,MACR,EAAE,GAAG,uFAAA;AAAA,MACL;AAAA,QACE,GAAG;AAAA,MAAA;AAAA,MAEL;AAAA,QACE,GAAG;AAAA,MAAA;AAAA,IACL;AAAA,IAEF,QAAQ;AAAA,MACN;AAAA,QACE,GAAG;AAAA,MAAA;AAAA,IACL;AAAA,EACF;AAEJ;AAaO,MAAM,gBAAgB,MAAM,WAA8C,CAAC,OAAO,QACvF,oBAAC,UAAA,EAAS,KAAU,UAAU,UAAW,GAAG,OAAO,CACpD;AAED,cAAc,cAAc;"}
@@ -5,109 +5,42 @@ import { BaseIcon } from "./BaseIcon.mjs";
5
5
  const VARIANTS = {
6
6
  16: {
7
7
  outlined: [
8
+ { d: "M12.667 10.667V4.333c0-.733-.6-1.333-1.333-1.333h-3" },
8
9
  {
9
- d: "M 12.67,10.67 L 12.67,4.33 C 12.67,3.6 12.07,3 11.33,3 L 8.33,3",
10
- sw: 1
11
- },
12
- {
13
- d: "M 10,1.33 L 8,3 L 10,4.67",
14
- sw: 1
15
- },
16
- {
17
- d: "M 3.33,6 L 3.33,10.67",
18
- sw: 1
19
- },
20
- {
21
- d: "M 3.5,5.67 C 4.7,5.67 5.67,4.7 5.67,3.5 C 5.67,2.3 4.7,1.33 3.5,1.33 C 2.3,1.33 1.33,2.3 1.33,3.5 C 1.33,4.7 2.3,5.67 3.5,5.67",
22
- sw: 1
23
- },
24
- {
25
- d: "M 3.33,14.67 C 4.44,14.67 5.33,13.77 5.33,12.67 C 5.33,11.56 4.44,10.67 3.33,10.67 C 2.23,10.67 1.33,11.56 1.33,12.67 C 1.33,13.77 2.23,14.67 3.33,14.67",
26
- sw: 1
27
- },
28
- {
29
- d: "M 12.67,14.67 C 13.77,14.67 14.67,13.77 14.67,12.67 C 14.67,11.56 13.77,10.67 12.67,10.67 C 11.56,10.67 10.67,11.56 10.67,12.67 C 10.67,13.77 11.56,14.67 12.67,14.67",
30
- sw: 1
10
+ d: "M10 1.333 8 3l2 1.667M3.334 6v4.667m.166-5a2.167 2.167 0 1 0 0-4.334 2.167 2.167 0 0 0 0 4.334m-.166 9a2 2 0 1 0 0-4 2 2 0 0 0 0 4m9.333 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4"
31
11
  }
32
12
  ],
33
13
  filled: [
34
14
  {
35
- d: "M 3.83,10.74 L 3.83,5.26 C 4.69,5.04 5.33,4.27 5.33,3.33 C 5.33,2.23 4.44,1.33 3.33,1.33 C 2.23,1.33 1.33,2.23 1.33,3.33 C 1.33,4.27 1.97,5.04 2.83,5.26 L 2.83,10.73 C 1.97,10.96 1.33,11.73 1.33,12.67 C 1.33,13.77 2.23,14.67 3.33,14.67 C 4.44,14.67 5.33,13.77 5.33,12.67 C 5.33,11.73 4.69,10.96 3.83,10.74"
36
- },
37
- {
38
- d: "M 13.17,10.74 L 13.17,4.33 C 13.17,3.32 12.35,2.5 11.33,2.5 L 9.38,2.5 L 10.32,1.72 C 10.53,1.54 10.56,1.23 10.39,1.01 C 10.21,0.8 9.89,0.77 9.68,0.95 L 7.68,2.61 C 7.57,2.71 7.5,2.85 7.5,3 C 7.5,3.15 7.57,3.29 7.68,3.39 L 9.68,5.05 C 9.77,5.13 9.89,5.17 10,5.17 C 10.14,5.17 10.29,5.11 10.39,4.99 C 10.57,4.77 10.53,4.46 10.32,4.28 L 9.38,3.5 L 11.33,3.5 C 11.79,3.5 12.17,3.87 12.17,4.33 L 12.17,10.74 C 11.31,10.96 10.67,11.73 10.67,12.67 C 10.67,13.77 11.56,14.67 12.67,14.67 C 13.77,14.67 14.67,13.77 14.67,12.67 C 14.67,11.73 14.03,10.96 13.17,10.74"
15
+ d: "M3.834 10.74V5.26c.86-.22 1.5-.993 1.5-1.927 0-1.106-.894-2-2-2-1.107 0-2 .894-2 2 0 .934.64 1.707 1.5 1.927v5.473a1.997 1.997 0 0 0 .5 3.933c1.106 0 2-.893 2-2 0-.933-.64-1.706-1.5-1.926m9.333 0V4.335c0-1.014-.82-1.834-1.833-1.834H9.38l.94-.78a.505.505 0 0 0 .067-.706.506.506 0 0 0-.707-.067l-2 1.667a.508.508 0 0 0 0 .773l2 1.667a.506.506 0 0 0 .707-.067.5.5 0 0 0-.067-.707l-.94-.78h1.954c.46 0 .833.374.833.834v6.407c-.86.22-1.5.993-1.5 1.926 0 1.107.893 2 2 2s2-.893 2-2c0-.933-.64-1.707-1.5-1.926"
39
16
  }
40
17
  ]
41
18
  },
42
19
  24: {
43
20
  outlined: [
21
+ { d: "M19 16V6.5c0-1.1-.9-2-2-2h-4.5", sw: 1.5 },
44
22
  {
45
- d: "M 19,16 L 19,6.5 C 19,5.4 18.1,4.5 17,4.5 L 12.5,4.5",
46
- sw: 1.5
47
- },
48
- {
49
- d: "M 15,2 L 12,4.5 L 15,7",
50
- sw: 1.5
51
- },
52
- {
53
- d: "M 5,9 L 5,16",
54
- sw: 1.5
55
- },
56
- {
57
- d: "M 5.25,8.5 C 7.05,8.5 8.5,7.04 8.5,5.25 C 8.5,3.46 7.05,2 5.25,2 C 3.45,2 2,3.46 2,5.25 C 2,7.04 3.45,8.5 5.25,8.5",
58
- sw: 1.5
59
- },
60
- {
61
- d: "M 5,22 C 6.66,22 8,20.66 8,19 C 8,17.34 6.66,16 5,16 C 3.34,16 2,17.34 2,19 C 2,20.66 3.34,22 5,22",
62
- sw: 1.5
63
- },
64
- {
65
- d: "M 19,22 C 20.66,22 22,20.66 22,19 C 22,17.34 20.66,16 19,16 C 17.34,16 16,17.34 16,19 C 16,20.66 17.34,22 19,22",
23
+ d: "m15 2-3 2.5L15 7M5 9v7m.25-7.5a3.25 3.25 0 1 0 0-6.5 3.25 3.25 0 0 0 0 6.5M5 22a3 3 0 1 0 0-6 3 3 0 0 0 0 6m14 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6",
66
24
  sw: 1.5
67
25
  }
68
26
  ],
69
27
  filled: [
70
28
  {
71
- d: "M 5.75,16.11 L 5.75,7.89 C 7.04,7.56 8,6.4 8,5 C 8,3.34 6.66,2 5,2 C 3.34,2 2,3.34 2,5 C 2,6.4 2.96,7.56 4.25,7.89 L 4.25,16.1 C 2.96,16.44 2,17.6 2,19 C 2,20.66 3.34,22 5,22 C 6.66,22 8,20.66 8,19 C 8,17.6 7.04,16.44 5.75,16.11"
72
- },
73
- {
74
- d: "M 19.75,16.11 L 19.75,6.5 C 19.75,4.98 18.52,3.75 17,3.75 L 14.07,3.75 L 15.48,2.58 C 15.8,2.31 15.84,1.84 15.58,1.52 C 15.31,1.2 14.84,1.16 14.52,1.42 L 11.52,3.92 C 11.35,4.06 11.25,4.27 11.25,4.5 C 11.25,4.73 11.35,4.93 11.52,5.08 L 14.52,7.58 C 14.66,7.7 14.83,7.75 15,7.75 C 15.21,7.75 15.43,7.66 15.58,7.48 C 15.85,7.16 15.8,6.69 15.48,6.42 L 14.07,5.25 L 17,5.25 C 17.69,5.25 18.25,5.81 18.25,6.5 L 18.25,16.11 C 16.96,16.44 16,17.6 16,19 C 16,20.66 17.34,22 19,22 C 20.66,22 22,20.66 22,19 C 22,17.6 21.04,16.44 19.75,16.11"
29
+ d: "M5.75 16.11V7.89A2.98 2.98 0 0 0 8 5c0-1.66-1.34-3-3-3S2 3.34 2 5c0 1.4.96 2.56 2.25 2.89v8.21A2.996 2.996 0 0 0 5 22c1.66 0 3-1.34 3-3 0-1.4-.96-2.56-2.25-2.89m14 0V6.5c0-1.52-1.23-2.75-2.75-2.75h-2.93l1.41-1.17c.32-.27.36-.74.1-1.06a.76.76 0 0 0-1.06-.1l-3 2.5a.76.76 0 0 0 0 1.16l3 2.5c.14.12.31.17.48.17a.75.75 0 0 0 .48-1.33l-1.41-1.17H17c.69 0 1.25.56 1.25 1.25v9.61A2.98 2.98 0 0 0 16 19c0 1.66 1.34 3 3 3s3-1.34 3-3c0-1.4-.96-2.56-2.25-2.89"
75
30
  }
76
31
  ]
77
32
  },
78
33
  32: {
79
34
  outlined: [
35
+ { d: "M25.333 21.333V8.667C25.333 7.2 24.133 6 22.667 6h-6", sw: 2 },
80
36
  {
81
- d: "M 25.33,21.33 L 25.33,8.67 C 25.33,7.2 24.13,6 22.67,6 L 16.67,6",
82
- sw: 2
83
- },
84
- {
85
- d: "M 20,2.67 L 16,6 L 20,9.33",
86
- sw: 2
87
- },
88
- {
89
- d: "M 6.67,12 L 6.67,21.33",
90
- sw: 2
91
- },
92
- {
93
- d: "M 7,11.33 C 9.39,11.33 11.33,9.39 11.33,7 C 11.33,4.61 9.39,2.67 7,2.67 C 4.61,2.67 2.67,4.61 2.67,7 C 2.67,9.39 4.61,11.33 7,11.33",
94
- sw: 2
95
- },
96
- {
97
- d: "M 6.67,29.33 C 8.88,29.33 10.67,27.54 10.67,25.33 C 10.67,23.12 8.88,21.33 6.67,21.33 C 4.46,21.33 2.67,23.12 2.67,25.33 C 2.67,27.54 4.46,29.33 6.67,29.33",
98
- sw: 2
99
- },
100
- {
101
- d: "M 25.33,29.33 C 27.54,29.33 29.33,27.54 29.33,25.33 C 29.33,23.12 27.54,21.33 25.33,21.33 C 23.12,21.33 21.33,23.12 21.33,25.33 C 21.33,27.54 23.12,29.33 25.33,29.33",
37
+ d: "M20 2.667 16 6l4 3.333M6.667 12v9.333m.333-10a4.333 4.333 0 1 0 0-8.666 4.333 4.333 0 0 0 0 8.666m-.333 18a4 4 0 1 0 0-8 4 4 0 0 0 0 8m18.666 0a4 4 0 1 0 0-8 4 4 0 0 0 0 8",
102
38
  sw: 2
103
39
  }
104
40
  ],
105
41
  filled: [
106
42
  {
107
- d: "M 7.67,21.48 L 7.67,10.52 C 9.39,10.08 10.67,8.53 10.67,6.67 C 10.67,4.45 8.88,2.67 6.67,2.67 C 4.45,2.67 2.67,4.45 2.67,6.67 C 2.67,8.53 3.95,10.08 5.67,10.52 L 5.67,21.47 C 3.95,21.92 2.67,23.47 2.67,25.33 C 2.67,27.55 4.45,29.33 6.67,29.33 C 8.88,29.33 10.67,27.55 10.67,25.33 C 10.67,23.47 9.39,21.92 7.67,21.48"
108
- },
109
- {
110
- d: "M 26.33,21.48 L 26.33,8.67 C 26.33,6.64 24.69,5 22.67,5 L 18.76,5 L 20.64,3.44 C 21.07,3.08 21.12,2.45 20.77,2.03 C 20.41,1.6 19.79,1.55 19.36,1.89 L 15.36,5.23 C 15.13,5.41 15,5.69 15,6 C 15,6.31 15.13,6.57 15.36,6.77 L 19.36,10.11 C 19.55,10.27 19.77,10.33 20,10.33 C 20.28,10.33 20.57,10.21 20.77,9.97 C 21.13,9.55 21.07,8.92 20.64,8.56 L 18.76,7 L 22.67,7 C 23.59,7 24.33,7.75 24.33,8.67 L 24.33,21.48 C 22.61,21.92 21.33,23.47 21.33,25.33 C 21.33,27.55 23.12,29.33 25.33,29.33 C 27.55,29.33 29.33,27.55 29.33,25.33 C 29.33,23.47 28.05,21.92 26.33,21.48"
43
+ d: "M7.667 21.48V10.52c1.72-.44 3-1.987 3-3.853 0-2.214-1.787-4-4-4s-4 1.786-4 4a3.98 3.98 0 0 0 3 3.853v10.947c-1.72.453-3 2-3 3.866 0 2.214 1.786 4 4 4s4-1.786 4-4a3.98 3.98 0 0 0-3-3.853m18.666 0V8.669A3.665 3.665 0 0 0 22.667 5H18.76l1.88-1.56c.427-.36.48-.987.133-1.413a1.01 1.01 0 0 0-1.413-.134l-4 3.334A1 1 0 0 0 15 6c0 .307.133.573.36.773l4 3.334c.187.16.413.226.64.226a.999.999 0 0 0 .64-1.773L18.76 7h3.906c.92 0 1.667.747 1.667 1.667V21.48c-1.72.44-3 1.987-3 3.853 0 2.214 1.787 4 4 4s4-1.786 4-4a3.98 3.98 0 0 0-3-3.853"
111
44
  }
112
45
  ]
113
46
  }