@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,39 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { ViewProps } from 'react-native';
|
|
3
|
+
import type { CommonStyleProps, BaseAccessibilityProps } from '../utils';
|
|
4
|
+
/** Side of the reference element where the tooltip appears */
|
|
5
|
+
export type TooltipSide = 'top' | 'right' | 'bottom' | 'left';
|
|
6
|
+
/** Alignment of the tooltip along the side axis */
|
|
7
|
+
export type TooltipAlign = 'start' | 'center' | 'end';
|
|
8
|
+
/**
|
|
9
|
+
* Props for the Tooltip component.
|
|
10
|
+
* Renders a floating content bubble anchored to a trigger element.
|
|
11
|
+
*
|
|
12
|
+
* Mobile deviation: Uses onPress/onLongPress instead of hover/focus trigger.
|
|
13
|
+
* Mobile deviation: Adds autoHideDuration for auto-dismiss (web uses delayDuration for hover delay).
|
|
14
|
+
*/
|
|
15
|
+
export interface TooltipProps extends Omit<ViewProps, 'style'>, CommonStyleProps, BaseAccessibilityProps {
|
|
16
|
+
/** Tooltip content — text string or ReactNode */
|
|
17
|
+
content: ReactNode;
|
|
18
|
+
/** Trigger element that the tooltip anchors to */
|
|
19
|
+
children: ReactNode;
|
|
20
|
+
/** Which side of the trigger the tooltip appears on (default: 'top') */
|
|
21
|
+
side?: TooltipSide;
|
|
22
|
+
/** Alignment along the side axis (default: 'center') */
|
|
23
|
+
align?: TooltipAlign;
|
|
24
|
+
/** Controlled open state */
|
|
25
|
+
open?: boolean;
|
|
26
|
+
/** Default open state for uncontrolled usage */
|
|
27
|
+
defaultOpen?: boolean;
|
|
28
|
+
/** Called when open state changes */
|
|
29
|
+
onOpenChange?: (open: boolean) => void;
|
|
30
|
+
/** Distance in dp between tooltip and trigger (default: 6) */
|
|
31
|
+
sideOffset?: number;
|
|
32
|
+
/** Auto-dismiss duration in ms; 0 = no auto-dismiss (default: 0) */
|
|
33
|
+
autoHideDuration?: number;
|
|
34
|
+
/** Whether to show the arrow pointer (default: true) */
|
|
35
|
+
hasArrow?: boolean;
|
|
36
|
+
/** Trigger interaction: 'press' opens on tap, 'longPress' opens on long press (default: 'press') */
|
|
37
|
+
triggerAction?: 'press' | 'longPress';
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import type { AccessibilityRole, ViewProps, ViewStyle, TextStyle } from 'react-native';
|
|
2
|
+
import type { AnimatedProps } from 'react-native-reanimated';
|
|
3
|
+
/** @see https://reactnative.dev/docs/accessibility */
|
|
4
|
+
export interface BaseAccessibilityProps {
|
|
5
|
+
accessible?: boolean;
|
|
6
|
+
accessibilityRole?: AccessibilityRole;
|
|
7
|
+
accessibilityLabel?: string;
|
|
8
|
+
accessibilityHint?: string;
|
|
9
|
+
accessibilityState?: {
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
selected?: boolean;
|
|
12
|
+
checked?: boolean | 'mixed';
|
|
13
|
+
busy?: boolean;
|
|
14
|
+
expanded?: boolean;
|
|
15
|
+
};
|
|
16
|
+
accessibilityValue?: {
|
|
17
|
+
min?: number;
|
|
18
|
+
max?: number;
|
|
19
|
+
now?: number;
|
|
20
|
+
text?: string;
|
|
21
|
+
};
|
|
22
|
+
/** iOS only */
|
|
23
|
+
accessibilityViewIsModal?: boolean;
|
|
24
|
+
/** iOS only */
|
|
25
|
+
accessibilityElementsHidden?: boolean;
|
|
26
|
+
/** Android only */
|
|
27
|
+
accessibilityLiveRegion?: 'none' | 'polite' | 'assertive';
|
|
28
|
+
/** iOS only */
|
|
29
|
+
accessibilityIgnoresInvertColors?: boolean;
|
|
30
|
+
/** Android only */
|
|
31
|
+
importantForAccessibility?: 'auto' | 'yes' | 'no' | 'no-hide-descendants';
|
|
32
|
+
}
|
|
33
|
+
export interface MarginProps {
|
|
34
|
+
margin?: number;
|
|
35
|
+
marginHorizontal?: number;
|
|
36
|
+
marginVertical?: number;
|
|
37
|
+
marginTop?: number;
|
|
38
|
+
marginBottom?: number;
|
|
39
|
+
marginLeft?: number;
|
|
40
|
+
marginRight?: number;
|
|
41
|
+
}
|
|
42
|
+
export interface PaddingProps {
|
|
43
|
+
padding?: number;
|
|
44
|
+
paddingHorizontal?: number;
|
|
45
|
+
paddingVertical?: number;
|
|
46
|
+
paddingTop?: number;
|
|
47
|
+
paddingBottom?: number;
|
|
48
|
+
paddingLeft?: number;
|
|
49
|
+
paddingRight?: number;
|
|
50
|
+
}
|
|
51
|
+
export interface ResolvedSpacing {
|
|
52
|
+
top: number;
|
|
53
|
+
bottom: number;
|
|
54
|
+
left: number;
|
|
55
|
+
right: number;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Provides `css` and `style` props for component style overrides.
|
|
59
|
+
* `css` is applied before `style`, allowing layered customization.
|
|
60
|
+
*/
|
|
61
|
+
export interface CommonStyleProps {
|
|
62
|
+
css?: ViewStyle;
|
|
63
|
+
style?: ViewStyle;
|
|
64
|
+
}
|
|
65
|
+
/** Type-safe wrapper around `Animated.View` from react-native-reanimated. */
|
|
66
|
+
type AnimatedViewComponent = React.FC<AnimatedProps<ViewProps>>;
|
|
67
|
+
export declare const AnimatedView: AnimatedViewComponent;
|
|
68
|
+
/** Resolves margin shorthand props into individual top/bottom/left/right values. */
|
|
69
|
+
export declare const resolveMargin: (props: MarginProps, defaultSpacing?: number) => ResolvedSpacing;
|
|
70
|
+
/** Resolves padding shorthand props into individual top/bottom/left/right values. */
|
|
71
|
+
export declare const resolvePadding: (props: PaddingProps, defaultSpacing?: number) => ResolvedSpacing;
|
|
72
|
+
/**
|
|
73
|
+
* Returns a hex color string with the given opacity applied as an alpha channel.
|
|
74
|
+
*
|
|
75
|
+
* @param color Hex color (#RGB, #RRGGBB, or #RRGGBBAA — existing alpha is stripped)
|
|
76
|
+
* @param opacity Opacity between 0 (fully transparent) and 1 (fully opaque)
|
|
77
|
+
* @returns Hex color with alpha channel (#RRGGBBAA)
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* colorOpacity('#00828D', 0.1) // '#00828D1A'
|
|
81
|
+
* colorOpacity('#64748B', 0.8) // '#64748BCC'
|
|
82
|
+
*/
|
|
83
|
+
export declare const colorOpacity: (color: string, opacity: number) => string;
|
|
84
|
+
/**
|
|
85
|
+
* Builds a platform-safe text style. On the system font, `fontWeight` is
|
|
86
|
+
* included directly; on custom fonts the weight is baked into the family
|
|
87
|
+
* name so the property is omitted to avoid Android rendering issues.
|
|
88
|
+
*/
|
|
89
|
+
export declare const createTextStyle: (fontFamily: string, fontWeight?: "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "normal" | "bold") => Pick<TextStyle, "fontFamily" | "fontWeight">;
|
|
90
|
+
export {};
|
|
91
|
+
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,48 +1,155 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sparrowengg/twigs-mobile",
|
|
3
|
-
"version": "0.0
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Twigs React Native component library",
|
|
5
|
+
"main": "./lib/commonjs/index.js",
|
|
6
|
+
"module": "./lib/module/index.js",
|
|
7
|
+
"types": "./lib/typescript/index.d.ts",
|
|
8
|
+
"react-native": "./lib/commonjs/index.js",
|
|
9
|
+
"source": "./src/index.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./lib/typescript/index.d.ts",
|
|
13
|
+
"import": "./lib/module/index.js",
|
|
14
|
+
"require": "./lib/commonjs/index.js"
|
|
15
|
+
},
|
|
16
|
+
"./theme": {
|
|
17
|
+
"types": "./lib/typescript/theme/index.d.ts",
|
|
18
|
+
"import": "./lib/module/theme/index.js",
|
|
19
|
+
"require": "./lib/commonjs/theme/index.js"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
8
22
|
"files": [
|
|
9
|
-
"
|
|
10
|
-
"
|
|
23
|
+
"lib",
|
|
24
|
+
"!**/__tests__",
|
|
25
|
+
"!**/__fixtures__",
|
|
26
|
+
"!**/__mocks__",
|
|
27
|
+
"!**/*.stories.*",
|
|
28
|
+
"!**/*.map"
|
|
11
29
|
],
|
|
12
30
|
"scripts": {
|
|
13
31
|
"build": "bob build",
|
|
14
|
-
"
|
|
32
|
+
"prepack": "bob build",
|
|
33
|
+
"example": "npm start --prefix example",
|
|
34
|
+
"example:ios": "npm run ios --prefix example",
|
|
35
|
+
"example:android": "npm run android --prefix example",
|
|
36
|
+
"lint": "eslint src/**/*.{ts,tsx}",
|
|
37
|
+
"lint:fix": "eslint src/**/*.{ts,tsx} --fix",
|
|
38
|
+
"format": "prettier --write \"src/**/*.{ts,tsx,json}\"",
|
|
39
|
+
"format:check": "prettier --check \"src/**/*.{ts,tsx,json}\"",
|
|
40
|
+
"typecheck": "tsc --noEmit",
|
|
41
|
+
"test": "jest",
|
|
42
|
+
"test:watch": "jest --watch",
|
|
43
|
+
"test:coverage": "jest --coverage",
|
|
44
|
+
"release": "release-it",
|
|
45
|
+
"release:dry": "release-it --dry-run"
|
|
46
|
+
},
|
|
47
|
+
"publishConfig": {
|
|
48
|
+
"registry": "https://registry.npmjs.org/"
|
|
15
49
|
},
|
|
16
50
|
"keywords": [
|
|
17
|
-
"react",
|
|
18
51
|
"react-native",
|
|
19
|
-
"
|
|
52
|
+
"expo",
|
|
53
|
+
"twigs",
|
|
54
|
+
"twigs-mobile",
|
|
55
|
+
"surveysparrow",
|
|
20
56
|
"ui",
|
|
21
|
-
"
|
|
22
|
-
"library",
|
|
23
|
-
"expo"
|
|
57
|
+
"component-library"
|
|
24
58
|
],
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
59
|
+
"repository": {
|
|
60
|
+
"type": "git",
|
|
61
|
+
"url": "https://github.com/surveysparrow/twigs-mobile.git"
|
|
62
|
+
},
|
|
63
|
+
"homepage": "https://github.com/surveysparrow/twigs-mobile#readme",
|
|
64
|
+
"bugs": {
|
|
65
|
+
"url": "https://github.com/surveysparrow/twigs-mobile/issues"
|
|
66
|
+
},
|
|
67
|
+
"author": "SurveySparrow",
|
|
68
|
+
"license": "MIT",
|
|
69
|
+
"engines": {
|
|
70
|
+
"node": ">=18.20.1"
|
|
71
|
+
},
|
|
72
|
+
"peerDependencies": {
|
|
73
|
+
"@gorhom/bottom-sheet": ">=5.0.0",
|
|
74
|
+
"react": ">=18.0.0",
|
|
75
|
+
"react-native": ">=0.71.0",
|
|
76
|
+
"react-native-gesture-handler": ">=2.0.0",
|
|
77
|
+
"react-native-reanimated": ">=3.0.0",
|
|
78
|
+
"react-native-safe-area-context": ">=4.0.0",
|
|
79
|
+
"react-native-screens": ">=3.0.0",
|
|
80
|
+
"react-native-svg": ">=13.0.0"
|
|
35
81
|
},
|
|
36
82
|
"devDependencies": {
|
|
37
|
-
"
|
|
83
|
+
"@gorhom/bottom-sheet": "^5.2.6",
|
|
84
|
+
"@react-native/babel-preset": "^0.83.1",
|
|
85
|
+
"@release-it/conventional-changelog": "^10.0.5",
|
|
86
|
+
"@testing-library/jest-native": "^5.4.3",
|
|
87
|
+
"@testing-library/react-native": "^13.3.3",
|
|
88
|
+
"@types/jest": "^30.0.0",
|
|
89
|
+
"@types/react": "^18.2.48",
|
|
90
|
+
"@types/react-native": "^0.73.0",
|
|
91
|
+
"@types/react-test-renderer": "18",
|
|
92
|
+
"@typescript-eslint/eslint-plugin": "^7.0.0",
|
|
93
|
+
"@typescript-eslint/parser": "^7.0.0",
|
|
94
|
+
"eslint": "^8.56.0",
|
|
95
|
+
"eslint-plugin-react": "^7.33.2",
|
|
96
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
97
|
+
"eslint-plugin-react-native": "^4.1.0",
|
|
98
|
+
"husky": "^9.0.0",
|
|
99
|
+
"jest": "^30.2.0",
|
|
100
|
+
"lint-staged": "^15.2.0",
|
|
101
|
+
"prettier": "^3.2.0",
|
|
102
|
+
"react": "^18.3.1",
|
|
103
|
+
"react-native": "^0.76.0",
|
|
104
|
+
"react-native-builder-bob": "^0.30.2",
|
|
105
|
+
"react-native-gesture-handler": "~2.20.2",
|
|
106
|
+
"react-native-reanimated": "~3.16.1",
|
|
107
|
+
"react-native-safe-area-context": "~4.14.0",
|
|
108
|
+
"react-native-screens": "~4.4.0",
|
|
109
|
+
"react-native-svg": "~15.8.0",
|
|
110
|
+
"react-test-renderer": "18.3.1",
|
|
111
|
+
"release-it": "^19.2.4",
|
|
112
|
+
"ts-jest": "^29.4.6",
|
|
113
|
+
"typescript": "^5.3.3"
|
|
114
|
+
},
|
|
115
|
+
"lint-staged": {
|
|
116
|
+
"src/**/*.{ts,tsx}": [
|
|
117
|
+
"eslint --fix",
|
|
118
|
+
"prettier --write"
|
|
119
|
+
],
|
|
120
|
+
"src/**/*.{json,md}": [
|
|
121
|
+
"prettier --write"
|
|
122
|
+
]
|
|
38
123
|
},
|
|
124
|
+
"workspaces": [
|
|
125
|
+
"example"
|
|
126
|
+
],
|
|
39
127
|
"react-native-builder-bob": {
|
|
40
128
|
"source": "src",
|
|
41
|
-
"output": "
|
|
129
|
+
"output": "lib",
|
|
130
|
+
"exclude": [
|
|
131
|
+
"**/{__tests__,__fixtures__,__mocks__}/**",
|
|
132
|
+
"**/*.stories.{ts,tsx}"
|
|
133
|
+
],
|
|
42
134
|
"targets": [
|
|
43
|
-
|
|
44
|
-
|
|
135
|
+
[
|
|
136
|
+
"commonjs",
|
|
137
|
+
{
|
|
138
|
+
"configFile": true,
|
|
139
|
+
"sourceMaps": false
|
|
140
|
+
}
|
|
141
|
+
],
|
|
142
|
+
[
|
|
143
|
+
"module",
|
|
144
|
+
{
|
|
145
|
+
"configFile": true,
|
|
146
|
+
"sourceMaps": false
|
|
147
|
+
}
|
|
148
|
+
],
|
|
45
149
|
"typescript"
|
|
46
150
|
]
|
|
151
|
+
},
|
|
152
|
+
"dependencies": {
|
|
153
|
+
"@floating-ui/react-native": "^0.10.9"
|
|
47
154
|
}
|
|
48
155
|
}
|
package/dist/commonjs/Box/box.js
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.Box = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _native = _interopRequireDefault(require("styled-components/native"));
|
|
9
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
-
const DEFAULT_SPACING = 0;
|
|
12
|
-
const resolveMargin = ({
|
|
13
|
-
margin,
|
|
14
|
-
marginHorizontal,
|
|
15
|
-
marginVertical,
|
|
16
|
-
marginTop,
|
|
17
|
-
marginBottom,
|
|
18
|
-
marginLeft,
|
|
19
|
-
marginRight
|
|
20
|
-
}) => ({
|
|
21
|
-
top: marginTop ?? marginVertical ?? margin ?? DEFAULT_SPACING,
|
|
22
|
-
bottom: marginBottom ?? marginVertical ?? margin ?? DEFAULT_SPACING,
|
|
23
|
-
left: marginLeft ?? marginHorizontal ?? margin ?? DEFAULT_SPACING,
|
|
24
|
-
right: marginRight ?? marginHorizontal ?? margin ?? DEFAULT_SPACING
|
|
25
|
-
});
|
|
26
|
-
const resolvePadding = ({
|
|
27
|
-
padding,
|
|
28
|
-
paddingHorizontal,
|
|
29
|
-
paddingVertical,
|
|
30
|
-
paddingTop,
|
|
31
|
-
paddingBottom,
|
|
32
|
-
paddingLeft,
|
|
33
|
-
paddingRight
|
|
34
|
-
}) => ({
|
|
35
|
-
top: paddingTop ?? paddingVertical ?? padding ?? DEFAULT_SPACING,
|
|
36
|
-
bottom: paddingBottom ?? paddingVertical ?? padding ?? DEFAULT_SPACING,
|
|
37
|
-
left: paddingLeft ?? paddingHorizontal ?? padding ?? DEFAULT_SPACING,
|
|
38
|
-
right: paddingRight ?? paddingHorizontal ?? padding ?? DEFAULT_SPACING
|
|
39
|
-
});
|
|
40
|
-
const StyledBox = _native.default.View`
|
|
41
|
-
${({
|
|
42
|
-
margin = 0,
|
|
43
|
-
...rest
|
|
44
|
-
}) => {
|
|
45
|
-
const resolvedMargin = resolveMargin({
|
|
46
|
-
margin,
|
|
47
|
-
...rest
|
|
48
|
-
});
|
|
49
|
-
return `
|
|
50
|
-
margin-top: ${resolvedMargin.top}px;
|
|
51
|
-
margin-bottom: ${resolvedMargin.bottom}px;
|
|
52
|
-
margin-left: ${resolvedMargin.left}px;
|
|
53
|
-
margin-right: ${resolvedMargin.right}px;
|
|
54
|
-
`;
|
|
55
|
-
}}
|
|
56
|
-
|
|
57
|
-
${({
|
|
58
|
-
padding = 0,
|
|
59
|
-
...rest
|
|
60
|
-
}) => {
|
|
61
|
-
const resolvedPadding = resolvePadding({
|
|
62
|
-
padding,
|
|
63
|
-
...rest
|
|
64
|
-
});
|
|
65
|
-
return `
|
|
66
|
-
padding-top: ${resolvedPadding.top}px;
|
|
67
|
-
padding-bottom: ${resolvedPadding.bottom}px;
|
|
68
|
-
padding-left: ${resolvedPadding.left}px;
|
|
69
|
-
padding-right: ${resolvedPadding.right}px;
|
|
70
|
-
`;
|
|
71
|
-
}}
|
|
72
|
-
`;
|
|
73
|
-
const Box = ({
|
|
74
|
-
style,
|
|
75
|
-
children,
|
|
76
|
-
...rest
|
|
77
|
-
}) => /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledBox, {
|
|
78
|
-
style: style,
|
|
79
|
-
...rest,
|
|
80
|
-
children: children
|
|
81
|
-
});
|
|
82
|
-
exports.Box = Box;
|
|
83
|
-
//# sourceMappingURL=box.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_native","_jsxRuntime","e","__esModule","default","DEFAULT_SPACING","resolveMargin","margin","marginHorizontal","marginVertical","marginTop","marginBottom","marginLeft","marginRight","top","bottom","left","right","resolvePadding","padding","paddingHorizontal","paddingVertical","paddingTop","paddingBottom","paddingLeft","paddingRight","StyledBox","styled","View","rest","resolvedMargin","resolvedPadding","Box","style","children","jsx","exports"],"sourceRoot":"../../../src","sources":["Box/box.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,OAAA,GAAAF,sBAAA,CAAAC,OAAA;AAA8C,IAAAE,WAAA,GAAAF,OAAA;AAAA,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE9C,MAAMG,eAAe,GAAG,CAAC;AAEzB,MAAMC,aAAa,GAAGA,CAAC;EACrBC,MAAM;EACNC,gBAAgB;EAChBC,cAAc;EACdC,SAAS;EACTC,YAAY;EACZC,UAAU;EACVC;AACiB,CAAC,MAAM;EACxBC,GAAG,EAAEJ,SAAS,IAAID,cAAc,IAAIF,MAAM,IAAIF,eAAe;EAC7DU,MAAM,EAAEJ,YAAY,IAAIF,cAAc,IAAIF,MAAM,IAAIF,eAAe;EACnEW,IAAI,EAAEJ,UAAU,IAAIJ,gBAAgB,IAAID,MAAM,IAAIF,eAAe;EACjEY,KAAK,EAAEJ,WAAW,IAAIL,gBAAgB,IAAID,MAAM,IAAIF;AACtD,CAAC,CAAC;AAEF,MAAMa,cAAc,GAAGA,CAAC;EACtBC,OAAO;EACPC,iBAAiB;EACjBC,eAAe;EACfC,UAAU;EACVC,aAAa;EACbC,WAAW;EACXC;AACiB,CAAC,MAAM;EACxBX,GAAG,EAAEQ,UAAU,IAAID,eAAe,IAAIF,OAAO,IAAId,eAAe;EAChEU,MAAM,EAAEQ,aAAa,IAAIF,eAAe,IAAIF,OAAO,IAAId,eAAe;EACtEW,IAAI,EAAEQ,WAAW,IAAIJ,iBAAiB,IAAID,OAAO,IAAId,eAAe;EACpEY,KAAK,EAAEQ,YAAY,IAAIL,iBAAiB,IAAID,OAAO,IAAId;AACzD,CAAC,CAAC;AAqBF,MAAMqB,SAAS,GAAGC,eAAM,CAACC,IAAc;AACvC,IAAI,CAAC;EAAErB,MAAM,GAAG,CAAC;EAAE,GAAGsB;AAAK,CAAC,KAAK;EAC7B,MAAMC,cAAc,GAAGxB,aAAa,CAAC;IAAEC,MAAM;IAAE,GAAGsB;EAAK,CAAC,CAAC;EACzD,OAAO;AACX,oBAAoBC,cAAc,CAAChB,GAAG;AACtC,uBAAuBgB,cAAc,CAACf,MAAM;AAC5C,qBAAqBe,cAAc,CAACd,IAAI;AACxC,sBAAsBc,cAAc,CAACb,KAAK;AAC1C,KAAK;AACH,CAAC;AACH;AACA,IAAI,CAAC;EAAEE,OAAO,GAAG,CAAC;EAAE,GAAGU;AAAK,CAAC,KAAK;EAC9B,MAAME,eAAe,GAAGb,cAAc,CAAC;IAAEC,OAAO;IAAE,GAAGU;EAAK,CAAC,CAAC;EAC5D,OAAO;AACX,qBAAqBE,eAAe,CAACjB,GAAG;AACxC,wBAAwBiB,eAAe,CAAChB,MAAM;AAC9C,sBAAsBgB,eAAe,CAACf,IAAI;AAC1C,uBAAuBe,eAAe,CAACd,KAAK;AAC5C,KAAK;AACH,CAAC;AACH,CAAC;AAEM,MAAMe,GAAuB,GAAGA,CAAC;EAAEC,KAAK;EAAEC,QAAQ;EAAE,GAAGL;AAAK,CAAC,kBAClE,IAAA5B,WAAA,CAAAkC,GAAA,EAACT,SAAS;EAACO,KAAK,EAAEA,KAAM;EAAA,GAAKJ,IAAI;EAAAK,QAAA,EAC9BA;AAAQ,CACA,CACZ;AAACE,OAAA,CAAAJ,GAAA,GAAAA,GAAA","ignoreList":[]}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
var _box = require("./box");
|
|
7
|
-
Object.keys(_box).forEach(function (key) {
|
|
8
|
-
if (key === "default" || key === "__esModule") return;
|
|
9
|
-
if (key in exports && exports[key] === _box[key]) return;
|
|
10
|
-
Object.defineProperty(exports, key, {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: function () {
|
|
13
|
-
return _box[key];
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
});
|
|
17
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_box","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sourceRoot":"../../../src","sources":["Box/index.tsx"],"mappings":";;;;;AAAA,IAAAA,IAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,IAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,IAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,IAAA,CAAAK,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.TwigsThemeProvider = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _native = require("styled-components/native");
|
|
9
|
-
var _theme = require("../config/theme");
|
|
10
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
-
const TwigsThemeProvider = ({
|
|
13
|
-
children,
|
|
14
|
-
theme = _theme.defaultTheme
|
|
15
|
-
}) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_native.ThemeProvider, {
|
|
16
|
-
theme: theme,
|
|
17
|
-
children: children
|
|
18
|
-
});
|
|
19
|
-
exports.TwigsThemeProvider = TwigsThemeProvider;
|
|
20
|
-
//# sourceMappingURL=TwigsThemeProvider.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_native","_theme","_jsxRuntime","e","__esModule","default","TwigsThemeProvider","children","theme","defaultTheme","jsx","ThemeProvider","exports"],"sourceRoot":"../../../src","sources":["ThemeProvider/TwigsThemeProvider.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AAA+C,IAAAG,WAAA,GAAAH,OAAA;AAAA,SAAAD,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAQtC,MAAMG,kBAAqD,GAAGA,CAAC;EAAEC,QAAQ;EAAEC,KAAK,GAAGC;AAAa,CAAC,kBACtG,IAAAP,WAAA,CAAAQ,GAAA,EAACV,OAAA,CAAAW,aAAa;EAACH,KAAK,EAAEA,KAAM;EAAAD,QAAA,EAAEA;AAAQ,CAAgB,CACvD;AAACK,OAAA,CAAAN,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
var _TwigsThemeProvider = require("./TwigsThemeProvider");
|
|
7
|
-
Object.keys(_TwigsThemeProvider).forEach(function (key) {
|
|
8
|
-
if (key === "default" || key === "__esModule") return;
|
|
9
|
-
if (key in exports && exports[key] === _TwigsThemeProvider[key]) return;
|
|
10
|
-
Object.defineProperty(exports, key, {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: function () {
|
|
13
|
-
return _TwigsThemeProvider[key];
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
});
|
|
17
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_TwigsThemeProvider","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sourceRoot":"../../../src","sources":["ThemeProvider/index.ts"],"mappings":";;;;;AAAA,IAAAA,mBAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,mBAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,mBAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,mBAAA,CAAAK,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.defaultTheme = void 0;
|
|
7
|
-
const defaultTheme = exports.defaultTheme = {
|
|
8
|
-
colors: {
|
|
9
|
-
primary: "#2E666D",
|
|
10
|
-
secondary: "#363A43",
|
|
11
|
-
accent50: "#F3F3FF",
|
|
12
|
-
accent100: "#EAE9FE",
|
|
13
|
-
accent200: "#D7D6FE",
|
|
14
|
-
accent300: "#B9B5FD",
|
|
15
|
-
accent400: "#978CF9",
|
|
16
|
-
accent500: "#7158F5",
|
|
17
|
-
accent600: "#623BEC",
|
|
18
|
-
accent700: "#5329D8",
|
|
19
|
-
accent800: "#4622B5",
|
|
20
|
-
accent900: "#3B1E94",
|
|
21
|
-
primary50: "#F3F9FA",
|
|
22
|
-
primary100: "#E6F3F4",
|
|
23
|
-
primary200: "#CEE7EA",
|
|
24
|
-
primary300: "#9CCFD6",
|
|
25
|
-
primary400: "#56B0BB",
|
|
26
|
-
primary500: "#4A9CA6",
|
|
27
|
-
primary600: "#448E97",
|
|
28
|
-
primary700: "#3B8088",
|
|
29
|
-
primary800: "#36737A",
|
|
30
|
-
primary900: "#2E666D",
|
|
31
|
-
warning50: "#FFF6EF",
|
|
32
|
-
warning100: "#FEEAC7",
|
|
33
|
-
warning200: "#FDD28A",
|
|
34
|
-
warning300: "#FCBD4F",
|
|
35
|
-
warning400: "#FBAB24",
|
|
36
|
-
warning500: "#F59E0B",
|
|
37
|
-
warning600: "#DB8D06",
|
|
38
|
-
warning700: "#B47409",
|
|
39
|
-
warning800: "#92610E",
|
|
40
|
-
warning900: "#78510F",
|
|
41
|
-
highlight50: "#FFFCDA",
|
|
42
|
-
highlight100: "#FFF7AD",
|
|
43
|
-
highlight200: "#FFF27D",
|
|
44
|
-
highlight300: "#FFED4B",
|
|
45
|
-
highlight400: "#FFE81A",
|
|
46
|
-
highlight500: "#E6CF00",
|
|
47
|
-
highlight600: "#B3A100",
|
|
48
|
-
highlight700: "#807300",
|
|
49
|
-
highlight800: "#786B03",
|
|
50
|
-
highlight900: "#6A5F00",
|
|
51
|
-
positive50: "#F4FAF1",
|
|
52
|
-
positive100: "#E8F4E3",
|
|
53
|
-
positive200: "#D4E8CA",
|
|
54
|
-
positive300: "#A8D291",
|
|
55
|
-
positive400: "#67B034",
|
|
56
|
-
positive500: "#5EA130",
|
|
57
|
-
positive600: "#55932A",
|
|
58
|
-
positive700: "#4C8425",
|
|
59
|
-
positive800: "#437720",
|
|
60
|
-
positive900: "#3C691C",
|
|
61
|
-
secondary50: "#F4F6F7",
|
|
62
|
-
secondary100: "#E2E6EB",
|
|
63
|
-
secondary200: "#C9CFD8",
|
|
64
|
-
secondary300: "#A3AEBD",
|
|
65
|
-
secondary400: "#76859A",
|
|
66
|
-
secondary500: "#64748B",
|
|
67
|
-
secondary600: "#4E596C",
|
|
68
|
-
secondary700: "#444B5A",
|
|
69
|
-
secondary800: "#3D424D",
|
|
70
|
-
secondary900: "#363A43",
|
|
71
|
-
negative50: "#FFF6F3",
|
|
72
|
-
negative100: "#FDEDE8",
|
|
73
|
-
negative200: "#FFDAD0",
|
|
74
|
-
negative300: "#FFB4A1",
|
|
75
|
-
negative400: "#FA7659",
|
|
76
|
-
negative500: "#F65633",
|
|
77
|
-
negative600: "#E75030",
|
|
78
|
-
negative700: "#D14729",
|
|
79
|
-
negative800: "#BC4024",
|
|
80
|
-
negative900: "#A9371E",
|
|
81
|
-
neutral50: "#F8F8F8",
|
|
82
|
-
neutral100: "#F1F1F1",
|
|
83
|
-
neutral200: "#E2E2E2",
|
|
84
|
-
neutral300: "#C6C6C6",
|
|
85
|
-
neutral400: "#9E9E9E",
|
|
86
|
-
neutral500: "#919191",
|
|
87
|
-
neutral600: "#848484",
|
|
88
|
-
neutral700: "#767676",
|
|
89
|
-
neutral800: "#6A6A6A",
|
|
90
|
-
neutral900: "#2B2B2B",
|
|
91
|
-
black50: "#0000000A",
|
|
92
|
-
black100: "#00000014",
|
|
93
|
-
black200: "#0000001A",
|
|
94
|
-
black300: "#00000026",
|
|
95
|
-
black400: "#00000033",
|
|
96
|
-
black500: "#0000004D",
|
|
97
|
-
black600: "#00000080",
|
|
98
|
-
black700: "#000000B2",
|
|
99
|
-
black800: "#000000CC",
|
|
100
|
-
black900: "#000000",
|
|
101
|
-
white50: "#FFFFFF0D",
|
|
102
|
-
white100: "#FFFFFF14",
|
|
103
|
-
white200: "#FFFFFF1A",
|
|
104
|
-
white300: "#FFFFFF26",
|
|
105
|
-
white400: "#FFFFFF33",
|
|
106
|
-
white500: "#FFFFFF4D",
|
|
107
|
-
white600: "#FFFFFF80",
|
|
108
|
-
white700: "#FFFFFFB2",
|
|
109
|
-
white800: "#FFFFFFCC",
|
|
110
|
-
white900: "#FFFFFF"
|
|
111
|
-
},
|
|
112
|
-
space: {
|
|
113
|
-
$1: 2,
|
|
114
|
-
$2: 4,
|
|
115
|
-
$3: 6,
|
|
116
|
-
$4: 8,
|
|
117
|
-
$5: 10,
|
|
118
|
-
$6: 12,
|
|
119
|
-
$7: 14,
|
|
120
|
-
$8: 16,
|
|
121
|
-
$9: 18,
|
|
122
|
-
$10: 20,
|
|
123
|
-
$11: 22,
|
|
124
|
-
$12: 24,
|
|
125
|
-
$13: 26,
|
|
126
|
-
$14: 28,
|
|
127
|
-
$15: 30,
|
|
128
|
-
$16: 32,
|
|
129
|
-
$17: 34,
|
|
130
|
-
$18: 36,
|
|
131
|
-
$19: 38,
|
|
132
|
-
$20: 40,
|
|
133
|
-
$21: 42,
|
|
134
|
-
$22: 44,
|
|
135
|
-
$23: 46,
|
|
136
|
-
$24: 48,
|
|
137
|
-
$25: 50,
|
|
138
|
-
$26: 52,
|
|
139
|
-
$27: 54,
|
|
140
|
-
$28: 56,
|
|
141
|
-
$29: 58,
|
|
142
|
-
$30: 60,
|
|
143
|
-
$31: 62,
|
|
144
|
-
$32: 64,
|
|
145
|
-
$33: 66,
|
|
146
|
-
$34: 68,
|
|
147
|
-
$35: 70,
|
|
148
|
-
$36: 72,
|
|
149
|
-
$37: 74,
|
|
150
|
-
$38: 76,
|
|
151
|
-
$39: 78,
|
|
152
|
-
$40: 80,
|
|
153
|
-
$41: 82,
|
|
154
|
-
$42: 84,
|
|
155
|
-
$43: 86,
|
|
156
|
-
$44: 88,
|
|
157
|
-
$45: 90,
|
|
158
|
-
$46: 92,
|
|
159
|
-
$47: 94,
|
|
160
|
-
$48: 96,
|
|
161
|
-
$49: 98,
|
|
162
|
-
$50: 100
|
|
163
|
-
},
|
|
164
|
-
sizes: {
|
|
165
|
-
$1: 4,
|
|
166
|
-
$2: 8,
|
|
167
|
-
$3: 12,
|
|
168
|
-
$4: 16,
|
|
169
|
-
$5: 20,
|
|
170
|
-
$6: 24,
|
|
171
|
-
$7: 28,
|
|
172
|
-
$8: 32,
|
|
173
|
-
$9: 36,
|
|
174
|
-
$10: 40,
|
|
175
|
-
$11: 44,
|
|
176
|
-
$12: 48,
|
|
177
|
-
$13: 52,
|
|
178
|
-
$14: 56,
|
|
179
|
-
$15: 60,
|
|
180
|
-
$16: 64,
|
|
181
|
-
$17: 68,
|
|
182
|
-
$18: 72,
|
|
183
|
-
$19: 76,
|
|
184
|
-
$20: 80,
|
|
185
|
-
$21: 84,
|
|
186
|
-
$22: 88,
|
|
187
|
-
$23: 92,
|
|
188
|
-
$24: 96,
|
|
189
|
-
$25: 100,
|
|
190
|
-
$26: 104,
|
|
191
|
-
$27: 108,
|
|
192
|
-
$28: 112,
|
|
193
|
-
$29: 116,
|
|
194
|
-
$30: 120,
|
|
195
|
-
$31: 124,
|
|
196
|
-
$32: 128,
|
|
197
|
-
$33: 132,
|
|
198
|
-
$34: 136
|
|
199
|
-
}
|
|
200
|
-
};
|
|
201
|
-
//# sourceMappingURL=theme.js.map
|