@cerberus-design/react 0.10.4-next-8007762 → 0.10.4-next-4e536c0
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 +138 -0
- package/build/legacy/components/Fieldset.cjs +66 -0
- package/build/legacy/components/Fieldset.cjs.map +1 -0
- package/build/legacy/components/FieldsetLabel.cjs +49 -0
- package/build/legacy/components/FieldsetLabel.cjs.map +1 -0
- package/build/legacy/components/Label.cjs +1 -1
- package/build/legacy/components/Label.cjs.map +1 -1
- package/build/legacy/components/Legend.cjs +95 -0
- package/build/legacy/components/Legend.cjs.map +1 -0
- package/build/legacy/context/prompt-modal.cjs +1 -1
- package/build/legacy/context/prompt-modal.cjs.map +1 -1
- package/build/legacy/index.cjs +424 -333
- package/build/legacy/index.cjs.map +1 -1
- package/build/modern/_tsup-dts-rollup.d.ts +138 -0
- package/build/modern/chunk-3ZDFQO25.js +31 -0
- package/build/modern/chunk-3ZDFQO25.js.map +1 -0
- package/build/modern/chunk-6TTN2JMY.js +54 -0
- package/build/modern/chunk-6TTN2JMY.js.map +1 -0
- package/build/modern/{chunk-LKFXUM3Z.js → chunk-77LI5SP3.js} +8 -8
- package/build/modern/{chunk-6YUB3ITX.js → chunk-BGBCJ2W2.js} +7 -7
- package/build/modern/{chunk-I35HMGJQ.js → chunk-NMF2HYWO.js} +2 -2
- package/build/modern/{chunk-I35HMGJQ.js.map → chunk-NMF2HYWO.js.map} +1 -1
- package/build/modern/chunk-PZAZKQMO.js +25 -0
- package/build/modern/chunk-PZAZKQMO.js.map +1 -0
- package/build/modern/{chunk-EZNGCXVJ.js → chunk-SP6O64KQ.js} +4 -4
- package/build/modern/components/Fieldset.js +9 -0
- package/build/modern/components/Fieldset.js.map +1 -0
- package/build/modern/components/FieldsetLabel.js +7 -0
- package/build/modern/components/FieldsetLabel.js.map +1 -0
- package/build/modern/components/Label.js +1 -1
- package/build/modern/components/Legend.js +10 -0
- package/build/modern/components/Legend.js.map +1 -0
- package/build/modern/context/confirm-modal.js +3 -3
- package/build/modern/context/notification-center.js +2 -2
- package/build/modern/context/prompt-modal.js +4 -4
- package/build/modern/index.js +45 -33
- package/build/modern/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/Fieldset.tsx +65 -0
- package/src/components/FieldsetLabel.tsx +59 -0
- package/src/components/Label.tsx +1 -1
- package/src/components/Legend.tsx +87 -0
- package/src/index.ts +3 -0
- /package/build/modern/{chunk-LKFXUM3Z.js.map → chunk-77LI5SP3.js.map} +0 -0
- /package/build/modern/{chunk-6YUB3ITX.js.map → chunk-BGBCJ2W2.js.map} +0 -0
- /package/build/modern/{chunk-EZNGCXVJ.js.map → chunk-SP6O64KQ.js.map} +0 -0
|
@@ -55,6 +55,7 @@ import { DroppableContainers } from '@dnd-kit/core';
|
|
|
55
55
|
import { DroppableMeasuring } from '@dnd-kit/core';
|
|
56
56
|
import { ElementType } from 'react';
|
|
57
57
|
import { FieldMessageVariantProps } from '@cerberus/styled-system/recipes';
|
|
58
|
+
import type { FieldsetHTMLAttributes } from 'react';
|
|
58
59
|
import { FileStatusVariantProps } from '@cerberus/styled-system/recipes';
|
|
59
60
|
import { ForwardRefExoticComponent } from 'react';
|
|
60
61
|
import { getClientRect } from '@dnd-kit/core';
|
|
@@ -74,6 +75,7 @@ import { KeyboardSensor } from '@dnd-kit/core';
|
|
|
74
75
|
import { KeyboardSensorOptions } from '@dnd-kit/core';
|
|
75
76
|
import { KeyboardSensorProps } from '@dnd-kit/core';
|
|
76
77
|
import { LabelVariantProps } from '@cerberus/styled-system/recipes';
|
|
78
|
+
import { LabelVariantProps as LabelVariantProps_2 } from '@cerberus-design/styled-system/recipes';
|
|
77
79
|
import { MeasuringConfiguration } from '@dnd-kit/core';
|
|
78
80
|
import { MeasuringFrequency } from '@dnd-kit/core';
|
|
79
81
|
import { MeasuringStrategy } from '@dnd-kit/core';
|
|
@@ -687,6 +689,96 @@ declare type FieldMessageProps = FieldMessageBaseProps & FieldMessageVariantProp
|
|
|
687
689
|
export { FieldMessageProps }
|
|
688
690
|
export { FieldMessageProps as FieldMessageProps_alias_1 }
|
|
689
691
|
|
|
692
|
+
/**
|
|
693
|
+
* A component to group related elements in a form for accessibility.
|
|
694
|
+
* @memberof Field
|
|
695
|
+
* @see https://cerberus.digitalu.com/react/fieldset
|
|
696
|
+
* @description [A11y Form Checklist](https://www.a11yproject.com/checklist/#forms)
|
|
697
|
+
* @description [MDN Web Docs: Fieldset](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/fieldset)
|
|
698
|
+
* @example
|
|
699
|
+
* ```tsx
|
|
700
|
+
* import { Fieldset, Legend, Field, Radio, Label } from '@cerberus/react'
|
|
701
|
+
* import { Hstack } from '@cerberus/styled-system/jsx'
|
|
702
|
+
*
|
|
703
|
+
* function SomeForm() {
|
|
704
|
+
* return (
|
|
705
|
+
* <form>
|
|
706
|
+
* <Fieldset>
|
|
707
|
+
* <Legend>Do you like cats?</Legend>
|
|
708
|
+
* <Hstack>
|
|
709
|
+
* <Field>
|
|
710
|
+
* <Radio id="yes" name="cats" value="yes" />
|
|
711
|
+
* <Label htmlFor="yes">Yes</Label>
|
|
712
|
+
* </Field>
|
|
713
|
+
* </Hstack>
|
|
714
|
+
* <Hstack>
|
|
715
|
+
* <Field>
|
|
716
|
+
* <Radio id="no" name="cats" value="no" />
|
|
717
|
+
* <Label htmlFor="no">No</Label>
|
|
718
|
+
* </Field>
|
|
719
|
+
* </Hstack>
|
|
720
|
+
* </Fieldset>
|
|
721
|
+
* </form>
|
|
722
|
+
* )
|
|
723
|
+
* }
|
|
724
|
+
*/
|
|
725
|
+
declare function Fieldset(props: FieldsetProps): JSX_2.Element;
|
|
726
|
+
export { Fieldset }
|
|
727
|
+
export { Fieldset as Fieldset_alias_1 }
|
|
728
|
+
|
|
729
|
+
/**
|
|
730
|
+
* Used for labeling inputs that are children of a Fieldset group.
|
|
731
|
+
* @memberof Fieldset
|
|
732
|
+
* @see https://cerberus.digitalu.design/react/fieldset
|
|
733
|
+
* @definition [ARIA Forms](https://www.a11yproject.com/checklist/#forms)
|
|
734
|
+
* @example
|
|
735
|
+
* ```tsx
|
|
736
|
+
* import { Fieldset, Legend, Field, Radio, Label } from '@cerberus/react'
|
|
737
|
+
* import { Hstack } from '@cerberus/styled-system/jsx'
|
|
738
|
+
*
|
|
739
|
+
* function SomeForm() {
|
|
740
|
+
* return (
|
|
741
|
+
* <form>
|
|
742
|
+
* <Fieldset>
|
|
743
|
+
* <Legend>Do you like cats?</Legend>
|
|
744
|
+
* <Hstack>
|
|
745
|
+
* <Field>
|
|
746
|
+
* <Radio id="yes" name="cats" value="yes" />
|
|
747
|
+
* <FieldsetLabel htmlFor="yes">Yes</FieldsetLabel>
|
|
748
|
+
* </Field>
|
|
749
|
+
* </Hstack>
|
|
750
|
+
* <Hstack>
|
|
751
|
+
* <Field>
|
|
752
|
+
* <Radio id="no" name="cats" value="no" />
|
|
753
|
+
* <FieldsetLabel htmlFor="no">No</FieldsetLabel>
|
|
754
|
+
* </Field>
|
|
755
|
+
* </Hstack>
|
|
756
|
+
* </Fieldset>
|
|
757
|
+
* </form>
|
|
758
|
+
* )
|
|
759
|
+
* }
|
|
760
|
+
* ```
|
|
761
|
+
*/
|
|
762
|
+
declare function FieldsetLabel(props: FieldsetLabelProps): JSX_2.Element;
|
|
763
|
+
export { FieldsetLabel }
|
|
764
|
+
export { FieldsetLabel as FieldsetLabel_alias_1 }
|
|
765
|
+
|
|
766
|
+
/**
|
|
767
|
+
* This module contains the FieldsetLabel component.
|
|
768
|
+
* @module FieldsetLabel
|
|
769
|
+
*/
|
|
770
|
+
declare type FieldsetLabelProps = LabelProps & LabelVariantProps;
|
|
771
|
+
export { FieldsetLabelProps }
|
|
772
|
+
export { FieldsetLabelProps as FieldsetLabelProps_alias_1 }
|
|
773
|
+
|
|
774
|
+
/**
|
|
775
|
+
* This module contains the Fieldset component.
|
|
776
|
+
* @module Fieldset
|
|
777
|
+
*/
|
|
778
|
+
declare type FieldsetProps = FieldsetHTMLAttributes<HTMLFieldSetElement>;
|
|
779
|
+
export { FieldsetProps }
|
|
780
|
+
export { FieldsetProps as FieldsetProps_alias_1 }
|
|
781
|
+
|
|
690
782
|
declare interface FileBaseStatusProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onClick'> {
|
|
691
783
|
/**
|
|
692
784
|
* A unique identifier for the file status. Required for accessibility.
|
|
@@ -958,6 +1050,52 @@ declare type LabelProps = LabelBaseProps & LabelVariantProps;
|
|
|
958
1050
|
export { LabelProps }
|
|
959
1051
|
export { LabelProps as LabelProps_alias_1 }
|
|
960
1052
|
|
|
1053
|
+
/**
|
|
1054
|
+
* A component to provide a global label for a group of related elements in a form (for accessibility).
|
|
1055
|
+
* @memberof Fieldset
|
|
1056
|
+
* @see https://cerberus.digitalu.com/react/fieldset
|
|
1057
|
+
* @description [A11y Form Checklist](https://www.a11yproject.com/checklist/#forms)
|
|
1058
|
+
* @description [MDN Web Docs: Legend](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/legend)
|
|
1059
|
+
* @example
|
|
1060
|
+
* ```tsx
|
|
1061
|
+
* import { Fieldset, Legend, Field, Radio, Label } from '@cerberus/react'
|
|
1062
|
+
* import { Hstack } from '@cerberus/styled-system/jsx'
|
|
1063
|
+
*
|
|
1064
|
+
* function SomeForm() {
|
|
1065
|
+
* return (
|
|
1066
|
+
* <form>
|
|
1067
|
+
* <Fieldset>
|
|
1068
|
+
* <Legend>Do you like cats?</Legend>
|
|
1069
|
+
* <Hstack>
|
|
1070
|
+
* <Field>
|
|
1071
|
+
* <Radio id="yes" name="cats" value="yes" />
|
|
1072
|
+
* <Label htmlFor="yes">Yes</Label>
|
|
1073
|
+
* </Field>
|
|
1074
|
+
* </Hstack>
|
|
1075
|
+
* <Hstack>
|
|
1076
|
+
* <Field>
|
|
1077
|
+
* <Radio id="no" name="cats" value="no" />
|
|
1078
|
+
* <Label htmlFor="no">No</Label>
|
|
1079
|
+
* </Field>
|
|
1080
|
+
* </Hstack>
|
|
1081
|
+
* </Fieldset>
|
|
1082
|
+
* </form>
|
|
1083
|
+
* )
|
|
1084
|
+
* }
|
|
1085
|
+
* ```
|
|
1086
|
+
*/
|
|
1087
|
+
declare function Legend(props: LegendProps): JSX_2.Element;
|
|
1088
|
+
export { Legend }
|
|
1089
|
+
export { Legend as Legend_alias_1 }
|
|
1090
|
+
|
|
1091
|
+
/**
|
|
1092
|
+
* This module contains the Fieldset component.
|
|
1093
|
+
* @module Fieldset
|
|
1094
|
+
*/
|
|
1095
|
+
declare type LegendProps = HTMLAttributes<HTMLLegendElement> & LabelVariantProps_2;
|
|
1096
|
+
export { LegendProps }
|
|
1097
|
+
export { LegendProps as LegendProps_alias_1 }
|
|
1098
|
+
|
|
961
1099
|
export { MeasuringConfiguration }
|
|
962
1100
|
|
|
963
1101
|
export { MeasuringFrequency }
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/components/Fieldset.tsx
|
|
22
|
+
var Fieldset_exports = {};
|
|
23
|
+
__export(Fieldset_exports, {
|
|
24
|
+
Fieldset: () => Fieldset
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(Fieldset_exports);
|
|
27
|
+
var import_css = require("@cerberus/styled-system/css");
|
|
28
|
+
|
|
29
|
+
// src/context/field.tsx
|
|
30
|
+
var import_react = require("react");
|
|
31
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
32
|
+
var FieldContext = (0, import_react.createContext)(null);
|
|
33
|
+
function useFieldContext() {
|
|
34
|
+
const context = (0, import_react.useContext)(FieldContext);
|
|
35
|
+
if (!context) {
|
|
36
|
+
throw new Error("useFieldContext must be used within a Field Provider.");
|
|
37
|
+
}
|
|
38
|
+
return context;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// src/components/Fieldset.tsx
|
|
42
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
43
|
+
function Fieldset(props) {
|
|
44
|
+
const { invalid, ...formState } = useFieldContext();
|
|
45
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
46
|
+
"fieldset",
|
|
47
|
+
{
|
|
48
|
+
...props,
|
|
49
|
+
...formState,
|
|
50
|
+
...invalid && { "aria-invalid": true },
|
|
51
|
+
className: (0, import_css.cx)(
|
|
52
|
+
props.className,
|
|
53
|
+
(0, import_css.css)({
|
|
54
|
+
border: "none",
|
|
55
|
+
pt: 2,
|
|
56
|
+
margin: 0
|
|
57
|
+
})
|
|
58
|
+
)
|
|
59
|
+
}
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
63
|
+
0 && (module.exports = {
|
|
64
|
+
Fieldset
|
|
65
|
+
});
|
|
66
|
+
//# sourceMappingURL=Fieldset.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Fieldset.tsx","../../../src/context/field.tsx"],"sourcesContent":["'use client'\n\nimport { css, cx } from '@cerberus/styled-system/css'\nimport type { FieldsetHTMLAttributes } from 'react'\nimport { useFieldContext } from '../context/field'\n\n/**\n * This module contains the Fieldset component.\n * @module Fieldset\n */\n\nexport type FieldsetProps = FieldsetHTMLAttributes<HTMLFieldSetElement>\n\n/**\n * A component to group related elements in a form for accessibility.\n * @memberof Field\n * @see https://cerberus.digitalu.com/react/fieldset\n * @description [A11y Form Checklist](https://www.a11yproject.com/checklist/#forms)\n * @description [MDN Web Docs: Fieldset](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/fieldset)\n * @example\n * ```tsx\n * import { Fieldset, Legend, Field, Radio, Label } from '@cerberus/react'\n * import { Hstack } from '@cerberus/styled-system/jsx'\n *\n * function SomeForm() {\n * return (\n * <form>\n * <Fieldset>\n * <Legend>Do you like cats?</Legend>\n * <Hstack>\n * <Field>\n * <Radio id=\"yes\" name=\"cats\" value=\"yes\" />\n * <Label htmlFor=\"yes\">Yes</Label>\n * </Field>\n * </Hstack>\n * <Hstack>\n * <Field>\n * <Radio id=\"no\" name=\"cats\" value=\"no\" />\n * <Label htmlFor=\"no\">No</Label>\n * </Field>\n * </Hstack>\n * </Fieldset>\n * </form>\n * )\n * }\n */\nexport function Fieldset(props: FieldsetProps) {\n const { invalid, ...formState } = useFieldContext()\n\n return (\n <fieldset\n {...props}\n {...formState}\n {...(invalid && { 'aria-invalid': true })}\n className={cx(\n props.className,\n css({\n border: 'none',\n pt: 2,\n margin: 0,\n }),\n )}\n />\n )\n}\n","'use client'\n\nimport {\n createContext,\n useContext,\n useMemo,\n type PropsWithChildren,\n} from 'react'\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 * Provides the field state for a all related components used within a group.\n * @see https://cerberus.digitalu.design/react/input\n */\nexport function Field(\n props: PropsWithChildren<FieldContextValue>,\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 {props.children}\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":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,iBAAwB;;;ACAxB,mBAKO;AA+CH;AApBJ,IAAM,mBAAe,4BAAwC,IAAI;AA8B1D,SAAS,kBAAqC;AACnD,QAAM,cAAU,yBAAW,YAAY;AACvC,MAAI,CAAC,SAAS;AACZ,UAAM,IAAI,MAAM,uDAAuD;AAAA,EACzE;AACA,SAAO;AACT;;;ADpBI,IAAAA,sBAAA;AAJG,SAAS,SAAS,OAAsB;AAC7C,QAAM,EAAE,SAAS,GAAG,UAAU,IAAI,gBAAgB;AAElD,SACE;AAAA,IAAC;AAAA;AAAA,MACE,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAI,WAAW,EAAE,gBAAgB,KAAK;AAAA,MACvC,eAAW;AAAA,QACT,MAAM;AAAA,YACN,gBAAI;AAAA,UACF,QAAQ;AAAA,UACR,IAAI;AAAA,UACJ,QAAQ;AAAA,QACV,CAAC;AAAA,MACH;AAAA;AAAA,EACF;AAEJ;","names":["import_jsx_runtime"]}
|
|
@@ -0,0 +1,49 @@
|
|
|
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/FieldsetLabel.tsx
|
|
21
|
+
var FieldsetLabel_exports = {};
|
|
22
|
+
__export(FieldsetLabel_exports, {
|
|
23
|
+
FieldsetLabel: () => FieldsetLabel
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(FieldsetLabel_exports);
|
|
26
|
+
var import_css = require("@cerberus/styled-system/css");
|
|
27
|
+
var import_recipes = require("@cerberus/styled-system/recipes");
|
|
28
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
29
|
+
function FieldsetLabel(props) {
|
|
30
|
+
const { size, usage, ...nativeProps } = props;
|
|
31
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
32
|
+
"label",
|
|
33
|
+
{
|
|
34
|
+
...nativeProps,
|
|
35
|
+
className: (0, import_css.cx)(
|
|
36
|
+
nativeProps.className,
|
|
37
|
+
(0, import_recipes.label)({
|
|
38
|
+
size,
|
|
39
|
+
usage
|
|
40
|
+
})
|
|
41
|
+
)
|
|
42
|
+
}
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
46
|
+
0 && (module.exports = {
|
|
47
|
+
FieldsetLabel
|
|
48
|
+
});
|
|
49
|
+
//# sourceMappingURL=FieldsetLabel.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/FieldsetLabel.tsx"],"sourcesContent":["import { cx } from '@cerberus/styled-system/css'\nimport { label, type LabelVariantProps } from '@cerberus/styled-system/recipes'\nimport type { LabelProps } from './Label'\n\n/**\n * This module contains the FieldsetLabel component.\n * @module FieldsetLabel\n */\n\nexport type FieldsetLabelProps = LabelProps & LabelVariantProps\n\n/**\n * Used for labeling inputs that are children of a Fieldset group.\n * @memberof Fieldset\n * @see https://cerberus.digitalu.design/react/fieldset\n * @definition [ARIA Forms](https://www.a11yproject.com/checklist/#forms)\n * @example\n * ```tsx\n * import { Fieldset, Legend, Field, Radio, Label } from '@cerberus/react'\n * import { Hstack } from '@cerberus/styled-system/jsx'\n *\n * function SomeForm() {\n * return (\n * <form>\n * <Fieldset>\n * <Legend>Do you like cats?</Legend>\n * <Hstack>\n * <Field>\n * <Radio id=\"yes\" name=\"cats\" value=\"yes\" />\n * <FieldsetLabel htmlFor=\"yes\">Yes</FieldsetLabel>\n * </Field>\n * </Hstack>\n * <Hstack>\n * <Field>\n * <Radio id=\"no\" name=\"cats\" value=\"no\" />\n * <FieldsetLabel htmlFor=\"no\">No</FieldsetLabel>\n * </Field>\n * </Hstack>\n * </Fieldset>\n * </form>\n * )\n * }\n * ```\n */\nexport function FieldsetLabel(props: FieldsetLabelProps) {\n const { size, usage, ...nativeProps } = props\n return (\n <label\n {...nativeProps}\n className={cx(\n nativeProps.className,\n label({\n size,\n usage,\n }),\n )}\n />\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAmB;AACnB,qBAA8C;AA8C1C;AAHG,SAAS,cAAc,OAA2B;AACvD,QAAM,EAAE,MAAM,OAAO,GAAG,YAAY,IAAI;AACxC,SACE;AAAA,IAAC;AAAA;AAAA,MACE,GAAG;AAAA,MACJ,eAAW;AAAA,QACT,YAAY;AAAA,YACZ,sBAAM;AAAA,UACJ;AAAA,UACA;AAAA,QACF,CAAC;AAAA,MACH;AAAA;AAAA,EACF;AAEJ;","names":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Label.tsx","../../../src/context/field.tsx","../../../src/components/Show.tsx"],"sourcesContent":["'use client'\n\nimport type { HTMLAttributes, PropsWithChildren } from 'react'\nimport { label, type LabelVariantProps } from '@cerberus/styled-system/recipes'\nimport { css, cx } from '@cerberus/styled-system/css'\nimport { hstack } from '@cerberus/styled-system/patterns'\nimport { useFieldContext } from '../context/field'\nimport { Show } from './Show'\n\n/**\n * This module contains the Label component.\n * @module\n */\nexport interface LabelBaseProps extends HTMLAttributes<HTMLLabelElement> {\n /**\n * The unique identifier for the input element. Required for accessibility.\n */\n htmlFor: string\n /**\n * Used to hide the label from the UI while keeping it accessible to screen readers. Typically used for global search inputs that have no visible label.\n */\n hidden?: boolean\n}\nexport type LabelProps = LabelBaseProps & LabelVariantProps\n\n/**\n * A a11y compliant label component.\n * @definition [ARIA Forms](https://www.a11yproject.com/checklist/#forms)\n * @see https://cerberus.digitalu.design/react/label\n * @example\n * ```tsx\n * <Field required>\n * <Label htmlFor=\"search\" hidden>Search everything</Label>\n * <Input id=\"search\" startIcon={Search} type=\"text\" />\n * </Field>\n * ```\n */\nexport function Label(props: PropsWithChildren<LabelProps>) {\n const { hidden, size, ...nativeProps } = props\n const { required, disabled } = useFieldContext()\n const usage = hidden ? 'hidden' : 'visible'\n\n return (\n <label\n {...nativeProps}\n {...(disabled && { 'data-disabled': true })}\n className={cx(\n nativeProps.className,\n label({ size, usage }),\n hstack({\n justify: 'space-between',\n w: 'full',\n }),\n )}\n >\n {props.children}\n <Show when={required}>\n <span\n className={css({\n color: '
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Label.tsx","../../../src/context/field.tsx","../../../src/components/Show.tsx"],"sourcesContent":["'use client'\n\nimport type { HTMLAttributes, PropsWithChildren } from 'react'\nimport { label, type LabelVariantProps } from '@cerberus/styled-system/recipes'\nimport { css, cx } from '@cerberus/styled-system/css'\nimport { hstack } from '@cerberus/styled-system/patterns'\nimport { useFieldContext } from '../context/field'\nimport { Show } from './Show'\n\n/**\n * This module contains the Label component.\n * @module\n */\nexport interface LabelBaseProps extends HTMLAttributes<HTMLLabelElement> {\n /**\n * The unique identifier for the input element. Required for accessibility.\n */\n htmlFor: string\n /**\n * Used to hide the label from the UI while keeping it accessible to screen readers. Typically used for global search inputs that have no visible label.\n */\n hidden?: boolean\n}\nexport type LabelProps = LabelBaseProps & LabelVariantProps\n\n/**\n * A a11y compliant label component.\n * @definition [ARIA Forms](https://www.a11yproject.com/checklist/#forms)\n * @see https://cerberus.digitalu.design/react/label\n * @example\n * ```tsx\n * <Field required>\n * <Label htmlFor=\"search\" hidden>Search everything</Label>\n * <Input id=\"search\" startIcon={Search} type=\"text\" />\n * </Field>\n * ```\n */\nexport function Label(props: PropsWithChildren<LabelProps>) {\n const { hidden, size, ...nativeProps } = props\n const { required, disabled } = useFieldContext()\n const usage = hidden ? 'hidden' : 'visible'\n\n return (\n <label\n {...nativeProps}\n {...(disabled && { 'data-disabled': true })}\n className={cx(\n nativeProps.className,\n label({ size, usage }),\n hstack({\n justify: 'space-between',\n w: 'full',\n }),\n )}\n >\n {props.children}\n <Show when={required}>\n <span\n className={css({\n color: 'page.text.100',\n fontSize: 'inherit',\n })}\n >\n (required)\n </span>\n </Show>\n </label>\n )\n}\n","'use client'\n\nimport {\n createContext,\n useContext,\n useMemo,\n type PropsWithChildren,\n} from 'react'\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 * Provides the field state for a all related components used within a group.\n * @see https://cerberus.digitalu.design/react/input\n */\nexport function Field(\n props: PropsWithChildren<FieldContextValue>,\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 {props.children}\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","'use client'\n\nimport { useMemo, type PropsWithChildren, type ReactNode } from 'react'\n\n/**\n * This module contains the Show component.\n * @module\n */\n\nexport interface ShowProps {\n /**\n * The condition to render memoized children or the fallback content.\n */\n when: boolean | null | undefined\n /**\n * The children to render when the condition is false.\n */\n fallback?: ReactNode\n}\n\n/**\n * Conditionally render a memoized version of the children or optional fallback\n * content.\n * @see https://cerberus.digitalu.design/react/show\n * @example\n * ```tsx\n * <Show when={isLoggedIn} fallback={<Navigate to=\"/login\" />}>\n * <Dashboard />\n * </Show>\n */\nexport function Show(props: PropsWithChildren<ShowProps>): ReactNode {\n const { when, children, fallback } = props\n const condition = useMemo(() => when ?? false, [when])\n\n return useMemo(() => {\n if (condition) return children\n return fallback ?? null\n }, [condition, children, fallback])\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,qBAA8C;AAC9C,iBAAwB;AACxB,sBAAuB;;;ACHvB,mBAKO;AA+CH;AApBJ,IAAM,mBAAe,4BAAwC,IAAI;AA8B1D,SAAS,kBAAqC;AACnD,QAAM,cAAU,yBAAW,YAAY;AACvC,MAAI,CAAC,SAAS;AACZ,UAAM,IAAI,MAAM,uDAAuD;AAAA,EACzE;AACA,SAAO;AACT;;;ACpEA,IAAAA,gBAAgE;AA4BzD,SAAS,KAAK,OAAgD;AACnE,QAAM,EAAE,MAAM,UAAU,SAAS,IAAI;AACrC,QAAM,gBAAY,uBAAQ,MAAM,QAAQ,OAAO,CAAC,IAAI,CAAC;AAErD,aAAO,uBAAQ,MAAM;AACnB,QAAI,UAAW,QAAO;AACtB,WAAO,YAAY;AAAA,EACrB,GAAG,CAAC,WAAW,UAAU,QAAQ,CAAC;AACpC;;;AFKI,IAAAC,sBAAA;AANG,SAAS,MAAM,OAAsC;AAC1D,QAAM,EAAE,QAAQ,MAAM,GAAG,YAAY,IAAI;AACzC,QAAM,EAAE,UAAU,SAAS,IAAI,gBAAgB;AAC/C,QAAM,QAAQ,SAAS,WAAW;AAElC,SACE;AAAA,IAAC;AAAA;AAAA,MACE,GAAG;AAAA,MACH,GAAI,YAAY,EAAE,iBAAiB,KAAK;AAAA,MACzC,eAAW;AAAA,QACT,YAAY;AAAA,YACZ,sBAAM,EAAE,MAAM,MAAM,CAAC;AAAA,YACrB,wBAAO;AAAA,UACL,SAAS;AAAA,UACT,GAAG;AAAA,QACL,CAAC;AAAA,MACH;AAAA,MAEC;AAAA,cAAM;AAAA,QACP,6CAAC,QAAK,MAAM,UACV;AAAA,UAAC;AAAA;AAAA,YACC,eAAW,gBAAI;AAAA,cACb,OAAO;AAAA,cACP,UAAU;AAAA,YACZ,CAAC;AAAA,YACF;AAAA;AAAA,QAED,GACF;AAAA;AAAA;AAAA,EACF;AAEJ;","names":["import_react","import_jsx_runtime"]}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/components/Legend.tsx
|
|
22
|
+
var Legend_exports = {};
|
|
23
|
+
__export(Legend_exports, {
|
|
24
|
+
Legend: () => Legend
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(Legend_exports);
|
|
27
|
+
var import_css = require("@cerberus/styled-system/css");
|
|
28
|
+
|
|
29
|
+
// src/context/field.tsx
|
|
30
|
+
var import_react = require("react");
|
|
31
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
32
|
+
var FieldContext = (0, import_react.createContext)(null);
|
|
33
|
+
function useFieldContext() {
|
|
34
|
+
const context = (0, import_react.useContext)(FieldContext);
|
|
35
|
+
if (!context) {
|
|
36
|
+
throw new Error("useFieldContext must be used within a Field Provider.");
|
|
37
|
+
}
|
|
38
|
+
return context;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// src/components/Show.tsx
|
|
42
|
+
var import_react2 = require("react");
|
|
43
|
+
function Show(props) {
|
|
44
|
+
const { when, children, fallback } = props;
|
|
45
|
+
const condition = (0, import_react2.useMemo)(() => when ?? false, [when]);
|
|
46
|
+
return (0, import_react2.useMemo)(() => {
|
|
47
|
+
if (condition) return children;
|
|
48
|
+
return fallback ?? null;
|
|
49
|
+
}, [condition, children, fallback]);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// src/components/Legend.tsx
|
|
53
|
+
var import_recipes = require("@cerberus-design/styled-system/recipes");
|
|
54
|
+
var import_patterns = require("@cerberus-design/styled-system/patterns");
|
|
55
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
56
|
+
function Legend(props) {
|
|
57
|
+
const { size, ...nativeProps } = props;
|
|
58
|
+
const { invalid, ...formState } = useFieldContext();
|
|
59
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
60
|
+
"legend",
|
|
61
|
+
{
|
|
62
|
+
...nativeProps,
|
|
63
|
+
...formState,
|
|
64
|
+
...invalid && { "aria-invalid": true },
|
|
65
|
+
className: (0, import_css.cx)(
|
|
66
|
+
nativeProps.className,
|
|
67
|
+
(0, import_patterns.hstack)({
|
|
68
|
+
justify: "space-between",
|
|
69
|
+
w: "full"
|
|
70
|
+
}),
|
|
71
|
+
(0, import_recipes.label)({
|
|
72
|
+
size
|
|
73
|
+
})
|
|
74
|
+
),
|
|
75
|
+
children: [
|
|
76
|
+
nativeProps.children,
|
|
77
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Show, { when: formState.required, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
78
|
+
"span",
|
|
79
|
+
{
|
|
80
|
+
className: (0, import_css.css)({
|
|
81
|
+
color: "page.text.100",
|
|
82
|
+
fontSize: "inherit"
|
|
83
|
+
}),
|
|
84
|
+
children: "(required)"
|
|
85
|
+
}
|
|
86
|
+
) })
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
92
|
+
0 && (module.exports = {
|
|
93
|
+
Legend
|
|
94
|
+
});
|
|
95
|
+
//# sourceMappingURL=Legend.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Legend.tsx","../../../src/context/field.tsx","../../../src/components/Show.tsx"],"sourcesContent":["'use client'\n\nimport { css, cx } from '@cerberus/styled-system/css'\nimport { type HTMLAttributes } from 'react'\nimport { useFieldContext } from '../context/field'\nimport { Show } from './Show'\nimport {\n label,\n type LabelVariantProps,\n} from '@cerberus-design/styled-system/recipes'\nimport { hstack } from '@cerberus-design/styled-system/patterns'\n\n/**\n * This module contains the Fieldset component.\n * @module Fieldset\n */\n\nexport type LegendProps = HTMLAttributes<HTMLLegendElement> & LabelVariantProps\n\n/**\n * A component to provide a global label for a group of related elements in a form (for accessibility).\n * @memberof Fieldset\n * @see https://cerberus.digitalu.com/react/fieldset\n * @description [A11y Form Checklist](https://www.a11yproject.com/checklist/#forms)\n * @description [MDN Web Docs: Legend](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/legend)\n * @example\n * ```tsx\n * import { Fieldset, Legend, Field, Radio, Label } from '@cerberus/react'\n * import { Hstack } from '@cerberus/styled-system/jsx'\n *\n * function SomeForm() {\n * return (\n * <form>\n * <Fieldset>\n * <Legend>Do you like cats?</Legend>\n * <Hstack>\n * <Field>\n * <Radio id=\"yes\" name=\"cats\" value=\"yes\" />\n * <Label htmlFor=\"yes\">Yes</Label>\n * </Field>\n * </Hstack>\n * <Hstack>\n * <Field>\n * <Radio id=\"no\" name=\"cats\" value=\"no\" />\n * <Label htmlFor=\"no\">No</Label>\n * </Field>\n * </Hstack>\n * </Fieldset>\n * </form>\n * )\n * }\n * ```\n */\nexport function Legend(props: LegendProps) {\n const { size, ...nativeProps } = props\n const { invalid, ...formState } = useFieldContext()\n\n return (\n <legend\n {...nativeProps}\n {...formState}\n {...(invalid && { 'aria-invalid': true })}\n className={cx(\n nativeProps.className,\n hstack({\n justify: 'space-between',\n w: 'full',\n }),\n label({\n size,\n }),\n )}\n >\n {nativeProps.children}\n <Show when={formState.required}>\n <span\n className={css({\n color: 'page.text.100',\n fontSize: 'inherit',\n })}\n >\n (required)\n </span>\n </Show>\n </legend>\n )\n}\n","'use client'\n\nimport {\n createContext,\n useContext,\n useMemo,\n type PropsWithChildren,\n} from 'react'\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 * Provides the field state for a all related components used within a group.\n * @see https://cerberus.digitalu.design/react/input\n */\nexport function Field(\n props: PropsWithChildren<FieldContextValue>,\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 {props.children}\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","'use client'\n\nimport { useMemo, type PropsWithChildren, type ReactNode } from 'react'\n\n/**\n * This module contains the Show component.\n * @module\n */\n\nexport interface ShowProps {\n /**\n * The condition to render memoized children or the fallback content.\n */\n when: boolean | null | undefined\n /**\n * The children to render when the condition is false.\n */\n fallback?: ReactNode\n}\n\n/**\n * Conditionally render a memoized version of the children or optional fallback\n * content.\n * @see https://cerberus.digitalu.design/react/show\n * @example\n * ```tsx\n * <Show when={isLoggedIn} fallback={<Navigate to=\"/login\" />}>\n * <Dashboard />\n * </Show>\n */\nexport function Show(props: PropsWithChildren<ShowProps>): ReactNode {\n const { when, children, fallback } = props\n const condition = useMemo(() => when ?? false, [when])\n\n return useMemo(() => {\n if (condition) return children\n return fallback ?? null\n }, [condition, children, fallback])\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,iBAAwB;;;ACAxB,mBAKO;AA+CH;AApBJ,IAAM,mBAAe,4BAAwC,IAAI;AA8B1D,SAAS,kBAAqC;AACnD,QAAM,cAAU,yBAAW,YAAY;AACvC,MAAI,CAAC,SAAS;AACZ,UAAM,IAAI,MAAM,uDAAuD;AAAA,EACzE;AACA,SAAO;AACT;;;ACpEA,IAAAA,gBAAgE;AA4BzD,SAAS,KAAK,OAAgD;AACnE,QAAM,EAAE,MAAM,UAAU,SAAS,IAAI;AACrC,QAAM,gBAAY,uBAAQ,MAAM,QAAQ,OAAO,CAAC,IAAI,CAAC;AAErD,aAAO,uBAAQ,MAAM;AACnB,QAAI,UAAW,QAAO;AACtB,WAAO,YAAY;AAAA,EACrB,GAAG,CAAC,WAAW,UAAU,QAAQ,CAAC;AACpC;;;AFhCA,qBAGO;AACP,sBAAuB;AAgDnB,IAAAC,sBAAA;AALG,SAAS,OAAO,OAAoB;AACzC,QAAM,EAAE,MAAM,GAAG,YAAY,IAAI;AACjC,QAAM,EAAE,SAAS,GAAG,UAAU,IAAI,gBAAgB;AAElD,SACE;AAAA,IAAC;AAAA;AAAA,MACE,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAI,WAAW,EAAE,gBAAgB,KAAK;AAAA,MACvC,eAAW;AAAA,QACT,YAAY;AAAA,YACZ,wBAAO;AAAA,UACL,SAAS;AAAA,UACT,GAAG;AAAA,QACL,CAAC;AAAA,YACD,sBAAM;AAAA,UACJ;AAAA,QACF,CAAC;AAAA,MACH;AAAA,MAEC;AAAA,oBAAY;AAAA,QACb,6CAAC,QAAK,MAAM,UAAU,UACpB;AAAA,UAAC;AAAA;AAAA,YACC,eAAW,gBAAI;AAAA,cACb,OAAO;AAAA,cACP,UAAU;AAAA,YACZ,CAAC;AAAA,YACF;AAAA;AAAA,QAED,GACF;AAAA;AAAA;AAAA,EACF;AAEJ;","names":["import_react","import_jsx_runtime"]}
|