@bigbinary/neeto-atoms 1.0.19 → 1.0.21
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/{Badge-8FkscqDt.js → Badge-Bj3ajrWB.js} +4 -4
- package/dist/Badge-Bj3ajrWB.js.map +1 -0
- package/dist/{Calendar-DDPQHHat.js → Calendar-C4fe-WIS.js} +2 -2
- package/dist/{Calendar-DDPQHHat.js.map → Calendar-C4fe-WIS.js.map} +1 -1
- package/dist/{DatePicker-BNvWbsL-.js → DatePicker-RvdQv1LE.js} +2 -2
- package/dist/{DatePicker-BNvWbsL-.js.map → DatePicker-RvdQv1LE.js.map} +1 -1
- package/dist/{Typography-Bl-NoDAX.js → Typography-ClPJbLjP.js} +8 -8
- package/dist/Typography-ClPJbLjP.js.map +1 -0
- package/dist/{button-B-i8E7ah.js → button-Dn5ffsMK.js} +2 -2
- package/dist/button-Dn5ffsMK.js.map +1 -0
- package/dist/cjs/{Badge-STBHzYLs.js → Badge-_-PRf6aq.js} +4 -4
- package/dist/cjs/Badge-_-PRf6aq.js.map +1 -0
- package/dist/cjs/{Calendar-BS-238p2.js → Calendar-RRA-wKOF.js} +2 -2
- package/dist/cjs/{Calendar-BS-238p2.js.map → Calendar-RRA-wKOF.js.map} +1 -1
- package/dist/cjs/{DatePicker-CHulgN0u.js → DatePicker-CA113xZV.js} +2 -2
- package/dist/cjs/{DatePicker-CHulgN0u.js.map → DatePicker-CA113xZV.js.map} +1 -1
- package/dist/cjs/{Typography-CxDOxAG_.js → Typography-DaZ0HTha.js} +8 -8
- package/dist/cjs/Typography-DaZ0HTha.js.map +1 -0
- package/dist/cjs/{button-qIa_cyuE.js → button-CKlGvVqQ.js} +2 -2
- package/dist/cjs/button-CKlGvVqQ.js.map +1 -0
- package/dist/cjs/components/Alert.js +2 -2
- package/dist/cjs/components/Badge.js +1 -1
- package/dist/cjs/components/Button.js +1 -1
- package/dist/cjs/components/ColorPicker.js +1 -1
- package/dist/cjs/components/DataTable.js +1 -1
- package/dist/cjs/components/DatePicker.js +3 -3
- package/dist/cjs/components/Dialog.js +2 -2
- package/dist/cjs/components/DropdownMenu.js +1 -1
- package/dist/cjs/components/Empty.js +1 -1
- package/dist/cjs/components/Input.js +2 -2
- package/dist/cjs/components/Label.js +1 -1
- package/dist/cjs/components/Pagination.js +1 -1
- package/dist/cjs/components/Select.js +2 -2
- package/dist/cjs/components/Sheet.js +2 -2
- package/dist/cjs/components/TimePicker.js +1 -1
- package/dist/cjs/components/Typography.js +1 -1
- package/dist/cjs/components/index.js +8 -8
- package/dist/cjs/{dialog-_vQkEf7V.js → dialog-gFvX2Ajp.js} +2 -2
- package/dist/cjs/{dialog-_vQkEf7V.js.map → dialog-gFvX2Ajp.js.map} +1 -1
- package/dist/cjs/formik/ActionBlock.js +1 -1
- package/dist/cjs/formik/BlockNavigation.js +2 -2
- package/dist/cjs/formik/Button.js +1 -1
- package/dist/cjs/formik/Input.js +2 -2
- package/dist/cjs/formik/Select.js +5 -4
- package/dist/cjs/formik/Select.js.map +1 -1
- package/dist/cjs/formik/index.js +3 -3
- package/dist/cjs/index.js +8 -8
- package/dist/cjs/{input-group-D5SIEAeN.js → input-group-DRgJde06.js} +2 -2
- package/dist/cjs/{input-group-D5SIEAeN.js.map → input-group-DRgJde06.js.map} +1 -1
- package/dist/cjs/primitives/AlertDialog.js +1 -1
- package/dist/cjs/primitives/Badge.js +7 -2
- package/dist/cjs/primitives/Badge.js.map +1 -1
- package/dist/cjs/primitives/Button.js +1 -1
- package/dist/cjs/primitives/Calendar.js +2 -2
- package/dist/cjs/primitives/Carousel.js +1 -1
- package/dist/cjs/primitives/Combobox.js +2 -2
- package/dist/cjs/primitives/Command.js +3 -3
- package/dist/cjs/primitives/Dialog.js +2 -2
- package/dist/cjs/primitives/InputGroup.js +2 -2
- package/dist/cjs/primitives/Pagination.js +1 -1
- package/dist/cjs/primitives/Sheet.js +2 -2
- package/dist/cjs/primitives/Sidebar.js +2 -2
- package/dist/cjs/primitives/index.js +5 -5
- package/dist/cjs/{sheet-B4hSZKZT.js → sheet-DKAYuObu.js} +2 -2
- package/dist/cjs/{sheet-B4hSZKZT.js.map → sheet-DKAYuObu.js.map} +1 -1
- package/dist/components/Alert.js +2 -2
- package/dist/components/Badge/Badge.d.ts +3 -0
- package/dist/components/Badge.js +1 -1
- package/dist/components/Button.js +1 -1
- package/dist/components/ColorPicker.js +1 -1
- package/dist/components/DataTable.js +1 -1
- package/dist/components/DatePicker.js +3 -3
- package/dist/components/Dialog.js +2 -2
- package/dist/components/DropdownMenu.js +1 -1
- package/dist/components/Empty.js +1 -1
- package/dist/components/Input.js +2 -2
- package/dist/components/Label.js +1 -1
- package/dist/components/Pagination.js +1 -1
- package/dist/components/Select.js +2 -2
- package/dist/components/Sheet.js +2 -2
- package/dist/components/TimePicker.js +1 -1
- package/dist/components/Typography.js +1 -1
- package/dist/components/index.js +8 -8
- package/dist/{dialog-C1w8dWE1.js → dialog-BkQ_IcCo.js} +2 -2
- package/dist/{dialog-C1w8dWE1.js.map → dialog-BkQ_IcCo.js.map} +1 -1
- package/dist/formik/ActionBlock.js +1 -1
- package/dist/formik/BlockNavigation.js +2 -2
- package/dist/formik/Button.js +1 -1
- package/dist/formik/Input.js +2 -2
- package/dist/formik/Select.js +5 -4
- package/dist/formik/Select.js.map +1 -1
- package/dist/formik/index.js +3 -3
- package/dist/index.js +8 -8
- package/dist/{input-group-Dve5dexp.js → input-group-DxqtSMEV.js} +2 -2
- package/dist/{input-group-Dve5dexp.js.map → input-group-DxqtSMEV.js.map} +1 -1
- package/dist/primitives/AlertDialog.js +1 -1
- package/dist/primitives/Badge.d.ts +4 -1
- package/dist/primitives/Badge.js +7 -2
- package/dist/primitives/Badge.js.map +1 -1
- package/dist/primitives/Button.js +2 -2
- package/dist/primitives/Calendar.js +2 -2
- package/dist/primitives/Carousel.js +1 -1
- package/dist/primitives/Combobox.js +2 -2
- package/dist/primitives/Command.js +3 -3
- package/dist/primitives/Dialog.js +2 -2
- package/dist/primitives/InputGroup.js +2 -2
- package/dist/primitives/Pagination.js +1 -1
- package/dist/primitives/Sheet.js +2 -2
- package/dist/primitives/Sidebar.js +2 -2
- package/dist/primitives/index.js +5 -5
- package/dist/{sheet-CViv_QTx.js → sheet-DMzfkVV_.js} +2 -2
- package/dist/{sheet-CViv_QTx.js.map → sheet-DMzfkVV_.js.map} +1 -1
- package/package.json +1 -1
- package/dist/Badge-8FkscqDt.js.map +0 -1
- package/dist/Typography-Bl-NoDAX.js.map +0 -1
- package/dist/button-B-i8E7ah.js.map +0 -1
- package/dist/cjs/Badge-STBHzYLs.js.map +0 -1
- package/dist/cjs/Typography-CxDOxAG_.js.map +0 -1
- package/dist/cjs/button-qIa_cyuE.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { useTranslation } from 'react-i18next';
|
|
3
3
|
import { c as cn } from './utils-DdHUxIdC.js';
|
|
4
|
-
import { B as Button } from './button-
|
|
4
|
+
import { B as Button } from './button-Dn5ffsMK.js';
|
|
5
5
|
import { X } from './x-_o2T3n6D.js';
|
|
6
6
|
import { R as Root, P as Portal, O as Overlay, T as Title, D as Description, a as Close, b as Trigger, C as Content } from './index-9HvIbmnI.js';
|
|
7
7
|
|
|
@@ -38,4 +38,4 @@ function DialogDescription({ className, ...props }) {
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
export { Dialog as D, DialogPortal as a, DialogOverlay as b, DialogHeader as c, DialogTitle as d, DialogDescription as e, DialogFooter as f, DialogClose as g, DialogTrigger as h, DialogContent as i };
|
|
41
|
-
//# sourceMappingURL=dialog-
|
|
41
|
+
//# sourceMappingURL=dialog-BkQ_IcCo.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog-
|
|
1
|
+
{"version":3,"file":"dialog-BkQ_IcCo.js","sources":["../src/shadcn/components/dialog.tsx"],"sourcesContent":["import * as React from \"react\"\nimport { Dialog as DialogPrimitive } from \"radix-ui\"\nimport { useTranslation } from \"react-i18next\"\n\nimport { cn } from \"src/shadcn/lib/utils\"\nimport { Button } from \"src/shadcn/components/button\"\nimport { XIcon } from \"lucide-react\"\n\nfunction Dialog({\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Root>) {\n return <DialogPrimitive.Root data-slot=\"dialog\" {...props} />\n}\n\nfunction DialogTrigger({\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Trigger>) {\n return <DialogPrimitive.Trigger data-slot=\"dialog-trigger\" {...props} />\n}\n\nfunction DialogPortal({\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Portal>) {\n return <DialogPrimitive.Portal data-slot=\"dialog-portal\" {...props} />\n}\n\nfunction DialogClose({\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Close>) {\n return <DialogPrimitive.Close data-slot=\"dialog-close\" {...props} />\n}\n\nfunction DialogOverlay({\n className,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Overlay>) {\n return (\n <DialogPrimitive.Overlay\n data-slot=\"dialog-overlay\"\n className={cn(\n \"fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction DialogContent({\n className,\n children,\n showCloseButton = true,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Content> & {\n showCloseButton?: boolean\n}) {\n const { t } = useTranslation()\n\n return (\n <DialogPortal>\n <DialogOverlay />\n <DialogPrimitive.Content\n data-slot=\"dialog-content\"\n className={cn(\n \"fixed top-1/2 start-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 rtl:translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95\",\n className\n )}\n {...props}\n >\n {children}\n {showCloseButton && (\n <DialogPrimitive.Close data-slot=\"dialog-close\" asChild>\n <Button\n variant=\"ghost\"\n className=\"absolute top-2 end-2\"\n size=\"icon-sm\"\n >\n <XIcon\n />\n <span className=\"sr-only\">{t(\"neetoatoms.dialog.close\", \"Close\")}</span>\n </Button>\n </DialogPrimitive.Close>\n )}\n </DialogPrimitive.Content>\n </DialogPortal>\n )\n}\n\nfunction DialogHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"dialog-header\"\n className={cn(\"flex flex-col gap-2\", className)}\n {...props}\n />\n )\n}\n\nfunction DialogFooter({\n className,\n showCloseButton = false,\n children,\n ...props\n}: React.ComponentProps<\"div\"> & {\n showCloseButton?: boolean\n}) {\n return (\n <div\n data-slot=\"dialog-footer\"\n className={cn(\n \"-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end\",\n className\n )}\n {...props}\n >\n {children}\n {showCloseButton && (\n <DialogPrimitive.Close asChild>\n <Button variant=\"outline\">Close</Button>\n </DialogPrimitive.Close>\n )}\n </div>\n )\n}\n\nfunction DialogTitle({\n className,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Title>) {\n return (\n <DialogPrimitive.Title\n data-slot=\"dialog-title\"\n className={cn(\n \"text-base leading-none font-medium\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction DialogDescription({\n className,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Description>) {\n return (\n <DialogPrimitive.Description\n data-slot=\"dialog-description\"\n className={cn(\n \"text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground\",\n className\n )}\n {...props}\n />\n )\n}\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n}\n"],"names":["_jsx","DialogPrimitive.Root","DialogPrimitive.Trigger","DialogPrimitive.Portal","DialogPrimitive.Close","DialogPrimitive.Overlay","_jsxs","DialogPrimitive.Content","XIcon","DialogPrimitive.Title","DialogPrimitive.Description"],"mappings":"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"}
|
|
@@ -6,7 +6,7 @@ import { c as cn } from '../utils-DdHUxIdC.js';
|
|
|
6
6
|
import { FormikButton } from './Button.js';
|
|
7
7
|
import '../renderIcon-tlvMyboj.js';
|
|
8
8
|
import '../primitives/Button.js';
|
|
9
|
-
import '../button-
|
|
9
|
+
import '../button-Dn5ffsMK.js';
|
|
10
10
|
import '../index-D7Zy7P05.js';
|
|
11
11
|
import '../index-CfriMyrd.js';
|
|
12
12
|
import '../index-BtkPdosV.js';
|
|
@@ -7,7 +7,7 @@ import { D as Dialog } from '../Dialog-B2dcw0Zz.js';
|
|
|
7
7
|
import '../utils-DdHUxIdC.js';
|
|
8
8
|
import '../renderIcon-tlvMyboj.js';
|
|
9
9
|
import '../primitives/Button.js';
|
|
10
|
-
import '../button-
|
|
10
|
+
import '../button-Dn5ffsMK.js';
|
|
11
11
|
import '../index-D7Zy7P05.js';
|
|
12
12
|
import '../index-CfriMyrd.js';
|
|
13
13
|
import '../index-BtkPdosV.js';
|
|
@@ -33,7 +33,7 @@ import '../index-yFgkK_AM.js';
|
|
|
33
33
|
import '../index-Cor698lu.js';
|
|
34
34
|
import '../index-CSggBaQF.js';
|
|
35
35
|
import '../primitives/Dialog.js';
|
|
36
|
-
import '../dialog-
|
|
36
|
+
import '../dialog-BkQ_IcCo.js';
|
|
37
37
|
import '../x-_o2T3n6D.js';
|
|
38
38
|
import '../index-9HvIbmnI.js';
|
|
39
39
|
import '../index-B4_fVWDx.js';
|
package/dist/formik/Button.js
CHANGED
|
@@ -6,7 +6,7 @@ import { B as Button } from '../Button-Q7MPG6ph.js';
|
|
|
6
6
|
import '../utils-DdHUxIdC.js';
|
|
7
7
|
import '../renderIcon-tlvMyboj.js';
|
|
8
8
|
import '../primitives/Button.js';
|
|
9
|
-
import '../button-
|
|
9
|
+
import '../button-Dn5ffsMK.js';
|
|
10
10
|
import '../index-D7Zy7P05.js';
|
|
11
11
|
import '../index-CfriMyrd.js';
|
|
12
12
|
import '../index-BtkPdosV.js';
|
package/dist/formik/Input.js
CHANGED
|
@@ -12,8 +12,8 @@ import 'react-dom';
|
|
|
12
12
|
import '../index-BtkPdosV.js';
|
|
13
13
|
import '../separator-BbhgePmX.js';
|
|
14
14
|
import '../primitives/InputGroup.js';
|
|
15
|
-
import '../input-group-
|
|
16
|
-
import '../button-
|
|
15
|
+
import '../input-group-DxqtSMEV.js';
|
|
16
|
+
import '../button-Dn5ffsMK.js';
|
|
17
17
|
import '../index-CfriMyrd.js';
|
|
18
18
|
import '../input-GLCCE2kT.js';
|
|
19
19
|
import '../textarea-BSZwxzjQ.js';
|
package/dist/formik/Select.js
CHANGED
|
@@ -13,9 +13,9 @@ import 'react-dom';
|
|
|
13
13
|
import '../index-BtkPdosV.js';
|
|
14
14
|
import '../separator-BbhgePmX.js';
|
|
15
15
|
import '../primitives/Combobox.js';
|
|
16
|
-
import '../button-
|
|
16
|
+
import '../button-Dn5ffsMK.js';
|
|
17
17
|
import '../index-CfriMyrd.js';
|
|
18
|
-
import '../input-group-
|
|
18
|
+
import '../input-group-DxqtSMEV.js';
|
|
19
19
|
import '../input-GLCCE2kT.js';
|
|
20
20
|
import '../textarea-BSZwxzjQ.js';
|
|
21
21
|
import '../check-Cpkv29p1.js';
|
|
@@ -31,7 +31,7 @@ import 'react-i18next';
|
|
|
31
31
|
import '../loader-circle-DycHUAWN.js';
|
|
32
32
|
|
|
33
33
|
const FormikSelect = forwardRef((props, ref) => {
|
|
34
|
-
const { name, onOpenChange, onChange:
|
|
34
|
+
const { name, onOpenChange, onChange: onChangeProp, ...otherProps } = props;
|
|
35
35
|
const [field, meta, { setValue, setTouched }] = useField(name);
|
|
36
36
|
const { status = {}, setStatus } = useFormikContext();
|
|
37
37
|
const fieldStatus = getIn(status, name);
|
|
@@ -43,12 +43,13 @@ const FormikSelect = forwardRef((props, ref) => {
|
|
|
43
43
|
value: field.value,
|
|
44
44
|
onOpenChange: (open) => {
|
|
45
45
|
if (!open)
|
|
46
|
-
setTouched(true);
|
|
46
|
+
setTouched(true, false);
|
|
47
47
|
onOpenChange?.(open);
|
|
48
48
|
},
|
|
49
49
|
onChange: (value) => {
|
|
50
50
|
setStatus(dissoc(name, status));
|
|
51
51
|
setValue(value);
|
|
52
|
+
onChangeProp?.(value);
|
|
52
53
|
},
|
|
53
54
|
};
|
|
54
55
|
return jsx(Select, { ...selectProps });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.js","sources":["../../src/formik/Select.tsx"],"sourcesContent":["import { forwardRef } from \"react\";\n\nimport { useField, useFormikContext, getIn } from \"formik\";\nimport { dissoc } from \"ramda\";\n\nimport { Select, SelectProps } from \"src/components/Select\";\n\nexport type FormikSelectProps = SelectProps & {\n /** Formik field name. */\n name: string;\n};\n\nconst FormikSelect = forwardRef<HTMLInputElement, FormikSelectProps>(\n (props, ref) => {\n const { name, onOpenChange, onChange:
|
|
1
|
+
{"version":3,"file":"Select.js","sources":["../../src/formik/Select.tsx"],"sourcesContent":["import { forwardRef } from \"react\";\n\nimport { useField, useFormikContext, getIn } from \"formik\";\nimport { dissoc } from \"ramda\";\n\nimport { Select, SelectProps } from \"src/components/Select\";\n\nexport type FormikSelectProps = SelectProps & {\n /** Formik field name. */\n name: string;\n};\n\nconst FormikSelect = forwardRef<HTMLInputElement, FormikSelectProps>(\n (props, ref) => {\n const { name, onOpenChange, onChange: onChangeProp, ...otherProps } = props;\n const [field, meta, { setValue, setTouched }] = useField(name);\n const { status = {}, setStatus } = useFormikContext();\n const fieldStatus = getIn(status, name);\n\n const selectProps = {\n ...otherProps,\n ref,\n error: meta.touched ? meta.error || fieldStatus : \"\",\n name: field.name,\n value: field.value,\n onOpenChange: (open: boolean) => {\n if (!open) setTouched(true, false);\n onOpenChange?.(open);\n },\n onChange: (value: unknown) => {\n setStatus(dissoc(name, status));\n setValue(value);\n (onChangeProp as ((v: unknown) => void) | undefined)?.(value);\n },\n };\n\n return <Select {...(selectProps as SelectProps)} />;\n }\n);\n\nFormikSelect.displayName = \"FormikSelect\";\n\nexport { FormikSelect };\n"],"names":["_jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYA,MAAM,YAAY,GAAG,UAAU,CAC7B,CAAC,KAAK,EAAE,GAAG,KAAI;AACb,IAAA,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,YAAY,EAAE,GAAG,UAAU,EAAE,GAAG,KAAK;AAC3E,IAAA,MAAM,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC;IAC9D,MAAM,EAAE,MAAM,GAAG,EAAE,EAAE,SAAS,EAAE,GAAG,gBAAgB,EAAE;IACrD,MAAM,WAAW,GAAG,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC;AAEvC,IAAA,MAAM,WAAW,GAAG;AAClB,QAAA,GAAG,UAAU;QACb,GAAG;AACH,QAAA,KAAK,EAAE,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,KAAK,IAAI,WAAW,GAAG,EAAE;QACpD,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,KAAK,EAAE,KAAK,CAAC,KAAK;AAClB,QAAA,YAAY,EAAE,CAAC,IAAa,KAAI;AAC9B,YAAA,IAAI,CAAC,IAAI;AAAE,gBAAA,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC;AAClC,YAAA,YAAY,GAAG,IAAI,CAAC;QACtB,CAAC;AACD,QAAA,QAAQ,EAAE,CAAC,KAAc,KAAI;YAC3B,SAAS,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;YAC/B,QAAQ,CAAC,KAAK,CAAC;AACd,YAAA,YAAmD,GAAG,KAAK,CAAC;QAC/D,CAAC;KACF;AAED,IAAA,OAAOA,GAAA,CAAC,MAAM,EAAA,EAAA,GAAM,WAA2B,GAAI;AACrD,CAAC;AAGH,YAAY,CAAC,WAAW,GAAG,cAAc;;;;"}
|
package/dist/formik/index.js
CHANGED
|
@@ -25,8 +25,8 @@ import 'react-dom';
|
|
|
25
25
|
import '../index-BtkPdosV.js';
|
|
26
26
|
import '../separator-BbhgePmX.js';
|
|
27
27
|
import '../primitives/InputGroup.js';
|
|
28
|
-
import '../input-group-
|
|
29
|
-
import '../button-
|
|
28
|
+
import '../input-group-DxqtSMEV.js';
|
|
29
|
+
import '../button-Dn5ffsMK.js';
|
|
30
30
|
import '../index-CfriMyrd.js';
|
|
31
31
|
import '../input-GLCCE2kT.js';
|
|
32
32
|
import '../textarea-BSZwxzjQ.js';
|
|
@@ -87,6 +87,6 @@ import '../index-CSggBaQF.js';
|
|
|
87
87
|
import 'react-router-dom';
|
|
88
88
|
import '../Dialog-B2dcw0Zz.js';
|
|
89
89
|
import '../primitives/Dialog.js';
|
|
90
|
-
import '../dialog-
|
|
90
|
+
import '../dialog-BkQ_IcCo.js';
|
|
91
91
|
import '../index-9HvIbmnI.js';
|
|
92
92
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export { A as Accordion } from './Accordion-Ch9S_qd3.js';
|
|
2
2
|
export { A as Alert } from './Alert-D_FV8xxo.js';
|
|
3
3
|
export { A as Avatar } from './Avatar-D5YGlXVF.js';
|
|
4
|
-
export { B as Badge } from './Badge-
|
|
4
|
+
export { B as Badge } from './Badge-Bj3ajrWB.js';
|
|
5
5
|
export { B as Button } from './Button-Q7MPG6ph.js';
|
|
6
6
|
export { C as Callout } from './Callout-B0w4GQtx.js';
|
|
7
7
|
export { C as Checkbox } from './Checkbox-zCxgcZiC.js';
|
|
8
8
|
export { C as ColorPicker } from './ColorPicker-DtOvy0Gy.js';
|
|
9
|
-
export { D as DatePicker } from './DatePicker-
|
|
9
|
+
export { D as DatePicker } from './DatePicker-RvdQv1LE.js';
|
|
10
10
|
export { T as TimePicker } from './TimePicker-C4x62jI1.js';
|
|
11
11
|
import './TimePickerPanel-CiF0RExY.js';
|
|
12
12
|
import pureDayjs from 'dayjs';
|
|
@@ -37,7 +37,7 @@ export { S as Switch } from './Switch-B83TGxJ_.js';
|
|
|
37
37
|
export { T as Tabs } from './Tabs-DWfKnl3S.js';
|
|
38
38
|
export { T as Textarea } from './Textarea-C0z50h0N.js';
|
|
39
39
|
export { T as Tooltip } from './Tooltip-3ZzQyaDV.js';
|
|
40
|
-
export { T as Typography, t as typographyVariants } from './Typography-
|
|
40
|
+
export { T as Typography, t as typographyVariants } from './Typography-ClPJbLjP.js';
|
|
41
41
|
export { D as DataTable, u as useColumnOrdering, a as useColumnPinning, b as useColumnVisibility, c as useTablePagination, d as useTableSelection, e as useTableSort } from './DataTable-DWR9gX9d.js';
|
|
42
42
|
export { T as Tree } from './Tree-C7r10UY5.js';
|
|
43
43
|
export { T as TreeSelect } from './TreeSelect-BxsQrdjf.js';
|
|
@@ -63,10 +63,10 @@ import './index-zW4GjM5L.js';
|
|
|
63
63
|
import './index-d0BBQf5t.js';
|
|
64
64
|
import 'react-i18next';
|
|
65
65
|
import './primitives/Dialog.js';
|
|
66
|
-
import './button-
|
|
66
|
+
import './button-Dn5ffsMK.js';
|
|
67
67
|
import './index-D7Zy7P05.js';
|
|
68
68
|
import './index-CfriMyrd.js';
|
|
69
|
-
import './dialog-
|
|
69
|
+
import './dialog-BkQ_IcCo.js';
|
|
70
70
|
import './x-_o2T3n6D.js';
|
|
71
71
|
import './index-9HvIbmnI.js';
|
|
72
72
|
import './index-BNPynZWM.js';
|
|
@@ -97,7 +97,7 @@ import './label-B4qDF3W1.js';
|
|
|
97
97
|
import './separator-BbhgePmX.js';
|
|
98
98
|
import 'react-colorful';
|
|
99
99
|
import './primitives/Popover.js';
|
|
100
|
-
import './Calendar-
|
|
100
|
+
import './Calendar-C4fe-WIS.js';
|
|
101
101
|
import './chevron-left-BDoT8E2-.js';
|
|
102
102
|
import './chevron-right-DQnrO-ek.js';
|
|
103
103
|
import './primitives/ScrollArea.js';
|
|
@@ -109,7 +109,7 @@ import './index-DT56XkyA.js';
|
|
|
109
109
|
import './primitives/ButtonGroup.js';
|
|
110
110
|
import './primitives/Empty.js';
|
|
111
111
|
import './primitives/InputGroup.js';
|
|
112
|
-
import './input-group-
|
|
112
|
+
import './input-group-DxqtSMEV.js';
|
|
113
113
|
import './input-GLCCE2kT.js';
|
|
114
114
|
import './textarea-BSZwxzjQ.js';
|
|
115
115
|
import './primitives/Kbd.js';
|
|
@@ -121,7 +121,7 @@ import './SelectFieldWrapper-BJzq9aCY.js';
|
|
|
121
121
|
import './primitives/Combobox.js';
|
|
122
122
|
import './with-selector-Dv0G_V_o.js';
|
|
123
123
|
import './primitives/Sheet.js';
|
|
124
|
-
import './sheet-
|
|
124
|
+
import './sheet-DMzfkVV_.js';
|
|
125
125
|
import './primitives/HoverCard.js';
|
|
126
126
|
import './primitives/Progress.js';
|
|
127
127
|
import './primitives/Slider.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { c as cva } from './index-D7Zy7P05.js';
|
|
3
3
|
import { c as cn } from './utils-DdHUxIdC.js';
|
|
4
|
-
import { B as Button } from './button-
|
|
4
|
+
import { B as Button } from './button-Dn5ffsMK.js';
|
|
5
5
|
import { I as Input } from './input-GLCCE2kT.js';
|
|
6
6
|
import { T as Textarea } from './textarea-BSZwxzjQ.js';
|
|
7
7
|
|
|
@@ -56,4 +56,4 @@ function InputGroupTextarea({ className, ...props }) {
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
export { InputGroup as I, InputGroupAddon as a, InputGroupText as b, InputGroupInput as c, InputGroupButton as d, InputGroupTextarea as e };
|
|
59
|
-
//# sourceMappingURL=input-group-
|
|
59
|
+
//# sourceMappingURL=input-group-DxqtSMEV.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-group-
|
|
1
|
+
{"version":3,"file":"input-group-DxqtSMEV.js","sources":["../src/shadcn/components/input-group.tsx"],"sourcesContent":["import * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"src/shadcn/lib/utils\"\nimport { Button } from \"src/shadcn/components/button\"\nimport { Input } from \"src/shadcn/components/input\"\nimport { Textarea } from \"src/shadcn/components/textarea\"\n\nfunction InputGroup({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"input-group\"\n role=\"group\"\n className={cn(\n \"group/input-group relative flex h-8 w-full min-w-0 items-center rounded-lg border border-input transition-colors outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:bg-input/50 has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-disabled:bg-input/80 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pe-1.5 has-[>[data-align=inline-start]]:[&>input]:ps-1.5\",\n className\n )}\n {...props}\n />\n )\n}\n\nconst inputGroupAddonVariants = cva(\n \"flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4\",\n {\n variants: {\n align: {\n \"inline-start\":\n \"order-first ps-2 has-[>button]:ms-[-0.3rem] has-[>kbd]:ms-[-0.15rem]\",\n \"inline-end\":\n \"order-last pe-2 has-[>button]:me-[-0.3rem] has-[>kbd]:me-[-0.15rem]\",\n \"block-start\":\n \"order-first w-full justify-start px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2\",\n \"block-end\":\n \"order-last w-full justify-start px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2\",\n },\n },\n defaultVariants: {\n align: \"inline-start\",\n },\n }\n)\n\nfunction InputGroupAddon({\n className,\n align = \"inline-start\",\n ...props\n}: React.ComponentProps<\"div\"> & VariantProps<typeof inputGroupAddonVariants>) {\n return (\n <div\n role=\"group\"\n data-slot=\"input-group-addon\"\n data-align={align}\n className={cn(inputGroupAddonVariants({ align }), className)}\n onClick={(e) => {\n if ((e.target as HTMLElement).closest(\"button\")) {\n return\n }\n e.currentTarget.parentElement?.querySelector(\"input\")?.focus()\n }}\n {...props}\n />\n )\n}\n\nconst inputGroupButtonVariants = cva(\n \"flex items-center gap-2 text-sm shadow-none\",\n {\n variants: {\n size: {\n xs: \"h-6 gap-1 rounded-[calc(var(--radius)-3px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5\",\n sm: \"\",\n \"icon-xs\":\n \"size-6 rounded-[calc(var(--radius)-3px)] p-0 has-[>svg]:p-0\",\n \"icon-sm\": \"size-8 p-0 has-[>svg]:p-0\",\n },\n },\n defaultVariants: {\n size: \"xs\",\n },\n }\n)\n\nfunction InputGroupButton({\n className,\n type = \"button\",\n variant = \"ghost\",\n size = \"xs\",\n ...props\n}: Omit<React.ComponentProps<typeof Button>, \"size\"> &\n VariantProps<typeof inputGroupButtonVariants>) {\n return (\n <Button\n type={type}\n data-size={size}\n variant={variant}\n className={cn(inputGroupButtonVariants({ size }), className)}\n {...props}\n />\n )\n}\n\nfunction InputGroupText({ className, ...props }: React.ComponentProps<\"span\">) {\n return (\n <span\n className={cn(\n \"flex items-center gap-2 text-sm text-muted-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction InputGroupInput({\n className,\n ...props\n}: React.ComponentProps<\"input\">) {\n return (\n <Input\n data-slot=\"input-group-control\"\n className={cn(\n \"flex-1 rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction InputGroupTextarea({\n className,\n ...props\n}: React.ComponentProps<\"textarea\">) {\n return (\n <Textarea\n data-slot=\"input-group-control\"\n className={cn(\n \"flex-1 resize-none rounded-none border-0 bg-transparent py-2 shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent\",\n className\n )}\n {...props}\n />\n )\n}\n\nexport {\n InputGroup,\n InputGroupAddon,\n InputGroupButton,\n InputGroupText,\n InputGroupInput,\n InputGroupTextarea,\n}\n"],"names":["_jsx"],"mappings":"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"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { c as cn } from '../utils-DdHUxIdC.js';
|
|
3
|
-
import { B as Button } from '../button-
|
|
3
|
+
import { B as Button } from '../button-Dn5ffsMK.js';
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { c as createContextScope } from '../index-CiyxEyB0.js';
|
|
6
6
|
import { u as useComposedRefs } from '../index-BtkPdosV.js';
|
|
@@ -4,12 +4,15 @@ import { Badge as ShadcnBadge } from "src/shadcn/components/badge";
|
|
|
4
4
|
declare const extendedBadgeVariants: (props?: ({
|
|
5
5
|
variant?: "link" | "default" | "outline" | "secondary" | "ghost" | "destructive" | "gray" | "gray-subtle" | "blue" | "blue-subtle" | "purple" | "purple-subtle" | "amber" | "amber-subtle" | "red" | "red-subtle" | "pink" | "pink-subtle" | "green" | "green-subtle" | "teal" | "teal-subtle" | null | undefined;
|
|
6
6
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
7
|
+
shape?: "pill" | "rounded" | null | undefined;
|
|
7
8
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
9
|
type ExtendedBadgeVariant = NonNullable<VariantProps<typeof extendedBadgeVariants>["variant"]>;
|
|
9
10
|
type ExtendedBadgeSize = NonNullable<VariantProps<typeof extendedBadgeVariants>["size"]>;
|
|
11
|
+
type ExtendedBadgeShape = NonNullable<VariantProps<typeof extendedBadgeVariants>["shape"]>;
|
|
10
12
|
interface BadgePrimitiveProps extends Omit<React.ComponentProps<typeof ShadcnBadge>, "variant"> {
|
|
11
13
|
variant?: ExtendedBadgeVariant;
|
|
12
14
|
size?: ExtendedBadgeSize;
|
|
15
|
+
shape?: ExtendedBadgeShape;
|
|
13
16
|
}
|
|
14
|
-
declare const Badge: ({ variant, size, className, ...props }: BadgePrimitiveProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
declare const Badge: ({ variant, size, shape, className, ...props }: BadgePrimitiveProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
18
|
export { Badge, extendedBadgeVariants as badgeVariants };
|
package/dist/primitives/Badge.js
CHANGED
|
@@ -58,10 +58,15 @@ const extendedBadgeVariants = cva("", {
|
|
|
58
58
|
default: "",
|
|
59
59
|
lg: "h-6 px-3 py-0.5 text-sm gap-1.5 [&>svg]:size-4!",
|
|
60
60
|
},
|
|
61
|
+
shape: {
|
|
62
|
+
pill: "",
|
|
63
|
+
rounded: "rounded",
|
|
64
|
+
},
|
|
61
65
|
},
|
|
62
66
|
defaultVariants: {
|
|
63
67
|
variant: "default",
|
|
64
68
|
size: "default",
|
|
69
|
+
shape: "pill",
|
|
65
70
|
},
|
|
66
71
|
});
|
|
67
72
|
// Semantic variants that map to shadcn's built-in variants
|
|
@@ -73,10 +78,10 @@ const SHADCN_VARIANTS = new Set([
|
|
|
73
78
|
"ghost",
|
|
74
79
|
"link",
|
|
75
80
|
]);
|
|
76
|
-
const Badge = ({ variant = "default", size = "default", className, ...props }) => {
|
|
81
|
+
const Badge = ({ variant = "default", size = "default", shape = "pill", className, ...props }) => {
|
|
77
82
|
// Pass semantic variants to shadcn, color variants override via className
|
|
78
83
|
const shadcnVariant = SHADCN_VARIANTS.has(variant) ? variant : undefined;
|
|
79
|
-
return (jsx(Badge$1, { variant: shadcnVariant, className: cn(extendedBadgeVariants({ variant, size }), className), ...props }));
|
|
84
|
+
return (jsx(Badge$1, { variant: shadcnVariant, className: cn(extendedBadgeVariants({ variant, size, shape }), className), ...props }));
|
|
80
85
|
};
|
|
81
86
|
|
|
82
87
|
export { Badge, extendedBadgeVariants as badgeVariants };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Badge.js","sources":["../../src/shadcn/components/badge.tsx","../../src/primitives/Badge.tsx"],"sourcesContent":["import * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport { Slot } from \"radix-ui\"\n\nimport { cn } from \"src/shadcn/lib/utils\"\n\nconst badgeVariants = cva(\n \"group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pe-1.5 has-data-[icon=inline-start]:ps-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!\",\n {\n variants: {\n variant: {\n default: \"bg-primary text-primary-foreground [a]:hover:bg-primary/80\",\n secondary:\n \"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80\",\n destructive:\n \"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20\",\n outline:\n \"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground\",\n ghost:\n \"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50\",\n link: \"text-primary underline-offset-4 hover:underline\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n }\n)\n\nfunction Badge({\n className,\n variant = \"default\",\n asChild = false,\n ...props\n}: React.ComponentProps<\"span\"> &\n VariantProps<typeof badgeVariants> & { asChild?: boolean }) {\n const Comp = asChild ? Slot.Root : \"span\"\n\n return (\n <Comp\n data-slot=\"badge\"\n data-variant={variant}\n className={cn(badgeVariants({ variant }), className)}\n {...props}\n />\n )\n}\n\nexport { Badge, badgeVariants }\n","import type React from \"react\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport { Badge as ShadcnBadge } from \"src/shadcn/components/badge\";\nimport { cn } from \"src/shadcn/lib/utils\";\n\nconst extendedBadgeVariants = cva(\"\", {\n variants: {\n variant: {\n // --- Semantic (passthrough to shadcn) ---\n default: \"\",\n secondary: \"\",\n destructive: \"\",\n outline: \"\",\n ghost: \"\",\n link: \"\",\n\n // --- Color ---\n gray: \"bg-gray-200 text-gray-800 dark:bg-gray-700 dark:text-gray-100\",\n \"gray-subtle\":\n \"bg-gray-100 text-gray-600 dark:bg-gray-800 dark:text-gray-300\",\n blue: \"bg-blue-600 text-white dark:bg-blue-500\",\n \"blue-subtle\":\n \"bg-blue-50 text-blue-700 dark:bg-blue-950/50 dark:text-blue-300\",\n purple: \"bg-purple-700 text-white dark:bg-purple-600\",\n \"purple-subtle\":\n \"bg-purple-50 text-purple-700 dark:bg-purple-950/50 dark:text-purple-300\",\n amber:\n \"bg-amber-400 text-amber-950 dark:bg-amber-500 dark:text-amber-950\",\n \"amber-subtle\":\n \"bg-amber-50 text-amber-700 dark:bg-amber-950/50 dark:text-amber-300\",\n red: \"bg-red-600 text-white dark:bg-red-500\",\n \"red-subtle\":\n \"bg-red-50 text-red-700 dark:bg-red-950/50 dark:text-red-300\",\n pink: \"bg-pink-600 text-white dark:bg-pink-500\",\n \"pink-subtle\":\n \"bg-pink-50 text-pink-700 dark:bg-pink-950/50 dark:text-pink-300\",\n green: \"bg-green-600 text-white dark:bg-green-500\",\n \"green-subtle\":\n \"bg-green-50 text-green-700 dark:bg-green-950/50 dark:text-green-300\",\n teal: \"bg-teal-600 text-white dark:bg-teal-500\",\n \"teal-subtle\":\n \"bg-teal-50 text-teal-700 dark:bg-teal-950/50 dark:text-teal-300\",\n },\n size: {\n sm: \"h-4 px-1.5 py-0 text-[0.65rem] gap-0.5 [&>svg]:size-2.5!\",\n default: \"\",\n lg: \"h-6 px-3 py-0.5 text-sm gap-1.5 [&>svg]:size-4!\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n});\n\n// Semantic variants that map to shadcn's built-in variants\nconst SHADCN_VARIANTS = new Set([\n \"default\",\n \"secondary\",\n \"destructive\",\n \"outline\",\n \"ghost\",\n \"link\",\n]);\n\ntype ExtendedBadgeVariant = NonNullable<\n VariantProps<typeof extendedBadgeVariants>[\"variant\"]\n>;\ntype ExtendedBadgeSize = NonNullable<\n VariantProps<typeof extendedBadgeVariants>[\"size\"]\n>;\n\ninterface BadgePrimitiveProps extends Omit<\n React.ComponentProps<typeof ShadcnBadge>,\n \"variant\"\n> {\n variant?: ExtendedBadgeVariant;\n size?: ExtendedBadgeSize;\n}\n\nconst Badge = ({\n variant = \"default\",\n size = \"default\",\n className,\n ...props\n}: BadgePrimitiveProps) => {\n // Pass semantic variants to shadcn, color variants override via className\n const shadcnVariant = SHADCN_VARIANTS.has(variant) ? variant : undefined;\n\n return (\n <ShadcnBadge\n variant={\n shadcnVariant as React.ComponentProps<typeof ShadcnBadge>[\"variant\"]\n }\n className={cn(extendedBadgeVariants({ variant, size })
|
|
1
|
+
{"version":3,"file":"Badge.js","sources":["../../src/shadcn/components/badge.tsx","../../src/primitives/Badge.tsx"],"sourcesContent":["import * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport { Slot } from \"radix-ui\"\n\nimport { cn } from \"src/shadcn/lib/utils\"\n\nconst badgeVariants = cva(\n \"group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pe-1.5 has-data-[icon=inline-start]:ps-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!\",\n {\n variants: {\n variant: {\n default: \"bg-primary text-primary-foreground [a]:hover:bg-primary/80\",\n secondary:\n \"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80\",\n destructive:\n \"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20\",\n outline:\n \"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground\",\n ghost:\n \"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50\",\n link: \"text-primary underline-offset-4 hover:underline\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n }\n)\n\nfunction Badge({\n className,\n variant = \"default\",\n asChild = false,\n ...props\n}: React.ComponentProps<\"span\"> &\n VariantProps<typeof badgeVariants> & { asChild?: boolean }) {\n const Comp = asChild ? Slot.Root : \"span\"\n\n return (\n <Comp\n data-slot=\"badge\"\n data-variant={variant}\n className={cn(badgeVariants({ variant }), className)}\n {...props}\n />\n )\n}\n\nexport { Badge, badgeVariants }\n","import type React from \"react\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport { Badge as ShadcnBadge } from \"src/shadcn/components/badge\";\nimport { cn } from \"src/shadcn/lib/utils\";\n\nconst extendedBadgeVariants = cva(\"\", {\n variants: {\n variant: {\n // --- Semantic (passthrough to shadcn) ---\n default: \"\",\n secondary: \"\",\n destructive: \"\",\n outline: \"\",\n ghost: \"\",\n link: \"\",\n\n // --- Color ---\n gray: \"bg-gray-200 text-gray-800 dark:bg-gray-700 dark:text-gray-100\",\n \"gray-subtle\":\n \"bg-gray-100 text-gray-600 dark:bg-gray-800 dark:text-gray-300\",\n blue: \"bg-blue-600 text-white dark:bg-blue-500\",\n \"blue-subtle\":\n \"bg-blue-50 text-blue-700 dark:bg-blue-950/50 dark:text-blue-300\",\n purple: \"bg-purple-700 text-white dark:bg-purple-600\",\n \"purple-subtle\":\n \"bg-purple-50 text-purple-700 dark:bg-purple-950/50 dark:text-purple-300\",\n amber:\n \"bg-amber-400 text-amber-950 dark:bg-amber-500 dark:text-amber-950\",\n \"amber-subtle\":\n \"bg-amber-50 text-amber-700 dark:bg-amber-950/50 dark:text-amber-300\",\n red: \"bg-red-600 text-white dark:bg-red-500\",\n \"red-subtle\":\n \"bg-red-50 text-red-700 dark:bg-red-950/50 dark:text-red-300\",\n pink: \"bg-pink-600 text-white dark:bg-pink-500\",\n \"pink-subtle\":\n \"bg-pink-50 text-pink-700 dark:bg-pink-950/50 dark:text-pink-300\",\n green: \"bg-green-600 text-white dark:bg-green-500\",\n \"green-subtle\":\n \"bg-green-50 text-green-700 dark:bg-green-950/50 dark:text-green-300\",\n teal: \"bg-teal-600 text-white dark:bg-teal-500\",\n \"teal-subtle\":\n \"bg-teal-50 text-teal-700 dark:bg-teal-950/50 dark:text-teal-300\",\n },\n size: {\n sm: \"h-4 px-1.5 py-0 text-[0.65rem] gap-0.5 [&>svg]:size-2.5!\",\n default: \"\",\n lg: \"h-6 px-3 py-0.5 text-sm gap-1.5 [&>svg]:size-4!\",\n },\n shape: {\n pill: \"\",\n rounded: \"rounded\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n shape: \"pill\",\n },\n});\n\n// Semantic variants that map to shadcn's built-in variants\nconst SHADCN_VARIANTS = new Set([\n \"default\",\n \"secondary\",\n \"destructive\",\n \"outline\",\n \"ghost\",\n \"link\",\n]);\n\ntype ExtendedBadgeVariant = NonNullable<\n VariantProps<typeof extendedBadgeVariants>[\"variant\"]\n>;\ntype ExtendedBadgeSize = NonNullable<\n VariantProps<typeof extendedBadgeVariants>[\"size\"]\n>;\ntype ExtendedBadgeShape = NonNullable<\n VariantProps<typeof extendedBadgeVariants>[\"shape\"]\n>;\n\ninterface BadgePrimitiveProps extends Omit<\n React.ComponentProps<typeof ShadcnBadge>,\n \"variant\"\n> {\n variant?: ExtendedBadgeVariant;\n size?: ExtendedBadgeSize;\n shape?: ExtendedBadgeShape;\n}\n\nconst Badge = ({\n variant = \"default\",\n size = \"default\",\n shape = \"pill\",\n className,\n ...props\n}: BadgePrimitiveProps) => {\n // Pass semantic variants to shadcn, color variants override via className\n const shadcnVariant = SHADCN_VARIANTS.has(variant) ? variant : undefined;\n\n return (\n <ShadcnBadge\n variant={\n shadcnVariant as React.ComponentProps<typeof ShadcnBadge>[\"variant\"]\n }\n className={cn(\n extendedBadgeVariants({ variant, size, shape }),\n className\n )}\n {...props}\n />\n );\n};\n\nexport { Badge, extendedBadgeVariants as badgeVariants };\n"],"names":["Badge","Slot.Root","_jsx","ShadcnBadge"],"mappings":"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"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
|
-
import { B as Button$1 } from '../button-
|
|
4
|
-
export { b as buttonVariants } from '../button-
|
|
3
|
+
import { B as Button$1 } from '../button-Dn5ffsMK.js';
|
|
4
|
+
export { b as buttonVariants } from '../button-Dn5ffsMK.js';
|
|
5
5
|
import '../index-D7Zy7P05.js';
|
|
6
6
|
import '../utils-DdHUxIdC.js';
|
|
7
7
|
import '../index-CfriMyrd.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import 'react/jsx-runtime';
|
|
2
|
-
export { C as Calendar, a as CalendarDayButton } from '../Calendar-
|
|
2
|
+
export { C as Calendar, a as CalendarDayButton } from '../Calendar-C4fe-WIS.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '../utils-DdHUxIdC.js';
|
|
5
|
-
import '../button-
|
|
5
|
+
import '../button-Dn5ffsMK.js';
|
|
6
6
|
import '../index-D7Zy7P05.js';
|
|
7
7
|
import '../index-CfriMyrd.js';
|
|
8
8
|
import '../index-BtkPdosV.js';
|
|
@@ -3,7 +3,7 @@ import * as React from 'react';
|
|
|
3
3
|
import { useRef, useState, useCallback, useEffect } from 'react';
|
|
4
4
|
import { useTranslation } from 'react-i18next';
|
|
5
5
|
import { c as cn } from '../utils-DdHUxIdC.js';
|
|
6
|
-
import { B as Button } from '../button-
|
|
6
|
+
import { B as Button } from '../button-Dn5ffsMK.js';
|
|
7
7
|
import { C as ChevronRight } from '../chevron-right-DQnrO-ek.js';
|
|
8
8
|
import { C as ChevronLeft } from '../chevron-left-BDoT8E2-.js';
|
|
9
9
|
import '../index-D7Zy7P05.js';
|
|
@@ -2,8 +2,8 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import React__default, { createElement } from 'react';
|
|
4
4
|
import { c as cn } from '../utils-DdHUxIdC.js';
|
|
5
|
-
import { B as Button } from '../button-
|
|
6
|
-
import { I as InputGroup, c as InputGroupInput, a as InputGroupAddon, d as InputGroupButton } from '../input-group-
|
|
5
|
+
import { B as Button } from '../button-Dn5ffsMK.js';
|
|
6
|
+
import { I as InputGroup, c as InputGroupInput, a as InputGroupAddon, d as InputGroupButton } from '../input-group-DxqtSMEV.js';
|
|
7
7
|
import { C as Check } from '../check-Cpkv29p1.js';
|
|
8
8
|
import { X } from '../x-_o2T3n6D.js';
|
|
9
9
|
import { C as ChevronDown } from '../chevron-down-BNi0ntys.js';
|
|
@@ -6,8 +6,8 @@ import { c as composeRefs } from '../index-BtkPdosV.js';
|
|
|
6
6
|
import { u as useId } from '../index-zW4GjM5L.js';
|
|
7
7
|
import { useTranslation } from 'react-i18next';
|
|
8
8
|
import { c as cn } from '../utils-DdHUxIdC.js';
|
|
9
|
-
import { D as Dialog, c as DialogHeader, d as DialogTitle, e as DialogDescription, i as DialogContent } from '../dialog-
|
|
10
|
-
import { I as InputGroup, a as InputGroupAddon } from '../input-group-
|
|
9
|
+
import { D as Dialog, c as DialogHeader, d as DialogTitle, e as DialogDescription, i as DialogContent } from '../dialog-BkQ_IcCo.js';
|
|
10
|
+
import { I as InputGroup, a as InputGroupAddon } from '../input-group-DxqtSMEV.js';
|
|
11
11
|
import { c as createLucideIcon } from '../createLucideIcon-C8ycilSN.js';
|
|
12
12
|
import { C as Check } from '../check-Cpkv29p1.js';
|
|
13
13
|
import '../index-DNzunGHb.js';
|
|
@@ -20,7 +20,7 @@ import '../index-CSUSJzOJ.js';
|
|
|
20
20
|
import '../index-B4_fVWDx.js';
|
|
21
21
|
import '../index-fV_U4ZJM.js';
|
|
22
22
|
import '../index-yFgkK_AM.js';
|
|
23
|
-
import '../button-
|
|
23
|
+
import '../button-Dn5ffsMK.js';
|
|
24
24
|
import '../index-D7Zy7P05.js';
|
|
25
25
|
import '../index-CfriMyrd.js';
|
|
26
26
|
import '../x-_o2T3n6D.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { c as cn } from '../utils-DdHUxIdC.js';
|
|
3
|
-
import { B as Button } from '../button-
|
|
4
|
-
import { D as Dialog$1, a as DialogPortal$1, b as DialogOverlay$1, c as DialogHeader$1, d as DialogTitle$1, e as DialogDescription$1, f as DialogFooter$1, g as DialogClose$1, h as DialogTrigger$1 } from '../dialog-
|
|
3
|
+
import { B as Button } from '../button-Dn5ffsMK.js';
|
|
4
|
+
import { D as Dialog$1, a as DialogPortal$1, b as DialogOverlay$1, c as DialogHeader$1, d as DialogTitle$1, e as DialogDescription$1, f as DialogFooter$1, g as DialogClose$1, h as DialogTrigger$1 } from '../dialog-BkQ_IcCo.js';
|
|
5
5
|
import { X } from '../x-_o2T3n6D.js';
|
|
6
6
|
import { C as Content, a as Close } from '../index-9HvIbmnI.js';
|
|
7
7
|
import 'react';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { I as InputGroup$1, a as InputGroupAddon$1, b as InputGroupText$1, c as InputGroupInput$1, d as InputGroupButton$1, e as InputGroupTextarea$1 } from '../input-group-
|
|
2
|
+
import { I as InputGroup$1, a as InputGroupAddon$1, b as InputGroupText$1, c as InputGroupInput$1, d as InputGroupButton$1, e as InputGroupTextarea$1 } from '../input-group-DxqtSMEV.js';
|
|
3
3
|
import '../index-D7Zy7P05.js';
|
|
4
4
|
import '../utils-DdHUxIdC.js';
|
|
5
|
-
import '../button-
|
|
5
|
+
import '../button-Dn5ffsMK.js';
|
|
6
6
|
import 'react';
|
|
7
7
|
import '../index-CfriMyrd.js';
|
|
8
8
|
import '../index-BtkPdosV.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { useTranslation } from 'react-i18next';
|
|
3
3
|
import { c as cn } from '../utils-DdHUxIdC.js';
|
|
4
|
-
import { B as Button } from '../button-
|
|
4
|
+
import { B as Button } from '../button-Dn5ffsMK.js';
|
|
5
5
|
import { C as ChevronLeft } from '../chevron-left-BDoT8E2-.js';
|
|
6
6
|
import { E as Ellipsis } from '../ellipsis-lb8Ws6br.js';
|
|
7
7
|
import { C as ChevronRight } from '../chevron-right-DQnrO-ek.js';
|
package/dist/primitives/Sheet.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { c as cn } from '../utils-DdHUxIdC.js';
|
|
3
|
-
import { B as Button } from '../button-
|
|
4
|
-
import { S as SheetHeader$1, a as SheetFooter$1, b as SheetTitle$1, c as SheetDescription$1, d as Sheet$1, e as SheetClose$1, f as SheetTrigger$1 } from '../sheet-
|
|
3
|
+
import { B as Button } from '../button-Dn5ffsMK.js';
|
|
4
|
+
import { S as SheetHeader$1, a as SheetFooter$1, b as SheetTitle$1, c as SheetDescription$1, d as Sheet$1, e as SheetClose$1, f as SheetTrigger$1 } from '../sheet-DMzfkVV_.js';
|
|
5
5
|
import { X } from '../x-_o2T3n6D.js';
|
|
6
6
|
import { P as Portal, O as Overlay, C as Content, a as Close } from '../index-9HvIbmnI.js';
|
|
7
7
|
import 'react';
|
|
@@ -3,10 +3,10 @@ import { c as cn } from '../utils-DdHUxIdC.js';
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { c as cva } from '../index-D7Zy7P05.js';
|
|
5
5
|
import { u as useIsMobile } from '../use-mobile-IRjN_mlT.js';
|
|
6
|
-
import { B as Button } from '../button-
|
|
6
|
+
import { B as Button } from '../button-Dn5ffsMK.js';
|
|
7
7
|
import { I as Input } from '../input-GLCCE2kT.js';
|
|
8
8
|
import { S as Separator } from '../separator-BbhgePmX.js';
|
|
9
|
-
import { d as Sheet, g as SheetContent, S as SheetHeader, b as SheetTitle, c as SheetDescription } from '../sheet-
|
|
9
|
+
import { d as Sheet, g as SheetContent, S as SheetHeader, b as SheetTitle, c as SheetDescription } from '../sheet-DMzfkVV_.js';
|
|
10
10
|
import { S as Skeleton } from '../skeleton-AR83txPr.js';
|
|
11
11
|
import { a as Tooltip, b as TooltipTrigger, c as TooltipContent, T as TooltipProvider } from '../tooltip-XkHLgxlU.js';
|
|
12
12
|
import { useTranslation } from 'react-i18next';
|
package/dist/primitives/index.js
CHANGED
|
@@ -7,7 +7,7 @@ export { Badge, badgeVariants } from './Badge.js';
|
|
|
7
7
|
export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator } from './Breadcrumb.js';
|
|
8
8
|
export { Button } from './Button.js';
|
|
9
9
|
export { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants } from './ButtonGroup.js';
|
|
10
|
-
export { C as Calendar, a as CalendarDayButton } from '../Calendar-
|
|
10
|
+
export { C as Calendar, a as CalendarDayButton } from '../Calendar-C4fe-WIS.js';
|
|
11
11
|
export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from './Card.js';
|
|
12
12
|
export { Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, useCarousel } from './Carousel.js';
|
|
13
13
|
export { ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent } from './Chart.js';
|
|
@@ -52,7 +52,7 @@ export { Textarea } from './Textarea.js';
|
|
|
52
52
|
export { Toggle } from './Toggle.js';
|
|
53
53
|
export { ToggleGroup, ToggleGroupItem } from './ToggleGroup.js';
|
|
54
54
|
export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from './Tooltip.js';
|
|
55
|
-
export { b as buttonVariants } from '../button-
|
|
55
|
+
export { b as buttonVariants } from '../button-Dn5ffsMK.js';
|
|
56
56
|
export { t as toggleVariants } from '../toggle-2k9K8a5c.js';
|
|
57
57
|
import 'react/jsx-runtime';
|
|
58
58
|
import '../utils-DdHUxIdC.js';
|
|
@@ -91,19 +91,19 @@ import '../with-selector-Dv0G_V_o.js';
|
|
|
91
91
|
import '../check-Cpkv29p1.js';
|
|
92
92
|
import '../index-30QpKM0j.js';
|
|
93
93
|
import '../index-BYZaLNq1.js';
|
|
94
|
-
import '../input-group-
|
|
94
|
+
import '../input-group-DxqtSMEV.js';
|
|
95
95
|
import '../input-GLCCE2kT.js';
|
|
96
96
|
import '../textarea-BSZwxzjQ.js';
|
|
97
97
|
import '../x-_o2T3n6D.js';
|
|
98
98
|
import '../floating-ui.react-dom-D8_f_WWh.js';
|
|
99
|
-
import '../dialog-
|
|
99
|
+
import '../dialog-BkQ_IcCo.js';
|
|
100
100
|
import '../index-OI_tWuLx.js';
|
|
101
101
|
import '../index-C3hByjk3.js';
|
|
102
102
|
import '../index-DT56XkyA.js';
|
|
103
103
|
import '../label-B4qDF3W1.js';
|
|
104
104
|
import '../index-CSggBaQF.js';
|
|
105
105
|
import '../index-BfAAoDv6.js';
|
|
106
|
-
import '../sheet-
|
|
106
|
+
import '../sheet-DMzfkVV_.js';
|
|
107
107
|
import '../use-mobile-IRjN_mlT.js';
|
|
108
108
|
import '../skeleton-AR83txPr.js';
|
|
109
109
|
import '../tooltip-XkHLgxlU.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { useTranslation } from 'react-i18next';
|
|
3
3
|
import { c as cn } from './utils-DdHUxIdC.js';
|
|
4
|
-
import { B as Button } from './button-
|
|
4
|
+
import { B as Button } from './button-Dn5ffsMK.js';
|
|
5
5
|
import { X } from './x-_o2T3n6D.js';
|
|
6
6
|
import { T as Title, D as Description, R as Root, a as Close, b as Trigger, C as Content, P as Portal, O as Overlay } from './index-9HvIbmnI.js';
|
|
7
7
|
|
|
@@ -38,4 +38,4 @@ function SheetDescription({ className, ...props }) {
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
export { SheetHeader as S, SheetFooter as a, SheetTitle as b, SheetDescription as c, Sheet as d, SheetClose as e, SheetTrigger as f, SheetContent as g };
|
|
41
|
-
//# sourceMappingURL=sheet-
|
|
41
|
+
//# sourceMappingURL=sheet-DMzfkVV_.js.map
|