@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,2345 @@
|
|
|
1
|
+
import * as ce from "react";
|
|
2
|
+
import { useState as nn, useRef as H, useEffect as Ee, useLayoutEffect as Nn, forwardRef as zn, useCallback as Dn, useContext as bt, useMemo as ye } from "react";
|
|
3
|
+
import { r as Qn } from "./index-DotfMcM0.js";
|
|
4
|
+
var wt = Ue(), x = (e) => Oe(e, wt), xt = Ue();
|
|
5
|
+
x.write = (e) => Oe(e, xt);
|
|
6
|
+
var Ge = Ue();
|
|
7
|
+
x.onStart = (e) => Oe(e, Ge);
|
|
8
|
+
var St = Ue();
|
|
9
|
+
x.onFrame = (e) => Oe(e, St);
|
|
10
|
+
var Pt = Ue();
|
|
11
|
+
x.onFinish = (e) => Oe(e, Pt);
|
|
12
|
+
var le = [];
|
|
13
|
+
x.setTimeout = (e, t) => {
|
|
14
|
+
const n = x.now() + t, i = () => {
|
|
15
|
+
const r = le.findIndex((a) => a.cancel == i);
|
|
16
|
+
~r && le.splice(r, 1), ne -= ~r ? 1 : 0;
|
|
17
|
+
}, s = { time: n, handler: e, cancel: i };
|
|
18
|
+
return le.splice(sn(n), 0, s), ne += 1, rn(), s;
|
|
19
|
+
};
|
|
20
|
+
var sn = (e) => ~(~le.findIndex((t) => t.time > e) || ~le.length);
|
|
21
|
+
x.cancel = (e) => {
|
|
22
|
+
Ge.delete(e), St.delete(e), Pt.delete(e), wt.delete(e), xt.delete(e);
|
|
23
|
+
};
|
|
24
|
+
x.sync = (e) => {
|
|
25
|
+
ot = !0, x.batchedUpdates(e), ot = !1;
|
|
26
|
+
};
|
|
27
|
+
x.throttle = (e) => {
|
|
28
|
+
let t;
|
|
29
|
+
function n() {
|
|
30
|
+
try {
|
|
31
|
+
e(...t);
|
|
32
|
+
} finally {
|
|
33
|
+
t = null;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
function i(...s) {
|
|
37
|
+
t = s, x.onStart(n);
|
|
38
|
+
}
|
|
39
|
+
return i.handler = e, i.cancel = () => {
|
|
40
|
+
Ge.delete(n), t = null;
|
|
41
|
+
}, i;
|
|
42
|
+
};
|
|
43
|
+
var At = typeof window < "u" ? window.requestAnimationFrame : (
|
|
44
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
45
|
+
() => {
|
|
46
|
+
}
|
|
47
|
+
);
|
|
48
|
+
x.use = (e) => At = e;
|
|
49
|
+
x.now = typeof performance < "u" ? () => performance.now() : Date.now;
|
|
50
|
+
x.batchedUpdates = (e) => e();
|
|
51
|
+
x.catch = console.error;
|
|
52
|
+
x.frameLoop = "always";
|
|
53
|
+
x.advance = () => {
|
|
54
|
+
x.frameLoop !== "demand" ? console.warn(
|
|
55
|
+
"Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"
|
|
56
|
+
) : on();
|
|
57
|
+
};
|
|
58
|
+
var te = -1, ne = 0, ot = !1;
|
|
59
|
+
function Oe(e, t) {
|
|
60
|
+
ot ? (t.delete(e), e(0)) : (t.add(e), rn());
|
|
61
|
+
}
|
|
62
|
+
function rn() {
|
|
63
|
+
te < 0 && (te = 0, x.frameLoop !== "demand" && At(an));
|
|
64
|
+
}
|
|
65
|
+
function Mn() {
|
|
66
|
+
te = -1;
|
|
67
|
+
}
|
|
68
|
+
function an() {
|
|
69
|
+
~te && (At(an), x.batchedUpdates(on));
|
|
70
|
+
}
|
|
71
|
+
function on() {
|
|
72
|
+
const e = te;
|
|
73
|
+
te = x.now();
|
|
74
|
+
const t = sn(te);
|
|
75
|
+
if (t && (un(le.splice(0, t), (n) => n.handler()), ne -= t), !ne) {
|
|
76
|
+
Mn();
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
Ge.flush(), wt.flush(e ? Math.min(64, te - e) : 16.667), St.flush(), xt.flush(), Pt.flush();
|
|
80
|
+
}
|
|
81
|
+
function Ue() {
|
|
82
|
+
let e = /* @__PURE__ */ new Set(), t = e;
|
|
83
|
+
return {
|
|
84
|
+
add(n) {
|
|
85
|
+
ne += t == e && !e.has(n) ? 1 : 0, e.add(n);
|
|
86
|
+
},
|
|
87
|
+
delete(n) {
|
|
88
|
+
return ne -= t == e && e.has(n) ? 1 : 0, e.delete(n);
|
|
89
|
+
},
|
|
90
|
+
flush(n) {
|
|
91
|
+
t.size && (e = /* @__PURE__ */ new Set(), ne -= t.size, un(t, (i) => i(n) && e.add(i)), ne += e.size, t = e);
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
function un(e, t) {
|
|
96
|
+
e.forEach((n) => {
|
|
97
|
+
try {
|
|
98
|
+
t(n);
|
|
99
|
+
} catch (i) {
|
|
100
|
+
x.catch(i);
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
var Ln = Object.defineProperty, Bn = (e, t) => {
|
|
105
|
+
for (var n in t)
|
|
106
|
+
Ln(e, n, { get: t[n], enumerable: !0 });
|
|
107
|
+
}, M = {};
|
|
108
|
+
Bn(M, {
|
|
109
|
+
assign: () => Hn,
|
|
110
|
+
colors: () => ie,
|
|
111
|
+
createStringInterpolator: () => Rt,
|
|
112
|
+
skipAnimation: () => ln,
|
|
113
|
+
to: () => cn,
|
|
114
|
+
willAdvance: () => It
|
|
115
|
+
});
|
|
116
|
+
function ut() {
|
|
117
|
+
}
|
|
118
|
+
var Gn = (e, t, n) => Object.defineProperty(e, t, { value: n, writable: !0, configurable: !0 }), o = {
|
|
119
|
+
arr: Array.isArray,
|
|
120
|
+
obj: (e) => !!e && e.constructor.name === "Object",
|
|
121
|
+
fun: (e) => typeof e == "function",
|
|
122
|
+
str: (e) => typeof e == "string",
|
|
123
|
+
num: (e) => typeof e == "number",
|
|
124
|
+
und: (e) => e === void 0
|
|
125
|
+
};
|
|
126
|
+
function X(e, t) {
|
|
127
|
+
if (o.arr(e)) {
|
|
128
|
+
if (!o.arr(t) || e.length !== t.length)
|
|
129
|
+
return !1;
|
|
130
|
+
for (let n = 0; n < e.length; n++)
|
|
131
|
+
if (e[n] !== t[n])
|
|
132
|
+
return !1;
|
|
133
|
+
return !0;
|
|
134
|
+
}
|
|
135
|
+
return e === t;
|
|
136
|
+
}
|
|
137
|
+
var _ = (e, t) => e.forEach(t);
|
|
138
|
+
function W(e, t, n) {
|
|
139
|
+
if (o.arr(e)) {
|
|
140
|
+
for (let i = 0; i < e.length; i++)
|
|
141
|
+
t.call(n, e[i], `${i}`);
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
for (const i in e)
|
|
145
|
+
e.hasOwnProperty(i) && t.call(n, e[i], i);
|
|
146
|
+
}
|
|
147
|
+
var V = (e) => o.und(e) ? [] : o.arr(e) ? e : [e];
|
|
148
|
+
function be(e, t) {
|
|
149
|
+
if (e.size) {
|
|
150
|
+
const n = Array.from(e);
|
|
151
|
+
e.clear(), _(n, t);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
var _e = (e, ...t) => be(e, (n) => n(...t)), kt = () => typeof window > "u" || !window.navigator || /ServerSideRendering|^Deno\//.test(window.navigator.userAgent), Rt, cn, ie = null, ln = !1, It = ut, Hn = (e) => {
|
|
155
|
+
e.to && (cn = e.to), e.now && (x.now = e.now), e.colors !== void 0 && (ie = e.colors), e.skipAnimation != null && (ln = e.skipAnimation), e.createStringInterpolator && (Rt = e.createStringInterpolator), e.requestAnimationFrame && x.use(e.requestAnimationFrame), e.batchedUpdates && (x.batchedUpdates = e.batchedUpdates), e.willAdvance && (It = e.willAdvance), e.frameLoop && (x.frameLoop = e.frameLoop);
|
|
156
|
+
}, we = /* @__PURE__ */ new Set(), N = [], tt = [], Qe = 0, He = {
|
|
157
|
+
get idle() {
|
|
158
|
+
return !we.size && !N.length;
|
|
159
|
+
},
|
|
160
|
+
/** Advance the given animation on every frame until idle. */
|
|
161
|
+
start(e) {
|
|
162
|
+
Qe > e.priority ? (we.add(e), x.onStart(Wn)) : (dn(e), x(ct));
|
|
163
|
+
},
|
|
164
|
+
/** Advance all animations by the given time. */
|
|
165
|
+
advance: ct,
|
|
166
|
+
/** Call this when an animation's priority changes. */
|
|
167
|
+
sort(e) {
|
|
168
|
+
if (Qe)
|
|
169
|
+
x.onFrame(() => He.sort(e));
|
|
170
|
+
else {
|
|
171
|
+
const t = N.indexOf(e);
|
|
172
|
+
~t && (N.splice(t, 1), fn(e));
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
/**
|
|
176
|
+
* Clear all animations. For testing purposes.
|
|
177
|
+
*
|
|
178
|
+
* ☠️ Never call this from within the frameloop.
|
|
179
|
+
*/
|
|
180
|
+
clear() {
|
|
181
|
+
N = [], we.clear();
|
|
182
|
+
}
|
|
183
|
+
};
|
|
184
|
+
function Wn() {
|
|
185
|
+
we.forEach(dn), we.clear(), x(ct);
|
|
186
|
+
}
|
|
187
|
+
function dn(e) {
|
|
188
|
+
N.includes(e) || fn(e);
|
|
189
|
+
}
|
|
190
|
+
function fn(e) {
|
|
191
|
+
N.splice(
|
|
192
|
+
Kn(N, (t) => t.priority > e.priority),
|
|
193
|
+
0,
|
|
194
|
+
e
|
|
195
|
+
);
|
|
196
|
+
}
|
|
197
|
+
function ct(e) {
|
|
198
|
+
const t = tt;
|
|
199
|
+
for (let n = 0; n < N.length; n++) {
|
|
200
|
+
const i = N[n];
|
|
201
|
+
Qe = i.priority, i.idle || (It(i), i.advance(e), i.idle || t.push(i));
|
|
202
|
+
}
|
|
203
|
+
return Qe = 0, tt = N, tt.length = 0, N = t, N.length > 0;
|
|
204
|
+
}
|
|
205
|
+
function Kn(e, t) {
|
|
206
|
+
const n = e.findIndex(t);
|
|
207
|
+
return n < 0 ? e.length : n;
|
|
208
|
+
}
|
|
209
|
+
var Zn = {
|
|
210
|
+
transparent: 0,
|
|
211
|
+
aliceblue: 4042850303,
|
|
212
|
+
antiquewhite: 4209760255,
|
|
213
|
+
aqua: 16777215,
|
|
214
|
+
aquamarine: 2147472639,
|
|
215
|
+
azure: 4043309055,
|
|
216
|
+
beige: 4126530815,
|
|
217
|
+
bisque: 4293182719,
|
|
218
|
+
black: 255,
|
|
219
|
+
blanchedalmond: 4293643775,
|
|
220
|
+
blue: 65535,
|
|
221
|
+
blueviolet: 2318131967,
|
|
222
|
+
brown: 2771004159,
|
|
223
|
+
burlywood: 3736635391,
|
|
224
|
+
burntsienna: 3934150143,
|
|
225
|
+
cadetblue: 1604231423,
|
|
226
|
+
chartreuse: 2147418367,
|
|
227
|
+
chocolate: 3530104575,
|
|
228
|
+
coral: 4286533887,
|
|
229
|
+
cornflowerblue: 1687547391,
|
|
230
|
+
cornsilk: 4294499583,
|
|
231
|
+
crimson: 3692313855,
|
|
232
|
+
cyan: 16777215,
|
|
233
|
+
darkblue: 35839,
|
|
234
|
+
darkcyan: 9145343,
|
|
235
|
+
darkgoldenrod: 3095792639,
|
|
236
|
+
darkgray: 2846468607,
|
|
237
|
+
darkgreen: 6553855,
|
|
238
|
+
darkgrey: 2846468607,
|
|
239
|
+
darkkhaki: 3182914559,
|
|
240
|
+
darkmagenta: 2332068863,
|
|
241
|
+
darkolivegreen: 1433087999,
|
|
242
|
+
darkorange: 4287365375,
|
|
243
|
+
darkorchid: 2570243327,
|
|
244
|
+
darkred: 2332033279,
|
|
245
|
+
darksalmon: 3918953215,
|
|
246
|
+
darkseagreen: 2411499519,
|
|
247
|
+
darkslateblue: 1211993087,
|
|
248
|
+
darkslategray: 793726975,
|
|
249
|
+
darkslategrey: 793726975,
|
|
250
|
+
darkturquoise: 13554175,
|
|
251
|
+
darkviolet: 2483082239,
|
|
252
|
+
deeppink: 4279538687,
|
|
253
|
+
deepskyblue: 12582911,
|
|
254
|
+
dimgray: 1768516095,
|
|
255
|
+
dimgrey: 1768516095,
|
|
256
|
+
dodgerblue: 512819199,
|
|
257
|
+
firebrick: 2988581631,
|
|
258
|
+
floralwhite: 4294635775,
|
|
259
|
+
forestgreen: 579543807,
|
|
260
|
+
fuchsia: 4278255615,
|
|
261
|
+
gainsboro: 3705462015,
|
|
262
|
+
ghostwhite: 4177068031,
|
|
263
|
+
gold: 4292280575,
|
|
264
|
+
goldenrod: 3668254975,
|
|
265
|
+
gray: 2155905279,
|
|
266
|
+
green: 8388863,
|
|
267
|
+
greenyellow: 2919182335,
|
|
268
|
+
grey: 2155905279,
|
|
269
|
+
honeydew: 4043305215,
|
|
270
|
+
hotpink: 4285117695,
|
|
271
|
+
indianred: 3445382399,
|
|
272
|
+
indigo: 1258324735,
|
|
273
|
+
ivory: 4294963455,
|
|
274
|
+
khaki: 4041641215,
|
|
275
|
+
lavender: 3873897215,
|
|
276
|
+
lavenderblush: 4293981695,
|
|
277
|
+
lawngreen: 2096890111,
|
|
278
|
+
lemonchiffon: 4294626815,
|
|
279
|
+
lightblue: 2916673279,
|
|
280
|
+
lightcoral: 4034953471,
|
|
281
|
+
lightcyan: 3774873599,
|
|
282
|
+
lightgoldenrodyellow: 4210742015,
|
|
283
|
+
lightgray: 3553874943,
|
|
284
|
+
lightgreen: 2431553791,
|
|
285
|
+
lightgrey: 3553874943,
|
|
286
|
+
lightpink: 4290167295,
|
|
287
|
+
lightsalmon: 4288707327,
|
|
288
|
+
lightseagreen: 548580095,
|
|
289
|
+
lightskyblue: 2278488831,
|
|
290
|
+
lightslategray: 2005441023,
|
|
291
|
+
lightslategrey: 2005441023,
|
|
292
|
+
lightsteelblue: 2965692159,
|
|
293
|
+
lightyellow: 4294959359,
|
|
294
|
+
lime: 16711935,
|
|
295
|
+
limegreen: 852308735,
|
|
296
|
+
linen: 4210091775,
|
|
297
|
+
magenta: 4278255615,
|
|
298
|
+
maroon: 2147483903,
|
|
299
|
+
mediumaquamarine: 1724754687,
|
|
300
|
+
mediumblue: 52735,
|
|
301
|
+
mediumorchid: 3126187007,
|
|
302
|
+
mediumpurple: 2473647103,
|
|
303
|
+
mediumseagreen: 1018393087,
|
|
304
|
+
mediumslateblue: 2070474495,
|
|
305
|
+
mediumspringgreen: 16423679,
|
|
306
|
+
mediumturquoise: 1221709055,
|
|
307
|
+
mediumvioletred: 3340076543,
|
|
308
|
+
midnightblue: 421097727,
|
|
309
|
+
mintcream: 4127193855,
|
|
310
|
+
mistyrose: 4293190143,
|
|
311
|
+
moccasin: 4293178879,
|
|
312
|
+
navajowhite: 4292783615,
|
|
313
|
+
navy: 33023,
|
|
314
|
+
oldlace: 4260751103,
|
|
315
|
+
olive: 2155872511,
|
|
316
|
+
olivedrab: 1804477439,
|
|
317
|
+
orange: 4289003775,
|
|
318
|
+
orangered: 4282712319,
|
|
319
|
+
orchid: 3664828159,
|
|
320
|
+
palegoldenrod: 4008225535,
|
|
321
|
+
palegreen: 2566625535,
|
|
322
|
+
paleturquoise: 2951671551,
|
|
323
|
+
palevioletred: 3681588223,
|
|
324
|
+
papayawhip: 4293907967,
|
|
325
|
+
peachpuff: 4292524543,
|
|
326
|
+
peru: 3448061951,
|
|
327
|
+
pink: 4290825215,
|
|
328
|
+
plum: 3718307327,
|
|
329
|
+
powderblue: 2967529215,
|
|
330
|
+
purple: 2147516671,
|
|
331
|
+
rebeccapurple: 1714657791,
|
|
332
|
+
red: 4278190335,
|
|
333
|
+
rosybrown: 3163525119,
|
|
334
|
+
royalblue: 1097458175,
|
|
335
|
+
saddlebrown: 2336560127,
|
|
336
|
+
salmon: 4202722047,
|
|
337
|
+
sandybrown: 4104413439,
|
|
338
|
+
seagreen: 780883967,
|
|
339
|
+
seashell: 4294307583,
|
|
340
|
+
sienna: 2689740287,
|
|
341
|
+
silver: 3233857791,
|
|
342
|
+
skyblue: 2278484991,
|
|
343
|
+
slateblue: 1784335871,
|
|
344
|
+
slategray: 1887473919,
|
|
345
|
+
slategrey: 1887473919,
|
|
346
|
+
snow: 4294638335,
|
|
347
|
+
springgreen: 16744447,
|
|
348
|
+
steelblue: 1182971135,
|
|
349
|
+
tan: 3535047935,
|
|
350
|
+
teal: 8421631,
|
|
351
|
+
thistle: 3636451583,
|
|
352
|
+
tomato: 4284696575,
|
|
353
|
+
turquoise: 1088475391,
|
|
354
|
+
violet: 4001558271,
|
|
355
|
+
wheat: 4125012991,
|
|
356
|
+
white: 4294967295,
|
|
357
|
+
whitesmoke: 4126537215,
|
|
358
|
+
yellow: 4294902015,
|
|
359
|
+
yellowgreen: 2597139199
|
|
360
|
+
}, Q = "[-+]?\\d*\\.?\\d+", Me = Q + "%";
|
|
361
|
+
function We(...e) {
|
|
362
|
+
return "\\(\\s*(" + e.join(")\\s*,\\s*(") + ")\\s*\\)";
|
|
363
|
+
}
|
|
364
|
+
var Jn = new RegExp("rgb" + We(Q, Q, Q)), Xn = new RegExp("rgba" + We(Q, Q, Q, Q)), Yn = new RegExp("hsl" + We(Q, Me, Me)), ei = new RegExp(
|
|
365
|
+
"hsla" + We(Q, Me, Me, Q)
|
|
366
|
+
), ti = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, ni = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, ii = /^#([0-9a-fA-F]{6})$/, si = /^#([0-9a-fA-F]{8})$/;
|
|
367
|
+
function ri(e) {
|
|
368
|
+
let t;
|
|
369
|
+
return typeof e == "number" ? e >>> 0 === e && e >= 0 && e <= 4294967295 ? e : null : (t = ii.exec(e)) ? parseInt(t[1] + "ff", 16) >>> 0 : ie && ie[e] !== void 0 ? ie[e] : (t = Jn.exec(e)) ? (ue(t[1]) << 24 | // r
|
|
370
|
+
ue(t[2]) << 16 | // g
|
|
371
|
+
ue(t[3]) << 8 | // b
|
|
372
|
+
255) >>> // a
|
|
373
|
+
0 : (t = Xn.exec(e)) ? (ue(t[1]) << 24 | // r
|
|
374
|
+
ue(t[2]) << 16 | // g
|
|
375
|
+
ue(t[3]) << 8 | // b
|
|
376
|
+
Nt(t[4])) >>> // a
|
|
377
|
+
0 : (t = ti.exec(e)) ? parseInt(
|
|
378
|
+
t[1] + t[1] + // r
|
|
379
|
+
t[2] + t[2] + // g
|
|
380
|
+
t[3] + t[3] + // b
|
|
381
|
+
"ff",
|
|
382
|
+
// a
|
|
383
|
+
16
|
|
384
|
+
) >>> 0 : (t = si.exec(e)) ? parseInt(t[1], 16) >>> 0 : (t = ni.exec(e)) ? parseInt(
|
|
385
|
+
t[1] + t[1] + // r
|
|
386
|
+
t[2] + t[2] + // g
|
|
387
|
+
t[3] + t[3] + // b
|
|
388
|
+
t[4] + t[4],
|
|
389
|
+
// a
|
|
390
|
+
16
|
|
391
|
+
) >>> 0 : (t = Yn.exec(e)) ? (jt(
|
|
392
|
+
$t(t[1]),
|
|
393
|
+
// h
|
|
394
|
+
Ne(t[2]),
|
|
395
|
+
// s
|
|
396
|
+
Ne(t[3])
|
|
397
|
+
// l
|
|
398
|
+
) | 255) >>> // a
|
|
399
|
+
0 : (t = ei.exec(e)) ? (jt(
|
|
400
|
+
$t(t[1]),
|
|
401
|
+
// h
|
|
402
|
+
Ne(t[2]),
|
|
403
|
+
// s
|
|
404
|
+
Ne(t[3])
|
|
405
|
+
// l
|
|
406
|
+
) | Nt(t[4])) >>> // a
|
|
407
|
+
0 : null;
|
|
408
|
+
}
|
|
409
|
+
function nt(e, t, n) {
|
|
410
|
+
return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
|
|
411
|
+
}
|
|
412
|
+
function jt(e, t, n) {
|
|
413
|
+
const i = n < 0.5 ? n * (1 + t) : n + t - n * t, s = 2 * n - i, r = nt(s, i, e + 1 / 3), a = nt(s, i, e), u = nt(s, i, e - 1 / 3);
|
|
414
|
+
return Math.round(r * 255) << 24 | Math.round(a * 255) << 16 | Math.round(u * 255) << 8;
|
|
415
|
+
}
|
|
416
|
+
function ue(e) {
|
|
417
|
+
const t = parseInt(e, 10);
|
|
418
|
+
return t < 0 ? 0 : t > 255 ? 255 : t;
|
|
419
|
+
}
|
|
420
|
+
function $t(e) {
|
|
421
|
+
return (parseFloat(e) % 360 + 360) % 360 / 360;
|
|
422
|
+
}
|
|
423
|
+
function Nt(e) {
|
|
424
|
+
const t = parseFloat(e);
|
|
425
|
+
return t < 0 ? 0 : t > 1 ? 255 : Math.round(t * 255);
|
|
426
|
+
}
|
|
427
|
+
function Ne(e) {
|
|
428
|
+
const t = parseFloat(e);
|
|
429
|
+
return t < 0 ? 0 : t > 100 ? 1 : t / 100;
|
|
430
|
+
}
|
|
431
|
+
function zt(e) {
|
|
432
|
+
let t = ri(e);
|
|
433
|
+
if (t === null)
|
|
434
|
+
return e;
|
|
435
|
+
t = t || 0;
|
|
436
|
+
const n = (t & 4278190080) >>> 24, i = (t & 16711680) >>> 16, s = (t & 65280) >>> 8, r = (t & 255) / 255;
|
|
437
|
+
return `rgba(${n}, ${i}, ${s}, ${r})`;
|
|
438
|
+
}
|
|
439
|
+
var Pe = (e, t, n) => {
|
|
440
|
+
if (o.fun(e))
|
|
441
|
+
return e;
|
|
442
|
+
if (o.arr(e))
|
|
443
|
+
return Pe({
|
|
444
|
+
range: e,
|
|
445
|
+
output: t,
|
|
446
|
+
extrapolate: n
|
|
447
|
+
});
|
|
448
|
+
if (o.str(e.output[0]))
|
|
449
|
+
return Rt(e);
|
|
450
|
+
const i = e, s = i.output, r = i.range || [0, 1], a = i.extrapolateLeft || i.extrapolate || "extend", u = i.extrapolateRight || i.extrapolate || "extend", l = i.easing || ((c) => c);
|
|
451
|
+
return (c) => {
|
|
452
|
+
const p = oi(c, r);
|
|
453
|
+
return ai(
|
|
454
|
+
c,
|
|
455
|
+
r[p],
|
|
456
|
+
r[p + 1],
|
|
457
|
+
s[p],
|
|
458
|
+
s[p + 1],
|
|
459
|
+
l,
|
|
460
|
+
a,
|
|
461
|
+
u,
|
|
462
|
+
i.map
|
|
463
|
+
);
|
|
464
|
+
};
|
|
465
|
+
};
|
|
466
|
+
function ai(e, t, n, i, s, r, a, u, l) {
|
|
467
|
+
let c = l ? l(e) : e;
|
|
468
|
+
if (c < t) {
|
|
469
|
+
if (a === "identity")
|
|
470
|
+
return c;
|
|
471
|
+
a === "clamp" && (c = t);
|
|
472
|
+
}
|
|
473
|
+
if (c > n) {
|
|
474
|
+
if (u === "identity")
|
|
475
|
+
return c;
|
|
476
|
+
u === "clamp" && (c = n);
|
|
477
|
+
}
|
|
478
|
+
return i === s ? i : t === n ? e <= t ? i : s : (t === -1 / 0 ? c = -c : n === 1 / 0 ? c = c - t : c = (c - t) / (n - t), c = r(c), i === -1 / 0 ? c = -c : s === 1 / 0 ? c = c + i : c = c * (s - i) + i, c);
|
|
479
|
+
}
|
|
480
|
+
function oi(e, t) {
|
|
481
|
+
for (var n = 1; n < t.length - 1 && !(t[n] >= e); ++n)
|
|
482
|
+
;
|
|
483
|
+
return n - 1;
|
|
484
|
+
}
|
|
485
|
+
var ui = {
|
|
486
|
+
linear: (e) => e
|
|
487
|
+
}, Ae = Symbol.for("FluidValue.get"), fe = Symbol.for("FluidValue.observers"), $ = (e) => !!(e && e[Ae]), E = (e) => e && e[Ae] ? e[Ae]() : e, Dt = (e) => e[fe] || null;
|
|
488
|
+
function ci(e, t) {
|
|
489
|
+
e.eventObserved ? e.eventObserved(t) : e(t);
|
|
490
|
+
}
|
|
491
|
+
function ke(e, t) {
|
|
492
|
+
const n = e[fe];
|
|
493
|
+
n && n.forEach((i) => {
|
|
494
|
+
ci(i, t);
|
|
495
|
+
});
|
|
496
|
+
}
|
|
497
|
+
var hn = class {
|
|
498
|
+
constructor(e) {
|
|
499
|
+
if (!e && !(e = this.get))
|
|
500
|
+
throw Error("Unknown getter");
|
|
501
|
+
li(this, e);
|
|
502
|
+
}
|
|
503
|
+
}, li = (e, t) => mn(e, Ae, t);
|
|
504
|
+
function he(e, t) {
|
|
505
|
+
if (e[Ae]) {
|
|
506
|
+
let n = e[fe];
|
|
507
|
+
n || mn(e, fe, n = /* @__PURE__ */ new Set()), n.has(t) || (n.add(t), e.observerAdded && e.observerAdded(n.size, t));
|
|
508
|
+
}
|
|
509
|
+
return t;
|
|
510
|
+
}
|
|
511
|
+
function Re(e, t) {
|
|
512
|
+
const n = e[fe];
|
|
513
|
+
if (n && n.has(t)) {
|
|
514
|
+
const i = n.size - 1;
|
|
515
|
+
i ? n.delete(t) : e[fe] = null, e.observerRemoved && e.observerRemoved(i, t);
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
var mn = (e, t, n) => Object.defineProperty(e, t, {
|
|
519
|
+
value: n,
|
|
520
|
+
writable: !0,
|
|
521
|
+
configurable: !0
|
|
522
|
+
}), ze = /[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, di = /(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi, Qt = new RegExp(`(${ze.source})(%|[a-z]+)`, "i"), fi = /rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi, Ke = /var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/, pn = (e) => {
|
|
523
|
+
const [t, n] = hi(e);
|
|
524
|
+
if (!t || kt())
|
|
525
|
+
return e;
|
|
526
|
+
const i = window.getComputedStyle(document.documentElement).getPropertyValue(t);
|
|
527
|
+
if (i)
|
|
528
|
+
return i.trim();
|
|
529
|
+
if (n && n.startsWith("--")) {
|
|
530
|
+
const s = window.getComputedStyle(document.documentElement).getPropertyValue(n);
|
|
531
|
+
return s || e;
|
|
532
|
+
} else {
|
|
533
|
+
if (n && Ke.test(n))
|
|
534
|
+
return pn(n);
|
|
535
|
+
if (n)
|
|
536
|
+
return n;
|
|
537
|
+
}
|
|
538
|
+
return e;
|
|
539
|
+
}, hi = (e) => {
|
|
540
|
+
const t = Ke.exec(e);
|
|
541
|
+
if (!t)
|
|
542
|
+
return [,];
|
|
543
|
+
const [, n, i] = t;
|
|
544
|
+
return [n, i];
|
|
545
|
+
}, it, mi = (e, t, n, i, s) => `rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(i)}, ${s})`, gn = (e) => {
|
|
546
|
+
it || (it = ie ? (
|
|
547
|
+
// match color names, ignore partial matches
|
|
548
|
+
new RegExp(`(${Object.keys(ie).join("|")})(?!\\w)`, "g")
|
|
549
|
+
) : (
|
|
550
|
+
// never match
|
|
551
|
+
/^\b$/
|
|
552
|
+
));
|
|
553
|
+
const t = e.output.map((r) => E(r).replace(Ke, pn).replace(di, zt).replace(it, zt)), n = t.map((r) => r.match(ze).map(Number)), s = n[0].map(
|
|
554
|
+
(r, a) => n.map((u) => {
|
|
555
|
+
if (!(a in u))
|
|
556
|
+
throw Error('The arity of each "output" value must be equal');
|
|
557
|
+
return u[a];
|
|
558
|
+
})
|
|
559
|
+
).map(
|
|
560
|
+
(r) => Pe({ ...e, output: r })
|
|
561
|
+
);
|
|
562
|
+
return (r) => {
|
|
563
|
+
var l;
|
|
564
|
+
const a = !Qt.test(t[0]) && ((l = t.find((c) => Qt.test(c))) == null ? void 0 : l.replace(ze, ""));
|
|
565
|
+
let u = 0;
|
|
566
|
+
return t[0].replace(
|
|
567
|
+
ze,
|
|
568
|
+
() => `${s[u++](r)}${a || ""}`
|
|
569
|
+
).replace(fi, mi);
|
|
570
|
+
};
|
|
571
|
+
}, Ft = "react-spring: ", vn = (e) => {
|
|
572
|
+
const t = e;
|
|
573
|
+
let n = !1;
|
|
574
|
+
if (typeof t != "function")
|
|
575
|
+
throw new TypeError(`${Ft}once requires a function parameter`);
|
|
576
|
+
return (...i) => {
|
|
577
|
+
n || (t(...i), n = !0);
|
|
578
|
+
};
|
|
579
|
+
}, pi = vn(console.warn);
|
|
580
|
+
function gi() {
|
|
581
|
+
pi(
|
|
582
|
+
`${Ft}The "interpolate" function is deprecated in v9 (use "to" instead)`
|
|
583
|
+
);
|
|
584
|
+
}
|
|
585
|
+
var vi = vn(console.warn);
|
|
586
|
+
function yi() {
|
|
587
|
+
vi(
|
|
588
|
+
`${Ft}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`
|
|
589
|
+
);
|
|
590
|
+
}
|
|
591
|
+
function Ze(e) {
|
|
592
|
+
return o.str(e) && (e[0] == "#" || /\d/.test(e) || // Do not identify a CSS variable as an AnimatedString if its SSR
|
|
593
|
+
!kt() && Ke.test(e) || e in (ie || {}));
|
|
594
|
+
}
|
|
595
|
+
var ae = kt() ? Ee : Nn, _i = () => {
|
|
596
|
+
const e = H(!1);
|
|
597
|
+
return ae(() => (e.current = !0, () => {
|
|
598
|
+
e.current = !1;
|
|
599
|
+
}), []), e;
|
|
600
|
+
};
|
|
601
|
+
function Tt() {
|
|
602
|
+
const e = nn()[1], t = _i();
|
|
603
|
+
return () => {
|
|
604
|
+
t.current && e(Math.random());
|
|
605
|
+
};
|
|
606
|
+
}
|
|
607
|
+
function bi(e, t) {
|
|
608
|
+
const [n] = nn(
|
|
609
|
+
() => ({
|
|
610
|
+
inputs: t,
|
|
611
|
+
result: e()
|
|
612
|
+
})
|
|
613
|
+
), i = H(), s = i.current;
|
|
614
|
+
let r = s;
|
|
615
|
+
return r ? t && r.inputs && wi(t, r.inputs) || (r = {
|
|
616
|
+
inputs: t,
|
|
617
|
+
result: e()
|
|
618
|
+
}) : r = n, Ee(() => {
|
|
619
|
+
i.current = r, s == n && (n.inputs = n.result = void 0);
|
|
620
|
+
}, [r]), r.result;
|
|
621
|
+
}
|
|
622
|
+
function wi(e, t) {
|
|
623
|
+
if (e.length !== t.length)
|
|
624
|
+
return !1;
|
|
625
|
+
for (let n = 0; n < e.length; n++)
|
|
626
|
+
if (e[n] !== t[n])
|
|
627
|
+
return !1;
|
|
628
|
+
return !0;
|
|
629
|
+
}
|
|
630
|
+
var Ct = (e) => Ee(e, xi), xi = [];
|
|
631
|
+
function lt(e) {
|
|
632
|
+
const t = H();
|
|
633
|
+
return Ee(() => {
|
|
634
|
+
t.current = e;
|
|
635
|
+
}), t.current;
|
|
636
|
+
}
|
|
637
|
+
var Ie = Symbol.for("Animated:node"), Si = (e) => !!e && e[Ie] === e, G = (e) => e && e[Ie], Vt = (e, t) => Gn(e, Ie, t), Je = (e) => e && e[Ie] && e[Ie].getPayload(), yn = class {
|
|
638
|
+
constructor() {
|
|
639
|
+
Vt(this, this);
|
|
640
|
+
}
|
|
641
|
+
/** Get every `AnimatedValue` used by this node. */
|
|
642
|
+
getPayload() {
|
|
643
|
+
return this.payload || [];
|
|
644
|
+
}
|
|
645
|
+
}, qe = class extends yn {
|
|
646
|
+
constructor(e) {
|
|
647
|
+
super(), this._value = e, this.done = !0, this.durationProgress = 0, o.num(this._value) && (this.lastPosition = this._value);
|
|
648
|
+
}
|
|
649
|
+
/** @internal */
|
|
650
|
+
static create(e) {
|
|
651
|
+
return new qe(e);
|
|
652
|
+
}
|
|
653
|
+
getPayload() {
|
|
654
|
+
return [this];
|
|
655
|
+
}
|
|
656
|
+
getValue() {
|
|
657
|
+
return this._value;
|
|
658
|
+
}
|
|
659
|
+
setValue(e, t) {
|
|
660
|
+
return o.num(e) && (this.lastPosition = e, t && (e = Math.round(e / t) * t, this.done && (this.lastPosition = e))), this._value === e ? !1 : (this._value = e, !0);
|
|
661
|
+
}
|
|
662
|
+
reset() {
|
|
663
|
+
const { done: e } = this;
|
|
664
|
+
this.done = !1, o.num(this._value) && (this.elapsedTime = 0, this.durationProgress = 0, this.lastPosition = this._value, e && (this.lastVelocity = null), this.v0 = null);
|
|
665
|
+
}
|
|
666
|
+
}, Fe = class extends qe {
|
|
667
|
+
constructor(e) {
|
|
668
|
+
super(0), this._string = null, this._toString = Pe({
|
|
669
|
+
output: [e, e]
|
|
670
|
+
});
|
|
671
|
+
}
|
|
672
|
+
/** @internal */
|
|
673
|
+
static create(e) {
|
|
674
|
+
return new Fe(e);
|
|
675
|
+
}
|
|
676
|
+
getValue() {
|
|
677
|
+
const e = this._string;
|
|
678
|
+
return e ?? (this._string = this._toString(this._value));
|
|
679
|
+
}
|
|
680
|
+
setValue(e) {
|
|
681
|
+
if (o.str(e)) {
|
|
682
|
+
if (e == this._string)
|
|
683
|
+
return !1;
|
|
684
|
+
this._string = e, this._value = 1;
|
|
685
|
+
} else if (super.setValue(e))
|
|
686
|
+
this._string = null;
|
|
687
|
+
else
|
|
688
|
+
return !1;
|
|
689
|
+
return !0;
|
|
690
|
+
}
|
|
691
|
+
reset(e) {
|
|
692
|
+
e && (this._toString = Pe({
|
|
693
|
+
output: [this.getValue(), e]
|
|
694
|
+
})), this._value = 0, super.reset();
|
|
695
|
+
}
|
|
696
|
+
}, Le = { dependencies: null }, Xe = class extends yn {
|
|
697
|
+
constructor(e) {
|
|
698
|
+
super(), this.source = e, this.setValue(e);
|
|
699
|
+
}
|
|
700
|
+
getValue(e) {
|
|
701
|
+
const t = {};
|
|
702
|
+
return W(this.source, (n, i) => {
|
|
703
|
+
Si(n) ? t[i] = n.getValue(e) : $(n) ? t[i] = E(n) : e || (t[i] = n);
|
|
704
|
+
}), t;
|
|
705
|
+
}
|
|
706
|
+
/** Replace the raw object data */
|
|
707
|
+
setValue(e) {
|
|
708
|
+
this.source = e, this.payload = this._makePayload(e);
|
|
709
|
+
}
|
|
710
|
+
reset() {
|
|
711
|
+
this.payload && _(this.payload, (e) => e.reset());
|
|
712
|
+
}
|
|
713
|
+
/** Create a payload set. */
|
|
714
|
+
_makePayload(e) {
|
|
715
|
+
if (e) {
|
|
716
|
+
const t = /* @__PURE__ */ new Set();
|
|
717
|
+
return W(e, this._addToPayload, t), Array.from(t);
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
/** Add to a payload set. */
|
|
721
|
+
_addToPayload(e) {
|
|
722
|
+
Le.dependencies && $(e) && Le.dependencies.add(e);
|
|
723
|
+
const t = Je(e);
|
|
724
|
+
t && _(t, (n) => this.add(n));
|
|
725
|
+
}
|
|
726
|
+
}, _n = class extends Xe {
|
|
727
|
+
constructor(e) {
|
|
728
|
+
super(e);
|
|
729
|
+
}
|
|
730
|
+
/** @internal */
|
|
731
|
+
static create(e) {
|
|
732
|
+
return new _n(e);
|
|
733
|
+
}
|
|
734
|
+
getValue() {
|
|
735
|
+
return this.source.map((e) => e.getValue());
|
|
736
|
+
}
|
|
737
|
+
setValue(e) {
|
|
738
|
+
const t = this.getPayload();
|
|
739
|
+
return e.length == t.length ? t.map((n, i) => n.setValue(e[i])).some(Boolean) : (super.setValue(e.map(Pi)), !0);
|
|
740
|
+
}
|
|
741
|
+
};
|
|
742
|
+
function Pi(e) {
|
|
743
|
+
return (Ze(e) ? Fe : qe).create(e);
|
|
744
|
+
}
|
|
745
|
+
function dt(e) {
|
|
746
|
+
const t = G(e);
|
|
747
|
+
return t ? t.constructor : o.arr(e) ? _n : Ze(e) ? Fe : qe;
|
|
748
|
+
}
|
|
749
|
+
var Mt = (e, t) => {
|
|
750
|
+
const n = (
|
|
751
|
+
// Function components must use "forwardRef" to avoid being
|
|
752
|
+
// re-rendered on every animation frame.
|
|
753
|
+
!o.fun(e) || e.prototype && e.prototype.isReactComponent
|
|
754
|
+
);
|
|
755
|
+
return zn((i, s) => {
|
|
756
|
+
const r = H(null), a = n && // eslint-disable-next-line react-hooks/rules-of-hooks
|
|
757
|
+
Dn(
|
|
758
|
+
(f) => {
|
|
759
|
+
r.current = Ri(s, f);
|
|
760
|
+
},
|
|
761
|
+
[s]
|
|
762
|
+
), [u, l] = ki(i, t), c = Tt(), p = () => {
|
|
763
|
+
const f = r.current;
|
|
764
|
+
if (n && !f)
|
|
765
|
+
return;
|
|
766
|
+
(f ? t.applyAnimatedValues(f, u.getValue(!0)) : !1) === !1 && c();
|
|
767
|
+
}, h = new Ai(p, l), d = H();
|
|
768
|
+
ae(() => (d.current = h, _(l, (f) => he(f, h)), () => {
|
|
769
|
+
d.current && (_(
|
|
770
|
+
d.current.deps,
|
|
771
|
+
(f) => Re(f, d.current)
|
|
772
|
+
), x.cancel(d.current.update));
|
|
773
|
+
})), Ee(p, []), Ct(() => () => {
|
|
774
|
+
const f = d.current;
|
|
775
|
+
_(f.deps, (v) => Re(v, f));
|
|
776
|
+
});
|
|
777
|
+
const g = t.getComponentProps(u.getValue());
|
|
778
|
+
return /* @__PURE__ */ ce.createElement(e, { ...g, ref: a });
|
|
779
|
+
});
|
|
780
|
+
}, Ai = class {
|
|
781
|
+
constructor(e, t) {
|
|
782
|
+
this.update = e, this.deps = t;
|
|
783
|
+
}
|
|
784
|
+
eventObserved(e) {
|
|
785
|
+
e.type == "change" && x.write(this.update);
|
|
786
|
+
}
|
|
787
|
+
};
|
|
788
|
+
function ki(e, t) {
|
|
789
|
+
const n = /* @__PURE__ */ new Set();
|
|
790
|
+
return Le.dependencies = n, e.style && (e = {
|
|
791
|
+
...e,
|
|
792
|
+
style: t.createAnimatedStyle(e.style)
|
|
793
|
+
}), e = new Xe(e), Le.dependencies = null, [e, n];
|
|
794
|
+
}
|
|
795
|
+
function Ri(e, t) {
|
|
796
|
+
return e && (o.fun(e) ? e(t) : e.current = t), t;
|
|
797
|
+
}
|
|
798
|
+
var Lt = Symbol.for("AnimatedComponent"), Ii = (e, {
|
|
799
|
+
applyAnimatedValues: t = () => !1,
|
|
800
|
+
createAnimatedStyle: n = (s) => new Xe(s),
|
|
801
|
+
getComponentProps: i = (s) => s
|
|
802
|
+
} = {}) => {
|
|
803
|
+
const s = {
|
|
804
|
+
applyAnimatedValues: t,
|
|
805
|
+
createAnimatedStyle: n,
|
|
806
|
+
getComponentProps: i
|
|
807
|
+
}, r = (a) => {
|
|
808
|
+
const u = Bt(a) || "Anonymous";
|
|
809
|
+
return o.str(a) ? a = r[a] || (r[a] = Mt(a, s)) : a = a[Lt] || (a[Lt] = Mt(a, s)), a.displayName = `Animated(${u})`, a;
|
|
810
|
+
};
|
|
811
|
+
return W(e, (a, u) => {
|
|
812
|
+
o.arr(e) && (u = Bt(a)), r[u] = r(a);
|
|
813
|
+
}), {
|
|
814
|
+
animated: r
|
|
815
|
+
};
|
|
816
|
+
}, Bt = (e) => o.str(e) ? e : e && o.str(e.displayName) ? e.displayName : o.fun(e) && e.name || null;
|
|
817
|
+
function O(e, ...t) {
|
|
818
|
+
return o.fun(e) ? e(...t) : e;
|
|
819
|
+
}
|
|
820
|
+
var xe = (e, t) => e === !0 || !!(t && e && (o.fun(e) ? e(t) : V(e).includes(t))), bn = (e, t) => o.obj(e) ? t && e[t] : e, wn = (e, t) => e.default === !0 ? e[t] : e.default ? e.default[t] : void 0, Fi = (e) => e, Ye = (e, t = Fi) => {
|
|
821
|
+
let n = Ti;
|
|
822
|
+
e.default && e.default !== !0 && (e = e.default, n = Object.keys(e));
|
|
823
|
+
const i = {};
|
|
824
|
+
for (const s of n) {
|
|
825
|
+
const r = t(e[s], s);
|
|
826
|
+
o.und(r) || (i[s] = r);
|
|
827
|
+
}
|
|
828
|
+
return i;
|
|
829
|
+
}, Ti = [
|
|
830
|
+
"config",
|
|
831
|
+
"onProps",
|
|
832
|
+
"onStart",
|
|
833
|
+
"onChange",
|
|
834
|
+
"onPause",
|
|
835
|
+
"onResume",
|
|
836
|
+
"onRest"
|
|
837
|
+
], Ci = {
|
|
838
|
+
config: 1,
|
|
839
|
+
from: 1,
|
|
840
|
+
to: 1,
|
|
841
|
+
ref: 1,
|
|
842
|
+
loop: 1,
|
|
843
|
+
reset: 1,
|
|
844
|
+
pause: 1,
|
|
845
|
+
cancel: 1,
|
|
846
|
+
reverse: 1,
|
|
847
|
+
immediate: 1,
|
|
848
|
+
default: 1,
|
|
849
|
+
delay: 1,
|
|
850
|
+
onProps: 1,
|
|
851
|
+
onStart: 1,
|
|
852
|
+
onChange: 1,
|
|
853
|
+
onPause: 1,
|
|
854
|
+
onResume: 1,
|
|
855
|
+
onRest: 1,
|
|
856
|
+
onResolve: 1,
|
|
857
|
+
// Transition props
|
|
858
|
+
items: 1,
|
|
859
|
+
trail: 1,
|
|
860
|
+
sort: 1,
|
|
861
|
+
expires: 1,
|
|
862
|
+
initial: 1,
|
|
863
|
+
enter: 1,
|
|
864
|
+
update: 1,
|
|
865
|
+
leave: 1,
|
|
866
|
+
children: 1,
|
|
867
|
+
onDestroyed: 1,
|
|
868
|
+
// Internal props
|
|
869
|
+
keys: 1,
|
|
870
|
+
callId: 1,
|
|
871
|
+
parentId: 1
|
|
872
|
+
};
|
|
873
|
+
function Vi(e) {
|
|
874
|
+
const t = {};
|
|
875
|
+
let n = 0;
|
|
876
|
+
if (W(e, (i, s) => {
|
|
877
|
+
Ci[s] || (t[s] = i, n++);
|
|
878
|
+
}), n)
|
|
879
|
+
return t;
|
|
880
|
+
}
|
|
881
|
+
function Et(e) {
|
|
882
|
+
const t = Vi(e);
|
|
883
|
+
if (t) {
|
|
884
|
+
const n = { to: t };
|
|
885
|
+
return W(e, (i, s) => s in t || (n[s] = i)), n;
|
|
886
|
+
}
|
|
887
|
+
return { ...e };
|
|
888
|
+
}
|
|
889
|
+
function Te(e) {
|
|
890
|
+
return e = E(e), o.arr(e) ? e.map(Te) : Ze(e) ? M.createStringInterpolator({
|
|
891
|
+
range: [0, 1],
|
|
892
|
+
output: [e, e]
|
|
893
|
+
})(1) : e;
|
|
894
|
+
}
|
|
895
|
+
function xn(e) {
|
|
896
|
+
for (const t in e)
|
|
897
|
+
return !0;
|
|
898
|
+
return !1;
|
|
899
|
+
}
|
|
900
|
+
function ft(e) {
|
|
901
|
+
return o.fun(e) || o.arr(e) && o.obj(e[0]);
|
|
902
|
+
}
|
|
903
|
+
function ht(e, t) {
|
|
904
|
+
var n;
|
|
905
|
+
(n = e.ref) == null || n.delete(e), t == null || t.delete(e);
|
|
906
|
+
}
|
|
907
|
+
function Sn(e, t) {
|
|
908
|
+
var n;
|
|
909
|
+
t && e.ref !== t && ((n = e.ref) == null || n.delete(e), t.add(e), e.ref = t);
|
|
910
|
+
}
|
|
911
|
+
var Ei = {
|
|
912
|
+
default: { tension: 170, friction: 26 }
|
|
913
|
+
}, mt = {
|
|
914
|
+
...Ei.default,
|
|
915
|
+
mass: 1,
|
|
916
|
+
damping: 1,
|
|
917
|
+
easing: ui.linear,
|
|
918
|
+
clamp: !1
|
|
919
|
+
}, Oi = class {
|
|
920
|
+
constructor() {
|
|
921
|
+
this.velocity = 0, Object.assign(this, mt);
|
|
922
|
+
}
|
|
923
|
+
};
|
|
924
|
+
function Ui(e, t, n) {
|
|
925
|
+
n && (n = { ...n }, Gt(n, t), t = { ...n, ...t }), Gt(e, t), Object.assign(e, t);
|
|
926
|
+
for (const a in mt)
|
|
927
|
+
e[a] == null && (e[a] = mt[a]);
|
|
928
|
+
let { frequency: i, damping: s } = e;
|
|
929
|
+
const { mass: r } = e;
|
|
930
|
+
return o.und(i) || (i < 0.01 && (i = 0.01), s < 0 && (s = 0), e.tension = Math.pow(2 * Math.PI / i, 2) * r, e.friction = 4 * Math.PI * s * r / i), e;
|
|
931
|
+
}
|
|
932
|
+
function Gt(e, t) {
|
|
933
|
+
if (!o.und(t.decay))
|
|
934
|
+
e.duration = void 0;
|
|
935
|
+
else {
|
|
936
|
+
const n = !o.und(t.tension) || !o.und(t.friction);
|
|
937
|
+
(n || !o.und(t.frequency) || !o.und(t.damping) || !o.und(t.mass)) && (e.duration = void 0, e.decay = void 0), n && (e.frequency = void 0);
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
var Ht = [], qi = class {
|
|
941
|
+
constructor() {
|
|
942
|
+
this.changed = !1, this.values = Ht, this.toValues = null, this.fromValues = Ht, this.config = new Oi(), this.immediate = !1;
|
|
943
|
+
}
|
|
944
|
+
};
|
|
945
|
+
function Pn(e, { key: t, props: n, defaultProps: i, state: s, actions: r }) {
|
|
946
|
+
return new Promise((a, u) => {
|
|
947
|
+
let l, c, p = xe(n.cancel ?? (i == null ? void 0 : i.cancel), t);
|
|
948
|
+
if (p)
|
|
949
|
+
g();
|
|
950
|
+
else {
|
|
951
|
+
o.und(n.pause) || (s.paused = xe(n.pause, t));
|
|
952
|
+
let f = i == null ? void 0 : i.pause;
|
|
953
|
+
f !== !0 && (f = s.paused || xe(f, t)), l = O(n.delay || 0, t), f ? (s.resumeQueue.add(d), r.pause()) : (r.resume(), d());
|
|
954
|
+
}
|
|
955
|
+
function h() {
|
|
956
|
+
s.resumeQueue.add(d), s.timeouts.delete(c), c.cancel(), l = c.time - x.now();
|
|
957
|
+
}
|
|
958
|
+
function d() {
|
|
959
|
+
l > 0 && !M.skipAnimation ? (s.delayed = !0, c = x.setTimeout(g, l), s.pauseQueue.add(h), s.timeouts.add(c)) : g();
|
|
960
|
+
}
|
|
961
|
+
function g() {
|
|
962
|
+
s.delayed && (s.delayed = !1), s.pauseQueue.delete(h), s.timeouts.delete(c), e <= (s.cancelId || 0) && (p = !0);
|
|
963
|
+
try {
|
|
964
|
+
r.start({ ...n, callId: e, cancel: p }, a);
|
|
965
|
+
} catch (f) {
|
|
966
|
+
u(f);
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
});
|
|
970
|
+
}
|
|
971
|
+
var Ot = (e, t) => t.length == 1 ? t[0] : t.some((n) => n.cancelled) ? de(e.get()) : t.every((n) => n.noop) ? An(e.get()) : D(
|
|
972
|
+
e.get(),
|
|
973
|
+
t.every((n) => n.finished)
|
|
974
|
+
), An = (e) => ({
|
|
975
|
+
value: e,
|
|
976
|
+
noop: !0,
|
|
977
|
+
finished: !0,
|
|
978
|
+
cancelled: !1
|
|
979
|
+
}), D = (e, t, n = !1) => ({
|
|
980
|
+
value: e,
|
|
981
|
+
finished: t,
|
|
982
|
+
cancelled: n
|
|
983
|
+
}), de = (e) => ({
|
|
984
|
+
value: e,
|
|
985
|
+
cancelled: !0,
|
|
986
|
+
finished: !1
|
|
987
|
+
});
|
|
988
|
+
function kn(e, t, n, i) {
|
|
989
|
+
const { callId: s, parentId: r, onRest: a } = t, { asyncTo: u, promise: l } = n;
|
|
990
|
+
return !r && e === u && !t.reset ? l : n.promise = (async () => {
|
|
991
|
+
n.asyncId = s, n.asyncTo = e;
|
|
992
|
+
const c = Ye(
|
|
993
|
+
t,
|
|
994
|
+
(b, m) => (
|
|
995
|
+
// The `onRest` prop is only called when the `runAsync` promise is resolved.
|
|
996
|
+
m === "onRest" ? void 0 : b
|
|
997
|
+
)
|
|
998
|
+
);
|
|
999
|
+
let p, h;
|
|
1000
|
+
const d = new Promise(
|
|
1001
|
+
(b, m) => (p = b, h = m)
|
|
1002
|
+
), g = (b) => {
|
|
1003
|
+
const m = (
|
|
1004
|
+
// The `cancel` prop or `stop` method was used.
|
|
1005
|
+
s <= (n.cancelId || 0) && de(i) || // The async `to` prop was replaced.
|
|
1006
|
+
s !== n.asyncId && D(i, !1)
|
|
1007
|
+
);
|
|
1008
|
+
if (m)
|
|
1009
|
+
throw b.result = m, h(b), b;
|
|
1010
|
+
}, f = (b, m) => {
|
|
1011
|
+
const S = new Wt(), y = new Kt();
|
|
1012
|
+
return (async () => {
|
|
1013
|
+
if (M.skipAnimation)
|
|
1014
|
+
throw Ce(n), y.result = D(i, !1), h(y), y;
|
|
1015
|
+
g(S);
|
|
1016
|
+
const A = o.obj(b) ? { ...b } : { ...m, to: b };
|
|
1017
|
+
A.parentId = s, W(c, (L, R) => {
|
|
1018
|
+
o.und(A[R]) && (A[R] = L);
|
|
1019
|
+
});
|
|
1020
|
+
const k = await i.start(A);
|
|
1021
|
+
return g(S), n.paused && await new Promise((L) => {
|
|
1022
|
+
n.resumeQueue.add(L);
|
|
1023
|
+
}), k;
|
|
1024
|
+
})();
|
|
1025
|
+
};
|
|
1026
|
+
let v;
|
|
1027
|
+
if (M.skipAnimation)
|
|
1028
|
+
return Ce(n), D(i, !1);
|
|
1029
|
+
try {
|
|
1030
|
+
let b;
|
|
1031
|
+
o.arr(e) ? b = (async (m) => {
|
|
1032
|
+
for (const S of m)
|
|
1033
|
+
await f(S);
|
|
1034
|
+
})(e) : b = Promise.resolve(e(f, i.stop.bind(i))), await Promise.all([b.then(p), d]), v = D(i.get(), !0, !1);
|
|
1035
|
+
} catch (b) {
|
|
1036
|
+
if (b instanceof Wt)
|
|
1037
|
+
v = b.result;
|
|
1038
|
+
else if (b instanceof Kt)
|
|
1039
|
+
v = b.result;
|
|
1040
|
+
else
|
|
1041
|
+
throw b;
|
|
1042
|
+
} finally {
|
|
1043
|
+
s == n.asyncId && (n.asyncId = r, n.asyncTo = r ? u : void 0, n.promise = r ? l : void 0);
|
|
1044
|
+
}
|
|
1045
|
+
return o.fun(a) && x.batchedUpdates(() => {
|
|
1046
|
+
a(v, i, i.item);
|
|
1047
|
+
}), v;
|
|
1048
|
+
})();
|
|
1049
|
+
}
|
|
1050
|
+
function Ce(e, t) {
|
|
1051
|
+
be(e.timeouts, (n) => n.cancel()), e.pauseQueue.clear(), e.resumeQueue.clear(), e.asyncId = e.asyncTo = e.promise = void 0, t && (e.cancelId = t);
|
|
1052
|
+
}
|
|
1053
|
+
var Wt = class extends Error {
|
|
1054
|
+
constructor() {
|
|
1055
|
+
super(
|
|
1056
|
+
"An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."
|
|
1057
|
+
);
|
|
1058
|
+
}
|
|
1059
|
+
}, Kt = class extends Error {
|
|
1060
|
+
constructor() {
|
|
1061
|
+
super("SkipAnimationSignal");
|
|
1062
|
+
}
|
|
1063
|
+
}, pt = (e) => e instanceof Ut, ji = 1, Ut = class extends hn {
|
|
1064
|
+
constructor() {
|
|
1065
|
+
super(...arguments), this.id = ji++, this._priority = 0;
|
|
1066
|
+
}
|
|
1067
|
+
get priority() {
|
|
1068
|
+
return this._priority;
|
|
1069
|
+
}
|
|
1070
|
+
set priority(e) {
|
|
1071
|
+
this._priority != e && (this._priority = e, this._onPriorityChange(e));
|
|
1072
|
+
}
|
|
1073
|
+
/** Get the current value */
|
|
1074
|
+
get() {
|
|
1075
|
+
const e = G(this);
|
|
1076
|
+
return e && e.getValue();
|
|
1077
|
+
}
|
|
1078
|
+
/** Create a spring that maps our value to another value */
|
|
1079
|
+
to(...e) {
|
|
1080
|
+
return M.to(this, e);
|
|
1081
|
+
}
|
|
1082
|
+
/** @deprecated Use the `to` method instead. */
|
|
1083
|
+
interpolate(...e) {
|
|
1084
|
+
return gi(), M.to(this, e);
|
|
1085
|
+
}
|
|
1086
|
+
toJSON() {
|
|
1087
|
+
return this.get();
|
|
1088
|
+
}
|
|
1089
|
+
observerAdded(e) {
|
|
1090
|
+
e == 1 && this._attach();
|
|
1091
|
+
}
|
|
1092
|
+
observerRemoved(e) {
|
|
1093
|
+
e == 0 && this._detach();
|
|
1094
|
+
}
|
|
1095
|
+
/** Called when the first child is added. */
|
|
1096
|
+
_attach() {
|
|
1097
|
+
}
|
|
1098
|
+
/** Called when the last child is removed. */
|
|
1099
|
+
_detach() {
|
|
1100
|
+
}
|
|
1101
|
+
/** Tell our children about our new value */
|
|
1102
|
+
_onChange(e, t = !1) {
|
|
1103
|
+
ke(this, {
|
|
1104
|
+
type: "change",
|
|
1105
|
+
parent: this,
|
|
1106
|
+
value: e,
|
|
1107
|
+
idle: t
|
|
1108
|
+
});
|
|
1109
|
+
}
|
|
1110
|
+
/** Tell our children about our new priority */
|
|
1111
|
+
_onPriorityChange(e) {
|
|
1112
|
+
this.idle || He.sort(this), ke(this, {
|
|
1113
|
+
type: "priority",
|
|
1114
|
+
parent: this,
|
|
1115
|
+
priority: e
|
|
1116
|
+
});
|
|
1117
|
+
}
|
|
1118
|
+
}, oe = Symbol.for("SpringPhase"), Rn = 1, gt = 2, vt = 4, st = (e) => (e[oe] & Rn) > 0, ee = (e) => (e[oe] & gt) > 0, pe = (e) => (e[oe] & vt) > 0, Zt = (e, t) => t ? e[oe] |= gt | Rn : e[oe] &= ~gt, Jt = (e, t) => t ? e[oe] |= vt : e[oe] &= ~vt, $i = class extends Ut {
|
|
1119
|
+
constructor(e, t) {
|
|
1120
|
+
if (super(), this.animation = new qi(), this.defaultProps = {}, this._state = {
|
|
1121
|
+
paused: !1,
|
|
1122
|
+
delayed: !1,
|
|
1123
|
+
pauseQueue: /* @__PURE__ */ new Set(),
|
|
1124
|
+
resumeQueue: /* @__PURE__ */ new Set(),
|
|
1125
|
+
timeouts: /* @__PURE__ */ new Set()
|
|
1126
|
+
}, this._pendingCalls = /* @__PURE__ */ new Set(), this._lastCallId = 0, this._lastToId = 0, this._memoizedDuration = 0, !o.und(e) || !o.und(t)) {
|
|
1127
|
+
const n = o.obj(e) ? { ...e } : { ...t, from: e };
|
|
1128
|
+
o.und(n.default) && (n.default = !0), this.start(n);
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
/** Equals true when not advancing on each frame. */
|
|
1132
|
+
get idle() {
|
|
1133
|
+
return !(ee(this) || this._state.asyncTo) || pe(this);
|
|
1134
|
+
}
|
|
1135
|
+
get goal() {
|
|
1136
|
+
return E(this.animation.to);
|
|
1137
|
+
}
|
|
1138
|
+
get velocity() {
|
|
1139
|
+
const e = G(this);
|
|
1140
|
+
return e instanceof qe ? e.lastVelocity || 0 : e.getPayload().map((t) => t.lastVelocity || 0);
|
|
1141
|
+
}
|
|
1142
|
+
/**
|
|
1143
|
+
* When true, this value has been animated at least once.
|
|
1144
|
+
*/
|
|
1145
|
+
get hasAnimated() {
|
|
1146
|
+
return st(this);
|
|
1147
|
+
}
|
|
1148
|
+
/**
|
|
1149
|
+
* When true, this value has an unfinished animation,
|
|
1150
|
+
* which is either active or paused.
|
|
1151
|
+
*/
|
|
1152
|
+
get isAnimating() {
|
|
1153
|
+
return ee(this);
|
|
1154
|
+
}
|
|
1155
|
+
/**
|
|
1156
|
+
* When true, all current and future animations are paused.
|
|
1157
|
+
*/
|
|
1158
|
+
get isPaused() {
|
|
1159
|
+
return pe(this);
|
|
1160
|
+
}
|
|
1161
|
+
/**
|
|
1162
|
+
*
|
|
1163
|
+
*
|
|
1164
|
+
*/
|
|
1165
|
+
get isDelayed() {
|
|
1166
|
+
return this._state.delayed;
|
|
1167
|
+
}
|
|
1168
|
+
/** Advance the current animation by a number of milliseconds */
|
|
1169
|
+
advance(e) {
|
|
1170
|
+
let t = !0, n = !1;
|
|
1171
|
+
const i = this.animation;
|
|
1172
|
+
let { toValues: s } = i;
|
|
1173
|
+
const { config: r } = i, a = Je(i.to);
|
|
1174
|
+
!a && $(i.to) && (s = V(E(i.to))), i.values.forEach((c, p) => {
|
|
1175
|
+
if (c.done)
|
|
1176
|
+
return;
|
|
1177
|
+
const h = (
|
|
1178
|
+
// Animated strings always go from 0 to 1.
|
|
1179
|
+
c.constructor == Fe ? 1 : a ? a[p].lastPosition : s[p]
|
|
1180
|
+
);
|
|
1181
|
+
let d = i.immediate, g = h;
|
|
1182
|
+
if (!d) {
|
|
1183
|
+
if (g = c.lastPosition, r.tension <= 0) {
|
|
1184
|
+
c.done = !0;
|
|
1185
|
+
return;
|
|
1186
|
+
}
|
|
1187
|
+
let f = c.elapsedTime += e;
|
|
1188
|
+
const v = i.fromValues[p], b = c.v0 != null ? c.v0 : c.v0 = o.arr(r.velocity) ? r.velocity[p] : r.velocity;
|
|
1189
|
+
let m;
|
|
1190
|
+
const S = r.precision || (v == h ? 5e-3 : Math.min(1, Math.abs(h - v) * 1e-3));
|
|
1191
|
+
if (o.und(r.duration))
|
|
1192
|
+
if (r.decay) {
|
|
1193
|
+
const y = r.decay === !0 ? 0.998 : r.decay, A = Math.exp(-(1 - y) * f);
|
|
1194
|
+
g = v + b / (1 - y) * (1 - A), d = Math.abs(c.lastPosition - g) <= S, m = b * A;
|
|
1195
|
+
} else {
|
|
1196
|
+
m = c.lastVelocity == null ? b : c.lastVelocity;
|
|
1197
|
+
const y = r.restVelocity || S / 10, A = r.clamp ? 0 : r.bounce, k = !o.und(A), L = v == h ? c.v0 > 0 : v < h;
|
|
1198
|
+
let R, B = !1;
|
|
1199
|
+
const I = 1, j = Math.ceil(e / I);
|
|
1200
|
+
for (let U = 0; U < j && (R = Math.abs(m) > y, !(!R && (d = Math.abs(h - g) <= S, d))); ++U) {
|
|
1201
|
+
k && (B = g == h || g > h == L, B && (m = -m * A, g = h));
|
|
1202
|
+
const K = -r.tension * 1e-6 * (g - h), Z = -r.friction * 1e-3 * m, w = (K + Z) / r.mass;
|
|
1203
|
+
m = m + w * I, g = g + m * I;
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
1206
|
+
else {
|
|
1207
|
+
let y = 1;
|
|
1208
|
+
r.duration > 0 && (this._memoizedDuration !== r.duration && (this._memoizedDuration = r.duration, c.durationProgress > 0 && (c.elapsedTime = r.duration * c.durationProgress, f = c.elapsedTime += e)), y = (r.progress || 0) + f / this._memoizedDuration, y = y > 1 ? 1 : y < 0 ? 0 : y, c.durationProgress = y), g = v + r.easing(y) * (h - v), m = (g - c.lastPosition) / e, d = y == 1;
|
|
1209
|
+
}
|
|
1210
|
+
c.lastVelocity = m, Number.isNaN(g) && (console.warn("Got NaN while animating:", this), d = !0);
|
|
1211
|
+
}
|
|
1212
|
+
a && !a[p].done && (d = !1), d ? c.done = !0 : t = !1, c.setValue(g, r.round) && (n = !0);
|
|
1213
|
+
});
|
|
1214
|
+
const u = G(this), l = u.getValue();
|
|
1215
|
+
if (t) {
|
|
1216
|
+
const c = E(i.to);
|
|
1217
|
+
(l !== c || n) && !r.decay ? (u.setValue(c), this._onChange(c)) : n && r.decay && this._onChange(l), this._stop();
|
|
1218
|
+
} else n && this._onChange(l);
|
|
1219
|
+
}
|
|
1220
|
+
/** Set the current value, while stopping the current animation */
|
|
1221
|
+
set(e) {
|
|
1222
|
+
return x.batchedUpdates(() => {
|
|
1223
|
+
this._stop(), this._focus(e), this._set(e);
|
|
1224
|
+
}), this;
|
|
1225
|
+
}
|
|
1226
|
+
/**
|
|
1227
|
+
* Freeze the active animation in time, as well as any updates merged
|
|
1228
|
+
* before `resume` is called.
|
|
1229
|
+
*/
|
|
1230
|
+
pause() {
|
|
1231
|
+
this._update({ pause: !0 });
|
|
1232
|
+
}
|
|
1233
|
+
/** Resume the animation if paused. */
|
|
1234
|
+
resume() {
|
|
1235
|
+
this._update({ pause: !1 });
|
|
1236
|
+
}
|
|
1237
|
+
/** Skip to the end of the current animation. */
|
|
1238
|
+
finish() {
|
|
1239
|
+
if (ee(this)) {
|
|
1240
|
+
const { to: e, config: t } = this.animation;
|
|
1241
|
+
x.batchedUpdates(() => {
|
|
1242
|
+
this._onStart(), t.decay || this._set(e, !1), this._stop();
|
|
1243
|
+
});
|
|
1244
|
+
}
|
|
1245
|
+
return this;
|
|
1246
|
+
}
|
|
1247
|
+
/** Push props into the pending queue. */
|
|
1248
|
+
update(e) {
|
|
1249
|
+
return (this.queue || (this.queue = [])).push(e), this;
|
|
1250
|
+
}
|
|
1251
|
+
start(e, t) {
|
|
1252
|
+
let n;
|
|
1253
|
+
return o.und(e) ? (n = this.queue || [], this.queue = []) : n = [o.obj(e) ? e : { ...t, to: e }], Promise.all(
|
|
1254
|
+
n.map((i) => this._update(i))
|
|
1255
|
+
).then((i) => Ot(this, i));
|
|
1256
|
+
}
|
|
1257
|
+
/**
|
|
1258
|
+
* Stop the current animation, and cancel any delayed updates.
|
|
1259
|
+
*
|
|
1260
|
+
* Pass `true` to call `onRest` with `cancelled: true`.
|
|
1261
|
+
*/
|
|
1262
|
+
stop(e) {
|
|
1263
|
+
const { to: t } = this.animation;
|
|
1264
|
+
return this._focus(this.get()), Ce(this._state, e && this._lastCallId), x.batchedUpdates(() => this._stop(t, e)), this;
|
|
1265
|
+
}
|
|
1266
|
+
/** Restart the animation. */
|
|
1267
|
+
reset() {
|
|
1268
|
+
this._update({ reset: !0 });
|
|
1269
|
+
}
|
|
1270
|
+
/** @internal */
|
|
1271
|
+
eventObserved(e) {
|
|
1272
|
+
e.type == "change" ? this._start() : e.type == "priority" && (this.priority = e.priority + 1);
|
|
1273
|
+
}
|
|
1274
|
+
/**
|
|
1275
|
+
* Parse the `to` and `from` range from the given `props` object.
|
|
1276
|
+
*
|
|
1277
|
+
* This also ensures the initial value is available to animated components
|
|
1278
|
+
* during the render phase.
|
|
1279
|
+
*/
|
|
1280
|
+
_prepareNode(e) {
|
|
1281
|
+
const t = this.key || "";
|
|
1282
|
+
let { to: n, from: i } = e;
|
|
1283
|
+
n = o.obj(n) ? n[t] : n, (n == null || ft(n)) && (n = void 0), i = o.obj(i) ? i[t] : i, i == null && (i = void 0);
|
|
1284
|
+
const s = { to: n, from: i };
|
|
1285
|
+
return st(this) || (e.reverse && ([n, i] = [i, n]), i = E(i), o.und(i) ? G(this) || this._set(n) : this._set(i)), s;
|
|
1286
|
+
}
|
|
1287
|
+
/** Every update is processed by this method before merging. */
|
|
1288
|
+
_update({ ...e }, t) {
|
|
1289
|
+
const { key: n, defaultProps: i } = this;
|
|
1290
|
+
e.default && Object.assign(
|
|
1291
|
+
i,
|
|
1292
|
+
Ye(
|
|
1293
|
+
e,
|
|
1294
|
+
(a, u) => /^on/.test(u) ? bn(a, n) : a
|
|
1295
|
+
)
|
|
1296
|
+
), Yt(this, e, "onProps"), ve(this, "onProps", e, this);
|
|
1297
|
+
const s = this._prepareNode(e);
|
|
1298
|
+
if (Object.isFrozen(this))
|
|
1299
|
+
throw Error(
|
|
1300
|
+
"Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?"
|
|
1301
|
+
);
|
|
1302
|
+
const r = this._state;
|
|
1303
|
+
return Pn(++this._lastCallId, {
|
|
1304
|
+
key: n,
|
|
1305
|
+
props: e,
|
|
1306
|
+
defaultProps: i,
|
|
1307
|
+
state: r,
|
|
1308
|
+
actions: {
|
|
1309
|
+
pause: () => {
|
|
1310
|
+
pe(this) || (Jt(this, !0), _e(r.pauseQueue), ve(
|
|
1311
|
+
this,
|
|
1312
|
+
"onPause",
|
|
1313
|
+
D(this, ge(this, this.animation.to)),
|
|
1314
|
+
this
|
|
1315
|
+
));
|
|
1316
|
+
},
|
|
1317
|
+
resume: () => {
|
|
1318
|
+
pe(this) && (Jt(this, !1), ee(this) && this._resume(), _e(r.resumeQueue), ve(
|
|
1319
|
+
this,
|
|
1320
|
+
"onResume",
|
|
1321
|
+
D(this, ge(this, this.animation.to)),
|
|
1322
|
+
this
|
|
1323
|
+
));
|
|
1324
|
+
},
|
|
1325
|
+
start: this._merge.bind(this, s)
|
|
1326
|
+
}
|
|
1327
|
+
}).then((a) => {
|
|
1328
|
+
if (e.loop && a.finished && !(t && a.noop)) {
|
|
1329
|
+
const u = In(e);
|
|
1330
|
+
if (u)
|
|
1331
|
+
return this._update(u, !0);
|
|
1332
|
+
}
|
|
1333
|
+
return a;
|
|
1334
|
+
});
|
|
1335
|
+
}
|
|
1336
|
+
/** Merge props into the current animation */
|
|
1337
|
+
_merge(e, t, n) {
|
|
1338
|
+
if (t.cancel)
|
|
1339
|
+
return this.stop(!0), n(de(this));
|
|
1340
|
+
const i = !o.und(e.to), s = !o.und(e.from);
|
|
1341
|
+
if (i || s)
|
|
1342
|
+
if (t.callId > this._lastToId)
|
|
1343
|
+
this._lastToId = t.callId;
|
|
1344
|
+
else
|
|
1345
|
+
return n(de(this));
|
|
1346
|
+
const { key: r, defaultProps: a, animation: u } = this, { to: l, from: c } = u;
|
|
1347
|
+
let { to: p = l, from: h = c } = e;
|
|
1348
|
+
s && !i && (!t.default || o.und(p)) && (p = h), t.reverse && ([p, h] = [h, p]);
|
|
1349
|
+
const d = !X(h, c);
|
|
1350
|
+
d && (u.from = h), h = E(h);
|
|
1351
|
+
const g = !X(p, l);
|
|
1352
|
+
g && this._focus(p);
|
|
1353
|
+
const f = ft(t.to), { config: v } = u, { decay: b, velocity: m } = v;
|
|
1354
|
+
(i || s) && (v.velocity = 0), t.config && !f && Ui(
|
|
1355
|
+
v,
|
|
1356
|
+
O(t.config, r),
|
|
1357
|
+
// Avoid calling the same "config" prop twice.
|
|
1358
|
+
t.config !== a.config ? O(a.config, r) : void 0
|
|
1359
|
+
);
|
|
1360
|
+
let S = G(this);
|
|
1361
|
+
if (!S || o.und(p))
|
|
1362
|
+
return n(D(this, !0));
|
|
1363
|
+
const y = (
|
|
1364
|
+
// When `reset` is undefined, the `from` prop implies `reset: true`,
|
|
1365
|
+
// except for declarative updates. When `reset` is defined, there
|
|
1366
|
+
// must exist a value to animate from.
|
|
1367
|
+
o.und(t.reset) ? s && !t.default : !o.und(h) && xe(t.reset, r)
|
|
1368
|
+
), A = y ? h : this.get(), k = Te(p), L = o.num(k) || o.arr(k) || Ze(k), R = !f && (!L || xe(a.immediate || t.immediate, r));
|
|
1369
|
+
if (g) {
|
|
1370
|
+
const U = dt(p);
|
|
1371
|
+
if (U !== S.constructor)
|
|
1372
|
+
if (R)
|
|
1373
|
+
S = this._set(k);
|
|
1374
|
+
else
|
|
1375
|
+
throw Error(
|
|
1376
|
+
`Cannot animate between ${S.constructor.name} and ${U.name}, as the "to" prop suggests`
|
|
1377
|
+
);
|
|
1378
|
+
}
|
|
1379
|
+
const B = S.constructor;
|
|
1380
|
+
let I = $(p), j = !1;
|
|
1381
|
+
if (!I) {
|
|
1382
|
+
const U = y || !st(this) && d;
|
|
1383
|
+
(g || U) && (j = X(Te(A), k), I = !j), (!X(u.immediate, R) && !R || !X(v.decay, b) || !X(v.velocity, m)) && (I = !0);
|
|
1384
|
+
}
|
|
1385
|
+
if (j && ee(this) && (u.changed && !y ? I = !0 : I || this._stop(l)), !f && ((I || $(l)) && (u.values = S.getPayload(), u.toValues = $(p) ? null : B == Fe ? [1] : V(k)), u.immediate != R && (u.immediate = R, !R && !y && this._set(l)), I)) {
|
|
1386
|
+
const { onRest: U } = u;
|
|
1387
|
+
_(zi, (Z) => Yt(this, t, Z));
|
|
1388
|
+
const K = D(this, ge(this, l));
|
|
1389
|
+
_e(this._pendingCalls, K), this._pendingCalls.add(n), u.changed && x.batchedUpdates(() => {
|
|
1390
|
+
var Z;
|
|
1391
|
+
u.changed = !y, U == null || U(K, this), y ? O(a.onRest, K) : (Z = u.onStart) == null || Z.call(u, K, this);
|
|
1392
|
+
});
|
|
1393
|
+
}
|
|
1394
|
+
y && this._set(A), f ? n(kn(t.to, t, this._state, this)) : I ? this._start() : ee(this) && !g ? this._pendingCalls.add(n) : n(An(A));
|
|
1395
|
+
}
|
|
1396
|
+
/** Update the `animation.to` value, which might be a `FluidValue` */
|
|
1397
|
+
_focus(e) {
|
|
1398
|
+
const t = this.animation;
|
|
1399
|
+
e !== t.to && (Dt(this) && this._detach(), t.to = e, Dt(this) && this._attach());
|
|
1400
|
+
}
|
|
1401
|
+
_attach() {
|
|
1402
|
+
let e = 0;
|
|
1403
|
+
const { to: t } = this.animation;
|
|
1404
|
+
$(t) && (he(t, this), pt(t) && (e = t.priority + 1)), this.priority = e;
|
|
1405
|
+
}
|
|
1406
|
+
_detach() {
|
|
1407
|
+
const { to: e } = this.animation;
|
|
1408
|
+
$(e) && Re(e, this);
|
|
1409
|
+
}
|
|
1410
|
+
/**
|
|
1411
|
+
* Update the current value from outside the frameloop,
|
|
1412
|
+
* and return the `Animated` node.
|
|
1413
|
+
*/
|
|
1414
|
+
_set(e, t = !0) {
|
|
1415
|
+
const n = E(e);
|
|
1416
|
+
if (!o.und(n)) {
|
|
1417
|
+
const i = G(this);
|
|
1418
|
+
if (!i || !X(n, i.getValue())) {
|
|
1419
|
+
const s = dt(n);
|
|
1420
|
+
!i || i.constructor != s ? Vt(this, s.create(n)) : i.setValue(n), i && x.batchedUpdates(() => {
|
|
1421
|
+
this._onChange(n, t);
|
|
1422
|
+
});
|
|
1423
|
+
}
|
|
1424
|
+
}
|
|
1425
|
+
return G(this);
|
|
1426
|
+
}
|
|
1427
|
+
_onStart() {
|
|
1428
|
+
const e = this.animation;
|
|
1429
|
+
e.changed || (e.changed = !0, ve(
|
|
1430
|
+
this,
|
|
1431
|
+
"onStart",
|
|
1432
|
+
D(this, ge(this, e.to)),
|
|
1433
|
+
this
|
|
1434
|
+
));
|
|
1435
|
+
}
|
|
1436
|
+
_onChange(e, t) {
|
|
1437
|
+
t || (this._onStart(), O(this.animation.onChange, e, this)), O(this.defaultProps.onChange, e, this), super._onChange(e, t);
|
|
1438
|
+
}
|
|
1439
|
+
// This method resets the animation state (even if already animating) to
|
|
1440
|
+
// ensure the latest from/to range is used, and it also ensures this spring
|
|
1441
|
+
// is added to the frameloop.
|
|
1442
|
+
_start() {
|
|
1443
|
+
const e = this.animation;
|
|
1444
|
+
G(this).reset(E(e.to)), e.immediate || (e.fromValues = e.values.map((t) => t.lastPosition)), ee(this) || (Zt(this, !0), pe(this) || this._resume());
|
|
1445
|
+
}
|
|
1446
|
+
_resume() {
|
|
1447
|
+
M.skipAnimation ? this.finish() : He.start(this);
|
|
1448
|
+
}
|
|
1449
|
+
/**
|
|
1450
|
+
* Exit the frameloop and notify `onRest` listeners.
|
|
1451
|
+
*
|
|
1452
|
+
* Always wrap `_stop` calls with `batchedUpdates`.
|
|
1453
|
+
*/
|
|
1454
|
+
_stop(e, t) {
|
|
1455
|
+
if (ee(this)) {
|
|
1456
|
+
Zt(this, !1);
|
|
1457
|
+
const n = this.animation;
|
|
1458
|
+
_(n.values, (s) => {
|
|
1459
|
+
s.done = !0;
|
|
1460
|
+
}), n.toValues && (n.onChange = n.onPause = n.onResume = void 0), ke(this, {
|
|
1461
|
+
type: "idle",
|
|
1462
|
+
parent: this
|
|
1463
|
+
});
|
|
1464
|
+
const i = t ? de(this.get()) : D(this.get(), ge(this, e ?? n.to));
|
|
1465
|
+
_e(this._pendingCalls, i), n.changed && (n.changed = !1, ve(this, "onRest", i, this));
|
|
1466
|
+
}
|
|
1467
|
+
}
|
|
1468
|
+
};
|
|
1469
|
+
function ge(e, t) {
|
|
1470
|
+
const n = Te(t), i = Te(e.get());
|
|
1471
|
+
return X(i, n);
|
|
1472
|
+
}
|
|
1473
|
+
function In(e, t = e.loop, n = e.to) {
|
|
1474
|
+
const i = O(t);
|
|
1475
|
+
if (i) {
|
|
1476
|
+
const s = i !== !0 && Et(i), r = (s || e).reverse, a = !s || s.reset;
|
|
1477
|
+
return Ve({
|
|
1478
|
+
...e,
|
|
1479
|
+
loop: t,
|
|
1480
|
+
// Avoid updating default props when looping.
|
|
1481
|
+
default: !1,
|
|
1482
|
+
// Never loop the `pause` prop.
|
|
1483
|
+
pause: void 0,
|
|
1484
|
+
// For the "reverse" prop to loop as expected, the "to" prop
|
|
1485
|
+
// must be undefined. The "reverse" prop is ignored when the
|
|
1486
|
+
// "to" prop is an array or function.
|
|
1487
|
+
to: !r || ft(n) ? n : void 0,
|
|
1488
|
+
// Ignore the "from" prop except on reset.
|
|
1489
|
+
from: a ? e.from : void 0,
|
|
1490
|
+
reset: a,
|
|
1491
|
+
// The "loop" prop can return a "useSpring" props object to
|
|
1492
|
+
// override any of the original props.
|
|
1493
|
+
...s
|
|
1494
|
+
});
|
|
1495
|
+
}
|
|
1496
|
+
}
|
|
1497
|
+
function Ve(e) {
|
|
1498
|
+
const { to: t, from: n } = e = Et(e), i = /* @__PURE__ */ new Set();
|
|
1499
|
+
return o.obj(t) && Xt(t, i), o.obj(n) && Xt(n, i), e.keys = i.size ? Array.from(i) : null, e;
|
|
1500
|
+
}
|
|
1501
|
+
function Ni(e) {
|
|
1502
|
+
const t = Ve(e);
|
|
1503
|
+
return o.und(t.default) && (t.default = Ye(t)), t;
|
|
1504
|
+
}
|
|
1505
|
+
function Xt(e, t) {
|
|
1506
|
+
W(e, (n, i) => n != null && t.add(i));
|
|
1507
|
+
}
|
|
1508
|
+
var zi = [
|
|
1509
|
+
"onStart",
|
|
1510
|
+
"onRest",
|
|
1511
|
+
"onChange",
|
|
1512
|
+
"onPause",
|
|
1513
|
+
"onResume"
|
|
1514
|
+
];
|
|
1515
|
+
function Yt(e, t, n) {
|
|
1516
|
+
e.animation[n] = t[n] !== wn(t, n) ? bn(t[n], e.key) : void 0;
|
|
1517
|
+
}
|
|
1518
|
+
function ve(e, t, ...n) {
|
|
1519
|
+
var i, s, r, a;
|
|
1520
|
+
(s = (i = e.animation)[t]) == null || s.call(i, ...n), (a = (r = e.defaultProps)[t]) == null || a.call(r, ...n);
|
|
1521
|
+
}
|
|
1522
|
+
var Di = ["onStart", "onChange", "onRest"], Qi = 1, Fn = class {
|
|
1523
|
+
constructor(e, t) {
|
|
1524
|
+
this.id = Qi++, this.springs = {}, this.queue = [], this._lastAsyncId = 0, this._active = /* @__PURE__ */ new Set(), this._changed = /* @__PURE__ */ new Set(), this._started = !1, this._state = {
|
|
1525
|
+
paused: !1,
|
|
1526
|
+
pauseQueue: /* @__PURE__ */ new Set(),
|
|
1527
|
+
resumeQueue: /* @__PURE__ */ new Set(),
|
|
1528
|
+
timeouts: /* @__PURE__ */ new Set()
|
|
1529
|
+
}, this._events = {
|
|
1530
|
+
onStart: /* @__PURE__ */ new Map(),
|
|
1531
|
+
onChange: /* @__PURE__ */ new Map(),
|
|
1532
|
+
onRest: /* @__PURE__ */ new Map()
|
|
1533
|
+
}, this._onFrame = this._onFrame.bind(this), t && (this._flush = t), e && this.start({ default: !0, ...e });
|
|
1534
|
+
}
|
|
1535
|
+
/**
|
|
1536
|
+
* Equals `true` when no spring values are in the frameloop, and
|
|
1537
|
+
* no async animation is currently active.
|
|
1538
|
+
*/
|
|
1539
|
+
get idle() {
|
|
1540
|
+
return !this._state.asyncTo && Object.values(this.springs).every((e) => e.idle && !e.isDelayed && !e.isPaused);
|
|
1541
|
+
}
|
|
1542
|
+
get item() {
|
|
1543
|
+
return this._item;
|
|
1544
|
+
}
|
|
1545
|
+
set item(e) {
|
|
1546
|
+
this._item = e;
|
|
1547
|
+
}
|
|
1548
|
+
/** Get the current values of our springs */
|
|
1549
|
+
get() {
|
|
1550
|
+
const e = {};
|
|
1551
|
+
return this.each((t, n) => e[n] = t.get()), e;
|
|
1552
|
+
}
|
|
1553
|
+
/** Set the current values without animating. */
|
|
1554
|
+
set(e) {
|
|
1555
|
+
for (const t in e) {
|
|
1556
|
+
const n = e[t];
|
|
1557
|
+
o.und(n) || this.springs[t].set(n);
|
|
1558
|
+
}
|
|
1559
|
+
}
|
|
1560
|
+
/** Push an update onto the queue of each value. */
|
|
1561
|
+
update(e) {
|
|
1562
|
+
return e && this.queue.push(Ve(e)), this;
|
|
1563
|
+
}
|
|
1564
|
+
/**
|
|
1565
|
+
* Start the queued animations for every spring, and resolve the returned
|
|
1566
|
+
* promise once all queued animations have finished or been cancelled.
|
|
1567
|
+
*
|
|
1568
|
+
* When you pass a queue (instead of nothing), that queue is used instead of
|
|
1569
|
+
* the queued animations added with the `update` method, which are left alone.
|
|
1570
|
+
*/
|
|
1571
|
+
start(e) {
|
|
1572
|
+
let { queue: t } = this;
|
|
1573
|
+
return e ? t = V(e).map(Ve) : this.queue = [], this._flush ? this._flush(this, t) : (On(this, t), yt(this, t));
|
|
1574
|
+
}
|
|
1575
|
+
/** @internal */
|
|
1576
|
+
stop(e, t) {
|
|
1577
|
+
if (e !== !!e && (t = e), t) {
|
|
1578
|
+
const n = this.springs;
|
|
1579
|
+
_(V(t), (i) => n[i].stop(!!e));
|
|
1580
|
+
} else
|
|
1581
|
+
Ce(this._state, this._lastAsyncId), this.each((n) => n.stop(!!e));
|
|
1582
|
+
return this;
|
|
1583
|
+
}
|
|
1584
|
+
/** Freeze the active animation in time */
|
|
1585
|
+
pause(e) {
|
|
1586
|
+
if (o.und(e))
|
|
1587
|
+
this.start({ pause: !0 });
|
|
1588
|
+
else {
|
|
1589
|
+
const t = this.springs;
|
|
1590
|
+
_(V(e), (n) => t[n].pause());
|
|
1591
|
+
}
|
|
1592
|
+
return this;
|
|
1593
|
+
}
|
|
1594
|
+
/** Resume the animation if paused. */
|
|
1595
|
+
resume(e) {
|
|
1596
|
+
if (o.und(e))
|
|
1597
|
+
this.start({ pause: !1 });
|
|
1598
|
+
else {
|
|
1599
|
+
const t = this.springs;
|
|
1600
|
+
_(V(e), (n) => t[n].resume());
|
|
1601
|
+
}
|
|
1602
|
+
return this;
|
|
1603
|
+
}
|
|
1604
|
+
/** Call a function once per spring value */
|
|
1605
|
+
each(e) {
|
|
1606
|
+
W(this.springs, e);
|
|
1607
|
+
}
|
|
1608
|
+
/** @internal Called at the end of every animation frame */
|
|
1609
|
+
_onFrame() {
|
|
1610
|
+
const { onStart: e, onChange: t, onRest: n } = this._events, i = this._active.size > 0, s = this._changed.size > 0;
|
|
1611
|
+
(i && !this._started || s && !this._started) && (this._started = !0, be(e, ([u, l]) => {
|
|
1612
|
+
l.value = this.get(), u(l, this, this._item);
|
|
1613
|
+
}));
|
|
1614
|
+
const r = !i && this._started, a = s || r && n.size ? this.get() : null;
|
|
1615
|
+
s && t.size && be(t, ([u, l]) => {
|
|
1616
|
+
l.value = a, u(l, this, this._item);
|
|
1617
|
+
}), r && (this._started = !1, be(n, ([u, l]) => {
|
|
1618
|
+
l.value = a, u(l, this, this._item);
|
|
1619
|
+
}));
|
|
1620
|
+
}
|
|
1621
|
+
/** @internal */
|
|
1622
|
+
eventObserved(e) {
|
|
1623
|
+
if (e.type == "change")
|
|
1624
|
+
this._changed.add(e.parent), e.idle || this._active.add(e.parent);
|
|
1625
|
+
else if (e.type == "idle")
|
|
1626
|
+
this._active.delete(e.parent);
|
|
1627
|
+
else
|
|
1628
|
+
return;
|
|
1629
|
+
x.onFrame(this._onFrame);
|
|
1630
|
+
}
|
|
1631
|
+
};
|
|
1632
|
+
function yt(e, t) {
|
|
1633
|
+
return Promise.all(t.map((n) => Tn(e, n))).then(
|
|
1634
|
+
(n) => Ot(e, n)
|
|
1635
|
+
);
|
|
1636
|
+
}
|
|
1637
|
+
async function Tn(e, t, n) {
|
|
1638
|
+
const { keys: i, to: s, from: r, loop: a, onRest: u, onResolve: l } = t, c = o.obj(t.default) && t.default;
|
|
1639
|
+
a && (t.loop = !1), s === !1 && (t.to = null), r === !1 && (t.from = null);
|
|
1640
|
+
const p = o.arr(s) || o.fun(s) ? s : void 0;
|
|
1641
|
+
p ? (t.to = void 0, t.onRest = void 0, c && (c.onRest = void 0)) : _(Di, (v) => {
|
|
1642
|
+
const b = t[v];
|
|
1643
|
+
if (o.fun(b)) {
|
|
1644
|
+
const m = e._events[v];
|
|
1645
|
+
t[v] = ({ finished: S, cancelled: y }) => {
|
|
1646
|
+
const A = m.get(b);
|
|
1647
|
+
A ? (S || (A.finished = !1), y && (A.cancelled = !0)) : m.set(b, {
|
|
1648
|
+
value: null,
|
|
1649
|
+
finished: S || !1,
|
|
1650
|
+
cancelled: y || !1
|
|
1651
|
+
});
|
|
1652
|
+
}, c && (c[v] = t[v]);
|
|
1653
|
+
}
|
|
1654
|
+
});
|
|
1655
|
+
const h = e._state;
|
|
1656
|
+
t.pause === !h.paused ? (h.paused = t.pause, _e(t.pause ? h.pauseQueue : h.resumeQueue)) : h.paused && (t.pause = !0);
|
|
1657
|
+
const d = (i || Object.keys(e.springs)).map(
|
|
1658
|
+
(v) => e.springs[v].start(t)
|
|
1659
|
+
), g = t.cancel === !0 || wn(t, "cancel") === !0;
|
|
1660
|
+
(p || g && h.asyncId) && d.push(
|
|
1661
|
+
Pn(++e._lastAsyncId, {
|
|
1662
|
+
props: t,
|
|
1663
|
+
state: h,
|
|
1664
|
+
actions: {
|
|
1665
|
+
pause: ut,
|
|
1666
|
+
resume: ut,
|
|
1667
|
+
start(v, b) {
|
|
1668
|
+
g ? (Ce(h, e._lastAsyncId), b(de(e))) : (v.onRest = u, b(
|
|
1669
|
+
kn(
|
|
1670
|
+
p,
|
|
1671
|
+
v,
|
|
1672
|
+
h,
|
|
1673
|
+
e
|
|
1674
|
+
)
|
|
1675
|
+
));
|
|
1676
|
+
}
|
|
1677
|
+
}
|
|
1678
|
+
})
|
|
1679
|
+
), h.paused && await new Promise((v) => {
|
|
1680
|
+
h.resumeQueue.add(v);
|
|
1681
|
+
});
|
|
1682
|
+
const f = Ot(e, await Promise.all(d));
|
|
1683
|
+
if (a && f.finished && !(n && f.noop)) {
|
|
1684
|
+
const v = In(t, a, s);
|
|
1685
|
+
if (v)
|
|
1686
|
+
return On(e, [v]), Tn(e, v, !0);
|
|
1687
|
+
}
|
|
1688
|
+
return l && x.batchedUpdates(() => l(f, e, e.item)), f;
|
|
1689
|
+
}
|
|
1690
|
+
function _t(e, t) {
|
|
1691
|
+
const n = { ...e.springs };
|
|
1692
|
+
return t && _(V(t), (i) => {
|
|
1693
|
+
o.und(i.keys) && (i = Ve(i)), o.obj(i.to) || (i = { ...i, to: void 0 }), En(n, i, (s) => Vn(s));
|
|
1694
|
+
}), Cn(e, n), n;
|
|
1695
|
+
}
|
|
1696
|
+
function Cn(e, t) {
|
|
1697
|
+
W(t, (n, i) => {
|
|
1698
|
+
e.springs[i] || (e.springs[i] = n, he(n, e));
|
|
1699
|
+
});
|
|
1700
|
+
}
|
|
1701
|
+
function Vn(e, t) {
|
|
1702
|
+
const n = new $i();
|
|
1703
|
+
return n.key = e, t && he(n, t), n;
|
|
1704
|
+
}
|
|
1705
|
+
function En(e, t, n) {
|
|
1706
|
+
t.keys && _(t.keys, (i) => {
|
|
1707
|
+
(e[i] || (e[i] = n(i)))._prepareNode(t);
|
|
1708
|
+
});
|
|
1709
|
+
}
|
|
1710
|
+
function On(e, t) {
|
|
1711
|
+
_(t, (n) => {
|
|
1712
|
+
En(e.springs, n, (i) => Vn(i, e));
|
|
1713
|
+
});
|
|
1714
|
+
}
|
|
1715
|
+
var je = ({
|
|
1716
|
+
children: e,
|
|
1717
|
+
...t
|
|
1718
|
+
}) => {
|
|
1719
|
+
const n = bt(Be), i = t.pause || !!n.pause, s = t.immediate || !!n.immediate;
|
|
1720
|
+
t = bi(() => ({ pause: i, immediate: s }), [i, s]);
|
|
1721
|
+
const { Provider: r } = Be;
|
|
1722
|
+
return /* @__PURE__ */ ce.createElement(r, { value: t }, e);
|
|
1723
|
+
}, Be = Mi(je, {});
|
|
1724
|
+
je.Provider = Be.Provider;
|
|
1725
|
+
je.Consumer = Be.Consumer;
|
|
1726
|
+
function Mi(e, t) {
|
|
1727
|
+
return Object.assign(e, ce.createContext(t)), e.Provider._context = e, e.Consumer._context = e, e;
|
|
1728
|
+
}
|
|
1729
|
+
var Un = () => {
|
|
1730
|
+
const e = [], t = function(i) {
|
|
1731
|
+
yi();
|
|
1732
|
+
const s = [];
|
|
1733
|
+
return _(e, (r, a) => {
|
|
1734
|
+
if (o.und(i))
|
|
1735
|
+
s.push(r.start());
|
|
1736
|
+
else {
|
|
1737
|
+
const u = n(i, r, a);
|
|
1738
|
+
u && s.push(r.start(u));
|
|
1739
|
+
}
|
|
1740
|
+
}), s;
|
|
1741
|
+
};
|
|
1742
|
+
t.current = e, t.add = function(i) {
|
|
1743
|
+
e.includes(i) || e.push(i);
|
|
1744
|
+
}, t.delete = function(i) {
|
|
1745
|
+
const s = e.indexOf(i);
|
|
1746
|
+
~s && e.splice(s, 1);
|
|
1747
|
+
}, t.pause = function() {
|
|
1748
|
+
return _(e, (i) => i.pause(...arguments)), this;
|
|
1749
|
+
}, t.resume = function() {
|
|
1750
|
+
return _(e, (i) => i.resume(...arguments)), this;
|
|
1751
|
+
}, t.set = function(i) {
|
|
1752
|
+
_(e, (s, r) => {
|
|
1753
|
+
const a = o.fun(i) ? i(r, s) : i;
|
|
1754
|
+
a && s.set(a);
|
|
1755
|
+
});
|
|
1756
|
+
}, t.start = function(i) {
|
|
1757
|
+
const s = [];
|
|
1758
|
+
return _(e, (r, a) => {
|
|
1759
|
+
if (o.und(i))
|
|
1760
|
+
s.push(r.start());
|
|
1761
|
+
else {
|
|
1762
|
+
const u = this._getProps(i, r, a);
|
|
1763
|
+
u && s.push(r.start(u));
|
|
1764
|
+
}
|
|
1765
|
+
}), s;
|
|
1766
|
+
}, t.stop = function() {
|
|
1767
|
+
return _(e, (i) => i.stop(...arguments)), this;
|
|
1768
|
+
}, t.update = function(i) {
|
|
1769
|
+
return _(e, (s, r) => s.update(this._getProps(i, s, r))), this;
|
|
1770
|
+
};
|
|
1771
|
+
const n = function(i, s, r) {
|
|
1772
|
+
return o.fun(i) ? i(r, s) : i;
|
|
1773
|
+
};
|
|
1774
|
+
return t._getProps = n, t;
|
|
1775
|
+
};
|
|
1776
|
+
function Li(e, t, n) {
|
|
1777
|
+
const i = o.fun(t) && t;
|
|
1778
|
+
i && !n && (n = []);
|
|
1779
|
+
const s = ye(
|
|
1780
|
+
() => i || arguments.length == 3 ? Un() : void 0,
|
|
1781
|
+
[]
|
|
1782
|
+
), r = H(0), a = Tt(), u = ye(
|
|
1783
|
+
() => ({
|
|
1784
|
+
ctrls: [],
|
|
1785
|
+
queue: [],
|
|
1786
|
+
flush(m, S) {
|
|
1787
|
+
const y = _t(m, S);
|
|
1788
|
+
return r.current > 0 && !u.queue.length && !Object.keys(y).some((k) => !m.springs[k]) ? yt(m, S) : new Promise((k) => {
|
|
1789
|
+
Cn(m, y), u.queue.push(() => {
|
|
1790
|
+
k(yt(m, S));
|
|
1791
|
+
}), a();
|
|
1792
|
+
});
|
|
1793
|
+
}
|
|
1794
|
+
}),
|
|
1795
|
+
[]
|
|
1796
|
+
), l = H([...u.ctrls]), c = [], p = lt(e) || 0;
|
|
1797
|
+
ye(() => {
|
|
1798
|
+
_(l.current.slice(e, p), (m) => {
|
|
1799
|
+
ht(m, s), m.stop(!0);
|
|
1800
|
+
}), l.current.length = e, h(p, e);
|
|
1801
|
+
}, [e]), ye(() => {
|
|
1802
|
+
h(0, Math.min(p, e));
|
|
1803
|
+
}, n);
|
|
1804
|
+
function h(m, S) {
|
|
1805
|
+
for (let y = m; y < S; y++) {
|
|
1806
|
+
const A = l.current[y] || (l.current[y] = new Fn(null, u.flush)), k = i ? i(y, A) : t[y];
|
|
1807
|
+
k && (c[y] = Ni(k));
|
|
1808
|
+
}
|
|
1809
|
+
}
|
|
1810
|
+
const d = l.current.map((m, S) => _t(m, c[S])), g = bt(je), f = lt(g), v = g !== f && xn(g);
|
|
1811
|
+
ae(() => {
|
|
1812
|
+
r.current++, u.ctrls = l.current;
|
|
1813
|
+
const { queue: m } = u;
|
|
1814
|
+
m.length && (u.queue = [], _(m, (S) => S())), _(l.current, (S, y) => {
|
|
1815
|
+
s == null || s.add(S), v && S.start({ default: g });
|
|
1816
|
+
const A = c[y];
|
|
1817
|
+
A && (Sn(S, A.ref), S.ref ? S.queue.push(A) : S.start(A));
|
|
1818
|
+
});
|
|
1819
|
+
}), Ct(() => () => {
|
|
1820
|
+
_(u.ctrls, (m) => m.stop(!0));
|
|
1821
|
+
});
|
|
1822
|
+
const b = d.map((m) => ({ ...m }));
|
|
1823
|
+
return s ? [b, s] : b;
|
|
1824
|
+
}
|
|
1825
|
+
function us(e, t) {
|
|
1826
|
+
const n = o.fun(e), [[i], s] = Li(
|
|
1827
|
+
1,
|
|
1828
|
+
n ? e : [e],
|
|
1829
|
+
n ? [] : t
|
|
1830
|
+
);
|
|
1831
|
+
return n || arguments.length == 2 ? [i, s] : i;
|
|
1832
|
+
}
|
|
1833
|
+
function cs(e, t, n) {
|
|
1834
|
+
const i = o.fun(t) && t, {
|
|
1835
|
+
reset: s,
|
|
1836
|
+
sort: r,
|
|
1837
|
+
trail: a = 0,
|
|
1838
|
+
expires: u = !0,
|
|
1839
|
+
exitBeforeEnter: l = !1,
|
|
1840
|
+
onDestroyed: c,
|
|
1841
|
+
ref: p,
|
|
1842
|
+
config: h
|
|
1843
|
+
} = i ? i() : t, d = ye(
|
|
1844
|
+
() => i || arguments.length == 3 ? Un() : void 0,
|
|
1845
|
+
[]
|
|
1846
|
+
), g = V(e), f = [], v = H(null), b = s ? null : v.current;
|
|
1847
|
+
ae(() => {
|
|
1848
|
+
v.current = f;
|
|
1849
|
+
}), Ct(() => (_(f, (w) => {
|
|
1850
|
+
d == null || d.add(w.ctrl), w.ctrl.ref = d;
|
|
1851
|
+
}), () => {
|
|
1852
|
+
_(v.current, (w) => {
|
|
1853
|
+
w.expired && clearTimeout(w.expirationId), ht(w.ctrl, d), w.ctrl.stop(!0);
|
|
1854
|
+
});
|
|
1855
|
+
}));
|
|
1856
|
+
const m = Gi(g, i ? i() : t, b), S = s && v.current || [];
|
|
1857
|
+
ae(
|
|
1858
|
+
() => _(S, ({ ctrl: w, item: P, key: T }) => {
|
|
1859
|
+
ht(w, d), O(c, P, T);
|
|
1860
|
+
})
|
|
1861
|
+
);
|
|
1862
|
+
const y = [];
|
|
1863
|
+
if (b && _(b, (w, P) => {
|
|
1864
|
+
w.expired ? (clearTimeout(w.expirationId), S.push(w)) : (P = y[P] = m.indexOf(w.key), ~P && (f[P] = w));
|
|
1865
|
+
}), _(g, (w, P) => {
|
|
1866
|
+
f[P] || (f[P] = {
|
|
1867
|
+
key: m[P],
|
|
1868
|
+
item: w,
|
|
1869
|
+
phase: "mount",
|
|
1870
|
+
ctrl: new Fn()
|
|
1871
|
+
}, f[P].ctrl.item = w);
|
|
1872
|
+
}), y.length) {
|
|
1873
|
+
let w = -1;
|
|
1874
|
+
const { leave: P } = i ? i() : t;
|
|
1875
|
+
_(y, (T, C) => {
|
|
1876
|
+
const F = b[C];
|
|
1877
|
+
~T ? (w = f.indexOf(F), f[w] = { ...F, item: g[T] }) : P && f.splice(++w, 0, F);
|
|
1878
|
+
});
|
|
1879
|
+
}
|
|
1880
|
+
o.fun(r) && f.sort((w, P) => r(w.item, P.item));
|
|
1881
|
+
let A = -a;
|
|
1882
|
+
const k = Tt(), L = Ye(t), R = /* @__PURE__ */ new Map(), B = H(/* @__PURE__ */ new Map()), I = H(!1);
|
|
1883
|
+
_(f, (w, P) => {
|
|
1884
|
+
const T = w.key, C = w.phase, F = i ? i() : t;
|
|
1885
|
+
let q, J;
|
|
1886
|
+
const jn = O(F.delay || 0, T);
|
|
1887
|
+
if (C == "mount")
|
|
1888
|
+
q = F.enter, J = "enter";
|
|
1889
|
+
else {
|
|
1890
|
+
const z = m.indexOf(T) < 0;
|
|
1891
|
+
if (C != "leave")
|
|
1892
|
+
if (z)
|
|
1893
|
+
q = F.leave, J = "leave";
|
|
1894
|
+
else if (q = F.update)
|
|
1895
|
+
J = "update";
|
|
1896
|
+
else
|
|
1897
|
+
return;
|
|
1898
|
+
else if (!z)
|
|
1899
|
+
q = F.enter, J = "enter";
|
|
1900
|
+
else
|
|
1901
|
+
return;
|
|
1902
|
+
}
|
|
1903
|
+
if (q = O(q, w.item, P), q = o.obj(q) ? Et(q) : { to: q }, !q.config) {
|
|
1904
|
+
const z = h || L.config;
|
|
1905
|
+
q.config = O(z, w.item, P, J);
|
|
1906
|
+
}
|
|
1907
|
+
A += a;
|
|
1908
|
+
const se = {
|
|
1909
|
+
...L,
|
|
1910
|
+
// we need to add our props.delay value you here.
|
|
1911
|
+
delay: jn + A,
|
|
1912
|
+
ref: p,
|
|
1913
|
+
immediate: F.immediate,
|
|
1914
|
+
// This prevents implied resets.
|
|
1915
|
+
reset: !1,
|
|
1916
|
+
// Merge any phase-specific props.
|
|
1917
|
+
...q
|
|
1918
|
+
};
|
|
1919
|
+
if (J == "enter" && o.und(se.from)) {
|
|
1920
|
+
const z = i ? i() : t, me = o.und(z.initial) || b ? z.from : z.initial;
|
|
1921
|
+
se.from = O(me, w.item, P);
|
|
1922
|
+
}
|
|
1923
|
+
const { onResolve: $n } = se;
|
|
1924
|
+
se.onResolve = (z) => {
|
|
1925
|
+
O($n, z);
|
|
1926
|
+
const me = v.current, Y = me.find(($e) => $e.key === T);
|
|
1927
|
+
if (Y && !(z.cancelled && Y.phase != "update") && Y.ctrl.idle) {
|
|
1928
|
+
const $e = me.every((re) => re.ctrl.idle);
|
|
1929
|
+
if (Y.phase == "leave") {
|
|
1930
|
+
const re = O(u, Y.item);
|
|
1931
|
+
if (re !== !1) {
|
|
1932
|
+
const et = re === !0 ? 0 : re;
|
|
1933
|
+
if (Y.expired = !0, !$e && et > 0) {
|
|
1934
|
+
et <= 2147483647 && (Y.expirationId = setTimeout(k, et));
|
|
1935
|
+
return;
|
|
1936
|
+
}
|
|
1937
|
+
}
|
|
1938
|
+
}
|
|
1939
|
+
$e && me.some((re) => re.expired) && (B.current.delete(Y), l && (I.current = !0), k());
|
|
1940
|
+
}
|
|
1941
|
+
};
|
|
1942
|
+
const qt = _t(w.ctrl, se);
|
|
1943
|
+
J === "leave" && l ? B.current.set(w, { phase: J, springs: qt, payload: se }) : R.set(w, { phase: J, springs: qt, payload: se });
|
|
1944
|
+
});
|
|
1945
|
+
const j = bt(je), U = lt(j), K = j !== U && xn(j);
|
|
1946
|
+
ae(() => {
|
|
1947
|
+
K && _(f, (w) => {
|
|
1948
|
+
w.ctrl.start({ default: j });
|
|
1949
|
+
});
|
|
1950
|
+
}, [j]), _(R, (w, P) => {
|
|
1951
|
+
if (B.current.size) {
|
|
1952
|
+
const T = f.findIndex((C) => C.key === P.key);
|
|
1953
|
+
f.splice(T, 1);
|
|
1954
|
+
}
|
|
1955
|
+
}), ae(
|
|
1956
|
+
() => {
|
|
1957
|
+
_(
|
|
1958
|
+
B.current.size ? B.current : R,
|
|
1959
|
+
({ phase: w, payload: P }, T) => {
|
|
1960
|
+
const { ctrl: C } = T;
|
|
1961
|
+
T.phase = w, d == null || d.add(C), K && w == "enter" && C.start({ default: j }), P && (Sn(C, P.ref), (C.ref || d) && !I.current ? C.update(P) : (C.start(P), I.current && (I.current = !1)));
|
|
1962
|
+
}
|
|
1963
|
+
);
|
|
1964
|
+
},
|
|
1965
|
+
s ? void 0 : n
|
|
1966
|
+
);
|
|
1967
|
+
const Z = (w) => /* @__PURE__ */ ce.createElement(ce.Fragment, null, f.map((P, T) => {
|
|
1968
|
+
const { springs: C } = R.get(P) || P.ctrl, F = w({ ...C }, P.item, P, T);
|
|
1969
|
+
return F && F.type ? /* @__PURE__ */ ce.createElement(
|
|
1970
|
+
F.type,
|
|
1971
|
+
{
|
|
1972
|
+
...F.props,
|
|
1973
|
+
key: o.str(P.key) || o.num(P.key) ? P.key : P.ctrl.id,
|
|
1974
|
+
ref: F.ref
|
|
1975
|
+
}
|
|
1976
|
+
) : F;
|
|
1977
|
+
}));
|
|
1978
|
+
return d ? [Z, d] : Z;
|
|
1979
|
+
}
|
|
1980
|
+
var Bi = 1;
|
|
1981
|
+
function Gi(e, { key: t, keys: n = t }, i) {
|
|
1982
|
+
if (n === null) {
|
|
1983
|
+
const s = /* @__PURE__ */ new Set();
|
|
1984
|
+
return e.map((r) => {
|
|
1985
|
+
const a = i && i.find(
|
|
1986
|
+
(u) => u.item === r && u.phase !== "leave" && !s.has(u)
|
|
1987
|
+
);
|
|
1988
|
+
return a ? (s.add(a), a.key) : Bi++;
|
|
1989
|
+
});
|
|
1990
|
+
}
|
|
1991
|
+
return o.und(n) ? e : o.fun(n) ? e.map(n) : V(n);
|
|
1992
|
+
}
|
|
1993
|
+
var Hi = class extends Ut {
|
|
1994
|
+
constructor(e, t) {
|
|
1995
|
+
super(), this.source = e, this.idle = !0, this._active = /* @__PURE__ */ new Set(), this.calc = Pe(...t);
|
|
1996
|
+
const n = this._get(), i = dt(n);
|
|
1997
|
+
Vt(this, i.create(n));
|
|
1998
|
+
}
|
|
1999
|
+
advance(e) {
|
|
2000
|
+
const t = this._get(), n = this.get();
|
|
2001
|
+
X(t, n) || (G(this).setValue(t), this._onChange(t, this.idle)), !this.idle && en(this._active) && rt(this);
|
|
2002
|
+
}
|
|
2003
|
+
_get() {
|
|
2004
|
+
const e = o.arr(this.source) ? this.source.map(E) : V(E(this.source));
|
|
2005
|
+
return this.calc(...e);
|
|
2006
|
+
}
|
|
2007
|
+
_start() {
|
|
2008
|
+
this.idle && !en(this._active) && (this.idle = !1, _(Je(this), (e) => {
|
|
2009
|
+
e.done = !1;
|
|
2010
|
+
}), M.skipAnimation ? (x.batchedUpdates(() => this.advance()), rt(this)) : He.start(this));
|
|
2011
|
+
}
|
|
2012
|
+
// Observe our sources only when we're observed.
|
|
2013
|
+
_attach() {
|
|
2014
|
+
let e = 1;
|
|
2015
|
+
_(V(this.source), (t) => {
|
|
2016
|
+
$(t) && he(t, this), pt(t) && (t.idle || this._active.add(t), e = Math.max(e, t.priority + 1));
|
|
2017
|
+
}), this.priority = e, this._start();
|
|
2018
|
+
}
|
|
2019
|
+
// Stop observing our sources once we have no observers.
|
|
2020
|
+
_detach() {
|
|
2021
|
+
_(V(this.source), (e) => {
|
|
2022
|
+
$(e) && Re(e, this);
|
|
2023
|
+
}), this._active.clear(), rt(this);
|
|
2024
|
+
}
|
|
2025
|
+
/** @internal */
|
|
2026
|
+
eventObserved(e) {
|
|
2027
|
+
e.type == "change" ? e.idle ? this.advance() : (this._active.add(e.parent), this._start()) : e.type == "idle" ? this._active.delete(e.parent) : e.type == "priority" && (this.priority = V(this.source).reduce(
|
|
2028
|
+
(t, n) => Math.max(t, (pt(n) ? n.priority : 0) + 1),
|
|
2029
|
+
0
|
|
2030
|
+
));
|
|
2031
|
+
}
|
|
2032
|
+
};
|
|
2033
|
+
function Wi(e) {
|
|
2034
|
+
return e.idle !== !1;
|
|
2035
|
+
}
|
|
2036
|
+
function en(e) {
|
|
2037
|
+
return !e.size || Array.from(e).every(Wi);
|
|
2038
|
+
}
|
|
2039
|
+
function rt(e) {
|
|
2040
|
+
e.idle || (e.idle = !0, _(Je(e), (t) => {
|
|
2041
|
+
t.done = !0;
|
|
2042
|
+
}), ke(e, {
|
|
2043
|
+
type: "idle",
|
|
2044
|
+
parent: e
|
|
2045
|
+
}));
|
|
2046
|
+
}
|
|
2047
|
+
M.assign({
|
|
2048
|
+
createStringInterpolator: gn,
|
|
2049
|
+
to: (e, t) => new Hi(e, t)
|
|
2050
|
+
});
|
|
2051
|
+
var qn = /^--/;
|
|
2052
|
+
function Ki(e, t) {
|
|
2053
|
+
return t == null || typeof t == "boolean" || t === "" ? "" : typeof t == "number" && t !== 0 && !qn.test(e) && !(Se.hasOwnProperty(e) && Se[e]) ? t + "px" : ("" + t).trim();
|
|
2054
|
+
}
|
|
2055
|
+
var tn = {};
|
|
2056
|
+
function Zi(e, t) {
|
|
2057
|
+
if (!e.nodeType || !e.setAttribute)
|
|
2058
|
+
return !1;
|
|
2059
|
+
const n = e.nodeName === "filter" || e.parentNode && e.parentNode.nodeName === "filter", {
|
|
2060
|
+
className: i,
|
|
2061
|
+
style: s,
|
|
2062
|
+
children: r,
|
|
2063
|
+
scrollTop: a,
|
|
2064
|
+
scrollLeft: u,
|
|
2065
|
+
viewBox: l,
|
|
2066
|
+
...c
|
|
2067
|
+
} = t, p = Object.values(c), h = Object.keys(c).map(
|
|
2068
|
+
(d) => n || e.hasAttribute(d) ? d : tn[d] || (tn[d] = d.replace(
|
|
2069
|
+
/([A-Z])/g,
|
|
2070
|
+
// Attributes are written in dash case
|
|
2071
|
+
(g) => "-" + g.toLowerCase()
|
|
2072
|
+
))
|
|
2073
|
+
);
|
|
2074
|
+
r !== void 0 && (e.textContent = r);
|
|
2075
|
+
for (const d in s)
|
|
2076
|
+
if (s.hasOwnProperty(d)) {
|
|
2077
|
+
const g = Ki(d, s[d]);
|
|
2078
|
+
qn.test(d) ? e.style.setProperty(d, g) : e.style[d] = g;
|
|
2079
|
+
}
|
|
2080
|
+
h.forEach((d, g) => {
|
|
2081
|
+
e.setAttribute(d, p[g]);
|
|
2082
|
+
}), i !== void 0 && (e.className = i), a !== void 0 && (e.scrollTop = a), u !== void 0 && (e.scrollLeft = u), l !== void 0 && e.setAttribute("viewBox", l);
|
|
2083
|
+
}
|
|
2084
|
+
var Se = {
|
|
2085
|
+
animationIterationCount: !0,
|
|
2086
|
+
borderImageOutset: !0,
|
|
2087
|
+
borderImageSlice: !0,
|
|
2088
|
+
borderImageWidth: !0,
|
|
2089
|
+
boxFlex: !0,
|
|
2090
|
+
boxFlexGroup: !0,
|
|
2091
|
+
boxOrdinalGroup: !0,
|
|
2092
|
+
columnCount: !0,
|
|
2093
|
+
columns: !0,
|
|
2094
|
+
flex: !0,
|
|
2095
|
+
flexGrow: !0,
|
|
2096
|
+
flexPositive: !0,
|
|
2097
|
+
flexShrink: !0,
|
|
2098
|
+
flexNegative: !0,
|
|
2099
|
+
flexOrder: !0,
|
|
2100
|
+
gridRow: !0,
|
|
2101
|
+
gridRowEnd: !0,
|
|
2102
|
+
gridRowSpan: !0,
|
|
2103
|
+
gridRowStart: !0,
|
|
2104
|
+
gridColumn: !0,
|
|
2105
|
+
gridColumnEnd: !0,
|
|
2106
|
+
gridColumnSpan: !0,
|
|
2107
|
+
gridColumnStart: !0,
|
|
2108
|
+
fontWeight: !0,
|
|
2109
|
+
lineClamp: !0,
|
|
2110
|
+
lineHeight: !0,
|
|
2111
|
+
opacity: !0,
|
|
2112
|
+
order: !0,
|
|
2113
|
+
orphans: !0,
|
|
2114
|
+
tabSize: !0,
|
|
2115
|
+
widows: !0,
|
|
2116
|
+
zIndex: !0,
|
|
2117
|
+
zoom: !0,
|
|
2118
|
+
// SVG-related properties
|
|
2119
|
+
fillOpacity: !0,
|
|
2120
|
+
floodOpacity: !0,
|
|
2121
|
+
stopOpacity: !0,
|
|
2122
|
+
strokeDasharray: !0,
|
|
2123
|
+
strokeDashoffset: !0,
|
|
2124
|
+
strokeMiterlimit: !0,
|
|
2125
|
+
strokeOpacity: !0,
|
|
2126
|
+
strokeWidth: !0
|
|
2127
|
+
}, Ji = (e, t) => e + t.charAt(0).toUpperCase() + t.substring(1), Xi = ["Webkit", "Ms", "Moz", "O"];
|
|
2128
|
+
Se = Object.keys(Se).reduce((e, t) => (Xi.forEach((n) => e[Ji(n, t)] = e[t]), e), Se);
|
|
2129
|
+
var Yi = /^(matrix|translate|scale|rotate|skew)/, es = /^(translate)/, ts = /^(rotate|skew)/, at = (e, t) => o.num(e) && e !== 0 ? e + t : e, De = (e, t) => o.arr(e) ? e.every((n) => De(n, t)) : o.num(e) ? e === t : parseFloat(e) === t, ns = class extends Xe {
|
|
2130
|
+
constructor({ x: e, y: t, z: n, ...i }) {
|
|
2131
|
+
const s = [], r = [];
|
|
2132
|
+
(e || t || n) && (s.push([e || 0, t || 0, n || 0]), r.push((a) => [
|
|
2133
|
+
`translate3d(${a.map((u) => at(u, "px")).join(",")})`,
|
|
2134
|
+
// prettier-ignore
|
|
2135
|
+
De(a, 0)
|
|
2136
|
+
])), W(i, (a, u) => {
|
|
2137
|
+
if (u === "transform")
|
|
2138
|
+
s.push([a || ""]), r.push((l) => [l, l === ""]);
|
|
2139
|
+
else if (Yi.test(u)) {
|
|
2140
|
+
if (delete i[u], o.und(a))
|
|
2141
|
+
return;
|
|
2142
|
+
const l = es.test(u) ? "px" : ts.test(u) ? "deg" : "";
|
|
2143
|
+
s.push(V(a)), r.push(
|
|
2144
|
+
u === "rotate3d" ? ([c, p, h, d]) => [
|
|
2145
|
+
`rotate3d(${c},${p},${h},${at(d, l)})`,
|
|
2146
|
+
De(d, 0)
|
|
2147
|
+
] : (c) => [
|
|
2148
|
+
`${u}(${c.map((p) => at(p, l)).join(",")})`,
|
|
2149
|
+
De(c, u.startsWith("scale") ? 1 : 0)
|
|
2150
|
+
]
|
|
2151
|
+
);
|
|
2152
|
+
}
|
|
2153
|
+
}), s.length && (i.transform = new is(s, r)), super(i);
|
|
2154
|
+
}
|
|
2155
|
+
}, is = class extends hn {
|
|
2156
|
+
constructor(e, t) {
|
|
2157
|
+
super(), this.inputs = e, this.transforms = t, this._value = null;
|
|
2158
|
+
}
|
|
2159
|
+
get() {
|
|
2160
|
+
return this._value || (this._value = this._get());
|
|
2161
|
+
}
|
|
2162
|
+
_get() {
|
|
2163
|
+
let e = "", t = !0;
|
|
2164
|
+
return _(this.inputs, (n, i) => {
|
|
2165
|
+
const s = E(n[0]), [r, a] = this.transforms[i](
|
|
2166
|
+
o.arr(s) ? s : n.map(E)
|
|
2167
|
+
);
|
|
2168
|
+
e += " " + r, t = t && a;
|
|
2169
|
+
}), t ? "none" : e;
|
|
2170
|
+
}
|
|
2171
|
+
// Start observing our inputs once we have an observer.
|
|
2172
|
+
observerAdded(e) {
|
|
2173
|
+
e == 1 && _(
|
|
2174
|
+
this.inputs,
|
|
2175
|
+
(t) => _(
|
|
2176
|
+
t,
|
|
2177
|
+
(n) => $(n) && he(n, this)
|
|
2178
|
+
)
|
|
2179
|
+
);
|
|
2180
|
+
}
|
|
2181
|
+
// Stop observing our inputs once we have no observers.
|
|
2182
|
+
observerRemoved(e) {
|
|
2183
|
+
e == 0 && _(
|
|
2184
|
+
this.inputs,
|
|
2185
|
+
(t) => _(
|
|
2186
|
+
t,
|
|
2187
|
+
(n) => $(n) && Re(n, this)
|
|
2188
|
+
)
|
|
2189
|
+
);
|
|
2190
|
+
}
|
|
2191
|
+
eventObserved(e) {
|
|
2192
|
+
e.type == "change" && (this._value = null), ke(this, e);
|
|
2193
|
+
}
|
|
2194
|
+
}, ss = [
|
|
2195
|
+
"a",
|
|
2196
|
+
"abbr",
|
|
2197
|
+
"address",
|
|
2198
|
+
"area",
|
|
2199
|
+
"article",
|
|
2200
|
+
"aside",
|
|
2201
|
+
"audio",
|
|
2202
|
+
"b",
|
|
2203
|
+
"base",
|
|
2204
|
+
"bdi",
|
|
2205
|
+
"bdo",
|
|
2206
|
+
"big",
|
|
2207
|
+
"blockquote",
|
|
2208
|
+
"body",
|
|
2209
|
+
"br",
|
|
2210
|
+
"button",
|
|
2211
|
+
"canvas",
|
|
2212
|
+
"caption",
|
|
2213
|
+
"cite",
|
|
2214
|
+
"code",
|
|
2215
|
+
"col",
|
|
2216
|
+
"colgroup",
|
|
2217
|
+
"data",
|
|
2218
|
+
"datalist",
|
|
2219
|
+
"dd",
|
|
2220
|
+
"del",
|
|
2221
|
+
"details",
|
|
2222
|
+
"dfn",
|
|
2223
|
+
"dialog",
|
|
2224
|
+
"div",
|
|
2225
|
+
"dl",
|
|
2226
|
+
"dt",
|
|
2227
|
+
"em",
|
|
2228
|
+
"embed",
|
|
2229
|
+
"fieldset",
|
|
2230
|
+
"figcaption",
|
|
2231
|
+
"figure",
|
|
2232
|
+
"footer",
|
|
2233
|
+
"form",
|
|
2234
|
+
"h1",
|
|
2235
|
+
"h2",
|
|
2236
|
+
"h3",
|
|
2237
|
+
"h4",
|
|
2238
|
+
"h5",
|
|
2239
|
+
"h6",
|
|
2240
|
+
"head",
|
|
2241
|
+
"header",
|
|
2242
|
+
"hgroup",
|
|
2243
|
+
"hr",
|
|
2244
|
+
"html",
|
|
2245
|
+
"i",
|
|
2246
|
+
"iframe",
|
|
2247
|
+
"img",
|
|
2248
|
+
"input",
|
|
2249
|
+
"ins",
|
|
2250
|
+
"kbd",
|
|
2251
|
+
"keygen",
|
|
2252
|
+
"label",
|
|
2253
|
+
"legend",
|
|
2254
|
+
"li",
|
|
2255
|
+
"link",
|
|
2256
|
+
"main",
|
|
2257
|
+
"map",
|
|
2258
|
+
"mark",
|
|
2259
|
+
"menu",
|
|
2260
|
+
"menuitem",
|
|
2261
|
+
"meta",
|
|
2262
|
+
"meter",
|
|
2263
|
+
"nav",
|
|
2264
|
+
"noscript",
|
|
2265
|
+
"object",
|
|
2266
|
+
"ol",
|
|
2267
|
+
"optgroup",
|
|
2268
|
+
"option",
|
|
2269
|
+
"output",
|
|
2270
|
+
"p",
|
|
2271
|
+
"param",
|
|
2272
|
+
"picture",
|
|
2273
|
+
"pre",
|
|
2274
|
+
"progress",
|
|
2275
|
+
"q",
|
|
2276
|
+
"rp",
|
|
2277
|
+
"rt",
|
|
2278
|
+
"ruby",
|
|
2279
|
+
"s",
|
|
2280
|
+
"samp",
|
|
2281
|
+
"script",
|
|
2282
|
+
"section",
|
|
2283
|
+
"select",
|
|
2284
|
+
"small",
|
|
2285
|
+
"source",
|
|
2286
|
+
"span",
|
|
2287
|
+
"strong",
|
|
2288
|
+
"style",
|
|
2289
|
+
"sub",
|
|
2290
|
+
"summary",
|
|
2291
|
+
"sup",
|
|
2292
|
+
"table",
|
|
2293
|
+
"tbody",
|
|
2294
|
+
"td",
|
|
2295
|
+
"textarea",
|
|
2296
|
+
"tfoot",
|
|
2297
|
+
"th",
|
|
2298
|
+
"thead",
|
|
2299
|
+
"time",
|
|
2300
|
+
"title",
|
|
2301
|
+
"tr",
|
|
2302
|
+
"track",
|
|
2303
|
+
"u",
|
|
2304
|
+
"ul",
|
|
2305
|
+
"var",
|
|
2306
|
+
"video",
|
|
2307
|
+
"wbr",
|
|
2308
|
+
// SVG
|
|
2309
|
+
"circle",
|
|
2310
|
+
"clipPath",
|
|
2311
|
+
"defs",
|
|
2312
|
+
"ellipse",
|
|
2313
|
+
"foreignObject",
|
|
2314
|
+
"g",
|
|
2315
|
+
"image",
|
|
2316
|
+
"line",
|
|
2317
|
+
"linearGradient",
|
|
2318
|
+
"mask",
|
|
2319
|
+
"path",
|
|
2320
|
+
"pattern",
|
|
2321
|
+
"polygon",
|
|
2322
|
+
"polyline",
|
|
2323
|
+
"radialGradient",
|
|
2324
|
+
"rect",
|
|
2325
|
+
"stop",
|
|
2326
|
+
"svg",
|
|
2327
|
+
"text",
|
|
2328
|
+
"tspan"
|
|
2329
|
+
];
|
|
2330
|
+
M.assign({
|
|
2331
|
+
batchedUpdates: Qn.unstable_batchedUpdates,
|
|
2332
|
+
createStringInterpolator: gn,
|
|
2333
|
+
colors: Zn
|
|
2334
|
+
});
|
|
2335
|
+
var rs = Ii(ss, {
|
|
2336
|
+
applyAnimatedValues: Zi,
|
|
2337
|
+
createAnimatedStyle: (e) => new ns(e),
|
|
2338
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2339
|
+
getComponentProps: ({ scrollTop: e, scrollLeft: t, ...n }) => n
|
|
2340
|
+
}), ls = rs.animated;
|
|
2341
|
+
export {
|
|
2342
|
+
ls as a,
|
|
2343
|
+
us as b,
|
|
2344
|
+
cs as u
|
|
2345
|
+
};
|