@tactics/toddle-styleguide 2.0.2 → 2.0.4
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/index.d.ts +2 -1
- package/package.json +1 -1
- package/src/components/atoms/animated-wave/animated-wave.styles.d.ts +19 -19
- package/src/components/atoms/backdrop/backdrop.component.d.ts +7 -4
- package/src/components/atoms/backdrop/backdrop.styles.d.ts +9 -9
- package/src/components/atoms/background-gradient/background-gradient.styles.d.ts +6 -6
- package/src/components/atoms/calendar/calendar.component.d.ts +11 -6
- package/src/components/atoms/check-switch/check-switch.component.d.ts +6 -3
- package/src/components/atoms/count/count.component.d.ts +7 -4
- package/src/components/atoms/count/count.component.tsx +12 -13
- package/src/components/atoms/count/count.preview.tsx +5 -5
- package/src/components/atoms/count/count.styles.d.ts +23 -20
- package/src/components/atoms/count/count.styles.js +25 -17
- package/src/components/atoms/footer/footer.component.d.ts +9 -6
- package/src/components/atoms/footer/footer.component.tsx +7 -9
- package/src/components/atoms/footer/footer.styles.d.ts +16 -13
- package/src/components/atoms/footer/footer.styles.js +1 -1
- package/src/components/atoms/heading-components/all-caps-heading/all-caps-heading.component.d.ts +10 -2
- package/src/components/atoms/heading-components/heading1/heading1.component.d.ts +10 -2
- package/src/components/atoms/heading-components/heading2/heading2.component.d.ts +10 -2
- package/src/components/atoms/heading-components/heading3/heading3.component.d.ts +10 -2
- package/src/components/atoms/heading-components/heading4/heading4.component.d.ts +10 -2
- package/src/components/atoms/heading-components/index.d.ts +6 -6
- package/src/components/atoms/image-bubble/image-bubble.component.d.ts +9 -6
- package/src/components/atoms/increment-input/increment-input.component.d.ts +8 -4
- package/src/components/atoms/increment-input/increment-input.styles.d.ts +33 -33
- package/src/components/atoms/line/line.component.d.ts +8 -4
- package/src/components/atoms/logo/logo.component.d.ts +4 -4
- package/src/components/atoms/paragraph-components/index.d.ts +4 -4
- package/src/components/atoms/paragraph-components/paragraph/paragraph.component.d.ts +10 -2
- package/src/components/atoms/paragraph-components/small-text/small-text.component.d.ts +10 -2
- package/src/components/atoms/paragraph-components/tiny-text/tiny-text.component.d.ts +10 -2
- package/src/components/atoms/quick-message/quick-message.component.d.ts +10 -5
- package/src/components/atoms/quick-message/quick-message.styles.d.ts +16 -13
- package/src/components/atoms/split-container/split-container.component.d.ts +7 -4
- package/src/components/atoms/split-container/split-container.styles.d.ts +12 -12
- package/src/components/atoms/static-wave/static-wave.component.d.ts +11 -6
- package/src/components/atoms/text-input/text-input.component.d.ts +10 -6
- package/src/components/atoms/text-input/text-input.preview.d.ts +1 -1
- package/src/components/molecules/amount/amount.component.d.ts +16 -9
- package/src/components/molecules/amount/amount.component.tsx +125 -100
- package/src/components/molecules/amount/amount.preview.tsx +59 -11
- package/src/components/molecules/amount/amount.styles.d.ts +34 -34
- package/src/components/molecules/amount/amount.styles.js +7 -7
- package/src/components/molecules/avatar/avatar.component.d.ts +20 -12
- package/src/components/molecules/avatar/avatar.component.tsx +8 -6
- package/src/components/molecules/avatar/avatar.styles.d.ts +96 -78
- package/src/components/molecules/avatar/avatar.styles.js +18 -16
- package/src/components/molecules/bare-time-picker/bare-time-picker.component.d.ts +11 -6
- package/src/components/molecules/bare-time-picker/bare-time-picker.component.tsx +64 -66
- package/src/components/molecules/bare-time-picker/bare-time-picker.preview.tsx +1 -1
- package/src/components/molecules/bare-time-picker/bare-time-picker.styles.d.ts +6 -6
- package/src/components/molecules/bare-time-picker/bare-time-picker.styles.js +8 -8
- package/src/components/molecules/blocked-message/blocked-message.component.d.ts +4 -2
- package/src/components/molecules/button/button.component.d.ts +20 -11
- package/src/components/molecules/calendar-select/calendar-select.component.d.ts +12 -6
- package/src/components/molecules/calendar-select/calendar-select.component.tsx +76 -73
- package/src/components/molecules/calendar-select/calendar-select.styles.d.ts +31 -31
- package/src/components/molecules/calendar-select/calendar-select.styles.js +33 -33
- package/src/components/molecules/cancel-link/cancel-link.component.d.ts +7 -4
- package/src/components/molecules/checkbox/checkbox.component.d.ts +9 -5
- package/src/components/molecules/contact-role/contact-role.component.d.ts +6 -3
- package/src/components/molecules/context-label/context-label.component.d.ts +7 -4
- package/src/components/molecules/context-label/context-label.component.tsx +21 -23
- package/src/components/molecules/context-label/context-label.preview.tsx +45 -30
- package/src/components/molecules/context-label/context-label.styles.d.ts +7 -5
- package/src/components/molecules/date-input/date-input.component.d.ts +7 -4
- package/src/components/molecules/date-input/date-input.styles.d.ts +16 -16
- package/src/components/molecules/day/day.component.d.ts +10 -6
- package/src/components/molecules/default-select/default-select.component.d.ts +6 -3
- package/src/components/molecules/default-select/default-select.styles.d.ts +11 -11
- package/src/components/molecules/department_logo/department-logo.component.d.ts +5 -3
- package/src/components/molecules/failed-to-send/failed-bubble.component.d.ts +11 -6
- package/src/components/molecules/filter-range/filter-range.component.d.ts +14 -7
- package/src/components/molecules/filter-range/filter-range.styles.d.ts +20 -20
- package/src/components/molecules/filter-tab/filter-tab.component.d.ts +11 -7
- package/src/components/molecules/filter-tab/filter-tab.styles.d.ts +58 -53
- package/src/components/molecules/info/info.component.d.ts +9 -5
- package/src/components/molecules/info/info.component.tsx +13 -5
- package/src/components/molecules/info/info.preview.tsx +4 -5
- package/src/components/molecules/info/info.styles.d.ts +14 -14
- package/src/components/molecules/inline-error/inline-error.component.d.ts +3 -3
- package/src/components/molecules/inline-error/inline-error.component.tsx +10 -3
- package/src/components/molecules/inline-error/inline-error.preview.tsx +4 -2
- package/src/components/molecules/inline-error/inline-error.styles.d.ts +16 -16
- package/src/components/molecules/inline-error/inline-error.styles.js +2 -2
- package/src/components/molecules/inline-notice/inline-notice.component.d.ts +3 -3
- package/src/components/molecules/inline-notice/inline-notice.component.tsx +16 -12
- package/src/components/molecules/inline-notice/inline-notice.preview.tsx +4 -2
- package/src/components/molecules/inline-notice/inline-notice.styles.d.ts +16 -16
- package/src/components/molecules/inline-notice/inline-notice.styles.js +18 -18
- package/src/components/molecules/language-button/language-button.component.d.ts +8 -4
- package/src/components/molecules/message-input/message-input.component.d.ts +10 -6
- package/src/components/molecules/message-input/message-input.styles.d.ts +31 -31
- package/src/components/molecules/more-info-button/more-info-button.component.d.ts +8 -4
- package/src/components/molecules/password-input/password-input.component.d.ts +9 -5
- package/src/components/molecules/password-input/password-input.component.tsx +1 -1
- package/src/components/molecules/password-input/password-input.styles.d.ts +27 -27
- package/src/components/molecules/pill/pill.component.d.ts +5 -5
- package/src/components/molecules/pressable-icon/pressable-icon.component.d.ts +10 -5
- package/src/components/molecules/quick-filter/quick-filter.component.d.ts +16 -9
- package/src/components/molecules/quick-filter/quick-filter.component.tsx +1 -1
- package/src/components/molecules/quick-filter/quick-filter.preview.tsx +1 -1
- package/src/components/molecules/quick-filter/quick-filter.styles.js +1 -1
- package/src/components/molecules/search-input/search.component.d.ts +12 -7
- package/src/components/molecules/search-input/search.preview.d.ts +1 -1
- package/src/components/molecules/search-input/search.styles.d.ts +31 -31
- package/src/components/molecules/select-link/select-link.component.d.ts +7 -4
- package/src/components/molecules/select-list-item/select-list-item.component.d.ts +16 -9
- package/src/components/molecules/select-list-item/select-list-item.component.tsx +13 -9
- package/src/components/molecules/select-list-item/select-list-item.styles.d.ts +27 -22
- package/src/components/molecules/select-picker/select-picker.component.d.ts +13 -8
- package/src/components/molecules/select-picker/select-picker.styles.d.ts +30 -30
- package/src/components/molecules/selectable-list-item/selectable-list-item-preview.tsx +1 -1
- package/src/components/molecules/selectable-list-item/selectable-list-item.component.d.ts +15 -8
- package/src/components/molecules/selectable-list-item/selectable-list-item.component.tsx +17 -5
- package/src/components/molecules/selectable-list-item/selectable-list-item.styles.d.ts +31 -27
- package/src/components/molecules/send-bubble/send-text-bubble.component.d.ts +13 -7
- package/src/components/molecules/snackbar/snackbar.component.d.ts +8 -5
- package/src/components/molecules/swipe/swipe.component.d.ts +8 -5
- package/src/components/molecules/tag/tag.component.d.ts +11 -6
- package/src/components/molecules/time-picker/time-picker.component.d.ts +10 -5
- package/src/components/molecules/time-picker/time-picker.component.tsx +8 -2
- package/src/components/molecules/time-picker/time-picker.styles.d.ts +25 -25
- package/src/components/molecules/time-tracker/time-tracker.component.d.ts +10 -6
- package/src/components/molecules/timeline/timeline.component.d.ts +6 -3
- package/src/components/molecules/timestamp/timestamp.component.d.ts +7 -4
- package/src/components/molecules/wave-background/wave.component.d.ts +7 -2
- package/src/components/molecules/wide-button/wide-button.component.d.ts +11 -6
- package/src/components/molecules/wide-button/wide-button.styles.d.ts +14 -10
- package/src/components/organisms/child-list-item/child-list-item.component.d.ts +38 -20
- package/src/components/organisms/child-list-item/child-list-item.component.tsx +29 -26
- package/src/components/organisms/child-list-item/child-list-item.styles.d.ts +56 -53
- package/src/components/organisms/child-list-item/child-list-item.styles.js +5 -5
- package/src/components/organisms/child-list-item/components/child-list-tag.component.d.ts +6 -3
- package/src/components/organisms/contact-item/contact-item.component.d.ts +11 -6
- package/src/components/organisms/contact-item/contact-item.styles.d.ts +13 -13
- package/src/components/organisms/day-select/day-select.component.d.ts +10 -6
- package/src/components/organisms/day-select/day-select.component.tsx +46 -32
- package/src/components/organisms/day-select/day-select.styles.d.ts +16 -16
- package/src/components/organisms/day-select/day-select.styles.js +2 -2
- package/src/components/organisms/journal-entry/components/entry-type-indicator/entry-type-indicator.component.d.ts +6 -3
- package/src/components/organisms/journal-entry/components/journal-entry-type/journal-entry-type.component.d.ts +13 -7
- package/src/components/organisms/journal-entry/components/journal-entry-type/journal-entry-type.component.tsx +5 -4
- package/src/components/organisms/journal-entry/journal-entry.component.d.ts +30 -16
- package/src/components/organisms/journal-entry/journal-entry.styles.d.ts +25 -22
- package/src/components/organisms/loading-indicator/animation-style.animate.d.ts +13 -3
- package/src/components/organisms/loading-indicator/dot.component.d.ts +3 -3
- package/src/components/organisms/loading-indicator/loading-indicator.component.d.ts +9 -2
- package/src/components/organisms/my-child-list-item/my-child-list-item.component.d.ts +16 -9
- package/src/components/organisms/my-child-list-item/my-child-list-item.styles.d.ts +31 -31
- package/src/components/organisms/person-info-card/person-info-card.component.d.ts +18 -10
- package/src/components/organisms/tab-view/tab-view.component.d.ts +12 -8
- package/src/components/organisms/tab-view/tab-view.styles.d.ts +8 -8
- package/src/components/organisms/text-bubble/text-bubble.component.d.ts +21 -12
- package/src/components/organisms/text-bubble/text-bubble.styles.d.ts +14 -14
- package/src/components/organisms/timetable-edit/timetable-edit.component.d.ts +25 -13
- package/src/components/organisms/timetable-edit/timetable-edit.component.tsx +58 -56
- package/src/components/organisms/timetable-edit/timetable-edit.preview.tsx +20 -18
- package/src/components/organisms/timetable-edit/timetable-edit.styles.d.ts +19 -19
- package/src/components/organisms/timetable-edit/timetable-edit.styles.js +21 -21
- package/src/components/organisms/timetable-editor/components/timetable-edit-wrapper.d.ts +15 -9
- package/src/components/organisms/timetable-editor/components/timetable-edit-wrapper.tsx +65 -58
- package/src/components/organisms/timetable-editor/timetable-editor-staff.component.d.ts +11 -0
- package/src/components/organisms/timetable-editor/timetable-editor-staff.component.tsx +66 -47
- package/src/components/organisms/timetable-editor/timetable-editor.component.d.ts +8 -5
- package/src/components/organisms/timetable-editor/timetable-editor.component.tsx +76 -53
- package/src/components/organisms/timetable-editor/timetable-editor.preview.tsx +7 -7
- package/src/components/organisms/timetable-editor/timetable-editor.styles.d.ts +6 -6
- package/src/components/organisms/timetable-editor/timetable-editor.styles.js +8 -8
- package/src/components/templates/modal/components/fade-panel.component.d.ts +14 -7
- package/src/components/templates/modal/components/fade-panel.styles.d.ts +17 -13
- package/src/components/templates/modal/modal.component.d.ts +12 -6
- package/src/components/templates/modal/modal.styles.d.ts +21 -21
- package/src/components/templates/popover/components/foreground/foreground.component.d.ts +6 -4
- package/src/components/templates/popover/components/foreground/foreground.styles.d.ts +10 -10
- package/src/components/templates/popover/components/modal/close/close.component.d.ts +4 -4
- package/src/components/templates/popover/components/modal/heading/heading.component.d.ts +7 -4
- package/src/components/templates/popover/components/modal/heading/heading.styles.d.ts +12 -12
- package/src/components/templates/popover/components/modal/modal.component.d.ts +17 -9
- package/src/components/templates/popover/components/modal/modal.styles.d.ts +17 -17
- package/src/components/templates/popover/components/modal/scroll-content/scroll-content.component.d.ts +5 -3
- package/src/components/templates/popover/popover.component.d.ts +15 -8
- package/src/components/templates/popover/popover.styles.d.ts +9 -9
- package/src/components/templates/popover-action/popover-action.component.d.ts +8 -4
- package/src/components/templates/popover-action/popover-action.component.tsx +6 -4
- package/src/components/templates/popover-action/popover-action.styles.d.ts +26 -26
- package/src/context/loading-dots.context.d.ts +9 -6
- package/src/context/theme.context.d.ts +65 -65
- package/src/context/theme.context.ts +4 -4
- package/src/gradients/main/main.gradient.d.ts +4 -2
- package/src/hooks/use-debounce.ts +8 -8
- package/src/icons/crown.icon.tsx +18 -5
- package/src/icons/index.d.ts +7 -2
- package/src/icons/outline/calendar/calendar.icon.d.ts +5 -2
- package/src/icons/outline/chat/chat.icon.d.ts +5 -2
- package/src/icons/outline/chat-alt/chat-alt.icon.d.ts +5 -2
- package/src/icons/outline/check-circle/check-circle.icon.d.ts +5 -2
- package/src/icons/outline/chevron-left/chevron-left.icon.d.ts +5 -2
- package/src/icons/outline/chevron-right/chevron-right.icon.d.ts +5 -2
- package/src/icons/outline/clock/clock.icon.d.ts +5 -2
- package/src/icons/outline/cloud-download/cloud-download.icon.d.ts +5 -2
- package/src/icons/outline/currency-euro/currency-euro.icon.d.ts +5 -2
- package/src/icons/outline/document-text/document-text.icon.d.ts +5 -2
- package/src/icons/outline/exclamation/exclamation.icon.d.ts +5 -2
- package/src/icons/outline/exclamation-circle/exclamation-circle.icon.d.ts +5 -2
- package/src/icons/outline/eye/eye.icon.d.ts +5 -2
- package/src/icons/outline/eye-off/eye-off.icon.d.ts +5 -2
- package/src/icons/outline/filter/filter.icon.d.ts +5 -2
- package/src/icons/outline/information-circle/information-circle.icon.d.ts +5 -2
- package/src/icons/outline/logout/logout.icon.d.ts +5 -2
- package/src/icons/outline/mail/mail.icon.d.ts +5 -2
- package/src/icons/outline/mail-open/mail-open.icon.d.ts +5 -2
- package/src/icons/outline/menu/menu.icon.d.ts +5 -2
- package/src/icons/outline/minus-sm/minus-sm.icon.d.ts +5 -2
- package/src/icons/outline/office-building/office-building.icon.d.ts +5 -2
- package/src/icons/outline/outline-default.preview.tsx +2 -2
- package/src/icons/outline/outline.d.ts +6 -2
- package/src/icons/outline/outline.tsx +4 -4
- package/src/icons/outline/paper-airplane/paper-airplane.icon.d.ts +5 -2
- package/src/icons/outline/paperclip/paperclip.icon.d.ts +5 -2
- package/src/icons/outline/pencil/pencil.icon.d.ts +5 -2
- package/src/icons/outline/phone/phone.icon.d.ts +5 -2
- package/src/icons/outline/photograph/photograph.icon.d.ts +5 -2
- package/src/icons/outline/photograph/photograph.icon.tsx +3 -6
- package/src/icons/outline/plus/plus.icon.d.ts +5 -2
- package/src/icons/outline/plus-sm/plus-sm.icon.d.ts +5 -2
- package/src/icons/outline/qrcode/qrcode.icon.d.ts +5 -2
- package/src/icons/outline/refresh/refresh.icon.d.ts +5 -2
- package/src/icons/outline/search/search.icon.d.ts +5 -2
- package/src/icons/outline/selector/selector.icon.d.ts +5 -2
- package/src/icons/outline/share/share.icon.d.ts +5 -2
- package/src/icons/outline/sm-view-grid-add/sm-view-grid-add.icon.d.ts +5 -2
- package/src/icons/outline/status-online/status-online.icon.d.ts +5 -2
- package/src/icons/outline/thumb-up/thumb-up.icon.d.ts +5 -2
- package/src/icons/outline/trash/trash.icon.d.ts +5 -2
- package/src/icons/outline/user/user.icon.d.ts +5 -2
- package/src/icons/outline/user-group/user-group.icon.d.ts +5 -2
- package/src/icons/outline/users/users.icon.d.ts +5 -2
- package/src/icons/outline/xmark/xmark.icon.d.ts +5 -2
- package/src/icons/solid/calendar/calendar.icon.d.ts +5 -2
- package/src/icons/solid/chat/chat.icon.d.ts +5 -2
- package/src/icons/solid/chat-alt/chat-alt-solid.icon.d.ts +5 -2
- package/src/icons/solid/check-circle/check-circle.icon.d.ts +5 -2
- package/src/icons/solid/chevron-left/chevron-left.icon.d.ts +5 -2
- package/src/icons/solid/chevron-right/chevron-right.icon.d.ts +5 -2
- package/src/icons/solid/clock/clock-solid.icon.d.ts +5 -2
- package/src/icons/solid/cloud-download/cloud-download.icon.d.ts +5 -2
- package/src/icons/solid/currency-euro/currency-euro.icon.d.ts +5 -2
- package/src/icons/solid/document-text/document-text-solid.icon.d.ts +5 -2
- package/src/icons/solid/exclamation/exclamation.icon.d.ts +5 -2
- package/src/icons/solid/exclamation-circle/exclamation-circle.icon.d.ts +5 -2
- package/src/icons/solid/eye/eye.icon.d.ts +5 -2
- package/src/icons/solid/eye-off/eye-off.icon.d.ts +5 -2
- package/src/icons/solid/filter/filter.icon.d.ts +5 -2
- package/src/icons/solid/information-circle/information-circle-solid.icon.d.ts +5 -2
- package/src/icons/solid/logout/logout.icon.d.ts +5 -2
- package/src/icons/solid/mail/mail.icon.d.ts +5 -2
- package/src/icons/solid/mail-open/mail-open.icon.d.ts +5 -2
- package/src/icons/solid/menu/menu.icon.d.ts +5 -2
- package/src/icons/solid/minus-sm/minus-sm.icon.d.ts +5 -2
- package/src/icons/solid/office-building/office-building.icon.d.ts +5 -2
- package/src/icons/solid/paper-airplane/paper-airplane.icon.d.ts +5 -2
- package/src/icons/solid/paperclip/paperclip.icon.d.ts +5 -2
- package/src/icons/solid/pencil/pencil-solid.icon.d.ts +5 -2
- package/src/icons/solid/phone/phone-solid.icon.d.ts +5 -2
- package/src/icons/solid/photograph/photograph-solid.icon.d.ts +5 -2
- package/src/icons/solid/photograph/photograph-solid.icon.tsx +4 -4
- package/src/icons/solid/plus/plus.icon.d.ts +5 -2
- package/src/icons/solid/plus-sm/plus-sm.icon.d.ts +5 -2
- package/src/icons/solid/qrcode/qrcode.icon.d.ts +5 -2
- package/src/icons/solid/refresh/refresh-solid.icon.d.ts +5 -2
- package/src/icons/solid/search/search.icon.d.ts +5 -2
- package/src/icons/solid/selector/selector.icon.d.ts +5 -2
- package/src/icons/solid/share/share.icon.d.ts +5 -2
- package/src/icons/solid/share/share.icon.tsx +1 -3
- package/src/icons/solid/sm-view-grid-add/sm-view-grid-add.icon.d.ts +5 -2
- package/src/icons/solid/solid.d.ts +6 -2
- package/src/icons/solid/solid.tsx +4 -4
- package/src/icons/solid/status-online/status-online-solid.icon.d.ts +5 -2
- package/src/icons/solid/thumb-up/thumb-up.icon.d.ts +5 -2
- package/src/icons/solid/trash/trash-solid.icon.d.ts +5 -2
- package/src/icons/solid/user/user.icon.d.ts +5 -2
- package/src/icons/solid/user-group/user-group.icon.d.ts +5 -2
- package/src/icons/solid/users/users-solid.icon.d.ts +5 -2
- package/src/icons/solid/xmark/xmark.icon.d.ts +5 -2
- package/src/interfaces/icon.interface.d.ts +5 -5
- package/src/models/hex-color.model.d.ts +4 -4
- package/src/models/initials.model.d.ts +5 -5
- package/src/models/time-slot-record.d.ts +11 -11
- package/src/models/time-slot-sequence.d.ts +15 -13
- package/src/models/time-slot-sequence.ts +13 -9
- package/src/theme/font/font.d.ts +70 -70
- package/src/theme/font/index.d.ts +3 -3
- package/src/theme/provider/index.d.ts +3 -3
- package/src/theme/provider/parent.theme.d.ts +63 -63
- package/src/theme/provider/parent.theme.ts +4 -4
- package/src/theme/provider/staff-member.theme.d.ts +63 -63
- package/src/theme/provider/staff-member.theme.ts +4 -4
- package/src/theme/responsive/index.d.ts +5 -2
- package/src/theme/scale/index.d.ts +10 -10
- package/src/types/bubble-alignment.enum.d.ts +2 -2
- package/src/types/icontype.type.d.ts +43 -1
- package/src/types/keyboard-types.enum.d.ts +7 -7
- package/src/types/loading-dots.type.d.ts +6 -6
- package/src/types/size.enum.d.ts +3 -3
- package/src/types/state.enum.d.ts +4 -4
- package/src/types/state.enum.ts +5 -5
- package/src/types/text-properties.type.d.ts +8 -8
- package/src/types/timetable-edit.enum.d.ts +3 -3
- package/src/types/visual-state.enum.d.ts +5 -5
- package/src/utilities/color-handler/color-handler.d.ts +12 -4
- package/src/utilities/color-handler/color-handler.ts +2 -3
- package/src/utilities/toddle-datetime/interfaces/duration.interface.d.ts +18 -18
- package/src/utilities/toddle-datetime/interfaces/toddle-datetime.interface.d.ts +16 -16
- package/src/utilities/toddle-datetime/toddle-datetime.class.d.ts +103 -46
- package/src/utilities/toddle-datetime/types/duration.type.d.ts +1 -1
- package/src/utilities/toddle-datetime/types/toddle-datetime.type.d.ts +11 -2
|
@@ -1,63 +1,70 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import React from
|
|
5
|
-
import {
|
|
1
|
+
import {useState} from 'react';
|
|
2
|
+
import {TimeSlotRecord} from '../../../../models/time-slot-record';
|
|
3
|
+
import {TimetableEdit} from '../../timetable-edit/timetable-edit.component';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import {TimetableEditState} from '../../../../types/timetable-edit.enum';
|
|
6
6
|
|
|
7
7
|
interface TimetableEditWrapperProps {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
index: number;
|
|
9
|
+
record: TimeSlotRecord;
|
|
10
|
+
onUpdate: (rec: TimeSlotRecord) => void;
|
|
11
|
+
onPressTag: (val: TimetableEditState, index: number) => void;
|
|
12
|
+
editState: TimetableEditState;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
export const TimetableEditWrapper = ({
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
15
|
+
export const TimetableEditWrapper = ({
|
|
16
|
+
index,
|
|
17
|
+
record,
|
|
18
|
+
onUpdate,
|
|
19
|
+
editState,
|
|
20
|
+
onPressTag,
|
|
21
|
+
}: TimetableEditWrapperProps) => {
|
|
22
|
+
const [initialInhours, initialInMinutes] = record.start
|
|
23
|
+
? record.start.split(':')
|
|
24
|
+
: ':'.split(':');
|
|
25
|
+
const [initialOuthours, initialOutMinutes] = record.end
|
|
26
|
+
? record.end.split(':')
|
|
27
|
+
: ':'.split(':');
|
|
28
|
+
const [inHours, setInHours] = useState<string>(initialInhours);
|
|
29
|
+
const [inMinutes, setInMinutes] = useState<string>(initialInMinutes);
|
|
30
|
+
const [outHours, setOutHours] = useState<string>(initialOuthours);
|
|
31
|
+
const [outMinutes, setOutMinutes] = useState<string>(initialOutMinutes);
|
|
26
32
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
33
|
+
return (
|
|
34
|
+
<TimetableEdit
|
|
35
|
+
index={index}
|
|
36
|
+
initialEditState={editState}
|
|
37
|
+
initialInHours={inHours}
|
|
38
|
+
initialInMinutes={inMinutes}
|
|
39
|
+
initialOutHours={outHours}
|
|
40
|
+
initialOutMinutes={outMinutes}
|
|
41
|
+
onChangeInHours={(hour) => {
|
|
42
|
+
setInHours(hour);
|
|
43
|
+
const updatedInHour = `${hour}:${inMinutes}`;
|
|
44
|
+
record.start = updatedInHour === ':' ? '' : updatedInHour;
|
|
45
|
+
onUpdate(record);
|
|
46
|
+
}}
|
|
47
|
+
onChangeInMinutes={(minutes) => {
|
|
48
|
+
setInMinutes(minutes);
|
|
49
|
+
const updatedInMinutes = `${inHours}:${minutes}`;
|
|
50
|
+
record.start = updatedInMinutes === ':' ? '' : updatedInMinutes;
|
|
51
|
+
onUpdate(record);
|
|
52
|
+
}}
|
|
53
|
+
onChangeOutHours={(hour) => {
|
|
54
|
+
setOutHours(hour);
|
|
55
|
+
const updatedOutHour = `${hour}:${outMinutes}`;
|
|
56
|
+
record.end = updatedOutHour === ':' ? undefined : updatedOutHour;
|
|
57
|
+
onUpdate(record);
|
|
58
|
+
}}
|
|
59
|
+
onChangeOutMinutes={(minutes) => {
|
|
60
|
+
setOutMinutes(minutes);
|
|
61
|
+
const updatedOutMinutes = `${outHours}:${minutes}`;
|
|
62
|
+
record.end = updatedOutMinutes === ':' ? undefined : updatedOutMinutes;
|
|
63
|
+
onUpdate(record);
|
|
64
|
+
}}
|
|
65
|
+
onPressTag={(val, index) => {
|
|
66
|
+
onPressTag(val, index);
|
|
67
|
+
}}
|
|
68
|
+
/>
|
|
69
|
+
);
|
|
70
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {TimeSlotSequence} from '../../../models/time-slot-sequence';
|
|
3
|
+
interface TimetableEditorStaffProps {
|
|
4
|
+
sequence: TimeSlotSequence;
|
|
5
|
+
onChange: (seq: TimeSlotSequence) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const TimetableEditorStaff: ({
|
|
8
|
+
sequence,
|
|
9
|
+
onChange,
|
|
10
|
+
}: TimetableEditorStaffProps) => React.JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -1,53 +1,72 @@
|
|
|
1
|
-
import React, {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
1
|
+
import React, {useContext, useEffect, useState} from 'react';
|
|
2
|
+
import {View} from 'react-native';
|
|
3
|
+
import {TimeSlotRecord} from '../../../models/time-slot-record';
|
|
4
|
+
import {TimeSlotSequence} from '../../../models/time-slot-sequence';
|
|
5
|
+
import {TimetableEditWrapper} from './components/timetable-edit-wrapper';
|
|
6
|
+
import {TimetableEditState} from '../../../types/timetable-edit.enum';
|
|
7
|
+
import {ThemeCtx} from '../../../context/theme.context';
|
|
8
|
+
import {Stylesheet} from './timetable-editor.styles';
|
|
9
9
|
|
|
10
|
-
interface
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
interface TimetableEditorStaffProps {
|
|
11
|
+
sequence: TimeSlotSequence;
|
|
12
|
+
onChange: (seq: TimeSlotSequence) => void;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
export const TimetableEditorStaff = ({
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
export const TimetableEditorStaff = ({
|
|
16
|
+
sequence,
|
|
17
|
+
onChange,
|
|
18
|
+
}: TimetableEditorStaffProps) => {
|
|
19
|
+
const context = useContext(ThemeCtx);
|
|
20
|
+
const styles = Stylesheet(context);
|
|
21
|
+
const [activeIndex, setActiveIndex] = useState(0);
|
|
22
|
+
const [activeEditState, setActiveEditState] = useState(
|
|
23
|
+
TimetableEditState.NONE
|
|
24
|
+
);
|
|
25
|
+
const [first, setFrist] = useState<TimeSlotRecord>(sequence.first);
|
|
26
|
+
const [second, setSecond] = useState<TimeSlotRecord>(sequence.second);
|
|
22
27
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
useEffect(() => {
|
|
29
|
+
const newSeq = TimeSlotSequence.fromEmpty();
|
|
30
|
+
newSeq.first.start = first.start;
|
|
31
|
+
newSeq.first.end = first.end;
|
|
32
|
+
newSeq.second.start = second.start;
|
|
33
|
+
newSeq.second.end = second.end;
|
|
34
|
+
newSeq.third.start = TimeSlotRecord.fromEmpty().start;
|
|
35
|
+
newSeq.third.end = TimeSlotRecord.fromEmpty().end;
|
|
31
36
|
|
|
32
|
-
|
|
33
|
-
|
|
37
|
+
onChange(newSeq);
|
|
38
|
+
}, [first, second]);
|
|
34
39
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
40
|
+
return (
|
|
41
|
+
<View style={styles.rootContainer}>
|
|
42
|
+
<TimetableEditWrapper
|
|
43
|
+
index={1}
|
|
44
|
+
record={first}
|
|
45
|
+
onUpdate={(seq) => {
|
|
46
|
+
setFrist(TimeSlotRecord.fromRecord(seq));
|
|
47
|
+
}}
|
|
48
|
+
editState={
|
|
49
|
+
activeIndex === 1 ? activeEditState : TimetableEditState.NONE
|
|
50
|
+
}
|
|
51
|
+
onPressTag={(val, index) => {
|
|
52
|
+
setActiveIndex(index);
|
|
53
|
+
setActiveEditState(val);
|
|
54
|
+
}}
|
|
55
|
+
/>
|
|
56
|
+
<TimetableEditWrapper
|
|
57
|
+
index={2}
|
|
58
|
+
record={second}
|
|
59
|
+
onUpdate={(seq) => {
|
|
60
|
+
setSecond(TimeSlotRecord.fromRecord(seq));
|
|
61
|
+
}}
|
|
62
|
+
editState={
|
|
63
|
+
activeIndex === 2 ? activeEditState : TimetableEditState.NONE
|
|
64
|
+
}
|
|
65
|
+
onPressTag={(val, index) => {
|
|
66
|
+
setActiveIndex(index);
|
|
67
|
+
setActiveEditState(val);
|
|
68
|
+
}}
|
|
69
|
+
/>
|
|
70
|
+
</View>
|
|
71
|
+
);
|
|
72
|
+
};
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import {
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {TimeSlotSequence} from '../../../models/time-slot-sequence';
|
|
3
3
|
interface TimetableEditorProps {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
sequence: TimeSlotSequence;
|
|
5
|
+
onChange: (seq: TimeSlotSequence) => void;
|
|
6
6
|
}
|
|
7
|
-
export declare const TimetableEditor: ({
|
|
7
|
+
export declare const TimetableEditor: ({
|
|
8
|
+
sequence,
|
|
9
|
+
onChange,
|
|
10
|
+
}: TimetableEditorProps) => React.JSX.Element;
|
|
8
11
|
export {};
|
|
@@ -1,61 +1,84 @@
|
|
|
1
|
-
import React, {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
1
|
+
import React, {useContext, useEffect, useState} from 'react';
|
|
2
|
+
import {View} from 'react-native';
|
|
3
|
+
import {TimeSlotRecord} from '../../../models/time-slot-record';
|
|
4
|
+
import {TimeSlotSequence} from '../../../models/time-slot-sequence';
|
|
5
|
+
import {TimetableEditWrapper} from './components/timetable-edit-wrapper';
|
|
6
|
+
import {TimetableEditState} from '../../../types/timetable-edit.enum';
|
|
7
|
+
import {ThemeCtx} from '../../../context/theme.context';
|
|
8
|
+
import {Stylesheet} from './timetable-editor.styles';
|
|
9
9
|
|
|
10
10
|
interface TimetableEditorProps {
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
sequence: TimeSlotSequence;
|
|
12
|
+
onChange: (seq: TimeSlotSequence) => void;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
export const TimetableEditor = ({sequence, onChange}: TimetableEditorProps) => {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
16
|
+
const context = useContext(ThemeCtx);
|
|
17
|
+
const styles = Stylesheet(context);
|
|
18
|
+
const [activeIndex, setActiveIndex] = useState(0);
|
|
19
|
+
const [activeEditState, setActiveEditState] = useState(
|
|
20
|
+
TimetableEditState.NONE
|
|
21
|
+
);
|
|
22
|
+
const [first, setFrist] = useState<TimeSlotRecord>(sequence.first);
|
|
23
|
+
const [second, setSecond] = useState<TimeSlotRecord>(sequence.second);
|
|
24
|
+
const [third, setThird] = useState<TimeSlotRecord>(sequence.third);
|
|
23
25
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
26
|
+
useEffect(() => {
|
|
27
|
+
const newSeq = TimeSlotSequence.fromEmpty();
|
|
28
|
+
newSeq.first.start = first.start;
|
|
29
|
+
newSeq.first.end = first.end;
|
|
30
|
+
newSeq.second.start = second.start;
|
|
31
|
+
newSeq.second.end = second.end;
|
|
32
|
+
newSeq.third.start = third.start;
|
|
33
|
+
newSeq.third.end = third.end;
|
|
32
34
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
+
onChange(newSeq);
|
|
36
|
+
}, [first, second, third]);
|
|
35
37
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
38
|
+
return (
|
|
39
|
+
<View style={styles.rootContainer}>
|
|
40
|
+
<TimetableEditWrapper
|
|
41
|
+
index={1}
|
|
42
|
+
record={first}
|
|
43
|
+
onUpdate={(seq) => {
|
|
44
|
+
setFrist(TimeSlotRecord.fromRecord(seq));
|
|
45
|
+
}}
|
|
46
|
+
editState={
|
|
47
|
+
activeIndex === 1 ? activeEditState : TimetableEditState.NONE
|
|
48
|
+
}
|
|
49
|
+
onPressTag={(val, index) => {
|
|
50
|
+
setActiveIndex(index);
|
|
51
|
+
setActiveEditState(val);
|
|
52
|
+
}}
|
|
53
|
+
/>
|
|
54
|
+
<TimetableEditWrapper
|
|
55
|
+
index={2}
|
|
56
|
+
record={second}
|
|
57
|
+
onUpdate={(seq) => {
|
|
58
|
+
setSecond(TimeSlotRecord.fromRecord(seq));
|
|
59
|
+
}}
|
|
60
|
+
editState={
|
|
61
|
+
activeIndex === 2 ? activeEditState : TimetableEditState.NONE
|
|
62
|
+
}
|
|
63
|
+
onPressTag={(val, index) => {
|
|
64
|
+
setActiveIndex(index);
|
|
65
|
+
setActiveEditState(val);
|
|
66
|
+
}}
|
|
67
|
+
/>
|
|
68
|
+
<TimetableEditWrapper
|
|
69
|
+
index={3}
|
|
70
|
+
record={third}
|
|
71
|
+
onUpdate={(seq) => {
|
|
72
|
+
setThird(TimeSlotRecord.fromRecord(seq));
|
|
73
|
+
}}
|
|
74
|
+
editState={
|
|
75
|
+
activeIndex === 3 ? activeEditState : TimetableEditState.NONE
|
|
76
|
+
}
|
|
77
|
+
onPressTag={(val, index) => {
|
|
78
|
+
setActiveIndex(index);
|
|
79
|
+
setActiveEditState(val);
|
|
80
|
+
}}
|
|
81
|
+
/>
|
|
82
|
+
</View>
|
|
83
|
+
);
|
|
84
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React, {useState} from 'react';
|
|
2
2
|
import {View} from 'react-native';
|
|
3
3
|
import {Modal} from '../../templates/modal/modal.component';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import {Button} from '../../molecules/button/button.component';
|
|
5
|
+
import {TimetableEditor} from './timetable-editor.component';
|
|
6
|
+
import {TimeSlotSequence} from '../../../models/time-slot-sequence';
|
|
7
7
|
|
|
8
8
|
export const TimetableEditorPreview = ({}: {}) => {
|
|
9
9
|
const [popoverIsVisible, setPopoverIsVisible] = useState(false);
|
|
10
|
-
const [seq, setSeq] = useState(TimeSlotSequence.fromEmpty())
|
|
10
|
+
const [seq, setSeq] = useState(TimeSlotSequence.fromEmpty());
|
|
11
11
|
|
|
12
12
|
return (
|
|
13
13
|
<View
|
|
@@ -24,7 +24,7 @@ export const TimetableEditorPreview = ({}: {}) => {
|
|
|
24
24
|
>
|
|
25
25
|
<Button
|
|
26
26
|
onPress={() => {
|
|
27
|
-
setPopoverIsVisible(true)
|
|
27
|
+
setPopoverIsVisible(true);
|
|
28
28
|
}}
|
|
29
29
|
label="Open popover"
|
|
30
30
|
/>
|
|
@@ -36,13 +36,13 @@ export const TimetableEditorPreview = ({}: {}) => {
|
|
|
36
36
|
isVisible={popoverIsVisible}
|
|
37
37
|
>
|
|
38
38
|
<View>
|
|
39
|
-
|
|
39
|
+
<TimetableEditor sequence={seq} onChange={(seq) => setSeq(seq)} />
|
|
40
40
|
|
|
41
41
|
<View style={{marginTop: 32, marginBottom: 16, alignItems: 'center'}}>
|
|
42
42
|
<Button
|
|
43
43
|
label={'Bewaar'}
|
|
44
44
|
onPress={() => {
|
|
45
|
-
console.log(seq)
|
|
45
|
+
console.log(seq);
|
|
46
46
|
}}
|
|
47
47
|
/>
|
|
48
48
|
</View>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export function Stylesheet(context: any): {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
rootContainer: {
|
|
3
|
+
flexDirection: 'column';
|
|
4
|
+
gap: number;
|
|
5
|
+
justifyContent: 'center';
|
|
6
|
+
alignItems: 'center';
|
|
7
|
+
};
|
|
8
8
|
};
|
|
@@ -2,11 +2,11 @@ import {StyleSheet} from 'react-native';
|
|
|
2
2
|
import {Scale} from '../../../theme/scale/index';
|
|
3
3
|
|
|
4
4
|
export const Stylesheet = (context) =>
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
StyleSheet.create({
|
|
6
|
+
rootContainer: {
|
|
7
|
+
flexDirection: 'column',
|
|
8
|
+
gap: 16,
|
|
9
|
+
justifyContent: 'center',
|
|
10
|
+
alignItems: 'center',
|
|
11
|
+
},
|
|
12
|
+
});
|
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
type FadePanelProps = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
title: string;
|
|
4
|
+
subtitle?: string;
|
|
5
|
+
isVisible: boolean;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
maxHeight: number;
|
|
8
|
+
children: React.ReactNode;
|
|
9
9
|
};
|
|
10
|
-
export declare const FadePanel: ({
|
|
10
|
+
export declare const FadePanel: ({
|
|
11
|
+
title,
|
|
12
|
+
subtitle,
|
|
13
|
+
isVisible,
|
|
14
|
+
onClose,
|
|
15
|
+
maxHeight,
|
|
16
|
+
children,
|
|
17
|
+
}: FadePanelProps) => React.JSX.Element;
|
|
11
18
|
export {};
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
export function Stylesheet(
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
export function Stylesheet(
|
|
2
|
+
Context: any,
|
|
3
|
+
fadeAnimation: any,
|
|
4
|
+
maxHeight: any
|
|
5
|
+
): {
|
|
6
|
+
rootContainer: {
|
|
7
|
+
maxWidth: number;
|
|
8
|
+
width: '100%';
|
|
9
|
+
maxHeight: any;
|
|
10
|
+
paddingLeft: number;
|
|
11
|
+
paddingTop: number;
|
|
12
|
+
paddingRight: number;
|
|
13
|
+
paddingBottom: number;
|
|
14
|
+
borderRadius: number;
|
|
15
|
+
backgroundColor: any;
|
|
16
|
+
opacity: any;
|
|
17
|
+
};
|
|
14
18
|
};
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
type ModalProps = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
title: string;
|
|
4
|
+
subtitle?: string;
|
|
5
|
+
isVisible: boolean;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
children?: React.ReactNode;
|
|
8
8
|
};
|
|
9
|
-
export declare const Modal: ({
|
|
9
|
+
export declare const Modal: ({
|
|
10
|
+
title,
|
|
11
|
+
subtitle,
|
|
12
|
+
isVisible,
|
|
13
|
+
onClose,
|
|
14
|
+
children,
|
|
15
|
+
}: ModalProps) => React.JSX.Element;
|
|
10
16
|
export {};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
export function Stylesheet(): {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
2
|
+
element: {
|
|
3
|
+
width: '100%';
|
|
4
|
+
height: '100%';
|
|
5
|
+
position: 'absolute';
|
|
6
|
+
left: number;
|
|
7
|
+
top: number;
|
|
8
|
+
zIndex: number;
|
|
9
|
+
alignItems: 'center';
|
|
10
|
+
justifyContent: 'center';
|
|
11
|
+
};
|
|
12
|
+
fadePanelContainer: {
|
|
13
|
+
flex: number;
|
|
14
|
+
justifyContent: 'center';
|
|
15
|
+
alignItems: 'center';
|
|
16
|
+
width: '100%';
|
|
17
|
+
paddingLeft: number;
|
|
18
|
+
paddingTop: number;
|
|
19
|
+
paddingRight: number;
|
|
20
|
+
paddingBottom: number;
|
|
21
|
+
zIndex: number;
|
|
22
|
+
};
|
|
23
23
|
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import {Modal} from '../modal/modal.component';
|
|
3
3
|
type PopoverForegroundProps = {
|
|
4
|
-
|
|
4
|
+
children: React.ReactElement<typeof Modal>;
|
|
5
5
|
};
|
|
6
|
-
declare const Foreground: ({
|
|
7
|
-
|
|
6
|
+
declare const Foreground: ({
|
|
7
|
+
children,
|
|
8
|
+
}: PopoverForegroundProps) => React.JSX.Element;
|
|
9
|
+
export {Foreground as Foreground};
|