@wordpress/components 37.0.1-next.v.202607070741.0 → 39.0.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/AGENTS.md +2 -2
- package/CHANGELOG.md +117 -1
- package/CONTRIBUTING.md +2 -6
- package/README.md +0 -10
- package/build/alignment-matrix-control/cell.cjs.map +2 -2
- package/build/alignment-matrix-control/icon.cjs.map +2 -2
- package/build/alignment-matrix-control/index.cjs.map +2 -2
- package/build/alignment-matrix-control/utils.cjs.map +2 -2
- package/build/angle-picker-control/angle-circle.cjs.map +2 -2
- package/build/angle-picker-control/index.cjs +0 -1
- package/build/angle-picker-control/index.cjs.map +2 -2
- package/build/animate/index.cjs +5 -0
- package/build/animate/index.cjs.map +3 -3
- package/build/autocomplete/autocompleter-ui.cjs.map +2 -2
- package/build/autocomplete/get-autocomplete-match.cjs.map +2 -2
- package/build/autocomplete/get-default-use-items.cjs.map +2 -2
- package/build/autocomplete/index.cjs +7 -6
- package/build/autocomplete/index.cjs.map +3 -3
- package/build/badge/index.cjs.map +2 -2
- package/build/base-control/hooks.cjs.map +2 -2
- package/build/base-control/index.cjs.map +2 -2
- package/build/base-control/styles/base-control-styles.cjs +6 -6
- package/build/base-control/styles/base-control-styles.cjs.map +2 -2
- package/build/border-box-control/border-box-control/component.cjs.map +2 -2
- package/build/border-box-control/border-box-control/hook.cjs.map +2 -2
- package/build/border-box-control/border-box-control-linked-button/component.cjs.map +2 -2
- package/build/border-box-control/border-box-control-linked-button/hook.cjs.map +2 -2
- package/build/border-box-control/border-box-control-split-controls/component.cjs.map +2 -2
- package/build/border-box-control/border-box-control-split-controls/hook.cjs.map +2 -2
- package/build/border-box-control/border-box-control-visualizer/component.cjs.map +2 -2
- package/build/border-box-control/border-box-control-visualizer/hook.cjs.map +2 -2
- package/build/border-box-control/styles.cjs +9 -9
- package/build/border-box-control/styles.cjs.map +2 -2
- package/build/border-box-control/utils.cjs.map +2 -2
- package/build/border-control/border-control/component.cjs.map +2 -2
- package/build/border-control/border-control/hook.cjs.map +2 -2
- package/build/border-control/border-control-dropdown/component.cjs.map +2 -2
- package/build/border-control/border-control-dropdown/hook.cjs.map +2 -2
- package/build/border-control/border-control-style-picker/component.cjs.map +2 -2
- package/build/border-control/styles.cjs +14 -14
- package/build/border-control/styles.cjs.map +2 -2
- package/build/box-control/box-input-control.cjs.map +2 -2
- package/build/box-control/icon.cjs.map +2 -2
- package/build/box-control/index.cjs.map +2 -2
- package/build/box-control/linked-button.cjs.map +2 -2
- package/build/box-control/styles/box-control-icon-styles.cjs +10 -10
- package/build/box-control/styles/box-control-icon-styles.cjs.map +2 -2
- package/build/box-control/styles/box-control-styles.cjs +6 -6
- package/build/box-control/styles/box-control-styles.cjs.map +2 -2
- package/build/box-control/utils.cjs.map +2 -2
- package/build/button/deprecated.cjs.map +2 -2
- package/build/button/index.cjs.map +2 -2
- package/build/button-group/index.cjs.map +2 -2
- package/build/card/card/component.cjs +1 -1
- package/build/card/card/component.cjs.map +2 -2
- package/build/card/card/hook.cjs.map +2 -2
- package/build/card/card-body/component.cjs.map +2 -2
- package/build/card/card-body/hook.cjs.map +2 -2
- package/build/card/card-divider/component.cjs.map +2 -2
- package/build/card/card-divider/hook.cjs.map +2 -2
- package/build/card/card-footer/component.cjs.map +2 -2
- package/build/card/card-footer/hook.cjs.map +2 -2
- package/build/card/card-header/component.cjs.map +2 -2
- package/build/card/card-header/hook.cjs.map +2 -2
- package/build/card/card-media/component.cjs.map +2 -2
- package/build/card/card-media/hook.cjs.map +2 -2
- package/build/card/get-padding-by-size.cjs +6 -6
- package/build/card/get-padding-by-size.cjs.map +2 -2
- package/build/card/styles.cjs +16 -16
- package/build/card/styles.cjs.map +2 -2
- package/build/checkbox-control/index.cjs.map +2 -2
- package/build/circular-option-picker/circular-option-picker-actions.cjs.map +2 -2
- package/build/circular-option-picker/circular-option-picker-context.cjs.map +2 -2
- package/build/circular-option-picker/circular-option-picker-option-group.cjs.map +2 -2
- package/build/circular-option-picker/circular-option-picker-option.cjs.map +2 -2
- package/build/circular-option-picker/circular-option-picker.cjs.map +2 -2
- package/build/circular-option-picker/index.cjs.map +2 -2
- package/build/circular-option-picker/utils.cjs.map +2 -2
- package/build/clipboard-button/index.cjs.map +2 -2
- package/build/color-indicator/index.cjs.map +2 -2
- package/build/color-palette/index.cjs.map +2 -2
- package/build/color-palette/styles.cjs +1 -1
- package/build/color-palette/styles.cjs.map +2 -2
- package/build/color-palette/utils.cjs.map +2 -2
- package/build/color-picker/color-copy-button.cjs.map +2 -2
- package/build/color-picker/color-input.cjs.map +2 -2
- package/build/color-picker/component.cjs +14 -5
- package/build/color-picker/component.cjs.map +2 -2
- package/build/color-picker/hex-input.cjs +0 -1
- package/build/color-picker/hex-input.cjs.map +2 -2
- package/build/color-picker/hsl-input.cjs.map +2 -2
- package/build/color-picker/index.cjs.map +2 -2
- package/build/color-picker/input-with-slider.cjs +0 -1
- package/build/color-picker/input-with-slider.cjs.map +2 -2
- package/build/color-picker/legacy-adapter.cjs.map +2 -2
- package/build/color-picker/picker.cjs +95 -23
- package/build/color-picker/picker.cjs.map +2 -2
- package/build/color-picker/rgb-input.cjs.map +2 -2
- package/build/color-picker/styles.cjs +7 -7
- package/build/color-picker/styles.cjs.map +2 -2
- package/build/color-picker/use-deprecated-props.cjs.map +2 -2
- package/build/combobox-control/index.cjs +2 -2
- package/build/combobox-control/index.cjs.map +2 -2
- package/build/composite/context.cjs.map +2 -2
- package/build/composite/group-label.cjs.map +2 -2
- package/build/composite/group.cjs.map +2 -2
- package/build/composite/hover.cjs.map +2 -2
- package/build/composite/index.cjs.map +2 -2
- package/build/composite/item.cjs.map +2 -2
- package/build/composite/legacy/index.cjs.map +2 -2
- package/build/composite/row.cjs.map +2 -2
- package/build/composite/typeahead.cjs.map +2 -2
- package/build/confirm-dialog/component.cjs +86 -4
- package/build/confirm-dialog/component.cjs.map +3 -3
- package/build/confirm-dialog/docs-manifest.json +5 -0
- package/build/confirm-dialog/index.cjs.map +2 -2
- package/build/content-editable-control/docs-manifest.json +5 -0
- package/build/content-editable-control/index.cjs +181 -0
- package/build/content-editable-control/index.cjs.map +7 -0
- package/build/{calendar → content-editable-control}/types.cjs +1 -1
- package/build/{calendar → content-editable-control}/types.cjs.map +1 -1
- package/build/context/context-connect.cjs.map +2 -2
- package/build/context/context-system-provider.cjs.map +2 -2
- package/build/context/get-styled-class-name-from-key.cjs.map +2 -2
- package/build/context/use-context-system.cjs.map +2 -2
- package/build/context/utils.cjs.map +2 -2
- package/build/custom-gradient-picker/constants.cjs.map +2 -2
- package/build/custom-gradient-picker/gradient-bar/control-points.cjs.map +2 -2
- package/build/custom-gradient-picker/gradient-bar/index.cjs.map +2 -2
- package/build/custom-gradient-picker/gradient-bar/utils.cjs.map +2 -2
- package/build/custom-gradient-picker/index.cjs +1 -1
- package/build/custom-gradient-picker/index.cjs.map +2 -2
- package/build/custom-gradient-picker/serializer.cjs.map +2 -2
- package/build/custom-gradient-picker/styles/custom-gradient-picker-styles.cjs +2 -2
- package/build/custom-gradient-picker/styles/custom-gradient-picker-styles.cjs.map +2 -2
- package/build/custom-gradient-picker/utils.cjs.map +2 -2
- package/build/custom-select-control/index.cjs +1 -2
- package/build/custom-select-control/index.cjs.map +2 -2
- package/build/custom-select-control-v2/custom-select.cjs +0 -1
- package/build/custom-select-control-v2/custom-select.cjs.map +2 -2
- package/build/custom-select-control-v2/index.cjs.map +2 -2
- package/build/custom-select-control-v2/item.cjs.map +2 -2
- package/build/custom-select-control-v2/styles.cjs +9 -9
- package/build/custom-select-control-v2/styles.cjs.map +2 -2
- package/build/dashicon/index.cjs.map +2 -2
- package/build/date-time/date-picker/index.cjs.map +2 -2
- package/build/date-time/date-picker/styles.cjs +8 -8
- package/build/date-time/date-picker/styles.cjs.map +2 -2
- package/build/date-time/date-picker/use-lilius/index.cjs.map +2 -2
- package/build/date-time/date-time/index.cjs.map +2 -2
- package/build/date-time/date-time/styles.cjs +1 -1
- package/build/date-time/date-time/styles.cjs.map +2 -2
- package/build/date-time/index.cjs.map +2 -2
- package/build/date-time/time-picker/index.cjs +0 -2
- package/build/date-time/time-picker/index.cjs.map +2 -2
- package/build/date-time/time-picker/styles.cjs +11 -11
- package/build/date-time/time-picker/styles.cjs.map +2 -2
- package/build/date-time/time-picker/time-input/index.cjs +0 -2
- package/build/date-time/time-picker/time-input/index.cjs.map +2 -2
- package/build/date-time/time-picker/timezone.cjs.map +2 -2
- package/build/date-time/utils.cjs.map +2 -2
- package/build/disabled/index.cjs +88 -5
- package/build/disabled/index.cjs.map +4 -4
- package/build/disclosure/index.cjs.map +2 -2
- package/build/divider/component.cjs.map +2 -2
- package/build/draggable/index.cjs.map +2 -2
- package/build/drop-zone/index.cjs.map +2 -2
- package/build/drop-zone/provider.cjs.map +2 -2
- package/build/dropdown/dropdown-content-wrapper.cjs.map +2 -2
- package/build/dropdown/index.cjs.map +2 -2
- package/build/dropdown/styles.cjs +2 -2
- package/build/dropdown/styles.cjs.map +2 -2
- package/build/dropdown-menu/index.cjs.map +2 -2
- package/build/duotone-picker/color-list-picker/index.cjs +1 -1
- package/build/duotone-picker/color-list-picker/index.cjs.map +2 -2
- package/build/duotone-picker/custom-duotone-bar.cjs.map +2 -2
- package/build/duotone-picker/duotone-picker.cjs.map +2 -2
- package/build/duotone-picker/duotone-swatch.cjs.map +2 -2
- package/build/duotone-picker/utils.cjs.map +2 -2
- package/build/elevation/component.cjs.map +2 -2
- package/build/elevation/hook.cjs +5 -5
- package/build/elevation/hook.cjs.map +2 -2
- package/build/elevation/styles.cjs +1 -1
- package/build/elevation/styles.cjs.map +2 -2
- package/build/external-link/index.cjs.map +2 -2
- package/build/flex/context.cjs.map +2 -2
- package/build/flex/flex/component.cjs.map +2 -2
- package/build/flex/flex-block/component.cjs.map +2 -2
- package/build/flex/flex-block/hook.cjs.map +2 -2
- package/build/flex/flex-item/component.cjs.map +2 -2
- package/build/focal-point-picker/controls.cjs.map +2 -2
- package/build/focal-point-picker/focal-point.cjs.map +2 -2
- package/build/focal-point-picker/grid.cjs.map +2 -2
- package/build/focal-point-picker/index.cjs.map +2 -2
- package/build/focal-point-picker/media.cjs.map +2 -2
- package/build/focal-point-picker/styles/focal-point-picker-style.cjs +11 -11
- package/build/focal-point-picker/styles/focal-point-picker-style.cjs.map +2 -2
- package/build/focal-point-picker/styles/focal-point-style.cjs +1 -1
- package/build/focal-point-picker/styles/focal-point-style.cjs.map +2 -2
- package/build/focusable-iframe/index.cjs.map +2 -2
- package/build/font-size-picker/constants.cjs.map +2 -2
- package/build/font-size-picker/font-size-picker-select.cjs.map +2 -2
- package/build/font-size-picker/font-size-picker-toggle-group.cjs.map +2 -2
- package/build/font-size-picker/index.cjs.map +2 -2
- package/build/font-size-picker/styles.cjs +5 -5
- package/build/font-size-picker/styles.cjs.map +2 -2
- package/build/font-size-picker/utils.cjs.map +2 -2
- package/build/form-file-upload/index.cjs.map +2 -2
- package/build/form-toggle/index.cjs.map +2 -2
- package/build/form-token-field/index.cjs +89 -4
- package/build/form-token-field/index.cjs.map +3 -3
- package/build/form-token-field/suggestions-list.cjs.map +2 -2
- package/build/form-token-field/token-input.cjs.map +2 -2
- package/build/form-token-field/token.cjs.map +2 -2
- package/build/gradient-picker/index.cjs +26 -20
- package/build/gradient-picker/index.cjs.map +2 -2
- package/build/grid/component.cjs.map +2 -2
- package/build/grid/hook.cjs +1 -1
- package/build/grid/hook.cjs.map +2 -2
- package/build/grid/utils.cjs.map +2 -2
- package/build/guide/icons.cjs.map +2 -2
- package/build/guide/index.cjs.map +2 -2
- package/build/guide/page-control.cjs.map +2 -2
- package/build/guide/page.cjs.map +2 -2
- package/build/h-stack/component.cjs.map +2 -2
- package/build/h-stack/hook.cjs.map +2 -2
- package/build/h-stack/utils.cjs.map +2 -2
- package/build/heading/component.cjs.map +2 -2
- package/build/heading/hook.cjs +1 -1
- package/build/heading/hook.cjs.map +2 -2
- package/build/higher-order/navigate-regions/index.cjs.map +2 -2
- package/build/higher-order/with-constrained-tabbing/index.cjs.map +2 -2
- package/build/higher-order/with-fallback-styles/index.cjs.map +2 -2
- package/build/higher-order/with-filters/index.cjs.map +2 -2
- package/build/higher-order/with-focus-outside/index.cjs.map +2 -2
- package/build/higher-order/with-focus-return/index.cjs.map +2 -2
- package/build/higher-order/with-notices/index.cjs.map +2 -2
- package/build/higher-order/with-spoken-messages/index.cjs.map +2 -2
- package/build/icon/index.cjs +0 -1
- package/build/icon/index.cjs.map +2 -2
- package/build/input-control/backdrop.cjs.map +2 -2
- package/build/input-control/index.cjs +4 -14
- package/build/input-control/index.cjs.map +2 -2
- package/build/input-control/input-base.cjs +2 -6
- package/build/input-control/input-base.cjs.map +2 -2
- package/build/input-control/input-field.cjs +2 -2
- package/build/input-control/input-field.cjs.map +2 -2
- package/build/input-control/input-prefix-wrapper.cjs.map +2 -2
- package/build/input-control/input-suffix-wrapper.cjs.map +2 -2
- package/build/input-control/label.cjs.map +2 -2
- package/build/input-control/reducer/actions.cjs.map +2 -2
- package/build/input-control/reducer/reducer.cjs.map +2 -2
- package/build/input-control/reducer/state.cjs.map +2 -2
- package/build/input-control/styles/input-control-styles.cjs +25 -39
- package/build/input-control/styles/input-control-styles.cjs.map +2 -2
- package/build/input-control/utils.cjs +1 -1
- package/build/input-control/utils.cjs.map +2 -2
- package/build/isolated-event-container/index.cjs.map +2 -2
- package/build/item-group/context.cjs.map +2 -2
- package/build/item-group/item/component.cjs.map +2 -2
- package/build/item-group/item/hook.cjs +94 -7
- package/build/item-group/item/hook.cjs.map +4 -4
- package/build/item-group/item-group/component.cjs.map +2 -2
- package/build/item-group/item-group/hook.cjs +91 -4
- package/build/item-group/item-group/hook.cjs.map +4 -4
- package/build/keyboard-shortcuts/index.cjs.map +2 -2
- package/build/lock-unlock.cjs.map +2 -2
- package/build/menu/checkbox-item.cjs +7 -4
- package/build/menu/checkbox-item.cjs.map +2 -2
- package/build/menu/context.cjs.map +2 -2
- package/build/menu/group-label.cjs +2 -1
- package/build/menu/group-label.cjs.map +2 -2
- package/build/menu/group.cjs.map +2 -2
- package/build/menu/index.cjs.map +2 -2
- package/build/menu/item-help-text.cjs.map +2 -2
- package/build/menu/item-label.cjs.map +2 -2
- package/build/menu/item.cjs +5 -3
- package/build/menu/item.cjs.map +2 -2
- package/build/menu/popover.cjs.map +2 -2
- package/build/menu/radio-item.cjs +7 -4
- package/build/menu/radio-item.cjs.map +2 -2
- package/build/menu/separator.cjs.map +2 -2
- package/build/menu/styles.cjs +17 -17
- package/build/menu/styles.cjs.map +2 -2
- package/build/menu/submenu-trigger-item.cjs.map +2 -2
- package/build/menu/trigger-button.cjs.map +2 -2
- package/build/menu/use-menu-item-hide-on-click.cjs +66 -0
- package/build/menu/use-menu-item-hide-on-click.cjs.map +7 -0
- package/build/menu-group/index.cjs.map +2 -2
- package/build/menu-item/index.cjs.map +2 -2
- package/build/menu-items-choice/index.cjs.map +2 -2
- package/build/modal/index.cjs +2 -2
- package/build/modal/index.cjs.map +2 -2
- package/build/modal/use-modal-exit-animation.cjs.map +2 -2
- package/build/navigable-container/container.cjs.map +2 -2
- package/build/navigable-container/index.cjs.map +2 -2
- package/build/navigable-container/menu.cjs.map +2 -2
- package/build/navigable-container/tabbable.cjs.map +2 -2
- package/build/navigator/context.cjs.map +2 -2
- package/build/navigator/index.cjs.map +2 -2
- package/build/navigator/legacy.cjs.map +2 -2
- package/build/navigator/navigator/component.cjs.map +2 -2
- package/build/navigator/navigator-back-button/component.cjs.map +2 -2
- package/build/navigator/navigator-back-button/hook.cjs.map +2 -2
- package/build/navigator/navigator-button/component.cjs.map +2 -2
- package/build/navigator/navigator-button/hook.cjs.map +2 -2
- package/build/navigator/navigator-screen/component.cjs.map +2 -2
- package/build/navigator/navigator-screen/use-screen-animate-presence.cjs.map +2 -2
- package/build/navigator/navigator-to-parent-button/component.cjs.map +2 -2
- package/build/navigator/styles.cjs +7 -7
- package/build/navigator/styles.cjs.map +2 -2
- package/build/navigator/use-navigator.cjs.map +2 -2
- package/build/navigator/utils/router.cjs.map +2 -2
- package/build/notice/index.cjs.map +2 -2
- package/build/notice/list.cjs.map +2 -2
- package/build/number-control/index.cjs +1 -11
- package/build/number-control/index.cjs.map +2 -2
- package/build/number-control/styles/number-control-styles.cjs +4 -4
- package/build/number-control/styles/number-control-styles.cjs.map +2 -2
- package/build/palette-edit/index.cjs +2 -2
- package/build/palette-edit/index.cjs.map +2 -2
- package/build/palette-edit/styles.cjs +9 -9
- package/build/palette-edit/styles.cjs.map +2 -2
- package/build/panel/body.cjs.map +2 -2
- package/build/panel/header.cjs.map +2 -2
- package/build/panel/index.cjs.map +2 -2
- package/build/panel/row.cjs.map +2 -2
- package/build/placeholder/index.cjs.map +2 -2
- package/build/popover/index.cjs.map +2 -2
- package/build/popover/overlay-middlewares.cjs.map +2 -2
- package/build/popover/utils.cjs.map +2 -2
- package/build/private-apis.cjs +3 -16
- package/build/private-apis.cjs.map +3 -3
- package/build/progress-bar/index.cjs.map +2 -2
- package/build/progress-bar/styles.cjs +4 -4
- package/build/progress-bar/styles.cjs.map +2 -2
- package/build/query-controls/author-select.cjs.map +2 -2
- package/build/query-controls/index.cjs +1 -1
- package/build/query-controls/index.cjs.map +2 -2
- package/build/query-controls/terms.cjs.map +2 -2
- package/build/radio-control/index.cjs.map +2 -2
- package/build/radio-group/context.cjs.map +2 -2
- package/build/radio-group/index.cjs.map +2 -2
- package/build/radio-group/radio.cjs.map +2 -2
- package/build/range-control/index.cjs +0 -2
- package/build/range-control/index.cjs.map +2 -2
- package/build/range-control/input-range.cjs.map +2 -2
- package/build/range-control/mark.cjs.map +2 -2
- package/build/range-control/rail.cjs.map +2 -2
- package/build/range-control/styles/range-control-styles.cjs +25 -25
- package/build/range-control/styles/range-control-styles.cjs.map +2 -2
- package/build/range-control/tooltip.cjs.map +2 -2
- package/build/range-control/utils.cjs.map +2 -2
- package/build/resizable-box/index.cjs.map +2 -2
- package/build/resizable-box/resize-tooltip/index.cjs.map +2 -2
- package/build/resizable-box/resize-tooltip/label.cjs.map +2 -2
- package/build/resizable-box/resize-tooltip/styles/resize-tooltip.styles.cjs +4 -4
- package/build/resizable-box/resize-tooltip/styles/resize-tooltip.styles.cjs.map +2 -2
- package/build/resizable-box/resize-tooltip/utils.cjs.map +2 -2
- package/build/responsive-wrapper/index.cjs.map +2 -2
- package/build/sandbox/index.cjs +100 -73
- package/build/sandbox/index.cjs.map +3 -3
- package/build/scroll-lock/index.cjs.map +2 -2
- package/build/scrollable/component.cjs.map +2 -2
- package/build/scrollable/hook.cjs.map +2 -2
- package/build/scrollable/styles.cjs +7 -7
- package/build/scrollable/styles.cjs.map +2 -2
- package/build/search-control/index.cjs +93 -11
- package/build/search-control/index.cjs.map +4 -4
- package/build/select-control/chevron-down.cjs.map +2 -2
- package/build/select-control/index.cjs +0 -2
- package/build/select-control/index.cjs.map +2 -2
- package/build/select-control/styles/select-control-styles.cjs +9 -16
- package/build/select-control/styles/select-control-styles.cjs.map +2 -2
- package/build/shortcut/index.cjs.map +2 -2
- package/build/slot-fill/bubbles-virtually/slot.cjs.map +2 -2
- package/build/slot-fill/bubbles-virtually/use-slot-fills.cjs.map +2 -2
- package/build/slot-fill/bubbles-virtually/use-slot.cjs.map +2 -2
- package/build/slot-fill/context.cjs.map +2 -2
- package/build/slot-fill/fill.cjs.map +2 -2
- package/build/slot-fill/index.cjs.map +2 -2
- package/build/slot-fill/provider.cjs.map +2 -2
- package/build/slot-fill/slot.cjs.map +2 -2
- package/build/snackbar/index.cjs.map +2 -2
- package/build/snackbar/list.cjs.map +2 -2
- package/build/spacer/component.cjs.map +2 -2
- package/build/spacer/hook.cjs +150 -14
- package/build/spacer/hook.cjs.map +4 -4
- package/build/spinner/index.cjs +91 -5
- package/build/spinner/index.cjs.map +3 -3
- package/build/surface/component.cjs +15 -0
- package/build/surface/component.cjs.map +3 -3
- package/build/surface/hook.cjs.map +2 -2
- package/build/tab-panel/index.cjs.map +2 -2
- package/build/tabs/context.cjs.map +2 -2
- package/build/tabs/index.cjs.map +2 -2
- package/build/tabs/styles.cjs +5 -5
- package/build/tabs/styles.cjs.map +2 -2
- package/build/tabs/tab.cjs +1 -1
- package/build/tabs/tab.cjs.map +2 -2
- package/build/tabs/tablist.cjs.map +2 -2
- package/build/tabs/tabpanel.cjs +1 -1
- package/build/tabs/tabpanel.cjs.map +2 -2
- package/build/tabs/use-track-overflow.cjs.map +2 -2
- package/build/text/component.cjs.map +2 -2
- package/build/text/get-line-height.cjs.map +2 -2
- package/build/text/hook.cjs +5 -5
- package/build/text/hook.cjs.map +2 -2
- package/build/text/styles.cjs +7 -7
- package/build/text/styles.cjs.map +2 -2
- package/build/text/utils.cjs.map +2 -2
- package/build/text-control/index.cjs.map +2 -2
- package/build/text-highlight/index.cjs.map +2 -2
- package/build/textarea-control/index.cjs.map +2 -2
- package/build/textarea-control/styles/textarea-control-styles.cjs +3 -3
- package/build/textarea-control/styles/textarea-control-styles.cjs.map +2 -2
- package/build/tip/index.cjs.map +2 -2
- package/build/toggle-control/index.cjs.map +2 -2
- package/build/toggle-group-control/context.cjs.map +2 -2
- package/build/toggle-group-control/toggle-group-control/as-button-group.cjs.map +2 -2
- package/build/toggle-group-control/toggle-group-control/as-radio-group.cjs.map +2 -2
- package/build/toggle-group-control/toggle-group-control/component.cjs +91 -8
- package/build/toggle-group-control/toggle-group-control/component.cjs.map +4 -4
- package/build/toggle-group-control/toggle-group-control/utils.cjs.map +2 -2
- package/build/toggle-group-control/toggle-group-control-option/component.cjs.map +2 -2
- package/build/toggle-group-control/toggle-group-control-option-base/component.cjs +98 -17
- package/build/toggle-group-control/toggle-group-control-option-base/component.cjs.map +4 -4
- package/build/toggle-group-control/toggle-group-control-option-icon/component.cjs.map +2 -2
- package/build/toolbar/toolbar/index.cjs.map +2 -2
- package/build/toolbar/toolbar/toolbar-container.cjs.map +2 -2
- package/build/toolbar/toolbar-button/index.cjs.map +2 -2
- package/build/toolbar/toolbar-button/toolbar-button-container.cjs.map +2 -2
- package/build/toolbar/toolbar-context/index.cjs.map +2 -2
- package/build/toolbar/toolbar-dropdown-menu/index.cjs.map +2 -2
- package/build/toolbar/toolbar-group/index.cjs.map +2 -2
- package/build/toolbar/toolbar-group/toolbar-group-collapsed.cjs.map +2 -2
- package/build/toolbar/toolbar-group/toolbar-group-container.cjs.map +2 -2
- package/build/toolbar/toolbar-item/index.cjs.map +2 -2
- package/build/tools-panel/context.cjs.map +2 -2
- package/build/tools-panel/tools-panel/component.cjs +6 -0
- package/build/tools-panel/tools-panel/component.cjs.map +2 -2
- package/build/tools-panel/tools-panel/hook.cjs +87 -11
- package/build/tools-panel/tools-panel/hook.cjs.map +4 -4
- package/build/tools-panel/tools-panel-header/component.cjs +87 -2
- package/build/tools-panel/tools-panel-header/component.cjs.map +3 -3
- package/build/tools-panel/tools-panel-header/hook.cjs +90 -20
- package/build/tools-panel/tools-panel-header/hook.cjs.map +4 -4
- package/build/tools-panel/tools-panel-item/component.cjs.map +2 -2
- package/build/tools-panel/tools-panel-item/hook.cjs +88 -9
- package/build/tools-panel/tools-panel-item/hook.cjs.map +4 -4
- package/build/tree-grid/cell.cjs.map +2 -2
- package/build/tree-grid/index.cjs.map +2 -2
- package/build/tree-grid/item.cjs.map +2 -2
- package/build/tree-grid/roving-tab-index-context.cjs.map +2 -2
- package/build/tree-grid/roving-tab-index-item.cjs.map +2 -2
- package/build/tree-grid/roving-tab-index.cjs.map +2 -2
- package/build/tree-grid/row.cjs.map +2 -2
- package/build/tree-select/index.cjs.map +2 -2
- package/build/truncate/component.cjs.map +2 -2
- package/build/truncate/hook.cjs.map +2 -2
- package/build/truncate/utils.cjs.map +2 -2
- package/build/unit-control/index.cjs +0 -1
- package/build/unit-control/index.cjs.map +2 -2
- package/build/unit-control/styles/unit-control-styles.cjs +7 -7
- package/build/unit-control/styles/unit-control-styles.cjs.map +2 -2
- package/build/unit-control/unit-select-control.cjs.map +2 -2
- package/build/unit-control/utils.cjs.map +2 -2
- package/build/utils/base-label.cjs +1 -1
- package/build/utils/base-label.cjs.map +2 -2
- package/build/utils/box-sizing.cjs +1 -1
- package/build/utils/box-sizing.cjs.map +2 -2
- package/build/utils/breakpoint.cjs.map +2 -2
- package/build/utils/colors.cjs.map +2 -2
- package/build/utils/config-values.cjs +1 -4
- package/build/utils/config-values.cjs.map +2 -2
- package/build/utils/element-rect.cjs.map +2 -2
- package/build/utils/font-size.cjs.map +2 -2
- package/build/utils/font-values.cjs +1 -1
- package/build/utils/font-values.cjs.map +1 -1
- package/build/utils/font.cjs.map +2 -2
- package/build/utils/get-valid-children.cjs.map +2 -2
- package/build/utils/hooks/use-animated-offset-rect.cjs.map +2 -2
- package/build/utils/hooks/use-controlled-state.cjs.map +2 -2
- package/build/utils/hooks/use-controlled-value.cjs.map +2 -2
- package/build/utils/hooks/use-cx.cjs.map +2 -2
- package/build/utils/hooks/use-on-value-update.cjs.map +2 -2
- package/build/utils/hooks/use-update-effect.cjs.map +2 -2
- package/build/utils/polymorphic-element.cjs.map +2 -2
- package/build/utils/rtl.cjs +2 -2
- package/build/utils/rtl.cjs.map +2 -2
- package/build/utils/strings.cjs +0 -19
- package/build/utils/strings.cjs.map +2 -2
- package/build/utils/use-responsive-value.cjs.map +2 -2
- package/build/v-stack/component.cjs.map +2 -2
- package/build/v-stack/hook.cjs.map +2 -2
- package/build/validated-form-controls/components/combobox-control.cjs.map +2 -2
- package/build/validated-form-controls/components/content-editable-control.cjs +84 -0
- package/build/validated-form-controls/components/content-editable-control.cjs.map +7 -0
- package/build/validated-form-controls/components/custom-select-control.cjs.map +2 -2
- package/build/validated-form-controls/components/form-token-field.cjs.map +2 -2
- package/build/validated-form-controls/components/index.cjs +2 -10
- package/build/validated-form-controls/components/index.cjs.map +2 -2
- package/build/validated-form-controls/components/input-control.cjs +0 -1
- package/build/validated-form-controls/components/input-control.cjs.map +2 -2
- package/build/validated-form-controls/components/range-control.cjs.map +2 -2
- package/build/validated-form-controls/components/textarea-control.cjs.map +2 -2
- package/build/validated-form-controls/components/toggle-control.cjs.map +2 -2
- package/build/validated-form-controls/components/toggle-group-control.cjs.map +2 -2
- package/build/validated-form-controls/control-with-error.cjs +4 -4
- package/build/validated-form-controls/control-with-error.cjs.map +2 -2
- package/build/validated-form-controls/validity-indicator.cjs.map +2 -2
- package/build/view/component.cjs.map +2 -2
- package/build/visually-hidden/component.cjs.map +2 -2
- package/build/visually-hidden/styles.cjs.map +2 -2
- package/build/z-stack/component.cjs.map +2 -2
- package/build/z-stack/styles.cjs +4 -4
- package/build/z-stack/styles.cjs.map +2 -2
- package/build-module/alignment-matrix-control/cell.mjs.map +2 -2
- package/build-module/alignment-matrix-control/icon.mjs.map +2 -2
- package/build-module/alignment-matrix-control/index.mjs.map +2 -2
- package/build-module/alignment-matrix-control/utils.mjs.map +2 -2
- package/build-module/angle-picker-control/angle-circle.mjs.map +2 -2
- package/build-module/angle-picker-control/index.mjs +0 -1
- package/build-module/angle-picker-control/index.mjs.map +2 -2
- package/build-module/animate/index.mjs +5 -0
- package/build-module/animate/index.mjs.map +2 -2
- package/build-module/autocomplete/autocompleter-ui.mjs.map +2 -2
- package/build-module/autocomplete/get-autocomplete-match.mjs.map +2 -2
- package/build-module/autocomplete/get-default-use-items.mjs.map +2 -2
- package/build-module/autocomplete/index.mjs +9 -8
- package/build-module/autocomplete/index.mjs.map +2 -2
- package/build-module/badge/index.mjs.map +2 -2
- package/build-module/base-control/hooks.mjs.map +2 -2
- package/build-module/base-control/index.mjs.map +2 -2
- package/build-module/base-control/styles/base-control-styles.mjs +6 -6
- package/build-module/base-control/styles/base-control-styles.mjs.map +2 -2
- package/build-module/border-box-control/border-box-control/component.mjs.map +2 -2
- package/build-module/border-box-control/border-box-control/hook.mjs.map +2 -2
- package/build-module/border-box-control/border-box-control-linked-button/component.mjs.map +2 -2
- package/build-module/border-box-control/border-box-control-linked-button/hook.mjs.map +2 -2
- package/build-module/border-box-control/border-box-control-split-controls/component.mjs.map +2 -2
- package/build-module/border-box-control/border-box-control-split-controls/hook.mjs.map +2 -2
- package/build-module/border-box-control/border-box-control-visualizer/component.mjs.map +2 -2
- package/build-module/border-box-control/border-box-control-visualizer/hook.mjs.map +2 -2
- package/build-module/border-box-control/styles.mjs +9 -9
- package/build-module/border-box-control/styles.mjs.map +2 -2
- package/build-module/border-box-control/utils.mjs.map +2 -2
- package/build-module/border-control/border-control/component.mjs.map +2 -2
- package/build-module/border-control/border-control/hook.mjs.map +2 -2
- package/build-module/border-control/border-control-dropdown/component.mjs.map +2 -2
- package/build-module/border-control/border-control-dropdown/hook.mjs.map +2 -2
- package/build-module/border-control/border-control-style-picker/component.mjs.map +2 -2
- package/build-module/border-control/styles.mjs +14 -14
- package/build-module/border-control/styles.mjs.map +2 -2
- package/build-module/box-control/box-input-control.mjs.map +2 -2
- package/build-module/box-control/icon.mjs.map +2 -2
- package/build-module/box-control/index.mjs.map +2 -2
- package/build-module/box-control/linked-button.mjs.map +2 -2
- package/build-module/box-control/styles/box-control-icon-styles.mjs +10 -10
- package/build-module/box-control/styles/box-control-icon-styles.mjs.map +2 -2
- package/build-module/box-control/styles/box-control-styles.mjs +6 -6
- package/build-module/box-control/styles/box-control-styles.mjs.map +2 -2
- package/build-module/box-control/utils.mjs.map +2 -2
- package/build-module/button/deprecated.mjs.map +2 -2
- package/build-module/button/index.mjs.map +2 -2
- package/build-module/button-group/index.mjs.map +2 -2
- package/build-module/card/card/component.mjs +1 -1
- package/build-module/card/card/component.mjs.map +2 -2
- package/build-module/card/card/hook.mjs.map +2 -2
- package/build-module/card/card-body/component.mjs.map +2 -2
- package/build-module/card/card-body/hook.mjs.map +2 -2
- package/build-module/card/card-divider/component.mjs.map +2 -2
- package/build-module/card/card-divider/hook.mjs.map +2 -2
- package/build-module/card/card-footer/component.mjs.map +2 -2
- package/build-module/card/card-footer/hook.mjs.map +2 -2
- package/build-module/card/card-header/component.mjs.map +2 -2
- package/build-module/card/card-header/hook.mjs.map +2 -2
- package/build-module/card/card-media/component.mjs.map +2 -2
- package/build-module/card/card-media/hook.mjs.map +2 -2
- package/build-module/card/get-padding-by-size.mjs +6 -6
- package/build-module/card/get-padding-by-size.mjs.map +2 -2
- package/build-module/card/styles.mjs +16 -16
- package/build-module/card/styles.mjs.map +2 -2
- package/build-module/checkbox-control/index.mjs.map +2 -2
- package/build-module/circular-option-picker/circular-option-picker-actions.mjs.map +2 -2
- package/build-module/circular-option-picker/circular-option-picker-context.mjs.map +2 -2
- package/build-module/circular-option-picker/circular-option-picker-option-group.mjs.map +2 -2
- package/build-module/circular-option-picker/circular-option-picker-option.mjs.map +2 -2
- package/build-module/circular-option-picker/circular-option-picker.mjs.map +2 -2
- package/build-module/circular-option-picker/index.mjs.map +2 -2
- package/build-module/circular-option-picker/utils.mjs.map +2 -2
- package/build-module/clipboard-button/index.mjs.map +2 -2
- package/build-module/color-indicator/index.mjs.map +2 -2
- package/build-module/color-palette/index.mjs.map +2 -2
- package/build-module/color-palette/styles.mjs +1 -1
- package/build-module/color-palette/styles.mjs.map +2 -2
- package/build-module/color-palette/utils.mjs.map +2 -2
- package/build-module/color-picker/color-copy-button.mjs.map +2 -2
- package/build-module/color-picker/color-input.mjs.map +2 -2
- package/build-module/color-picker/component.mjs +14 -5
- package/build-module/color-picker/component.mjs.map +2 -2
- package/build-module/color-picker/hex-input.mjs +0 -1
- package/build-module/color-picker/hex-input.mjs.map +2 -2
- package/build-module/color-picker/hsl-input.mjs.map +2 -2
- package/build-module/color-picker/index.mjs.map +2 -2
- package/build-module/color-picker/input-with-slider.mjs +0 -1
- package/build-module/color-picker/input-with-slider.mjs.map +2 -2
- package/build-module/color-picker/legacy-adapter.mjs.map +2 -2
- package/build-module/color-picker/picker.mjs +96 -24
- package/build-module/color-picker/picker.mjs.map +2 -2
- package/build-module/color-picker/rgb-input.mjs.map +2 -2
- package/build-module/color-picker/styles.mjs +7 -7
- package/build-module/color-picker/styles.mjs.map +2 -2
- package/build-module/color-picker/use-deprecated-props.mjs.map +2 -2
- package/build-module/combobox-control/index.mjs +1 -1
- package/build-module/combobox-control/index.mjs.map +2 -2
- package/build-module/composite/context.mjs.map +2 -2
- package/build-module/composite/group-label.mjs.map +2 -2
- package/build-module/composite/group.mjs.map +2 -2
- package/build-module/composite/hover.mjs.map +2 -2
- package/build-module/composite/index.mjs.map +2 -2
- package/build-module/composite/item.mjs.map +2 -2
- package/build-module/composite/legacy/index.mjs.map +2 -2
- package/build-module/composite/row.mjs.map +2 -2
- package/build-module/composite/typeahead.mjs.map +2 -2
- package/build-module/confirm-dialog/component.mjs +86 -4
- package/build-module/confirm-dialog/component.mjs.map +3 -3
- package/build-module/confirm-dialog/docs-manifest.json +5 -0
- package/build-module/confirm-dialog/index.mjs.map +2 -2
- package/build-module/content-editable-control/docs-manifest.json +5 -0
- package/build-module/content-editable-control/index.mjs +146 -0
- package/build-module/content-editable-control/index.mjs.map +7 -0
- package/build-module/context/context-connect.mjs.map +2 -2
- package/build-module/context/context-system-provider.mjs.map +2 -2
- package/build-module/context/get-styled-class-name-from-key.mjs.map +2 -2
- package/build-module/context/use-context-system.mjs.map +2 -2
- package/build-module/context/utils.mjs.map +2 -2
- package/build-module/custom-gradient-picker/constants.mjs.map +2 -2
- package/build-module/custom-gradient-picker/gradient-bar/control-points.mjs.map +2 -2
- package/build-module/custom-gradient-picker/gradient-bar/index.mjs.map +2 -2
- package/build-module/custom-gradient-picker/gradient-bar/utils.mjs.map +2 -2
- package/build-module/custom-gradient-picker/index.mjs +1 -1
- package/build-module/custom-gradient-picker/index.mjs.map +2 -2
- package/build-module/custom-gradient-picker/serializer.mjs.map +2 -2
- package/build-module/custom-gradient-picker/styles/custom-gradient-picker-styles.mjs +2 -2
- package/build-module/custom-gradient-picker/styles/custom-gradient-picker-styles.mjs.map +2 -2
- package/build-module/custom-gradient-picker/utils.mjs.map +2 -2
- package/build-module/custom-select-control/index.mjs +1 -2
- package/build-module/custom-select-control/index.mjs.map +2 -2
- package/build-module/custom-select-control-v2/custom-select.mjs +0 -1
- package/build-module/custom-select-control-v2/custom-select.mjs.map +2 -2
- package/build-module/custom-select-control-v2/index.mjs.map +2 -2
- package/build-module/custom-select-control-v2/item.mjs.map +2 -2
- package/build-module/custom-select-control-v2/styles.mjs +9 -9
- package/build-module/custom-select-control-v2/styles.mjs.map +2 -2
- package/build-module/dashicon/index.mjs.map +2 -2
- package/build-module/date-time/date-picker/index.mjs.map +2 -2
- package/build-module/date-time/date-picker/styles.mjs +8 -8
- package/build-module/date-time/date-picker/styles.mjs.map +2 -2
- package/build-module/date-time/date-picker/use-lilius/index.mjs.map +2 -2
- package/build-module/date-time/date-time/index.mjs.map +2 -2
- package/build-module/date-time/date-time/styles.mjs +1 -1
- package/build-module/date-time/date-time/styles.mjs.map +2 -2
- package/build-module/date-time/index.mjs.map +2 -2
- package/build-module/date-time/time-picker/index.mjs +0 -2
- package/build-module/date-time/time-picker/index.mjs.map +2 -2
- package/build-module/date-time/time-picker/styles.mjs +11 -11
- package/build-module/date-time/time-picker/styles.mjs.map +2 -2
- package/build-module/date-time/time-picker/time-input/index.mjs +0 -2
- package/build-module/date-time/time-picker/time-input/index.mjs.map +2 -2
- package/build-module/date-time/time-picker/timezone.mjs.map +2 -2
- package/build-module/date-time/utils.mjs.map +2 -2
- package/build-module/disabled/index.mjs +88 -5
- package/build-module/disabled/index.mjs.map +3 -3
- package/build-module/disclosure/index.mjs.map +2 -2
- package/build-module/divider/component.mjs.map +2 -2
- package/build-module/draggable/index.mjs.map +2 -2
- package/build-module/drop-zone/index.mjs.map +2 -2
- package/build-module/drop-zone/provider.mjs.map +2 -2
- package/build-module/dropdown/dropdown-content-wrapper.mjs.map +2 -2
- package/build-module/dropdown/index.mjs.map +2 -2
- package/build-module/dropdown/styles.mjs +2 -2
- package/build-module/dropdown/styles.mjs.map +2 -2
- package/build-module/dropdown-menu/index.mjs.map +2 -2
- package/build-module/duotone-picker/color-list-picker/index.mjs +1 -1
- package/build-module/duotone-picker/color-list-picker/index.mjs.map +2 -2
- package/build-module/duotone-picker/custom-duotone-bar.mjs.map +2 -2
- package/build-module/duotone-picker/duotone-picker.mjs.map +2 -2
- package/build-module/duotone-picker/duotone-swatch.mjs.map +2 -2
- package/build-module/duotone-picker/utils.mjs.map +2 -2
- package/build-module/elevation/component.mjs.map +2 -2
- package/build-module/elevation/hook.mjs +5 -5
- package/build-module/elevation/hook.mjs.map +2 -2
- package/build-module/elevation/styles.mjs +1 -1
- package/build-module/elevation/styles.mjs.map +2 -2
- package/build-module/external-link/index.mjs.map +2 -2
- package/build-module/flex/context.mjs.map +2 -2
- package/build-module/flex/flex/component.mjs.map +2 -2
- package/build-module/flex/flex-block/component.mjs.map +2 -2
- package/build-module/flex/flex-block/hook.mjs.map +2 -2
- package/build-module/flex/flex-item/component.mjs.map +2 -2
- package/build-module/focal-point-picker/controls.mjs.map +2 -2
- package/build-module/focal-point-picker/focal-point.mjs.map +2 -2
- package/build-module/focal-point-picker/grid.mjs.map +2 -2
- package/build-module/focal-point-picker/index.mjs.map +2 -2
- package/build-module/focal-point-picker/media.mjs.map +2 -2
- package/build-module/focal-point-picker/styles/focal-point-picker-style.mjs +11 -11
- package/build-module/focal-point-picker/styles/focal-point-picker-style.mjs.map +2 -2
- package/build-module/focal-point-picker/styles/focal-point-style.mjs +1 -1
- package/build-module/focal-point-picker/styles/focal-point-style.mjs.map +2 -2
- package/build-module/focusable-iframe/index.mjs.map +2 -2
- package/build-module/font-size-picker/constants.mjs.map +2 -2
- package/build-module/font-size-picker/font-size-picker-select.mjs.map +2 -2
- package/build-module/font-size-picker/font-size-picker-toggle-group.mjs.map +2 -2
- package/build-module/font-size-picker/index.mjs.map +2 -2
- package/build-module/font-size-picker/styles.mjs +5 -5
- package/build-module/font-size-picker/styles.mjs.map +2 -2
- package/build-module/font-size-picker/utils.mjs.map +2 -2
- package/build-module/form-file-upload/index.mjs.map +2 -2
- package/build-module/form-toggle/index.mjs.map +2 -2
- package/build-module/form-token-field/index.mjs +89 -4
- package/build-module/form-token-field/index.mjs.map +3 -3
- package/build-module/form-token-field/suggestions-list.mjs.map +2 -2
- package/build-module/form-token-field/token-input.mjs.map +2 -2
- package/build-module/form-token-field/token.mjs.map +2 -2
- package/build-module/gradient-picker/index.mjs +26 -20
- package/build-module/gradient-picker/index.mjs.map +2 -2
- package/build-module/grid/component.mjs.map +2 -2
- package/build-module/grid/hook.mjs +1 -1
- package/build-module/grid/hook.mjs.map +2 -2
- package/build-module/grid/utils.mjs.map +2 -2
- package/build-module/guide/icons.mjs.map +2 -2
- package/build-module/guide/index.mjs.map +2 -2
- package/build-module/guide/page-control.mjs.map +2 -2
- package/build-module/guide/page.mjs.map +2 -2
- package/build-module/h-stack/component.mjs.map +2 -2
- package/build-module/h-stack/hook.mjs.map +2 -2
- package/build-module/h-stack/utils.mjs.map +2 -2
- package/build-module/heading/component.mjs.map +2 -2
- package/build-module/heading/hook.mjs +1 -1
- package/build-module/heading/hook.mjs.map +2 -2
- package/build-module/higher-order/navigate-regions/index.mjs.map +2 -2
- package/build-module/higher-order/with-constrained-tabbing/index.mjs.map +2 -2
- package/build-module/higher-order/with-fallback-styles/index.mjs.map +2 -2
- package/build-module/higher-order/with-filters/index.mjs.map +2 -2
- package/build-module/higher-order/with-focus-outside/index.mjs.map +2 -2
- package/build-module/higher-order/with-focus-return/index.mjs.map +2 -2
- package/build-module/higher-order/with-notices/index.mjs.map +2 -2
- package/build-module/higher-order/with-spoken-messages/index.mjs.map +2 -2
- package/build-module/icon/index.mjs +0 -1
- package/build-module/icon/index.mjs.map +2 -2
- package/build-module/input-control/backdrop.mjs.map +2 -2
- package/build-module/input-control/index.mjs +4 -14
- package/build-module/input-control/index.mjs.map +2 -2
- package/build-module/input-control/input-base.mjs +2 -6
- package/build-module/input-control/input-base.mjs.map +2 -2
- package/build-module/input-control/input-field.mjs +1 -1
- package/build-module/input-control/input-field.mjs.map +2 -2
- package/build-module/input-control/input-prefix-wrapper.mjs.map +2 -2
- package/build-module/input-control/input-suffix-wrapper.mjs.map +2 -2
- package/build-module/input-control/label.mjs.map +2 -2
- package/build-module/input-control/reducer/actions.mjs.map +2 -2
- package/build-module/input-control/reducer/reducer.mjs.map +2 -2
- package/build-module/input-control/reducer/state.mjs.map +2 -2
- package/build-module/input-control/styles/input-control-styles.mjs +25 -39
- package/build-module/input-control/styles/input-control-styles.mjs.map +2 -2
- package/build-module/input-control/utils.mjs +1 -1
- package/build-module/input-control/utils.mjs.map +2 -2
- package/build-module/isolated-event-container/index.mjs.map +2 -2
- package/build-module/item-group/context.mjs.map +2 -2
- package/build-module/item-group/item/component.mjs.map +2 -2
- package/build-module/item-group/item/hook.mjs +94 -7
- package/build-module/item-group/item/hook.mjs.map +4 -4
- package/build-module/item-group/item-group/component.mjs.map +2 -2
- package/build-module/item-group/item-group/hook.mjs +91 -4
- package/build-module/item-group/item-group/hook.mjs.map +3 -3
- package/build-module/keyboard-shortcuts/index.mjs.map +2 -2
- package/build-module/lock-unlock.mjs.map +2 -2
- package/build-module/menu/checkbox-item.mjs +7 -4
- package/build-module/menu/checkbox-item.mjs.map +2 -2
- package/build-module/menu/context.mjs.map +2 -2
- package/build-module/menu/group-label.mjs +2 -1
- package/build-module/menu/group-label.mjs.map +2 -2
- package/build-module/menu/group.mjs.map +2 -2
- package/build-module/menu/index.mjs.map +2 -2
- package/build-module/menu/item-help-text.mjs.map +2 -2
- package/build-module/menu/item-label.mjs.map +2 -2
- package/build-module/menu/item.mjs +5 -3
- package/build-module/menu/item.mjs.map +2 -2
- package/build-module/menu/popover.mjs.map +2 -2
- package/build-module/menu/radio-item.mjs +7 -4
- package/build-module/menu/radio-item.mjs.map +2 -2
- package/build-module/menu/separator.mjs.map +2 -2
- package/build-module/menu/styles.mjs +17 -17
- package/build-module/menu/styles.mjs.map +2 -2
- package/build-module/menu/submenu-trigger-item.mjs.map +2 -2
- package/build-module/menu/trigger-button.mjs.map +2 -2
- package/build-module/menu/use-menu-item-hide-on-click.mjs +41 -0
- package/build-module/menu/use-menu-item-hide-on-click.mjs.map +7 -0
- package/build-module/menu-group/index.mjs.map +2 -2
- package/build-module/menu-item/index.mjs.map +2 -2
- package/build-module/menu-items-choice/index.mjs.map +2 -2
- package/build-module/modal/index.mjs +1 -1
- package/build-module/modal/index.mjs.map +2 -2
- package/build-module/modal/use-modal-exit-animation.mjs.map +2 -2
- package/build-module/navigable-container/container.mjs.map +2 -2
- package/build-module/navigable-container/index.mjs.map +2 -2
- package/build-module/navigable-container/menu.mjs.map +2 -2
- package/build-module/navigable-container/tabbable.mjs.map +2 -2
- package/build-module/navigator/context.mjs.map +2 -2
- package/build-module/navigator/index.mjs.map +2 -2
- package/build-module/navigator/legacy.mjs.map +2 -2
- package/build-module/navigator/navigator/component.mjs.map +2 -2
- package/build-module/navigator/navigator-back-button/component.mjs.map +2 -2
- package/build-module/navigator/navigator-back-button/hook.mjs.map +2 -2
- package/build-module/navigator/navigator-button/component.mjs.map +2 -2
- package/build-module/navigator/navigator-button/hook.mjs.map +2 -2
- package/build-module/navigator/navigator-screen/component.mjs.map +2 -2
- package/build-module/navigator/navigator-screen/use-screen-animate-presence.mjs.map +2 -2
- package/build-module/navigator/navigator-to-parent-button/component.mjs.map +2 -2
- package/build-module/navigator/styles.mjs +7 -7
- package/build-module/navigator/styles.mjs.map +2 -2
- package/build-module/navigator/use-navigator.mjs.map +2 -2
- package/build-module/navigator/utils/router.mjs.map +2 -2
- package/build-module/notice/index.mjs.map +2 -2
- package/build-module/notice/list.mjs.map +2 -2
- package/build-module/number-control/index.mjs +1 -11
- package/build-module/number-control/index.mjs.map +2 -2
- package/build-module/number-control/styles/number-control-styles.mjs +4 -4
- package/build-module/number-control/styles/number-control-styles.mjs.map +2 -2
- package/build-module/palette-edit/index.mjs +1 -1
- package/build-module/palette-edit/index.mjs.map +2 -2
- package/build-module/palette-edit/styles.mjs +9 -9
- package/build-module/palette-edit/styles.mjs.map +2 -2
- package/build-module/panel/body.mjs.map +2 -2
- package/build-module/panel/header.mjs.map +2 -2
- package/build-module/panel/index.mjs.map +2 -2
- package/build-module/panel/row.mjs.map +2 -2
- package/build-module/placeholder/index.mjs.map +2 -2
- package/build-module/popover/index.mjs.map +2 -2
- package/build-module/popover/overlay-middlewares.mjs.map +2 -2
- package/build-module/popover/utils.mjs.map +2 -2
- package/build-module/private-apis.mjs +4 -17
- package/build-module/private-apis.mjs.map +2 -2
- package/build-module/progress-bar/index.mjs.map +2 -2
- package/build-module/progress-bar/styles.mjs +4 -4
- package/build-module/progress-bar/styles.mjs.map +2 -2
- package/build-module/query-controls/author-select.mjs.map +2 -2
- package/build-module/query-controls/index.mjs +1 -1
- package/build-module/query-controls/index.mjs.map +2 -2
- package/build-module/query-controls/terms.mjs.map +2 -2
- package/build-module/radio-control/index.mjs.map +2 -2
- package/build-module/radio-group/context.mjs.map +2 -2
- package/build-module/radio-group/index.mjs.map +2 -2
- package/build-module/radio-group/radio.mjs.map +2 -2
- package/build-module/range-control/index.mjs +0 -2
- package/build-module/range-control/index.mjs.map +2 -2
- package/build-module/range-control/input-range.mjs.map +2 -2
- package/build-module/range-control/mark.mjs.map +2 -2
- package/build-module/range-control/rail.mjs.map +2 -2
- package/build-module/range-control/styles/range-control-styles.mjs +25 -25
- package/build-module/range-control/styles/range-control-styles.mjs.map +2 -2
- package/build-module/range-control/tooltip.mjs.map +2 -2
- package/build-module/range-control/utils.mjs.map +2 -2
- package/build-module/resizable-box/index.mjs.map +2 -2
- package/build-module/resizable-box/resize-tooltip/index.mjs.map +2 -2
- package/build-module/resizable-box/resize-tooltip/label.mjs.map +2 -2
- package/build-module/resizable-box/resize-tooltip/styles/resize-tooltip.styles.mjs +4 -4
- package/build-module/resizable-box/resize-tooltip/styles/resize-tooltip.styles.mjs.map +2 -2
- package/build-module/resizable-box/resize-tooltip/utils.mjs.map +2 -2
- package/build-module/responsive-wrapper/index.mjs.map +2 -2
- package/build-module/sandbox/index.mjs +88 -72
- package/build-module/sandbox/index.mjs.map +2 -2
- package/build-module/scroll-lock/index.mjs.map +2 -2
- package/build-module/scrollable/component.mjs.map +2 -2
- package/build-module/scrollable/hook.mjs.map +2 -2
- package/build-module/scrollable/styles.mjs +7 -7
- package/build-module/scrollable/styles.mjs.map +2 -2
- package/build-module/search-control/index.mjs +93 -11
- package/build-module/search-control/index.mjs.map +3 -3
- package/build-module/select-control/chevron-down.mjs.map +2 -2
- package/build-module/select-control/index.mjs +0 -2
- package/build-module/select-control/index.mjs.map +2 -2
- package/build-module/select-control/styles/select-control-styles.mjs +9 -16
- package/build-module/select-control/styles/select-control-styles.mjs.map +2 -2
- package/build-module/shortcut/index.mjs.map +2 -2
- package/build-module/slot-fill/bubbles-virtually/slot.mjs.map +2 -2
- package/build-module/slot-fill/bubbles-virtually/use-slot-fills.mjs.map +2 -2
- package/build-module/slot-fill/bubbles-virtually/use-slot.mjs.map +2 -2
- package/build-module/slot-fill/context.mjs.map +2 -2
- package/build-module/slot-fill/fill.mjs.map +2 -2
- package/build-module/slot-fill/index.mjs.map +2 -2
- package/build-module/slot-fill/provider.mjs.map +2 -2
- package/build-module/slot-fill/slot.mjs.map +2 -2
- package/build-module/snackbar/index.mjs.map +2 -2
- package/build-module/snackbar/list.mjs.map +2 -2
- package/build-module/spacer/component.mjs.map +2 -2
- package/build-module/spacer/hook.mjs +140 -14
- package/build-module/spacer/hook.mjs.map +3 -3
- package/build-module/spinner/index.mjs +91 -5
- package/build-module/spinner/index.mjs.map +3 -3
- package/build-module/surface/component.mjs +5 -0
- package/build-module/surface/component.mjs.map +2 -2
- package/build-module/surface/hook.mjs.map +2 -2
- package/build-module/tab-panel/index.mjs.map +2 -2
- package/build-module/tabs/context.mjs.map +2 -2
- package/build-module/tabs/index.mjs.map +2 -2
- package/build-module/tabs/styles.mjs +5 -5
- package/build-module/tabs/styles.mjs.map +2 -2
- package/build-module/tabs/tab.mjs +1 -1
- package/build-module/tabs/tab.mjs.map +2 -2
- package/build-module/tabs/tablist.mjs.map +2 -2
- package/build-module/tabs/tabpanel.mjs +1 -1
- package/build-module/tabs/tabpanel.mjs.map +2 -2
- package/build-module/tabs/use-track-overflow.mjs.map +2 -2
- package/build-module/text/component.mjs.map +2 -2
- package/build-module/text/get-line-height.mjs.map +2 -2
- package/build-module/text/hook.mjs +5 -5
- package/build-module/text/hook.mjs.map +2 -2
- package/build-module/text/styles.mjs +7 -7
- package/build-module/text/styles.mjs.map +2 -2
- package/build-module/text/utils.mjs.map +2 -2
- package/build-module/text-control/index.mjs.map +2 -2
- package/build-module/text-highlight/index.mjs.map +2 -2
- package/build-module/textarea-control/index.mjs.map +2 -2
- package/build-module/textarea-control/styles/textarea-control-styles.mjs +3 -3
- package/build-module/textarea-control/styles/textarea-control-styles.mjs.map +2 -2
- package/build-module/tip/index.mjs.map +2 -2
- package/build-module/toggle-control/index.mjs.map +2 -2
- package/build-module/toggle-group-control/context.mjs.map +2 -2
- package/build-module/toggle-group-control/toggle-group-control/as-button-group.mjs.map +2 -2
- package/build-module/toggle-group-control/toggle-group-control/as-radio-group.mjs.map +2 -2
- package/build-module/toggle-group-control/toggle-group-control/component.mjs +92 -9
- package/build-module/toggle-group-control/toggle-group-control/component.mjs.map +3 -3
- package/build-module/toggle-group-control/toggle-group-control/utils.mjs.map +2 -2
- package/build-module/toggle-group-control/toggle-group-control-option/component.mjs.map +2 -2
- package/build-module/toggle-group-control/toggle-group-control-option-base/component.mjs +99 -18
- package/build-module/toggle-group-control/toggle-group-control-option-base/component.mjs.map +3 -3
- package/build-module/toggle-group-control/toggle-group-control-option-icon/component.mjs.map +2 -2
- package/build-module/toolbar/toolbar/index.mjs.map +2 -2
- package/build-module/toolbar/toolbar/toolbar-container.mjs.map +2 -2
- package/build-module/toolbar/toolbar-button/index.mjs.map +2 -2
- package/build-module/toolbar/toolbar-button/toolbar-button-container.mjs.map +2 -2
- package/build-module/toolbar/toolbar-context/index.mjs.map +2 -2
- package/build-module/toolbar/toolbar-dropdown-menu/index.mjs.map +2 -2
- package/build-module/toolbar/toolbar-group/index.mjs.map +2 -2
- package/build-module/toolbar/toolbar-group/toolbar-group-collapsed.mjs.map +2 -2
- package/build-module/toolbar/toolbar-group/toolbar-group-container.mjs.map +2 -2
- package/build-module/toolbar/toolbar-item/index.mjs.map +2 -2
- package/build-module/tools-panel/context.mjs.map +2 -2
- package/build-module/tools-panel/tools-panel/component.mjs +6 -0
- package/build-module/tools-panel/tools-panel/component.mjs.map +2 -2
- package/build-module/tools-panel/tools-panel/hook.mjs +87 -11
- package/build-module/tools-panel/tools-panel/hook.mjs.map +3 -3
- package/build-module/tools-panel/tools-panel-header/component.mjs +87 -2
- package/build-module/tools-panel/tools-panel-header/component.mjs.map +3 -3
- package/build-module/tools-panel/tools-panel-header/hook.mjs +90 -20
- package/build-module/tools-panel/tools-panel-header/hook.mjs.map +3 -3
- package/build-module/tools-panel/tools-panel-item/component.mjs.map +2 -2
- package/build-module/tools-panel/tools-panel-item/hook.mjs +89 -10
- package/build-module/tools-panel/tools-panel-item/hook.mjs.map +3 -3
- package/build-module/tree-grid/cell.mjs.map +2 -2
- package/build-module/tree-grid/index.mjs.map +2 -2
- package/build-module/tree-grid/item.mjs.map +2 -2
- package/build-module/tree-grid/roving-tab-index-context.mjs.map +2 -2
- package/build-module/tree-grid/roving-tab-index-item.mjs.map +2 -2
- package/build-module/tree-grid/roving-tab-index.mjs.map +2 -2
- package/build-module/tree-grid/row.mjs.map +2 -2
- package/build-module/tree-select/index.mjs.map +2 -2
- package/build-module/truncate/component.mjs.map +2 -2
- package/build-module/truncate/hook.mjs.map +2 -2
- package/build-module/truncate/utils.mjs.map +2 -2
- package/build-module/unit-control/index.mjs +0 -1
- package/build-module/unit-control/index.mjs.map +2 -2
- package/build-module/unit-control/styles/unit-control-styles.mjs +7 -7
- package/build-module/unit-control/styles/unit-control-styles.mjs.map +2 -2
- package/build-module/unit-control/unit-select-control.mjs.map +2 -2
- package/build-module/unit-control/utils.mjs.map +2 -2
- package/build-module/utils/base-label.mjs +1 -1
- package/build-module/utils/base-label.mjs.map +2 -2
- package/build-module/utils/box-sizing.mjs +1 -1
- package/build-module/utils/box-sizing.mjs.map +2 -2
- package/build-module/utils/breakpoint.mjs.map +2 -2
- package/build-module/utils/colors.mjs.map +2 -2
- package/build-module/utils/config-values.mjs +1 -4
- package/build-module/utils/config-values.mjs.map +2 -2
- package/build-module/utils/element-rect.mjs.map +2 -2
- package/build-module/utils/font-size.mjs.map +2 -2
- package/build-module/utils/font-values.mjs +1 -1
- package/build-module/utils/font-values.mjs.map +1 -1
- package/build-module/utils/font.mjs.map +2 -2
- package/build-module/utils/get-valid-children.mjs.map +2 -2
- package/build-module/utils/hooks/use-animated-offset-rect.mjs.map +2 -2
- package/build-module/utils/hooks/use-controlled-state.mjs.map +2 -2
- package/build-module/utils/hooks/use-controlled-value.mjs.map +2 -2
- package/build-module/utils/hooks/use-cx.mjs.map +2 -2
- package/build-module/utils/hooks/use-on-value-update.mjs.map +2 -2
- package/build-module/utils/hooks/use-update-effect.mjs.map +2 -2
- package/build-module/utils/polymorphic-element.mjs.map +2 -2
- package/build-module/utils/rtl.mjs +2 -2
- package/build-module/utils/rtl.mjs.map +2 -2
- package/build-module/utils/strings.mjs +0 -18
- package/build-module/utils/strings.mjs.map +2 -2
- package/build-module/utils/use-responsive-value.mjs.map +2 -2
- package/build-module/v-stack/component.mjs.map +2 -2
- package/build-module/v-stack/hook.mjs.map +2 -2
- package/build-module/validated-form-controls/components/combobox-control.mjs.map +2 -2
- package/build-module/validated-form-controls/components/content-editable-control.mjs +49 -0
- package/build-module/validated-form-controls/components/content-editable-control.mjs.map +7 -0
- package/build-module/validated-form-controls/components/custom-select-control.mjs.map +2 -2
- package/build-module/validated-form-controls/components/form-token-field.mjs.map +2 -2
- package/build-module/validated-form-controls/components/index.mjs +1 -5
- package/build-module/validated-form-controls/components/index.mjs.map +2 -2
- package/build-module/validated-form-controls/components/input-control.mjs +0 -1
- package/build-module/validated-form-controls/components/input-control.mjs.map +2 -2
- package/build-module/validated-form-controls/components/range-control.mjs.map +2 -2
- package/build-module/validated-form-controls/components/textarea-control.mjs.map +2 -2
- package/build-module/validated-form-controls/components/toggle-control.mjs.map +2 -2
- package/build-module/validated-form-controls/components/toggle-group-control.mjs.map +2 -2
- package/build-module/validated-form-controls/control-with-error.mjs +4 -4
- package/build-module/validated-form-controls/control-with-error.mjs.map +2 -2
- package/build-module/validated-form-controls/validity-indicator.mjs.map +2 -2
- package/build-module/view/component.mjs.map +2 -2
- package/build-module/visually-hidden/component.mjs.map +2 -2
- package/build-module/visually-hidden/styles.mjs.map +2 -2
- package/build-module/z-stack/component.mjs.map +2 -2
- package/build-module/z-stack/styles.mjs +4 -4
- package/build-module/z-stack/styles.mjs.map +2 -2
- package/build-style/style-rtl.css +77 -444
- package/build-style/style.css +77 -444
- package/build-types/alignment-matrix-control/cell.d.ts.map +1 -1
- package/build-types/alignment-matrix-control/icon.d.ts.map +1 -1
- package/build-types/alignment-matrix-control/index.d.ts.map +1 -1
- package/build-types/alignment-matrix-control/stories/index.story.d.ts +0 -6
- package/build-types/alignment-matrix-control/stories/index.story.d.ts.map +1 -1
- package/build-types/alignment-matrix-control/utils.d.ts +0 -3
- package/build-types/alignment-matrix-control/utils.d.ts.map +1 -1
- package/build-types/angle-picker-control/angle-circle.d.ts.map +1 -1
- package/build-types/angle-picker-control/index.d.ts +1 -1
- package/build-types/angle-picker-control/index.d.ts.map +1 -1
- package/build-types/angle-picker-control/stories/index.story.d.ts +1 -7
- package/build-types/angle-picker-control/stories/index.story.d.ts.map +1 -1
- package/build-types/animate/index.d.ts +6 -3
- package/build-types/animate/index.d.ts.map +1 -1
- package/build-types/animate/stories/index.story.d.ts +0 -6
- package/build-types/animate/stories/index.story.d.ts.map +1 -1
- package/build-types/autocomplete/autocompleter-ui.d.ts +1 -1
- package/build-types/autocomplete/autocompleter-ui.d.ts.map +1 -1
- package/build-types/autocomplete/get-autocomplete-match.d.ts +0 -3
- package/build-types/autocomplete/get-autocomplete-match.d.ts.map +1 -1
- package/build-types/autocomplete/get-default-use-items.d.ts.map +1 -1
- package/build-types/autocomplete/index.d.ts +8 -4
- package/build-types/autocomplete/index.d.ts.map +1 -1
- package/build-types/autocomplete/types.d.ts +0 -9
- package/build-types/autocomplete/types.d.ts.map +1 -1
- package/build-types/badge/index.d.ts +0 -3
- package/build-types/badge/index.d.ts.map +1 -1
- package/build-types/badge/stories/e2e/index.story.d.ts.map +1 -1
- package/build-types/badge/stories/index.story.d.ts +0 -6
- package/build-types/badge/stories/index.story.d.ts.map +1 -1
- package/build-types/base-control/hooks.d.ts.map +1 -1
- package/build-types/base-control/index.d.ts +624 -3
- package/build-types/base-control/index.d.ts.map +1 -1
- package/build-types/base-control/stories/index.story.d.ts +1 -7
- package/build-types/base-control/stories/index.story.d.ts.map +1 -1
- package/build-types/base-control/styles/base-control-styles.d.ts.map +1 -1
- package/build-types/base-control/types.d.ts +0 -3
- package/build-types/base-control/types.d.ts.map +1 -1
- package/build-types/border-box-control/border-box-control/component.d.ts +14 -11
- package/build-types/border-box-control/border-box-control/component.d.ts.map +1 -1
- package/build-types/border-box-control/border-box-control/hook.d.ts +1 -1
- package/build-types/border-box-control/border-box-control/hook.d.ts.map +1 -1
- package/build-types/border-box-control/border-box-control-linked-button/component.d.ts.map +1 -1
- package/build-types/border-box-control/border-box-control-linked-button/hook.d.ts +1 -1
- package/build-types/border-box-control/border-box-control-linked-button/hook.d.ts.map +1 -1
- package/build-types/border-box-control/border-box-control-split-controls/component.d.ts.map +1 -1
- package/build-types/border-box-control/border-box-control-split-controls/hook.d.ts +1 -1
- package/build-types/border-box-control/border-box-control-split-controls/hook.d.ts.map +1 -1
- package/build-types/border-box-control/border-box-control-visualizer/component.d.ts.map +1 -1
- package/build-types/border-box-control/border-box-control-visualizer/hook.d.ts +1 -1
- package/build-types/border-box-control/border-box-control-visualizer/hook.d.ts.map +1 -1
- package/build-types/border-box-control/stories/index.story.d.ts +1 -6
- package/build-types/border-box-control/stories/index.story.d.ts.map +1 -1
- package/build-types/border-box-control/styles.d.ts.map +1 -1
- package/build-types/border-box-control/types.d.ts +1 -18
- package/build-types/border-box-control/types.d.ts.map +1 -1
- package/build-types/border-box-control/utils.d.ts.map +1 -1
- package/build-types/border-control/border-control/component.d.ts +23 -18
- package/build-types/border-control/border-control/component.d.ts.map +1 -1
- package/build-types/border-control/border-control/hook.d.ts +1 -1
- package/build-types/border-control/border-control/hook.d.ts.map +1 -1
- package/build-types/border-control/border-control-dropdown/component.d.ts.map +1 -1
- package/build-types/border-control/border-control-dropdown/hook.d.ts +1 -1
- package/build-types/border-control/border-control-dropdown/hook.d.ts.map +1 -1
- package/build-types/border-control/border-control-style-picker/component.d.ts +8 -4
- package/build-types/border-control/border-control-style-picker/component.d.ts.map +1 -1
- package/build-types/border-control/stories/index.story.d.ts +0 -6
- package/build-types/border-control/stories/index.story.d.ts.map +1 -1
- package/build-types/border-control/styles.d.ts.map +1 -1
- package/build-types/border-control/types.d.ts +0 -6
- package/build-types/border-control/types.d.ts.map +1 -1
- package/build-types/box-control/box-input-control.d.ts.map +1 -1
- package/build-types/box-control/icon.d.ts +0 -3
- package/build-types/box-control/icon.d.ts.map +1 -1
- package/build-types/box-control/index.d.ts +1 -1
- package/build-types/box-control/index.d.ts.map +1 -1
- package/build-types/box-control/linked-button.d.ts +0 -3
- package/build-types/box-control/linked-button.d.ts.map +1 -1
- package/build-types/box-control/stories/index.story.d.ts +0 -6
- package/build-types/box-control/stories/index.story.d.ts.map +1 -1
- package/build-types/box-control/styles/box-control-icon-styles.d.ts.map +1 -1
- package/build-types/box-control/styles/box-control-styles.d.ts +6 -10
- package/build-types/box-control/styles/box-control-styles.d.ts.map +1 -1
- package/build-types/box-control/types.d.ts +1 -11
- package/build-types/box-control/types.d.ts.map +1 -1
- package/build-types/box-control/utils.d.ts +0 -3
- package/build-types/box-control/utils.d.ts.map +1 -1
- package/build-types/button/deprecated.d.ts.map +1 -1
- package/build-types/button/index.d.ts.map +1 -1
- package/build-types/button/stories/e2e/index.story.d.ts +0 -6
- package/build-types/button/stories/e2e/index.story.d.ts.map +1 -1
- package/build-types/button/stories/index.story.d.ts +0 -6
- package/build-types/button/stories/index.story.d.ts.map +1 -1
- package/build-types/button/types.d.ts +0 -6
- package/build-types/button/types.d.ts.map +1 -1
- package/build-types/button-group/index.d.ts +0 -3
- package/build-types/button-group/index.d.ts.map +1 -1
- package/build-types/button-group/stories/index.story.d.ts +0 -6
- package/build-types/button-group/stories/index.story.d.ts.map +1 -1
- package/build-types/button-group/types.d.ts +0 -3
- package/build-types/button-group/types.d.ts.map +1 -1
- package/build-types/card/card/component.d.ts.map +1 -1
- package/build-types/card/card/hook.d.ts +1 -4
- package/build-types/card/card/hook.d.ts.map +1 -1
- package/build-types/card/card-body/component.d.ts.map +1 -1
- package/build-types/card/card-body/hook.d.ts +1 -4
- package/build-types/card/card-body/hook.d.ts.map +1 -1
- package/build-types/card/card-divider/component.d.ts +11 -6
- package/build-types/card/card-divider/component.d.ts.map +1 -1
- package/build-types/card/card-divider/hook.d.ts +0 -3
- package/build-types/card/card-divider/hook.d.ts.map +1 -1
- package/build-types/card/card-footer/component.d.ts.map +1 -1
- package/build-types/card/card-footer/hook.d.ts +1 -4
- package/build-types/card/card-footer/hook.d.ts.map +1 -1
- package/build-types/card/card-header/component.d.ts.map +1 -1
- package/build-types/card/card-header/hook.d.ts +1 -4
- package/build-types/card/card-header/hook.d.ts.map +1 -1
- package/build-types/card/card-media/component.d.ts.map +1 -1
- package/build-types/card/card-media/hook.d.ts +1 -4
- package/build-types/card/card-media/hook.d.ts.map +1 -1
- package/build-types/card/get-padding-by-size.d.ts +0 -6
- package/build-types/card/get-padding-by-size.d.ts.map +1 -1
- package/build-types/card/styles.d.ts +3 -3
- package/build-types/card/styles.d.ts.map +1 -1
- package/build-types/card/types.d.ts +0 -3
- package/build-types/card/types.d.ts.map +1 -1
- package/build-types/checkbox-control/index.d.ts.map +1 -1
- package/build-types/checkbox-control/stories/index.story.d.ts +10 -10
- package/build-types/checkbox-control/stories/index.story.d.ts.map +1 -1
- package/build-types/checkbox-control/types.d.ts +0 -6
- package/build-types/checkbox-control/types.d.ts.map +1 -1
- package/build-types/circular-option-picker/circular-option-picker-actions.d.ts +1 -1
- package/build-types/circular-option-picker/circular-option-picker-actions.d.ts.map +1 -1
- package/build-types/circular-option-picker/circular-option-picker-context.d.ts +0 -3
- package/build-types/circular-option-picker/circular-option-picker-context.d.ts.map +1 -1
- package/build-types/circular-option-picker/circular-option-picker-option-group.d.ts +0 -3
- package/build-types/circular-option-picker/circular-option-picker-option-group.d.ts.map +1 -1
- package/build-types/circular-option-picker/circular-option-picker-option.d.ts.map +1 -1
- package/build-types/circular-option-picker/circular-option-picker.d.ts +8 -13
- package/build-types/circular-option-picker/circular-option-picker.d.ts.map +1 -1
- package/build-types/circular-option-picker/index.d.ts +0 -3
- package/build-types/circular-option-picker/index.d.ts.map +1 -1
- package/build-types/circular-option-picker/stories/index.story.d.ts +0 -6
- package/build-types/circular-option-picker/stories/index.story.d.ts.map +1 -1
- package/build-types/circular-option-picker/types.d.ts +0 -9
- package/build-types/circular-option-picker/types.d.ts.map +1 -1
- package/build-types/circular-option-picker/utils.d.ts.map +1 -1
- package/build-types/clipboard-button/index.d.ts.map +1 -1
- package/build-types/clipboard-button/types.d.ts +0 -3
- package/build-types/clipboard-button/types.d.ts.map +1 -1
- package/build-types/color-indicator/index.d.ts.map +1 -1
- package/build-types/color-indicator/stories/index.story.d.ts +0 -6
- package/build-types/color-indicator/stories/index.story.d.ts.map +1 -1
- package/build-types/color-indicator/types.d.ts +0 -3
- package/build-types/color-indicator/types.d.ts.map +1 -1
- package/build-types/color-palette/index.d.ts.map +1 -1
- package/build-types/color-palette/stories/index.story.d.ts +0 -6
- package/build-types/color-palette/stories/index.story.d.ts.map +1 -1
- package/build-types/color-palette/styles.d.ts +1 -1
- package/build-types/color-palette/styles.d.ts.map +1 -1
- package/build-types/color-palette/types.d.ts +0 -6
- package/build-types/color-palette/types.d.ts.map +1 -1
- package/build-types/color-palette/utils.d.ts +0 -3
- package/build-types/color-palette/utils.d.ts.map +1 -1
- package/build-types/color-picker/color-copy-button.d.ts.map +1 -1
- package/build-types/color-picker/color-input.d.ts.map +1 -1
- package/build-types/color-picker/component.d.ts +11 -7
- package/build-types/color-picker/component.d.ts.map +1 -1
- package/build-types/color-picker/hex-input.d.ts.map +1 -1
- package/build-types/color-picker/hsl-input.d.ts.map +1 -1
- package/build-types/color-picker/index.d.ts +0 -3
- package/build-types/color-picker/index.d.ts.map +1 -1
- package/build-types/color-picker/input-with-slider.d.ts.map +1 -1
- package/build-types/color-picker/legacy-adapter.d.ts.map +1 -1
- package/build-types/color-picker/picker.d.ts +16 -3
- package/build-types/color-picker/picker.d.ts.map +1 -1
- package/build-types/color-picker/rgb-input.d.ts.map +1 -1
- package/build-types/color-picker/stories/index.story.d.ts +0 -6
- package/build-types/color-picker/stories/index.story.d.ts.map +1 -1
- package/build-types/color-picker/styles.d.ts +5 -8
- package/build-types/color-picker/styles.d.ts.map +1 -1
- package/build-types/color-picker/types.d.ts +2 -6
- package/build-types/color-picker/types.d.ts.map +1 -1
- package/build-types/color-picker/use-deprecated-props.d.ts +0 -3
- package/build-types/color-picker/use-deprecated-props.d.ts.map +1 -1
- package/build-types/combobox-control/index.d.ts.map +1 -1
- package/build-types/combobox-control/stories/index.story.d.ts +0 -6
- package/build-types/combobox-control/stories/index.story.d.ts.map +1 -1
- package/build-types/combobox-control/styles.d.ts +1 -1
- package/build-types/combobox-control/types.d.ts +0 -3
- package/build-types/combobox-control/types.d.ts.map +1 -1
- package/build-types/composite/context.d.ts +0 -3
- package/build-types/composite/context.d.ts.map +1 -1
- package/build-types/composite/group-label.d.ts.map +1 -1
- package/build-types/composite/group.d.ts.map +1 -1
- package/build-types/composite/hover.d.ts.map +1 -1
- package/build-types/composite/index.d.ts +0 -3
- package/build-types/composite/index.d.ts.map +1 -1
- package/build-types/composite/item.d.ts.map +1 -1
- package/build-types/composite/legacy/index.d.ts +0 -3
- package/build-types/composite/legacy/index.d.ts.map +1 -1
- package/build-types/composite/legacy/stories/index.story.d.ts +0 -3
- package/build-types/composite/legacy/stories/index.story.d.ts.map +1 -1
- package/build-types/composite/legacy/stories/utils.d.ts +0 -6
- package/build-types/composite/legacy/stories/utils.d.ts.map +1 -1
- package/build-types/composite/row.d.ts.map +1 -1
- package/build-types/composite/stories/index.story.d.ts +0 -3
- package/build-types/composite/stories/index.story.d.ts.map +1 -1
- package/build-types/composite/typeahead.d.ts.map +1 -1
- package/build-types/composite/types.d.ts +0 -3
- package/build-types/composite/types.d.ts.map +1 -1
- package/build-types/confirm-dialog/component.d.ts +32 -18
- package/build-types/confirm-dialog/component.d.ts.map +1 -1
- package/build-types/confirm-dialog/index.d.ts +0 -3
- package/build-types/confirm-dialog/index.d.ts.map +1 -1
- package/build-types/confirm-dialog/stories/index.story.d.ts +0 -3
- package/build-types/confirm-dialog/stories/index.story.d.ts.map +1 -1
- package/build-types/confirm-dialog/types.d.ts +4 -6
- package/build-types/confirm-dialog/types.d.ts.map +1 -1
- package/build-types/content-editable-control/index.d.ts +31 -0
- package/build-types/content-editable-control/index.d.ts.map +1 -0
- package/build-types/content-editable-control/stories/index.story.d.ts +7 -0
- package/build-types/content-editable-control/stories/index.story.d.ts.map +1 -0
- package/build-types/content-editable-control/test/index.d.ts.map +1 -0
- package/build-types/content-editable-control/types.d.ts +29 -0
- package/build-types/content-editable-control/types.d.ts.map +1 -0
- package/build-types/context/context-connect.d.ts +0 -3
- package/build-types/context/context-connect.d.ts.map +1 -1
- package/build-types/context/context-system-provider.d.ts +21 -2
- package/build-types/context/context-system-provider.d.ts.map +1 -1
- package/build-types/context/get-styled-class-name-from-key.d.ts.map +1 -1
- package/build-types/context/use-context-system.d.ts.map +1 -1
- package/build-types/context/utils.d.ts.map +1 -1
- package/build-types/context/wordpress-component.d.ts +25 -7
- package/build-types/context/wordpress-component.d.ts.map +1 -1
- package/build-types/custom-gradient-picker/constants.d.ts.map +1 -1
- package/build-types/custom-gradient-picker/gradient-bar/control-points.d.ts +3 -2
- package/build-types/custom-gradient-picker/gradient-bar/control-points.d.ts.map +1 -1
- package/build-types/custom-gradient-picker/gradient-bar/index.d.ts +1 -1
- package/build-types/custom-gradient-picker/gradient-bar/index.d.ts.map +1 -1
- package/build-types/custom-gradient-picker/gradient-bar/utils.d.ts.map +1 -1
- package/build-types/custom-gradient-picker/index.d.ts +1 -1
- package/build-types/custom-gradient-picker/index.d.ts.map +1 -1
- package/build-types/custom-gradient-picker/serializer.d.ts +3 -6
- package/build-types/custom-gradient-picker/serializer.d.ts.map +1 -1
- package/build-types/custom-gradient-picker/stories/index.story.d.ts +0 -6
- package/build-types/custom-gradient-picker/stories/index.story.d.ts.map +1 -1
- package/build-types/custom-gradient-picker/styles/custom-gradient-picker-styles.d.ts +2 -2
- package/build-types/custom-gradient-picker/styles/custom-gradient-picker-styles.d.ts.map +1 -1
- package/build-types/custom-gradient-picker/types.d.ts +0 -3
- package/build-types/custom-gradient-picker/types.d.ts.map +1 -1
- package/build-types/custom-gradient-picker/utils.d.ts +0 -3
- package/build-types/custom-gradient-picker/utils.d.ts.map +1 -1
- package/build-types/custom-select-control/index.d.ts.map +1 -1
- package/build-types/custom-select-control/stories/index.story.d.ts +0 -6
- package/build-types/custom-select-control/stories/index.story.d.ts.map +1 -1
- package/build-types/custom-select-control/types.d.ts +1 -11
- package/build-types/custom-select-control/types.d.ts.map +1 -1
- package/build-types/custom-select-control-v2/custom-select.d.ts.map +1 -1
- package/build-types/custom-select-control-v2/index.d.ts +2 -1
- package/build-types/custom-select-control-v2/index.d.ts.map +1 -1
- package/build-types/custom-select-control-v2/item.d.ts +0 -3
- package/build-types/custom-select-control-v2/item.d.ts.map +1 -1
- package/build-types/custom-select-control-v2/stories/index.story.d.ts +0 -6
- package/build-types/custom-select-control-v2/stories/index.story.d.ts.map +1 -1
- package/build-types/custom-select-control-v2/styles.d.ts +0 -3
- package/build-types/custom-select-control-v2/styles.d.ts.map +1 -1
- package/build-types/custom-select-control-v2/types.d.ts +0 -3
- package/build-types/custom-select-control-v2/types.d.ts.map +1 -1
- package/build-types/dashicon/index.d.ts +0 -3
- package/build-types/dashicon/index.d.ts.map +1 -1
- package/build-types/date-time/date-picker/index.d.ts +1 -1
- package/build-types/date-time/date-picker/index.d.ts.map +1 -1
- package/build-types/date-time/date-picker/styles.d.ts +2 -2
- package/build-types/date-time/date-picker/styles.d.ts.map +1 -1
- package/build-types/date-time/date-picker/use-lilius/index.d.ts +0 -30
- package/build-types/date-time/date-picker/use-lilius/index.d.ts.map +1 -1
- package/build-types/date-time/date-time/index.d.ts +0 -3
- package/build-types/date-time/date-time/index.d.ts.map +1 -1
- package/build-types/date-time/date-time/styles.d.ts +1 -1
- package/build-types/date-time/date-time/styles.d.ts.map +1 -1
- package/build-types/date-time/index.d.ts +0 -3
- package/build-types/date-time/index.d.ts.map +1 -1
- package/build-types/date-time/stories/date-time.story.d.ts +0 -6
- package/build-types/date-time/stories/date-time.story.d.ts.map +1 -1
- package/build-types/date-time/stories/date.story.d.ts +0 -6
- package/build-types/date-time/stories/date.story.d.ts.map +1 -1
- package/build-types/date-time/stories/time.story.d.ts +0 -6
- package/build-types/date-time/stories/time.story.d.ts.map +1 -1
- package/build-types/date-time/time-picker/index.d.ts +3 -2
- package/build-types/date-time/time-picker/index.d.ts.map +1 -1
- package/build-types/date-time/time-picker/styles.d.ts +4 -8
- package/build-types/date-time/time-picker/styles.d.ts.map +1 -1
- package/build-types/date-time/time-picker/time-input/index.d.ts +1 -1
- package/build-types/date-time/time-picker/time-input/index.d.ts.map +1 -1
- package/build-types/date-time/time-picker/timezone.d.ts.map +1 -1
- package/build-types/date-time/types.d.ts +0 -3
- package/build-types/date-time/types.d.ts.map +1 -1
- package/build-types/date-time/utils.d.ts +0 -3
- package/build-types/date-time/utils.d.ts.map +1 -1
- package/build-types/disabled/index.d.ts +4 -4
- package/build-types/disabled/index.d.ts.map +1 -1
- package/build-types/disabled/stories/index.story.d.ts +0 -6
- package/build-types/disabled/stories/index.story.d.ts.map +1 -1
- package/build-types/disclosure/index.d.ts +0 -3
- package/build-types/disclosure/index.d.ts.map +1 -1
- package/build-types/divider/component.d.ts +11 -9
- package/build-types/divider/component.d.ts.map +1 -1
- package/build-types/divider/stories/index.story.d.ts +0 -3
- package/build-types/divider/stories/index.story.d.ts.map +1 -1
- package/build-types/divider/types.d.ts +0 -6
- package/build-types/divider/types.d.ts.map +1 -1
- package/build-types/draggable/index.d.ts +1 -4
- package/build-types/draggable/index.d.ts.map +1 -1
- package/build-types/draggable/stories/index.story.d.ts +0 -6
- package/build-types/draggable/stories/index.story.d.ts.map +1 -1
- package/build-types/draggable/types.d.ts +0 -3
- package/build-types/draggable/types.d.ts.map +1 -1
- package/build-types/drop-zone/index.d.ts +0 -3
- package/build-types/drop-zone/index.d.ts.map +1 -1
- package/build-types/drop-zone/provider.d.ts +1 -1
- package/build-types/drop-zone/provider.d.ts.map +1 -1
- package/build-types/drop-zone/stories/index.story.d.ts +0 -6
- package/build-types/drop-zone/stories/index.story.d.ts.map +1 -1
- package/build-types/dropdown/dropdown-content-wrapper.d.ts +6 -1
- package/build-types/dropdown/dropdown-content-wrapper.d.ts.map +1 -1
- package/build-types/dropdown/index.d.ts +5 -1
- package/build-types/dropdown/index.d.ts.map +1 -1
- package/build-types/dropdown/stories/index.story.d.ts +0 -6
- package/build-types/dropdown/stories/index.story.d.ts.map +1 -1
- package/build-types/dropdown/styles.d.ts.map +1 -1
- package/build-types/dropdown/types.d.ts +4 -0
- package/build-types/dropdown/types.d.ts.map +1 -1
- package/build-types/dropdown-menu/index.d.ts +5 -1
- package/build-types/dropdown-menu/index.d.ts.map +1 -1
- package/build-types/dropdown-menu/stories/index.story.d.ts +0 -6
- package/build-types/dropdown-menu/stories/index.story.d.ts.map +1 -1
- package/build-types/dropdown-menu/types.d.ts +0 -6
- package/build-types/dropdown-menu/types.d.ts.map +1 -1
- package/build-types/duotone-picker/color-list-picker/index.d.ts +1 -1
- package/build-types/duotone-picker/color-list-picker/index.d.ts.map +1 -1
- package/build-types/duotone-picker/color-list-picker/types.d.ts +0 -3
- package/build-types/duotone-picker/color-list-picker/types.d.ts.map +1 -1
- package/build-types/duotone-picker/custom-duotone-bar.d.ts +1 -1
- package/build-types/duotone-picker/custom-duotone-bar.d.ts.map +1 -1
- package/build-types/duotone-picker/duotone-picker.d.ts.map +1 -1
- package/build-types/duotone-picker/duotone-swatch.d.ts.map +1 -1
- package/build-types/duotone-picker/stories/duotone-picker.story.d.ts +0 -6
- package/build-types/duotone-picker/stories/duotone-picker.story.d.ts.map +1 -1
- package/build-types/duotone-picker/stories/duotone-swatch.story.d.ts +0 -6
- package/build-types/duotone-picker/stories/duotone-swatch.story.d.ts.map +1 -1
- package/build-types/duotone-picker/utils.d.ts +0 -3
- package/build-types/duotone-picker/utils.d.ts.map +1 -1
- package/build-types/elevation/component.d.ts +2 -3
- package/build-types/elevation/component.d.ts.map +1 -1
- package/build-types/elevation/hook.d.ts +1 -4
- package/build-types/elevation/hook.d.ts.map +1 -1
- package/build-types/elevation/stories/index.story.d.ts +0 -6
- package/build-types/elevation/stories/index.story.d.ts.map +1 -1
- package/build-types/elevation/styles.d.ts.map +1 -1
- package/build-types/elevation/types.d.ts +0 -3
- package/build-types/elevation/types.d.ts.map +1 -1
- package/build-types/external-link/index.d.ts +0 -3
- package/build-types/external-link/index.d.ts.map +1 -1
- package/build-types/external-link/stories/index.story.d.ts +0 -6
- package/build-types/external-link/stories/index.story.d.ts.map +1 -1
- package/build-types/external-link/types.d.ts +0 -3
- package/build-types/external-link/types.d.ts.map +1 -1
- package/build-types/flex/context.d.ts.map +1 -1
- package/build-types/flex/flex/component.d.ts.map +1 -1
- package/build-types/flex/flex/hook.d.ts +1 -1
- package/build-types/flex/flex/hook.d.ts.map +1 -1
- package/build-types/flex/flex-block/component.d.ts.map +1 -1
- package/build-types/flex/flex-block/hook.d.ts +1 -4
- package/build-types/flex/flex-block/hook.d.ts.map +1 -1
- package/build-types/flex/flex-item/component.d.ts.map +1 -1
- package/build-types/flex/flex-item/hook.d.ts +1 -1
- package/build-types/flex/flex-item/hook.d.ts.map +1 -1
- package/build-types/flex/stories/index.story.d.ts +0 -6
- package/build-types/flex/stories/index.story.d.ts.map +1 -1
- package/build-types/flex/types.d.ts +0 -6
- package/build-types/flex/types.d.ts.map +1 -1
- package/build-types/focal-point-picker/controls.d.ts +1 -1
- package/build-types/focal-point-picker/controls.d.ts.map +1 -1
- package/build-types/focal-point-picker/focal-point.d.ts +0 -3
- package/build-types/focal-point-picker/focal-point.d.ts.map +1 -1
- package/build-types/focal-point-picker/grid.d.ts.map +1 -1
- package/build-types/focal-point-picker/index.d.ts.map +1 -1
- package/build-types/focal-point-picker/media.d.ts.map +1 -1
- package/build-types/focal-point-picker/stories/index.story.d.ts +0 -6
- package/build-types/focal-point-picker/stories/index.story.d.ts.map +1 -1
- package/build-types/focal-point-picker/styles/focal-point-picker-style.d.ts +128 -130
- package/build-types/focal-point-picker/styles/focal-point-picker-style.d.ts.map +1 -1
- package/build-types/focal-point-picker/styles/focal-point-style.d.ts.map +1 -1
- package/build-types/focal-point-picker/types.d.ts +0 -6
- package/build-types/focal-point-picker/types.d.ts.map +1 -1
- package/build-types/focusable-iframe/index.d.ts +0 -3
- package/build-types/focusable-iframe/index.d.ts.map +1 -1
- package/build-types/focusable-iframe/types.d.ts +0 -3
- package/build-types/focusable-iframe/types.d.ts.map +1 -1
- package/build-types/font-size-picker/constants.d.ts.map +1 -1
- package/build-types/font-size-picker/font-size-picker-select.d.ts +0 -3
- package/build-types/font-size-picker/font-size-picker-select.d.ts.map +1 -1
- package/build-types/font-size-picker/font-size-picker-toggle-group.d.ts.map +1 -1
- package/build-types/font-size-picker/index.d.ts +12 -2
- package/build-types/font-size-picker/index.d.ts.map +1 -1
- package/build-types/font-size-picker/stories/e2e/index.story.d.ts +12 -7
- package/build-types/font-size-picker/stories/e2e/index.story.d.ts.map +1 -1
- package/build-types/font-size-picker/stories/index.story.d.ts +0 -6
- package/build-types/font-size-picker/stories/index.story.d.ts.map +1 -1
- package/build-types/font-size-picker/styles.d.ts +2 -2
- package/build-types/font-size-picker/styles.d.ts.map +1 -1
- package/build-types/font-size-picker/types.d.ts +2 -15
- package/build-types/font-size-picker/types.d.ts.map +1 -1
- package/build-types/font-size-picker/utils.d.ts +0 -3
- package/build-types/font-size-picker/utils.d.ts.map +1 -1
- package/build-types/form-file-upload/index.d.ts.map +1 -1
- package/build-types/form-file-upload/stories/index.story.d.ts +0 -6
- package/build-types/form-file-upload/stories/index.story.d.ts.map +1 -1
- package/build-types/form-file-upload/types.d.ts +0 -6
- package/build-types/form-file-upload/types.d.ts.map +1 -1
- package/build-types/form-toggle/index.d.ts +0 -3
- package/build-types/form-toggle/index.d.ts.map +1 -1
- package/build-types/form-toggle/stories/index.story.d.ts +0 -6
- package/build-types/form-toggle/stories/index.story.d.ts.map +1 -1
- package/build-types/form-toggle/types.d.ts +0 -3
- package/build-types/form-toggle/types.d.ts.map +1 -1
- package/build-types/form-token-field/index.d.ts.map +1 -1
- package/build-types/form-token-field/stories/index.story.d.ts +0 -6
- package/build-types/form-token-field/stories/index.story.d.ts.map +1 -1
- package/build-types/form-token-field/suggestions-list.d.ts +1 -4
- package/build-types/form-token-field/suggestions-list.d.ts.map +1 -1
- package/build-types/form-token-field/token-input.d.ts +0 -3
- package/build-types/form-token-field/token-input.d.ts.map +1 -1
- package/build-types/form-token-field/token.d.ts +1 -1
- package/build-types/form-token-field/token.d.ts.map +1 -1
- package/build-types/form-token-field/types.d.ts +0 -3
- package/build-types/form-token-field/types.d.ts.map +1 -1
- package/build-types/gradient-picker/index.d.ts.map +1 -1
- package/build-types/gradient-picker/stories/index.story.d.ts +1 -6
- package/build-types/gradient-picker/stories/index.story.d.ts.map +1 -1
- package/build-types/gradient-picker/test/index.d.ts +2 -0
- package/build-types/gradient-picker/test/index.d.ts.map +1 -0
- package/build-types/gradient-picker/types.d.ts +19 -7
- package/build-types/gradient-picker/types.d.ts.map +1 -1
- package/build-types/grid/component.d.ts.map +1 -1
- package/build-types/grid/hook.d.ts +1 -4
- package/build-types/grid/hook.d.ts.map +1 -1
- package/build-types/grid/stories/index.story.d.ts +0 -3
- package/build-types/grid/stories/index.story.d.ts.map +1 -1
- package/build-types/grid/types.d.ts +0 -6
- package/build-types/grid/types.d.ts.map +1 -1
- package/build-types/grid/utils.d.ts +0 -3
- package/build-types/grid/utils.d.ts.map +1 -1
- package/build-types/guide/icons.d.ts.map +1 -1
- package/build-types/guide/index.d.ts +1 -1
- package/build-types/guide/index.d.ts.map +1 -1
- package/build-types/guide/page-control.d.ts +1 -1
- package/build-types/guide/page-control.d.ts.map +1 -1
- package/build-types/guide/page.d.ts +0 -3
- package/build-types/guide/page.d.ts.map +1 -1
- package/build-types/guide/stories/index.story.d.ts +0 -3
- package/build-types/guide/stories/index.story.d.ts.map +1 -1
- package/build-types/guide/types.d.ts +0 -6
- package/build-types/guide/types.d.ts.map +1 -1
- package/build-types/h-stack/component.d.ts.map +1 -1
- package/build-types/h-stack/hook.d.ts +1 -4
- package/build-types/h-stack/hook.d.ts.map +1 -1
- package/build-types/h-stack/stories/e2e/index.story.d.ts +0 -3
- package/build-types/h-stack/stories/e2e/index.story.d.ts.map +1 -1
- package/build-types/h-stack/stories/index.story.d.ts +0 -3
- package/build-types/h-stack/stories/index.story.d.ts.map +1 -1
- package/build-types/h-stack/types.d.ts +0 -6
- package/build-types/h-stack/types.d.ts.map +1 -1
- package/build-types/h-stack/utils.d.ts +0 -6
- package/build-types/h-stack/utils.d.ts.map +1 -1
- package/build-types/heading/component.d.ts.map +1 -1
- package/build-types/heading/hook.d.ts +0 -3
- package/build-types/heading/hook.d.ts.map +1 -1
- package/build-types/heading/stories/index.story.d.ts +0 -6
- package/build-types/heading/stories/index.story.d.ts.map +1 -1
- package/build-types/heading/types.d.ts +0 -3
- package/build-types/heading/types.d.ts.map +1 -1
- package/build-types/higher-order/navigate-regions/index.d.ts.map +1 -1
- package/build-types/higher-order/with-constrained-tabbing/index.d.ts.map +1 -1
- package/build-types/higher-order/with-fallback-styles/index.d.ts +3 -3
- package/build-types/higher-order/with-fallback-styles/index.d.ts.map +1 -1
- package/build-types/higher-order/with-filters/index.d.ts.map +1 -1
- package/build-types/higher-order/with-focus-return/index.d.ts.map +1 -1
- package/build-types/higher-order/with-notices/index.d.ts.map +1 -1
- package/build-types/higher-order/with-notices/types.d.ts +0 -3
- package/build-types/higher-order/with-notices/types.d.ts.map +1 -1
- package/build-types/higher-order/with-spoken-messages/index.d.ts.map +1 -1
- package/build-types/icon/index.d.ts +0 -3
- package/build-types/icon/index.d.ts.map +1 -1
- package/build-types/input-control/backdrop.d.ts.map +1 -1
- package/build-types/input-control/index.d.ts +0 -1
- package/build-types/input-control/index.d.ts.map +1 -1
- package/build-types/input-control/input-base.d.ts.map +1 -1
- package/build-types/input-control/input-field.d.ts.map +1 -1
- package/build-types/input-control/input-prefix-wrapper.d.ts.map +1 -1
- package/build-types/input-control/input-suffix-wrapper.d.ts.map +1 -1
- package/build-types/input-control/label.d.ts.map +1 -1
- package/build-types/input-control/reducer/actions.d.ts +0 -6
- package/build-types/input-control/reducer/actions.d.ts.map +1 -1
- package/build-types/input-control/reducer/reducer.d.ts +0 -6
- package/build-types/input-control/reducer/reducer.d.ts.map +1 -1
- package/build-types/input-control/reducer/state.d.ts +0 -6
- package/build-types/input-control/reducer/state.d.ts.map +1 -1
- package/build-types/input-control/stories/index.story.d.ts +0 -6
- package/build-types/input-control/stories/index.story.d.ts.map +1 -1
- package/build-types/input-control/styles/input-control-styles.d.ts +3 -16
- package/build-types/input-control/styles/input-control-styles.d.ts.map +1 -1
- package/build-types/input-control/types.d.ts +15 -35
- package/build-types/input-control/types.d.ts.map +1 -1
- package/build-types/input-control/utils.d.ts +0 -6
- package/build-types/input-control/utils.d.ts.map +1 -1
- package/build-types/isolated-event-container/index.d.ts.map +1 -1
- package/build-types/item-group/context.d.ts +0 -3
- package/build-types/item-group/context.d.ts.map +1 -1
- package/build-types/item-group/item/component.d.ts +0 -3
- package/build-types/item-group/item/component.d.ts.map +1 -1
- package/build-types/item-group/item/hook.d.ts +1 -4
- package/build-types/item-group/item/hook.d.ts.map +1 -1
- package/build-types/item-group/item-group/component.d.ts.map +1 -1
- package/build-types/item-group/item-group/hook.d.ts +1 -4
- package/build-types/item-group/item-group/hook.d.ts.map +1 -1
- package/build-types/item-group/stories/index.story.d.ts +0 -6
- package/build-types/item-group/stories/index.story.d.ts.map +1 -1
- package/build-types/keyboard-shortcuts/index.d.ts +1 -4
- package/build-types/keyboard-shortcuts/index.d.ts.map +1 -1
- package/build-types/keyboard-shortcuts/stories/index.story.d.ts +0 -6
- package/build-types/keyboard-shortcuts/stories/index.story.d.ts.map +1 -1
- package/build-types/keyboard-shortcuts/types.d.ts +0 -3
- package/build-types/keyboard-shortcuts/types.d.ts.map +1 -1
- package/build-types/lock-unlock.d.ts.map +1 -1
- package/build-types/menu/checkbox-item.d.ts.map +1 -1
- package/build-types/menu/context.d.ts +0 -3
- package/build-types/menu/context.d.ts.map +1 -1
- package/build-types/menu/group-label.d.ts.map +1 -1
- package/build-types/menu/group.d.ts.map +1 -1
- package/build-types/menu/index.d.ts +7 -3
- package/build-types/menu/index.d.ts.map +1 -1
- package/build-types/menu/item-help-text.d.ts +1 -1
- package/build-types/menu/item-help-text.d.ts.map +1 -1
- package/build-types/menu/item-label.d.ts +1 -1
- package/build-types/menu/item-label.d.ts.map +1 -1
- package/build-types/menu/item.d.ts.map +1 -1
- package/build-types/menu/popover.d.ts.map +1 -1
- package/build-types/menu/radio-item.d.ts.map +1 -1
- package/build-types/menu/separator.d.ts.map +1 -1
- package/build-types/menu/stories/index.story.d.ts +1 -4
- package/build-types/menu/stories/index.story.d.ts.map +1 -1
- package/build-types/menu/styles.d.ts +2 -5
- package/build-types/menu/styles.d.ts.map +1 -1
- package/build-types/menu/submenu-trigger-item.d.ts.map +1 -1
- package/build-types/menu/trigger-button.d.ts.map +1 -1
- package/build-types/menu/types.d.ts +0 -3
- package/build-types/menu/types.d.ts.map +1 -1
- package/build-types/menu/use-menu-item-hide-on-click.d.ts +3 -0
- package/build-types/menu/use-menu-item-hide-on-click.d.ts.map +1 -0
- package/build-types/menu-group/index.d.ts +0 -3
- package/build-types/menu-group/index.d.ts.map +1 -1
- package/build-types/menu-group/stories/index.story.d.ts +0 -6
- package/build-types/menu-group/stories/index.story.d.ts.map +1 -1
- package/build-types/menu-group/types.d.ts +0 -3
- package/build-types/menu-group/types.d.ts.map +1 -1
- package/build-types/menu-item/index.d.ts.map +1 -1
- package/build-types/menu-item/stories/index.story.d.ts +0 -3
- package/build-types/menu-item/stories/index.story.d.ts.map +1 -1
- package/build-types/menu-item/types.d.ts +0 -6
- package/build-types/menu-item/types.d.ts.map +1 -1
- package/build-types/menu-items-choice/index.d.ts +1 -1
- package/build-types/menu-items-choice/index.d.ts.map +1 -1
- package/build-types/menu-items-choice/stories/index.story.d.ts +0 -6
- package/build-types/menu-items-choice/stories/index.story.d.ts.map +1 -1
- package/build-types/menu-items-choice/types.d.ts +0 -3
- package/build-types/menu-items-choice/types.d.ts.map +1 -1
- package/build-types/modal/index.d.ts.map +1 -1
- package/build-types/modal/stories/index.story.d.ts +0 -3
- package/build-types/modal/stories/index.story.d.ts.map +1 -1
- package/build-types/modal/types.d.ts +2 -3
- package/build-types/modal/types.d.ts.map +1 -1
- package/build-types/modal/use-modal-exit-animation.d.ts.map +1 -1
- package/build-types/navigable-container/container.d.ts.map +1 -1
- package/build-types/navigable-container/index.d.ts +0 -3
- package/build-types/navigable-container/index.d.ts.map +1 -1
- package/build-types/navigable-container/menu.d.ts +0 -3
- package/build-types/navigable-container/menu.d.ts.map +1 -1
- package/build-types/navigable-container/stories/navigable-menu.story.d.ts +0 -6
- package/build-types/navigable-container/stories/navigable-menu.story.d.ts.map +1 -1
- package/build-types/navigable-container/stories/tabbable-container.story.d.ts +0 -6
- package/build-types/navigable-container/stories/tabbable-container.story.d.ts.map +1 -1
- package/build-types/navigable-container/tabbable.d.ts +0 -3
- package/build-types/navigable-container/tabbable.d.ts.map +1 -1
- package/build-types/navigable-container/types.d.ts +0 -6
- package/build-types/navigable-container/types.d.ts.map +1 -1
- package/build-types/navigator/context.d.ts +0 -3
- package/build-types/navigator/context.d.ts.map +1 -1
- package/build-types/navigator/index.d.ts +2180 -50
- package/build-types/navigator/index.d.ts.map +1 -1
- package/build-types/navigator/legacy.d.ts +2953 -73
- package/build-types/navigator/legacy.d.ts.map +1 -1
- package/build-types/navigator/navigator/component.d.ts.map +1 -1
- package/build-types/navigator/navigator-back-button/component.d.ts.map +1 -1
- package/build-types/navigator/navigator-back-button/hook.d.ts +1 -4
- package/build-types/navigator/navigator-back-button/hook.d.ts.map +1 -1
- package/build-types/navigator/navigator-button/component.d.ts.map +1 -1
- package/build-types/navigator/navigator-button/hook.d.ts +1 -4
- package/build-types/navigator/navigator-button/hook.d.ts.map +1 -1
- package/build-types/navigator/navigator-screen/component.d.ts +6 -1
- package/build-types/navigator/navigator-screen/component.d.ts.map +1 -1
- package/build-types/navigator/navigator-screen/use-screen-animate-presence.d.ts +1 -1
- package/build-types/navigator/navigator-screen/use-screen-animate-presence.d.ts.map +1 -1
- package/build-types/navigator/navigator-to-parent-button/component.d.ts.map +1 -1
- package/build-types/navigator/stories/index.story.d.ts +0 -3
- package/build-types/navigator/stories/index.story.d.ts.map +1 -1
- package/build-types/navigator/styles.d.ts.map +1 -1
- package/build-types/navigator/types.d.ts +0 -6
- package/build-types/navigator/types.d.ts.map +1 -1
- package/build-types/navigator/use-navigator.d.ts.map +1 -1
- package/build-types/navigator/utils/router.d.ts +0 -3
- package/build-types/navigator/utils/router.d.ts.map +1 -1
- package/build-types/notice/index.d.ts +1 -1
- package/build-types/notice/index.d.ts.map +1 -1
- package/build-types/notice/list.d.ts +1 -1
- package/build-types/notice/list.d.ts.map +1 -1
- package/build-types/notice/stories/index.story.d.ts +0 -6
- package/build-types/notice/stories/index.story.d.ts.map +1 -1
- package/build-types/notice/types.d.ts +0 -3
- package/build-types/notice/types.d.ts.map +1 -1
- package/build-types/number-control/index.d.ts +1 -2
- package/build-types/number-control/index.d.ts.map +1 -1
- package/build-types/number-control/stories/index.story.d.ts +1 -8
- package/build-types/number-control/stories/index.story.d.ts.map +1 -1
- package/build-types/number-control/styles/number-control-styles.d.ts.map +1 -1
- package/build-types/number-control/types.d.ts +0 -10
- package/build-types/number-control/types.d.ts.map +1 -1
- package/build-types/palette-edit/index.d.ts +1 -1
- package/build-types/palette-edit/index.d.ts.map +1 -1
- package/build-types/palette-edit/stories/index.story.d.ts +0 -6
- package/build-types/palette-edit/stories/index.story.d.ts.map +1 -1
- package/build-types/palette-edit/styles.d.ts +376 -376
- package/build-types/palette-edit/styles.d.ts.map +1 -1
- package/build-types/palette-edit/types.d.ts +0 -6
- package/build-types/palette-edit/types.d.ts.map +1 -1
- package/build-types/panel/body.d.ts +0 -3
- package/build-types/panel/body.d.ts.map +1 -1
- package/build-types/panel/header.d.ts +0 -3
- package/build-types/panel/header.d.ts.map +1 -1
- package/build-types/panel/index.d.ts.map +1 -1
- package/build-types/panel/row.d.ts +0 -3
- package/build-types/panel/row.d.ts.map +1 -1
- package/build-types/panel/stories/index.story.d.ts +0 -6
- package/build-types/panel/stories/index.story.d.ts.map +1 -1
- package/build-types/panel/types.d.ts +0 -3
- package/build-types/panel/types.d.ts.map +1 -1
- package/build-types/placeholder/index.d.ts.map +1 -1
- package/build-types/placeholder/stories/index.story.d.ts +0 -6
- package/build-types/placeholder/stories/index.story.d.ts.map +1 -1
- package/build-types/placeholder/types.d.ts +0 -6
- package/build-types/placeholder/types.d.ts.map +1 -1
- package/build-types/popover/index.d.ts +5 -1
- package/build-types/popover/index.d.ts.map +1 -1
- package/build-types/popover/overlay-middlewares.d.ts +0 -3
- package/build-types/popover/overlay-middlewares.d.ts.map +1 -1
- package/build-types/popover/stories/e2e/index.story.d.ts +5 -1
- package/build-types/popover/stories/e2e/index.story.d.ts.map +1 -1
- package/build-types/popover/stories/index.story.d.ts +0 -3
- package/build-types/popover/stories/index.story.d.ts.map +1 -1
- package/build-types/popover/test/utils/index.d.ts +0 -3
- package/build-types/popover/test/utils/index.d.ts.map +1 -1
- package/build-types/popover/types.d.ts +1 -1
- package/build-types/popover/utils.d.ts +0 -3
- package/build-types/popover/utils.d.ts.map +1 -1
- package/build-types/private-apis.d.ts.map +1 -1
- package/build-types/progress-bar/index.d.ts.map +1 -1
- package/build-types/progress-bar/stories/index.story.d.ts +0 -6
- package/build-types/progress-bar/stories/index.story.d.ts.map +1 -1
- package/build-types/progress-bar/styles.d.ts.map +1 -1
- package/build-types/query-controls/author-select.d.ts +1 -1
- package/build-types/query-controls/author-select.d.ts.map +1 -1
- package/build-types/query-controls/index.d.ts.map +1 -1
- package/build-types/query-controls/stories/index.story.d.ts +0 -6
- package/build-types/query-controls/stories/index.story.d.ts.map +1 -1
- package/build-types/query-controls/terms.d.ts +0 -3
- package/build-types/query-controls/terms.d.ts.map +1 -1
- package/build-types/query-controls/types.d.ts +0 -3
- package/build-types/query-controls/types.d.ts.map +1 -1
- package/build-types/radio-control/index.d.ts.map +1 -1
- package/build-types/radio-control/stories/index.story.d.ts +0 -6
- package/build-types/radio-control/stories/index.story.d.ts.map +1 -1
- package/build-types/radio-control/types.d.ts +0 -3
- package/build-types/radio-control/types.d.ts.map +1 -1
- package/build-types/radio-group/context.d.ts +0 -3
- package/build-types/radio-group/context.d.ts.map +1 -1
- package/build-types/radio-group/index.d.ts.map +1 -1
- package/build-types/radio-group/radio.d.ts.map +1 -1
- package/build-types/radio-group/stories/index.story.d.ts +0 -6
- package/build-types/radio-group/stories/index.story.d.ts.map +1 -1
- package/build-types/range-control/index.d.ts +2 -4
- package/build-types/range-control/index.d.ts.map +1 -1
- package/build-types/range-control/input-range.d.ts +1 -1
- package/build-types/range-control/input-range.d.ts.map +1 -1
- package/build-types/range-control/mark.d.ts.map +1 -1
- package/build-types/range-control/rail.d.ts.map +1 -1
- package/build-types/range-control/stories/index.story.d.ts +0 -6
- package/build-types/range-control/stories/index.story.d.ts.map +1 -1
- package/build-types/range-control/styles/range-control-styles.d.ts +1 -2
- package/build-types/range-control/styles/range-control-styles.d.ts.map +1 -1
- package/build-types/range-control/tooltip.d.ts.map +1 -1
- package/build-types/range-control/types.d.ts +2 -22
- package/build-types/range-control/types.d.ts.map +1 -1
- package/build-types/range-control/utils.d.ts.map +1 -1
- package/build-types/resizable-box/index.d.ts +0 -3
- package/build-types/resizable-box/index.d.ts.map +1 -1
- package/build-types/resizable-box/resize-tooltip/index.d.ts.map +1 -1
- package/build-types/resizable-box/resize-tooltip/label.d.ts +0 -3
- package/build-types/resizable-box/resize-tooltip/label.d.ts.map +1 -1
- package/build-types/resizable-box/resize-tooltip/styles/resize-tooltip.styles.d.ts +1 -1
- package/build-types/resizable-box/resize-tooltip/styles/resize-tooltip.styles.d.ts.map +1 -1
- package/build-types/resizable-box/resize-tooltip/utils.d.ts +1 -1
- package/build-types/resizable-box/resize-tooltip/utils.d.ts.map +1 -1
- package/build-types/resizable-box/stories/index.story.d.ts +0 -6
- package/build-types/resizable-box/stories/index.story.d.ts.map +1 -1
- package/build-types/responsive-wrapper/index.d.ts +1 -4
- package/build-types/responsive-wrapper/index.d.ts.map +1 -1
- package/build-types/responsive-wrapper/stories/index.story.d.ts +0 -6
- package/build-types/responsive-wrapper/stories/index.story.d.ts.map +1 -1
- package/build-types/sandbox/index.d.ts +34 -3
- package/build-types/sandbox/index.d.ts.map +1 -1
- package/build-types/sandbox/stories/index.story.d.ts +1 -6
- package/build-types/sandbox/stories/index.story.d.ts.map +1 -1
- package/build-types/sandbox/types.d.ts +21 -0
- package/build-types/sandbox/types.d.ts.map +1 -1
- package/build-types/scroll-lock/index.d.ts.map +1 -1
- package/build-types/scroll-lock/stories/index.story.d.ts +0 -3
- package/build-types/scroll-lock/stories/index.story.d.ts.map +1 -1
- package/build-types/scrollable/component.d.ts.map +1 -1
- package/build-types/scrollable/hook.d.ts +1 -4
- package/build-types/scrollable/hook.d.ts.map +1 -1
- package/build-types/scrollable/stories/index.story.d.ts +0 -3
- package/build-types/scrollable/stories/index.story.d.ts.map +1 -1
- package/build-types/scrollable/styles.d.ts.map +1 -1
- package/build-types/scrollable/types.d.ts +0 -3
- package/build-types/scrollable/types.d.ts.map +1 -1
- package/build-types/search-control/index.d.ts.map +1 -1
- package/build-types/search-control/stories/index.story.d.ts +0 -6
- package/build-types/search-control/stories/index.story.d.ts.map +1 -1
- package/build-types/search-control/types.d.ts +1 -4
- package/build-types/search-control/types.d.ts.map +1 -1
- package/build-types/select-control/chevron-down.d.ts.map +1 -1
- package/build-types/select-control/index.d.ts.map +1 -1
- package/build-types/select-control/stories/index.story.d.ts +0 -6
- package/build-types/select-control/stories/index.story.d.ts.map +1 -1
- package/build-types/select-control/styles/select-control-styles.d.ts +2 -2
- package/build-types/select-control/styles/select-control-styles.d.ts.map +1 -1
- package/build-types/select-control/types.d.ts +9 -7
- package/build-types/select-control/types.d.ts.map +1 -1
- package/build-types/shortcut/index.d.ts +0 -3
- package/build-types/shortcut/index.d.ts.map +1 -1
- package/build-types/shortcut/stories/index.story.d.ts +0 -6
- package/build-types/shortcut/stories/index.story.d.ts.map +1 -1
- package/build-types/slot-fill/bubbles-virtually/slot.d.ts +1 -1
- package/build-types/slot-fill/bubbles-virtually/slot.d.ts.map +1 -1
- package/build-types/slot-fill/bubbles-virtually/use-slot-fills.d.ts.map +1 -1
- package/build-types/slot-fill/bubbles-virtually/use-slot.d.ts.map +1 -1
- package/build-types/slot-fill/context.d.ts +0 -3
- package/build-types/slot-fill/context.d.ts.map +1 -1
- package/build-types/slot-fill/fill.d.ts.map +1 -1
- package/build-types/slot-fill/index.d.ts +1 -4
- package/build-types/slot-fill/index.d.ts.map +1 -1
- package/build-types/slot-fill/provider.d.ts.map +1 -1
- package/build-types/slot-fill/slot.d.ts.map +1 -1
- package/build-types/slot-fill/stories/index.story.d.ts +1 -6
- package/build-types/slot-fill/stories/index.story.d.ts.map +1 -1
- package/build-types/slot-fill/types.d.ts +0 -6
- package/build-types/slot-fill/types.d.ts.map +1 -1
- package/build-types/snackbar/index.d.ts +1 -1
- package/build-types/snackbar/index.d.ts.map +1 -1
- package/build-types/snackbar/list.d.ts +1 -1
- package/build-types/snackbar/list.d.ts.map +1 -1
- 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/stories/list.story.d.ts +0 -6
- package/build-types/snackbar/stories/list.story.d.ts.map +1 -1
- package/build-types/snackbar/types.d.ts +0 -6
- package/build-types/snackbar/types.d.ts.map +1 -1
- package/build-types/spacer/component.d.ts.map +1 -1
- package/build-types/spacer/hook.d.ts +3 -5
- package/build-types/spacer/hook.d.ts.map +1 -1
- package/build-types/spacer/stories/index.story.d.ts +1 -6
- package/build-types/spacer/stories/index.story.d.ts.map +1 -1
- package/build-types/spacer/types.d.ts +0 -6
- package/build-types/spacer/types.d.ts.map +1 -1
- package/build-types/spinner/index.d.ts.map +1 -1
- package/build-types/spinner/stories/index.story.d.ts +0 -6
- package/build-types/spinner/stories/index.story.d.ts.map +1 -1
- package/build-types/style-provider/types.d.ts +0 -3
- package/build-types/style-provider/types.d.ts.map +1 -1
- package/build-types/surface/component.d.ts +6 -0
- package/build-types/surface/component.d.ts.map +1 -1
- package/build-types/surface/hook.d.ts +1 -1
- package/build-types/surface/hook.d.ts.map +1 -1
- package/build-types/surface/stories/index.story.d.ts +0 -6
- package/build-types/surface/stories/index.story.d.ts.map +1 -1
- package/build-types/tab-panel/index.d.ts.map +1 -1
- package/build-types/tab-panel/types.d.ts +0 -6
- package/build-types/tab-panel/types.d.ts.map +1 -1
- package/build-types/tabs/context.d.ts +0 -3
- package/build-types/tabs/context.d.ts.map +1 -1
- package/build-types/tabs/index.d.ts +0 -3
- package/build-types/tabs/index.d.ts.map +1 -1
- package/build-types/tabs/styles.d.ts.map +1 -1
- package/build-types/tabs/tab.d.ts +0 -6
- package/build-types/tabs/tab.d.ts.map +1 -1
- package/build-types/tabs/tablist.d.ts +0 -3
- package/build-types/tabs/tablist.d.ts.map +1 -1
- package/build-types/tabs/tabpanel.d.ts +0 -3
- package/build-types/tabs/tabpanel.d.ts.map +1 -1
- package/build-types/tabs/types.d.ts +0 -3
- package/build-types/tabs/types.d.ts.map +1 -1
- package/build-types/tabs/use-track-overflow.d.ts.map +1 -1
- package/build-types/text/component.d.ts.map +1 -1
- package/build-types/text/get-line-height.d.ts +0 -6
- package/build-types/text/get-line-height.d.ts.map +1 -1
- package/build-types/text/hook.d.ts +1 -4
- package/build-types/text/hook.d.ts.map +1 -1
- package/build-types/text/stories/index.story.d.ts +3 -9
- package/build-types/text/stories/index.story.d.ts.map +1 -1
- package/build-types/text/styles.d.ts.map +1 -1
- package/build-types/text/types.d.ts +1 -7
- package/build-types/text/types.d.ts.map +1 -1
- package/build-types/text/utils.d.ts +1 -1
- package/build-types/text/utils.d.ts.map +1 -1
- package/build-types/text-control/index.d.ts.map +1 -1
- package/build-types/text-control/stories/index.story.d.ts +0 -6
- package/build-types/text-control/stories/index.story.d.ts.map +1 -1
- package/build-types/text-control/types.d.ts +0 -3
- package/build-types/text-control/types.d.ts.map +1 -1
- package/build-types/text-highlight/index.d.ts.map +1 -1
- package/build-types/text-highlight/stories/index.story.d.ts +0 -6
- package/build-types/text-highlight/stories/index.story.d.ts.map +1 -1
- package/build-types/textarea-control/index.d.ts.map +1 -1
- package/build-types/textarea-control/stories/index.story.d.ts +0 -6
- package/build-types/textarea-control/stories/index.story.d.ts.map +1 -1
- package/build-types/textarea-control/styles/textarea-control-styles.d.ts.map +1 -1
- package/build-types/textarea-control/types.d.ts +0 -6
- package/build-types/textarea-control/types.d.ts.map +1 -1
- package/build-types/tip/index.d.ts +0 -3
- package/build-types/tip/index.d.ts.map +1 -1
- package/build-types/tip/stories/index.story.d.ts +0 -6
- package/build-types/tip/stories/index.story.d.ts.map +1 -1
- package/build-types/tip/types.d.ts +0 -3
- package/build-types/tip/types.d.ts.map +1 -1
- package/build-types/toggle-control/index.d.ts.map +1 -1
- package/build-types/toggle-control/stories/index.story.d.ts +9 -17
- package/build-types/toggle-control/stories/index.story.d.ts.map +1 -1
- package/build-types/toggle-control/types.d.ts +0 -6
- package/build-types/toggle-control/types.d.ts.map +1 -1
- package/build-types/toggle-group-control/context.d.ts +0 -3
- package/build-types/toggle-group-control/context.d.ts.map +1 -1
- package/build-types/toggle-group-control/stories/index.story.d.ts +0 -6
- package/build-types/toggle-group-control/stories/index.story.d.ts.map +1 -1
- package/build-types/toggle-group-control/toggle-group-control/as-button-group.d.ts.map +1 -1
- package/build-types/toggle-group-control/toggle-group-control/as-radio-group.d.ts.map +1 -1
- package/build-types/toggle-group-control/toggle-group-control/component.d.ts +18 -13
- package/build-types/toggle-group-control/toggle-group-control/component.d.ts.map +1 -1
- package/build-types/toggle-group-control/toggle-group-control/utils.d.ts +0 -3
- package/build-types/toggle-group-control/toggle-group-control/utils.d.ts.map +1 -1
- package/build-types/toggle-group-control/toggle-group-control-option/component.d.ts.map +1 -1
- package/build-types/toggle-group-control/toggle-group-control-option-base/component.d.ts +5 -4
- 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-icon/component.d.ts.map +1 -1
- package/build-types/toggle-group-control/types.d.ts +4 -13
- package/build-types/toggle-group-control/types.d.ts.map +1 -1
- package/build-types/toolbar/stories/index.story.d.ts +0 -6
- package/build-types/toolbar/stories/index.story.d.ts.map +1 -1
- package/build-types/toolbar/toolbar/index.d.ts.map +1 -1
- package/build-types/toolbar/toolbar/toolbar-container.d.ts.map +1 -1
- package/build-types/toolbar/toolbar/types.d.ts +0 -3
- package/build-types/toolbar/toolbar/types.d.ts.map +1 -1
- package/build-types/toolbar/toolbar-button/index.d.ts.map +1 -1
- package/build-types/toolbar/toolbar-button/toolbar-button-container.d.ts +0 -3
- package/build-types/toolbar/toolbar-button/toolbar-button-container.d.ts.map +1 -1
- package/build-types/toolbar/toolbar-button/types.d.ts +0 -3
- package/build-types/toolbar/toolbar-button/types.d.ts.map +1 -1
- package/build-types/toolbar/toolbar-context/index.d.ts +0 -3
- package/build-types/toolbar/toolbar-context/index.d.ts.map +1 -1
- package/build-types/toolbar/toolbar-dropdown-menu/index.d.ts.map +1 -1
- package/build-types/toolbar/toolbar-group/index.d.ts.map +1 -1
- package/build-types/toolbar/toolbar-group/toolbar-group-collapsed.d.ts.map +1 -1
- package/build-types/toolbar/toolbar-group/toolbar-group-container.d.ts +0 -3
- package/build-types/toolbar/toolbar-group/toolbar-group-container.d.ts.map +1 -1
- package/build-types/toolbar/toolbar-group/types.d.ts +0 -9
- package/build-types/toolbar/toolbar-group/types.d.ts.map +1 -1
- package/build-types/toolbar/toolbar-item/index.d.ts.map +1 -1
- package/build-types/toolbar/toolbar-item/types.d.ts +0 -3
- package/build-types/toolbar/toolbar-item/types.d.ts.map +1 -1
- package/build-types/tools-panel/context.d.ts +0 -3
- package/build-types/tools-panel/context.d.ts.map +1 -1
- package/build-types/tools-panel/stories/index.story.d.ts +0 -6
- package/build-types/tools-panel/stories/index.story.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 -1
- 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 -1
- package/build-types/tools-panel/tools-panel-header/hook.d.ts.map +1 -1
- package/build-types/tools-panel/tools-panel-item/component.d.ts.map +1 -1
- package/build-types/tools-panel/tools-panel-item/hook.d.ts +1 -1
- package/build-types/tools-panel/tools-panel-item/hook.d.ts.map +1 -1
- package/build-types/tools-panel/types.d.ts +0 -6
- package/build-types/tools-panel/types.d.ts.map +1 -1
- package/build-types/tooltip/stories/index.story.d.ts +0 -6
- package/build-types/tooltip/stories/index.story.d.ts.map +1 -1
- package/build-types/tooltip/test/utils/index.d.ts.map +1 -1
- package/build-types/tooltip/types.d.ts +0 -6
- package/build-types/tooltip/types.d.ts.map +1 -1
- package/build-types/tree-grid/cell.d.ts.map +1 -1
- package/build-types/tree-grid/index.d.ts.map +1 -1
- package/build-types/tree-grid/item.d.ts.map +1 -1
- package/build-types/tree-grid/roving-tab-index-context.d.ts.map +1 -1
- package/build-types/tree-grid/roving-tab-index-item.d.ts.map +1 -1
- package/build-types/tree-grid/roving-tab-index.d.ts +1 -1
- package/build-types/tree-grid/roving-tab-index.d.ts.map +1 -1
- package/build-types/tree-grid/row.d.ts.map +1 -1
- package/build-types/tree-grid/stories/index.story.d.ts +0 -6
- package/build-types/tree-grid/stories/index.story.d.ts.map +1 -1
- package/build-types/tree-select/index.d.ts.map +1 -1
- package/build-types/tree-select/stories/index.story.d.ts +0 -6
- package/build-types/tree-select/stories/index.story.d.ts.map +1 -1
- package/build-types/tree-select/types.d.ts +1 -11
- package/build-types/tree-select/types.d.ts.map +1 -1
- package/build-types/truncate/component.d.ts.map +1 -1
- package/build-types/truncate/hook.d.ts +1 -4
- package/build-types/truncate/hook.d.ts.map +1 -1
- package/build-types/truncate/stories/index.story.d.ts +0 -6
- package/build-types/truncate/stories/index.story.d.ts.map +1 -1
- package/build-types/truncate/types.d.ts +0 -3
- package/build-types/truncate/types.d.ts.map +1 -1
- package/build-types/truncate/utils.d.ts.map +1 -1
- package/build-types/unit-control/index.d.ts +2 -4
- package/build-types/unit-control/index.d.ts.map +1 -1
- package/build-types/unit-control/stories/index.story.d.ts +0 -6
- package/build-types/unit-control/stories/index.story.d.ts.map +1 -1
- package/build-types/unit-control/styles/unit-control-styles.d.ts +1 -2
- package/build-types/unit-control/styles/unit-control-styles.d.ts.map +1 -1
- package/build-types/unit-control/types.d.ts +1 -21
- package/build-types/unit-control/types.d.ts.map +1 -1
- package/build-types/unit-control/unit-select-control.d.ts.map +1 -1
- package/build-types/unit-control/utils.d.ts +0 -3
- package/build-types/unit-control/utils.d.ts.map +1 -1
- package/build-types/utils/base-label.d.ts.map +1 -1
- package/build-types/utils/box-sizing.d.ts.map +1 -1
- package/build-types/utils/breakpoint.d.ts +0 -3
- package/build-types/utils/breakpoint.d.ts.map +1 -1
- package/build-types/utils/colors.d.ts.map +1 -1
- package/build-types/utils/config-values.d.ts +1 -3
- package/build-types/utils/element-rect.d.ts.map +1 -1
- package/build-types/utils/font-size.d.ts +0 -3
- package/build-types/utils/font-size.d.ts.map +1 -1
- package/build-types/utils/font.d.ts +0 -3
- package/build-types/utils/font.d.ts.map +1 -1
- package/build-types/utils/get-valid-children.d.ts +0 -3
- package/build-types/utils/get-valid-children.d.ts.map +1 -1
- package/build-types/utils/hooks/use-animated-offset-rect.d.ts +1 -4
- package/build-types/utils/hooks/use-animated-offset-rect.d.ts.map +1 -1
- package/build-types/utils/hooks/use-controlled-state.d.ts +6 -0
- package/build-types/utils/hooks/use-controlled-state.d.ts.map +1 -1
- package/build-types/utils/hooks/use-controlled-value.d.ts +1 -1
- package/build-types/utils/hooks/use-controlled-value.d.ts.map +1 -1
- package/build-types/utils/hooks/use-cx.d.ts.map +1 -1
- package/build-types/utils/hooks/use-on-value-update.d.ts.map +1 -1
- package/build-types/utils/hooks/use-update-effect.d.ts.map +1 -1
- package/build-types/utils/polymorphic-element.d.ts +0 -3
- package/build-types/utils/polymorphic-element.d.ts.map +1 -1
- package/build-types/utils/rtl.d.ts.map +1 -1
- package/build-types/utils/strings.d.ts +0 -12
- package/build-types/utils/strings.d.ts.map +1 -1
- package/build-types/utils/use-responsive-value.d.ts.map +1 -1
- package/build-types/v-stack/component.d.ts.map +1 -1
- package/build-types/v-stack/hook.d.ts +1 -4
- package/build-types/v-stack/hook.d.ts.map +1 -1
- package/build-types/v-stack/stories/e2e/index.story.d.ts +0 -3
- package/build-types/v-stack/stories/e2e/index.story.d.ts.map +1 -1
- package/build-types/v-stack/stories/index.story.d.ts +1 -4
- package/build-types/v-stack/stories/index.story.d.ts.map +1 -1
- package/build-types/v-stack/types.d.ts +0 -6
- package/build-types/v-stack/types.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/combobox-control.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/content-editable-control.d.ts +16 -0
- package/build-types/validated-form-controls/components/content-editable-control.d.ts.map +1 -0
- package/build-types/validated-form-controls/components/custom-select-control.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/form-token-field.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/index.d.ts +1 -5
- package/build-types/validated-form-controls/components/index.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/input-control.d.ts +1 -1
- package/build-types/validated-form-controls/components/input-control.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/range-control.d.ts +2 -4
- package/build-types/validated-form-controls/components/range-control.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/stories/combobox-control.story.d.ts +0 -6
- package/build-types/validated-form-controls/components/stories/combobox-control.story.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/stories/content-editable-control.story.d.ts +6 -0
- package/build-types/validated-form-controls/components/stories/content-editable-control.story.d.ts.map +1 -0
- package/build-types/validated-form-controls/components/stories/custom-select-control.story.d.ts +0 -6
- package/build-types/validated-form-controls/components/stories/custom-select-control.story.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/stories/form-token-field.story.d.ts +0 -6
- package/build-types/validated-form-controls/components/stories/form-token-field.story.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/stories/input-control.story.d.ts +0 -6
- package/build-types/validated-form-controls/components/stories/input-control.story.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/stories/overview.story.d.ts +5 -6
- package/build-types/validated-form-controls/components/stories/overview.story.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/stories/range-control.story.d.ts +0 -3
- package/build-types/validated-form-controls/components/stories/range-control.story.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/stories/story-utils.d.ts +0 -6
- package/build-types/validated-form-controls/components/stories/story-utils.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/stories/textarea-control.story.d.ts +0 -3
- package/build-types/validated-form-controls/components/stories/textarea-control.story.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/stories/toggle-control.story.d.ts +0 -3
- package/build-types/validated-form-controls/components/stories/toggle-control.story.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/stories/toggle-group-control.story.d.ts +0 -3
- package/build-types/validated-form-controls/components/stories/toggle-group-control.story.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/textarea-control.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/toggle-control.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/toggle-group-control.d.ts +2 -2
- package/build-types/validated-form-controls/components/toggle-group-control.d.ts.map +1 -1
- package/build-types/validated-form-controls/control-with-error.d.ts +0 -3
- package/build-types/validated-form-controls/control-with-error.d.ts.map +1 -1
- package/build-types/validated-form-controls/test/content-editable-control.d.ts +2 -0
- package/build-types/validated-form-controls/test/content-editable-control.d.ts.map +1 -0
- package/build-types/validated-form-controls/validity-indicator.d.ts +1 -1
- package/build-types/validated-form-controls/validity-indicator.d.ts.map +1 -1
- package/build-types/view/component.d.ts +125 -125
- package/build-types/view/component.d.ts.map +1 -1
- package/build-types/view/stories/index.story.d.ts +0 -6
- package/build-types/view/stories/index.story.d.ts.map +1 -1
- package/build-types/visually-hidden/component.d.ts.map +1 -1
- package/build-types/visually-hidden/styles.d.ts +0 -3
- package/build-types/visually-hidden/styles.d.ts.map +1 -1
- package/build-types/visually-hidden/types.d.ts +0 -3
- package/build-types/visually-hidden/types.d.ts.map +1 -1
- package/build-types/z-stack/component.d.ts.map +1 -1
- package/build-types/z-stack/stories/index.story.d.ts.map +1 -1
- package/build-types/z-stack/styles.d.ts.map +1 -1
- package/build-types/z-stack/types.d.ts +0 -3
- package/build-types/z-stack/types.d.ts.map +1 -1
- package/package.json +34 -34
- package/src/alignment-matrix-control/cell.tsx +0 -11
- package/src/alignment-matrix-control/icon.tsx +0 -11
- package/src/alignment-matrix-control/index.tsx +0 -11
- package/src/alignment-matrix-control/stories/index.story.tsx +0 -11
- package/src/alignment-matrix-control/test/index.tsx +0 -7
- package/src/alignment-matrix-control/utils.tsx +0 -7
- package/src/angle-picker-control/README.md +1 -1
- package/src/angle-picker-control/angle-circle.tsx +0 -12
- package/src/angle-picker-control/index.tsx +0 -13
- package/src/angle-picker-control/stories/index.story.tsx +0 -11
- package/src/animate/README.md +4 -0
- package/src/animate/index.tsx +12 -7
- package/src/animate/stories/index.story.tsx +2 -9
- package/src/autocomplete/autocompleter-ui.tsx +0 -11
- package/src/autocomplete/get-autocomplete-match.ts +0 -7
- package/src/autocomplete/get-default-use-items.tsx +0 -11
- package/src/autocomplete/index.tsx +21 -20
- package/src/autocomplete/style.scss +1 -0
- package/src/autocomplete/test/get-autocomplete-match.ts +0 -3
- package/src/autocomplete/test/index.tsx +0 -11
- package/src/autocomplete/types.ts +0 -11
- package/src/badge/index.tsx +0 -11
- package/src/badge/stories/e2e/index.story.tsx +0 -1
- package/src/badge/stories/index.story.tsx +1 -8
- package/src/badge/test/index.tsx +0 -7
- package/src/base-control/README.md +4 -4
- package/src/base-control/hooks.ts +0 -7
- package/src/base-control/index.tsx +0 -11
- package/src/base-control/stories/index.story.tsx +1 -8
- package/src/base-control/styles/base-control-styles.ts +0 -7
- package/src/base-control/test/index.tsx +0 -7
- package/src/base-control/types.ts +0 -3
- package/src/border-box-control/border-box-control/component.tsx +0 -8
- package/src/border-box-control/border-box-control/hook.ts +0 -8
- package/src/border-box-control/border-box-control-linked-button/component.tsx +0 -8
- package/src/border-box-control/border-box-control-linked-button/hook.ts +0 -8
- package/src/border-box-control/border-box-control-split-controls/component.tsx +0 -8
- package/src/border-box-control/border-box-control-split-controls/hook.ts +0 -8
- package/src/border-box-control/border-box-control-visualizer/component.tsx +0 -4
- package/src/border-box-control/border-box-control-visualizer/hook.ts +0 -8
- package/src/border-box-control/stories/index.story.tsx +0 -11
- package/src/border-box-control/styles.ts +6 -10
- package/src/border-box-control/test/index.tsx +0 -7
- package/src/border-box-control/test/utils.ts +10 -23
- package/src/border-box-control/types.ts +4 -18
- package/src/border-box-control/utils.ts +0 -7
- package/src/border-control/border-control/component.tsx +0 -8
- package/src/border-control/border-control/hook.ts +0 -7
- package/src/border-control/border-control-dropdown/component.tsx +0 -12
- package/src/border-control/border-control-dropdown/hook.ts +0 -8
- package/src/border-control/border-control-style-picker/component.tsx +0 -7
- package/src/border-control/stories/index.story.tsx +0 -11
- package/src/border-control/styles.ts +0 -8
- package/src/border-control/test/index.js +0 -7
- package/src/border-control/types.ts +0 -7
- package/src/box-control/box-input-control.tsx +0 -7
- package/src/box-control/icon.tsx +0 -3
- package/src/box-control/index.tsx +0 -7
- package/src/box-control/linked-button.tsx +0 -7
- package/src/box-control/stories/index.story.tsx +0 -11
- package/src/box-control/styles/box-control-icon-styles.ts +0 -3
- package/src/box-control/styles/box-control-styles.ts +0 -6
- package/src/box-control/test/index.tsx +0 -11
- package/src/box-control/types.ts +4 -11
- package/src/box-control/utils.ts +0 -7
- package/src/button/deprecated.tsx +0 -11
- package/src/button/index.tsx +0 -11
- package/src/button/stories/e2e/index.story.tsx +26 -14
- package/src/button/stories/index.story.tsx +1 -12
- package/src/button/style.scss +36 -27
- package/src/button/test/index.tsx +3 -14
- package/src/button/types.ts +0 -7
- package/src/button-group/README.md +1 -3
- package/src/button-group/index.tsx +0 -11
- package/src/button-group/stories/index.story.tsx +0 -7
- package/src/button-group/style.scss +1 -6
- package/src/button-group/types.ts +0 -3
- package/src/card/card/component.tsx +0 -11
- package/src/card/card/hook.ts +0 -7
- package/src/card/card-body/component.tsx +0 -7
- package/src/card/card-body/hook.ts +0 -7
- package/src/card/card-divider/component.tsx +0 -7
- package/src/card/card-divider/hook.ts +0 -7
- package/src/card/card-footer/component.tsx +0 -7
- package/src/card/card-footer/hook.ts +0 -7
- package/src/card/card-header/component.tsx +0 -7
- package/src/card/card-header/hook.ts +0 -7
- package/src/card/card-media/component.tsx +0 -7
- package/src/card/card-media/hook.ts +0 -7
- package/src/card/get-padding-by-size.ts +0 -7
- package/src/card/stories/index.story.tsx +1 -1
- package/src/card/styles.ts +0 -7
- package/src/card/test/__snapshots__/index.tsx.snap +32 -32
- package/src/card/test/index.tsx +0 -7
- package/src/card/types.ts +0 -3
- package/src/checkbox-control/index.tsx +0 -11
- package/src/checkbox-control/stories/index.story.tsx +128 -100
- package/src/checkbox-control/test/__snapshots__/index.tsx.snap +1 -1
- package/src/checkbox-control/test/index.tsx +0 -11
- package/src/checkbox-control/types.ts +0 -7
- package/src/circular-option-picker/README.md +1 -3
- package/src/circular-option-picker/circular-option-picker-actions.tsx +0 -7
- package/src/circular-option-picker/circular-option-picker-context.tsx +0 -7
- package/src/circular-option-picker/circular-option-picker-option-group.tsx +0 -7
- package/src/circular-option-picker/circular-option-picker-option.tsx +0 -11
- package/src/circular-option-picker/circular-option-picker.tsx +0 -11
- package/src/circular-option-picker/index.tsx +0 -3
- package/src/circular-option-picker/stories/index.story.tsx +0 -9
- package/src/circular-option-picker/test/index.tsx +0 -7
- package/src/circular-option-picker/types.ts +0 -11
- package/src/circular-option-picker/utils.tsx +0 -3
- package/src/clipboard-button/README.md +1 -3
- package/src/clipboard-button/index.tsx +0 -11
- package/src/clipboard-button/types.ts +0 -3
- package/src/color-indicator/index.tsx +0 -11
- package/src/color-indicator/stories/index.story.tsx +0 -7
- package/src/color-indicator/test/__snapshots__/index.tsx.snap +1 -1
- package/src/color-indicator/test/index.tsx +0 -7
- package/src/color-indicator/types.ts +0 -3
- package/src/color-palette/index.tsx +0 -11
- package/src/color-palette/stories/index.story.tsx +0 -11
- package/src/color-palette/styles.ts +1 -8
- package/src/color-palette/test/index.tsx +0 -9
- package/src/color-palette/test/utils.ts +0 -3
- package/src/color-palette/types.ts +0 -7
- package/src/color-palette/utils.ts +0 -11
- package/src/color-picker/color-copy-button.tsx +0 -8
- package/src/color-picker/color-input.tsx +0 -3
- package/src/color-picker/component.tsx +23 -31
- package/src/color-picker/hex-input.tsx +0 -12
- package/src/color-picker/hsl-input.tsx +0 -7
- package/src/color-picker/index.ts +0 -3
- package/src/color-picker/input-with-slider.tsx +1 -5
- package/src/color-picker/legacy-adapter.tsx +0 -3
- package/src/color-picker/picker.tsx +140 -24
- package/src/color-picker/rgb-input.tsx +0 -7
- package/src/color-picker/stories/index.story.tsx +0 -7
- package/src/color-picker/styles.ts +0 -7
- package/src/color-picker/test/index.tsx +502 -11
- package/src/color-picker/types.ts +2 -6
- package/src/color-picker/use-deprecated-props.ts +0 -11
- package/src/combobox-control/index.tsx +1 -12
- package/src/combobox-control/stories/index.story.tsx +0 -11
- package/src/combobox-control/style.scss +2 -2
- package/src/combobox-control/test/index.tsx +0 -11
- package/src/combobox-control/types.ts +0 -3
- package/src/composite/context.tsx +0 -7
- package/src/composite/group-label.tsx +0 -11
- package/src/composite/group.tsx +0 -11
- package/src/composite/hover.tsx +0 -11
- package/src/composite/index.tsx +0 -12
- package/src/composite/item.tsx +0 -11
- package/src/composite/legacy/index.tsx +0 -12
- package/src/composite/legacy/stories/index.story.tsx +0 -7
- package/src/composite/legacy/stories/utils.tsx +0 -7
- package/src/composite/legacy/test/index.tsx +0 -7
- package/src/composite/row.tsx +0 -11
- package/src/composite/stories/index.story.tsx +0 -11
- package/src/composite/test/index.tsx +0 -11
- package/src/composite/typeahead.tsx +0 -11
- package/src/composite/types.ts +0 -3
- package/src/confirm-dialog/README.md +71 -66
- package/src/confirm-dialog/component.tsx +28 -28
- package/src/confirm-dialog/docs-manifest.json +5 -0
- package/src/confirm-dialog/index.tsx +0 -3
- package/src/confirm-dialog/stories/index.story.tsx +1 -12
- package/src/confirm-dialog/style.module.scss +7 -0
- package/src/confirm-dialog/test/index.tsx +5 -7
- package/src/confirm-dialog/types.ts +4 -7
- package/src/content-editable-control/README.md +88 -0
- package/src/content-editable-control/docs-manifest.json +5 -0
- package/src/content-editable-control/index.tsx +99 -0
- package/src/content-editable-control/stories/index.story.tsx +25 -0
- package/src/content-editable-control/style.module.scss +34 -0
- package/src/content-editable-control/test/index.tsx +169 -0
- package/src/content-editable-control/types.ts +32 -0
- package/src/context/context-connect.ts +4 -15
- package/src/context/context-system-provider.js +0 -11
- package/src/context/get-styled-class-name-from-key.ts +0 -3
- package/src/context/stories/ComponentsProvider.stories.jsx +0 -7
- package/src/context/test/__snapshots__/context-system-provider.js.snap +4 -4
- package/src/context/test/context-connect.tsx +0 -7
- package/src/context/test/context-system-provider.js +0 -11
- package/src/context/test/wordpress-component.tsx +0 -11
- package/src/context/use-context-system.js +4 -11
- package/src/context/utils.js +0 -3
- package/src/context/wordpress-component.ts +40 -8
- package/src/custom-gradient-picker/constants.ts +0 -3
- package/src/custom-gradient-picker/gradient-bar/control-points.tsx +0 -12
- package/src/custom-gradient-picker/gradient-bar/index.tsx +1 -12
- package/src/custom-gradient-picker/gradient-bar/test/utils.ts +0 -3
- package/src/custom-gradient-picker/gradient-bar/utils.ts +0 -3
- package/src/custom-gradient-picker/index.tsx +1 -12
- package/src/custom-gradient-picker/serializer.ts +0 -3
- package/src/custom-gradient-picker/stories/index.story.tsx +0 -10
- package/src/custom-gradient-picker/styles/custom-gradient-picker-styles.tsx +0 -6
- package/src/custom-gradient-picker/test/index.tsx +107 -8
- package/src/custom-gradient-picker/test/serializer.ts +0 -3
- package/src/custom-gradient-picker/types.ts +0 -3
- package/src/custom-gradient-picker/utils.ts +0 -7
- package/src/custom-select-control/index.tsx +1 -13
- package/src/custom-select-control/stories/index.story.tsx +1 -12
- package/src/custom-select-control/test/__snapshots__/index.tsx.snap +6 -0
- package/src/custom-select-control/test/index.tsx +23 -11
- package/src/custom-select-control/types.ts +1 -11
- package/src/custom-select-control-v2/custom-select.tsx +1 -16
- package/src/custom-select-control-v2/index.tsx +0 -6
- package/src/custom-select-control-v2/item.tsx +0 -6
- package/src/custom-select-control-v2/stories/index.story.tsx +1 -12
- package/src/custom-select-control-v2/styles.ts +0 -6
- package/src/custom-select-control-v2/test/index.tsx +0 -11
- package/src/custom-select-control-v2/types.ts +0 -3
- package/src/dashicon/index.tsx +0 -4
- package/src/date-time/date-picker/index.tsx +0 -11
- package/src/date-time/date-picker/styles.ts +1 -8
- package/src/date-time/date-picker/test/index.tsx +0 -7
- package/src/date-time/date-picker/test/use-lilius.ts +0 -7
- package/src/date-time/date-picker/use-lilius/index.ts +0 -8
- package/src/date-time/date-time/index.tsx +0 -11
- package/src/date-time/date-time/styles.ts +0 -7
- package/src/date-time/date-time/test/index.tsx +0 -11
- package/src/date-time/index.ts +0 -3
- package/src/date-time/stories/date-time.story.tsx +0 -11
- package/src/date-time/stories/date.story.tsx +0 -11
- package/src/date-time/stories/time.story.tsx +0 -11
- package/src/date-time/time-picker/index.tsx +0 -2
- package/src/date-time/time-picker/styles.ts +0 -7
- package/src/date-time/time-picker/test/index.tsx +0 -11
- package/src/date-time/time-picker/time-input/index.tsx +0 -13
- package/src/date-time/time-picker/time-input/test/index.tsx +0 -7
- package/src/date-time/time-picker/timezone.tsx +0 -7
- package/src/date-time/types.ts +0 -3
- package/src/date-time/utils.ts +0 -11
- package/src/disabled/index.tsx +8 -6
- package/src/disabled/stories/index.story.tsx +0 -11
- package/src/disabled/style.module.scss +15 -0
- package/src/disabled/test/index.tsx +6 -11
- package/src/disclosure/index.tsx +0 -11
- package/src/divider/README.md +1 -3
- package/src/divider/component.tsx +0 -7
- package/src/divider/stories/index.story.tsx +0 -7
- package/src/divider/test/index.tsx +0 -7
- package/src/divider/types.ts +0 -7
- package/src/draggable/index.tsx +1 -12
- package/src/draggable/stories/index.story.tsx +0 -11
- package/src/draggable/types.ts +0 -3
- package/src/drop-zone/index.tsx +0 -11
- package/src/drop-zone/provider.ts +0 -3
- package/src/drop-zone/stories/index.story.tsx +0 -11
- package/src/dropdown/dropdown-content-wrapper.tsx +0 -7
- package/src/dropdown/index.tsx +0 -11
- package/src/dropdown/stories/index.story.tsx +0 -7
- package/src/dropdown/styles.ts +0 -7
- package/src/dropdown/test/index.tsx +0 -7
- package/src/dropdown/types.ts +4 -0
- package/src/dropdown-menu/index.tsx +0 -11
- package/src/dropdown-menu/stories/index.story.tsx +0 -11
- package/src/dropdown-menu/style.scss +1 -1
- package/src/dropdown-menu/test/index.tsx +0 -11
- package/src/dropdown-menu/types.ts +0 -6
- package/src/duotone-picker/color-list-picker/index.tsx +1 -8
- package/src/duotone-picker/color-list-picker/types.ts +0 -3
- package/src/duotone-picker/custom-duotone-bar.tsx +0 -4
- package/src/duotone-picker/duotone-picker.tsx +0 -12
- package/src/duotone-picker/duotone-swatch.tsx +0 -7
- package/src/duotone-picker/stories/duotone-picker.story.tsx +0 -11
- package/src/duotone-picker/stories/duotone-swatch.story.tsx +0 -7
- package/src/duotone-picker/utils.ts +0 -7
- package/src/elevation/README.md +3 -6
- package/src/elevation/component.tsx +2 -10
- package/src/elevation/hook.ts +0 -11
- package/src/elevation/stories/index.story.tsx +1 -8
- package/src/elevation/styles.ts +0 -3
- package/src/elevation/test/__snapshots__/index.tsx.snap +1 -1
- package/src/elevation/test/index.tsx +0 -7
- package/src/elevation/types.ts +0 -3
- package/src/external-link/index.tsx +0 -11
- package/src/external-link/stories/index.story.tsx +1 -8
- package/src/external-link/style.scss +7 -13
- package/src/external-link/test/index.tsx +0 -7
- package/src/external-link/types.ts +0 -3
- package/src/flex/context.ts +0 -3
- package/src/flex/flex/component.tsx +0 -7
- package/src/flex/flex/hook.ts +0 -1
- package/src/flex/flex-block/component.tsx +0 -7
- package/src/flex/flex-block/hook.ts +0 -3
- package/src/flex/flex-item/component.tsx +0 -7
- package/src/flex/flex-item/hook.ts +0 -1
- package/src/flex/stories/index.story.tsx +1 -8
- package/src/flex/test/__snapshots__/index.tsx.snap +1 -1
- package/src/flex/test/index.tsx +0 -1
- package/src/flex/types.ts +0 -7
- package/src/focal-point-picker/controls.tsx +0 -7
- package/src/focal-point-picker/focal-point.tsx +0 -7
- package/src/focal-point-picker/grid.tsx +0 -3
- package/src/focal-point-picker/index.tsx +0 -11
- package/src/focal-point-picker/media.tsx +0 -7
- package/src/focal-point-picker/stories/index.story.tsx +0 -10
- package/src/focal-point-picker/styles/focal-point-picker-style.ts +0 -7
- package/src/focal-point-picker/styles/focal-point-style.ts +0 -7
- package/src/focal-point-picker/test/index.tsx +0 -7
- package/src/focal-point-picker/test/media.tsx +0 -7
- package/src/focal-point-picker/types.ts +0 -7
- package/src/focusable-iframe/index.tsx +0 -6
- package/src/focusable-iframe/types.ts +0 -3
- package/src/font-size-picker/constants.ts +0 -3
- package/src/font-size-picker/font-size-picker-select.tsx +0 -7
- package/src/font-size-picker/font-size-picker-toggle-group.tsx +0 -7
- package/src/font-size-picker/index.tsx +0 -11
- package/src/font-size-picker/stories/e2e/index.story.tsx +0 -11
- package/src/font-size-picker/stories/index.story.tsx +0 -11
- package/src/font-size-picker/styles.ts +0 -7
- package/src/font-size-picker/test/font-size-picker-select.tsx +0 -7
- package/src/font-size-picker/test/font-size-picker-toggle-group.tsx +0 -7
- package/src/font-size-picker/test/utils.ts +0 -3
- package/src/font-size-picker/types.ts +6 -15
- package/src/font-size-picker/utils.ts +0 -3
- package/src/form-file-upload/index.tsx +0 -7
- package/src/form-file-upload/stories/index.story.tsx +0 -11
- package/src/form-file-upload/types.ts +0 -7
- package/src/form-toggle/index.tsx +0 -11
- package/src/form-toggle/stories/index.story.tsx +0 -11
- package/src/form-toggle/test/__snapshots__/index.tsx.snap +1 -1
- package/src/form-toggle/test/index.tsx +0 -11
- package/src/form-toggle/types.ts +0 -3
- package/src/form-token-field/index.tsx +6 -16
- package/src/form-token-field/stories/index.story.tsx +0 -10
- package/src/form-token-field/style.module.scss +6 -0
- package/src/form-token-field/style.scss +2 -2
- package/src/form-token-field/suggestions-list.tsx +0 -11
- package/src/form-token-field/test/index.tsx +0 -12
- package/src/form-token-field/token-input.tsx +0 -11
- package/src/form-token-field/token.tsx +0 -11
- package/src/form-token-field/types.ts +0 -3
- package/src/gradient-picker/README.md +21 -3
- package/src/gradient-picker/index.tsx +43 -35
- package/src/gradient-picker/stories/index.story.tsx +41 -16
- package/src/gradient-picker/test/index.tsx +141 -0
- package/src/gradient-picker/types.ts +24 -7
- package/src/grid/README.md +1 -3
- package/src/grid/component.tsx +0 -7
- package/src/grid/hook.ts +0 -11
- package/src/grid/stories/index.story.tsx +0 -7
- package/src/grid/test/grid.tsx +0 -7
- package/src/grid/types.ts +0 -7
- package/src/grid/utils.ts +0 -3
- package/src/guide/icons.tsx +0 -3
- package/src/guide/index.tsx +0 -11
- package/src/guide/page-control.tsx +0 -7
- package/src/guide/page.tsx +0 -7
- package/src/guide/stories/index.story.tsx +0 -11
- package/src/guide/test/index.tsx +0 -7
- package/src/guide/types.ts +0 -7
- package/src/h-stack/README.md +1 -3
- package/src/h-stack/component.tsx +0 -3
- package/src/h-stack/hook.tsx +0 -7
- package/src/h-stack/stories/e2e/index.story.tsx +0 -7
- package/src/h-stack/stories/index.story.tsx +1 -7
- package/src/h-stack/test/__snapshots__/index.tsx.snap +1 -1
- package/src/h-stack/test/index.tsx +0 -7
- package/src/h-stack/types.ts +0 -7
- package/src/h-stack/utils.ts +0 -6
- package/src/heading/README.md +1 -3
- package/src/heading/component.tsx +0 -7
- package/src/heading/hook.ts +1 -4
- package/src/heading/stories/index.story.tsx +1 -8
- package/src/heading/test/__snapshots__/index.tsx.snap +1 -1
- package/src/heading/test/index.tsx +0 -7
- package/src/heading/types.ts +0 -3
- package/src/higher-order/navigate-regions/index.tsx +0 -3
- package/src/higher-order/with-constrained-tabbing/index.tsx +0 -3
- package/src/higher-order/with-fallback-styles/index.tsx +0 -7
- package/src/higher-order/with-fallback-styles/test/index.tsx +0 -7
- package/src/higher-order/with-filters/index.tsx +0 -3
- package/src/higher-order/with-filters/test/__snapshots__/index.tsx.snap +1 -1
- package/src/higher-order/with-filters/test/index.tsx +0 -11
- package/src/higher-order/with-focus-outside/index.tsx +0 -3
- package/src/higher-order/with-focus-outside/test/index.tsx +0 -11
- package/src/higher-order/with-focus-return/index.tsx +0 -3
- package/src/higher-order/with-focus-return/test/index.tsx +0 -11
- package/src/higher-order/with-notices/index.tsx +0 -11
- package/src/higher-order/with-notices/test/index.tsx +0 -11
- package/src/higher-order/with-notices/types.ts +0 -3
- package/src/higher-order/with-spoken-messages/index.tsx +0 -3
- package/src/higher-order/with-spoken-messages/test/index.tsx +0 -7
- package/src/icon/index.tsx +8 -13
- package/src/icon/stories/index.story.tsx +1 -1
- package/src/icon/test/index.tsx +0 -11
- package/src/input-control/README.md +1 -11
- package/src/input-control/backdrop.tsx +0 -6
- package/src/input-control/index.tsx +4 -27
- package/src/input-control/input-base.tsx +4 -19
- package/src/input-control/input-field.tsx +1 -11
- package/src/input-control/input-prefix-wrapper.tsx +0 -7
- package/src/input-control/input-suffix-wrapper.tsx +0 -7
- package/src/input-control/label.tsx +0 -3
- package/src/input-control/reducer/actions.ts +0 -7
- package/src/input-control/reducer/reducer.ts +0 -11
- package/src/input-control/reducer/state.ts +0 -7
- package/src/input-control/stories/index.story.tsx +2 -14
- package/src/input-control/styles/input-control-styles.tsx +1 -26
- package/src/input-control/test/__snapshots__/index.js.snap +11 -0
- package/src/input-control/test/index.js +29 -18
- package/src/input-control/types.ts +15 -37
- package/src/input-control/utils.ts +1 -13
- package/src/isolated-event-container/index.tsx +0 -7
- package/src/isolated-event-container/test/index.tsx +0 -7
- package/src/item-group/context.ts +0 -7
- package/src/item-group/item/README.md +1 -3
- package/src/item-group/item/component.tsx +0 -7
- package/src/item-group/item/hook.ts +16 -24
- package/src/item-group/item-group/README.md +1 -3
- package/src/item-group/item-group/component.tsx +0 -7
- package/src/item-group/item-group/hook.ts +9 -15
- package/src/item-group/stories/index.story.tsx +0 -7
- package/src/item-group/style.module.scss +115 -0
- package/src/item-group/test/__snapshots__/index.js.snap +25 -60
- package/src/item-group/test/index.js +0 -7
- package/src/keyboard-shortcuts/index.tsx +0 -7
- package/src/keyboard-shortcuts/stories/index.story.tsx +0 -7
- package/src/keyboard-shortcuts/test/index.tsx +0 -7
- package/src/keyboard-shortcuts/types.ts +0 -3
- package/src/lock-unlock.js +0 -3
- package/src/menu/README.md +4 -4
- package/src/menu/checkbox-item.tsx +7 -16
- package/src/menu/context.tsx +0 -7
- package/src/menu/group-label.tsx +2 -8
- package/src/menu/group.tsx +0 -7
- package/src/menu/index.tsx +0 -11
- package/src/menu/item-help-text.tsx +0 -7
- package/src/menu/item-label.tsx +0 -7
- package/src/menu/item.tsx +8 -11
- package/src/menu/popover.tsx +0 -11
- package/src/menu/radio-item.tsx +7 -16
- package/src/menu/separator.tsx +0 -7
- package/src/menu/stories/best-practices.mdx +0 -1
- package/src/menu/stories/index.story.tsx +8 -58
- package/src/menu/styles.ts +0 -7
- package/src/menu/submenu-trigger-item.tsx +0 -11
- package/src/menu/test/index.tsx +326 -18
- package/src/menu/trigger-button.tsx +0 -11
- package/src/menu/types.ts +0 -3
- package/src/menu/use-menu-item-hide-on-click.ts +67 -0
- package/src/menu-group/index.tsx +0 -11
- package/src/menu-group/stories/index.story.tsx +0 -11
- package/src/menu-group/style.scss +1 -1
- package/src/menu-group/test/index.tsx +0 -7
- package/src/menu-group/types.ts +0 -3
- package/src/menu-item/index.tsx +0 -11
- package/src/menu-item/stories/index.story.tsx +0 -11
- package/src/menu-item/style.scss +1 -1
- package/src/menu-item/test/__snapshots__/index.js.snap +1 -1
- package/src/menu-item/test/index.js +0 -11
- package/src/menu-item/types.ts +0 -7
- package/src/menu-items-choice/index.tsx +0 -7
- package/src/menu-items-choice/stories/index.story.tsx +0 -11
- package/src/menu-items-choice/types.ts +0 -3
- package/src/modal/README.md +1 -0
- package/src/modal/index.tsx +1 -1
- package/src/modal/stories/index.story.tsx +2 -16
- package/src/modal/style.scss +5 -1
- package/src/modal/test/aria-helper.ts +0 -3
- package/src/modal/test/index.tsx +42 -11
- package/src/modal/types.ts +2 -3
- package/src/modal/use-modal-exit-animation.ts +0 -7
- package/src/navigable-container/container.tsx +0 -11
- package/src/navigable-container/index.tsx +0 -3
- package/src/navigable-container/menu.tsx +0 -11
- package/src/navigable-container/stories/navigable-menu.story.tsx +0 -7
- package/src/navigable-container/stories/tabbable-container.story.tsx +0 -7
- package/src/navigable-container/tabbable.tsx +0 -11
- package/src/navigable-container/test/navigable-menu.tsx +0 -7
- package/src/navigable-container/test/tababble-container.tsx +0 -7
- package/src/navigable-container/types.ts +0 -7
- package/src/navigator/context.ts +0 -7
- package/src/navigator/index.tsx +0 -3
- package/src/navigator/legacy.ts +0 -3
- package/src/navigator/navigator/component.tsx +0 -11
- package/src/navigator/navigator-back-button/component.tsx +0 -7
- package/src/navigator/navigator-back-button/hook.ts +0 -7
- package/src/navigator/navigator-button/component.tsx +0 -7
- package/src/navigator/navigator-button/hook.ts +0 -7
- package/src/navigator/navigator-screen/component.tsx +0 -11
- package/src/navigator/navigator-screen/use-screen-animate-presence.ts +0 -7
- package/src/navigator/navigator-to-parent-button/component.tsx +0 -7
- package/src/navigator/stories/index.story.tsx +0 -7
- package/src/navigator/styles.ts +0 -3
- package/src/navigator/test/index.tsx +0 -11
- package/src/navigator/test/router.ts +0 -3
- package/src/navigator/types.ts +0 -7
- package/src/navigator/use-navigator.ts +0 -7
- package/src/navigator/utils/router.ts +0 -7
- package/src/notice/index.tsx +0 -11
- package/src/notice/list.tsx +0 -7
- package/src/notice/stories/index.story.tsx +1 -12
- package/src/notice/test/__snapshots__/index.tsx.snap +1 -1
- package/src/notice/test/index.tsx +0 -11
- package/src/notice/test/list.tsx +0 -7
- package/src/notice/types.ts +0 -3
- package/src/number-control/README.md +1 -11
- package/src/number-control/index.tsx +1 -23
- package/src/number-control/stories/index.story.tsx +1 -14
- package/src/number-control/styles/number-control-styles.ts +0 -7
- package/src/number-control/test/index.tsx +1 -12
- package/src/number-control/types.ts +0 -10
- package/src/palette-edit/index.tsx +1 -12
- package/src/palette-edit/stories/index.story.tsx +0 -11
- package/src/palette-edit/styles.ts +1 -8
- package/src/palette-edit/test/index.tsx +0 -7
- package/src/palette-edit/types.ts +0 -7
- package/src/panel/body.tsx +0 -11
- package/src/panel/header.tsx +0 -3
- package/src/panel/index.tsx +0 -11
- package/src/panel/row.tsx +0 -11
- package/src/panel/stories/index.story.tsx +4 -15
- package/src/panel/style.scss +2 -5
- package/src/panel/test/__snapshots__/body.tsx.snap +1 -1
- package/src/panel/test/__snapshots__/header.tsx.snap +1 -1
- package/src/panel/test/__snapshots__/index.tsx.snap +1 -1
- package/src/panel/test/__snapshots__/row.tsx.snap +1 -1
- package/src/panel/test/body.tsx +0 -7
- package/src/panel/test/header.tsx +0 -7
- package/src/panel/test/index.tsx +0 -7
- package/src/panel/test/row.tsx +0 -7
- package/src/panel/types.ts +0 -3
- package/src/placeholder/index.tsx +0 -11
- package/src/placeholder/stories/index.story.tsx +0 -11
- package/src/placeholder/style.scss +1 -1
- package/src/placeholder/test/index.tsx +3 -14
- package/src/placeholder/types.ts +0 -7
- package/src/popover/index.tsx +0 -4
- package/src/popover/overlay-middlewares.tsx +0 -3
- package/src/popover/stories/e2e/index.story.tsx +0 -7
- package/src/popover/stories/index.story.tsx +0 -11
- package/src/popover/test/index.tsx +0 -11
- package/src/popover/test/utils/index.tsx +0 -7
- package/src/popover/types.ts +1 -1
- package/src/popover/utils.ts +0 -7
- package/src/private-apis.ts +4 -29
- package/src/progress-bar/index.tsx +0 -11
- package/src/progress-bar/stories/index.story.tsx +0 -7
- package/src/progress-bar/styles.ts +0 -11
- package/src/progress-bar/test/index.tsx +0 -7
- package/src/query-controls/author-select.tsx +0 -3
- package/src/query-controls/index.tsx +1 -8
- package/src/query-controls/stories/index.story.tsx +0 -11
- package/src/query-controls/terms.ts +0 -3
- package/src/query-controls/test/terms.ts +0 -3
- package/src/query-controls/types.ts +0 -3
- package/src/radio-control/index.tsx +0 -11
- package/src/radio-control/stories/index.story.tsx +0 -11
- package/src/radio-control/test/index.tsx +0 -11
- package/src/radio-control/types.ts +0 -3
- package/src/radio-group/README.md +2 -6
- package/src/radio-group/context.tsx +0 -7
- package/src/radio-group/index.tsx +0 -11
- package/src/radio-group/radio.tsx +0 -11
- package/src/radio-group/stories/index.story.tsx +0 -11
- package/src/range-control/index.tsx +0 -14
- package/src/range-control/input-range.tsx +0 -8
- package/src/range-control/mark.tsx +0 -8
- package/src/range-control/rail.tsx +0 -8
- package/src/range-control/stories/index.story.tsx +0 -11
- package/src/range-control/styles/range-control-styles.ts +0 -8
- package/src/range-control/tooltip.tsx +0 -12
- package/src/range-control/types.ts +2 -22
- package/src/range-control/utils.ts +0 -8
- package/src/resizable-box/index.tsx +0 -11
- package/src/resizable-box/resize-tooltip/index.tsx +0 -11
- package/src/resizable-box/resize-tooltip/label.tsx +0 -11
- package/src/resizable-box/resize-tooltip/styles/resize-tooltip.styles.ts +0 -7
- package/src/resizable-box/resize-tooltip/utils.ts +0 -3
- package/src/resizable-box/stories/index.story.tsx +0 -11
- package/src/responsive-wrapper/index.tsx +0 -11
- package/src/responsive-wrapper/stories/index.story.tsx +0 -7
- package/src/sandbox/index.tsx +165 -105
- package/src/sandbox/stories/index.story.tsx +7 -7
- package/src/sandbox/test/index.tsx +84 -12
- package/src/sandbox/types.ts +21 -0
- package/src/scroll-lock/index.tsx +0 -3
- package/src/scroll-lock/stories/index.story.tsx +0 -11
- package/src/scroll-lock/test/index.tsx +0 -7
- package/src/scrollable/README.md +1 -3
- package/src/scrollable/component.tsx +0 -7
- package/src/scrollable/hook.ts +0 -7
- package/src/scrollable/stories/index.story.tsx +0 -11
- package/src/scrollable/styles.ts +0 -7
- package/src/scrollable/test/__snapshots__/index.tsx.snap +1 -1
- package/src/scrollable/test/index.tsx +0 -7
- package/src/scrollable/types.ts +0 -3
- package/src/search-control/index.tsx +23 -32
- package/src/search-control/stories/index.story.tsx +0 -11
- package/src/search-control/style.module.scss +16 -0
- package/src/search-control/test/index.tsx +8 -11
- package/src/search-control/types.ts +1 -4
- package/src/select-control/chevron-down.tsx +0 -7
- package/src/select-control/index.tsx +0 -13
- package/src/select-control/stories/index.story.tsx +1 -12
- package/src/select-control/styles/select-control-styles.ts +0 -14
- package/src/select-control/test/__snapshots__/select-control.tsx.snap +11 -0
- package/src/select-control/test/select-control.tsx +37 -7
- package/src/select-control/types.ts +8 -9
- package/src/shortcut/index.tsx +0 -3
- package/src/shortcut/stories/index.story.tsx +0 -7
- package/src/shortcut/test/__snapshots__/index.tsx.snap +1 -1
- package/src/shortcut/test/index.tsx +0 -7
- package/src/slot-fill/bubbles-virtually/slot.tsx +0 -11
- package/src/slot-fill/bubbles-virtually/use-slot-fills.ts +0 -7
- package/src/slot-fill/bubbles-virtually/use-slot.ts +0 -7
- package/src/slot-fill/context.ts +0 -7
- package/src/slot-fill/fill.tsx +3 -10
- package/src/slot-fill/index.tsx +0 -12
- package/src/slot-fill/provider.tsx +0 -7
- package/src/slot-fill/slot.tsx +0 -11
- package/src/slot-fill/stories/index.story.tsx +51 -11
- package/src/slot-fill/test/__snapshots__/slot.js.snap +1 -1
- package/src/slot-fill/test/index.js +0 -11
- package/src/slot-fill/test/slot.js +52 -12
- package/src/slot-fill/types.ts +0 -7
- package/src/snackbar/index.tsx +0 -11
- package/src/snackbar/list.tsx +0 -11
- package/src/snackbar/stories/index.story.tsx +0 -11
- package/src/snackbar/stories/list.story.tsx +0 -11
- package/src/snackbar/test/index.tsx +0 -11
- package/src/snackbar/test/list.tsx +0 -7
- package/src/snackbar/types.ts +0 -7
- package/src/spacer/README.md +1 -3
- package/src/spacer/component.tsx +0 -7
- package/src/spacer/hook.ts +92 -77
- package/src/spacer/stories/index.story.tsx +8 -7
- package/src/spacer/style.module.scss +25 -0
- package/src/spacer/test/__snapshots__/index.tsx.snap +3 -223
- package/src/spacer/test/index.tsx +106 -111
- package/src/spacer/types.ts +0 -7
- package/src/spinner/index.tsx +13 -18
- package/src/spinner/stories/index.story.tsx +0 -7
- package/src/spinner/style.module.scss +39 -0
- package/src/style-provider/types.ts +0 -3
- package/src/style.scss +0 -1
- package/src/surface/README.md +1 -3
- package/src/surface/component.tsx +12 -7
- package/src/surface/hook.ts +0 -7
- package/src/surface/stories/index.story.tsx +3 -9
- package/src/surface/test/index.tsx +12 -7
- package/src/tab-panel/index.tsx +0 -12
- package/src/tab-panel/stories/index.story.tsx +1 -1
- package/src/tab-panel/style.scss +1 -1
- package/src/tab-panel/test/index.tsx +0 -11
- package/src/tab-panel/types.ts +0 -7
- package/src/tabs/context.ts +0 -7
- package/src/tabs/index.tsx +0 -11
- package/src/tabs/stories/best-practices.mdx +0 -1
- package/src/tabs/stories/index.story.tsx +1 -1
- package/src/tabs/styles.ts +0 -7
- package/src/tabs/tab.tsx +2 -10
- package/src/tabs/tablist.tsx +0 -11
- package/src/tabs/tabpanel.tsx +1 -13
- package/src/tabs/test/index.tsx +0 -11
- package/src/tabs/types.ts +0 -3
- package/src/tabs/use-track-overflow.ts +0 -3
- package/src/text/README.md +1 -3
- package/src/text/component.tsx +0 -3
- package/src/text/get-line-height.ts +0 -7
- package/src/text/hook.ts +0 -11
- package/src/text/stories/index.story.tsx +1 -8
- package/src/text/styles.ts +0 -7
- package/src/text/test/__snapshots__/index.tsx.snap +1 -1
- package/src/text/test/index.tsx +0 -7
- package/src/text/types.ts +1 -8
- package/src/text/utils.ts +0 -7
- package/src/text-control/index.tsx +0 -11
- package/src/text-control/stories/index.story.tsx +0 -11
- package/src/text-control/style.scss +1 -1
- package/src/text-control/test/text-control.tsx +0 -7
- package/src/text-control/types.ts +0 -3
- package/src/text-highlight/index.tsx +0 -7
- package/src/text-highlight/stories/index.story.tsx +0 -7
- package/src/text-highlight/test/index.tsx +0 -7
- package/src/textarea-control/index.tsx +0 -11
- package/src/textarea-control/stories/index.story.tsx +1 -12
- package/src/textarea-control/styles/textarea-control-styles.ts +0 -7
- package/src/textarea-control/types.ts +0 -7
- package/src/tip/index.tsx +0 -7
- package/src/tip/stories/index.story.tsx +0 -7
- package/src/tip/types.ts +0 -3
- package/src/toggle-control/index.tsx +0 -11
- package/src/toggle-control/stories/index.story.tsx +52 -21
- package/src/toggle-control/test/index.tsx +0 -7
- package/src/toggle-control/types.ts +0 -7
- package/src/toggle-group-control/context.ts +0 -7
- package/src/toggle-group-control/stories/index.story.tsx +0 -11
- package/src/toggle-group-control/test/__snapshots__/index.tsx.snap +37 -715
- package/src/toggle-group-control/test/index.tsx +33 -14
- package/src/toggle-group-control/toggle-group-control/README.md +1 -3
- package/src/toggle-group-control/toggle-group-control/as-button-group.tsx +0 -7
- package/src/toggle-group-control/toggle-group-control/as-radio-group.tsx +0 -11
- package/src/toggle-group-control/toggle-group-control/component.tsx +11 -27
- package/src/toggle-group-control/toggle-group-control/style.module.scss +63 -0
- package/src/toggle-group-control/toggle-group-control/utils.ts +0 -7
- package/src/toggle-group-control/toggle-group-control-option/README.md +1 -3
- package/src/toggle-group-control/toggle-group-control-option/component.tsx +0 -11
- package/src/toggle-group-control/toggle-group-control-option-base/README.md +1 -3
- package/src/toggle-group-control/toggle-group-control-option-base/component.tsx +22 -35
- package/src/toggle-group-control/toggle-group-control-option-base/style.module.scss +88 -0
- package/src/toggle-group-control/toggle-group-control-option-icon/README.md +1 -3
- package/src/toggle-group-control/toggle-group-control-option-icon/component.tsx +0 -11
- package/src/toggle-group-control/types.ts +4 -14
- package/src/toolbar/stories/index.story.tsx +2 -21
- package/src/toolbar/test/index.tsx +0 -7
- package/src/toolbar/test/toolbar-group.tsx +1 -12
- package/src/toolbar/toolbar/index.tsx +0 -11
- package/src/toolbar/toolbar/toolbar-container.tsx +0 -11
- package/src/toolbar/toolbar/types.ts +0 -3
- package/src/toolbar/toolbar-button/index.tsx +0 -11
- package/src/toolbar/toolbar-button/style.scss +1 -1
- package/src/toolbar/toolbar-button/toolbar-button-container.tsx +0 -3
- package/src/toolbar/toolbar-button/types.ts +0 -3
- package/src/toolbar/toolbar-context/index.ts +0 -7
- package/src/toolbar/toolbar-dropdown-menu/index.tsx +0 -11
- package/src/toolbar/toolbar-group/index.tsx +0 -11
- package/src/toolbar/toolbar-group/toolbar-group-collapsed.tsx +0 -7
- package/src/toolbar/toolbar-group/toolbar-group-container.tsx +0 -3
- package/src/toolbar/toolbar-group/types.ts +0 -11
- package/src/toolbar/toolbar-item/index.tsx +0 -11
- package/src/toolbar/toolbar-item/types.ts +0 -3
- package/src/tools-panel/context.ts +0 -7
- package/src/tools-panel/stories/index.story.tsx +0 -15
- package/src/tools-panel/style.module.scss +117 -0
- package/src/tools-panel/test/index.tsx +105 -46
- package/src/tools-panel/tools-panel/README.md +2 -11
- package/src/tools-panel/tools-panel/component.tsx +12 -8
- package/src/tools-panel/tools-panel/hook.ts +9 -22
- package/src/tools-panel/tools-panel-header/README.md +2 -6
- package/src/tools-panel/tools-panel-header/component.tsx +6 -13
- package/src/tools-panel/tools-panel-header/hook.ts +6 -31
- package/src/tools-panel/tools-panel-item/README.md +2 -4
- package/src/tools-panel/tools-panel-item/component.tsx +0 -7
- package/src/tools-panel/tools-panel-item/hook.ts +12 -41
- package/src/tools-panel/types.ts +0 -7
- package/src/tooltip/stories/index.story.tsx +1 -12
- package/src/tooltip/test/index.tsx +1 -12
- package/src/tooltip/test/utils/index.tsx +0 -3
- package/src/tooltip/types.ts +0 -7
- package/src/tree-grid/README.md +1 -3
- package/src/tree-grid/cell.tsx +0 -7
- package/src/tree-grid/index.tsx +0 -7
- package/src/tree-grid/item.tsx +0 -7
- package/src/tree-grid/roving-tab-index-context.ts +0 -3
- package/src/tree-grid/roving-tab-index-item.tsx +0 -7
- package/src/tree-grid/roving-tab-index.tsx +0 -7
- package/src/tree-grid/row.tsx +0 -7
- package/src/tree-grid/stories/index.story.tsx +0 -13
- package/src/tree-grid/test/__snapshots__/cell.tsx.snap +1 -1
- package/src/tree-grid/test/__snapshots__/index.tsx.snap +1 -1
- package/src/tree-grid/test/__snapshots__/roving-tab-index-item.tsx.snap +1 -1
- package/src/tree-grid/test/__snapshots__/roving-tab-index.tsx.snap +1 -1
- package/src/tree-grid/test/__snapshots__/row.tsx.snap +1 -1
- package/src/tree-grid/test/cell.tsx +0 -11
- package/src/tree-grid/test/index.tsx +0 -11
- package/src/tree-grid/test/roving-tab-index-item.tsx +0 -11
- package/src/tree-grid/test/roving-tab-index.tsx +0 -7
- package/src/tree-grid/test/row.tsx +0 -7
- package/src/tree-select/README.md +1 -1
- package/src/tree-select/index.tsx +0 -7
- package/src/tree-select/stories/index.story.tsx +0 -10
- package/src/tree-select/types.ts +1 -11
- package/src/truncate/README.md +1 -3
- package/src/truncate/component.tsx +0 -7
- package/src/truncate/hook.ts +0 -7
- package/src/truncate/stories/index.story.tsx +0 -7
- package/src/truncate/test/index.tsx +0 -7
- package/src/truncate/types.ts +0 -3
- package/src/truncate/utils.ts +0 -3
- package/src/unit-control/README.md +1 -3
- package/src/unit-control/index.tsx +0 -12
- package/src/unit-control/stories/index.story.tsx +0 -11
- package/src/unit-control/styles/unit-control-styles.ts +0 -6
- package/src/unit-control/test/index.tsx +0 -11
- package/src/unit-control/test/utils.ts +0 -3
- package/src/unit-control/types.ts +1 -25
- package/src/unit-control/unit-select-control.tsx +0 -11
- package/src/unit-control/utils.ts +0 -7
- package/src/utils/base-label.ts +1 -8
- package/src/utils/box-sizing.ts +0 -3
- package/src/utils/breakpoint.js +0 -3
- package/src/utils/colors.js +0 -3
- package/src/utils/config-values.js +1 -6
- package/src/utils/element-rect.ts +0 -3
- package/src/utils/font-size.ts +0 -7
- package/src/utils/font-values.js +1 -1
- package/src/utils/font.js +0 -3
- package/src/utils/get-valid-children.ts +0 -7
- package/src/utils/hooks/test/use-controlled-state.js +0 -7
- package/src/utils/hooks/test/use-controlled-value.js +0 -7
- package/src/utils/hooks/test/use-cx.js +0 -7
- package/src/utils/hooks/use-animated-offset-rect.ts +0 -7
- package/src/utils/hooks/use-controlled-state.js +0 -7
- package/src/utils/hooks/use-controlled-value.ts +0 -3
- package/src/utils/hooks/use-cx.ts +0 -7
- package/src/utils/hooks/use-on-value-update.ts +0 -3
- package/src/utils/hooks/use-update-effect.js +0 -3
- package/src/utils/polymorphic-element.tsx +0 -7
- package/src/utils/rtl.js +2 -9
- package/src/utils/strings.ts +0 -31
- package/src/utils/test/colors.js +0 -3
- package/src/utils/test/get-node-text.js +0 -3
- package/src/utils/test/math.js +0 -4
- package/src/utils/test/polymorphic-element.tsx +0 -5
- package/src/utils/test/rtl.js +0 -3
- package/src/utils/test/space.js +0 -3
- package/src/utils/test/strings.js +1 -99
- package/src/utils/test/unit-values.js +0 -3
- package/src/utils/theme-variables.scss +1 -0
- package/src/utils/use-responsive-value.ts +0 -3
- package/src/v-stack/README.md +1 -3
- package/src/v-stack/component.tsx +0 -7
- package/src/v-stack/hook.ts +0 -3
- package/src/v-stack/stories/e2e/index.story.tsx +0 -7
- package/src/v-stack/stories/index.story.tsx +1 -8
- package/src/v-stack/test/__snapshots__/index.tsx.snap +1 -1
- package/src/v-stack/test/index.tsx +0 -7
- package/src/v-stack/types.ts +0 -7
- package/src/validated-form-controls/components/combobox-control.tsx +0 -7
- package/src/validated-form-controls/components/content-editable-control.tsx +77 -0
- package/src/validated-form-controls/components/custom-select-control.tsx +0 -7
- package/src/validated-form-controls/components/form-token-field.tsx +0 -7
- package/src/validated-form-controls/components/index.ts +1 -5
- package/src/validated-form-controls/components/input-control.tsx +2 -17
- package/src/validated-form-controls/components/range-control.tsx +0 -7
- package/src/validated-form-controls/components/stories/combobox-control.story.tsx +0 -11
- package/src/validated-form-controls/components/stories/content-editable-control.story.tsx +46 -0
- package/src/validated-form-controls/components/stories/custom-select-control.story.tsx +0 -11
- package/src/validated-form-controls/components/stories/form-token-field.story.tsx +0 -11
- package/src/validated-form-controls/components/stories/input-control.story.tsx +0 -15
- package/src/validated-form-controls/components/stories/overview.story.tsx +51 -11
- package/src/validated-form-controls/components/stories/range-control.story.tsx +0 -11
- package/src/validated-form-controls/components/stories/story-utils.tsx +0 -11
- package/src/validated-form-controls/components/stories/textarea-control.story.tsx +0 -10
- package/src/validated-form-controls/components/stories/toggle-control.story.tsx +0 -11
- package/src/validated-form-controls/components/stories/toggle-group-control.story.tsx +0 -11
- package/src/validated-form-controls/components/textarea-control.tsx +0 -7
- package/src/validated-form-controls/components/toggle-control.tsx +0 -7
- package/src/validated-form-controls/components/toggle-group-control.tsx +0 -7
- package/src/validated-form-controls/control-with-error.tsx +10 -8
- package/src/validated-form-controls/style.scss +11 -4
- package/src/validated-form-controls/test/content-editable-control.tsx +71 -0
- package/src/validated-form-controls/test/control-with-error.tsx +42 -11
- package/src/validated-form-controls/validity-indicator.tsx +0 -11
- package/src/view/README.md +1 -3
- package/src/view/component.tsx +0 -7
- package/src/view/stories/index.story.tsx +0 -7
- package/src/view/test/__snapshots__/index.js.snap +1 -1
- package/src/view/test/index.js +0 -11
- package/src/visually-hidden/component.tsx +0 -7
- package/src/visually-hidden/stories/index.story.tsx +1 -1
- package/src/visually-hidden/styles.ts +0 -3
- package/src/visually-hidden/types.ts +0 -3
- package/src/z-stack/README.md +1 -3
- package/src/z-stack/component.tsx +0 -11
- package/src/z-stack/stories/index.story.tsx +0 -7
- package/src/z-stack/styles.ts +0 -3
- package/src/z-stack/types.ts +0 -3
- package/build/calendar/date-calendar/index.cjs +0 -70
- package/build/calendar/date-calendar/index.cjs.map +0 -7
- package/build/calendar/date-range-calendar/index.cjs +0 -164
- package/build/calendar/date-range-calendar/index.cjs.map +0 -7
- package/build/calendar/index.cjs +0 -37
- package/build/calendar/index.cjs.map +0 -7
- package/build/calendar/utils/constants.cjs +0 -90
- package/build/calendar/utils/constants.cjs.map +0 -7
- package/build/calendar/utils/day-cell.cjs +0 -117
- package/build/calendar/utils/day-cell.cjs.map +0 -7
- package/build/calendar/utils/misc.cjs +0 -33
- package/build/calendar/utils/misc.cjs.map +0 -7
- package/build/calendar/utils/use-localization-props.cjs +0 -158
- package/build/calendar/utils/use-localization-props.cjs.map +0 -7
- package/build/confirm-dialog/styles.cjs +0 -42
- package/build/confirm-dialog/styles.cjs.map +0 -7
- package/build/disabled/styles/disabled-styles.cjs +0 -42
- package/build/disabled/styles/disabled-styles.cjs.map +0 -7
- package/build/form-token-field/styles.cjs +0 -49
- package/build/form-token-field/styles.cjs.map +0 -7
- package/build/item-group/styles.cjs +0 -82
- package/build/item-group/styles.cjs.map +0 -7
- package/build/search-control/styles.cjs +0 -74
- package/build/search-control/styles.cjs.map +0 -7
- package/build/spinner/styles.cjs +0 -84
- package/build/spinner/styles.cjs.map +0 -7
- package/build/theme/color-algorithms.cjs +0 -131
- package/build/theme/color-algorithms.cjs.map +0 -7
- package/build/theme/index.cjs +0 -160
- package/build/theme/index.cjs.map +0 -7
- package/build/theme/types.cjs +0 -19
- package/build/theme/types.cjs.map +0 -7
- package/build/toggle-group-control/toggle-group-control/styles.cjs +0 -53
- package/build/toggle-group-control/toggle-group-control/styles.cjs.map +0 -7
- package/build/toggle-group-control/toggle-group-control-option-base/styles.cjs +0 -94
- package/build/toggle-group-control/toggle-group-control-option-base/styles.cjs.map +0 -7
- package/build/tools-panel/styles.cjs +0 -129
- package/build/tools-panel/styles.cjs.map +0 -7
- package/build/utils/deprecated-36px-size.cjs +0 -56
- package/build/utils/deprecated-36px-size.cjs.map +0 -7
- package/build/utils/use-deprecated-props.cjs +0 -41
- package/build/utils/use-deprecated-props.cjs.map +0 -7
- package/build/utils/with-ignore-ime-events.cjs +0 -44
- package/build/utils/with-ignore-ime-events.cjs.map +0 -7
- package/build/validated-form-controls/components/checkbox-control.cjs +0 -69
- package/build/validated-form-controls/components/checkbox-control.cjs.map +0 -7
- package/build/validated-form-controls/components/number-control.cjs +0 -67
- package/build/validated-form-controls/components/number-control.cjs.map +0 -7
- package/build/validated-form-controls/components/radio-control.cjs +0 -66
- package/build/validated-form-controls/components/radio-control.cjs.map +0 -7
- package/build/validated-form-controls/components/select-control.cjs +0 -66
- package/build/validated-form-controls/components/select-control.cjs.map +0 -7
- package/build/validated-form-controls/components/text-control.cjs +0 -66
- package/build/validated-form-controls/components/text-control.cjs.map +0 -7
- package/build-module/calendar/date-calendar/index.mjs +0 -45
- package/build-module/calendar/date-calendar/index.mjs.map +0 -7
- package/build-module/calendar/date-range-calendar/index.mjs +0 -138
- package/build-module/calendar/date-range-calendar/index.mjs.map +0 -7
- package/build-module/calendar/index.mjs +0 -10
- package/build-module/calendar/index.mjs.map +0 -7
- package/build-module/calendar/utils/constants.mjs +0 -64
- package/build-module/calendar/utils/constants.mjs.map +0 -7
- package/build-module/calendar/utils/day-cell.mjs +0 -92
- package/build-module/calendar/utils/day-cell.mjs.map +0 -7
- package/build-module/calendar/utils/misc.mjs +0 -8
- package/build-module/calendar/utils/misc.mjs.map +0 -7
- package/build-module/calendar/utils/use-localization-props.mjs +0 -133
- package/build-module/calendar/utils/use-localization-props.mjs.map +0 -7
- package/build-module/confirm-dialog/styles.mjs +0 -17
- package/build-module/confirm-dialog/styles.mjs.map +0 -7
- package/build-module/disabled/styles/disabled-styles.mjs +0 -17
- package/build-module/disabled/styles/disabled-styles.mjs.map +0 -7
- package/build-module/form-token-field/styles.mjs +0 -14
- package/build-module/form-token-field/styles.mjs.map +0 -7
- package/build-module/item-group/styles.mjs +0 -50
- package/build-module/item-group/styles.mjs.map +0 -7
- package/build-module/search-control/styles.mjs +0 -38
- package/build-module/search-control/styles.mjs.map +0 -7
- package/build-module/spinner/styles.mjs +0 -47
- package/build-module/spinner/styles.mjs.map +0 -7
- package/build-module/theme/color-algorithms.mjs +0 -94
- package/build-module/theme/color-algorithms.mjs.map +0 -7
- package/build-module/theme/index.mjs +0 -129
- package/build-module/theme/index.mjs.map +0 -7
- package/build-module/theme/types.mjs +0 -1
- package/build-module/theme/types.mjs.map +0 -7
- package/build-module/toggle-group-control/toggle-group-control/styles.mjs +0 -27
- package/build-module/toggle-group-control/toggle-group-control/styles.mjs.map +0 -7
- package/build-module/toggle-group-control/toggle-group-control-option-base/styles.mjs +0 -56
- package/build-module/toggle-group-control/toggle-group-control-option-base/styles.mjs.map +0 -7
- package/build-module/tools-panel/styles.mjs +0 -84
- package/build-module/tools-panel/styles.mjs.map +0 -7
- package/build-module/utils/deprecated-36px-size.mjs +0 -21
- package/build-module/utils/deprecated-36px-size.mjs.map +0 -7
- package/build-module/utils/use-deprecated-props.mjs +0 -16
- package/build-module/utils/use-deprecated-props.mjs.map +0 -7
- package/build-module/utils/with-ignore-ime-events.mjs +0 -19
- package/build-module/utils/with-ignore-ime-events.mjs.map +0 -7
- package/build-module/validated-form-controls/components/checkbox-control.mjs +0 -34
- package/build-module/validated-form-controls/components/checkbox-control.mjs.map +0 -7
- package/build-module/validated-form-controls/components/number-control.mjs +0 -32
- package/build-module/validated-form-controls/components/number-control.mjs.map +0 -7
- package/build-module/validated-form-controls/components/radio-control.mjs +0 -31
- package/build-module/validated-form-controls/components/radio-control.mjs.map +0 -7
- package/build-module/validated-form-controls/components/select-control.mjs +0 -31
- package/build-module/validated-form-controls/components/select-control.mjs.map +0 -7
- package/build-module/validated-form-controls/components/text-control.mjs +0 -31
- package/build-module/validated-form-controls/components/text-control.mjs.map +0 -7
- package/build-types/calendar/date-calendar/index.d.ts +0 -11
- package/build-types/calendar/date-calendar/index.d.ts.map +0 -1
- package/build-types/calendar/date-range-calendar/index.d.ts +0 -14
- package/build-types/calendar/date-range-calendar/index.d.ts.map +0 -1
- package/build-types/calendar/index.d.ts +0 -4
- package/build-types/calendar/index.d.ts.map +0 -1
- package/build-types/calendar/stories/date-calendar.story.d.ts +0 -21
- package/build-types/calendar/stories/date-calendar.story.d.ts.map +0 -1
- package/build-types/calendar/stories/date-range-calendar.story.d.ts +0 -21
- package/build-types/calendar/stories/date-range-calendar.story.d.ts.map +0 -1
- package/build-types/calendar/test/__utils__/index.d.ts +0 -10
- package/build-types/calendar/test/__utils__/index.d.ts.map +0 -1
- package/build-types/calendar/test/date-calendar.d.ts +0 -2
- package/build-types/calendar/test/date-calendar.d.ts.map +0 -1
- package/build-types/calendar/test/date-range-calendar.d.ts +0 -2
- package/build-types/calendar/test/date-range-calendar.d.ts.map +0 -1
- package/build-types/calendar/types.d.ts +0 -329
- package/build-types/calendar/types.d.ts.map +0 -1
- package/build-types/calendar/utils/constants.d.ts +0 -53
- package/build-types/calendar/utils/constants.d.ts.map +0 -1
- package/build-types/calendar/utils/day-cell.d.ts +0 -21
- package/build-types/calendar/utils/day-cell.d.ts.map +0 -1
- package/build-types/calendar/utils/misc.d.ts +0 -2
- package/build-types/calendar/utils/misc.d.ts.map +0 -1
- package/build-types/calendar/utils/use-localization-props.d.ts +0 -64
- package/build-types/calendar/utils/use-localization-props.d.ts.map +0 -1
- package/build-types/confirm-dialog/styles.d.ts +0 -10
- package/build-types/confirm-dialog/styles.d.ts.map +0 -1
- package/build-types/disabled/styles/disabled-styles.d.ts +0 -2
- package/build-types/disabled/styles/disabled-styles.d.ts.map +0 -1
- package/build-types/form-token-field/styles.d.ts +0 -6
- package/build-types/form-token-field/styles.d.ts.map +0 -1
- package/build-types/item-group/styles.d.ts +0 -13
- package/build-types/item-group/styles.d.ts.map +0 -1
- package/build-types/search-control/styles.d.ts +0 -7
- package/build-types/search-control/styles.d.ts.map +0 -1
- package/build-types/spinner/styles.d.ts +0 -13
- package/build-types/spinner/styles.d.ts.map +0 -1
- package/build-types/theme/color-algorithms.d.ts +0 -12
- package/build-types/theme/color-algorithms.d.ts.map +0 -1
- package/build-types/theme/index.d.ts +0 -24
- package/build-types/theme/index.d.ts.map +0 -1
- package/build-types/theme/stories/index.story.d.ts +0 -21
- package/build-types/theme/stories/index.story.d.ts.map +0 -1
- package/build-types/theme/test/color-algorithms.d.ts +0 -2
- package/build-types/theme/test/color-algorithms.d.ts.map +0 -1
- package/build-types/theme/test/index.d.ts.map +0 -1
- package/build-types/theme/types.d.ts +0 -59
- package/build-types/theme/types.d.ts.map +0 -1
- package/build-types/toggle-group-control/toggle-group-control/styles.d.ts +0 -4
- package/build-types/toggle-group-control/toggle-group-control/styles.d.ts.map +0 -1
- package/build-types/toggle-group-control/toggle-group-control-option-base/styles.d.ts +0 -14
- package/build-types/toggle-group-control/toggle-group-control-option-base/styles.d.ts.map +0 -1
- package/build-types/tools-panel/styles.d.ts +0 -24
- package/build-types/tools-panel/styles.d.ts.map +0 -1
- package/build-types/utils/deprecated-36px-size.d.ts +0 -7
- package/build-types/utils/deprecated-36px-size.d.ts.map +0 -1
- package/build-types/utils/use-deprecated-props.d.ts +0 -7
- package/build-types/utils/use-deprecated-props.d.ts.map +0 -1
- package/build-types/utils/with-ignore-ime-events.d.ts +0 -14
- package/build-types/utils/with-ignore-ime-events.d.ts.map +0 -1
- package/build-types/validated-form-controls/components/checkbox-control.d.ts +0 -10
- package/build-types/validated-form-controls/components/checkbox-control.d.ts.map +0 -1
- package/build-types/validated-form-controls/components/number-control.d.ts +0 -17
- package/build-types/validated-form-controls/components/number-control.d.ts.map +0 -1
- package/build-types/validated-form-controls/components/radio-control.d.ts +0 -12
- package/build-types/validated-form-controls/components/radio-control.d.ts.map +0 -1
- package/build-types/validated-form-controls/components/select-control.d.ts +0 -8
- package/build-types/validated-form-controls/components/select-control.d.ts.map +0 -1
- package/build-types/validated-form-controls/components/stories/checkbox-control.story.d.ts +0 -12
- package/build-types/validated-form-controls/components/stories/checkbox-control.story.d.ts.map +0 -1
- package/build-types/validated-form-controls/components/stories/number-control.story.d.ts +0 -12
- package/build-types/validated-form-controls/components/stories/number-control.story.d.ts.map +0 -1
- package/build-types/validated-form-controls/components/stories/radio-control.story.d.ts +0 -12
- package/build-types/validated-form-controls/components/stories/radio-control.story.d.ts.map +0 -1
- package/build-types/validated-form-controls/components/stories/select-control.story.d.ts +0 -12
- package/build-types/validated-form-controls/components/stories/select-control.story.d.ts.map +0 -1
- package/build-types/validated-form-controls/components/stories/text-control.story.d.ts +0 -9
- package/build-types/validated-form-controls/components/stories/text-control.story.d.ts.map +0 -1
- package/build-types/validated-form-controls/components/text-control.d.ts +0 -8
- package/build-types/validated-form-controls/components/text-control.d.ts.map +0 -1
- package/build-types/validated-form-controls/test/checkbox-control.d.ts +0 -2
- package/build-types/validated-form-controls/test/checkbox-control.d.ts.map +0 -1
- package/build-types/validated-form-controls/test/number-control.d.ts +0 -2
- package/build-types/validated-form-controls/test/number-control.d.ts.map +0 -1
- package/build-types/validated-form-controls/test/radio-control.d.ts +0 -2
- package/build-types/validated-form-controls/test/radio-control.d.ts.map +0 -1
- package/build-types/validated-form-controls/test/select-control.d.ts +0 -2
- package/build-types/validated-form-controls/test/select-control.d.ts.map +0 -1
- package/build-types/validated-form-controls/test/text-control.d.ts +0 -2
- package/build-types/validated-form-controls/test/text-control.d.ts.map +0 -1
- package/src/calendar/date-calendar/README.md +0 -261
- package/src/calendar/date-calendar/index.tsx +0 -69
- package/src/calendar/date-range-calendar/README.md +0 -298
- package/src/calendar/date-range-calendar/index.tsx +0 -215
- package/src/calendar/index.tsx +0 -3
- package/src/calendar/stories/date-calendar.story.tsx +0 -233
- package/src/calendar/stories/date-range-calendar.story.tsx +0 -242
- package/src/calendar/style.scss +0 -440
- package/src/calendar/test/__utils__/index.ts +0 -56
- package/src/calendar/test/date-calendar.tsx +0 -975
- package/src/calendar/test/date-range-calendar.tsx +0 -1701
- package/src/calendar/types.ts +0 -354
- package/src/calendar/utils/constants.ts +0 -63
- package/src/calendar/utils/day-cell.tsx +0 -133
- package/src/calendar/utils/misc.ts +0 -3
- package/src/calendar/utils/use-localization-props.ts +0 -168
- package/src/confirm-dialog/styles.ts +0 -18
- package/src/disabled/styles/disabled-styles.tsx +0 -23
- package/src/form-token-field/styles.ts +0 -15
- package/src/item-group/styles.ts +0 -116
- package/src/search-control/styles.ts +0 -27
- package/src/spinner/styles.ts +0 -50
- package/src/theme/README.md +0 -47
- package/src/theme/color-algorithms.ts +0 -142
- package/src/theme/index.tsx +0 -80
- package/src/theme/stories/index.story.tsx +0 -127
- package/src/theme/style.module.scss +0 -4
- package/src/theme/test/color-algorithms.ts +0 -100
- package/src/theme/test/index.tsx +0 -151
- package/src/theme/types.ts +0 -61
- package/src/toggle-group-control/toggle-group-control/styles.ts +0 -84
- package/src/toggle-group-control/toggle-group-control-option-base/styles.ts +0 -109
- package/src/tools-panel/styles.ts +0 -176
- package/src/utils/deprecated-36px-size.ts +0 -30
- package/src/utils/use-deprecated-props.ts +0 -14
- package/src/utils/with-ignore-ime-events.ts +0 -32
- package/src/validated-form-controls/components/checkbox-control.tsx +0 -49
- package/src/validated-form-controls/components/number-control.tsx +0 -49
- package/src/validated-form-controls/components/radio-control.tsx +0 -47
- package/src/validated-form-controls/components/select-control.tsx +0 -47
- package/src/validated-form-controls/components/stories/checkbox-control.story.tsx +0 -60
- package/src/validated-form-controls/components/stories/number-control.story.tsx +0 -65
- package/src/validated-form-controls/components/stories/radio-control.story.tsx +0 -67
- package/src/validated-form-controls/components/stories/select-control.story.tsx +0 -63
- package/src/validated-form-controls/components/stories/text-control.story.tsx +0 -61
- package/src/validated-form-controls/components/text-control.tsx +0 -41
- package/src/validated-form-controls/test/checkbox-control.tsx +0 -49
- package/src/validated-form-controls/test/number-control.tsx +0 -44
- package/src/validated-form-controls/test/radio-control.tsx +0 -61
- package/src/validated-form-controls/test/select-control.tsx +0 -57
- package/src/validated-form-controls/test/text-control.tsx +0 -49
- /package/build-module/{calendar → content-editable-control}/types.mjs +0 -0
- /package/build-module/{calendar → content-editable-control}/types.mjs.map +0 -0
- /package/build-types/{theme → content-editable-control}/test/index.d.ts +0 -0
|
@@ -1,10 +1,94 @@
|
|
|
1
1
|
// packages/components/src/tools-panel/tools-panel-item/hook.ts
|
|
2
|
+
import clsx from "clsx";
|
|
2
3
|
import { usePrevious } from "@wordpress/compose";
|
|
3
|
-
import { useCallback, useEffect, useLayoutEffect
|
|
4
|
-
|
|
4
|
+
import { useCallback, useEffect, useLayoutEffect } from "@wordpress/element";
|
|
5
|
+
|
|
6
|
+
// packages/style-runtime/src/index.ts
|
|
7
|
+
var STYLE_HASH_ATTRIBUTE = "data-wp-hash";
|
|
8
|
+
function getRuntime() {
|
|
9
|
+
const globalScope = globalThis;
|
|
10
|
+
if (globalScope.__wpStyleRuntime) {
|
|
11
|
+
return globalScope.__wpStyleRuntime;
|
|
12
|
+
}
|
|
13
|
+
globalScope.__wpStyleRuntime = {
|
|
14
|
+
documents: /* @__PURE__ */ new Map(),
|
|
15
|
+
styles: /* @__PURE__ */ new Map(),
|
|
16
|
+
injectedStyles: /* @__PURE__ */ new WeakMap()
|
|
17
|
+
};
|
|
18
|
+
if (typeof document !== "undefined") {
|
|
19
|
+
registerDocument(document);
|
|
20
|
+
}
|
|
21
|
+
return globalScope.__wpStyleRuntime;
|
|
22
|
+
}
|
|
23
|
+
function documentContainsStyleHash(targetDocument, hash) {
|
|
24
|
+
if (!targetDocument.head) {
|
|
25
|
+
return false;
|
|
26
|
+
}
|
|
27
|
+
for (const style of targetDocument.head.querySelectorAll(`style[${STYLE_HASH_ATTRIBUTE}]`)) {
|
|
28
|
+
if (style.getAttribute(STYLE_HASH_ATTRIBUTE) === hash) {
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
function injectStyle(targetDocument, hash, css) {
|
|
35
|
+
if (!targetDocument.head) {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
const runtime = getRuntime();
|
|
39
|
+
let injectedStyles = runtime.injectedStyles.get(targetDocument);
|
|
40
|
+
if (!injectedStyles) {
|
|
41
|
+
injectedStyles = /* @__PURE__ */ new Set();
|
|
42
|
+
runtime.injectedStyles.set(targetDocument, injectedStyles);
|
|
43
|
+
}
|
|
44
|
+
if (injectedStyles.has(hash)) {
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
if (documentContainsStyleHash(targetDocument, hash)) {
|
|
48
|
+
injectedStyles.add(hash);
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
const style = targetDocument.createElement("style");
|
|
52
|
+
style.setAttribute(STYLE_HASH_ATTRIBUTE, hash);
|
|
53
|
+
style.appendChild(targetDocument.createTextNode(css));
|
|
54
|
+
targetDocument.head.appendChild(style);
|
|
55
|
+
injectedStyles.add(hash);
|
|
56
|
+
}
|
|
57
|
+
function registerDocument(targetDocument) {
|
|
58
|
+
const runtime = getRuntime();
|
|
59
|
+
runtime.documents.set(targetDocument, (runtime.documents.get(targetDocument) ?? 0) + 1);
|
|
60
|
+
for (const [hash, css] of runtime.styles) {
|
|
61
|
+
injectStyle(targetDocument, hash, css);
|
|
62
|
+
}
|
|
63
|
+
return () => {
|
|
64
|
+
const count = runtime.documents.get(targetDocument);
|
|
65
|
+
if (count === void 0) {
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
if (count <= 1) {
|
|
69
|
+
runtime.documents.delete(targetDocument);
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
runtime.documents.set(targetDocument, count - 1);
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
function registerStyle(hash, css) {
|
|
76
|
+
const runtime = getRuntime();
|
|
77
|
+
runtime.styles.set(hash, css);
|
|
78
|
+
for (const targetDocument of runtime.documents.keys()) {
|
|
79
|
+
injectStyle(targetDocument, hash, css);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
// packages/components/src/tools-panel/style.module.scss
|
|
84
|
+
if (typeof process === "undefined" || process.env.NODE_ENV !== "test") {
|
|
85
|
+
registerStyle("29b739f451", "._62d714739f4dc308__tools-panel{border-top:1px solid #ddd;margin-top:-1px;padding:16px}._40db7f4f897b683d__tools-panel-with-inner-wrapper>div:not(:first-of-type){column-gap:16px;display:grid;grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr));row-gap:16px}._95a15674966f30a3__tools-panel-hidden-inner-wrapper>div:not(:first-of-type){display:none}._322a049b9b7d8674__tools-panel-header{gap:8px;grid-column:1/-1}._322a049b9b7d8674__tools-panel-header .components-dropdown-menu{line-height:0;margin:-4px 0}._322a049b9b7d8674__tools-panel-header._322a049b9b7d8674__tools-panel-header._322a049b9b7d8674__tools-panel-header._322a049b9b7d8674__tools-panel-header .components-dropdown-menu__toggle{min-width:24px;padding:0}.b92a382d3b30104d__tools-panel-heading.b92a382d3b30104d__tools-panel-heading{font-size:inherit;line-height:normal;margin:0}._8005d68fffa9db91__tools-panel-item{grid-column:1/-1}._8005d68fffa9db91__tools-panel-item>div,._8005d68fffa9db91__tools-panel-item>fieldset{margin-bottom:0;max-width:100%;padding-bottom:0}._8005d68fffa9db91__tools-panel-item .components-base-control__help,._8005d68fffa9db91__tools-panel-item._8005d68fffa9db91__tools-panel-item .components-base-control,._8005d68fffa9db91__tools-panel-item._8005d68fffa9db91__tools-panel-item .components-base-control .components-base-control__field:last-child{margin-bottom:0}._4f55e1a6e373746e__tools-panel-item-placeholder{display:none}.d40032517bff9e12__dropdown-menu{min-width:200px}.f135b96aa96ca6bb__reset-label{color:var(--wp-components-color-accent-darker-10,var(--wp-admin-theme-color-darker-10,#2145e6));font-size:var(--wpds-typography-font-size-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:1.4;margin-inline-start:12px;text-transform:uppercase}._69b138dfa5570d9c__default-controls-item{color:#1e1e1e}._69b138dfa5570d9c__default-controls-item._69b138dfa5570d9c__default-controls-item[aria-disabled=true]{color:#757575;opacity:1}._69b138dfa5570d9c__default-controls-item._69b138dfa5570d9c__default-controls-item[aria-disabled=true]:hover{color:#757575}._69b138dfa5570d9c__default-controls-item._69b138dfa5570d9c__default-controls-item[aria-disabled=true] .f135b96aa96ca6bb__reset-label{opacity:.3}");
|
|
86
|
+
}
|
|
87
|
+
var style_module_default = { "tools-panel": "_62d714739f4dc308__tools-panel", "tools-panel-with-inner-wrapper": "_40db7f4f897b683d__tools-panel-with-inner-wrapper", "tools-panel-hidden-inner-wrapper": "_95a15674966f30a3__tools-panel-hidden-inner-wrapper", "tools-panel-header": "_322a049b9b7d8674__tools-panel-header", "tools-panel-heading": "b92a382d3b30104d__tools-panel-heading", "tools-panel-item": "_8005d68fffa9db91__tools-panel-item", "tools-panel-item-placeholder": "_4f55e1a6e373746e__tools-panel-item-placeholder", "dropdown-menu": "d40032517bff9e12__dropdown-menu", "reset-label": "f135b96aa96ca6bb__reset-label", "default-controls-item": "_69b138dfa5570d9c__default-controls-item" };
|
|
88
|
+
|
|
89
|
+
// packages/components/src/tools-panel/tools-panel-item/hook.ts
|
|
5
90
|
import { useToolsPanelContext } from "../context.mjs";
|
|
6
91
|
import { useContextSystem } from "../../context/index.mjs";
|
|
7
|
-
import { useCx } from "../../utils/hooks/use-cx.mjs";
|
|
8
92
|
var noop = () => {
|
|
9
93
|
};
|
|
10
94
|
function useToolsPanelItem(props) {
|
|
@@ -86,13 +170,8 @@ function useToolsPanelItem(props) {
|
|
|
86
170
|
}
|
|
87
171
|
}, [hasMatchingPanel, isMenuItemChecked, isRegistered, isResetting, isValueSet, wasMenuItemChecked, onSelect, onDeselect]);
|
|
88
172
|
const isShown = isShownByDefault ? menuItems?.[menuGroup]?.[label] !== void 0 : isMenuItemChecked;
|
|
89
|
-
const
|
|
90
|
-
const classes =
|
|
91
|
-
const shouldApplyPlaceholderStyles = shouldRenderPlaceholder && !isShown;
|
|
92
|
-
const firstItemStyle = firstDisplayedItem === label && __experimentalFirstVisibleItemClass;
|
|
93
|
-
const lastItemStyle = lastDisplayedItem === label && __experimentalLastVisibleItemClass;
|
|
94
|
-
return cx(styles.ToolsPanelItem, shouldApplyPlaceholderStyles && styles.ToolsPanelItemPlaceholder, !shouldApplyPlaceholderStyles && className, firstItemStyle, lastItemStyle);
|
|
95
|
-
}, [isShown, shouldRenderPlaceholder, className, cx, firstDisplayedItem, lastDisplayedItem, __experimentalFirstVisibleItemClass, __experimentalLastVisibleItemClass, label]);
|
|
173
|
+
const shouldApplyPlaceholderStyles = shouldRenderPlaceholder && !isShown;
|
|
174
|
+
const classes = clsx(style_module_default["tools-panel-item"], shouldApplyPlaceholderStyles && style_module_default["tools-panel-item-placeholder"], !shouldApplyPlaceholderStyles && className, firstDisplayedItem === label && __experimentalFirstVisibleItemClass, lastDisplayedItem === label && __experimentalLastVisibleItemClass);
|
|
96
175
|
return {
|
|
97
176
|
...otherProps,
|
|
98
177
|
isShown,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../src/tools-panel/tools-panel-item/hook.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { usePrevious } from '@wordpress/compose';\nimport { useCallback, useEffect, useLayoutEffect, useMemo } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport * as styles from '../styles';\nimport { useToolsPanelContext } from '../context';\nimport { useContextSystem } from '../../context';\nimport { useCx } from '../../utils/hooks/use-cx';\nconst noop = () => {};\nexport function useToolsPanelItem(props) {\n const {\n className,\n hasValue,\n isShownByDefault = false,\n label,\n panelId,\n resetAllFilter = noop,\n onDeselect,\n onSelect,\n ...otherProps\n } = useContextSystem(props, 'ToolsPanelItem');\n const {\n panelId: currentPanelId,\n menuItems,\n registerResetAllFilter,\n deregisterResetAllFilter,\n registerPanelItem,\n deregisterPanelItem,\n flagItemCustomization,\n isResetting,\n shouldRenderPlaceholderItems: shouldRenderPlaceholder,\n firstDisplayedItem,\n lastDisplayedItem,\n __experimentalFirstVisibleItemClass,\n __experimentalLastVisibleItemClass\n } = useToolsPanelContext();\n\n // hasValue is a new function on every render, so do not add it as a\n // dependency to the useCallback hook! If needed, we should use a ref.\n const hasValueCallback = useCallback(hasValue, [panelId]);\n // resetAllFilter is a new function on every render, so do not add it as a\n // dependency to the useCallback hook! If needed, we should use a ref.\n const resetAllFilterCallback = useCallback(resetAllFilter, [panelId]);\n const previousPanelId = usePrevious(currentPanelId);\n const hasMatchingPanel = currentPanelId === panelId || currentPanelId === null;\n\n // Registering the panel item allows the panel to include it in its\n // automatically generated menu and determine its initial checked status.\n //\n // This is performed in a layout effect to ensure that the panel item\n // is registered before it is rendered preventing a rendering glitch.\n // See: https://github.com/WordPress/gutenberg/issues/56470\n useLayoutEffect(() => {\n if (hasMatchingPanel && previousPanelId !== null) {\n registerPanelItem({\n hasValue: hasValueCallback,\n isShownByDefault,\n label,\n panelId\n });\n }\n return () => {\n if (previousPanelId === null && !!currentPanelId || currentPanelId === panelId) {\n deregisterPanelItem(label);\n }\n };\n }, [currentPanelId, hasMatchingPanel, isShownByDefault, label, hasValueCallback, panelId, previousPanelId, registerPanelItem, deregisterPanelItem]);\n useEffect(() => {\n if (hasMatchingPanel) {\n registerResetAllFilter(resetAllFilterCallback);\n }\n return () => {\n if (hasMatchingPanel) {\n deregisterResetAllFilter(resetAllFilterCallback);\n }\n };\n }, [registerResetAllFilter, deregisterResetAllFilter, resetAllFilterCallback, hasMatchingPanel]);\n\n // Note: `label` is used as a key when building menu item state in\n // `ToolsPanel`.\n const menuGroup = isShownByDefault ? 'default' : 'optional';\n const isMenuItemChecked = menuItems?.[menuGroup]?.[label];\n const wasMenuItemChecked = usePrevious(isMenuItemChecked);\n const isRegistered = menuItems?.[menuGroup]?.[label] !== undefined;\n const isValueSet = hasValue();\n // Notify the panel when an item's value has changed except for optional\n // items without value because the item should not cause itself to hide.\n useEffect(() => {\n if (!isShownByDefault && !isValueSet) {\n return;\n }\n flagItemCustomization(isValueSet, label, menuGroup);\n }, [isValueSet, menuGroup, label, flagItemCustomization, isShownByDefault]);\n\n // Determine if the panel item's corresponding menu is being toggled and\n // trigger appropriate callback if it is.\n useEffect(() => {\n // We check whether this item is currently registered as items rendered\n // via fills can persist through the parent panel being remounted.\n // See: https://github.com/WordPress/gutenberg/pull/45673\n if (!isRegistered || isResetting || !hasMatchingPanel) {\n return;\n }\n if (isMenuItemChecked && !isValueSet && !wasMenuItemChecked) {\n onSelect?.();\n }\n if (!isMenuItemChecked && isValueSet && wasMenuItemChecked) {\n onDeselect?.();\n }\n }, [hasMatchingPanel, isMenuItemChecked, isRegistered, isResetting, isValueSet, wasMenuItemChecked, onSelect, onDeselect]);\n\n // The item is shown if it is a default control regardless of whether it\n // has a value. Optional items are shown when they are checked or have\n // a value.\n const isShown = isShownByDefault ? menuItems?.[menuGroup]?.[label] !== undefined : isMenuItemChecked;\n const cx = useCx();\n const classes = useMemo(() => {\n const shouldApplyPlaceholderStyles = shouldRenderPlaceholder && !isShown;\n const firstItemStyle = firstDisplayedItem === label && __experimentalFirstVisibleItemClass;\n const lastItemStyle = lastDisplayedItem === label && __experimentalLastVisibleItemClass;\n return cx(styles.ToolsPanelItem, shouldApplyPlaceholderStyles && styles.ToolsPanelItemPlaceholder, !shouldApplyPlaceholderStyles && className, firstItemStyle, lastItemStyle);\n }, [isShown, shouldRenderPlaceholder, className, cx, firstDisplayedItem, lastDisplayedItem, __experimentalFirstVisibleItemClass, __experimentalLastVisibleItemClass, label]);\n return {\n ...otherProps,\n isShown,\n shouldRenderPlaceholder,\n className: classes\n };\n}"],
|
|
5
|
-
"mappings": ";
|
|
3
|
+
"sources": ["../../../src/tools-panel/tools-panel-item/hook.ts", "../../../../style-runtime/src/index.ts", "../../../src/tools-panel/style.module.scss"],
|
|
4
|
+
"sourcesContent": ["import clsx from 'clsx';\nimport { usePrevious } from '@wordpress/compose';\nimport { useCallback, useEffect, useLayoutEffect } from '@wordpress/element';\nimport styles from '../style.module.scss';\nimport { useToolsPanelContext } from '../context';\nimport { useContextSystem } from '../../context';\nconst noop = () => {};\nexport function useToolsPanelItem(props) {\n const {\n className,\n hasValue,\n isShownByDefault = false,\n label,\n panelId,\n resetAllFilter = noop,\n onDeselect,\n onSelect,\n ...otherProps\n } = useContextSystem(props, 'ToolsPanelItem');\n const {\n panelId: currentPanelId,\n menuItems,\n registerResetAllFilter,\n deregisterResetAllFilter,\n registerPanelItem,\n deregisterPanelItem,\n flagItemCustomization,\n isResetting,\n shouldRenderPlaceholderItems: shouldRenderPlaceholder,\n firstDisplayedItem,\n lastDisplayedItem,\n __experimentalFirstVisibleItemClass,\n __experimentalLastVisibleItemClass\n } = useToolsPanelContext();\n\n // hasValue is a new function on every render, so do not add it as a\n // dependency to the useCallback hook! If needed, we should use a ref.\n const hasValueCallback = useCallback(hasValue, [panelId]);\n // resetAllFilter is a new function on every render, so do not add it as a\n // dependency to the useCallback hook! If needed, we should use a ref.\n const resetAllFilterCallback = useCallback(resetAllFilter, [panelId]);\n const previousPanelId = usePrevious(currentPanelId);\n const hasMatchingPanel = currentPanelId === panelId || currentPanelId === null;\n\n // Registering the panel item allows the panel to include it in its\n // automatically generated menu and determine its initial checked status.\n //\n // This is performed in a layout effect to ensure that the panel item\n // is registered before it is rendered preventing a rendering glitch.\n // See: https://github.com/WordPress/gutenberg/issues/56470\n useLayoutEffect(() => {\n if (hasMatchingPanel && previousPanelId !== null) {\n registerPanelItem({\n hasValue: hasValueCallback,\n isShownByDefault,\n label,\n panelId\n });\n }\n return () => {\n if (previousPanelId === null && !!currentPanelId || currentPanelId === panelId) {\n deregisterPanelItem(label);\n }\n };\n }, [currentPanelId, hasMatchingPanel, isShownByDefault, label, hasValueCallback, panelId, previousPanelId, registerPanelItem, deregisterPanelItem]);\n useEffect(() => {\n if (hasMatchingPanel) {\n registerResetAllFilter(resetAllFilterCallback);\n }\n return () => {\n if (hasMatchingPanel) {\n deregisterResetAllFilter(resetAllFilterCallback);\n }\n };\n }, [registerResetAllFilter, deregisterResetAllFilter, resetAllFilterCallback, hasMatchingPanel]);\n\n // Note: `label` is used as a key when building menu item state in\n // `ToolsPanel`.\n const menuGroup = isShownByDefault ? 'default' : 'optional';\n const isMenuItemChecked = menuItems?.[menuGroup]?.[label];\n const wasMenuItemChecked = usePrevious(isMenuItemChecked);\n const isRegistered = menuItems?.[menuGroup]?.[label] !== undefined;\n const isValueSet = hasValue();\n // Notify the panel when an item's value has changed except for optional\n // items without value because the item should not cause itself to hide.\n useEffect(() => {\n if (!isShownByDefault && !isValueSet) {\n return;\n }\n flagItemCustomization(isValueSet, label, menuGroup);\n }, [isValueSet, menuGroup, label, flagItemCustomization, isShownByDefault]);\n\n // Determine if the panel item's corresponding menu is being toggled and\n // trigger appropriate callback if it is.\n useEffect(() => {\n // We check whether this item is currently registered as items rendered\n // via fills can persist through the parent panel being remounted.\n // See: https://github.com/WordPress/gutenberg/pull/45673\n if (!isRegistered || isResetting || !hasMatchingPanel) {\n return;\n }\n if (isMenuItemChecked && !isValueSet && !wasMenuItemChecked) {\n onSelect?.();\n }\n if (!isMenuItemChecked && isValueSet && wasMenuItemChecked) {\n onDeselect?.();\n }\n }, [hasMatchingPanel, isMenuItemChecked, isRegistered, isResetting, isValueSet, wasMenuItemChecked, onSelect, onDeselect]);\n\n // The item is shown if it is a default control regardless of whether it\n // has a value. Optional items are shown when they are checked or have\n // a value.\n const isShown = isShownByDefault ? menuItems?.[menuGroup]?.[label] !== undefined : isMenuItemChecked;\n const shouldApplyPlaceholderStyles = shouldRenderPlaceholder && !isShown;\n const classes = clsx(styles['tools-panel-item'], shouldApplyPlaceholderStyles && styles['tools-panel-item-placeholder'], !shouldApplyPlaceholderStyles && className, firstDisplayedItem === label && __experimentalFirstVisibleItemClass, lastDisplayedItem === label && __experimentalLastVisibleItemClass);\n return {\n ...otherProps,\n isShown,\n shouldRenderPlaceholder,\n className: classes\n };\n}", "const STYLE_HASH_ATTRIBUTE = 'data-wp-hash';\n\n/**\n * Returns the shared style runtime registry.\n *\n * The registry is stored on `globalThis` so separately bundled copies of this\n * package can coordinate through the same document and style maps.\n *\n * @return The shared runtime registry.\n */\nfunction getRuntime() {\n const globalScope = globalThis;\n if (globalScope.__wpStyleRuntime) {\n return globalScope.__wpStyleRuntime;\n }\n globalScope.__wpStyleRuntime = {\n documents: new Map(),\n styles: new Map(),\n injectedStyles: new WeakMap()\n };\n if (typeof document !== 'undefined') {\n registerDocument(document);\n }\n return globalScope.__wpStyleRuntime;\n}\n\n/**\n * Checks whether a document already contains a style tag for a hash.\n *\n * @param targetDocument Document to inspect.\n * @param hash Stable hash for the transformed CSS.\n *\n * @return Whether the style hash already exists in the document.\n */\nfunction documentContainsStyleHash(targetDocument, hash) {\n if (!targetDocument.head) {\n return false;\n }\n for (const style of targetDocument.head.querySelectorAll(`style[${STYLE_HASH_ATTRIBUTE}]`)) {\n if (style.getAttribute(STYLE_HASH_ATTRIBUTE) === hash) {\n return true;\n }\n }\n return false;\n}\n\n/**\n * Injects a registered style into a document, unless that document already\n * contains a style tag for the same hash.\n *\n * @param targetDocument Document to inject the style into.\n * @param hash Stable hash for the transformed CSS.\n * @param css CSS text to inject.\n */\nfunction injectStyle(targetDocument, hash, css) {\n if (!targetDocument.head) {\n return;\n }\n const runtime = getRuntime();\n let injectedStyles = runtime.injectedStyles.get(targetDocument);\n if (!injectedStyles) {\n injectedStyles = new Set();\n runtime.injectedStyles.set(targetDocument, injectedStyles);\n }\n if (injectedStyles.has(hash)) {\n return;\n }\n\n // Older generated CSS module output can still inject matching style tags\n // after this document's cache is created, so keep the DOM as the fallback\n // source of truth on cache misses.\n if (documentContainsStyleHash(targetDocument, hash)) {\n injectedStyles.add(hash);\n return;\n }\n const style = targetDocument.createElement('style');\n style.setAttribute(STYLE_HASH_ATTRIBUTE, hash);\n style.appendChild(targetDocument.createTextNode(css));\n targetDocument.head.appendChild(style);\n injectedStyles.add(hash);\n}\n\n/**\n * Registers a document as a style injection target.\n *\n * Existing registered styles are replayed into the document immediately.\n * Documents are reference-counted so multiple providers can safely register the\n * same document without one cleanup removing it while another registration is\n * still active.\n *\n * @param targetDocument Document to receive registered styles.\n * @return Cleanup function that unregisters this document registration.\n */\nexport function registerDocument(targetDocument) {\n const runtime = getRuntime();\n runtime.documents.set(targetDocument, (runtime.documents.get(targetDocument) ?? 0) + 1);\n for (const [hash, css] of runtime.styles) {\n injectStyle(targetDocument, hash, css);\n }\n return () => {\n const count = runtime.documents.get(targetDocument);\n if (count === undefined) {\n return;\n }\n if (count <= 1) {\n runtime.documents.delete(targetDocument);\n return;\n }\n runtime.documents.set(targetDocument, count - 1);\n };\n}\n\n/**\n * Registers a style and injects it into all registered documents.\n *\n * The hash is used as the deduplication key, so calling this repeatedly with\n * the same hash will not add duplicate style tags to a document.\n * Registered styles are retained for the lifetime of the page so they can be\n * replayed into documents that are registered later.\n *\n * @param hash Stable hash for the transformed CSS.\n * @param css CSS text to inject.\n */\nexport function registerStyle(hash, css) {\n const runtime = getRuntime();\n runtime.styles.set(hash, css);\n for (const targetDocument of runtime.documents.keys()) {\n injectStyle(targetDocument, hash, css);\n }\n}", "import { registerStyle } from '@wordpress/style-runtime';\nif (typeof process === 'undefined' || process.env.NODE_ENV !== 'test') {\n\tregisterStyle(\"29b739f451\", \"._62d714739f4dc308__tools-panel{border-top:1px solid #ddd;margin-top:-1px;padding:16px}._40db7f4f897b683d__tools-panel-with-inner-wrapper>div:not(:first-of-type){column-gap:16px;display:grid;grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr));row-gap:16px}._95a15674966f30a3__tools-panel-hidden-inner-wrapper>div:not(:first-of-type){display:none}._322a049b9b7d8674__tools-panel-header{gap:8px;grid-column:1/-1}._322a049b9b7d8674__tools-panel-header .components-dropdown-menu{line-height:0;margin:-4px 0}._322a049b9b7d8674__tools-panel-header._322a049b9b7d8674__tools-panel-header._322a049b9b7d8674__tools-panel-header._322a049b9b7d8674__tools-panel-header .components-dropdown-menu__toggle{min-width:24px;padding:0}.b92a382d3b30104d__tools-panel-heading.b92a382d3b30104d__tools-panel-heading{font-size:inherit;line-height:normal;margin:0}._8005d68fffa9db91__tools-panel-item{grid-column:1/-1}._8005d68fffa9db91__tools-panel-item>div,._8005d68fffa9db91__tools-panel-item>fieldset{margin-bottom:0;max-width:100%;padding-bottom:0}._8005d68fffa9db91__tools-panel-item .components-base-control__help,._8005d68fffa9db91__tools-panel-item._8005d68fffa9db91__tools-panel-item .components-base-control,._8005d68fffa9db91__tools-panel-item._8005d68fffa9db91__tools-panel-item .components-base-control .components-base-control__field:last-child{margin-bottom:0}._4f55e1a6e373746e__tools-panel-item-placeholder{display:none}.d40032517bff9e12__dropdown-menu{min-width:200px}.f135b96aa96ca6bb__reset-label{color:var(--wp-components-color-accent-darker-10,var(--wp-admin-theme-color-darker-10,#2145e6));font-size:var(--wpds-typography-font-size-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:1.4;margin-inline-start:12px;text-transform:uppercase}._69b138dfa5570d9c__default-controls-item{color:#1e1e1e}._69b138dfa5570d9c__default-controls-item._69b138dfa5570d9c__default-controls-item[aria-disabled=true]{color:#757575;opacity:1}._69b138dfa5570d9c__default-controls-item._69b138dfa5570d9c__default-controls-item[aria-disabled=true]:hover{color:#757575}._69b138dfa5570d9c__default-controls-item._69b138dfa5570d9c__default-controls-item[aria-disabled=true] .f135b96aa96ca6bb__reset-label{opacity:.3}\");\n}\nexport default {\"tools-panel\":\"_62d714739f4dc308__tools-panel\",\"tools-panel-with-inner-wrapper\":\"_40db7f4f897b683d__tools-panel-with-inner-wrapper\",\"tools-panel-hidden-inner-wrapper\":\"_95a15674966f30a3__tools-panel-hidden-inner-wrapper\",\"tools-panel-header\":\"_322a049b9b7d8674__tools-panel-header\",\"tools-panel-heading\":\"b92a382d3b30104d__tools-panel-heading\",\"tools-panel-item\":\"_8005d68fffa9db91__tools-panel-item\",\"tools-panel-item-placeholder\":\"_4f55e1a6e373746e__tools-panel-item-placeholder\",\"dropdown-menu\":\"d40032517bff9e12__dropdown-menu\",\"reset-label\":\"f135b96aa96ca6bb__reset-label\",\"default-controls-item\":\"_69b138dfa5570d9c__default-controls-item\"};\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/tree-grid/cell.tsx"],
|
|
4
|
-
"sourcesContent": ["
|
|
5
|
-
"mappings": ";
|
|
4
|
+
"sourcesContent": ["import { forwardRef } from '@wordpress/element';\nimport TreeGridItem from './item';\nimport { Fragment as _Fragment, jsx as _jsx } from \"react/jsx-runtime\";\nfunction UnforwardedTreeGridCell({\n children,\n withoutGridItem = false,\n ...props\n}, ref) {\n return /*#__PURE__*/_jsx(\"td\", {\n ...props,\n role: \"gridcell\",\n children: withoutGridItem ? /*#__PURE__*/_jsx(_Fragment, {\n children: typeof children === 'function' ? children({\n ...props,\n ref\n }) : children\n }) : /*#__PURE__*/_jsx(TreeGridItem, {\n ref: ref,\n children: children\n })\n });\n}\n\n/**\n * `TreeGridCell` is used to create a tree hierarchy.\n * It is not a visually styled component, but instead helps with adding\n * keyboard navigation and roving tab index behaviors to tree grid structures.\n *\n * @see {@link https://www.w3.org/TR/wai-aria-practices/examples/treegrid/treegrid-1.html}\n */\nexport const TreeGridCell = forwardRef(UnforwardedTreeGridCell);\nTreeGridCell.displayName = 'TreeGridCell';\nexport default TreeGridCell;"],
|
|
5
|
+
"mappings": ";AAAA,SAAS,kBAAkB;AAC3B,OAAO,kBAAkB;AACzB,SAAS,YAAY,WAAW,OAAO,YAAY;AACnD,SAAS,wBAAwB;AAAA,EAC/B;AAAA,EACA,kBAAkB;AAAA,EAClB,GAAG;AACL,GAAG,KAAK;AACN,SAAoB,qBAAK,MAAM;AAAA,IAC7B,GAAG;AAAA,IACH,MAAM;AAAA,IACN,UAAU,kBAA+B,qBAAK,WAAW;AAAA,MACvD,UAAU,OAAO,aAAa,aAAa,SAAS;AAAA,QAClD,GAAG;AAAA,QACH;AAAA,MACF,CAAC,IAAI;AAAA,IACP,CAAC,IAAiB,qBAAK,cAAc;AAAA,MACnC;AAAA,MACA;AAAA,IACF,CAAC;AAAA,EACH,CAAC;AACH;AASO,IAAM,eAAe,WAAW,uBAAuB;AAC9D,aAAa,cAAc;AAC3B,IAAO,eAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/tree-grid/index.tsx"],
|
|
4
|
-
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { focus } from '@wordpress/dom';\nimport { forwardRef, useCallback } from '@wordpress/element';\nimport { UP, DOWN, LEFT, RIGHT, HOME, END } from '@wordpress/keycodes';\n\n/**\n * Internal dependencies\n */\nimport RovingTabIndexContainer from './roving-tab-index';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n/**\n * Return focusables in a row element, excluding those from other branches\n * nested within the row.\n *\n * @param rowElement The DOM element representing the row.\n *\n * @return The array of focusables in the row.\n */\nfunction getRowFocusables(rowElement) {\n const focusablesInRow = focus.focusable.find(rowElement, {\n sequential: true\n });\n return focusablesInRow.filter(focusable => {\n return focusable.closest('[role=\"row\"]') === rowElement;\n });\n}\n\n/**\n * Renders both a table and tbody element, used to create a tree hierarchy.\n *\n */\nfunction UnforwardedTreeGrid({\n children,\n onExpandRow = () => {},\n onCollapseRow = () => {},\n onFocusRow = () => {},\n applicationAriaLabel,\n ...props\n}, /** A ref to the underlying DOM table element. */\nref) {\n const onKeyDown = useCallback(event => {\n const {\n keyCode,\n metaKey,\n ctrlKey,\n altKey\n } = event;\n\n // The shift key is intentionally absent from the following list,\n // to enable shift + up/down to select items from the list.\n const hasModifierKeyPressed = metaKey || ctrlKey || altKey;\n if (hasModifierKeyPressed || ![UP, DOWN, LEFT, RIGHT, HOME, END].includes(keyCode)) {\n return;\n }\n\n // The event will be handled, stop propagation.\n event.stopPropagation();\n const {\n activeElement\n } = document;\n const {\n currentTarget: treeGridElement\n } = event;\n if (!activeElement || !treeGridElement.contains(activeElement)) {\n return;\n }\n\n // Calculate the columnIndex of the active element.\n const activeRow = activeElement.closest('[role=\"row\"]');\n if (!activeRow) {\n return;\n }\n const focusablesInRow = getRowFocusables(activeRow);\n const currentColumnIndex = focusablesInRow.indexOf(activeElement);\n const canExpandCollapse = 0 === currentColumnIndex;\n const cannotFocusNextColumn = canExpandCollapse && (activeRow.getAttribute('data-expanded') === 'false' || activeRow.getAttribute('aria-expanded') === 'false') && keyCode === RIGHT;\n if ([LEFT, RIGHT].includes(keyCode)) {\n // Calculate to the next element.\n let nextIndex;\n if (keyCode === LEFT) {\n nextIndex = Math.max(0, currentColumnIndex - 1);\n } else {\n nextIndex = Math.min(currentColumnIndex + 1, focusablesInRow.length - 1);\n }\n\n // Focus is at the left most column.\n if (canExpandCollapse) {\n if (keyCode === LEFT) {\n // Left:\n // If a row is focused, and it is expanded, collapses the current row.\n if (activeRow.getAttribute('data-expanded') === 'true' || activeRow.getAttribute('aria-expanded') === 'true') {\n onCollapseRow(activeRow);\n event.preventDefault();\n return;\n }\n // If a row is focused, and it is collapsed, moves to the parent row (if there is one).\n const level = Math.max(parseInt(activeRow?.getAttribute('aria-level') ?? '1', 10) - 1, 1);\n const rows = Array.from(treeGridElement.querySelectorAll('[role=\"row\"]'));\n let parentRow = activeRow;\n const currentRowIndex = rows.indexOf(activeRow);\n for (let i = currentRowIndex; i >= 0; i--) {\n const ariaLevel = rows[i].getAttribute('aria-level');\n if (ariaLevel !== null && parseInt(ariaLevel, 10) === level) {\n parentRow = rows[i];\n break;\n }\n }\n getRowFocusables(parentRow)?.[0]?.focus();\n }\n if (keyCode === RIGHT) {\n // Right:\n // If a row is focused, and it is collapsed, expands the current row.\n if (activeRow.getAttribute('data-expanded') === 'false' || activeRow.getAttribute('aria-expanded') === 'false') {\n onExpandRow(activeRow);\n event.preventDefault();\n return;\n }\n // If a row is focused, and it is expanded, focuses the next cell in the row.\n const focusableItems = getRowFocusables(activeRow);\n if (focusableItems.length > 0) {\n focusableItems[nextIndex]?.focus();\n }\n }\n // Prevent key use for anything else. For example, Voiceover\n // will start reading text on continued use of left/right arrow\n // keys.\n event.preventDefault();\n return;\n }\n\n // Focus the next element. If at most left column and row is collapsed, moving right is not allowed as this will expand. However, if row is collapsed, moving left is allowed.\n if (cannotFocusNextColumn) {\n return;\n }\n focusablesInRow[nextIndex].focus();\n\n // Prevent key use for anything else. This ensures Voiceover\n // doesn't try to handle key navigation.\n event.preventDefault();\n } else if ([UP, DOWN].includes(keyCode)) {\n // Calculate the rowIndex of the next row.\n const rows = Array.from(treeGridElement.querySelectorAll('[role=\"row\"]'));\n const currentRowIndex = rows.indexOf(activeRow);\n let nextRowIndex;\n if (keyCode === UP) {\n nextRowIndex = Math.max(0, currentRowIndex - 1);\n } else {\n nextRowIndex = Math.min(currentRowIndex + 1, rows.length - 1);\n }\n\n // Focus is either at the top or bottom edge of the grid. Do nothing.\n if (nextRowIndex === currentRowIndex) {\n // Prevent key use for anything else. For example, Voiceover\n // will start navigating horizontally when reaching the vertical\n // bounds of a table.\n event.preventDefault();\n return;\n }\n\n // Get the focusables in the next row.\n const focusablesInNextRow = getRowFocusables(rows[nextRowIndex]);\n\n // If for some reason there are no focusables in the next row, do nothing.\n if (!focusablesInNextRow || !focusablesInNextRow.length) {\n // Prevent key use for anything else. For example, Voiceover\n // will still focus text when using arrow keys, while this\n // component should limit navigation to focusables.\n event.preventDefault();\n return;\n }\n\n // Try to focus the element in the next row that's at a similar column to the activeElement.\n const nextIndex = Math.min(currentColumnIndex, focusablesInNextRow.length - 1);\n focusablesInNextRow[nextIndex].focus();\n\n // Let consumers know the row that was originally focused,\n // and the row that is now in focus.\n onFocusRow(event, activeRow, rows[nextRowIndex]);\n\n // Prevent key use for anything else. This ensures Voiceover\n // doesn't try to handle key navigation.\n event.preventDefault();\n } else if ([HOME, END].includes(keyCode)) {\n // Calculate the rowIndex of the next row.\n const rows = Array.from(treeGridElement.querySelectorAll('[role=\"row\"]'));\n const currentRowIndex = rows.indexOf(activeRow);\n let nextRowIndex;\n if (keyCode === HOME) {\n nextRowIndex = 0;\n } else {\n nextRowIndex = rows.length - 1;\n }\n\n // Focus is either at the top or bottom edge of the grid. Do nothing.\n if (nextRowIndex === currentRowIndex) {\n // Prevent key use for anything else. For example, Voiceover\n // will start navigating horizontally when reaching the vertical\n // bounds of a table.\n event.preventDefault();\n return;\n }\n\n // Get the focusables in the next row.\n const focusablesInNextRow = getRowFocusables(rows[nextRowIndex]);\n\n // If for some reason there are no focusables in the next row, do nothing.\n if (!focusablesInNextRow || !focusablesInNextRow.length) {\n // Prevent key use for anything else. For example, Voiceover\n // will still focus text when using arrow keys, while this\n // component should limit navigation to focusables.\n event.preventDefault();\n return;\n }\n\n // Try to focus the element in the next row that's at a similar column to the activeElement.\n const nextIndex = Math.min(currentColumnIndex, focusablesInNextRow.length - 1);\n focusablesInNextRow[nextIndex].focus();\n\n // Let consumers know the row that was originally focused,\n // and the row that is now in focus.\n onFocusRow(event, activeRow, rows[nextRowIndex]);\n\n // Prevent key use for anything else. This ensures Voiceover\n // doesn't try to handle key navigation.\n event.preventDefault();\n }\n }, [onExpandRow, onCollapseRow, onFocusRow]);\n\n /* Disable reason: A treegrid is implemented using a table element. */\n /* eslint-disable jsx-a11y/no-noninteractive-element-to-interactive-role */\n return /*#__PURE__*/_jsx(RovingTabIndexContainer, {\n children: /*#__PURE__*/_jsx(\"div\", {\n role: \"application\",\n \"aria-label\": applicationAriaLabel,\n children: /*#__PURE__*/_jsx(\"table\", {\n ...props,\n role: \"treegrid\",\n onKeyDown: onKeyDown,\n ref: ref,\n children: /*#__PURE__*/_jsx(\"tbody\", {\n children: children\n })\n })\n })\n });\n /* eslint-enable jsx-a11y/no-noninteractive-element-to-interactive-role */\n}\n\n/**\n * `TreeGrid` is used to create a tree hierarchy.\n * It is not a visually styled component, but instead helps with adding\n * keyboard navigation and roving tab index behaviors to tree grid structures.\n *\n * A tree grid is a hierarchical 2 dimensional UI component, for example it could be\n * used to implement a file system browser.\n *\n * A tree grid allows the user to navigate using arrow keys.\n * Up/down to navigate vertically across rows, and left/right to navigate horizontally\n * between focusables in a row.\n *\n * The `TreeGrid` renders both a `table` and `tbody` element, and is intended to be used\n * with `TreeGridRow` (`tr`) and `TreeGridCell` (`td`) to build out a grid.\n *\n * ```jsx\n * function TreeMenu() {\n * \treturn (\n * \t\t<TreeGrid>\n * \t\t\t<TreeGridRow level={ 1 } positionInSet={ 1 } setSize={ 2 }>\n * \t\t\t\t<TreeGridCell>\n * \t\t\t\t\t{ ( props ) => (\n * \t\t\t\t\t\t<Button onClick={ onSelect } { ...props }>Select</Button>\n * \t\t\t\t\t) }\n * \t\t\t\t</TreeGridCell>\n * \t\t\t\t<TreeGridCell>\n * \t\t\t\t\t{ ( props ) => (\n * \t\t\t\t\t\t<Button onClick={ onMove } { ...props }>Move</Button>\n * \t\t\t\t\t) }\n * \t\t\t\t</TreeGridCell>\n * \t\t\t</TreeGridRow>\n * \t\t\t<TreeGridRow level={ 1 } positionInSet={ 2 } setSize={ 2 }>\n * \t\t\t\t<TreeGridCell>\n * \t\t\t\t\t{ ( props ) => (\n * \t\t\t\t\t\t<Button onClick={ onSelect } { ...props }>Select</Button>\n * \t\t\t\t\t) }\n * \t\t\t\t</TreeGridCell>\n * \t\t\t\t<TreeGridCell>\n * \t\t\t\t\t{ ( props ) => (\n * \t\t\t\t\t\t<Button onClick={ onMove } { ...props }>Move</Button>\n * \t\t\t\t\t) }\n * \t\t\t\t</TreeGridCell>\n * \t\t\t</TreeGridRow>\n * \t\t\t<TreeGridRow level={ 2 } positionInSet={ 1 } setSize={ 1 }>\n * \t\t\t\t<TreeGridCell>\n * \t\t\t\t\t{ ( props ) => (\n * \t\t\t\t\t\t<Button onClick={ onSelect } { ...props }>Select</Button>\n * \t\t\t\t\t) }\n * \t\t\t\t</TreeGridCell>\n * \t\t\t\t<TreeGridCell>\n * \t\t\t\t\t{ ( props ) => (\n * \t\t\t\t\t\t<Button onClick={ onMove } { ...props }>Move</Button>\n * \t\t\t\t\t) }\n * \t\t\t\t</TreeGridCell>\n * \t\t\t</TreeGridRow>\n * \t\t</TreeGrid>\n * \t);\n * }\n * ```\n *\n * @see {@link https://www.w3.org/TR/wai-aria-practices/examples/treegrid/treegrid-1.html}\n */\nexport const TreeGrid = forwardRef(UnforwardedTreeGrid);\nTreeGrid.displayName = 'TreeGrid';\nexport default TreeGrid;\nexport { default as TreeGridRow } from './row';\nexport { default as TreeGridCell } from './cell';\nexport { default as TreeGridItem } from './item';"],
|
|
5
|
-
"mappings": ";
|
|
4
|
+
"sourcesContent": ["import { focus } from '@wordpress/dom';\nimport { forwardRef, useCallback } from '@wordpress/element';\nimport { UP, DOWN, LEFT, RIGHT, HOME, END } from '@wordpress/keycodes';\nimport RovingTabIndexContainer from './roving-tab-index';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n/**\n * Return focusables in a row element, excluding those from other branches\n * nested within the row.\n *\n * @param rowElement The DOM element representing the row.\n *\n * @return The array of focusables in the row.\n */\nfunction getRowFocusables(rowElement) {\n const focusablesInRow = focus.focusable.find(rowElement, {\n sequential: true\n });\n return focusablesInRow.filter(focusable => {\n return focusable.closest('[role=\"row\"]') === rowElement;\n });\n}\n\n/**\n * Renders both a table and tbody element, used to create a tree hierarchy.\n *\n */\nfunction UnforwardedTreeGrid({\n children,\n onExpandRow = () => {},\n onCollapseRow = () => {},\n onFocusRow = () => {},\n applicationAriaLabel,\n ...props\n}, /** A ref to the underlying DOM table element. */\nref) {\n const onKeyDown = useCallback(event => {\n const {\n keyCode,\n metaKey,\n ctrlKey,\n altKey\n } = event;\n\n // The shift key is intentionally absent from the following list,\n // to enable shift + up/down to select items from the list.\n const hasModifierKeyPressed = metaKey || ctrlKey || altKey;\n if (hasModifierKeyPressed || ![UP, DOWN, LEFT, RIGHT, HOME, END].includes(keyCode)) {\n return;\n }\n\n // The event will be handled, stop propagation.\n event.stopPropagation();\n const {\n activeElement\n } = document;\n const {\n currentTarget: treeGridElement\n } = event;\n if (!activeElement || !treeGridElement.contains(activeElement)) {\n return;\n }\n\n // Calculate the columnIndex of the active element.\n const activeRow = activeElement.closest('[role=\"row\"]');\n if (!activeRow) {\n return;\n }\n const focusablesInRow = getRowFocusables(activeRow);\n const currentColumnIndex = focusablesInRow.indexOf(activeElement);\n const canExpandCollapse = 0 === currentColumnIndex;\n const cannotFocusNextColumn = canExpandCollapse && (activeRow.getAttribute('data-expanded') === 'false' || activeRow.getAttribute('aria-expanded') === 'false') && keyCode === RIGHT;\n if ([LEFT, RIGHT].includes(keyCode)) {\n // Calculate to the next element.\n let nextIndex;\n if (keyCode === LEFT) {\n nextIndex = Math.max(0, currentColumnIndex - 1);\n } else {\n nextIndex = Math.min(currentColumnIndex + 1, focusablesInRow.length - 1);\n }\n\n // Focus is at the left most column.\n if (canExpandCollapse) {\n if (keyCode === LEFT) {\n // Left:\n // If a row is focused, and it is expanded, collapses the current row.\n if (activeRow.getAttribute('data-expanded') === 'true' || activeRow.getAttribute('aria-expanded') === 'true') {\n onCollapseRow(activeRow);\n event.preventDefault();\n return;\n }\n // If a row is focused, and it is collapsed, moves to the parent row (if there is one).\n const level = Math.max(parseInt(activeRow?.getAttribute('aria-level') ?? '1', 10) - 1, 1);\n const rows = Array.from(treeGridElement.querySelectorAll('[role=\"row\"]'));\n let parentRow = activeRow;\n const currentRowIndex = rows.indexOf(activeRow);\n for (let i = currentRowIndex; i >= 0; i--) {\n const ariaLevel = rows[i].getAttribute('aria-level');\n if (ariaLevel !== null && parseInt(ariaLevel, 10) === level) {\n parentRow = rows[i];\n break;\n }\n }\n getRowFocusables(parentRow)?.[0]?.focus();\n }\n if (keyCode === RIGHT) {\n // Right:\n // If a row is focused, and it is collapsed, expands the current row.\n if (activeRow.getAttribute('data-expanded') === 'false' || activeRow.getAttribute('aria-expanded') === 'false') {\n onExpandRow(activeRow);\n event.preventDefault();\n return;\n }\n // If a row is focused, and it is expanded, focuses the next cell in the row.\n const focusableItems = getRowFocusables(activeRow);\n if (focusableItems.length > 0) {\n focusableItems[nextIndex]?.focus();\n }\n }\n // Prevent key use for anything else. For example, Voiceover\n // will start reading text on continued use of left/right arrow\n // keys.\n event.preventDefault();\n return;\n }\n\n // Focus the next element. If at most left column and row is collapsed, moving right is not allowed as this will expand. However, if row is collapsed, moving left is allowed.\n if (cannotFocusNextColumn) {\n return;\n }\n focusablesInRow[nextIndex].focus();\n\n // Prevent key use for anything else. This ensures Voiceover\n // doesn't try to handle key navigation.\n event.preventDefault();\n } else if ([UP, DOWN].includes(keyCode)) {\n // Calculate the rowIndex of the next row.\n const rows = Array.from(treeGridElement.querySelectorAll('[role=\"row\"]'));\n const currentRowIndex = rows.indexOf(activeRow);\n let nextRowIndex;\n if (keyCode === UP) {\n nextRowIndex = Math.max(0, currentRowIndex - 1);\n } else {\n nextRowIndex = Math.min(currentRowIndex + 1, rows.length - 1);\n }\n\n // Focus is either at the top or bottom edge of the grid. Do nothing.\n if (nextRowIndex === currentRowIndex) {\n // Prevent key use for anything else. For example, Voiceover\n // will start navigating horizontally when reaching the vertical\n // bounds of a table.\n event.preventDefault();\n return;\n }\n\n // Get the focusables in the next row.\n const focusablesInNextRow = getRowFocusables(rows[nextRowIndex]);\n\n // If for some reason there are no focusables in the next row, do nothing.\n if (!focusablesInNextRow || !focusablesInNextRow.length) {\n // Prevent key use for anything else. For example, Voiceover\n // will still focus text when using arrow keys, while this\n // component should limit navigation to focusables.\n event.preventDefault();\n return;\n }\n\n // Try to focus the element in the next row that's at a similar column to the activeElement.\n const nextIndex = Math.min(currentColumnIndex, focusablesInNextRow.length - 1);\n focusablesInNextRow[nextIndex].focus();\n\n // Let consumers know the row that was originally focused,\n // and the row that is now in focus.\n onFocusRow(event, activeRow, rows[nextRowIndex]);\n\n // Prevent key use for anything else. This ensures Voiceover\n // doesn't try to handle key navigation.\n event.preventDefault();\n } else if ([HOME, END].includes(keyCode)) {\n // Calculate the rowIndex of the next row.\n const rows = Array.from(treeGridElement.querySelectorAll('[role=\"row\"]'));\n const currentRowIndex = rows.indexOf(activeRow);\n let nextRowIndex;\n if (keyCode === HOME) {\n nextRowIndex = 0;\n } else {\n nextRowIndex = rows.length - 1;\n }\n\n // Focus is either at the top or bottom edge of the grid. Do nothing.\n if (nextRowIndex === currentRowIndex) {\n // Prevent key use for anything else. For example, Voiceover\n // will start navigating horizontally when reaching the vertical\n // bounds of a table.\n event.preventDefault();\n return;\n }\n\n // Get the focusables in the next row.\n const focusablesInNextRow = getRowFocusables(rows[nextRowIndex]);\n\n // If for some reason there are no focusables in the next row, do nothing.\n if (!focusablesInNextRow || !focusablesInNextRow.length) {\n // Prevent key use for anything else. For example, Voiceover\n // will still focus text when using arrow keys, while this\n // component should limit navigation to focusables.\n event.preventDefault();\n return;\n }\n\n // Try to focus the element in the next row that's at a similar column to the activeElement.\n const nextIndex = Math.min(currentColumnIndex, focusablesInNextRow.length - 1);\n focusablesInNextRow[nextIndex].focus();\n\n // Let consumers know the row that was originally focused,\n // and the row that is now in focus.\n onFocusRow(event, activeRow, rows[nextRowIndex]);\n\n // Prevent key use for anything else. This ensures Voiceover\n // doesn't try to handle key navigation.\n event.preventDefault();\n }\n }, [onExpandRow, onCollapseRow, onFocusRow]);\n\n /* Disable reason: A treegrid is implemented using a table element. */\n /* eslint-disable jsx-a11y/no-noninteractive-element-to-interactive-role */\n return /*#__PURE__*/_jsx(RovingTabIndexContainer, {\n children: /*#__PURE__*/_jsx(\"div\", {\n role: \"application\",\n \"aria-label\": applicationAriaLabel,\n children: /*#__PURE__*/_jsx(\"table\", {\n ...props,\n role: \"treegrid\",\n onKeyDown: onKeyDown,\n ref: ref,\n children: /*#__PURE__*/_jsx(\"tbody\", {\n children: children\n })\n })\n })\n });\n /* eslint-enable jsx-a11y/no-noninteractive-element-to-interactive-role */\n}\n\n/**\n * `TreeGrid` is used to create a tree hierarchy.\n * It is not a visually styled component, but instead helps with adding\n * keyboard navigation and roving tab index behaviors to tree grid structures.\n *\n * A tree grid is a hierarchical 2 dimensional UI component, for example it could be\n * used to implement a file system browser.\n *\n * A tree grid allows the user to navigate using arrow keys.\n * Up/down to navigate vertically across rows, and left/right to navigate horizontally\n * between focusables in a row.\n *\n * The `TreeGrid` renders both a `table` and `tbody` element, and is intended to be used\n * with `TreeGridRow` (`tr`) and `TreeGridCell` (`td`) to build out a grid.\n *\n * ```jsx\n * function TreeMenu() {\n * \treturn (\n * \t\t<TreeGrid>\n * \t\t\t<TreeGridRow level={ 1 } positionInSet={ 1 } setSize={ 2 }>\n * \t\t\t\t<TreeGridCell>\n * \t\t\t\t\t{ ( props ) => (\n * \t\t\t\t\t\t<Button onClick={ onSelect } { ...props }>Select</Button>\n * \t\t\t\t\t) }\n * \t\t\t\t</TreeGridCell>\n * \t\t\t\t<TreeGridCell>\n * \t\t\t\t\t{ ( props ) => (\n * \t\t\t\t\t\t<Button onClick={ onMove } { ...props }>Move</Button>\n * \t\t\t\t\t) }\n * \t\t\t\t</TreeGridCell>\n * \t\t\t</TreeGridRow>\n * \t\t\t<TreeGridRow level={ 1 } positionInSet={ 2 } setSize={ 2 }>\n * \t\t\t\t<TreeGridCell>\n * \t\t\t\t\t{ ( props ) => (\n * \t\t\t\t\t\t<Button onClick={ onSelect } { ...props }>Select</Button>\n * \t\t\t\t\t) }\n * \t\t\t\t</TreeGridCell>\n * \t\t\t\t<TreeGridCell>\n * \t\t\t\t\t{ ( props ) => (\n * \t\t\t\t\t\t<Button onClick={ onMove } { ...props }>Move</Button>\n * \t\t\t\t\t) }\n * \t\t\t\t</TreeGridCell>\n * \t\t\t</TreeGridRow>\n * \t\t\t<TreeGridRow level={ 2 } positionInSet={ 1 } setSize={ 1 }>\n * \t\t\t\t<TreeGridCell>\n * \t\t\t\t\t{ ( props ) => (\n * \t\t\t\t\t\t<Button onClick={ onSelect } { ...props }>Select</Button>\n * \t\t\t\t\t) }\n * \t\t\t\t</TreeGridCell>\n * \t\t\t\t<TreeGridCell>\n * \t\t\t\t\t{ ( props ) => (\n * \t\t\t\t\t\t<Button onClick={ onMove } { ...props }>Move</Button>\n * \t\t\t\t\t) }\n * \t\t\t\t</TreeGridCell>\n * \t\t\t</TreeGridRow>\n * \t\t</TreeGrid>\n * \t);\n * }\n * ```\n *\n * @see {@link https://www.w3.org/TR/wai-aria-practices/examples/treegrid/treegrid-1.html}\n */\nexport const TreeGrid = forwardRef(UnforwardedTreeGrid);\nTreeGrid.displayName = 'TreeGrid';\nexport default TreeGrid;\nexport { default as TreeGridRow } from './row';\nexport { default as TreeGridCell } from './cell';\nexport { default as TreeGridItem } from './item';"],
|
|
5
|
+
"mappings": "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",
|
|
6
6
|
"names": ["default"]
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/tree-grid/item.tsx"],
|
|
4
|
-
"sourcesContent": ["
|
|
5
|
-
"mappings": ";
|
|
4
|
+
"sourcesContent": ["import { forwardRef } from '@wordpress/element';\nimport RovingTabIndexItem from './roving-tab-index-item';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction UnforwardedTreeGridItem({\n children,\n ...props\n}, ref) {\n return /*#__PURE__*/_jsx(RovingTabIndexItem, {\n ref: ref,\n ...props,\n children: children\n });\n}\n\n/**\n * `TreeGridItem` is used to create a tree hierarchy.\n * It is not a visually styled component, but instead helps with adding\n * keyboard navigation and roving tab index behaviors to tree grid structures.\n *\n * @see {@link https://www.w3.org/TR/wai-aria-practices/examples/treegrid/treegrid-1.html}\n */\nexport const TreeGridItem = forwardRef(UnforwardedTreeGridItem);\nTreeGridItem.displayName = 'TreeGridItem';\nexport default TreeGridItem;"],
|
|
5
|
+
"mappings": ";AAAA,SAAS,kBAAkB;AAC3B,OAAO,wBAAwB;AAC/B,SAAS,OAAO,YAAY;AAC5B,SAAS,wBAAwB;AAAA,EAC/B;AAAA,EACA,GAAG;AACL,GAAG,KAAK;AACN,SAAoB,qBAAK,oBAAoB;AAAA,IAC3C;AAAA,IACA,GAAG;AAAA,IACH;AAAA,EACF,CAAC;AACH;AASO,IAAM,eAAe,WAAW,uBAAuB;AAC9D,aAAa,cAAc;AAC3B,IAAO,eAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/tree-grid/roving-tab-index-context.ts"],
|
|
4
|
-
"sourcesContent": ["
|
|
5
|
-
"mappings": ";
|
|
4
|
+
"sourcesContent": ["import { createContext, useContext } from '@wordpress/element';\nconst RovingTabIndexContext = createContext(undefined);\nRovingTabIndexContext.displayName = 'RovingTabIndexContext';\nexport const useRovingTabIndexContext = () => useContext(RovingTabIndexContext);\nexport const RovingTabIndexProvider = RovingTabIndexContext.Provider;"],
|
|
5
|
+
"mappings": ";AAAA,SAAS,eAAe,kBAAkB;AAC1C,IAAM,wBAAwB,cAAc,MAAS;AACrD,sBAAsB,cAAc;AAC7B,IAAM,2BAA2B,MAAM,WAAW,qBAAqB;AACvE,IAAM,yBAAyB,sBAAsB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/tree-grid/roving-tab-index-item.tsx"],
|
|
4
|
-
"sourcesContent": ["
|
|
5
|
-
"mappings": ";
|
|
4
|
+
"sourcesContent": ["import { useRef, forwardRef } from '@wordpress/element';\nimport { useRovingTabIndexContext } from './roving-tab-index-context';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const RovingTabIndexItem = forwardRef(function UnforwardedRovingTabIndexItem({\n children,\n as: Component,\n ...props\n}, forwardedRef) {\n const localRef = useRef(null);\n const ref = forwardedRef || localRef;\n // @ts-expect-error - We actually want to throw an error if this is undefined.\n const {\n lastFocusedElement,\n setLastFocusedElement\n } = useRovingTabIndexContext();\n let tabIndex;\n if (lastFocusedElement) {\n tabIndex = lastFocusedElement === (\n // TODO: The original implementation simply used `ref.current` here, assuming\n // that a forwarded ref would always be an object, which is not necessarily true.\n // This workaround maintains the original runtime behavior in a type-safe way,\n // but should be revisited.\n 'current' in ref ? ref.current : undefined) ? 0 : -1;\n }\n const onFocus = event => setLastFocusedElement?.(event.target);\n const allProps = {\n ref,\n tabIndex,\n onFocus,\n ...props\n };\n if (typeof children === 'function') {\n return children(allProps);\n }\n if (!Component) {\n return null;\n }\n return /*#__PURE__*/_jsx(Component, {\n ...allProps,\n children: children\n });\n});\nRovingTabIndexItem.displayName = 'RovingTabIndexItem';\nexport default RovingTabIndexItem;"],
|
|
5
|
+
"mappings": ";AAAA,SAAS,QAAQ,kBAAkB;AACnC,SAAS,gCAAgC;AACzC,SAAS,OAAO,YAAY;AACrB,IAAM,qBAAqB,WAAW,SAAS,8BAA8B;AAAA,EAClF;AAAA,EACA,IAAI;AAAA,EACJ,GAAG;AACL,GAAG,cAAc;AACf,QAAM,WAAW,OAAO,IAAI;AAC5B,QAAM,MAAM,gBAAgB;AAE5B,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,EACF,IAAI,yBAAyB;AAC7B,MAAI;AACJ,MAAI,oBAAoB;AACtB,eAAW;AAAA;AAAA;AAAA;AAAA,KAKX,aAAa,MAAM,IAAI,UAAU,UAAa,IAAI;AAAA,EACpD;AACA,QAAM,UAAU,WAAS,wBAAwB,MAAM,MAAM;AAC7D,QAAM,WAAW;AAAA,IACf;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EACL;AACA,MAAI,OAAO,aAAa,YAAY;AAClC,WAAO,SAAS,QAAQ;AAAA,EAC1B;AACA,MAAI,CAAC,WAAW;AACd,WAAO;AAAA,EACT;AACA,SAAoB,qBAAK,WAAW;AAAA,IAClC,GAAG;AAAA,IACH;AAAA,EACF,CAAC;AACH,CAAC;AACD,mBAAmB,cAAc;AACjC,IAAO,gCAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/tree-grid/roving-tab-index.tsx"],
|
|
4
|
-
"sourcesContent": ["
|
|
5
|
-
"mappings": ";
|
|
4
|
+
"sourcesContent": ["import { useState, useMemo } from '@wordpress/element';\nimport { RovingTabIndexProvider } from './roving-tab-index-context';\n\n/**\n * Provider for adding roving tab index behaviors to tree grid structures.\n *\n * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/components/src/tree-grid/README.md\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default function RovingTabIndex({\n children\n}) {\n const [lastFocusedElement, setLastFocusedElement] = useState();\n\n // Use `useMemo` to avoid creation of a new object for the providerValue\n // on every render. Only create a new object when the `lastFocusedElement`\n // value changes.\n const providerValue = useMemo(() => ({\n lastFocusedElement,\n setLastFocusedElement\n }), [lastFocusedElement]);\n return /*#__PURE__*/_jsx(RovingTabIndexProvider, {\n value: providerValue,\n children: children\n });\n}"],
|
|
5
|
+
"mappings": ";AAAA,SAAS,UAAU,eAAe;AAClC,SAAS,8BAA8B;AAOvC,SAAS,OAAO,YAAY;AACb,SAAR,eAAgC;AAAA,EACrC;AACF,GAAG;AACD,QAAM,CAAC,oBAAoB,qBAAqB,IAAI,SAAS;AAK7D,QAAM,gBAAgB,QAAQ,OAAO;AAAA,IACnC;AAAA,IACA;AAAA,EACF,IAAI,CAAC,kBAAkB,CAAC;AACxB,SAAoB,qBAAK,wBAAwB;AAAA,IAC/C,OAAO;AAAA,IACP;AAAA,EACF,CAAC;AACH;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/tree-grid/row.tsx"],
|
|
4
|
-
"sourcesContent": ["
|
|
5
|
-
"mappings": ";
|
|
4
|
+
"sourcesContent": ["import { forwardRef } from '@wordpress/element';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction UnforwardedTreeGridRow({\n children,\n level,\n positionInSet,\n setSize,\n isExpanded,\n ...props\n}, ref) {\n return /*#__PURE__*/_jsx(\"tr\", {\n ...props,\n ref: ref,\n role: \"row\",\n \"aria-level\": level,\n \"aria-posinset\": positionInSet,\n \"aria-setsize\": setSize,\n \"aria-expanded\": isExpanded,\n children: children\n });\n}\n\n/**\n * `TreeGridRow` is used to create a tree hierarchy.\n * It is not a visually styled component, but instead helps with adding\n * keyboard navigation and roving tab index behaviors to tree grid structures.\n *\n * @see {@link https://www.w3.org/TR/wai-aria-practices/examples/treegrid/treegrid-1.html}\n */\nexport const TreeGridRow = forwardRef(UnforwardedTreeGridRow);\nTreeGridRow.displayName = 'TreeGridRow';\nexport default TreeGridRow;"],
|
|
5
|
+
"mappings": ";AAAA,SAAS,kBAAkB;AAC3B,SAAS,OAAO,YAAY;AAC5B,SAAS,uBAAuB;AAAA,EAC9B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAG,KAAK;AACN,SAAoB,qBAAK,MAAM;AAAA,IAC7B,GAAG;AAAA,IACH;AAAA,IACA,MAAM;AAAA,IACN,cAAc;AAAA,IACd,iBAAiB;AAAA,IACjB,gBAAgB;AAAA,IAChB,iBAAiB;AAAA,IACjB;AAAA,EACF,CAAC;AACH;AASO,IAAM,cAAc,WAAW,sBAAsB;AAC5D,YAAY,cAAc;AAC1B,IAAO,cAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/tree-select/index.tsx"],
|
|
4
|
-
"sourcesContent": ["
|
|
5
|
-
"mappings": ";
|
|
4
|
+
"sourcesContent": ["import { useMemo } from '@wordpress/element';\nimport { decodeEntities } from '@wordpress/html-entities';\nimport { SelectControl } from '../select-control';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction getSelectOptions(tree, level = 0) {\n return tree.flatMap(treeNode => [{\n value: treeNode.id,\n label: '\\u00A0'.repeat(level * 3) + decodeEntities(treeNode.name)\n }, ...getSelectOptions(treeNode.children || [], level + 1)]);\n}\n\n/**\n * Generates a hierarchical select input.\n *\n * ```jsx\n * import { useState } from 'react';\n * import { TreeSelect } from '@wordpress/components';\n *\n * const MyTreeSelect = () => {\n * \tconst [ page, setPage ] = useState( 'p21' );\n *\n * \treturn (\n * \t\t<TreeSelect\n * \t\t\tlabel=\"Parent page\"\n * \t\t\tnoOptionLabel=\"No parent page\"\n * \t\t\tonChange={ ( newPage ) => setPage( newPage ) }\n * \t\t\tselectedId={ page }\n * \t\t\ttree={ [\n * \t\t\t\t{\n * \t\t\t\t\tname: 'Page 1',\n * \t\t\t\t\tid: 'p1',\n * \t\t\t\t\tchildren: [\n * \t\t\t\t\t\t{ name: 'Descend 1 of page 1', id: 'p11' },\n * \t\t\t\t\t\t{ name: 'Descend 2 of page 1', id: 'p12' },\n * \t\t\t\t\t],\n * \t\t\t\t},\n * \t\t\t\t{\n * \t\t\t\t\tname: 'Page 2',\n * \t\t\t\t\tid: 'p2',\n * \t\t\t\t\tchildren: [\n * \t\t\t\t\t\t{\n * \t\t\t\t\t\t\tname: 'Descend 1 of page 2',\n * \t\t\t\t\t\t\tid: 'p21',\n * \t\t\t\t\t\t\tchildren: [\n * \t\t\t\t\t\t\t\t{\n * \t\t\t\t\t\t\t\t\tname: 'Descend 1 of Descend 1 of page 2',\n * \t\t\t\t\t\t\t\t\tid: 'p211',\n * \t\t\t\t\t\t\t\t},\n * \t\t\t\t\t\t\t],\n * \t\t\t\t\t\t},\n * \t\t\t\t\t],\n * \t\t\t\t},\n * \t\t\t] }\n * \t\t/>\n * \t);\n * }\n * ```\n */\nexport function TreeSelect(props) {\n const {\n // Prevent passing legacy props to internal component.\n __nextHasNoMarginBottom: _,\n __next40pxDefaultSize: _next40pxDefaultSize,\n label,\n noOptionLabel,\n onChange,\n selectedId,\n tree = [],\n ...restProps\n } = props;\n const options = useMemo(() => {\n return [noOptionLabel && {\n value: '',\n label: noOptionLabel\n }, ...getSelectOptions(tree)].filter(option => !!option);\n }, [noOptionLabel, tree]);\n return /*#__PURE__*/_jsx(SelectControl, {\n label,\n options,\n onChange,\n value: selectedId,\n ...restProps\n });\n}\nexport default TreeSelect;"],
|
|
5
|
+
"mappings": ";AAAA,SAAS,eAAe;AACxB,SAAS,sBAAsB;AAC/B,SAAS,qBAAqB;AAC9B,SAAS,OAAO,YAAY;AAC5B,SAAS,iBAAiB,MAAM,QAAQ,GAAG;AACzC,SAAO,KAAK,QAAQ,cAAY,CAAC;AAAA,IAC/B,OAAO,SAAS;AAAA,IAChB,OAAO,IAAS,OAAO,QAAQ,CAAC,IAAI,eAAe,SAAS,IAAI;AAAA,EAClE,GAAG,GAAG,iBAAiB,SAAS,YAAY,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC;AAC7D;AAiDO,SAAS,WAAW,OAAO;AAChC,QAAM;AAAA;AAAA,IAEJ,yBAAyB;AAAA,IACzB,uBAAuB;AAAA,IACvB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,OAAO,CAAC;AAAA,IACR,GAAG;AAAA,EACL,IAAI;AACJ,QAAM,UAAU,QAAQ,MAAM;AAC5B,WAAO,CAAC,iBAAiB;AAAA,MACvB,OAAO;AAAA,MACP,OAAO;AAAA,IACT,GAAG,GAAG,iBAAiB,IAAI,CAAC,EAAE,OAAO,YAAU,CAAC,CAAC,MAAM;AAAA,EACzD,GAAG,CAAC,eAAe,IAAI,CAAC;AACxB,SAAoB,qBAAK,eAAe;AAAA,IACtC;AAAA,IACA;AAAA,IACA;AAAA,IACA,OAAO;AAAA,IACP,GAAG;AAAA,EACL,CAAC;AACH;AACA,IAAO,sBAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/truncate/component.tsx"],
|
|
4
|
-
"sourcesContent": ["
|
|
5
|
-
"mappings": ";
|
|
4
|
+
"sourcesContent": ["import { contextConnect } from '../context';\nimport { View } from '../view';\nimport useTruncate from './hook';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction UnconnectedTruncate(props, forwardedRef) {\n const truncateProps = useTruncate(props);\n return /*#__PURE__*/_jsx(View, {\n as: \"span\",\n ...truncateProps,\n ref: forwardedRef\n });\n}\n\n/**\n * `Truncate` is a typography primitive that trims text content.\n * For almost all cases, it is recommended that `Text`, `Heading`, or\n * `Subheading` is used to render text content. However,`Truncate` is\n * available for custom implementations.\n *\n * ```jsx\n * import { __experimentalTruncate as Truncate } from `@wordpress/components`;\n *\n * function Example() {\n * \treturn (\n * \t\t<Truncate>\n * \t\t\tLorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc ex\n * \t\t\tneque, vulputate a diam et, luctus convallis lacus. Vestibulum ac\n * \t\t\tmollis mi. Morbi id elementum massa.\n * \t\t</Truncate>\n * \t);\n * }\n * ```\n */\nexport const Truncate = contextConnect(UnconnectedTruncate, 'Truncate');\nexport default Truncate;"],
|
|
5
|
+
"mappings": ";AAAA,SAAS,sBAAsB;AAC/B,SAAS,YAAY;AACrB,OAAO,iBAAiB;AACxB,SAAS,OAAO,YAAY;AAC5B,SAAS,oBAAoB,OAAO,cAAc;AAChD,QAAM,gBAAgB,YAAY,KAAK;AACvC,SAAoB,qBAAK,MAAM;AAAA,IAC7B,IAAI;AAAA,IACJ,GAAG;AAAA,IACH,KAAK;AAAA,EACP,CAAC;AACH;AAsBO,IAAM,WAAW,eAAe,qBAAqB,UAAU;AACtE,IAAO,oBAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/truncate/hook.ts", "../../../style-runtime/src/index.ts", "../../src/truncate/style.module.scss"],
|
|
4
|
-
"sourcesContent": ["
|
|
5
|
-
"mappings": ";
|
|
4
|
+
"sourcesContent": ["import clsx from 'clsx';\nimport { useContextSystem } from '../context';\nimport { TRUNCATE_ELLIPSIS, TRUNCATE_TYPE, truncateContent } from './utils';\nimport styles from './style.module.scss';\nexport default function useTruncate(props) {\n const {\n className,\n children,\n ellipsis = TRUNCATE_ELLIPSIS,\n ellipsizeMode = TRUNCATE_TYPE.auto,\n limit = 0,\n numberOfLines = 0,\n style,\n ...otherProps\n } = useContextSystem(props, 'Truncate');\n let childrenAsText;\n if (typeof children === 'string') {\n childrenAsText = children;\n } else if (typeof children === 'number') {\n childrenAsText = children.toString();\n }\n const truncatedContent = childrenAsText ? truncateContent(childrenAsText, {\n ellipsis,\n ellipsizeMode,\n limit,\n numberOfLines\n }) : children;\n const shouldTruncate = !!childrenAsText && ellipsizeMode === TRUNCATE_TYPE.auto;\n const shouldClampLines = shouldTruncate && !!numberOfLines;\n const shouldClampSingleLine = shouldClampLines && numberOfLines === 1;\n const classes = clsx(shouldTruncate && !numberOfLines && styles.truncate, shouldClampLines && styles['is-line-clamp'], shouldClampSingleLine && styles['is-single-line'], className);\n const truncateStyle = shouldClampLines ? {\n ...style,\n '--wp-components-truncate-lines': numberOfLines\n } : style;\n return {\n ...otherProps,\n className: classes,\n style: truncateStyle,\n children: truncatedContent\n };\n}", "const STYLE_HASH_ATTRIBUTE = 'data-wp-hash';\n\n/**\n * Returns the shared style runtime registry.\n *\n * The registry is stored on `globalThis` so separately bundled copies of this\n * package can coordinate through the same document and style maps.\n *\n * @return The shared runtime registry.\n */\nfunction getRuntime() {\n const globalScope = globalThis;\n if (globalScope.__wpStyleRuntime) {\n return globalScope.__wpStyleRuntime;\n }\n globalScope.__wpStyleRuntime = {\n documents: new Map(),\n styles: new Map(),\n injectedStyles: new WeakMap()\n };\n if (typeof document !== 'undefined') {\n registerDocument(document);\n }\n return globalScope.__wpStyleRuntime;\n}\n\n/**\n * Checks whether a document already contains a style tag for a hash.\n *\n * @param targetDocument Document to inspect.\n * @param hash Stable hash for the transformed CSS.\n *\n * @return Whether the style hash already exists in the document.\n */\nfunction documentContainsStyleHash(targetDocument, hash) {\n if (!targetDocument.head) {\n return false;\n }\n for (const style of targetDocument.head.querySelectorAll(`style[${STYLE_HASH_ATTRIBUTE}]`)) {\n if (style.getAttribute(STYLE_HASH_ATTRIBUTE) === hash) {\n return true;\n }\n }\n return false;\n}\n\n/**\n * Injects a registered style into a document, unless that document already\n * contains a style tag for the same hash.\n *\n * @param targetDocument Document to inject the style into.\n * @param hash Stable hash for the transformed CSS.\n * @param css CSS text to inject.\n */\nfunction injectStyle(targetDocument, hash, css) {\n if (!targetDocument.head) {\n return;\n }\n const runtime = getRuntime();\n let injectedStyles = runtime.injectedStyles.get(targetDocument);\n if (!injectedStyles) {\n injectedStyles = new Set();\n runtime.injectedStyles.set(targetDocument, injectedStyles);\n }\n if (injectedStyles.has(hash)) {\n return;\n }\n\n // Older generated CSS module output can still inject matching style tags\n // after this document's cache is created, so keep the DOM as the fallback\n // source of truth on cache misses.\n if (documentContainsStyleHash(targetDocument, hash)) {\n injectedStyles.add(hash);\n return;\n }\n const style = targetDocument.createElement('style');\n style.setAttribute(STYLE_HASH_ATTRIBUTE, hash);\n style.appendChild(targetDocument.createTextNode(css));\n targetDocument.head.appendChild(style);\n injectedStyles.add(hash);\n}\n\n/**\n * Registers a document as a style injection target.\n *\n * Existing registered styles are replayed into the document immediately.\n * Documents are reference-counted so multiple providers can safely register the\n * same document without one cleanup removing it while another registration is\n * still active.\n *\n * @param targetDocument Document to receive registered styles.\n * @return Cleanup function that unregisters this document registration.\n */\nexport function registerDocument(targetDocument) {\n const runtime = getRuntime();\n runtime.documents.set(targetDocument, (runtime.documents.get(targetDocument) ?? 0) + 1);\n for (const [hash, css] of runtime.styles) {\n injectStyle(targetDocument, hash, css);\n }\n return () => {\n const count = runtime.documents.get(targetDocument);\n if (count === undefined) {\n return;\n }\n if (count <= 1) {\n runtime.documents.delete(targetDocument);\n return;\n }\n runtime.documents.set(targetDocument, count - 1);\n };\n}\n\n/**\n * Registers a style and injects it into all registered documents.\n *\n * The hash is used as the deduplication key, so calling this repeatedly with\n * the same hash will not add duplicate style tags to a document.\n * Registered styles are retained for the lifetime of the page so they can be\n * replayed into documents that are registered later.\n *\n * @param hash Stable hash for the transformed CSS.\n * @param css CSS text to inject.\n */\nexport function registerStyle(hash, css) {\n const runtime = getRuntime();\n runtime.styles.set(hash, css);\n for (const targetDocument of runtime.documents.keys()) {\n injectStyle(targetDocument, hash, css);\n }\n}", "import { registerStyle } from '@wordpress/style-runtime';\nif (typeof process === 'undefined' || process.env.NODE_ENV !== 'test') {\n\tregisterStyle(\"beeae56da8\", \"._51f2afb77f24a721__truncate{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.d232bf8e2132288d__is-line-clamp{-webkit-box-orient:vertical;-webkit-line-clamp:var(--wp-components-truncate-lines);display:-webkit-box;overflow:hidden}.d232bf8e2132288d__is-line-clamp._95bf20b727db236f__is-single-line{word-break:break-all}\");\n}\nexport default {\"truncate\":\"_51f2afb77f24a721__truncate\",\"is-line-clamp\":\"d232bf8e2132288d__is-line-clamp\",\"is-single-line\":\"_95bf20b727db236f__is-single-line\"};\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/truncate/utils.ts"],
|
|
4
|
-
"sourcesContent": ["
|
|
5
|
-
"mappings": ";
|
|
4
|
+
"sourcesContent": ["import { isValueDefined } from '../utils/values';\nexport const TRUNCATE_ELLIPSIS = '…';\nexport const TRUNCATE_TYPE = {\n auto: 'auto',\n head: 'head',\n middle: 'middle',\n tail: 'tail',\n none: 'none'\n};\nexport const TRUNCATE_DEFAULT_PROPS = {\n ellipsis: TRUNCATE_ELLIPSIS,\n ellipsizeMode: TRUNCATE_TYPE.auto,\n limit: 0,\n numberOfLines: 0\n};\n\n// Source\n// https://github.com/kahwee/truncate-middle\nexport function truncateMiddle(word, headLength, tailLength, ellipsis) {\n if (typeof word !== 'string') {\n return '';\n }\n const wordLength = word.length;\n // Setting default values\n // eslint-disable-next-line no-bitwise\n const frontLength = ~~headLength; // Will cast to integer\n // eslint-disable-next-line no-bitwise\n const backLength = ~~tailLength;\n /* istanbul ignore next */\n const truncateStr = isValueDefined(ellipsis) ? ellipsis : TRUNCATE_ELLIPSIS;\n if (frontLength === 0 && backLength === 0 || frontLength >= wordLength || backLength >= wordLength || frontLength + backLength >= wordLength) {\n return word;\n } else if (backLength === 0) {\n return word.slice(0, frontLength) + truncateStr;\n }\n return word.slice(0, frontLength) + truncateStr + word.slice(wordLength - backLength);\n}\nexport function truncateContent(words = '', props) {\n const mergedProps = {\n ...TRUNCATE_DEFAULT_PROPS,\n ...props\n };\n const {\n ellipsis,\n ellipsizeMode,\n limit\n } = mergedProps;\n if (ellipsizeMode === TRUNCATE_TYPE.none) {\n return words;\n }\n let truncateHead;\n let truncateTail;\n switch (ellipsizeMode) {\n case TRUNCATE_TYPE.head:\n truncateHead = 0;\n truncateTail = limit;\n break;\n case TRUNCATE_TYPE.middle:\n truncateHead = Math.floor(limit / 2);\n truncateTail = Math.floor(limit / 2);\n break;\n default:\n truncateHead = limit;\n truncateTail = 0;\n }\n const truncatedContent = ellipsizeMode !== TRUNCATE_TYPE.auto ? truncateMiddle(words, truncateHead, truncateTail, ellipsis) : words;\n return truncatedContent;\n}"],
|
|
5
|
+
"mappings": ";AAAA,SAAS,sBAAsB;AACxB,IAAM,oBAAoB;AAC1B,IAAM,gBAAgB;AAAA,EAC3B,MAAM;AAAA,EACN,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,MAAM;AACR;AACO,IAAM,yBAAyB;AAAA,EACpC,UAAU;AAAA,EACV,eAAe,cAAc;AAAA,EAC7B,OAAO;AAAA,EACP,eAAe;AACjB;AAIO,SAAS,eAAe,MAAM,YAAY,YAAY,UAAU;AACrE,MAAI,OAAO,SAAS,UAAU;AAC5B,WAAO;AAAA,EACT;AACA,QAAM,aAAa,KAAK;AAGxB,QAAM,cAAc,CAAC,CAAC;AAEtB,QAAM,aAAa,CAAC,CAAC;AAErB,QAAM,cAAc,eAAe,QAAQ,IAAI,WAAW;AAC1D,MAAI,gBAAgB,KAAK,eAAe,KAAK,eAAe,cAAc,cAAc,cAAc,cAAc,cAAc,YAAY;AAC5I,WAAO;AAAA,EACT,WAAW,eAAe,GAAG;AAC3B,WAAO,KAAK,MAAM,GAAG,WAAW,IAAI;AAAA,EACtC;AACA,SAAO,KAAK,MAAM,GAAG,WAAW,IAAI,cAAc,KAAK,MAAM,aAAa,UAAU;AACtF;AACO,SAAS,gBAAgB,QAAQ,IAAI,OAAO;AACjD,QAAM,cAAc;AAAA,IAClB,GAAG;AAAA,IACH,GAAG;AAAA,EACL;AACA,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI;AACJ,MAAI,kBAAkB,cAAc,MAAM;AACxC,WAAO;AAAA,EACT;AACA,MAAI;AACJ,MAAI;AACJ,UAAQ,eAAe;AAAA,IACrB,KAAK,cAAc;AACjB,qBAAe;AACf,qBAAe;AACf;AAAA,IACF,KAAK,cAAc;AACjB,qBAAe,KAAK,MAAM,QAAQ,CAAC;AACnC,qBAAe,KAAK,MAAM,QAAQ,CAAC;AACnC;AAAA,IACF;AACE,qBAAe;AACf,qBAAe;AAAA,EACnB;AACA,QAAM,mBAAmB,kBAAkB,cAAc,OAAO,eAAe,OAAO,cAAc,cAAc,QAAQ,IAAI;AAC9H,SAAO;AACT;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/unit-control/index.tsx"],
|
|
4
|
-
"sourcesContent": ["
|
|
5
|
-
"mappings": ";
|
|
4
|
+
"sourcesContent": ["import clsx from 'clsx';\nimport deprecated from '@wordpress/deprecated';\nimport { forwardRef, useMemo, useRef, useEffect } from '@wordpress/element';\nimport { __ } from '@wordpress/i18n';\nimport { ValueInput } from './styles/unit-control-styles';\nimport UnitSelectControl from './unit-select-control';\nimport { CSS_UNITS, getParsedQuantityAndUnit, getUnitsWithCurrentUnit, getValidParsedQuantityAndUnit } from './utils';\nimport { useControlledState } from '../utils/hooks';\nimport { escapeRegExp } from '../utils/strings';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction UnforwardedUnitControl(unitControlProps, forwardedRef) {\n const {\n __unstableStateReducer,\n autoComplete = 'off',\n // @ts-expect-error Ensure that children is omitted from restProps\n children,\n className,\n disabled = false,\n disableUnits = false,\n isPressEnterToChange = false,\n isResetValueOnUnitChange = false,\n isUnitSelectTabbable = true,\n label,\n onChange: onChangeProp,\n onUnitChange,\n size = 'default',\n unit: unitProp,\n units: unitsProp = CSS_UNITS,\n value: valueProp,\n onFocus: onFocusProp,\n ...props\n } = unitControlProps;\n if ('unit' in unitControlProps) {\n deprecated('UnitControl unit prop', {\n since: '5.6',\n hint: 'The unit should be provided within the `value` prop.',\n version: '6.2'\n });\n }\n\n // The `value` prop, in theory, should not be `null`, but the following line\n // ensures it fallback to `undefined` in case a consumer of `UnitControl`\n // still passes `null` as a `value`.\n const nonNullValueProp = valueProp ?? undefined;\n const [units, reFirstCharacterOfUnits] = useMemo(() => {\n const list = getUnitsWithCurrentUnit(nonNullValueProp, unitProp, unitsProp);\n const [{\n value: firstUnitValue = ''\n } = {}, ...rest] = list;\n const firstCharacters = rest.reduce((carry, {\n value\n }) => {\n const first = escapeRegExp(value?.substring(0, 1) || '');\n return carry.includes(first) ? carry : `${carry}|${first}`;\n }, escapeRegExp(firstUnitValue.substring(0, 1)));\n return [list, new RegExp(`^(?:${firstCharacters})$`, 'i')];\n }, [nonNullValueProp, unitProp, unitsProp]);\n const [parsedQuantity, parsedUnit] = getParsedQuantityAndUnit(nonNullValueProp, unitProp, units);\n const [unit, setUnit] = useControlledState(units.length === 1 ? units[0].value : unitProp, {\n initial: parsedUnit,\n fallback: ''\n });\n useEffect(() => {\n if (parsedUnit !== undefined) {\n setUnit(parsedUnit);\n }\n }, [parsedUnit, setUnit]);\n const classes = clsx('components-unit-control',\n // This class is added for legacy purposes to maintain it on the outer\n // wrapper. See: https://github.com/WordPress/gutenberg/pull/45139\n 'components-unit-control-wrapper', className);\n const handleOnQuantityChange = (nextQuantityValue, changeProps) => {\n if (nextQuantityValue === '' || typeof nextQuantityValue === 'undefined' || nextQuantityValue === null) {\n onChangeProp?.('', changeProps);\n return;\n }\n\n /*\n * Customizing the onChange callback.\n * This allows as to broadcast a combined value+unit to onChange.\n */\n const onChangeValue = getValidParsedQuantityAndUnit(nextQuantityValue, units, parsedQuantity, unit).join('');\n onChangeProp?.(onChangeValue, changeProps);\n };\n const handleOnUnitChange = (nextUnitValue, changeProps) => {\n const {\n data\n } = changeProps;\n let nextValue = `${parsedQuantity ?? ''}${nextUnitValue}`;\n if (isResetValueOnUnitChange && data?.default !== undefined) {\n nextValue = `${data.default}${nextUnitValue}`;\n }\n onChangeProp?.(nextValue, changeProps);\n onUnitChange?.(nextUnitValue, changeProps);\n setUnit(nextUnitValue);\n };\n let handleOnKeyDown;\n if (!disableUnits && isUnitSelectTabbable && units.length) {\n handleOnKeyDown = event => {\n props.onKeyDown?.(event);\n // Unless the meta or ctrl key was pressed (to avoid interfering with\n // shortcuts, e.g. pastes), move focus to the unit select if a key\n // matches the first character of a unit.\n if (!event.metaKey && !event.ctrlKey && reFirstCharacterOfUnits.test(event.key)) {\n refInputSuffix.current?.focus();\n }\n };\n }\n const refInputSuffix = useRef(null);\n const inputSuffix = !disableUnits ? /*#__PURE__*/_jsx(UnitSelectControl, {\n ref: refInputSuffix,\n \"aria-label\": __('Select unit'),\n disabled: disabled,\n isUnitSelectTabbable: isUnitSelectTabbable,\n onChange: handleOnUnitChange,\n size: ['small', 'compact'].includes(size) ? 'small' : 'default',\n unit: unit,\n units: units,\n onFocus: onFocusProp,\n onBlur: unitControlProps.onBlur\n }) : null;\n let step = props.step;\n\n /*\n * If no step prop has been passed, lookup the active unit and\n * try to get step from `units`, or default to a value of `1`\n */\n if (!step && units) {\n const activeUnit = units.find(option => option.value === unit);\n step = activeUnit?.step ?? 1;\n }\n return /*#__PURE__*/_jsx(ValueInput, {\n ...props,\n autoComplete: autoComplete,\n className: classes,\n disabled: disabled,\n spinControls: \"none\",\n isPressEnterToChange: isPressEnterToChange,\n label: label,\n onKeyDown: handleOnKeyDown,\n onChange: handleOnQuantityChange,\n ref: forwardedRef,\n size: size,\n suffix: inputSuffix,\n type: isPressEnterToChange ? 'text' : 'number',\n value: parsedQuantity ?? '',\n step: step,\n onFocus: onFocusProp,\n __unstableStateReducer: __unstableStateReducer\n });\n}\n\n/**\n * `UnitControl` allows the user to set a numeric quantity as well as a unit (e.g. `px`).\n *\n *\n * ```jsx\n * import { __experimentalUnitControl as UnitControl } from '@wordpress/components';\n * import { useState } from '@wordpress/element';\n *\n * const Example = () => {\n * const [ value, setValue ] = useState( '10px' );\n *\n * return <UnitControl onChange={ setValue } value={ value } />;\n * };\n * ```\n */\nexport const UnitControl = forwardRef(UnforwardedUnitControl);\nUnitControl.displayName = 'UnitControl';\nexport { parseQuantityAndUnitFromRawValue, useCustomUnits } from './utils';\nexport default UnitControl;"],
|
|
5
|
+
"mappings": "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",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|