@cerberus-design/react 0.15.0-next-e0ce56e → 0.15.0-next-5d7dc1e
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.
- package/build/legacy/_tsup-dts-rollup.d.cts +491 -119
- package/build/legacy/components/DatePicker.client.cjs +67 -89
- package/build/legacy/components/DatePicker.client.cjs.map +1 -1
- package/build/legacy/components/Fieldset.cjs +4 -17
- package/build/legacy/components/Fieldset.cjs.map +1 -1
- package/build/legacy/components/FieldsetLabel.cjs.map +1 -1
- package/build/legacy/components/FileStatus.cjs +126 -79
- package/build/legacy/components/FileStatus.cjs.map +1 -1
- package/build/legacy/components/Legend.cjs +10 -22
- package/build/legacy/components/Legend.cjs.map +1 -1
- package/build/legacy/components/Radio.cjs +4 -21
- package/build/legacy/components/Radio.cjs.map +1 -1
- package/build/legacy/components/Select.cjs +19 -54
- package/build/legacy/components/Select.cjs.map +1 -1
- package/build/legacy/components/Toggle.cjs +17 -24
- package/build/legacy/components/Toggle.cjs.map +1 -1
- package/build/legacy/components/button/button.cjs +1 -1
- package/build/legacy/components/button/button.cjs.map +1 -1
- package/build/legacy/components/button/index.cjs +1 -1
- package/build/legacy/components/button/index.cjs.map +1 -1
- package/build/legacy/components/button/parts.cjs +1 -1
- package/build/legacy/components/button/parts.cjs.map +1 -1
- package/build/legacy/components/checkbox/checkbox-icon.cjs +121 -0
- package/build/legacy/components/checkbox/checkbox-icon.cjs.map +1 -0
- package/build/legacy/components/checkbox/checkbox.cjs +165 -0
- package/build/legacy/components/checkbox/checkbox.cjs.map +1 -0
- package/build/legacy/components/checkbox/index.cjs +179 -0
- package/build/legacy/components/checkbox/index.cjs.map +1 -0
- package/build/legacy/components/checkbox/parts.cjs +89 -0
- package/build/legacy/components/checkbox/parts.cjs.map +1 -0
- package/build/legacy/components/checkbox/primitives.cjs +87 -0
- package/build/legacy/components/checkbox/primitives.cjs.map +1 -0
- package/build/legacy/components/{FieldMessage.cjs → deprecated/FieldMessage.cjs} +4 -17
- package/build/legacy/components/deprecated/FieldMessage.cjs.map +1 -0
- package/build/legacy/components/{Textarea.cjs → deprecated/Label.cjs} +24 -36
- package/build/legacy/components/deprecated/Label.cjs.map +1 -0
- package/build/legacy/components/field/field.cjs +130 -0
- package/build/legacy/components/field/field.cjs.map +1 -0
- package/build/legacy/components/field/index.cjs +267 -0
- package/build/legacy/components/field/index.cjs.map +1 -0
- package/build/legacy/components/field/parts.cjs +188 -0
- package/build/legacy/components/field/parts.cjs.map +1 -0
- package/build/legacy/components/field/primitives.cjs +191 -0
- package/build/legacy/components/field/primitives.cjs.map +1 -0
- package/build/legacy/components/field/start-indicator.cjs +45 -0
- package/build/legacy/components/field/start-indicator.cjs.map +1 -0
- package/build/legacy/components/field/status-indicator.cjs +78 -0
- package/build/legacy/components/field/status-indicator.cjs.map +1 -0
- package/build/legacy/components/for.cjs +38 -0
- package/build/legacy/components/for.cjs.map +1 -0
- package/build/legacy/context/confirm-modal.cjs +1 -1
- package/build/legacy/context/confirm-modal.cjs.map +1 -1
- package/build/legacy/context/cta-modal.cjs +1 -1
- package/build/legacy/context/cta-modal.cjs.map +1 -1
- package/build/legacy/context/field.cjs +23 -4
- package/build/legacy/context/field.cjs.map +1 -1
- package/build/legacy/context/notification-center.cjs.map +1 -1
- package/build/legacy/context/prompt-modal.cjs +168 -166
- package/build/legacy/context/prompt-modal.cjs.map +1 -1
- package/build/legacy/hooks/useDate.cjs.map +1 -1
- package/build/legacy/index.cjs +1274 -1123
- package/build/legacy/index.cjs.map +1 -1
- package/build/legacy/utils/index.cjs +22 -2
- package/build/legacy/utils/index.cjs.map +1 -1
- package/build/modern/_tsup-dts-rollup.d.ts +491 -119
- package/build/modern/{chunk-2JX27W6Y.js → chunk-2BIHLH4V.js} +2 -2
- package/build/modern/chunk-2BIHLH4V.js.map +1 -0
- package/build/modern/{chunk-3ZDFQO25.js → chunk-6EUC3SUI.js} +4 -7
- package/build/modern/chunk-6EUC3SUI.js.map +1 -0
- package/build/modern/chunk-6I2FW4WI.js +33 -0
- package/build/modern/chunk-6I2FW4WI.js.map +1 -0
- package/build/modern/{chunk-MER66QUY.js → chunk-6KZVE4HC.js} +1 -1
- package/build/modern/{chunk-MER66QUY.js.map → chunk-6KZVE4HC.js.map} +1 -1
- package/build/modern/{chunk-FTPZHG6J.js → chunk-6WOJAMZV.js} +3 -9
- package/build/modern/chunk-6WOJAMZV.js.map +1 -0
- package/build/modern/chunk-77FJSNGD.js +13 -0
- package/build/modern/chunk-77FJSNGD.js.map +1 -0
- package/build/modern/chunk-BL7G3577.js +29 -0
- package/build/modern/chunk-BL7G3577.js.map +1 -0
- package/build/modern/chunk-BPRF34DU.js +62 -0
- package/build/modern/chunk-BPRF34DU.js.map +1 -0
- package/build/modern/{chunk-7P7OWBGV.js → chunk-CF3EHG42.js} +10 -10
- package/build/modern/chunk-CF3EHG42.js.map +1 -0
- package/build/modern/{chunk-Q4IV5NUT.js → chunk-CMYD5KWA.js} +40 -43
- package/build/modern/chunk-CMYD5KWA.js.map +1 -0
- package/build/modern/chunk-CNA2VKAH.js +43 -0
- package/build/modern/chunk-CNA2VKAH.js.map +1 -0
- package/build/modern/chunk-EL4MX2PG.js +22 -0
- package/build/modern/chunk-EL4MX2PG.js.map +1 -0
- package/build/modern/chunk-FBS7AX76.js +37 -0
- package/build/modern/chunk-FBS7AX76.js.map +1 -0
- package/build/modern/{chunk-KU2AWAK3.js → chunk-FK52US7K.js} +7 -20
- package/build/modern/chunk-FK52US7K.js.map +1 -0
- package/build/modern/{chunk-Z7FGXAND.js → chunk-FMRWRVUS.js} +2 -2
- package/build/modern/{chunk-XQICKZH4.js → chunk-GENS32QO.js} +10 -8
- package/build/modern/chunk-GENS32QO.js.map +1 -0
- package/build/modern/{chunk-7S47NSGR.js → chunk-H54FR7IP.js} +2 -2
- package/build/modern/chunk-KWZ3CEG6.js +23 -0
- package/build/modern/chunk-KWZ3CEG6.js.map +1 -0
- package/build/modern/{chunk-JWIJHSI6.js → chunk-L7N24B6B.js} +3 -6
- package/build/modern/chunk-L7N24B6B.js.map +1 -0
- package/build/modern/chunk-LT62577B.js +23 -0
- package/build/modern/chunk-LT62577B.js.map +1 -0
- package/build/modern/{chunk-3BM6MZ4A.js → chunk-MWRO5QYD.js} +1 -1
- package/build/modern/chunk-MWRO5QYD.js.map +1 -0
- package/build/modern/{chunk-PZAZKQMO.js → chunk-OYT7RGC7.js} +1 -1
- package/build/modern/chunk-OYT7RGC7.js.map +1 -0
- package/build/modern/{chunk-ILQW5VZT.js → chunk-RBNOEAWJ.js} +4 -7
- package/build/modern/chunk-RBNOEAWJ.js.map +1 -0
- package/build/modern/{chunk-5QONP7GT.js → chunk-S2X5OEPK.js} +2 -10
- package/build/modern/chunk-S2X5OEPK.js.map +1 -0
- package/build/modern/chunk-TIJAFPHQ.js +1 -0
- package/build/modern/chunk-TYPULJMJ.js +1 -0
- package/build/modern/chunk-UNN4LHRS.js +31 -0
- package/build/modern/chunk-UNN4LHRS.js.map +1 -0
- package/build/modern/chunk-VSTOSLFS.js +100 -0
- package/build/modern/chunk-VSTOSLFS.js.map +1 -0
- package/build/modern/chunk-Z52R6ABJ.js +21 -0
- package/build/modern/chunk-Z52R6ABJ.js.map +1 -0
- package/build/modern/{chunk-3RGRHMJQ.js → chunk-ZDANBCM3.js} +2 -2
- package/build/modern/components/AccordionItemGroup.js +1 -1
- package/build/modern/components/DatePicker.client.js +4 -5
- package/build/modern/components/Fieldset.js +1 -2
- package/build/modern/components/FieldsetLabel.js +1 -1
- package/build/modern/components/FileStatus.js +10 -4
- package/build/modern/components/Legend.js +1 -2
- package/build/modern/components/Radio.js +1 -3
- package/build/modern/components/Select.js +1 -2
- package/build/modern/components/Toggle.js +1 -2
- package/build/modern/components/button/button.js +1 -1
- package/build/modern/components/button/index.js +2 -2
- package/build/modern/components/button/parts.js +2 -2
- package/build/modern/components/checkbox/checkbox-icon.js +12 -0
- package/build/modern/components/checkbox/checkbox.js +13 -0
- package/build/modern/components/checkbox/index.js +30 -0
- package/build/modern/components/checkbox/parts.js +8 -0
- package/build/modern/components/checkbox/parts.js.map +1 -0
- package/build/modern/components/checkbox/primitives.js +17 -0
- package/build/modern/components/checkbox/primitives.js.map +1 -0
- package/build/modern/components/deprecated/FieldMessage.js +8 -0
- package/build/modern/components/deprecated/FieldMessage.js.map +1 -0
- package/build/modern/components/deprecated/Label.js +17 -0
- package/build/modern/components/deprecated/Label.js.map +1 -0
- package/build/modern/components/field/field.js +14 -0
- package/build/modern/components/field/field.js.map +1 -0
- package/build/modern/components/field/index.js +44 -0
- package/build/modern/components/field/index.js.map +1 -0
- package/build/modern/components/field/parts.js +11 -0
- package/build/modern/components/field/parts.js.map +1 -0
- package/build/modern/components/field/primitives.js +26 -0
- package/build/modern/components/field/primitives.js.map +1 -0
- package/build/modern/components/field/start-indicator.js +7 -0
- package/build/modern/components/field/start-indicator.js.map +1 -0
- package/build/modern/components/field/status-indicator.js +9 -0
- package/build/modern/components/field/status-indicator.js.map +1 -0
- package/build/modern/components/for.js +7 -0
- package/build/modern/components/for.js.map +1 -0
- package/build/modern/context/confirm-modal.js +3 -3
- package/build/modern/context/cta-modal.js +4 -4
- package/build/modern/context/field.js +34 -4
- package/build/modern/context/field.js.map +1 -1
- package/build/modern/context/notification-center.js +2 -2
- package/build/modern/context/prompt-modal.js +12 -7
- package/build/modern/hooks/useDate.js +1 -1
- package/build/modern/index.js +131 -82
- package/build/modern/index.js.map +1 -1
- package/build/modern/utils/index.js +5 -3
- package/package.json +2 -2
- package/src/components/DatePicker.client.tsx +2 -14
- package/src/components/Fieldset.tsx +3 -3
- package/src/components/FieldsetLabel.tsx +5 -2
- package/src/components/FileStatus.tsx +4 -5
- package/src/components/Legend.tsx +5 -6
- package/src/components/Radio.tsx +2 -7
- package/src/components/Select.tsx +1 -16
- package/src/components/Toggle.tsx +14 -7
- package/src/components/button/button.tsx +1 -1
- package/src/components/button/parts.ts +6 -0
- package/src/components/checkbox/checkbox-icon.tsx +39 -0
- package/src/components/checkbox/checkbox.tsx +48 -0
- package/src/components/checkbox/index.ts +3 -0
- package/src/components/checkbox/parts.ts +59 -0
- package/src/components/checkbox/primitives.tsx +104 -0
- package/src/components/{FieldMessage.tsx → deprecated/FieldMessage.tsx} +2 -13
- package/src/components/deprecated/Label.tsx +24 -0
- package/src/components/field/field.tsx +77 -0
- package/src/components/field/index.ts +5 -0
- package/src/components/field/parts.ts +77 -0
- package/src/components/field/primitives.tsx +204 -0
- package/src/components/field/start-indicator.tsx +23 -0
- package/src/components/field/status-indicator.tsx +58 -0
- package/src/components/for.tsx +43 -0
- package/src/context/field.tsx +6 -5
- package/src/context/prompt-modal.tsx +16 -18
- package/src/hooks/useDate.ts +1 -7
- package/src/index.ts +6 -7
- package/src/utils/index.ts +30 -0
- package/build/legacy/components/Checkbox.cjs +0 -113
- package/build/legacy/components/Checkbox.cjs.map +0 -1
- package/build/legacy/components/FieldMessage.cjs.map +0 -1
- package/build/legacy/components/Input.cjs +0 -95
- package/build/legacy/components/Input.cjs.map +0 -1
- package/build/legacy/components/Label.cjs +0 -93
- package/build/legacy/components/Label.cjs.map +0 -1
- package/build/legacy/components/Textarea.cjs.map +0 -1
- package/build/modern/chunk-2JX27W6Y.js.map +0 -1
- package/build/modern/chunk-3BM6MZ4A.js.map +0 -1
- package/build/modern/chunk-3ZDFQO25.js.map +0 -1
- package/build/modern/chunk-5QONP7GT.js.map +0 -1
- package/build/modern/chunk-7P7OWBGV.js.map +0 -1
- package/build/modern/chunk-C5EHJUS5.js +0 -10
- package/build/modern/chunk-C5EHJUS5.js.map +0 -1
- package/build/modern/chunk-FTPZHG6J.js.map +0 -1
- package/build/modern/chunk-ILQW5VZT.js.map +0 -1
- package/build/modern/chunk-JIJM6JFJ.js +0 -36
- package/build/modern/chunk-JIJM6JFJ.js.map +0 -1
- package/build/modern/chunk-JWIJHSI6.js.map +0 -1
- package/build/modern/chunk-KU2AWAK3.js.map +0 -1
- package/build/modern/chunk-NGOLRISW.js +0 -63
- package/build/modern/chunk-NGOLRISW.js.map +0 -1
- package/build/modern/chunk-NMF2HYWO.js +0 -50
- package/build/modern/chunk-NMF2HYWO.js.map +0 -1
- package/build/modern/chunk-PZAZKQMO.js.map +0 -1
- package/build/modern/chunk-Q4IV5NUT.js.map +0 -1
- package/build/modern/chunk-UZDVOIW5.js +0 -33
- package/build/modern/chunk-UZDVOIW5.js.map +0 -1
- package/build/modern/chunk-VYCU7I4J.js +0 -43
- package/build/modern/chunk-VYCU7I4J.js.map +0 -1
- package/build/modern/chunk-XQICKZH4.js.map +0 -1
- package/build/modern/components/Checkbox.js +0 -11
- package/build/modern/components/FieldMessage.js +0 -9
- package/build/modern/components/Input.js +0 -11
- package/build/modern/components/Label.js +0 -10
- package/build/modern/components/Textarea.js +0 -9
- package/src/components/Checkbox.tsx +0 -93
- package/src/components/Input.tsx +0 -69
- package/src/components/Label.tsx +0 -69
- package/src/components/Textarea.tsx +0 -52
- /package/build/modern/{chunk-Z7FGXAND.js.map → chunk-FMRWRVUS.js.map} +0 -0
- /package/build/modern/{chunk-7S47NSGR.js.map → chunk-H54FR7IP.js.map} +0 -0
- /package/build/modern/{components/Checkbox.js.map → chunk-TIJAFPHQ.js.map} +0 -0
- /package/build/modern/{components/FieldMessage.js.map → chunk-TYPULJMJ.js.map} +0 -0
- /package/build/modern/{chunk-3RGRHMJQ.js.map → chunk-ZDANBCM3.js.map} +0 -0
- /package/build/modern/components/{Input.js.map → checkbox/checkbox-icon.js.map} +0 -0
- /package/build/modern/components/{Label.js.map → checkbox/checkbox.js.map} +0 -0
- /package/build/modern/components/{Textarea.js.map → checkbox/index.js.map} +0 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// src/components/field/start-indicator.tsx
|
|
2
|
+
import { cx } from "@cerberus/styled-system/css";
|
|
3
|
+
import { field } from "@cerberus/styled-system/recipes";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
function FieldStartIndicator(props) {
|
|
6
|
+
const styles = field();
|
|
7
|
+
if (!props.children) return null;
|
|
8
|
+
return /* @__PURE__ */ jsx(
|
|
9
|
+
"span",
|
|
10
|
+
{
|
|
11
|
+
...props,
|
|
12
|
+
"data-part": "start-indicator",
|
|
13
|
+
className: cx(props.className, styles.startIndicator)
|
|
14
|
+
}
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export {
|
|
19
|
+
FieldStartIndicator
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=chunk-Z52R6ABJ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/field/start-indicator.tsx"],"sourcesContent":["import { cx } from '@cerberus/styled-system/css'\nimport { field } from '@cerberus/styled-system/recipes'\nimport type { HTMLAttributes } from 'react'\n\nexport type FieldIndicatorProps = HTMLAttributes<HTMLSpanElement>\n\n/**\n * The start indicator displays an indicator at the start of the Input.\n * @description [Field Docs](https://cerberus.digitalu.design/react/field)\n */\nexport function FieldStartIndicator(props: FieldIndicatorProps) {\n const styles = field()\n\n if (!props.children) return null\n\n return (\n <span\n {...props}\n data-part=\"start-indicator\"\n className={cx(props.className, styles.startIndicator)}\n />\n )\n}\n"],"mappings":";AAAA,SAAS,UAAU;AACnB,SAAS,aAAa;AAelB;AANG,SAAS,oBAAoB,OAA4B;AAC9D,QAAM,SAAS,MAAM;AAErB,MAAI,CAAC,MAAM,SAAU,QAAO;AAE5B,SACE;AAAA,IAAC;AAAA;AAAA,MACE,GAAG;AAAA,MACJ,aAAU;AAAA,MACV,WAAW,GAAG,MAAM,WAAW,OAAO,cAAc;AAAA;AAAA,EACtD;AAEJ;","names":[]}
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./chunk-GITT5645.js";
|
|
16
16
|
import {
|
|
17
17
|
Button
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-6KZVE4HC.js";
|
|
19
19
|
import {
|
|
20
20
|
Show
|
|
21
21
|
} from "./chunk-BUVVRQLZ.js";
|
|
@@ -123,4 +123,4 @@ export {
|
|
|
123
123
|
CTAModal,
|
|
124
124
|
useCTAModal
|
|
125
125
|
};
|
|
126
|
-
//# sourceMappingURL=chunk-
|
|
126
|
+
//# sourceMappingURL=chunk-ZDANBCM3.js.map
|
|
@@ -10,13 +10,12 @@ import {
|
|
|
10
10
|
DatePickerViewControlGroup,
|
|
11
11
|
DatePickerYearView,
|
|
12
12
|
RangePickerInput
|
|
13
|
-
} from "../chunk-
|
|
14
|
-
import "../chunk-UZDVOIW5.js";
|
|
15
|
-
import "../chunk-5EWCH7AI.js";
|
|
16
|
-
import "../chunk-APD6IX5R.js";
|
|
13
|
+
} from "../chunk-FK52US7K.js";
|
|
17
14
|
import "../chunk-IQJDVFPP.js";
|
|
15
|
+
import "../chunk-APD6IX5R.js";
|
|
16
|
+
import "../chunk-5EWCH7AI.js";
|
|
18
17
|
import "../chunk-GITT5645.js";
|
|
19
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-6KZVE4HC.js";
|
|
20
19
|
import "../chunk-7SYJFI5E.js";
|
|
21
20
|
import "../chunk-BUVVRQLZ.js";
|
|
22
21
|
export {
|
|
@@ -2,13 +2,19 @@
|
|
|
2
2
|
import {
|
|
3
3
|
FileStatus,
|
|
4
4
|
processStatus
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-CF3EHG42.js";
|
|
6
6
|
import "../chunk-WZJ5UQNM.js";
|
|
7
|
-
import "../chunk-JWIJHSI6.js";
|
|
8
|
-
import "../chunk-UZDVOIW5.js";
|
|
9
|
-
import "../chunk-APD6IX5R.js";
|
|
10
7
|
import "../chunk-SXLPDPOZ.js";
|
|
8
|
+
import "../chunk-APD6IX5R.js";
|
|
9
|
+
import "../chunk-TYPULJMJ.js";
|
|
10
|
+
import "../chunk-FBS7AX76.js";
|
|
11
|
+
import "../chunk-6I2FW4WI.js";
|
|
12
|
+
import "../chunk-VSTOSLFS.js";
|
|
13
|
+
import "../chunk-Z52R6ABJ.js";
|
|
14
|
+
import "../chunk-CNA2VKAH.js";
|
|
11
15
|
import "../chunk-GITT5645.js";
|
|
16
|
+
import "../chunk-BL7G3577.js";
|
|
17
|
+
import "../chunk-FQLMPEYX.js";
|
|
12
18
|
import "../chunk-BUVVRQLZ.js";
|
|
13
19
|
export {
|
|
14
20
|
FileStatus,
|
|
@@ -5,8 +5,7 @@ import {
|
|
|
5
5
|
OptionGroupLabel,
|
|
6
6
|
Select,
|
|
7
7
|
createSelectCollection
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-RU5LOXWI.js";
|
|
8
|
+
} from "../chunk-S2X5OEPK.js";
|
|
10
9
|
import "../chunk-YWMPB2JR.js";
|
|
11
10
|
import "../chunk-IQJDVFPP.js";
|
|
12
11
|
import "../chunk-GITT5645.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "../../chunk-CYC2YUKU.js";
|
|
2
2
|
import {
|
|
3
3
|
ButtonParts
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-2BIHLH4V.js";
|
|
5
5
|
import {
|
|
6
6
|
Button,
|
|
7
7
|
ButtonIcon
|
|
8
|
-
} from "../../chunk-
|
|
8
|
+
} from "../../chunk-6KZVE4HC.js";
|
|
9
9
|
import "../../chunk-7SYJFI5E.js";
|
|
10
10
|
import "../../chunk-BUVVRQLZ.js";
|
|
11
11
|
export {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
CheckboxIcon
|
|
4
|
+
} from "../../chunk-EL4MX2PG.js";
|
|
5
|
+
import "../../chunk-KWZ3CEG6.js";
|
|
6
|
+
import "../../chunk-BPRF34DU.js";
|
|
7
|
+
import "../../chunk-GITT5645.js";
|
|
8
|
+
import "../../chunk-BUVVRQLZ.js";
|
|
9
|
+
export {
|
|
10
|
+
CheckboxIcon
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=checkbox-icon.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Checkbox
|
|
3
|
+
} from "../../chunk-UNN4LHRS.js";
|
|
4
|
+
import "../../chunk-EL4MX2PG.js";
|
|
5
|
+
import "../../chunk-RU5LOXWI.js";
|
|
6
|
+
import "../../chunk-KWZ3CEG6.js";
|
|
7
|
+
import "../../chunk-BPRF34DU.js";
|
|
8
|
+
import "../../chunk-GITT5645.js";
|
|
9
|
+
import "../../chunk-BUVVRQLZ.js";
|
|
10
|
+
export {
|
|
11
|
+
Checkbox
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=checkbox.js.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import "../../chunk-TIJAFPHQ.js";
|
|
2
|
+
import {
|
|
3
|
+
Checkbox
|
|
4
|
+
} from "../../chunk-UNN4LHRS.js";
|
|
5
|
+
import "../../chunk-EL4MX2PG.js";
|
|
6
|
+
import "../../chunk-RU5LOXWI.js";
|
|
7
|
+
import {
|
|
8
|
+
CheckboxParts
|
|
9
|
+
} from "../../chunk-KWZ3CEG6.js";
|
|
10
|
+
import {
|
|
11
|
+
CheckboxControl,
|
|
12
|
+
CheckboxGroup,
|
|
13
|
+
CheckboxHiddenInput,
|
|
14
|
+
CheckboxIndicator,
|
|
15
|
+
CheckboxLabel,
|
|
16
|
+
CheckboxRoot
|
|
17
|
+
} from "../../chunk-BPRF34DU.js";
|
|
18
|
+
import "../../chunk-GITT5645.js";
|
|
19
|
+
import "../../chunk-BUVVRQLZ.js";
|
|
20
|
+
export {
|
|
21
|
+
Checkbox,
|
|
22
|
+
CheckboxControl,
|
|
23
|
+
CheckboxGroup,
|
|
24
|
+
CheckboxHiddenInput,
|
|
25
|
+
CheckboxIndicator,
|
|
26
|
+
CheckboxLabel,
|
|
27
|
+
CheckboxParts,
|
|
28
|
+
CheckboxRoot
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CheckboxControl,
|
|
3
|
+
CheckboxGroup,
|
|
4
|
+
CheckboxHiddenInput,
|
|
5
|
+
CheckboxIndicator,
|
|
6
|
+
CheckboxLabel,
|
|
7
|
+
CheckboxRoot
|
|
8
|
+
} from "../../chunk-BPRF34DU.js";
|
|
9
|
+
export {
|
|
10
|
+
CheckboxControl,
|
|
11
|
+
CheckboxGroup,
|
|
12
|
+
CheckboxHiddenInput,
|
|
13
|
+
CheckboxIndicator,
|
|
14
|
+
CheckboxLabel,
|
|
15
|
+
CheckboxRoot
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=primitives.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Label
|
|
3
|
+
} from "../../chunk-LT62577B.js";
|
|
4
|
+
import "../../chunk-TYPULJMJ.js";
|
|
5
|
+
import "../../chunk-FBS7AX76.js";
|
|
6
|
+
import "../../chunk-6I2FW4WI.js";
|
|
7
|
+
import "../../chunk-VSTOSLFS.js";
|
|
8
|
+
import "../../chunk-Z52R6ABJ.js";
|
|
9
|
+
import "../../chunk-CNA2VKAH.js";
|
|
10
|
+
import "../../chunk-GITT5645.js";
|
|
11
|
+
import "../../chunk-BL7G3577.js";
|
|
12
|
+
import "../../chunk-FQLMPEYX.js";
|
|
13
|
+
import "../../chunk-BUVVRQLZ.js";
|
|
14
|
+
export {
|
|
15
|
+
Label
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=Label.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Field
|
|
3
|
+
} from "../../chunk-FBS7AX76.js";
|
|
4
|
+
import "../../chunk-VSTOSLFS.js";
|
|
5
|
+
import "../../chunk-Z52R6ABJ.js";
|
|
6
|
+
import "../../chunk-CNA2VKAH.js";
|
|
7
|
+
import "../../chunk-GITT5645.js";
|
|
8
|
+
import "../../chunk-BL7G3577.js";
|
|
9
|
+
import "../../chunk-FQLMPEYX.js";
|
|
10
|
+
import "../../chunk-BUVVRQLZ.js";
|
|
11
|
+
export {
|
|
12
|
+
Field
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=field.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import "../../chunk-TYPULJMJ.js";
|
|
2
|
+
import {
|
|
3
|
+
Field
|
|
4
|
+
} from "../../chunk-FBS7AX76.js";
|
|
5
|
+
import {
|
|
6
|
+
FieldParts
|
|
7
|
+
} from "../../chunk-6I2FW4WI.js";
|
|
8
|
+
import {
|
|
9
|
+
FieldErrorText,
|
|
10
|
+
FieldHelperText,
|
|
11
|
+
FieldInput,
|
|
12
|
+
FieldLabel,
|
|
13
|
+
FieldRequiredIndicator,
|
|
14
|
+
FieldRoot,
|
|
15
|
+
FieldTextarea,
|
|
16
|
+
Input,
|
|
17
|
+
Textarea
|
|
18
|
+
} from "../../chunk-VSTOSLFS.js";
|
|
19
|
+
import {
|
|
20
|
+
FieldStartIndicator
|
|
21
|
+
} from "../../chunk-Z52R6ABJ.js";
|
|
22
|
+
import {
|
|
23
|
+
FieldStatusIndicator
|
|
24
|
+
} from "../../chunk-CNA2VKAH.js";
|
|
25
|
+
import "../../chunk-GITT5645.js";
|
|
26
|
+
import "../../chunk-BL7G3577.js";
|
|
27
|
+
import "../../chunk-FQLMPEYX.js";
|
|
28
|
+
import "../../chunk-BUVVRQLZ.js";
|
|
29
|
+
export {
|
|
30
|
+
Field,
|
|
31
|
+
FieldErrorText,
|
|
32
|
+
FieldHelperText,
|
|
33
|
+
FieldInput,
|
|
34
|
+
FieldLabel,
|
|
35
|
+
FieldParts,
|
|
36
|
+
FieldRequiredIndicator,
|
|
37
|
+
FieldRoot,
|
|
38
|
+
FieldStartIndicator,
|
|
39
|
+
FieldStatusIndicator,
|
|
40
|
+
FieldTextarea,
|
|
41
|
+
Input,
|
|
42
|
+
Textarea
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
FieldParts
|
|
3
|
+
} from "../../chunk-6I2FW4WI.js";
|
|
4
|
+
import "../../chunk-VSTOSLFS.js";
|
|
5
|
+
import "../../chunk-Z52R6ABJ.js";
|
|
6
|
+
import "../../chunk-CNA2VKAH.js";
|
|
7
|
+
import "../../chunk-GITT5645.js";
|
|
8
|
+
export {
|
|
9
|
+
FieldParts
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=parts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import {
|
|
2
|
+
FieldErrorText,
|
|
3
|
+
FieldHelperText,
|
|
4
|
+
FieldInput,
|
|
5
|
+
FieldLabel,
|
|
6
|
+
FieldRequiredIndicator,
|
|
7
|
+
FieldRoot,
|
|
8
|
+
FieldTextarea,
|
|
9
|
+
Input,
|
|
10
|
+
Textarea
|
|
11
|
+
} from "../../chunk-VSTOSLFS.js";
|
|
12
|
+
import "../../chunk-Z52R6ABJ.js";
|
|
13
|
+
import "../../chunk-CNA2VKAH.js";
|
|
14
|
+
import "../../chunk-GITT5645.js";
|
|
15
|
+
export {
|
|
16
|
+
FieldErrorText,
|
|
17
|
+
FieldHelperText,
|
|
18
|
+
FieldInput,
|
|
19
|
+
FieldLabel,
|
|
20
|
+
FieldRequiredIndicator,
|
|
21
|
+
FieldRoot,
|
|
22
|
+
FieldTextarea,
|
|
23
|
+
Input,
|
|
24
|
+
Textarea
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=primitives.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import {
|
|
3
3
|
ConfirmModal,
|
|
4
4
|
useConfirmModal
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-H54FR7IP.js";
|
|
6
6
|
import "../chunk-TFL56AYR.js";
|
|
7
|
-
import "../chunk-IQJDVFPP.js";
|
|
8
7
|
import "../chunk-SXLPDPOZ.js";
|
|
8
|
+
import "../chunk-IQJDVFPP.js";
|
|
9
9
|
import "../chunk-GITT5645.js";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-6KZVE4HC.js";
|
|
11
11
|
import "../chunk-7SYJFI5E.js";
|
|
12
12
|
import "../chunk-BUVVRQLZ.js";
|
|
13
13
|
export {
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
import {
|
|
3
3
|
CTAModal,
|
|
4
4
|
useCTAModal
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-ZDANBCM3.js";
|
|
6
6
|
import "../chunk-6BN3XKQF.js";
|
|
7
|
-
import "../chunk-APD6IX5R.js";
|
|
8
7
|
import "../chunk-TFL56AYR.js";
|
|
9
|
-
import "../chunk-IQJDVFPP.js";
|
|
10
8
|
import "../chunk-SXLPDPOZ.js";
|
|
9
|
+
import "../chunk-IQJDVFPP.js";
|
|
10
|
+
import "../chunk-APD6IX5R.js";
|
|
11
11
|
import "../chunk-GITT5645.js";
|
|
12
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-6KZVE4HC.js";
|
|
13
13
|
import "../chunk-7SYJFI5E.js";
|
|
14
14
|
import "../chunk-BUVVRQLZ.js";
|
|
15
15
|
export {
|
|
@@ -1,10 +1,40 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
FieldRoot
|
|
4
|
+
} from "../chunk-VSTOSLFS.js";
|
|
5
|
+
import "../chunk-Z52R6ABJ.js";
|
|
6
|
+
import "../chunk-CNA2VKAH.js";
|
|
7
|
+
import "../chunk-GITT5645.js";
|
|
8
|
+
|
|
9
|
+
// src/context/field.tsx
|
|
10
|
+
import {
|
|
11
|
+
createContext,
|
|
12
|
+
useContext,
|
|
13
|
+
useMemo
|
|
14
|
+
} from "react";
|
|
15
|
+
import { jsx } from "react/jsx-runtime";
|
|
16
|
+
var FieldContext = createContext(null);
|
|
17
|
+
function FieldProvider(props) {
|
|
18
|
+
const value = useMemo(
|
|
19
|
+
() => ({
|
|
20
|
+
disabled: props.disabled,
|
|
21
|
+
readOnly: props.readOnly,
|
|
22
|
+
required: props.required,
|
|
23
|
+
invalid: props.invalid
|
|
24
|
+
}),
|
|
25
|
+
[props.disabled, props.readOnly, props.required, props.invalid]
|
|
26
|
+
);
|
|
27
|
+
return /* @__PURE__ */ jsx(FieldContext.Provider, { value, children: /* @__PURE__ */ jsx(FieldRoot, { ...props }) });
|
|
28
|
+
}
|
|
29
|
+
function useFieldContext() {
|
|
30
|
+
const context = useContext(FieldContext);
|
|
31
|
+
if (!context) {
|
|
32
|
+
throw new Error("useFieldContext must be used within a Field Provider.");
|
|
33
|
+
}
|
|
34
|
+
return context;
|
|
35
|
+
}
|
|
6
36
|
export {
|
|
7
|
-
|
|
37
|
+
FieldProvider,
|
|
8
38
|
useFieldContext
|
|
9
39
|
};
|
|
10
40
|
//# sourceMappingURL=field.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../../src/context/field.tsx"],"sourcesContent":["'use client'\n\nimport type { FieldRootProps } from '@ark-ui/react'\nimport {\n createContext,\n useContext,\n useMemo,\n type PropsWithChildren,\n} from 'react'\nimport { FieldRoot } from '../components/field/primitives'\n\n/**\n * This module provides a context and hook for the field.\n * @module Field\n */\n\nexport interface FieldContextValue {\n /**\n * Whether the field is disabled.\n * @description [Moz Input Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attributes)\n */\n disabled?: boolean\n /**\n * Whether the field is read-only.\n */\n readOnly?: boolean\n /**\n * Whether the field is required.\n */\n required?: boolean\n /**\n * Whether the field is invalid.\n */\n invalid?: boolean\n}\n\nconst FieldContext = createContext<FieldContextValue | null>(null)\n\n/**\n * @deprecated use FieldRoot or FieldParts instead\n */\nexport function FieldProvider(\n props: PropsWithChildren<FieldRootProps>,\n): JSX.Element {\n const value = useMemo(\n () => ({\n disabled: props.disabled,\n readOnly: props.readOnly,\n required: props.required,\n invalid: props.invalid,\n }),\n [props.disabled, props.readOnly, props.required, props.invalid],\n )\n\n return (\n <FieldContext.Provider value={value}>\n <FieldRoot {...props} />\n </FieldContext.Provider>\n )\n}\n\n/**\n * Used to access the field context.\n * @returns The field context.\n */\nexport function useFieldContext(): FieldContextValue {\n const context = useContext(FieldContext)\n if (!context) {\n throw new Error('useFieldContext must be used within a Field Provider.')\n }\n return context\n}\n"],"mappings":";;;;;;;;;AAGA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AAgDD;AApBN,IAAM,eAAe,cAAwC,IAAI;AAK1D,SAAS,cACd,OACa;AACb,QAAM,QAAQ;AAAA,IACZ,OAAO;AAAA,MACL,UAAU,MAAM;AAAA,MAChB,UAAU,MAAM;AAAA,MAChB,UAAU,MAAM;AAAA,MAChB,SAAS,MAAM;AAAA,IACjB;AAAA,IACA,CAAC,MAAM,UAAU,MAAM,UAAU,MAAM,UAAU,MAAM,OAAO;AAAA,EAChE;AAEA,SACE,oBAAC,aAAa,UAAb,EAAsB,OACrB,8BAAC,aAAW,GAAG,OAAO,GACxB;AAEJ;AAMO,SAAS,kBAAqC;AACnD,QAAM,UAAU,WAAW,YAAY;AACvC,MAAI,CAAC,SAAS;AACZ,UAAM,IAAI,MAAM,uDAAuD;AAAA,EACzE;AACA,SAAO;AACT;","names":[]}
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
import {
|
|
3
3
|
NotificationCenter,
|
|
4
4
|
useNotificationCenter
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-FMRWRVUS.js";
|
|
6
6
|
import "../chunk-RDRD6ACD.js";
|
|
7
7
|
import "../chunk-UXY3KCC3.js";
|
|
8
8
|
import "../chunk-SLHYBPJ5.js";
|
|
9
9
|
import "../chunk-IQJDVFPP.js";
|
|
10
10
|
import "../chunk-V3M3ZOQI.js";
|
|
11
11
|
import "../chunk-GITT5645.js";
|
|
12
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-6KZVE4HC.js";
|
|
13
13
|
import "../chunk-7SYJFI5E.js";
|
|
14
14
|
import "../chunk-BUVVRQLZ.js";
|
|
15
15
|
import "../chunk-JIZQFTW6.js";
|
|
@@ -2,16 +2,21 @@
|
|
|
2
2
|
import {
|
|
3
3
|
PromptModal,
|
|
4
4
|
usePromptModal
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-RU5LOXWI.js";
|
|
7
|
-
import "../chunk-NMF2HYWO.js";
|
|
8
|
-
import "../chunk-VYCU7I4J.js";
|
|
9
|
-
import "../chunk-UZDVOIW5.js";
|
|
5
|
+
} from "../chunk-CMYD5KWA.js";
|
|
10
6
|
import "../chunk-TFL56AYR.js";
|
|
11
|
-
import "../chunk-IQJDVFPP.js";
|
|
12
7
|
import "../chunk-SXLPDPOZ.js";
|
|
8
|
+
import "../chunk-IQJDVFPP.js";
|
|
9
|
+
import "../chunk-RU5LOXWI.js";
|
|
10
|
+
import "../chunk-TYPULJMJ.js";
|
|
11
|
+
import "../chunk-FBS7AX76.js";
|
|
12
|
+
import "../chunk-6I2FW4WI.js";
|
|
13
|
+
import "../chunk-VSTOSLFS.js";
|
|
14
|
+
import "../chunk-Z52R6ABJ.js";
|
|
15
|
+
import "../chunk-CNA2VKAH.js";
|
|
13
16
|
import "../chunk-GITT5645.js";
|
|
14
|
-
import "../chunk-
|
|
17
|
+
import "../chunk-BL7G3577.js";
|
|
18
|
+
import "../chunk-FQLMPEYX.js";
|
|
19
|
+
import "../chunk-6KZVE4HC.js";
|
|
15
20
|
import "../chunk-7SYJFI5E.js";
|
|
16
21
|
import "../chunk-BUVVRQLZ.js";
|
|
17
22
|
export {
|