@sparrowengg/twigs-mobile 0.0.3 → 0.1.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 +206 -0
- package/lib/commonjs/alert/alert.js +1 -0
- package/lib/commonjs/alert/constants.js +1 -0
- package/lib/commonjs/alert/helpers.js +1 -0
- package/lib/commonjs/alert/icons.js +1 -0
- package/lib/commonjs/alert/index.js +1 -0
- package/lib/commonjs/alert/styles.js +1 -0
- package/lib/commonjs/alert/types.js +1 -0
- package/lib/commonjs/avatar/avatar-group.constants.js +1 -0
- package/lib/commonjs/avatar/avatar-group.helpers.js +1 -0
- package/lib/commonjs/avatar/avatar-group.js +1 -0
- package/lib/commonjs/avatar/avatar-group.styles.js +1 -0
- package/lib/commonjs/avatar/avatar-group.types.js +1 -0
- package/lib/commonjs/avatar/avatar.js +1 -0
- package/lib/commonjs/avatar/constants.js +1 -0
- package/lib/commonjs/avatar/helpers.js +1 -0
- package/lib/commonjs/avatar/index.js +1 -0
- package/lib/commonjs/avatar/styles.js +1 -0
- package/lib/commonjs/avatar/types.js +1 -0
- package/lib/commonjs/badge/badge.js +1 -0
- package/lib/commonjs/badge/constants.js +1 -0
- package/lib/commonjs/badge/helpers.js +1 -0
- package/lib/commonjs/badge/index.js +1 -0
- package/lib/commonjs/badge/styles.js +1 -0
- package/lib/commonjs/badge/types.js +1 -0
- package/lib/commonjs/bottom-sheet/bottom-sheet-header.js +1 -0
- package/lib/commonjs/bottom-sheet/bottom-sheet-modal.js +1 -0
- package/lib/commonjs/bottom-sheet/bottom-sheet.js +1 -0
- package/lib/commonjs/bottom-sheet/constants.js +1 -0
- package/lib/commonjs/bottom-sheet/index.js +1 -0
- package/lib/commonjs/bottom-sheet/styles.js +1 -0
- package/lib/commonjs/bottom-sheet/types.js +1 -0
- package/lib/commonjs/box/box.js +1 -0
- package/lib/commonjs/box/index.js +1 -0
- package/lib/commonjs/box/types.js +1 -0
- package/lib/commonjs/button/button.js +1 -0
- package/lib/commonjs/button/constants.js +1 -0
- package/lib/commonjs/button/helpers.js +1 -0
- package/lib/commonjs/button/index.js +1 -0
- package/lib/commonjs/button/styles.js +1 -0
- package/lib/commonjs/button/types.js +1 -0
- package/lib/commonjs/checkbox/checkbox.js +1 -0
- package/lib/commonjs/checkbox/constants.js +1 -0
- package/lib/commonjs/checkbox/icons.js +1 -0
- package/lib/commonjs/checkbox/index.js +1 -0
- package/lib/commonjs/checkbox/styles.js +1 -0
- package/lib/commonjs/checkbox/types.js +1 -0
- package/lib/commonjs/chip/chip.js +1 -0
- package/lib/commonjs/chip/constants.js +1 -0
- package/lib/commonjs/chip/helpers.js +1 -0
- package/lib/commonjs/chip/index.js +1 -0
- package/lib/commonjs/chip/styles.js +1 -0
- package/lib/commonjs/chip/types.js +1 -0
- package/lib/commonjs/context/index.js +1 -0
- package/lib/commonjs/context/theme-context.js +1 -0
- package/lib/commonjs/flex/flex.js +1 -0
- package/lib/commonjs/flex/index.js +1 -0
- package/lib/commonjs/flex/types.js +1 -0
- package/lib/commonjs/icon-button/constants.js +1 -0
- package/lib/commonjs/icon-button/helpers.js +1 -0
- package/lib/commonjs/icon-button/icon-button.js +1 -0
- package/lib/commonjs/icon-button/index.js +1 -0
- package/lib/commonjs/icon-button/types.js +1 -0
- package/lib/commonjs/index.js +1 -0
- package/lib/commonjs/link-button/constants.js +1 -0
- package/lib/commonjs/link-button/helpers.js +1 -0
- package/lib/commonjs/link-button/index.js +1 -0
- package/lib/commonjs/link-button/link-button.js +1 -0
- package/lib/commonjs/link-button/types.js +1 -0
- package/lib/commonjs/loader/circle-loader.js +1 -0
- package/lib/commonjs/loader/constants.js +1 -0
- package/lib/commonjs/loader/helpers.js +1 -0
- package/lib/commonjs/loader/index.js +1 -0
- package/lib/commonjs/loader/line-loader.js +1 -0
- package/lib/commonjs/loader/types.js +1 -0
- package/lib/commonjs/modal/constants.js +1 -0
- package/lib/commonjs/modal/helpers.js +1 -0
- package/lib/commonjs/modal/index.js +1 -0
- package/lib/commonjs/modal/modal-body.js +1 -0
- package/lib/commonjs/modal/modal-content.js +1 -0
- package/lib/commonjs/modal/modal-description.js +1 -0
- package/lib/commonjs/modal/modal-footer.js +1 -0
- package/lib/commonjs/modal/modal-header.js +1 -0
- package/lib/commonjs/modal/modal-title.js +1 -0
- package/lib/commonjs/modal/modal.js +1 -0
- package/lib/commonjs/modal/styles.js +1 -0
- package/lib/commonjs/modal/types.js +1 -0
- package/lib/commonjs/radio/constants.js +1 -0
- package/lib/commonjs/radio/index.js +1 -0
- package/lib/commonjs/radio/radio.js +1 -0
- package/lib/commonjs/radio/styles.js +1 -0
- package/lib/commonjs/radio/types.js +1 -0
- package/lib/commonjs/segmented-button/constants.js +1 -0
- package/lib/commonjs/segmented-button/helpers.js +1 -0
- package/lib/commonjs/segmented-button/index.js +1 -0
- package/lib/commonjs/segmented-button/segmented-button.js +1 -0
- package/lib/commonjs/segmented-button/styles.js +1 -0
- package/lib/commonjs/segmented-button/types.js +1 -0
- package/lib/commonjs/separator/index.js +1 -0
- package/lib/commonjs/separator/separator.js +1 -0
- package/lib/commonjs/separator/types.js +1 -0
- package/lib/commonjs/switch/constants.js +1 -0
- package/lib/commonjs/switch/index.js +1 -0
- package/lib/commonjs/switch/styles.js +1 -0
- package/lib/commonjs/switch/switch.js +1 -0
- package/lib/commonjs/switch/types.js +1 -0
- package/lib/commonjs/text/index.js +1 -0
- package/lib/commonjs/text/text.js +1 -0
- package/lib/commonjs/text/types.js +1 -0
- package/lib/commonjs/text-input/constants.js +1 -0
- package/lib/commonjs/text-input/index.js +1 -0
- package/lib/commonjs/text-input/styles.js +1 -0
- package/lib/commonjs/text-input/text-input.js +1 -0
- package/lib/commonjs/text-input/types.js +1 -0
- package/lib/commonjs/theme/default-theme.js +1 -0
- package/lib/commonjs/theme/index.js +1 -0
- package/lib/commonjs/toast/constants.js +1 -0
- package/lib/commonjs/toast/helpers.js +1 -0
- package/lib/commonjs/toast/icons.js +1 -0
- package/lib/commonjs/toast/index.js +1 -0
- package/lib/commonjs/toast/styles.js +1 -0
- package/lib/commonjs/toast/toast-container.js +1 -0
- package/lib/commonjs/toast/toast-content.js +1 -0
- package/lib/commonjs/toast/toast-item.js +1 -0
- package/lib/commonjs/toast/toast-provider.js +1 -0
- package/lib/commonjs/toast/toast.js +1 -0
- package/lib/commonjs/toast/types.js +1 -0
- package/lib/commonjs/toast/use-toast.js +1 -0
- package/lib/commonjs/tooltip/constants.js +1 -0
- package/lib/commonjs/tooltip/helpers.js +1 -0
- package/lib/commonjs/tooltip/index.js +1 -0
- package/lib/commonjs/tooltip/styles.js +1 -0
- package/lib/commonjs/tooltip/tooltip.js +1 -0
- package/lib/commonjs/tooltip/types.js +1 -0
- package/lib/commonjs/utils/index.js +1 -0
- package/lib/module/alert/alert.js +1 -0
- package/lib/module/alert/constants.js +1 -0
- package/lib/module/alert/helpers.js +1 -0
- package/lib/module/alert/icons.js +1 -0
- package/lib/module/alert/index.js +1 -0
- package/lib/module/alert/styles.js +1 -0
- package/lib/module/alert/types.js +1 -0
- package/lib/module/avatar/avatar-group.constants.js +1 -0
- package/lib/module/avatar/avatar-group.helpers.js +1 -0
- package/lib/module/avatar/avatar-group.js +1 -0
- package/lib/module/avatar/avatar-group.styles.js +1 -0
- package/lib/module/avatar/avatar-group.types.js +1 -0
- package/lib/module/avatar/avatar.js +1 -0
- package/lib/module/avatar/constants.js +1 -0
- package/lib/module/avatar/helpers.js +1 -0
- package/lib/module/avatar/index.js +1 -0
- package/lib/module/avatar/styles.js +1 -0
- package/lib/module/avatar/types.js +1 -0
- package/lib/module/badge/badge.js +1 -0
- package/lib/module/badge/constants.js +1 -0
- package/lib/module/badge/helpers.js +1 -0
- package/lib/module/badge/index.js +1 -0
- package/lib/module/badge/styles.js +1 -0
- package/lib/module/badge/types.js +1 -0
- package/lib/module/bottom-sheet/bottom-sheet-header.js +1 -0
- package/lib/module/bottom-sheet/bottom-sheet-modal.js +1 -0
- package/lib/module/bottom-sheet/bottom-sheet.js +1 -0
- package/lib/module/bottom-sheet/constants.js +1 -0
- package/lib/module/bottom-sheet/index.js +1 -0
- package/lib/module/bottom-sheet/styles.js +1 -0
- package/lib/module/bottom-sheet/types.js +1 -0
- package/lib/module/box/box.js +1 -0
- package/lib/module/box/index.js +1 -0
- package/lib/module/box/types.js +1 -0
- package/lib/module/button/button.js +1 -0
- package/lib/module/button/constants.js +1 -0
- package/lib/module/button/helpers.js +1 -0
- package/lib/module/button/index.js +1 -0
- package/lib/module/button/styles.js +1 -0
- package/lib/module/button/types.js +1 -0
- package/lib/module/checkbox/checkbox.js +1 -0
- package/lib/module/checkbox/constants.js +1 -0
- package/lib/module/checkbox/icons.js +1 -0
- package/lib/module/checkbox/index.js +1 -0
- package/lib/module/checkbox/styles.js +1 -0
- package/lib/module/checkbox/types.js +1 -0
- package/lib/module/chip/chip.js +1 -0
- package/lib/module/chip/constants.js +1 -0
- package/lib/module/chip/helpers.js +1 -0
- package/lib/module/chip/index.js +1 -0
- package/lib/module/chip/styles.js +1 -0
- package/lib/module/chip/types.js +1 -0
- package/lib/module/context/index.js +1 -0
- package/lib/module/context/theme-context.js +1 -0
- package/lib/module/flex/flex.js +1 -0
- package/lib/module/flex/index.js +1 -0
- package/lib/module/flex/types.js +1 -0
- package/lib/module/icon-button/constants.js +1 -0
- package/lib/module/icon-button/helpers.js +1 -0
- package/lib/module/icon-button/icon-button.js +1 -0
- package/lib/module/icon-button/index.js +1 -0
- package/lib/module/icon-button/types.js +1 -0
- package/lib/module/index.js +1 -0
- package/lib/module/link-button/constants.js +1 -0
- package/lib/module/link-button/helpers.js +1 -0
- package/lib/module/link-button/index.js +1 -0
- package/lib/module/link-button/link-button.js +1 -0
- package/lib/module/link-button/types.js +1 -0
- package/lib/module/loader/circle-loader.js +1 -0
- package/lib/module/loader/constants.js +1 -0
- package/lib/module/loader/helpers.js +1 -0
- package/lib/module/loader/index.js +1 -0
- package/lib/module/loader/line-loader.js +1 -0
- package/lib/module/loader/types.js +1 -0
- package/lib/module/modal/constants.js +1 -0
- package/lib/module/modal/helpers.js +1 -0
- package/lib/module/modal/index.js +1 -0
- package/lib/module/modal/modal-body.js +1 -0
- package/lib/module/modal/modal-content.js +1 -0
- package/lib/module/modal/modal-description.js +1 -0
- package/lib/module/modal/modal-footer.js +1 -0
- package/lib/module/modal/modal-header.js +1 -0
- package/lib/module/modal/modal-title.js +1 -0
- package/lib/module/modal/modal.js +1 -0
- package/lib/module/modal/styles.js +1 -0
- package/lib/module/modal/types.js +1 -0
- package/lib/module/radio/constants.js +1 -0
- package/lib/module/radio/index.js +1 -0
- package/lib/module/radio/radio.js +1 -0
- package/lib/module/radio/styles.js +1 -0
- package/lib/module/radio/types.js +1 -0
- package/lib/module/segmented-button/constants.js +1 -0
- package/lib/module/segmented-button/helpers.js +1 -0
- package/lib/module/segmented-button/index.js +1 -0
- package/lib/module/segmented-button/segmented-button.js +1 -0
- package/lib/module/segmented-button/styles.js +1 -0
- package/lib/module/segmented-button/types.js +1 -0
- package/lib/module/separator/index.js +1 -0
- package/lib/module/separator/separator.js +1 -0
- package/lib/module/separator/types.js +1 -0
- package/lib/module/switch/constants.js +1 -0
- package/lib/module/switch/index.js +1 -0
- package/lib/module/switch/styles.js +1 -0
- package/lib/module/switch/switch.js +1 -0
- package/lib/module/switch/types.js +1 -0
- package/lib/module/text/index.js +1 -0
- package/lib/module/text/text.js +1 -0
- package/lib/module/text/types.js +1 -0
- package/lib/module/text-input/constants.js +1 -0
- package/lib/module/text-input/index.js +1 -0
- package/lib/module/text-input/styles.js +1 -0
- package/lib/module/text-input/text-input.js +1 -0
- package/lib/module/text-input/types.js +1 -0
- package/lib/module/theme/default-theme.js +1 -0
- package/lib/module/theme/index.js +1 -0
- package/lib/module/toast/constants.js +1 -0
- package/lib/module/toast/helpers.js +1 -0
- package/lib/module/toast/icons.js +1 -0
- package/lib/module/toast/index.js +1 -0
- package/lib/module/toast/styles.js +1 -0
- package/lib/module/toast/toast-container.js +1 -0
- package/lib/module/toast/toast-content.js +1 -0
- package/lib/module/toast/toast-item.js +1 -0
- package/lib/module/toast/toast-provider.js +1 -0
- package/lib/module/toast/toast.js +1 -0
- package/lib/module/toast/types.js +1 -0
- package/lib/module/toast/use-toast.js +1 -0
- package/lib/module/tooltip/constants.js +1 -0
- package/lib/module/tooltip/helpers.js +1 -0
- package/lib/module/tooltip/index.js +1 -0
- package/lib/module/tooltip/styles.js +1 -0
- package/lib/module/tooltip/tooltip.js +1 -0
- package/lib/module/tooltip/types.js +1 -0
- package/lib/module/utils/index.js +1 -0
- package/lib/typescript/alert/alert.d.ts +6 -0
- package/lib/typescript/alert/constants.d.ts +18 -0
- package/lib/typescript/alert/helpers.d.ts +7 -0
- package/lib/typescript/alert/icons.d.ts +25 -0
- package/lib/typescript/alert/index.d.ts +3 -0
- package/lib/typescript/alert/styles.d.ts +25 -0
- package/lib/typescript/alert/types.d.ts +20 -0
- package/lib/typescript/avatar/avatar-group.constants.d.ts +18 -0
- package/lib/typescript/avatar/avatar-group.d.ts +6 -0
- package/lib/typescript/avatar/avatar-group.helpers.d.ts +12 -0
- package/lib/typescript/avatar/avatar-group.styles.d.ts +20 -0
- package/lib/typescript/avatar/avatar-group.types.d.ts +18 -0
- package/lib/typescript/avatar/avatar.d.ts +6 -0
- package/lib/typescript/avatar/constants.d.ts +10 -0
- package/lib/typescript/avatar/helpers.d.ts +6 -0
- package/lib/typescript/avatar/index.d.ts +5 -0
- package/lib/typescript/avatar/styles.d.ts +9 -0
- package/lib/typescript/avatar/types.d.ts +27 -0
- package/lib/typescript/badge/badge.d.ts +6 -0
- package/lib/typescript/badge/constants.d.ts +21 -0
- package/lib/typescript/badge/helpers.d.ts +9 -0
- package/lib/typescript/badge/index.d.ts +3 -0
- package/lib/typescript/badge/styles.d.ts +19 -0
- package/lib/typescript/badge/types.d.ts +24 -0
- package/lib/typescript/bottom-sheet/bottom-sheet-header.d.ts +4 -0
- package/lib/typescript/bottom-sheet/bottom-sheet-modal.d.ts +6 -0
- package/lib/typescript/bottom-sheet/bottom-sheet.d.ts +5 -0
- package/lib/typescript/bottom-sheet/constants.d.ts +10 -0
- package/lib/typescript/bottom-sheet/index.d.ts +7 -0
- package/lib/typescript/bottom-sheet/styles.d.ts +11 -0
- package/lib/typescript/bottom-sheet/types.d.ts +35 -0
- package/lib/typescript/box/box.d.ts +6 -0
- package/lib/typescript/box/index.d.ts +3 -0
- package/lib/typescript/box/types.d.ts +8 -0
- package/lib/typescript/button/button.d.ts +9 -0
- package/lib/typescript/button/constants.d.ts +30 -0
- package/lib/typescript/button/helpers.d.ts +39 -0
- package/lib/typescript/button/index.d.ts +3 -0
- package/lib/typescript/button/styles.d.ts +12 -0
- package/lib/typescript/button/types.d.ts +38 -0
- package/lib/typescript/checkbox/checkbox.d.ts +6 -0
- package/lib/typescript/checkbox/constants.d.ts +10 -0
- package/lib/typescript/checkbox/icons.d.ts +9 -0
- package/lib/typescript/checkbox/index.d.ts +3 -0
- package/lib/typescript/checkbox/styles.d.ts +25 -0
- package/lib/typescript/checkbox/types.d.ts +25 -0
- package/lib/typescript/chip/chip.d.ts +6 -0
- package/lib/typescript/chip/constants.d.ts +31 -0
- package/lib/typescript/chip/helpers.d.ts +11 -0
- package/lib/typescript/chip/index.d.ts +3 -0
- package/lib/typescript/chip/styles.d.ts +22 -0
- package/lib/typescript/chip/types.d.ts +31 -0
- package/lib/typescript/context/index.d.ts +2 -0
- package/lib/typescript/context/theme-context.d.ts +17 -0
- package/lib/typescript/flex/flex.d.ts +6 -0
- package/lib/typescript/flex/index.d.ts +3 -0
- package/lib/typescript/flex/types.d.ts +22 -0
- package/lib/typescript/icon-button/constants.d.ts +20 -0
- package/lib/typescript/icon-button/helpers.d.ts +13 -0
- package/lib/typescript/icon-button/icon-button.d.ts +6 -0
- package/lib/typescript/icon-button/index.d.ts +3 -0
- package/lib/typescript/icon-button/types.d.ts +31 -0
- package/lib/typescript/index.d.ts +49 -0
- package/lib/typescript/link-button/constants.d.ts +22 -0
- package/lib/typescript/link-button/helpers.d.ts +12 -0
- package/lib/typescript/link-button/index.d.ts +3 -0
- package/lib/typescript/link-button/link-button.d.ts +9 -0
- package/lib/typescript/link-button/types.d.ts +25 -0
- package/lib/typescript/loader/circle-loader.d.ts +6 -0
- package/lib/typescript/loader/constants.d.ts +8 -0
- package/lib/typescript/loader/helpers.d.ts +9 -0
- package/lib/typescript/loader/index.d.ts +4 -0
- package/lib/typescript/loader/line-loader.d.ts +6 -0
- package/lib/typescript/loader/types.d.ts +19 -0
- package/lib/typescript/modal/constants.d.ts +26 -0
- package/lib/typescript/modal/helpers.d.ts +8 -0
- package/lib/typescript/modal/index.d.ts +9 -0
- package/lib/typescript/modal/modal-body.d.ts +9 -0
- package/lib/typescript/modal/modal-content.d.ts +9 -0
- package/lib/typescript/modal/modal-description.d.ts +7 -0
- package/lib/typescript/modal/modal-footer.d.ts +9 -0
- package/lib/typescript/modal/modal-header.d.ts +9 -0
- package/lib/typescript/modal/modal-title.d.ts +7 -0
- package/lib/typescript/modal/modal.d.ts +12 -0
- package/lib/typescript/modal/styles.d.ts +38 -0
- package/lib/typescript/modal/types.d.ts +89 -0
- package/lib/typescript/radio/constants.d.ts +9 -0
- package/lib/typescript/radio/index.d.ts +3 -0
- package/lib/typescript/radio/radio.d.ts +6 -0
- package/lib/typescript/radio/styles.d.ts +24 -0
- package/lib/typescript/radio/types.d.ts +23 -0
- package/lib/typescript/segmented-button/constants.d.ts +21 -0
- package/lib/typescript/segmented-button/helpers.d.ts +8 -0
- package/lib/typescript/segmented-button/index.d.ts +3 -0
- package/lib/typescript/segmented-button/segmented-button.d.ts +6 -0
- package/lib/typescript/segmented-button/styles.d.ts +24 -0
- package/lib/typescript/segmented-button/types.d.ts +30 -0
- package/lib/typescript/separator/index.d.ts +3 -0
- package/lib/typescript/separator/separator.d.ts +6 -0
- package/lib/typescript/separator/types.d.ts +25 -0
- package/lib/typescript/switch/constants.d.ts +17 -0
- package/lib/typescript/switch/index.d.ts +3 -0
- package/lib/typescript/switch/styles.d.ts +12 -0
- package/lib/typescript/switch/switch.d.ts +6 -0
- package/lib/typescript/switch/types.d.ts +23 -0
- package/lib/typescript/text/index.d.ts +3 -0
- package/lib/typescript/text/text.d.ts +6 -0
- package/lib/typescript/text/types.d.ts +39 -0
- package/lib/typescript/text-input/constants.d.ts +13 -0
- package/lib/typescript/text-input/index.d.ts +3 -0
- package/lib/typescript/text-input/styles.d.ts +57 -0
- package/lib/typescript/text-input/text-input.d.ts +6 -0
- package/lib/typescript/text-input/types.d.ts +57 -0
- package/lib/typescript/theme/default-theme.d.ts +209 -0
- package/lib/typescript/theme/index.d.ts +4 -0
- package/lib/typescript/toast/constants.d.ts +42 -0
- package/lib/typescript/toast/helpers.d.ts +16 -0
- package/lib/typescript/toast/icons.d.ts +10 -0
- package/lib/typescript/toast/index.d.ts +5 -0
- package/lib/typescript/toast/styles.d.ts +47 -0
- package/lib/typescript/toast/toast-container.d.ts +4 -0
- package/lib/typescript/toast/toast-content.d.ts +8 -0
- package/lib/typescript/toast/toast-item.d.ts +4 -0
- package/lib/typescript/toast/toast-provider.d.ts +13 -0
- package/lib/typescript/toast/toast.d.ts +2 -0
- package/lib/typescript/toast/types.d.ts +123 -0
- package/lib/typescript/toast/use-toast.d.ts +56 -0
- package/lib/typescript/tooltip/constants.d.ts +20 -0
- package/lib/typescript/tooltip/helpers.d.ts +31 -0
- package/lib/typescript/tooltip/index.d.ts +3 -0
- package/lib/typescript/tooltip/styles.d.ts +24 -0
- package/lib/typescript/tooltip/tooltip.d.ts +6 -0
- package/lib/typescript/tooltip/types.d.ts +39 -0
- package/lib/typescript/utils/index.d.ts +91 -0
- package/package.json +134 -27
- package/dist/commonjs/Box/box.js +0 -83
- package/dist/commonjs/Box/box.js.map +0 -1
- package/dist/commonjs/Box/index.js +0 -17
- package/dist/commonjs/Box/index.js.map +0 -1
- package/dist/commonjs/ThemeProvider/TwigsThemeProvider.js +0 -20
- package/dist/commonjs/ThemeProvider/TwigsThemeProvider.js.map +0 -1
- package/dist/commonjs/ThemeProvider/index.js +0 -17
- package/dist/commonjs/ThemeProvider/index.js.map +0 -1
- package/dist/commonjs/config/theme.js +0 -201
- package/dist/commonjs/config/theme.js.map +0 -1
- package/dist/commonjs/index.js +0 -28
- package/dist/commonjs/index.js.map +0 -1
- package/dist/commonjs/utils/index.js +0 -2
- package/dist/commonjs/utils/index.js.map +0 -1
- package/dist/module/Box/box.js +0 -77
- package/dist/module/Box/box.js.map +0 -1
- package/dist/module/Box/index.js +0 -4
- package/dist/module/Box/index.js.map +0 -1
- package/dist/module/ThemeProvider/TwigsThemeProvider.js +0 -14
- package/dist/module/ThemeProvider/TwigsThemeProvider.js.map +0 -1
- package/dist/module/ThemeProvider/index.js +0 -4
- package/dist/module/ThemeProvider/index.js.map +0 -1
- package/dist/module/config/theme.js +0 -197
- package/dist/module/config/theme.js.map +0 -1
- package/dist/module/index.js +0 -5
- package/dist/module/index.js.map +0 -1
- package/dist/module/utils/index.js +0 -2
- package/dist/module/utils/index.js.map +0 -1
- package/dist/types/Box/box.d.ts +0 -23
- package/dist/types/Box/box.d.ts.map +0 -1
- package/dist/types/Box/index.d.ts +0 -2
- package/dist/types/Box/index.d.ts.map +0 -1
- package/dist/types/ThemeProvider/TwigsThemeProvider.d.ts +0 -8
- package/dist/types/ThemeProvider/TwigsThemeProvider.d.ts.map +0 -1
- package/dist/types/ThemeProvider/index.d.ts +0 -2
- package/dist/types/ThemeProvider/index.d.ts.map +0 -1
- package/dist/types/config/theme.d.ts +0 -195
- package/dist/types/config/theme.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -3
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/utils/index.d.ts +0 -1
- package/dist/types/utils/index.d.ts.map +0 -1
- package/src/Box/box.tsx +0 -82
- package/src/Box/index.tsx +0 -1
- package/src/ThemeProvider/TwigsThemeProvider.tsx +0 -13
- package/src/ThemeProvider/index.ts +0 -1
- package/src/config/theme.ts +0 -195
- package/src/index.ts +0 -2
- package/src/utils/index.ts +0 -0
- /package/{dist → lib}/commonjs/package.json +0 -0
- /package/{dist → lib}/module/package.json +0 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import type { ModalProps } from './types';
|
|
4
|
+
/**
|
|
5
|
+
* Modal root component wrapping React Native Modal.
|
|
6
|
+
* Provides a backdrop overlay and centers children.
|
|
7
|
+
*
|
|
8
|
+
* Mobile deviation: Uses `visible` prop instead of Radix Trigger/Close pattern.
|
|
9
|
+
* Android back button triggers `onClose` via `onRequestClose`.
|
|
10
|
+
*/
|
|
11
|
+
export declare const Modal: React.ForwardRefExoticComponent<ModalProps & React.RefAttributes<View>>;
|
|
12
|
+
//# sourceMappingURL=modal.d.ts.map
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export declare const styles: {
|
|
2
|
+
overlay: {
|
|
3
|
+
flex: number;
|
|
4
|
+
justifyContent: "center";
|
|
5
|
+
alignItems: "center";
|
|
6
|
+
};
|
|
7
|
+
backdropPressable: {
|
|
8
|
+
position: "absolute";
|
|
9
|
+
left: 0;
|
|
10
|
+
right: 0;
|
|
11
|
+
top: 0;
|
|
12
|
+
bottom: 0;
|
|
13
|
+
};
|
|
14
|
+
content: {
|
|
15
|
+
overflow: "hidden";
|
|
16
|
+
};
|
|
17
|
+
header: {
|
|
18
|
+
paddingTop: number;
|
|
19
|
+
paddingHorizontal: number;
|
|
20
|
+
gap: number;
|
|
21
|
+
alignItems: "center";
|
|
22
|
+
};
|
|
23
|
+
body: {
|
|
24
|
+
paddingHorizontal: number;
|
|
25
|
+
paddingVertical: number;
|
|
26
|
+
};
|
|
27
|
+
footer: {
|
|
28
|
+
paddingHorizontal: number;
|
|
29
|
+
paddingBottom: number;
|
|
30
|
+
paddingTop: number;
|
|
31
|
+
flexDirection: "row";
|
|
32
|
+
gap: number;
|
|
33
|
+
};
|
|
34
|
+
footerChild: {
|
|
35
|
+
flex: number;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { ViewProps, TextStyle } from 'react-native';
|
|
3
|
+
import type { CommonStyleProps, BaseAccessibilityProps } from '../utils';
|
|
4
|
+
/** Modal size variants controlling content width */
|
|
5
|
+
export type ModalSize = 'sm' | 'md' | 'lg' | 'full';
|
|
6
|
+
/** Modal animation type */
|
|
7
|
+
export type ModalAnimationType = 'none' | 'fade' | 'slide';
|
|
8
|
+
/**
|
|
9
|
+
* Props for the Modal root component.
|
|
10
|
+
* Wraps React Native Modal with a backdrop overlay and centers children.
|
|
11
|
+
*/
|
|
12
|
+
export interface ModalProps extends BaseAccessibilityProps {
|
|
13
|
+
/** Whether the modal is visible */
|
|
14
|
+
visible: boolean;
|
|
15
|
+
/** Called when the modal should close (backdrop press, Android back button) */
|
|
16
|
+
onClose?: () => void;
|
|
17
|
+
/** Whether pressing the backdrop closes the modal (default: true) */
|
|
18
|
+
closeOnBackdropPress?: boolean;
|
|
19
|
+
/** Animation type for the modal (default: 'fade') */
|
|
20
|
+
animationType?: ModalAnimationType;
|
|
21
|
+
/** Modal content — typically a ModalContent with sub-components */
|
|
22
|
+
children: ReactNode;
|
|
23
|
+
/** Test ID for the overlay container */
|
|
24
|
+
testID?: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Props for the ModalContent component.
|
|
28
|
+
* White card container with rounded corners and shadow.
|
|
29
|
+
*/
|
|
30
|
+
export interface ModalContentProps extends Omit<ViewProps, 'style'>, CommonStyleProps, BaseAccessibilityProps {
|
|
31
|
+
/** Size variant controlling width (default: 'md') */
|
|
32
|
+
size?: ModalSize;
|
|
33
|
+
/** Content children — ModalHeader, ModalBody, ModalFooter, or custom content */
|
|
34
|
+
children: ReactNode;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Props for the ModalHeader component.
|
|
38
|
+
* Header section containing title and description.
|
|
39
|
+
*/
|
|
40
|
+
export interface ModalHeaderProps extends Omit<ViewProps, 'style'>, CommonStyleProps {
|
|
41
|
+
/** Header children — typically ModalTitle and ModalDescription */
|
|
42
|
+
children: ReactNode;
|
|
43
|
+
}
|
|
44
|
+
/** Common text style props for text-based sub-components */
|
|
45
|
+
export interface ModalTextStyleProps {
|
|
46
|
+
/** Custom text styles (applied before style) */
|
|
47
|
+
css?: TextStyle;
|
|
48
|
+
/** Custom text styles (applied last for overrides) */
|
|
49
|
+
style?: TextStyle;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Props for the ModalTitle component.
|
|
53
|
+
* Title text displayed in the modal header.
|
|
54
|
+
*/
|
|
55
|
+
export interface ModalTitleProps extends ModalTextStyleProps {
|
|
56
|
+
/** Title text content */
|
|
57
|
+
children: ReactNode;
|
|
58
|
+
/** Test ID */
|
|
59
|
+
testID?: string;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Props for the ModalDescription component.
|
|
63
|
+
* Description text displayed below the title.
|
|
64
|
+
*/
|
|
65
|
+
export interface ModalDescriptionProps extends ModalTextStyleProps {
|
|
66
|
+
/** Description text content */
|
|
67
|
+
children: ReactNode;
|
|
68
|
+
/** Test ID */
|
|
69
|
+
testID?: string;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Props for the ModalBody component.
|
|
73
|
+
* Main content area between header and footer.
|
|
74
|
+
*/
|
|
75
|
+
export interface ModalBodyProps extends Omit<ViewProps, 'style'>, CommonStyleProps {
|
|
76
|
+
/** Body content */
|
|
77
|
+
children: ReactNode;
|
|
78
|
+
/** Whether the body content is scrollable (default: false) */
|
|
79
|
+
scrollable?: boolean;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Props for the ModalFooter component.
|
|
83
|
+
* Action button area at the bottom of the modal.
|
|
84
|
+
*/
|
|
85
|
+
export interface ModalFooterProps extends Omit<ViewProps, 'style'>, CommonStyleProps {
|
|
86
|
+
/** Footer children — typically Button components */
|
|
87
|
+
children: ReactNode;
|
|
88
|
+
}
|
|
89
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { RadioSize } from './types';
|
|
2
|
+
export interface RadioSizeConfig {
|
|
3
|
+
outerSize: number;
|
|
4
|
+
innerSize: number;
|
|
5
|
+
}
|
|
6
|
+
export declare const RADIO_SIZE_CONFIGS: Record<RadioSize, RadioSizeConfig>;
|
|
7
|
+
/** Resolved size config for a given radio size. */
|
|
8
|
+
export declare const getRadioSizeConfig: (size: RadioSize) => RadioSizeConfig;
|
|
9
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import type { RadioProps } from './types';
|
|
4
|
+
/** Radio button with outer ring and inner dot, supporting an optional label. */
|
|
5
|
+
export declare const Radio: React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<View>>;
|
|
6
|
+
//# sourceMappingURL=radio.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { TwigsTheme } from '../theme';
|
|
2
|
+
export declare const createRadioStyles: (theme: TwigsTheme) => {
|
|
3
|
+
outerCircle: {
|
|
4
|
+
borderWidth: number;
|
|
5
|
+
backgroundColor: string;
|
|
6
|
+
alignItems: "center";
|
|
7
|
+
justifyContent: "center";
|
|
8
|
+
};
|
|
9
|
+
innerCircle: {
|
|
10
|
+
backgroundColor: string;
|
|
11
|
+
};
|
|
12
|
+
labelContainer: {
|
|
13
|
+
marginLeft: number;
|
|
14
|
+
};
|
|
15
|
+
container: {
|
|
16
|
+
flexDirection: "row";
|
|
17
|
+
alignItems: "center";
|
|
18
|
+
alignSelf: "flex-start";
|
|
19
|
+
};
|
|
20
|
+
containerDisabled: {
|
|
21
|
+
opacity: number;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ReactNode, RefObject } from 'react';
|
|
2
|
+
import { View, ViewStyle } from 'react-native';
|
|
3
|
+
import { CommonStyleProps, BaseAccessibilityProps } from '../utils';
|
|
4
|
+
export type RadioSize = 'sm' | 'md';
|
|
5
|
+
export interface RadioProps extends CommonStyleProps, BaseAccessibilityProps {
|
|
6
|
+
/** Whether this radio button is selected. @default false */
|
|
7
|
+
selected?: boolean;
|
|
8
|
+
/** Called with the toggled value when pressed. */
|
|
9
|
+
onSelect?: (selected: boolean) => void;
|
|
10
|
+
/** Whether the radio button is disabled. @default false */
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
/** Optional label rendered beside the radio circle. */
|
|
13
|
+
children?: ReactNode;
|
|
14
|
+
/** Size preset. @default 'sm' */
|
|
15
|
+
size?: RadioSize;
|
|
16
|
+
/** Ref forwarded to the outer Pressable container. */
|
|
17
|
+
containerRef?: RefObject<View>;
|
|
18
|
+
/** Style overrides for the label container. */
|
|
19
|
+
labelStyle?: ViewStyle;
|
|
20
|
+
/** Style overrides for the outer radio circle. */
|
|
21
|
+
radioStyle?: ViewStyle;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { SegmentedButtonRounded } from './types';
|
|
2
|
+
export declare const CONTAINER_HEIGHT = 48;
|
|
3
|
+
export declare const SEGMENT_PADDING_HORIZONTAL = 20;
|
|
4
|
+
export declare const SEGMENT_FONT_SIZE = 14;
|
|
5
|
+
export declare const SEGMENT_LINE_HEIGHT = 20;
|
|
6
|
+
export declare const SEGMENT_LETTER_SPACING = 0.2;
|
|
7
|
+
export declare const SELECTED_BORDER_WIDTH = 1.5;
|
|
8
|
+
export declare const SELECTED_SHADOW: {
|
|
9
|
+
readonly shadowOffset: {
|
|
10
|
+
readonly width: 1;
|
|
11
|
+
readonly height: 1;
|
|
12
|
+
};
|
|
13
|
+
readonly shadowOpacity: 0.04;
|
|
14
|
+
readonly shadowRadius: 5;
|
|
15
|
+
};
|
|
16
|
+
export declare const SELECTED_ELEVATION = 2;
|
|
17
|
+
export declare const CONTAINER_BG_OPACITY = 0.08;
|
|
18
|
+
export declare const ROUNDED_RADII: Record<SegmentedButtonRounded, number>;
|
|
19
|
+
export declare const DEFAULT_ROUNDED: SegmentedButtonRounded;
|
|
20
|
+
export declare const SLIDE_DURATION = 200;
|
|
21
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ViewStyle, TextStyle } from 'react-native';
|
|
2
|
+
import type { TwigsTheme } from '../theme';
|
|
3
|
+
import type { SegmentedButtonRounded } from './types';
|
|
4
|
+
export declare function getContainerStyles(theme: TwigsTheme, rounded: SegmentedButtonRounded, fullWidth: boolean): ViewStyle;
|
|
5
|
+
export declare function getIndicatorStyles(theme: TwigsTheme, rounded: SegmentedButtonRounded): ViewStyle;
|
|
6
|
+
export declare function getSegmentTextStyles(theme: TwigsTheme, selected: boolean): TextStyle;
|
|
7
|
+
export declare function getSegmentPressedStyles(theme: TwigsTheme, rounded: SegmentedButtonRounded): ViewStyle;
|
|
8
|
+
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import type { SegmentedButtonProps } from './types';
|
|
4
|
+
/** Horizontal group of mutually exclusive options with an animated sliding indicator. */
|
|
5
|
+
export declare const SegmentedButton: React.ForwardRefExoticComponent<SegmentedButtonProps & React.RefAttributes<View>>;
|
|
6
|
+
//# sourceMappingURL=segmented-button.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare const styles: {
|
|
2
|
+
container: {
|
|
3
|
+
flexDirection: "row";
|
|
4
|
+
alignItems: "center";
|
|
5
|
+
overflow: "hidden";
|
|
6
|
+
};
|
|
7
|
+
indicator: {
|
|
8
|
+
position: "absolute";
|
|
9
|
+
top: number;
|
|
10
|
+
bottom: number;
|
|
11
|
+
};
|
|
12
|
+
segment: {
|
|
13
|
+
flex: number;
|
|
14
|
+
flexDirection: "row";
|
|
15
|
+
alignItems: "center";
|
|
16
|
+
justifyContent: "center";
|
|
17
|
+
alignSelf: "stretch";
|
|
18
|
+
paddingHorizontal: number;
|
|
19
|
+
};
|
|
20
|
+
disabled: {
|
|
21
|
+
opacity: number;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { ViewProps } from 'react-native';
|
|
2
|
+
import type { CommonStyleProps, BaseAccessibilityProps } from '../utils';
|
|
3
|
+
/** Individual option in a segmented button group. */
|
|
4
|
+
export interface SegmentedButtonOption {
|
|
5
|
+
/** Unique value identifying this option. */
|
|
6
|
+
value: string;
|
|
7
|
+
/** Display label for this option. */
|
|
8
|
+
label: string;
|
|
9
|
+
/** Whether this individual option is disabled. */
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export type SegmentedButtonRounded = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | 'full';
|
|
13
|
+
/** Props for the SegmentedButton component. */
|
|
14
|
+
export interface SegmentedButtonProps extends Omit<ViewProps, 'style'>, CommonStyleProps, BaseAccessibilityProps {
|
|
15
|
+
/** Array of options to display as segments. */
|
|
16
|
+
options: SegmentedButtonOption[];
|
|
17
|
+
/** Currently selected value (controlled). */
|
|
18
|
+
value?: string;
|
|
19
|
+
/** Default selected value (uncontrolled). */
|
|
20
|
+
defaultValue?: string;
|
|
21
|
+
/** Called when the selected value changes. */
|
|
22
|
+
onChange?: (value: string) => void;
|
|
23
|
+
/** Border radius variant of the container and segments. */
|
|
24
|
+
rounded?: SegmentedButtonRounded;
|
|
25
|
+
/** Whether the entire segmented button is disabled. */
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
/** Whether the component should stretch to fill its parent width. */
|
|
28
|
+
fullWidth?: boolean;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import type { SeparatorProps } from './types';
|
|
4
|
+
/** Visual divider line, horizontal or vertical, with optional decorative mode. */
|
|
5
|
+
export declare const Separator: React.ForwardRefExoticComponent<SeparatorProps & React.RefAttributes<View>>;
|
|
6
|
+
//# sourceMappingURL=separator.d.ts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { MarginProps, CommonStyleProps, BaseAccessibilityProps } from '../utils';
|
|
2
|
+
export type SeparatorOrientation = 'horizontal' | 'vertical';
|
|
3
|
+
export interface SeparatorProps extends MarginProps, CommonStyleProps, BaseAccessibilityProps {
|
|
4
|
+
/**
|
|
5
|
+
* The orientation of the separator.
|
|
6
|
+
* @default 'horizontal'
|
|
7
|
+
*/
|
|
8
|
+
orientation?: SeparatorOrientation;
|
|
9
|
+
/**
|
|
10
|
+
* Custom color for the separator line.
|
|
11
|
+
* @default theme.colors.neutral200
|
|
12
|
+
*/
|
|
13
|
+
color?: string;
|
|
14
|
+
/**
|
|
15
|
+
* When true, the separator is purely decorative and will be hidden
|
|
16
|
+
* from assistive technologies.
|
|
17
|
+
* @default false
|
|
18
|
+
*/
|
|
19
|
+
decorative?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Test ID for testing purposes.
|
|
22
|
+
*/
|
|
23
|
+
testID?: string;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { SwitchColor, SwitchSize } from './types';
|
|
2
|
+
export interface SwitchSizeConfig {
|
|
3
|
+
track: {
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
};
|
|
7
|
+
thumb: {
|
|
8
|
+
size: number;
|
|
9
|
+
offPosition: number;
|
|
10
|
+
onPosition: number;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export declare const SWITCH_SIZE_CONFIGS: Record<SwitchSize, SwitchSizeConfig>;
|
|
14
|
+
export declare const DEFAULT_SWITCH_SIZE: SwitchSize;
|
|
15
|
+
export declare const CHECKED_COLOR_MAP: Record<SwitchColor, 'primary500' | 'secondary600'>;
|
|
16
|
+
export declare const getSwitchSizeConfig: (size: SwitchSize) => SwitchSizeConfig;
|
|
17
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { TwigsTheme } from '../theme';
|
|
2
|
+
export declare const createSwitchStyles: (theme: TwigsTheme) => {
|
|
3
|
+
switchBase: {
|
|
4
|
+
borderRadius: number;
|
|
5
|
+
justifyContent: "center";
|
|
6
|
+
};
|
|
7
|
+
thumbBase: {
|
|
8
|
+
borderRadius: number;
|
|
9
|
+
backgroundColor: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import type { SwitchProps } from './types';
|
|
4
|
+
/** Toggle switch with animated thumb, supporting controlled and uncontrolled modes. */
|
|
5
|
+
export declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<View>>;
|
|
6
|
+
//# sourceMappingURL=switch.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { PressableProps } from 'react-native';
|
|
2
|
+
import type { BaseAccessibilityProps, CommonStyleProps } from '../utils';
|
|
3
|
+
export type SwitchSize = 'sm' | 'md';
|
|
4
|
+
export type SwitchColor = 'primary' | 'secondary';
|
|
5
|
+
export interface SwitchProps extends Omit<PressableProps, 'onPress' | 'style'>, CommonStyleProps, BaseAccessibilityProps {
|
|
6
|
+
/** Controlled toggle state (RN-style API). Alias for `checked`. */
|
|
7
|
+
value?: boolean;
|
|
8
|
+
/** Called with the next value when toggled (RN-style API). Alias for `onChange`. */
|
|
9
|
+
onValueChange?: (value: boolean) => void;
|
|
10
|
+
/** Controlled toggle state (web-style API). Takes precedence over `value`. */
|
|
11
|
+
checked?: boolean;
|
|
12
|
+
/** Initial state for uncontrolled usage. @default false */
|
|
13
|
+
defaultChecked?: boolean;
|
|
14
|
+
/** Called with the next checked value when toggled (web-style API). */
|
|
15
|
+
onChange?: (checked: boolean) => void;
|
|
16
|
+
/** Whether the switch is disabled. @default false */
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
/** Size preset. @default 'md' */
|
|
19
|
+
size?: SwitchSize;
|
|
20
|
+
/** Color preset. @default 'primary' */
|
|
21
|
+
color?: SwitchColor;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Text as RNText } from 'react-native';
|
|
3
|
+
import type { TextProps } from './types';
|
|
4
|
+
/** Themed text component with typography, spacing, and truncation props. */
|
|
5
|
+
export declare const Text: React.ForwardRefExoticComponent<TextProps & React.RefAttributes<RNText>>;
|
|
6
|
+
//# sourceMappingURL=text.d.ts.map
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { AccessibilityRole, TextStyle } from 'react-native';
|
|
3
|
+
import { MarginProps, PaddingProps } from '../utils';
|
|
4
|
+
/**
|
|
5
|
+
* Props for the Text component.
|
|
6
|
+
* Extends `MarginProps` and `PaddingProps` for spacing shorthand.
|
|
7
|
+
* `css` is applied before `style` for layered text style overrides.
|
|
8
|
+
*/
|
|
9
|
+
export interface TextProps extends MarginProps, PaddingProps {
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
/** Text styles applied before `style`. */
|
|
12
|
+
css?: TextStyle;
|
|
13
|
+
/** Text styles applied last for final overrides. */
|
|
14
|
+
style?: TextStyle;
|
|
15
|
+
fontSize?: number;
|
|
16
|
+
fontFamily?: string;
|
|
17
|
+
color?: string;
|
|
18
|
+
fontWeight?: 'normal' | 'bold' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
|
|
19
|
+
textAlign?: 'left' | 'center' | 'right' | 'justify';
|
|
20
|
+
textDecoration?: 'none' | 'underline' | 'line-through' | 'underline line-through';
|
|
21
|
+
textTransform?: 'none' | 'capitalize' | 'uppercase' | 'lowercase';
|
|
22
|
+
fontStyle?: 'normal' | 'italic';
|
|
23
|
+
lineHeight?: number;
|
|
24
|
+
letterSpacing?: number;
|
|
25
|
+
numberOfLines?: number;
|
|
26
|
+
ellipsizeMode?: 'head' | 'middle' | 'tail' | 'clip';
|
|
27
|
+
accessible?: boolean;
|
|
28
|
+
accessibilityRole?: AccessibilityRole;
|
|
29
|
+
accessibilityLabel?: string;
|
|
30
|
+
accessibilityHint?: string;
|
|
31
|
+
accessibilityState?: {
|
|
32
|
+
disabled?: boolean;
|
|
33
|
+
selected?: boolean;
|
|
34
|
+
checked?: boolean | 'mixed';
|
|
35
|
+
busy?: boolean;
|
|
36
|
+
expanded?: boolean;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { TextInputSize } from './types';
|
|
2
|
+
export interface TextInputSizeConfig {
|
|
3
|
+
height: number;
|
|
4
|
+
borderRadius: number;
|
|
5
|
+
fontSize: number;
|
|
6
|
+
paddingHorizontal: number;
|
|
7
|
+
leftIconPadding: number;
|
|
8
|
+
rightIconPadding: number;
|
|
9
|
+
iconSize: number;
|
|
10
|
+
}
|
|
11
|
+
/** Resolved size config for a given text-input size. */
|
|
12
|
+
export declare const getSizeConfig: (size: TextInputSize) => TextInputSizeConfig;
|
|
13
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { TwigsTheme } from '../theme';
|
|
2
|
+
export declare const createTextInputStyles: (theme: TwigsTheme) => {
|
|
3
|
+
container: {
|
|
4
|
+
position: "relative";
|
|
5
|
+
width: "100%";
|
|
6
|
+
};
|
|
7
|
+
containerDisabled: {
|
|
8
|
+
opacity: number;
|
|
9
|
+
};
|
|
10
|
+
inputWrapper: {
|
|
11
|
+
position: "relative";
|
|
12
|
+
width: "100%";
|
|
13
|
+
borderWidth: number;
|
|
14
|
+
borderStyle: "solid";
|
|
15
|
+
};
|
|
16
|
+
inputWrapperDisabled: {
|
|
17
|
+
backgroundColor: string;
|
|
18
|
+
opacity: number;
|
|
19
|
+
};
|
|
20
|
+
textInput: {
|
|
21
|
+
borderWidth: number;
|
|
22
|
+
backgroundColor: string;
|
|
23
|
+
textAlignVertical: "center";
|
|
24
|
+
fontFamily?: string | undefined | undefined;
|
|
25
|
+
fontWeight?: "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "medium" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined | undefined;
|
|
26
|
+
flex: number;
|
|
27
|
+
margin: number;
|
|
28
|
+
padding: number;
|
|
29
|
+
color: string;
|
|
30
|
+
};
|
|
31
|
+
iconContainer: {
|
|
32
|
+
position: "absolute";
|
|
33
|
+
height: "100%";
|
|
34
|
+
zIndex: number;
|
|
35
|
+
};
|
|
36
|
+
iconContainerLeft: {
|
|
37
|
+
left: number;
|
|
38
|
+
};
|
|
39
|
+
iconContainerLeftElement: {
|
|
40
|
+
left: number;
|
|
41
|
+
};
|
|
42
|
+
iconContainerRight: {
|
|
43
|
+
right: number;
|
|
44
|
+
};
|
|
45
|
+
iconContainerRightElement: {
|
|
46
|
+
right: number;
|
|
47
|
+
};
|
|
48
|
+
iconButtonContainer: {
|
|
49
|
+
display: "flex";
|
|
50
|
+
alignItems: "center";
|
|
51
|
+
justifyContent: "center";
|
|
52
|
+
};
|
|
53
|
+
fullWidth: {
|
|
54
|
+
width: "100%";
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TextInput as RNTextInput } from 'react-native';
|
|
3
|
+
import type { TextInputProps } from './types';
|
|
4
|
+
/** Themed text input with size/variant presets, icon slots, error state, and password toggle. */
|
|
5
|
+
export declare const TextInput: React.ForwardRefExoticComponent<TextInputProps & React.RefAttributes<RNTextInput>>;
|
|
6
|
+
//# sourceMappingURL=text-input.d.ts.map
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { ReactElement, ReactNode } from 'react';
|
|
2
|
+
import type { TextInputProps as RNTextInputProps, TextStyle } from 'react-native';
|
|
3
|
+
import type { MarginProps, PaddingProps, CommonStyleProps, BaseAccessibilityProps } from '../utils';
|
|
4
|
+
export type TextInputSize = 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
5
|
+
export type TextInputVariant = 'default' | 'filled';
|
|
6
|
+
export interface TextInputProps extends MarginProps, PaddingProps, CommonStyleProps, BaseAccessibilityProps {
|
|
7
|
+
/** Size preset controlling height, font size, and icon dimensions. @default 'md' */
|
|
8
|
+
size?: TextInputSize;
|
|
9
|
+
/** Visual variant. @default 'default' */
|
|
10
|
+
variant?: TextInputVariant;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
value?: string;
|
|
13
|
+
defaultValue?: string;
|
|
14
|
+
onChangeText?: (text: string) => void;
|
|
15
|
+
/** Icon rendered inside the input on the left. */
|
|
16
|
+
leftIcon?: ReactElement;
|
|
17
|
+
/** Icon rendered inside the input on the right. Acts as password toggle when `secureTextEntry` is set. */
|
|
18
|
+
rightIcon?: ReactElement;
|
|
19
|
+
/** Arbitrary element rendered on the right (outside the icon slot). */
|
|
20
|
+
rightElement?: ReactElement;
|
|
21
|
+
/** Arbitrary element rendered on the left (outside the icon slot). */
|
|
22
|
+
leftElement?: ReactElement;
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
/** When true, the bottom border turns red to indicate a validation error. */
|
|
25
|
+
errorBorder?: boolean;
|
|
26
|
+
placeholderTextColor?: string;
|
|
27
|
+
cursorColor?: string;
|
|
28
|
+
secureTextEntry?: boolean;
|
|
29
|
+
/** Controlled password visibility state — pair with `setShowPassword`. */
|
|
30
|
+
showPassword?: boolean;
|
|
31
|
+
/** Toggle callback for password visibility. */
|
|
32
|
+
setShowPassword?: (show: boolean) => void;
|
|
33
|
+
/** Style overrides applied to the inner RNTextInput. */
|
|
34
|
+
inputStyle?: TextStyle;
|
|
35
|
+
readOnly?: boolean;
|
|
36
|
+
autoCapitalize?: RNTextInputProps['autoCapitalize'];
|
|
37
|
+
autoCorrect?: RNTextInputProps['autoCorrect'];
|
|
38
|
+
autoFocus?: RNTextInputProps['autoFocus'];
|
|
39
|
+
blurOnSubmit?: RNTextInputProps['blurOnSubmit'];
|
|
40
|
+
editable?: RNTextInputProps['editable'];
|
|
41
|
+
keyboardType?: RNTextInputProps['keyboardType'];
|
|
42
|
+
maxLength?: RNTextInputProps['maxLength'];
|
|
43
|
+
multiline?: RNTextInputProps['multiline'];
|
|
44
|
+
numberOfLines?: RNTextInputProps['numberOfLines'];
|
|
45
|
+
onBlur?: RNTextInputProps['onBlur'];
|
|
46
|
+
onFocus?: RNTextInputProps['onFocus'];
|
|
47
|
+
onSubmitEditing?: RNTextInputProps['onSubmitEditing'];
|
|
48
|
+
returnKeyType?: RNTextInputProps['returnKeyType'];
|
|
49
|
+
textContentType?: RNTextInputProps['textContentType'];
|
|
50
|
+
/** Content rendered below the input (e.g. helper text). */
|
|
51
|
+
children?: ReactNode;
|
|
52
|
+
/** Error message shown below the input with `accessibilityRole="alert"`. */
|
|
53
|
+
errorMessage?: string;
|
|
54
|
+
accessibilityLabel?: string;
|
|
55
|
+
accessibilityHint?: string;
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=types.d.ts.map
|