@manafishrov/ui 1.2.11 → 1.2.12
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/Theme.js +3 -3
- package/dist/_virtual/calendar-month.js +3 -3
- package/dist/_virtual/check-circle.js +3 -3
- package/dist/_virtual/check.js +3 -3
- package/dist/_virtual/chevron-left.js +3 -3
- package/dist/_virtual/chevron-right.js +3 -3
- package/dist/_virtual/close.js +3 -3
- package/dist/_virtual/error.js +3 -3
- package/dist/_virtual/expand-less.js +3 -3
- package/dist/_virtual/expand-more.js +3 -3
- package/dist/_virtual/info.js +3 -3
- package/dist/_virtual/more-horiz.js +3 -3
- package/dist/_virtual/progress-activity.js +3 -3
- package/dist/_virtual/search.js +3 -3
- package/dist/_virtual/side-navigation.js +3 -3
- package/dist/_virtual/visibility-off.js +3 -3
- package/dist/_virtual/visibility.js +3 -3
- package/dist/_virtual/warning.js +3 -3
- package/dist/components/Accordion.js +3 -3
- package/dist/components/AlertDialog.js +5 -5
- package/dist/components/AspectRatio.js +3 -3
- package/dist/components/Avatar.js +5 -5
- package/dist/components/Badge.js +3 -3
- package/dist/components/Breadcrumb.js +8 -8
- package/dist/components/Button.js +5 -5
- package/dist/components/Card.js +9 -9
- package/dist/components/Carousel.js +8 -8
- package/dist/components/Combobox.js +4 -4
- package/dist/components/Combobox.js.map +1 -1
- package/dist/components/DatePicker.js +5 -5
- package/dist/components/DatePicker.js.map +1 -1
- package/dist/components/Dialog.js +4 -4
- package/dist/components/Empty.js +8 -8
- package/dist/components/Field.js +8 -8
- package/dist/components/Field.js.map +1 -1
- package/dist/components/InputGroup.js +7 -7
- package/dist/components/Item.js +11 -11
- package/dist/components/Kbd.js +4 -4
- package/dist/components/Menu.js +3 -3
- package/dist/components/MenuCombobox.js +1 -1
- package/dist/components/MenuComboboxList.js +1 -1
- package/dist/components/NumberInput.js +5 -5
- package/dist/components/NumberInput.js.map +1 -1
- package/dist/components/Pagination.js +5 -5
- package/dist/components/PasswordInput.js +1 -1
- package/dist/components/PasswordInput.js.map +1 -1
- package/dist/components/PinInput.js +5 -5
- package/dist/components/PinInput.js.map +1 -1
- package/dist/components/Popover.js +3 -3
- package/dist/components/Progress.js +2 -2
- package/dist/components/Progress.js.map +1 -1
- package/dist/components/RadioGroup.js +2 -2
- package/dist/components/RadioGroup.js.map +1 -1
- package/dist/components/Select.js +2 -2
- package/dist/components/Select.js.map +1 -1
- package/dist/components/Separator.js +3 -3
- package/dist/components/Sheet.js +1 -1
- package/dist/components/Skeleton.js +3 -3
- package/dist/components/Slider.js +29 -29
- package/dist/components/Slider.js.map +1 -1
- package/dist/components/Spinner.js +4 -4
- package/dist/components/Table.js +10 -10
- package/dist/components/TagsInput.js +1 -1
- package/dist/components/TagsInput.js.map +1 -1
- package/dist/components/TextInput.js +4 -4
- package/dist/components/TextInput.js.map +1 -1
- package/dist/components/Typography.js +1 -1
- package/dist/components/form/ComboboxField.js +1 -1
- package/dist/components/form/SliderField.js +16 -18
- package/dist/components/form/SliderField.js.map +1 -1
- package/dist/components/sidebar/SidebarDesktop.js +6 -6
- package/dist/components/sidebar/SidebarMenu.js +11 -11
- package/dist/components/sidebar/SidebarMobile.js +1 -1
- package/dist/components/sidebar/SidebarProvider.js +4 -4
- package/dist/components/sidebar/SidebarSubComponents.js +11 -11
- package/dist/components/toaster/Toaster.js +4 -4
- package/dist/index.js +16 -16
- package/dist/node_modules/.bun/@ark-ui_solid@5.34.1_2e1854f049906f04/node_modules/@ark-ui/solid/dist/chunk/ZMQW6EBL.js +4 -4
- package/dist/node_modules/.bun/{@floating-ui_core@1.7.4 → @floating-ui_core@1.7.5}/node_modules/@floating-ui/core/dist/floating-ui.core.js +171 -171
- package/dist/node_modules/.bun/@floating-ui_core@1.7.5/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +1 -0
- package/dist/node_modules/.bun/@floating-ui_dom@1.7.6/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +404 -0
- package/dist/node_modules/.bun/@floating-ui_dom@1.7.6/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +1 -0
- package/dist/node_modules/.bun/@floating-ui_utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +137 -0
- package/dist/node_modules/.bun/@floating-ui_utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +1 -0
- package/dist/node_modules/.bun/@floating-ui_utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +129 -0
- package/dist/node_modules/.bun/@floating-ui_utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +1 -0
- package/dist/node_modules/.bun/@internationalized_date@3.11.0/node_modules/@internationalized/date/dist/CalendarDate.js +1 -1
- package/dist/node_modules/.bun/{@swc_helpers@0.5.18 → @swc_helpers@0.5.19}/node_modules/@swc/helpers/esm/_check_private_redeclaration.js.map +1 -1
- package/dist/node_modules/.bun/{@swc_helpers@0.5.18 → @swc_helpers@0.5.19}/node_modules/@swc/helpers/esm/_class_private_field_init.js.map +1 -1
- package/dist/node_modules/.bun/@zag-js_angle-slider@1.35.3/node_modules/@zag-js/angle-slider/dist/angle-slider.connect.js +1 -1
- package/dist/node_modules/.bun/@zag-js_checkbox@1.35.3/node_modules/@zag-js/checkbox/dist/checkbox.connect.js +3 -3
- package/dist/node_modules/.bun/@zag-js_combobox@1.35.3/node_modules/@zag-js/combobox/dist/combobox.connect.js +3 -3
- package/dist/node_modules/.bun/@zag-js_combobox@1.35.3/node_modules/@zag-js/combobox/dist/combobox.machine.js +7 -7
- package/dist/node_modules/.bun/@zag-js_date-picker@1.35.3_ee33ebb1f804619f/node_modules/@zag-js/date-picker/dist/date-picker.connect.js +10 -10
- package/dist/node_modules/.bun/@zag-js_date-picker@1.35.3_ee33ebb1f804619f/node_modules/@zag-js/date-picker/dist/date-picker.machine.js +20 -20
- package/dist/node_modules/.bun/@zag-js_dismissable@1.35.3/node_modules/@zag-js/dismissable/dist/dismissable-layer.js +1 -1
- package/dist/node_modules/.bun/@zag-js_dom-query@1.35.3/node_modules/@zag-js/dom-query/dist/press.js +3 -3
- package/dist/node_modules/.bun/@zag-js_hover-card@1.35.3/node_modules/@zag-js/hover-card/dist/hover-card.machine.js +1 -1
- package/dist/node_modules/.bun/@zag-js_menu@1.35.3/node_modules/@zag-js/menu/dist/menu.dom.js +4 -4
- package/dist/node_modules/.bun/@zag-js_menu@1.35.3/node_modules/@zag-js/menu/dist/menu.machine.js +5 -5
- package/dist/node_modules/.bun/@zag-js_navigation-menu@1.35.3/node_modules/@zag-js/navigation-menu/dist/navigation-menu.connect.js +1 -1
- package/dist/node_modules/.bun/@zag-js_navigation-menu@1.35.3/node_modules/@zag-js/navigation-menu/dist/navigation-menu.machine.js +12 -12
- package/dist/node_modules/.bun/@zag-js_number-input@1.35.3/node_modules/@zag-js/number-input/dist/number-input.connect.js +1 -1
- package/dist/node_modules/.bun/@zag-js_number-input@1.35.3/node_modules/@zag-js/number-input/dist/number-input.machine.js +23 -23
- package/dist/node_modules/.bun/@zag-js_pin-input@1.35.3/node_modules/@zag-js/pin-input/dist/pin-input.machine.js +4 -4
- package/dist/node_modules/.bun/@zag-js_popper@1.35.3/node_modules/@zag-js/popper/dist/get-placement.js +5 -5
- package/dist/node_modules/.bun/@zag-js_radio-group@1.35.3/node_modules/@zag-js/radio-group/dist/radio-group.connect.js +3 -3
- package/dist/node_modules/.bun/@zag-js_remove-scroll@1.35.3/node_modules/@zag-js/remove-scroll/dist/index.js +4 -4
- package/dist/node_modules/.bun/@zag-js_select@1.35.3/node_modules/@zag-js/select/dist/select.connect.js +1 -1
- package/dist/node_modules/.bun/@zag-js_select@1.35.3/node_modules/@zag-js/select/dist/select.machine.js +2 -2
- package/dist/node_modules/.bun/@zag-js_slider@1.35.3/node_modules/@zag-js/slider/dist/slider.dom.js +4 -4
- package/dist/node_modules/.bun/@zag-js_slider@1.35.3/node_modules/@zag-js/slider/dist/slider.machine.js +18 -18
- package/dist/node_modules/.bun/@zag-js_solid@1.35.3_2e1854f049906f04/node_modules/@zag-js/solid/dist/machine.js +1 -1
- package/dist/node_modules/.bun/@zag-js_switch@1.35.3/node_modules/@zag-js/switch/dist/switch.connect.js +1 -1
- package/dist/node_modules/.bun/@zag-js_tabs@1.35.3/node_modules/@zag-js/tabs/dist/tabs.dom.js +4 -4
- package/dist/node_modules/.bun/@zag-js_tabs@1.35.3/node_modules/@zag-js/tabs/dist/tabs.machine.js +11 -11
- package/dist/node_modules/.bun/@zag-js_tags-input@1.35.3/node_modules/@zag-js/tags-input/dist/tags-input.connect.js +4 -4
- package/dist/node_modules/.bun/@zag-js_tags-input@1.35.3/node_modules/@zag-js/tags-input/dist/tags-input.dom.js +1 -1
- package/dist/node_modules/.bun/@zag-js_tags-input@1.35.3/node_modules/@zag-js/tags-input/dist/tags-input.machine.js +4 -4
- package/dist/node_modules/.bun/@zag-js_toast@1.35.3/node_modules/@zag-js/toast/dist/toast-group.machine.js +4 -4
- package/dist/node_modules/.bun/@zag-js_tree-view@1.35.3/node_modules/@zag-js/tree-view/dist/tree-view.machine.js +7 -7
- package/package.json +1 -1
- package/src/components/Combobox.tsx +1 -1
- package/src/components/DatePicker.tsx +1 -1
- package/src/components/Field.tsx +6 -6
- package/src/components/NumberInput.tsx +1 -1
- package/src/components/PasswordInput.tsx +1 -1
- package/src/components/PinInput.tsx +1 -1
- package/src/components/Progress.tsx +2 -2
- package/src/components/RadioGroup.tsx +4 -4
- package/src/components/Select.tsx +1 -1
- package/src/components/Slider.tsx +8 -8
- package/src/components/TagsInput.tsx +1 -1
- package/src/components/TextInput.tsx +1 -1
- package/src/components/form/SliderField.tsx +3 -1
- package/dist/node_modules/.bun/@floating-ui_core@1.7.4/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +0 -1
- package/dist/node_modules/.bun/@floating-ui_dom@1.7.5/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -403
- package/dist/node_modules/.bun/@floating-ui_dom@1.7.5/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +0 -1
- package/dist/node_modules/.bun/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -137
- package/dist/node_modules/.bun/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +0 -1
- package/dist/node_modules/.bun/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -131
- package/dist/node_modules/.bun/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +0 -1
- /package/dist/node_modules/.bun/{@swc_helpers@0.5.18 → @swc_helpers@0.5.19}/node_modules/@swc/helpers/esm/_check_private_redeclaration.js +0 -0
- /package/dist/node_modules/.bun/{@swc_helpers@0.5.18 → @swc_helpers@0.5.19}/node_modules/@swc/helpers/esm/_class_private_field_init.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextInput.js","sources":["../../src/components/TextInput.tsx"],"sourcesContent":["import { Field as PrimitiveField } from '@ark-ui/solid/field';\nimport { splitProps, type Component, type ComponentProps } from 'solid-js';\nimport { cn } from 'tailwind-variants';\n\nimport { FieldDescription, FieldError } from '@/components/Field';\n\nexport const TextInput: Component<PrimitiveField.RootProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <PrimitiveField.Root\n class={cn('group/text-input relative flex w-full flex-col', local.class)}\n {...others}\n />\n );\n};\n\nexport const TextInputLabel: Component<PrimitiveField.LabelProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <PrimitiveField.Label\n class={cn(\n 'mb-1 gap-2 text-sm font-medium flex items-center leading-none select-none group-data-disabled:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50',\n local.class,\n )}\n {...others}\n />\n );\n};\n\nexport const TextInputControl: Component<ComponentProps<'div'>> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <PrimitiveField.Context>\n {(field) => (\n <div\n data-slot='text-input-control'\n {...(field().disabled && { 'data-disabled': 'true' })}\n {...(field().invalid && { 'data-invalid': 'true' })}\n {...(field().readOnly && { 'data-readonly': 'true' })}\n class={cn(\n 'min-w-0 h-8 relative flex w-full items-center overflow-hidden rounded-lg border border-input transition-colors outline-none dark:bg-input/30',\n 'has-focus-visible:border-ring has-focus-visible:ring-[3px] has-focus-visible:ring-ring/50',\n 'data-[invalid=true]:border-destructive data-[invalid=true]:ring-[3px] data-[invalid=true]:ring-destructive/20 dark:data-[invalid=true]:ring-destructive/40',\n 'data-[disabled=true]:bg-input/50 data-[disabled=true]:opacity-50 dark:data-[disabled=true]:bg-input/80',\n 'data-[readonly=true]:has-focus-visible:border-input data-[readonly=true]:has-focus-visible:ring-0',\n 'has-[textarea]:h-auto',\n local.class,\n )}\n {...others}\n />\n )}\n </PrimitiveField.Context>\n );\n};\n\nexport const TextInputInput: Component<PrimitiveField.InputProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <PrimitiveField.Input\n class={cn(\n 'min-w-0 text-base md:text-sm flex w-full bg-transparent transition-colors outline-none placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 data-[readonly=true]:cursor-default',\n 'px-0 py-0 h-full border-none bg-transparent shadow-none ring-0 focus-visible:ring-0',\n 'px-2.5',\n local.class,\n )}\n {...others}\n />\n );\n};\n\nexport const TextInputArea: Component<PrimitiveField.TextareaProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <PrimitiveField.Textarea\n class={cn(\n 'min-h-16 text-base md:text-sm flex field-sizing-content w-full bg-transparent transition-colors outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50 data-[readonly=true]:cursor-default',\n 'px-0 py-0 border-none bg-transparent shadow-none ring-0 focus-visible:ring-0',\n 'px-2.5 py-1.5',\n local.class,\n )}\n {...others}\n />\n );\n};\n\nexport const TextInputDescription = FieldDescription;\nexport const TextInputError = FieldError;\n"],"names":["TextInput","props","local","others","splitProps","_$createComponent","PrimitiveField","Root","_$mergeProps","cn","class","TextInputLabel","Label","TextInputControl","Context","children","field","_el$","_tmpl$","_$spread","disabled","invalid","readOnly","TextInputInput","Input","TextInputArea","Textarea","TextInputDescription","FieldDescription","TextInputError","FieldError"],"mappings":";;;;;;AAMO,MAAMA,IAAkDC,CAAAA,MAAU;AACvE,QAAM,CAACC,GAAOC,CAAM,IAAIC,EAAWH,GAAO,CAAC,OAAO,CAAC;AACnD,SAAAI,EACGC,EAAeC,MAAIC,EAAA;AAAA,IAAA,IAAA,QAAA;AAAA,aACXC,EAAG,kDAAkDP,EAAMQ,KAAK;AAAA,IAAC;AAAA,EAAA,GACpEP,CAAM,CAAA;AAGhB,GAEaQ,IAAwDV,CAAAA,MAAU;AAC7E,QAAM,CAACC,GAAOC,CAAM,IAAIC,EAAWH,GAAO,CAAC,OAAO,CAAC;AACnD,SAAAI,EACGC,EAAeM,OAAKJ,EAAA;AAAA,IAAA,IAAA,QAAA;AAAA,aACZC,EACL,
|
|
1
|
+
{"version":3,"file":"TextInput.js","sources":["../../src/components/TextInput.tsx"],"sourcesContent":["import { Field as PrimitiveField } from '@ark-ui/solid/field';\nimport { splitProps, type Component, type ComponentProps } from 'solid-js';\nimport { cn } from 'tailwind-variants';\n\nimport { FieldDescription, FieldError } from '@/components/Field';\n\nexport const TextInput: Component<PrimitiveField.RootProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <PrimitiveField.Root\n class={cn('group/text-input relative flex w-full flex-col', local.class)}\n {...others}\n />\n );\n};\n\nexport const TextInputLabel: Component<PrimitiveField.LabelProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <PrimitiveField.Label\n class={cn(\n 'mb-1.5 gap-2 text-sm font-medium flex items-center leading-none select-none group-data-disabled:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50',\n local.class,\n )}\n {...others}\n />\n );\n};\n\nexport const TextInputControl: Component<ComponentProps<'div'>> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <PrimitiveField.Context>\n {(field) => (\n <div\n data-slot='text-input-control'\n {...(field().disabled && { 'data-disabled': 'true' })}\n {...(field().invalid && { 'data-invalid': 'true' })}\n {...(field().readOnly && { 'data-readonly': 'true' })}\n class={cn(\n 'min-w-0 h-8 relative flex w-full items-center overflow-hidden rounded-lg border border-input transition-colors outline-none dark:bg-input/30',\n 'has-focus-visible:border-ring has-focus-visible:ring-[3px] has-focus-visible:ring-ring/50',\n 'data-[invalid=true]:border-destructive data-[invalid=true]:ring-[3px] data-[invalid=true]:ring-destructive/20 dark:data-[invalid=true]:ring-destructive/40',\n 'data-[disabled=true]:bg-input/50 data-[disabled=true]:opacity-50 dark:data-[disabled=true]:bg-input/80',\n 'data-[readonly=true]:has-focus-visible:border-input data-[readonly=true]:has-focus-visible:ring-0',\n 'has-[textarea]:h-auto',\n local.class,\n )}\n {...others}\n />\n )}\n </PrimitiveField.Context>\n );\n};\n\nexport const TextInputInput: Component<PrimitiveField.InputProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <PrimitiveField.Input\n class={cn(\n 'min-w-0 text-base md:text-sm flex w-full bg-transparent transition-colors outline-none placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 data-[readonly=true]:cursor-default',\n 'px-0 py-0 h-full border-none bg-transparent shadow-none ring-0 focus-visible:ring-0',\n 'px-2.5',\n local.class,\n )}\n {...others}\n />\n );\n};\n\nexport const TextInputArea: Component<PrimitiveField.TextareaProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <PrimitiveField.Textarea\n class={cn(\n 'min-h-16 text-base md:text-sm flex field-sizing-content w-full bg-transparent transition-colors outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50 data-[readonly=true]:cursor-default',\n 'px-0 py-0 border-none bg-transparent shadow-none ring-0 focus-visible:ring-0',\n 'px-2.5 py-1.5',\n local.class,\n )}\n {...others}\n />\n );\n};\n\nexport const TextInputDescription = FieldDescription;\nexport const TextInputError = FieldError;\n"],"names":["TextInput","props","local","others","splitProps","_$createComponent","PrimitiveField","Root","_$mergeProps","cn","class","TextInputLabel","Label","TextInputControl","Context","children","field","_el$","_tmpl$","_$spread","disabled","invalid","readOnly","TextInputInput","Input","TextInputArea","Textarea","TextInputDescription","FieldDescription","TextInputError","FieldError"],"mappings":";;;;;;AAMO,MAAMA,IAAkDC,CAAAA,MAAU;AACvE,QAAM,CAACC,GAAOC,CAAM,IAAIC,EAAWH,GAAO,CAAC,OAAO,CAAC;AACnD,SAAAI,EACGC,EAAeC,MAAIC,EAAA;AAAA,IAAA,IAAA,QAAA;AAAA,aACXC,EAAG,kDAAkDP,EAAMQ,KAAK;AAAA,IAAC;AAAA,EAAA,GACpEP,CAAM,CAAA;AAGhB,GAEaQ,IAAwDV,CAAAA,MAAU;AAC7E,QAAM,CAACC,GAAOC,CAAM,IAAIC,EAAWH,GAAO,CAAC,OAAO,CAAC;AACnD,SAAAI,EACGC,EAAeM,OAAKJ,EAAA;AAAA,IAAA,IAAA,QAAA;AAAA,aACZC,EACL,uNACAP,EAAMQ,KACR;AAAA,IAAC;AAAA,EAAA,GACGP,CAAM,CAAA;AAGhB,GAEaU,IAAsDZ,CAAAA,MAAU;AAC3E,QAAM,CAACC,GAAOC,CAAM,IAAIC,EAAWH,GAAO,CAAC,OAAO,CAAC;AACnD,SAAAI,EACGC,EAAeQ,SAAO;AAAA,IAAAC,UACnBC,QAAK,MAAA;AAAA,UAAAC,IAAAC,EAAAA;AAAAC,aAAAA,EAAAF,GAAAT,EAAA,MAGEQ,EAAAA,EAAQI,YAAY;AAAA,QAAE,iBAAiB;AAAA,MAAA,SACvCJ,EAAAA,EAAQK,WAAW;AAAA,QAAE,gBAAgB;AAAA,MAAA,SACrCL,EAAAA,EAAQM,YAAY;AAAA,QAAE,iBAAiB;AAAA,MAAA,GAAQ;AAAA,QAAA,IAAA,QAAA;AAAA,iBAC7Cb,EACL,gJACA,6FACA,8JACA,0GACA,qGACA,yBACAP,EAAMQ,KACR;AAAA,QAAC;AAAA,MAAA,GACGP,CAAM,GAAA,IAAA,EAAA,GAAAc;AAAAA,IAAA,GAAA;AAAA,EAAA,CAEb;AAGP,GAEaM,IAAwDtB,CAAAA,MAAU;AAC7E,QAAM,CAACC,GAAOC,CAAM,IAAIC,EAAWH,GAAO,CAAC,OAAO,CAAC;AACnD,SAAAI,EACGC,EAAekB,OAAKhB,EAAA;AAAA,IAAA,IAAA,QAAA;AAAA,aACZC,EACL,6OACA,uFACA,UACAP,EAAMQ,KACR;AAAA,IAAC;AAAA,EAAA,GACGP,CAAM,CAAA;AAGhB,GAEasB,IAA0DxB,CAAAA,MAAU;AAC/E,QAAM,CAACC,GAAOC,CAAM,IAAIC,EAAWH,GAAO,CAAC,OAAO,CAAC;AACnD,SAAAI,EACGC,EAAeoB,UAAQlB,EAAA;AAAA,IAAA,IAAA,QAAA;AAAA,aACfC,EACL,sOACA,gFACA,iBACAP,EAAMQ,KACR;AAAA,IAAC;AAAA,EAAA,GACGP,CAAM,CAAA;AAGhB,GAEawB,IAAuBC,GACvBC,IAAiBC;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { spread as r, mergeProps as a, template as c } from "solid-js/web";
|
|
2
2
|
import { splitProps as o } from "solid-js";
|
|
3
3
|
import { cn as n } from "../node_modules/.bun/tailwind-variants@3.2.2_7ac958b541464b98/node_modules/tailwind-variants/dist/index.js";
|
|
4
4
|
var m = /* @__PURE__ */ c("<h1>"), f = /* @__PURE__ */ c("<h2>"), g = /* @__PURE__ */ c("<h3>"), i = /* @__PURE__ */ c("<h4>"), u = /* @__PURE__ */ c("<p>"), d = /* @__PURE__ */ c("<blockquote>"), h = /* @__PURE__ */ c("<ul>"), p = /* @__PURE__ */ c("<code>"), _ = /* @__PURE__ */ c("<div>"), $ = /* @__PURE__ */ c("<small>");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createComponent as r, mergeProps as d,
|
|
1
|
+
import { createComponent as r, mergeProps as d, insert as o, memo as n, template as u } from "solid-js/web";
|
|
2
2
|
import { Combobox as s, ComboboxControl as g, ComboboxInput as h, ComboboxClearTrigger as c, ComboboxTrigger as m, ComboboxPositioner as b, ComboboxContent as C, ComboboxList as p } from "../Combobox.js";
|
|
3
3
|
import { Field as x, FieldLabel as f, FieldContent as v, FieldError as O, FieldDescription as w } from "../Field.js";
|
|
4
4
|
import { useFieldContext as F } from "./context.js";
|
|
@@ -1,36 +1,34 @@
|
|
|
1
|
-
import { createComponent as r, mergeProps as n,
|
|
1
|
+
import { createComponent as r, mergeProps as n, insert as a, For as i, memo as d, template as o } from "solid-js/web";
|
|
2
2
|
import { Field as g, FieldError as m, FieldDescription as c } from "../Field.js";
|
|
3
|
-
import { Slider as h, SliderLabel as b, SliderValueText as f, SliderControl as
|
|
3
|
+
import { Slider as h, SliderLabel as b, SliderValueText as f, SliderControl as p, SliderTrack as v, SliderRange as S, SliderThumb as y, SliderMarkerGroup as k, SliderMarker as F } from "../Slider.js";
|
|
4
4
|
import { useFieldContext as C } from "./context.js";
|
|
5
|
-
import { splitProps as
|
|
6
|
-
var
|
|
5
|
+
import { splitProps as O } from "solid-js";
|
|
6
|
+
var x = /* @__PURE__ */ o('<div class="flex items-center justify-between">');
|
|
7
7
|
const q = (l) => [(() => {
|
|
8
|
-
var e =
|
|
9
|
-
return
|
|
8
|
+
var e = x();
|
|
9
|
+
return a(e, r(b, {
|
|
10
10
|
get children() {
|
|
11
11
|
return l.label;
|
|
12
12
|
}
|
|
13
|
-
}), null),
|
|
14
|
-
})(), r(
|
|
13
|
+
}), null), a(e, r(f, {}), null), e;
|
|
14
|
+
})(), r(p, {
|
|
15
15
|
get children() {
|
|
16
|
-
return [r(
|
|
16
|
+
return [r(v, {
|
|
17
17
|
get children() {
|
|
18
18
|
return r(S, {});
|
|
19
19
|
}
|
|
20
|
-
}), r(
|
|
20
|
+
}), r(i, {
|
|
21
21
|
get each() {
|
|
22
|
-
return l.value;
|
|
22
|
+
return l.value.map((e, t) => t);
|
|
23
23
|
},
|
|
24
|
-
children: (e
|
|
25
|
-
|
|
26
|
-
return t();
|
|
27
|
-
}
|
|
24
|
+
children: (e) => r(y, {
|
|
25
|
+
index: e
|
|
28
26
|
})
|
|
29
27
|
})];
|
|
30
28
|
}
|
|
31
|
-
}),
|
|
29
|
+
}), d(() => d(() => !!l.marks)() && r(k, {
|
|
32
30
|
get children() {
|
|
33
|
-
return r(
|
|
31
|
+
return r(i, {
|
|
34
32
|
get each() {
|
|
35
33
|
return l.marks;
|
|
36
34
|
},
|
|
@@ -45,7 +43,7 @@ const q = (l) => [(() => {
|
|
|
45
43
|
});
|
|
46
44
|
}
|
|
47
45
|
}))], V = (l) => {
|
|
48
|
-
const e = C(), [t, u] =
|
|
46
|
+
const e = C(), [t, u] = O(l, ["label", "description", "required", "disabled", "readOnly", "marks"]);
|
|
49
47
|
return r(g, {
|
|
50
48
|
get invalid() {
|
|
51
49
|
return e().state.meta.errors.length > 0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SliderField.js","sources":["../../../src/components/form/SliderField.tsx"],"sourcesContent":["import type { Component, ComponentProps } from 'solid-js';\n\nimport { Field, FieldDescription, FieldError } from '@/components/Field';\nimport {\n Slider,\n SliderControl,\n SliderLabel,\n SliderMarker,\n SliderMarkerGroup,\n SliderRange,\n SliderThumb,\n SliderTrack,\n SliderValueText,\n} from '@/components/Slider';\n\nimport { useFieldContext } from './context';\n\nconst SliderInput: Component<{\n value: number[];\n label?: string;\n marks?: { value: number; label?: string }[] | undefined;\n}> = (props) => (\n <>\n <div class='flex items-center justify-between'>\n <SliderLabel>{props.label}</SliderLabel>\n <SliderValueText />\n </div>\n <SliderControl>\n <SliderTrack>\n <SliderRange />\n </SliderTrack>\n <For each={props.value
|
|
1
|
+
{"version":3,"file":"SliderField.js","sources":["../../../src/components/form/SliderField.tsx"],"sourcesContent":["import type { Component, ComponentProps } from 'solid-js';\n\nimport { Field, FieldDescription, FieldError } from '@/components/Field';\nimport {\n Slider,\n SliderControl,\n SliderLabel,\n SliderMarker,\n SliderMarkerGroup,\n SliderRange,\n SliderThumb,\n SliderTrack,\n SliderValueText,\n} from '@/components/Slider';\n\nimport { useFieldContext } from './context';\n\nconst SliderInput: Component<{\n value: number[];\n label?: string;\n marks?: { value: number; label?: string }[] | undefined;\n}> = (props) => (\n <>\n <div class='flex items-center justify-between'>\n <SliderLabel>{props.label}</SliderLabel>\n <SliderValueText />\n </div>\n <SliderControl>\n <SliderTrack>\n <SliderRange />\n </SliderTrack>\n <For each={props.value.map((_, index) => index)}>\n {(index) => <SliderThumb index={index} />}\n </For>\n </SliderControl>\n {props.marks && (\n <SliderMarkerGroup>\n <For each={props.marks}>\n {(mark) => <SliderMarker value={mark.value}>{mark.label}</SliderMarker>}\n </For>\n </SliderMarkerGroup>\n )}\n </>\n);\n\nexport type SliderFieldProps = ComponentProps<typeof Slider> & {\n label?: string;\n description?: string;\n marks?: { value: number; label?: string }[];\n required?: boolean;\n};\n\nexport const SliderField: Component<SliderFieldProps> = (props) => {\n const field = useFieldContext<number[]>();\n const [local, others] = splitProps(props, [\n 'label',\n 'description',\n 'required',\n 'disabled',\n 'readOnly',\n 'marks',\n ]);\n\n return (\n <Field\n invalid={field().state.meta.errors.length > 0}\n disabled={local.disabled ?? false}\n readOnly={local.readOnly ?? false}\n required={local.required ?? false}\n >\n <Slider\n value={field().state.value}\n onValueChange={(details) => {\n field().handleChange(details.value);\n }}\n onFocusChange={() => {\n field().handleBlur();\n }}\n invalid={field().state.meta.errors.length > 0}\n disabled={local.disabled ?? false}\n readOnly={local.readOnly ?? false}\n {...others}\n >\n <SliderInput\n value={field().state.value}\n {...(typeof local.label === 'string' && { label: local.label })}\n {...(Array.isArray(local.marks) && { marks: local.marks })}\n />\n </Slider>\n <FieldError errors={field().state.meta.errors} />\n <FieldDescription>{local.description}</FieldDescription>\n </Field>\n );\n};\n"],"names":["SliderInput","props","_el$","_tmpl$","_$insert","_$createComponent","SliderLabel","children","label","SliderValueText","SliderControl","SliderTrack","SliderRange","_$For","each","value","map","_","index","SliderThumb","_$memo","marks","SliderMarkerGroup","mark","SliderMarker","SliderField","field","useFieldContext","local","others","splitProps","Field","invalid","state","meta","errors","length","disabled","readOnly","required","Slider","_$mergeProps","onValueChange","details","handleChange","onFocusChange","handleBlur","Array","isArray","FieldError","FieldDescription","description"],"mappings":";;;;;;AAiBA,MAAMA,IAIAC,CAAAA,MAAK,EAAA,MAAA;AAAA,MAAAC,IAAAC,EAAAA;AAAAC,SAAAA,EAAAF,GAAAG,EAGJC,GAAW;AAAA,IAAA,IAAAC,WAAA;AAAA,aAAEN,EAAMO;AAAAA,IAAK;AAAA,EAAA,CAAA,GAAA,IAAA,GAAAJ,EAAAF,GAAAG,EACxBI,GAAe,CAAA,CAAA,GAAA,IAAA,GAAAP;AAAA,GAAA,GAAAG,EAEjBK,GAAa;AAAA,EAAA,IAAAH,WAAA;AAAA,WAAA,CAAAF,EACXM,GAAW;AAAA,MAAA,IAAAJ,WAAA;AAAA,eAAAF,EACTO,GAAW,EAAA;AAAA,MAAA;AAAA,IAAA,CAAA,GAAAP,EAEbQ,GAAG;AAAA,MAAA,IAACC,OAAI;AAAA,eAAEb,EAAMc,MAAMC,IAAI,CAACC,GAAGC,MAAUA,CAAK;AAAA,MAAC;AAAA,MAAAX,UAC3CW,CAAAA,MAAKb,EAAMc,GAAW;AAAA,QAACD,OAAAA;AAAAA,MAAAA,CAAY;AAAA,IAAA,CAAI,CAAA;AAAA,EAAA;AAAA,CAAA,GAAAE,EAAA,MAG5CA,EAAA,MAAA,CAAA,CAAAnB,EAAMoB,KAAK,EAAA,KAAAhB,EACTiB,GAAiB;AAAA,EAAA,IAAAf,WAAA;AAAA,WAAAF,EACfQ,GAAG;AAAA,MAAA,IAACC,OAAI;AAAA,eAAEb,EAAMoB;AAAAA,MAAK;AAAA,MAAAd,UAClBgB,CAAAA,MAAIlB,EAAMmB,GAAY;AAAA,QAAA,IAACT,QAAK;AAAA,iBAAEQ,EAAKR;AAAAA,QAAK;AAAA,QAAA,IAAAR,WAAA;AAAA,iBAAGgB,EAAKf;AAAAA,QAAK;AAAA,MAAA,CAAA;AAAA,IAAA,CAAgB;AAAA,EAAA;AAAA,CAAA,CAG5E,CAAA,GAWQiB,IAA4CxB,CAAAA,MAAU;AACjE,QAAMyB,IAAQC,EAAAA,GACR,CAACC,GAAOC,CAAM,IAAIC,EAAW7B,GAAO,CACxC,SACA,eACA,YACA,YACA,YACA,OAAO,CACR;AAED,SAAAI,EACG0B,GAAK;AAAA,IAAA,IACJC,UAAO;AAAA,aAAEN,EAAAA,EAAQO,MAAMC,KAAKC,OAAOC,SAAS;AAAA,IAAC;AAAA,IAAA,IAC7CC,WAAQ;AAAA,aAAET,EAAMS,YAAY;AAAA,IAAK;AAAA,IAAA,IACjCC,WAAQ;AAAA,aAAEV,EAAMU,YAAY;AAAA,IAAK;AAAA,IAAA,IACjCC,WAAQ;AAAA,aAAEX,EAAMW,YAAY;AAAA,IAAK;AAAA,IAAA,IAAAhC,WAAA;AAAA,aAAA,CAAAF,EAEhCmC,GAAMC,EAAA;AAAA,QAAA,IACL1B,QAAK;AAAA,iBAAEW,EAAAA,EAAQO,MAAMlB;AAAAA,QAAK;AAAA,QAC1B2B,eAAgBC,CAAAA,MAAY;AAC1BjB,UAAAA,IAAQkB,aAAaD,EAAQ5B,KAAK;AAAA,QACpC;AAAA,QACA8B,eAAeA,MAAM;AACnBnB,UAAAA,EAAAA,EAAQoB,WAAAA;AAAAA,QACV;AAAA,QAAC,IACDd,UAAO;AAAA,iBAAEN,EAAAA,EAAQO,MAAMC,KAAKC,OAAOC,SAAS;AAAA,QAAC;AAAA,QAAA,IAC7CC,WAAQ;AAAA,iBAAET,EAAMS,YAAY;AAAA,QAAK;AAAA,QAAA,IACjCC,WAAQ;AAAA,iBAAEV,EAAMU,YAAY;AAAA,QAAK;AAAA,MAAA,GAC7BT,GAAM;AAAA,QAAA,IAAAtB,WAAA;AAAA,iBAAAF,EAETL,GAAWyC,EAAA;AAAA,YAAA,IACV1B,QAAK;AAAA,qBAAEW,EAAAA,EAAQO,MAAMlB;AAAAA,YAAK;AAAA,UAAA,GAAA,MACrB,OAAOa,EAAMpB,SAAU,YAAY;AAAA,YAAEA,OAAOoB,EAAMpB;AAAAA,UAAAA,GAAO,MACzDuC,MAAMC,QAAQpB,EAAMP,KAAK,KAAK;AAAA,YAAEA,OAAOO,EAAMP;AAAAA,UAAAA,CAAO,CAAA;AAAA,QAAA;AAAA,MAAA,CAAA,CAAA,GAAAhB,EAG5D4C,GAAU;AAAA,QAAA,IAACd,SAAM;AAAA,iBAAET,EAAAA,EAAQO,MAAMC,KAAKC;AAAAA,QAAM;AAAA,MAAA,CAAA,GAAA9B,EAC5C6C,GAAgB;AAAA,QAAA,IAAA3C,WAAA;AAAA,iBAAEqB,EAAMuB;AAAAA,QAAW;AAAA,MAAA,CAAA,CAAA;AAAA,IAAA;AAAA,EAAA,CAAA;AAG1C;"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { insert as p, createComponent as D, mergeProps as h, effect as m, style as k, className as n, setAttribute as l, template as w, spread as I } from "solid-js/web";
|
|
2
2
|
import { splitProps as S, createMemo as y } from "solid-js";
|
|
3
3
|
import { cn as o } from "../../node_modules/.bun/tailwind-variants@3.2.2_7ac958b541464b98/node_modules/tailwind-variants/dist/index.js";
|
|
4
4
|
import { SIDEBAR_WIDTH_ICON as M, SIDEBAR_WIDTH as A } from "./constants.js";
|
|
5
5
|
import { useSidebar as R } from "./context.js";
|
|
6
|
-
var z = /* @__PURE__ */
|
|
6
|
+
var z = /* @__PURE__ */ w("<aside data-slot=sidebar-container><div data-sidebar=sidebar data-slot=sidebar-inner>"), B = /* @__PURE__ */ w("<div data-slot=sidebar><div data-slot=sidebar-gap>");
|
|
7
7
|
const E = (t) => o(t === !0 ? "group peer min-h-0 relative block self-stretch text-sidebar-foreground" : "group peer md:block min-h-0 relative hidden self-stretch text-sidebar-foreground"), H = (t) => o("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear", "group-data-[collapsible=offcanvas]:w-0", "group-data-[side=right]:rotate-180", t === "floating" || t === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+1rem)]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)"), N = (t) => {
|
|
8
8
|
const r = {
|
|
9
9
|
"--sidebar-width": A,
|
|
@@ -17,11 +17,11 @@ const E = (t) => o(t === !0 ? "group peer min-h-0 relative block self-stretch te
|
|
|
17
17
|
const [r, e] = S(t, ["variant", "side", "class", "children", "innerClass"]);
|
|
18
18
|
return (() => {
|
|
19
19
|
var s = z(), d = s.firstChild;
|
|
20
|
-
return I(s,
|
|
20
|
+
return I(s, h({
|
|
21
21
|
get class() {
|
|
22
22
|
return o("top-0 bottom-0 md:flex absolute z-10 hidden w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear", r.side === "left" ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]" : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]", r.variant === "floating" || r.variant === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+1rem+2px)]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l", r.class);
|
|
23
23
|
}
|
|
24
|
-
}, e), !1, !0),
|
|
24
|
+
}, e), !1, !0), p(d, () => r.children), m(() => n(d, o("group-data-[variant=floating]:shadow-sm flex size-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:ring-1 group-data-[variant=floating]:ring-sidebar-border", r.innerClass))), s;
|
|
25
25
|
})();
|
|
26
26
|
}, O = (t) => {
|
|
27
27
|
const {
|
|
@@ -29,7 +29,7 @@ const E = (t) => o(t === !0 ? "group peer min-h-0 relative block self-stretch te
|
|
|
29
29
|
} = R(), [e, s] = S(t, ["side", "variant", "collapsible", "disableMobileSidebar", "style", "class", "children"]), d = y(() => N(e.style));
|
|
30
30
|
return (() => {
|
|
31
31
|
var i = B(), x = i.firstChild;
|
|
32
|
-
return
|
|
32
|
+
return p(i, D(P, h({
|
|
33
33
|
get variant() {
|
|
34
34
|
return e.variant ?? "sidebar";
|
|
35
35
|
},
|
|
@@ -43,7 +43,7 @@ const E = (t) => o(t === !0 ? "group peer min-h-0 relative block self-stretch te
|
|
|
43
43
|
get children() {
|
|
44
44
|
return e.children;
|
|
45
45
|
}
|
|
46
|
-
})), null),
|
|
46
|
+
})), null), m((a) => {
|
|
47
47
|
var C = d(), c = E(e.disableMobileSidebar), b = r(), g = r() === "collapsed" ? e.collapsible ?? "offcanvas" : "", v = e.variant ?? "sidebar", f = e.side ?? "left", u = H(e.variant);
|
|
48
48
|
return a.e = k(i, C, a.e), c !== a.t && n(i, a.t = c), b !== a.a && l(i, "data-state", a.a = b), g !== a.o && l(i, "data-collapsible", a.o = g), v !== a.i && l(i, "data-variant", a.i = v), f !== a.n && l(i, "data-side", a.n = f), u !== a.s && n(x, a.s = u), a;
|
|
49
49
|
}, {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { spread as i, mergeProps as s, createComponent as n, Show as f, Portal as w, memo as z, insert as p, template as d } from "solid-js/web";
|
|
2
2
|
import { ark as S } from "../../node_modules/.bun/@ark-ui_solid@5.34.1_2e1854f049906f04/node_modules/@ark-ui/solid/dist/chunk/UFYZ7HLU.js";
|
|
3
3
|
import { splitProps as o, createMemo as l } from "solid-js";
|
|
4
|
-
import {
|
|
4
|
+
import { cn as c, tv as M } from "../../node_modules/.bun/tailwind-variants@3.2.2_7ac958b541464b98/node_modules/tailwind-variants/dist/index.js";
|
|
5
5
|
import { Skeleton as m } from "../Skeleton.js";
|
|
6
6
|
import { Tooltip as $, TooltipTrigger as y, TooltipPositioner as k, TooltipContent as A, TooltipArrow as T } from "../Tooltip.js";
|
|
7
7
|
import { RANDOM_WIDTH_RANGE as B, RANDOM_WIDTH_BASE as P } from "./constants.js";
|
|
8
8
|
import { useSidebar as C } from "./context.js";
|
|
9
|
-
var D = /* @__PURE__ */
|
|
9
|
+
var D = /* @__PURE__ */ d("<ul data-slot=sidebar-menu data-sidebar=menu>"), I = /* @__PURE__ */ d("<li data-slot=sidebar-menu-item data-sidebar=menu-item>"), H = /* @__PURE__ */ d("<button data-slot=sidebar-menu-action data-sidebar=menu-action>"), O = /* @__PURE__ */ d("<div data-slot=sidebar-menu-badge data-sidebar=menu-badge>"), N = /* @__PURE__ */ d("<div data-slot=sidebar-menu-skeleton data-sidebar=menu-skeleton>"), R = /* @__PURE__ */ d("<ul data-slot=sidebar-menu-sub data-sidebar=menu-sub>"), j = /* @__PURE__ */ d("<li data-slot=sidebar-menu-sub-item data-sidebar=menu-sub-item>"), E = /* @__PURE__ */ d("<a data-slot=sidebar-menu-sub-button data-sidebar=menu-sub-button>");
|
|
10
10
|
const ee = (e) => {
|
|
11
11
|
const [t, r] = o(e, ["class"]);
|
|
12
12
|
return (() => {
|
|
13
13
|
var a = D();
|
|
14
|
-
return
|
|
14
|
+
return i(a, s({
|
|
15
15
|
get class() {
|
|
16
16
|
return c("gap-0 min-w-0 flex w-full flex-col", t.class);
|
|
17
17
|
}
|
|
@@ -21,7 +21,7 @@ const ee = (e) => {
|
|
|
21
21
|
const [t, r] = o(e, ["class"]);
|
|
22
22
|
return (() => {
|
|
23
23
|
var a = I();
|
|
24
|
-
return
|
|
24
|
+
return i(a, s({
|
|
25
25
|
get class() {
|
|
26
26
|
return c("group/menu-item relative", t.class);
|
|
27
27
|
}
|
|
@@ -108,7 +108,7 @@ const ee = (e) => {
|
|
|
108
108
|
const [t, r] = o(e, ["class", "showOnHover"]);
|
|
109
109
|
return (() => {
|
|
110
110
|
var a = H();
|
|
111
|
-
return
|
|
111
|
+
return i(a, s({
|
|
112
112
|
get class() {
|
|
113
113
|
return c("top-1.5 right-1 w-5 p-0 peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1 [&>svg]:size-4 after:-inset-2 md:after:hidden absolute flex aspect-square items-center justify-center rounded-md text-sidebar-foreground ring-sidebar-ring outline-hidden transition-transform group-data-[collapsible=icon]:hidden peer-hover/menu-button:text-sidebar-accent-foreground after:absolute hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:shrink-0", t.showOnHover === !0 && "md:opacity-0 group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 peer-data-active/menu-button:text-sidebar-accent-foreground data-open:opacity-100", t.class);
|
|
114
114
|
}
|
|
@@ -118,7 +118,7 @@ const ee = (e) => {
|
|
|
118
118
|
const [t, r] = o(e, ["class"]);
|
|
119
119
|
return (() => {
|
|
120
120
|
var a = O();
|
|
121
|
-
return
|
|
121
|
+
return i(a, s({
|
|
122
122
|
get class() {
|
|
123
123
|
return c("right-1 h-5 min-w-5 px-1 text-xs font-medium peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1 pointer-events-none absolute flex items-center justify-center rounded-md text-sidebar-foreground tabular-nums select-none group-data-[collapsible=icon]:hidden peer-hover/menu-button:text-sidebar-accent-foreground peer-data-active/menu-button:text-sidebar-accent-foreground", t.class);
|
|
124
124
|
}
|
|
@@ -128,7 +128,7 @@ const ee = (e) => {
|
|
|
128
128
|
const [t, r] = o(e, ["class", "showIcon"]), a = l(() => `${Math.floor(Math.random() * B) + P}%`);
|
|
129
129
|
return (() => {
|
|
130
130
|
var u = N();
|
|
131
|
-
return
|
|
131
|
+
return i(u, s({
|
|
132
132
|
get class() {
|
|
133
133
|
return c("h-8 gap-2 px-2 flex items-center rounded-md", t.class);
|
|
134
134
|
}
|
|
@@ -156,7 +156,7 @@ const ee = (e) => {
|
|
|
156
156
|
const [t, r] = o(e, ["class"]);
|
|
157
157
|
return (() => {
|
|
158
158
|
var a = R();
|
|
159
|
-
return
|
|
159
|
+
return i(a, s({
|
|
160
160
|
get class() {
|
|
161
161
|
return c("mx-3.5 gap-1 px-2.5 py-0.5 min-w-0 flex translate-x-px flex-col border-l border-sidebar-border group-data-[collapsible=icon]:hidden", t.class);
|
|
162
162
|
}
|
|
@@ -166,7 +166,7 @@ const ee = (e) => {
|
|
|
166
166
|
const [t, r] = o(e, ["class"]);
|
|
167
167
|
return (() => {
|
|
168
168
|
var a = j();
|
|
169
|
-
return
|
|
169
|
+
return i(a, s({
|
|
170
170
|
get class() {
|
|
171
171
|
return c("group/menu-sub-item relative", t.class);
|
|
172
172
|
}
|
|
@@ -176,7 +176,7 @@ const ee = (e) => {
|
|
|
176
176
|
const [t, r] = o(e, ["class", "size", "isActive"]);
|
|
177
177
|
return (() => {
|
|
178
178
|
var a = E();
|
|
179
|
-
return
|
|
179
|
+
return i(a, s({
|
|
180
180
|
get "data-size"() {
|
|
181
181
|
return t.size ?? "md";
|
|
182
182
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createComponent as r,
|
|
1
|
+
import { createComponent as r, insert as o, template as n } from "solid-js/web";
|
|
2
2
|
import { Sheet as a, SheetPositioner as p, SheetContent as c, SheetCloseButton as h, SheetHeader as m, SheetTitle as u, SheetDescription as b } from "../Sheet.js";
|
|
3
3
|
import { SIDEBAR_WIDTH_MOBILE as f } from "./constants.js";
|
|
4
4
|
import { useSidebar as g } from "./context.js";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { spread as m, mergeProps as f, createComponent as u, template as M } from "solid-js/web";
|
|
2
2
|
import { splitProps as g, createSignal as r, onMount as O, onCleanup as h } from "solid-js";
|
|
3
3
|
import { cn as y } from "../../node_modules/.bun/tailwind-variants@3.2.2_7ac958b541464b98/node_modules/tailwind-variants/dist/index.js";
|
|
4
4
|
import { createMediaQuery as v } from "../../primitives/createMediaQuery.js";
|
|
5
5
|
import { SIDEBAR_KEYBOARD_SHORTCUT as C } from "./constants.js";
|
|
6
6
|
import { SidebarContext as D } from "./context.js";
|
|
7
7
|
import { setSidebarCookie as w } from "./utils.js";
|
|
8
|
-
var x = /* @__PURE__ */
|
|
8
|
+
var x = /* @__PURE__ */ M("<div data-slot=sidebar-wrapper>");
|
|
9
9
|
const V = (e) => {
|
|
10
10
|
const [o, n] = g(e, ["class"]);
|
|
11
11
|
return (() => {
|
|
12
12
|
var i = x();
|
|
13
|
-
return
|
|
13
|
+
return m(i, f({
|
|
14
14
|
get class() {
|
|
15
15
|
return y("relative flex h-full min-h-full w-full has-data-[variant=inset]:bg-sidebar", o.class);
|
|
16
16
|
}
|
|
@@ -59,7 +59,7 @@ const V = (e) => {
|
|
|
59
59
|
const o = E(e), {
|
|
60
60
|
toggle: n
|
|
61
61
|
} = S(o);
|
|
62
|
-
return
|
|
62
|
+
return u(D.Provider, {
|
|
63
63
|
get value() {
|
|
64
64
|
return k(o, n);
|
|
65
65
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createComponent as d, mergeProps as s,
|
|
1
|
+
import { createComponent as d, mergeProps as s, memo as p, spread as i, template as n, delegateEvents as g } from "solid-js/web";
|
|
2
2
|
import { cn as l } from "../../node_modules/.bun/tailwind-variants@3.2.2_7ac958b541464b98/node_modules/tailwind-variants/dist/index.js";
|
|
3
3
|
import m from "../../_virtual/side-navigation.js";
|
|
4
4
|
import { Button as v } from "../Button.js";
|
|
@@ -7,7 +7,7 @@ import { Separator as w } from "../Separator.js";
|
|
|
7
7
|
import { useSidebar as u } from "./context.js";
|
|
8
8
|
import { splitProps as o } from "solid-js";
|
|
9
9
|
import { ui_sidebar_toggle as b } from "../../paraglide/messages/ui_sidebar_toggle.js";
|
|
10
|
-
var k = /* @__PURE__ */
|
|
10
|
+
var k = /* @__PURE__ */ n("<button data-sidebar=rail data-slot=sidebar-rail tabindex=-1>"), y = /* @__PURE__ */ n("<main data-slot=sidebar-inset>"), C = /* @__PURE__ */ n("<input data-slot=sidebar-input data-sidebar=input>"), z = /* @__PURE__ */ n("<div data-slot=sidebar-header data-sidebar=header>"), A = /* @__PURE__ */ n("<div data-slot=sidebar-footer data-sidebar=footer>"), G = /* @__PURE__ */ n("<div data-slot=sidebar-group data-sidebar=group>"), I = /* @__PURE__ */ n("<div data-slot=sidebar-group-label data-sidebar=group-label>"), P = /* @__PURE__ */ n("<button data-slot=sidebar-group-action data-sidebar=group-action>"), T = /* @__PURE__ */ n("<div data-slot=sidebar-group-content data-sidebar=group-content>");
|
|
11
11
|
const D = (r) => {
|
|
12
12
|
const [e, t] = o(r, ["class", "onClick"]), {
|
|
13
13
|
toggleSidebar: a
|
|
@@ -41,7 +41,7 @@ const D = (r) => {
|
|
|
41
41
|
var c = k();
|
|
42
42
|
return c.$$click = () => {
|
|
43
43
|
a();
|
|
44
|
-
},
|
|
44
|
+
}, i(c, s({
|
|
45
45
|
get "aria-label"() {
|
|
46
46
|
return b();
|
|
47
47
|
},
|
|
@@ -54,7 +54,7 @@ const D = (r) => {
|
|
|
54
54
|
const [e, t] = o(r, ["class"]);
|
|
55
55
|
return (() => {
|
|
56
56
|
var a = y();
|
|
57
|
-
return
|
|
57
|
+
return i(a, s({
|
|
58
58
|
get class() {
|
|
59
59
|
return l("md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 relative flex w-full flex-1 flex-col bg-background", e.class);
|
|
60
60
|
}
|
|
@@ -64,7 +64,7 @@ const D = (r) => {
|
|
|
64
64
|
const [e, t] = o(r, ["class"]);
|
|
65
65
|
return (() => {
|
|
66
66
|
var a = C();
|
|
67
|
-
return
|
|
67
|
+
return i(a, s({
|
|
68
68
|
get class() {
|
|
69
69
|
return l("min-w-0 text-base md:text-sm flex w-full bg-transparent transition-colors outline-none placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 data-readonly:cursor-default", "h-8 px-2.5 py-1 rounded-lg border border-input focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:bg-input/50 data-invalid:border-destructive data-invalid:ring-[3px] data-invalid:ring-destructive/20 data-readonly:focus-visible:border-input data-readonly:focus-visible:ring-0 dark:bg-input/30 dark:disabled:bg-input/80 dark:data-invalid:border-destructive/50 dark:data-invalid:ring-destructive/40", "h-8 w-full bg-background shadow-none", e.class);
|
|
70
70
|
}
|
|
@@ -74,7 +74,7 @@ const D = (r) => {
|
|
|
74
74
|
const [e, t] = o(r, ["class"]);
|
|
75
75
|
return (() => {
|
|
76
76
|
var a = z();
|
|
77
|
-
return
|
|
77
|
+
return i(a, s({
|
|
78
78
|
get class() {
|
|
79
79
|
return l("gap-2 p-2 flex flex-col", e.class);
|
|
80
80
|
}
|
|
@@ -84,7 +84,7 @@ const D = (r) => {
|
|
|
84
84
|
const [e, t] = o(r, ["class"]);
|
|
85
85
|
return (() => {
|
|
86
86
|
var a = A();
|
|
87
|
-
return
|
|
87
|
+
return i(a, s({
|
|
88
88
|
get class() {
|
|
89
89
|
return l("gap-2 p-2 flex flex-col", e.class);
|
|
90
90
|
}
|
|
@@ -134,7 +134,7 @@ const D = (r) => {
|
|
|
134
134
|
const [e, t] = o(r, ["class"]);
|
|
135
135
|
return (() => {
|
|
136
136
|
var a = G();
|
|
137
|
-
return
|
|
137
|
+
return i(a, s({
|
|
138
138
|
get class() {
|
|
139
139
|
return l("p-2 min-w-0 relative flex w-full flex-col", e.class);
|
|
140
140
|
}
|
|
@@ -144,7 +144,7 @@ const D = (r) => {
|
|
|
144
144
|
const [e, t] = o(r, ["class"]);
|
|
145
145
|
return (() => {
|
|
146
146
|
var a = I();
|
|
147
|
-
return
|
|
147
|
+
return i(a, s({
|
|
148
148
|
get class() {
|
|
149
149
|
return l("h-8 px-2 text-xs group-data-[collapsible=icon]:-mt-8 [&>svg]:size-4 flex shrink-0 items-center rounded-md text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:shrink-0", e.class);
|
|
150
150
|
}
|
|
@@ -154,7 +154,7 @@ const D = (r) => {
|
|
|
154
154
|
const [e, t] = o(r, ["class"]);
|
|
155
155
|
return (() => {
|
|
156
156
|
var a = P();
|
|
157
|
-
return
|
|
157
|
+
return i(a, s({
|
|
158
158
|
get class() {
|
|
159
159
|
return l("top-3.5 right-3 w-5 p-0 [&>svg]:size-4 after:-inset-2 md:after:hidden absolute flex aspect-square items-center justify-center rounded-md text-sidebar-foreground ring-sidebar-ring outline-hidden transition-transform group-data-[collapsible=icon]:hidden after:absolute hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:shrink-0", e.class);
|
|
160
160
|
}
|
|
@@ -164,7 +164,7 @@ const D = (r) => {
|
|
|
164
164
|
const [e, t] = o(r, ["class"]);
|
|
165
165
|
return (() => {
|
|
166
166
|
var a = T();
|
|
167
|
-
return
|
|
167
|
+
return i(a, s({
|
|
168
168
|
get class() {
|
|
169
169
|
return l("text-sm w-full", e.class);
|
|
170
170
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createComponent as t, Portal as s,
|
|
2
|
-
import {
|
|
1
|
+
import { createComponent as t, Portal as s, insert as a, template as l } from "solid-js/web";
|
|
2
|
+
import { Toaster as c, createToaster as u, toast_exports as o } from "../../node_modules/.bun/@ark-ui_solid@5.34.1_2e1854f049906f04/node_modules/@ark-ui/solid/dist/chunk/4OJLSY6B.js";
|
|
3
3
|
import { Show as r } from "solid-js";
|
|
4
4
|
import { cn as n } from "../../node_modules/.bun/tailwind-variants@3.2.2_7ac958b541464b98/node_modules/tailwind-variants/dist/index.js";
|
|
5
5
|
import d from "../../_virtual/check-circle.js";
|
|
@@ -9,7 +9,7 @@ import h from "../../_virtual/info.js";
|
|
|
9
9
|
import p from "../../_virtual/warning.js";
|
|
10
10
|
import { Spinner as f } from "../Spinner.js";
|
|
11
11
|
var x = /* @__PURE__ */ l('<div class="gap-1 grid">');
|
|
12
|
-
const w =
|
|
12
|
+
const w = u({
|
|
13
13
|
placement: "bottom-end",
|
|
14
14
|
overlap: !0,
|
|
15
15
|
gap: 16
|
|
@@ -115,7 +115,7 @@ const w = c({
|
|
|
115
115
|
}
|
|
116
116
|
}), D = () => t(s, {
|
|
117
117
|
get children() {
|
|
118
|
-
return t(
|
|
118
|
+
return t(c, {
|
|
119
119
|
toaster: w,
|
|
120
120
|
children: (e) => t(b, {
|
|
121
121
|
toast: e
|
package/dist/index.js
CHANGED
|
@@ -2,26 +2,26 @@ import { cn as o, cnMerge as t, tv as i } from "./node_modules/.bun/tailwind-var
|
|
|
2
2
|
import { LocaleProvider as c } from "./Locale.js";
|
|
3
3
|
import { ThemeProvider as x, useTheme as l } from "./Theme.js";
|
|
4
4
|
import { createMediaQuery as s } from "./primitives/createMediaQuery.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
5
|
+
import { ClientOnly as n } from "./node_modules/.bun/@ark-ui_solid@5.34.1_2e1854f049906f04/node_modules/@ark-ui/solid/dist/chunk/LXG74MYL.js";
|
|
6
|
+
import { DownloadTrigger as C } from "./node_modules/.bun/@ark-ui_solid@5.34.1_2e1854f049906f04/node_modules/@ark-ui/solid/dist/chunk/TYHUUGLH.js";
|
|
7
|
+
import { FocusTrap as g } from "./node_modules/.bun/@ark-ui_solid@5.34.1_2e1854f049906f04/node_modules/@ark-ui/solid/dist/chunk/BRHQTJMC.js";
|
|
8
|
+
import { format_exports as h } from "./node_modules/.bun/@ark-ui_solid@5.34.1_2e1854f049906f04/node_modules/@ark-ui/solid/dist/chunk/262SJY3P.js";
|
|
9
|
+
import { Frame as F } from "./node_modules/.bun/@ark-ui_solid@5.34.1_2e1854f049906f04/node_modules/@ark-ui/solid/dist/chunk/65QK7XXR.js";
|
|
10
|
+
import { Highlight as _ } from "./node_modules/.bun/@ark-ui_solid@5.34.1_2e1854f049906f04/node_modules/@ark-ui/solid/dist/chunk/OWH3LOUE.js";
|
|
11
|
+
import { json_tree_view_exports as y } from "./node_modules/.bun/@ark-ui_solid@5.34.1_2e1854f049906f04/node_modules/@ark-ui/solid/dist/chunk/ZMQW6EBL.js";
|
|
12
|
+
import { Presence as M } from "./node_modules/.bun/@ark-ui_solid@5.34.1_2e1854f049906f04/node_modules/@ark-ui/solid/dist/chunk/NEU4F4NG.js";
|
|
13
13
|
import { createFileTreeCollection as A, createGridCollection as D, createListCollection as G, createTreeCollection as H, useAsyncList as J, useListCollection as O } from "./node_modules/.bun/@ark-ui_solid@5.34.1_2e1854f049906f04/node_modules/@ark-ui/solid/dist/chunk/EFII6TXL.js";
|
|
14
14
|
import { cx as V } from "./node_modules/.bun/tailwind-variants@3.2.2_7ac958b541464b98/node_modules/tailwind-variants/dist/chunk-LQJYWU4O.js";
|
|
15
15
|
export {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
16
|
+
n as ClientOnly,
|
|
17
|
+
C as DownloadTrigger,
|
|
18
|
+
g as FocusTrap,
|
|
19
|
+
h as Format,
|
|
20
|
+
F as Frame,
|
|
21
|
+
_ as Highlight,
|
|
22
|
+
y as JsonTreeView,
|
|
23
23
|
c as LocaleProvider,
|
|
24
|
-
|
|
24
|
+
M as Presence,
|
|
25
25
|
x as ThemeProvider,
|
|
26
26
|
o as cn,
|
|
27
27
|
t as cnMerge,
|
|
@@ -6,7 +6,7 @@ import { ark as P } from "./UFYZ7HLU.js";
|
|
|
6
6
|
import { createContext as E } from "./UZJJWJQM.js";
|
|
7
7
|
import { __export as I } from "./7IUG3E2V.js";
|
|
8
8
|
import { Index as R, splitProps as T, createMemo as l, For as _ } from "solid-js";
|
|
9
|
-
import {
|
|
9
|
+
import { nodeToString as S, nodeToValue as D, getRootNode as K, keyPathToKey as N } from "../../../../../../@zag-js_json-tree-utils@1.35.3/node_modules/@zag-js/json-tree-utils/dist/node-conversion.js";
|
|
10
10
|
import { jsonNodeToElement as A } from "../../../../../../@zag-js_json-tree-utils@1.35.3/node_modules/@zag-js/json-tree-utils/dist/data-type.js";
|
|
11
11
|
import { getAccessibleDescription as G } from "../../../../../../@zag-js_json-tree-utils@1.35.3/node_modules/@zag-js/json-tree-utils/dist/accessibility.js";
|
|
12
12
|
function q(e, t) {
|
|
@@ -22,9 +22,9 @@ var [y, L] = E({
|
|
|
22
22
|
providerName: "<JsonTreeViewPropsProvider />"
|
|
23
23
|
}), O = f(), Q = (e) => {
|
|
24
24
|
const [t, a] = O(e, ["maxPreviewItems", "collapseStringsAfterLength", "quotesOnKeys", "groupArraysAfterLength", "showNonenumerable"]), [n, i] = T(a, ["data", "defaultExpandedDepth"]), u = l(() => j({
|
|
25
|
-
nodeToValue:
|
|
26
|
-
nodeToString:
|
|
27
|
-
rootNode:
|
|
25
|
+
nodeToValue: D,
|
|
26
|
+
nodeToString: S,
|
|
27
|
+
rootNode: K(n.data)
|
|
28
28
|
})), c = l(() => n.defaultExpandedDepth != null ? q(u(), n.defaultExpandedDepth) : void 0);
|
|
29
29
|
return r(y, {
|
|
30
30
|
value: t,
|