@app-studio/components 0.11.12 → 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 -19
- 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";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/Router-DjmVh9pK.cjs"),t=require("./chunks/Router.store-Bxe2uZWk.cjs");exports.Router=e.Router;exports.matchPath=e.matchPath;exports.useHistory=e.useHistory;exports.goBack=t.goBack;exports.navigate=t.navigate;exports.useRouterStore=t.useRouterStore;
|
|
2
|
+
//# sourceMappingURL=router.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"router.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types/components/Router/index.js';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { R as s, m as t, u as e } from "./chunks/Router-Dtb8HvI0.mjs";
|
|
2
|
+
import { g as u, n as m, u as g } from "./chunks/Router.store-C0zWd45T.mjs";
|
|
3
|
+
export {
|
|
4
|
+
s as Router,
|
|
5
|
+
u as goBack,
|
|
6
|
+
t as matchPath,
|
|
7
|
+
m as navigate,
|
|
8
|
+
e as useHistory,
|
|
9
|
+
g as useRouterStore
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=router.esm.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"router.esm.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types/components/pilot/select.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select.esm.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("app-studio"),t=require("./chunks/Card-CNSl9fD5.cjs"),s=require("./chunks/Select-C6R0Tei-.cjs"),c=require("./chunks/Switch-D80yPNFV.cjs"),o=[{label:"System",value:"system"},{label:"Light",value:"light"},{label:"Dark",value:"dark"}];function d({appearance:a,notifications:r,onAppearanceChange:i,onNotificationsChange:l}){return e.jsxs(t.Card,{children:[e.jsx(t.Card.Header,{children:e.jsx(n.Text,{fontWeight:"bold",children:"Settings"})}),e.jsx(t.Card.Content,{children:e.jsxs(n.Vertical,{gap:12,children:[e.jsx(s.Select,{label:"Appearance",options:o,value:a,onChange:i}),e.jsx(c.Switch,{label:"Notifications",isChecked:r,onChange:l})]})})]})}exports.SettingsPanel=d;
|
|
2
|
+
//# sourceMappingURL=settings-panel.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings-panel.cjs.js","sources":["../src/components/pilot/blocks/SettingsPanel.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, Vertical } from 'app-studio';\nimport { Card } from '../card';\nimport { Select } from '../select';\nimport { Switch } from '../switch';\n\nconst appearances = [\n { label: 'System', value: 'system' },\n { label: 'Light', value: 'light' },\n { label: 'Dark', value: 'dark' },\n];\n\nexport interface SettingsPanelProps {\n appearance: string;\n notifications: boolean;\n onAppearanceChange: (appearance: string) => void;\n onNotificationsChange: (enabled: boolean) => void;\n}\n\nexport function SettingsPanel({\n appearance,\n notifications,\n onAppearanceChange,\n onNotificationsChange,\n}: SettingsPanelProps) {\n return (\n <Card>\n <Card.Header>\n <Text fontWeight=\"bold\">Settings</Text>\n </Card.Header>\n <Card.Content>\n <Vertical gap={12}>\n <Select\n label=\"Appearance\"\n options={appearances}\n value={appearance}\n onChange={onAppearanceChange}\n />\n <Switch\n label=\"Notifications\"\n isChecked={notifications}\n onChange={onNotificationsChange}\n />\n </Vertical>\n </Card.Content>\n </Card>\n );\n}\n"],"names":["appearances","SettingsPanel","appearance","notifications","onAppearanceChange","onNotificationsChange","Card","jsx","Text","jsxs","Vertical","Select","Switch"],"mappings":"yQAMMA,EAAc,CAClB,CAAE,MAAO,SAAU,MAAO,QAAA,EAC1B,CAAE,MAAO,QAAS,MAAO,OAAA,EACzB,CAAE,MAAO,OAAQ,MAAO,MAAA,CAC1B,EASO,SAASC,EAAc,CAC5B,WAAAC,EACA,cAAAC,EACA,mBAAAC,EACA,sBAAAC,CACF,EAAuB,CACrB,cACGC,OAAA,CACC,SAAA,CAAAC,EAAAA,IAACD,EAAAA,KAAK,OAAL,CACC,SAAAC,EAAAA,IAACC,EAAAA,MAAK,WAAW,OAAO,oBAAQ,CAAA,CAClC,QACCF,EAAAA,KAAK,QAAL,CACC,SAAAG,OAACC,EAAAA,SAAA,CAAS,IAAK,GACb,SAAA,CAAAH,EAAAA,IAACI,EAAAA,OAAA,CACC,MAAM,aACN,QAASX,EACT,MAAOE,EACP,SAAUE,CAAA,CAAA,EAEZG,EAAAA,IAACK,EAAAA,OAAA,CACC,MAAM,gBACN,UAAWT,EACX,SAAUE,CAAA,CAAA,CACZ,CAAA,CACF,CAAA,CACF,CAAA,EACF,CAEJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types/components/pilot/settings-panel.js';
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Text as o, Vertical as s } from "app-studio";
|
|
3
|
+
import { C as t } from "./chunks/Card-DMhV_NTt.mjs";
|
|
4
|
+
import { S as c } from "./chunks/Select-C7IBNyjR.mjs";
|
|
5
|
+
import { S as h } from "./chunks/Switch-DWx1g3jT.mjs";
|
|
6
|
+
const m = [
|
|
7
|
+
{ label: "System", value: "system" },
|
|
8
|
+
{ label: "Light", value: "light" },
|
|
9
|
+
{ label: "Dark", value: "dark" }
|
|
10
|
+
];
|
|
11
|
+
function b({
|
|
12
|
+
appearance: r,
|
|
13
|
+
notifications: l,
|
|
14
|
+
onAppearanceChange: i,
|
|
15
|
+
onNotificationsChange: n
|
|
16
|
+
}) {
|
|
17
|
+
return /* @__PURE__ */ a(t, { children: [
|
|
18
|
+
/* @__PURE__ */ e(t.Header, { children: /* @__PURE__ */ e(o, { fontWeight: "bold", children: "Settings" }) }),
|
|
19
|
+
/* @__PURE__ */ e(t.Content, { children: /* @__PURE__ */ a(s, { gap: 12, children: [
|
|
20
|
+
/* @__PURE__ */ e(
|
|
21
|
+
c,
|
|
22
|
+
{
|
|
23
|
+
label: "Appearance",
|
|
24
|
+
options: m,
|
|
25
|
+
value: r,
|
|
26
|
+
onChange: i
|
|
27
|
+
}
|
|
28
|
+
),
|
|
29
|
+
/* @__PURE__ */ e(
|
|
30
|
+
h,
|
|
31
|
+
{
|
|
32
|
+
label: "Notifications",
|
|
33
|
+
isChecked: l,
|
|
34
|
+
onChange: n
|
|
35
|
+
}
|
|
36
|
+
)
|
|
37
|
+
] }) })
|
|
38
|
+
] });
|
|
39
|
+
}
|
|
40
|
+
export {
|
|
41
|
+
b as SettingsPanel
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=settings-panel.esm.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings-panel.esm.mjs","sources":["../src/components/pilot/blocks/SettingsPanel.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, Vertical } from 'app-studio';\nimport { Card } from '../card';\nimport { Select } from '../select';\nimport { Switch } from '../switch';\n\nconst appearances = [\n { label: 'System', value: 'system' },\n { label: 'Light', value: 'light' },\n { label: 'Dark', value: 'dark' },\n];\n\nexport interface SettingsPanelProps {\n appearance: string;\n notifications: boolean;\n onAppearanceChange: (appearance: string) => void;\n onNotificationsChange: (enabled: boolean) => void;\n}\n\nexport function SettingsPanel({\n appearance,\n notifications,\n onAppearanceChange,\n onNotificationsChange,\n}: SettingsPanelProps) {\n return (\n <Card>\n <Card.Header>\n <Text fontWeight=\"bold\">Settings</Text>\n </Card.Header>\n <Card.Content>\n <Vertical gap={12}>\n <Select\n label=\"Appearance\"\n options={appearances}\n value={appearance}\n onChange={onAppearanceChange}\n />\n <Switch\n label=\"Notifications\"\n isChecked={notifications}\n onChange={onNotificationsChange}\n />\n </Vertical>\n </Card.Content>\n </Card>\n );\n}\n"],"names":["appearances","SettingsPanel","appearance","notifications","onAppearanceChange","onNotificationsChange","Card","jsx","Text","jsxs","Vertical","Select","Switch"],"mappings":";;;;;AAMA,MAAMA,IAAc;AAAA,EAClB,EAAE,OAAO,UAAU,OAAO,SAAA;AAAA,EAC1B,EAAE,OAAO,SAAS,OAAO,QAAA;AAAA,EACzB,EAAE,OAAO,QAAQ,OAAO,OAAA;AAC1B;AASO,SAASC,EAAc;AAAA,EAC5B,YAAAC;AAAA,EACA,eAAAC;AAAA,EACA,oBAAAC;AAAA,EACA,uBAAAC;AACF,GAAuB;AACrB,2BACGC,GAAA,EACC,UAAA;AAAA,IAAA,gBAAAC,EAACD,EAAK,QAAL,EACC,UAAA,gBAAAC,EAACC,KAAK,YAAW,QAAO,sBAAQ,EAAA,CAClC;AAAA,sBACCF,EAAK,SAAL,EACC,UAAA,gBAAAG,EAACC,GAAA,EAAS,KAAK,IACb,UAAA;AAAA,MAAA,gBAAAH;AAAA,QAACI;AAAA,QAAA;AAAA,UACC,OAAM;AAAA,UACN,SAASX;AAAA,UACT,OAAOE;AAAA,UACP,UAAUE;AAAA,QAAA;AAAA,MAAA;AAAA,MAEZ,gBAAAG;AAAA,QAACK;AAAA,QAAA;AAAA,UACC,OAAM;AAAA,UACN,WAAWT;AAAA,UACX,UAAUE;AAAA,QAAA;AAAA,MAAA;AAAA,IACZ,EAAA,CACF,EAAA,CACF;AAAA,EAAA,GACF;AAEJ;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),r=require("react"),g=require("app-studio"),S=require("./chunks/Alert-Bjl40k3x.cjs"),b=require("./chunks/Button.pilot-JmR2DCSE.cjs"),n=require("./chunks/Card-CNSl9fD5.cjs"),p=require("./chunks/TextField-Da4JCcAU.cjs");function j({onSubmit:f}){const[l,m]=r.useState(""),[s,o]=r.useState(""),[t,d]=r.useState(!1),[u,a]=r.useState("");async function c(){if(t)return;const e=l.trim();if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)||!s){a("Enter a valid email address and password.");return}d(!0),a("");try{await f({email:e,password:s}),o("")}catch{a("Sign-in failed. Please try again.")}finally{d(!1)}}return i.jsxs(n.Card,{children:[i.jsx(n.Card.Header,{children:i.jsx(g.Text,{fontWeight:"bold",children:"Sign in"})}),i.jsx(n.Card.Content,{children:i.jsxs(g.Form,{display:"flex",flexDirection:"column",gap:12,noValidate:!0,onSubmit:e=>{e.preventDefault(),c()},children:[i.jsx(p.TextField,{label:"Email",type:"email",value:l,onChange:m,isRequired:!0,isDisabled:t}),i.jsx(p.TextField,{label:"Password",type:"password",value:s,onChange:o,isRequired:!0,isDisabled:t}),u&&i.jsx(S.Alert,{variant:"error",title:u}),i.jsx(b.Button,{isLoading:t,"aria-busy":t||void 0,type:"submit",onClick:e=>{var x;(x=e==null?void 0:e.preventDefault)==null||x.call(e),c()},children:"Sign in"})]})})]})}exports.SignIn=j;
|
|
2
|
+
//# sourceMappingURL=sign-in.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sign-in.cjs.js","sources":["../src/components/pilot/blocks/SignIn.tsx"],"sourcesContent":["import React, { useState } from 'react';\nimport { Form, Text } from 'app-studio';\nimport { Alert } from '../alert';\nimport { Button } from '../button';\nimport { Card } from '../card';\nimport { TextField } from '../text-field';\n\nexport interface SignInProps {\n onSubmit: (credentials: {\n email: string;\n password: string;\n }) => void | Promise<void>;\n}\n\nexport function SignIn({ onSubmit }: SignInProps) {\n const [email, setEmail] = useState('');\n const [password, setPassword] = useState('');\n const [pending, setPending] = useState(false);\n const [error, setError] = useState('');\n\n async function submit() {\n if (pending) return;\n const address = email.trim();\n if (!/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(address) || !password) {\n setError('Enter a valid email address and password.');\n return;\n }\n setPending(true);\n setError('');\n try {\n await onSubmit({ email: address, password });\n setPassword('');\n } catch {\n setError('Sign-in failed. Please try again.');\n } finally {\n setPending(false);\n }\n }\n\n return (\n <Card>\n <Card.Header>\n <Text fontWeight=\"bold\">Sign in</Text>\n </Card.Header>\n <Card.Content>\n <Form\n display=\"flex\"\n flexDirection=\"column\"\n gap={12}\n noValidate\n onSubmit={(event: React.FormEvent) => {\n event.preventDefault();\n void submit();\n }}\n >\n <TextField\n label=\"Email\"\n type=\"email\"\n value={email}\n onChange={setEmail}\n isRequired\n isDisabled={pending}\n />\n <TextField\n label=\"Password\"\n type=\"password\"\n value={password}\n onChange={setPassword}\n isRequired\n isDisabled={pending}\n />\n {error && <Alert variant=\"error\" title={error} />}\n <Button\n isLoading={pending}\n aria-busy={pending || undefined}\n type=\"submit\"\n onClick={(event?: { preventDefault?: () => void }) => {\n event?.preventDefault?.();\n void submit();\n }}\n >\n Sign in\n </Button>\n </Form>\n </Card.Content>\n </Card>\n );\n}\n"],"names":["SignIn","onSubmit","email","setEmail","useState","password","setPassword","pending","setPending","error","setError","submit","address","Card","jsx","Text","jsxs","Form","event","TextField","Alert","Button","_a"],"mappings":"8UAcO,SAASA,EAAO,CAAE,SAAAC,GAAyB,CAChD,KAAM,CAACC,EAAOC,CAAQ,EAAIC,EAAAA,SAAS,EAAE,EAC/B,CAACC,EAAUC,CAAW,EAAIF,EAAAA,SAAS,EAAE,EACrC,CAACG,EAASC,CAAU,EAAIJ,EAAAA,SAAS,EAAK,EACtC,CAACK,EAAOC,CAAQ,EAAIN,EAAAA,SAAS,EAAE,EAErC,eAAeO,GAAS,CACtB,GAAIJ,EAAS,OACb,MAAMK,EAAUV,EAAM,KAAA,EACtB,GAAI,CAAC,6BAA6B,KAAKU,CAAO,GAAK,CAACP,EAAU,CAC5DK,EAAS,2CAA2C,EACpD,MACF,CACAF,EAAW,EAAI,EACfE,EAAS,EAAE,EACX,GAAI,CACF,MAAMT,EAAS,CAAE,MAAOW,EAAS,SAAAP,EAAU,EAC3CC,EAAY,EAAE,CAChB,MAAQ,CACNI,EAAS,mCAAmC,CAC9C,QAAA,CACEF,EAAW,EAAK,CAClB,CACF,CAEA,cACGK,OAAA,CACC,SAAA,CAAAC,EAAAA,IAACD,EAAAA,KAAK,OAAL,CACC,SAAAC,EAAAA,IAACC,EAAAA,MAAK,WAAW,OAAO,mBAAO,CAAA,CACjC,EACAD,EAAAA,IAACD,EAAAA,KAAK,QAAL,CACC,SAAAG,EAAAA,KAACC,EAAAA,KAAA,CACC,QAAQ,OACR,cAAc,SACd,IAAK,GACL,WAAU,GACV,SAAWC,GAA2B,CACpCA,EAAM,eAAA,EACDP,EAAA,CACP,EAEA,SAAA,CAAAG,EAAAA,IAACK,EAAAA,UAAA,CACC,MAAM,QACN,KAAK,QACL,MAAOjB,EACP,SAAUC,EACV,WAAU,GACV,WAAYI,CAAA,CAAA,EAEdO,EAAAA,IAACK,EAAAA,UAAA,CACC,MAAM,WACN,KAAK,WACL,MAAOd,EACP,SAAUC,EACV,WAAU,GACV,WAAYC,CAAA,CAAA,EAEbE,GAASK,EAAAA,IAACM,QAAA,CAAM,QAAQ,QAAQ,MAAOX,EAAO,EAC/CK,EAAAA,IAACO,EAAAA,OAAA,CACC,UAAWd,EACX,YAAWA,GAAW,OACtB,KAAK,SACL,QAAUW,GAA4C,QACpDI,EAAAJ,GAAA,YAAAA,EAAO,iBAAP,MAAAI,EAAA,KAAAJ,GACKP,EAAA,CACP,EACD,SAAA,SAAA,CAAA,CAED,CAAA,CAAA,CACF,CACF,CAAA,EACF,CAEJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types/components/pilot/sign-in.js';
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { jsxs as c, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useState as a } from "react";
|
|
3
|
+
import { Text as b, Form as y } from "app-studio";
|
|
4
|
+
import { A as x } from "./chunks/Alert-Q1HlVX8f.mjs";
|
|
5
|
+
import { B as w } from "./chunks/Button.pilot-C4BIb08S.mjs";
|
|
6
|
+
import { C as o } from "./chunks/Card-DMhV_NTt.mjs";
|
|
7
|
+
import { T as p } from "./chunks/TextField-DOU2CL5J.mjs";
|
|
8
|
+
function q({ onSubmit: g }) {
|
|
9
|
+
const [n, h] = a(""), [t, l] = a(""), [e, d] = a(!1), [m, s] = a("");
|
|
10
|
+
async function u() {
|
|
11
|
+
if (e) return;
|
|
12
|
+
const i = n.trim();
|
|
13
|
+
if (!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(i) || !t) {
|
|
14
|
+
s("Enter a valid email address and password.");
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
d(!0), s("");
|
|
18
|
+
try {
|
|
19
|
+
await g({ email: i, password: t }), l("");
|
|
20
|
+
} catch {
|
|
21
|
+
s("Sign-in failed. Please try again.");
|
|
22
|
+
} finally {
|
|
23
|
+
d(!1);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
return /* @__PURE__ */ c(o, { children: [
|
|
27
|
+
/* @__PURE__ */ r(o.Header, { children: /* @__PURE__ */ r(b, { fontWeight: "bold", children: "Sign in" }) }),
|
|
28
|
+
/* @__PURE__ */ r(o.Content, { children: /* @__PURE__ */ c(
|
|
29
|
+
y,
|
|
30
|
+
{
|
|
31
|
+
display: "flex",
|
|
32
|
+
flexDirection: "column",
|
|
33
|
+
gap: 12,
|
|
34
|
+
noValidate: !0,
|
|
35
|
+
onSubmit: (i) => {
|
|
36
|
+
i.preventDefault(), u();
|
|
37
|
+
},
|
|
38
|
+
children: [
|
|
39
|
+
/* @__PURE__ */ r(
|
|
40
|
+
p,
|
|
41
|
+
{
|
|
42
|
+
label: "Email",
|
|
43
|
+
type: "email",
|
|
44
|
+
value: n,
|
|
45
|
+
onChange: h,
|
|
46
|
+
isRequired: !0,
|
|
47
|
+
isDisabled: e
|
|
48
|
+
}
|
|
49
|
+
),
|
|
50
|
+
/* @__PURE__ */ r(
|
|
51
|
+
p,
|
|
52
|
+
{
|
|
53
|
+
label: "Password",
|
|
54
|
+
type: "password",
|
|
55
|
+
value: t,
|
|
56
|
+
onChange: l,
|
|
57
|
+
isRequired: !0,
|
|
58
|
+
isDisabled: e
|
|
59
|
+
}
|
|
60
|
+
),
|
|
61
|
+
m && /* @__PURE__ */ r(x, { variant: "error", title: m }),
|
|
62
|
+
/* @__PURE__ */ r(
|
|
63
|
+
w,
|
|
64
|
+
{
|
|
65
|
+
isLoading: e,
|
|
66
|
+
"aria-busy": e || void 0,
|
|
67
|
+
type: "submit",
|
|
68
|
+
onClick: (i) => {
|
|
69
|
+
var f;
|
|
70
|
+
(f = i == null ? void 0 : i.preventDefault) == null || f.call(i), u();
|
|
71
|
+
},
|
|
72
|
+
children: "Sign in"
|
|
73
|
+
}
|
|
74
|
+
)
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
) })
|
|
78
|
+
] });
|
|
79
|
+
}
|
|
80
|
+
export {
|
|
81
|
+
q as SignIn
|
|
82
|
+
};
|
|
83
|
+
//# sourceMappingURL=sign-in.esm.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sign-in.esm.mjs","sources":["../src/components/pilot/blocks/SignIn.tsx"],"sourcesContent":["import React, { useState } from 'react';\nimport { Form, Text } from 'app-studio';\nimport { Alert } from '../alert';\nimport { Button } from '../button';\nimport { Card } from '../card';\nimport { TextField } from '../text-field';\n\nexport interface SignInProps {\n onSubmit: (credentials: {\n email: string;\n password: string;\n }) => void | Promise<void>;\n}\n\nexport function SignIn({ onSubmit }: SignInProps) {\n const [email, setEmail] = useState('');\n const [password, setPassword] = useState('');\n const [pending, setPending] = useState(false);\n const [error, setError] = useState('');\n\n async function submit() {\n if (pending) return;\n const address = email.trim();\n if (!/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(address) || !password) {\n setError('Enter a valid email address and password.');\n return;\n }\n setPending(true);\n setError('');\n try {\n await onSubmit({ email: address, password });\n setPassword('');\n } catch {\n setError('Sign-in failed. Please try again.');\n } finally {\n setPending(false);\n }\n }\n\n return (\n <Card>\n <Card.Header>\n <Text fontWeight=\"bold\">Sign in</Text>\n </Card.Header>\n <Card.Content>\n <Form\n display=\"flex\"\n flexDirection=\"column\"\n gap={12}\n noValidate\n onSubmit={(event: React.FormEvent) => {\n event.preventDefault();\n void submit();\n }}\n >\n <TextField\n label=\"Email\"\n type=\"email\"\n value={email}\n onChange={setEmail}\n isRequired\n isDisabled={pending}\n />\n <TextField\n label=\"Password\"\n type=\"password\"\n value={password}\n onChange={setPassword}\n isRequired\n isDisabled={pending}\n />\n {error && <Alert variant=\"error\" title={error} />}\n <Button\n isLoading={pending}\n aria-busy={pending || undefined}\n type=\"submit\"\n onClick={(event?: { preventDefault?: () => void }) => {\n event?.preventDefault?.();\n void submit();\n }}\n >\n Sign in\n </Button>\n </Form>\n </Card.Content>\n </Card>\n );\n}\n"],"names":["SignIn","onSubmit","email","setEmail","useState","password","setPassword","pending","setPending","error","setError","submit","address","Card","jsx","Text","jsxs","Form","event","TextField","Alert","Button","_a"],"mappings":";;;;;;;AAcO,SAASA,EAAO,EAAE,UAAAC,KAAyB;AAChD,QAAM,CAACC,GAAOC,CAAQ,IAAIC,EAAS,EAAE,GAC/B,CAACC,GAAUC,CAAW,IAAIF,EAAS,EAAE,GACrC,CAACG,GAASC,CAAU,IAAIJ,EAAS,EAAK,GACtC,CAACK,GAAOC,CAAQ,IAAIN,EAAS,EAAE;AAErC,iBAAeO,IAAS;AACtB,QAAIJ,EAAS;AACb,UAAMK,IAAUV,EAAM,KAAA;AACtB,QAAI,CAAC,6BAA6B,KAAKU,CAAO,KAAK,CAACP,GAAU;AAC5D,MAAAK,EAAS,2CAA2C;AACpD;AAAA,IACF;AACA,IAAAF,EAAW,EAAI,GACfE,EAAS,EAAE;AACX,QAAI;AACF,YAAMT,EAAS,EAAE,OAAOW,GAAS,UAAAP,GAAU,GAC3CC,EAAY,EAAE;AAAA,IAChB,QAAQ;AACN,MAAAI,EAAS,mCAAmC;AAAA,IAC9C,UAAA;AACE,MAAAF,EAAW,EAAK;AAAA,IAClB;AAAA,EACF;AAEA,2BACGK,GAAA,EACC,UAAA;AAAA,IAAA,gBAAAC,EAACD,EAAK,QAAL,EACC,UAAA,gBAAAC,EAACC,KAAK,YAAW,QAAO,qBAAO,EAAA,CACjC;AAAA,IACA,gBAAAD,EAACD,EAAK,SAAL,EACC,UAAA,gBAAAG;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,SAAQ;AAAA,QACR,eAAc;AAAA,QACd,KAAK;AAAA,QACL,YAAU;AAAA,QACV,UAAU,CAACC,MAA2B;AACpC,UAAAA,EAAM,eAAA,GACDP,EAAA;AAAA,QACP;AAAA,QAEA,UAAA;AAAA,UAAA,gBAAAG;AAAA,YAACK;AAAA,YAAA;AAAA,cACC,OAAM;AAAA,cACN,MAAK;AAAA,cACL,OAAOjB;AAAA,cACP,UAAUC;AAAA,cACV,YAAU;AAAA,cACV,YAAYI;AAAA,YAAA;AAAA,UAAA;AAAA,UAEd,gBAAAO;AAAA,YAACK;AAAA,YAAA;AAAA,cACC,OAAM;AAAA,cACN,MAAK;AAAA,cACL,OAAOd;AAAA,cACP,UAAUC;AAAA,cACV,YAAU;AAAA,cACV,YAAYC;AAAA,YAAA;AAAA,UAAA;AAAA,UAEbE,KAAS,gBAAAK,EAACM,GAAA,EAAM,SAAQ,SAAQ,OAAOX,GAAO;AAAA,UAC/C,gBAAAK;AAAA,YAACO;AAAA,YAAA;AAAA,cACC,WAAWd;AAAA,cACX,aAAWA,KAAW;AAAA,cACtB,MAAK;AAAA,cACL,SAAS,CAACW,MAA4C;;AACpD,iBAAAI,IAAAJ,KAAA,gBAAAA,EAAO,mBAAP,QAAAI,EAAA,KAAAJ,IACKP,EAAA;AAAA,cACP;AAAA,cACD,UAAA;AAAA,YAAA;AAAA,UAAA;AAAA,QAED;AAAA,MAAA;AAAA,IAAA,EACF,CACF;AAAA,EAAA,GACF;AAEJ;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"switch.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types/components/pilot/switch.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"switch.esm.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/tabs.cjs.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabs.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types/components/pilot/tabs.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabs.esm.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-field.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types/components/pilot/text-field.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-field.esm.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),u=require("react"),C=require("app-studio"),P=require("./chunks/default-D7ePSMKP.cjs"),j=({children:e,id:t,appearance:o})=>c.jsx("div",{"data-design-system":t,"data-appearance":o,style:{display:"contents"},children:e}),i=e=>!!e&&typeof e=="object"&&!Array.isArray(e)&&Object.prototype.toString.call(e)==="[object Object]",g=e=>e,a=(...e)=>{const t={};return e.forEach(o=>{i(o)&&Object.entries(o).forEach(([n,s])=>{if(s!=null){if(i(s)&&i(t[n])){t[n]=a(t[n],s);return}t[n]=s}})}),t},h=e=>{if(Array.isArray(e)||!i(e))return e;const t={};for(const[o,n]of Object.entries(e))n!==null&&(t[o]=i(n)?h(n):n);return t},v=new Set(["button"]),w=["backgroundColor","background","borderColor","color"],b=new Set,O=(e,t)=>{if(process.env.NODE_ENV!=="production"&&!(!t||!v.has(e))&&!b.has(e))for(const[o,n]of Object.entries(t)){if(!i(n))continue;const s=w.filter(r=>n[r]!=null);if(s.length>0){b.add(e),console.warn(`[design-system] components.${e}.views.${o} sets ${s.join(", ")} — view styles apply above every variant, so this flattens ghost/outline/subtle into solid blocks. Move colors to components.${e}.config.variants.<variant> (merged under each variant); keep views to shape and typography.`);return}}},l=(e,t)=>{if(!t)return{};const o=t.components[e]||{},n=g(h(o));return O(e,n.views),n},D=(e,t,o)=>{const{config:n,...s}=t,r=l(e,o),d=a(r,n||{});return g(a(d,s))},p=u.createContext({isEnabled:!1}),E=({children:e,config:t,mode:o,targetWindow:n,inheritTheme:s=!1})=>{const r=t??P.defaultConfig,{themeMode:d}=C.useTheme(),m=o??d??r.metadata.defaultAppearance,y=u.useMemo(()=>({config:r,configId:r.metadata.id,isEnabled:!0}),[r]),S=c.jsx(j,{id:r.metadata.id,appearance:m,children:e});return s?c.jsx(p.Provider,{value:y,children:S}):c.jsx(p.Provider,{value:y,children:c.jsx(C.ThemeProvider,{theme:r.theme,mode:m,targetWindow:n,transparentWrapper:!0,children:S})})},f=()=>u.useContext(p),M=e=>{const{config:t}=f();return l(e,t)},x=(e,t)=>{const{config:o}=f();return D(e,t,o)};exports.DesignSystemProvider=E;exports.deepMerge=a;exports.getDesignSystemComponentProps=l;exports.mergeDesignSystemComponentProps=D;exports.normalizeDesignSystemComponentProps=g;exports.useDesignSystem=f;exports.useDesignSystemComponentProps=M;exports.useMergedDesignSystemComponentProps=x;
|
|
2
|
+
//# sourceMappingURL=theme.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.cjs.js","sources":["../src/design-system/DesignSystemScope.tsx","../src/design-system/utils.ts","../src/design-system/theme.tsx"],"sourcesContent":["import React from 'react';\nimport { DesignSystemScopeProps } from './types';\n\n/**\n * Marks the design system's subtree for CSS (`[data-design-system]`,\n * `[data-appearance]`) without adding a layout box. Native twin:\n * DesignSystemScope.native, which has no DOM to mark.\n */\nexport const DesignSystemScope: React.FC<DesignSystemScopeProps> = ({\n children,\n id,\n appearance,\n}) => (\n <div\n data-design-system={id}\n data-appearance={appearance}\n style={{ display: 'contents' }}\n >\n {children}\n </div>\n);\n","import {\n DesignSystemComponentConfig,\n DesignSystemComponentName,\n DesignSystemConfig,\n DesignSystemViewProps,\n} from './types';\n\nconst isPlainObject = (value: unknown): value is Record<string, any> =>\n Boolean(value) &&\n typeof value === 'object' &&\n !Array.isArray(value) &&\n Object.prototype.toString.call(value) === '[object Object]';\n\nexport const normalizeDesignSystemComponentProps = <\n T extends Record<string, any>\n>(\n props: T\n): T => {\n return props;\n};\n\nexport const deepMerge = <T extends Record<string, any> = Record<string, any>>(\n ...objects: Array<Record<string, any> | undefined>\n): T => {\n const result: Record<string, any> = {};\n\n objects.forEach((object) => {\n if (!isPlainObject(object)) return;\n\n Object.entries(object).forEach(([key, value]) => {\n // Treat null the same as undefined: configs use null to declare a key\n // exists in the schema without overriding component defaults. Nested\n // nulls (e.g. `views.container.backgroundColor: null`) are pre-stripped\n // from configs at the boundary — see `stripNullsDeep` below — so this\n // top-level check is sufficient and we keep the cycle-safe shape that\n // assigns React-element props by reference rather than recursing.\n if (value === undefined || value === null) return;\n\n if (isPlainObject(value) && isPlainObject(result[key])) {\n result[key] = deepMerge(result[key], value);\n return;\n }\n\n result[key] = value;\n });\n });\n\n return result as T;\n};\n\n// Recursively remove keys whose value is `null` from plain-object trees.\n// Only descends into plain objects: arrays and non-object values are returned\n// as-is, so React elements / fibers / class instances are left alone. Used to\n// scrub `views.container.backgroundColor: null` and friends from configs\n// before they ever reach the merge pipeline.\nconst stripNullsDeep = <T>(value: T): T => {\n if (Array.isArray(value)) return value;\n if (!isPlainObject(value)) return value;\n const out: Record<string, any> = {};\n for (const [k, v] of Object.entries(value)) {\n if (v === null) continue;\n out[k] = isPlainObject(v) ? stripNullsDeep(v) : v;\n }\n return out as T;\n};\n\n// Components whose colors are computed per-variant. A config block's `views`\n// sits ABOVE the variant palette, so a color there flattens every variant\n// (ghost/outline/subtle all render as solid blocks). Colors for these\n// components belong in `config.variants.<variant>` (merged UNDER each\n// variant) or the top-level `color`/`textColor` keys.\nconst VARIANT_DRIVEN_COMPONENTS: ReadonlySet<string> = new Set(['button']);\nconst VIEW_COLOR_KEYS = [\n 'backgroundColor',\n 'background',\n 'borderColor',\n 'color',\n] as const;\nconst warnedViewColorBlocks = new Set<string>();\n\nconst warnOnViewColors = (\n componentName: string,\n views: Record<string, Record<string, unknown>> | undefined\n) => {\n if (process.env.NODE_ENV === 'production') return;\n if (!views || !VARIANT_DRIVEN_COMPONENTS.has(componentName)) return;\n if (warnedViewColorBlocks.has(componentName)) return;\n for (const [viewKey, viewValue] of Object.entries(views)) {\n if (!isPlainObject(viewValue)) continue;\n const offenders = VIEW_COLOR_KEYS.filter((k) => viewValue[k] != null);\n if (offenders.length > 0) {\n warnedViewColorBlocks.add(componentName);\n console.warn(\n `[design-system] components.${componentName}.views.${viewKey} sets ` +\n `${offenders.join(', ')} — view styles apply above every variant, ` +\n 'so this flattens ghost/outline/subtle into solid blocks. Move ' +\n `colors to components.${componentName}.config.variants.<variant> ` +\n '(merged under each variant); keep views to shape and typography.'\n );\n return;\n }\n }\n};\n\nexport const getDesignSystemComponentProps = (\n componentName: DesignSystemComponentName,\n config?: DesignSystemConfig\n): DesignSystemComponentConfig => {\n if (!config) return {};\n const raw = config.components[componentName] || {};\n const cleaned = normalizeDesignSystemComponentProps(stripNullsDeep(raw));\n warnOnViewColors(componentName, cleaned.views);\n return cleaned;\n};\n\nexport const mergeDesignSystemComponentProps = <T extends Record<string, any>>(\n componentName: DesignSystemComponentName,\n props: T,\n config?: DesignSystemConfig\n): T => {\n const { config: localConfig, ...otherProps } = props;\n\n const globalConfig = getDesignSystemComponentProps(componentName, config);\n\n const mergedConfig = deepMerge(globalConfig, localConfig || {});\n\n return normalizeDesignSystemComponentProps(\n deepMerge<T>(mergedConfig as any, otherProps as any) as T\n );\n};\n","import React, { createContext, ReactNode, useContext, useMemo } from 'react';\nimport { ThemeProvider, useTheme } from 'app-studio';\nimport defaultConfig from './configs/default.json';\nimport { DesignSystemScope } from './DesignSystemScope';\nimport {\n DesignSystemAppearance,\n DesignSystemComponentConfigFor,\n DesignSystemComponentName,\n DesignSystemConfig,\n DesignSystemContextValue,\n} from './types';\nimport {\n getDesignSystemComponentProps,\n mergeDesignSystemComponentProps,\n} from './utils';\n\nconst DesignSystemContext = createContext<DesignSystemContextValue>({\n isEnabled: false,\n});\n\nexport interface DesignSystemProviderProps {\n children: ReactNode;\n config?: DesignSystemConfig;\n /**\n * Explicitly pin the appearance for this subtree (light/dark). When omitted,\n * the provider follows the **global** theme mode (so a light/dark toggle\n * flips the design system), falling back to the config's `defaultAppearance`\n * only when there is no surrounding ThemeProvider.\n */\n mode?: DesignSystemAppearance;\n /** Document that owns the subtree and its theme stylesheet (for iframe portals). */\n targetWindow?: Window;\n /**\n * Render no ThemeProvider of its own: colours and mode come from the\n * surrounding ThemeProvider (an app's `brand`), and this provider only\n * supplies the component configuration. Without it (the default), the\n * config's `theme` is applied through a nested ThemeProvider.\n */\n inheritTheme?: boolean;\n}\n\nexport const DesignSystemProvider: React.FC<DesignSystemProviderProps> = ({\n children,\n config,\n mode,\n targetWindow,\n inheritTheme = false,\n}) => {\n const resolvedConfig = config ?? (defaultConfig as DesignSystemConfig);\n\n // Follow the active global theme mode so a light/dark toggle actually flips\n // the design system. An explicit `mode` prop pins the subtree; otherwise we\n // inherit the surrounding ThemeProvider's mode and fall back to the config's\n // declared default appearance when no provider is present.\n const { themeMode } = useTheme();\n const effectiveMode: DesignSystemAppearance =\n mode ?? themeMode ?? resolvedConfig.metadata.defaultAppearance;\n\n const value = useMemo(\n () => ({\n config: resolvedConfig,\n configId: resolvedConfig.metadata.id,\n isEnabled: true,\n }),\n [resolvedConfig]\n );\n\n // Delegate token resolution to app-studio's ThemeProvider: it emits\n // `--theme-<slot>` CSS variables from the theme object and registers them\n // with its color resolver, so `theme-primary`, `theme-canvas`, etc. work\n // anywhere a component uses them. `transparentWrapper` is auto-inferred\n // (nested under another ThemeProvider) and keeps the page layout intact.\n const scoped = (\n <DesignSystemScope\n id={resolvedConfig.metadata.id}\n appearance={effectiveMode}\n >\n {children}\n </DesignSystemScope>\n );\n\n if (inheritTheme) {\n return (\n <DesignSystemContext.Provider value={value}>\n {scoped}\n </DesignSystemContext.Provider>\n );\n }\n\n return (\n <DesignSystemContext.Provider value={value}>\n {/* No cast: app-studio's `theme` prop accepts ThemeSlots, which\n DesignSystemTheme satisfies structurally. */}\n <ThemeProvider\n theme={resolvedConfig.theme}\n mode={effectiveMode}\n targetWindow={targetWindow}\n transparentWrapper\n >\n {scoped}\n </ThemeProvider>\n </DesignSystemContext.Provider>\n );\n};\n\nexport const useDesignSystem = () => useContext(DesignSystemContext);\n\nexport const useDesignSystemComponentProps = <\n Name extends DesignSystemComponentName\n>(\n componentName: Name\n): DesignSystemComponentConfigFor<Name> => {\n const { config } = useDesignSystem();\n return getDesignSystemComponentProps(\n componentName,\n config\n ) as DesignSystemComponentConfigFor<Name>;\n};\n\nexport const useMergedDesignSystemComponentProps = <\n T extends Record<string, any>\n>(\n componentName: DesignSystemComponentName,\n props: T\n): T => {\n const { config } = useDesignSystem();\n return mergeDesignSystemComponentProps(componentName, props, config);\n};\n\nexport * from './types';\nexport * from './utils';\n"],"names":["DesignSystemScope","children","id","appearance","jsx","isPlainObject","value","normalizeDesignSystemComponentProps","props","deepMerge","objects","result","object","key","stripNullsDeep","out","k","v","VARIANT_DRIVEN_COMPONENTS","VIEW_COLOR_KEYS","warnedViewColorBlocks","warnOnViewColors","componentName","views","viewKey","viewValue","offenders","getDesignSystemComponentProps","config","raw","cleaned","mergeDesignSystemComponentProps","localConfig","otherProps","globalConfig","mergedConfig","DesignSystemContext","createContext","DesignSystemProvider","mode","targetWindow","inheritTheme","resolvedConfig","defaultConfig","themeMode","useTheme","effectiveMode","useMemo","scoped","ThemeProvider","useDesignSystem","useContext","useDesignSystemComponentProps","useMergedDesignSystemComponentProps"],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types/design-system/theme.js';
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { createContext as b, useContext as S, useMemo as w } from "react";
|
|
3
|
+
import { useTheme as v, ThemeProvider as D } from "app-studio";
|
|
4
|
+
import { d as O } from "./chunks/default-nRKhMTzF.mjs";
|
|
5
|
+
const P = ({
|
|
6
|
+
children: e,
|
|
7
|
+
id: t,
|
|
8
|
+
appearance: n
|
|
9
|
+
}) => /* @__PURE__ */ c(
|
|
10
|
+
"div",
|
|
11
|
+
{
|
|
12
|
+
"data-design-system": t,
|
|
13
|
+
"data-appearance": n,
|
|
14
|
+
style: { display: "contents" },
|
|
15
|
+
children: e
|
|
16
|
+
}
|
|
17
|
+
), i = (e) => !!e && typeof e == "object" && !Array.isArray(e) && Object.prototype.toString.call(e) === "[object Object]", m = (e) => e, d = (...e) => {
|
|
18
|
+
const t = {};
|
|
19
|
+
return e.forEach((n) => {
|
|
20
|
+
i(n) && Object.entries(n).forEach(([o, r]) => {
|
|
21
|
+
if (r != null) {
|
|
22
|
+
if (i(r) && i(t[o])) {
|
|
23
|
+
t[o] = d(t[o], r);
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
t[o] = r;
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
}), t;
|
|
30
|
+
}, y = (e) => {
|
|
31
|
+
if (Array.isArray(e) || !i(e)) return e;
|
|
32
|
+
const t = {};
|
|
33
|
+
for (const [n, o] of Object.entries(e))
|
|
34
|
+
o !== null && (t[n] = i(o) ? y(o) : o);
|
|
35
|
+
return t;
|
|
36
|
+
}, E = /* @__PURE__ */ new Set(["button"]), j = [
|
|
37
|
+
"backgroundColor",
|
|
38
|
+
"background",
|
|
39
|
+
"borderColor",
|
|
40
|
+
"color"
|
|
41
|
+
], g = /* @__PURE__ */ new Set(), A = (e, t) => {
|
|
42
|
+
if (process.env.NODE_ENV !== "production" && !(!t || !E.has(e)) && !g.has(e))
|
|
43
|
+
for (const [n, o] of Object.entries(t)) {
|
|
44
|
+
if (!i(o)) continue;
|
|
45
|
+
const r = j.filter((s) => o[s] != null);
|
|
46
|
+
if (r.length > 0) {
|
|
47
|
+
g.add(e), console.warn(
|
|
48
|
+
`[design-system] components.${e}.views.${n} sets ${r.join(", ")} — view styles apply above every variant, so this flattens ghost/outline/subtle into solid blocks. Move colors to components.${e}.config.variants.<variant> (merged under each variant); keep views to shape and typography.`
|
|
49
|
+
);
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}, h = (e, t) => {
|
|
54
|
+
if (!t) return {};
|
|
55
|
+
const n = t.components[e] || {}, o = m(y(n));
|
|
56
|
+
return A(e, o.views), o;
|
|
57
|
+
}, M = (e, t, n) => {
|
|
58
|
+
const { config: o, ...r } = t, s = h(e, n), a = d(s, o || {});
|
|
59
|
+
return m(
|
|
60
|
+
d(a, r)
|
|
61
|
+
);
|
|
62
|
+
}, f = b({
|
|
63
|
+
isEnabled: !1
|
|
64
|
+
}), T = ({
|
|
65
|
+
children: e,
|
|
66
|
+
config: t,
|
|
67
|
+
mode: n,
|
|
68
|
+
targetWindow: o,
|
|
69
|
+
inheritTheme: r = !1
|
|
70
|
+
}) => {
|
|
71
|
+
const s = t ?? O, { themeMode: a } = v(), p = n ?? a ?? s.metadata.defaultAppearance, l = w(
|
|
72
|
+
() => ({
|
|
73
|
+
config: s,
|
|
74
|
+
configId: s.metadata.id,
|
|
75
|
+
isEnabled: !0
|
|
76
|
+
}),
|
|
77
|
+
[s]
|
|
78
|
+
), u = /* @__PURE__ */ c(
|
|
79
|
+
P,
|
|
80
|
+
{
|
|
81
|
+
id: s.metadata.id,
|
|
82
|
+
appearance: p,
|
|
83
|
+
children: e
|
|
84
|
+
}
|
|
85
|
+
);
|
|
86
|
+
return r ? /* @__PURE__ */ c(f.Provider, { value: l, children: u }) : /* @__PURE__ */ c(f.Provider, { value: l, children: /* @__PURE__ */ c(
|
|
87
|
+
D,
|
|
88
|
+
{
|
|
89
|
+
theme: s.theme,
|
|
90
|
+
mode: p,
|
|
91
|
+
targetWindow: o,
|
|
92
|
+
transparentWrapper: !0,
|
|
93
|
+
children: u
|
|
94
|
+
}
|
|
95
|
+
) });
|
|
96
|
+
}, C = () => S(f), $ = (e) => {
|
|
97
|
+
const { config: t } = C();
|
|
98
|
+
return h(
|
|
99
|
+
e,
|
|
100
|
+
t
|
|
101
|
+
);
|
|
102
|
+
}, k = (e, t) => {
|
|
103
|
+
const { config: n } = C();
|
|
104
|
+
return M(e, t, n);
|
|
105
|
+
};
|
|
106
|
+
export {
|
|
107
|
+
T as DesignSystemProvider,
|
|
108
|
+
d as deepMerge,
|
|
109
|
+
h as getDesignSystemComponentProps,
|
|
110
|
+
M as mergeDesignSystemComponentProps,
|
|
111
|
+
m as normalizeDesignSystemComponentProps,
|
|
112
|
+
C as useDesignSystem,
|
|
113
|
+
$ as useDesignSystemComponentProps,
|
|
114
|
+
k as useMergedDesignSystemComponentProps
|
|
115
|
+
};
|
|
116
|
+
//# sourceMappingURL=theme.esm.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.esm.mjs","sources":["../src/design-system/DesignSystemScope.tsx","../src/design-system/utils.ts","../src/design-system/theme.tsx"],"sourcesContent":["import React from 'react';\nimport { DesignSystemScopeProps } from './types';\n\n/**\n * Marks the design system's subtree for CSS (`[data-design-system]`,\n * `[data-appearance]`) without adding a layout box. Native twin:\n * DesignSystemScope.native, which has no DOM to mark.\n */\nexport const DesignSystemScope: React.FC<DesignSystemScopeProps> = ({\n children,\n id,\n appearance,\n}) => (\n <div\n data-design-system={id}\n data-appearance={appearance}\n style={{ display: 'contents' }}\n >\n {children}\n </div>\n);\n","import {\n DesignSystemComponentConfig,\n DesignSystemComponentName,\n DesignSystemConfig,\n DesignSystemViewProps,\n} from './types';\n\nconst isPlainObject = (value: unknown): value is Record<string, any> =>\n Boolean(value) &&\n typeof value === 'object' &&\n !Array.isArray(value) &&\n Object.prototype.toString.call(value) === '[object Object]';\n\nexport const normalizeDesignSystemComponentProps = <\n T extends Record<string, any>\n>(\n props: T\n): T => {\n return props;\n};\n\nexport const deepMerge = <T extends Record<string, any> = Record<string, any>>(\n ...objects: Array<Record<string, any> | undefined>\n): T => {\n const result: Record<string, any> = {};\n\n objects.forEach((object) => {\n if (!isPlainObject(object)) return;\n\n Object.entries(object).forEach(([key, value]) => {\n // Treat null the same as undefined: configs use null to declare a key\n // exists in the schema without overriding component defaults. Nested\n // nulls (e.g. `views.container.backgroundColor: null`) are pre-stripped\n // from configs at the boundary — see `stripNullsDeep` below — so this\n // top-level check is sufficient and we keep the cycle-safe shape that\n // assigns React-element props by reference rather than recursing.\n if (value === undefined || value === null) return;\n\n if (isPlainObject(value) && isPlainObject(result[key])) {\n result[key] = deepMerge(result[key], value);\n return;\n }\n\n result[key] = value;\n });\n });\n\n return result as T;\n};\n\n// Recursively remove keys whose value is `null` from plain-object trees.\n// Only descends into plain objects: arrays and non-object values are returned\n// as-is, so React elements / fibers / class instances are left alone. Used to\n// scrub `views.container.backgroundColor: null` and friends from configs\n// before they ever reach the merge pipeline.\nconst stripNullsDeep = <T>(value: T): T => {\n if (Array.isArray(value)) return value;\n if (!isPlainObject(value)) return value;\n const out: Record<string, any> = {};\n for (const [k, v] of Object.entries(value)) {\n if (v === null) continue;\n out[k] = isPlainObject(v) ? stripNullsDeep(v) : v;\n }\n return out as T;\n};\n\n// Components whose colors are computed per-variant. A config block's `views`\n// sits ABOVE the variant palette, so a color there flattens every variant\n// (ghost/outline/subtle all render as solid blocks). Colors for these\n// components belong in `config.variants.<variant>` (merged UNDER each\n// variant) or the top-level `color`/`textColor` keys.\nconst VARIANT_DRIVEN_COMPONENTS: ReadonlySet<string> = new Set(['button']);\nconst VIEW_COLOR_KEYS = [\n 'backgroundColor',\n 'background',\n 'borderColor',\n 'color',\n] as const;\nconst warnedViewColorBlocks = new Set<string>();\n\nconst warnOnViewColors = (\n componentName: string,\n views: Record<string, Record<string, unknown>> | undefined\n) => {\n if (process.env.NODE_ENV === 'production') return;\n if (!views || !VARIANT_DRIVEN_COMPONENTS.has(componentName)) return;\n if (warnedViewColorBlocks.has(componentName)) return;\n for (const [viewKey, viewValue] of Object.entries(views)) {\n if (!isPlainObject(viewValue)) continue;\n const offenders = VIEW_COLOR_KEYS.filter((k) => viewValue[k] != null);\n if (offenders.length > 0) {\n warnedViewColorBlocks.add(componentName);\n console.warn(\n `[design-system] components.${componentName}.views.${viewKey} sets ` +\n `${offenders.join(', ')} — view styles apply above every variant, ` +\n 'so this flattens ghost/outline/subtle into solid blocks. Move ' +\n `colors to components.${componentName}.config.variants.<variant> ` +\n '(merged under each variant); keep views to shape and typography.'\n );\n return;\n }\n }\n};\n\nexport const getDesignSystemComponentProps = (\n componentName: DesignSystemComponentName,\n config?: DesignSystemConfig\n): DesignSystemComponentConfig => {\n if (!config) return {};\n const raw = config.components[componentName] || {};\n const cleaned = normalizeDesignSystemComponentProps(stripNullsDeep(raw));\n warnOnViewColors(componentName, cleaned.views);\n return cleaned;\n};\n\nexport const mergeDesignSystemComponentProps = <T extends Record<string, any>>(\n componentName: DesignSystemComponentName,\n props: T,\n config?: DesignSystemConfig\n): T => {\n const { config: localConfig, ...otherProps } = props;\n\n const globalConfig = getDesignSystemComponentProps(componentName, config);\n\n const mergedConfig = deepMerge(globalConfig, localConfig || {});\n\n return normalizeDesignSystemComponentProps(\n deepMerge<T>(mergedConfig as any, otherProps as any) as T\n );\n};\n","import React, { createContext, ReactNode, useContext, useMemo } from 'react';\nimport { ThemeProvider, useTheme } from 'app-studio';\nimport defaultConfig from './configs/default.json';\nimport { DesignSystemScope } from './DesignSystemScope';\nimport {\n DesignSystemAppearance,\n DesignSystemComponentConfigFor,\n DesignSystemComponentName,\n DesignSystemConfig,\n DesignSystemContextValue,\n} from './types';\nimport {\n getDesignSystemComponentProps,\n mergeDesignSystemComponentProps,\n} from './utils';\n\nconst DesignSystemContext = createContext<DesignSystemContextValue>({\n isEnabled: false,\n});\n\nexport interface DesignSystemProviderProps {\n children: ReactNode;\n config?: DesignSystemConfig;\n /**\n * Explicitly pin the appearance for this subtree (light/dark). When omitted,\n * the provider follows the **global** theme mode (so a light/dark toggle\n * flips the design system), falling back to the config's `defaultAppearance`\n * only when there is no surrounding ThemeProvider.\n */\n mode?: DesignSystemAppearance;\n /** Document that owns the subtree and its theme stylesheet (for iframe portals). */\n targetWindow?: Window;\n /**\n * Render no ThemeProvider of its own: colours and mode come from the\n * surrounding ThemeProvider (an app's `brand`), and this provider only\n * supplies the component configuration. Without it (the default), the\n * config's `theme` is applied through a nested ThemeProvider.\n */\n inheritTheme?: boolean;\n}\n\nexport const DesignSystemProvider: React.FC<DesignSystemProviderProps> = ({\n children,\n config,\n mode,\n targetWindow,\n inheritTheme = false,\n}) => {\n const resolvedConfig = config ?? (defaultConfig as DesignSystemConfig);\n\n // Follow the active global theme mode so a light/dark toggle actually flips\n // the design system. An explicit `mode` prop pins the subtree; otherwise we\n // inherit the surrounding ThemeProvider's mode and fall back to the config's\n // declared default appearance when no provider is present.\n const { themeMode } = useTheme();\n const effectiveMode: DesignSystemAppearance =\n mode ?? themeMode ?? resolvedConfig.metadata.defaultAppearance;\n\n const value = useMemo(\n () => ({\n config: resolvedConfig,\n configId: resolvedConfig.metadata.id,\n isEnabled: true,\n }),\n [resolvedConfig]\n );\n\n // Delegate token resolution to app-studio's ThemeProvider: it emits\n // `--theme-<slot>` CSS variables from the theme object and registers them\n // with its color resolver, so `theme-primary`, `theme-canvas`, etc. work\n // anywhere a component uses them. `transparentWrapper` is auto-inferred\n // (nested under another ThemeProvider) and keeps the page layout intact.\n const scoped = (\n <DesignSystemScope\n id={resolvedConfig.metadata.id}\n appearance={effectiveMode}\n >\n {children}\n </DesignSystemScope>\n );\n\n if (inheritTheme) {\n return (\n <DesignSystemContext.Provider value={value}>\n {scoped}\n </DesignSystemContext.Provider>\n );\n }\n\n return (\n <DesignSystemContext.Provider value={value}>\n {/* No cast: app-studio's `theme` prop accepts ThemeSlots, which\n DesignSystemTheme satisfies structurally. */}\n <ThemeProvider\n theme={resolvedConfig.theme}\n mode={effectiveMode}\n targetWindow={targetWindow}\n transparentWrapper\n >\n {scoped}\n </ThemeProvider>\n </DesignSystemContext.Provider>\n );\n};\n\nexport const useDesignSystem = () => useContext(DesignSystemContext);\n\nexport const useDesignSystemComponentProps = <\n Name extends DesignSystemComponentName\n>(\n componentName: Name\n): DesignSystemComponentConfigFor<Name> => {\n const { config } = useDesignSystem();\n return getDesignSystemComponentProps(\n componentName,\n config\n ) as DesignSystemComponentConfigFor<Name>;\n};\n\nexport const useMergedDesignSystemComponentProps = <\n T extends Record<string, any>\n>(\n componentName: DesignSystemComponentName,\n props: T\n): T => {\n const { config } = useDesignSystem();\n return mergeDesignSystemComponentProps(componentName, props, config);\n};\n\nexport * from './types';\nexport * from './utils';\n"],"names":["DesignSystemScope","children","id","appearance","jsx","isPlainObject","value","normalizeDesignSystemComponentProps","props","deepMerge","objects","result","object","key","stripNullsDeep","out","k","v","VARIANT_DRIVEN_COMPONENTS","VIEW_COLOR_KEYS","warnedViewColorBlocks","warnOnViewColors","componentName","views","viewKey","viewValue","offenders","getDesignSystemComponentProps","config","raw","cleaned","mergeDesignSystemComponentProps","localConfig","otherProps","globalConfig","mergedConfig","DesignSystemContext","createContext","DesignSystemProvider","mode","targetWindow","inheritTheme","resolvedConfig","defaultConfig","themeMode","useTheme","effectiveMode","useMemo","scoped","ThemeProvider","useDesignSystem","useContext","useDesignSystemComponentProps","useMergedDesignSystemComponentProps"],"mappings":"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"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ViewProps } from 'app-studio';
|
|
3
|
+
import { AccordionStyles, Shape, Variant, AccordionType } from './Accordion.type';
|
|
4
|
+
export interface AccordionProps extends Omit<ViewProps, 'value' | 'defaultValue' | 'onChange'> {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
type?: AccordionType;
|
|
7
|
+
defaultValue?: string | string[];
|
|
8
|
+
value?: string | string[];
|
|
9
|
+
onValueChange?: (value: string | string[] | undefined) => void;
|
|
10
|
+
collapsible?: boolean;
|
|
11
|
+
shape?: Shape;
|
|
12
|
+
variant?: Variant;
|
|
13
|
+
views?: AccordionStyles;
|
|
14
|
+
}
|
|
15
|
+
export interface AccordionItemProps extends Omit<ViewProps, 'value'> {
|
|
16
|
+
value: string;
|
|
17
|
+
children: React.ReactNode;
|
|
18
|
+
isDisabled?: boolean;
|
|
19
|
+
views?: {
|
|
20
|
+
item?: ViewProps;
|
|
21
|
+
trigger?: ViewProps;
|
|
22
|
+
content?: ViewProps;
|
|
23
|
+
icon?: ViewProps;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export interface AccordionTriggerProps extends ViewProps {
|
|
27
|
+
children: React.ReactNode;
|
|
28
|
+
views?: {
|
|
29
|
+
container?: ViewProps;
|
|
30
|
+
icon?: ViewProps;
|
|
31
|
+
};
|
|
32
|
+
asChild?: boolean;
|
|
33
|
+
}
|
|
34
|
+
export interface AccordionContentProps {
|
|
35
|
+
children: React.ReactNode;
|
|
36
|
+
views?: {
|
|
37
|
+
container?: ViewProps;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export interface AccordionComponentType extends React.FC<AccordionProps> {
|
|
41
|
+
Item: React.FC<AccordionItemProps>;
|
|
42
|
+
Trigger: React.FC<AccordionTriggerProps & {
|
|
43
|
+
value?: string;
|
|
44
|
+
isExpanded?: boolean;
|
|
45
|
+
isDisabled?: boolean;
|
|
46
|
+
triggerId?: string;
|
|
47
|
+
contentId?: string;
|
|
48
|
+
}>;
|
|
49
|
+
Content: React.FC<AccordionContentProps>;
|
|
50
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AccordionProps } from './Accordion.props';
|
|
2
|
+
export declare const useAccordionState: ({ type, value: controlledValue, defaultValue, onValueChange, collapsible, }: Pick<AccordionProps, "type" | "value" | "defaultValue" | "onValueChange" | "collapsible">) => {
|
|
3
|
+
expandedItems: string[];
|
|
4
|
+
toggleItem: (itemValue: string) => void;
|
|
5
|
+
isItemExpanded: (itemValue: string) => boolean;
|
|
6
|
+
type: import('./Accordion.type').AccordionType;
|
|
7
|
+
collapsible: boolean;
|
|
8
|
+
baseId: string;
|
|
9
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ViewProps } from 'app-studio';
|
|
2
|
+
import { Shape, Variant } from './Accordion.type';
|
|
3
|
+
export declare const AccordionShapes: Record<Shape, ViewProps>;
|
|
4
|
+
export declare const AccordionVariants: Record<Variant, ViewProps>;
|
|
5
|
+
export declare const AccordionTriggerStyles: ViewProps;
|
|
6
|
+
export declare const AccordionContentStyles: ViewProps;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ViewProps } from 'app-studio';
|
|
2
|
+
export type Shape = 'square' | 'rounded';
|
|
3
|
+
export type Variant = 'default' | 'outline' | 'filled';
|
|
4
|
+
export type AccordionType = 'single' | 'multiple';
|
|
5
|
+
export interface AccordionContextType {
|
|
6
|
+
expandedItems: string[];
|
|
7
|
+
toggleItem: (itemId: string) => void;
|
|
8
|
+
isItemExpanded: (itemId: string) => boolean;
|
|
9
|
+
type: AccordionType;
|
|
10
|
+
collapsible: boolean;
|
|
11
|
+
baseId: string;
|
|
12
|
+
}
|
|
13
|
+
export interface AccordionStyles {
|
|
14
|
+
container?: ViewProps;
|
|
15
|
+
item?: ViewProps;
|
|
16
|
+
header?: ViewProps;
|
|
17
|
+
trigger?: ViewProps;
|
|
18
|
+
content?: ViewProps;
|
|
19
|
+
icon?: ViewProps;
|
|
20
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ViewProps } from 'app-studio';
|
|
3
|
+
import { AccordionContextType } from './Accordion.type';
|
|
4
|
+
import { AccordionTriggerProps, AccordionContentProps, AccordionItemProps } from './Accordion.props';
|
|
5
|
+
export declare const AccordionProvider: React.FC<{
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
value: AccordionContextType;
|
|
8
|
+
}>;
|
|
9
|
+
export declare const useAccordionContext: () => AccordionContextType;
|
|
10
|
+
export declare const AccordionItem: React.FC<AccordionItemProps>;
|
|
11
|
+
export declare const AccordionTrigger: React.FC<AccordionTriggerProps & {
|
|
12
|
+
value?: string;
|
|
13
|
+
isExpanded?: boolean;
|
|
14
|
+
isDisabled?: boolean;
|
|
15
|
+
triggerId?: string;
|
|
16
|
+
contentId?: string;
|
|
17
|
+
}>;
|
|
18
|
+
export declare const AccordionContent: React.FC<AccordionContentProps & {
|
|
19
|
+
isExpanded?: boolean;
|
|
20
|
+
isDisabled?: boolean;
|
|
21
|
+
triggerId?: string;
|
|
22
|
+
contentId?: string;
|
|
23
|
+
}>;
|
|
24
|
+
export declare const AccordionView: React.FC<{
|
|
25
|
+
children: React.ReactNode;
|
|
26
|
+
shape?: 'square' | 'rounded';
|
|
27
|
+
variant?: 'default' | 'outline' | 'filled';
|
|
28
|
+
views?: any;
|
|
29
|
+
baseId: string;
|
|
30
|
+
type: 'single' | 'multiple';
|
|
31
|
+
collapsible: boolean;
|
|
32
|
+
} & ViewProps>;
|