@wordpress/components 30.8.1-next.16d95556a.0 → 30.9.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 +10 -0
- package/build/date-time/date/index.js +5 -5
- package/build/date-time/date/index.js.map +2 -2
- package/build/date-time/utils.js +3 -1
- package/build/date-time/utils.js.map +2 -2
- package/build/external-link/index.js +1 -1
- package/build/external-link/index.js.map +2 -2
- package/build-module/date-time/date/index.js +6 -6
- package/build-module/date-time/date/index.js.map +2 -2
- package/build-module/date-time/utils.js +3 -1
- package/build-module/date-time/utils.js.map +2 -2
- package/build-module/external-link/index.js +2 -2
- package/build-module/external-link/index.js.map +2 -2
- package/build-style/style-rtl.css +8 -3
- package/build-style/style.css +8 -3
- package/build-types/alignment-matrix-control/stories/index.story.d.ts.map +1 -1
- package/build-types/angle-picker-control/stories/index.story.d.ts.map +1 -1
- package/build-types/box-control/stories/index.story.d.ts.map +1 -1
- package/build-types/circular-option-picker/stories/index.story.d.ts.map +1 -1
- package/build-types/color-picker/stories/index.story.d.ts.map +1 -1
- package/build-types/combobox-control/stories/index.story.d.ts.map +1 -1
- package/build-types/confirm-dialog/stories/index.story.d.ts.map +1 -1
- package/build-types/custom-gradient-picker/stories/index.story.d.ts.map +1 -1
- package/build-types/custom-select-control/stories/index.story.d.ts.map +1 -1
- package/build-types/custom-select-control-v2/stories/index.story.d.ts.map +1 -1
- package/build-types/date-time/date/index.d.ts.map +1 -1
- package/build-types/date-time/date-time/test/index.d.ts +2 -0
- package/build-types/date-time/date-time/test/index.d.ts.map +1 -0
- package/build-types/date-time/test/utils.test.d.ts +2 -0
- package/build-types/date-time/test/utils.test.d.ts.map +1 -0
- package/build-types/date-time/utils.d.ts +3 -2
- package/build-types/date-time/utils.d.ts.map +1 -1
- package/build-types/draggable/stories/index.story.d.ts.map +1 -1
- package/build-types/drop-zone/stories/index.story.d.ts.map +1 -1
- package/build-types/dropdown/stories/index.story.d.ts.map +1 -1
- package/build-types/dropdown-menu/stories/index.story.d.ts.map +1 -1
- package/build-types/focal-point-picker/stories/index.story.d.ts.map +1 -1
- package/build-types/font-size-picker/stories/index.story.d.ts.map +1 -1
- package/build-types/gradient-picker/stories/index.story.d.ts.map +1 -1
- package/build-types/input-control/stories/index.story.d.ts.map +1 -1
- package/build-types/menu/stories/index.story.d.ts.map +1 -1
- 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.map +1 -1
- package/build-types/navigation/stories/index.story.d.ts.map +1 -1
- package/build-types/notice/stories/index.story.d.ts.map +1 -1
- package/build-types/palette-edit/stories/index.story.d.ts.map +1 -1
- package/build-types/query-controls/stories/index.story.d.ts.map +1 -1
- package/build-types/radio-group/stories/index.story.d.ts.map +1 -1
- package/build-types/range-control/stories/index.story.d.ts.map +1 -1
- package/build-types/sandbox/stories/index.story.d.ts.map +1 -1
- package/build-types/select-control/stories/index.story.d.ts.map +1 -1
- package/build-types/tab-panel/stories/index.story.d.ts.map +1 -1
- package/build-types/tabs/stories/index.story.d.ts.map +1 -1
- package/build-types/text/stories/index.story.d.ts.map +1 -1
- package/build-types/tools-panel/stories/index.story.d.ts.map +1 -1
- package/build-types/tree-grid/stories/index.story.d.ts.map +1 -1
- package/build-types/unit-control/stories/index.story.d.ts.map +1 -1
- package/package.json +24 -20
- package/src/alignment-matrix-control/stories/index.story.tsx +4 -1
- package/src/angle-picker-control/stories/index.story.tsx +4 -1
- package/src/box-control/stories/index.story.tsx +4 -1
- package/src/circular-option-picker/stories/index.story.tsx +0 -1
- package/src/color-picker/stories/index.story.tsx +4 -1
- package/src/combobox-control/stories/index.story.tsx +5 -1
- package/src/confirm-dialog/stories/index.story.tsx +5 -1
- package/src/custom-gradient-picker/stories/index.story.tsx +4 -1
- package/src/custom-select-control/stories/index.story.tsx +4 -1
- package/src/custom-select-control-v2/stories/index.story.tsx +0 -1
- package/src/date-time/date/index.tsx +6 -16
- package/src/date-time/date-time/test/index.tsx +206 -0
- package/src/date-time/test/utils.test.ts +128 -0
- package/src/date-time/utils.ts +12 -3
- package/src/draggable/stories/index.story.tsx +6 -1
- package/src/drop-zone/stories/index.story.tsx +6 -1
- package/src/dropdown/stories/index.story.tsx +5 -1
- package/src/dropdown-menu/stories/index.story.tsx +4 -1
- package/src/external-link/index.tsx +2 -2
- package/src/focal-point-picker/stories/index.story.tsx +7 -1
- package/src/font-size-picker/stories/index.story.tsx +4 -1
- package/src/gradient-picker/stories/index.story.tsx +5 -1
- package/src/guide/style.scss +0 -6
- package/src/input-control/stories/index.story.tsx +7 -1
- package/src/menu/stories/index.story.tsx +4 -1
- package/src/modal/style.scss +14 -0
- package/src/navigable-container/stories/navigable-menu.story.tsx +5 -1
- package/src/navigable-container/stories/tabbable-container.story.tsx +5 -1
- package/src/navigation/stories/index.story.tsx +4 -1
- package/src/notice/stories/index.story.tsx +5 -1
- package/src/palette-edit/stories/index.story.tsx +4 -1
- package/src/query-controls/stories/index.story.tsx +8 -1
- package/src/radio-group/stories/index.story.tsx +4 -1
- package/src/range-control/stories/index.story.tsx +8 -1
- package/src/sandbox/stories/index.story.tsx +4 -1
- package/src/select-control/stories/index.story.tsx +4 -1
- package/src/tab-panel/stories/index.story.tsx +0 -1
- package/src/tabs/stories/index.story.tsx +0 -1
- package/src/text/stories/index.story.tsx +0 -1
- package/src/tools-panel/stories/index.story.tsx +4 -1
- package/src/tree-grid/stories/index.story.tsx +6 -1
- package/src/unit-control/stories/index.story.tsx +7 -1
- package/tsconfig.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- /package/src/context/stories/{ComponentsProvider.stories.js → ComponentsProvider.stories.jsx} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/dropdown-menu/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/dropdown-menu/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD;;GAEG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAgBlC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,YAAY,CAqBpC,CAAC;AACF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAE,OAAO,YAAY,CAmBlD,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAE,OAAO,YAAY,CAmDvD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/focal-point-picker/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/focal-point-picker/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,kBAAkB,CAAC;AAOtD;;GAEG;AACH,OAAO,gBAAgB,MAAM,IAAI,CAAC;AAElC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,gBAAgB,CAiBxC,CAAC;AACF,eAAe,IAAI,CAAC;AAuBpB,eAAO,MAAM,OAAO;;;;;;;;;;;mVAAsB,CAAC;AAK3C,eAAO,MAAM,KAAK;;;;;;;;;;;mVAAsB,CAAC;AAMzC,eAAO,MAAM,KAAK;;;;;;;;;;;mVAAsB,CAAC;AAMzC,eAAO,MAAM,QAAQ;;;;;;;;;;;mVAAsB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/font-size-picker/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/font-size-picker/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAQtD;;GAEG;AACH,OAAO,cAAc,MAAM,KAAK,CAAC;AAEjC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,cAAc,CAiBtC,CAAC;AACF,eAAe,IAAI,CAAC;AAsCpB,eAAO,MAAM,OAAO,EAAE,OAAO,CAAE,OAAO,cAAc,CACjB,CAAC;AAyBpC,eAAO,MAAM,UAAU,EAAE,OAAO,CAAE,OAAO,cAAc,CACpB,CAAC;AAQpC;;;GAGG;AACH,eAAO,MAAM,uBAAuB,EAAE,OAAO,CAAE,OAAO,cAAc,CACjC,CAAC;AAMpC;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,OAAO,CAAE,OAAO,cAAc,CAC3B,CAAC;AAsCpC;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,OAAO,CAAE,OAAO,cAAc,CACf,CAAC;AAUxC;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,OAAO,CAAE,OAAO,cAAc,CAC1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/gradient-picker/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/gradient-picker/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAQtD;;GAEG;AACH,OAAO,cAAc,MAAM,IAAI,CAAC;AAEhC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,cAAc,CActC,CAAC;AACF,eAAe,IAAI,CAAC;AAuEpB,eAAO,MAAM,OAAO,sIAAsB,CAAC;AAK3C,eAAO,MAAM,uBAAuB,sIAAsB,CAAC;AAM3D,eAAO,MAAM,eAAe,sIAAsB,CAAC;AASnD,eAAO,MAAM,YAAY,EAAE,OAAO,CAAE,OAAO,cAAc,CAYxD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/input-control/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/input-control/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAQtD;;GAEG;AACH,OAAO,YAAY,MAAM,IAAI,CAAC;AAK9B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,YAAY,CAyBpC,CAAC;AACF,eAAe,IAAI,CAAC;AAMpB,eAAO,MAAM,OAAO,6KAAsB,CAAC;AAO3C,eAAO,MAAM,YAAY,6KAAsB,CAAC;AAMhD;;;;GAIG;AACH,eAAO,MAAM,UAAU,6KAAsB,CAAC;AAM9C;;;;GAIG;AACH,eAAO,MAAM,UAAU,6KAAsB,CAAC;AAM9C;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,6KAAsB,CAAC;AAerD,eAAO,MAAM,aAAa,6KAAsB,CAAC;AAMjD,eAAO,MAAM,aAAa,6KAAsB,CAAC;AAOjD,eAAO,MAAM,YAAY,EAAE,OAAO,CAAE,OAAO,YAAY,CAkBtD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/menu/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/menu/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAcvD,OAAO,EAAE,IAAI,EAAE,MAAM,IAAI,CAAC;AAQ1B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,IAAI,CA4C5B,CAAC;AACF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAE,OAAO,IAAI,CA2D1C,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAE,OAAO,IAAI,CAoD9C,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAE,OAAO,IAAI,CAoJjD,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAE,OAAO,IAAI,CAsE7C,CAAC;AAQF,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAE,OAAO,IAAI,CAkE7C,CAAC;AAkDF,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAE,OAAO,IAAI,CA4C/C,CAAC;AAQF,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAE,OAAO,IAAI,CAsCjD,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAE,OAAO,IAAI,CA0E9C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigable-menu.story.d.ts","sourceRoot":"","sources":["../../../src/navigable-container/stories/navigable-menu.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"navigable-menu.story.d.ts","sourceRoot":"","sources":["../../../src/navigable-container/stories/navigable-menu.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAGtD;;GAEG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AAEnC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,aAAa,CAiBrC,CAAC;AACF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,EAAE,OAAO,CAAE,OAAO,aAAa,CA2BlD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabbable-container.story.d.ts","sourceRoot":"","sources":["../../../src/navigable-container/stories/tabbable-container.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"tabbable-container.story.d.ts","sourceRoot":"","sources":["../../../src/navigable-container/stories/tabbable-container.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAGtD;;GAEG;AACH,OAAO,EAAE,iBAAiB,EAAE,MAAM,IAAI,CAAC;AAEvC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,iBAAiB,CAiBzC,CAAC;AACF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,EAAE,OAAO,CAAE,OAAO,iBAAiB,CAsBtD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/navigation/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/navigation/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAG7C;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAWhC,OAAO,aAAa,CAAC;AAErB;;;;GAIG;AACH,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,UAAU,CA6BlC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,QAAQ,yHAA0B,CAAC;AAChD,eAAO,MAAM,eAAe,yHAAkC,CAAC;AAC/D,eAAO,MAAM,MAAM,yHAAwB,CAAC;AAC5C,eAAO,MAAM,MAAM,yHAAyB,CAAC;AAC7C,eAAO,MAAM,YAAY,yHAA+B,CAAC;AACzD,eAAO,MAAM,WAAW,yHAA8B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/notice/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/notice/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAQtD;;GAEG;AACH,OAAO,MAAM,MAAM,IAAI,CAAC;AAExB,OAAO,UAAU,MAAM,SAAS,CAAC;AAGjC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,MAAM,CAc9B,CAAC;AACF,eAAe,IAAI,CAAC;AAMpB,eAAO,MAAM,OAAO,qHAAsB,CAAC;AAK3C,eAAO,MAAM,uBAAuB,qHAAsB,CAAC;AAO3D,eAAO,MAAM,eAAe,qHAAsB,CAAC;AAiBnD,eAAO,MAAM,WAAW,qHAAsB,CAAC;AAqB/C,eAAO,MAAM,sBAAsB,EAAE,OAAO,CAAE,OAAO,UAAU,CAmC9D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/palette-edit/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/palette-edit/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,kBAAkB,CAAC;AAQtD;;GAEG;AACH,OAAO,WAAW,MAAM,IAAI,CAAC;AAG7B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,WAAW,CAUnC,CAAC;AACF,eAAe,IAAI,CAAC;AA4BpB,eAAO,MAAM,OAAO,0HAAsB,CAAC;AAe3C,eAAO,MAAM,SAAS,0HAAsB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/query-controls/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/query-controls/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAQtD;;GAEG;AACH,OAAO,aAAa,MAAM,IAAI,CAAC;AAO/B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,aAAa,CAsBrC,CAAC;AACF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,EAAE,OAAO,CAAE,OAAO,aAAa,CAuElD,CAAC;AA4EF,eAAO,MAAM,oBAAoB,4HAAoC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/radio-group/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/radio-group/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAGtD;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAQhC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,UAAU,CAwBlC,CAAC;AACF,eAAe,IAAI,CAAC;AAMpB,eAAO,MAAM,OAAO,EAAE,OAAO,CAAE,OAAO,UAAU,CAAwB,CAAC;AAoBzE,eAAO,MAAM,QAAQ,EAAE,OAAO,CAAE,OAAO,UAAU,CAAwB,CAAC;AA2B1E,eAAO,MAAM,UAAU,EAAE,OAAO,CAAE,OAAO,UAAU,CAElD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/range-control/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/range-control/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAStD;;GAEG;AACH,OAAO,YAAY,MAAM,IAAI,CAAC;AAI9B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,YAAY,CAyCpC,CAAC;AACF,eAAe,IAAI,CAAC;AAiBpB,eAAO,MAAM,OAAO,EAAE,OAAO,CAAE,OAAO,YAAY,CAAwB,CAAC;AAW3E;;;;GAIG;AACH,eAAO,MAAM,WAAW,EAAE,OAAO,CAAE,OAAO,YAAY,CAoBrD,CAAC;AA0DF;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,EAAE,OAAO,CAAE,OAAO,YAAY,CAC1C,CAAC;AAYzB;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,EAAE,OAAO,CAAE,OAAO,YAAY,CAC1C,CAAC;AAezB;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,EAAE,OAAO,CAAE,OAAO,YAAY,CAC9C,CAAC;AAWzB;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,EAAE,OAAO,CAAE,OAAO,YAAY,CAC5C,CAAC;AAWzB;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,EAAE,OAAO,CAAE,OAAO,YAAY,CACtC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/sandbox/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/sandbox/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,kBAAkB,CAAC;AAGtD;;GAEG;AACH,OAAO,OAAO,MAAM,IAAI,CAAC;AAEzB,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,OAAO,CAc/B,CAAC;AACF,eAAe,IAAI,CAAC;AAIpB,eAAO,MAAM,OAAO,sHAAsB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/select-control/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/select-control/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,kBAAkB,CAAC;AAQtD;;GAEG;AACH,OAAO,aAAa,MAAM,KAAK,CAAC;AAGhC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,aAAa,CAkBrC,CAAC;AACF,eAAe,IAAI,CAAC;AAgCpB,eAAO,MAAM,OAAO;;EAAoC,CAAC;AAazD,eAAO,MAAM,oBAAoB;;EAAoC,CAAC;AAMtE;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;EAAoC,CAAC;AAuBpE;;;GAGG;AACH,eAAO,MAAM,UAAU;;EAAoC,CAAC;AAM5D,eAAO,MAAM,OAAO;;EAAoC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/tab-panel/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,kBAAkB,CAAC;AAQtD;;GAEG;AACH,OAAO,QAAQ,MAAM,IAAI,CAAC;AAE1B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,QAAQ,
|
|
1
|
+
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/tab-panel/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,kBAAkB,CAAC;AAQtD;;GAEG;AACH,OAAO,QAAQ,MAAM,IAAI,CAAC;AAE1B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,QAAQ,CAWhC,CAAC;AACF,eAAe,IAAI,CAAC;AAMpB,eAAO,MAAM,OAAO,kUAAsB,CAAC;AAe3C,eAAO,MAAM,WAAW,kUAAsB,CAAC;AAwB/C,eAAO,MAAM,uBAAuB,kUAA8B,CAAC;AAsBnE,eAAO,MAAM,gBAAgB,kUAAsB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/tabs/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAStD;;GAEG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,IAAI,CAAC;AAM1B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,IAAI,
|
|
1
|
+
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/tabs/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAStD;;GAEG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,IAAI,CAAC;AAM1B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,IAAI,CAuB5B,CAAC;AACF,eAAe,IAAI,CAAC;AA+BpB,eAAO,MAAM,OAAO,mHAAsB,CAAC;AAE3C,eAAO,MAAM,yBAAyB,EAAE,OAAO,CAAE,OAAO,IAAI,CAqG3D,CAAC;AAiBF,eAAO,MAAM,QAAQ,mHAA8B,CAAC;AAwBpD,eAAO,MAAM,WAAW,mHAAiC,CAAC;AA0C1D,eAAO,MAAM,uBAAuB,mHAEnC,CAAC;AAEF,eAAO,MAAM,gBAAgB,mHAAsB,CAAC;AA0CpD,eAAO,MAAM,aAAa,mHAAmC,CAAC;AA0D9D,eAAO,MAAM,oBAAoB,mHAAiC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/text/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,kBAAkB,CAAC;AAEtD;;GAEG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,IAAI,
|
|
1
|
+
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/text/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,kBAAkB,CAAC;AAEtD;;GAEG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,IAAI,CAuB5B,CAAC;AACF,eAAe,IAAI,CAAC;AAMpB,eAAO,MAAM,OAAO;;EAAsB,CAAC;AAK3C,eAAO,MAAM,QAAQ;;EAAsB,CAAC;AAmB5C,eAAO,MAAM,SAAS;;EAAsB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/tools-panel/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/tools-panel/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAiBtD;;GAEG;AACH,OAAO,EAAE,UAAU,EAAkB,MAAM,IAAI,CAAC;AAKhD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,UAAU,CAqBlC,CAAC;AACF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,EAAE,OAAO,CAAE,OAAO,UAAU,CA2F/C,CAAC;AAKF,eAAO,MAAM,sBAAsB,EAAE,OAAO,CAAE,OAAO,UAAU,CAmD9D,CAAC;AAMF,eAAO,MAAM,yBAAyB,EAAE,OAAO,CAAE,OAAO,UAAU,CAkGjE,CAAC;AASF,eAAO,MAAM,iBAAiB,EAAE,OAAO,CAAE,OAAO,UAAU,CA6FzD,CAAC;AAOF,eAAO,MAAM,6BAA6B,EAAE,OAAO,CAAE,OAAO,UAAU,CA6FrE,CAAC;AAOF,eAAO,MAAM,gCAAgC,EAAE,OAAO,CACrD,OAAO,UAAU,CAuGjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/tree-grid/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/tree-grid/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,kBAAkB,CAAC;AAQtD;;GAEG;AACH,OAAO,QAAuC,MAAM,IAAI,CAAC;AAIzD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,QAAQ,CAkBhC,CAAC;AACF,eAAe,IAAI,CAAC;AAiHpB,eAAO,MAAM,OAAO,wVAAsB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/unit-control/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/unit-control/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAQtD;;GAEG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,KAAK,CAAC;AAGlC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,WAAW,CAyBnC,CAAC;AACF,eAAe,IAAI,CAAC;AAoBpB,eAAO,MAAM,OAAO,EAAE,OAAO,CAAE,OAAO,WAAW,CAEhD,CAAC;AAMF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,EAAE,OAAO,CAAE,OAAO,WAAW,CACjC,CAAC;AAM5B;;;GAGG;AACH,eAAO,MAAM,sBAAsB,EAAE,OAAO,CAAE,OAAO,WAAW,CACrC,CAAC;AAS5B;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,OAAO,CAAE,OAAO,WAAW,CAC7B,CAAC;AAM5B;;;;GAIG;AACH,eAAO,MAAM,eAAe,EAAE,OAAO,CAAE,OAAO,WAAW,CAgBxD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/components",
|
|
3
|
-
"version": "30.
|
|
3
|
+
"version": "30.9.0",
|
|
4
4
|
"description": "UI components for WordPress.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
],
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@ariakit/react": "^0.4.15",
|
|
47
|
+
"@date-fns/utc": "^2.1.1",
|
|
47
48
|
"@emotion/cache": "^11.7.1",
|
|
48
49
|
"@emotion/css": "^11.7.1",
|
|
49
50
|
"@emotion/react": "^11.7.1",
|
|
@@ -54,24 +55,24 @@
|
|
|
54
55
|
"@types/gradient-parser": "1.1.0",
|
|
55
56
|
"@types/highlight-words-core": "1.2.1",
|
|
56
57
|
"@use-gesture/react": "^10.3.1",
|
|
57
|
-
"@wordpress/a11y": "^4.
|
|
58
|
-
"@wordpress/base-styles": "^6.
|
|
59
|
-
"@wordpress/compose": "^7.
|
|
60
|
-
"@wordpress/date": "^5.
|
|
61
|
-
"@wordpress/deprecated": "^4.
|
|
62
|
-
"@wordpress/dom": "^4.
|
|
63
|
-
"@wordpress/element": "^6.
|
|
64
|
-
"@wordpress/escape-html": "^3.
|
|
65
|
-
"@wordpress/hooks": "^4.
|
|
66
|
-
"@wordpress/html-entities": "^4.
|
|
67
|
-
"@wordpress/i18n": "^6.
|
|
68
|
-
"@wordpress/icons": "^11.
|
|
69
|
-
"@wordpress/is-shallow-equal": "^5.
|
|
70
|
-
"@wordpress/keycodes": "^4.
|
|
71
|
-
"@wordpress/primitives": "^4.
|
|
72
|
-
"@wordpress/private-apis": "^1.
|
|
73
|
-
"@wordpress/rich-text": "^7.
|
|
74
|
-
"@wordpress/warning": "^3.
|
|
58
|
+
"@wordpress/a11y": "^4.36.0",
|
|
59
|
+
"@wordpress/base-styles": "^6.12.0",
|
|
60
|
+
"@wordpress/compose": "^7.36.0",
|
|
61
|
+
"@wordpress/date": "^5.36.0",
|
|
62
|
+
"@wordpress/deprecated": "^4.36.0",
|
|
63
|
+
"@wordpress/dom": "^4.36.0",
|
|
64
|
+
"@wordpress/element": "^6.36.0",
|
|
65
|
+
"@wordpress/escape-html": "^3.36.0",
|
|
66
|
+
"@wordpress/hooks": "^4.36.0",
|
|
67
|
+
"@wordpress/html-entities": "^4.36.0",
|
|
68
|
+
"@wordpress/i18n": "^6.9.0",
|
|
69
|
+
"@wordpress/icons": "^11.3.0",
|
|
70
|
+
"@wordpress/is-shallow-equal": "^5.36.0",
|
|
71
|
+
"@wordpress/keycodes": "^4.36.0",
|
|
72
|
+
"@wordpress/primitives": "^4.36.0",
|
|
73
|
+
"@wordpress/private-apis": "^1.36.0",
|
|
74
|
+
"@wordpress/rich-text": "^7.36.0",
|
|
75
|
+
"@wordpress/warning": "^3.36.0",
|
|
75
76
|
"change-case": "^4.1.2",
|
|
76
77
|
"clsx": "^2.1.1",
|
|
77
78
|
"colord": "^2.7.0",
|
|
@@ -90,6 +91,9 @@
|
|
|
90
91
|
"remove-accents": "^0.5.0",
|
|
91
92
|
"uuid": "^9.0.1"
|
|
92
93
|
},
|
|
94
|
+
"devDependencies": {
|
|
95
|
+
"timezone-mock": "^1.3.6"
|
|
96
|
+
},
|
|
93
97
|
"peerDependencies": {
|
|
94
98
|
"react": "^18.0.0",
|
|
95
99
|
"react-dom": "^18.0.0"
|
|
@@ -97,5 +101,5 @@
|
|
|
97
101
|
"publishConfig": {
|
|
98
102
|
"access": "public"
|
|
99
103
|
},
|
|
100
|
-
"gitHead": "
|
|
104
|
+
"gitHead": "b35cf1a2dce04665e99fd6b9c2891c0b336361b9"
|
|
101
105
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* External dependencies
|
|
3
3
|
*/
|
|
4
4
|
import type { Meta, StoryFn } from '@storybook/react';
|
|
5
|
+
import { fn } from '@storybook/test';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* WordPress dependencies
|
|
@@ -27,8 +28,10 @@ const meta: Meta< typeof AlignmentMatrixControl > = {
|
|
|
27
28
|
onChange: { control: false },
|
|
28
29
|
value: { control: false },
|
|
29
30
|
},
|
|
31
|
+
args: {
|
|
32
|
+
onChange: fn(),
|
|
33
|
+
},
|
|
30
34
|
parameters: {
|
|
31
|
-
actions: { argTypesRegex: '^on.*' },
|
|
32
35
|
controls: { expanded: true },
|
|
33
36
|
docs: { canvas: { sourceState: 'shown' } },
|
|
34
37
|
},
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* External dependencies
|
|
3
3
|
*/
|
|
4
4
|
import type { Meta, StoryFn } from '@storybook/react';
|
|
5
|
+
import { fn } from '@storybook/test';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* WordPress dependencies
|
|
@@ -20,8 +21,10 @@ const meta: Meta< typeof AnglePickerControl > = {
|
|
|
20
21
|
as: { control: false },
|
|
21
22
|
value: { control: false },
|
|
22
23
|
},
|
|
24
|
+
args: {
|
|
25
|
+
onChange: fn(),
|
|
26
|
+
},
|
|
23
27
|
parameters: {
|
|
24
|
-
actions: { argTypesRegex: '^on.*' },
|
|
25
28
|
controls: {
|
|
26
29
|
expanded: true,
|
|
27
30
|
},
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* External dependencies
|
|
3
3
|
*/
|
|
4
4
|
import type { Meta, StoryFn } from '@storybook/react';
|
|
5
|
+
import { fn } from '@storybook/test';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* WordPress dependencies
|
|
@@ -19,8 +20,10 @@ const meta: Meta< typeof BoxControl > = {
|
|
|
19
20
|
argTypes: {
|
|
20
21
|
values: { control: false },
|
|
21
22
|
},
|
|
23
|
+
args: {
|
|
24
|
+
onChange: fn(),
|
|
25
|
+
},
|
|
22
26
|
parameters: {
|
|
23
|
-
actions: { argTypesRegex: '^on.*' },
|
|
24
27
|
controls: { expanded: true },
|
|
25
28
|
docs: { canvas: { sourceState: 'shown' } },
|
|
26
29
|
},
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* External dependencies
|
|
3
3
|
*/
|
|
4
4
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
5
|
+
import { fn } from '@storybook/test';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* Internal dependencies
|
|
@@ -16,8 +17,10 @@ const meta: Meta< typeof ColorPicker > = {
|
|
|
16
17
|
as: { control: false },
|
|
17
18
|
color: { control: false },
|
|
18
19
|
},
|
|
20
|
+
args: {
|
|
21
|
+
onChange: fn(),
|
|
22
|
+
},
|
|
19
23
|
parameters: {
|
|
20
|
-
actions: { argTypesRegex: '^on.*' },
|
|
21
24
|
controls: {
|
|
22
25
|
expanded: true,
|
|
23
26
|
},
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* External dependencies
|
|
3
3
|
*/
|
|
4
4
|
import type { Meta, StoryFn } from '@storybook/react';
|
|
5
|
+
import { fn } from '@storybook/test';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* WordPress dependencies
|
|
@@ -40,8 +41,11 @@ const meta: Meta< typeof ComboboxControl > = {
|
|
|
40
41
|
argTypes: {
|
|
41
42
|
value: { control: false },
|
|
42
43
|
},
|
|
44
|
+
args: {
|
|
45
|
+
onChange: fn(),
|
|
46
|
+
onFilterValueChange: fn(),
|
|
47
|
+
},
|
|
43
48
|
parameters: {
|
|
44
|
-
actions: { argTypesRegex: '^on.*' },
|
|
45
49
|
controls: { expanded: true },
|
|
46
50
|
docs: { canvas: { sourceState: 'shown' } },
|
|
47
51
|
},
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* External dependencies
|
|
3
3
|
*/
|
|
4
4
|
import type { Meta, StoryFn } from '@storybook/react';
|
|
5
|
+
import { fn } from '@storybook/test';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* WordPress dependencies
|
|
@@ -24,8 +25,11 @@ const meta: Meta< typeof ConfirmDialog > = {
|
|
|
24
25
|
},
|
|
25
26
|
},
|
|
26
27
|
tags: [ 'status-experimental' ],
|
|
28
|
+
args: {
|
|
29
|
+
onCancel: fn(),
|
|
30
|
+
onConfirm: fn(),
|
|
31
|
+
},
|
|
27
32
|
parameters: {
|
|
28
|
-
actions: { argTypesRegex: '^on.*' },
|
|
29
33
|
controls: {
|
|
30
34
|
expanded: true,
|
|
31
35
|
},
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* External dependencies
|
|
3
3
|
*/
|
|
4
4
|
import type { Meta, StoryFn } from '@storybook/react';
|
|
5
|
+
import { fn } from '@storybook/test';
|
|
5
6
|
/**
|
|
6
7
|
* WordPress dependencies
|
|
7
8
|
*/
|
|
@@ -16,8 +17,10 @@ const meta: Meta< typeof CustomGradientPicker > = {
|
|
|
16
17
|
title: 'Components/Selection & Input/Color/CustomGradientPicker',
|
|
17
18
|
id: 'components-customgradientpicker',
|
|
18
19
|
component: CustomGradientPicker,
|
|
20
|
+
args: {
|
|
21
|
+
onChange: fn(),
|
|
22
|
+
},
|
|
19
23
|
parameters: {
|
|
20
|
-
actions: { argTypesRegex: '^on.*' },
|
|
21
24
|
controls: { expanded: true },
|
|
22
25
|
docs: { canvas: { sourceState: 'shown' } },
|
|
23
26
|
},
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* External dependencies
|
|
3
3
|
*/
|
|
4
4
|
import type { Meta, StoryFn } from '@storybook/react';
|
|
5
|
+
import { fn } from '@storybook/test';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* WordPress dependencies
|
|
@@ -21,8 +22,10 @@ const meta: Meta< typeof CustomSelectControl > = {
|
|
|
21
22
|
onChange: { control: false },
|
|
22
23
|
value: { control: false },
|
|
23
24
|
},
|
|
25
|
+
args: {
|
|
26
|
+
onChange: fn(),
|
|
27
|
+
},
|
|
24
28
|
parameters: {
|
|
25
|
-
actions: { argTypesRegex: '^on.*' },
|
|
26
29
|
controls: { expanded: true },
|
|
27
30
|
docs: {
|
|
28
31
|
source: { excludeDecorators: true },
|
|
@@ -22,7 +22,7 @@ import type { KeyboardEventHandler } from 'react';
|
|
|
22
22
|
*/
|
|
23
23
|
import { __, _n, sprintf, isRTL } from '@wordpress/i18n';
|
|
24
24
|
import { arrowLeft, arrowRight } from '@wordpress/icons';
|
|
25
|
-
import {
|
|
25
|
+
import { getSettings, gmdateI18n } from '@wordpress/date';
|
|
26
26
|
import { useState, useRef, useEffect } from '@wordpress/element';
|
|
27
27
|
|
|
28
28
|
/**
|
|
@@ -129,14 +129,8 @@ export function DatePicker( {
|
|
|
129
129
|
size="compact"
|
|
130
130
|
/>
|
|
131
131
|
<NavigatorHeading level={ 3 }>
|
|
132
|
-
<strong>
|
|
133
|
-
|
|
134
|
-
'F',
|
|
135
|
-
viewing,
|
|
136
|
-
-viewing.getTimezoneOffset()
|
|
137
|
-
) }
|
|
138
|
-
</strong>{ ' ' }
|
|
139
|
-
{ dateI18n( 'Y', viewing, -viewing.getTimezoneOffset() ) }
|
|
132
|
+
<strong>{ gmdateI18n( 'F', viewing ) }</strong>{ ' ' }
|
|
133
|
+
{ gmdateI18n( 'Y', viewing ) }
|
|
140
134
|
</NavigatorHeading>
|
|
141
135
|
<ViewNextMonthButton
|
|
142
136
|
icon={ isRTL() ? arrowLeft : arrowRight }
|
|
@@ -161,7 +155,7 @@ export function DatePicker( {
|
|
|
161
155
|
>
|
|
162
156
|
{ calendar[ 0 ][ 0 ].map( ( day ) => (
|
|
163
157
|
<DayOfWeek key={ day.toString() }>
|
|
164
|
-
{
|
|
158
|
+
{ gmdateI18n( 'D', day ) }
|
|
165
159
|
</DayOfWeek>
|
|
166
160
|
) ) }
|
|
167
161
|
{ calendar[ 0 ].map( ( week ) =>
|
|
@@ -320,18 +314,14 @@ function Day( {
|
|
|
320
314
|
onClick={ onClick }
|
|
321
315
|
onKeyDown={ onKeyDown }
|
|
322
316
|
>
|
|
323
|
-
{
|
|
317
|
+
{ gmdateI18n( 'j', day ) }
|
|
324
318
|
</DayButton>
|
|
325
319
|
);
|
|
326
320
|
}
|
|
327
321
|
|
|
328
322
|
function getDayLabel( date: Date, isSelected: boolean, numEvents: number ) {
|
|
329
323
|
const { formats } = getSettings();
|
|
330
|
-
const localizedDate =
|
|
331
|
-
formats.date,
|
|
332
|
-
date,
|
|
333
|
-
-date.getTimezoneOffset()
|
|
334
|
-
);
|
|
324
|
+
const localizedDate = gmdateI18n( formats.date, date );
|
|
335
325
|
if ( isSelected && numEvents > 0 ) {
|
|
336
326
|
return sprintf(
|
|
337
327
|
// translators: 1: The calendar date. 2: Number of events on the calendar date.
|