@eightshift/ui-components 1.7.2 → 1.8.0
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/dist/{Button-VbCAu4hd.js → Button-Xa6Ny0p_.js} +7 -7
- package/dist/{Color-BpLubxWI.js → Color-VsesNqCf.js} +5 -17
- package/dist/{ColorSwatch-CinC14s3.js → ColorSwatch-xOFAZO_h.js} +4 -4
- package/dist/ComboBox-CP_SqnqT.js +1886 -0
- package/dist/Dialog-jcIYer1n.js +2177 -0
- package/dist/{FieldError-BttM1Nxd.js → FieldError-BPe3YgNH.js} +2 -2
- package/dist/{FocusScope-CtCX0OGo.js → FocusScope-uV-xoRHT.js} +8 -9
- package/dist/{Group-XzWUooix.js → Group-Bvmb49y7.js} +5 -5
- package/dist/{Heading-DZelepHV.js → Heading-Bfhyr4ZC.js} +1 -1
- package/dist/{Hidden-CcFqOzrp.js → Hidden-7ZhNuLM9.js} +2 -2
- package/dist/{Input-CV1qVS6t.js → Input-C2dTSp9z.js} +10 -10
- package/dist/{Label-BwqMVkuV.js → Label-DqNX_sAU.js} +2 -2
- package/dist/{List-Bx2anbX-.js → List-C7L49CxW.js} +1 -1
- package/dist/{ListBox-DuZPdnkk.js → ListBox-B9r1QoSm.js} +19 -18
- package/dist/{NumberFormatter-U_Gx0UDq.js → NumberFormatter-DA8u1Ot7.js} +4 -6
- package/dist/OverlayArrow-ClRhYjQu.js +567 -0
- package/dist/{Select-c7902d94.esm-DtzFQzf-.js → Select-aab027f3.esm-B8nEum75.js} +4 -4
- package/dist/{SelectionManager-x27KqnAT.js → SelectionManager-DP537Pbu.js} +177 -141
- package/dist/{Separator-BM58t3PP.js → Separator-Dmxzf3m_.js} +62 -52
- package/dist/{Slider-D9Cs6yKr.js → Slider-BgHBCyI7.js} +16 -14
- package/dist/{Text-BVIXT8qq.js → Text-DImhB4rT.js} +1 -1
- package/dist/{VisuallyHidden-WhC7vZaL.js → VisuallyHidden-wryJF4qQ.js} +2 -2
- package/dist/assets/style.css +1 -1
- package/dist/assets/wp-ui-enhancements.css +1 -1
- package/dist/components/animated-visibility/animated-visibility.js +141 -113
- package/dist/components/base-control/base-control.js +1 -1
- package/dist/components/button/button.js +10 -7
- package/dist/components/checkbox/checkbox.js +19 -11
- package/dist/components/color-pickers/color-picker.js +1 -1
- package/dist/components/color-pickers/color-swatch.js +3 -3
- package/dist/components/color-pickers/gradient-editor.js +2 -2
- package/dist/components/color-pickers/solid-color-picker.js +21 -21
- package/dist/components/component-toggle/component-toggle.js +1 -1
- package/dist/components/draggable/draggable-handle.js +2 -2
- package/dist/components/draggable/draggable.js +2 -2
- package/dist/components/draggable-list/draggable-list-item.js +2 -2
- package/dist/components/draggable-list/draggable-list.js +2 -2
- package/dist/components/expandable/expandable.js +3 -3
- package/dist/components/index.js +8 -4
- package/dist/components/input-field/input-field.js +7 -7
- package/dist/components/item-collection/item-collection.js +1 -1
- package/dist/components/link-input/link-input.js +10 -1872
- package/dist/components/list-box/list-box.js +2 -2
- package/dist/components/matrix-align/matrix-align.js +2 -2
- package/dist/components/menu/menu.js +7 -974
- package/dist/components/modal/modal.js +7 -7
- package/dist/components/number-picker/number-picker.js +10 -10
- package/dist/components/option-select/option-select.js +1 -1
- package/dist/components/options-panel/options-panel.js +1 -1
- package/dist/components/placeholders/file-placeholder.js +1 -1
- package/dist/components/popover/popover.js +2 -2
- package/dist/components/radio/radio.js +13 -13
- package/dist/components/repeater/repeater-item.js +1 -1
- package/dist/components/repeater/repeater.js +2 -2
- package/dist/components/responsive/mini-responsive.js +3 -3
- package/dist/components/responsive/responsive-legacy.js +2 -2
- package/dist/components/responsive/responsive.js +2 -2
- package/dist/components/responsive-preview/responsive-preview.js +1 -1
- package/dist/components/select/async-multi-select.js +3 -3
- package/dist/components/select/async-single-select.js +2 -2
- package/dist/components/select/custom-select-default-components.js +1 -1
- package/dist/components/select/multi-select-components.js +1 -1
- package/dist/components/select/multi-select.js +3 -3
- package/dist/components/select/react-select-component-wrappers.js +1 -1
- package/dist/components/select/single-select.js +2 -2
- package/dist/components/select/v2/async-select.js +307 -0
- package/dist/components/select/v2/shared.js +24 -0
- package/dist/components/select/v2/single-select.js +993 -0
- package/dist/components/slider/column-config-slider.js +3 -3
- package/dist/components/slider/slider.js +3 -3
- package/dist/components/slider/utils.js +1 -1
- package/dist/components/tabs/tabs.js +16 -16
- package/dist/components/toggle/switch.js +6 -6
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/components/toggle-button/toggle-button.js +55 -12
- package/dist/components/tooltip/tooltip.js +532 -8
- package/dist/{context-Cs-ZD1nu.js → context-BI3VdU0Z.js} +2 -2
- package/dist/{default-i18n-DRnM8y4w.js → default-i18n-CM1-Xvzf.js} +183 -176
- package/dist/{focusSafely-CgFLw4FA.js → focusSafely-Cl9cN7Qx.js} +14 -14
- package/dist/icons/icons.js +19 -0
- package/dist/icons/jsx-svg.js +16 -3
- package/dist/{index-a301f526.esm-BMg114iK.js → index-641ee5b8.esm-BclOH4xf.js} +165 -29
- package/dist/{index-BTCzc3zb.js → index-D0mHceYg.js} +81 -17
- package/dist/index.js +7 -3
- package/dist/{multi-select-components-DTvEidE3.js → multi-select-components-BGQBvx-z.js} +55 -44
- package/dist/{react-jsx-parser.min-B5HVwW_W.js → react-jsx-parser.min-CVit0rZn.js} +5620 -7409
- package/dist/{react-select-async.esm-CxA8wpeT.js → react-select-async.esm-B8kK0aL4.js} +3 -3
- package/dist/{react-select.esm-CeE7o5M9.js → react-select.esm-ucYwBxq5.js} +3 -3
- package/dist/{textSelection-CvK0YHTZ.js → textSelection-DDDNsS-g.js} +1 -1
- package/dist/{useButton-Cy9eEev7.js → useButton-CRKy9xk2.js} +4 -4
- package/dist/{useEvent-LZebwyrb.js → useEvent-D54lIBrO.js} +1 -1
- package/dist/{useFocusRing-BMOTWmOx.js → useFocusRing-DKxoCzVD.js} +1 -1
- package/dist/{useFocusable-ByyKSVQv.js → useFocusable-CPKTGWPn.js} +4 -4
- package/dist/{useFormReset-B8m1uz1J.js → useFormReset-CTp--h9B.js} +1 -1
- package/dist/{useFormValidationState-BjMhz_VI.js → useFormValidation-BNBrliSj.js} +92 -88
- package/dist/{useLabel-B6uO0wVK.js → useLabel-CzGdEzIq.js} +2 -2
- package/dist/{useLabels-5dFkeiXx.js → useLabels-eGSmZC_Z.js} +1 -1
- package/dist/{useListState-eKxv7HPC.js → useListState-D7mE1Y00.js} +1 -1
- package/dist/{useLocalizedStringFormatter-BaKmjFNp.js → useLocalizedStringFormatter-BBeUyA9l.js} +1 -1
- package/dist/{useNumberField-DMMUTZ-h.js → useNumberField-BmEJmL3K.js} +27 -20
- package/dist/{useNumberFormatter-Cyx5Dxkf.js → useNumberFormatter-CTY_UZxq.js} +2 -2
- package/dist/{usePress-D8nPoIQm.js → usePress-BG9At5Lb.js} +4 -4
- package/dist/{useSingleSelectListState-CABciySJ.js → useSingleSelectListState-DeJEr7lC.js} +2 -2
- package/dist/{useToggle-BmltE9Zr.js → useToggle-QlyoyPYv.js} +4 -4
- package/dist/{useToggleState-DZXLEnA_.js → useToggleState-C1mnFRiI.js} +1 -1
- package/dist/{utils-BCJajCwh.js → utils-BSxcP7tv.js} +15 -14
- package/package.json +20 -20
- package/dist/Dialog-BN5EE7UH.js +0 -934
- package/dist/isScrollable-Dh9D9IOd.js +0 -9
- package/dist/tooltip-eKaARDoV.js +0 -1084
- package/dist/useMenuTrigger-4fwEmto8.js +0 -246
|
@@ -1 +1 @@
|
|
|
1
|
-
.edit-post-header__toolbar .components-button,.edit-post-header__settings .components-button,.editor-document-tools__left .components-button,.editor-header__center .components-button,.editor-header__settings .components-button,.edit-post-sidebar .components-button:not(:-webkit-any(.components-panel__body-toggle,.editor-post-last-revision__title)),.components-snackbar,.components-toggle-group-control,.editor-post-publish-panel .components-button,.edit-post-text-editor__toolbar .components-button,.edit-post-text-editor__body .components-textarea-control__input,.media-modal-content,.media-modal-content .components-button,.components-guide__container .components-button,.components-notice__content .components-button,.editor-post-featured-image__toggle.components-button{border-radius:.375rem!important}.edit-post-header__toolbar .components-button,.edit-post-header__settings .components-button,.editor-document-tools__left .components-button,.editor-header__center .components-button,.editor-header__settings .components-button,.edit-post-sidebar .components-button:not(:-moz-any(.components-panel__body-toggle,.editor-post-last-revision__title)),.components-snackbar,.components-toggle-group-control,.editor-post-publish-panel .components-button,.edit-post-text-editor__toolbar .components-button,.edit-post-text-editor__body .components-textarea-control__input,.media-modal-content,.media-modal-content .components-button,.components-guide__container .components-button,.components-notice__content .components-button,.editor-post-featured-image__toggle.components-button{border-radius:.375rem!important}.edit-post-header__toolbar .components-button,.edit-post-header__settings .components-button,.editor-document-tools__left .components-button,.editor-header__center .components-button,.editor-header__settings .components-button,.edit-post-sidebar .components-button:not(:is(.components-panel__body-toggle,.editor-post-last-revision__title)),.components-snackbar,.components-toggle-group-control,.editor-post-publish-panel .components-button,.edit-post-text-editor__toolbar .components-button,.edit-post-text-editor__body .components-textarea-control__input,.media-modal-content,.media-modal-content .components-button,.components-guide__container .components-button,.components-notice__content .components-button,.editor-post-featured-image__toggle.components-button{border-radius:.375rem!important}.components-input-control__container,.components-combobox-control__suggestions-container,.components-checkbox-control__input,button.components-toggle-group-control-option-base,.editor-post-visibility__password-input{border-radius:.25rem!important}.components-button-group .components-button:first-child{border-top-left-radius:.375rem!important;border-bottom-left-radius:.375rem!important}.components-button-group .components-button:last-child{border-top-right-radius:.375rem!important;border-bottom-right-radius:.375rem!important}.components-popover__content,.components-guide{border-radius:.5rem!important}.block-editor-inserter__search{border-top-left-radius:.5rem!important;border-top-right-radius:.5rem!important}.media-menu-item.active{border-top-left-radius:.375rem!important;border-top-right-radius:.375rem!important}.components-base-control__label,.components-input-control__label,.components-custom-select-control__label{text-transform:none!important;letter-spacing:0!important;font-size:13px!important;font-weight:400!important}.edit-post-sidebar,.interface-interface-skeleton__sidebar:not(:empty)>.interface-complementary-area__fill[style="width: 280px;"],.interface-complementary-area.editor-sidebar{width:20rem!important}.block-editor-block-list__block-crash-warning{--tw-shadow:var(--tw-shadow-colored)!important;--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important;--tw-shadow-color:#b91c1c1a!important;border-color:#b91c1c26!important;border-radius:.5rem!important}.block-editor-block-list__block-crash-warning .block-editor-warning__message{--tw-text-opacity:1!important;color:rgb(69 10 10/var(--tw-text-opacity))!important}.wp-block-missing div.block-editor-warning{--tw-border-opacity:1!important;border-color:rgb(212 212 216/var(--tw-border-opacity))!important;--tw-shadow:var(--tw-shadow-colored)!important;--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important;--tw-shadow-color:#3f3f4633!important;background-color:#fafafabf!important;border-radius:.5rem!important}.wp-block-missing div.block-editor-warning .block-editor-warning__message{--tw-text-opacity:1!important;color:rgb(9 9 11/var(--tw-text-opacity))!important}.block-editor-block-contextual-toolbar,.block-editor-block-parent-selector__button{--tw-shadow:0 1px 2px 0 #0000000d;--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);border-radius:.5rem!important}.block-editor-block-types-list .block-editor-block-types-list__item{border-radius:.5rem!important}.block-editor-block-types-list .block-editor-block-types-list__item:after{content:var(--tw-content)!important;border-radius:.5rem!important}.block-editor-block-types-list .block-editor-block-types-list__item svg{--tw-scale-x:1.25;--tw-scale-y:1.25;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skewX(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.block-editor-list-view-tree .block-editor-block-icon{border-radius:.25rem!important}.block-editor-list-view-tree .block-editor-list-view-leaf>:first-child{border-top-left-radius:.5rem!important;border-bottom-left-radius:.5rem!important}.block-editor-list-view-tree .block-editor-list-view-leaf>:last-child{border-top-right-radius:.5rem!important;border-bottom-right-radius:.5rem!important}.block-editor-block-inspector .block-editor-block-card .block-editor-block-icon{border-radius:.25rem!important}.block-editor-inserter__toggle{border-radius:.375rem!important}:is(.edit-post-header__toolbar,.edit-post-header__settings,.editor-document-tools__left,.editor-header__center,.editor-header__settings) .components-button{min-height:2.25rem!important}:is(.edit-post-header__toolbar,.edit-post-header__settings,.editor-document-tools__left,.editor-header__center,.editor-header__settings) .components-button{min-width:2.25rem!important}.editor-styles-wrapper .wp-block:not(:-webkit-any(.editor-post-title,.block-list-appender)){max-width:100%!important}.editor-styles-wrapper .wp-block:not(:-moz-any(.editor-post-title,.block-list-appender)){max-width:100%!important}.editor-styles-wrapper .wp-block:not(:is(.editor-post-title,.block-list-appender)){max-width:100%!important}.components-tooltip{--tw-border-opacity:1;border-width:1px;border-color:rgb(31 41 55/var(--tw-border-opacity));--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity));--tw-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);--tw-backdrop-blur:blur(24px);--tw-backdrop-brightness:brightness(1.05);--tw-backdrop-saturate:saturate(1.5);-webkit-backdrop-filter:var(--tw-backdrop-blur)var(--tw-backdrop-brightness)var(--tw-backdrop-contrast)var(--tw-backdrop-grayscale)var(--tw-backdrop-hue-rotate)var(--tw-backdrop-invert)var(--tw-backdrop-opacity)var(--tw-backdrop-saturate)var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur)var(--tw-backdrop-brightness)var(--tw-backdrop-contrast)var(--tw-backdrop-grayscale)var(--tw-backdrop-hue-rotate)var(--tw-backdrop-invert)var(--tw-backdrop-opacity)var(--tw-backdrop-saturate)var(--tw-backdrop-sepia);background-color:#030712b3;padding:.125rem .25rem;border-radius:.375rem!important}.components-tooltip:has(>:first-child){--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity));--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity));background-color:#fffc}
|
|
1
|
+
.edit-post-header__toolbar .components-button,.edit-post-header__settings .components-button,.editor-document-tools__left .components-button,.editor-header__center .components-button,.editor-header__settings .components-button,.edit-post-sidebar .components-button:not(:-webkit-any(.components-panel__body-toggle,.editor-post-last-revision__title)),.components-snackbar,.components-toggle-group-control,.editor-post-publish-panel .components-button,.edit-post-text-editor__toolbar .components-button,.edit-post-text-editor__body .components-textarea-control__input,.media-modal-content,.media-modal-content .components-button,.components-guide__container .components-button,.components-notice__content .components-button,.editor-post-featured-image__toggle.components-button{border-radius:.375rem!important}.edit-post-header__toolbar .components-button,.edit-post-header__settings .components-button,.editor-document-tools__left .components-button,.editor-header__center .components-button,.editor-header__settings .components-button,.edit-post-sidebar .components-button:not(:-moz-any(.components-panel__body-toggle,.editor-post-last-revision__title)),.components-snackbar,.components-toggle-group-control,.editor-post-publish-panel .components-button,.edit-post-text-editor__toolbar .components-button,.edit-post-text-editor__body .components-textarea-control__input,.media-modal-content,.media-modal-content .components-button,.components-guide__container .components-button,.components-notice__content .components-button,.editor-post-featured-image__toggle.components-button{border-radius:.375rem!important}.edit-post-header__toolbar .components-button,.edit-post-header__settings .components-button,.editor-document-tools__left .components-button,.editor-header__center .components-button,.editor-header__settings .components-button,.edit-post-sidebar .components-button:not(:is(.components-panel__body-toggle,.editor-post-last-revision__title)),.components-snackbar,.components-toggle-group-control,.editor-post-publish-panel .components-button,.edit-post-text-editor__toolbar .components-button,.edit-post-text-editor__body .components-textarea-control__input,.media-modal-content,.media-modal-content .components-button,.components-guide__container .components-button,.components-notice__content .components-button,.editor-post-featured-image__toggle.components-button{border-radius:.375rem!important}.components-input-control__container,.components-combobox-control__suggestions-container,.components-checkbox-control__input,button.components-toggle-group-control-option-base,.editor-post-visibility__password-input{border-radius:.25rem!important}.components-button-group .components-button:first-child{border-top-left-radius:.375rem!important;border-bottom-left-radius:.375rem!important}.components-button-group .components-button:last-child{border-top-right-radius:.375rem!important;border-bottom-right-radius:.375rem!important}.components-popover__content,.components-guide{border-radius:.5rem!important}.block-editor-inserter__search{border-top-left-radius:.5rem!important;border-top-right-radius:.5rem!important}.media-menu-item.active{border-top-left-radius:.375rem!important;border-top-right-radius:.375rem!important}.components-base-control__label,.components-input-control__label,.components-custom-select-control__label{text-transform:none!important;letter-spacing:0!important;font-size:13px!important;font-weight:400!important}.edit-post-sidebar,.interface-interface-skeleton__sidebar:not(:empty)>.interface-complementary-area__fill[style="width: 280px;"],.interface-complementary-area.editor-sidebar{width:20rem!important}.block-editor-block-list__block-crash-warning{--tw-shadow:var(--tw-shadow-colored)!important;--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important;--tw-shadow-color:#b91c1c1a!important;border-color:#b91c1c26!important;border-radius:.5rem!important}.block-editor-block-list__block-crash-warning .block-editor-warning__message{--tw-text-opacity:1!important;color:rgb(69 10 10/var(--tw-text-opacity,1))!important}.wp-block-missing div.block-editor-warning{--tw-border-opacity:1!important;border-color:rgb(212 212 216/var(--tw-border-opacity,1))!important;--tw-shadow:var(--tw-shadow-colored)!important;--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important;--tw-shadow-color:#3f3f4633!important;background-color:#fafafabf!important;border-radius:.5rem!important}.wp-block-missing div.block-editor-warning .block-editor-warning__message{--tw-text-opacity:1!important;color:rgb(9 9 11/var(--tw-text-opacity,1))!important}.block-editor-block-contextual-toolbar,.block-editor-block-parent-selector__button{--tw-shadow:0 1px 2px 0 #0000000d;--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);border-radius:.5rem!important}.block-editor-block-types-list .block-editor-block-types-list__item{border-radius:.5rem!important}.block-editor-block-types-list .block-editor-block-types-list__item:after{content:var(--tw-content)!important;border-radius:.5rem!important}.block-editor-block-types-list .block-editor-block-types-list__item svg{--tw-scale-x:1.25;--tw-scale-y:1.25;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skewX(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.block-editor-list-view-tree .block-editor-block-icon{border-radius:.25rem!important}.block-editor-list-view-tree .block-editor-list-view-leaf>:first-child{border-top-left-radius:.5rem!important;border-bottom-left-radius:.5rem!important}.block-editor-list-view-tree .block-editor-list-view-leaf>:last-child{border-top-right-radius:.5rem!important;border-bottom-right-radius:.5rem!important}.block-editor-block-inspector .block-editor-block-card .block-editor-block-icon{border-radius:.25rem!important}.block-editor-inserter__toggle{border-radius:.375rem!important}:is(.edit-post-header__toolbar,.edit-post-header__settings,.editor-document-tools__left,.editor-header__center,.editor-header__settings) .components-button{min-height:2.25rem!important}:is(.edit-post-header__toolbar,.edit-post-header__settings,.editor-document-tools__left,.editor-header__center,.editor-header__settings) .components-button{min-width:2.25rem!important}.editor-styles-wrapper .wp-block:not(:-webkit-any(.editor-post-title,.block-list-appender)){max-width:100%!important}.editor-styles-wrapper .wp-block:not(:-moz-any(.editor-post-title,.block-list-appender)){max-width:100%!important}.editor-styles-wrapper .wp-block:not(:is(.editor-post-title,.block-list-appender)){max-width:100%!important}.components-tooltip{--tw-border-opacity:1;border-width:1px;border-color:rgb(31 41 55/var(--tw-border-opacity,1));--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1));--tw-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);--tw-backdrop-blur:blur(24px);--tw-backdrop-brightness:brightness(1.05);--tw-backdrop-saturate:saturate(1.5);-webkit-backdrop-filter:var(--tw-backdrop-blur)var(--tw-backdrop-brightness)var(--tw-backdrop-contrast)var(--tw-backdrop-grayscale)var(--tw-backdrop-hue-rotate)var(--tw-backdrop-invert)var(--tw-backdrop-opacity)var(--tw-backdrop-saturate)var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur)var(--tw-backdrop-brightness)var(--tw-backdrop-contrast)var(--tw-backdrop-grayscale)var(--tw-backdrop-hue-rotate)var(--tw-backdrop-invert)var(--tw-backdrop-opacity)var(--tw-backdrop-saturate)var(--tw-backdrop-sepia);background-color:#030712b3;padding:.125rem .25rem;border-radius:.375rem!important}.components-tooltip:has(>:first-child){--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity,1));--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity,1));background-color:#fffc}
|
|
@@ -1135,12 +1135,28 @@ class BaseAnimation {
|
|
|
1135
1135
|
then(resolve, reject) {
|
|
1136
1136
|
return this.currentFinishedPromise.then(resolve, reject);
|
|
1137
1137
|
}
|
|
1138
|
+
flatten() {
|
|
1139
|
+
this.options.type = "keyframes";
|
|
1140
|
+
this.options.ease = "linear";
|
|
1141
|
+
}
|
|
1138
1142
|
updateFinishedPromise() {
|
|
1139
1143
|
this.currentFinishedPromise = new Promise((resolve) => {
|
|
1140
1144
|
this.resolveFinishedPromise = resolve;
|
|
1141
1145
|
});
|
|
1142
1146
|
}
|
|
1143
1147
|
}
|
|
1148
|
+
const progress = (from, to, value) => {
|
|
1149
|
+
const toFromDifference = to - from;
|
|
1150
|
+
return toFromDifference === 0 ? 1 : (value - from) / toFromDifference;
|
|
1151
|
+
};
|
|
1152
|
+
const generateLinearEasing = (easing, duration, resolution = 10) => {
|
|
1153
|
+
let points = "";
|
|
1154
|
+
const numPoints = Math.max(Math.round(duration / resolution), 2);
|
|
1155
|
+
for (let i = 0; i < numPoints; i++) {
|
|
1156
|
+
points += easing(progress(0, numPoints - 1, i)) + ", ";
|
|
1157
|
+
}
|
|
1158
|
+
return `linear(${points.substring(0, points.length - 2)})`;
|
|
1159
|
+
};
|
|
1144
1160
|
function velocityPerSecond(velocity, frameDuration) {
|
|
1145
1161
|
return frameDuration ? velocity * (1e3 / frameDuration) : 0;
|
|
1146
1162
|
}
|
|
@@ -1149,18 +1165,43 @@ function calcGeneratorVelocity(resolveValue, t, current) {
|
|
|
1149
1165
|
const prevT = Math.max(t - velocitySampleDuration, 0);
|
|
1150
1166
|
return velocityPerSecond(current - resolveValue(prevT), t - prevT);
|
|
1151
1167
|
}
|
|
1168
|
+
const springDefaults = {
|
|
1169
|
+
// Default spring physics
|
|
1170
|
+
stiffness: 100,
|
|
1171
|
+
damping: 10,
|
|
1172
|
+
mass: 1,
|
|
1173
|
+
velocity: 0,
|
|
1174
|
+
// Default duration/bounce-based options
|
|
1175
|
+
duration: 800,
|
|
1176
|
+
// in ms
|
|
1177
|
+
bounce: 0.3,
|
|
1178
|
+
visualDuration: 0.3,
|
|
1179
|
+
// in seconds
|
|
1180
|
+
// Rest thresholds
|
|
1181
|
+
restSpeed: {
|
|
1182
|
+
granular: 0.01,
|
|
1183
|
+
default: 2
|
|
1184
|
+
},
|
|
1185
|
+
restDelta: {
|
|
1186
|
+
granular: 5e-3,
|
|
1187
|
+
default: 0.5
|
|
1188
|
+
},
|
|
1189
|
+
// Limits
|
|
1190
|
+
minDuration: 0.01,
|
|
1191
|
+
// in seconds
|
|
1192
|
+
maxDuration: 10,
|
|
1193
|
+
// in seconds
|
|
1194
|
+
minDamping: 0.05,
|
|
1195
|
+
maxDamping: 1
|
|
1196
|
+
};
|
|
1152
1197
|
const safeMin = 1e-3;
|
|
1153
|
-
|
|
1154
|
-
const maxDuration$1 = 10;
|
|
1155
|
-
const minDamping = 0.05;
|
|
1156
|
-
const maxDamping = 1;
|
|
1157
|
-
function findSpring({ duration = 800, bounce = 0.25, velocity = 0, mass = 1 }) {
|
|
1198
|
+
function findSpring({ duration = springDefaults.duration, bounce = springDefaults.bounce, velocity = springDefaults.velocity, mass = springDefaults.mass }) {
|
|
1158
1199
|
let envelope;
|
|
1159
1200
|
let derivative;
|
|
1160
|
-
warning(duration <= secondsToMilliseconds(maxDuration
|
|
1201
|
+
warning(duration <= secondsToMilliseconds(springDefaults.maxDuration), "Spring duration must be 10 seconds or less");
|
|
1161
1202
|
let dampingRatio = 1 - bounce;
|
|
1162
|
-
dampingRatio = clamp(minDamping, maxDamping, dampingRatio);
|
|
1163
|
-
duration = clamp(minDuration, maxDuration
|
|
1203
|
+
dampingRatio = clamp(springDefaults.minDamping, springDefaults.maxDamping, dampingRatio);
|
|
1204
|
+
duration = clamp(springDefaults.minDuration, springDefaults.maxDuration, millisecondsToSeconds(duration));
|
|
1164
1205
|
if (dampingRatio < 1) {
|
|
1165
1206
|
envelope = (undampedFreq2) => {
|
|
1166
1207
|
const exponentialDecay = undampedFreq2 * dampingRatio;
|
|
@@ -1197,8 +1238,8 @@ function findSpring({ duration = 800, bounce = 0.25, velocity = 0, mass = 1 }) {
|
|
|
1197
1238
|
duration = secondsToMilliseconds(duration);
|
|
1198
1239
|
if (isNaN(undampedFreq)) {
|
|
1199
1240
|
return {
|
|
1200
|
-
stiffness:
|
|
1201
|
-
damping:
|
|
1241
|
+
stiffness: springDefaults.stiffness,
|
|
1242
|
+
damping: springDefaults.damping,
|
|
1202
1243
|
duration
|
|
1203
1244
|
};
|
|
1204
1245
|
} else {
|
|
@@ -1221,6 +1262,17 @@ function approximateRoot(envelope, derivative, initialGuess) {
|
|
|
1221
1262
|
function calcAngularFreq(undampedFreq, dampingRatio) {
|
|
1222
1263
|
return undampedFreq * Math.sqrt(1 - dampingRatio * dampingRatio);
|
|
1223
1264
|
}
|
|
1265
|
+
const maxGeneratorDuration = 2e4;
|
|
1266
|
+
function calcGeneratorDuration(generator) {
|
|
1267
|
+
let duration = 0;
|
|
1268
|
+
const timeStep = 50;
|
|
1269
|
+
let state = generator.next(duration);
|
|
1270
|
+
while (!state.done && duration < maxGeneratorDuration) {
|
|
1271
|
+
duration += timeStep;
|
|
1272
|
+
state = generator.next(duration);
|
|
1273
|
+
}
|
|
1274
|
+
return duration >= maxGeneratorDuration ? Infinity : duration;
|
|
1275
|
+
}
|
|
1224
1276
|
const durationKeys = ["duration", "bounce"];
|
|
1225
1277
|
const physicsKeys = ["stiffness", "damping", "mass"];
|
|
1226
1278
|
function isSpringType(options, keys) {
|
|
@@ -1228,27 +1280,46 @@ function isSpringType(options, keys) {
|
|
|
1228
1280
|
}
|
|
1229
1281
|
function getSpringOptions(options) {
|
|
1230
1282
|
let springOptions = {
|
|
1231
|
-
velocity:
|
|
1232
|
-
stiffness:
|
|
1233
|
-
damping:
|
|
1234
|
-
mass:
|
|
1283
|
+
velocity: springDefaults.velocity,
|
|
1284
|
+
stiffness: springDefaults.stiffness,
|
|
1285
|
+
damping: springDefaults.damping,
|
|
1286
|
+
mass: springDefaults.mass,
|
|
1235
1287
|
isResolvedFromDuration: false,
|
|
1236
1288
|
...options
|
|
1237
1289
|
};
|
|
1238
1290
|
if (!isSpringType(options, physicsKeys) && isSpringType(options, durationKeys)) {
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1291
|
+
if (options.visualDuration) {
|
|
1292
|
+
const visualDuration = options.visualDuration;
|
|
1293
|
+
const root = 2 * Math.PI / (visualDuration * 1.2);
|
|
1294
|
+
const stiffness = root * root;
|
|
1295
|
+
const damping = 2 * clamp(0.05, 1, 1 - options.bounce) * Math.sqrt(stiffness);
|
|
1296
|
+
springOptions = {
|
|
1297
|
+
...springOptions,
|
|
1298
|
+
mass: springDefaults.mass,
|
|
1299
|
+
stiffness,
|
|
1300
|
+
damping
|
|
1301
|
+
};
|
|
1302
|
+
} else {
|
|
1303
|
+
const derived = findSpring(options);
|
|
1304
|
+
springOptions = {
|
|
1305
|
+
...springOptions,
|
|
1306
|
+
...derived,
|
|
1307
|
+
mass: springDefaults.mass
|
|
1308
|
+
};
|
|
1309
|
+
springOptions.isResolvedFromDuration = true;
|
|
1310
|
+
}
|
|
1246
1311
|
}
|
|
1247
1312
|
return springOptions;
|
|
1248
1313
|
}
|
|
1249
|
-
function spring(
|
|
1250
|
-
const
|
|
1251
|
-
|
|
1314
|
+
function spring(optionsOrVisualDuration = springDefaults.visualDuration, bounce = springDefaults.bounce) {
|
|
1315
|
+
const options = typeof optionsOrVisualDuration !== "object" ? {
|
|
1316
|
+
visualDuration: optionsOrVisualDuration,
|
|
1317
|
+
keyframes: [0, 1],
|
|
1318
|
+
bounce
|
|
1319
|
+
} : optionsOrVisualDuration;
|
|
1320
|
+
let { restSpeed, restDelta } = options;
|
|
1321
|
+
const origin = options.keyframes[0];
|
|
1322
|
+
const target = options.keyframes[options.keyframes.length - 1];
|
|
1252
1323
|
const state = { done: false, value: origin };
|
|
1253
1324
|
const { stiffness, damping, mass, duration, velocity, isResolvedFromDuration } = getSpringOptions({
|
|
1254
1325
|
...options,
|
|
@@ -1259,8 +1330,8 @@ function spring({ keyframes: keyframes2, restDelta, restSpeed, ...options }) {
|
|
|
1259
1330
|
const initialDelta = target - origin;
|
|
1260
1331
|
const undampedAngularFreq = millisecondsToSeconds(Math.sqrt(stiffness / mass));
|
|
1261
1332
|
const isGranularScale = Math.abs(initialDelta) < 5;
|
|
1262
|
-
restSpeed || (restSpeed = isGranularScale ?
|
|
1263
|
-
restDelta || (restDelta = isGranularScale ?
|
|
1333
|
+
restSpeed || (restSpeed = isGranularScale ? springDefaults.restSpeed.granular : springDefaults.restSpeed.default);
|
|
1334
|
+
restDelta || (restDelta = isGranularScale ? springDefaults.restDelta.granular : springDefaults.restDelta.default);
|
|
1264
1335
|
let resolveSpring;
|
|
1265
1336
|
if (dampingRatio < 1) {
|
|
1266
1337
|
const angularFreq = calcAngularFreq(undampedAngularFreq, dampingRatio);
|
|
@@ -1278,7 +1349,7 @@ function spring({ keyframes: keyframes2, restDelta, restSpeed, ...options }) {
|
|
|
1278
1349
|
return target - envelope * ((initialVelocity + dampingRatio * undampedAngularFreq * initialDelta) * Math.sinh(freqForT) + dampedAngularFreq * initialDelta * Math.cosh(freqForT)) / dampedAngularFreq;
|
|
1279
1350
|
};
|
|
1280
1351
|
}
|
|
1281
|
-
|
|
1352
|
+
const generator = {
|
|
1282
1353
|
calculatedDuration: isResolvedFromDuration ? duration || null : null,
|
|
1283
1354
|
next: (t) => {
|
|
1284
1355
|
const current = resolveSpring(t);
|
|
@@ -1295,8 +1366,14 @@ function spring({ keyframes: keyframes2, restDelta, restSpeed, ...options }) {
|
|
|
1295
1366
|
}
|
|
1296
1367
|
state.value = state.done ? target : current;
|
|
1297
1368
|
return state;
|
|
1369
|
+
},
|
|
1370
|
+
toString: () => {
|
|
1371
|
+
const calculatedDuration = Math.min(calcGeneratorDuration(generator), maxGeneratorDuration);
|
|
1372
|
+
const easing = generateLinearEasing((progress2) => generator.next(calculatedDuration * progress2).value, calculatedDuration, 30);
|
|
1373
|
+
return calculatedDuration + "ms " + easing;
|
|
1298
1374
|
}
|
|
1299
1375
|
};
|
|
1376
|
+
return generator;
|
|
1300
1377
|
}
|
|
1301
1378
|
function inertia({ keyframes: keyframes2, velocity = 0, power = 0.8, timeConstant = 325, bounceDamping = 10, bounceStiffness = 500, modifyTarget, min, max, restDelta = 0.5, restSpeed }) {
|
|
1302
1379
|
const origin = keyframes2[0];
|
|
@@ -1393,10 +1470,6 @@ const easingDefinitionToFunction = (definition) => {
|
|
|
1393
1470
|
};
|
|
1394
1471
|
const combineFunctions = (a, b) => (v) => b(a(v));
|
|
1395
1472
|
const pipe = (...transformers) => transformers.reduce(combineFunctions);
|
|
1396
|
-
const progress = (from, to, value) => {
|
|
1397
|
-
const toFromDifference = to - from;
|
|
1398
|
-
return toFromDifference === 0 ? 1 : (value - from) / toFromDifference;
|
|
1399
|
-
};
|
|
1400
1473
|
const mixNumber$1 = (from, to, progress2) => {
|
|
1401
1474
|
return from + (to - from) * progress2;
|
|
1402
1475
|
};
|
|
@@ -1638,17 +1711,6 @@ function keyframes({ duration = 300, keyframes: keyframeValues, times, ease: eas
|
|
|
1638
1711
|
}
|
|
1639
1712
|
};
|
|
1640
1713
|
}
|
|
1641
|
-
const maxGeneratorDuration = 2e4;
|
|
1642
|
-
function calcGeneratorDuration(generator) {
|
|
1643
|
-
let duration = 0;
|
|
1644
|
-
const timeStep = 50;
|
|
1645
|
-
let state = generator.next(duration);
|
|
1646
|
-
while (!state.done && duration < maxGeneratorDuration) {
|
|
1647
|
-
duration += timeStep;
|
|
1648
|
-
state = generator.next(duration);
|
|
1649
|
-
}
|
|
1650
|
-
return duration >= maxGeneratorDuration ? Infinity : duration;
|
|
1651
|
-
}
|
|
1652
1714
|
const frameloopDriver = (update) => {
|
|
1653
1715
|
const passTimestamp = ({ timestamp }) => update(timestamp);
|
|
1654
1716
|
return {
|
|
@@ -1694,6 +1756,12 @@ class MainThreadAnimation extends BaseAnimation {
|
|
|
1694
1756
|
this.resolver = new KeyframeResolver$1(keyframes2, onResolved, name, motionValue2, element);
|
|
1695
1757
|
this.resolver.scheduleResolve();
|
|
1696
1758
|
}
|
|
1759
|
+
flatten() {
|
|
1760
|
+
super.flatten();
|
|
1761
|
+
if (this._resolved) {
|
|
1762
|
+
Object.assign(this._resolved, this.initPlayback(this._resolved.keyframes));
|
|
1763
|
+
}
|
|
1764
|
+
}
|
|
1697
1765
|
initPlayback(keyframes$1) {
|
|
1698
1766
|
const { type = "keyframes", repeat = 0, repeatDelay = 0, repeatType, velocity = 0 } = this.options;
|
|
1699
1767
|
const generatorFactory = isGenerator(type) ? type : generators[type] || keyframes;
|
|
@@ -1924,15 +1992,6 @@ const acceleratedValues = /* @__PURE__ */ new Set([
|
|
|
1924
1992
|
// or until we implement support for linear() easing.
|
|
1925
1993
|
// "background-color"
|
|
1926
1994
|
]);
|
|
1927
|
-
const resolution = 10;
|
|
1928
|
-
const generateLinearEasing = (easing, duration) => {
|
|
1929
|
-
let points = "";
|
|
1930
|
-
const numPoints = Math.max(Math.round(duration / resolution), 2);
|
|
1931
|
-
for (let i = 0; i < numPoints; i++) {
|
|
1932
|
-
points += easing(progress(0, numPoints - 1, i)) + ", ";
|
|
1933
|
-
}
|
|
1934
|
-
return `linear(${points.substring(0, points.length - 2)})`;
|
|
1935
|
-
};
|
|
1936
1995
|
function memo(callback) {
|
|
1937
1996
|
let result;
|
|
1938
1997
|
return () => {
|
|
@@ -1987,7 +2046,7 @@ function mapEasingToNativeEasing(easing, duration) {
|
|
|
1987
2046
|
return supportedWaapiEasing[easing];
|
|
1988
2047
|
}
|
|
1989
2048
|
}
|
|
1990
|
-
function startWaapiAnimation(element, valueName, keyframes2, { delay: delay2 = 0, duration = 300, repeat = 0, repeatType = "loop", ease: ease2, times } = {}) {
|
|
2049
|
+
function startWaapiAnimation(element, valueName, keyframes2, { delay: delay2 = 0, duration = 300, repeat = 0, repeatType = "loop", ease: ease2 = "easeInOut", times } = {}) {
|
|
1991
2050
|
const keyframeOptions = { [valueName]: keyframes2 };
|
|
1992
2051
|
if (times)
|
|
1993
2052
|
keyframeOptions.offset = times;
|
|
@@ -2292,6 +2351,9 @@ class GroupPlaybackControls {
|
|
|
2292
2351
|
runAll(methodName) {
|
|
2293
2352
|
this.animations.forEach((controls) => controls[methodName]());
|
|
2294
2353
|
}
|
|
2354
|
+
flatten() {
|
|
2355
|
+
this.runAll("flatten");
|
|
2356
|
+
}
|
|
2295
2357
|
play() {
|
|
2296
2358
|
this.runAll("play");
|
|
2297
2359
|
}
|
|
@@ -2426,7 +2488,7 @@ class MotionValue {
|
|
|
2426
2488
|
* @internal
|
|
2427
2489
|
*/
|
|
2428
2490
|
constructor(init, options = {}) {
|
|
2429
|
-
this.version = "11.
|
|
2491
|
+
this.version = "11.12.0";
|
|
2430
2492
|
this.canTrackVelocity = null;
|
|
2431
2493
|
this.events = {};
|
|
2432
2494
|
this.updateAndNotify = (v, render = true) => {
|
|
@@ -2704,22 +2766,10 @@ const isMotionValue = (value) => Boolean(value && value.getVelocity);
|
|
|
2704
2766
|
function isWillChangeMotionValue(value) {
|
|
2705
2767
|
return Boolean(isMotionValue(value) && value.add);
|
|
2706
2768
|
}
|
|
2707
|
-
function getWillChangeName(name) {
|
|
2708
|
-
if (transformProps.has(name)) {
|
|
2709
|
-
return "transform";
|
|
2710
|
-
} else if (acceleratedValues.has(name)) {
|
|
2711
|
-
return camelToDash(name);
|
|
2712
|
-
}
|
|
2713
|
-
}
|
|
2714
2769
|
function addValueToWillChange(visualElement, key) {
|
|
2715
|
-
var _a;
|
|
2716
|
-
if (!visualElement.applyWillChange)
|
|
2717
|
-
return;
|
|
2718
2770
|
const willChange = visualElement.getValue("willChange");
|
|
2719
2771
|
if (isWillChangeMotionValue(willChange)) {
|
|
2720
2772
|
return willChange.add(key);
|
|
2721
|
-
} else if (!((_a = visualElement.props.style) === null || _a === void 0 ? void 0 : _a.willChange) && getWillChangeName(key)) {
|
|
2722
|
-
visualElement.setStaticValue("willChange", "transform");
|
|
2723
2773
|
}
|
|
2724
2774
|
}
|
|
2725
2775
|
function shouldBlockAnimation({ protectedKeys, needsAnimating }, key) {
|
|
@@ -5835,14 +5885,18 @@ function useVisualElement(Component2, visualState, props, createVisualElement, P
|
|
|
5835
5885
|
if (visualElement && !visualElement.projection && ProjectionNodeConstructor && (visualElement.type === "html" || visualElement.type === "svg")) {
|
|
5836
5886
|
createProjectionNode(visualElementRef.current, props, ProjectionNodeConstructor, initialLayoutGroupConfig);
|
|
5837
5887
|
}
|
|
5888
|
+
const isMounted = useRef(false);
|
|
5838
5889
|
useInsertionEffect(() => {
|
|
5839
|
-
visualElement &&
|
|
5890
|
+
if (visualElement && isMounted.current) {
|
|
5891
|
+
visualElement.update(props, presenceContext);
|
|
5892
|
+
}
|
|
5840
5893
|
});
|
|
5841
5894
|
const optimisedAppearId = props[optimizedAppearDataAttribute];
|
|
5842
5895
|
const wantsHandoff = useRef(Boolean(optimisedAppearId) && !((_a = window.MotionHandoffIsComplete) === null || _a === void 0 ? void 0 : _a.call(window, optimisedAppearId)) && ((_b = window.MotionHasOptimisedAnimation) === null || _b === void 0 ? void 0 : _b.call(window, optimisedAppearId)));
|
|
5843
5896
|
useIsomorphicLayoutEffect(() => {
|
|
5844
5897
|
if (!visualElement)
|
|
5845
5898
|
return;
|
|
5899
|
+
isMounted.current = true;
|
|
5846
5900
|
window.MotionIsMounted = true;
|
|
5847
5901
|
visualElement.updateFeatures();
|
|
5848
5902
|
microtask.render(visualElement.render);
|
|
@@ -6123,9 +6177,6 @@ function scrapeMotionValuesFromProps$1(props, prevProps, visualElement) {
|
|
|
6123
6177
|
newValues[key] = style[key];
|
|
6124
6178
|
}
|
|
6125
6179
|
}
|
|
6126
|
-
if (visualElement && style && typeof style.willChange === "string") {
|
|
6127
|
-
visualElement.applyWillChange = false;
|
|
6128
|
-
}
|
|
6129
6180
|
return newValues;
|
|
6130
6181
|
}
|
|
6131
6182
|
function scrapeMotionValuesFromProps(props, prevProps, visualElement) {
|
|
@@ -6145,9 +6196,9 @@ function useConstant(init) {
|
|
|
6145
6196
|
}
|
|
6146
6197
|
return ref.current;
|
|
6147
6198
|
}
|
|
6148
|
-
function makeState({
|
|
6199
|
+
function makeState({ scrapeMotionValuesFromProps: scrapeMotionValuesFromProps2, createRenderState, onMount }, props, context, presenceContext) {
|
|
6149
6200
|
const state = {
|
|
6150
|
-
latestValues: makeLatestValues(props, context, presenceContext,
|
|
6201
|
+
latestValues: makeLatestValues(props, context, presenceContext, scrapeMotionValuesFromProps2),
|
|
6151
6202
|
renderState: createRenderState()
|
|
6152
6203
|
};
|
|
6153
6204
|
if (onMount) {
|
|
@@ -6158,23 +6209,11 @@ function makeState({ applyWillChange = false, scrapeMotionValuesFromProps: scrap
|
|
|
6158
6209
|
const makeUseVisualState = (config) => (props, isStatic) => {
|
|
6159
6210
|
const context = useContext(MotionContext);
|
|
6160
6211
|
const presenceContext = useContext(PresenceContext);
|
|
6161
|
-
const make = () => makeState(config, props, context, presenceContext
|
|
6212
|
+
const make = () => makeState(config, props, context, presenceContext);
|
|
6162
6213
|
return isStatic ? make() : useConstant(make);
|
|
6163
6214
|
};
|
|
6164
|
-
function
|
|
6165
|
-
const list = Array.isArray(definition) ? definition : [definition];
|
|
6166
|
-
for (let i = 0; i < list.length; i++) {
|
|
6167
|
-
const resolved = resolveVariantFromProps(props, list[i]);
|
|
6168
|
-
if (resolved) {
|
|
6169
|
-
const { transitionEnd, transition, ...target } = resolved;
|
|
6170
|
-
callback(target, transitionEnd);
|
|
6171
|
-
}
|
|
6172
|
-
}
|
|
6173
|
-
}
|
|
6174
|
-
function makeLatestValues(props, context, presenceContext, shouldApplyWillChange, scrapeMotionValues) {
|
|
6175
|
-
var _a;
|
|
6215
|
+
function makeLatestValues(props, context, presenceContext, scrapeMotionValues) {
|
|
6176
6216
|
const values = {};
|
|
6177
|
-
let applyWillChange = shouldApplyWillChange && ((_a = props.style) === null || _a === void 0 ? void 0 : _a.willChange) === void 0;
|
|
6178
6217
|
const motionValues = scrapeMotionValues(props, {});
|
|
6179
6218
|
for (const key in motionValues) {
|
|
6180
6219
|
values[key] = resolveMotionValue(motionValues[key]);
|
|
@@ -6192,33 +6231,25 @@ function makeLatestValues(props, context, presenceContext, shouldApplyWillChange
|
|
|
6192
6231
|
isInitialAnimationBlocked = isInitialAnimationBlocked || initial === false;
|
|
6193
6232
|
const variantToSet = isInitialAnimationBlocked ? animate : initial;
|
|
6194
6233
|
if (variantToSet && typeof variantToSet !== "boolean" && !isAnimationControls(variantToSet)) {
|
|
6195
|
-
|
|
6196
|
-
|
|
6197
|
-
|
|
6198
|
-
|
|
6199
|
-
|
|
6200
|
-
valueTarget = valueTarget[index];
|
|
6201
|
-
}
|
|
6202
|
-
if (valueTarget !== null) {
|
|
6203
|
-
values[key] = valueTarget;
|
|
6204
|
-
}
|
|
6205
|
-
}
|
|
6206
|
-
for (const key in transitionEnd) {
|
|
6207
|
-
values[key] = transitionEnd[key];
|
|
6208
|
-
}
|
|
6209
|
-
});
|
|
6210
|
-
}
|
|
6211
|
-
if (applyWillChange) {
|
|
6212
|
-
if (animate && initial !== false && !isAnimationControls(animate)) {
|
|
6213
|
-
forEachDefinition(props, animate, (target) => {
|
|
6234
|
+
const list = Array.isArray(variantToSet) ? variantToSet : [variantToSet];
|
|
6235
|
+
for (let i = 0; i < list.length; i++) {
|
|
6236
|
+
const resolved = resolveVariantFromProps(props, list[i]);
|
|
6237
|
+
if (resolved) {
|
|
6238
|
+
const { transitionEnd, transition, ...target } = resolved;
|
|
6214
6239
|
for (const key in target) {
|
|
6215
|
-
|
|
6216
|
-
if (
|
|
6217
|
-
|
|
6218
|
-
|
|
6240
|
+
let valueTarget = target[key];
|
|
6241
|
+
if (Array.isArray(valueTarget)) {
|
|
6242
|
+
const index = isInitialAnimationBlocked ? valueTarget.length - 1 : 0;
|
|
6243
|
+
valueTarget = valueTarget[index];
|
|
6244
|
+
}
|
|
6245
|
+
if (valueTarget !== null) {
|
|
6246
|
+
values[key] = valueTarget;
|
|
6219
6247
|
}
|
|
6220
6248
|
}
|
|
6221
|
-
|
|
6249
|
+
for (const key in transitionEnd) {
|
|
6250
|
+
values[key] = transitionEnd[key];
|
|
6251
|
+
}
|
|
6252
|
+
}
|
|
6222
6253
|
}
|
|
6223
6254
|
}
|
|
6224
6255
|
return values;
|
|
@@ -6402,7 +6433,6 @@ const svgMotionConfig = {
|
|
|
6402
6433
|
};
|
|
6403
6434
|
const htmlMotionConfig = {
|
|
6404
6435
|
useVisualState: makeUseVisualState({
|
|
6405
|
-
applyWillChange: true,
|
|
6406
6436
|
scrapeMotionValuesFromProps: scrapeMotionValuesFromProps$1,
|
|
6407
6437
|
createRenderState: createHtmlRenderState
|
|
6408
6438
|
})
|
|
@@ -6565,7 +6595,7 @@ function updateMotionValuesFromProps(element, next, prev) {
|
|
|
6565
6595
|
if (isMotionValue(nextValue)) {
|
|
6566
6596
|
element.addValue(key, nextValue);
|
|
6567
6597
|
if (process.env.NODE_ENV === "development") {
|
|
6568
|
-
warnOnce(nextValue.version === "11.
|
|
6598
|
+
warnOnce(nextValue.version === "11.12.0", `Attempting to mix Motion versions ${nextValue.version} with 11.12.0 may not work as expected.`);
|
|
6569
6599
|
}
|
|
6570
6600
|
} else if (isMotionValue(prevValue)) {
|
|
6571
6601
|
element.addValue(key, motionValue(nextValue, { owner: element }));
|
|
@@ -6613,7 +6643,6 @@ class VisualElement {
|
|
|
6613
6643
|
return {};
|
|
6614
6644
|
}
|
|
6615
6645
|
constructor({ parent, props, presenceContext, reducedMotionConfig, blockInitialAnimation, visualState }, options = {}) {
|
|
6616
|
-
this.applyWillChange = false;
|
|
6617
6646
|
this.current = null;
|
|
6618
6647
|
this.children = /* @__PURE__ */ new Set();
|
|
6619
6648
|
this.isVariantNode = false;
|
|
@@ -6964,7 +6993,6 @@ class HTMLVisualElement extends DOMVisualElement {
|
|
|
6964
6993
|
constructor() {
|
|
6965
6994
|
super(...arguments);
|
|
6966
6995
|
this.type = "html";
|
|
6967
|
-
this.applyWillChange = true;
|
|
6968
6996
|
this.renderInstance = renderHTML;
|
|
6969
6997
|
}
|
|
6970
6998
|
readValueFromInstance(instance, key) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { $ as $514c0188e459b4c0$export$5f1af8db9871e1d6 } from "../../Text-
|
|
2
|
+
import { $ as $514c0188e459b4c0$export$5f1af8db9871e1d6 } from "../../Text-DImhB4rT.js";
|
|
3
3
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
4
4
|
import { RichLabel } from "../rich-label/rich-label.js";
|
|
5
5
|
/**
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { a as $9bf71ea28793e738$export$c5251b9e124bf29 } from "../../FocusScope-
|
|
5
|
-
import React__default, { useState, useRef, forwardRef, createContext } from "react";
|
|
6
|
-
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "../../context-Cs-ZD1nu.js";
|
|
2
|
+
import { $ as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../../Button-Xa6Ny0p_.js";
|
|
3
|
+
import { k as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, a as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$4d86445c2cf5e3, d as $3ef42575df84b30b$export$9d1611c77c2fe928, m as $df56164dff5785e2$export$4338b53315abf666 } from "../../utils-BSxcP7tv.js";
|
|
4
|
+
import { a as $9bf71ea28793e738$export$c5251b9e124bf29 } from "../../FocusScope-uV-xoRHT.js";
|
|
7
5
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-EDDcM64A.js";
|
|
6
|
+
import React__default, { useState, useRef, forwardRef, createContext } from "react";
|
|
7
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "../../context-BI3VdU0Z.js";
|
|
8
8
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
9
|
-
import {
|
|
10
|
-
import { _ as __ } from "../../default-i18n-
|
|
9
|
+
import { Tooltip } from "../tooltip/tooltip.js";
|
|
10
|
+
import { _ as __ } from "../../default-i18n-CM1-Xvzf.js";
|
|
11
11
|
function $2680b1829e803644$export$fa142eb1681c520(props, ref) {
|
|
12
12
|
const { "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, orientation = "horizontal" } = props;
|
|
13
13
|
let [isInToolbar, setInToolbar] = useState(false);
|
|
@@ -51,6 +51,9 @@ function $2680b1829e803644$export$fa142eb1681c520(props, ref) {
|
|
|
51
51
|
};
|
|
52
52
|
return {
|
|
53
53
|
toolbarProps: {
|
|
54
|
+
...$65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
|
|
55
|
+
labelable: true
|
|
56
|
+
}),
|
|
54
57
|
role: !isInToolbar ? "toolbar" : "group",
|
|
55
58
|
"aria-orientation": orientation,
|
|
56
59
|
"aria-label": ariaLabel,
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { a as $4e85f108e88277b8$export$b085522c77523c51 } from "../../RSPContexts-2lR5GG9p.js";
|
|
3
|
-
import { a as $64fa3d84918910a7$export$29f1550f4b0d4415, $ as $64fa3d84918910a7$export$fabf2dc03a41866e,
|
|
3
|
+
import { d as $3ef42575df84b30b$export$9d1611c77c2fe928, a as $64fa3d84918910a7$export$29f1550f4b0d4415, $ as $64fa3d84918910a7$export$fabf2dc03a41866e, m as $df56164dff5785e2$export$4338b53315abf666, n as $5dc95899b306f630$export$c9058316764c140e, i as $64fa3d84918910a7$export$ef03459518577ad4, b as $64fa3d84918910a7$export$4d86445c2cf5e3 } from "../../utils-BSxcP7tv.js";
|
|
4
4
|
import { $ as $d3e0e05bdfcf66bd$export$c24727297075ec6a } from "../../Form-Cq3fu75_.js";
|
|
5
5
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-EDDcM64A.js";
|
|
6
6
|
import React__default, { useEffect, useRef, forwardRef, useContext, createContext } from "react";
|
|
7
|
-
import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, a as $e93e671b31057976$export$b8473d3665f3a75a, b as $e5be200c675c3b3a$export$
|
|
8
|
-
import { $ as $
|
|
9
|
-
import { $ as $
|
|
10
|
-
import { $ as $
|
|
11
|
-
import { $ as $
|
|
12
|
-
import { $ as $
|
|
7
|
+
import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, a as $e93e671b31057976$export$b8473d3665f3a75a, b as $e5be200c675c3b3a$export$a763b9476acd3eb, c as $e5be200c675c3b3a$export$dad6ae84456c676a } from "../../useFormValidation-BNBrliSj.js";
|
|
8
|
+
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "../../usePress-BG9At5Lb.js";
|
|
9
|
+
import { $ as $d2c8e2b0480f3f34$export$cbe85ee05b554577 } from "../../useToggle-QlyoyPYv.js";
|
|
10
|
+
import { $ as $3017fa7ffdddec74$export$8042c6c013fd5226 } from "../../useToggleState-C1mnFRiI.js";
|
|
11
|
+
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-DKxoCzVD.js";
|
|
12
|
+
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../../focusSafely-Cl9cN7Qx.js";
|
|
13
|
+
import { $ as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "../../VisuallyHidden-wryJF4qQ.js";
|
|
13
14
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
14
15
|
import { AnimatedVisibility } from "../animated-visibility/animated-visibility.js";
|
|
15
16
|
import { icons } from "../../icons/icons.js";
|
|
@@ -29,8 +30,16 @@ function $406796ff087fe49b$export$e375f10ce42261c5(props, state, inputRef) {
|
|
|
29
30
|
useEffect(() => {
|
|
30
31
|
if (inputRef.current) inputRef.current.indeterminate = !!isIndeterminate;
|
|
31
32
|
});
|
|
33
|
+
let { pressProps } = $f6c31cce2adf654f$export$45712eceda6fad21({
|
|
34
|
+
isDisabled: isDisabled || isReadOnly,
|
|
35
|
+
onPress() {
|
|
36
|
+
let { [$e5be200c675c3b3a$export$a763b9476acd3eb]: groupValidationState } = props;
|
|
37
|
+
let { commitValidation } = groupValidationState ? groupValidationState : validationState;
|
|
38
|
+
commitValidation();
|
|
39
|
+
}
|
|
40
|
+
});
|
|
32
41
|
return {
|
|
33
|
-
labelProps,
|
|
42
|
+
labelProps: $3ef42575df84b30b$export$9d1611c77c2fe928(labelProps, pressProps),
|
|
34
43
|
inputProps: {
|
|
35
44
|
...inputProps,
|
|
36
45
|
checked: isSelected,
|
|
@@ -115,7 +124,7 @@ function $bc237834342dbd75$var$Checkbox(props, ref) {
|
|
|
115
124
|
let groupState = useContext($bc237834342dbd75$export$139c5b8563afc1fc);
|
|
116
125
|
let inputRef = $df56164dff5785e2$export$4338b53315abf666($5dc95899b306f630$export$c9058316764c140e(userProvidedInputRef, props.inputRef !== void 0 ? props.inputRef : null));
|
|
117
126
|
let { labelProps, inputProps, isSelected, isDisabled, isReadOnly, isPressed, isInvalid } = groupState ? $fba3e38d5ca8983f$export$353b32fc6898d37d({
|
|
118
|
-
|
|
127
|
+
...$64fa3d84918910a7$export$ef03459518577ad4(props),
|
|
119
128
|
// Value is optional for standalone checkboxes, but required for CheckboxGroup items;
|
|
120
129
|
// it's passed explicitly here to avoid typescript error (requires ignore).
|
|
121
130
|
// @ts-ignore
|
|
@@ -123,7 +132,7 @@ function $bc237834342dbd75$var$Checkbox(props, ref) {
|
|
|
123
132
|
// ReactNode type doesn't allow function children.
|
|
124
133
|
children: typeof props.children === "function" ? true : props.children
|
|
125
134
|
}, groupState, inputRef) : $406796ff087fe49b$export$e375f10ce42261c5({
|
|
126
|
-
|
|
135
|
+
...$64fa3d84918910a7$export$ef03459518577ad4(props),
|
|
127
136
|
children: typeof props.children === "function" ? true : props.children,
|
|
128
137
|
validationBehavior
|
|
129
138
|
}, $3017fa7ffdddec74$export$8042c6c013fd5226(props), inputRef);
|
|
@@ -134,7 +143,6 @@ function $bc237834342dbd75$var$Checkbox(props, ref) {
|
|
|
134
143
|
isDisabled: isInteractionDisabled
|
|
135
144
|
});
|
|
136
145
|
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
|
|
137
|
-
// TODO: should data attrs go on the label or on the <input>? useCheckbox passes them to the input...
|
|
138
146
|
...props,
|
|
139
147
|
defaultClassName: "react-aria-Checkbox",
|
|
140
148
|
values: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { _ as __ } from "../../default-i18n-
|
|
2
|
+
import { _ as __ } from "../../default-i18n-CM1-Xvzf.js";
|
|
3
3
|
import { Menu, MenuItem, MenuSeparator, MenuSection } from "../menu/menu.js";
|
|
4
4
|
import { ColorSwatch } from "./color-swatch.js";
|
|
5
5
|
import { RichLabel } from "../rich-label/rich-label.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { $ as $251c695a52d94a8d$export$cae13e90592f246a } from "../../ColorSwatch-
|
|
3
|
-
import { $ as $799cddbef784668f$export$6e865ea70d7724f } from "../../Color-
|
|
2
|
+
import { $ as $251c695a52d94a8d$export$cae13e90592f246a } from "../../ColorSwatch-xOFAZO_h.js";
|
|
3
|
+
import { $ as $799cddbef784668f$export$6e865ea70d7724f } from "../../Color-VsesNqCf.js";
|
|
4
4
|
import { c as clsx } from "../../lite-DVmmD_-j.js";
|
|
5
|
-
import { _ as __ } from "../../default-i18n-
|
|
5
|
+
import { _ as __ } from "../../default-i18n-CM1-Xvzf.js";
|
|
6
6
|
/**
|
|
7
7
|
* A simple color/gradient swatch.
|
|
8
8
|
*
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { _ as __, s as sprintf } from "../../default-i18n-
|
|
2
|
+
import { _ as __, s as sprintf } from "../../default-i18n-CM1-Xvzf.js";
|
|
3
3
|
import { useMemo, useState } from "react";
|
|
4
4
|
import { Button, ButtonGroup } from "../button/button.js";
|
|
5
5
|
import { icons } from "../../icons/icons.js";
|
|
6
6
|
import { SolidColorPicker } from "./solid-color-picker.js";
|
|
7
7
|
import { Slider } from "../slider/slider.js";
|
|
8
8
|
import { NumberPicker } from "../number-picker/number-picker.js";
|
|
9
|
-
import { $ as $251c695a52d94a8d$export$cae13e90592f246a } from "../../ColorSwatch-
|
|
9
|
+
import { $ as $251c695a52d94a8d$export$cae13e90592f246a } from "../../ColorSwatch-xOFAZO_h.js";
|
|
10
10
|
import { Menu, MenuItem } from "../menu/menu.js";
|
|
11
11
|
import { MatrixAlign } from "../matrix-align/matrix-align.js";
|
|
12
12
|
import { Spacer } from "../spacer/spacer.js";
|