@korsolutions/ui 0.0.84 → 0.0.85
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/dist/module/components/alert/components/alert-description.js.map +1 -1
- package/dist/module/components/alert/components/alert-icon.js.map +1 -1
- package/dist/module/components/alert/components/alert-root.js +7 -3
- package/dist/module/components/alert/components/alert-root.js.map +1 -1
- package/dist/module/components/alert-dialog/async-alert-dialog.js.map +1 -1
- package/dist/module/components/alert-dialog/components/alert-dialog-root.js +7 -3
- package/dist/module/components/alert-dialog/components/alert-dialog-root.js.map +1 -1
- package/dist/module/components/avatar/components/avatar-image.js.map +1 -1
- package/dist/module/components/avatar/components/avatar-root.js +7 -3
- package/dist/module/components/avatar/components/avatar-root.js.map +1 -1
- package/dist/module/components/badge/badge.js +11 -4
- package/dist/module/components/badge/badge.js.map +1 -1
- package/dist/module/components/button/button.js +6 -2
- package/dist/module/components/button/button.js.map +1 -1
- package/dist/module/components/calendar/calendar/calendar-root.js +6 -2
- package/dist/module/components/calendar/calendar/calendar-root.js.map +1 -1
- package/dist/module/components/calendar/calendar/calendar-weeks.js +6 -9
- package/dist/module/components/calendar/calendar/calendar-weeks.js.map +1 -1
- package/dist/module/components/calendar/shared/calendar-context.js.map +1 -1
- package/dist/module/components/calendar/shared/calendar-day.js.map +1 -1
- package/dist/module/components/calendar/shared/calendar-header.js.map +1 -1
- package/dist/module/components/calendar/shared/calendar-nav-buttons.js +4 -4
- package/dist/module/components/calendar/shared/calendar-nav-buttons.js.map +1 -1
- package/dist/module/components/calendar/shared/calendar-title.js.map +1 -1
- package/dist/module/components/calendar/shared/calendar-week-labels.js.map +1 -1
- package/dist/module/components/calendar/timeline/calendar-timeline.js.map +1 -1
- package/dist/module/components/calendar/week-calendar/week-calendar.js +4 -4
- package/dist/module/components/calendar/week-calendar/week-calendar.js.map +1 -1
- package/dist/module/components/card/card-root.js +6 -3
- package/dist/module/components/card/card-root.js.map +1 -1
- package/dist/module/components/checkbox/components/checkbox-root.js +7 -3
- package/dist/module/components/checkbox/components/checkbox-root.js.map +1 -1
- package/dist/module/components/combobox/components/combobox-content.js.map +1 -1
- package/dist/module/components/combobox/components/combobox-option.js.map +1 -1
- package/dist/module/components/combobox/components/combobox-overlay.js.map +1 -1
- package/dist/module/components/combobox/components/combobox-portal.js.map +1 -1
- package/dist/module/components/combobox/components/combobox-root.js +7 -3
- package/dist/module/components/combobox/components/combobox-root.js.map +1 -1
- package/dist/module/components/combobox/components/combobox-trigger.js.map +1 -1
- package/dist/module/components/combobox/context.js.map +1 -1
- package/dist/module/components/empty/components/empty-root.js +6 -2
- package/dist/module/components/empty/components/empty-root.js.map +1 -1
- package/dist/module/components/field/components/field-label.js.map +1 -1
- package/dist/module/components/field/components/field-root.js +6 -2
- package/dist/module/components/field/components/field-root.js.map +1 -1
- package/dist/module/components/icon/icon.js.map +1 -1
- package/dist/module/components/icon-button/icon-button.js +7 -3
- package/dist/module/components/icon-button/icon-button.js.map +1 -1
- package/dist/module/components/index.js +1 -0
- package/dist/module/components/index.js.map +1 -1
- package/dist/module/components/input/input.js +7 -3
- package/dist/module/components/input/input.js.map +1 -1
- package/dist/module/components/input/numeric-input.js +0 -1
- package/dist/module/components/input/numeric-input.js.map +1 -1
- package/dist/module/components/menu/components/menu-checkbox-item.js.map +1 -1
- package/dist/module/components/menu/components/menu-item.js.map +1 -1
- package/dist/module/components/menu/components/menu-overlay.js.map +1 -1
- package/dist/module/components/menu/components/menu-radio-group.js.map +1 -1
- package/dist/module/components/menu/components/menu-radio-item.js.map +1 -1
- package/dist/module/components/menu/components/menu-root.js +6 -2
- package/dist/module/components/menu/components/menu-root.js.map +1 -1
- package/dist/module/components/menu/components/menu-selection-indicator.js +3 -3
- package/dist/module/components/menu/components/menu-selection-indicator.js.map +1 -1
- package/dist/module/components/menu/components/menu-trigger.js.map +1 -1
- package/dist/module/components/menu/context.js.map +1 -1
- package/dist/module/components/phone-input/components/country-picker.js.map +1 -1
- package/dist/module/components/phone-input/components/phone-input-root.js +7 -3
- package/dist/module/components/phone-input/components/phone-input-root.js.map +1 -1
- package/dist/module/components/phone-input/components/phone-input.js.map +1 -1
- package/dist/module/components/phone-input/context.js.map +1 -1
- package/dist/module/components/popover/components/popover-overlay.js.map +1 -1
- package/dist/module/components/popover/components/popover-root.js +6 -2
- package/dist/module/components/popover/components/popover-root.js.map +1 -1
- package/dist/module/components/popover/components/popover-trigger.js.map +1 -1
- package/dist/module/components/portal/portal.js.map +1 -1
- package/dist/module/components/progress/components/progress-indicator.js.map +1 -1
- package/dist/module/components/progress/components/progress-root.js +6 -3
- package/dist/module/components/progress/components/progress-root.js.map +1 -1
- package/dist/module/components/radio-group/components/radio-group-item.js.map +1 -1
- package/dist/module/components/radio-group/components/radio-group-root.js +7 -3
- package/dist/module/components/radio-group/components/radio-group-root.js.map +1 -1
- package/dist/module/components/select/components/select-content.js.map +1 -1
- package/dist/module/components/select/components/select-option.js.map +1 -1
- package/dist/module/components/select/components/select-overlay.js.map +1 -1
- package/dist/module/components/select/components/select-portal.js.map +1 -1
- package/dist/module/components/select/components/select-root.js +7 -4
- package/dist/module/components/select/components/select-root.js.map +1 -1
- package/dist/module/components/select/components/select-trigger.js.map +1 -1
- package/dist/module/components/separator/separator.js +5 -1
- package/dist/module/components/separator/separator.js.map +1 -1
- package/dist/module/components/spinner/spinner.js +7 -3
- package/dist/module/components/spinner/spinner.js.map +1 -1
- package/dist/module/components/table/context.js +12 -0
- package/dist/module/components/table/context.js.map +1 -0
- package/dist/module/components/table/index.js +17 -0
- package/dist/module/components/table/index.js.map +1 -0
- package/dist/module/components/table/table-body.js +17 -0
- package/dist/module/components/table/table-body.js.map +1 -0
- package/dist/module/components/table/table-cell.js +17 -0
- package/dist/module/components/table/table-cell.js.map +1 -0
- package/dist/module/components/table/table-head.js +17 -0
- package/dist/module/components/table/table-head.js.map +1 -0
- package/dist/module/components/table/table-header.js +17 -0
- package/dist/module/components/table/table-header.js.map +1 -0
- package/dist/module/components/table/table-root.js +27 -0
- package/dist/module/components/table/table-root.js.map +1 -0
- package/dist/module/components/table/table-row.js +17 -0
- package/dist/module/components/table/table-row.js.map +1 -0
- package/dist/module/components/table/types.js +4 -0
- package/dist/module/components/table/types.js.map +1 -0
- package/dist/module/components/table/variants/default.js +48 -0
- package/dist/module/components/table/variants/default.js.map +1 -0
- package/dist/module/components/table/variants/index.js +7 -0
- package/dist/module/components/table/variants/index.js.map +1 -0
- package/dist/module/components/tabs/components/tabs-item.js.map +1 -1
- package/dist/module/components/tabs/components/tabs-root.js +7 -3
- package/dist/module/components/tabs/components/tabs-root.js.map +1 -1
- package/dist/module/components/textarea/textarea.js +7 -3
- package/dist/module/components/textarea/textarea.js.map +1 -1
- package/dist/module/components/toast/components/toast-icon.js.map +1 -1
- package/dist/module/components/toast/components/toast-root.js +6 -2
- package/dist/module/components/toast/components/toast-root.js.map +1 -1
- package/dist/module/components/toast/manager.js +3 -3
- package/dist/module/components/toast/manager.js.map +1 -1
- package/dist/module/components/touchable/touchable.js +5 -1
- package/dist/module/components/touchable/touchable.js.map +1 -1
- package/dist/module/hooks/use-color-scheme.js.map +1 -1
- package/dist/module/hooks/use-is-react-navigation-modal.js.map +1 -1
- package/dist/module/hooks/use-numeric-mask.js.map +1 -1
- package/dist/module/hooks/use-phone-mask.js.map +1 -1
- package/dist/module/hooks/use-relative-position.js.map +1 -1
- package/dist/module/hooks/use-screen-size.js.map +1 -1
- package/dist/module/index.js +1 -1
- package/dist/module/index.js.map +1 -1
- package/dist/module/themes/index.js +2 -2
- package/dist/module/themes/index.js.map +1 -1
- package/dist/module/themes/provider.js +5 -1
- package/dist/module/themes/provider.js.map +1 -1
- package/dist/module/themes/types.js +2 -0
- package/dist/module/utils/calculate-styles.js +26 -0
- package/dist/module/utils/calculate-styles.js.map +1 -1
- package/dist/module/utils/date-utils.js.map +1 -1
- package/dist/module/utils/input-utils.js.map +1 -1
- package/dist/module/utils/normalize-layout.js.map +1 -1
- package/dist/module/utils/use-themed-styles.js.map +1 -1
- package/dist/typescript/src/components/alert/components/alert-description.d.ts.map +1 -1
- package/dist/typescript/src/components/alert/components/alert-icon.d.ts.map +1 -1
- package/dist/typescript/src/components/alert/components/alert-root.d.ts +1 -1
- package/dist/typescript/src/components/alert/components/alert-root.d.ts.map +1 -1
- package/dist/typescript/src/components/alert-dialog/async-alert-dialog.d.ts.map +1 -1
- package/dist/typescript/src/components/alert-dialog/components/alert-dialog-root.d.ts.map +1 -1
- package/dist/typescript/src/components/avatar/components/avatar-image.d.ts.map +1 -1
- package/dist/typescript/src/components/avatar/components/avatar-root.d.ts.map +1 -1
- package/dist/typescript/src/components/badge/badge.d.ts.map +1 -1
- package/dist/typescript/src/components/button/button.d.ts.map +1 -1
- package/dist/typescript/src/components/button/types.d.ts.map +1 -1
- package/dist/typescript/src/components/calendar/calendar/calendar-root.d.ts.map +1 -1
- package/dist/typescript/src/components/calendar/calendar/calendar-weeks.d.ts.map +1 -1
- package/dist/typescript/src/components/calendar/index.d.ts +1 -1
- package/dist/typescript/src/components/calendar/index.d.ts.map +1 -1
- package/dist/typescript/src/components/calendar/shared/calendar-context.d.ts.map +1 -1
- package/dist/typescript/src/components/calendar/shared/calendar-day.d.ts.map +1 -1
- package/dist/typescript/src/components/calendar/shared/calendar-header.d.ts.map +1 -1
- package/dist/typescript/src/components/calendar/shared/calendar-nav-buttons.d.ts.map +1 -1
- package/dist/typescript/src/components/calendar/shared/calendar-title.d.ts.map +1 -1
- package/dist/typescript/src/components/calendar/shared/calendar-week-labels.d.ts.map +1 -1
- package/dist/typescript/src/components/calendar/shared/types.d.ts.map +1 -1
- package/dist/typescript/src/components/calendar/timeline/calendar-timeline.d.ts.map +1 -1
- package/dist/typescript/src/components/calendar/timeline/index.d.ts +1 -1
- package/dist/typescript/src/components/calendar/timeline/index.d.ts.map +1 -1
- package/dist/typescript/src/components/calendar/week-calendar/week-calendar.d.ts.map +1 -1
- package/dist/typescript/src/components/card/card-root.d.ts +1 -1
- package/dist/typescript/src/components/card/card-root.d.ts.map +1 -1
- package/dist/typescript/src/components/checkbox/components/checkbox-root.d.ts.map +1 -1
- package/dist/typescript/src/components/combobox/components/combobox-content.d.ts.map +1 -1
- package/dist/typescript/src/components/combobox/components/combobox-option.d.ts.map +1 -1
- package/dist/typescript/src/components/combobox/components/combobox-overlay.d.ts.map +1 -1
- package/dist/typescript/src/components/combobox/components/combobox-portal.d.ts.map +1 -1
- package/dist/typescript/src/components/combobox/components/combobox-root.d.ts.map +1 -1
- package/dist/typescript/src/components/combobox/components/combobox-trigger.d.ts.map +1 -1
- package/dist/typescript/src/components/combobox/context.d.ts.map +1 -1
- package/dist/typescript/src/components/empty/components/empty-root.d.ts.map +1 -1
- package/dist/typescript/src/components/field/components/field-label.d.ts.map +1 -1
- package/dist/typescript/src/components/field/components/field-root.d.ts.map +1 -1
- package/dist/typescript/src/components/icon/icon.d.ts.map +1 -1
- package/dist/typescript/src/components/icon-button/icon-button.d.ts.map +1 -1
- package/dist/typescript/src/components/index.d.ts +1 -0
- package/dist/typescript/src/components/index.d.ts.map +1 -1
- package/dist/typescript/src/components/input/input.d.ts.map +1 -1
- package/dist/typescript/src/components/input/numeric-input.d.ts +1 -1
- package/dist/typescript/src/components/input/numeric-input.d.ts.map +1 -1
- package/dist/typescript/src/components/menu/components/menu-checkbox-item.d.ts.map +1 -1
- package/dist/typescript/src/components/menu/components/menu-item.d.ts.map +1 -1
- package/dist/typescript/src/components/menu/components/menu-overlay.d.ts.map +1 -1
- package/dist/typescript/src/components/menu/components/menu-radio-group.d.ts.map +1 -1
- package/dist/typescript/src/components/menu/components/menu-radio-item.d.ts.map +1 -1
- package/dist/typescript/src/components/menu/components/menu-root.d.ts.map +1 -1
- package/dist/typescript/src/components/menu/components/menu-selection-indicator.d.ts +1 -1
- package/dist/typescript/src/components/menu/components/menu-selection-indicator.d.ts.map +1 -1
- package/dist/typescript/src/components/menu/components/menu-trigger.d.ts.map +1 -1
- package/dist/typescript/src/components/menu/context.d.ts.map +1 -1
- package/dist/typescript/src/components/menu/types.d.ts.map +1 -1
- package/dist/typescript/src/components/phone-input/components/country-picker.d.ts.map +1 -1
- package/dist/typescript/src/components/phone-input/components/phone-input-root.d.ts.map +1 -1
- package/dist/typescript/src/components/phone-input/components/phone-input.d.ts +1 -1
- package/dist/typescript/src/components/phone-input/components/phone-input.d.ts.map +1 -1
- package/dist/typescript/src/components/phone-input/context.d.ts.map +1 -1
- package/dist/typescript/src/components/phone-input/types.d.ts.map +1 -1
- package/dist/typescript/src/components/popover/components/popover-overlay.d.ts.map +1 -1
- package/dist/typescript/src/components/popover/components/popover-root.d.ts.map +1 -1
- package/dist/typescript/src/components/popover/components/popover-trigger.d.ts.map +1 -1
- package/dist/typescript/src/components/portal/portal.d.ts +2 -2
- package/dist/typescript/src/components/portal/portal.d.ts.map +1 -1
- package/dist/typescript/src/components/progress/components/progress-indicator.d.ts.map +1 -1
- package/dist/typescript/src/components/progress/components/progress-root.d.ts.map +1 -1
- package/dist/typescript/src/components/radio-group/components/radio-group-item.d.ts.map +1 -1
- package/dist/typescript/src/components/radio-group/components/radio-group-root.d.ts.map +1 -1
- package/dist/typescript/src/components/select/components/select-content.d.ts.map +1 -1
- package/dist/typescript/src/components/select/components/select-option.d.ts.map +1 -1
- package/dist/typescript/src/components/select/components/select-overlay.d.ts.map +1 -1
- package/dist/typescript/src/components/select/components/select-portal.d.ts.map +1 -1
- package/dist/typescript/src/components/select/components/select-root.d.ts.map +1 -1
- package/dist/typescript/src/components/select/components/select-trigger.d.ts.map +1 -1
- package/dist/typescript/src/components/separator/separator.d.ts.map +1 -1
- package/dist/typescript/src/components/spinner/spinner.d.ts.map +1 -1
- package/dist/typescript/src/components/table/context.d.ts +8 -0
- package/dist/typescript/src/components/table/context.d.ts.map +1 -0
- package/dist/typescript/src/components/table/index.d.ts +22 -0
- package/dist/typescript/src/components/table/index.d.ts.map +1 -0
- package/dist/typescript/src/components/table/table-body.d.ts +9 -0
- package/dist/typescript/src/components/table/table-body.d.ts.map +1 -0
- package/dist/typescript/src/components/table/table-cell.d.ts +9 -0
- package/dist/typescript/src/components/table/table-cell.d.ts.map +1 -0
- package/dist/typescript/src/components/table/table-head.d.ts +9 -0
- package/dist/typescript/src/components/table/table-head.d.ts.map +1 -0
- package/dist/typescript/src/components/table/table-header.d.ts +9 -0
- package/dist/typescript/src/components/table/table-header.d.ts.map +1 -0
- package/dist/typescript/src/components/table/table-root.d.ts +11 -0
- package/dist/typescript/src/components/table/table-root.d.ts.map +1 -0
- package/dist/typescript/src/components/table/table-row.d.ts +9 -0
- package/dist/typescript/src/components/table/table-row.d.ts.map +1 -0
- package/dist/typescript/src/components/table/types.d.ts +16 -0
- package/dist/typescript/src/components/table/types.d.ts.map +1 -0
- package/dist/typescript/src/components/table/variants/default.d.ts +3 -0
- package/dist/typescript/src/components/table/variants/default.d.ts.map +1 -0
- package/dist/typescript/src/components/table/variants/index.d.ts +5 -0
- package/dist/typescript/src/components/table/variants/index.d.ts.map +1 -0
- package/dist/typescript/src/components/tabs/components/tabs-item.d.ts.map +1 -1
- package/dist/typescript/src/components/tabs/components/tabs-root.d.ts.map +1 -1
- package/dist/typescript/src/components/textarea/textarea.d.ts.map +1 -1
- package/dist/typescript/src/components/toast/components/toast-icon.d.ts.map +1 -1
- package/dist/typescript/src/components/toast/components/toast-root.d.ts.map +1 -1
- package/dist/typescript/src/components/toast/manager.d.ts.map +1 -1
- package/dist/typescript/src/components/touchable/touchable.d.ts.map +1 -1
- package/dist/typescript/src/hooks/use-color-scheme.d.ts.map +1 -1
- package/dist/typescript/src/hooks/use-is-react-navigation-modal.d.ts.map +1 -1
- package/dist/typescript/src/hooks/use-numeric-mask.d.ts.map +1 -1
- package/dist/typescript/src/hooks/use-phone-mask.d.ts.map +1 -1
- package/dist/typescript/src/hooks/use-relative-position.d.ts.map +1 -1
- package/dist/typescript/src/hooks/use-screen-size.d.ts.map +1 -1
- package/dist/typescript/src/index.d.ts +3 -2
- package/dist/typescript/src/index.d.ts.map +1 -1
- package/dist/typescript/src/themes/index.d.ts +2 -2
- package/dist/typescript/src/themes/index.d.ts.map +1 -1
- package/dist/typescript/src/themes/provider.d.ts +2 -19
- package/dist/typescript/src/themes/provider.d.ts.map +1 -1
- package/dist/typescript/src/themes/types.d.ts +123 -0
- package/dist/typescript/src/themes/types.d.ts.map +1 -1
- package/dist/typescript/src/utils/calculate-styles.d.ts +1 -0
- package/dist/typescript/src/utils/calculate-styles.d.ts.map +1 -1
- package/dist/typescript/src/utils/date-utils.d.ts.map +1 -1
- package/dist/typescript/src/utils/input-utils.d.ts.map +1 -1
- package/dist/typescript/src/utils/normalize-layout.d.ts.map +1 -1
- package/dist/typescript/src/utils/use-themed-styles.d.ts.map +1 -1
- package/package.json +8 -7
- package/src/components/alert/components/alert-description.tsx +1 -3
- package/src/components/alert/components/alert-icon.tsx +4 -1
- package/src/components/alert/components/alert-root.tsx +9 -4
- package/src/components/alert-dialog/async-alert-dialog.tsx +6 -25
- package/src/components/alert-dialog/components/alert-dialog-root.tsx +8 -3
- package/src/components/avatar/components/avatar-image.tsx +1 -6
- package/src/components/avatar/components/avatar-root.tsx +8 -3
- package/src/components/badge/badge.tsx +10 -12
- package/src/components/button/button.tsx +10 -22
- package/src/components/button/types.ts +1 -5
- package/src/components/calendar/calendar/calendar-root.tsx +6 -2
- package/src/components/calendar/calendar/calendar-weeks.tsx +7 -13
- package/src/components/calendar/index.ts +1 -5
- package/src/components/calendar/shared/calendar-context.ts +2 -6
- package/src/components/calendar/shared/calendar-day.tsx +4 -12
- package/src/components/calendar/shared/calendar-header.tsx +1 -6
- package/src/components/calendar/shared/calendar-nav-buttons.tsx +9 -28
- package/src/components/calendar/shared/calendar-title.tsx +1 -6
- package/src/components/calendar/shared/calendar-week-labels.tsx +1 -7
- package/src/components/calendar/shared/types.ts +1 -6
- package/src/components/calendar/timeline/calendar-timeline.tsx +3 -9
- package/src/components/calendar/timeline/index.ts +1 -4
- package/src/components/calendar/week-calendar/week-calendar.tsx +10 -25
- package/src/components/card/card-root.tsx +8 -4
- package/src/components/checkbox/components/checkbox-root.tsx +13 -4
- package/src/components/combobox/components/combobox-content.tsx +2 -11
- package/src/components/combobox/components/combobox-option.tsx +1 -2
- package/src/components/combobox/components/combobox-overlay.tsx +1 -6
- package/src/components/combobox/components/combobox-portal.tsx +1 -3
- package/src/components/combobox/components/combobox-root.tsx +20 -23
- package/src/components/combobox/components/combobox-trigger.tsx +2 -7
- package/src/components/combobox/context.ts +1 -3
- package/src/components/empty/components/empty-root.tsx +7 -2
- package/src/components/field/components/field-label.tsx +3 -1
- package/src/components/field/components/field-root.tsx +7 -2
- package/src/components/icon/icon.tsx +1 -4
- package/src/components/icon-button/icon-button.tsx +11 -10
- package/src/components/index.ts +1 -0
- package/src/components/input/input.tsx +8 -4
- package/src/components/input/numeric-input.tsx +2 -9
- package/src/components/menu/components/menu-checkbox-item.tsx +2 -9
- package/src/components/menu/components/menu-item.tsx +2 -10
- package/src/components/menu/components/menu-overlay.tsx +1 -6
- package/src/components/menu/components/menu-radio-group.tsx +1 -5
- package/src/components/menu/components/menu-radio-item.tsx +1 -5
- package/src/components/menu/components/menu-root.tsx +10 -2
- package/src/components/menu/components/menu-selection-indicator.tsx +4 -6
- package/src/components/menu/components/menu-trigger.tsx +32 -34
- package/src/components/menu/context.ts +3 -3
- package/src/components/menu/types.ts +1 -5
- package/src/components/phone-input/components/country-picker.tsx +6 -21
- package/src/components/phone-input/components/phone-input-root.tsx +10 -8
- package/src/components/phone-input/components/phone-input.tsx +5 -20
- package/src/components/phone-input/context.ts +1 -3
- package/src/components/phone-input/types.ts +2 -6
- package/src/components/popover/components/popover-overlay.tsx +7 -1
- package/src/components/popover/components/popover-root.tsx +10 -2
- package/src/components/popover/components/popover-trigger.tsx +1 -4
- package/src/components/portal/portal.tsx +6 -26
- package/src/components/progress/components/progress-indicator.tsx +13 -2
- package/src/components/progress/components/progress-root.tsx +6 -3
- package/src/components/radio-group/components/radio-group-item.tsx +1 -5
- package/src/components/radio-group/components/radio-group-root.tsx +7 -3
- package/src/components/select/components/select-content.tsx +1 -5
- package/src/components/select/components/select-option.tsx +5 -1
- package/src/components/select/components/select-overlay.tsx +6 -1
- package/src/components/select/components/select-portal.tsx +1 -3
- package/src/components/select/components/select-root.tsx +7 -4
- package/src/components/select/components/select-trigger.tsx +3 -13
- package/src/components/separator/separator.tsx +5 -1
- package/src/components/spinner/spinner.tsx +8 -9
- package/src/components/table/context.ts +17 -0
- package/src/components/table/index.ts +23 -0
- package/src/components/table/table-body.tsx +20 -0
- package/src/components/table/table-cell.tsx +20 -0
- package/src/components/table/table-head.tsx +20 -0
- package/src/components/table/table-header.tsx +20 -0
- package/src/components/table/table-root.tsx +35 -0
- package/src/components/table/table-row.tsx +20 -0
- package/src/components/table/types.ts +17 -0
- package/src/components/table/variants/default.tsx +46 -0
- package/src/components/table/variants/index.ts +5 -0
- package/src/components/tabs/components/tabs-item.tsx +5 -25
- package/src/components/tabs/components/tabs-root.tsx +9 -10
- package/src/components/textarea/textarea.tsx +7 -3
- package/src/components/toast/components/toast-icon.tsx +2 -8
- package/src/components/toast/components/toast-root.tsx +6 -2
- package/src/components/toast/manager.tsx +4 -6
- package/src/components/touchable/touchable.tsx +7 -7
- package/src/hooks/use-color-scheme.ts +1 -4
- package/src/hooks/use-currency-mask.ts +4 -4
- package/src/hooks/use-is-react-navigation-modal.ts +4 -13
- package/src/hooks/use-numeric-mask.ts +10 -5
- package/src/hooks/use-phone-mask.ts +6 -18
- package/src/hooks/use-relative-position.ts +8 -24
- package/src/hooks/use-screen-size.ts +8 -3
- package/src/index.tsx +3 -6
- package/src/themes/index.ts +2 -2
- package/src/themes/provider.tsx +8 -25
- package/src/themes/types.ts +125 -0
- package/src/utils/calculate-styles.ts +42 -2
- package/src/utils/date-utils.ts +23 -3
- package/src/utils/input-utils.ts +1 -4
- package/src/utils/normalize-layout.ts +3 -1
- package/src/utils/use-themed-styles.ts +2 -10
- package/tsconfig.json +5 -15
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Text","useAlert","jsx","_jsx","AlertDescription","props","alert","composedStyle","styles","description","style","Component","render"],"sourceRoot":"../../../../../src","sources":["components/alert/components/alert-description.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAAyBC,IAAI,QAAwB,cAAc;AAGnE,SAASC,QAAQ,QAAQ,eAAY;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAQtC,OAAO,SAASC,gBAAgBA,
|
|
1
|
+
{"version":3,"names":["React","Text","useAlert","jsx","_jsx","AlertDescription","props","alert","composedStyle","styles","description","style","Component","render"],"sourceRoot":"../../../../../src","sources":["components/alert/components/alert-description.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAAyBC,IAAI,QAAwB,cAAc;AAGnE,SAASC,QAAQ,QAAQ,eAAY;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAQtC,OAAO,SAASC,gBAAgBA,CAACC,KAA6C,EAAE;EAC9E,MAAMC,KAAK,GAAGL,QAAQ,CAAC,CAAC;EAExB,MAAMM,aAAa,GAAG,CAACD,KAAK,CAACE,MAAM,EAAEC,WAAW,EAAEJ,KAAK,CAACK,KAAK,CAAC;EAE9D,MAAMC,SAAS,GAAGN,KAAK,CAACO,MAAM,IAAIZ,IAAI;EACtC,oBAAOG,IAAA,CAACQ,SAAS;IAAA,GAAKN,KAAK;IAAEK,KAAK,EAAEH;EAAc,CAAE,CAAC;AACvD","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useAlert","jsx","_jsx","AlertIcon","render","Component","props","alert","composedProps","styles","icon","style","absoluteStrokeWidth"],"sourceRoot":"../../../../../src","sources":["components/alert/components/alert-icon.tsx"],"mappings":";;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,QAAQ,eAAY;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAItC,OAAO,SAASC,SAASA,CAAC;
|
|
1
|
+
{"version":3,"names":["React","useAlert","jsx","_jsx","AlertIcon","render","Component","props","alert","composedProps","styles","icon","style","absoluteStrokeWidth"],"sourceRoot":"../../../../../src","sources":["components/alert/components/alert-icon.tsx"],"mappings":";;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,QAAQ,eAAY;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAItC,OAAO,SAASC,SAASA,CAAC;EACxBC,MAAM,EAAEC,SAAS;EACjB,GAAGC;AACoC,CAAC,EAAE;EAC1C,MAAMC,KAAK,GAAGP,QAAQ,CAAC,CAAC;EAExB,MAAMQ,aAAa,GAAG;IACpB,GAAGD,KAAK,CAACE,MAAM,EAAEC,IAAI;IACrB,GAAGJ,KAAK;IACRK,KAAK,EAAE,CAACJ,KAAK,CAACE,MAAM,EAAEC,IAAI,EAAEC,KAAK,EAAEL,KAAK,CAACK,KAAK;EAChD,CAAC;EAED,oBAAOT,IAAA,CAACG,SAAS;IAACO,mBAAmB;IAAA,GAAKJ;EAAa,CAAG,CAAC;AAC7D","ignoreList":[]}
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import React from "react";
|
|
4
|
-
import { View } from "react-native";
|
|
4
|
+
import { StyleSheet, View } from "react-native";
|
|
5
|
+
import { useComponentConfig } from "../../../themes/provider.js";
|
|
6
|
+
import { mergeStyles } from "../../../utils/calculate-styles.js";
|
|
5
7
|
import { AlertContext } from "../context.js";
|
|
6
8
|
import { AlertVariants } from "../variants/index.js";
|
|
7
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
10
|
export function AlertRoot(props) {
|
|
9
11
|
const variantStyles = AlertVariants[props.variant ?? "default"]();
|
|
10
|
-
const
|
|
12
|
+
const componentConfig = useComponentConfig("alert");
|
|
13
|
+
const mergedStyles = mergeStyles(variantStyles, componentConfig?.styles);
|
|
14
|
+
const composedStyle = StyleSheet.flatten([mergedStyles.root, props.style]);
|
|
11
15
|
const Component = props.render ?? View;
|
|
12
16
|
return /*#__PURE__*/_jsx(AlertContext.Provider, {
|
|
13
17
|
value: {
|
|
14
|
-
styles:
|
|
18
|
+
styles: mergedStyles
|
|
15
19
|
},
|
|
16
20
|
children: /*#__PURE__*/_jsx(Component, {
|
|
17
21
|
...props,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","AlertContext","AlertVariants","jsx","_jsx","AlertRoot","props","variantStyles","variant","composedStyle","root","style","Component","render","Provider","value","
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","View","useComponentConfig","mergeStyles","AlertContext","AlertVariants","jsx","_jsx","AlertRoot","props","variantStyles","variant","componentConfig","mergedStyles","styles","composedStyle","flatten","root","style","Component","render","Provider","value","children"],"sourceRoot":"../../../../../src","sources":["components/alert/components/alert-root.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAAyBC,UAAU,EAAEC,IAAI,QAAwB,cAAc;AAC/E,SAASC,kBAAkB,QAAQ,6BAA0B;AAE7D,SAASC,WAAW,QAAQ,oCAAiC;AAC7D,SAASC,YAAY,QAAQ,eAAY;AACzC,SAASC,aAAa,QAAQ,sBAAa;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAS5C,OAAO,SAASC,SAASA,CAACC,KAAsC,EAAE;EAChE,MAAMC,aAAa,GAAGL,aAAa,CAACI,KAAK,CAACE,OAAO,IAAI,SAAS,CAAC,CAAC,CAAC;EACjE,MAAMC,eAAe,GAAGV,kBAAkB,CAAC,OAAO,CAAC;EAEnD,MAAMW,YAAY,GAAGV,WAAW,CAACO,aAAa,EAAEE,eAAe,EAAEE,MAAM,CAAC;EACxE,MAAMC,aAAa,GAAGf,UAAU,CAACgB,OAAO,CAAC,CAACH,YAAY,CAACI,IAAI,EAAER,KAAK,CAACS,KAAK,CAAC,CAAC;EAE1E,MAAMC,SAAS,GAAGV,KAAK,CAACW,MAAM,IAAInB,IAAI;EACtC,oBACEM,IAAA,CAACH,YAAY,CAACiB,QAAQ;IACpBC,KAAK,EAAE;MACLR,MAAM,EAAED;IACV,CAAE;IAAAU,QAAA,eAEFhB,IAAA,CAACY,SAAS;MAAA,GAAKV,KAAK;MAAES,KAAK,EAAEH;IAAc,CAAE;EAAC,CACzB,CAAC;AAE5B","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useEffect","useState","AlertDialogAction","AlertDialogCancel","AlertDialogContent","AlertDialogDescription","AlertDialogFooter","AlertDialogOverlay","AlertDialogPortal","AlertDialogRoot","AlertDialogTitle","useAlertDialog","jsx","_jsx","jsxs","_jsxs","dialogQueue","currentDialog","setCurrentDialogFn","processQueue","length","shift","closeDialog","confirmed","resolve","setTimeout","AsyncAlertDialogContent","instance","title","description","actionLabel","cancelLabel","props","setIsOpen","handleAction","handleCancel","children","onPress","AsyncAlertDialogInstance","AsyncAlertDialogManager","dialog","setDialog","show","Promise","id","Date","now","toString","push","AsyncAlertDialog"],"sourceRoot":"../../../../src","sources":["components/alert-dialog/async-alert-dialog.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAClD,SAASC,iBAAiB,QAAQ,qCAAkC;AACpE,SAASC,iBAAiB,QAAQ,qCAAkC;AACpE,SAASC,kBAAkB,QAAQ,sCAAmC;AACtE,SAASC,sBAAsB,QAAQ,0CAAuC;AAC9E,SAASC,iBAAiB,QAAQ,qCAAkC;AACpE,SAASC,kBAAkB,QAAQ,sCAAmC;AACtE,SAASC,iBAAiB,QAAQ,qCAAkC;AACpE,SAASC,eAAe,QAAQ,mCAAgC;AAChE,SAASC,gBAAgB,QAAQ,oCAAiC;AAClE,SAASC,cAAc,QAAQ,cAAW;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAqB3C;AACA,MAAMC,WAAuC,GAAG,EAAE;AAClD,IAAIC,aAA8C,GAAG,IAAI;AACzD,IAAIC,
|
|
1
|
+
{"version":3,"names":["React","useEffect","useState","AlertDialogAction","AlertDialogCancel","AlertDialogContent","AlertDialogDescription","AlertDialogFooter","AlertDialogOverlay","AlertDialogPortal","AlertDialogRoot","AlertDialogTitle","useAlertDialog","jsx","_jsx","jsxs","_jsxs","dialogQueue","currentDialog","setCurrentDialogFn","processQueue","length","shift","closeDialog","confirmed","resolve","setTimeout","AsyncAlertDialogContent","instance","title","description","actionLabel","cancelLabel","props","setIsOpen","handleAction","handleCancel","children","onPress","AsyncAlertDialogInstance","AsyncAlertDialogManager","dialog","setDialog","show","Promise","id","Date","now","toString","push","AsyncAlertDialog"],"sourceRoot":"../../../../src","sources":["components/alert-dialog/async-alert-dialog.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAClD,SAASC,iBAAiB,QAAQ,qCAAkC;AACpE,SAASC,iBAAiB,QAAQ,qCAAkC;AACpE,SAASC,kBAAkB,QAAQ,sCAAmC;AACtE,SAASC,sBAAsB,QAAQ,0CAAuC;AAC9E,SAASC,iBAAiB,QAAQ,qCAAkC;AACpE,SAASC,kBAAkB,QAAQ,sCAAmC;AACtE,SAASC,iBAAiB,QAAQ,qCAAkC;AACpE,SAASC,eAAe,QAAQ,mCAAgC;AAChE,SAASC,gBAAgB,QAAQ,oCAAiC;AAClE,SAASC,cAAc,QAAQ,cAAW;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAqB3C;AACA,MAAMC,WAAuC,GAAG,EAAE;AAClD,IAAIC,aAA8C,GAAG,IAAI;AACzD,IAAIC,kBAA8E,GAAG,IAAI;;AAEzF;AACA,SAASC,YAAYA,CAAA,EAAG;EACtB,IAAIF,aAAa,IAAID,WAAW,CAACI,MAAM,KAAK,CAAC,EAAE;EAE/CH,aAAa,GAAGD,WAAW,CAACK,KAAK,CAAC,CAAE;EACpCH,kBAAkB,GAAGD,aAAa,CAAC;AACrC;;AAEA;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AA,EAAEN;QAAW,CAAoB,CAAC;MAAA,CAC1D,CAAC;IAAA,CACF,CAAC;EAAA,CACJ,CAAC;AAExB;;AAEA;AACA,SAASQ,wBAAwBA,CAAC;EAAEX;AAAiD,CAAC,EAAE;EACtF,oBACEd,IAAA,CAACJ,eAAe;IAAA,GAAKkB,QAAQ,CAACK,KAAK;IAAAI,QAAA,eACjCvB,IAAA,CAACa,uBAAuB;MAACC,QAAQ,EAAEA;IAAS,CAAE;EAAC,CAChC,CAAC;AAEtB;AAEA,OAAO,SAASY,uBAAuBA,CAAA,EAAG;EACxC,MAAM,CAACC,MAAM,EAAEC,SAAS,CAAC,GAAGxC,QAAQ,CAAkC,IAAI,CAAC;EAE3ED,SAAS,CAAC,MAAM;IACdkB,kBAAkB,GAAGuB,SAAS;IAC9B,OAAO,MAAM;MACXvB,kBAAkB,GAAG,IAAI;IAC3B,CAAC;EACH,CAAC,EAAE,EAAE,CAAC;EAEN,IAAI,CAACsB,MAAM,EAAE,OAAO,IAAI;EAExB,oBAAO3B,IAAA,CAACyB,wBAAwB;IAACX,QAAQ,EAAEa;EAAO,CAAE,CAAC;AACvD;AAEA,SAASE,IAAIA,CAACV,KAA4B,EAAmC;EAC3E,OAAO,IAAIW,OAAO,CAAEnB,OAAO,IAAK;IAC9B,MAAMG,QAAkC,GAAG;MACzCiB,EAAE,EAAEC,IAAI,CAACC,GAAG,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;MACzBf,KAAK;MACLR;IACF,CAAC;IAEDR,WAAW,CAACgC,IAAI,CAACrB,QAAQ,CAAC;IAC1BR,YAAY,CAAC,CAAC;EAChB,CAAC,CAAC;AACJ;AAEA,OAAO,MAAM8B,gBAAgB,GAAG;EAC9BP;AACF,CAAC","ignoreList":[]}
|
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import React, { useMemo, useState } from "react";
|
|
4
|
+
import { useComponentConfig } from "../../../themes/provider.js";
|
|
5
|
+
import { mergeStyles } from "../../../utils/calculate-styles.js";
|
|
4
6
|
import { AlertDialogContext } from "../context.js";
|
|
5
7
|
import { AlertDialogVariants } from "../variants/index.js";
|
|
6
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
9
|
export function AlertDialogRoot(props) {
|
|
8
|
-
const variantStyles = AlertDialogVariants[props.variant || "default"]();
|
|
9
10
|
const {
|
|
10
11
|
children
|
|
11
12
|
} = props;
|
|
13
|
+
const variantStyles = AlertDialogVariants[props.variant || "default"]();
|
|
14
|
+
const componentConfig = useComponentConfig("alertDialog");
|
|
12
15
|
const [isOpen, setIsOpen] = useState(false);
|
|
16
|
+
const mergedStyles = mergeStyles(variantStyles, componentConfig?.styles);
|
|
13
17
|
const contextValue = useMemo(() => ({
|
|
14
18
|
isOpen,
|
|
15
19
|
setIsOpen,
|
|
16
|
-
styles:
|
|
17
|
-
}), [isOpen,
|
|
20
|
+
styles: mergedStyles
|
|
21
|
+
}), [isOpen, mergedStyles]);
|
|
18
22
|
return /*#__PURE__*/_jsx(AlertDialogContext.Provider, {
|
|
19
23
|
value: contextValue,
|
|
20
24
|
children: children
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useMemo","useState","AlertDialogContext","AlertDialogVariants","jsx","_jsx","AlertDialogRoot","props","variantStyles","variant","
|
|
1
|
+
{"version":3,"names":["React","useMemo","useState","useComponentConfig","mergeStyles","AlertDialogContext","AlertDialogVariants","jsx","_jsx","AlertDialogRoot","props","children","variantStyles","variant","componentConfig","isOpen","setIsOpen","mergedStyles","styles","contextValue","Provider","value"],"sourceRoot":"../../../../../src","sources":["components/alert-dialog/components/alert-dialog-root.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AAChD,SAASC,kBAAkB,QAAQ,6BAA0B;AAC7D,SAASC,WAAW,QAAQ,oCAAiC;AAC7D,SAASC,kBAAkB,QAAsC,eAAY;AAC7E,SAASC,mBAAmB,QAAQ,sBAAa;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAOlD,OAAO,SAASC,eAAeA,CAACC,KAA2B,EAAE;EAC3D,MAAM;IAAEC;EAAS,CAAC,GAAGD,KAAK;EAC1B,MAAME,aAAa,GAAGN,mBAAmB,CAACI,KAAK,CAACG,OAAO,IAAI,SAAS,CAAC,CAAC,CAAC;EACvE,MAAMC,eAAe,GAAGX,kBAAkB,CAAC,aAAa,CAAC;EACzD,MAAM,CAACY,MAAM,EAAEC,SAAS,CAAC,GAAGd,QAAQ,CAAC,KAAK,CAAC;EAE3C,MAAMe,YAAY,GAAGb,WAAW,CAACQ,aAAa,EAAEE,eAAe,EAAEI,MAAM,CAAC;EAExE,MAAMC,YAAqC,GAAGlB,OAAO,CACnD,OAAO;IACLc,MAAM;IACNC,SAAS;IACTE,MAAM,EAAED;EACV,CAAC,CAAC,EACF,CAACF,MAAM,EAAEE,YAAY,CACvB,CAAC;EAED,oBAAOT,IAAA,CAACH,kBAAkB,CAACe,QAAQ;IAACC,KAAK,EAAEF,YAAa;IAAAR,QAAA,EAAEA;EAAQ,CAA8B,CAAC;AACnG","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Image","useAvatar","jsx","_jsx","AvatarImage","props","avatar","composedStyles","styles","image","style","onLoad","setImageLoaded","onError"],"sourceRoot":"../../../../../src","sources":["components/avatar/components/avatar-image.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,
|
|
1
|
+
{"version":3,"names":["React","Image","useAvatar","jsx","_jsx","AvatarImage","props","avatar","composedStyles","styles","image","style","onLoad","setImageLoaded","onError"],"sourceRoot":"../../../../../src","sources":["components/avatar/components/avatar-image.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,QAA2D,cAAc;AACvF,SAASC,SAAS,QAAQ,eAAY;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAOvC,OAAO,SAASC,WAAWA,CAACC,KAAuB,EAAE;EACnD,MAAMC,MAAM,GAAGL,SAAS,CAAC,CAAC;EAC1B,MAAMM,cAAc,GAAG,CAACD,MAAM,CAACE,MAAM,EAAEC,KAAK,EAAEJ,KAAK,CAACK,KAAK,CAAC;EAE1D,oBACEP,IAAA,CAACH,KAAK;IAAA,GACAK,KAAK;IACTK,KAAK,EAAEH,cAAe;IACtBI,MAAM,EAAEA,CAAA,KAAML,MAAM,CAACM,cAAc,CAAC,IAAI,CAAE;IAC1CC,OAAO,EAAEA,CAAA,KAAMP,MAAM,CAACM,cAAc,CAAC,KAAK;EAAE,CAC7C,CAAC;AAEN","ignoreList":[]}
|
|
@@ -2,18 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
import React, { useMemo, useState } from "react";
|
|
4
4
|
import { View } from "react-native";
|
|
5
|
+
import { useComponentConfig } from "../../../themes/provider.js";
|
|
6
|
+
import { mergeStyles } from "../../../utils/calculate-styles.js";
|
|
5
7
|
import { AvatarContext } from "../context.js";
|
|
6
8
|
import { AvatarVariants } from "../variants/index.js";
|
|
7
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
10
|
export function AvatarRoot(props) {
|
|
9
11
|
const variantStyles = AvatarVariants[props.variant || "default"]();
|
|
10
|
-
const
|
|
12
|
+
const componentConfig = useComponentConfig("avatar");
|
|
13
|
+
const mergedStyles = mergeStyles(variantStyles, componentConfig?.styles);
|
|
14
|
+
const composedStyles = [mergedStyles.root, props.style];
|
|
11
15
|
const [imageLoaded, setImageLoaded] = useState(false);
|
|
12
16
|
const contextValue = useMemo(() => ({
|
|
13
|
-
styles:
|
|
17
|
+
styles: mergedStyles,
|
|
14
18
|
imageLoaded,
|
|
15
19
|
setImageLoaded
|
|
16
|
-
}), [
|
|
20
|
+
}), [mergedStyles, imageLoaded]);
|
|
17
21
|
const Component = props.render ?? View;
|
|
18
22
|
return /*#__PURE__*/_jsx(AvatarContext.Provider, {
|
|
19
23
|
value: contextValue,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useMemo","useState","View","AvatarContext","AvatarVariants","jsx","_jsx","AvatarRoot","props","variantStyles","variant","composedStyles","root","style","imageLoaded","setImageLoaded","contextValue","
|
|
1
|
+
{"version":3,"names":["React","useMemo","useState","View","useComponentConfig","mergeStyles","AvatarContext","AvatarVariants","jsx","_jsx","AvatarRoot","props","variantStyles","variant","componentConfig","mergedStyles","styles","composedStyles","root","style","imageLoaded","setImageLoaded","contextValue","Component","render","Provider","value","children"],"sourceRoot":"../../../../../src","sources":["components/avatar/components/avatar-root.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AAChD,SAAyBC,IAAI,QAAwB,cAAc;AACnE,SAASC,kBAAkB,QAAQ,6BAA0B;AAC7D,SAASC,WAAW,QAAQ,oCAAiC;AAC7D,SAASC,aAAa,QAAQ,eAAY;AAC1C,SAASC,cAAc,QAAQ,sBAAa;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAS7C,OAAO,SAASC,UAAUA,CAACC,KAAsB,EAAE;EACjD,MAAMC,aAAa,GAAGL,cAAc,CAACI,KAAK,CAACE,OAAO,IAAI,SAAS,CAAC,CAAC,CAAC;EAClE,MAAMC,eAAe,GAAGV,kBAAkB,CAAC,QAAQ,CAAC;EAEpD,MAAMW,YAAY,GAAGV,WAAW,CAACO,aAAa,EAAEE,eAAe,EAAEE,MAAM,CAAC;EACxE,MAAMC,cAAc,GAAG,CAACF,YAAY,CAACG,IAAI,EAAEP,KAAK,CAACQ,KAAK,CAAC;EAEvD,MAAM,CAACC,WAAW,EAAEC,cAAc,CAAC,GAAGnB,QAAQ,CAAC,KAAK,CAAC;EAErD,MAAMoB,YAA2B,GAAGrB,OAAO,CACzC,OAAO;IACLe,MAAM,EAAED,YAAY;IACpBK,WAAW;IACXC;EACF,CAAC,CAAC,EACF,CAACN,YAAY,EAAEK,WAAW,CAC5B,CAAC;EAED,MAAMG,SAAS,GAAGZ,KAAK,CAACa,MAAM,IAAIrB,IAAI;EACtC,oBACEM,IAAA,CAACH,aAAa,CAACmB,QAAQ;IAACC,KAAK,EAAEJ,YAAa;IAAAK,QAAA,eAC1ClB,IAAA,CAACc,SAAS;MAAA,GAAKZ,KAAK;MAAEQ,KAAK,EAAEF;IAAe,CAAE;EAAC,CACzB,CAAC;AAE7B","ignoreList":[]}
|
|
@@ -3,22 +3,29 @@
|
|
|
3
3
|
import React from "react";
|
|
4
4
|
import { StyleSheet, View } from "react-native";
|
|
5
5
|
import { useOrganizedChildren } from "../../hooks/use-organized-children.js";
|
|
6
|
+
import { useComponentConfig } from "../../themes/provider.js";
|
|
7
|
+
import { mergeStyles } from "../../utils/calculate-styles.js";
|
|
6
8
|
import { BadgeContext } from "./context.js";
|
|
7
9
|
import { BadgeVariants } from "./variants/index.js";
|
|
8
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
11
|
export function Badge(props) {
|
|
10
12
|
const variantStyles = BadgeVariants[props.variant || "default"]();
|
|
13
|
+
const componentConfig = useComponentConfig("badge");
|
|
11
14
|
const customStyle = props.color ? {
|
|
12
15
|
backgroundColor: props.color
|
|
13
16
|
} : undefined;
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
+
const mergedStyles = mergeStyles(variantStyles, componentConfig?.styles);
|
|
18
|
+
const composedStyle = StyleSheet.flatten([mergedStyles.root, props.style]);
|
|
19
|
+
const textStyle = StyleSheet.flatten([mergedStyles.text, props.style]);
|
|
20
|
+
const iconStyle = {
|
|
21
|
+
...mergedStyles.icon,
|
|
22
|
+
...props.style
|
|
23
|
+
};
|
|
17
24
|
const organizedChildren = useOrganizedChildren(props.children, textStyle, iconStyle);
|
|
18
25
|
const Component = props.render ?? View;
|
|
19
26
|
return /*#__PURE__*/_jsx(BadgeContext.Provider, {
|
|
20
27
|
value: {
|
|
21
|
-
styles:
|
|
28
|
+
styles: mergedStyles
|
|
22
29
|
},
|
|
23
30
|
children: /*#__PURE__*/_jsx(Component, {
|
|
24
31
|
...props,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","View","useOrganizedChildren","BadgeContext","BadgeVariants","jsx","_jsx","Badge","props","variantStyles","variant","customStyle","color","backgroundColor","undefined","composedStyle","flatten","root","style","textStyle","text","iconStyle","icon","organizedChildren","children","Component","render","Provider","value"
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","View","useOrganizedChildren","useComponentConfig","mergeStyles","BadgeContext","BadgeVariants","jsx","_jsx","Badge","props","variantStyles","variant","componentConfig","customStyle","color","backgroundColor","undefined","mergedStyles","styles","composedStyle","flatten","root","style","textStyle","text","iconStyle","icon","organizedChildren","children","Component","render","Provider","value"],"sourceRoot":"../../../../src","sources":["components/badge/badge.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAAyBC,UAAU,EAAEC,IAAI,QAAwB,cAAc;AAC/E,SAASC,oBAAoB,QAAQ,uCAAoC;AACzE,SAASC,kBAAkB,QAAQ,0BAAuB;AAC1D,SAASC,WAAW,QAAQ,iCAA8B;AAC1D,SAASC,YAAY,QAAQ,cAAW;AACxC,SAASC,aAAa,QAAQ,qBAAY;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAY3C,OAAO,SAASC,KAAKA,CAACC,KAAiB,EAAE;EACvC,MAAMC,aAAa,GAAGL,aAAa,CAACI,KAAK,CAACE,OAAO,IAAI,SAAS,CAAC,CAAC,CAAC;EACjE,MAAMC,eAAe,GAAGV,kBAAkB,CAAC,OAAO,CAAC;EAEnD,MAAMW,WAAW,GAAGJ,KAAK,CAACK,KAAK,GAAG;IAAEC,eAAe,EAAEN,KAAK,CAACK;EAAM,CAAC,GAAGE,SAAS;EAE9E,MAAMC,YAAY,GAAGd,WAAW,CAACO,aAAa,EAAEE,eAAe,EAAEM,MAAM,CAAC;EACxE,MAAMC,aAAa,GAAGpB,UAAU,CAACqB,OAAO,CAAC,CAACH,YAAY,CAACI,IAAI,EAAEZ,KAAK,CAACa,KAAK,CAAC,CAAC;EAE1E,MAAMC,SAAS,GAAGxB,UAAU,CAACqB,OAAO,CAAC,CAACH,YAAY,CAACO,IAAI,EAAEf,KAAK,CAACa,KAAK,CAAC,CAAC;EACtE,MAAMG,SAAS,GAAG;IAAE,GAAGR,YAAY,CAACS,IAAI;IAAE,GAAGjB,KAAK,CAACa;EAAM,CAAC;EAC1D,MAAMK,iBAAiB,GAAG1B,oBAAoB,CAACQ,KAAK,CAACmB,QAAQ,EAAEL,SAAS,EAAEE,SAAS,CAAC;EAEpF,MAAMI,SAAS,GAAGpB,KAAK,CAACqB,MAAM,IAAI9B,IAAI;EACtC,oBACEO,IAAA,CAACH,YAAY,CAAC2B,QAAQ;IACpBC,KAAK,EAAE;MACLd,MAAM,EAAED;IACV,CAAE;IAAAW,QAAA,eAEFrB,IAAA,CAACsB,SAAS;MAAA,GAAKpB,KAAK;MAAEa,KAAK,EAAE,CAACH,aAAa,EAAEN,WAAW,CAAE;MAAAe,QAAA,EACvDD;IAAiB,CACT;EAAC,CACS,CAAC;AAE5B","ignoreList":[]}
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
import React, { useState } from "react";
|
|
4
4
|
import { ActivityIndicator, Pressable, StyleSheet } from "react-native";
|
|
5
5
|
import { useOrganizedChildren } from "../../hooks/use-organized-children.js";
|
|
6
|
+
import { useComponentConfig } from "../../themes/provider.js";
|
|
7
|
+
import { mergeStyles } from "../../utils/calculate-styles.js";
|
|
6
8
|
import { ButtonVariants } from "./variants/index.js";
|
|
7
9
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
10
|
const calculateState = (props, isHovered) => {
|
|
@@ -13,10 +15,12 @@ const calculateState = (props, isHovered) => {
|
|
|
13
15
|
};
|
|
14
16
|
export function Button(props) {
|
|
15
17
|
const variantStyles = ButtonVariants[props.variant ?? "default"]();
|
|
18
|
+
const componentConfig = useComponentConfig("button");
|
|
16
19
|
const [isHovered, setIsHovered] = useState(false);
|
|
17
20
|
const state = calculateState(props, isHovered);
|
|
18
|
-
const
|
|
19
|
-
const
|
|
21
|
+
const mergedStyles = mergeStyles(variantStyles, componentConfig?.styles);
|
|
22
|
+
const textStyle = StyleSheet.flatten([mergedStyles.text?.default, mergedStyles.text?.[state]]);
|
|
23
|
+
const iconProps = StyleSheet.flatten([mergedStyles.icon?.default, mergedStyles.icon?.[state]]);
|
|
20
24
|
const organizedChildren = useOrganizedChildren(props.children, textStyle, iconProps);
|
|
21
25
|
const handlePress = event => {
|
|
22
26
|
if (props.isDisabled || props.isLoading) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useState","ActivityIndicator","Pressable","StyleSheet","useOrganizedChildren","ButtonVariants","jsx","_jsx","jsxs","_jsxs","calculateState","props","isHovered","isDisabled","isLoading","Button","variantStyles","variant","setIsHovered","state","textStyle","flatten","text","default","iconProps","icon","organizedChildren","children","handlePress","event","preventDefault","onPress","spinnerProps","spinner","onHoverIn","onHoverOut","disabled","style","root"],"sourceRoot":"../../../../src","sources":["components/button/button.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SACEC,iBAAiB,EACjBC,SAAS,EAGTC,UAAU,QAEL,cAAc;AACrB,SAASC,oBAAoB,QAAQ,uCAAoC;
|
|
1
|
+
{"version":3,"names":["React","useState","ActivityIndicator","Pressable","StyleSheet","useOrganizedChildren","useComponentConfig","mergeStyles","ButtonVariants","jsx","_jsx","jsxs","_jsxs","calculateState","props","isHovered","isDisabled","isLoading","Button","variantStyles","variant","componentConfig","setIsHovered","state","mergedStyles","styles","textStyle","flatten","text","default","iconProps","icon","organizedChildren","children","handlePress","event","preventDefault","onPress","spinnerProps","spinner","onHoverIn","onHoverOut","disabled","style","root"],"sourceRoot":"../../../../src","sources":["components/button/button.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,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AAK,CAACmB,QAAQ,EAAEP,SAAS,EAAEI,SAAS,CAAC;EAEpF,MAAMI,WAAsC,GAAIC,KAAK,IAAK;IACxD,IAAIrB,KAAK,CAACE,UAAU,IAAIF,KAAK,CAACG,SAAS,EAAE;MACvCkB,KAAK,CAACC,cAAc,CAAC,CAAC;MACtB;IACF;IACAtB,KAAK,CAACuB,OAAO,GAAGF,KAAK,CAAC;EACxB,CAAC;EAED,MAAMG,YAAY,GAAG;IACnB,GAAGnB,aAAa,CAACoB,OAAO,GAAGhB,KAAK,CAAC;IACjC,GAAGJ,aAAa,CAACoB,OAAO,EAAEV;EAC5B,CAAC;EAED,oBACEjB,KAAA,CAACT,SAAS;IAAA,GACJW,KAAK;IACTuB,OAAO,EAAEH,WAAY;IACrBM,SAAS,EAAEA,CAAA,KAAMlB,YAAY,CAAC,IAAI,CAAE;IACpCmB,UAAU,EAAEA,CAAA,KAAMnB,YAAY,CAAC,KAAK,CAAE;IACtCoB,QAAQ,EAAE5B,KAAK,CAACE,UAAW;IAC3B2B,KAAK,EAAE,CAACxB,aAAa,CAACyB,IAAI,EAAEf,OAAO,EAAEV,aAAa,CAACyB,IAAI,GAAGrB,KAAK,CAAC,EAAET,KAAK,CAAC6B,KAAK,CAAE;IAAAV,QAAA,GAE9ED,iBAAiB,EACjBlB,KAAK,CAACG,SAAS,iBAAIP,IAAA,CAACR,iBAAiB;MAAA,GAAKoC;IAAY,CAAG,CAAC;EAAA,CAClD,CAAC;AAEhB","ignoreList":[]}
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
import React, { useCallback, useMemo, useState } from "react";
|
|
4
4
|
import { View } from "react-native";
|
|
5
|
+
import { useComponentConfig } from "../../../themes/provider.js";
|
|
6
|
+
import { mergeStyles } from "../../../utils/calculate-styles.js";
|
|
5
7
|
import { addMonths, subMonths } from "../../../utils/date-utils.js";
|
|
6
8
|
import { CalendarContext } from "../shared/calendar-context.js";
|
|
7
9
|
import { CalendarVariants } from "./variants/index.js";
|
|
@@ -18,6 +20,8 @@ export function CalendarRoot(props) {
|
|
|
18
20
|
style
|
|
19
21
|
} = props;
|
|
20
22
|
const variantStyles = CalendarVariants[props.variant || "default"]();
|
|
23
|
+
const componentConfig = useComponentConfig("calendar");
|
|
24
|
+
const mergedStyles = mergeStyles(variantStyles, componentConfig?.styles);
|
|
21
25
|
const [currentMonth, setCurrentMonth] = useState(defaultMonth);
|
|
22
26
|
const goToPrev = useCallback(() => {
|
|
23
27
|
setCurrentMonth(prev => subMonths(prev, 1));
|
|
@@ -33,7 +37,7 @@ export function CalendarRoot(props) {
|
|
|
33
37
|
if (!maxDate) return false;
|
|
34
38
|
return addMonths(currentMonth, 1) > maxDate;
|
|
35
39
|
}, [currentMonth, maxDate]);
|
|
36
|
-
const containerStyle = [
|
|
40
|
+
const containerStyle = [mergedStyles.root, style];
|
|
37
41
|
return /*#__PURE__*/_jsx(CalendarContext.Provider, {
|
|
38
42
|
value: {
|
|
39
43
|
value,
|
|
@@ -43,7 +47,7 @@ export function CalendarRoot(props) {
|
|
|
43
47
|
goToNext,
|
|
44
48
|
isPrevDisabled,
|
|
45
49
|
isNextDisabled,
|
|
46
|
-
styles:
|
|
50
|
+
styles: mergedStyles,
|
|
47
51
|
minDate,
|
|
48
52
|
maxDate,
|
|
49
53
|
markedDates
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useCallback","useMemo","useState","View","addMonths","subMonths","CalendarContext","CalendarVariants","jsx","_jsx","CalendarRoot","props","children","value","onChange","defaultMonth","Date","minDate","maxDate","markedDates","style","variantStyles","variant","currentMonth","setCurrentMonth","goToPrev","prev","goToNext","isPrevDisabled","isNextDisabled","containerStyle","root","Provider"
|
|
1
|
+
{"version":3,"names":["React","useCallback","useMemo","useState","View","useComponentConfig","mergeStyles","addMonths","subMonths","CalendarContext","CalendarVariants","jsx","_jsx","CalendarRoot","props","children","value","onChange","defaultMonth","Date","minDate","maxDate","markedDates","style","variantStyles","variant","componentConfig","mergedStyles","styles","currentMonth","setCurrentMonth","goToPrev","prev","goToNext","isPrevDisabled","isNextDisabled","containerStyle","root","Provider"],"sourceRoot":"../../../../../src","sources":["components/calendar/calendar/calendar-root.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AAC7D,SAASC,IAAI,QAAwC,cAAc;AACnE,SAASC,kBAAkB,QAAQ,6BAA0B;AAC7D,SAASC,WAAW,QAAQ,oCAAiC;AAC7D,SAASC,SAAS,EAAEC,SAAS,QAAQ,8BAA2B;AAChE,SAASC,eAAe,QAAQ,+BAA4B;AAC5D,SAASC,gBAAgB,QAAQ,qBAAY;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAc9C,OAAO,SAASC,YAAYA,CAACC,KAAwB,EAAE;EACrD,MAAM;IACJC,QAAQ;IACRC,KAAK;IACLC,QAAQ;IACRC,YAAY,GAAG,IAAIC,IAAI,CAAC,CAAC;IACzBC,OAAO;IACPC,OAAO;IACPC,WAAW;IACXC;EACF,CAAC,GAAGT,KAAK;EACT,MAAMU,aAAa,GAAGd,gBAAgB,CAACI,KAAK,CAACW,OAAO,IAAI,SAAS,CAAC,CAAC,CAAC;EACpE,MAAMC,eAAe,GAAGrB,kBAAkB,CAAC,UAAU,CAAC;EACtD,MAAMsB,YAAY,GAAGrB,WAAW,CAACkB,aAAa,EAAEE,eAAe,EAAEE,MAAM,CAAC;EAExE,MAAM,CAACC,YAAY,EAAEC,eAAe,CAAC,GAAG3B,QAAQ,CAAOe,YAAY,CAAC;EAEpE,MAAMa,QAAQ,GAAG9B,WAAW,CAAC,MAAM;IACjC6B,eAAe,CAAEE,IAAI,IAAKxB,SAAS,CAACwB,IAAI,EAAE,CAAC,CAAC,CAAC;EAC/C,CAAC,EAAE,EAAE,CAAC;EAEN,MAAMC,QAAQ,GAAGhC,WAAW,CAAC,MAAM;IACjC6B,eAAe,CAAEE,IAAI,IAAKzB,SAAS,CAACyB,IAAI,EAAE,CAAC,CAAC,CAAC;EAC/C,CAAC,EAAE,EAAE,CAAC;EAEN,MAAME,cAAc,GAAGhC,OAAO,CAAC,MAAM;IACnC,IAAI,CAACkB,OAAO,EAAE,OAAO,KAAK;IAC1B,OAAOZ,SAAS,CAACqB,YAAY,EAAE,CAAC,CAAC,GAAGT,OAAO;EAC7C,CAAC,EAAE,CAACS,YAAY,EAAET,OAAO,CAAC,CAAC;EAE3B,MAAMe,cAAc,GAAGjC,OAAO,CAAC,MAAM;IACnC,IAAI,CAACmB,OAAO,EAAE,OAAO,KAAK;IAC1B,OAAOd,SAAS,CAACsB,YAAY,EAAE,CAAC,CAAC,GAAGR,OAAO;EAC7C,CAAC,EAAE,CAACQ,YAAY,EAAER,OAAO,CAAC,CAAC;EAE3B,MAAMe,cAAc,GAAG,CAACT,YAAY,CAACU,IAAI,EAAEd,KAAK,CAAC;EAEjD,oBACEX,IAAA,CAACH,eAAe,CAAC6B,QAAQ;IACvBtB,KAAK,EAAE;MACLA,KAAK;MACLC,QAAQ;MACRY,YAAY;MACZE,QAAQ;MACRE,QAAQ;MACRC,cAAc;MACdC,cAAc;MACdP,MAAM,EAAED,YAAY;MACpBP,OAAO;MACPC,OAAO;MACPC;IACF,CAAE;IAAAP,QAAA,eAEFH,IAAA,CAACR,IAAI;MAACmB,KAAK,EAAEa,cAAe;MAAArB,QAAA,EAAEA;IAAQ,CAAO;EAAC,CACtB,CAAC;AAE/B","ignoreList":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import React from "react";
|
|
4
|
-
import { View } from "react-native";
|
|
4
|
+
import { StyleSheet, View } from "react-native";
|
|
5
5
|
import { getWeekDays, getWeeksInMonth } from "../../../utils/date-utils.js";
|
|
6
6
|
import { useCalendarContext } from "../shared/calendar-context.js";
|
|
7
7
|
import { CalendarDay } from "../shared/calendar-day.js";
|
|
@@ -11,20 +11,17 @@ function CalendarWeek(props) {
|
|
|
11
11
|
style,
|
|
12
12
|
...viewProps
|
|
13
13
|
} = props;
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
const calStyles = styles;
|
|
19
|
-
const days = getWeekDays(currentMonth.getMonth(), currentMonth.getFullYear(), props.index);
|
|
20
|
-
const composedStyle = [calStyles?.week, style];
|
|
14
|
+
const calendar = useCalendarContext();
|
|
15
|
+
const calendarStyles = calendar.styles;
|
|
16
|
+
const days = getWeekDays(calendar.currentMonth.getMonth(), calendar.currentMonth.getFullYear(), props.index);
|
|
17
|
+
const composedStyle = StyleSheet.flatten([calendarStyles?.week, style]);
|
|
21
18
|
return /*#__PURE__*/_jsx(View, {
|
|
22
19
|
...viewProps,
|
|
23
20
|
style: composedStyle,
|
|
24
21
|
children: days.map((day, index) => {
|
|
25
22
|
if (!day) {
|
|
26
23
|
return /*#__PURE__*/_jsx(View, {
|
|
27
|
-
style:
|
|
24
|
+
style: calendarStyles?.dayButton?.default
|
|
28
25
|
}, index);
|
|
29
26
|
}
|
|
30
27
|
return /*#__PURE__*/_jsx(CalendarDay, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","getWeekDays","getWeeksInMonth","useCalendarContext","CalendarDay","jsx","_jsx","CalendarWeek","props","style","viewProps","
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","View","getWeekDays","getWeeksInMonth","useCalendarContext","CalendarDay","jsx","_jsx","CalendarWeek","props","style","viewProps","calendar","calendarStyles","styles","days","currentMonth","getMonth","getFullYear","index","composedStyle","flatten","week","children","map","day","dayButton","default","date","CalendarWeeks","calStyles","weeks","Array","from","length","_"],"sourceRoot":"../../../../../src","sources":["components/calendar/calendar/calendar-weeks.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,QAAwD,cAAc;AAC/F,SAASC,WAAW,EAAEC,eAAe,QAAQ,8BAA2B;AACxE,SAASC,kBAAkB,QAA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,CAACC,KAAK,CAAC;EAErD,oBACEH,IAAA,CAACN,IAAI;IAACS,KAAK,EAAEU,aAAc;IAAAG,QAAA,EACxBS,KAAK,CAACC,IAAI,CAAC;MAAEC,MAAM,EAAEH;IAAM,CAAC,CAAC,CAACP,GAAG,CAAC,CAACW,CAAC,EAAEhB,KAAK,KAAK;MAC/C,oBAAOZ,IAAA,CAACC,YAAY;QAAaW,KAAK,EAAEA;MAAM,GAApBA,KAAsB,CAAC;IACnD,CAAC;EAAC,CACE,CAAC;AAEX","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","CalendarContext","createContext","undefined","useCalendarContext","context","useContext","Error"],"sourceRoot":"../../../../../src","sources":["components/calendar/shared/calendar-context.ts"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AAsBzB,OAAO,MAAMC,eAAe,gBAAGD,KAAK,CAACE,aAAa,
|
|
1
|
+
{"version":3,"names":["React","CalendarContext","createContext","undefined","useCalendarContext","context","useContext","Error"],"sourceRoot":"../../../../../src","sources":["components/calendar/shared/calendar-context.ts"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AAsBzB,OAAO,MAAMC,eAAe,gBAAGD,KAAK,CAACE,aAAa,CAAmCC,SAAS,CAAC;AAE/F,OAAO,MAAMC,kBAAkB,GAAGA,CAAA,KAAM;EACtC,MAAMC,OAAO,GAAGL,KAAK,CAACM,UAAU,CAACL,eAAe,CAAC;EACjD,IAAI,CAACI,OAAO,EAAE;IACZ,MAAM,IAAIE,KAAK,CAAC,yEAAyE,CAAC;EAC5F;EACA,OAAOF,OAAO;AAChB,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useMemo","useState","Pressable","Text","View","formatDate","isDateAfter","isDateBefore","isDateSameDay","isDateToday","useCalendarContext","jsx","_jsx","jsxs","_jsxs","calculateState","date","selected","isDisabled","isHovered","CalendarDay","props","calendar","setIsHovered","minDate","maxDate","isMarked","markedDates","some","d","state","value","handlePress","onChange","composedStyle","styles","dayButton","default","style","composedTextStyle","dayText","textStyle","onPress","onHoverIn","onHoverOut","disabled","children","dayMarker"],"sourceRoot":"../../../../../src","sources":["components/calendar/shared/calendar-day.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AAChD,SACEC,SAAS,EACTC,IAAI,EACJC,IAAI,QAIC,cAAc;AACrB,SACEC,UAAU,EACVC,WAAW,EACXC,YAAY,EACZC,aAAa,EACbC,WAAW,QACN,8BAA2B;AAClC,SAASC,kBAAkB,QAAQ,uBAAoB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAWxD,MAAMC,cAAc,GAAGA,CACrBC,IAAU,EACVC,QAAiC,EACjCC,UAAmB,EACnBC,SAAkB,KACG;EACrB,IAAID,UAAU,EAAE,OAAO,UAAU;EACjC,IAAID,QAAQ,IAAIT,aAAa,CAACQ,IAAI,EAAEC,QAAQ,CAAC,EAAE,OAAO,UAAU;EAChE,IAAIR,WAAW,CAACO,IAAI,CAAC,EAAE,OAAO,OAAO;EACrC,IAAIG,SAAS,EAAE,OAAO,SAAS;EAC/B,OAAO,SAAS;AAClB,CAAC;AAED,OAAO,SAASC,WAAWA,CAACC,KAAuB,EAAE;EACnD,MAAMC,QAAQ,GAAGZ,kBAAkB,CAAC,CAAC;EACrC,MAAM,CAACS,SAAS,EAAEI,YAAY,CAAC,GAAGtB,QAAQ,CAAC,KAAK,CAAC;EAEjD,MAAMiB,UAAU,GAAGlB,OAAO,CAAC,MAAM;IAC/B,IAAIsB,QAAQ,CAACE,OAAO,IAAIjB,YAAY,CAACc,KAAK,CAACL,IAAI,EAAEM,QAAQ,CAACE,OAAO,CAAC,
|
|
1
|
+
{"version":3,"names":["React","useMemo","useState","Pressable","Text","View","formatDate","isDateAfter","isDateBefore","isDateSameDay","isDateToday","useCalendarContext","jsx","_jsx","jsxs","_jsxs","calculateState","date","selected","isDisabled","isHovered","CalendarDay","props","calendar","setIsHovered","minDate","maxDate","isMarked","markedDates","some","d","state","value","handlePress","onChange","composedStyle","styles","dayButton","default","style","composedTextStyle","dayText","textStyle","onPress","onHoverIn","onHoverOut","disabled","children","dayMarker"],"sourceRoot":"../../../../../src","sources":["components/calendar/shared/calendar-day.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AAChD,SACEC,SAAS,EACTC,IAAI,EACJC,IAAI,QAIC,cAAc;AACrB,SACEC,UAAU,EACVC,WAAW,EACXC,YAAY,EACZC,aAAa,EACbC,WAAW,QACN,8BAA2B;AAClC,SAASC,kBAAkB,QAAQ,uBAAoB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAWxD,MAAMC,cAAc,GAAGA,CACrBC,IAAU,EACVC,QAAiC,EACjCC,UAAmB,EACnBC,SAAkB,KACG;EACrB,IAAID,UAAU,EAAE,OAAO,UAAU;EACjC,IAAID,QAAQ,IAAIT,aAAa,CAACQ,IAAI,EAAEC,QAAQ,CAAC,EAAE,OAAO,UAAU;EAChE,IAAIR,WAAW,CAACO,IAAI,CAAC,EAAE,OAAO,OAAO;EACrC,IAAIG,SAAS,EAAE,OAAO,SAAS;EAC/B,OAAO,SAAS;AAClB,CAAC;AAED,OAAO,SAASC,WAAWA,CAACC,KAAuB,EAAE;EACnD,MAAMC,QAAQ,GAAGZ,kBAAkB,CAAC,CAAC;EACrC,MAAM,CAACS,SAAS,EAAEI,YAAY,CAAC,GAAGtB,QAAQ,CAAC,KAAK,CAAC;EAEjD,MAAMiB,UAAU,GAAGlB,OAAO,CAAC,MAAM;IAC/B,IAAIsB,QAAQ,CAACE,OAAO,IAAIjB,YAAY,CAACc,KAAK,CAACL,IAAI,EAAEM,QAAQ,CAACE,OAAO,CAAC,EAAE,OAAO,IAAI;IAC/E,IAAIF,QAAQ,CAACG,OAAO,I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AAY,QAAA,gBAErBlC,IAAA,CAACT,IAAI;MAACmC,KAAK,EAAEC,iBAAkB;MAAAO,QAAA,EAAEzC,UAAU,CAACgB,KAAK,CAACL,IAAI,EAAE,GAAG;IAAC,CAAO,CAAC,EACnEU,QAAQ,iBAAId,IAAA,CAACR,IAAI;MAACkC,KAAK,EAAEhB,QAAQ,CAACa,MAAM,EAAEY;IAAU,CAAE,CAAC;EAAA,CAC/C,CAAC;AAEhB","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","useCalendarContext","jsx","_jsx","CalendarHeader","props","children","style","viewProps","styles","headerStyle","header"],"sourceRoot":"../../../../../src","sources":["components/calendar/shared/calendar-header.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,
|
|
1
|
+
{"version":3,"names":["React","View","useCalendarContext","jsx","_jsx","CalendarHeader","props","children","style","viewProps","styles","headerStyle","header"],"sourceRoot":"../../../../../src","sources":["components/calendar/shared/calendar-header.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAwD,cAAc;AACnF,SAASC,kBAAkB,QAAQ,uBAAoB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAOxD,OAAO,SAASC,cAAcA,CAACC,KAA0B,EAAE;EACzD,MAAM;IAAEC,QAAQ;IAAEC,KAAK;IAAE,GAAGC;EAAU,CAAC,GAAGH,KAAK;EAC/C,MAAM;IAAEI;EAAO,CAAC,GAAGR,kBAAkB,CAAC,CAAC;EAEvC,MAAMS,WAAW,GAAG,CAACD,MAAM,EAAEE,MAAM,EAAEJ,KAAK,CAAC;EAE3C,oBACEJ,IAAA,CAACH,IAAI;IAAA,GAAKQ,SAAS;IAAED,KAAK,EAAEG,WAAY;IAAAJ,QAAA,EACrCA;EAAQ,CACL,CAAC;AAEX","ignoreList":[]}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import React, { useState } from "react";
|
|
4
4
|
import { Pressable, StyleSheet, Text, View } from "react-native";
|
|
5
|
-
import {
|
|
5
|
+
import { useComponentConfig } from "../../../themes/provider.js";
|
|
6
6
|
import { useCalendarContext } from "./calendar-context.js";
|
|
7
7
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
8
|
const calculateState = (isDisabled, isHovered) => {
|
|
@@ -21,9 +21,9 @@ export function CalendarNavButtons(props) {
|
|
|
21
21
|
isNextDisabled,
|
|
22
22
|
styles
|
|
23
23
|
} = useCalendarContext();
|
|
24
|
-
const config =
|
|
25
|
-
const PrevIcon = config?.
|
|
26
|
-
const NextIcon = config?.
|
|
24
|
+
const config = useComponentConfig("calendar");
|
|
25
|
+
const PrevIcon = config?.prevIcon;
|
|
26
|
+
const NextIcon = config?.nextIcon;
|
|
27
27
|
const [prevHovered, setPrevHovered] = useState(false);
|
|
28
28
|
const [nextHovered, setNextHovered] = useState(false);
|
|
29
29
|
const prevState = calculateState(isPrevDisabled, prevHovered);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useState","Pressable","StyleSheet","Text","View","
|
|
1
|
+
{"version":3,"names":["React","useState","Pressable","StyleSheet","Text","View","useComponentConfig","useCalendarContext","jsx","_jsx","jsxs","_jsxs","calculateState","isDisabled","isHovered","CalendarNavButtons","props","style","goToPrev","goToNext","isPrevDisabled","isNextDisabled","styles","config","PrevIcon","prevIcon","NextIcon","nextIcon","prevHovered","setPrevHovered","nextHovered","setNextHovered","prevState","nextState","prevIconProps","flatten","navButtonIcon","default","nextIconProps","composedStyle","navButtons","children","onPress","onHoverIn","onHoverOut","disabled","navButton"],"sourceRoot":"../../../../../src","sources":["components/calendar/shared/calendar-nav-buttons.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SAASC,SAAS,EAAEC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAwC,cAAc;AAChG,SAASC,kBAAkB,QAAQ,6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@
|
|
|
1
|
-
{"version":3,"names":["React","Text","formatDate","useCalendarContext","jsx","_jsx","CalendarTitle","props","children","style","formatStr","textProps","currentMonth","styles","titleStyle","headerTitle"],"sourceRoot":"../../../../../src","sources":["components/calendar/shared/calendar-title.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,
|
|
1
|
+
{"version":3,"names":["React","Text","formatDate","useCalendarContext","jsx","_jsx","CalendarTitle","props","children","style","formatStr","textProps","currentMonth","styles","titleStyle","headerTitle"],"sourceRoot":"../../../../../src","sources":["components/calendar/shared/calendar-title.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAwD,cAAc;AACnF,SAASC,UAAU,QAAQ,8BAA2B;AACtD,SAASC,kBAAkB,QAAQ,uBAAoB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAQxD,OAAO,SAASC,aAAaA,CAACC,KAAyB,EAAE;EACvD,MAAM;IAAEC,QAAQ;IAAEC,KAAK;IAAEC,SAAS,GAAG,WAAW;IAAE,GAAGC;EAAU,CAAC,GAAGJ,KAAK;EACxE,MAAM;IAAEK,YAAY;IAAEC;EAAO,CAAC,GAAGV,kBAAkB,CAAC,CAAC;EAErD,MAAMW,UAAU,GAAG,CAACD,MAAM,EAAEE,WAAW,EAAEN,KAAK,CAAC;EAE/C,oBACEJ,IAAA,CAACJ,IAAI;IAAA,GAAKU,SAAS;IAAEF,KAAK,EAAEK,UAAW;IAAAN,QAAA,EACpCA,QAAQ,IAAIN,UAAU,CAACU,YAAY,EAAEF,SAAS;EAAC,CAC5C,CAAC;AAEX","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Text","View","useCalendarContext","jsx","_jsx","CalendarWeekLabel","props","styles","composedStyle","weekLabel","style","numberOfLines","children","DEFAULT_WEEK_DAYS","CalendarWeekLabels","weekDays","weekLabels","map","day","index"],"sourceRoot":"../../../../../src","sources":["components/calendar/shared/calendar-week-labels.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,
|
|
1
|
+
{"version":3,"names":["React","Text","View","useCalendarContext","jsx","_jsx","CalendarWeekLabel","props","styles","composedStyle","weekLabel","style","numberOfLines","children","DEFAULT_WEEK_DAYS","CalendarWeekLabels","weekDays","weekLabels","map","day","index"],"sourceRoot":"../../../../../src","sources":["components/calendar/shared/calendar-week-labels.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,QAAwD,cAAc;AACzF,SAASC,kBAAkB,QAAQ,uBAAoB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAOxD,SAASC,iBAAiBA,CAACC,KAA6B,EAAE;EACxD,MAAM;IAAEC;EAAO,CAAC,GAAGL,kBAAkB,CAAC,CAAC;EAEvC,MAAMM,aAAa,GAAG,CAACD,MAAM,EAAEE,SAAS,EAAEH,KAAK,CAACI,KAAK,CAAC;EAEtD,oBACEN,IAAA,CAACJ,IAAI;IAACW,aAAa,EAAE,CAAE;IAACD,KAAK,EAAEF,aAAc;IAAAI,QAAA,EAC1CN,KAAK,CAACM;EAAQ,CACX,CAAC;AAEX;AAQA,MAAMC,iBAAiB,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC;AAEpE,OAAO,SAASC,kBAAkBA,CAACR,KAA8B,EAAE;EACjE,MAAM;IAAES,QAAQ,GAAGF,iBAAiB;IAAEH;EAAM,CAAC,GAAGJ,KAAK;EACrD,MAAM;IAAEC;EAAO,CAAC,GAAGL,kBAAkB,CAAC,CAAC;EAEvC,MAAMM,aAAa,GAAG,CAACD,MAAM,EAAES,UAAU,EAAEN,KAAK,CAAC;EAEjD,oBACEN,IAAA,CAACH,IAAI;IAACS,KAAK,EAAEF,aAAc;IAAAI,QAAA,EACxBG,QAAQ,CAACE,GAAG,CAAC,CAACC,GAAG,EAAEC,KAAK,kBACvBf,IAAA,CAACC,iBAAiB;MAAaK,KAAK,EAAEH,MAAM,EAAEE,SAAU;MAAAG,QAAA,EACrDM;IAAG,GADkBC,KAEL,CACpB;EAAC,CACE,CAAC;AAEX","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useMemo","ScrollView","Text","View","isDateSameDay","TimelineVariants","jsx","_jsx","jsxs","_jsxs","HOUR_HEIGHT","formatHour","hour","getMinutesFromStartOfDay","date","getHours","getMinutes","groupOverlappingEvents","events","getStart","getEnd","sorted","sort","a","b","getTime","groups","event","placed","eStart","eEnd","group","overlaps","some","g","gStart","gEnd","push","CalendarTimeline","props","startHour","endHour","keyExtractor","renderEvent","style","variantStyles","variant","hours","arr","i","allEvents","dayEvents","filter","eventGroups","now","Date","isToday","currentTimePosition","container","showsVerticalScrollIndicator","children","timeline","timeColumn","map","timeSlot","timeText","eventsColumn","hourLine","position","left","right","top","flexDirection","alignItems","zIndex","currentTimeDot","currentTimeLineBar","startMinutes","endMinutes","duration","height","indexInGroup","indexOf","totalInGroup","length","eventWidth","layout","Math","max","width"],"sourceRoot":"../../../../../src","sources":["components/calendar/timeline/calendar-timeline.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,OAAO,QAAQ,OAAO;AACtC,SAASC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAwC,cAAc;AACrF,SAASC,aAAa,QAAQ,8BAA2B;AACzD,SAASC,gBAAgB,QAAQ,qBAAY;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAE9C,MAAMC,WAAW,GAAG,EAAE;AAEtB,SAASC,UAAUA,CAACC,IAAY,EAAU;EACxC,IAAIA,IAAI,KAAK,CAAC,EAAE,OAAO,OAAO;EAC9B,IAAIA,IAAI,GAAG,EAAE,EAAE,OAAO,GAAGA,IAAI,KAAK;EAClC,IAAIA,IAAI,KAAK,EAAE,EAAE,OAAO,OAAO;EAC/B,OAAO,GAAGA,IAAI,GAAG,EAAE,KAAK;AAC1B;AAEA,SAASC,wBAAwBA,CAACC,IAAU,EAAU;EACpD,OAAOA,IAAI,CAACC,QAAQ,CAAC,CAAC,GAAG,EAAE,GAAGD,IAAI,CAACE,UAAU,CAAC,CAAC;AACjD;AAsBA,SAASC,sBAAsBA,CAC7BC,MAAW,EACXC,QAAwB,EACxBC,MAAsB,EACf;EACP,MAAMC,MAAM,GAAG,CAAC,GAAGH,MAAM,CAAC,CAACI,IAAI,
|
|
1
|
+
{"version":3,"names":["React","useMemo","ScrollView","Text","View","isDateSameDay","TimelineVariants","jsx","_jsx","jsxs","_jsxs","HOUR_HEIGHT","formatHour","hour","getMinutesFromStartOfDay","date","getHours","getMinutes","groupOverlappingEvents","events","getStart","getEnd","sorted","sort","a","b","getTime","groups","event","placed","eStart","eEnd","group","overlaps","some","g","gStart","gEnd","push","CalendarTimeline","props","startHour","endHour","keyExtractor","renderEvent","style","variantStyles","variant","hours","arr","i","allEvents","dayEvents","filter","eventGroups","now","Date","isToday","currentTimePosition","container","showsVerticalScrollIndicator","children","timeline","timeColumn","map","timeSlot","timeText","eventsColumn","hourLine","position","left","right","top","flexDirection","alignItems","zIndex","currentTimeDot","currentTimeLineBar","startMinutes","endMinutes","duration","height","indexInGroup","indexOf","totalInGroup","length","eventWidth","layout","Math","max","width"],"sourceRoot":"../../../../../src","sources":["components/calendar/timeline/calendar-timeline.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,OAAO,QAAQ,OAAO;AACtC,SAASC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAwC,cAAc;AACrF,SAASC,aAAa,QAAQ,8BAA2B;AACzD,SAASC,gBAAgB,QAAQ,qBAAY;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAE9C,MAAMC,WAAW,GAAG,EAAE;AAEtB,SAASC,UAAUA,CAACC,IAAY,EAAU;EACxC,IAAIA,IAAI,KAAK,CA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M,EAAE,EAAE,CAAC;YAC5BX,IAAI;YACJoB,KAAK,EAAEJ;UACT,CAAC;UAED,oBACE9E,IAAA,CAACJ,IAAI;YAEHyC,KAAK,EAAE;cACLwB,QAAQ,EAAE,UAAU;cACpBG,GAAG,EAAEe,MAAM,CAACf,GAAG;cACfS,MAAM,EAAEM,MAAM,CAACN,MAAM;cACrBX,IAAI,EAAEiB,MAAM,CAACjB,IAAyB;cACtCoB,KAAK,EAAEH,MAAM,CAACG;YAChB,CAAE;YAAA7B,QAAA,EAEDjB,WAAW,CAAChB,KAAK,EAAE2D,MAAM;UAAC,GATtB5C,YAAY,CAACf,KAAK,CAUnB,CAAC;QAEX,CAAC,CACH,CAAC;MAAA,CACG,CAAC;IAAA,CACH;EAAC,CACG,CAAC;AAEjB","ignoreList":[]}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import React, { useCallback, useMemo, useRef, useState } from "react";
|
|
4
4
|
import { Platform, Pressable, ScrollView, StyleSheet, Text, View } from "react-native";
|
|
5
|
-
import {
|
|
5
|
+
import { useComponentConfig } from "../../../themes/provider.js";
|
|
6
6
|
import { addWeeks, endOfWeek, formatDate, getWeekDates, isDateAfter, isDateBefore, startOfWeek, subWeeks } from "../../../utils/date-utils.js";
|
|
7
7
|
import { CalendarContext } from "../shared/calendar-context.js";
|
|
8
8
|
import { CalendarDay } from "../shared/calendar-day.js";
|
|
@@ -26,9 +26,9 @@ export function WeekCalendar(props) {
|
|
|
26
26
|
style
|
|
27
27
|
} = props;
|
|
28
28
|
const styles = WeekCalendarVariants[props.variant || "default"]();
|
|
29
|
-
const config =
|
|
30
|
-
const PrevIcon = config?.
|
|
31
|
-
const NextIcon = config?.
|
|
29
|
+
const config = useComponentConfig("calendar");
|
|
30
|
+
const PrevIcon = config?.prevIcon;
|
|
31
|
+
const NextIcon = config?.nextIcon;
|
|
32
32
|
const [currentWeekStart, setCurrentWeekStart] = useState(startOfWeek(defaultWeek));
|
|
33
33
|
const [containerWidth, setContainerWidth] = useState(0);
|
|
34
34
|
const scrollRef = useRef(null);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useCallback","useMemo","useRef","useState","Platform","Pressable","ScrollView","StyleSheet","Text","View","
|
|
1
|
+
{"version":3,"names":["React","useCallback","useMemo","useRef","useState","Platform","Pressable","ScrollView","StyleSheet","Text","View","useComponentConfig","addWeeks","endOfWeek","formatDate","getWeekDates","isDateAfter","isDateBefore","startOfWeek","subWeeks","CalendarContext","CalendarDay","WeekCalendarVariants","jsx","_jsx","jsxs","_jsxs","DEFAULT_WEEK_DAYS","calculateNavState","isDisabled","isHovered","WeekCalendar","props","value","onChange","defaultWeek","Date","minDate","maxDate","markedDates","weekDays","style","styles","variant","config","PrevIcon","prevIcon","NextIcon","nextIcon","currentWeekStart","setCurrentWeekStart","containerWidth","setContainerWidth","scrollRef","prevHovered","setPrevHovered","nextHovered","setNextHovered","currentMonth","goToPrev","prev","goToNext","isPrevDisabled","prevWeekEnd","isNextDisabled","nextWeekStart","prevState","nextState","prevIconProps","flatten","navButtonIcon","default","nextIconProps","prevWeekDates","currentWeekDates","nextWeekDates","weeks","scrollKey","getTime","handleScrollEnd","event","offsetX","nativeEvent","contentOffset","x","pageIndex","Math","round","contextValue","Provider","children","root","header","headerTitle","navButtons","onPress","onHoverIn","onHoverOut","disabled","navButton","weekLabels","map","day","index","numberOfLines","weekLabel","swipeContainer","onLayout","e","layout","width","ref","horizontal","pagingEnabled","showsHorizontalScrollIndicator","scrollEventThrottle","onMomentumScrollEnd","OS","current","scrollTo","animated","y","weekDates","weekIndex","weekStrip","date","dayIndex"],"sourceRoot":"../../../../../src","sources":["components/calendar/week-calendar/week-calendar.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,OAAO,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AACrE,SACEC,QAAQ,EACRC,SAAS,EACTC,UAAU,EACVC,UAAU,EACVC,IAAI,EACJC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