@sparrowengg/twigs-mobile 0.0.4 → 0.1.1
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 +217 -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/dropdown/constants.js +1 -0
- package/lib/commonjs/dropdown/dropdown-context.js +1 -0
- package/lib/commonjs/dropdown/dropdown-menu-content.js +1 -0
- package/lib/commonjs/dropdown/dropdown-menu-item.js +1 -0
- package/lib/commonjs/dropdown/dropdown-menu-label.js +1 -0
- package/lib/commonjs/dropdown/dropdown-menu-separator.js +1 -0
- package/lib/commonjs/dropdown/dropdown-menu-trigger.js +1 -0
- package/lib/commonjs/dropdown/dropdown-menu.js +1 -0
- package/lib/commonjs/dropdown/helpers.js +1 -0
- package/lib/commonjs/dropdown/index.js +1 -0
- package/lib/commonjs/dropdown/styles.js +1 -0
- package/lib/commonjs/dropdown/types.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/stepper/constants.js +1 -0
- package/lib/commonjs/stepper/helpers.js +1 -0
- package/lib/commonjs/stepper/icons.js +1 -0
- package/lib/commonjs/stepper/index.js +1 -0
- package/lib/commonjs/stepper/stepper-connector.js +1 -0
- package/lib/commonjs/stepper/stepper-context.js +1 -0
- package/lib/commonjs/stepper/stepper-item.js +1 -0
- package/lib/commonjs/stepper/stepper-trigger.js +1 -0
- package/lib/commonjs/stepper/stepper.js +1 -0
- package/lib/commonjs/stepper/styles.js +1 -0
- package/lib/commonjs/stepper/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/tabs/constants.js +1 -0
- package/lib/commonjs/tabs/helpers.js +1 -0
- package/lib/commonjs/tabs/index.js +1 -0
- package/lib/commonjs/tabs/styles.js +1 -0
- package/lib/commonjs/tabs/tabs-content.js +1 -0
- package/lib/commonjs/tabs/tabs-context.js +1 -0
- package/lib/commonjs/tabs/tabs-list.js +1 -0
- package/lib/commonjs/tabs/tabs-trigger.js +1 -0
- package/lib/commonjs/tabs/tabs.js +1 -0
- package/lib/commonjs/tabs/types.js +1 -0
- package/lib/commonjs/text/constants.js +1 -0
- package/lib/commonjs/text/helpers.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-area/constants.js +1 -0
- package/lib/commonjs/text-area/index.js +1 -0
- package/lib/commonjs/text-area/styles.js +1 -0
- package/lib/commonjs/text-area/text-area.js +1 -0
- package/lib/commonjs/text-area/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/dropdown/constants.js +1 -0
- package/lib/module/dropdown/dropdown-context.js +1 -0
- package/lib/module/dropdown/dropdown-menu-content.js +1 -0
- package/lib/module/dropdown/dropdown-menu-item.js +1 -0
- package/lib/module/dropdown/dropdown-menu-label.js +1 -0
- package/lib/module/dropdown/dropdown-menu-separator.js +1 -0
- package/lib/module/dropdown/dropdown-menu-trigger.js +1 -0
- package/lib/module/dropdown/dropdown-menu.js +1 -0
- package/lib/module/dropdown/helpers.js +1 -0
- package/lib/module/dropdown/index.js +1 -0
- package/lib/module/dropdown/styles.js +1 -0
- package/lib/module/dropdown/types.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/stepper/constants.js +1 -0
- package/lib/module/stepper/helpers.js +1 -0
- package/lib/module/stepper/icons.js +1 -0
- package/lib/module/stepper/index.js +1 -0
- package/lib/module/stepper/stepper-connector.js +1 -0
- package/lib/module/stepper/stepper-context.js +1 -0
- package/lib/module/stepper/stepper-item.js +1 -0
- package/lib/module/stepper/stepper-trigger.js +1 -0
- package/lib/module/stepper/stepper.js +1 -0
- package/lib/module/stepper/styles.js +1 -0
- package/lib/module/stepper/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/tabs/constants.js +1 -0
- package/lib/module/tabs/helpers.js +1 -0
- package/lib/module/tabs/index.js +1 -0
- package/lib/module/tabs/styles.js +1 -0
- package/lib/module/tabs/tabs-content.js +1 -0
- package/lib/module/tabs/tabs-context.js +1 -0
- package/lib/module/tabs/tabs-list.js +1 -0
- package/lib/module/tabs/tabs-trigger.js +1 -0
- package/lib/module/tabs/tabs.js +1 -0
- package/lib/module/tabs/types.js +1 -0
- package/lib/module/text/constants.js +1 -0
- package/lib/module/text/helpers.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-area/constants.js +1 -0
- package/lib/module/text-area/index.js +1 -0
- package/lib/module/text-area/styles.js +1 -0
- package/lib/module/text-area/text-area.js +1 -0
- package/lib/module/text-area/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/dropdown/constants.d.ts +23 -0
- package/lib/typescript/dropdown/dropdown-context.d.ts +18 -0
- package/lib/typescript/dropdown/dropdown-menu-content.d.ts +6 -0
- package/lib/typescript/dropdown/dropdown-menu-item.d.ts +5 -0
- package/lib/typescript/dropdown/dropdown-menu-label.d.ts +6 -0
- package/lib/typescript/dropdown/dropdown-menu-separator.d.ts +6 -0
- package/lib/typescript/dropdown/dropdown-menu-trigger.d.ts +6 -0
- package/lib/typescript/dropdown/dropdown-menu.d.ts +5 -0
- package/lib/typescript/dropdown/helpers.d.ts +11 -0
- package/lib/typescript/dropdown/index.d.ts +8 -0
- package/lib/typescript/dropdown/styles.d.ts +32 -0
- package/lib/typescript/dropdown/types.d.ts +54 -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 +57 -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 +87 -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 +21 -0
- package/lib/typescript/stepper/constants.d.ts +23 -0
- package/lib/typescript/stepper/helpers.d.ts +10 -0
- package/lib/typescript/stepper/icons.d.ts +8 -0
- package/lib/typescript/stepper/index.d.ts +5 -0
- package/lib/typescript/stepper/stepper-connector.d.ts +3 -0
- package/lib/typescript/stepper/stepper-context.d.ts +12 -0
- package/lib/typescript/stepper/stepper-item.d.ts +6 -0
- package/lib/typescript/stepper/stepper-trigger.d.ts +14 -0
- package/lib/typescript/stepper/stepper.d.ts +6 -0
- package/lib/typescript/stepper/styles.d.ts +51 -0
- package/lib/typescript/stepper/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 +29 -0
- package/lib/typescript/tabs/constants.d.ts +18 -0
- package/lib/typescript/tabs/helpers.d.ts +13 -0
- package/lib/typescript/tabs/index.d.ts +6 -0
- package/lib/typescript/tabs/styles.d.ts +39 -0
- package/lib/typescript/tabs/tabs-content.d.ts +6 -0
- package/lib/typescript/tabs/tabs-context.d.ts +23 -0
- package/lib/typescript/tabs/tabs-list.d.ts +6 -0
- package/lib/typescript/tabs/tabs-trigger.d.ts +5 -0
- package/lib/typescript/tabs/tabs.d.ts +6 -0
- package/lib/typescript/tabs/types.d.ts +43 -0
- package/lib/typescript/text/constants.d.ts +2 -0
- package/lib/typescript/text/helpers.d.ts +10 -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 +51 -0
- package/lib/typescript/text-area/constants.d.ts +24 -0
- package/lib/typescript/text-area/index.d.ts +3 -0
- package/lib/typescript/text-area/styles.d.ts +37 -0
- package/lib/typescript/text-area/text-area.d.ts +6 -0
- package/lib/typescript/text-area/types.d.ts +37 -0
- package/lib/typescript/text-input/constants.d.ts +26 -0
- package/lib/typescript/text-input/index.d.ts +3 -0
- package/lib/typescript/text-input/styles.d.ts +43 -0
- package/lib/typescript/text-input/text-input.d.ts +6 -0
- package/lib/typescript/text-input/types.d.ts +38 -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 +98 -0
- package/package.json +135 -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 @@
|
|
|
1
|
+
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.Tooltip=void 0;var _toConsumableArray2=_interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _reactNative2=require("@floating-ui/react-native");var _reactNativeReanimated=require("react-native-reanimated");var _reactNativeSvg=require("react-native-svg");var _context=require("../context");var _text=require("../text");var _utils=require("../utils");var _constants=require("./constants");var _helpers=require("./helpers");var _styles=require("./styles");var _jsxRuntime=require("react/jsx-runtime");var _this=this,_jsxFileName="/Users/krishnank/surveysparrow/npm-package/twigs-mobile/src/tooltip/tooltip.tsx";function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap(),n=new WeakMap();return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f);}for(var _t in e)"default"!==_t&&{}.hasOwnProperty.call(e,_t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t))&&(i.get||i.set)?o(f,_t,i):f[_t]=e[_t]);return f;})(e,t);}var _worklet_11467105265381_init_data={code:"function tooltipTsx1(){const{opacity,translateY,translateX}=this.__closure;return{opacity:opacity.value,transform:[{translateY:translateY.value},{translateX:translateX.value}]};}",location:"/Users/krishnank/surveysparrow/npm-package/twigs-mobile/src/tooltip/tooltip.tsx",sourceMap:"{\"version\":3,\"names\":[\"tooltipTsx1\",\"opacity\",\"translateY\",\"translateX\",\"__closure\",\"value\",\"transform\"],\"sources\":[\"/Users/krishnank/surveysparrow/npm-package/twigs-mobile/src/tooltip/tooltip.tsx\"],\"mappings\":\"AAqF2C,SAAAA,YAAA,QAAAC,OAAA,CAAAC,UAAA,CAAAC,UAAA,OAAAC,SAAA,OAAO,CAC5CH,OAAO,CAAEA,OAAO,CAACI,KAAK,CACtBC,SAAS,CAAE,CAAC,CAAEJ,UAAU,CAAEA,UAAU,CAACG,KAAM,CAAC,CAAE,CAAEF,UAAU,CAAEA,UAAU,CAACE,KAAM,CAAC,CAChF,CAAC\",\"ignoreList\":[]}",version:"3.16.7"};var Tooltip=exports.Tooltip=_react.default.forwardRef(function(_ref,_ref3){var content=_ref.content,children=_ref.children,_ref$side=_ref.side,side=_ref$side===void 0?_constants.DEFAULT_SIDE:_ref$side,_ref$align=_ref.align,align=_ref$align===void 0?'center':_ref$align,controlledOpen=_ref.open,_ref$defaultOpen=_ref.defaultOpen,defaultOpen=_ref$defaultOpen===void 0?false:_ref$defaultOpen,onOpenChange=_ref.onOpenChange,_ref$sideOffset=_ref.sideOffset,sideOffset=_ref$sideOffset===void 0?_constants.DEFAULT_SIDE_OFFSET:_ref$sideOffset,_ref$autoHideDuration=_ref.autoHideDuration,autoHideDuration=_ref$autoHideDuration===void 0?0:_ref$autoHideDuration,_ref$hasArrow=_ref.hasArrow,hasArrow=_ref$hasArrow===void 0?true:_ref$hasArrow,_ref$triggerAction=_ref.triggerAction,triggerAction=_ref$triggerAction===void 0?'press':_ref$triggerAction,css=_ref.css,style=_ref.style,testID=_ref.testID,_ref$accessible=_ref.accessible,accessible=_ref$accessible===void 0?true:_ref$accessible,accessibilityLabel=_ref.accessibilityLabel,accessibilityHint=_ref.accessibilityHint,accessibilityState=_ref.accessibilityState;var theme=(0,_context.useTheme)();var isControlled=controlledOpen!==undefined;var _useState=(0,_react.useState)(defaultOpen),_useState2=(0,_slicedToArray2.default)(_useState,2),internalOpen=_useState2[0],setInternalOpen=_useState2[1];var isOpen=isControlled?controlledOpen:internalOpen;var autoHideTimerRef=(0,_react.useRef)(null);var arrowRef=(0,_react.useRef)(null);var placement=(0,_react.useMemo)(function(){return(0,_helpers.toPlacement)(side,align);},[side,align]);var arrowDims=(0,_react.useMemo)(function(){return(0,_helpers.getArrowDimensions)(side);},[side]);var middleware=(0,_react.useMemo)(function(){return[(0,_reactNative2.offset)(function(_ref2){var rects=_ref2.rects;return{mainAxis:sideOffset+(hasArrow?arrowDims.height:0),crossAxis:(0,_helpers.getCrossAxisOffset)(side,align,side==='left'||side==='right'?rects.reference.height:rects.reference.width)};}),(0,_reactNative2.flip)(),(0,_reactNative2.shift)({padding:8})].concat((0,_toConsumableArray2.default)(hasArrow?[(0,_reactNative2.arrow)({element:arrowRef})]:[]));},[sideOffset,hasArrow,arrowDims.height,side,align]);var _useFloating=(0,_reactNative2.useFloating)({sameScrollView:false,placement:placement,middleware:middleware}),refs=_useFloating.refs,floatingStyles=_useFloating.floatingStyles,middlewareData=_useFloating.middlewareData;var opacity=(0,_reactNativeReanimated.useSharedValue)(0);var translateY=(0,_reactNativeReanimated.useSharedValue)(side==='bottom'?-4:side==='top'?4:0);var translateX=(0,_reactNativeReanimated.useSharedValue)(side==='right'?-4:side==='left'?4:0);var animatedStyle=(0,_reactNativeReanimated.useAnimatedStyle)(function(){var _e=[new global.Error(),-4,-27];var tooltipTsx1=function tooltipTsx1(){return{opacity:opacity.value,transform:[{translateY:translateY.value},{translateX:translateX.value}]};};tooltipTsx1.__closure={opacity:opacity,translateY:translateY,translateX:translateX};tooltipTsx1.__workletHash=11467105265381;tooltipTsx1.__initData=_worklet_11467105265381_init_data;tooltipTsx1.__stackDetails=_e;return tooltipTsx1;}());(0,_react.useEffect)(function(){if(isOpen){opacity.value=(0,_reactNativeReanimated.withTiming)(1,{duration:_constants.ANIMATION_DURATION});translateY.value=(0,_reactNativeReanimated.withTiming)(0,{duration:_constants.ANIMATION_DURATION});translateX.value=(0,_reactNativeReanimated.withTiming)(0,{duration:_constants.ANIMATION_DURATION});}else{opacity.value=(0,_reactNativeReanimated.withTiming)(0,{duration:_constants.ANIMATION_DURATION});}},[isOpen,opacity,translateY,translateX]);(0,_react.useEffect)(function(){if(isOpen&&autoHideDuration>0){autoHideTimerRef.current=setTimeout(function(){handleClose();},autoHideDuration);}return function(){if(autoHideTimerRef.current){clearTimeout(autoHideTimerRef.current);autoHideTimerRef.current=null;}};},[isOpen,autoHideDuration]);var handleOpen=(0,_react.useCallback)(function(){if(!isControlled)setInternalOpen(true);onOpenChange==null||onOpenChange(true);},[isControlled,onOpenChange]);var handleClose=(0,_react.useCallback)(function(){if(!isControlled)setInternalOpen(false);onOpenChange==null||onOpenChange(false);},[isControlled,onOpenChange]);var handleToggle=(0,_react.useCallback)(function(){if(isOpen){handleClose();}else{handleOpen();}},[isOpen,handleClose,handleOpen]);var contentStyle=(0,_react.useMemo)(function(){return(0,_helpers.getContentStyles)(theme);},[theme]);var textStyle=(0,_react.useMemo)(function(){return(0,_helpers.getTextStyles)(theme);},[theme]);var triggerProps=(0,_react.useMemo)(function(){if(triggerAction==='longPress'){return{onLongPress:handleToggle};}return{onPress:handleToggle};},[triggerAction,handleToggle]);var arrowPathD=(0,_react.useMemo)(function(){return(0,_helpers.getArrowPath)(side);},[side]);var arrowPositionStyle=(0,_react.useMemo)(function(){return(0,_helpers.getArrowPositionStyle)(side,align,arrowDims,middlewareData.arrow);},[side,align,arrowDims,middlewareData.arrow]);if(!content)return(0,_jsxRuntime.jsx)(_jsxRuntime.Fragment,{children:children});return(0,_jsxRuntime.jsxs)(_jsxRuntime.Fragment,{children:[(0,_jsxRuntime.jsx)(_reactNative.Pressable,Object.assign({ref:refs.setReference,collapsable:false},triggerProps,{accessible:true,accessibilityHint:accessibilityHint!=null?accessibilityHint:'Tap to show tooltip',testID:testID?`${testID}-trigger`:undefined,children:(0,_jsxRuntime.jsx)(_reactNative.View,{pointerEvents:"none",children:children})})),(0,_jsxRuntime.jsx)(_reactNative.Modal,{visible:isOpen,transparent:true,animationType:"none",onRequestClose:handleClose,statusBarTranslucent:true,children:(0,_jsxRuntime.jsxs)(_reactNative.View,{style:_styles.styles.overlay,children:[(0,_jsxRuntime.jsx)(_reactNative.Pressable,{style:_styles.styles.backdropPressable,onPress:handleClose,accessible:false}),(0,_jsxRuntime.jsx)(_reactNative.View,{ref:function ref(node){refs.setFloating(node);if(typeof _ref3==='function'){_ref3(node);}else if(_ref3){_ref3.current=node;}},collapsable:false,style:[_styles.styles.contentWrapper,floatingStyles],testID:testID,accessible:accessible,accessibilityRole:"none",accessibilityLabel:accessibilityLabel!=null?accessibilityLabel:typeof content==='string'?content:undefined,accessibilityState:accessibilityState,accessibilityLiveRegion:"polite",children:(0,_jsxRuntime.jsxs)(_utils.AnimatedView,{style:[animatedStyle,css,style],children:[(0,_jsxRuntime.jsx)(_reactNative.View,{style:contentStyle,children:typeof content==='string'?(0,_jsxRuntime.jsx)(_text.Text,{style:textStyle,children:content}):content}),hasArrow&&(0,_jsxRuntime.jsx)(_reactNative.View,{ref:arrowRef,style:[_styles.styles.arrowContainer,arrowPositionStyle],collapsable:false,children:(0,_jsxRuntime.jsx)(_reactNativeSvg.Svg,{width:arrowDims.width,height:arrowDims.height,viewBox:`0 0 ${arrowDims.width} ${arrowDims.height}`,children:(0,_jsxRuntime.jsx)(_reactNativeSvg.Path,{d:arrowPathD,fill:theme.colors.neutral900})})})]})})]})})]});});Tooltip.displayName='Tooltip';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:true});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.createTextStyle=exports.colorOpacity=exports.AnimatedView=void 0;exports.getBottomSheetTextInput=getBottomSheetTextInput;exports.resolvePadding=exports.resolveMargin=void 0;var _reactNativeReanimated=_interopRequireDefault(require("react-native-reanimated"));var AnimatedView=exports.AnimatedView=_reactNativeReanimated.default.View;var resolveMargin=exports.resolveMargin=function resolveMargin(props){var _ref,_ref2,_props$marginTop,_ref3,_ref4,_props$marginBottom,_ref5,_ref6,_props$marginLeft,_ref7,_ref8,_props$marginRight;var defaultSpacing=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;return{top:(_ref=(_ref2=(_props$marginTop=props.marginTop)!=null?_props$marginTop:props.marginVertical)!=null?_ref2:props.margin)!=null?_ref:defaultSpacing,bottom:(_ref3=(_ref4=(_props$marginBottom=props.marginBottom)!=null?_props$marginBottom:props.marginVertical)!=null?_ref4:props.margin)!=null?_ref3:defaultSpacing,left:(_ref5=(_ref6=(_props$marginLeft=props.marginLeft)!=null?_props$marginLeft:props.marginHorizontal)!=null?_ref6:props.margin)!=null?_ref5:defaultSpacing,right:(_ref7=(_ref8=(_props$marginRight=props.marginRight)!=null?_props$marginRight:props.marginHorizontal)!=null?_ref8:props.margin)!=null?_ref7:defaultSpacing};};var resolvePadding=exports.resolvePadding=function resolvePadding(props){var _ref9,_ref0,_props$paddingTop,_ref1,_ref10,_props$paddingBottom,_ref11,_ref12,_props$paddingLeft,_ref13,_ref14,_props$paddingRight;var defaultSpacing=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;return{top:(_ref9=(_ref0=(_props$paddingTop=props.paddingTop)!=null?_props$paddingTop:props.paddingVertical)!=null?_ref0:props.padding)!=null?_ref9:defaultSpacing,bottom:(_ref1=(_ref10=(_props$paddingBottom=props.paddingBottom)!=null?_props$paddingBottom:props.paddingVertical)!=null?_ref10:props.padding)!=null?_ref1:defaultSpacing,left:(_ref11=(_ref12=(_props$paddingLeft=props.paddingLeft)!=null?_props$paddingLeft:props.paddingHorizontal)!=null?_ref12:props.padding)!=null?_ref11:defaultSpacing,right:(_ref13=(_ref14=(_props$paddingRight=props.paddingRight)!=null?_props$paddingRight:props.paddingHorizontal)!=null?_ref14:props.padding)!=null?_ref13:defaultSpacing};};var colorOpacity=exports.colorOpacity=function colorOpacity(color,opacity){var raw=color.replace(/^#/,'');var base;if(raw.length===8){base=raw.slice(0,6);}else if(raw.length===4){base=raw.slice(0,3);}else{base=raw;}var fullHex=base.length===3?base.split('').map(function(c){return c+c;}).join(''):base;var alpha=Math.round(Math.min(1,Math.max(0,opacity))*255).toString(16).padStart(2,'0').toUpperCase();return`#${fullHex}${alpha}`;};var createTextStyle=exports.createTextStyle=function createTextStyle(fontFamily,fontWeight){var style={fontFamily:fontFamily};if(fontFamily==='System'&&fontWeight){style.fontWeight=fontWeight;}return style;};var _BottomSheetTextInput;function getBottomSheetTextInput(){if(!_BottomSheetTextInput){_BottomSheetTextInput=require('@gorhom/bottom-sheet').BottomSheetTextInput;}return _BottomSheetTextInput;}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import type { AlertProps } from './types';
|
|
4
|
+
/** Contextual feedback banner with status icon, content, and optional close action. */
|
|
5
|
+
export declare const Alert: React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<View>>;
|
|
6
|
+
//# sourceMappingURL=alert.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { AlertStatus } from './types';
|
|
2
|
+
export declare const ALERT_BORDER_WIDTH = 1;
|
|
3
|
+
export declare const ALERT_PADDING_LEFT = 11;
|
|
4
|
+
export declare const ALERT_PADDING_RIGHT = 7;
|
|
5
|
+
export declare const ALERT_PADDING_VERTICAL = 7;
|
|
6
|
+
export declare const ALERT_GAP = 8;
|
|
7
|
+
export declare const ALERT_BORDER_RADIUS = 8;
|
|
8
|
+
export declare const ALERT_FONT_SIZE = 14;
|
|
9
|
+
export declare const ALERT_LINE_HEIGHT = 20;
|
|
10
|
+
export declare const ALERT_ICON_SIZE = 20;
|
|
11
|
+
export declare const ALERT_CLOSE_ICON_SIZE = 16;
|
|
12
|
+
export declare const ALERT_MIN_HEIGHT = 40;
|
|
13
|
+
export declare const ALERT_TEXT_COLOR = "neutral900";
|
|
14
|
+
export declare const DEFAULT_STATUS: AlertStatus;
|
|
15
|
+
export declare const STATUS_BG_COLORS: Record<AlertStatus, string>;
|
|
16
|
+
export declare const STATUS_BORDER_COLORS: Record<AlertStatus, string>;
|
|
17
|
+
export declare const STATUS_ICON_COLORS: Record<AlertStatus, string>;
|
|
18
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ViewStyle, TextStyle } from 'react-native';
|
|
2
|
+
import type { TwigsTheme } from '../theme';
|
|
3
|
+
import type { AlertStatus } from './types';
|
|
4
|
+
export declare function getStatusContainerStyles(theme: TwigsTheme, status: AlertStatus): ViewStyle;
|
|
5
|
+
export declare function getIconColor(theme: TwigsTheme, status: AlertStatus): string;
|
|
6
|
+
export declare function getTextStyles(theme: TwigsTheme): TextStyle;
|
|
7
|
+
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface IconProps {
|
|
3
|
+
size: number;
|
|
4
|
+
color: string;
|
|
5
|
+
}
|
|
6
|
+
/** Default info icon */
|
|
7
|
+
export declare const InfoIcon: ({ size, color }: IconProps) => React.JSX.Element;
|
|
8
|
+
/** Default success icon */
|
|
9
|
+
export declare const SuccessIcon: ({ size, color }: IconProps) => React.JSX.Element;
|
|
10
|
+
/** Default warning icon */
|
|
11
|
+
export declare const WarningIcon: ({ size, color }: IconProps) => React.JSX.Element;
|
|
12
|
+
/** Default error icon */
|
|
13
|
+
export declare const ErrorIcon: ({ size, color }: IconProps) => React.JSX.Element;
|
|
14
|
+
/** Close icon */
|
|
15
|
+
export declare const CloseIcon: ({ size, color }: IconProps) => React.JSX.Element;
|
|
16
|
+
/** Map status to default icon component */
|
|
17
|
+
export declare const STATUS_ICONS: {
|
|
18
|
+
default: ({ size, color }: IconProps) => React.JSX.Element;
|
|
19
|
+
info: ({ size, color }: IconProps) => React.JSX.Element;
|
|
20
|
+
success: ({ size, color }: IconProps) => React.JSX.Element;
|
|
21
|
+
warning: ({ size, color }: IconProps) => React.JSX.Element;
|
|
22
|
+
error: ({ size, color }: IconProps) => React.JSX.Element;
|
|
23
|
+
};
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=icons.d.ts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const styles: {
|
|
2
|
+
container: {
|
|
3
|
+
flexDirection: "row";
|
|
4
|
+
alignItems: "center";
|
|
5
|
+
paddingLeft: number;
|
|
6
|
+
paddingRight: number;
|
|
7
|
+
paddingVertical: number;
|
|
8
|
+
gap: number;
|
|
9
|
+
borderRadius: number;
|
|
10
|
+
overflow: "hidden";
|
|
11
|
+
minHeight: number;
|
|
12
|
+
};
|
|
13
|
+
iconContainer: {
|
|
14
|
+
alignItems: "center";
|
|
15
|
+
justifyContent: "center";
|
|
16
|
+
};
|
|
17
|
+
contentContainer: {
|
|
18
|
+
flex: number;
|
|
19
|
+
};
|
|
20
|
+
closeButton: {
|
|
21
|
+
alignItems: "center";
|
|
22
|
+
justifyContent: "center";
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ViewProps } from 'react-native';
|
|
2
|
+
import type { CommonStyleProps, BaseAccessibilityProps } from '../utils';
|
|
3
|
+
export type AlertStatus = 'default' | 'info' | 'success' | 'warning' | 'error';
|
|
4
|
+
/**
|
|
5
|
+
* Props for the Alert component.
|
|
6
|
+
* Displays contextual feedback messages with status indicators and optional close functionality.
|
|
7
|
+
*/
|
|
8
|
+
export interface AlertProps extends Omit<ViewProps, 'style'>, CommonStyleProps, BaseAccessibilityProps {
|
|
9
|
+
/** The status/type of alert which determines colors and icon */
|
|
10
|
+
status?: AlertStatus;
|
|
11
|
+
/** Custom icon to display. If not provided, a default icon based on status is shown */
|
|
12
|
+
icon?: React.ReactElement;
|
|
13
|
+
/** Whether the alert can be dismissed */
|
|
14
|
+
closable?: boolean;
|
|
15
|
+
/** Callback when the close button is pressed */
|
|
16
|
+
onClose?: () => void;
|
|
17
|
+
/** The alert content */
|
|
18
|
+
children: React.ReactNode;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { AvatarSize, AvatarSizeProp } from './types';
|
|
2
|
+
export interface AvatarGroupSizeConfig {
|
|
3
|
+
/** Negative margin overlap between avatars (dp). */
|
|
4
|
+
overlap: number;
|
|
5
|
+
/** White border width around each avatar (dp). */
|
|
6
|
+
borderWidth: number;
|
|
7
|
+
/** Font size for the overflow "+N" label (dp). */
|
|
8
|
+
overlayFontSize: number;
|
|
9
|
+
/** Line height for the overflow "+N" label (dp). */
|
|
10
|
+
overlayLineHeight: number;
|
|
11
|
+
/** Letter spacing for the overflow "+N" label. */
|
|
12
|
+
overlayLetterSpacing: number;
|
|
13
|
+
}
|
|
14
|
+
export declare const DEFAULT_AVATAR_GROUP_LIMIT = 0;
|
|
15
|
+
export declare const DEFAULT_AVATAR_GROUP_SIZE: AvatarSizeProp;
|
|
16
|
+
export declare const DEFAULT_AVATAR_GROUP_ROUNDED: AvatarSize;
|
|
17
|
+
export declare const AVATAR_GROUP_SIZE_CONFIG: Record<AvatarSizeProp, AvatarGroupSizeConfig>;
|
|
18
|
+
//# sourceMappingURL=avatar-group.constants.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import type { AvatarGroupProps } from './avatar-group.types';
|
|
4
|
+
/** Overlapping avatar stack with optional "+N" overflow indicator. */
|
|
5
|
+
export declare const AvatarGroup: React.ForwardRefExoticComponent<AvatarGroupProps & React.RefAttributes<View>>;
|
|
6
|
+
//# sourceMappingURL=avatar-group.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { TextStyle, ViewStyle } from 'react-native';
|
|
3
|
+
import type { TwigsTheme } from '../theme';
|
|
4
|
+
import type { AvatarGroupProps } from './avatar-group.types';
|
|
5
|
+
import type { AvatarProps, AvatarSize, AvatarSizeProp } from './types';
|
|
6
|
+
export declare const isAvatarElement: (child: React.ReactNode) => child is React.ReactElement<AvatarProps>;
|
|
7
|
+
export declare const getAvatarChildren: (children: AvatarGroupProps["children"]) => React.ReactElement<AvatarProps>[];
|
|
8
|
+
/** Dynamic wrapper style for each avatar item in the group. */
|
|
9
|
+
export declare const getAvatarGroupItemStyles: (theme: TwigsTheme, size: AvatarSizeProp, rounded: AvatarSize, isFirst: boolean) => ViewStyle;
|
|
10
|
+
/** Typography for the overflow label rendered on top of the last avatar. */
|
|
11
|
+
export declare const getAvatarGroupOverlayTextStyles: (size: AvatarSizeProp) => TextStyle;
|
|
12
|
+
//# sourceMappingURL=avatar-group.helpers.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const avatarGroupStyles: {
|
|
2
|
+
group: {
|
|
3
|
+
flexDirection: "row";
|
|
4
|
+
alignItems: "center";
|
|
5
|
+
};
|
|
6
|
+
item: {
|
|
7
|
+
zIndex: number;
|
|
8
|
+
overflow: "hidden";
|
|
9
|
+
};
|
|
10
|
+
overflowOverlay: {
|
|
11
|
+
alignItems: "center";
|
|
12
|
+
justifyContent: "center";
|
|
13
|
+
position: "absolute";
|
|
14
|
+
left: 0;
|
|
15
|
+
right: 0;
|
|
16
|
+
top: 0;
|
|
17
|
+
bottom: 0;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=avatar-group.styles.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { ViewProps } from 'react-native';
|
|
3
|
+
import type { BaseAccessibilityProps, CommonStyleProps } from '../utils';
|
|
4
|
+
import type { AvatarProps, AvatarSize, AvatarSizeProp } from './types';
|
|
5
|
+
/** Props for the AvatarGroup component. */
|
|
6
|
+
export interface AvatarGroupProps extends Omit<ViewProps, 'style' | 'children'>, CommonStyleProps, BaseAccessibilityProps {
|
|
7
|
+
/** Maximum number of avatars to show before rendering a "+N" overflow avatar. */
|
|
8
|
+
limit?: number | null;
|
|
9
|
+
/** Custom label for the overflow avatar. Defaults to "+N". */
|
|
10
|
+
limitExceededLabel?: string;
|
|
11
|
+
/** Size applied to all avatars in the group unless overridden by child props. */
|
|
12
|
+
size?: AvatarSizeProp;
|
|
13
|
+
/** Border radius variant applied to all avatars in the group unless overridden by child props. */
|
|
14
|
+
rounded?: AvatarSize;
|
|
15
|
+
/** Avatar children to render in the group. */
|
|
16
|
+
children: ReactElement<AvatarProps> | ReactElement<AvatarProps>[];
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=avatar-group.types.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import type { AvatarProps } from './types';
|
|
4
|
+
/** Displays a user avatar with image, initials fallback, or anonymous placeholder. */
|
|
5
|
+
export declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<View>>;
|
|
6
|
+
//# sourceMappingURL=avatar.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AvatarSize, AvatarSizeProp } from './types';
|
|
2
|
+
export declare const AVATAR_DIMENSIONS: Record<AvatarSizeProp, {
|
|
3
|
+
width: number;
|
|
4
|
+
height: number;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const AVATAR_FONT_SIZES: Record<AvatarSizeProp, number>;
|
|
7
|
+
export declare const AVATAR_ANONYMOUS_BORDER_WIDTHS: Record<AvatarSizeProp, number>;
|
|
8
|
+
export declare const AVATAR_BORDER_RADII: Record<AvatarSize, number>;
|
|
9
|
+
export declare const DEFAULT_AVATAR_NAME = "?";
|
|
10
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { AvatarSize } from './types';
|
|
2
|
+
/** Border radius for a given rounded variant. */
|
|
3
|
+
export declare const getAvatarBorderRadius: (rounded: AvatarSize) => number;
|
|
4
|
+
/** Extract initials from a full name (first + last). */
|
|
5
|
+
export declare const getFallbackInitials: (name: string) => string;
|
|
6
|
+
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { ViewProps } from 'react-native';
|
|
2
|
+
import type { CommonStyleProps, BaseAccessibilityProps } from '../utils';
|
|
3
|
+
export type AvatarSize = 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | 'full';
|
|
4
|
+
export type AvatarSizeProp = 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl';
|
|
5
|
+
export interface AvatarProps extends Omit<ViewProps, 'style'>, CommonStyleProps, BaseAccessibilityProps {
|
|
6
|
+
/** URL of the avatar image. Falls back to initials when absent or on load failure. */
|
|
7
|
+
imageSrc?: string;
|
|
8
|
+
/** Full name used to derive initials and the default accessibilityLabel. */
|
|
9
|
+
name?: string;
|
|
10
|
+
/** Override color for the initials text. */
|
|
11
|
+
textColor?: string;
|
|
12
|
+
/** Override font size for the initials text. */
|
|
13
|
+
textSize?: number;
|
|
14
|
+
/** Override background color for the initials fallback. */
|
|
15
|
+
backgroundColor?: string;
|
|
16
|
+
/** Explicit width in dp (overrides the size preset). */
|
|
17
|
+
width?: number;
|
|
18
|
+
/** Explicit height in dp (overrides the size preset). */
|
|
19
|
+
height?: number;
|
|
20
|
+
/** Border radius variant. @default 'full' */
|
|
21
|
+
rounded?: AvatarSize;
|
|
22
|
+
/** Size preset controlling width, height, and font size. @default 'md' */
|
|
23
|
+
size?: AvatarSizeProp;
|
|
24
|
+
/** When true, renders an anonymous "?" fallback with a dashed border. */
|
|
25
|
+
isAnonymous?: boolean;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import type { BadgeProps } from './types';
|
|
4
|
+
/** Compact pill-shaped element for labels, tags, and status indicators. */
|
|
5
|
+
export declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<View>>;
|
|
6
|
+
//# sourceMappingURL=badge.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { BadgeSize, BadgeColor, BadgeRounded } from './types';
|
|
2
|
+
interface SizeConfig {
|
|
3
|
+
height: number;
|
|
4
|
+
paddingHorizontal: number;
|
|
5
|
+
fontSize: number;
|
|
6
|
+
lineHeight: number;
|
|
7
|
+
iconSize: number;
|
|
8
|
+
gap: number;
|
|
9
|
+
}
|
|
10
|
+
export declare const SIZE_CONFIG: Record<BadgeSize, SizeConfig>;
|
|
11
|
+
export declare const ROUNDED_RADII: Record<BadgeRounded, number>;
|
|
12
|
+
/** `null` means the background is computed at runtime (e.g. primary uses an alpha overlay). */
|
|
13
|
+
export declare const COLOR_BG_MAP: Record<BadgeColor, string | null>;
|
|
14
|
+
export declare const PRIMARY_BG_OPACITY = 0.08;
|
|
15
|
+
export declare const COLOR_TEXT_MAP: Record<BadgeColor, string>;
|
|
16
|
+
export declare const COLOR_BORDER_MAP: Record<BadgeColor, string | null>;
|
|
17
|
+
export declare const DEFAULT_SIZE: BadgeSize;
|
|
18
|
+
export declare const DEFAULT_COLOR: BadgeColor;
|
|
19
|
+
export declare const DEFAULT_ROUNDED: BadgeRounded;
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ViewStyle, TextStyle } from 'react-native';
|
|
2
|
+
import type { TwigsTheme } from '../theme';
|
|
3
|
+
import type { BadgeSize, BadgeColor, BadgeRounded } from './types';
|
|
4
|
+
export declare function getSizeStyles(size: BadgeSize, rounded: BadgeRounded): ViewStyle;
|
|
5
|
+
export declare function getColorStyles(theme: TwigsTheme, color: BadgeColor): ViewStyle;
|
|
6
|
+
export declare function getTextStyles(theme: TwigsTheme, color: BadgeColor, size: BadgeSize): TextStyle;
|
|
7
|
+
export declare function getIconSize(size: BadgeSize): number;
|
|
8
|
+
export declare function getIconColor(theme: TwigsTheme, color: BadgeColor): string;
|
|
9
|
+
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
};
|
|
19
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ViewProps } from 'react-native';
|
|
2
|
+
import type { CommonStyleProps, BaseAccessibilityProps } from '../utils';
|
|
3
|
+
export type BadgeSize = 'sm' | 'md';
|
|
4
|
+
export type BadgeColor = 'default' | 'white' | 'primary' | 'secondary' | 'accent' | 'positive' | 'negative' | 'attention';
|
|
5
|
+
export type BadgeRounded = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | 'full';
|
|
6
|
+
/**
|
|
7
|
+
* Props for the Badge component.
|
|
8
|
+
* Compact pill-shaped element for labels, tags, and status indicators.
|
|
9
|
+
*/
|
|
10
|
+
export interface BadgeProps extends Omit<ViewProps, 'style'>, CommonStyleProps, BaseAccessibilityProps {
|
|
11
|
+
/** Size of the badge */
|
|
12
|
+
size?: BadgeSize;
|
|
13
|
+
/** Color variant */
|
|
14
|
+
color?: BadgeColor;
|
|
15
|
+
/** Border radius variant */
|
|
16
|
+
rounded?: BadgeRounded;
|
|
17
|
+
/** Element rendered before the label */
|
|
18
|
+
leftElement?: React.ReactNode;
|
|
19
|
+
/** Element rendered after the label */
|
|
20
|
+
rightElement?: React.ReactNode;
|
|
21
|
+
/** Badge content (label) */
|
|
22
|
+
children: React.ReactNode;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BottomSheetModal as GorhomBottomSheetModal } from '@gorhom/bottom-sheet';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { BottomSheetModalProps } from './types';
|
|
4
|
+
/** Modal variant of BottomSheet that presents on top of a backdrop overlay. */
|
|
5
|
+
export declare const BottomSheetModal: React.ForwardRefExoticComponent<BottomSheetModalProps & React.RefAttributes<GorhomBottomSheetModal>>;
|
|
6
|
+
//# sourceMappingURL=bottom-sheet-modal.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { BottomSheetProps } from './types';
|
|
3
|
+
/** Themed wrapper around @gorhom/bottom-sheet with a built-in drag handle and optional title. */
|
|
4
|
+
export declare const BottomSheet: React.ForwardRefExoticComponent<BottomSheetProps & React.RefAttributes<import("@gorhom/bottom-sheet/lib/typescript/types").BottomSheetMethods>>;
|
|
5
|
+
//# sourceMappingURL=bottom-sheet.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const HANDLE_PADDING_TOP = 8;
|
|
2
|
+
export declare const HANDLE_PADDING_BOTTOM = 12;
|
|
3
|
+
export declare const HANDLE_PADDING_HORIZONTAL = 16;
|
|
4
|
+
export declare const HANDLE_BORDER_WIDTH = 1;
|
|
5
|
+
export declare const INDICATOR_WIDTH = 50;
|
|
6
|
+
export declare const HEADER_TITLE_PADDING_TOP = 8;
|
|
7
|
+
export declare const SHEET_BORDER_RADIUS = 16;
|
|
8
|
+
export declare const SHEET_BORDER_WIDTH = 1;
|
|
9
|
+
export declare const SHEET_BOTTOM_PADDING = 8;
|
|
10
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { BottomSheet } from './bottom-sheet';
|
|
2
|
+
export { BottomSheetModal } from './bottom-sheet-modal';
|
|
3
|
+
export { BottomSheetHeader } from './bottom-sheet-header';
|
|
4
|
+
export type { BottomSheetProps, BottomSheetModalProps, BottomSheetHeaderProps } from './types';
|
|
5
|
+
export { 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 '@gorhom/bottom-sheet';
|
|
6
|
+
export type { BottomSheetHandleProps, BottomSheetBackgroundProps, BottomSheetBackdropProps, BottomSheetFooterProps, BottomSheetFlatListMethods, BottomSheetScrollViewMethods, BottomSheetSectionListMethods, BottomSheetVirtualizedListMethods, BottomSheetScrollableProps, ScrollEventsHandlersHookType, GestureEventsHandlersHookType, ScrollEventHandlerCallbackType, GestureEventHandlerCallbackType, } from '@gorhom/bottom-sheet';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ViewStyle, StyleProp } from 'react-native';
|
|
2
|
+
import type { AnimateStyle } from 'react-native-reanimated';
|
|
3
|
+
import type { TwigsTheme } from '../theme';
|
|
4
|
+
/**
|
|
5
|
+
* Gorhom BottomSheet expects an animated-compatible style type.
|
|
6
|
+
* We narrow the allowed keys to avoid conflicts with internal layout props.
|
|
7
|
+
*/
|
|
8
|
+
export type AnimatedViewStyle = StyleProp<AnimateStyle<Omit<ViewStyle, 'left' | 'right' | 'top' | 'bottom' | 'position' | 'opacity' | 'flexDirection' | 'transform'>>>;
|
|
9
|
+
/** Default container style shared by BottomSheet and BottomSheetModal. */
|
|
10
|
+
export declare const getDefaultSheetStyle: (theme: TwigsTheme, safeAreaBottomInset: number, overrides?: ViewStyle) => AnimatedViewStyle;
|
|
11
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ViewStyle, StyleProp } from 'react-native';
|
|
3
|
+
import type { SharedValue } from 'react-native-reanimated';
|
|
4
|
+
import { BottomSheetProps as GorhomBottomSheetProps, BottomSheetModalProps as GorhomBottomSheetModalProps } from '@gorhom/bottom-sheet';
|
|
5
|
+
/** Themed wrapper around @gorhom/bottom-sheet with a built-in header. */
|
|
6
|
+
export interface BottomSheetProps extends Omit<GorhomBottomSheetProps, 'style' | 'handleStyle' | 'handleIndicatorStyle' | 'handleComponent'> {
|
|
7
|
+
/** Optional title displayed in the sheet header. */
|
|
8
|
+
title?: string;
|
|
9
|
+
style?: ViewStyle;
|
|
10
|
+
handleStyle?: ViewStyle;
|
|
11
|
+
handleIndicatorStyle?: ViewStyle;
|
|
12
|
+
headerStyle?: ViewStyle;
|
|
13
|
+
}
|
|
14
|
+
/** Modal variant of BottomSheet that presents on top of a backdrop. */
|
|
15
|
+
export interface BottomSheetModalProps extends Omit<GorhomBottomSheetModalProps, 'children' | 'style' | 'handleStyle' | 'handleIndicatorStyle' | 'handleComponent'> {
|
|
16
|
+
/** Optional title displayed in the sheet header. */
|
|
17
|
+
title?: string;
|
|
18
|
+
children?: ReactNode;
|
|
19
|
+
style?: ViewStyle;
|
|
20
|
+
handleStyle?: ViewStyle;
|
|
21
|
+
handleIndicatorStyle?: ViewStyle;
|
|
22
|
+
headerStyle?: ViewStyle;
|
|
23
|
+
/** Backdrop press behavior: 'none', 'close', 'collapse', or a snap point index. */
|
|
24
|
+
pressBehavior?: 'none' | 'close' | 'collapse' | number;
|
|
25
|
+
}
|
|
26
|
+
/** Props for the themed BottomSheet drag handle and optional title row. */
|
|
27
|
+
export interface BottomSheetHeaderProps {
|
|
28
|
+
animatedIndex: SharedValue<number>;
|
|
29
|
+
animatedPosition: SharedValue<number>;
|
|
30
|
+
title?: string;
|
|
31
|
+
style?: StyleProp<ViewStyle>;
|
|
32
|
+
indicatorStyle?: StyleProp<ViewStyle>;
|
|
33
|
+
headerStyle?: ViewStyle;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import type { BoxProps } from './types';
|
|
4
|
+
/** Basic layout container with margin and padding shorthand props. */
|
|
5
|
+
export declare const Box: React.ForwardRefExoticComponent<BoxProps & React.RefAttributes<View>>;
|
|
6
|
+
//# sourceMappingURL=box.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import type { ViewProps } from 'react-native';
|
|
3
|
+
import { MarginProps, PaddingProps, CommonStyleProps, BaseAccessibilityProps } from '../utils';
|
|
4
|
+
/** Props for the Box layout container. */
|
|
5
|
+
export interface BoxProps extends Omit<ViewProps, 'style'>, MarginProps, PaddingProps, CommonStyleProps, BaseAccessibilityProps {
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import type { ButtonProps } from './types';
|
|
4
|
+
/**
|
|
5
|
+
* Pressable button with multiple size, color, and variant presets.
|
|
6
|
+
* Supports loading state, left/right icons, and icon-only mode.
|
|
7
|
+
*/
|
|
8
|
+
export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<View>>;
|
|
9
|
+
//# sourceMappingURL=button.d.ts.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { ButtonSize, ButtonVariant } from './types';
|
|
2
|
+
export interface SizeConfig {
|
|
3
|
+
paddingHorizontal: number;
|
|
4
|
+
height: number;
|
|
5
|
+
width: number | 'auto';
|
|
6
|
+
borderRadius: number;
|
|
7
|
+
fontSize: number;
|
|
8
|
+
iconSize: number;
|
|
9
|
+
labelPaddingHorizontal: number;
|
|
10
|
+
}
|
|
11
|
+
export interface ColorConfig {
|
|
12
|
+
background: string;
|
|
13
|
+
text: string;
|
|
14
|
+
pressedBackground: string;
|
|
15
|
+
pressedText: string;
|
|
16
|
+
border?: string;
|
|
17
|
+
pressedBorder?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface ColorConfigMap {
|
|
20
|
+
[key: string]: {
|
|
21
|
+
[variant in ButtonVariant]: ColorConfig;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export declare const getButtonSizeConfig: (size: ButtonSize, isIcon: boolean) => SizeConfig;
|
|
25
|
+
export declare const ICON_SIZES: Record<ButtonSize, number>;
|
|
26
|
+
export declare const ICON_ONLY_SIZES: Record<ButtonSize, number>;
|
|
27
|
+
export declare const ICON_SPACING: Record<ButtonSize, number>;
|
|
28
|
+
export declare const LINE_LOADER_WIDTH_MAP: Record<ButtonSize, number>;
|
|
29
|
+
export declare const OUTLINE_BORDER_WIDTH: Record<ButtonSize, number>;
|
|
30
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { TextStyle, ViewStyle } from 'react-native';
|
|
2
|
+
import type { TwigsTheme } from '../theme';
|
|
3
|
+
import type { LoaderColor, LineLoaderSize, CircleLoaderSize } from '../loader';
|
|
4
|
+
import type { ButtonSize, ButtonColor, ButtonVariant } from './types';
|
|
5
|
+
export declare const getSizeStyles: (size: ButtonSize, isIcon: boolean) => ViewStyle;
|
|
6
|
+
export declare const getColorStyles: (color: ButtonColor, variant: ButtonVariant, theme: TwigsTheme) => ViewStyle;
|
|
7
|
+
export declare const getButtonStyles: ({ size, color, variant, isIcon, theme, }: {
|
|
8
|
+
size: ButtonSize;
|
|
9
|
+
color: ButtonColor;
|
|
10
|
+
variant: ButtonVariant;
|
|
11
|
+
isIcon: boolean;
|
|
12
|
+
theme: TwigsTheme;
|
|
13
|
+
}) => ViewStyle;
|
|
14
|
+
export declare const getTextColor: (color: ButtonColor, variant: ButtonVariant, theme: TwigsTheme) => string;
|
|
15
|
+
export declare const getPressedTextColor: (color: ButtonColor, variant: ButtonVariant, theme: TwigsTheme) => string;
|
|
16
|
+
export declare const getButtonTextStyles: ({ size, color, variant, theme, pressed, }: {
|
|
17
|
+
size: ButtonSize;
|
|
18
|
+
color: ButtonColor;
|
|
19
|
+
variant: ButtonVariant;
|
|
20
|
+
theme: TwigsTheme;
|
|
21
|
+
pressed?: boolean;
|
|
22
|
+
}) => TextStyle;
|
|
23
|
+
export declare const getIconSize: (size: ButtonSize, position: "left" | "right" | "center") => number;
|
|
24
|
+
export declare const getIconContainerStyles: ({ position, size, }: {
|
|
25
|
+
position: "left" | "right" | "center";
|
|
26
|
+
size: ButtonSize;
|
|
27
|
+
}) => ViewStyle;
|
|
28
|
+
/**
|
|
29
|
+
* Maps a button color+variant combination to the appropriate LoaderColor.
|
|
30
|
+
* Uses a compound key lookup first (e.g. 'primary-solid' → 'bright'),
|
|
31
|
+
* then falls back to a simple color→loader mapping.
|
|
32
|
+
*/
|
|
33
|
+
export declare const getLoaderColorFromButton: (color: ButtonColor, variant: ButtonVariant) => LoaderColor;
|
|
34
|
+
export declare const getLineLoaderSizeFromButton: (size: ButtonSize) => LineLoaderSize;
|
|
35
|
+
export declare const getLineLoaderWidthFromButton: (size: ButtonSize) => number;
|
|
36
|
+
export declare const getCircleLoaderSizeFromButton: (size: ButtonSize) => CircleLoaderSize;
|
|
37
|
+
export declare const getPressedStyle: (color: ButtonColor, variant: ButtonVariant, theme: TwigsTheme) => ViewStyle;
|
|
38
|
+
export declare const getButtonLoaderMargin: (size: ButtonSize) => number;
|
|
39
|
+
//# sourceMappingURL=helpers.d.ts.map
|