@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":"Select.js","sources":["../../src/components/Select.tsx"],"sourcesContent":["import { Select as SelectPrimitive } from '@ark-ui/solid/select';\nimport {\n type Component,\n type ComponentProps,\n type JSX,\n type JSXElement,\n For,\n splitProps,\n} from 'solid-js';\nimport { cn } from 'tailwind-variants';\nimport CheckIcon from '~icons/material-symbols/check';\nimport CloseIcon from '~icons/material-symbols/close';\nimport ExpandMoreIcon from '~icons/material-symbols/expand-more';\n\nexport const SelectControl = SelectPrimitive.Control;\nexport const SelectItemContext = SelectPrimitive.ItemContext;\nexport const SelectHiddenSelect = SelectPrimitive.HiddenSelect;\nexport const SelectList: Component<SelectPrimitive.ListProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <SelectPrimitive.List\n data-slot='select-list'\n class={cn('p-1 max-h-[min(var(--available-height),300px)] overflow-y-auto', local.class)}\n {...others}\n />\n );\n};\nexport const SelectContext = SelectPrimitive.Context;\n\ntype SelectComponent = (<TItem extends { value: string; label: string }>(\n props: SelectPrimitive.RootProps<TItem> & { class?: string },\n) => JSXElement) & {\n Tabs: <TItem extends { value: string; label: string }>(\n props: SelectTabsProps<TItem>,\n ) => JSXElement;\n};\n\nexport type SelectTabsTab<TItem extends { value: string; label: string }> = {\n value: TItem['value'];\n label: string;\n disabled?: boolean;\n};\n\nexport type SelectTabsProps<TItem extends { value: string; label: string }> =\n ComponentProps<'div'> & {\n items: SelectTabsTab<TItem>[];\n value?: TItem['value'];\n onValueChange?: (value: TItem['value']) => void;\n };\n\nconst SelectTabs = <TItem extends { value: string; label: string }>(\n props: SelectTabsProps<TItem>,\n): JSXElement => {\n const [local, others] = splitProps(props, ['class', 'items', 'value', 'onValueChange']);\n return (\n <div\n role='tablist'\n data-slot='select-tabs'\n class={cn('gap-1 p-1 inline-flex rounded-md bg-muted', local.class)}\n {...others}\n >\n <For each={local.items}>\n {(tab) => {\n const isActive = (): boolean => local.value === tab.value;\n return (\n <button\n type='button'\n role='tab'\n disabled={tab.disabled === true}\n aria-selected={isActive()}\n data-state={isActive() ? 'active' : 'inactive'}\n class={cn(\n 'h-8 px-3 text-sm rounded-sm transition-colors',\n 'data-[state=active]:shadow-sm data-[state=active]:bg-background data-[state=active]:text-foreground',\n 'data-[state=inactive]:text-muted-foreground hover:data-[state=inactive]:text-foreground',\n 'disabled:pointer-events-none disabled:opacity-50',\n )}\n onClick={() => {\n if (typeof local.onValueChange === 'function' && tab.disabled !== true) {\n local.onValueChange(tab.value);\n }\n }}\n >\n {tab.label}\n </button>\n );\n }}\n </For>\n </div>\n );\n};\n\nconst SelectRoot = <TItem extends { value: string; label: string }>(\n props: SelectPrimitive.RootProps<TItem> & { class?: string },\n): JSXElement => {\n const [local, others] = splitProps(props, ['class', 'positioning']);\n\n const positioning: NonNullable<SelectPrimitive.RootProps<TItem>['positioning']> = {\n placement: 'bottom-start',\n gutter: 4,\n sameWidth: true,\n ...local.positioning,\n };\n\n return (\n <SelectPrimitive.Root\n class={cn('flex w-full flex-col', local.class)}\n positioning={positioning}\n {...others}\n />\n );\n};\n\nexport const Select: SelectComponent = Object.assign(SelectRoot, {\n Tabs: SelectTabs as SelectComponent['Tabs'],\n});\n\nexport const SelectLabel: Component<SelectPrimitive.LabelProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <SelectPrimitive.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 SelectGroup: Component<SelectPrimitive.ItemGroupProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <SelectPrimitive.ItemGroup\n data-slot='select-group'\n class={cn('scroll-my-1', local.class)}\n {...others}\n />\n );\n};\n\nexport const SelectValue: Component<SelectPrimitive.ValueTextProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <SelectPrimitive.ValueText\n data-slot='select-value'\n class={cn('flex flex-1 text-left', local.class)}\n {...others}\n />\n );\n};\n\nexport const SelectTrigger: Component<\n SelectPrimitive.TriggerProps & { size?: 'sm' | 'default' }\n> = (props) => {\n const [local, others] = splitProps(props, ['class', 'size']);\n const size = local.size ?? 'default';\n\n return (\n <SelectPrimitive.Trigger\n data-slot='select-trigger'\n data-size={size}\n class={cn(\n 'px-2.5 text-sm *:data-[slot=select-value]:gap-1.5 [&_svg:not([class*=\"size-\"])]:size-4 gap-1.5 min-w-0 shadow-xs flex w-full items-center justify-between rounded-lg border border-input bg-transparent whitespace-nowrap transition-[color,box-shadow] outline-none select-none disabled:cursor-not-allowed disabled:opacity-50 data-placeholder-shown:text-muted-foreground *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center dark:bg-input/30 dark:hover:bg-input/50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*=\"size-\"])]:text-muted-foreground',\n 'data-[size=default]:h-10 data-[size=sm]:h-8 data-[size=sm]:rounded-[min(var(--radius-md),10px)]',\n 'focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 data-[focus-visible]:border-ring data-[focus-visible]:ring-[3px] data-[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]:cursor-default data-[readonly=true]:focus-visible:border-input data-[readonly=true]:focus-visible:ring-0 data-[readonly=true]:data-[focus-visible]:border-input data-[readonly=true]:data-[focus-visible]:ring-0',\n local.class,\n )}\n {...others}\n />\n );\n};\n\nexport const SelectIndicator: Component<SelectPrimitive.IndicatorProps> = (props) => {\n const [local, others] = splitProps(props, ['class', 'children']);\n return (\n <SelectPrimitive.Indicator\n class={cn('opacity-50 transition-transform data-[state=open]:rotate-180', local.class)}\n {...others}\n >\n {local.children ?? <ExpandMoreIcon class='size-4' />}\n </SelectPrimitive.Indicator>\n );\n};\n\nconst callEventHandler = <\n TElement,\n THandlerEvent extends Event,\n TEvent extends THandlerEvent & { currentTarget: TElement; target: Element },\n>(\n handler: JSX.EventHandlerUnion<TElement, THandlerEvent> | undefined,\n event: TEvent,\n): void => {\n if (typeof handler === 'function') {\n handler(event);\n return;\n }\n if (Array.isArray(handler)) {\n const [boundHandler, boundData] = handler;\n boundHandler(boundData, event);\n }\n};\n\nexport const SelectClearTrigger: Component<SelectPrimitive.ClearTriggerProps> = (props) => {\n const [local, others] = splitProps(props, [\n 'class',\n 'children',\n 'tabIndex',\n 'onClick',\n 'onKeyDown',\n ]);\n return (\n <SelectPrimitive.ClearTrigger\n class={cn(\n 'p-0.5 rounded-[4px] text-muted-foreground transition-colors hover:text-foreground focus-visible:text-foreground focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-none',\n local.class,\n )}\n onClick={(event: MouseEvent & { currentTarget: HTMLButtonElement; target: Element }) => {\n event.stopPropagation();\n callEventHandler(local.onClick, event);\n }}\n onKeyDown={(event: KeyboardEvent & { currentTarget: HTMLButtonElement; target: Element }) => {\n if (event.key === 'Enter' || event.key === ' ') {\n event.stopPropagation();\n }\n callEventHandler(local.onKeyDown, event);\n }}\n {...others}\n tabIndex={local.tabIndex ?? 0}\n >\n {local.children ?? <CloseIcon class='size-3.5' />}\n </SelectPrimitive.ClearTrigger>\n );\n};\n\nexport const SelectPositioner: Component<SelectPrimitive.PositionerProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return <SelectPrimitive.Positioner class={cn('isolate z-50', local.class)} {...others} />;\n};\n\nexport const SelectContent: Component<SelectPrimitive.ContentProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <SelectPrimitive.Content\n data-slot='select-content'\n class={cn(\n 'shadow-md relative isolate z-50 max-h-(--available-height) w-(--reference-width) min-w-[8rem] origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-md border border-input bg-popover text-popover-foreground duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95',\n 'outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 data-[focus-visible]:border-ring data-[focus-visible]:ring-[3px] data-[focus-visible]:ring-ring/50',\n local.class,\n )}\n {...others}\n />\n );\n};\n\nexport const SelectItemGroupLabel: Component<SelectPrimitive.ItemGroupLabelProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <SelectPrimitive.ItemGroupLabel\n data-slot='select-group-label'\n class={cn('px-1.5 py-1 text-xs text-muted-foreground', local.class)}\n {...others}\n />\n );\n};\n\nexport const SelectItem: Component<SelectPrimitive.ItemProps> = (props) => {\n const [local, others] = splitProps(props, ['class', 'children']);\n return (\n <SelectPrimitive.Item\n data-slot='select-item'\n class={cn(\n \"gap-2 py-1.5 pr-8 pl-2 text-sm [&_svg:not([class*='size-'])]:size-4 *:[span]:last:gap-2 relative flex w-full cursor-default items-center rounded-sm outline-hidden select-none data-disabled:pointer-events-none data-highlighted:bg-accent data-highlighted:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 *:[span]:last:flex *:[span]:last:items-center\",\n local.class,\n )}\n {...others}\n >\n <SelectPrimitive.ItemText class='gap-2 flex flex-1 shrink-0 whitespace-nowrap'>\n {local.children}\n </SelectPrimitive.ItemText>\n <SelectPrimitive.ItemIndicator class='right-2 size-4 pointer-events-none absolute flex items-center justify-center'>\n <CheckIcon class='pointer-events-none' />\n </SelectPrimitive.ItemIndicator>\n </SelectPrimitive.Item>\n );\n};\n\nexport const SelectSeparator: Component<ComponentProps<'div'>> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <div\n data-slot='select-separator'\n class={cn('-mx-1 my-1 pointer-events-none h-px bg-border', local.class)}\n {...others}\n />\n );\n};\n"],"names":["SelectControl","SelectPrimitive","Control","SelectItemContext","ItemContext","SelectHiddenSelect","HiddenSelect","SelectList","props","local","others","splitProps","_$createComponent","List","_$mergeProps","cn","class","SelectContext","Context","SelectTabs","_el$","_tmpl$","_$spread","_$insert","For","each","items","children","tab","isActive","value","_el$2","_tmpl$2","$$click","onValueChange","disabled","label","_$effect","_p$","_v$","_v$2","_v$3","_v$4","e","t","_$setAttribute","a","o","_$className","undefined","SelectRoot","positioning","placement","gutter","sameWidth","Root","Select","Object","assign","Tabs","SelectLabel","Label","SelectGroup","ItemGroup","SelectValue","ValueText","SelectTrigger","size","Trigger","SelectIndicator","Indicator","ExpandMoreIcon","callEventHandler","handler","event","Array","isArray","boundHandler","boundData","SelectClearTrigger","ClearTrigger","onClick","stopPropagation","onKeyDown","key","tabIndex","CloseIcon","SelectPositioner","Positioner","SelectContent","Content","SelectIt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;AAAA,MAAA,CAAA,GAAAf,EAEhBX,EAAgB+F,eAAa;AAAA,QAAA,OAAA;AAAA,QAAA,IAAArE,WAAA;AAAA,iBAAAf,EAC3BqF,GAAS;AAAA,YAAA,OAAA;AAAA,UAAA,CAAA;AAAA,QAAA;AAAA,MAAA,CAAA,CAAA;AAAA,IAAA;AAAA,EAAA,CAAA,CAAA;AAIlB,GAEaC,KAAqD1F,CAAAA,MAAU;AAC1E,QAAM,CAACC,GAAOC,CAAM,IAAIC,EAAWH,GAAO,CAAC,OAAO,CAAC;AACnD,UAAA,MAAA;AAAA,QAAA2F,IAAAC,EAAAA;AAAA9E,WAAAA,EAAA6E,GAAArF,EAAA;AAAA,MAAA,IAAA,QAAA;AAAA,eAGWC,EAAG,iDAAiDN,EAAMO,KAAK;AAAA,MAAC;AAAA,IAAA,GACnEN,CAAM,GAAA,IAAA,EAAA,GAAAyF;AAAAA,EAAA,GAAA;AAGhB;AAAEE,EAAA,CAAA,OAAA,CAAA;"}
|
|
1
|
+
{"version":3,"file":"Select.js","sources":["../../src/components/Select.tsx"],"sourcesContent":["import { Select as SelectPrimitive } from '@ark-ui/solid/select';\nimport {\n type Component,\n type ComponentProps,\n type JSX,\n type JSXElement,\n For,\n splitProps,\n} from 'solid-js';\nimport { cn } from 'tailwind-variants';\nimport CheckIcon from '~icons/material-symbols/check';\nimport CloseIcon from '~icons/material-symbols/close';\nimport ExpandMoreIcon from '~icons/material-symbols/expand-more';\n\nexport const SelectControl = SelectPrimitive.Control;\nexport const SelectItemContext = SelectPrimitive.ItemContext;\nexport const SelectHiddenSelect = SelectPrimitive.HiddenSelect;\nexport const SelectList: Component<SelectPrimitive.ListProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <SelectPrimitive.List\n data-slot='select-list'\n class={cn('p-1 max-h-[min(var(--available-height),300px)] overflow-y-auto', local.class)}\n {...others}\n />\n );\n};\nexport const SelectContext = SelectPrimitive.Context;\n\ntype SelectComponent = (<TItem extends { value: string; label: string }>(\n props: SelectPrimitive.RootProps<TItem> & { class?: string },\n) => JSXElement) & {\n Tabs: <TItem extends { value: string; label: string }>(\n props: SelectTabsProps<TItem>,\n ) => JSXElement;\n};\n\nexport type SelectTabsTab<TItem extends { value: string; label: string }> = {\n value: TItem['value'];\n label: string;\n disabled?: boolean;\n};\n\nexport type SelectTabsProps<TItem extends { value: string; label: string }> =\n ComponentProps<'div'> & {\n items: SelectTabsTab<TItem>[];\n value?: TItem['value'];\n onValueChange?: (value: TItem['value']) => void;\n };\n\nconst SelectTabs = <TItem extends { value: string; label: string }>(\n props: SelectTabsProps<TItem>,\n): JSXElement => {\n const [local, others] = splitProps(props, ['class', 'items', 'value', 'onValueChange']);\n return (\n <div\n role='tablist'\n data-slot='select-tabs'\n class={cn('gap-1 p-1 inline-flex rounded-md bg-muted', local.class)}\n {...others}\n >\n <For each={local.items}>\n {(tab) => {\n const isActive = (): boolean => local.value === tab.value;\n return (\n <button\n type='button'\n role='tab'\n disabled={tab.disabled === true}\n aria-selected={isActive()}\n data-state={isActive() ? 'active' : 'inactive'}\n class={cn(\n 'h-8 px-3 text-sm rounded-sm transition-colors',\n 'data-[state=active]:shadow-sm data-[state=active]:bg-background data-[state=active]:text-foreground',\n 'data-[state=inactive]:text-muted-foreground hover:data-[state=inactive]:text-foreground',\n 'disabled:pointer-events-none disabled:opacity-50',\n )}\n onClick={() => {\n if (typeof local.onValueChange === 'function' && tab.disabled !== true) {\n local.onValueChange(tab.value);\n }\n }}\n >\n {tab.label}\n </button>\n );\n }}\n </For>\n </div>\n );\n};\n\nconst SelectRoot = <TItem extends { value: string; label: string }>(\n props: SelectPrimitive.RootProps<TItem> & { class?: string },\n): JSXElement => {\n const [local, others] = splitProps(props, ['class', 'positioning']);\n\n const positioning: NonNullable<SelectPrimitive.RootProps<TItem>['positioning']> = {\n placement: 'bottom-start',\n gutter: 4,\n sameWidth: true,\n ...local.positioning,\n };\n\n return (\n <SelectPrimitive.Root\n class={cn('flex w-full flex-col', local.class)}\n positioning={positioning}\n {...others}\n />\n );\n};\n\nexport const Select: SelectComponent = Object.assign(SelectRoot, {\n Tabs: SelectTabs as SelectComponent['Tabs'],\n});\n\nexport const SelectLabel: Component<SelectPrimitive.LabelProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <SelectPrimitive.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 SelectGroup: Component<SelectPrimitive.ItemGroupProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <SelectPrimitive.ItemGroup\n data-slot='select-group'\n class={cn('scroll-my-1', local.class)}\n {...others}\n />\n );\n};\n\nexport const SelectValue: Component<SelectPrimitive.ValueTextProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <SelectPrimitive.ValueText\n data-slot='select-value'\n class={cn('flex flex-1 text-left', local.class)}\n {...others}\n />\n );\n};\n\nexport const SelectTrigger: Component<\n SelectPrimitive.TriggerProps & { size?: 'sm' | 'default' }\n> = (props) => {\n const [local, others] = splitProps(props, ['class', 'size']);\n const size = local.size ?? 'default';\n\n return (\n <SelectPrimitive.Trigger\n data-slot='select-trigger'\n data-size={size}\n class={cn(\n 'px-2.5 text-sm *:data-[slot=select-value]:gap-1.5 [&_svg:not([class*=\"size-\"])]:size-4 gap-1.5 min-w-0 shadow-xs flex w-full items-center justify-between rounded-lg border border-input bg-transparent whitespace-nowrap transition-[color,box-shadow] outline-none select-none disabled:cursor-not-allowed disabled:opacity-50 data-placeholder-shown:text-muted-foreground *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center dark:bg-input/30 dark:hover:bg-input/50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*=\"size-\"])]:text-muted-foreground',\n 'data-[size=default]:h-10 data-[size=sm]:h-8 data-[size=sm]:rounded-[min(var(--radius-md),10px)]',\n 'focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 data-[focus-visible]:border-ring data-[focus-visible]:ring-[3px] data-[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]:cursor-default data-[readonly=true]:focus-visible:border-input data-[readonly=true]:focus-visible:ring-0 data-[readonly=true]:data-[focus-visible]:border-input data-[readonly=true]:data-[focus-visible]:ring-0',\n local.class,\n )}\n {...others}\n />\n );\n};\n\nexport const SelectIndicator: Component<SelectPrimitive.IndicatorProps> = (props) => {\n const [local, others] = splitProps(props, ['class', 'children']);\n return (\n <SelectPrimitive.Indicator\n class={cn('opacity-50 transition-transform data-[state=open]:rotate-180', local.class)}\n {...others}\n >\n {local.children ?? <ExpandMoreIcon class='size-4' />}\n </SelectPrimitive.Indicator>\n );\n};\n\nconst callEventHandler = <\n TElement,\n THandlerEvent extends Event,\n TEvent extends THandlerEvent & { currentTarget: TElement; target: Element },\n>(\n handler: JSX.EventHandlerUnion<TElement, THandlerEvent> | undefined,\n event: TEvent,\n): void => {\n if (typeof handler === 'function') {\n handler(event);\n return;\n }\n if (Array.isArray(handler)) {\n const [boundHandler, boundData] = handler;\n boundHandler(boundData, event);\n }\n};\n\nexport const SelectClearTrigger: Component<SelectPrimitive.ClearTriggerProps> = (props) => {\n const [local, others] = splitProps(props, [\n 'class',\n 'children',\n 'tabIndex',\n 'onClick',\n 'onKeyDown',\n ]);\n return (\n <SelectPrimitive.ClearTrigger\n class={cn(\n 'p-0.5 rounded-[4px] text-muted-foreground transition-colors hover:text-foreground focus-visible:text-foreground focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-none',\n local.class,\n )}\n onClick={(event: MouseEvent & { currentTarget: HTMLButtonElement; target: Element }) => {\n event.stopPropagation();\n callEventHandler(local.onClick, event);\n }}\n onKeyDown={(event: KeyboardEvent & { currentTarget: HTMLButtonElement; target: Element }) => {\n if (event.key === 'Enter' || event.key === ' ') {\n event.stopPropagation();\n }\n callEventHandler(local.onKeyDown, event);\n }}\n {...others}\n tabIndex={local.tabIndex ?? 0}\n >\n {local.children ?? <CloseIcon class='size-3.5' />}\n </SelectPrimitive.ClearTrigger>\n );\n};\n\nexport const SelectPositioner: Component<SelectPrimitive.PositionerProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return <SelectPrimitive.Positioner class={cn('isolate z-50', local.class)} {...others} />;\n};\n\nexport const SelectContent: Component<SelectPrimitive.ContentProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <SelectPrimitive.Content\n data-slot='select-content'\n class={cn(\n 'shadow-md relative isolate z-50 max-h-(--available-height) w-(--reference-width) min-w-[8rem] origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-md border border-input bg-popover text-popover-foreground duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95',\n 'outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 data-[focus-visible]:border-ring data-[focus-visible]:ring-[3px] data-[focus-visible]:ring-ring/50',\n local.class,\n )}\n {...others}\n />\n );\n};\n\nexport const SelectItemGroupLabel: Component<SelectPrimitive.ItemGroupLabelProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <SelectPrimitive.ItemGroupLabel\n data-slot='select-group-label'\n class={cn('px-1.5 py-1 text-xs text-muted-foreground', local.class)}\n {...others}\n />\n );\n};\n\nexport const SelectItem: Component<SelectPrimitive.ItemProps> = (props) => {\n const [local, others] = splitProps(props, ['class', 'children']);\n return (\n <SelectPrimitive.Item\n data-slot='select-item'\n class={cn(\n \"gap-2 py-1.5 pr-8 pl-2 text-sm [&_svg:not([class*='size-'])]:size-4 *:[span]:last:gap-2 relative flex w-full cursor-default items-center rounded-sm outline-hidden select-none data-disabled:pointer-events-none data-highlighted:bg-accent data-highlighted:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 *:[span]:last:flex *:[span]:last:items-center\",\n local.class,\n )}\n {...others}\n >\n <SelectPrimitive.ItemText class='gap-2 flex flex-1 shrink-0 whitespace-nowrap'>\n {local.children}\n </SelectPrimitive.ItemText>\n <SelectPrimitive.ItemIndicator class='right-2 size-4 pointer-events-none absolute flex items-center justify-center'>\n <CheckIcon class='pointer-events-none' />\n </SelectPrimitive.ItemIndicator>\n </SelectPrimitive.Item>\n );\n};\n\nexport const SelectSeparator: Component<ComponentProps<'div'>> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <div\n data-slot='select-separator'\n class={cn('-mx-1 my-1 pointer-events-none h-px bg-border', local.class)}\n {...others}\n />\n );\n};\n"],"names":["SelectControl","SelectPrimitive","Control","SelectItemContext","ItemContext","SelectHiddenSelect","HiddenSelect","SelectList","props","local","others","splitProps","_$createComponent","List","_$mergeProps","cn","class","SelectContext","Context","SelectTabs","_el$","_tmpl$","_$spread","_$insert","For","each","items","children","tab","isActive","value","_el$2","_tmpl$2","$$click","onValueChange","disabled","label","_$effect","_p$","_v$","_v$2","_v$3","_v$4","e","t","_$setAttribute","a","o","_$className","undefined","SelectRoot","positioning","placement","gutter","sameWidth","Root","Select","Object","assign","Tabs","SelectLabel","Label","SelectGroup","ItemGroup","SelectValue","ValueText","SelectTrigger","size","Trigger","SelectIndicator","Indicator","ExpandMoreIcon","callEventHandler","handler","event","Array","isArray","boundHandler","boundData","SelectClearTrigger","ClearTrigger","onClick","stopPropagation","onKeyDown","key","tabIndex","CloseIcon","SelectPositioner","Positioner","SelectContent","Content","SelectItemGroupLabel","ItemGroupLabel","SelectItem","Item","ItemText","ItemIndicator","CheckIcon","SelectSeparator","_el$3","_tmpl$3","_$delegateEvents"],"mappings":";;;;;;;;AAcO,MAAMA,IAAgBC,EAAgBC,SAChCC,IAAoBF,EAAgBG,aACpCC,IAAqBJ,EAAgBK,cACrCC,IAAoDC,CAAAA,MAAU;AACzE,QAAM,CAACC,GAAOC,CAAM,IAAIC,EAAWH,GAAO,CAAC,OAAO,CAAC;AACnD,SAAAI,EACGX,EAAgBY,MAAIC,EAAA;AAAA,IAAA,aAAA;AAAA,IAAA,IAAA,QAAA;AAAA,aAEZC,EAAG,kEAAkEN,EAAMO,KAAK;AAAA,IAAC;AAAA,EAAA,GACpFN,CAAM,CAAA;AAGhB,GACaO,IAAgBhB,EAAgBiB,SAuBvCC,IAAa,CACjBX,MACe;AACf,QAAM,CAACC,GAAOC,CAAM,IAAIC,EAAWH,GAAO,CAAC,SAAS,SAAS,SAAS,eAAe,CAAC;AACtF,UAAA,MAAA;AAAA,QAAAY,IAAAC,EAAAA;AAAAC,WAAAA,EAAAF,GAAAN,EAAA;AAAA,MAAA,IAAA,QAAA;AAAA,eAIWC,EAAG,6CAA6CN,EAAMO,KAAK;AAAA,MAAC;AAAA,IAAA,GAC/DN,CAAM,GAAA,IAAA,EAAA,GAAAa,EAAAH,GAAAR,EAETY,GAAG;AAAA,MAAA,IAACC,OAAI;AAAA,eAAEhB,EAAMiB;AAAAA,MAAK;AAAA,MAAAC,UAClBC,CAAAA,MAAQ;AACR,cAAMC,IAAWA,MAAepB,EAAMqB,UAAUF,EAAIE;AACpD,gBAAA,MAAA;AAAA,cAAAC,IAAAC,EAAAA;AAAAD,iBAAAA,EAAAE,UAaa,MAAM;AACb,YAAI,OAAOxB,EAAMyB,iBAAkB,cAAcN,EAAIO,aAAa,MAChE1B,EAAMyB,cAAcN,EAAIE,KAAK;AAAA,UAEjC,GAACP,EAAA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AApE,WAAA;AAAA,iBACtBlB,EAAMkB;AAAAA,QAAQ;AAAA,MAAA,CAAA,GAAAf,EAEhBX,EAAgB+F,eAAa;AAAA,QAAA,OAAA;AAAA,QAAA,IAAArE,WAAA;AAAA,iBAAAf,EAC3BqF,GAAS;AAAA,YAAA,OAAA;AAAA,UAAA,CAAA;AAAA,QAAA;AAAA,MAAA,CAAA,CAAA;AAAA,IAAA;AAAA,EAAA,CAAA,CAAA;AAIlB,GAEaC,KAAqD1F,CAAAA,MAAU;AAC1E,QAAM,CAACC,GAAOC,CAAM,IAAIC,EAAWH,GAAO,CAAC,OAAO,CAAC;AACnD,UAAA,MAAA;AAAA,QAAA2F,IAAAC,EAAAA;AAAA9E,WAAAA,EAAA6E,GAAArF,EAAA;AAAA,MAAA,IAAA,QAAA;AAAA,eAGWC,EAAG,iDAAiDN,EAAMO,KAAK;AAAA,MAAC;AAAA,IAAA,GACnEN,CAAM,GAAA,IAAA,EAAA,GAAAyF;AAAAA,EAAA,GAAA;AAGhB;AAAEE,EAAA,CAAA,OAAA,CAAA;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { spread as e, mergeProps as i, template as n } from "solid-js/web";
|
|
2
2
|
import { splitProps as l } from "solid-js";
|
|
3
3
|
import { tv as s } from "../node_modules/.bun/tailwind-variants@3.2.2_7ac958b541464b98/node_modules/tailwind-variants/dist/index.js";
|
|
4
|
-
var p = /* @__PURE__ */
|
|
4
|
+
var p = /* @__PURE__ */ n("<div data-slot=separator>");
|
|
5
5
|
const c = s({
|
|
6
6
|
base: "shrink-0 bg-border",
|
|
7
7
|
variants: {
|
|
@@ -17,7 +17,7 @@ const c = s({
|
|
|
17
17
|
const [r, o] = l(a, ["class", "orientation", "decorative"]);
|
|
18
18
|
return (() => {
|
|
19
19
|
var t = p();
|
|
20
|
-
return
|
|
20
|
+
return e(t, i({
|
|
21
21
|
get "data-orientation"() {
|
|
22
22
|
return r.orientation ?? "horizontal";
|
|
23
23
|
}
|
package/dist/components/Sheet.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createComponent as r, mergeProps as d,
|
|
1
|
+
import { createComponent as r, mergeProps as d, insert as p, spread as m, template as n } from "solid-js/web";
|
|
2
2
|
import { dialog_exports as o } from "../node_modules/.bun/@ark-ui_solid@5.34.1_2e1854f049906f04/node_modules/@ark-ui/solid/dist/chunk/GOIBDXMD.js";
|
|
3
3
|
import { splitProps as l } from "solid-js";
|
|
4
4
|
import { cn as i } from "../node_modules/.bun/tailwind-variants@3.2.2_7ac958b541464b98/node_modules/tailwind-variants/dist/index.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { spread as s, mergeProps as a, template as l } from "solid-js/web";
|
|
2
2
|
import { splitProps as m } 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
|
import { ui_skeleton_loading as p } from "../paraglide/messages/ui_skeleton_loading.js";
|
|
5
|
-
var i = /* @__PURE__ */
|
|
5
|
+
var i = /* @__PURE__ */ l("<div data-slot=skeleton role=progressbar aria-busy=true>");
|
|
6
6
|
const g = (e) => {
|
|
7
7
|
const [t, o] = m(e, ["class"]);
|
|
8
8
|
return (() => {
|
|
9
9
|
var r = i();
|
|
10
|
-
return
|
|
10
|
+
return s(r, a({
|
|
11
11
|
get "aria-label"() {
|
|
12
12
|
return p();
|
|
13
13
|
},
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { createComponent as
|
|
1
|
+
import { createComponent as l, mergeProps as a, spread as f, insert as b, memo as d, template as g } from "solid-js/web";
|
|
2
2
|
import { angle_slider_exports as i } from "../node_modules/.bun/@ark-ui_solid@5.34.1_2e1854f049906f04/node_modules/@ark-ui/solid/dist/chunk/SPOOGCGR.js";
|
|
3
3
|
import { slider_exports as n } from "../node_modules/.bun/@ark-ui_solid@5.34.1_2e1854f049906f04/node_modules/@ark-ui/solid/dist/chunk/QY2YSMFW.js";
|
|
4
4
|
import { splitProps as s } from "solid-js";
|
|
5
5
|
import { cn as o } from "../node_modules/.bun/tailwind-variants@3.2.2_7ac958b541464b98/node_modules/tailwind-variants/dist/index.js";
|
|
6
|
-
var h = /* @__PURE__ */
|
|
6
|
+
var h = /* @__PURE__ */ g('<div data-slot=slider-circle-range><svg class="size-full -rotate-90 text-primary"viewBox="0 0 96 96"aria-hidden=true><circle cx=48 cy=48 r=44 fill=none stroke=currentColor stroke-linecap=round stroke-width=8 pathLength=360 style="stroke-dasharray:var(--value) 360;transition:stroke-dasharray 150ms ease-out">');
|
|
7
7
|
const w = (r) => {
|
|
8
8
|
const [e, t] = s(r, ["class"]);
|
|
9
|
-
return
|
|
9
|
+
return l(n.Root, a({
|
|
10
10
|
get class() {
|
|
11
11
|
return o("flex flex-col data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full", e.class);
|
|
12
12
|
},
|
|
@@ -14,28 +14,28 @@ const w = (r) => {
|
|
|
14
14
|
}, t));
|
|
15
15
|
}, y = (r) => {
|
|
16
16
|
const [e, t] = s(r, ["class"]);
|
|
17
|
-
return
|
|
17
|
+
return l(n.Label, a({
|
|
18
18
|
get class() {
|
|
19
|
-
return o("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", e.class);
|
|
19
|
+
return o("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", e.class);
|
|
20
20
|
}
|
|
21
21
|
}, t));
|
|
22
22
|
}, S = (r) => {
|
|
23
23
|
const [e, t] = s(r, ["class"]);
|
|
24
|
-
return
|
|
24
|
+
return l(n.ValueText, a({
|
|
25
25
|
get class() {
|
|
26
26
|
return o("text-sm mb-2 text-muted-foreground tabular-nums", e.class);
|
|
27
27
|
}
|
|
28
28
|
}, t));
|
|
29
29
|
}, C = (r) => {
|
|
30
30
|
const [e, t] = s(r, ["class"]);
|
|
31
|
-
return
|
|
31
|
+
return l(n.Control, a({
|
|
32
32
|
get class() {
|
|
33
33
|
return o("data-[orientation=vertical]:min-h-40 relative flex w-full touch-none items-center select-none data-[disabled=true]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col", e.class);
|
|
34
34
|
}
|
|
35
35
|
}, t));
|
|
36
36
|
}, z = (r) => {
|
|
37
37
|
const [e, t] = s(r, ["class"]);
|
|
38
|
-
return
|
|
38
|
+
return l(n.Track, a({
|
|
39
39
|
"data-slot": "slider-track",
|
|
40
40
|
get class() {
|
|
41
41
|
return o("data-[orientation=horizontal]:h-1.5 data-[orientation=vertical]:w-1.5 relative grow overflow-hidden rounded-full bg-muted select-none data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full", e.class);
|
|
@@ -43,7 +43,7 @@ const w = (r) => {
|
|
|
43
43
|
}, t));
|
|
44
44
|
}, T = (r) => {
|
|
45
45
|
const [e, t] = s(r, ["class"]);
|
|
46
|
-
return
|
|
46
|
+
return l(n.Range, a({
|
|
47
47
|
"data-slot": "slider-range",
|
|
48
48
|
get class() {
|
|
49
49
|
return o("bg-primary select-none data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full", e.class);
|
|
@@ -51,33 +51,33 @@ const w = (r) => {
|
|
|
51
51
|
}, t));
|
|
52
52
|
}, M = (r) => {
|
|
53
53
|
const [e, t] = s(r, ["class", "children"]);
|
|
54
|
-
return
|
|
54
|
+
return l(n.Thumb, a({
|
|
55
55
|
"data-slot": "slider-thumb",
|
|
56
56
|
get class() {
|
|
57
|
-
return o("size-4 bg-white shadow-sm after:-inset-2 relative block shrink-0 rounded-full border border-ring ring-ring/50 transition-[color,box-shadow] select-none after:absolute hover:ring-[3px] focus-visible:outline-hidden data-active:ring-[3px] data-disabled:pointer-events-none data-[disabled=true]:opacity-50 data-[focus-visible]:ring-[3px] data-[focus-visible]:ring-ring/50
|
|
57
|
+
return o("size-4 bg-white shadow-sm after:-inset-2 relative block shrink-0 rounded-full border border-ring ring-ring/50 transition-[color,box-shadow] select-none after:absolute hover:ring-[3px] focus-visible:outline-hidden has-focus-visible:ring-[3px] has-focus-visible:ring-ring/50 data-active:ring-[3px] data-disabled:pointer-events-none data-[disabled=true]:opacity-50 data-[focus-visible]:ring-[3px] data-[focus-visible]:ring-ring/50", e.class);
|
|
58
58
|
}
|
|
59
59
|
}, t, {
|
|
60
60
|
get children() {
|
|
61
|
-
return [d(() => e.children),
|
|
61
|
+
return [d(() => e.children), l(n.HiddenInput, {})];
|
|
62
62
|
}
|
|
63
63
|
}));
|
|
64
64
|
}, _ = (r) => {
|
|
65
65
|
const [e, t] = s(r, ["class"]);
|
|
66
|
-
return
|
|
66
|
+
return l(n.MarkerGroup, a({
|
|
67
67
|
get class() {
|
|
68
|
-
return o("mt-2", e.class);
|
|
68
|
+
return o("mt-2 mb-2", e.class);
|
|
69
69
|
}
|
|
70
70
|
}, t));
|
|
71
71
|
}, L = (r) => {
|
|
72
72
|
const [e, t] = s(r, ["class"]);
|
|
73
|
-
return
|
|
73
|
+
return l(n.Marker, a({
|
|
74
74
|
get class() {
|
|
75
|
-
return o("
|
|
75
|
+
return o("-translate-x-1/2 text-[10px] text-muted-foreground data-[orientation=vertical]:-translate-y-1/2 data-[state=at-value]:text-foreground", e.class);
|
|
76
76
|
}
|
|
77
77
|
}, t));
|
|
78
78
|
}, R = (r) => {
|
|
79
79
|
const [e, t] = s(r, ["class", "children"]);
|
|
80
|
-
return
|
|
80
|
+
return l(i.Root, a({
|
|
81
81
|
get class() {
|
|
82
82
|
return o("gap-4 flex flex-col items-center", e.class);
|
|
83
83
|
},
|
|
@@ -89,7 +89,7 @@ const w = (r) => {
|
|
|
89
89
|
}));
|
|
90
90
|
}, G = (r) => {
|
|
91
91
|
const [e, t] = s(r, ["class"]);
|
|
92
|
-
return
|
|
92
|
+
return l(i.Label, a({
|
|
93
93
|
get class() {
|
|
94
94
|
return o("text-sm font-medium leading-none select-none", e.class);
|
|
95
95
|
},
|
|
@@ -97,7 +97,7 @@ const w = (r) => {
|
|
|
97
97
|
}, t));
|
|
98
98
|
}, V = (r) => {
|
|
99
99
|
const [e, t] = s(r, ["class"]);
|
|
100
|
-
return
|
|
100
|
+
return l(i.ValueText, a({
|
|
101
101
|
get class() {
|
|
102
102
|
return o("text-sm text-muted-foreground tabular-nums", e.class);
|
|
103
103
|
},
|
|
@@ -105,7 +105,7 @@ const w = (r) => {
|
|
|
105
105
|
}, t));
|
|
106
106
|
}, $ = (r) => {
|
|
107
107
|
const [e, t] = s(r, ["class"]);
|
|
108
|
-
return
|
|
108
|
+
return l(i.Control, a({
|
|
109
109
|
get class() {
|
|
110
110
|
return o("size-24 relative flex items-center justify-center rounded-full bg-muted select-none", "after:inset-2 after:absolute after:rounded-full after:bg-background", "data-[disabled=true]:opacity-50 data-[focus-visible]:ring-[3px] data-[focus-visible]:ring-ring/50", e.class);
|
|
111
111
|
},
|
|
@@ -115,29 +115,29 @@ const w = (r) => {
|
|
|
115
115
|
const [e, t] = s(r, ["class", "children"]);
|
|
116
116
|
return (() => {
|
|
117
117
|
var c = h(), u = c.firstChild;
|
|
118
|
-
return u.firstChild,
|
|
118
|
+
return u.firstChild, f(c, a({
|
|
119
119
|
get class() {
|
|
120
|
-
return o("inset-0
|
|
120
|
+
return o("inset-0 pointer-events-none absolute z-10 rounded-full", e.class);
|
|
121
121
|
}
|
|
122
|
-
}, t), !1, !0),
|
|
122
|
+
}, t), !1, !0), b(c, () => e.children, null), c;
|
|
123
123
|
})();
|
|
124
124
|
}, I = (r) => {
|
|
125
125
|
const [e, t] = s(r, ["class", "children"]);
|
|
126
|
-
return
|
|
126
|
+
return l(i.Thumb, a({
|
|
127
127
|
get class() {
|
|
128
|
-
return o("inset-0 z-20
|
|
128
|
+
return o("inset-0 absolute z-20 rounded-full outline-none", "before:top-1 before:size-4 before:bg-white before:shadow-sm before:absolute before:left-1/2 before:-translate-x-1/2 before:-translate-y-1/2 before:rounded-full before:border before:border-ring before:transition-[color,box-shadow] before:data-active:ring-[3px] before:data-active:ring-ring/50", "has-focus-visible:ring-[3px] has-focus-visible:ring-ring/50 data-[focus-visible]:ring-[3px] data-[focus-visible]:ring-ring/50", e.class);
|
|
129
129
|
},
|
|
130
130
|
"data-slot": "slider-circle-thumb"
|
|
131
131
|
}, t, {
|
|
132
132
|
get children() {
|
|
133
|
-
return [d(() => e.children),
|
|
133
|
+
return [d(() => e.children), l(i.HiddenInput, {})];
|
|
134
134
|
}
|
|
135
135
|
}));
|
|
136
136
|
}, P = (r) => {
|
|
137
137
|
const [e, t] = s(r, ["class", "children"]);
|
|
138
|
-
return
|
|
138
|
+
return l(i.MarkerGroup, a({
|
|
139
139
|
get class() {
|
|
140
|
-
return o("inset-0
|
|
140
|
+
return o("inset-0 pointer-events-none absolute z-20 rounded-full", e.class);
|
|
141
141
|
}
|
|
142
142
|
}, t, {
|
|
143
143
|
get children() {
|
|
@@ -146,7 +146,7 @@ const w = (r) => {
|
|
|
146
146
|
}));
|
|
147
147
|
}, j = (r) => {
|
|
148
148
|
const [e, t] = s(r, ["class", "children"]);
|
|
149
|
-
return
|
|
149
|
+
return l(i.Marker, a({
|
|
150
150
|
get class() {
|
|
151
151
|
return o("inset-0 absolute rounded-full", "before:top-0 before:w-0.5 before:h-2 before:absolute before:left-1/2 before:-translate-x-1/2 before:-translate-y-1/2 before:rounded-full before:bg-border", "data-[state=at-value]:before:bg-primary data-[state=under-value]:before:bg-primary/70", e.class);
|
|
152
152
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slider.js","sources":["../../src/components/Slider.tsx"],"sourcesContent":["import { AngleSlider as AngleSliderPrimitive } from '@ark-ui/solid/angle-slider';\nimport { Slider as SliderPrimitive } from '@ark-ui/solid/slider';\nimport { type Component, splitProps } from 'solid-js';\nimport { cn } from 'tailwind-variants';\n\nexport const Slider: Component<SliderPrimitive.RootProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <SliderPrimitive.Root\n class={cn(\n 'flex flex-col data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full',\n local.class,\n )}\n data-slot='slider'\n {...others}\n />\n );\n};\n\nexport const SliderLabel: Component<SliderPrimitive.LabelProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <SliderPrimitive.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 SliderValueText: Component<SliderPrimitive.ValueTextProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <SliderPrimitive.ValueText\n class={cn('text-sm mb-2 text-muted-foreground tabular-nums', local.class)}\n {...others}\n />\n );\n};\n\nexport const SliderControl: Component<SliderPrimitive.ControlProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <SliderPrimitive.Control\n class={cn(\n 'data-[orientation=vertical]:min-h-40 relative flex w-full touch-none items-center select-none data-[disabled=true]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col',\n local.class,\n )}\n {...others}\n />\n );\n};\n\nexport const SliderTrack: Component<SliderPrimitive.TrackProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <SliderPrimitive.Track\n data-slot='slider-track'\n class={cn(\n 'data-[orientation=horizontal]:h-1.5 data-[orientation=vertical]:w-1.5 relative grow overflow-hidden rounded-full bg-muted select-none data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full',\n local.class,\n )}\n {...others}\n />\n );\n};\n\nexport const SliderRange: Component<SliderPrimitive.RangeProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <SliderPrimitive.Range\n data-slot='slider-range'\n class={cn(\n 'bg-primary select-none data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full',\n local.class,\n )}\n {...others}\n />\n );\n};\n\nexport const SliderThumb: Component<SliderPrimitive.ThumbProps> = (props) => {\n const [local, others] = splitProps(props, ['class', 'children']);\n return (\n <SliderPrimitive.Thumb\n data-slot='slider-thumb'\n class={cn(\n 'size-4 bg-white shadow-sm after:-inset-2 relative block shrink-0 rounded-full border border-ring ring-ring/50 transition-[color,box-shadow] select-none after:absolute hover:ring-[3px] focus-visible:outline-hidden data-active:ring-[3px] data-disabled:pointer-events-none data-[disabled=true]:opacity-50 data-[focus-visible]:ring-[3px] data-[focus-visible]:ring-ring/50 has-focus-visible:ring-[3px] has-focus-visible:ring-ring/50',\n local.class,\n )}\n {...others}\n >\n {local.children}\n <SliderPrimitive.HiddenInput />\n </SliderPrimitive.Thumb>\n );\n};\n\nexport const SliderMarkerGroup: Component<SliderPrimitive.MarkerGroupProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return <SliderPrimitive.MarkerGroup class={cn('mt-2', local.class)} {...others} />;\n};\n\nexport const SliderMarker: Component<SliderPrimitive.MarkerProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <SliderPrimitive.Marker\n class={cn(\n 'data-[state=at-value]:font-medium text-[10px] text-muted-foreground data-[orientation=horizontal]:-translate-x-1/2 data-[orientation=vertical]:-translate-y-1/2 data-[state=at-value]:text-foreground',\n local.class,\n )}\n {...others}\n />\n );\n};\n\nexport const SliderCircle: Component<AngleSliderPrimitive.RootProps> = (props) => {\n const [local, others] = splitProps(props, ['class', 'children']);\n return (\n <AngleSliderPrimitive.Root\n class={cn('gap-4 flex flex-col items-center', local.class)}\n data-slot='slider-circle'\n {...others}\n >\n {local.children}\n </AngleSliderPrimitive.Root>\n );\n};\n\nexport const SliderCircleLabel: Component<AngleSliderPrimitive.LabelProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <AngleSliderPrimitive.Label\n class={cn('text-sm font-medium leading-none select-none', local.class)}\n data-slot='slider-circle-label'\n {...others}\n />\n );\n};\n\nexport const SliderCircleValueText: Component<AngleSliderPrimitive.ValueTextProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <AngleSliderPrimitive.ValueText\n class={cn('text-sm text-muted-foreground tabular-nums', local.class)}\n data-slot='slider-circle-value-text'\n {...others}\n />\n );\n};\n\nexport const SliderCircleTrack: Component<AngleSliderPrimitive.ControlProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <AngleSliderPrimitive.Control\n class={cn(\n 'size-24 relative flex items-center justify-center rounded-full bg-muted select-none',\n 'after:inset-2 after:absolute after:rounded-full after:bg-background',\n 'data-[disabled=true]:opacity-50 data-[focus-visible]:ring-[3px] data-[focus-visible]:ring-ring/50',\n local.class,\n )}\n data-slot='slider-circle-track'\n {...others}\n />\n );\n};\n\nexport const SliderCircleRange: Component<AngleSliderPrimitive.ThumbProps> = (props) => {\n const [local, others] = splitProps(props, ['class', 'children']);\n return (\n <div\n class={cn('inset-0 z-10 pointer-events-none absolute rounded-full', local.class)}\n data-slot='slider-circle-range'\n {...others}\n >\n <svg class='size-full -rotate-90 text-primary' viewBox='0 0 96 96' aria-hidden='true'>\n <circle\n cx='48'\n cy='48'\n r='44'\n fill='none'\n stroke='currentColor'\n stroke-linecap='round'\n stroke-width='8'\n pathLength='360'\n style={{\n 'stroke-dasharray': 'var(--value) 360',\n transition: 'stroke-dasharray 150ms ease-out',\n }}\n />\n </svg>\n {local.children}\n </div>\n );\n};\n\nexport const SliderCircleThumb: Component<AngleSliderPrimitive.ThumbProps> = (props) => {\n const [local, others] = splitProps(props, ['class', 'children']);\n return (\n <AngleSliderPrimitive.Thumb\n class={cn(\n 'inset-0 z-20 absolute rounded-full outline-none',\n 'before:top-1 before:size-4 before:bg-white before:shadow-sm before:absolute before:left-1/2 before:-translate-x-1/2 before:-translate-y-1/2 before:rounded-full before:border before:border-ring before:transition-[color,box-shadow] before:data-active:ring-[3px] before:data-active:ring-ring/50',\n 'data-[focus-visible]:ring-[3px] data-[focus-visible]:ring-ring/50 has-focus-visible:ring-[3px] has-focus-visible:ring-ring/50',\n local.class,\n )}\n data-slot='slider-circle-thumb'\n {...others}\n >\n {local.children}\n <AngleSliderPrimitive.HiddenInput />\n </AngleSliderPrimitive.Thumb>\n );\n};\n\nexport const SliderCircleMarkerGroup: Component<AngleSliderPrimitive.MarkerGroupProps> = (\n props,\n) => {\n const [local, others] = splitProps(props, ['class', 'children']);\n return (\n <AngleSliderPrimitive.MarkerGroup\n class={cn('inset-0 z-20 pointer-events-none absolute rounded-full', local.class)}\n {...others}\n >\n {local.children}\n </AngleSliderPrimitive.MarkerGroup>\n );\n};\n\nexport const SliderCircleMarker: Component<AngleSliderPrimitive.MarkerProps> = (props) => {\n const [local, others] = splitProps(props, ['class', 'children']);\n return (\n <AngleSliderPrimitive.Marker\n class={cn(\n 'inset-0 absolute rounded-full',\n 'before:top-0 before:w-0.5 before:h-2 before:absolute before:left-1/2 before:-translate-x-1/2 before:-translate-y-1/2 before:rounded-full before:bg-border',\n 'data-[state=at-value]:before:bg-primary data-[state=under-value]:before:bg-primary/70',\n local.class,\n )}\n {...others}\n >\n {local.children}\n </AngleSliderPrimitive.Marker>\n );\n};\n"],"names":["Slider","props","local","others","splitProps","_$createComponent","SliderPrimitive","Root","_$mergeProps","cn","class","SliderLabel","Label","SliderValueText","ValueText","SliderControl","Control","SliderTrack","Track","SliderRange","Range","SliderThumb","Thumb","children","_$memo","HiddenInput","SliderMarkerGroup","MarkerGroup","SliderMarker","Marker","SliderCircle","AngleSliderPrimitive","SliderCircleLabel","SliderCircleValueText","SliderCircleTrack","SliderCircleRange","_el$","_tmpl$","_el$2","firstChild","_$spread","_$insert","SliderCircleThumb","SliderCircleMarkerGroup","SliderCircleMarker"],"mappings":";;;;;;AAKO,MAAMA,IAAgDC,CAAAA,MAAU;AACrE,QAAM,CAACC,GAAOC,CAAM,IAAIC,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AACxF,QAAM,CAACC,GAAOC,CAAM,IAAIC,EAAWH,GAAO,CAAC,SAAS,UAAU,CAAC;AAC/D,SAAAI,EACG0B,EAAqBF,QAAMrB,EAAA;AAAA,IAAA,IAAA,QAAA;AAAA,aACnBC,EACL,iCACA,6JACA,yFACAP,EAAMQ,KACR;AAAA,IAAC;AAAA,EAAA,GACGP,GAAM;AAAA,IAAA,IAAAoB,WAAA;AAAA,aAETrB,EAAMqB;AAAAA,IAAQ;AAAA,EAAA,CAAA,CAAA;AAGrB;"}
|
|
1
|
+
{"version":3,"file":"Slider.js","sources":["../../src/components/Slider.tsx"],"sourcesContent":["import { AngleSlider as AngleSliderPrimitive } from '@ark-ui/solid/angle-slider';\nimport { Slider as SliderPrimitive } from '@ark-ui/solid/slider';\nimport { type Component, splitProps } from 'solid-js';\nimport { cn } from 'tailwind-variants';\n\nexport const Slider: Component<SliderPrimitive.RootProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <SliderPrimitive.Root\n class={cn(\n 'flex flex-col data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full',\n local.class,\n )}\n data-slot='slider'\n {...others}\n />\n );\n};\n\nexport const SliderLabel: Component<SliderPrimitive.LabelProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <SliderPrimitive.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 SliderValueText: Component<SliderPrimitive.ValueTextProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <SliderPrimitive.ValueText\n class={cn('text-sm mb-2 text-muted-foreground tabular-nums', local.class)}\n {...others}\n />\n );\n};\n\nexport const SliderControl: Component<SliderPrimitive.ControlProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <SliderPrimitive.Control\n class={cn(\n 'data-[orientation=vertical]:min-h-40 relative flex w-full touch-none items-center select-none data-[disabled=true]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col',\n local.class,\n )}\n {...others}\n />\n );\n};\n\nexport const SliderTrack: Component<SliderPrimitive.TrackProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <SliderPrimitive.Track\n data-slot='slider-track'\n class={cn(\n 'data-[orientation=horizontal]:h-1.5 data-[orientation=vertical]:w-1.5 relative grow overflow-hidden rounded-full bg-muted select-none data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full',\n local.class,\n )}\n {...others}\n />\n );\n};\n\nexport const SliderRange: Component<SliderPrimitive.RangeProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <SliderPrimitive.Range\n data-slot='slider-range'\n class={cn(\n 'bg-primary select-none data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full',\n local.class,\n )}\n {...others}\n />\n );\n};\n\nexport const SliderThumb: Component<SliderPrimitive.ThumbProps> = (props) => {\n const [local, others] = splitProps(props, ['class', 'children']);\n return (\n <SliderPrimitive.Thumb\n data-slot='slider-thumb'\n class={cn(\n 'size-4 bg-white shadow-sm after:-inset-2 relative block shrink-0 rounded-full border border-ring ring-ring/50 transition-[color,box-shadow] select-none after:absolute hover:ring-[3px] focus-visible:outline-hidden has-focus-visible:ring-[3px] has-focus-visible:ring-ring/50 data-active:ring-[3px] data-disabled:pointer-events-none data-[disabled=true]:opacity-50 data-[focus-visible]:ring-[3px] data-[focus-visible]:ring-ring/50',\n local.class,\n )}\n {...others}\n >\n {local.children}\n <SliderPrimitive.HiddenInput />\n </SliderPrimitive.Thumb>\n );\n};\n\nexport const SliderMarkerGroup: Component<SliderPrimitive.MarkerGroupProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return <SliderPrimitive.MarkerGroup class={cn('mt-2 mb-2', local.class)} {...others} />;\n};\n\nexport const SliderMarker: Component<SliderPrimitive.MarkerProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <SliderPrimitive.Marker\n class={cn(\n '-translate-x-1/2 text-[10px] text-muted-foreground data-[orientation=vertical]:-translate-y-1/2 data-[state=at-value]:text-foreground',\n local.class,\n )}\n {...others}\n />\n );\n};\n\nexport const SliderCircle: Component<AngleSliderPrimitive.RootProps> = (props) => {\n const [local, others] = splitProps(props, ['class', 'children']);\n return (\n <AngleSliderPrimitive.Root\n class={cn('gap-4 flex flex-col items-center', local.class)}\n data-slot='slider-circle'\n {...others}\n >\n {local.children}\n </AngleSliderPrimitive.Root>\n );\n};\n\nexport const SliderCircleLabel: Component<AngleSliderPrimitive.LabelProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <AngleSliderPrimitive.Label\n class={cn('text-sm font-medium leading-none select-none', local.class)}\n data-slot='slider-circle-label'\n {...others}\n />\n );\n};\n\nexport const SliderCircleValueText: Component<AngleSliderPrimitive.ValueTextProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <AngleSliderPrimitive.ValueText\n class={cn('text-sm text-muted-foreground tabular-nums', local.class)}\n data-slot='slider-circle-value-text'\n {...others}\n />\n );\n};\n\nexport const SliderCircleTrack: Component<AngleSliderPrimitive.ControlProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <AngleSliderPrimitive.Control\n class={cn(\n 'size-24 relative flex items-center justify-center rounded-full bg-muted select-none',\n 'after:inset-2 after:absolute after:rounded-full after:bg-background',\n 'data-[disabled=true]:opacity-50 data-[focus-visible]:ring-[3px] data-[focus-visible]:ring-ring/50',\n local.class,\n )}\n data-slot='slider-circle-track'\n {...others}\n />\n );\n};\n\nexport const SliderCircleRange: Component<AngleSliderPrimitive.ThumbProps> = (props) => {\n const [local, others] = splitProps(props, ['class', 'children']);\n return (\n <div\n class={cn('inset-0 pointer-events-none absolute z-10 rounded-full', local.class)}\n data-slot='slider-circle-range'\n {...others}\n >\n <svg class='size-full -rotate-90 text-primary' viewBox='0 0 96 96' aria-hidden='true'>\n <circle\n cx='48'\n cy='48'\n r='44'\n fill='none'\n stroke='currentColor'\n stroke-linecap='round'\n stroke-width='8'\n pathLength='360'\n style={{\n 'stroke-dasharray': 'var(--value) 360',\n transition: 'stroke-dasharray 150ms ease-out',\n }}\n />\n </svg>\n {local.children}\n </div>\n );\n};\n\nexport const SliderCircleThumb: Component<AngleSliderPrimitive.ThumbProps> = (props) => {\n const [local, others] = splitProps(props, ['class', 'children']);\n return (\n <AngleSliderPrimitive.Thumb\n class={cn(\n 'inset-0 absolute z-20 rounded-full outline-none',\n 'before:top-1 before:size-4 before:bg-white before:shadow-sm before:absolute before:left-1/2 before:-translate-x-1/2 before:-translate-y-1/2 before:rounded-full before:border before:border-ring before:transition-[color,box-shadow] before:data-active:ring-[3px] before:data-active:ring-ring/50',\n 'has-focus-visible:ring-[3px] has-focus-visible:ring-ring/50 data-[focus-visible]:ring-[3px] data-[focus-visible]:ring-ring/50',\n local.class,\n )}\n data-slot='slider-circle-thumb'\n {...others}\n >\n {local.children}\n <AngleSliderPrimitive.HiddenInput />\n </AngleSliderPrimitive.Thumb>\n );\n};\n\nexport const SliderCircleMarkerGroup: Component<AngleSliderPrimitive.MarkerGroupProps> = (\n props,\n) => {\n const [local, others] = splitProps(props, ['class', 'children']);\n return (\n <AngleSliderPrimitive.MarkerGroup\n class={cn('inset-0 pointer-events-none absolute z-20 rounded-full', local.class)}\n {...others}\n >\n {local.children}\n </AngleSliderPrimitive.MarkerGroup>\n );\n};\n\nexport const SliderCircleMarker: Component<AngleSliderPrimitive.MarkerProps> = (props) => {\n const [local, others] = splitProps(props, ['class', 'children']);\n return (\n <AngleSliderPrimitive.Marker\n class={cn(\n 'inset-0 absolute rounded-full',\n 'before:top-0 before:w-0.5 before:h-2 before:absolute before:left-1/2 before:-translate-x-1/2 before:-translate-y-1/2 before:rounded-full before:bg-border',\n 'data-[state=at-value]:before:bg-primary data-[state=under-value]:before:bg-primary/70',\n local.class,\n )}\n {...others}\n >\n {local.children}\n </AngleSliderPrimitive.Marker>\n );\n};\n"],"names":["Slider","props","local","others","splitProps","_$createComponent","SliderPrimitive","Root","_$mergeProps","cn","class","SliderLabel","Label","SliderValueText","ValueText","SliderControl","Control","SliderTrack","Track","SliderRange","Range","SliderThumb","Thumb","children","_$memo","HiddenInput","SliderMarkerGroup","MarkerGroup","SliderMarker","Marker","SliderCircle","AngleSliderPrimitive","SliderCircleLabel","SliderCircleValueText","SliderCircleTrack","SliderCircleRange","_el$","_tmpl$","_el$2","firstChild","_$spread","_$insert","SliderCircleThumb","SliderCircleMarkerGroup","SliderCircleMarker"],"mappings":";;;;;;AAKO,MAAMA,IAAgDC,CAAAA,MAAU;AACrE,QAAM,CAACC,GAAOC,CAAM,IAAIC,EAAWH,GAAO,CAAC,OAAO,CAAC;AACnD,SAAAI,EACGC,EAAgBC,MAAIC,EAAA;AAAA,IAAA,IAAA,QAAA;AAAA,aACZC,EACL,yFACAP,EAAMQ,KACR;AAAA,IAAC;AAAA,IAAA,aAAA;AAAA,EAAA,GAEGP,CAAM,CAAA;AAGhB,GAEaQ,IAAsDV,CAAAA,MAAU;AAC3E,QAAM,CAACC,GAAOC,CAAM,IAAIC,EAAWH,GAAO,CAAC,OAAO,CAAC;AACnD,SAAAI,EACGC,EAAgBM,OAAKJ,EAAA;AAAA,IAAA,IAAA,QAAA;AAAA,aACbC,EACL,uNACAP,EAAMQ,KACR;AAAA,IAAC;AAAA,EAAA,GACGP,CAAM,CAAA;AAGhB,GAEaU,IAA8DZ,CAAAA,MAAU;AACnF,QAAM,CAACC,GAAOC,CAAM,IAAIC,EAAWH,GAAO,CAAC,OAAO,CAAC;AACnD,SAAAI,EACGC,EAAgBQ,WAASN,EAAA;AAAA,IAAA,IAAA,QAAA;AAAA,aACjBC,EAAG,mDAAmDP,EAAMQ,KAAK;AAAA,IAAC;AAAA,EAAA,GACrEP,CAAM,CAAA;AAGhB,GAEaY,IAA0Dd,CAAAA,MAAU;AAC/E,QAAM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AAQ,GAAAlB,EACd0B,EAAqBN,aAAW,CAAA,CAAA,CAAA;AAAA,IAAA;AAAA,EAAA,CAAA,CAAA;AAGvC,GAEakB,IACX1C,CAAAA,MACG;AACH,QAAM,CAACC,GAAOC,CAAM,IAAIC,EAAWH,GAAO,CAAC,SAAS,UAAU,CAAC;AAC/D,SAAAI,EACG0B,EAAqBJ,aAAWnB,EAAA;AAAA,IAAA,IAAA,QAAA;AAAA,aACxBC,EAAG,0DAA0DP,EAAMQ,KAAK;AAAA,IAAC;AAAA,EAAA,GAC5EP,GAAM;AAAA,IAAA,IAAAoB,WAAA;AAAA,aAETrB,EAAMqB;AAAAA,IAAQ;AAAA,EAAA,CAAA,CAAA;AAGrB,GAEaqB,IAAmE3C,CAAAA,MAAU;AACxF,QAAM,CAACC,GAAOC,CAAM,IAAIC,EAAWH,GAAO,CAAC,SAAS,UAAU,CAAC;AAC/D,SAAAI,EACG0B,EAAqBF,QAAMrB,EAAA;AAAA,IAAA,IAAA,QAAA;AAAA,aACnBC,EACL,iCACA,6JACA,yFACAP,EAAMQ,KACR;AAAA,IAAC;AAAA,EAAA,GACGP,GAAM;AAAA,IAAA,IAAAoB,WAAA;AAAA,aAETrB,EAAMqB;AAAAA,IAAQ;AAAA,EAAA,CAAA,CAAA;AAGrB;"}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { spread as o, mergeProps as n, insert as i, createComponent as a, template as m } from "solid-js/web";
|
|
2
2
|
import { splitProps as l } from "solid-js";
|
|
3
3
|
import { cn as p } from "../node_modules/.bun/tailwind-variants@3.2.2_7ac958b541464b98/node_modules/tailwind-variants/dist/index.js";
|
|
4
4
|
import c from "../_virtual/progress-activity.js";
|
|
5
5
|
import { ui_common_loading as u } from "../paraglide/messages/ui_common_loading.js";
|
|
6
|
-
var f = /* @__PURE__ */
|
|
6
|
+
var f = /* @__PURE__ */ m("<span role=status>");
|
|
7
7
|
const h = (e) => {
|
|
8
8
|
const [t, s] = l(e, ["class"]);
|
|
9
9
|
return (() => {
|
|
10
10
|
var r = f();
|
|
11
|
-
return
|
|
11
|
+
return o(r, n({
|
|
12
12
|
get "aria-label"() {
|
|
13
13
|
return u();
|
|
14
14
|
},
|
|
15
15
|
get class() {
|
|
16
16
|
return p("inline-flex items-center justify-center", t.class);
|
|
17
17
|
}
|
|
18
|
-
}, s), !1, !0),
|
|
18
|
+
}, s), !1, !0), i(r, a(c, {
|
|
19
19
|
class: "size-4 animate-spin",
|
|
20
20
|
"aria-hidden": "true"
|
|
21
21
|
})), r;
|
package/dist/components/Table.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { spread as s, mergeProps as r, template as o } from "solid-js/web";
|
|
2
2
|
import { splitProps as c } 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
|
-
var u = /* @__PURE__ */
|
|
4
|
+
var u = /* @__PURE__ */ o('<div data-slot=table-container class="relative w-full overflow-x-auto"><table data-slot=table>'), b = /* @__PURE__ */ o("<thead data-slot=table-header>"), f = /* @__PURE__ */ o("<tbody data-slot=table-body>"), m = /* @__PURE__ */ o("<tfoot data-slot=table-footer>"), p = /* @__PURE__ */ o("<tr data-slot=table-row>"), i = /* @__PURE__ */ o("<th data-slot=table-head>"), h = /* @__PURE__ */ o("<td data-slot=table-cell>"), _ = /* @__PURE__ */ o("<caption data-slot=table-caption>");
|
|
5
5
|
const x = (e) => {
|
|
6
6
|
const [l, a] = c(e, ["class"]);
|
|
7
7
|
return (() => {
|
|
8
8
|
var t = u(), d = t.firstChild;
|
|
9
|
-
return
|
|
9
|
+
return s(d, r({
|
|
10
10
|
get class() {
|
|
11
11
|
return n("text-sm w-full caption-bottom", l.class);
|
|
12
12
|
}
|
|
@@ -16,7 +16,7 @@ const x = (e) => {
|
|
|
16
16
|
const [l, a] = c(e, ["class"]);
|
|
17
17
|
return (() => {
|
|
18
18
|
var t = b();
|
|
19
|
-
return
|
|
19
|
+
return s(t, r({
|
|
20
20
|
get class() {
|
|
21
21
|
return n("[&_tr]:border-b", l.class);
|
|
22
22
|
}
|
|
@@ -26,7 +26,7 @@ const x = (e) => {
|
|
|
26
26
|
const [l, a] = c(e, ["class"]);
|
|
27
27
|
return (() => {
|
|
28
28
|
var t = f();
|
|
29
|
-
return
|
|
29
|
+
return s(t, r({
|
|
30
30
|
get class() {
|
|
31
31
|
return n("[&_tr:last-child]:border-0", l.class);
|
|
32
32
|
}
|
|
@@ -36,7 +36,7 @@ const x = (e) => {
|
|
|
36
36
|
const [l, a] = c(e, ["class"]);
|
|
37
37
|
return (() => {
|
|
38
38
|
var t = m();
|
|
39
|
-
return
|
|
39
|
+
return s(t, r({
|
|
40
40
|
get class() {
|
|
41
41
|
return n("font-medium border-t bg-muted/50 [&>tr]:last:border-b-0", l.class);
|
|
42
42
|
}
|
|
@@ -46,7 +46,7 @@ const x = (e) => {
|
|
|
46
46
|
const [l, a] = c(e, ["class"]);
|
|
47
47
|
return (() => {
|
|
48
48
|
var t = p();
|
|
49
|
-
return
|
|
49
|
+
return s(t, r({
|
|
50
50
|
get class() {
|
|
51
51
|
return n("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted", l.class);
|
|
52
52
|
}
|
|
@@ -56,7 +56,7 @@ const x = (e) => {
|
|
|
56
56
|
const [l, a] = c(e, ["class"]);
|
|
57
57
|
return (() => {
|
|
58
58
|
var t = i();
|
|
59
|
-
return
|
|
59
|
+
return s(t, r({
|
|
60
60
|
get class() {
|
|
61
61
|
return n("h-10 px-2 font-medium [&:has([role=checkbox])]:pr-0 text-left align-middle whitespace-nowrap text-foreground", l.class);
|
|
62
62
|
}
|
|
@@ -66,7 +66,7 @@ const x = (e) => {
|
|
|
66
66
|
const [l, a] = c(e, ["class"]);
|
|
67
67
|
return (() => {
|
|
68
68
|
var t = h();
|
|
69
|
-
return
|
|
69
|
+
return s(t, r({
|
|
70
70
|
get class() {
|
|
71
71
|
return n("p-2 [&:has([role=checkbox])]:pr-0 align-middle whitespace-nowrap", l.class);
|
|
72
72
|
}
|
|
@@ -76,7 +76,7 @@ const x = (e) => {
|
|
|
76
76
|
const [l, a] = c(e, ["class"]);
|
|
77
77
|
return (() => {
|
|
78
78
|
var t = _();
|
|
79
|
-
return
|
|
79
|
+
return s(t, r({
|
|
80
80
|
get class() {
|
|
81
81
|
return n("mt-4 text-sm text-muted-foreground", l.class);
|
|
82
82
|
}
|
|
@@ -7,7 +7,7 @@ const m = n.Root, h = n.Context, b = n.HiddenInput, f = (t) => {
|
|
|
7
7
|
const [e, r] = a(t, ["class"]);
|
|
8
8
|
return s(n.Label, o({
|
|
9
9
|
get class() {
|
|
10
|
-
return i("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", e.class);
|
|
10
|
+
return i("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", e.class);
|
|
11
11
|
}
|
|
12
12
|
}, r));
|
|
13
13
|
}, x = (t) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TagsInput.js","sources":["../../src/components/TagsInput.tsx"],"sourcesContent":["import { TagsInput as TagsInputPrimitive } from '@ark-ui/solid/tags-input';\nimport { type Component, splitProps } from 'solid-js';\nimport { cn } from 'tailwind-variants';\nimport CloseIcon from '~icons/material-symbols/close';\n\nexport const TagsInput = TagsInputPrimitive.Root;\nexport const TagsInputContext = TagsInputPrimitive.Context;\nexport const TagsInputHiddenInput = TagsInputPrimitive.HiddenInput;\nexport const TagsInputLabel: Component<TagsInputPrimitive.LabelProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <TagsInputPrimitive.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};\nexport const TagsInputControl: Component<TagsInputPrimitive.ControlProps> = (props) => {\n const [local, others] = splitProps(props, ['class', 'children']);\n return (\n <TagsInputPrimitive.Control\n class={cn(\n 'group min-h-10 py-1.5 pr-8 pl-2.5 text-sm [&_svg:not([class*=\"size-\"])]:size-4 gap-1 shadow-sm relative flex w-full flex-wrap items-center rounded-lg border border-input bg-transparent transition-colors outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:bg-input/30 dark:hover:bg-input/50 [&_svg]:pointer-events-none [&_svg]:shrink-0',\n 'focus-within:border-ring focus-within:ring-[3px] focus-within: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]:focus-within:border-input data-[readonly=true]:focus-within:ring-0',\n local.class,\n )}\n {...others}\n >\n {local.children}\n </TagsInputPrimitive.Control>\n );\n};\n\nexport const TagsInputInput: Component<TagsInputPrimitive.InputProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <TagsInputPrimitive.Input\n class={cn(\n 'w-24 min-w-24 flex-none bg-transparent outline-none placeholder:text-muted-foreground',\n 'group-has-[div[data-slot=tags-input-item-preview]]:placeholder:text-transparent',\n 'max-w-full',\n local.class,\n )}\n {...others}\n />\n );\n};\n\nexport const TagsInputClearTrigger: Component<TagsInputPrimitive.ClearTriggerProps> = (props) => {\n const [local, others] = splitProps(props, ['class', 'children']);\n return (\n <TagsInputPrimitive.ClearTrigger\n class={cn(\n 'right-2 p-0.5 absolute top-1/2 -translate-y-1/2 rounded-sm text-muted-foreground transition-colors hover:text-foreground',\n local.class,\n )}\n {...others}\n >\n {local.children ?? <CloseIcon class='size-3.5 pointer-events-none' />}\n </TagsInputPrimitive.ClearTrigger>\n );\n};\n\nexport const TagsInputItem: Component<TagsInputPrimitive.ItemProps> = (props) => {\n const [local, others] = splitProps(props, ['class', 'children']);\n return (\n <TagsInputPrimitive.Item\n class={cn('inline-flex cursor-default items-center outline-none', local.class)}\n {...others}\n >\n {local.children}\n </TagsInputPrimitive.Item>\n );\n};\n\nexport const TagsInputItemPreview: Component<TagsInputPrimitive.ItemPreviewProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <TagsInputPrimitive.ItemPreview\n data-slot='tags-input-item-preview'\n class={cn(\n 'h-6 gap-1 px-1.5 text-xs font-medium has-data-[slot=tags-input-item-delete-trigger]:pr-0 inline-flex items-center justify-center rounded-md border border-transparent bg-muted whitespace-nowrap text-foreground transition-colors',\n 'data-highlighted:border-ring data-highlighted:bg-accent data-highlighted:text-accent-foreground',\n 'data-disabled:pointer-events-none data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50',\n local.class,\n )}\n {...others}\n />\n );\n};\n\nexport const TagsInputItemText: Component<TagsInputPrimitive.ItemTextProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return <TagsInputPrimitive.ItemText class={cn(local.class)} {...others} />;\n};\n\nexport const TagsInputItemInput: Component<TagsInputPrimitive.ItemInputProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <TagsInputPrimitive.ItemInput\n class={cn(\n 'py-0 px-1.5 h-6 text-xs rounded-md border border-input bg-background text-foreground outline-none',\n 'focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50',\n local.class,\n )}\n {...others}\n />\n );\n};\n\nexport const TagsInputItemDeleteTrigger: Component<TagsInputPrimitive.ItemDeleteTriggerProps> = (\n props,\n) => {\n const [local, others] = splitProps(props, ['class', 'children']);\n return (\n <TagsInputPrimitive.ItemDeleteTrigger\n data-slot='tags-input-item-delete-trigger'\n class={cn(\n '-ml-1 p-0.5 inline-flex items-center justify-center rounded-sm text-muted-foreground transition-colors hover:text-foreground',\n local.class,\n )}\n {...others}\n >\n {local.children ?? <CloseIcon class='size-3 pointer-events-none' />}\n </TagsInputPrimitive.ItemDeleteTrigger>\n );\n};\n"],"names":["TagsInput","TagsInputPrimitive","Root","TagsInputContext","Context","TagsInputHiddenInput","HiddenInput","TagsInputLabel","props","local","others","splitProps","_$createComponent","Label","_$mergeProps","cn","class","TagsInputControl","Control","children","TagsInputInput","Input","TagsInputClearTrigger","ClearTrigger","CloseIcon","TagsInputItem","Item","TagsInputItemPreview","ItemPreview","TagsInputItemText","ItemText","TagsInputItemInput","ItemInput","TagsInputItemDeleteTrigger","ItemDeleteTrigger"],"mappings":";;;;;AAKO,MAAMA,IAAYC,EAAmBC,MAC/BC,IAAmBF,EAAmBG,SACtCC,IAAuBJ,EAAmBK,aAC1CC,IAA4DC,CAAAA,MAAU;AACjF,QAAM,CAACC,GAAOC,CAAM,IAAIC,EAAWH,GAAO,CAAC,OAAO,CAAC;AACnD,SAAAI,EACGX,EAAmBY,OAAKC,EAAA;AAAA,IAAA,IAAA,QAAA;AAAA,aAChBC,EACL,
|
|
1
|
+
{"version":3,"file":"TagsInput.js","sources":["../../src/components/TagsInput.tsx"],"sourcesContent":["import { TagsInput as TagsInputPrimitive } from '@ark-ui/solid/tags-input';\nimport { type Component, splitProps } from 'solid-js';\nimport { cn } from 'tailwind-variants';\nimport CloseIcon from '~icons/material-symbols/close';\n\nexport const TagsInput = TagsInputPrimitive.Root;\nexport const TagsInputContext = TagsInputPrimitive.Context;\nexport const TagsInputHiddenInput = TagsInputPrimitive.HiddenInput;\nexport const TagsInputLabel: Component<TagsInputPrimitive.LabelProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <TagsInputPrimitive.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};\nexport const TagsInputControl: Component<TagsInputPrimitive.ControlProps> = (props) => {\n const [local, others] = splitProps(props, ['class', 'children']);\n return (\n <TagsInputPrimitive.Control\n class={cn(\n 'group min-h-10 py-1.5 pr-8 pl-2.5 text-sm [&_svg:not([class*=\"size-\"])]:size-4 gap-1 shadow-sm relative flex w-full flex-wrap items-center rounded-lg border border-input bg-transparent transition-colors outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:bg-input/30 dark:hover:bg-input/50 [&_svg]:pointer-events-none [&_svg]:shrink-0',\n 'focus-within:border-ring focus-within:ring-[3px] focus-within: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]:focus-within:border-input data-[readonly=true]:focus-within:ring-0',\n local.class,\n )}\n {...others}\n >\n {local.children}\n </TagsInputPrimitive.Control>\n );\n};\n\nexport const TagsInputInput: Component<TagsInputPrimitive.InputProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <TagsInputPrimitive.Input\n class={cn(\n 'w-24 min-w-24 flex-none bg-transparent outline-none placeholder:text-muted-foreground',\n 'group-has-[div[data-slot=tags-input-item-preview]]:placeholder:text-transparent',\n 'max-w-full',\n local.class,\n )}\n {...others}\n />\n );\n};\n\nexport const TagsInputClearTrigger: Component<TagsInputPrimitive.ClearTriggerProps> = (props) => {\n const [local, others] = splitProps(props, ['class', 'children']);\n return (\n <TagsInputPrimitive.ClearTrigger\n class={cn(\n 'right-2 p-0.5 absolute top-1/2 -translate-y-1/2 rounded-sm text-muted-foreground transition-colors hover:text-foreground',\n local.class,\n )}\n {...others}\n >\n {local.children ?? <CloseIcon class='size-3.5 pointer-events-none' />}\n </TagsInputPrimitive.ClearTrigger>\n );\n};\n\nexport const TagsInputItem: Component<TagsInputPrimitive.ItemProps> = (props) => {\n const [local, others] = splitProps(props, ['class', 'children']);\n return (\n <TagsInputPrimitive.Item\n class={cn('inline-flex cursor-default items-center outline-none', local.class)}\n {...others}\n >\n {local.children}\n </TagsInputPrimitive.Item>\n );\n};\n\nexport const TagsInputItemPreview: Component<TagsInputPrimitive.ItemPreviewProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <TagsInputPrimitive.ItemPreview\n data-slot='tags-input-item-preview'\n class={cn(\n 'h-6 gap-1 px-1.5 text-xs font-medium has-data-[slot=tags-input-item-delete-trigger]:pr-0 inline-flex items-center justify-center rounded-md border border-transparent bg-muted whitespace-nowrap text-foreground transition-colors',\n 'data-highlighted:border-ring data-highlighted:bg-accent data-highlighted:text-accent-foreground',\n 'data-disabled:pointer-events-none data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50',\n local.class,\n )}\n {...others}\n />\n );\n};\n\nexport const TagsInputItemText: Component<TagsInputPrimitive.ItemTextProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return <TagsInputPrimitive.ItemText class={cn(local.class)} {...others} />;\n};\n\nexport const TagsInputItemInput: Component<TagsInputPrimitive.ItemInputProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <TagsInputPrimitive.ItemInput\n class={cn(\n 'py-0 px-1.5 h-6 text-xs rounded-md border border-input bg-background text-foreground outline-none',\n 'focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50',\n local.class,\n )}\n {...others}\n />\n );\n};\n\nexport const TagsInputItemDeleteTrigger: Component<TagsInputPrimitive.ItemDeleteTriggerProps> = (\n props,\n) => {\n const [local, others] = splitProps(props, ['class', 'children']);\n return (\n <TagsInputPrimitive.ItemDeleteTrigger\n data-slot='tags-input-item-delete-trigger'\n class={cn(\n '-ml-1 p-0.5 inline-flex items-center justify-center rounded-sm text-muted-foreground transition-colors hover:text-foreground',\n local.class,\n )}\n {...others}\n >\n {local.children ?? <CloseIcon class='size-3 pointer-events-none' />}\n </TagsInputPrimitive.ItemDeleteTrigger>\n );\n};\n"],"names":["TagsInput","TagsInputPrimitive","Root","TagsInputContext","Context","TagsInputHiddenInput","HiddenInput","TagsInputLabel","props","local","others","splitProps","_$createComponent","Label","_$mergeProps","cn","class","TagsInputControl","Control","children","TagsInputInput","Input","TagsInputClearTrigger","ClearTrigger","CloseIcon","TagsInputItem","Item","TagsInputItemPreview","ItemPreview","TagsInputItemText","ItemText","TagsInputItemInput","ItemInput","TagsInputItemDeleteTrigger","ItemDeleteTrigger"],"mappings":";;;;;AAKO,MAAMA,IAAYC,EAAmBC,MAC/BC,IAAmBF,EAAmBG,SACtCC,IAAuBJ,EAAmBK,aAC1CC,IAA4DC,CAAAA,MAAU;AACjF,QAAM,CAACC,GAAOC,CAAM,IAAIC,EAAWH,GAAO,CAAC,OAAO,CAAC;AACnD,SAAAI,EACGX,EAAmBY,OAAKC,EAAA;AAAA,IAAA,IAAA,QAAA;AAAA,aAChBC,EACL,uNACAN,EAAMO,KACR;AAAA,IAAC;AAAA,EAAA,GACGN,CAAM,CAAA;AAGhB,GACaO,IAAgET,CAAAA,MAAU;AACrF,QAAM,CAACC,GAAOC,CAAM,IAAIC,EAAWH,GAAO,CAAC,SAAS,UAAU,CAAC;AAC/D,SAAAI,EACGX,EAAmBiB,SAAOJ,EAAA;AAAA,IAAA,IAAA,QAAA;AAAA,aAClBC,EACL,gWACA,8EACA,8JACA,0GACA,2FACAN,EAAMO,KACR;AAAA,IAAC;AAAA,EAAA,GACGN,GAAM;AAAA,IAAA,IAAAS,WAAA;AAAA,aAETV,EAAMU;AAAAA,IAAQ;AAAA,EAAA,CAAA,CAAA;AAGrB,GAEaC,IAA4DZ,CAAAA,MAAU;AACjF,QAAM,CAACC,GAAOC,CAAM,IAAIC,EAAWH,GAAO,CAAC,OAAO,CAAC;AACnD,SAAAI,EACGX,EAAmBoB,OAAKP,EAAA;AAAA,IAAA,IAAA,QAAA;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,EAAQX,EAAmB6B,UAAQhB,EAAA;AAAA,IAAA,IAAA,QAAA;AAAA,aAAQC,EAAGN,EAAMO,KAAK;AAAA,IAAC;AAAA,EAAA,GAAMN,CAAM,CAAA;AACxE,GAEaqB,IAAoEvB,CAAAA,MAAU;AACzF,QAAM,CAACC,GAAOC,CAAM,IAAIC,EAAWH,GAAO,CAAC,OAAO,CAAC;AACnD,SAAAI,EACGX,EAAmB+B,WAASlB,EAAA;AAAA,IAAA,IAAA,QAAA;AAAA,aACpBC,EACL,qGACA,iFACAN,EAAMO,KACR;AAAA,IAAC;AAAA,EAAA,GACGN,CAAM,CAAA;AAGhB,GAEauB,IACXzB,CAAAA,MACG;AACH,QAAM,CAACC,GAAOC,CAAM,IAAIC,EAAWH,GAAO,CAAC,SAAS,UAAU,CAAC;AAC/D,SAAAI,EACGX,EAAmBiC,mBAAiBpB,EAAA;AAAA,IAAA,aAAA;AAAA,IAAA,IAAA,QAAA;AAAA,aAE5BC,EACL,gIACAN,EAAMO,KACR;AAAA,IAAC;AAAA,EAAA,GACGN,GAAM;AAAA,IAAA,IAAAS,WAAA;AAAA,aAETV,EAAMU,YAAQP,EAAKY,GAAS;AAAA,QAAA,OAAA;AAAA,MAAA,CAAA;AAAA,IAAsC;AAAA,EAAA,CAAA,CAAA;AAGzE;"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { createComponent as a, mergeProps as n,
|
|
1
|
+
import { createComponent as a, mergeProps as n, spread as u, template as c } from "solid-js/web";
|
|
2
2
|
import { field_exports as o } from "../node_modules/.bun/@ark-ui_solid@5.34.1_2e1854f049906f04/node_modules/@ark-ui/solid/dist/chunk/PPH4D7AF.js";
|
|
3
3
|
import { splitProps as s } from "solid-js";
|
|
4
4
|
import { cn as l } from "../node_modules/.bun/tailwind-variants@3.2.2_7ac958b541464b98/node_modules/tailwind-variants/dist/index.js";
|
|
5
5
|
import { FieldDescription as p, FieldError as b } from "./Field.js";
|
|
6
|
-
var g = /* @__PURE__ */
|
|
6
|
+
var g = /* @__PURE__ */ c("<div data-slot=text-input-control>");
|
|
7
7
|
const y = (e) => {
|
|
8
8
|
const [t, r] = s(e, ["class"]);
|
|
9
9
|
return a(o.Root, n({
|
|
@@ -15,7 +15,7 @@ const y = (e) => {
|
|
|
15
15
|
const [t, r] = s(e, ["class"]);
|
|
16
16
|
return a(o.Label, n({
|
|
17
17
|
get class() {
|
|
18
|
-
return l("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", t.class);
|
|
18
|
+
return l("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", t.class);
|
|
19
19
|
}
|
|
20
20
|
}, r));
|
|
21
21
|
}, I = (e) => {
|
|
@@ -23,7 +23,7 @@ const y = (e) => {
|
|
|
23
23
|
return a(o.Context, {
|
|
24
24
|
children: (i) => (() => {
|
|
25
25
|
var d = g();
|
|
26
|
-
return
|
|
26
|
+
return u(d, n(() => i().disabled && {
|
|
27
27
|
"data-disabled": "true"
|
|
28
28
|
}, () => i().invalid && {
|
|
29
29
|
"data-invalid": "true"
|