@adamosuiteservices/ui 2.11.17 → 2.11.18
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/accordion-rounded.cjs +1 -1
- package/dist/accordion-rounded.js +1 -1
- package/dist/badge.cjs +3 -3
- package/dist/badge.js +2 -2
- package/dist/breadcrumb.cjs +5 -5
- package/dist/breadcrumb.js +16 -16
- package/dist/components/ui/date-picker-selector/date-picker-selector.d.ts +2 -2
- package/dist/components/ui/sheet/sheet.d.ts +2 -1
- package/dist/date-picker-selector.cjs +1 -1
- package/dist/date-picker-selector.js +29 -30
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.js +1 -1
- package/dist/select.cjs +2 -2
- package/dist/select.js +2 -2
- package/dist/{sheet-DVT_djHX.cjs → sheet-CvcCaGSl.cjs} +11 -11
- package/dist/{sheet-CPf9Guon.js → sheet-IRIc3TJ1.js} +33 -19
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.js +7 -6
- package/dist/sidebar.cjs +1 -1
- package/dist/sidebar.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/tabs-underline.cjs +3 -3
- package/dist/tabs-underline.js +13 -13
- package/dist/tabs.cjs +5 -4
- package/dist/tabs.js +3 -2
- package/dist/themes.css +1 -1
- package/docs/AI-GUIDE.md +321 -321
- package/docs/components/layout/sidebar.md +399 -399
- package/docs/components/layout/toaster.md +436 -436
- package/docs/components/ui/accordion-rounded.md +584 -584
- package/docs/components/ui/accordion.md +269 -269
- package/docs/components/ui/badge.md +2 -1
- package/docs/components/ui/button-group.md +984 -984
- package/docs/components/ui/button.md +1137 -1137
- package/docs/components/ui/calendar.md +1159 -1159
- package/docs/components/ui/card.md +1455 -1455
- package/docs/components/ui/checkbox.md +292 -292
- package/docs/components/ui/collapsible.md +323 -323
- package/docs/components/ui/command.md +454 -454
- package/docs/components/ui/context-menu.md +540 -540
- package/docs/components/ui/date-picker-selector.md +0 -2
- package/docs/components/ui/dialog.md +628 -628
- package/docs/components/ui/dropdown-menu.md +709 -709
- package/docs/components/ui/field.md +706 -706
- package/docs/components/ui/hover-card.md +446 -446
- package/docs/components/ui/input.md +362 -362
- package/docs/components/ui/kbd.md +434 -434
- package/docs/components/ui/label.md +359 -359
- package/docs/components/ui/pagination.md +650 -650
- package/docs/components/ui/popover.md +536 -536
- package/docs/components/ui/progress.md +182 -182
- package/docs/components/ui/radio-group.md +311 -311
- package/docs/components/ui/select.md +352 -352
- package/docs/components/ui/separator.md +214 -214
- package/docs/components/ui/sheet.md +174 -142
- package/docs/components/ui/skeleton.md +140 -140
- package/docs/components/ui/slider.md +341 -341
- package/docs/components/ui/spinner.md +170 -170
- package/docs/components/ui/switch.md +408 -408
- package/docs/components/ui/tabs-underline.md +106 -106
- package/docs/components/ui/tabs.md +122 -122
- package/docs/components/ui/textarea.md +243 -243
- package/docs/components/ui/toggle.md +237 -237
- package/docs/components/ui/tooltip.md +317 -317
- package/docs/components/ui/typography.md +280 -280
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
adm:last:mb-0
|
|
4
4
|
`,t),...a})}function x({className:t,children:a,title:n,badge:m,...r}){return e.jsxRuntimeExports.jsx(d.Header,{className:"adm:flex adm:h-14",children:e.jsxRuntimeExports.jsxs(d.Trigger2,{"data-slot":"accordion-trigger",className:o.cn(`
|
|
5
5
|
adm:group adm:flex adm:flex-1 adm:items-center adm:gap-4
|
|
6
|
-
adm:rounded-
|
|
6
|
+
adm:rounded-2xl adm:px-4 adm:transition-all adm:outline-none
|
|
7
7
|
adm:disabled:pointer-events-none adm:disabled:opacity-50
|
|
8
8
|
`,t),...r,children:[e.jsxRuntimeExports.jsx("div",{className:`
|
|
9
9
|
adm:line-clamp-1 adm:flex adm:flex-1 adm:items-center
|
|
@@ -42,7 +42,7 @@ function b({
|
|
|
42
42
|
className: m(
|
|
43
43
|
`
|
|
44
44
|
adm:group adm:flex adm:flex-1 adm:items-center adm:gap-4
|
|
45
|
-
adm:rounded-
|
|
45
|
+
adm:rounded-2xl adm:px-4 adm:transition-all adm:outline-none
|
|
46
46
|
adm:disabled:pointer-events-none adm:disabled:opacity-50
|
|
47
47
|
`,
|
|
48
48
|
d
|
package/dist/badge.cjs
CHANGED
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
adm:text-foreground
|
|
85
85
|
adm:[a&]:hover:bg-accent adm:[a&]:hover:text-accent-foreground
|
|
86
86
|
`},size:{lg:`
|
|
87
|
-
adm:gap-2 adm:px-2 adm:py-1 adm:text-sm
|
|
88
|
-
adm:[&>[data-slot=icon]]:text-
|
|
87
|
+
adm:gap-2 adm:rounded-lg adm:px-2 adm:py-1 adm:text-sm
|
|
88
|
+
adm:[&>[data-slot=icon]]:text-xl
|
|
89
89
|
adm:[&>svg]:size-4
|
|
90
|
-
`}},defaultVariants:{variant:"default"}});function c({className:
|
|
90
|
+
`}},defaultVariants:{variant:"default"}});function c({className:d,variant:e,size:r,asChild:t=!1,...i}){const s=t?n.Slot:"span";return m.jsxRuntimeExports.jsx(s,{"data-slot":"badge",className:g.cn(a({variant:e,size:r}),d),...i})}exports.Badge=c;exports.badgeVariants=a;
|
package/dist/badge.js
CHANGED
|
@@ -110,8 +110,8 @@ const g = o(
|
|
|
110
110
|
},
|
|
111
111
|
size: {
|
|
112
112
|
lg: `
|
|
113
|
-
adm:gap-2 adm:px-2 adm:py-1 adm:text-sm
|
|
114
|
-
adm:[&>[data-slot=icon]]:text-
|
|
113
|
+
adm:gap-2 adm:rounded-lg adm:px-2 adm:py-1 adm:text-sm
|
|
114
|
+
adm:[&>[data-slot=icon]]:text-xl
|
|
115
115
|
adm:[&>svg]:size-4
|
|
116
116
|
`
|
|
117
117
|
}
|
package/dist/breadcrumb.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./jsx-runtime-BB_1_6y_.cjs"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./jsx-runtime-BB_1_6y_.cjs"),m=require("./index-CjyiloO7.cjs"),d=require("./icon-DPMQJBkA.cjs"),t=require("./index-DoxiiusW.cjs");require("react");function i({...e}){return a.jsxRuntimeExports.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...e})}function o({className:e,...r}){return a.jsxRuntimeExports.jsx("ol",{"data-slot":"breadcrumb-list",className:t.cn(`
|
|
2
2
|
adm:flex adm:flex-wrap adm:items-center adm:gap-1.5 adm:text-sm
|
|
3
|
-
adm:break-words adm:text-
|
|
3
|
+
adm:break-words adm:text-foreground
|
|
4
4
|
adm:sm:gap-2.5
|
|
5
|
-
`,e),...r})}function
|
|
5
|
+
`,e),...r})}function u({className:e,...r}){return a.jsxRuntimeExports.jsx("li",{"data-slot":"breadcrumb-item",className:t.cn("adm:inline-flex adm:items-center adm:gap-1.5",e),...r})}function c({asChild:e,className:r,...s}){const n=e?m.Slot:"a";return a.jsxRuntimeExports.jsx(n,{"data-slot":"breadcrumb-link",className:t.cn(`
|
|
6
6
|
adm:transition-colors
|
|
7
|
-
adm:hover:text-foreground
|
|
7
|
+
adm:hover:text-foreground adm:hover:underline
|
|
8
8
|
`,r),...s})}function l({className:e,...r}){return a.jsxRuntimeExports.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:t.cn("adm:font-normal adm:text-foreground",e),...r})}function x({children:e,className:r,...s}){return a.jsxRuntimeExports.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:t.cn(`
|
|
9
9
|
adm:flex
|
|
10
10
|
adm:[&>[data-slot=icon]]:text-lg
|
|
11
11
|
adm:[&>svg]:size-3.5
|
|
12
|
-
`,r),...s,children:e??
|
|
12
|
+
`,r),...s,children:e??"/"})}function b({className:e,...r}){return a.jsxRuntimeExports.jsxs("span",{"data-slot":"breadcrumb-ellipsis",role:"presentation","aria-hidden":"true",className:t.cn("adm:flex adm:size-9 adm:items-center adm:justify-center",e),...r,children:[a.jsxRuntimeExports.jsx(d.Icon,{symbol:"more_horiz",className:"adm:text-lg"}),a.jsxRuntimeExports.jsx("span",{className:"adm:sr-only",children:"More"})]})}exports.Breadcrumb=i;exports.BreadcrumbEllipsis=b;exports.BreadcrumbItem=u;exports.BreadcrumbLink=c;exports.BreadcrumbList=o;exports.BreadcrumbPage=l;exports.BreadcrumbSeparator=x;
|
package/dist/breadcrumb.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { j as e } from "./jsx-runtime-BzflLqGi.js";
|
|
3
|
-
import { S as
|
|
4
|
-
import { I as
|
|
3
|
+
import { S as d } from "./index-BvLQnI56.js";
|
|
4
|
+
import { I as n } from "./icon-DKAhvlX_.js";
|
|
5
5
|
import { c as t } from "./index-CRiPKpXj.js";
|
|
6
6
|
import "react";
|
|
7
7
|
function b({ ...a }) {
|
|
8
8
|
return /* @__PURE__ */ e.jsx("nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", ...a });
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function p({ className: a, ...r }) {
|
|
11
11
|
return /* @__PURE__ */ e.jsx(
|
|
12
12
|
"ol",
|
|
13
13
|
{
|
|
@@ -15,7 +15,7 @@ function x({ className: a, ...r }) {
|
|
|
15
15
|
className: t(
|
|
16
16
|
`
|
|
17
17
|
adm:flex adm:flex-wrap adm:items-center adm:gap-1.5 adm:text-sm
|
|
18
|
-
adm:break-words adm:text-
|
|
18
|
+
adm:break-words adm:text-foreground
|
|
19
19
|
adm:sm:gap-2.5
|
|
20
20
|
`,
|
|
21
21
|
a
|
|
@@ -24,7 +24,7 @@ function x({ className: a, ...r }) {
|
|
|
24
24
|
}
|
|
25
25
|
);
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function x({ className: a, ...r }) {
|
|
28
28
|
return /* @__PURE__ */ e.jsx(
|
|
29
29
|
"li",
|
|
30
30
|
{
|
|
@@ -37,18 +37,18 @@ function p({ className: a, ...r }) {
|
|
|
37
37
|
function f({
|
|
38
38
|
asChild: a,
|
|
39
39
|
className: r,
|
|
40
|
-
...
|
|
40
|
+
...m
|
|
41
41
|
}) {
|
|
42
|
-
const
|
|
42
|
+
const s = a ? d : "a";
|
|
43
43
|
return /* @__PURE__ */ e.jsx(
|
|
44
|
-
|
|
44
|
+
s,
|
|
45
45
|
{
|
|
46
46
|
"data-slot": "breadcrumb-link",
|
|
47
47
|
className: t(`
|
|
48
48
|
adm:transition-colors
|
|
49
|
-
adm:hover:text-foreground
|
|
49
|
+
adm:hover:text-foreground adm:hover:underline
|
|
50
50
|
`, r),
|
|
51
|
-
...
|
|
51
|
+
...m
|
|
52
52
|
}
|
|
53
53
|
);
|
|
54
54
|
}
|
|
@@ -68,7 +68,7 @@ function g({ className: a, ...r }) {
|
|
|
68
68
|
function j({
|
|
69
69
|
children: a,
|
|
70
70
|
className: r,
|
|
71
|
-
...
|
|
71
|
+
...m
|
|
72
72
|
}) {
|
|
73
73
|
return /* @__PURE__ */ e.jsx(
|
|
74
74
|
"li",
|
|
@@ -84,8 +84,8 @@ function j({
|
|
|
84
84
|
`,
|
|
85
85
|
r
|
|
86
86
|
),
|
|
87
|
-
...
|
|
88
|
-
children: a ??
|
|
87
|
+
...m,
|
|
88
|
+
children: a ?? "/"
|
|
89
89
|
}
|
|
90
90
|
);
|
|
91
91
|
}
|
|
@@ -102,7 +102,7 @@ function h({
|
|
|
102
102
|
className: t("adm:flex adm:size-9 adm:items-center adm:justify-center", a),
|
|
103
103
|
...r,
|
|
104
104
|
children: [
|
|
105
|
-
/* @__PURE__ */ e.jsx(
|
|
105
|
+
/* @__PURE__ */ e.jsx(n, { symbol: "more_horiz", className: "adm:text-lg" }),
|
|
106
106
|
/* @__PURE__ */ e.jsx("span", { className: "adm:sr-only", children: "More" })
|
|
107
107
|
]
|
|
108
108
|
}
|
|
@@ -111,9 +111,9 @@ function h({
|
|
|
111
111
|
export {
|
|
112
112
|
b as Breadcrumb,
|
|
113
113
|
h as BreadcrumbEllipsis,
|
|
114
|
-
|
|
114
|
+
x as BreadcrumbItem,
|
|
115
115
|
f as BreadcrumbLink,
|
|
116
|
-
|
|
116
|
+
p as BreadcrumbList,
|
|
117
117
|
g as BreadcrumbPage,
|
|
118
118
|
j as BreadcrumbSeparator
|
|
119
119
|
};
|
|
@@ -11,11 +11,11 @@ export type DatePickerSelectorLabels = {
|
|
|
11
11
|
cancel?: string;
|
|
12
12
|
apply?: string;
|
|
13
13
|
};
|
|
14
|
-
export type DatePickerSelectorProps =
|
|
14
|
+
export type DatePickerSelectorProps = Readonly<{
|
|
15
15
|
dateRange: DateRange;
|
|
16
16
|
onDateRangeChange: (dateRange: DateRange) => void;
|
|
17
17
|
labels?: DatePickerSelectorLabels;
|
|
18
18
|
combobox?: Omit<ComponentProps<typeof Combobox>, "options">;
|
|
19
19
|
calendar?: Omit<ComponentProps<typeof Calendar>, "mode" | "selected" | "onSelected">;
|
|
20
20
|
}>;
|
|
21
|
-
export declare function DatePickerSelector({ dateRange, onDateRangeChange, labels, combobox, calendar
|
|
21
|
+
export declare function DatePickerSelector({ dateRange, onDateRangeChange, labels, combobox, calendar }: DatePickerSelectorProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -11,4 +11,5 @@ declare function SheetHeader({ className, ...props }: React.ComponentProps<"div"
|
|
|
11
11
|
declare function SheetFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
declare function SheetTitle({ className, ...props }: React.ComponentProps<typeof SheetPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
declare function SheetDescription({ className, ...props }: React.ComponentProps<typeof SheetPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
|
|
14
|
+
declare function SheetBody({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export { Sheet, SheetTrigger, SheetClose, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, SheetBody, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-BB_1_6y_.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-BB_1_6y_.cjs"),x=require("./button-B_VHdPPV.cjs"),m=require("./calendar-IAVS_7up.cjs"),R=require("./combobox-DplJzBX6.cjs"),v=require("./input-CWDpI1Ua.cjs"),i=require("./popover-cGp_rNLg.cjs"),u=require("react");function d(n,o,l){return m.addDays(n,-o,l)}function g({dateRange:n,onDateRangeChange:o,labels:l,combobox:y,calendar:j}){const[f,b]=u.useState(void 0),[h,r]=u.useState(!1),[c,p]=u.useState(n),a={...{last30Days:"Last 30 days",last7Days:"Last 7 days",last90Days:"Last 90 days",custom:"Custom",placeholder:"Date",cancel:"Cancel",apply:"Apply"},...l},D=s=>{const t=m.startOfDay(new Date);switch(s){case"7_days":return{from:d(t,7),to:t};case"30_days":return{from:d(t,30),to:t};case"90_days":return{from:d(t,90),to:t};default:return{from:void 0,to:void 0}}};return e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx(R.Combobox,{alwaysShowPlaceholder:!0,selectedFeedback:"check",icon:"calendar_today",options:[{label:a.last7Days,value:"7_days"},{label:a.last30Days,value:"30_days"},{label:a.last90Days,value:"90_days"},{label:a.custom,value:"custom"}],value:f,onValueChange:s=>{if(typeof s=="string")if(s==="custom")r(!0);else{const t=D(s);o(t),p(void 0)}b(s)},labels:{placeholder:a.placeholder},...y}),e.jsxRuntimeExports.jsxs(i.Popover,{open:h,onOpenChange:r,children:[e.jsxRuntimeExports.jsx(i.PopoverAnchor,{asChild:!0,children:e.jsxRuntimeExports.jsx(v.Input,{className:"adm:sr-only adm:w-0"})}),e.jsxRuntimeExports.jsxs(i.PopoverContent,{align:"start",children:[e.jsxRuntimeExports.jsx(m.Calendar,{required:!0,mode:"range",selected:c,onSelect:p,captionLayout:"dropdown",classNames:{root:"adm:p-0!"},...j}),e.jsxRuntimeExports.jsxs("div",{className:"adm:mt-2 adm:flex adm:justify-end adm:gap-2",children:[e.jsxRuntimeExports.jsx(x.Button,{variant:"link",onClick:()=>{r(!1)},children:a.cancel}),e.jsxRuntimeExports.jsx(x.Button,{variant:"link",onClick:()=>{c&&o(c),r(!1)},children:a.apply})]})]})]})]})}exports.DatePickerSelector=g;
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { j as a } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
-
import { B as
|
|
3
|
-
import { b as
|
|
4
|
-
import { C
|
|
5
|
-
import { I as
|
|
6
|
-
import { P as
|
|
7
|
-
import { c as N } from "./index-CRiPKpXj.js";
|
|
2
|
+
import { B as u } from "./button-BzVY7053.js";
|
|
3
|
+
import { b, C as j, s as v } from "./calendar-BIttOd3g.js";
|
|
4
|
+
import { C } from "./combobox-DI-WK3Ng.js";
|
|
5
|
+
import { I as g } from "./input-DFvZLcgm.js";
|
|
6
|
+
import { P as k, c as P, b as w } from "./popover-DcQ18EVl.js";
|
|
8
7
|
import { useState as d } from "react";
|
|
9
|
-
function i(
|
|
10
|
-
return
|
|
8
|
+
function i(l, o, n) {
|
|
9
|
+
return b(l, -o, n);
|
|
11
10
|
}
|
|
12
|
-
function
|
|
13
|
-
const [
|
|
11
|
+
function B({ dateRange: l, onDateRangeChange: o, labels: n, combobox: p, calendar: y }) {
|
|
12
|
+
const [f, h] = d(void 0), [x, r] = d(!1), [c, m] = d(l), s = { ...{
|
|
14
13
|
last30Days: "Last 30 days",
|
|
15
14
|
last7Days: "Last 7 days",
|
|
16
15
|
last90Days: "Last 90 days",
|
|
@@ -18,8 +17,8 @@ function E({ dateRange: r, onDateRangeChange: o, labels: n, combobox: u, calenda
|
|
|
18
17
|
placeholder: "Date",
|
|
19
18
|
cancel: "Cancel",
|
|
20
19
|
apply: "Apply"
|
|
21
|
-
}, ...n },
|
|
22
|
-
const e =
|
|
20
|
+
}, ...n }, D = (t) => {
|
|
21
|
+
const e = v(/* @__PURE__ */ new Date());
|
|
23
22
|
switch (t) {
|
|
24
23
|
case "7_days":
|
|
25
24
|
return { from: i(e, 7), to: e };
|
|
@@ -31,39 +30,39 @@ function E({ dateRange: r, onDateRangeChange: o, labels: n, combobox: u, calenda
|
|
|
31
30
|
return { from: void 0, to: void 0 };
|
|
32
31
|
}
|
|
33
32
|
};
|
|
34
|
-
return /* @__PURE__ */ a.jsxs(
|
|
33
|
+
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
35
34
|
/* @__PURE__ */ a.jsx(
|
|
36
|
-
|
|
35
|
+
C,
|
|
37
36
|
{
|
|
38
37
|
alwaysShowPlaceholder: !0,
|
|
39
38
|
selectedFeedback: "check",
|
|
40
39
|
icon: "calendar_today",
|
|
41
40
|
options: [
|
|
42
|
-
{ label: s.last30Days, value: "30_days" },
|
|
43
41
|
{ label: s.last7Days, value: "7_days" },
|
|
42
|
+
{ label: s.last30Days, value: "30_days" },
|
|
44
43
|
{ label: s.last90Days, value: "90_days" },
|
|
45
44
|
{ label: s.custom, value: "custom" }
|
|
46
45
|
],
|
|
47
|
-
value:
|
|
46
|
+
value: f,
|
|
48
47
|
onValueChange: (t) => {
|
|
49
48
|
if (typeof t == "string")
|
|
50
49
|
if (t === "custom")
|
|
51
|
-
|
|
50
|
+
r(!0);
|
|
52
51
|
else {
|
|
53
|
-
const e =
|
|
52
|
+
const e = D(t);
|
|
54
53
|
o(e), m(void 0);
|
|
55
54
|
}
|
|
56
|
-
|
|
55
|
+
h(t);
|
|
57
56
|
},
|
|
58
57
|
labels: { placeholder: s.placeholder },
|
|
59
|
-
...
|
|
58
|
+
...p
|
|
60
59
|
}
|
|
61
60
|
),
|
|
62
|
-
/* @__PURE__ */ a.jsxs(
|
|
63
|
-
/* @__PURE__ */ a.jsx(
|
|
64
|
-
/* @__PURE__ */ a.jsxs(
|
|
61
|
+
/* @__PURE__ */ a.jsxs(k, { open: x, onOpenChange: r, children: [
|
|
62
|
+
/* @__PURE__ */ a.jsx(P, { asChild: !0, children: /* @__PURE__ */ a.jsx(g, { className: "adm:sr-only adm:w-0" }) }),
|
|
63
|
+
/* @__PURE__ */ a.jsxs(w, { align: "start", children: [
|
|
65
64
|
/* @__PURE__ */ a.jsx(
|
|
66
|
-
|
|
65
|
+
j,
|
|
67
66
|
{
|
|
68
67
|
required: !0,
|
|
69
68
|
mode: "range",
|
|
@@ -71,26 +70,26 @@ function E({ dateRange: r, onDateRangeChange: o, labels: n, combobox: u, calenda
|
|
|
71
70
|
onSelect: m,
|
|
72
71
|
captionLayout: "dropdown",
|
|
73
72
|
classNames: { root: "adm:p-0!" },
|
|
74
|
-
...
|
|
73
|
+
...y
|
|
75
74
|
}
|
|
76
75
|
),
|
|
77
76
|
/* @__PURE__ */ a.jsxs("div", { className: "adm:mt-2 adm:flex adm:justify-end adm:gap-2", children: [
|
|
78
77
|
/* @__PURE__ */ a.jsx(
|
|
79
|
-
|
|
78
|
+
u,
|
|
80
79
|
{
|
|
81
80
|
variant: "link",
|
|
82
81
|
onClick: () => {
|
|
83
|
-
|
|
82
|
+
r(!1);
|
|
84
83
|
},
|
|
85
84
|
children: s.cancel
|
|
86
85
|
}
|
|
87
86
|
),
|
|
88
87
|
/* @__PURE__ */ a.jsx(
|
|
89
|
-
|
|
88
|
+
u,
|
|
90
89
|
{
|
|
91
90
|
variant: "link",
|
|
92
91
|
onClick: () => {
|
|
93
|
-
c && o(c),
|
|
92
|
+
c && o(c), r(!1);
|
|
94
93
|
},
|
|
95
94
|
children: s.apply
|
|
96
95
|
}
|
|
@@ -101,5 +100,5 @@ function E({ dateRange: r, onDateRangeChange: o, labels: n, combobox: u, calenda
|
|
|
101
100
|
] });
|
|
102
101
|
}
|
|
103
102
|
export {
|
|
104
|
-
|
|
103
|
+
B as DatePickerSelector
|
|
105
104
|
};
|
package/dist/dialog.cjs
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
adm:fixed adm:top-[50%] adm:left-[50%] adm:z-50 adm:flex
|
|
7
7
|
adm:max-h-[calc(100dvh-32px)] adm:w-full adm:max-w-[calc(100%-2rem)]
|
|
8
8
|
adm:translate-x-[-50%] adm:translate-y-[-50%] adm:flex-col adm:gap-4
|
|
9
|
-
adm:rounded-
|
|
9
|
+
adm:rounded-2xl adm:border adm:bg-background adm:p-6 adm:shadow-xs
|
|
10
10
|
adm:duration-200
|
|
11
11
|
adm:data-[state=closed]:animate-out
|
|
12
12
|
adm:data-[state=closed]:fade-out-0
|
package/dist/dialog.js
CHANGED
|
@@ -63,7 +63,7 @@ function _({
|
|
|
63
63
|
adm:fixed adm:top-[50%] adm:left-[50%] adm:z-50 adm:flex
|
|
64
64
|
adm:max-h-[calc(100dvh-32px)] adm:w-full adm:max-w-[calc(100%-2rem)]
|
|
65
65
|
adm:translate-x-[-50%] adm:translate-y-[-50%] adm:flex-col adm:gap-4
|
|
66
|
-
adm:rounded-
|
|
66
|
+
adm:rounded-2xl adm:border adm:bg-background adm:p-6 adm:shadow-xs
|
|
67
67
|
adm:duration-200
|
|
68
68
|
adm:data-[state=closed]:animate-out
|
|
69
69
|
adm:data-[state=closed]:fade-out-0
|
package/dist/select.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./jsx-runtime-BB_1_6y_.cjs"),ct=require("react"),dt=require("react-dom"),Te=require("./index-C8ni3LLa.cjs"),C=require("./index-BWaO7kQK.cjs"),Pe=require("./index-Da298sEl.cjs"),A=require("./index-_XxjJPRD.cjs"),ut=require("./index-cwZN7ZY3.cjs"),pt=require("./index-BaCYnOIG.cjs"),ce=require("./index-C2P2kXMc.cjs"),be=require("./index-WIv2ndLu.cjs"),oe=require("./index-Cqf5g2f_.cjs"),mt=require("./index-CBuLZ39k.cjs"),N=require("./index-CocSS1YK.cjs"),ft=require("./index-CzY-WZXL.cjs"),K=require("./index-MQ0c3ZX_.cjs"),xt=require("./index-DYxWvftI.cjs"),ht=require("./index-BDs8lUfq.cjs"),ue=require("./icon-DPMQJBkA.cjs"),z=require("./index-DoxiiusW.cjs");function _e(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,s.get?s:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const n=_e(ct),Ne=_e(dt);function vt(e){const o=gt(e),t=n.forwardRef((s,r)=>{const{children:d,...i}=s,l=n.Children.toArray(d),c=l.find(Et);if(c){const p=c.props.children,h=l.map(g=>g===c?n.Children.count(p)>1?n.Children.only(null):n.isValidElement(p)?p.props.children:null:g);return a.jsxRuntimeExports.jsx(o,{...i,ref:r,children:n.isValidElement(p)?n.cloneElement(p,void 0,h):null})}return a.jsxRuntimeExports.jsx(o,{...i,ref:r,children:d})});return t.displayName=`${e}.Slot`,t}function gt(e){const o=n.forwardRef((t,s)=>{const{children:r,...d}=t;if(n.isValidElement(r)){const i=wt(r),l=Rt(d,r.props);return r.type!==n.Fragment&&(l.ref=s?A.composeRefs(s,i):i),n.cloneElement(r,l)}return n.Children.count(r)>1?n.Children.only(null):null});return o.displayName=`${e}.SlotClone`,o}var St=Symbol("radix.slottable");function Et(e){return n.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===St}function Rt(e,o){const t={...o};for(const s in o){const r=e[s],d=o[s];/^on[A-Z]/.test(s)?r&&d?t[s]=(...l)=>{const c=d(...l);return r(...l),c}:r&&(t[s]=r):s==="style"?t[s]={...r,...d}:s==="className"&&(t[s]=[r,d].filter(Boolean).join(" "))}return{...e,...t}}function wt(e){let o=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=o&&"isReactWarning"in o&&o.isReactWarning;return t?e.ref:(o=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=o&&"isReactWarning"in o&&o.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}var yt=[" ","Enter","ArrowUp","ArrowDown"],Ct=[" ","Enter"],Q="Select",[pe,me,jt]=Pe.createCollection(Q),[ne]=ut.createContextScope(Q,[jt,oe.createPopperScope]),fe=oe.createPopperScope(),[bt,G]=ne(Q),[It,Tt]=ne(Q),Oe=e=>{const{__scopeSelect:o,children:t,open:s,defaultOpen:r,onOpenChange:d,value:i,defaultValue:l,onValueChange:c,dir:p,name:h,autoComplete:g,disabled:I,required:j,form:w}=e,u=fe(o),[x,S]=n.useState(null),[f,v]=n.useState(null),[F,O]=n.useState(!1),re=Pe.useDirection(p),[T,D]=C.useControllableState({prop:s,defaultProp:r??!1,onChange:d,caller:Q}),[$,Z]=C.useControllableState({prop:i,defaultProp:l,onChange:c,caller:Q}),H=n.useRef(null),k=x?w||!!x.closest("form"):!0,[U,V]=n.useState(new Set),B=Array.from(U).map(P=>P.props.value).join(";");return a.jsxRuntimeExports.jsx(oe.Root2,{...u,children:a.jsxRuntimeExports.jsxs(bt,{required:j,scope:o,trigger:x,onTriggerChange:S,valueNode:f,onValueNodeChange:v,valueNodeHasChildren:F,onValueNodeHasChildrenChange:O,contentId:be.useId(),value:$,onValueChange:Z,open:T,onOpenChange:D,dir:re,triggerPointerDownPosRef:H,disabled:I,children:[a.jsxRuntimeExports.jsx(pe.Provider,{scope:o,children:a.jsxRuntimeExports.jsx(It,{scope:e.__scopeSelect,onNativeOptionAdd:n.useCallback(P=>{V(L=>new Set(L).add(P))},[]),onNativeOptionRemove:n.useCallback(P=>{V(L=>{const W=new Set(L);return W.delete(P),W})},[]),children:t})}),k?a.jsxRuntimeExports.jsxs(nt,{"aria-hidden":!0,required:j,tabIndex:-1,name:h,autoComplete:g,value:$,onChange:P=>Z(P.target.value),disabled:I,form:w,children:[$===void 0?a.jsxRuntimeExports.jsx("option",{value:""}):null,Array.from(U)]},B):null]})})};Oe.displayName=Q;var Me="SelectTrigger",Ae=n.forwardRef((e,o)=>{const{__scopeSelect:t,disabled:s=!1,...r}=e,d=fe(t),i=G(Me,t),l=i.disabled||s,c=A.useComposedRefs(o,i.onTriggerChange),p=me(t),h=n.useRef("touch"),[g,I,j]=st(u=>{const x=p().filter(v=>!v.disabled),S=x.find(v=>v.value===i.value),f=at(x,u,S);f!==void 0&&i.onValueChange(f.value)}),w=u=>{l||(i.onOpenChange(!0),j()),u&&(i.triggerPointerDownPosRef.current={x:Math.round(u.pageX),y:Math.round(u.pageY)})};return a.jsxRuntimeExports.jsx(oe.Anchor,{asChild:!0,...d,children:a.jsxRuntimeExports.jsx(N.Primitive.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":rt(i.value)?"":void 0,...r,ref:c,onClick:C.composeEventHandlers(r.onClick,u=>{u.currentTarget.focus(),h.current!=="mouse"&&w(u)}),onPointerDown:C.composeEventHandlers(r.onPointerDown,u=>{h.current=u.pointerType;const x=u.target;x.hasPointerCapture(u.pointerId)&&x.releasePointerCapture(u.pointerId),u.button===0&&u.ctrlKey===!1&&u.pointerType==="mouse"&&(w(u),u.preventDefault())}),onKeyDown:C.composeEventHandlers(r.onKeyDown,u=>{const x=g.current!=="";!(u.ctrlKey||u.altKey||u.metaKey)&&u.key.length===1&&I(u.key),!(x&&u.key===" ")&&yt.includes(u.key)&&(w(),u.preventDefault())})})})});Ae.displayName=Me;var De="SelectValue",Le=n.forwardRef((e,o)=>{const{__scopeSelect:t,className:s,style:r,children:d,placeholder:i="",...l}=e,c=G(De,t),{onValueNodeHasChildrenChange:p}=c,h=d!==void 0,g=A.useComposedRefs(o,c.onValueNodeChange);return K.useLayoutEffect2(()=>{p(h)},[p,h]),a.jsxRuntimeExports.jsx(N.Primitive.span,{...l,ref:g,style:{pointerEvents:"none"},children:rt(c.value)?a.jsxRuntimeExports.jsx(a.jsxRuntimeExports.Fragment,{children:i}):d})});Le.displayName=De;var Pt="SelectIcon",He=n.forwardRef((e,o)=>{const{__scopeSelect:t,children:s,...r}=e;return a.jsxRuntimeExports.jsx(N.Primitive.span,{"aria-hidden":!0,...r,ref:o,children:s||"▼"})});He.displayName=Pt;var _t="SelectPortal",ke=e=>a.jsxRuntimeExports.jsx(mt.Portal,{asChild:!0,...e});ke.displayName=_t;var ee="SelectContent",Ve=n.forwardRef((e,o)=>{const t=G(ee,e.__scopeSelect),[s,r]=n.useState();if(K.useLayoutEffect2(()=>{r(new DocumentFragment)},[]),!t.open){const d=s;return d?Ne.createPortal(a.jsxRuntimeExports.jsx(Be,{scope:e.__scopeSelect,children:a.jsxRuntimeExports.jsx(pe.Slot,{scope:e.__scopeSelect,children:a.jsxRuntimeExports.jsx("div",{children:e.children})})}),d):null}return a.jsxRuntimeExports.jsx(We,{...e,ref:o})});Ve.displayName=ee;var M=10,[Be,Y]=ne(ee),Nt="SelectContentImpl",Ot=vt("SelectContent.RemoveScroll"),We=n.forwardRef((e,o)=>{const{__scopeSelect:t,position:s="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:d,onPointerDownOutside:i,side:l,sideOffset:c,align:p,alignOffset:h,arrowPadding:g,collisionBoundary:I,collisionPadding:j,sticky:w,hideWhenDetached:u,avoidCollisions:x,...S}=e,f=G(ee,t),[v,F]=n.useState(null),[O,re]=n.useState(null),T=A.useComposedRefs(o,m=>F(m)),[D,$]=n.useState(null),[Z,H]=n.useState(null),k=me(t),[U,V]=n.useState(!1),B=n.useRef(!1);n.useEffect(()=>{if(v)return ce.hideOthers(v)},[v]),ce.useFocusGuards();const P=n.useCallback(m=>{const[y,..._]=k().map(b=>b.ref.current),[E]=_.slice(-1),R=document.activeElement;for(const b of m)if(b===R||(b?.scrollIntoView({block:"nearest"}),b===y&&O&&(O.scrollTop=0),b===E&&O&&(O.scrollTop=O.scrollHeight),b?.focus(),document.activeElement!==R))return},[k,O]),L=n.useCallback(()=>P([D,v]),[P,D,v]);n.useEffect(()=>{U&&L()},[U,L]);const{onOpenChange:W,triggerPointerDownPosRef:q}=f;n.useEffect(()=>{if(v){let m={x:0,y:0};const y=E=>{m={x:Math.abs(Math.round(E.pageX)-(q.current?.x??0)),y:Math.abs(Math.round(E.pageY)-(q.current?.y??0))}},_=E=>{m.x<=10&&m.y<=10?E.preventDefault():v.contains(E.target)||W(!1),document.removeEventListener("pointermove",y),q.current=null};return q.current!==null&&(document.addEventListener("pointermove",y),document.addEventListener("pointerup",_,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",y),document.removeEventListener("pointerup",_,{capture:!0})}}},[v,W,q]),n.useEffect(()=>{const m=()=>W(!1);return window.addEventListener("blur",m),window.addEventListener("resize",m),()=>{window.removeEventListener("blur",m),window.removeEventListener("resize",m)}},[W]);const[xe,ie]=st(m=>{const y=k().filter(R=>!R.disabled),_=y.find(R=>R.ref.current===document.activeElement),E=at(y,m,_);E&&setTimeout(()=>E.ref.current.focus())}),he=n.useCallback((m,y,_)=>{const E=!B.current&&!_;(f.value!==void 0&&f.value===y||E)&&($(m),E&&(B.current=!0))},[f.value]),ve=n.useCallback(()=>v?.focus(),[v]),te=n.useCallback((m,y,_)=>{const E=!B.current&&!_;(f.value!==void 0&&f.value===y||E)&&H(m)},[f.value]),le=s==="popper"?Re:Fe,se=le===Re?{side:l,sideOffset:c,align:p,alignOffset:h,arrowPadding:g,collisionBoundary:I,collisionPadding:j,sticky:w,hideWhenDetached:u,avoidCollisions:x}:{};return a.jsxRuntimeExports.jsx(Be,{scope:t,content:v,viewport:O,onViewportChange:re,itemRefCallback:he,selectedItem:D,onItemLeave:ve,itemTextRefCallback:te,focusSelectedItem:L,selectedItemText:Z,position:s,isPositioned:U,searchRef:xe,children:a.jsxRuntimeExports.jsx(ce.ReactRemoveScroll,{as:Ot,allowPinchZoom:!0,children:a.jsxRuntimeExports.jsx(ce.FocusScope,{asChild:!0,trapped:f.open,onMountAutoFocus:m=>{m.preventDefault()},onUnmountAutoFocus:C.composeEventHandlers(r,m=>{f.trigger?.focus({preventScroll:!0}),m.preventDefault()}),children:a.jsxRuntimeExports.jsx(pt.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:d,onPointerDownOutside:i,onFocusOutside:m=>m.preventDefault(),onDismiss:()=>f.onOpenChange(!1),children:a.jsxRuntimeExports.jsx(le,{role:"listbox",id:f.contentId,"data-state":f.open?"open":"closed",dir:f.dir,onContextMenu:m=>m.preventDefault(),...S,...se,onPlaced:()=>V(!0),ref:T,style:{display:"flex",flexDirection:"column",outline:"none",...S.style},onKeyDown:C.composeEventHandlers(S.onKeyDown,m=>{const y=m.ctrlKey||m.altKey||m.metaKey;if(m.key==="Tab"&&m.preventDefault(),!y&&m.key.length===1&&ie(m.key),["ArrowUp","ArrowDown","Home","End"].includes(m.key)){let E=k().filter(R=>!R.disabled).map(R=>R.ref.current);if(["ArrowUp","End"].includes(m.key)&&(E=E.slice().reverse()),["ArrowUp","ArrowDown"].includes(m.key)){const R=m.target,b=E.indexOf(R);E=E.slice(b+1)}setTimeout(()=>P(E)),m.preventDefault()}})})})})})})});We.displayName=Nt;var Mt="SelectItemAlignedPosition",Fe=n.forwardRef((e,o)=>{const{__scopeSelect:t,onPlaced:s,...r}=e,d=G(ee,t),i=Y(ee,t),[l,c]=n.useState(null),[p,h]=n.useState(null),g=A.useComposedRefs(o,T=>h(T)),I=me(t),j=n.useRef(!1),w=n.useRef(!0),{viewport:u,selectedItem:x,selectedItemText:S,focusSelectedItem:f}=i,v=n.useCallback(()=>{if(d.trigger&&d.valueNode&&l&&p&&u&&x&&S){const T=d.trigger.getBoundingClientRect(),D=p.getBoundingClientRect(),$=d.valueNode.getBoundingClientRect(),Z=S.getBoundingClientRect();if(d.dir!=="rtl"){const R=Z.left-D.left,b=$.left-R,X=T.left-b,J=T.width+X,ge=Math.max(J,D.width),Se=window.innerWidth-M,Ee=Te.clamp(b,[M,Math.max(M,Se-ge)]);l.style.minWidth=J+"px",l.style.left=Ee+"px"}else{const R=D.right-Z.right,b=window.innerWidth-$.right-R,X=window.innerWidth-T.right-b,J=T.width+X,ge=Math.max(J,D.width),Se=window.innerWidth-M,Ee=Te.clamp(b,[M,Math.max(M,Se-ge)]);l.style.minWidth=J+"px",l.style.right=Ee+"px"}const H=I(),k=window.innerHeight-M*2,U=u.scrollHeight,V=window.getComputedStyle(p),B=parseInt(V.borderTopWidth,10),P=parseInt(V.paddingTop,10),L=parseInt(V.borderBottomWidth,10),W=parseInt(V.paddingBottom,10),q=B+P+U+W+L,xe=Math.min(x.offsetHeight*5,q),ie=window.getComputedStyle(u),he=parseInt(ie.paddingTop,10),ve=parseInt(ie.paddingBottom,10),te=T.top+T.height/2-M,le=k-te,se=x.offsetHeight/2,m=x.offsetTop+se,y=B+P+m,_=q-y;if(y<=te){const R=H.length>0&&x===H[H.length-1].ref.current;l.style.bottom="0px";const b=p.clientHeight-u.offsetTop-u.offsetHeight,X=Math.max(le,se+(R?ve:0)+b+L),J=y+X;l.style.height=J+"px"}else{const R=H.length>0&&x===H[0].ref.current;l.style.top="0px";const X=Math.max(te,B+u.offsetTop+(R?he:0)+se)+_;l.style.height=X+"px",u.scrollTop=y-te+u.offsetTop}l.style.margin=`${M}px 0`,l.style.minHeight=xe+"px",l.style.maxHeight=k+"px",s?.(),requestAnimationFrame(()=>j.current=!0)}},[I,d.trigger,d.valueNode,l,p,u,x,S,d.dir,s]);K.useLayoutEffect2(()=>v(),[v]);const[F,O]=n.useState();K.useLayoutEffect2(()=>{p&&O(window.getComputedStyle(p).zIndex)},[p]);const re=n.useCallback(T=>{T&&w.current===!0&&(v(),f?.(),w.current=!1)},[v,f]);return a.jsxRuntimeExports.jsx(Dt,{scope:t,contentWrapper:l,shouldExpandOnScrollRef:j,onScrollButtonChange:re,children:a.jsxRuntimeExports.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:F},children:a.jsxRuntimeExports.jsx(N.Primitive.div,{...r,ref:g,style:{boxSizing:"border-box",maxHeight:"100%",...r.style}})})})});Fe.displayName=Mt;var At="SelectPopperPosition",Re=n.forwardRef((e,o)=>{const{__scopeSelect:t,align:s="start",collisionPadding:r=M,...d}=e,i=fe(t);return a.jsxRuntimeExports.jsx(oe.Content,{...i,...d,ref:o,align:s,collisionPadding:r,style:{boxSizing:"border-box",...d.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Re.displayName=At;var[Dt,Ie]=ne(ee,{}),we="SelectViewport",$e=n.forwardRef((e,o)=>{const{__scopeSelect:t,nonce:s,...r}=e,d=Y(we,t),i=Ie(we,t),l=A.useComposedRefs(o,d.onViewportChange),c=n.useRef(0);return a.jsxRuntimeExports.jsxs(a.jsxRuntimeExports.Fragment,{children:[a.jsxRuntimeExports.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),a.jsxRuntimeExports.jsx(pe.Slot,{scope:t,children:a.jsxRuntimeExports.jsx(N.Primitive.div,{"data-radix-select-viewport":"",role:"presentation",...r,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...r.style},onScroll:C.composeEventHandlers(r.onScroll,p=>{const h=p.currentTarget,{contentWrapper:g,shouldExpandOnScrollRef:I}=i;if(I?.current&&g){const j=Math.abs(c.current-h.scrollTop);if(j>0){const w=window.innerHeight-M*2,u=parseFloat(g.style.minHeight),x=parseFloat(g.style.height),S=Math.max(u,x);if(S<w){const f=S+j,v=Math.min(w,f),F=f-v;g.style.height=v+"px",g.style.bottom==="0px"&&(h.scrollTop=F>0?F:0,g.style.justifyContent="flex-end")}}}c.current=h.scrollTop})})})]})});$e.displayName=we;var Ue="SelectGroup",[Lt,Ht]=ne(Ue),qe=n.forwardRef((e,o)=>{const{__scopeSelect:t,...s}=e,r=be.useId();return a.jsxRuntimeExports.jsx(Lt,{scope:t,id:r,children:a.jsxRuntimeExports.jsx(N.Primitive.div,{role:"group","aria-labelledby":r,...s,ref:o})})});qe.displayName=Ue;var Ke="SelectLabel",ze=n.forwardRef((e,o)=>{const{__scopeSelect:t,...s}=e,r=Ht(Ke,t);return a.jsxRuntimeExports.jsx(N.Primitive.div,{id:r.id,...s,ref:o})});ze.displayName=Ke;var de="SelectItem",[kt,Ge]=ne(de),Ye=n.forwardRef((e,o)=>{const{__scopeSelect:t,value:s,disabled:r=!1,textValue:d,...i}=e,l=G(de,t),c=Y(de,t),p=l.value===s,[h,g]=n.useState(d??""),[I,j]=n.useState(!1),w=A.useComposedRefs(o,f=>c.itemRefCallback?.(f,s,r)),u=be.useId(),x=n.useRef("touch"),S=()=>{r||(l.onValueChange(s),l.onOpenChange(!1))};if(s==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return a.jsxRuntimeExports.jsx(kt,{scope:t,value:s,disabled:r,textId:u,isSelected:p,onItemTextChange:n.useCallback(f=>{g(v=>v||(f?.textContent??"").trim())},[]),children:a.jsxRuntimeExports.jsx(pe.ItemSlot,{scope:t,value:s,disabled:r,textValue:h,children:a.jsxRuntimeExports.jsx(N.Primitive.div,{role:"option","aria-labelledby":u,"data-highlighted":I?"":void 0,"aria-selected":p&&I,"data-state":p?"checked":"unchecked","aria-disabled":r||void 0,"data-disabled":r?"":void 0,tabIndex:r?void 0:-1,...i,ref:w,onFocus:C.composeEventHandlers(i.onFocus,()=>j(!0)),onBlur:C.composeEventHandlers(i.onBlur,()=>j(!1)),onClick:C.composeEventHandlers(i.onClick,()=>{x.current!=="mouse"&&S()}),onPointerUp:C.composeEventHandlers(i.onPointerUp,()=>{x.current==="mouse"&&S()}),onPointerDown:C.composeEventHandlers(i.onPointerDown,f=>{x.current=f.pointerType}),onPointerMove:C.composeEventHandlers(i.onPointerMove,f=>{x.current=f.pointerType,r?c.onItemLeave?.():x.current==="mouse"&&f.currentTarget.focus({preventScroll:!0})}),onPointerLeave:C.composeEventHandlers(i.onPointerLeave,f=>{f.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:C.composeEventHandlers(i.onKeyDown,f=>{c.searchRef?.current!==""&&f.key===" "||(Ct.includes(f.key)&&S(),f.key===" "&&f.preventDefault())})})})})});Ye.displayName=de;var ae="SelectItemText",Ze=n.forwardRef((e,o)=>{const{__scopeSelect:t,className:s,style:r,...d}=e,i=G(ae,t),l=Y(ae,t),c=Ge(ae,t),p=Tt(ae,t),[h,g]=n.useState(null),I=A.useComposedRefs(o,S=>g(S),c.onItemTextChange,S=>l.itemTextRefCallback?.(S,c.value,c.disabled)),j=h?.textContent,w=n.useMemo(()=>a.jsxRuntimeExports.jsx("option",{value:c.value,disabled:c.disabled,children:j},c.value),[c.disabled,c.value,j]),{onNativeOptionAdd:u,onNativeOptionRemove:x}=p;return K.useLayoutEffect2(()=>(u(w),()=>x(w)),[u,x,w]),a.jsxRuntimeExports.jsxs(a.jsxRuntimeExports.Fragment,{children:[a.jsxRuntimeExports.jsx(N.Primitive.span,{id:c.textId,...d,ref:I}),c.isSelected&&i.valueNode&&!i.valueNodeHasChildren?Ne.createPortal(d.children,i.valueNode):null]})});Ze.displayName=ae;var Xe="SelectItemIndicator",Je=n.forwardRef((e,o)=>{const{__scopeSelect:t,...s}=e;return Ge(Xe,t).isSelected?a.jsxRuntimeExports.jsx(N.Primitive.span,{"aria-hidden":!0,...s,ref:o}):null});Je.displayName=Xe;var ye="SelectScrollUpButton",Qe=n.forwardRef((e,o)=>{const t=Y(ye,e.__scopeSelect),s=Ie(ye,e.__scopeSelect),[r,d]=n.useState(!1),i=A.useComposedRefs(o,s.onScrollButtonChange);return K.useLayoutEffect2(()=>{if(t.viewport&&t.isPositioned){let l=function(){const p=c.scrollTop>0;d(p)};const c=t.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[t.viewport,t.isPositioned]),r?a.jsxRuntimeExports.jsx(tt,{...e,ref:i,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=t;l&&c&&(l.scrollTop=l.scrollTop-c.offsetHeight)}}):null});Qe.displayName=ye;var Ce="SelectScrollDownButton",et=n.forwardRef((e,o)=>{const t=Y(Ce,e.__scopeSelect),s=Ie(Ce,e.__scopeSelect),[r,d]=n.useState(!1),i=A.useComposedRefs(o,s.onScrollButtonChange);return K.useLayoutEffect2(()=>{if(t.viewport&&t.isPositioned){let l=function(){const p=c.scrollHeight-c.clientHeight,h=Math.ceil(c.scrollTop)<p;d(h)};const c=t.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[t.viewport,t.isPositioned]),r?a.jsxRuntimeExports.jsx(tt,{...e,ref:i,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=t;l&&c&&(l.scrollTop=l.scrollTop+c.offsetHeight)}}):null});et.displayName=Ce;var tt=n.forwardRef((e,o)=>{const{__scopeSelect:t,onAutoScroll:s,...r}=e,d=Y("SelectScrollButton",t),i=n.useRef(null),l=me(t),c=n.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return n.useEffect(()=>()=>c(),[c]),K.useLayoutEffect2(()=>{l().find(h=>h.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[l]),a.jsxRuntimeExports.jsx(N.Primitive.div,{"aria-hidden":!0,...r,ref:o,style:{flexShrink:0,...r.style},onPointerDown:C.composeEventHandlers(r.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(s,50))}),onPointerMove:C.composeEventHandlers(r.onPointerMove,()=>{d.onItemLeave?.(),i.current===null&&(i.current=window.setInterval(s,50))}),onPointerLeave:C.composeEventHandlers(r.onPointerLeave,()=>{c()})})}),Vt="SelectSeparator",ot=n.forwardRef((e,o)=>{const{__scopeSelect:t,...s}=e;return a.jsxRuntimeExports.jsx(N.Primitive.div,{"aria-hidden":!0,...s,ref:o})});ot.displayName=Vt;var je="SelectArrow",Bt=n.forwardRef((e,o)=>{const{__scopeSelect:t,...s}=e,r=fe(t),d=G(je,t),i=Y(je,t);return d.open&&i.position==="popper"?a.jsxRuntimeExports.jsx(oe.Arrow,{...r,...s,ref:o}):null});Bt.displayName=je;var Wt="SelectBubbleInput",nt=n.forwardRef(({__scopeSelect:e,value:o,...t},s)=>{const r=n.useRef(null),d=A.useComposedRefs(s,r),i=xt.usePrevious(o);return n.useEffect(()=>{const l=r.current;if(!l)return;const c=window.HTMLSelectElement.prototype,h=Object.getOwnPropertyDescriptor(c,"value").set;if(i!==o&&h){const g=new Event("change",{bubbles:!0});h.call(l,o),l.dispatchEvent(g)}},[i,o]),a.jsxRuntimeExports.jsx(N.Primitive.select,{...t,style:{...ht.VISUALLY_HIDDEN_STYLES,...t.style},ref:d,defaultValue:o})});nt.displayName=Wt;function rt(e){return e===""||e===void 0}function st(e){const o=ft.useCallbackRef(e),t=n.useRef(""),s=n.useRef(0),r=n.useCallback(i=>{const l=t.current+i;o(l),(function c(p){t.current=p,window.clearTimeout(s.current),p!==""&&(s.current=window.setTimeout(()=>c(""),1e3))})(l)},[o]),d=n.useCallback(()=>{t.current="",window.clearTimeout(s.current)},[]);return n.useEffect(()=>()=>window.clearTimeout(s.current),[]),[t,r,d]}function at(e,o,t){const r=o.length>1&&Array.from(o).every(p=>p===o[0])?o[0]:o,d=t?e.indexOf(t):-1;let i=Ft(e,Math.max(d,0));r.length===1&&(i=i.filter(p=>p!==t));const c=i.find(p=>p.textValue.toLowerCase().startsWith(r.toLowerCase()));return c!==t?c:void 0}function Ft(e,o){return e.map((t,s)=>e[(o+s)%e.length])}var $t=Oe,Ut=Ae,qt=Le,Kt=He,zt=ke,Gt=Ve,Yt=$e,Zt=qe,Xt=ze,Jt=Ye,Qt=Ze,eo=Je,to=Qe,oo=et,no=ot;function ro({...e}){return a.jsxRuntimeExports.jsx($t,{"data-slot":"select",...e})}function so({...e}){return a.jsxRuntimeExports.jsx(Zt,{"data-slot":"select-group",...e})}function ao({...e}){return a.jsxRuntimeExports.jsx(qt,{"data-slot":"select-value",...e})}function io({className:e,size:o="default",children:t,...s}){return a.jsxRuntimeExports.jsxs(Ut,{"data-slot":"select-trigger","data-size":o,className:z.cn(`
|
|
2
2
|
adm:flex adm:w-fit adm:items-center adm:justify-between adm:gap-2
|
|
3
|
-
adm:rounded-md adm:border adm:
|
|
4
|
-
adm:
|
|
3
|
+
adm:rounded-md adm:border adm:bg-transparent adm:px-3 adm:py-2
|
|
4
|
+
adm:text-sm adm:whitespace-nowrap adm:shadow-xs
|
|
5
5
|
adm:transition-[color,box-shadow] adm:outline-none
|
|
6
6
|
adm:focus-visible:border-ring adm:focus-visible:ring-[3px]
|
|
7
7
|
adm:focus-visible:ring-ring/50
|
package/dist/select.js
CHANGED
|
@@ -882,8 +882,8 @@ function Ao({
|
|
|
882
882
|
className: G(
|
|
883
883
|
`
|
|
884
884
|
adm:flex adm:w-fit adm:items-center adm:justify-between adm:gap-2
|
|
885
|
-
adm:rounded-md adm:border adm:
|
|
886
|
-
adm:
|
|
885
|
+
adm:rounded-md adm:border adm:bg-transparent adm:px-3 adm:py-2
|
|
886
|
+
adm:text-sm adm:whitespace-nowrap adm:shadow-xs
|
|
887
887
|
adm:transition-[color,box-shadow] adm:outline-none
|
|
888
888
|
adm:focus-visible:border-ring adm:focus-visible:ring-[3px]
|
|
889
889
|
adm:focus-visible:ring-ring/50
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
"use client";"use strict";const e=require("./jsx-runtime-BB_1_6y_.cjs"),d=require("./index-Ca99LLZF.cjs"),r=require("./icon-DPMQJBkA.cjs"),s=require("./index-DoxiiusW.cjs");require("react");function i({...t}){return e.jsxRuntimeExports.jsx(d.Root,{"data-slot":"sheet",...t})}function l({...t}){return e.jsxRuntimeExports.jsx(d.Trigger,{"data-slot":"sheet-trigger",...t})}function u({...t}){return e.jsxRuntimeExports.jsx(d.Close,{"data-slot":"sheet-close",...t})}function
|
|
1
|
+
"use client";"use strict";const e=require("./jsx-runtime-BB_1_6y_.cjs"),d=require("./index-Ca99LLZF.cjs"),r=require("./icon-DPMQJBkA.cjs"),s=require("./index-DoxiiusW.cjs");require("react");function i({...t}){return e.jsxRuntimeExports.jsx(d.Root,{"data-slot":"sheet",...t})}function l({...t}){return e.jsxRuntimeExports.jsx(d.Trigger,{"data-slot":"sheet-trigger",...t})}function u({...t}){return e.jsxRuntimeExports.jsx(d.Close,{"data-slot":"sheet-close",...t})}function x({...t}){return e.jsxRuntimeExports.jsx(d.Portal,{"data-slot":"sheet-portal",...t})}function c({className:t,...a}){return e.jsxRuntimeExports.jsx(d.Overlay,{"data-slot":"sheet-overlay",className:s.cn(`
|
|
2
2
|
adm:fixed adm:inset-0 adm:z-50 adm:bg-black/50
|
|
3
3
|
adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0
|
|
4
4
|
adm:data-[state=open]:animate-in adm:data-[state=open]:fade-in-0
|
|
5
|
-
`,t),...a})}function h({className:t,children:a,side:o="right",showCloseButton:n=!0,...m}){return e.jsxRuntimeExports.jsxs(
|
|
5
|
+
`,t),...a})}function h({className:t,children:a,side:o="right",showCloseButton:n=!0,...m}){return e.jsxRuntimeExports.jsxs(x,{children:[e.jsxRuntimeExports.jsx(c,{}),e.jsxRuntimeExports.jsxs(d.Content,{"data-slot":"sheet-content",className:s.cn(`
|
|
6
6
|
adm:fixed adm:z-50 adm:flex adm:flex-col adm:gap-4 adm:bg-background
|
|
7
7
|
adm:shadow-xs adm:transition adm:ease-in-out
|
|
8
8
|
adm:data-[state=closed]:animate-out
|
|
9
9
|
adm:data-[state=closed]:duration-300
|
|
10
10
|
adm:data-[state=open]:animate-in adm:data-[state=open]:duration-500
|
|
11
11
|
`,o==="right"&&`
|
|
12
|
-
adm:inset-y-0 adm:right-0 adm:h-full adm:w-
|
|
13
|
-
adm:rounded-bl-
|
|
12
|
+
adm:inset-y-0 adm:right-0 adm:h-full adm:w-11/12 adm:rounded-tl-2xl
|
|
13
|
+
adm:rounded-bl-2xl adm:border-l
|
|
14
14
|
adm:data-[state=closed]:slide-out-to-right
|
|
15
15
|
adm:data-[state=open]:slide-in-from-right
|
|
16
16
|
adm:sm:max-w-sm
|
|
17
17
|
`,o==="left"&&`
|
|
18
|
-
adm:inset-y-0 adm:left-0 adm:h-full adm:w-
|
|
19
|
-
adm:rounded-br-
|
|
18
|
+
adm:inset-y-0 adm:left-0 adm:h-full adm:w-11/12 adm:rounded-tr-2xl
|
|
19
|
+
adm:rounded-br-2xl adm:border-r
|
|
20
20
|
adm:data-[state=closed]:slide-out-to-left
|
|
21
21
|
adm:data-[state=open]:slide-in-from-left
|
|
22
22
|
adm:sm:max-w-sm
|
|
23
23
|
`,o==="top"&&`
|
|
24
|
-
adm:inset-x-0 adm:top-0 adm:h-auto adm:rounded-br-
|
|
25
|
-
adm:rounded-bl-
|
|
24
|
+
adm:inset-x-0 adm:top-0 adm:h-auto adm:rounded-br-2xl
|
|
25
|
+
adm:rounded-bl-2xl adm:border-b
|
|
26
26
|
adm:data-[state=closed]:slide-out-to-top
|
|
27
27
|
adm:data-[state=open]:slide-in-from-top
|
|
28
28
|
`,o==="bottom"&&`
|
|
29
|
-
adm:inset-x-0 adm:bottom-0 adm:h-auto adm:rounded-tl-
|
|
30
|
-
adm:rounded-tr-
|
|
29
|
+
adm:inset-x-0 adm:bottom-0 adm:h-auto adm:rounded-tl-2xl
|
|
30
|
+
adm:rounded-tr-2xl adm:border-t
|
|
31
31
|
adm:data-[state=closed]:slide-out-to-bottom
|
|
32
32
|
adm:data-[state=open]:slide-in-from-bottom
|
|
33
33
|
`,t),...m,children:[a,n&&e.jsxRuntimeExports.jsxs(d.Close,{className:`
|
|
@@ -38,4 +38,4 @@
|
|
|
38
38
|
adm:focus:outline-hidden
|
|
39
39
|
adm:disabled:pointer-events-none
|
|
40
40
|
adm:data-[state=open]:bg-secondary
|
|
41
|
-
`,children:[e.jsxRuntimeExports.jsx(r.Icon,{symbol:"close",className:"adm:text-lg"}),e.jsxRuntimeExports.jsx("span",{className:"adm:sr-only",children:"Close"})]})]})]})}function p({className:t,...a}){return e.jsxRuntimeExports.jsx("div",{"data-slot":"sheet-header",className:s.cn("adm:flex adm:flex-col adm:gap-1.5 adm:p-
|
|
41
|
+
`,children:[e.jsxRuntimeExports.jsx(r.Icon,{symbol:"close",className:"adm:text-lg"}),e.jsxRuntimeExports.jsx("span",{className:"adm:sr-only",children:"Close"})]})]})]})}function p({className:t,...a}){return e.jsxRuntimeExports.jsx("div",{"data-slot":"sheet-header",className:s.cn("adm:flex adm:flex-col adm:gap-1.5 adm:p-8",t),...a})}function f({className:t,...a}){return e.jsxRuntimeExports.jsx("div",{"data-slot":"sheet-footer",className:s.cn("adm:mt-auto adm:flex adm:flex-col adm:gap-2 adm:p-8",t),...a})}function j({className:t,...a}){return e.jsxRuntimeExports.jsx(d.Title,{"data-slot":"sheet-title",className:s.cn("adm:font-semibold adm:text-foreground",t),...a})}function g({className:t,...a}){return e.jsxRuntimeExports.jsx(d.Description,{"data-slot":"sheet-description",className:s.cn("adm:text-sm adm:text-muted-foreground",t),...a})}function b({className:t,...a}){return e.jsxRuntimeExports.jsx("div",{"data-slot":"sheet-body",className:s.cn("adm:px-8",t),...a})}exports.Sheet=i;exports.SheetBody=b;exports.SheetClose=u;exports.SheetContent=h;exports.SheetDescription=g;exports.SheetFooter=f;exports.SheetHeader=p;exports.SheetTitle=j;exports.SheetTrigger=l;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { j as t } from "./jsx-runtime-BzflLqGi.js";
|
|
3
|
-
import { R as r, T as l, C as s, a as i, b as u, D as c, P as f, O as
|
|
4
|
-
import { I as
|
|
3
|
+
import { R as r, T as l, C as s, a as i, b as u, D as c, P as f, O as x } from "./index-BIydBVaH.js";
|
|
4
|
+
import { I as h } from "./icon-DKAhvlX_.js";
|
|
5
5
|
import { c as d } from "./index-CRiPKpXj.js";
|
|
6
6
|
import "react";
|
|
7
7
|
function v({ ...a }) {
|
|
@@ -17,17 +17,17 @@ function w({
|
|
|
17
17
|
}) {
|
|
18
18
|
return /* @__PURE__ */ t.jsx(s, { "data-slot": "sheet-close", ...a });
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function p({
|
|
21
21
|
...a
|
|
22
22
|
}) {
|
|
23
23
|
return /* @__PURE__ */ t.jsx(f, { "data-slot": "sheet-portal", ...a });
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function g({
|
|
26
26
|
className: a,
|
|
27
27
|
...e
|
|
28
28
|
}) {
|
|
29
29
|
return /* @__PURE__ */ t.jsx(
|
|
30
|
-
|
|
30
|
+
x,
|
|
31
31
|
{
|
|
32
32
|
"data-slot": "sheet-overlay",
|
|
33
33
|
className: d(
|
|
@@ -49,8 +49,8 @@ function T({
|
|
|
49
49
|
showCloseButton: m = !0,
|
|
50
50
|
...n
|
|
51
51
|
}) {
|
|
52
|
-
return /* @__PURE__ */ t.jsxs(
|
|
53
|
-
/* @__PURE__ */ t.jsx(
|
|
52
|
+
return /* @__PURE__ */ t.jsxs(p, { children: [
|
|
53
|
+
/* @__PURE__ */ t.jsx(g, {}),
|
|
54
54
|
/* @__PURE__ */ t.jsxs(
|
|
55
55
|
i,
|
|
56
56
|
{
|
|
@@ -64,28 +64,28 @@ function T({
|
|
|
64
64
|
adm:data-[state=open]:animate-in adm:data-[state=open]:duration-500
|
|
65
65
|
`,
|
|
66
66
|
o === "right" && `
|
|
67
|
-
adm:inset-y-0 adm:right-0 adm:h-full adm:w-
|
|
68
|
-
adm:rounded-bl-
|
|
67
|
+
adm:inset-y-0 adm:right-0 adm:h-full adm:w-11/12 adm:rounded-tl-2xl
|
|
68
|
+
adm:rounded-bl-2xl adm:border-l
|
|
69
69
|
adm:data-[state=closed]:slide-out-to-right
|
|
70
70
|
adm:data-[state=open]:slide-in-from-right
|
|
71
71
|
adm:sm:max-w-sm
|
|
72
72
|
`,
|
|
73
73
|
o === "left" && `
|
|
74
|
-
adm:inset-y-0 adm:left-0 adm:h-full adm:w-
|
|
75
|
-
adm:rounded-br-
|
|
74
|
+
adm:inset-y-0 adm:left-0 adm:h-full adm:w-11/12 adm:rounded-tr-2xl
|
|
75
|
+
adm:rounded-br-2xl adm:border-r
|
|
76
76
|
adm:data-[state=closed]:slide-out-to-left
|
|
77
77
|
adm:data-[state=open]:slide-in-from-left
|
|
78
78
|
adm:sm:max-w-sm
|
|
79
79
|
`,
|
|
80
80
|
o === "top" && `
|
|
81
|
-
adm:inset-x-0 adm:top-0 adm:h-auto adm:rounded-br-
|
|
82
|
-
adm:rounded-bl-
|
|
81
|
+
adm:inset-x-0 adm:top-0 adm:h-auto adm:rounded-br-2xl
|
|
82
|
+
adm:rounded-bl-2xl adm:border-b
|
|
83
83
|
adm:data-[state=closed]:slide-out-to-top
|
|
84
84
|
adm:data-[state=open]:slide-in-from-top
|
|
85
85
|
`,
|
|
86
86
|
o === "bottom" && `
|
|
87
|
-
adm:inset-x-0 adm:bottom-0 adm:h-auto adm:rounded-tl-
|
|
88
|
-
adm:rounded-tr-
|
|
87
|
+
adm:inset-x-0 adm:bottom-0 adm:h-auto adm:rounded-tl-2xl
|
|
88
|
+
adm:rounded-tr-2xl adm:border-t
|
|
89
89
|
adm:data-[state=closed]:slide-out-to-bottom
|
|
90
90
|
adm:data-[state=open]:slide-in-from-bottom
|
|
91
91
|
`,
|
|
@@ -107,7 +107,7 @@ function T({
|
|
|
107
107
|
adm:data-[state=open]:bg-secondary
|
|
108
108
|
`,
|
|
109
109
|
children: [
|
|
110
|
-
/* @__PURE__ */ t.jsx(
|
|
110
|
+
/* @__PURE__ */ t.jsx(h, { symbol: "close", className: "adm:text-lg" }),
|
|
111
111
|
/* @__PURE__ */ t.jsx("span", { className: "adm:sr-only", children: "Close" })
|
|
112
112
|
]
|
|
113
113
|
}
|
|
@@ -122,7 +122,7 @@ function k({ className: a, ...e }) {
|
|
|
122
122
|
"div",
|
|
123
123
|
{
|
|
124
124
|
"data-slot": "sheet-header",
|
|
125
|
-
className: d("adm:flex adm:flex-col adm:gap-1.5 adm:p-
|
|
125
|
+
className: d("adm:flex adm:flex-col adm:gap-1.5 adm:p-8", a),
|
|
126
126
|
...e
|
|
127
127
|
}
|
|
128
128
|
);
|
|
@@ -132,7 +132,7 @@ function D({ className: a, ...e }) {
|
|
|
132
132
|
"div",
|
|
133
133
|
{
|
|
134
134
|
"data-slot": "sheet-footer",
|
|
135
|
-
className: d("adm:mt-auto adm:flex adm:flex-col adm:gap-2 adm:p-
|
|
135
|
+
className: d("adm:mt-auto adm:flex adm:flex-col adm:gap-2 adm:p-8", a),
|
|
136
136
|
...e
|
|
137
137
|
}
|
|
138
138
|
);
|
|
@@ -163,6 +163,19 @@ function P({
|
|
|
163
163
|
}
|
|
164
164
|
);
|
|
165
165
|
}
|
|
166
|
+
function R({
|
|
167
|
+
className: a,
|
|
168
|
+
...e
|
|
169
|
+
}) {
|
|
170
|
+
return /* @__PURE__ */ t.jsx(
|
|
171
|
+
"div",
|
|
172
|
+
{
|
|
173
|
+
"data-slot": "sheet-body",
|
|
174
|
+
className: d("adm:px-8", a),
|
|
175
|
+
...e
|
|
176
|
+
}
|
|
177
|
+
);
|
|
178
|
+
}
|
|
166
179
|
export {
|
|
167
180
|
v as S,
|
|
168
181
|
C as a,
|
|
@@ -171,5 +184,6 @@ export {
|
|
|
171
184
|
k as d,
|
|
172
185
|
D as e,
|
|
173
186
|
O as f,
|
|
174
|
-
P as g
|
|
187
|
+
P as g,
|
|
188
|
+
R as h
|
|
175
189
|
};
|
package/dist/sheet.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./sheet-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./sheet-CvcCaGSl.cjs");exports.Sheet=e.Sheet;exports.SheetBody=e.SheetBody;exports.SheetClose=e.SheetClose;exports.SheetContent=e.SheetContent;exports.SheetDescription=e.SheetDescription;exports.SheetFooter=e.SheetFooter;exports.SheetHeader=e.SheetHeader;exports.SheetTitle=e.SheetTitle;exports.SheetTrigger=e.SheetTrigger;
|