@wordpress/components 30.0.0 → 30.1.1-next.46f643fa0.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 +20 -0
- package/build/color-picker/styles.js +7 -7
- package/build/color-picker/styles.js.map +1 -1
- package/build/palette-edit/index.js +1 -1
- package/build/palette-edit/index.js.map +1 -1
- package/build/private-apis.js +5 -1
- package/build/private-apis.js.map +1 -1
- package/build/range-control/index.js +1 -1
- package/build/range-control/index.js.map +1 -1
- package/build/range-control/styles/range-control-styles.js +35 -35
- package/build/range-control/styles/range-control-styles.js.map +1 -1
- package/build/range-control/tooltip.js +15 -15
- package/build/range-control/tooltip.js.map +1 -1
- package/build/range-control/types.js.map +1 -1
- package/build/textarea-control/index.js +7 -1
- package/build/textarea-control/index.js.map +1 -1
- package/build-module/color-picker/styles.js +7 -7
- package/build-module/color-picker/styles.js.map +1 -1
- package/build-module/palette-edit/index.js +2 -2
- package/build-module/palette-edit/index.js.map +1 -1
- package/build-module/private-apis.js +5 -1
- package/build-module/private-apis.js.map +1 -1
- package/build-module/range-control/index.js +1 -1
- package/build-module/range-control/index.js.map +1 -1
- package/build-module/range-control/styles/range-control-styles.js +35 -35
- package/build-module/range-control/styles/range-control-styles.js.map +1 -1
- package/build-module/range-control/tooltip.js +15 -15
- package/build-module/range-control/tooltip.js.map +1 -1
- package/build-module/range-control/types.js.map +1 -1
- package/build-module/textarea-control/index.js +7 -1
- package/build-module/textarea-control/index.js.map +1 -1
- package/build-style/style-rtl.css +19 -50
- package/build-style/style.css +19 -50
- package/build-types/box-control/utils.d.ts +7 -7
- package/build-types/calendar/utils/use-localization-props.d.ts +3 -3
- package/build-types/color-picker/styles.d.ts.map +1 -1
- package/build-types/custom-gradient-picker/constants.d.ts +2 -2
- package/build-types/dimension-control/sizes.d.ts +5 -5
- package/build-types/font-size-picker/constants.d.ts +2 -2
- package/build-types/font-size-picker/constants.d.ts.map +1 -1
- package/build-types/private-apis.d.ts.map +1 -1
- package/build-types/range-control/types.d.ts +2 -2
- package/build-types/range-control/types.d.ts.map +1 -1
- package/build-types/text-control/stories/index.story.d.ts.map +1 -1
- package/build-types/textarea-control/index.d.ts.map +1 -1
- package/package.json +19 -19
- package/src/color-picker/styles.ts +10 -0
- package/src/modal/style.scss +2 -2
- package/src/palette-edit/index.tsx +3 -3
- package/src/private-apis.ts +8 -0
- package/src/range-control/index.tsx +1 -1
- package/src/range-control/styles/range-control-styles.ts +3 -3
- package/src/range-control/tooltip.tsx +13 -13
- package/src/range-control/types.ts +2 -2
- package/src/text-control/stories/index.story.tsx +1 -0
- package/src/text-control/style.scss +6 -1
- package/src/textarea-control/index.tsx +8 -1
- package/src/utils/theme-variables.scss +3 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["css","NumberControl","COLORS","rtl","CONFIG","space","rangeHeightValue","railHeight","rangeHeight","height","minHeight","process","env","NODE_ENV","thumbSize","deprecatedHeight","__next40pxDefaultSize","Root","_styled","target","label","wrapperColor","color","ui","borderFocus","wrapperMargin","marks","__nextHasNoMarginBottom","marginBottom","undefined","Wrapper","shouldForwardProp","prop","includes","BeforeIconWrapper","marginRight","AfterIconWrapper","marginLeft","railBackgroundColor","disabled","railColor","background","backgroundDisabled","Rail","gray","radiusFull","trackBackgroundColor","trackColor","Track","MarksWrapper","name","styles","map","toString","_EMOTION_STRINGIFIED_CSS_ERROR__","Mark","markLabelFill","isFilled","MarkLabel","left","transform","thumbColor","theme","accent","ThumbWrapper","radiusRound","thumbFocus","isFocused","Thumb","elevationXSmall","InputRange","tooltipShow","show","_ref","_ref2","tooltipPosition","position","isBottom","Tooltip","radiusSmall","InputNumber","ActionRightWrapper"],"sources":["@wordpress/components/src/range-control/styles/range-control-styles.ts"],"sourcesContent":["/**\n * External dependencies\n */\nimport { css } from '@emotion/react';\nimport styled from '@emotion/styled';\n\n/**\n * Internal dependencies\n */\nimport NumberControl from '../../number-control';\nimport { COLORS, rtl, CONFIG } from '../../utils';\nimport { space } from '../../utils/space';\n\nimport type {\n\tRangeMarkProps,\n\tRailProps,\n\tThumbProps,\n\tTooltipProps,\n\tTrackProps,\n\tWrapperProps,\n\tRangeControlProps,\n} from '../types';\n\nconst rangeHeightValue = 30;\nconst railHeight = 4;\nconst rangeHeight = () =>\n\tcss( { height: rangeHeightValue, minHeight: rangeHeightValue } );\nconst thumbSize = 12;\n\nconst deprecatedHeight = ( {\n\t__next40pxDefaultSize,\n}: Pick< RangeControlProps, '__next40pxDefaultSize' > ) =>\n\t! __next40pxDefaultSize && css( { minHeight: rangeHeightValue } );\n\ntype RootProps = Pick< RangeControlProps, '__next40pxDefaultSize' >;\nexport const Root = styled.div< RootProps >`\n\t-webkit-tap-highlight-color: transparent;\n\talign-items: center;\n\tdisplay: flex;\n\tjustify-content: flex-start;\n\tpadding: 0;\n\tposition: relative;\n\ttouch-action: none;\n\twidth: 100%;\n\tmin-height: 40px;\n\t/* TODO: remove after removing the __next40pxDefaultSize prop */\n\t${ deprecatedHeight };\n`;\n\nconst wrapperColor = ( { color = COLORS.ui.borderFocus }: WrapperProps ) =>\n\tcss( { color } );\n\nconst wrapperMargin = ( { marks, __nextHasNoMarginBottom }: WrapperProps ) => {\n\tif ( ! __nextHasNoMarginBottom ) {\n\t\treturn css( { marginBottom: marks ? 16 : undefined } );\n\t}\n\treturn '';\n};\n\nexport const Wrapper = styled( 'div', {\n\tshouldForwardProp: ( prop: string ) =>\n\t\t! [ 'color', '__nextHasNoMarginBottom', 'marks' ].includes( prop ),\n} )< WrapperProps >`\n\tdisplay: block;\n\tflex: 1;\n\tposition: relative;\n\twidth: 100%;\n\n\t${ wrapperColor };\n\t${ rangeHeight };\n\t${ wrapperMargin };\n`;\n\nexport const BeforeIconWrapper = styled.span`\n\tdisplay: flex; // ensures the height isn't affected by line-height\n\tmargin-top: ${ railHeight }px;\n\n\t${ rtl( { marginRight: 6 } ) }\n`;\n\nexport const AfterIconWrapper = styled.span`\n\tdisplay: flex; // ensures the height isn't affected by line-height\n\tmargin-top: ${ railHeight }px;\n\n\t${ rtl( { marginLeft: 6 } ) }\n`;\n\nconst railBackgroundColor = ( { disabled, railColor }: RailProps ) => {\n\tlet background = railColor || '';\n\n\tif ( disabled ) {\n\t\tbackground = COLORS.ui.backgroundDisabled;\n\t}\n\n\treturn css( { background } );\n};\n\nexport const Rail = styled.span`\n\tbackground-color: ${ COLORS.gray[ 300 ] };\n\tleft: 0;\n\tpointer-events: none;\n\tright: 0;\n\tdisplay: block;\n\theight: ${ railHeight }px;\n\tposition: absolute;\n\tmargin-top: ${ ( rangeHeightValue - railHeight ) / 2 }px;\n\ttop: 0;\n\tborder-radius: ${ CONFIG.radiusFull };\n\n\t${ railBackgroundColor };\n`;\n\nconst trackBackgroundColor = ( { disabled, trackColor }: TrackProps ) => {\n\tlet background = trackColor || 'currentColor';\n\n\tif ( disabled ) {\n\t\tbackground = COLORS.gray[ 400 ];\n\t}\n\n\treturn css( { background } );\n};\n\nexport const Track = styled.span`\n\tbackground-color: currentColor;\n\tborder-radius: ${ CONFIG.radiusFull };\n\theight: ${ railHeight }px;\n\tpointer-events: none;\n\tdisplay: block;\n\tposition: absolute;\n\tmargin-top: ${ ( rangeHeightValue - railHeight ) / 2 }px;\n\ttop: 0;\n\n\t.is-marked & {\n\t\t@media not ( prefers-reduced-motion ) {\n\t\t\ttransition: width ease 0.1s;\n\t\t}\n\t}\n\n\t${ trackBackgroundColor };\n`;\n\nexport const MarksWrapper = styled.span`\n\tdisplay: block;\n\tpointer-events: none;\n\tposition: relative;\n\twidth: 100%;\n\tuser-select: none;\n\tmargin-top: 17px;\n`;\n\nexport const Mark = styled.span`\n\tposition: absolute;\n\tleft: 0;\n\ttop: -4px;\n\theight: 4px;\n\twidth: 2px;\n\ttransform: translateX( -50% );\n\tbackground-color: ${ COLORS.ui.background };\n\tz-index: 1;\n`;\n\nconst markLabelFill = ( { isFilled }: RangeMarkProps ) => {\n\treturn css( {\n\t\tcolor: isFilled ? COLORS.gray[ 700 ] : COLORS.gray[ 300 ],\n\t} );\n};\n\nexport const MarkLabel = styled.span`\n\tcolor: ${ COLORS.gray[ 300 ] };\n\tfont-size: 11px;\n\tposition: absolute;\n\ttop: 8px;\n\twhite-space: nowrap;\n\n\t${ rtl( { left: 0 } ) };\n\t${ rtl(\n\t\t{ transform: 'translateX( -50% )' },\n\t\t{ transform: 'translateX( 50% )' }\n\t) };\n\n\t${ markLabelFill };\n`;\n\nconst thumbColor = ( { disabled }: ThumbProps ) =>\n\tdisabled\n\t\t? css`\n\t\t\t\tbackground-color: ${ COLORS.gray[ 400 ] };\n\t\t `\n\t\t: css`\n\t\t\t\tbackground-color: ${ COLORS.theme.accent };\n\t\t `;\n\nexport const ThumbWrapper = styled.span`\n\talign-items: center;\n\tdisplay: flex;\n\theight: ${ thumbSize }px;\n\tjustify-content: center;\n\tmargin-top: ${ ( rangeHeightValue - thumbSize ) / 2 }px;\n\toutline: 0;\n\tpointer-events: none;\n\tposition: absolute;\n\ttop: 0;\n\tuser-select: none;\n\twidth: ${ thumbSize }px;\n\tborder-radius: ${ CONFIG.radiusRound };\n\tz-index: 3;\n\n\t.is-marked & {\n\t\t@media not ( prefers-reduced-motion ) {\n\t\t\ttransition: left ease 0.1s;\n\t\t}\n\t}\n\n\t${ thumbColor };\n\t${ rtl( { marginLeft: -10 } ) };\n\t${ rtl(\n\t\t{ transform: 'translateX( 4.5px )' },\n\t\t{ transform: 'translateX( -4.5px )' }\n\t) };\n`;\n\nconst thumbFocus = ( { isFocused }: ThumbProps ) => {\n\treturn isFocused\n\t\t? css`\n\t\t\t\t&::before {\n\t\t\t\t\tcontent: ' ';\n\t\t\t\t\tposition: absolute;\n\t\t\t\t\tbackground-color: ${ COLORS.theme.accent };\n\t\t\t\t\topacity: 0.4;\n\t\t\t\t\tborder-radius: ${ CONFIG.radiusRound };\n\t\t\t\t\theight: ${ thumbSize + 8 }px;\n\t\t\t\t\twidth: ${ thumbSize + 8 }px;\n\t\t\t\t\ttop: -4px;\n\t\t\t\t\tleft: -4px;\n\t\t\t\t}\n\t\t `\n\t\t: '';\n};\n\nexport const Thumb = styled.span< ThumbProps >`\n\talign-items: center;\n\tborder-radius: ${ CONFIG.radiusRound };\n\theight: 100%;\n\toutline: 0;\n\tposition: absolute;\n\tuser-select: none;\n\twidth: 100%;\n\tbox-shadow: ${ CONFIG.elevationXSmall };\n\n\t${ thumbColor };\n\t${ thumbFocus };\n`;\n\nexport const InputRange = styled.input`\n\tbox-sizing: border-box;\n\tcursor: pointer;\n\tdisplay: block;\n\theight: 100%;\n\tleft: 0;\n\tmargin: 0 -${ thumbSize / 2 }px;\n\topacity: 0;\n\toutline: none;\n\tposition: absolute;\n\tright: 0;\n\ttop: 0;\n\twidth: calc( 100% + ${ thumbSize }px );\n`;\n\nconst tooltipShow = ( { show }: TooltipProps ) => {\n\treturn css`\n\t\tdisplay: ${ show ? 'inline-block' : 'none' };\n\t\topacity: ${ show ? 1 : 0 };\n\n\t\t@media not ( prefers-reduced-motion ) {\n\t\t\ttransition:\n\t\t\t\topacity 120ms ease,\n\t\t\t\tdisplay 120ms ease allow-discrete;\n\t\t}\n\n\t\t@starting-style {\n\t\t\topacity: 0;\n\t\t}\n\t`;\n};\n\nconst tooltipPosition = ( { position }: TooltipProps ) => {\n\tconst isBottom = position === 'bottom';\n\n\tif ( isBottom ) {\n\t\treturn css`\n\t\t\tbottom: -80%;\n\t\t`;\n\t}\n\n\treturn css`\n\t\ttop: -80%;\n\t`;\n};\n\nexport const Tooltip = styled.span< TooltipProps >`\n\tbackground: rgba( 0, 0, 0, 0.8 );\n\tborder-radius: ${ CONFIG.radiusSmall };\n\tcolor: white;\n\tfont-size: 12px;\n\tmin-width: 32px;\n\tpadding: 4px 8px;\n\tpointer-events: none;\n\tposition: absolute;\n\ttext-align: center;\n\tuser-select: none;\n\tline-height: 1.4;\n\n\t${ tooltipShow };\n\n\t${ tooltipPosition };\n\t${ rtl(\n\t\t{ transform: 'translateX(-50%)' },\n\t\t{ transform: 'translateX(50%)' }\n\t) }\n`;\n\n// @todo Refactor RangeControl with latest HStack configuration\n// @see: packages/components/src/h-stack\nexport const InputNumber = styled( NumberControl )`\n\tdisplay: inline-block;\n\tfont-size: 13px;\n\tmargin-top: 0;\n\n\tinput[type='number']& {\n\t\t${ rangeHeight };\n\t}\n\n\t${ rtl( { marginLeft: `${ space( 4 ) } !important` } ) }\n`;\n\nexport const ActionRightWrapper = styled.span`\n\tdisplay: block;\n\tmargin-top: 0;\n\n\tbutton,\n\tbutton.is-small {\n\t\tmargin-left: 0;\n\t\t${ rangeHeight };\n\t}\n\n\t${ rtl( { marginLeft: 8 } ) }\n`;\n"],"mappings":";;AAAA;AACA;AACA;AACA,SAASA,GAAG,QAAQ,gBAAgB;AAGpC;AACA;AACA;AACA,OAAOC,aAAa,MAAM,sBAAsB;AAChD,SAASC,MAAM,EAAEC,GAAG,EAAEC,MAAM,QAAQ,aAAa;AACjD,SAASC,KAAK,QAAQ,mBAAmB;AAYzC,MAAMC,gBAAgB,GAAG,EAAE;AAC3B,MAAMC,UAAU,GAAG,CAAC;AACpB,MAAMC,WAAW,GAAGA,CAAA,kBACnBR,GAAG,CAAE;EAAES,MAAM,EAAEH,gBAAgB;EAAEI,SAAS,EAAEJ;AAAiB,CAAC,EAAAK,OAAA,CAAAC,GAAA,CAAAC,QAAA,gDAAAF,OAAA,CAAAC,GAAA,CAAAC,QAAA,0tVAAC,CAAC;AACjE,MAAMC,SAAS,GAAG,EAAE;AAEpB,MAAMC,gBAAgB,GAAGA,CAAE;EAC1BC;AACmD,CAAC,KACpD,CAAEA,qBAAqB,iBAAIhB,GAAG,CAAE;EAAEU,SAAS,EAAEJ;AAAiB,CAAC,EAAAK,OAAA,CAAAC,GAAA,CAAAC,QAAA,qDAAAF,OAAA,CAAAC,GAAA,CAAAC,QAAA,0tVAAC,CAAC;AAGlE,OAAO,MAAMI,IAAI,gBAAAC,OAAA,QAAAP,OA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AAA,SAAAP,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAM,MAAA;AAAA;EAAAA,MAAA;EAAAC,KAAA;AAAA,uEAO1BZ,WAAW,QAGZL,GAAG,CAAE;EAAEkC,UAAU,EAAE;AAAE,CAAE,CAAC,SAAA1B,OAAA,CAAAC,GAAA,CAAAC,QAAA,4tVAC3B","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["css","NumberControl","COLORS","rtl","CONFIG","space","rangeHeightValue","railHeight","rangeHeight","height","minHeight","process","env","NODE_ENV","thumbSize","deprecatedHeight","__next40pxDefaultSize","Root","_styled","target","label","wrapperColor","color","ui","borderFocus","wrapperMargin","marks","__nextHasNoMarginBottom","marginBottom","undefined","Wrapper","shouldForwardProp","prop","includes","BeforeIconWrapper","marginRight","AfterIconWrapper","marginLeft","railBackgroundColor","disabled","railColor","background","backgroundDisabled","Rail","gray","radiusFull","trackBackgroundColor","trackColor","Track","MarksWrapper","name","styles","map","toString","_EMOTION_STRINGIFIED_CSS_ERROR__","Mark","markLabelFill","isFilled","MarkLabel","left","transform","thumbColor","theme","accent","ThumbWrapper","radiusRound","thumbFocus","isFocused","Thumb","elevationXSmall","InputRange","tooltipShow","show","_ref","_ref2","tooltipPlacement","placement","isBottom","Tooltip","radiusSmall","InputNumber","ActionRightWrapper"],"sources":["@wordpress/components/src/range-control/styles/range-control-styles.ts"],"sourcesContent":["/**\n * External dependencies\n */\nimport { css } from '@emotion/react';\nimport styled from '@emotion/styled';\n\n/**\n * Internal dependencies\n */\nimport NumberControl from '../../number-control';\nimport { COLORS, rtl, CONFIG } from '../../utils';\nimport { space } from '../../utils/space';\n\nimport type {\n\tRangeMarkProps,\n\tRailProps,\n\tThumbProps,\n\tTooltipProps,\n\tTrackProps,\n\tWrapperProps,\n\tRangeControlProps,\n} from '../types';\n\nconst rangeHeightValue = 30;\nconst railHeight = 4;\nconst rangeHeight = () =>\n\tcss( { height: rangeHeightValue, minHeight: rangeHeightValue } );\nconst thumbSize = 12;\n\nconst deprecatedHeight = ( {\n\t__next40pxDefaultSize,\n}: Pick< RangeControlProps, '__next40pxDefaultSize' > ) =>\n\t! __next40pxDefaultSize && css( { minHeight: rangeHeightValue } );\n\ntype RootProps = Pick< RangeControlProps, '__next40pxDefaultSize' >;\nexport const Root = styled.div< RootProps >`\n\t-webkit-tap-highlight-color: transparent;\n\talign-items: center;\n\tdisplay: flex;\n\tjustify-content: flex-start;\n\tpadding: 0;\n\tposition: relative;\n\ttouch-action: none;\n\twidth: 100%;\n\tmin-height: 40px;\n\t/* TODO: remove after removing the __next40pxDefaultSize prop */\n\t${ deprecatedHeight };\n`;\n\nconst wrapperColor = ( { color = COLORS.ui.borderFocus }: WrapperProps ) =>\n\tcss( { color } );\n\nconst wrapperMargin = ( { marks, __nextHasNoMarginBottom }: WrapperProps ) => {\n\tif ( ! __nextHasNoMarginBottom ) {\n\t\treturn css( { marginBottom: marks ? 16 : undefined } );\n\t}\n\treturn '';\n};\n\nexport const Wrapper = styled( 'div', {\n\tshouldForwardProp: ( prop: string ) =>\n\t\t! [ 'color', '__nextHasNoMarginBottom', 'marks' ].includes( prop ),\n} )< WrapperProps >`\n\tdisplay: block;\n\tflex: 1;\n\tposition: relative;\n\twidth: 100%;\n\n\t${ wrapperColor };\n\t${ rangeHeight };\n\t${ wrapperMargin };\n`;\n\nexport const BeforeIconWrapper = styled.span`\n\tdisplay: flex; // ensures the height isn't affected by line-height\n\tmargin-top: ${ railHeight }px;\n\n\t${ rtl( { marginRight: 6 } ) }\n`;\n\nexport const AfterIconWrapper = styled.span`\n\tdisplay: flex; // ensures the height isn't affected by line-height\n\tmargin-top: ${ railHeight }px;\n\n\t${ rtl( { marginLeft: 6 } ) }\n`;\n\nconst railBackgroundColor = ( { disabled, railColor }: RailProps ) => {\n\tlet background = railColor || '';\n\n\tif ( disabled ) {\n\t\tbackground = COLORS.ui.backgroundDisabled;\n\t}\n\n\treturn css( { background } );\n};\n\nexport const Rail = styled.span`\n\tbackground-color: ${ COLORS.gray[ 300 ] };\n\tleft: 0;\n\tpointer-events: none;\n\tright: 0;\n\tdisplay: block;\n\theight: ${ railHeight }px;\n\tposition: absolute;\n\tmargin-top: ${ ( rangeHeightValue - railHeight ) / 2 }px;\n\ttop: 0;\n\tborder-radius: ${ CONFIG.radiusFull };\n\n\t${ railBackgroundColor };\n`;\n\nconst trackBackgroundColor = ( { disabled, trackColor }: TrackProps ) => {\n\tlet background = trackColor || 'currentColor';\n\n\tif ( disabled ) {\n\t\tbackground = COLORS.gray[ 400 ];\n\t}\n\n\treturn css( { background } );\n};\n\nexport const Track = styled.span`\n\tbackground-color: currentColor;\n\tborder-radius: ${ CONFIG.radiusFull };\n\theight: ${ railHeight }px;\n\tpointer-events: none;\n\tdisplay: block;\n\tposition: absolute;\n\tmargin-top: ${ ( rangeHeightValue - railHeight ) / 2 }px;\n\ttop: 0;\n\n\t.is-marked & {\n\t\t@media not ( prefers-reduced-motion ) {\n\t\t\ttransition: width ease 0.1s;\n\t\t}\n\t}\n\n\t${ trackBackgroundColor };\n`;\n\nexport const MarksWrapper = styled.span`\n\tdisplay: block;\n\tpointer-events: none;\n\tposition: relative;\n\twidth: 100%;\n\tuser-select: none;\n\tmargin-top: 17px;\n`;\n\nexport const Mark = styled.span`\n\tposition: absolute;\n\tleft: 0;\n\ttop: -4px;\n\theight: 4px;\n\twidth: 2px;\n\ttransform: translateX( -50% );\n\tbackground-color: ${ COLORS.ui.background };\n\tz-index: 1;\n`;\n\nconst markLabelFill = ( { isFilled }: RangeMarkProps ) => {\n\treturn css( {\n\t\tcolor: isFilled ? COLORS.gray[ 700 ] : COLORS.gray[ 300 ],\n\t} );\n};\n\nexport const MarkLabel = styled.span`\n\tcolor: ${ COLORS.gray[ 300 ] };\n\tfont-size: 11px;\n\tposition: absolute;\n\ttop: 8px;\n\twhite-space: nowrap;\n\n\t${ rtl( { left: 0 } ) };\n\t${ rtl(\n\t\t{ transform: 'translateX( -50% )' },\n\t\t{ transform: 'translateX( 50% )' }\n\t) };\n\n\t${ markLabelFill };\n`;\n\nconst thumbColor = ( { disabled }: ThumbProps ) =>\n\tdisabled\n\t\t? css`\n\t\t\t\tbackground-color: ${ COLORS.gray[ 400 ] };\n\t\t `\n\t\t: css`\n\t\t\t\tbackground-color: ${ COLORS.theme.accent };\n\t\t `;\n\nexport const ThumbWrapper = styled.span`\n\talign-items: center;\n\tdisplay: flex;\n\theight: ${ thumbSize }px;\n\tjustify-content: center;\n\tmargin-top: ${ ( rangeHeightValue - thumbSize ) / 2 }px;\n\toutline: 0;\n\tpointer-events: none;\n\tposition: absolute;\n\ttop: 0;\n\tuser-select: none;\n\twidth: ${ thumbSize }px;\n\tborder-radius: ${ CONFIG.radiusRound };\n\tz-index: 3;\n\n\t.is-marked & {\n\t\t@media not ( prefers-reduced-motion ) {\n\t\t\ttransition: left ease 0.1s;\n\t\t}\n\t}\n\n\t${ thumbColor };\n\t${ rtl( { marginLeft: -10 } ) };\n\t${ rtl(\n\t\t{ transform: 'translateX( 4.5px )' },\n\t\t{ transform: 'translateX( -4.5px )' }\n\t) };\n`;\n\nconst thumbFocus = ( { isFocused }: ThumbProps ) => {\n\treturn isFocused\n\t\t? css`\n\t\t\t\t&::before {\n\t\t\t\t\tcontent: ' ';\n\t\t\t\t\tposition: absolute;\n\t\t\t\t\tbackground-color: ${ COLORS.theme.accent };\n\t\t\t\t\topacity: 0.4;\n\t\t\t\t\tborder-radius: ${ CONFIG.radiusRound };\n\t\t\t\t\theight: ${ thumbSize + 8 }px;\n\t\t\t\t\twidth: ${ thumbSize + 8 }px;\n\t\t\t\t\ttop: -4px;\n\t\t\t\t\tleft: -4px;\n\t\t\t\t}\n\t\t `\n\t\t: '';\n};\n\nexport const Thumb = styled.span< ThumbProps >`\n\talign-items: center;\n\tborder-radius: ${ CONFIG.radiusRound };\n\theight: 100%;\n\toutline: 0;\n\tposition: absolute;\n\tuser-select: none;\n\twidth: 100%;\n\tbox-shadow: ${ CONFIG.elevationXSmall };\n\n\t${ thumbColor };\n\t${ thumbFocus };\n`;\n\nexport const InputRange = styled.input`\n\tbox-sizing: border-box;\n\tcursor: pointer;\n\tdisplay: block;\n\theight: 100%;\n\tleft: 0;\n\tmargin: 0 -${ thumbSize / 2 }px;\n\topacity: 0;\n\toutline: none;\n\tposition: absolute;\n\tright: 0;\n\ttop: 0;\n\twidth: calc( 100% + ${ thumbSize }px );\n`;\n\nconst tooltipShow = ( { show }: TooltipProps ) => {\n\treturn css`\n\t\tdisplay: ${ show ? 'inline-block' : 'none' };\n\t\topacity: ${ show ? 1 : 0 };\n\n\t\t@media not ( prefers-reduced-motion ) {\n\t\t\ttransition:\n\t\t\t\topacity 120ms ease,\n\t\t\t\tdisplay 120ms ease allow-discrete;\n\t\t}\n\n\t\t@starting-style {\n\t\t\topacity: 0;\n\t\t}\n\t`;\n};\n\nconst tooltipPlacement = ( { placement }: TooltipProps ) => {\n\tconst isBottom = placement === 'bottom';\n\n\tif ( isBottom ) {\n\t\treturn css`\n\t\t\tbottom: -80%;\n\t\t`;\n\t}\n\n\treturn css`\n\t\ttop: -80%;\n\t`;\n};\n\nexport const Tooltip = styled.span< TooltipProps >`\n\tbackground: rgba( 0, 0, 0, 0.8 );\n\tborder-radius: ${ CONFIG.radiusSmall };\n\tcolor: white;\n\tfont-size: 12px;\n\tmin-width: 32px;\n\tpadding: 4px 8px;\n\tpointer-events: none;\n\tposition: absolute;\n\ttext-align: center;\n\tuser-select: none;\n\tline-height: 1.4;\n\n\t${ tooltipShow };\n\n\t${ tooltipPlacement };\n\t${ rtl(\n\t\t{ transform: 'translateX(-50%)' },\n\t\t{ transform: 'translateX(50%)' }\n\t) }\n`;\n\n// @todo Refactor RangeControl with latest HStack configuration\n// @see: packages/components/src/h-stack\nexport const InputNumber = styled( NumberControl )`\n\tdisplay: inline-block;\n\tfont-size: 13px;\n\tmargin-top: 0;\n\n\tinput[type='number']& {\n\t\t${ rangeHeight };\n\t}\n\n\t${ rtl( { marginLeft: `${ space( 4 ) } !important` } ) }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ip(props) {
|
|
|
17
17
|
const {
|
|
18
18
|
className,
|
|
19
19
|
inputRef,
|
|
20
|
-
|
|
20
|
+
tooltipPlacement,
|
|
21
21
|
show = false,
|
|
22
22
|
style = {},
|
|
23
23
|
value = 0,
|
|
@@ -25,9 +25,9 @@ export default function SimpleTooltip(props) {
|
|
|
25
25
|
zIndex = 100,
|
|
26
26
|
...restProps
|
|
27
27
|
} = props;
|
|
28
|
-
const
|
|
28
|
+
const placement = useTooltipPlacement({
|
|
29
29
|
inputRef,
|
|
30
|
-
|
|
30
|
+
tooltipPlacement
|
|
31
31
|
});
|
|
32
32
|
const classes = clsx('components-simple-tooltip', className);
|
|
33
33
|
const styles = {
|
|
@@ -38,32 +38,32 @@ export default function SimpleTooltip(props) {
|
|
|
38
38
|
...restProps,
|
|
39
39
|
"aria-hidden": "false",
|
|
40
40
|
className: classes,
|
|
41
|
-
|
|
41
|
+
placement: placement,
|
|
42
42
|
show: show,
|
|
43
43
|
role: "tooltip",
|
|
44
44
|
style: styles,
|
|
45
45
|
children: renderTooltipContent(value)
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function useTooltipPlacement({
|
|
49
49
|
inputRef,
|
|
50
|
-
|
|
50
|
+
tooltipPlacement
|
|
51
51
|
}) {
|
|
52
|
-
const [
|
|
53
|
-
const
|
|
52
|
+
const [placement, setPlacement] = useState();
|
|
53
|
+
const setTooltipPlacement = useCallback(() => {
|
|
54
54
|
if (inputRef && inputRef.current) {
|
|
55
|
-
|
|
55
|
+
setPlacement(tooltipPlacement);
|
|
56
56
|
}
|
|
57
|
-
}, [
|
|
57
|
+
}, [tooltipPlacement, inputRef]);
|
|
58
58
|
useEffect(() => {
|
|
59
|
-
|
|
60
|
-
}, [
|
|
59
|
+
setTooltipPlacement();
|
|
60
|
+
}, [setTooltipPlacement]);
|
|
61
61
|
useEffect(() => {
|
|
62
|
-
window.addEventListener('resize',
|
|
62
|
+
window.addEventListener('resize', setTooltipPlacement);
|
|
63
63
|
return () => {
|
|
64
|
-
window.removeEventListener('resize',
|
|
64
|
+
window.removeEventListener('resize', setTooltipPlacement);
|
|
65
65
|
};
|
|
66
66
|
});
|
|
67
|
-
return
|
|
67
|
+
return placement;
|
|
68
68
|
}
|
|
69
69
|
//# sourceMappingURL=tooltip.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["clsx","useCallback","useEffect","useState","Tooltip","jsx","_jsx","SimpleTooltip","props","className","inputRef","
|
|
1
|
+
{"version":3,"names":["clsx","useCallback","useEffect","useState","Tooltip","jsx","_jsx","SimpleTooltip","props","className","inputRef","tooltipPlacement","show","style","value","renderTooltipContent","v","zIndex","restProps","placement","useTooltipPlacement","classes","styles","role","children","setPlacement","setTooltipPlacement","current","window","addEventListener","removeEventListener"],"sources":["@wordpress/components/src/range-control/tooltip.tsx"],"sourcesContent":["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * WordPress dependencies\n */\nimport { useCallback, useEffect, useState } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport { Tooltip } from './styles/range-control-styles';\n\nimport type { TooltipProps } from './types';\nimport type { WordPressComponentProps } from '../context';\n\nexport default function SimpleTooltip(\n\tprops: WordPressComponentProps< TooltipProps, 'span' >\n) {\n\tconst {\n\t\tclassName,\n\t\tinputRef,\n\t\ttooltipPlacement,\n\t\tshow = false,\n\t\tstyle = {},\n\t\tvalue = 0,\n\t\trenderTooltipContent = ( v ) => v,\n\t\tzIndex = 100,\n\t\t...restProps\n\t} = props;\n\tconst placement = useTooltipPlacement( { inputRef, tooltipPlacement } );\n\tconst classes = clsx( 'components-simple-tooltip', className );\n\tconst styles = {\n\t\t...style,\n\t\tzIndex,\n\t};\n\n\treturn (\n\t\t<Tooltip\n\t\t\t{ ...restProps }\n\t\t\taria-hidden=\"false\"\n\t\t\tclassName={ classes }\n\t\t\tplacement={ placement }\n\t\t\tshow={ show }\n\t\t\trole=\"tooltip\"\n\t\t\tstyle={ styles }\n\t\t>\n\t\t\t{ renderTooltipContent( value ) }\n\t\t</Tooltip>\n\t);\n}\n\nfunction useTooltipPlacement( { inputRef, tooltipPlacement }: TooltipProps ) {\n\tconst [ placement, setPlacement ] = useState< string >();\n\n\tconst setTooltipPlacement = useCallback( () => {\n\t\tif ( inputRef && inputRef.current ) {\n\t\t\tsetPlacement( tooltipPlacement );\n\t\t}\n\t}, [ tooltipPlacement, inputRef ] );\n\n\tuseEffect( () => {\n\t\tsetTooltipPlacement();\n\t}, [ setTooltipPlacement ] );\n\n\tuseEffect( () => {\n\t\twindow.addEventListener( 'resize', setTooltipPlacement );\n\n\t\treturn () => {\n\t\t\twindow.removeEventListener( 'resize', setTooltipPlacement );\n\t\t};\n\t} );\n\n\treturn placement;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,IAAI,MAAM,MAAM;;AAEvB;AACA;AACA;AACA,SAASC,WAAW,EAAEC,SAAS,EAAEC,QAAQ,QAAQ,oBAAoB;;AAErE;AACA;AACA;AACA,SAASC,OAAO,QAAQ,+BAA+B;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAKxD,eAAe,SAASC,aAAaA,CACpCC,KAAsD,EACrD;EACD,MAAM;IACLC,SAAS;IACTC,QAAQ;IACRC,gBAAgB;IAChBC,IAAI,GAAG,KAAK;IACZC,KAAK,GAAG,CAAC,CAAC;IACVC,KAAK,GAAG,CAAC;IACTC,oBAAoB,GAAKC,CAAC,IAAMA,CAAC;IACjCC,MAAM,GAAG,GAAG;IACZ,GAAGC;EACJ,CAAC,GAAGV,KAAK;EACT,MAAMW,SAAS,GAAGC,mBAAmB,CAAE;IAAEV,QAAQ;IAAEC;EAAiB,CAAE,CAAC;EACvE,MAAMU,OAAO,GAAGrB,IAAI,CAAE,2BAA2B,EAAES,SAAU,CAAC;EAC9D,MAAMa,MAAM,GAAG;IACd,GAAGT,KAAK;IACRI;EACD,CAAC;EAED,oBACCX,IAAA,CAACF,OAAO;IAAA,GACFc,SAAS;IACd,eAAY,OAAO;IACnBT,SAAS,EAAGY,OAAS;IACrBF,SAAS,EAAGA,SAAW;IACvBP,IAAI,EAAGA,IAAM;IACbW,IAAI,EAAC,SAAS;IACdV,KAAK,EAAGS,MAAQ;IAAAE,QAAA,EAEdT,oBAAoB,CAAED,KAAM;EAAC,CACvB,CAAC;AAEZ;AAEA,SAASM,mBAAmBA,CAAE;EAAEV,QAAQ;EAAEC;AAA+B,CAAC,EAAG;EAC5E,MAAM,CAAEQ,SAAS,EAAEM,YAAY,CAAE,GAAGtB,QAAQ,CAAW,CAAC;EAExD,MAAMuB,mBAAmB,GAAGzB,WAAW,CAAE,MAAM;IAC9C,IAAKS,QAAQ,IAAIA,QAAQ,CAACiB,OAAO,EAAG;MACnCF,YAAY,CAAEd,gBAAiB,CAAC;IACjC;EACD,CAAC,EAAE,CAAEA,gBAAgB,EAAED,QAAQ,CAAG,CAAC;EAEnCR,SAAS,CAAE,MAAM;IAChBwB,mBAAmB,CAAC,CAAC;EACtB,CAAC,EAAE,CAAEA,mBAAmB,CAAG,CAAC;EAE5BxB,SAAS,CAAE,MAAM;IAChB0B,MAAM,CAACC,gBAAgB,CAAE,QAAQ,EAAEH,mBAAoB,CAAC;IAExD,OAAO,MAAM;MACZE,MAAM,CAACE,mBAAmB,CAAE,QAAQ,EAAEJ,mBAAoB,CAAC;IAC5D,CAAC;EACF,CAAE,CAAC;EAEH,OAAOP,SAAS;AACjB","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["@wordpress/components/src/range-control/types.ts"],"sourcesContent":["/**\n * External dependencies\n */\nimport type {\n\tCSSProperties,\n\tFocusEventHandler,\n\tMouseEventHandler,\n\tMutableRefObject,\n} from 'react';\n\n/**\n * Internal dependencies\n */\nimport type { BaseControlProps } from '../base-control/types';\nimport type { IconType } from '../icon';\n\nexport type NumericProps = {\n\t/**\n\t * The minimum `value` allowed.\n\t *\n\t * @default 0\n\t */\n\tmin?: number;\n\t/**\n\t * The maximum `value` allowed.\n\t *\n\t * @default 100\n\t */\n\tmax?: number;\n\t/**\n\t * The current value of the range slider.\n\t */\n\tvalue?: number;\n};\n\nexport type RangeMark = { value: number; label?: string };\n// An expanded definition of this type is used in MarkProps to improve Storybook\n// generated docs.\nexport type RangeMarks = boolean | RangeMark[];\n\nexport type MarksProps = NumericProps & {\n\t/**\n\t * Disables the `input`, preventing new values from being applied.\n\t *\n\t * @default false\n\t */\n\tdisabled?: boolean;\n\t/**\n\t * Renders a visual representation of `step` ticks. Custom mark indicators\n\t * can be provided by an `Array`.\n\t *\n\t * @default false\n\t */\n\tmarks?: boolean | { value: number; label?: string }[];\n\t/**\n\t * The minimum amount by which `value` changes. It is also a factor in\n\t * validation as `value` must be a multiple of `step` (offset by `min`) to\n\t * be valid. Accepts the special string value `any` that voids the\n\t * validation constraint and overrides both `withInputField` and\n\t * `showTooltip` props to `false`.\n\t *\n\t * @default 1\n\t */\n\tstep?: number | 'any';\n};\n\nexport type RangeMarkProps = {\n\tisFilled?: boolean;\n\tlabel?: string;\n\tdisabled?: boolean;\n\tkey?: string;\n\tstyle?: CSSProperties;\n};\n\nexport type ControlledRangeValue = number | '' | null;\n\nexport type RangeControlProps = Pick<\n\tBaseControlProps,\n\t'hideLabelFromVision' | 'help' | '__nextHasNoMarginBottom'\n> &\n\tMarksProps & {\n\t\t/**\n\t\t * If this property is added, an Icon component will be rendered\n\t\t * after the slider with the icon equal to afterIcon.\n\t\t *\n\t\t * For more information on `IconType` see the Icon component:\n\t\t * /packages/components/src/icon/index.tsx\n\t\t */\n\t\tafterIcon?: IconType;\n\t\t/**\n\t\t * If this property is true, a button to reset the slider is\n\t\t * rendered.\n\t\t *\n\t\t * @default false\n\t\t */\n\t\tallowReset?: boolean;\n\t\t/**\n\t\t * If this property is added, an Icon component will be rendered\n\t\t * before the slider with the icon equal to beforeIcon.\n\t\t *\n\t\t * For more information on `IconType` see the Icon component:\n\t\t * /packages/components/src/icon/index.tsx\n\t\t */\n\t\tbeforeIcon?: IconType;\n\t\t/**\n\t\t * CSS color string for the `RangeControl` wrapper.\n\t\t *\n\t\t * @default COLORS.theme.accent\n\t\t * @see /packages/components/src/utils/colors-values.js\n\t\t */\n\t\tcolor?: CSSProperties[ 'color' ];\n\t\t/**\n\t\t * The current input to use as a fallback if `value` is currently\n\t\t * `undefined`.\n\t\t */\n\t\tcurrentInput?: number;\n\t\t/**\n\t\t * An icon to be shown above the slider next to its container title.\n\t\t */\n\t\ticon?: string;\n\t\t/**\n\t\t * The slider starting position, used when no `value` is passed.\n\t\t * The `initialPosition` will be clamped between the provided `min`\n\t\t * and `max` prop values.\n\t\t */\n\t\tinitialPosition?: number;\n\t\t/**\n\t\t * Passed as a prop to the `NumberControl` component and is only\n\t\t * applicable if `withInputField` is true. If true, while the number\n\t\t * input has focus, pressing `UP` or `DOWN` along with the `SHIFT` key\n\t\t * will change the value by the `shiftStep` value.\n\t\t *\n\t\t * @default true\n\t\t */\n\t\tisShiftStepEnabled?: boolean;\n\t\t/**\n\t\t * If this property is added, a label will be generated using label\n\t\t * property as the content.\n\t\t */\n\t\tlabel?: string;\n\t\t/**\n\t\t * Callback for when `RangeControl` input loses focus.\n\t\t *\n\t\t * @default () => void\n\t\t */\n\t\tonBlur?: FocusEventHandler< HTMLInputElement >;\n\t\t/**\n\t\t * A function that receives the new value. The value will be less than\n\t\t * `max` and more than `min` unless a reset (enabled by `allowReset`)\n\t\t * has occurred. In which case the value will be either that of\n\t\t * `resetFallbackValue` if it has been specified or otherwise\n\t\t * `undefined`.\n\t\t *\n\t\t * @default () => void\n\t\t */\n\t\tonChange?: ( value?: number ) => void;\n\t\t/**\n\t\t * Callback for when `RangeControl` input gains focus.\n\t\t *\n\t\t * @default () => void\n\t\t */\n\t\tonFocus?: FocusEventHandler< HTMLInputElement >;\n\t\t/**\n\t\t * Callback for when mouse exits the `RangeControl`.\n\t\t *\n\t\t * @default () => void\n\t\t */\n\t\tonMouseLeave?: MouseEventHandler< HTMLInputElement >;\n\t\t/**\n\t\t * Callback for when mouse moves within the `RangeControl`.\n\t\t *\n\t\t * @default () => void\n\t\t */\n\t\tonMouseMove?: MouseEventHandler< HTMLInputElement >;\n\t\t/**\n\t\t * CSS color string to customize the rail element's background.\n\t\t */\n\t\trailColor?: CSSProperties[ 'color' ];\n\t\t/**\n\t\t * A way to customize the rendered UI of the value.\n\t\t *\n\t\t * @default ( value ) => value\n\t\t */\n\t\trenderTooltipContent?: (\n\t\t\tvalue?: ControlledRangeValue\n\t\t) => string | number | null | undefined;\n\t\t/**\n\t\t * The value to revert to if the Reset button is clicked (enabled by\n\t\t * `allowReset`)\n\t\t */\n\t\tresetFallbackValue?: number;\n\t\t/**\n\t\t * Define if separator line under/above control row should be disabled\n\t\t * or full width. By default it is placed below excluding underline the\n\t\t * control icon.\n\t\t */\n\t\tseparatorType?: 'none' | 'fullWidth' | 'topFullWidth';\n\t\t/**\n\t\t * Passed as a prop to the `NumberControl` component and is only\n\t\t * applicable if `withInputField` and `isShiftStepEnabled` are both true\n\t\t * and while the number input has focus. Acts as a multiplier of `step`.\n\t\t *\n\t\t * @default 10\n\t\t */\n\t\tshiftStep?: number;\n\t\t/**\n\t\t * Start opting into the larger default height that will become the default size in a future version.\n\t\t *\n\t\t * @default false\n\t\t */\n\t\t__next40pxDefaultSize?: boolean;\n\t\t/**\n\t\t * Forcing the Tooltip UI to show or hide. This is overridden to `false`\n\t\t * when `step` is set to the special string value `any`.\n\t\t */\n\t\tshowTooltip?: boolean;\n\t\t/**\n\t\t * CSS color string to customize the track element's background.\n\t\t */\n\t\ttrackColor?: CSSProperties[ 'color' ];\n\t\t/**\n\t\t * Define if the value selection should present a stepper control or a\n\t\t * slider control in the bottom sheet on mobile. To use the stepper set\n\t\t * the type value as `stepper`. Defaults to slider if no option is\n\t\t * provided.\n\t\t */\n\t\ttype?: 'stepper';\n\t\t/**\n\t\t * Determines if the `input` number field will render next to the\n\t\t * RangeControl. This is overridden to `false` when `step` is set to the\n\t\t * special string value `any`.\n\t\t *\n\t\t * @default true\n\t\t */\n\t\twithInputField?: boolean;\n\t\t/**\n\t\t * Do not throw a warning for the deprecated 36px default size.\n\t\t * For internal components of other components that already throw the warning.\n\t\t *\n\t\t * @ignore\n\t\t */\n\t\t__shouldNotWarnDeprecated36pxSize?: boolean;\n\t};\n\nexport type RailProps = MarksProps & {\n\trailColor?: CSSProperties[ 'color' ];\n};\n\nexport type InputRangeProps = {\n\tdescribedBy?: string;\n\tlabel?: string;\n\tonMouseLeave?: MouseEventHandler< HTMLInputElement >;\n\tonMouseMove?: MouseEventHandler< HTMLInputElement >;\n\tvalue?: number | '';\n};\n\nexport type WrapperProps = Pick<\n\tBaseControlProps,\n\t'__nextHasNoMarginBottom'\n> & {\n\tcolor?: CSSProperties[ 'color' ];\n\tmarks?: RangeMarks;\n};\n\nexport type ThumbProps = {\n\tisFocused?: boolean;\n\tdisabled?: boolean;\n};\n\nexport type TooltipProps = {\n\tshow?: boolean;\n\
|
|
1
|
+
{"version":3,"names":[],"sources":["@wordpress/components/src/range-control/types.ts"],"sourcesContent":["/**\n * External dependencies\n */\nimport type {\n\tCSSProperties,\n\tFocusEventHandler,\n\tMouseEventHandler,\n\tMutableRefObject,\n} from 'react';\n\n/**\n * Internal dependencies\n */\nimport type { BaseControlProps } from '../base-control/types';\nimport type { IconType } from '../icon';\n\nexport type NumericProps = {\n\t/**\n\t * The minimum `value` allowed.\n\t *\n\t * @default 0\n\t */\n\tmin?: number;\n\t/**\n\t * The maximum `value` allowed.\n\t *\n\t * @default 100\n\t */\n\tmax?: number;\n\t/**\n\t * The current value of the range slider.\n\t */\n\tvalue?: number;\n};\n\nexport type RangeMark = { value: number; label?: string };\n// An expanded definition of this type is used in MarkProps to improve Storybook\n// generated docs.\nexport type RangeMarks = boolean | RangeMark[];\n\nexport type MarksProps = NumericProps & {\n\t/**\n\t * Disables the `input`, preventing new values from being applied.\n\t *\n\t * @default false\n\t */\n\tdisabled?: boolean;\n\t/**\n\t * Renders a visual representation of `step` ticks. Custom mark indicators\n\t * can be provided by an `Array`.\n\t *\n\t * @default false\n\t */\n\tmarks?: boolean | { value: number; label?: string }[];\n\t/**\n\t * The minimum amount by which `value` changes. It is also a factor in\n\t * validation as `value` must be a multiple of `step` (offset by `min`) to\n\t * be valid. Accepts the special string value `any` that voids the\n\t * validation constraint and overrides both `withInputField` and\n\t * `showTooltip` props to `false`.\n\t *\n\t * @default 1\n\t */\n\tstep?: number | 'any';\n};\n\nexport type RangeMarkProps = {\n\tisFilled?: boolean;\n\tlabel?: string;\n\tdisabled?: boolean;\n\tkey?: string;\n\tstyle?: CSSProperties;\n};\n\nexport type ControlledRangeValue = number | '' | null;\n\nexport type RangeControlProps = Pick<\n\tBaseControlProps,\n\t'hideLabelFromVision' | 'help' | '__nextHasNoMarginBottom'\n> &\n\tMarksProps & {\n\t\t/**\n\t\t * If this property is added, an Icon component will be rendered\n\t\t * after the slider with the icon equal to afterIcon.\n\t\t *\n\t\t * For more information on `IconType` see the Icon component:\n\t\t * /packages/components/src/icon/index.tsx\n\t\t */\n\t\tafterIcon?: IconType;\n\t\t/**\n\t\t * If this property is true, a button to reset the slider is\n\t\t * rendered.\n\t\t *\n\t\t * @default false\n\t\t */\n\t\tallowReset?: boolean;\n\t\t/**\n\t\t * If this property is added, an Icon component will be rendered\n\t\t * before the slider with the icon equal to beforeIcon.\n\t\t *\n\t\t * For more information on `IconType` see the Icon component:\n\t\t * /packages/components/src/icon/index.tsx\n\t\t */\n\t\tbeforeIcon?: IconType;\n\t\t/**\n\t\t * CSS color string for the `RangeControl` wrapper.\n\t\t *\n\t\t * @default COLORS.theme.accent\n\t\t * @see /packages/components/src/utils/colors-values.js\n\t\t */\n\t\tcolor?: CSSProperties[ 'color' ];\n\t\t/**\n\t\t * The current input to use as a fallback if `value` is currently\n\t\t * `undefined`.\n\t\t */\n\t\tcurrentInput?: number;\n\t\t/**\n\t\t * An icon to be shown above the slider next to its container title.\n\t\t */\n\t\ticon?: string;\n\t\t/**\n\t\t * The slider starting position, used when no `value` is passed.\n\t\t * The `initialPosition` will be clamped between the provided `min`\n\t\t * and `max` prop values.\n\t\t */\n\t\tinitialPosition?: number;\n\t\t/**\n\t\t * Passed as a prop to the `NumberControl` component and is only\n\t\t * applicable if `withInputField` is true. If true, while the number\n\t\t * input has focus, pressing `UP` or `DOWN` along with the `SHIFT` key\n\t\t * will change the value by the `shiftStep` value.\n\t\t *\n\t\t * @default true\n\t\t */\n\t\tisShiftStepEnabled?: boolean;\n\t\t/**\n\t\t * If this property is added, a label will be generated using label\n\t\t * property as the content.\n\t\t */\n\t\tlabel?: string;\n\t\t/**\n\t\t * Callback for when `RangeControl` input loses focus.\n\t\t *\n\t\t * @default () => void\n\t\t */\n\t\tonBlur?: FocusEventHandler< HTMLInputElement >;\n\t\t/**\n\t\t * A function that receives the new value. The value will be less than\n\t\t * `max` and more than `min` unless a reset (enabled by `allowReset`)\n\t\t * has occurred. In which case the value will be either that of\n\t\t * `resetFallbackValue` if it has been specified or otherwise\n\t\t * `undefined`.\n\t\t *\n\t\t * @default () => void\n\t\t */\n\t\tonChange?: ( value?: number ) => void;\n\t\t/**\n\t\t * Callback for when `RangeControl` input gains focus.\n\t\t *\n\t\t * @default () => void\n\t\t */\n\t\tonFocus?: FocusEventHandler< HTMLInputElement >;\n\t\t/**\n\t\t * Callback for when mouse exits the `RangeControl`.\n\t\t *\n\t\t * @default () => void\n\t\t */\n\t\tonMouseLeave?: MouseEventHandler< HTMLInputElement >;\n\t\t/**\n\t\t * Callback for when mouse moves within the `RangeControl`.\n\t\t *\n\t\t * @default () => void\n\t\t */\n\t\tonMouseMove?: MouseEventHandler< HTMLInputElement >;\n\t\t/**\n\t\t * CSS color string to customize the rail element's background.\n\t\t */\n\t\trailColor?: CSSProperties[ 'color' ];\n\t\t/**\n\t\t * A way to customize the rendered UI of the value.\n\t\t *\n\t\t * @default ( value ) => value\n\t\t */\n\t\trenderTooltipContent?: (\n\t\t\tvalue?: ControlledRangeValue\n\t\t) => string | number | null | undefined;\n\t\t/**\n\t\t * The value to revert to if the Reset button is clicked (enabled by\n\t\t * `allowReset`)\n\t\t */\n\t\tresetFallbackValue?: number;\n\t\t/**\n\t\t * Define if separator line under/above control row should be disabled\n\t\t * or full width. By default it is placed below excluding underline the\n\t\t * control icon.\n\t\t */\n\t\tseparatorType?: 'none' | 'fullWidth' | 'topFullWidth';\n\t\t/**\n\t\t * Passed as a prop to the `NumberControl` component and is only\n\t\t * applicable if `withInputField` and `isShiftStepEnabled` are both true\n\t\t * and while the number input has focus. Acts as a multiplier of `step`.\n\t\t *\n\t\t * @default 10\n\t\t */\n\t\tshiftStep?: number;\n\t\t/**\n\t\t * Start opting into the larger default height that will become the default size in a future version.\n\t\t *\n\t\t * @default false\n\t\t */\n\t\t__next40pxDefaultSize?: boolean;\n\t\t/**\n\t\t * Forcing the Tooltip UI to show or hide. This is overridden to `false`\n\t\t * when `step` is set to the special string value `any`.\n\t\t */\n\t\tshowTooltip?: boolean;\n\t\t/**\n\t\t * CSS color string to customize the track element's background.\n\t\t */\n\t\ttrackColor?: CSSProperties[ 'color' ];\n\t\t/**\n\t\t * Define if the value selection should present a stepper control or a\n\t\t * slider control in the bottom sheet on mobile. To use the stepper set\n\t\t * the type value as `stepper`. Defaults to slider if no option is\n\t\t * provided.\n\t\t */\n\t\ttype?: 'stepper';\n\t\t/**\n\t\t * Determines if the `input` number field will render next to the\n\t\t * RangeControl. This is overridden to `false` when `step` is set to the\n\t\t * special string value `any`.\n\t\t *\n\t\t * @default true\n\t\t */\n\t\twithInputField?: boolean;\n\t\t/**\n\t\t * Do not throw a warning for the deprecated 36px default size.\n\t\t * For internal components of other components that already throw the warning.\n\t\t *\n\t\t * @ignore\n\t\t */\n\t\t__shouldNotWarnDeprecated36pxSize?: boolean;\n\t};\n\nexport type RailProps = MarksProps & {\n\trailColor?: CSSProperties[ 'color' ];\n};\n\nexport type InputRangeProps = {\n\tdescribedBy?: string;\n\tlabel?: string;\n\tonMouseLeave?: MouseEventHandler< HTMLInputElement >;\n\tonMouseMove?: MouseEventHandler< HTMLInputElement >;\n\tvalue?: number | '';\n};\n\nexport type WrapperProps = Pick<\n\tBaseControlProps,\n\t'__nextHasNoMarginBottom'\n> & {\n\tcolor?: CSSProperties[ 'color' ];\n\tmarks?: RangeMarks;\n};\n\nexport type ThumbProps = {\n\tisFocused?: boolean;\n\tdisabled?: boolean;\n};\n\nexport type TooltipProps = {\n\tshow?: boolean;\n\tplacement?: string;\n\tinputRef?: MutableRefObject< HTMLElement | undefined >;\n\ttooltipPlacement?: string;\n\tvalue?: ControlledRangeValue;\n\trenderTooltipContent?: (\n\t\tvalue?: ControlledRangeValue\n\t) => string | number | null | undefined;\n\tzIndex?: number;\n};\n\nexport type TrackProps = {\n\tdisabled: boolean;\n\ttrackColor: CSSProperties[ 'color' ];\n};\n\nexport type UseControlledRangeValueArgs = {\n\t/**\n\t * The initial value.\n\t */\n\tinitial?: number;\n\t/**\n\t * The maximum value.\n\t */\n\tmax: number;\n\t/**\n\t * The minimum value.\n\t */\n\tmin: number;\n\t/**\n\t * The current value.\n\t */\n\tvalue: number | null;\n};\n\nexport type UseMarksArgs = NumericProps & {\n\tmarks: RangeMarks;\n\tstep: number;\n};\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* External dependencies
|
|
3
|
+
*/
|
|
4
|
+
import clsx from 'clsx';
|
|
5
|
+
|
|
1
6
|
/**
|
|
2
7
|
* WordPress dependencies
|
|
3
8
|
*/
|
|
@@ -25,6 +30,7 @@ function UnforwardedTextareaControl(props, ref) {
|
|
|
25
30
|
const instanceId = useInstanceId(TextareaControl);
|
|
26
31
|
const id = `inspector-textarea-control-${instanceId}`;
|
|
27
32
|
const onChangeValue = event => onChange(event.target.value);
|
|
33
|
+
const classes = clsx('components-textarea-control', className);
|
|
28
34
|
return /*#__PURE__*/_jsx(BaseControl, {
|
|
29
35
|
__nextHasNoMarginBottom: __nextHasNoMarginBottom,
|
|
30
36
|
__associatedWPComponentName: "TextareaControl",
|
|
@@ -32,7 +38,7 @@ function UnforwardedTextareaControl(props, ref) {
|
|
|
32
38
|
hideLabelFromVision: hideLabelFromVision,
|
|
33
39
|
id: id,
|
|
34
40
|
help: help,
|
|
35
|
-
className:
|
|
41
|
+
className: classes,
|
|
36
42
|
children: /*#__PURE__*/_jsx(StyledTextarea, {
|
|
37
43
|
className: "components-textarea-control__input",
|
|
38
44
|
id: id,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useInstanceId","forwardRef","BaseControl","StyledTextarea","jsx","_jsx","UnforwardedTextareaControl","props","ref","__nextHasNoMarginBottom","label","hideLabelFromVision","value","help","onChange","rows","className","additionalProps","instanceId","TextareaControl","id","onChangeValue","event","target","__associatedWPComponentName","children","undefined"],"sources":["@wordpress/components/src/textarea-control/index.tsx"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useInstanceId } from '@wordpress/compose';\nimport { forwardRef } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport BaseControl from '../base-control';\nimport { StyledTextarea } from './styles/textarea-control-styles';\nimport type { TextareaControlProps } from './types';\nimport type { WordPressComponentProps } from '../context';\n\nfunction UnforwardedTextareaControl(\n\tprops: WordPressComponentProps< TextareaControlProps, 'textarea', false >,\n\tref: React.ForwardedRef< HTMLTextAreaElement >\n) {\n\tconst {\n\t\t__nextHasNoMarginBottom,\n\t\tlabel,\n\t\thideLabelFromVision,\n\t\tvalue,\n\t\thelp,\n\t\tonChange,\n\t\trows = 4,\n\t\tclassName,\n\t\t...additionalProps\n\t} = props;\n\tconst instanceId = useInstanceId( TextareaControl );\n\tconst id = `inspector-textarea-control-${ instanceId }`;\n\tconst onChangeValue = ( event: React.ChangeEvent< HTMLTextAreaElement > ) =>\n\t\tonChange( event.target.value );\n\n\treturn (\n\t\t<BaseControl\n\t\t\t__nextHasNoMarginBottom={ __nextHasNoMarginBottom }\n\t\t\t__associatedWPComponentName=\"TextareaControl\"\n\t\t\tlabel={ label }\n\t\t\thideLabelFromVision={ hideLabelFromVision }\n\t\t\tid={ id }\n\t\t\thelp={ help }\n\t\t\tclassName={
|
|
1
|
+
{"version":3,"names":["clsx","useInstanceId","forwardRef","BaseControl","StyledTextarea","jsx","_jsx","UnforwardedTextareaControl","props","ref","__nextHasNoMarginBottom","label","hideLabelFromVision","value","help","onChange","rows","className","additionalProps","instanceId","TextareaControl","id","onChangeValue","event","target","classes","__associatedWPComponentName","children","undefined"],"sources":["@wordpress/components/src/textarea-control/index.tsx"],"sourcesContent":["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * WordPress dependencies\n */\nimport { useInstanceId } from '@wordpress/compose';\nimport { forwardRef } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport BaseControl from '../base-control';\nimport { StyledTextarea } from './styles/textarea-control-styles';\nimport type { TextareaControlProps } from './types';\nimport type { WordPressComponentProps } from '../context';\n\nfunction UnforwardedTextareaControl(\n\tprops: WordPressComponentProps< TextareaControlProps, 'textarea', false >,\n\tref: React.ForwardedRef< HTMLTextAreaElement >\n) {\n\tconst {\n\t\t__nextHasNoMarginBottom,\n\t\tlabel,\n\t\thideLabelFromVision,\n\t\tvalue,\n\t\thelp,\n\t\tonChange,\n\t\trows = 4,\n\t\tclassName,\n\t\t...additionalProps\n\t} = props;\n\tconst instanceId = useInstanceId( TextareaControl );\n\tconst id = `inspector-textarea-control-${ instanceId }`;\n\tconst onChangeValue = ( event: React.ChangeEvent< HTMLTextAreaElement > ) =>\n\t\tonChange( event.target.value );\n\n\tconst classes = clsx( 'components-textarea-control', className );\n\n\treturn (\n\t\t<BaseControl\n\t\t\t__nextHasNoMarginBottom={ __nextHasNoMarginBottom }\n\t\t\t__associatedWPComponentName=\"TextareaControl\"\n\t\t\tlabel={ label }\n\t\t\thideLabelFromVision={ hideLabelFromVision }\n\t\t\tid={ id }\n\t\t\thelp={ help }\n\t\t\tclassName={ classes }\n\t\t>\n\t\t\t<StyledTextarea\n\t\t\t\tclassName=\"components-textarea-control__input\"\n\t\t\t\tid={ id }\n\t\t\t\trows={ rows }\n\t\t\t\tonChange={ onChangeValue }\n\t\t\t\taria-describedby={ !! help ? id + '__help' : undefined }\n\t\t\t\tvalue={ value }\n\t\t\t\tref={ ref }\n\t\t\t\t{ ...additionalProps }\n\t\t\t/>\n\t\t</BaseControl>\n\t);\n}\n\n/**\n * TextareaControls are TextControls that allow for multiple lines of text, and\n * wrap overflow text onto a new line. They are a fixed height and scroll\n * vertically when the cursor reaches the bottom of the field.\n *\n * ```jsx\n * import { TextareaControl } from '@wordpress/components';\n * import { useState } from '@wordpress/element';\n *\n * const MyTextareaControl = () => {\n * const [ text, setText ] = useState( '' );\n *\n * return (\n * <TextareaControl\n * __nextHasNoMarginBottom\n * label=\"Text\"\n * help=\"Enter some text\"\n * value={ text }\n * onChange={ ( value ) => setText( value ) }\n * />\n * );\n * };\n * ```\n */\nexport const TextareaControl = forwardRef( UnforwardedTextareaControl );\n\nexport default TextareaControl;\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,IAAI,MAAM,MAAM;;AAEvB;AACA;AACA;AACA,SAASC,aAAa,QAAQ,oBAAoB;AAClD,SAASC,UAAU,QAAQ,oBAAoB;;AAE/C;AACA;AACA;AACA,OAAOC,WAAW,MAAM,iBAAiB;AACzC,SAASC,cAAc,QAAQ,kCAAkC;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAIlE,SAASC,0BAA0BA,CAClCC,KAAyE,EACzEC,GAA8C,EAC7C;EACD,MAAM;IACLC,uBAAuB;IACvBC,KAAK;IACLC,mBAAmB;IACnBC,KAAK;IACLC,IAAI;IACJC,QAAQ;IACRC,IAAI,GAAG,CAAC;IACRC,SAAS;IACT,GAAGC;EACJ,CAAC,GAAGV,KAAK;EACT,MAAMW,UAAU,GAAGlB,aAAa,CAAEmB,eAAgB,CAAC;EACnD,MAAMC,EAAE,GAAG,8BAA+BF,UAAU,EAAG;EACvD,MAAMG,aAAa,GAAKC,KAA+C,IACtER,QAAQ,CAAEQ,KAAK,CAACC,MAAM,CAACX,KAAM,CAAC;EAE/B,MAAMY,OAAO,GAAGzB,IAAI,CAAE,6BAA6B,EAAEiB,SAAU,CAAC;EAEhE,oBACCX,IAAA,CAACH,WAAW;IACXO,uBAAuB,EAAGA,uBAAyB;IACnDgB,2BAA2B,EAAC,iBAAiB;IAC7Cf,KAAK,EAAGA,KAAO;IACfC,mBAAmB,EAAGA,mBAAqB;IAC3CS,EAAE,EAAGA,EAAI;IACTP,IAAI,EAAGA,IAAM;IACbG,SAAS,EAAGQ,OAAS;IAAAE,QAAA,eAErBrB,IAAA,CAACF,cAAc;MACda,SAAS,EAAC,oCAAoC;MAC9CI,EAAE,EAAGA,EAAI;MACTL,IAAI,EAAGA,IAAM;MACbD,QAAQ,EAAGO,aAAe;MAC1B,oBAAmB,CAAC,CAAER,IAAI,GAAGO,EAAE,GAAG,QAAQ,GAAGO,SAAW;MACxDf,KAAK,EAAGA,KAAO;MACfJ,GAAG,EAAGA,GAAK;MAAA,GACNS;IAAe,CACpB;EAAC,CACU,CAAC;AAEhB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAME,eAAe,GAAGlB,UAAU,CAAEK,0BAA2B,CAAC;AAEvE,eAAea,eAAe","ignoreList":[]}
|
|
@@ -2018,7 +2018,7 @@ body.is-dragging-components-draggable {
|
|
|
2018
2018
|
border-bottom: none;
|
|
2019
2019
|
padding: 0;
|
|
2020
2020
|
position: sticky;
|
|
2021
|
-
height:
|
|
2021
|
+
height: 64px;
|
|
2022
2022
|
}
|
|
2023
2023
|
.components-guide .components-modal__header .components-button {
|
|
2024
2024
|
align-self: flex-start;
|
|
@@ -2032,7 +2032,7 @@ body.is-dragging-components-draggable {
|
|
|
2032
2032
|
display: flex;
|
|
2033
2033
|
flex-direction: column;
|
|
2034
2034
|
justify-content: space-between;
|
|
2035
|
-
margin-top: -
|
|
2035
|
+
margin-top: -64px;
|
|
2036
2036
|
min-height: 100%;
|
|
2037
2037
|
}
|
|
2038
2038
|
.components-guide .components-guide__page {
|
|
@@ -2329,7 +2329,7 @@ body.is-dragging-components-draggable {
|
|
|
2329
2329
|
width: auto;
|
|
2330
2330
|
min-width: 350px;
|
|
2331
2331
|
max-width: calc(100% - 32px);
|
|
2332
|
-
max-height: calc(100% -
|
|
2332
|
+
max-height: calc(100% - 128px);
|
|
2333
2333
|
}
|
|
2334
2334
|
}
|
|
2335
2335
|
@media (min-width: 600px) and (min-width: 600px) {
|
|
@@ -3501,6 +3501,7 @@ body.lockscroll {
|
|
|
3501
3501
|
box-shadow: 0 0 0 transparent;
|
|
3502
3502
|
border-radius: 2px;
|
|
3503
3503
|
border: 1px solid #949494;
|
|
3504
|
+
border-color: var(--wp-components-color-gray-600, #949494);
|
|
3504
3505
|
}
|
|
3505
3506
|
@media not (prefers-reduced-motion) {
|
|
3506
3507
|
.components-text-control__input,
|
|
@@ -3558,53 +3559,21 @@ body.lockscroll {
|
|
|
3558
3559
|
box-shadow: 0 0 0 0.5px var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));
|
|
3559
3560
|
outline: 2px solid transparent;
|
|
3560
3561
|
}
|
|
3561
|
-
.components-text-control__input
|
|
3562
|
-
.components-text-control__input[type=text]
|
|
3563
|
-
.components-text-control__input[type=tel]
|
|
3564
|
-
.components-text-control__input[type=time]
|
|
3565
|
-
.components-text-control__input[type=url]
|
|
3566
|
-
.components-text-control__input[type=week]
|
|
3567
|
-
.components-text-control__input[type=password]
|
|
3568
|
-
.components-text-control__input[type=color]
|
|
3569
|
-
.components-text-control__input[type=date]
|
|
3570
|
-
.components-text-control__input[type=datetime]
|
|
3571
|
-
.components-text-control__input[type=datetime-local]
|
|
3572
|
-
.components-text-control__input[type=email]
|
|
3573
|
-
.components-text-control__input[type=month]
|
|
3574
|
-
.components-text-control__input[type=number]
|
|
3575
|
-
color:
|
|
3576
|
-
}
|
|
3577
|
-
.components-text-control__input::-moz-placeholder,
|
|
3578
|
-
.components-text-control__input[type=text]::-moz-placeholder,
|
|
3579
|
-
.components-text-control__input[type=tel]::-moz-placeholder,
|
|
3580
|
-
.components-text-control__input[type=time]::-moz-placeholder,
|
|
3581
|
-
.components-text-control__input[type=url]::-moz-placeholder,
|
|
3582
|
-
.components-text-control__input[type=week]::-moz-placeholder,
|
|
3583
|
-
.components-text-control__input[type=password]::-moz-placeholder,
|
|
3584
|
-
.components-text-control__input[type=color]::-moz-placeholder,
|
|
3585
|
-
.components-text-control__input[type=date]::-moz-placeholder,
|
|
3586
|
-
.components-text-control__input[type=datetime]::-moz-placeholder,
|
|
3587
|
-
.components-text-control__input[type=datetime-local]::-moz-placeholder,
|
|
3588
|
-
.components-text-control__input[type=email]::-moz-placeholder,
|
|
3589
|
-
.components-text-control__input[type=month]::-moz-placeholder,
|
|
3590
|
-
.components-text-control__input[type=number]::-moz-placeholder {
|
|
3591
|
-
color: rgba(30, 30, 30, 0.62);
|
|
3592
|
-
}
|
|
3593
|
-
.components-text-control__input:-ms-input-placeholder,
|
|
3594
|
-
.components-text-control__input[type=text]:-ms-input-placeholder,
|
|
3595
|
-
.components-text-control__input[type=tel]:-ms-input-placeholder,
|
|
3596
|
-
.components-text-control__input[type=time]:-ms-input-placeholder,
|
|
3597
|
-
.components-text-control__input[type=url]:-ms-input-placeholder,
|
|
3598
|
-
.components-text-control__input[type=week]:-ms-input-placeholder,
|
|
3599
|
-
.components-text-control__input[type=password]:-ms-input-placeholder,
|
|
3600
|
-
.components-text-control__input[type=color]:-ms-input-placeholder,
|
|
3601
|
-
.components-text-control__input[type=date]:-ms-input-placeholder,
|
|
3602
|
-
.components-text-control__input[type=datetime]:-ms-input-placeholder,
|
|
3603
|
-
.components-text-control__input[type=datetime-local]:-ms-input-placeholder,
|
|
3604
|
-
.components-text-control__input[type=email]:-ms-input-placeholder,
|
|
3605
|
-
.components-text-control__input[type=month]:-ms-input-placeholder,
|
|
3606
|
-
.components-text-control__input[type=number]:-ms-input-placeholder {
|
|
3607
|
-
color: rgba(30, 30, 30, 0.62);
|
|
3562
|
+
.components-text-control__input::placeholder,
|
|
3563
|
+
.components-text-control__input[type=text]::placeholder,
|
|
3564
|
+
.components-text-control__input[type=tel]::placeholder,
|
|
3565
|
+
.components-text-control__input[type=time]::placeholder,
|
|
3566
|
+
.components-text-control__input[type=url]::placeholder,
|
|
3567
|
+
.components-text-control__input[type=week]::placeholder,
|
|
3568
|
+
.components-text-control__input[type=password]::placeholder,
|
|
3569
|
+
.components-text-control__input[type=color]::placeholder,
|
|
3570
|
+
.components-text-control__input[type=date]::placeholder,
|
|
3571
|
+
.components-text-control__input[type=datetime]::placeholder,
|
|
3572
|
+
.components-text-control__input[type=datetime-local]::placeholder,
|
|
3573
|
+
.components-text-control__input[type=email]::placeholder,
|
|
3574
|
+
.components-text-control__input[type=month]::placeholder,
|
|
3575
|
+
.components-text-control__input[type=number]::placeholder {
|
|
3576
|
+
color: color-mix(in srgb, var(--wp-components-color-foreground, #1e1e1e), transparent 38%);
|
|
3608
3577
|
}
|
|
3609
3578
|
.components-text-control__input.is-next-40px-default-size,
|
|
3610
3579
|
.components-text-control__input[type=text].is-next-40px-default-size,
|
package/build-style/style.css
CHANGED
|
@@ -2023,7 +2023,7 @@ body.is-dragging-components-draggable {
|
|
|
2023
2023
|
border-bottom: none;
|
|
2024
2024
|
padding: 0;
|
|
2025
2025
|
position: sticky;
|
|
2026
|
-
height:
|
|
2026
|
+
height: 64px;
|
|
2027
2027
|
}
|
|
2028
2028
|
.components-guide .components-modal__header .components-button {
|
|
2029
2029
|
align-self: flex-start;
|
|
@@ -2037,7 +2037,7 @@ body.is-dragging-components-draggable {
|
|
|
2037
2037
|
display: flex;
|
|
2038
2038
|
flex-direction: column;
|
|
2039
2039
|
justify-content: space-between;
|
|
2040
|
-
margin-top: -
|
|
2040
|
+
margin-top: -64px;
|
|
2041
2041
|
min-height: 100%;
|
|
2042
2042
|
}
|
|
2043
2043
|
.components-guide .components-guide__page {
|
|
@@ -2334,7 +2334,7 @@ body.is-dragging-components-draggable {
|
|
|
2334
2334
|
width: auto;
|
|
2335
2335
|
min-width: 350px;
|
|
2336
2336
|
max-width: calc(100% - 32px);
|
|
2337
|
-
max-height: calc(100% -
|
|
2337
|
+
max-height: calc(100% - 128px);
|
|
2338
2338
|
}
|
|
2339
2339
|
}
|
|
2340
2340
|
@media (min-width: 600px) and (min-width: 600px) {
|
|
@@ -3513,6 +3513,7 @@ body.lockscroll {
|
|
|
3513
3513
|
box-shadow: 0 0 0 transparent;
|
|
3514
3514
|
border-radius: 2px;
|
|
3515
3515
|
border: 1px solid #949494;
|
|
3516
|
+
border-color: var(--wp-components-color-gray-600, #949494);
|
|
3516
3517
|
}
|
|
3517
3518
|
@media not (prefers-reduced-motion) {
|
|
3518
3519
|
.components-text-control__input,
|
|
@@ -3570,53 +3571,21 @@ body.lockscroll {
|
|
|
3570
3571
|
box-shadow: 0 0 0 0.5px var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));
|
|
3571
3572
|
outline: 2px solid transparent;
|
|
3572
3573
|
}
|
|
3573
|
-
.components-text-control__input
|
|
3574
|
-
.components-text-control__input[type=text]
|
|
3575
|
-
.components-text-control__input[type=tel]
|
|
3576
|
-
.components-text-control__input[type=time]
|
|
3577
|
-
.components-text-control__input[type=url]
|
|
3578
|
-
.components-text-control__input[type=week]
|
|
3579
|
-
.components-text-control__input[type=password]
|
|
3580
|
-
.components-text-control__input[type=color]
|
|
3581
|
-
.components-text-control__input[type=date]
|
|
3582
|
-
.components-text-control__input[type=datetime]
|
|
3583
|
-
.components-text-control__input[type=datetime-local]
|
|
3584
|
-
.components-text-control__input[type=email]
|
|
3585
|
-
.components-text-control__input[type=month]
|
|
3586
|
-
.components-text-control__input[type=number]
|
|
3587
|
-
color:
|
|
3588
|
-
}
|
|
3589
|
-
.components-text-control__input::-moz-placeholder,
|
|
3590
|
-
.components-text-control__input[type=text]::-moz-placeholder,
|
|
3591
|
-
.components-text-control__input[type=tel]::-moz-placeholder,
|
|
3592
|
-
.components-text-control__input[type=time]::-moz-placeholder,
|
|
3593
|
-
.components-text-control__input[type=url]::-moz-placeholder,
|
|
3594
|
-
.components-text-control__input[type=week]::-moz-placeholder,
|
|
3595
|
-
.components-text-control__input[type=password]::-moz-placeholder,
|
|
3596
|
-
.components-text-control__input[type=color]::-moz-placeholder,
|
|
3597
|
-
.components-text-control__input[type=date]::-moz-placeholder,
|
|
3598
|
-
.components-text-control__input[type=datetime]::-moz-placeholder,
|
|
3599
|
-
.components-text-control__input[type=datetime-local]::-moz-placeholder,
|
|
3600
|
-
.components-text-control__input[type=email]::-moz-placeholder,
|
|
3601
|
-
.components-text-control__input[type=month]::-moz-placeholder,
|
|
3602
|
-
.components-text-control__input[type=number]::-moz-placeholder {
|
|
3603
|
-
color: rgba(30, 30, 30, 0.62);
|
|
3604
|
-
}
|
|
3605
|
-
.components-text-control__input:-ms-input-placeholder,
|
|
3606
|
-
.components-text-control__input[type=text]:-ms-input-placeholder,
|
|
3607
|
-
.components-text-control__input[type=tel]:-ms-input-placeholder,
|
|
3608
|
-
.components-text-control__input[type=time]:-ms-input-placeholder,
|
|
3609
|
-
.components-text-control__input[type=url]:-ms-input-placeholder,
|
|
3610
|
-
.components-text-control__input[type=week]:-ms-input-placeholder,
|
|
3611
|
-
.components-text-control__input[type=password]:-ms-input-placeholder,
|
|
3612
|
-
.components-text-control__input[type=color]:-ms-input-placeholder,
|
|
3613
|
-
.components-text-control__input[type=date]:-ms-input-placeholder,
|
|
3614
|
-
.components-text-control__input[type=datetime]:-ms-input-placeholder,
|
|
3615
|
-
.components-text-control__input[type=datetime-local]:-ms-input-placeholder,
|
|
3616
|
-
.components-text-control__input[type=email]:-ms-input-placeholder,
|
|
3617
|
-
.components-text-control__input[type=month]:-ms-input-placeholder,
|
|
3618
|
-
.components-text-control__input[type=number]:-ms-input-placeholder {
|
|
3619
|
-
color: rgba(30, 30, 30, 0.62);
|
|
3574
|
+
.components-text-control__input::placeholder,
|
|
3575
|
+
.components-text-control__input[type=text]::placeholder,
|
|
3576
|
+
.components-text-control__input[type=tel]::placeholder,
|
|
3577
|
+
.components-text-control__input[type=time]::placeholder,
|
|
3578
|
+
.components-text-control__input[type=url]::placeholder,
|
|
3579
|
+
.components-text-control__input[type=week]::placeholder,
|
|
3580
|
+
.components-text-control__input[type=password]::placeholder,
|
|
3581
|
+
.components-text-control__input[type=color]::placeholder,
|
|
3582
|
+
.components-text-control__input[type=date]::placeholder,
|
|
3583
|
+
.components-text-control__input[type=datetime]::placeholder,
|
|
3584
|
+
.components-text-control__input[type=datetime-local]::placeholder,
|
|
3585
|
+
.components-text-control__input[type=email]::placeholder,
|
|
3586
|
+
.components-text-control__input[type=month]::placeholder,
|
|
3587
|
+
.components-text-control__input[type=number]::placeholder {
|
|
3588
|
+
color: color-mix(in srgb, var(--wp-components-color-foreground, #1e1e1e), transparent 38%);
|
|
3620
3589
|
}
|
|
3621
3590
|
.components-text-control__input.is-next-40px-default-size,
|
|
3622
3591
|
.components-text-control__input[type=text].is-next-40px-default-size,
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
import type { BoxControlInputControlProps, BoxControlProps, BoxControlValue, CustomValueUnits, Preset } from './types';
|
|
5
5
|
export declare const CUSTOM_VALUE_SETTINGS: CustomValueUnits;
|
|
6
6
|
export declare const LABELS: {
|
|
7
|
-
all: import("@wordpress/i18n
|
|
8
|
-
top: import("@wordpress/i18n
|
|
9
|
-
bottom: import("@wordpress/i18n
|
|
10
|
-
left: import("@wordpress/i18n
|
|
11
|
-
right: import("@wordpress/i18n
|
|
12
|
-
vertical: import("@wordpress/i18n
|
|
13
|
-
horizontal: import("@wordpress/i18n
|
|
7
|
+
all: import("@wordpress/i18n").TranslatableText<"All sides">;
|
|
8
|
+
top: import("@wordpress/i18n").TranslatableText<"Top side">;
|
|
9
|
+
bottom: import("@wordpress/i18n").TranslatableText<"Bottom side">;
|
|
10
|
+
left: import("@wordpress/i18n").TranslatableText<"Left side">;
|
|
11
|
+
right: import("@wordpress/i18n").TranslatableText<"Right side">;
|
|
12
|
+
vertical: import("@wordpress/i18n").TranslatableText<"Top and bottom sides">;
|
|
13
|
+
horizontal: import("@wordpress/i18n").TranslatableText<"Left and right sides">;
|
|
14
14
|
};
|
|
15
15
|
export declare const DEFAULT_VALUES: {
|
|
16
16
|
top: undefined;
|
|
@@ -24,7 +24,7 @@ export declare const useLocalizationProps: ({ locale, timeZone, mode, }: {
|
|
|
24
24
|
timeZone: BaseProps["timeZone"];
|
|
25
25
|
mode: "single" | "range";
|
|
26
26
|
}) => {
|
|
27
|
-
readonly 'aria-label': import("@wordpress/i18n
|
|
27
|
+
readonly 'aria-label': import("@wordpress/i18n").TranslatableText<"Date calendar"> | import("@wordpress/i18n").TranslatableText<"Date range calendar">;
|
|
28
28
|
readonly labels: {
|
|
29
29
|
/**
|
|
30
30
|
* The label for the month grid.
|
|
@@ -38,9 +38,9 @@ export declare const useLocalizationProps: ({ locale, timeZone, mode, }: {
|
|
|
38
38
|
*/
|
|
39
39
|
readonly labelGridcell: (date: Date, modifiers?: Modifiers) => string;
|
|
40
40
|
/** The label for the "next month" button. */
|
|
41
|
-
readonly labelNext: () => import("@wordpress/i18n
|
|
41
|
+
readonly labelNext: () => import("@wordpress/i18n").TranslatableText<"Go to the Next Month">;
|
|
42
42
|
/** The label for the "previous month" button. */
|
|
43
|
-
readonly labelPrevious: () => import("@wordpress/i18n
|
|
43
|
+
readonly labelPrevious: () => import("@wordpress/i18n").TranslatableText<"Go to the Previous Month">;
|
|
44
44
|
/**
|
|
45
45
|
* The label for the day button.
|
|
46
46
|
* @param date
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/color-picker/styles.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;UAEhC,CAAC;AAEF,eAAO,MAAM,aAAa;
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/color-picker/styles.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;UAEhC,CAAC;AAEF,eAAO,MAAM,aAAa;UA0FwjE,MAAO,GAAG;;;UAxF3lE,CAAC;AAEF,eAAO,MAAM,YAAY;;;;aAmBZ,CAAA;;;;;;;;;;;;;;qBAmE26C,CAAC;;;;;iCAAmuB,CAAC;;;;;;;;;;;;UAnF5pE,CAAC;AASF,eAAO,MAAM,6BAA6B;;SAnB7B,MAAQ,WAGpB;yGAqBA,CAAC;AAEF,eAAO,MAAM,kCAAkC;;;;;;;UAG9C,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;UAK7B,CAAC;AAEF,eAAO,MAAM,eAAe;;SAtCf,MAAQ,WAGpB;yGAyFA,CAAC"}
|
|
@@ -6,10 +6,10 @@ export declare const HORIZONTAL_GRADIENT_ORIENTATION: {
|
|
|
6
6
|
};
|
|
7
7
|
export declare const GRADIENT_OPTIONS: ({
|
|
8
8
|
value: string;
|
|
9
|
-
label: import("@wordpress/i18n
|
|
9
|
+
label: import("@wordpress/i18n").TranslatableText<"Linear">;
|
|
10
10
|
} | {
|
|
11
11
|
value: string;
|
|
12
|
-
label: import("@wordpress/i18n
|
|
12
|
+
label: import("@wordpress/i18n").TranslatableText<"Radial">;
|
|
13
13
|
})[];
|
|
14
14
|
export declare const DIRECTIONAL_ORIENTATION_ANGLE_MAP: {
|
|
15
15
|
top: number;
|
|
@@ -19,19 +19,19 @@ import type { Size } from './types';
|
|
|
19
19
|
*/
|
|
20
20
|
export declare const findSizeBySlug: (sizes: Size[], slug: string) => Size | undefined;
|
|
21
21
|
declare const _default: ({
|
|
22
|
-
name: import("@wordpress/i18n
|
|
22
|
+
name: import("@wordpress/i18n").TranslatableText<"None">;
|
|
23
23
|
slug: string;
|
|
24
24
|
} | {
|
|
25
|
-
name: import("@wordpress/i18n
|
|
25
|
+
name: import("@wordpress/i18n").TranslatableText<"Small">;
|
|
26
26
|
slug: string;
|
|
27
27
|
} | {
|
|
28
|
-
name: import("@wordpress/i18n
|
|
28
|
+
name: import("@wordpress/i18n").TranslatableText<"Medium">;
|
|
29
29
|
slug: string;
|
|
30
30
|
} | {
|
|
31
|
-
name: import("@wordpress/i18n
|
|
31
|
+
name: import("@wordpress/i18n").TranslatableText<"Large">;
|
|
32
32
|
slug: string;
|
|
33
33
|
} | {
|
|
34
|
-
name: import("@wordpress/i18n
|
|
34
|
+
name: import("@wordpress/i18n").TranslatableText<"Extra Large">;
|
|
35
35
|
slug: string;
|
|
36
36
|
})[];
|
|
37
37
|
export default _default;
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
* When there are 5 font sizes or fewer, we assume that the font sizes are
|
|
5
5
|
* ordered by size and show T-shirt labels.
|
|
6
6
|
*/
|
|
7
|
-
export declare const T_SHIRT_ABBREVIATIONS: (import("@wordpress/i18n
|
|
7
|
+
export declare const T_SHIRT_ABBREVIATIONS: (import("@wordpress/i18n").TranslatableText<"S"> | import("@wordpress/i18n").TranslatableText<"M"> | import("@wordpress/i18n").TranslatableText<"L"> | import("@wordpress/i18n").TranslatableText<"XL"> | import("@wordpress/i18n").TranslatableText<"XXL">)[];
|
|
8
8
|
/**
|
|
9
9
|
* List of T-shirt names.
|
|
10
10
|
*
|
|
11
11
|
* When there are 5 font sizes or fewer, we assume that the font sizes are
|
|
12
12
|
* ordered by size and show T-shirt labels.
|
|
13
13
|
*/
|
|
14
|
-
export declare const T_SHIRT_NAMES: (import("@wordpress/i18n
|
|
14
|
+
export declare const T_SHIRT_NAMES: (import("@wordpress/i18n").TranslatableText<"Small"> | import("@wordpress/i18n").TranslatableText<"Medium"> | import("@wordpress/i18n").TranslatableText<"Large"> | import("@wordpress/i18n").TranslatableText<"Extra Large"> | import("@wordpress/i18n").TranslatableText<"Extra Extra Large">)[];
|
|
15
15
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/font-size-picker/constants.ts"],"names":[],"mappings":"AAKA;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/font-size-picker/constants.ts"],"names":[],"mappings":"AAKA;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,gQAWjC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,aAAa,oSAMzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"private-apis.d.ts","sourceRoot":"","sources":["../src/private-apis.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"private-apis.d.ts","sourceRoot":"","sources":["../src/private-apis.ts"],"names":[],"mappings":"AAoBA,eAAO,MAAM,WAAW,IAAK,CAAC"}
|
|
@@ -247,9 +247,9 @@ export type ThumbProps = {
|
|
|
247
247
|
};
|
|
248
248
|
export type TooltipProps = {
|
|
249
249
|
show?: boolean;
|
|
250
|
-
|
|
250
|
+
placement?: string;
|
|
251
251
|
inputRef?: MutableRefObject<HTMLElement | undefined>;
|
|
252
|
-
|
|
252
|
+
tooltipPlacement?: string;
|
|
253
253
|
value?: ControlledRangeValue;
|
|
254
254
|
renderTooltipContent?: (value?: ControlledRangeValue) => string | number | null | undefined;
|
|
255
255
|
zIndex?: number;
|