@manafishrov/ui 1.0.5 → 1.1.0
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/_virtual/calendar-month.js +10 -0
- package/dist/_virtual/calendar-month.js.map +1 -0
- package/dist/_virtual/check-circle.js +10 -0
- package/dist/_virtual/check-circle.js.map +1 -0
- package/dist/_virtual/check.js +10 -0
- package/dist/_virtual/check.js.map +1 -0
- package/dist/_virtual/{outline-check.js → chevron-left.js} +4 -4
- package/dist/_virtual/chevron-left.js.map +1 -0
- package/dist/_virtual/{outline-expand-more.js → chevron-right.js} +4 -4
- package/dist/_virtual/chevron-right.js.map +1 -0
- package/dist/_virtual/close.js +10 -0
- package/dist/_virtual/close.js.map +1 -0
- package/dist/_virtual/error.js +10 -0
- package/dist/_virtual/error.js.map +1 -0
- package/dist/_virtual/{outline-expand-less.js → expand-less.js} +2 -2
- package/dist/_virtual/expand-less.js.map +1 -0
- package/dist/_virtual/expand-more.js +10 -0
- package/dist/_virtual/expand-more.js.map +1 -0
- package/dist/_virtual/info.js +10 -0
- package/dist/_virtual/info.js.map +1 -0
- package/dist/_virtual/more-horiz.js +10 -0
- package/dist/_virtual/more-horiz.js.map +1 -0
- package/dist/_virtual/progress-activity.js +10 -0
- package/dist/_virtual/progress-activity.js.map +1 -0
- package/dist/_virtual/search.js +10 -0
- package/dist/_virtual/search.js.map +1 -0
- package/dist/_virtual/side-navigation.js +10 -0
- package/dist/_virtual/side-navigation.js.map +1 -0
- package/dist/_virtual/visibility-off.js +10 -0
- package/dist/_virtual/visibility-off.js.map +1 -0
- package/dist/_virtual/visibility.js +10 -0
- package/dist/_virtual/visibility.js.map +1 -0
- package/dist/_virtual/warning.js +10 -0
- package/dist/_virtual/warning.js.map +1 -0
- package/dist/components/Accordion.js +1 -1
- package/dist/components/Accordion.js.map +1 -1
- package/dist/components/Breadcrumb.js +28 -24
- package/dist/components/Breadcrumb.js.map +1 -1
- package/dist/components/Carousel.js +23 -23
- package/dist/components/Carousel.js.map +1 -1
- package/dist/components/Checkbox.js +11 -11
- package/dist/components/Checkbox.js.map +1 -1
- package/dist/components/Combobox.js +15 -15
- package/dist/components/Combobox.js.map +1 -1
- package/dist/components/DatePicker.js +21 -21
- package/dist/components/DatePicker.js.map +1 -1
- package/dist/components/Dialog.js +7 -7
- package/dist/components/Dialog.js.map +1 -1
- package/dist/components/Menu.js +5 -5
- package/dist/components/Menu.js.map +1 -1
- package/dist/components/MenuCombobox.js +29 -29
- package/dist/components/MenuCombobox.js.map +1 -1
- package/dist/components/NavigationMenu.js +5 -5
- package/dist/components/NavigationMenu.js.map +1 -1
- package/dist/components/NumberInput.js +2 -2
- package/dist/components/NumberInput.js.map +1 -1
- package/dist/components/Pagination.js +18 -18
- package/dist/components/Pagination.js.map +1 -1
- package/dist/components/PasswordInput.js +11 -11
- package/dist/components/PasswordInput.js.map +1 -1
- package/dist/components/PinInput.js +24 -24
- package/dist/components/PinInput.js.map +1 -1
- package/dist/components/Select.js +8 -8
- package/dist/components/Select.js.map +1 -1
- package/dist/components/Sheet.js +10 -10
- package/dist/components/Sheet.js.map +1 -1
- package/dist/components/Spinner.js +17 -13
- package/dist/components/Spinner.js.map +1 -1
- package/dist/components/TagsInput.js +6 -6
- package/dist/components/TagsInput.js.map +1 -1
- package/dist/components/TreeView.js +1 -1
- package/dist/components/TreeView.js.map +1 -1
- package/dist/components/sidebar/Sidebar.d.ts +1 -0
- package/dist/components/sidebar/Sidebar.js +25 -18
- package/dist/components/sidebar/Sidebar.js.map +1 -1
- package/dist/components/sidebar/SidebarDesktop.js +24 -23
- package/dist/components/sidebar/SidebarDesktop.js.map +1 -1
- package/dist/components/sidebar/SidebarMenu.d.ts +5 -1
- package/dist/components/sidebar/SidebarMenu.js +96 -89
- package/dist/components/sidebar/SidebarMenu.js.map +1 -1
- package/dist/components/sidebar/SidebarMobile.js +30 -31
- package/dist/components/sidebar/SidebarMobile.js.map +1 -1
- package/dist/components/sidebar/SidebarProvider.js +48 -46
- package/dist/components/sidebar/SidebarProvider.js.map +1 -1
- package/dist/components/sidebar/SidebarSubComponents.js +24 -24
- package/dist/components/sidebar/SidebarSubComponents.js.map +1 -1
- package/dist/components/sidebar/context.d.ts +1 -0
- package/dist/components/sidebar/context.js.map +1 -1
- package/dist/components/toaster/Toaster.js +11 -11
- package/dist/components/toaster/Toaster.js.map +1 -1
- package/dist/paraglide/messages/ui_breadcrumb_label.js +21 -0
- package/dist/paraglide/messages/ui_breadcrumb_label.js.map +1 -0
- package/dist/theme.css +1 -1
- package/package.json +3 -3
- package/src/components/Accordion.tsx +2 -2
- package/src/components/Breadcrumb.tsx +12 -5
- package/src/components/Carousel.tsx +4 -4
- package/src/components/Checkbox.tsx +2 -2
- package/src/components/Combobox.tsx +8 -8
- package/src/components/DatePicker.tsx +6 -6
- package/src/components/Dialog.tsx +2 -2
- package/src/components/Menu.tsx +8 -8
- package/src/components/MenuCombobox.tsx +7 -7
- package/src/components/NavigationMenu.tsx +6 -6
- package/src/components/NumberInput.tsx +4 -4
- package/src/components/Pagination.tsx +6 -6
- package/src/components/PasswordInput.tsx +4 -4
- package/src/components/PinInput.tsx +3 -3
- package/src/components/Select.tsx +6 -6
- package/src/components/Sheet.tsx +6 -6
- package/src/components/Spinner.tsx +2 -9
- package/src/components/TagsInput.tsx +9 -9
- package/src/components/TreeView.tsx +2 -2
- package/src/components/sidebar/Sidebar.tsx +19 -3
- package/src/components/sidebar/SidebarDesktop.tsx +7 -2
- package/src/components/sidebar/SidebarMenu.tsx +64 -17
- package/src/components/sidebar/SidebarMobile.tsx +6 -2
- package/src/components/sidebar/SidebarProvider.tsx +15 -2
- package/src/components/sidebar/SidebarSubComponents.tsx +3 -3
- package/src/components/sidebar/context.ts +1 -0
- package/src/components/toaster/Toaster.tsx +12 -12
- package/src/theme.css +7 -7
- package/dist/_virtual/outline-calendar-month.js +0 -10
- package/dist/_virtual/outline-calendar-month.js.map +0 -1
- package/dist/_virtual/outline-check-circle.js +0 -10
- package/dist/_virtual/outline-check-circle.js.map +0 -1
- package/dist/_virtual/outline-check.js.map +0 -1
- package/dist/_virtual/outline-chevron-left.js +0 -10
- package/dist/_virtual/outline-chevron-left.js.map +0 -1
- package/dist/_virtual/outline-chevron-right.js +0 -10
- package/dist/_virtual/outline-chevron-right.js.map +0 -1
- package/dist/_virtual/outline-close.js +0 -10
- package/dist/_virtual/outline-close.js.map +0 -1
- package/dist/_virtual/outline-error.js +0 -10
- package/dist/_virtual/outline-error.js.map +0 -1
- package/dist/_virtual/outline-expand-less.js.map +0 -1
- package/dist/_virtual/outline-expand-more.js.map +0 -1
- package/dist/_virtual/outline-info.js +0 -10
- package/dist/_virtual/outline-info.js.map +0 -1
- package/dist/_virtual/outline-more-horiz.js +0 -10
- package/dist/_virtual/outline-more-horiz.js.map +0 -1
- package/dist/_virtual/outline-remove.js +0 -10
- package/dist/_virtual/outline-remove.js.map +0 -1
- package/dist/_virtual/outline-search.js +0 -10
- package/dist/_virtual/outline-search.js.map +0 -1
- package/dist/_virtual/outline-view-sidebar.js +0 -10
- package/dist/_virtual/outline-view-sidebar.js.map +0 -1
- package/dist/_virtual/outline-visibility-off.js +0 -10
- package/dist/_virtual/outline-visibility-off.js.map +0 -1
- package/dist/_virtual/outline-visibility.js +0 -10
- package/dist/_virtual/outline-visibility.js.map +0 -1
- package/dist/_virtual/outline-warning.js +0 -10
- package/dist/_virtual/outline-warning.js.map +0 -1
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { createComponent as o, mergeProps as
|
|
2
|
-
import { password_input_exports as
|
|
1
|
+
import { createComponent as o, mergeProps as n } from "solid-js/web";
|
|
2
|
+
import { password_input_exports as s } from "../node_modules/.bun/@ark-ui_solid@5.34.0_95b571dd5236cc92/node_modules/@ark-ui/solid/dist/chunk/ZW5OSILD.js";
|
|
3
3
|
import { splitProps as i } from "solid-js";
|
|
4
4
|
import { cn as a } from "../node_modules/.bun/tailwind-variants@3.2.2_e7cab99c1b720a38/node_modules/tailwind-variants/dist/index.js";
|
|
5
|
-
import d from "../_virtual/
|
|
6
|
-
import l from "../_virtual/
|
|
5
|
+
import d from "../_virtual/visibility.js";
|
|
6
|
+
import l from "../_virtual/visibility-off.js";
|
|
7
7
|
const m = (r) => {
|
|
8
8
|
const [t, e] = i(r, ["class"]);
|
|
9
|
-
return o(
|
|
9
|
+
return o(s.Root, n({
|
|
10
10
|
get class() {
|
|
11
11
|
return a("group/password-input flex w-full flex-col", t.class);
|
|
12
12
|
}
|
|
13
13
|
}, e));
|
|
14
|
-
}, w =
|
|
14
|
+
}, w = s.Context, h = (r) => {
|
|
15
15
|
const [t, e] = i(r, ["class"]);
|
|
16
|
-
return o(
|
|
16
|
+
return o(s.Label, n({
|
|
17
17
|
get class() {
|
|
18
18
|
return a("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);
|
|
19
19
|
}
|
|
20
20
|
}, e));
|
|
21
21
|
}, v = (r) => {
|
|
22
22
|
const [t, e] = i(r, ["class"]);
|
|
23
|
-
return o(
|
|
23
|
+
return o(s.Control, n({
|
|
24
24
|
"data-slot": "password-input-control",
|
|
25
25
|
get class() {
|
|
26
26
|
return a("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", "focus-within:border-ring focus-within:ring-[3px] focus-within:ring-ring/50", "data-[invalid=true]:border-destructive data-[invalid=true]:ring-[3px] data-[invalid=true]:ring-destructive/20 dark:data-[invalid=true]:ring-destructive/40", "data-[disabled=true]:bg-input/50 data-[disabled=true]:opacity-50 dark:data-[disabled=true]:bg-input/80", "data-[readonly=true]:focus-within:border-input data-[readonly=true]:focus-within:ring-0", "data-[invalid=true]:border-destructive data-[invalid=true]:ring-[3px] data-[invalid=true]:ring-destructive/20 dark:data-[invalid=true]:ring-destructive/40", "data-[disabled=true]:bg-input/50 data-[disabled=true]:opacity-50 dark:data-[disabled=true]:bg-input/80", "data-[readonly=true]:focus-within:border-input data-[readonly=true]:focus-within:ring-0", t.class);
|
|
@@ -28,14 +28,14 @@ const m = (r) => {
|
|
|
28
28
|
}, e));
|
|
29
29
|
}, x = (r) => {
|
|
30
30
|
const [t, e] = i(r, ["class"]);
|
|
31
|
-
return o(
|
|
31
|
+
return o(s.Input, n({
|
|
32
32
|
get class() {
|
|
33
33
|
return a("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", "px-0 py-0 h-full border-none bg-transparent shadow-none ring-0 focus-visible:ring-0", "pl-2.5 pr-10", t.class);
|
|
34
34
|
}
|
|
35
35
|
}, e));
|
|
36
36
|
}, y = (r) => {
|
|
37
37
|
const [t, e] = i(r, ["class"]);
|
|
38
|
-
return o(
|
|
38
|
+
return o(s.VisibilityTrigger, n({
|
|
39
39
|
"data-slot": "password-input-visibility-trigger",
|
|
40
40
|
get class() {
|
|
41
41
|
return a("top-0 right-0 w-9 absolute flex h-full cursor-pointer items-center justify-center text-muted-foreground transition-colors outline-none hover:bg-muted hover:text-foreground focus-visible:bg-muted focus-visible:text-foreground disabled:opacity-50", t.class);
|
|
@@ -43,7 +43,7 @@ const m = (r) => {
|
|
|
43
43
|
}, e));
|
|
44
44
|
}, I = (r) => {
|
|
45
45
|
const [t, e] = i(r, ["class", "children"]);
|
|
46
|
-
return o(
|
|
46
|
+
return o(s.Indicator, n({
|
|
47
47
|
get class() {
|
|
48
48
|
return a(t.class);
|
|
49
49
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PasswordInput.js","sources":["../../src/components/PasswordInput.tsx"],"sourcesContent":["import { PasswordInput as PrimitivePasswordInput } from '@ark-ui/solid/password-input';\nimport { splitProps, type Component } from 'solid-js';\nimport { cn } from 'tailwind-variants';\nimport
|
|
1
|
+
{"version":3,"file":"PasswordInput.js","sources":["../../src/components/PasswordInput.tsx"],"sourcesContent":["import { PasswordInput as PrimitivePasswordInput } from '@ark-ui/solid/password-input';\nimport { splitProps, type Component } from 'solid-js';\nimport { cn } from 'tailwind-variants';\nimport VisibilityIcon from '~icons/material-symbols/visibility';\nimport VisibilityOffIcon from '~icons/material-symbols/visibility-off';\nexport const PasswordInput: Component<PrimitivePasswordInput.RootProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <PrimitivePasswordInput.Root\n class={cn('group/password-input flex w-full flex-col', local.class)}\n {...others}\n />\n );\n};\n\nexport const PasswordInputContext = PrimitivePasswordInput.Context;\n\nexport const PasswordInputLabel: Component<PrimitivePasswordInput.LabelProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <PrimitivePasswordInput.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 PasswordInputControl: Component<PrimitivePasswordInput.ControlProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n\n return (\n <PrimitivePasswordInput.Control\n data-slot='password-input-control'\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 '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 '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 );\n};\n\nexport const PasswordInputInput: Component<PrimitivePasswordInput.InputProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <PrimitivePasswordInput.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 'pl-2.5 pr-10',\n local.class,\n )}\n {...others}\n />\n );\n};\n\nexport const PasswordInputVisibilityTrigger: Component<\n PrimitivePasswordInput.VisibilityTriggerProps\n> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <PrimitivePasswordInput.VisibilityTrigger\n data-slot='password-input-visibility-trigger'\n class={cn(\n 'top-0 right-0 w-9 absolute flex h-full cursor-pointer items-center justify-center text-muted-foreground transition-colors outline-none hover:bg-muted hover:text-foreground focus-visible:bg-muted focus-visible:text-foreground disabled:opacity-50',\n local.class,\n )}\n {...others}\n />\n );\n};\n\nexport const PasswordInputIndicator: Component<PrimitivePasswordInput.IndicatorProps> = (props) => {\n const [local, others] = splitProps(props, ['class', 'children']);\n return (\n <PrimitivePasswordInput.Indicator\n class={cn(local.class)}\n fallback={local.children ?? <VisibilityOffIcon class='size-4' />}\n {...others}\n >\n <VisibilityIcon class='size-4' />\n </PrimitivePasswordInput.Indicator>\n );\n};\n"],"names":["PasswordInput","props","local","others","splitProps","_$createComponent","PrimitivePasswordInput","Root","_$mergeProps","cn","class","PasswordInputContext","Context","PasswordInputLabel","Label","PasswordInputControl","Control","PasswordInputInput","Input","PasswordInputVisibilityTrigger","VisibilityTrigger","PasswordInputIndicator","Indicator","fallback","children","VisibilityOffIcon","VisibilityIcon"],"mappings":";;;;;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I,EACGC,EAAuBc,mBAAiBZ,EAAA;AAAA,IAAA,aAAA;AAAA,IAAA,IAAA,QAAA;AAAA,aAEhCC,EACL,wPACAP,EAAMQ,KACR;AAAA,IAAC;AAAA,EAAA,GACGP,CAAM,CAAA;AAGhB,GAEakB,IAA4EpB,CAAAA,MAAU;AACjG,QAAM,CAACC,GAAOC,CAAM,IAAIC,EAAWH,GAAO,CAAC,SAAS,UAAU,CAAC;AAC/D,SAAAI,EACGC,EAAuBgB,WAASd,EAAA;AAAA,IAAA,IAAA,QAAA;AAAA,aACxBC,EAAGP,EAAMQ,KAAK;AAAA,IAAC;AAAA,IAAA,IACtBa,WAAQ;AAAA,aAAErB,EAAMsB,YAAQnB,EAAKoB,GAAiB;AAAA,QAAA,OAAA;AAAA,MAAA,CAAA;AAAA,IAAkB;AAAA,EAAA,GAC5DtB,GAAM;AAAA,IAAA,IAAAqB,WAAA;AAAA,aAAAnB,EAETqB,GAAc;AAAA,QAAA,OAAA;AAAA,MAAA,CAAA;AAAA,IAAA;AAAA,EAAA,CAAA,CAAA;AAGrB;"}
|
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
import { createComponent as l, mergeProps as i, template as
|
|
2
|
-
import { pin_input_exports as
|
|
3
|
-
import { splitProps as
|
|
1
|
+
import { createComponent as l, mergeProps as i, template as d, spread as u, insert as p } from "solid-js/web";
|
|
2
|
+
import { pin_input_exports as s } from "../node_modules/.bun/@ark-ui_solid@5.34.0_95b571dd5236cc92/node_modules/@ark-ui/solid/dist/chunk/3JJJT3ZB.js";
|
|
3
|
+
import { splitProps as o } from "solid-js";
|
|
4
4
|
import { cn as a } from "../node_modules/.bun/tailwind-variants@3.2.2_e7cab99c1b720a38/node_modules/tailwind-variants/dist/index.js";
|
|
5
|
-
import c from "../_virtual/
|
|
6
|
-
var g = /* @__PURE__ */
|
|
7
|
-
const y =
|
|
8
|
-
const [e, r] =
|
|
9
|
-
return l(
|
|
5
|
+
import c from "../_virtual/close.js";
|
|
6
|
+
var g = /* @__PURE__ */ d("<div data-slot=pin-input-group>"), f = /* @__PURE__ */ d("<div aria-hidden=true data-slot=pin-input-separator>");
|
|
7
|
+
const y = s.HiddenInput, P = s.Context, h = (t) => {
|
|
8
|
+
const [e, r] = o(t, ["class"]);
|
|
9
|
+
return l(s.Root, i({
|
|
10
10
|
get class() {
|
|
11
11
|
return a("group/pin-input flex w-full flex-col", e.class);
|
|
12
12
|
}
|
|
13
13
|
}, r));
|
|
14
|
-
},
|
|
15
|
-
const [e, r] =
|
|
16
|
-
return l(
|
|
14
|
+
}, C = (t) => {
|
|
15
|
+
const [e, r] = o(t, ["class"]);
|
|
16
|
+
return l(s.Label, i({
|
|
17
17
|
get class() {
|
|
18
18
|
return a("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
19
|
}
|
|
20
20
|
}, r));
|
|
21
|
-
},
|
|
22
|
-
const [e, r] =
|
|
23
|
-
return l(
|
|
21
|
+
}, _ = (t) => {
|
|
22
|
+
const [e, r] = o(t, ["class"]);
|
|
23
|
+
return l(s.Control, i({
|
|
24
24
|
"data-slot": "pin-input-control",
|
|
25
25
|
get class() {
|
|
26
26
|
return a("gap-2 flex items-center", e.class);
|
|
27
27
|
}
|
|
28
28
|
}, r));
|
|
29
29
|
}, w = (t) => {
|
|
30
|
-
const [e, r] =
|
|
30
|
+
const [e, r] = o(t, ["class"]);
|
|
31
31
|
return (() => {
|
|
32
32
|
var n = g();
|
|
33
|
-
return
|
|
33
|
+
return u(n, i({
|
|
34
34
|
get class() {
|
|
35
35
|
return a("flex items-center group-data-invalid/pin-input:border-destructive group-data-invalid/pin-input:ring-[3px] group-data-invalid/pin-input:ring-destructive/20 dark:group-data-invalid/pin-input:ring-destructive/40", "group-data-disabled/pin-input:opacity-50", e.class);
|
|
36
36
|
}
|
|
37
37
|
}, r), !1, !1), n;
|
|
38
38
|
})();
|
|
39
39
|
}, $ = (t) => {
|
|
40
|
-
const [e, r] =
|
|
41
|
-
return l(
|
|
40
|
+
const [e, r] = o(t, ["class"]);
|
|
41
|
+
return l(s.Input, i({
|
|
42
42
|
get class() {
|
|
43
|
-
return a("
|
|
43
|
+
return a("h-10 w-10 text-sm relative flex items-center justify-center border-y border-r border-input bg-transparent text-center transition-colors outline-none selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground first:rounded-l-md first:border-l last:rounded-r-md dark:bg-input/30", "focus-visible:z-10 focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50", "data-[invalid=true]:border-destructive data-[invalid=true]:ring-2 data-[invalid=true]:ring-destructive/20 dark:data-[invalid=true]:ring-destructive/40", "disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 data-[readonly=true]:cursor-default", "data-[readonly=true]:focus-visible:border-input data-[readonly=true]:focus-visible:ring-0", e.class);
|
|
44
44
|
}
|
|
45
45
|
}, r));
|
|
46
46
|
}, k = (t) => {
|
|
47
|
-
const [e, r] =
|
|
47
|
+
const [e, r] = o(t, ["class"]);
|
|
48
48
|
return (() => {
|
|
49
|
-
var n =
|
|
50
|
-
return
|
|
49
|
+
var n = f();
|
|
50
|
+
return u(n, i({
|
|
51
51
|
get class() {
|
|
52
52
|
return a("flex items-center justify-center text-muted-foreground", e.class);
|
|
53
53
|
}
|
|
@@ -59,11 +59,11 @@ const y = o.HiddenInput, P = o.Context, h = (t) => {
|
|
|
59
59
|
export {
|
|
60
60
|
h as PinInput,
|
|
61
61
|
P as PinInputContext,
|
|
62
|
-
|
|
62
|
+
_ as PinInputControl,
|
|
63
63
|
w as PinInputGroup,
|
|
64
64
|
y as PinInputHiddenInput,
|
|
65
65
|
$ as PinInputInput,
|
|
66
|
-
|
|
66
|
+
C as PinInputLabel,
|
|
67
67
|
k as PinInputSeparator
|
|
68
68
|
};
|
|
69
69
|
//# sourceMappingURL=PinInput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PinInput.js","sources":["../../src/components/PinInput.tsx"],"sourcesContent":["import { PinInput as PrimitivePinInput } from '@ark-ui/solid/pin-input';\nimport { splitProps, type Component, type ComponentProps } from 'solid-js';\nimport { cn } from 'tailwind-variants';\nimport
|
|
1
|
+
{"version":3,"file":"PinInput.js","sources":["../../src/components/PinInput.tsx"],"sourcesContent":["import { PinInput as PrimitivePinInput } from '@ark-ui/solid/pin-input';\nimport { splitProps, type Component, type ComponentProps } from 'solid-js';\nimport { cn } from 'tailwind-variants';\nimport RemoveIcon from '~icons/material-symbols/close';\n\nexport const PinInputHiddenInput = PrimitivePinInput.HiddenInput;\nexport const PinInputContext = PrimitivePinInput.Context;\n\nexport const PinInput: Component<PrimitivePinInput.RootProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <PrimitivePinInput.Root\n class={cn('group/pin-input flex w-full flex-col', local.class)}\n {...others}\n />\n );\n};\n\nexport const PinInputLabel: Component<PrimitivePinInput.LabelProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <PrimitivePinInput.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 PinInputControl: Component<PrimitivePinInput.ControlProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <PrimitivePinInput.Control\n data-slot='pin-input-control'\n class={cn('gap-2 flex items-center', local.class)}\n {...others}\n />\n );\n};\n\nexport const PinInputGroup: Component<ComponentProps<'div'>> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <div\n data-slot='pin-input-group'\n class={cn(\n 'flex items-center group-data-invalid/pin-input:border-destructive group-data-invalid/pin-input:ring-[3px] group-data-invalid/pin-input:ring-destructive/20 dark:group-data-invalid/pin-input:ring-destructive/40',\n 'group-data-disabled/pin-input:opacity-50',\n local.class,\n )}\n {...others}\n />\n );\n};\n\nexport const PinInputInput: Component<PrimitivePinInput.InputProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <PrimitivePinInput.Input\n class={cn(\n 'h-10 w-10 text-sm relative flex items-center justify-center border-y border-r border-input bg-transparent text-center transition-colors outline-none selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground first:rounded-l-md first:border-l last:rounded-r-md dark:bg-input/30',\n 'focus-visible:z-10 focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50',\n 'data-[invalid=true]:border-destructive data-[invalid=true]:ring-2 data-[invalid=true]:ring-destructive/20 dark:data-[invalid=true]:ring-destructive/40',\n 'disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 data-[readonly=true]:cursor-default',\n 'data-[readonly=true]:focus-visible:border-input data-[readonly=true]:focus-visible:ring-0',\n local.class,\n )}\n {...others}\n />\n );\n};\n\nexport const PinInputSeparator: Component<ComponentProps<'div'>> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <div\n aria-hidden='true'\n data-slot='pin-input-separator'\n class={cn('flex items-center justify-center text-muted-foreground', local.class)}\n {...others}\n >\n <RemoveIcon class='size-4' />\n </div>\n );\n};\n"],"names":["PinInputHiddenInput","PrimitivePinInput","HiddenInput","PinInputContext","Context","PinInput","props","local","others","splitProps","_$createComponent","Root","_$mergeProps","cn","class","PinInputLabel","Label","PinInputControl","Control","PinInputGroup","_el$","_tmpl$","_$spread","PinInputInput","Input","PinInputSeparator","_el$2","_tmpl$2","_$insert","RemoveIcon"],"mappings":";;;;;;AAKO,MAAMA,IAAsBC,EAAkBC,aACxCC,IAAkBF,EAAkBG,SAEpCC,IAAoDC,CAAAA,MAAU;AACzE,QAAM,CAACC,GAAOC,CAAM,IAAIC,EAAWH,GAAO,CAAC,OAAO,CAAC;AACnD,SAAAI,EACGT,EAAkBU,MAAIC,EAAA;AAAA,IAAA,IAAA,QAAA;AAAA,aACdC,EAAG,w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CAAAA,MAAU;AAC5E,QAAM,CAACC,GAAOC,CAAM,IAAIC,EAAWH,GAAO,CAAC,OAAO,CAAC;AACnD,UAAA,MAAA;AAAA,QAAAoB,IAAAC,EAAAA;AAAAL,WAAAA,EAAAI,GAAAd,EAAA;AAAA,MAAA,IAAA,QAAA;AAAA,eAIWC,EAAG,0DAA0DN,EAAMO,KAAK;AAAA,MAAC;AAAA,IAAA,GAC5EN,CAAM,GAAA,IAAA,EAAA,GAAAoB,EAAAF,GAAAhB,EAETmB,GAAU;AAAA,MAAA,OAAA;AAAA,IAAA,CAAA,CAAA,GAAAH;AAAAA,EAAA,GAAA;AAGjB;"}
|
|
@@ -2,11 +2,11 @@ import { delegateEvents as S, createComponent as o, mergeProps as l, template as
|
|
|
2
2
|
import { select_exports as r } from "../node_modules/.bun/@ark-ui_solid@5.34.0_95b571dd5236cc92/node_modules/@ark-ui/solid/dist/chunk/RJHFA54S.js";
|
|
3
3
|
import { splitProps as i, For as I } from "solid-js";
|
|
4
4
|
import { cn as n } from "../node_modules/.bun/tailwind-variants@3.2.2_e7cab99c1b720a38/node_modules/tailwind-variants/dist/index.js";
|
|
5
|
-
import k from "../_virtual/
|
|
6
|
-
import _ from "../_virtual/
|
|
7
|
-
import T from "../_virtual/
|
|
5
|
+
import k from "../_virtual/check.js";
|
|
6
|
+
import _ from "../_virtual/close.js";
|
|
7
|
+
import T from "../_virtual/expand-more.js";
|
|
8
8
|
var L = /* @__PURE__ */ g("<div role=tablist data-slot=select-tabs>"), P = /* @__PURE__ */ g("<button type=button role=tab>"), V = /* @__PURE__ */ g("<div data-slot=select-separator>");
|
|
9
|
-
const
|
|
9
|
+
const F = r.Control, M = r.ItemContext, N = r.HiddenSelect, O = (t) => {
|
|
10
10
|
const [e, s] = i(t, ["class"]);
|
|
11
11
|
return o(r.List, l({
|
|
12
12
|
"data-slot": "select-list",
|
|
@@ -200,15 +200,15 @@ export {
|
|
|
200
200
|
Y as SelectClearTrigger,
|
|
201
201
|
ee as SelectContent,
|
|
202
202
|
W as SelectContext,
|
|
203
|
-
|
|
203
|
+
F as SelectControl,
|
|
204
204
|
J as SelectGroup,
|
|
205
|
-
|
|
205
|
+
N as SelectHiddenSelect,
|
|
206
206
|
X as SelectIndicator,
|
|
207
207
|
se as SelectItem,
|
|
208
|
-
|
|
208
|
+
M as SelectItemContext,
|
|
209
209
|
te as SelectItemGroupLabel,
|
|
210
210
|
B as SelectLabel,
|
|
211
|
-
|
|
211
|
+
O as SelectList,
|
|
212
212
|
Z as SelectPositioner,
|
|
213
213
|
ae as SelectSeparator,
|
|
214
214
|
U as SelectTrigger,
|
|
@@ -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 OutlineCheckIcon from '~icons/ic/outline-check';\nimport OutlineCloseIcon from '~icons/ic/outline-close';\nimport OutlineExpandMoreIcon from '~icons/ic/outline-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 ?? <OutlineExpandMoreIcon 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 ?? <OutlineCloseIcon 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 <OutlineCheckIcon 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","OutlineExpandMoreIcon","callEventHandler","handler","event","Array","isArray","boundHandler","boundData","SelectClearTrigger","ClearTrigger","onClick","stopPropagation","onKeyDown","key","tabIndex","OutlineCloseIcon","SelectPositioner","Positioner","SelectContent","Content","SelectItemGroupLabel","ItemGroupLabel","SelectItem","Item","ItemText","ItemIndicator","OutlineCheckIcon","SelectSeparator","_el$3","_tmpl$3","_$delegateEvents"],"mappings":";;;;;;;;AAcO,MAAMA,IAAg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AAAA,YAAA,OAAA;AAAA,UAAA,CAAA;AAAA,QAAA;AAAA,MAAA,CAAA,CAAA;AAAA,IAAA;AAAA,EAAA,CAAA,CAAA;AAIzB,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 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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A,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;"}
|
package/dist/components/Sheet.js
CHANGED
|
@@ -2,7 +2,7 @@ import { createComponent as r, mergeProps as d, template as n, insert as p, spre
|
|
|
2
2
|
import { dialog_exports as o } from "../node_modules/.bun/@ark-ui_solid@5.34.0_95b571dd5236cc92/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_e7cab99c1b720a38/node_modules/tailwind-variants/dist/index.js";
|
|
5
|
-
import u from "../_virtual/
|
|
5
|
+
import u from "../_virtual/close.js";
|
|
6
6
|
import { Button as f } from "./Button.js";
|
|
7
7
|
import { ui_common_close as h } from "../paraglide/messages/ui_common_close.js";
|
|
8
8
|
var g = /* @__PURE__ */ n("<span class=sr-only>"), b = /* @__PURE__ */ n("<div data-slot=sheet-header>"), x = /* @__PURE__ */ n("<div data-slot=sheet-footer>");
|
|
@@ -22,20 +22,20 @@ const y = o.Root, k = o.Trigger, P = o.CloseTrigger, z = o.Context, B = (e) => {
|
|
|
22
22
|
return i("fixed z-50 flex flex-col", "data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:max-h-[90vh]", "data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:max-h-[90vh]", "data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:w-auto data-[side=left]:max-w-[90vw]", "data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:w-auto data-[side=right]:max-w-[90vw]", t.class);
|
|
23
23
|
}
|
|
24
24
|
}, a));
|
|
25
|
-
},
|
|
25
|
+
}, F = (e) => {
|
|
26
26
|
const [t, a] = l(e, ["class", "children", "side"]), s = t.side ?? "right";
|
|
27
27
|
return r(o.Content, d({
|
|
28
28
|
"data-slot": "sheet-content",
|
|
29
29
|
"data-side": s,
|
|
30
30
|
get class() {
|
|
31
|
-
return i("gap-4 p-6 shadow-lg relative flex h-full w-full flex-col bg-background outline-none", "border-l border-border", "data-[side=left]:border-
|
|
31
|
+
return i("gap-4 p-6 shadow-lg relative flex h-full w-full flex-col bg-background outline-none", "border-l border-border", "data-[side=left]:border-r data-[side=left]:border-l-0", "data-[side=top]:border-b data-[side=top]:border-l-0", "data-[side=bottom]:border-t data-[side=bottom]:border-l-0", "data-[state=closed]:animate-out data-[state=open]:animate-in", "data-[state=closed]:duration-300 data-[state=open]:duration-300", "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", "data-[side=right]:data-[state=closed]:slide-out-to-right-1/2 data-[side=right]:data-[state=open]:slide-in-from-right-1/2", "data-[side=left]:data-[state=closed]:slide-out-to-left-1/2 data-[side=left]:data-[state=open]:slide-in-from-left-1/2", "data-[side=top]:data-[state=closed]:slide-out-to-top-1/2 data-[side=top]:data-[state=open]:slide-in-from-top-1/2", "data-[side=bottom]:data-[state=closed]:slide-out-to-bottom-1/2 data-[side=bottom]:data-[state=open]:slide-in-from-bottom-1/2", t.class);
|
|
32
32
|
}
|
|
33
33
|
}, a, {
|
|
34
34
|
get children() {
|
|
35
35
|
return t.children;
|
|
36
36
|
}
|
|
37
37
|
}));
|
|
38
|
-
},
|
|
38
|
+
}, H = (e) => {
|
|
39
39
|
const [t, a] = l(e, ["class"]);
|
|
40
40
|
return r(o.CloseTrigger, {
|
|
41
41
|
get class() {
|
|
@@ -58,7 +58,7 @@ const y = o.Root, k = o.Trigger, P = o.CloseTrigger, z = o.Context, B = (e) => {
|
|
|
58
58
|
}
|
|
59
59
|
}))
|
|
60
60
|
});
|
|
61
|
-
},
|
|
61
|
+
}, I = (e) => {
|
|
62
62
|
const [t, a] = l(e, ["class"]);
|
|
63
63
|
return (() => {
|
|
64
64
|
var s = b();
|
|
@@ -68,7 +68,7 @@ const y = o.Root, k = o.Trigger, P = o.CloseTrigger, z = o.Context, B = (e) => {
|
|
|
68
68
|
}
|
|
69
69
|
}, a), !1, !1), s;
|
|
70
70
|
})();
|
|
71
|
-
},
|
|
71
|
+
}, O = (e) => {
|
|
72
72
|
const [t, a] = l(e, ["class"]);
|
|
73
73
|
return (() => {
|
|
74
74
|
var s = x();
|
|
@@ -97,13 +97,13 @@ const y = o.Root, k = o.Trigger, P = o.CloseTrigger, z = o.Context, B = (e) => {
|
|
|
97
97
|
};
|
|
98
98
|
export {
|
|
99
99
|
y as Sheet,
|
|
100
|
-
|
|
100
|
+
H as SheetCloseButton,
|
|
101
101
|
P as SheetCloseTrigger,
|
|
102
|
-
|
|
102
|
+
F as SheetContent,
|
|
103
103
|
z as SheetContext,
|
|
104
104
|
j as SheetDescription,
|
|
105
|
-
|
|
106
|
-
|
|
105
|
+
O as SheetFooter,
|
|
106
|
+
I as SheetHeader,
|
|
107
107
|
B as SheetOverlay,
|
|
108
108
|
D as SheetPositioner,
|
|
109
109
|
R as SheetTitle,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sheet.js","sources":["../../src/components/Sheet.tsx"],"sourcesContent":["import { Dialog as SheetPrimitive } from '@ark-ui/solid/dialog';\nimport { type Component, type ComponentProps, splitProps } from 'solid-js';\nimport { cn } from 'tailwind-variants';\nimport
|
|
1
|
+
{"version":3,"file":"Sheet.js","sources":["../../src/components/Sheet.tsx"],"sourcesContent":["import { Dialog as SheetPrimitive } from '@ark-ui/solid/dialog';\nimport { type Component, type ComponentProps, splitProps } from 'solid-js';\nimport { cn } from 'tailwind-variants';\nimport CloseIcon from '~icons/material-symbols/close';\n\nimport { Button } from '@/components/Button';\nimport * as messages from '@/paraglide/messages';\n\nexport const Sheet = SheetPrimitive.Root;\nexport const SheetTrigger = SheetPrimitive.Trigger;\nexport const SheetCloseTrigger = SheetPrimitive.CloseTrigger;\nexport const SheetContext = SheetPrimitive.Context;\n\nexport const SheetOverlay: Component<SheetPrimitive.BackdropProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <SheetPrimitive.Backdrop\n data-slot='sheet-overlay'\n class={cn(\n 'bg-black/40 inset-0 backdrop-blur-sm fixed z-50',\n 'data-[state=open]:animate-in data-[state=open]:fade-in-0',\n 'data-[state=closed]:animate-out data-[state=closed]:fade-out-0',\n local.class,\n )}\n {...others}\n />\n );\n};\n\nexport const SheetPositioner: Component<\n SheetPrimitive.PositionerProps & { side?: 'top' | 'right' | 'bottom' | 'left' }\n> = (props) => {\n const [local, others] = splitProps(props, ['class', 'side']);\n const side = local.side ?? 'right';\n return (\n <SheetPrimitive.Positioner\n data-side={side}\n class={cn(\n 'fixed z-50 flex flex-col',\n 'data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:max-h-[90vh]',\n 'data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:max-h-[90vh]',\n 'data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:w-auto data-[side=left]:max-w-[90vw]',\n 'data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:w-auto data-[side=right]:max-w-[90vw]',\n local.class,\n )}\n {...others}\n />\n );\n};\n\nexport const SheetContent: Component<\n SheetPrimitive.ContentProps & { side?: 'top' | 'right' | 'bottom' | 'left' }\n> = (props) => {\n const [local, others] = splitProps(props, ['class', 'children', 'side']);\n const side = local.side ?? 'right';\n\n return (\n <SheetPrimitive.Content\n data-slot='sheet-content'\n data-side={side}\n class={cn(\n 'gap-4 p-6 shadow-lg relative flex h-full w-full flex-col bg-background outline-none',\n 'border-l border-border',\n 'data-[side=left]:border-r data-[side=left]:border-l-0',\n 'data-[side=top]:border-b data-[side=top]:border-l-0',\n 'data-[side=bottom]:border-t data-[side=bottom]:border-l-0',\n 'data-[state=closed]:animate-out data-[state=open]:animate-in',\n 'data-[state=closed]:duration-300 data-[state=open]:duration-300',\n 'data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',\n 'data-[side=right]:data-[state=closed]:slide-out-to-right-1/2 data-[side=right]:data-[state=open]:slide-in-from-right-1/2',\n 'data-[side=left]:data-[state=closed]:slide-out-to-left-1/2 data-[side=left]:data-[state=open]:slide-in-from-left-1/2',\n 'data-[side=top]:data-[state=closed]:slide-out-to-top-1/2 data-[side=top]:data-[state=open]:slide-in-from-top-1/2',\n 'data-[side=bottom]:data-[state=closed]:slide-out-to-bottom-1/2 data-[side=bottom]:data-[state=open]:slide-in-from-bottom-1/2',\n local.class,\n )}\n {...others}\n >\n {local.children}\n </SheetPrimitive.Content>\n );\n};\n\nexport const SheetCloseButton: Component<SheetPrimitive.CloseTriggerProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n\n return (\n <SheetPrimitive.CloseTrigger\n class={cn('top-3 right-3 absolute', local.class)}\n asChild={(triggerProps) => (\n <Button\n variant='ghost'\n size='icon-sm'\n aria-label={messages.ui_common_close()}\n {...triggerProps()}\n {...others}\n >\n <CloseIcon aria-hidden='true' />\n <span class='sr-only'>{messages.ui_common_close()}</span>\n </Button>\n )}\n />\n );\n};\n\nexport const SheetHeader: Component<ComponentProps<'div'>> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <div\n data-slot='sheet-header'\n class={cn('gap-1.5 p-4 flex flex-col', local.class)}\n {...others}\n />\n );\n};\n\nexport const SheetFooter: Component<ComponentProps<'div'>> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <div\n data-slot='sheet-footer'\n class={cn('gap-2 p-4 mt-auto flex flex-col', local.class)}\n {...others}\n />\n );\n};\n\nexport const SheetTitle: Component<SheetPrimitive.TitleProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <SheetPrimitive.Title\n data-slot='sheet-title'\n class={cn('text-lg font-semibold text-foreground', local.class)}\n {...others}\n />\n );\n};\n\nexport const SheetDescription: Component<SheetPrimitive.DescriptionProps> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n return (\n <SheetPrimitive.Description\n data-slot='sheet-description'\n class={cn('text-sm text-muted-foreground', local.class)}\n {...others}\n />\n );\n};\n"],"names":["Sheet","SheetPrimitive","Root","SheetTrigger","Trigger","SheetCloseTrigger","CloseTrigger","SheetContext","Context","SheetOverlay","props","local","others","splitProps","_$createComponent","Backdrop","_$mergeProps","cn","class","SheetPositioner","side","Positioner","SheetContent","Content","children","SheetCloseButton","asChild","triggerProps","Button","variant","size","messages","ui_common_close","CloseIcon","_el$","_tmpl$","_$insert","SheetHeader","_el$2","_tmpl$2","_$spread","SheetFooter","_el$3","_tmpl$3","SheetTitle","Title","SheetDescription","Description"],"mappings":";;;;;;;;AAQO,MAAMA,IAAQC,EAAeC,MACvBC,IAAeF,EAAeG,SAC9BC,IAAoBJ,EAAeK,cACnCC,IAAeN,EAAeO,SAE9BC,IAAyDC,CAAAA,MAAU;AAC9E,QAAM,CAACC,GAAOC,CAAM,IAAIC,EAAWH,GAAO,CAAC,OAAO,CAAC;AACnD,SAAAI,EACGb,EAAec,UAAQC,EAAA;AAAA,IAAA,aAAA;AAAA,IAAA,IAAA,QAAA;AAAA,aAEfC,EACL,mDACA,4DACA,kEACAN,EAAMO,KACR;AAAA,IAAC;AAAA,EAAA,GACGN,CAAM,CAAA;AAGhB,GAE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,IAAIC,EAAWH,GAAO,CAAC,OAAO,CAAC;AACnD,SAAAI,EACGb,EAAe8C,aAAW/B,EAAA;AAAA,IAAA,aAAA;AAAA,IAAA,IAAA,QAAA;AAAA,aAElBC,EAAG,iCAAiCN,EAAMO,KAAK;AAAA,IAAC;AAAA,EAAA,GACnDN,CAAM,CAAA;AAGhB;"}
|
|
@@ -1,23 +1,27 @@
|
|
|
1
|
-
import { template as o, spread as
|
|
2
|
-
import { splitProps as
|
|
3
|
-
import { cn as
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { template as o, spread as n, mergeProps as i, insert as a, createComponent as m } from "solid-js/web";
|
|
2
|
+
import { splitProps as l } from "solid-js";
|
|
3
|
+
import { cn as p } from "../node_modules/.bun/tailwind-variants@3.2.2_e7cab99c1b720a38/node_modules/tailwind-variants/dist/index.js";
|
|
4
|
+
import c from "../_virtual/progress-activity.js";
|
|
5
|
+
import { ui_common_loading as u } from "../paraglide/messages/ui_common_loading.js";
|
|
6
|
+
var f = /* @__PURE__ */ o("<span role=status>");
|
|
7
|
+
const h = (e) => {
|
|
8
|
+
const [t, s] = l(e, ["class"]);
|
|
8
9
|
return (() => {
|
|
9
|
-
var r =
|
|
10
|
-
return
|
|
10
|
+
var r = f();
|
|
11
|
+
return n(r, i({
|
|
11
12
|
get "aria-label"() {
|
|
12
|
-
return
|
|
13
|
+
return u();
|
|
13
14
|
},
|
|
14
15
|
get class() {
|
|
15
|
-
return
|
|
16
|
+
return p("inline-flex items-center justify-center", t.class);
|
|
16
17
|
}
|
|
17
|
-
}, s), !1, !0), r
|
|
18
|
+
}, s), !1, !0), a(r, m(c, {
|
|
19
|
+
class: "size-4 animate-spin",
|
|
20
|
+
"aria-hidden": "true"
|
|
21
|
+
})), r;
|
|
18
22
|
})();
|
|
19
23
|
};
|
|
20
24
|
export {
|
|
21
|
-
|
|
25
|
+
h as Spinner
|
|
22
26
|
};
|
|
23
27
|
//# sourceMappingURL=Spinner.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Spinner.js","sources":["../../src/components/Spinner.tsx"],"sourcesContent":["import { type Component, type ComponentProps, splitProps } from 'solid-js';\nimport { cn } from 'tailwind-variants';\n\nimport * as messages from '@/paraglide/messages';\n\nexport const Spinner: Component<ComponentProps<'span'>> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n\n return (\n <span\n role='status'\n aria-label={messages.ui_common_loading()}\n class={cn('inline-flex items-center justify-center', local.class)}\n {...others}\n >\n <
|
|
1
|
+
{"version":3,"file":"Spinner.js","sources":["../../src/components/Spinner.tsx"],"sourcesContent":["import { type Component, type ComponentProps, splitProps } from 'solid-js';\nimport { cn } from 'tailwind-variants';\nimport ProgressActivityIcon from '~icons/material-symbols/progress-activity';\n\nimport * as messages from '@/paraglide/messages';\n\nexport const Spinner: Component<ComponentProps<'span'>> = (props) => {\n const [local, others] = splitProps(props, ['class']);\n\n return (\n <span\n role='status'\n aria-label={messages.ui_common_loading()}\n class={cn('inline-flex items-center justify-center', local.class)}\n {...others}\n >\n <ProgressActivityIcon class='size-4 animate-spin' aria-hidden='true' />\n </span>\n );\n};\n"],"names":["Spinner","props","local","others","splitProps","_el$","_tmpl$","_$spread","_$mergeProps","messages","ui_common_loading","cn","class","_$insert","_$createComponent","ProgressActivityIcon"],"mappings":";;;;;;AAMO,MAAMA,IAA8CC,CAAAA,MAAU;AACnE,QAAM,CAACC,GAAOC,CAAM,IAAIC,EAAWH,GAAO,CAAC,OAAO,CAAC;AAEnD,UAAA,MAAA;AAAA,QAAAI,IAAAC,EAAAA;AAAAC,WAAAA,EAAAF,GAAAG,EAAA;AAAA,MAAA,IAAA,eAAA;AAAA,eAGgBC,EAASC;AAAAA,MAAmB;AAAA,MAAA,IAAA,QAAA;AAAA,eACjCC,EAAG,2CAA2CT,EAAMU,KAAK;AAAA,MAAC;AAAA,IAAA,GAC7DT,CAAM,GAAA,IAAA,EAAA,GAAAU,EAAAR,GAAAS,EAETC,GAAoB;AAAA,MAAA,OAAA;AAAA,MAAA,eAAA;AAAA,IAAA,CAAA,CAAA,GAAAV;AAAAA,EAAA,GAAA;AAG3B;"}
|
|
@@ -2,7 +2,7 @@ import { createComponent as s, mergeProps as o } from "solid-js/web";
|
|
|
2
2
|
import { tags_input_exports as n } from "../node_modules/.bun/@ark-ui_solid@5.34.0_95b571dd5236cc92/node_modules/@ark-ui/solid/dist/chunk/O6MULJWC.js";
|
|
3
3
|
import { splitProps as a } from "solid-js";
|
|
4
4
|
import { cn as i } from "../node_modules/.bun/tailwind-variants@3.2.2_e7cab99c1b720a38/node_modules/tailwind-variants/dist/index.js";
|
|
5
|
-
import l from "../_virtual/
|
|
5
|
+
import l from "../_virtual/close.js";
|
|
6
6
|
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({
|
|
@@ -14,7 +14,7 @@ const m = n.Root, h = n.Context, b = n.HiddenInput, f = (t) => {
|
|
|
14
14
|
const [e, r] = a(t, ["class", "children"]);
|
|
15
15
|
return s(n.Control, o({
|
|
16
16
|
get class() {
|
|
17
|
-
return i('group
|
|
17
|
+
return i('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', "focus-within:border-ring focus-within:ring-[3px] focus-within:ring-ring/50", "data-[invalid=true]:border-destructive data-[invalid=true]:ring-[3px] data-[invalid=true]:ring-destructive/20 dark:data-[invalid=true]:ring-destructive/40", "data-[disabled=true]:bg-input/50 data-[disabled=true]:opacity-50 dark:data-[disabled=true]:bg-input/80", "data-[readonly=true]:focus-within:border-input data-[readonly=true]:focus-within:ring-0", e.class);
|
|
18
18
|
}
|
|
19
19
|
}, r, {
|
|
20
20
|
get children() {
|
|
@@ -32,7 +32,7 @@ const m = n.Root, h = n.Context, b = n.HiddenInput, f = (t) => {
|
|
|
32
32
|
const [e, r] = a(t, ["class", "children"]);
|
|
33
33
|
return s(n.ClearTrigger, o({
|
|
34
34
|
get class() {
|
|
35
|
-
return i("right-2
|
|
35
|
+
return i("right-2 p-0.5 absolute top-1/2 -translate-y-1/2 rounded-sm text-muted-foreground transition-colors hover:text-foreground", e.class);
|
|
36
36
|
}
|
|
37
37
|
}, r, {
|
|
38
38
|
get children() {
|
|
@@ -45,7 +45,7 @@ const m = n.Root, h = n.Context, b = n.HiddenInput, f = (t) => {
|
|
|
45
45
|
const [e, r] = a(t, ["class", "children"]);
|
|
46
46
|
return s(n.Item, o({
|
|
47
47
|
get class() {
|
|
48
|
-
return i("inline-flex items-center outline-none
|
|
48
|
+
return i("inline-flex cursor-default items-center outline-none", e.class);
|
|
49
49
|
}
|
|
50
50
|
}, r, {
|
|
51
51
|
get children() {
|
|
@@ -57,7 +57,7 @@ const m = n.Root, h = n.Context, b = n.HiddenInput, f = (t) => {
|
|
|
57
57
|
return s(n.ItemPreview, o({
|
|
58
58
|
"data-slot": "tags-input-item-preview",
|
|
59
59
|
get class() {
|
|
60
|
-
return i("h-6 gap-1 px-1.5 text-xs font-medium
|
|
60
|
+
return i("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", "data-highlighted:border-ring data-highlighted:bg-accent data-highlighted:text-accent-foreground", "data-disabled:pointer-events-none data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50", e.class);
|
|
61
61
|
}
|
|
62
62
|
}, r));
|
|
63
63
|
}, y = (t) => {
|
|
@@ -71,7 +71,7 @@ const m = n.Root, h = n.Context, b = n.HiddenInput, f = (t) => {
|
|
|
71
71
|
const [e, r] = a(t, ["class"]);
|
|
72
72
|
return s(n.ItemInput, o({
|
|
73
73
|
get class() {
|
|
74
|
-
return i("py-0 px-1.5 h-6 text-xs rounded-md border border-input bg-background text-foreground outline-none", "focus-visible:ring-[3px] focus-visible:ring-ring/50
|
|
74
|
+
return i("py-0 px-1.5 h-6 text-xs rounded-md border border-input bg-background text-foreground outline-none", "focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50", e.class);
|
|
75
75
|
}
|
|
76
76
|
}, r));
|
|
77
77
|
}, k = (t) => {
|