@wordpress/components 23.6.0 → 23.7.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 +32 -4
- package/build/angle-picker-control/angle-circle.js +1 -4
- package/build/angle-picker-control/angle-circle.js.map +1 -1
- package/build/angle-picker-control/index.js +10 -22
- package/build/angle-picker-control/index.js.map +1 -1
- package/build/angle-picker-control/styles/angle-picker-control-styles.js +24 -15
- package/build/angle-picker-control/styles/angle-picker-control-styles.js.map +1 -1
- package/build/animate/index.js +27 -19
- package/build/animate/index.js.map +1 -1
- package/build/animate/types.js.map +1 -0
- package/build/box-control/axial-input-controls.js.map +1 -1
- package/build/color-picker/color-input.js +0 -4
- package/build/color-picker/color-input.js.map +1 -1
- package/build/color-picker/component.js +5 -4
- package/build/color-picker/component.js.map +1 -1
- package/build/color-picker/hex-input.js.map +1 -1
- package/build/color-picker/hsl-input.js.map +1 -1
- package/build/color-picker/input-with-slider.js.map +1 -1
- package/build/color-picker/legacy-adapter.js.map +1 -1
- package/build/color-picker/picker.js.map +1 -1
- package/build/color-picker/rgb-input.js.map +1 -1
- package/build/color-picker/use-deprecated-props.js.map +1 -1
- package/build/custom-gradient-picker/constants.js +1 -1
- package/build/custom-gradient-picker/constants.js.map +1 -1
- package/build/custom-gradient-picker/gradient-bar/constants.js.map +1 -1
- package/build/custom-gradient-picker/gradient-bar/control-points.js +9 -5
- package/build/custom-gradient-picker/gradient-bar/control-points.js.map +1 -1
- package/build/custom-gradient-picker/gradient-bar/index.js +14 -9
- package/build/custom-gradient-picker/gradient-bar/index.js.map +1 -1
- package/build/custom-gradient-picker/gradient-bar/utils.js +34 -54
- package/build/custom-gradient-picker/gradient-bar/utils.js.map +1 -1
- package/build/custom-gradient-picker/index.js +45 -16
- package/build/custom-gradient-picker/index.js.map +1 -1
- package/build/custom-gradient-picker/serializer.js +14 -4
- package/build/custom-gradient-picker/serializer.js.map +1 -1
- package/build/custom-gradient-picker/styles/custom-gradient-picker-styles.js +6 -6
- package/build/custom-gradient-picker/styles/custom-gradient-picker-styles.js.map +1 -1
- package/build/custom-gradient-picker/types.js +6 -0
- package/build/custom-gradient-picker/types.js.map +1 -0
- package/build/custom-gradient-picker/utils.js +17 -12
- package/build/custom-gradient-picker/utils.js.map +1 -1
- package/build/{color-list-picker → duotone-picker/color-list-picker}/index.js +5 -5
- package/build/duotone-picker/color-list-picker/index.js.map +1 -0
- package/build/duotone-picker/color-list-picker/types.js +6 -0
- package/build/duotone-picker/color-list-picker/types.js.map +1 -0
- package/build/duotone-picker/custom-duotone-bar.js.map +1 -1
- package/build/duotone-picker/duotone-picker.js +39 -2
- package/build/duotone-picker/duotone-picker.js.map +1 -1
- package/build/duotone-picker/duotone-swatch.js.map +1 -1
- package/build/duotone-picker/index.js.map +1 -1
- package/build/duotone-picker/types.js +6 -0
- package/build/duotone-picker/types.js.map +1 -0
- package/build/duotone-picker/utils.js +13 -11
- package/build/duotone-picker/utils.js.map +1 -1
- package/build/form-token-field/index.js +9 -3
- package/build/form-token-field/index.js.map +1 -1
- package/build/gradient-picker/index.js +61 -9
- package/build/gradient-picker/index.js.map +1 -1
- package/build/gradient-picker/types.js +6 -0
- package/build/gradient-picker/types.js.map +1 -0
- package/build/palette-edit/index.js +1 -2
- package/build/palette-edit/index.js.map +1 -1
- package/build/resizable-box/resize-tooltip/utils.js.map +1 -1
- package/build/sandbox/index.native.js +80 -67
- package/build/sandbox/index.native.js.map +1 -1
- package/build/tab-panel/index.js +1 -1
- package/build/tab-panel/index.js.map +1 -1
- package/build/tools-panel/tools-panel/hook.js +45 -6
- package/build/tools-panel/tools-panel/hook.js.map +1 -1
- package/build/utils/input/input-control.js +1 -1
- package/build/utils/input/input-control.js.map +1 -1
- package/build-module/angle-picker-control/angle-circle.js +1 -4
- package/build-module/angle-picker-control/angle-circle.js.map +1 -1
- package/build-module/angle-picker-control/index.js +12 -21
- package/build-module/angle-picker-control/index.js.map +1 -1
- package/build-module/angle-picker-control/styles/angle-picker-control-styles.js +20 -13
- package/build-module/angle-picker-control/styles/angle-picker-control-styles.js.map +1 -1
- package/build-module/animate/index.js +25 -17
- package/build-module/animate/index.js.map +1 -1
- package/build-module/box-control/axial-input-controls.js.map +1 -1
- package/build-module/color-picker/color-input.js +0 -4
- package/build-module/color-picker/color-input.js.map +1 -1
- package/build-module/color-picker/component.js +3 -3
- package/build-module/color-picker/component.js.map +1 -1
- package/build-module/color-picker/hex-input.js.map +1 -1
- package/build-module/color-picker/hsl-input.js.map +1 -1
- package/build-module/color-picker/input-with-slider.js.map +1 -1
- package/build-module/color-picker/legacy-adapter.js.map +1 -1
- package/build-module/color-picker/picker.js +4 -0
- package/build-module/color-picker/picker.js.map +1 -1
- package/build-module/color-picker/rgb-input.js.map +1 -1
- package/build-module/color-picker/use-deprecated-props.js.map +1 -1
- package/build-module/custom-gradient-picker/constants.js +1 -1
- package/build-module/custom-gradient-picker/constants.js.map +1 -1
- package/build-module/custom-gradient-picker/gradient-bar/constants.js.map +1 -1
- package/build-module/custom-gradient-picker/gradient-bar/control-points.js +9 -4
- package/build-module/custom-gradient-picker/gradient-bar/control-points.js.map +1 -1
- package/build-module/custom-gradient-picker/gradient-bar/index.js +14 -8
- package/build-module/custom-gradient-picker/gradient-bar/index.js.map +1 -1
- package/build-module/custom-gradient-picker/gradient-bar/utils.js +34 -54
- package/build-module/custom-gradient-picker/gradient-bar/utils.js.map +1 -1
- package/build-module/custom-gradient-picker/index.js +44 -17
- package/build-module/custom-gradient-picker/index.js.map +1 -1
- package/build-module/custom-gradient-picker/serializer.js +14 -4
- package/build-module/custom-gradient-picker/serializer.js.map +1 -1
- package/build-module/custom-gradient-picker/styles/custom-gradient-picker-styles.js +6 -6
- package/build-module/custom-gradient-picker/styles/custom-gradient-picker-styles.js.map +1 -1
- package/build-module/custom-gradient-picker/types.js +2 -0
- package/build-module/custom-gradient-picker/utils.js +17 -12
- package/build-module/custom-gradient-picker/utils.js.map +1 -1
- package/build-module/{color-list-picker → duotone-picker/color-list-picker}/index.js +5 -5
- package/build-module/duotone-picker/color-list-picker/index.js.map +1 -0
- package/build-module/duotone-picker/color-list-picker/types.js +2 -0
- package/build-module/duotone-picker/color-list-picker/types.js.map +1 -0
- package/build-module/duotone-picker/custom-duotone-bar.js.map +1 -1
- package/build-module/duotone-picker/duotone-picker.js +38 -2
- package/build-module/duotone-picker/duotone-picker.js.map +1 -1
- package/build-module/duotone-picker/duotone-swatch.js.map +1 -1
- package/build-module/duotone-picker/index.js.map +1 -1
- package/build-module/duotone-picker/types.js +2 -0
- package/build-module/duotone-picker/types.js.map +1 -0
- package/build-module/duotone-picker/utils.js +17 -11
- package/build-module/duotone-picker/utils.js.map +1 -1
- package/build-module/form-token-field/index.js +9 -4
- package/build-module/form-token-field/index.js.map +1 -1
- package/build-module/gradient-picker/index.js +61 -10
- package/build-module/gradient-picker/index.js.map +1 -1
- package/build-module/gradient-picker/types.js +2 -0
- package/build-module/gradient-picker/types.js.map +1 -0
- package/build-module/palette-edit/index.js +1 -2
- package/build-module/palette-edit/index.js.map +1 -1
- package/build-module/resizable-box/resize-tooltip/utils.js.map +1 -1
- package/build-module/sandbox/index.native.js +70 -58
- package/build-module/sandbox/index.native.js.map +1 -1
- package/build-module/tab-panel/index.js +2 -2
- package/build-module/tab-panel/index.js.map +1 -1
- package/build-module/tools-panel/tools-panel/hook.js +45 -6
- package/build-module/tools-panel/tools-panel/hook.js.map +1 -1
- package/build-module/utils/input/input-control.js +1 -1
- package/build-module/utils/input/input-control.js.map +1 -1
- package/build-style/style-rtl.css +40 -28
- package/build-style/style.css +42 -28
- 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/angle-picker-control/styles/angle-picker-control-styles.d.ts +5 -0
- package/build-types/angle-picker-control/styles/angle-picker-control-styles.d.ts.map +1 -1
- package/build-types/animate/index.d.ts +27 -22
- package/build-types/animate/index.d.ts.map +1 -1
- package/build-types/animate/stories/index.d.ts +18 -0
- package/build-types/animate/stories/index.d.ts.map +1 -0
- package/build-types/animate/types.d.ts +30 -0
- package/build-types/animate/types.d.ts.map +1 -0
- package/build-types/color-picker/color-input.d.ts +1 -11
- package/build-types/color-picker/color-input.d.ts.map +1 -1
- package/build-types/color-picker/component.d.ts +8 -9
- package/build-types/color-picker/component.d.ts.map +1 -1
- package/build-types/color-picker/hex-input.d.ts +1 -10
- package/build-types/color-picker/hex-input.d.ts.map +1 -1
- package/build-types/color-picker/hsl-input.d.ts +1 -10
- package/build-types/color-picker/hsl-input.d.ts.map +1 -1
- package/build-types/color-picker/input-with-slider.d.ts +1 -9
- package/build-types/color-picker/input-with-slider.d.ts.map +1 -1
- package/build-types/color-picker/legacy-adapter.d.ts +1 -3
- package/build-types/color-picker/legacy-adapter.d.ts.map +1 -1
- package/build-types/color-picker/picker.d.ts +4 -7
- package/build-types/color-picker/picker.d.ts.map +1 -1
- package/build-types/color-picker/rgb-input.d.ts +1 -10
- package/build-types/color-picker/rgb-input.d.ts.map +1 -1
- package/build-types/color-picker/stories/index.d.ts +19 -0
- package/build-types/color-picker/stories/index.d.ts.map +1 -0
- package/build-types/color-picker/test/index.d.ts +2 -0
- package/build-types/color-picker/test/index.d.ts.map +1 -0
- package/build-types/color-picker/types.d.ts +105 -1
- package/build-types/color-picker/types.d.ts.map +1 -1
- package/build-types/color-picker/use-deprecated-props.d.ts +1 -44
- package/build-types/color-picker/use-deprecated-props.d.ts.map +1 -1
- package/build-types/custom-gradient-picker/constants.d.ts +8 -8
- package/build-types/custom-gradient-picker/constants.d.ts.map +1 -1
- package/build-types/custom-gradient-picker/gradient-bar/constants.d.ts +7 -7
- package/build-types/custom-gradient-picker/gradient-bar/constants.d.ts.map +1 -1
- package/build-types/custom-gradient-picker/gradient-bar/control-points.d.ts +5 -22
- package/build-types/custom-gradient-picker/gradient-bar/control-points.d.ts.map +1 -1
- package/build-types/custom-gradient-picker/gradient-bar/index.d.ts +3 -9
- package/build-types/custom-gradient-picker/gradient-bar/index.d.ts.map +1 -1
- package/build-types/custom-gradient-picker/gradient-bar/test/utils.d.ts +2 -0
- package/build-types/custom-gradient-picker/gradient-bar/test/utils.d.ts.map +1 -0
- package/build-types/custom-gradient-picker/gradient-bar/utils.d.ts +44 -92
- package/build-types/custom-gradient-picker/gradient-bar/utils.d.ts.map +1 -1
- package/build-types/custom-gradient-picker/index.d.ts +27 -6
- package/build-types/custom-gradient-picker/index.d.ts.map +1 -1
- package/build-types/custom-gradient-picker/serializer.d.ts +13 -16
- package/build-types/custom-gradient-picker/serializer.d.ts.map +1 -1
- package/build-types/custom-gradient-picker/stories/index.d.ts +12 -0
- package/build-types/custom-gradient-picker/stories/index.d.ts.map +1 -0
- package/build-types/custom-gradient-picker/styles/custom-gradient-picker-styles.d.ts +3 -2
- package/build-types/custom-gradient-picker/styles/custom-gradient-picker-styles.d.ts.map +1 -1
- package/build-types/custom-gradient-picker/test/serializer.d.ts +2 -0
- package/build-types/custom-gradient-picker/test/serializer.d.ts.map +1 -0
- package/build-types/custom-gradient-picker/types.d.ts +120 -0
- package/build-types/custom-gradient-picker/types.d.ts.map +1 -0
- package/build-types/custom-gradient-picker/utils.d.ts +12 -4
- package/build-types/custom-gradient-picker/utils.d.ts.map +1 -1
- package/build-types/duotone-picker/color-list-picker/index.d.ts.map +1 -0
- package/build-types/{color-list-picker → duotone-picker/color-list-picker}/types.d.ts +2 -2
- package/build-types/duotone-picker/color-list-picker/types.d.ts.map +1 -0
- package/build-types/duotone-picker/custom-duotone-bar.d.ts +6 -0
- package/build-types/duotone-picker/custom-duotone-bar.d.ts.map +1 -0
- package/build-types/duotone-picker/duotone-picker.d.ts +38 -0
- package/build-types/duotone-picker/duotone-picker.d.ts.map +1 -0
- package/build-types/duotone-picker/duotone-swatch.d.ts +5 -0
- package/build-types/duotone-picker/duotone-swatch.d.ts.map +1 -0
- package/build-types/duotone-picker/index.d.ts +3 -0
- package/build-types/duotone-picker/index.d.ts.map +1 -0
- package/build-types/duotone-picker/stories/duotone-picker.d.ts +12 -0
- package/build-types/duotone-picker/stories/duotone-picker.d.ts.map +1 -0
- package/build-types/duotone-picker/stories/duotone-swatch.d.ts +14 -0
- package/build-types/duotone-picker/stories/duotone-swatch.d.ts.map +1 -0
- package/build-types/duotone-picker/types.d.ts +60 -0
- package/build-types/duotone-picker/types.d.ts.map +1 -0
- package/build-types/duotone-picker/utils.d.ts +52 -0
- package/build-types/duotone-picker/utils.d.ts.map +1 -0
- package/build-types/form-token-field/index.d.ts.map +1 -1
- package/build-types/form-token-field/types.d.ts +6 -0
- package/build-types/form-token-field/types.d.ts.map +1 -1
- package/build-types/gradient-picker/index.d.ts +49 -11
- package/build-types/gradient-picker/index.d.ts.map +1 -1
- package/build-types/gradient-picker/stories/index.d.ts +14 -0
- package/build-types/gradient-picker/stories/index.d.ts.map +1 -0
- package/build-types/gradient-picker/types.d.ts +87 -0
- package/build-types/gradient-picker/types.d.ts.map +1 -0
- package/build-types/palette-edit/index.d.ts.map +1 -1
- package/build-types/resizable-box/resize-tooltip/utils.d.ts +1 -1
- package/build-types/resizable-box/resize-tooltip/utils.d.ts.map +1 -1
- package/build-types/tab-panel/index.d.ts.map +1 -1
- package/build-types/tools-panel/tools-panel/hook.d.ts.map +1 -1
- package/build-types/tools-panel/types.d.ts +1 -0
- package/build-types/tools-panel/types.d.ts.map +1 -1
- package/build-types/utils/input/input-control.d.ts.map +1 -1
- package/package.json +19 -19
- package/src/angle-picker-control/angle-circle.tsx +0 -1
- package/src/angle-picker-control/index.tsx +14 -27
- package/src/angle-picker-control/styles/angle-picker-control-styles.tsx +16 -9
- package/src/animate/index.tsx +75 -0
- package/src/animate/stories/index.tsx +102 -0
- package/src/animate/types.ts +32 -0
- package/src/border-box-control/stories/index.tsx +1 -1
- package/src/box-control/axial-input-controls.tsx +1 -1
- package/src/circular-option-picker/style.scss +10 -0
- package/src/color-indicator/style.scss +1 -0
- package/src/color-picker/README.md +2 -2
- package/src/color-picker/color-input.tsx +1 -12
- package/src/color-picker/component.tsx +9 -18
- package/src/color-picker/hex-input.tsx +2 -7
- package/src/color-picker/hsl-input.tsx +2 -7
- package/src/color-picker/input-with-slider.tsx +1 -9
- package/src/color-picker/legacy-adapter.tsx +1 -2
- package/src/color-picker/picker.tsx +5 -6
- package/src/color-picker/rgb-input.tsx +2 -7
- package/src/color-picker/stories/index.tsx +51 -0
- package/src/color-picker/test/{index.js → index.tsx} +36 -18
- package/src/color-picker/types.ts +128 -1
- package/src/color-picker/use-deprecated-props.ts +2 -53
- package/src/combobox-control/stories/index.tsx +1 -1
- package/src/custom-gradient-picker/{constants.js → constants.ts} +2 -2
- package/src/custom-gradient-picker/gradient-bar/{control-points.js → control-points.tsx} +171 -134
- package/src/custom-gradient-picker/gradient-bar/{index.js → index.tsx} +32 -10
- package/src/custom-gradient-picker/gradient-bar/test/{utils.js → utils.ts} +58 -31
- package/src/custom-gradient-picker/gradient-bar/utils.ts +193 -0
- package/src/custom-gradient-picker/{index.js → index.tsx} +63 -22
- package/src/custom-gradient-picker/serializer.ts +82 -0
- package/src/custom-gradient-picker/stories/index.tsx +45 -0
- package/src/custom-gradient-picker/style.scss +25 -4
- package/src/custom-gradient-picker/test/{serializer.js → serializer.ts} +39 -33
- package/src/custom-gradient-picker/types.ts +137 -0
- package/src/custom-gradient-picker/{utils.js → utils.ts} +37 -22
- package/src/custom-select-control/test/index.js +6 -4
- package/src/{color-list-picker → duotone-picker/color-list-picker}/index.tsx +7 -6
- package/src/{color-list-picker → duotone-picker/color-list-picker}/types.ts +2 -2
- package/src/duotone-picker/{custom-duotone-bar.js → custom-duotone-bar.tsx} +7 -1
- package/src/duotone-picker/{duotone-picker.js → duotone-picker.tsx} +39 -2
- package/src/duotone-picker/{duotone-swatch.js → duotone-swatch.tsx} +2 -1
- package/src/duotone-picker/stories/{duotone-picker.js → duotone-picker.tsx} +15 -8
- package/src/duotone-picker/stories/{duotone-swatch.js → duotone-swatch.tsx} +9 -3
- package/src/duotone-picker/types.ts +61 -0
- package/src/duotone-picker/{utils.js → utils.ts} +29 -14
- package/src/flex/flex-item/README.md +1 -1
- package/src/form-token-field/README.md +1 -0
- package/src/form-token-field/index.tsx +10 -3
- package/src/form-token-field/style.scss +0 -7
- package/src/form-token-field/test/index.tsx +1 -0
- package/src/form-token-field/types.ts +6 -0
- package/src/gradient-picker/README.md +16 -23
- package/src/gradient-picker/{index.js → index.tsx} +70 -16
- package/src/gradient-picker/stories/{index.js → index.tsx} +19 -8
- package/src/gradient-picker/types.ts +89 -0
- package/src/item-group/test/index.js +5 -3
- package/src/palette-edit/index.tsx +4 -5
- package/src/resizable-box/resize-tooltip/utils.ts +1 -1
- package/src/sandbox/index.native.js +71 -78
- package/src/slot-fill/test/slot.js +8 -6
- package/src/style.scss +1 -1
- package/src/tab-panel/index.tsx +7 -2
- package/src/tools-panel/test/index.tsx +86 -0
- package/src/tools-panel/tools-panel/hook.ts +44 -4
- package/src/tools-panel/types.ts +1 -0
- package/src/tooltip/test/index.js +251 -301
- package/src/utils/input/input-control.js +1 -0
- package/tsconfig.json +1 -2
- package/tsconfig.tsbuildinfo +1 -1
- package/build/color-list-picker/index.js.map +0 -1
- package/build-module/color-list-picker/index.js.map +0 -1
- package/build-types/color-list-picker/index.d.ts.map +0 -1
- package/build-types/color-list-picker/types.d.ts.map +0 -1
- package/src/animate/index.js +0 -60
- package/src/animate/stories/index.js +0 -53
- package/src/color-picker/stories/index.js +0 -41
- package/src/custom-gradient-picker/gradient-bar/utils.js +0 -189
- package/src/custom-gradient-picker/serializer.js +0 -48
- package/src/custom-gradient-picker/stories/index.js +0 -33
- /package/build/{color-list-picker → animate}/types.js +0 -0
- /package/build-module/{color-list-picker → animate}/types.js +0 -0
- /package/build-module/{color-list-picker → animate}/types.js.map +0 -0
- /package/{build/color-list-picker → build-module/custom-gradient-picker}/types.js.map +0 -0
- /package/build-types/{color-list-picker → duotone-picker/color-list-picker}/index.d.ts +0 -0
- /package/src/custom-gradient-picker/gradient-bar/{constants.js → constants.ts} +0 -0
- /package/src/custom-gradient-picker/styles/{custom-gradient-picker-styles.js → custom-gradient-picker-styles.tsx} +0 -0
- /package/src/{color-list-picker → duotone-picker/color-list-picker}/style.scss +0 -0
- /package/src/duotone-picker/{index.js → index.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["@wordpress/components/src/utils/input/input-control.js"],"names":["css","inputStyleNeutral","inputStyleFocus","font","COLORS","breakpoint","inputControl","ui","darkGrayPlaceholder","lightGrayPlaceholder"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,GAAT,QAAoB,gBAApB;AAEA;AACA;AACA;;AACA,SAASC,iBAAT,EAA4BC,eAA5B,QAAmD,QAAnD;AACA,SAASC,IAAT,QAAqB,SAArB;AACA,SAASC,MAAT,QAAuB,kBAAvB;AACA,SAASC,UAAT,QAA2B,eAA3B;AAEA,OAAO,MAAMC,YAAY,gBAAGN,GAAH,
|
|
1
|
+
{"version":3,"sources":["@wordpress/components/src/utils/input/input-control.js"],"names":["css","inputStyleNeutral","inputStyleFocus","font","COLORS","breakpoint","inputControl","ui","darkGrayPlaceholder","lightGrayPlaceholder"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,GAAT,QAAoB,gBAApB;AAEA;AACA;AACA;;AACA,SAASC,iBAAT,EAA4BC,eAA5B,QAAmD,QAAnD;AACA,SAASC,IAAT,QAAqB,SAArB;AACA,SAASC,MAAT,QAAuB,kBAAvB;AACA,SAASC,UAAT,QAA2B,eAA3B;AAEA,OAAO,MAAMC,YAAY,gBAAGN,GAAH,+BAERG,IAAI,CAAE,oBAAF,CAFI,uBAIrBF,iBAJqB,iBAOVE,IAAI,CAAE,uBAAF,CAPM,0BAWrBE,UAAU,CAAE,OAAF,CAXW,iBAYTF,IAAI,CAAE,kBAAF,CAZK,mCAkBpBD,eAlBoB,2CAuBbE,MAAM,CAACG,EAAP,CAAUC,mBAvBG,4CA4BbJ,MAAM,CAACG,EAAP,CAAUC,mBA5BG,sCAgCbJ,MAAM,CAACG,EAAP,CAAUC,mBAhCG,4DAqCZJ,MAAM,CAACG,EAAP,CAAUE,oBArCE,4CA0CZL,MAAM,CAACG,EAAP,CAAUE,oBA1CE,sCA8CZL,MAAM,CAACG,EAAP,CAAUE,oBA9CE,wiFAAlB","sourcesContent":["/**\n * External dependencies\n */\nimport { css } from '@emotion/react';\n\n/**\n * Internal dependencies\n */\nimport { inputStyleNeutral, inputStyleFocus } from './base';\nimport { font } from '../font';\nimport { COLORS } from '../colors-values';\nimport { breakpoint } from '../breakpoint';\n\nexport const inputControl = css`\n\tdisplay: block;\n\tfont-family: ${ font( 'default.fontFamily' ) };\n\tpadding: 6px 8px;\n\t${ inputStyleNeutral };\n\n\t/* Fonts smaller than 16px causes mobile safari to zoom. */\n\tfont-size: ${ font( 'mobileTextMinFontSize' ) };\n\t/* Override core line-height. To be reviewed. */\n\tline-height: normal;\n\n\t${ breakpoint( 'small' ) } {\n\t\tfont-size: ${ font( 'default.fontSize' ) };\n\t\t/* Override core line-height. To be reviewed. */\n\t\tline-height: normal;\n\t}\n\n\t&:focus {\n\t\t${ inputStyleFocus }\n\t}\n\n\t// Use opacity to work in various editor styles.\n\t&::-webkit-input-placeholder {\n\t\tcolor: ${ COLORS.ui.darkGrayPlaceholder };\n\t}\n\n\t&::-moz-placeholder {\n\t\topacity: 1; // Necessary because Firefox reduces this from 1.\n\t\tcolor: ${ COLORS.ui.darkGrayPlaceholder };\n\t}\n\n\t&:-ms-input-placeholder {\n\t\tcolor: ${ COLORS.ui.darkGrayPlaceholder };\n\t}\n\n\t.is-dark-theme & {\n\t\t&::-webkit-input-placeholder {\n\t\t\tcolor: ${ COLORS.ui.lightGrayPlaceholder };\n\t\t}\n\n\t\t&::-moz-placeholder {\n\t\t\topacity: 1; // Necessary because Firefox reduces this from 1.\n\t\t\tcolor: ${ COLORS.ui.lightGrayPlaceholder };\n\t\t}\n\n\t\t&:-ms-input-placeholder {\n\t\t\tcolor: ${ COLORS.ui.lightGrayPlaceholder };\n\t\t}\n\t}\n`;\n"]}
|
|
@@ -653,6 +653,12 @@ svg.components-checkbox-control__indeterminate {
|
|
|
653
653
|
display: flex;
|
|
654
654
|
flex-wrap: wrap;
|
|
655
655
|
gap: 12px;
|
|
656
|
+
position: relative;
|
|
657
|
+
z-index: 1;
|
|
658
|
+
}
|
|
659
|
+
.components-circular-option-picker > *:not(.components-circular-option-picker__swatches) {
|
|
660
|
+
position: relative;
|
|
661
|
+
z-index: 0;
|
|
656
662
|
}
|
|
657
663
|
|
|
658
664
|
.components-circular-option-picker__option-wrapper {
|
|
@@ -783,6 +789,7 @@ svg.components-checkbox-control__indeterminate {
|
|
|
783
789
|
border-radius: 50%;
|
|
784
790
|
display: inline-block;
|
|
785
791
|
padding: 0;
|
|
792
|
+
background: #fff linear-gradient(45deg, transparent 48%, #ddd 48%, #ddd 52%, transparent 52%);
|
|
786
793
|
}
|
|
787
794
|
|
|
788
795
|
.components-combobox-control {
|
|
@@ -868,23 +875,6 @@ input.components-combobox-control__input[type=text]:focus {
|
|
|
868
875
|
padding: 0;
|
|
869
876
|
}
|
|
870
877
|
|
|
871
|
-
.components-color-list-picker,
|
|
872
|
-
.components-color-list-picker__swatch-button {
|
|
873
|
-
width: 100%;
|
|
874
|
-
}
|
|
875
|
-
|
|
876
|
-
.components-color-list-picker__color-picker {
|
|
877
|
-
margin: 8px 0;
|
|
878
|
-
}
|
|
879
|
-
|
|
880
|
-
.components-color-list-picker__swatch-button {
|
|
881
|
-
padding: 6px;
|
|
882
|
-
}
|
|
883
|
-
|
|
884
|
-
.components-color-list-picker__swatch-color {
|
|
885
|
-
margin: 2px;
|
|
886
|
-
}
|
|
887
|
-
|
|
888
878
|
.components-color-palette__custom-color {
|
|
889
879
|
position: relative;
|
|
890
880
|
border: none;
|
|
@@ -922,14 +912,21 @@ input.components-combobox-control__input[type=text]:focus {
|
|
|
922
912
|
margin-bottom: 24px;
|
|
923
913
|
}
|
|
924
914
|
|
|
925
|
-
.components-custom-gradient-picker__gradient-bar:not(.has-gradient) {
|
|
926
|
-
opacity: 0.4;
|
|
927
|
-
}
|
|
928
|
-
|
|
929
915
|
.components-custom-gradient-picker__gradient-bar {
|
|
930
916
|
border-radius: 2px;
|
|
931
917
|
width: 100%;
|
|
932
918
|
height: 48px;
|
|
919
|
+
position: relative;
|
|
920
|
+
z-index: 1;
|
|
921
|
+
}
|
|
922
|
+
.components-custom-gradient-picker__gradient-bar.has-gradient {
|
|
923
|
+
background-image: repeating-linear-gradient(45deg, #e0e0e0 25%, transparent 25%, transparent 75%, #e0e0e0 75%, #e0e0e0), repeating-linear-gradient(45deg, #e0e0e0 25%, transparent 25%, transparent 75%, #e0e0e0 75%, #e0e0e0);
|
|
924
|
+
background-position: 0 0, 12px 12px;
|
|
925
|
+
background-size: calc(2 * 12px) calc(2 * 12px);
|
|
926
|
+
}
|
|
927
|
+
.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__gradient-bar-background {
|
|
928
|
+
position: absolute;
|
|
929
|
+
inset: 0;
|
|
933
930
|
}
|
|
934
931
|
.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__markers-container {
|
|
935
932
|
position: relative;
|
|
@@ -998,6 +995,11 @@ input.components-combobox-control__input[type=text]:focus {
|
|
|
998
995
|
border-radius: 2px;
|
|
999
996
|
}
|
|
1000
997
|
|
|
998
|
+
.components-custom-gradient-picker__ui-line {
|
|
999
|
+
position: relative;
|
|
1000
|
+
z-index: 0;
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1001
1003
|
.components-custom-select-control {
|
|
1002
1004
|
position: relative;
|
|
1003
1005
|
font-size: 13px;
|
|
@@ -1255,6 +1257,23 @@ body.is-dragging-components-draggable {
|
|
|
1255
1257
|
color: transparent;
|
|
1256
1258
|
}
|
|
1257
1259
|
|
|
1260
|
+
.components-color-list-picker,
|
|
1261
|
+
.components-color-list-picker__swatch-button {
|
|
1262
|
+
width: 100%;
|
|
1263
|
+
}
|
|
1264
|
+
|
|
1265
|
+
.components-color-list-picker__color-picker {
|
|
1266
|
+
margin: 8px 0;
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
.components-color-list-picker__swatch-button {
|
|
1270
|
+
padding: 6px;
|
|
1271
|
+
}
|
|
1272
|
+
|
|
1273
|
+
.components-color-list-picker__swatch-color {
|
|
1274
|
+
margin: 2px;
|
|
1275
|
+
}
|
|
1276
|
+
|
|
1258
1277
|
.components-form-toggle {
|
|
1259
1278
|
position: relative;
|
|
1260
1279
|
display: inline-block;
|
|
@@ -1346,7 +1365,6 @@ body.is-dragging-components-draggable {
|
|
|
1346
1365
|
/* Override core line-height. To be reviewed. */
|
|
1347
1366
|
line-height: normal;
|
|
1348
1367
|
width: 100%;
|
|
1349
|
-
margin: 0 0 8px 0;
|
|
1350
1368
|
padding: 0;
|
|
1351
1369
|
cursor: text;
|
|
1352
1370
|
}
|
|
@@ -1416,12 +1434,6 @@ body.is-dragging-components-draggable {
|
|
|
1416
1434
|
width: auto;
|
|
1417
1435
|
}
|
|
1418
1436
|
|
|
1419
|
-
.components-form-token-field__help {
|
|
1420
|
-
font-size: 12px;
|
|
1421
|
-
font-style: normal;
|
|
1422
|
-
color: #757575;
|
|
1423
|
-
}
|
|
1424
|
-
|
|
1425
1437
|
.components-form-token-field__token {
|
|
1426
1438
|
font-size: 13px;
|
|
1427
1439
|
display: flex;
|
package/build-style/style.css
CHANGED
|
@@ -653,6 +653,12 @@ svg.components-checkbox-control__indeterminate {
|
|
|
653
653
|
display: flex;
|
|
654
654
|
flex-wrap: wrap;
|
|
655
655
|
gap: 12px;
|
|
656
|
+
position: relative;
|
|
657
|
+
z-index: 1;
|
|
658
|
+
}
|
|
659
|
+
.components-circular-option-picker > *:not(.components-circular-option-picker__swatches) {
|
|
660
|
+
position: relative;
|
|
661
|
+
z-index: 0;
|
|
656
662
|
}
|
|
657
663
|
|
|
658
664
|
.components-circular-option-picker__option-wrapper {
|
|
@@ -783,6 +789,7 @@ svg.components-checkbox-control__indeterminate {
|
|
|
783
789
|
border-radius: 50%;
|
|
784
790
|
display: inline-block;
|
|
785
791
|
padding: 0;
|
|
792
|
+
background: #fff linear-gradient(-45deg, transparent 48%, #ddd 48%, #ddd 52%, transparent 52%);
|
|
786
793
|
}
|
|
787
794
|
|
|
788
795
|
.components-combobox-control {
|
|
@@ -868,23 +875,6 @@ input.components-combobox-control__input[type=text]:focus {
|
|
|
868
875
|
padding: 0;
|
|
869
876
|
}
|
|
870
877
|
|
|
871
|
-
.components-color-list-picker,
|
|
872
|
-
.components-color-list-picker__swatch-button {
|
|
873
|
-
width: 100%;
|
|
874
|
-
}
|
|
875
|
-
|
|
876
|
-
.components-color-list-picker__color-picker {
|
|
877
|
-
margin: 8px 0;
|
|
878
|
-
}
|
|
879
|
-
|
|
880
|
-
.components-color-list-picker__swatch-button {
|
|
881
|
-
padding: 6px;
|
|
882
|
-
}
|
|
883
|
-
|
|
884
|
-
.components-color-list-picker__swatch-color {
|
|
885
|
-
margin: 2px;
|
|
886
|
-
}
|
|
887
|
-
|
|
888
878
|
.components-color-palette__custom-color {
|
|
889
879
|
position: relative;
|
|
890
880
|
border: none;
|
|
@@ -924,14 +914,23 @@ input.components-combobox-control__input[type=text]:focus {
|
|
|
924
914
|
margin-bottom: 24px;
|
|
925
915
|
}
|
|
926
916
|
|
|
927
|
-
.components-custom-gradient-picker__gradient-bar:not(.has-gradient) {
|
|
928
|
-
opacity: 0.4;
|
|
929
|
-
}
|
|
930
|
-
|
|
931
917
|
.components-custom-gradient-picker__gradient-bar {
|
|
932
918
|
border-radius: 2px;
|
|
933
919
|
width: 100%;
|
|
934
920
|
height: 48px;
|
|
921
|
+
position: relative;
|
|
922
|
+
z-index: 1;
|
|
923
|
+
}
|
|
924
|
+
.components-custom-gradient-picker__gradient-bar.has-gradient {
|
|
925
|
+
/*rtl:begin:ignore*/
|
|
926
|
+
background-image: repeating-linear-gradient(45deg, #e0e0e0 25%, transparent 25%, transparent 75%, #e0e0e0 75%, #e0e0e0), repeating-linear-gradient(45deg, #e0e0e0 25%, transparent 25%, transparent 75%, #e0e0e0 75%, #e0e0e0);
|
|
927
|
+
background-position: 0 0, 12px 12px;
|
|
928
|
+
/*rtl:end:ignore*/
|
|
929
|
+
background-size: calc(2 * 12px) calc(2 * 12px);
|
|
930
|
+
}
|
|
931
|
+
.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__gradient-bar-background {
|
|
932
|
+
position: absolute;
|
|
933
|
+
inset: 0;
|
|
935
934
|
}
|
|
936
935
|
.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__markers-container {
|
|
937
936
|
position: relative;
|
|
@@ -1001,6 +1000,11 @@ input.components-combobox-control__input[type=text]:focus {
|
|
|
1001
1000
|
border-radius: 2px;
|
|
1002
1001
|
}
|
|
1003
1002
|
|
|
1003
|
+
.components-custom-gradient-picker__ui-line {
|
|
1004
|
+
position: relative;
|
|
1005
|
+
z-index: 0;
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1004
1008
|
.components-custom-select-control {
|
|
1005
1009
|
position: relative;
|
|
1006
1010
|
font-size: 13px;
|
|
@@ -1258,6 +1262,23 @@ body.is-dragging-components-draggable {
|
|
|
1258
1262
|
color: transparent;
|
|
1259
1263
|
}
|
|
1260
1264
|
|
|
1265
|
+
.components-color-list-picker,
|
|
1266
|
+
.components-color-list-picker__swatch-button {
|
|
1267
|
+
width: 100%;
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
.components-color-list-picker__color-picker {
|
|
1271
|
+
margin: 8px 0;
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1274
|
+
.components-color-list-picker__swatch-button {
|
|
1275
|
+
padding: 6px;
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1278
|
+
.components-color-list-picker__swatch-color {
|
|
1279
|
+
margin: 2px;
|
|
1280
|
+
}
|
|
1281
|
+
|
|
1261
1282
|
.components-form-toggle {
|
|
1262
1283
|
position: relative;
|
|
1263
1284
|
display: inline-block;
|
|
@@ -1349,7 +1370,6 @@ body.is-dragging-components-draggable {
|
|
|
1349
1370
|
/* Override core line-height. To be reviewed. */
|
|
1350
1371
|
line-height: normal;
|
|
1351
1372
|
width: 100%;
|
|
1352
|
-
margin: 0 0 8px 0;
|
|
1353
1373
|
padding: 0;
|
|
1354
1374
|
cursor: text;
|
|
1355
1375
|
}
|
|
@@ -1419,12 +1439,6 @@ body.is-dragging-components-draggable {
|
|
|
1419
1439
|
width: auto;
|
|
1420
1440
|
}
|
|
1421
1441
|
|
|
1422
|
-
.components-form-token-field__help {
|
|
1423
|
-
font-size: 12px;
|
|
1424
|
-
font-style: normal;
|
|
1425
|
-
color: #757575;
|
|
1426
|
-
}
|
|
1427
|
-
|
|
1428
1442
|
.components-form-token-field__token {
|
|
1429
1443
|
font-size: 13px;
|
|
1430
1444
|
display: flex;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"angle-circle.d.ts","sourceRoot":"","sources":["../../src/angle-picker-control/angle-circle.tsx"],"names":[],"mappings":";AAeA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAQhD,iBAAS,WAAW,CAAE,EACrB,KAAK,EACL,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,uBAAuB,CAAE,gBAAgB,EAAE,KAAK,CAAE,
|
|
1
|
+
{"version":3,"file":"angle-circle.d.ts","sourceRoot":"","sources":["../../src/angle-picker-control/angle-circle.tsx"],"names":[],"mappings":";AAeA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAQhD,iBAAS,WAAW,CAAE,EACrB,KAAK,EACL,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,uBAAuB,CAAE,gBAAgB,EAAE,KAAK,CAAE,eA8EpD;AAmBD,eAAe,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/angle-picker-control/index.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/angle-picker-control/index.tsx"],"names":[],"mappings":";AAuBA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AA+EvD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,kBAAkB;;uCAA8C,CAAC;AAE9E,eAAe,kBAAkB,CAAC"}
|
|
@@ -17,4 +17,9 @@ export declare const CircleIndicator: import("@emotion/styled").StyledComponent<
|
|
|
17
17
|
theme?: import("@emotion/react").Theme | undefined;
|
|
18
18
|
as?: import("react").ElementType<any> | undefined;
|
|
19
19
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
20
|
+
export declare const UnitText: import("@emotion/styled").StyledComponent<import("../../text/types").Props & import("react").RefAttributes<any> & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof import("react").HTMLAttributes<HTMLSpanElement>>, "as" | keyof import("react").RefAttributes<any> | keyof import("../../text/types").Props> & {
|
|
21
|
+
as?: keyof JSX.IntrinsicElements | undefined;
|
|
22
|
+
} & {
|
|
23
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
24
|
+
}, {}, {}>;
|
|
20
25
|
//# sourceMappingURL=angle-picker-control-styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"angle-picker-control-styles.d.ts","sourceRoot":"","sources":["../../../src/angle-picker-control/styles/angle-picker-control-styles.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"angle-picker-control-styles.d.ts","sourceRoot":"","sources":["../../../src/angle-picker-control/styles/angle-picker-control-styles.tsx"],"names":[],"mappings":";AAeA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAexD,eAAO,MAAM,IAAI;;;;qEAEhB,CAAC;AAEF,eAAO,MAAM,UAAU;;;yGAYtB,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;yGASlC,CAAC;AAEF,eAAO,MAAM,eAAe;;;yGAW3B,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;UAGpB,CAAC"}
|
|
@@ -1,26 +1,31 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
/**
|
|
2
|
-
*
|
|
3
|
+
* Internal dependencies
|
|
4
|
+
*/
|
|
5
|
+
import type { AnimateProps, GetAnimateOptions } from './types';
|
|
6
|
+
/**
|
|
7
|
+
* @param options
|
|
8
|
+
*
|
|
9
|
+
* @return ClassName that applies the animations
|
|
10
|
+
*/
|
|
11
|
+
export declare function getAnimateClassName(options: GetAnimateOptions): string | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* Simple interface to introduce animations to components.
|
|
14
|
+
*
|
|
15
|
+
* ```jsx
|
|
16
|
+
* import { Animate, Notice } from '@wordpress/components';
|
|
3
17
|
*
|
|
4
|
-
*
|
|
18
|
+
* const MyAnimatedNotice = () => (
|
|
19
|
+
* <Animate type="slide-in" options={ { origin: 'top' } }>
|
|
20
|
+
* { ( { className } ) => (
|
|
21
|
+
* <Notice className={ className } status="success">
|
|
22
|
+
* <p>Animation finished.</p>
|
|
23
|
+
* </Notice>
|
|
24
|
+
* ) }
|
|
25
|
+
* </Animate>
|
|
26
|
+
* );
|
|
27
|
+
* ```
|
|
5
28
|
*/
|
|
6
|
-
export function
|
|
7
|
-
export default
|
|
8
|
-
type: any;
|
|
9
|
-
options?: {} | undefined;
|
|
10
|
-
children: any;
|
|
11
|
-
}): any;
|
|
12
|
-
export type AppearOrigin = 'top' | 'top left' | 'top right' | 'middle' | 'middle left' | 'middle right' | 'bottom' | 'bottom left' | 'bottom right';
|
|
13
|
-
export type SlideInOrigin = 'left' | 'right';
|
|
14
|
-
export type AppearOptions = {
|
|
15
|
-
type: 'appear';
|
|
16
|
-
origin?: AppearOrigin;
|
|
17
|
-
};
|
|
18
|
-
export type SlideInOptions = {
|
|
19
|
-
type: 'slide-in';
|
|
20
|
-
origin?: SlideInOrigin;
|
|
21
|
-
};
|
|
22
|
-
export type LoadingOptions = {
|
|
23
|
-
type: 'loading';
|
|
24
|
-
};
|
|
25
|
-
export type GetAnimateOptions = AppearOptions | SlideInOptions | LoadingOptions;
|
|
29
|
+
export declare function Animate({ type, options, children }: AnimateProps): JSX.Element;
|
|
30
|
+
export default Animate;
|
|
26
31
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/animate/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/animate/index.tsx"],"names":[],"mappings":";AAKA;;GAEG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAU/D;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAE,OAAO,EAAE,iBAAiB,sBAuB9D;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,OAAO,CAAE,EAAE,IAAI,EAAE,OAAY,EAAE,QAAQ,EAAE,EAAE,YAAY,eAOtE;AAED,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* External dependencies
|
|
3
|
+
*/
|
|
4
|
+
import type { ComponentMeta, ComponentStory } from '@storybook/react';
|
|
5
|
+
/**
|
|
6
|
+
* Internal dependencies
|
|
7
|
+
*/
|
|
8
|
+
import { Animate } from '..';
|
|
9
|
+
declare const meta: ComponentMeta<typeof Animate>;
|
|
10
|
+
export default meta;
|
|
11
|
+
export declare const Default: ComponentStory<typeof Animate>;
|
|
12
|
+
export declare const AppearTopLeft: ComponentStory<typeof Animate>;
|
|
13
|
+
export declare const AppearTopRight: ComponentStory<typeof Animate>;
|
|
14
|
+
export declare const AppearBottomLeft: ComponentStory<typeof Animate>;
|
|
15
|
+
export declare const AppearBottomRight: ComponentStory<typeof Animate>;
|
|
16
|
+
export declare const Loading: ComponentStory<typeof Animate>;
|
|
17
|
+
export declare const SlideIn: ComponentStory<typeof Animate>;
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/animate/stories/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEtE;;GAEG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAG7B,QAAA,MAAM,IAAI,EAAE,aAAa,CAAE,OAAO,OAAO,CAOxC,CAAC;AACF,eAAe,IAAI,CAAC;AAMpB,eAAO,MAAM,OAAO,EAAE,cAAc,CAAE,OAAO,OAAO,CAAwB,CAAC;AAS7E,eAAO,MAAM,aAAa,EAAE,cAAc,CAAE,OAAO,OAAO,CAEzD,CAAC;AAUF,eAAO,MAAM,cAAc,EAAE,cAAc,CAAE,OAAO,OAAO,CAE1D,CAAC;AAUF,eAAO,MAAM,gBAAgB,EAAE,cAAc,CAAE,OAAO,OAAO,CAE5D,CAAC;AAUF,eAAO,MAAM,iBAAiB,EAAE,cAAc,CAAE,OAAO,OAAO,CAC1C,CAAC;AAWrB,eAAO,MAAM,OAAO,EAAE,cAAc,CAAE,OAAO,OAAO,CAAwB,CAAC;AAU7E,eAAO,MAAM,OAAO,EAAE,cAAc,CAAE,OAAO,OAAO,CAAwB,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type AppearOptions = {
|
|
3
|
+
type: 'appear';
|
|
4
|
+
origin?: 'top' | 'top left' | 'top right' | 'middle' | 'middle left' | 'middle right' | 'bottom' | 'bottom left' | 'bottom right';
|
|
5
|
+
};
|
|
6
|
+
type SlideInOptions = {
|
|
7
|
+
type: 'slide-in';
|
|
8
|
+
origin?: 'left' | 'right';
|
|
9
|
+
};
|
|
10
|
+
type LoadingOptions = {
|
|
11
|
+
type: 'loading';
|
|
12
|
+
origin?: never;
|
|
13
|
+
};
|
|
14
|
+
type NoAnimationOptions = {
|
|
15
|
+
type?: never;
|
|
16
|
+
origin?: never;
|
|
17
|
+
};
|
|
18
|
+
export type GetAnimateOptions = AppearOptions | SlideInOptions | LoadingOptions | NoAnimationOptions;
|
|
19
|
+
type DistributiveTypeAndOptions<T extends {
|
|
20
|
+
type?: any;
|
|
21
|
+
}> = T extends any ? Pick<T, 'type'> & {
|
|
22
|
+
options?: Omit<T, 'type'>;
|
|
23
|
+
} : never;
|
|
24
|
+
export type AnimateProps = DistributiveTypeAndOptions<GetAnimateOptions> & {
|
|
25
|
+
children: (props: {
|
|
26
|
+
className?: string;
|
|
27
|
+
}) => JSX.Element;
|
|
28
|
+
};
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/animate/types.ts"],"names":[],"mappings":";AAAA,MAAM,MAAM,aAAa,GAAG;IAC3B,IAAI,EAAE,QAAQ,CAAC;IACf,MAAM,CAAC,EACJ,KAAK,GACL,UAAU,GACV,WAAW,GACX,QAAQ,GACR,aAAa,GACb,cAAc,GACd,QAAQ,GACR,aAAa,GACb,cAAc,CAAC;CAClB,CAAC;AACF,KAAK,cAAc,GAAG;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,CAAC;AACtE,KAAK,cAAc,GAAG;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,MAAM,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC;AAC1D,KAAK,kBAAkB,GAAG;IAAE,IAAI,CAAC,EAAE,KAAK,CAAC;IAAC,MAAM,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC;AAE3D,MAAM,MAAM,iBAAiB,GAC1B,aAAa,GACb,cAAc,GACd,cAAc,GACd,kBAAkB,CAAC;AAItB,KAAK,0BAA0B,CAAE,CAAC,SAAS;IAAE,IAAI,CAAC,EAAE,GAAG,CAAA;CAAE,IAAK,CAAC,SAAS,GAAG,GACxE,IAAI,CAAE,CAAC,EAAE,MAAM,CAAE,GAAG;IAAE,OAAO,CAAC,EAAE,IAAI,CAAE,CAAC,EAAE,MAAM,CAAE,CAAA;CAAE,GACnD,KAAK,CAAC;AAET,MAAM,MAAM,YAAY,GAAG,0BAA0B,CAAE,iBAAiB,CAAE,GAAG;IAC5E,QAAQ,EAAE,CAAE,KAAK,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,KAAM,GAAG,CAAC,OAAO,CAAC;CAC3D,CAAC"}
|
|
@@ -1,14 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
* External dependencies
|
|
4
|
-
*/
|
|
5
|
-
import type { Colord } from 'colord';
|
|
6
|
-
interface ColorInputProps {
|
|
7
|
-
colorType: 'hsl' | 'hex' | 'rgb';
|
|
8
|
-
color: Colord;
|
|
9
|
-
onChange: (nextColor: Colord) => void;
|
|
10
|
-
enableAlpha: boolean;
|
|
11
|
-
}
|
|
2
|
+
import type { ColorInputProps } from './types';
|
|
12
3
|
export declare const ColorInput: ({ colorType, color, onChange, enableAlpha, }: ColorInputProps) => JSX.Element;
|
|
13
|
-
export {};
|
|
14
4
|
//# sourceMappingURL=color-input.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"color-input.d.ts","sourceRoot":"","sources":["../../src/color-picker/color-input.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"color-input.d.ts","sourceRoot":"","sources":["../../src/color-picker/color-input.tsx"],"names":[],"mappings":";AAMA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,eAAO,MAAM,UAAU,iDAKpB,eAAe,gBAWjB,CAAC"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { ColorType } from './types';
|
|
3
|
-
export
|
|
4
|
-
enableAlpha?: boolean;
|
|
5
|
-
color?: string;
|
|
6
|
-
onChange?: (color: string) => void;
|
|
7
|
-
defaultValue?: string;
|
|
8
|
-
copyFormat?: ColorType;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export default ConnectedColorPicker;
|
|
3
|
+
export declare const ColorPicker: import("../ui/context").WordPressComponent<import("react").ElementType<any>, {
|
|
4
|
+
enableAlpha?: boolean | undefined;
|
|
5
|
+
color?: string | undefined;
|
|
6
|
+
onChange?: ((color: string) => void) | undefined;
|
|
7
|
+
defaultValue?: string | undefined;
|
|
8
|
+
copyFormat?: ColorType | undefined;
|
|
9
|
+
} & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>>, "defaultValue" | "onChange" | "color" | "children" | "as" | "enableAlpha" | "copyFormat"> & import("react").RefAttributes<any>, boolean>;
|
|
10
|
+
export default ColorPicker;
|
|
12
11
|
//# sourceMappingURL=component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../src/color-picker/component.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../src/color-picker/component.tsx"],"names":[],"mappings":";AA8BA,OAAO,KAAK,EAAoB,SAAS,EAAE,MAAM,SAAS,CAAC;AAoF3D,eAAO,MAAM,WAAW;;;;;;wTAGvB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1,13 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
* External dependencies
|
|
4
|
-
*/
|
|
5
|
-
import { Colord } from 'colord';
|
|
6
|
-
interface HexInputProps {
|
|
7
|
-
color: Colord;
|
|
8
|
-
onChange: (nextColor: Colord) => void;
|
|
9
|
-
enableAlpha: boolean;
|
|
10
|
-
}
|
|
2
|
+
import type { HexInputProps } from './types';
|
|
11
3
|
export declare const HexInput: ({ color, onChange, enableAlpha }: HexInputProps) => JSX.Element;
|
|
12
|
-
export {};
|
|
13
4
|
//# sourceMappingURL=hex-input.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hex-input.d.ts","sourceRoot":"","sources":["../../src/color-picker/hex-input.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"hex-input.d.ts","sourceRoot":"","sources":["../../src/color-picker/hex-input.tsx"],"names":[],"mappings":";AAmBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,eAAO,MAAM,QAAQ,qCAAuC,aAAa,gBA8CxE,CAAC"}
|
|
@@ -1,13 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
* External dependencies
|
|
4
|
-
*/
|
|
5
|
-
import { Colord } from 'colord';
|
|
6
|
-
interface HslInputProps {
|
|
7
|
-
color: Colord;
|
|
8
|
-
onChange: (nextColor: Colord) => void;
|
|
9
|
-
enableAlpha: boolean;
|
|
10
|
-
}
|
|
2
|
+
import type { HslInputProps } from './types';
|
|
11
3
|
export declare const HslInput: ({ color, onChange, enableAlpha }: HslInputProps) => JSX.Element;
|
|
12
|
-
export {};
|
|
13
4
|
//# sourceMappingURL=hsl-input.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hsl-input.d.ts","sourceRoot":"","sources":["../../src/color-picker/hsl-input.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"hsl-input.d.ts","sourceRoot":"","sources":["../../src/color-picker/hsl-input.tsx"],"names":[],"mappings":";AASA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,eAAO,MAAM,QAAQ,qCAAuC,aAAa,gBAsExE,CAAC"}
|
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
min: number;
|
|
4
|
-
max: number;
|
|
5
|
-
value: number;
|
|
6
|
-
label: string;
|
|
7
|
-
abbreviation: string;
|
|
8
|
-
onChange: (value: number) => void;
|
|
9
|
-
}
|
|
2
|
+
import type { InputWithSliderProps } from './types';
|
|
10
3
|
export declare const InputWithSlider: ({ min, max, label, abbreviation, onChange, value, }: InputWithSliderProps) => JSX.Element;
|
|
11
|
-
export {};
|
|
12
4
|
//# sourceMappingURL=input-with-slider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-with-slider.d.ts","sourceRoot":"","sources":["../../src/color-picker/input-with-slider.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"input-with-slider.d.ts","sourceRoot":"","sources":["../../src/color-picker/input-with-slider.tsx"],"names":[],"mappings":";AASA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAEpD,eAAO,MAAM,eAAe,wDAOzB,oBAAoB,gBAiDtB,CAAC"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
type LegacyAdapterProps = Parameters<typeof useDeprecatedProps>[0];
|
|
2
|
+
import type { LegacyAdapterProps } from './types';
|
|
4
3
|
export declare const LegacyAdapter: (props: LegacyAdapterProps) => JSX.Element;
|
|
5
|
-
export {};
|
|
6
4
|
//# sourceMappingURL=legacy-adapter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"legacy-adapter.d.ts","sourceRoot":"","sources":["../../src/color-picker/legacy-adapter.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"legacy-adapter.d.ts","sourceRoot":"","sources":["../../src/color-picker/legacy-adapter.tsx"],"names":[],"mappings":";AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAGlD,eAAO,MAAM,aAAa,UAAY,kBAAkB,gBAEvD,CAAC"}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
onChange: (nextColor: Colord) => void;
|
|
7
|
-
}
|
|
2
|
+
/**
|
|
3
|
+
* Internal dependencies
|
|
4
|
+
*/
|
|
5
|
+
import type { PickerProps } from './types';
|
|
8
6
|
export declare const Picker: ({ color, enableAlpha, onChange }: PickerProps) => JSX.Element;
|
|
9
|
-
export {};
|
|
10
7
|
//# sourceMappingURL=picker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"picker.d.ts","sourceRoot":"","sources":["../../src/color-picker/picker.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"picker.d.ts","sourceRoot":"","sources":["../../src/color-picker/picker.tsx"],"names":[],"mappings":";AAUA;;GAEG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,eAAO,MAAM,MAAM,qCAAuC,WAAW,gBAcpE,CAAC"}
|
|
@@ -1,13 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
* External dependencies
|
|
4
|
-
*/
|
|
5
|
-
import { Colord } from 'colord';
|
|
6
|
-
interface RgbInputProps {
|
|
7
|
-
color: Colord;
|
|
8
|
-
onChange: (nextColor: Colord) => void;
|
|
9
|
-
enableAlpha: boolean;
|
|
10
|
-
}
|
|
2
|
+
import type { RgbInputProps } from './types';
|
|
11
3
|
export declare const RgbInput: ({ color, onChange, enableAlpha }: RgbInputProps) => JSX.Element;
|
|
12
|
-
export {};
|
|
13
4
|
//# sourceMappingURL=rgb-input.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rgb-input.d.ts","sourceRoot":"","sources":["../../src/color-picker/rgb-input.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"rgb-input.d.ts","sourceRoot":"","sources":["../../src/color-picker/rgb-input.tsx"],"names":[],"mappings":";AASA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,eAAO,MAAM,QAAQ,qCAAuC,aAAa,gBAwDxE,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* External dependencies
|
|
4
|
+
*/
|
|
5
|
+
import type { ComponentMeta, ComponentStory } from '@storybook/react';
|
|
6
|
+
/**
|
|
7
|
+
* Internal dependencies
|
|
8
|
+
*/
|
|
9
|
+
import { ColorPicker } from '../component';
|
|
10
|
+
declare const meta: ComponentMeta<typeof ColorPicker>;
|
|
11
|
+
export default meta;
|
|
12
|
+
export declare const Default: ComponentStory<import("../../ui/context").WordPressComponent<import("react").ElementType<any>, {
|
|
13
|
+
enableAlpha?: boolean | undefined;
|
|
14
|
+
color?: string | undefined;
|
|
15
|
+
onChange?: ((color: string) => void) | undefined;
|
|
16
|
+
defaultValue?: string | undefined;
|
|
17
|
+
copyFormat?: import("../types").ColorType | undefined;
|
|
18
|
+
} & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>>, "defaultValue" | "onChange" | "color" | "children" | "as" | "enableAlpha" | "copyFormat"> & import("react").RefAttributes<any>, boolean>>;
|
|
19
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/color-picker/stories/index.tsx"],"names":[],"mappings":";AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAOtE;;GAEG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,QAAA,MAAM,IAAI,EAAE,aAAa,CAAE,OAAO,WAAW,CAc5C,CAAC;AACF,eAAe,IAAI,CAAC;AAoBpB,eAAO,MAAM,OAAO;;;;;;yTAAsB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/color-picker/test/index.tsx"],"names":[],"mappings":""}
|