@wordpress/components 30.9.1-next.8b30e05b0.0 → 31.0.1-next.6deb34194.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -4
- package/build/alignment-matrix-control/cell.js +131 -3
- package/build/alignment-matrix-control/cell.js.map +4 -4
- package/build/alignment-matrix-control/index.js +134 -6
- package/build/alignment-matrix-control/index.js.map +3 -3
- package/build/angle-picker-control/angle-circle.js +119 -15
- package/build/angle-picker-control/angle-circle.js.map +4 -4
- package/build/angle-picker-control/index.js +12 -7
- package/build/angle-picker-control/index.js.map +3 -3
- package/build/dropdown-menu/index.js +1 -1
- package/build/dropdown-menu/index.js.map +2 -2
- package/build/menu/styles.js +17 -17
- package/build/menu/styles.js.map +2 -2
- package/build/menu-item/index.js +1 -1
- package/build/menu-item/index.js.map +2 -2
- package/build/notice/index.js +1 -1
- package/build/notice/index.js.map +2 -2
- package/build/snackbar/index.js +1 -1
- package/build/snackbar/index.js.map +1 -1
- package/build/validated-form-controls/components/checkbox-control.js +0 -10
- package/build/validated-form-controls/components/checkbox-control.js.map +2 -2
- package/build/validated-form-controls/components/combobox-control.js +1 -11
- package/build/validated-form-controls/components/combobox-control.js.map +2 -2
- package/build/validated-form-controls/components/custom-select-control.js +0 -10
- package/build/validated-form-controls/components/custom-select-control.js.map +2 -2
- package/build/validated-form-controls/components/form-token-field.js +2 -12
- package/build/validated-form-controls/components/form-token-field.js.map +2 -2
- package/build/validated-form-controls/components/input-control.js +0 -10
- package/build/validated-form-controls/components/input-control.js.map +2 -2
- package/build/validated-form-controls/components/number-control.js +0 -10
- package/build/validated-form-controls/components/number-control.js.map +2 -2
- package/build/validated-form-controls/components/radio-control.js +0 -10
- package/build/validated-form-controls/components/radio-control.js.map +2 -2
- package/build/validated-form-controls/components/range-control.js +0 -10
- package/build/validated-form-controls/components/range-control.js.map +2 -2
- package/build/validated-form-controls/components/select-control.js +0 -10
- package/build/validated-form-controls/components/select-control.js.map +2 -2
- package/build/validated-form-controls/components/text-control.js +0 -10
- package/build/validated-form-controls/components/text-control.js.map +2 -2
- package/build/validated-form-controls/components/textarea-control.js +0 -10
- package/build/validated-form-controls/components/textarea-control.js.map +2 -2
- package/build/validated-form-controls/components/toggle-control.js +0 -10
- package/build/validated-form-controls/components/toggle-control.js.map +2 -2
- package/build/validated-form-controls/components/toggle-group-control.js +0 -10
- package/build/validated-form-controls/components/toggle-group-control.js.map +2 -2
- package/build/validated-form-controls/control-with-error.js +53 -58
- package/build/validated-form-controls/control-with-error.js.map +2 -2
- package/build-module/alignment-matrix-control/cell.js +131 -3
- package/build-module/alignment-matrix-control/cell.js.map +3 -3
- package/build-module/alignment-matrix-control/index.js +134 -6
- package/build-module/alignment-matrix-control/index.js.map +3 -3
- package/build-module/angle-picker-control/angle-circle.js +109 -15
- package/build-module/angle-picker-control/angle-circle.js.map +3 -3
- package/build-module/angle-picker-control/index.js +12 -7
- package/build-module/angle-picker-control/index.js.map +2 -2
- package/build-module/dropdown-menu/index.js +1 -1
- package/build-module/dropdown-menu/index.js.map +2 -2
- package/build-module/menu/styles.js +17 -17
- package/build-module/menu/styles.js.map +2 -2
- package/build-module/menu-item/index.js +1 -1
- package/build-module/menu-item/index.js.map +2 -2
- package/build-module/notice/index.js +1 -1
- package/build-module/notice/index.js.map +2 -2
- package/build-module/snackbar/index.js +1 -1
- package/build-module/snackbar/index.js.map +1 -1
- package/build-module/validated-form-controls/components/checkbox-control.js +0 -10
- package/build-module/validated-form-controls/components/checkbox-control.js.map +2 -2
- package/build-module/validated-form-controls/components/combobox-control.js +1 -11
- package/build-module/validated-form-controls/components/combobox-control.js.map +2 -2
- package/build-module/validated-form-controls/components/custom-select-control.js +0 -10
- package/build-module/validated-form-controls/components/custom-select-control.js.map +2 -2
- package/build-module/validated-form-controls/components/form-token-field.js +2 -12
- package/build-module/validated-form-controls/components/form-token-field.js.map +2 -2
- package/build-module/validated-form-controls/components/input-control.js +0 -10
- package/build-module/validated-form-controls/components/input-control.js.map +2 -2
- package/build-module/validated-form-controls/components/number-control.js +0 -10
- package/build-module/validated-form-controls/components/number-control.js.map +2 -2
- package/build-module/validated-form-controls/components/radio-control.js +0 -10
- package/build-module/validated-form-controls/components/radio-control.js.map +2 -2
- package/build-module/validated-form-controls/components/range-control.js +0 -10
- package/build-module/validated-form-controls/components/range-control.js.map +2 -2
- package/build-module/validated-form-controls/components/select-control.js +0 -10
- package/build-module/validated-form-controls/components/select-control.js.map +2 -2
- package/build-module/validated-form-controls/components/text-control.js +0 -10
- package/build-module/validated-form-controls/components/text-control.js.map +2 -2
- package/build-module/validated-form-controls/components/textarea-control.js +0 -10
- package/build-module/validated-form-controls/components/textarea-control.js.map +2 -2
- package/build-module/validated-form-controls/components/toggle-control.js +0 -10
- package/build-module/validated-form-controls/components/toggle-control.js.map +2 -2
- package/build-module/validated-form-controls/components/toggle-group-control.js +0 -10
- package/build-module/validated-form-controls/components/toggle-group-control.js.map +2 -2
- package/build-module/validated-form-controls/control-with-error.js +53 -58
- package/build-module/validated-form-controls/control-with-error.js.map +2 -2
- package/build-style/style-rtl.css +21 -33
- package/build-style/style.css +21 -33
- package/build-types/alignment-matrix-control/cell.d.ts.map +1 -1
- package/build-types/alignment-matrix-control/index.d.ts.map +1 -1
- package/build-types/angle-picker-control/angle-circle.d.ts +1 -1
- package/build-types/angle-picker-control/angle-circle.d.ts.map +1 -1
- package/build-types/angle-picker-control/index.d.ts.map +1 -1
- package/build-types/notice/index.d.ts.map +1 -1
- package/build-types/notice/stories/index.story.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/checkbox-control.d.ts +1 -1
- package/build-types/validated-form-controls/components/checkbox-control.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/combobox-control.d.ts +2 -3
- package/build-types/validated-form-controls/components/combobox-control.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/custom-select-control.d.ts +1 -2
- 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 +1 -2
- package/build-types/validated-form-controls/components/form-token-field.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/input-control.d.ts +1 -2
- package/build-types/validated-form-controls/components/input-control.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/number-control.d.ts +1 -1
- package/build-types/validated-form-controls/components/number-control.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/radio-control.d.ts +1 -1
- package/build-types/validated-form-controls/components/radio-control.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/range-control.d.ts +1 -1
- package/build-types/validated-form-controls/components/range-control.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/select-control.d.ts +2 -3
- package/build-types/validated-form-controls/components/select-control.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/stories/checkbox-control.story.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/stories/combobox-control.story.d.ts.map +1 -1
- 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.map +1 -1
- package/build-types/validated-form-controls/components/stories/input-control.story.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/stories/number-control.story.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/stories/overview.story.d.ts +7 -0
- package/build-types/validated-form-controls/components/stories/overview.story.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/stories/radio-control.story.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/stories/range-control.story.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/stories/select-control.story.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/stories/text-control.story.d.ts.map +1 -1
- 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.map +1 -1
- package/build-types/validated-form-controls/components/stories/toggle-group-control.story.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/text-control.d.ts +1 -1
- package/build-types/validated-form-controls/components/text-control.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/textarea-control.d.ts +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 +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 +1 -1
- package/build-types/validated-form-controls/components/toggle-group-control.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/types.d.ts +1 -9
- package/build-types/validated-form-controls/components/types.d.ts.map +1 -1
- package/build-types/validated-form-controls/control-with-error.d.ts +4 -5
- package/build-types/validated-form-controls/control-with-error.d.ts.map +1 -1
- package/package.json +20 -20
- package/src/alignment-matrix-control/cell.tsx +14 -3
- package/src/alignment-matrix-control/index.tsx +15 -6
- package/src/alignment-matrix-control/style.module.scss +84 -0
- package/src/angle-picker-control/angle-circle.tsx +27 -12
- package/src/angle-picker-control/index.tsx +8 -7
- package/src/angle-picker-control/style.module.scss +40 -0
- package/src/button/style.scss +1 -1
- package/src/dropdown-menu/index.tsx +1 -1
- package/src/dropdown-menu/style.scss +1 -1
- package/src/guide/style.scss +3 -3
- package/src/menu/styles.ts +2 -2
- package/src/menu-item/index.tsx +1 -1
- package/src/menu-item/test/__snapshots__/index.js.snap +4 -4
- package/src/modal/style.scss +5 -5
- package/src/notice/index.tsx +53 -46
- package/src/notice/stories/index.story.tsx +17 -1
- package/src/notice/style.scss +3 -20
- package/src/snackbar/index.tsx +1 -1
- package/src/validated-form-controls/components/checkbox-control.tsx +1 -14
- package/src/validated-form-controls/components/combobox-control.tsx +1 -14
- package/src/validated-form-controls/components/custom-select-control.tsx +1 -19
- package/src/validated-form-controls/components/form-token-field.tsx +2 -15
- package/src/validated-form-controls/components/input-control.tsx +1 -14
- package/src/validated-form-controls/components/number-control.tsx +1 -16
- package/src/validated-form-controls/components/radio-control.tsx +2 -18
- package/src/validated-form-controls/components/range-control.tsx +1 -14
- package/src/validated-form-controls/components/select-control.tsx +1 -23
- package/src/validated-form-controls/components/stories/checkbox-control.story.tsx +11 -20
- package/src/validated-form-controls/components/stories/combobox-control.story.tsx +8 -17
- package/src/validated-form-controls/components/stories/custom-select-control.story.tsx +8 -17
- package/src/validated-form-controls/components/stories/form-token-field.story.tsx +14 -26
- package/src/validated-form-controls/components/stories/input-control.story.tsx +25 -50
- package/src/validated-form-controls/components/stories/number-control.story.tsx +10 -19
- package/src/validated-form-controls/components/stories/overview.mdx +3 -3
- package/src/validated-form-controls/components/stories/overview.story.tsx +94 -79
- package/src/validated-form-controls/components/stories/radio-control.story.tsx +11 -20
- package/src/validated-form-controls/components/stories/range-control.story.tsx +8 -17
- package/src/validated-form-controls/components/stories/select-control.story.tsx +9 -18
- package/src/validated-form-controls/components/stories/text-control.story.tsx +11 -17
- package/src/validated-form-controls/components/stories/textarea-control.story.tsx +12 -16
- package/src/validated-form-controls/components/stories/toggle-control.story.tsx +11 -20
- package/src/validated-form-controls/components/stories/toggle-group-control.story.tsx +8 -17
- package/src/validated-form-controls/components/text-control.tsx +1 -14
- package/src/validated-form-controls/components/textarea-control.tsx +1 -14
- package/src/validated-form-controls/components/toggle-control.tsx +1 -14
- package/src/validated-form-controls/components/toggle-group-control.tsx +1 -14
- package/src/validated-form-controls/components/types.ts +1 -9
- package/src/validated-form-controls/control-with-error.tsx +57 -84
- package/src/validated-form-controls/style.scss +7 -7
- package/src/validated-form-controls/test/control-with-error.tsx +66 -5
- package/tsconfig.json +1 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/build/alignment-matrix-control/styles.js +0 -105
- package/build/alignment-matrix-control/styles.js.map +0 -7
- package/build/angle-picker-control/styles/angle-picker-control-styles.js +0 -88
- package/build/angle-picker-control/styles/angle-picker-control-styles.js.map +0 -7
- package/build-module/alignment-matrix-control/styles.js +0 -67
- package/build-module/alignment-matrix-control/styles.js.map +0 -7
- package/build-module/angle-picker-control/styles/angle-picker-control-styles.js +0 -50
- package/build-module/angle-picker-control/styles/angle-picker-control-styles.js.map +0 -7
- package/build-types/alignment-matrix-control/styles.d.ts +0 -21
- package/build-types/alignment-matrix-control/styles.d.ts.map +0 -1
- package/build-types/angle-picker-control/styles/angle-picker-control-styles.d.ts +0 -18
- package/build-types/angle-picker-control/styles/angle-picker-control-styles.d.ts.map +0 -1
- package/src/alignment-matrix-control/styles.ts +0 -113
- package/src/angle-picker-control/styles/angle-picker-control-styles.tsx +0 -58
package/CHANGELOG.md
CHANGED
|
@@ -2,13 +2,35 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 31.0.0-next.0 (2025-12-09)
|
|
6
|
+
|
|
7
|
+
### Breaking Changes
|
|
8
|
+
|
|
9
|
+
- Validated form controls (private API): Removed `onValidate` prop (use `onChange` to set `customValidity` messages, or add conditionals directly inside the `customValidity` prop instead) ([#73559](https://github.com/WordPress/gutenberg/pull/73559)).
|
|
10
|
+
|
|
11
|
+
### Enhancements
|
|
12
|
+
|
|
13
|
+
- `Menu` and othr menu items: change default size to be 32px tall rather than 40px to improve menu density. ([#73429](https://github.com/WordPress/gutenberg/pull/73429)).
|
|
14
|
+
- Unify padding using for DataViews, Modals and other container components. ([#73334](https://github.com/WordPress/gutenberg/pull/73334))
|
|
15
|
+
- `Snackbar`: Shorten timeout duration ([#73814](https://github.com/WordPress/gutenberg/pull/73814)).
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
- `Modal`: Fix vertical scroll issue by reducing style specificity to allow overrides. ([#73739](https://github.com/WordPress/gutenberg/pull/73739))
|
|
20
|
+
- `Notice`: Fix notice component spacing issue when actions are present. ([#69430](https://github.com/WordPress/gutenberg/pull/69430))
|
|
21
|
+
|
|
22
|
+
### Internal
|
|
23
|
+
|
|
24
|
+
- `AlignmentMatrixControl`: Migrate styles from Emotion to a CSS module ([#73714](https://github.com/WordPress/gutenberg/pull/73714) and [#73757](https://github.com/WordPress/gutenberg/pull/73757)).
|
|
25
|
+
- `AnglePickerControl`: Migrate styles from Emotion to a CSS module ([#73786](https://github.com/WordPress/gutenberg/pull/73786)).
|
|
26
|
+
|
|
5
27
|
## 30.9.0 (2025-11-26)
|
|
6
28
|
|
|
7
29
|
### Bug Fixes
|
|
8
30
|
|
|
9
|
-
- `ExternalLink`: Fix arrow direction for RTL languages. The external link arrow now correctly points to the top-left (↖) instead of top-right (↗) in RTL layouts. ([#73400](https://github.com/WordPress/gutenberg/pull/73400))
|
|
10
|
-
- Fixed an issue where the `Guide` component’s close button became invisible on hover when used on light backgrounds. The component's close button now relies on the default button hover effect, and the custom hover color is applied only within `welcome-guide` implementations to maintain consistency. ([#73220](https://github.com/WordPress/gutenberg/pull/73220))
|
|
11
|
-
- `DateTimePicker`: Fixed timezone handling when selecting specific dates around changes in daylight savings time when browser and server timezone settings are not in sync, which would cause an incorrect date to be selected. ([#73444](https://github.com/WordPress/gutenberg/pull/73444))
|
|
31
|
+
- `ExternalLink`: Fix arrow direction for RTL languages. The external link arrow now correctly points to the top-left (↖) instead of top-right (↗) in RTL layouts. ([#73400](https://github.com/WordPress/gutenberg/pull/73400)).
|
|
32
|
+
- Fixed an issue where the `Guide` component’s close button became invisible on hover when used on light backgrounds. The component's close button now relies on the default button hover effect, and the custom hover color is applied only within `welcome-guide` implementations to maintain consistency. ([#73220](https://github.com/WordPress/gutenberg/pull/73220)).
|
|
33
|
+
- `DateTimePicker`: Fixed timezone handling when selecting specific dates around changes in daylight savings time when browser and server timezone settings are not in sync, which would cause an incorrect date to be selected. ([#73444](https://github.com/WordPress/gutenberg/pull/73444)).
|
|
12
34
|
|
|
13
35
|
## 30.8.0 (2025-11-12)
|
|
14
36
|
|
|
@@ -21,7 +43,6 @@
|
|
|
21
43
|
- `NumberControl`: Fix crash when min prop is string and step prop contains decimal ([#73107](https://github.com/WordPress/gutenberg/pull/73107)).
|
|
22
44
|
- `Modal`: Fix full-screen modal height to allow contents to scroll properly ([#73150](https://github.com/WordPress/gutenberg/pull/73150)).
|
|
23
45
|
|
|
24
|
-
|
|
25
46
|
### Internal
|
|
26
47
|
|
|
27
48
|
- `Modal`: Add a classname to simplify full height content modal styling ([#73108](https://github.com/WordPress/gutenberg/pull/73108)).
|
|
@@ -33,11 +33,137 @@ __export(cell_exports, {
|
|
|
33
33
|
default: () => Cell
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(cell_exports);
|
|
36
|
+
var import_clsx = __toESM(require("clsx"));
|
|
36
37
|
var import_composite = require("../composite");
|
|
37
38
|
var import_tooltip = __toESM(require("../tooltip"));
|
|
38
39
|
var import_visually_hidden = require("../visually-hidden");
|
|
39
40
|
var import_utils = require("./utils");
|
|
40
|
-
|
|
41
|
+
|
|
42
|
+
// packages/components/src/alignment-matrix-control/style.module.scss
|
|
43
|
+
var css = `/**
|
|
44
|
+
* SCSS Variables.
|
|
45
|
+
*
|
|
46
|
+
* Please use variables from this sheet to ensure consistency across the UI.
|
|
47
|
+
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
|
48
|
+
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
|
49
|
+
*/
|
|
50
|
+
/**
|
|
51
|
+
* Colors
|
|
52
|
+
*/
|
|
53
|
+
/**
|
|
54
|
+
* Fonts & basic variables.
|
|
55
|
+
*/
|
|
56
|
+
/**
|
|
57
|
+
* Typography
|
|
58
|
+
*/
|
|
59
|
+
/**
|
|
60
|
+
* Grid System.
|
|
61
|
+
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
|
62
|
+
*/
|
|
63
|
+
/**
|
|
64
|
+
* Radius scale.
|
|
65
|
+
*/
|
|
66
|
+
/**
|
|
67
|
+
* Elevation scale.
|
|
68
|
+
*/
|
|
69
|
+
/**
|
|
70
|
+
* Dimensions.
|
|
71
|
+
*/
|
|
72
|
+
/**
|
|
73
|
+
* Mobile specific styles
|
|
74
|
+
*/
|
|
75
|
+
/**
|
|
76
|
+
* Editor styles.
|
|
77
|
+
*/
|
|
78
|
+
/**
|
|
79
|
+
* Block & Editor UI.
|
|
80
|
+
*/
|
|
81
|
+
/**
|
|
82
|
+
* Block paddings.
|
|
83
|
+
*/
|
|
84
|
+
/**
|
|
85
|
+
* React Native specific.
|
|
86
|
+
* These variables do not appear to be used anywhere else.
|
|
87
|
+
*/
|
|
88
|
+
.style-module__grid-container__AuKvW {
|
|
89
|
+
direction: ltr;
|
|
90
|
+
display: grid;
|
|
91
|
+
grid-template-columns: repeat(3, 1fr);
|
|
92
|
+
grid-template-rows: repeat(3, 1fr);
|
|
93
|
+
box-sizing: border-box;
|
|
94
|
+
aspect-ratio: 1;
|
|
95
|
+
border: 1px solid transparent;
|
|
96
|
+
border-radius: 4px;
|
|
97
|
+
outline: none;
|
|
98
|
+
cursor: pointer;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.style-module__grid-row__xCH47 {
|
|
102
|
+
grid-column: 1/-1;
|
|
103
|
+
box-sizing: border-box;
|
|
104
|
+
display: grid;
|
|
105
|
+
grid-template-columns: repeat(3, 1fr);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.style-module__cell__Ovdp9 {
|
|
109
|
+
position: relative;
|
|
110
|
+
display: flex;
|
|
111
|
+
align-items: center;
|
|
112
|
+
justify-content: center;
|
|
113
|
+
box-sizing: border-box;
|
|
114
|
+
margin: 0;
|
|
115
|
+
padding: 0;
|
|
116
|
+
appearance: none;
|
|
117
|
+
border: none;
|
|
118
|
+
outline: none;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.style-module__point__N-8S1 {
|
|
122
|
+
display: block;
|
|
123
|
+
contain: strict;
|
|
124
|
+
box-sizing: border-box;
|
|
125
|
+
width: 6px;
|
|
126
|
+
aspect-ratio: 1;
|
|
127
|
+
margin: auto;
|
|
128
|
+
color: var(--wp-components-color-gray-400, #ccc);
|
|
129
|
+
/* Use border instead of background color so that the point shows
|
|
130
|
+
in Windows High Contrast Mode */
|
|
131
|
+
border: 3px solid currentColor;
|
|
132
|
+
/* Highlight active item */
|
|
133
|
+
}
|
|
134
|
+
.style-module__cell__Ovdp9[data-active-item] .style-module__point__N-8S1 {
|
|
135
|
+
color: var(--wp-components-color-foreground, #1e1e1e);
|
|
136
|
+
transform: scale(1.6666666667);
|
|
137
|
+
}
|
|
138
|
+
.style-module__point__N-8S1 {
|
|
139
|
+
/* Hover styles for non-active items */
|
|
140
|
+
}
|
|
141
|
+
.style-module__cell__Ovdp9:not([data-active-item]):hover .style-module__point__N-8S1 {
|
|
142
|
+
color: var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));
|
|
143
|
+
}
|
|
144
|
+
.style-module__point__N-8S1 {
|
|
145
|
+
/* Show an outline only when interacting with keyboard */
|
|
146
|
+
}
|
|
147
|
+
.style-module__cell__Ovdp9[data-focus-visible] .style-module__point__N-8S1 {
|
|
148
|
+
outline: 1px solid var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));
|
|
149
|
+
outline-offset: 1px;
|
|
150
|
+
}
|
|
151
|
+
@media not (prefers-reduced-motion) {
|
|
152
|
+
.style-module__point__N-8S1 {
|
|
153
|
+
transition-property: color, transform;
|
|
154
|
+
transition-duration: 120ms;
|
|
155
|
+
transition-timing-function: linear;
|
|
156
|
+
}
|
|
157
|
+
}`;
|
|
158
|
+
document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(css));
|
|
159
|
+
var style_module_default = {
|
|
160
|
+
"grid-container": "style-module__grid-container__AuKvW",
|
|
161
|
+
"grid-row": "style-module__grid-row__xCH47",
|
|
162
|
+
"cell": "style-module__cell__Ovdp9",
|
|
163
|
+
"point": "style-module__point__N-8S1"
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
// packages/components/src/alignment-matrix-control/cell.tsx
|
|
41
167
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
42
168
|
function Cell({
|
|
43
169
|
id,
|
|
@@ -48,13 +174,15 @@ function Cell({
|
|
|
48
174
|
text: import_utils.ALIGNMENT_LABEL[value],
|
|
49
175
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_composite.Composite.Item, {
|
|
50
176
|
id,
|
|
51
|
-
render: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
177
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
52
178
|
...props,
|
|
179
|
+
className: (0, import_clsx.default)(style_module_default.cell, props.className),
|
|
53
180
|
role: "gridcell"
|
|
54
181
|
}),
|
|
55
182
|
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_visually_hidden.VisuallyHidden, {
|
|
56
183
|
children: value
|
|
57
|
-
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
184
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
185
|
+
className: style_module_default.point,
|
|
58
186
|
role: "presentation"
|
|
59
187
|
})]
|
|
60
188
|
})
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../src/alignment-matrix-control/cell.tsx"],
|
|
4
|
-
"sourcesContent": ["/**\n * Internal dependencies\n */\nimport { Composite } from '../composite';\nimport Tooltip from '../tooltip';\nimport { VisuallyHidden } from '../visually-hidden';\n\n/**\n * Internal dependencies\n */\nimport { ALIGNMENT_LABEL } from './utils';\nimport
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,uBAA0B;AAC1B,qBAAoB;AACpB,6BAA+B;AAK/B,mBAAgC;
|
|
6
|
-
"names": ["_jsx", "Tooltip", "_jsxs", "
|
|
3
|
+
"sources": ["../../src/alignment-matrix-control/cell.tsx", "../../src/alignment-matrix-control/style.module.scss"],
|
|
4
|
+
"sourcesContent": ["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * Internal dependencies\n */\nimport { Composite } from '../composite';\nimport Tooltip from '../tooltip';\nimport { VisuallyHidden } from '../visually-hidden';\n\n/**\n * Internal dependencies\n */\nimport { ALIGNMENT_LABEL } from './utils';\nimport styles from './style.module.scss';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport default function Cell({\n id,\n value,\n ...props\n}) {\n return /*#__PURE__*/_jsx(Tooltip, {\n text: ALIGNMENT_LABEL[value],\n children: /*#__PURE__*/_jsxs(Composite.Item, {\n id: id,\n render: /*#__PURE__*/_jsx(\"span\", {\n ...props,\n className: clsx(styles.cell, props.className),\n role: \"gridcell\"\n }),\n children: [/*#__PURE__*/_jsx(VisuallyHidden, {\n children: value\n }), /*#__PURE__*/_jsx(\"span\", {\n className: styles.point,\n role: \"presentation\"\n })]\n })\n });\n}", "const css = `/**\n * SCSS Variables.\n *\n * Please use variables from this sheet to ensure consistency across the UI.\n * Don't add to this sheet unless you're pretty sure the value will be reused in many places.\n * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.\n */\n/**\n * Colors\n */\n/**\n * Fonts & basic variables.\n */\n/**\n * Typography\n */\n/**\n * Grid System.\n * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/\n */\n/**\n * Radius scale.\n */\n/**\n * Elevation scale.\n */\n/**\n * Dimensions.\n */\n/**\n * Mobile specific styles\n */\n/**\n * Editor styles.\n */\n/**\n * Block & Editor UI.\n */\n/**\n * Block paddings.\n */\n/**\n * React Native specific.\n * These variables do not appear to be used anywhere else.\n */\n.style-module__grid-container__AuKvW {\n direction: ltr;\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n grid-template-rows: repeat(3, 1fr);\n box-sizing: border-box;\n aspect-ratio: 1;\n border: 1px solid transparent;\n border-radius: 4px;\n outline: none;\n cursor: pointer;\n}\n\n.style-module__grid-row__xCH47 {\n grid-column: 1/-1;\n box-sizing: border-box;\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n}\n\n.style-module__cell__Ovdp9 {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n appearance: none;\n border: none;\n outline: none;\n}\n\n.style-module__point__N-8S1 {\n display: block;\n contain: strict;\n box-sizing: border-box;\n width: 6px;\n aspect-ratio: 1;\n margin: auto;\n color: var(--wp-components-color-gray-400, #ccc);\n /* Use border instead of background color so that the point shows\n in Windows High Contrast Mode */\n border: 3px solid currentColor;\n /* Highlight active item */\n}\n.style-module__cell__Ovdp9[data-active-item] .style-module__point__N-8S1 {\n color: var(--wp-components-color-foreground, #1e1e1e);\n transform: scale(1.6666666667);\n}\n.style-module__point__N-8S1 {\n /* Hover styles for non-active items */\n}\n.style-module__cell__Ovdp9:not([data-active-item]):hover .style-module__point__N-8S1 {\n color: var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));\n}\n.style-module__point__N-8S1 {\n /* Show an outline only when interacting with keyboard */\n}\n.style-module__cell__Ovdp9[data-focus-visible] .style-module__point__N-8S1 {\n outline: 1px solid var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));\n outline-offset: 1px;\n}\n@media not (prefers-reduced-motion) {\n .style-module__point__N-8S1 {\n transition-property: color, transform;\n transition-duration: 120ms;\n transition-timing-function: linear;\n }\n}`;\ndocument.head\n .appendChild(document.createElement(\"style\"))\n .appendChild(document.createTextNode(css));\nexport {css};\nexport default {\n \"grid-container\": \"style-module__grid-container__AuKvW\",\n \"grid-row\": \"style-module__grid-row__xCH47\",\n \"cell\": \"style-module__cell__Ovdp9\",\n \"point\": \"style-module__point__N-8S1\"\n};"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,kBAAiB;AAKjB,uBAA0B;AAC1B,qBAAoB;AACpB,6BAA+B;AAK/B,mBAAgC;;;ACfhC,IAAM,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA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,KAAK,QAAQ;AAAA,QAC5B,WAAW,qBAAO;AAAA,QAClB,MAAM;AAAA,MACR,CAAC,CAAC;AAAA,IACJ,CAAC;AAAA,EACH,CAAC;AACH;",
|
|
6
|
+
"names": ["_jsx", "Tooltip", "_jsxs", "clsx"]
|
|
7
7
|
}
|
|
@@ -40,9 +40,134 @@ var import_compose = require("@wordpress/compose");
|
|
|
40
40
|
var import_element = require("@wordpress/element");
|
|
41
41
|
var import_cell = __toESM(require("./cell"));
|
|
42
42
|
var import_composite = require("../composite");
|
|
43
|
-
var import_styles = require("./styles");
|
|
44
43
|
var import_icon = __toESM(require("./icon"));
|
|
45
44
|
var import_utils = require("./utils");
|
|
45
|
+
|
|
46
|
+
// packages/components/src/alignment-matrix-control/style.module.scss
|
|
47
|
+
var css = `/**
|
|
48
|
+
* SCSS Variables.
|
|
49
|
+
*
|
|
50
|
+
* Please use variables from this sheet to ensure consistency across the UI.
|
|
51
|
+
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
|
52
|
+
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
|
53
|
+
*/
|
|
54
|
+
/**
|
|
55
|
+
* Colors
|
|
56
|
+
*/
|
|
57
|
+
/**
|
|
58
|
+
* Fonts & basic variables.
|
|
59
|
+
*/
|
|
60
|
+
/**
|
|
61
|
+
* Typography
|
|
62
|
+
*/
|
|
63
|
+
/**
|
|
64
|
+
* Grid System.
|
|
65
|
+
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
|
66
|
+
*/
|
|
67
|
+
/**
|
|
68
|
+
* Radius scale.
|
|
69
|
+
*/
|
|
70
|
+
/**
|
|
71
|
+
* Elevation scale.
|
|
72
|
+
*/
|
|
73
|
+
/**
|
|
74
|
+
* Dimensions.
|
|
75
|
+
*/
|
|
76
|
+
/**
|
|
77
|
+
* Mobile specific styles
|
|
78
|
+
*/
|
|
79
|
+
/**
|
|
80
|
+
* Editor styles.
|
|
81
|
+
*/
|
|
82
|
+
/**
|
|
83
|
+
* Block & Editor UI.
|
|
84
|
+
*/
|
|
85
|
+
/**
|
|
86
|
+
* Block paddings.
|
|
87
|
+
*/
|
|
88
|
+
/**
|
|
89
|
+
* React Native specific.
|
|
90
|
+
* These variables do not appear to be used anywhere else.
|
|
91
|
+
*/
|
|
92
|
+
.style-module__grid-container__AuKvW {
|
|
93
|
+
direction: ltr;
|
|
94
|
+
display: grid;
|
|
95
|
+
grid-template-columns: repeat(3, 1fr);
|
|
96
|
+
grid-template-rows: repeat(3, 1fr);
|
|
97
|
+
box-sizing: border-box;
|
|
98
|
+
aspect-ratio: 1;
|
|
99
|
+
border: 1px solid transparent;
|
|
100
|
+
border-radius: 4px;
|
|
101
|
+
outline: none;
|
|
102
|
+
cursor: pointer;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.style-module__grid-row__xCH47 {
|
|
106
|
+
grid-column: 1/-1;
|
|
107
|
+
box-sizing: border-box;
|
|
108
|
+
display: grid;
|
|
109
|
+
grid-template-columns: repeat(3, 1fr);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.style-module__cell__Ovdp9 {
|
|
113
|
+
position: relative;
|
|
114
|
+
display: flex;
|
|
115
|
+
align-items: center;
|
|
116
|
+
justify-content: center;
|
|
117
|
+
box-sizing: border-box;
|
|
118
|
+
margin: 0;
|
|
119
|
+
padding: 0;
|
|
120
|
+
appearance: none;
|
|
121
|
+
border: none;
|
|
122
|
+
outline: none;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.style-module__point__N-8S1 {
|
|
126
|
+
display: block;
|
|
127
|
+
contain: strict;
|
|
128
|
+
box-sizing: border-box;
|
|
129
|
+
width: 6px;
|
|
130
|
+
aspect-ratio: 1;
|
|
131
|
+
margin: auto;
|
|
132
|
+
color: var(--wp-components-color-gray-400, #ccc);
|
|
133
|
+
/* Use border instead of background color so that the point shows
|
|
134
|
+
in Windows High Contrast Mode */
|
|
135
|
+
border: 3px solid currentColor;
|
|
136
|
+
/* Highlight active item */
|
|
137
|
+
}
|
|
138
|
+
.style-module__cell__Ovdp9[data-active-item] .style-module__point__N-8S1 {
|
|
139
|
+
color: var(--wp-components-color-foreground, #1e1e1e);
|
|
140
|
+
transform: scale(1.6666666667);
|
|
141
|
+
}
|
|
142
|
+
.style-module__point__N-8S1 {
|
|
143
|
+
/* Hover styles for non-active items */
|
|
144
|
+
}
|
|
145
|
+
.style-module__cell__Ovdp9:not([data-active-item]):hover .style-module__point__N-8S1 {
|
|
146
|
+
color: var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));
|
|
147
|
+
}
|
|
148
|
+
.style-module__point__N-8S1 {
|
|
149
|
+
/* Show an outline only when interacting with keyboard */
|
|
150
|
+
}
|
|
151
|
+
.style-module__cell__Ovdp9[data-focus-visible] .style-module__point__N-8S1 {
|
|
152
|
+
outline: 1px solid var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));
|
|
153
|
+
outline-offset: 1px;
|
|
154
|
+
}
|
|
155
|
+
@media not (prefers-reduced-motion) {
|
|
156
|
+
.style-module__point__N-8S1 {
|
|
157
|
+
transition-property: color, transform;
|
|
158
|
+
transition-duration: 120ms;
|
|
159
|
+
transition-timing-function: linear;
|
|
160
|
+
}
|
|
161
|
+
}`;
|
|
162
|
+
document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(css));
|
|
163
|
+
var style_module_default = {
|
|
164
|
+
"grid-container": "style-module__grid-container__AuKvW",
|
|
165
|
+
"grid-row": "style-module__grid-row__xCH47",
|
|
166
|
+
"cell": "style-module__cell__Ovdp9",
|
|
167
|
+
"point": "style-module__point__N-8S1"
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
// packages/components/src/alignment-matrix-control/index.tsx
|
|
46
171
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
47
172
|
function UnforwardedAlignmentMatrixControl({
|
|
48
173
|
className,
|
|
@@ -61,22 +186,25 @@ function UnforwardedAlignmentMatrixControl({
|
|
|
61
186
|
onChange?.(nextValue);
|
|
62
187
|
}
|
|
63
188
|
}, [baseId, onChange]);
|
|
64
|
-
const classes = (0, import_clsx.default)("component-alignment-matrix-control", className);
|
|
189
|
+
const classes = (0, import_clsx.default)("component-alignment-matrix-control", style_module_default["grid-container"], className);
|
|
65
190
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_composite.Composite, {
|
|
66
191
|
defaultActiveId: (0, import_utils.getItemId)(baseId, defaultValue),
|
|
67
192
|
activeId: (0, import_utils.getItemId)(baseId, value),
|
|
68
193
|
setActiveId,
|
|
69
194
|
rtl: (0, import_i18n.isRTL)(),
|
|
70
|
-
render: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
195
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
71
196
|
...props,
|
|
72
|
-
"aria-label": label,
|
|
73
197
|
className: classes,
|
|
198
|
+
"aria-label": label,
|
|
74
199
|
id: baseId,
|
|
75
200
|
role: "grid",
|
|
76
|
-
|
|
201
|
+
style: {
|
|
202
|
+
width: `${width}px`
|
|
203
|
+
}
|
|
77
204
|
}),
|
|
78
205
|
children: import_utils.GRID.map((cells, index) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_composite.Composite.Row, {
|
|
79
|
-
render: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
206
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
207
|
+
className: style_module_default["grid-row"],
|
|
80
208
|
role: "row"
|
|
81
209
|
}),
|
|
82
210
|
children: cells.map((cell) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_cell.default, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../src/alignment-matrix-control/index.tsx"],
|
|
4
|
-
"sourcesContent": ["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * WordPress dependencies\n */\nimport { __, isRTL } from '@wordpress/i18n';\nimport { useInstanceId } from '@wordpress/compose';\nimport { useCallback } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport Cell from './cell';\nimport { Composite } from '../composite';\nimport
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,kBAAiB;AAKjB,kBAA0B;AAC1B,qBAA8B;AAC9B,qBAA4B;AAK5B,kBAAiB;AACjB,uBAA0B;AAC1B,
|
|
3
|
+
"sources": ["../../src/alignment-matrix-control/index.tsx", "../../src/alignment-matrix-control/style.module.scss"],
|
|
4
|
+
"sourcesContent": ["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * WordPress dependencies\n */\nimport { __, isRTL } from '@wordpress/i18n';\nimport { useInstanceId } from '@wordpress/compose';\nimport { useCallback } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport Cell from './cell';\nimport { Composite } from '../composite';\nimport AlignmentMatrixControlIcon from './icon';\nimport { GRID, getItemId, getItemValue } from './utils';\nimport styles from './style.module.scss';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction UnforwardedAlignmentMatrixControl({\n className,\n id,\n label = __('Alignment Matrix Control'),\n defaultValue = 'center center',\n value,\n onChange,\n width = 92,\n ...props\n}) {\n const baseId = useInstanceId(UnforwardedAlignmentMatrixControl, 'alignment-matrix-control', id);\n const setActiveId = useCallback(nextActiveId => {\n const nextValue = getItemValue(baseId, nextActiveId);\n if (nextValue) {\n onChange?.(nextValue);\n }\n }, [baseId, onChange]);\n const classes = clsx('component-alignment-matrix-control', styles['grid-container'], className);\n return /*#__PURE__*/_jsx(Composite, {\n defaultActiveId: getItemId(baseId, defaultValue),\n activeId: getItemId(baseId, value),\n setActiveId: setActiveId,\n rtl: isRTL(),\n render: /*#__PURE__*/_jsx(\"div\", {\n ...props,\n className: classes,\n \"aria-label\": label,\n id: baseId,\n role: \"grid\",\n style: {\n width: `${width}px`\n }\n }),\n children: GRID.map((cells, index) => /*#__PURE__*/_jsx(Composite.Row, {\n render: /*#__PURE__*/_jsx(\"div\", {\n className: styles['grid-row'],\n role: \"row\"\n }),\n children: cells.map(cell => /*#__PURE__*/_jsx(Cell, {\n id: getItemId(baseId, cell),\n value: cell\n }, cell))\n }, index))\n });\n}\n\n/**\n * AlignmentMatrixControl components enable adjustments to horizontal and vertical alignments for UI.\n *\n * ```jsx\n * import { AlignmentMatrixControl } from '@wordpress/components';\n * import { useState } from '@wordpress/element';\n *\n * const Example = () => {\n * \tconst [ alignment, setAlignment ] = useState( 'center center' );\n *\n * \treturn (\n * \t\t<AlignmentMatrixControl\n * \t\t\tvalue={ alignment }\n * \t\t\tonChange={ setAlignment }\n * \t\t/>\n * \t);\n * };\n * ```\n */\nexport const AlignmentMatrixControl = Object.assign(UnforwardedAlignmentMatrixControl, {\n /**\n * Render an alignment matrix as an icon.\n *\n * ```jsx\n * import { AlignmentMatrixControl } from '@wordpress/components';\n *\n * <Icon icon={<AlignmentMatrixControl.Icon value=\"top left\" />} />\n * ```\n */\n Icon: Object.assign(AlignmentMatrixControlIcon, {\n displayName: 'AlignmentMatrixControl.Icon'\n })\n});\nexport default AlignmentMatrixControl;", "const css = `/**\n * SCSS Variables.\n *\n * Please use variables from this sheet to ensure consistency across the UI.\n * Don't add to this sheet unless you're pretty sure the value will be reused in many places.\n * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.\n */\n/**\n * Colors\n */\n/**\n * Fonts & basic variables.\n */\n/**\n * Typography\n */\n/**\n * Grid System.\n * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/\n */\n/**\n * Radius scale.\n */\n/**\n * Elevation scale.\n */\n/**\n * Dimensions.\n */\n/**\n * Mobile specific styles\n */\n/**\n * Editor styles.\n */\n/**\n * Block & Editor UI.\n */\n/**\n * Block paddings.\n */\n/**\n * React Native specific.\n * These variables do not appear to be used anywhere else.\n */\n.style-module__grid-container__AuKvW {\n direction: ltr;\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n grid-template-rows: repeat(3, 1fr);\n box-sizing: border-box;\n aspect-ratio: 1;\n border: 1px solid transparent;\n border-radius: 4px;\n outline: none;\n cursor: pointer;\n}\n\n.style-module__grid-row__xCH47 {\n grid-column: 1/-1;\n box-sizing: border-box;\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n}\n\n.style-module__cell__Ovdp9 {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n appearance: none;\n border: none;\n outline: none;\n}\n\n.style-module__point__N-8S1 {\n display: block;\n contain: strict;\n box-sizing: border-box;\n width: 6px;\n aspect-ratio: 1;\n margin: auto;\n color: var(--wp-components-color-gray-400, #ccc);\n /* Use border instead of background color so that the point shows\n in Windows High Contrast Mode */\n border: 3px solid currentColor;\n /* Highlight active item */\n}\n.style-module__cell__Ovdp9[data-active-item] .style-module__point__N-8S1 {\n color: var(--wp-components-color-foreground, #1e1e1e);\n transform: scale(1.6666666667);\n}\n.style-module__point__N-8S1 {\n /* Hover styles for non-active items */\n}\n.style-module__cell__Ovdp9:not([data-active-item]):hover .style-module__point__N-8S1 {\n color: var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));\n}\n.style-module__point__N-8S1 {\n /* Show an outline only when interacting with keyboard */\n}\n.style-module__cell__Ovdp9[data-focus-visible] .style-module__point__N-8S1 {\n outline: 1px solid var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));\n outline-offset: 1px;\n}\n@media not (prefers-reduced-motion) {\n .style-module__point__N-8S1 {\n transition-property: color, transform;\n transition-duration: 120ms;\n transition-timing-function: linear;\n }\n}`;\ndocument.head\n .appendChild(document.createElement(\"style\"))\n .appendChild(document.createTextNode(css));\nexport {css};\nexport default {\n \"grid-container\": \"style-module__grid-container__AuKvW\",\n \"grid-row\": \"style-module__grid-row__xCH47\",\n \"cell\": \"style-module__cell__Ovdp9\",\n \"point\": \"style-module__point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SAA4B;AAAA,IAC9C,aAAa;AAAA,EACf,CAAC;AACH,CAAC;AACD,IAAO,mCAAQ;",
|
|
6
6
|
"names": ["clsx", "_jsx", "Cell", "AlignmentMatrixControlIcon"]
|
|
7
7
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
5
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
8
|
var __export = (target, all) => {
|
|
7
9
|
for (var name in all)
|
|
@@ -15,6 +17,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
17
|
}
|
|
16
18
|
return to;
|
|
17
19
|
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
18
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
29
|
|
|
20
30
|
// packages/components/src/angle-picker-control/angle-circle.tsx
|
|
@@ -23,13 +33,104 @@ __export(angle_circle_exports, {
|
|
|
23
33
|
default: () => angle_circle_default
|
|
24
34
|
});
|
|
25
35
|
module.exports = __toCommonJS(angle_circle_exports);
|
|
36
|
+
var import_clsx = __toESM(require("clsx"));
|
|
26
37
|
var import_element = require("@wordpress/element");
|
|
27
38
|
var import_compose = require("@wordpress/compose");
|
|
28
|
-
|
|
39
|
+
|
|
40
|
+
// packages/components/src/angle-picker-control/style.module.scss
|
|
41
|
+
var css = `/**
|
|
42
|
+
* SCSS Variables.
|
|
43
|
+
*
|
|
44
|
+
* Please use variables from this sheet to ensure consistency across the UI.
|
|
45
|
+
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
|
46
|
+
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
|
47
|
+
*/
|
|
48
|
+
/**
|
|
49
|
+
* Colors
|
|
50
|
+
*/
|
|
51
|
+
/**
|
|
52
|
+
* Fonts & basic variables.
|
|
53
|
+
*/
|
|
54
|
+
/**
|
|
55
|
+
* Typography
|
|
56
|
+
*/
|
|
57
|
+
/**
|
|
58
|
+
* Grid System.
|
|
59
|
+
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
|
60
|
+
*/
|
|
61
|
+
/**
|
|
62
|
+
* Radius scale.
|
|
63
|
+
*/
|
|
64
|
+
/**
|
|
65
|
+
* Elevation scale.
|
|
66
|
+
*/
|
|
67
|
+
/**
|
|
68
|
+
* Dimensions.
|
|
69
|
+
*/
|
|
70
|
+
/**
|
|
71
|
+
* Mobile specific styles
|
|
72
|
+
*/
|
|
73
|
+
/**
|
|
74
|
+
* Editor styles.
|
|
75
|
+
*/
|
|
76
|
+
/**
|
|
77
|
+
* Block & Editor UI.
|
|
78
|
+
*/
|
|
79
|
+
/**
|
|
80
|
+
* Block paddings.
|
|
81
|
+
*/
|
|
82
|
+
/**
|
|
83
|
+
* React Native specific.
|
|
84
|
+
* These variables do not appear to be used anywhere else.
|
|
85
|
+
*/
|
|
86
|
+
.style-module__circle-root__j1e41 {
|
|
87
|
+
border-radius: 50%;
|
|
88
|
+
border: 1px solid var(--wp-components-color-gray-600, #949494);
|
|
89
|
+
box-sizing: border-box;
|
|
90
|
+
cursor: grab;
|
|
91
|
+
height: 32px;
|
|
92
|
+
overflow: hidden;
|
|
93
|
+
width: 32px;
|
|
94
|
+
}
|
|
95
|
+
.style-module__circle-root__j1e41:active {
|
|
96
|
+
cursor: grabbing;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.style-module__circle-indicator-wrapper__sbrph {
|
|
100
|
+
box-sizing: border-box;
|
|
101
|
+
position: relative;
|
|
102
|
+
width: 100%;
|
|
103
|
+
height: 100%;
|
|
104
|
+
}
|
|
105
|
+
.style-module__circle-indicator-wrapper__sbrph:focus-visible {
|
|
106
|
+
outline: none;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.style-module__circle-indicator__bS-go {
|
|
110
|
+
background: var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));
|
|
111
|
+
border-radius: 50%;
|
|
112
|
+
box-sizing: border-box;
|
|
113
|
+
display: block;
|
|
114
|
+
left: 50%;
|
|
115
|
+
top: 4px;
|
|
116
|
+
transform: translateX(-50%);
|
|
117
|
+
position: absolute;
|
|
118
|
+
width: 6px;
|
|
119
|
+
height: 6px;
|
|
120
|
+
}`;
|
|
121
|
+
document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(css));
|
|
122
|
+
var style_module_default = {
|
|
123
|
+
"circle-root": "style-module__circle-root__j1e41",
|
|
124
|
+
"circle-indicator-wrapper": "style-module__circle-indicator-wrapper__sbrph",
|
|
125
|
+
"circle-indicator": "style-module__circle-indicator__bS-go"
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
// packages/components/src/angle-picker-control/angle-circle.tsx
|
|
29
129
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
30
130
|
function AngleCircle({
|
|
31
131
|
value,
|
|
32
132
|
onChange,
|
|
133
|
+
className,
|
|
33
134
|
...props
|
|
34
135
|
}) {
|
|
35
136
|
const angleCircleRef = (0, import_element.useRef)(null);
|
|
@@ -81,22 +182,25 @@ function AngleCircle({
|
|
|
81
182
|
previousCursorValueRef.current = void 0;
|
|
82
183
|
}
|
|
83
184
|
}, [isDragging]);
|
|
84
|
-
return
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
185
|
+
return (
|
|
186
|
+
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
187
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
188
|
+
ref: angleCircleRef,
|
|
189
|
+
onMouseDown: startDrag,
|
|
190
|
+
className: (0, import_clsx.default)("components-angle-picker-control__angle-circle", style_module_default["circle-root"], className),
|
|
191
|
+
...props,
|
|
192
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
193
|
+
style: value ? {
|
|
194
|
+
transform: `rotate(${value}deg)`
|
|
195
|
+
} : void 0,
|
|
196
|
+
className: (0, import_clsx.default)("components-angle-picker-control__angle-circle-indicator-wrapper", style_module_default["circle-indicator-wrapper"]),
|
|
197
|
+
tabIndex: -1,
|
|
198
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
199
|
+
className: (0, import_clsx.default)("components-angle-picker-control__angle-circle-indicator", style_module_default["circle-indicator"])
|
|
200
|
+
})
|
|
97
201
|
})
|
|
98
202
|
})
|
|
99
|
-
|
|
203
|
+
);
|
|
100
204
|
}
|
|
101
205
|
function getAngle(centerX, centerY, pointX, pointY) {
|
|
102
206
|
const y = pointY - centerY;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../src/angle-picker-control/angle-circle.tsx"],
|
|
4
|
-
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { useEffect, useRef } from '@wordpress/element';\nimport { __experimentalUseDragging as useDragging } from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": ["useDragging", "_jsx"]
|
|
3
|
+
"sources": ["../../src/angle-picker-control/angle-circle.tsx", "../../src/angle-picker-control/style.module.scss"],
|
|
4
|
+
"sourcesContent": ["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * WordPress dependencies\n */\nimport { useEffect, useRef } from '@wordpress/element';\nimport { __experimentalUseDragging as useDragging } from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport styles from './style.module.scss';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction AngleCircle({\n value,\n onChange,\n className,\n ...props\n}) {\n const angleCircleRef = useRef(null);\n const angleCircleCenterRef = useRef();\n const previousCursorValueRef = useRef();\n const setAngleCircleCenter = () => {\n if (angleCircleRef.current === null) {\n return;\n }\n const rect = angleCircleRef.current.getBoundingClientRect();\n angleCircleCenterRef.current = {\n x: rect.x + rect.width / 2,\n y: rect.y + rect.height / 2\n };\n };\n const changeAngleToPosition = event => {\n if (event === undefined) {\n return;\n }\n\n // Prevent (drag) mouse events from selecting and accidentally\n // triggering actions from other elements.\n event.preventDefault();\n // Input control needs to lose focus and by preventDefault above, it doesn't.\n event.target?.focus();\n if (angleCircleCenterRef.current !== undefined && onChange !== undefined) {\n const {\n x: centerX,\n y: centerY\n } = angleCircleCenterRef.current;\n onChange(getAngle(centerX, centerY, event.clientX, event.clientY));\n }\n };\n const {\n startDrag,\n isDragging\n } = useDragging({\n onDragStart: event => {\n setAngleCircleCenter();\n changeAngleToPosition(event);\n },\n onDragMove: changeAngleToPosition,\n onDragEnd: changeAngleToPosition\n });\n useEffect(() => {\n if (isDragging) {\n if (previousCursorValueRef.current === undefined) {\n previousCursorValueRef.current = document.body.style.cursor;\n }\n document.body.style.cursor = 'grabbing';\n } else {\n document.body.style.cursor = previousCursorValueRef.current || '';\n previousCursorValueRef.current = undefined;\n }\n }, [isDragging]);\n return (\n /*#__PURE__*/\n // eslint-disable-next-line jsx-a11y/no-static-element-interactions\n _jsx(\"div\", {\n ref: angleCircleRef,\n onMouseDown: startDrag,\n className: clsx('components-angle-picker-control__angle-circle', styles['circle-root'], className),\n ...props,\n children: /*#__PURE__*/_jsx(\"div\", {\n style: value ? {\n transform: `rotate(${value}deg)`\n } : undefined,\n className: clsx('components-angle-picker-control__angle-circle-indicator-wrapper', styles['circle-indicator-wrapper']),\n tabIndex: -1,\n children: /*#__PURE__*/_jsx(\"div\", {\n className: clsx('components-angle-picker-control__angle-circle-indicator', styles['circle-indicator'])\n })\n })\n })\n );\n}\nfunction getAngle(centerX, centerY, pointX, pointY) {\n const y = pointY - centerY;\n const x = pointX - centerX;\n const angleInRadians = Math.atan2(y, x);\n const angleInDeg = Math.round(angleInRadians * (180 / Math.PI)) + 90;\n if (angleInDeg < 0) {\n return 360 + angleInDeg;\n }\n return angleInDeg;\n}\nexport default AngleCircle;", "const css = `/**\n * SCSS Variables.\n *\n * Please use variables from this sheet to ensure consistency across the UI.\n * Don't add to this sheet unless you're pretty sure the value will be reused in many places.\n * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.\n */\n/**\n * Colors\n */\n/**\n * Fonts & basic variables.\n */\n/**\n * Typography\n */\n/**\n * Grid System.\n * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/\n */\n/**\n * Radius scale.\n */\n/**\n * Elevation scale.\n */\n/**\n * Dimensions.\n */\n/**\n * Mobile specific styles\n */\n/**\n * Editor styles.\n */\n/**\n * Block & Editor UI.\n */\n/**\n * Block paddings.\n */\n/**\n * React Native specific.\n * These variables do not appear to be used anywhere else.\n */\n.style-module__circle-root__j1e41 {\n border-radius: 50%;\n border: 1px solid var(--wp-components-color-gray-600, #949494);\n box-sizing: border-box;\n cursor: grab;\n height: 32px;\n overflow: hidden;\n width: 32px;\n}\n.style-module__circle-root__j1e41:active {\n cursor: grabbing;\n}\n\n.style-module__circle-indicator-wrapper__sbrph {\n box-sizing: border-box;\n position: relative;\n width: 100%;\n height: 100%;\n}\n.style-module__circle-indicator-wrapper__sbrph:focus-visible {\n outline: none;\n}\n\n.style-module__circle-indicator__bS-go {\n background: var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));\n border-radius: 50%;\n box-sizing: border-box;\n display: block;\n left: 50%;\n top: 4px;\n transform: translateX(-50%);\n position: absolute;\n width: 6px;\n height: 6px;\n}`;\ndocument.head\n .appendChild(document.createElement(\"style\"))\n .appendChild(document.createTextNode(css));\nexport {css};\nexport default {\n \"circle-root\": \"style-module__circle-root__j1e41\",\n \"circle-indicator-wrapper\": \"style-module__circle-indicator-wrapper__sbrph\",\n \"circle-indicator\": \"style-module__circle-indicator__bS-go\"\n};"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,kBAAiB;AAKjB,qBAAkC;AAClC,qBAAyD;;;ACTzD,IAAM,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAgFZ,SAAS,KACJ,YAAY,SAAS,cAAc,OAAO,CAAC,EAC3C,YAAY,SAAS,eAAe,GAAG,CAAC;AAE7C,IAAO,uBAAQ;AAAA,EACb,eAAe;AAAA,EACf,4BAA4B;AAAA,EAC5B,oBAAoB;AACtB;;;ADzEA,yBAA4B;AAC5B,SAAS,YAAY;AAAA,EACnB;AAAA,EACA;AAAA,EACA;AAAA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