@wordpress/components 25.14.0 → 25.15.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/CHANGELOG.md +50 -0
- package/CONTRIBUTING.md +57 -115
- package/LICENSE.md +1 -1
- package/build/base-control/index.js +17 -13
- package/build/base-control/index.js.map +1 -1
- package/build/border-box-control/border-box-control-linked-button/component.js +1 -1
- package/build/border-box-control/border-box-control-linked-button/component.js.map +1 -1
- package/build/border-control/border-control-style-picker/component.js +1 -1
- package/build/border-control/border-control-style-picker/component.js.map +1 -1
- package/build/box-control/index.js +1 -1
- package/build/box-control/index.js.map +1 -1
- package/build/box-control/linked-button.js +1 -1
- package/build/box-control/linked-button.js.map +1 -1
- package/build/button/index.js +1 -1
- package/build/button/index.js.map +1 -1
- package/build/color-picker/color-copy-button.js +1 -1
- package/build/color-picker/color-copy-button.js.map +1 -1
- package/build/context/wordpress-component.js.map +1 -1
- package/build/custom-select-control-v2/index.js +11 -10
- package/build/custom-select-control-v2/index.js.map +1 -1
- package/build/date-time/date/styles.js +8 -8
- package/build/date-time/date/styles.js.map +1 -1
- package/build/dropdown-menu-v2/index.js +205 -159
- package/build/dropdown-menu-v2/index.js.map +1 -1
- package/build/dropdown-menu-v2/styles.js +86 -77
- package/build/dropdown-menu-v2/styles.js.map +1 -1
- package/build/dropdown-menu-v2/types.js.map +1 -1
- package/build/duotone-picker/duotone-picker.js +4 -3
- package/build/duotone-picker/duotone-picker.js.map +1 -1
- package/build/font-size-picker/index.js +4 -2
- package/build/font-size-picker/index.js.map +1 -1
- package/build/font-size-picker/index.native.js +6 -3
- package/build/font-size-picker/index.native.js.map +1 -1
- package/build/form-token-field/index.js +10 -5
- package/build/form-token-field/index.js.map +1 -1
- package/build/form-token-field/token.js +1 -0
- package/build/form-token-field/token.js.map +1 -1
- package/build/gradient-picker/index.js +3 -2
- package/build/gradient-picker/index.js.map +1 -1
- package/build/index.native.js +20 -3
- package/build/index.native.js.map +1 -1
- package/build/input-control/styles/input-control-styles.js +32 -29
- package/build/input-control/styles/input-control-styles.js.map +1 -1
- package/build/input-control/types.js.map +1 -1
- package/build/lock-unlock.js +18 -0
- package/build/lock-unlock.js.map +1 -0
- package/build/mobile/bottom-sheet/index.native.js +8 -0
- package/build/mobile/bottom-sheet/index.native.js.map +1 -1
- package/build/mobile/global-styles-context/utils.native.js +26 -13
- package/build/mobile/global-styles-context/utils.native.js.map +1 -1
- package/build/mobile/image/constants.js +12 -0
- package/build/mobile/image/constants.js.map +1 -0
- package/build/mobile/image/index.native.js +26 -18
- package/build/mobile/image/index.native.js.map +1 -1
- package/build/mobile/keyboard-aware-flat-list/index.android.js +40 -8
- package/build/mobile/keyboard-aware-flat-list/index.android.js.map +1 -1
- package/build/mobile/keyboard-aware-flat-list/index.ios.js +44 -68
- package/build/mobile/keyboard-aware-flat-list/index.ios.js.map +1 -1
- package/build/mobile/keyboard-aware-flat-list/use-scroll-to-element.native.js +39 -0
- package/build/mobile/keyboard-aware-flat-list/use-scroll-to-element.native.js.map +1 -0
- package/build/mobile/keyboard-aware-flat-list/{use-scroll-to-text-input.native.js → use-scroll-to-section.native.js} +22 -29
- package/build/mobile/keyboard-aware-flat-list/use-scroll-to-section.native.js.map +1 -0
- package/build/mobile/keyboard-aware-flat-list/use-scroll.native.js +93 -0
- package/build/mobile/keyboard-aware-flat-list/use-scroll.native.js.map +1 -0
- package/build/mobile/utils/get-px-from-css-unit.native.js +302 -0
- package/build/mobile/utils/get-px-from-css-unit.native.js.map +1 -0
- package/build/modal/index.js +18 -13
- package/build/modal/index.js.map +1 -1
- package/build/navigation/menu/menu-title.js +1 -1
- package/build/navigation/menu/menu-title.js.map +1 -1
- package/build/navigator/navigator-provider/component.js +13 -15
- package/build/navigator/navigator-provider/component.js.map +1 -1
- package/build/navigator/navigator-screen/component.js +23 -63
- package/build/navigator/navigator-screen/component.js.map +1 -1
- package/build/navigator/styles.js +52 -0
- package/build/navigator/styles.js.map +1 -0
- package/build/number-control/index.js +4 -8
- package/build/number-control/index.js.map +1 -1
- package/build/number-control/types.js.map +1 -1
- package/build/palette-edit/index.js +15 -54
- package/build/palette-edit/index.js.map +1 -1
- package/build/private-apis.js +11 -26
- package/build/private-apis.js.map +1 -1
- package/build/private-apis.native.js +21 -0
- package/build/private-apis.native.js.map +1 -0
- package/build/radio-control/index.js +1 -0
- package/build/radio-control/index.js.map +1 -1
- package/build/range-control/index.js +1 -1
- package/build/range-control/index.js.map +1 -1
- package/build/select-control/styles/select-control-styles.js +15 -25
- package/build/select-control/styles/select-control-styles.js.map +1 -1
- package/build/slot-fill/index.js +3 -2
- package/build/slot-fill/index.js.map +1 -1
- package/build/slot-fill/types.js.map +1 -1
- package/build/snackbar/types.js.map +1 -1
- package/build/tabs/styles.js +3 -3
- package/build/tabs/styles.js.map +1 -1
- package/build/tabs/tabpanel.js +9 -7
- package/build/tabs/tabpanel.js.map +1 -1
- package/build/toggle-group-control/toggle-group-control/component.js +4 -4
- package/build/toggle-group-control/toggle-group-control/component.js.map +1 -1
- package/build/toggle-group-control/toggle-group-control/styles.js +29 -15
- package/build/toggle-group-control/toggle-group-control/styles.js.map +1 -1
- package/build/toggle-group-control/toggle-group-control-option-base/styles.js +9 -9
- package/build/toggle-group-control/toggle-group-control-option-base/styles.js.map +1 -1
- package/build/tools-panel/tools-panel/component.js +3 -1
- package/build/tools-panel/tools-panel/component.js.map +1 -1
- package/build/tools-panel/tools-panel-header/component.js +9 -8
- package/build/tools-panel/tools-panel-header/component.js.map +1 -1
- package/build/tools-panel/types.js.map +1 -1
- package/build/tooltip/index.js +1 -1
- package/build/tooltip/index.js.map +1 -1
- package/build/truncate/hook.js +10 -4
- package/build/truncate/hook.js.map +1 -1
- package/build/truncate/types.js.map +1 -1
- package/build/unit-control/index.js +1 -1
- package/build/unit-control/index.js.map +1 -1
- package/build/utils/strings.js +34 -3
- package/build/utils/strings.js.map +1 -1
- package/build-module/base-control/index.js +16 -12
- package/build-module/base-control/index.js.map +1 -1
- package/build-module/border-box-control/border-box-control-linked-button/component.js +1 -1
- package/build-module/border-box-control/border-box-control-linked-button/component.js.map +1 -1
- package/build-module/border-control/border-control-style-picker/component.js +1 -1
- package/build-module/border-control/border-control-style-picker/component.js.map +1 -1
- package/build-module/box-control/index.js +1 -1
- package/build-module/box-control/index.js.map +1 -1
- package/build-module/box-control/linked-button.js +1 -1
- package/build-module/box-control/linked-button.js.map +1 -1
- package/build-module/button/index.js +1 -1
- package/build-module/button/index.js.map +1 -1
- package/build-module/color-picker/color-copy-button.js +1 -1
- package/build-module/color-picker/color-copy-button.js.map +1 -1
- package/build-module/context/wordpress-component.js.map +1 -1
- package/build-module/custom-select-control-v2/index.js +11 -10
- package/build-module/custom-select-control-v2/index.js.map +1 -1
- package/build-module/date-time/date/styles.js +8 -8
- package/build-module/date-time/date/styles.js.map +1 -1
- package/build-module/dropdown-menu-v2/index.js +201 -154
- package/build-module/dropdown-menu-v2/index.js.map +1 -1
- package/build-module/dropdown-menu-v2/styles.js +68 -61
- package/build-module/dropdown-menu-v2/styles.js.map +1 -1
- package/build-module/dropdown-menu-v2/types.js.map +1 -1
- package/build-module/duotone-picker/duotone-picker.js +4 -3
- package/build-module/duotone-picker/duotone-picker.js.map +1 -1
- package/build-module/font-size-picker/index.js +4 -2
- package/build-module/font-size-picker/index.js.map +1 -1
- package/build-module/font-size-picker/index.native.js +5 -2
- package/build-module/font-size-picker/index.native.js.map +1 -1
- package/build-module/form-token-field/index.js +10 -5
- package/build-module/form-token-field/index.js.map +1 -1
- package/build-module/form-token-field/token.js +1 -0
- package/build-module/form-token-field/token.js.map +1 -1
- package/build-module/gradient-picker/index.js +3 -2
- package/build-module/gradient-picker/index.js.map +1 -1
- package/build-module/index.native.js +6 -1
- package/build-module/index.native.js.map +1 -1
- package/build-module/input-control/styles/input-control-styles.js +31 -29
- package/build-module/input-control/styles/input-control-styles.js.map +1 -1
- package/build-module/input-control/types.js.map +1 -1
- package/build-module/lock-unlock.js +9 -0
- package/build-module/lock-unlock.js.map +1 -0
- package/build-module/mobile/bottom-sheet/index.native.js +9 -1
- package/build-module/mobile/bottom-sheet/index.native.js.map +1 -1
- package/build-module/mobile/global-styles-context/utils.native.js +25 -13
- package/build-module/mobile/global-styles-context/utils.native.js.map +1 -1
- package/build-module/mobile/image/constants.js +5 -0
- package/build-module/mobile/image/constants.js.map +1 -0
- package/build-module/mobile/image/index.native.js +25 -16
- package/build-module/mobile/image/index.native.js.map +1 -1
- package/build-module/mobile/keyboard-aware-flat-list/index.android.js +40 -6
- package/build-module/mobile/keyboard-aware-flat-list/index.android.js.map +1 -1
- package/build-module/mobile/keyboard-aware-flat-list/index.ios.js +46 -68
- package/build-module/mobile/keyboard-aware-flat-list/index.ios.js.map +1 -1
- package/build-module/mobile/keyboard-aware-flat-list/use-scroll-to-element.native.js +33 -0
- package/build-module/mobile/keyboard-aware-flat-list/use-scroll-to-element.native.js.map +1 -0
- package/build-module/mobile/keyboard-aware-flat-list/{use-scroll-to-text-input.native.js → use-scroll-to-section.native.js} +21 -27
- package/build-module/mobile/keyboard-aware-flat-list/use-scroll-to-section.native.js.map +1 -0
- package/build-module/mobile/keyboard-aware-flat-list/use-scroll.native.js +86 -0
- package/build-module/mobile/keyboard-aware-flat-list/use-scroll.native.js.map +1 -0
- package/build-module/mobile/utils/get-px-from-css-unit.native.js +294 -0
- package/build-module/mobile/utils/get-px-from-css-unit.native.js.map +1 -0
- package/build-module/modal/index.js +18 -13
- package/build-module/modal/index.js.map +1 -1
- package/build-module/navigation/menu/menu-title.js +1 -1
- package/build-module/navigation/menu/menu-title.js.map +1 -1
- package/build-module/navigator/navigator-provider/component.js +3 -16
- package/build-module/navigator/navigator-provider/component.js.map +1 -1
- package/build-module/navigator/navigator-screen/component.js +16 -70
- package/build-module/navigator/navigator-screen/component.js.map +1 -1
- package/build-module/navigator/styles.js +47 -0
- package/build-module/navigator/styles.js.map +1 -0
- package/build-module/number-control/index.js +4 -8
- package/build-module/number-control/index.js.map +1 -1
- package/build-module/number-control/types.js.map +1 -1
- package/build-module/palette-edit/index.js +15 -51
- package/build-module/palette-edit/index.js.map +1 -1
- package/build-module/private-apis.js +10 -23
- package/build-module/private-apis.js.map +1 -1
- package/build-module/private-apis.native.js +14 -0
- package/build-module/private-apis.native.js.map +1 -0
- package/build-module/radio-control/index.js +1 -0
- package/build-module/radio-control/index.js.map +1 -1
- package/build-module/range-control/index.js +1 -1
- package/build-module/range-control/index.js.map +1 -1
- package/build-module/select-control/styles/select-control-styles.js +15 -25
- package/build-module/select-control/styles/select-control-styles.js.map +1 -1
- package/build-module/slot-fill/index.js +3 -2
- package/build-module/slot-fill/index.js.map +1 -1
- package/build-module/slot-fill/types.js.map +1 -1
- package/build-module/snackbar/types.js.map +1 -1
- package/build-module/tabs/styles.js +3 -3
- package/build-module/tabs/styles.js.map +1 -1
- package/build-module/tabs/tabpanel.js +9 -7
- package/build-module/tabs/tabpanel.js.map +1 -1
- package/build-module/toggle-group-control/toggle-group-control/component.js +4 -4
- package/build-module/toggle-group-control/toggle-group-control/component.js.map +1 -1
- package/build-module/toggle-group-control/toggle-group-control/styles.js +29 -15
- package/build-module/toggle-group-control/toggle-group-control/styles.js.map +1 -1
- package/build-module/toggle-group-control/toggle-group-control-option-base/styles.js +9 -9
- package/build-module/toggle-group-control/toggle-group-control-option-base/styles.js.map +1 -1
- package/build-module/tools-panel/tools-panel/component.js +3 -1
- package/build-module/tools-panel/tools-panel/component.js.map +1 -1
- package/build-module/tools-panel/tools-panel-header/component.js +9 -8
- package/build-module/tools-panel/tools-panel-header/component.js.map +1 -1
- package/build-module/tools-panel/types.js.map +1 -1
- package/build-module/tooltip/index.js +1 -1
- package/build-module/tooltip/index.js.map +1 -1
- package/build-module/truncate/hook.js +10 -4
- package/build-module/truncate/hook.js.map +1 -1
- package/build-module/truncate/types.js.map +1 -1
- package/build-module/unit-control/index.js +1 -1
- package/build-module/unit-control/index.js.map +1 -1
- package/build-module/utils/strings.js +32 -2
- package/build-module/utils/strings.js.map +1 -1
- package/build-style/style-rtl.css +29 -5
- package/build-style/style.css +29 -5
- package/build-types/base-control/index.d.ts +3 -27
- package/build-types/base-control/index.d.ts.map +1 -1
- package/build-types/base-control/stories/index.story.d.ts +4 -1
- package/build-types/base-control/stories/index.story.d.ts.map +1 -1
- package/build-types/color-picker/component.d.ts +1 -1
- package/build-types/color-picker/stories/index.story.d.ts +1 -1
- package/build-types/color-picker/stories/index.story.d.ts.map +1 -1
- package/build-types/composite/test/index.d.ts.map +1 -0
- package/build-types/context/wordpress-component.d.ts +3 -3
- package/build-types/context/wordpress-component.d.ts.map +1 -1
- package/build-types/custom-select-control-v2/index.d.ts +3 -2
- package/build-types/custom-select-control-v2/index.d.ts.map +1 -1
- package/build-types/custom-select-control-v2/stories/index.story.d.ts +4 -3
- package/build-types/custom-select-control-v2/stories/index.story.d.ts.map +1 -1
- package/build-types/dropdown/index.d.ts +1 -1
- package/build-types/dropdown/index.d.ts.map +1 -1
- package/build-types/dropdown/stories/index.story.d.ts +3 -3
- package/build-types/dropdown/stories/index.story.d.ts.map +1 -1
- package/build-types/dropdown-menu/index.d.ts +1 -1
- package/build-types/dropdown-menu/index.d.ts.map +1 -1
- package/build-types/dropdown-menu/stories/index.story.d.ts +2 -2
- package/build-types/dropdown-menu/stories/index.story.d.ts.map +1 -1
- package/build-types/dropdown-menu-v2/index.d.ts +18 -15
- package/build-types/dropdown-menu-v2/index.d.ts.map +1 -1
- package/build-types/dropdown-menu-v2/stories/index.story.d.ts +7 -2
- package/build-types/dropdown-menu-v2/stories/index.story.d.ts.map +1 -1
- package/build-types/dropdown-menu-v2/styles.d.ts +77 -23
- package/build-types/dropdown-menu-v2/styles.d.ts.map +1 -1
- package/build-types/dropdown-menu-v2/types.d.ts +89 -173
- package/build-types/dropdown-menu-v2/types.d.ts.map +1 -1
- package/build-types/duotone-picker/duotone-picker.d.ts.map +1 -1
- package/build-types/font-size-picker/index.d.ts.map +1 -1
- package/build-types/form-token-field/index.d.ts.map +1 -1
- package/build-types/form-token-field/token.d.ts.map +1 -1
- package/build-types/input-control/styles/input-control-styles.d.ts +11 -0
- package/build-types/input-control/styles/input-control-styles.d.ts.map +1 -1
- package/build-types/input-control/types.d.ts +1 -1
- package/build-types/input-control/types.d.ts.map +1 -1
- package/build-types/lock-unlock.d.ts +3 -0
- package/build-types/lock-unlock.d.ts.map +1 -0
- package/build-types/mobile/image/constants.d.ts +5 -0
- package/build-types/mobile/image/constants.d.ts.map +1 -0
- package/build-types/modal/index.d.ts.map +1 -1
- package/build-types/navigator/navigator-provider/component.d.ts.map +1 -1
- package/build-types/navigator/navigator-screen/component.d.ts +1 -7
- package/build-types/navigator/navigator-screen/component.d.ts.map +1 -1
- package/build-types/navigator/styles.d.ts +9 -0
- package/build-types/navigator/styles.d.ts.map +1 -0
- package/build-types/number-control/index.d.ts.map +1 -1
- package/build-types/number-control/types.d.ts +1 -1
- package/build-types/palette-edit/index.d.ts +3 -8
- package/build-types/palette-edit/index.d.ts.map +1 -1
- package/build-types/popover/index.d.ts +1 -1
- package/build-types/popover/index.d.ts.map +1 -1
- package/build-types/popover/stories/e2e/index.story.d.ts +1 -1
- package/build-types/private-apis.d.ts +0 -1
- package/build-types/private-apis.d.ts.map +1 -1
- package/build-types/radio-control/index.d.ts.map +1 -1
- package/build-types/select-control/styles/select-control-styles.d.ts.map +1 -1
- package/build-types/slot-fill/index.d.ts +1 -1
- package/build-types/slot-fill/index.d.ts.map +1 -1
- package/build-types/slot-fill/types.d.ts +4 -0
- package/build-types/slot-fill/types.d.ts.map +1 -1
- package/build-types/snackbar/index.d.ts +2 -2
- package/build-types/snackbar/stories/index.story.d.ts +0 -3
- package/build-types/snackbar/stories/index.story.d.ts.map +1 -1
- package/build-types/snackbar/types.d.ts +1 -1
- package/build-types/snackbar/types.d.ts.map +1 -1
- package/build-types/tabs/styles.d.ts.map +1 -1
- package/build-types/tabs/tabpanel.d.ts +1 -1
- package/build-types/tabs/tabpanel.d.ts.map +1 -1
- package/build-types/toggle-group-control/toggle-group-control/component.d.ts.map +1 -1
- package/build-types/toggle-group-control/toggle-group-control/styles.d.ts +2 -2
- package/build-types/toggle-group-control/toggle-group-control/styles.d.ts.map +1 -1
- package/build-types/toggle-group-control/toggle-group-control-option-base/component.d.ts +1 -1
- package/build-types/toggle-group-control/toggle-group-control-option-base/component.d.ts.map +1 -1
- package/build-types/toggle-group-control/toggle-group-control-option-base/styles.d.ts.map +1 -1
- package/build-types/tools-panel/tools-panel/component.d.ts.map +1 -1
- package/build-types/tools-panel/tools-panel/hook.d.ts +1 -0
- package/build-types/tools-panel/tools-panel/hook.d.ts.map +1 -1
- package/build-types/tools-panel/tools-panel-header/component.d.ts.map +1 -1
- package/build-types/tools-panel/tools-panel-header/hook.d.ts +1 -0
- package/build-types/tools-panel/tools-panel-header/hook.d.ts.map +1 -1
- package/build-types/tools-panel/types.d.ts +9 -0
- package/build-types/tools-panel/types.d.ts.map +1 -1
- package/build-types/truncate/hook.d.ts +1 -1
- package/build-types/truncate/hook.d.ts.map +1 -1
- package/build-types/truncate/types.d.ts +4 -0
- package/build-types/truncate/types.d.ts.map +1 -1
- package/build-types/utils/strings.d.ts +14 -2
- package/build-types/utils/strings.d.ts.map +1 -1
- package/package.json +20 -21
- package/src/alignment-matrix-control/test/index.tsx +10 -16
- package/src/base-control/index.tsx +21 -16
- package/src/border-box-control/border-box-control-linked-button/component.tsx +1 -1
- package/src/border-control/border-control-style-picker/component.tsx +1 -1
- package/src/box-control/index.tsx +1 -1
- package/src/box-control/linked-button.tsx +1 -1
- package/src/button/README.md +32 -6
- package/src/button/index.tsx +1 -1
- package/src/button-group/README.md +0 -6
- package/src/card/card/README.md +1 -1
- package/src/checkbox-control/README.md +1 -9
- package/src/color-picker/color-copy-button.tsx +1 -1
- package/src/combobox-control/README.md +0 -6
- package/src/composite/test/index.tsx +576 -0
- package/src/context/wordpress-component.ts +11 -6
- package/src/custom-select-control/README.md +0 -6
- package/src/custom-select-control-v2/index.tsx +13 -12
- package/src/date-time/date/styles.ts +3 -3
- package/src/dropdown-menu/README.md +0 -5
- package/src/dropdown-menu-v2/README.md +75 -136
- package/src/dropdown-menu-v2/index.tsx +321 -231
- package/src/dropdown-menu-v2/stories/index.story.tsx +522 -126
- package/src/dropdown-menu-v2/styles.ts +226 -151
- package/src/dropdown-menu-v2/test/index.tsx +480 -188
- package/src/dropdown-menu-v2/types.ts +98 -184
- package/src/duotone-picker/duotone-picker.tsx +7 -3
- package/src/font-size-picker/index.native.js +8 -2
- package/src/font-size-picker/index.tsx +4 -2
- package/src/form-toggle/README.md +0 -6
- package/src/form-token-field/index.tsx +11 -7
- package/src/form-token-field/test/index.tsx +97 -0
- package/src/form-token-field/token.tsx +1 -0
- package/src/gradient-picker/index.tsx +2 -2
- package/src/index.native.js +6 -1
- package/src/input-control/styles/input-control-styles.tsx +10 -8
- package/src/input-control/types.ts +1 -1
- package/src/lock-unlock.js +10 -0
- package/src/menu-group/README.md +0 -8
- package/src/menu-items-choice/README.md +0 -7
- package/src/mobile/bottom-sheet/index.native.js +15 -1
- package/src/mobile/global-styles-context/test/fixtures/theme.native.js +0 -20
- package/src/mobile/global-styles-context/utils.native.js +28 -19
- package/src/mobile/image/constants.js +1 -0
- package/src/mobile/image/index.native.js +55 -18
- package/src/mobile/image/style.native.scss +35 -9
- package/src/mobile/keyboard-aware-flat-list/index.android.js +50 -5
- package/src/mobile/keyboard-aware-flat-list/index.ios.js +65 -91
- package/src/mobile/keyboard-aware-flat-list/test/{use-scroll-to-text-input.native.js → use-scroll-to-section.native.js} +27 -25
- package/src/mobile/keyboard-aware-flat-list/test/use-scroll.native.js +71 -0
- package/src/mobile/keyboard-aware-flat-list/use-scroll-to-element.native.js +41 -0
- package/src/mobile/keyboard-aware-flat-list/{use-scroll-to-text-input.native.js → use-scroll-to-section.native.js} +22 -27
- package/src/mobile/keyboard-aware-flat-list/use-scroll.native.js +100 -0
- package/src/mobile/utils/get-px-from-css-unit.native.js +329 -0
- package/src/mobile/utils/test/get-px-from-css-unit.native.js +172 -0
- package/src/modal/README.md +0 -6
- package/src/modal/index.tsx +18 -16
- package/src/modal/test/index.tsx +90 -1
- package/src/navigation/menu/menu-title.tsx +1 -1
- package/src/navigator/navigator-provider/component.tsx +3 -4
- package/src/navigator/navigator-screen/component.tsx +15 -93
- package/src/navigator/styles.ts +71 -0
- package/src/navigator/test/index.tsx +0 -64
- package/src/notice/README.md +0 -6
- package/src/number-control/README.md +2 -2
- package/src/number-control/index.tsx +4 -8
- package/src/number-control/types.ts +1 -1
- package/src/palette-edit/index.tsx +15 -58
- package/src/palette-edit/test/index.tsx +1 -75
- package/src/panel/README.md +0 -6
- package/src/private-apis.native.js +13 -0
- package/src/private-apis.ts +12 -37
- package/src/radio-control/README.md +0 -6
- package/src/radio-control/index.tsx +4 -1
- package/src/radio-control/style.scss +29 -2
- package/src/radio-group/README.md +0 -6
- package/src/range-control/README.md +1 -9
- package/src/range-control/index.tsx +1 -1
- package/src/search-control/README.md +0 -6
- package/src/select-control/README.md +0 -6
- package/src/select-control/styles/select-control-styles.ts +10 -28
- package/src/slot-fill/index.tsx +5 -2
- package/src/slot-fill/types.ts +5 -0
- package/src/snackbar/README.md +0 -6
- package/src/snackbar/stories/index.story.tsx +7 -5
- package/src/snackbar/style.scss +4 -3
- package/src/snackbar/types.ts +2 -1
- package/src/spacer/README.md +0 -2
- package/src/tab-panel/README.md +0 -5
- package/src/tab-panel/test/index.tsx +39 -56
- package/src/tabs/styles.ts +7 -1
- package/src/tabs/tabpanel.tsx +7 -6
- package/src/tabs/test/index.tsx +56 -0
- package/src/text-control/README.md +0 -6
- package/src/textarea-control/README.md +0 -6
- package/src/toggle-group-control/test/__snapshots__/index.tsx.snap +12 -16
- package/src/toggle-group-control/test/index.tsx +58 -45
- package/src/toggle-group-control/toggle-group-control/component.tsx +5 -4
- package/src/toggle-group-control/toggle-group-control/styles.ts +13 -19
- package/src/toggle-group-control/toggle-group-control-option/README.md +1 -1
- package/src/toggle-group-control/toggle-group-control-option-base/README.md +1 -1
- package/src/toggle-group-control/toggle-group-control-option-base/styles.ts +3 -2
- package/src/toggle-group-control/toggle-group-control-option-icon/README.md +1 -1
- package/src/toolbar/toolbar/README.md +0 -6
- package/src/tools-panel/test/index.tsx +12 -20
- package/src/tools-panel/tools-panel/README.md +7 -0
- package/src/tools-panel/tools-panel/component.tsx +2 -0
- package/src/tools-panel/tools-panel-header/README.md +7 -0
- package/src/tools-panel/tools-panel-header/component.tsx +20 -13
- package/src/tools-panel/types.ts +9 -0
- package/src/tooltip/index.tsx +1 -1
- package/src/tooltip/test/index.tsx +360 -256
- package/src/tree-grid/README.md +0 -4
- package/src/truncate/README.md +8 -0
- package/src/truncate/hook.ts +17 -10
- package/src/truncate/test/index.tsx +54 -27
- package/src/truncate/types.ts +4 -0
- package/src/unit-control/index.tsx +1 -1
- package/src/utils/strings.ts +30 -2
- package/src/utils/test/strings.js +96 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/build/dropdown-menu-v2-ariakit/index.js +0 -256
- package/build/dropdown-menu-v2-ariakit/index.js.map +0 -1
- package/build/dropdown-menu-v2-ariakit/styles.js +0 -180
- package/build/dropdown-menu-v2-ariakit/styles.js.map +0 -1
- package/build/dropdown-menu-v2-ariakit/types.js +0 -6
- package/build/dropdown-menu-v2-ariakit/types.js.map +0 -1
- package/build/mobile/keyboard-aware-flat-list/use-scroll-to-text-input.native.js.map +0 -1
- package/build-module/dropdown-menu-v2-ariakit/index.js +0 -237
- package/build-module/dropdown-menu-v2-ariakit/index.js.map +0 -1
- package/build-module/dropdown-menu-v2-ariakit/styles.js +0 -165
- package/build-module/dropdown-menu-v2-ariakit/styles.js.map +0 -1
- package/build-module/dropdown-menu-v2-ariakit/types.js +0 -2
- package/build-module/dropdown-menu-v2-ariakit/types.js.map +0 -1
- package/build-module/mobile/keyboard-aware-flat-list/use-scroll-to-text-input.native.js.map +0 -1
- package/build-types/dropdown-menu-v2-ariakit/index.d.ts +0 -20
- package/build-types/dropdown-menu-v2-ariakit/index.d.ts.map +0 -1
- package/build-types/dropdown-menu-v2-ariakit/stories/index.story.d.ts +0 -16
- package/build-types/dropdown-menu-v2-ariakit/stories/index.story.d.ts.map +0 -1
- package/build-types/dropdown-menu-v2-ariakit/styles.d.ts +0 -96
- package/build-types/dropdown-menu-v2-ariakit/styles.d.ts.map +0 -1
- package/build-types/dropdown-menu-v2-ariakit/test/index.d.ts.map +0 -1
- package/build-types/dropdown-menu-v2-ariakit/types.d.ts +0 -168
- package/build-types/dropdown-menu-v2-ariakit/types.d.ts.map +0 -1
- package/src/dropdown-menu-v2-ariakit/README.md +0 -331
- package/src/dropdown-menu-v2-ariakit/index.tsx +0 -383
- package/src/dropdown-menu-v2-ariakit/stories/index.story.tsx +0 -617
- package/src/dropdown-menu-v2-ariakit/styles.ts +0 -345
- package/src/dropdown-menu-v2-ariakit/test/index.tsx +0 -1108
- package/src/dropdown-menu-v2-ariakit/types.ts +0 -179
- /package/build-types/{dropdown-menu-v2-ariakit → composite}/test/index.d.ts +0 -0
|
@@ -2,23 +2,43 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* External dependencies
|
|
4
4
|
*/
|
|
5
|
-
import type * as
|
|
6
|
-
|
|
5
|
+
import type * as Ariakit from '@ariakit/react';
|
|
6
|
+
import type { Placement } from '@floating-ui/react-dom';
|
|
7
|
+
export interface DropdownMenuContext {
|
|
8
|
+
/**
|
|
9
|
+
* The ariakit store shared across all DropdownMenu subcomponents.
|
|
10
|
+
*/
|
|
11
|
+
store: Ariakit.MenuStore;
|
|
12
|
+
/**
|
|
13
|
+
* The variant used by the underlying menu popover.
|
|
14
|
+
*/
|
|
15
|
+
variant?: 'toolbar';
|
|
16
|
+
}
|
|
17
|
+
export interface DropdownMenuProps {
|
|
18
|
+
/**
|
|
19
|
+
* The trigger button.
|
|
20
|
+
*/
|
|
21
|
+
trigger: React.ReactElement;
|
|
22
|
+
/**
|
|
23
|
+
* The contents of the dropdown.
|
|
24
|
+
*/
|
|
25
|
+
children?: React.ReactNode;
|
|
7
26
|
/**
|
|
8
27
|
* The open state of the dropdown menu when it is initially rendered. Use when
|
|
9
|
-
*
|
|
28
|
+
* not wanting to control its open state.
|
|
10
29
|
*
|
|
30
|
+
* @default false
|
|
11
31
|
*/
|
|
12
|
-
defaultOpen?:
|
|
32
|
+
defaultOpen?: boolean;
|
|
13
33
|
/**
|
|
14
34
|
* The controlled open state of the dropdown menu. Must be used in conjunction
|
|
15
35
|
* with `onOpenChange`.
|
|
16
36
|
*/
|
|
17
|
-
open?:
|
|
37
|
+
open?: boolean;
|
|
18
38
|
/**
|
|
19
39
|
* Event handler called when the open state of the dropdown menu changes.
|
|
20
40
|
*/
|
|
21
|
-
onOpenChange?:
|
|
41
|
+
onOpenChange?: (open: boolean) => void;
|
|
22
42
|
/**
|
|
23
43
|
* The modality of the dropdown menu. When set to true, interaction with
|
|
24
44
|
* outside elements will be disabled and only menu content will be visible to
|
|
@@ -26,227 +46,123 @@ export type DropdownMenuProps = {
|
|
|
26
46
|
*
|
|
27
47
|
* @default true
|
|
28
48
|
*/
|
|
29
|
-
modal?:
|
|
49
|
+
modal?: boolean;
|
|
30
50
|
/**
|
|
31
|
-
* The
|
|
32
|
-
* Will be reversed when collisions occur and avoidCollisions is enabled.
|
|
51
|
+
* The placement of the dropdown menu popover.
|
|
33
52
|
*
|
|
34
|
-
* @default 'bottom'
|
|
53
|
+
* @default 'bottom-start' for root-level menus, 'right-start' for nested menus
|
|
35
54
|
*/
|
|
36
|
-
|
|
55
|
+
placement?: Placement;
|
|
37
56
|
/**
|
|
38
|
-
* The distance
|
|
57
|
+
* The distance between the popover and the anchor element.
|
|
39
58
|
*
|
|
40
|
-
* @default
|
|
59
|
+
* @default 8 for root-level menus, 16 for nested menus
|
|
41
60
|
*/
|
|
42
|
-
|
|
61
|
+
gutter?: number;
|
|
43
62
|
/**
|
|
44
|
-
* The
|
|
45
|
-
*
|
|
63
|
+
* The skidding of the popover along the anchor element. Can be set to
|
|
64
|
+
* negative values to make the popover shift to the opposite side.
|
|
46
65
|
*
|
|
47
|
-
* @default
|
|
66
|
+
* @default 0 for root-level menus, -8 for nested menus
|
|
48
67
|
*/
|
|
49
|
-
|
|
68
|
+
shift?: number;
|
|
50
69
|
/**
|
|
51
|
-
*
|
|
70
|
+
* Determines whether the menu popover will be hidden when the user presses
|
|
71
|
+
* the Escape key.
|
|
52
72
|
*
|
|
53
|
-
* @default
|
|
54
|
-
*/
|
|
55
|
-
alignOffset?: DropdownMenuPrimitive.DropdownMenuContentProps['alignOffset'];
|
|
56
|
-
/**
|
|
57
|
-
* The trigger button.
|
|
73
|
+
* @default `( event ) => { event.preventDefault(); return true; }`
|
|
58
74
|
*/
|
|
59
|
-
|
|
75
|
+
hideOnEscape?: boolean | ((event: KeyboardEvent | React.KeyboardEvent<Element>) => boolean);
|
|
76
|
+
}
|
|
77
|
+
export interface DropdownMenuGroupProps {
|
|
60
78
|
/**
|
|
61
|
-
* The contents of the dropdown
|
|
79
|
+
* The contents of the dropdown menu group.
|
|
62
80
|
*/
|
|
63
81
|
children: React.ReactNode;
|
|
64
|
-
}
|
|
65
|
-
export
|
|
82
|
+
}
|
|
83
|
+
export interface DropdownMenuItemProps {
|
|
66
84
|
/**
|
|
67
|
-
* The contents of the item.
|
|
85
|
+
* The contents of the menu item.
|
|
68
86
|
*/
|
|
69
87
|
children: React.ReactNode;
|
|
70
88
|
/**
|
|
71
|
-
* The contents of the item's prefix.
|
|
89
|
+
* The contents of the menu item's prefix.
|
|
72
90
|
*/
|
|
73
91
|
prefix?: React.ReactNode;
|
|
74
92
|
/**
|
|
75
|
-
* The contents of the item's suffix.
|
|
76
|
-
*
|
|
77
|
-
* @default The standard chevron icon for a submenu trigger.
|
|
93
|
+
* The contents of the menu item's suffix.
|
|
78
94
|
*/
|
|
79
95
|
suffix?: React.ReactNode;
|
|
80
|
-
};
|
|
81
|
-
export type DropdownSubMenuProps = {
|
|
82
|
-
/**
|
|
83
|
-
* The open state of the submenu when it is initially rendered. Use when you
|
|
84
|
-
* do not need to control its open state.
|
|
85
|
-
*/
|
|
86
|
-
defaultOpen?: DropdownMenuPrimitive.DropdownMenuSubProps['defaultOpen'];
|
|
87
96
|
/**
|
|
88
|
-
*
|
|
89
|
-
*
|
|
90
|
-
|
|
91
|
-
open?: DropdownMenuPrimitive.DropdownMenuSubProps['open'];
|
|
92
|
-
/**
|
|
93
|
-
* Event handler called when the open state of the submenu changes.
|
|
94
|
-
*/
|
|
95
|
-
onOpenChange?: DropdownMenuPrimitive.DropdownMenuSubProps['onOpenChange'];
|
|
96
|
-
/**
|
|
97
|
-
* When `true`, prevents the user from interacting with the item.
|
|
98
|
-
*/
|
|
99
|
-
disabled?: DropdownMenuPrimitive.DropdownMenuSubTriggerProps['disabled'];
|
|
100
|
-
/**
|
|
101
|
-
* Optional text used for typeahead purposes for the trigger. By default the typeahead
|
|
102
|
-
* behavior will use the `.textContent` of the trigger. Use this when the content
|
|
103
|
-
* is complex, or you have non-textual content inside.
|
|
104
|
-
*/
|
|
105
|
-
textValue?: DropdownMenuPrimitive.DropdownMenuSubTriggerProps['textValue'];
|
|
106
|
-
/**
|
|
107
|
-
* The contents rendered inside the trigger. The trigger should be
|
|
108
|
-
* an instance of the `DropdownSubMenuTriggerProps` component.
|
|
97
|
+
* Whether to hide the parent menu when the item is clicked.
|
|
98
|
+
*
|
|
99
|
+
* @default true
|
|
109
100
|
*/
|
|
110
|
-
|
|
101
|
+
hideOnClick?: boolean;
|
|
111
102
|
/**
|
|
112
|
-
*
|
|
103
|
+
* Determines if the element is disabled.
|
|
113
104
|
*/
|
|
114
|
-
|
|
115
|
-
}
|
|
116
|
-
export
|
|
105
|
+
disabled?: boolean;
|
|
106
|
+
}
|
|
107
|
+
export interface DropdownMenuCheckboxItemProps extends Omit<DropdownMenuItemProps, 'prefix' | 'hideOnClick'> {
|
|
117
108
|
/**
|
|
118
|
-
*
|
|
109
|
+
* Whether to hide the dropdown menu when the item is clicked.
|
|
119
110
|
*
|
|
120
111
|
* @default false
|
|
121
112
|
*/
|
|
122
|
-
|
|
113
|
+
hideOnClick?: boolean;
|
|
123
114
|
/**
|
|
124
|
-
*
|
|
125
|
-
* Calling `event.preventDefault` in this handler will prevent the dropdown
|
|
126
|
-
* menu from closing when selecting that item.
|
|
115
|
+
* The checkbox menu item's name.
|
|
127
116
|
*/
|
|
128
|
-
|
|
117
|
+
name: string;
|
|
129
118
|
/**
|
|
130
|
-
*
|
|
131
|
-
*
|
|
132
|
-
* is complex, or you have non-textual content inside.
|
|
119
|
+
* The checkbox item's value, useful when using multiple checkbox menu items
|
|
120
|
+
* associated to the same `name`.
|
|
133
121
|
*/
|
|
134
|
-
|
|
122
|
+
value?: string;
|
|
135
123
|
/**
|
|
136
|
-
* The
|
|
124
|
+
* The controlled checked state of the checkbox menu item.
|
|
137
125
|
*/
|
|
138
|
-
|
|
126
|
+
checked?: boolean;
|
|
139
127
|
/**
|
|
140
|
-
* The
|
|
128
|
+
* The checked state of the checkbox menu item when it is initially rendered.
|
|
129
|
+
* Use when not wanting to control its checked state.
|
|
141
130
|
*/
|
|
142
|
-
|
|
131
|
+
defaultChecked?: boolean;
|
|
143
132
|
/**
|
|
144
|
-
*
|
|
133
|
+
* Event handler called when the checked state of the checkbox menu item changes.
|
|
145
134
|
*/
|
|
146
|
-
|
|
147
|
-
}
|
|
148
|
-
export
|
|
135
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
136
|
+
}
|
|
137
|
+
export interface DropdownMenuRadioItemProps extends Omit<DropdownMenuItemProps, 'prefix' | 'hideOnClick'> {
|
|
149
138
|
/**
|
|
150
|
-
*
|
|
151
|
-
* Must be used in conjunction with `onCheckedChange`.
|
|
139
|
+
* Whether to hide the dropdown menu when the item is clicked.
|
|
152
140
|
*
|
|
153
141
|
* @default false
|
|
154
142
|
*/
|
|
155
|
-
|
|
143
|
+
hideOnClick?: boolean;
|
|
156
144
|
/**
|
|
157
|
-
*
|
|
145
|
+
* The radio item's name.
|
|
158
146
|
*/
|
|
159
|
-
|
|
147
|
+
name: string;
|
|
160
148
|
/**
|
|
161
|
-
*
|
|
149
|
+
* The radio item's value.
|
|
162
150
|
*/
|
|
163
|
-
|
|
151
|
+
value: string | number;
|
|
164
152
|
/**
|
|
165
|
-
*
|
|
166
|
-
* Calling `event.preventDefault` in this handler will prevent the dropdown
|
|
167
|
-
* menu from closing when selecting that item.
|
|
153
|
+
* The controlled checked state of the radio menu item.
|
|
168
154
|
*/
|
|
169
|
-
|
|
155
|
+
checked?: boolean;
|
|
170
156
|
/**
|
|
171
|
-
*
|
|
172
|
-
*
|
|
173
|
-
* is complex, or you have non-textual content inside.
|
|
157
|
+
* The checked state of the radio menu item when it is initially rendered.
|
|
158
|
+
* Use when not wanting to control its checked state.
|
|
174
159
|
*/
|
|
175
|
-
|
|
160
|
+
defaultChecked?: boolean;
|
|
176
161
|
/**
|
|
177
|
-
*
|
|
162
|
+
* Event handler called when the checked radio menu item changes.
|
|
178
163
|
*/
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
suffix?: React.ReactNode;
|
|
184
|
-
};
|
|
185
|
-
export type DropdownMenuRadioGroupProps = {
|
|
186
|
-
/**
|
|
187
|
-
* The value of the selected item in the group.
|
|
188
|
-
*/
|
|
189
|
-
value?: DropdownMenuPrimitive.DropdownMenuRadioGroupProps['value'];
|
|
190
|
-
/**
|
|
191
|
-
* Event handler called when the value changes.
|
|
192
|
-
*/
|
|
193
|
-
onValueChange?: DropdownMenuPrimitive.DropdownMenuRadioGroupProps['onValueChange'];
|
|
194
|
-
/**
|
|
195
|
-
* The contents of the radio group
|
|
196
|
-
*/
|
|
197
|
-
children: React.ReactNode;
|
|
198
|
-
};
|
|
199
|
-
export type DropdownMenuRadioItemProps = {
|
|
200
|
-
/**
|
|
201
|
-
* The unique value of the item.
|
|
202
|
-
*/
|
|
203
|
-
value: DropdownMenuPrimitive.DropdownMenuRadioItemProps['value'];
|
|
204
|
-
/**
|
|
205
|
-
* When `true`, prevents the user from interacting with the item.
|
|
206
|
-
*/
|
|
207
|
-
disabled?: DropdownMenuPrimitive.DropdownMenuRadioItemProps['disabled'];
|
|
208
|
-
/**
|
|
209
|
-
* Event handler called when the user selects an item (via mouse or keyboard).
|
|
210
|
-
* Calling `event.preventDefault` in this handler will prevent the dropdown
|
|
211
|
-
* menu from closing when selecting that item.
|
|
212
|
-
*/
|
|
213
|
-
onSelect?: DropdownMenuPrimitive.DropdownMenuRadioItemProps['onSelect'];
|
|
214
|
-
/**
|
|
215
|
-
* Optional text used for typeahead purposes. By default the typeahead
|
|
216
|
-
* behavior will use the `.textContent` of the item. Use this when the content
|
|
217
|
-
* is complex, or you have non-textual content inside.
|
|
218
|
-
*/
|
|
219
|
-
textValue?: DropdownMenuPrimitive.DropdownMenuRadioItemProps['textValue'];
|
|
220
|
-
/**
|
|
221
|
-
* The contents of the radio item
|
|
222
|
-
*/
|
|
223
|
-
children: React.ReactNode;
|
|
224
|
-
/**
|
|
225
|
-
* The contents of the radio item's suffix
|
|
226
|
-
*/
|
|
227
|
-
suffix?: React.ReactNode;
|
|
228
|
-
};
|
|
229
|
-
export type DropdownMenuLabelProps = {
|
|
230
|
-
/**
|
|
231
|
-
* The contents of the label
|
|
232
|
-
*/
|
|
233
|
-
children: React.ReactNode;
|
|
234
|
-
};
|
|
235
|
-
export type DropdownMenuGroupProps = {
|
|
236
|
-
/**
|
|
237
|
-
* The contents of the group
|
|
238
|
-
*/
|
|
239
|
-
children: React.ReactNode;
|
|
240
|
-
};
|
|
241
|
-
export type DropdownMenuSeparatorProps = {};
|
|
242
|
-
export type DropdownMenuInternalContext = {
|
|
243
|
-
/**
|
|
244
|
-
* This variant can be used to change the appearance of the component in
|
|
245
|
-
* specific contexts, ie. when rendered inside the `Toolbar` component.
|
|
246
|
-
*/
|
|
247
|
-
variant?: 'toolbar';
|
|
248
|
-
};
|
|
249
|
-
export type DropdownMenuPrivateContext = Pick<DropdownMenuInternalContext, 'variant'> & {
|
|
250
|
-
portalContainer?: HTMLElement | null;
|
|
251
|
-
};
|
|
164
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
165
|
+
}
|
|
166
|
+
export interface DropdownMenuSeparatorProps {
|
|
167
|
+
}
|
|
252
168
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/dropdown-menu-v2/types.ts"],"names":[],"mappings":";AAAA;;GAEG;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/dropdown-menu-v2/types.ts"],"names":[],"mappings":";AAAA;;GAEG;AAEH,OAAO,KAAK,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAExD,MAAM,WAAW,mBAAmB;IACnC;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC,SAAS,CAAC;IACzB;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;CACpB;AAED,MAAM,WAAW,iBAAiB;IACjC;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,YAAY,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;;;;OAKG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,YAAY,CAAC,EAAE,CAAE,IAAI,EAAE,OAAO,KAAM,IAAI,CAAC;IACzC;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;;OAIG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;OAKG;IACH,YAAY,CAAC,EACV,OAAO,GACP,C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cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAE,KAAK,EAAE,KAAK,CAAC,WAAW,CAAE,gBAAgB,CAAE,KAAM,IAAI,CAAC;CACpE;AAED,MAAM,WAAW,0BAA0B;CAAG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"duotone-picker.d.ts","sourceRoot":"","sources":["../../src/duotone-picker/duotone-picker.tsx"],"names":[],"mappings":";AAqBA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,iBAAS,aAAa,CAAE,EACvB,SAAS,EACT,IAAI,EACJ,SAAgB,EAChB,SAAgB,EAChB,YAAY,EACZ,cAAc,EACd,mBAAmB,EACnB,oBAAoB,EACpB,KAAK,EACL,QAAQ,EACR,YAAY,EAAE,SAAS,EACvB,iBAAiB,EAAE,cAAc,EACjC,GAAG,UAAU,EACb,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"duotone-picker.d.ts","sourceRoot":"","sources":["../../src/duotone-picker/duotone-picker.tsx"],"names":[],"mappings":";AAqBA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,iBAAS,aAAa,CAAE,EACvB,SAAS,EACT,IAAI,EACJ,SAAgB,EAChB,SAAgB,EAChB,YAAY,EACZ,cAAc,EACd,mBAAmB,EACnB,oBAAoB,EACpB,KAAK,EACL,QAAQ,EACR,YAAY,EAAE,SAAS,EACvB,iBAAiB,EAAE,cAAc,EACjC,GAAG,UAAU,EACb,EAAE,kBAAkB,eA+IpB;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/font-size-picker/index.tsx"],"names":[],"mappings":";AA0BA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/font-size-picker/index.tsx"],"names":[],"mappings":";AA0BA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAsRnD,eAAO,MAAM,cAAc,qGAA0C,CAAC;AAEtE,eAAe,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/form-token-field/index.tsx"],"names":[],"mappings":";AAsBA,OAAO,KAAK,EAAE,mBAAmB,EAAa,MAAM,SAAS,CAAC;AAW9D;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAAE,KAAK,EAAE,mBAAmB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/form-token-field/index.tsx"],"names":[],"mappings":";AAsBA,OAAO,KAAK,EAAE,mBAAmB,EAAa,MAAM,SAAS,CAAC;AAW9D;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAAE,KAAK,EAAE,mBAAmB,eA6sBzD;AAED,eAAe,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"token.d.ts","sourceRoot":"","sources":["../../src/form-token-field/token.tsx"],"names":[],"mappings":";AAiBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAI1C,MAAM,CAAC,OAAO,UAAU,KAAK,CAAE,EAC9B,KAAK,EACL,MAAM,EACN,KAAK,EACL,gBAAgB,EAChB,YAAoB,EACpB,QAAgB,EAChB,aAAoB,EACpB,YAAY,EACZ,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,UAAU,GACV,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"token.d.ts","sourceRoot":"","sources":["../../src/form-token-field/token.tsx"],"names":[],"mappings":";AAiBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAI1C,MAAM,CAAC,OAAO,UAAU,KAAK,CAAE,EAC9B,KAAK,EACL,MAAM,EACN,KAAK,EACL,gBAAgB,EAChB,YAAoB,EACpB,QAAgB,EAChB,aAAoB,EACpB,YAAY,EACZ,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,UAAU,GACV,EAAE,UAAU,eAgDZ"}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* External dependencies
|
|
3
|
+
*/
|
|
4
|
+
import type { SerializedStyles } from '@emotion/react';
|
|
1
5
|
import type { CSSProperties, ReactNode } from 'react';
|
|
2
6
|
/**
|
|
3
7
|
* Internal dependencies
|
|
@@ -32,6 +36,7 @@ type InputProps = {
|
|
|
32
36
|
paddingInlineStart?: CSSProperties['paddingInlineStart'];
|
|
33
37
|
paddingInlineEnd?: CSSProperties['paddingInlineEnd'];
|
|
34
38
|
};
|
|
39
|
+
export declare const fontSizeStyles: ({ inputSize: size }: InputProps) => "" | SerializedStyles;
|
|
35
40
|
export declare const getSizeConfig: ({ inputSize: size, __next40pxDefaultSize, }: InputProps) => {
|
|
36
41
|
height: number;
|
|
37
42
|
lineHeight: number;
|
|
@@ -50,6 +55,12 @@ export declare const getSizeConfig: ({ inputSize: size, __next40pxDefaultSize, }
|
|
|
50
55
|
minHeight: number;
|
|
51
56
|
paddingLeft: string | undefined;
|
|
52
57
|
paddingRight: string | undefined;
|
|
58
|
+
} | {
|
|
59
|
+
height: number;
|
|
60
|
+
lineHeight: number;
|
|
61
|
+
minHeight: number;
|
|
62
|
+
paddingLeft: string | undefined;
|
|
63
|
+
paddingRight: string | undefined;
|
|
53
64
|
};
|
|
54
65
|
export declare const Input: import("@emotion/styled").StyledComponent<{
|
|
55
66
|
theme?: import("@emotion/react").Theme | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-control-styles.d.ts","sourceRoot":"","sources":["../../../src/input-control/styles/input-control-styles.tsx"],"names":[],"mappings":"
|
|
1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;;;;;;;;;CAsCZ,CAAC;AA+CF,eAAO,MAAM,KAAK;;;+HAuBjB,CAAC;AAmBF,eAAO,MAAM,KAAK,UACV,wBACN;IAAE,aAAa,CAAC,EAAE,aAAa,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,EACtD,OAAO,EACP,KAAK,CACL,gBACwC,CAAC;AAE3C,eAAO,MAAM,YAAY;;;;UAExB,CAAC;AAEF,KAAK,aAAa,GAAG;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAiCF,eAAO,MAAM,UAAU;;;yHAgBtB,CAAC;AAEF,eAAO,MAAM,MAAM;;;2GAGlB,CAAC;AAEF,eAAO,MAAM,MAAM;;;2GAKlB,CAAC"}
|
|
@@ -13,7 +13,7 @@ import type { BaseControlProps } from '../base-control/types';
|
|
|
13
13
|
export type LabelPosition = 'top' | 'bottom' | 'side' | 'edge';
|
|
14
14
|
export type DragDirection = 'n' | 's' | 'e' | 'w';
|
|
15
15
|
export type DragProps = Parameters<Parameters<typeof useDrag>[0]>[0];
|
|
16
|
-
export type Size = 'default' | 'small' | '__unstable-large';
|
|
16
|
+
export type Size = 'default' | 'small' | 'compact' | '__unstable-large';
|
|
17
17
|
interface BaseProps {
|
|
18
18
|
/**
|
|
19
19
|
* Deprecated. Use `__next40pxDefaultSize` instead.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/input-control/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EACX,aAAa,EACb,SAAS,EACT,cAAc,EACd,sBAAsB,EACtB,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAA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CAAE,eAAe,CAAE,CAAC;IAC7C,IAAI,CAAC,EAAE,SAAS,CAAE,MAAM,CAAE,CAAC;CAC3B;AAED,MAAM,MAAM,8BAA8B,GAAG;IAC5C;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG;IAC5C;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;CACpB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lock-unlock.d.ts","sourceRoot":"","sources":["../src/lock-unlock.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/mobile/image/constants.js"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/modal/index.tsx"],"names":[],"mappings":";AA0CA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/modal/index.tsx"],"names":[],"mappings":";AA0CA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAmU1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,eAAO,MAAM,KAAK,uGAAiC,CAAC;AAEpD,eAAe,KAAK,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../src/navigator/navigator-provider/component.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../src/navigator/navigator-provider/component.tsx"],"names":[],"mappings":";AA4BA,OAAO,KAAK,EACX,sBAAsB,EAItB,MAAM,UAAU,CAAC;AAsOlB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,iBAAiB,sHAG7B,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { MotionProps } from 'framer-motion';
|
|
3
|
-
/**
|
|
4
|
-
* Internal dependencies
|
|
5
|
-
*/
|
|
6
|
-
import type { WordPressComponentProps } from '../../context';
|
|
7
2
|
import type { NavigatorScreenProps } from '../types';
|
|
8
|
-
type Props = Omit<WordPressComponentProps<NavigatorScreenProps, 'div', false>, Exclude<keyof MotionProps, 'style' | 'children'>>;
|
|
9
3
|
/**
|
|
10
4
|
* The `NavigatorScreen` component represents a single view/screen/panel and
|
|
11
5
|
* should be used in combination with the `NavigatorProvider`, the
|
|
@@ -40,6 +34,6 @@ type Props = Omit<WordPressComponentProps<NavigatorScreenProps, 'div', false>, E
|
|
|
40
34
|
* );
|
|
41
35
|
* ```
|
|
42
36
|
*/
|
|
43
|
-
export declare const NavigatorScreen: import("../../context").WordPressComponent<
|
|
37
|
+
export declare const NavigatorScreen: import("../../context").WordPressComponent<"div", NavigatorScreenProps & import("react").RefAttributes<any>, false>;
|
|
44
38
|
export default NavigatorScreen;
|
|
45
39
|
//# sourceMappingURL=component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../src/navigator/navigator-screen/component.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../src/navigator/navigator-screen/component.tsx"],"names":[],"mappings":";AA6BA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAiHrD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,eAAO,MAAM,eAAe,qHAG3B,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const navigatorProviderWrapper: import("@emotion/utils").SerializedStyles;
|
|
2
|
+
type NavigatorScreenAnimationProps = {
|
|
3
|
+
isInitial?: boolean;
|
|
4
|
+
isBack?: boolean;
|
|
5
|
+
isRTL: boolean;
|
|
6
|
+
};
|
|
7
|
+
export declare const navigatorScreen: (props: NavigatorScreenAnimationProps) => import("@emotion/utils").SerializedStyles;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/navigator/styles.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,wBAAwB,2CAQpC,CAAC;AAkBF,KAAK,6BAA6B,GAAG;IACpC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,OAAO,CAAC;CACf,CAAC;AA4BF,eAAO,MAAM,eAAe,UAAY,6BAA6B,8CAOpE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/number-control/index.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/number-control/index.tsx"],"names":[],"mappings":";AAmRA,eAAO,MAAM,aAAa;;;;;;;;;;;;;48KAAyC,CAAC;AAEpE,eAAe,aAAa,CAAC"}
|
|
@@ -11,7 +11,7 @@ export type NumberControlProps = Omit<InputControlProps, 'isDragEnabled' | 'min'
|
|
|
11
11
|
*/
|
|
12
12
|
hideHTMLArrows?: boolean;
|
|
13
13
|
/**
|
|
14
|
-
* The type of spin controls to display. These are
|
|
14
|
+
* The type of spin controls to display. These are buttons that allow the
|
|
15
15
|
* user to quickly increment and decrement the number.
|
|
16
16
|
*
|
|
17
17
|
* - 'none' - Do not show spin controls.
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
3
|
-
export declare const DEFAULT_COLOR = "#000";
|
|
2
|
+
import type { PaletteEditProps, PaletteElement } from './types';
|
|
4
3
|
/**
|
|
5
|
-
* Returns a
|
|
6
|
-
* To ensure there are no duplicate ids, this function checks all slugs
|
|
4
|
+
* Returns a name for a palette item in the format "Color + id".
|
|
5
|
+
* To ensure there are no duplicate ids, this function checks all slugs.
|
|
7
6
|
* It expects slugs to be in the format: slugPrefix + color- + number.
|
|
8
7
|
* It then sets the id component of the new name based on the incremented id of the highest existing slug id.
|
|
9
8
|
*
|
|
@@ -13,10 +12,6 @@ export declare const DEFAULT_COLOR = "#000";
|
|
|
13
12
|
* @return A unique name for a palette item.
|
|
14
13
|
*/
|
|
15
14
|
export declare function getNameForPosition(elements: PaletteElement[], slugPrefix: string): string;
|
|
16
|
-
/**
|
|
17
|
-
* Checks if a color or gradient is a temporary element by testing against default values.
|
|
18
|
-
*/
|
|
19
|
-
export declare function isTemporaryElement(slugPrefix: string, { slug, color, gradient }: Color | Gradient): Boolean;
|
|
20
15
|
/**
|
|
21
16
|
* Allows editing a palette of colors or gradients.
|
|
22
17
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/palette-edit/index.tsx"],"names":[],"mappings":";AAmDA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/palette-edit/index.tsx"],"names":[],"mappings":";AAmDA,OAAO,KAAK,EAOX,gBAAgB,EAChB,cAAc,EACd,MAAM,SAAS,CAAC;AAejB;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CACjC,QAAQ,EAAE,cAAc,EAAE,EAC1B,UAAU,EAAE,MAAM,UAqBlB;AAqOD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,WAAW,CAAE,EAC5B,SAAS,EACT,MAAoB,EACpB,QAAQ,EACR,YAAY,EACZ,wBAA4B,EAC5B,YAAY,EACZ,mBAAmB,EACnB,QAAQ,EACR,UAAe,EACf,YAAY,GACZ,EAAE,gBAAgB,eA8OlB;AAED,eAAe,WAAW,CAAC"}
|
|
@@ -30,6 +30,6 @@ export declare const SLOT_NAME = "Popover";
|
|
|
30
30
|
* ```
|
|
31
31
|
*
|
|
32
32
|
*/
|
|
33
|
-
export declare const Popover: import("../context").WordPressComponent<import("react").ElementType<any
|
|
33
|
+
export declare const Popover: import("../context").WordPressComponent<import("react").ElementType<any> | null, Omit<WordPressComponentProps<PopoverProps, "div", false>, "style" | "transition" | "inherit" | "initial" | "onDrag" | "onDragEnd" | "onDragStart" | "onAnimationStart" | "layout" | "drag" | "exit" | "custom" | "viewport" | "transformTemplate" | "transformValues" | "variants" | "onBeforeLayoutMeasure" | "onLayoutMeasure" | "onUpdate" | "onAnimationComplete" | "onPan" | "onPanStart" | "onPanSessionStart" | "onPanEnd" | "onTap" | "onTapStart" | "onTapCancel" | "whileTap" | "whileHover" | "onHoverStart" | "onHoverEnd" | "whileFocus" | "whileInView" | "onViewportEnter" | "onViewportLeave" | "whileDrag" | "dragDirectionLock" | "dragPropagation" | "dragConstraints" | "dragElastic" | "dragMomentum" | "dragTransition" | "dragControls" | "dragSnapToOrigin" | "dragListener" | "onMeasureDragConstraints" | "_dragX" | "_dragY" | "onDirectionLock" | "onDragTransitionEnd" | "layoutId" | "onLayoutAnimationStart" | "onLayoutAnimationComplete" | "layoutDependency" | "layoutScroll" | "layoutRoot" | "ignoreStrict"> & import("react").RefAttributes<any>, boolean>;
|
|
34
34
|
export default Popover;
|
|
35
35
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/popover/index.tsx"],"names":[],"mappings":";AA4DA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,KAAK,EACX,YAAY,EAGZ,MAAM,SAAS,CAAC;AAIjB;;;;GAIG;AACH,eAAO,MAAM,SAAS,YAAY,CAAC;AAobnC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/popover/index.tsx"],"names":[],"mappings":";AA4DA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,KAAK,EACX,YAAY,EAGZ,MAAM,SAAS,CAAC;AAIjB;;;;GAIG;AACH,eAAO,MAAM,SAAS,YAAY,CAAC;AAobnC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,OAAO,knCAAkD,CAAC;AAqBvE,eAAe,OAAO,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
declare const _default: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: import("../../../context").WordPressComponent<import("react").ElementType<any
|
|
4
|
+
component: import("../../../context").WordPressComponent<import("react").ElementType<any> | null, Omit<import("../../../context").WordPressComponentProps<import("../../types").PopoverProps, "div", false>, "style" | "transition" | "inherit" | "initial" | "onDrag" | "onDragEnd" | "onDragStart" | "onAnimationStart" | "layout" | "drag" | "exit" | "custom" | "viewport" | "transformTemplate" | "transformValues" | "variants" | "onBeforeLayoutMeasure" | "onLayoutMeasure" | "onUpdate" | "onAnimationComplete" | "onPan" | "onPanStart" | "onPanSessionStart" | "onPanEnd" | "onTap" | "onTapStart" | "onTapCancel" | "whileTap" | "whileHover" | "onHoverStart" | "onHoverEnd" | "whileFocus" | "whileInView" | "onViewportEnter" | "onViewportLeave" | "whileDrag" | "dragDirectionLock" | "dragPropagation" | "dragConstraints" | "dragElastic" | "dragMomentum" | "dragTransition" | "dragControls" | "dragSnapToOrigin" | "dragListener" | "onMeasureDragConstraints" | "_dragX" | "_dragY" | "onDirectionLock" | "onDragTransitionEnd" | "layoutId" | "onLayoutAnimationStart" | "onLayoutAnimationComplete" | "layoutDependency" | "layoutScroll" | "layoutRoot" | "ignoreStrict"> & import("react").RefAttributes<any>, boolean>;
|
|
5
5
|
};
|
|
6
6
|
export default _default;
|
|
7
7
|
export declare const Default: () => JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"private-apis.d.ts","sourceRoot":"","sources":["../src/private-apis.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"private-apis.d.ts","sourceRoot":"","sources":["../src/private-apis.ts"],"names":[],"mappings":"AAmCA,eAAO,MAAM,WAAW,IAAK,CAAC"}
|