@bigbinary/neeto-atoms 1.0.70 → 1.0.72
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/dist/{Combobox-_-p2WeU8.js → Combobox-DIGHGewS.js} +2 -2
- package/dist/{Combobox-_-p2WeU8.js.map → Combobox-DIGHGewS.js.map} +1 -1
- package/dist/{Select-DKN7RRzu.js → Select-DCS1MkaW.js} +2 -2
- package/dist/{Select-DKN7RRzu.js.map → Select-DCS1MkaW.js.map} +1 -1
- package/dist/cjs/{Combobox-BX_pe3Hm.js → Combobox-D84WURes.js} +2 -2
- package/dist/cjs/{Combobox-BX_pe3Hm.js.map → Combobox-D84WURes.js.map} +1 -1
- package/dist/cjs/{Select-CxaYzbvK.js → Select-D9m4zSKq.js} +2 -2
- package/dist/cjs/{Select-CxaYzbvK.js.map → Select-D9m4zSKq.js.map} +1 -1
- package/dist/cjs/components/Checkbox.js +1 -1
- package/dist/cjs/components/ColorPicker.js +1 -1
- package/dist/cjs/components/DatePicker.js +1 -1
- package/dist/cjs/components/Input.js +4 -4
- package/dist/cjs/components/Label.js +1 -1
- package/dist/cjs/components/MultiEmailInput.js +1 -1
- package/dist/cjs/components/RadioGroup.js +1 -1
- package/dist/cjs/components/Select.js +6 -6
- package/dist/cjs/components/Slider.js +1 -1
- package/dist/cjs/components/Switch.js +1 -1
- package/dist/cjs/components/Textarea.js +2 -2
- package/dist/cjs/components/TimePicker.js +1 -1
- package/dist/cjs/components/TreeSelect.js +1 -1
- package/dist/cjs/components/index.js +6 -6
- package/dist/cjs/formik/Checkbox.js +1 -1
- package/dist/cjs/formik/Input.js +4 -4
- package/dist/cjs/formik/MultiEmailInput.js +1 -1
- package/dist/cjs/formik/RadioGroup.js +1 -1
- package/dist/cjs/formik/Select.js +6 -6
- package/dist/cjs/formik/Slider.js +1 -1
- package/dist/cjs/formik/Switch.js +1 -1
- package/dist/cjs/formik/Textarea.js +2 -2
- package/dist/cjs/formik/TreeSelect.js +1 -1
- package/dist/cjs/formik/index.js +6 -6
- package/dist/cjs/index.js +6 -6
- package/dist/cjs/{input-BlyvDsZ5.js → input-BVxqXG2C.js} +28 -5
- package/dist/cjs/input-BVxqXG2C.js.map +1 -0
- package/dist/cjs/{input-group-8TZFHzVl.js → input-group-BdQoKm0i.js} +50 -35
- package/dist/cjs/{input-group-8TZFHzVl.js.map → input-group-BdQoKm0i.js.map} +1 -1
- package/dist/cjs/{label-DJ7KkKYy.js → label-BdcX4_ud.js} +15 -18
- package/dist/cjs/label-BdcX4_ud.js.map +1 -0
- package/dist/cjs/primitives/Button.js +13 -2
- package/dist/cjs/primitives/Button.js.map +1 -1
- package/dist/cjs/primitives/Checkbox.js +26 -33
- package/dist/cjs/primitives/Checkbox.js.map +1 -1
- package/dist/cjs/primitives/Combobox.js +4 -4
- package/dist/cjs/primitives/Command.js +3 -3
- package/dist/cjs/primitives/Field.js +1 -1
- package/dist/cjs/primitives/Input.js +2 -1
- package/dist/cjs/primitives/Input.js.map +1 -1
- package/dist/cjs/primitives/InputGroup.js +28 -6
- package/dist/cjs/primitives/InputGroup.js.map +1 -1
- package/dist/cjs/primitives/Label.js +24 -3
- package/dist/cjs/primitives/Label.js.map +1 -1
- package/dist/cjs/primitives/RadioGroup.js +52 -34
- package/dist/cjs/primitives/RadioGroup.js.map +1 -1
- package/dist/cjs/primitives/Sidebar.js +1 -1
- package/dist/cjs/primitives/Slider.js +6 -10
- package/dist/cjs/primitives/Slider.js.map +1 -1
- package/dist/cjs/primitives/Switch.js +5 -7
- package/dist/cjs/primitives/Switch.js.map +1 -1
- package/dist/cjs/primitives/Textarea.js +24 -2
- package/dist/cjs/primitives/Textarea.js.map +1 -1
- package/dist/cjs/primitives/index.js +5 -5
- package/dist/cjs/textarea-Cq6pBK7q.js +42 -0
- package/dist/cjs/textarea-Cq6pBK7q.js.map +1 -0
- package/dist/components/Checkbox.js +1 -1
- package/dist/components/ColorPicker.js +1 -1
- package/dist/components/DatePicker.js +1 -1
- package/dist/components/Input.js +4 -4
- package/dist/components/Label.js +1 -1
- package/dist/components/MultiEmailInput.js +1 -1
- package/dist/components/RadioGroup.js +1 -1
- package/dist/components/Select.js +6 -6
- package/dist/components/Slider.js +1 -1
- package/dist/components/Switch.js +1 -1
- package/dist/components/Textarea.js +2 -2
- package/dist/components/TimePicker.js +1 -1
- package/dist/components/TreeSelect.js +1 -1
- package/dist/components/index.js +6 -6
- package/dist/formik/Checkbox.js +1 -1
- package/dist/formik/Input.js +4 -4
- package/dist/formik/MultiEmailInput.js +1 -1
- package/dist/formik/RadioGroup.js +1 -1
- package/dist/formik/Select.js +6 -6
- package/dist/formik/Slider.js +1 -1
- package/dist/formik/Switch.js +1 -1
- package/dist/formik/Textarea.js +2 -2
- package/dist/formik/TreeSelect.js +1 -1
- package/dist/formik/index.js +6 -6
- package/dist/index.js +6 -6
- package/dist/{input-1J5oQa1u.js → input-CNbQc_tG.js} +8 -5
- package/dist/input-CNbQc_tG.js.map +1 -0
- package/dist/{input-group-BKkj65Uq.js → input-group-DDwp2ozP.js} +31 -36
- package/dist/{input-group-BKkj65Uq.js.map → input-group-DDwp2ozP.js.map} +1 -1
- package/dist/{label-BgLSVt4u.js → label-YEsizr2c.js} +15 -18
- package/dist/label-YEsizr2c.js.map +1 -0
- package/dist/primitives/Button.js +13 -2
- package/dist/primitives/Button.js.map +1 -1
- package/dist/primitives/Checkbox.d.ts +2 -3
- package/dist/primitives/Checkbox.js +26 -33
- package/dist/primitives/Checkbox.js.map +1 -1
- package/dist/primitives/Combobox.js +4 -4
- package/dist/primitives/Command.js +3 -3
- package/dist/primitives/Field.js +1 -1
- package/dist/primitives/Input.js +2 -1
- package/dist/primitives/Input.js.map +1 -1
- package/dist/primitives/InputGroup.d.ts +4 -4
- package/dist/primitives/InputGroup.js +8 -6
- package/dist/primitives/InputGroup.js.map +1 -1
- package/dist/primitives/Label.d.ts +3 -3
- package/dist/primitives/Label.js +4 -3
- package/dist/primitives/Label.js.map +1 -1
- package/dist/primitives/RadioGroup.d.ts +2 -3
- package/dist/primitives/RadioGroup.js +42 -24
- package/dist/primitives/RadioGroup.js.map +1 -1
- package/dist/primitives/Sidebar.js +1 -1
- package/dist/primitives/Slider.d.ts +2 -3
- package/dist/primitives/Slider.js +6 -10
- package/dist/primitives/Slider.js.map +1 -1
- package/dist/primitives/Switch.d.ts +2 -2
- package/dist/primitives/Switch.js +5 -7
- package/dist/primitives/Switch.js.map +1 -1
- package/dist/primitives/Textarea.d.ts +2 -3
- package/dist/primitives/Textarea.js +4 -2
- package/dist/primitives/Textarea.js.map +1 -1
- package/dist/primitives/index.js +5 -5
- package/dist/shadcn/components/checkbox.d.ts +1 -1
- package/dist/shadcn/components/input-group.d.ts +2 -2
- package/dist/shadcn/components/input.d.ts +1 -1
- package/dist/shadcn/components/label.d.ts +1 -1
- package/dist/shadcn/components/radio-group.d.ts +2 -2
- package/dist/shadcn/components/slider.d.ts +1 -1
- package/dist/shadcn/components/textarea.d.ts +1 -1
- package/dist/textarea-BZIsQ5UD.js +20 -0
- package/dist/textarea-BZIsQ5UD.js.map +1 -0
- package/package.json +1 -1
- package/dist/cjs/input-BlyvDsZ5.js.map +0 -1
- package/dist/cjs/label-DJ7KkKYy.js.map +0 -1
- package/dist/cjs/textarea-Br-J3v7z.js +0 -21
- package/dist/cjs/textarea-Br-J3v7z.js.map +0 -1
- package/dist/input-1J5oQa1u.js.map +0 -1
- package/dist/label-BgLSVt4u.js.map +0 -1
- package/dist/textarea-B0vzA497.js +0 -19
- package/dist/textarea-B0vzA497.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.js","sources":["../../../node_modules/@radix-ui/react-checkbox/dist/index.mjs","../../../src/shadcn/components/checkbox.tsx","../../../src/primitives/Checkbox.tsx"],"sourcesContent":["\"use client\";\n\n// src/checkbox.tsx\nimport * as React from \"react\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { usePrevious } from \"@radix-ui/react-use-previous\";\nimport { useSize } from \"@radix-ui/react-use-size\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { Fragment, jsx, jsxs } from \"react/jsx-runtime\";\nvar CHECKBOX_NAME = \"Checkbox\";\nvar [createCheckboxContext, createCheckboxScope] = createContextScope(CHECKBOX_NAME);\nvar [CheckboxProviderImpl, useCheckboxContext] = createCheckboxContext(CHECKBOX_NAME);\nfunction CheckboxProvider(props) {\n const {\n __scopeCheckbox,\n checked: checkedProp,\n children,\n defaultChecked,\n disabled,\n form,\n name,\n onCheckedChange,\n required,\n value = \"on\",\n // @ts-expect-error\n internal_do_not_use_render\n } = props;\n const [checked, setChecked] = useControllableState({\n prop: checkedProp,\n defaultProp: defaultChecked ?? false,\n onChange: onCheckedChange,\n caller: CHECKBOX_NAME\n });\n const [control, setControl] = React.useState(null);\n const [bubbleInput, setBubbleInput] = React.useState(null);\n const hasConsumerStoppedPropagationRef = React.useRef(false);\n const isFormControl = control ? !!form || !!control.closest(\"form\") : (\n // We set this to true by default so that events bubble to forms without JS (SSR)\n true\n );\n const context = {\n checked,\n disabled,\n setChecked,\n control,\n setControl,\n name,\n form,\n value,\n hasConsumerStoppedPropagationRef,\n required,\n defaultChecked: isIndeterminate(defaultChecked) ? false : defaultChecked,\n isFormControl,\n bubbleInput,\n setBubbleInput\n };\n return /* @__PURE__ */ jsx(\n CheckboxProviderImpl,\n {\n scope: __scopeCheckbox,\n ...context,\n children: isFunction(internal_do_not_use_render) ? internal_do_not_use_render(context) : children\n }\n );\n}\nvar TRIGGER_NAME = \"CheckboxTrigger\";\nvar CheckboxTrigger = React.forwardRef(\n ({ __scopeCheckbox, onKeyDown, onClick, ...checkboxProps }, forwardedRef) => {\n const {\n control,\n value,\n disabled,\n checked,\n required,\n setControl,\n setChecked,\n hasConsumerStoppedPropagationRef,\n isFormControl,\n bubbleInput\n } = useCheckboxContext(TRIGGER_NAME, __scopeCheckbox);\n const composedRefs = useComposedRefs(forwardedRef, setControl);\n const initialCheckedStateRef = React.useRef(checked);\n React.useEffect(() => {\n const form = control?.form;\n if (form) {\n const reset = () => setChecked(initialCheckedStateRef.current);\n form.addEventListener(\"reset\", reset);\n return () => form.removeEventListener(\"reset\", reset);\n }\n }, [control, setChecked]);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n role: \"checkbox\",\n \"aria-checked\": isIndeterminate(checked) ? \"mixed\" : checked,\n \"aria-required\": required,\n \"data-state\": getState(checked),\n \"data-disabled\": disabled ? \"\" : void 0,\n disabled,\n value,\n ...checkboxProps,\n ref: composedRefs,\n onKeyDown: composeEventHandlers(onKeyDown, (event) => {\n if (event.key === \"Enter\") event.preventDefault();\n }),\n onClick: composeEventHandlers(onClick, (event) => {\n setChecked((prevChecked) => isIndeterminate(prevChecked) ? true : !prevChecked);\n if (bubbleInput && isFormControl) {\n hasConsumerStoppedPropagationRef.current = event.isPropagationStopped();\n if (!hasConsumerStoppedPropagationRef.current) event.stopPropagation();\n }\n })\n }\n );\n }\n);\nCheckboxTrigger.displayName = TRIGGER_NAME;\nvar Checkbox = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeCheckbox,\n name,\n checked,\n defaultChecked,\n required,\n disabled,\n value,\n onCheckedChange,\n form,\n ...checkboxProps\n } = props;\n return /* @__PURE__ */ jsx(\n CheckboxProvider,\n {\n __scopeCheckbox,\n checked,\n defaultChecked,\n disabled,\n required,\n onCheckedChange,\n name,\n form,\n value,\n internal_do_not_use_render: ({ isFormControl }) => /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsx(\n CheckboxTrigger,\n {\n ...checkboxProps,\n ref: forwardedRef,\n __scopeCheckbox\n }\n ),\n isFormControl && /* @__PURE__ */ jsx(\n CheckboxBubbleInput,\n {\n __scopeCheckbox\n }\n )\n ] })\n }\n );\n }\n);\nCheckbox.displayName = CHECKBOX_NAME;\nvar INDICATOR_NAME = \"CheckboxIndicator\";\nvar CheckboxIndicator = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeCheckbox, forceMount, ...indicatorProps } = props;\n const context = useCheckboxContext(INDICATOR_NAME, __scopeCheckbox);\n return /* @__PURE__ */ jsx(\n Presence,\n {\n present: forceMount || isIndeterminate(context.checked) || context.checked === true,\n children: /* @__PURE__ */ jsx(\n Primitive.span,\n {\n \"data-state\": getState(context.checked),\n \"data-disabled\": context.disabled ? \"\" : void 0,\n ...indicatorProps,\n ref: forwardedRef,\n style: { pointerEvents: \"none\", ...props.style }\n }\n )\n }\n );\n }\n);\nCheckboxIndicator.displayName = INDICATOR_NAME;\nvar BUBBLE_INPUT_NAME = \"CheckboxBubbleInput\";\nvar CheckboxBubbleInput = React.forwardRef(\n ({ __scopeCheckbox, ...props }, forwardedRef) => {\n const {\n control,\n hasConsumerStoppedPropagationRef,\n checked,\n defaultChecked,\n required,\n disabled,\n name,\n value,\n form,\n bubbleInput,\n setBubbleInput\n } = useCheckboxContext(BUBBLE_INPUT_NAME, __scopeCheckbox);\n const composedRefs = useComposedRefs(forwardedRef, setBubbleInput);\n const prevChecked = usePrevious(checked);\n const controlSize = useSize(control);\n React.useEffect(() => {\n const input = bubbleInput;\n if (!input) return;\n const inputProto = window.HTMLInputElement.prototype;\n const descriptor = Object.getOwnPropertyDescriptor(\n inputProto,\n \"checked\"\n );\n const setChecked = descriptor.set;\n const bubbles = !hasConsumerStoppedPropagationRef.current;\n if (prevChecked !== checked && setChecked) {\n const event = new Event(\"click\", { bubbles });\n input.indeterminate = isIndeterminate(checked);\n setChecked.call(input, isIndeterminate(checked) ? false : checked);\n input.dispatchEvent(event);\n }\n }, [bubbleInput, prevChecked, checked, hasConsumerStoppedPropagationRef]);\n const defaultCheckedRef = React.useRef(isIndeterminate(checked) ? false : checked);\n return /* @__PURE__ */ jsx(\n Primitive.input,\n {\n type: \"checkbox\",\n \"aria-hidden\": true,\n defaultChecked: defaultChecked ?? defaultCheckedRef.current,\n required,\n disabled,\n name,\n value,\n form,\n ...props,\n tabIndex: -1,\n ref: composedRefs,\n style: {\n ...props.style,\n ...controlSize,\n position: \"absolute\",\n pointerEvents: \"none\",\n opacity: 0,\n margin: 0,\n // We transform because the input is absolutely positioned but we have\n // rendered it **after** the button. This pulls it back to sit on top\n // of the button.\n transform: \"translateX(-100%)\"\n }\n }\n );\n }\n);\nCheckboxBubbleInput.displayName = BUBBLE_INPUT_NAME;\nfunction isFunction(value) {\n return typeof value === \"function\";\n}\nfunction isIndeterminate(checked) {\n return checked === \"indeterminate\";\n}\nfunction getState(checked) {\n return isIndeterminate(checked) ? \"indeterminate\" : checked ? \"checked\" : \"unchecked\";\n}\nexport {\n Checkbox,\n CheckboxIndicator,\n CheckboxIndicator as Indicator,\n Checkbox as Root,\n createCheckboxScope,\n CheckboxBubbleInput as unstable_BubbleInput,\n CheckboxBubbleInput as unstable_CheckboxBubbleInput,\n CheckboxProvider as unstable_CheckboxProvider,\n CheckboxTrigger as unstable_CheckboxTrigger,\n CheckboxProvider as unstable_Provider,\n CheckboxTrigger as unstable_Trigger\n};\n//# sourceMappingURL=index.mjs.map\n","import * as React from \"react\"\nimport { Checkbox as CheckboxPrimitive } from \"radix-ui\"\n\nimport { cn } from \"src/shadcn/lib/utils\"\nimport { CheckIcon } from \"lucide-react\"\n\nfunction Checkbox({\n className,\n ...props\n}: React.ComponentProps<typeof CheckboxPrimitive.Root>) {\n return (\n <CheckboxPrimitive.Root\n data-slot=\"checkbox\"\n className={cn(\n \"peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input transition-colors outline-none group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary\",\n className\n )}\n {...props}\n >\n <CheckboxPrimitive.Indicator\n data-slot=\"checkbox-indicator\"\n className=\"grid place-content-center text-current transition-none [&>svg]:size-3.5\"\n >\n <CheckIcon\n />\n </CheckboxPrimitive.Indicator>\n </CheckboxPrimitive.Root>\n )\n}\n\nexport { Checkbox }\n","import type React from \"react\";\nimport { Checkbox as ShadcnCheckbox } from \"src/shadcn/components/checkbox\";\nimport { cn } from \"src/shadcn/lib/utils\";\n\nconst Checkbox = ({\n className,\n ...props\n}: React.ComponentProps<typeof ShadcnCheckbox>) => (\n <ShadcnCheckbox\n className={cn(\"border-neutral-400 dark:border-neutral-500\", className)}\n {...props}\n />\n);\n\nexport { Checkbox };\n"],"names":["createContextScope","useControllableState","React","jsx","useComposedRefs","Primitive","composeEventHandlers","Checkbox","jsxs","Fragment","Presence","usePrevious","useSize","CheckboxPrimitive.Root","cn","CheckboxPrimitive.Indicator","CheckIcon","ShadcnCheckbox"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,IAAI,aAAa,GAAG,UAAU;AAC9B,IAAI,CAAC,qBAA0C,CAAC,GAAGA,0BAAkB,CAAC,aAAa,CAAC;AACpF,IAAI,CAAC,oBAAoB,EAAE,kBAAkB,CAAC,GAAG,qBAAqB,CAAC,aAAa,CAAC;AACrF,SAAS,gBAAgB,CAAC,KAAK,EAAE;AACjC,EAAE,MAAM;AACR,IAAI,eAAe;AACnB,IAAI,OAAO,EAAE,WAAW;AACxB,IAAI,QAAQ;AACZ,IAAI,cAAc;AAClB,IAAI,QAAQ;AACZ,IAAI,IAAI;AACR,IAAI,IAAI;AACR,IAAI,eAAe;AACnB,IAAI,QAAQ;AACZ,IAAI,KAAK,GAAG,IAAI;AAChB;AACA,IAAI;AAC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AAC3B,EAAE,OAAO,OAAO,KAAK,KAAK,UAAU;AACpC;AACA,SAAS,eAAe,CAAC,OAAO,EAAE;AAClC,EAAE,OAAO,OAAO,KAAK,eAAe;AACpC;AACA,SAAS,QAAQ,CAAC,OAAO,EAAE;AAC3B,EAAE,OAAO,eAAe,CAAC,OAAO,CAAC,GAAG,eAAe,GAAG,OAAO,GAAG,SAAS,GAAG,WAAW;AACvF;;ACvQA,SAASE,UAAA,CAAS;AAAA,EAChB,SAAA;AAAA,EACA,GAAG;AACL,CAAA,EAAwD;AACtD,EAAA,uBACEJ,cAAA;AAAA,IAACU,UAAkB;AAAA,IAAlB;AAAA,MACC,WAAA,EAAU,UAAA;AAAA,MACV,SAAA,EAAWC,QAAA;AAAA,QACT,mqBAAA;AAAA,QACA;AAAA,OACF;AAAA,MACC,GAAG,KAAA;AAAA,MAEJ,QAAA,kBAAAX,cAAA;AAAA,QAACY,iBAAkB;AAAA,QAAlB;AAAA,UACC,WAAA,EAAU,oBAAA;AAAA,UACV,SAAA,EAAU,yEAAA;AAAA,UAEV,QAAA,kBAAAZ,cAAA;AAAA,YAACa,WAAA;AAAA,YAAA;AAAA;AACD;AAAA;AACF;AAAA,GACF;AAEJ;;ACxBA,MAAM,WAAW,CAAC;AAAA,EAChB,SAAA;AAAA,EACA,GAAG;AACL,CAAA,qBACEb,cAAA;AAAA,EAACc,UAAA;AAAA,EAAA;AAAA,IACC,SAAA,EAAWH,QAAA,CAAG,4CAAA,EAA8C,SAAS,CAAA;AAAA,IACpE,GAAG;AAAA;AACN;;;;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"Checkbox.js","sources":["../../../node_modules/@radix-ui/react-checkbox/dist/index.mjs","../../../src/shadcn/components/checkbox.tsx","../../../src/primitives/Checkbox.tsx"],"sourcesContent":["\"use client\";\n\n// src/checkbox.tsx\nimport * as React from \"react\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { usePrevious } from \"@radix-ui/react-use-previous\";\nimport { useSize } from \"@radix-ui/react-use-size\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { Fragment, jsx, jsxs } from \"react/jsx-runtime\";\nvar CHECKBOX_NAME = \"Checkbox\";\nvar [createCheckboxContext, createCheckboxScope] = createContextScope(CHECKBOX_NAME);\nvar [CheckboxProviderImpl, useCheckboxContext] = createCheckboxContext(CHECKBOX_NAME);\nfunction CheckboxProvider(props) {\n const {\n __scopeCheckbox,\n checked: checkedProp,\n children,\n defaultChecked,\n disabled,\n form,\n name,\n onCheckedChange,\n required,\n value = \"on\",\n // @ts-expect-error\n internal_do_not_use_render\n } = props;\n const [checked, setChecked] = useControllableState({\n prop: checkedProp,\n defaultProp: defaultChecked ?? false,\n onChange: onCheckedChange,\n caller: CHECKBOX_NAME\n });\n const [control, setControl] = React.useState(null);\n const [bubbleInput, setBubbleInput] = React.useState(null);\n const hasConsumerStoppedPropagationRef = React.useRef(false);\n const isFormControl = control ? !!form || !!control.closest(\"form\") : (\n // We set this to true by default so that events bubble to forms without JS (SSR)\n true\n );\n const context = {\n checked,\n disabled,\n setChecked,\n control,\n setControl,\n name,\n form,\n value,\n hasConsumerStoppedPropagationRef,\n required,\n defaultChecked: isIndeterminate(defaultChecked) ? false : defaultChecked,\n isFormControl,\n bubbleInput,\n setBubbleInput\n };\n return /* @__PURE__ */ jsx(\n CheckboxProviderImpl,\n {\n scope: __scopeCheckbox,\n ...context,\n children: isFunction(internal_do_not_use_render) ? internal_do_not_use_render(context) : children\n }\n );\n}\nvar TRIGGER_NAME = \"CheckboxTrigger\";\nvar CheckboxTrigger = React.forwardRef(\n ({ __scopeCheckbox, onKeyDown, onClick, ...checkboxProps }, forwardedRef) => {\n const {\n control,\n value,\n disabled,\n checked,\n required,\n setControl,\n setChecked,\n hasConsumerStoppedPropagationRef,\n isFormControl,\n bubbleInput\n } = useCheckboxContext(TRIGGER_NAME, __scopeCheckbox);\n const composedRefs = useComposedRefs(forwardedRef, setControl);\n const initialCheckedStateRef = React.useRef(checked);\n React.useEffect(() => {\n const form = control?.form;\n if (form) {\n const reset = () => setChecked(initialCheckedStateRef.current);\n form.addEventListener(\"reset\", reset);\n return () => form.removeEventListener(\"reset\", reset);\n }\n }, [control, setChecked]);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n role: \"checkbox\",\n \"aria-checked\": isIndeterminate(checked) ? \"mixed\" : checked,\n \"aria-required\": required,\n \"data-state\": getState(checked),\n \"data-disabled\": disabled ? \"\" : void 0,\n disabled,\n value,\n ...checkboxProps,\n ref: composedRefs,\n onKeyDown: composeEventHandlers(onKeyDown, (event) => {\n if (event.key === \"Enter\") event.preventDefault();\n }),\n onClick: composeEventHandlers(onClick, (event) => {\n setChecked((prevChecked) => isIndeterminate(prevChecked) ? true : !prevChecked);\n if (bubbleInput && isFormControl) {\n hasConsumerStoppedPropagationRef.current = event.isPropagationStopped();\n if (!hasConsumerStoppedPropagationRef.current) event.stopPropagation();\n }\n })\n }\n );\n }\n);\nCheckboxTrigger.displayName = TRIGGER_NAME;\nvar Checkbox = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeCheckbox,\n name,\n checked,\n defaultChecked,\n required,\n disabled,\n value,\n onCheckedChange,\n form,\n ...checkboxProps\n } = props;\n return /* @__PURE__ */ jsx(\n CheckboxProvider,\n {\n __scopeCheckbox,\n checked,\n defaultChecked,\n disabled,\n required,\n onCheckedChange,\n name,\n form,\n value,\n internal_do_not_use_render: ({ isFormControl }) => /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsx(\n CheckboxTrigger,\n {\n ...checkboxProps,\n ref: forwardedRef,\n __scopeCheckbox\n }\n ),\n isFormControl && /* @__PURE__ */ jsx(\n CheckboxBubbleInput,\n {\n __scopeCheckbox\n }\n )\n ] })\n }\n );\n }\n);\nCheckbox.displayName = CHECKBOX_NAME;\nvar INDICATOR_NAME = \"CheckboxIndicator\";\nvar CheckboxIndicator = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeCheckbox, forceMount, ...indicatorProps } = props;\n const context = useCheckboxContext(INDICATOR_NAME, __scopeCheckbox);\n return /* @__PURE__ */ jsx(\n Presence,\n {\n present: forceMount || isIndeterminate(context.checked) || context.checked === true,\n children: /* @__PURE__ */ jsx(\n Primitive.span,\n {\n \"data-state\": getState(context.checked),\n \"data-disabled\": context.disabled ? \"\" : void 0,\n ...indicatorProps,\n ref: forwardedRef,\n style: { pointerEvents: \"none\", ...props.style }\n }\n )\n }\n );\n }\n);\nCheckboxIndicator.displayName = INDICATOR_NAME;\nvar BUBBLE_INPUT_NAME = \"CheckboxBubbleInput\";\nvar CheckboxBubbleInput = React.forwardRef(\n ({ __scopeCheckbox, ...props }, forwardedRef) => {\n const {\n control,\n hasConsumerStoppedPropagationRef,\n checked,\n defaultChecked,\n required,\n disabled,\n name,\n value,\n form,\n bubbleInput,\n setBubbleInput\n } = useCheckboxContext(BUBBLE_INPUT_NAME, __scopeCheckbox);\n const composedRefs = useComposedRefs(forwardedRef, setBubbleInput);\n const prevChecked = usePrevious(checked);\n const controlSize = useSize(control);\n React.useEffect(() => {\n const input = bubbleInput;\n if (!input) return;\n const inputProto = window.HTMLInputElement.prototype;\n const descriptor = Object.getOwnPropertyDescriptor(\n inputProto,\n \"checked\"\n );\n const setChecked = descriptor.set;\n const bubbles = !hasConsumerStoppedPropagationRef.current;\n if (prevChecked !== checked && setChecked) {\n const event = new Event(\"click\", { bubbles });\n input.indeterminate = isIndeterminate(checked);\n setChecked.call(input, isIndeterminate(checked) ? false : checked);\n input.dispatchEvent(event);\n }\n }, [bubbleInput, prevChecked, checked, hasConsumerStoppedPropagationRef]);\n const defaultCheckedRef = React.useRef(isIndeterminate(checked) ? false : checked);\n return /* @__PURE__ */ jsx(\n Primitive.input,\n {\n type: \"checkbox\",\n \"aria-hidden\": true,\n defaultChecked: defaultChecked ?? defaultCheckedRef.current,\n required,\n disabled,\n name,\n value,\n form,\n ...props,\n tabIndex: -1,\n ref: composedRefs,\n style: {\n ...props.style,\n ...controlSize,\n position: \"absolute\",\n pointerEvents: \"none\",\n opacity: 0,\n margin: 0,\n // We transform because the input is absolutely positioned but we have\n // rendered it **after** the button. This pulls it back to sit on top\n // of the button.\n transform: \"translateX(-100%)\"\n }\n }\n );\n }\n);\nCheckboxBubbleInput.displayName = BUBBLE_INPUT_NAME;\nfunction isFunction(value) {\n return typeof value === \"function\";\n}\nfunction isIndeterminate(checked) {\n return checked === \"indeterminate\";\n}\nfunction getState(checked) {\n return isIndeterminate(checked) ? \"indeterminate\" : checked ? \"checked\" : \"unchecked\";\n}\nexport {\n Checkbox,\n CheckboxIndicator,\n CheckboxIndicator as Indicator,\n Checkbox as Root,\n createCheckboxScope,\n CheckboxBubbleInput as unstable_BubbleInput,\n CheckboxBubbleInput as unstable_CheckboxBubbleInput,\n CheckboxProvider as unstable_CheckboxProvider,\n CheckboxTrigger as unstable_CheckboxTrigger,\n CheckboxProvider as unstable_Provider,\n CheckboxTrigger as unstable_Trigger\n};\n//# sourceMappingURL=index.mjs.map\n","import * as React from \"react\"\nimport { Checkbox as CheckboxPrimitive } from \"radix-ui\"\n\nimport { cn } from \"src/shadcn/lib/utils\"\nimport { CheckIcon } from \"lucide-react\"\n\nconst Checkbox = React.forwardRef<\n React.ElementRef<typeof CheckboxPrimitive.Root>,\n React.ComponentProps<typeof CheckboxPrimitive.Root>\n>(({ className, ...props }, ref) => (\n <CheckboxPrimitive.Root\n ref={ref}\n data-slot=\"checkbox\"\n className={cn(\n \"peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input transition-colors outline-none group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary\",\n className\n )}\n {...props}\n >\n <CheckboxPrimitive.Indicator\n data-slot=\"checkbox-indicator\"\n className=\"grid place-content-center text-current transition-none [&>svg]:size-3.5\"\n >\n <CheckIcon />\n </CheckboxPrimitive.Indicator>\n </CheckboxPrimitive.Root>\n))\n\nCheckbox.displayName = \"Checkbox\"\n\nexport { Checkbox }\n","import * as React from \"react\";\nimport { Checkbox as ShadcnCheckbox } from \"src/shadcn/components/checkbox\";\nimport { cn } from \"src/shadcn/lib/utils\";\n\nconst Checkbox = React.forwardRef<\n React.ElementRef<typeof ShadcnCheckbox>,\n React.ComponentProps<typeof ShadcnCheckbox>\n>(({ className, ...props }, ref) => (\n <ShadcnCheckbox\n ref={ref}\n className={cn(\"border-neutral-400 dark:border-neutral-500\", className)}\n {...props}\n />\n));\n\nCheckbox.displayName = \"Checkbox\";\n\nexport { Checkbox };\n"],"names":["createContextScope","useControllableState","React","jsx","useComposedRefs","Primitive","composeEventHandlers","Checkbox","jsxs","Fragment","Presence","usePrevious","useSize","CheckboxPrimitive.Root","cn","CheckboxPrimitive.Indicator","CheckIcon","ShadcnCheckbox"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,IAAI,aAAa,GAAG,UAAU;AAC9B,IAAI,CAAC,qBAA0C,CAAC,GAAGA,0BAAkB,CAAC,aAAa,CAAC;AACpF,IAAI,CAAC,oBAAoB,EAAE,kBAAkB,CAAC,GAAG,qBAAqB,CAAC,aAAa,CAAC;AACrF,SAAS,gBAAgB,CAAC,KAAK,EAAE;AACjC,EAAE,MAAM;AACR,IAAI,eAAe;AACnB,IAAI,OAAO,EAAE,WAAW;AACxB,IAAI,QAAQ;AACZ,IA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;;","x_google_ignoreList":[0]}
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
require('react/jsx-runtime');
|
|
4
4
|
require('react');
|
|
5
5
|
require('../utils-BhM0B89p.js');
|
|
6
|
-
var primitives_Combobox = require('../Combobox-
|
|
6
|
+
var primitives_Combobox = require('../Combobox-D84WURes.js');
|
|
7
7
|
require('../button-CMl9rLXi.js');
|
|
8
8
|
require('../index-vioSzJOw.js');
|
|
9
9
|
require('../index-DuNgWCXZ.js');
|
|
10
10
|
require('../index-D-iDn9RI.js');
|
|
11
|
-
require('../input-group-
|
|
12
|
-
require('../input-
|
|
13
|
-
require('../textarea-
|
|
11
|
+
require('../input-group-BdQoKm0i.js');
|
|
12
|
+
require('../input-BVxqXG2C.js');
|
|
13
|
+
require('../textarea-Cq6pBK7q.js');
|
|
14
14
|
require('../chevron-down-CPsWSS51.js');
|
|
15
15
|
require('../createLucideIcon-D0tRgV6l.js');
|
|
16
16
|
require('../check-BQgcDXys.js');
|
|
@@ -9,7 +9,7 @@ var index$1 = require('../index-BwAq9ba8.js');
|
|
|
9
9
|
var reactI18next = require('react-i18next');
|
|
10
10
|
var utils = require('../utils-BhM0B89p.js');
|
|
11
11
|
var dialog = require('../dialog-Cs1qH5xA.js');
|
|
12
|
-
var inputGroup = require('../input-group-
|
|
12
|
+
var inputGroup = require('../input-group-BdQoKm0i.js');
|
|
13
13
|
var createLucideIcon = require('../createLucideIcon-D0tRgV6l.js');
|
|
14
14
|
var check = require('../check-BQgcDXys.js');
|
|
15
15
|
require('../index-COPkC3I5.js');
|
|
@@ -26,8 +26,8 @@ require('../button-CMl9rLXi.js');
|
|
|
26
26
|
require('../index-vioSzJOw.js');
|
|
27
27
|
require('../index-DuNgWCXZ.js');
|
|
28
28
|
require('../x-Brw3FJst.js');
|
|
29
|
-
require('../input-
|
|
30
|
-
require('../textarea-
|
|
29
|
+
require('../input-BVxqXG2C.js');
|
|
30
|
+
require('../textarea-Cq6pBK7q.js');
|
|
31
31
|
|
|
32
32
|
function _interopNamespace(e) {
|
|
33
33
|
if (e && e.__esModule) return e;
|
|
@@ -5,7 +5,7 @@ var HelpIcon = require('../HelpIcon-CIkKt2uy.js');
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var index = require('../index-vioSzJOw.js');
|
|
7
7
|
var utils = require('../utils-BhM0B89p.js');
|
|
8
|
-
var label = require('../label-
|
|
8
|
+
var label = require('../label-BdcX4_ud.js');
|
|
9
9
|
var separator = require('../separator-DSL-aG1J.js');
|
|
10
10
|
require('./Tooltip.js');
|
|
11
11
|
require('../tooltip-BYCcUMZn.js');
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var input = require('../input-
|
|
4
|
+
var input = require('../input-BVxqXG2C.js');
|
|
5
|
+
require('react');
|
|
5
6
|
require('../utils-BhM0B89p.js');
|
|
6
7
|
|
|
7
8
|
const Input = (props) => /* @__PURE__ */ jsxRuntime.jsx(input.Input, { ...props });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.js","sources":["../../../src/primitives/Input.tsx"],"sourcesContent":["import type React from \"react\";\n\nimport { Input as ShadcnInput } from \"src/shadcn/components/input\";\n\nconst Input = (props: React.ComponentProps<typeof ShadcnInput>) => (\n <ShadcnInput {...props} />\n);\n\nexport { Input };\n"],"names":["jsx","ShadcnInput"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Input.js","sources":["../../../src/primitives/Input.tsx"],"sourcesContent":["import type React from \"react\";\n\nimport { Input as ShadcnInput } from \"src/shadcn/components/input\";\n\nconst Input = (props: React.ComponentProps<typeof ShadcnInput>) => (\n <ShadcnInput {...props} />\n);\n\nexport { Input };\n"],"names":["jsx","ShadcnInput"],"mappings":";;;;;;;AAIA,MAAM,QAAQ,CAAC,KAAA,qBACbA,cAAA,CAACC,WAAA,EAAA,EAAa,GAAG,KAAA,EAAO;;;;"}
|
|
@@ -1,22 +1,44 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var inputGroup = require('../input-group-BdQoKm0i.js');
|
|
5
6
|
require('../index-vioSzJOw.js');
|
|
6
7
|
require('../utils-BhM0B89p.js');
|
|
7
8
|
require('../button-CMl9rLXi.js');
|
|
8
|
-
require('react');
|
|
9
9
|
require('../index-DuNgWCXZ.js');
|
|
10
10
|
require('../index-D-iDn9RI.js');
|
|
11
|
-
require('../input-
|
|
12
|
-
require('../textarea-
|
|
11
|
+
require('../input-BVxqXG2C.js');
|
|
12
|
+
require('../textarea-Cq6pBK7q.js');
|
|
13
|
+
|
|
14
|
+
function _interopNamespace(e) {
|
|
15
|
+
if (e && e.__esModule) return e;
|
|
16
|
+
var n = Object.create(null);
|
|
17
|
+
if (e) {
|
|
18
|
+
Object.keys(e).forEach(function (k) {
|
|
19
|
+
if (k !== 'default') {
|
|
20
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
21
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () { return e[k]; }
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
n.default = e;
|
|
29
|
+
return Object.freeze(n);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
13
33
|
|
|
14
34
|
const InputGroup = (props) => /* @__PURE__ */ jsxRuntime.jsx(inputGroup.InputGroup, { ...props });
|
|
15
35
|
const InputGroupAddon = (props) => /* @__PURE__ */ jsxRuntime.jsx(inputGroup.InputGroupAddon, { ...props });
|
|
16
36
|
const InputGroupButton = (props) => /* @__PURE__ */ jsxRuntime.jsx(inputGroup.InputGroupButton, { ...props });
|
|
17
37
|
const InputGroupText = (props) => /* @__PURE__ */ jsxRuntime.jsx(inputGroup.InputGroupText, { ...props });
|
|
18
|
-
const InputGroupInput = (props) => /* @__PURE__ */ jsxRuntime.jsx(inputGroup.InputGroupInput, { ...props });
|
|
19
|
-
|
|
38
|
+
const InputGroupInput = React__namespace.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(inputGroup.InputGroupInput, { ref, ...props }));
|
|
39
|
+
InputGroupInput.displayName = "InputGroupInput";
|
|
40
|
+
const InputGroupTextarea = React__namespace.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(inputGroup.InputGroupTextarea, { ref, ...props }));
|
|
41
|
+
InputGroupTextarea.displayName = "InputGroupTextarea";
|
|
20
42
|
|
|
21
43
|
exports.InputGroup = InputGroup;
|
|
22
44
|
exports.InputGroupAddon = InputGroupAddon;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputGroup.js","sources":["../../../src/primitives/InputGroup.tsx"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"InputGroup.js","sources":["../../../src/primitives/InputGroup.tsx"],"sourcesContent":["import * as React from \"react\";\n\nimport {\n InputGroup as ShadcnInputGroup,\n InputGroupAddon as ShadcnInputGroupAddon,\n InputGroupButton as ShadcnInputGroupButton,\n InputGroupText as ShadcnInputGroupText,\n InputGroupInput as ShadcnInputGroupInput,\n InputGroupTextarea as ShadcnInputGroupTextarea,\n} from \"src/shadcn/components/input-group\";\n\nconst InputGroup = (props: React.ComponentProps<typeof ShadcnInputGroup>) => (\n <ShadcnInputGroup {...props} />\n);\n\nconst InputGroupAddon = (\n props: React.ComponentProps<typeof ShadcnInputGroupAddon>\n) => <ShadcnInputGroupAddon {...props} />;\n\nconst InputGroupButton = (\n props: React.ComponentProps<typeof ShadcnInputGroupButton>\n) => <ShadcnInputGroupButton {...props} />;\n\nconst InputGroupText = (\n props: React.ComponentProps<typeof ShadcnInputGroupText>\n) => <ShadcnInputGroupText {...props} />;\n\nconst InputGroupInput = React.forwardRef<\n React.ElementRef<typeof ShadcnInputGroupInput>,\n React.ComponentProps<typeof ShadcnInputGroupInput>\n>((props, ref) => <ShadcnInputGroupInput ref={ref} {...props} />);\n\nInputGroupInput.displayName = \"InputGroupInput\";\n\nconst InputGroupTextarea = React.forwardRef<\n React.ElementRef<typeof ShadcnInputGroupTextarea>,\n React.ComponentProps<typeof ShadcnInputGroupTextarea>\n>((props, ref) => <ShadcnInputGroupTextarea ref={ref} {...props} />);\n\nInputGroupTextarea.displayName = \"InputGroupTextarea\";\n\nexport {\n InputGroup,\n InputGroupAddon,\n InputGroupButton,\n InputGroupText,\n InputGroupInput,\n InputGroupTextarea,\n};\n"],"names":["jsx","ShadcnInputGroup","ShadcnInputGroupAddon","ShadcnInputGroupButton","ShadcnInputGroupText","React","ShadcnInputGroupInput","ShadcnInputGroupTextarea"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWA,MAAM,aAAa,CAAC,KAAA,qBAClBA,cAAA,CAACC,qBAAA,EAAA,EAAkB,GAAG,KAAA,EAAO;AAG/B,MAAM,kBAAkB,CACtB,KAAA,qBACGD,cAAA,CAACE,0BAAA,EAAA,EAAuB,GAAG,KAAA,EAAO;AAEvC,MAAM,mBAAmB,CACvB,KAAA,qBACGF,cAAA,CAACG,2BAAA,EAAA,EAAwB,GAAG,KAAA,EAAO;AAExC,MAAM,iBAAiB,CACrB,KAAA,qBACGH,cAAA,CAACI,yBAAA,EAAA,EAAsB,GAAG,KAAA,EAAO;AAEtC,MAAM,eAAA,GAAkBC,gBAAA,CAAM,UAAA,CAG5B,CAAC,KAAA,EAAO,GAAA,qBAAQL,cAAA,CAACM,0BAAA,EAAA,EAAsB,GAAA,EAAW,GAAG,KAAA,EAAO,CAAE;AAEhE,eAAA,CAAgB,WAAA,GAAc,iBAAA;AAE9B,MAAM,kBAAA,GAAqBD,gBAAA,CAAM,UAAA,CAG/B,CAAC,KAAA,EAAO,GAAA,qBAAQL,cAAA,CAACO,6BAAA,EAAA,EAAyB,GAAA,EAAW,GAAG,KAAA,EAAO,CAAE;AAEnE,kBAAA,CAAmB,WAAA,GAAc,oBAAA;;;;;;;;;"}
|
|
@@ -1,14 +1,35 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var label = require('../label-BdcX4_ud.js');
|
|
5
6
|
require('../utils-BhM0B89p.js');
|
|
6
|
-
require('react');
|
|
7
7
|
require('../index-DMbj7vXd.js');
|
|
8
8
|
require('react-dom');
|
|
9
9
|
require('../index-D-iDn9RI.js');
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
function _interopNamespace(e) {
|
|
12
|
+
if (e && e.__esModule) return e;
|
|
13
|
+
var n = Object.create(null);
|
|
14
|
+
if (e) {
|
|
15
|
+
Object.keys(e).forEach(function (k) {
|
|
16
|
+
if (k !== 'default') {
|
|
17
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
18
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () { return e[k]; }
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
n.default = e;
|
|
26
|
+
return Object.freeze(n);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
30
|
+
|
|
31
|
+
const Label = React__namespace.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(label.Label, { ref, ...props }));
|
|
32
|
+
Label.displayName = "Label";
|
|
12
33
|
|
|
13
34
|
exports.Label = Label;
|
|
14
35
|
//# sourceMappingURL=Label.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Label.js","sources":["../../../src/primitives/Label.tsx"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"Label.js","sources":["../../../src/primitives/Label.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { Label as LabelPrimitive } from \"radix-ui\";\n\nimport { Label as ShadcnLabel } from \"src/shadcn/components/label\";\n\nconst Label = React.forwardRef<\n React.ElementRef<typeof LabelPrimitive.Root>,\n React.ComponentProps<typeof LabelPrimitive.Root>\n>((props, ref) => <ShadcnLabel ref={ref} {...props} />);\n\nLabel.displayName = \"Label\";\n\nexport { Label };\n"],"names":["React","jsx","ShadcnLabel"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,MAAM,KAAA,GAAQA,gBAAA,CAAM,UAAA,CAGlB,CAAC,KAAA,EAAO,GAAA,qBAAQC,cAAA,CAACC,WAAA,EAAA,EAAY,GAAA,EAAW,GAAG,KAAA,EAAO,CAAE;AAEtD,KAAA,CAAM,WAAA,GAAc,OAAA;;;;"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var utils = require('../utils-BhM0B89p.js');
|
|
5
4
|
var React = require('react');
|
|
5
|
+
var utils = require('../utils-BhM0B89p.js');
|
|
6
6
|
var index$2 = require('../index-COPkC3I5.js');
|
|
7
7
|
var index = require('../index-D-iDn9RI.js');
|
|
8
8
|
var index$7 = require('../index-CGUGhyIp.js');
|
|
9
|
-
var index$
|
|
9
|
+
var index$5 = require('../index-DMbj7vXd.js');
|
|
10
10
|
var index$1 = require('../index-DoVhdseB.js');
|
|
11
|
-
var index$
|
|
12
|
-
var index$
|
|
11
|
+
var index$4 = require('../index-CyrAgb4H.js');
|
|
12
|
+
var index$3 = require('../index-BY6wgiQV.js');
|
|
13
13
|
var index$9 = require('../index-Bf0WsHta.js');
|
|
14
14
|
var index$8 = require('../index-CF951Pw9.js');
|
|
15
|
-
var index$
|
|
15
|
+
var index$6 = require('../index-DcCSSgb7.js');
|
|
16
16
|
require('react-dom');
|
|
17
17
|
require('../index-Ch55j1or.js');
|
|
18
18
|
require('../index-BwAq9ba8.js');
|
|
@@ -61,7 +61,7 @@ var Radio = React__namespace.forwardRef(
|
|
|
61
61
|
const isFormControl = button ? form || !!button.closest("form") : true;
|
|
62
62
|
return /* @__PURE__ */ jsxRuntime.jsxs(RadioProvider, { scope: __scopeRadio, checked, disabled, children: [
|
|
63
63
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
64
|
-
index$
|
|
64
|
+
index$5.Primitive.button,
|
|
65
65
|
{
|
|
66
66
|
type: "button",
|
|
67
67
|
role: "radio",
|
|
@@ -104,8 +104,8 @@ var RadioIndicator = React__namespace.forwardRef(
|
|
|
104
104
|
(props, forwardedRef) => {
|
|
105
105
|
const { __scopeRadio, forceMount, ...indicatorProps } = props;
|
|
106
106
|
const context = useRadioContext(INDICATOR_NAME, __scopeRadio);
|
|
107
|
-
return /* @__PURE__ */ jsxRuntime.jsx(index$
|
|
108
|
-
index$
|
|
107
|
+
return /* @__PURE__ */ jsxRuntime.jsx(index$6.Presence, { present: forceMount || context.checked, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
108
|
+
index$5.Primitive.span,
|
|
109
109
|
{
|
|
110
110
|
"data-state": getState(context.checked),
|
|
111
111
|
"data-disabled": context.disabled ? "" : void 0,
|
|
@@ -145,7 +145,7 @@ var RadioBubbleInput = React__namespace.forwardRef(
|
|
|
145
145
|
}
|
|
146
146
|
}, [prevChecked, checked, bubbles]);
|
|
147
147
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
148
|
-
index$
|
|
148
|
+
index$5.Primitive.input,
|
|
149
149
|
{
|
|
150
150
|
type: "radio",
|
|
151
151
|
"aria-hidden": true,
|
|
@@ -194,8 +194,8 @@ var RadioGroup$2 = React__namespace.forwardRef(
|
|
|
194
194
|
...groupProps
|
|
195
195
|
} = props;
|
|
196
196
|
const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeRadioGroup);
|
|
197
|
-
const direction = index$
|
|
198
|
-
const [value, setValue] = index$
|
|
197
|
+
const direction = index$3.useDirection(dir);
|
|
198
|
+
const [value, setValue] = index$4.useControllableState({
|
|
199
199
|
prop: valueProp,
|
|
200
200
|
defaultProp: defaultValue ?? null,
|
|
201
201
|
onChange: onValueChange,
|
|
@@ -219,7 +219,7 @@ var RadioGroup$2 = React__namespace.forwardRef(
|
|
|
219
219
|
dir: direction,
|
|
220
220
|
loop,
|
|
221
221
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
222
|
-
index$
|
|
222
|
+
index$5.Primitive.div,
|
|
223
223
|
{
|
|
224
224
|
role: "radiogroup",
|
|
225
225
|
"aria-required": required,
|
|
@@ -238,7 +238,7 @@ var RadioGroup$2 = React__namespace.forwardRef(
|
|
|
238
238
|
);
|
|
239
239
|
RadioGroup$2.displayName = RADIO_GROUP_NAME;
|
|
240
240
|
var ITEM_NAME = "RadioGroupItem";
|
|
241
|
-
var RadioGroupItem$
|
|
241
|
+
var RadioGroupItem$2 = React__namespace.forwardRef(
|
|
242
242
|
(props, forwardedRef) => {
|
|
243
243
|
const { __scopeRadioGroup, disabled, ...itemProps } = props;
|
|
244
244
|
const context = useRadioGroupContext(ITEM_NAME, __scopeRadioGroup);
|
|
@@ -293,7 +293,7 @@ var RadioGroupItem$1 = React__namespace.forwardRef(
|
|
|
293
293
|
);
|
|
294
294
|
}
|
|
295
295
|
);
|
|
296
|
-
RadioGroupItem$
|
|
296
|
+
RadioGroupItem$2.displayName = ITEM_NAME;
|
|
297
297
|
var INDICATOR_NAME2 = "RadioGroupIndicator";
|
|
298
298
|
var RadioGroupIndicator = React__namespace.forwardRef(
|
|
299
299
|
(props, forwardedRef) => {
|
|
@@ -304,30 +304,47 @@ var RadioGroupIndicator = React__namespace.forwardRef(
|
|
|
304
304
|
);
|
|
305
305
|
RadioGroupIndicator.displayName = INDICATOR_NAME2;
|
|
306
306
|
var Root2 = RadioGroup$2;
|
|
307
|
-
var Item2 = RadioGroupItem$
|
|
307
|
+
var Item2 = RadioGroupItem$2;
|
|
308
308
|
var Indicator = RadioGroupIndicator;
|
|
309
309
|
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
310
|
+
const RadioGroup$1 = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
311
|
+
Root2,
|
|
312
|
+
{
|
|
313
|
+
ref,
|
|
314
|
+
"data-slot": "radio-group",
|
|
315
|
+
className: utils.cn("grid w-full gap-2", className),
|
|
316
|
+
...props
|
|
317
|
+
}
|
|
318
|
+
));
|
|
319
|
+
RadioGroup$1.displayName = "RadioGroup";
|
|
320
|
+
const RadioGroupItem$1 = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
321
|
+
Item2,
|
|
322
|
+
{
|
|
323
|
+
ref,
|
|
324
|
+
"data-slot": "radio-group-item",
|
|
325
|
+
className: utils.cn(
|
|
326
|
+
"group/radio-group-item peer relative flex aspect-square size-4 shrink-0 rounded-full border border-input outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary",
|
|
327
|
+
className
|
|
328
|
+
),
|
|
329
|
+
...props,
|
|
330
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
331
|
+
Indicator,
|
|
332
|
+
{
|
|
333
|
+
"data-slot": "radio-group-indicator",
|
|
334
|
+
className: "flex size-4 items-center justify-center",
|
|
335
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute top-1/2 start-1/2 size-2 -translate-x-1/2 rtl:translate-x-1/2 -translate-y-1/2 rounded-full bg-primary-foreground" })
|
|
336
|
+
}
|
|
337
|
+
)
|
|
338
|
+
}
|
|
339
|
+
));
|
|
340
|
+
RadioGroupItem$1.displayName = "RadioGroupItem";
|
|
323
341
|
|
|
324
|
-
const RadioGroup = (props) => /* @__PURE__ */ jsxRuntime.jsx(RadioGroup$1, { ...props });
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
...props
|
|
328
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
342
|
+
const RadioGroup = React__namespace.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(RadioGroup$1, { ref, ...props }));
|
|
343
|
+
RadioGroup.displayName = "RadioGroup";
|
|
344
|
+
const RadioGroupItem = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
329
345
|
Item2,
|
|
330
346
|
{
|
|
347
|
+
ref,
|
|
331
348
|
"data-slot": "radio-group-item",
|
|
332
349
|
className: utils.cn(
|
|
333
350
|
"group/radio-group-item peer relative flex aspect-square size-4 shrink-0 rounded-full border border-neutral-400 outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:border-neutral-500 dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary",
|
|
@@ -343,7 +360,8 @@ const RadioGroupItem = ({
|
|
|
343
360
|
}
|
|
344
361
|
)
|
|
345
362
|
}
|
|
346
|
-
);
|
|
363
|
+
));
|
|
364
|
+
RadioGroupItem.displayName = "RadioGroupItem";
|
|
347
365
|
|
|
348
366
|
exports.RadioGroup = RadioGroup;
|
|
349
367
|
exports.RadioGroupItem = RadioGroupItem;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioGroup.js","sources":["../../../node_modules/@radix-ui/react-radio-group/dist/index.mjs","../../../src/shadcn/components/radio-group.tsx","../../../src/primitives/RadioGroup.tsx"],"sourcesContent":["\"use client\";\n\n// src/radio-group.tsx\nimport * as React2 from \"react\";\nimport { composeEventHandlers as composeEventHandlers2 } from \"@radix-ui/primitive\";\nimport { useComposedRefs as useComposedRefs2 } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope as createContextScope2 } from \"@radix-ui/react-context\";\nimport { Primitive as Primitive2 } from \"@radix-ui/react-primitive\";\nimport * as RovingFocusGroup from \"@radix-ui/react-roving-focus\";\nimport { createRovingFocusGroupScope } from \"@radix-ui/react-roving-focus\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { useDirection } from \"@radix-ui/react-direction\";\n\n// src/radio.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useSize } from \"@radix-ui/react-use-size\";\nimport { usePrevious } from \"@radix-ui/react-use-previous\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\nvar RADIO_NAME = \"Radio\";\nvar [createRadioContext, createRadioScope] = createContextScope(RADIO_NAME);\nvar [RadioProvider, useRadioContext] = createRadioContext(RADIO_NAME);\nvar Radio = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeRadio,\n name,\n checked = false,\n required,\n disabled,\n value = \"on\",\n onCheck,\n form,\n ...radioProps\n } = props;\n const [button, setButton] = React.useState(null);\n const composedRefs = useComposedRefs(forwardedRef, (node) => setButton(node));\n const hasConsumerStoppedPropagationRef = React.useRef(false);\n const isFormControl = button ? form || !!button.closest(\"form\") : true;\n return /* @__PURE__ */ jsxs(RadioProvider, { scope: __scopeRadio, checked, disabled, children: [\n /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n role: \"radio\",\n \"aria-checked\": checked,\n \"data-state\": getState(checked),\n \"data-disabled\": disabled ? \"\" : void 0,\n disabled,\n value,\n ...radioProps,\n ref: composedRefs,\n onClick: composeEventHandlers(props.onClick, (event) => {\n if (!checked) onCheck?.();\n if (isFormControl) {\n hasConsumerStoppedPropagationRef.current = event.isPropagationStopped();\n if (!hasConsumerStoppedPropagationRef.current) event.stopPropagation();\n }\n })\n }\n ),\n isFormControl && /* @__PURE__ */ jsx(\n RadioBubbleInput,\n {\n control: button,\n bubbles: !hasConsumerStoppedPropagationRef.current,\n name,\n value,\n checked,\n required,\n disabled,\n form,\n style: { transform: \"translateX(-100%)\" }\n }\n )\n ] });\n }\n);\nRadio.displayName = RADIO_NAME;\nvar INDICATOR_NAME = \"RadioIndicator\";\nvar RadioIndicator = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeRadio, forceMount, ...indicatorProps } = props;\n const context = useRadioContext(INDICATOR_NAME, __scopeRadio);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.checked, children: /* @__PURE__ */ jsx(\n Primitive.span,\n {\n \"data-state\": getState(context.checked),\n \"data-disabled\": context.disabled ? \"\" : void 0,\n ...indicatorProps,\n ref: forwardedRef\n }\n ) });\n }\n);\nRadioIndicator.displayName = INDICATOR_NAME;\nvar BUBBLE_INPUT_NAME = \"RadioBubbleInput\";\nvar RadioBubbleInput = React.forwardRef(\n ({\n __scopeRadio,\n control,\n checked,\n bubbles = true,\n ...props\n }, forwardedRef) => {\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(ref, forwardedRef);\n const prevChecked = usePrevious(checked);\n const controlSize = useSize(control);\n React.useEffect(() => {\n const input = ref.current;\n if (!input) return;\n const inputProto = window.HTMLInputElement.prototype;\n const descriptor = Object.getOwnPropertyDescriptor(\n inputProto,\n \"checked\"\n );\n const setChecked = descriptor.set;\n if (prevChecked !== checked && setChecked) {\n const event = new Event(\"click\", { bubbles });\n setChecked.call(input, checked);\n input.dispatchEvent(event);\n }\n }, [prevChecked, checked, bubbles]);\n return /* @__PURE__ */ jsx(\n Primitive.input,\n {\n type: \"radio\",\n \"aria-hidden\": true,\n defaultChecked: checked,\n ...props,\n tabIndex: -1,\n ref: composedRefs,\n style: {\n ...props.style,\n ...controlSize,\n position: \"absolute\",\n pointerEvents: \"none\",\n opacity: 0,\n margin: 0\n }\n }\n );\n }\n);\nRadioBubbleInput.displayName = BUBBLE_INPUT_NAME;\nfunction getState(checked) {\n return checked ? \"checked\" : \"unchecked\";\n}\n\n// src/radio-group.tsx\nimport { jsx as jsx2 } from \"react/jsx-runtime\";\nvar ARROW_KEYS = [\"ArrowUp\", \"ArrowDown\", \"ArrowLeft\", \"ArrowRight\"];\nvar RADIO_GROUP_NAME = \"RadioGroup\";\nvar [createRadioGroupContext, createRadioGroupScope] = createContextScope2(RADIO_GROUP_NAME, [\n createRovingFocusGroupScope,\n createRadioScope\n]);\nvar useRovingFocusGroupScope = createRovingFocusGroupScope();\nvar useRadioScope = createRadioScope();\nvar [RadioGroupProvider, useRadioGroupContext] = createRadioGroupContext(RADIO_GROUP_NAME);\nvar RadioGroup = React2.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeRadioGroup,\n name,\n defaultValue,\n value: valueProp,\n required = false,\n disabled = false,\n orientation,\n dir,\n loop = true,\n onValueChange,\n ...groupProps\n } = props;\n const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeRadioGroup);\n const direction = useDirection(dir);\n const [value, setValue] = useControllableState({\n prop: valueProp,\n defaultProp: defaultValue ?? null,\n onChange: onValueChange,\n caller: RADIO_GROUP_NAME\n });\n return /* @__PURE__ */ jsx2(\n RadioGroupProvider,\n {\n scope: __scopeRadioGroup,\n name,\n required,\n disabled,\n value,\n onValueChange: setValue,\n children: /* @__PURE__ */ jsx2(\n RovingFocusGroup.Root,\n {\n asChild: true,\n ...rovingFocusGroupScope,\n orientation,\n dir: direction,\n loop,\n children: /* @__PURE__ */ jsx2(\n Primitive2.div,\n {\n role: \"radiogroup\",\n \"aria-required\": required,\n \"aria-orientation\": orientation,\n \"data-disabled\": disabled ? \"\" : void 0,\n dir: direction,\n ...groupProps,\n ref: forwardedRef\n }\n )\n }\n )\n }\n );\n }\n);\nRadioGroup.displayName = RADIO_GROUP_NAME;\nvar ITEM_NAME = \"RadioGroupItem\";\nvar RadioGroupItem = React2.forwardRef(\n (props, forwardedRef) => {\n const { __scopeRadioGroup, disabled, ...itemProps } = props;\n const context = useRadioGroupContext(ITEM_NAME, __scopeRadioGroup);\n const isDisabled = context.disabled || disabled;\n const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeRadioGroup);\n const radioScope = useRadioScope(__scopeRadioGroup);\n const ref = React2.useRef(null);\n const composedRefs = useComposedRefs2(forwardedRef, ref);\n const checked = context.value === itemProps.value;\n const isArrowKeyPressedRef = React2.useRef(false);\n React2.useEffect(() => {\n const handleKeyDown = (event) => {\n if (ARROW_KEYS.includes(event.key)) {\n isArrowKeyPressedRef.current = true;\n }\n };\n const handleKeyUp = () => isArrowKeyPressedRef.current = false;\n document.addEventListener(\"keydown\", handleKeyDown);\n document.addEventListener(\"keyup\", handleKeyUp);\n return () => {\n document.removeEventListener(\"keydown\", handleKeyDown);\n document.removeEventListener(\"keyup\", handleKeyUp);\n };\n }, []);\n return /* @__PURE__ */ jsx2(\n RovingFocusGroup.Item,\n {\n asChild: true,\n ...rovingFocusGroupScope,\n focusable: !isDisabled,\n active: checked,\n children: /* @__PURE__ */ jsx2(\n Radio,\n {\n disabled: isDisabled,\n required: context.required,\n checked,\n ...radioScope,\n ...itemProps,\n name: context.name,\n ref: composedRefs,\n onCheck: () => context.onValueChange(itemProps.value),\n onKeyDown: composeEventHandlers2((event) => {\n if (event.key === \"Enter\") event.preventDefault();\n }),\n onFocus: composeEventHandlers2(itemProps.onFocus, () => {\n if (isArrowKeyPressedRef.current) ref.current?.click();\n })\n }\n )\n }\n );\n }\n);\nRadioGroupItem.displayName = ITEM_NAME;\nvar INDICATOR_NAME2 = \"RadioGroupIndicator\";\nvar RadioGroupIndicator = React2.forwardRef(\n (props, forwardedRef) => {\n const { __scopeRadioGroup, ...indicatorProps } = props;\n const radioScope = useRadioScope(__scopeRadioGroup);\n return /* @__PURE__ */ jsx2(RadioIndicator, { ...radioScope, ...indicatorProps, ref: forwardedRef });\n }\n);\nRadioGroupIndicator.displayName = INDICATOR_NAME2;\nvar Root2 = RadioGroup;\nvar Item2 = RadioGroupItem;\nvar Indicator = RadioGroupIndicator;\nexport {\n Indicator,\n Item2 as Item,\n RadioGroup,\n RadioGroupIndicator,\n RadioGroupItem,\n Root2 as Root,\n createRadioGroupScope\n};\n//# sourceMappingURL=index.mjs.map\n","\"use client\"\n\nimport * as React from \"react\"\nimport { RadioGroup as RadioGroupPrimitive } from \"radix-ui\"\n\nimport { cn } from \"src/shadcn/lib/utils\"\n\nfunction RadioGroup({\n className,\n ...props\n}: React.ComponentProps<typeof RadioGroupPrimitive.Root>) {\n return (\n <RadioGroupPrimitive.Root\n data-slot=\"radio-group\"\n className={cn(\"grid w-full gap-2\", className)}\n {...props}\n />\n )\n}\n\nfunction RadioGroupItem({\n className,\n ...props\n}: React.ComponentProps<typeof RadioGroupPrimitive.Item>) {\n return (\n <RadioGroupPrimitive.Item\n data-slot=\"radio-group-item\"\n className={cn(\n \"group/radio-group-item peer relative flex aspect-square size-4 shrink-0 rounded-full border border-input outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary\",\n className\n )}\n {...props}\n >\n <RadioGroupPrimitive.Indicator\n data-slot=\"radio-group-indicator\"\n className=\"flex size-4 items-center justify-center\"\n >\n <span className=\"absolute top-1/2 start-1/2 size-2 -translate-x-1/2 rtl:translate-x-1/2 -translate-y-1/2 rounded-full bg-primary-foreground\" />\n </RadioGroupPrimitive.Indicator>\n </RadioGroupPrimitive.Item>\n )\n}\n\nexport { RadioGroup, RadioGroupItem }\n","import * as React from \"react\";\nimport { RadioGroup as RadioGroupPrimitive } from \"radix-ui\";\nimport { cn } from \"src/shadcn/lib/utils\";\n\nimport { RadioGroup as ShadcnRadioGroup } from \"src/shadcn/components/radio-group\";\n\nconst RadioGroup = (props: React.ComponentProps<typeof ShadcnRadioGroup>) => (\n <ShadcnRadioGroup {...props} />\n);\n\n/**\n * RadioGroupItem re-composed from Radix primitives with the inner dot\n * using flex centering instead of absolute + translate, fixing RTL alignment.\n */\nconst RadioGroupItem = ({\n className,\n ...props\n}: React.ComponentProps<typeof RadioGroupPrimitive.Item>) => (\n <RadioGroupPrimitive.Item\n data-slot=\"radio-group-item\"\n className={cn(\n \"group/radio-group-item peer relative flex aspect-square size-4 shrink-0 rounded-full border border-neutral-400 outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:border-neutral-500 dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary\",\n className\n )}\n {...props}\n >\n <RadioGroupPrimitive.Indicator\n data-slot=\"radio-group-indicator\"\n className=\"flex size-full items-center justify-center\"\n >\n <span className=\"size-2 rounded-full bg-primary-foreground\" />\n </RadioGroupPrimitive.Indicator>\n </RadioGroupPrimitive.Item>\n);\n\nexport { RadioGroup, RadioGroupItem };\n"],"names":["createContextScope","React","useComposedRefs","jsxs","jsx","Primitive","composeEventHandlers","Presence","usePrevious","useSize","createContextScope2","createRovingFocusGroupScope","RadioGroup","React2","useDirection","useControllableState","jsx2","RovingFocusGroup.Root","Primitive2","RadioGroupItem","useComposedRefs2","RovingFocusGroup.Item","composeEventHandlers2","RadioGroupPrimitive.Root","cn","ShadcnRadioGroup","RadioGroupPrimitive.Item","RadioGroupPrimitive.Indicator"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuBA,IAAI,UAAU,GAAG,OAAO;AACxB,IAAI,CAAC,kBAAkB,EAAE,gBAAgB,CAAC,GAAGA,0BAAkB,CAAC,UAAU,CAAC;AAC3E,IAAI,CAAC,aAAa,EAAE,eAAe,CAAC,GAAG,kBAAkB,CAAC,UAAU,CAAC;AACrE,IAAI,KAAK,GAAGC,gBAAK,CAAC,UAAU;AAC5B,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK;AAC3B,IAAI,MAAM;AACV,MAAM,YAAY;AAClB,MAAM,IAAI;AACV,MAAM,OAAO,GAAG,KAAK;AACrB,MAAM,QAAQ;AACd,MAAM,QAAQ;AACd,MAAM,KAAK,GAAG,IAAI;AAClB,MAAM,OAAO;AACb,MAAM,IAAI;AACV,MAAM,GAAG;AACT,KAAK,GAAG,KAAK;AACb,IAAI,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAGA,gBAAK,CAAC,QAAQ,CAAC,IAAI,CAAC;AACpD,IAAI,MAAM,YAAY,GAAGC,qBAAe,CAAC,YAAY,EAAE,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,CAAC;AACjF,IAAI,MAAM,gCAAgC,GAAGD,gBAAK,CAAC,MAAM,CAAC,KAAK,CAAC;AAChE,IAAI,MAAM,aAAa,GAAG,MAAM,GAAG,IAAI,IAAI,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,IAAI;AAC1E,I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oB;AAAA,IAApB;AAAA,MACC,WAAA,EAAU,aAAA;AAAA,MACV,SAAA,EAAWC,QAAA,CAAG,mBAAA,EAAqB,SAAS,CAAA;AAAA,MAC3C,GAAG;AAAA;AAAA,GACN;AAEJ;;ACZA,MAAM,aAAa,CAAC,KAAA,qBAClBpB,cAAA,CAACqB,YAAA,EAAA,EAAkB,GAAG,KAAA,EAAO;AAO/B,MAAM,iBAAiB,CAAC;AAAA,EACtB,SAAA;AAAA,EACA,GAAG;AACL,CAAA,qBACErB,cAAA;AAAA,EAACsB,KAAoB;AAAA,EAApB;AAAA,IACC,WAAA,EAAU,kBAAA;AAAA,IACV,SAAA,EAAWF,QAAA;AAAA,MACT,mpBAAA;AAAA,MACA;AAAA,KACF;AAAA,IACC,GAAG,KAAA;AAAA,IAEJ,QAAA,kBAAApB,cAAA;AAAA,MAACuB,SAAoB;AAAA,MAApB;AAAA,QACC,WAAA,EAAU,uBAAA;AAAA,QACV,SAAA,EAAU,4CAAA;AAAA,QAEV,QAAA,kBAAAvB,cAAA,CAAC,MAAA,EAAA,EAAK,SAAA,EAAU,2CAAA,EAA4C;AAAA;AAAA;AAC9D;AACF;;;;;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"RadioGroup.js","sources":["../../../node_modules/@radix-ui/react-radio-group/dist/index.mjs","../../../src/shadcn/components/radio-group.tsx","../../../src/primitives/RadioGroup.tsx"],"sourcesContent":["\"use client\";\n\n// src/radio-group.tsx\nimport * as React2 from \"react\";\nimport { composeEventHandlers as composeEventHandlers2 } from \"@radix-ui/primitive\";\nimport { useComposedRefs as useComposedRefs2 } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope as createContextScope2 } from \"@radix-ui/react-context\";\nimport { Primitive as Primitive2 } from \"@radix-ui/react-primitive\";\nimport * as RovingFocusGroup from \"@radix-ui/react-roving-focus\";\nimport { createRovingFocusGroupScope } from \"@radix-ui/react-roving-focus\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { useDirection } from \"@radix-ui/react-direction\";\n\n// src/radio.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useSize } from \"@radix-ui/react-use-size\";\nimport { usePrevious } from \"@radix-ui/react-use-previous\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\nvar RADIO_NAME = \"Radio\";\nvar [createRadioContext, createRadioScope] = createContextScope(RADIO_NAME);\nvar [RadioProvider, useRadioContext] = createRadioContext(RADIO_NAME);\nvar Radio = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeRadio,\n name,\n checked = false,\n required,\n disabled,\n value = \"on\",\n onCheck,\n form,\n ...radioProps\n } = props;\n const [button, setButton] = React.useState(null);\n const composedRefs = useComposedRefs(forwardedRef, (node) => setButton(node));\n const hasConsumerStoppedPropagationRef = React.useRef(false);\n const isFormControl = button ? form || !!button.closest(\"form\") : true;\n return /* @__PURE__ */ jsxs(RadioProvider, { scope: __scopeRadio, checked, disabled, children: [\n /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n role: \"radio\",\n \"aria-checked\": checked,\n \"data-state\": getState(checked),\n \"data-disabled\": disabled ? \"\" : void 0,\n disabled,\n value,\n ...radioProps,\n ref: composedRefs,\n onClick: composeEventHandlers(props.onClick, (event) => {\n if (!checked) onCheck?.();\n if (isFormControl) {\n hasConsumerStoppedPropagationRef.current = event.isPropagationStopped();\n if (!hasConsumerStoppedPropagationRef.current) event.stopPropagation();\n }\n })\n }\n ),\n isFormControl && /* @__PURE__ */ jsx(\n RadioBubbleInput,\n {\n control: button,\n bubbles: !hasConsumerStoppedPropagationRef.current,\n name,\n value,\n checked,\n required,\n disabled,\n form,\n style: { transform: \"translateX(-100%)\" }\n }\n )\n ] });\n }\n);\nRadio.displayName = RADIO_NAME;\nvar INDICATOR_NAME = \"RadioIndicator\";\nvar RadioIndicator = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeRadio, forceMount, ...indicatorProps } = props;\n const context = useRadioContext(INDICATOR_NAME, __scopeRadio);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.checked, children: /* @__PURE__ */ jsx(\n Primitive.span,\n {\n \"data-state\": getState(context.checked),\n \"data-disabled\": context.disabled ? \"\" : void 0,\n ...indicatorProps,\n ref: forwardedRef\n }\n ) });\n }\n);\nRadioIndicator.displayName = INDICATOR_NAME;\nvar BUBBLE_INPUT_NAME = \"RadioBubbleInput\";\nvar RadioBubbleInput = React.forwardRef(\n ({\n __scopeRadio,\n control,\n checked,\n bubbles = true,\n ...props\n }, forwardedRef) => {\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(ref, forwardedRef);\n const prevChecked = usePrevious(checked);\n const controlSize = useSize(control);\n React.useEffect(() => {\n const input = ref.current;\n if (!input) return;\n const inputProto = window.HTMLInputElement.prototype;\n const descriptor = Object.getOwnPropertyDescriptor(\n inputProto,\n \"checked\"\n );\n const setChecked = descriptor.set;\n if (prevChecked !== checked && setChecked) {\n const event = new Event(\"click\", { bubbles });\n setChecked.call(input, checked);\n input.dispatchEvent(event);\n }\n }, [prevChecked, checked, bubbles]);\n return /* @__PURE__ */ jsx(\n Primitive.input,\n {\n type: \"radio\",\n \"aria-hidden\": true,\n defaultChecked: checked,\n ...props,\n tabIndex: -1,\n ref: composedRefs,\n style: {\n ...props.style,\n ...controlSize,\n position: \"absolute\",\n pointerEvents: \"none\",\n opacity: 0,\n margin: 0\n }\n }\n );\n }\n);\nRadioBubbleInput.displayName = BUBBLE_INPUT_NAME;\nfunction getState(checked) {\n return checked ? \"checked\" : \"unchecked\";\n}\n\n// src/radio-group.tsx\nimport { jsx as jsx2 } from \"react/jsx-runtime\";\nvar ARROW_KEYS = [\"ArrowUp\", \"ArrowDown\", \"ArrowLeft\", \"ArrowRight\"];\nvar RADIO_GROUP_NAME = \"RadioGroup\";\nvar [createRadioGroupContext, createRadioGroupScope] = createContextScope2(RADIO_GROUP_NAME, [\n createRovingFocusGroupScope,\n createRadioScope\n]);\nvar useRovingFocusGroupScope = createRovingFocusGroupScope();\nvar useRadioScope = createRadioScope();\nvar [RadioGroupProvider, useRadioGroupContext] = createRadioGroupContext(RADIO_GROUP_NAME);\nvar RadioGroup = React2.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeRadioGroup,\n name,\n defaultValue,\n value: valueProp,\n required = false,\n disabled = false,\n orientation,\n dir,\n loop = true,\n onValueChange,\n ...groupProps\n } = props;\n const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeRadioGroup);\n const direction = useDirection(dir);\n const [value, setValue] = useControllableState({\n prop: valueProp,\n defaultProp: defaultValue ?? null,\n onChange: onValueChange,\n caller: RADIO_GROUP_NAME\n });\n return /* @__PURE__ */ jsx2(\n RadioGroupProvider,\n {\n scope: __scopeRadioGroup,\n name,\n required,\n disabled,\n value,\n onValueChange: setValue,\n children: /* @__PURE__ */ jsx2(\n RovingFocusGroup.Root,\n {\n asChild: true,\n ...rovingFocusGroupScope,\n orientation,\n dir: direction,\n loop,\n children: /* @__PURE__ */ jsx2(\n Primitive2.div,\n {\n role: \"radiogroup\",\n \"aria-required\": required,\n \"aria-orientation\": orientation,\n \"data-disabled\": disabled ? \"\" : void 0,\n dir: direction,\n ...groupProps,\n ref: forwardedRef\n }\n )\n }\n )\n }\n );\n }\n);\nRadioGroup.displayName = RADIO_GROUP_NAME;\nvar ITEM_NAME = \"RadioGroupItem\";\nvar RadioGroupItem = React2.forwardRef(\n (props, forwardedRef) => {\n const { __scopeRadioGroup, disabled, ...itemProps } = props;\n const context = useRadioGroupContext(ITEM_NAME, __scopeRadioGroup);\n const isDisabled = context.disabled || disabled;\n const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeRadioGroup);\n const radioScope = useRadioScope(__scopeRadioGroup);\n const ref = React2.useRef(null);\n const composedRefs = useComposedRefs2(forwardedRef, ref);\n const checked = context.value === itemProps.value;\n const isArrowKeyPressedRef = React2.useRef(false);\n React2.useEffect(() => {\n const handleKeyDown = (event) => {\n if (ARROW_KEYS.includes(event.key)) {\n isArrowKeyPressedRef.current = true;\n }\n };\n const handleKeyUp = () => isArrowKeyPressedRef.current = false;\n document.addEventListener(\"keydown\", handleKeyDown);\n document.addEventListener(\"keyup\", handleKeyUp);\n return () => {\n document.removeEventListener(\"keydown\", handleKeyDown);\n document.removeEventListener(\"keyup\", handleKeyUp);\n };\n }, []);\n return /* @__PURE__ */ jsx2(\n RovingFocusGroup.Item,\n {\n asChild: true,\n ...rovingFocusGroupScope,\n focusable: !isDisabled,\n active: checked,\n children: /* @__PURE__ */ jsx2(\n Radio,\n {\n disabled: isDisabled,\n required: context.required,\n checked,\n ...radioScope,\n ...itemProps,\n name: context.name,\n ref: composedRefs,\n onCheck: () => context.onValueChange(itemProps.value),\n onKeyDown: composeEventHandlers2((event) => {\n if (event.key === \"Enter\") event.preventDefault();\n }),\n onFocus: composeEventHandlers2(itemProps.onFocus, () => {\n if (isArrowKeyPressedRef.current) ref.current?.click();\n })\n }\n )\n }\n );\n }\n);\nRadioGroupItem.displayName = ITEM_NAME;\nvar INDICATOR_NAME2 = \"RadioGroupIndicator\";\nvar RadioGroupIndicator = React2.forwardRef(\n (props, forwardedRef) => {\n const { __scopeRadioGroup, ...indicatorProps } = props;\n const radioScope = useRadioScope(__scopeRadioGroup);\n return /* @__PURE__ */ jsx2(RadioIndicator, { ...radioScope, ...indicatorProps, ref: forwardedRef });\n }\n);\nRadioGroupIndicator.displayName = INDICATOR_NAME2;\nvar Root2 = RadioGroup;\nvar Item2 = RadioGroupItem;\nvar Indicator = RadioGroupIndicator;\nexport {\n Indicator,\n Item2 as Item,\n RadioGroup,\n RadioGroupIndicator,\n RadioGroupItem,\n Root2 as Root,\n createRadioGroupScope\n};\n//# sourceMappingURL=index.mjs.map\n","\"use client\"\n\nimport * as React from \"react\"\nimport { RadioGroup as RadioGroupPrimitive } from \"radix-ui\"\n\nimport { cn } from \"src/shadcn/lib/utils\"\n\nconst RadioGroup = React.forwardRef<\n React.ElementRef<typeof RadioGroupPrimitive.Root>,\n React.ComponentProps<typeof RadioGroupPrimitive.Root>\n>(({ className, ...props }, ref) => (\n <RadioGroupPrimitive.Root\n ref={ref}\n data-slot=\"radio-group\"\n className={cn(\"grid w-full gap-2\", className)}\n {...props}\n />\n))\n\nRadioGroup.displayName = \"RadioGroup\"\n\nconst RadioGroupItem = React.forwardRef<\n React.ElementRef<typeof RadioGroupPrimitive.Item>,\n React.ComponentProps<typeof RadioGroupPrimitive.Item>\n>(({ className, ...props }, ref) => (\n <RadioGroupPrimitive.Item\n ref={ref}\n data-slot=\"radio-group-item\"\n className={cn(\n \"group/radio-group-item peer relative flex aspect-square size-4 shrink-0 rounded-full border border-input outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary\",\n className\n )}\n {...props}\n >\n <RadioGroupPrimitive.Indicator\n data-slot=\"radio-group-indicator\"\n className=\"flex size-4 items-center justify-center\"\n >\n <span className=\"absolute top-1/2 start-1/2 size-2 -translate-x-1/2 rtl:translate-x-1/2 -translate-y-1/2 rounded-full bg-primary-foreground\" />\n </RadioGroupPrimitive.Indicator>\n </RadioGroupPrimitive.Item>\n))\n\nRadioGroupItem.displayName = \"RadioGroupItem\"\n\nexport { RadioGroup, RadioGroupItem }\n","import * as React from \"react\";\nimport { RadioGroup as RadioGroupPrimitive } from \"radix-ui\";\nimport { cn } from \"src/shadcn/lib/utils\";\n\nimport { RadioGroup as ShadcnRadioGroup } from \"src/shadcn/components/radio-group\";\n\nconst RadioGroup = React.forwardRef<\n React.ElementRef<typeof ShadcnRadioGroup>,\n React.ComponentProps<typeof ShadcnRadioGroup>\n>((props, ref) => <ShadcnRadioGroup ref={ref} {...props} />);\n\nRadioGroup.displayName = \"RadioGroup\";\n\n/**\n * RadioGroupItem re-composed from Radix primitives with the inner dot\n * using flex centering instead of absolute + translate, fixing RTL alignment.\n */\nconst RadioGroupItem = React.forwardRef<\n React.ElementRef<typeof RadioGroupPrimitive.Item>,\n React.ComponentProps<typeof RadioGroupPrimitive.Item>\n>(({ className, ...props }, ref) => (\n <RadioGroupPrimitive.Item\n ref={ref}\n data-slot=\"radio-group-item\"\n className={cn(\n \"group/radio-group-item peer relative flex aspect-square size-4 shrink-0 rounded-full border border-neutral-400 outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:border-neutral-500 dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary\",\n className\n )}\n {...props}\n >\n <RadioGroupPrimitive.Indicator\n data-slot=\"radio-group-indicator\"\n className=\"flex size-full items-center justify-center\"\n >\n <span className=\"size-2 rounded-full bg-primary-foreground\" />\n </RadioGroupPrimitive.Indicator>\n </RadioGroupPrimitive.Item>\n));\n\nRadioGroupItem.displayName = \"RadioGroupItem\";\n\nexport { RadioGroup, RadioGroupItem };\n"],"names":["createContextScope","React","useComposedRefs","jsxs","jsx","Primitive","composeEventHandlers","Presence","usePrevious","useSize","createContextScope2","createRovingFocusGroupScope","RadioGroup","React2","useDirection","useControllableState","jsx2","RovingFocusGroup.Root","Primitive2","RadioGroupItem","useComposedRefs2","RovingFocusGroup.Item","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BAAAtB,cAAA,CAAC,MAAA,EAAA,EAAK,SAAA,EAAU,2CAAA,EAA4C;AAAA;AAAA;AAC9D;AACF,CACD;AAED,cAAA,CAAe,WAAA,GAAc,gBAAA;;;;;","x_google_ignoreList":[0]}
|
|
@@ -6,7 +6,7 @@ var React = require('react');
|
|
|
6
6
|
var index$1 = require('../index-vioSzJOw.js');
|
|
7
7
|
var useMobile = require('../use-mobile-Be9CI6km.js');
|
|
8
8
|
var button = require('../button-CMl9rLXi.js');
|
|
9
|
-
var input = require('../input-
|
|
9
|
+
var input = require('../input-BVxqXG2C.js');
|
|
10
10
|
var separator = require('../separator-DSL-aG1J.js');
|
|
11
11
|
var sheet = require('../sheet-G6ismmAK.js');
|
|
12
12
|
var skeleton = require('../skeleton-CL0H_mC4.js');
|
|
@@ -576,14 +576,7 @@ var Track = SliderTrack;
|
|
|
576
576
|
var Range = SliderRange;
|
|
577
577
|
var Thumb = SliderThumb;
|
|
578
578
|
|
|
579
|
-
|
|
580
|
-
className,
|
|
581
|
-
defaultValue,
|
|
582
|
-
value,
|
|
583
|
-
min = 0,
|
|
584
|
-
max = 100,
|
|
585
|
-
...props
|
|
586
|
-
}) {
|
|
579
|
+
const Slider$1 = React__namespace.forwardRef(({ className, defaultValue, value, min = 0, max = 100, ...props }, ref) => {
|
|
587
580
|
const _values = React__namespace.useMemo(
|
|
588
581
|
() => Array.isArray(value) ? value : Array.isArray(defaultValue) ? defaultValue : [min, max],
|
|
589
582
|
[value, defaultValue, min, max]
|
|
@@ -591,6 +584,7 @@ function Slider$1({
|
|
|
591
584
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
592
585
|
Root,
|
|
593
586
|
{
|
|
587
|
+
ref,
|
|
594
588
|
"data-slot": "slider",
|
|
595
589
|
defaultValue,
|
|
596
590
|
value,
|
|
@@ -627,9 +621,11 @@ function Slider$1({
|
|
|
627
621
|
]
|
|
628
622
|
}
|
|
629
623
|
);
|
|
630
|
-
}
|
|
624
|
+
});
|
|
625
|
+
Slider$1.displayName = "Slider";
|
|
631
626
|
|
|
632
|
-
const Slider = (props) => /* @__PURE__ */ jsxRuntime.jsx(Slider$1, { ...props });
|
|
627
|
+
const Slider = React__namespace.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(Slider$1, { ref, ...props }));
|
|
628
|
+
Slider.displayName = "Slider";
|
|
633
629
|
|
|
634
630
|
exports.Slider = Slider;
|
|
635
631
|
//# sourceMappingURL=Slider.js.map
|