@korsolutions/ui 0.0.29 → 0.0.30
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/babel.config.js +12 -0
- package/bob.config.js +13 -0
- package/dist/module/components/avatar/avatar.js +21 -0
- package/dist/module/components/avatar/avatar.js.map +1 -0
- package/dist/module/components/avatar/variants/default.js +33 -0
- package/dist/module/components/avatar/variants/default.js.map +1 -0
- package/dist/module/components/avatar/variants/index.js +7 -0
- package/dist/module/components/avatar/variants/index.js.map +1 -0
- package/dist/module/components/badge/badge.js +23 -0
- package/dist/module/components/badge/badge.js.map +1 -0
- package/dist/module/components/badge/variants/default.js +30 -0
- package/dist/module/components/badge/variants/default.js.map +1 -0
- package/dist/module/components/badge/variants/index.js +9 -0
- package/dist/module/components/badge/variants/index.js.map +1 -0
- package/dist/module/components/badge/variants/secondary.js +30 -0
- package/dist/module/components/badge/variants/secondary.js.map +1 -0
- package/dist/module/components/button/button.js +23 -0
- package/dist/module/components/button/button.js.map +1 -0
- package/dist/module/components/button/variants/default.js +62 -0
- package/dist/module/components/button/variants/default.js.map +1 -0
- package/dist/module/components/button/variants/index.js +9 -0
- package/dist/module/components/button/variants/index.js.map +1 -0
- package/dist/module/components/button/variants/secondary.js +62 -0
- package/dist/module/components/button/variants/secondary.js.map +1 -0
- package/dist/module/components/calendar/calendar.js +29 -0
- package/dist/module/components/calendar/calendar.js.map +1 -0
- package/dist/module/components/calendar/index.js +4 -0
- package/dist/module/components/calendar/index.js.map +1 -0
- package/dist/module/components/calendar/variants/default.js +131 -0
- package/dist/module/components/calendar/variants/default.js.map +1 -0
- package/dist/module/components/calendar/variants/index.js +7 -0
- package/dist/module/components/calendar/variants/index.js.map +1 -0
- package/dist/module/components/card/card.js +21 -0
- package/dist/module/components/card/card.js.map +1 -0
- package/dist/module/components/card/variants/default.js +42 -0
- package/dist/module/components/card/variants/default.js.map +1 -0
- package/dist/module/components/card/variants/index.js +7 -0
- package/dist/module/components/card/variants/index.js.map +1 -0
- package/dist/module/components/dropdown-menu/dropdown-menu.js +34 -0
- package/dist/module/components/dropdown-menu/dropdown-menu.js.map +1 -0
- package/dist/module/components/dropdown-menu/variants/default.js +47 -0
- package/dist/module/components/dropdown-menu/variants/default.js.map +1 -0
- package/dist/module/components/dropdown-menu/variants/index.js +7 -0
- package/dist/module/components/dropdown-menu/variants/index.js.map +1 -0
- package/dist/module/components/empty/empty.js +21 -0
- package/dist/module/components/empty/empty.js.map +1 -0
- package/dist/module/components/empty/variants/default.js +38 -0
- package/dist/module/components/empty/variants/default.js.map +1 -0
- package/dist/module/components/empty/variants/index.js +7 -0
- package/dist/module/components/empty/variants/index.js.map +1 -0
- package/dist/module/components/field/field.js +22 -0
- package/dist/module/components/field/field.js.map +1 -0
- package/dist/module/components/field/variants/default.js +32 -0
- package/dist/module/components/field/variants/default.js.map +1 -0
- package/dist/module/components/field/variants/index.js +7 -0
- package/dist/module/components/field/variants/index.js.map +1 -0
- package/dist/module/components/index.js +18 -0
- package/dist/module/components/index.js.map +1 -0
- package/dist/module/components/input/index.js +5 -0
- package/dist/module/components/input/index.js.map +1 -0
- package/dist/module/components/input/input.js +15 -0
- package/dist/module/components/input/input.js.map +1 -0
- package/dist/module/components/input/numeric-input.js +57 -0
- package/dist/module/components/input/numeric-input.js.map +1 -0
- package/dist/module/components/input/variants/default.js +41 -0
- package/dist/module/components/input/variants/default.js.map +1 -0
- package/dist/module/components/input/variants/index.js +7 -0
- package/dist/module/components/input/variants/index.js.map +1 -0
- package/dist/module/components/link/link.js +25 -0
- package/dist/module/components/link/link.js.map +1 -0
- package/dist/module/components/link/variants/default.js +18 -0
- package/dist/module/components/link/variants/default.js.map +1 -0
- package/dist/module/components/link/variants/index.js +7 -0
- package/dist/module/components/link/variants/index.js.map +1 -0
- package/dist/module/components/popover/popover.js +39 -0
- package/dist/module/components/popover/popover.js.map +1 -0
- package/dist/module/components/popover/variants/default.js +30 -0
- package/dist/module/components/popover/variants/default.js.map +1 -0
- package/dist/module/components/popover/variants/index.js +9 -0
- package/dist/module/components/popover/variants/index.js.map +1 -0
- package/dist/module/components/popover/variants/unstyled.js +12 -0
- package/dist/module/components/popover/variants/unstyled.js.map +1 -0
- package/dist/module/components/select/select.js +25 -0
- package/dist/module/components/select/select.js.map +1 -0
- package/dist/module/components/select/variants/default.js +85 -0
- package/dist/module/components/select/variants/default.js.map +1 -0
- package/dist/module/components/select/variants/index.js +7 -0
- package/dist/module/components/select/variants/index.js.map +1 -0
- package/dist/module/components/textarea/textarea.js +15 -0
- package/dist/module/components/textarea/textarea.js.map +1 -0
- package/dist/module/components/textarea/variants/default.js +42 -0
- package/dist/module/components/textarea/variants/default.js.map +1 -0
- package/dist/module/components/textarea/variants/index.js +7 -0
- package/dist/module/components/textarea/variants/index.js.map +1 -0
- package/dist/module/components/toast/index.js +9 -0
- package/dist/module/components/toast/index.js.map +1 -0
- package/dist/module/components/toast/toast-manager.js +78 -0
- package/dist/module/components/toast/toast-manager.js.map +1 -0
- package/dist/module/components/toast/toast.js +19 -0
- package/dist/module/components/toast/toast.js.map +1 -0
- package/dist/module/components/toast/variants/danger.js +35 -0
- package/dist/module/components/toast/variants/danger.js.map +1 -0
- package/dist/module/components/toast/variants/default.js +34 -0
- package/dist/module/components/toast/variants/default.js.map +1 -0
- package/dist/module/components/toast/variants/index.js +11 -0
- package/dist/module/components/toast/variants/index.js.map +1 -0
- package/dist/module/components/toast/variants/success.js +35 -0
- package/dist/module/components/toast/variants/success.js.map +1 -0
- package/dist/module/components/typography/typography.js +15 -0
- package/dist/module/components/typography/typography.js.map +1 -0
- package/dist/module/components/typography/variants/body-lg.js +17 -0
- package/dist/module/components/typography/variants/body-lg.js.map +1 -0
- package/dist/module/components/typography/variants/body-md.js +17 -0
- package/dist/module/components/typography/variants/body-md.js.map +1 -0
- package/dist/module/components/typography/variants/body-sm.js +17 -0
- package/dist/module/components/typography/variants/body-sm.js.map +1 -0
- package/dist/module/components/typography/variants/heading-lg.js +18 -0
- package/dist/module/components/typography/variants/heading-lg.js.map +1 -0
- package/dist/module/components/typography/variants/heading-md.js +18 -0
- package/dist/module/components/typography/variants/heading-md.js.map +1 -0
- package/dist/module/components/typography/variants/heading-sm.js +18 -0
- package/dist/module/components/typography/variants/heading-sm.js.map +1 -0
- package/dist/module/components/typography/variants/index.js +17 -0
- package/dist/module/components/typography/variants/index.js.map +1 -0
- package/dist/module/hooks/index.js +7 -0
- package/dist/module/hooks/index.js.map +1 -0
- package/dist/module/hooks/use-currency-mask.js +101 -0
- package/dist/module/hooks/use-currency-mask.js.map +1 -0
- package/dist/module/hooks/use-numeric-mask.js +154 -0
- package/dist/module/hooks/use-numeric-mask.js.map +1 -0
- package/dist/module/hooks/use-relative-position.js +155 -0
- package/dist/module/hooks/use-relative-position.js.map +1 -0
- package/dist/module/hooks/use-screen-size.js +30 -0
- package/dist/module/hooks/use-screen-size.js.map +1 -0
- package/dist/module/index.js +20 -0
- package/dist/module/index.js.map +1 -0
- package/dist/module/package.json +1 -0
- package/dist/module/primitives/avatar/avatar-fallback.js +16 -0
- package/dist/module/primitives/avatar/avatar-fallback.js.map +1 -0
- package/dist/module/primitives/avatar/avatar-image.js +16 -0
- package/dist/module/primitives/avatar/avatar-image.js.map +1 -0
- package/dist/module/primitives/avatar/avatar-root.js +20 -0
- package/dist/module/primitives/avatar/avatar-root.js.map +1 -0
- package/dist/module/primitives/avatar/context.js +12 -0
- package/dist/module/primitives/avatar/context.js.map +1 -0
- package/dist/module/primitives/avatar/index.js +11 -0
- package/dist/module/primitives/avatar/index.js.map +1 -0
- package/dist/module/primitives/avatar/types.js +4 -0
- package/dist/module/primitives/avatar/types.js.map +1 -0
- package/dist/module/primitives/badge/badge-label.js +17 -0
- package/dist/module/primitives/badge/badge-label.js.map +1 -0
- package/dist/module/primitives/badge/badge-root.js +22 -0
- package/dist/module/primitives/badge/badge-root.js.map +1 -0
- package/dist/module/primitives/badge/context.js +12 -0
- package/dist/module/primitives/badge/context.js.map +1 -0
- package/dist/module/primitives/badge/index.js +9 -0
- package/dist/module/primitives/badge/index.js.map +1 -0
- package/dist/module/primitives/badge/types.js +4 -0
- package/dist/module/primitives/badge/types.js.map +1 -0
- package/dist/module/primitives/button/button-context.js +12 -0
- package/dist/module/primitives/button/button-context.js.map +1 -0
- package/dist/module/primitives/button/button-label.js +17 -0
- package/dist/module/primitives/button/button-label.js.map +1 -0
- package/dist/module/primitives/button/button-root.js +38 -0
- package/dist/module/primitives/button/button-root.js.map +1 -0
- package/dist/module/primitives/button/button-spinner.js +15 -0
- package/dist/module/primitives/button/button-spinner.js.map +1 -0
- package/dist/module/primitives/button/index.js +12 -0
- package/dist/module/primitives/button/index.js.map +1 -0
- package/dist/module/primitives/button/types.js +4 -0
- package/dist/module/primitives/button/types.js.map +1 -0
- package/dist/module/primitives/calendar/calendar-day.js +45 -0
- package/dist/module/primitives/calendar/calendar-day.js.map +1 -0
- package/dist/module/primitives/calendar/calendar-header.js +23 -0
- package/dist/module/primitives/calendar/calendar-header.js.map +1 -0
- package/dist/module/primitives/calendar/calendar-nav-button.js +61 -0
- package/dist/module/primitives/calendar/calendar-nav-button.js.map +1 -0
- package/dist/module/primitives/calendar/calendar-root.js +38 -0
- package/dist/module/primitives/calendar/calendar-root.js.map +1 -0
- package/dist/module/primitives/calendar/calendar-title.js +26 -0
- package/dist/module/primitives/calendar/calendar-title.js.map +1 -0
- package/dist/module/primitives/calendar/calendar-week-labels.js +36 -0
- package/dist/module/primitives/calendar/calendar-week-labels.js.map +1 -0
- package/dist/module/primitives/calendar/calendar-weeks.js +48 -0
- package/dist/module/primitives/calendar/calendar-weeks.js.map +1 -0
- package/dist/module/primitives/calendar/context.js +12 -0
- package/dist/module/primitives/calendar/context.js.map +1 -0
- package/dist/module/primitives/calendar/index.js +19 -0
- package/dist/module/primitives/calendar/index.js.map +1 -0
- package/dist/module/primitives/calendar/types.js +4 -0
- package/dist/module/primitives/calendar/types.js.map +1 -0
- package/dist/module/primitives/card/card-body.js +17 -0
- package/dist/module/primitives/card/card-body.js.map +1 -0
- package/dist/module/primitives/card/card-footer.js +17 -0
- package/dist/module/primitives/card/card-footer.js.map +1 -0
- package/dist/module/primitives/card/card-header.js +17 -0
- package/dist/module/primitives/card/card-header.js.map +1 -0
- package/dist/module/primitives/card/card-root.js +22 -0
- package/dist/module/primitives/card/card-root.js.map +1 -0
- package/dist/module/primitives/card/card-title.js +17 -0
- package/dist/module/primitives/card/card-title.js.map +1 -0
- package/dist/module/primitives/card/context.js +12 -0
- package/dist/module/primitives/card/context.js.map +1 -0
- package/dist/module/primitives/card/index.js +15 -0
- package/dist/module/primitives/card/index.js.map +1 -0
- package/dist/module/primitives/card/types.js +4 -0
- package/dist/module/primitives/card/types.js.map +1 -0
- package/dist/module/primitives/dropdown-menu/context.js +12 -0
- package/dist/module/primitives/dropdown-menu/context.js.map +1 -0
- package/dist/module/primitives/dropdown-menu/dropdown-menu-button.js +32 -0
- package/dist/module/primitives/dropdown-menu/dropdown-menu-button.js.map +1 -0
- package/dist/module/primitives/dropdown-menu/dropdown-menu-content.js +29 -0
- package/dist/module/primitives/dropdown-menu/dropdown-menu-content.js.map +1 -0
- package/dist/module/primitives/dropdown-menu/dropdown-menu-divider.js +16 -0
- package/dist/module/primitives/dropdown-menu/dropdown-menu-divider.js.map +1 -0
- package/dist/module/primitives/dropdown-menu/dropdown-menu-overlay.js +19 -0
- package/dist/module/primitives/dropdown-menu/dropdown-menu-overlay.js.map +1 -0
- package/dist/module/primitives/dropdown-menu/dropdown-menu-portal.js +20 -0
- package/dist/module/primitives/dropdown-menu/dropdown-menu-portal.js.map +1 -0
- package/dist/module/primitives/dropdown-menu/dropdown-menu-root.js +24 -0
- package/dist/module/primitives/dropdown-menu/dropdown-menu-root.js.map +1 -0
- package/dist/module/primitives/dropdown-menu/dropdown-menu-trigger.js +36 -0
- package/dist/module/primitives/dropdown-menu/dropdown-menu-trigger.js.map +1 -0
- package/dist/module/primitives/dropdown-menu/index.js +19 -0
- package/dist/module/primitives/dropdown-menu/index.js.map +1 -0
- package/dist/module/primitives/dropdown-menu/types.js +4 -0
- package/dist/module/primitives/dropdown-menu/types.js.map +1 -0
- package/dist/module/primitives/empty/context.js +12 -0
- package/dist/module/primitives/empty/context.js.map +1 -0
- package/dist/module/primitives/empty/empty-description.js +16 -0
- package/dist/module/primitives/empty/empty-description.js.map +1 -0
- package/dist/module/primitives/empty/empty-media.js +16 -0
- package/dist/module/primitives/empty/empty-media.js.map +1 -0
- package/dist/module/primitives/empty/empty-root.js +20 -0
- package/dist/module/primitives/empty/empty-root.js.map +1 -0
- package/dist/module/primitives/empty/empty-title.js +16 -0
- package/dist/module/primitives/empty/empty-title.js.map +1 -0
- package/dist/module/primitives/empty/index.js +13 -0
- package/dist/module/primitives/empty/index.js.map +1 -0
- package/dist/module/primitives/empty/types.js +4 -0
- package/dist/module/primitives/empty/types.js.map +1 -0
- package/dist/module/primitives/field/context.js +15 -0
- package/dist/module/primitives/field/context.js.map +1 -0
- package/dist/module/primitives/field/field-description.js +15 -0
- package/dist/module/primitives/field/field-description.js.map +1 -0
- package/dist/module/primitives/field/field-error.js +15 -0
- package/dist/module/primitives/field/field-error.js.map +1 -0
- package/dist/module/primitives/field/field-label.js +16 -0
- package/dist/module/primitives/field/field-label.js.map +1 -0
- package/dist/module/primitives/field/field-root.js +22 -0
- package/dist/module/primitives/field/field-root.js.map +1 -0
- package/dist/module/primitives/field/index.js +13 -0
- package/dist/module/primitives/field/index.js.map +1 -0
- package/dist/module/primitives/field/types.js +4 -0
- package/dist/module/primitives/field/types.js.map +1 -0
- package/dist/module/primitives/index.js +17 -0
- package/dist/module/primitives/index.js.map +1 -0
- package/dist/module/primitives/input/index.js +4 -0
- package/dist/module/primitives/input/index.js.map +1 -0
- package/dist/module/primitives/input/input.js +46 -0
- package/dist/module/primitives/input/input.js.map +1 -0
- package/dist/module/primitives/input/types.js +4 -0
- package/dist/module/primitives/input/types.js.map +1 -0
- package/dist/module/primitives/popover/context.js +12 -0
- package/dist/module/primitives/popover/context.js.map +1 -0
- package/dist/module/primitives/popover/index.js +18 -0
- package/dist/module/primitives/popover/index.js.map +1 -0
- package/dist/module/primitives/popover/popover-close.js +19 -0
- package/dist/module/primitives/popover/popover-close.js.map +1 -0
- package/dist/module/primitives/popover/popover-content.js +30 -0
- package/dist/module/primitives/popover/popover-content.js.map +1 -0
- package/dist/module/primitives/popover/popover-overlay.js +27 -0
- package/dist/module/primitives/popover/popover-overlay.js.map +1 -0
- package/dist/module/primitives/popover/popover-portal.js +20 -0
- package/dist/module/primitives/popover/popover-portal.js.map +1 -0
- package/dist/module/primitives/popover/popover-root.js +24 -0
- package/dist/module/primitives/popover/popover-root.js.map +1 -0
- package/dist/module/primitives/popover/popover-trigger.js +36 -0
- package/dist/module/primitives/popover/popover-trigger.js.map +1 -0
- package/dist/module/primitives/popover/types.js +4 -0
- package/dist/module/primitives/popover/types.js.map +1 -0
- package/dist/module/primitives/portal/index.js +5 -0
- package/dist/module/primitives/portal/index.js.map +1 -0
- package/dist/module/primitives/portal/portal.constants.js +4 -0
- package/dist/module/primitives/portal/portal.constants.js.map +1 -0
- package/dist/module/primitives/portal/portal.js +112 -0
- package/dist/module/primitives/portal/portal.js.map +1 -0
- package/dist/module/primitives/select/context.js +12 -0
- package/dist/module/primitives/select/context.js.map +1 -0
- package/dist/module/primitives/select/index.js +19 -0
- package/dist/module/primitives/select/index.js.map +1 -0
- package/dist/module/primitives/select/select-content.js +22 -0
- package/dist/module/primitives/select/select-content.js.map +1 -0
- package/dist/module/primitives/select/select-option.js +50 -0
- package/dist/module/primitives/select/select-option.js.map +1 -0
- package/dist/module/primitives/select/select-overlay.js +20 -0
- package/dist/module/primitives/select/select-overlay.js.map +1 -0
- package/dist/module/primitives/select/select-portal.js +25 -0
- package/dist/module/primitives/select/select-portal.js.map +1 -0
- package/dist/module/primitives/select/select-root.js +42 -0
- package/dist/module/primitives/select/select-root.js.map +1 -0
- package/dist/module/primitives/select/select-trigger.js +26 -0
- package/dist/module/primitives/select/select-trigger.js.map +1 -0
- package/dist/module/primitives/select/select-value.js +19 -0
- package/dist/module/primitives/select/select-value.js.map +1 -0
- package/dist/module/primitives/select/types.js +4 -0
- package/dist/module/primitives/select/types.js.map +1 -0
- package/dist/module/primitives/textarea/index.js +4 -0
- package/dist/module/primitives/textarea/index.js.map +1 -0
- package/dist/module/primitives/textarea/textarea.js +42 -0
- package/dist/module/primitives/textarea/textarea.js.map +1 -0
- package/dist/module/primitives/textarea/types.js +4 -0
- package/dist/module/primitives/textarea/types.js.map +1 -0
- package/dist/module/primitives/toast/context.js +12 -0
- package/dist/module/primitives/toast/context.js.map +1 -0
- package/dist/module/primitives/toast/index.js +11 -0
- package/dist/module/primitives/toast/index.js.map +1 -0
- package/dist/module/primitives/toast/toast-description.js +16 -0
- package/dist/module/primitives/toast/toast-description.js.map +1 -0
- package/dist/module/primitives/toast/toast-root.js +20 -0
- package/dist/module/primitives/toast/toast-root.js.map +1 -0
- package/dist/module/primitives/toast/toast-title.js +16 -0
- package/dist/module/primitives/toast/toast-title.js.map +1 -0
- package/dist/module/primitives/toast/types.js +4 -0
- package/dist/module/primitives/toast/types.js.map +1 -0
- package/dist/module/themes/adapters/index.js +4 -0
- package/dist/module/themes/adapters/index.js.map +1 -0
- package/dist/module/themes/adapters/react-navigation.js +52 -0
- package/dist/module/themes/adapters/react-navigation.js.map +1 -0
- package/dist/module/themes/default/colors.js +35 -0
- package/dist/module/themes/default/colors.js.map +1 -0
- package/dist/module/themes/default/index.js +14 -0
- package/dist/module/themes/default/index.js.map +1 -0
- package/dist/module/themes/index.js +6 -0
- package/dist/module/themes/index.js.map +1 -0
- package/dist/module/themes/provider.js +41 -0
- package/dist/module/themes/provider.js.map +1 -0
- package/dist/module/themes/themes.js +7 -0
- package/dist/module/themes/themes.js.map +1 -0
- package/dist/module/themes/types.js +2 -0
- package/dist/module/themes/types.js.map +1 -0
- package/dist/module/types/element.types.js +4 -0
- package/dist/module/types/element.types.js.map +1 -0
- package/dist/module/utils/calculate-styles.js +17 -0
- package/dist/module/utils/calculate-styles.js.map +1 -0
- package/dist/module/utils/date-utils.js +95 -0
- package/dist/module/utils/date-utils.js.map +1 -0
- package/dist/module/utils/hsla-utils.js +33 -0
- package/dist/module/utils/hsla-utils.js.map +1 -0
- package/dist/module/utils/normalize-layout.js +16 -0
- package/dist/module/utils/normalize-layout.js.map +1 -0
- package/dist/module/utils/use-themed-styles.js +14 -0
- package/dist/module/utils/use-themed-styles.js.map +1 -0
- package/dist/typescript/babel.config.d.ts +10 -0
- package/dist/typescript/babel.config.d.ts.map +1 -0
- package/dist/typescript/bob.config.d.ts +6 -0
- package/dist/typescript/bob.config.d.ts.map +1 -0
- package/dist/typescript/package.json +1 -0
- package/dist/typescript/src/components/avatar/avatar.d.ts +10 -0
- package/dist/typescript/src/components/avatar/avatar.d.ts.map +1 -0
- package/dist/typescript/src/components/avatar/variants/default.d.ts +3 -0
- package/dist/typescript/src/components/avatar/variants/default.d.ts.map +1 -0
- package/dist/typescript/src/components/avatar/variants/index.d.ts +5 -0
- package/dist/typescript/src/components/avatar/variants/index.d.ts.map +1 -0
- package/dist/typescript/src/components/badge/badge.d.ts +10 -0
- package/dist/typescript/src/components/badge/badge.d.ts.map +1 -0
- package/dist/typescript/src/components/badge/variants/default.d.ts +3 -0
- package/dist/typescript/src/components/badge/variants/default.d.ts.map +1 -0
- package/dist/typescript/src/components/badge/variants/index.d.ts +5 -0
- package/dist/typescript/src/components/badge/variants/index.d.ts.map +1 -0
- package/dist/typescript/src/components/badge/variants/secondary.d.ts +3 -0
- package/dist/typescript/src/components/badge/variants/secondary.d.ts.map +1 -0
- package/dist/typescript/src/components/button/button.d.ts +14 -0
- package/dist/typescript/src/components/button/button.d.ts.map +1 -0
- package/dist/typescript/src/components/button/variants/default.d.ts +3 -0
- package/dist/typescript/src/components/button/variants/default.d.ts.map +1 -0
- package/dist/typescript/src/components/button/variants/index.d.ts +5 -0
- package/dist/typescript/src/components/button/variants/index.d.ts.map +1 -0
- package/dist/typescript/src/components/button/variants/secondary.d.ts +3 -0
- package/dist/typescript/src/components/button/variants/secondary.d.ts.map +1 -0
- package/dist/typescript/src/components/calendar/calendar.d.ts +14 -0
- package/dist/typescript/src/components/calendar/calendar.d.ts.map +1 -0
- package/dist/typescript/src/components/calendar/index.d.ts +2 -0
- package/dist/typescript/src/components/calendar/index.d.ts.map +1 -0
- package/dist/typescript/src/components/calendar/variants/default.d.ts +3 -0
- package/dist/typescript/src/components/calendar/variants/default.d.ts.map +1 -0
- package/dist/typescript/src/components/calendar/variants/index.d.ts +4 -0
- package/dist/typescript/src/components/calendar/variants/index.d.ts.map +1 -0
- package/dist/typescript/src/components/card/card.d.ts +10 -0
- package/dist/typescript/src/components/card/card.d.ts.map +1 -0
- package/dist/typescript/src/components/card/variants/default.d.ts +3 -0
- package/dist/typescript/src/components/card/variants/default.d.ts.map +1 -0
- package/dist/typescript/src/components/card/variants/index.d.ts +5 -0
- package/dist/typescript/src/components/card/variants/index.d.ts.map +1 -0
- package/dist/typescript/src/components/dropdown-menu/dropdown-menu.d.ts +18 -0
- package/dist/typescript/src/components/dropdown-menu/dropdown-menu.d.ts.map +1 -0
- package/dist/typescript/src/components/dropdown-menu/variants/default.d.ts +3 -0
- package/dist/typescript/src/components/dropdown-menu/variants/default.d.ts.map +1 -0
- package/dist/typescript/src/components/dropdown-menu/variants/index.d.ts +4 -0
- package/dist/typescript/src/components/dropdown-menu/variants/index.d.ts.map +1 -0
- package/dist/typescript/src/components/empty/empty.d.ts +11 -0
- package/dist/typescript/src/components/empty/empty.d.ts.map +1 -0
- package/dist/typescript/src/components/empty/variants/default.d.ts +3 -0
- package/dist/typescript/src/components/empty/variants/default.d.ts.map +1 -0
- package/dist/typescript/src/components/empty/variants/index.d.ts +5 -0
- package/dist/typescript/src/components/empty/variants/index.d.ts.map +1 -0
- package/dist/typescript/src/components/field/field.d.ts +12 -0
- package/dist/typescript/src/components/field/field.d.ts.map +1 -0
- package/dist/typescript/src/components/field/variants/default.d.ts +3 -0
- package/dist/typescript/src/components/field/variants/default.d.ts.map +1 -0
- package/dist/typescript/src/components/field/variants/index.d.ts +4 -0
- package/dist/typescript/src/components/field/variants/index.d.ts.map +1 -0
- package/dist/typescript/src/components/index.d.ts +16 -0
- package/dist/typescript/src/components/index.d.ts.map +1 -0
- package/dist/typescript/src/components/input/index.d.ts +3 -0
- package/dist/typescript/src/components/input/index.d.ts.map +1 -0
- package/dist/typescript/src/components/input/input.d.ts +9 -0
- package/dist/typescript/src/components/input/input.d.ts.map +1 -0
- package/dist/typescript/src/components/input/numeric-input.d.ts +17 -0
- package/dist/typescript/src/components/input/numeric-input.d.ts.map +1 -0
- package/dist/typescript/src/components/input/variants/default.d.ts +3 -0
- package/dist/typescript/src/components/input/variants/default.d.ts.map +1 -0
- package/dist/typescript/src/components/input/variants/index.d.ts +5 -0
- package/dist/typescript/src/components/input/variants/index.d.ts.map +1 -0
- package/dist/typescript/src/components/link/link.d.ts +9 -0
- package/dist/typescript/src/components/link/link.d.ts.map +1 -0
- package/dist/typescript/src/components/link/variants/default.d.ts +3 -0
- package/dist/typescript/src/components/link/variants/default.d.ts.map +1 -0
- package/dist/typescript/src/components/link/variants/index.d.ts +5 -0
- package/dist/typescript/src/components/link/variants/index.d.ts.map +1 -0
- package/dist/typescript/src/components/popover/popover.d.ts +16 -0
- package/dist/typescript/src/components/popover/popover.d.ts.map +1 -0
- package/dist/typescript/src/components/popover/variants/default.d.ts +3 -0
- package/dist/typescript/src/components/popover/variants/default.d.ts.map +1 -0
- package/dist/typescript/src/components/popover/variants/index.d.ts +5 -0
- package/dist/typescript/src/components/popover/variants/index.d.ts.map +1 -0
- package/dist/typescript/src/components/popover/variants/unstyled.d.ts +3 -0
- package/dist/typescript/src/components/popover/variants/unstyled.d.ts.map +1 -0
- package/dist/typescript/src/components/select/select.d.ts +13 -0
- package/dist/typescript/src/components/select/select.d.ts.map +1 -0
- package/dist/typescript/src/components/select/variants/default.d.ts +3 -0
- package/dist/typescript/src/components/select/variants/default.d.ts.map +1 -0
- package/dist/typescript/src/components/select/variants/index.d.ts +5 -0
- package/dist/typescript/src/components/select/variants/index.d.ts.map +1 -0
- package/dist/typescript/src/components/textarea/textarea.d.ts +9 -0
- package/dist/typescript/src/components/textarea/textarea.d.ts.map +1 -0
- package/dist/typescript/src/components/textarea/variants/default.d.ts +3 -0
- package/dist/typescript/src/components/textarea/variants/default.d.ts.map +1 -0
- package/dist/typescript/src/components/textarea/variants/index.d.ts +5 -0
- package/dist/typescript/src/components/textarea/variants/index.d.ts.map +1 -0
- package/dist/typescript/src/components/toast/index.d.ts +6 -0
- package/dist/typescript/src/components/toast/index.d.ts.map +1 -0
- package/dist/typescript/src/components/toast/toast-manager.d.ts +19 -0
- package/dist/typescript/src/components/toast/toast-manager.d.ts.map +1 -0
- package/dist/typescript/src/components/toast/toast.d.ts +10 -0
- package/dist/typescript/src/components/toast/toast.d.ts.map +1 -0
- package/dist/typescript/src/components/toast/variants/danger.d.ts +3 -0
- package/dist/typescript/src/components/toast/variants/danger.d.ts.map +1 -0
- package/dist/typescript/src/components/toast/variants/default.d.ts +3 -0
- package/dist/typescript/src/components/toast/variants/default.d.ts.map +1 -0
- package/dist/typescript/src/components/toast/variants/index.d.ts +6 -0
- package/dist/typescript/src/components/toast/variants/index.d.ts.map +1 -0
- package/dist/typescript/src/components/toast/variants/success.d.ts +3 -0
- package/dist/typescript/src/components/toast/variants/success.d.ts.map +1 -0
- package/dist/typescript/src/components/typography/typography.d.ts +8 -0
- package/dist/typescript/src/components/typography/typography.d.ts.map +1 -0
- package/dist/typescript/src/components/typography/variants/body-lg.d.ts +3 -0
- package/dist/typescript/src/components/typography/variants/body-lg.d.ts.map +1 -0
- package/dist/typescript/src/components/typography/variants/body-md.d.ts +3 -0
- package/dist/typescript/src/components/typography/variants/body-md.d.ts.map +1 -0
- package/dist/typescript/src/components/typography/variants/body-sm.d.ts +3 -0
- package/dist/typescript/src/components/typography/variants/body-sm.d.ts.map +1 -0
- package/dist/typescript/src/components/typography/variants/heading-lg.d.ts +3 -0
- package/dist/typescript/src/components/typography/variants/heading-lg.d.ts.map +1 -0
- package/dist/typescript/src/components/typography/variants/heading-md.d.ts +3 -0
- package/dist/typescript/src/components/typography/variants/heading-md.d.ts.map +1 -0
- package/dist/typescript/src/components/typography/variants/heading-sm.d.ts +3 -0
- package/dist/typescript/src/components/typography/variants/heading-sm.d.ts.map +1 -0
- package/dist/typescript/src/components/typography/variants/index.d.ts +15 -0
- package/dist/typescript/src/components/typography/variants/index.d.ts.map +1 -0
- package/dist/typescript/src/hooks/index.d.ts +5 -0
- package/dist/typescript/src/hooks/index.d.ts.map +1 -0
- package/dist/typescript/src/hooks/use-currency-mask.d.ts +19 -0
- package/dist/typescript/src/hooks/use-currency-mask.d.ts.map +1 -0
- package/dist/typescript/src/hooks/use-numeric-mask.d.ts +22 -0
- package/dist/typescript/src/hooks/use-numeric-mask.d.ts.map +1 -0
- package/dist/typescript/src/hooks/use-relative-position.d.ts +50 -0
- package/dist/typescript/src/hooks/use-relative-position.d.ts.map +1 -0
- package/dist/typescript/src/hooks/use-screen-size.d.ts +22 -0
- package/dist/typescript/src/hooks/use-screen-size.d.ts.map +1 -0
- package/dist/typescript/src/index.d.ts +10 -0
- package/dist/typescript/src/index.d.ts.map +1 -0
- package/dist/typescript/src/primitives/avatar/avatar-fallback.d.ts +9 -0
- package/dist/typescript/src/primitives/avatar/avatar-fallback.d.ts.map +1 -0
- package/dist/typescript/src/primitives/avatar/avatar-image.d.ts +10 -0
- package/dist/typescript/src/primitives/avatar/avatar-image.d.ts.map +1 -0
- package/dist/typescript/src/primitives/avatar/avatar-root.d.ts +11 -0
- package/dist/typescript/src/primitives/avatar/avatar-root.d.ts.map +1 -0
- package/dist/typescript/src/primitives/avatar/context.d.ts +7 -0
- package/dist/typescript/src/primitives/avatar/context.d.ts.map +1 -0
- package/dist/typescript/src/primitives/avatar/index.d.ts +13 -0
- package/dist/typescript/src/primitives/avatar/index.d.ts.map +1 -0
- package/dist/typescript/src/primitives/avatar/types.d.ts +9 -0
- package/dist/typescript/src/primitives/avatar/types.d.ts.map +1 -0
- package/dist/typescript/src/primitives/badge/badge-label.d.ts +9 -0
- package/dist/typescript/src/primitives/badge/badge-label.d.ts.map +1 -0
- package/dist/typescript/src/primitives/badge/badge-root.d.ts +11 -0
- package/dist/typescript/src/primitives/badge/badge-root.d.ts.map +1 -0
- package/dist/typescript/src/primitives/badge/context.d.ts +8 -0
- package/dist/typescript/src/primitives/badge/context.d.ts.map +1 -0
- package/dist/typescript/src/primitives/badge/index.d.ts +10 -0
- package/dist/typescript/src/primitives/badge/index.d.ts.map +1 -0
- package/dist/typescript/src/primitives/badge/types.d.ts +8 -0
- package/dist/typescript/src/primitives/badge/types.d.ts.map +1 -0
- package/dist/typescript/src/primitives/button/button-context.d.ts +9 -0
- package/dist/typescript/src/primitives/button/button-context.d.ts.map +1 -0
- package/dist/typescript/src/primitives/button/button-label.d.ts +9 -0
- package/dist/typescript/src/primitives/button/button-label.d.ts.map +1 -0
- package/dist/typescript/src/primitives/button/button-root.d.ts +13 -0
- package/dist/typescript/src/primitives/button/button-root.d.ts.map +1 -0
- package/dist/typescript/src/primitives/button/button-spinner.d.ts +8 -0
- package/dist/typescript/src/primitives/button/button-spinner.d.ts.map +1 -0
- package/dist/typescript/src/primitives/button/index.d.ts +12 -0
- package/dist/typescript/src/primitives/button/index.d.ts.map +1 -0
- package/dist/typescript/src/primitives/button/types.d.ts +9 -0
- package/dist/typescript/src/primitives/button/types.d.ts.map +1 -0
- package/dist/typescript/src/primitives/calendar/calendar-day.d.ts +10 -0
- package/dist/typescript/src/primitives/calendar/calendar-day.d.ts.map +1 -0
- package/dist/typescript/src/primitives/calendar/calendar-header.d.ts +8 -0
- package/dist/typescript/src/primitives/calendar/calendar-header.d.ts.map +1 -0
- package/dist/typescript/src/primitives/calendar/calendar-nav-button.d.ts +10 -0
- package/dist/typescript/src/primitives/calendar/calendar-nav-button.d.ts.map +1 -0
- package/dist/typescript/src/primitives/calendar/calendar-root.d.ts +15 -0
- package/dist/typescript/src/primitives/calendar/calendar-root.d.ts.map +1 -0
- package/dist/typescript/src/primitives/calendar/calendar-title.d.ts +9 -0
- package/dist/typescript/src/primitives/calendar/calendar-title.d.ts.map +1 -0
- package/dist/typescript/src/primitives/calendar/calendar-week-labels.d.ts +12 -0
- package/dist/typescript/src/primitives/calendar/calendar-week-labels.d.ts.map +1 -0
- package/dist/typescript/src/primitives/calendar/calendar-weeks.d.ts +11 -0
- package/dist/typescript/src/primitives/calendar/calendar-weeks.d.ts.map +1 -0
- package/dist/typescript/src/primitives/calendar/context.d.ts +14 -0
- package/dist/typescript/src/primitives/calendar/context.d.ts.map +1 -0
- package/dist/typescript/src/primitives/calendar/index.d.ts +25 -0
- package/dist/typescript/src/primitives/calendar/index.d.ts.map +1 -0
- package/dist/typescript/src/primitives/calendar/types.d.ts +37 -0
- package/dist/typescript/src/primitives/calendar/types.d.ts.map +1 -0
- package/dist/typescript/src/primitives/card/card-body.d.ts +9 -0
- package/dist/typescript/src/primitives/card/card-body.d.ts.map +1 -0
- package/dist/typescript/src/primitives/card/card-footer.d.ts +9 -0
- package/dist/typescript/src/primitives/card/card-footer.d.ts.map +1 -0
- package/dist/typescript/src/primitives/card/card-header.d.ts +9 -0
- package/dist/typescript/src/primitives/card/card-header.d.ts.map +1 -0
- package/dist/typescript/src/primitives/card/card-root.d.ts +11 -0
- package/dist/typescript/src/primitives/card/card-root.d.ts.map +1 -0
- package/dist/typescript/src/primitives/card/card-title.d.ts +9 -0
- package/dist/typescript/src/primitives/card/card-title.d.ts.map +1 -0
- package/dist/typescript/src/primitives/card/context.d.ts +8 -0
- package/dist/typescript/src/primitives/card/context.d.ts.map +1 -0
- package/dist/typescript/src/primitives/card/index.d.ts +19 -0
- package/dist/typescript/src/primitives/card/index.d.ts.map +1 -0
- package/dist/typescript/src/primitives/card/types.d.ts +14 -0
- package/dist/typescript/src/primitives/card/types.d.ts.map +1 -0
- package/dist/typescript/src/primitives/dropdown-menu/context.d.ts +16 -0
- package/dist/typescript/src/primitives/dropdown-menu/context.d.ts.map +1 -0
- package/dist/typescript/src/primitives/dropdown-menu/dropdown-menu-button.d.ts +12 -0
- package/dist/typescript/src/primitives/dropdown-menu/dropdown-menu-button.d.ts.map +1 -0
- package/dist/typescript/src/primitives/dropdown-menu/dropdown-menu-content.d.ts +9 -0
- package/dist/typescript/src/primitives/dropdown-menu/dropdown-menu-content.d.ts.map +1 -0
- package/dist/typescript/src/primitives/dropdown-menu/dropdown-menu-divider.d.ts +8 -0
- package/dist/typescript/src/primitives/dropdown-menu/dropdown-menu-divider.d.ts.map +1 -0
- package/dist/typescript/src/primitives/dropdown-menu/dropdown-menu-overlay.d.ts +9 -0
- package/dist/typescript/src/primitives/dropdown-menu/dropdown-menu-overlay.d.ts.map +1 -0
- package/dist/typescript/src/primitives/dropdown-menu/dropdown-menu-portal.d.ts +6 -0
- package/dist/typescript/src/primitives/dropdown-menu/dropdown-menu-portal.d.ts.map +1 -0
- package/dist/typescript/src/primitives/dropdown-menu/dropdown-menu-root.d.ts +9 -0
- package/dist/typescript/src/primitives/dropdown-menu/dropdown-menu-root.d.ts.map +1 -0
- package/dist/typescript/src/primitives/dropdown-menu/dropdown-menu-trigger.d.ts +12 -0
- package/dist/typescript/src/primitives/dropdown-menu/dropdown-menu-trigger.d.ts.map +1 -0
- package/dist/typescript/src/primitives/dropdown-menu/index.d.ts +24 -0
- package/dist/typescript/src/primitives/dropdown-menu/index.d.ts.map +1 -0
- package/dist/typescript/src/primitives/dropdown-menu/types.d.ts +12 -0
- package/dist/typescript/src/primitives/dropdown-menu/types.d.ts.map +1 -0
- package/dist/typescript/src/primitives/empty/context.d.ts +7 -0
- package/dist/typescript/src/primitives/empty/context.d.ts.map +1 -0
- package/dist/typescript/src/primitives/empty/empty-description.d.ts +9 -0
- package/dist/typescript/src/primitives/empty/empty-description.d.ts.map +1 -0
- package/dist/typescript/src/primitives/empty/empty-media.d.ts +9 -0
- package/dist/typescript/src/primitives/empty/empty-media.d.ts.map +1 -0
- package/dist/typescript/src/primitives/empty/empty-root.d.ts +11 -0
- package/dist/typescript/src/primitives/empty/empty-root.d.ts.map +1 -0
- package/dist/typescript/src/primitives/empty/empty-title.d.ts +9 -0
- package/dist/typescript/src/primitives/empty/empty-title.d.ts.map +1 -0
- package/dist/typescript/src/primitives/empty/index.d.ts +16 -0
- package/dist/typescript/src/primitives/empty/index.d.ts.map +1 -0
- package/dist/typescript/src/primitives/empty/types.d.ts +11 -0
- package/dist/typescript/src/primitives/empty/types.d.ts.map +1 -0
- package/dist/typescript/src/primitives/field/context.d.ts +9 -0
- package/dist/typescript/src/primitives/field/context.d.ts.map +1 -0
- package/dist/typescript/src/primitives/field/field-description.d.ts +9 -0
- package/dist/typescript/src/primitives/field/field-description.d.ts.map +1 -0
- package/dist/typescript/src/primitives/field/field-error.d.ts +9 -0
- package/dist/typescript/src/primitives/field/field-error.d.ts.map +1 -0
- package/dist/typescript/src/primitives/field/field-label.d.ts +10 -0
- package/dist/typescript/src/primitives/field/field-label.d.ts.map +1 -0
- package/dist/typescript/src/primitives/field/field-root.d.ts +11 -0
- package/dist/typescript/src/primitives/field/field-root.d.ts.map +1 -0
- package/dist/typescript/src/primitives/field/index.d.ts +16 -0
- package/dist/typescript/src/primitives/field/index.d.ts.map +1 -0
- package/dist/typescript/src/primitives/field/types.d.ts +11 -0
- package/dist/typescript/src/primitives/field/types.d.ts.map +1 -0
- package/dist/typescript/src/primitives/index.d.ts +15 -0
- package/dist/typescript/src/primitives/index.d.ts.map +1 -0
- package/dist/typescript/src/primitives/input/index.d.ts +3 -0
- package/dist/typescript/src/primitives/input/index.d.ts.map +1 -0
- package/dist/typescript/src/primitives/input/input.d.ts +14 -0
- package/dist/typescript/src/primitives/input/input.d.ts.map +1 -0
- package/dist/typescript/src/primitives/input/types.d.ts +4 -0
- package/dist/typescript/src/primitives/input/types.d.ts.map +1 -0
- package/dist/typescript/src/primitives/popover/context.d.ts +16 -0
- package/dist/typescript/src/primitives/popover/context.d.ts.map +1 -0
- package/dist/typescript/src/primitives/popover/index.d.ts +22 -0
- package/dist/typescript/src/primitives/popover/index.d.ts.map +1 -0
- package/dist/typescript/src/primitives/popover/popover-close.d.ts +10 -0
- package/dist/typescript/src/primitives/popover/popover-close.d.ts.map +1 -0
- package/dist/typescript/src/primitives/popover/popover-content.d.ts +9 -0
- package/dist/typescript/src/primitives/popover/popover-content.d.ts.map +1 -0
- package/dist/typescript/src/primitives/popover/popover-overlay.d.ts +10 -0
- package/dist/typescript/src/primitives/popover/popover-overlay.d.ts.map +1 -0
- package/dist/typescript/src/primitives/popover/popover-portal.d.ts +6 -0
- package/dist/typescript/src/primitives/popover/popover-portal.d.ts.map +1 -0
- package/dist/typescript/src/primitives/popover/popover-root.d.ts +9 -0
- package/dist/typescript/src/primitives/popover/popover-root.d.ts.map +1 -0
- package/dist/typescript/src/primitives/popover/popover-trigger.d.ts +12 -0
- package/dist/typescript/src/primitives/popover/popover-trigger.d.ts.map +1 -0
- package/dist/typescript/src/primitives/popover/types.d.ts +7 -0
- package/dist/typescript/src/primitives/popover/types.d.ts.map +1 -0
- package/dist/typescript/src/primitives/portal/index.d.ts +3 -0
- package/dist/typescript/src/primitives/portal/index.d.ts.map +1 -0
- package/dist/typescript/src/primitives/portal/portal.constants.d.ts +14 -0
- package/dist/typescript/src/primitives/portal/portal.constants.d.ts.map +1 -0
- package/dist/typescript/src/primitives/portal/portal.d.ts +7 -0
- package/dist/typescript/src/primitives/portal/portal.d.ts.map +1 -0
- package/dist/typescript/src/primitives/select/context.d.ts +20 -0
- package/dist/typescript/src/primitives/select/context.d.ts.map +1 -0
- package/dist/typescript/src/primitives/select/index.d.ts +25 -0
- package/dist/typescript/src/primitives/select/index.d.ts.map +1 -0
- package/dist/typescript/src/primitives/select/select-content.d.ts +9 -0
- package/dist/typescript/src/primitives/select/select-content.d.ts.map +1 -0
- package/dist/typescript/src/primitives/select/select-option.d.ts +11 -0
- package/dist/typescript/src/primitives/select/select-option.d.ts.map +1 -0
- package/dist/typescript/src/primitives/select/select-overlay.d.ts +10 -0
- package/dist/typescript/src/primitives/select/select-overlay.d.ts.map +1 -0
- package/dist/typescript/src/primitives/select/select-portal.d.ts +6 -0
- package/dist/typescript/src/primitives/select/select-portal.d.ts.map +1 -0
- package/dist/typescript/src/primitives/select/select-root.d.ts +21 -0
- package/dist/typescript/src/primitives/select/select-root.d.ts.map +1 -0
- package/dist/typescript/src/primitives/select/select-trigger.d.ts +13 -0
- package/dist/typescript/src/primitives/select/select-trigger.d.ts.map +1 -0
- package/dist/typescript/src/primitives/select/select-value.d.ts +8 -0
- package/dist/typescript/src/primitives/select/select-value.d.ts.map +1 -0
- package/dist/typescript/src/primitives/select/types.d.ts +22 -0
- package/dist/typescript/src/primitives/select/types.d.ts.map +1 -0
- package/dist/typescript/src/primitives/textarea/index.d.ts +3 -0
- package/dist/typescript/src/primitives/textarea/index.d.ts.map +1 -0
- package/dist/typescript/src/primitives/textarea/textarea.d.ts +12 -0
- package/dist/typescript/src/primitives/textarea/textarea.d.ts.map +1 -0
- package/dist/typescript/src/primitives/textarea/types.d.ts +4 -0
- package/dist/typescript/src/primitives/textarea/types.d.ts.map +1 -0
- package/dist/typescript/src/primitives/toast/context.d.ts +7 -0
- package/dist/typescript/src/primitives/toast/context.d.ts.map +1 -0
- package/dist/typescript/src/primitives/toast/index.d.ts +13 -0
- package/dist/typescript/src/primitives/toast/index.d.ts.map +1 -0
- package/dist/typescript/src/primitives/toast/toast-description.d.ts +9 -0
- package/dist/typescript/src/primitives/toast/toast-description.d.ts.map +1 -0
- package/dist/typescript/src/primitives/toast/toast-root.d.ts +11 -0
- package/dist/typescript/src/primitives/toast/toast-root.d.ts.map +1 -0
- package/dist/typescript/src/primitives/toast/toast-title.d.ts +9 -0
- package/dist/typescript/src/primitives/toast/toast-title.d.ts.map +1 -0
- package/dist/typescript/src/primitives/toast/types.d.ts +9 -0
- package/dist/typescript/src/primitives/toast/types.d.ts.map +1 -0
- package/dist/typescript/src/themes/adapters/index.d.ts +2 -0
- package/dist/typescript/src/themes/adapters/index.d.ts.map +1 -0
- package/dist/typescript/src/themes/adapters/react-navigation.d.ts +3 -0
- package/dist/typescript/src/themes/adapters/react-navigation.d.ts.map +1 -0
- package/dist/typescript/src/themes/default/colors.d.ts +4 -0
- package/dist/typescript/src/themes/default/colors.d.ts.map +1 -0
- package/dist/typescript/src/themes/default/index.d.ts +3 -0
- package/dist/typescript/src/themes/default/index.d.ts.map +1 -0
- package/dist/typescript/src/themes/index.d.ts +4 -0
- package/dist/typescript/src/themes/index.d.ts.map +1 -0
- package/dist/typescript/src/themes/provider.d.ts +18 -0
- package/dist/typescript/src/themes/provider.d.ts.map +1 -0
- package/dist/typescript/src/themes/themes.d.ts +3 -0
- package/dist/typescript/src/themes/themes.d.ts.map +1 -0
- package/dist/typescript/src/themes/types.d.ts +32 -0
- package/dist/typescript/src/themes/types.d.ts.map +1 -0
- package/dist/typescript/src/types/element.types.d.ts +4 -0
- package/dist/typescript/src/types/element.types.d.ts.map +1 -0
- package/dist/typescript/src/utils/calculate-styles.d.ts +2 -0
- package/dist/typescript/src/utils/calculate-styles.d.ts.map +1 -0
- package/dist/typescript/src/utils/date-utils.d.ts +19 -0
- package/dist/typescript/src/utils/date-utils.d.ts.map +1 -0
- package/dist/typescript/src/utils/hsla-utils.d.ts +5 -0
- package/dist/typescript/src/utils/hsla-utils.d.ts.map +1 -0
- package/dist/typescript/src/utils/normalize-layout.d.ts +8 -0
- package/dist/typescript/src/utils/normalize-layout.d.ts.map +1 -0
- package/dist/typescript/src/utils/use-themed-styles.d.ts +11 -0
- package/dist/typescript/src/utils/use-themed-styles.d.ts.map +1 -0
- package/package.json +31 -32
- package/src/components/avatar/avatar.tsx +1 -1
- package/src/components/avatar/variants/default.tsx +1 -1
- package/src/components/badge/variants/default.tsx +1 -1
- package/src/components/badge/variants/secondary.tsx +1 -1
- package/src/components/button/button.tsx +1 -1
- package/src/components/button/variants/default.tsx +1 -1
- package/src/components/button/variants/secondary.tsx +1 -1
- package/src/components/calendar/calendar.tsx +1 -1
- package/src/components/calendar/variants/default.tsx +1 -1
- package/src/components/card/variants/default.tsx +1 -1
- package/src/components/dropdown-menu/dropdown-menu.tsx +3 -1
- package/src/components/dropdown-menu/variants/default.tsx +1 -1
- package/src/components/empty/variants/default.tsx +1 -1
- package/src/components/field/variants/default.tsx +1 -1
- package/src/components/input/input.tsx +1 -1
- package/src/components/input/numeric-input.tsx +2 -2
- package/src/components/input/variants/default.tsx +1 -1
- package/src/components/link/link.tsx +1 -1
- package/src/components/link/variants/default.tsx +1 -1
- package/src/components/popover/popover.tsx +4 -5
- package/src/components/popover/variants/default.tsx +2 -1
- package/src/components/popover/variants/unstyled.tsx +1 -1
- package/src/components/select/select.tsx +1 -1
- package/src/components/select/variants/default.tsx +1 -1
- package/src/components/textarea/textarea.tsx +1 -1
- package/src/components/textarea/variants/default.tsx +1 -1
- package/src/components/toast/variants/danger.tsx +1 -1
- package/src/components/toast/variants/default.tsx +1 -1
- package/src/components/toast/variants/success.tsx +1 -1
- package/src/components/typography/typography.tsx +1 -1
- package/src/components/typography/variants/body-lg.tsx +1 -1
- package/src/components/typography/variants/body-md.tsx +1 -1
- package/src/components/typography/variants/body-sm.tsx +1 -1
- package/src/components/typography/variants/heading-lg.tsx +1 -1
- package/src/components/typography/variants/heading-md.tsx +1 -1
- package/src/components/typography/variants/heading-sm.tsx +1 -1
- package/src/index.tsx +3 -3
- package/src/primitives/avatar/avatar-fallback.tsx +1 -1
- package/src/primitives/avatar/avatar-image.tsx +1 -1
- package/src/primitives/avatar/avatar-root.tsx +2 -2
- package/src/primitives/avatar/context.ts +1 -1
- package/src/primitives/avatar/types.ts +3 -3
- package/src/primitives/badge/badge-label.tsx +2 -2
- package/src/primitives/badge/badge-root.tsx +3 -3
- package/src/primitives/badge/context.ts +1 -1
- package/src/primitives/badge/types.ts +2 -2
- package/src/primitives/button/button-context.tsx +1 -1
- package/src/primitives/button/button-label.tsx +2 -2
- package/src/primitives/button/button-root.tsx +2 -2
- package/src/primitives/button/button-spinner.tsx +2 -2
- package/src/primitives/button/types.ts +2 -2
- package/src/primitives/calendar/calendar-day.tsx +3 -3
- package/src/primitives/calendar/calendar-header.tsx +1 -1
- package/src/primitives/calendar/calendar-nav-button.tsx +2 -2
- package/src/primitives/calendar/calendar-root.tsx +2 -2
- package/src/primitives/calendar/calendar-title.tsx +1 -1
- package/src/primitives/calendar/calendar-week-labels.tsx +1 -1
- package/src/primitives/calendar/calendar-weeks.tsx +3 -3
- package/src/primitives/calendar/context.ts +1 -1
- package/src/primitives/calendar/types.ts +7 -7
- package/src/primitives/card/card-body.tsx +2 -2
- package/src/primitives/card/card-footer.tsx +2 -2
- package/src/primitives/card/card-header.tsx +2 -2
- package/src/primitives/card/card-root.tsx +3 -3
- package/src/primitives/card/card-title.tsx +2 -2
- package/src/primitives/card/context.ts +1 -1
- package/src/primitives/card/types.ts +5 -5
- package/src/primitives/dropdown-menu/context.ts +4 -4
- package/src/primitives/dropdown-menu/dropdown-menu-button.tsx +2 -2
- package/src/primitives/dropdown-menu/dropdown-menu-content.tsx +2 -2
- package/src/primitives/dropdown-menu/dropdown-menu-divider.tsx +1 -1
- package/src/primitives/dropdown-menu/dropdown-menu-overlay.tsx +1 -1
- package/src/primitives/dropdown-menu/dropdown-menu-root.tsx +3 -3
- package/src/primitives/dropdown-menu/dropdown-menu-trigger.tsx +6 -5
- package/src/primitives/dropdown-menu/types.ts +4 -4
- package/src/primitives/empty/context.ts +1 -1
- package/src/primitives/empty/empty-description.tsx +1 -1
- package/src/primitives/empty/empty-media.tsx +1 -1
- package/src/primitives/empty/empty-root.tsx +2 -2
- package/src/primitives/empty/empty-title.tsx +1 -1
- package/src/primitives/empty/types.ts +4 -4
- package/src/primitives/field/context.ts +1 -1
- package/src/primitives/field/field-description.tsx +1 -1
- package/src/primitives/field/field-error.tsx +1 -1
- package/src/primitives/field/field-label.tsx +1 -1
- package/src/primitives/field/field-root.tsx +2 -2
- package/src/primitives/field/types.ts +4 -4
- package/src/primitives/input/input.tsx +6 -5
- package/src/primitives/input/types.ts +1 -1
- package/src/primitives/popover/context.ts +4 -4
- package/src/primitives/popover/popover-close.tsx +1 -1
- package/src/primitives/popover/popover-content.tsx +2 -1
- package/src/primitives/popover/popover-overlay.tsx +3 -6
- package/src/primitives/popover/popover-root.tsx +3 -3
- package/src/primitives/popover/popover-trigger.tsx +5 -4
- package/src/primitives/popover/types.ts +2 -2
- package/src/primitives/portal/portal.tsx +6 -5
- package/src/primitives/select/context.ts +3 -3
- package/src/primitives/select/select-content.tsx +2 -2
- package/src/primitives/select/select-option.tsx +3 -3
- package/src/primitives/select/select-overlay.tsx +2 -2
- package/src/primitives/select/select-root.tsx +3 -3
- package/src/primitives/select/select-trigger.tsx +3 -3
- package/src/primitives/select/select-value.tsx +2 -2
- package/src/primitives/select/types.ts +6 -6
- package/src/primitives/textarea/textarea.tsx +2 -2
- package/src/primitives/textarea/types.ts +1 -1
- package/src/primitives/toast/context.ts +1 -1
- package/src/primitives/toast/toast-description.tsx +1 -1
- package/src/primitives/toast/toast-root.tsx +2 -2
- package/src/primitives/toast/toast-title.tsx +1 -1
- package/src/primitives/toast/types.ts +3 -3
- package/src/themes/adapters/react-navigation.ts +2 -1
- package/src/themes/default/colors.ts +1 -1
- package/src/themes/default/index.ts +1 -1
- package/src/themes/provider.tsx +5 -5
- package/src/themes/themes.ts +1 -1
- package/src/types/element.types.ts +4 -0
- package/src/utils/hsla-utils.ts +6 -9
- package/src/utils/normalize-layout.ts +5 -4
- package/src/utils/use-themed-styles.ts +1 -1
- package/tsconfig.json +22 -3
- package/dist/components/index.d.mts +0 -315
- package/dist/components/index.mjs +0 -978
- package/dist/hooks/index.d.mts +0 -47
- package/dist/hooks/index.mjs +0 -103
- package/dist/index-j_OCsdsx.d.mts +0 -704
- package/dist/index.d.mts +0 -65
- package/dist/index.mjs +0 -16
- package/dist/portal.constants-ClRV24_C.d.mts +0 -16
- package/dist/primitives/index.d.mts +0 -4
- package/dist/primitives/index.mjs +0 -4
- package/dist/primitives-8eataXpJ.mjs +0 -1437
- package/dist/toast-manager-q0YV3t3j.mjs +0 -321
- package/dist/use-numeric-mask-BQlz1Pus.mjs +0 -113
- package/dist/use-numeric-mask-D4zqPOnE.d.mts +0 -33
- package/dist/use-relative-position-BTKEyT1F.mjs +0 -106
- package/dist/use-relative-position-DBzhrBU7.d.mts +0 -61
- package/src/utils/get-ref-layout.ts +0 -16
- package/tsdown.config.ts +0 -8
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useEffect } from "react";
|
|
4
|
+
import { useTheme } from "../provider.js";
|
|
5
|
+
import { Platform } from "react-native";
|
|
6
|
+
export function useReactNavigationTheme() {
|
|
7
|
+
const theme = useTheme();
|
|
8
|
+
useEffect(() => {
|
|
9
|
+
if (Platform.OS !== "web") return;
|
|
10
|
+
const styles = document.createElement("style");
|
|
11
|
+
styles.id = "korsolutions-ui-react-navigation-theme";
|
|
12
|
+
styles.innerHTML = `
|
|
13
|
+
:root {
|
|
14
|
+
--expo-router-modal-border: 1px solid ${theme.colors.border};
|
|
15
|
+
}
|
|
16
|
+
`;
|
|
17
|
+
document.head.appendChild(styles);
|
|
18
|
+
return () => {
|
|
19
|
+
document.head.removeChild(styles);
|
|
20
|
+
};
|
|
21
|
+
}, [theme.colors.border]);
|
|
22
|
+
return {
|
|
23
|
+
dark: theme.colorScheme === "dark",
|
|
24
|
+
colors: {
|
|
25
|
+
background: theme.colors.background,
|
|
26
|
+
border: theme.colors.border,
|
|
27
|
+
primary: theme.colors.primary,
|
|
28
|
+
card: theme.colors.surface,
|
|
29
|
+
text: theme.colors.foreground,
|
|
30
|
+
notification: theme.colors.danger
|
|
31
|
+
},
|
|
32
|
+
fonts: {
|
|
33
|
+
heavy: {
|
|
34
|
+
fontFamily: theme.fontFamily,
|
|
35
|
+
fontWeight: "800"
|
|
36
|
+
},
|
|
37
|
+
bold: {
|
|
38
|
+
fontFamily: theme.fontFamily,
|
|
39
|
+
fontWeight: "700"
|
|
40
|
+
},
|
|
41
|
+
medium: {
|
|
42
|
+
fontFamily: theme.fontFamily,
|
|
43
|
+
fontWeight: "500"
|
|
44
|
+
},
|
|
45
|
+
regular: {
|
|
46
|
+
fontFamily: theme.fontFamily,
|
|
47
|
+
fontWeight: "400"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=react-navigation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useEffect","useTheme","Platform","useReactNavigationTheme","theme","OS","styles","document","createElement","id","innerHTML","colors","border","head","appendChild","removeChild","dark","colorScheme","background","primary","card","surface","text","foreground","notification","danger","fonts","heavy","fontFamily","fontWeight","bold","medium","regular"],"sourceRoot":"../../../../src","sources":["themes/adapters/react-navigation.ts"],"mappings":";;AAAA,SAASA,SAAS,QAAQ,OAAO;AAEjC,SAASC,QAAQ,QAAQ,gBAAa;AACtC,SAASC,QAAQ,QAAQ,cAAc;AAEvC,OAAO,SAASC,uBAAuBA,CAAA,EAAU;EAC/C,MAAMC,KAAK,GAAGH,QAAQ,CAAC,CAAC;EAExBD,SAAS,CAAC,MAAM;IACd,IAAIE,QAAQ,CAACG,EAAE,KAAK,KAAK,EAAE;IAC3B,MAAMC,MAAM,GAAGC,QAAQ,CAACC,aAAa,CAAC,OAAO,CAAC;IAC9CF,MAAM,CAACG,EAAE,GAAG,wCAAwC;IACpDH,MAAM,CAACI,SAAS,GAAG;AACvB;AACA,gDAAgDN,KAAK,CAACO,MAAM,CAACC,MAAM;AACnE;AACA,KAAK;IACDL,QAAQ,CAACM,IAAI,CAACC,WAAW,CAACR,MAAM,CAAC;IACjC,OAAO,MAAM;MACXC,QAAQ,CAACM,IAAI,CAACE,WAAW,CAACT,MAAM,CAAC;IACnC,CAAC;EACH,CAAC,EAAE,CAACF,KAAK,CAACO,MAAM,CAACC,MAAM,CAAC,CAAC;EAEzB,OAAO;IACLI,IAAI,EAAEZ,KAAK,CAACa,WAAW,KAAK,MAAM;IAClCN,MAAM,EAAE;MACNO,UAAU,EAAEd,KAAK,CAACO,MAAM,CAACO,UAAU;MACnCN,MAAM,EAAER,KAAK,CAACO,MAAM,CAACC,MAAM;MAC3BO,OAAO,EAAEf,KAAK,CAACO,MAAM,CAACQ,OAAO;MAC7BC,IAAI,EAAEhB,KAAK,CAACO,MAAM,CAACU,OAAO;MAC1BC,IAAI,EAAElB,KAAK,CAACO,MAAM,CAACY,UAAU;MAC7BC,YAAY,EAAEpB,KAAK,CAACO,MAAM,CAACc;IAC7B,CAAC;IACDC,KAAK,EAAE;MACLC,KAAK,EAAE;QACLC,UAAU,EAAExB,KAAK,CAACwB,UAAU;QAC5BC,UAAU,EAAE;MACd,CAAC;MACDC,IAAI,EAAE;QACJF,UAAU,EAAExB,KAAK,CAACwB,UAAU;QAC5BC,UAAU,EAAE;MACd,CAAC;MACDE,MAAM,EAAE;QACNH,UAAU,EAAExB,KAAK,CAACwB,UAAU;QAC5BC,UAAU,EAAE;MACd,CAAC;MACDG,OAAO,EAAE;QACPJ,UAAU,EAAExB,KAAK,CAACwB,UAAU;QAC5BC,UAAU,EAAE;MACd;IACF;EACF,CAAC;AACH","ignoreList":[]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export const lightColors = {
|
|
4
|
+
background: "hsla(223.81, 100%, 100%, 1)",
|
|
5
|
+
foreground: "hsla(223.81, 0%, 3.94%, 1)",
|
|
6
|
+
primary: "hsla(223.81, 0%, 9.05%, 1)",
|
|
7
|
+
primaryForeground: "hsla(223.81, 0%, 98.03%, 1)",
|
|
8
|
+
secondary: "hsla(223.81, 0%, 96.06%, 1)",
|
|
9
|
+
secondaryForeground: "hsla(223.81, 0%, 9.05%, 1)",
|
|
10
|
+
muted: "hsla(223.81, 0%, 96.06%, 1)",
|
|
11
|
+
mutedForeground: "hsla(223.81, 0%, 45.15%, 1)",
|
|
12
|
+
border: "hsla(223.81, 0%, 89.82%, 1)",
|
|
13
|
+
surface: "hsla(223.81, 100%, 100%, 1)",
|
|
14
|
+
danger: "hsla(0, 84.2%, 60.2%, 1)",
|
|
15
|
+
success: "hsla(173, 58%, 39%, 1)",
|
|
16
|
+
warning: "hsla(43, 74%, 66%, 1)",
|
|
17
|
+
info: "hsla(197, 37%, 24%, 1)"
|
|
18
|
+
};
|
|
19
|
+
export const darkColors = {
|
|
20
|
+
background: "hsla(223.81, 0%, 3.94%, 1)",
|
|
21
|
+
foreground: "hsla(223.81, 0%, 98.03%, 1)",
|
|
22
|
+
primary: "hsla(223.81, 0%, 89.82%, 1)",
|
|
23
|
+
primaryForeground: "hsla(223.81, 0%, 9.05%, 1)",
|
|
24
|
+
secondary: "hsla(223.81, 0%, 14.94%, 1)",
|
|
25
|
+
secondaryForeground: "hsla(223.81, 0%, 98.03%, 1)",
|
|
26
|
+
muted: "hsla(223.81, 0%, 14.94%, 1)",
|
|
27
|
+
mutedForeground: "hsla(223.81, 0%, 63.02%, 1)",
|
|
28
|
+
border: "hsla(223.81, 0%, 15.51%, 1)",
|
|
29
|
+
surface: "hsla(223.81, 0%, 9.05%, 1)",
|
|
30
|
+
danger: "hsla(0, 62.8%, 30.6%, 1)",
|
|
31
|
+
success: "hsla(160, 60%, 45%, 1)",
|
|
32
|
+
warning: "hsla(30, 80%, 55%, 1)",
|
|
33
|
+
info: "hsla(220, 70%, 50%, 1)"
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=colors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["lightColors","background","foreground","primary","primaryForeground","secondary","secondaryForeground","muted","mutedForeground","border","surface","danger","success","warning","info","darkColors"],"sourceRoot":"../../../../src","sources":["themes/default/colors.ts"],"mappings":";;AAEA,OAAO,MAAMA,WAAmB,GAAG;EACjCC,UAAU,EAAE,6BAA6B;EACzCC,UAAU,EAAE,4BAA4B;EAExCC,OAAO,EAAE,4BAA4B;EACrCC,iBAAiB,EAAE,6BAA6B;EAEhDC,SAAS,EAAE,6BAA6B;EACxCC,mBAAmB,EAAE,4BAA4B;EAEjDC,KAAK,EAAE,6BAA6B;EACpCC,eAAe,EAAE,6BAA6B;EAE9CC,MAAM,EAAE,6BAA6B;EACrCC,OAAO,EAAE,6BAA6B;EAEtCC,MAAM,EAAE,0BAA0B;EAClCC,OAAO,EAAE,wBAAwB;EACjCC,OAAO,EAAE,uBAAuB;EAChCC,IAAI,EAAE;AACR,CAAC;AAED,OAAO,MAAMC,UAAkB,GAAG;EAChCd,UAAU,EAAE,4BAA4B;EACxCC,UAAU,EAAE,6BAA6B;EAEzCC,OAAO,EAAE,6BAA6B;EACtCC,iBAAiB,EAAE,4BAA4B;EAE/CC,SAAS,EAAE,6BAA6B;EACxCC,mBAAmB,EAAE,6BAA6B;EAElDC,KAAK,EAAE,6BAA6B;EACpCC,eAAe,EAAE,6BAA6B;EAE9CC,MAAM,EAAE,6BAA6B;EACrCC,OAAO,EAAE,4BAA4B;EAErCC,MAAM,EAAE,0BAA0B;EAClCC,OAAO,EAAE,wBAAwB;EACjCC,OAAO,EAAE,uBAAuB;EAChCC,IAAI,EAAE;AACR,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { darkColors, lightColors } from "./colors.js";
|
|
4
|
+
export const defaultThemeAssets = {
|
|
5
|
+
colors: {
|
|
6
|
+
light: lightColors,
|
|
7
|
+
dark: darkColors
|
|
8
|
+
},
|
|
9
|
+
radius: 10,
|
|
10
|
+
fontFamily: "System",
|
|
11
|
+
letterSpacing: 0,
|
|
12
|
+
fontSize: 16
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["darkColors","lightColors","defaultThemeAssets","colors","light","dark","radius","fontFamily","letterSpacing","fontSize"],"sourceRoot":"../../../../src","sources":["themes/default/index.ts"],"mappings":";;AACA,SAASA,UAAU,EAAEC,WAAW,QAAQ,aAAU;AAElD,OAAO,MAAMC,kBAA+B,GAAG;EAC7CC,MAAM,EAAE;IACNC,KAAK,EAAEH,WAAW;IAClBI,IAAI,EAAEL;EACR,CAAC;EACDM,MAAM,EAAE,EAAE;EACVC,UAAU,EAAE,QAAQ;EACpBC,aAAa,EAAE,CAAC;EAChBC,QAAQ,EAAE;AACZ,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["themes/index.ts"],"mappings":";;AAAA,cAAc,eAAY;AAC1B,cAAc,YAAS;AACvB,cAAc,gCAA6B","ignoreList":[]}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { createContext, useContext, useEffect, useState } from "react";
|
|
4
|
+
import { useColorScheme } from "react-native";
|
|
5
|
+
import { themes } from "./themes.js";
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
const ThemeContext = /*#__PURE__*/createContext(null);
|
|
8
|
+
export const ThemeProvider = props => {
|
|
9
|
+
const [themeName, setTheme] = useState("default");
|
|
10
|
+
const systemColorScheme = useColorScheme();
|
|
11
|
+
const [colorScheme, setColorScheme] = useState(systemColorScheme === "dark" ? "dark" : "light");
|
|
12
|
+
const themesAssets = themes[themeName];
|
|
13
|
+
const colors = themesAssets.colors[colorScheme];
|
|
14
|
+
useEffect(() => {
|
|
15
|
+
if (systemColorScheme) {
|
|
16
|
+
setColorScheme(systemColorScheme === "dark" ? "dark" : "light");
|
|
17
|
+
}
|
|
18
|
+
}, [systemColorScheme]);
|
|
19
|
+
return /*#__PURE__*/_jsx(ThemeContext.Provider, {
|
|
20
|
+
value: {
|
|
21
|
+
themeName,
|
|
22
|
+
setTheme,
|
|
23
|
+
colorScheme,
|
|
24
|
+
setColorScheme,
|
|
25
|
+
colors,
|
|
26
|
+
radius: themesAssets.radius,
|
|
27
|
+
fontFamily: themesAssets.fontFamily,
|
|
28
|
+
letterSpacing: themesAssets.letterSpacing,
|
|
29
|
+
fontSize: themesAssets.fontSize
|
|
30
|
+
},
|
|
31
|
+
children: props.children
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
export const useTheme = () => {
|
|
35
|
+
const context = useContext(ThemeContext);
|
|
36
|
+
if (!context) {
|
|
37
|
+
throw new Error("useTheme must be used within a ThemeProvider");
|
|
38
|
+
}
|
|
39
|
+
return context;
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createContext","useContext","useEffect","useState","useColorScheme","themes","jsx","_jsx","ThemeContext","ThemeProvider","props","themeName","setTheme","systemColorScheme","colorScheme","setColorScheme","themesAssets","colors","Provider","value","radius","fontFamily","letterSpacing","fontSize","children","useTheme","context","Error"],"sourceRoot":"../../../src","sources":["themes/provider.tsx"],"mappings":";;AAAA,SAASA,aAAa,EAA0BC,UAAU,EAAEC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAC9F,SAASC,cAAc,QAAQ,cAAc;AAC7C,SAASC,MAAM,QAAQ,aAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAelC,MAAMC,YAAY,gBAAGR,aAAa,CAAsB,IAAI,CAAC;AAE7D,OAAO,MAAMS,aAAa,GAAIC,KAAwB,IAAK;EACzD,MAAM,CAACC,SAAS,EAAEC,QAAQ,CAAC,GAAGT,QAAQ,CAAY,SAAS,CAAC;EAE5D,MAAMU,iBAAiB,GAAGT,cAAc,CAAC,CAAC;EAC1C,MAAM,CAACU,WAAW,EAAEC,cAAc,CAAC,GAAGZ,QAAQ,CAAcU,iBAAiB,KAAK,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;EAE5G,MAAMG,YAAY,GAAGX,MAAM,CAACM,SAAS,CAAC;EACtC,MAAMM,MAAM,GAAGD,YAAY,CAACC,MAAM,CAACH,WAAW,CAAC;EAE/CZ,SAAS,CAAC,MAAM;IACd,IAAIW,iBAAiB,EAAE;MACrBE,cAAc,CAACF,iBAAiB,KAAK,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IACjE;EACF,CAAC,EAAE,CAACA,iBAAiB,CAAC,CAAC;EAEvB,oBACEN,IAAA,CAACC,YAAY,CAACU,QAAQ;IACpBC,KAAK,EAAE;MACLR,SAAS;MACTC,QAAQ;MACRE,WAAW;MACXC,cAAc;MACdE,MAAM;MACNG,MAAM,EAAEJ,YAAY,CAACI,MAAM;MAC3BC,UAAU,EAAEL,YAAY,CAACK,UAAU;MACnCC,aAAa,EAAEN,YAAY,CAACM,aAAa;MACzCC,QAAQ,EAAEP,YAAY,CAACO;IACzB,CAAE;IAAAC,QAAA,EAEDd,KAAK,CAACc;EAAQ,CACM,CAAC;AAE5B,CAAC;AAED,OAAO,MAAMC,QAAQ,GAAGA,CAAA,KAAM;EAC5B,MAAMC,OAAO,GAAGzB,UAAU,CAACO,YAAY,CAAC;EACxC,IAAI,CAACkB,OAAO,EAAE;IACZ,MAAM,IAAIC,KAAK,CAAC,8CAA8C,CAAC;EACjE;EACA,OAAOD,OAAO;AAChB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["defaultThemeAssets","themes","default"],"sourceRoot":"../../../src","sources":["themes/themes.ts"],"mappings":";;AAAA,SAASA,kBAAkB,QAAQ,oBAAW;AAG9C,OAAO,MAAMC,MAAsC,GAAG;EACpDC,OAAO,EAAEF;AACX,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["themes/types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/element.types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export const calculateComposedStyles = (styles = {}, state, component, style) => {
|
|
4
|
+
const result = [];
|
|
5
|
+
const componentStyles = styles?.[component];
|
|
6
|
+
if (componentStyles && "default" in componentStyles && componentStyles["default"]) {
|
|
7
|
+
result.push(componentStyles["default"]);
|
|
8
|
+
}
|
|
9
|
+
if (componentStyles?.[state]) {
|
|
10
|
+
result.push(componentStyles[state]);
|
|
11
|
+
}
|
|
12
|
+
if (style) {
|
|
13
|
+
result.push(style);
|
|
14
|
+
}
|
|
15
|
+
return result;
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=calculate-styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["calculateComposedStyles","styles","state","component","style","result","componentStyles","push"],"sourceRoot":"../../../src","sources":["utils/calculate-styles.ts"],"mappings":";;AAAA,OAAO,MAAMA,uBAAuB,GAAGA,CACrCC,MAAyE,GAAG,CAAC,CAAC,EAC9EC,KAAY,EACZC,SAAoB,EACpBC,KAAc,KACD;EACb,MAAMC,MAAgB,GAAG,EAAE;EAC3B,MAAMC,eAAe,GAAGL,MAAM,GAAGE,SAAS,CAAC;EAC3C,IAAIG,eAAe,IAAI,SAAS,IAAIA,eAAe,IAAIA,eAAe,CAAC,SAAS,CAAC,EAAE;IACjFD,MAAM,CAACE,IAAI,CAACD,eAAe,CAAC,SAAS,CAAW,CAAC;EACnD;EACA,IAAIA,eAAe,GAAGJ,KAAK,CAAC,EAAE;IAC5BG,MAAM,CAACE,IAAI,CAACD,eAAe,CAACJ,KAAK,CAAC,CAAC;EACrC;EACA,IAAIE,KAAK,EAAE;IACTC,MAAM,CAACE,IAAI,CAACH,KAAK,CAAC;EACpB;EACA,OAAOC,MAAM;AACf,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export const formatDate = (date, format) => {
|
|
4
|
+
const months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
|
|
5
|
+
const day = date.getDate();
|
|
6
|
+
const month = months[date.getMonth()];
|
|
7
|
+
const year = date.getFullYear();
|
|
8
|
+
if (format === "MMMM yyyy") {
|
|
9
|
+
return `${month} ${year}`;
|
|
10
|
+
}
|
|
11
|
+
if (format === "d") {
|
|
12
|
+
return day.toString();
|
|
13
|
+
}
|
|
14
|
+
return date.toLocaleDateString();
|
|
15
|
+
};
|
|
16
|
+
export const isDateSameDay = (date1, date2) => {
|
|
17
|
+
return date1.getFullYear() === date2.getFullYear() && date1.getMonth() === date2.getMonth() && date1.getDate() === date2.getDate();
|
|
18
|
+
};
|
|
19
|
+
export const isDateToday = date => {
|
|
20
|
+
return isDateSameDay(date, new Date());
|
|
21
|
+
};
|
|
22
|
+
export const isDateBefore = (date1, date2) => {
|
|
23
|
+
const d1 = new Date(date1.getFullYear(), date1.getMonth(), date1.getDate());
|
|
24
|
+
const d2 = new Date(date2.getFullYear(), date2.getMonth(), date2.getDate());
|
|
25
|
+
return d1.getTime() < d2.getTime();
|
|
26
|
+
};
|
|
27
|
+
export const isDateAfter = (date1, date2) => {
|
|
28
|
+
const d1 = new Date(date1.getFullYear(), date1.getMonth(), date1.getDate());
|
|
29
|
+
const d2 = new Date(date2.getFullYear(), date2.getMonth(), date2.getDate());
|
|
30
|
+
return d1.getTime() > d2.getTime();
|
|
31
|
+
};
|
|
32
|
+
export const isDateTimeWithinInterval = (date, interval) => {
|
|
33
|
+
const time = date.getTime();
|
|
34
|
+
return time >= interval.start.getTime() && time <= interval.end.getTime();
|
|
35
|
+
};
|
|
36
|
+
export const addMonths = (date, months) => {
|
|
37
|
+
const newDate = new Date(date);
|
|
38
|
+
newDate.setMonth(newDate.getMonth() + months);
|
|
39
|
+
return newDate;
|
|
40
|
+
};
|
|
41
|
+
export const subMonths = (date, months) => {
|
|
42
|
+
return addMonths(date, -months);
|
|
43
|
+
};
|
|
44
|
+
export const startOfMonth = date => {
|
|
45
|
+
return new Date(date.getFullYear(), date.getMonth(), 1);
|
|
46
|
+
};
|
|
47
|
+
export const endOfMonth = date => {
|
|
48
|
+
return new Date(date.getFullYear(), date.getMonth() + 1, 0);
|
|
49
|
+
};
|
|
50
|
+
export const getDaysInMonth = date => {
|
|
51
|
+
return endOfMonth(date).getDate();
|
|
52
|
+
};
|
|
53
|
+
export const getFirstDayOfMonth = date => {
|
|
54
|
+
return startOfMonth(date).getDay();
|
|
55
|
+
};
|
|
56
|
+
export const isSameMonth = (date1, date2) => {
|
|
57
|
+
return date1.getFullYear() === date2.getFullYear() && date1.getMonth() === date2.getMonth();
|
|
58
|
+
};
|
|
59
|
+
export const getWeekDays = (month, year, week) => {
|
|
60
|
+
const days = [];
|
|
61
|
+
const firstDayOfMonth = new Date(year, month, 1).getDay();
|
|
62
|
+
const daysInMonth = getDaysInMonth(new Date(year, month));
|
|
63
|
+
|
|
64
|
+
// Calculate the date of the first day in the week
|
|
65
|
+
const startDay = week * 7 - (firstDayOfMonth === 0 ? 6 : firstDayOfMonth - 1);
|
|
66
|
+
for (let i = 0; i < 7; i++) {
|
|
67
|
+
const day = startDay + i;
|
|
68
|
+
let date;
|
|
69
|
+
if (day < 1) {
|
|
70
|
+
// Days from previous month
|
|
71
|
+
const prevMonth = month === 0 ? 11 : month - 1;
|
|
72
|
+
const prevYear = month === 0 ? year - 1 : year;
|
|
73
|
+
const daysInPrevMonth = getDaysInMonth(new Date(prevYear, prevMonth));
|
|
74
|
+
date = new Date(prevYear, prevMonth, daysInPrevMonth + day);
|
|
75
|
+
} else if (day > daysInMonth) {
|
|
76
|
+
// Days from next month
|
|
77
|
+
const nextMonth = month === 11 ? 0 : month + 1;
|
|
78
|
+
const nextYear = month === 11 ? year + 1 : year;
|
|
79
|
+
date = new Date(nextYear, nextMonth, day - daysInMonth);
|
|
80
|
+
} else {
|
|
81
|
+
// Days from current month
|
|
82
|
+
date = new Date(year, month, day);
|
|
83
|
+
}
|
|
84
|
+
days.push(date);
|
|
85
|
+
}
|
|
86
|
+
return days;
|
|
87
|
+
};
|
|
88
|
+
export const getWeeksInMonth = date => {
|
|
89
|
+
const firstDayOfMonth = getFirstDayOfMonth(date);
|
|
90
|
+
const daysInMonth = getDaysInMonth(date);
|
|
91
|
+
|
|
92
|
+
// Calculate total number of weeks
|
|
93
|
+
return Math.ceil((firstDayOfMonth + daysInMonth) / 7);
|
|
94
|
+
};
|
|
95
|
+
//# sourceMappingURL=date-utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["formatDate","date","format","months","day","getDate","month","getMonth","year","getFullYear","toString","toLocaleDateString","isDateSameDay","date1","date2","isDateToday","Date","isDateBefore","d1","d2","getTime","isDateAfter","isDateTimeWithinInterval","interval","time","start","end","addMonths","newDate","setMonth","subMonths","startOfMonth","endOfMonth","getDaysInMonth","getFirstDayOfMonth","getDay","isSameMonth","getWeekDays","week","days","firstDayOfMonth","daysInMonth","startDay","i","prevMonth","prevYear","daysInPrevMonth","nextMonth","nextYear","push","getWeeksInMonth","Math","ceil"],"sourceRoot":"../../../src","sources":["utils/date-utils.ts"],"mappings":";;AAAA,OAAO,MAAMA,UAAU,GAAGA,CAACC,IAAU,EAAEC,MAAc,KAAa;EAChE,MAAMC,MAAM,GAAG,CAAC,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,CAAC;EAEzI,MAAMC,GAAG,GAAGH,IAAI,CAACI,OAAO,CAAC,CAAC;EAC1B,MAAMC,KAAK,GAAGH,MAAM,CAACF,IAAI,CAACM,QAAQ,CAAC,CAAC,CAAC;EACrC,MAAMC,IAAI,GAAGP,IAAI,CAACQ,WAAW,CAAC,CAAC;EAE/B,IAAIP,MAAM,KAAK,WAAW,EAAE;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SetAlpha = (hsla, alpha) => {
|
|
4
|
+
const parts = hsla.replace(/^hsla?\(|\s+|\)$/g, "").split(",");
|
|
5
|
+
if (parts[0] === undefined) throw new Error("Invalid HSLA color format");
|
|
6
|
+
if (parts[1] === undefined) throw new Error("Invalid HSLA color format");
|
|
7
|
+
if (parts[2] === undefined) throw new Error("Invalid HSLA color format");
|
|
8
|
+
const h = parseInt(parts[0], 10);
|
|
9
|
+
const s = parseInt(parts[1], 10);
|
|
10
|
+
const l = parseInt(parts[2], 10);
|
|
11
|
+
return `hsla(${h}, ${s}%, ${l}%, ${alpha})`;
|
|
12
|
+
};
|
|
13
|
+
export const hslaSetLightness = (hsla, lightness) => {
|
|
14
|
+
const parts = hsla.replace(/^hsla?\(|\s+|\)$/g, "").split(",");
|
|
15
|
+
if (parts[0] === undefined) throw new Error("Invalid HSLA color format");
|
|
16
|
+
if (parts[1] === undefined) throw new Error("Invalid HSLA color format");
|
|
17
|
+
const h = parseInt(parts[0], 10);
|
|
18
|
+
const s = parseInt(parts[1], 10);
|
|
19
|
+
return `hsla(${h}, ${s}%, ${lightness}%, ${parts[3] ? parseFloat(parts[3]) : 1})`;
|
|
20
|
+
};
|
|
21
|
+
export const hslaGetLightness = hsla => {
|
|
22
|
+
const parts = hsla.replace(/^hsla?\(|\s+|\)$/g, "").split(",");
|
|
23
|
+
if (parts[2] === undefined) throw new Error("Invalid HSLA color format");
|
|
24
|
+
return parseInt(parts[2], 10);
|
|
25
|
+
};
|
|
26
|
+
export const hslaSetRelativeLightness = (hsla, delta) => {
|
|
27
|
+
const currentLightness = hslaGetLightness(hsla);
|
|
28
|
+
let newLightness = currentLightness + delta;
|
|
29
|
+
if (newLightness > 100) newLightness = 100;
|
|
30
|
+
if (newLightness < 0) newLightness = 0;
|
|
31
|
+
return hslaSetLightness(hsla, newLightness);
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=hsla-utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["hslaSetAlpha","hsla","alpha","parts","replace","split","undefined","Error","h","parseInt","s","l","hslaSetLightness","lightness","parseFloat","hslaGetLightness","hslaSetRelativeLightness","delta","currentLightness","newLightness"],"sourceRoot":"../../../src","sources":["utils/hsla-utils.ts"],"mappings":";;AAAA,OAAO,MAAMA,YAAY,GAAGA,CAACC,IAAY,EAAEC,KAAa,KAAa;EACnE,MAAMC,KAAK,GAAGF,IAAI,CAACG,OAAO,CAAC,mBAAmB,EAAE,EAAE,CAAC,CAACC,KAAK,CAAC,GAAG,CAAC;EAC9D,IAAIF,KAAK,CAAC,CAAC,CAAC,KAAKG,SAAS,EAAE,MAAM,IAAIC,KAAK,CAAC,2BAA2B,CAAC;EACxE,IAAIJ,KAAK,CAAC,CAAC,CAAC,KAAKG,SAAS,EAAE,MAAM,IAAIC,KAAK,CAAC,2BAA2B,CAAC;EACxE,IAAIJ,KAAK,CAAC,CAAC,CAAC,KAAKG,SAAS,EAAE,MAAM,IAAIC,KAAK,CAAC,2BAA2B,CAAC;EACxE,MAAMC,CAAC,GAAGC,QAAQ,CAACN,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;EAChC,MAAMO,CAAC,GAAGD,QAAQ,CAACN,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;EAChC,MAAMQ,CAAC,GAAGF,QAAQ,CAACN,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;EAChC,OAAO,QAAQK,CAAC,KAAKE,CAAC,MAAMC,CAAC,MAAMT,KAAK,GAAG;AAC7C,CAAC;AAED,OAAO,MAAMU,gBAAgB,GAAGA,CAACX,IAAY,EAAEY,SAAiB,KAAa;EAC3E,MAAMV,KAAK,GAAGF,IAAI,CAACG,OAAO,CAAC,mBAAmB,EAAE,EAAE,CAAC,CAACC,KAAK,CAAC,GAAG,CAAC;EAC9D,IAAIF,KAAK,CAAC,CAAC,CAAC,KAAKG,SAAS,EAAE,MAAM,IAAIC,KAAK,CAAC,2BAA2B,CAAC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
|
5
|
+
...layout
|
|
6
|
+
};
|
|
7
|
+
// Web layout doesn't provide x/y, but left/top
|
|
8
|
+
if (!layout.y && "top" in layout && typeof layout.top === "number") {
|
|
9
|
+
_layout.y = layout.top;
|
|
10
|
+
}
|
|
11
|
+
if (!layout.x && "left" in layout && typeof layout.left === "number") {
|
|
12
|
+
_layout.x = layout.left;
|
|
13
|
+
}
|
|
14
|
+
return _layout;
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=normalize-layout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["normalizeLayout","layout","_layout","y","top","x","left"],"sourceRoot":"../../../src","sources":["utils/normalize-layout.ts"],"mappings":";;AACA,OAAO,MAAMA,eAAe,GAAIC,MAAuB,IAAK;EAC1D,MAAMC,OAAO,GAAG;IAAE,GAAGD;EAAO,CAAC;EAC7B;EACA,IAAI,CAACA,MAAM,CAACE,CAAC,IAAI,KAAK,IAAIF,MAAM,IAAI,OAAOA,MAAM,CAACG,GAAG,KAAK,QAAQ,EAAE;IAClEF,OAAO,CAACC,CAAC,GAAGF,MAAM,CAACG,GAAG;EACxB;EACA,IAAI,CAACH,MAAM,CAACI,CAAC,IAAI,MAAM,IAAIJ,MAAM,IAAI,OAAOA,MAAM,CAACK,IAAI,KAAK,QAAQ,EAAE;IACpEJ,OAAO,CAACG,CAAC,GAAGJ,MAAM,CAACK,IAAI;EACzB;EACA,OAAOJ,OAAO;AAChB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useTheme } from "@/themes";
|
|
4
|
+
export const useThemedStyles = callback => {
|
|
5
|
+
const theme = useTheme();
|
|
6
|
+
return callback({
|
|
7
|
+
colors: theme.colors,
|
|
8
|
+
radius: theme.radius,
|
|
9
|
+
fontFamily: theme.fontFamily,
|
|
10
|
+
letterSpacing: theme.letterSpacing,
|
|
11
|
+
fontSize: theme.fontSize
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=use-themed-styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useTheme","useThemedStyles","callback","theme","colors","radius","fontFamily","letterSpacing","fontSize"],"sourceRoot":"../../../src","sources":["utils/use-themed-styles.ts"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,UAAU;AAWnC,OAAO,MAAMC,eAAe,GAAOC,QAAqC,IAAQ;EAC9E,MAAMC,KAAK,GAAGH,QAAQ,CAAC,CAAC;EACxB,OAAOE,QAAQ,CAAC;IACdE,MAAM,EAAED,KAAK,CAACC,MAAM;IACpBC,MAAM,EAAEF,KAAK,CAACE,MAAM;IACpBC,UAAU,EAAEH,KAAK,CAACG,UAAU;IAC5BC,aAAa,EAAEJ,KAAK,CAACI,aAAa;IAClCC,QAAQ,EAAEL,KAAK,CAACK;EAClB,CAAC,CAAC;AACJ,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"babel.config.d.ts","sourceRoot":"","sources":["../../babel.config.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bob.config.d.ts","sourceRoot":"","sources":["../../bob.config.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { ImageSource } from "react-native";
|
|
3
|
+
import { AvatarVariants } from "./variants";
|
|
4
|
+
export interface AvatarProps {
|
|
5
|
+
source?: ImageSource;
|
|
6
|
+
fallback: string;
|
|
7
|
+
variant?: keyof typeof AvatarVariants;
|
|
8
|
+
}
|
|
9
|
+
export declare function Avatar(props: AvatarProps): React.JSX.Element;
|
|
10
|
+
//# sourceMappingURL=avatar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../../../src/components/avatar/avatar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IAEjB,OAAO,CAAC,EAAE,MAAM,OAAO,cAAc,CAAC;CACvC;AAED,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,qBAUxC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/avatar/variants/default.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAGjD,wBAAgB,uBAAuB,IAAI,YAAY,CA0BtD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/avatar/variants/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAC;AAEpD,eAAO,MAAM,cAAc;;CAE1B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { BadgeVariants } from "./variants";
|
|
3
|
+
interface BadgeProps {
|
|
4
|
+
children: string;
|
|
5
|
+
variant?: keyof typeof BadgeVariants;
|
|
6
|
+
color?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function Badge(props: BadgeProps): React.JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=badge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../../../src/components/badge/badge.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,UAAU,UAAU;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,OAAO,aAAa,CAAC;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,qBAYtC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/badge/variants/default.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,eAAO,MAAM,sBAAsB,QAAO,WAsBzC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/badge/variants/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa;;;CAGzB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"secondary.d.ts","sourceRoot":"","sources":["../../../../../../src/components/badge/variants/secondary.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,eAAO,MAAM,wBAAwB,QAAO,WAsB3C,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type ButtonPrimitiveRootProps } from "@/primitives";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { ButtonVariants } from "./variants";
|
|
4
|
+
interface ButtonProps {
|
|
5
|
+
children?: string;
|
|
6
|
+
onPress?: ButtonPrimitiveRootProps["onPress"];
|
|
7
|
+
onLayout?: ButtonPrimitiveRootProps["onLayout"];
|
|
8
|
+
isDisabled?: boolean;
|
|
9
|
+
isLoading?: boolean;
|
|
10
|
+
variant?: keyof typeof ButtonVariants;
|
|
11
|
+
}
|
|
12
|
+
export declare function Button(props: ButtonProps): React.JSX.Element;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../../src/components/button/button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAC9E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C,UAAU,WAAW;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,OAAO,CAAC,EAAE,wBAAwB,CAAC,SAAS,CAAC,CAAC;IAC9C,QAAQ,CAAC,EAAE,wBAAwB,CAAC,UAAU,CAAC,CAAC;IAChD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,OAAO,CAAC,EAAE,MAAM,OAAO,cAAc,CAAC;CACvC;AAED,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,qBAWxC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/button/variants/default.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,cAAc,CAAC;AAIjD,eAAO,MAAM,uBAAuB,QAAO,YAqD1C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/button/variants/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc;;;CAG1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"secondary.d.ts","sourceRoot":"","sources":["../../../../../../src/components/button/variants/secondary.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,cAAc,CAAC;AAIjD,eAAO,MAAM,yBAAyB,QAAO,YAqD5C,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type CalendarRootProps } from "@/primitives";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { CalendarVariants } from "./variants";
|
|
4
|
+
export interface CalendarProps {
|
|
5
|
+
value?: CalendarRootProps["value"];
|
|
6
|
+
onChange?: CalendarRootProps["onChange"];
|
|
7
|
+
defaultMonth?: CalendarRootProps["defaultMonth"];
|
|
8
|
+
minDate?: CalendarRootProps["minDate"];
|
|
9
|
+
maxDate?: CalendarRootProps["maxDate"];
|
|
10
|
+
weekDays?: string[];
|
|
11
|
+
variant?: keyof typeof CalendarVariants;
|
|
12
|
+
}
|
|
13
|
+
export declare function Calendar(props: CalendarProps): React.JSX.Element;
|
|
14
|
+
//# sourceMappingURL=calendar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../../../../../src/components/calendar/calendar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACzE,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAE9C,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,iBAAiB,CAAC,OAAO,CAAC,CAAC;IACnC,QAAQ,CAAC,EAAE,iBAAiB,CAAC,UAAU,CAAC,CAAC;IACzC,YAAY,CAAC,EAAE,iBAAiB,CAAC,cAAc,CAAC,CAAC;IACjD,OAAO,CAAC,EAAE,iBAAiB,CAAC,SAAS,CAAC,CAAC;IACvC,OAAO,CAAC,EAAE,iBAAiB,CAAC,SAAS,CAAC,CAAC;IACvC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IAEpB,OAAO,CAAC,EAAE,MAAM,OAAO,gBAAgB,CAAC;CACzC;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,qBAgB5C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/calendar/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
|