@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,131 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
+
"name": "checkbox",
|
|
4
|
+
"type": "registry:ui",
|
|
5
|
+
"title": "Checkbox",
|
|
6
|
+
"author": "App Studio",
|
|
7
|
+
"categories": [
|
|
8
|
+
"Forms"
|
|
9
|
+
],
|
|
10
|
+
"registryDependencies": [],
|
|
11
|
+
"meta": {
|
|
12
|
+
"appStudio": {
|
|
13
|
+
"entry": "src/components/pilot/checkbox.ts",
|
|
14
|
+
"engine": ">=0.9.5",
|
|
15
|
+
"version": "0.11.13",
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"platforms": [
|
|
18
|
+
"web",
|
|
19
|
+
"ios",
|
|
20
|
+
"android"
|
|
21
|
+
],
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"web": [
|
|
24
|
+
"@app-studio/components@0.11.13",
|
|
25
|
+
"lucide-react@^0.562.0"
|
|
26
|
+
],
|
|
27
|
+
"ios": [
|
|
28
|
+
"@app-studio/components@0.11.13",
|
|
29
|
+
"react-native-svg@>= 13"
|
|
30
|
+
],
|
|
31
|
+
"android": [
|
|
32
|
+
"@app-studio/components@0.11.13",
|
|
33
|
+
"react-native-svg@>= 13"
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
"npmImport": "@app-studio/components/checkbox"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"files": [
|
|
40
|
+
{
|
|
41
|
+
"path": "LICENSE.txt",
|
|
42
|
+
"content": "Copyright (c) Facebook, Inc. and its affiliates.\nAll rights reserved.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n\nAttribution-NonCommercial 4.0 International\n\n=======================================================================\n\nCreative Commons Corporation (\"Creative Commons\") is not a law firm and\ndoes not provide legal services or legal advice. Distribution of\nCreative Commons public licenses does not create a lawyer-client or\nother relationship. Creative Commons makes its licenses and related\ninformation available on an \"as-is\" basis. Creative Commons gives no\nwarranties regarding its licenses, any material licensed under their\nterms and conditions, or any related information. Creative Commons\ndisclaims all liability for damages resulting from their use to the\nfullest extent possible.\n\nUsing Creative Commons Public Licenses\n\nCreative Commons public licenses provide a standard set of terms and\nconditions that creators and other rights holders may use to share\noriginal works of authorship and other material subject to copyright\nand certain other rights specified in the public license below. The\nfollowing considerations are for informational purposes only, are not\nexhaustive, and do not form part of our licenses.\n\n Considerations for licensors: Our public licenses are\n intended for use by those authorized to give the public\n permission to use material in ways otherwise restricted by\n copyright and certain other rights. Our licenses are\n irrevocable. Licensors should read and understand the terms\n and conditions of the license they choose before applying it.\n Licensors should also secure all rights necessary before\n applying our licenses so that the public can reuse the\n material as expected. Licensors should clearly mark any\n material not subject to the license. This includes other CC-\n licensed material, or material used under an exception or\n limitation to copyright. More considerations for licensors:\n\twiki.creativecommons.org/Considerations_for_licensors\n\n Considerations for the public: By using one of our public\n licenses, a licensor grants the public permission to use the\n licensed material under specified terms and conditions. If\n the licensor's permission is not necessary for any reason--for\n example, because of any applicable exception or limitation to\n copyright--then that use is not regulated by the license. Our\n licenses grant only permissions under copyright and certain\n other rights that a licensor has authority to grant. Use of\n the licensed material may still be restricted for other\n reasons, including because others have copyright or other\n rights in the material. A licensor may make special requests,\n such as asking that all changes be marked or described.\n Although not required by our licenses, you are encouraged to\n respect those requests where reasonable. More_considerations\n for the public: \n\twiki.creativecommons.org/Considerations_for_licensees\n\n=======================================================================\n\nCreative Commons Attribution-NonCommercial 4.0 International Public\nLicense\n\nBy exercising the Licensed Rights (defined below), You accept and agree\nto be bound by the terms and conditions of this Creative Commons\nAttribution-NonCommercial 4.0 International Public License (\"Public\nLicense\"). To the extent this Public License may be interpreted as a\ncontract, You are granted the Licensed Rights in consideration of Your\nacceptance of these terms and conditions, and the Licensor grants You\nsuch rights in consideration of benefits the Licensor receives from\nmaking the Licensed Material available under these terms and\nconditions.\n\nSection 1 -- Definitions.\n\n a. Adapted Material means material subject to Copyright and Similar\n Rights that is derived from or based upon the Licensed Material\n and in which the Licensed Material is translated, altered,\n arranged, transformed, or otherwise modified in a manner requiring\n permission under the Copyright and Similar Rights held by the\n Licensor. For purposes of this Public License, where the Licensed\n Material is a musical work, performance, or sound recording,\n Adapted Material is always produced where the Licensed Material is\n synched in timed relation with a moving image.\n\n b. Adapter's License means the license You apply to Your Copyright\n and Similar Rights in Your contributions to Adapted Material in\n accordance with the terms and conditions of this Public License.\n\n c. Copyright and Similar Rights means copyright and/or similar rights\n closely related to copyright including, without limitation,\n performance, broadcast, sound recording, and Sui Generis Database\n Rights, without regard to how the rights are labeled or\n categorized. For purposes of this Public License, the rights\n specified in Section 2(b)(1)-(2) are not Copyright and Similar\n Rights.\n d. Effective Technological Measures means those measures that, in the\n absence of proper authority, may not be circumvented under laws\n fulfilling obligations under Article 11 of the WIPO Copyright\n Treaty adopted on December 20, 1996, and/or similar international\n agreements.\n\n e. Exceptions and Limitations means fair use, fair dealing, and/or\n any other exception or limitation to Copyright and Similar Rights\n that applies to Your use of the Licensed Material.\n\n f. Licensed Material means the artistic or literary work, database,\n or other material to which the Licensor applied this Public\n License.\n\n g. Licensed Rights means the rights granted to You subject to the\n terms and conditions of this Public License, which are limited to\n all Copyright and Similar Rights that apply to Your use of the\n Licensed Material and that the Licensor has authority to license.\n\n h. Licensor means the individual(s) or entity(ies) granting rights\n under this Public License.\n\n i. NonCommercial means not primarily intended for or directed towards\n commercial advantage or monetary compensation. For purposes of\n this Public License, the exchange of the Licensed Material for\n other material subject to Copyright and Similar Rights by digital\n file-sharing or similar means is NonCommercial provided there is\n no payment of monetary compensation in connection with the\n exchange.\n\n j. Share means to provide material to the public by any means or\n process that requires permission under the Licensed Rights, such\n as reproduction, public display, public performance, distribution,\n dissemination, communication, or importation, and to make material\n available to the public including in ways that members of the\n public may access the material from a place and at a time\n individually chosen by them.\n\n k. Sui Generis Database Rights means rights other than copyright\n resulting from Directive 96/9/EC of the European Parliament and of\n the Council of 11 March 1996 on the legal protection of databases,\n as amended and/or succeeded, as well as other essentially\n equivalent rights anywhere in the world.\n\n l. You means the individual or entity exercising the Licensed Rights\n under this Public License. Your has a corresponding meaning.\n\nSection 2 -- Scope.\n\n a. License grant.\n\n 1. Subject to the terms and conditions of this Public License,\n the Licensor hereby grants You a worldwide, royalty-free,\n non-sublicensable, non-exclusive, irrevocable license to\n exercise the Licensed Rights in the Licensed Material to:\n\n a. reproduce and Share the Licensed Material, in whole or\n in part, for NonCommercial purposes only; and\n\n b. produce, reproduce, and Share Adapted Material for\n NonCommercial purposes only.\n\n 2. Exceptions and Limitations. For the avoidance of doubt, where\n Exceptions and Limitations apply to Your use, this Public\n License does not apply, and You do not need to comply with\n its terms and conditions.\n\n 3. Term. The term of this Public License is specified in Section\n 6(a).\n\n 4. Media and formats; technical modifications allowed. The\n Licensor authorizes You to exercise the Licensed Rights in\n all media and formats whether now known or hereafter created,\n and to make technical modifications necessary to do so. The\n Licensor waives and/or agrees not to assert any right or\n authority to forbid You from making technical modifications\n necessary to exercise the Licensed Rights, including\n technical modifications necessary to circumvent Effective\n Technological Measures. For purposes of this Public License,\n simply making modifications authorized by this Section 2(a)\n (4) never produces Adapted Material.\n\n 5. Downstream recipients.\n\n a. Offer from the Licensor -- Licensed Material. Every\n recipient of the Licensed Material automatically\n receives an offer from the Licensor to exercise the\n Licensed Rights under the terms and conditions of this\n Public License.\n\n b. No downstream restrictions. You may not offer or impose\n any additional or different terms or conditions on, or\n apply any Effective Technological Measures to, the\n Licensed Material if doing so restricts exercise of the\n Licensed Rights by any recipient of the Licensed\n Material.\n\n 6. No endorsement. Nothing in this Public License constitutes or\n may be construed as permission to assert or imply that You\n are, or that Your use of the Licensed Material is, connected\n with, or sponsored, endorsed, or granted official status by,\n the Licensor or others designated to receive attribution as\n provided in Section 3(a)(1)(A)(i).\n\n b. Other rights.\n\n 1. Moral rights, such as the right of integrity, are not\n licensed under this Public License, nor are publicity,\n privacy, and/or other similar personality rights; however, to\n the extent possible, the Licensor waives and/or agrees not to\n assert any such rights held by the Licensor to the limited\n extent necessary to allow You to exercise the Licensed\n Rights, but not otherwise.\n\n 2. Patent and trademark rights are not licensed under this\n Public License.\n\n 3. To the extent possible, the Licensor waives any right to\n collect royalties from You for the exercise of the Licensed\n Rights, whether directly or through a collecting society\n under any voluntary or waivable statutory or compulsory\n licensing scheme. In all other cases the Licensor expressly\n reserves any right to collect such royalties, including when\n the Licensed Material is used other than for NonCommercial\n purposes.\n\nSection 3 -- License Conditions.\n\nYour exercise of the Licensed Rights is expressly made subject to the\nfollowing conditions.\n\n a. Attribution.\n\n 1. If You Share the Licensed Material (including in modified\n form), You must:\n\n a. retain the following if it is supplied by the Licensor\n with the Licensed Material:\n\n i. identification of the creator(s) of the Licensed\n Material and any others designated to receive\n attribution, in any reasonable manner requested by\n the Licensor (including by pseudonym if\n designated);\n\n ii. a copyright notice;\n\n iii. a notice that refers to this Public License;\n\n iv. a notice that refers to the disclaimer of\n warranties;\n\n v. a URI or hyperlink to the Licensed Material to the\n extent reasonably practicable;\n\n b. indicate if You modified the Licensed Material and\n retain an indication of any previous modifications; and\n\n c. indicate the Licensed Material is licensed under this\n Public License, and include the text of, or the URI or\n hyperlink to, this Public License.\n\n 2. You may satisfy the conditions in Section 3(a)(1) in any\n reasonable manner based on the medium, means, and context in\n which You Share the Licensed Material. For example, it may be\n reasonable to satisfy the conditions by providing a URI or\n hyperlink to a resource that includes the required\n information.\n\n 3. If requested by the Licensor, You must remove any of the\n information required by Section 3(a)(1)(A) to the extent\n reasonably practicable.\n\n 4. If You Share Adapted Material You produce, the Adapter's\n License You apply must not prevent recipients of the Adapted\n Material from complying with this Public License.\n\nSection 4 -- Sui Generis Database Rights.\n\nWhere the Licensed Rights include Sui Generis Database Rights that\napply to Your use of the Licensed Material:\n\n a. for the avoidance of doubt, Section 2(a)(1) grants You the right\n to extract, reuse, reproduce, and Share all or a substantial\n portion of the contents of the database for NonCommercial purposes\n only;\n\n b. if You include all or a substantial portion of the database\n contents in a database in which You have Sui Generis Database\n Rights, then the database in which You have Sui Generis Database\n Rights (but not its individual contents) is Adapted Material; and\n\n c. You must comply with the conditions in Section 3(a) if You Share\n all or a substantial portion of the contents of the database.\n\nFor the avoidance of doubt, this Section 4 supplements and does not\nreplace Your obligations under this Public License where the Licensed\nRights include other Copyright and Similar Rights.\n\nSection 5 -- Disclaimer of Warranties and Limitation of Liability.\n\n a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE\n EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS\n AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF\n ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,\n IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,\n WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR\n PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,\n ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT\n KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT\n ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.\n\n b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE\n TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,\n NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,\n INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,\n COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR\n USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN\n ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR\n DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR\n IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.\n\n c. The disclaimer of warranties and limitation of liability provided\n above shall be interpreted in a manner that, to the extent\n possible, most closely approximates an absolute disclaimer and\n waiver of all liability.\n\nSection 6 -- Term and Termination.\n\n a. This Public License applies for the term of the Copyright and\n Similar Rights licensed here. However, if You fail to comply with\n this Public License, then Your rights under this Public License\n terminate automatically.\n\n b. Where Your right to use the Licensed Material has terminated under\n Section 6(a), it reinstates:\n\n 1. automatically as of the date the violation is cured, provided\n it is cured within 30 days of Your discovery of the\n violation; or\n\n 2. upon express reinstatement by the Licensor.\n\n For the avoidance of doubt, this Section 6(b) does not affect any\n right the Licensor may have to seek remedies for Your violations\n of this Public License.\n\n c. For the avoidance of doubt, the Licensor may also offer the\n Licensed Material under separate terms or conditions or stop\n distributing the Licensed Material at any time; however, doing so\n will not terminate this Public License.\n\n d. Sections 1, 5, 6, 7, and 8 survive termination of this Public\n License.\n\nSection 7 -- Other Terms and Conditions.\n\n a. The Licensor shall not be bound by any additional or different\n terms or conditions communicated by You unless expressly agreed.\n\n b. Any arrangements, understandings, or agreements regarding the\n Licensed Material not stated herein are separate from and\n independent of the terms and conditions of this Public License.\n\nSection 8 -- Interpretation.\n\n a. For the avoidance of doubt, this Public License does not, and\n shall not be interpreted to, reduce, limit, restrict, or impose\n conditions on any use of the Licensed Material that could lawfully\n be made without permission under this Public License.\n\n b. To the extent possible, if any provision of this Public License is\n deemed unenforceable, it shall be automatically reformed to the\n minimum extent necessary to make it enforceable. If the provision\n cannot be reformed, it shall be severed from this Public License\n without affecting the enforceability of the remaining terms and\n conditions.\n\n c. No term or condition of this Public License will be waived and no\n failure to comply consented to unless expressly agreed to by the\n Licensor.\n\n d. Nothing in this Public License constitutes or may be interpreted\n as a limitation upon, or waiver of, any privileges and immunities\n that apply to the Licensor or You, including from the legal\n processes of any jurisdiction or authority.\n\n=======================================================================\n\nCreative Commons is not a party to its public\nlicenses. Notwithstanding, Creative Commons may elect to apply one of\nits public licenses to material it publishes and in those instances\nwill be considered the “Licensor.” The text of the Creative Commons\npublic licenses is dedicated to the public domain under the CC0 Public\nDomain Dedication. Except for the limited purpose of indicating that\nmaterial is shared under a Creative Commons public license or as\notherwise permitted by the Creative Commons policies published at\ncreativecommons.org/policies, Creative Commons does not authorize the\nuse of the trademark \"Creative Commons\" or any other trademark or logo\nof Creative Commons without its prior written consent including,\nwithout limitation, in connection with any unauthorized modifications\nto any of its public licenses or any other arrangements,\nunderstandings, or agreements concerning use of licensed material. For\nthe avoidance of doubt, this paragraph does not form part of the\npublic licenses.\n\nCreative Commons may be contacted at creativecommons.org.\n\n--------------------------- LICENSE FOR SMPL --------------------------------\nhttps://smpl.is.tue.mpg.de/bodylicense\n\nSMPL-Body License\nMax Planck Society e.V as Licensor\ngrants a\n\nSMPL-BODY Creative Commons License\n\nSMPL: Skinned Multi-Person Linear Model (hereinafter \"SMPL-Model\") is a 3D representation of the human body that supports realistic changes in body shape and pose. SMPL-Body is a subset of SMPL-Model which excludes the shape blendshapes or the tools to create 3D bodies using the shape blendshapes of the SMPL-Model. A SMPL-Body contains a 3D mesh, a skeleton rig, pose blendshapes and dynamic blendshapes. A SMPL-Body can be shared in the form of OBJ file(s), animated FBX file(s), or as a set of mesh vertices, skeleton rig, pose blendshapes and dynamic blendshapes in other appropriate 3D file formats.\n\nSMPL-Body is licensed under the Creative Commons Attribution 4.0 International License. You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use. To view a copy of this license, visit:\n\nhttp://creativecommons.org/licenses/by/4.0/\n\nOR\n\nhttps://creativecommons.org/licenses/by/4.0/deed.de (GERMAN)\n\nThe SMPL-Model specification is defined in the granted US patent US10395411B2 (published on 2018-11-01 and 2019-08-27, granted on 2019-08-27) and the pending European EP3314577A1 (published on 2018-05-02) and World WO2016207311A1 (published on 2016-12-29) patent applications, \"Skinned Multi-Person Linear Model\". The Max Planck Society (MPG) owns the technology disclosed in these granted and pending patent applications.\n\nWith this free CC-license, we want to encourage the adoption and use of SMPL-Body and related file formats as a new Standard in 3D Body Modeling. The Grant of right qualifies as a donation under German law. As to § 521 Bürgerliches Gesetzbuch the donor is responsible only for intent and gross negligence.\n\nAttribution for Publications with SMPL-Body\nYou agree to cite the most recent paper describing the model as specified on the download website: http://smpl.is.tue.mpg.de/ This website lists the most up to date bibliographic information.\n\n--------------------------- LICENSE FOR SPIN --------------------------------\n\nCopyright (c) 2019, \nUniversity of Pennsylvania, \nMax Planck Institute for Intelligent Systems\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\n\n1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.\n\n2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.\n\n3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.",
|
|
43
|
+
"type": "registry:ui"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"path": "src/components/Form/Checkbox/Checkbox.tsx",
|
|
47
|
+
"content": "import React from 'react';\n\nimport { CheckboxProps } from './Checkbox/Checkbox.props';\nimport { useCheckboxState } from './Checkbox/Checkbox.state';\nimport CheckboxView from './Checkbox/Checkbox.view';\nimport { useMergedDesignSystemComponentProps } from '@app-studio/components/theme';\n\nconst CheckboxComponent: React.FC<CheckboxProps> = (props) => {\n const mergedProps = useMergedDesignSystemComponentProps('checkbox', props);\n const checkboxStates = useCheckboxState(mergedProps);\n\n return <CheckboxView {...checkboxStates} {...mergedProps} />;\n};\n\n/**\n * Checkbox allows users to select one or more options from a list of choices.\n */\nexport const Checkbox = CheckboxComponent;\n",
|
|
48
|
+
"type": "registry:ui"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"path": "src/components/Form/Checkbox/Checkbox/Checkbox.props.ts",
|
|
52
|
+
"content": "import React from 'react';\nimport { Elevation } from '../../../../utils/elevation';\nimport { InputProps, Shadow } from 'app-studio';\nimport { CheckboxStyles, Size } from './Checkbox.type';\nimport { ViewProps } from 'app-studio';\n\nexport interface CheckboxProps\n extends Omit<InputProps, 'size' | 'onChange' | 'shadow'> {\n id?: string;\n icon?: React.ReactNode;\n error?: any;\n name?: string;\n label?: string;\n isChecked?: boolean;\n defaultIsSelected?: boolean;\n isReadOnly?: boolean;\n isDisabled?: boolean;\n isIndeterminate?: boolean;\n labelPosition?: 'left' | 'right';\n // Called with the checkbox's next checked state — not a DOM event. Typed\n // rather than `Function` so a DOM-shaped handler is a compile error and the\n // argument is actually visible to callers.\n onChange?: (checked: boolean) => void;\n // Same argument as `onChange`; both fire on toggle.\n onValueChange?: (checked: boolean) => void;\n views?: CheckboxStyles;\n size?: Size;\n shadow?: Shadow | Elevation | ViewProps;\n infoText?: string;\n}\nexport interface CheckboxViewProps extends CheckboxProps {\n isHovered?: boolean;\n setIsHovered?: (hovered: boolean) => void;\n isChecked?: boolean;\n isSelected?: boolean;\n setIsSelected?: (selected: boolean) => void;\n}\n",
|
|
53
|
+
"type": "registry:ui"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"path": "src/components/Form/Checkbox/Checkbox/Checkbox.state.ts",
|
|
57
|
+
"content": "import React from 'react';\n\nimport { CheckboxProps } from './Checkbox.props';\n\nexport const useCheckboxState = ({\n defaultIsSelected = false,\n}: CheckboxProps) => {\n const [isHovered, setIsHovered] = React.useState(false);\n const [isSelected, setIsSelected] =\n React.useState<boolean>(defaultIsSelected);\n\n return {\n isHovered,\n setIsHovered,\n isSelected,\n setIsSelected,\n };\n};\n",
|
|
58
|
+
"type": "registry:ui"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"path": "src/components/Form/Checkbox/Checkbox/Checkbox.style.ts",
|
|
62
|
+
"content": "/**\n * Checkbox Styles\n *\n * Defines the styles for the Checkbox component following the design guidelines:\n * - Typography: Inter/Geist font, specific sizes/weights\n * - Spacing: 4px grid system\n * - Colors: Neutral palette with semantic colors\n * - Rounded corners: Consistent border radius\n * - Transitions: Subtle animations\n */\n\nimport { ViewProps } from 'app-studio';\nimport { Size, Variant } from './Checkbox.type';\n\n/**\n * Size configurations for the Checkbox component\n * Following the 4px grid system\n */\nexport const Sizes: Record<Size, ViewProps> = {\n xs: { height: '12px', width: '12px' }, // 3 × 4px grid\n sm: { height: '16px', width: '16px' }, // 4 × 4px grid\n md: { height: '20px', width: '20px' }, // 5 × 4px grid\n lg: { height: '24px', width: '24px' }, // 6 × 4px grid\n xl: { height: '28px', width: '28px' }, // 7 × 4px grid\n};\n\n/**\n * Icon sizes for the Checkbox component\n * Proportional to the component size\n */\nexport const IconSizes: Record<Size, number> = {\n xs: 10, // 2.5 × 4px grid\n sm: 14, // 3.5 × 4px grid\n md: 16, // 4 × 4px grid\n lg: 20, // 5 × 4px grid\n xl: 24, // 6 × 4px grid\n};\n\n/**\n * Variant styles for the Checkbox component\n */\nexport const VariantStyles: Record<Variant, ViewProps> = {\n selected: {\n backgroundColor: 'theme-primary',\n borderColor: 'theme-primary',\n borderWidth: '2px',\n borderStyle: 'solid',\n color: 'color-white',\n transition:\n 'background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease',\n },\n unselected: {\n backgroundColor: 'transparent',\n borderWidth: '2px',\n borderStyle: 'solid',\n borderColor: 'color-gray-300',\n color: 'inherit',\n transition: 'all 0.2s ease-in-out',\n },\n indeterminate: {\n backgroundColor: 'theme-primary',\n borderColor: 'theme-primary',\n borderWidth: '2px',\n borderStyle: 'solid',\n color: 'color-white',\n transition:\n 'background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease',\n },\n};\n\n/**\n * State styles for the Checkbox component\n */\nexport const StateStyles = {\n hover: {\n selected: {\n opacity: 0.9,\n },\n unselected: {\n borderColor: 'color-gray-400',\n backgroundColor: 'color-gray-50',\n },\n indeterminate: {\n opacity: 0.9,\n },\n },\n focus: {\n selected: {\n outline: 'none',\n boxShadow: '0 0 0 2px white, 0 0 0 4px theme-primary',\n },\n unselected: {\n outline: 'none',\n boxShadow: '0 0 0 2px white, 0 0 0 4px theme-primary',\n },\n indeterminate: {\n outline: 'none',\n boxShadow: '0 0 0 2px white, 0 0 0 4px theme-primary',\n },\n },\n disabled: {\n selected: {\n backgroundColor: 'color-gray-300',\n borderColor: 'color-gray-300',\n opacity: 0.5,\n cursor: 'not-allowed',\n },\n unselected: {\n borderColor: 'color-gray-300',\n opacity: 0.5,\n cursor: 'not-allowed',\n },\n indeterminate: {\n backgroundColor: 'color-gray-300',\n borderColor: 'color-gray-300',\n opacity: 0.5,\n cursor: 'not-allowed',\n },\n },\n error: {\n selected: {\n backgroundColor: 'color-red-500',\n borderColor: 'color-red-500',\n },\n unselected: {\n borderColor: 'color-red-500',\n },\n indeterminate: {\n backgroundColor: 'color-red-500',\n borderColor: 'color-red-500',\n },\n },\n};\n",
|
|
63
|
+
"type": "registry:ui"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"path": "src/components/Form/Checkbox/Checkbox/Checkbox.type.ts",
|
|
67
|
+
"content": "import { ViewProps } from 'app-studio';\n\nexport type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';\n\nexport type CheckboxStyles = {\n checkbox?: ViewProps;\n label?: ViewProps;\n infoText?: ViewProps;\n};\n\nexport type Variant = 'selected' | 'unselected' | 'indeterminate';\n",
|
|
68
|
+
"type": "registry:ui"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"path": "src/components/Form/Checkbox/Checkbox/Checkbox.view.native.tsx",
|
|
72
|
+
"content": "/**\n * Checkbox View Component (React Native)\n *\n * RN counterpart of Checkbox.view.tsx. React Native has no native checkbox,\n * so we simulate one with a pressable <View/> that displays a TickIcon when\n * checked (or MinusIcon when indeterminate). Drops web-only concepts: cursor,\n * transitions, _hover (we use isHovered state only via onPress feedback).\n */\n\nimport React from 'react';\nimport { Typography } from 'app-studio';\nimport { Center, View } from 'app-studio';\nimport { TickIcon, MinusIcon } from '../../../Icon/FixedIcons';\n\nimport { CheckboxViewProps } from './Checkbox.props';\nimport { IconSizes, Sizes, VariantStyles, StateStyles } from './Checkbox.style';\nimport { Text } from 'app-studio';\nimport { Horizontal } from 'app-studio';\nimport { Vertical } from 'app-studio';\n\nconst CheckboxView: React.FC<CheckboxViewProps> = ({\n id,\n icon,\n name,\n label,\n isChecked,\n onChange,\n onValueChange,\n shadow = {},\n labelPosition = 'right',\n size = 'md',\n error = false,\n isSelected = false,\n isHovered = false,\n isDisabled = false,\n isReadOnly = false,\n isIndeterminate = false,\n defaultIsSelected = false,\n setIsSelected = () => {},\n setIsHovered = () => {},\n views = { checkbox: {}, label: {} },\n infoText,\n helperText,\n ...props\n}) => {\n const handleChange = () => {\n if (!isReadOnly && !isDisabled) {\n if (setIsSelected) setIsSelected(!isSelected);\n if (onChange) onChange(!isChecked);\n if (onValueChange) onValueChange(!isChecked);\n }\n };\n\n const variant = isIndeterminate\n ? 'indeterminate'\n : isChecked || isSelected\n ? 'selected'\n : 'unselected';\n\n const stateStyle = error\n ? StateStyles.error[variant]\n : isDisabled\n ? (StateStyles.disabled as any)[variant]\n : {};\n\n const containerStyle = {\n gap: 8,\n color: error ? 'theme-error' : isDisabled ? 'color-gray-400' : 'inherit',\n opacity: isDisabled ? 0.6 : 1,\n ...views['label'],\n };\n\n const checkboxStyle = {\n ...VariantStyles[variant],\n ...stateStyle,\n borderRadius: 6,\n ...Sizes[size],\n ...shadow,\n ...views['checkbox'],\n };\n\n return (\n <View\n onPress={handleChange}\n fontSize={Typography.fontSizes[size]}\n {...containerStyle}\n {...props}\n >\n <Vertical gap={8}>\n <Horizontal gap={12} alignItems=\"center\">\n {labelPosition === 'left' && label && (\n <Text size={size} fontWeight=\"500\" {...views?.label}>\n {label}\n </Text>\n )}\n <Center {...checkboxStyle}>\n {isIndeterminate ? (\n <MinusIcon widthHeight={IconSizes[size]} color=\"color-white\" />\n ) : (\n (isChecked || isSelected) &&\n (icon ?? (\n <TickIcon widthHeight={IconSizes[size]} color=\"color-white\" />\n ))\n )}\n </Center>\n {labelPosition === 'right' && label && (\n <Text size={size} fontWeight=\"500\" {...views?.label}>\n {label}\n </Text>\n )}\n </Horizontal>\n {infoText && (\n <Text\n marginLeft={labelPosition === 'left' ? 0 : 36}\n color=\"color-gray-500\"\n size=\"sm\"\n fontWeight=\"400\"\n lineHeight={20}\n {...views?.infoText}\n >\n {infoText}\n </Text>\n )}\n </Vertical>\n {error && (\n <Text\n size=\"xs\"\n marginTop={4}\n marginHorizontal={0}\n color=\"theme-error\"\n fontWeight=\"500\"\n >\n {error}\n </Text>\n )}\n </View>\n );\n};\n\nexport default CheckboxView;\n",
|
|
73
|
+
"type": "registry:ui"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"path": "src/components/Form/Checkbox/Checkbox/Checkbox.view.tsx",
|
|
77
|
+
"content": "/**\n * Checkbox View Component\n *\n * Renders a checkbox with various styles and states\n * according to the design guidelines.\n */\n\nimport React from 'react';\nimport { Typography } from 'app-studio';\n\nimport { Center, Input } from 'app-studio';\nimport { Label } from '../../../Form/Label/Label';\nimport { TickIcon, MinusIcon } from '../../../Icon/FixedIcons';\n\nimport { CheckboxViewProps } from './Checkbox.props';\nimport { IconSizes, Sizes, VariantStyles, StateStyles } from './Checkbox.style';\nimport { Text } from 'app-studio';\nimport { Horizontal } from 'app-studio';\nimport { Vertical } from 'app-studio';\n\nconst CheckboxView: React.FC<CheckboxViewProps> = ({\n id,\n icon,\n name,\n label,\n isChecked,\n onChange,\n onValueChange,\n shadow = {},\n labelPosition = 'right',\n size = 'md',\n error = false,\n isSelected = false,\n isHovered = false,\n isDisabled = false,\n isReadOnly = false,\n isIndeterminate = false,\n defaultIsSelected = false,\n setIsSelected = () => {},\n setIsHovered = () => {},\n views = { checkbox: {}, label: {} },\n infoText,\n helperText,\n ...props\n}) => {\n const generatedId = React.useId();\n const checkboxId = id ?? generatedId;\n const inputRef = React.useRef<HTMLInputElement>(null);\n const [isFocused, setIsFocused] = React.useState(false);\n const checked = Boolean(isChecked || isSelected);\n\n // `indeterminate` only exists as a DOM property, never as an attribute.\n React.useEffect(() => {\n if (inputRef.current) inputRef.current.indeterminate = isIndeterminate;\n }, [isIndeterminate]);\n\n const handleHover = () => setIsHovered(!isHovered);\n\n const handleChange = () => {\n if (!isReadOnly && !isDisabled) {\n if (setIsSelected) setIsSelected(!isSelected);\n if (onChange) onChange(!isChecked);\n if (onValueChange) onValueChange(!isChecked);\n }\n };\n\n /**\n * Determine the variant based on component state\n */\n const variant = isIndeterminate\n ? 'indeterminate'\n : isChecked || isSelected\n ? 'selected'\n : 'unselected';\n\n /**\n * Apply state-specific styles\n */\n const stateStyle = error\n ? StateStyles.error[variant]\n : isDisabled\n ? StateStyles.disabled[variant]\n : isHovered\n ? StateStyles.hover[variant]\n : {};\n\n /**\n * Styles for the checkbox component\n */\n const checkboxStyle = {\n container: {\n // Layout properties\n gap: 8, // 2 × 4px grid\n display: 'flex' as const,\n height: 'fit-content',\n flexDirection: 'column' as const,\n width: 'fit-content',\n\n // Typography properties\n\n // Visual properties — inherit so the brand/page ink shows on every surface\n color: error ? 'theme-error' : isDisabled ? 'color-gray-400' : 'inherit',\n\n // State properties\n cursor: isDisabled ? 'not-allowed' : isReadOnly ? 'default' : 'pointer',\n opacity: isDisabled ? 0.6 : 1,\n\n // Animation\n transition: 'all 0.2s ease-in-out',\n\n // Apply custom styles\n ...views['label'],\n },\n checkbox: {\n // Base variant styles\n ...VariantStyles[variant],\n\n // State-specific styles\n ...stateStyle,\n\n // Visual properties\n borderRadius: 6, // radius-sm\n\n // Size properties\n ...Sizes[size],\n\n // Animation\n transition: 'all 0.2s ease-in-out',\n\n // Apply shadow and custom styles\n ...shadow,\n ...views['checkbox'],\n },\n };\n\n const infoTextId = `${checkboxId}-info`;\n const errorId = `${checkboxId}-error`;\n const describedBy =\n [infoText ? infoTextId : '', error ? errorId : '']\n .filter(Boolean)\n .join(' ') || undefined;\n\n return (\n <Vertical {...checkboxStyle.container}>\n <Label\n htmlFor={checkboxId}\n onMouseEnter={handleHover}\n onMouseLeave={handleHover}\n size={Typography.fontSizes[size]}\n cursor=\"inherit\"\n >\n <Horizontal gap={12} alignItems=\"center\">\n {' '}\n {/* 3 × 4px grid */}\n {/* Label on the left side */}\n {labelPosition === 'left' && label && (\n <Text\n size={size}\n fontWeight=\"500\" // Medium weight for better readability\n {...views?.label}\n >\n {label}\n </Text>\n )}\n {/* Checkbox */}\n <Center\n position=\"relative\"\n {...checkboxStyle.checkbox}\n {...(isFocused ? StateStyles.focus[variant] : {})}\n >\n {/* Real control: a transparent input covering the visible box, so\n the element found by role/name is the one that receives clicks */}\n <Input\n ref={inputRef}\n type=\"checkbox\"\n id={checkboxId}\n name={name}\n checked={checked}\n aria-checked={isIndeterminate ? 'mixed' : undefined}\n onChange={handleChange}\n onFocus={() => setIsFocused(true)}\n onBlur={() => setIsFocused(false)}\n disabled={isDisabled}\n readOnly={isReadOnly}\n position=\"absolute\"\n top={0}\n left={0}\n width=\"100%\"\n height=\"100%\"\n margin={0}\n opacity={0}\n zIndex={1}\n cursor={\n isDisabled ? 'not-allowed' : isReadOnly ? 'default' : 'pointer'\n }\n aria-describedby={describedBy}\n // Consumer rest props (aria-*, role, data-*) belong on the real\n // control, not the wrapping label.\n {...props}\n />\n {isIndeterminate ? (\n <MinusIcon\n widthHeight={IconSizes[size]}\n color=\"color-white\"\n transition=\"opacity 0.2s ease\"\n />\n ) : (\n (isChecked || isSelected) &&\n (icon ?? (\n <TickIcon\n widthHeight={IconSizes[size]}\n color=\"color-white\"\n transition=\"opacity 0.2s ease\"\n />\n ))\n )}\n </Center>\n {/* Label on the right side */}\n {labelPosition === 'right' && label && (\n <Text\n size={size}\n fontWeight=\"500\" // Medium weight for better readability\n {...views?.label}\n >\n {label}\n </Text>\n )}\n </Horizontal>\n </Label>\n {/* Info text — outside the <label> so it describes the input through\n `aria-describedby` instead of polluting its accessible name */}\n {infoText && (\n <Text\n id={infoTextId}\n marginLeft={labelPosition === 'left' ? 0 : 36} // 9 × 4px grid\n color=\"color-gray-500\"\n size=\"sm\"\n fontWeight=\"400\" // Regular weight\n lineHeight=\"20px\"\n {...views?.infoText}\n >\n {infoText}\n </Text>\n )}\n\n {/* Error message — outside the <label> for the same reason */}\n {error && (\n <Text\n id={errorId}\n size=\"xs\"\n marginTop={4} // 1 × 4px grid\n marginHorizontal={0}\n color=\"theme-error\"\n fontWeight=\"500\" // Medium weight for better readability\n transition=\"all 0.2s ease-in-out\"\n >\n {error}\n </Text>\n )}\n </Vertical>\n );\n};\n\nexport default CheckboxView;\n",
|
|
78
|
+
"type": "registry:ui"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"path": "src/components/Form/Label/Label.tsx",
|
|
82
|
+
"content": "import React from 'react';\nimport { LabelProps } from './Label/Label.props';\nimport LabelView from './Label/Label.view';\n// Import custom type 'LabelProps' to type check the properties passed into the Label component.\nconst LabelComponent: React.FC<LabelProps> = (props) => (\n // Import 'LabelView' as a visual component for the label, separating the view from business logic.\n <LabelView {...props} />\n // Define 'LabelComponent' as a functional component that uses React's FC type for type checking and utilizing React features.\n);\n// Pass all properties received by 'LabelComponent' to 'LabelView' using the spread syntax, ensuring it has all props needed for rendering.\nexport const Label = LabelComponent;\n// Export the 'LabelComponent' as 'Label' to be reused throughout the project.\n",
|
|
83
|
+
"type": "registry:ui"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"path": "src/components/Form/Label/Label/Label.props.ts",
|
|
87
|
+
"content": "import { ViewProps } from 'app-studio';\nimport { Headings, Sizes, TextWeights } from './Label.type';\n\nexport interface LabelProps extends Omit<ViewProps, 'size'> {\n // Define an interface called `LabelProps` to type-check the props that can be passed to Label component.\n children: React.ReactNode;\n // Declare `children` prop, which is of type `React.ReactNode` to accept any element that can be rendered by React, like a string, number, or JSX.\n heading?: Headings;\n // Optional `heading` prop allowing to specify the heading level, which should be one of the predefined `Headings` type.\n isItalic?: boolean;\n // Optional `isItalic` boolean prop to determine if the label text should be italicized.\n isStriked?: boolean;\n // Optional `isStriked` boolean prop to determine if the label text should have a strikethrough.\n isUnderlined?: boolean;\n // Optional `isUnderlined` boolean prop to determine if the label text should be underlined.\n size?: Sizes | number;\n // Optional `size` prop that can either be one of the predefined `Sizes` type or a custom `number` size value.\n weight?: TextWeights;\n // Optional `weight` prop that defines the font weight of the label using the predefined `TextWeights` type.\n htmlFor?: string;\n // Optional `htmlFor` prop forwarded to the underlying <label> element.\n dropDown?: ViewProps;\n // Accepted and ignored; consumed by the parent field layout (TextField,\n // ColorInput, …) — the Label itself renders nothing for it.\n error?: boolean | string;\n // Optional `error` flag forwarded by parent fields via `views?.label`\n // spread; when truthy the label is colored with the shared field error\n // color (`theme-error`).\n isDisabled?: boolean;\n // Optional `isDisabled` flag forwarded by parent fields via `views?.label`\n // spread; mutes the label color and shows a `not-allowed` cursor on web.\n helperText?: React.ReactNode;\n // Accepted and ignored; consumed by the parent field layout, which renders\n // the helper text below the field (FieldContainer), not inside the Label.\n views?: ViewProps;\n // Accepted and ignored; consumed by parent field layout when it spreads\n // `views?.label` — kept in the interface so the spread stays type-safe.\n}\n",
|
|
88
|
+
"type": "registry:ui"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"path": "src/components/Form/Label/Label/Label.style.ts",
|
|
92
|
+
"content": "import { Headings } from './Label.type';\n// Import Headings type definition from Label.type module for type safety and consistency.\nexport const HeadingSizes: Record<Headings, Record<string, number | string>> = {\n // Initialize a constant 'HeadingSizes' to define styles for different heading levels.\n h1: {\n // Use TypeScript's 'Record' utility type to ensure the object matches the shape of 'Headings'.\n fontSize: 96,\n // Define style properties for 'h1' heading tag, including font size, line height, and letter spacing.\n letterSpacing: -1.5,\n },\n h2: {\n fontSize: 60,\n // Define style properties for 'h2' heading tag similar to 'h1', but with adjusted values for size and spacing.\n letterSpacing: -0.5,\n },\n h3: {\n fontSize: 48,\n // Define style properties for 'h3' heading tag with a standard letter spacing of 0.\n letterSpacing: 0,\n },\n h4: {\n fontSize: 34,\n // Provide style properties for 'h4' heading tag, with a slight increase in letter spacing.\n letterSpacing: 0.25,\n },\n h5: {\n fontSize: 24,\n // Set the 'h5' heading tag views, opting for no additional letter spacing.\n letterSpacing: 0,\n },\n h6: {\n fontSize: 20,\n // Set the 'h6' heading tag views, with the smallest font size and a subtle letter spacing.\n letterSpacing: 0.15,\n },\n};\n",
|
|
93
|
+
"type": "registry:ui"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"path": "src/components/Form/Label/Label/Label.type.ts",
|
|
97
|
+
"content": "export type TextWeights =\n // Defines a TypeScript type 'TextWeights' which allows specifying the visual weight (thickness) of text, with predefined values ranging from 'hairline' to 'black'.\n | 'hairline'\n // Each value corresponds to a conventional font weight used in styling.\n | 'thin'\n | 'light'\n | 'normal'\n | 'medium'\n | 'semiBold'\n | 'bold'\n | 'extraBold'\n | 'black';\n// Defines a TypeScript type 'Sizes' to standardize the sizing scale for UI elements. Predefined sizes range from 'xs' for extra small to '6xl' for 6 times extra large.\nexport type Sizes =\n // This type can be used for consistent application of size-related styling across the application.\n 'xs' | 'sm' | 'md' | 'lg' | 'xl';\n// Enforcing the use of this type can enhance semantic markup and accessibility of the web app.\nexport type Headings = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';\n",
|
|
98
|
+
"type": "registry:ui"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"path": "src/components/Form/Label/Label/Label.view.tsx",
|
|
102
|
+
"content": "import React from 'react';\nimport { Element, Typography } from 'app-studio';\nimport { LabelProps } from './Label.props';\nimport { HeadingSizes } from './Label.style';\nconst LabelView: React.FC<LabelProps> = ({\n children,\n // LabelView is a functional component that utilizes the LabelProps interface for its props.\n heading,\n // The component is deconstructing its properties to apply conditional styles and pass them to the underlying Element.\n isItalic = false,\n isUnderlined = false,\n isStriked = false,\n // Creates a dynamic style object based on the 'heading' prop, if provided, selecting the appropriate size from HeadingSizes.\n weight = 'normal',\n // Returns an Element component with the role of a label, styled dynamically based on incoming props.\n size = 'sm',\n dropDown: _dropDown,\n error,\n isDisabled,\n helperText: _helperText,\n views: _views,\n ...props\n // The fontSize prop for the Element is determined by the 'size' prop passed to LabelView.\n}) => {\n // The fontStyle prop toggles between 'italic' and 'normal' based on the 'isItalic' boolean prop.\n const headingStyles = heading ? HeadingSizes[heading] : {};\n // fontWeight is derived from the Typography module, ensuring consistent font weighting across the app.\n return (\n // textDecoration conditionally applies 'line-through' or 'underline' based on respective boolean props; defaults to 'none' if both are false.\n <Element\n as=\"label\"\n // Spreads any additional style properties from headingStyles into the Element if a heading size is specified.\n width=\"100%\"\n // Spreads the rest of the props to support extensibility of the LabelView component for future use cases.\n fontSize={size}\n // Includes children elements inside the Element, allowing for nested content within the label.\n fontStyle={isItalic ? 'italic' : 'normal'}\n fontWeight={Typography.fontWeights[weight]}\n textDecoration={\n isStriked ? 'line-through' : isUnderlined ? 'underline' : 'none'\n }\n // Error wins over disabled: `theme-error` is the same token sibling\n // field labels use (see Input/FieldLabel); disabled mutes the label the\n // way disabled field text is muted (`color-gray-400`).\n {...(error\n ? { color: 'theme-error' }\n : isDisabled\n ? { color: 'color-gray-400' }\n : {})}\n {...(isDisabled ? { cursor: 'not-allowed' } : {})}\n {...headingStyles}\n {...props}\n >\n {children}\n </Element>\n );\n};\nexport default LabelView;\n",
|
|
103
|
+
"type": "registry:ui"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"path": "src/components/Icon/FixedIcons.native.tsx",
|
|
107
|
+
"content": "import React from 'react';\nimport { View, useTheme, ViewProps } from 'app-studio';\nimport Svg, { Path } from 'react-native-svg';\n\ntype IconProps = Omit<ViewProps, 'size' | 'orientation'> & {\n size?: number | string;\n orientation?: 'up' | 'down' | 'left' | 'right';\n strokeWidth?: number | string;\n filled?: boolean;\n};\n\nfunction fixed(path: string, defaultStroke = 1) {\n return function FixedIcon({\n size,\n widthHeight = 24,\n orientation = 'up',\n color = 'currentColor',\n strokeWidth = defaultStroke,\n transform,\n filled = false,\n ...props\n }: IconProps) {\n const { getColor } = useTheme();\n const stroke = String(\n getColor(\n color === 'currentColor' || color === 'inherit'\n ? 'color-gray-700'\n : (color as string)\n )\n );\n const dimensions = size ?? widthHeight;\n const svgSize = typeof dimensions === 'number' ? dimensions : 24;\n const angle = { up: 0, down: 180, left: -90, right: 90 }[orientation];\n\n return (\n <View\n widthHeight={dimensions}\n color={color}\n alignItems=\"center\"\n justifyContent=\"center\"\n transform={transform}\n {...props}\n >\n <Svg\n width={svgSize}\n height={svgSize}\n viewBox=\"0 0 24 24\"\n accessible={false}\n >\n <Path\n d={path}\n rotation={transform ? 0 : angle}\n originX={12}\n originY={12}\n fill={filled ? stroke : 'none'}\n stroke={stroke}\n strokeWidth={strokeWidth}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </Svg>\n </View>\n );\n };\n}\n\n// Metro includes all modules reachable from the dynamic icon catalogue.\nexport const CloseIcon = fixed('M6 6 L18 18 M18 6 L6 18', 2);\nexport const ChevronIcon = fixed('M5 15 L12 8 L19 15');\nexport const TickIcon = fixed('M5 12 L10 17 L19 7');\nexport const MinusIcon = fixed('M6 12 H18');\n\nconst circle = 'M22 12 A10 10 0 1 1 2 12 A10 10 0 1 1 22 12';\nexport const WarningIcon = fixed('M12 3 L22 21 H2 Z M12 9 V14 M12 17 V18');\nexport const InfoIcon = fixed(circle + ' M12 8 V9 M12 11 V16');\nexport const ErrorIcon = fixed(circle + ' M12 7 V13 M12 16 V17');\nexport const SuccessIcon = fixed(circle + ' M7 12 L10 15 L17 8');\n",
|
|
108
|
+
"type": "registry:ui"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"path": "src/components/Icon/FixedIcons.tsx",
|
|
112
|
+
"content": "import React from 'react';\nimport { useTheme } from 'app-studio';\nimport {\n Check,\n ChevronUp,\n CircleAlert,\n CircleCheck,\n Info,\n Minus,\n TriangleAlert,\n X,\n} from 'lucide-react';\nimport type { LucideIcon } from 'lucide-react';\nimport { IconWrapper } from './Icon.frame';\nimport type { IconProps } from './Icon.frame';\n\nfunction fixed(Glyph: LucideIcon, defaultStroke = 1) {\n return function FixedIcon({\n widthHeight = 24,\n color = 'currentColor',\n filled = false,\n strokeWidth = defaultStroke,\n size,\n ...props\n }: Omit<IconProps, 'name' | 'fallback'>) {\n const { getColor } = useTheme();\n const stroke = getColor(color);\n const iconSize = size || widthHeight;\n return (\n <IconWrapper widthHeight={iconSize} color={color} {...props}>\n <Glyph\n size={iconSize}\n color={stroke}\n fill={filled ? stroke : 'none'}\n strokeWidth={strokeWidth}\n />\n </IconWrapper>\n );\n };\n}\n\nexport const CloseIcon = fixed(X, 2);\nexport const ChevronIcon = fixed(ChevronUp);\nexport const TickIcon = fixed(Check);\nexport const MinusIcon = fixed(Minus);\nexport const WarningIcon = fixed(TriangleAlert);\nexport const InfoIcon = fixed(Info);\nexport const ErrorIcon = fixed(CircleAlert);\nexport const SuccessIcon = fixed(CircleCheck);\n",
|
|
113
|
+
"type": "registry:ui"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"path": "src/components/Icon/Icon.frame.tsx",
|
|
117
|
+
"content": "import React from 'react';\nimport { View, ViewProps } from 'app-studio';\nimport type dynamicIconImportsType from 'lucide-react/dynamicIconImports';\n\n// Type for valid Lucide icon names with autocomplete support\nexport type IconName = keyof typeof dynamicIconImportsType;\n\n// Base icon interface with added transform and orientation.\n// `name` and `size` are explicitly Omit'd from ViewProps because Icon narrows\n// them: `name` → `IconName` (icon-id union), `size` → number | string.\nexport interface IconProps\n extends Omit<ViewProps, 'orientation' | 'name' | 'size'> {\n color?: string;\n filled?: boolean;\n orientation?: 'left' | 'right' | 'up' | 'down';\n name?: IconName;\n strokeWidth?: number | string;\n size?: number | string;\n fallback?: React.ReactNode;\n}\n\n// Default wrapper component for consistent sizing and styling\nexport const IconWrapper: React.FC<IconProps> = React.memo(\n ({\n widthHeight,\n color = 'currentColor',\n transform,\n orientation = 'up',\n children,\n ...rest\n }) => (\n <View\n widthHeight={widthHeight}\n color={color}\n display=\"flex\"\n alignItems=\"center\"\n justifyContent=\"center\"\n transform={\n transform\n ? transform\n : orientation === 'left'\n ? 'rotate(-90deg)'\n : orientation === 'right'\n ? 'rotate(90deg)'\n : orientation === 'up'\n ? 'rotate(0deg)'\n : orientation === 'down'\n ? 'rotate(180deg)'\n : 'none'\n }\n {...rest}\n >\n {children}\n </View>\n )\n);\n",
|
|
118
|
+
"type": "registry:ui"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"path": "src/components/pilot/checkbox.ts",
|
|
122
|
+
"content": "export * from '../Form/Checkbox/Checkbox';\nexport type { CheckboxProps } from '../Form/Checkbox/Checkbox/Checkbox.props';\n",
|
|
123
|
+
"type": "registry:ui"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"path": "src/utils/elevation.ts",
|
|
127
|
+
"content": "export type Elevation = {\n elevation: number;\n};\n",
|
|
128
|
+
"type": "registry:ui"
|
|
129
|
+
}
|
|
130
|
+
]
|
|
131
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
+
"name": "modal",
|
|
4
|
+
"type": "registry:ui",
|
|
5
|
+
"title": "Modal",
|
|
6
|
+
"author": "App Studio",
|
|
7
|
+
"categories": [
|
|
8
|
+
"Overlays"
|
|
9
|
+
],
|
|
10
|
+
"registryDependencies": [],
|
|
11
|
+
"meta": {
|
|
12
|
+
"appStudio": {
|
|
13
|
+
"entry": "src/components/pilot/modal.ts",
|
|
14
|
+
"engine": ">=0.9.5",
|
|
15
|
+
"version": "0.11.13",
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"platforms": [
|
|
18
|
+
"web",
|
|
19
|
+
"ios",
|
|
20
|
+
"android"
|
|
21
|
+
],
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"web": [
|
|
24
|
+
"lucide-react@^0.562.0",
|
|
25
|
+
"zustand@>=4"
|
|
26
|
+
],
|
|
27
|
+
"ios": [
|
|
28
|
+
"react-native-svg@>= 13",
|
|
29
|
+
"zustand@>=4"
|
|
30
|
+
],
|
|
31
|
+
"android": [
|
|
32
|
+
"react-native-svg@>= 13",
|
|
33
|
+
"zustand@>=4"
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
"npmImport": "@app-studio/components/modal"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"files": [
|
|
40
|
+
{
|
|
41
|
+
"path": "LICENSE.txt",
|
|
42
|
+
"content": "Copyright (c) Facebook, Inc. and its affiliates.\nAll rights reserved.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n\nAttribution-NonCommercial 4.0 International\n\n=======================================================================\n\nCreative Commons Corporation (\"Creative Commons\") is not a law firm and\ndoes not provide legal services or legal advice. Distribution of\nCreative Commons public licenses does not create a lawyer-client or\nother relationship. Creative Commons makes its licenses and related\ninformation available on an \"as-is\" basis. Creative Commons gives no\nwarranties regarding its licenses, any material licensed under their\nterms and conditions, or any related information. Creative Commons\ndisclaims all liability for damages resulting from their use to the\nfullest extent possible.\n\nUsing Creative Commons Public Licenses\n\nCreative Commons public licenses provide a standard set of terms and\nconditions that creators and other rights holders may use to share\noriginal works of authorship and other material subject to copyright\nand certain other rights specified in the public license below. The\nfollowing considerations are for informational purposes only, are not\nexhaustive, and do not form part of our licenses.\n\n Considerations for licensors: Our public licenses are\n intended for use by those authorized to give the public\n permission to use material in ways otherwise restricted by\n copyright and certain other rights. Our licenses are\n irrevocable. Licensors should read and understand the terms\n and conditions of the license they choose before applying it.\n Licensors should also secure all rights necessary before\n applying our licenses so that the public can reuse the\n material as expected. Licensors should clearly mark any\n material not subject to the license. This includes other CC-\n licensed material, or material used under an exception or\n limitation to copyright. More considerations for licensors:\n\twiki.creativecommons.org/Considerations_for_licensors\n\n Considerations for the public: By using one of our public\n licenses, a licensor grants the public permission to use the\n licensed material under specified terms and conditions. If\n the licensor's permission is not necessary for any reason--for\n example, because of any applicable exception or limitation to\n copyright--then that use is not regulated by the license. Our\n licenses grant only permissions under copyright and certain\n other rights that a licensor has authority to grant. Use of\n the licensed material may still be restricted for other\n reasons, including because others have copyright or other\n rights in the material. A licensor may make special requests,\n such as asking that all changes be marked or described.\n Although not required by our licenses, you are encouraged to\n respect those requests where reasonable. More_considerations\n for the public: \n\twiki.creativecommons.org/Considerations_for_licensees\n\n=======================================================================\n\nCreative Commons Attribution-NonCommercial 4.0 International Public\nLicense\n\nBy exercising the Licensed Rights (defined below), You accept and agree\nto be bound by the terms and conditions of this Creative Commons\nAttribution-NonCommercial 4.0 International Public License (\"Public\nLicense\"). To the extent this Public License may be interpreted as a\ncontract, You are granted the Licensed Rights in consideration of Your\nacceptance of these terms and conditions, and the Licensor grants You\nsuch rights in consideration of benefits the Licensor receives from\nmaking the Licensed Material available under these terms and\nconditions.\n\nSection 1 -- Definitions.\n\n a. Adapted Material means material subject to Copyright and Similar\n Rights that is derived from or based upon the Licensed Material\n and in which the Licensed Material is translated, altered,\n arranged, transformed, or otherwise modified in a manner requiring\n permission under the Copyright and Similar Rights held by the\n Licensor. For purposes of this Public License, where the Licensed\n Material is a musical work, performance, or sound recording,\n Adapted Material is always produced where the Licensed Material is\n synched in timed relation with a moving image.\n\n b. Adapter's License means the license You apply to Your Copyright\n and Similar Rights in Your contributions to Adapted Material in\n accordance with the terms and conditions of this Public License.\n\n c. Copyright and Similar Rights means copyright and/or similar rights\n closely related to copyright including, without limitation,\n performance, broadcast, sound recording, and Sui Generis Database\n Rights, without regard to how the rights are labeled or\n categorized. For purposes of this Public License, the rights\n specified in Section 2(b)(1)-(2) are not Copyright and Similar\n Rights.\n d. Effective Technological Measures means those measures that, in the\n absence of proper authority, may not be circumvented under laws\n fulfilling obligations under Article 11 of the WIPO Copyright\n Treaty adopted on December 20, 1996, and/or similar international\n agreements.\n\n e. Exceptions and Limitations means fair use, fair dealing, and/or\n any other exception or limitation to Copyright and Similar Rights\n that applies to Your use of the Licensed Material.\n\n f. Licensed Material means the artistic or literary work, database,\n or other material to which the Licensor applied this Public\n License.\n\n g. Licensed Rights means the rights granted to You subject to the\n terms and conditions of this Public License, which are limited to\n all Copyright and Similar Rights that apply to Your use of the\n Licensed Material and that the Licensor has authority to license.\n\n h. Licensor means the individual(s) or entity(ies) granting rights\n under this Public License.\n\n i. NonCommercial means not primarily intended for or directed towards\n commercial advantage or monetary compensation. For purposes of\n this Public License, the exchange of the Licensed Material for\n other material subject to Copyright and Similar Rights by digital\n file-sharing or similar means is NonCommercial provided there is\n no payment of monetary compensation in connection with the\n exchange.\n\n j. Share means to provide material to the public by any means or\n process that requires permission under the Licensed Rights, such\n as reproduction, public display, public performance, distribution,\n dissemination, communication, or importation, and to make material\n available to the public including in ways that members of the\n public may access the material from a place and at a time\n individually chosen by them.\n\n k. Sui Generis Database Rights means rights other than copyright\n resulting from Directive 96/9/EC of the European Parliament and of\n the Council of 11 March 1996 on the legal protection of databases,\n as amended and/or succeeded, as well as other essentially\n equivalent rights anywhere in the world.\n\n l. You means the individual or entity exercising the Licensed Rights\n under this Public License. Your has a corresponding meaning.\n\nSection 2 -- Scope.\n\n a. License grant.\n\n 1. Subject to the terms and conditions of this Public License,\n the Licensor hereby grants You a worldwide, royalty-free,\n non-sublicensable, non-exclusive, irrevocable license to\n exercise the Licensed Rights in the Licensed Material to:\n\n a. reproduce and Share the Licensed Material, in whole or\n in part, for NonCommercial purposes only; and\n\n b. produce, reproduce, and Share Adapted Material for\n NonCommercial purposes only.\n\n 2. Exceptions and Limitations. For the avoidance of doubt, where\n Exceptions and Limitations apply to Your use, this Public\n License does not apply, and You do not need to comply with\n its terms and conditions.\n\n 3. Term. The term of this Public License is specified in Section\n 6(a).\n\n 4. Media and formats; technical modifications allowed. The\n Licensor authorizes You to exercise the Licensed Rights in\n all media and formats whether now known or hereafter created,\n and to make technical modifications necessary to do so. The\n Licensor waives and/or agrees not to assert any right or\n authority to forbid You from making technical modifications\n necessary to exercise the Licensed Rights, including\n technical modifications necessary to circumvent Effective\n Technological Measures. For purposes of this Public License,\n simply making modifications authorized by this Section 2(a)\n (4) never produces Adapted Material.\n\n 5. Downstream recipients.\n\n a. Offer from the Licensor -- Licensed Material. Every\n recipient of the Licensed Material automatically\n receives an offer from the Licensor to exercise the\n Licensed Rights under the terms and conditions of this\n Public License.\n\n b. No downstream restrictions. You may not offer or impose\n any additional or different terms or conditions on, or\n apply any Effective Technological Measures to, the\n Licensed Material if doing so restricts exercise of the\n Licensed Rights by any recipient of the Licensed\n Material.\n\n 6. No endorsement. Nothing in this Public License constitutes or\n may be construed as permission to assert or imply that You\n are, or that Your use of the Licensed Material is, connected\n with, or sponsored, endorsed, or granted official status by,\n the Licensor or others designated to receive attribution as\n provided in Section 3(a)(1)(A)(i).\n\n b. Other rights.\n\n 1. Moral rights, such as the right of integrity, are not\n licensed under this Public License, nor are publicity,\n privacy, and/or other similar personality rights; however, to\n the extent possible, the Licensor waives and/or agrees not to\n assert any such rights held by the Licensor to the limited\n extent necessary to allow You to exercise the Licensed\n Rights, but not otherwise.\n\n 2. Patent and trademark rights are not licensed under this\n Public License.\n\n 3. To the extent possible, the Licensor waives any right to\n collect royalties from You for the exercise of the Licensed\n Rights, whether directly or through a collecting society\n under any voluntary or waivable statutory or compulsory\n licensing scheme. In all other cases the Licensor expressly\n reserves any right to collect such royalties, including when\n the Licensed Material is used other than for NonCommercial\n purposes.\n\nSection 3 -- License Conditions.\n\nYour exercise of the Licensed Rights is expressly made subject to the\nfollowing conditions.\n\n a. Attribution.\n\n 1. If You Share the Licensed Material (including in modified\n form), You must:\n\n a. retain the following if it is supplied by the Licensor\n with the Licensed Material:\n\n i. identification of the creator(s) of the Licensed\n Material and any others designated to receive\n attribution, in any reasonable manner requested by\n the Licensor (including by pseudonym if\n designated);\n\n ii. a copyright notice;\n\n iii. a notice that refers to this Public License;\n\n iv. a notice that refers to the disclaimer of\n warranties;\n\n v. a URI or hyperlink to the Licensed Material to the\n extent reasonably practicable;\n\n b. indicate if You modified the Licensed Material and\n retain an indication of any previous modifications; and\n\n c. indicate the Licensed Material is licensed under this\n Public License, and include the text of, or the URI or\n hyperlink to, this Public License.\n\n 2. You may satisfy the conditions in Section 3(a)(1) in any\n reasonable manner based on the medium, means, and context in\n which You Share the Licensed Material. For example, it may be\n reasonable to satisfy the conditions by providing a URI or\n hyperlink to a resource that includes the required\n information.\n\n 3. If requested by the Licensor, You must remove any of the\n information required by Section 3(a)(1)(A) to the extent\n reasonably practicable.\n\n 4. If You Share Adapted Material You produce, the Adapter's\n License You apply must not prevent recipients of the Adapted\n Material from complying with this Public License.\n\nSection 4 -- Sui Generis Database Rights.\n\nWhere the Licensed Rights include Sui Generis Database Rights that\napply to Your use of the Licensed Material:\n\n a. for the avoidance of doubt, Section 2(a)(1) grants You the right\n to extract, reuse, reproduce, and Share all or a substantial\n portion of the contents of the database for NonCommercial purposes\n only;\n\n b. if You include all or a substantial portion of the database\n contents in a database in which You have Sui Generis Database\n Rights, then the database in which You have Sui Generis Database\n Rights (but not its individual contents) is Adapted Material; and\n\n c. You must comply with the conditions in Section 3(a) if You Share\n all or a substantial portion of the contents of the database.\n\nFor the avoidance of doubt, this Section 4 supplements and does not\nreplace Your obligations under this Public License where the Licensed\nRights include other Copyright and Similar Rights.\n\nSection 5 -- Disclaimer of Warranties and Limitation of Liability.\n\n a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE\n EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS\n AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF\n ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,\n IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,\n WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR\n PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,\n ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT\n KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT\n ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.\n\n b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE\n TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,\n NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,\n INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,\n COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR\n USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN\n ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR\n DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR\n IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.\n\n c. The disclaimer of warranties and limitation of liability provided\n above shall be interpreted in a manner that, to the extent\n possible, most closely approximates an absolute disclaimer and\n waiver of all liability.\n\nSection 6 -- Term and Termination.\n\n a. This Public License applies for the term of the Copyright and\n Similar Rights licensed here. However, if You fail to comply with\n this Public License, then Your rights under this Public License\n terminate automatically.\n\n b. Where Your right to use the Licensed Material has terminated under\n Section 6(a), it reinstates:\n\n 1. automatically as of the date the violation is cured, provided\n it is cured within 30 days of Your discovery of the\n violation; or\n\n 2. upon express reinstatement by the Licensor.\n\n For the avoidance of doubt, this Section 6(b) does not affect any\n right the Licensor may have to seek remedies for Your violations\n of this Public License.\n\n c. For the avoidance of doubt, the Licensor may also offer the\n Licensed Material under separate terms or conditions or stop\n distributing the Licensed Material at any time; however, doing so\n will not terminate this Public License.\n\n d. Sections 1, 5, 6, 7, and 8 survive termination of this Public\n License.\n\nSection 7 -- Other Terms and Conditions.\n\n a. The Licensor shall not be bound by any additional or different\n terms or conditions communicated by You unless expressly agreed.\n\n b. Any arrangements, understandings, or agreements regarding the\n Licensed Material not stated herein are separate from and\n independent of the terms and conditions of this Public License.\n\nSection 8 -- Interpretation.\n\n a. For the avoidance of doubt, this Public License does not, and\n shall not be interpreted to, reduce, limit, restrict, or impose\n conditions on any use of the Licensed Material that could lawfully\n be made without permission under this Public License.\n\n b. To the extent possible, if any provision of this Public License is\n deemed unenforceable, it shall be automatically reformed to the\n minimum extent necessary to make it enforceable. If the provision\n cannot be reformed, it shall be severed from this Public License\n without affecting the enforceability of the remaining terms and\n conditions.\n\n c. No term or condition of this Public License will be waived and no\n failure to comply consented to unless expressly agreed to by the\n Licensor.\n\n d. Nothing in this Public License constitutes or may be interpreted\n as a limitation upon, or waiver of, any privileges and immunities\n that apply to the Licensor or You, including from the legal\n processes of any jurisdiction or authority.\n\n=======================================================================\n\nCreative Commons is not a party to its public\nlicenses. Notwithstanding, Creative Commons may elect to apply one of\nits public licenses to material it publishes and in those instances\nwill be considered the “Licensor.” The text of the Creative Commons\npublic licenses is dedicated to the public domain under the CC0 Public\nDomain Dedication. Except for the limited purpose of indicating that\nmaterial is shared under a Creative Commons public license or as\notherwise permitted by the Creative Commons policies published at\ncreativecommons.org/policies, Creative Commons does not authorize the\nuse of the trademark \"Creative Commons\" or any other trademark or logo\nof Creative Commons without its prior written consent including,\nwithout limitation, in connection with any unauthorized modifications\nto any of its public licenses or any other arrangements,\nunderstandings, or agreements concerning use of licensed material. For\nthe avoidance of doubt, this paragraph does not form part of the\npublic licenses.\n\nCreative Commons may be contacted at creativecommons.org.\n\n--------------------------- LICENSE FOR SMPL --------------------------------\nhttps://smpl.is.tue.mpg.de/bodylicense\n\nSMPL-Body License\nMax Planck Society e.V as Licensor\ngrants a\n\nSMPL-BODY Creative Commons License\n\nSMPL: Skinned Multi-Person Linear Model (hereinafter \"SMPL-Model\") is a 3D representation of the human body that supports realistic changes in body shape and pose. SMPL-Body is a subset of SMPL-Model which excludes the shape blendshapes or the tools to create 3D bodies using the shape blendshapes of the SMPL-Model. A SMPL-Body contains a 3D mesh, a skeleton rig, pose blendshapes and dynamic blendshapes. A SMPL-Body can be shared in the form of OBJ file(s), animated FBX file(s), or as a set of mesh vertices, skeleton rig, pose blendshapes and dynamic blendshapes in other appropriate 3D file formats.\n\nSMPL-Body is licensed under the Creative Commons Attribution 4.0 International License. You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use. To view a copy of this license, visit:\n\nhttp://creativecommons.org/licenses/by/4.0/\n\nOR\n\nhttps://creativecommons.org/licenses/by/4.0/deed.de (GERMAN)\n\nThe SMPL-Model specification is defined in the granted US patent US10395411B2 (published on 2018-11-01 and 2019-08-27, granted on 2019-08-27) and the pending European EP3314577A1 (published on 2018-05-02) and World WO2016207311A1 (published on 2016-12-29) patent applications, \"Skinned Multi-Person Linear Model\". The Max Planck Society (MPG) owns the technology disclosed in these granted and pending patent applications.\n\nWith this free CC-license, we want to encourage the adoption and use of SMPL-Body and related file formats as a new Standard in 3D Body Modeling. The Grant of right qualifies as a donation under German law. As to § 521 Bürgerliches Gesetzbuch the donor is responsible only for intent and gross negligence.\n\nAttribution for Publications with SMPL-Body\nYou agree to cite the most recent paper describing the model as specified on the download website: http://smpl.is.tue.mpg.de/ This website lists the most up to date bibliographic information.\n\n--------------------------- LICENSE FOR SPIN --------------------------------\n\nCopyright (c) 2019, \nUniversity of Pennsylvania, \nMax Planck Institute for Intelligent Systems\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\n\n1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.\n\n2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.\n\n3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.",
|
|
43
|
+
"type": "registry:ui"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"path": "src/components/Icon/FixedIcons.native.tsx",
|
|
47
|
+
"content": "import React from 'react';\nimport { View, useTheme, ViewProps } from 'app-studio';\nimport Svg, { Path } from 'react-native-svg';\n\ntype IconProps = Omit<ViewProps, 'size' | 'orientation'> & {\n size?: number | string;\n orientation?: 'up' | 'down' | 'left' | 'right';\n strokeWidth?: number | string;\n filled?: boolean;\n};\n\nfunction fixed(path: string, defaultStroke = 1) {\n return function FixedIcon({\n size,\n widthHeight = 24,\n orientation = 'up',\n color = 'currentColor',\n strokeWidth = defaultStroke,\n transform,\n filled = false,\n ...props\n }: IconProps) {\n const { getColor } = useTheme();\n const stroke = String(\n getColor(\n color === 'currentColor' || color === 'inherit'\n ? 'color-gray-700'\n : (color as string)\n )\n );\n const dimensions = size ?? widthHeight;\n const svgSize = typeof dimensions === 'number' ? dimensions : 24;\n const angle = { up: 0, down: 180, left: -90, right: 90 }[orientation];\n\n return (\n <View\n widthHeight={dimensions}\n color={color}\n alignItems=\"center\"\n justifyContent=\"center\"\n transform={transform}\n {...props}\n >\n <Svg\n width={svgSize}\n height={svgSize}\n viewBox=\"0 0 24 24\"\n accessible={false}\n >\n <Path\n d={path}\n rotation={transform ? 0 : angle}\n originX={12}\n originY={12}\n fill={filled ? stroke : 'none'}\n stroke={stroke}\n strokeWidth={strokeWidth}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </Svg>\n </View>\n );\n };\n}\n\n// Metro includes all modules reachable from the dynamic icon catalogue.\nexport const CloseIcon = fixed('M6 6 L18 18 M18 6 L6 18', 2);\nexport const ChevronIcon = fixed('M5 15 L12 8 L19 15');\nexport const TickIcon = fixed('M5 12 L10 17 L19 7');\nexport const MinusIcon = fixed('M6 12 H18');\n\nconst circle = 'M22 12 A10 10 0 1 1 2 12 A10 10 0 1 1 22 12';\nexport const WarningIcon = fixed('M12 3 L22 21 H2 Z M12 9 V14 M12 17 V18');\nexport const InfoIcon = fixed(circle + ' M12 8 V9 M12 11 V16');\nexport const ErrorIcon = fixed(circle + ' M12 7 V13 M12 16 V17');\nexport const SuccessIcon = fixed(circle + ' M7 12 L10 15 L17 8');\n",
|
|
48
|
+
"type": "registry:ui"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"path": "src/components/Icon/FixedIcons.tsx",
|
|
52
|
+
"content": "import React from 'react';\nimport { useTheme } from 'app-studio';\nimport {\n Check,\n ChevronUp,\n CircleAlert,\n CircleCheck,\n Info,\n Minus,\n TriangleAlert,\n X,\n} from 'lucide-react';\nimport type { LucideIcon } from 'lucide-react';\nimport { IconWrapper } from './Icon.frame';\nimport type { IconProps } from './Icon.frame';\n\nfunction fixed(Glyph: LucideIcon, defaultStroke = 1) {\n return function FixedIcon({\n widthHeight = 24,\n color = 'currentColor',\n filled = false,\n strokeWidth = defaultStroke,\n size,\n ...props\n }: Omit<IconProps, 'name' | 'fallback'>) {\n const { getColor } = useTheme();\n const stroke = getColor(color);\n const iconSize = size || widthHeight;\n return (\n <IconWrapper widthHeight={iconSize} color={color} {...props}>\n <Glyph\n size={iconSize}\n color={stroke}\n fill={filled ? stroke : 'none'}\n strokeWidth={strokeWidth}\n />\n </IconWrapper>\n );\n };\n}\n\nexport const CloseIcon = fixed(X, 2);\nexport const ChevronIcon = fixed(ChevronUp);\nexport const TickIcon = fixed(Check);\nexport const MinusIcon = fixed(Minus);\nexport const WarningIcon = fixed(TriangleAlert);\nexport const InfoIcon = fixed(Info);\nexport const ErrorIcon = fixed(CircleAlert);\nexport const SuccessIcon = fixed(CircleCheck);\n",
|
|
53
|
+
"type": "registry:ui"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"path": "src/components/Icon/Icon.frame.tsx",
|
|
57
|
+
"content": "import React from 'react';\nimport { View, ViewProps } from 'app-studio';\nimport type dynamicIconImportsType from 'lucide-react/dynamicIconImports';\n\n// Type for valid Lucide icon names with autocomplete support\nexport type IconName = keyof typeof dynamicIconImportsType;\n\n// Base icon interface with added transform and orientation.\n// `name` and `size` are explicitly Omit'd from ViewProps because Icon narrows\n// them: `name` → `IconName` (icon-id union), `size` → number | string.\nexport interface IconProps\n extends Omit<ViewProps, 'orientation' | 'name' | 'size'> {\n color?: string;\n filled?: boolean;\n orientation?: 'left' | 'right' | 'up' | 'down';\n name?: IconName;\n strokeWidth?: number | string;\n size?: number | string;\n fallback?: React.ReactNode;\n}\n\n// Default wrapper component for consistent sizing and styling\nexport const IconWrapper: React.FC<IconProps> = React.memo(\n ({\n widthHeight,\n color = 'currentColor',\n transform,\n orientation = 'up',\n children,\n ...rest\n }) => (\n <View\n widthHeight={widthHeight}\n color={color}\n display=\"flex\"\n alignItems=\"center\"\n justifyContent=\"center\"\n transform={\n transform\n ? transform\n : orientation === 'left'\n ? 'rotate(-90deg)'\n : orientation === 'right'\n ? 'rotate(90deg)'\n : orientation === 'up'\n ? 'rotate(0deg)'\n : orientation === 'down'\n ? 'rotate(180deg)'\n : 'none'\n }\n {...rest}\n >\n {children}\n </View>\n )\n);\n",
|
|
58
|
+
"type": "registry:ui"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"path": "src/components/Modal/Modal.tsx",
|
|
62
|
+
"content": "import React from 'react';\nimport { ModalType } from './Modal/Modal.props';\nimport {\n ModalBody,\n ModalContainer,\n ModalFooter,\n ModalHeader,\n ModalOverlay,\n} from './Modal/Modal.view';\nimport { ModalLayout } from './Modal/Modal.layout';\n// This file defines the main Modal component, which acts as a compound component. It groups and exports various sub-components (Overlay, Container, Header, Body, Footer, and Layout) as static properties, providing a flexible and structured way to compose modal dialogs.\nexport const Modal: ModalType = ({ children }) => <>{children}</>;\nModal.Overlay = ModalOverlay;\nModal.Container = ModalContainer;\nModal.Header = ModalHeader;\nModal.Body = ModalBody;\nModal.Footer = ModalFooter;\nModal.Layout = ModalLayout;\nexport * from './Modal/Modal.store';\n\n// Surface the registry renderer as standalone named exports. `ModalRouter` is\n// the documented name for the app-demo \"modal router\" pattern: mount it once\n// (e.g. via `AppRoot modals={...}`), then call `showModal('Name', props)` /\n// `hideModal('Name')` from anywhere to drive named modals from the store.\nexport { ModalLayout } from './Modal/Modal.layout';\nexport { ModalLayout as ModalRouter } from './Modal/Modal.layout';\n",
|
|
63
|
+
"type": "registry:ui"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"path": "src/components/Modal/Modal/Modal.layout.tsx",
|
|
67
|
+
"content": "import React, { Fragment, useEffect } from 'react';\nimport { ModalState, hideModal, useModalStore } from './Modal.store';\nimport { ModalOverlay } from './Modal.view';\nimport { ModalLayoutProps } from './Modal.props';\n// Defines the `ModalLayout` functional component, which is responsible for orchestrating and rendering multiple active modals based on their state.\nexport const ModalLayout = ({\n // Prop: `availableModals` is an object containing all possible modal components, keyed by their unique names, allowing for dynamic selection and rendering.\n modals: availableModals,\n // Prop: `onShow` is an optional callback function to be executed whenever a modal is displayed.\n onShow,\n // Prop: `onHide` is an optional callback function to be executed whenever a modal is hidden.\n onHide,\n}: ModalLayoutProps) => {\n // Retrieves the list of currently active modals from the global modal store, determining which modals need to be rendered.\n const activeModals = useModalStore((state: ModalState) => state.modals);\n // Synchronizes the `onShow` callback prop with the modal store's internal `setOnShow` action, ensuring the store can trigger this callback.\n useEffect(() => {\n if (onShow) {\n useModalStore.getState().setOnShow(onShow);\n }\n }, [onShow]);\n // Synchronizes the `onHide` callback prop with the modal store's internal `setOnHide` action, ensuring the store can trigger this callback.\n useEffect(() => {\n if (onHide) {\n useModalStore.getState().setOnHide(onHide);\n }\n }, [onHide]);\n // Conditionally renders nothing if there are no active modals, optimizing performance by avoiding unnecessary component trees.\n if (activeModals.length === 0) {\n return null;\n }\n return (\n <Fragment>\n {activeModals.map((modal: any, index: number) => {\n const ModalComponent = availableModals[modal.name];\n if (!ModalComponent) {\n console.error(`${modal.name} modal doesn't exist`);\n return null;\n }\n return (\n <ModalOverlay\n key={index}\n isOpen={modal.props.isVisible}\n onClose={() => hideModal(modal.name)}\n blur={5}\n {...modal.overlayProps}\n style={{ zIndex: 1000 + index }}\n >\n <ModalComponent {...modal.props} />\n </ModalOverlay>\n );\n })}\n </Fragment>\n );\n};\n",
|
|
68
|
+
"type": "registry:ui"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"path": "src/components/Modal/Modal/Modal.props.ts",
|
|
72
|
+
"content": "import React from 'react';\nimport { Elevation } from '../../../utils/elevation';\nimport { Shadow, ViewProps } from 'app-studio';\nimport { CloseButtonPosition, Position, Shape, Size } from './Modal.type';\n// Defines the properties available for the Modal component, extending `ViewProps` but omitting its `size` property.\nexport interface ModalProps\n extends Omit<ViewProps, 'size' | 'shadow' | 'position'> {\n // Specifies the color of the close button.\n buttonColor?: string;\n // Determines the size of the close button icon.\n iconSize?: Size;\n // Defines the overall shape style of the modal container.\n shape?: Shape;\n // Indicates whether the modal should occupy the full screen.\n isFullScreen?: boolean;\n // Sets the position of the close button within the modal.\n buttonPosition?: CloseButtonPosition;\n // Callback function triggered when the modal is requested to close.\n onClose?: () => void;\n // Applies a blur effect to the modal's background overlay.\n blur?: number;\n // Controls the visibility state of the modal.\n isOpen?: boolean;\n // If true, prevents the modal from closing when clicking outside or pressing escape.\n isClosePrevented?: boolean;\n // Specifies the position of the modal on the screen.\n position?: Position;\n // Defines the shadow style or elevation applied to the modal container.\n shadow?: Shadow | Elevation | ViewProps;\n // Optional identifier used by modal registries / dynamic-modal renderers.\n id?: string;\n // Optional title rendered by modal registries / dynamic-modal renderers.\n title?: string;\n}\n// Describes the structure of the Modal component, including its sub-components.\nexport interface ModalType extends React.FunctionComponent<ModalProps> {\n // Represents the modal overlay component.\n Overlay: React.FC<OverlayProps>;\n // Represents the modal content container component.\n Container: React.FC<ContainerProps>;\n // Represents the modal header component.\n Header: React.FC<HeaderProps>;\n // Represents the modal body component.\n Body: React.FC<BodyProps>;\n // Represents the modal footer component.\n Footer: React.FC<FooterProps>;\n // Represents the modal layout management component.\n Layout: React.FC<ModalLayoutProps>;\n}\n// Defines the properties for the modal's overlay component.\nexport interface OverlayProps extends Omit<ViewProps, 'position' | 'isOpen'> {\n // Content to be rendered inside the overlay.\n children?: React.ReactNode;\n // Applies a blur effect to the overlay background.\n blur?: number;\n // Determines if the overlay is visible.\n isOpen: boolean;\n /** Accessible name for the dialog on web. */\n 'aria-label'?: string;\n 'aria-labelledby'?: string;\n // If true, prevents the overlay from closing the modal on click.\n isClosePrevented?: boolean;\n // Specifies the positioning strategy for the overlay.\n position?: Position;\n // Indicates whether the overlay should cover the full screen.\n isFullScreen?: boolean;\n // Callback function to be executed when the overlay should trigger a close action.\n onClose: () => void;\n}\n// Defines the properties for the modal's header component.\nexport interface HeaderProps extends Omit<ViewProps, 'size'> {\n // Optional styling properties for nested view components within the header.\n views?: {\n // Styling properties for the header's container view.\n container?: ViewProps;\n // Styling properties for the header's main view.\n header?: ViewProps;\n };\n // Specifies the color of the close button in the header.\n buttonColor?: string;\n // Determines the size of the close button icon in the header.\n iconSize?: Size;\n // Content to be rendered inside the header.\n children?: React.ReactNode;\n // Sets the position of the close button within the header.\n buttonPosition?: CloseButtonPosition;\n // Size of the close button icon; alias of `iconSize` (wins when both are\n // provided).\n buttonSize?: Size;\n // Optional variant override forwarded by callers (tests/examples).\n variant?: string;\n // Callback function triggered when the header's close button is activated.\n onClose?: () => void;\n}\n// Defines properties for managing modal layouts and their visibility.\nexport interface ModalLayoutProps {\n // A map of modal names to their corresponding React functional components.\n modals: { [x: string]: React.FC<any> };\n // Callback function invoked when a modal is requested to be shown.\n onShow?: (name: string, props?: any) => void;\n // Callback function invoked when a modal is requested to be hidden.\n onHide?: (name?: string, props?: any) => void;\n}\n// Defines the properties for the modal's main content container.\nexport interface ContainerProps\n extends Omit<ViewProps, 'size' | 'position' | 'shadow'> {\n // Optional styling properties for nested view components within the container.\n views?: {\n // Styling properties for the container's main view.\n container?: ViewProps;\n };\n // Content to be rendered inside the container.\n children: React.ReactNode;\n // Defines the shape style of the container.\n shape?: Shape;\n // Indicates whether the container should expand to full screen.\n isFullScreen?: boolean;\n // Controls the open/closed state of the modal container.\n isOpen?: boolean;\n // Callback to close the modal container.\n onClose?: () => void;\n // If true, prevents the container from closing the modal on outside click.\n isClosePrevented?: boolean;\n // Blur effect applied to the modal backdrop.\n blur?: number;\n // Optional variant override forwarded by callers (tests/examples).\n variant?: string;\n // Optional close-button color override forwarded by callers.\n buttonColor?: any;\n // Optional close-button position override forwarded by callers.\n buttonPosition?: CloseButtonPosition;\n // Specifies the directional position of the modal on screen.\n position?: Position;\n // Defines the shadow style or elevation applied to the container.\n shadow?: Shadow | Elevation | ViewProps;\n}\n// Defines the properties for the modal's body content area.\nexport interface BodyProps extends ViewProps {\n children?: React.ReactNode;\n // Optional styling properties for nested view components within the body.\n views?: {\n // Styling properties for the body's main view.\n view?: ViewProps;\n };\n // Optional close-button color override forwarded by callers (tests/examples).\n buttonColor?: any;\n // Optional variant override forwarded by callers.\n variant?: string;\n}\n// Defines the properties for the modal's footer component.\nexport interface FooterProps extends ViewProps {\n children?: React.ReactNode;\n // Optional styling properties for nested view components within the footer.\n views?: {\n // Styling properties for the footer's container view.\n container?: ViewProps;\n };\n}\n",
|
|
73
|
+
"type": "registry:ui"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"path": "src/components/Modal/Modal/Modal.store.tsx",
|
|
77
|
+
"content": "import { create } from 'zustand';\n// Defines the structure for a single modal instance managed by the store.\nexport interface ModalItem {\n // A unique string identifier for the modal.\n name: string;\n // An object containing properties to be passed to the modal component, including its visibility state.\n props: any & { isVisible: boolean };\n // An object containing properties for the modal's overlay component.\n overlayProps: any;\n}\n// Defines the overall state shape and available actions for the modal store.\nexport interface ModalState {\n // An array holding all currently active modal items.\n modals: ModalItem[];\n // Function to add a new modal to the state, making it visible.\n show: (name: string, modalProps?: any, overlayProps?: any) => void;\n // Function to remove a modal from the state, making it hidden.\n hide: (name?: string) => void;\n // A callback function executed when a modal is shown, allowing custom side effects.\n onShow: (name: string, props?: any) => void;\n // A callback function executed when a modal is hidden, allowing custom side effects.\n onHide: (name?: string) => void;\n // Function to set or update the 'onShow' callback in the store.\n setOnShow: (onShow: (name: string, props?: any) => void) => void;\n // Function to set or update the 'onHide' callback in the store.\n setOnHide: (onHide: (name?: string) => void) => void;\n}\n// Initializes the Zustand store for managing modal states and actions.\nexport const useModalStore = create<ModalState>((set) => ({\n // The initial state property: an empty array of modals.\n modals: [],\n // Default implementation for the 'onHide' callback.\n onHide: (name?: string) => name,\n // Default implementation for the 'onShow' callback.\n onShow: (name: string, props?: any) => ({ name, props }),\n // Action to add a new modal to the 'modals' array, setting its 'isVisible' prop to true.\n show: (name, modalProps = {}, overlayProps = {}) => {\n set((state: ModalState) => ({\n ...state,\n modals: [\n ...state.modals,\n {\n name,\n props: { ...modalProps, isVisible: true },\n overlayProps,\n },\n ],\n }));\n },\n // Action to remove a modal from the 'modals' array based on its name, or clear all modals if no name is provided.\n hide: (name) => {\n set((state: ModalState) => {\n if (!name) {\n return { modals: [] };\n }\n return {\n ...state,\n modals: state.modals.filter((modal) => modal.name !== name),\n };\n });\n },\n // Action to update the 'onHide' callback function within the store.\n setOnHide: (onHide: (name?: string) => void) => {\n set((state: ModalState) => ({ ...state, onHide }));\n },\n // Action to update the 'onShow' callback function within the store.\n setOnShow: (onShow: (name: string, props?: any) => void) => {\n set((state: ModalState) => ({ ...state, onShow }));\n },\n}));\n// A convenience function to programmatically display a modal and trigger its 'onShow' callback.\nexport const showModal = (\n name: string,\n modalProps: any = {},\n overlayProps: any = {}\n) => {\n // Calls the 'show' action from the modal store to add the modal to the state.\n useModalStore.getState().show(name, modalProps, overlayProps);\n // Triggers the registered 'onShow' callback for the newly shown modal, allowing external effects.\n useModalStore.getState().onShow(name, modalProps);\n};\n// A convenience function to programmatically hide a modal and trigger its 'onHide' callback.\nexport const hideModal = (name?: string) => {\n // Triggers the registered 'onHide' callback for the hidden modal, allowing external effects.\n useModalStore.getState().onHide(name);\n // Calls the 'hide' action from the modal store to remove the modal from the state.\n useModalStore.getState().hide(typeof name === 'string' ? name : undefined);\n};\n",
|
|
78
|
+
"type": "registry:ui"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"path": "src/components/Modal/Modal/Modal.style.ts",
|
|
82
|
+
"content": "import { ViewProps } from 'app-studio';\nimport { Shape, Size } from './Modal.type';\n// Defines a mapping of modal container shapes to their corresponding border-radius styles.\nexport const ContainerShapes: Record<Shape, ViewProps> = {\n square: { borderRadius: 0 },\n rounded: { borderRadius: 8 },\n};\n// Specifies various alignment configurations for the modal's overlay content.\nexport const OverlayAlignments: Record<string, ViewProps> = {\n center: { justifyContent: 'center', alignItems: 'center' },\n top: {\n justifyContent: 'center',\n alignItems: 'flex-start',\n },\n right: {\n justifyContent: 'flex-end',\n alignItems: 'center',\n },\n bottom: {\n justifyContent: 'center',\n alignItems: 'flex-end',\n },\n left: {\n justifyContent: 'flex-start',\n alignItems: 'center',\n },\n};\n// Maps predefined size categories to specific pixel values for modal header icons.\nexport const HeaderIconSizes: Record<Size, number> = {\n xs: 12,\n sm: 16,\n md: 20,\n lg: 24,\n xl: 28,\n};\n// Contains keyframe definitions for the modal's entry and exit animations, including opacity and transform.\nexport const ModalAnimations = {\n enter: {\n opacity: [0, 1],\n transform: ['scale(0.95)', 'scale(1)'],\n transition: 'opacity 0.2s ease-out, transform 0.2s ease-out',\n },\n exit: {\n opacity: [1, 0],\n transform: ['scale(1)', 'scale(0.95)'],\n transition: 'opacity 0.15s ease-in, transform 0.15s ease-in',\n },\n};\n// Provides the default background and transition styles for the modal overlay.\nexport const OverlayStyles: ViewProps = {\n backgroundColor: 'color-dark-50-240',\n transition: 'background-color 0.2s ease',\n};\n// Sets the foundational background, shadow, and focus styles for the modal's content container.\nexport const ContainerBaseStyles: ViewProps = {\n backgroundColor: 'color-white',\n boxShadow: '0 10px 30px rgba(0, 0, 0, 0.12)',\n transition: 'box-shadow 0.2s ease',\n _focusVisible: {\n outline: 'none',\n boxShadow: '0 0 0 2px color-white, 0 0 0 4px theme-primary',\n },\n};\n// Groups typography settings for the modal's title and body text, including font size, weight, and color.\nexport const ModalTypography = {\n title: {\n fontSize: '20px',\n fontWeight: '600',\n lineHeight: '28px',\n color: 'color-gray-900',\n },\n body: {\n fontSize: '16px',\n fontWeight: '400',\n lineHeight: '24px',\n color: 'color-gray-700',\n },\n};\n",
|
|
83
|
+
"type": "registry:ui"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"path": "src/components/Modal/Modal/Modal.type.ts",
|
|
87
|
+
"content": "// Defines the possible positions for the modal on the screen.\nexport type Position = 'top' | 'left' | 'right' | 'bottom' | 'center';\n// Defines the shape of the modal's corners.\nexport type Shape = 'square' | 'rounded';\n// Defines the possible positions for the modal's close button, or if it should not be displayed.\nexport type CloseButtonPosition = 'left' | 'right' | 'none';\n// Defines the standard set of sizes for the modal component.\nexport type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';\n",
|
|
88
|
+
"type": "registry:ui"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"path": "src/components/Modal/Modal/Modal.view.native.tsx",
|
|
92
|
+
"content": "/**\n * ModalView (React Native) – uses RN's built-in <Modal/> for proper portal\n * + dismissal behaviour. Drops web-only concepts: position:fixed, viewport\n * units (vw/vh), backdropFilter, cursor.\n *\n * Same public API as the web variant: ModalOverlay / ModalContainer /\n * ModalHeader / ModalBody / ModalFooter.\n */\n\nimport React, { useCallback } from 'react';\nimport { Modal as RNModal } from 'react-native';\nimport { View, Horizontal, ViewProps, Vertical, Center } from 'app-studio';\nimport { CloseIcon } from '../../Icon/FixedIcons';\nimport { hideModal } from './Modal.store';\nimport {\n BodyProps,\n ContainerProps,\n FooterProps,\n HeaderProps,\n} from '../Modal/Modal.props';\nimport {\n ContainerShapes,\n OverlayAlignments,\n HeaderIconSizes,\n ModalTypography,\n} from '../Modal/Modal.style';\nimport { Position } from './Modal.type';\n\nexport interface OverlayProps {\n views?: {\n container?: ViewProps;\n view?: ViewProps;\n };\n blur?: number;\n isOpen?: boolean;\n isClosePrevented?: boolean;\n onClose?: () => void;\n position?: Position;\n children?: React.ReactNode;\n}\n\nexport const ModalOverlay: React.FC<OverlayProps & any> = React.memo(\n ({\n children,\n isOpen = false,\n isClosePrevented = false,\n onClose = () => {},\n position = 'center',\n views,\n ...props\n }) => {\n const handlePress = useCallback(() => {\n if (!isClosePrevented) onClose();\n }, [isClosePrevented, onClose]);\n\n return (\n <RNModal\n visible={isOpen}\n transparent\n animationType=\"fade\"\n onRequestClose={handlePress}\n >\n <Center\n flex={1}\n backgroundColor=\"color-dark-50-360\"\n onPress={handlePress}\n {...OverlayAlignments[position]}\n {...views?.container}\n >\n <View\n accessibilityViewIsModal={isOpen}\n onAccessibilityEscape={handlePress}\n flex={1}\n width=\"100%\"\n justifyContent=\"center\"\n alignItems=\"center\"\n {...props}\n {...views?.view}\n >\n {children}\n </View>\n </Center>\n </RNModal>\n );\n }\n);\n\nconst nativeShadow = {\n elevation: 5,\n shadowColor: 'rgba(0, 0, 0, 0.15)',\n shadowOffset: { width: 0, height: 4 },\n shadowOpacity: 1,\n shadowRadius: 16,\n};\n\nexport const ModalContainer: React.FC<ContainerProps> = React.memo(\n ({\n children,\n shadow,\n isFullScreen = false,\n shape = 'rounded',\n views,\n position: _position,\n ...props\n }) => {\n // stopPropagation isn't needed on RN — touch events don't bubble up like web\n return (\n <Vertical\n backgroundColor=\"color-white\"\n width={isFullScreen ? '100%' : '90%'}\n maxWidth={600}\n {...(shadow ? shadow : nativeShadow)}\n {...ContainerShapes[shape]}\n {...props}\n {...views?.container}\n >\n {children}\n </Vertical>\n );\n }\n);\n\nexport const ModalHeader: React.FC<HeaderProps> = React.memo(\n ({\n children,\n buttonColor = 'theme-primary',\n iconSize = 'md',\n buttonSize,\n buttonPosition = 'right',\n views,\n onClose: onCloseProp,\n ...props\n }) => {\n const onClose = onCloseProp ? onCloseProp : hideModal;\n const buttonIcon = (\n <View onPress={onClose}>\n <CloseIcon\n widthHeight={HeaderIconSizes[buttonSize ?? iconSize]}\n color={buttonColor}\n />\n </View>\n );\n return (\n <Horizontal\n justifyContent={buttonPosition === 'none' ? 'center' : 'space-between'}\n alignItems=\"center\"\n paddingVertical={16}\n paddingHorizontal={24}\n borderBottomWidth={1}\n borderBottomColor=\"color-gray-200\"\n {...props}\n {...views?.header}\n >\n {buttonPosition === 'left' && buttonIcon}\n {children}\n {buttonPosition === 'right' && buttonIcon}\n </Horizontal>\n );\n }\n);\n\nexport const ModalBody: React.FC<BodyProps> = React.memo(\n ({ children, views, ...props }) => {\n return (\n <View\n paddingVertical={16}\n paddingHorizontal={24}\n fontSize={ModalTypography.body.fontSize}\n fontWeight={ModalTypography.body.fontWeight}\n color={ModalTypography.body.color}\n {...props}\n {...views?.view}\n >\n {children}\n </View>\n );\n }\n);\n\nexport const ModalFooter: React.FC<FooterProps> = React.memo(\n ({ children, views, ...props }) => {\n return (\n <Horizontal\n marginTop=\"auto\"\n alignItems=\"center\"\n justifyContent=\"flex-end\"\n paddingVertical={16}\n paddingHorizontal={24}\n borderTopWidth={1}\n borderTopColor=\"color-gray-200\"\n gap={12}\n {...props}\n {...views?.container}\n >\n {children}\n </Horizontal>\n );\n }\n);\n",
|
|
93
|
+
"type": "registry:ui"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"path": "src/components/Modal/Modal/Modal.view.tsx",
|
|
97
|
+
"content": "import React, { useCallback, useEffect, useMemo, useRef } from 'react';\nimport {\n Element,\n View,\n Horizontal,\n ViewProps,\n Vertical,\n Center,\n} from 'app-studio';\nimport { CloseIcon } from '../../Icon/FixedIcons';\nimport { hideModal } from './Modal.store';\nimport {\n BodyProps,\n ContainerProps,\n FooterProps,\n HeaderProps,\n} from '../Modal/Modal.props';\nimport {\n ContainerShapes,\n OverlayAlignments,\n HeaderIconSizes,\n ModalTypography,\n} from '../Modal/Modal.style';\nimport { Position } from './Modal.type';\n// Defines the properties available for configuring the ModalOverlay component, enabling customization of its appearance and behavior.\nexport interface OverlayProps {\n // Specifies custom style properties for the modal's internal container and view elements, allowing for granular visual adjustments.\n views?: {\n container?: ViewProps;\n view?: ViewProps;\n };\n // Sets the blur radius for the backdrop effect behind the modal, enhancing visual distinction and focus on the modal content.\n blur?: number;\n // Determines the visibility state of the modal overlay. When true, the modal is shown; when false, it is hidden.\n isOpen?: boolean;\n // A flag indicating whether clicking the overlay outside the modal content should trigger the onClose event, preventing accidental closures.\n isClosePrevented?: boolean;\n // A callback function that executes when the modal is requested to close, typically due to user interaction or internal logic.\n onClose?: () => void;\n // Dictates the alignment of the modal content within the overlay, such as 'center', 'top-left', etc.\n position?: Position;\n // The React nodes that will be rendered as the main content inside the modal overlay.\n children?: React.ReactNode;\n}\n// The ModalOverlay component serves as the backdrop and container for any modal content, managing its visibility and global positioning. It applies a customizable blur effect and handles close interactions.\nexport const ModalOverlay: React.FC<OverlayProps & any> = React.memo(\n ({\n children,\n blur,\n isOpen = false,\n isClosePrevented = false,\n onClose = () => {},\n position = 'center',\n views,\n ...props\n }) => {\n const dialog = useRef<HTMLDivElement>(null);\n const handleClick = useCallback(() => {\n if (!isClosePrevented) onClose();\n }, [isClosePrevented, onClose]);\n\n function focusable(node: HTMLElement) {\n return Array.from(\n node.querySelectorAll<HTMLElement>(\n 'a[href], button, input, select, textarea, [tabindex], [contenteditable=true]'\n )\n ).filter(\n (element) =>\n element.tabIndex >= 0 &&\n !element.matches(':disabled, input[type=hidden]') &&\n !element.closest('[hidden], [inert], [aria-hidden=true]') &&\n element.ownerDocument.defaultView?.getComputedStyle(element)\n .visibility !== 'hidden'\n );\n }\n\n useEffect(() => {\n const node = dialog.current;\n if (!isOpen || !node) return;\n const trigger = node.ownerDocument.activeElement as HTMLElement | null;\n (focusable(node)[0] ?? node).focus();\n return () => {\n if (trigger?.isConnected) trigger.focus();\n };\n }, [isOpen]);\n\n function handleKeyDown(event: React.KeyboardEvent<HTMLDivElement>) {\n if (event.defaultPrevented) return;\n if (event.key === 'Escape' && !isClosePrevented) {\n event.preventDefault();\n event.stopPropagation();\n handleClick();\n }\n if (event.key !== 'Tab') return;\n const node = event.currentTarget;\n const elements = focusable(node);\n const active = node.ownerDocument.activeElement;\n const atEdge =\n active === node ||\n active === (event.shiftKey ? elements[0] : elements.at(-1));\n if (!elements.length || atEdge) {\n event.preventDefault();\n (elements.at(event.shiftKey ? -1 : 0) ?? node).focus();\n }\n }\n\n return (\n <Center\n position=\"fixed\"\n top={0}\n left={0}\n width=\"100%\"\n height=\"100%\"\n zIndex={1000}\n onClick={handleClick}\n visibility={isOpen ? 'visible' : 'hidden'}\n opacity={isOpen ? 1 : 0}\n transition=\"opacity 0.2s ease, visibility 0.2s ease\"\n {...views?.container}\n >\n <Element\n as=\"div\"\n ref={dialog}\n tabIndex={-1}\n role=\"dialog\"\n aria-modal={isOpen || undefined}\n aria-hidden={!isOpen || undefined}\n aria-label=\"Dialog\"\n onKeyDown={handleKeyDown}\n position=\"absolute\"\n top={0}\n left={0}\n zIndex={1000}\n width=\"100vw\"\n height=\"100vh\"\n display=\"flex\"\n backgroundColor=\"color-dark-50-360\"\n backdropFilter={blur ? `blur(${blur}px)` : undefined}\n transition=\"background-color 0.2s ease, backdrop-filter 0.2s ease\"\n {...OverlayAlignments[position]}\n {...props}\n {...views?.view}\n >\n {children}\n </Element>\n </Center>\n );\n }\n);\nconst webShadow = {\n boxShadow: '0px 4px 16px rgba(0, 0, 0, 0.15)',\n};\nexport const ModalContainer: React.FC<ContainerProps> = React.memo(\n ({\n children,\n shadow,\n isFullScreen = false,\n shape = 'rounded',\n views,\n isOpen = true,\n // Strip ContainerProps's domain `position` (Modal-specific enum) so it\n // doesn't reach the underlying Vertical which expects CSS Property.Position.\n position: _position,\n ...props\n }) => {\n const defaultShadow = webShadow;\n const handleClick = useCallback((event: any) => {\n if (event && event.stopPropagation) event.stopPropagation();\n }, []);\n return (\n <Vertical\n cursor=\"default\"\n backgroundColor=\"color-white\"\n width={isFullScreen ? '100%' : 600}\n height={isFullScreen ? '100%' : 'fit-content'}\n onClick={handleClick}\n transition=\"opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease\"\n opacity={isOpen ? 1 : 0}\n transform={isOpen ? 'translateY(0)' : 'translateY(8px)'}\n {...(shadow ? shadow : defaultShadow)}\n {...ContainerShapes[shape]}\n media={{\n mobile: {\n width: '90%',\n maxWidth: '100%',\n margin: '16px',\n },\n }}\n {...props}\n {...views?.container}\n >\n {children}\n </Vertical>\n );\n }\n);\nexport const ModalHeader: React.FC<HeaderProps> = React.memo(\n ({\n children,\n buttonColor = 'theme-primary',\n iconSize = 'md',\n buttonSize,\n buttonPosition = 'right',\n views,\n onClose: onCloseProp,\n ...props\n }) => {\n const onClose = onCloseProp ? onCloseProp : hideModal;\n const buttonIcon = (\n <View onClick={() => onClose()}>\n <CloseIcon\n widthHeight={HeaderIconSizes[buttonSize ?? iconSize]}\n color={buttonColor}\n />\n </View>\n );\n return (\n <Horizontal\n justifyContent={buttonPosition === 'none' ? 'center' : 'space-between'}\n alignItems=\"center\"\n paddingVertical={16}\n paddingHorizontal={24}\n borderBottomWidth=\"1px\"\n borderBottomStyle=\"solid\"\n borderBottomColor=\"color-gray-200\"\n media={{\n mobile: {\n paddingVertical: 12,\n paddingHorizontal: 16,\n },\n }}\n {...props}\n {...views?.header}\n >\n {buttonPosition === 'left' && buttonIcon}\n {children}\n {buttonPosition === 'right' && buttonIcon}\n </Horizontal>\n );\n }\n);\nexport const ModalBody: React.FC<BodyProps> = React.memo(\n ({ children, views, ...props }) => {\n return (\n <View\n paddingVertical={16}\n paddingHorizontal={24}\n fontSize={ModalTypography.body.fontSize}\n fontWeight={ModalTypography.body.fontWeight}\n color={ModalTypography.body.color}\n media={{\n mobile: {\n paddingVertical: 12,\n paddingHorizontal: 16,\n fontSize: '14px',\n },\n }}\n {...props}\n {...views?.view}\n >\n {children}\n </View>\n );\n }\n);\nexport const ModalFooter: React.FC<FooterProps> = React.memo(\n ({ children, views, ...props }) => {\n return (\n <Horizontal\n marginTop=\"auto\"\n alignItems=\"center\"\n justifyContent=\"flex-end\"\n paddingVertical={16}\n paddingHorizontal={24}\n borderTopWidth=\"1px\"\n borderTopStyle=\"solid\"\n borderTopColor=\"color-gray-200\"\n gap={12}\n media={{\n mobile: {\n paddingVertical: 12,\n paddingHorizontal: 16,\n gap: 8,\n },\n }}\n {...props}\n {...views?.container}\n >\n {children}\n </Horizontal>\n );\n }\n);\n",
|
|
98
|
+
"type": "registry:ui"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"path": "src/components/pilot/modal.ts",
|
|
102
|
+
"content": "export * from '../Modal/Modal';\nexport type { ModalProps } from '../Modal/Modal/Modal.props';\n",
|
|
103
|
+
"type": "registry:ui"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"path": "src/utils/elevation.ts",
|
|
107
|
+
"content": "export type Elevation = {\n elevation: number;\n};\n",
|
|
108
|
+
"type": "registry:ui"
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
}
|