@seed-design/react 0.2.2 → 0.2.4

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 (80) hide show
  1. package/lib/components/Checkbox/Checkbox.cjs +35 -8
  2. package/lib/components/Checkbox/Checkbox.d.ts +17 -4
  3. package/lib/components/Checkbox/Checkbox.d.ts.map +1 -1
  4. package/lib/components/Checkbox/Checkbox.js +35 -8
  5. package/lib/components/Divider/Divider.cjs +23 -23
  6. package/lib/components/Divider/Divider.d.ts +2 -3
  7. package/lib/components/Divider/Divider.d.ts.map +1 -1
  8. package/lib/components/Divider/Divider.js +23 -23
  9. package/lib/components/LinkContent/LinkContent.d.ts +6 -0
  10. package/lib/components/LinkContent/LinkContent.d.ts.map +1 -1
  11. package/lib/components/List/List.cjs +57 -0
  12. package/lib/components/List/List.d.ts +27 -0
  13. package/lib/components/List/List.d.ts.map +1 -0
  14. package/lib/components/List/List.js +47 -0
  15. package/lib/components/List/List.namespace.cjs +15 -0
  16. package/lib/components/List/List.namespace.d.ts +2 -0
  17. package/lib/components/List/List.namespace.d.ts.map +1 -0
  18. package/lib/components/List/List.namespace.js +1 -0
  19. package/lib/components/List/index.cjs +17 -0
  20. package/lib/components/List/index.d.ts +3 -0
  21. package/lib/components/List/index.d.ts.map +1 -0
  22. package/lib/components/List/index.js +3 -0
  23. package/lib/components/RadioGroup/RadioGroup.cjs +80 -0
  24. package/lib/components/RadioGroup/RadioGroup.d.ts +34 -0
  25. package/lib/components/RadioGroup/RadioGroup.d.ts.map +1 -0
  26. package/lib/components/RadioGroup/RadioGroup.js +71 -0
  27. package/lib/components/RadioGroup/RadioGroup.namespace.cjs +14 -0
  28. package/lib/components/RadioGroup/RadioGroup.namespace.d.ts +2 -0
  29. package/lib/components/RadioGroup/RadioGroup.namespace.d.ts.map +1 -0
  30. package/lib/components/RadioGroup/RadioGroup.namespace.js +1 -0
  31. package/lib/components/RadioGroup/index.cjs +16 -0
  32. package/lib/components/RadioGroup/index.d.ts +3 -0
  33. package/lib/components/RadioGroup/index.d.ts.map +1 -0
  34. package/lib/components/RadioGroup/index.js +3 -0
  35. package/lib/components/SelectBox/CheckSelectBox.cjs +0 -13
  36. package/lib/components/SelectBox/CheckSelectBox.d.ts +0 -10
  37. package/lib/components/SelectBox/CheckSelectBox.d.ts.map +1 -1
  38. package/lib/components/SelectBox/CheckSelectBox.js +1 -11
  39. package/lib/components/SelectBox/CheckSelectBox.namespace.cjs +0 -3
  40. package/lib/components/SelectBox/CheckSelectBox.namespace.d.ts +1 -1
  41. package/lib/components/SelectBox/CheckSelectBox.namespace.d.ts.map +1 -1
  42. package/lib/components/SelectBox/CheckSelectBox.namespace.js +1 -1
  43. package/lib/components/SelectBox/RadioSelectBox.cjs +0 -13
  44. package/lib/components/SelectBox/RadioSelectBox.d.ts +0 -10
  45. package/lib/components/SelectBox/RadioSelectBox.d.ts.map +1 -1
  46. package/lib/components/SelectBox/RadioSelectBox.js +1 -11
  47. package/lib/components/SelectBox/RadioSelectBox.namespace.cjs +0 -3
  48. package/lib/components/SelectBox/RadioSelectBox.namespace.d.ts +1 -1
  49. package/lib/components/SelectBox/RadioSelectBox.namespace.d.ts.map +1 -1
  50. package/lib/components/SelectBox/RadioSelectBox.namespace.js +1 -1
  51. package/lib/components/SelectBox/index.cjs +0 -6
  52. package/lib/components/SelectBox/index.d.ts +2 -2
  53. package/lib/components/SelectBox/index.d.ts.map +1 -1
  54. package/lib/components/SelectBox/index.js +2 -2
  55. package/lib/components/Switch/Switch.cjs +2 -1
  56. package/lib/components/Switch/Switch.d.ts.map +1 -1
  57. package/lib/components/Switch/Switch.js +2 -1
  58. package/lib/components/index.cjs +23 -10
  59. package/lib/components/index.d.ts +3 -1
  60. package/lib/components/index.d.ts.map +1 -1
  61. package/lib/components/index.js +10 -4
  62. package/lib/index.cjs +23 -10
  63. package/lib/index.js +10 -4
  64. package/package.json +4 -4
  65. package/src/components/Checkbox/Checkbox.tsx +66 -10
  66. package/src/components/Divider/Divider.tsx +35 -34
  67. package/src/components/LinkContent/LinkContent.tsx +6 -0
  68. package/src/components/List/List.namespace.ts +16 -0
  69. package/src/components/List/List.tsx +79 -0
  70. package/src/components/List/index.ts +18 -0
  71. package/src/components/RadioGroup/RadioGroup.namespace.ts +14 -0
  72. package/src/components/RadioGroup/RadioGroup.tsx +133 -0
  73. package/src/components/RadioGroup/index.ts +16 -0
  74. package/src/components/SelectBox/CheckSelectBox.namespace.ts +0 -6
  75. package/src/components/SelectBox/CheckSelectBox.tsx +0 -19
  76. package/src/components/SelectBox/RadioSelectBox.namespace.ts +0 -6
  77. package/src/components/SelectBox/RadioSelectBox.tsx +0 -19
  78. package/src/components/SelectBox/index.ts +0 -12
  79. package/src/components/Switch/Switch.tsx +1 -0
  80. package/src/components/index.ts +3 -1
