@bricks-toolkit/toolkit 0.1.1 → 0.1.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/README.md +9 -9
- package/dist/avatar/index.cjs +11 -1
- package/dist/avatar/index.mjs +2 -1
- package/dist/badge/index.cjs +11 -1
- package/dist/badge/index.mjs +2 -1
- package/dist/breadcrumbs/index.cjs +11 -1
- package/dist/breadcrumbs/index.mjs +2 -1
- package/dist/button/index.cjs +13 -2
- package/dist/button/index.mjs +4 -2
- package/dist/card/index.cjs +31 -1
- package/dist/card/index.mjs +2 -1
- package/dist/checkbox/index.cjs +11 -1
- package/dist/checkbox/index.mjs +2 -1
- package/dist/chunk-2POU3NX4.mjs +192 -0
- package/dist/chunk-32SKYPQW.mjs +156 -0
- package/dist/chunk-446OJWC6.mjs +285 -0
- package/dist/chunk-4DA7CRNV.mjs +376 -0
- package/dist/chunk-4DR57X7U.mjs +182 -0
- package/dist/chunk-4QSDPHPI.mjs +285 -0
- package/dist/chunk-56ILK7Y4.cjs +315 -0
- package/dist/chunk-5J3OMAO4.cjs +222 -0
- package/dist/chunk-5RKET2JO.cjs +287 -0
- package/dist/chunk-65UZC3FK.mjs +312 -0
- package/dist/chunk-6CC5KIA5.cjs +148 -0
- package/dist/chunk-6R3OYBQ6.cjs +209 -0
- package/dist/chunk-6UO72EJA.cjs +2 -0
- package/dist/chunk-6ZCY4O5M.mjs +63 -0
- package/dist/chunk-7364SUK6.mjs +359 -0
- package/dist/chunk-7DDDQ3RH.cjs +66 -0
- package/dist/chunk-7PDGAIC3.cjs +189 -0
- package/dist/chunk-7R5JRJ2W.cjs +255 -0
- package/dist/chunk-7WNJ7L4Z.mjs +335 -0
- package/dist/chunk-AJXVELXK.cjs +218 -0
- package/dist/chunk-ARTXRQO6.mjs +1 -0
- package/dist/chunk-B4OV5GRT.cjs +510 -0
- package/dist/chunk-B5MYGYJY.mjs +122 -0
- package/dist/chunk-BBVWG5GH.cjs +75 -0
- package/dist/chunk-BVBCAAES.mjs +35 -0
- package/dist/chunk-CBA54EY4.mjs +508 -0
- package/dist/chunk-CMER5LO3.mjs +330 -0
- package/dist/chunk-DHC5LI2P.cjs +338 -0
- package/dist/chunk-DMLPA65B.mjs +107 -0
- package/dist/chunk-DN2GFJF4.mjs +175 -0
- package/dist/chunk-ECLNLPOR.cjs +70 -0
- package/dist/chunk-EV463QT5.cjs +53 -0
- package/dist/chunk-FOVJHEWH.mjs +51 -0
- package/dist/chunk-G4HVY6FM.mjs +203 -0
- package/dist/chunk-H77YWN3L.mjs +220 -0
- package/dist/chunk-HIWJDLIS.cjs +124 -0
- package/dist/chunk-HQGDSOSN.mjs +274 -0
- package/dist/chunk-JKPNJ4PZ.mjs +313 -0
- package/dist/chunk-JV6AWBN5.mjs +113 -0
- package/dist/chunk-KA35BV7V.mjs +207 -0
- package/dist/chunk-KLBABQEJ.cjs +378 -0
- package/dist/chunk-L5VQZZVR.cjs +3197 -0
- package/dist/chunk-LTG6YP5I.cjs +69 -0
- package/dist/chunk-MVUNJPGH.cjs +184 -0
- package/dist/chunk-NMJ5CVZH.cjs +2 -0
- package/dist/chunk-NRCNRHXL.cjs +109 -0
- package/dist/chunk-NRZIXK35.cjs +276 -0
- package/dist/chunk-OCPFOFJ4.mjs +3195 -0
- package/dist/chunk-OEU5VG3D.cjs +362 -0
- package/dist/chunk-OPOCCRJG.cjs +193 -0
- package/dist/chunk-OQPCL5XX.mjs +187 -0
- package/dist/chunk-PCYGJNEQ.cjs +280 -0
- package/dist/chunk-PJH2KEWK.mjs +200 -0
- package/dist/chunk-PJWELBN2.cjs +115 -0
- package/dist/chunk-Q3IFXFFD.cjs +202 -0
- package/dist/chunk-R72GDCWE.cjs +314 -0
- package/dist/chunk-RAD5VJHR.mjs +146 -0
- package/dist/chunk-RYWDZHKG.mjs +274 -0
- package/dist/chunk-S7VEND5Z.cjs +162 -0
- package/dist/chunk-SBNNV6FE.mjs +1 -0
- package/dist/chunk-SFUOCZJY.mjs +187 -0
- package/dist/chunk-SHQ2MPBE.mjs +73 -0
- package/dist/chunk-TIVSMCXZ.mjs +253 -0
- package/dist/chunk-TNGW5YHA.cjs +37 -0
- package/dist/chunk-VC7MOPU6.cjs +287 -0
- package/dist/chunk-VHVFRWF5.mjs +64 -0
- package/dist/chunk-VKQDW7C2.mjs +336 -0
- package/dist/chunk-VRZFAKSV.cjs +177 -0
- package/dist/chunk-W2ZAPLQH.cjs +337 -0
- package/dist/chunk-XFNRKHHF.cjs +332 -0
- package/dist/chunk-Y3NTKFUE.mjs +66 -0
- package/dist/chunk-Y6AN7AWX.cjs +205 -0
- package/dist/chunk-YMMNWJT6.cjs +134 -0
- package/dist/chunk-YOTCXSXL.mjs +132 -0
- package/dist/combo-box/index.cjs +11 -1
- package/dist/combo-box/index.mjs +2 -1
- package/dist/date-picker/index.cjs +11 -2
- package/dist/date-picker/index.mjs +2 -2
- package/dist/dialog/index.cjs +27 -1
- package/dist/dialog/index.mjs +2 -1
- package/dist/dropdown-menu/index.cjs +27 -1
- package/dist/dropdown-menu/index.mjs +2 -1
- package/dist/email/index.cjs +11 -2
- package/dist/email/index.mjs +2 -2
- package/dist/file-upload/index.cjs +11 -1
- package/dist/file-upload/index.mjs +2 -1
- package/dist/header/index.cjs +14 -2
- package/dist/header/index.mjs +5 -2
- package/dist/icon-button/index.cjs +13 -2
- package/dist/icon-button/index.mjs +4 -2
- package/dist/image/index.cjs +12 -1
- package/dist/image/index.mjs +3 -1
- package/dist/index.cjs +839 -2
- package/dist/index.d.ts +141 -75
- package/dist/index.mjs +601 -2
- package/dist/link/index.cjs +11 -1
- package/dist/link/index.mjs +2 -1
- package/dist/loader/index.cjs +11 -2
- package/dist/loader/index.mjs +2 -2
- package/dist/modal/index.cjs +27 -1
- package/dist/modal/index.mjs +2 -1
- package/dist/multi-select/index.cjs +11 -2
- package/dist/multi-select/index.mjs +2 -2
- package/dist/otp-input/index.cjs +11 -1
- package/dist/otp-input/index.mjs +2 -1
- package/dist/password-input/index.cjs +11 -2
- package/dist/password-input/index.mjs +2 -2
- package/dist/phone/index.cjs +11 -2
- package/dist/phone/index.mjs +2 -2
- package/dist/radio-button/index.cjs +11 -1
- package/dist/radio-button/index.mjs +2 -1
- package/dist/search-input/index.cjs +12 -2
- package/dist/search-input/index.mjs +3 -2
- package/dist/select/index.cjs +11 -2
- package/dist/select/index.mjs +2 -2
- package/dist/sidebar/index.cjs +11 -1
- package/dist/sidebar/index.mjs +2 -1
- package/dist/skeleton/index.cjs +27 -1
- package/dist/skeleton/index.mjs +2 -1
- package/dist/styles.css +5074 -1
- package/dist/table/index.cjs +15 -1
- package/dist/table/index.mjs +2 -1
- package/dist/tabs/index.cjs +14 -2
- package/dist/tabs/index.mjs +5 -2
- package/dist/text-input/index.cjs +11 -2
- package/dist/text-input/index.mjs +2 -2
- package/dist/theme-provider/index.cjs +14 -1
- package/dist/theme-provider/index.mjs +1 -1
- package/dist/time-picker/index.cjs +11 -2
- package/dist/time-picker/index.mjs +2 -2
- package/dist/toaster/index.cjs +11 -1
- package/dist/toaster/index.mjs +2 -1
- package/dist/tooltip/index.cjs +12 -1
- package/dist/tooltip/index.mjs +3 -1
- package/package.json +122 -141
- package/dist/components/Accordion/Accordion.d.ts +0 -5
- package/dist/components/Accordion/Accordion.types.d.ts +0 -32
- package/dist/components/Accordion/index.d.ts +0 -2
- package/dist/components/Avatar/Avatar.d.ts +0 -2
- package/dist/components/Avatar/Avatar.stories.d.ts +0 -11
- package/dist/components/Avatar/Avatar.test.d.ts +0 -1
- package/dist/components/Avatar/Avatar.types.d.ts +0 -24
- package/dist/components/Avatar/index.d.ts +0 -2
- package/dist/components/Badge/Badge.d.ts +0 -11
- package/dist/components/Badge/Badge.stories.d.ts +0 -21
- package/dist/components/Badge/Badge.test.d.ts +0 -1
- package/dist/components/Badge/Badge.types.d.ts +0 -43
- package/dist/components/Badge/index.d.ts +0 -2
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +0 -2
- package/dist/components/Breadcrumbs/Breadcrumbs.stories.d.ts +0 -13
- package/dist/components/Breadcrumbs/Breadcrumbs.test.d.ts +0 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.types.d.ts +0 -27
- package/dist/components/Breadcrumbs/index.d.ts +0 -2
- package/dist/components/Button/Button.d.ts +0 -2
- package/dist/components/Button/Button.stories.d.ts +0 -20
- package/dist/components/Button/Button.test.d.ts +0 -1
- package/dist/components/Button/Button.types.d.ts +0 -24
- package/dist/components/Button/index.d.ts +0 -2
- package/dist/components/Card/Card.d.ts +0 -25
- package/dist/components/Card/Card.stories.d.ts +0 -8
- package/dist/components/Card/Card.test.d.ts +0 -1
- package/dist/components/Card/Card.types.d.ts +0 -14
- package/dist/components/Card/index.d.ts +0 -2
- package/dist/components/Checkbox/Checkbox.d.ts +0 -2
- package/dist/components/Checkbox/Checkbox.stories.d.ts +0 -16
- package/dist/components/Checkbox/Checkbox.test.d.ts +0 -1
- package/dist/components/Checkbox/Checkbox.types.d.ts +0 -31
- package/dist/components/Checkbox/index.d.ts +0 -2
- package/dist/components/ComboBox/ComboBox.d.ts +0 -2
- package/dist/components/ComboBox/ComboBox.stories.d.ts +0 -12
- package/dist/components/ComboBox/ComboBox.test.d.ts +0 -1
- package/dist/components/ComboBox/ComboBox.types.d.ts +0 -57
- package/dist/components/ComboBox/index.d.ts +0 -2
- package/dist/components/DatePicker/DatePicker.d.ts +0 -2
- package/dist/components/DatePicker/DatePicker.stories.d.ts +0 -25
- package/dist/components/DatePicker/DatePicker.test.d.ts +0 -1
- package/dist/components/DatePicker/DatePicker.types.d.ts +0 -27
- package/dist/components/DatePicker/index.d.ts +0 -2
- package/dist/components/Dialog/Dialog.d.ts +0 -6
- package/dist/components/Dialog/Dialog.stories.d.ts +0 -9
- package/dist/components/Dialog/Dialog.test.d.ts +0 -1
- package/dist/components/Dialog/Dialog.types.d.ts +0 -52
- package/dist/components/Dialog/index.d.ts +0 -2
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +0 -7
- package/dist/components/DropdownMenu/DropdownMenu.stories.d.ts +0 -9
- package/dist/components/DropdownMenu/DropdownMenu.test.d.ts +0 -1
- package/dist/components/DropdownMenu/DropdownMenu.types.d.ts +0 -24
- package/dist/components/DropdownMenu/index.d.ts +0 -2
- package/dist/components/Email/Email.d.ts +0 -2
- package/dist/components/Email/Email.stories.d.ts +0 -11
- package/dist/components/Email/Email.test.d.ts +0 -1
- package/dist/components/Email/Email.types.d.ts +0 -33
- package/dist/components/Email/index.d.ts +0 -2
- package/dist/components/FileUpload/FileUpload.d.ts +0 -2
- package/dist/components/FileUpload/FileUpload.stories.d.ts +0 -10
- package/dist/components/FileUpload/FileUpload.test.d.ts +0 -1
- package/dist/components/FileUpload/FileUpload.types.d.ts +0 -22
- package/dist/components/FileUpload/index.d.ts +0 -2
- package/dist/components/Header/Header.d.ts +0 -7
- package/dist/components/Header/Header.stories.d.ts +0 -8
- package/dist/components/Header/Header.test.d.ts +0 -1
- package/dist/components/Header/Header.types.d.ts +0 -19
- package/dist/components/Header/index.d.ts +0 -2
- package/dist/components/IconButton/IconButton.d.ts +0 -2
- package/dist/components/IconButton/IconButton.stories.d.ts +0 -17
- package/dist/components/IconButton/IconButton.types.d.ts +0 -10
- package/dist/components/IconButton/index.d.ts +0 -2
- package/dist/components/Image/Image.d.ts +0 -6
- package/dist/components/Image/Image.stories.d.ts +0 -13
- package/dist/components/Image/Image.test.d.ts +0 -1
- package/dist/components/Image/Image.types.d.ts +0 -40
- package/dist/components/Image/index.d.ts +0 -2
- package/dist/components/Link/Link.d.ts +0 -2
- package/dist/components/Link/Link.stories.d.ts +0 -15
- package/dist/components/Link/Link.test.d.ts +0 -1
- package/dist/components/Link/Link.types.d.ts +0 -20
- package/dist/components/Link/index.d.ts +0 -2
- package/dist/components/Loader/Loader.d.ts +0 -2
- package/dist/components/Loader/Loader.stories.d.ts +0 -12
- package/dist/components/Loader/Loader.test.d.ts +0 -1
- package/dist/components/Loader/Loader.types.d.ts +0 -17
- package/dist/components/Loader/index.d.ts +0 -2
- package/dist/components/Modal/Modal.d.ts +0 -14
- package/dist/components/Modal/Modal.stories.d.ts +0 -14
- package/dist/components/Modal/Modal.test.d.ts +0 -1
- package/dist/components/Modal/Modal.types.d.ts +0 -100
- package/dist/components/Modal/index.d.ts +0 -2
- package/dist/components/MultiSelect/MultiSelect.d.ts +0 -2
- package/dist/components/MultiSelect/MultiSelect.stories.d.ts +0 -15
- package/dist/components/MultiSelect/MultiSelect.test.d.ts +0 -1
- package/dist/components/MultiSelect/MultiSelect.types.d.ts +0 -55
- package/dist/components/MultiSelect/index.d.ts +0 -2
- package/dist/components/OtpInput/OtpInput.d.ts +0 -2
- package/dist/components/OtpInput/OtpInput.stories.d.ts +0 -10
- package/dist/components/OtpInput/OtpInput.test.d.ts +0 -1
- package/dist/components/OtpInput/OtpInput.types.d.ts +0 -53
- package/dist/components/OtpInput/index.d.ts +0 -2
- package/dist/components/PasswordInput/PasswordInput.d.ts +0 -2
- package/dist/components/PasswordInput/PasswordInput.stories.d.ts +0 -23
- package/dist/components/PasswordInput/PasswordInput.test.d.ts +0 -1
- package/dist/components/PasswordInput/PasswordInput.types.d.ts +0 -27
- package/dist/components/PasswordInput/index.d.ts +0 -2
- package/dist/components/Phone/Phone.d.ts +0 -2
- package/dist/components/Phone/Phone.stories.d.ts +0 -11
- package/dist/components/Phone/Phone.test.d.ts +0 -1
- package/dist/components/Phone/Phone.types.d.ts +0 -36
- package/dist/components/Phone/countries.d.ts +0 -8
- package/dist/components/Phone/index.d.ts +0 -2
- package/dist/components/RadioButton/RadioButton.d.ts +0 -2
- package/dist/components/RadioButton/RadioButton.stories.d.ts +0 -21
- package/dist/components/RadioButton/RadioButton.test.d.ts +0 -1
- package/dist/components/RadioButton/RadioButton.types.d.ts +0 -51
- package/dist/components/RadioButton/index.d.ts +0 -2
- package/dist/components/SearchInput/SearchInput.d.ts +0 -6
- package/dist/components/SearchInput/SearchInput.stories.d.ts +0 -8
- package/dist/components/SearchInput/SearchInput.test.d.ts +0 -1
- package/dist/components/SearchInput/SearchInput.types.d.ts +0 -12
- package/dist/components/SearchInput/index.d.ts +0 -2
- package/dist/components/Select/Select.d.ts +0 -2
- package/dist/components/Select/Select.stories.d.ts +0 -12
- package/dist/components/Select/Select.test.d.ts +0 -1
- package/dist/components/Select/Select.types.d.ts +0 -31
- package/dist/components/Select/index.d.ts +0 -2
- package/dist/components/Sidebar/Sidebar.d.ts +0 -7
- package/dist/components/Sidebar/Sidebar.stories.d.ts +0 -10
- package/dist/components/Sidebar/Sidebar.test.d.ts +0 -1
- package/dist/components/Sidebar/Sidebar.types.d.ts +0 -87
- package/dist/components/Sidebar/index.d.ts +0 -2
- package/dist/components/Skeleton/Skeleton.d.ts +0 -26
- package/dist/components/Skeleton/Skeleton.stories.d.ts +0 -13
- package/dist/components/Skeleton/Skeleton.types.d.ts +0 -47
- package/dist/components/Skeleton/index.d.ts +0 -2
- package/dist/components/Stepper/Stepper.d.ts +0 -2
- package/dist/components/Stepper/Stepper.stories.d.ts +0 -23
- package/dist/components/Stepper/Stepper.test.d.ts +0 -1
- package/dist/components/Stepper/Stepper.types.d.ts +0 -47
- package/dist/components/Stepper/index.d.ts +0 -2
- package/dist/components/Table/Pagination.d.ts +0 -3
- package/dist/components/Table/Table.d.ts +0 -3
- package/dist/components/Table/Table.stories.d.ts +0 -13
- package/dist/components/Table/Table.test.d.ts +0 -1
- package/dist/components/Table/Table.types.d.ts +0 -85
- package/dist/components/Table/index.d.ts +0 -3
- package/dist/components/Tabs/Tabs.d.ts +0 -2
- package/dist/components/Tabs/Tabs.stories.d.ts +0 -17
- package/dist/components/Tabs/Tabs.test.d.ts +0 -1
- package/dist/components/Tabs/Tabs.types.d.ts +0 -21
- package/dist/components/Tabs/index.d.ts +0 -2
- package/dist/components/TextInput/TextInput.d.ts +0 -2
- package/dist/components/TextInput/TextInput.stories.d.ts +0 -25
- package/dist/components/TextInput/TextInput.test.d.ts +0 -1
- package/dist/components/TextInput/TextInput.types.d.ts +0 -29
- package/dist/components/TextInput/index.d.ts +0 -2
- package/dist/components/ThemeProvider/ThemeProvider.d.ts +0 -8
- package/dist/components/ThemeProvider/ThemeProvider.stories.d.ts +0 -16
- package/dist/components/ThemeProvider/ThemeProvider.test.d.ts +0 -1
- package/dist/components/ThemeProvider/ThemeProvider.types.d.ts +0 -112
- package/dist/components/ThemeProvider/index.d.ts +0 -2
- package/dist/components/TimePicker/TimePicker.d.ts +0 -2
- package/dist/components/TimePicker/TimePicker.stories.d.ts +0 -23
- package/dist/components/TimePicker/TimePicker.test.d.ts +0 -1
- package/dist/components/TimePicker/TimePicker.types.d.ts +0 -27
- package/dist/components/TimePicker/index.d.ts +0 -2
- package/dist/components/Toaster/Toaster.d.ts +0 -2
- package/dist/components/Toaster/Toaster.stories.d.ts +0 -13
- package/dist/components/Toaster/Toaster.test.d.ts +0 -1
- package/dist/components/Toaster/Toaster.types.d.ts +0 -23
- package/dist/components/Toaster/index.d.ts +0 -2
- package/dist/components/Toggle/Toggle.d.ts +0 -2
- package/dist/components/Toggle/Toggle.stories.d.ts +0 -11
- package/dist/components/Toggle/Toggle.types.d.ts +0 -10
- package/dist/components/Toggle/index.d.ts +0 -2
- package/dist/components/Tooltip/Tooltip.d.ts +0 -2
- package/dist/components/Tooltip/Tooltip.stories.d.ts +0 -13
- package/dist/components/Tooltip/Tooltip.test.d.ts +0 -1
- package/dist/components/Tooltip/Tooltip.types.d.ts +0 -33
- package/dist/components/Tooltip/index.d.ts +0 -2
- package/dist/utils/cn.d.ts +0 -2
- package/dist/utils/index.d.ts +0 -1
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkL5VQZZVR_cjs = require('./chunk-L5VQZZVR.cjs');
|
|
4
|
+
var react = require('react');
|
|
5
|
+
var outline = require('@heroicons/react/24/outline');
|
|
6
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
|
|
8
|
+
var statusIcons = {
|
|
9
|
+
success: /* @__PURE__ */ jsxRuntime.jsx(outline.CheckCircleIcon, { className: "w-5 h-5" }),
|
|
10
|
+
error: /* @__PURE__ */ jsxRuntime.jsx(outline.ExclamationCircleIcon, { className: "w-5 h-5" }),
|
|
11
|
+
warning: /* @__PURE__ */ jsxRuntime.jsx(outline.ExclamationTriangleIcon, { className: "w-5 h-5" }),
|
|
12
|
+
info: /* @__PURE__ */ jsxRuntime.jsx(outline.InformationCircleIcon, { className: "w-5 h-5" })
|
|
13
|
+
};
|
|
14
|
+
var solidIconBg = {
|
|
15
|
+
success: "bg-white/20",
|
|
16
|
+
error: "bg-white/20",
|
|
17
|
+
warning: "bg-white/20",
|
|
18
|
+
info: "bg-white/20"
|
|
19
|
+
};
|
|
20
|
+
var subtleIconBg = {
|
|
21
|
+
success: "bg-success/20 text-success",
|
|
22
|
+
error: "bg-error/20 text-error",
|
|
23
|
+
warning: "bg-warning/20 text-warning",
|
|
24
|
+
info: "bg-info/20 text-info"
|
|
25
|
+
};
|
|
26
|
+
var accentIconBg = {
|
|
27
|
+
success: "bg-success/10 text-success",
|
|
28
|
+
error: "bg-error/10 text-error",
|
|
29
|
+
warning: "bg-warning/10 text-warning",
|
|
30
|
+
info: "bg-info/10 text-info"
|
|
31
|
+
};
|
|
32
|
+
var variantClasses = {
|
|
33
|
+
solid: {
|
|
34
|
+
success: "bg-success text-text border-transparent shadow-[0_8px_32px_rgba(16,185,129,0.3)]",
|
|
35
|
+
error: "bg-error text-text border-transparent shadow-[0_8px_32px_rgba(239,68,68,0.3)]",
|
|
36
|
+
warning: "bg-warning text-text border-transparent shadow-[0_8px_32px_rgba(245,158,11,0.3)]",
|
|
37
|
+
info: "bg-info text-text border-transparent shadow-[0_8px_32px_rgba(59,130,246,0.3)]"
|
|
38
|
+
},
|
|
39
|
+
subtle: {
|
|
40
|
+
success: "bg-success/10 text-text border-success/25 shadow-[0_8px_32px_rgba(16,185,129,0.12)]",
|
|
41
|
+
error: "bg-error/10 text-text border-error/25 shadow-[0_8px_32px_rgba(239,68,68,0.12)]",
|
|
42
|
+
warning: "bg-warning/10 text-text border-warning/25 shadow-[0_8px_32px_rgba(245,158,11,0.12)]",
|
|
43
|
+
info: "bg-info/10 text-text border-info/25 shadow-[0_8px_32px_rgba(59,130,246,0.12)]"
|
|
44
|
+
},
|
|
45
|
+
"left-accent": {
|
|
46
|
+
success: "bg-surface border-border border-l-success shadow-[0_8px_24px_rgba(0,0,0,0.08)] text-text",
|
|
47
|
+
error: "bg-surface border-border border-l-error shadow-[0_8px_24px_rgba(0,0,0,0.08)] text-text",
|
|
48
|
+
warning: "bg-surface border-border border-l-warning shadow-[0_8px_24px_rgba(0,0,0,0.08)] text-text",
|
|
49
|
+
info: "bg-surface border-border border-l-info shadow-[0_8px_24px_rgba(0,0,0,0.08)] text-text"
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
var statusTitleColor = {
|
|
53
|
+
success: "text-success",
|
|
54
|
+
error: "text-error",
|
|
55
|
+
warning: "text-warning",
|
|
56
|
+
info: "text-info"
|
|
57
|
+
};
|
|
58
|
+
var Toaster = react.forwardRef((props, ref) => {
|
|
59
|
+
const {
|
|
60
|
+
title,
|
|
61
|
+
description,
|
|
62
|
+
status = "info",
|
|
63
|
+
variant = "solid",
|
|
64
|
+
isClosable = true,
|
|
65
|
+
onClose,
|
|
66
|
+
className
|
|
67
|
+
} = props;
|
|
68
|
+
const isSolid = variant === "solid";
|
|
69
|
+
const isLeftAccent = variant === "left-accent";
|
|
70
|
+
const iconBgClass = isSolid ? solidIconBg[status] : isLeftAccent ? accentIconBg[status] : subtleIconBg[status];
|
|
71
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
72
|
+
"div",
|
|
73
|
+
{
|
|
74
|
+
ref,
|
|
75
|
+
role: "alert",
|
|
76
|
+
className: chunkL5VQZZVR_cjs.cn(
|
|
77
|
+
"relative flex w-full min-w-80 max-w-sm items-start gap-3 px-4 py-3.5 rounded-xl border overflow-hidden transition-all duration-200",
|
|
78
|
+
isLeftAccent && "border-l-4 rounded-l-none",
|
|
79
|
+
variantClasses[variant][status],
|
|
80
|
+
className
|
|
81
|
+
),
|
|
82
|
+
children: [
|
|
83
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
84
|
+
"div",
|
|
85
|
+
{
|
|
86
|
+
className: chunkL5VQZZVR_cjs.cn(
|
|
87
|
+
"flex-shrink-0 flex items-center justify-center w-8 h-8 rounded-lg mt-0.5",
|
|
88
|
+
iconBgClass
|
|
89
|
+
),
|
|
90
|
+
children: statusIcons[status]
|
|
91
|
+
}
|
|
92
|
+
),
|
|
93
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 min-w-0 pt-0.5", children: [
|
|
94
|
+
title && /* @__PURE__ */ jsxRuntime.jsx(
|
|
95
|
+
"p",
|
|
96
|
+
{
|
|
97
|
+
className: chunkL5VQZZVR_cjs.cn(
|
|
98
|
+
"text-sm font-bold leading-tight tracking-wide",
|
|
99
|
+
!isSolid && statusTitleColor[status]
|
|
100
|
+
),
|
|
101
|
+
children: title
|
|
102
|
+
}
|
|
103
|
+
),
|
|
104
|
+
description && /* @__PURE__ */ jsxRuntime.jsx(
|
|
105
|
+
"p",
|
|
106
|
+
{
|
|
107
|
+
className: chunkL5VQZZVR_cjs.cn(
|
|
108
|
+
"text-sm leading-relaxed mt-0.5",
|
|
109
|
+
isSolid ? "opacity-90" : "text-text-secondary"
|
|
110
|
+
),
|
|
111
|
+
children: description
|
|
112
|
+
}
|
|
113
|
+
)
|
|
114
|
+
] }),
|
|
115
|
+
isClosable && /* @__PURE__ */ jsxRuntime.jsx(
|
|
116
|
+
"button",
|
|
117
|
+
{
|
|
118
|
+
type: "button",
|
|
119
|
+
onClick: onClose,
|
|
120
|
+
className: chunkL5VQZZVR_cjs.cn(
|
|
121
|
+
"flex-shrink-0 flex items-center justify-center w-6 h-6 rounded-md transition-all duration-150 active:scale-90",
|
|
122
|
+
isSolid ? "hover:bg-white/20 text-text-inverse" : "hover:bg-black/10 dark:hover:bg-white/10 text-text-secondary hover:text-text"
|
|
123
|
+
),
|
|
124
|
+
"aria-label": "Close",
|
|
125
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(outline.XMarkIcon, { className: "w-4 h-4 stroke-2" })
|
|
126
|
+
}
|
|
127
|
+
)
|
|
128
|
+
]
|
|
129
|
+
}
|
|
130
|
+
);
|
|
131
|
+
});
|
|
132
|
+
Toaster.displayName = "Toaster";
|
|
133
|
+
|
|
134
|
+
exports.Toaster = Toaster;
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { cn } from './chunk-OCPFOFJ4.mjs';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import { XMarkIcon, InformationCircleIcon, ExclamationTriangleIcon, ExclamationCircleIcon, CheckCircleIcon } from '@heroicons/react/24/outline';
|
|
4
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
var statusIcons = {
|
|
7
|
+
success: /* @__PURE__ */ jsx(CheckCircleIcon, { className: "w-5 h-5" }),
|
|
8
|
+
error: /* @__PURE__ */ jsx(ExclamationCircleIcon, { className: "w-5 h-5" }),
|
|
9
|
+
warning: /* @__PURE__ */ jsx(ExclamationTriangleIcon, { className: "w-5 h-5" }),
|
|
10
|
+
info: /* @__PURE__ */ jsx(InformationCircleIcon, { className: "w-5 h-5" })
|
|
11
|
+
};
|
|
12
|
+
var solidIconBg = {
|
|
13
|
+
success: "bg-white/20",
|
|
14
|
+
error: "bg-white/20",
|
|
15
|
+
warning: "bg-white/20",
|
|
16
|
+
info: "bg-white/20"
|
|
17
|
+
};
|
|
18
|
+
var subtleIconBg = {
|
|
19
|
+
success: "bg-success/20 text-success",
|
|
20
|
+
error: "bg-error/20 text-error",
|
|
21
|
+
warning: "bg-warning/20 text-warning",
|
|
22
|
+
info: "bg-info/20 text-info"
|
|
23
|
+
};
|
|
24
|
+
var accentIconBg = {
|
|
25
|
+
success: "bg-success/10 text-success",
|
|
26
|
+
error: "bg-error/10 text-error",
|
|
27
|
+
warning: "bg-warning/10 text-warning",
|
|
28
|
+
info: "bg-info/10 text-info"
|
|
29
|
+
};
|
|
30
|
+
var variantClasses = {
|
|
31
|
+
solid: {
|
|
32
|
+
success: "bg-success text-text border-transparent shadow-[0_8px_32px_rgba(16,185,129,0.3)]",
|
|
33
|
+
error: "bg-error text-text border-transparent shadow-[0_8px_32px_rgba(239,68,68,0.3)]",
|
|
34
|
+
warning: "bg-warning text-text border-transparent shadow-[0_8px_32px_rgba(245,158,11,0.3)]",
|
|
35
|
+
info: "bg-info text-text border-transparent shadow-[0_8px_32px_rgba(59,130,246,0.3)]"
|
|
36
|
+
},
|
|
37
|
+
subtle: {
|
|
38
|
+
success: "bg-success/10 text-text border-success/25 shadow-[0_8px_32px_rgba(16,185,129,0.12)]",
|
|
39
|
+
error: "bg-error/10 text-text border-error/25 shadow-[0_8px_32px_rgba(239,68,68,0.12)]",
|
|
40
|
+
warning: "bg-warning/10 text-text border-warning/25 shadow-[0_8px_32px_rgba(245,158,11,0.12)]",
|
|
41
|
+
info: "bg-info/10 text-text border-info/25 shadow-[0_8px_32px_rgba(59,130,246,0.12)]"
|
|
42
|
+
},
|
|
43
|
+
"left-accent": {
|
|
44
|
+
success: "bg-surface border-border border-l-success shadow-[0_8px_24px_rgba(0,0,0,0.08)] text-text",
|
|
45
|
+
error: "bg-surface border-border border-l-error shadow-[0_8px_24px_rgba(0,0,0,0.08)] text-text",
|
|
46
|
+
warning: "bg-surface border-border border-l-warning shadow-[0_8px_24px_rgba(0,0,0,0.08)] text-text",
|
|
47
|
+
info: "bg-surface border-border border-l-info shadow-[0_8px_24px_rgba(0,0,0,0.08)] text-text"
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
var statusTitleColor = {
|
|
51
|
+
success: "text-success",
|
|
52
|
+
error: "text-error",
|
|
53
|
+
warning: "text-warning",
|
|
54
|
+
info: "text-info"
|
|
55
|
+
};
|
|
56
|
+
var Toaster = forwardRef((props, ref) => {
|
|
57
|
+
const {
|
|
58
|
+
title,
|
|
59
|
+
description,
|
|
60
|
+
status = "info",
|
|
61
|
+
variant = "solid",
|
|
62
|
+
isClosable = true,
|
|
63
|
+
onClose,
|
|
64
|
+
className
|
|
65
|
+
} = props;
|
|
66
|
+
const isSolid = variant === "solid";
|
|
67
|
+
const isLeftAccent = variant === "left-accent";
|
|
68
|
+
const iconBgClass = isSolid ? solidIconBg[status] : isLeftAccent ? accentIconBg[status] : subtleIconBg[status];
|
|
69
|
+
return /* @__PURE__ */ jsxs(
|
|
70
|
+
"div",
|
|
71
|
+
{
|
|
72
|
+
ref,
|
|
73
|
+
role: "alert",
|
|
74
|
+
className: cn(
|
|
75
|
+
"relative flex w-full min-w-80 max-w-sm items-start gap-3 px-4 py-3.5 rounded-xl border overflow-hidden transition-all duration-200",
|
|
76
|
+
isLeftAccent && "border-l-4 rounded-l-none",
|
|
77
|
+
variantClasses[variant][status],
|
|
78
|
+
className
|
|
79
|
+
),
|
|
80
|
+
children: [
|
|
81
|
+
/* @__PURE__ */ jsx(
|
|
82
|
+
"div",
|
|
83
|
+
{
|
|
84
|
+
className: cn(
|
|
85
|
+
"flex-shrink-0 flex items-center justify-center w-8 h-8 rounded-lg mt-0.5",
|
|
86
|
+
iconBgClass
|
|
87
|
+
),
|
|
88
|
+
children: statusIcons[status]
|
|
89
|
+
}
|
|
90
|
+
),
|
|
91
|
+
/* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0 pt-0.5", children: [
|
|
92
|
+
title && /* @__PURE__ */ jsx(
|
|
93
|
+
"p",
|
|
94
|
+
{
|
|
95
|
+
className: cn(
|
|
96
|
+
"text-sm font-bold leading-tight tracking-wide",
|
|
97
|
+
!isSolid && statusTitleColor[status]
|
|
98
|
+
),
|
|
99
|
+
children: title
|
|
100
|
+
}
|
|
101
|
+
),
|
|
102
|
+
description && /* @__PURE__ */ jsx(
|
|
103
|
+
"p",
|
|
104
|
+
{
|
|
105
|
+
className: cn(
|
|
106
|
+
"text-sm leading-relaxed mt-0.5",
|
|
107
|
+
isSolid ? "opacity-90" : "text-text-secondary"
|
|
108
|
+
),
|
|
109
|
+
children: description
|
|
110
|
+
}
|
|
111
|
+
)
|
|
112
|
+
] }),
|
|
113
|
+
isClosable && /* @__PURE__ */ jsx(
|
|
114
|
+
"button",
|
|
115
|
+
{
|
|
116
|
+
type: "button",
|
|
117
|
+
onClick: onClose,
|
|
118
|
+
className: cn(
|
|
119
|
+
"flex-shrink-0 flex items-center justify-center w-6 h-6 rounded-md transition-all duration-150 active:scale-90",
|
|
120
|
+
isSolid ? "hover:bg-white/20 text-text-inverse" : "hover:bg-black/10 dark:hover:bg-white/10 text-text-secondary hover:text-text"
|
|
121
|
+
),
|
|
122
|
+
"aria-label": "Close",
|
|
123
|
+
children: /* @__PURE__ */ jsx(XMarkIcon, { className: "w-4 h-4 stroke-2" })
|
|
124
|
+
}
|
|
125
|
+
)
|
|
126
|
+
]
|
|
127
|
+
}
|
|
128
|
+
);
|
|
129
|
+
});
|
|
130
|
+
Toaster.displayName = "Toaster";
|
|
131
|
+
|
|
132
|
+
export { Toaster };
|
package/dist/combo-box/index.cjs
CHANGED
|
@@ -1 +1,11 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkKLBABQEJ_cjs = require('../chunk-KLBABQEJ.cjs');
|
|
4
|
+
require('../chunk-L5VQZZVR.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, "ComboBox", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunkKLBABQEJ_cjs.ComboBox; }
|
|
11
|
+
});
|
package/dist/combo-box/index.mjs
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
export { ComboBox } from '../chunk-4DA7CRNV.mjs';
|
|
2
|
+
import '../chunk-OCPFOFJ4.mjs';
|
|
@@ -1,2 +1,11 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkW2ZAPLQH_cjs = require('../chunk-W2ZAPLQH.cjs');
|
|
4
|
+
require('../chunk-L5VQZZVR.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, "DatePicker", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunkW2ZAPLQH_cjs.DatePicker; }
|
|
11
|
+
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export { DatePicker } from '../chunk-7WNJ7L4Z.mjs';
|
|
2
|
+
import '../chunk-OCPFOFJ4.mjs';
|
package/dist/dialog/index.cjs
CHANGED
|
@@ -1 +1,27 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkOPOCCRJG_cjs = require('../chunk-OPOCCRJG.cjs');
|
|
4
|
+
require('../chunk-L5VQZZVR.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, "Dialog", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunkOPOCCRJG_cjs.Dialog; }
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "DialogBody", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () { return chunkOPOCCRJG_cjs.DialogBody; }
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(exports, "DialogCloseButton", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return chunkOPOCCRJG_cjs.DialogCloseButton; }
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(exports, "DialogFooter", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function () { return chunkOPOCCRJG_cjs.DialogFooter; }
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "DialogHeader", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () { return chunkOPOCCRJG_cjs.DialogHeader; }
|
|
27
|
+
});
|
package/dist/dialog/index.mjs
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
export { Dialog, DialogBody, DialogCloseButton, DialogFooter, DialogHeader } from '../chunk-OQPCL5XX.mjs';
|
|
2
|
+
import '../chunk-OCPFOFJ4.mjs';
|
|
@@ -1 +1,27 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkAJXVELXK_cjs = require('../chunk-AJXVELXK.cjs');
|
|
4
|
+
require('../chunk-L5VQZZVR.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, "DropdownMenu", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunkAJXVELXK_cjs.DropdownMenu; }
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "DropdownMenuContent", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () { return chunkAJXVELXK_cjs.DropdownMenuContent; }
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(exports, "DropdownMenuItem", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return chunkAJXVELXK_cjs.DropdownMenuItem; }
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(exports, "DropdownMenuSeparator", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function () { return chunkAJXVELXK_cjs.DropdownMenuSeparator; }
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "DropdownMenuTrigger", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () { return chunkAJXVELXK_cjs.DropdownMenuTrigger; }
|
|
27
|
+
});
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
export { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger } from '../chunk-2POU3NX4.mjs';
|
|
2
|
+
import '../chunk-OCPFOFJ4.mjs';
|
package/dist/email/index.cjs
CHANGED
|
@@ -1,2 +1,11 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkVC7MOPU6_cjs = require('../chunk-VC7MOPU6.cjs');
|
|
4
|
+
require('../chunk-L5VQZZVR.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, "Email", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunkVC7MOPU6_cjs.Email; }
|
|
11
|
+
});
|
package/dist/email/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export { Email } from '../chunk-4QSDPHPI.mjs';
|
|
2
|
+
import '../chunk-OCPFOFJ4.mjs';
|
|
@@ -1 +1,11 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk6R3OYBQ6_cjs = require('../chunk-6R3OYBQ6.cjs');
|
|
4
|
+
require('../chunk-L5VQZZVR.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, "FileUpload", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunk6R3OYBQ6_cjs.FileUpload; }
|
|
11
|
+
});
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
export { FileUpload } from '../chunk-KA35BV7V.mjs';
|
|
2
|
+
import '../chunk-OCPFOFJ4.mjs';
|
package/dist/header/index.cjs
CHANGED
|
@@ -1,2 +1,14 @@
|
|
|
1
|
-
'use strict';var clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),react=require('react'),reactDom=require('react-dom'),jsxRuntime=require('react/jsx-runtime'),outline=require('@heroicons/react/24/outline');function r(...p){return tailwindMerge.twMerge(clsx.clsx(p))}var ae=150,ye={top:"-translate-x-1/2 -translate-y-full",bottom:"-translate-x-1/2",left:"-translate-x-full -translate-y-1/2",right:"-translate-y-1/2"},ve={top:"top-full left-1/2 -translate-x-1/2",bottom:"bottom-full left-1/2 -translate-x-1/2",left:"left-full top-1/2 -translate-y-1/2",right:"right-full top-1/2 -translate-y-1/2"},we={top:"border-l-transparent border-r-transparent border-b-transparent",bottom:"border-l-transparent border-r-transparent border-t-transparent",left:"border-t-transparent border-b-transparent border-r-transparent",right:"border-t-transparent border-b-transparent border-l-transparent"},Te={top:"translate-y-1",bottom:"-translate-y-1",left:"translate-x-1",right:"-translate-x-1"},Re={sm:"px-2 py-1 text-xs rounded-md",md:"px-3 py-1.5 text-sm rounded-lg",lg:"px-4 py-2 text-sm rounded-xl"},Be={dark:["bg-gray-900 text-gray-50","shadow-[0_4px_16px_rgba(0,0,0,0.35)]","ring-1 ring-white/10"].join(" "),primary:["bg-gradient-to-b from-blue-500 to-blue-600 text-white","shadow-[0_4px_16px_rgba(59,130,246,0.45)]","ring-1 ring-blue-400/30"].join(" "),light:["bg-white text-gray-800","border border-gray-200/80","shadow-[0_4px_16px_rgba(0,0,0,0.10)]"].join(" ")},Ee={dark:{top:"border-t-gray-900",bottom:"border-b-gray-900",left:"border-l-gray-900",right:"border-r-gray-900"},primary:{top:"border-t-blue-600",bottom:"border-b-blue-500",left:"border-l-blue-600",right:"border-r-blue-500"},light:{top:"border-t-gray-200",bottom:"border-b-gray-200",left:"border-l-gray-200",right:"border-r-gray-200"}};function le({content:p,children:x,placement:t="top",trigger:n="hover",showDelay:s=0,hideDelay:d=100,size:o="md",variant:m="dark",open:H,disabled:a=false,maxWidth:z=240,className:M,wrapperClassName:V}){let[F,w]=react.useState(false),[L,T]=react.useState(false),[S,B]=react.useState(false),[U,de]=react.useState({top:0,left:0}),[E,me]=react.useState(t),y=H!==void 0,u=y?H:F,K=react.useRef(null),$=react.useRef(null),j=react.useRef(null),q=react.useRef(null),N=react.useRef(null),G=react.useId(),i=react.useCallback(()=>{j.current&&clearTimeout(j.current),q.current&&clearTimeout(q.current),N.current&&clearTimeout(N.current);},[]),Q=react.useCallback(()=>{if(a||y)return;i();let e=()=>{w(true);};s>0?j.current=setTimeout(e,s):e();},[a,y,i,s]),Y=react.useCallback(()=>{y||(i(),q.current=setTimeout(()=>{w(false);},d));},[y,i,d]),Z=react.useCallback(()=>{a||y||w(e=>!e);},[a,y]);react.useEffect(()=>{let e=null;return u&&!a?(i(),e=requestAnimationFrame(()=>{T(true),e=requestAnimationFrame(()=>{B(true);});})):(e=requestAnimationFrame(()=>{B(false);}),N.current=setTimeout(()=>{T(false);},ae)),()=>{e&&cancelAnimationFrame(e),N.current&&clearTimeout(N.current);}},[u,a,i]);let ee=react.useCallback(()=>{if(!K.current||!u)return;let e=K.current.getBoundingClientRect(),l=$.current,b=8,f=t,te=g=>{switch(g){case "top":return {t:e.top-b,l:e.left+e.width/2};case "bottom":return {t:e.bottom+b,l:e.left+e.width/2};case "left":return {t:e.top+e.height/2,l:e.left-b};case "right":return {t:e.top+e.height/2,l:e.right+b}}},re=te(t),I=re.t,A=re.l;if(l){let g=l.getBoundingClientRect(),h=12;if(t==="top"&&e.top-g.height-b<h?f="bottom":t==="bottom"&&e.bottom+g.height+b>window.innerHeight-h?f="top":t==="left"&&e.left-g.width-b<h?f="right":t==="right"&&e.right+g.width+b>window.innerWidth-h&&(f="left"),f!==t){let se=te(f);I=se.t,A=se.l;}let oe=g.width/2,ne=g.height/2;f==="top"||f==="bottom"?A=Math.max(h+oe,Math.min(window.innerWidth-h-oe,A)):I=Math.max(h+ne,Math.min(window.innerHeight-h-ne,I));}me(f),de({top:I,left:A});},[u,t]);react.useLayoutEffect(()=>{if(!u)return;let e=null,l=()=>{e=requestAnimationFrame(ee);};return l(),window.addEventListener("resize",l),window.addEventListener("scroll",l,true),()=>{e!==null&&cancelAnimationFrame(e),window.removeEventListener("resize",l),window.removeEventListener("scroll",l,true);}},[u,ee]),react.useEffect(()=>{if(!u)return;let e=l=>{l.key==="Escape"&&(i(),w(false));};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e);}},[u,i]),react.useEffect(()=>i,[i]);let v={};(n==="hover"||n==="focus")&&(v.onFocus=Q,v.onBlur=Y),n==="hover"?(v.onMouseEnter=Q,v.onMouseLeave=Y):n==="click"&&(v.onClick=Z),v.onKeyDown=e=>{(e.key==="Enter"||e.key===" ")&&Z();};let ue=x;return jsxRuntime.jsxs("span",{ref:K,className:r("relative inline-flex isolate z-0",V),"aria-describedby":u&&!a?G:void 0,...v,children:[jsxRuntime.jsx("span",{className:"relative z-0",children:ue}),L&&!a&&reactDom.createPortal(jsxRuntime.jsx("div",{ref:$,className:r("pointer-events-none fixed z-[9999]",ye[E]),style:{top:U.top,left:U.left},children:jsxRuntime.jsxs("div",{id:G,role:"tooltip",style:{maxWidth:z,transitionDuration:`${ae.toString()}ms`},className:r("relative min-w-max whitespace-normal break-words","font-sans font-medium tracking-tight text-center leading-snug","transition-[opacity,transform] ease-out",S?"opacity-100 translate-x-0 translate-y-0":["opacity-0",Te[E]].join(" "),Be[m],Re[o],M),children:[jsxRuntime.jsx("div",{"aria-hidden":"true",className:r("absolute border-[6px]","drop-shadow-sm",ve[E],we[E],Ee[m][E])}),p]})}),document.body)]})}var Ce={xs:"h-6 px-2.5 text-xs",sm:"h-8 px-3 text-sm",md:"h-10 px-4 text-sm",lg:"h-11 px-6 text-base",xl:"h-12 px-8 text-lg"},Pe={xs:"w-3 h-3",sm:"w-3.5 h-3.5",md:"w-4 h-4",lg:"w-5 h-5",xl:"w-5 h-5"},ke={primary:"bg-primary text-text-inverse hover:bg-primary-hover hover:shadow-xl hover:shadow-primary/20 active:scale-95 border border-transparent shadow-md focus-visible:ring-primary/40 transition-all duration-normal",secondary:"bg-secondary text-text hover:bg-secondary-hover border border-transparent focus-visible:ring-primary/40",outline:"bg-transparent text-text border border-border hover:bg-hover hover:text-text focus-visible:ring-primary/40",ghost:"bg-transparent text-text border border-transparent hover:bg-hover hover:text-text focus-visible:ring-primary/40",danger:"bg-error text-text-inverse hover:bg-error/90 border border-transparent shadow-sm focus-visible:ring-error/40",success:"bg-success text-text-inverse hover:bg-success/90 border border-transparent shadow-sm focus-visible:ring-success/40",warning:"bg-warning text-text-inverse hover:bg-warning/90 border border-transparent shadow-sm focus-visible:ring-warning/40",info:"bg-info text-text-inverse hover:bg-info/90 border border-transparent shadow-sm focus-visible:ring-info/40"},He="opacity-50 cursor-not-allowed shadow-none",O=react.forwardRef(function({children:x,className:t,variant:n="primary",size:s="md",fullWidth:d=false,isLoading:o=false,loadingText:m,disabled:H=false,leftIcon:a,rightIcon:z,tooltip:M,tooltipPlacement:V="top",type:F="button",...w},L){let T=H||o,S=jsxRuntime.jsxs("div",{className:r("relative flex items-center justify-center",Pe[s]),children:[jsxRuntime.jsx("div",{className:"absolute inset-0 rounded-full border-1 border-current opacity-20 animate-ping"}),jsxRuntime.jsxs("svg",{className:"animate-spin relative z-10 w-full h-full",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",role:"status",children:[jsxRuntime.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),jsxRuntime.jsx("path",{className:"opacity-90",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})]}),B=jsxRuntime.jsx("button",{ref:L,type:F,disabled:T,"aria-disabled":T,"aria-busy":o,className:r("relative inline-flex items-center justify-center gap-2 font-bold rounded-md transition-[background-color,border-color,color,box-shadow,transform,opacity] duration-normal focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-offset-surface",Ce[s],ke[n],d?"w-full":"",T?He:"",t),...w,children:o&&m?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[S,jsxRuntime.jsx("span",{children:m})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a&&jsxRuntime.jsx("span",{className:r("inline-flex shrink-0",o&&"invisible opacity-0"),children:a}),jsxRuntime.jsx("span",{className:r("truncate flex items-center justify-center",o&&"invisible opacity-0"),children:x}),z&&jsxRuntime.jsx("span",{className:r("inline-flex shrink-0",o&&"invisible opacity-0"),children:z}),o&&!m&&jsxRuntime.jsx("span",{className:"absolute inset-0 flex items-center justify-center",children:S})]})});return M?jsxRuntime.jsx(le,{content:M,placement:V,wrapperClassName:d?"w-full":"",children:B}):B});O.displayName="Button";var Me={xs:"w-6 h-6",sm:"w-8 h-8",md:"w-10 h-10",lg:"w-11 h-11",xl:"w-12 h-12"},W=react.forwardRef(({icon:p,"aria-label":x,isRound:t,className:n,size:s="md",...d},o)=>jsxRuntime.jsx(O,{ref:o,size:s,className:r("p-0 flex-shrink-0 min-w-0",Me[s],t&&"rounded-full",n),"aria-label":x,...d,children:p}));W.displayName="IconButton";var pe=({logo:p,children:x,actions:t,userSection:n,isSticky:s=true,className:d,glass:o=false,onMenuToggle:m})=>jsxRuntime.jsxs("header",{className:r("h-16 flex items-center justify-between px-6 bg-surface border-b border-border transition-all duration-normal",s&&"sticky top-0 z-index-sticky",o&&"glass",d),children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-4",children:[m&&jsxRuntime.jsx(W,{icon:jsxRuntime.jsx(outline.Bars3Icon,{className:"w-5 h-5"}),"aria-label":"Toggle Menu",variant:"ghost",size:"sm",onClick:m,className:"lg:hidden"}),p&&jsxRuntime.jsx("div",{className:"flex items-center",children:p})]}),jsxRuntime.jsx("div",{className:"flex-1 max-w-xl px-8 hidden md:block",children:x}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[t&&jsxRuntime.jsx("div",{className:"flex items-center gap-1",children:t}),n&&jsxRuntime.jsx("div",{className:"flex items-center pl-2 ml-2 border-l border-border h-8",children:n})]})]});pe.displayName="Header";
|
|
2
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkEV463QT5_cjs = require('../chunk-EV463QT5.cjs');
|
|
4
|
+
require('../chunk-TNGW5YHA.cjs');
|
|
5
|
+
require('../chunk-6CC5KIA5.cjs');
|
|
6
|
+
require('../chunk-R72GDCWE.cjs');
|
|
7
|
+
require('../chunk-L5VQZZVR.cjs');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
Object.defineProperty(exports, "Header", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkEV463QT5_cjs.Header; }
|
|
14
|
+
});
|