@temp-spotwork/ui 1.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -0
- package/dist/Combination-BkpbjcWz.js +672 -0
- package/dist/_commonjsHelpers-BkfeUUK-.js +28 -0
- package/dist/addYears-D3POA9ql.js +7 -0
- package/dist/bundle-mjs-CAy1p0fn.js +2261 -0
- package/dist/card-Cc2Qkiqr.js +41 -0
- package/dist/components/atoms/avatar/Avatar.stories.d.ts +7 -0
- package/dist/components/atoms/avatar/Avatar.stories.js +22 -0
- package/dist/components/atoms/avatar/avatar.d.ts +39 -0
- package/dist/components/atoms/avatar/avatar.js +76 -0
- package/dist/components/atoms/avatar/index.d.ts +2 -0
- package/dist/components/atoms/avatar/index.js +4 -0
- package/dist/components/atoms/avatar/statusIndicatorIcon.d.ts +3 -0
- package/dist/components/atoms/avatar/statusIndicatorIcon.js +33 -0
- package/dist/components/atoms/avatar/styles.d.ts +14 -0
- package/dist/components/atoms/avatar/styles.js +47 -0
- package/dist/components/atoms/badge/badge.d.ts +25 -0
- package/dist/components/atoms/badge/badge.js +38 -0
- package/dist/components/atoms/badge/badge.stories.d.ts +7 -0
- package/dist/components/atoms/badge/badge.stories.js +23 -0
- package/dist/components/atoms/badge/index.d.ts +2 -0
- package/dist/components/atoms/badge/index.js +4 -0
- package/dist/components/atoms/card/card.d.ts +8 -0
- package/dist/components/atoms/card/card.js +12 -0
- package/dist/components/atoms/card/card.stories.d.ts +13 -0
- package/dist/components/atoms/card/card.stories.js +86 -0
- package/dist/components/atoms/card/index.d.ts +1 -0
- package/dist/components/atoms/card/index.js +4 -0
- package/dist/components/atoms/card-content/label-value-pair/index.d.ts +2 -0
- package/dist/components/atoms/card-content/label-value-pair/index.js +4 -0
- package/dist/components/atoms/card-content/label-value-pair/label-value-pair.d.ts +30 -0
- package/dist/components/atoms/card-content/label-value-pair/label-value-pair.js +22 -0
- package/dist/components/atoms/card-content/label-value-pair/label-value-pair.stories.d.ts +7 -0
- package/dist/components/atoms/card-content/label-value-pair/label-value-pair.stories.js +22 -0
- package/dist/components/atoms/card-content/label-value-pair/styles.d.ts +1 -0
- package/dist/components/atoms/card-content/label-value-pair/styles.js +4 -0
- package/dist/components/atoms/card-content/note/index.d.ts +2 -0
- package/dist/components/atoms/card-content/note/index.js +4 -0
- package/dist/components/atoms/card-content/note/note.d.ts +33 -0
- package/dist/components/atoms/card-content/note/note.js +30 -0
- package/dist/components/atoms/conversation/chatheader/chatheader.d.ts +11 -0
- package/dist/components/atoms/conversation/chatheader/chatheader.js +91 -0
- package/dist/components/atoms/conversation/chatheader/index.d.ts +2 -0
- package/dist/components/atoms/conversation/chatheader/index.js +4 -0
- package/dist/components/atoms/conversation/chatheader/styles.d.ts +4 -0
- package/dist/components/atoms/conversation/chatheader/styles.js +7 -0
- package/dist/components/atoms/daybubble/recurrence-day/RecurrenceDay.stories.d.ts +7 -0
- package/dist/components/atoms/daybubble/recurrence-day/RecurrenceDay.stories.js +20 -0
- package/dist/components/atoms/daybubble/recurrence-day/index.d.ts +2 -0
- package/dist/components/atoms/daybubble/recurrence-day/index.js +4 -0
- package/dist/components/atoms/daybubble/recurrence-day/recurrence-day.d.ts +27 -0
- package/dist/components/atoms/daybubble/recurrence-day/recurrence-day.js +86 -0
- package/dist/components/atoms/form/calendar/calendar-date-cell.d.ts +68 -0
- package/dist/components/atoms/form/calendar/calendar-date-cell.js +82 -0
- package/dist/components/atoms/form/calendar/calendar-month.d.ts +57 -0
- package/dist/components/atoms/form/calendar/calendar-month.js +148 -0
- package/dist/components/atoms/form/calendar/calendar-utils.d.ts +43 -0
- package/dist/components/atoms/form/calendar/calendar-utils.js +11 -0
- package/dist/components/atoms/form/calendar/calendar.d.ts +20 -0
- package/dist/components/atoms/form/calendar/calendar.js +106 -0
- package/dist/components/atoms/form/calendar/calendar.stories.d.ts +14 -0
- package/dist/components/atoms/form/calendar/calendar.stories.js +215 -0
- package/dist/components/atoms/form/calendar/index.d.ts +2 -0
- package/dist/components/atoms/form/calendar/index.js +4 -0
- package/dist/components/atoms/form/calendar/month-header.d.ts +13 -0
- package/dist/components/atoms/form/calendar/month-header.js +19 -0
- package/dist/components/atoms/form/calendar/sticky-button.d.ts +24 -0
- package/dist/components/atoms/form/calendar/sticky-button.js +24 -0
- package/dist/components/atoms/form/calendar/types.d.ts +50 -0
- package/dist/components/atoms/form/calendar/types.js +1 -0
- package/dist/components/atoms/form/checkbox/checkbox.d.ts +37 -0
- package/dist/components/atoms/form/checkbox/checkbox.js +67 -0
- package/dist/components/atoms/form/checkbox/index.d.ts +2 -0
- package/dist/components/atoms/form/checkbox/index.js +4 -0
- package/dist/components/atoms/form/chips/chips.d.ts +46 -0
- package/dist/components/atoms/form/chips/chips.js +177 -0
- package/dist/components/atoms/form/chips/chips.stories.d.ts +7 -0
- package/dist/components/atoms/form/chips/chips.stories.js +24 -0
- package/dist/components/atoms/form/chips/index.d.ts +2 -0
- package/dist/components/atoms/form/chips/index.js +4 -0
- package/dist/components/atoms/form/chips/styles.d.ts +77 -0
- package/dist/components/atoms/form/chips/styles.js +55 -0
- package/dist/components/atoms/form/dateselect/date-calendar.d.ts +34 -0
- package/dist/components/atoms/form/dateselect/date-calendar.js +85 -0
- package/dist/components/atoms/form/dateselect/date-dropdown-header.d.ts +21 -0
- package/dist/components/atoms/form/dateselect/date-dropdown-header.js +46 -0
- package/dist/components/atoms/form/dateselect/date-dropdown.d.ts +70 -0
- package/dist/components/atoms/form/dateselect/date-dropdown.js +92 -0
- package/dist/components/atoms/form/dateselect/date-input.d.ts +59 -0
- package/dist/components/atoms/form/dateselect/date-input.js +3240 -0
- package/dist/components/atoms/form/dateselect/date-month-year-switch.d.ts +38 -0
- package/dist/components/atoms/form/dateselect/date-month-year-switch.js +67 -0
- package/dist/components/atoms/form/dateselect/dateselect.d.ts +62 -0
- package/dist/components/atoms/form/dateselect/dateselect.js +164 -0
- package/dist/components/atoms/form/dateselect/helpers.d.ts +36 -0
- package/dist/components/atoms/form/dateselect/helpers.js +83 -0
- package/dist/components/atoms/form/dateselect/index.d.ts +2 -0
- package/dist/components/atoms/form/dateselect/index.js +4 -0
- package/dist/components/atoms/form/dateselect/month-switch.d.ts +10 -0
- package/dist/components/atoms/form/dateselect/month-switch.js +135 -0
- package/dist/components/atoms/form/dateselect/styles.d.ts +10 -0
- package/dist/components/atoms/form/dateselect/styles.js +14 -0
- package/dist/components/atoms/form/dateselect/year-switch.d.ts +8 -0
- package/dist/components/atoms/form/dateselect/year-switch.js +134 -0
- package/dist/components/atoms/form/dropdown/dropdown.d.ts +65 -0
- package/dist/components/atoms/form/dropdown/dropdown.js +182 -0
- package/dist/components/atoms/form/dropdown/index.d.ts +2 -0
- package/dist/components/atoms/form/dropdown/index.js +4 -0
- package/dist/components/atoms/form/dropdown/styles.d.ts +13 -0
- package/dist/components/atoms/form/dropdown/styles.js +20 -0
- package/dist/components/atoms/form/dropdown-search/dropdown-search.d.ts +93 -0
- package/dist/components/atoms/form/dropdown-search/dropdown-search.js +197 -0
- package/dist/components/atoms/form/dropdown-search/dropdown-search.stories.d.ts +24 -0
- package/dist/components/atoms/form/dropdown-search/dropdown-search.stories.js +362 -0
- package/dist/components/atoms/form/dropdown-search/index.d.ts +2 -0
- package/dist/components/atoms/form/dropdown-search/index.js +4 -0
- package/dist/components/atoms/form/form-helper-text/form-helper-text.d.ts +22 -0
- package/dist/components/atoms/form/form-helper-text/form-helper-text.js +13 -0
- package/dist/components/atoms/form/form-helper-text/index.d.ts +1 -0
- package/dist/components/atoms/form/form-helper-text/index.js +4 -0
- package/dist/components/atoms/form/form-types.d.ts +4 -0
- package/dist/components/atoms/form/form-types.js +1 -0
- package/dist/components/atoms/form/multiselect/index.d.ts +2 -0
- package/dist/components/atoms/form/multiselect/index.js +4 -0
- package/dist/components/atoms/form/multiselect/multiselect.d.ts +63 -0
- package/dist/components/atoms/form/multiselect/multiselect.js +109 -0
- package/dist/components/atoms/form/navigation/index.d.ts +2 -0
- package/dist/components/atoms/form/navigation/index.js +4 -0
- package/dist/components/atoms/form/navigation/navigation.d.ts +19 -0
- package/dist/components/atoms/form/navigation/navigation.js +35 -0
- package/dist/components/atoms/form/navigation/styles.d.ts +5 -0
- package/dist/components/atoms/form/navigation/styles.js +8 -0
- package/dist/components/atoms/form/radiobutton/index.d.ts +2 -0
- package/dist/components/atoms/form/radiobutton/index.js +4 -0
- package/dist/components/atoms/form/radiobutton/radiobutton.d.ts +41 -0
- package/dist/components/atoms/form/radiobutton/radiobutton.js +82 -0
- package/dist/components/atoms/form/recurrence-week/RecurrenceWeek.stories.d.ts +7 -0
- package/dist/components/atoms/form/recurrence-week/RecurrenceWeek.stories.js +37 -0
- package/dist/components/atoms/form/recurrence-week/index.d.ts +2 -0
- package/dist/components/atoms/form/recurrence-week/index.js +4 -0
- package/dist/components/atoms/form/recurrence-week/recurrence-week.d.ts +32 -0
- package/dist/components/atoms/form/recurrence-week/recurrence-week.js +34 -0
- package/dist/components/atoms/form/stepper/Stepper.stories.d.ts +7 -0
- package/dist/components/atoms/form/stepper/Stepper.stories.js +30 -0
- package/dist/components/atoms/form/stepper/index.d.ts +2 -0
- package/dist/components/atoms/form/stepper/index.js +4 -0
- package/dist/components/atoms/form/stepper/stepper.d.ts +50 -0
- package/dist/components/atoms/form/stepper/stepper.js +156 -0
- package/dist/components/atoms/form/stepper/styles.d.ts +3 -0
- package/dist/components/atoms/form/stepper/styles.js +6 -0
- package/dist/components/atoms/form/switch/index.d.ts +2 -0
- package/dist/components/atoms/form/switch/index.js +4 -0
- package/dist/components/atoms/form/switch/switch.d.ts +41 -0
- package/dist/components/atoms/form/switch/switch.js +184 -0
- package/dist/components/atoms/form/switch/switch.props.d.ts +26 -0
- package/dist/components/atoms/form/switch/switch.props.js +19 -0
- package/dist/components/atoms/form/textarea/Textarea.stories.d.ts +7 -0
- package/dist/components/atoms/form/textarea/Textarea.stories.js +22 -0
- package/dist/components/atoms/form/textarea/index.d.ts +2 -0
- package/dist/components/atoms/form/textarea/index.js +4 -0
- package/dist/components/atoms/form/textarea/styles.d.ts +6 -0
- package/dist/components/atoms/form/textarea/styles.js +9 -0
- package/dist/components/atoms/form/textarea/textarea.d.ts +53 -0
- package/dist/components/atoms/form/textarea/textarea.js +91 -0
- package/dist/components/atoms/form/textfield/index.d.ts +2 -0
- package/dist/components/atoms/form/textfield/index.js +4 -0
- package/dist/components/atoms/form/textfield/styles.d.ts +4 -0
- package/dist/components/atoms/form/textfield/styles.js +7 -0
- package/dist/components/atoms/form/textfield/textfield.d.ts +90 -0
- package/dist/components/atoms/form/textfield/textfield.js +144 -0
- package/dist/components/atoms/form/time-picker/index.d.ts +2 -0
- package/dist/components/atoms/form/time-picker/index.js +4 -0
- package/dist/components/atoms/form/time-picker/time-picker-dropdown.d.ts +77 -0
- package/dist/components/atoms/form/time-picker/time-picker-dropdown.js +193 -0
- package/dist/components/atoms/form/time-picker/time-picker-input.d.ts +107 -0
- package/dist/components/atoms/form/time-picker/time-picker-input.js +248 -0
- package/dist/components/atoms/form/time-picker/time-picker.d.ts +111 -0
- package/dist/components/atoms/form/time-picker/time-picker.js +126 -0
- package/dist/components/atoms/form/time-picker/time-picker.stories.d.ts +30 -0
- package/dist/components/atoms/form/time-picker/time-picker.stories.js +368 -0
- package/dist/components/atoms/form/timeselect/hours-switch.d.ts +21 -0
- package/dist/components/atoms/form/timeselect/hours-switch.js +88 -0
- package/dist/components/atoms/form/timeselect/index.d.ts +2 -0
- package/dist/components/atoms/form/timeselect/index.js +4 -0
- package/dist/components/atoms/form/timeselect/minutes-switch.d.ts +25 -0
- package/dist/components/atoms/form/timeselect/minutes-switch.js +88 -0
- package/dist/components/atoms/form/timeselect/styles.d.ts +13 -0
- package/dist/components/atoms/form/timeselect/styles.js +16 -0
- package/dist/components/atoms/form/timeselect/timeselect.d.ts +50 -0
- package/dist/components/atoms/form/timeselect/timeselect.js +220 -0
- package/dist/components/atoms/form/typeahead/index.d.ts +2 -0
- package/dist/components/atoms/form/typeahead/index.js +4 -0
- package/dist/components/atoms/form/typeahead/styles.d.ts +7 -0
- package/dist/components/atoms/form/typeahead/styles.js +11 -0
- package/dist/components/atoms/form/typeahead/typeahead.d.ts +83 -0
- package/dist/components/atoms/form/typeahead/typeahead.js +146 -0
- package/dist/components/atoms/form/utils-for-forms/state-functions.d.ts +6 -0
- package/dist/components/atoms/form/utils-for-forms/state-functions.js +8 -0
- package/dist/components/atoms/horizontal-border/horizontal-border.d.ts +21 -0
- package/dist/components/atoms/horizontal-border/horizontal-border.js +7 -0
- package/dist/components/atoms/horizontal-border/index.d.ts +1 -0
- package/dist/components/atoms/horizontal-border/index.js +4 -0
- package/dist/components/atoms/icons/iconMap.d.ts +313 -0
- package/dist/components/atoms/icons/iconMap.js +214 -0
- package/dist/components/atoms/icons/icons.d.ts +59 -0
- package/dist/components/atoms/icons/icons.js +78 -0
- package/dist/components/atoms/icons/icons.stories.d.ts +22 -0
- package/dist/components/atoms/icons/icons.stories.js +428 -0
- package/dist/components/atoms/icons/iconsSVGs/Countries/CAN.d.ts +2 -0
- package/dist/components/atoms/icons/iconsSVGs/Countries/CAN.js +12 -0
- package/dist/components/atoms/icons/iconsSVGs/Countries/USA.d.ts +2 -0
- package/dist/components/atoms/icons/iconsSVGs/Countries/USA.js +49 -0
- package/dist/components/atoms/icons/iconsSVGs/Countries/index.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Countries/index.js +6 -0
- package/dist/components/atoms/icons/iconsSVGs/ExtraLarge/EmptyTemplate.d.ts +2 -0
- package/dist/components/atoms/icons/iconsSVGs/ExtraLarge/EmptyTemplate.js +106 -0
- package/dist/components/atoms/icons/iconsSVGs/ExtraLarge/PostAShift.d.ts +2 -0
- package/dist/components/atoms/icons/iconsSVGs/ExtraLarge/PostAShift.js +112 -0
- package/dist/components/atoms/icons/iconsSVGs/ExtraLarge/index.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/ExtraLarge/index.js +6 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/AbnormalLastShift.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/AbnormalLastShift.js +21 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Add.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Add.js +21 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/AdvancedSearch.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/AdvancedSearch.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/ArrowLeft.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/ArrowLeft.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/ArrowRight.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/ArrowRight.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Ascending.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Ascending.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Attach.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Attach.js +21 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Bell.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Bell.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/BellUnread.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/BellUnread.js +26 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Building.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Building.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Calendar.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Calendar.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Cancellation.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Cancellation.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Chapters.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Chapters.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/CheckIn.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/CheckIn.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/ChevronDown.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/ChevronDown.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/ChevronLeft.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/ChevronLeft.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/ChevronRight.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/ChevronRight.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/ChevronUp.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/ChevronUp.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Clock.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Clock.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Contact.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Contact.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Copy.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Copy.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Cross.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Cross.js +21 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Descending.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Descending.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/DoubleTick.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/DoubleTick.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Duplicate.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Duplicate.js +24 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Edit.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Edit.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/EyeClose.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/EyeClose.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/EyeOpen.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/EyeOpen.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Feedback.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Feedback.js +25 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/File.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/File.js +12 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/FlaggedMessage.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/FlaggedMessage.js +21 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/HamburgerMenu.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/HamburgerMenu.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Jobs.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Jobs.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/KebabMenu.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/KebabMenu.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/LocationDisabled.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/LocationDisabled.js +21 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/MagnifyingGlass.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/MagnifyingGlass.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Maximize.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Maximize.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Maximize1.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Maximize1.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Minimize.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Minimize.js +21 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/NewSpotter.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/NewSpotter.js +21 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/OpenSeparately.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/OpenSeparately.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/PlaceholderIcon.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/PlaceholderIcon.js +16 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Profile.d.ts +6 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Profile.js +24 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Restore.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Restore.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Send.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Send.js +21 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Settings.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Settings.js +33 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Shifts.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Shifts.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Sidepeak.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Sidepeak.js +5 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Sort.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Sort.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Subtract.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Subtract.js +21 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Summary.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Summary.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Support.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Support.js +24 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/SwitchToClassic.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/SwitchToClassic.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Tick.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Tick.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Timer.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Timer.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Trash.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Trash.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Undo.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Undo.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Verification.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/Verification.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/index.d.ts +60 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/index.js +118 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Add.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Add.js +21 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Alert.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Alert.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/ArrowRight.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/ArrowRight.js +21 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/ArrowUp.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/ArrowUp.js +21 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Ascending.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Ascending.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Calendar.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Calendar.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/CaretDown.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/CaretDown.js +21 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/CaretRight.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/CaretRight.js +21 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/CheckIn.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/CheckIn.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/CheckInCircle.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/CheckInCircle.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/CheckOut.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/CheckOut.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/CheckedIn.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/CheckedIn.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/CheckedOut.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/CheckedOut.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/ChevronDown.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/ChevronDown.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/ChevronLeft.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/ChevronLeft.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/ChevronRight.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/ChevronRight.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/ChevronUp.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/ChevronUp.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Collapse.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Collapse.js +22 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Copy.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Copy.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Cross.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Cross.js +21 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/CrossInCircle.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/CrossInCircle.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Descending.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Descending.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/DistanceSmall.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/DistanceSmall.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Empty.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Empty.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Expand.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Expand.js +22 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Incomplete.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Incomplete.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Info.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Info.js +13 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/KebabMenu.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/KebabMenu.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/LocationPin.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/LocationPin.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/MagnifyingGlass.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/MagnifyingGlass.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Notes.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Notes.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/OpenSeparately.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/OpenSeparately.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/PlaceholderIcon.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/PlaceholderIcon.js +16 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Profile.d.ts +6 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Profile.js +24 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/ReadStatus.d.ts +8 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/ReadStatus.js +37 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Shield.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Shield.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/SidepeakSmall.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/SidepeakSmall.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Sort.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Sort.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Success.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Success.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Tick.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Tick.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/UnsavedChanges.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/UnsavedChanges.js +32 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Upload.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Upload.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Waiting.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Waiting.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Warning.d.ts +4 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/Warning.js +23 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/index.d.ts +46 -0
- package/dist/components/atoms/icons/iconsSVGs/Small/index.js +90 -0
- package/dist/components/atoms/icons/index.d.ts +4 -0
- package/dist/components/atoms/icons/index.js +6 -0
- package/dist/components/atoms/icons/styles.d.ts +3 -0
- package/dist/components/atoms/icons/styles.js +6 -0
- package/dist/components/atoms/message/index.d.ts +2 -0
- package/dist/components/atoms/message/index.js +4 -0
- package/dist/components/atoms/message/message.d.ts +37 -0
- package/dist/components/atoms/message/message.js +60 -0
- package/dist/components/atoms/message/message.stories.d.ts +7 -0
- package/dist/components/atoms/message/message.stories.js +20 -0
- package/dist/components/atoms/message/styles.d.ts +15 -0
- package/dist/components/atoms/message/styles.js +20 -0
- package/dist/components/atoms/navigation/navigation-item/index.d.ts +2 -0
- package/dist/components/atoms/navigation/navigation-item/index.js +4 -0
- package/dist/components/atoms/navigation/navigation-item/navigation-item.d.ts +29 -0
- package/dist/components/atoms/navigation/navigation-item/navigation-item.js +64 -0
- package/dist/components/atoms/navigation/navigation-item/styles.d.ts +2 -0
- package/dist/components/atoms/navigation/navigation-item/styles.js +5 -0
- package/dist/components/atoms/small-large-text/index.d.ts +1 -0
- package/dist/components/atoms/small-large-text/index.js +4 -0
- package/dist/components/atoms/small-large-text/small-large-text.d.ts +17 -0
- package/dist/components/atoms/small-large-text/small-large-text.js +35 -0
- package/dist/components/atoms/tab/Tab.stories.d.ts +7 -0
- package/dist/components/atoms/tab/Tab.stories.js +20 -0
- package/dist/components/atoms/tab/index.d.ts +2 -0
- package/dist/components/atoms/tab/index.js +4 -0
- package/dist/components/atoms/tab/styles.d.ts +4 -0
- package/dist/components/atoms/tab/styles.js +7 -0
- package/dist/components/atoms/tab/tab.d.ts +34 -0
- package/dist/components/atoms/tab/tab.js +44 -0
- package/dist/components/atoms/tooltip/index.d.ts +1 -0
- package/dist/components/atoms/tooltip/index.js +4 -0
- package/dist/components/atoms/tooltip/tooltip.d.ts +54 -0
- package/dist/components/atoms/tooltip/tooltip.js +38 -0
- package/dist/components/atoms/tooltip/tooltip.stories.d.ts +18 -0
- package/dist/components/atoms/tooltip/tooltip.stories.js +150 -0
- package/dist/components/molecules/alert/alert.d.ts +24 -0
- package/dist/components/molecules/alert/alert.js +78 -0
- package/dist/components/molecules/alert/index.d.ts +1 -0
- package/dist/components/molecules/alert/index.js +4 -0
- package/dist/components/molecules/button/Button.stories.d.ts +7 -0
- package/dist/components/molecules/button/Button.stories.js +20 -0
- package/dist/components/molecules/button/button.d.ts +53 -0
- package/dist/components/molecules/button/button.js +91 -0
- package/dist/components/molecules/button/index.d.ts +2 -0
- package/dist/components/molecules/button/index.js +4 -0
- package/dist/components/molecules/button/loading-spinner.d.ts +7 -0
- package/dist/components/molecules/button/loading-spinner.js +44 -0
- package/dist/components/molecules/button/styles.d.ts +7 -0
- package/dist/components/molecules/button/styles.js +93 -0
- package/dist/components/molecules/card-content/notes-and-history/NotesAndHistory.stories.d.ts +7 -0
- package/dist/components/molecules/card-content/notes-and-history/NotesAndHistory.stories.js +24 -0
- package/dist/components/molecules/card-content/notes-and-history/index.d.ts +2 -0
- package/dist/components/molecules/card-content/notes-and-history/index.js +4 -0
- package/dist/components/molecules/card-content/notes-and-history/notes-and-history.d.ts +15 -0
- package/dist/components/molecules/card-content/notes-and-history/notes-and-history.js +29 -0
- package/dist/components/molecules/collapsible-card/Collapsiblecard.stories.d.ts +7 -0
- package/dist/components/molecules/collapsible-card/Collapsiblecard.stories.js +20 -0
- package/dist/components/molecules/collapsible-card/collapsible-card.d.ts +44 -0
- package/dist/components/molecules/collapsible-card/collapsible-card.js +87 -0
- package/dist/components/molecules/collapsible-card/index.d.ts +2 -0
- package/dist/components/molecules/collapsible-card/index.js +4 -0
- package/dist/components/molecules/conversation/contact/coloring.d.ts +6 -0
- package/dist/components/molecules/conversation/contact/coloring.js +7 -0
- package/dist/components/molecules/conversation/contact/contact.d.ts +25 -0
- package/dist/components/molecules/conversation/contact/contact.js +56 -0
- package/dist/components/molecules/conversation/contact/index.d.ts +2 -0
- package/dist/components/molecules/conversation/contact/index.js +4 -0
- package/dist/components/molecules/conversation/contact/styles.d.ts +18 -0
- package/dist/components/molecules/conversation/contact/styles.js +16 -0
- package/dist/components/molecules/conversation/message-editor/MessageEditor.stories.d.ts +7 -0
- package/dist/components/molecules/conversation/message-editor/MessageEditor.stories.js +20 -0
- package/dist/components/molecules/conversation/message-editor/index.d.ts +2 -0
- package/dist/components/molecules/conversation/message-editor/index.js +4 -0
- package/dist/components/molecules/conversation/message-editor/message-editor.d.ts +17 -0
- package/dist/components/molecules/conversation/message-editor/message-editor.js +38 -0
- package/dist/components/molecules/conversation/message-editor/styles.d.ts +1 -0
- package/dist/components/molecules/conversation/message-editor/styles.js +4 -0
- package/dist/components/molecules/conversation/message-group-composer/MessageGroupComposer.stories.d.ts +7 -0
- package/dist/components/molecules/conversation/message-group-composer/MessageGroupComposer.stories.js +20 -0
- package/dist/components/molecules/conversation/message-group-composer/index.d.ts +2 -0
- package/dist/components/molecules/conversation/message-group-composer/index.js +4 -0
- package/dist/components/molecules/conversation/message-group-composer/message-group-composer.d.ts +9 -0
- package/dist/components/molecules/conversation/message-group-composer/message-group-composer.js +41 -0
- package/dist/components/molecules/conversation/message-group-composer/styles.d.ts +4 -0
- package/dist/components/molecules/conversation/message-group-composer/styles.js +7 -0
- package/dist/components/molecules/datatables/cell/Cell.stories.d.ts +7 -0
- package/dist/components/molecules/datatables/cell/Cell.stories.js +20 -0
- package/dist/components/molecules/datatables/cell/cell.d.ts +62 -0
- package/dist/components/molecules/datatables/cell/cell.js +51 -0
- package/dist/components/molecules/datatables/cell/index.d.ts +2 -0
- package/dist/components/molecules/datatables/cell/index.js +4 -0
- package/dist/components/molecules/datatables/cell/styles.d.ts +3 -0
- package/dist/components/molecules/datatables/cell/styles.js +12 -0
- package/dist/components/molecules/datatables/row/Row.stories.d.ts +7 -0
- package/dist/components/molecules/datatables/row/Row.stories.js +20 -0
- package/dist/components/molecules/datatables/row/index.d.ts +2 -0
- package/dist/components/molecules/datatables/row/index.js +4 -0
- package/dist/components/molecules/datatables/row/row.d.ts +26 -0
- package/dist/components/molecules/datatables/row/row.js +21 -0
- package/dist/components/molecules/datatables/row/styles.d.ts +1 -0
- package/dist/components/molecules/datatables/row/styles.js +4 -0
- package/dist/components/molecules/datatables/row-header/RowHeader.stories.d.ts +7 -0
- package/dist/components/molecules/datatables/row-header/RowHeader.stories.js +20 -0
- package/dist/components/molecules/datatables/row-header/index.d.ts +2 -0
- package/dist/components/molecules/datatables/row-header/index.js +4 -0
- package/dist/components/molecules/datatables/row-header/row-header.d.ts +48 -0
- package/dist/components/molecules/datatables/row-header/row-header.js +63 -0
- package/dist/components/molecules/datatables/row-header/styles.d.ts +3 -0
- package/dist/components/molecules/datatables/row-header/styles.js +6 -0
- package/dist/components/molecules/dataviz/donut-chart/DonutChart.stories.d.ts +7 -0
- package/dist/components/molecules/dataviz/donut-chart/DonutChart.stories.js +20 -0
- package/dist/components/molecules/dataviz/donut-chart/donut-chart.d.ts +15 -0
- package/dist/components/molecules/dataviz/donut-chart/donut-chart.js +5519 -0
- package/dist/components/molecules/dataviz/donut-chart/index.d.ts +2 -0
- package/dist/components/molecules/dataviz/donut-chart/index.js +4 -0
- package/dist/components/molecules/dataviz/donut-chart/styles.d.ts +11 -0
- package/dist/components/molecules/dataviz/donut-chart/styles.js +14 -0
- package/dist/components/molecules/dataviz/dot-matrix/DotMatrix.stories.d.ts +7 -0
- package/dist/components/molecules/dataviz/dot-matrix/DotMatrix.stories.js +20 -0
- package/dist/components/molecules/dataviz/dot-matrix/dot-matrix.d.ts +14 -0
- package/dist/components/molecules/dataviz/dot-matrix/dot-matrix.js +67 -0
- package/dist/components/molecules/dataviz/dot-matrix/index.d.ts +2 -0
- package/dist/components/molecules/dataviz/dot-matrix/index.js +4 -0
- package/dist/components/molecules/dataviz/dot-matrix/styles.d.ts +8 -0
- package/dist/components/molecules/dataviz/dot-matrix/styles.js +11 -0
- package/dist/components/molecules/dataviz/legend/index.d.ts +2 -0
- package/dist/components/molecules/dataviz/legend/index.js +4 -0
- package/dist/components/molecules/dataviz/legend/legend.d.ts +12 -0
- package/dist/components/molecules/dataviz/legend/legend.js +53 -0
- package/dist/components/molecules/dataviz/progress-bar/ProgressBar.stories.d.ts +13 -0
- package/dist/components/molecules/dataviz/progress-bar/ProgressBar.stories.js +88 -0
- package/dist/components/molecules/dataviz/progress-bar/index.d.ts +2 -0
- package/dist/components/molecules/dataviz/progress-bar/index.js +4 -0
- package/dist/components/molecules/dataviz/progress-bar/progress-bar.d.ts +34 -0
- package/dist/components/molecules/dataviz/progress-bar/progress-bar.js +48 -0
- package/dist/components/molecules/dataviz/progress-bar/styles.d.ts +5 -0
- package/dist/components/molecules/dataviz/progress-bar/styles.js +8 -0
- package/dist/components/molecules/dataviz/single-stacked-bar/SingleStackedBar.stories.d.ts +7 -0
- package/dist/components/molecules/dataviz/single-stacked-bar/SingleStackedBar.stories.js +20 -0
- package/dist/components/molecules/dataviz/single-stacked-bar/index.d.ts +2 -0
- package/dist/components/molecules/dataviz/single-stacked-bar/index.js +4 -0
- package/dist/components/molecules/dataviz/single-stacked-bar/single-stacked-bar.d.ts +15 -0
- package/dist/components/molecules/dataviz/single-stacked-bar/single-stacked-bar.js +81 -0
- package/dist/components/molecules/dialog/dialog.d.ts +25 -0
- package/dist/components/molecules/dialog/dialog.js +100 -0
- package/dist/components/molecules/dialog/index.d.ts +1 -0
- package/dist/components/molecules/dialog/index.js +4 -0
- package/dist/components/molecules/dialog/use-ui-element-size.d.ts +31 -0
- package/dist/components/molecules/dialog/use-ui-element-size.js +24 -0
- package/dist/components/molecules/drawer/Drawer.stories.d.ts +22 -0
- package/dist/components/molecules/drawer/Drawer.stories.js +383 -0
- package/dist/components/molecules/drawer/drawer.d.ts +66 -0
- package/dist/components/molecules/drawer/drawer.js +126 -0
- package/dist/components/molecules/drawer/index.d.ts +2 -0
- package/dist/components/molecules/drawer/index.js +4 -0
- package/dist/components/molecules/filter/checkbox/checkbox.d.ts +19 -0
- package/dist/components/molecules/filter/checkbox/checkbox.js +45 -0
- package/dist/components/molecules/filter/checkbox/index.d.ts +2 -0
- package/dist/components/molecules/filter/checkbox/index.js +4 -0
- package/dist/components/molecules/filter/context-search/context-search.d.ts +19 -0
- package/dist/components/molecules/filter/context-search/context-search.js +58 -0
- package/dist/components/molecules/filter/context-search/index.d.ts +2 -0
- package/dist/components/molecules/filter/context-search/index.js +4 -0
- package/dist/components/molecules/filter/date-range-selector/date-range-selector.d.ts +28 -0
- package/dist/components/molecules/filter/date-range-selector/date-range-selector.js +306 -0
- package/dist/components/molecules/filter/date-range-selector/index.d.ts +2 -0
- package/dist/components/molecules/filter/date-range-selector/index.js +4 -0
- package/dist/components/molecules/filter/date-selector/DateSelector.stories.d.ts +7 -0
- package/dist/components/molecules/filter/date-selector/DateSelector.stories.js +20 -0
- package/dist/components/molecules/filter/date-selector/date-selector.d.ts +31 -0
- package/dist/components/molecules/filter/date-selector/date-selector.js +243 -0
- package/dist/components/molecules/filter/date-selector/index.d.ts +2 -0
- package/dist/components/molecules/filter/date-selector/index.js +4 -0
- package/dist/components/molecules/filter/dropdown-selector/dropdown-selector.d.ts +23 -0
- package/dist/components/molecules/filter/dropdown-selector/dropdown-selector.js +172 -0
- package/dist/components/molecules/filter/dropdown-selector/index.d.ts +2 -0
- package/dist/components/molecules/filter/dropdown-selector/index.js +4 -0
- package/dist/components/molecules/filter/dropdown-selector/styles.d.ts +13 -0
- package/dist/components/molecules/filter/dropdown-selector/styles.js +22 -0
- package/dist/components/molecules/filter/range-selector/RangeSelector.stories.d.ts +7 -0
- package/dist/components/molecules/filter/range-selector/RangeSelector.stories.js +20 -0
- package/dist/components/molecules/filter/range-selector/index.d.ts +2 -0
- package/dist/components/molecules/filter/range-selector/index.js +4 -0
- package/dist/components/molecules/filter/range-selector/range-selector.d.ts +33 -0
- package/dist/components/molecules/filter/range-selector/range-selector.js +630 -0
- package/dist/components/molecules/filter/range-selector/styles.d.ts +17 -0
- package/dist/components/molecules/filter/range-selector/styles.js +25 -0
- package/dist/components/molecules/filter/segmented-control/index.d.ts +2 -0
- package/dist/components/molecules/filter/segmented-control/index.js +4 -0
- package/dist/components/molecules/filter/segmented-control/segmented-control.d.ts +23 -0
- package/dist/components/molecules/filter/segmented-control/segmented-control.js +43 -0
- package/dist/components/molecules/filter/segmented-control/styles.d.ts +7 -0
- package/dist/components/molecules/filter/segmented-control/styles.js +11 -0
- package/dist/components/molecules/form/radiogroup/index.d.ts +2 -0
- package/dist/components/molecules/form/radiogroup/index.js +4 -0
- package/dist/components/molecules/form/radiogroup/radiogroup.d.ts +66 -0
- package/dist/components/molecules/form/radiogroup/radiogroup.js +80 -0
- package/dist/components/molecules/form/radiogroup/radiogroup.stories.d.ts +12 -0
- package/dist/components/molecules/form/radiogroup/radiogroup.stories.js +95 -0
- package/dist/components/molecules/link/Link.stories.d.ts +7 -0
- package/dist/components/molecules/link/Link.stories.js +20 -0
- package/dist/components/molecules/link/index.d.ts +2 -0
- package/dist/components/molecules/link/index.js +4 -0
- package/dist/components/molecules/link/link.d.ts +34 -0
- package/dist/components/molecules/link/link.js +78 -0
- package/dist/components/molecules/link/styles.d.ts +4 -0
- package/dist/components/molecules/link/styles.js +7 -0
- package/dist/components/molecules/navigation/context-menu/context-menu.d.ts +13 -0
- package/dist/components/molecules/navigation/context-menu/context-menu.js +28 -0
- package/dist/components/molecules/navigation/header/Header.stories.d.ts +7 -0
- package/dist/components/molecules/navigation/header/Header.stories.js +20 -0
- package/dist/components/molecules/navigation/header/header.d.ts +37 -0
- package/dist/components/molecules/navigation/header/header.js +38 -0
- package/dist/components/molecules/navigation/header/index.d.ts +2 -0
- package/dist/components/molecules/navigation/header/index.js +4 -0
- package/dist/components/molecules/navigation/header/styles.d.ts +6 -0
- package/dist/components/molecules/navigation/header/styles.js +9 -0
- package/dist/components/molecules/navigation/menubar/index.d.ts +2 -0
- package/dist/components/molecules/navigation/menubar/index.js +4 -0
- package/dist/components/molecules/navigation/menubar/menubar.d.ts +27 -0
- package/dist/components/molecules/navigation/menubar/menubar.js +27 -0
- package/dist/components/molecules/navigation/sidebar/Sidebar.stories.d.ts +7 -0
- package/dist/components/molecules/navigation/sidebar/Sidebar.stories.js +20 -0
- package/dist/components/molecules/navigation/sidebar/index.d.ts +2 -0
- package/dist/components/molecules/navigation/sidebar/index.js +4 -0
- package/dist/components/molecules/navigation/sidebar/sidebar.d.ts +33 -0
- package/dist/components/molecules/navigation/sidebar/sidebar.js +53 -0
- package/dist/components/molecules/notifications/content/Content.stories.d.ts +7 -0
- package/dist/components/molecules/notifications/content/Content.stories.js +20 -0
- package/dist/components/molecules/notifications/content/coloring.d.ts +7 -0
- package/dist/components/molecules/notifications/content/coloring.js +9 -0
- package/dist/components/molecules/notifications/content/content.d.ts +29 -0
- package/dist/components/molecules/notifications/content/content.js +51 -0
- package/dist/components/molecules/notifications/content/index.d.ts +2 -0
- package/dist/components/molecules/notifications/content/index.js +4 -0
- package/dist/components/molecules/snackbar/Snackbar.stories.d.ts +16 -0
- package/dist/components/molecules/snackbar/Snackbar.stories.js +170 -0
- package/dist/components/molecules/snackbar/index.d.ts +2 -0
- package/dist/components/molecules/snackbar/index.js +4 -0
- package/dist/components/molecules/snackbar/snackbar.d.ts +41 -0
- package/dist/components/molecules/snackbar/snackbar.js +31 -0
- package/dist/components/molecules/snackbar/styles.d.ts +5 -0
- package/dist/components/molecules/snackbar/styles.js +9 -0
- package/dist/components/molecules/tab-group/index.d.ts +3 -0
- package/dist/components/molecules/tab-group/index.js +4 -0
- package/dist/components/molecules/tab-group/styles.d.ts +3 -0
- package/dist/components/molecules/tab-group/styles.js +6 -0
- package/dist/components/molecules/tab-group/tab-group.d.ts +19 -0
- package/dist/components/molecules/tab-group/tab-group.js +23 -0
- package/dist/components/molecules/tab-group/tabgroup.stories.d.ts +12 -0
- package/dist/components/molecules/tab-group/tabgroup.stories.js +285 -0
- package/dist/components/styles/colors/colormap.d.ts +277 -0
- package/dist/components/styles/colors/colormap.js +279 -0
- package/dist/components/styles/colors/colors.d.ts +1 -0
- package/dist/components/styles/colors/colors.js +89 -0
- package/dist/components/styles/colors/index.d.ts +2 -0
- package/dist/components/styles/colors/index.js +26 -0
- package/dist/components/styles/dashedBorder/DashedLineSVG.d.ts +1 -0
- package/dist/components/styles/dashedBorder/DashedLineSVG.js +17 -0
- package/dist/components/styles/dashedBorder/index.d.ts +1 -0
- package/dist/components/styles/dashedBorder/index.js +4 -0
- package/dist/components/styles/defaults/defaults.d.ts +65 -0
- package/dist/components/styles/defaults/defaults.js +72 -0
- package/dist/components/styles/defaults/index.d.ts +1 -0
- package/dist/components/styles/defaults/index.js +9 -0
- package/dist/components/styles/tailwind-config/index.d.ts +3 -0
- package/dist/components/styles/tailwind-config/index.js +109 -0
- package/dist/components/styles/tool-tip/styles.d.ts +2 -0
- package/dist/components/styles/tool-tip/styles.js +5 -0
- package/dist/components/styles/typography/index.d.ts +3 -0
- package/dist/components/styles/typography/index.js +10 -0
- package/dist/components/styles/typography/style.d.ts +50 -0
- package/dist/components/styles/typography/style.js +48 -0
- package/dist/components/styles/typography/typography.d.ts +413 -0
- package/dist/components/styles/typography/typography.js +59 -0
- package/dist/constants-BfMb81ht.js +8 -0
- package/dist/format-BwmhcciO.js +1224 -0
- package/dist/hooks/use-sticky-z-index.d.ts +31 -0
- package/dist/hooks/use-sticky-z-index.js +37 -0
- package/dist/index-BKdkX0lZ.js +924 -0
- package/dist/index-BZPx6jYI.js +8 -0
- package/dist/index-C0ZrzaoZ.js +238 -0
- package/dist/index-CYyrKZeH.js +3716 -0
- package/dist/index-CnWyMXBX.js +824 -0
- package/dist/index-DNpMaKvH.js +347 -0
- package/dist/index-DfdAzObv.js +24167 -0
- package/dist/index-DotfMcM0.js +21051 -0
- package/dist/index-DrfOymtc.js +237 -0
- package/dist/index-OIdMhwsO.js +53 -0
- package/dist/index-fN7hCOo3.js +42 -0
- package/dist/index-rKs9bXHr.js +6 -0
- package/dist/isBefore-D0yKF9R5.js +8 -0
- package/dist/isToday-DmBTkQMq.js +1606 -0
- package/dist/isWithinInterval-BTUruC3j.js +11 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.js +20 -0
- package/dist/lodash-BRbpQ7iy.js +3676 -0
- package/dist/main.d.ts +102 -0
- package/dist/main.js +166 -0
- package/dist/purify.es-eYFoHPwR.js +528 -0
- package/dist/react-spring_web.modern-BLL8Qmtg.js +2345 -0
- package/dist/set-CXVt2sL3.js +20 -0
- package/dist/snackbar-BaF8Ts3S.js +505 -0
- package/dist/startOfToday-BPMZZniU.js +7 -0
- package/dist/startOfWeek-DBvLd9He.js +23 -0
- package/dist/toDate-DF9e2eS8.js +7 -0
- package/package.json +93 -0
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { jsx as g, Fragment as Z, jsxs as _ } from "react/jsx-runtime";
|
|
2
|
+
import { useState as B, useRef as N, useMemo as A, useCallback as H, useEffect as z } from "react";
|
|
3
|
+
import { m as i } from "../../../../index-CYyrKZeH.js";
|
|
4
|
+
import { CalendarDateCell as tt } from "./calendar-date-cell.js";
|
|
5
|
+
import { isDateSelectable as et, isDateInCurrentMonth as nt, isDateDisabled as ot } from "./calendar-utils.js";
|
|
6
|
+
import { MonthHeader as rt } from "./month-header.js";
|
|
7
|
+
function st(r, s) {
|
|
8
|
+
return r.x < s.x + s.width && r.x + r.width > s.x && r.y < s.y + s.height && r.y + r.height > s.y;
|
|
9
|
+
}
|
|
10
|
+
const ft = ({
|
|
11
|
+
readOnly: r = !1,
|
|
12
|
+
selectedDates: s,
|
|
13
|
+
onDateChange: D,
|
|
14
|
+
month: u,
|
|
15
|
+
disabled: v,
|
|
16
|
+
minDate: R,
|
|
17
|
+
maxDate: Y,
|
|
18
|
+
timezone: t,
|
|
19
|
+
overrideTooltip: T
|
|
20
|
+
}) => {
|
|
21
|
+
const [y, b] = B(!1), [l, I] = B(null), [d, E] = B(null), f = N(null), S = N(/* @__PURE__ */ new Map()), U = A(() => {
|
|
22
|
+
const n = i.tz(u, t).startOf("month"), o = i.tz(u, t).endOf("month"), c = i.tz(n, t).startOf("week"), e = i.tz(o, t).endOf("week"), x = [];
|
|
23
|
+
let a = i.tz(c, t);
|
|
24
|
+
for (; a.isSameOrBefore(e); )
|
|
25
|
+
x.push(a.tz(t).toDate()), a = a.clone().add(1, "day");
|
|
26
|
+
return x;
|
|
27
|
+
}, [u]), G = H((n, o) => {
|
|
28
|
+
o ? S.current.set(n, o) : S.current.delete(n);
|
|
29
|
+
}, []), J = H(
|
|
30
|
+
(n) => {
|
|
31
|
+
if (v || r || !f.current) return;
|
|
32
|
+
const o = f.current.getBoundingClientRect(), c = n.clientX - o.left, e = n.clientY - o.top;
|
|
33
|
+
I({ x: c, y: e }), E({ x: c, y: e });
|
|
34
|
+
},
|
|
35
|
+
[v, r]
|
|
36
|
+
);
|
|
37
|
+
z(() => {
|
|
38
|
+
const n = (c) => {
|
|
39
|
+
if (!f.current || !l || r) return;
|
|
40
|
+
const e = f.current.getBoundingClientRect(), x = c.clientX - e.left, a = c.clientY - e.top;
|
|
41
|
+
Math.sqrt(
|
|
42
|
+
Math.pow(x - l.x, 2) + Math.pow(a - l.y, 2)
|
|
43
|
+
) > 3 && (y || b(!0), E({ x, y: a }));
|
|
44
|
+
}, o = (c) => {
|
|
45
|
+
const e = l, x = d;
|
|
46
|
+
if (b(!1), I(null), E(null), !e || !f.current || r)
|
|
47
|
+
return;
|
|
48
|
+
b(!1);
|
|
49
|
+
const a = f.current.getBoundingClientRect(), h = x || {
|
|
50
|
+
x: c.clientX - a.left,
|
|
51
|
+
y: c.clientY - a.top
|
|
52
|
+
}, O = Math.sqrt(
|
|
53
|
+
Math.pow(h.x - e.x, 2) + Math.pow(h.y - e.y, 2)
|
|
54
|
+
), P = 5, M = new Set(s.map((p) => i.tz(p.date, t).format("YYYY-MM-DD")));
|
|
55
|
+
let $ = !1;
|
|
56
|
+
if (O < P)
|
|
57
|
+
return;
|
|
58
|
+
{
|
|
59
|
+
const p = Math.min(e.x, h.x), m = Math.min(e.y, h.y), C = Math.max(e.x, h.x), X = Math.max(e.y, h.y), Q = {
|
|
60
|
+
x: p,
|
|
61
|
+
y: m,
|
|
62
|
+
width: C - p,
|
|
63
|
+
height: X - m
|
|
64
|
+
};
|
|
65
|
+
S.current.forEach((q, F) => {
|
|
66
|
+
if (q) {
|
|
67
|
+
const w = q.getBoundingClientRect(), V = {
|
|
68
|
+
x: w.left - a.left,
|
|
69
|
+
y: w.top - a.top,
|
|
70
|
+
width: w.width,
|
|
71
|
+
height: w.height
|
|
72
|
+
};
|
|
73
|
+
if (st(Q, V)) {
|
|
74
|
+
const k = i.tz(F, t).toDate(), L = i.tz(F, t).format("YYYY-MM-DD"), W = et(k, s, t);
|
|
75
|
+
nt(k, u, t) && !ot(k, t, R, Y) && W && (M.has(L) ? M.delete(L) : M.add(L), $ = !0);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
const j = Array.from(M).map((p) => {
|
|
81
|
+
const m = i.tz(p, t).toDate(), C = s.find((X) => i.tz(X.date, t).isSame(m, "day"));
|
|
82
|
+
return C ? {
|
|
83
|
+
...C
|
|
84
|
+
} : {
|
|
85
|
+
date: m
|
|
86
|
+
};
|
|
87
|
+
});
|
|
88
|
+
($ || j.length !== s.length) && D(j);
|
|
89
|
+
};
|
|
90
|
+
return l ? (document.addEventListener("mousemove", n), document.addEventListener("mouseup", o)) : (document.removeEventListener("mousemove", n), document.removeEventListener("mouseup", o)), () => {
|
|
91
|
+
document.removeEventListener("mousemove", n), document.removeEventListener("mouseup", o);
|
|
92
|
+
};
|
|
93
|
+
}, [
|
|
94
|
+
y,
|
|
95
|
+
s,
|
|
96
|
+
l,
|
|
97
|
+
d,
|
|
98
|
+
D,
|
|
99
|
+
R,
|
|
100
|
+
Y,
|
|
101
|
+
u,
|
|
102
|
+
r,
|
|
103
|
+
t
|
|
104
|
+
]);
|
|
105
|
+
const K = () => {
|
|
106
|
+
if (!y || !l || !d)
|
|
107
|
+
return { display: "none" };
|
|
108
|
+
const n = Math.min(l.x, d.x), o = Math.min(l.y, d.y), c = Math.max(l.x, d.x), e = Math.max(l.y, d.y);
|
|
109
|
+
return {
|
|
110
|
+
position: "absolute",
|
|
111
|
+
left: `${n}px`,
|
|
112
|
+
top: `${o}px`,
|
|
113
|
+
width: `${c - n}px`,
|
|
114
|
+
height: `${e - o}px`,
|
|
115
|
+
backgroundColor: "rgba(25, 84, 220, 0.3)",
|
|
116
|
+
// Blue color matching the image
|
|
117
|
+
border: "1px dashed #1954DC",
|
|
118
|
+
// Darker blue border
|
|
119
|
+
pointerEvents: "none",
|
|
120
|
+
zIndex: 30,
|
|
121
|
+
borderRadius: "4px"
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
return /* @__PURE__ */ g(Z, { children: /* @__PURE__ */ _("div", { ref: f, className: "p-xl relative grow", onMouseDown: J, children: [
|
|
125
|
+
/* @__PURE__ */ g(rt, { month: u, timezone: t }),
|
|
126
|
+
/* @__PURE__ */ g("div", { className: "grid grid-cols-7 gap-xl select-none", children: U.map((n, o) => /* @__PURE__ */ g(
|
|
127
|
+
tt,
|
|
128
|
+
{
|
|
129
|
+
date: n,
|
|
130
|
+
selectedDates: s,
|
|
131
|
+
disabled: v,
|
|
132
|
+
onDateChange: D,
|
|
133
|
+
onCellRef: G,
|
|
134
|
+
minDate: R,
|
|
135
|
+
maxDate: Y,
|
|
136
|
+
month: u,
|
|
137
|
+
timezone: t,
|
|
138
|
+
readOnly: r,
|
|
139
|
+
overrideTooltip: T
|
|
140
|
+
},
|
|
141
|
+
o
|
|
142
|
+
)) }),
|
|
143
|
+
y && /* @__PURE__ */ g("div", { style: K() })
|
|
144
|
+
] }) });
|
|
145
|
+
};
|
|
146
|
+
export {
|
|
147
|
+
ft as CalendarDates
|
|
148
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { CalendarDate } from './types';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Check if a date is currently selected in the calendar
|
|
5
|
+
* Compares the given date with all selected dates using timezone-aware comparison
|
|
6
|
+
*
|
|
7
|
+
* @param date - The date to check
|
|
8
|
+
* @param selectedDates - Array of currently selected dates
|
|
9
|
+
* @param timezone - The timezone for date comparison
|
|
10
|
+
* @returns true if the date is selected, false otherwise
|
|
11
|
+
*/
|
|
12
|
+
export declare const isDateSelected: (date: Date, selectedDates: Date[], timezone: string) => boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Check if a date is disabled (outside the allowed range)
|
|
15
|
+
* Validates if the date falls within the min/max date constraints
|
|
16
|
+
*
|
|
17
|
+
* @param date - The date to check
|
|
18
|
+
* @param timezone - The timezone for date comparison
|
|
19
|
+
* @param minDate - Minimum allowed date (optional)
|
|
20
|
+
* @param maxDate - Maximum allowed date (optional)
|
|
21
|
+
* @returns true if the date is disabled, false otherwise
|
|
22
|
+
*/
|
|
23
|
+
export declare const isDateDisabled: (date: Date, timezone: string, minDate?: Date, maxDate?: Date) => boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Check if a date belongs to the current month being displayed
|
|
26
|
+
* Used to determine which dates should be fully styled vs. dimmed
|
|
27
|
+
*
|
|
28
|
+
* @param date - The date to check
|
|
29
|
+
* @param month - The current month being displayed
|
|
30
|
+
* @param timezone - The timezone for date comparison
|
|
31
|
+
* @returns true if the date is in the current month, false otherwise
|
|
32
|
+
*/
|
|
33
|
+
export declare const isDateInCurrentMonth: (date: Date, month: Date, timezone: string) => boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Check if a date is selectable based on its current state
|
|
36
|
+
* A date is selectable if it's not explicitly disabled in the selectedDates array
|
|
37
|
+
*
|
|
38
|
+
* @param date - The date to check
|
|
39
|
+
* @param selectedDates - Array of currently selected dates with their states
|
|
40
|
+
* @param timezone - The timezone for date comparison
|
|
41
|
+
* @returns true if the date is selectable, false otherwise
|
|
42
|
+
*/
|
|
43
|
+
export declare const isDateSelectable: (date: Date, selectedDates: CalendarDate[], timezone: string) => boolean;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { m as n } from "../../../../index-CYyrKZeH.js";
|
|
2
|
+
const o = (t, e, r) => e.some((s) => n.tz(s, r).isSame(t, "day")), d = (t, e, r, s) => !!(r && n.tz(t, e).endOf("day").isBefore(r) || s && n.tz(t, e).endOf("day").isAfter(s)), f = (t, e, r) => n.tz(t, r).isSame(e, "month"), u = (t, e, r) => {
|
|
3
|
+
const s = e.find((i) => n.tz(i.date, r).isSame(t, "day"));
|
|
4
|
+
return !(s != null && s.isDisabled);
|
|
5
|
+
};
|
|
6
|
+
export {
|
|
7
|
+
d as isDateDisabled,
|
|
8
|
+
f as isDateInCurrentMonth,
|
|
9
|
+
u as isDateSelectable,
|
|
10
|
+
o as isDateSelected
|
|
11
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { CalendarProps } from './types';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Calendar component that displays a three-month view with navigation capabilities.
|
|
6
|
+
*
|
|
7
|
+
* Features:
|
|
8
|
+
* - Three-month view: shows previous, current, and next month simultaneously
|
|
9
|
+
* - Sticky navigation buttons for month navigation
|
|
10
|
+
* - Timezone-aware date handling
|
|
11
|
+
* - Support for date range selection with min/max constraints
|
|
12
|
+
* - Optional header and read-only modes
|
|
13
|
+
*
|
|
14
|
+
* The component uses a three-month layout where:
|
|
15
|
+
* - Previous month is partially visible on the left (negative margin)
|
|
16
|
+
* - Current month is fully visible in the center
|
|
17
|
+
* - Next month is partially visible on the right
|
|
18
|
+
* This creates a seamless navigation experience with visual context.
|
|
19
|
+
*/
|
|
20
|
+
export declare const Calendar: React.FC<CalendarProps>;
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { jsxs as z, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useState as y, useEffect as C } from "react";
|
|
3
|
+
import { CalendarDates as b } from "./calendar-month.js";
|
|
4
|
+
import { t as j } from "../../../../bundle-mjs-CAy1p0fn.js";
|
|
5
|
+
import { m as t } from "../../../../index-CYyrKZeH.js";
|
|
6
|
+
import { StickyButton as p } from "./sticky-button.js";
|
|
7
|
+
const q = ({
|
|
8
|
+
selectedDates: n = [],
|
|
9
|
+
onDateChange: h = () => {
|
|
10
|
+
},
|
|
11
|
+
onCurrentMonthChange: e = () => {
|
|
12
|
+
},
|
|
13
|
+
disabled: l = !1,
|
|
14
|
+
minDate: m = t().subtract(1, "year").toDate(),
|
|
15
|
+
maxDate: s = t().add(1, "year").toDate(),
|
|
16
|
+
timezone: u,
|
|
17
|
+
className: N,
|
|
18
|
+
readOnly: d = !1,
|
|
19
|
+
overrideTooltip: v,
|
|
20
|
+
header: c,
|
|
21
|
+
currentMonth: f
|
|
22
|
+
}) => {
|
|
23
|
+
const o = u || t.tz.guess(), w = n != null && n[0] ? t.tz(n == null ? void 0 : n[0].date, o).startOf("month").toDate() : t.tz(m, o).startOf("month").toDate(), [i, x] = y(f || w);
|
|
24
|
+
C(() => {
|
|
25
|
+
f && t(f).isValid() && x(f);
|
|
26
|
+
}, [f]);
|
|
27
|
+
const g = () => {
|
|
28
|
+
const a = t.tz(i, o).subtract(1, "month").toDate();
|
|
29
|
+
x(a), e(a);
|
|
30
|
+
}, M = t.tz(i, o).subtract(1, "month").toDate(), S = () => {
|
|
31
|
+
const a = t.tz(i, o).add(1, "month").toDate();
|
|
32
|
+
x(a), e(a);
|
|
33
|
+
}, k = t.tz(i, o).add(1, "month").toDate();
|
|
34
|
+
return /* @__PURE__ */ z("div", { className: j("bg-transparent rounded-xl border border-gray-200 w-[58.5rem] ", N), children: [
|
|
35
|
+
c ? /* @__PURE__ */ r("div", { className: "p-md border-b border-gray-200", children: c }) : null,
|
|
36
|
+
/* @__PURE__ */ z("div", { className: "relative", children: [
|
|
37
|
+
/* @__PURE__ */ r(
|
|
38
|
+
p,
|
|
39
|
+
{
|
|
40
|
+
onClick: g,
|
|
41
|
+
icon: "ChevronLeft",
|
|
42
|
+
position: "left",
|
|
43
|
+
disabled: t.tz(i, o).isSame(m, "month"),
|
|
44
|
+
hasHeader: !!c
|
|
45
|
+
}
|
|
46
|
+
),
|
|
47
|
+
/* @__PURE__ */ r(
|
|
48
|
+
p,
|
|
49
|
+
{
|
|
50
|
+
onClick: S,
|
|
51
|
+
icon: "ChevronRight",
|
|
52
|
+
position: "right",
|
|
53
|
+
disabled: t.tz(i, o).isSame(s, "month"),
|
|
54
|
+
hasHeader: !!c
|
|
55
|
+
}
|
|
56
|
+
),
|
|
57
|
+
/* @__PURE__ */ z("div", { className: "overflow-hidden flex", children: [
|
|
58
|
+
/* @__PURE__ */ r("div", { className: "w-[33rem] ml-[-19rem] flex flex-col", children: /* @__PURE__ */ r(
|
|
59
|
+
b,
|
|
60
|
+
{
|
|
61
|
+
readOnly: d,
|
|
62
|
+
selectedDates: n,
|
|
63
|
+
onDateChange: h,
|
|
64
|
+
month: M,
|
|
65
|
+
disabled: l,
|
|
66
|
+
minDate: m,
|
|
67
|
+
maxDate: s,
|
|
68
|
+
timezone: o,
|
|
69
|
+
overrideTooltip: v
|
|
70
|
+
}
|
|
71
|
+
) }),
|
|
72
|
+
/* @__PURE__ */ r("div", { className: "w-[33rem] flex flex-col", children: /* @__PURE__ */ r(
|
|
73
|
+
b,
|
|
74
|
+
{
|
|
75
|
+
readOnly: d,
|
|
76
|
+
selectedDates: n,
|
|
77
|
+
onDateChange: h,
|
|
78
|
+
month: i,
|
|
79
|
+
disabled: l,
|
|
80
|
+
minDate: m,
|
|
81
|
+
maxDate: s,
|
|
82
|
+
timezone: o,
|
|
83
|
+
overrideTooltip: v
|
|
84
|
+
}
|
|
85
|
+
) }),
|
|
86
|
+
/* @__PURE__ */ r("div", { className: "w-[33rem] flex flex-col", children: /* @__PURE__ */ r(
|
|
87
|
+
b,
|
|
88
|
+
{
|
|
89
|
+
readOnly: d,
|
|
90
|
+
selectedDates: n,
|
|
91
|
+
onDateChange: h,
|
|
92
|
+
month: k,
|
|
93
|
+
disabled: l,
|
|
94
|
+
minDate: m,
|
|
95
|
+
maxDate: s,
|
|
96
|
+
timezone: o,
|
|
97
|
+
overrideTooltip: v
|
|
98
|
+
}
|
|
99
|
+
) })
|
|
100
|
+
] })
|
|
101
|
+
] })
|
|
102
|
+
] });
|
|
103
|
+
};
|
|
104
|
+
export {
|
|
105
|
+
q as Calendar
|
|
106
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Calendar } from './calendar';
|
|
3
|
+
import { CalendarProps } from './types';
|
|
4
|
+
|
|
5
|
+
declare const meta: Meta<typeof Calendar>;
|
|
6
|
+
export default meta;
|
|
7
|
+
type Story = StoryObj<typeof meta>;
|
|
8
|
+
export declare const Default: Story;
|
|
9
|
+
export declare const Disabled: Story;
|
|
10
|
+
export declare const Readonly: StoryObj<CalendarProps>;
|
|
11
|
+
export declare const Interactive: Story;
|
|
12
|
+
export declare const VancouverTimezone: Story;
|
|
13
|
+
export declare const WithDisabledDates: Story;
|
|
14
|
+
export declare const WithHeaderButtons: Story;
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import { jsx as o, jsxs as a } from "react/jsx-runtime";
|
|
2
|
+
import { useState as c } from "react";
|
|
3
|
+
import { Calendar as l } from "./calendar.js";
|
|
4
|
+
import { m as t } from "../../../../index-CYyrKZeH.js";
|
|
5
|
+
import { P as m } from "../../../../index-DNpMaKvH.js";
|
|
6
|
+
import { Button as s } from "../../../molecules/button/button.js";
|
|
7
|
+
const C = {
|
|
8
|
+
title: "@spotwork-ui/atoms/form/Calendar",
|
|
9
|
+
component: l,
|
|
10
|
+
parameters: {
|
|
11
|
+
layout: "fullscreen"
|
|
12
|
+
},
|
|
13
|
+
tags: ["autodocs"],
|
|
14
|
+
argTypes: {
|
|
15
|
+
disabled: {
|
|
16
|
+
control: { type: "boolean" }
|
|
17
|
+
},
|
|
18
|
+
selectedDates: {
|
|
19
|
+
control: !1
|
|
20
|
+
// Disable control for selectedDates to prevent JSX serialization issues
|
|
21
|
+
},
|
|
22
|
+
onDateChange: {
|
|
23
|
+
control: !1
|
|
24
|
+
// Disable control for onDateChange
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
decorators: [
|
|
28
|
+
(n) => /* @__PURE__ */ o(m, { children: /* @__PURE__ */ o(n, {}) })
|
|
29
|
+
]
|
|
30
|
+
}, v = {
|
|
31
|
+
args: {}
|
|
32
|
+
}, w = {
|
|
33
|
+
args: {
|
|
34
|
+
disabled: !0
|
|
35
|
+
}
|
|
36
|
+
}, f = {
|
|
37
|
+
args: {
|
|
38
|
+
readOnly: !0,
|
|
39
|
+
selectedDates: [
|
|
40
|
+
{ date: t().add(1, "day").toDate() },
|
|
41
|
+
{ date: t().add(2, "day").toDate(), color: "active", tooltip: "Active" },
|
|
42
|
+
{ date: t().add(3, "day").toDate(), color: "disabled", tooltip: "Disabled" },
|
|
43
|
+
{ date: t().add(4, "day").toDate(), color: "warning", tooltip: "Warning" },
|
|
44
|
+
{ date: t().add(5, "day").toDate(), color: "alert", tooltip: "Alert" }
|
|
45
|
+
],
|
|
46
|
+
minDate: t().subtract(1, "month").toDate(),
|
|
47
|
+
maxDate: t().add(1, "month").toDate()
|
|
48
|
+
}
|
|
49
|
+
}, z = {
|
|
50
|
+
render: (n) => {
|
|
51
|
+
const [e, d] = c(
|
|
52
|
+
n.selectedDates || [{ date: t().add(1, "day").toDate() }]
|
|
53
|
+
);
|
|
54
|
+
return /* @__PURE__ */ a("div", { className: "w-[61.5rem] m-xl", children: [
|
|
55
|
+
/* @__PURE__ */ o(
|
|
56
|
+
l,
|
|
57
|
+
{
|
|
58
|
+
...n,
|
|
59
|
+
selectedDates: e,
|
|
60
|
+
onDateChange: d,
|
|
61
|
+
minDate: /* @__PURE__ */ new Date(),
|
|
62
|
+
maxDate: t().add(2, "month").toDate()
|
|
63
|
+
}
|
|
64
|
+
),
|
|
65
|
+
/* @__PURE__ */ o("div", { className: "text-sm text-gray-600 mt-4", children: /* @__PURE__ */ a("p", { children: [
|
|
66
|
+
"Selected: ",
|
|
67
|
+
JSON.stringify(e, null, 2)
|
|
68
|
+
] }) })
|
|
69
|
+
] });
|
|
70
|
+
},
|
|
71
|
+
args: {},
|
|
72
|
+
parameters: {
|
|
73
|
+
controls: {
|
|
74
|
+
exclude: ["selectedDates", "onDateChange"]
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}, S = {
|
|
78
|
+
render: (n) => {
|
|
79
|
+
const e = "America/Vancouver", [d, r] = c([
|
|
80
|
+
{ date: t.tz(/* @__PURE__ */ new Date(), e).add(1, "day").toDate() }
|
|
81
|
+
]);
|
|
82
|
+
return /* @__PURE__ */ a("div", { className: "w-[61.5rem] m-xl", children: [
|
|
83
|
+
/* @__PURE__ */ o(
|
|
84
|
+
l,
|
|
85
|
+
{
|
|
86
|
+
...n,
|
|
87
|
+
selectedDates: d,
|
|
88
|
+
onDateChange: r,
|
|
89
|
+
timezone: e,
|
|
90
|
+
minDate: t.tz(/* @__PURE__ */ new Date(), e).toDate(),
|
|
91
|
+
maxDate: t.tz(/* @__PURE__ */ new Date(), e).add(2, "month").toDate()
|
|
92
|
+
}
|
|
93
|
+
),
|
|
94
|
+
/* @__PURE__ */ a("div", { className: "text-sm text-gray-600 mt-4", children: [
|
|
95
|
+
/* @__PURE__ */ a("p", { children: [
|
|
96
|
+
"Timezone: ",
|
|
97
|
+
e
|
|
98
|
+
] }),
|
|
99
|
+
/* @__PURE__ */ a("p", { children: [
|
|
100
|
+
"Selected: ",
|
|
101
|
+
JSON.stringify(d, null, 2)
|
|
102
|
+
] })
|
|
103
|
+
] })
|
|
104
|
+
] });
|
|
105
|
+
},
|
|
106
|
+
args: {},
|
|
107
|
+
parameters: {
|
|
108
|
+
controls: {
|
|
109
|
+
exclude: ["selectedDates", "onDateChange"]
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}, N = {
|
|
113
|
+
render: (n) => {
|
|
114
|
+
const e = "America/Vancouver", [d, r] = c([
|
|
115
|
+
{ date: t.tz(/* @__PURE__ */ new Date(), e).toDate(), tooltip: "Today" },
|
|
116
|
+
{ date: t.tz(/* @__PURE__ */ new Date(), e).add(1, "day").toDate(), tooltip: "Selected" },
|
|
117
|
+
{
|
|
118
|
+
date: t.tz(/* @__PURE__ */ new Date(), e).add(2, "day").toDate(),
|
|
119
|
+
color: "disabled",
|
|
120
|
+
isDisabled: !0,
|
|
121
|
+
tooltip: "Disabled"
|
|
122
|
+
},
|
|
123
|
+
{ date: t.tz(/* @__PURE__ */ new Date(), e).add(3, "day").toDate(), color: "warning", tooltip: "Warning" },
|
|
124
|
+
{
|
|
125
|
+
date: t.tz(/* @__PURE__ */ new Date(), e).add(4, "day").toDate(),
|
|
126
|
+
color: "alert",
|
|
127
|
+
tooltip: "Some error message"
|
|
128
|
+
}
|
|
129
|
+
]);
|
|
130
|
+
return /* @__PURE__ */ a("div", { className: "w-[61.5rem] m-xl", children: [
|
|
131
|
+
/* @__PURE__ */ o(
|
|
132
|
+
l,
|
|
133
|
+
{
|
|
134
|
+
...n,
|
|
135
|
+
selectedDates: d,
|
|
136
|
+
onDateChange: r,
|
|
137
|
+
timezone: e,
|
|
138
|
+
minDate: t.tz(/* @__PURE__ */ new Date(), e).toDate(),
|
|
139
|
+
maxDate: t.tz(/* @__PURE__ */ new Date(), e).add(2, "month").toDate()
|
|
140
|
+
}
|
|
141
|
+
),
|
|
142
|
+
/* @__PURE__ */ a("div", { className: "text-sm text-gray-600 mt-4", children: [
|
|
143
|
+
/* @__PURE__ */ a("p", { children: [
|
|
144
|
+
"Timezone: ",
|
|
145
|
+
e
|
|
146
|
+
] }),
|
|
147
|
+
/* @__PURE__ */ a("p", { children: [
|
|
148
|
+
"Selected:",
|
|
149
|
+
" ",
|
|
150
|
+
JSON.stringify(
|
|
151
|
+
d.map((i) => i.date),
|
|
152
|
+
null,
|
|
153
|
+
2
|
|
154
|
+
)
|
|
155
|
+
] })
|
|
156
|
+
] })
|
|
157
|
+
] });
|
|
158
|
+
},
|
|
159
|
+
args: {},
|
|
160
|
+
parameters: {
|
|
161
|
+
controls: {
|
|
162
|
+
exclude: ["selectedDates", "onDateChange"]
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}, b = {
|
|
166
|
+
render: (n) => {
|
|
167
|
+
const [e, d] = c([{ date: t().add(1, "day").toDate() }]);
|
|
168
|
+
return /* @__PURE__ */ a("div", { className: "w-[61.5rem] m-xl", children: [
|
|
169
|
+
/* @__PURE__ */ o(
|
|
170
|
+
l,
|
|
171
|
+
{
|
|
172
|
+
...n,
|
|
173
|
+
header: /* @__PURE__ */ a("div", { className: "flex justify-between items-center", children: [
|
|
174
|
+
/* @__PURE__ */ a("div", { className: "flex gap-2", children: [
|
|
175
|
+
/* @__PURE__ */ o(s, { text: "Today", variant: "secondary", size: "small", onClick: () => {
|
|
176
|
+
d([{ date: /* @__PURE__ */ new Date() }]);
|
|
177
|
+
} }),
|
|
178
|
+
/* @__PURE__ */ o(s, { text: "Clear", variant: "tertiary", size: "small", onClick: () => {
|
|
179
|
+
d([]);
|
|
180
|
+
} })
|
|
181
|
+
] }),
|
|
182
|
+
/* @__PURE__ */ a("div", { className: "flex gap-2", children: [
|
|
183
|
+
/* @__PURE__ */ o(s, { text: "Save", variant: "primary", size: "small", onClick: () => console.log("Save clicked") }),
|
|
184
|
+
/* @__PURE__ */ o(s, { text: "Cancel", variant: "secondary", size: "small", onClick: () => console.log("Cancel clicked") })
|
|
185
|
+
] })
|
|
186
|
+
] }),
|
|
187
|
+
selectedDates: e,
|
|
188
|
+
onDateChange: d,
|
|
189
|
+
minDate: /* @__PURE__ */ new Date(),
|
|
190
|
+
maxDate: t().add(2, "month").toDate()
|
|
191
|
+
}
|
|
192
|
+
),
|
|
193
|
+
/* @__PURE__ */ o("div", { className: "text-sm text-gray-600 mt-4", children: /* @__PURE__ */ a("p", { children: [
|
|
194
|
+
"Selected: ",
|
|
195
|
+
JSON.stringify(e, null, 2)
|
|
196
|
+
] }) })
|
|
197
|
+
] });
|
|
198
|
+
},
|
|
199
|
+
args: {},
|
|
200
|
+
parameters: {
|
|
201
|
+
controls: {
|
|
202
|
+
exclude: ["selectedDates", "onDateChange", "header"]
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
export {
|
|
207
|
+
v as Default,
|
|
208
|
+
w as Disabled,
|
|
209
|
+
z as Interactive,
|
|
210
|
+
f as Readonly,
|
|
211
|
+
S as VancouverTimezone,
|
|
212
|
+
N as WithDisabledDates,
|
|
213
|
+
b as WithHeaderButtons,
|
|
214
|
+
C as default
|
|
215
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export type MonthHeaderProps = {
|
|
4
|
+
/**
|
|
5
|
+
* The month to display
|
|
6
|
+
*/
|
|
7
|
+
month: Date;
|
|
8
|
+
/**
|
|
9
|
+
* The timezone for date formatting
|
|
10
|
+
*/
|
|
11
|
+
timezone: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const MonthHeader: React.FC<MonthHeaderProps>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { m as c } from "../../../../index-CYyrKZeH.js";
|
|
3
|
+
import { Typography as r } from "../../../styles/typography/typography.js";
|
|
4
|
+
const n = ({ month: m, timezone: s }) => /* @__PURE__ */ a("div", { className: "select-none pb-md", children: [
|
|
5
|
+
/* @__PURE__ */ e("div", { className: "flex items-center justify-center mb-md", children: /* @__PURE__ */ e(r, { swStyle: 5, color: "active", className: "font-medium", children: c(m).tz(s).format("MMMM YYYY") }) }),
|
|
6
|
+
/* @__PURE__ */ e("div", { className: "flex gap-xl bg-surface-disabled rounded-md w-full", children: ["S", "M", "T", "W", "T", "F", "S"].map((t, l) => /* @__PURE__ */ e(
|
|
7
|
+
r,
|
|
8
|
+
{
|
|
9
|
+
swStyle: 5,
|
|
10
|
+
color: "default",
|
|
11
|
+
className: "h-[3rem] w-[3rem] flex items-center justify-center",
|
|
12
|
+
children: t
|
|
13
|
+
},
|
|
14
|
+
l
|
|
15
|
+
)) })
|
|
16
|
+
] });
|
|
17
|
+
export {
|
|
18
|
+
n as MonthHeader
|
|
19
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
onClick: () => void;
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
icon: 'ChevronLeft' | 'ChevronRight';
|
|
5
|
+
position: 'left' | 'right';
|
|
6
|
+
hasHeader?: boolean;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Sticky navigation button component for calendar month navigation.
|
|
10
|
+
*
|
|
11
|
+
* Features:
|
|
12
|
+
* - Positioned absolutely on the left or right side of the calendar
|
|
13
|
+
* - Gradient background that fades to transparent for seamless integration
|
|
14
|
+
* - Supports both left and right navigation with appropriate icons
|
|
15
|
+
* - Handles disabled state for boundary conditions
|
|
16
|
+
* - Adjusts styling when calendar has a header
|
|
17
|
+
*
|
|
18
|
+
* The component creates a visual navigation area that:
|
|
19
|
+
* - Provides clear affordance for month navigation
|
|
20
|
+
* - Blends seamlessly with the calendar background
|
|
21
|
+
* - Maintains accessibility with proper disabled states
|
|
22
|
+
*/
|
|
23
|
+
export declare const StickyButton: ({ onClick, icon, position, disabled, hasHeader }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { t as l } from "../../../../bundle-mjs-CAy1p0fn.js";
|
|
3
|
+
import { Icons as n } from "../../icons/icons.js";
|
|
4
|
+
import "../../icons/iconsSVGs/Large/Profile.js";
|
|
5
|
+
import "../../icons/iconsSVGs/Small/Profile.js";
|
|
6
|
+
const m = ({ onClick: o, icon: a, position: r, disabled: e = !1, hasHeader: d = !1 }) => /* @__PURE__ */ t(
|
|
7
|
+
"div",
|
|
8
|
+
{
|
|
9
|
+
onClick: e ? void 0 : o,
|
|
10
|
+
className: l(
|
|
11
|
+
"absolute top-0 w-[9rem] h-full rounded-e-xl flex items-center p-md z-10",
|
|
12
|
+
r === "left" ? "left-0 rounded-s-xl justify -start" : "right-0 rounded-e-xl justify-end",
|
|
13
|
+
d && "rounded-t-none"
|
|
14
|
+
),
|
|
15
|
+
style: {
|
|
16
|
+
background: r === "left" ? "linear-gradient(90deg, var(--Surface-Subdued, #F6F6F6) 0%, var(--Surface-None, rgba(255, 255, 255, 0.00)) 100%)" : "linear-gradient(90deg, var(--Surface-None, rgba(255, 255, 255, 0.00)) 0%, var(--Surface-Subdued, #F6F6F6) 100%)",
|
|
17
|
+
backdropFilter: "blur(0px)"
|
|
18
|
+
},
|
|
19
|
+
children: /* @__PURE__ */ t(n, { icon: a, color: e ? "disabled" : "active", disabled: e })
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
export {
|
|
23
|
+
m as StickyButton
|
|
24
|
+
};
|