@app-studio/components 0.11.13 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -1
- package/compiler/vite.d.mts +5 -0
- package/compiler/vite.mjs +190 -0
- package/dist/alert.cjs.js +2 -0
- package/dist/alert.cjs.js.map +1 -0
- package/dist/alert.esm.d.mts +1 -0
- package/dist/alert.esm.mjs +5 -0
- package/dist/alert.esm.mjs.map +1 -0
- package/dist/avatar.cjs.js +2 -0
- package/dist/avatar.cjs.js.map +1 -0
- package/dist/avatar.esm.d.mts +1 -0
- package/dist/avatar.esm.mjs +5 -0
- package/dist/avatar.esm.mjs.map +1 -0
- package/dist/button.cjs.js +2 -0
- package/dist/button.cjs.js.map +1 -0
- package/dist/button.esm.d.mts +1 -0
- package/dist/button.esm.mjs +5 -0
- package/dist/button.esm.mjs.map +1 -0
- package/dist/card.cjs.js +2 -0
- package/dist/card.cjs.js.map +1 -0
- package/dist/card.esm.d.mts +1 -0
- package/dist/card.esm.mjs +5 -0
- package/dist/card.esm.mjs.map +1 -0
- package/dist/checkbox.cjs.js +2 -0
- package/dist/checkbox.cjs.js.map +1 -0
- package/dist/checkbox.esm.d.mts +1 -0
- package/dist/checkbox.esm.mjs +5 -0
- package/dist/checkbox.esm.mjs.map +1 -0
- package/dist/chunks/Alert-Bjl40k3x.cjs +2 -0
- package/dist/chunks/Alert-Bjl40k3x.cjs.map +1 -0
- package/dist/chunks/Alert-Q1HlVX8f.mjs +179 -0
- package/dist/chunks/Alert-Q1HlVX8f.mjs.map +1 -0
- package/dist/chunks/AttachmentPreview-8d8gZ5kk.mjs +7777 -0
- package/dist/chunks/AttachmentPreview-8d8gZ5kk.mjs.map +1 -0
- package/dist/chunks/AttachmentPreview-Bwrz5TJh.cjs +2 -0
- package/dist/chunks/AttachmentPreview-Bwrz5TJh.cjs.map +1 -0
- package/dist/chunks/Avatar-BB0DeN9j.cjs +2 -0
- package/dist/chunks/Avatar-BB0DeN9j.cjs.map +1 -0
- package/dist/chunks/Avatar-D-GkyL2c.mjs +103 -0
- package/dist/chunks/Avatar-D-GkyL2c.mjs.map +1 -0
- package/dist/chunks/Button.core-Bc5cSn_z.mjs +717 -0
- package/dist/chunks/Button.core-Bc5cSn_z.mjs.map +1 -0
- package/dist/chunks/Button.core-BhtOm8ak.cjs +7 -0
- package/dist/chunks/Button.core-BhtOm8ak.cjs.map +1 -0
- package/dist/chunks/Button.pilot-C4BIb08S.mjs +6 -0
- package/dist/chunks/Button.pilot-C4BIb08S.mjs.map +1 -0
- package/dist/chunks/Button.pilot-JmR2DCSE.cjs +2 -0
- package/dist/chunks/Button.pilot-JmR2DCSE.cjs.map +1 -0
- package/dist/chunks/Card-CNSl9fD5.cjs +2 -0
- package/dist/chunks/Card-CNSl9fD5.cjs.map +1 -0
- package/dist/chunks/Card-DMhV_NTt.mjs +200 -0
- package/dist/chunks/Card-DMhV_NTt.mjs.map +1 -0
- package/dist/chunks/Checkbox-Bo7IRVRE.mjs +11 -0
- package/dist/chunks/Checkbox-Bo7IRVRE.mjs.map +1 -0
- package/dist/chunks/Checkbox-CAI6RtuO.cjs +2 -0
- package/dist/chunks/Checkbox-CAI6RtuO.cjs.map +1 -0
- package/dist/chunks/Checkbox.view-DGdNPlF9.cjs +2 -0
- package/dist/chunks/Checkbox.view-DGdNPlF9.cjs.map +1 -0
- package/dist/chunks/Checkbox.view-dhc-rfEX.mjs +308 -0
- package/dist/chunks/Checkbox.view-dhc-rfEX.mjs.map +1 -0
- package/dist/chunks/FieldWrapper-Bb0j8Iog.mjs +252 -0
- package/dist/chunks/FieldWrapper-Bb0j8Iog.mjs.map +1 -0
- package/dist/chunks/FieldWrapper-DRCn7BLi.cjs +2 -0
- package/dist/chunks/FieldWrapper-DRCn7BLi.cjs.map +1 -0
- package/dist/chunks/FixedIcons-Dz_f-yDL.cjs +2 -0
- package/dist/chunks/FixedIcons-Dz_f-yDL.cjs.map +1 -0
- package/dist/chunks/FixedIcons-fxASFYew.mjs +37 -0
- package/dist/chunks/FixedIcons-fxASFYew.mjs.map +1 -0
- package/dist/chunks/Formik.Uploader-D0nzjyau.cjs +22 -0
- package/dist/chunks/Formik.Uploader-D0nzjyau.cjs.map +1 -0
- package/dist/chunks/Formik.Uploader-DRIyxMI0.mjs +6962 -0
- package/dist/chunks/Formik.Uploader-DRIyxMI0.mjs.map +1 -0
- package/dist/chunks/Icon-C37alecH.cjs +2 -0
- package/dist/chunks/Icon-C37alecH.cjs.map +1 -0
- package/dist/chunks/Icon-DrAZswNH.mjs +148 -0
- package/dist/chunks/Icon-DrAZswNH.mjs.map +1 -0
- package/dist/chunks/Icon.frame-COrb0u94.mjs +29 -0
- package/dist/chunks/Icon.frame-COrb0u94.mjs.map +1 -0
- package/dist/chunks/Icon.frame-DD6ycsWD.cjs +2 -0
- package/dist/chunks/Icon.frame-DD6ycsWD.cjs.map +1 -0
- package/dist/chunks/Label-BVEAujj2.mjs +83 -0
- package/dist/chunks/Label-BVEAujj2.mjs.map +1 -0
- package/dist/chunks/Label-Bd0TpfkG.cjs +2 -0
- package/dist/chunks/Label-Bd0TpfkG.cjs.map +1 -0
- package/dist/chunks/Loader-4V81BN95.cjs +2 -0
- package/dist/chunks/Loader-4V81BN95.cjs.map +1 -0
- package/dist/chunks/Loader-DMLQky1k.mjs +171 -0
- package/dist/chunks/Loader-DMLQky1k.mjs.map +1 -0
- package/dist/chunks/Modal-DkckCT8-.mjs +339 -0
- package/dist/chunks/Modal-DkckCT8-.mjs.map +1 -0
- package/dist/chunks/Modal-zok954As.cjs +2 -0
- package/dist/chunks/Modal-zok954As.cjs.map +1 -0
- package/dist/chunks/Router-DjmVh9pK.cjs +2 -0
- package/dist/chunks/Router-DjmVh9pK.cjs.map +1 -0
- package/dist/chunks/Router-Dtb8HvI0.mjs +76 -0
- package/dist/chunks/Router-Dtb8HvI0.mjs.map +1 -0
- package/dist/chunks/Router.store-Bxe2uZWk.cjs +2 -0
- package/dist/chunks/Router.store-Bxe2uZWk.cjs.map +1 -0
- package/dist/chunks/Router.store-C0zWd45T.mjs +27 -0
- package/dist/chunks/Router.store-C0zWd45T.mjs.map +1 -0
- package/dist/chunks/Select-C6R0Tei-.cjs +2 -0
- package/dist/chunks/Select-C6R0Tei-.cjs.map +1 -0
- package/dist/chunks/Select-C7IBNyjR.mjs +24 -0
- package/dist/chunks/Select-C7IBNyjR.mjs.map +1 -0
- package/dist/chunks/Select.view-CPMqT8pn.mjs +659 -0
- package/dist/chunks/Select.view-CPMqT8pn.mjs.map +1 -0
- package/dist/chunks/Select.view-Pq1yAcMm.cjs +2 -0
- package/dist/chunks/Select.view-Pq1yAcMm.cjs.map +1 -0
- package/dist/chunks/Switch-D80yPNFV.cjs +2 -0
- package/dist/chunks/Switch-D80yPNFV.cjs.map +1 -0
- package/dist/chunks/Switch-DWx1g3jT.mjs +11 -0
- package/dist/chunks/Switch-DWx1g3jT.mjs.map +1 -0
- package/dist/chunks/Switch.view-CQZO_Js7.cjs +2 -0
- package/dist/chunks/Switch.view-CQZO_Js7.cjs.map +1 -0
- package/dist/chunks/Switch.view-QLZ7O5Z7.mjs +315 -0
- package/dist/chunks/Switch.view-QLZ7O5Z7.mjs.map +1 -0
- package/dist/chunks/Tabs-D5chMrkE.mjs +403 -0
- package/dist/chunks/Tabs-D5chMrkE.mjs.map +1 -0
- package/dist/chunks/Tabs-DQeBJwkz.cjs +2 -0
- package/dist/chunks/Tabs-DQeBJwkz.cjs.map +1 -0
- package/dist/chunks/TextField-DOU2CL5J.mjs +266 -0
- package/dist/chunks/TextField-DOU2CL5J.mjs.map +1 -0
- package/dist/chunks/TextField-Da4JCcAU.cjs +2 -0
- package/dist/chunks/TextField-Da4JCcAU.cjs.map +1 -0
- package/dist/chunks/default-D7ePSMKP.cjs +2 -0
- package/dist/chunks/default-D7ePSMKP.cjs.map +1 -0
- package/dist/chunks/default-nRKhMTzF.mjs +610 -0
- package/dist/chunks/default-nRKhMTzF.mjs.map +1 -0
- package/dist/chunks/designSystem.page-B74Vm2Dt.cjs +11 -0
- package/dist/chunks/designSystem.page-B74Vm2Dt.cjs.map +1 -0
- package/dist/chunks/designSystem.page-K0ajTvy7.mjs +13119 -0
- package/dist/chunks/designSystem.page-K0ajTvy7.mjs.map +1 -0
- package/dist/design-system-preview.cjs.js +2 -0
- package/dist/design-system-preview.cjs.js.map +1 -0
- package/dist/design-system-preview.esm.d.mts +1 -0
- package/dist/design-system-preview.esm.mjs +30 -0
- package/dist/design-system-preview.esm.mjs.map +1 -0
- package/dist/formik.cjs.js +2 -0
- package/dist/formik.cjs.js.map +1 -0
- package/dist/formik.esm.d.mts +1 -0
- package/dist/formik.esm.mjs +28 -0
- package/dist/formik.esm.mjs.map +1 -0
- package/dist/link.cjs.js +2 -0
- package/dist/link.cjs.js.map +1 -0
- package/dist/link.esm.d.mts +1 -0
- package/dist/link.esm.mjs +78 -0
- package/dist/link.esm.mjs.map +1 -0
- package/dist/modal.cjs.js +2 -0
- package/dist/modal.cjs.js.map +1 -0
- package/dist/modal.esm.d.mts +1 -0
- package/dist/modal.esm.mjs +10 -0
- package/dist/modal.esm.mjs.map +1 -0
- package/dist/native/components/Accordion/Accordion/Accordion.view.js +1 -1
- package/dist/native/components/Accordion/Accordion/Accordion.view.js.map +1 -1
- package/dist/native/components/Accordion/Accordion/Accordion.view.native.js +1 -1
- package/dist/native/components/Accordion/Accordion/Accordion.view.native.js.map +1 -1
- package/dist/native/components/Accordion/Accordion.js +1 -1
- package/dist/native/components/Accordion/Accordion.js.map +1 -1
- package/dist/native/components/ActionSheet/ActionSheet/ActionSheet.view.native.js +1 -1
- package/dist/native/components/ActionSheet/ActionSheet/ActionSheet.view.native.js.map +1 -1
- package/dist/native/components/Alert/Alert/Alert.view.js +1 -1
- package/dist/native/components/Alert/Alert/Alert.view.js.map +1 -1
- package/dist/native/components/Alert/Alert/Alert.view.native.js +9 -2
- package/dist/native/components/Alert/Alert/Alert.view.native.js.map +1 -1
- package/dist/native/components/Alert/Alert.js +1 -1
- package/dist/native/components/Alert/Alert.js.map +1 -1
- package/dist/native/components/Avatar/Avatar.js +1 -1
- package/dist/native/components/Avatar/Avatar.js.map +1 -1
- package/dist/native/components/Badge/Badge.js +1 -1
- package/dist/native/components/Badge/Badge.js.map +1 -1
- package/dist/native/components/Button/Button/Button.style.js.map +1 -1
- package/dist/native/components/Button/Button/Button.view.d.ts +4 -1
- package/dist/native/components/Button/Button/Button.view.js +7 -5
- package/dist/native/components/Button/Button/Button.view.js.map +1 -1
- package/dist/native/components/Button/Button/Button.view.native.d.ts +4 -1
- package/dist/native/components/Button/Button/Button.view.native.js +14 -4
- package/dist/native/components/Button/Button/Button.view.native.js.map +1 -1
- package/dist/native/components/Button/Button.core.d.ts +4 -0
- package/dist/native/components/Button/Button.core.js +39 -0
- package/dist/native/components/Button/Button.core.js.map +1 -0
- package/dist/native/components/Button/Button.d.ts +1 -3
- package/dist/native/components/Button/Button.js +3 -36
- package/dist/native/components/Button/Button.js.map +1 -1
- package/dist/native/components/Button/Button.pilot.d.ts +2 -0
- package/dist/native/components/Button/Button.pilot.js +3 -0
- package/dist/native/components/Button/Button.pilot.js.map +1 -0
- package/dist/native/components/Card/Card.js +1 -1
- package/dist/native/components/Card/Card.js.map +1 -1
- package/dist/native/components/Form/Checkbox/Checkbox/Checkbox.view.js +1 -1
- package/dist/native/components/Form/Checkbox/Checkbox/Checkbox.view.js.map +1 -1
- package/dist/native/components/Form/Checkbox/Checkbox/Checkbox.view.native.js +1 -1
- package/dist/native/components/Form/Checkbox/Checkbox/Checkbox.view.native.js.map +1 -1
- package/dist/native/components/Form/Checkbox/Checkbox.js +1 -1
- package/dist/native/components/Form/Checkbox/Checkbox.js.map +1 -1
- package/dist/native/components/Form/Radio/Radio.js +1 -1
- package/dist/native/components/Form/Radio/Radio.js.map +1 -1
- package/dist/native/components/Form/Select/Select/Select.view.js +1 -1
- package/dist/native/components/Form/Select/Select/Select.view.js.map +1 -1
- package/dist/native/components/Form/Select/Select/Select.view.native.js +2 -2
- package/dist/native/components/Form/Select/Select/Select.view.native.js.map +1 -1
- package/dist/native/components/Form/Select/Select.js +1 -1
- package/dist/native/components/Form/Select/Select.js.map +1 -1
- package/dist/native/components/Form/Switch/Switch.js +1 -1
- package/dist/native/components/Form/Switch/Switch.js.map +1 -1
- package/dist/native/components/Form/TextArea/TextArea.js +1 -1
- package/dist/native/components/Form/TextArea/TextArea.js.map +1 -1
- package/dist/native/components/Form/TextField/TextField/TextField.view.js +1 -1
- package/dist/native/components/Form/TextField/TextField/TextField.view.js.map +1 -1
- package/dist/native/components/Form/TextField/TextField/TextField.view.native.js +5 -9
- package/dist/native/components/Form/TextField/TextField/TextField.view.native.js.map +1 -1
- package/dist/native/components/Form/TextField/TextField.js +1 -1
- package/dist/native/components/Form/TextField/TextField.js.map +1 -1
- package/dist/native/components/Icon/FixedIcons.d.ts +10 -0
- package/dist/native/components/Icon/FixedIcons.js +23 -0
- package/dist/native/components/Icon/FixedIcons.js.map +1 -0
- package/dist/native/components/Icon/FixedIcons.native.d.ts +17 -0
- package/dist/native/components/Icon/FixedIcons.native.js +30 -0
- package/dist/native/components/Icon/FixedIcons.native.js.map +1 -0
- package/dist/native/components/Icon/Icon.d.ts +2 -12
- package/dist/native/components/Icon/Icon.frame.d.ts +14 -0
- package/dist/native/components/Icon/Icon.frame.js +17 -0
- package/dist/native/components/Icon/Icon.frame.js.map +1 -0
- package/dist/native/components/Icon/Icon.js +11 -23
- package/dist/native/components/Icon/Icon.js.map +1 -1
- package/dist/native/components/Loader/Loader.js +1 -1
- package/dist/native/components/Loader/Loader.js.map +1 -1
- package/dist/native/components/Modal/Modal/Modal.props.d.ts +3 -0
- package/dist/native/components/Modal/Modal/Modal.view.js +45 -14
- package/dist/native/components/Modal/Modal/Modal.view.js.map +1 -1
- package/dist/native/components/Modal/Modal/Modal.view.native.js +2 -2
- package/dist/native/components/Modal/Modal/Modal.view.native.js.map +1 -1
- package/dist/native/components/NavigationMenu/NavigationMenu.js +1 -1
- package/dist/native/components/NavigationMenu/NavigationMenu.js.map +1 -1
- package/dist/native/components/PageHeader/PageHeader.js +1 -1
- package/dist/native/components/PageHeader/PageHeader.js.map +1 -1
- package/dist/native/components/ProgressBar/ProgressBar.js +1 -1
- package/dist/native/components/ProgressBar/ProgressBar.js.map +1 -1
- package/dist/native/components/Separator/Separator.js +1 -1
- package/dist/native/components/Separator/Separator.js.map +1 -1
- package/dist/native/components/Slider/Slider.js +1 -1
- package/dist/native/components/Slider/Slider.js.map +1 -1
- package/dist/native/components/StatePanel/StatePanel.js +1 -1
- package/dist/native/components/StatePanel/StatePanel.js.map +1 -1
- package/dist/native/components/StatusIndicator/StatusIndicator.js +1 -1
- package/dist/native/components/StatusIndicator/StatusIndicator.js.map +1 -1
- package/dist/native/components/Table/Table.js +1 -1
- package/dist/native/components/Table/Table.js.map +1 -1
- package/dist/native/components/Tabs/Tabs/Tabs.view.js +1 -1
- package/dist/native/components/Tabs/Tabs/Tabs.view.js.map +1 -1
- package/dist/native/components/Tabs/Tabs/Tabs.view.native.js +1 -1
- package/dist/native/components/Tabs/Tabs/Tabs.view.native.js.map +1 -1
- package/dist/native/components/Tabs/Tabs.js +1 -1
- package/dist/native/components/Tabs/Tabs.js.map +1 -1
- package/dist/native/components/pilot/alert.d.ts +2 -0
- package/dist/native/components/pilot/alert.js +2 -0
- package/dist/native/components/pilot/alert.js.map +1 -0
- package/dist/native/components/pilot/avatar.d.ts +2 -0
- package/dist/native/components/pilot/avatar.js +2 -0
- package/dist/native/components/pilot/avatar.js.map +1 -0
- package/dist/native/components/pilot/blocks/SettingsPanel.d.ts +8 -0
- package/dist/native/components/pilot/blocks/SettingsPanel.js +24 -0
- package/dist/native/components/pilot/blocks/SettingsPanel.js.map +1 -0
- package/dist/native/components/pilot/blocks/SignIn.d.ts +8 -0
- package/dist/native/components/pilot/blocks/SignIn.js +55 -0
- package/dist/native/components/pilot/blocks/SignIn.js.map +1 -0
- package/dist/native/components/pilot/button.d.ts +1 -0
- package/dist/native/components/pilot/button.js +2 -0
- package/dist/native/components/pilot/button.js.map +1 -0
- package/dist/native/components/pilot/card.d.ts +2 -0
- package/dist/native/components/pilot/card.js +2 -0
- package/dist/native/components/pilot/card.js.map +1 -0
- package/dist/native/components/pilot/checkbox.d.ts +2 -0
- package/dist/native/components/pilot/checkbox.js +2 -0
- package/dist/native/components/pilot/checkbox.js.map +1 -0
- package/dist/native/components/pilot/modal.d.ts +2 -0
- package/dist/native/components/pilot/modal.js +2 -0
- package/dist/native/components/pilot/modal.js.map +1 -0
- package/dist/native/components/pilot/select.d.ts +2 -0
- package/dist/native/components/pilot/select.js +2 -0
- package/dist/native/components/pilot/select.js.map +1 -0
- package/dist/native/components/pilot/settings-panel.d.ts +1 -0
- package/dist/native/components/pilot/settings-panel.js +2 -0
- package/dist/native/components/pilot/settings-panel.js.map +1 -0
- package/dist/native/components/pilot/sign-in.d.ts +1 -0
- package/dist/native/components/pilot/sign-in.js +2 -0
- package/dist/native/components/pilot/sign-in.js.map +1 -0
- package/dist/native/components/pilot/switch.d.ts +2 -0
- package/dist/native/components/pilot/switch.js +2 -0
- package/dist/native/components/pilot/switch.js.map +1 -0
- package/dist/native/components/pilot/tabs.d.ts +2 -0
- package/dist/native/components/pilot/tabs.js +2 -0
- package/dist/native/components/pilot/tabs.js.map +1 -0
- package/dist/native/components/pilot/text-field.d.ts +2 -0
- package/dist/native/components/pilot/text-field.js +2 -0
- package/dist/native/components/pilot/text-field.js.map +1 -0
- package/dist/native/design-system/DesignSystemProvider.d.ts +4 -24
- package/dist/native/design-system/DesignSystemProvider.js +5 -53
- package/dist/native/design-system/DesignSystemProvider.js.map +1 -1
- package/dist/native/design-system/theme.d.ts +28 -0
- package/dist/native/design-system/theme.js +54 -0
- package/dist/native/design-system/theme.js.map +1 -0
- package/dist/native/design-system/types.d.ts +8 -2
- package/dist/presets.cjs.js +2 -0
- package/dist/presets.cjs.js.map +1 -0
- package/dist/presets.esm.d.mts +1 -0
- package/dist/presets.esm.mjs +10816 -0
- package/dist/presets.esm.mjs.map +1 -0
- package/dist/registry/alert.json +89 -0
- package/dist/registry/avatar.json +78 -0
- package/dist/registry/button.json +145 -0
- package/dist/registry/card.json +78 -0
- package/dist/registry/checkbox.json +131 -0
- package/dist/registry/modal.json +111 -0
- package/dist/registry/registry.json +1207 -0
- package/dist/registry/select.json +246 -0
- package/dist/registry/settings-panel.json +51 -0
- package/dist/registry/sign-in.json +52 -0
- package/dist/registry/switch.json +113 -0
- package/dist/registry/tabs.json +83 -0
- package/dist/registry/text-field.json +206 -0
- package/dist/router.cjs.js +2 -0
- package/dist/router.cjs.js.map +1 -0
- package/dist/router.esm.d.mts +1 -0
- package/dist/router.esm.mjs +11 -0
- package/dist/router.esm.mjs.map +1 -0
- package/dist/select.cjs.js +2 -0
- package/dist/select.cjs.js.map +1 -0
- package/dist/select.esm.d.mts +1 -0
- package/dist/select.esm.mjs +5 -0
- package/dist/select.esm.mjs.map +1 -0
- package/dist/settings-panel.cjs.js +2 -0
- package/dist/settings-panel.cjs.js.map +1 -0
- package/dist/settings-panel.esm.d.mts +1 -0
- package/dist/settings-panel.esm.mjs +43 -0
- package/dist/settings-panel.esm.mjs.map +1 -0
- package/dist/sign-in.cjs.js +2 -0
- package/dist/sign-in.cjs.js.map +1 -0
- package/dist/sign-in.esm.d.mts +1 -0
- package/dist/sign-in.esm.mjs +83 -0
- package/dist/sign-in.esm.mjs.map +1 -0
- package/dist/switch.cjs.js +2 -0
- package/dist/switch.cjs.js.map +1 -0
- package/dist/switch.esm.d.mts +1 -0
- package/dist/switch.esm.mjs +5 -0
- package/dist/switch.esm.mjs.map +1 -0
- package/dist/tabs.cjs.js +2 -0
- package/dist/tabs.cjs.js.map +1 -0
- package/dist/tabs.esm.d.mts +1 -0
- package/dist/tabs.esm.mjs +5 -0
- package/dist/tabs.esm.mjs.map +1 -0
- package/dist/text-field.cjs.js +2 -0
- package/dist/text-field.cjs.js.map +1 -0
- package/dist/text-field.esm.d.mts +1 -0
- package/dist/text-field.esm.mjs +5 -0
- package/dist/text-field.esm.mjs.map +1 -0
- package/dist/theme.cjs.js +2 -0
- package/dist/theme.cjs.js.map +1 -0
- package/dist/theme.esm.d.mts +1 -0
- package/dist/theme.esm.mjs +116 -0
- package/dist/theme.esm.mjs.map +1 -0
- package/dist/types/components/Accordion/Accordion/Accordion.props.d.ts +50 -0
- package/dist/types/components/Accordion/Accordion/Accordion.state.d.ts +9 -0
- package/dist/types/components/Accordion/Accordion/Accordion.style.d.ts +6 -0
- package/dist/types/components/Accordion/Accordion/Accordion.type.d.ts +20 -0
- package/dist/types/components/Accordion/Accordion/Accordion.view.d.ts +32 -0
- package/dist/types/components/Accordion/Accordion.d.ts +2 -0
- package/dist/types/components/ActionSheet/ActionSheet/ActionSheet.props.d.ts +36 -0
- package/dist/types/components/ActionSheet/ActionSheet/ActionSheet.state.d.ts +8 -0
- package/dist/types/components/ActionSheet/ActionSheet/ActionSheet.style.d.ts +17 -0
- package/dist/types/components/ActionSheet/ActionSheet/ActionSheet.type.d.ts +37 -0
- package/dist/types/components/ActionSheet/ActionSheet/ActionSheet.view.d.ts +4 -0
- package/dist/types/components/ActionSheet/ActionSheet.d.ts +3 -0
- package/dist/types/components/ActionSheet/index.d.ts +3 -0
- package/dist/types/components/Alert/Alert/Alert.props.d.ts +14 -0
- package/dist/types/components/Alert/Alert/Alert.state.d.ts +5 -0
- package/dist/types/components/Alert/Alert/Alert.style.d.ts +18 -0
- package/dist/types/components/Alert/Alert/Alert.type.d.ts +8 -0
- package/dist/types/components/Alert/Alert/Alert.view.d.ts +6 -0
- package/dist/types/components/Alert/Alert.d.ts +3 -0
- package/dist/types/components/AppRoot/AppRoot.d.ts +17 -0
- package/dist/types/components/AppRoot/AppRoot.types.d.ts +22 -0
- package/dist/types/components/AppRoot/index.d.ts +2 -0
- package/dist/types/components/AspectRatio/AspectRatio/AspectRatio.props.d.ts +9 -0
- package/dist/types/components/AspectRatio/AspectRatio/AspectRatio.view.d.ts +3 -0
- package/dist/types/components/AspectRatio/AspectRatio.d.ts +3 -0
- package/dist/types/components/AttachmentGroup/AttachmentGroup/AttachmentGroup.d.ts +18 -0
- package/dist/types/components/AttachmentGroup/AttachmentGroup.d.ts +2 -0
- package/dist/types/components/AudioInput/AudioInput/AudioInput.props.d.ts +18 -0
- package/dist/types/components/AudioInput/AudioInput/AudioInput.state.d.ts +15 -0
- package/dist/types/components/AudioInput/AudioInput/AudioInput.view.d.ts +4 -0
- package/dist/types/components/AudioInput/AudioInput.d.ts +4 -0
- package/dist/types/components/AudioInput/AudioWaveform/AudioWaveform.d.ts +3 -0
- package/dist/types/components/AudioInput/AudioWaveform/AudioWaveform.props.d.ts +9 -0
- package/dist/types/components/AudioInput/AudioWaveform/AudioWaveform.view.d.ts +4 -0
- package/dist/types/components/AudioInput/useAudioRecording.d.ts +13 -0
- package/dist/types/components/Avatar/Avatar/Avatar.props.d.ts +14 -0
- package/dist/types/components/Avatar/Avatar/Avatar.state.d.ts +4 -0
- package/dist/types/components/Avatar/Avatar/Avatar.style.d.ts +14 -0
- package/dist/types/components/Avatar/Avatar/Avatar.type.d.ts +7 -0
- package/dist/types/components/Avatar/Avatar/Avatar.view.d.ts +3 -0
- package/dist/types/components/Avatar/Avatar.d.ts +3 -0
- package/dist/types/components/Background/Background/Background.props.d.ts +97 -0
- package/dist/types/components/Background/Background/Background.style.d.ts +24 -0
- package/dist/types/components/Background/Background/Background.type.d.ts +28 -0
- package/dist/types/components/Background/Background/Background.view.d.ts +18 -0
- package/dist/types/components/Background/Background.d.ts +15 -0
- package/dist/types/components/Background/index.d.ts +3 -0
- package/dist/types/components/Badge/Badge/Badge.props.d.ts +23 -0
- package/dist/types/components/Badge/Badge/Badge.style.d.ts +41 -0
- package/dist/types/components/Badge/Badge/Badge.type.d.ts +13 -0
- package/dist/types/components/Badge/Badge/Badge.view.d.ts +7 -0
- package/dist/types/components/Badge/Badge.d.ts +3 -0
- package/dist/types/components/BlockEditor/BlockEditor/BlockEditor.content.d.ts +19 -0
- package/dist/types/components/BlockEditor/BlockEditor/BlockEditor.controls.d.ts +15 -0
- package/dist/types/components/BlockEditor/BlockEditor/BlockEditor.dom.d.ts +9 -0
- package/dist/types/components/BlockEditor/BlockEditor/BlockEditor.keyboard.d.ts +16 -0
- package/dist/types/components/BlockEditor/BlockEditor/BlockEditor.model.d.ts +58 -0
- package/dist/types/components/BlockEditor/BlockEditor/BlockEditor.navigation.d.ts +6 -0
- package/dist/types/components/BlockEditor/BlockEditor/BlockEditor.props.d.ts +105 -0
- package/dist/types/components/BlockEditor/BlockEditor/BlockEditor.selection.d.ts +13 -0
- package/dist/types/components/BlockEditor/BlockEditor/BlockEditor.state.d.ts +149 -0
- package/dist/types/components/BlockEditor/BlockEditor/BlockEditor.transactions.d.ts +8 -0
- package/dist/types/components/BlockEditor/BlockEditor/BlockEditor.upload.d.ts +6 -0
- package/dist/types/components/BlockEditor/BlockEditor/BlockEditor.view.d.ts +6 -0
- package/dist/types/components/BlockEditor/BlockEditor.d.ts +3 -0
- package/dist/types/components/Button/Button/Button.element.d.ts +1 -0
- package/dist/types/components/Button/Button/Button.props.d.ts +50 -0
- package/dist/types/components/Button/Button/Button.state.d.ts +5 -0
- package/dist/types/components/Button/Button/Button.style.d.ts +37 -0
- package/dist/types/components/Button/Button/Button.type.d.ts +9 -0
- package/dist/types/components/Button/Button/Button.view.d.ts +7 -0
- package/dist/types/components/Button/Button.core.d.ts +4 -0
- package/dist/types/components/Button/Button.d.ts +1 -0
- package/dist/types/components/Button/Button.pilot.d.ts +2 -0
- package/dist/types/components/Card/Card/Card.context.d.ts +6 -0
- package/dist/types/components/Card/Card/Card.props.d.ts +30 -0
- package/dist/types/components/Card/Card/Card.state.d.ts +4 -0
- package/dist/types/components/Card/Card/Card.style.d.ts +6 -0
- package/dist/types/components/Card/Card/Card.type.d.ts +10 -0
- package/dist/types/components/Card/Card/Card.view.d.ts +6 -0
- package/dist/types/components/Card/Card.d.ts +2 -0
- package/dist/types/components/Carousel/Carousel/Carousel.context.d.ts +3 -0
- package/dist/types/components/Carousel/Carousel/Carousel.props.d.ts +51 -0
- package/dist/types/components/Carousel/Carousel/Carousel.state.d.ts +29 -0
- package/dist/types/components/Carousel/Carousel/Carousel.style.d.ts +6 -0
- package/dist/types/components/Carousel/Carousel/Carousel.type.d.ts +32 -0
- package/dist/types/components/Carousel/Carousel/Carousel.view.d.ts +8 -0
- package/dist/types/components/Carousel/Carousel.d.ts +2 -0
- package/dist/types/components/Chart/Chart/BarChart.d.ts +15 -0
- package/dist/types/components/Chart/Chart/Chart.props.d.ts +28 -0
- package/dist/types/components/Chart/Chart/Chart.state.d.ts +40 -0
- package/dist/types/components/Chart/Chart/Chart.style.d.ts +20 -0
- package/dist/types/components/Chart/Chart/Chart.type.d.ts +36 -0
- package/dist/types/components/Chart/Chart/Chart.view.d.ts +3 -0
- package/dist/types/components/Chart/Chart/ChartColors.d.ts +13 -0
- package/dist/types/components/Chart/Chart/ChartTooltip.d.ts +14 -0
- package/dist/types/components/Chart/Chart/LineChart.d.ts +15 -0
- package/dist/types/components/Chart/Chart/PieChart.d.ts +15 -0
- package/dist/types/components/Chart/Chart.d.ts +3 -0
- package/dist/types/components/ChatInput/AttachmentGroup.d.ts +18 -0
- package/dist/types/components/ChatInput/AudioRecorder.d.ts +10 -0
- package/dist/types/components/ChatInput/ChatInput/ChatInput.props.d.ts +374 -0
- package/dist/types/components/ChatInput/ChatInput/ChatInput.state.d.ts +45 -0
- package/dist/types/components/ChatInput/ChatInput/ChatInput.style.d.ts +164 -0
- package/dist/types/components/ChatInput/ChatInput/ChatInput.type.d.ts +57 -0
- package/dist/types/components/ChatInput/ChatInput/ChatInput.view.d.ts +4 -0
- package/dist/types/components/ChatInput/ChatInput.d.ts +3 -0
- package/dist/types/components/ChatInput/ChatUploader.d.ts +20 -0
- package/dist/types/components/ChatInput/EditableInput.d.ts +44 -0
- package/dist/types/components/ChatInput/GuideTip.d.ts +12 -0
- package/dist/types/components/ChatInput/MessageInput.d.ts +36 -0
- package/dist/types/components/ChatInput/PromptExamples.d.ts +13 -0
- package/dist/types/components/ChatInput/index.d.ts +7 -0
- package/dist/types/components/ChatWidget/ChatWidget/ChatWidget.props.d.ts +32 -0
- package/dist/types/components/ChatWidget/ChatWidget/ChatWidget.state.d.ts +8 -0
- package/dist/types/components/ChatWidget/ChatWidget/ChatWidget.style.d.ts +81 -0
- package/dist/types/components/ChatWidget/ChatWidget/ChatWidget.type.d.ts +47 -0
- package/dist/types/components/ChatWidget/ChatWidget/ChatWidget.view.d.ts +4 -0
- package/dist/types/components/ChatWidget/ChatWidget.d.ts +4 -0
- package/dist/types/components/ChatWidget/Widget/ChatWidgetWidget.d.ts +14 -0
- package/dist/types/components/ChatWidget/Widget/index.d.ts +2 -0
- package/dist/types/components/ChatWidget/Widget/useContextSelector.d.ts +22 -0
- package/dist/types/components/ColorPicker/ColorPicker/ColorPicker.props.d.ts +44 -0
- package/dist/types/components/ColorPicker/ColorPicker/ColorPicker.state.d.ts +14 -0
- package/dist/types/components/ColorPicker/ColorPicker/ColorPicker.style.d.ts +19 -0
- package/dist/types/components/ColorPicker/ColorPicker/ColorPicker.type.d.ts +34 -0
- package/dist/types/components/ColorPicker/ColorPicker/ColorPicker.view.d.ts +4 -0
- package/dist/types/components/ColorPicker/ColorPicker.d.ts +3 -0
- package/dist/types/components/Command/Command/Command.props.d.ts +66 -0
- package/dist/types/components/Command/Command/Command.state.d.ts +17 -0
- package/dist/types/components/Command/Command/Command.style.d.ts +19 -0
- package/dist/types/components/Command/Command/Command.type.d.ts +42 -0
- package/dist/types/components/Command/Command/Command.view.d.ts +31 -0
- package/dist/types/components/Command/Command/CommandOverlay.d.ts +10 -0
- package/dist/types/components/Command/Command/CommandTextInput.d.ts +8 -0
- package/dist/types/components/Command/Command.d.ts +2 -0
- package/dist/types/components/Command/index.d.ts +1 -0
- package/dist/types/components/ContextMenu/ContextMenu/ContextMenu.props.d.ts +72 -0
- package/dist/types/components/ContextMenu/ContextMenu/ContextMenu.state.d.ts +27 -0
- package/dist/types/components/ContextMenu/ContextMenu/ContextMenu.style.d.ts +16 -0
- package/dist/types/components/ContextMenu/ContextMenu/ContextMenu.type.d.ts +52 -0
- package/dist/types/components/ContextMenu/ContextMenu/ContextMenu.view.d.ts +23 -0
- package/dist/types/components/ContextMenu/ContextMenu.d.ts +2 -0
- package/dist/types/components/CookieConsent/CookieConsent/CookieConsent.props.d.ts +15 -0
- package/dist/types/components/CookieConsent/CookieConsent/CookieConsent.state.d.ts +7 -0
- package/dist/types/components/CookieConsent/CookieConsent/CookieConsent.style.d.ts +65 -0
- package/dist/types/components/CookieConsent/CookieConsent/CookieConsent.type.d.ts +10 -0
- package/dist/types/components/CookieConsent/CookieConsent/CookieConsent.view.d.ts +3 -0
- package/dist/types/components/CookieConsent/CookieConsent.d.ts +3 -0
- package/dist/types/components/DataState/DataState/DataState.props.d.ts +14 -0
- package/dist/types/components/DataState/DataState/DataState.state.d.ts +13 -0
- package/dist/types/components/DataState/DataState/DataState.type.d.ts +33 -0
- package/dist/types/components/DataState/DataState/DataState.view.d.ts +6 -0
- package/dist/types/components/DataState/DataState.d.ts +3 -0
- package/dist/types/components/DragAndDrop/DragAndDrop/DragAndDrop.props.d.ts +18 -0
- package/dist/types/components/DragAndDrop/DragAndDrop/DragAndDrop.state.d.ts +8 -0
- package/dist/types/components/DragAndDrop/DragAndDrop/DragAndDrop.view.d.ts +3 -0
- package/dist/types/components/DragAndDrop/DragAndDrop.d.ts +4 -0
- package/dist/types/components/Drawer/Drawer/Drawer.layout.d.ts +3 -0
- package/dist/types/components/Drawer/Drawer/Drawer.props.d.ts +51 -0
- package/dist/types/components/Drawer/Drawer/Drawer.store.d.ts +19 -0
- package/dist/types/components/Drawer/Drawer/Drawer.style.d.ts +4 -0
- package/dist/types/components/Drawer/Drawer/Drawer.type.d.ts +3 -0
- package/dist/types/components/Drawer/Drawer/Drawer.view.d.ts +7 -0
- package/dist/types/components/Drawer/Drawer.d.ts +3 -0
- package/dist/types/components/DropZone/DropZone/DropZone.props.d.ts +24 -0
- package/dist/types/components/DropZone/DropZone/DropZone.state.d.ts +2 -0
- package/dist/types/components/DropZone/DropZone/DropZone.view.d.ts +3 -0
- package/dist/types/components/DropZone/DropZone.d.ts +3 -0
- package/dist/types/components/DropdownMenu/DropdownMenu/DropdownMenu.props.d.ts +51 -0
- package/dist/types/components/DropdownMenu/DropdownMenu/DropdownMenu.state.d.ts +6 -0
- package/dist/types/components/DropdownMenu/DropdownMenu/DropdownMenu.style.d.ts +17 -0
- package/dist/types/components/DropdownMenu/DropdownMenu/DropdownMenu.type.d.ts +35 -0
- package/dist/types/components/DropdownMenu/DropdownMenu/DropdownMenu.view.d.ts +20 -0
- package/dist/types/components/DropdownMenu/DropdownMenu.d.ts +2 -0
- package/dist/types/components/EditComponent/EditComponent.d.ts +14 -0
- package/dist/types/components/EditComponent/EditPanel.d.ts +7 -0
- package/dist/types/components/EditComponent/EditToolbar.d.ts +16 -0
- package/dist/types/components/EditComponent/index.d.ts +3 -0
- package/dist/types/components/EmojiPicker/EmojiPicker/EmojiPicker.data.d.ts +3 -0
- package/dist/types/components/EmojiPicker/EmojiPicker/EmojiPicker.props.d.ts +75 -0
- package/dist/types/components/EmojiPicker/EmojiPicker/EmojiPicker.state.d.ts +38 -0
- package/dist/types/components/EmojiPicker/EmojiPicker/EmojiPicker.style.d.ts +18 -0
- package/dist/types/components/EmojiPicker/EmojiPicker/EmojiPicker.type.d.ts +28 -0
- package/dist/types/components/EmojiPicker/EmojiPicker/EmojiPicker.view.d.ts +4 -0
- package/dist/types/components/EmojiPicker/EmojiPicker.d.ts +3 -0
- package/dist/types/components/File/File.d.ts +14 -0
- package/dist/types/components/Form/Checkbox/Checkbox/Checkbox.props.d.ts +30 -0
- package/dist/types/components/Form/Checkbox/Checkbox/Checkbox.state.d.ts +8 -0
- package/dist/types/components/Form/Checkbox/Checkbox/Checkbox.style.d.ts +79 -0
- package/dist/types/components/Form/Checkbox/Checkbox/Checkbox.type.d.ts +8 -0
- package/dist/types/components/Form/Checkbox/Checkbox/Checkbox.view.d.ts +4 -0
- package/dist/types/components/Form/Checkbox/Checkbox.d.ts +6 -0
- package/dist/types/components/Form/ColorInput/ColorInput/ColorInput.props.d.ts +54 -0
- package/dist/types/components/Form/ColorInput/ColorInput/ColorInput.state.d.ts +19 -0
- package/dist/types/components/Form/ColorInput/ColorInput/ColorInput.style.d.ts +16 -0
- package/dist/types/components/Form/ColorInput/ColorInput/ColorInput.type.d.ts +37 -0
- package/dist/types/components/Form/ColorInput/ColorInput/ColorInput.view.d.ts +4 -0
- package/dist/types/components/Form/ColorInput/ColorInput/colorFormat.d.ts +7 -0
- package/dist/types/components/Form/ColorInput/ColorInput.d.ts +3 -0
- package/dist/types/components/Form/ComboBox/ComboBox/ComboBox.context.d.ts +8 -0
- package/dist/types/components/Form/ComboBox/ComboBox/ComboBox.props.d.ts +46 -0
- package/dist/types/components/Form/ComboBox/ComboBox/ComboBox.provider.d.ts +2 -0
- package/dist/types/components/Form/ComboBox/ComboBox/ComboBox.state.d.ts +2 -0
- package/dist/types/components/Form/ComboBox/ComboBox/ComboBox.style.d.ts +105 -0
- package/dist/types/components/Form/ComboBox/ComboBox/ComboBox.type.d.ts +11 -0
- package/dist/types/components/Form/ComboBox/ComboBox/ComboBox.view.d.ts +4 -0
- package/dist/types/components/Form/ComboBox/ComboBox.d.ts +3 -0
- package/dist/types/components/Form/CountryPicker/CountryPicker/CountryPicker.props.d.ts +56 -0
- package/dist/types/components/Form/CountryPicker/CountryPicker/CountryPicker.state.d.ts +15 -0
- package/dist/types/components/Form/CountryPicker/CountryPicker/CountryPicker.style.d.ts +3 -0
- package/dist/types/components/Form/CountryPicker/CountryPicker/CountryPicker.type.d.ts +19 -0
- package/dist/types/components/Form/CountryPicker/CountryPicker/CountryPicker.view.d.ts +5 -0
- package/dist/types/components/Form/CountryPicker/CountryPicker.d.ts +3 -0
- package/dist/types/components/Form/CountryPicker/countries.json.d.ts +1455 -0
- package/dist/types/components/Form/DatePicker/DatePicker/DatePicker.props.d.ts +92 -0
- package/dist/types/components/Form/DatePicker/DatePicker/DatePicker.state.d.ts +10 -0
- package/dist/types/components/Form/DatePicker/DatePicker/DatePicker.style.d.ts +3 -0
- package/dist/types/components/Form/DatePicker/DatePicker/DatePicker.type.d.ts +12 -0
- package/dist/types/components/Form/DatePicker/DatePicker/DatePicker.view.d.ts +4 -0
- package/dist/types/components/Form/DatePicker/DatePicker.d.ts +6 -0
- package/dist/types/components/Form/Form.d.ts +12 -0
- package/dist/types/components/Form/Label/Label/Label.props.d.ts +17 -0
- package/dist/types/components/Form/Label/Label/Label.style.d.ts +2 -0
- package/dist/types/components/Form/Label/Label/Label.type.d.ts +3 -0
- package/dist/types/components/Form/Label/Label/Label.view.d.ts +4 -0
- package/dist/types/components/Form/Label/Label.d.ts +3 -0
- package/dist/types/components/Form/Password/Password/Password.props.d.ts +37 -0
- package/dist/types/components/Form/Password/Password/Password.state.d.ts +7 -0
- package/dist/types/components/Form/Password/Password/Password.type.d.ts +10 -0
- package/dist/types/components/Form/Password/Password.d.ts +6 -0
- package/dist/types/components/Form/Password/example/Default.d.ts +2 -0
- package/dist/types/components/Form/Password/example/DisabledInput.d.ts +2 -0
- package/dist/types/components/Form/Password/example/ErrorInput.d.ts +2 -0
- package/dist/types/components/Form/Password/example/HelperText.d.ts +2 -0
- package/dist/types/components/Form/Radio/Radio/Radio.props.d.ts +29 -0
- package/dist/types/components/Form/Radio/Radio/Radio.state.d.ts +8 -0
- package/dist/types/components/Form/Radio/Radio/Radio.style.d.ts +68 -0
- package/dist/types/components/Form/Radio/Radio/Radio.type.d.ts +8 -0
- package/dist/types/components/Form/Radio/Radio/Radio.view.d.ts +4 -0
- package/dist/types/components/Form/Radio/Radio.d.ts +3 -0
- package/dist/types/components/Form/Radio/RadioGroup/RadioGroup.props.d.ts +22 -0
- package/dist/types/components/Form/Radio/RadioGroup/RadioGroup.state.d.ts +5 -0
- package/dist/types/components/Form/Radio/RadioGroup/RadioGroup.type.d.ts +7 -0
- package/dist/types/components/Form/Radio/RadioGroup/RadioGroup.view.d.ts +4 -0
- package/dist/types/components/Form/Radio/RadioGroup.d.ts +3 -0
- package/dist/types/components/Form/Radio/index.d.ts +2 -0
- package/dist/types/components/Form/Select/Select/Select.props.d.ts +96 -0
- package/dist/types/components/Form/Select/Select/Select.state.d.ts +19 -0
- package/dist/types/components/Form/Select/Select/Select.style.d.ts +80 -0
- package/dist/types/components/Form/Select/Select/Select.type.d.ts +19 -0
- package/dist/types/components/Form/Select/Select/Select.view.d.ts +10 -0
- package/dist/types/components/Form/Select/Select.d.ts +3 -0
- package/dist/types/components/Form/Selector/Selector/Selector.props.d.ts +66 -0
- package/dist/types/components/Form/Selector/Selector/Selector.state.d.ts +17 -0
- package/dist/types/components/Form/Selector/Selector/Selector.style.d.ts +6 -0
- package/dist/types/components/Form/Selector/Selector/Selector.type.d.ts +19 -0
- package/dist/types/components/Form/Selector/Selector/Selector.view.d.ts +4 -0
- package/dist/types/components/Form/Selector/Selector.d.ts +3 -0
- package/dist/types/components/Form/Switch/Switch/Switch.props.d.ts +27 -0
- package/dist/types/components/Form/Switch/Switch/Switch.state.d.ts +10 -0
- package/dist/types/components/Form/Switch/Switch/Switch.style.d.ts +66 -0
- package/dist/types/components/Form/Switch/Switch/Switch.type.d.ts +7 -0
- package/dist/types/components/Form/Switch/Switch/Switch.view.d.ts +4 -0
- package/dist/types/components/Form/Switch/Switch.d.ts +3 -0
- package/dist/types/components/Form/TagInput/TagInput/TagInput.props.d.ts +54 -0
- package/dist/types/components/Form/TagInput/TagInput/TagInput.state.d.ts +19 -0
- package/dist/types/components/Form/TagInput/TagInput/TagInput.type.d.ts +25 -0
- package/dist/types/components/Form/TagInput/TagInput/TagInput.view.d.ts +4 -0
- package/dist/types/components/Form/TagInput/TagInput/index.d.ts +4 -0
- package/dist/types/components/Form/TagInput/TagInput.d.ts +3 -0
- package/dist/types/components/Form/TagInput/index.d.ts +2 -0
- package/dist/types/components/Form/TextArea/TextArea/TextArea.props.d.ts +62 -0
- package/dist/types/components/Form/TextArea/TextArea/TextArea.state.d.ts +11 -0
- package/dist/types/components/Form/TextArea/TextArea/TextArea.type.d.ts +13 -0
- package/dist/types/components/Form/TextArea/TextArea/TextArea.view.d.ts +4 -0
- package/dist/types/components/Form/TextArea/TextArea.d.ts +3 -0
- package/dist/types/components/Form/TextField/TextField/TextField.props.d.ts +69 -0
- package/dist/types/components/Form/TextField/TextField/TextField.state.d.ts +11 -0
- package/dist/types/components/Form/TextField/TextField/TextField.type.d.ts +12 -0
- package/dist/types/components/Form/TextField/TextField/TextField.view.d.ts +4 -0
- package/dist/types/components/Form/TextField/TextField.d.ts +3 -0
- package/dist/types/components/Formik/AttachmentPreview.d.ts +19 -0
- package/dist/types/components/Formik/Formik.ChatInput.d.ts +12 -0
- package/dist/types/components/Formik/Formik.Checkbox.d.ts +6 -0
- package/dist/types/components/Formik/Formik.ColorInput.d.ts +6 -0
- package/dist/types/components/Formik/Formik.ComboBox.d.ts +6 -0
- package/dist/types/components/Formik/Formik.CountryPicker.d.ts +6 -0
- package/dist/types/components/Formik/Formik.DatePicker.d.ts +6 -0
- package/dist/types/components/Formik/Formik.EmojiPicker.d.ts +6 -0
- package/dist/types/components/Formik/Formik.Form.d.ts +20 -0
- package/dist/types/components/Formik/Formik.Hook.d.ts +5 -0
- package/dist/types/components/Formik/Formik.IconPicker.d.ts +6 -0
- package/dist/types/components/Formik/Formik.OTPInput.d.ts +8 -0
- package/dist/types/components/Formik/Formik.Password.d.ts +6 -0
- package/dist/types/components/Formik/Formik.Radio.d.ts +6 -0
- package/dist/types/components/Formik/Formik.Select.d.ts +6 -0
- package/dist/types/components/Formik/Formik.Selector.d.ts +6 -0
- package/dist/types/components/Formik/Formik.Slider.d.ts +7 -0
- package/dist/types/components/Formik/Formik.Switch.d.ts +3 -0
- package/dist/types/components/Formik/Formik.TagInput.d.ts +9 -0
- package/dist/types/components/Formik/Formik.TextArea.d.ts +6 -0
- package/dist/types/components/Formik/Formik.TextField.d.ts +6 -0
- package/dist/types/components/Formik/Formik.Toggle.d.ts +6 -0
- package/dist/types/components/Formik/Formik.ToggleGroup.d.ts +6 -0
- package/dist/types/components/Formik/Formik.Uploader.d.ts +38 -0
- package/dist/types/components/Formik/index.d.ts +23 -0
- package/dist/types/components/Gradient/Gradient/Gradient.props.d.ts +15 -0
- package/dist/types/components/Gradient/Gradient/Gradient.style.d.ts +55 -0
- package/dist/types/components/Gradient/Gradient/Gradient.type.d.ts +13 -0
- package/dist/types/components/Gradient/Gradient/Gradient.view.d.ts +3 -0
- package/dist/types/components/Gradient/Gradient.d.ts +3 -0
- package/dist/types/components/Gradient/index.d.ts +1 -0
- package/dist/types/components/HoverCard/HoverCard/HoverCard.props.d.ts +33 -0
- package/dist/types/components/HoverCard/HoverCard/HoverCard.state.d.ts +11 -0
- package/dist/types/components/HoverCard/HoverCard/HoverCard.style.d.ts +5 -0
- package/dist/types/components/HoverCard/HoverCard/HoverCard.type.d.ts +12 -0
- package/dist/types/components/HoverCard/HoverCard/HoverCard.view.d.ts +10 -0
- package/dist/types/components/HoverCard/HoverCard.d.ts +2 -0
- package/dist/types/components/Icon/FixedIcons.d.ts +10 -0
- package/dist/types/components/Icon/Icon.d.ts +100 -0
- package/dist/types/components/Icon/Icon.frame.d.ts +14 -0
- package/dist/types/components/IconPicker/IconPicker/IconPicker.constants.d.ts +2 -0
- package/dist/types/components/IconPicker/IconPicker/IconPicker.props.d.ts +37 -0
- package/dist/types/components/IconPicker/IconPicker/IconPicker.state.d.ts +14 -0
- package/dist/types/components/IconPicker/IconPicker/IconPicker.style.d.ts +13 -0
- package/dist/types/components/IconPicker/IconPicker/IconPicker.type.d.ts +14 -0
- package/dist/types/components/IconPicker/IconPicker/IconPicker.view.d.ts +4 -0
- package/dist/types/components/IconPicker/IconPicker.d.ts +3 -0
- package/dist/types/components/Input/FieldContainer/FieldContainer/FieldContainer.props.d.ts +27 -0
- package/dist/types/components/Input/FieldContainer/FieldContainer.d.ts +3 -0
- package/dist/types/components/Input/FieldContent/FieldContent/FieldContent.props.d.ts +70 -0
- package/dist/types/components/Input/FieldContent/FieldContent.d.ts +3 -0
- package/dist/types/components/Input/FieldIcons/FieldIcons/FieldIcons.props.d.ts +3 -0
- package/dist/types/components/Input/FieldIcons/FieldIcons.d.ts +3 -0
- package/dist/types/components/Input/FieldLabel/FieldLabel/FieldLabel.props.d.ts +31 -0
- package/dist/types/components/Input/FieldLabel/FieldLabel.d.ts +3 -0
- package/dist/types/components/Input/FieldLayout/FieldLayout/FieldLayout.props.d.ts +25 -0
- package/dist/types/components/Input/FieldLayout/FieldLayout.d.ts +3 -0
- package/dist/types/components/Input/FieldWrapper/FieldWrapper.d.ts +3 -0
- package/dist/types/components/Input/FieldWrapper/FieldWrapper.props.d.ts +3 -0
- package/dist/types/components/Input/HelperText/HelperText.d.ts +3 -0
- package/dist/types/components/Input/HelperText/HelperText.props.d.ts +17 -0
- package/dist/types/components/Input/Input.style.d.ts +18 -0
- package/dist/types/components/Input/Input.type.d.ts +13 -0
- package/dist/types/components/Input/fieldSizes.d.ts +15 -0
- package/dist/types/components/Input/index.d.ts +7 -0
- package/dist/types/components/KeyboardAvoidingView/KeyboardAvoidingView.d.ts +3 -0
- package/dist/types/components/KeyboardAvoidingView/KeyboardAvoidingView.types.d.ts +24 -0
- package/dist/types/components/KeyboardAvoidingView/index.d.ts +2 -0
- package/dist/types/components/Link/Link/Link.props.d.ts +18 -0
- package/dist/types/components/Link/Link/Link.state.d.ts +4 -0
- package/dist/types/components/Link/Link/Link.style.d.ts +11 -0
- package/dist/types/components/Link/Link/Link.type.d.ts +8 -0
- package/dist/types/components/Link/Link/Link.view.d.ts +4 -0
- package/dist/types/components/Link/Link.d.ts +3 -0
- package/dist/types/components/Loader/Loader/Loader.props.d.ts +27 -0
- package/dist/types/components/Loader/Loader/Loader.style.d.ts +4 -0
- package/dist/types/components/Loader/Loader/Loader.type.d.ts +4 -0
- package/dist/types/components/Loader/Loader/Loader.view.d.ts +11 -0
- package/dist/types/components/Loader/Loader.d.ts +3 -0
- package/dist/types/components/Markdown/Markdown/Markdown.content.d.ts +6 -0
- package/dist/types/components/Markdown/Markdown/Markdown.motion.d.ts +1 -0
- package/dist/types/components/Markdown/Markdown/Markdown.props.d.ts +34 -0
- package/dist/types/components/Markdown/Markdown/Markdown.view.d.ts +1 -0
- package/dist/types/components/Markdown/Markdown/useMarkdownTyping.d.ts +6 -0
- package/dist/types/components/Markdown/Markdown.d.ts +3 -0
- package/dist/types/components/MediaPreview.d.ts +14 -0
- package/dist/types/components/Menubar/Menubar/Menubar.props.d.ts +74 -0
- package/dist/types/components/Menubar/Menubar/Menubar.state.d.ts +8 -0
- package/dist/types/components/Menubar/Menubar/Menubar.style.d.ts +19 -0
- package/dist/types/components/Menubar/Menubar/Menubar.type.d.ts +36 -0
- package/dist/types/components/Menubar/Menubar/Menubar.view.d.ts +22 -0
- package/dist/types/components/Menubar/Menubar.d.ts +2 -0
- package/dist/types/components/Menubar/index.d.ts +1 -0
- package/dist/types/components/Message/Message/Message.layout.d.ts +3 -0
- package/dist/types/components/Message/Message/Message.props.d.ts +36 -0
- package/dist/types/components/Message/Message/Message.store.d.ts +5 -0
- package/dist/types/components/Message/Message/Message.style.d.ts +5 -0
- package/dist/types/components/Message/Message/Message.type.d.ts +48 -0
- package/dist/types/components/Message/Message/Message.view.d.ts +3 -0
- package/dist/types/components/Message/Message.d.ts +5 -0
- package/dist/types/components/Modal/Modal/Modal.layout.d.ts +3 -0
- package/dist/types/components/Modal/Modal/Modal.props.d.ts +90 -0
- package/dist/types/components/Modal/Modal/Modal.store.d.ts +19 -0
- package/dist/types/components/Modal/Modal/Modal.style.d.ts +33 -0
- package/dist/types/components/Modal/Modal/Modal.type.d.ts +4 -0
- package/dist/types/components/Modal/Modal/Modal.view.d.ts +21 -0
- package/dist/types/components/Modal/Modal.d.ts +5 -0
- package/dist/types/components/NavigationMenu/NavigationMenu/NavigationMenu.props.d.ts +68 -0
- package/dist/types/components/NavigationMenu/NavigationMenu/NavigationMenu.state.d.ts +8 -0
- package/dist/types/components/NavigationMenu/NavigationMenu/NavigationMenu.style.d.ts +32 -0
- package/dist/types/components/NavigationMenu/NavigationMenu/NavigationMenu.type.d.ts +35 -0
- package/dist/types/components/NavigationMenu/NavigationMenu/NavigationMenu.view.d.ts +25 -0
- package/dist/types/components/NavigationMenu/NavigationMenu.d.ts +2 -0
- package/dist/types/components/OTPInput/OTPInput/OTPInput.props.d.ts +43 -0
- package/dist/types/components/OTPInput/OTPInput/OTPInput.state.d.ts +23 -0
- package/dist/types/components/OTPInput/OTPInput/OTPInput.type.d.ts +9 -0
- package/dist/types/components/OTPInput/OTPInput/OTPInput.view.d.ts +29 -0
- package/dist/types/components/OTPInput/OTPInput/sync-timeouts.d.ts +1 -0
- package/dist/types/components/OTPInput/OTPInput.d.ts +3 -0
- package/dist/types/components/PageHeader/PageHeader/PageHeader.props.d.ts +9 -0
- package/dist/types/components/PageHeader/PageHeader/PageHeader.style.d.ts +4 -0
- package/dist/types/components/PageHeader/PageHeader/PageHeader.type.d.ts +7 -0
- package/dist/types/components/PageHeader/PageHeader/PageHeader.view.d.ts +4 -0
- package/dist/types/components/PageHeader/PageHeader.d.ts +3 -0
- package/dist/types/components/PageLayout/PageLayout.d.ts +3 -0
- package/dist/types/components/PageLayout/PageLayout.types.d.ts +30 -0
- package/dist/types/components/PageLayout/index.d.ts +2 -0
- package/dist/types/components/Pagination/Pagination/Pagination.props.d.ts +19 -0
- package/dist/types/components/Pagination/Pagination/Pagination.state.d.ts +3 -0
- package/dist/types/components/Pagination/Pagination/Pagination.style.d.ts +7 -0
- package/dist/types/components/Pagination/Pagination/Pagination.type.d.ts +17 -0
- package/dist/types/components/Pagination/Pagination/Pagination.view.d.ts +3 -0
- package/dist/types/components/Pagination/Pagination.d.ts +3 -0
- package/dist/types/components/Pagination/index.d.ts +1 -0
- package/dist/types/components/Portal/Portal.d.ts +7 -0
- package/dist/types/components/ProgressBar/ProgressBar/ProgressBar.props.d.ts +24 -0
- package/dist/types/components/ProgressBar/ProgressBar/ProgressBar.view.d.ts +4 -0
- package/dist/types/components/ProgressBar/ProgressBar.d.ts +4 -0
- package/dist/types/components/Resizable/Resizable/Resizable.props.d.ts +52 -0
- package/dist/types/components/Resizable/Resizable/Resizable.state.d.ts +16 -0
- package/dist/types/components/Resizable/Resizable/Resizable.style.d.ts +7 -0
- package/dist/types/components/Resizable/Resizable/Resizable.type.d.ts +44 -0
- package/dist/types/components/Resizable/Resizable/Resizable.view.d.ts +13 -0
- package/dist/types/components/Resizable/Resizable.d.ts +2 -0
- package/dist/types/components/Resizable/index.d.ts +1 -0
- package/dist/types/components/Router/Router.d.ts +3 -0
- package/dist/types/components/Router/Router.match.d.ts +15 -0
- package/dist/types/components/Router/Router.store.d.ts +28 -0
- package/dist/types/components/Router/Router.types.d.ts +16 -0
- package/dist/types/components/Router/index.d.ts +5 -0
- package/dist/types/components/Router/useHistory.d.ts +21 -0
- package/dist/types/components/Separator/Separator/Separator.props.d.ts +12 -0
- package/dist/types/components/Separator/Separator/Separator.style.d.ts +23 -0
- package/dist/types/components/Separator/Separator/Separator.type.d.ts +8 -0
- package/dist/types/components/Separator/Separator/Separator.view.d.ts +3 -0
- package/dist/types/components/Separator/Separator.d.ts +4 -0
- package/dist/types/components/Separator/index.d.ts +1 -0
- package/dist/types/components/ShareButton/ShareButton/ShareButton.props.d.ts +19 -0
- package/dist/types/components/ShareButton/ShareButton/ShareButton.state.d.ts +6 -0
- package/dist/types/components/ShareButton/ShareButton/ShareButton.view.d.ts +4 -0
- package/dist/types/components/ShareButton/ShareButton.d.ts +3 -0
- package/dist/types/components/Sidebar/Sidebar/Sidebar.props.d.ts +54 -0
- package/dist/types/components/Sidebar/Sidebar/Sidebar.state.d.ts +7 -0
- package/dist/types/components/Sidebar/Sidebar/Sidebar.style.d.ts +13 -0
- package/dist/types/components/Sidebar/Sidebar/Sidebar.type.d.ts +32 -0
- package/dist/types/components/Sidebar/Sidebar/Sidebar.view.d.ts +21 -0
- package/dist/types/components/Sidebar/Sidebar.d.ts +2 -0
- package/dist/types/components/Sidebar/index.d.ts +1 -0
- package/dist/types/components/Slider/Slider/Slider.props.d.ts +36 -0
- package/dist/types/components/Slider/Slider/Slider.state.d.ts +14 -0
- package/dist/types/components/Slider/Slider/Slider.style.d.ts +15 -0
- package/dist/types/components/Slider/Slider/Slider.type.d.ts +18 -0
- package/dist/types/components/Slider/Slider/Slider.view.d.ts +3 -0
- package/dist/types/components/Slider/Slider.d.ts +3 -0
- package/dist/types/components/Slider/index.d.ts +1 -0
- package/dist/types/components/SplashScreen/SplashScreen.d.ts +3 -0
- package/dist/types/components/SplashScreen/SplashScreen.store.d.ts +18 -0
- package/dist/types/components/SplashScreen/SplashScreen.types.d.ts +23 -0
- package/dist/types/components/SplashScreen/index.d.ts +3 -0
- package/dist/types/components/StatePanel/StatePanel/StatePanel.props.d.ts +10 -0
- package/dist/types/components/StatePanel/StatePanel/StatePanel.style.d.ts +4 -0
- package/dist/types/components/StatePanel/StatePanel/StatePanel.type.d.ts +8 -0
- package/dist/types/components/StatePanel/StatePanel/StatePanel.view.d.ts +4 -0
- package/dist/types/components/StatePanel/StatePanel.d.ts +3 -0
- package/dist/types/components/StatusIndicator/StatusIndicator/StatusIndicator.props.d.ts +8 -0
- package/dist/types/components/StatusIndicator/StatusIndicator/StatusIndicator.style.d.ts +10 -0
- package/dist/types/components/StatusIndicator/StatusIndicator/StatusIndicator.type.d.ts +7 -0
- package/dist/types/components/StatusIndicator/StatusIndicator/StatusIndicator.view.d.ts +3 -0
- package/dist/types/components/StatusIndicator/StatusIndicator.d.ts +3 -0
- package/dist/types/components/Table/Table/Table.context.d.ts +23 -0
- package/dist/types/components/Table/Table/Table.props.d.ts +24 -0
- package/dist/types/components/Table/Table/Table.state.d.ts +5 -0
- package/dist/types/components/Table/Table/Table.style.d.ts +22 -0
- package/dist/types/components/Table/Table/Table.type.d.ts +19 -0
- package/dist/types/components/Table/Table/Table.view.d.ts +14 -0
- package/dist/types/components/Table/Table/TableScroll.d.ts +8 -0
- package/dist/types/components/Table/Table.d.ts +16 -0
- package/dist/types/components/Tabs/Tabs/TabHeader.d.ts +22 -0
- package/dist/types/components/Tabs/Tabs/Tabs.props.d.ts +114 -0
- package/dist/types/components/Tabs/Tabs/Tabs.state.d.ts +22 -0
- package/dist/types/components/Tabs/Tabs/Tabs.type.d.ts +53 -0
- package/dist/types/components/Tabs/Tabs/Tabs.view.d.ts +12 -0
- package/dist/types/components/Tabs/Tabs.d.ts +10 -0
- package/dist/types/components/TextArea/TextArea.d.ts +17 -0
- package/dist/types/components/Title/Title/SlideEffect.d.ts +16 -0
- package/dist/types/components/Title/Title/Title.props.d.ts +28 -0
- package/dist/types/components/Title/Title/Title.state.d.ts +10 -0
- package/dist/types/components/Title/Title/Title.style.d.ts +29 -0
- package/dist/types/components/Title/Title/Title.type.d.ts +8 -0
- package/dist/types/components/Title/Title/Title.view.d.ts +4 -0
- package/dist/types/components/Title/Title/TypewriterEffect.d.ts +15 -0
- package/dist/types/components/Title/Title.d.ts +3 -0
- package/dist/types/components/Title/index.d.ts +1 -0
- package/dist/types/components/Toast/Toast/Toast.hook.d.ts +10 -0
- package/dist/types/components/Toast/Toast/Toast.props.d.ts +34 -0
- package/dist/types/components/Toast/Toast/Toast.store.d.ts +10 -0
- package/dist/types/components/Toast/Toast/Toast.style.d.ts +17 -0
- package/dist/types/components/Toast/Toast/Toast.type.d.ts +53 -0
- package/dist/types/components/Toast/Toast/Toast.view.d.ts +4 -0
- package/dist/types/components/Toast/Toast.d.ts +23 -0
- package/dist/types/components/Toast/index.d.ts +1 -0
- package/dist/types/components/Toggle/Toggle/Toggle.props.d.ts +17 -0
- package/dist/types/components/Toggle/Toggle/Toggle.state.d.ts +6 -0
- package/dist/types/components/Toggle/Toggle/Toggle.style.d.ts +8 -0
- package/dist/types/components/Toggle/Toggle/Toggle.type.d.ts +2 -0
- package/dist/types/components/Toggle/Toggle/Toggle.view.d.ts +12 -0
- package/dist/types/components/Toggle/Toggle.d.ts +3 -0
- package/dist/types/components/ToggleGroup/ToggleGroup/ToggleGroup.props.d.ts +19 -0
- package/dist/types/components/ToggleGroup/ToggleGroup/ToggleGroup.state.d.ts +4 -0
- package/dist/types/components/ToggleGroup/ToggleGroup/ToggleGroup.style.d.ts +2 -0
- package/dist/types/components/ToggleGroup/ToggleGroup/ToggleGroup.type.d.ts +9 -0
- package/dist/types/components/ToggleGroup/ToggleGroup/ToggleGroup.view.d.ts +3 -0
- package/dist/types/components/ToggleGroup/ToggleGroup.d.ts +3 -0
- package/dist/types/components/Tooltip/Tooltip/Tooltip.props.d.ts +38 -0
- package/dist/types/components/Tooltip/Tooltip/Tooltip.state.d.ts +17 -0
- package/dist/types/components/Tooltip/Tooltip/Tooltip.style.d.ts +7 -0
- package/dist/types/components/Tooltip/Tooltip/Tooltip.type.d.ts +20 -0
- package/dist/types/components/Tooltip/Tooltip/Tooltip.view.d.ts +21 -0
- package/dist/types/components/Tooltip/Tooltip.d.ts +2 -0
- package/dist/types/components/Tooltip/index.d.ts +1 -0
- package/dist/types/components/Uploader/Uploader/Uploader.props.d.ts +59 -0
- package/dist/types/components/Uploader/Uploader/Uploader.state.d.ts +14 -0
- package/dist/types/components/Uploader/Uploader/Uploader.view.d.ts +3 -0
- package/dist/types/components/Uploader/Uploader.d.ts +3 -0
- package/dist/types/components/index.d.ts +13 -0
- package/dist/types/components/index.shared.d.ts +143 -0
- package/dist/types/components/pilot/alert.d.ts +2 -0
- package/dist/types/components/pilot/avatar.d.ts +2 -0
- package/dist/types/components/pilot/blocks/SettingsPanel.d.ts +8 -0
- package/dist/types/components/pilot/blocks/SignIn.d.ts +8 -0
- package/dist/types/components/pilot/button.d.ts +1 -0
- package/dist/types/components/pilot/card.d.ts +2 -0
- package/dist/types/components/pilot/checkbox.d.ts +2 -0
- package/dist/types/components/pilot/modal.d.ts +2 -0
- package/dist/types/components/pilot/select.d.ts +2 -0
- package/dist/types/components/pilot/settings-panel.d.ts +1 -0
- package/dist/types/components/pilot/sign-in.d.ts +1 -0
- package/dist/types/components/pilot/switch.d.ts +2 -0
- package/dist/types/components/pilot/tabs.d.ts +2 -0
- package/dist/types/components/pilot/text-field.d.ts +2 -0
- package/dist/types/design-system/DesignSystemProvider.d.ts +8 -0
- package/dist/types/design-system/DesignSystemScope.d.ts +8 -0
- package/dist/types/design-system/configs/airbnb.json.d.ts +715 -0
- package/dist/types/design-system/configs/apple.json.d.ts +733 -0
- package/dist/types/design-system/configs/coinbase.json.d.ts +726 -0
- package/dist/types/design-system/configs/default.json.d.ts +547 -0
- package/dist/types/design-system/configs/figma.json.d.ts +712 -0
- package/dist/types/design-system/configs/index.d.ts +27 -0
- package/dist/types/design-system/configs/linear.json.d.ts +705 -0
- package/dist/types/design-system/configs/nike.json.d.ts +733 -0
- package/dist/types/design-system/configs/notion.json.d.ts +838 -0
- package/dist/types/design-system/configs/revolut.json.d.ts +798 -0
- package/dist/types/design-system/configs/shopify.json.d.ts +701 -0
- package/dist/types/design-system/configs/spacex.json.d.ts +618 -0
- package/dist/types/design-system/configs/spotify.json.d.ts +701 -0
- package/dist/types/design-system/configs/stripe.json.d.ts +768 -0
- package/dist/types/design-system/configs/tesla.json.d.ts +660 -0
- package/dist/types/design-system/configs/uber.json.d.ts +716 -0
- package/dist/types/design-system/configs/vercel.json.d.ts +728 -0
- package/dist/types/design-system/index.d.ts +4 -0
- package/dist/types/design-system/theme.d.ts +28 -0
- package/dist/types/design-system/types.d.ts +138 -0
- package/dist/types/design-system/utils.d.ts +5 -0
- package/dist/types/pages/designSystem.page.d.ts +7 -0
- package/dist/types/types/global.d.ts +66 -0
- package/dist/types/types/module.d.ts +7 -0
- package/dist/types/types/refractor.d.ts +16 -0
- package/dist/types/utils/apiConfig.d.ts +28 -0
- package/dist/types/utils/colors.d.ts +31 -0
- package/dist/types/utils/elevation.d.ts +3 -0
- package/dist/types/utils/env.d.ts +15 -0
- package/dist/types/utils/file.d.ts +4 -0
- package/dist/types/utils/generateId.d.ts +5 -0
- package/dist/types/utils/id.d.ts +6 -0
- package/dist/types/utils/index.d.ts +7 -0
- package/dist/types/utils/localstorage.d.ts +5 -0
- package/dist/types/utils/request.d.ts +38 -0
- package/dist/types/utils/scriptTypography.d.ts +4 -0
- package/dist/types/utils/store.d.ts +7 -0
- package/dist/types/utils/typography.d.ts +23 -0
- package/dist/web.cjs.js +38 -72
- package/dist/web.cjs.js.map +1 -1
- package/dist/web.esm.d.mts +1 -0
- package/dist/web.esm.mjs +6888 -0
- package/dist/web.esm.mjs.map +1 -0
- package/dist/web.umd.js +22 -22
- package/dist/web.umd.js.map +1 -1
- package/docs/guides/registry-guide.mdx +81 -0
- package/package.json +312 -18
- package/dist/apple-touch-icon.png +0 -0
- package/dist/assets/apple-logo.png +0 -0
- package/dist/assets/maskable_icon.png +0 -0
- package/dist/assets/orange.png +0 -0
- package/dist/favicon.ico +0 -0
- package/dist/favicon.svg +0 -4
- package/dist/files/media/Accordion.mdx +0 -333
- package/dist/files/media/Alert.mdx +0 -353
- package/dist/files/media/AspectRatio.mdx +0 -64
- package/dist/files/media/AudioInput.mdx +0 -78
- package/dist/files/media/AudioWaveform.mdx +0 -9
- package/dist/files/media/Avatar.mdx +0 -301
- package/dist/files/media/Background.mdx +0 -610
- package/dist/files/media/Badge.mdx +0 -503
- package/dist/files/media/BlockEditor-drag-and-drop.md +0 -61
- package/dist/files/media/BlockEditor.mdx +0 -106
- package/dist/files/media/Button.mdx +0 -688
- package/dist/files/media/Card.mdx +0 -560
- package/dist/files/media/Carousel.mdx +0 -605
- package/dist/files/media/Chart.mdx +0 -871
- package/dist/files/media/ChatInput.mdx +0 -540
- package/dist/files/media/ChatWidget.mdx +0 -403
- package/dist/files/media/Checkbox.mdx +0 -463
- package/dist/files/media/ColorInput.mdx +0 -217
- package/dist/files/media/ColorPicker.mdx +0 -259
- package/dist/files/media/ComboBox.mdx +0 -376
- package/dist/files/media/Command.mdx +0 -496
- package/dist/files/media/ContextMenu.mdx +0 -411
- package/dist/files/media/CookieConsent.mdx +0 -263
- package/dist/files/media/CountryPicker.mdx +0 -349
- package/dist/files/media/DatePicker.mdx +0 -217
- package/dist/files/media/DragAndDrop.mdx +0 -34
- package/dist/files/media/Drawer.mdx +0 -233
- package/dist/files/media/DropZone.mdx +0 -9
- package/dist/files/media/DropdownMenu.mdx +0 -403
- package/dist/files/media/EmojiPicker.mdx +0 -335
- package/dist/files/media/Gradient.mdx +0 -604
- package/dist/files/media/HoverCard.mdx +0 -144
- package/dist/files/media/IconPicker.mdx +0 -9
- package/dist/files/media/Label.mdx +0 -9
- package/dist/files/media/Link.mdx +0 -142
- package/dist/files/media/Loader.mdx +0 -161
- package/dist/files/media/Markdown.mdx +0 -99
- package/dist/files/media/Menubar.mdx +0 -496
- package/dist/files/media/Message.mdx +0 -299
- package/dist/files/media/Modal.mdx +0 -795
- package/dist/files/media/NavigationMenu.mdx +0 -728
- package/dist/files/media/OTPInput.mdx +0 -450
- package/dist/files/media/Pagination.mdx +0 -356
- package/dist/files/media/ProgressBar.mdx +0 -119
- package/dist/files/media/Radio.mdx +0 -314
- package/dist/files/media/RadioGroup.mdx +0 -9
- package/dist/files/media/Resizable.mdx +0 -873
- package/dist/files/media/Select.mdx +0 -689
- package/dist/files/media/Selector.mdx +0 -9
- package/dist/files/media/Separator.mdx +0 -741
- package/dist/files/media/ShareButton.mdx +0 -29
- package/dist/files/media/Sidebar.mdx +0 -1237
- package/dist/files/media/Slider.mdx +0 -513
- package/dist/files/media/StatusIndicator.mdx +0 -43
- package/dist/files/media/Switch.mdx +0 -521
- package/dist/files/media/Table.mdx +0 -827
- package/dist/files/media/Tabs.mdx +0 -524
- package/dist/files/media/TagInput.mdx +0 -372
- package/dist/files/media/TextArea.mdx +0 -724
- package/dist/files/media/TextField.mdx +0 -830
- package/dist/files/media/Title.mdx +0 -1081
- package/dist/files/media/Toast.mdx +0 -802
- package/dist/files/media/Toggle.mdx +0 -159
- package/dist/files/media/ToggleGroup.mdx +0 -180
- package/dist/files/media/Tooltip.mdx +0 -307
- package/dist/files/media/Uploader.mdx +0 -9
- package/dist/fonts/mulish-subset.woff2 +0 -0
- package/dist/icon-512.png +0 -0
- package/dist/illustrations/cross-platform.svg +0 -37
- package/dist/index.d.ts +0 -5516
- package/dist/indexnow-key.txt +0 -1
- package/dist/manifest.json +0 -22
- package/dist/orange.webp +0 -0
- package/dist/robots.txt +0 -8
- package/dist/web.esm.js +0 -49919
- package/dist/web.esm.js.map +0 -1
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
+
"name": "select",
|
|
4
|
+
"type": "registry:ui",
|
|
5
|
+
"title": "Select",
|
|
6
|
+
"author": "App Studio",
|
|
7
|
+
"categories": [
|
|
8
|
+
"Forms"
|
|
9
|
+
],
|
|
10
|
+
"registryDependencies": [],
|
|
11
|
+
"meta": {
|
|
12
|
+
"appStudio": {
|
|
13
|
+
"entry": "src/components/pilot/select.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/select"
|
|
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/ActionSheet/ActionSheet.tsx",
|
|
47
|
+
"content": "import React from 'react';\nimport { ActionSheetProps } from './ActionSheet/ActionSheet.props';\nimport { useActionSheetState } from './ActionSheet/ActionSheet.state';\nimport ActionSheetView from './ActionSheet/ActionSheet.view';\n\nconst ActionSheetComponent: React.FC<ActionSheetProps> = (props) => {\n const actionSheetState = useActionSheetState(props);\n\n return <ActionSheetView {...props} {...actionSheetState} />;\n};\n\nexport const ActionSheet = ActionSheetComponent;\n",
|
|
48
|
+
"type": "registry:ui"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"path": "src/components/ActionSheet/ActionSheet/ActionSheet.props.ts",
|
|
52
|
+
"content": "import { ViewProps } from 'app-studio';\nimport React from 'react';\nimport {\n ActionSheetAnimation,\n ActionSheetItem,\n ActionSheetSize,\n ActionSheetStyles,\n ActionSheetValue,\n} from './ActionSheet.type';\n\nexport interface ActionSheetProps\n extends Omit<ViewProps, 'children' | 'onChange' | 'onSelect' | 'title'> {\n isOpen?: boolean;\n defaultOpen?: boolean;\n onOpenChange?: (isOpen: boolean) => void;\n onClose?: () => void;\n isClosePrevented?: boolean;\n dismissOnBackdropPress?: boolean;\n title?: React.ReactNode;\n description?: React.ReactNode;\n header?: React.ReactNode;\n children?: React.ReactNode;\n items?: ActionSheetItem[];\n value?: ActionSheetValue;\n defaultValue?: ActionSheetValue;\n isMulti?: boolean;\n closeOnSelect?: boolean;\n onSelect?: (value: string, item: ActionSheetItem) => void;\n onChange?: (value: ActionSheetValue, item: ActionSheetItem) => void;\n showCancel?: boolean;\n cancelLabel?: string;\n onCancel?: () => void;\n showHandle?: boolean;\n size?: ActionSheetSize;\n maxHeight?: number | string;\n animationType?: ActionSheetAnimation;\n views?: ActionSheetStyles;\n}\n\nexport interface ActionSheetViewProps extends ActionSheetProps {\n isSheetOpen: boolean;\n selectedValue: ActionSheetValue;\n setSelectedValue: (value: ActionSheetValue) => void;\n closeSheet: () => void;\n}\n",
|
|
53
|
+
"type": "registry:ui"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"path": "src/components/ActionSheet/ActionSheet/ActionSheet.state.ts",
|
|
57
|
+
"content": "import React from 'react';\nimport { ActionSheetProps } from './ActionSheet.props';\nimport { ActionSheetValue } from './ActionSheet.type';\n\nexport const useActionSheetState = ({\n isOpen,\n defaultOpen = false,\n value,\n defaultValue,\n isMulti = false,\n onOpenChange,\n onClose,\n}: ActionSheetProps) => {\n const isOpenControlled = typeof isOpen === 'boolean';\n const isValueControlled = value !== undefined;\n const initialValue = defaultValue ?? (isMulti ? [] : '');\n\n const [internalOpen, setInternalOpen] = React.useState(defaultOpen);\n const [internalValue, setInternalValue] =\n React.useState<ActionSheetValue>(initialValue);\n\n const isSheetOpen = isOpenControlled ? !!isOpen : internalOpen;\n const selectedValue = isValueControlled\n ? (value as ActionSheetValue)\n : internalValue;\n\n const setSheetOpen = React.useCallback(\n (nextOpen: boolean) => {\n if (!isOpenControlled) setInternalOpen(nextOpen);\n onOpenChange?.(nextOpen);\n if (!nextOpen) onClose?.();\n },\n [isOpenControlled, onClose, onOpenChange]\n );\n\n const closeSheet = React.useCallback(() => {\n setSheetOpen(false);\n }, [setSheetOpen]);\n\n const setSelectedValue = React.useCallback(\n (nextValue: ActionSheetValue) => {\n if (!isValueControlled) setInternalValue(nextValue);\n },\n [isValueControlled]\n );\n\n return {\n isSheetOpen,\n selectedValue,\n setSelectedValue,\n closeSheet,\n };\n};\n",
|
|
58
|
+
"type": "registry:ui"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"path": "src/components/ActionSheet/ActionSheet/ActionSheet.style.ts",
|
|
62
|
+
"content": "import { ViewProps } from 'app-studio';\nimport { ActionSheetSize } from './ActionSheet.type';\n\nexport const ActionSheetItemSizes: Record<ActionSheetSize, ViewProps> = {\n sm: {\n minHeight: 44,\n paddingVertical: 10,\n paddingHorizontal: 16,\n },\n md: {\n minHeight: 52,\n paddingVertical: 12,\n paddingHorizontal: 18,\n },\n lg: {\n minHeight: 60,\n paddingVertical: 14,\n paddingHorizontal: 20,\n },\n};\n\nexport const ActionSheetTextSizes: Record<\n ActionSheetSize,\n { label: number; description: number }\n> = {\n sm: {\n label: 14,\n description: 12,\n },\n md: {\n label: 16,\n description: 13,\n },\n lg: {\n label: 18,\n description: 14,\n },\n};\n\nexport const actionSheetShadow = {\n elevation: 10,\n shadowColor: '#0F172A',\n shadowOpacity: 0.16,\n shadowOffset: { width: 0, height: -8 },\n shadowRadius: 28,\n};\n",
|
|
63
|
+
"type": "registry:ui"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"path": "src/components/ActionSheet/ActionSheet/ActionSheet.type.ts",
|
|
67
|
+
"content": "import { ViewProps } from 'app-studio';\nimport React from 'react';\n\nexport type ActionSheetSize = 'sm' | 'md' | 'lg';\nexport type ActionSheetValue = string | string[];\nexport type ActionSheetAnimation = 'none' | 'slide' | 'fade';\n\nexport interface ActionSheetItem {\n id?: string;\n value?: string;\n label?: React.ReactNode;\n description?: React.ReactNode;\n icon?: React.ReactNode;\n selected?: boolean;\n disabled?: boolean;\n isDisabled?: boolean;\n destructive?: boolean;\n divider?: boolean;\n closeOnSelect?: boolean;\n onPress?: (item: ActionSheetItem) => void;\n}\n\nexport type ActionSheetStyles = {\n overlay?: ViewProps;\n container?: ViewProps;\n sheet?: ViewProps;\n handle?: ViewProps;\n header?: ViewProps;\n title?: ViewProps;\n description?: ViewProps;\n content?: ViewProps;\n item?: ViewProps;\n itemIcon?: ViewProps;\n itemLabel?: ViewProps;\n itemDescription?: ViewProps;\n itemIndicator?: ViewProps;\n divider?: ViewProps;\n cancelButton?: ViewProps;\n cancelLabel?: ViewProps;\n};\n",
|
|
68
|
+
"type": "registry:ui"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"path": "src/components/ActionSheet/ActionSheet/ActionSheet.view.native.tsx",
|
|
72
|
+
"content": "import React from 'react';\nimport {\n Keyboard,\n KeyboardAvoidingView,\n KeyboardEvent,\n Modal as RNModal,\n Platform,\n ScrollView,\n TouchableWithoutFeedback,\n useWindowDimensions,\n} from 'react-native';\nimport { Horizontal, Text, Vertical, View } from 'app-studio';\nimport { TickIcon } from '../../Icon/FixedIcons';\nimport { ActionSheetViewProps } from './ActionSheet.props';\nimport { ActionSheetItem } from './ActionSheet.type';\nimport {\n actionSheetShadow,\n ActionSheetItemSizes,\n ActionSheetTextSizes,\n} from './ActionSheet.style';\n\nconst getItemKey = (item: ActionSheetItem, index: number) =>\n item.id ?? item.value ?? `action-sheet-item-${index}`;\n\nconst getItemValue = (item: ActionSheetItem) => item.value ?? item.id;\n\nconst isItemDisabled = (item: ActionSheetItem) =>\n item.disabled || item.isDisabled || item.divider;\n\nconst isItemSelected = (\n item: ActionSheetItem,\n selectedValue: string | string[]\n) => {\n if (typeof item.selected === 'boolean') return item.selected;\n const itemValue = getItemValue(item);\n if (!itemValue) return false;\n if (Array.isArray(selectedValue)) return selectedValue.includes(itemValue);\n return selectedValue === itemValue;\n};\n\nconst resolveMaxHeight = (\n maxHeight: number | string | undefined,\n windowHeight: number\n) => {\n if (typeof maxHeight === 'number') return maxHeight;\n if (typeof maxHeight === 'string') {\n const trimmed = maxHeight.trim();\n if (trimmed.endsWith('%')) {\n const ratio = parseFloat(trimmed) / 100;\n if (!Number.isNaN(ratio)) return Math.round(windowHeight * ratio);\n }\n const parsed = parseFloat(trimmed.replace('px', ''));\n if (!Number.isNaN(parsed)) return parsed;\n }\n return Math.round(windowHeight * 0.88);\n};\n\nconst ActionSheetView: React.FC<ActionSheetViewProps> = ({\n isSheetOpen,\n closeSheet,\n selectedValue,\n setSelectedValue,\n isClosePrevented = false,\n dismissOnBackdropPress = true,\n title,\n description,\n header,\n children,\n items = [],\n isMulti = false,\n closeOnSelect,\n onSelect,\n onChange,\n showCancel = false,\n cancelLabel = 'Cancel',\n onCancel,\n showHandle = true,\n size = 'md',\n maxHeight,\n animationType = 'slide',\n views,\n ...props\n}) => {\n const { height: windowHeight } = useWindowDimensions();\n const [keyboardHeight, setKeyboardHeight] = React.useState(0);\n\n React.useEffect(() => {\n if (!isSheetOpen) {\n setKeyboardHeight(0);\n return;\n }\n\n const handleKeyboardShow = (event: KeyboardEvent) => {\n const screenY = event.endCoordinates?.screenY;\n const eventHeight = event.endCoordinates?.height ?? 0;\n const nextHeight =\n typeof screenY === 'number' && screenY > 0 && screenY < windowHeight\n ? windowHeight - screenY\n : eventHeight;\n\n setKeyboardHeight(Math.max(0, nextHeight));\n };\n\n const handleKeyboardHide = () => setKeyboardHeight(0);\n\n const showSub = Keyboard.addListener(\n Platform.OS === 'ios' ? 'keyboardWillShow' : 'keyboardDidShow',\n handleKeyboardShow\n );\n const hideSub = Keyboard.addListener(\n Platform.OS === 'ios' ? 'keyboardWillHide' : 'keyboardDidHide',\n handleKeyboardHide\n );\n\n return () => {\n showSub.remove();\n hideSub.remove();\n };\n }, [isSheetOpen, windowHeight]);\n\n const baseMaxHeight = resolveMaxHeight(maxHeight, windowHeight);\n const keyboardGap = keyboardHeight > 0 ? 12 : 0;\n const visibleMaxHeight =\n keyboardHeight > 0\n ? Math.max(220, windowHeight - keyboardHeight - keyboardGap)\n : windowHeight;\n const resolvedMaxHeight = Math.min(baseMaxHeight, visibleMaxHeight);\n\n const handleClose = () => {\n if (!isClosePrevented) closeSheet();\n };\n\n const handleBackdropPress = () => {\n if (dismissOnBackdropPress) handleClose();\n };\n\n const handleCancel = () => {\n onCancel?.();\n handleClose();\n };\n\n const handleItemPress = (item: ActionSheetItem) => {\n if (isItemDisabled(item)) return;\n\n const itemValue = getItemValue(item);\n let nextValue = selectedValue;\n\n if (itemValue) {\n if (isMulti) {\n const currentValue = Array.isArray(selectedValue)\n ? selectedValue\n : selectedValue\n ? [selectedValue]\n : [];\n nextValue = currentValue.includes(itemValue)\n ? currentValue.filter((value) => value !== itemValue)\n : [...currentValue, itemValue];\n } else {\n nextValue = itemValue;\n }\n\n setSelectedValue(nextValue);\n onSelect?.(itemValue, item);\n onChange?.(nextValue, item);\n }\n\n item.onPress?.(item);\n\n const shouldClose = item.closeOnSelect ?? closeOnSelect ?? !isMulti;\n if (shouldClose) handleClose();\n };\n\n return (\n <RNModal\n visible={isSheetOpen}\n transparent\n animationType={animationType}\n onRequestClose={handleClose}\n >\n <TouchableWithoutFeedback onPress={handleBackdropPress}>\n <View flex={1} backgroundColor=\"color-dark-50-360\" {...views?.overlay}>\n <KeyboardAvoidingView\n behavior={Platform.OS === 'ios' ? 'padding' : 'height'}\n keyboardVerticalOffset={0}\n style={{ flex: 1, justifyContent: 'flex-end' }}\n >\n <TouchableWithoutFeedback>\n <Vertical\n width=\"100%\"\n maxHeight={resolvedMaxHeight as any}\n backgroundColor=\"color-white\"\n borderTopLeftRadius={24}\n borderTopRightRadius={24}\n paddingTop={8}\n paddingBottom={Platform.OS === 'ios' ? 18 : 12}\n overflow=\"hidden\"\n style={actionSheetShadow as any}\n {...views?.container}\n {...views?.sheet}\n {...props}\n >\n {showHandle && (\n <View\n width={36}\n height={4}\n borderRadius={999}\n backgroundColor=\"color-gray-300\"\n alignSelf=\"center\"\n marginTop={4}\n marginBottom={8}\n {...views?.handle}\n />\n )}\n\n {(title || description) && (\n <Vertical\n paddingHorizontal={20}\n paddingTop={6}\n paddingBottom={12}\n gap={4}\n {...views?.header}\n >\n {title && (\n <Text\n fontSize={18}\n lineHeight={24}\n fontWeight=\"600\"\n color=\"color-gray-900\"\n {...views?.title}\n >\n {title}\n </Text>\n )}\n {description && (\n <Text\n fontSize={13}\n lineHeight={18}\n color=\"color-gray-500\"\n {...views?.description}\n >\n {description}\n </Text>\n )}\n </Vertical>\n )}\n\n {header}\n\n <ScrollView\n keyboardShouldPersistTaps=\"handled\"\n showsVerticalScrollIndicator={false}\n contentContainerStyle={{ paddingBottom: 4 }}\n >\n <Vertical {...views?.content}>\n {items.map((item, index) => {\n if (item.divider) {\n return (\n <View\n key={getItemKey(item, index)}\n height={1}\n backgroundColor=\"color-gray-200\"\n marginVertical={6}\n {...views?.divider}\n />\n );\n }\n\n const selected = isItemSelected(item, selectedValue);\n const disabled = isItemDisabled(item);\n const textColor = disabled\n ? 'color-gray-400'\n : item.destructive\n ? 'color-red-600'\n : selected\n ? 'theme-primary'\n : 'color-gray-900';\n\n return (\n <Horizontal\n key={getItemKey(item, index)}\n alignItems=\"center\"\n gap={12}\n opacity={disabled ? 0.5 : 1}\n onPress={() => handleItemPress(item)}\n onClick={() => handleItemPress(item)}\n {...ActionSheetItemSizes[size]}\n {...views?.item}\n >\n {item.icon && (\n <View flexShrink={0} {...views?.itemIcon}>\n {item.icon}\n </View>\n )}\n <Vertical flex={1} gap={2}>\n {typeof item.label === 'string' ? (\n <Text\n fontSize={ActionSheetTextSizes[size].label}\n lineHeight={\n ActionSheetTextSizes[size].label + 6\n }\n fontWeight={selected ? '600' : '400'}\n color={textColor}\n {...views?.itemLabel}\n >\n {item.label}\n </Text>\n ) : (\n item.label\n )}\n {item.description && (\n <Text\n fontSize={\n ActionSheetTextSizes[size].description\n }\n lineHeight={\n ActionSheetTextSizes[size].description + 5\n }\n color=\"color-gray-500\"\n {...views?.itemDescription}\n >\n {item.description}\n </Text>\n )}\n </Vertical>\n {selected && (\n <TickIcon\n widthHeight={18}\n color=\"theme-primary\"\n {...views?.itemIndicator}\n />\n )}\n </Horizontal>\n );\n })}\n {children}\n </Vertical>\n </ScrollView>\n\n {showCancel && (\n <View\n marginTop={8}\n paddingHorizontal={12}\n paddingTop={8}\n borderTopWidth={1}\n borderTopColor=\"color-gray-200\"\n >\n <Horizontal\n minHeight={52}\n alignItems=\"center\"\n justifyContent=\"center\"\n borderRadius={14}\n backgroundColor=\"color-gray-100\"\n onPress={handleCancel}\n onClick={handleCancel}\n {...views?.cancelButton}\n >\n <Text\n fontSize={ActionSheetTextSizes[size].label}\n lineHeight={ActionSheetTextSizes[size].label + 6}\n fontWeight=\"600\"\n color=\"color-gray-900\"\n {...views?.cancelLabel}\n >\n {cancelLabel}\n </Text>\n </Horizontal>\n </View>\n )}\n </Vertical>\n </TouchableWithoutFeedback>\n </KeyboardAvoidingView>\n </View>\n </TouchableWithoutFeedback>\n </RNModal>\n );\n};\n\nexport default ActionSheetView;\n",
|
|
73
|
+
"type": "registry:ui"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"path": "src/components/Form/Label/Label.tsx",
|
|
77
|
+
"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",
|
|
78
|
+
"type": "registry:ui"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"path": "src/components/Form/Label/Label/Label.props.ts",
|
|
82
|
+
"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",
|
|
83
|
+
"type": "registry:ui"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"path": "src/components/Form/Label/Label/Label.style.ts",
|
|
87
|
+
"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",
|
|
88
|
+
"type": "registry:ui"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"path": "src/components/Form/Label/Label/Label.type.ts",
|
|
92
|
+
"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",
|
|
93
|
+
"type": "registry:ui"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"path": "src/components/Form/Label/Label/Label.view.native.tsx",
|
|
97
|
+
"content": "/**\n * Label View Component (React Native)\n *\n * RN counterpart of Label.view.tsx. Drops the HTML <label> semantic (RN\n * has no label element / `htmlFor`) and renders the label text directly\n * inside a <Text/>. textDecoration is preserved (RN supports\n * textDecorationLine).\n */\n\nimport React from 'react';\nimport { Text, Typography } from 'app-studio';\nimport { LabelProps } from './Label.props';\nimport { HeadingSizes } from './Label.style';\n\nconst LabelView: React.FC<LabelProps> = ({\n children,\n heading,\n isItalic = false,\n isUnderlined = false,\n isStriked = false,\n weight = 'normal',\n size = 'sm',\n dropDown: _dropDown,\n error,\n isDisabled,\n helperText: _helperText,\n views: _views,\n htmlFor: _htmlFor,\n ...props\n}) => {\n const headingStyles = heading ? HeadingSizes[heading] : {};\n const textDecorationLine = isStriked\n ? 'line-through'\n : isUnderlined\n ? 'underline'\n : 'none';\n\n return (\n <Text\n width=\"100%\"\n fontSize={size}\n fontStyle={isItalic ? 'italic' : 'normal'}\n fontWeight={Typography.fontWeights[weight]}\n textDecorationLine={textDecorationLine as any}\n // Error wins over disabled, mirroring the web view (no cursor on RN).\n {...(error\n ? { color: 'theme-error' }\n : isDisabled\n ? { color: 'color-gray-400' }\n : {})}\n {...headingStyles}\n {...props}\n >\n {children}\n </Text>\n );\n};\n\nexport default LabelView;\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/Form/Select/Select.tsx",
|
|
107
|
+
"content": "import React from 'react';\nimport { SelectProps } from './Select/Select.props';\nimport { useSelectState } from './Select/Select.state';\nimport SelectView from './Select/Select.view';\nimport { useMergedDesignSystemComponentProps } from '@app-studio/components/theme';\n\n// Defines a functional component named 'SelectComponent', which is expected to receive 'SelectProps' as properties.\nconst SelectComponent: React.FC<SelectProps> = (props) => {\n const mergedProps = useMergedDesignSystemComponentProps('select', props);\n // Ensure options is always an array\n const safeProps = {\n ...mergedProps,\n options: mergedProps.options || [],\n };\n\n // Invokes the 'useSelectState' hook with props to obtain stateful logic for the Select component.\n const selectStates = useSelectState(safeProps);\n\n // Renders the 'SelectView' component, passing along any states controlled by 'useSelectState' and all properties passed to 'SelectComponent'.\n return (\n <SelectView\n {...selectStates}\n {...safeProps}\n // Restated after the props spread: `safeProps` now carries `value`, and\n // in uncontrolled mode that is `undefined` — letting it through would\n // blank out the selection the state hook just resolved.\n value={selectStates.value}\n onClick={(e: React.MouseEvent<HTMLDivElement>) => {\n // Stop propagation to prevent the global click handler from closing other dropdowns\n e.stopPropagation();\n if (mergedProps.onClick) mergedProps.onClick(e);\n }}\n />\n );\n};\n\n// Exports 'SelectComponent' as 'Select', making it available for import in other parts of the application.\nexport const Select = SelectComponent;\n",
|
|
108
|
+
"type": "registry:ui"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"path": "src/components/Form/Select/Select/Select.props.ts",
|
|
112
|
+
"content": "import { Elevation } from '../../../../utils/elevation';\nimport { InputProps, Shadow, ViewProps } from 'app-studio';\nimport { SelectStyles, Shape, Size, Variant, Option } from './Select.type';\n// Defines the interface for Select component properties, extending from InputProps but omitting 'size'.\n// `value`/`defaultValue` are re-declared rather than inherited: `InputProps`\n// types them after `HTMLInputElement`, where both are plain strings, and a\n// multi-select has to be able to carry an array.\nexport interface SelectProps\n extends Omit<\n InputProps,\n 'size' | 'shadow' | 'value' | 'defaultValue' | 'onChange'\n > {\n // Optional string identifier for the select element\n id?: string;\n // Flag to indicate if the select has an error state\n error?: boolean;\n // Name attribute for the select element, useful for form submission\n name?: string;\n // Label text associated with the select element\n label?: string;\n // Helper text that appears below the select box\n helperText?: string;\n // Placeholder text shown when the select is empty\n placeholder?: string;\n // Array of options that the user can choose from\n options: Option[];\n // Selected option value(s). Supplying it puts the select in controlled mode:\n // the displayed selection follows this prop and never moves on its own — the\n // component reports every change through `onChange` and waits for the parent\n // to pass the next value back down.\n value?: string | Array<string>;\n // Initial selection for uncontrolled use. Read once, on mount; ignored\n // entirely when `value` is supplied.\n defaultValue?: string | Array<string>;\n // Boolean to allow multi-selection\n isMulti?: boolean;\n // Boolean to set the select as read-only, preventing user modification\n isReadOnly?: boolean;\n // Boolean to disable the select element\n isDisabled?: boolean;\n // Boolean indicating the field is required for form submission\n isRequired?: boolean;\n // Boolean to autofocus the select when it mounts\n isAutoFocus?: boolean;\n /**\n * Called with the next selection whenever it changes: the chosen option's\n * value for a single select, the full array of selected values when\n * `isMulti`. It has to be the *next* selection rather than the option that\n * was just touched, otherwise a controlled parent has nothing to store.\n *\n * It is always the **value**, never the DOM event — `e.target.value` is a\n * compile error. The parameter is typed rather than left `any` so a\n * DOM-shaped handler fails to build instead of failing silently at runtime.\n *\n * Declared with method syntax on purpose. Method parameters are compared\n * bivariantly, so a single-select caller can still pass a plain\n * `(value: string) => void` (arrays only ever occur when `isMulti`) while a\n * `(e: ChangeEvent) => void` stays rejected — an event is unrelated to\n * `string | string[]` in both directions. Writing this as a property would\n * force every single-select consumer to narrow a union that their Select\n * can never produce.\n */\n onChange?(value: string | string[]): void;\n // Determines the overall shape of the select box, e.g., rounded or square edges\n shape?: Shape;\n // Defines the styling variant for the select component\n variant?: Variant;\n // Custom styles that can be applied to the select component\n views?: SelectStyles;\n // Defines the size of the component\n size?: Size;\n // Determines the shadow property of the select component\n shadow?: Shadow | Elevation | ViewProps;\n // Boolean to control whether the select options are scrollable\n isScrollable?: boolean;\n}\nexport interface SelectViewProps extends SelectProps {\n value: string | Array<string>;\n setValue: (value: string | string[]) => void;\n hide: boolean;\n setHide: (hide: boolean) => void;\n isHovered: boolean;\n setIsHovered: (hovered: boolean) => void;\n isFocused: boolean;\n setIsFocused: (focused: boolean) => void;\n highlightedIndex?: number;\n setHighlightedIndex?: (index: number) => void;\n}\nexport interface SelectBoxProps {\n options: Option[];\n value?: string | Array<string>;\n isDisabled?: boolean;\n placeholder?: string;\n removeOption?: (value: string) => void;\n views?: SelectStyles;\n size?: Size;\n}\nexport interface MultiSelectProps extends Omit<InputProps, 'size'> {\n option: string;\n removeOption: (value: string) => void;\n size?: Size;\n}\nexport interface ItemProps extends Omit<InputProps, 'size' | 'style'> {\n callback?: (option: string) => void;\n option: Option;\n size?: Size;\n style?: ViewProps;\n isHovered?: boolean;\n setIsHovered?: (hovered: boolean) => void;\n}\nexport interface HiddenSelectProps\n extends Omit<InputProps, 'size' | 'value' | 'onChange'> {\n id?: string;\n name?: string;\n value: string | Array<string>;\n isMulti?: boolean;\n isReadOnly?: boolean;\n isDisabled?: boolean;\n // Receives the same value-first argument as SelectProps.onChange — the\n // hidden <select> normalises its DOM event before forwarding.\n onChange?(value: string | string[]): void;\n options: Option[];\n}\nexport interface DropDownProps extends Omit<InputProps, 'size'> {\n size?: Size;\n callback?: (option: string) => void;\n options: Option[];\n views?: SelectStyles;\n highlightedIndex?: number;\n setHighlightedIndex?: (index: number) => void;\n}\n",
|
|
113
|
+
"type": "registry:ui"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"path": "src/components/Form/Select/Select/Select.state.ts",
|
|
117
|
+
"content": "import React from 'react';\nimport { SelectProps } from './Select.props';\n\n// The view branches on the shape of the value: an array renders as removable\n// chips, a string as a single label. A caller passing the shape that does not\n// match the current mode (a string with `isMulti`, an array without) has to be\n// brought back in line before anything reads it, or the branch taken silently\n// disagrees with the mode the component is in.\nconst normalizeValue = (\n value: string | Array<string>,\n isMulti?: boolean\n): string | Array<string> => {\n if (isMulti) {\n if (Array.isArray(value)) return value;\n return value === '' ? [] : [value];\n }\n return Array.isArray(value) ? value[0] ?? '' : value;\n};\n\n// Initializes the custom hook 'useSelectState' for managing the state of the Select component\nexport const useSelectState = ({\n placeholder,\n isMulti,\n options,\n // No default value here: `undefined` is exactly what separates controlled\n // from uncontrolled, so defaulting it would pin the select to that default\n // and make `setValue` a permanent no-op.\n value: controlledValue,\n defaultValue,\n id: idProp,\n}: SelectProps) => {\n // `useId` is stable across renders where `Math.random` was not. The\n // delimiter characters are stripped because the view looks itself up with a\n // `#id` selector, where `:`/`«` would make the selector invalid.\n const reactId = React.useId().replace(/[^a-zA-Z0-9_-]/g, '');\n const id = idProp ?? `select-${reactId}`;\n const isControlled = controlledValue !== undefined;\n\n // State hook for tracking mouse hover status over the Select component\n const [isHovered, setIsHovered] = React.useState(false);\n // State hook for tracking focus status of the Select input field\n const [isFocused, setIsFocused] = React.useState(false);\n // Backing store for uncontrolled use. It is still initialized when the\n // select is controlled — harmlessly — so that a component that starts\n // controlled and later drops `value` has somewhere to land.\n const [internalValue, setInternalValue] = React.useState<\n string | Array<string>\n >(() => {\n if (defaultValue !== undefined)\n return normalizeValue(defaultValue, isMulti);\n // A multi-select starts empty: preselecting an option nobody asked for is\n // a selection the user then has to undo.\n if (isMulti) return [];\n // A placeholder means \"start empty\". Without one, the first option stands\n // in for a native <select>'s implicit first-option selection.\n if (placeholder) return '';\n return Array.isArray(options) && options.length > 0 ? options[0].value : '';\n });\n\n // The value everything downstream reads. In controlled mode it is the prop,\n // read fresh on every render, so the selection tracks the parent's state\n // instead of freezing at whatever it was on mount.\n const value = isControlled\n ? normalizeValue(controlledValue as string | Array<string>, isMulti)\n : internalValue;\n\n // In controlled mode the parent owns the value: the component records the\n // intent through `onChange` and waits for the new value to come back down.\n // Writing to internal state here would let the two copies disagree.\n const setValue = React.useCallback(\n (next: string | Array<string>) => {\n if (!isControlled) setInternalValue(next);\n },\n [isControlled]\n );\n\n // State hook for keeping track of the currently highlighted index in the options list\n const [highlightedIndex, setHighlightedIndex] = React.useState<number>(0);\n // State hook for managing visibility of the Select dropdown, initially set to hidden\n const [hide, setHide] = React.useState(true);\n\n // Returns an object containing all stateful values and their associated setters to manage the Select component's state\n return {\n id,\n value,\n setValue,\n hide,\n setHide,\n isHovered,\n setIsHovered,\n isFocused,\n setIsFocused,\n highlightedIndex,\n setHighlightedIndex,\n };\n};\n// Initializes another custom hook 'useItemState' for managing the hover state of each Select item\nexport const useItemState = () => {\n // State hook for tracking mouse hover status over individual Select item options\n const [isHovered, setIsHovered] = React.useState(false);\n // Returns an object with 'isHovered' state and its associated setter from the 'useItemState' hook, for controlling individual Select item hover state\n return { isHovered, setIsHovered };\n};\n",
|
|
118
|
+
"type": "registry:ui"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"path": "src/components/Form/Select/Select/Select.style.ts",
|
|
122
|
+
"content": "/**\n * Select Styles\n *\n * Design system tokens for the Select component following 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, physics-based animations\n */\n\nimport { ViewProps } from 'app-studio';\nimport { Size } from './Select.type';\n\n/**\n * Size configurations following 4px grid system\n */\nexport const Sizes: Record<Size, ViewProps> = {\n xs: { height: '28px', width: '28px' },\n sm: { height: '32px', width: '32px' },\n md: { height: '40px', width: '40px' },\n lg: { height: '48px', width: '48px' },\n xl: { height: '56px', width: '56px' },\n};\n\n/**\n * Icon sizes proportional to component size\n */\nexport const IconSizes: Record<Size, number> = {\n xs: 12,\n sm: 14,\n md: 16,\n lg: 18,\n xl: 20,\n};\n\n/**\n * Dropdown container styles\n * - Subtle shadow for elevation\n * - Smooth border and radius\n */\nexport const dropdownStyles: ViewProps = {\n // width handled by JS for Portal positioning\n maxHeight: '280px',\n overflowY: 'auto',\n zIndex: 1000,\n backgroundColor: 'color-white',\n borderRadius: 12,\n borderWidth: '1px',\n borderStyle: 'solid',\n borderColor: 'color-gray-200',\n // Subtle, layered shadow for depth\n boxShadow: '0 4px 12px rgba(0, 0, 0, 0.1)',\n};\n\n/**\n * Dropdown animation keyframes\n */\nexport const dropdownAnimation = {\n enter: {\n opacity: 1,\n transform: 'translateY(0) scale(1)',\n transition: 'all 0.2s ease-in-out',\n },\n exit: {\n opacity: 0,\n transform: 'translateY(-4px) scale(0.98)',\n },\n initial: {\n opacity: 0,\n transform: 'translateY(-8px) scale(0.96)',\n },\n};\n\n/**\n * Option item styles with improved touch targets\n */\nexport const optionStyles: ViewProps = {\n padding: '10px 12px',\n cursor: 'pointer',\n borderRadius: 8, // radius-md\n margin: '2px 4px',\n transition: 'all 0.15s ease-in-out',\n};\n\n/**\n * Option item state variants\n */\nexport const optionStateStyles = {\n default: {},\n hover: {\n backgroundColor: 'color-gray-50',\n },\n highlighted: {\n backgroundColor: 'color-gray-100',\n },\n selected: {\n backgroundColor: 'color-gray-100',\n },\n selectedHighlighted: {\n backgroundColor: 'color-gray-200',\n },\n};\n\n/**\n * Chevron icon animation\n */\nexport const chevronAnimation = {\n open: {\n transform: 'rotate(180deg)',\n transition: 'all 0.2s ease-in-out',\n },\n closed: {\n transform: 'rotate(0deg)',\n transition: 'all 0.2s ease-in-out',\n },\n};\n\n/**\n * Multi-select chip/tag styles\n */\nexport const chipStyles: ViewProps = {\n padding: '4px 8px',\n borderRadius: 8, // radius-md\n backgroundColor: 'color-gray-100',\n fontSize: '12px',\n fontWeight: '500',\n color: 'color-gray-700',\n transition: 'all 0.15s ease-in-out',\n};\n\n/**\n * Scrollbar styles for dropdown\n */\nexport const scrollbarStyles = {\n scrollbarWidth: 'thin' as const,\n scrollbarColor: 'rgba(0, 0, 0, 0.15) transparent',\n};\n",
|
|
123
|
+
"type": "registry:ui"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"path": "src/components/Form/Select/Select/Select.type.ts",
|
|
127
|
+
"content": "import { ViewProps } from 'app-studio';\n\n// Defines a 'Size' type with predefined size options for the Select component.\nexport type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';\n// Declares a 'Shape' type with predefined shape options for the corners of the Select component.\nexport type Shape = 'default' | 'square' | 'rounded' | 'pill';\n// Specifies a 'Variant' type representing the visual style variations of the Select component.\nexport type Variant = 'outline' | 'default' | 'none';\n// Initiates a 'SelectStyles' type outlining style properties applicable to the Select component.\nexport type SelectStyles = {\n container?: ViewProps;\n content?: ViewProps;\n text?: ViewProps;\n icon?: ViewProps;\n dropDown?: ViewProps;\n selectBox?: ViewProps;\n label?: ViewProps;\n helperText?: ViewProps;\n field?: ViewProps;\n};\n// Defines an 'Option' interface representing individual options within the Select component.\nexport interface Option {\n // The 'label' property in 'Option' interface, which represents the display text for the option.\n label: string;\n // The 'value' property in 'Option' interface, indicating the actual value the option represents.\n value: string;\n}\n",
|
|
128
|
+
"type": "registry:ui"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"path": "src/components/Form/Select/Select/Select.view.native.tsx",
|
|
132
|
+
"content": "/**\n * Select View Component (React Native)\n *\n * RN counterpart of Select.view.tsx. There is no native <select> on RN, so\n * we simulate it with a pressable field that opens a React Native <Modal/>\n * containing a scrollable list of options. Drops web-only concepts:\n * - <select>/<option> HTML elements\n * - HiddenSelect (no need to keep an a11y twin on RN)\n * - Portal + getBoundingClientRect-based dropdown positioning\n * (position: fixed, window.innerHeight, etc.)\n * - document.addEventListener / closeAllSelects custom event\n * - cursor, hover transitions, chevron rotation transitions\n *\n * Native presentation uses the shared ActionSheet so selects, menus, and\n * pickers get the same bottom-sheet interaction model.\n */\n\nimport React from 'react';\nimport { Typography, Horizontal, Text, View } from 'app-studio';\nimport { ActionSheet } from '../../../ActionSheet/ActionSheet';\nimport { FieldContainer } from '../../../Input/FieldContainer/FieldContainer';\nimport { FieldContent } from '../../../Input/FieldContent/FieldContent';\nimport { FieldIcons } from '../../../Input/FieldIcons/FieldIcons';\nimport { FieldLabel } from '../../../Input/FieldLabel/FieldLabel';\nimport { FieldWrapper } from '../../../Input/FieldWrapper/FieldWrapper';\nimport { ChevronIcon, CloseIcon } from '../../../Icon/FixedIcons';\nimport {\n MultiSelectProps,\n SelectBoxProps,\n SelectViewProps,\n} from './Select.props';\nimport { IconSizes, optionStyles, chipStyles } from './Select.style';\n\nconst withoutFieldShellView = <T extends Record<string, any>>(views?: T): T => {\n if (!views) return {} as T;\n const { container, content, ...layoutViews } = views;\n return layoutViews as T;\n};\n\nconst fieldSizeStyles = {\n xs: { minHeight: 24, shellPaddingY: 6, shellPaddingX: 10 },\n sm: { minHeight: 32, shellPaddingY: 8, shellPaddingX: 10 },\n md: { minHeight: 40, shellPaddingY: 10, shellPaddingX: 12 },\n lg: { minHeight: 48, shellPaddingY: 12, shellPaddingX: 14 },\n xl: { minHeight: 56, shellPaddingY: 14, shellPaddingX: 16 },\n} as const;\n\nconst SelectBox: React.FC<SelectBoxProps> = ({\n size = 'md',\n views = { field: {}, text: {} },\n value,\n isDisabled,\n placeholder,\n removeOption = () => {},\n options,\n}) => {\n const fieldView = views?.field || {};\n const textView = views?.text || {};\n const fieldStyles = {\n width: '95%',\n paddingVertical: 4,\n fontSize: Typography.fontSizes[size],\n fontWeight: '400' as const,\n lineHeight: 20,\n color: isDisabled ? 'color-gray-400' : 'color-gray-900',\n ...fieldView,\n ...textView,\n };\n const option: any =\n options.length > 0 && options.find((option) => option.value === value);\n\n const isEmpty = value === '' || (Array.isArray(value) && value.length === 0);\n\n return (\n <Text {...fieldStyles}>\n {isEmpty && !!placeholder ? (\n placeholder\n ) : typeof value === 'string' ? (\n (option && option.label) ?? value\n ) : Array.isArray(value) && value.length > 0 ? (\n <Horizontal gap={6}>\n {value.map((opt) => (\n <MultiSelect key={opt} option={opt} removeOption={removeOption} />\n ))}\n </Horizontal>\n ) : (\n String(value ?? '')\n )}\n </Text>\n );\n};\n\nexport const MultiSelect: React.FC<MultiSelectProps> = ({\n option,\n size = 'md',\n removeOption = () => {},\n ...props\n}) => {\n const handlePress = () => removeOption(option);\n return (\n <Horizontal gap={6} alignItems=\"center\" {...chipStyles} {...props}>\n <Text\n fontSize={Typography.fontSizes[size]}\n fontWeight=\"500\"\n color=\"color-gray-700\"\n >\n {option}\n </Text>\n <View onPress={handlePress}>\n <CloseIcon color=\"color-gray-500\" widthHeight={IconSizes[size]} />\n </View>\n </Horizontal>\n );\n};\n\nconst SelectView: React.FC<SelectViewProps> = ({\n id,\n name,\n label,\n value,\n placeholder,\n helperText,\n hide = false,\n error = false,\n isMulti = false,\n isFocused = false,\n isHovered = false,\n isDisabled = false,\n isReadOnly = false,\n options = [],\n shadow = {},\n size = 'md',\n shape = 'default',\n variant = 'default',\n views = {\n text: {},\n icon: {},\n dropDown: {},\n selectBox: {},\n label: {},\n helperText: {},\n },\n onChange = () => {},\n setHide = () => {},\n setValue = () => {},\n setIsHovered = () => {},\n setIsFocused = () => {},\n setHighlightedIndex,\n highlightedIndex,\n isScrollable: _isScrollable,\n ...props\n}) => {\n const handlePressTrigger = () => {\n if (isDisabled || isReadOnly) return;\n const newHideState = !hide;\n setHide(newHideState);\n setIsFocused(!newHideState);\n };\n\n const handleSelect = (optionValue: string) => {\n // Mirrors the web view: `onChange` carries the next selection — the whole\n // array when `isMulti` — so a controlled parent can store what it gets.\n if (isMulti && Array.isArray(value)) {\n if (!value.includes(optionValue)) {\n const newValue = [...value, optionValue];\n setValue(newValue);\n if (onChange) onChange(newValue);\n }\n } else {\n setValue(optionValue);\n if (onChange) onChange(optionValue);\n }\n if (!isMulti) setHide(true);\n };\n\n const handleRemoveOption = (valueOption: string) => {\n if (Array.isArray(value) && value.includes(valueOption)) {\n const newValue = value.filter((option) => option !== valueOption);\n setValue(newValue);\n if (onChange) onChange(newValue);\n }\n };\n\n const isOptionSelected = (optionValue: string) => {\n if (Array.isArray(value)) return value.includes(optionValue);\n return value === optionValue;\n };\n\n const showLabel = !!label;\n const layoutViews = withoutFieldShellView(views);\n\n return (\n <FieldContainer\n width=\"100%\"\n id={id}\n helperText={helperText}\n error={error}\n views={layoutViews}\n onPress={handlePressTrigger}\n >\n <FieldContent\n label={label}\n size={size}\n error={error}\n shape={shape}\n views={views}\n shadow={shadow}\n variant={variant}\n value={value}\n color={'theme-primary'}\n isHovered={isHovered}\n isDisabled={isDisabled}\n isReadOnly={isReadOnly}\n isFocused={isFocused}\n showLabel={showLabel}\n minHeight={fieldSizeStyles[size].minHeight}\n paddingTop={fieldSizeStyles[size].shellPaddingY}\n paddingBottom={fieldSizeStyles[size].shellPaddingY}\n paddingLeft={fieldSizeStyles[size].shellPaddingX}\n paddingRight={fieldSizeStyles[size].shellPaddingX}\n {...(views as any)?.content}\n >\n <FieldWrapper>\n {showLabel && (\n <FieldLabel error={error} views={{ label: views?.label }}>\n {label}\n </FieldLabel>\n )}\n <SelectBox\n options={options}\n size={size}\n views={views}\n value={value}\n isDisabled={isDisabled}\n placeholder={placeholder}\n removeOption={handleRemoveOption}\n />\n </FieldWrapper>\n <FieldIcons>\n {!isReadOnly && !isDisabled && (\n <ChevronIcon\n color=\"inherit\"\n widthHeight={IconSizes[size]}\n orientation={hide ? 'down' : 'up'}\n />\n )}\n </FieldIcons>\n </FieldContent>\n\n <ActionSheet\n isOpen={!hide && options.length > 0}\n onClose={() => {\n setHide(true);\n setIsFocused(false);\n }}\n title={label}\n value={value}\n isMulti={isMulti}\n closeOnSelect={!isMulti}\n showCancel\n size={\n size === 'xs' || size === 'sm' ? 'sm' : size === 'xl' ? 'lg' : 'md'\n }\n items={options.map((option) => ({\n id: option.value,\n value: option.value,\n label: option.label,\n selected: isOptionSelected(option.value),\n onPress: () => handleSelect(option.value),\n }))}\n views={{\n sheet: (views as any)?.dropDown,\n item: optionStyles,\n itemLabel: (views as any)?.text,\n }}\n />\n </FieldContainer>\n );\n};\n\nexport default SelectView;\n",
|
|
133
|
+
"type": "registry:ui"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"path": "src/components/Form/Select/Select/Select.view.tsx",
|
|
137
|
+
"content": "import React, { useCallback, useRef } from 'react';\nimport { Portal } from '../../../Portal/Portal';\nimport { Element, useElementPosition } from 'app-studio';\nimport { Typography } from 'app-studio';\nimport { Horizontal } from 'app-studio';\nimport { Text } from 'app-studio';\nimport { FieldContainer } from '../../../Input/FieldContainer/FieldContainer';\nimport { FieldContent } from '../../../Input/FieldContent/FieldContent';\nimport { FieldIcons } from '../../../Input/FieldIcons/FieldIcons';\nimport { FieldLabel } from '../../../Input/FieldLabel/FieldLabel';\nimport { FieldWrapper } from '../../../Input/FieldWrapper/FieldWrapper';\nimport { ChevronIcon, CloseIcon } from '../../../Icon/FixedIcons';\nimport {\n DropDownProps,\n HiddenSelectProps,\n ItemProps,\n MultiSelectProps,\n SelectBoxProps,\n SelectViewProps,\n} from './Select.props';\nimport {\n IconSizes,\n dropdownStyles,\n dropdownAnimation,\n optionStyles,\n optionStateStyles,\n chevronAnimation,\n chipStyles,\n scrollbarStyles,\n} from './Select.style';\n\nconst withoutFieldShellView = <T extends Record<string, any>>(views?: T): T => {\n if (!views) return {} as T;\n const { container, content, ...layoutViews } = views;\n return layoutViews as T;\n};\n\n// Field sizing now lives in `Input/fieldSizes` and is applied by FieldContent,\n// so this component no longer carries its own copy of the scale.\n\n/**\n * Item Component\n *\n * Renders an individual option item in the select dropdown\n */\nconst Item: React.FC<ItemProps & { isSelected?: boolean }> = ({\n isHovered,\n setIsHovered = () => {},\n option,\n size = 'md',\n callback = () => {},\n style,\n isSelected = false,\n ...props\n}) => {\n // Handles the click event on an option\n const handleOptionClick = (e: React.MouseEvent, option: string) => {\n e.stopPropagation();\n e.preventDefault();\n if (typeof callback === 'function') {\n callback(option);\n }\n };\n\n // Toggles the hover state on the item\n const handleHover = () => setIsHovered(!isHovered);\n\n // Get background color based on state priority\n const getStateStyle = () => {\n if (isSelected && isHovered) return optionStateStyles.selectedHighlighted;\n if (isSelected) return optionStateStyles.selected;\n if (isHovered) return optionStateStyles.highlighted;\n return optionStateStyles.default;\n };\n\n return (\n <Element\n as=\"li\"\n // An option has to say it is one. Without the role the listbox announces\n // a list of nothing, and anything that resolves controls by role — a\n // screen reader, voice control, a test driver — cannot reach these at all.\n role=\"option\"\n aria-selected={isSelected}\n // Layout - improved touch targets\n display=\"flex\"\n alignItems=\"center\"\n justifyContent=\"space-between\"\n listStyleType=\"none\"\n // Apply option styles from design tokens\n {...optionStyles}\n {...getStateStyle()}\n // Event handlers\n onMouseEnter={handleHover}\n onMouseLeave={handleHover}\n onClick={(e: React.MouseEvent) => handleOptionClick(e, option.value)}\n // Apply custom props\n {...props}\n >\n <Text\n fontSize={Typography.fontSizes[size]}\n fontWeight={isSelected ? '500' : '400'}\n lineHeight=\"14px\"\n color={isSelected ? 'color-gray-900' : 'color-gray-700'}\n {...style}\n >\n {option.label}\n </Text>\n {/* Selected indicator */}\n {isSelected && (\n <Element\n as=\"span\"\n // Decoration, and hidden as such. `aria-selected` above already\n // carries this meaning in the way assistive technology reads it,\n // whereas a visible ✓ joins the option's accessible name and turns\n // \"Alpha\" into \"Alpha ✓\" — so a screen reader announces the wrong\n // name, voice control loses \"click Alpha\", and anything resolving\n // the option by its exact label stops finding it at all.\n aria-hidden=\"true\"\n color=\"theme-primary\"\n fontSize=\"14px\"\n marginLeft={8}\n display=\"flex\"\n alignItems=\"center\"\n >\n ✓\n </Element>\n )}\n </Element>\n );\n};\n/**\n * SelectBox Component\n *\n * Renders the main select box with selected value(s)\n */\nconst SelectBox: React.FC<SelectBoxProps> = ({\n size = 'md',\n views = { field: {}, text: {} },\n value,\n isDisabled,\n placeholder,\n removeOption = () => {},\n options,\n}) => {\n const fieldView = views?.field || {};\n const textView = views?.text || {};\n const isMultiValue = Array.isArray(value) && value.length > 0;\n /**\n * Styles for the select field\n */\n const fieldStyles = {\n // Layout properties\n margin: 0,\n width: '95%',\n height: '100%',\n border: 'none',\n // No vertical padding here: the field shell above already applies\n // `shellPaddingY` for the current size. Adding 4px on each side on top of\n // it pushed the content box past the shell's `minHeight`, so a `md` Select\n // rendered at 50px while a `md` TextField rendered at the intended 40px —\n // visibly misaligning the two whenever they sit in the same row.\n paddingVertical: 0,\n paddingHorizontal: 0,\n\n // Typography properties\n fontSize: Typography.fontSizes[size],\n\n fontWeight: '400', // Regular weight\n // Left to the natural line box, as TextField does. A fixed 20px line-height\n // does not fit the shell it lives in: at `md` the shell is 40px tall with\n // 10px of padding and a 1px border on each side, leaving 18px for content.\n // Hard-coding 20px pushed every Select 2px past its own declared height.\n letterSpacing: '-0.01em', // Slight negative tracking for modern look\n\n // Visual properties\n color: isDisabled ? 'color-gray-400' : 'color-gray-900',\n\n // State properties\n cursor: isDisabled ? 'not-allowed' : 'pointer',\n\n // Animation\n transition: 'all 0.2s ease-in-out',\n\n // A single-value trigger stays on one line and ellipsises, via `Text`'s own\n // `maxLines`. Without it a long option label wraps, which silently breaks\n // the control's declared height — a `md` Select showing \"Uma User's\n // workspace\" in a narrow sidebar became two lines tall.\n //\n // `minWidth: 0` is what actually lets it truncate: the trigger is a flex\n // child, and `min-width: auto` would otherwise stop it shrinking below its\n // content, so the clamp would never engage.\n //\n // Multi-select is excluded: its value renders as chips that are meant to\n // wrap, and clamping would hide selections rather than reflow them.\n ...(isMultiValue ? {} : { maxLines: 1, minWidth: 0 }),\n\n // Apply custom styles\n ...fieldView,\n ...textView,\n style: {\n backgroundColor: 'transparent',\n ...(fieldView as any).style,\n ...(textView as any).style,\n },\n };\n const option: any =\n options.length > 0 && options.find((option) => option.value === value);\n return (\n <Text {...fieldStyles}>\n {/* Check if value is an empty string or if value is an array but with no items, then show placeholder */}\n {(value === '' || (Array.isArray(value) && value.length === 0)) &&\n !!placeholder ? (\n placeholder\n ) : (\n <>\n {/* If value is a string, use the option label or value */}\n {typeof value === 'string' ? (\n (option && option.label) ?? value\n ) : // If value is an array and not empty, render MultiSelect options\n Array.isArray(value) && value.length > 0 ? (\n <Horizontal gap={6}>\n {value.map((option) => (\n <MultiSelect\n key={option}\n option={option}\n removeOption={removeOption}\n />\n ))}\n </Horizontal>\n ) : (\n // Handle any other types of value (including objects or unexpected values)\n <span>{value}</span>\n )}\n </>\n )}\n </Text>\n );\n};\nconst HiddenSelect: React.FC<HiddenSelectProps> = ({\n id,\n name,\n value,\n onChange,\n isMulti = false,\n isDisabled = false,\n isReadOnly = false,\n options = [],\n // Swallowed on purpose. `defaultValue` is the Select's own prop — the state\n // hook has already turned it into the `value` below — but it also rides\n // along in `...props`, and React errors on any <select> carrying both\n // (\"Select elements must be either controlled or uncontrolled\"). That error\n // fires on every render and fails test runs that treat console.error as\n // fatal, so the element has to be given one or the other, never both.\n defaultValue: _defaultValue,\n ...props\n}) => {\n // The hidden <select> is the only path that produced a DOM event where every\n // other path produced a value, so the same `onChange` prop had two different\n // argument shapes depending on which one fired. Normalise here.\n const handleChange = (event: React.ChangeEvent<HTMLSelectElement>) => {\n if (!onChange) return;\n onChange(\n isMulti\n ? Array.from(event.target.selectedOptions, (option) => option.value)\n : event.target.value\n );\n };\n return (\n <Element\n id={id}\n name={name}\n as=\"select\"\n opacity={0}\n width={1}\n height={1}\n overflow=\"hidden\"\n position=\"absolute\"\n pointerEvents=\"none\"\n tabIndex={-1}\n aria-hidden=\"true\"\n value={value}\n disabled={isDisabled}\n readOnly={isReadOnly}\n onChange={handleChange}\n multiple={isMulti}\n {...props}\n >\n {options.length > 0 &&\n options.map((option) => {\n return (\n <option key={option.value} value={option.value}>\n {option.label}\n </option>\n );\n })}\n </Element>\n );\n};\n/**\n * DropDown Component\n *\n * Renders the dropdown list of options for the select component\n */\nconst DropDown: React.FC<\n DropDownProps & {\n selectedValue?: string | string[];\n listboxId?: string;\n getOptionId?: (index: number) => string;\n }\n> = ({\n size,\n views = {},\n options,\n callback = () => {},\n highlightedIndex,\n setHighlightedIndex = () => {},\n selectedValue,\n listboxId,\n getOptionId,\n}) => {\n const handleCallback = (option: string) => callback(option);\n\n // Check if an option is selected\n const isOptionSelected = (optionValue: string) => {\n if (Array.isArray(selectedValue)) {\n return selectedValue.includes(optionValue);\n }\n return selectedValue === optionValue;\n };\n\n return (\n <Element\n as=\"ul\"\n role=\"listbox\"\n id={listboxId}\n display=\"flex\"\n flexDirection=\"column\"\n margin={0}\n padding=\"4px\"\n {...dropdownStyles}\n style={scrollbarStyles}\n {...views?.dropDown}\n >\n {options &&\n options.length > 0 &&\n options.map((option, index) => (\n <Item\n key={option.value}\n id={getOptionId ? getOptionId(index) : undefined}\n size={size}\n style={views['text']}\n option={option}\n callback={handleCallback}\n isSelected={isOptionSelected(option.value)}\n isHovered={index === highlightedIndex}\n setIsHovered={() => {}}\n onMouseEnter={() => setHighlightedIndex(index)}\n />\n ))}\n </Element>\n );\n};\n/**\n * MultiSelect Component\n *\n * Renders a selected option in a multi-select component\n */\nexport const MultiSelect: React.FC<MultiSelectProps> = ({\n option,\n size = 'md',\n removeOption = () => {},\n ...props\n}) => {\n const handleClick = () => removeOption(option);\n\n return (\n <Horizontal\n gap={6}\n alignItems=\"center\"\n onClick={(event: any) => event.stopPropagation()}\n {...chipStyles}\n _hover={{\n backgroundColor: 'color-gray-200',\n }}\n {...props}\n >\n <Text\n fontSize={Typography.fontSizes[size]}\n fontWeight=\"500\"\n color=\"color-gray-700\"\n >\n {option}\n </Text>\n\n {/* A real button: `close-button` is not an ARIA role, so the remover was\n invisible to assistive tech and unreachable by keyboard. */}\n <Element\n as=\"button\"\n type=\"button\"\n aria-label={`Remove ${option}`}\n onClick={handleClick}\n display=\"flex\"\n alignItems=\"center\"\n justifyContent=\"center\"\n padding={0}\n border=\"none\"\n backgroundColor=\"transparent\"\n color=\"color-gray-500\"\n cursor=\"pointer\"\n transition=\"all 0.2s ease-in-out\"\n _hover={{\n color: 'color-gray-700',\n }}\n >\n <CloseIcon color=\"inherit\" widthHeight={IconSizes[size]} />\n </Element>\n </Horizontal>\n );\n};\nconst SelectView: React.FC<SelectViewProps> = ({\n id,\n name,\n label,\n value,\n placeholder,\n helperText,\n hide = false,\n error = false,\n isMulti = false,\n isFocused = false,\n isHovered = false,\n isDisabled = false,\n isReadOnly = false,\n isRequired = false,\n isAutoFocus = false,\n options = [],\n shadow = {},\n size = 'md',\n shape = 'default',\n variant = 'default',\n views = {\n text: {},\n icon: {},\n dropDown: {},\n selectBox: {},\n label: {},\n helperText: {},\n },\n onChange = () => {},\n setHide = () => {},\n setValue = () => {},\n setIsHovered = () => {},\n setIsFocused = () => {},\n setHighlightedIndex,\n highlightedIndex,\n isScrollable,\n // Pulled out so it can name the trigger. It used to fall into `...props`,\n // which never reaches the element a screen reader reads.\n 'aria-label': ariaLabel,\n ...props\n}) => {\n const generatedId = React.useId();\n // One id per element: the focusable combobox keeps the public `id`; the\n // aria-hidden native <select>, the label, the listbox and its options get\n // derived ids — the combobox and the native <select> used to share the same\n // `id`, which is invalid HTML and made `htmlFor` ambiguous. The `useId`\n // fallback is stripped of its delimiters because the id is used in `#id`\n // selector lookups below.\n const selectId = id ?? `select-${generatedId.replace(/[^a-zA-Z0-9_-]/g, '')}`;\n const nativeSelectId = `${selectId}-native`;\n const labelId = `${selectId}-label`;\n const listboxId = `${selectId}-listbox`;\n const getOptionId = (index: number) => `${selectId}-option-${index}`;\n\n const {\n ref: triggerRef,\n relation,\n updateRelation,\n } = useElementPosition({\n trackChanges: true,\n trackOnScroll: true,\n trackOnResize: true,\n throttleMs: 10,\n });\n\n const dropdownRef = useRef<HTMLDivElement>(null);\n\n // Get optimal positioning style based on available space\n // Get optimal positioning style based on available space\n const getDropdownStyle = () => {\n if (!triggerRef.current) return {};\n\n const rect = triggerRef.current.getBoundingClientRect();\n const baseStyle: React.CSSProperties = {\n position: 'fixed',\n left: rect.left,\n width: rect.width,\n zIndex: 10000,\n };\n\n // Use relation to determine vertical placement if available, otherwise default to bottom\n const isTop = relation?.space?.vertical === 'top';\n\n if (isTop) {\n return {\n ...baseStyle,\n bottom: window.innerHeight - rect.top + 8, // 8px gap\n };\n } else {\n return {\n ...baseStyle,\n top: rect.bottom + 8, // 8px gap\n };\n }\n };\n // close when *any* other select opens\n React.useEffect(() => {\n const handleCloseAll = () => setHide(true);\n document.addEventListener('closeAllSelects', handleCloseAll);\n return () =>\n document.removeEventListener('closeAllSelects', handleCloseAll);\n }, [setHide]);\n\n // Mount-only autofocus, mirroring the native `autofocus` attribute: the\n // focusable element is the combobox trigger, not the aria-hidden <select>.\n React.useEffect(() => {\n if (isAutoFocus && !isDisabled && !isReadOnly) {\n triggerRef.current?.focus();\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n // Add a global click handler to close the dropdown when clicking outside\n React.useEffect(() => {\n const handleGlobalClick = (e: MouseEvent) => {\n const target = e.target as HTMLElement;\n // Only close if clicking outside of this specific select component\n if (!target.closest(`#${selectId}`) && !hide) {\n setHide(true);\n }\n };\n\n document.addEventListener('click', handleGlobalClick);\n return () => {\n document.removeEventListener('click', handleGlobalClick);\n };\n }, [selectId, hide, setHide]);\n const handleHover = () => setIsHovered(!isHovered);\n const handleFocus = () => setIsFocused(true);\n const handleClick = (event: React.MouseEvent<HTMLButtonElement>) => {\n // tell all other selects to close\n document.dispatchEvent(new Event('closeAllSelects'));\n\n if (event && event.stopPropagation) event.stopPropagation();\n\n // Toggle dropdown visibility\n const newHideState = !hide;\n setHide(newHideState);\n setIsFocused(!newHideState); // Set focus state based on dropdown visibility\n };\n const handleCallback = useCallback(\n (option: string) => {\n // Close dropdown after selection\n setHide(true);\n\n // Tell all other selects to close\n document.dispatchEvent(new Event('closeAllSelects'));\n\n // Update value based on multi-select or single-select mode.\n // `onChange` reports the *next* selection, not the option that was\n // clicked: a controlled parent has to be able to store what it gets\n // back, and for a multi-select that is the whole array.\n if (isMulti && Array.isArray(value)) {\n if (!value.includes(option)) {\n const newValue = [...value, option];\n setValue(newValue);\n if (onChange) onChange(newValue);\n }\n } else {\n setValue(option);\n if (onChange) onChange(option);\n }\n\n // Set focus to indicate selection\n setIsFocused(true);\n },\n [isMulti, value, setHide, setValue, onChange, setIsFocused]\n );\n const handleRemoveOption = (valueOption: string) => {\n if (Array.isArray(value) && value.includes(valueOption)) {\n const newValue = value.filter((option) => option !== valueOption);\n setValue(newValue);\n // Removing a chip is a change like any other. Without this the parent of\n // a controlled multi-select never hears about it, so the chip comes\n // straight back on the next render.\n if (onChange) onChange(newValue);\n }\n };\n const showLabel = !!label;\n const layoutViews = withoutFieldShellView(views);\n\n return (\n <FieldContainer\n ref={triggerRef as React.RefObject<HTMLDivElement>}\n position=\"relative\"\n width=\"100%\"\n display=\"inline-block\"\n id={selectId}\n // `SelectBox` is not an ARIA role, so the trigger was exposed as a plain\n // container: not focusable, not announced, and operable only by mouse.\n // The native `<select>` behind it is `aria-hidden` and `tabIndex={-1}`, so\n // there was no keyboard path to this control at all.\n role=\"combobox\"\n aria-haspopup=\"listbox\"\n aria-expanded={!hide}\n // The visible label names the combobox via `aria-labelledby`; an explicit\n // `aria-label` prop wins when the caller provides one.\n aria-labelledby={!ariaLabel && showLabel ? labelId : undefined}\n aria-label={ariaLabel}\n aria-controls={listboxId}\n aria-activedescendant={\n !hide && options.length > 0\n ? getOptionId(highlightedIndex ?? 0)\n : undefined\n }\n aria-disabled={isDisabled || undefined}\n aria-required={isRequired || undefined}\n tabIndex={isDisabled || isReadOnly ? -1 : 0}\n helperText={helperText}\n error={error}\n views={layoutViews}\n onKeyDown={(e: React.KeyboardEvent<HTMLDivElement>) => {\n if (isDisabled || isReadOnly) return;\n // Keys pressed on descendants (the chip-remove buttons) must keep\n // their native activation instead of being hijacked by the trigger.\n if (e.target !== e.currentTarget) return;\n\n // Closed: Enter, Space and Down open the list — the same keys a\n // native select answers to, so nobody has to learn this one separately.\n if (hide) {\n if (e.key === 'Enter' || e.key === ' ' || e.key === 'ArrowDown') {\n e.preventDefault();\n document.dispatchEvent(new Event('closeAllSelects'));\n setHide(false);\n setIsFocused(true);\n }\n return;\n }\n\n // Open: arrows move the highlight, Enter commits it, Escape closes.\n const currentIndex = highlightedIndex ?? 0;\n if (e.key === 'ArrowDown') {\n e.preventDefault();\n setHighlightedIndex?.(Math.min(currentIndex + 1, options.length - 1));\n } else if (e.key === 'ArrowUp') {\n e.preventDefault();\n setHighlightedIndex?.(Math.max(currentIndex - 1, 0));\n } else if (e.key === 'Enter') {\n e.preventDefault();\n const option = options[currentIndex];\n if (option) handleCallback(option.value);\n } else if (e.key === 'Escape') {\n e.preventDefault();\n setHide(true);\n }\n }}\n onClick={(e: React.MouseEvent<HTMLDivElement>) => {\n // Stop propagation to prevent clicks from bubbling up\n e.stopPropagation();\n\n // Only handle click if not disabled or readonly\n if (!(isDisabled || isReadOnly)) {\n handleClick(e as unknown as React.MouseEvent<HTMLButtonElement>);\n }\n }}\n >\n <FieldContent\n label={label}\n size={size}\n error={error}\n shape={shape}\n views={views}\n shadow={shadow}\n variant={variant}\n value={value}\n color={'theme-primary'}\n isHovered={isHovered}\n isDisabled={isDisabled}\n isReadOnly={isReadOnly}\n isFocused={isFocused}\n showLabel={showLabel}\n // Sizing comes from FieldContent's shared scale (`Input/fieldSizes`).\n onMouseEnter={handleHover}\n onMouseLeave={handleHover}\n position=\"relative\"\n {...views?.content}\n >\n <FieldWrapper>\n {showLabel && (\n <FieldLabel\n id={labelId}\n htmlFor={nativeSelectId}\n color={'theme-primary'}\n error={error}\n {...views?.label}\n >\n {label}\n </FieldLabel>\n )}\n <HiddenSelect\n id={nativeSelectId}\n name={name}\n options={options}\n onChange={onChange}\n value={value}\n isDisabled={isDisabled}\n isReadOnly={isReadOnly}\n isMulti={isMulti}\n // Real form semantics live on the native element: `required`\n // makes submission enforcement work even though the visible\n // combobox is a div.\n required={isRequired || undefined}\n onFocus={handleFocus}\n {...props}\n />\n <SelectBox\n options={options}\n size={size}\n views={views}\n value={value}\n isDisabled={isDisabled}\n placeholder={placeholder}\n removeOption={handleRemoveOption}\n />\n </FieldWrapper>\n <FieldIcons>\n {!isReadOnly && !isDisabled && (\n <Element\n display=\"flex\"\n alignItems=\"center\"\n justifyContent=\"center\"\n style={hide ? chevronAnimation.closed : chevronAnimation.open}\n >\n <ChevronIcon\n color=\"inherit\"\n widthHeight={IconSizes[size]}\n style={views.icon}\n orientation=\"down\"\n />\n </Element>\n )}\n </FieldIcons>\n {!hide && options.length > 0 && (\n <Portal>\n <Element\n ref={dropdownRef}\n onClick={(e: React.MouseEvent) => e.stopPropagation()}\n style={{\n ...getDropdownStyle(),\n ...dropdownAnimation.enter,\n }}\n >\n <DropDown\n size={size}\n views={views}\n options={options}\n callback={handleCallback}\n highlightedIndex={highlightedIndex}\n setHighlightedIndex={setHighlightedIndex}\n selectedValue={value}\n listboxId={listboxId}\n getOptionId={getOptionId}\n />\n </Element>\n </Portal>\n )}\n </FieldContent>\n </FieldContainer>\n );\n};\nexport default SelectView;\n",
|
|
138
|
+
"type": "registry:ui"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"path": "src/components/Icon/FixedIcons.native.tsx",
|
|
142
|
+
"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",
|
|
143
|
+
"type": "registry:ui"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"path": "src/components/Icon/FixedIcons.tsx",
|
|
147
|
+
"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",
|
|
148
|
+
"type": "registry:ui"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"path": "src/components/Icon/Icon.frame.tsx",
|
|
152
|
+
"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",
|
|
153
|
+
"type": "registry:ui"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"path": "src/components/Input/FieldContainer/FieldContainer.tsx",
|
|
157
|
+
"content": "/**\n * FieldContainer Component\n *\n * Renders a container for a form field with helper text and error handling\n * according to the design guidelines.\n */\n\nimport React from 'react';\n\nimport { HelperText } from '../HelperText/HelperText';\n\nimport { ContainerProps } from './FieldContainer/FieldContainer.props';\nimport { Text } from 'app-studio';\nimport { Vertical } from 'app-studio';\n\nexport const FieldContainer = React.forwardRef<HTMLDivElement, ContainerProps>(\n ({ children, helperText, error = false, errorId, views, ...props }, ref) => (\n <Vertical\n ref={ref}\n gap={4}\n position=\"relative\"\n width=\"100%\"\n boxSizing=\"border-box\"\n marginVertical={0}\n {...props}\n {...views?.container}\n >\n {children}\n\n {!error && helperText && (\n <HelperText marginTop={0} {...views?.helperText}>\n {helperText}\n </HelperText>\n )}\n\n {error && (\n <Text\n id={errorId}\n fontSize=\"11px\"\n lineHeight=\"16px\"\n marginTop={0}\n marginHorizontal={0}\n fontWeight=\"500\"\n color=\"theme-error\"\n transition=\"color 0.2s ease, opacity 0.2s ease\"\n {...views?.error}\n >\n {error}\n </Text>\n )}\n </Vertical>\n )\n);\n\nFieldContainer.displayName = 'FieldContainer';\n",
|
|
158
|
+
"type": "registry:ui"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"path": "src/components/Input/FieldContainer/FieldContainer/FieldContainer.props.ts",
|
|
162
|
+
"content": "import React from 'react';\nimport { TextFieldStyles } from '../../Input.type';\nimport { ViewProps } from 'app-studio';\n\nexport interface ContainerProps extends ViewProps {\n /**\n * The content to be rendered inside the container.\n */\n children?: React.ReactNode;\n /**\n * Specifies whether the input field should display an error state.\n * Accepts a boolean flag or an error message string.\n */\n error?: boolean | string;\n /**\n * Provides additional information or instructions about the field.\n */\n helperText?: string;\n /**\n * Id given to the rendered error message, so the field can reference it\n * through `aria-describedby`.\n */\n errorId?: string;\n /**\n * CSS styles for the select box and dropdown.\n */\n views?: TextFieldStyles;\n}\n",
|
|
163
|
+
"type": "registry:ui"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"path": "src/components/Input/FieldContent/FieldContent.tsx",
|
|
167
|
+
"content": "/**\n * FieldContent Component\n *\n * Renders the content area of a form field with various styles and states\n * according to the design guidelines.\n */\n\nimport React from 'react';\nimport { Typography, useTheme } from 'app-studio';\n\nimport { InputVariants, Shapes } from '../Input.style';\nimport { fieldSizeProps } from '../fieldSizes';\nimport { Horizontal } from 'app-studio';\n\nimport { ContentProps } from './FieldContent/FieldContent.props';\n\nexport const FieldContent: React.FC<ContentProps> = ({\n label,\n shadow,\n children,\n value,\n size = 'md',\n shape = 'default',\n variant = 'default',\n error = false,\n showLabel = false,\n isFocused = false,\n isHovered = false,\n isDisabled = false,\n isReadOnly = false,\n views = { pickerBox: {} },\n ...props\n}) => {\n const { themeMode } = useTheme();\n const isDark = themeMode === 'dark';\n\n // Determine if the field is in an interactive state\n const isInteractive = (isHovered || isFocused) && !isDisabled;\n const color = error\n ? 'color-red-500'\n : isInteractive\n ? 'theme-primary'\n : 'color-gray-200';\n\n return (\n <Horizontal\n gap={8}\n width=\"100%\"\n // Fields set `width: 100%` and then add their own padding/border, so they\n // only fit their container under border-box. Declared here rather than\n // relying on a host `* { box-sizing: border-box }` reset, whose absence\n // otherwise makes every field overflow its parent by padding + border.\n boxSizing=\"border-box\"\n display=\"flex\"\n flexWrap=\"nowrap\"\n alignItems=\"center\"\n justifyContent=\"flex-start\"\n borderStyle=\"solid\"\n borderColor={color}\n backgroundColor={isDark ? 'color-gray-900' : 'color-white'}\n fontSize={Typography.fontSizes[size]}\n cursor={isDisabled ? 'not-allowed' : isReadOnly ? 'auto' : 'text'}\n opacity={isDisabled ? 0.7 : 1}\n transition=\"border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease\"\n // Sizing belongs to the shell, not to each field: without it every field\n // rendered at roughly `md` height whatever size was asked for. Placed\n // before `views`/`props` so a caller can still override.\n {...fieldSizeProps(size)}\n {...(typeof shadow === 'object' && shadow !== null ? shadow : {})}\n {...Shapes[shape]}\n {...InputVariants[variant]}\n {...views?.container}\n {...props}\n >\n {children}\n </Horizontal>\n );\n};\n",
|
|
168
|
+
"type": "registry:ui"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"path": "src/components/Input/FieldContent/FieldContent/FieldContent.props.ts",
|
|
172
|
+
"content": "import React from 'react';\nimport { Shape, Size, TextFieldStyles, Variant } from '../../Input.type';\nimport { Shadow, ViewProps } from 'app-studio';\nimport { Elevation } from '../../../../utils/elevation';\n\nexport interface ContentProps extends Omit<ViewProps, 'size' | 'shadow'> {\n /**\n * Shadow applied to the field shell. Accepts the design-system primitives\n * (boolean / number / Shadow), the consumer's elevation token, or a raw\n * ViewProps-shaped style object used as a shadow descriptor.\n */\n shadow?: boolean | number | Shadow | Elevation | ViewProps;\n /**\n * The color of the Content component.\n */\n color?: string;\n /**\n * The content to be rendered inside the Content component.\n */\n children?: React.ReactNode;\n /**\n * Indicates whether the field has an error.\n */\n error?: boolean;\n /**\n * Indicates whether the field has label\n */\n showLabel?: boolean;\n /**\n * Determines whether the Content component is disabled. Default value is false.\n */\n isDisabled?: boolean;\n /**\n * Determines wheter the field is focused or not.\n */\n isFocused?: boolean;\n /**\n * Determines whether the Content component is currently being hovered over.\n */\n isHovered?: boolean;\n /**\n * Determines whether the Content component is read-only. Default value is false.\n */\n isReadOnly?: boolean;\n /**\n * The label associated with the Content component.\n */\n label?: string;\n /**\n * The default value of the field. Accepts the same shape as\n * HTMLInputElement.value (including `readonly string[]` for compatibility\n * with React 19's stricter Input typing).\n */\n value?: string | number | readonly string[];\n /**\n * Changes the Input style\n */\n variant?: Variant;\n /**\n * The shape of the Content component.\n */\n shape?: Shape;\n /**\n * The size of the Content component. Default value is \"md\".\n */\n size?: Size;\n /**\n * CSS styles applied to the Content component. Default value is an empty object.\n */\n views?: TextFieldStyles;\n}\n",
|
|
173
|
+
"type": "registry:ui"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"path": "src/components/Input/FieldIcons/FieldIcons.tsx",
|
|
177
|
+
"content": "import React from 'react';\nimport { Horizontal } from 'app-studio';\n\nimport { FieldIconsProps } from './FieldIcons/FieldIcons.props';\n\nexport const FieldIcons: React.FC<FieldIconsProps> = ({\n children,\n ...props\n}) => (\n <Horizontal\n gap={10}\n right={10}\n zIndex={500}\n flexWrap=\"nowrap\"\n alignItems=\"center\"\n justifyContent=\"flex-end\"\n {...props}\n >\n {children}\n </Horizontal>\n);\n",
|
|
178
|
+
"type": "registry:ui"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"path": "src/components/Input/FieldIcons/FieldIcons/FieldIcons.props.ts",
|
|
182
|
+
"content": "import { ImageProps } from 'app-studio';\n\nexport interface FieldIconsProps extends Omit<ImageProps, 'size'> {}\n",
|
|
183
|
+
"type": "registry:ui"
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"path": "src/components/Input/FieldLabel/FieldLabel.tsx",
|
|
187
|
+
"content": "/**\n * FieldLabel Component\n *\n * Renders a label for a form field with various styles and states\n * according to the design guidelines.\n */\n\nimport React from 'react';\nimport { Label } from '../../Form/Label/Label';\n\nimport { LabelSizes } from '../Input.style';\n\nimport { LabelProps } from './FieldLabel/FieldLabel.props';\n\nexport const FieldLabel: React.FC<LabelProps> = ({\n children,\n size = 'md',\n error = false,\n color = 'theme-primary',\n views = { label: {} },\n helperText,\n ...props\n}) => (\n <Label\n position=\"static\"\n fontSize={LabelSizes[size]}\n letterSpacing=\"-0.01em\"\n whiteSpace=\"nowrap\"\n fontWeight={500}\n // Full opacity always: dimming inherited ink to 0.72 at 11–12px lands\n // under the 4.5:1 contrast ratio and fails axe (serious) on every form\n // screen. De-emphasis, where a design wants it, belongs to a color token\n // that still clears the ratio — not to an opacity filter.\n color={error ? 'theme-error' : 'inherit'}\n transition=\"color 0.2s ease\"\n {...views['label']}\n {...props}\n >\n {children}\n </Label>\n);\n",
|
|
188
|
+
"type": "registry:ui"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"path": "src/components/Input/FieldLabel/FieldLabel/FieldLabel.props.ts",
|
|
192
|
+
"content": "import React from 'react';\nimport { Size } from '../../Input.type';\nimport { ViewProps } from 'app-studio';\n\nexport interface LabelProps extends Omit<ViewProps, 'size'> {\n /**\n * The content to be rendered inside the Label.\n */\n children?: React.ReactNode;\n\n /**\n * Indicates whether the field has an error.\n */\n error?: boolean;\n\n /**\n * The size of the Label\n */\n size?: Size;\n /**\n * The color of the Label\n */\n color?: string;\n /**\n * CSS styles applied to the Label\n */\n views?: { label?: ViewProps };\n /**\n * Helper text rendered below the label (hint / error / explanation).\n */\n helperText?: React.ReactNode;\n}\n",
|
|
193
|
+
"type": "registry:ui"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"path": "src/components/Input/fieldSizes.ts",
|
|
197
|
+
"content": "/**\n * The canonical size scale for form fields.\n *\n * One source of truth, because there used to be several: TextField and Select\n * each declared their own `fieldSizeStyles`, ComboBox declared a third in its\n * style file (with `xs` at 28px rather than 24px), and DatePicker, TagInput and\n * CountryPicker declared none at all — so they fell back to a fixed 10px\n * padding and rendered the same height at every size.\n *\n * The vertical metrics match `ButtonSizes`, so a Button and a field of the same\n * size line up in a row without any alignment work.\n *\n * `paddingVertical` is chosen so that padding + the input's natural line box +\n * the 1px border stays *under* `minHeight` at every size. `minHeight` is then\n * the binding constraint and each field renders at exactly its declared height,\n * while still being free to grow when its content wraps (TagInput chips, for\n * instance).\n */\n\nimport { Size } from './Input.type';\n\nexport interface FieldSizeMetrics {\n minHeight: number;\n paddingVertical: number;\n paddingHorizontal: number;\n}\n\nexport const FieldSizes: Record<Size, FieldSizeMetrics> = {\n xs: { minHeight: 24, paddingVertical: 4, paddingHorizontal: 10 },\n sm: { minHeight: 32, paddingVertical: 7, paddingHorizontal: 10 },\n md: { minHeight: 40, paddingVertical: 9, paddingHorizontal: 12 },\n lg: { minHeight: 48, paddingVertical: 11, paddingHorizontal: 14 },\n xl: { minHeight: 56, paddingVertical: 13, paddingHorizontal: 16 },\n};\n\n/** Field metrics as `ViewProps`, ready to spread onto the field shell. */\nexport const fieldSizeProps = (size: Size) => {\n const { minHeight, paddingVertical, paddingHorizontal } = FieldSizes[size];\n return {\n minHeight: `${minHeight}px`,\n paddingTop: `${paddingVertical}px`,\n paddingBottom: `${paddingVertical}px`,\n paddingLeft: `${paddingHorizontal}px`,\n paddingRight: `${paddingHorizontal}px`,\n };\n};\n",
|
|
198
|
+
"type": "registry:ui"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"path": "src/components/Input/FieldWrapper/FieldWrapper.props.ts",
|
|
202
|
+
"content": "import { ViewProps } from 'app-studio';\n\nexport interface WrapperFieldProps extends ViewProps {}\n",
|
|
203
|
+
"type": "registry:ui"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"path": "src/components/Input/FieldWrapper/FieldWrapper.tsx",
|
|
207
|
+
"content": "/**\n * FieldWrapper Component\n *\n * Renders a wrapper for form field content with appropriate styling\n * according to the design guidelines.\n */\n\nimport React from 'react';\n\nimport { Vertical } from 'app-studio';\n\nimport { WrapperFieldProps } from './FieldWrapper.props';\n\nexport const FieldWrapper: React.FC<WrapperFieldProps> = ({\n children,\n ...props\n}) => (\n <Vertical\n display=\"flex\"\n flexDirection=\"column\"\n gap={4}\n flex={1}\n width=\"100%\"\n maxWidth=\"100%\"\n boxSizing=\"border-box\"\n {...props}\n >\n {children}\n </Vertical>\n);\n",
|
|
208
|
+
"type": "registry:ui"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"path": "src/components/Input/HelperText/HelperText.props.ts",
|
|
212
|
+
"content": "import React from 'react';\nimport { TextFieldStyles } from '../Input.type';\nimport { ViewProps } from 'app-studio';\n\nexport interface HelperTextProps extends ViewProps {\n /**\n * The content to be rendered inside the HelperText.\n */\n children: React.ReactNode;\n /**\n * If true, changes the input style to indicate error.\n */\n error?: boolean;\n /**\n * CSS styles applied to the HelperText.\n */\n views?: TextFieldStyles;\n}\n",
|
|
213
|
+
"type": "registry:ui"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"path": "src/components/Input/HelperText/HelperText.tsx",
|
|
217
|
+
"content": "/**\n * HelperText Component\n *\n * Renders helper text for form fields with appropriate styling\n * according to the design guidelines.\n */\n\nimport React from 'react';\nimport { Text } from 'app-studio';\n\nimport { HelperTextProps } from './HelperText.props';\n\nexport const HelperText: React.FC<HelperTextProps> = ({\n children,\n views = { helperText: {} },\n ...props\n}) => (\n <Text\n fontSize=\"11px\"\n fontWeight=\"400\"\n letterSpacing=\"-0.01em\"\n lineHeight=\"16px\"\n marginVertical={0}\n marginHorizontal={0}\n color=\"color-gray-500\"\n transition=\"color 0.2s ease, opacity 0.2s ease\"\n {...(views['helperText'] as any)}\n {...props}\n >\n {children}\n </Text>\n);\n",
|
|
218
|
+
"type": "registry:ui"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"path": "src/components/Input/Input.style.ts",
|
|
222
|
+
"content": "/**\n * Input Styles\n *\n * Defines the styles for input components 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 { Shape, Size, Variant } from './Input.type';\n\n/**\n * Shape styles for input components with consistent border radius\n */\nexport const Shapes: Record<Shape, ViewProps> = {\n default: {\n borderRadius: '8px', // Consistent with design system (rounded-md)\n },\n square: {\n borderRadius: 0,\n },\n rounded: {\n borderRadius: '8px', // Consistent with design system (rounded-md)\n },\n pill: {\n borderRadius: '9999px', // Full rounded for pill shape\n },\n};\n\n/**\n * Label sizes following the 4px grid system\n */\nexport const LabelSizes: Record<Size, string> = {\n xs: '10px',\n sm: '11px',\n md: '11px',\n lg: '12px',\n xl: '12px',\n};\n\n/**\n * Input variants with consistent styling\n * Design tokens:\n * - Transitions: 200ms ease-out for smooth, natural feel\n * - Focus ring: 3px offset with 15% opacity primary color\n * - Hover: Subtle background tint for better affordance\n */\nexport const InputVariants: Record<Variant, ViewProps> = {\n outline: {\n borderWidth: '1px',\n borderStyle: 'solid',\n borderColor: 'color-gray-200',\n backgroundColor: 'transparent',\n color: 'inherit',\n transition:\n 'border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease',\n _hover: {\n borderColor: 'color-gray-300',\n },\n _focus: {\n borderColor: 'theme-primary',\n outline: 'none',\n boxShadow: '0 0 0 3px theme-primary',\n },\n _focusVisible: {\n borderColor: 'theme-primary',\n outline: 'none',\n boxShadow: '0 0 0 3px theme-primary',\n },\n },\n default: {\n borderWidth: '1px',\n borderStyle: 'solid',\n borderColor: 'color-gray-200',\n borderRadius: '8px',\n backgroundColor: 'transparent',\n color: 'inherit',\n transition:\n 'border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease',\n _hover: {\n borderColor: 'color-gray-300',\n },\n _focus: {\n borderColor: 'theme-primary',\n outline: 'none',\n boxShadow: '0 0 0 3px theme-primary',\n },\n _focusVisible: {\n borderColor: 'theme-primary',\n outline: 'none',\n boxShadow: '0 0 0 3px theme-primary',\n },\n },\n none: {\n border: 'none',\n style: { backgroundColor: 'transparent' },\n color: 'inherit',\n transition: 'background-color 0.2s ease',\n },\n};\n\n/*\n * `PadddingWithLabel` and `PaddingWithoutLabel` used to live here. They were\n * removed rather than renamed (the first was misspelled with three d's) because\n * they had stopped meaning anything:\n *\n * - the two were byte-identical, so the `showLabel ? a : b` choice between\n * them had no effect;\n * - both were size-independent 10px/12px, which is why every field rendered\n * at roughly `md` height whatever size was requested;\n * - their `media.mobile` block repeated the same values, and being a nested\n * media rule it would have won over the size scale at mobile widths —\n * quietly pinning `xs` and `xl` fields back to `md` padding on phones.\n *\n * Field padding now comes from `Input/fieldSizes` via FieldContent.\n */\n",
|
|
223
|
+
"type": "registry:ui"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"path": "src/components/Input/Input.type.ts",
|
|
227
|
+
"content": "import { ViewProps } from 'app-studio';\n\nexport type Variant = 'outline' | 'default' | 'none';\n\nexport type Shape = 'default' | 'square' | 'rounded' | 'pill';\n\nexport type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';\n\nexport type TextFieldStyles = {\n text?: ViewProps;\n label?: ViewProps;\n error?: ViewProps;\n helperText?: ViewProps;\n container?: ViewProps;\n};\n\nexport type Wrap = 'wrap' | 'nowrap' | 'wrap-reverse';\n\nexport type Justify =\n | 'flex-start'\n | 'center'\n | 'flex-end'\n | 'space-between'\n | 'space-around'\n | 'space-evenly';\n",
|
|
228
|
+
"type": "registry:ui"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"path": "src/components/pilot/select.ts",
|
|
232
|
+
"content": "export * from '../Form/Select/Select';\nexport type { SelectProps } from '../Form/Select/Select/Select.props';\n",
|
|
233
|
+
"type": "registry:ui"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"path": "src/components/Portal/Portal.tsx",
|
|
237
|
+
"content": "import React, { useEffect, useState } from 'react';\nimport ReactDOM from 'react-dom';\n\ninterface PortalProps {\n children: React.ReactNode;\n containerId?: string;\n}\n\nexport const Portal: React.FC<PortalProps> = ({\n children,\n containerId = 'portal-root',\n}) => {\n const [container, setContainer] = useState<HTMLElement | null>(null);\n\n useEffect(() => {\n let element = document.getElementById(containerId);\n let created = false;\n\n if (!element) {\n created = true;\n element = document.createElement('div');\n element.setAttribute('id', containerId);\n document.body.appendChild(element);\n }\n\n setContainer(element);\n\n return () => {\n // Clean up only if we created it and it's empty?\n // safer not to remove it if other components use it,\n // but if we created it, we might want to remove it if empty.\n // For simplicity, let's keep it.\n if (\n created &&\n element &&\n element.parentNode &&\n element.childNodes.length === 0\n ) {\n element.parentNode.removeChild(element);\n }\n };\n }, [containerId]);\n\n if (!container) return null;\n\n return ReactDOM.createPortal(children, container);\n};\n",
|
|
238
|
+
"type": "registry:ui"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"path": "src/utils/elevation.ts",
|
|
242
|
+
"content": "export type Elevation = {\n elevation: number;\n};\n",
|
|
243
|
+
"type": "registry:ui"
|
|
244
|
+
}
|
|
245
|
+
]
|
|
246
|
+
}
|