@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,38 @@
|
|
|
1
|
+
import { ReactElement, ReactNode } from 'react';
|
|
2
|
+
import { PressableProps, TextStyle } from 'react-native';
|
|
3
|
+
import { CommonStyleProps, BaseAccessibilityProps } from '../utils';
|
|
4
|
+
export type ButtonSize = 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
5
|
+
export type ButtonColor = 'default' | 'primary' | 'secondary' | 'light' | 'error';
|
|
6
|
+
export type ButtonVariant = 'solid' | 'ghost' | 'outline';
|
|
7
|
+
export interface ButtonProps extends CommonStyleProps, BaseAccessibilityProps {
|
|
8
|
+
/** Content rendered inside the button. */
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
/** Size preset. @default 'sm' */
|
|
11
|
+
size?: ButtonSize;
|
|
12
|
+
/** Color preset. @default 'primary' */
|
|
13
|
+
color?: ButtonColor;
|
|
14
|
+
/** Visual variant. @default 'solid' */
|
|
15
|
+
variant?: ButtonVariant;
|
|
16
|
+
/** Whether the button is disabled. */
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
/** Whether the button is in a loading state. */
|
|
19
|
+
loading?: boolean;
|
|
20
|
+
/** Icon element rendered to the left of the label. */
|
|
21
|
+
leftIcon?: ReactElement;
|
|
22
|
+
/** Icon element rendered to the right of the label. */
|
|
23
|
+
rightIcon?: ReactElement;
|
|
24
|
+
/** Icon element for icon-only buttons (no label). */
|
|
25
|
+
icon?: ReactElement;
|
|
26
|
+
/** Press handler. */
|
|
27
|
+
onPress?: PressableProps['onPress'];
|
|
28
|
+
/** Override styles applied to the button label text. */
|
|
29
|
+
textStyle?: TextStyle;
|
|
30
|
+
/**
|
|
31
|
+
* Loader indicator shown during loading state.
|
|
32
|
+
* - `'line'` (default) — animated line loader
|
|
33
|
+
* - `'circle'` — spinning circle indicator
|
|
34
|
+
* - `ReactElement` — custom loader component
|
|
35
|
+
*/
|
|
36
|
+
loader?: ReactElement | 'line' | 'circle';
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import type { CheckboxProps } from './types';
|
|
4
|
+
/** Checkbox with checked, unchecked, and indeterminate states, supporting an optional label. */
|
|
5
|
+
export declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<View>>;
|
|
6
|
+
//# sourceMappingURL=checkbox.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CheckboxSize } from './types';
|
|
2
|
+
export interface CheckboxSizeConfig {
|
|
3
|
+
width: number;
|
|
4
|
+
height: number;
|
|
5
|
+
iconSize: number;
|
|
6
|
+
}
|
|
7
|
+
export declare const CHECKBOX_SIZE_CONFIGS: Record<CheckboxSize, CheckboxSizeConfig>;
|
|
8
|
+
/** Returns resolved size config for the checkbox variant. */
|
|
9
|
+
export declare const getCheckboxSizeConfig: (size: CheckboxSize) => CheckboxSizeConfig;
|
|
10
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { TwigsTheme } from '../theme';
|
|
2
|
+
export declare const createCheckboxStyles: (theme: TwigsTheme) => {
|
|
3
|
+
checkboxBase: {
|
|
4
|
+
borderRadius: number;
|
|
5
|
+
alignItems: "center";
|
|
6
|
+
justifyContent: "center";
|
|
7
|
+
borderWidth: number;
|
|
8
|
+
};
|
|
9
|
+
iconContainer: {
|
|
10
|
+
alignItems: "center";
|
|
11
|
+
justifyContent: "center";
|
|
12
|
+
};
|
|
13
|
+
labelContainer: {
|
|
14
|
+
marginLeft: number;
|
|
15
|
+
};
|
|
16
|
+
container: {
|
|
17
|
+
flexDirection: "row";
|
|
18
|
+
alignItems: "center";
|
|
19
|
+
alignSelf: "flex-start";
|
|
20
|
+
};
|
|
21
|
+
containerDisabled: {
|
|
22
|
+
opacity: number;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ReactNode, RefObject } from 'react';
|
|
2
|
+
import type { PressableProps, StyleProp, View, ViewStyle } from 'react-native';
|
|
3
|
+
import type { BaseAccessibilityProps, CommonStyleProps } from '../utils';
|
|
4
|
+
export type CheckboxSize = 'sm' | 'md';
|
|
5
|
+
export type CheckedState = boolean | 'indeterminate';
|
|
6
|
+
export interface CheckboxProps extends Omit<PressableProps, 'style' | 'onPress' | 'children'>, CommonStyleProps, BaseAccessibilityProps {
|
|
7
|
+
/** Current checked state: true, false, or 'indeterminate'. @default false */
|
|
8
|
+
checked?: CheckedState;
|
|
9
|
+
/** Called with the next boolean value when toggled. */
|
|
10
|
+
onChange?: (checked: boolean) => void;
|
|
11
|
+
/** Whether the checkbox is disabled. @default false */
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
/** Optional label rendered beside the checkbox. */
|
|
14
|
+
children?: ReactNode;
|
|
15
|
+
/** Size preset. @default 'sm' */
|
|
16
|
+
size?: CheckboxSize;
|
|
17
|
+
id?: string;
|
|
18
|
+
/** Ref forwarded to the outer Pressable container. */
|
|
19
|
+
containerRef?: RefObject<View>;
|
|
20
|
+
/** Style overrides for the label container. */
|
|
21
|
+
labelStyle?: StyleProp<ViewStyle>;
|
|
22
|
+
/** Style overrides for the checkbox box itself. */
|
|
23
|
+
checkboxStyle?: StyleProp<ViewStyle>;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import type { ChipProps } from './types';
|
|
4
|
+
/** Selectable pill for filters, tags, and selections with normal/pressed/active states. */
|
|
5
|
+
export declare const Chip: React.ForwardRefExoticComponent<ChipProps & React.RefAttributes<View>>;
|
|
6
|
+
//# sourceMappingURL=chip.d.ts.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { ThemeColors } from '../theme';
|
|
2
|
+
import type { ChipSize, ChipColor, ChipRounded } from './types';
|
|
3
|
+
interface SizeConfig {
|
|
4
|
+
height: number;
|
|
5
|
+
paddingHorizontal: number;
|
|
6
|
+
fontSize: number;
|
|
7
|
+
lineHeight: number;
|
|
8
|
+
iconSize: number;
|
|
9
|
+
}
|
|
10
|
+
interface ChipColorTokens {
|
|
11
|
+
regularBg: keyof ThemeColors;
|
|
12
|
+
regularBorder: keyof ThemeColors;
|
|
13
|
+
regularText: keyof ThemeColors;
|
|
14
|
+
pressedBgBase: keyof ThemeColors;
|
|
15
|
+
pressedBgOpacity: number;
|
|
16
|
+
pressedBorder: keyof ThemeColors;
|
|
17
|
+
pressedText: keyof ThemeColors;
|
|
18
|
+
activeBg: keyof ThemeColors | null;
|
|
19
|
+
activeBgBase: keyof ThemeColors | null;
|
|
20
|
+
activeBgOpacity: number;
|
|
21
|
+
activeBorder: keyof ThemeColors | null;
|
|
22
|
+
activeText: keyof ThemeColors;
|
|
23
|
+
}
|
|
24
|
+
export declare const SIZE_CONFIG: Record<ChipSize, SizeConfig>;
|
|
25
|
+
export declare const ROUNDED_RADII: Record<ChipRounded, number>;
|
|
26
|
+
export declare const COLOR_TOKENS: Record<ChipColor, ChipColorTokens>;
|
|
27
|
+
export declare const DEFAULT_SIZE: ChipSize;
|
|
28
|
+
export declare const DEFAULT_COLOR: ChipColor;
|
|
29
|
+
export declare const DEFAULT_ROUNDED: ChipRounded;
|
|
30
|
+
export {};
|
|
31
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ViewStyle, TextStyle } from 'react-native';
|
|
2
|
+
import type { TwigsTheme } from '../theme';
|
|
3
|
+
import type { ChipSize, ChipColor, ChipRounded } from './types';
|
|
4
|
+
export declare function getSizeStyles(size: ChipSize, rounded: ChipRounded): ViewStyle;
|
|
5
|
+
export declare function getRegularStyles(theme: TwigsTheme, color: ChipColor): ViewStyle;
|
|
6
|
+
export declare function getPressedStyles(theme: TwigsTheme, color: ChipColor): ViewStyle;
|
|
7
|
+
export declare function getActiveStyles(theme: TwigsTheme, color: ChipColor): ViewStyle;
|
|
8
|
+
export declare function getTextStyles(theme: TwigsTheme, color: ChipColor, size: ChipSize, active: boolean): TextStyle;
|
|
9
|
+
export declare function getIconSize(size: ChipSize): number;
|
|
10
|
+
export declare function getIconColor(theme: TwigsTheme, color: ChipColor, active: boolean): string;
|
|
11
|
+
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const styles: {
|
|
2
|
+
container: {
|
|
3
|
+
flexDirection: "row";
|
|
4
|
+
alignItems: "center";
|
|
5
|
+
justifyContent: "center";
|
|
6
|
+
alignSelf: "flex-start";
|
|
7
|
+
};
|
|
8
|
+
contentWrap: {
|
|
9
|
+
flexDirection: "row";
|
|
10
|
+
alignItems: "center";
|
|
11
|
+
justifyContent: "center";
|
|
12
|
+
paddingHorizontal: number;
|
|
13
|
+
};
|
|
14
|
+
sideElement: {
|
|
15
|
+
alignItems: "center";
|
|
16
|
+
justifyContent: "center";
|
|
17
|
+
};
|
|
18
|
+
disabled: {
|
|
19
|
+
opacity: number;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { ViewProps } from 'react-native';
|
|
3
|
+
import type { CommonStyleProps, BaseAccessibilityProps } from '../utils';
|
|
4
|
+
export type ChipSize = 'sm' | 'md' | 'lg';
|
|
5
|
+
export type ChipColor = 'secondary' | 'primary';
|
|
6
|
+
export type ChipRounded = 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | 'full';
|
|
7
|
+
export interface ChipProps extends Omit<ViewProps, 'style'>, CommonStyleProps, BaseAccessibilityProps {
|
|
8
|
+
/** Size of the chip */
|
|
9
|
+
size?: ChipSize;
|
|
10
|
+
/** Color variant */
|
|
11
|
+
color?: ChipColor;
|
|
12
|
+
/** Border radius variant. @default 'full' */
|
|
13
|
+
rounded?: ChipRounded;
|
|
14
|
+
/** Element rendered before the label (e.g. a plus icon) */
|
|
15
|
+
leftElement?: ReactNode;
|
|
16
|
+
/** Element rendered after the label (e.g. a chevron icon) */
|
|
17
|
+
rightElement?: ReactNode;
|
|
18
|
+
/** Controlled active state */
|
|
19
|
+
active?: boolean;
|
|
20
|
+
/** Initial active state for uncontrolled usage */
|
|
21
|
+
defaultActive?: boolean;
|
|
22
|
+
/** Called when active state changes */
|
|
23
|
+
onActiveStateChange?: (active: boolean) => void;
|
|
24
|
+
/** Called when the chip body is pressed */
|
|
25
|
+
onPress?: () => void;
|
|
26
|
+
/** Disables press interactions */
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
/** Chip content (label) */
|
|
29
|
+
children?: ReactNode;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { TwigsTheme } from '../theme/default-theme';
|
|
3
|
+
/** Recursively makes all properties optional — used for partial theme overrides. */
|
|
4
|
+
export type DeepPartial<T> = {
|
|
5
|
+
[P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];
|
|
6
|
+
};
|
|
7
|
+
export declare const ThemeContext: React.Context<TwigsTheme>;
|
|
8
|
+
export interface TwigsProviderProps {
|
|
9
|
+
/** Partial theme overrides deep-merged with the default theme. */
|
|
10
|
+
theme?: DeepPartial<TwigsTheme>;
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
}
|
|
13
|
+
/** Provides the Twigs theme context to all child components. */
|
|
14
|
+
export declare function TwigsProvider({ theme: customTheme, children }: TwigsProviderProps): React.JSX.Element;
|
|
15
|
+
/** Returns the current Twigs theme from the nearest TwigsProvider. */
|
|
16
|
+
export declare function useTheme(): TwigsTheme;
|
|
17
|
+
//# sourceMappingURL=theme-context.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { DropdownMenuSize } from './types';
|
|
2
|
+
interface SizeConfig {
|
|
3
|
+
itemHeight: number;
|
|
4
|
+
paddingHorizontal: number;
|
|
5
|
+
fontSize: number;
|
|
6
|
+
labelHeight: number;
|
|
7
|
+
labelPaddingVertical: number;
|
|
8
|
+
labelPaddingHorizontal: number;
|
|
9
|
+
labelFontSize: number;
|
|
10
|
+
}
|
|
11
|
+
export declare const SIZE_CONFIG: Record<DropdownMenuSize, SizeConfig>;
|
|
12
|
+
export declare const DEFAULT_SIZE: DropdownMenuSize;
|
|
13
|
+
export declare const CONTENT_BORDER_RADIUS = 12;
|
|
14
|
+
export declare const CONTENT_PADDING_VERTICAL = 8;
|
|
15
|
+
export declare const CONTENT_MIN_WIDTH = 180;
|
|
16
|
+
export declare const HIDDEN: {
|
|
17
|
+
readonly opacity: 0;
|
|
18
|
+
};
|
|
19
|
+
export declare const VISIBLE: {
|
|
20
|
+
readonly opacity: 1;
|
|
21
|
+
};
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { UseFloatingReturn } from '@floating-ui/react-native';
|
|
2
|
+
import type { DropdownMenuSize } from './types';
|
|
3
|
+
export interface DropdownMenuContextValue {
|
|
4
|
+
/** Whether the dropdown is currently open. */
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
/** Toggle or set the open state. */
|
|
7
|
+
onOpenChange: (open: boolean) => void;
|
|
8
|
+
/** Size variant for items. */
|
|
9
|
+
size: DropdownMenuSize;
|
|
10
|
+
/** Floating UI refs for positioning (setReference, setFloating). */
|
|
11
|
+
floatingRefs: UseFloatingReturn['refs'];
|
|
12
|
+
/** Floating styles from useFloating. */
|
|
13
|
+
floatingStyles: UseFloatingReturn['floatingStyles'];
|
|
14
|
+
}
|
|
15
|
+
declare const DropdownMenuContext: import("react").Context<DropdownMenuContextValue | null>;
|
|
16
|
+
export declare function useDropdownMenuContext(): DropdownMenuContextValue;
|
|
17
|
+
export { DropdownMenuContext };
|
|
18
|
+
//# sourceMappingURL=dropdown-context.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import type { DropdownMenuContentProps } from './types';
|
|
4
|
+
/** Floating content container rendered in a Modal, anchored to the trigger. */
|
|
5
|
+
export declare const DropdownMenuContent: React.ForwardRefExoticComponent<DropdownMenuContentProps & React.RefAttributes<View>>;
|
|
6
|
+
//# sourceMappingURL=dropdown-menu-content.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { DropdownMenuItemProps } from './types';
|
|
3
|
+
/** Individual action item within a DropdownMenuContent. */
|
|
4
|
+
export declare const DropdownMenuItem: React.ForwardRefExoticComponent<DropdownMenuItemProps & React.RefAttributes<import("react-native").View>>;
|
|
5
|
+
//# sourceMappingURL=dropdown-menu-item.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import type { DropdownMenuLabelProps } from './types';
|
|
4
|
+
/** Non-interactive section label within a DropdownMenuContent. */
|
|
5
|
+
export declare const DropdownMenuLabel: React.ForwardRefExoticComponent<DropdownMenuLabelProps & React.RefAttributes<View>>;
|
|
6
|
+
//# sourceMappingURL=dropdown-menu-label.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import type { DropdownMenuSeparatorProps } from './types';
|
|
4
|
+
/** Horizontal divider between menu items or sections. */
|
|
5
|
+
export declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<DropdownMenuSeparatorProps & React.RefAttributes<View>>;
|
|
6
|
+
//# sourceMappingURL=dropdown-menu-separator.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import type { DropdownMenuTriggerProps } from './types';
|
|
4
|
+
/** Pressable wrapper that toggles the dropdown open state when pressed. */
|
|
5
|
+
export declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuTriggerProps & React.RefAttributes<View>>;
|
|
6
|
+
//# sourceMappingURL=dropdown-menu-trigger.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { DropdownMenuProps } from './types';
|
|
3
|
+
/** Root compound component for a dropdown menu. Manages open state and size context. */
|
|
4
|
+
export declare const DropdownMenu: React.FC<DropdownMenuProps>;
|
|
5
|
+
//# sourceMappingURL=dropdown-menu.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { TextStyle, ViewStyle } from 'react-native';
|
|
2
|
+
import type { TwigsTheme } from '../theme';
|
|
3
|
+
import type { DropdownMenuSize } from './types';
|
|
4
|
+
export declare function getItemSizeStyles(size: DropdownMenuSize): ViewStyle;
|
|
5
|
+
export declare function getItemTextStyles(theme: TwigsTheme, size: DropdownMenuSize): TextStyle;
|
|
6
|
+
export declare function getItemPressedStyles(theme: TwigsTheme): ViewStyle;
|
|
7
|
+
export declare function getItemDisabledStyles(): ViewStyle;
|
|
8
|
+
export declare function getContentStyles(theme: TwigsTheme): ViewStyle;
|
|
9
|
+
export declare function getLabelSizeStyles(size: DropdownMenuSize): ViewStyle;
|
|
10
|
+
export declare function getLabelTextStyles(theme: TwigsTheme, size: DropdownMenuSize): TextStyle;
|
|
11
|
+
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { DropdownMenu } from './dropdown-menu';
|
|
2
|
+
export { DropdownMenuTrigger } from './dropdown-menu-trigger';
|
|
3
|
+
export { DropdownMenuContent } from './dropdown-menu-content';
|
|
4
|
+
export { DropdownMenuItem } from './dropdown-menu-item';
|
|
5
|
+
export { DropdownMenuLabel } from './dropdown-menu-label';
|
|
6
|
+
export { DropdownMenuSeparator } from './dropdown-menu-separator';
|
|
7
|
+
export type { DropdownMenuProps, DropdownMenuTriggerProps, DropdownMenuContentProps, DropdownMenuItemProps, DropdownMenuLabelProps, DropdownMenuSeparatorProps, DropdownMenuSize, } from './types';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare const styles: {
|
|
2
|
+
overlay: {
|
|
3
|
+
zIndex: number;
|
|
4
|
+
position: "absolute";
|
|
5
|
+
left: 0;
|
|
6
|
+
right: 0;
|
|
7
|
+
top: 0;
|
|
8
|
+
bottom: 0;
|
|
9
|
+
};
|
|
10
|
+
backdropPressable: {
|
|
11
|
+
position: "absolute";
|
|
12
|
+
left: 0;
|
|
13
|
+
right: 0;
|
|
14
|
+
top: 0;
|
|
15
|
+
bottom: 0;
|
|
16
|
+
};
|
|
17
|
+
contentWrapper: {
|
|
18
|
+
position: "absolute";
|
|
19
|
+
};
|
|
20
|
+
item: {
|
|
21
|
+
flexDirection: "row";
|
|
22
|
+
alignItems: "center";
|
|
23
|
+
gap: number;
|
|
24
|
+
};
|
|
25
|
+
itemTextContainer: {
|
|
26
|
+
flex: number;
|
|
27
|
+
};
|
|
28
|
+
label: {
|
|
29
|
+
justifyContent: "center";
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { ReactNode, ReactElement } from 'react';
|
|
2
|
+
import type { ViewProps, PressableProps } from 'react-native';
|
|
3
|
+
import type { CommonStyleProps, BaseAccessibilityProps } from '../utils';
|
|
4
|
+
/** Size variant for dropdown menu items. */
|
|
5
|
+
export type DropdownMenuSize = 'md' | 'lg';
|
|
6
|
+
/** Props for the root DropdownMenu compound component. */
|
|
7
|
+
export interface DropdownMenuProps {
|
|
8
|
+
/** Size variant applied to all menu items. */
|
|
9
|
+
size?: DropdownMenuSize;
|
|
10
|
+
/** Controlled open state. */
|
|
11
|
+
open?: boolean;
|
|
12
|
+
/** Default open state (uncontrolled). */
|
|
13
|
+
defaultOpen?: boolean;
|
|
14
|
+
/** Called when the open state changes. */
|
|
15
|
+
onOpenChange?: (open: boolean) => void;
|
|
16
|
+
/** Children (Trigger + Content). */
|
|
17
|
+
children: ReactNode;
|
|
18
|
+
}
|
|
19
|
+
/** Props for the dropdown trigger wrapper. */
|
|
20
|
+
export interface DropdownMenuTriggerProps extends Omit<PressableProps, 'style'>, CommonStyleProps, BaseAccessibilityProps {
|
|
21
|
+
/** Content to render as the trigger. */
|
|
22
|
+
children: ReactNode;
|
|
23
|
+
}
|
|
24
|
+
/** Props for the dropdown content container. */
|
|
25
|
+
export interface DropdownMenuContentProps extends Omit<ViewProps, 'style'>, CommonStyleProps, BaseAccessibilityProps {
|
|
26
|
+
/** Menu items, labels, and separators. */
|
|
27
|
+
children: ReactNode;
|
|
28
|
+
}
|
|
29
|
+
/** Props for an individual dropdown menu item. */
|
|
30
|
+
export interface DropdownMenuItemProps extends Omit<PressableProps, 'style'>, CommonStyleProps, BaseAccessibilityProps {
|
|
31
|
+
/** Item label text or custom content. */
|
|
32
|
+
children: ReactNode;
|
|
33
|
+
/** Whether this item is disabled. */
|
|
34
|
+
disabled?: boolean;
|
|
35
|
+
/** Called when the item is selected (pressed). */
|
|
36
|
+
onSelect?: () => void;
|
|
37
|
+
/** Icon rendered before the label. */
|
|
38
|
+
leftElement?: ReactElement;
|
|
39
|
+
/** Icon rendered after the label. */
|
|
40
|
+
rightElement?: ReactElement;
|
|
41
|
+
/** String value for accessibility (used as accessibilityLabel fallback). */
|
|
42
|
+
textValue?: string;
|
|
43
|
+
}
|
|
44
|
+
/** Props for a dropdown menu section label. */
|
|
45
|
+
export interface DropdownMenuLabelProps extends Omit<ViewProps, 'style'>, CommonStyleProps, BaseAccessibilityProps {
|
|
46
|
+
/** Label text or custom content. */
|
|
47
|
+
children: ReactNode;
|
|
48
|
+
}
|
|
49
|
+
/** Props for a dropdown menu separator. */
|
|
50
|
+
export interface DropdownMenuSeparatorProps extends Omit<ViewProps, 'style'>, CommonStyleProps, BaseAccessibilityProps {
|
|
51
|
+
/** Custom separator color. */
|
|
52
|
+
color?: string;
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import type { FlexProps } from './types';
|
|
4
|
+
/** Flexbox layout container with direction, alignment, and spacing shorthand props. */
|
|
5
|
+
export declare const Flex: React.ForwardRefExoticComponent<FlexProps & React.RefAttributes<View>>;
|
|
6
|
+
//# sourceMappingURL=flex.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { DimensionValue } from 'react-native';
|
|
3
|
+
import { MarginProps, PaddingProps, CommonStyleProps, BaseAccessibilityProps } from '../utils';
|
|
4
|
+
/** Props for the Flex layout container. */
|
|
5
|
+
export interface FlexProps extends MarginProps, PaddingProps, CommonStyleProps, BaseAccessibilityProps {
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
/** Flex direction. @default 'column' */
|
|
8
|
+
direction?: 'row' | 'column' | 'row-reverse' | 'column-reverse';
|
|
9
|
+
/** Cross-axis alignment (alignItems). */
|
|
10
|
+
align?: 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'baseline';
|
|
11
|
+
/** Main-axis alignment (justifyContent). */
|
|
12
|
+
justify?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
|
|
13
|
+
wrap?: 'nowrap' | 'wrap' | 'wrap-reverse';
|
|
14
|
+
flex?: number;
|
|
15
|
+
flexGrow?: number;
|
|
16
|
+
flexShrink?: number;
|
|
17
|
+
flexBasis?: DimensionValue;
|
|
18
|
+
alignSelf?: 'auto' | 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'baseline';
|
|
19
|
+
/** Gap between children in dp. */
|
|
20
|
+
gap?: number;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { IconButtonRounded, IconButtonSize } from './types';
|
|
2
|
+
import type { LoaderColor, LineLoaderSize, CircleLoaderSize } from '../loader';
|
|
3
|
+
export declare const ROUNDED_RADII: Record<IconButtonRounded, number>;
|
|
4
|
+
export declare const DEFAULT_ROUNDED: IconButtonRounded;
|
|
5
|
+
export interface IconButtonSizeConfig {
|
|
6
|
+
/** Container height/width (square) in dp */
|
|
7
|
+
containerSize: number;
|
|
8
|
+
/** Icon size in dp */
|
|
9
|
+
iconSize: number;
|
|
10
|
+
/** Default squircle border radius in dp */
|
|
11
|
+
borderRadius: number;
|
|
12
|
+
}
|
|
13
|
+
export declare const SIZE_CONFIG: Record<IconButtonSize, IconButtonSizeConfig>;
|
|
14
|
+
export declare const OUTLINE_BORDER_WIDTH: Record<IconButtonSize, number>;
|
|
15
|
+
export declare const DISABLED_OPACITY = 0.5;
|
|
16
|
+
export declare const LOADER_COLOR_MAP: Record<string, LoaderColor>;
|
|
17
|
+
export declare const LINE_LOADER_SIZE_MAP: Record<IconButtonSize, LineLoaderSize>;
|
|
18
|
+
export declare const LINE_LOADER_WIDTH_MAP: Record<IconButtonSize, number>;
|
|
19
|
+
export declare const CIRCLE_LOADER_SIZE_MAP: Record<IconButtonSize, CircleLoaderSize>;
|
|
20
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ViewStyle } from 'react-native';
|
|
2
|
+
import type { TwigsTheme } from '../theme';
|
|
3
|
+
import type { LoaderColor } from '../loader';
|
|
4
|
+
import type { IconButtonColor, IconButtonVariant, IconButtonSize } from './types';
|
|
5
|
+
export declare const getIconButtonStyles: (color: IconButtonColor, variant: IconButtonVariant, size: IconButtonSize, theme: TwigsTheme) => ViewStyle;
|
|
6
|
+
export declare const getIconButtonPressedStyles: (color: IconButtonColor, variant: IconButtonVariant, theme: TwigsTheme) => ViewStyle;
|
|
7
|
+
export declare const getIconColor: (color: IconButtonColor, variant: IconButtonVariant, theme: TwigsTheme, pressed: boolean) => string;
|
|
8
|
+
export declare const getIconSize: (size: IconButtonSize) => number;
|
|
9
|
+
export declare const getLoaderColor: (color: IconButtonColor, variant: IconButtonVariant) => LoaderColor;
|
|
10
|
+
export declare const getLineLoaderSize: (size: IconButtonSize) => import("../loader").LineLoaderSize;
|
|
11
|
+
export declare const getLineLoaderWidth: (size: IconButtonSize) => number;
|
|
12
|
+
export declare const getCircleLoaderSize: (size: IconButtonSize) => import("../loader").CircleLoaderSize;
|
|
13
|
+
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import type { IconButtonProps } from './types';
|
|
4
|
+
/** Icon-only pressable button with size, color, variant, and loading presets. */
|
|
5
|
+
export declare const IconButton: React.ForwardRefExoticComponent<IconButtonProps & React.RefAttributes<View>>;
|
|
6
|
+
//# sourceMappingURL=icon-button.d.ts.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { PressableProps } from 'react-native';
|
|
3
|
+
import type { CommonStyleProps, BaseAccessibilityProps } from '../utils';
|
|
4
|
+
export type IconButtonSize = 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
5
|
+
export type IconButtonColor = 'default' | 'primary' | 'secondary' | 'light' | 'error';
|
|
6
|
+
export type IconButtonVariant = 'solid' | 'ghost' | 'outline';
|
|
7
|
+
export type IconButtonRounded = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | 'full';
|
|
8
|
+
export interface IconButtonProps extends Omit<PressableProps, 'style' | 'children'>, CommonStyleProps, BaseAccessibilityProps {
|
|
9
|
+
/** Icon element rendered inside the button. Required. */
|
|
10
|
+
icon: ReactElement;
|
|
11
|
+
/** Size preset. @default 'md' */
|
|
12
|
+
size?: IconButtonSize;
|
|
13
|
+
/** Color preset. @default 'primary' */
|
|
14
|
+
color?: IconButtonColor;
|
|
15
|
+
/** Visual variant. @default 'solid' */
|
|
16
|
+
variant?: IconButtonVariant;
|
|
17
|
+
/** Border radius of the button container. @default 'full' */
|
|
18
|
+
rounded?: IconButtonRounded;
|
|
19
|
+
/** Whether the button is disabled. @default false */
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
/** Whether the button is in a loading state. @default false */
|
|
22
|
+
loading?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Loader indicator shown during loading state.
|
|
25
|
+
* - `'line'` (default) — animated line loader
|
|
26
|
+
* - `'circle'` — spinning circle indicator
|
|
27
|
+
* - `ReactElement` — custom loader component
|
|
28
|
+
*/
|
|
29
|
+
loader?: ReactElement | 'line' | 'circle';
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=types.d.ts.map
|