@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,25 @@
|
|
|
1
|
+
import type { TwigsTheme } from '../theme';
|
|
2
|
+
export declare const createCheckboxStyles: (theme: TwigsTheme) => {
|
|
3
|
+
checkboxBase: {
|
|
4
|
+
borderRadius: number;
|
|
5
|
+
alignItems: "center";
|
|
6
|
+
justifyContent: "center";
|
|
7
|
+
borderWidth: number;
|
|
8
|
+
};
|
|
9
|
+
iconContainer: {
|
|
10
|
+
alignItems: "center";
|
|
11
|
+
justifyContent: "center";
|
|
12
|
+
};
|
|
13
|
+
labelContainer: {
|
|
14
|
+
marginLeft: number;
|
|
15
|
+
};
|
|
16
|
+
container: {
|
|
17
|
+
flexDirection: "row";
|
|
18
|
+
alignItems: "center";
|
|
19
|
+
alignSelf: "flex-start";
|
|
20
|
+
};
|
|
21
|
+
containerDisabled: {
|
|
22
|
+
opacity: number;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ReactNode, RefObject } from 'react';
|
|
2
|
+
import type { PressableProps, StyleProp, View, ViewStyle } from 'react-native';
|
|
3
|
+
import type { BaseAccessibilityProps, CommonStyleProps } from '../utils';
|
|
4
|
+
export type CheckboxSize = 'sm' | 'md';
|
|
5
|
+
export type CheckedState = boolean | 'indeterminate';
|
|
6
|
+
export interface CheckboxProps extends Omit<PressableProps, 'style' | 'onPress' | 'children'>, CommonStyleProps, BaseAccessibilityProps {
|
|
7
|
+
/** Current checked state: true, false, or 'indeterminate'. @default false */
|
|
8
|
+
checked?: CheckedState;
|
|
9
|
+
/** Called with the next boolean value when toggled. */
|
|
10
|
+
onChange?: (checked: boolean) => void;
|
|
11
|
+
/** Whether the checkbox is disabled. @default false */
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
/** Optional label rendered beside the checkbox. */
|
|
14
|
+
children?: ReactNode;
|
|
15
|
+
/** Size preset. @default 'sm' */
|
|
16
|
+
size?: CheckboxSize;
|
|
17
|
+
id?: string;
|
|
18
|
+
/** Ref forwarded to the outer Pressable container. */
|
|
19
|
+
containerRef?: RefObject<View>;
|
|
20
|
+
/** Style overrides for the label container. */
|
|
21
|
+
labelStyle?: StyleProp<ViewStyle>;
|
|
22
|
+
/** Style overrides for the checkbox box itself. */
|
|
23
|
+
checkboxStyle?: StyleProp<ViewStyle>;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import type { ChipProps } from './types';
|
|
4
|
+
/** Selectable pill for filters, tags, and selections with normal/pressed/active states. */
|
|
5
|
+
export declare const Chip: React.ForwardRefExoticComponent<ChipProps & React.RefAttributes<View>>;
|
|
6
|
+
//# sourceMappingURL=chip.d.ts.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { ThemeColors } from '../theme';
|
|
2
|
+
import type { ChipSize, ChipColor, ChipRounded } from './types';
|
|
3
|
+
interface SizeConfig {
|
|
4
|
+
height: number;
|
|
5
|
+
paddingHorizontal: number;
|
|
6
|
+
fontSize: number;
|
|
7
|
+
lineHeight: number;
|
|
8
|
+
iconSize: number;
|
|
9
|
+
}
|
|
10
|
+
interface ChipColorTokens {
|
|
11
|
+
regularBg: keyof ThemeColors;
|
|
12
|
+
regularBorder: keyof ThemeColors;
|
|
13
|
+
regularText: keyof ThemeColors;
|
|
14
|
+
pressedBgBase: keyof ThemeColors;
|
|
15
|
+
pressedBgOpacity: number;
|
|
16
|
+
pressedBorder: keyof ThemeColors;
|
|
17
|
+
pressedText: keyof ThemeColors;
|
|
18
|
+
activeBg: keyof ThemeColors | null;
|
|
19
|
+
activeBgBase: keyof ThemeColors | null;
|
|
20
|
+
activeBgOpacity: number;
|
|
21
|
+
activeBorder: keyof ThemeColors | null;
|
|
22
|
+
activeText: keyof ThemeColors;
|
|
23
|
+
}
|
|
24
|
+
export declare const SIZE_CONFIG: Record<ChipSize, SizeConfig>;
|
|
25
|
+
export declare const ROUNDED_RADII: Record<ChipRounded, number>;
|
|
26
|
+
export declare const COLOR_TOKENS: Record<ChipColor, ChipColorTokens>;
|
|
27
|
+
export declare const DEFAULT_SIZE: ChipSize;
|
|
28
|
+
export declare const DEFAULT_COLOR: ChipColor;
|
|
29
|
+
export declare const DEFAULT_ROUNDED: ChipRounded;
|
|
30
|
+
export {};
|
|
31
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ViewStyle, TextStyle } from 'react-native';
|
|
2
|
+
import type { TwigsTheme } from '../theme';
|
|
3
|
+
import type { ChipSize, ChipColor, ChipRounded } from './types';
|
|
4
|
+
export declare function getSizeStyles(size: ChipSize, rounded: ChipRounded): ViewStyle;
|
|
5
|
+
export declare function getRegularStyles(theme: TwigsTheme, color: ChipColor): ViewStyle;
|
|
6
|
+
export declare function getPressedStyles(theme: TwigsTheme, color: ChipColor): ViewStyle;
|
|
7
|
+
export declare function getActiveStyles(theme: TwigsTheme, color: ChipColor): ViewStyle;
|
|
8
|
+
export declare function getTextStyles(theme: TwigsTheme, color: ChipColor, size: ChipSize, active: boolean): TextStyle;
|
|
9
|
+
export declare function getIconSize(size: ChipSize): number;
|
|
10
|
+
export declare function getIconColor(theme: TwigsTheme, color: ChipColor, active: boolean): string;
|
|
11
|
+
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const styles: {
|
|
2
|
+
container: {
|
|
3
|
+
flexDirection: "row";
|
|
4
|
+
alignItems: "center";
|
|
5
|
+
justifyContent: "center";
|
|
6
|
+
alignSelf: "flex-start";
|
|
7
|
+
};
|
|
8
|
+
contentWrap: {
|
|
9
|
+
flexDirection: "row";
|
|
10
|
+
alignItems: "center";
|
|
11
|
+
justifyContent: "center";
|
|
12
|
+
paddingHorizontal: number;
|
|
13
|
+
};
|
|
14
|
+
sideElement: {
|
|
15
|
+
alignItems: "center";
|
|
16
|
+
justifyContent: "center";
|
|
17
|
+
};
|
|
18
|
+
disabled: {
|
|
19
|
+
opacity: number;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { ViewProps } from 'react-native';
|
|
3
|
+
import type { CommonStyleProps, BaseAccessibilityProps } from '../utils';
|
|
4
|
+
export type ChipSize = 'sm' | 'md' | 'lg';
|
|
5
|
+
export type ChipColor = 'secondary' | 'primary';
|
|
6
|
+
export type ChipRounded = 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | 'full';
|
|
7
|
+
export interface ChipProps extends Omit<ViewProps, 'style'>, CommonStyleProps, BaseAccessibilityProps {
|
|
8
|
+
/** Size of the chip */
|
|
9
|
+
size?: ChipSize;
|
|
10
|
+
/** Color variant */
|
|
11
|
+
color?: ChipColor;
|
|
12
|
+
/** Border radius variant. @default 'full' */
|
|
13
|
+
rounded?: ChipRounded;
|
|
14
|
+
/** Element rendered before the label (e.g. a plus icon) */
|
|
15
|
+
leftElement?: ReactNode;
|
|
16
|
+
/** Element rendered after the label (e.g. a chevron icon) */
|
|
17
|
+
rightElement?: ReactNode;
|
|
18
|
+
/** Controlled active state */
|
|
19
|
+
active?: boolean;
|
|
20
|
+
/** Initial active state for uncontrolled usage */
|
|
21
|
+
defaultActive?: boolean;
|
|
22
|
+
/** Called when active state changes */
|
|
23
|
+
onActiveStateChange?: (active: boolean) => void;
|
|
24
|
+
/** Called when the chip body is pressed */
|
|
25
|
+
onPress?: () => void;
|
|
26
|
+
/** Disables press interactions */
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
/** Chip content (label) */
|
|
29
|
+
children?: ReactNode;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { TwigsTheme } from '../theme/default-theme';
|
|
3
|
+
/** Recursively makes all properties optional — used for partial theme overrides. */
|
|
4
|
+
export type DeepPartial<T> = {
|
|
5
|
+
[P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];
|
|
6
|
+
};
|
|
7
|
+
export declare const ThemeContext: React.Context<TwigsTheme>;
|
|
8
|
+
export interface TwigsProviderProps {
|
|
9
|
+
/** Partial theme overrides deep-merged with the default theme. */
|
|
10
|
+
theme?: DeepPartial<TwigsTheme>;
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
}
|
|
13
|
+
/** Provides the Twigs theme context to all child components. */
|
|
14
|
+
export declare function TwigsProvider({ theme: customTheme, children }: TwigsProviderProps): React.JSX.Element;
|
|
15
|
+
/** Returns the current Twigs theme from the nearest TwigsProvider. */
|
|
16
|
+
export declare function useTheme(): TwigsTheme;
|
|
17
|
+
//# sourceMappingURL=theme-context.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import type { FlexProps } from './types';
|
|
4
|
+
/** Flexbox layout container with direction, alignment, and spacing shorthand props. */
|
|
5
|
+
export declare const Flex: React.ForwardRefExoticComponent<FlexProps & React.RefAttributes<View>>;
|
|
6
|
+
//# sourceMappingURL=flex.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { DimensionValue } from 'react-native';
|
|
3
|
+
import { MarginProps, PaddingProps, CommonStyleProps, BaseAccessibilityProps } from '../utils';
|
|
4
|
+
/** Props for the Flex layout container. */
|
|
5
|
+
export interface FlexProps extends MarginProps, PaddingProps, CommonStyleProps, BaseAccessibilityProps {
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
/** Flex direction. @default 'column' */
|
|
8
|
+
direction?: 'row' | 'column' | 'row-reverse' | 'column-reverse';
|
|
9
|
+
/** Cross-axis alignment (alignItems). */
|
|
10
|
+
align?: 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'baseline';
|
|
11
|
+
/** Main-axis alignment (justifyContent). */
|
|
12
|
+
justify?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
|
|
13
|
+
wrap?: 'nowrap' | 'wrap' | 'wrap-reverse';
|
|
14
|
+
flex?: number;
|
|
15
|
+
flexGrow?: number;
|
|
16
|
+
flexShrink?: number;
|
|
17
|
+
flexBasis?: DimensionValue;
|
|
18
|
+
alignSelf?: 'auto' | 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'baseline';
|
|
19
|
+
/** Gap between children in dp. */
|
|
20
|
+
gap?: number;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { IconButtonRounded, IconButtonSize } from './types';
|
|
2
|
+
import type { LoaderColor, LineLoaderSize, CircleLoaderSize } from '../loader';
|
|
3
|
+
export declare const ROUNDED_RADII: Record<IconButtonRounded, number>;
|
|
4
|
+
export declare const DEFAULT_ROUNDED: IconButtonRounded;
|
|
5
|
+
export interface IconButtonSizeConfig {
|
|
6
|
+
/** Container height/width (square) in dp */
|
|
7
|
+
containerSize: number;
|
|
8
|
+
/** Icon size in dp */
|
|
9
|
+
iconSize: number;
|
|
10
|
+
/** Default squircle border radius in dp */
|
|
11
|
+
borderRadius: number;
|
|
12
|
+
}
|
|
13
|
+
export declare const SIZE_CONFIG: Record<IconButtonSize, IconButtonSizeConfig>;
|
|
14
|
+
export declare const OUTLINE_BORDER_WIDTH: Record<IconButtonSize, number>;
|
|
15
|
+
export declare const DISABLED_OPACITY = 0.5;
|
|
16
|
+
export declare const LOADER_COLOR_MAP: Record<string, LoaderColor>;
|
|
17
|
+
export declare const LINE_LOADER_SIZE_MAP: Record<IconButtonSize, LineLoaderSize>;
|
|
18
|
+
export declare const LINE_LOADER_WIDTH_MAP: Record<IconButtonSize, number>;
|
|
19
|
+
export declare const CIRCLE_LOADER_SIZE_MAP: Record<IconButtonSize, CircleLoaderSize>;
|
|
20
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ViewStyle } from 'react-native';
|
|
2
|
+
import type { TwigsTheme } from '../theme';
|
|
3
|
+
import type { LoaderColor } from '../loader';
|
|
4
|
+
import type { IconButtonColor, IconButtonVariant, IconButtonSize } from './types';
|
|
5
|
+
export declare const getIconButtonStyles: (color: IconButtonColor, variant: IconButtonVariant, size: IconButtonSize, theme: TwigsTheme) => ViewStyle;
|
|
6
|
+
export declare const getIconButtonPressedStyles: (color: IconButtonColor, variant: IconButtonVariant, theme: TwigsTheme) => ViewStyle;
|
|
7
|
+
export declare const getIconColor: (color: IconButtonColor, variant: IconButtonVariant, theme: TwigsTheme, pressed: boolean) => string;
|
|
8
|
+
export declare const getIconSize: (size: IconButtonSize) => number;
|
|
9
|
+
export declare const getLoaderColor: (color: IconButtonColor, variant: IconButtonVariant) => LoaderColor;
|
|
10
|
+
export declare const getLineLoaderSize: (size: IconButtonSize) => import("../loader").LineLoaderSize;
|
|
11
|
+
export declare const getLineLoaderWidth: (size: IconButtonSize) => number;
|
|
12
|
+
export declare const getCircleLoaderSize: (size: IconButtonSize) => import("../loader").CircleLoaderSize;
|
|
13
|
+
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import type { IconButtonProps } from './types';
|
|
4
|
+
/** Icon-only pressable button with size, color, variant, and loading presets. */
|
|
5
|
+
export declare const IconButton: React.ForwardRefExoticComponent<IconButtonProps & React.RefAttributes<View>>;
|
|
6
|
+
//# sourceMappingURL=icon-button.d.ts.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { PressableProps } from 'react-native';
|
|
3
|
+
import type { CommonStyleProps, BaseAccessibilityProps } from '../utils';
|
|
4
|
+
export type IconButtonSize = 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
5
|
+
export type IconButtonColor = 'default' | 'primary' | 'secondary' | 'light' | 'error';
|
|
6
|
+
export type IconButtonVariant = 'solid' | 'ghost' | 'outline';
|
|
7
|
+
export type IconButtonRounded = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | 'full';
|
|
8
|
+
export interface IconButtonProps extends Omit<PressableProps, 'style' | 'children'>, CommonStyleProps, BaseAccessibilityProps {
|
|
9
|
+
/** Icon element rendered inside the button. Required. */
|
|
10
|
+
icon: ReactElement;
|
|
11
|
+
/** Size preset. @default 'md' */
|
|
12
|
+
size?: IconButtonSize;
|
|
13
|
+
/** Color preset. @default 'primary' */
|
|
14
|
+
color?: IconButtonColor;
|
|
15
|
+
/** Visual variant. @default 'solid' */
|
|
16
|
+
variant?: IconButtonVariant;
|
|
17
|
+
/** Border radius of the button container. @default 'full' */
|
|
18
|
+
rounded?: IconButtonRounded;
|
|
19
|
+
/** Whether the button is disabled. @default false */
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
/** Whether the button is in a loading state. @default false */
|
|
22
|
+
loading?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Loader indicator shown during loading state.
|
|
25
|
+
* - `'line'` (default) — animated line loader
|
|
26
|
+
* - `'circle'` — spinning circle indicator
|
|
27
|
+
* - `ReactElement` — custom loader component
|
|
28
|
+
*/
|
|
29
|
+
loader?: ReactElement | 'line' | 'circle';
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export { Alert } from './alert';
|
|
2
|
+
export type { AlertProps, AlertStatus } from './alert';
|
|
3
|
+
export { Avatar, AvatarGroup } from './avatar';
|
|
4
|
+
export type { AvatarProps, AvatarGroupProps, AvatarSize, AvatarSizeProp } from './avatar';
|
|
5
|
+
export { Badge } from './badge';
|
|
6
|
+
export type { BadgeProps, BadgeSize, BadgeColor, BadgeRounded } from './badge';
|
|
7
|
+
export { Box } from './box';
|
|
8
|
+
export type { BoxProps } from './box';
|
|
9
|
+
export { Button } from './button';
|
|
10
|
+
export type { ButtonProps, ButtonSize, ButtonColor, ButtonVariant } from './button';
|
|
11
|
+
export { LinkButton } from './link-button';
|
|
12
|
+
export type { LinkButtonProps, LinkButtonSize, LinkButtonColor, LinkButtonVariant, } from './link-button';
|
|
13
|
+
export { LineLoader, CircleLoader } from './loader';
|
|
14
|
+
export type { LineLoaderProps, CircleLoaderProps, LineLoaderSize, CircleLoaderSize, LoaderColor, } from './loader';
|
|
15
|
+
export { IconButton } from './icon-button';
|
|
16
|
+
export type { IconButtonProps, IconButtonSize, IconButtonColor, IconButtonVariant, IconButtonRounded, } from './icon-button';
|
|
17
|
+
export { Chip } from './chip';
|
|
18
|
+
export type { ChipProps, ChipSize, ChipColor, ChipRounded } from './chip';
|
|
19
|
+
export { Checkbox } from './checkbox';
|
|
20
|
+
export type { CheckboxProps, CheckboxSize, CheckedState } from './checkbox';
|
|
21
|
+
export { Flex } from './flex';
|
|
22
|
+
export type { FlexProps } from './flex';
|
|
23
|
+
export { Modal, ModalContent, ModalHeader, ModalTitle, ModalDescription, ModalBody, ModalFooter, } from './modal';
|
|
24
|
+
export type { ModalProps, ModalContentProps, ModalHeaderProps, ModalTitleProps, ModalDescriptionProps, ModalBodyProps, ModalFooterProps, ModalSize, ModalAnimationType, } from './modal';
|
|
25
|
+
export { Radio } from './radio';
|
|
26
|
+
export type { RadioProps, RadioSize } from './radio';
|
|
27
|
+
export { SegmentedButton } from './segmented-button';
|
|
28
|
+
export type { SegmentedButtonProps, SegmentedButtonOption, SegmentedButtonRounded, } from './segmented-button';
|
|
29
|
+
export { Separator } from './separator';
|
|
30
|
+
export type { SeparatorProps, SeparatorOrientation } from './separator';
|
|
31
|
+
export { Switch } from './switch';
|
|
32
|
+
export type { SwitchProps, SwitchSize, SwitchColor } from './switch';
|
|
33
|
+
export { Tooltip } from './tooltip';
|
|
34
|
+
export type { TooltipProps, TooltipSide, TooltipAlign } from './tooltip';
|
|
35
|
+
export { Text } from './text';
|
|
36
|
+
export type { TextProps } from './text';
|
|
37
|
+
export { ToastProvider, toast, useToast } from './toast';
|
|
38
|
+
export type { ToastOptions, ToastProviderProps, ToastVariant, ToastPosition, ToastState, ToastContextType, ToastItemProps, UseToastReturn, } from './toast';
|
|
39
|
+
export { TextInput } from './text-input';
|
|
40
|
+
export type { TextInputProps, TextInputSize, TextInputVariant } from './text-input';
|
|
41
|
+
export { BottomSheet, BottomSheetModal, BottomSheetHeader, BottomSheetView, BottomSheetScrollView, BottomSheetSectionList, BottomSheetFlatList, BottomSheetVirtualizedList, BottomSheetTextInput, BottomSheetHandle, BottomSheetBackdrop, BottomSheetFooter, BottomSheetFooterContainer, BottomSheetModalProvider, BottomSheetDraggableView, useBottomSheet, useBottomSheetModal, useBottomSheetSpringConfigs, useBottomSheetTimingConfigs, useBottomSheetInternal, useBottomSheetModalInternal, useScrollEventsHandlersDefault, useGestureEventsHandlersDefault, useBottomSheetGestureHandlers, useScrollHandler, useScrollableSetter, useBottomSheetScrollableCreator, createBottomSheetScrollableComponent, TouchableHighlight, TouchableOpacity, TouchableWithoutFeedback, enableLogging, } from './bottom-sheet';
|
|
42
|
+
export type { BottomSheetProps, BottomSheetModalProps, BottomSheetHeaderProps, BottomSheetHandleProps, BottomSheetBackgroundProps, BottomSheetBackdropProps, BottomSheetFooterProps, BottomSheetFlatListMethods, BottomSheetScrollViewMethods, BottomSheetSectionListMethods, BottomSheetVirtualizedListMethods, BottomSheetScrollableProps, ScrollEventsHandlersHookType, GestureEventsHandlersHookType, ScrollEventHandlerCallbackType, GestureEventHandlerCallbackType, } from './bottom-sheet';
|
|
43
|
+
export { AnimatedView, resolveMargin, resolvePadding, createTextStyle, colorOpacity, } from './utils';
|
|
44
|
+
export type { MarginProps, PaddingProps, ResolvedSpacing, CommonStyleProps, BaseAccessibilityProps, } from './utils';
|
|
45
|
+
export { defaultTheme, theme } from './theme';
|
|
46
|
+
export type { TwigsTheme, ThemeColors, ThemeSpace, ThemeFontSizes, ThemeFonts, ThemeFontWeights, ThemeLineHeights, ThemeLetterSpacings, ThemeSizes, ThemeBorderWidths, ThemeBorderStyles, ThemeRadii, ThemeShadows, ThemeZIndices, ThemeTransitions, } from './theme';
|
|
47
|
+
export { TwigsProvider, useTheme } from './context';
|
|
48
|
+
export type { TwigsProviderProps, DeepPartial } from './context';
|
|
49
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { LinkButtonSize, LinkButtonVariant } from './types';
|
|
2
|
+
export interface LinkButtonSizeConfig {
|
|
3
|
+
fontSize: string;
|
|
4
|
+
lineHeight: string;
|
|
5
|
+
letterSpacing: number;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Size configuration keyed by theme token names.
|
|
9
|
+
* fontSize/lineHeight are theme token keys resolved at render time.
|
|
10
|
+
*/
|
|
11
|
+
export declare const SIZE_CONFIG: Record<LinkButtonSize, LinkButtonSizeConfig>;
|
|
12
|
+
export interface LinkButtonVariantConfig {
|
|
13
|
+
fontFamily: 'regular' | 'medium' | 'bold';
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Variant configuration keyed by theme font-family token names.
|
|
17
|
+
* fontFamily is a theme token key resolved at render time.
|
|
18
|
+
*/
|
|
19
|
+
export declare const VARIANT_CONFIG: Record<LinkButtonVariant, LinkButtonVariantConfig>;
|
|
20
|
+
export declare const PRESSED_BG_OPACITY = 0.15;
|
|
21
|
+
export declare const DISABLED_OPACITY = 0.5;
|
|
22
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { TextStyle, ViewStyle } from 'react-native';
|
|
2
|
+
import type { TwigsTheme } from '../theme';
|
|
3
|
+
import type { LinkButtonSize, LinkButtonColor, LinkButtonVariant } from './types';
|
|
4
|
+
export declare const getLinkButtonTextStyles: ({ size, color, variant, pressed, theme, }: {
|
|
5
|
+
size: LinkButtonSize;
|
|
6
|
+
color: LinkButtonColor;
|
|
7
|
+
variant: LinkButtonVariant;
|
|
8
|
+
pressed: boolean;
|
|
9
|
+
theme: TwigsTheme;
|
|
10
|
+
}) => TextStyle;
|
|
11
|
+
export declare const getLinkButtonPressedStyle: (color: LinkButtonColor, theme: TwigsTheme) => ViewStyle;
|
|
12
|
+
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import type { LinkButtonProps } from './types';
|
|
4
|
+
/**
|
|
5
|
+
* A text-only pressable element styled as a hyperlink with underline decoration.
|
|
6
|
+
* Supports size, color, and variant options with pressed/disabled states.
|
|
7
|
+
*/
|
|
8
|
+
export declare const LinkButton: React.ForwardRefExoticComponent<LinkButtonProps & React.RefAttributes<View>>;
|
|
9
|
+
//# sourceMappingURL=link-button.d.ts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { PressableProps, TextStyle } from 'react-native';
|
|
3
|
+
import type { CommonStyleProps, BaseAccessibilityProps } from '../utils';
|
|
4
|
+
export type LinkButtonSize = 'sm' | 'md';
|
|
5
|
+
export type LinkButtonColor = 'primary' | 'secondary' | 'light';
|
|
6
|
+
export type LinkButtonVariant = 'medium' | 'bold';
|
|
7
|
+
/**
|
|
8
|
+
* Props for the LinkButton component.
|
|
9
|
+
* A text-only pressable element styled as a hyperlink with underline decoration.
|
|
10
|
+
*/
|
|
11
|
+
export interface LinkButtonProps extends Omit<PressableProps, 'style'>, CommonStyleProps, BaseAccessibilityProps {
|
|
12
|
+
/** Text content rendered inside the link button. */
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
/** Size preset controlling font size and line height. @default 'md' */
|
|
15
|
+
size?: LinkButtonSize;
|
|
16
|
+
/** Color preset. @default 'primary' */
|
|
17
|
+
color?: LinkButtonColor;
|
|
18
|
+
/** Visual variant controlling font weight. @default 'medium' */
|
|
19
|
+
variant?: LinkButtonVariant;
|
|
20
|
+
/** Whether the link button is disabled. @default false */
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
/** Override styles applied to the link text. */
|
|
23
|
+
textStyle?: TextStyle;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import type { CircleLoaderProps } from './types';
|
|
4
|
+
/** Animated circular spinner using SVG arcs with a rotating quarter-circle indicator. */
|
|
5
|
+
export declare const CircleLoader: React.ForwardRefExoticComponent<CircleLoaderProps & React.RefAttributes<View>>;
|
|
6
|
+
//# sourceMappingURL=circle-loader.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { LineLoaderSize, CircleLoaderSize } from './types';
|
|
2
|
+
export declare const LINE_LOADER_DIMENSIONS: Record<LineLoaderSize, {
|
|
3
|
+
width: number;
|
|
4
|
+
height: number;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const CIRCLE_LOADER_DIAMETERS: Record<CircleLoaderSize, number>;
|
|
7
|
+
export declare const CIRCLE_STROKE_WIDTHS: Record<CircleLoaderSize, number>;
|
|
8
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { TwigsTheme } from '../theme';
|
|
2
|
+
import type { LoaderColor } from './types';
|
|
3
|
+
export interface LoaderColorPair {
|
|
4
|
+
bg: string;
|
|
5
|
+
fg: string;
|
|
6
|
+
}
|
|
7
|
+
/** Resolves a LoaderColor preset to background (track/ring) and foreground (dot/arc) hex values. */
|
|
8
|
+
export declare function getLoaderColors(theme: TwigsTheme, color: LoaderColor): LoaderColorPair;
|
|
9
|
+
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import type { LineLoaderProps } from './types';
|
|
4
|
+
/** Animated horizontal line loader with a sliding dot indicator. */
|
|
5
|
+
export declare const LineLoader: React.ForwardRefExoticComponent<LineLoaderProps & React.RefAttributes<View>>;
|
|
6
|
+
//# sourceMappingURL=line-loader.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { CommonStyleProps, BaseAccessibilityProps } from '../utils';
|
|
2
|
+
export type LineLoaderSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
3
|
+
export type CircleLoaderSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl';
|
|
4
|
+
export type LoaderColor = 'primary' | 'secondary' | 'bright' | 'negative' | 'accent';
|
|
5
|
+
/** Props for the LineLoader component. */
|
|
6
|
+
export interface LineLoaderProps extends CommonStyleProps, BaseAccessibilityProps {
|
|
7
|
+
/** Size preset. @default 'sm' */
|
|
8
|
+
size?: LineLoaderSize;
|
|
9
|
+
/** Color preset. @default 'primary' */
|
|
10
|
+
color?: LoaderColor;
|
|
11
|
+
}
|
|
12
|
+
/** Props for the CircleLoader component. */
|
|
13
|
+
export interface CircleLoaderProps extends CommonStyleProps, BaseAccessibilityProps {
|
|
14
|
+
/** Size preset. @default 'md' */
|
|
15
|
+
size?: CircleLoaderSize;
|
|
16
|
+
/** Color preset. @default 'primary' */
|
|
17
|
+
color?: LoaderColor;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { ModalSize, ModalAnimationType } from './types';
|
|
2
|
+
interface ContentSizeConfig {
|
|
3
|
+
/** Horizontal margin from screen edge (applied to each side) */
|
|
4
|
+
horizontalMargin: number;
|
|
5
|
+
}
|
|
6
|
+
export declare const CONTENT_SIZE_CONFIG: Record<ModalSize, ContentSizeConfig>;
|
|
7
|
+
export declare const DEFAULT_SIZE: ModalSize;
|
|
8
|
+
export declare const DEFAULT_ANIMATION_TYPE: ModalAnimationType;
|
|
9
|
+
export declare const CONTENT_BORDER_RADIUS = 16;
|
|
10
|
+
export declare const CONTENT_PADDING_HORIZONTAL = 16;
|
|
11
|
+
export declare const HEADER_PADDING_TOP = 32;
|
|
12
|
+
export declare const HEADER_PADDING_HORIZONTAL = 16;
|
|
13
|
+
export declare const HEADER_GAP = 4;
|
|
14
|
+
export declare const BODY_PADDING_HORIZONTAL = 16;
|
|
15
|
+
export declare const BODY_PADDING_VERTICAL = 16;
|
|
16
|
+
export declare const FOOTER_PADDING_HORIZONTAL = 16;
|
|
17
|
+
export declare const FOOTER_PADDING_BOTTOM = 16;
|
|
18
|
+
export declare const FOOTER_PADDING_TOP = 24;
|
|
19
|
+
export declare const FOOTER_GAP = 8;
|
|
20
|
+
export declare const TITLE_FONT_SIZE = 18;
|
|
21
|
+
export declare const TITLE_LINE_HEIGHT = 26;
|
|
22
|
+
export declare const DESCRIPTION_FONT_SIZE = 16;
|
|
23
|
+
export declare const DESCRIPTION_LINE_HEIGHT = 24;
|
|
24
|
+
export declare const BACKDROP_OPACITY = 0.5;
|
|
25
|
+
export {};
|
|
26
|
+
//# 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 { ModalSize } from './types';
|
|
4
|
+
export declare function getBackdropStyle(theme: TwigsTheme): ViewStyle;
|
|
5
|
+
export declare function getContentStyles(theme: TwigsTheme, size: ModalSize, screenWidth: number): ViewStyle;
|
|
6
|
+
export declare function getTitleStyles(theme: TwigsTheme): TextStyle;
|
|
7
|
+
export declare function getDescriptionStyles(theme: TwigsTheme): TextStyle;
|
|
8
|
+
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { Modal } from './modal';
|
|
2
|
+
export { ModalContent } from './modal-content';
|
|
3
|
+
export { ModalHeader } from './modal-header';
|
|
4
|
+
export { ModalTitle } from './modal-title';
|
|
5
|
+
export { ModalDescription } from './modal-description';
|
|
6
|
+
export { ModalBody } from './modal-body';
|
|
7
|
+
export { ModalFooter } from './modal-footer';
|
|
8
|
+
export type { ModalProps, ModalContentProps, ModalHeaderProps, ModalTitleProps, ModalDescriptionProps, ModalBodyProps, ModalFooterProps, ModalSize, ModalAnimationType, } from './types';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import type { ModalBodyProps } from './types';
|
|
4
|
+
/**
|
|
5
|
+
* ModalBody renders the main content area between header and footer.
|
|
6
|
+
* Supports optional scrolling via the `scrollable` prop.
|
|
7
|
+
*/
|
|
8
|
+
export declare const ModalBody: React.ForwardRefExoticComponent<ModalBodyProps & React.RefAttributes<View>>;
|
|
9
|
+
//# sourceMappingURL=modal-body.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import type { ModalContentProps } from './types';
|
|
4
|
+
/**
|
|
5
|
+
* ModalContent renders the white card container with rounded corners and shadow.
|
|
6
|
+
* Place inside Modal as the direct child.
|
|
7
|
+
*/
|
|
8
|
+
export declare const ModalContent: React.ForwardRefExoticComponent<ModalContentProps & React.RefAttributes<View>>;
|
|
9
|
+
//# sourceMappingURL=modal-content.d.ts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ModalDescriptionProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* ModalDescription renders secondary descriptive text below the title.
|
|
5
|
+
*/
|
|
6
|
+
export declare const ModalDescription: React.FC<ModalDescriptionProps>;
|
|
7
|
+
//# sourceMappingURL=modal-description.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import type { ModalFooterProps } from './types';
|
|
4
|
+
/**
|
|
5
|
+
* ModalFooter renders the action area at the bottom of the modal.
|
|
6
|
+
* Children (typically Buttons) are laid out in a row with equal width.
|
|
7
|
+
*/
|
|
8
|
+
export declare const ModalFooter: React.ForwardRefExoticComponent<ModalFooterProps & React.RefAttributes<View>>;
|
|
9
|
+
//# sourceMappingURL=modal-footer.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import type { ModalHeaderProps } from './types';
|
|
4
|
+
/**
|
|
5
|
+
* ModalHeader renders a header section containing title and description.
|
|
6
|
+
* Centered layout with gap between children.
|
|
7
|
+
*/
|
|
8
|
+
export declare const ModalHeader: React.ForwardRefExoticComponent<ModalHeaderProps & React.RefAttributes<View>>;
|
|
9
|
+
//# sourceMappingURL=modal-header.d.ts.map
|