@@ -4,24 +4,51 @@
4
4
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5
5
 
6
6
  const jsxRuntime = require('react/jsx-runtime');
7
+ const checkbox = require('@seed-design/css/recipes/checkbox');
8
+ const checkmark = require('@seed-design/css/recipes/checkmark');
7
9
  const domUtils = require('@seed-design/dom-utils');
8
10
  const reactCheckbox = require('@seed-design/react-checkbox');
9
11
  const reactPrimitive = require('@seed-design/react-primitive');
10
- const checkbox = require('@seed-design/css/recipes/checkbox');
12
+ const clsx = require('clsx');
11
13
  const React = require('react');
12
14
  const createSlotRecipeContext = require('../../utils/createSlotRecipeContext.cjs');
13
15
  const createWithStateProps = require('../../utils/createWithStateProps.cjs');
14
16
  const Icon = require('../private/Icon.cjs');
15
17
 
16
- const { withProvider, withContext, useClassNames } = createSlotRecipeContext.createSlotRecipeContext(checkbox.checkbox);
18
+ const { ClassNamesProvider, withContext } = createSlotRecipeContext.createSlotRecipeContext(checkbox.checkbox);
19
+ const {
20
+ withProvider: withCheckmarkProvider,
21
+ useClassNames: useCheckmarkClassNames,
22
+ PropsProvider: CheckmarkPropsProvider
23
+ } = createSlotRecipeContext.createSlotRecipeContext(checkmark.checkmark);
17
24
  const withStateProps = createWithStateProps.createWithStateProps([reactCheckbox.useCheckboxContext]);
