@app-studio/components 0.11.13 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -1
- package/compiler/vite.d.mts +5 -0
- package/compiler/vite.mjs +190 -0
- package/dist/alert.cjs.js +2 -0
- package/dist/alert.cjs.js.map +1 -0
- package/dist/alert.esm.d.mts +1 -0
- package/dist/alert.esm.mjs +5 -0
- package/dist/alert.esm.mjs.map +1 -0
- package/dist/avatar.cjs.js +2 -0
- package/dist/avatar.cjs.js.map +1 -0
- package/dist/avatar.esm.d.mts +1 -0
- package/dist/avatar.esm.mjs +5 -0
- package/dist/avatar.esm.mjs.map +1 -0
- package/dist/button.cjs.js +2 -0
- package/dist/button.cjs.js.map +1 -0
- package/dist/button.esm.d.mts +1 -0
- package/dist/button.esm.mjs +5 -0
- package/dist/button.esm.mjs.map +1 -0
- package/dist/card.cjs.js +2 -0
- package/dist/card.cjs.js.map +1 -0
- package/dist/card.esm.d.mts +1 -0
- package/dist/card.esm.mjs +5 -0
- package/dist/card.esm.mjs.map +1 -0
- package/dist/checkbox.cjs.js +2 -0
- package/dist/checkbox.cjs.js.map +1 -0
- package/dist/checkbox.esm.d.mts +1 -0
- package/dist/checkbox.esm.mjs +5 -0
- package/dist/checkbox.esm.mjs.map +1 -0
- package/dist/chunks/Alert-Bjl40k3x.cjs +2 -0
- package/dist/chunks/Alert-Bjl40k3x.cjs.map +1 -0
- package/dist/chunks/Alert-Q1HlVX8f.mjs +179 -0
- package/dist/chunks/Alert-Q1HlVX8f.mjs.map +1 -0
- package/dist/chunks/AttachmentPreview-8d8gZ5kk.mjs +7777 -0
- package/dist/chunks/AttachmentPreview-8d8gZ5kk.mjs.map +1 -0
- package/dist/chunks/AttachmentPreview-Bwrz5TJh.cjs +2 -0
- package/dist/chunks/AttachmentPreview-Bwrz5TJh.cjs.map +1 -0
- package/dist/chunks/Avatar-BB0DeN9j.cjs +2 -0
- package/dist/chunks/Avatar-BB0DeN9j.cjs.map +1 -0
- package/dist/chunks/Avatar-D-GkyL2c.mjs +103 -0
- package/dist/chunks/Avatar-D-GkyL2c.mjs.map +1 -0
- package/dist/chunks/Button.core-Bc5cSn_z.mjs +717 -0
- package/dist/chunks/Button.core-Bc5cSn_z.mjs.map +1 -0
- package/dist/chunks/Button.core-BhtOm8ak.cjs +7 -0
- package/dist/chunks/Button.core-BhtOm8ak.cjs.map +1 -0
- package/dist/chunks/Button.pilot-C4BIb08S.mjs +6 -0
- package/dist/chunks/Button.pilot-C4BIb08S.mjs.map +1 -0
- package/dist/chunks/Button.pilot-JmR2DCSE.cjs +2 -0
- package/dist/chunks/Button.pilot-JmR2DCSE.cjs.map +1 -0
- package/dist/chunks/Card-CNSl9fD5.cjs +2 -0
- package/dist/chunks/Card-CNSl9fD5.cjs.map +1 -0
- package/dist/chunks/Card-DMhV_NTt.mjs +200 -0
- package/dist/chunks/Card-DMhV_NTt.mjs.map +1 -0
- package/dist/chunks/Checkbox-Bo7IRVRE.mjs +11 -0
- package/dist/chunks/Checkbox-Bo7IRVRE.mjs.map +1 -0
- package/dist/chunks/Checkbox-CAI6RtuO.cjs +2 -0
- package/dist/chunks/Checkbox-CAI6RtuO.cjs.map +1 -0
- package/dist/chunks/Checkbox.view-DGdNPlF9.cjs +2 -0
- package/dist/chunks/Checkbox.view-DGdNPlF9.cjs.map +1 -0
- package/dist/chunks/Checkbox.view-dhc-rfEX.mjs +308 -0
- package/dist/chunks/Checkbox.view-dhc-rfEX.mjs.map +1 -0
- package/dist/chunks/FieldWrapper-Bb0j8Iog.mjs +252 -0
- package/dist/chunks/FieldWrapper-Bb0j8Iog.mjs.map +1 -0
- package/dist/chunks/FieldWrapper-DRCn7BLi.cjs +2 -0
- package/dist/chunks/FieldWrapper-DRCn7BLi.cjs.map +1 -0
- package/dist/chunks/FixedIcons-Dz_f-yDL.cjs +2 -0
- package/dist/chunks/FixedIcons-Dz_f-yDL.cjs.map +1 -0
- package/dist/chunks/FixedIcons-fxASFYew.mjs +37 -0
- package/dist/chunks/FixedIcons-fxASFYew.mjs.map +1 -0
- package/dist/chunks/Formik.Uploader-D0nzjyau.cjs +22 -0
- package/dist/chunks/Formik.Uploader-D0nzjyau.cjs.map +1 -0
- package/dist/chunks/Formik.Uploader-DRIyxMI0.mjs +6962 -0
- package/dist/chunks/Formik.Uploader-DRIyxMI0.mjs.map +1 -0
- package/dist/chunks/Icon-C37alecH.cjs +2 -0
- package/dist/chunks/Icon-C37alecH.cjs.map +1 -0
- package/dist/chunks/Icon-DrAZswNH.mjs +148 -0
- package/dist/chunks/Icon-DrAZswNH.mjs.map +1 -0
- package/dist/chunks/Icon.frame-COrb0u94.mjs +29 -0
- package/dist/chunks/Icon.frame-COrb0u94.mjs.map +1 -0
- package/dist/chunks/Icon.frame-DD6ycsWD.cjs +2 -0
- package/dist/chunks/Icon.frame-DD6ycsWD.cjs.map +1 -0
- package/dist/chunks/Label-BVEAujj2.mjs +83 -0
- package/dist/chunks/Label-BVEAujj2.mjs.map +1 -0
- package/dist/chunks/Label-Bd0TpfkG.cjs +2 -0
- package/dist/chunks/Label-Bd0TpfkG.cjs.map +1 -0
- package/dist/chunks/Loader-4V81BN95.cjs +2 -0
- package/dist/chunks/Loader-4V81BN95.cjs.map +1 -0
- package/dist/chunks/Loader-DMLQky1k.mjs +171 -0
- package/dist/chunks/Loader-DMLQky1k.mjs.map +1 -0
- package/dist/chunks/Modal-DkckCT8-.mjs +339 -0
- package/dist/chunks/Modal-DkckCT8-.mjs.map +1 -0
- package/dist/chunks/Modal-zok954As.cjs +2 -0
- package/dist/chunks/Modal-zok954As.cjs.map +1 -0
- package/dist/chunks/Router-DjmVh9pK.cjs +2 -0
- package/dist/chunks/Router-DjmVh9pK.cjs.map +1 -0
- package/dist/chunks/Router-Dtb8HvI0.mjs +76 -0
- package/dist/chunks/Router-Dtb8HvI0.mjs.map +1 -0
- package/dist/chunks/Router.store-Bxe2uZWk.cjs +2 -0
- package/dist/chunks/Router.store-Bxe2uZWk.cjs.map +1 -0
- package/dist/chunks/Router.store-C0zWd45T.mjs +27 -0
- package/dist/chunks/Router.store-C0zWd45T.mjs.map +1 -0
- package/dist/chunks/Select-C6R0Tei-.cjs +2 -0
- package/dist/chunks/Select-C6R0Tei-.cjs.map +1 -0
- package/dist/chunks/Select-C7IBNyjR.mjs +24 -0
- package/dist/chunks/Select-C7IBNyjR.mjs.map +1 -0
- package/dist/chunks/Select.view-CPMqT8pn.mjs +659 -0
- package/dist/chunks/Select.view-CPMqT8pn.mjs.map +1 -0
- package/dist/chunks/Select.view-Pq1yAcMm.cjs +2 -0
- package/dist/chunks/Select.view-Pq1yAcMm.cjs.map +1 -0
- package/dist/chunks/Switch-D80yPNFV.cjs +2 -0
- package/dist/chunks/Switch-D80yPNFV.cjs.map +1 -0
- package/dist/chunks/Switch-DWx1g3jT.mjs +11 -0
- package/dist/chunks/Switch-DWx1g3jT.mjs.map +1 -0
- package/dist/chunks/Switch.view-CQZO_Js7.cjs +2 -0
- package/dist/chunks/Switch.view-CQZO_Js7.cjs.map +1 -0
- package/dist/chunks/Switch.view-QLZ7O5Z7.mjs +315 -0
- package/dist/chunks/Switch.view-QLZ7O5Z7.mjs.map +1 -0
- package/dist/chunks/Tabs-D5chMrkE.mjs +403 -0
- package/dist/chunks/Tabs-D5chMrkE.mjs.map +1 -0
- package/dist/chunks/Tabs-DQeBJwkz.cjs +2 -0
- package/dist/chunks/Tabs-DQeBJwkz.cjs.map +1 -0
- package/dist/chunks/TextField-DOU2CL5J.mjs +266 -0
- package/dist/chunks/TextField-DOU2CL5J.mjs.map +1 -0
- package/dist/chunks/TextField-Da4JCcAU.cjs +2 -0
- package/dist/chunks/TextField-Da4JCcAU.cjs.map +1 -0
- package/dist/chunks/default-D7ePSMKP.cjs +2 -0
- package/dist/chunks/default-D7ePSMKP.cjs.map +1 -0
- package/dist/chunks/default-nRKhMTzF.mjs +610 -0
- package/dist/chunks/default-nRKhMTzF.mjs.map +1 -0
- package/dist/chunks/designSystem.page-B74Vm2Dt.cjs +11 -0
- package/dist/chunks/designSystem.page-B74Vm2Dt.cjs.map +1 -0
- package/dist/chunks/designSystem.page-K0ajTvy7.mjs +13119 -0
- package/dist/chunks/designSystem.page-K0ajTvy7.mjs.map +1 -0
- package/dist/design-system-preview.cjs.js +2 -0
- package/dist/design-system-preview.cjs.js.map +1 -0
- package/dist/design-system-preview.esm.d.mts +1 -0
- package/dist/design-system-preview.esm.mjs +30 -0
- package/dist/design-system-preview.esm.mjs.map +1 -0
- package/dist/formik.cjs.js +2 -0
- package/dist/formik.cjs.js.map +1 -0
- package/dist/formik.esm.d.mts +1 -0
- package/dist/formik.esm.mjs +28 -0
- package/dist/formik.esm.mjs.map +1 -0
- package/dist/link.cjs.js +2 -0
- package/dist/link.cjs.js.map +1 -0
- package/dist/link.esm.d.mts +1 -0
- package/dist/link.esm.mjs +78 -0
- package/dist/link.esm.mjs.map +1 -0
- package/dist/modal.cjs.js +2 -0
- package/dist/modal.cjs.js.map +1 -0
- package/dist/modal.esm.d.mts +1 -0
- package/dist/modal.esm.mjs +10 -0
- package/dist/modal.esm.mjs.map +1 -0
- package/dist/native/components/Accordion/Accordion/Accordion.view.js +1 -1
- package/dist/native/components/Accordion/Accordion/Accordion.view.js.map +1 -1
- package/dist/native/components/Accordion/Accordion/Accordion.view.native.js +1 -1
- package/dist/native/components/Accordion/Accordion/Accordion.view.native.js.map +1 -1
- package/dist/native/components/Accordion/Accordion.js +1 -1
- package/dist/native/components/Accordion/Accordion.js.map +1 -1
- package/dist/native/components/ActionSheet/ActionSheet/ActionSheet.view.native.js +1 -1
- package/dist/native/components/ActionSheet/ActionSheet/ActionSheet.view.native.js.map +1 -1
- package/dist/native/components/Alert/Alert/Alert.view.js +1 -1
- package/dist/native/components/Alert/Alert/Alert.view.js.map +1 -1
- package/dist/native/components/Alert/Alert/Alert.view.native.js +9 -2
- package/dist/native/components/Alert/Alert/Alert.view.native.js.map +1 -1
- package/dist/native/components/Alert/Alert.js +1 -1
- package/dist/native/components/Alert/Alert.js.map +1 -1
- package/dist/native/components/Avatar/Avatar.js +1 -1
- package/dist/native/components/Avatar/Avatar.js.map +1 -1
- package/dist/native/components/Badge/Badge.js +1 -1
- package/dist/native/components/Badge/Badge.js.map +1 -1
- package/dist/native/components/Button/Button/Button.style.js.map +1 -1
- package/dist/native/components/Button/Button/Button.view.d.ts +4 -1
- package/dist/native/components/Button/Button/Button.view.js +7 -5
- package/dist/native/components/Button/Button/Button.view.js.map +1 -1
- package/dist/native/components/Button/Button/Button.view.native.d.ts +4 -1
- package/dist/native/components/Button/Button/Button.view.native.js +14 -4
- package/dist/native/components/Button/Button/Button.view.native.js.map +1 -1
- package/dist/native/components/Button/Button.core.d.ts +4 -0
- package/dist/native/components/Button/Button.core.js +39 -0
- package/dist/native/components/Button/Button.core.js.map +1 -0
- package/dist/native/components/Button/Button.d.ts +1 -3
- package/dist/native/components/Button/Button.js +3 -36
- package/dist/native/components/Button/Button.js.map +1 -1
- package/dist/native/components/Button/Button.pilot.d.ts +2 -0
- package/dist/native/components/Button/Button.pilot.js +3 -0
- package/dist/native/components/Button/Button.pilot.js.map +1 -0
- package/dist/native/components/Card/Card.js +1 -1
- package/dist/native/components/Card/Card.js.map +1 -1
- package/dist/native/components/Form/Checkbox/Checkbox/Checkbox.view.js +1 -1
- package/dist/native/components/Form/Checkbox/Checkbox/Checkbox.view.js.map +1 -1
- package/dist/native/components/Form/Checkbox/Checkbox/Checkbox.view.native.js +1 -1
- package/dist/native/components/Form/Checkbox/Checkbox/Checkbox.view.native.js.map +1 -1
- package/dist/native/components/Form/Checkbox/Checkbox.js +1 -1
- package/dist/native/components/Form/Checkbox/Checkbox.js.map +1 -1
- package/dist/native/components/Form/Radio/Radio.js +1 -1
- package/dist/native/components/Form/Radio/Radio.js.map +1 -1
- package/dist/native/components/Form/Select/Select/Select.view.js +1 -1
- package/dist/native/components/Form/Select/Select/Select.view.js.map +1 -1
- package/dist/native/components/Form/Select/Select/Select.view.native.js +2 -2
- package/dist/native/components/Form/Select/Select/Select.view.native.js.map +1 -1
- package/dist/native/components/Form/Select/Select.js +1 -1
- package/dist/native/components/Form/Select/Select.js.map +1 -1
- package/dist/native/components/Form/Switch/Switch.js +1 -1
- package/dist/native/components/Form/Switch/Switch.js.map +1 -1
- package/dist/native/components/Form/TextArea/TextArea.js +1 -1
- package/dist/native/components/Form/TextArea/TextArea.js.map +1 -1
- package/dist/native/components/Form/TextField/TextField/TextField.view.js +1 -1
- package/dist/native/components/Form/TextField/TextField/TextField.view.js.map +1 -1
- package/dist/native/components/Form/TextField/TextField/TextField.view.native.js +5 -9
- package/dist/native/components/Form/TextField/TextField/TextField.view.native.js.map +1 -1
- package/dist/native/components/Form/TextField/TextField.js +1 -1
- package/dist/native/components/Form/TextField/TextField.js.map +1 -1
- package/dist/native/components/Icon/FixedIcons.d.ts +10 -0
- package/dist/native/components/Icon/FixedIcons.js +23 -0
- package/dist/native/components/Icon/FixedIcons.js.map +1 -0
- package/dist/native/components/Icon/FixedIcons.native.d.ts +17 -0
- package/dist/native/components/Icon/FixedIcons.native.js +30 -0
- package/dist/native/components/Icon/FixedIcons.native.js.map +1 -0
- package/dist/native/components/Icon/Icon.d.ts +2 -12
- package/dist/native/components/Icon/Icon.frame.d.ts +14 -0
- package/dist/native/components/Icon/Icon.frame.js +17 -0
- package/dist/native/components/Icon/Icon.frame.js.map +1 -0
- package/dist/native/components/Icon/Icon.js +11 -23
- package/dist/native/components/Icon/Icon.js.map +1 -1
- package/dist/native/components/Loader/Loader.js +1 -1
- package/dist/native/components/Loader/Loader.js.map +1 -1
- package/dist/native/components/Modal/Modal/Modal.props.d.ts +3 -0
- package/dist/native/components/Modal/Modal/Modal.view.js +45 -14
- package/dist/native/components/Modal/Modal/Modal.view.js.map +1 -1
- package/dist/native/components/Modal/Modal/Modal.view.native.js +2 -2
- package/dist/native/components/Modal/Modal/Modal.view.native.js.map +1 -1
- package/dist/native/components/NavigationMenu/NavigationMenu.js +1 -1
- package/dist/native/components/NavigationMenu/NavigationMenu.js.map +1 -1
- package/dist/native/components/PageHeader/PageHeader.js +1 -1
- package/dist/native/components/PageHeader/PageHeader.js.map +1 -1
- package/dist/native/components/ProgressBar/ProgressBar.js +1 -1
- package/dist/native/components/ProgressBar/ProgressBar.js.map +1 -1
- package/dist/native/components/Separator/Separator.js +1 -1
- package/dist/native/components/Separator/Separator.js.map +1 -1
- package/dist/native/components/Slider/Slider.js +1 -1
- package/dist/native/components/Slider/Slider.js.map +1 -1
- package/dist/native/components/StatePanel/StatePanel.js +1 -1
- package/dist/native/components/StatePanel/StatePanel.js.map +1 -1
- package/dist/native/components/StatusIndicator/StatusIndicator.js +1 -1
- package/dist/native/components/StatusIndicator/StatusIndicator.js.map +1 -1
- package/dist/native/components/Table/Table.js +1 -1
- package/dist/native/components/Table/Table.js.map +1 -1
- package/dist/native/components/Tabs/Tabs/Tabs.view.js +1 -1
- package/dist/native/components/Tabs/Tabs/Tabs.view.js.map +1 -1
- package/dist/native/components/Tabs/Tabs/Tabs.view.native.js +1 -1
- package/dist/native/components/Tabs/Tabs/Tabs.view.native.js.map +1 -1
- package/dist/native/components/Tabs/Tabs.js +1 -1
- package/dist/native/components/Tabs/Tabs.js.map +1 -1
- package/dist/native/components/pilot/alert.d.ts +2 -0
- package/dist/native/components/pilot/alert.js +2 -0
- package/dist/native/components/pilot/alert.js.map +1 -0
- package/dist/native/components/pilot/avatar.d.ts +2 -0
- package/dist/native/components/pilot/avatar.js +2 -0
- package/dist/native/components/pilot/avatar.js.map +1 -0
- package/dist/native/components/pilot/blocks/SettingsPanel.d.ts +8 -0
- package/dist/native/components/pilot/blocks/SettingsPanel.js +24 -0
- package/dist/native/components/pilot/blocks/SettingsPanel.js.map +1 -0
- package/dist/native/components/pilot/blocks/SignIn.d.ts +8 -0
- package/dist/native/components/pilot/blocks/SignIn.js +55 -0
- package/dist/native/components/pilot/blocks/SignIn.js.map +1 -0
- package/dist/native/components/pilot/button.d.ts +1 -0
- package/dist/native/components/pilot/button.js +2 -0
- package/dist/native/components/pilot/button.js.map +1 -0
- package/dist/native/components/pilot/card.d.ts +2 -0
- package/dist/native/components/pilot/card.js +2 -0
- package/dist/native/components/pilot/card.js.map +1 -0
- package/dist/native/components/pilot/checkbox.d.ts +2 -0
- package/dist/native/components/pilot/checkbox.js +2 -0
- package/dist/native/components/pilot/checkbox.js.map +1 -0
- package/dist/native/components/pilot/modal.d.ts +2 -0
- package/dist/native/components/pilot/modal.js +2 -0
- package/dist/native/components/pilot/modal.js.map +1 -0
- package/dist/native/components/pilot/select.d.ts +2 -0
- package/dist/native/components/pilot/select.js +2 -0
- package/dist/native/components/pilot/select.js.map +1 -0
- package/dist/native/components/pilot/settings-panel.d.ts +1 -0
- package/dist/native/components/pilot/settings-panel.js +2 -0
- package/dist/native/components/pilot/settings-panel.js.map +1 -0
- package/dist/native/components/pilot/sign-in.d.ts +1 -0
- package/dist/native/components/pilot/sign-in.js +2 -0
- package/dist/native/components/pilot/sign-in.js.map +1 -0
- package/dist/native/components/pilot/switch.d.ts +2 -0
- package/dist/native/components/pilot/switch.js +2 -0
- package/dist/native/components/pilot/switch.js.map +1 -0
- package/dist/native/components/pilot/tabs.d.ts +2 -0
- package/dist/native/components/pilot/tabs.js +2 -0
- package/dist/native/components/pilot/tabs.js.map +1 -0
- package/dist/native/components/pilot/text-field.d.ts +2 -0
- package/dist/native/components/pilot/text-field.js +2 -0
- package/dist/native/components/pilot/text-field.js.map +1 -0
- package/dist/native/design-system/DesignSystemProvider.d.ts +4 -24
- package/dist/native/design-system/DesignSystemProvider.js +5 -53
- package/dist/native/design-system/DesignSystemProvider.js.map +1 -1
- package/dist/native/design-system/theme.d.ts +28 -0
- package/dist/native/design-system/theme.js +54 -0
- package/dist/native/design-system/theme.js.map +1 -0
- package/dist/native/design-system/types.d.ts +8 -2
- package/dist/presets.cjs.js +2 -0
- package/dist/presets.cjs.js.map +1 -0
- package/dist/presets.esm.d.mts +1 -0
- package/dist/presets.esm.mjs +10816 -0
- package/dist/presets.esm.mjs.map +1 -0
- package/dist/registry/alert.json +89 -0
- package/dist/registry/avatar.json +78 -0
- package/dist/registry/button.json +145 -0
- package/dist/registry/card.json +78 -0
- package/dist/registry/checkbox.json +131 -0
- package/dist/registry/modal.json +111 -0
- package/dist/registry/registry.json +1207 -0
- package/dist/registry/select.json +246 -0
- package/dist/registry/settings-panel.json +51 -0
- package/dist/registry/sign-in.json +52 -0
- package/dist/registry/switch.json +113 -0
- package/dist/registry/tabs.json +83 -0
- package/dist/registry/text-field.json +206 -0
- package/dist/router.cjs.js +2 -0
- package/dist/router.cjs.js.map +1 -0
- package/dist/router.esm.d.mts +1 -0
- package/dist/router.esm.mjs +11 -0
- package/dist/router.esm.mjs.map +1 -0
- package/dist/select.cjs.js +2 -0
- package/dist/select.cjs.js.map +1 -0
- package/dist/select.esm.d.mts +1 -0
- package/dist/select.esm.mjs +5 -0
- package/dist/select.esm.mjs.map +1 -0
- package/dist/settings-panel.cjs.js +2 -0
- package/dist/settings-panel.cjs.js.map +1 -0
- package/dist/settings-panel.esm.d.mts +1 -0
- package/dist/settings-panel.esm.mjs +43 -0
- package/dist/settings-panel.esm.mjs.map +1 -0
- package/dist/sign-in.cjs.js +2 -0
- package/dist/sign-in.cjs.js.map +1 -0
- package/dist/sign-in.esm.d.mts +1 -0
- package/dist/sign-in.esm.mjs +83 -0
- package/dist/sign-in.esm.mjs.map +1 -0
- package/dist/switch.cjs.js +2 -0
- package/dist/switch.cjs.js.map +1 -0
- package/dist/switch.esm.d.mts +1 -0
- package/dist/switch.esm.mjs +5 -0
- package/dist/switch.esm.mjs.map +1 -0
- package/dist/tabs.cjs.js +2 -0
- package/dist/tabs.cjs.js.map +1 -0
- package/dist/tabs.esm.d.mts +1 -0
- package/dist/tabs.esm.mjs +5 -0
- package/dist/tabs.esm.mjs.map +1 -0
- package/dist/text-field.cjs.js +2 -0
- package/dist/text-field.cjs.js.map +1 -0
- package/dist/text-field.esm.d.mts +1 -0
- package/dist/text-field.esm.mjs +5 -0
- package/dist/text-field.esm.mjs.map +1 -0
- package/dist/theme.cjs.js +2 -0
- package/dist/theme.cjs.js.map +1 -0
- package/dist/theme.esm.d.mts +1 -0
- package/dist/theme.esm.mjs +116 -0
- package/dist/theme.esm.mjs.map +1 -0
- package/dist/types/components/Accordion/Accordion/Accordion.props.d.ts +50 -0
- package/dist/types/components/Accordion/Accordion/Accordion.state.d.ts +9 -0
- package/dist/types/components/Accordion/Accordion/Accordion.style.d.ts +6 -0
- package/dist/types/components/Accordion/Accordion/Accordion.type.d.ts +20 -0
- package/dist/types/components/Accordion/Accordion/Accordion.view.d.ts +32 -0
- package/dist/types/components/Accordion/Accordion.d.ts +2 -0
- package/dist/types/components/ActionSheet/ActionSheet/ActionSheet.props.d.ts +36 -0
- package/dist/types/components/ActionSheet/ActionSheet/ActionSheet.state.d.ts +8 -0
- package/dist/types/components/ActionSheet/ActionSheet/ActionSheet.style.d.ts +17 -0
- package/dist/types/components/ActionSheet/ActionSheet/ActionSheet.type.d.ts +37 -0
- package/dist/types/components/ActionSheet/ActionSheet/ActionSheet.view.d.ts +4 -0
- package/dist/types/components/ActionSheet/ActionSheet.d.ts +3 -0
- package/dist/types/components/ActionSheet/index.d.ts +3 -0
- package/dist/types/components/Alert/Alert/Alert.props.d.ts +14 -0
- package/dist/types/components/Alert/Alert/Alert.state.d.ts +5 -0
- package/dist/types/components/Alert/Alert/Alert.style.d.ts +18 -0
- package/dist/types/components/Alert/Alert/Alert.type.d.ts +8 -0
- package/dist/types/components/Alert/Alert/Alert.view.d.ts +6 -0
- package/dist/types/components/Alert/Alert.d.ts +3 -0
- package/dist/types/components/AppRoot/AppRoot.d.ts +17 -0
- package/dist/types/components/AppRoot/AppRoot.types.d.ts +22 -0
- package/dist/types/components/AppRoot/index.d.ts +2 -0
- package/dist/types/components/AspectRatio/AspectRatio/AspectRatio.props.d.ts +9 -0
- package/dist/types/components/AspectRatio/AspectRatio/AspectRatio.view.d.ts +3 -0
- package/dist/types/components/AspectRatio/AspectRatio.d.ts +3 -0
- package/dist/types/components/AttachmentGroup/AttachmentGroup/AttachmentGroup.d.ts +18 -0
- package/dist/types/components/AttachmentGroup/AttachmentGroup.d.ts +2 -0
- package/dist/types/components/AudioInput/AudioInput/AudioInput.props.d.ts +18 -0
- package/dist/types/components/AudioInput/AudioInput/AudioInput.state.d.ts +15 -0
- package/dist/types/components/AudioInput/AudioInput/AudioInput.view.d.ts +4 -0
- package/dist/types/components/AudioInput/AudioInput.d.ts +4 -0
- package/dist/types/components/AudioInput/AudioWaveform/AudioWaveform.d.ts +3 -0
- package/dist/types/components/AudioInput/AudioWaveform/AudioWaveform.props.d.ts +9 -0
- package/dist/types/components/AudioInput/AudioWaveform/AudioWaveform.view.d.ts +4 -0
- package/dist/types/components/AudioInput/useAudioRecording.d.ts +13 -0
- package/dist/types/components/Avatar/Avatar/Avatar.props.d.ts +14 -0
- package/dist/types/components/Avatar/Avatar/Avatar.state.d.ts +4 -0
- package/dist/types/components/Avatar/Avatar/Avatar.style.d.ts +14 -0
- package/dist/types/components/Avatar/Avatar/Avatar.type.d.ts +7 -0
- package/dist/types/components/Avatar/Avatar/Avatar.view.d.ts +3 -0
- package/dist/types/components/Avatar/Avatar.d.ts +3 -0
- package/dist/types/components/Background/Background/Background.props.d.ts +97 -0
- package/dist/types/components/Background/Background/Background.style.d.ts +24 -0
- package/dist/types/components/Background/Background/Background.type.d.ts +28 -0
- package/dist/types/components/Background/Background/Background.view.d.ts +18 -0
- package/dist/types/components/Background/Background.d.ts +15 -0
- package/dist/types/components/Background/index.d.ts +3 -0
- package/dist/types/components/Badge/Badge/Badge.props.d.ts +23 -0
- package/dist/types/components/Badge/Badge/Badge.style.d.ts +41 -0
- package/dist/types/components/Badge/Badge/Badge.type.d.ts +13 -0
- package/dist/types/components/Badge/Badge/Badge.view.d.ts +7 -0
- package/dist/types/components/Badge/Badge.d.ts +3 -0
- package/dist/types/components/BlockEditor/BlockEditor/BlockEditor.content.d.ts +19 -0
- package/dist/types/components/BlockEditor/BlockEditor/BlockEditor.controls.d.ts +15 -0
- package/dist/types/components/BlockEditor/BlockEditor/BlockEditor.dom.d.ts +9 -0
- package/dist/types/components/BlockEditor/BlockEditor/BlockEditor.keyboard.d.ts +16 -0
- package/dist/types/components/BlockEditor/BlockEditor/BlockEditor.model.d.ts +58 -0
- package/dist/types/components/BlockEditor/BlockEditor/BlockEditor.navigation.d.ts +6 -0
- package/dist/types/components/BlockEditor/BlockEditor/BlockEditor.props.d.ts +105 -0
- package/dist/types/components/BlockEditor/BlockEditor/BlockEditor.selection.d.ts +13 -0
- package/dist/types/components/BlockEditor/BlockEditor/BlockEditor.state.d.ts +149 -0
- package/dist/types/components/BlockEditor/BlockEditor/BlockEditor.transactions.d.ts +8 -0
- package/dist/types/components/BlockEditor/BlockEditor/BlockEditor.upload.d.ts +6 -0
- package/dist/types/components/BlockEditor/BlockEditor/BlockEditor.view.d.ts +6 -0
- package/dist/types/components/BlockEditor/BlockEditor.d.ts +3 -0
- package/dist/types/components/Button/Button/Button.element.d.ts +1 -0
- package/dist/types/components/Button/Button/Button.props.d.ts +50 -0
- package/dist/types/components/Button/Button/Button.state.d.ts +5 -0
- package/dist/types/components/Button/Button/Button.style.d.ts +37 -0
- package/dist/types/components/Button/Button/Button.type.d.ts +9 -0
- package/dist/types/components/Button/Button/Button.view.d.ts +7 -0
- package/dist/types/components/Button/Button.core.d.ts +4 -0
- package/dist/types/components/Button/Button.d.ts +1 -0
- package/dist/types/components/Button/Button.pilot.d.ts +2 -0
- package/dist/types/components/Card/Card/Card.context.d.ts +6 -0
- package/dist/types/components/Card/Card/Card.props.d.ts +30 -0
- package/dist/types/components/Card/Card/Card.state.d.ts +4 -0
- package/dist/types/components/Card/Card/Card.style.d.ts +6 -0
- package/dist/types/components/Card/Card/Card.type.d.ts +10 -0
- package/dist/types/components/Card/Card/Card.view.d.ts +6 -0
- package/dist/types/components/Card/Card.d.ts +2 -0
- package/dist/types/components/Carousel/Carousel/Carousel.context.d.ts +3 -0
- package/dist/types/components/Carousel/Carousel/Carousel.props.d.ts +51 -0
- package/dist/types/components/Carousel/Carousel/Carousel.state.d.ts +29 -0
- package/dist/types/components/Carousel/Carousel/Carousel.style.d.ts +6 -0
- package/dist/types/components/Carousel/Carousel/Carousel.type.d.ts +32 -0
- package/dist/types/components/Carousel/Carousel/Carousel.view.d.ts +8 -0
- package/dist/types/components/Carousel/Carousel.d.ts +2 -0
- package/dist/types/components/Chart/Chart/BarChart.d.ts +15 -0
- package/dist/types/components/Chart/Chart/Chart.props.d.ts +28 -0
- package/dist/types/components/Chart/Chart/Chart.state.d.ts +40 -0
- package/dist/types/components/Chart/Chart/Chart.style.d.ts +20 -0
- package/dist/types/components/Chart/Chart/Chart.type.d.ts +36 -0
- package/dist/types/components/Chart/Chart/Chart.view.d.ts +3 -0
- package/dist/types/components/Chart/Chart/ChartColors.d.ts +13 -0
- package/dist/types/components/Chart/Chart/ChartTooltip.d.ts +14 -0
- package/dist/types/components/Chart/Chart/LineChart.d.ts +15 -0
- package/dist/types/components/Chart/Chart/PieChart.d.ts +15 -0
- package/dist/types/components/Chart/Chart.d.ts +3 -0
- package/dist/types/components/ChatInput/AttachmentGroup.d.ts +18 -0
- package/dist/types/components/ChatInput/AudioRecorder.d.ts +10 -0
- package/dist/types/components/ChatInput/ChatInput/ChatInput.props.d.ts +374 -0
- package/dist/types/components/ChatInput/ChatInput/ChatInput.state.d.ts +45 -0
- package/dist/types/components/ChatInput/ChatInput/ChatInput.style.d.ts +164 -0
- package/dist/types/components/ChatInput/ChatInput/ChatInput.type.d.ts +57 -0
- package/dist/types/components/ChatInput/ChatInput/ChatInput.view.d.ts +4 -0
- package/dist/types/components/ChatInput/ChatInput.d.ts +3 -0
- package/dist/types/components/ChatInput/ChatUploader.d.ts +20 -0
- package/dist/types/components/ChatInput/EditableInput.d.ts +44 -0
- package/dist/types/components/ChatInput/GuideTip.d.ts +12 -0
- package/dist/types/components/ChatInput/MessageInput.d.ts +36 -0
- package/dist/types/components/ChatInput/PromptExamples.d.ts +13 -0
- package/dist/types/components/ChatInput/index.d.ts +7 -0
- package/dist/types/components/ChatWidget/ChatWidget/ChatWidget.props.d.ts +32 -0
- package/dist/types/components/ChatWidget/ChatWidget/ChatWidget.state.d.ts +8 -0
- package/dist/types/components/ChatWidget/ChatWidget/ChatWidget.style.d.ts +81 -0
- package/dist/types/components/ChatWidget/ChatWidget/ChatWidget.type.d.ts +47 -0
- package/dist/types/components/ChatWidget/ChatWidget/ChatWidget.view.d.ts +4 -0
- package/dist/types/components/ChatWidget/ChatWidget.d.ts +4 -0
- package/dist/types/components/ChatWidget/Widget/ChatWidgetWidget.d.ts +14 -0
- package/dist/types/components/ChatWidget/Widget/index.d.ts +2 -0
- package/dist/types/components/ChatWidget/Widget/useContextSelector.d.ts +22 -0
- package/dist/types/components/ColorPicker/ColorPicker/ColorPicker.props.d.ts +44 -0
- package/dist/types/components/ColorPicker/ColorPicker/ColorPicker.state.d.ts +14 -0
- package/dist/types/components/ColorPicker/ColorPicker/ColorPicker.style.d.ts +19 -0
- package/dist/types/components/ColorPicker/ColorPicker/ColorPicker.type.d.ts +34 -0
- package/dist/types/components/ColorPicker/ColorPicker/ColorPicker.view.d.ts +4 -0
- package/dist/types/components/ColorPicker/ColorPicker.d.ts +3 -0
- package/dist/types/components/Command/Command/Command.props.d.ts +66 -0
- package/dist/types/components/Command/Command/Command.state.d.ts +17 -0
- package/dist/types/components/Command/Command/Command.style.d.ts +19 -0
- package/dist/types/components/Command/Command/Command.type.d.ts +42 -0
- package/dist/types/components/Command/Command/Command.view.d.ts +31 -0
- package/dist/types/components/Command/Command/CommandOverlay.d.ts +10 -0
- package/dist/types/components/Command/Command/CommandTextInput.d.ts +8 -0
- package/dist/types/components/Command/Command.d.ts +2 -0
- package/dist/types/components/Command/index.d.ts +1 -0
- package/dist/types/components/ContextMenu/ContextMenu/ContextMenu.props.d.ts +72 -0
- package/dist/types/components/ContextMenu/ContextMenu/ContextMenu.state.d.ts +27 -0
- package/dist/types/components/ContextMenu/ContextMenu/ContextMenu.style.d.ts +16 -0
- package/dist/types/components/ContextMenu/ContextMenu/ContextMenu.type.d.ts +52 -0
- package/dist/types/components/ContextMenu/ContextMenu/ContextMenu.view.d.ts +23 -0
- package/dist/types/components/ContextMenu/ContextMenu.d.ts +2 -0
- package/dist/types/components/CookieConsent/CookieConsent/CookieConsent.props.d.ts +15 -0
- package/dist/types/components/CookieConsent/CookieConsent/CookieConsent.state.d.ts +7 -0
- package/dist/types/components/CookieConsent/CookieConsent/CookieConsent.style.d.ts +65 -0
- package/dist/types/components/CookieConsent/CookieConsent/CookieConsent.type.d.ts +10 -0
- package/dist/types/components/CookieConsent/CookieConsent/CookieConsent.view.d.ts +3 -0
- package/dist/types/components/CookieConsent/CookieConsent.d.ts +3 -0
- package/dist/types/components/DataState/DataState/DataState.props.d.ts +14 -0
- package/dist/types/components/DataState/DataState/DataState.state.d.ts +13 -0
- package/dist/types/components/DataState/DataState/DataState.type.d.ts +33 -0
- package/dist/types/components/DataState/DataState/DataState.view.d.ts +6 -0
- package/dist/types/components/DataState/DataState.d.ts +3 -0
- package/dist/types/components/DragAndDrop/DragAndDrop/DragAndDrop.props.d.ts +18 -0
- package/dist/types/components/DragAndDrop/DragAndDrop/DragAndDrop.state.d.ts +8 -0
- package/dist/types/components/DragAndDrop/DragAndDrop/DragAndDrop.view.d.ts +3 -0
- package/dist/types/components/DragAndDrop/DragAndDrop.d.ts +4 -0
- package/dist/types/components/Drawer/Drawer/Drawer.layout.d.ts +3 -0
- package/dist/types/components/Drawer/Drawer/Drawer.props.d.ts +51 -0
- package/dist/types/components/Drawer/Drawer/Drawer.store.d.ts +19 -0
- package/dist/types/components/Drawer/Drawer/Drawer.style.d.ts +4 -0
- package/dist/types/components/Drawer/Drawer/Drawer.type.d.ts +3 -0
- package/dist/types/components/Drawer/Drawer/Drawer.view.d.ts +7 -0
- package/dist/types/components/Drawer/Drawer.d.ts +3 -0
- package/dist/types/components/DropZone/DropZone/DropZone.props.d.ts +24 -0
- package/dist/types/components/DropZone/DropZone/DropZone.state.d.ts +2 -0
- package/dist/types/components/DropZone/DropZone/DropZone.view.d.ts +3 -0
- package/dist/types/components/DropZone/DropZone.d.ts +3 -0
- package/dist/types/components/DropdownMenu/DropdownMenu/DropdownMenu.props.d.ts +51 -0
- package/dist/types/components/DropdownMenu/DropdownMenu/DropdownMenu.state.d.ts +6 -0
- package/dist/types/components/DropdownMenu/DropdownMenu/DropdownMenu.style.d.ts +17 -0
- package/dist/types/components/DropdownMenu/DropdownMenu/DropdownMenu.type.d.ts +35 -0
- package/dist/types/components/DropdownMenu/DropdownMenu/DropdownMenu.view.d.ts +20 -0
- package/dist/types/components/DropdownMenu/DropdownMenu.d.ts +2 -0
- package/dist/types/components/EditComponent/EditComponent.d.ts +14 -0
- package/dist/types/components/EditComponent/EditPanel.d.ts +7 -0
- package/dist/types/components/EditComponent/EditToolbar.d.ts +16 -0
- package/dist/types/components/EditComponent/index.d.ts +3 -0
- package/dist/types/components/EmojiPicker/EmojiPicker/EmojiPicker.data.d.ts +3 -0
- package/dist/types/components/EmojiPicker/EmojiPicker/EmojiPicker.props.d.ts +75 -0
- package/dist/types/components/EmojiPicker/EmojiPicker/EmojiPicker.state.d.ts +38 -0
- package/dist/types/components/EmojiPicker/EmojiPicker/EmojiPicker.style.d.ts +18 -0
- package/dist/types/components/EmojiPicker/EmojiPicker/EmojiPicker.type.d.ts +28 -0
- package/dist/types/components/EmojiPicker/EmojiPicker/EmojiPicker.view.d.ts +4 -0
- package/dist/types/components/EmojiPicker/EmojiPicker.d.ts +3 -0
- package/dist/types/components/File/File.d.ts +14 -0
- package/dist/types/components/Form/Checkbox/Checkbox/Checkbox.props.d.ts +30 -0
- package/dist/types/components/Form/Checkbox/Checkbox/Checkbox.state.d.ts +8 -0
- package/dist/types/components/Form/Checkbox/Checkbox/Checkbox.style.d.ts +79 -0
- package/dist/types/components/Form/Checkbox/Checkbox/Checkbox.type.d.ts +8 -0
- package/dist/types/components/Form/Checkbox/Checkbox/Checkbox.view.d.ts +4 -0
- package/dist/types/components/Form/Checkbox/Checkbox.d.ts +6 -0
- package/dist/types/components/Form/ColorInput/ColorInput/ColorInput.props.d.ts +54 -0
- package/dist/types/components/Form/ColorInput/ColorInput/ColorInput.state.d.ts +19 -0
- package/dist/types/components/Form/ColorInput/ColorInput/ColorInput.style.d.ts +16 -0
- package/dist/types/components/Form/ColorInput/ColorInput/ColorInput.type.d.ts +37 -0
- package/dist/types/components/Form/ColorInput/ColorInput/ColorInput.view.d.ts +4 -0
- package/dist/types/components/Form/ColorInput/ColorInput/colorFormat.d.ts +7 -0
- package/dist/types/components/Form/ColorInput/ColorInput.d.ts +3 -0
- package/dist/types/components/Form/ComboBox/ComboBox/ComboBox.context.d.ts +8 -0
- package/dist/types/components/Form/ComboBox/ComboBox/ComboBox.props.d.ts +46 -0
- package/dist/types/components/Form/ComboBox/ComboBox/ComboBox.provider.d.ts +2 -0
- package/dist/types/components/Form/ComboBox/ComboBox/ComboBox.state.d.ts +2 -0
- package/dist/types/components/Form/ComboBox/ComboBox/ComboBox.style.d.ts +105 -0
- package/dist/types/components/Form/ComboBox/ComboBox/ComboBox.type.d.ts +11 -0
- package/dist/types/components/Form/ComboBox/ComboBox/ComboBox.view.d.ts +4 -0
- package/dist/types/components/Form/ComboBox/ComboBox.d.ts +3 -0
- package/dist/types/components/Form/CountryPicker/CountryPicker/CountryPicker.props.d.ts +56 -0
- package/dist/types/components/Form/CountryPicker/CountryPicker/CountryPicker.state.d.ts +15 -0
- package/dist/types/components/Form/CountryPicker/CountryPicker/CountryPicker.style.d.ts +3 -0
- package/dist/types/components/Form/CountryPicker/CountryPicker/CountryPicker.type.d.ts +19 -0
- package/dist/types/components/Form/CountryPicker/CountryPicker/CountryPicker.view.d.ts +5 -0
- package/dist/types/components/Form/CountryPicker/CountryPicker.d.ts +3 -0
- package/dist/types/components/Form/CountryPicker/countries.json.d.ts +1455 -0
- package/dist/types/components/Form/DatePicker/DatePicker/DatePicker.props.d.ts +92 -0
- package/dist/types/components/Form/DatePicker/DatePicker/DatePicker.state.d.ts +10 -0
- package/dist/types/components/Form/DatePicker/DatePicker/DatePicker.style.d.ts +3 -0
- package/dist/types/components/Form/DatePicker/DatePicker/DatePicker.type.d.ts +12 -0
- package/dist/types/components/Form/DatePicker/DatePicker/DatePicker.view.d.ts +4 -0
- package/dist/types/components/Form/DatePicker/DatePicker.d.ts +6 -0
- package/dist/types/components/Form/Form.d.ts +12 -0
- package/dist/types/components/Form/Label/Label/Label.props.d.ts +17 -0
- package/dist/types/components/Form/Label/Label/Label.style.d.ts +2 -0
- package/dist/types/components/Form/Label/Label/Label.type.d.ts +3 -0
- package/dist/types/components/Form/Label/Label/Label.view.d.ts +4 -0
- package/dist/types/components/Form/Label/Label.d.ts +3 -0
- package/dist/types/components/Form/Password/Password/Password.props.d.ts +37 -0
- package/dist/types/components/Form/Password/Password/Password.state.d.ts +7 -0
- package/dist/types/components/Form/Password/Password/Password.type.d.ts +10 -0
- package/dist/types/components/Form/Password/Password.d.ts +6 -0
- package/dist/types/components/Form/Password/example/Default.d.ts +2 -0
- package/dist/types/components/Form/Password/example/DisabledInput.d.ts +2 -0
- package/dist/types/components/Form/Password/example/ErrorInput.d.ts +2 -0
- package/dist/types/components/Form/Password/example/HelperText.d.ts +2 -0
- package/dist/types/components/Form/Radio/Radio/Radio.props.d.ts +29 -0
- package/dist/types/components/Form/Radio/Radio/Radio.state.d.ts +8 -0
- package/dist/types/components/Form/Radio/Radio/Radio.style.d.ts +68 -0
- package/dist/types/components/Form/Radio/Radio/Radio.type.d.ts +8 -0
- package/dist/types/components/Form/Radio/Radio/Radio.view.d.ts +4 -0
- package/dist/types/components/Form/Radio/Radio.d.ts +3 -0
- package/dist/types/components/Form/Radio/RadioGroup/RadioGroup.props.d.ts +22 -0
- package/dist/types/components/Form/Radio/RadioGroup/RadioGroup.state.d.ts +5 -0
- package/dist/types/components/Form/Radio/RadioGroup/RadioGroup.type.d.ts +7 -0
- package/dist/types/components/Form/Radio/RadioGroup/RadioGroup.view.d.ts +4 -0
- package/dist/types/components/Form/Radio/RadioGroup.d.ts +3 -0
- package/dist/types/components/Form/Radio/index.d.ts +2 -0
- package/dist/types/components/Form/Select/Select/Select.props.d.ts +96 -0
- package/dist/types/components/Form/Select/Select/Select.state.d.ts +19 -0
- package/dist/types/components/Form/Select/Select/Select.style.d.ts +80 -0
- package/dist/types/components/Form/Select/Select/Select.type.d.ts +19 -0
- package/dist/types/components/Form/Select/Select/Select.view.d.ts +10 -0
- package/dist/types/components/Form/Select/Select.d.ts +3 -0
- package/dist/types/components/Form/Selector/Selector/Selector.props.d.ts +66 -0
- package/dist/types/components/Form/Selector/Selector/Selector.state.d.ts +17 -0
- package/dist/types/components/Form/Selector/Selector/Selector.style.d.ts +6 -0
- package/dist/types/components/Form/Selector/Selector/Selector.type.d.ts +19 -0
- package/dist/types/components/Form/Selector/Selector/Selector.view.d.ts +4 -0
- package/dist/types/components/Form/Selector/Selector.d.ts +3 -0
- package/dist/types/components/Form/Switch/Switch/Switch.props.d.ts +27 -0
- package/dist/types/components/Form/Switch/Switch/Switch.state.d.ts +10 -0
- package/dist/types/components/Form/Switch/Switch/Switch.style.d.ts +66 -0
- package/dist/types/components/Form/Switch/Switch/Switch.type.d.ts +7 -0
- package/dist/types/components/Form/Switch/Switch/Switch.view.d.ts +4 -0
- package/dist/types/components/Form/Switch/Switch.d.ts +3 -0
- package/dist/types/components/Form/TagInput/TagInput/TagInput.props.d.ts +54 -0
- package/dist/types/components/Form/TagInput/TagInput/TagInput.state.d.ts +19 -0
- package/dist/types/components/Form/TagInput/TagInput/TagInput.type.d.ts +25 -0
- package/dist/types/components/Form/TagInput/TagInput/TagInput.view.d.ts +4 -0
- package/dist/types/components/Form/TagInput/TagInput/index.d.ts +4 -0
- package/dist/types/components/Form/TagInput/TagInput.d.ts +3 -0
- package/dist/types/components/Form/TagInput/index.d.ts +2 -0
- package/dist/types/components/Form/TextArea/TextArea/TextArea.props.d.ts +62 -0
- package/dist/types/components/Form/TextArea/TextArea/TextArea.state.d.ts +11 -0
- package/dist/types/components/Form/TextArea/TextArea/TextArea.type.d.ts +13 -0
- package/dist/types/components/Form/TextArea/TextArea/TextArea.view.d.ts +4 -0
- package/dist/types/components/Form/TextArea/TextArea.d.ts +3 -0
- package/dist/types/components/Form/TextField/TextField/TextField.props.d.ts +69 -0
- package/dist/types/components/Form/TextField/TextField/TextField.state.d.ts +11 -0
- package/dist/types/components/Form/TextField/TextField/TextField.type.d.ts +12 -0
- package/dist/types/components/Form/TextField/TextField/TextField.view.d.ts +4 -0
- package/dist/types/components/Form/TextField/TextField.d.ts +3 -0
- package/dist/types/components/Formik/AttachmentPreview.d.ts +19 -0
- package/dist/types/components/Formik/Formik.ChatInput.d.ts +12 -0
- package/dist/types/components/Formik/Formik.Checkbox.d.ts +6 -0
- package/dist/types/components/Formik/Formik.ColorInput.d.ts +6 -0
- package/dist/types/components/Formik/Formik.ComboBox.d.ts +6 -0
- package/dist/types/components/Formik/Formik.CountryPicker.d.ts +6 -0
- package/dist/types/components/Formik/Formik.DatePicker.d.ts +6 -0
- package/dist/types/components/Formik/Formik.EmojiPicker.d.ts +6 -0
- package/dist/types/components/Formik/Formik.Form.d.ts +20 -0
- package/dist/types/components/Formik/Formik.Hook.d.ts +5 -0
- package/dist/types/components/Formik/Formik.IconPicker.d.ts +6 -0
- package/dist/types/components/Formik/Formik.OTPInput.d.ts +8 -0
- package/dist/types/components/Formik/Formik.Password.d.ts +6 -0
- package/dist/types/components/Formik/Formik.Radio.d.ts +6 -0
- package/dist/types/components/Formik/Formik.Select.d.ts +6 -0
- package/dist/types/components/Formik/Formik.Selector.d.ts +6 -0
- package/dist/types/components/Formik/Formik.Slider.d.ts +7 -0
- package/dist/types/components/Formik/Formik.Switch.d.ts +3 -0
- package/dist/types/components/Formik/Formik.TagInput.d.ts +9 -0
- package/dist/types/components/Formik/Formik.TextArea.d.ts +6 -0
- package/dist/types/components/Formik/Formik.TextField.d.ts +6 -0
- package/dist/types/components/Formik/Formik.Toggle.d.ts +6 -0
- package/dist/types/components/Formik/Formik.ToggleGroup.d.ts +6 -0
- package/dist/types/components/Formik/Formik.Uploader.d.ts +38 -0
- package/dist/types/components/Formik/index.d.ts +23 -0
- package/dist/types/components/Gradient/Gradient/Gradient.props.d.ts +15 -0
- package/dist/types/components/Gradient/Gradient/Gradient.style.d.ts +55 -0
- package/dist/types/components/Gradient/Gradient/Gradient.type.d.ts +13 -0
- package/dist/types/components/Gradient/Gradient/Gradient.view.d.ts +3 -0
- package/dist/types/components/Gradient/Gradient.d.ts +3 -0
- package/dist/types/components/Gradient/index.d.ts +1 -0
- package/dist/types/components/HoverCard/HoverCard/HoverCard.props.d.ts +33 -0
- package/dist/types/components/HoverCard/HoverCard/HoverCard.state.d.ts +11 -0
- package/dist/types/components/HoverCard/HoverCard/HoverCard.style.d.ts +5 -0
- package/dist/types/components/HoverCard/HoverCard/HoverCard.type.d.ts +12 -0
- package/dist/types/components/HoverCard/HoverCard/HoverCard.view.d.ts +10 -0
- package/dist/types/components/HoverCard/HoverCard.d.ts +2 -0
- package/dist/types/components/Icon/FixedIcons.d.ts +10 -0
- package/dist/types/components/Icon/Icon.d.ts +100 -0
- package/dist/types/components/Icon/Icon.frame.d.ts +14 -0
- package/dist/types/components/IconPicker/IconPicker/IconPicker.constants.d.ts +2 -0
- package/dist/types/components/IconPicker/IconPicker/IconPicker.props.d.ts +37 -0
- package/dist/types/components/IconPicker/IconPicker/IconPicker.state.d.ts +14 -0
- package/dist/types/components/IconPicker/IconPicker/IconPicker.style.d.ts +13 -0
- package/dist/types/components/IconPicker/IconPicker/IconPicker.type.d.ts +14 -0
- package/dist/types/components/IconPicker/IconPicker/IconPicker.view.d.ts +4 -0
- package/dist/types/components/IconPicker/IconPicker.d.ts +3 -0
- package/dist/types/components/Input/FieldContainer/FieldContainer/FieldContainer.props.d.ts +27 -0
- package/dist/types/components/Input/FieldContainer/FieldContainer.d.ts +3 -0
- package/dist/types/components/Input/FieldContent/FieldContent/FieldContent.props.d.ts +70 -0
- package/dist/types/components/Input/FieldContent/FieldContent.d.ts +3 -0
- package/dist/types/components/Input/FieldIcons/FieldIcons/FieldIcons.props.d.ts +3 -0
- package/dist/types/components/Input/FieldIcons/FieldIcons.d.ts +3 -0
- package/dist/types/components/Input/FieldLabel/FieldLabel/FieldLabel.props.d.ts +31 -0
- package/dist/types/components/Input/FieldLabel/FieldLabel.d.ts +3 -0
- package/dist/types/components/Input/FieldLayout/FieldLayout/FieldLayout.props.d.ts +25 -0
- package/dist/types/components/Input/FieldLayout/FieldLayout.d.ts +3 -0
- package/dist/types/components/Input/FieldWrapper/FieldWrapper.d.ts +3 -0
- package/dist/types/components/Input/FieldWrapper/FieldWrapper.props.d.ts +3 -0
- package/dist/types/components/Input/HelperText/HelperText.d.ts +3 -0
- package/dist/types/components/Input/HelperText/HelperText.props.d.ts +17 -0
- package/dist/types/components/Input/Input.style.d.ts +18 -0
- package/dist/types/components/Input/Input.type.d.ts +13 -0
- package/dist/types/components/Input/fieldSizes.d.ts +15 -0
- package/dist/types/components/Input/index.d.ts +7 -0
- package/dist/types/components/KeyboardAvoidingView/KeyboardAvoidingView.d.ts +3 -0
- package/dist/types/components/KeyboardAvoidingView/KeyboardAvoidingView.types.d.ts +24 -0
- package/dist/types/components/KeyboardAvoidingView/index.d.ts +2 -0
- package/dist/types/components/Link/Link/Link.props.d.ts +18 -0
- package/dist/types/components/Link/Link/Link.state.d.ts +4 -0
- package/dist/types/components/Link/Link/Link.style.d.ts +11 -0
- package/dist/types/components/Link/Link/Link.type.d.ts +8 -0
- package/dist/types/components/Link/Link/Link.view.d.ts +4 -0
- package/dist/types/components/Link/Link.d.ts +3 -0
- package/dist/types/components/Loader/Loader/Loader.props.d.ts +27 -0
- package/dist/types/components/Loader/Loader/Loader.style.d.ts +4 -0
- package/dist/types/components/Loader/Loader/Loader.type.d.ts +4 -0
- package/dist/types/components/Loader/Loader/Loader.view.d.ts +11 -0
- package/dist/types/components/Loader/Loader.d.ts +3 -0
- package/dist/types/components/Markdown/Markdown/Markdown.content.d.ts +6 -0
- package/dist/types/components/Markdown/Markdown/Markdown.motion.d.ts +1 -0
- package/dist/types/components/Markdown/Markdown/Markdown.props.d.ts +34 -0
- package/dist/types/components/Markdown/Markdown/Markdown.view.d.ts +1 -0
- package/dist/types/components/Markdown/Markdown/useMarkdownTyping.d.ts +6 -0
- package/dist/types/components/Markdown/Markdown.d.ts +3 -0
- package/dist/types/components/MediaPreview.d.ts +14 -0
- package/dist/types/components/Menubar/Menubar/Menubar.props.d.ts +74 -0
- package/dist/types/components/Menubar/Menubar/Menubar.state.d.ts +8 -0
- package/dist/types/components/Menubar/Menubar/Menubar.style.d.ts +19 -0
- package/dist/types/components/Menubar/Menubar/Menubar.type.d.ts +36 -0
- package/dist/types/components/Menubar/Menubar/Menubar.view.d.ts +22 -0
- package/dist/types/components/Menubar/Menubar.d.ts +2 -0
- package/dist/types/components/Menubar/index.d.ts +1 -0
- package/dist/types/components/Message/Message/Message.layout.d.ts +3 -0
- package/dist/types/components/Message/Message/Message.props.d.ts +36 -0
- package/dist/types/components/Message/Message/Message.store.d.ts +5 -0
- package/dist/types/components/Message/Message/Message.style.d.ts +5 -0
- package/dist/types/components/Message/Message/Message.type.d.ts +48 -0
- package/dist/types/components/Message/Message/Message.view.d.ts +3 -0
- package/dist/types/components/Message/Message.d.ts +5 -0
- package/dist/types/components/Modal/Modal/Modal.layout.d.ts +3 -0
- package/dist/types/components/Modal/Modal/Modal.props.d.ts +90 -0
- package/dist/types/components/Modal/Modal/Modal.store.d.ts +19 -0
- package/dist/types/components/Modal/Modal/Modal.style.d.ts +33 -0
- package/dist/types/components/Modal/Modal/Modal.type.d.ts +4 -0
- package/dist/types/components/Modal/Modal/Modal.view.d.ts +21 -0
- package/dist/types/components/Modal/Modal.d.ts +5 -0
- package/dist/types/components/NavigationMenu/NavigationMenu/NavigationMenu.props.d.ts +68 -0
- package/dist/types/components/NavigationMenu/NavigationMenu/NavigationMenu.state.d.ts +8 -0
- package/dist/types/components/NavigationMenu/NavigationMenu/NavigationMenu.style.d.ts +32 -0
- package/dist/types/components/NavigationMenu/NavigationMenu/NavigationMenu.type.d.ts +35 -0
- package/dist/types/components/NavigationMenu/NavigationMenu/NavigationMenu.view.d.ts +25 -0
- package/dist/types/components/NavigationMenu/NavigationMenu.d.ts +2 -0
- package/dist/types/components/OTPInput/OTPInput/OTPInput.props.d.ts +43 -0
- package/dist/types/components/OTPInput/OTPInput/OTPInput.state.d.ts +23 -0
- package/dist/types/components/OTPInput/OTPInput/OTPInput.type.d.ts +9 -0
- package/dist/types/components/OTPInput/OTPInput/OTPInput.view.d.ts +29 -0
- package/dist/types/components/OTPInput/OTPInput/sync-timeouts.d.ts +1 -0
- package/dist/types/components/OTPInput/OTPInput.d.ts +3 -0
- package/dist/types/components/PageHeader/PageHeader/PageHeader.props.d.ts +9 -0
- package/dist/types/components/PageHeader/PageHeader/PageHeader.style.d.ts +4 -0
- package/dist/types/components/PageHeader/PageHeader/PageHeader.type.d.ts +7 -0
- package/dist/types/components/PageHeader/PageHeader/PageHeader.view.d.ts +4 -0
- package/dist/types/components/PageHeader/PageHeader.d.ts +3 -0
- package/dist/types/components/PageLayout/PageLayout.d.ts +3 -0
- package/dist/types/components/PageLayout/PageLayout.types.d.ts +30 -0
- package/dist/types/components/PageLayout/index.d.ts +2 -0
- package/dist/types/components/Pagination/Pagination/Pagination.props.d.ts +19 -0
- package/dist/types/components/Pagination/Pagination/Pagination.state.d.ts +3 -0
- package/dist/types/components/Pagination/Pagination/Pagination.style.d.ts +7 -0
- package/dist/types/components/Pagination/Pagination/Pagination.type.d.ts +17 -0
- package/dist/types/components/Pagination/Pagination/Pagination.view.d.ts +3 -0
- package/dist/types/components/Pagination/Pagination.d.ts +3 -0
- package/dist/types/components/Pagination/index.d.ts +1 -0
- package/dist/types/components/Portal/Portal.d.ts +7 -0
- package/dist/types/components/ProgressBar/ProgressBar/ProgressBar.props.d.ts +24 -0
- package/dist/types/components/ProgressBar/ProgressBar/ProgressBar.view.d.ts +4 -0
- package/dist/types/components/ProgressBar/ProgressBar.d.ts +4 -0
- package/dist/types/components/Resizable/Resizable/Resizable.props.d.ts +52 -0
- package/dist/types/components/Resizable/Resizable/Resizable.state.d.ts +16 -0
- package/dist/types/components/Resizable/Resizable/Resizable.style.d.ts +7 -0
- package/dist/types/components/Resizable/Resizable/Resizable.type.d.ts +44 -0
- package/dist/types/components/Resizable/Resizable/Resizable.view.d.ts +13 -0
- package/dist/types/components/Resizable/Resizable.d.ts +2 -0
- package/dist/types/components/Resizable/index.d.ts +1 -0
- package/dist/types/components/Router/Router.d.ts +3 -0
- package/dist/types/components/Router/Router.match.d.ts +15 -0
- package/dist/types/components/Router/Router.store.d.ts +28 -0
- package/dist/types/components/Router/Router.types.d.ts +16 -0
- package/dist/types/components/Router/index.d.ts +5 -0
- package/dist/types/components/Router/useHistory.d.ts +21 -0
- package/dist/types/components/Separator/Separator/Separator.props.d.ts +12 -0
- package/dist/types/components/Separator/Separator/Separator.style.d.ts +23 -0
- package/dist/types/components/Separator/Separator/Separator.type.d.ts +8 -0
- package/dist/types/components/Separator/Separator/Separator.view.d.ts +3 -0
- package/dist/types/components/Separator/Separator.d.ts +4 -0
- package/dist/types/components/Separator/index.d.ts +1 -0
- package/dist/types/components/ShareButton/ShareButton/ShareButton.props.d.ts +19 -0
- package/dist/types/components/ShareButton/ShareButton/ShareButton.state.d.ts +6 -0
- package/dist/types/components/ShareButton/ShareButton/ShareButton.view.d.ts +4 -0
- package/dist/types/components/ShareButton/ShareButton.d.ts +3 -0
- package/dist/types/components/Sidebar/Sidebar/Sidebar.props.d.ts +54 -0
- package/dist/types/components/Sidebar/Sidebar/Sidebar.state.d.ts +7 -0
- package/dist/types/components/Sidebar/Sidebar/Sidebar.style.d.ts +13 -0
- package/dist/types/components/Sidebar/Sidebar/Sidebar.type.d.ts +32 -0
- package/dist/types/components/Sidebar/Sidebar/Sidebar.view.d.ts +21 -0
- package/dist/types/components/Sidebar/Sidebar.d.ts +2 -0
- package/dist/types/components/Sidebar/index.d.ts +1 -0
- package/dist/types/components/Slider/Slider/Slider.props.d.ts +36 -0
- package/dist/types/components/Slider/Slider/Slider.state.d.ts +14 -0
- package/dist/types/components/Slider/Slider/Slider.style.d.ts +15 -0
- package/dist/types/components/Slider/Slider/Slider.type.d.ts +18 -0
- package/dist/types/components/Slider/Slider/Slider.view.d.ts +3 -0
- package/dist/types/components/Slider/Slider.d.ts +3 -0
- package/dist/types/components/Slider/index.d.ts +1 -0
- package/dist/types/components/SplashScreen/SplashScreen.d.ts +3 -0
- package/dist/types/components/SplashScreen/SplashScreen.store.d.ts +18 -0
- package/dist/types/components/SplashScreen/SplashScreen.types.d.ts +23 -0
- package/dist/types/components/SplashScreen/index.d.ts +3 -0
- package/dist/types/components/StatePanel/StatePanel/StatePanel.props.d.ts +10 -0
- package/dist/types/components/StatePanel/StatePanel/StatePanel.style.d.ts +4 -0
- package/dist/types/components/StatePanel/StatePanel/StatePanel.type.d.ts +8 -0
- package/dist/types/components/StatePanel/StatePanel/StatePanel.view.d.ts +4 -0
- package/dist/types/components/StatePanel/StatePanel.d.ts +3 -0
- package/dist/types/components/StatusIndicator/StatusIndicator/StatusIndicator.props.d.ts +8 -0
- package/dist/types/components/StatusIndicator/StatusIndicator/StatusIndicator.style.d.ts +10 -0
- package/dist/types/components/StatusIndicator/StatusIndicator/StatusIndicator.type.d.ts +7 -0
- package/dist/types/components/StatusIndicator/StatusIndicator/StatusIndicator.view.d.ts +3 -0
- package/dist/types/components/StatusIndicator/StatusIndicator.d.ts +3 -0
- package/dist/types/components/Table/Table/Table.context.d.ts +23 -0
- package/dist/types/components/Table/Table/Table.props.d.ts +24 -0
- package/dist/types/components/Table/Table/Table.state.d.ts +5 -0
- package/dist/types/components/Table/Table/Table.style.d.ts +22 -0
- package/dist/types/components/Table/Table/Table.type.d.ts +19 -0
- package/dist/types/components/Table/Table/Table.view.d.ts +14 -0
- package/dist/types/components/Table/Table/TableScroll.d.ts +8 -0
- package/dist/types/components/Table/Table.d.ts +16 -0
- package/dist/types/components/Tabs/Tabs/TabHeader.d.ts +22 -0
- package/dist/types/components/Tabs/Tabs/Tabs.props.d.ts +114 -0
- package/dist/types/components/Tabs/Tabs/Tabs.state.d.ts +22 -0
- package/dist/types/components/Tabs/Tabs/Tabs.type.d.ts +53 -0
- package/dist/types/components/Tabs/Tabs/Tabs.view.d.ts +12 -0
- package/dist/types/components/Tabs/Tabs.d.ts +10 -0
- package/dist/types/components/TextArea/TextArea.d.ts +17 -0
- package/dist/types/components/Title/Title/SlideEffect.d.ts +16 -0
- package/dist/types/components/Title/Title/Title.props.d.ts +28 -0
- package/dist/types/components/Title/Title/Title.state.d.ts +10 -0
- package/dist/types/components/Title/Title/Title.style.d.ts +29 -0
- package/dist/types/components/Title/Title/Title.type.d.ts +8 -0
- package/dist/types/components/Title/Title/Title.view.d.ts +4 -0
- package/dist/types/components/Title/Title/TypewriterEffect.d.ts +15 -0
- package/dist/types/components/Title/Title.d.ts +3 -0
- package/dist/types/components/Title/index.d.ts +1 -0
- package/dist/types/components/Toast/Toast/Toast.hook.d.ts +10 -0
- package/dist/types/components/Toast/Toast/Toast.props.d.ts +34 -0
- package/dist/types/components/Toast/Toast/Toast.store.d.ts +10 -0
- package/dist/types/components/Toast/Toast/Toast.style.d.ts +17 -0
- package/dist/types/components/Toast/Toast/Toast.type.d.ts +53 -0
- package/dist/types/components/Toast/Toast/Toast.view.d.ts +4 -0
- package/dist/types/components/Toast/Toast.d.ts +23 -0
- package/dist/types/components/Toast/index.d.ts +1 -0
- package/dist/types/components/Toggle/Toggle/Toggle.props.d.ts +17 -0
- package/dist/types/components/Toggle/Toggle/Toggle.state.d.ts +6 -0
- package/dist/types/components/Toggle/Toggle/Toggle.style.d.ts +8 -0
- package/dist/types/components/Toggle/Toggle/Toggle.type.d.ts +2 -0
- package/dist/types/components/Toggle/Toggle/Toggle.view.d.ts +12 -0
- package/dist/types/components/Toggle/Toggle.d.ts +3 -0
- package/dist/types/components/ToggleGroup/ToggleGroup/ToggleGroup.props.d.ts +19 -0
- package/dist/types/components/ToggleGroup/ToggleGroup/ToggleGroup.state.d.ts +4 -0
- package/dist/types/components/ToggleGroup/ToggleGroup/ToggleGroup.style.d.ts +2 -0
- package/dist/types/components/ToggleGroup/ToggleGroup/ToggleGroup.type.d.ts +9 -0
- package/dist/types/components/ToggleGroup/ToggleGroup/ToggleGroup.view.d.ts +3 -0
- package/dist/types/components/ToggleGroup/ToggleGroup.d.ts +3 -0
- package/dist/types/components/Tooltip/Tooltip/Tooltip.props.d.ts +38 -0
- package/dist/types/components/Tooltip/Tooltip/Tooltip.state.d.ts +17 -0
- package/dist/types/components/Tooltip/Tooltip/Tooltip.style.d.ts +7 -0
- package/dist/types/components/Tooltip/Tooltip/Tooltip.type.d.ts +20 -0
- package/dist/types/components/Tooltip/Tooltip/Tooltip.view.d.ts +21 -0
- package/dist/types/components/Tooltip/Tooltip.d.ts +2 -0
- package/dist/types/components/Tooltip/index.d.ts +1 -0
- package/dist/types/components/Uploader/Uploader/Uploader.props.d.ts +59 -0
- package/dist/types/components/Uploader/Uploader/Uploader.state.d.ts +14 -0
- package/dist/types/components/Uploader/Uploader/Uploader.view.d.ts +3 -0
- package/dist/types/components/Uploader/Uploader.d.ts +3 -0
- package/dist/types/components/index.d.ts +13 -0
- package/dist/types/components/index.shared.d.ts +143 -0
- package/dist/types/components/pilot/alert.d.ts +2 -0
- package/dist/types/components/pilot/avatar.d.ts +2 -0
- package/dist/types/components/pilot/blocks/SettingsPanel.d.ts +8 -0
- package/dist/types/components/pilot/blocks/SignIn.d.ts +8 -0
- package/dist/types/components/pilot/button.d.ts +1 -0
- package/dist/types/components/pilot/card.d.ts +2 -0
- package/dist/types/components/pilot/checkbox.d.ts +2 -0
- package/dist/types/components/pilot/modal.d.ts +2 -0
- package/dist/types/components/pilot/select.d.ts +2 -0
- package/dist/types/components/pilot/settings-panel.d.ts +1 -0
- package/dist/types/components/pilot/sign-in.d.ts +1 -0
- package/dist/types/components/pilot/switch.d.ts +2 -0
- package/dist/types/components/pilot/tabs.d.ts +2 -0
- package/dist/types/components/pilot/text-field.d.ts +2 -0
- package/dist/types/design-system/DesignSystemProvider.d.ts +8 -0
- package/dist/types/design-system/DesignSystemScope.d.ts +8 -0
- package/dist/types/design-system/configs/airbnb.json.d.ts +715 -0
- package/dist/types/design-system/configs/apple.json.d.ts +733 -0
- package/dist/types/design-system/configs/coinbase.json.d.ts +726 -0
- package/dist/types/design-system/configs/default.json.d.ts +547 -0
- package/dist/types/design-system/configs/figma.json.d.ts +712 -0
- package/dist/types/design-system/configs/index.d.ts +27 -0
- package/dist/types/design-system/configs/linear.json.d.ts +705 -0
- package/dist/types/design-system/configs/nike.json.d.ts +733 -0
- package/dist/types/design-system/configs/notion.json.d.ts +838 -0
- package/dist/types/design-system/configs/revolut.json.d.ts +798 -0
- package/dist/types/design-system/configs/shopify.json.d.ts +701 -0
- package/dist/types/design-system/configs/spacex.json.d.ts +618 -0
- package/dist/types/design-system/configs/spotify.json.d.ts +701 -0
- package/dist/types/design-system/configs/stripe.json.d.ts +768 -0
- package/dist/types/design-system/configs/tesla.json.d.ts +660 -0
- package/dist/types/design-system/configs/uber.json.d.ts +716 -0
- package/dist/types/design-system/configs/vercel.json.d.ts +728 -0
- package/dist/types/design-system/index.d.ts +4 -0
- package/dist/types/design-system/theme.d.ts +28 -0
- package/dist/types/design-system/types.d.ts +138 -0
- package/dist/types/design-system/utils.d.ts +5 -0
- package/dist/types/pages/designSystem.page.d.ts +7 -0
- package/dist/types/types/global.d.ts +66 -0
- package/dist/types/types/module.d.ts +7 -0
- package/dist/types/types/refractor.d.ts +16 -0
- package/dist/types/utils/apiConfig.d.ts +28 -0
- package/dist/types/utils/colors.d.ts +31 -0
- package/dist/types/utils/elevation.d.ts +3 -0
- package/dist/types/utils/env.d.ts +15 -0
- package/dist/types/utils/file.d.ts +4 -0
- package/dist/types/utils/generateId.d.ts +5 -0
- package/dist/types/utils/id.d.ts +6 -0
- package/dist/types/utils/index.d.ts +7 -0
- package/dist/types/utils/localstorage.d.ts +5 -0
- package/dist/types/utils/request.d.ts +38 -0
- package/dist/types/utils/scriptTypography.d.ts +4 -0
- package/dist/types/utils/store.d.ts +7 -0
- package/dist/types/utils/typography.d.ts +23 -0
- package/dist/web.cjs.js +38 -72
- package/dist/web.cjs.js.map +1 -1
- package/dist/web.esm.d.mts +1 -0
- package/dist/web.esm.mjs +6888 -0
- package/dist/web.esm.mjs.map +1 -0
- package/dist/web.umd.js +22 -22
- package/dist/web.umd.js.map +1 -1
- package/docs/guides/registry-guide.mdx +81 -0
- package/package.json +312 -18
- package/dist/apple-touch-icon.png +0 -0
- package/dist/assets/apple-logo.png +0 -0
- package/dist/assets/maskable_icon.png +0 -0
- package/dist/assets/orange.png +0 -0
- package/dist/favicon.ico +0 -0
- package/dist/favicon.svg +0 -4
- package/dist/files/media/Accordion.mdx +0 -333
- package/dist/files/media/Alert.mdx +0 -353
- package/dist/files/media/AspectRatio.mdx +0 -64
- package/dist/files/media/AudioInput.mdx +0 -78
- package/dist/files/media/AudioWaveform.mdx +0 -9
- package/dist/files/media/Avatar.mdx +0 -301
- package/dist/files/media/Background.mdx +0 -610
- package/dist/files/media/Badge.mdx +0 -503
- package/dist/files/media/BlockEditor-drag-and-drop.md +0 -61
- package/dist/files/media/BlockEditor.mdx +0 -106
- package/dist/files/media/Button.mdx +0 -688
- package/dist/files/media/Card.mdx +0 -560
- package/dist/files/media/Carousel.mdx +0 -605
- package/dist/files/media/Chart.mdx +0 -871
- package/dist/files/media/ChatInput.mdx +0 -540
- package/dist/files/media/ChatWidget.mdx +0 -403
- package/dist/files/media/Checkbox.mdx +0 -463
- package/dist/files/media/ColorInput.mdx +0 -217
- package/dist/files/media/ColorPicker.mdx +0 -259
- package/dist/files/media/ComboBox.mdx +0 -376
- package/dist/files/media/Command.mdx +0 -496
- package/dist/files/media/ContextMenu.mdx +0 -411
- package/dist/files/media/CookieConsent.mdx +0 -263
- package/dist/files/media/CountryPicker.mdx +0 -349
- package/dist/files/media/DatePicker.mdx +0 -217
- package/dist/files/media/DragAndDrop.mdx +0 -34
- package/dist/files/media/Drawer.mdx +0 -233
- package/dist/files/media/DropZone.mdx +0 -9
- package/dist/files/media/DropdownMenu.mdx +0 -403
- package/dist/files/media/EmojiPicker.mdx +0 -335
- package/dist/files/media/Gradient.mdx +0 -604
- package/dist/files/media/HoverCard.mdx +0 -144
- package/dist/files/media/IconPicker.mdx +0 -9
- package/dist/files/media/Label.mdx +0 -9
- package/dist/files/media/Link.mdx +0 -142
- package/dist/files/media/Loader.mdx +0 -161
- package/dist/files/media/Markdown.mdx +0 -99
- package/dist/files/media/Menubar.mdx +0 -496
- package/dist/files/media/Message.mdx +0 -299
- package/dist/files/media/Modal.mdx +0 -795
- package/dist/files/media/NavigationMenu.mdx +0 -728
- package/dist/files/media/OTPInput.mdx +0 -450
- package/dist/files/media/Pagination.mdx +0 -356
- package/dist/files/media/ProgressBar.mdx +0 -119
- package/dist/files/media/Radio.mdx +0 -314
- package/dist/files/media/RadioGroup.mdx +0 -9
- package/dist/files/media/Resizable.mdx +0 -873
- package/dist/files/media/Select.mdx +0 -689
- package/dist/files/media/Selector.mdx +0 -9
- package/dist/files/media/Separator.mdx +0 -741
- package/dist/files/media/ShareButton.mdx +0 -29
- package/dist/files/media/Sidebar.mdx +0 -1237
- package/dist/files/media/Slider.mdx +0 -513
- package/dist/files/media/StatusIndicator.mdx +0 -43
- package/dist/files/media/Switch.mdx +0 -521
- package/dist/files/media/Table.mdx +0 -827
- package/dist/files/media/Tabs.mdx +0 -524
- package/dist/files/media/TagInput.mdx +0 -372
- package/dist/files/media/TextArea.mdx +0 -724
- package/dist/files/media/TextField.mdx +0 -830
- package/dist/files/media/Title.mdx +0 -1081
- package/dist/files/media/Toast.mdx +0 -802
- package/dist/files/media/Toggle.mdx +0 -159
- package/dist/files/media/ToggleGroup.mdx +0 -180
- package/dist/files/media/Tooltip.mdx +0 -307
- package/dist/files/media/Uploader.mdx +0 -9
- package/dist/fonts/mulish-subset.woff2 +0 -0
- package/dist/icon-512.png +0 -0
- package/dist/illustrations/cross-platform.svg +0 -37
- package/dist/index.d.ts +0 -5516
- package/dist/indexnow-key.txt +0 -1
- package/dist/manifest.json +0 -22
- package/dist/orange.webp +0 -0
- package/dist/robots.txt +0 -8
- package/dist/web.esm.js +0 -49919
- package/dist/web.esm.js.map +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),Je=require("./Checkbox.view-DGdNPlF9.cjs"),$=require("./Formik.Uploader-D0nzjyau.cjs"),u=require("react"),d=require("app-studio"),xe=require("./TextField-Da4JCcAU.cjs"),Z=require("./Icon-C37alecH.cjs"),Eo=require("./Label-Bd0TpfkG.cjs"),ae=require("./FieldWrapper-DRCn7BLi.cjs"),qe=require("./Select.view-Pq1yAcMm.cjs"),Xe=require("./Switch.view-CQZO_Js7.cjs"),be=require("formik"),so=({placeholder:e,isMulti:o,options:a,id:t})=>{const r=u.useId().replace(/[^a-zA-Z0-9_-]/g,""),n=t??`selector-${r}`,l=e?o?[]:"":Array.isArray(a)&&a.length>0?a[0].value:o?[]:"",[c,m]=u.useState(!1),[h,g]=u.useState(!1),[s,f]=u.useState(l),[y,w]=u.useState(!0);return{id:n,value:s,setValue:f,hide:y,setHide:w,isHovered:c,setIsHovered:m,isFocused:h,setIsFocused:g}},uo=({id:e,name:o,label:a,value:t,views:r={},options:n=[],helperText:l,error:c=!1,isDisabled:m=!1,isReadOnly:h=!1,onChange:g=()=>{},setValue:s=()=>{},hide:f,setHide:y,isHovered:w,setIsHovered:I,isFocused:C,setIsFocused:q,placeholder:x,isMulti:T,shape:S,variant:p,size:M,shadow:W,isScrollable:V,"aria-label":B,...F})=>{const P=u.useId(),E=e??P,k=`${E}-label`,_=`${E}-helper-text`,A=!!l,O=u.useCallback(b=>{m||h||(s(b.value),g&&g(b.value))},[s,g,m,h]);return i.jsxs(ae.FieldContainer,{id:E,width:"100%",views:r,...F,children:[a&&i.jsxs(d.Horizontal,{fontSize:"10px",letterSpacing:"wider",color:"color-black-500",fontWeight:"bold",marginBottom:12,alignItems:"center",gap:6,style:{textTransform:"uppercase"},children:[i.jsx(Z.InfoIcon,{widthHeight:14})," ",i.jsx(d.Text,{id:k,children:a})]}),i.jsx(d.Horizontal,{gap:0,role:"radiogroup","aria-labelledby":!B&&a?k:void 0,"aria-label":B,"aria-describedby":A?_:void 0,"aria-readonly":h||void 0,"aria-invalid":c?!0:void 0,children:n.map((b,R,K)=>{const z=t===b.value,oe=b.color??"theme-primary",ie=z?oe:"color-gray-200",D=z?oe:"color-gray-500",N=R===0,v=R===K.length-1,H=v||z;return i.jsx(d.View,{as:"button",type:"button",role:"radio","aria-checked":z,disabled:m,onClick:()=>O(b),flex:1,minWidth:0,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",textAlign:"center",paddingVertical:6,paddingHorizontal:12,fontSize:"12px",fontWeight:z?"bold":"normal",cursor:m?"not-allowed":h?"default":"pointer",backgroundColor:"transparent",color:D,borderStyle:"solid",borderColor:ie,borderTopWidth:1,borderBottomWidth:1,borderLeftWidth:1,borderRightWidth:H?1:0,borderRadius:N?"6px 0 0 6px":v?"0 6px 6px 0":"0",zIndex:z?1:0,transition:"color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease",...r.item,children:b.label},b.value)})}),i.jsx("input",{type:"hidden",id:`${E}-input`,name:o,value:Array.isArray(t)?t.join(","):t,onChange:()=>{}}),A&&i.jsx(d.Text,{id:_,fontSize:"11px",lineHeight:"16px",marginTop:0,fontWeight:c?"500":"400",color:c?"theme-error":"color-gray-500",transition:"color 0.2s ease, opacity 0.2s ease",...r.helperText,children:l})]})},mo=e=>{const{value:o,defaultValue:a="",onChange:t,onChangeComplete:r,onOpen:n,onClose:l,closeOnSelect:c=!0,maxRecentColors:m=8,showRecentColors:h=!0,isAutoFocus:g=!1,colorFormat:s}=e,[f,y]=u.useState(!1),[w,I]=u.useState(o??a),[C,q]=u.useState(""),[x,T]=u.useState([]),[S,p]=u.useState(!1),[M,W]=u.useState(!1),V=u.useRef(null),B=u.useRef(null);u.useEffect(()=>{o!==void 0&&I(o)},[o]),u.useEffect(()=>{if(h&&typeof localStorage<"u")try{const b=localStorage.getItem("colorInput-recentColors");b&&T(JSON.parse(b))}catch(b){console.warn("Failed to load recent colors from localStorage:",b)}},[h]),u.useEffect(()=>{const b=V.current;g&&b&&typeof b.focus=="function"&&b.focus()},[g]),u.useEffect(()=>{if(typeof document>"u")return;const b=R=>{f&&V.current&&B.current&&!V.current.contains(R.target)&&!B.current.contains(R.target)&&A()};return document.addEventListener("mousedown",b),()=>document.removeEventListener("mousedown",b)},[f]);const F=u.useCallback(b=>{h&&T(R=>{const K=R.filter(oe=>oe!==b),z=[b,...K].slice(0,m);try{typeof localStorage<"u"&&localStorage.setItem("colorInput-recentColors",JSON.stringify(z))}catch(oe){console.warn("Failed to save recent colors to localStorage:",oe)}return z})},[h,m]),P=u.useCallback(()=>{const b=!f;y(b),b?n==null||n():l==null||l()},[f,n,l]),E=u.useCallback(b=>{I(b),F(b);const R=$.formatColor(b,s);t==null||t(R),r==null||r(R),c&&(y(!1),l==null||l())},[t,r,c,l,F,s]),k=u.useCallback(b=>{q(b)},[]),_=u.useCallback(()=>{C&&(E(C),q(""))},[C,E]),A=u.useCallback(()=>{y(!1),l==null||l()},[l]),O=u.useCallback(b=>{I(b),t==null||t($.formatColor(b,s))},[t,s]);return{isOpen:f,selectedColor:w,recentColors:x,customColor:C,isFocused:S,isHovered:M,handleToggle:P,handleColorSelect:E,handleCustomColorChange:k,handleCustomColorSubmit:_,handleClose:A,setIsFocused:p,setIsHovered:W,setValue:O,triggerRef:V,dropdownRef:B}},Pe={container:{position:"relative",display:"inline-block",width:"fit-content"},trigger:{display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",transition:"all 0.2s ease-in-out",backgroundColor:"color-white",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-300",padding:"8px 12px",borderRadius:8},dropdown:{position:"absolute",top:"calc(100% + 4px)",left:0,right:0,zIndex:1e3,backgroundColor:"color-white",borderRadius:12,borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.1)",padding:"16px",minWidth:"280px"},colorGrid:{display:"grid",gridTemplateColumns:"repeat(8, 1fr)",gap:"8px"},recentColors:{display:"flex",gap:"4px",flexWrap:"wrap"}},qo={xs:{height:"28px",fontSize:"10px",padding:"4px 8px"},sm:{height:"32px",fontSize:"12px",padding:"6px 10px"},md:{height:"40px",fontSize:"14px",padding:"8px 12px"},lg:{height:"48px",fontSize:"16px",padding:"12px 16px"},xl:{height:"56px",fontSize:"20px",padding:"16px 20px"}},zo={default:{borderRadius:8},square:{borderRadius:0},rounded:{borderRadius:8},pill:{borderRadius:9999}},Wo={default:{backgroundColor:"color-white",borderColor:"color-gray-300",borderWidth:"1px",borderStyle:"solid"},outline:{backgroundColor:"transparent",borderColor:"color-gray-300",borderWidth:"1px",borderStyle:"solid"},none:{backgroundColor:"transparent",borderColor:"transparent",borderWidth:"0px"}},Do=[{name:"Red 500",value:"color-red-500"},{name:"Orange 500",value:"color-orange-500"},{name:"Yellow 500",value:"color-yellow-500"},{name:"Green 500",value:"color-green-500"},{name:"Blue 500",value:"color-blue-500"},{name:"Indigo 500",value:"color-indigo-500"},{name:"Purple 500",value:"color-purple-500"},{name:"Pink 500",value:"color-pink-500"},{name:"Red 300",value:"color-red-300"},{name:"Orange 300",value:"color-orange-300"},{name:"Yellow 300",value:"color-yellow-300"},{name:"Green 300",value:"color-green-300"},{name:"Blue 300",value:"color-blue-300"},{name:"Indigo 300",value:"color-indigo-300"},{name:"Purple 300",value:"color-purple-300"},{name:"Pink 300",value:"color-pink-300"},{name:"Red 700",value:"color-red-700"},{name:"Orange 700",value:"color-orange-700"},{name:"Yellow 700",value:"color-yellow-700"},{name:"Green 700",value:"color-green-700"},{name:"Blue 700",value:"color-blue-700"},{name:"Indigo 700",value:"color-indigo-700"},{name:"Purple 700",value:"color-purple-700"},{name:"Pink 700",value:"color-pink-700"},{name:"Gray 100",value:"color-gray-100"},{name:"Gray 300",value:"color-gray-300"},{name:"Gray 500",value:"color-gray-500"},{name:"Gray 700",value:"color-gray-700"},{name:"Gray 900",value:"color-gray-900"},{name:"White",value:"color-white"},{name:"Black",value:"color-black"},{name:"Transparent",value:"transparent"}],ho=({id:e,name:o,label:a,placeholder:t="Select a color",helperText:r,views:n={},size:l="md",shape:c="default",variant:m="default",shadow:h,error:g=!1,isDisabled:s=!1,isReadOnly:f=!1,isFocused:y=!1,isHovered:w=!1,predefinedColors:I=Do,showCustomInput:C=!0,showRecentColors:q=!0,isOpen:x=!1,selectedColor:T="",recentColors:S=[],customColor:p="",handleToggle:M=()=>{},handleColorSelect:W=()=>{},handleCustomColorChange:V=()=>{},handleCustomColorSubmit:B=()=>{},handleClose:F,setIsFocused:P=()=>{},setIsHovered:E=()=>{},setValue:k,triggerRef:_,dropdownRef:A,onChange:O,onChangeComplete:b,onBlur:R,onFocus:K,onOpen:z,onClose:oe,colorFormat:ie,maxRecentColors:D,closeOnSelect:N,value:v,defaultValue:H,"aria-label":G,...ee})=>{const{getColor:U}=d.useTheme(),je=u.useId(),ne=e??je,ce=`${ne}-label`,fe=`${ne}-listbox`,se=`${ne}-helper-text`,ye=`${ne}-error-text`,de=!!g&&typeof g=="string",Oe=[r?se:null,de?ye:null].filter(Boolean).join(" ")||void 0,Re={...Pe.container,...n==null?void 0:n.container},Ae={...Pe.trigger,...qo[l],...zo[c],...Wo[m],...g&&{borderColor:"color-red-500"},...s&&{opacity:.6,cursor:"not-allowed"},...y&&{borderColor:"theme-primary",boxShadow:"0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px rgba(29, 78, 216, 0.16)"},...w&&!s&&{borderColor:"color-gray-400"},...n==null?void 0:n.trigger,...h&&h},Ee={...Pe.dropdown,...n==null?void 0:n.dropdown},j={...Pe.colorGrid,...n==null?void 0:n.colorGrid},J={...Pe.recentColors,...n==null?void 0:n.recentColors},ge=T||"color-gray-200";return i.jsxs(d.View,{...Re,...ee,children:[a&&i.jsx(Eo.Label,{id:ce,htmlFor:ne,size:l,isDisabled:s,error:g,views:n==null?void 0:n.label,children:a}),o&&i.jsx("input",{type:"hidden",name:o,value:$.formatColor(T,ie)}),i.jsxs(d.View,{ref:_,id:ne,onClick:s||f?void 0:M,onKeyDown:Y=>{s||f||(Y.key==="Enter"||Y.key===" ")&&(Y.preventDefault(),M())},onMouseEnter:()=>E(!0),onMouseLeave:()=>E(!1),onFocus:()=>{P(!0),K&&K()},onBlur:Y=>{P(!1),R&&R(Y)},tabIndex:s?-1:0,role:"button","aria-expanded":x,"aria-haspopup":"listbox","aria-controls":x?fe:void 0,"aria-labelledby":!G&&a?ce:void 0,"aria-label":G??(a?void 0:t),"aria-describedby":Oe,"aria-invalid":g?!0:void 0,width:"fit-content",gap:8,...Ae,children:[i.jsx(d.View,{width:"20px",height:"20px",borderRadius:"4px",backgroundColor:ge,borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-300"}),!f&&!s&&i.jsx(Z.ChevronIcon,{widthHeight:16,color:"color-gray-500",orientation:x?"up":"down"})]}),x&&i.jsxs(d.View,{ref:A,...Ee,children:[i.jsx(d.View,{id:fe,role:"listbox","aria-labelledby":a?ce:void 0,"aria-label":a?void 0:"Color options",...j,children:I.map((Y,ue)=>i.jsx(d.View,{role:"option","aria-selected":T===Y.value,"aria-label":Y.name,tabIndex:0,width:"24px",height:"24px",borderRadius:"8px",backgroundColor:Y.value,borderWidth:"2px",borderStyle:"solid",borderColor:T===Y.value?"theme-primary":"transparent",cursor:"pointer",transition:"transform 0.2s ease, border-color 0.2s ease",onClick:()=>W(Y.value),onKeyDown:me=>{(me.key==="Enter"||me.key===" ")&&(me.preventDefault(),W(Y.value))},title:Y.name,_hover:{transform:"scale(1.05)",borderColor:"color-gray-400"},...n==null?void 0:n.colorSwatch},ue))}),q&&S.length>0&&i.jsxs(d.Vertical,{gap:8,marginTop:"16px",children:[i.jsx(d.Text,{fontSize:"12px",fontWeight:"500",color:"color-gray-600",children:"Recent Colors"}),i.jsx(d.Horizontal,{gap:4,flexWrap:"wrap",...J,children:S.map((Y,ue)=>i.jsx(d.View,{width:"20px",height:"20px",borderRadius:"8px",backgroundColor:Y,borderWidth:"1px",borderStyle:"solid",borderColor:T===Y?"theme-primary":"color-gray-300",cursor:"pointer",transition:"transform 0.2s ease, border-color 0.2s ease",onClick:()=>W(Y),title:Y,_hover:{transform:"scale(1.05)",borderColor:"color-gray-400"}},ue))})]}),C&&i.jsxs(d.Vertical,{gap:8,marginTop:"16px",children:[i.jsx(d.Text,{fontSize:"12px",fontWeight:"500",color:"color-gray-600",children:"Custom Color"}),i.jsxs(d.Horizontal,{gap:8,children:[i.jsx(xe.TextField,{value:p,onChange:V,placeholder:"#000000 or rgb(0,0,0)","aria-label":"Custom color",size:"sm",style:{flex:1},views:n==null?void 0:n.customInput}),i.jsx(d.Element,{as:"button",type:"button",padding:"8px 12px",backgroundColor:"theme-primary",border:"none",borderRadius:"8px",cursor:"pointer",onClick:B,transition:"background-color 0.2s ease, opacity 0.2s ease",_hover:{backgroundColor:"color-blue-700"},children:i.jsx(d.Text,{color:"color-white",fontSize:"12px",fontWeight:"500",children:"Add"})})]})]})]}),r&&i.jsx(d.Text,{id:se,fontSize:"12px",color:g?"theme-error":"color-gray-600",marginTop:"4px",...n==null?void 0:n.helperText,children:r}),de&&i.jsx(d.Text,{id:ye,fontSize:"12px",color:"theme-error",marginTop:"4px",...n==null?void 0:n.error,children:g})]})},Ue=[{name:"Afghanistan",dial_code:"+93",emoji:"🇦🇫",code:"AF"},{name:"Aland Islands",dial_code:"+358",emoji:"🇦🇽",code:"AX"},{name:"Albania",dial_code:"+355",emoji:"🇦🇱",code:"AL"},{name:"Algeria",dial_code:"+213",emoji:"🇩🇿",code:"DZ"},{name:"AmericanSamoa",dial_code:"+1684",emoji:"🇦🇸",code:"AS"},{name:"Andorra",dial_code:"+376",emoji:"🇦🇩",code:"AD"},{name:"Angola",dial_code:"+244",emoji:"🇦🇴",code:"AO"},{name:"Anguilla",dial_code:"+1264",emoji:"🇦🇮",code:"AI"},{name:"Antarctica",dial_code:"+672",emoji:"🇦🇶",code:"AQ"},{name:"Antigua and Barbuda",dial_code:"+1268",emoji:"🇦🇬",code:"AG"},{name:"Argentina",dial_code:"+54",emoji:"🇦🇷",code:"AR"},{name:"Armenia",dial_code:"+374",emoji:"🇦🇲",code:"AM"},{name:"Aruba",dial_code:"+297",emoji:"🇦🇼",code:"AW"},{name:"Australia",dial_code:"+61",emoji:"🇦🇺",code:"AU"},{name:"Austria",dial_code:"+43",emoji:"🇦🇹",code:"AT"},{name:"Azerbaijan",dial_code:"+994",emoji:"🇦🇿",code:"AZ"},{name:"Bahamas",dial_code:"+1242",emoji:"🇧🇸",code:"BS"},{name:"Bahrain",dial_code:"+973",emoji:"🇧🇭",code:"BH"},{name:"Bangladesh",dial_code:"+880",emoji:"🇧🇩",code:"BD"},{name:"Barbados",dial_code:"+1246",emoji:"🇧🇧",code:"BB"},{name:"Belarus",dial_code:"+375",emoji:"🇧🇾",code:"BY"},{name:"Belgium",dial_code:"+32",emoji:"🇧🇪",code:"BE"},{name:"Belize",dial_code:"+501",emoji:"🇧🇿",code:"BZ"},{name:"Benin",dial_code:"+229",emoji:"🇧🇯",code:"BJ"},{name:"Bermuda",dial_code:"+1441",emoji:"🇧🇲",code:"BM"},{name:"Bhutan",dial_code:"+975",emoji:"🇧🇹",code:"BT"},{name:"Bolivia, Plurinational State of",dial_code:"+591",emoji:"🇧🇴",code:"BO"},{name:"Bosnia and Herzegovina",dial_code:"+387",emoji:"🇧🇦",code:"BA"},{name:"Botswana",dial_code:"+267",emoji:"🇧🇼",code:"BW"},{name:"Brazil",dial_code:"+55",emoji:"🇧🇷",code:"BR"},{name:"British Indian Ocean Territory",dial_code:"+246",emoji:"🇮🇴",code:"IO"},{name:"Brunei Darussalam",dial_code:"+673",emoji:"🇧🇳",code:"BN"},{name:"Bulgaria",dial_code:"+359",emoji:"🇧🇬",code:"BG"},{name:"Burkina Faso",dial_code:"+226",emoji:"🇧🇫",code:"BF"},{name:"Burundi",dial_code:"+257",emoji:"🇧🇮",code:"BI"},{name:"Cambodia",dial_code:"+855",emoji:"🇰🇭",code:"KH"},{name:"Cameroon",dial_code:"+237",emoji:"🇨🇲",code:"CM"},{name:"Canada",dial_code:"+1",emoji:"🇨🇦",code:"CA"},{name:"Cape Verde",dial_code:"+238",emoji:"🇨🇻",code:"CV"},{name:"Cayman Islands",dial_code:"+345",emoji:"🇰🇾",code:"KY"},{name:"Central African Republic",dial_code:"+236",emoji:"🇨🇫",code:"CF"},{name:"Chad",dial_code:"+235",emoji:"🇹🇩",code:"TD"},{name:"Chile",dial_code:"+56",emoji:"🇨🇱",code:"CL"},{name:"China",dial_code:"+86",emoji:"🇨🇳",code:"CN"},{name:"Christmas Island",dial_code:"+61",emoji:"🇨🇽",code:"CX"},{name:"Cocos (Keeling) Islands",dial_code:"+61",emoji:"🇨🇨",code:"CC"},{name:"Colombia",dial_code:"+57",emoji:"🇨🇴",code:"CO"},{name:"Comoros",dial_code:"+269",emoji:"🇰🇲",code:"KM"},{name:"Congo",dial_code:"+242",emoji:"🇨🇬",code:"CG"},{name:"Congo, The Democratic Republic of the Congo",dial_code:"+243",emoji:"🇨🇩",code:"CD"},{name:"Cook Islands",dial_code:"+682",emoji:"🇨🇰",code:"CK"},{name:"Costa Rica",dial_code:"+506",emoji:"🇨🇷",code:"CR"},{name:"Cote d'Ivoire",dial_code:"+225",emoji:"🇨🇮",code:"CI"},{name:"Croatia",dial_code:"+385",emoji:"🇭🇷",code:"HR"},{name:"Cuba",dial_code:"+53",emoji:"🇨🇺",code:"CU"},{name:"Cyprus",dial_code:"+357",emoji:"🇨🇾",code:"CY"},{name:"Czech Republic",dial_code:"+420",emoji:"🇨🇿",code:"CZ"},{name:"Denmark",dial_code:"+45",emoji:"🇩🇰",code:"DK"},{name:"Djibouti",dial_code:"+253",emoji:"🇩🇯",code:"DJ"},{name:"Dominica",dial_code:"+1767",emoji:"🇩🇲",code:"DM"},{name:"Dominican Republic",dial_code:"+1849",emoji:"🇩🇴",code:"DO"},{name:"Ecuador",dial_code:"+593",emoji:"🇪🇨",code:"EC"},{name:"Egypt",dial_code:"+20",emoji:"🇪🇬",code:"EG"},{name:"El Salvador",dial_code:"+503",emoji:"🇸🇻",code:"SV"},{name:"Equatorial Guinea",dial_code:"+240",emoji:"🇬🇶",code:"GQ"},{name:"Eritrea",dial_code:"+291",emoji:"🇪🇷",code:"ER"},{name:"Estonia",dial_code:"+372",emoji:"🇪🇪",code:"EE"},{name:"Ethiopia",dial_code:"+251",emoji:"🇪🇹",code:"ET"},{name:"Falkland Islands (Malvinas)",dial_code:"+500",emoji:"🇫🇰",code:"FK"},{name:"Faroe Islands",dial_code:"+298",emoji:"🇫🇴",code:"FO"},{name:"Fiji",dial_code:"+679",emoji:"🇫🇯",code:"FJ"},{name:"Finland",dial_code:"+358",emoji:"🇫🇮",code:"FI"},{name:"France",dial_code:"+33",emoji:"🇫🇷",code:"FR"},{name:"French Guiana",dial_code:"+594",emoji:"🇬🇫",code:"GF"},{name:"French Polynesia",dial_code:"+689",emoji:"🇵🇫",code:"PF"},{name:"Gabon",dial_code:"+241",emoji:"🇬🇦",code:"GA"},{name:"Gambia",dial_code:"+220",emoji:"🇬🇲",code:"GM"},{name:"Georgia",dial_code:"+995",emoji:"🇬🇪",code:"GE"},{name:"Germany",dial_code:"+49",emoji:"🇩🇪",code:"DE"},{name:"Ghana",dial_code:"+233",emoji:"🇬🇭",code:"GH"},{name:"Gibraltar",dial_code:"+350",emoji:"🇬🇮",code:"GI"},{name:"Greece",dial_code:"+30",emoji:"🇬🇷",code:"GR"},{name:"Greenland",dial_code:"+299",emoji:"🇬🇱",code:"GL"},{name:"Grenada",dial_code:"+1473",emoji:"🇬🇩",code:"GD"},{name:"Guadeloupe",dial_code:"+590",emoji:"🇬🇵",code:"GP"},{name:"Guam",dial_code:"+1671",emoji:"🇬🇺",code:"GU"},{name:"Guatemala",dial_code:"+502",emoji:"🇬🇹",code:"GT"},{name:"Guernsey",dial_code:"+44",emoji:"🇬🇬",code:"GG"},{name:"Guinea",dial_code:"+224",emoji:"🇬🇳",code:"GN"},{name:"Guinea-Bissau",dial_code:"+245",emoji:"🇬🇼",code:"GW"},{name:"Guyana",dial_code:"+595",emoji:"🇬🇾",code:"GY"},{name:"Haiti",dial_code:"+509",emoji:"🇭🇹",code:"HT"},{name:"Holy See (Vatican City State)",dial_code:"+379",emoji:"🇻🇦",code:"VA"},{name:"Honduras",dial_code:"+504",emoji:"🇭🇳",code:"HN"},{name:"Hong Kong",dial_code:"+852",emoji:"🇭🇰",code:"HK"},{name:"Hungary",dial_code:"+36",emoji:"🇭🇺",code:"HU"},{name:"Iceland",dial_code:"+354",emoji:"🇮🇸",code:"IS"},{name:"India",dial_code:"+91",emoji:"🇮🇳",code:"IN"},{name:"Indonesia",dial_code:"+62",emoji:"🇮🇩",code:"ID"},{name:"Iran, Islamic Republic of Persian Gulf",dial_code:"+98",emoji:"🇮🇷",code:"IR"},{name:"Iraq",dial_code:"+964",emoji:"🇮🇷",code:"IQ"},{name:"Ireland",dial_code:"+353",emoji:"🇮🇪",code:"IE"},{name:"Isle of Man",dial_code:"+44",emoji:"🇮🇲",code:"IM"},{name:"Israel",dial_code:"+972",emoji:"🇮🇱",code:"IL"},{name:"Italy",dial_code:"+39",emoji:"🇮🇹",code:"IT"},{name:"Jamaica",dial_code:"+1876",emoji:"🇯🇲",code:"JM"},{name:"Japan",dial_code:"+81",emoji:"🇯🇵",code:"JP"},{name:"Jersey",dial_code:"+44",emoji:"🇯🇪",code:"JE"},{name:"Jordan",dial_code:"+962",emoji:"🇯🇴",code:"JO"},{name:"Kazakhstan",dial_code:"+77",emoji:"🇰🇿",code:"KZ"},{name:"Kenya",dial_code:"+254",emoji:"🇰🇪",code:"KE"},{name:"Kiribati",dial_code:"+686",emoji:"🇰🇮",code:"KI"},{name:"Korea, Democratic People's Republic of Korea",dial_code:"+850",emoji:"🇰🇵",code:"KP"},{name:"Korea, Republic of South Korea",dial_code:"+82",emoji:"🇰🇷",code:"KR"},{name:"Kuwait",dial_code:"+965",emoji:"🇰🇼",code:"KW"},{name:"Kyrgyzstan",dial_code:"+996",emoji:"🇰🇬",code:"KG"},{name:"Laos",dial_code:"+856",emoji:"🇱🇦",code:"LA"},{name:"Latvia",dial_code:"+371",emoji:"🇱🇻",code:"LV"},{name:"Lebanon",dial_code:"+961",emoji:"🇱🇧",code:"LB"},{name:"Lesotho",dial_code:"+266",emoji:"🇱🇸",code:"LS"},{name:"Liberia",dial_code:"+231",emoji:"🇱🇷",code:"LR"},{name:"Libyan Arab Jamahiriya",dial_code:"+218",emoji:"🇱🇾",code:"LY"},{name:"Liechtenstein",dial_code:"+423",emoji:"🇱🇮",code:"LI"},{name:"Lithuania",dial_code:"+370",emoji:"🇱🇹",code:"LT"},{name:"Luxembourg",dial_code:"+352",emoji:"🇱🇺",code:"LU"},{name:"Macao",dial_code:"+853",emoji:"🇲🇴",code:"MO"},{name:"Macedonia",dial_code:"+389",emoji:"🇲🇰",code:"MK"},{name:"Madagascar",dial_code:"+261",emoji:"🇲🇬",code:"MG"},{name:"Malawi",dial_code:"+265",emoji:"🇲🇼",code:"MW"},{name:"Malaysia",dial_code:"+60",emoji:"🇲🇾",code:"MY"},{name:"Maldives",dial_code:"+960",emoji:"🇲🇻",code:"MV"},{name:"Mali",dial_code:"+223",emoji:"🇲🇱",code:"ML"},{name:"Malta",dial_code:"+356",emoji:"🇲🇹",code:"MT"},{name:"Marshall Islands",dial_code:"+692",emoji:"🇲🇭",code:"MH"},{name:"Martinique",dial_code:"+596",emoji:"🇲🇶",code:"MQ"},{name:"Mauritania",dial_code:"+222",emoji:"🇲🇷",code:"MR"},{name:"Mauritius",dial_code:"+230",emoji:"🇲🇺",code:"MU"},{name:"Mayotte",dial_code:"+262",emoji:"🇾🇹",code:"YT"},{name:"Mexico",dial_code:"+52",emoji:"🇲🇽",code:"MX"},{name:"Micronesia, Federated States of Micronesia",dial_code:"+691",emoji:"🇫🇲",code:"FM"},{name:"Moldova",dial_code:"+373",emoji:"🇲🇩",code:"MD"},{name:"Monaco",dial_code:"+377",emoji:"🇲🇨",code:"MC"},{name:"Mongolia",dial_code:"+976",emoji:"🇲🇳",code:"MN"},{name:"Montenegro",dial_code:"+382",emoji:"🇲🇪",code:"ME"},{name:"Montserrat",dial_code:"+1664",emoji:"🇲🇸",code:"MS"},{name:"Morocco",dial_code:"+212",emoji:"🇲🇦",code:"MA"},{name:"Mozambique",dial_code:"+258",emoji:"🇲🇿",code:"MZ"},{name:"Myanmar",dial_code:"+95",emoji:"🇲🇲",code:"MM"},{name:"Namibia",emoji:"🇳🇦",dial_code:"+264",code:"NA"},{name:"Nauru",dial_code:"+674",emoji:"🇳🇷",code:"NR"},{name:"Nepal",dial_code:"+977",emoji:"🇳🇵",code:"NP"},{name:"Netherlands",dial_code:"+31",emoji:"🇳🇱",code:"NL"},{name:"Netherlands Antilles",dial_code:"+599",emoji:"🇧🇶",code:"AN"},{name:"New Caledonia",dial_code:"+687",emoji:"🇳🇨",code:"NC"},{name:"New Zealand",dial_code:"+64",emoji:"🇳🇿",code:"NZ"},{name:"Nicaragua",dial_code:"+505",emoji:"🇳🇮",code:"NI"},{name:"Niger",dial_code:"+227",emoji:"🇳🇪",code:"NE"},{name:"Nigeria",dial_code:"+234",emoji:"🇳🇬",code:"NG"},{name:"Niue",dial_code:"+683",emoji:"🇳🇺",code:"NU"},{name:"Norfolk Island",dial_code:"+672",emoji:"🇳🇫",code:"NF"},{name:"Northern Mariana Islands",dial_code:"+1670",emoji:"🇲🇵",code:"MP"},{name:"Norway",dial_code:"+47",emoji:"🇳🇴",code:"NO"},{name:"Oman",dial_code:"+968",emoji:"🇴🇲",code:"OM"},{name:"Pakistan",dial_code:"+92",emoji:"🇵🇰",code:"PK"},{name:"Palau",dial_code:"+680",emoji:"🇵🇼",code:"PW"},{name:"Palestinian Territory, Occupied",dial_code:"+970",emoji:"🇵🇸",code:"PS"},{name:"Panama",dial_code:"+507",emoji:"🇵🇦",code:"PA"},{name:"Papua New Guinea",dial_code:"+675",emoji:"🇵🇬",code:"PG"},{name:"Paraguay",dial_code:"+595",emoji:"🇵🇾",code:"PY"},{name:"Peru",dial_code:"+51",emoji:"🇵🇪",code:"PE"},{name:"Philippines",dial_code:"+63",emoji:"🇵🇭",code:"PH"},{name:"Pitcairn",dial_code:"+872",emoji:"🇵🇳",code:"PN"},{name:"Poland",dial_code:"+48",emoji:"🇵🇱",code:"PL"},{name:"Portugal",dial_code:"+351",emoji:"🇵🇹",code:"PT"},{name:"Puerto Rico",dial_code:"+1939",emoji:"🇵🇷",code:"PR"},{name:"Qatar",dial_code:"+974",emoji:"🇶🇦",code:"QA"},{name:"Romania",dial_code:"+40",emoji:"🇷🇴",code:"RO"},{name:"Russia",dial_code:"+7",emoji:"🇷🇺",code:"RU"},{name:"Rwanda",dial_code:"+250",emoji:"🇷🇼",code:"RW"},{name:"Reunion",dial_code:"+262",emoji:"🇷🇪",code:"RE"},{name:"Saint Barthelemy",dial_code:"+590",emoji:"🇧🇱",code:"BL"},{name:"Saint Helena, Ascension and Tristan Da Cunha",dial_code:"+290",emoji:"🇸🇭",code:"SH"},{name:"Saint Kitts and Nevis",dial_code:"+1869",emoji:"🇰🇳",code:"KN"},{name:"Saint Lucia",dial_code:"+1758",emoji:"🇱🇨",code:"LC"},{name:"Saint Martin",dial_code:"+590",emoji:"🇲🇫",code:"MF"},{name:"Saint Pierre and Miquelon",dial_code:"+508",emoji:"🇵🇲",code:"PM"},{name:"Saint Vincent and the Grenadines",dial_code:"+1784",emoji:"🇻🇨",code:"VC"},{name:"Samoa",dial_code:"+685",emoji:"🇼🇸",code:"WS"},{name:"San Marino",dial_code:"+378",emoji:"🇸🇲",code:"SM"},{name:"Sao Tome and Principe",dial_code:"+239",emoji:"🇸🇹",code:"ST"},{name:"Saudi Arabia",dial_code:"+966",emoji:"🇸🇦",code:"SA"},{name:"Senegal",dial_code:"+221",emoji:"🇸🇳",code:"SN"},{name:"Serbia",dial_code:"+381",emoji:"🇷🇸",code:"RS"},{name:"Seychelles",dial_code:"+248",emoji:"🇸🇨",code:"SC"},{name:"Sierra Leone",dial_code:"+232",emoji:"🇸🇱",code:"SL"},{name:"Singapore",dial_code:"+65",emoji:"🇸🇬",code:"SG"},{name:"Slovakia",dial_code:"+421",emoji:"🇸🇰",code:"SK"},{name:"Slovenia",dial_code:"+386",emoji:"🇸🇮",code:"SI"},{name:"Solomon Islands",dial_code:"+677",emoji:"🇸🇧",code:"SB"},{name:"Somalia",dial_code:"+252",emoji:"🇸🇴",code:"SO"},{name:"South Africa",dial_code:"+27",emoji:"🇿🇦",code:"ZA"},{name:"South Sudan",dial_code:"+211",emoji:"🇸🇸",code:"SS"},{name:"South Georgia and the South Sandwich Islands",dial_code:"+500",emoji:"🇬🇸",code:"GS"},{name:"Spain",dial_code:"+34",emoji:"🇪🇸",code:"ES"},{name:"Sri Lanka",dial_code:"+94",emoji:"🇱🇰",code:"LK"},{name:"Sudan",dial_code:"+249",emoji:"🇸🇩",code:"SD"},{name:"Suriname",dial_code:"+597",emoji:"🇸🇷",code:"SR"},{name:"Svalbard and Jan Mayen",dial_code:"+47",emoji:"🇸🇯",code:"SJ"},{name:"Swaziland",dial_code:"+268",emoji:"🇸🇿",code:"SZ"},{name:"Sweden",dial_code:"+46",emoji:"🇸🇪",code:"SE"},{name:"Switzerland",dial_code:"+41",emoji:"🇨🇭",code:"CH"},{name:"Syrian Arab Republic",dial_code:"+963",emoji:"🇸🇾",code:"SY"},{name:"Taiwan",dial_code:"+886",emoji:"🇹🇼",code:"TW"},{name:"Tajikistan",dial_code:"+992",emoji:"🇹🇯",code:"TJ"},{name:"Tanzania, United Republic of Tanzania",dial_code:"+255",emoji:"🇹🇿",code:"TZ"},{name:"Thailand",dial_code:"+66",emoji:"🇹🇭",code:"TH"},{name:"Timor-Leste",dial_code:"+670",emoji:"🇹🇱",code:"TL"},{name:"Togo",dial_code:"+228",emoji:"🇹🇬",code:"TG"},{name:"Tokelau",dial_code:"+690",emoji:"🇹🇰",code:"TK"},{name:"Tonga",dial_code:"+676",emoji:"🇹🇴",code:"TO"},{name:"Trinidad and Tobago",dial_code:"+1868",emoji:"🇹🇹",code:"TT"},{name:"Tunisia",dial_code:"+216",emoji:"🇹🇳",code:"TN"},{name:"Turkey",dial_code:"+90",emoji:"🇹🇷",code:"TR"},{name:"Turkmenistan",dial_code:"+993",emoji:"🇹🇲",code:"TM"},{name:"Turks and Caicos Islands",dial_code:"+1649",emoji:"🇹🇨",code:"TC"},{name:"Tuvalu",dial_code:"+688",emoji:"🇹🇻",code:"TV"},{name:"Uganda",dial_code:"+256",emoji:"🇺🇬",code:"UG"},{name:"Ukraine",dial_code:"+380",emoji:"🇺🇦",code:"UA"},{name:"United Arab Emirates",dial_code:"+971",emoji:"🇦🇪",code:"AE"},{name:"United Kingdom",dial_code:"+44",emoji:"🇬🇧",code:"GB"},{name:"United States",dial_code:"+1",emoji:"🇺🇸",code:"US"},{name:"Uruguay",dial_code:"+598",emoji:"🇺🇾",code:"UY"},{name:"Uzbekistan",dial_code:"+998",emoji:"🇺🇿",code:"UZ"},{name:"Vanuatu",dial_code:"+678",emoji:"🇻🇺",code:"VU"},{name:"Venezuela, Bolivarian Republic of Venezuela",dial_code:"+58",emoji:"🇻🇪",code:"VE"},{name:"Vietnam",dial_code:"+84",emoji:"🇻🇳",code:"VN"},{name:"Virgin Islands, British",dial_code:"+1284",emoji:"🇻🇬",code:"VG"},{name:"Virgin Islands, U.S.",dial_code:"+1340",emoji:"🇻🇮",code:"VI"},{name:"Wallis and Futuna",dial_code:"+681",emoji:"🇼🇫",code:"WF"},{name:"Yemen",dial_code:"+967",emoji:"🇾🇪",code:"YE"},{name:"Zambia",dial_code:"+260",emoji:"🇿🇲",code:"ZM"},{name:"Zimbabwe",dial_code:"+263",emoji:"🇿🇼",code:"ZW"}],fo=({placeholder:e})=>{const[o,a]=u.useState(Ue),[t,r]=u.useState(e??Ue[0].name),[n,l]=u.useState(!0),[c,m]=u.useState(!1),[h,g]=u.useState(!1);return{hide:n,setHide:l,newOptions:o,setNewOptions:a,isHovered:h,setIsHovered:g,isFocused:c,setIsFocused:m,value:t,setValue:r}},Ze={xs:8,sm:10,md:12,lg:14,xl:16},Vo=({size:e,...o})=>i.jsx(d.Element,{as:"ul",...o}),Oo=e=>i.jsx(d.Input,{type:"text",...e}),Ro=({size:e,...o})=>i.jsx(d.Element,{as:"li",...o}),Ao=({id:e,option:o,size:a="md",isSelected:t=!1,isHighlighted:r=!1,callback:n=()=>{},views:l={text:{}}})=>{const c=m=>{m&&m.stopPropagation&&m.stopPropagation(),n(o??"")};return i.jsx(Ro,{id:e,margin:0,role:"option","aria-selected":t,listStyleType:"none",fontWeight:"normal",paddingVertical:6,paddingHorizontal:12,onClick:c,fontSize:d.Typography.fontSizes[a],backgroundColor:r?"color-gray-100":void 0,_hover:{backgroundColor:"color-gray-100",transition:"all 0.15s ease-in-out"},...l.text,children:o})},Ho=({id:e,size:o,views:a={dropDown:{}},options:t=[],selectedOption:r,highlightedIndex:n=-1,callback:l=()=>{}})=>{const c=m=>l(m);return i.jsx(Vo,{id:e,role:"listbox",margin:0,padding:0,top:"100%",width:"100%",display:"flex",zIndex:1e3,overflow:"auto",maxHeight:"300px",borderRadius:12,position:"absolute",flexDirection:"column",backgroundColor:"color-white",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.1)",...a.dropDown,children:t.map((m,h)=>i.jsx(Ao,{id:e?`${e}-option-${h}`:void 0,size:o,option:m.name,isSelected:m.name===r,isHighlighted:h===n,callback:c,...a.text},m.code))})},go=({id:e,name:o,label:a,value:t,placeholder:r,helperText:n,hide:l=!1,error:c=!1,isHovered:m=!1,isFocused:h=!1,isAutoFocus:g=!1,isDisabled:s=!1,isReadOnly:f=!1,shadow:y={},newOptions:w=[],size:I="md",variant:C="default",shape:q="default",onChange:x,onBlur:T=()=>{},setHide:S=()=>{},setNewOptions:p=()=>{},setIsHovered:M=()=>{},setIsFocused:W=()=>{},setValue:V=()=>{},selected:B,views:F={text:{},icon:{},label:{},dropDown:{},helperText:{}},themeMode:P,...E})=>{const{getColor:k,themeMode:_}=d.useTheme(),A=u.useId(),O=e??A,b=`${O}-listbox`,[R,K]=u.useState(-1),z=k("color-gray-500",{themeMode:P||_}),oe=()=>W(!0),ie=U=>{S(!l),K(-1),V(U),x&&x(U)},D=()=>{!s&&!f&&S(!l)},N=U=>{const je=U.target.value,ne=Ue.filter(ce=>ce.name.toLowerCase().startsWith(je.toLowerCase()));l&&S(!1),p(ne),K(ne.length>0?0:-1),x&&x(je)},v=U=>{s||f||(U.key==="ArrowDown"?(U.preventDefault(),l?(S(!1),K(w.length>0?0:-1)):K(Math.min(R+1,w.length-1))):U.key==="ArrowUp"?l||(U.preventDefault(),K(Math.max(R-1,0))):U.key==="Enter"?!l&&R>=0&&w[R]&&(U.preventDefault(),ie(w[R].name)):U.key==="Escape"&&(l||(S(!0),K(-1))))},H=U=>{T(U),W(!1)},G=!!a,ee={margin:0,paddingVertical:0,paddingHorizontal:0,width:"100%",height:"100%",border:"none",on:{focus:{outline:"none"}},transition:"all 0.2s ease-in-out",fontSize:d.Typography.fontSizes[I],backgroundColor:"transparent",color:s?"color-gray-400":"color-gray-900",cursor:s?"not-allowed":f?"auto":"pointer",...F.field};return i.jsxs(ae.FieldContainer,{helperText:n,error:c,views:F,onClick:D,children:[i.jsxs(ae.FieldContent,{label:a,size:I,error:c,shape:q,views:F,shadow:y,variant:C,value:t,color:"theme-primary",isDisabled:s,isReadOnly:f,isFocused:h,showLabel:G,_hover:!s&&!c?{borderColor:"theme-primary"}:void 0,children:[i.jsxs(ae.FieldWrapper,{children:[G&&i.jsx(ae.FieldLabel,{htmlFor:O,color:"theme-primary",error:c,views:F,children:a}),i.jsx(Oo,{id:O,name:o,placeholder:r,readOnly:f,disabled:s,autoFocus:g,role:"combobox","aria-expanded":!l,"aria-controls":l?void 0:b,"aria-autocomplete":"list","aria-haspopup":"listbox","aria-activedescendant":!l&&R>=0?`${b}-option-${R}`:void 0,onBlur:H,onFocus:oe,onKeyDown:v,...ee,...E,value:t,onChange:N})]}),i.jsx(ae.FieldIcons,{children:l?i.jsx(Z.ChevronIcon,{orientation:"down",widthHeight:Ze[I],color:z,style:F.icon}):i.jsx(Z.ChevronIcon,{orientation:"up",widthHeight:Ze[I],color:z,style:F.icon})})]}),!l&&i.jsx(Ho,{id:b,size:I,views:F,options:w,selectedOption:t,highlightedIndex:R,callback:ie})]})},po=e=>{const o=xe.useTextFieldState(e),[a,t]=u.useState(!1);return{isVisible:a,setIsVisible:t,...e,...o}},bo=(e,o,a)=>{const[t,r]=u.useState(e),[n,l]=u.useState(o?{value:o,label:o}:e[0]),[c,m]=u.useState([]),[h,g]=u.useState(0),[s,f]=u.useState(a??""),[y,w]=u.useState(!1);return{filteredItems:t,setFilteredItems:r,selectedItem:n,setSelectedItem:l,selectedItems:c,setSelectedItems:m,highlightedIndex:h,setHighlightedIndex:g,searchQuery:s,setSearchQuery:f,isDropdownVisible:y,setIsDropdownVisible:w}},Bo={xs:12,sm:14,md:16,lg:20,xl:24},Lo={maxHeight:"280px",overflowY:"auto",zIndex:1e3,backgroundColor:"color-white",borderRadius:12,borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.1)"},eo={enter:{opacity:1,transform:"translateY(0) scale(1)",transition:"all 0.2s ease-in-out"},initial:{opacity:0,transform:"translateY(-8px) scale(0.96)"}},Go={padding:"8px",borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:"color-gray-100",backgroundColor:"color-gray-50",borderTopLeftRadius:10,borderTopRightRadius:10},Uo={padding:"8px 10px",cursor:"pointer",borderRadius:8,margin:"1px 4px",transition:"all 0.15s ease-in-out"},No={padding:"24px 16px",display:"flex",flexDirection:"column",alignItems:"center",gap:"8px"},oo={open:{transform:"rotate(180deg)",transition:"all 0.2s ease-in-out"},closed:{transform:"rotate(0deg)",transition:"all 0.2s ease-in-out"}},Yo={display:"inline-flex",alignItems:"center",gap:"4px",padding:"2px 8px",backgroundColor:"color-gray-100",borderRadius:8,fontSize:"12px",fontWeight:"500",color:"color-gray-700",transition:"all 0.15s ease-in-out"},xo=({placeholder:e,items:o,showTick:a=!0,onSelect:t,searchEnabled:r=!0,left:n,right:l,label:c,filteredItems:m,setSelectedItem:h,selectedItem:g,selectedItems:s,setSelectedItems:f,highlightedIndex:y,setHighlightedIndex:w,searchQuery:I,setSearchQuery:C,setFilteredItems:q,views:x,isDropdownVisible:T,setIsDropdownVisible:S,isMulti:p=!1,searchPlaceholder:M,size:W="md",...V})=>{const B=u.useId(),F=V.id??B,P=`${F}-dropdown`,E=`${F}-label`,{ref:k,relation:_}=d.useElementPosition({trackChanges:!0,trackOnScroll:!0,trackOnResize:!0,throttleMs:10}),A=u.useRef(null),[O,b]=u.useState(!1),[R,K]=u.useState(!1),z=()=>{var U;const v=R?eo.enter:eo.initial;if(!k.current)return{};const H=k.current.getBoundingClientRect(),G={position:"fixed",left:H.left,width:H.width,zIndex:1e4,...v};return((U=_==null?void 0:_.space)==null?void 0:U.vertical)==="top"?{...G,bottom:window.innerHeight-H.top+6}:{...G,top:H.bottom+6}};u.useEffect(()=>{if(T){const v=setTimeout(()=>K(!0),10);return()=>clearTimeout(v)}K(!1)},[T]),u.useEffect(()=>{const v=H=>{!H.composedPath().some(U=>(U==null?void 0:U.id)===P)&&k.current&&!k.current.contains(H.target)&&S(!1)};return document.addEventListener("mousedown",v),()=>document.removeEventListener("mousedown",v)},[]);const oe=v=>{if(C(v),v==="")q(o);else{const H=o.filter(G=>G.label.toLowerCase().includes(v.toLowerCase()));q(H)}w(0)},ie=v=>{if(p){const H=s.some(ee=>ee.value===v.value);let G;H?G=s.filter(ee=>ee.value!==v.value):G=[...s,v],f(G),t==null||t(G)}else h(v),t==null||t(v),S(!1)},D=(v,H)=>{v.stopPropagation();const G=s.filter(ee=>ee.value!==H.value);f(G),t==null||t(G)},N=v=>p?s.some(H=>H.value===v.value):v.value===g.value;return i.jsxs(d.Horizontal,{flexWrap:"nowrap",gap:15,alignItems:"center",width:"100%",...V,children:[c&&i.jsx(d.Text,{id:E,views:x==null?void 0:x.label,children:c}),i.jsxs(d.View,{position:"relative",width:"100%",children:[i.jsx("div",{ref:k,role:"combobox",tabIndex:0,"aria-expanded":T,"aria-haspopup":"listbox","aria-controls":T?P:void 0,"aria-labelledby":c?E:void 0,onClick:()=>S(!T),onKeyDown:v=>{v.key==="Enter"||v.key===" "||v.key==="ArrowDown"?(v.preventDefault(),S(!0)):v.key==="Escape"&&S(!1)},style:{width:"100%"},children:i.jsxs(ae.FieldContent,{size:W,isHovered:O,isFocused:T,onMouseEnter:()=>b(!0),onMouseLeave:()=>b(!1),cursor:"pointer",views:{container:x==null?void 0:x.container},children:[i.jsxs(d.Horizontal,{gap:10,alignItems:"center",flex:1,minWidth:0,flexWrap:p?"wrap":"nowrap",...x==null?void 0:x.labelContainer,children:[n,p?s.length>0?i.jsx(d.Horizontal,{gap:6,flexWrap:"wrap",alignItems:"center",children:s.map(v=>i.jsxs(d.Horizontal,{...Yo,_hover:{backgroundColor:"color-gray-200"},children:[v.icon&&i.jsx(d.View,{flexShrink:0,children:v.icon}),i.jsx(d.Text,{size:"sm",color:"color-gray-700",weight:"medium",children:v.label}),i.jsx(Z.CloseIcon,{widthHeight:12,color:"color-gray-500",cursor:"pointer",onClick:H=>D(H,v)})]},v.value))}):i.jsx(d.Text,{weight:"medium",flexGrow:1,color:"color-gray-500",style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},...x==null?void 0:x.label,children:e}):i.jsxs(i.Fragment,{children:[g.icon&&g.label!==e&&i.jsx(d.View,{children:g.icon}),i.jsx(d.Text,{weight:"medium",flexGrow:1,color:g.label===e?"color-gray-500":"color-gray-800",style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},...x==null?void 0:x.label,children:g.label})]})]}),i.jsxs(d.Horizontal,{gap:8,alignItems:"center",flexShrink:0,children:[l,i.jsx(d.View,{style:T?oo.open:oo.closed,children:i.jsx(Z.ChevronIcon,{widthHeight:Bo[W],orientation:"down",color:T?"color-gray-700":"color-gray-400"})})]})]})}),T&&i.jsx(qe.Portal,{children:i.jsxs(d.View,{ref:A,id:P,role:"listbox","aria-labelledby":c?E:void 0,...Lo,style:z(),...x==null?void 0:x.dropdown,children:[r&&i.jsx(d.View,{...Go,children:i.jsx(xe.TextFieldView,{id:`${F}-search`,name:`${V.name??F}-search`,width:"100%",type:"search",autoFocus:!0,value:I,onChange:v=>oe(v),hint:M||e||"Search...","aria-label":M||"Search",isClearable:!1,left:i.jsx(Z.SearchIcon,{widthHeight:14,color:"color-gray-400"}),views:{container:{width:"100%",padding:"0",backgroundColor:"transparent",borderColor:"color-gray-200",...x==null?void 0:x.text},field:{fontSize:"13px"}}})}),m.length>0&&i.jsx(d.View,{margin:0,padding:"4px",children:m.map((v,H)=>{const G=N(v),ee=H===y;return i.jsxs(d.Horizontal,{role:"option","aria-selected":G,justifyContent:"space-between",alignItems:"center",...Uo,backgroundColor:G&&ee?"color-blue-100":G?"color-blue-50":ee?"color-gray-100":"transparent",onMouseEnter:()=>w(H),onClick:()=>ie(v),...x==null?void 0:x.item,children:[i.jsxs(d.Horizontal,{gap:8,alignItems:"center",children:[v.icon&&i.jsx(d.View,{flexShrink:0,children:v.icon}),i.jsx(d.Text,{size:"sm",color:G?"theme-primary":"color-gray-800",weight:G?"medium":"normal",children:v.label})]}),G&&a&&i.jsx(Z.TickIcon,{widthHeight:16,color:"theme-primary"})]},v.value)})}),m.length===0&&i.jsxs(d.Vertical,{...No,children:[i.jsx(Z.SearchIcon,{widthHeight:24,color:"color-gray-300"}),i.jsx(d.Text,{color:"color-gray-500",size:"sm",align:"center",children:"No results found"}),i.jsx(d.Text,{color:"color-gray-400",size:"xs",align:"center",children:"Try a different search term"})]})]})})]})]})},yo=e=>{const{tags:o,defaultTags:a=[],onTagsChange:t,onTagAdd:r,onTagRemove:n,maxTags:l,minTagLength:c=1,maxTagLength:m=50,allowDuplicates:h=!1,separators:g=["enter","comma"],isDisabled:s=!1,isReadOnly:f=!1}=e,[y,w]=u.useState(""),[I,C]=u.useState(()=>(o||a||[]).map((_,A)=>({id:`tag-${A}-${Date.now()}`,value:_}))),[q,x]=u.useState(!1),[T,S]=u.useState(!1),p=o&&Array.isArray(o)?o.map((k,_)=>({id:`tag-${_}-${Date.now()}`,value:k})):I;u.useEffect(()=>{o&&Array.isArray(o)&&C(o.map((k,_)=>({id:`tag-${_}-${Date.now()}`,value:k})))},[o]);const M=u.useCallback(k=>{const _=k.trim();return!(_.length<c||_.length>m||!h&&p.map(O=>O.value.toLowerCase()).includes(_.toLowerCase())||l&&p.length>=l)},[p,c,m,h,l]),W=u.useCallback(k=>{if(s||f)return;const _=k.trim();if(!_||!M(_))return;const A={id:`tag-${Date.now()}-${Math.random()}`,value:_},O=[...p,A],b=O.map(R=>R.value);o||C(O),t==null||t(b),r==null||r(_),w("")},[p,M,t,r,s,f,o]),V=u.useCallback(k=>{if(s||f)return;const _=p[k];if(!_)return;const A=p.filter((b,R)=>R!==k),O=A.map(b=>b.value);o||C(A),t==null||t(O),n==null||n(_.value,k)},[p,t,n,s,f,o]),B=u.useCallback(k=>{if(s||f)return;const _=k.target.value;if(g.includes("comma")&&_.includes(",")){const A=_.split(","),O=A[0],b=A.slice(1).join(",");O.trim()&&W(O),w(b);return}w(_)},[W,g,s,f]),F=u.useCallback(k=>{if(s||f)return;const{key:_}=k;if(g.includes("enter")&&_==="Enter"){k.preventDefault(),y.trim()&&W(y);return}if(g.includes("tab")&&_==="Tab"&&y.trim()){k.preventDefault(),W(y);return}if(g.includes("space")&&_===" "&&y.trim()){k.preventDefault(),W(y);return}if(_==="Backspace"&&!y&&p.length>0){k.preventDefault(),V(p.length-1);return}},[W,V,y,p,g,s,f]),P=u.useCallback(()=>{var k;x(!0),(k=e.onFocus)==null||k.call(e)},[e.onFocus]),E=u.useCallback(()=>{var k;x(!1),y.trim()&&W(y),(k=e.onBlur)==null||k.call(e)},[W,y,e.onBlur]);return{inputValue:y,setInputValue:w,tags:p,setTags:C,isFocused:q,setIsFocused:x,isHovered:T,setIsHovered:S,addTag:W,removeTag:V,handleInputChange:B,handleKeyDown:F,handleFocus:P,handleBlur:E,validateTag:M}},$o=({tag:e,onRemove:o,isRemovable:a,size:t,views:r,isDisabled:n,isReadOnly:l})=>{const[c,m]=u.useState(!1),h={xs:{padding:"2px 8px",fontSize:"10px",iconSize:10},sm:{padding:"4px 10px",fontSize:"12px",iconSize:12},md:{padding:"6px 14px",fontSize:"14px",iconSize:14},lg:{padding:"8px 16px",fontSize:"16px",iconSize:16},xl:{padding:"10px 18px",fontSize:"18px",iconSize:18}}[t]||{padding:"6px 14px",fontSize:"14px",iconSize:14};return i.jsxs(d.Horizontal,{alignItems:"center",gap:6,padding:h.padding,backgroundColor:"theme-primary-100",borderRadius:"9999px",borderWidth:"1px",borderStyle:"solid",borderColor:"theme-primary-250",transition:"all 0.15s ease-in-out",opacity:n?.6:1,maxWidth:"100%",minWidth:0,_hover:!n&&!l?{backgroundColor:"theme-primary-180",borderColor:"theme-primary-400"}:{},...r==null?void 0:r.tag,children:[i.jsx(d.Text,{fontSize:h.fontSize,color:n?"color-gray-400":"theme-primary",maxLines:1,minWidth:0,...r==null?void 0:r.tagText,children:e}),a&&!n&&!l&&i.jsx(d.View,{cursor:"pointer",padding:"2px",borderRadius:"50%",transition:"all 0.15s ease-in-out",backgroundColor:c?"color-red-100":"transparent",opacity:c?1:.7,onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),onClick:g=>{g.stopPropagation(),o()},_hover:{backgroundColor:"color-red-100"},...r==null?void 0:r.tagRemove,children:i.jsx(Z.CloseIcon,{widthHeight:h.iconSize,color:c?"color-red-500":"color-gray-400"})})]})},wo=({id:e,name:o,label:a,placeholder:t="Type and press Enter to add tags...",helperText:r,error:n=!1,inputValue:l="",tags:c=[],left:m,right:h,shadow:g={},views:s={},size:f="md",shape:y="default",variant:w="default",isDisabled:I=!1,isReadOnly:C=!1,isAutoFocus:q=!1,isRemovable:x=!0,isFocused:T=!1,isHovered:S=!1,maxTags:p,handleInputChange:M,handleKeyDown:W,handleFocus:V,handleBlur:B,removeTag:F,setIsHovered:P,onClick:E,setInputValue:k,setIsFocused:_,addTag:A,defaultTags:O,onTagsChange:b,onTagAdd:R,onTagRemove:K,minTagLength:z,maxTagLength:oe,allowDuplicates:ie,separators:D,menuItems:N,onMenuItemSelect:v,onFocus:H,onBlur:G,validateTag:ee,...U})=>{const{getColor:je,themeMode:ne}=d.useTheme(),ce=!!(a&&(T||c.length>0||l)),fe=p&&c.length>=p,se={border:"none",outline:"none",backgroundColor:"transparent",fontSize:d.Typography.fontSizes[f],color:I?"color-gray-400":"color-gray-800",flex:1,minWidth:"120px",transition:"all 0.2s ease-in-out",...s==null?void 0:s.input};return i.jsx(ae.FieldContainer,{error:!!n,helperText:typeof n=="string"?n:r,views:s,...U,children:i.jsxs(ae.FieldContent,{label:a,shadow:g,value:c.length>0||l?"has-content":"",size:f,shape:y,variant:w,error:!!n,showLabel:ce,isFocused:T,isHovered:S,isDisabled:I,isReadOnly:C,views:{...s,container:{...s==null?void 0:s.container,...s==null?void 0:s.inputContainer}},onClick:E,onMouseEnter:()=>P==null?void 0:P(!0),onMouseLeave:()=>P==null?void 0:P(!1),children:[m,i.jsxs(ae.FieldWrapper,{children:[a&&i.jsx(ae.FieldLabel,{size:f,error:!!n,views:s,children:a}),i.jsxs(d.Horizontal,{alignItems:"center",gap:8,flexWrap:"wrap",width:"100%",minHeight:d.Typography.fontSizes[f],padding:"0",...s==null?void 0:s.tagsContainer,children:[c.map((ye,de)=>i.jsx($o,{tag:ye.value,onRemove:()=>F==null?void 0:F(de),isRemovable:x,size:f,views:s,isDisabled:I,isReadOnly:C},ye.id)),!fe&&i.jsx(d.Input,{id:e,name:o,type:"text",value:l,placeholder:c.length===0?t:"",disabled:I,readOnly:C,autoFocus:q,onChange:M,onKeyDown:W,onFocus:V,onBlur:B,autoComplete:"off",...se}),fe&&i.jsxs(d.Text,{fontSize:d.Typography.fontSizes[f],color:"color-gray-500",fontStyle:"italic",...s==null?void 0:s.placeholder,children:["Maximum ",p," tags reached"]})]})]}),h]})})},ko={select:"Select an emoji",reaction:"Add reaction",search:"Search emojis…",more:"More emojis",empty:"No emojis found",categoryEmpty:"No emojis in this category",recent:"Recent",smileys:"Smileys",people:"People",animals:"Animals",food:"Food",activities:"Activities",travel:"Travel",objects:"Objects",symbols:"Symbols",flags:"Flags"},vo=["recent","smileys","people","animals","food","activities","travel","objects","symbols","flags"],ao=e=>e.toLowerCase().replace(/œ/g,"oe").replace(/æ/g,"ae").normalize("NFD").replace(/[\u0300-\u036f]/g,""),Ko=e=>e&&typeof e.emoji=="string"&&typeof e.name=="string"&&vo.includes(e.category)&&Array.isArray(e.keywords)&&e.keywords.every(o=>typeof o=="string"),jo=e=>{const{value:o,defaultValue:a="",onChange:t,onEmojiSelect:r,isOpen:n,onOpen:l,onClose:c,closeOnSelect:m=!0,maxRecentEmojis:h=16,mode:g="picker",showRecentEmojis:s=g!=="reaction",enabledCategories:f=vo,customEmojis:y=[],isDisabled:w,isReadOnly:I}=e,[C,q]=u.useState(!1),x=n??C,[T,S]=u.useState(a),p=o??T,[M,W]=u.useState(""),[V,B]=u.useState(f.find(D=>D!=="recent")||"recent"),[F,P]=u.useState([]),[E,k]=u.useState(g!=="reaction"),_=u.useRef(null),A=u.useRef(null),O={...ko,...e.labels},b=u.useMemo(()=>Array.from(new Map([...$.DefaultEmojiData,...y].map(D=>[D.emoji,D])).values()),[y]),R=u.useMemo(()=>(e.quickEmojis??$.QuickReactionEmojis).map(D=>b.find(N=>N.emoji===D)??{emoji:D,name:D,category:"symbols",keywords:[]}),[b,e.quickEmojis]),K=u.useMemo(()=>{const D=b.filter(N=>f.includes(N.category));if(M.trim()){const N=ao(M.trim());return D.filter(v=>ao(`${v.emoji} ${v.name} ${v.keywords.join(" ")}`).includes(N))}return V==="recent"?F.filter(N=>f.includes(N.category)):D.filter(N=>N.category===V)},[b,V,F,M,f]);u.useEffect(()=>{if(!(!s||typeof localStorage>"u"))try{const D=JSON.parse(localStorage.getItem("emojiPicker-recentEmojis")||"[]");Array.isArray(D)&&P(D.filter(Ko).slice(0,h))}catch{}},[s,h]),u.useEffect(()=>{f.includes(V)||B(f.find(D=>D!=="recent")||"recent")},[f,V]);const z=u.useCallback(()=>{q(!1),c==null||c()},[c]),oe=u.useCallback(()=>{if(!(w||I)){if(x){z();return}q(!0),W(""),k(g!=="reaction"),B(s&&F.length&&f.includes("recent")?"recent":f.find(D=>D!=="recent")||"recent"),l==null||l()}},[x,w,I,z,g,s,F.length,f,l]),ie=u.useCallback(D=>{if(!(w||I)){if(S(D.emoji),s){const N=[D,...F.filter(v=>v.emoji!==D.emoji)].slice(0,Math.max(0,h));if(P(N),typeof localStorage<"u")try{localStorage.setItem("emojiPicker-recentEmojis",JSON.stringify(N))}catch{}}t==null||t(D.emoji),r==null||r(D),m&&z()}},[w,I,s,F,h,t,r,m,z]);return u.useEffect(()=>{if(!x||typeof document>"u"||typeof document.addEventListener!="function")return;const D=N=>{var v,H;(v=A.current)!=null&&v.contains&&((H=_.current)!=null&&H.contains)&&!A.current.contains(N.target)&&!_.current.contains(N.target)&&z()};return document.addEventListener("mousedown",D),()=>document.removeEventListener("mousedown",D)},[x,z]),{isOpen:x,selectedEmoji:p,recentEmojis:F,searchQuery:M,activeCategory:V,filteredEmojis:K,handleToggle:oe,handleEmojiSelect:ie,handleSearchChange:W,handleCategoryChange:D=>{B(D),W("")},handleClose:z,triggerRef:_,dropdownRef:A,expanded:E,setExpanded:k,quickEmojiData:R,text:O}},we={container:{position:"relative",display:"inline-block",width:"100%"},trigger:{display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",transition:"all 0.2s ease-in-out"},dropdown:{position:"absolute",mixBlendMode:"normal",top:"calc(100% + 4px)",left:0,right:0,zIndex:1e3,backgroundColor:"color-white",borderRadius:12,borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.1)",padding:"16px",minWidth:"320px",maxHeight:"400px",overflow:"hidden"},categoryTabs:{display:"flex",flexDirection:"row",flexWrap:"wrap",borderBottom:"1px solid color-gray-100",marginBottom:"12px",overflowX:"auto"},categoryTab:{padding:"8px 12px",cursor:"pointer",borderBottom:"2px solid transparent",transition:"all 0.2s ease-in-out",fontSize:"14px",fontWeight:"500",color:"color-gray-600",whiteSpace:"nowrap",borderRadius:"8px 8px 0 0"},emojiGrid:{display:"grid",gridTemplateColumns:"repeat(8, 1fr)",flexDirection:"row",flexWrap:"wrap",justifyContent:"flex-start",gap:"4px",maxHeight:"240px",overflowY:"auto",padding:"4px",color:"color-black"},emoji:{width:"32px",height:"32px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",borderRadius:6,fontSize:"20px",transition:"all 0.2s ease-in-out"}},Qo={xs:{height:"28px",fontSize:"12px",padding:"4px 8px"},sm:{height:"32px",fontSize:"12px",padding:"6px 10px"},md:{height:"40px",fontSize:"14px",padding:"8px 12px"},lg:{height:"48px",fontSize:"14px",padding:"10px 14px"},xl:{height:"56px",fontSize:"16px",padding:"12px 16px"}},Jo={default:{borderRadius:8},square:{borderRadius:0},rounded:{borderRadius:8},pill:{borderRadius:9999}},Xo={default:{backgroundColor:"color-white",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",color:"color-gray-800"},outline:{backgroundColor:"transparent",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",color:"color-gray-800"},filled:{backgroundColor:"color-gray-50",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",color:"color-gray-800"}},Zo={recent:"🕒",smileys:"😀",people:"👤",animals:"🐶",food:"🍎",activities:"⚽",travel:"🚗",objects:"💡",symbols:"❤️",flags:"🏁"},Co=({id:e,name:o,label:a,placeholder:t,helperText:r,views:n={},size:l="md",shape:c="default",variant:m="default",error:h=!1,isDisabled:g=!1,isReadOnly:s=!1,showSearch:f=!0,showCategories:y=!0,showRecentEmojis:w=!0,enabledCategories:I=["recent","smileys","people","animals","food","activities","travel","objects","symbols","flags"],isOpen:C,selectedEmoji:q,recentEmojis:x,searchQuery:T,activeCategory:S,filteredEmojis:p,handleToggle:M,handleEmojiSelect:W,handleSearchChange:V,handleCategoryChange:B,handleClose:F,triggerRef:P,dropdownRef:E,mode:k="picker",trigger:_,quickEmojis:A,selectedEmojis:O=[],expanded:b,setExpanded:R,quickEmojiData:K,text:z,labels:oe,onChange:ie,onOpen:D,onClose:N,onEmojiSelect:v,customEmojis:H,closeOnSelect:G,maxRecentEmojis:ee,value:U,defaultValue:je,...ne})=>{const ce=u.useId(),fe=`${e||ce}-panel`,se=u.useRef(!1),ye=u.useCallback(j=>{var J;E.current=j,(J=j==null?void 0:j.querySelector("input,button"))==null||J.focus({preventScroll:!0})},[E]),[de,Oe]=u.useState({top:0,left:0,width:320,maxHeight:400}),Re=I.filter(j=>j!=="recent"||w&&x.length>0);u.useLayoutEffect(()=>{var J,ge,Y,ue,me;if(!C){se.current&&(document.activeElement===document.body||(J=E.current)!=null&&J.contains(document.activeElement))&&((ge=P.current)==null||ge.focus({preventScroll:!0})),se.current=!1;return}const j=()=>{var Qe;const re=(Qe=P.current)==null?void 0:Qe.getBoundingClientRect();if(!re)return;const X=window.visualViewport,Te=Math.min(320,((X==null?void 0:X.width)??window.innerWidth)-16),_e=(X==null?void 0:X.offsetLeft)??0,he=(X==null?void 0:X.offsetTop)??0,Ie=he+((X==null?void 0:X.height)??window.innerHeight)-8;if(re.bottom<he||re.top>Ie){F();return}const Ne=b?400:64,Ye=re.top-he-16,He=Ie-re.bottom-8,$e=He<Ne&&Ye>He,Ke=Math.min(Ne,Math.max(64,$e?Ye:He));Oe({width:Te,maxHeight:Ke,left:Math.max(_e+8,Math.min(re.left,_e+((X==null?void 0:X.width)??window.innerWidth)-Te-8)),top:$e?Math.max(he+8,re.top-Ke-8):re.bottom+8})};return j(),se.current||(ue=(Y=E.current)==null?void 0:Y.querySelector("input,button"))==null||ue.focus({preventScroll:!0}),se.current=!0,window.addEventListener("scroll",j,!0),window.addEventListener("resize",j),(me=window.visualViewport)==null||me.addEventListener("resize",j),()=>{var re;window.removeEventListener("scroll",j,!0),window.removeEventListener("resize",j),(re=window.visualViewport)==null||re.removeEventListener("resize",j)}},[C,b]);const Ae=j=>W(j),Ee=(j,J=!1)=>i.jsx(d.View,{as:"button",type:"button","data-emoji-choice":j.emoji,"aria-label":j.name,"aria-pressed":k==="reaction"?O.includes(j.emoji):q===j.emoji,disabled:g||s,...we.emoji,width:40,height:44,flex:J?1:void 0,borderWidth:0,backgroundColor:O.includes(j.emoji)?"color-blue-50":"transparent",_hover:{backgroundColor:"color-gray-100"},_focusVisible:{outline:"2px solid",outlineColor:"theme-primary"},...n.emoji,onClick:()=>Ae(j),title:j.name,children:j.emoji},j.emoji);return i.jsxs(d.View,{id:e,...we.container,...n.container,...ne,children:[a&&i.jsx(d.Text,{marginBottom:4,...n.label,children:a}),i.jsx(d.View,{ref:P,as:"button",type:"button",name:o,disabled:g||s,"aria-label":ne["aria-label"]||a||(k==="reaction"?z.reaction:z.select),"aria-haspopup":"dialog","aria-expanded":C,"aria-controls":C?fe:void 0,...we.trigger,...Qo[l],...Jo[c],...Xo[m],borderColor:h?"theme-error":"color-gray-200",opacity:g?.6:1,_focusVisible:{outline:"2px solid",outlineColor:"theme-primary"},...n.trigger,onClick:M,children:_??i.jsxs(d.Horizontal,{gap:8,children:[i.jsx(d.Text,{children:k==="reaction"?"☺ +":q||t||z.select}),k!=="reaction"&&i.jsx(d.Text,{"aria-hidden":"true",children:C?"▴":"▾"})]})}),C&&i.jsx(qe.Portal,{children:i.jsxs(d.View,{ref:ye,id:fe,role:"dialog","aria-label":k==="reaction"?z.reaction:z.select,...we.dropdown,...n.dropdown,position:"fixed",top:de.top,left:de.left,right:"auto",width:de.width,minWidth:0,maxHeight:de.maxHeight,overflowY:"auto",padding:k==="reaction"&&!b?8:12,zIndex:1100,onKeyDown:j=>{var re,X,Te,_e,he,Ie;if(j.key==="Escape"){j.preventDefault(),j.stopPropagation(),F(),(re=P.current)==null||re.focus();return}const J=Array.from(((X=E.current)==null?void 0:X.querySelectorAll("button:not(:disabled)"))||[]),ge=J.indexOf(document.activeElement);if(j.key==="Tab"){(j.shiftKey&&ge<=0||!j.shiftKey&&ge===J.length-1)&&F();return}if(!["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(j.key)||!J.length||j.target.tagName==="INPUT"&&j.key!=="ArrowDown")return;j.preventDefault();const Y=(Te=document.activeElement)==null?void 0:Te.closest("[data-emoji-grid]"),ue=["ArrowUp","ArrowDown"].includes(j.key)&&Y?8:1,me=j.key==="Home"?0:j.key==="End"?J.length-1:(ge+(["ArrowLeft","ArrowUp"].includes(j.key)?-ue:ue)+J.length)%J.length;(_e=J[me])==null||_e.focus(),(Ie=(he=J[me])==null?void 0:he.scrollIntoView)==null||Ie.call(he,{block:"nearest"})},children:[k==="reaction"&&i.jsxs(d.Horizontal,{gap:2,children:[K.map(j=>Ee(j,!0)),i.jsx(d.View,{as:"button",type:"button",disabled:g||s,"aria-label":z.more,"aria-expanded":b,minWidth:40,minHeight:44,borderWidth:0,borderRadius:8,onClick:()=>R(!b),children:"+"})]}),b&&i.jsxs(i.Fragment,{children:[f&&i.jsx(d.View,{marginBottom:8,...n.searchInput,children:i.jsx(xe.TextField,{value:T,onChange:V,placeholder:z.search,"aria-label":z.search,isDisabled:g||s,size:"sm"})}),y&&i.jsx(d.View,{role:"tablist","aria-label":z.select,...we.categoryTabs,...n.categoryTabs,children:Re.map(j=>i.jsx(d.View,{as:"button",type:"button",role:"tab","aria-label":z[j],"aria-selected":j===S,disabled:g||s,title:z[j],...we.categoryTab,borderWidth:0,minHeight:44,padding:8,backgroundColor:j===S?"color-blue-50":"transparent",...n.categoryTab,onClick:()=>B(j),children:Zo[j]},j))}),i.jsxs(d.View,{"data-emoji-grid":"true",role:"group","aria-label":z.select,...we.emojiGrid,gridTemplateColumns:"repeat(8, minmax(0, 1fr))",...n.emojiGrid,children:[p.map(j=>Ee(j)),!p.length&&i.jsx(d.Text,{gridColumn:"1 / -1",children:T?z.empty:z.categoryEmpty})]})]})]})}),r&&i.jsx(d.Text,{color:h?"theme-error":"theme-muted",...n.helperText,children:r})]})},to=["zoom-out","zoom-in","zap","zap-off","youtube","x","wrench","worm","workflow","wine","wine-off","wind","wind-arrow-down","wifi","wifi-zero","wifi-sync","wifi-pen","wifi-off","wifi-low","wifi-high","wifi-cog","whole-word","wheat","wheat-off","weight","weight-tilde","webhook","webhook-off","webcam","waypoints","waves","waves-ladder","waves-arrow-up","waves-arrow-down","watch","washing-machine","warehouse","wand","wand-sparkles","wallpaper","wallet","wallet-minimal","wallet-cards","vote","volume","volume-x","volume-off","volume-2","volume-1","volleyball","voicemail","view","videotape","video","video-off","vibrate","vibrate-off","venus","venus-and-mars","venetian-mask","vegan","vector-square","vault","variable","van","utility-pole","utensils","utensils-crossed","users","users-round","user","user-x","user-star","user-search","user-round","user-round-x","user-round-search","user-round-plus","user-round-pen","user-round-minus","user-round-cog","user-round-check","user-plus","user-pen","user-minus","user-lock","user-cog","user-check","usb","upload","unplug","unlink","unlink-2","university","ungroup","unfold-vertical","unfold-horizontal","undo","undo-dot","undo-2","underline","umbrella","umbrella-off","type","type-outline","twitter","twitch","tv","tv-minimal","tv-minimal-play","turtle","turntable","turkish-lira","truck","truck-electric","trophy","triangle","triangle-right","triangle-dashed","triangle-alert","trending-up","trending-up-down","trending-down","trello","trees","tree-pine","tree-palm","tree-deciduous","trash","trash-2","transgender","tram-front","train-track","train-front","train-front-tunnel","traffic-cone","tractor","toy-brick","tower-control","touchpad","touchpad-off","torus","tornado","toolbox","tool-case","toilet","toggle-right","toggle-left","timer","timer-reset","timer-off","tickets","tickets-plane","ticket","ticket-x","ticket-slash","ticket-plus","ticket-percent","ticket-minus","ticket-check","thumbs-up","thumbs-down","thermometer","thermometer-sun","thermometer-snowflake","theater","text-wrap","text-select","text-search","text-quote","text-initial","text-cursor","text-cursor-input","text-align-start","text-align-justify","text-align-end","text-align-center","test-tubes","test-tube","test-tube-diagonal","terminal","tent","tent-tree","telescope","target","tangent","tally-5","tally-4","tally-3","tally-2","tally-1","tags","tag","tablets","tablet","tablet-smartphone","table","table-rows-split","table-properties","table-of-contents","table-columns-split","table-cells-split","table-cells-merge","table-2","syringe","swords","sword","switch-camera","swiss-franc","swatch-book","superscript","sunset","sunrise","sun","sun-snow","sun-moon","sun-medium","sun-dim","subscript","strikethrough","stretch-vertical","stretch-horizontal","store","stone","sticky-note","sticker","stethoscope","step-forward","step-back","star","star-off","star-half","stamp","squirrel","squircle","squircle-dashed","squares-unite","squares-subtract","squares-intersect","squares-exclude","square","square-x","square-user","square-user-round","square-terminal","square-stop","square-star","square-stack","square-square","square-split-vertical","square-split-horizontal","square-slash","square-sigma","square-scissors","square-round-corner","square-radical","square-power","square-plus","square-play","square-pilcrow","square-pi","square-percent","square-pen","square-pause","square-parking","square-parking-off","square-mouse-pointer","square-minus","square-menu","square-m","square-library","square-kanban","square-function","square-equal","square-dot","square-divide","square-dashed","square-dashed-top-solid","square-dashed-mouse-pointer","square-dashed-kanban","square-dashed-bottom","square-dashed-bottom-code","square-code","square-chevron-up","square-chevron-right","square-chevron-left","square-chevron-down","square-check","square-check-big","square-chart-gantt","square-bottom-dashed-scissors","square-asterisk","square-arrow-up","square-arrow-up-right","square-arrow-up-left","square-arrow-right","square-arrow-out-up-right","square-arrow-out-up-left","square-arrow-out-down-right","square-arrow-out-down-left","square-arrow-left","square-arrow-down","square-arrow-down-right","square-arrow-down-left","square-activity","sprout","spray-can","spotlight","spool","split","spline","spline-pointer","spell-check","spell-check-2","speech","speaker","sparkles","sparkle","spade","space","soup","solar-panel","sofa","soap-dispenser-droplet","snowflake","snail","smile","smile-plus","smartphone","smartphone-nfc","smartphone-charging","sliders-vertical","sliders-horizontal","slice","slash","slack","skull","skip-forward","skip-back","siren","signpost","signpost-big","signature","signal","signal-zero","signal-medium","signal-low","signal-high","sigma","shuffle","shrub","shrink","shrimp","shredder","shower-head","shovel","shopping-cart","shopping-basket","shopping-bag","shirt","ship","ship-wheel","shield","shield-x","shield-user","shield-question-mark","shield-plus","shield-off","shield-minus","shield-half","shield-ellipsis","shield-check","shield-ban","shield-alert","shell","sheet","share","share-2","shapes","settings","settings-2","server","server-off","server-crash","server-cog","separator-vertical","separator-horizontal","send","send-to-back","send-horizontal","section","search","search-x","search-slash","search-code","search-check","search-alert","scroll","scroll-text","screen-share","screen-share-off","scooter","scissors","scissors-line-dashed","school","scan","scan-text","scan-search","scan-qr-code","scan-line","scan-heart","scan-face","scan-eye","scan-barcode","scaling","scale","scale-3d","save","save-off","save-all","saudi-riyal","satellite","satellite-dish","sandwich","salad","sailboat","russian-ruble","ruler","ruler-dimension-line","rss","rows-4","rows-3","rows-2","router","route","route-off","rotate-cw","rotate-cw-square","rotate-ccw","rotate-ccw-square","rotate-ccw-key","rotate-3d","rose","roller-coaster","rocking-chair","rocket","ribbon","rewind","reply","reply-all","replace","replace-all","repeat","repeat-2","repeat-1","remove-formatting","regex","refrigerator","refresh-cw","refresh-cw-off","refresh-ccw","refresh-ccw-dot","redo","redo-dot","redo-2","recycle","rectangle-vertical","rectangle-horizontal","rectangle-goggles","rectangle-ellipsis","rectangle-circle","receipt","receipt-turkish-lira","receipt-text","receipt-swiss-franc","receipt-russian-ruble","receipt-pound-sterling","receipt-japanese-yen","receipt-indian-rupee","receipt-euro","receipt-cent","ratio","rat","rainbow","rail-symbol","radius","radio","radio-tower","radio-receiver","radical","radiation","radar","rabbit","quote","qr-code","pyramid","puzzle","proportions","projector","printer","printer-check","presentation","power","power-off","pound-sterling","popsicle","popcorn","pointer","pointer-off","podcast","pocket","pocket-knife","plus","plug","plug-zap","plug-2","play","plane","plane-takeoff","plane-landing","pizza","pipette","pin","pin-off","pill","pill-bottle","pilcrow","pilcrow-right","pilcrow-left","piggy-bank","picture-in-picture","picture-in-picture-2","pickaxe","piano","pi","phone","phone-outgoing","phone-off","phone-missed","phone-incoming","phone-forwarded","phone-call","philippine-peso","person-standing","percent","pentagon","pencil","pencil-ruler","pencil-off","pencil-line","pen","pen-tool","pen-off","pen-line","pc-case","paw-print","pause","party-popper","parking-meter","parentheses","paperclip","panels-top-left","panels-right-bottom","panels-left-bottom","panel-top","panel-top-open","panel-top-dashed","panel-top-close","panel-top-bottom-dashed","panel-right","panel-right-open","panel-right-dashed","panel-right-close","panel-left","panel-left-right-dashed","panel-left-open","panel-left-dashed","panel-left-close","panel-bottom","panel-bottom-open","panel-bottom-dashed","panel-bottom-close","panda","palette","paintbrush","paintbrush-vertical","paint-roller","paint-bucket","package","package-x","package-search","package-plus","package-open","package-minus","package-check","package-2","origami","orbit","option","omega","octagon","octagon-x","octagon-pause","octagon-minus","octagon-alert","nut","nut-off","notepad-text","notepad-text-dashed","notebook","notebook-text","notebook-tabs","notebook-pen","non-binary","nfc","newspaper","network","navigation","navigation-off","navigation-2","navigation-2-off","music","music-4","music-3","music-2","move","move-vertical","move-up","move-up-right","move-up-left","move-right","move-left","move-horizontal","move-down","move-down-right","move-down-left","move-diagonal","move-diagonal-2","move-3d","mouse","mouse-pointer","mouse-pointer-click","mouse-pointer-ban","mouse-pointer-2","mouse-pointer-2-off","mouse-off","mountain","mountain-snow","motorbike","moon","moon-star","monitor","monitor-x","monitor-up","monitor-stop","monitor-speaker","monitor-smartphone","monitor-play","monitor-pause","monitor-off","monitor-down","monitor-dot","monitor-cog","monitor-cloud","monitor-check","minus","minimize","minimize-2","milk","milk-off","milestone","microwave","microscope","microchip","mic","mic-vocal","mic-off","messages-square","message-square","message-square-x","message-square-warning","message-square-text","message-square-share","message-square-reply","message-square-quote","message-square-plus","message-square-off","message-square-more","message-square-lock","message-square-heart","message-square-dot","message-square-diff","message-square-dashed","message-square-code","message-circle","message-circle-x","message-circle-warning","message-circle-reply","message-circle-question-mark","message-circle-plus","message-circle-off","message-circle-more","message-circle-heart","message-circle-dashed","message-circle-code","merge","menu","memory-stick","meh","megaphone","megaphone-off","medal","maximize","maximize-2","martini","mars","mars-stroke","map","map-plus","map-pinned","map-pin","map-pin-x","map-pin-x-inside","map-pin-plus","map-pin-plus-inside","map-pin-pen","map-pin-off","map-pin-minus","map-pin-minus-inside","map-pin-house","map-pin-check","map-pin-check-inside","map-minus","mails","mailbox","mail","mail-x","mail-warning","mail-search","mail-question-mark","mail-plus","mail-open","mail-minus","mail-check","magnet","luggage","lollipop","logs","log-out","log-in","lock","lock-open","lock-keyhole","lock-keyhole-open","locate","locate-off","locate-fixed","loader","loader-pinwheel","loader-circle","list","list-x","list-video","list-tree","list-todo","list-start","list-restart","list-plus","list-ordered","list-music","list-minus","list-indent-increase","list-indent-decrease","list-filter","list-filter-plus","list-end","list-collapse","list-chevrons-up-down","list-chevrons-down-up","list-checks","list-check","linkedin","link","link-2","link-2-off","line-squiggle","lightbulb","lightbulb-off","ligature","life-buoy","library","library-big","lectern","leafy-green","leaf","layout-template","layout-panel-top","layout-panel-left","layout-list","layout-grid","layout-dashboard","layers","layers-plus","layers-2","laugh","lasso","lasso-select","laptop","laptop-minimal","laptop-minimal-check","languages","landmark","land-plot","lamp","lamp-wall-up","lamp-wall-down","lamp-floor","lamp-desk","lamp-ceiling","keyboard","keyboard-off","keyboard-music","key","key-square","key-round","kayak","kanban","joystick","japanese-yen","iteration-cw","iteration-ccw","italic","instagram","inspection-panel","info","infinity","indian-rupee","inbox","import","images","image","image-upscale","image-up","image-plus","image-play","image-off","image-minus","image-down","id-card","id-card-lanyard","ice-cream-cone","ice-cream-bowl","house","house-wifi","house-plus","house-plug","house-heart","hourglass","hotel","hospital","hop","hop-off","history","highlighter","hexagon","helicopter","heater","heart","heart-pulse","heart-plus","heart-off","heart-minus","heart-handshake","heart-crack","headset","headphones","headphone-off","heading","heading-6","heading-5","heading-4","heading-3","heading-2","heading-1","hdmi-port","hd","haze","hat-glasses","hash","hard-hat","hard-drive","hard-drive-upload","hard-drive-download","handshake","handbag","hand","hand-platter","hand-metal","hand-helping","hand-heart","hand-grab","hand-fist","hand-coins","hammer","hamburger","ham","guitar","group","grip","grip-vertical","grip-horizontal","grid-3x3","grid-3x2","grid-2x2","grid-2x2-x","grid-2x2-plus","grid-2x2-check","grape","graduation-cap","gpu","goal","globe","globe-lock","glasses","glass-water","gitlab","github","git-pull-request","git-pull-request-draft","git-pull-request-create","git-pull-request-create-arrow","git-pull-request-closed","git-pull-request-arrow","git-merge","git-graph","git-fork","git-compare","git-compare-arrows","git-commit-vertical","git-commit-horizontal","git-branch","git-branch-plus","git-branch-minus","gift","ghost","georgian-lari","gem","gavel","gauge","gamepad","gamepad-directional","gamepad-2","gallery-vertical","gallery-vertical-end","gallery-thumbnails","gallery-horizontal","gallery-horizontal-end","funnel","funnel-x","funnel-plus","fullscreen","fuel","frown","framer","frame","forward","form","forklift","footprints","folders","folder","folder-x","folder-up","folder-tree","folder-sync","folder-symlink","folder-search","folder-search-2","folder-root","folder-plus","folder-pen","folder-output","folder-open","folder-open-dot","folder-minus","folder-lock","folder-key","folder-kanban","folder-input","folder-heart","folder-git","folder-git-2","folder-down","folder-dot","folder-cog","folder-code","folder-closed","folder-clock","folder-check","folder-archive","fold-vertical","fold-horizontal","focus","flower","flower-2","flip-vertical","flip-vertical-2","flip-horizontal","flip-horizontal-2","flask-round","flask-conical","flask-conical-off","flashlight","flashlight-off","flame","flame-kindling","flag","flag-triangle-right","flag-triangle-left","flag-off","fishing-hook","fish","fish-symbol","fish-off","fire-extinguisher","fingerprint-pattern","film","files","file","file-x","file-x-corner","file-volume","file-video-camera","file-user","file-up","file-type","file-type-corner","file-text","file-terminal","file-symlink","file-stack","file-spreadsheet","file-sliders","file-signal","file-search","file-search-corner","file-scan","file-question-mark","file-plus","file-plus-corner","file-play","file-pen","file-pen-line","file-output","file-music","file-minus","file-minus-corner","file-lock","file-key","file-input","file-image","file-heart","file-headphone","file-exclamation-point","file-down","file-digit","file-diff","file-cog","file-code","file-code-corner","file-clock","file-check","file-check-corner","file-chart-pie","file-chart-line","file-chart-column","file-chart-column-increasing","file-braces","file-braces-corner","file-box","file-badge","file-axis-3d","file-archive","figma","ferris-wheel","fence","feather","fast-forward","fan","factory","facebook","eye","eye-off","eye-closed","external-link","expand","ev-charger","euro","ethernet-port","eraser","equal","equal-not","equal-approximately","ellipsis","ellipsis-vertical","egg","egg-off","egg-fried","eclipse","earth","earth-lock","ear","ear-off","dumbbell","drumstick","drum","droplets","droplet","droplet-off","drone","drill","dribbble","drama","drafting-compass","download","dot","door-open","door-closed","door-closed-locked","donut","dollar-sign","dog","dock","dna","dna-off","divide","disc","disc-album","disc-3","disc-2","diff","dices","dice-6","dice-5","dice-4","dice-3","dice-2","dice-1","diamond","diamond-plus","diamond-percent","diamond-minus","diameter","dessert","delete","decimals-arrow-right","decimals-arrow-left","database","database-zap","database-backup","dam","cylinder","currency","cup-soda","cuboid","crown","crosshair","cross","crop","croissant","credit-card","creative-commons","cpu","corner-up-right","corner-up-left","corner-right-up","corner-right-down","corner-left-up","corner-left-down","corner-down-right","corner-down-left","copyright","copyleft","copy","copy-x","copy-slash","copy-plus","copy-minus","copy-check","cooking-pot","cookie","contrast","container","contact","contact-round","construction","cone","concierge-bell","computer","component","compass","command","combine","columns-4","columns-3","columns-3-cog","columns-2","coins","cog","coffee","codesandbox","codepen","code","code-xml","club","clover","cloudy","cloud","cloud-upload","cloud-sync","cloud-sun","cloud-sun-rain","cloud-snow","cloud-rain","cloud-rain-wind","cloud-off","cloud-moon","cloud-moon-rain","cloud-lightning","cloud-hail","cloud-fog","cloud-drizzle","cloud-download","cloud-cog","cloud-check","cloud-backup","cloud-alert","closed-caption","clock","clock-plus","clock-fading","clock-check","clock-arrow-up","clock-arrow-down","clock-alert","clock-9","clock-8","clock-7","clock-6","clock-5","clock-4","clock-3","clock-2","clock-12","clock-11","clock-10","clock-1","clipboard","clipboard-x","clipboard-type","clipboard-plus","clipboard-pen","clipboard-pen-line","clipboard-paste","clipboard-minus","clipboard-list","clipboard-copy","clipboard-clock","clipboard-check","clapperboard","citrus","circuit-board","circle","circle-x","circle-user","circle-user-round","circle-stop","circle-star","circle-small","circle-slash","circle-slash-2","circle-question-mark","circle-power","circle-pound-sterling","circle-plus","circle-play","circle-pile","circle-percent","circle-pause","circle-parking","circle-parking-off","circle-off","circle-minus","circle-gauge","circle-fading-plus","circle-fading-arrow-up","circle-equal","circle-ellipsis","circle-dot","circle-dot-dashed","circle-dollar-sign","circle-divide","circle-dashed","circle-chevron-up","circle-chevron-right","circle-chevron-left","circle-chevron-down","circle-check","circle-check-big","circle-arrow-up","circle-arrow-right","circle-arrow-out-up-right","circle-arrow-out-up-left","circle-arrow-out-down-right","circle-arrow-out-down-left","circle-arrow-left","circle-arrow-down","circle-alert","cigarette","cigarette-off","church","chromium","chevrons-up","chevrons-up-down","chevrons-right","chevrons-right-left","chevrons-left","chevrons-left-right","chevrons-left-right-ellipsis","chevrons-down","chevrons-down-up","chevron-up","chevron-right","chevron-left","chevron-last","chevron-first","chevron-down","chess-rook","chess-queen","chess-pawn","chess-knight","chess-king","chess-bishop","cherry","chef-hat","check","check-line","check-check","chart-spline","chart-scatter","chart-pie","chart-no-axes-gantt","chart-no-axes-combined","chart-no-axes-column","chart-no-axes-column-increasing","chart-no-axes-column-decreasing","chart-network","chart-line","chart-gantt","chart-column","chart-column-stacked","chart-column-increasing","chart-column-decreasing","chart-column-big","chart-candlestick","chart-bar","chart-bar-stacked","chart-bar-increasing","chart-bar-decreasing","chart-bar-big","chart-area","cctv","cat","castle","cast","cassette-tape","case-upper","case-sensitive","case-lower","carrot","card-sim","caravan","car","car-taxi-front","car-front","captions","captions-off","cannabis","cannabis-off","candy","candy-off","candy-cane","camera","camera-off","calendars","calendar","calendar-x","calendar-x-2","calendar-sync","calendar-search","calendar-range","calendar-plus","calendar-plus-2","calendar-off","calendar-minus","calendar-minus-2","calendar-heart","calendar-fold","calendar-days","calendar-cog","calendar-clock","calendar-check","calendar-check-2","calendar-arrow-up","calendar-arrow-down","calendar-1","calculator","cake","cake-slice","cable","cable-car","bus","bus-front","building","building-2","bug","bug-play","bug-off","bubbles","brush","brush-cleaning","bring-to-front","briefcase","briefcase-medical","briefcase-conveyor-belt","briefcase-business","brick-wall","brick-wall-shield","brick-wall-fire","brain","brain-cog","brain-circuit","brackets","braces","boxes","box","bow-arrow","bottle-wine","bot","bot-off","bot-message-square","boom-box","bookmark","bookmark-x","bookmark-plus","bookmark-minus","bookmark-check","book","book-x","book-user","book-up","book-up-2","book-type","book-text","book-search","book-plus","book-open","book-open-text","book-open-check","book-minus","book-marked","book-lock","book-key","book-image","book-heart","book-headphones","book-down","book-dashed","book-copy","book-check","book-audio","book-alert","book-a","bone","bomb","bolt","bold","bluetooth","bluetooth-searching","bluetooth-off","bluetooth-connected","blocks","blinds","blend","bitcoin","birdhouse","bird","biohazard","binoculars","binary","bike","biceps-flexed","between-vertical-start","between-vertical-end","between-horizontal-start","between-horizontal-end","bell","bell-ring","bell-plus","bell-off","bell-minus","bell-electric","bell-dot","beer","beer-off","beef","bed","bed-single","bed-double","bean","bean-off","beaker","battery","battery-warning","battery-plus","battery-medium","battery-low","battery-full","battery-charging","bath","baseline","barrel","barcode","banknote","banknote-x","banknote-arrow-up","banknote-arrow-down","bandage","banana","ban","balloon","baggage-claim","badge","badge-x","badge-turkish-lira","badge-swiss-franc","badge-russian-ruble","badge-question-mark","badge-pound-sterling","badge-plus","badge-percent","badge-minus","badge-japanese-yen","badge-info","badge-indian-rupee","badge-euro","badge-dollar-sign","badge-check","badge-cent","badge-alert","backpack","baby","axis-3d","axe","award","audio-waveform","audio-lines","atom","at-sign","asterisk","arrows-up-from-line","arrow-up","arrow-up-z-a","arrow-up-wide-narrow","arrow-up-to-line","arrow-up-right","arrow-up-narrow-wide","arrow-up-left","arrow-up-from-line","arrow-up-from-dot","arrow-up-down","arrow-up-a-z","arrow-up-1-0","arrow-up-0-1","arrow-right","arrow-right-to-line","arrow-right-left","arrow-right-from-line","arrow-left","arrow-left-to-line","arrow-left-right","arrow-left-from-line","arrow-down","arrow-down-z-a","arrow-down-wide-narrow","arrow-down-up","arrow-down-to-line","arrow-down-to-dot","arrow-down-right","arrow-down-narrow-wide","arrow-down-left","arrow-down-from-line","arrow-down-a-z","arrow-down-1-0","arrow-down-0-1","arrow-big-up","arrow-big-up-dash","arrow-big-right","arrow-big-right-dash","arrow-big-left","arrow-big-left-dash","arrow-big-down","arrow-big-down-dash","armchair","archive","archive-x","archive-restore","apple","app-window","app-window-mac","aperture","anvil","antenna","annoyed","angry","anchor","amphora","ampersands","ampersand","ambulance","align-vertical-space-between","align-vertical-space-around","align-vertical-justify-start","align-vertical-justify-end","align-vertical-justify-center","align-vertical-distribute-start","align-vertical-distribute-end","align-vertical-distribute-center","align-start-vertical","align-start-horizontal","align-horizontal-space-between","align-horizontal-space-around","align-horizontal-justify-start","align-horizontal-justify-end","align-horizontal-justify-center","align-horizontal-distribute-start","align-horizontal-distribute-end","align-horizontal-distribute-center","align-end-vertical","align-end-horizontal","align-center-vertical","align-center-horizontal","album","alarm-smoke","alarm-clock","alarm-clock-plus","alarm-clock-off","alarm-clock-minus","alarm-clock-check","airplay","air-vent","activity","accessibility","a-large-small","a-arrow-up","a-arrow-down"],So=e=>{const{value:o,defaultValue:a,onChange:t,isOpen:r,onOpen:n,onClose:l,closeOnSelect:c=!0}=e,[m,h]=u.useState(r??!1),[g,s]=u.useState(o??a),[f,y]=u.useState(""),w=u.useRef(null),I=u.useRef(null);u.useEffect(()=>{o!==void 0&&s(o)},[o]),u.useEffect(()=>{r!==void 0&&h(r)},[r]);const C=u.useMemo(()=>f?to.filter(p=>p.toLowerCase().includes(f.toLowerCase())).slice(0,100):to.slice(0,100),[f]);u.useEffect(()=>{const p=M=>{m&&w.current&&I.current&&!w.current.contains(M.target)&&!I.current.contains(M.target)&&q()};if(!(typeof document>"u"))return document.addEventListener("mousedown",p),()=>document.removeEventListener("mousedown",p)},[m]);const q=u.useCallback(()=>{r===void 0&&h(!1),l&&l()},[l,r]),x=u.useCallback(()=>{const p=!m;r===void 0&&h(p),p?(n&&n(),y("")):l&&l()},[m,n,l,r]),T=u.useCallback(p=>{o===void 0&&s(p),t&&t(p),c&&q()},[t,c,q,o]),S=u.useCallback(p=>{y(p)},[]);return{isOpen:m,selectedIcon:g,searchQuery:f,filteredIcons:C,handleToggle:x,handleIconSelect:T,handleSearchChange:S,handleClose:q,triggerRef:w,dropdownRef:I}},Ce={container:{position:"relative",display:"inline-block",width:"100%"},trigger:{display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",transition:"all 0.2s ease-in-out"},dropdown:{position:"absolute",mixBlendMode:"normal",top:"calc(100% + 4px)",left:0,right:0,zIndex:1e3,backgroundColor:"color-white",borderRadius:12,borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.1)",padding:"16px",minWidth:"280px",maxHeight:"320px",overflow:"hidden",display:"flex",flexDirection:"column"},searchInput:{marginBottom:"12px",flexShrink:0},iconGrid:{display:"grid",gridTemplateColumns:"repeat(6, 1fr)",flexDirection:"row",flexWrap:"wrap",justifyContent:"flex-start",gap:"8px",overflowY:"auto",padding:"4px",color:"color-black",flexGrow:1},iconItem:{width:"32px",height:"32px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",borderRadius:8,transition:"all 0.2s ease-in-out"}},ea={xs:{height:"28px",fontSize:"12px",padding:"4px 8px"},sm:{height:"32px",fontSize:"12px",padding:"6px 10px"},md:{height:"40px",fontSize:"14px",padding:"8px 12px"},lg:{height:"48px",fontSize:"14px",padding:"10px 14px"},xl:{height:"56px",fontSize:"16px",padding:"12px 16px"}},oa={default:{borderRadius:8},square:{borderRadius:0},rounded:{borderRadius:8},pill:{borderRadius:9999}},aa={default:{backgroundColor:"color-white",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",color:"color-gray-800"},outline:{backgroundColor:"transparent",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",color:"color-gray-800"},filled:{backgroundColor:"color-gray-50",borderWidth:"1px",borderStyle:"solid",borderColor:"color-gray-200",color:"color-gray-800"}},To=({label:e,placeholder:o="Select an icon",helperText:a,views:t={},size:r="md",shape:n="default",variant:l="default",error:c=!1,isDisabled:m=!1,isReadOnly:h=!1,showSearch:g=!0,isOpen:s,selectedIcon:f,searchQuery:y,filteredIcons:w,handleToggle:I,handleIconSelect:C,handleSearchChange:q,triggerRef:x,dropdownRef:T,handleClose:S,onChange:p,value:M,defaultValue:W,onOpen:V,onClose:B,closeOnSelect:F,...P})=>{const{getColor:E}=d.useTheme(),k={...Ce.container,...t==null?void 0:t.container},_={...Ce.trigger,...ea[r],...oa[n],...aa[l],...c&&{borderColor:"color-red-500"},...m&&{opacity:.6,cursor:"not-allowed"},...!m&&!h&&{_hover:{borderColor:"color-gray-300"}},...t==null?void 0:t.trigger},A={...Ce.dropdown,...t==null?void 0:t.dropdown},O={...Ce.iconGrid,...t==null?void 0:t.iconGrid};return i.jsxs(d.View,{...k,...P,children:[e&&i.jsx(d.Text,{fontSize:r==="xs"?"12px":r==="sm"?"14px":"16px",fontWeight:"500",color:"color-gray-700",marginBottom:"4px",...t==null?void 0:t.label,children:e}),i.jsxs(d.View,{ref:x,onClick:m||h?void 0:I,..._,children:[i.jsx(d.Horizontal,{alignItems:"center",gap:8,width:"100%",children:f?i.jsxs(d.Horizontal,{alignItems:"center",gap:8,width:"100%",children:[i.jsx(Z.Icon,{name:f,widthHeight:16}),i.jsx(d.Text,{color:"color-gray-800",fontSize:"inherit",style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:f})]}):i.jsx(d.Text,{color:"color-gray-500",fontSize:"inherit",children:o})}),!h&&!m&&i.jsx(Z.ChevronIcon,{widthHeight:16,color:"color-gray-500",orientation:s?"up":"down"})]}),s&&i.jsxs(d.View,{ref:T,...A,children:[g&&i.jsx(d.View,{...Ce.searchInput,...t==null?void 0:t.searchInput,children:i.jsx(xe.TextField,{placeholder:"Search icons...",value:y,onChange:b=>q(b),size:"sm",autoFocus:!0})}),i.jsx(d.View,{...O,children:w.length>0?w.map(b=>i.jsx(d.View,{...Ce.iconItem,onClick:()=>C(b),title:b,_hover:{backgroundColor:"color-gray-50",transform:"scale(1.05)"},backgroundColor:f===b?"#EFF6FF":"transparent",borderWidth:f===b?"1px":"0px",borderStyle:"solid",borderColor:f===b?"#BFDBFE":"transparent",...t==null?void 0:t.iconItem,children:i.jsx(Z.Icon,{name:b,widthHeight:20})},b)):i.jsx(d.View,{gridColumn:"1 / -1",padding:"20px",textAlign:"center",color:"color-gray-500",children:i.jsx(d.Text,{fontSize:"14px",children:"No icons found"})})})]}),a&&i.jsx(d.Text,{color:c?"theme-error":"color-gray-600",marginTop:"4px",...t==null?void 0:t.helperText,children:a})]})};function ze(e){"@babel/helpers - typeof";return ze=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},ze(e)}function te(e,o){if(o.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+o.length+" present")}function ta(e){return te(1,arguments),e instanceof Date||ze(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function le(e){te(1,arguments);var o=Object.prototype.toString.call(e);return e instanceof Date||ze(e)==="object"&&o==="[object Date]"?new Date(e.getTime()):typeof e=="number"||o==="[object Number]"?new Date(e):((typeof e=="string"||o==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function ra(e){if(te(1,arguments),!ta(e)&&typeof e!="number")return!1;var o=le(e);return!isNaN(Number(o))}function ve(e){if(e===null||e===!0||e===!1)return NaN;var o=Number(e);return isNaN(o)?o:o<0?Math.ceil(o):Math.floor(o)}function na(e,o){te(2,arguments);var a=le(e).getTime(),t=ve(o);return new Date(a+t)}function ia(e,o){te(2,arguments);var a=ve(o);return na(e,-a)}var la=864e5;function ca(e){te(1,arguments);var o=le(e),a=o.getTime();o.setUTCMonth(0,1),o.setUTCHours(0,0,0,0);var t=o.getTime(),r=a-t;return Math.floor(r/la)+1}function We(e){te(1,arguments);var o=1,a=le(e),t=a.getUTCDay(),r=(t<o?7:0)+t-o;return a.setUTCDate(a.getUTCDate()-r),a.setUTCHours(0,0,0,0),a}function _o(e){te(1,arguments);var o=le(e),a=o.getUTCFullYear(),t=new Date(0);t.setUTCFullYear(a+1,0,4),t.setUTCHours(0,0,0,0);var r=We(t),n=new Date(0);n.setUTCFullYear(a,0,4),n.setUTCHours(0,0,0,0);var l=We(n);return o.getTime()>=r.getTime()?a+1:o.getTime()>=l.getTime()?a:a-1}function sa(e){te(1,arguments);var o=_o(e),a=new Date(0);a.setUTCFullYear(o,0,4),a.setUTCHours(0,0,0,0);var t=We(a);return t}var da=6048e5;function ua(e){te(1,arguments);var o=le(e),a=We(o).getTime()-sa(o).getTime();return Math.round(a/da)+1}var ma={};function Ve(){return ma}function De(e,o){var a,t,r,n,l,c,m,h;te(1,arguments);var g=Ve(),s=ve((a=(t=(r=(n=o==null?void 0:o.weekStartsOn)!==null&&n!==void 0?n:o==null||(l=o.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:g.weekStartsOn)!==null&&t!==void 0?t:(m=g.locale)===null||m===void 0||(h=m.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&a!==void 0?a:0);if(!(s>=0&&s<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=le(e),y=f.getUTCDay(),w=(y<s?7:0)+y-s;return f.setUTCDate(f.getUTCDate()-w),f.setUTCHours(0,0,0,0),f}function Io(e,o){var a,t,r,n,l,c,m,h;te(1,arguments);var g=le(e),s=g.getUTCFullYear(),f=Ve(),y=ve((a=(t=(r=(n=o==null?void 0:o.firstWeekContainsDate)!==null&&n!==void 0?n:o==null||(l=o.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&r!==void 0?r:f.firstWeekContainsDate)!==null&&t!==void 0?t:(m=f.locale)===null||m===void 0||(h=m.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(y>=1&&y<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var w=new Date(0);w.setUTCFullYear(s+1,0,y),w.setUTCHours(0,0,0,0);var I=De(w,o),C=new Date(0);C.setUTCFullYear(s,0,y),C.setUTCHours(0,0,0,0);var q=De(C,o);return g.getTime()>=I.getTime()?s+1:g.getTime()>=q.getTime()?s:s-1}function ha(e,o){var a,t,r,n,l,c,m,h;te(1,arguments);var g=Ve(),s=ve((a=(t=(r=(n=o==null?void 0:o.firstWeekContainsDate)!==null&&n!==void 0?n:o==null||(l=o.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&r!==void 0?r:g.firstWeekContainsDate)!==null&&t!==void 0?t:(m=g.locale)===null||m===void 0||(h=m.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&a!==void 0?a:1),f=Io(e,o),y=new Date(0);y.setUTCFullYear(f,0,s),y.setUTCHours(0,0,0,0);var w=De(y,o);return w}var fa=6048e5;function ga(e,o){te(1,arguments);var a=le(e),t=De(a,o).getTime()-ha(a,o).getTime();return Math.round(t/fa)+1}function L(e,o){for(var a=e<0?"-":"",t=Math.abs(e).toString();t.length<o;)t="0"+t;return a+t}var pe={y:function(o,a){var t=o.getUTCFullYear(),r=t>0?t:1-t;return L(a==="yy"?r%100:r,a.length)},M:function(o,a){var t=o.getUTCMonth();return a==="M"?String(t+1):L(t+1,2)},d:function(o,a){return L(o.getUTCDate(),a.length)},a:function(o,a){var t=o.getUTCHours()/12>=1?"pm":"am";switch(a){case"a":case"aa":return t.toUpperCase();case"aaa":return t;case"aaaaa":return t[0];case"aaaa":default:return t==="am"?"a.m.":"p.m."}},h:function(o,a){return L(o.getUTCHours()%12||12,a.length)},H:function(o,a){return L(o.getUTCHours(),a.length)},m:function(o,a){return L(o.getUTCMinutes(),a.length)},s:function(o,a){return L(o.getUTCSeconds(),a.length)},S:function(o,a){var t=a.length,r=o.getUTCMilliseconds(),n=Math.floor(r*Math.pow(10,t-3));return L(n,a.length)}},Se={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},pa={G:function(o,a,t){var r=o.getUTCFullYear()>0?1:0;switch(a){case"G":case"GG":case"GGG":return t.era(r,{width:"abbreviated"});case"GGGGG":return t.era(r,{width:"narrow"});case"GGGG":default:return t.era(r,{width:"wide"})}},y:function(o,a,t){if(a==="yo"){var r=o.getUTCFullYear(),n=r>0?r:1-r;return t.ordinalNumber(n,{unit:"year"})}return pe.y(o,a)},Y:function(o,a,t,r){var n=Io(o,r),l=n>0?n:1-n;if(a==="YY"){var c=l%100;return L(c,2)}return a==="Yo"?t.ordinalNumber(l,{unit:"year"}):L(l,a.length)},R:function(o,a){var t=_o(o);return L(t,a.length)},u:function(o,a){var t=o.getUTCFullYear();return L(t,a.length)},Q:function(o,a,t){var r=Math.ceil((o.getUTCMonth()+1)/3);switch(a){case"Q":return String(r);case"QQ":return L(r,2);case"Qo":return t.ordinalNumber(r,{unit:"quarter"});case"QQQ":return t.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return t.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return t.quarter(r,{width:"wide",context:"formatting"})}},q:function(o,a,t){var r=Math.ceil((o.getUTCMonth()+1)/3);switch(a){case"q":return String(r);case"qq":return L(r,2);case"qo":return t.ordinalNumber(r,{unit:"quarter"});case"qqq":return t.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return t.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return t.quarter(r,{width:"wide",context:"standalone"})}},M:function(o,a,t){var r=o.getUTCMonth();switch(a){case"M":case"MM":return pe.M(o,a);case"Mo":return t.ordinalNumber(r+1,{unit:"month"});case"MMM":return t.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return t.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return t.month(r,{width:"wide",context:"formatting"})}},L:function(o,a,t){var r=o.getUTCMonth();switch(a){case"L":return String(r+1);case"LL":return L(r+1,2);case"Lo":return t.ordinalNumber(r+1,{unit:"month"});case"LLL":return t.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return t.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(r,{width:"wide",context:"standalone"})}},w:function(o,a,t,r){var n=ga(o,r);return a==="wo"?t.ordinalNumber(n,{unit:"week"}):L(n,a.length)},I:function(o,a,t){var r=ua(o);return a==="Io"?t.ordinalNumber(r,{unit:"week"}):L(r,a.length)},d:function(o,a,t){return a==="do"?t.ordinalNumber(o.getUTCDate(),{unit:"date"}):pe.d(o,a)},D:function(o,a,t){var r=ca(o);return a==="Do"?t.ordinalNumber(r,{unit:"dayOfYear"}):L(r,a.length)},E:function(o,a,t){var r=o.getUTCDay();switch(a){case"E":case"EE":case"EEE":return t.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return t.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(r,{width:"short",context:"formatting"});case"EEEE":default:return t.day(r,{width:"wide",context:"formatting"})}},e:function(o,a,t,r){var n=o.getUTCDay(),l=(n-r.weekStartsOn+8)%7||7;switch(a){case"e":return String(l);case"ee":return L(l,2);case"eo":return t.ordinalNumber(l,{unit:"day"});case"eee":return t.day(n,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(n,{width:"short",context:"formatting"});case"eeee":default:return t.day(n,{width:"wide",context:"formatting"})}},c:function(o,a,t,r){var n=o.getUTCDay(),l=(n-r.weekStartsOn+8)%7||7;switch(a){case"c":return String(l);case"cc":return L(l,a.length);case"co":return t.ordinalNumber(l,{unit:"day"});case"ccc":return t.day(n,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(n,{width:"narrow",context:"standalone"});case"cccccc":return t.day(n,{width:"short",context:"standalone"});case"cccc":default:return t.day(n,{width:"wide",context:"standalone"})}},i:function(o,a,t){var r=o.getUTCDay(),n=r===0?7:r;switch(a){case"i":return String(n);case"ii":return L(n,a.length);case"io":return t.ordinalNumber(n,{unit:"day"});case"iii":return t.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return t.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return t.day(r,{width:"short",context:"formatting"});case"iiii":default:return t.day(r,{width:"wide",context:"formatting"})}},a:function(o,a,t){var r=o.getUTCHours(),n=r/12>=1?"pm":"am";switch(a){case"a":case"aa":return t.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return t.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return t.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return t.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(o,a,t){var r=o.getUTCHours(),n;switch(r===12?n=Se.noon:r===0?n=Se.midnight:n=r/12>=1?"pm":"am",a){case"b":case"bb":return t.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return t.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(o,a,t){var r=o.getUTCHours(),n;switch(r>=17?n=Se.evening:r>=12?n=Se.afternoon:r>=4?n=Se.morning:n=Se.night,a){case"B":case"BB":case"BBB":return t.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return t.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(o,a,t){if(a==="ho"){var r=o.getUTCHours()%12;return r===0&&(r=12),t.ordinalNumber(r,{unit:"hour"})}return pe.h(o,a)},H:function(o,a,t){return a==="Ho"?t.ordinalNumber(o.getUTCHours(),{unit:"hour"}):pe.H(o,a)},K:function(o,a,t){var r=o.getUTCHours()%12;return a==="Ko"?t.ordinalNumber(r,{unit:"hour"}):L(r,a.length)},k:function(o,a,t){var r=o.getUTCHours();return r===0&&(r=24),a==="ko"?t.ordinalNumber(r,{unit:"hour"}):L(r,a.length)},m:function(o,a,t){return a==="mo"?t.ordinalNumber(o.getUTCMinutes(),{unit:"minute"}):pe.m(o,a)},s:function(o,a,t){return a==="so"?t.ordinalNumber(o.getUTCSeconds(),{unit:"second"}):pe.s(o,a)},S:function(o,a){return pe.S(o,a)},X:function(o,a,t,r){var n=r._originalDate||o,l=n.getTimezoneOffset();if(l===0)return"Z";switch(a){case"X":return no(l);case"XXXX":case"XX":return ke(l);case"XXXXX":case"XXX":default:return ke(l,":")}},x:function(o,a,t,r){var n=r._originalDate||o,l=n.getTimezoneOffset();switch(a){case"x":return no(l);case"xxxx":case"xx":return ke(l);case"xxxxx":case"xxx":default:return ke(l,":")}},O:function(o,a,t,r){var n=r._originalDate||o,l=n.getTimezoneOffset();switch(a){case"O":case"OO":case"OOO":return"GMT"+ro(l,":");case"OOOO":default:return"GMT"+ke(l,":")}},z:function(o,a,t,r){var n=r._originalDate||o,l=n.getTimezoneOffset();switch(a){case"z":case"zz":case"zzz":return"GMT"+ro(l,":");case"zzzz":default:return"GMT"+ke(l,":")}},t:function(o,a,t,r){var n=r._originalDate||o,l=Math.floor(n.getTime()/1e3);return L(l,a.length)},T:function(o,a,t,r){var n=r._originalDate||o,l=n.getTime();return L(l,a.length)}};function ro(e,o){var a=e>0?"-":"+",t=Math.abs(e),r=Math.floor(t/60),n=t%60;if(n===0)return a+String(r);var l=o;return a+String(r)+l+L(n,2)}function no(e,o){if(e%60===0){var a=e>0?"-":"+";return a+L(Math.abs(e)/60,2)}return ke(e,o)}function ke(e,o){var a=o||"",t=e>0?"-":"+",r=Math.abs(e),n=L(Math.floor(r/60),2),l=L(r%60,2);return t+n+a+l}var io=function(o,a){switch(o){case"P":return a.date({width:"short"});case"PP":return a.date({width:"medium"});case"PPP":return a.date({width:"long"});case"PPPP":default:return a.date({width:"full"})}},Po=function(o,a){switch(o){case"p":return a.time({width:"short"});case"pp":return a.time({width:"medium"});case"ppp":return a.time({width:"long"});case"pppp":default:return a.time({width:"full"})}},ba=function(o,a){var t=o.match(/(P+)(p+)?/)||[],r=t[1],n=t[2];if(!n)return io(o,a);var l;switch(r){case"P":l=a.dateTime({width:"short"});break;case"PP":l=a.dateTime({width:"medium"});break;case"PPP":l=a.dateTime({width:"long"});break;case"PPPP":default:l=a.dateTime({width:"full"});break}return l.replace("{{date}}",io(r,a)).replace("{{time}}",Po(n,a))},xa={p:Po,P:ba};function ya(e){var o=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return o.setUTCFullYear(e.getFullYear()),e.getTime()-o.getTime()}var wa=["D","DD"],ka=["YY","YYYY"];function va(e){return wa.indexOf(e)!==-1}function ja(e){return ka.indexOf(e)!==-1}function lo(e,o,a){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(o,"`) for formatting years to the input `").concat(a,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(o,"`) for formatting years to the input `").concat(a,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(o,"`) for formatting days of the month to the input `").concat(a,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(o,"`) for formatting days of the month to the input `").concat(a,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Ca={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Sa=function(o,a,t){var r,n=Ca[o];return typeof n=="string"?r=n:a===1?r=n.one:r=n.other.replace("{{count}}",a.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+r:r+" ago":r};function Be(e){return function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=o.width?String(o.width):e.defaultWidth,t=e.formats[a]||e.formats[e.defaultWidth];return t}}var Ta={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},_a={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Ia={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Pa={date:Be({formats:Ta,defaultWidth:"full"}),time:Be({formats:_a,defaultWidth:"full"}),dateTime:Be({formats:Ia,defaultWidth:"full"})},Ma={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Fa=function(o,a,t,r){return Ma[o]};function Me(e){return function(o,a){var t=a!=null&&a.context?String(a.context):"standalone",r;if(t==="formatting"&&e.formattingValues){var n=e.defaultFormattingWidth||e.defaultWidth,l=a!=null&&a.width?String(a.width):n;r=e.formattingValues[l]||e.formattingValues[n]}else{var c=e.defaultWidth,m=a!=null&&a.width?String(a.width):e.defaultWidth;r=e.values[m]||e.values[c]}var h=e.argumentCallback?e.argumentCallback(o):o;return r[h]}}var Ea={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},qa={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},za={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Wa={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Da={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Va={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Oa=function(o,a){var t=Number(o),r=t%100;if(r>20||r<10)switch(r%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},Ra={ordinalNumber:Oa,era:Me({values:Ea,defaultWidth:"wide"}),quarter:Me({values:qa,defaultWidth:"wide",argumentCallback:function(o){return o-1}}),month:Me({values:za,defaultWidth:"wide"}),day:Me({values:Wa,defaultWidth:"wide"}),dayPeriod:Me({values:Da,defaultWidth:"wide",formattingValues:Va,defaultFormattingWidth:"wide"})};function Fe(e){return function(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=a.width,r=t&&e.matchPatterns[t]||e.matchPatterns[e.defaultMatchWidth],n=o.match(r);if(!n)return null;var l=n[0],c=t&&e.parsePatterns[t]||e.parsePatterns[e.defaultParseWidth],m=Array.isArray(c)?Ha(c,function(s){return s.test(l)}):Aa(c,function(s){return s.test(l)}),h;h=e.valueCallback?e.valueCallback(m):m,h=a.valueCallback?a.valueCallback(h):h;var g=o.slice(l.length);return{value:h,rest:g}}}function Aa(e,o){for(var a in e)if(e.hasOwnProperty(a)&&o(e[a]))return a}function Ha(e,o){for(var a=0;a<e.length;a++)if(o(e[a]))return a}function Ba(e){return function(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=o.match(e.matchPattern);if(!t)return null;var r=t[0],n=o.match(e.parsePattern);if(!n)return null;var l=e.valueCallback?e.valueCallback(n[0]):n[0];l=a.valueCallback?a.valueCallback(l):l;var c=o.slice(r.length);return{value:l,rest:c}}}var La=/^(\d+)(th|st|nd|rd)?/i,Ga=/\d+/i,Ua={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Na={any:[/^b/i,/^(a|c)/i]},Ya={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},$a={any:[/1/i,/2/i,/3/i,/4/i]},Ka={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Qa={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Ja={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Xa={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Za={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},et={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},ot={ordinalNumber:Ba({matchPattern:La,parsePattern:Ga,valueCallback:function(o){return parseInt(o,10)}}),era:Fe({matchPatterns:Ua,defaultMatchWidth:"wide",parsePatterns:Na,defaultParseWidth:"any"}),quarter:Fe({matchPatterns:Ya,defaultMatchWidth:"wide",parsePatterns:$a,defaultParseWidth:"any",valueCallback:function(o){return o+1}}),month:Fe({matchPatterns:Ka,defaultMatchWidth:"wide",parsePatterns:Qa,defaultParseWidth:"any"}),day:Fe({matchPatterns:Ja,defaultMatchWidth:"wide",parsePatterns:Xa,defaultParseWidth:"any"}),dayPeriod:Fe({matchPatterns:Za,defaultMatchWidth:"any",parsePatterns:et,defaultParseWidth:"any"})},at={code:"en-US",formatDistance:Sa,formatLong:Pa,formatRelative:Fa,localize:Ra,match:ot,options:{weekStartsOn:0,firstWeekContainsDate:1}},tt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,rt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,nt=/^'([^]*?)'?$/,it=/''/g,lt=/[a-zA-Z]/;function ct(e,o,a){var t,r,n,l,c,m,h,g,s,f,y,w,I,C;te(2,arguments);var q=String(o),x=Ve(),T=(t=(r=void 0)!==null&&r!==void 0?r:x.locale)!==null&&t!==void 0?t:at,S=ve((n=(l=(c=(m=void 0)!==null&&m!==void 0?m:void 0)!==null&&c!==void 0?c:x.firstWeekContainsDate)!==null&&l!==void 0?l:(h=x.locale)===null||h===void 0||(g=h.options)===null||g===void 0?void 0:g.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(S>=1&&S<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=ve((s=(f=(y=(w=void 0)!==null&&w!==void 0?w:void 0)!==null&&y!==void 0?y:x.weekStartsOn)!==null&&f!==void 0?f:(I=x.locale)===null||I===void 0||(C=I.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&s!==void 0?s:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!T.localize)throw new RangeError("locale must contain localize property");if(!T.formatLong)throw new RangeError("locale must contain formatLong property");var M=le(e);if(!ra(M))throw new RangeError("Invalid time value");var W=ya(M),V=ia(M,W),B={firstWeekContainsDate:S,weekStartsOn:p,locale:T,_originalDate:M},F=q.match(rt).map(function(P){var E=P[0];if(E==="p"||E==="P"){var k=xa[E];return k(P,T.formatLong)}return P}).join("").match(tt).map(function(P){if(P==="''")return"'";var E=P[0];if(E==="'")return st(P);var k=pa[E];if(k)return ja(P)&&lo(P,o,String(e)),va(P)&&lo(P,o,String(e)),k(V,P,T.localize,B);if(E.match(lt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+E+"`");return P}).join("");return F}function st(e){var o=e.match(nt);return o?o[1].replace(it,"'"):e}const Le=e=>typeof e=="string"?e:void 0,Mo=({value:e,defaultValue:o}={})=>{const[a,t]=u.useState(!1),[r,n]=u.useState(!1),[l,c]=u.useState(()=>Le(e)??Le(o)??ct(new Date,"yyyy-MM-dd")),m=Le(e);return u.useEffect(()=>{m!==void 0&&c(m)},[m]),{date:l,setDate:c,isHovered:a,setIsHovered:t,isFocused:r,setIsFocused:n}},dt=e=>i.jsx(d.Input,{type:"date",...e}),Fo=({id:e,name:o,label:a,date:t,children:r,helperText:n,shadow:l={},size:c="md",variant:m="default",shape:h="default",views:g={container:{},label:{},helperText:{},text:{},field:{}},error:s=!1,isHovered:f=!1,isFocused:y=!1,isDisabled:w=!1,isReadOnly:I=!1,setDate:C=()=>{},setIsFocused:q=()=>{},setIsHovered:x=()=>{},onChange:T,onChangeText:S,value:p,defaultValue:M,...W})=>{const{themeMode:V}=d.useTheme(),B=u.useId(),F=e??B,P=!!a,E=()=>x(!f),k=()=>q(!0),_=O=>{typeof O=="string"?(C(O),S&&S(O)):(C(O.target.value),T&&T(O.target.value))},A={margin:0,paddingVertical:0,paddingHorizontal:0,width:"100%",height:"100%",border:"none",on:{focus:{outline:"none",backgroundColor:"transparent"}},transition:"all 0.2s ease-in-out",fontSize:d.Typography.fontSizes[c],backgroundColor:"transparent",color:w?"color-gray-400":"color-gray-900",cursor:w?"not-allowed":I?"auto":"pointer",...g.field};return i.jsx(ae.FieldContainer,{helperText:n,error:s,views:g,children:i.jsx(ae.FieldContent,{label:a,size:c,error:s,shape:h,views:g,shadow:l,color:"theme-primary",variant:m,value:t,isHovered:f,isDisabled:w,isReadOnly:I,isFocused:y,showLabel:P,onMouseEnter:E,onMouseLeave:E,children:i.jsxs(ae.FieldWrapper,{children:[P&&i.jsx(ae.FieldLabel,{htmlFor:F,color:"theme-primary",error:s,views:g,children:a}),i.jsx(dt,{id:F,name:o,role:"textbox","aria-label":!P&&typeof a=="string"?a:void 0,onFocus:k,disabled:w,readOnly:I,...A,...W,...S&&{onChangeText:_},onChange:_,value:t})]})})})},ut=e=>{switch(e){case"email":return{autoCorrect:"off",inputMode:"email",autoCapitalize:"none"};case"password":return{autoCorrect:"off",secureTextEntry:!0,autoCapitalize:"none"};case"digits":return{inputMode:"tel"};case"numeric":return{inputMode:"numeric"};case"name":return{autoCorrect:"off"};default:return{}}},Q=({name:e,type:o,...a},t={})=>{const r=$.useFormFocus(),{touched:n,errors:l,submitCount:c,values:m,setFieldTouched:h,setFieldValue:g}=be.useFormikContext(),s=p=>{var M;g(e,p),(M=a.onChangeText)==null||M.call(a,p)},f=p=>{var M;g(e,p),(M=a.onChange)==null||M.call(a,p)},y=()=>{h(e,!0)},w=p=>{p.key==="Enter"&&(p.preventDefault(),r.focusNextInput(e))},I=["text","password","email","digits"].includes(o),C=be.getIn(n,e)||c>0?be.getIn(l,e):void 0,q=be.getIn(m,e),x=typeof document<"u"&&typeof document.createElement=="function",T=!!t.focusable&&r.active,S=T?x?{onKeyPress:w}:{returnKeyType:r.getReturnKeyType(e),onSubmitEditing:()=>r.handleSubmitEditing(e),blurOnSubmit:!1}:{};return{...ut(o),...a,value:q,error:C,onBlur:y,...I?{onChangeText:s}:{onChange:f},...S,...T?{inputRef:p=>r.setInputRef(e,p)}:{}}},mt=e=>{let{value:o,...a}=Q(e);a.isChecked=o;const t=Je.useCheckboxState(e);return i.jsx(Je.CheckboxView,{...t,...a})},ht=mt,ft=e=>{let{value:o,...a}=Q(e);a.isChecked=o===e.value;const t=$.useRadioState(e);return i.jsx($.RadioView,{...t,...a})},gt=ft,pt=e=>{const{name:o,onSubmit:a,...t}=e,[r,n]=u.useState([]),l=Q({name:o,type:"text"}),c=f=>{l.onChangeText&&l.onChangeText(f)},m=(f,y)=>{a?a(f,y):c(f)},h=()=>r,g=()=>n([]),s=$.useChatInputState({...t,value:l.value||"",onChange:c,onSubmit:m});return i.jsx($.ChatInputView,{...t,...s,name:o,value:l.value||"",onChange:c,onSubmit:m,error:l.error,getPendingFiles:h,clearPendingFiles:g})},bt=pt,xt=e=>{const o=Q(e),a=mo(o);return i.jsx(ho,{...a,...o})},yt=xt,wt=e=>{const o=Q(e),a=Mo();return i.jsx(Fo,{...a,...o})},kt=wt,vt=e=>{const o=Q(e),a=fo(e);return i.jsx(go,{...a,...o})},jt=vt,Ct=e=>{let o=Q(e);o.selected=o.value;const a=qe.useSelectState({...e,value:o.value});return i.jsx(qe.SelectView,{...o,...a})},St=Ct,Tt=e=>{const o=Q(e),a=Xe.useSwitchState(e);return i.jsx(Xe.SwitchView,{...a,...o})},_t=Tt,It=e=>{const{name:o,...a}=e,{values:t,errors:r,touched:n,submitCount:l,setFieldValue:c,setFieldTouched:m}=be.useFormikContext(),h=be.getIn(t,o)||[],g=be.getIn(n,o)||l>0?be.getIn(r,o):void 0,s=u.useCallback(C=>{var x;const q=Array.isArray(C)?C.filter(T=>typeof T=="string"):[];c(o,q),(x=e.onTagsChange)==null||x.call(e,q)},[o,c,e.onTagsChange]),f=u.useCallback(()=>{var C;m(o,!0),(C=e.onBlur)==null||C.call(e)},[o,m,e.onBlur]),y=yo({...a,tags:h,onTagsChange:s,onBlur:f}),{tags:w,...I}=y;return i.jsx(wo,{...I,...a,tags:w,error:g})},Pt=It,Mt=e=>{const o=Q(e),a=$.useTextAreaState(e);return i.jsx($.TextAreaView,{...a,...o})},Ft=Mt,Et=e=>{const o=Q(e,{focusable:!0}),{value:a,...t}=xe.useTextFieldState(e);return i.jsx(xe.TextFieldView,{...t,...o})},qt=Et,zt=({visibleIcon:e=i.jsx(Z.OpenEyeIcon,{widthHeight:14}),hiddenIcon:o=i.jsx(Z.CloseEyeIcon,{widthHeight:14}),...a})=>{const t=Q(a,{focusable:!0}),{isVisible:r,setIsVisible:n,...l}=po(t);return i.jsx(xe.TextFieldView,{...l,type:r?"text":"password",isClearable:!1,right:i.jsx(d.View,{onClick:()=>{a.isDisabled||n(!r)},children:r?e:o})})},Wt=zt,Dt=({items:e,placeholder:o,searchPlaceholder:a,isMulti:t=!1,...r})=>{const n=Q(r),l=bo(e,o,a);u.useEffect(()=>{if(t&&Array.isArray(n.value))l.setSelectedItems(n.value);else if(!t&&n.value){const m=typeof n.value=="object"?n.value:e.find(h=>h.value===n.value);m&&l.setSelectedItem(m)}},[n.value,t,e]);const c=m=>{n.onChange(m)};return i.jsx(xo,{...l,...n,items:e,placeholder:o,isMulti:t,onSelect:c})},Vt=Dt,Ot=e=>{const o=Q(e),a=$.useSliderState({...e,value:o.value!==void 0?Number(o.value):void 0,onChange:t=>{var r;o.onChange(t),(r=e.onChange)==null||r.call(e,t)}});return i.jsx($.SliderView,{...e,...a,...o})},Rt=Ot,co=e=>{if(e==null)return"";if(typeof e=="string"||typeof e=="number"){const o=String(e);return o==="[object Object]"?"":o}return""},Ge=(e,o)=>{console.log(`[FormikOTPInput] ${e}`,o)},At=e=>e==null||typeof e=="string"||typeof e=="number"||typeof e=="boolean"?e:Object.prototype.toString.call(e),Ht=e=>{const o=Q(e),a=co(o.value).slice(0,e.length||6);Ge("render",{name:e.name,type:e.type,formValue:At(o.value),displayValue:a,length:e.length||6,hasFormikOnChange:!!o.onChange,hasFormikOnChangeText:!!o.onChangeText});const{isFocused:t,setIsFocused:r,isHovered:n,setIsHovered:l,inputRef:c,containerRef:m,mirrorSelectionStart:h,mirrorSelectionEnd:g,setMirrorSelectionStart:s,setMirrorSelectionEnd:f,setInputRef:y,handleFocus:w,handleBlur:I,handleKeyDown:C,handlePaste:q}=$.useOTPInputState(e),x=u.useCallback(S=>{const p=co(S).slice(0,e.length||6);Ge("setValue",{name:e.name,incomingValue:S,nextValue:p,hasFormikOnChange:!!o.onChange,hasFormikOnChangeText:!!o.onChangeText}),o.onChange&&o.onChange(p),o.onChangeText&&o.onChangeText(p),e.onComplete&&p.length===(e.length||6)&&e.onComplete(p),c.current&&(c.current.value=p)},[o,e,c]),T=u.useCallback(S=>{var W,V,B;const p=typeof S=="string"?S:((W=S==null?void 0:S.currentTarget)==null?void 0:W.value)??((V=S==null?void 0:S.target)==null?void 0:V.value)??((B=S==null?void 0:S.nativeEvent)==null?void 0:B.text)??"",M=String(p).slice(0,e.length||6);Ge("handleChange normalized",{name:e.name,raw:p,newValue:M}),x(M),c.current&&(c.current.value=M)},[e.length,x,c]);return i.jsx($.OTPInputView,{...e,...o,value:a,setValue:x,isFocused:t,setIsFocused:r,isHovered:n,setIsHovered:l,inputRef:c,containerRef:m,mirrorSelectionStart:h,mirrorSelectionEnd:g,setMirrorSelectionStart:s,setMirrorSelectionEnd:f,setInputRef:y,handleChange:T,handleFocus:w,handleBlur:I,handleKeyDown:C,handlePaste:q,stepValues:e.stepValues})},Bt=Ht,Lt=e=>{let o=Q(e);o.selected=o.value;const a=so(e);return i.jsx(uo,{...a,...o})},Gt=Lt,Ut=({children:e,shape:o,variant:a,isDisabled:t,isToggled:r=!1,onToggle:n,...l})=>{const c=Q(l),{isHovered:m,setIsHovered:h,isToggle:g,setIsToggled:s}=$.useToggleState(c.value??r);u.useEffect(()=>{s(c.value??r)},[c.value,r]);const f=y=>{s(y),c.onChange(y),n==null||n(y)};return i.jsx($.ToggleView,{shape:o,variant:a,isDisabled:t,isHovered:m,setIsHovered:h,isToggle:g,setIsToggled:s,onToggle:f,...l,children:e})},Nt=Ut,Yt=({items:e,shape:o,variant:a,onToggleChange:t,...r})=>{const n=Q(r),{activeToggles:l,setActiveToggles:c}=$.useToggleGroupState();u.useEffect(()=>{Array.isArray(n.value)&&c(n.value)},[n.value]);const m=h=>{c(h),n.onChange(h),t==null||t(h)};return i.jsx($.ToggleGroupView,{items:e,shape:o,variant:a,activeToggles:l,setActiveToggles:c,onToggleChange:m,...r})},$t=Yt,Kt=e=>{const o=Q(e),a={...e,value:o.value??e.value??e.defaultValue},t=So(a),r=n=>{t.handleIconSelect(n),o.onChange(n)};return i.jsx(To,{...t,...a,handleIconSelect:r})},Qt=Kt,Jt=e=>{const o=Q(e),a={...e,value:o.value??e.value??e.defaultValue,onChange:o.onChange},t=jo(a),r=n=>{t.handleEmojiSelect(n)};return i.jsx(Co,{...t,...a,handleEmojiSelect:r})},Xt=Jt,Zt=({files:e,onRemove:o,maxHeight:a="120px",views:t={}})=>{if(e.length===0)return null;const r=u.useCallback(n=>n<1024?`${n} B`:n<1024*1024?`${(n/1024).toFixed(1)} KB`:`${(n/(1024*1024)).toFixed(1)} MB`,[]);return i.jsx(d.View,{display:"flex",flexWrap:"wrap",gap:"8px",padding:"8px 0",maxHeight:a,overflowY:"auto",...t==null?void 0:t.container,children:e.map((n,l)=>{const c=n.url||"",m=n.type.startsWith("image/"),h=n.type.startsWith("video/"),g=n.type.startsWith("audio/");return i.jsx(d.Vertical,{alignItems:"center",gap:"6px",padding:"6px 10px",borderRadius:"8px",border:"1px solid #E2E8F0",backgroundColor:"color-white",position:"relative",animate:{from:{opacity:0,scale:.9},to:{opacity:1,scale:1}},animationDuration:.2,...t==null?void 0:t.item,children:i.jsxs($.HoverCard,{children:[i.jsx($.HoverCard.Trigger,{children:i.jsxs(d.View,{position:"relative",children:[m&&c&&i.jsx(d.Image,{src:c,alt:n.name,width:"60px",height:"60px",objectFit:"cover",borderRadius:"8px"}),h&&c&&i.jsx(d.View,{as:"video",src:c,alt:n.name,controls:!1,muted:!0,width:"60px",height:"60px",objectFit:"cover",borderRadius:"8px"}),g&&i.jsx(d.Center,{width:"60px",height:"60px",backgroundColor:"color-gray-100",borderRadius:"8px",children:i.jsx(Z.AudioIcon,{widthHeight:24,color:"color-black"})}),!m&&!h&&!g&&i.jsx(d.Center,{width:"60px",height:"60px",backgroundColor:"color-gray-100",borderRadius:"8px",children:i.jsx(Z.FileIcon,{widthHeight:24,color:"color-black"})}),o&&i.jsx(d.Button,{position:"absolute",top:"-4px",right:"-4px",width:"20px",height:"20px",minWidth:"20px",minHeight:"20px",borderRadius:"50%",backgroundColor:"color-red-500",color:"white",fontSize:14,fontWeight:"bold",padding:0,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",border:"2px solid white",transition:"background-color 0.2s ease, opacity 0.2s ease",_hover:{backgroundColor:"#DC2626"},onClick:s=>{s.stopPropagation(),o(l)},"aria-label":`Remove ${n.name}`,children:"×"})]})}),i.jsxs($.HoverCard.Content,{children:[m&&c&&i.jsx(d.Image,{src:c,alt:n.name,maxWidth:"300px"}),h&&c&&i.jsx(d.View,{as:"video",src:c,controls:!0,maxWidth:"300px"}),g&&c&&i.jsx(d.View,{as:"audio",src:c,controls:!0,width:"100%"}),i.jsxs(d.Text,{marginTop:"4px",maxLines:1,width:"100%",fontSize:12,...t==null?void 0:t.name,children:[n.name," (",r(n.size),")"]})]})]})},l)})})};exports.AttachmentPreview=Zt;exports.ColorInputView=ho;exports.ComboBoxView=xo;exports.CountryPickerView=go;exports.DatePickerView=Fo;exports.EmojiPickerView=Co;exports.FormikChatInput=bt;exports.FormikCheckbox=ht;exports.FormikColorInput=yt;exports.FormikComboBox=Vt;exports.FormikCountryPicker=jt;exports.FormikDatePicker=kt;exports.FormikEmojiPicker=Xt;exports.FormikIconPicker=Qt;exports.FormikOTPInput=Bt;exports.FormikPassword=Wt;exports.FormikRadio=gt;exports.FormikSelect=St;exports.FormikSelector=Gt;exports.FormikSlider=Rt;exports.FormikSwitch=_t;exports.FormikTagInput=Pt;exports.FormikTextArea=Ft;exports.FormikTextField=qt;exports.FormikToggle=Nt;exports.FormikToggleGroup=$t;exports.IconPickerView=To;exports.SelectorView=uo;exports.TagInputView=wo;exports.defaultEmojiPickerLabels=ko;exports.useColorInputState=mo;exports.useComboBoxState=bo;exports.useCountryPickerState=fo;exports.useDatePickerState=Mo;exports.useEmojiPickerState=jo;exports.useIconPickerState=So;exports.usePasswordState=po;exports.useSelectorState=so;exports.useTagInputState=yo;
|
|
2
|
+
//# sourceMappingURL=AttachmentPreview-Bwrz5TJh.cjs.map
|