@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,824 @@
|
|
|
1
|
+
import * as t from "react";
|
|
2
|
+
import { f as be, u as Re, R as Qe, c as et, g as Ie, b as B, A as tt, a as M, d as E, h as ot, i as Y, r as _e, j as nt, k as rt, D as st, C as lt, l as ct } from "./index-DotfMcM0.js";
|
|
3
|
+
import { c as Ee } from "./index-rKs9bXHr.js";
|
|
4
|
+
import { u as at, c as it } from "./index-OIdMhwsO.js";
|
|
5
|
+
import { h as dt, u as ut, R as pt, F as ft } from "./Combination-BkpbjcWz.js";
|
|
6
|
+
import { u as mt } from "./index-BZPx6jYI.js";
|
|
7
|
+
import { V as ht } from "./index-DNpMaKvH.js";
|
|
8
|
+
import { jsx as m, jsxs as ce, Fragment as Te } from "react/jsx-runtime";
|
|
9
|
+
var vt = [" ", "Enter", "ArrowUp", "ArrowDown"], gt = [" ", "Enter"], J = "Select", [ie, de, St] = it(J), [te, Xt] = et(J, [
|
|
10
|
+
St,
|
|
11
|
+
be
|
|
12
|
+
]), ue = be(), [wt, j] = te(J), [Ct, yt] = te(J), Ne = (n) => {
|
|
13
|
+
const {
|
|
14
|
+
__scopeSelect: c,
|
|
15
|
+
children: e,
|
|
16
|
+
open: a,
|
|
17
|
+
defaultOpen: l,
|
|
18
|
+
onOpenChange: u,
|
|
19
|
+
value: r,
|
|
20
|
+
defaultValue: s,
|
|
21
|
+
onValueChange: o,
|
|
22
|
+
dir: p,
|
|
23
|
+
name: g,
|
|
24
|
+
autoComplete: C,
|
|
25
|
+
disabled: P,
|
|
26
|
+
required: R,
|
|
27
|
+
form: T
|
|
28
|
+
} = n, i = ue(c), [v, y] = t.useState(null), [d, h] = t.useState(null), [A, O] = t.useState(!1), oe = at(p), [b, L] = Re({
|
|
29
|
+
prop: a,
|
|
30
|
+
defaultProp: l ?? !1,
|
|
31
|
+
onChange: u,
|
|
32
|
+
caller: J
|
|
33
|
+
}), [K, X] = Re({
|
|
34
|
+
prop: r,
|
|
35
|
+
defaultProp: s,
|
|
36
|
+
onChange: o,
|
|
37
|
+
caller: J
|
|
38
|
+
}), V = t.useRef(null), H = v ? T || !!v.closest("form") : !0, [G, F] = t.useState(/* @__PURE__ */ new Set()), U = Array.from(G).map((_) => _.props.value).join(";");
|
|
39
|
+
return /* @__PURE__ */ m(Qe, { ...i, children: /* @__PURE__ */ ce(
|
|
40
|
+
wt,
|
|
41
|
+
{
|
|
42
|
+
required: R,
|
|
43
|
+
scope: c,
|
|
44
|
+
trigger: v,
|
|
45
|
+
onTriggerChange: y,
|
|
46
|
+
valueNode: d,
|
|
47
|
+
onValueNodeChange: h,
|
|
48
|
+
valueNodeHasChildren: A,
|
|
49
|
+
onValueNodeHasChildrenChange: O,
|
|
50
|
+
contentId: Ie(),
|
|
51
|
+
value: K,
|
|
52
|
+
onValueChange: X,
|
|
53
|
+
open: b,
|
|
54
|
+
onOpenChange: L,
|
|
55
|
+
dir: oe,
|
|
56
|
+
triggerPointerDownPosRef: V,
|
|
57
|
+
disabled: P,
|
|
58
|
+
children: [
|
|
59
|
+
/* @__PURE__ */ m(ie.Provider, { scope: c, children: /* @__PURE__ */ m(
|
|
60
|
+
Ct,
|
|
61
|
+
{
|
|
62
|
+
scope: n.__scopeSelect,
|
|
63
|
+
onNativeOptionAdd: t.useCallback((_) => {
|
|
64
|
+
F((k) => new Set(k).add(_));
|
|
65
|
+
}, []),
|
|
66
|
+
onNativeOptionRemove: t.useCallback((_) => {
|
|
67
|
+
F((k) => {
|
|
68
|
+
const W = new Set(k);
|
|
69
|
+
return W.delete(_), W;
|
|
70
|
+
});
|
|
71
|
+
}, []),
|
|
72
|
+
children: e
|
|
73
|
+
}
|
|
74
|
+
) }),
|
|
75
|
+
H ? /* @__PURE__ */ ce(
|
|
76
|
+
Xe,
|
|
77
|
+
{
|
|
78
|
+
"aria-hidden": !0,
|
|
79
|
+
required: R,
|
|
80
|
+
tabIndex: -1,
|
|
81
|
+
name: g,
|
|
82
|
+
autoComplete: C,
|
|
83
|
+
value: K,
|
|
84
|
+
onChange: (_) => X(_.target.value),
|
|
85
|
+
disabled: P,
|
|
86
|
+
form: T,
|
|
87
|
+
children: [
|
|
88
|
+
K === void 0 ? /* @__PURE__ */ m("option", { value: "" }) : null,
|
|
89
|
+
Array.from(G)
|
|
90
|
+
]
|
|
91
|
+
},
|
|
92
|
+
U
|
|
93
|
+
) : null
|
|
94
|
+
]
|
|
95
|
+
}
|
|
96
|
+
) });
|
|
97
|
+
};
|
|
98
|
+
Ne.displayName = J;
|
|
99
|
+
var Me = "SelectTrigger", Ae = t.forwardRef(
|
|
100
|
+
(n, c) => {
|
|
101
|
+
const { __scopeSelect: e, disabled: a = !1, ...l } = n, u = ue(e), r = j(Me, e), s = r.disabled || a, o = B(c, r.onTriggerChange), p = de(e), g = t.useRef("touch"), [C, P, R] = $e((i) => {
|
|
102
|
+
const v = p().filter((h) => !h.disabled), y = v.find((h) => h.value === r.value), d = Je(v, i, y);
|
|
103
|
+
d !== void 0 && r.onValueChange(d.value);
|
|
104
|
+
}), T = (i) => {
|
|
105
|
+
s || (r.onOpenChange(!0), R()), i && (r.triggerPointerDownPosRef.current = {
|
|
106
|
+
x: Math.round(i.pageX),
|
|
107
|
+
y: Math.round(i.pageY)
|
|
108
|
+
});
|
|
109
|
+
};
|
|
110
|
+
return /* @__PURE__ */ m(tt, { asChild: !0, ...u, children: /* @__PURE__ */ m(
|
|
111
|
+
M.button,
|
|
112
|
+
{
|
|
113
|
+
type: "button",
|
|
114
|
+
role: "combobox",
|
|
115
|
+
"aria-controls": r.contentId,
|
|
116
|
+
"aria-expanded": r.open,
|
|
117
|
+
"aria-required": r.required,
|
|
118
|
+
"aria-autocomplete": "none",
|
|
119
|
+
dir: r.dir,
|
|
120
|
+
"data-state": r.open ? "open" : "closed",
|
|
121
|
+
disabled: s,
|
|
122
|
+
"data-disabled": s ? "" : void 0,
|
|
123
|
+
"data-placeholder": Ze(r.value) ? "" : void 0,
|
|
124
|
+
...l,
|
|
125
|
+
ref: o,
|
|
126
|
+
onClick: E(l.onClick, (i) => {
|
|
127
|
+
i.currentTarget.focus(), g.current !== "mouse" && T(i);
|
|
128
|
+
}),
|
|
129
|
+
onPointerDown: E(l.onPointerDown, (i) => {
|
|
130
|
+
g.current = i.pointerType;
|
|
131
|
+
const v = i.target;
|
|
132
|
+
v.hasPointerCapture(i.pointerId) && v.releasePointerCapture(i.pointerId), i.button === 0 && i.ctrlKey === !1 && i.pointerType === "mouse" && (T(i), i.preventDefault());
|
|
133
|
+
}),
|
|
134
|
+
onKeyDown: E(l.onKeyDown, (i) => {
|
|
135
|
+
const v = C.current !== "";
|
|
136
|
+
!(i.ctrlKey || i.altKey || i.metaKey) && i.key.length === 1 && P(i.key), !(v && i.key === " ") && vt.includes(i.key) && (T(), i.preventDefault());
|
|
137
|
+
})
|
|
138
|
+
}
|
|
139
|
+
) });
|
|
140
|
+
}
|
|
141
|
+
);
|
|
142
|
+
Ae.displayName = Me;
|
|
143
|
+
var Oe = "SelectValue", xt = t.forwardRef(
|
|
144
|
+
(n, c) => {
|
|
145
|
+
const { __scopeSelect: e, className: a, style: l, children: u, placeholder: r = "", ...s } = n, o = j(Oe, e), { onValueNodeHasChildrenChange: p } = o, g = u !== void 0, C = B(c, o.onValueNodeChange);
|
|
146
|
+
return Y(() => {
|
|
147
|
+
p(g);
|
|
148
|
+
}, [p, g]), /* @__PURE__ */ m(
|
|
149
|
+
M.span,
|
|
150
|
+
{
|
|
151
|
+
...s,
|
|
152
|
+
ref: C,
|
|
153
|
+
style: { pointerEvents: "none" },
|
|
154
|
+
children: Ze(o.value) ? /* @__PURE__ */ m(Te, { children: r }) : u
|
|
155
|
+
}
|
|
156
|
+
);
|
|
157
|
+
}
|
|
158
|
+
);
|
|
159
|
+
xt.displayName = Oe;
|
|
160
|
+
var It = "SelectIcon", De = t.forwardRef(
|
|
161
|
+
(n, c) => {
|
|
162
|
+
const { __scopeSelect: e, children: a, ...l } = n;
|
|
163
|
+
return /* @__PURE__ */ m(M.span, { "aria-hidden": !0, ...l, ref: c, children: a || "▼" });
|
|
164
|
+
}
|
|
165
|
+
);
|
|
166
|
+
De.displayName = It;
|
|
167
|
+
var Tt = "SelectPortal", Le = (n) => /* @__PURE__ */ m(ot, { asChild: !0, ...n });
|
|
168
|
+
Le.displayName = Tt;
|
|
169
|
+
var Q = "SelectContent", ke = t.forwardRef(
|
|
170
|
+
(n, c) => {
|
|
171
|
+
const e = j(Q, n.__scopeSelect), [a, l] = t.useState();
|
|
172
|
+
if (Y(() => {
|
|
173
|
+
l(new DocumentFragment());
|
|
174
|
+
}, []), !e.open) {
|
|
175
|
+
const u = a;
|
|
176
|
+
return u ? _e.createPortal(
|
|
177
|
+
/* @__PURE__ */ m(Be, { scope: n.__scopeSelect, children: /* @__PURE__ */ m(ie.Slot, { scope: n.__scopeSelect, children: /* @__PURE__ */ m("div", { children: n.children }) }) }),
|
|
178
|
+
u
|
|
179
|
+
) : null;
|
|
180
|
+
}
|
|
181
|
+
return /* @__PURE__ */ m(Ve, { ...n, ref: c });
|
|
182
|
+
}
|
|
183
|
+
);
|
|
184
|
+
ke.displayName = Q;
|
|
185
|
+
var D = 10, [Be, q] = te(Q), Pt = "SelectContentImpl", Rt = rt("SelectContent.RemoveScroll"), Ve = t.forwardRef(
|
|
186
|
+
(n, c) => {
|
|
187
|
+
const {
|
|
188
|
+
__scopeSelect: e,
|
|
189
|
+
position: a = "item-aligned",
|
|
190
|
+
onCloseAutoFocus: l,
|
|
191
|
+
onEscapeKeyDown: u,
|
|
192
|
+
onPointerDownOutside: r,
|
|
193
|
+
//
|
|
194
|
+
// PopperContent props
|
|
195
|
+
side: s,
|
|
196
|
+
sideOffset: o,
|
|
197
|
+
align: p,
|
|
198
|
+
alignOffset: g,
|
|
199
|
+
arrowPadding: C,
|
|
200
|
+
collisionBoundary: P,
|
|
201
|
+
collisionPadding: R,
|
|
202
|
+
sticky: T,
|
|
203
|
+
hideWhenDetached: i,
|
|
204
|
+
avoidCollisions: v,
|
|
205
|
+
//
|
|
206
|
+
...y
|
|
207
|
+
} = n, d = j(Q, e), [h, A] = t.useState(null), [O, oe] = t.useState(null), b = B(c, (f) => A(f)), [L, K] = t.useState(null), [X, V] = t.useState(
|
|
208
|
+
null
|
|
209
|
+
), H = de(e), [G, F] = t.useState(!1), U = t.useRef(!1);
|
|
210
|
+
t.useEffect(() => {
|
|
211
|
+
if (h) return dt(h);
|
|
212
|
+
}, [h]), ut();
|
|
213
|
+
const _ = t.useCallback(
|
|
214
|
+
(f) => {
|
|
215
|
+
const [I, ...N] = H().map((w) => w.ref.current), [x] = N.slice(-1), S = document.activeElement;
|
|
216
|
+
for (const w of f)
|
|
217
|
+
if (w === S || (w == null || w.scrollIntoView({ block: "nearest" }), w === I && O && (O.scrollTop = 0), w === x && O && (O.scrollTop = O.scrollHeight), w == null || w.focus(), document.activeElement !== S)) return;
|
|
218
|
+
},
|
|
219
|
+
[H, O]
|
|
220
|
+
), k = t.useCallback(
|
|
221
|
+
() => _([L, h]),
|
|
222
|
+
[_, L, h]
|
|
223
|
+
);
|
|
224
|
+
t.useEffect(() => {
|
|
225
|
+
G && k();
|
|
226
|
+
}, [G, k]);
|
|
227
|
+
const { onOpenChange: W, triggerPointerDownPosRef: z } = d;
|
|
228
|
+
t.useEffect(() => {
|
|
229
|
+
if (h) {
|
|
230
|
+
let f = { x: 0, y: 0 };
|
|
231
|
+
const I = (x) => {
|
|
232
|
+
var S, w;
|
|
233
|
+
f = {
|
|
234
|
+
x: Math.abs(Math.round(x.pageX) - (((S = z.current) == null ? void 0 : S.x) ?? 0)),
|
|
235
|
+
y: Math.abs(Math.round(x.pageY) - (((w = z.current) == null ? void 0 : w.y) ?? 0))
|
|
236
|
+
};
|
|
237
|
+
}, N = (x) => {
|
|
238
|
+
f.x <= 10 && f.y <= 10 ? x.preventDefault() : h.contains(x.target) || W(!1), document.removeEventListener("pointermove", I), z.current = null;
|
|
239
|
+
};
|
|
240
|
+
return z.current !== null && (document.addEventListener("pointermove", I), document.addEventListener("pointerup", N, { capture: !0, once: !0 })), () => {
|
|
241
|
+
document.removeEventListener("pointermove", I), document.removeEventListener("pointerup", N, { capture: !0 });
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
}, [h, W, z]), t.useEffect(() => {
|
|
245
|
+
const f = () => W(!1);
|
|
246
|
+
return window.addEventListener("blur", f), window.addEventListener("resize", f), () => {
|
|
247
|
+
window.removeEventListener("blur", f), window.removeEventListener("resize", f);
|
|
248
|
+
};
|
|
249
|
+
}, [W]);
|
|
250
|
+
const [pe, se] = $e((f) => {
|
|
251
|
+
const I = H().filter((S) => !S.disabled), N = I.find((S) => S.ref.current === document.activeElement), x = Je(I, f, N);
|
|
252
|
+
x && setTimeout(() => x.ref.current.focus());
|
|
253
|
+
}), fe = t.useCallback(
|
|
254
|
+
(f, I, N) => {
|
|
255
|
+
const x = !U.current && !N;
|
|
256
|
+
(d.value !== void 0 && d.value === I || x) && (K(f), x && (U.current = !0));
|
|
257
|
+
},
|
|
258
|
+
[d.value]
|
|
259
|
+
), me = t.useCallback(() => h == null ? void 0 : h.focus(), [h]), ee = t.useCallback(
|
|
260
|
+
(f, I, N) => {
|
|
261
|
+
const x = !U.current && !N;
|
|
262
|
+
(d.value !== void 0 && d.value === I || x) && V(f);
|
|
263
|
+
},
|
|
264
|
+
[d.value]
|
|
265
|
+
), le = a === "popper" ? Se : He, ne = le === Se ? {
|
|
266
|
+
side: s,
|
|
267
|
+
sideOffset: o,
|
|
268
|
+
align: p,
|
|
269
|
+
alignOffset: g,
|
|
270
|
+
arrowPadding: C,
|
|
271
|
+
collisionBoundary: P,
|
|
272
|
+
collisionPadding: R,
|
|
273
|
+
sticky: T,
|
|
274
|
+
hideWhenDetached: i,
|
|
275
|
+
avoidCollisions: v
|
|
276
|
+
} : {};
|
|
277
|
+
return /* @__PURE__ */ m(
|
|
278
|
+
Be,
|
|
279
|
+
{
|
|
280
|
+
scope: e,
|
|
281
|
+
content: h,
|
|
282
|
+
viewport: O,
|
|
283
|
+
onViewportChange: oe,
|
|
284
|
+
itemRefCallback: fe,
|
|
285
|
+
selectedItem: L,
|
|
286
|
+
onItemLeave: me,
|
|
287
|
+
itemTextRefCallback: ee,
|
|
288
|
+
focusSelectedItem: k,
|
|
289
|
+
selectedItemText: X,
|
|
290
|
+
position: a,
|
|
291
|
+
isPositioned: G,
|
|
292
|
+
searchRef: pe,
|
|
293
|
+
children: /* @__PURE__ */ m(pt, { as: Rt, allowPinchZoom: !0, children: /* @__PURE__ */ m(
|
|
294
|
+
ft,
|
|
295
|
+
{
|
|
296
|
+
asChild: !0,
|
|
297
|
+
trapped: d.open,
|
|
298
|
+
onMountAutoFocus: (f) => {
|
|
299
|
+
f.preventDefault();
|
|
300
|
+
},
|
|
301
|
+
onUnmountAutoFocus: E(l, (f) => {
|
|
302
|
+
var I;
|
|
303
|
+
(I = d.trigger) == null || I.focus({ preventScroll: !0 }), f.preventDefault();
|
|
304
|
+
}),
|
|
305
|
+
children: /* @__PURE__ */ m(
|
|
306
|
+
st,
|
|
307
|
+
{
|
|
308
|
+
asChild: !0,
|
|
309
|
+
disableOutsidePointerEvents: !0,
|
|
310
|
+
onEscapeKeyDown: u,
|
|
311
|
+
onPointerDownOutside: r,
|
|
312
|
+
onFocusOutside: (f) => f.preventDefault(),
|
|
313
|
+
onDismiss: () => d.onOpenChange(!1),
|
|
314
|
+
children: /* @__PURE__ */ m(
|
|
315
|
+
le,
|
|
316
|
+
{
|
|
317
|
+
role: "listbox",
|
|
318
|
+
id: d.contentId,
|
|
319
|
+
"data-state": d.open ? "open" : "closed",
|
|
320
|
+
dir: d.dir,
|
|
321
|
+
onContextMenu: (f) => f.preventDefault(),
|
|
322
|
+
...y,
|
|
323
|
+
...ne,
|
|
324
|
+
onPlaced: () => F(!0),
|
|
325
|
+
ref: b,
|
|
326
|
+
style: {
|
|
327
|
+
// flex layout so we can place the scroll buttons properly
|
|
328
|
+
display: "flex",
|
|
329
|
+
flexDirection: "column",
|
|
330
|
+
// reset the outline by default as the content MAY get focused
|
|
331
|
+
outline: "none",
|
|
332
|
+
...y.style
|
|
333
|
+
},
|
|
334
|
+
onKeyDown: E(y.onKeyDown, (f) => {
|
|
335
|
+
const I = f.ctrlKey || f.altKey || f.metaKey;
|
|
336
|
+
if (f.key === "Tab" && f.preventDefault(), !I && f.key.length === 1 && se(f.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(f.key)) {
|
|
337
|
+
let x = H().filter((S) => !S.disabled).map((S) => S.ref.current);
|
|
338
|
+
if (["ArrowUp", "End"].includes(f.key) && (x = x.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(f.key)) {
|
|
339
|
+
const S = f.target, w = x.indexOf(S);
|
|
340
|
+
x = x.slice(w + 1);
|
|
341
|
+
}
|
|
342
|
+
setTimeout(() => _(x)), f.preventDefault();
|
|
343
|
+
}
|
|
344
|
+
})
|
|
345
|
+
}
|
|
346
|
+
)
|
|
347
|
+
}
|
|
348
|
+
)
|
|
349
|
+
}
|
|
350
|
+
) })
|
|
351
|
+
}
|
|
352
|
+
);
|
|
353
|
+
}
|
|
354
|
+
);
|
|
355
|
+
Ve.displayName = Pt;
|
|
356
|
+
var Et = "SelectItemAlignedPosition", He = t.forwardRef((n, c) => {
|
|
357
|
+
const { __scopeSelect: e, onPlaced: a, ...l } = n, u = j(Q, e), r = q(Q, e), [s, o] = t.useState(null), [p, g] = t.useState(null), C = B(c, (b) => g(b)), P = de(e), R = t.useRef(!1), T = t.useRef(!0), { viewport: i, selectedItem: v, selectedItemText: y, focusSelectedItem: d } = r, h = t.useCallback(() => {
|
|
358
|
+
if (u.trigger && u.valueNode && s && p && i && v && y) {
|
|
359
|
+
const b = u.trigger.getBoundingClientRect(), L = p.getBoundingClientRect(), K = u.valueNode.getBoundingClientRect(), X = y.getBoundingClientRect();
|
|
360
|
+
if (u.dir !== "rtl") {
|
|
361
|
+
const S = X.left - L.left, w = K.left - S, Z = b.left - w, $ = b.width + Z, he = Math.max($, L.width), ve = window.innerWidth - D, ge = Ee(w, [
|
|
362
|
+
D,
|
|
363
|
+
// Prevents the content from going off the starting edge of the
|
|
364
|
+
// viewport. It may still go off the ending edge, but this can be
|
|
365
|
+
// controlled by the user since they may want to manage overflow in a
|
|
366
|
+
// specific way.
|
|
367
|
+
// https://github.com/radix-ui/primitives/issues/2049
|
|
368
|
+
Math.max(D, ve - he)
|
|
369
|
+
]);
|
|
370
|
+
s.style.minWidth = $ + "px", s.style.left = ge + "px";
|
|
371
|
+
} else {
|
|
372
|
+
const S = L.right - X.right, w = window.innerWidth - K.right - S, Z = window.innerWidth - b.right - w, $ = b.width + Z, he = Math.max($, L.width), ve = window.innerWidth - D, ge = Ee(w, [
|
|
373
|
+
D,
|
|
374
|
+
Math.max(D, ve - he)
|
|
375
|
+
]);
|
|
376
|
+
s.style.minWidth = $ + "px", s.style.right = ge + "px";
|
|
377
|
+
}
|
|
378
|
+
const V = P(), H = window.innerHeight - D * 2, G = i.scrollHeight, F = window.getComputedStyle(p), U = parseInt(F.borderTopWidth, 10), _ = parseInt(F.paddingTop, 10), k = parseInt(F.borderBottomWidth, 10), W = parseInt(F.paddingBottom, 10), z = U + _ + G + W + k, pe = Math.min(v.offsetHeight * 5, z), se = window.getComputedStyle(i), fe = parseInt(se.paddingTop, 10), me = parseInt(se.paddingBottom, 10), ee = b.top + b.height / 2 - D, le = H - ee, ne = v.offsetHeight / 2, f = v.offsetTop + ne, I = U + _ + f, N = z - I;
|
|
379
|
+
if (I <= ee) {
|
|
380
|
+
const S = V.length > 0 && v === V[V.length - 1].ref.current;
|
|
381
|
+
s.style.bottom = "0px";
|
|
382
|
+
const w = p.clientHeight - i.offsetTop - i.offsetHeight, Z = Math.max(
|
|
383
|
+
le,
|
|
384
|
+
ne + // viewport might have padding bottom, include it to avoid a scrollable viewport
|
|
385
|
+
(S ? me : 0) + w + k
|
|
386
|
+
), $ = I + Z;
|
|
387
|
+
s.style.height = $ + "px";
|
|
388
|
+
} else {
|
|
389
|
+
const S = V.length > 0 && v === V[0].ref.current;
|
|
390
|
+
s.style.top = "0px";
|
|
391
|
+
const Z = Math.max(
|
|
392
|
+
ee,
|
|
393
|
+
U + i.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
|
|
394
|
+
(S ? fe : 0) + ne
|
|
395
|
+
) + N;
|
|
396
|
+
s.style.height = Z + "px", i.scrollTop = I - ee + i.offsetTop;
|
|
397
|
+
}
|
|
398
|
+
s.style.margin = `${D}px 0`, s.style.minHeight = pe + "px", s.style.maxHeight = H + "px", a == null || a(), requestAnimationFrame(() => R.current = !0);
|
|
399
|
+
}
|
|
400
|
+
}, [
|
|
401
|
+
P,
|
|
402
|
+
u.trigger,
|
|
403
|
+
u.valueNode,
|
|
404
|
+
s,
|
|
405
|
+
p,
|
|
406
|
+
i,
|
|
407
|
+
v,
|
|
408
|
+
y,
|
|
409
|
+
u.dir,
|
|
410
|
+
a
|
|
411
|
+
]);
|
|
412
|
+
Y(() => h(), [h]);
|
|
413
|
+
const [A, O] = t.useState();
|
|
414
|
+
Y(() => {
|
|
415
|
+
p && O(window.getComputedStyle(p).zIndex);
|
|
416
|
+
}, [p]);
|
|
417
|
+
const oe = t.useCallback(
|
|
418
|
+
(b) => {
|
|
419
|
+
b && T.current === !0 && (h(), d == null || d(), T.current = !1);
|
|
420
|
+
},
|
|
421
|
+
[h, d]
|
|
422
|
+
);
|
|
423
|
+
return /* @__PURE__ */ m(
|
|
424
|
+
_t,
|
|
425
|
+
{
|
|
426
|
+
scope: e,
|
|
427
|
+
contentWrapper: s,
|
|
428
|
+
shouldExpandOnScrollRef: R,
|
|
429
|
+
onScrollButtonChange: oe,
|
|
430
|
+
children: /* @__PURE__ */ m(
|
|
431
|
+
"div",
|
|
432
|
+
{
|
|
433
|
+
ref: o,
|
|
434
|
+
style: {
|
|
435
|
+
display: "flex",
|
|
436
|
+
flexDirection: "column",
|
|
437
|
+
position: "fixed",
|
|
438
|
+
zIndex: A
|
|
439
|
+
},
|
|
440
|
+
children: /* @__PURE__ */ m(
|
|
441
|
+
M.div,
|
|
442
|
+
{
|
|
443
|
+
...l,
|
|
444
|
+
ref: C,
|
|
445
|
+
style: {
|
|
446
|
+
// When we get the height of the content, it includes borders. If we were to set
|
|
447
|
+
// the height without having `boxSizing: 'border-box'` it would be too big.
|
|
448
|
+
boxSizing: "border-box",
|
|
449
|
+
// We need to ensure the content doesn't get taller than the wrapper
|
|
450
|
+
maxHeight: "100%",
|
|
451
|
+
...l.style
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
)
|
|
455
|
+
}
|
|
456
|
+
)
|
|
457
|
+
}
|
|
458
|
+
);
|
|
459
|
+
});
|
|
460
|
+
He.displayName = Et;
|
|
461
|
+
var bt = "SelectPopperPosition", Se = t.forwardRef((n, c) => {
|
|
462
|
+
const {
|
|
463
|
+
__scopeSelect: e,
|
|
464
|
+
align: a = "start",
|
|
465
|
+
collisionPadding: l = D,
|
|
466
|
+
...u
|
|
467
|
+
} = n, r = ue(e);
|
|
468
|
+
return /* @__PURE__ */ m(
|
|
469
|
+
lt,
|
|
470
|
+
{
|
|
471
|
+
...r,
|
|
472
|
+
...u,
|
|
473
|
+
ref: c,
|
|
474
|
+
align: a,
|
|
475
|
+
collisionPadding: l,
|
|
476
|
+
style: {
|
|
477
|
+
// Ensure border-box for floating-ui calculations
|
|
478
|
+
boxSizing: "border-box",
|
|
479
|
+
...u.style,
|
|
480
|
+
"--radix-select-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
481
|
+
"--radix-select-content-available-width": "var(--radix-popper-available-width)",
|
|
482
|
+
"--radix-select-content-available-height": "var(--radix-popper-available-height)",
|
|
483
|
+
"--radix-select-trigger-width": "var(--radix-popper-anchor-width)",
|
|
484
|
+
"--radix-select-trigger-height": "var(--radix-popper-anchor-height)"
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
);
|
|
488
|
+
});
|
|
489
|
+
Se.displayName = bt;
|
|
490
|
+
var [_t, Pe] = te(Q, {}), we = "SelectViewport", Fe = t.forwardRef(
|
|
491
|
+
(n, c) => {
|
|
492
|
+
const { __scopeSelect: e, nonce: a, ...l } = n, u = q(we, e), r = Pe(we, e), s = B(c, u.onViewportChange), o = t.useRef(0);
|
|
493
|
+
return /* @__PURE__ */ ce(Te, { children: [
|
|
494
|
+
/* @__PURE__ */ m(
|
|
495
|
+
"style",
|
|
496
|
+
{
|
|
497
|
+
dangerouslySetInnerHTML: {
|
|
498
|
+
__html: "[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"
|
|
499
|
+
},
|
|
500
|
+
nonce: a
|
|
501
|
+
}
|
|
502
|
+
),
|
|
503
|
+
/* @__PURE__ */ m(ie.Slot, { scope: e, children: /* @__PURE__ */ m(
|
|
504
|
+
M.div,
|
|
505
|
+
{
|
|
506
|
+
"data-radix-select-viewport": "",
|
|
507
|
+
role: "presentation",
|
|
508
|
+
...l,
|
|
509
|
+
ref: s,
|
|
510
|
+
style: {
|
|
511
|
+
// we use position: 'relative' here on the `viewport` so that when we call
|
|
512
|
+
// `selectedItem.offsetTop` in calculations, the offset is relative to the viewport
|
|
513
|
+
// (independent of the scrollUpButton).
|
|
514
|
+
position: "relative",
|
|
515
|
+
flex: 1,
|
|
516
|
+
// Viewport should only be scrollable in the vertical direction.
|
|
517
|
+
// This won't work in vertical writing modes, so we'll need to
|
|
518
|
+
// revisit this if/when that is supported
|
|
519
|
+
// https://developer.chrome.com/blog/vertical-form-controls
|
|
520
|
+
overflow: "hidden auto",
|
|
521
|
+
...l.style
|
|
522
|
+
},
|
|
523
|
+
onScroll: E(l.onScroll, (p) => {
|
|
524
|
+
const g = p.currentTarget, { contentWrapper: C, shouldExpandOnScrollRef: P } = r;
|
|
525
|
+
if (P != null && P.current && C) {
|
|
526
|
+
const R = Math.abs(o.current - g.scrollTop);
|
|
527
|
+
if (R > 0) {
|
|
528
|
+
const T = window.innerHeight - D * 2, i = parseFloat(C.style.minHeight), v = parseFloat(C.style.height), y = Math.max(i, v);
|
|
529
|
+
if (y < T) {
|
|
530
|
+
const d = y + R, h = Math.min(T, d), A = d - h;
|
|
531
|
+
C.style.height = h + "px", C.style.bottom === "0px" && (g.scrollTop = A > 0 ? A : 0, C.style.justifyContent = "flex-end");
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
o.current = g.scrollTop;
|
|
536
|
+
})
|
|
537
|
+
}
|
|
538
|
+
) })
|
|
539
|
+
] });
|
|
540
|
+
}
|
|
541
|
+
);
|
|
542
|
+
Fe.displayName = we;
|
|
543
|
+
var Ue = "SelectGroup", [Nt, Mt] = te(Ue), At = t.forwardRef(
|
|
544
|
+
(n, c) => {
|
|
545
|
+
const { __scopeSelect: e, ...a } = n, l = Ie();
|
|
546
|
+
return /* @__PURE__ */ m(Nt, { scope: e, id: l, children: /* @__PURE__ */ m(M.div, { role: "group", "aria-labelledby": l, ...a, ref: c }) });
|
|
547
|
+
}
|
|
548
|
+
);
|
|
549
|
+
At.displayName = Ue;
|
|
550
|
+
var We = "SelectLabel", Ot = t.forwardRef(
|
|
551
|
+
(n, c) => {
|
|
552
|
+
const { __scopeSelect: e, ...a } = n, l = Mt(We, e);
|
|
553
|
+
return /* @__PURE__ */ m(M.div, { id: l.id, ...a, ref: c });
|
|
554
|
+
}
|
|
555
|
+
);
|
|
556
|
+
Ot.displayName = We;
|
|
557
|
+
var ae = "SelectItem", [Dt, Ke] = te(ae), Ge = t.forwardRef(
|
|
558
|
+
(n, c) => {
|
|
559
|
+
const {
|
|
560
|
+
__scopeSelect: e,
|
|
561
|
+
value: a,
|
|
562
|
+
disabled: l = !1,
|
|
563
|
+
textValue: u,
|
|
564
|
+
...r
|
|
565
|
+
} = n, s = j(ae, e), o = q(ae, e), p = s.value === a, [g, C] = t.useState(u ?? ""), [P, R] = t.useState(!1), T = B(
|
|
566
|
+
c,
|
|
567
|
+
(d) => {
|
|
568
|
+
var h;
|
|
569
|
+
return (h = o.itemRefCallback) == null ? void 0 : h.call(o, d, a, l);
|
|
570
|
+
}
|
|
571
|
+
), i = Ie(), v = t.useRef("touch"), y = () => {
|
|
572
|
+
l || (s.onValueChange(a), s.onOpenChange(!1));
|
|
573
|
+
};
|
|
574
|
+
if (a === "")
|
|
575
|
+
throw new Error(
|
|
576
|
+
"A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder."
|
|
577
|
+
);
|
|
578
|
+
return /* @__PURE__ */ m(
|
|
579
|
+
Dt,
|
|
580
|
+
{
|
|
581
|
+
scope: e,
|
|
582
|
+
value: a,
|
|
583
|
+
disabled: l,
|
|
584
|
+
textId: i,
|
|
585
|
+
isSelected: p,
|
|
586
|
+
onItemTextChange: t.useCallback((d) => {
|
|
587
|
+
C((h) => h || ((d == null ? void 0 : d.textContent) ?? "").trim());
|
|
588
|
+
}, []),
|
|
589
|
+
children: /* @__PURE__ */ m(
|
|
590
|
+
ie.ItemSlot,
|
|
591
|
+
{
|
|
592
|
+
scope: e,
|
|
593
|
+
value: a,
|
|
594
|
+
disabled: l,
|
|
595
|
+
textValue: g,
|
|
596
|
+
children: /* @__PURE__ */ m(
|
|
597
|
+
M.div,
|
|
598
|
+
{
|
|
599
|
+
role: "option",
|
|
600
|
+
"aria-labelledby": i,
|
|
601
|
+
"data-highlighted": P ? "" : void 0,
|
|
602
|
+
"aria-selected": p && P,
|
|
603
|
+
"data-state": p ? "checked" : "unchecked",
|
|
604
|
+
"aria-disabled": l || void 0,
|
|
605
|
+
"data-disabled": l ? "" : void 0,
|
|
606
|
+
tabIndex: l ? void 0 : -1,
|
|
607
|
+
...r,
|
|
608
|
+
ref: T,
|
|
609
|
+
onFocus: E(r.onFocus, () => R(!0)),
|
|
610
|
+
onBlur: E(r.onBlur, () => R(!1)),
|
|
611
|
+
onClick: E(r.onClick, () => {
|
|
612
|
+
v.current !== "mouse" && y();
|
|
613
|
+
}),
|
|
614
|
+
onPointerUp: E(r.onPointerUp, () => {
|
|
615
|
+
v.current === "mouse" && y();
|
|
616
|
+
}),
|
|
617
|
+
onPointerDown: E(r.onPointerDown, (d) => {
|
|
618
|
+
v.current = d.pointerType;
|
|
619
|
+
}),
|
|
620
|
+
onPointerMove: E(r.onPointerMove, (d) => {
|
|
621
|
+
var h;
|
|
622
|
+
v.current = d.pointerType, l ? (h = o.onItemLeave) == null || h.call(o) : v.current === "mouse" && d.currentTarget.focus({ preventScroll: !0 });
|
|
623
|
+
}),
|
|
624
|
+
onPointerLeave: E(r.onPointerLeave, (d) => {
|
|
625
|
+
var h;
|
|
626
|
+
d.currentTarget === document.activeElement && ((h = o.onItemLeave) == null || h.call(o));
|
|
627
|
+
}),
|
|
628
|
+
onKeyDown: E(r.onKeyDown, (d) => {
|
|
629
|
+
var A;
|
|
630
|
+
((A = o.searchRef) == null ? void 0 : A.current) !== "" && d.key === " " || (gt.includes(d.key) && y(), d.key === " " && d.preventDefault());
|
|
631
|
+
})
|
|
632
|
+
}
|
|
633
|
+
)
|
|
634
|
+
}
|
|
635
|
+
)
|
|
636
|
+
}
|
|
637
|
+
);
|
|
638
|
+
}
|
|
639
|
+
);
|
|
640
|
+
Ge.displayName = ae;
|
|
641
|
+
var re = "SelectItemText", Lt = t.forwardRef(
|
|
642
|
+
(n, c) => {
|
|
643
|
+
const { __scopeSelect: e, className: a, style: l, ...u } = n, r = j(re, e), s = q(re, e), o = Ke(re, e), p = yt(re, e), [g, C] = t.useState(null), P = B(
|
|
644
|
+
c,
|
|
645
|
+
(y) => C(y),
|
|
646
|
+
o.onItemTextChange,
|
|
647
|
+
(y) => {
|
|
648
|
+
var d;
|
|
649
|
+
return (d = s.itemTextRefCallback) == null ? void 0 : d.call(s, y, o.value, o.disabled);
|
|
650
|
+
}
|
|
651
|
+
), R = g == null ? void 0 : g.textContent, T = t.useMemo(
|
|
652
|
+
() => /* @__PURE__ */ m("option", { value: o.value, disabled: o.disabled, children: R }, o.value),
|
|
653
|
+
[o.disabled, o.value, R]
|
|
654
|
+
), { onNativeOptionAdd: i, onNativeOptionRemove: v } = p;
|
|
655
|
+
return Y(() => (i(T), () => v(T)), [i, v, T]), /* @__PURE__ */ ce(Te, { children: [
|
|
656
|
+
/* @__PURE__ */ m(M.span, { id: o.textId, ...u, ref: P }),
|
|
657
|
+
o.isSelected && r.valueNode && !r.valueNodeHasChildren ? _e.createPortal(u.children, r.valueNode) : null
|
|
658
|
+
] });
|
|
659
|
+
}
|
|
660
|
+
);
|
|
661
|
+
Lt.displayName = re;
|
|
662
|
+
var ze = "SelectItemIndicator", kt = t.forwardRef(
|
|
663
|
+
(n, c) => {
|
|
664
|
+
const { __scopeSelect: e, ...a } = n;
|
|
665
|
+
return Ke(ze, e).isSelected ? /* @__PURE__ */ m(M.span, { "aria-hidden": !0, ...a, ref: c }) : null;
|
|
666
|
+
}
|
|
667
|
+
);
|
|
668
|
+
kt.displayName = ze;
|
|
669
|
+
var Ce = "SelectScrollUpButton", Ye = t.forwardRef((n, c) => {
|
|
670
|
+
const e = q(Ce, n.__scopeSelect), a = Pe(Ce, n.__scopeSelect), [l, u] = t.useState(!1), r = B(c, a.onScrollButtonChange);
|
|
671
|
+
return Y(() => {
|
|
672
|
+
if (e.viewport && e.isPositioned) {
|
|
673
|
+
let s = function() {
|
|
674
|
+
const p = o.scrollTop > 0;
|
|
675
|
+
u(p);
|
|
676
|
+
};
|
|
677
|
+
const o = e.viewport;
|
|
678
|
+
return s(), o.addEventListener("scroll", s), () => o.removeEventListener("scroll", s);
|
|
679
|
+
}
|
|
680
|
+
}, [e.viewport, e.isPositioned]), l ? /* @__PURE__ */ m(
|
|
681
|
+
qe,
|
|
682
|
+
{
|
|
683
|
+
...n,
|
|
684
|
+
ref: r,
|
|
685
|
+
onAutoScroll: () => {
|
|
686
|
+
const { viewport: s, selectedItem: o } = e;
|
|
687
|
+
s && o && (s.scrollTop = s.scrollTop - o.offsetHeight);
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
) : null;
|
|
691
|
+
});
|
|
692
|
+
Ye.displayName = Ce;
|
|
693
|
+
var ye = "SelectScrollDownButton", je = t.forwardRef((n, c) => {
|
|
694
|
+
const e = q(ye, n.__scopeSelect), a = Pe(ye, n.__scopeSelect), [l, u] = t.useState(!1), r = B(c, a.onScrollButtonChange);
|
|
695
|
+
return Y(() => {
|
|
696
|
+
if (e.viewport && e.isPositioned) {
|
|
697
|
+
let s = function() {
|
|
698
|
+
const p = o.scrollHeight - o.clientHeight, g = Math.ceil(o.scrollTop) < p;
|
|
699
|
+
u(g);
|
|
700
|
+
};
|
|
701
|
+
const o = e.viewport;
|
|
702
|
+
return s(), o.addEventListener("scroll", s), () => o.removeEventListener("scroll", s);
|
|
703
|
+
}
|
|
704
|
+
}, [e.viewport, e.isPositioned]), l ? /* @__PURE__ */ m(
|
|
705
|
+
qe,
|
|
706
|
+
{
|
|
707
|
+
...n,
|
|
708
|
+
ref: r,
|
|
709
|
+
onAutoScroll: () => {
|
|
710
|
+
const { viewport: s, selectedItem: o } = e;
|
|
711
|
+
s && o && (s.scrollTop = s.scrollTop + o.offsetHeight);
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
) : null;
|
|
715
|
+
});
|
|
716
|
+
je.displayName = ye;
|
|
717
|
+
var qe = t.forwardRef((n, c) => {
|
|
718
|
+
const { __scopeSelect: e, onAutoScroll: a, ...l } = n, u = q("SelectScrollButton", e), r = t.useRef(null), s = de(e), o = t.useCallback(() => {
|
|
719
|
+
r.current !== null && (window.clearInterval(r.current), r.current = null);
|
|
720
|
+
}, []);
|
|
721
|
+
return t.useEffect(() => () => o(), [o]), Y(() => {
|
|
722
|
+
var g;
|
|
723
|
+
const p = s().find((C) => C.ref.current === document.activeElement);
|
|
724
|
+
(g = p == null ? void 0 : p.ref.current) == null || g.scrollIntoView({ block: "nearest" });
|
|
725
|
+
}, [s]), /* @__PURE__ */ m(
|
|
726
|
+
M.div,
|
|
727
|
+
{
|
|
728
|
+
"aria-hidden": !0,
|
|
729
|
+
...l,
|
|
730
|
+
ref: c,
|
|
731
|
+
style: { flexShrink: 0, ...l.style },
|
|
732
|
+
onPointerDown: E(l.onPointerDown, () => {
|
|
733
|
+
r.current === null && (r.current = window.setInterval(a, 50));
|
|
734
|
+
}),
|
|
735
|
+
onPointerMove: E(l.onPointerMove, () => {
|
|
736
|
+
var p;
|
|
737
|
+
(p = u.onItemLeave) == null || p.call(u), r.current === null && (r.current = window.setInterval(a, 50));
|
|
738
|
+
}),
|
|
739
|
+
onPointerLeave: E(l.onPointerLeave, () => {
|
|
740
|
+
o();
|
|
741
|
+
})
|
|
742
|
+
}
|
|
743
|
+
);
|
|
744
|
+
}), Bt = "SelectSeparator", Vt = t.forwardRef(
|
|
745
|
+
(n, c) => {
|
|
746
|
+
const { __scopeSelect: e, ...a } = n;
|
|
747
|
+
return /* @__PURE__ */ m(M.div, { "aria-hidden": !0, ...a, ref: c });
|
|
748
|
+
}
|
|
749
|
+
);
|
|
750
|
+
Vt.displayName = Bt;
|
|
751
|
+
var xe = "SelectArrow", Ht = t.forwardRef(
|
|
752
|
+
(n, c) => {
|
|
753
|
+
const { __scopeSelect: e, ...a } = n, l = ue(e), u = j(xe, e), r = q(xe, e);
|
|
754
|
+
return u.open && r.position === "popper" ? /* @__PURE__ */ m(ct, { ...l, ...a, ref: c }) : null;
|
|
755
|
+
}
|
|
756
|
+
);
|
|
757
|
+
Ht.displayName = xe;
|
|
758
|
+
var Ft = "SelectBubbleInput", Xe = t.forwardRef(
|
|
759
|
+
({ __scopeSelect: n, value: c, ...e }, a) => {
|
|
760
|
+
const l = t.useRef(null), u = B(a, l), r = mt(c);
|
|
761
|
+
return t.useEffect(() => {
|
|
762
|
+
const s = l.current;
|
|
763
|
+
if (!s) return;
|
|
764
|
+
const o = window.HTMLSelectElement.prototype, g = Object.getOwnPropertyDescriptor(
|
|
765
|
+
o,
|
|
766
|
+
"value"
|
|
767
|
+
).set;
|
|
768
|
+
if (r !== c && g) {
|
|
769
|
+
const C = new Event("change", { bubbles: !0 });
|
|
770
|
+
g.call(s, c), s.dispatchEvent(C);
|
|
771
|
+
}
|
|
772
|
+
}, [r, c]), /* @__PURE__ */ m(
|
|
773
|
+
M.select,
|
|
774
|
+
{
|
|
775
|
+
...e,
|
|
776
|
+
style: { ...ht, ...e.style },
|
|
777
|
+
ref: u,
|
|
778
|
+
defaultValue: c
|
|
779
|
+
}
|
|
780
|
+
);
|
|
781
|
+
}
|
|
782
|
+
);
|
|
783
|
+
Xe.displayName = Ft;
|
|
784
|
+
function Ze(n) {
|
|
785
|
+
return n === "" || n === void 0;
|
|
786
|
+
}
|
|
787
|
+
function $e(n) {
|
|
788
|
+
const c = nt(n), e = t.useRef(""), a = t.useRef(0), l = t.useCallback(
|
|
789
|
+
(r) => {
|
|
790
|
+
const s = e.current + r;
|
|
791
|
+
c(s), function o(p) {
|
|
792
|
+
e.current = p, window.clearTimeout(a.current), p !== "" && (a.current = window.setTimeout(() => o(""), 1e3));
|
|
793
|
+
}(s);
|
|
794
|
+
},
|
|
795
|
+
[c]
|
|
796
|
+
), u = t.useCallback(() => {
|
|
797
|
+
e.current = "", window.clearTimeout(a.current);
|
|
798
|
+
}, []);
|
|
799
|
+
return t.useEffect(() => () => window.clearTimeout(a.current), []), [e, l, u];
|
|
800
|
+
}
|
|
801
|
+
function Je(n, c, e) {
|
|
802
|
+
const l = c.length > 1 && Array.from(c).every((p) => p === c[0]) ? c[0] : c, u = e ? n.indexOf(e) : -1;
|
|
803
|
+
let r = Ut(n, Math.max(u, 0));
|
|
804
|
+
l.length === 1 && (r = r.filter((p) => p !== e));
|
|
805
|
+
const o = r.find(
|
|
806
|
+
(p) => p.textValue.toLowerCase().startsWith(l.toLowerCase())
|
|
807
|
+
);
|
|
808
|
+
return o !== e ? o : void 0;
|
|
809
|
+
}
|
|
810
|
+
function Ut(n, c) {
|
|
811
|
+
return n.map((e, a) => n[(c + a) % n.length]);
|
|
812
|
+
}
|
|
813
|
+
var Zt = Ne, $t = Ae, Jt = De, Qt = Le, eo = ke, to = Fe, oo = Ge, no = Ye, ro = je;
|
|
814
|
+
export {
|
|
815
|
+
eo as C,
|
|
816
|
+
Jt as I,
|
|
817
|
+
Qt as P,
|
|
818
|
+
Zt as R,
|
|
819
|
+
no as S,
|
|
820
|
+
$t as T,
|
|
821
|
+
to as V,
|
|
822
|
+
oo as a,
|
|
823
|
+
ro as b
|
|
824
|
+
};
|