18
- const CheckboxRoot = withProvider(
19
- reactCheckbox.Checkbox.Root,
20
- "root"
25
+ const CheckboxRoot = Object.assign(
26
+ React.forwardRef(({ className, ...props }, ref) => {
27
+ const normalizedProps = {
28
+ ...props,
29
+ // TODO: replace this mapping completely
30
+ weight: props.weight === "stronger" ? "bold" : props.weight === "default" ? "regular" : props.weight
31
+ };
32
+ const [checkboxVariantProps, __otherProps] = checkbox.checkbox.splitVariantProps(normalizedProps);
33
+ const [checkmarkVariantProps] = checkmark.checkmark.splitVariantProps(normalizedProps);
34
+ const [, otherProps] = checkmark.checkmark.splitVariantProps(__otherProps);
35
+ const classNames = checkbox.checkbox(checkboxVariantProps);
36
+ return /* @__PURE__ */ jsxRuntime.jsx(CheckmarkPropsProvider, { value: checkmarkVariantProps, children: /* @__PURE__ */ jsxRuntime.jsx(ClassNamesProvider, { value: classNames, children: /* @__PURE__ */ jsxRuntime.jsx(
37
+ reactCheckbox.Checkbox.Root,
38
+ {
39
+ ref,
40
+ className: clsx(classNames.root, className),
41
+ ...otherProps
42
+ }
43
+ ) }) });
44
+ }),
45
+ {
46
+ Primitive: reactCheckbox.Checkbox.Root
47
+ }
21
48
  );
22
- const CheckboxControl = withContext(
49
+ const CheckboxControl = withCheckmarkProvider(
23
50
  reactCheckbox.Checkbox.Control,
24
- "control"
51
+ "root"
25
52
  );
26
53
  const CheckboxIndicator = React.forwardRef(
27
54
  ({
@@ -31,7 +58,7 @@ const CheckboxIndicator = React.forwardRef(
31
58
  ...otherProps
32
59
  }, ref) => {
33
60
  const { stateProps, checked, indeterminate } = reactCheckbox.useCheckboxContext();
34
- const classNames = useClassNames();
61
+ const classNames = useCheckmarkClassNames();
35
62
  const mergedProps = domUtils.mergeProps(
36
63
  stateProps,
37
64
  { className: classNames.icon },
@@ -1,11 +1,23 @@
1
+ import { CheckboxVariantProps } from '@seed-design/css/recipes/checkbox';
2
+ import { CheckmarkVariantProps } from '@seed-design/css/recipes/checkmark';
1
3
  import { Checkbox as CheckboxPrimitive } from '@seed-design/react-checkbox';
2
4
  import { PrimitiveProps } from '@seed-design/react-primitive';
3
- import { CheckboxVariantProps } from '@seed-design/css/recipes/checkbox';
4
5
  import { ForwardRefExoticComponent, RefAttributes } from 'react';
5
- export interface CheckboxRootProps extends CheckboxVariantProps, CheckboxPrimitive.RootProps {
6
+ /**
7
+ * @deprecated Use `regular` or `bold` instead of `default` or `stronger`
8
+ */
9
+ type CheckboxVariantDeprecatedWeightProps = "default" | "stronger";
10
+ export interface CheckboxRootProps extends Omit<CheckboxVariantProps, "weight">, CheckmarkVariantProps, CheckboxPrimitive.RootProps {
11
+ weight?: CheckboxVariantProps["weight"] | CheckboxVariantDeprecatedWeightProps;
6
12
  }
7
- export declare const CheckboxRoot: ForwardRefExoticComponent<CheckboxRootProps & RefAttributes<HTMLLabelElement>>;
8
- export interface CheckboxControlProps extends CheckboxPrimitive.ControlProps {
13
+ export declare const CheckboxRoot: ForwardRefExoticComponent<CheckboxRootProps & RefAttributes<HTMLLabelElement>> & {
14
+ Primitive: ForwardRefExoticComponent<CheckboxPrimitive.RootProps & RefAttributes<HTMLLabelElement>>;
15
+ };
16
+ /**
17
+ * CheckboxControl combines Checkbox.Primitive with checkmark.root styling
18
+ * This enables standalone usage of Checkbox.Control with variants
19
+ */
20
+ export interface CheckboxControlProps extends CheckmarkVariantProps, CheckboxPrimitive.ControlProps {
9
21
  }
10
22
  export declare const CheckboxControl: ForwardRefExoticComponent<CheckboxControlProps & RefAttributes<HTMLDivElement>>;
11
23
  export interface CheckboxIndicatorProps extends React.SVGAttributes<SVGSVGElement> {
@@ -29,4 +41,5 @@ export declare const CheckboxLabel: ForwardRefExoticComponent<CheckboxLabelProps
29
41
  export interface CheckboxHiddenInputProps extends CheckboxPrimitive.HiddenInputProps {
30
42
  }
31
43
  export declare const CheckboxHiddenInput: ForwardRefExoticComponent<CheckboxPrimitive.HiddenInputProps & RefAttributes<HTMLInputElement>>;
44
+ export {};
32
45
  //# sourceMappingURL=Checkbox.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAsB,MAAM,6BAA6B,CAAC;AAChG,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAAY,KAAK,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAWxF,MAAM,WAAW,iBAAkB,SAAQ,oBAAoB,EAAE,iBAAiB,CAAC,SAAS;CAAG;AAE/F,eAAO,MAAM,YAAY,gHAGxB,CAAC;AAIF,MAAM,WAAW,oBAAqB,SAAQ,iBAAiB,CAAC,YAAY;CAAG;AAE/E,eAAO,MAAM,eAAe,iHAG3B,CAAC;AAIF,MAAM,WAAW,sBAAuB,SAAQ,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC;IAChF;;OAEG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE5B;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IAEzB;;OAEG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACjC;AAED,eAAO,MAAM,iBAAiB,kHA8B7B,CAAC;AAKF,MAAM,WAAW,kBAAmB,SAAQ,cAAc,EAAE,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;CAAG;AAEpG,eAAO,MAAM,aAAa,+GAGzB,CAAC;AAIF,MAAM,WAAW,wBAAyB,SAAQ,iBAAiB,CAAC,gBAAgB;CAAG;AAEvF,eAAO,MAAM,mBAAmB,iIAAgC,CAAC"}
1
+ {"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAY,KAAK,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACxF,OAAO,EAAa,KAAK,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAE3F,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAsB,MAAM,6BAA6B,CAAC;AAChG,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAiB9E;;GAEG;AACH,KAAK,oCAAoC,GAAG,SAAS,GAAG,UAAU,CAAC;AAEnE,MAAM,WAAW,iBACf,SAAQ,IAAI,CAAC,oBAAoB,EAAE,QAAQ,CAAC,EAC1C,qBAAqB,EACrB,iBAAiB,CAAC,SAAS;IAC7B,MAAM,CAAC,EAAE,oBAAoB,CAAC,QAAQ,CAAC,GAAG,oCAAoC,CAAC;CAChF;AAED,eAAO,MAAM,YAAY;;CAmCxB,CAAC;AAIF;;;GAGG;AAEH,MAAM,WAAW,oBACf,SAAQ,qBAAqB,EAC3B,iBAAiB,CAAC,YAAY;CAAG;AAErC,eAAO,MAAM,eAAe,iHAG3B,CAAC;AAIF,MAAM,WAAW,sBAAuB,SAAQ,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC;IAChF;;OAEG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE5B;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IAEzB;;OAEG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACjC;AAED,eAAO,MAAM,iBAAiB,kHA8B7B,CAAC;AAKF,MAAM,WAAW,kBAAmB,SAAQ,cAAc,EAAE,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;CAAG;AAEpG,eAAO,MAAM,aAAa,+GAGzB,CAAC;AAIF,MAAM,WAAW,wBAAyB,SAAQ,iBAAiB,CAAC,gBAAgB;CAAG;AAEvF,eAAO,MAAM,mBAAmB,iIAAgC,CAAC"}
@@ -1,23 +1,50 @@
1
1
  'use client';
2
2
  import { jsx } from 'react/jsx-runtime';
3
+ import { checkbox } from '@seed-design/css/recipes/checkbox';
4
+ import { checkmark } from '@seed-design/css/recipes/checkmark';
3
5
  import { mergeProps } from '@seed-design/dom-utils';
4
6
  import { Checkbox, useCheckboxContext } from '@seed-design/react-checkbox';
5
7
  import { Primitive } from '@seed-design/react-primitive';
6
- import { checkbox } from '@seed-design/css/recipes/checkbox';
8
+ import clsx from 'clsx';
7
9
  import { forwardRef } from 'react';
8
10
  import { createSlotRecipeContext } from '../../utils/createSlotRecipeContext.js';
9
11
  import { createWithStateProps } from '../../utils/createWithStateProps.js';
10
12
  import { InternalIcon } from '../private/Icon.js';
11
13
 
12
- const { withProvider, withContext, useClassNames } = createSlotRecipeContext(checkbox);
14
+ const { ClassNamesProvider, withContext } = createSlotRecipeContext(checkbox);
15
+ const {
16
+ withProvider: withCheckmarkProvider,
17
+ useClassNames: useCheckmarkClassNames,
18
+ PropsProvider: CheckmarkPropsProvider
19
+ } = createSlotRecipeContext(checkmark);
13
20
  const withStateProps = createWithStateProps([useCheckboxContext]);
14
- const CheckboxRoot = withProvider(
15
- Checkbox.Root,
16
- "root"
21
+ const CheckboxRoot = Object.assign(
22
+ forwardRef(({ className, ...props }, ref) => {
23
+ const normalizedProps = {
24
+ ...props,
25
+ // TODO: replace this mapping completely
26
+ weight: props.weight === "stronger" ? "bold" : props.weight === "default" ? "regular" : props.weight
27
+ };
28
+ const [checkboxVariantProps, __otherProps] = checkbox.splitVariantProps(normalizedProps);
29
+ const [checkmarkVariantProps] = checkmark.splitVariantProps(normalizedProps);
30
+ const [, otherProps] = checkmark.splitVariantProps(__otherProps);
31
+ const classNames = checkbox(checkboxVariantProps);
32
+ return /* @__PURE__ */ jsx(CheckmarkPropsProvider, { value: checkmarkVariantProps, children: /* @__PURE__ */ jsx(ClassNamesProvider, { value: classNames, children: /* @__PURE__ */ jsx(
33
+ Checkbox.Root,
34
+ {
35
+ ref,
36
+ className: clsx(classNames.root, className),
37
+ ...otherProps
38
+ }
39
+ ) }) });
40
+ }),
41
+ {
42
+ Primitive: Checkbox.Root
43
+ }
17
44
  );
18
- const CheckboxControl = withContext(
45
+ const CheckboxControl = withCheckmarkProvider(
19
46
  Checkbox.Control,
20
- "control"
47
+ "root"
21
48
  );
22
49
  const CheckboxIndicator = forwardRef(
23
50
  ({
@@ -27,7 +54,7 @@ const CheckboxIndicator = forwardRef(
27
54
  ...otherProps
28
55
  }, ref) => {
29
56
  const { stateProps, checked, indeterminate } = useCheckboxContext();
30
- const classNames = useClassNames();
57
+ const classNames = useCheckmarkClassNames();
31
58
  const mergedProps = mergeProps(
32
59
  stateProps,
33
60
  { className: classNames.icon },
@@ -26,32 +26,32 @@ function _interopNamespaceDefault(e) {
26
26
 
27
27
  const React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
28
28
 
29
- const Divider = React__namespace.forwardRef((props, ref) => {
30
- const {
29
+ const Divider = React__namespace.forwardRef(
30
+ ({
31
31
  as = "hr",
32
32
  color = "stroke.neutralMuted",
33
33
  thickness = 1,
34
34
  orientation = "horizontal",
35
- role,
36
- ...rest
37
- } = props;
38
- return /* @__PURE__ */ jsxRuntime.jsx(
39
- Box.Box,
40
- {
41
- ref,
42
- as,
43
- role,
44
- ...(as === "hr" && orientation !== "horizontal" || as !== "hr" && role === "separator") && {
45
- "aria-orientation": orientation
46
- },
47
- display: "block",
48
- borderColor: color,
49
- borderWidth: 0,
50
- ...orientation === "vertical" && { borderRightWidth: thickness },
51
- ...orientation === "horizontal" && { borderBottomWidth: thickness },
52
- ...rest
53
- }
54
- );
55
- });
35
+ ...props
36
+ }, ref) => {
37
+ return /* @__PURE__ */ jsxRuntime.jsx(
38
+ Box.Box,
39
+ {
40
+ ref,
41
+ as,
42
+ ...(as === "hr" && orientation !== "horizontal" && (props.role === void 0 || props.role === "separator") || // if not hr but role is separator aria-orientation is needed
43
+ as !== "hr" && props.role === "separator") && {
44
+ "aria-orientation": orientation
45
+ },
46
+ display: "block",
47
+ borderColor: color,
48
+ borderWidth: 0,
49
+ ...orientation === "vertical" && { borderRightWidth: thickness },
50
+ ...orientation === "horizontal" && { borderBottomWidth: thickness },
51
+ ...props
52
+ }
53
+ );
54
+ }
55
+ );
56
56
 
57
57
  exports.Divider = Divider;
@@ -1,6 +1,6 @@
1
1
  import { BoxProps } from '../Box/Box';
2
2
  import * as React from "react";
3
- export interface DividerProps {
3
+ export interface DividerProps extends Omit<React.HTMLAttributes<HTMLHRElement>, "color"> {
4
4
  /**
5
5
  * The HTML element to use for the divider.
6
6
  * Keep in mind that "hr" elements are read by screen readers as a semantic break with an implicit role="separator"
@@ -15,12 +15,11 @@ export interface DividerProps {
15
15
  /**
16
16
  * @default 1
17
17
  */
18
- thickness?: BoxProps["borderBottomWidth"];
18
+ thickness?: BoxProps["borderWidth"];
19
19
  /**
20
20
  * @default "horizontal"
21
21
  */
22
22
  orientation?: "horizontal" | "vertical";
23
- role?: Extract<React.AriaRole, "separator">;
24
23
  }
25
24
  export declare const Divider: React.ForwardRefExoticComponent<DividerProps & React.RefAttributes<HTMLHRElement>>;
26
25
  //# sourceMappingURL=Divider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Divider.d.ts","sourceRoot":"","sources":["../../../src/components/Divider/Divider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,WAAW,YAAY;IAC3B;;;;;OAKG;IACH,EAAE,CAAC,EAAE,IAAI,GAAG,KAAK,GAAG,IAAI,CAAC;IAEzB;;OAEG;IACH,KAAK,CAAC,EAAE,QAAQ,CAAC,aAAa,CAAC,CAAC;IAEhC;;OAEG;IACH,SAAS,CAAC,EAAE,QAAQ,CAAC,mBAAmB,CAAC,CAAC;IAE1C;;OAEG;IACH,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IAExC,IAAI,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC;CAC7C;AAED,eAAO,MAAM,OAAO,oFA6BlB,CAAC"}
1
+ {"version":3,"file":"Divider.d.ts","sourceRoot":"","sources":["../../../src/components/Divider/Divider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,aAAa,CAAC,EAAE,OAAO,CAAC;IACtF;;;;;OAKG;IACH,EAAE,CAAC,EAAE,IAAI,GAAG,KAAK,GAAG,IAAI,CAAC;IAEzB;;OAEG;IACH,KAAK,CAAC,EAAE,QAAQ,CAAC,aAAa,CAAC,CAAC;IAEhC;;OAEG;IACH,SAAS,CAAC,EAAE,QAAQ,CAAC,aAAa,CAAC,CAAC;IAEpC;;OAEG;IACH,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;CACzC;AAED,eAAO,MAAM,OAAO,oFAgCnB,CAAC"}
@@ -3,32 +3,32 @@ import { jsx } from 'react/jsx-runtime';
3
3
  import * as React from 'react';
4
4
  import { Box } from '../Box/Box.js';
5
5
 
6
- const Divider = React.forwardRef((props, ref) => {
7
- const {
6
+ const Divider = React.forwardRef(
7
+ ({
8
8
  as = "hr",
9
9
  color = "stroke.neutralMuted",
10
10
  thickness = 1,
11
11
  orientation = "horizontal",
12
- role,
13
- ...rest
14
- } = props;
15
- return /* @__PURE__ */ jsx(
16
- Box,
17
- {
18
- ref,
19
- as,
20
- role,
21
- ...(as === "hr" && orientation !== "horizontal" || as !== "hr" && role === "separator") && {
22
- "aria-orientation": orientation
23
- },
24
- display: "block",
25
- borderColor: color,
26
- borderWidth: 0,
27
- ...orientation === "vertical" && { borderRightWidth: thickness },
28
- ...orientation === "horizontal" && { borderBottomWidth: thickness },
29
- ...rest
30
- }
31
- );
32
- });
12
+ ...props
13
+ }, ref) => {
14
+ return /* @__PURE__ */ jsx(
15
+ Box,
16
+ {
17
+ ref,
18
+ as,
19
+ ...(as === "hr" && orientation !== "horizontal" && (props.role === void 0 || props.role === "separator") || // if not hr but role is separator aria-orientation is needed
20
+ as !== "hr" && props.role === "separator") && {
21
+ "aria-orientation": orientation
22
+ },
23
+ display: "block",
24
+ borderColor: color,
25
+ borderWidth: 0,
26
+ ...orientation === "vertical" && { borderRightWidth: thickness },
27
+ ...orientation === "horizontal" && { borderBottomWidth: thickness },
28
+ ...props
29
+ }
30
+ );
31
+ }
32
+ );
33
33
 
34
34
  export { Divider };
@@ -2,7 +2,13 @@ import { LinkContentVariantProps } from '@seed-design/css/recipes/link-content';
2
2
  import { PrimitiveProps } from '@seed-design/react-primitive';
3
3
  import { StyleProps } from '../../utils/styled';
4
4
  import type * as React from "react";
5
+ /**
6
+ * @deprecated Use `ActionButton` with variant="ghost" instead.
7
+ */
5
8
  export interface LinkContentProps extends LinkContentVariantProps, PrimitiveProps, Pick<StyleProps, "color">, Omit<React.HTMLAttributes<HTMLSpanElement>, "color"> {
6
9
  }
10
+ /**
11
+ * @deprecated Use `ActionButton` with variant="ghost" instead.
12
+ */
7
13
  export declare const LinkContent: React.ForwardRefExoticComponent<LinkContentProps & React.RefAttributes<HTMLButtonElement>>;
8
14
  //# sourceMappingURL=LinkContent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LinkContent.d.ts","sourceRoot":"","sources":["../../../src/components/LinkContent/LinkContent.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAClG,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9E,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,EAAkB,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAIrE,MAAM,WAAW,gBACf,SAAQ,uBAAuB,EAC7B,cAAc,EACd,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC,EACzB,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,OAAO,CAAC;CAAG;AAE3D,eAAO,MAAM,WAAW,4FAEvB,CAAC"}
1
+ {"version":3,"file":"LinkContent.d.ts","sourceRoot":"","sources":["../../../src/components/LinkContent/LinkContent.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAClG,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9E,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,EAAkB,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAIrE;;GAEG;AACH,MAAM,WAAW,gBACf,SAAQ,uBAAuB,EAC7B,cAAc,EACd,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC,EACzB,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,OAAO,CAAC;CAAG;AAE3D;;GAEG;AACH,eAAO,MAAM,WAAW,4FAEvB,CAAC"}
@@ -0,0 +1,57 @@
1
+ 'use client';
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5
+
6
+ const jsxRuntime = require('react/jsx-runtime');
7
+ const listItem = require('@seed-design/css/recipes/list-item');
8
+ const reactPrimitive = require('@seed-design/react-primitive');
9
+ const React = require('react');
10
+ const createSlotRecipeContext = require('../../utils/createSlotRecipeContext.cjs');
11
+ const styled = require('../../utils/styled.cjs');
12
+ const Stack = require('../Stack/Stack.cjs');
13
+ const reactCheckbox = require('@seed-design/react-checkbox');
14
+ const createWithStateProps = require('../../utils/createWithStateProps.cjs');
15
+ const reactRadioGroup = require('@seed-design/react-radio-group');
16
+
17
+ const { withContext, withProvider } = createSlotRecipeContext.createSlotRecipeContext(listItem.listItem);
18
+ const withStateProps = createWithStateProps.createWithStateProps([reactCheckbox.useCheckboxContext, reactRadioGroup.useRadioGroupItemContext], {
19
+ strict: false
20
+ });
21
+ const ListRoot = React.forwardRef(
22
+ ({ as = "ul", ...props }, ref) => {
23
+ return /* @__PURE__ */ jsxRuntime.jsx(Stack.VStack, { as, ref, ...props });
24
+ }
25
+ );
26
+ const ListItem = withProvider(
27
+ withStateProps(styled.withStyleProps(reactPrimitive.Primitive.li)),
28
+ "root"
29
+ );
30
+ const ListContent = withContext(
31
+ withStateProps(styled.withStyleProps(reactPrimitive.Primitive.div)),
32
+ "content"
33
+ );
34
+ const ListPrefix = withContext(
35
+ withStateProps(styled.withStyleProps(reactPrimitive.Primitive.div)),
36
+ "prefix"
37
+ );
38
+ const ListSuffix = withContext(
39
+ withStateProps(styled.withStyleProps(reactPrimitive.Primitive.div)),
40
+ "suffix"
41
+ );
42
+ const ListTitle = withContext(
43
+ withStateProps(reactPrimitive.Primitive.div),
44
+ "title"
45
+ );
46
+ const ListDetail = withContext(
47
+ withStateProps(reactPrimitive.Primitive.div),
48
+ "detail"
49
+ );
50
+
51
+ exports.ListContent = ListContent;
52
+ exports.ListDetail = ListDetail;
53
+ exports.ListItem = ListItem;
54
+ exports.ListPrefix = ListPrefix;
55
+ exports.ListRoot = ListRoot;
56
+ exports.ListSuffix = ListSuffix;
57
+ exports.ListTitle = ListTitle;
@@ -0,0 +1,27 @@
1
+ import { ListItemVariantProps } from '@seed-design/css/recipes/list-item';
2
+ import { PrimitiveProps } from '@seed-design/react-primitive';
3
+ import { StyleProps } from '../../utils/styled';
4
+ import { VStackProps } from '../Stack';
5
+ import type * as React from "react";
6
+ export interface ListRootProps extends VStackProps {
7
+ }
8
+ export declare const ListRoot: React.ForwardRefExoticComponent<ListRootProps & React.RefAttributes<HTMLUListElement>>;
9
+ export interface ListItemProps extends PrimitiveProps, Pick<StyleProps, "alignItems">, React.HTMLAttributes<HTMLLIElement>, ListItemVariantProps {
10
+ }
11
+ export declare const ListItem: React.ForwardRefExoticComponent<ListItemProps & React.RefAttributes<HTMLLIElement>>;
12
+ export interface ListContentProps extends PrimitiveProps, Pick<StyleProps, "gap" | "pr" | "paddingRight">, React.HTMLAttributes<HTMLDivElement> {
13
+ }
14
+ export declare const ListContent: React.ForwardRefExoticComponent<ListContentProps & React.RefAttributes<HTMLDivElement>>;
15
+ export interface ListPrefixProps extends PrimitiveProps, Pick<StyleProps, "pr" | "paddingRight">, React.HTMLAttributes<HTMLDivElement> {
16
+ }
17
+ export declare const ListPrefix: React.ForwardRefExoticComponent<ListPrefixProps & React.RefAttributes<HTMLDivElement>>;
18
+ export interface ListSuffixProps extends PrimitiveProps, Pick<StyleProps, "gap" | "position">, React.HTMLAttributes<HTMLDivElement> {
19
+ }
20
+ export declare const ListSuffix: React.ForwardRefExoticComponent<ListSuffixProps & React.RefAttributes<HTMLDivElement>>;
21
+ export interface ListTitleProps extends PrimitiveProps, React.HTMLAttributes<HTMLDivElement> {
22
+ }
23
+ export declare const ListTitle: React.ForwardRefExoticComponent<ListTitleProps & React.RefAttributes<HTMLDivElement>>;
24
+ export interface ListDetailProps extends PrimitiveProps, React.HTMLAttributes<HTMLDivElement> {
25
+ }
26
+ export declare const ListDetail: React.ForwardRefExoticComponent<ListDetailProps & React.RefAttributes<HTMLDivElement>>;
27
+ //# sourceMappingURL=List.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../../src/components/List/List.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAEpC,OAAO,EAAY,KAAK,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AACzF,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAG9E,OAAO,EAAkB,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAUpD,MAAM,WAAW,aAAc,SAAQ,WAAW;CAAG;AAErD,eAAO,MAAM,QAAQ,wFAIpB,CAAC;AAEF,MAAM,WAAW,aACf,SAAQ,cAAc,EACpB,IAAI,CAAC,UAAU,EAAE,YAAY,CAAC,EAC9B,KAAK,CAAC,cAAc,CAAC,aAAa,CAAC,EACnC,oBAAoB;CAAG;AAE3B,eAAO,MAAM,QAAQ,qFAGpB,CAAC;AAEF,MAAM,WAAW,gBACf,SAAQ,cAAc,EACpB,IAAI,CAAC,UAAU,EAAE,KAAK,GAAG,IAAI,GAAG,cAAc,CAAC,EAC/C,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C,eAAO,MAAM,WAAW,yFAGvB,CAAC;AAEF,MAAM,WAAW,eACf,SAAQ,cAAc,EACpB,IAAI,CAAC,UAAU,EAAE,IAAI,GAAG,cAAc,CAAC,EACvC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C,eAAO,MAAM,UAAU,wFAGtB,CAAC;AAEF,MAAM,WAAW,eACf,SAAQ,cAAc,EACpB,IAAI,CAAC,UAAU,EAAE,KAAK,GAAG,UAAU,CAAC,EACpC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE3C,eAAO,MAAM,UAAU,wFAGtB,CAAC;AAEF,MAAM,WAAW,cAAe,SAAQ,cAAc,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE/F,eAAO,MAAM,SAAS,uFAGrB,CAAC;AAEF,MAAM,WAAW,eAAgB,SAAQ,cAAc,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAEhG,eAAO,MAAM,UAAU,wFAGtB,CAAC"}
@@ -0,0 +1,47 @@
1
+ 'use client';
2
+ import { jsx } from 'react/jsx-runtime';
3
+ import { listItem } from '@seed-design/css/recipes/list-item';
4
+ import { Primitive } from '@seed-design/react-primitive';
5
+ import { forwardRef } from 'react';
6
+ import { createSlotRecipeContext } from '../../utils/createSlotRecipeContext.js';
7
+ import { withStyleProps } from '../../utils/styled.js';
8
+ import { VStack } from '../Stack/Stack.js';
9
+ import { useCheckboxContext } from '@seed-design/react-checkbox';
10
+ import { createWithStateProps } from '../../utils/createWithStateProps.js';
11
+ import { useRadioGroupItemContext } from '@seed-design/react-radio-group';
12
+
13
+ const { withContext, withProvider } = createSlotRecipeContext(listItem);
14
+ const withStateProps = createWithStateProps([useCheckboxContext, useRadioGroupItemContext], {
15
+ strict: false
16
+ });
17
+ const ListRoot = forwardRef(
18
+ ({ as = "ul", ...props }, ref) => {
19
+ return /* @__PURE__ */ jsx(VStack, { as, ref, ...props });
20
+ }
21
+ );
22
+ const ListItem = withProvider(
23
+ withStateProps(withStyleProps(Primitive.li)),
24
+ "root"
25
+ );
26
+ const ListContent = withContext(
27
+ withStateProps(withStyleProps(Primitive.div)),
28
+ "content"
29
+ );
30
+ const ListPrefix = withContext(
31
+ withStateProps(withStyleProps(Primitive.div)),
32
+ "prefix"
33
+ );
34
+ const ListSuffix = withContext(
35
+ withStateProps(withStyleProps(Primitive.div)),
36
+ "suffix"
37
+ );
38
+ const ListTitle = withContext(
39
+ withStateProps(Primitive.div),
40
+ "title"
41
+ );
42
+ const ListDetail = withContext(
43
+ withStateProps(Primitive.div),
44
+ "detail"
45
+ );
46
+
47
+ export { ListContent, ListDetail, ListItem, ListPrefix, ListRoot, ListSuffix, ListTitle };
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
+
5
+ const List = require('./List.cjs');
6
+
7
+
8
+
9
+ exports.Content = List.ListContent;
10
+ exports.Detail = List.ListDetail;
11
+ exports.Item = List.ListItem;
12
+ exports.Prefix = List.ListPrefix;
13
+ exports.Root = List.ListRoot;
14
+ exports.Suffix = List.ListSuffix;
15
+ exports.Title = List.ListTitle;
@@ -0,0 +1,2 @@
1
+ export { ListContent as Content, ListDetail as Detail, ListItem as Item, ListPrefix as Prefix, ListRoot as Root, ListSuffix as Suffix, ListTitle as Title, type ListContentProps as ContentProps, type ListDetailProps as DetailProps, type ListItemProps as ItemProps, type ListPrefixProps as PrefixProps, type ListRootProps as RootProps, type ListSuffixProps as SuffixProps, type ListTitleProps as TitleProps, } from './List';
2
+ //# sourceMappingURL=List.namespace.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"List.namespace.d.ts","sourceRoot":"","sources":["../../../src/components/List/List.namespace.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,IAAI,OAAO,EACtB,UAAU,IAAI,MAAM,EACpB,QAAQ,IAAI,IAAI,EAChB,UAAU,IAAI,MAAM,EACpB,QAAQ,IAAI,IAAI,EAChB,UAAU,IAAI,MAAM,EACpB,SAAS,IAAI,KAAK,EAClB,KAAK,gBAAgB,IAAI,YAAY,EACrC,KAAK,eAAe,IAAI,WAAW,EACnC,KAAK,aAAa,IAAI,SAAS,EAC/B,KAAK,eAAe,IAAI,WAAW,EACnC,KAAK,aAAa,IAAI,SAAS,EAC/B,KAAK,eAAe,IAAI,WAAW,EACnC,KAAK,cAAc,IAAI,UAAU,GAClC,MAAM,QAAQ,CAAC"}
@@ -0,0 +1 @@
1
+ export { ListContent as Content, ListDetail as Detail, ListItem as Item, ListPrefix as Prefix, ListRoot as Root, ListSuffix as Suffix, ListTitle as Title } from './List.js';
@@ -0,0 +1,17 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
+
5
+ const List = require('./List.cjs');
6
+ const List_namespace = require('./List.namespace.cjs');
7
+
8
+
9
+
10
+ exports.ListContent = List.ListContent;
11
+ exports.ListDetail = List.ListDetail;
12
+ exports.ListItem = List.ListItem;
13
+ exports.ListPrefix = List.ListPrefix;
14
+ exports.ListRoot = List.ListRoot;
15
+ exports.ListSuffix = List.ListSuffix;
16
+ exports.ListTitle = List.ListTitle;
17
+ exports.List = List_namespace;
@@ -0,0 +1,3 @@
1
+ export { ListContent, ListDetail, ListItem, ListPrefix, ListRoot, ListSuffix, ListTitle, type ListContentProps, type ListDetailProps, type ListItemProps, type ListPrefixProps, type ListRootProps, type ListSuffixProps, type ListTitleProps, } from './List';
2
+ export * as List from './List.namespace';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/List/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,UAAU,EACV,QAAQ,EACR,UAAU,EACV,QAAQ,EACR,UAAU,EACV,SAAS,EACT,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,cAAc,GACpB,MAAM,QAAQ,CAAC;AAEhB,OAAO,KAAK,IAAI,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { ListContent, ListDetail, ListItem, ListPrefix, ListRoot, ListSuffix, ListTitle } from './List.js';
2
+ import * as List_namespace from './List.namespace.js';
3
+ export { List_namespace as List };
@@ -0,0 +1,80 @@
1
+ 'use client';
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5
+
6
+ const jsxRuntime = require('react/jsx-runtime');
7
+ const radio = require('@seed-design/css/recipes/radio');
8
+ const radiomark = require('@seed-design/css/recipes/radiomark');
9
+ const domUtils = require('@seed-design/dom-utils');
10
+ const reactRadioGroup = require('@seed-design/react-radio-group');
11
+ const reactPrimitive = require('@seed-design/react-primitive');
12
+ const clsx = require('clsx');
13
+ const React = require('react');
14
+ const createSlotRecipeContext = require('../../utils/createSlotRecipeContext.cjs');
15
+ const createWithStateProps = require('../../utils/createWithStateProps.cjs');
16
+ const Icon = require('../private/Icon.cjs');
17
+
18
+ const { ClassNamesProvider, withContext } = createSlotRecipeContext.createSlotRecipeContext(radio.radio);
19
+ const {
20
+ withProvider: withRadiomarkProvider,
21
+ useClassNames: useRadiomarkClassNames,
22
+ PropsProvider: RadiomarkPropsProvider
23
+ } = createSlotRecipeContext.createSlotRecipeContext(radiomark.radiomark);
24
+ const withStateProps = createWithStateProps.createWithStateProps([reactRadioGroup.useRadioGroupItemContext]);
25
+ const RadioGroupRoot = reactRadioGroup.RadioGroup.Root;
26
+ const RadioGroupItem = Object.assign(
27
+ React.forwardRef(({ className, ...props }, ref) => {
28
+ const [radioVariantProps, __otherProps] = radio.radio.splitVariantProps(props);
29
+ const [radiomarkVariantProps] = radiomark.radiomark.splitVariantProps(props);
30
+ const [, otherProps] = radiomark.radiomark.splitVariantProps(__otherProps);
31
+ const classNames = radio.radio(radioVariantProps);
32
+ return /* @__PURE__ */ jsxRuntime.jsx(RadiomarkPropsProvider, { value: radiomarkVariantProps, children: /* @__PURE__ */ jsxRuntime.jsx(ClassNamesProvider, { value: classNames, children: /* @__PURE__ */ jsxRuntime.jsx(
33
+ reactRadioGroup.RadioGroup.Item,
34
+ {
35
+ ref,
36
+ className: clsx(classNames.root, className),
37
+ ...otherProps
38
+ }
39
+ ) }) });
40
+ }),
41
+ {
42
+ Primitive: reactRadioGroup.RadioGroup.Item
43
+ }
44
+ );
45
+ const RadioGroupItemLabel = withContext(
46
+ withStateProps(reactPrimitive.Primitive.span),
47
+ "label"
48
+ );
49
+ const RadioGroupItemControl = withRadiomarkProvider(reactRadioGroup.RadioGroup.ItemControl, "root");
50
+ const RadioGroupItemIndicator = React.forwardRef(
51
+ ({ unchecked: uncheckedSvg, checked: checkedSvg, ...otherProps }, ref) => {
52
+ const { stateProps, checked } = reactRadioGroup.useRadioGroupItemContext();
53
+ const classNames = useRadiomarkClassNames();
54
+ const mergedProps = domUtils.mergeProps(
55
+ stateProps,
56
+ { className: classNames.icon },
57
+ otherProps
58
+ );
59
+ if (checked)
60
+ return /* @__PURE__ */ jsxRuntime.jsx(
61
+ Icon.InternalIcon,
62
+ {
63
+ ref,
64
+ svg: checkedSvg ?? /* @__PURE__ */ jsxRuntime.jsx("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "12", cy: "12", r: "12", fill: "currentColor" }) }),
65
+ ...mergedProps
66
+ }
67
+ );
68
+ if (uncheckedSvg) return /* @__PURE__ */ jsxRuntime.jsx(Icon.InternalIcon, { ref, svg: uncheckedSvg, ...mergedProps });
69
+ return null;
70
+ }
71
+ );
72
+ RadioGroupItemIndicator.displayName = "RadioGroupItemIndicator";
73
+ const RadioGroupItemHiddenInput = reactRadioGroup.RadioGroup.ItemHiddenInput;
74
+
75
+ exports.RadioGroupItem = RadioGroupItem;
76
+ exports.RadioGroupItemControl = RadioGroupItemControl;
77
+ exports.RadioGroupItemHiddenInput = RadioGroupItemHiddenInput;
78
+ exports.RadioGroupItemIndicator = RadioGroupItemIndicator;
79
+ exports.RadioGroupItemLabel = RadioGroupItemLabel;
80
+ exports.RadioGroupRoot = RadioGroupRoot;