@cerberus-design/react 0.15.0-next-5d7dc1e → 0.15.0-next-7a184be

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 (97) hide show
  1. package/build/legacy/_tsup-dts-rollup.d.cts +238 -92
  2. package/build/legacy/components/{FieldsetLabel.cjs → deprecated/FieldsetLabel.cjs} +1 -1
  3. package/build/legacy/components/deprecated/FieldsetLabel.cjs.map +1 -0
  4. package/build/legacy/components/fieldset/fieldset.cjs +116 -0
  5. package/build/legacy/components/fieldset/fieldset.cjs.map +1 -0
  6. package/build/legacy/components/fieldset/index.cjs +126 -0
  7. package/build/legacy/components/fieldset/index.cjs.map +1 -0
  8. package/build/legacy/components/fieldset/parts.cjs +80 -0
  9. package/build/legacy/components/fieldset/parts.cjs.map +1 -0
  10. package/build/legacy/components/fieldset/primitives.cjs +76 -0
  11. package/build/legacy/components/fieldset/primitives.cjs.map +1 -0
  12. package/build/legacy/components/radio/index.cjs +143 -0
  13. package/build/legacy/components/radio/index.cjs.map +1 -0
  14. package/build/legacy/components/radio/parts.cjs +113 -0
  15. package/build/legacy/components/radio/parts.cjs.map +1 -0
  16. package/build/legacy/components/radio/primitives.cjs +115 -0
  17. package/build/legacy/components/radio/primitives.cjs.map +1 -0
  18. package/build/legacy/components/radio/radio.cjs +82 -0
  19. package/build/legacy/components/radio/radio.cjs.map +1 -0
  20. package/build/legacy/index.cjs +764 -635
  21. package/build/legacy/index.cjs.map +1 -1
  22. package/build/modern/_tsup-dts-rollup.d.ts +238 -92
  23. package/build/modern/chunk-5RTNSVYU.js +88 -0
  24. package/build/modern/chunk-5RTNSVYU.js.map +1 -0
  25. package/build/modern/chunk-7TQRTBUP.js +19 -0
  26. package/build/modern/chunk-7TQRTBUP.js.map +1 -0
  27. package/build/modern/chunk-AO3GB72J.js +27 -0
  28. package/build/modern/chunk-AO3GB72J.js.map +1 -0
  29. package/build/modern/{chunk-OYT7RGC7.js → chunk-DRDNNRU3.js} +2 -2
  30. package/build/modern/chunk-DRDNNRU3.js.map +1 -0
  31. package/build/modern/chunk-FUL2VRDU.js +25 -0
  32. package/build/modern/chunk-FUL2VRDU.js.map +1 -0
  33. package/build/modern/chunk-IDTAB2UJ.js +1 -0
  34. package/build/modern/chunk-OGYMMATX.js +1 -0
  35. package/build/modern/{chunk-FK52US7K.js → chunk-RHCTPSKT.js} +7 -7
  36. package/build/modern/chunk-STLN7BMJ.js +22 -0
  37. package/build/modern/chunk-STLN7BMJ.js.map +1 -0
  38. package/build/modern/chunk-Z3FDG263.js +53 -0
  39. package/build/modern/chunk-Z3FDG263.js.map +1 -0
  40. package/build/modern/{chunk-CF3EHG42.js → chunk-ZFFW5ELD.js} +4 -4
  41. package/build/modern/components/AccordionItemGroup.js +1 -1
  42. package/build/modern/components/DatePicker.client.js +3 -3
  43. package/build/modern/components/FileStatus.js +2 -2
  44. package/build/modern/components/deprecated/FieldsetLabel.js +7 -0
  45. package/build/modern/components/fieldset/fieldset.js +11 -0
  46. package/build/modern/components/fieldset/fieldset.js.map +1 -0
  47. package/build/modern/components/fieldset/index.js +24 -0
  48. package/build/modern/components/fieldset/index.js.map +1 -0
  49. package/build/modern/components/fieldset/parts.js +8 -0
  50. package/build/modern/components/fieldset/parts.js.map +1 -0
  51. package/build/modern/components/fieldset/primitives.js +13 -0
  52. package/build/modern/components/fieldset/primitives.js.map +1 -0
  53. package/build/modern/components/radio/index.js +30 -0
  54. package/build/modern/components/radio/index.js.map +1 -0
  55. package/build/modern/components/radio/parts.js +8 -0
  56. package/build/modern/components/radio/parts.js.map +1 -0
  57. package/build/modern/components/radio/primitives.js +21 -0
  58. package/build/modern/components/radio/primitives.js.map +1 -0
  59. package/build/modern/components/radio/radio.js +8 -0
  60. package/build/modern/components/radio/radio.js.map +1 -0
  61. package/build/modern/context/confirm-modal.js +1 -1
  62. package/build/modern/context/cta-modal.js +2 -2
  63. package/build/modern/context/prompt-modal.js +1 -1
  64. package/build/modern/index.js +115 -77
  65. package/build/modern/index.js.map +1 -1
  66. package/package.json +3 -3
  67. package/src/components/deprecated/FieldsetLabel.tsx +32 -0
  68. package/src/components/fieldset/fieldset.tsx +55 -0
  69. package/src/components/fieldset/index.ts +3 -0
  70. package/src/components/fieldset/parts.ts +47 -0
  71. package/src/components/fieldset/primitives.tsx +79 -0
  72. package/src/components/radio/index.ts +3 -0
  73. package/src/components/radio/parts.ts +65 -0
  74. package/src/components/radio/primitives.tsx +123 -0
  75. package/src/components/radio/radio.tsx +35 -0
  76. package/src/index.ts +3 -3
  77. package/build/legacy/components/Fieldset.cjs +0 -53
  78. package/build/legacy/components/Fieldset.cjs.map +0 -1
  79. package/build/legacy/components/FieldsetLabel.cjs.map +0 -1
  80. package/build/legacy/components/Radio.cjs +0 -64
  81. package/build/legacy/components/Radio.cjs.map +0 -1
  82. package/build/modern/chunk-6EUC3SUI.js +0 -28
  83. package/build/modern/chunk-6EUC3SUI.js.map +0 -1
  84. package/build/modern/chunk-6WOJAMZV.js +0 -40
  85. package/build/modern/chunk-6WOJAMZV.js.map +0 -1
  86. package/build/modern/chunk-OYT7RGC7.js.map +0 -1
  87. package/build/modern/components/Fieldset.js +0 -8
  88. package/build/modern/components/FieldsetLabel.js +0 -7
  89. package/build/modern/components/Radio.js +0 -7
  90. package/src/components/Fieldset.tsx +0 -65
  91. package/src/components/FieldsetLabel.tsx +0 -62
  92. package/src/components/Radio.tsx +0 -68
  93. /package/build/modern/{components/Fieldset.js.map → chunk-IDTAB2UJ.js.map} +0 -0
  94. /package/build/modern/{components/FieldsetLabel.js.map → chunk-OGYMMATX.js.map} +0 -0
  95. /package/build/modern/{chunk-FK52US7K.js.map → chunk-RHCTPSKT.js.map} +0 -0
  96. /package/build/modern/{chunk-CF3EHG42.js.map → chunk-ZFFW5ELD.js.map} +0 -0
  97. /package/build/modern/components/{Radio.js.map → deprecated/FieldsetLabel.js.map} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/fieldset/index.ts","../../../../src/utils/index.ts","../../../../src/components/fieldset/primitives.tsx","../../../../src/components/fieldset/parts.ts","../../../../src/components/fieldset/fieldset.tsx"],"sourcesContent":["export * from './fieldset'\nexport * from './parts'\nexport * from './primitives'\n","/**\n * This module contains utility functions that are used across your app.\n * @module Utils\n */\n\n/**\n * Formats the count of notifications to be displayed in the notification badge.\n * @param count - The number of notifications.\n * @returns The formatted count of notifications.\n * @example\n * ```tsx\n * const count = formatNotifyCount(100)\n * console.log(count) // '99+'\n * ```\n */\nexport function formatNotifyCount(count: number): string {\n if (count > 99) return '99+'\n return count.toString()\n}\n\n/**\n * Splits the properties of an object into multiple groups based on lists of keys.\n * @param props - The object to split.\n * @param keyGroups - The lists of keys to include in each group.\n * @returns An array of objects: each containing the properties specified in the corresponding key group, and the last object containing the remaining keys.\n */\nexport function splitProps<T extends object>(\n props: T,\n ...keyGroups: (keyof T)[][]\n): { [K in keyof T]?: T[K] }[] {\n const result = keyGroups.map(() => ({}) as { [K in keyof T]?: T[K] })\n const rest = {} as { [K in keyof T]?: T[K] }\n\n for (const key in props) {\n let assigned = false\n for (let i = 0; i < keyGroups.length; i++) {\n if (keyGroups[i].includes(key as keyof T)) {\n result[i][key as keyof T] = props[key]\n assigned = true\n break\n }\n }\n if (!assigned) {\n rest[key as keyof T] = props[key]\n }\n }\n\n return [...result, rest]\n}\n\nexport * from './localStorage'\n","import {\n Fieldset,\n type FieldsetHelperTextProps,\n type FieldsetLegendProps,\n type FieldsetRootProps,\n} from '@ark-ui/react/fieldset'\nimport { cx } from '@cerberus/styled-system/css'\nimport {\n fieldset,\n type FieldsetVariantProps,\n} from '@cerberus/styled-system/recipes'\n\n/**\n * This module contains all the primitives of the Fieldset component.\n * @module 'react/fieldset'\n */\n\n/**\n * The context & container for the Fieldset components.\n * @description [Fieldset Docs](https://cerberus.digitalu.design/react/fieldset)\n * @description [Primitive Docs](https://ark-ui.com/react/docs/components/fieldset)\n */\nexport function FieldsetRoot(props: FieldsetRootProps) {\n const styles = fieldset()\n return (\n <Fieldset.Root {...props} className={cx(styles.root, props.className)} />\n )\n}\n\n/**\n * The legend element for the Fieldset group.\n * @description [Fieldset Docs](https://cerberus.digitalu.design/react/fieldset)\n * @description [Primitive Docs](https://ark-ui.com/react/docs/components/fieldset)\n */\nexport function FieldsetLegend(\n props: FieldsetLegendProps & FieldsetVariantProps,\n) {\n const { usage, ...legendProps } = props\n const styles = fieldset({ usage })\n return (\n <Fieldset.Legend\n {...legendProps}\n className={cx(styles.legend, legendProps.className)}\n />\n )\n}\n\n/**\n * The description element for the Fieldset group.\n * @description [Fieldset Docs](https://cerberus.digitalu.design/react/fieldset)\n * @description [Primitive Docs](https://ark-ui.com/react/docs/components/fieldset)\n */\nexport function FieldsetHelperText(\n props: FieldsetHelperTextProps & FieldsetVariantProps,\n) {\n const { usage, ...helperTextProps } = props\n const styles = fieldset({ usage })\n return (\n <Fieldset.HelperText\n {...helperTextProps}\n className={cx(styles.helperText, helperTextProps.className)}\n />\n )\n}\n\n/**\n * The error text element for the Fieldset group.\n * @description [Fieldset Docs](https://cerberus.digitalu.design/react/fieldset)\n * @description [Primitive Docs](https://ark-ui.com/react/docs/components/fieldset)\n */\nexport function FieldsetErrorText(props: FieldsetHelperTextProps) {\n const styles = fieldset()\n return (\n <Fieldset.ErrorText\n {...props}\n className={cx(styles.errorText, props.className)}\n />\n )\n}\n","import type { ElementType } from 'react'\nimport {\n FieldsetErrorText,\n FieldsetHelperText,\n FieldsetLegend,\n FieldsetRoot,\n} from './primitives'\n\n/**\n * This module contains the parts of the Field component.\n * @module 'field/parts'\n */\n\ninterface FieldsetPartsValue {\n /**\n * The container of the field.\n */\n Root: ElementType\n /**\n * The label of the field.\n */\n Legend: ElementType\n /**\n * The text that displays when the field is valid.\n */\n HelperText: ElementType\n /**\n * The text that displays when the field is invalid.\n */\n ErrorText: ElementType\n}\n\n/**\n * An Object containing the parts of the Field component. For users that\n * prefer Object component syntax.\n *\n * @remarks\n *\n * When using object component syntax, you import the FieldParts object and\n * the entire family of components vs. only what you use.\n */\nexport const FieldsetParts: FieldsetPartsValue = {\n Root: FieldsetRoot,\n Legend: FieldsetLegend,\n HelperText: FieldsetHelperText,\n ErrorText: FieldsetErrorText,\n}\n","import type { FieldsetRootProps } from '@ark-ui/react'\nimport { splitProps } from '../../utils'\nimport { FieldsetParts } from './parts'\nimport type { FieldsetVariantProps } from '@cerberus/styled-system/recipes'\n\n/**\n * This module contains the Fieldset component.\n * @module Fieldset\n */\n\nexport interface FieldsetProps extends FieldsetRootProps, FieldsetVariantProps {\n /**\n * The legend/title/label of the fieldset group.\n */\n legend?: string\n /**\n * The description text for the fieldset group.\n */\n helperText?: string\n /**\n * The error text for the fieldset group shown when the field is invalid.\n */\n errorText?: string\n}\n\n/**\n * A component used for grouping related fields in a form that is an\n * abstraction of the Fieldset primitives.\n * @description [Fieldset Docs](https://cerberus.digitalu.design/react/fieldset)\n * @description [Primitive Docs](https://ark-ui.com/react/docs/components/fieldset)\n */\nexport function Fieldset(props: FieldsetProps) {\n const [fieldsetProps, { usage }, rootProps] = splitProps(\n props,\n ['legend', 'helperText', 'errorText', 'children'],\n ['usage'],\n )\n\n return (\n <FieldsetParts.Root {...rootProps}>\n <FieldsetParts.Legend usage={usage}>\n {fieldsetProps.legend}\n </FieldsetParts.Legend>\n <FieldsetParts.HelperText usage={usage}>\n {fieldsetProps.helperText}\n </FieldsetParts.HelperText>\n\n {fieldsetProps.children}\n\n <FieldsetParts.ErrorText>\n {fieldsetProps.errorText}\n </FieldsetParts.ErrorText>\n </FieldsetParts.Root>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,kBAAAA;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;AC0BO,SAAS,WACd,UACG,WAC0B;AAC7B,QAAM,SAAS,UAAU,IAAI,OAAO,CAAC,EAA+B;AACpE,QAAM,OAAO,CAAC;AAEd,aAAW,OAAO,OAAO;AACvB,QAAI,WAAW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AAQ;AAAA,EACR,YAAY;AAAA,EACZ,WAAW;AACb;;;ACPI,IAAAC,sBAAA;AARG,SAASC,UAAS,OAAsB;AAC7C,QAAM,CAAC,eAAe,EAAE,MAAM,GAAG,SAAS,IAAI;AAAA,IAC5C;AAAA,IACA,CAAC,UAAU,cAAc,aAAa,UAAU;AAAA,IAChD,CAAC,OAAO;AAAA,EACV;AAEA,SACE,8CAAC,cAAc,MAAd,EAAoB,GAAG,WACtB;AAAA,iDAAC,cAAc,QAAd,EAAqB,OACnB,wBAAc,QACjB;AAAA,IACA,6CAAC,cAAc,YAAd,EAAyB,OACvB,wBAAc,YACjB;AAAA,IAEC,cAAc;AAAA,IAEf,6CAAC,cAAc,WAAd,EACE,wBAAc,WACjB;AAAA,KACF;AAEJ;","names":["Fieldset","import_jsx_runtime","Fieldset"]}
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/components/fieldset/parts.ts
21
+ var parts_exports = {};
22
+ __export(parts_exports, {
23
+ FieldsetParts: () => FieldsetParts
24
+ });
25
+ module.exports = __toCommonJS(parts_exports);
26
+
27
+ // src/components/fieldset/primitives.tsx
28
+ var import_fieldset = require("@ark-ui/react/fieldset");
29
+ var import_css = require("@cerberus/styled-system/css");
30
+ var import_recipes = require("@cerberus/styled-system/recipes");
31
+ var import_jsx_runtime = require("react/jsx-runtime");
32
+ function FieldsetRoot(props) {
33
+ const styles = (0, import_recipes.fieldset)();
34
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_fieldset.Fieldset.Root, { ...props, className: (0, import_css.cx)(styles.root, props.className) });
35
+ }
36
+ function FieldsetLegend(props) {
37
+ const { usage, ...legendProps } = props;
38
+ const styles = (0, import_recipes.fieldset)({ usage });
39
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
40
+ import_fieldset.Fieldset.Legend,
41
+ {
42
+ ...legendProps,
43
+ className: (0, import_css.cx)(styles.legend, legendProps.className)
44
+ }
45
+ );
46
+ }
47
+ function FieldsetHelperText(props) {
48
+ const { usage, ...helperTextProps } = props;
49
+ const styles = (0, import_recipes.fieldset)({ usage });
50
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
51
+ import_fieldset.Fieldset.HelperText,
52
+ {
53
+ ...helperTextProps,
54
+ className: (0, import_css.cx)(styles.helperText, helperTextProps.className)
55
+ }
56
+ );
57
+ }
58
+ function FieldsetErrorText(props) {
59
+ const styles = (0, import_recipes.fieldset)();
60
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
61
+ import_fieldset.Fieldset.ErrorText,
62
+ {
63
+ ...props,
64
+ className: (0, import_css.cx)(styles.errorText, props.className)
65
+ }
66
+ );
67
+ }
68
+
69
+ // src/components/fieldset/parts.ts
70
+ var FieldsetParts = {
71
+ Root: FieldsetRoot,
72
+ Legend: FieldsetLegend,
73
+ HelperText: FieldsetHelperText,
74
+ ErrorText: FieldsetErrorText
75
+ };
76
+ // Annotate the CommonJS export names for ESM import in node:
77
+ 0 && (module.exports = {
78
+ FieldsetParts
79
+ });
80
+ //# sourceMappingURL=parts.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/fieldset/parts.ts","../../../../src/components/fieldset/primitives.tsx"],"sourcesContent":["import type { ElementType } from 'react'\nimport {\n FieldsetErrorText,\n FieldsetHelperText,\n FieldsetLegend,\n FieldsetRoot,\n} from './primitives'\n\n/**\n * This module contains the parts of the Field component.\n * @module 'field/parts'\n */\n\ninterface FieldsetPartsValue {\n /**\n * The container of the field.\n */\n Root: ElementType\n /**\n * The label of the field.\n */\n Legend: ElementType\n /**\n * The text that displays when the field is valid.\n */\n HelperText: ElementType\n /**\n * The text that displays when the field is invalid.\n */\n ErrorText: ElementType\n}\n\n/**\n * An Object containing the parts of the Field component. For users that\n * prefer Object component syntax.\n *\n * @remarks\n *\n * When using object component syntax, you import the FieldParts object and\n * the entire family of components vs. only what you use.\n */\nexport const FieldsetParts: FieldsetPartsValue = {\n Root: FieldsetRoot,\n Legend: FieldsetLegend,\n HelperText: FieldsetHelperText,\n ErrorText: FieldsetErrorText,\n}\n","import {\n Fieldset,\n type FieldsetHelperTextProps,\n type FieldsetLegendProps,\n type FieldsetRootProps,\n} from '@ark-ui/react/fieldset'\nimport { cx } from '@cerberus/styled-system/css'\nimport {\n fieldset,\n type FieldsetVariantProps,\n} from '@cerberus/styled-system/recipes'\n\n/**\n * This module contains all the primitives of the Fieldset component.\n * @module 'react/fieldset'\n */\n\n/**\n * The context & container for the Fieldset components.\n * @description [Fieldset Docs](https://cerberus.digitalu.design/react/fieldset)\n * @description [Primitive Docs](https://ark-ui.com/react/docs/components/fieldset)\n */\nexport function FieldsetRoot(props: FieldsetRootProps) {\n const styles = fieldset()\n return (\n <Fieldset.Root {...props} className={cx(styles.root, props.className)} />\n )\n}\n\n/**\n * The legend element for the Fieldset group.\n * @description [Fieldset Docs](https://cerberus.digitalu.design/react/fieldset)\n * @description [Primitive Docs](https://ark-ui.com/react/docs/components/fieldset)\n */\nexport function FieldsetLegend(\n props: FieldsetLegendProps & FieldsetVariantProps,\n) {\n const { usage, ...legendProps } = props\n const styles = fieldset({ usage })\n return (\n <Fieldset.Legend\n {...legendProps}\n className={cx(styles.legend, legendProps.className)}\n />\n )\n}\n\n/**\n * The description element for the Fieldset group.\n * @description [Fieldset Docs](https://cerberus.digitalu.design/react/fieldset)\n * @description [Primitive Docs](https://ark-ui.com/react/docs/components/fieldset)\n */\nexport function FieldsetHelperText(\n props: FieldsetHelperTextProps & FieldsetVariantProps,\n) {\n const { usage, ...helperTextProps } = props\n const styles = fieldset({ usage })\n return (\n <Fieldset.HelperText\n {...helperTextProps}\n className={cx(styles.helperText, helperTextProps.className)}\n />\n )\n}\n\n/**\n * The error text element for the Fieldset group.\n * @description [Fieldset Docs](https://cerberus.digitalu.design/react/fieldset)\n * @description [Primitive Docs](https://ark-ui.com/react/docs/components/fieldset)\n */\nexport function FieldsetErrorText(props: FieldsetHelperTextProps) {\n const styles = fieldset()\n return (\n <Fieldset.ErrorText\n {...props}\n className={cx(styles.errorText, props.className)}\n />\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,sBAKO;AACP,iBAAmB;AACnB,qBAGO;AAeH;AAHG,SAAS,aAAa,OAA0B;AACrD,QAAM,aAAS,yBAAS;AACxB,SACE,4CAAC,yBAAS,MAAT,EAAe,GAAG,OAAO,eAAW,eAAG,OAAO,MAAM,MAAM,SAAS,GAAG;AAE3E;AAOO,SAAS,eACd,OACA;AACA,QAAM,EAAE,OAAO,GAAG,YAAY,IAAI;AAClC,QAAM,aAAS,yBAAS,EAAE,MAAM,CAAC;AACjC,SACE;AAAA,IAAC,yBAAS;AAAA,IAAT;AAAA,MACE,GAAG;AAAA,MACJ,eAAW,eAAG,OAAO,QAAQ,YAAY,SAAS;AAAA;AAAA,EACpD;AAEJ;AAOO,SAAS,mBACd,OACA;AACA,QAAM,EAAE,OAAO,GAAG,gBAAgB,IAAI;AACtC,QAAM,aAAS,yBAAS,EAAE,MAAM,CAAC;AACjC,SACE;AAAA,IAAC,yBAAS;AAAA,IAAT;AAAA,MACE,GAAG;AAAA,MACJ,eAAW,eAAG,OAAO,YAAY,gBAAgB,SAAS;AAAA;AAAA,EAC5D;AAEJ;AAOO,SAAS,kBAAkB,OAAgC;AAChE,QAAM,aAAS,yBAAS;AACxB,SACE;AAAA,IAAC,yBAAS;AAAA,IAAT;AAAA,MACE,GAAG;AAAA,MACJ,eAAW,eAAG,OAAO,WAAW,MAAM,SAAS;AAAA;AAAA,EACjD;AAEJ;;;ADrCO,IAAM,gBAAoC;AAAA,EAC/C,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,YAAY;AAAA,EACZ,WAAW;AACb;","names":[]}
@@ -0,0 +1,76 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/components/fieldset/primitives.tsx
21
+ var primitives_exports = {};
22
+ __export(primitives_exports, {
23
+ FieldsetErrorText: () => FieldsetErrorText,
24
+ FieldsetHelperText: () => FieldsetHelperText,
25
+ FieldsetLegend: () => FieldsetLegend,
26
+ FieldsetRoot: () => FieldsetRoot
27
+ });
28
+ module.exports = __toCommonJS(primitives_exports);
29
+ var import_fieldset = require("@ark-ui/react/fieldset");
30
+ var import_css = require("@cerberus/styled-system/css");
31
+ var import_recipes = require("@cerberus/styled-system/recipes");
32
+ var import_jsx_runtime = require("react/jsx-runtime");
33
+ function FieldsetRoot(props) {
34
+ const styles = (0, import_recipes.fieldset)();
35
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_fieldset.Fieldset.Root, { ...props, className: (0, import_css.cx)(styles.root, props.className) });
36
+ }
37
+ function FieldsetLegend(props) {
38
+ const { usage, ...legendProps } = props;
39
+ const styles = (0, import_recipes.fieldset)({ usage });
40
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
41
+ import_fieldset.Fieldset.Legend,
42
+ {
43
+ ...legendProps,
44
+ className: (0, import_css.cx)(styles.legend, legendProps.className)
45
+ }
46
+ );
47
+ }
48
+ function FieldsetHelperText(props) {
49
+ const { usage, ...helperTextProps } = props;
50
+ const styles = (0, import_recipes.fieldset)({ usage });
51
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
52
+ import_fieldset.Fieldset.HelperText,
53
+ {
54
+ ...helperTextProps,
55
+ className: (0, import_css.cx)(styles.helperText, helperTextProps.className)
56
+ }
57
+ );
58
+ }
59
+ function FieldsetErrorText(props) {
60
+ const styles = (0, import_recipes.fieldset)();
61
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
62
+ import_fieldset.Fieldset.ErrorText,
63
+ {
64
+ ...props,
65
+ className: (0, import_css.cx)(styles.errorText, props.className)
66
+ }
67
+ );
68
+ }
69
+ // Annotate the CommonJS export names for ESM import in node:
70
+ 0 && (module.exports = {
71
+ FieldsetErrorText,
72
+ FieldsetHelperText,
73
+ FieldsetLegend,
74
+ FieldsetRoot
75
+ });
76
+ //# sourceMappingURL=primitives.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/fieldset/primitives.tsx"],"sourcesContent":["import {\n Fieldset,\n type FieldsetHelperTextProps,\n type FieldsetLegendProps,\n type FieldsetRootProps,\n} from '@ark-ui/react/fieldset'\nimport { cx } from '@cerberus/styled-system/css'\nimport {\n fieldset,\n type FieldsetVariantProps,\n} from '@cerberus/styled-system/recipes'\n\n/**\n * This module contains all the primitives of the Fieldset component.\n * @module 'react/fieldset'\n */\n\n/**\n * The context & container for the Fieldset components.\n * @description [Fieldset Docs](https://cerberus.digitalu.design/react/fieldset)\n * @description [Primitive Docs](https://ark-ui.com/react/docs/components/fieldset)\n */\nexport function FieldsetRoot(props: FieldsetRootProps) {\n const styles = fieldset()\n return (\n <Fieldset.Root {...props} className={cx(styles.root, props.className)} />\n )\n}\n\n/**\n * The legend element for the Fieldset group.\n * @description [Fieldset Docs](https://cerberus.digitalu.design/react/fieldset)\n * @description [Primitive Docs](https://ark-ui.com/react/docs/components/fieldset)\n */\nexport function FieldsetLegend(\n props: FieldsetLegendProps & FieldsetVariantProps,\n) {\n const { usage, ...legendProps } = props\n const styles = fieldset({ usage })\n return (\n <Fieldset.Legend\n {...legendProps}\n className={cx(styles.legend, legendProps.className)}\n />\n )\n}\n\n/**\n * The description element for the Fieldset group.\n * @description [Fieldset Docs](https://cerberus.digitalu.design/react/fieldset)\n * @description [Primitive Docs](https://ark-ui.com/react/docs/components/fieldset)\n */\nexport function FieldsetHelperText(\n props: FieldsetHelperTextProps & FieldsetVariantProps,\n) {\n const { usage, ...helperTextProps } = props\n const styles = fieldset({ usage })\n return (\n <Fieldset.HelperText\n {...helperTextProps}\n className={cx(styles.helperText, helperTextProps.className)}\n />\n )\n}\n\n/**\n * The error text element for the Fieldset group.\n * @description [Fieldset Docs](https://cerberus.digitalu.design/react/fieldset)\n * @description [Primitive Docs](https://ark-ui.com/react/docs/components/fieldset)\n */\nexport function FieldsetErrorText(props: FieldsetHelperTextProps) {\n const styles = fieldset()\n return (\n <Fieldset.ErrorText\n {...props}\n className={cx(styles.errorText, props.className)}\n />\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAKO;AACP,iBAAmB;AACnB,qBAGO;AAeH;AAHG,SAAS,aAAa,OAA0B;AACrD,QAAM,aAAS,yBAAS;AACxB,SACE,4CAAC,yBAAS,MAAT,EAAe,GAAG,OAAO,eAAW,eAAG,OAAO,MAAM,MAAM,SAAS,GAAG;AAE3E;AAOO,SAAS,eACd,OACA;AACA,QAAM,EAAE,OAAO,GAAG,YAAY,IAAI;AAClC,QAAM,aAAS,yBAAS,EAAE,MAAM,CAAC;AACjC,SACE;AAAA,IAAC,yBAAS;AAAA,IAAT;AAAA,MACE,GAAG;AAAA,MACJ,eAAW,eAAG,OAAO,QAAQ,YAAY,SAAS;AAAA;AAAA,EACpD;AAEJ;AAOO,SAAS,mBACd,OACA;AACA,QAAM,EAAE,OAAO,GAAG,gBAAgB,IAAI;AACtC,QAAM,aAAS,yBAAS,EAAE,MAAM,CAAC;AACjC,SACE;AAAA,IAAC,yBAAS;AAAA,IAAT;AAAA,MACE,GAAG;AAAA,MACJ,eAAW,eAAG,OAAO,YAAY,gBAAgB,SAAS;AAAA;AAAA,EAC5D;AAEJ;AAOO,SAAS,kBAAkB,OAAgC;AAChE,QAAM,aAAS,yBAAS;AACxB,SACE;AAAA,IAAC,yBAAS;AAAA,IAAT;AAAA,MACE,GAAG;AAAA,MACJ,eAAW,eAAG,OAAO,WAAW,MAAM,SAAS;AAAA;AAAA,EACjD;AAEJ;","names":[]}
@@ -0,0 +1,143 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/components/radio/index.ts
21
+ var radio_exports = {};
22
+ __export(radio_exports, {
23
+ Radio: () => Radio,
24
+ RadioGroup: () => RadioGroup,
25
+ RadioGroupIndicator: () => RadioGroupIndicator,
26
+ RadioGroupItem: () => RadioGroupItem,
27
+ RadioGroupItemControl: () => RadioGroupItemControl,
28
+ RadioGroupItemHiddenInput: () => RadioGroupItemHiddenInput,
29
+ RadioGroupItemText: () => RadioGroupItemText,
30
+ RadioGroupLabel: () => RadioGroupLabel,
31
+ RadioGroupRoot: () => RadioGroupRoot,
32
+ RadioParts: () => RadioParts
33
+ });
34
+ module.exports = __toCommonJS(radio_exports);
35
+
36
+ // src/components/radio/primitives.tsx
37
+ var import_radio_group = require("@ark-ui/react/radio-group");
38
+ var import_css = require("@cerberus/styled-system/css");
39
+ var import_recipes = require("@cerberus/styled-system/recipes");
40
+ var import_jsx_runtime = require("react/jsx-runtime");
41
+ function RadioGroupRoot(props) {
42
+ const { size, orientation, ...rootProps } = props;
43
+ const styles = (0, import_recipes.radioGroup)({ size, orientation });
44
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
45
+ import_radio_group.RadioGroup.Root,
46
+ {
47
+ ...rootProps,
48
+ className: (0, import_css.cx)(styles.root, rootProps.className)
49
+ }
50
+ );
51
+ }
52
+ function RadioGroupLabel(props) {
53
+ const styles = (0, import_recipes.radioGroup)();
54
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
55
+ import_radio_group.RadioGroup.Label,
56
+ {
57
+ ...props,
58
+ className: (0, import_css.cx)(styles.label, props.className)
59
+ }
60
+ );
61
+ }
62
+ function RadioGroupIndicator(props) {
63
+ const styles = (0, import_recipes.radioGroup)();
64
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
65
+ import_radio_group.RadioGroup.Indicator,
66
+ {
67
+ ...props,
68
+ className: (0, import_css.cx)(styles.indicator, props.className)
69
+ }
70
+ );
71
+ }
72
+ function RadioGroupItem(props) {
73
+ const styles = (0, import_recipes.radioGroup)();
74
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
75
+ import_radio_group.RadioGroup.Item,
76
+ {
77
+ ...props,
78
+ className: (0, import_css.cx)(styles.item, props.className)
79
+ }
80
+ );
81
+ }
82
+ function RadioGroupItemText(props) {
83
+ const { size, orientation, ...itemTextProps } = props;
84
+ const styles = (0, import_recipes.radioGroup)({ size, orientation });
85
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
86
+ import_radio_group.RadioGroup.ItemText,
87
+ {
88
+ ...itemTextProps,
89
+ className: (0, import_css.cx)(styles.itemText, itemTextProps.className)
90
+ }
91
+ );
92
+ }
93
+ function RadioGroupItemControl(props) {
94
+ const { size, orientation, ...itemControlProps } = props;
95
+ const styles = (0, import_recipes.radioGroup)({ size, orientation });
96
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
97
+ import_radio_group.RadioGroup.ItemControl,
98
+ {
99
+ ...itemControlProps,
100
+ className: (0, import_css.cx)(styles.itemControl, itemControlProps.className)
101
+ }
102
+ );
103
+ }
104
+ function RadioGroupItemHiddenInput(props) {
105
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_radio_group.RadioGroup.ItemHiddenInput, { ...props });
106
+ }
107
+ var RadioGroup = RadioGroupRoot;
108
+
109
+ // src/components/radio/parts.ts
110
+ var RadioParts = {
111
+ Root: RadioGroupRoot,
112
+ Label: RadioGroupLabel,
113
+ Indicator: RadioGroupIndicator,
114
+ Item: RadioGroupItem,
115
+ ItemText: RadioGroupItemText,
116
+ ItemControl: RadioGroupItemControl,
117
+ ItemHiddenInput: RadioGroupItemHiddenInput
118
+ };
119
+
120
+ // src/components/radio/radio.tsx
121
+ var import_jsx_runtime2 = require("react/jsx-runtime");
122
+ function Radio(props) {
123
+ const { size, children, ...groupProps } = props;
124
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(RadioGroupItem, { ...groupProps, children: [
125
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(RadioGroupItemControl, { size }),
126
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(RadioGroupItemText, { size, children }),
127
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(RadioGroupItemHiddenInput, {})
128
+ ] });
129
+ }
130
+ // Annotate the CommonJS export names for ESM import in node:
131
+ 0 && (module.exports = {
132
+ Radio,
133
+ RadioGroup,
134
+ RadioGroupIndicator,
135
+ RadioGroupItem,
136
+ RadioGroupItemControl,
137
+ RadioGroupItemHiddenInput,
138
+ RadioGroupItemText,
139
+ RadioGroupLabel,
140
+ RadioGroupRoot,
141
+ RadioParts
142
+ });
143
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/radio/index.ts","../../../../src/components/radio/primitives.tsx","../../../../src/components/radio/parts.ts","../../../../src/components/radio/radio.tsx"],"sourcesContent":["export * from './parts'\nexport * from './primitives'\nexport * from './radio'\n","import {\n RadioGroup as ArkRadioGroup,\n type RadioGroupIndicatorProps,\n type RadioGroupItemControlProps,\n type RadioGroupItemHiddenInputProps,\n type RadioGroupItemProps,\n type RadioGroupItemTextProps,\n type RadioGroupLabelProps,\n type RadioGroupRootProps,\n} from '@ark-ui/react/radio-group'\nimport { cx } from '@cerberus/styled-system/css'\nimport {\n radioGroup,\n type RadioGroupVariantProps,\n} from '@cerberus/styled-system/recipes'\n\n/**\n * This module contains the Radio primitives\n * @module 'react/radio'\n */\n\n/**\n * The RadioGroupRoot component is used to group radio buttons together.\n */\nexport function RadioGroupRoot(\n props: RadioGroupRootProps & RadioGroupVariantProps,\n) {\n const { size, orientation, ...rootProps } = props\n const styles = radioGroup({ size, orientation })\n return (\n <ArkRadioGroup.Root\n {...rootProps}\n className={cx(styles.root, rootProps.className)}\n />\n )\n}\n\n/**\n * The RadioGroupLabel component is used to label a group of radio buttons.\n */\nexport function RadioGroupLabel(props: RadioGroupLabelProps) {\n const styles = radioGroup()\n return (\n <ArkRadioGroup.Label\n {...props}\n className={cx(styles.label, props.className)}\n />\n )\n}\n\n/**\n * The RadioGroupIndicator component is used to indicate the selected radio\n * button in a group.\n */\nexport function RadioGroupIndicator(props: RadioGroupIndicatorProps) {\n const styles = radioGroup()\n return (\n <ArkRadioGroup.Indicator\n {...props}\n className={cx(styles.indicator, props.className)}\n />\n )\n}\n\n/**\n * The RadioGroupItem component is used to render a single radio button in a\n * group.\n */\nexport function RadioGroupItem(props: RadioGroupItemProps) {\n const styles = radioGroup()\n return (\n <ArkRadioGroup.Item\n {...props}\n className={cx(styles.item, props.className)}\n />\n )\n}\n\n/**\n * The RadioGroupItemText component is used to render the text label for a\n * single radio button in a group.\n */\nexport function RadioGroupItemText(\n props: RadioGroupItemTextProps & RadioGroupVariantProps,\n) {\n const { size, orientation, ...itemTextProps } = props\n const styles = radioGroup({ size, orientation })\n return (\n <ArkRadioGroup.ItemText\n {...itemTextProps}\n className={cx(styles.itemText, itemTextProps.className)}\n />\n )\n}\n\n/**\n * The RadioGroupItemControl component is used to render the control for a\n * single radio button in a group.\n */\nexport function RadioGroupItemControl(\n props: RadioGroupItemControlProps & RadioGroupVariantProps,\n) {\n const { size, orientation, ...itemControlProps } = props\n const styles = radioGroup({ size, orientation })\n return (\n <ArkRadioGroup.ItemControl\n {...itemControlProps}\n className={cx(styles.itemControl, itemControlProps.className)}\n />\n )\n}\n\n/**\n * The RadioGroupItemHiddenInput component is used to render the hidden input\n * for a single radio button in a group.\n */\nexport function RadioGroupItemHiddenInput(\n props: RadioGroupItemHiddenInputProps,\n) {\n return <ArkRadioGroup.ItemHiddenInput {...props} />\n}\n\nexport const RadioGroup = RadioGroupRoot\n","import type { ElementType } from 'react'\nimport {\n RadioGroupRoot,\n RadioGroupLabel,\n RadioGroupIndicator,\n RadioGroupItem,\n RadioGroupItemText,\n RadioGroupItemControl,\n RadioGroupItemHiddenInput,\n} from './primitives'\n\n/**\n * This module contains the parts of the Radio parts.\n * @module 'radio/parts'\n */\n\ninterface RadioPartsValue {\n /**\n * The container of the field.\n */\n Root: ElementType\n /**\n * The label of the field.\n */\n Label: ElementType\n /**\n * The indicator that appears when a radio is checked.\n */\n Indicator: ElementType\n /**\n * An individual radio item of the field.\n */\n Item: ElementType\n /**\n * The text that labels a single radio of the field.\n */\n ItemText: ElementType\n /**\n * The visual radio control of the field.\n */\n ItemControl: ElementType\n /**\n * The native input for a radio item in the field.\n */\n ItemHiddenInput: ElementType\n}\n\n/**\n * An Object containing the parts of the Radio component. For users that\n * prefer Object component syntax.\n *\n * @remarks\n *\n * When using object component syntax, you import the RadioParts object and\n * the entire family of components vs. only what you use.\n */\nexport const RadioParts: RadioPartsValue = {\n Root: RadioGroupRoot,\n Label: RadioGroupLabel,\n Indicator: RadioGroupIndicator,\n Item: RadioGroupItem,\n ItemText: RadioGroupItemText,\n ItemControl: RadioGroupItemControl,\n ItemHiddenInput: RadioGroupItemHiddenInput,\n}\n","import type { RadioGroupItemProps } from '@ark-ui/react'\nimport { type RadioGroupVariantProps } from '@cerberus/styled-system/recipes'\nimport {\n RadioGroupItem,\n RadioGroupItemControl,\n RadioGroupItemHiddenInput,\n RadioGroupItemText,\n} from './primitives'\n\n/**\n * This module contains the Radio component.\n * @module\n */\n\nexport type RadioProps = RadioGroupVariantProps & RadioGroupItemProps\n\n/**\n * The Radio component is used to allow users to select a single option from a list of options.\n * @see https://cerberus.digitalu.design/react/radio\n * @memberof module:Field\n * @example\n * ```tsx\n * <Radio value=\"option1\">Option 1</Radio>\n * ```\n */\nexport function Radio(props: RadioProps) {\n const { size, children, ...groupProps } = props\n return (\n <RadioGroupItem {...groupProps}>\n <RadioGroupItemControl size={size} />\n <RadioGroupItemText size={size}>{children}</RadioGroupItemText>\n <RadioGroupItemHiddenInput />\n </RadioGroupItem>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;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,IAAI;AACnD,QAAM,aAAS,2BAAW,EAAE,MAAM,YAAY,CAAC;AAC/C,SACE;AAAA,IAAC,mBAAAA,WAAc;AAAA,IAAd;AAAA,MACE,GAAG;AAAA,MACJ,eAAW,eAAG,OAAO,aAAa,iBAAiB,SAAS;AAAA;AAAA,EAC9D;AAEJ;AAMO,SAAS,0BACd,OACA;AACA,SAAO,4CAAC,mBAAAA,WAAc,iBAAd,EAA+B,GAAG,OAAO;AACnD;AAEO,IAAM,aAAa;;;AClEnB,IAAM,aAA8B;AAAA,EACzC,MAAM;AAAA,EACN,OAAO;AAAA,EACP,WAAW;AAAA,EACX,MAAM;AAAA,EACN,UAAU;AAAA,EACV,aAAa;AAAA,EACb,iBAAiB;AACnB;;;ACpCI,IAAAC,sBAAA;AAHG,SAAS,MAAM,OAAmB;AACvC,QAAM,EAAE,MAAM,UAAU,GAAG,WAAW,IAAI;AAC1C,SACE,8CAAC,kBAAgB,GAAG,YAClB;AAAA,iDAAC,yBAAsB,MAAY;AAAA,IACnC,6CAAC,sBAAmB,MAAa,UAAS;AAAA,IAC1C,6CAAC,6BAA0B;AAAA,KAC7B;AAEJ;","names":["ArkRadioGroup","import_jsx_runtime"]}
@@ -0,0 +1,113 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/components/radio/parts.ts
21
+ var parts_exports = {};
22
+ __export(parts_exports, {
23
+ RadioParts: () => RadioParts
24
+ });
25
+ module.exports = __toCommonJS(parts_exports);
26
+
27
+ // src/components/radio/primitives.tsx
28
+ var import_radio_group = require("@ark-ui/react/radio-group");
29
+ var import_css = require("@cerberus/styled-system/css");
30
+ var import_recipes = require("@cerberus/styled-system/recipes");
31
+ var import_jsx_runtime = require("react/jsx-runtime");
32
+ function RadioGroupRoot(props) {
33
+ const { size, orientation, ...rootProps } = props;
34
+ const styles = (0, import_recipes.radioGroup)({ size, orientation });
35
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
36
+ import_radio_group.RadioGroup.Root,
37
+ {
38
+ ...rootProps,
39
+ className: (0, import_css.cx)(styles.root, rootProps.className)
40
+ }
41
+ );
42
+ }
43
+ function RadioGroupLabel(props) {
44
+ const styles = (0, import_recipes.radioGroup)();
45
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
46
+ import_radio_group.RadioGroup.Label,
47
+ {
48
+ ...props,
49
+ className: (0, import_css.cx)(styles.label, props.className)
50
+ }
51
+ );
52
+ }
53
+ function RadioGroupIndicator(props) {
54
+ const styles = (0, import_recipes.radioGroup)();
55
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
56
+ import_radio_group.RadioGroup.Indicator,
57
+ {
58
+ ...props,
59
+ className: (0, import_css.cx)(styles.indicator, props.className)
60
+ }
61
+ );
62
+ }
63
+ function RadioGroupItem(props) {
64
+ const styles = (0, import_recipes.radioGroup)();
65
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
66
+ import_radio_group.RadioGroup.Item,
67
+ {
68
+ ...props,
69
+ className: (0, import_css.cx)(styles.item, props.className)
70
+ }
71
+ );
72
+ }
73
+ function RadioGroupItemText(props) {
74
+ const { size, orientation, ...itemTextProps } = props;
75
+ const styles = (0, import_recipes.radioGroup)({ size, orientation });
76
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
77
+ import_radio_group.RadioGroup.ItemText,
78
+ {
79
+ ...itemTextProps,
80
+ className: (0, import_css.cx)(styles.itemText, itemTextProps.className)
81
+ }
82
+ );
83
+ }
84
+ function RadioGroupItemControl(props) {
85
+ const { size, orientation, ...itemControlProps } = props;
86
+ const styles = (0, import_recipes.radioGroup)({ size, orientation });
87
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
88
+ import_radio_group.RadioGroup.ItemControl,
89
+ {
90
+ ...itemControlProps,
91
+ className: (0, import_css.cx)(styles.itemControl, itemControlProps.className)
92
+ }
93
+ );
94
+ }
95
+ function RadioGroupItemHiddenInput(props) {
96
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_radio_group.RadioGroup.ItemHiddenInput, { ...props });
97
+ }
98
+
99
+ // src/components/radio/parts.ts
100
+ var RadioParts = {
101
+ Root: RadioGroupRoot,
102
+ Label: RadioGroupLabel,
103
+ Indicator: RadioGroupIndicator,
104
+ Item: RadioGroupItem,
105
+ ItemText: RadioGroupItemText,
106
+ ItemControl: RadioGroupItemControl,
107
+ ItemHiddenInput: RadioGroupItemHiddenInput
108
+ };
109
+ // Annotate the CommonJS export names for ESM import in node:
110
+ 0 && (module.exports = {
111
+ RadioParts
112
+ });
113
+ //# sourceMappingURL=parts.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/radio/parts.ts","../../../../src/components/radio/primitives.tsx"],"sourcesContent":["import type { ElementType } from 'react'\nimport {\n RadioGroupRoot,\n RadioGroupLabel,\n RadioGroupIndicator,\n RadioGroupItem,\n RadioGroupItemText,\n RadioGroupItemControl,\n RadioGroupItemHiddenInput,\n} from './primitives'\n\n/**\n * This module contains the parts of the Radio parts.\n * @module 'radio/parts'\n */\n\ninterface RadioPartsValue {\n /**\n * The container of the field.\n */\n Root: ElementType\n /**\n * The label of the field.\n */\n Label: ElementType\n /**\n * The indicator that appears when a radio is checked.\n */\n Indicator: ElementType\n /**\n * An individual radio item of the field.\n */\n Item: ElementType\n /**\n * The text that labels a single radio of the field.\n */\n ItemText: ElementType\n /**\n * The visual radio control of the field.\n */\n ItemControl: ElementType\n /**\n * The native input for a radio item in the field.\n */\n ItemHiddenInput: ElementType\n}\n\n/**\n * An Object containing the parts of the Radio component. For users that\n * prefer Object component syntax.\n *\n * @remarks\n *\n * When using object component syntax, you import the RadioParts object and\n * the entire family of components vs. only what you use.\n */\nexport const RadioParts: RadioPartsValue = {\n Root: RadioGroupRoot,\n Label: RadioGroupLabel,\n Indicator: RadioGroupIndicator,\n Item: RadioGroupItem,\n ItemText: RadioGroupItemText,\n ItemControl: RadioGroupItemControl,\n ItemHiddenInput: RadioGroupItemHiddenInput,\n}\n","import {\n RadioGroup as ArkRadioGroup,\n type RadioGroupIndicatorProps,\n type RadioGroupItemControlProps,\n type RadioGroupItemHiddenInputProps,\n type RadioGroupItemProps,\n type RadioGroupItemTextProps,\n type RadioGroupLabelProps,\n type RadioGroupRootProps,\n} from '@ark-ui/react/radio-group'\nimport { cx } from '@cerberus/styled-system/css'\nimport {\n radioGroup,\n type RadioGroupVariantProps,\n} from '@cerberus/styled-system/recipes'\n\n/**\n * This module contains the Radio primitives\n * @module 'react/radio'\n */\n\n/**\n * The RadioGroupRoot component is used to group radio buttons together.\n */\nexport function RadioGroupRoot(\n props: RadioGroupRootProps & RadioGroupVariantProps,\n) {\n const { size, orientation, ...rootProps } = props\n const styles = radioGroup({ size, orientation })\n return (\n <ArkRadioGroup.Root\n {...rootProps}\n className={cx(styles.root, rootProps.className)}\n />\n )\n}\n\n/**\n * The RadioGroupLabel component is used to label a group of radio buttons.\n */\nexport function RadioGroupLabel(props: RadioGroupLabelProps) {\n const styles = radioGroup()\n return (\n <ArkRadioGroup.Label\n {...props}\n className={cx(styles.label, props.className)}\n />\n )\n}\n\n/**\n * The RadioGroupIndicator component is used to indicate the selected radio\n * button in a group.\n */\nexport function RadioGroupIndicator(props: RadioGroupIndicatorProps) {\n const styles = radioGroup()\n return (\n <ArkRadioGroup.Indicator\n {...props}\n className={cx(styles.indicator, props.className)}\n />\n )\n}\n\n/**\n * The RadioGroupItem component is used to render a single radio button in a\n * group.\n */\nexport function RadioGroupItem(props: RadioGroupItemProps) {\n const styles = radioGroup()\n return (\n <ArkRadioGroup.Item\n {...props}\n className={cx(styles.item, props.className)}\n />\n )\n}\n\n/**\n * The RadioGroupItemText component is used to render the text label for a\n * single radio button in a group.\n */\nexport function RadioGroupItemText(\n props: RadioGroupItemTextProps & RadioGroupVariantProps,\n) {\n const { size, orientation, ...itemTextProps } = props\n const styles = radioGroup({ size, orientation })\n return (\n <ArkRadioGroup.ItemText\n {...itemTextProps}\n className={cx(styles.itemText, itemTextProps.className)}\n />\n )\n}\n\n/**\n * The RadioGroupItemControl component is used to render the control for a\n * single radio button in a group.\n */\nexport function RadioGroupItemControl(\n props: RadioGroupItemControlProps & RadioGroupVariantProps,\n) {\n const { size, orientation, ...itemControlProps } = props\n const styles = radioGroup({ size, orientation })\n return (\n <ArkRadioGroup.ItemControl\n {...itemControlProps}\n className={cx(styles.itemControl, itemControlProps.className)}\n />\n )\n}\n\n/**\n * The RadioGroupItemHiddenInput component is used to render the hidden input\n * for a single radio button in a group.\n */\nexport function RadioGroupItemHiddenInput(\n props: RadioGroupItemHiddenInputProps,\n) {\n return <ArkRadioGroup.ItemHiddenInput {...props} />\n}\n\nexport const RadioGroup = RadioGroupRoot\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,yBASO;AACP,iBAAmB;AACnB,qBAGO;AAgBH;AANG,SAAS,eACd,OACA;AACA,QAAM,EAAE,MAAM,aAAa,GAAG,UAAU,IAAI;AAC5C,QAAM,aAAS,2BAAW,EAAE,MAAM,YAAY,CAAC;AAC/C,SACE;AAAA,IAAC,mBAAAA,WAAc;AAAA,IAAd;AAAA,MACE,GAAG;AAAA,MACJ,eAAW,eAAG,OAAO,MAAM,UAA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ADhEO,IAAM,aAA8B;AAAA,EACzC,MAAM;AAAA,EACN,OAAO;AAAA,EACP,WAAW;AAAA,EACX,MAAM;AAAA,EACN,UAAU;AAAA,EACV,aAAa;AAAA,EACb,iBAAiB;AACnB;","names":["ArkRadioGroup"]}
@@ -0,0 +1,115 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/components/radio/primitives.tsx
21
+ var primitives_exports = {};
22
+ __export(primitives_exports, {
23
+ RadioGroup: () => RadioGroup,
24
+ RadioGroupIndicator: () => RadioGroupIndicator,
25
+ RadioGroupItem: () => RadioGroupItem,
26
+ RadioGroupItemControl: () => RadioGroupItemControl,
27
+ RadioGroupItemHiddenInput: () => RadioGroupItemHiddenInput,
28
+ RadioGroupItemText: () => RadioGroupItemText,
29
+ RadioGroupLabel: () => RadioGroupLabel,
30
+ RadioGroupRoot: () => RadioGroupRoot
31
+ });
32
+ module.exports = __toCommonJS(primitives_exports);
33
+ var import_radio_group = require("@ark-ui/react/radio-group");
34
+ var import_css = require("@cerberus/styled-system/css");
35
+ var import_recipes = require("@cerberus/styled-system/recipes");
36
+ var import_jsx_runtime = require("react/jsx-runtime");
37
+ function RadioGroupRoot(props) {
38
+ const { size, orientation, ...rootProps } = props;
39
+ const styles = (0, import_recipes.radioGroup)({ size, orientation });
40
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
41
+ import_radio_group.RadioGroup.Root,
42
+ {
43
+ ...rootProps,
44
+ className: (0, import_css.cx)(styles.root, rootProps.className)
45
+ }
46
+ );
47
+ }
48
+ function RadioGroupLabel(props) {
49
+ const styles = (0, import_recipes.radioGroup)();
50
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
51
+ import_radio_group.RadioGroup.Label,
52
+ {
53
+ ...props,
54
+ className: (0, import_css.cx)(styles.label, props.className)
55
+ }
56
+ );
57
+ }
58
+ function RadioGroupIndicator(props) {
59
+ const styles = (0, import_recipes.radioGroup)();
60
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
61
+ import_radio_group.RadioGroup.Indicator,
62
+ {
63
+ ...props,
64
+ className: (0, import_css.cx)(styles.indicator, props.className)
65
+ }
66
+ );
67
+ }
68
+ function RadioGroupItem(props) {
69
+ const styles = (0, import_recipes.radioGroup)();
70
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
71
+ import_radio_group.RadioGroup.Item,
72
+ {
73
+ ...props,
74
+ className: (0, import_css.cx)(styles.item, props.className)
75
+ }
76
+ );
77
+ }
78
+ function RadioGroupItemText(props) {
79
+ const { size, orientation, ...itemTextProps } = props;
80
+ const styles = (0, import_recipes.radioGroup)({ size, orientation });
81
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
82
+ import_radio_group.RadioGroup.ItemText,
83
+ {
84
+ ...itemTextProps,
85
+ className: (0, import_css.cx)(styles.itemText, itemTextProps.className)
86
+ }
87
+ );
88
+ }
89
+ function RadioGroupItemControl(props) {
90
+ const { size, orientation, ...itemControlProps } = props;
91
+ const styles = (0, import_recipes.radioGroup)({ size, orientation });
92
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
93
+ import_radio_group.RadioGroup.ItemControl,
94
+ {
95
+ ...itemControlProps,
96
+ className: (0, import_css.cx)(styles.itemControl, itemControlProps.className)
97
+ }
98
+ );
99
+ }
100
+ function RadioGroupItemHiddenInput(props) {
101
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_radio_group.RadioGroup.ItemHiddenInput, { ...props });
102
+ }
103
+ var RadioGroup = RadioGroupRoot;
104
+ // Annotate the CommonJS export names for ESM import in node:
105
+ 0 && (module.exports = {
106
+ RadioGroup,
107
+ RadioGroupIndicator,
108
+ RadioGroupItem,
109
+ RadioGroupItemControl,
110
+ RadioGroupItemHiddenInput,
111
+ RadioGroupItemText,
112
+ RadioGroupLabel,
113
+ RadioGroupRoot
114
+ });
115
+ //# sourceMappingURL=primitives.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/radio/primitives.tsx"],"sourcesContent":["import {\n RadioGroup as ArkRadioGroup,\n type RadioGroupIndicatorProps,\n type RadioGroupItemControlProps,\n type RadioGroupItemHiddenInputProps,\n type RadioGroupItemProps,\n type RadioGroupItemTextProps,\n type RadioGroupLabelProps,\n type RadioGroupRootProps,\n} from '@ark-ui/react/radio-group'\nimport { cx } from '@cerberus/styled-system/css'\nimport {\n radioGroup,\n type RadioGroupVariantProps,\n} from '@cerberus/styled-system/recipes'\n\n/**\n * This module contains the Radio primitives\n * @module 'react/radio'\n */\n\n/**\n * The RadioGroupRoot component is used to group radio buttons together.\n */\nexport function RadioGroupRoot(\n props: RadioGroupRootProps & RadioGroupVariantProps,\n) {\n const { size, orientation, ...rootProps } = props\n const styles = radioGroup({ size, orientation })\n return (\n <ArkRadioGroup.Root\n {...rootProps}\n className={cx(styles.root, rootProps.className)}\n />\n )\n}\n\n/**\n * The RadioGroupLabel component is used to label a group of radio buttons.\n */\nexport function RadioGroupLabel(props: RadioGroupLabelProps) {\n const styles = radioGroup()\n return (\n <ArkRadioGroup.Label\n {...props}\n className={cx(styles.label, props.className)}\n />\n )\n}\n\n/**\n * The RadioGroupIndicator component is used to indicate the selected radio\n * button in a group.\n */\nexport function RadioGroupIndicator(props: RadioGroupIndicatorProps) {\n const styles = radioGroup()\n return (\n <ArkRadioGroup.Indicator\n {...props}\n className={cx(styles.indicator, props.className)}\n />\n )\n}\n\n/**\n * The RadioGroupItem component is used to render a single radio button in a\n * group.\n */\nexport function RadioGroupItem(props: RadioGroupItemProps) {\n const styles = radioGroup()\n return (\n <ArkRadioGroup.Item\n {...props}\n className={cx(styles.item, props.className)}\n />\n )\n}\n\n/**\n * The RadioGroupItemText component is used to render the text label for a\n * single radio button in a group.\n */\nexport function RadioGroupItemText(\n props: RadioGroupItemTextProps & RadioGroupVariantProps,\n) {\n const { size, orientation, ...itemTextProps } = props\n const styles = radioGroup({ size, orientation })\n return (\n <ArkRadioGroup.ItemText\n {...itemTextProps}\n className={cx(styles.itemText, itemTextProps.className)}\n />\n )\n}\n\n/**\n * The RadioGroupItemControl component is used to render the control for a\n * single radio button in a group.\n */\nexport function RadioGroupItemControl(\n props: RadioGroupItemControlProps & RadioGroupVariantProps,\n) {\n const { size, orientation, ...itemControlProps } = props\n const styles = radioGroup({ size, orientation })\n return (\n <ArkRadioGroup.ItemControl\n {...itemControlProps}\n className={cx(styles.itemControl, itemControlProps.className)}\n />\n )\n}\n\n/**\n * The RadioGroupItemHiddenInput component is used to render the hidden input\n * for a single radio button in a group.\n */\nexport function RadioGroupItemHiddenInput(\n props: RadioGroupItemHiddenInputProps,\n) {\n return <ArkRadioGroup.ItemHiddenInput {...props} />\n}\n\nexport const RadioGroup = RadioGroupRoot\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,yBASO;AACP,iBAAmB;AACnB,qBAGO;AAgBH;AANG,SAAS,eACd,OACA;AACA,QAAM,EAAE,MAAM,aAAa,GAAG,UAAU,IAAI;AAC5C,QAAM,aAAS,2BAAW,EAAE,MAAM,YAAY,CAAC;AAC/C,SACE;AAAA,IAAC,mBAAAA,WAAc;AA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