ics-ui-kit 1.0.0-alpha.0 → 1.0.0-alpha.2
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/CalendarPreviousMonthButton-CHMp8bkd.js +2964 -0
- package/dist/CalendarPreviousMonthButton-CHMp8bkd.js.map +1 -0
- package/dist/{CheckboxField-Ca48ZYoX.js → CheckboxField-xDqHgXHh.js} +2 -2
- package/dist/{CheckboxField-Ca48ZYoX.js.map → CheckboxField-xDqHgXHh.js.map} +1 -1
- package/dist/{Command-CsW4aK7M.js → Command-WsAKNQrY.js} +2 -2
- package/dist/{Command-CsW4aK7M.js.map → Command-WsAKNQrY.js.map} +1 -1
- package/dist/{Dialog-BT_775Iz.js → Dialog-i_Y-phdM.js} +42 -43
- package/dist/Dialog-i_Y-phdM.js.map +1 -0
- package/dist/{Field-BRPdaQ8D.js → Field-BcwUtgGr.js} +2 -2
- package/dist/{Field-BRPdaQ8D.js.map → Field-BcwUtgGr.js.map} +1 -1
- package/dist/{FieldLabel-ic0eq9Un.js → FieldLabel-DYu1AcGH.js} +2 -2
- package/dist/{FieldLabel-ic0eq9Un.js.map → FieldLabel-DYu1AcGH.js.map} +1 -1
- package/dist/{FormFooterTemplate-BIwnBQhL.js → FormFooterTemplate-CHlas_Pp.js} +2 -2
- package/dist/{FormFooterTemplate-BIwnBQhL.js.map → FormFooterTemplate-CHlas_Pp.js.map} +1 -1
- package/dist/FormStack-DfoaOry7.js +1205 -0
- package/dist/FormStack-DfoaOry7.js.map +1 -0
- package/dist/{IconTooltip-CgbefRXG.js → IconTooltip-R6_6_f40.js} +2 -2
- package/dist/{IconTooltip-CgbefRXG.js.map → IconTooltip-R6_6_f40.js.map} +1 -1
- package/dist/{Popover-Dz2eNsXh.js → Popover-XrJa7lyb.js} +49 -50
- package/dist/Popover-XrJa7lyb.js.map +1 -0
- package/dist/{Select-Bfbtj5zt.js → Select-DO02vXt3.js} +185 -186
- package/dist/{Select-Bfbtj5zt.js.map → Select-DO02vXt3.js.map} +1 -1
- package/dist/{Sheet-aLBPtE1k.js → Sheet-C2UoHLL0.js} +35 -36
- package/dist/Sheet-C2UoHLL0.js.map +1 -0
- package/dist/{TextOverflowTooltip-BaNPKqnO.js → TextOverflowTooltip-XPDdO9Dz.js} +2 -2
- package/dist/{TextOverflowTooltip-BaNPKqnO.js.map → TextOverflowTooltip-XPDdO9Dz.js.map} +1 -1
- package/dist/{Tooltip-DOgKy50D.js → Tooltip-D2XvRS0c.js} +63 -64
- package/dist/Tooltip-D2XvRS0c.js.map +1 -0
- package/dist/blocks/auth/otp-form.js +3240 -204
- package/dist/blocks/auth/otp-form.js.map +1 -1
- package/dist/components/alert-dialog/AlertDialog.d.ts +2 -4
- package/dist/components/alert-dialog.js +70 -71
- package/dist/components/alert-dialog.js.map +1 -1
- package/dist/components/calendar/components/calendar-dropdown/CalendarDropdown.d.ts +24 -0
- package/dist/components/calendar/styles.d.ts +61 -0
- package/dist/components/calendar-scroll/CalendarScroll.d.ts +21 -0
- package/dist/components/calendar-scroll/CalendarScroll.stories.d.ts +16 -0
- package/dist/components/calendar-scroll/index.d.ts +3 -0
- package/dist/components/calendar-scroll.d.ts +2 -0
- package/dist/components/calendar-scroll.js +181 -0
- package/dist/components/calendar-scroll.js.map +1 -0
- package/dist/components/calendar.js +51 -147
- package/dist/components/calendar.js.map +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/command.js +1 -1
- package/dist/components/dialog/Dialog.d.ts +2 -4
- package/dist/components/dialog.js +3 -3
- package/dist/components/drawer/components/drawer-content/DrawerContent.d.ts +1 -2
- package/dist/components/drawer.js +96 -97
- package/dist/components/drawer.js.map +1 -1
- package/dist/components/dropdown/Dropdown.d.ts +2 -4
- package/dist/components/dropdown.js +251 -252
- package/dist/components/dropdown.js.map +1 -1
- package/dist/components/field.js +1 -1
- package/dist/components/file-upload.js +1 -1
- package/dist/components/form/Form.d.ts +14 -0
- package/dist/components/form/components/form-field/FormField.d.ts +4 -0
- package/dist/components/form.js +3 -3
- package/dist/components/icon-tooltip.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/overflow-tooltip.js +1 -1
- package/dist/components/popover/Popover.d.ts +1 -2
- package/dist/components/popover.js +1 -1
- package/dist/components/resizable/Resizable.d.ts +1 -1
- package/dist/components/scheduler.js +1 -1
- package/dist/components/search-select/multi-select/MultiSelect.d.ts +1 -1
- package/dist/components/search-select.js +3 -3
- package/dist/components/search-select.js.map +1 -1
- package/dist/components/select/Select.d.ts +1 -2
- package/dist/components/select.js +1 -1
- package/dist/components/sheet/Sheet.d.ts +1 -2
- package/dist/components/sheet.js +1 -1
- package/dist/components/sidebar.js +2 -2
- package/dist/components/switch.js +1 -1
- package/dist/components/tag-input.js +1 -1
- package/dist/components/tooltip/Tooltip.d.ts +2 -4
- package/dist/components/tooltip.js +1 -1
- package/dist/tailwind.css +406 -361
- package/package.json +22 -18
- package/dist/DayPicker-4hE1QEvO.js +0 -2452
- package/dist/DayPicker-4hE1QEvO.js.map +0 -1
- package/dist/Dialog-BT_775Iz.js.map +0 -1
- package/dist/FormStack-CxiZhx1n.js +0 -127
- package/dist/FormStack-CxiZhx1n.js.map +0 -1
- package/dist/Popover-Dz2eNsXh.js.map +0 -1
- package/dist/Sheet-aLBPtE1k.js.map +0 -1
- package/dist/Tooltip-DOgKy50D.js.map +0 -1
- package/dist/buildMatchPatternFn-d7GTeGl_.js +0 -68
- package/dist/buildMatchPatternFn-d7GTeGl_.js.map +0 -1
- package/dist/components/portal-container/PortalContainer.d.ts +0 -10
- package/dist/components/portal-container/index.d.ts +0 -2
- package/dist/components/portal-container/portalContainerEvents.d.ts +0 -12
- package/dist/components/portal-container/usePortalContainer.d.ts +0 -11
- package/dist/components/portal-container.d.ts +0 -2
- package/dist/components/portal-container.js +0 -14
- package/dist/components/portal-container.js.map +0 -1
- package/dist/index.esm-CXA6i4d7.js +0 -1282
- package/dist/index.esm-CXA6i4d7.js.map +0 -1
- package/dist/normalizeDates-9A3c9WYM.js +0 -32
- package/dist/normalizeDates-9A3c9WYM.js.map +0 -1
- package/dist/styles.css +0 -9064
- package/dist/styles.d.ts +0 -1
- package/dist/usePortalContainer-B1xla842.js +0 -33
- package/dist/usePortalContainer-B1xla842.js.map +0 -1
- package/dist/vendors/date-fns/index.d.ts +0 -12
- package/dist/vendors/date-fns/locale/en-US/index.d.ts +0 -5
- package/dist/vendors/date-fns/locale/en-US.d.ts +0 -2
- package/dist/vendors/date-fns/locale/en-US.js +0 -372
- package/dist/vendors/date-fns/locale/en-US.js.map +0 -1
- package/dist/vendors/date-fns/locale/ru/index.d.ts +0 -5
- package/dist/vendors/date-fns/locale/ru.d.ts +0 -2
- package/dist/vendors/date-fns/locale/ru.js +0 -569
- package/dist/vendors/date-fns/locale/ru.js.map +0 -1
- package/dist/vendors/date-fns.d.ts +0 -2
- package/dist/vendors/date-fns.js +0 -2
- package/dist/vendors/date-fns.js.map +0 -1
- package/dist/vendors/react-day-picker/index.d.ts +0 -13
- package/dist/vendors/react-day-picker.d.ts +0 -2
- package/dist/vendors/react-day-picker.js +0 -87
- package/dist/vendors/react-day-picker.js.map +0 -1
- package/dist/vendors/react-hook-form/index.d.ts +0 -14
- package/dist/vendors/react-hook-form.d.ts +0 -2
- package/dist/vendors/react-hook-form.js +0 -19
- package/dist/vendors/react-hook-form.js.map +0 -1
- package/dist/vendors/tanstack/react-table/index.d.ts +0 -13
- package/dist/vendors/tanstack/react-table.d.ts +0 -2
- package/dist/vendors/tanstack/react-table.js +0 -2090
- package/dist/vendors/tanstack/react-table.js.map +0 -1
- package/dist/vendors/zod/index.d.ts +0 -13
- package/dist/vendors/zod.d.ts +0 -2
- package/dist/vendors/zod.js +0 -3080
- package/dist/vendors/zod.js.map +0 -1
- package/dist/zod-BMNoK3aM.js +0 -75
- package/dist/zod-BMNoK3aM.js.map +0 -1
|
@@ -6,24 +6,23 @@ import { c as Ht } from "../cn-dsXlqdJg.js";
|
|
|
6
6
|
import { S as Be } from "../ScrollShadowContainer-DdrnF8qU.js";
|
|
7
7
|
import { o as Fe } from "../Overlay-E0UvxzIc.js";
|
|
8
8
|
import { T as Q } from "../index-BVqs-uqP.js";
|
|
9
|
-
import { u as ze } from "../usePortalContainer-B1xla842.js";
|
|
10
9
|
import { B as bt } from "../Button-_qdP4hSf.js";
|
|
11
|
-
import { a as
|
|
12
|
-
import { D as
|
|
10
|
+
import { a as ze } from "../CheckboxField-xDqHgXHh.js";
|
|
11
|
+
import { D as We } from "../Description-BTPMlTT-.js";
|
|
13
12
|
import { I as jt } from "../Icon-DH3ev9GK.js";
|
|
14
|
-
import { c as
|
|
15
|
-
import { X as
|
|
13
|
+
import { c as Ue } from "../createLucideIcon-DwBrHnj9.js";
|
|
14
|
+
import { X as Ve } from "../x-tDTt7hTQ.js";
|
|
16
15
|
/**
|
|
17
16
|
* @license lucide-react v0.460.0 - ISC
|
|
18
17
|
*
|
|
19
18
|
* This source code is licensed under the ISC license.
|
|
20
19
|
* See the LICENSE file in the root directory of this source tree.
|
|
21
20
|
*/
|
|
22
|
-
const
|
|
21
|
+
const je = Ue("ArrowLeft", [
|
|
23
22
|
["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
|
|
24
23
|
["path", { d: "M19 12H5", key: "x3x0zl" }]
|
|
25
24
|
]);
|
|
26
|
-
function
|
|
25
|
+
function Ye(t) {
|
|
27
26
|
if (typeof document > "u") return;
|
|
28
27
|
let n = document.head || document.getElementsByTagName("head")[0], e = document.createElement("style");
|
|
29
28
|
e.type = "text/css", n.appendChild(e), e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
@@ -81,34 +80,34 @@ const Jt = r.createContext({
|
|
|
81
80
|
throw new Error("useDrawerContext must be used within a Drawer.Root");
|
|
82
81
|
return t;
|
|
83
82
|
};
|
|
84
|
-
|
|
83
|
+
Ye(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
|
|
85
84
|
[data-state=closed]
|
|
86
85
|
){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}`);
|
|
87
|
-
function
|
|
86
|
+
function qe() {
|
|
88
87
|
const t = navigator.userAgent;
|
|
89
88
|
return typeof window < "u" && (/Firefox/.test(t) && /Mobile/.test(t) || // Android Firefox
|
|
90
89
|
/FxiOS/.test(t));
|
|
91
90
|
}
|
|
92
|
-
function
|
|
91
|
+
function Xe() {
|
|
93
92
|
return Pt(/^Mac/);
|
|
94
93
|
}
|
|
95
|
-
function
|
|
94
|
+
function Ke() {
|
|
96
95
|
return Pt(/^iPhone/);
|
|
97
96
|
}
|
|
98
97
|
function Yt() {
|
|
99
98
|
return /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
|
100
99
|
}
|
|
101
|
-
function
|
|
100
|
+
function Ze() {
|
|
102
101
|
return Pt(/^iPad/) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
103
|
-
|
|
102
|
+
Xe() && navigator.maxTouchPoints > 1;
|
|
104
103
|
}
|
|
105
104
|
function Qt() {
|
|
106
|
-
return
|
|
105
|
+
return Ke() || Ze();
|
|
107
106
|
}
|
|
108
107
|
function Pt(t) {
|
|
109
108
|
return typeof window < "u" && window.navigator != null ? t.test(window.navigator.platform) : void 0;
|
|
110
109
|
}
|
|
111
|
-
const
|
|
110
|
+
const Ge = 24, Je = typeof window < "u" ? Oe : Ne;
|
|
112
111
|
function qt(...t) {
|
|
113
112
|
return (...n) => {
|
|
114
113
|
for (let e of t)
|
|
@@ -125,7 +124,7 @@ function te(t) {
|
|
|
125
124
|
t = t.parentElement;
|
|
126
125
|
return t || document.scrollingElement || document.documentElement;
|
|
127
126
|
}
|
|
128
|
-
const
|
|
127
|
+
const Qe = /* @__PURE__ */ new Set([
|
|
129
128
|
"checkbox",
|
|
130
129
|
"radio",
|
|
131
130
|
"range",
|
|
@@ -137,18 +136,18 @@ const tn = /* @__PURE__ */ new Set([
|
|
|
137
136
|
"reset"
|
|
138
137
|
]);
|
|
139
138
|
let gt = 0, Ot;
|
|
140
|
-
function
|
|
139
|
+
function tn(t = {}) {
|
|
141
140
|
let { isDisabled: n } = t;
|
|
142
|
-
|
|
141
|
+
Je(() => {
|
|
143
142
|
if (!n)
|
|
144
|
-
return gt++, gt === 1 && Qt() && (Ot =
|
|
143
|
+
return gt++, gt === 1 && Qt() && (Ot = en()), () => {
|
|
145
144
|
gt--, gt === 0 && Ot?.();
|
|
146
145
|
};
|
|
147
146
|
}, [
|
|
148
147
|
n
|
|
149
148
|
]);
|
|
150
149
|
}
|
|
151
|
-
function
|
|
150
|
+
function en() {
|
|
152
151
|
let t, n = 0, e = (f) => {
|
|
153
152
|
t = te(f.target), !(t === document.documentElement && t === document.body) && (n = f.changedTouches[0].pageY);
|
|
154
153
|
}, a = (f) => {
|
|
@@ -174,7 +173,7 @@ function nn() {
|
|
|
174
173
|
}));
|
|
175
174
|
}, h = () => {
|
|
176
175
|
window.scrollTo(0, 0);
|
|
177
|
-
}, u = window.pageXOffset, y = window.pageYOffset, v = qt(
|
|
176
|
+
}, u = window.pageXOffset, y = window.pageYOffset, v = qt(nn(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`));
|
|
178
177
|
window.scrollTo(0, 0);
|
|
179
178
|
let d = qt(dt(document, "touchstart", e, {
|
|
180
179
|
passive: !1,
|
|
@@ -190,7 +189,7 @@ function nn() {
|
|
|
190
189
|
v(), d(), window.scrollTo(u, y);
|
|
191
190
|
};
|
|
192
191
|
}
|
|
193
|
-
function
|
|
192
|
+
function nn(t, n, e) {
|
|
194
193
|
let a = t.style[n];
|
|
195
194
|
return t.style[n] = e, () => {
|
|
196
195
|
t.style[n] = a;
|
|
@@ -207,23 +206,23 @@ function Kt(t) {
|
|
|
207
206
|
let e = te(t);
|
|
208
207
|
if (e !== document.documentElement && e !== document.body && e !== t) {
|
|
209
208
|
let a = e.getBoundingClientRect().top, i = t.getBoundingClientRect().top, o = t.getBoundingClientRect().bottom;
|
|
210
|
-
const h = e.getBoundingClientRect().bottom +
|
|
209
|
+
const h = e.getBoundingClientRect().bottom + Ge;
|
|
211
210
|
o > h && (e.scrollTop += i - a);
|
|
212
211
|
}
|
|
213
212
|
t = e.parentElement;
|
|
214
213
|
}
|
|
215
214
|
}
|
|
216
215
|
function At(t) {
|
|
217
|
-
return t instanceof HTMLInputElement && !
|
|
216
|
+
return t instanceof HTMLInputElement && !Qe.has(t.type) || t instanceof HTMLTextAreaElement || t instanceof HTMLElement && t.isContentEditable;
|
|
218
217
|
}
|
|
219
|
-
function
|
|
218
|
+
function rn(t, n) {
|
|
220
219
|
typeof t == "function" ? t(n) : t != null && (t.current = n);
|
|
221
220
|
}
|
|
222
|
-
function
|
|
223
|
-
return (n) => t.forEach((e) =>
|
|
221
|
+
function an(...t) {
|
|
222
|
+
return (n) => t.forEach((e) => rn(e, n));
|
|
224
223
|
}
|
|
225
224
|
function ee(...t) {
|
|
226
|
-
return St.useCallback(
|
|
225
|
+
return St.useCallback(an(...t), t);
|
|
227
226
|
}
|
|
228
227
|
const ne = /* @__PURE__ */ new WeakMap();
|
|
229
228
|
function $(t, n, e = !1) {
|
|
@@ -237,7 +236,7 @@ function $(t, n, e = !1) {
|
|
|
237
236
|
a[i] = t.style[i], t.style[i] = o;
|
|
238
237
|
}), !e && ne.set(t, a);
|
|
239
238
|
}
|
|
240
|
-
function
|
|
239
|
+
function on(t, n) {
|
|
241
240
|
if (!t || !(t instanceof HTMLElement)) return;
|
|
242
241
|
let e = ne.get(t);
|
|
243
242
|
e && (t.style[n] = e[n]);
|
|
@@ -264,7 +263,7 @@ function vt(t, n) {
|
|
|
264
263
|
let i = a.match(/^matrix3d\((.+)\)$/);
|
|
265
264
|
return i ? parseFloat(i[1].split(", ")[N(n) ? 13 : 12]) : (i = a.match(/^matrix\((.+)\)$/), i ? parseFloat(i[1].split(", ")[N(n) ? 5 : 4]) : null);
|
|
266
265
|
}
|
|
267
|
-
function
|
|
266
|
+
function sn(t) {
|
|
268
267
|
return 8 * (Math.log(t + 1) - 2);
|
|
269
268
|
}
|
|
270
269
|
function Nt(t, n) {
|
|
@@ -275,7 +274,7 @@ function Nt(t, n) {
|
|
|
275
274
|
t.style.cssText = e;
|
|
276
275
|
};
|
|
277
276
|
}
|
|
278
|
-
function
|
|
277
|
+
function ln(...t) {
|
|
279
278
|
return (...n) => {
|
|
280
279
|
for (const e of t)
|
|
281
280
|
typeof e == "function" && e(...n);
|
|
@@ -289,14 +288,14 @@ const C = {
|
|
|
289
288
|
0,
|
|
290
289
|
1
|
|
291
290
|
]
|
|
292
|
-
}, re = 0.4,
|
|
291
|
+
}, re = 0.4, un = 0.25, cn = 100, ae = 8, yt = 16, Mt = 26, $t = "vaul-dragging";
|
|
293
292
|
function oe(t) {
|
|
294
293
|
const n = r.useRef(t);
|
|
295
294
|
return r.useEffect(() => {
|
|
296
295
|
n.current = t;
|
|
297
296
|
}), r.useMemo(() => (...e) => n.current == null ? void 0 : n.current.call(n, ...e), []);
|
|
298
297
|
}
|
|
299
|
-
function
|
|
298
|
+
function dn({ defaultProp: t, onChange: n }) {
|
|
300
299
|
const e = r.useState(t), [a] = e, i = r.useRef(a), o = oe(n);
|
|
301
300
|
return r.useEffect(() => {
|
|
302
301
|
i.current !== a && (o(a), i.current = a);
|
|
@@ -308,7 +307,7 @@ function fn({ defaultProp: t, onChange: n }) {
|
|
|
308
307
|
}
|
|
309
308
|
function ie({ prop: t, defaultProp: n, onChange: e = () => {
|
|
310
309
|
} }) {
|
|
311
|
-
const [a, i] =
|
|
310
|
+
const [a, i] = dn({
|
|
312
311
|
defaultProp: n,
|
|
313
312
|
onChange: e
|
|
314
313
|
}), o = t !== void 0, h = o ? t : a, u = oe(e), y = r.useCallback((v) => {
|
|
@@ -328,7 +327,7 @@ function ie({ prop: t, defaultProp: n, onChange: e = () => {
|
|
|
328
327
|
y
|
|
329
328
|
];
|
|
330
329
|
}
|
|
331
|
-
function
|
|
330
|
+
function fn({ activeSnapPointProp: t, setActiveSnapPointProp: n, snapPoints: e, drawerRef: a, overlayRef: i, fadeFromIndex: o, onSnapPointChange: h, direction: u = "bottom", container: y, snapToSequentialPoint: v }) {
|
|
332
331
|
const [d, f] = ie({
|
|
333
332
|
prop: t,
|
|
334
333
|
defaultProp: e?.[0],
|
|
@@ -473,9 +472,9 @@ function mn({ activeSnapPointProp: t, setActiveSnapPointProp: n, snapPoints: e,
|
|
|
473
472
|
snapPointsOffset: g
|
|
474
473
|
};
|
|
475
474
|
}
|
|
476
|
-
const
|
|
475
|
+
const mn = () => () => {
|
|
477
476
|
};
|
|
478
|
-
function
|
|
477
|
+
function pn() {
|
|
479
478
|
const { direction: t, isOpen: n, shouldScaleBackground: e, setBackgroundColorOnScale: a, noBodyStyles: i } = mt(), o = r.useRef(null), h = $e(() => document.body.style.backgroundColor, []);
|
|
480
479
|
function u() {
|
|
481
480
|
return (window.innerWidth - Mt) / window.innerWidth;
|
|
@@ -485,9 +484,9 @@ function wn() {
|
|
|
485
484
|
o.current && clearTimeout(o.current);
|
|
486
485
|
const y = document.querySelector("[data-vaul-drawer-wrapper]") || document.querySelector("[vaul-drawer-wrapper]");
|
|
487
486
|
if (!y) return;
|
|
488
|
-
|
|
487
|
+
ln(a && !i ? Nt(document.body, {
|
|
489
488
|
background: "black"
|
|
490
|
-
}) :
|
|
489
|
+
}) : mn, Nt(y, {
|
|
491
490
|
transformOrigin: N(t) ? "top" : "left",
|
|
492
491
|
transitionProperty: "transform, border-radius",
|
|
493
492
|
transitionDuration: `${C.DURATION}s`,
|
|
@@ -515,7 +514,7 @@ function wn() {
|
|
|
515
514
|
]);
|
|
516
515
|
}
|
|
517
516
|
let ft = null;
|
|
518
|
-
function
|
|
517
|
+
function wn({ isOpen: t, modal: n, nested: e, hasBeenOpened: a, preventScrollRestoration: i, noBodyStyles: o }) {
|
|
519
518
|
const [h, u] = r.useState(() => typeof window < "u" ? window.location.href : ""), y = r.useRef(0), v = r.useCallback(() => {
|
|
520
519
|
if (Yt() && ft === null && t && !o) {
|
|
521
520
|
ft = {
|
|
@@ -583,7 +582,7 @@ function hn({ isOpen: t, modal: n, nested: e, hasBeenOpened: a, preventScrollRes
|
|
|
583
582
|
restorePositionSetting: d
|
|
584
583
|
};
|
|
585
584
|
}
|
|
586
|
-
function
|
|
585
|
+
function hn({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: i, snapPoints: o, shouldScaleBackground: h = !1, setBackgroundColorOnScale: u = !0, closeThreshold: y = un, scrollLockTimeout: v = cn, dismissible: d = !0, handleOnly: f = !1, fadeFromIndex: m = o && o.length - 1, activeSnapPoint: I, setActiveSnapPoint: B, fixed: E, modal: z = !0, onClose: g, nested: M, noBodyStyles: A = !1, direction: p = "bottom", defaultOpen: Y = !1, disablePreventScroll: tt = !0, snapToSequentialPoint: c = !1, preventScrollRestoration: D = !1, repositionInputs: S = !0, onAnimationEnd: _, container: H, autoFocus: U = !1 }) {
|
|
587
586
|
var l, W;
|
|
588
587
|
const [L = !1, V] = ie({
|
|
589
588
|
defaultProp: Y,
|
|
@@ -597,7 +596,7 @@ function gn({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: i, sn
|
|
|
597
596
|
}
|
|
598
597
|
}), [P, K] = r.useState(!1), [Z, it] = r.useState(!1), [pe, It] = r.useState(!1), rt = r.useRef(null), pt = r.useRef(null), Dt = r.useRef(null), Tt = r.useRef(null), st = r.useRef(null), lt = r.useRef(!1), xt = r.useRef(null), Rt = r.useRef(0), at = r.useRef(!1), _t = r.useRef(!Y), Lt = r.useRef(0), w = r.useRef(null), kt = r.useRef(((l = w.current) == null ? void 0 : l.getBoundingClientRect().height) || 0), Bt = r.useRef(((W = w.current) == null ? void 0 : W.getBoundingClientRect().width) || 0), Et = r.useRef(0), we = r.useCallback((s) => {
|
|
599
598
|
o && s === ut.length - 1 && (pt.current = /* @__PURE__ */ new Date());
|
|
600
|
-
}, []), { activeSnapPoint: he, activeSnapPointIndex: ot, setActiveSnapPoint: Ft, onRelease: ge, snapPointsOffset: ut, onDrag: ve, shouldFade: zt, getPercentageDragged: ye } =
|
|
599
|
+
}, []), { activeSnapPoint: he, activeSnapPointIndex: ot, setActiveSnapPoint: Ft, onRelease: ge, snapPointsOffset: ut, onDrag: ve, shouldFade: zt, getPercentageDragged: ye } = fn({
|
|
601
600
|
snapPoints: o,
|
|
602
601
|
activeSnapPointProp: I,
|
|
603
602
|
setActiveSnapPointProp: B,
|
|
@@ -609,10 +608,10 @@ function gn({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: i, sn
|
|
|
609
608
|
container: H,
|
|
610
609
|
snapToSequentialPoint: c
|
|
611
610
|
});
|
|
612
|
-
|
|
611
|
+
tn({
|
|
613
612
|
isDisabled: !L || Z || !z || pe || !P || !S || !tt
|
|
614
613
|
});
|
|
615
|
-
const { restorePositionSetting: be } =
|
|
614
|
+
const { restorePositionSetting: be } = wn({
|
|
616
615
|
isOpen: L,
|
|
617
616
|
modal: z,
|
|
618
617
|
nested: M ?? !1,
|
|
@@ -671,7 +670,7 @@ function gn({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: i, sn
|
|
|
671
670
|
}), o && ve({
|
|
672
671
|
draggedDistance: R
|
|
673
672
|
}), b && !o) {
|
|
674
|
-
const q =
|
|
673
|
+
const q = sn(R), ht = Math.min(q * -1, 0) * T;
|
|
675
674
|
$(w.current, {
|
|
676
675
|
transform: N(p) ? `translate3d(0, ${ht}px, 0)` : `translate3d(${ht}px, 0, 0)`
|
|
677
676
|
});
|
|
@@ -721,7 +720,7 @@ function gn({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: i, sn
|
|
|
721
720
|
const J = w.current.getBoundingClientRect().height;
|
|
722
721
|
let q = J;
|
|
723
722
|
J > O && (q = O - (j ? et : Mt)), E ? w.current.style.height = `${J - Math.max(k, 0)}px` : w.current.style.height = `${Math.max(q, O - et)}px`;
|
|
724
|
-
} else
|
|
723
|
+
} else qe() || (w.current.style.height = `${Et.current}px`);
|
|
725
724
|
o && o.length > 0 && !at.current ? w.current.style.bottom = "0px" : w.current.style.bottom = `${Math.max(k, 0)}px`;
|
|
726
725
|
}
|
|
727
726
|
}
|
|
@@ -804,7 +803,7 @@ function gn({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: i, sn
|
|
|
804
803
|
r.useEffect(() => (L && ($(document.documentElement, {
|
|
805
804
|
scrollBehavior: "auto"
|
|
806
805
|
}), pt.current = /* @__PURE__ */ new Date()), () => {
|
|
807
|
-
|
|
806
|
+
on(document.documentElement, "scrollBehavior");
|
|
808
807
|
}), [
|
|
809
808
|
L
|
|
810
809
|
]);
|
|
@@ -902,7 +901,7 @@ const se = /* @__PURE__ */ r.forwardRef(function({ ...t }, n) {
|
|
|
902
901
|
se.displayName = "Drawer.Overlay";
|
|
903
902
|
const le = /* @__PURE__ */ r.forwardRef(function({ onPointerDownOutside: t, style: n, onOpenAutoFocus: e, ...a }, i) {
|
|
904
903
|
const { drawerRef: o, onPress: h, onRelease: u, onDrag: y, keyboardIsOpen: v, snapPointsOffset: d, activeSnapPointIndex: f, modal: m, isOpen: I, direction: B, snapPoints: E, container: z, handleOnly: g, shouldAnimate: M, autoFocus: A } = mt(), [p, Y] = r.useState(!1), tt = ee(i, o), c = r.useRef(null), D = r.useRef(null), S = r.useRef(!1), _ = E && E.length > 0;
|
|
905
|
-
|
|
904
|
+
pn();
|
|
906
905
|
const H = (l, W, L = 0) => {
|
|
907
906
|
if (S.current) return !0;
|
|
908
907
|
const V = Math.abs(l.y), P = Math.abs(l.x), K = P > V, Z = [
|
|
@@ -979,7 +978,7 @@ const le = /* @__PURE__ */ r.forwardRef(function({ onPointerDownOutside: t, styl
|
|
|
979
978
|
});
|
|
980
979
|
});
|
|
981
980
|
le.displayName = "Drawer.Content";
|
|
982
|
-
const
|
|
981
|
+
const gn = 250, vn = 120, yn = /* @__PURE__ */ r.forwardRef(function({ preventCycle: t = !1, children: n, ...e }, a) {
|
|
983
982
|
const { closeDrawer: i, isDragging: o, snapPoints: h, activeSnapPoint: u, setActiveSnapPoint: y, dismissible: v, handleOnly: d, isOpen: f, onPress: m, onDrag: I } = mt(), B = r.useRef(null), E = r.useRef(!1);
|
|
984
983
|
function z() {
|
|
985
984
|
if (E.current) {
|
|
@@ -988,7 +987,7 @@ const vn = 250, yn = 120, bn = /* @__PURE__ */ r.forwardRef(function({ preventCy
|
|
|
988
987
|
}
|
|
989
988
|
window.setTimeout(() => {
|
|
990
989
|
g();
|
|
991
|
-
},
|
|
990
|
+
}, vn);
|
|
992
991
|
}
|
|
993
992
|
function g() {
|
|
994
993
|
if (o || t || E.current) {
|
|
@@ -1011,7 +1010,7 @@ const vn = 250, yn = 120, bn = /* @__PURE__ */ r.forwardRef(function({ preventCy
|
|
|
1011
1010
|
function M() {
|
|
1012
1011
|
B.current = window.setTimeout(() => {
|
|
1013
1012
|
E.current = !0;
|
|
1014
|
-
},
|
|
1013
|
+
}, gn);
|
|
1015
1014
|
}
|
|
1016
1015
|
function A() {
|
|
1017
1016
|
B.current && window.clearTimeout(B.current), E.current = !1;
|
|
@@ -1036,8 +1035,8 @@ const vn = 250, yn = 120, bn = /* @__PURE__ */ r.forwardRef(function({ preventCy
|
|
|
1036
1035
|
"aria-hidden": "true"
|
|
1037
1036
|
}, n));
|
|
1038
1037
|
});
|
|
1039
|
-
|
|
1040
|
-
function
|
|
1038
|
+
yn.displayName = "Drawer.Handle";
|
|
1039
|
+
function bn(t) {
|
|
1041
1040
|
const n = mt(), { container: e = n.container, ...a } = t;
|
|
1042
1041
|
return /* @__PURE__ */ r.createElement(He, {
|
|
1043
1042
|
container: e,
|
|
@@ -1045,33 +1044,33 @@ function Sn(t) {
|
|
|
1045
1044
|
});
|
|
1046
1045
|
}
|
|
1047
1046
|
const X = {
|
|
1048
|
-
Root:
|
|
1047
|
+
Root: hn,
|
|
1049
1048
|
Content: le,
|
|
1050
1049
|
Overlay: se,
|
|
1051
1050
|
Trigger: Ae,
|
|
1052
|
-
Portal:
|
|
1051
|
+
Portal: bn,
|
|
1053
1052
|
Close: Me,
|
|
1054
1053
|
Title: Pe,
|
|
1055
1054
|
Description: Ie
|
|
1056
|
-
},
|
|
1057
|
-
|
|
1058
|
-
const
|
|
1055
|
+
}, Sn = ({ shouldScaleBackground: t = !0, ...n }) => /* @__PURE__ */ x(X.Root, { shouldScaleBackground: t, ...n });
|
|
1056
|
+
Sn.displayName = "Drawer";
|
|
1057
|
+
const Kn = X.Trigger, Dn = X.Portal, Zt = X.Close, ue = St.forwardRef(({ className: t, ...n }, e) => /* @__PURE__ */ x(X.Title, { ref: e, className: Ht("text-lg font-semibold leading-none", t), ...n }));
|
|
1059
1058
|
ue.displayName = X.Title.displayName;
|
|
1060
|
-
const
|
|
1061
|
-
|
|
1062
|
-
const
|
|
1059
|
+
const Tn = St.forwardRef(({ className: t, ...n }, e) => /* @__PURE__ */ x(X.Description, { ref: e, className: Ht("text-sm text-muted-foreground", t), ...n }));
|
|
1060
|
+
Tn.displayName = X.Description.displayName;
|
|
1061
|
+
const xn = r.forwardRef(
|
|
1063
1062
|
({ className: t, children: n, ...e }, a) => /* @__PURE__ */ x(Be, { className: Ht("py-3", t), ...e, ref: a, children: n })
|
|
1064
1063
|
);
|
|
1065
|
-
|
|
1064
|
+
xn.displayName = "DrawerBody";
|
|
1066
1065
|
const ce = r.forwardRef(({ blur: t, type: n, ...e }, a) => /* @__PURE__ */ x(X.Overlay, { ref: a, className: Fe({ blur: t, type: n }), ...e }));
|
|
1067
1066
|
ce.displayName = "DrawerOverlay";
|
|
1068
|
-
const
|
|
1067
|
+
const Rn = Q({
|
|
1069
1068
|
base: "fill-secondary-bg",
|
|
1070
1069
|
slots: {
|
|
1071
1070
|
handler: "fill-primary-border"
|
|
1072
1071
|
}
|
|
1073
|
-
}),
|
|
1074
|
-
const t =
|
|
1072
|
+
}), En = () => {
|
|
1073
|
+
const t = Rn();
|
|
1075
1074
|
return /* @__PURE__ */ nt("svg", { className: t.base(), xmlns: "http://www.w3.org/2000/svg", width: "80", height: "12", viewBox: "0 0 80 12", children: [
|
|
1076
1075
|
/* @__PURE__ */ x("path", { d: "M-0.5 12H22C19.1257 12 16.1864 10.9008 14.7634 8.71571L11.389 3.53429C9.96593 1.34918 7.31256 0 4.43829 0H-0.5V12Z" }),
|
|
1077
1076
|
/* @__PURE__ */ x("path", { d: "M59 12H80.5V0H76.5562C73.6819 0 71.0285 1.34918 69.6055 3.53429L66.2311 8.71571C64.808 10.9008 61.8743 12 59 12Z" }),
|
|
@@ -1083,7 +1082,7 @@ const En = Q({
|
|
|
1083
1082
|
}
|
|
1084
1083
|
)
|
|
1085
1084
|
] });
|
|
1086
|
-
},
|
|
1085
|
+
}, Cn = Q({ base: "flex flex-row" }), Gt = Q({
|
|
1087
1086
|
base: "h-3 flex-1 bg-secondary-bg",
|
|
1088
1087
|
variants: {
|
|
1089
1088
|
position: {
|
|
@@ -1092,21 +1091,21 @@ const En = Q({
|
|
|
1092
1091
|
}
|
|
1093
1092
|
}
|
|
1094
1093
|
}), de = St.forwardRef(
|
|
1095
|
-
({ className: t, ...n }, e) => /* @__PURE__ */ nt("div", { ref: e, className:
|
|
1094
|
+
({ className: t, ...n }, e) => /* @__PURE__ */ nt("div", { ref: e, className: Cn({ className: t }), ...n, children: [
|
|
1096
1095
|
/* @__PURE__ */ x("div", { className: Gt({ position: "left" }) }),
|
|
1097
|
-
/* @__PURE__ */ x(
|
|
1096
|
+
/* @__PURE__ */ x(En, {}),
|
|
1098
1097
|
/* @__PURE__ */ x("div", { className: Gt({ position: "right" }) })
|
|
1099
1098
|
] })
|
|
1100
1099
|
);
|
|
1101
1100
|
de.displayName = "DrawerHandler";
|
|
1102
|
-
const
|
|
1101
|
+
const On = Q({
|
|
1103
1102
|
slots: {
|
|
1104
1103
|
content: "fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto max-h-[calc(100vh-44px)] flex-col rounded-t-2xl after:!bg-secondary-bg",
|
|
1105
1104
|
wrapper: "flex min-h-0 flex-1 flex-col bg-secondary-bg"
|
|
1106
1105
|
}
|
|
1107
|
-
}),
|
|
1108
|
-
const y =
|
|
1109
|
-
return /* @__PURE__ */ nt(
|
|
1106
|
+
}), Nn = r.forwardRef(({ className: t, children: n, overlayBlur: e, overlayType: a, portalContainer: i, wrapperClassName: o, ...h }, u) => {
|
|
1107
|
+
const y = i, v = On();
|
|
1108
|
+
return /* @__PURE__ */ nt(Dn, { container: y, children: [
|
|
1110
1109
|
/* @__PURE__ */ x(ce, { blur: e, type: a }),
|
|
1111
1110
|
/* @__PURE__ */ nt(X.Content, { ref: u, className: v.content({ className: t }), ...h, children: [
|
|
1112
1111
|
/* @__PURE__ */ x(de, {}),
|
|
@@ -1114,20 +1113,20 @@ const Nn = Q({
|
|
|
1114
1113
|
] })
|
|
1115
1114
|
] });
|
|
1116
1115
|
});
|
|
1117
|
-
|
|
1118
|
-
const
|
|
1116
|
+
Nn.displayName = "DrawerContent";
|
|
1117
|
+
const $n = Q({
|
|
1119
1118
|
base: "mt-auto flex flex-col gap-2 bg-secondary-bg p-4"
|
|
1120
1119
|
}), fe = r.forwardRef(
|
|
1121
|
-
({ className: t, ...n }, e) => /* @__PURE__ */ x("div", { ref: e, className:
|
|
1120
|
+
({ className: t, ...n }, e) => /* @__PURE__ */ x("div", { ref: e, className: $n({ className: t }), ...n })
|
|
1122
1121
|
);
|
|
1123
1122
|
fe.displayName = "DrawerFooter";
|
|
1124
|
-
const
|
|
1123
|
+
const An = Q({
|
|
1125
1124
|
base: "grid gap-1.5 bg-secondary-bg p-4 text-center sm:text-left"
|
|
1126
1125
|
}), me = r.forwardRef(
|
|
1127
|
-
({ className: t, ...n }, e) => /* @__PURE__ */ x("div", { ref: e, className:
|
|
1126
|
+
({ className: t, ...n }, e) => /* @__PURE__ */ x("div", { ref: e, className: An({ className: t }), ...n })
|
|
1128
1127
|
);
|
|
1129
1128
|
me.displayName = "DrawerHeader";
|
|
1130
|
-
const
|
|
1129
|
+
const Mn = Q({
|
|
1131
1130
|
base: "flex flex-col items-start gap-3 py-3",
|
|
1132
1131
|
slots: {
|
|
1133
1132
|
buttonWrapper: "flex w-full items-start gap-3",
|
|
@@ -1146,7 +1145,7 @@ const Hn = Q({
|
|
|
1146
1145
|
}
|
|
1147
1146
|
}
|
|
1148
1147
|
}
|
|
1149
|
-
}),
|
|
1148
|
+
}), Hn = r.forwardRef(
|
|
1150
1149
|
({
|
|
1151
1150
|
className: t,
|
|
1152
1151
|
primaryButton: n,
|
|
@@ -1158,7 +1157,7 @@ const Hn = Q({
|
|
|
1158
1157
|
position: u = "horizontal",
|
|
1159
1158
|
...y
|
|
1160
1159
|
}, v) => {
|
|
1161
|
-
const d =
|
|
1160
|
+
const d = Mn({ className: t, position: u }), f = n && /* @__PURE__ */ x(
|
|
1162
1161
|
bt,
|
|
1163
1162
|
{
|
|
1164
1163
|
variant: "primary",
|
|
@@ -1180,13 +1179,13 @@ const Hn = Q({
|
|
|
1180
1179
|
"secondary-button"
|
|
1181
1180
|
), I = n || a;
|
|
1182
1181
|
return /* @__PURE__ */ nt(fe, { ref: v, className: d.base(), ...y, children: [
|
|
1183
|
-
o && /* @__PURE__ */ x(
|
|
1182
|
+
o && /* @__PURE__ */ x(ze, { className: d.checkbox(), label: o, ...h }),
|
|
1184
1183
|
I && /* @__PURE__ */ x("div", { className: d.buttonWrapper(), children: u === "vertical" ? [f, m] : [m, f] })
|
|
1185
1184
|
] });
|
|
1186
1185
|
}
|
|
1187
1186
|
);
|
|
1188
|
-
|
|
1189
|
-
const
|
|
1187
|
+
Hn.displayName = "DrawerFooterTemplate";
|
|
1188
|
+
const Pn = Q({
|
|
1190
1189
|
base: "flex flex-row items-start gap-1 p-0 pr-1",
|
|
1191
1190
|
variants: {
|
|
1192
1191
|
hasBackButton: {
|
|
@@ -1199,34 +1198,34 @@ const In = Q({
|
|
|
1199
1198
|
title: "text-lg font-semibold",
|
|
1200
1199
|
button: "aspect-square p-3"
|
|
1201
1200
|
}
|
|
1202
|
-
}),
|
|
1201
|
+
}), In = r.forwardRef(
|
|
1203
1202
|
({ className: t, description: n, title: e, showBackButton: a, backButtonProps: i, showCloseButton: o, closeButtonProps: h, ...u }, y) => {
|
|
1204
|
-
const v =
|
|
1203
|
+
const v = Pn({ className: t, hasBackButton: !!a });
|
|
1205
1204
|
return /* @__PURE__ */ nt(me, { ref: y, className: v.base(), ...u, children: [
|
|
1206
|
-
a !== !1 && /* @__PURE__ */ x(Zt, { asChild: !0, children: /* @__PURE__ */ x(bt, { size: "xl", variant: "text", className: v.button(), ...i, children: /* @__PURE__ */ x(jt, { icon:
|
|
1205
|
+
a !== !1 && /* @__PURE__ */ x(Zt, { asChild: !0, children: /* @__PURE__ */ x(bt, { size: "xl", variant: "text", className: v.button(), ...i, children: /* @__PURE__ */ x(jt, { icon: je, size: "lg" }) }) }),
|
|
1207
1206
|
/* @__PURE__ */ nt("div", { className: v.titleWrapper(), children: [
|
|
1208
1207
|
/* @__PURE__ */ x(ue, { className: v.title(), children: e }),
|
|
1209
|
-
/* @__PURE__ */ x(
|
|
1208
|
+
/* @__PURE__ */ x(We, { children: n })
|
|
1210
1209
|
] }),
|
|
1211
|
-
o !== !1 && /* @__PURE__ */ x(Zt, { asChild: !0, children: /* @__PURE__ */ x(bt, { size: "xl", variant: "text", className: v.button(), ...h, children: /* @__PURE__ */ x(jt, { icon:
|
|
1210
|
+
o !== !1 && /* @__PURE__ */ x(Zt, { asChild: !0, children: /* @__PURE__ */ x(bt, { size: "xl", variant: "text", className: v.button(), ...h, children: /* @__PURE__ */ x(jt, { icon: Ve, size: "lg" }) }) })
|
|
1212
1211
|
] });
|
|
1213
1212
|
}
|
|
1214
1213
|
);
|
|
1215
|
-
|
|
1214
|
+
In.displayName = "DrawerHeaderTemplate";
|
|
1216
1215
|
export {
|
|
1217
|
-
|
|
1218
|
-
|
|
1216
|
+
Sn as Drawer,
|
|
1217
|
+
xn as DrawerBody,
|
|
1219
1218
|
Zt as DrawerClose,
|
|
1220
|
-
|
|
1221
|
-
|
|
1219
|
+
Nn as DrawerContent,
|
|
1220
|
+
Tn as DrawerDescription,
|
|
1222
1221
|
fe as DrawerFooter,
|
|
1223
|
-
|
|
1222
|
+
Hn as DrawerFooterTemplate,
|
|
1224
1223
|
de as DrawerHandler,
|
|
1225
1224
|
me as DrawerHeader,
|
|
1226
|
-
|
|
1225
|
+
In as DrawerHeaderTemplate,
|
|
1227
1226
|
ce as DrawerOverlay,
|
|
1228
|
-
|
|
1227
|
+
Dn as DrawerPortal,
|
|
1229
1228
|
ue as DrawerTitle,
|
|
1230
|
-
|
|
1229
|
+
Kn as DrawerTrigger
|
|
1231
1230
|
};
|
|
1232
1231
|
//# sourceMappingURL=drawer.js.map
|