@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
package/dist/link/index.cjs
CHANGED
|
@@ -1 +1,11 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkBBVWG5GH_cjs = require('../chunk-BBVWG5GH.cjs');
|
|
4
|
+
require('../chunk-L5VQZZVR.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, "Link", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunkBBVWG5GH_cjs.Link; }
|
|
11
|
+
});
|
package/dist/link/index.mjs
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
export { Link } from '../chunk-SHQ2MPBE.mjs';
|
|
2
|
+
import '../chunk-OCPFOFJ4.mjs';
|
package/dist/loader/index.cjs
CHANGED
|
@@ -1,2 +1,11 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkMVUNJPGH_cjs = require('../chunk-MVUNJPGH.cjs');
|
|
4
|
+
require('../chunk-L5VQZZVR.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, "Loader", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunkMVUNJPGH_cjs.Loader; }
|
|
11
|
+
});
|
package/dist/loader/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export { Loader } from '../chunk-4DR57X7U.mjs';
|
|
2
|
+
import '../chunk-OCPFOFJ4.mjs';
|
package/dist/modal/index.cjs
CHANGED
|
@@ -1 +1,27 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkPCYGJNEQ_cjs = require('../chunk-PCYGJNEQ.cjs');
|
|
4
|
+
require('../chunk-L5VQZZVR.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, "Modal", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunkPCYGJNEQ_cjs.Modal; }
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "ModalBody", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () { return chunkPCYGJNEQ_cjs.ModalBody; }
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(exports, "ModalCloseButton", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return chunkPCYGJNEQ_cjs.ModalCloseButton; }
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(exports, "ModalFooter", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function () { return chunkPCYGJNEQ_cjs.ModalFooter; }
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "ModalHeader", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () { return chunkPCYGJNEQ_cjs.ModalHeader; }
|
|
27
|
+
});
|
package/dist/modal/index.mjs
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
export { Modal, ModalBody, ModalCloseButton, ModalFooter, ModalHeader } from '../chunk-HQGDSOSN.mjs';
|
|
2
|
+
import '../chunk-OCPFOFJ4.mjs';
|
|
@@ -1,2 +1,11 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk56ILK7Y4_cjs = require('../chunk-56ILK7Y4.cjs');
|
|
4
|
+
require('../chunk-L5VQZZVR.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, "MultiSelect", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunk56ILK7Y4_cjs.MultiSelect; }
|
|
11
|
+
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export { MultiSelect } from '../chunk-JKPNJ4PZ.mjs';
|
|
2
|
+
import '../chunk-OCPFOFJ4.mjs';
|
package/dist/otp-input/index.cjs
CHANGED
|
@@ -1 +1,11 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkNRZIXK35_cjs = require('../chunk-NRZIXK35.cjs');
|
|
4
|
+
require('../chunk-L5VQZZVR.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, "OtpInput", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunkNRZIXK35_cjs.OtpInput; }
|
|
11
|
+
});
|
package/dist/otp-input/index.mjs
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
export { OtpInput } from '../chunk-RYWDZHKG.mjs';
|
|
2
|
+
import '../chunk-OCPFOFJ4.mjs';
|
|
@@ -1,2 +1,11 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk5RKET2JO_cjs = require('../chunk-5RKET2JO.cjs');
|
|
4
|
+
require('../chunk-L5VQZZVR.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, "PasswordInput", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunk5RKET2JO_cjs.PasswordInput; }
|
|
11
|
+
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export { PasswordInput } from '../chunk-446OJWC6.mjs';
|
|
2
|
+
import '../chunk-OCPFOFJ4.mjs';
|
package/dist/phone/index.cjs
CHANGED
|
@@ -1,2 +1,11 @@
|
|
|
1
|
-
'use strict';var react=require('react'),solid=require('@heroicons/react/20/solid'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),jsxRuntime=require('react/jsx-runtime');function n(...o){return tailwindMerge.twMerge(clsx.clsx(o))}var w=[{name:"Afghanistan",id:"AF",dialCode:"+93",maxLength:9,flag:"\u{1F1E6}\u{1F1EB}"},{name:"Albania",id:"AL",dialCode:"+355",maxLength:9,flag:"\u{1F1E6}\u{1F1F1}"},{name:"Algeria",id:"DZ",dialCode:"+213",maxLength:9,flag:"\u{1F1E9}\u{1F1FF}"},{name:"Andorra",id:"AD",dialCode:"+376",maxLength:6,flag:"\u{1F1E6}\u{1F1E9}"},{name:"Angola",id:"AO",dialCode:"+244",maxLength:9,flag:"\u{1F1E6}\u{1F1F4}"},{name:"Argentina",id:"AR",dialCode:"+54",maxLength:10,flag:"\u{1F1E6}\u{1F1F7}"},{name:"Armenia",id:"AM",dialCode:"+374",maxLength:8,flag:"\u{1F1E6}\u{1F1F2}"},{name:"Australia",id:"AU",dialCode:"+61",maxLength:9,flag:"\u{1F1E6}\u{1F1FA}"},{name:"Austria",id:"AT",dialCode:"+43",maxLength:13,flag:"\u{1F1E6}\u{1F1F9}"},{name:"Azerbaijan",id:"AZ",dialCode:"+994",maxLength:9,flag:"\u{1F1E6}\u{1F1FF}"},{name:"Bahrain",id:"BH",dialCode:"+973",maxLength:8,flag:"\u{1F1E7}\u{1F1ED}"},{name:"Bangladesh",id:"BD",dialCode:"+880",maxLength:10,flag:"\u{1F1E7}\u{1F1E9}"},{name:"Belarus",id:"BY",dialCode:"+375",maxLength:9,flag:"\u{1F1E7}\u{1F1FE}"},{name:"Belgium",id:"BE",dialCode:"+32",maxLength:9,flag:"\u{1F1E7}\u{1F1EA}"},{name:"Bolivia",id:"BO",dialCode:"+591",maxLength:8,flag:"\u{1F1E7}\u{1F1F4}"},{name:"Bosnia and Herzegovina",id:"BA",dialCode:"+387",maxLength:8,flag:"\u{1F1E7}\u{1F1E6}"},{name:"Brazil",id:"BR",dialCode:"+55",maxLength:11,flag:"\u{1F1E7}\u{1F1F7}"},{name:"Bulgaria",id:"BG",dialCode:"+359",maxLength:9,flag:"\u{1F1E7}\u{1F1EC}"},{name:"Cambodia",id:"KH",dialCode:"+855",maxLength:9,flag:"\u{1F1F0}\u{1F1ED}"},{name:"Canada",id:"CA",dialCode:"+1",maxLength:10,flag:"\u{1F1E8}\u{1F1E6}"},{name:"Chile",id:"CL",dialCode:"+56",maxLength:9,flag:"\u{1F1E8}\u{1F1F1}"},{name:"China",id:"CN",dialCode:"+86",maxLength:11,flag:"\u{1F1E8}\u{1F1F3}"},{name:"Colombia",id:"CO",dialCode:"+57",maxLength:10,flag:"\u{1F1E8}\u{1F1F4}"},{name:"Costa Rica",id:"CR",dialCode:"+506",maxLength:8,flag:"\u{1F1E8}\u{1F1F7}"},{name:"Croatia",id:"HR",dialCode:"+385",maxLength:9,flag:"\u{1F1ED}\u{1F1F7}"},{name:"Cuba",id:"CU",dialCode:"+53",maxLength:8,flag:"\u{1F1E8}\u{1F1FA}"},{name:"Cyprus",id:"CY",dialCode:"+357",maxLength:8,flag:"\u{1F1E8}\u{1F1FE}"},{name:"Czech Republic",id:"CZ",dialCode:"+420",maxLength:9,flag:"\u{1F1E8}\u{1F1FF}"},{name:"Denmark",id:"DK",dialCode:"+45",maxLength:8,flag:"\u{1F1E9}\u{1F1F0}"},{name:"Ecuador",id:"EC",dialCode:"+593",maxLength:9,flag:"\u{1F1EA}\u{1F1E8}"},{name:"Egypt",id:"EG",dialCode:"+20",maxLength:10,flag:"\u{1F1EA}\u{1F1EC}"},{name:"Estonia",id:"EE",dialCode:"+372",maxLength:8,flag:"\u{1F1EA}\u{1F1EA}"},{name:"Ethiopia",id:"ET",dialCode:"+251",maxLength:9,flag:"\u{1F1EA}\u{1F1F9}"},{name:"Finland",id:"FI",dialCode:"+358",maxLength:10,flag:"\u{1F1EB}\u{1F1EE}"},{name:"France",id:"FR",dialCode:"+33",maxLength:9,flag:"\u{1F1EB}\u{1F1F7}"},{name:"Georgia",id:"GE",dialCode:"+995",maxLength:9,flag:"\u{1F1EC}\u{1F1EA}"},{name:"Germany",id:"DE",dialCode:"+49",maxLength:11,flag:"\u{1F1E9}\u{1F1EA}"},{name:"Ghana",id:"GH",dialCode:"+233",maxLength:9,flag:"\u{1F1EC}\u{1F1ED}"},{name:"Greece",id:"GR",dialCode:"+30",maxLength:10,flag:"\u{1F1EC}\u{1F1F7}"},{name:"Guatemala",id:"GT",dialCode:"+502",maxLength:8,flag:"\u{1F1EC}\u{1F1F9}"},{name:"Hong Kong",id:"HK",dialCode:"+852",maxLength:8,flag:"\u{1F1ED}\u{1F1F0}"},{name:"Hungary",id:"HU",dialCode:"+36",maxLength:9,flag:"\u{1F1ED}\u{1F1FA}"},{name:"Iceland",id:"IS",dialCode:"+354",maxLength:7,flag:"\u{1F1EE}\u{1F1F8}"},{name:"India",id:"IN",dialCode:"+91",maxLength:10,flag:"\u{1F1EE}\u{1F1F3}"},{name:"Indonesia",id:"ID",dialCode:"+62",maxLength:12,flag:"\u{1F1EE}\u{1F1E9}"},{name:"Iran",id:"IR",dialCode:"+98",maxLength:10,flag:"\u{1F1EE}\u{1F1F7}"},{name:"Iraq",id:"IQ",dialCode:"+964",maxLength:10,flag:"\u{1F1EE}\u{1F1F6}"},{name:"Ireland",id:"IE",dialCode:"+353",maxLength:9,flag:"\u{1F1EE}\u{1F1EA}"},{name:"Israel",id:"IL",dialCode:"+972",maxLength:9,flag:"\u{1F1EE}\u{1F1F1}"},{name:"Italy",id:"IT",dialCode:"+39",maxLength:10,flag:"\u{1F1EE}\u{1F1F9}"},{name:"Japan",id:"JP",dialCode:"+81",maxLength:10,flag:"\u{1F1EF}\u{1F1F5}"},{name:"Jordan",id:"JO",dialCode:"+962",maxLength:9,flag:"\u{1F1EF}\u{1F1F4}"},{name:"Kazakhstan",id:"KZ",dialCode:"+7",maxLength:10,flag:"\u{1F1F0}\u{1F1FF}"},{name:"Kenya",id:"KE",dialCode:"+254",maxLength:9,flag:"\u{1F1F0}\u{1F1EA}"},{name:"Kuwait",id:"KW",dialCode:"+965",maxLength:8,flag:"\u{1F1F0}\u{1F1FC}"},{name:"Latvia",id:"LV",dialCode:"+371",maxLength:8,flag:"\u{1F1F1}\u{1F1FB}"},{name:"Lebanon",id:"LB",dialCode:"+961",maxLength:8,flag:"\u{1F1F1}\u{1F1E7}"},{name:"Lithuania",id:"LT",dialCode:"+370",maxLength:8,flag:"\u{1F1F1}\u{1F1F9}"},{name:"Luxembourg",id:"LU",dialCode:"+352",maxLength:9,flag:"\u{1F1F1}\u{1F1FA}"},{name:"Macau",id:"MO",dialCode:"+853",maxLength:8,flag:"\u{1F1F2}\u{1F1F4}"},{name:"Malaysia",id:"MY",dialCode:"+60",maxLength:10,flag:"\u{1F1F2}\u{1F1FE}"},{name:"Mexico",id:"MX",dialCode:"+52",maxLength:10,flag:"\u{1F1F2}\u{1F1FD}"},{name:"Morocco",id:"MA",dialCode:"+212",maxLength:9,flag:"\u{1F1F2}\u{1F1E6}"},{name:"Myanmar",id:"MM",dialCode:"+95",maxLength:9,flag:"\u{1F1F2}\u{1F1F2}"},{name:"Nepal",id:"NP",dialCode:"+977",maxLength:10,flag:"\u{1F1F3}\u{1F1F5}"},{name:"Netherlands",id:"NL",dialCode:"+31",maxLength:9,flag:"\u{1F1F3}\u{1F1F1}"},{name:"New Zealand",id:"NZ",dialCode:"+64",maxLength:9,flag:"\u{1F1F3}\u{1F1FF}"},{name:"Nigeria",id:"NG",dialCode:"+234",maxLength:10,flag:"\u{1F1F3}\u{1F1EC}"},{name:"Norway",id:"NO",dialCode:"+47",maxLength:8,flag:"\u{1F1F3}\u{1F1F4}"},{name:"Oman",id:"OM",dialCode:"+968",maxLength:8,flag:"\u{1F1F4}\u{1F1F2}"},{name:"Pakistan",id:"PK",dialCode:"+92",maxLength:10,flag:"\u{1F1F5}\u{1F1F0}"},{name:"Panama",id:"PA",dialCode:"+507",maxLength:8,flag:"\u{1F1F5}\u{1F1E6}"},{name:"Paraguay",id:"PY",dialCode:"+595",maxLength:9,flag:"\u{1F1F5}\u{1F1FE}"},{name:"Peru",id:"PE",dialCode:"+51",maxLength:9,flag:"\u{1F1F5}\u{1F1EA}"},{name:"Philippines",id:"PH",dialCode:"+63",maxLength:10,flag:"\u{1F1F5}\u{1F1ED}"},{name:"Poland",id:"PL",dialCode:"+48",maxLength:9,flag:"\u{1F1F5}\u{1F1F1}"},{name:"Portugal",id:"PT",dialCode:"+351",maxLength:9,flag:"\u{1F1F5}\u{1F1F9}"},{name:"Qatar",id:"QA",dialCode:"+974",maxLength:8,flag:"\u{1F1F6}\u{1F1E6}"},{name:"Romania",id:"RO",dialCode:"+40",maxLength:9,flag:"\u{1F1F7}\u{1F1F4}"},{name:"Russia",id:"RU",dialCode:"+7",maxLength:10,flag:"\u{1F1F7}\u{1F1FA}"},{name:"Saudi Arabia",id:"SA",dialCode:"+966",maxLength:9,flag:"\u{1F1F8}\u{1F1E6}"},{name:"Serbia",id:"RS",dialCode:"+381",maxLength:9,flag:"\u{1F1F7}\u{1F1F8}"},{name:"Singapore",id:"SG",dialCode:"+65",maxLength:8,flag:"\u{1F1F8}\u{1F1EC}"},{name:"Slovakia",id:"SK",dialCode:"+421",maxLength:9,flag:"\u{1F1F8}\u{1F1F0}"},{name:"Slovenia",id:"SI",dialCode:"+386",maxLength:8,flag:"\u{1F1F8}\u{1F1EE}"},{name:"South Africa",id:"ZA",dialCode:"+27",maxLength:9,flag:"\u{1F1FF}\u{1F1E6}"},{name:"South Korea",id:"KR",dialCode:"+82",maxLength:10,flag:"\u{1F1F0}\u{1F1F7}"},{name:"Spain",id:"ES",dialCode:"+34",maxLength:9,flag:"\u{1F1EA}\u{1F1F8}"},{name:"Sri Lanka",id:"LK",dialCode:"+94",maxLength:9,flag:"\u{1F1F1}\u{1F1F0}"},{name:"Sweden",id:"SE",dialCode:"+46",maxLength:9,flag:"\u{1F1F8}\u{1F1EA}"},{name:"Switzerland",id:"CH",dialCode:"+41",maxLength:9,flag:"\u{1F1E8}\u{1F1ED}"},{name:"Syria",id:"SY",dialCode:"+963",maxLength:9,flag:"\u{1F1F8}\u{1F1FE}"},{name:"Taiwan",id:"TW",dialCode:"+886",maxLength:9,flag:"\u{1F1F9}\u{1F1FC}"},{name:"Thailand",id:"TH",dialCode:"+66",maxLength:9,flag:"\u{1F1F9}\u{1F1ED}"},{name:"Tunisia",id:"TN",dialCode:"+216",maxLength:8,flag:"\u{1F1F9}\u{1F1F3}"},{name:"Turkey",id:"TR",dialCode:"+90",maxLength:10,flag:"\u{1F1F9}\u{1F1F7}"},{name:"Ukraine",id:"UA",dialCode:"+380",maxLength:9,flag:"\u{1F1FA}\u{1F1E6}"},{name:"United Arab Emirates",id:"AE",dialCode:"+971",maxLength:9,flag:"\u{1F1E6}\u{1F1EA}"},{name:"United Kingdom",id:"GB",dialCode:"+44",maxLength:10,flag:"\u{1F1EC}\u{1F1E7}"},{name:"United States",id:"US",dialCode:"+1",maxLength:10,flag:"\u{1F1FA}\u{1F1F8}"},{name:"Uruguay",id:"UY",dialCode:"+598",maxLength:8,flag:"\u{1F1FA}\u{1F1FE}"},{name:"Uzbekistan",id:"UZ",dialCode:"+998",maxLength:9,flag:"\u{1F1FA}\u{1F1FF}"},{name:"Venezuela",id:"VE",dialCode:"+58",maxLength:10,flag:"\u{1F1FB}\u{1F1EA}"},{name:"Vietnam",id:"VN",dialCode:"+84",maxLength:9,flag:"\u{1F1FB}\u{1F1F3}"},{name:"Yemen",id:"YE",dialCode:"+967",maxLength:9,flag:"\u{1F1FE}\u{1F1EA}"}];var ve={xs:"h-6 text-xs",sm:"h-8 text-sm",md:"h-10 text-sm",lg:"h-11 text-base",xl:"h-12 text-lg"},Pe={xs:"text-xs",sm:"text-xs",md:"text-sm",lg:"text-sm",xl:"text-base"},Se={default:"rounded-md border border-border bg-surface shadow-sm focus-within:ring-2 focus-within:ring-primary/40 focus-within:border-primary transition-all duration-normal",filled:"rounded-md border border-transparent bg-surface-secondary focus-within:bg-surface focus-within:ring-2 focus-within:ring-primary/40 focus-within:border-primary transition-all duration-normal",flushed:"rounded-none border-0 border-b border-border bg-transparent focus-within:border-primary transition-all",unstyled:"border-0 bg-transparent p-0"},Ee={default:{default:"border-border focus-within:border-primary focus-within:ring-primary/40",filled:"focus-within:border-primary focus-within:ring-primary/40",flushed:"border-border focus-within:border-primary",unstyled:""},error:{default:"border-error focus-within:border-error focus-within:ring-error/20",filled:"bg-error/5 focus-within:border-error focus-within:ring-error/20",flushed:"border-error focus-within:border-error",unstyled:""},success:{default:"border-success focus-within:border-success focus-within:ring-success/20",filled:"bg-success/5 focus-within:border-success focus-within:ring-success/20",flushed:"border-success focus-within:border-success",unstyled:""},warning:{default:"border-warning focus-within:border-warning focus-within:ring-warning/20",filled:"bg-warning/5 border-warning focus-within:border-warning focus-within:ring-warning/20",flushed:"border-warning focus-within:border-warning",unstyled:""}},Ie={default:"text-text-muted",error:"text-error",success:"text-success",warning:"text-warning"},Re="cursor-not-allowed opacity-50 bg-surface-secondary [&_*]:cursor-not-allowed";function Ae(o,l,s,r){if(o==="error"&&l)return l;if(o==="success"&&s)return s;if(o==="warning"&&r)return r}var Be=react.forwardRef(function({label:l,required:s=false,helperText:r,errorMessage:Z,successMessage:F,warningMessage:j,variant:u="default",size:R="md",state:J="default",fullWidth:A=true,leftElement:B,rightElement:M,prefix:m,suffix:c,wrapperClassName:Q,inputGroupClassName:W,inputClassName:X,labelClassName:$,helperClassName:k,id:q,disabled:h,className:_,clearable:ee,isLoading:x,value:T,defaultValue:ae,onChange:z,showFlag:ne=true,defaultCountryCode:K="+91",autoComplete:te="tel",...de},ie){let oe=react.useId(),C=q??oe,H=`${C}-helper`,U=`${C}-state`,[V,N]=react.useState(null),[g,p]=react.useState(false),[v,P]=react.useState(""),S=react.useRef(null),[re,le]=react.useState(ae??{countryCode:K,phoneNumber:""}),O=T!==void 0,t=O?T:re,b=w.find(e=>e.dialCode===t.countryCode)??w[0],G=b?.maxLength??15,D=ee&&t.phoneNumber.length>0,se=B!==void 0,me=M!==void 0||!!D||!!x,f=V?"error":J,E=Ae(f,V??Z,F,j),ge=[r?H:null,E?U:null].filter(Boolean).join(" ")||void 0,L=e=>{O||le(e),z&&z(e);},fe=e=>{let d=e.target.value,I=d.replace(/\D/g,"");N(I!==d?"Only numbers are allowed":null),!(I.length>G)&&L({...t,phoneNumber:I});},ue=()=>{N(null),L({...t,phoneNumber:""});};react.useEffect(()=>{if(!g)return;let e=d=>{S.current&&!S.current.contains(d.target)&&p(false);};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e);}},[g]);let Y=w.filter(e=>e.name.toLowerCase().includes(v.toLowerCase())||e.dialCode.includes(v)),ce=()=>x?jsxRuntime.jsxs("svg",{className:"animate-spin h-4 w-4 text-text-muted",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[jsxRuntime.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),jsxRuntime.jsx("path",{className:"opacity-75",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"})]}):D?jsxRuntime.jsx("button",{type:"button",onClick:ue,disabled:h,className:"flex items-center justify-center rounded-full text-text-muted hover:text-text hover:bg-hover p-0.5 transition-all duration-fast disabled:cursor-not-allowed","aria-label":"Clear input",children:jsxRuntime.jsx(solid.XMarkIcon,{className:"w-4 h-4"})}):M,he=m!==void 0||u==="flushed"||u==="unstyled"?"":"rounded-l-md";return jsxRuntime.jsxs("div",{className:n("flex flex-col gap-1",A?"w-full":"w-fit",Q,_),children:[l!==void 0&&jsxRuntime.jsxs("label",{htmlFor:C,className:n("font-black leading-none text-text mb-2 uppercase tracking-widest",Pe[R],$),children:[l,s&&jsxRuntime.jsx("span",{"aria-hidden":"true",className:"ml-1 text-error",children:"*"})]}),jsxRuntime.jsxs("div",{className:n("flex items-stretch",A?"w-full":"w-fit",W),children:[m!==void 0&&jsxRuntime.jsx("span",{className:"inline-flex items-center rounded-l-md border border-r-0 border-border bg-surface-secondary px-3 text-sm text-text-secondary select-none",children:m}),jsxRuntime.jsxs("div",{ref:S,className:n("relative flex flex-1 items-stretch",ve[R],Se[u],Ee[f][u],h?Re:"",m!==void 0&&c!==void 0?"rounded-none":m!==void 0?"rounded-l-none":c!==void 0?"rounded-r-none":""),children:[jsxRuntime.jsxs("button",{type:"button",onClick:()=>{p(!g);},disabled:!!h||!!x,className:n("relative flex items-center justify-center flex-shrink-0 px-2 sm:px-3 text-text bg-surface-secondary border-r border-border hover:bg-hover active:bg-active transition-colors outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:z-10 disabled:cursor-not-allowed",he),children:[ne&&b&&jsxRuntime.jsx("span",{className:"mr-1.5 text-base sm:text-lg opacity-90",children:b.flag}),jsxRuntime.jsx("span",{className:"text-sm font-medium",children:b?.dialCode??K}),jsxRuntime.jsx(solid.ChevronDownIcon,{className:n("w-3.5 h-3.5 ml-1.5 text-text-secondary transition-transform",g&&"rotate-180")})]}),g&&jsxRuntime.jsxs("div",{className:"absolute top-full left-0 mt-1 w-64 rounded-md border border-border bg-surface p-1 shadow-lg z-dropdown flex flex-col animate-in fade-in zoom-in-95 duration-fast",children:[jsxRuntime.jsx("div",{className:"px-2 py-1.5 pb-2 sticky top-0 bg-surface z-10 border-b border-divider",children:jsxRuntime.jsx("input",{type:"text",placeholder:"Search country...",className:"w-full text-sm bg-transparent px-1 focus:outline-none text-text placeholder:text-text-muted",value:v,onChange:e=>{P(e.target.value);},onKeyDown:e=>{e.stopPropagation();}})}),jsxRuntime.jsx("ul",{role:"listbox",className:"max-h-56 overflow-y-auto overflow-x-hidden p-1 scrollbar-thin scrollbar-thumb-border scrollbar-track-transparent",children:Y.length>0?Y.map(e=>jsxRuntime.jsxs("li",{role:"option",tabIndex:0,"aria-selected":t.countryCode===e.dialCode,className:n("flex items-center px-2 py-1.5 text-sm rounded-sm cursor-pointer transition-colors outline-none focus:bg-hover active:bg-active",t.countryCode===e.dialCode?"bg-primary/10 text-primary font-medium":"text-text"),onKeyDown:d=>{(d.key==="Enter"||d.key===" ")&&(d.preventDefault(),L({...t,countryCode:e.dialCode}),p(false),P(""));},onClick:()=>{L({...t,countryCode:e.dialCode}),p(false),P("");},children:[jsxRuntime.jsx("span",{className:"mr-2 text-base",children:e.flag}),jsxRuntime.jsx("span",{className:"flex-1 truncate",children:e.name}),jsxRuntime.jsx("span",{className:n("text-xs ml-2",t.countryCode===e.dialCode?"text-primary/70":"text-text-muted"),children:e.dialCode})]},e.id)):jsxRuntime.jsx("li",{className:"px-2 py-3 text-center text-sm text-text-muted",children:"No countries found"})})]}),se&&jsxRuntime.jsx("div",{className:"flex items-center pl-3",children:jsxRuntime.jsx("span",{className:"text-text-secondary flex items-center justify-center",children:B})}),jsxRuntime.jsx("input",{ref:ie,...de,id:C,disabled:!!h||!!x,type:"tel",inputMode:"numeric",value:t.phoneNumber,onChange:fe,autoComplete:te,"aria-invalid":f==="error"?true:void 0,"aria-describedby":ge,"aria-required":s,maxLength:G,className:n("flex-1 w-full bg-transparent border-none outline-none focus:ring-0 focus:outline-none focus:border-none focus-visible:ring-0 focus-visible:outline-none px-3 min-w-0 transition-colors duration-150 disabled:cursor-not-allowed",X)}),me&&jsxRuntime.jsx("div",{className:"flex items-center pr-3",children:jsxRuntime.jsx("span",{className:"text-text-secondary flex items-center justify-center",children:ce()})})]}),c!==void 0&&jsxRuntime.jsx("span",{className:"inline-flex items-center rounded-r-md border border-l-0 border-border bg-surface-secondary px-3 text-sm text-text-secondary select-none",children:c})]}),r!==void 0&&jsxRuntime.jsx("p",{id:H,className:n("text-xs leading-tight text-text-muted",k),children:r}),E!==void 0&&jsxRuntime.jsx("p",{id:U,role:f==="error"?"alert":void 0,className:n("text-xs leading-tight mt-1",Ie[f],k),children:E})]})});Be.displayName="Phone";
|
|
2
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkB4OV5GRT_cjs = require('../chunk-B4OV5GRT.cjs');
|
|
4
|
+
require('../chunk-L5VQZZVR.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, "Phone", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunkB4OV5GRT_cjs.Phone; }
|
|
11
|
+
});
|
package/dist/phone/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {forwardRef,useId,useState,useRef,useEffect}from'react';import {ChevronDownIcon,XMarkIcon}from'@heroicons/react/20/solid';import {clsx}from'clsx';import {twMerge}from'tailwind-merge';import {jsxs,jsx}from'react/jsx-runtime';function n(...o){return twMerge(clsx(o))}var w=[{name:"Afghanistan",id:"AF",dialCode:"+93",maxLength:9,flag:"\u{1F1E6}\u{1F1EB}"},{name:"Albania",id:"AL",dialCode:"+355",maxLength:9,flag:"\u{1F1E6}\u{1F1F1}"},{name:"Algeria",id:"DZ",dialCode:"+213",maxLength:9,flag:"\u{1F1E9}\u{1F1FF}"},{name:"Andorra",id:"AD",dialCode:"+376",maxLength:6,flag:"\u{1F1E6}\u{1F1E9}"},{name:"Angola",id:"AO",dialCode:"+244",maxLength:9,flag:"\u{1F1E6}\u{1F1F4}"},{name:"Argentina",id:"AR",dialCode:"+54",maxLength:10,flag:"\u{1F1E6}\u{1F1F7}"},{name:"Armenia",id:"AM",dialCode:"+374",maxLength:8,flag:"\u{1F1E6}\u{1F1F2}"},{name:"Australia",id:"AU",dialCode:"+61",maxLength:9,flag:"\u{1F1E6}\u{1F1FA}"},{name:"Austria",id:"AT",dialCode:"+43",maxLength:13,flag:"\u{1F1E6}\u{1F1F9}"},{name:"Azerbaijan",id:"AZ",dialCode:"+994",maxLength:9,flag:"\u{1F1E6}\u{1F1FF}"},{name:"Bahrain",id:"BH",dialCode:"+973",maxLength:8,flag:"\u{1F1E7}\u{1F1ED}"},{name:"Bangladesh",id:"BD",dialCode:"+880",maxLength:10,flag:"\u{1F1E7}\u{1F1E9}"},{name:"Belarus",id:"BY",dialCode:"+375",maxLength:9,flag:"\u{1F1E7}\u{1F1FE}"},{name:"Belgium",id:"BE",dialCode:"+32",maxLength:9,flag:"\u{1F1E7}\u{1F1EA}"},{name:"Bolivia",id:"BO",dialCode:"+591",maxLength:8,flag:"\u{1F1E7}\u{1F1F4}"},{name:"Bosnia and Herzegovina",id:"BA",dialCode:"+387",maxLength:8,flag:"\u{1F1E7}\u{1F1E6}"},{name:"Brazil",id:"BR",dialCode:"+55",maxLength:11,flag:"\u{1F1E7}\u{1F1F7}"},{name:"Bulgaria",id:"BG",dialCode:"+359",maxLength:9,flag:"\u{1F1E7}\u{1F1EC}"},{name:"Cambodia",id:"KH",dialCode:"+855",maxLength:9,flag:"\u{1F1F0}\u{1F1ED}"},{name:"Canada",id:"CA",dialCode:"+1",maxLength:10,flag:"\u{1F1E8}\u{1F1E6}"},{name:"Chile",id:"CL",dialCode:"+56",maxLength:9,flag:"\u{1F1E8}\u{1F1F1}"},{name:"China",id:"CN",dialCode:"+86",maxLength:11,flag:"\u{1F1E8}\u{1F1F3}"},{name:"Colombia",id:"CO",dialCode:"+57",maxLength:10,flag:"\u{1F1E8}\u{1F1F4}"},{name:"Costa Rica",id:"CR",dialCode:"+506",maxLength:8,flag:"\u{1F1E8}\u{1F1F7}"},{name:"Croatia",id:"HR",dialCode:"+385",maxLength:9,flag:"\u{1F1ED}\u{1F1F7}"},{name:"Cuba",id:"CU",dialCode:"+53",maxLength:8,flag:"\u{1F1E8}\u{1F1FA}"},{name:"Cyprus",id:"CY",dialCode:"+357",maxLength:8,flag:"\u{1F1E8}\u{1F1FE}"},{name:"Czech Republic",id:"CZ",dialCode:"+420",maxLength:9,flag:"\u{1F1E8}\u{1F1FF}"},{name:"Denmark",id:"DK",dialCode:"+45",maxLength:8,flag:"\u{1F1E9}\u{1F1F0}"},{name:"Ecuador",id:"EC",dialCode:"+593",maxLength:9,flag:"\u{1F1EA}\u{1F1E8}"},{name:"Egypt",id:"EG",dialCode:"+20",maxLength:10,flag:"\u{1F1EA}\u{1F1EC}"},{name:"Estonia",id:"EE",dialCode:"+372",maxLength:8,flag:"\u{1F1EA}\u{1F1EA}"},{name:"Ethiopia",id:"ET",dialCode:"+251",maxLength:9,flag:"\u{1F1EA}\u{1F1F9}"},{name:"Finland",id:"FI",dialCode:"+358",maxLength:10,flag:"\u{1F1EB}\u{1F1EE}"},{name:"France",id:"FR",dialCode:"+33",maxLength:9,flag:"\u{1F1EB}\u{1F1F7}"},{name:"Georgia",id:"GE",dialCode:"+995",maxLength:9,flag:"\u{1F1EC}\u{1F1EA}"},{name:"Germany",id:"DE",dialCode:"+49",maxLength:11,flag:"\u{1F1E9}\u{1F1EA}"},{name:"Ghana",id:"GH",dialCode:"+233",maxLength:9,flag:"\u{1F1EC}\u{1F1ED}"},{name:"Greece",id:"GR",dialCode:"+30",maxLength:10,flag:"\u{1F1EC}\u{1F1F7}"},{name:"Guatemala",id:"GT",dialCode:"+502",maxLength:8,flag:"\u{1F1EC}\u{1F1F9}"},{name:"Hong Kong",id:"HK",dialCode:"+852",maxLength:8,flag:"\u{1F1ED}\u{1F1F0}"},{name:"Hungary",id:"HU",dialCode:"+36",maxLength:9,flag:"\u{1F1ED}\u{1F1FA}"},{name:"Iceland",id:"IS",dialCode:"+354",maxLength:7,flag:"\u{1F1EE}\u{1F1F8}"},{name:"India",id:"IN",dialCode:"+91",maxLength:10,flag:"\u{1F1EE}\u{1F1F3}"},{name:"Indonesia",id:"ID",dialCode:"+62",maxLength:12,flag:"\u{1F1EE}\u{1F1E9}"},{name:"Iran",id:"IR",dialCode:"+98",maxLength:10,flag:"\u{1F1EE}\u{1F1F7}"},{name:"Iraq",id:"IQ",dialCode:"+964",maxLength:10,flag:"\u{1F1EE}\u{1F1F6}"},{name:"Ireland",id:"IE",dialCode:"+353",maxLength:9,flag:"\u{1F1EE}\u{1F1EA}"},{name:"Israel",id:"IL",dialCode:"+972",maxLength:9,flag:"\u{1F1EE}\u{1F1F1}"},{name:"Italy",id:"IT",dialCode:"+39",maxLength:10,flag:"\u{1F1EE}\u{1F1F9}"},{name:"Japan",id:"JP",dialCode:"+81",maxLength:10,flag:"\u{1F1EF}\u{1F1F5}"},{name:"Jordan",id:"JO",dialCode:"+962",maxLength:9,flag:"\u{1F1EF}\u{1F1F4}"},{name:"Kazakhstan",id:"KZ",dialCode:"+7",maxLength:10,flag:"\u{1F1F0}\u{1F1FF}"},{name:"Kenya",id:"KE",dialCode:"+254",maxLength:9,flag:"\u{1F1F0}\u{1F1EA}"},{name:"Kuwait",id:"KW",dialCode:"+965",maxLength:8,flag:"\u{1F1F0}\u{1F1FC}"},{name:"Latvia",id:"LV",dialCode:"+371",maxLength:8,flag:"\u{1F1F1}\u{1F1FB}"},{name:"Lebanon",id:"LB",dialCode:"+961",maxLength:8,flag:"\u{1F1F1}\u{1F1E7}"},{name:"Lithuania",id:"LT",dialCode:"+370",maxLength:8,flag:"\u{1F1F1}\u{1F1F9}"},{name:"Luxembourg",id:"LU",dialCode:"+352",maxLength:9,flag:"\u{1F1F1}\u{1F1FA}"},{name:"Macau",id:"MO",dialCode:"+853",maxLength:8,flag:"\u{1F1F2}\u{1F1F4}"},{name:"Malaysia",id:"MY",dialCode:"+60",maxLength:10,flag:"\u{1F1F2}\u{1F1FE}"},{name:"Mexico",id:"MX",dialCode:"+52",maxLength:10,flag:"\u{1F1F2}\u{1F1FD}"},{name:"Morocco",id:"MA",dialCode:"+212",maxLength:9,flag:"\u{1F1F2}\u{1F1E6}"},{name:"Myanmar",id:"MM",dialCode:"+95",maxLength:9,flag:"\u{1F1F2}\u{1F1F2}"},{name:"Nepal",id:"NP",dialCode:"+977",maxLength:10,flag:"\u{1F1F3}\u{1F1F5}"},{name:"Netherlands",id:"NL",dialCode:"+31",maxLength:9,flag:"\u{1F1F3}\u{1F1F1}"},{name:"New Zealand",id:"NZ",dialCode:"+64",maxLength:9,flag:"\u{1F1F3}\u{1F1FF}"},{name:"Nigeria",id:"NG",dialCode:"+234",maxLength:10,flag:"\u{1F1F3}\u{1F1EC}"},{name:"Norway",id:"NO",dialCode:"+47",maxLength:8,flag:"\u{1F1F3}\u{1F1F4}"},{name:"Oman",id:"OM",dialCode:"+968",maxLength:8,flag:"\u{1F1F4}\u{1F1F2}"},{name:"Pakistan",id:"PK",dialCode:"+92",maxLength:10,flag:"\u{1F1F5}\u{1F1F0}"},{name:"Panama",id:"PA",dialCode:"+507",maxLength:8,flag:"\u{1F1F5}\u{1F1E6}"},{name:"Paraguay",id:"PY",dialCode:"+595",maxLength:9,flag:"\u{1F1F5}\u{1F1FE}"},{name:"Peru",id:"PE",dialCode:"+51",maxLength:9,flag:"\u{1F1F5}\u{1F1EA}"},{name:"Philippines",id:"PH",dialCode:"+63",maxLength:10,flag:"\u{1F1F5}\u{1F1ED}"},{name:"Poland",id:"PL",dialCode:"+48",maxLength:9,flag:"\u{1F1F5}\u{1F1F1}"},{name:"Portugal",id:"PT",dialCode:"+351",maxLength:9,flag:"\u{1F1F5}\u{1F1F9}"},{name:"Qatar",id:"QA",dialCode:"+974",maxLength:8,flag:"\u{1F1F6}\u{1F1E6}"},{name:"Romania",id:"RO",dialCode:"+40",maxLength:9,flag:"\u{1F1F7}\u{1F1F4}"},{name:"Russia",id:"RU",dialCode:"+7",maxLength:10,flag:"\u{1F1F7}\u{1F1FA}"},{name:"Saudi Arabia",id:"SA",dialCode:"+966",maxLength:9,flag:"\u{1F1F8}\u{1F1E6}"},{name:"Serbia",id:"RS",dialCode:"+381",maxLength:9,flag:"\u{1F1F7}\u{1F1F8}"},{name:"Singapore",id:"SG",dialCode:"+65",maxLength:8,flag:"\u{1F1F8}\u{1F1EC}"},{name:"Slovakia",id:"SK",dialCode:"+421",maxLength:9,flag:"\u{1F1F8}\u{1F1F0}"},{name:"Slovenia",id:"SI",dialCode:"+386",maxLength:8,flag:"\u{1F1F8}\u{1F1EE}"},{name:"South Africa",id:"ZA",dialCode:"+27",maxLength:9,flag:"\u{1F1FF}\u{1F1E6}"},{name:"South Korea",id:"KR",dialCode:"+82",maxLength:10,flag:"\u{1F1F0}\u{1F1F7}"},{name:"Spain",id:"ES",dialCode:"+34",maxLength:9,flag:"\u{1F1EA}\u{1F1F8}"},{name:"Sri Lanka",id:"LK",dialCode:"+94",maxLength:9,flag:"\u{1F1F1}\u{1F1F0}"},{name:"Sweden",id:"SE",dialCode:"+46",maxLength:9,flag:"\u{1F1F8}\u{1F1EA}"},{name:"Switzerland",id:"CH",dialCode:"+41",maxLength:9,flag:"\u{1F1E8}\u{1F1ED}"},{name:"Syria",id:"SY",dialCode:"+963",maxLength:9,flag:"\u{1F1F8}\u{1F1FE}"},{name:"Taiwan",id:"TW",dialCode:"+886",maxLength:9,flag:"\u{1F1F9}\u{1F1FC}"},{name:"Thailand",id:"TH",dialCode:"+66",maxLength:9,flag:"\u{1F1F9}\u{1F1ED}"},{name:"Tunisia",id:"TN",dialCode:"+216",maxLength:8,flag:"\u{1F1F9}\u{1F1F3}"},{name:"Turkey",id:"TR",dialCode:"+90",maxLength:10,flag:"\u{1F1F9}\u{1F1F7}"},{name:"Ukraine",id:"UA",dialCode:"+380",maxLength:9,flag:"\u{1F1FA}\u{1F1E6}"},{name:"United Arab Emirates",id:"AE",dialCode:"+971",maxLength:9,flag:"\u{1F1E6}\u{1F1EA}"},{name:"United Kingdom",id:"GB",dialCode:"+44",maxLength:10,flag:"\u{1F1EC}\u{1F1E7}"},{name:"United States",id:"US",dialCode:"+1",maxLength:10,flag:"\u{1F1FA}\u{1F1F8}"},{name:"Uruguay",id:"UY",dialCode:"+598",maxLength:8,flag:"\u{1F1FA}\u{1F1FE}"},{name:"Uzbekistan",id:"UZ",dialCode:"+998",maxLength:9,flag:"\u{1F1FA}\u{1F1FF}"},{name:"Venezuela",id:"VE",dialCode:"+58",maxLength:10,flag:"\u{1F1FB}\u{1F1EA}"},{name:"Vietnam",id:"VN",dialCode:"+84",maxLength:9,flag:"\u{1F1FB}\u{1F1F3}"},{name:"Yemen",id:"YE",dialCode:"+967",maxLength:9,flag:"\u{1F1FE}\u{1F1EA}"}];var ve={xs:"h-6 text-xs",sm:"h-8 text-sm",md:"h-10 text-sm",lg:"h-11 text-base",xl:"h-12 text-lg"},Pe={xs:"text-xs",sm:"text-xs",md:"text-sm",lg:"text-sm",xl:"text-base"},Se={default:"rounded-md border border-border bg-surface shadow-sm focus-within:ring-2 focus-within:ring-primary/40 focus-within:border-primary transition-all duration-normal",filled:"rounded-md border border-transparent bg-surface-secondary focus-within:bg-surface focus-within:ring-2 focus-within:ring-primary/40 focus-within:border-primary transition-all duration-normal",flushed:"rounded-none border-0 border-b border-border bg-transparent focus-within:border-primary transition-all",unstyled:"border-0 bg-transparent p-0"},Ee={default:{default:"border-border focus-within:border-primary focus-within:ring-primary/40",filled:"focus-within:border-primary focus-within:ring-primary/40",flushed:"border-border focus-within:border-primary",unstyled:""},error:{default:"border-error focus-within:border-error focus-within:ring-error/20",filled:"bg-error/5 focus-within:border-error focus-within:ring-error/20",flushed:"border-error focus-within:border-error",unstyled:""},success:{default:"border-success focus-within:border-success focus-within:ring-success/20",filled:"bg-success/5 focus-within:border-success focus-within:ring-success/20",flushed:"border-success focus-within:border-success",unstyled:""},warning:{default:"border-warning focus-within:border-warning focus-within:ring-warning/20",filled:"bg-warning/5 border-warning focus-within:border-warning focus-within:ring-warning/20",flushed:"border-warning focus-within:border-warning",unstyled:""}},Ie={default:"text-text-muted",error:"text-error",success:"text-success",warning:"text-warning"},Re="cursor-not-allowed opacity-50 bg-surface-secondary [&_*]:cursor-not-allowed";function Ae(o,l,s,r){if(o==="error"&&l)return l;if(o==="success"&&s)return s;if(o==="warning"&&r)return r}var Be=forwardRef(function({label:l,required:s=false,helperText:r,errorMessage:Z,successMessage:F,warningMessage:j,variant:u="default",size:R="md",state:J="default",fullWidth:A=true,leftElement:B,rightElement:M,prefix:m,suffix:c,wrapperClassName:Q,inputGroupClassName:W,inputClassName:X,labelClassName:$,helperClassName:k,id:q,disabled:h,className:_,clearable:ee,isLoading:x,value:T,defaultValue:ae,onChange:z,showFlag:ne=true,defaultCountryCode:K="+91",autoComplete:te="tel",...de},ie){let oe=useId(),C=q??oe,H=`${C}-helper`,U=`${C}-state`,[V,N]=useState(null),[g,p]=useState(false),[v,P]=useState(""),S=useRef(null),[re,le]=useState(ae??{countryCode:K,phoneNumber:""}),O=T!==void 0,t=O?T:re,b=w.find(e=>e.dialCode===t.countryCode)??w[0],G=b?.maxLength??15,D=ee&&t.phoneNumber.length>0,se=B!==void 0,me=M!==void 0||!!D||!!x,f=V?"error":J,E=Ae(f,V??Z,F,j),ge=[r?H:null,E?U:null].filter(Boolean).join(" ")||void 0,L=e=>{O||le(e),z&&z(e);},fe=e=>{let d=e.target.value,I=d.replace(/\D/g,"");N(I!==d?"Only numbers are allowed":null),!(I.length>G)&&L({...t,phoneNumber:I});},ue=()=>{N(null),L({...t,phoneNumber:""});};useEffect(()=>{if(!g)return;let e=d=>{S.current&&!S.current.contains(d.target)&&p(false);};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e);}},[g]);let Y=w.filter(e=>e.name.toLowerCase().includes(v.toLowerCase())||e.dialCode.includes(v)),ce=()=>x?jsxs("svg",{className:"animate-spin h-4 w-4 text-text-muted",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),jsx("path",{className:"opacity-75",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"})]}):D?jsx("button",{type:"button",onClick:ue,disabled:h,className:"flex items-center justify-center rounded-full text-text-muted hover:text-text hover:bg-hover p-0.5 transition-all duration-fast disabled:cursor-not-allowed","aria-label":"Clear input",children:jsx(XMarkIcon,{className:"w-4 h-4"})}):M,he=m!==void 0||u==="flushed"||u==="unstyled"?"":"rounded-l-md";return jsxs("div",{className:n("flex flex-col gap-1",A?"w-full":"w-fit",Q,_),children:[l!==void 0&&jsxs("label",{htmlFor:C,className:n("font-black leading-none text-text mb-2 uppercase tracking-widest",Pe[R],$),children:[l,s&&jsx("span",{"aria-hidden":"true",className:"ml-1 text-error",children:"*"})]}),jsxs("div",{className:n("flex items-stretch",A?"w-full":"w-fit",W),children:[m!==void 0&&jsx("span",{className:"inline-flex items-center rounded-l-md border border-r-0 border-border bg-surface-secondary px-3 text-sm text-text-secondary select-none",children:m}),jsxs("div",{ref:S,className:n("relative flex flex-1 items-stretch",ve[R],Se[u],Ee[f][u],h?Re:"",m!==void 0&&c!==void 0?"rounded-none":m!==void 0?"rounded-l-none":c!==void 0?"rounded-r-none":""),children:[jsxs("button",{type:"button",onClick:()=>{p(!g);},disabled:!!h||!!x,className:n("relative flex items-center justify-center flex-shrink-0 px-2 sm:px-3 text-text bg-surface-secondary border-r border-border hover:bg-hover active:bg-active transition-colors outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:z-10 disabled:cursor-not-allowed",he),children:[ne&&b&&jsx("span",{className:"mr-1.5 text-base sm:text-lg opacity-90",children:b.flag}),jsx("span",{className:"text-sm font-medium",children:b?.dialCode??K}),jsx(ChevronDownIcon,{className:n("w-3.5 h-3.5 ml-1.5 text-text-secondary transition-transform",g&&"rotate-180")})]}),g&&jsxs("div",{className:"absolute top-full left-0 mt-1 w-64 rounded-md border border-border bg-surface p-1 shadow-lg z-dropdown flex flex-col animate-in fade-in zoom-in-95 duration-fast",children:[jsx("div",{className:"px-2 py-1.5 pb-2 sticky top-0 bg-surface z-10 border-b border-divider",children:jsx("input",{type:"text",placeholder:"Search country...",className:"w-full text-sm bg-transparent px-1 focus:outline-none text-text placeholder:text-text-muted",value:v,onChange:e=>{P(e.target.value);},onKeyDown:e=>{e.stopPropagation();}})}),jsx("ul",{role:"listbox",className:"max-h-56 overflow-y-auto overflow-x-hidden p-1 scrollbar-thin scrollbar-thumb-border scrollbar-track-transparent",children:Y.length>0?Y.map(e=>jsxs("li",{role:"option",tabIndex:0,"aria-selected":t.countryCode===e.dialCode,className:n("flex items-center px-2 py-1.5 text-sm rounded-sm cursor-pointer transition-colors outline-none focus:bg-hover active:bg-active",t.countryCode===e.dialCode?"bg-primary/10 text-primary font-medium":"text-text"),onKeyDown:d=>{(d.key==="Enter"||d.key===" ")&&(d.preventDefault(),L({...t,countryCode:e.dialCode}),p(false),P(""));},onClick:()=>{L({...t,countryCode:e.dialCode}),p(false),P("");},children:[jsx("span",{className:"mr-2 text-base",children:e.flag}),jsx("span",{className:"flex-1 truncate",children:e.name}),jsx("span",{className:n("text-xs ml-2",t.countryCode===e.dialCode?"text-primary/70":"text-text-muted"),children:e.dialCode})]},e.id)):jsx("li",{className:"px-2 py-3 text-center text-sm text-text-muted",children:"No countries found"})})]}),se&&jsx("div",{className:"flex items-center pl-3",children:jsx("span",{className:"text-text-secondary flex items-center justify-center",children:B})}),jsx("input",{ref:ie,...de,id:C,disabled:!!h||!!x,type:"tel",inputMode:"numeric",value:t.phoneNumber,onChange:fe,autoComplete:te,"aria-invalid":f==="error"?true:void 0,"aria-describedby":ge,"aria-required":s,maxLength:G,className:n("flex-1 w-full bg-transparent border-none outline-none focus:ring-0 focus:outline-none focus:border-none focus-visible:ring-0 focus-visible:outline-none px-3 min-w-0 transition-colors duration-150 disabled:cursor-not-allowed",X)}),me&&jsx("div",{className:"flex items-center pr-3",children:jsx("span",{className:"text-text-secondary flex items-center justify-center",children:ce()})})]}),c!==void 0&&jsx("span",{className:"inline-flex items-center rounded-r-md border border-l-0 border-border bg-surface-secondary px-3 text-sm text-text-secondary select-none",children:c})]}),r!==void 0&&jsx("p",{id:H,className:n("text-xs leading-tight text-text-muted",k),children:r}),E!==void 0&&jsx("p",{id:U,role:f==="error"?"alert":void 0,className:n("text-xs leading-tight mt-1",Ie[f],k),children:E})]})});Be.displayName="Phone";
|
|
2
|
-
|
|
1
|
+
export { Phone } from '../chunk-CBA54EY4.mjs';
|
|
2
|
+
import '../chunk-OCPFOFJ4.mjs';
|
|
@@ -1 +1,11 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkVRZFAKSV_cjs = require('../chunk-VRZFAKSV.cjs');
|
|
4
|
+
require('../chunk-L5VQZZVR.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, "RadioButton", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunkVRZFAKSV_cjs.RadioButton; }
|
|
11
|
+
});
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
export { RadioButton } from '../chunk-DN2GFJF4.mjs';
|
|
2
|
+
import '../chunk-OCPFOFJ4.mjs';
|
|
@@ -1,2 +1,12 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk7DDDQ3RH_cjs = require('../chunk-7DDDQ3RH.cjs');
|
|
4
|
+
require('../chunk-XFNRKHHF.cjs');
|
|
5
|
+
require('../chunk-L5VQZZVR.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "SearchInput", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return chunk7DDDQ3RH_cjs.SearchInput; }
|
|
12
|
+
});
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export { SearchInput } from '../chunk-VHVFRWF5.mjs';
|
|
2
|
+
import '../chunk-CMER5LO3.mjs';
|
|
3
|
+
import '../chunk-OCPFOFJ4.mjs';
|
package/dist/select/index.cjs
CHANGED
|
@@ -1,2 +1,11 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk7R5JRJ2W_cjs = require('../chunk-7R5JRJ2W.cjs');
|
|
4
|
+
require('../chunk-L5VQZZVR.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, "Select", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunk7R5JRJ2W_cjs.Select; }
|
|
11
|
+
});
|
package/dist/select/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export { Select } from '../chunk-TIVSMCXZ.mjs';
|
|
2
|
+
import '../chunk-OCPFOFJ4.mjs';
|
package/dist/sidebar/index.cjs
CHANGED
|
@@ -1 +1,11 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkQ3IFXFFD_cjs = require('../chunk-Q3IFXFFD.cjs');
|
|
4
|
+
require('../chunk-L5VQZZVR.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, "Sidebar", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunkQ3IFXFFD_cjs.Sidebar; }
|
|
11
|
+
});
|