@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,33 +1,33 @@
|
|
|
1
1
|
export function Stylesheet(context: any): {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
2
|
+
container: {
|
|
3
|
+
width: '100%';
|
|
4
|
+
borderTopRightRadius: number;
|
|
5
|
+
borderBottomRightRadius: number;
|
|
6
|
+
borderTopLeftRadius: number;
|
|
7
|
+
borderBottomLeftRadius: number;
|
|
8
|
+
flexDirection: 'row';
|
|
9
|
+
backgroundColor: any;
|
|
10
|
+
};
|
|
11
|
+
innerContainer: {
|
|
12
|
+
flex: number;
|
|
13
|
+
padding: number;
|
|
14
|
+
flexDirection: 'row';
|
|
15
|
+
alignItems: 'center';
|
|
16
|
+
borderTopRightRadius: number;
|
|
17
|
+
borderBottomRightRadius: number;
|
|
18
|
+
borderTopLeftRadius: number;
|
|
19
|
+
borderBottomLeftRadius: number;
|
|
20
|
+
};
|
|
21
|
+
childTextContainer: {
|
|
22
|
+
flex: number;
|
|
23
|
+
marginLeft: number;
|
|
24
|
+
};
|
|
25
|
+
iconContainer: {
|
|
26
|
+
alignItems: 'flex-end';
|
|
27
|
+
justifyContent: 'center';
|
|
28
|
+
paddingRight: number;
|
|
29
|
+
width: number;
|
|
30
|
+
borderTopRightRadius: number;
|
|
31
|
+
borderBottomRightRadius: number;
|
|
32
|
+
};
|
|
33
33
|
};
|
|
@@ -1,14 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import {ImageSourcePropType, ViewStyle} from 'react-native';
|
|
2
|
+
import {Initials} from '../../../models/initials.model';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
interface IContactInfoCard {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
source: ImageSourcePropType | Initials;
|
|
6
|
+
name: string;
|
|
7
|
+
label?: string;
|
|
8
|
+
isBlocked?: boolean;
|
|
9
|
+
isActive?: boolean;
|
|
10
|
+
style?: ViewStyle;
|
|
11
|
+
isLoading?: boolean;
|
|
12
12
|
}
|
|
13
|
-
export declare const PersonInfoCard: ({
|
|
13
|
+
export declare const PersonInfoCard: ({
|
|
14
|
+
source,
|
|
15
|
+
isBlocked,
|
|
16
|
+
isActive,
|
|
17
|
+
name,
|
|
18
|
+
label,
|
|
19
|
+
style,
|
|
20
|
+
isLoading,
|
|
21
|
+
}: IContactInfoCard) => React.JSX.Element;
|
|
14
22
|
export {};
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {ReactNode} from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
interface TabViewProps {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
tabItem: {
|
|
5
|
+
value: string;
|
|
6
|
+
label: string;
|
|
7
|
+
}[];
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
setTabValue: (value: string) => void;
|
|
10
10
|
}
|
|
11
|
-
export declare const TabView: ({
|
|
11
|
+
export declare const TabView: ({
|
|
12
|
+
tabItem,
|
|
13
|
+
setTabValue,
|
|
14
|
+
children,
|
|
15
|
+
}: TabViewProps) => React.JSX.Element;
|
|
12
16
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export function Stylesheet(): {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
rootContainer: {
|
|
3
|
+
width: '100%';
|
|
4
|
+
height: '100%';
|
|
5
|
+
gap: number;
|
|
6
|
+
};
|
|
7
|
+
swipeContainer: {
|
|
8
|
+
flex: number;
|
|
9
|
+
};
|
|
10
10
|
};
|
|
@@ -1,15 +1,24 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import {VisualState} from '../../../types/visual-state.enum';
|
|
3
|
+
import {ToddleDateTime} from '../../../utilities/toddle-datetime/toddle-datetime.class';
|
|
4
4
|
type TextBubbleProps = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
id: string;
|
|
6
|
+
text: string;
|
|
7
|
+
visualState: VisualState;
|
|
8
|
+
timestamp?: ToddleDateTime;
|
|
9
|
+
timestampLabel?: string;
|
|
10
|
+
onFail?: (id: string) => void;
|
|
11
|
+
onEdit?: (id: string) => void;
|
|
12
|
+
onDelete?: (id: string) => void;
|
|
13
13
|
};
|
|
14
|
-
declare const TextBubble: ({
|
|
15
|
-
|
|
14
|
+
declare const TextBubble: ({
|
|
15
|
+
id,
|
|
16
|
+
text,
|
|
17
|
+
visualState,
|
|
18
|
+
timestamp,
|
|
19
|
+
timestampLabel,
|
|
20
|
+
onFail,
|
|
21
|
+
onEdit,
|
|
22
|
+
onDelete,
|
|
23
|
+
}: TextBubbleProps) => React.JSX.Element;
|
|
24
|
+
export {TextBubble as TextBubble};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
export function Stylesheet(): {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
2
|
+
rootContainer: {
|
|
3
|
+
width: '100%';
|
|
4
|
+
gap: number;
|
|
5
|
+
};
|
|
6
|
+
textBubbleRootContainer: {
|
|
7
|
+
minWidth: '50%';
|
|
8
|
+
};
|
|
9
|
+
failedBubbleRootContainer: {
|
|
10
|
+
minWidth: '50%';
|
|
11
|
+
};
|
|
12
|
+
timestampContainer: {
|
|
13
|
+
marginBottom: number;
|
|
14
|
+
alignSelf: 'flex-end';
|
|
15
|
+
};
|
|
16
16
|
};
|
|
@@ -1,17 +1,29 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import {TimetableEditState} from '../../../types/timetable-edit.enum';
|
|
3
3
|
interface TimetableEditProps {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
4
|
+
index: number;
|
|
5
|
+
initialInHours: string;
|
|
6
|
+
initialInMinutes: string;
|
|
7
|
+
initialOutHours: string;
|
|
8
|
+
initialOutMinutes: string;
|
|
9
|
+
onChangeInHours: (value: string) => void;
|
|
10
|
+
onChangeInMinutes: (value: string) => void;
|
|
11
|
+
onChangeOutHours: (value: string) => void;
|
|
12
|
+
onChangeOutMinutes: (value: string) => void;
|
|
13
|
+
onPressTag: (val: TimetableEditState, index: number) => void;
|
|
14
|
+
initialEditState: string;
|
|
15
15
|
}
|
|
16
|
-
export declare const TimetableEdit: ({
|
|
16
|
+
export declare const TimetableEdit: ({
|
|
17
|
+
index,
|
|
18
|
+
initialInHours,
|
|
19
|
+
initialInMinutes,
|
|
20
|
+
initialOutHours,
|
|
21
|
+
initialOutMinutes,
|
|
22
|
+
onChangeInHours,
|
|
23
|
+
onChangeInMinutes,
|
|
24
|
+
onChangeOutHours,
|
|
25
|
+
onChangeOutMinutes,
|
|
26
|
+
initialEditState,
|
|
27
|
+
onPressTag,
|
|
28
|
+
}: TimetableEditProps) => React.JSX.Element;
|
|
17
29
|
export {};
|
|
@@ -3,10 +3,10 @@ import {Heading3} from '../../atoms/heading-components';
|
|
|
3
3
|
import {useContext} from 'react';
|
|
4
4
|
import {ThemeCtx} from '../../../context/theme.context';
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
6
|
+
import {Stylesheet} from './timetable-edit.styles';
|
|
7
|
+
import {Tag} from '../../molecules/tag/tag.component';
|
|
8
|
+
import {TimetableEditState} from '../../../types/timetable-edit.enum';
|
|
9
|
+
import {BareTimePicker} from '../../molecules/bare-time-picker/bare-time-picker.component';
|
|
10
10
|
|
|
11
11
|
interface TimetableEditProps {
|
|
12
12
|
index: number;
|
|
@@ -18,8 +18,8 @@ interface TimetableEditProps {
|
|
|
18
18
|
onChangeInMinutes: (value: string) => void;
|
|
19
19
|
onChangeOutHours: (value: string) => void;
|
|
20
20
|
onChangeOutMinutes: (value: string) => void;
|
|
21
|
-
onPressTag: (val: TimetableEditState, index: number) => void
|
|
22
|
-
initialEditState: string
|
|
21
|
+
onPressTag: (val: TimetableEditState, index: number) => void;
|
|
22
|
+
initialEditState: string;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
export const TimetableEdit = ({
|
|
@@ -33,63 +33,65 @@ export const TimetableEdit = ({
|
|
|
33
33
|
onChangeOutHours,
|
|
34
34
|
onChangeOutMinutes,
|
|
35
35
|
initialEditState,
|
|
36
|
-
onPressTag
|
|
36
|
+
onPressTag,
|
|
37
37
|
}: TimetableEditProps) => {
|
|
38
38
|
const context = useContext(ThemeCtx);
|
|
39
39
|
const styles = Stylesheet(context);
|
|
40
40
|
|
|
41
41
|
return (
|
|
42
42
|
<View style={styles.rootContainer}>
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
<View style={styles.tagContainer}>
|
|
59
|
-
<Heading3
|
|
60
|
-
addStyle={{width: 'auto'}}
|
|
61
|
-
bold={true}
|
|
62
|
-
>Tot</Heading3>
|
|
63
|
-
<Tag
|
|
64
|
-
value={TimetableEditState.OUT}
|
|
65
|
-
label={`${initialOutHours == '' ? '--' : initialOutHours}:${initialOutMinutes == '' ? '--' : initialOutMinutes}`}
|
|
66
|
-
isSelected={initialEditState == TimetableEditState.OUT}
|
|
67
|
-
onPress={() => {
|
|
68
|
-
onPressTag(TimetableEditState.OUT, index)
|
|
69
|
-
}}
|
|
70
|
-
/>
|
|
71
|
-
</View>
|
|
43
|
+
<View style={styles.rowContainer}>
|
|
44
|
+
<View style={styles.tagContainer}>
|
|
45
|
+
<Heading3 addStyle={{width: 'auto'}} bold={true}>
|
|
46
|
+
Van
|
|
47
|
+
</Heading3>
|
|
48
|
+
<Tag
|
|
49
|
+
value={TimetableEditState.IN}
|
|
50
|
+
label={`${initialInHours == '' ? '--' : initialInHours}:${
|
|
51
|
+
initialInMinutes == '' ? '--' : initialInMinutes
|
|
52
|
+
}`}
|
|
53
|
+
isSelected={initialEditState == TimetableEditState.IN}
|
|
54
|
+
onPress={() => {
|
|
55
|
+
onPressTag(TimetableEditState.IN, index);
|
|
56
|
+
}}
|
|
57
|
+
/>
|
|
72
58
|
</View>
|
|
73
|
-
{
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
59
|
+
<View style={styles.tagContainer}>
|
|
60
|
+
<Heading3 addStyle={{width: 'auto'}} bold={true}>
|
|
61
|
+
Tot
|
|
62
|
+
</Heading3>
|
|
63
|
+
<Tag
|
|
64
|
+
value={TimetableEditState.OUT}
|
|
65
|
+
label={`${initialOutHours == '' ? '--' : initialOutHours}:${
|
|
66
|
+
initialOutMinutes == '' ? '--' : initialOutMinutes
|
|
67
|
+
}`}
|
|
68
|
+
isSelected={initialEditState == TimetableEditState.OUT}
|
|
69
|
+
onPress={() => {
|
|
70
|
+
onPressTag(TimetableEditState.OUT, index);
|
|
71
|
+
}}
|
|
72
|
+
/>
|
|
73
|
+
</View>
|
|
74
|
+
</View>
|
|
75
|
+
{initialEditState === TimetableEditState.IN && (
|
|
76
|
+
<View style={styles.pickerContainer}>
|
|
77
|
+
<BareTimePicker
|
|
78
|
+
initialHours={initialInHours}
|
|
79
|
+
initialMinutes={initialInMinutes}
|
|
80
|
+
onChangeHours={onChangeInHours}
|
|
81
|
+
onChangeMinutes={onChangeInMinutes}
|
|
82
|
+
/>
|
|
83
|
+
</View>
|
|
84
|
+
)}
|
|
85
|
+
{initialEditState === TimetableEditState.OUT && (
|
|
86
|
+
<View style={styles.pickerContainer}>
|
|
87
|
+
<BareTimePicker
|
|
88
|
+
initialHours={initialOutHours}
|
|
89
|
+
initialMinutes={initialOutMinutes}
|
|
90
|
+
onChangeHours={onChangeOutHours}
|
|
91
|
+
onChangeMinutes={onChangeOutMinutes}
|
|
92
|
+
/>
|
|
93
|
+
</View>
|
|
94
|
+
)}
|
|
93
95
|
</View>
|
|
94
96
|
);
|
|
95
97
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
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 {TimetableEdit} from './timetable-edit.component';
|
|
6
|
+
import {TimetableEditState} from '../../../types/timetable-edit.enum';
|
|
7
7
|
|
|
8
8
|
export const TimetableEditPreview = ({}: {}) => {
|
|
9
9
|
const [popoverIsVisible, setPopoverIsVisible] = useState(false);
|
|
@@ -40,7 +40,7 @@ export const TimetableEditPreview = ({}: {}) => {
|
|
|
40
40
|
<Button
|
|
41
41
|
onPress={() => {
|
|
42
42
|
setEditState(TimetableEditState.NONE);
|
|
43
|
-
setPopoverIsVisible(true)
|
|
43
|
+
setPopoverIsVisible(true);
|
|
44
44
|
}}
|
|
45
45
|
label="Open popover"
|
|
46
46
|
/>
|
|
@@ -52,26 +52,28 @@ export const TimetableEditPreview = ({}: {}) => {
|
|
|
52
52
|
isVisible={popoverIsVisible}
|
|
53
53
|
>
|
|
54
54
|
<View>
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
55
|
+
<TimetableEdit
|
|
56
|
+
index={1}
|
|
57
|
+
initialInHours={checkInHours}
|
|
58
|
+
initialInMinutes={checkInMinutes}
|
|
59
|
+
initialOutHours={checkOutHours}
|
|
60
|
+
initialOutMinutes={checkOutMinutes}
|
|
61
|
+
onChangeInHours={setCheckInHours}
|
|
62
|
+
onChangeInMinutes={setCheckInMinutes}
|
|
63
|
+
onChangeOutHours={setCheckOutHours}
|
|
64
|
+
onChangeOutMinutes={setCheckOutMinutes}
|
|
65
|
+
initialEditState={editState}
|
|
66
|
+
onPressTag={(val, index) => {
|
|
67
|
+
setEditState(val);
|
|
68
|
+
}}
|
|
69
|
+
/>
|
|
68
70
|
|
|
69
71
|
<View style={{marginTop: 32, marginBottom: 16, alignItems: 'center'}}>
|
|
70
72
|
<Button
|
|
71
73
|
label={'Bewaar'}
|
|
72
74
|
onPress={() => {
|
|
73
75
|
setEditState(TimetableEditState.NONE);
|
|
74
|
-
console.log('Bewaar registratie aanpassing')
|
|
76
|
+
console.log('Bewaar registratie aanpassing');
|
|
75
77
|
}}
|
|
76
78
|
/>
|
|
77
79
|
</View>
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
export function Stylesheet(context: any): {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
2
|
+
rootContainer: {
|
|
3
|
+
flexDirection: 'column';
|
|
4
|
+
gap: number;
|
|
5
|
+
justifyContent: 'center';
|
|
6
|
+
alignItems: 'center';
|
|
7
|
+
};
|
|
8
|
+
rowContainer: {
|
|
9
|
+
flexDirection: 'row';
|
|
10
|
+
alignItems: 'center';
|
|
11
|
+
gap: number;
|
|
12
|
+
};
|
|
13
|
+
tagContainer: {
|
|
14
|
+
flexDirection: 'row';
|
|
15
|
+
alignItems: 'center';
|
|
16
|
+
gap: number;
|
|
17
|
+
};
|
|
18
|
+
pickerContainer: {
|
|
19
|
+
justifyContent: 'center';
|
|
20
|
+
};
|
|
21
21
|
};
|
|
@@ -2,24 +2,24 @@ 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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
5
|
+
StyleSheet.create({
|
|
6
|
+
rootContainer: {
|
|
7
|
+
flexDirection: 'column',
|
|
8
|
+
gap: 16,
|
|
9
|
+
justifyContent: 'center',
|
|
10
|
+
alignItems: 'center',
|
|
11
|
+
},
|
|
12
|
+
rowContainer: {
|
|
13
|
+
flexDirection: 'row',
|
|
14
|
+
alignItems: 'center',
|
|
15
|
+
gap: 32,
|
|
16
|
+
},
|
|
17
|
+
tagContainer: {
|
|
18
|
+
flexDirection: 'row',
|
|
19
|
+
alignItems: 'center',
|
|
20
|
+
gap: 16,
|
|
21
|
+
},
|
|
22
|
+
pickerContainer: {
|
|
23
|
+
justifyContent: 'center',
|
|
24
|
+
},
|
|
25
|
+
});
|
|
@@ -1,12 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import React from
|
|
3
|
-
import {
|
|
1
|
+
import {TimeSlotRecord} from '../../../../models/time-slot-record';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import {TimetableEditState} from '../../../../types/timetable-edit.enum';
|
|
4
4
|
interface TimetableEditWrapperProps {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
index: number;
|
|
6
|
+
record: TimeSlotRecord;
|
|
7
|
+
onUpdate: (rec: TimeSlotRecord) => void;
|
|
8
|
+
onPressTag: (val: TimetableEditState, index: number) => void;
|
|
9
|
+
editState: TimetableEditState;
|
|
10
10
|
}
|
|
11
|
-
export declare const TimetableEditWrapper: ({
|
|
11
|
+
export declare const TimetableEditWrapper: ({
|
|
12
|
+
index,
|
|
13
|
+
record,
|
|
14
|
+
onUpdate,
|
|
15
|
+
editState,
|
|
16
|
+
onPressTag,
|
|
17
|
+
}: TimetableEditWrapperProps) => React.JSX.Element;
|
|
12
18
|
export {};
|