@wordpress/components 25.1.1 → 25.1.3
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 +6 -0
- package/build/button/index.js +13 -4
- package/build/button/index.js.map +1 -1
- package/build/confirm-dialog/component.js +9 -1
- package/build/confirm-dialog/component.js.map +1 -1
- package/build/font-size-picker/index.js +5 -3
- package/build/font-size-picker/index.js.map +1 -1
- package/build/font-size-picker/styles.js +19 -26
- package/build/font-size-picker/styles.js.map +1 -1
- package/build/item-group/styles.js +10 -10
- package/build/item-group/styles.js.map +1 -1
- package/build/number-control/index.js +8 -4
- package/build/number-control/index.js.map +1 -1
- package/build/number-control/styles/number-control-styles.js +9 -15
- package/build/number-control/styles/number-control-styles.js.map +1 -1
- package/build/select-control/index.js +2 -1
- package/build/select-control/index.js.map +1 -1
- package/build/z-stack/component.js +5 -3
- package/build/z-stack/component.js.map +1 -1
- package/build/z-stack/styles.js +23 -42
- package/build/z-stack/styles.js.map +1 -1
- package/build-module/button/index.js +13 -4
- package/build-module/button/index.js.map +1 -1
- package/build-module/confirm-dialog/component.js +10 -2
- package/build-module/confirm-dialog/component.js.map +1 -1
- package/build-module/font-size-picker/index.js +5 -4
- package/build-module/font-size-picker/index.js.map +1 -1
- package/build-module/font-size-picker/styles.js +17 -23
- package/build-module/font-size-picker/styles.js.map +1 -1
- package/build-module/item-group/styles.js +10 -10
- package/build-module/item-group/styles.js.map +1 -1
- package/build-module/number-control/index.js +8 -5
- package/build-module/number-control/index.js.map +1 -1
- package/build-module/number-control/styles/number-control-styles.js +7 -14
- package/build-module/number-control/styles/number-control-styles.js.map +1 -1
- package/build-module/select-control/index.js +2 -1
- package/build-module/select-control/index.js.map +1 -1
- package/build-module/z-stack/component.js +5 -3
- package/build-module/z-stack/component.js.map +1 -1
- package/build-module/z-stack/styles.js +22 -44
- package/build-module/z-stack/styles.js.map +1 -1
- package/build-style/style-rtl.css +10 -9
- package/build-style/style.css +10 -9
- package/build-types/button/deprecated.d.ts +6 -6
- package/build-types/button/index.d.ts.map +1 -1
- package/build-types/button/types.d.ts +16 -9
- package/build-types/button/types.d.ts.map +1 -1
- package/build-types/confirm-dialog/component.d.ts.map +1 -1
- package/build-types/font-size-picker/index.d.ts.map +1 -1
- package/build-types/font-size-picker/styles.d.ts +0 -6
- package/build-types/font-size-picker/styles.d.ts.map +1 -1
- package/build-types/navigator/navigator-back-button/component.d.ts +1 -1
- package/build-types/navigator/navigator-back-button/hook.d.ts +1 -1
- package/build-types/navigator/navigator-button/component.d.ts +1 -1
- package/build-types/navigator/navigator-button/hook.d.ts +1 -1
- package/build-types/navigator/navigator-to-parent-button/component.d.ts +1 -1
- package/build-types/number-control/index.d.ts.map +1 -1
- package/build-types/number-control/styles/number-control-styles.d.ts +5 -3
- package/build-types/number-control/styles/number-control-styles.d.ts.map +1 -1
- package/build-types/select-control/index.d.ts.map +1 -1
- package/build-types/select-control/types.d.ts +6 -0
- package/build-types/select-control/types.d.ts.map +1 -1
- package/build-types/toolbar/toolbar-button/index.d.ts +6 -6
- package/build-types/z-stack/component.d.ts.map +1 -1
- package/build-types/z-stack/stories/index.d.ts.map +1 -1
- package/build-types/z-stack/styles.d.ts +5 -4
- package/build-types/z-stack/styles.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/button/README.md +15 -0
- package/src/button/index.tsx +11 -4
- package/src/button/style.scss +13 -12
- package/src/button/test/index.tsx +13 -0
- package/src/button/types.ts +17 -9
- package/src/confirm-dialog/component.tsx +12 -2
- package/src/confirm-dialog/stories/index.js +8 -15
- package/src/confirm-dialog/test/index.js +42 -0
- package/src/font-size-picker/index.tsx +9 -5
- package/src/font-size-picker/styles.ts +0 -10
- package/src/item-group/styles.ts +1 -1
- package/src/modal/style.scss +3 -2
- package/src/number-control/index.tsx +6 -3
- package/src/number-control/styles/number-control-styles.ts +8 -16
- package/src/select-control/index.tsx +1 -0
- package/src/select-control/types.ts +6 -0
- package/src/z-stack/component.tsx +4 -2
- package/src/z-stack/stories/index.tsx +6 -13
- package/src/z-stack/styles.ts +23 -24
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -6,60 +6,38 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
6
6
|
* External dependencies
|
|
7
7
|
*/
|
|
8
8
|
import { css } from '@emotion/react';
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Internal dependencies
|
|
12
|
-
*/
|
|
13
|
-
import { rtl } from '../utils';
|
|
14
|
-
export const ZStackView = _styled("div", process.env.NODE_ENV === "production" ? {
|
|
9
|
+
export const ZStackChildView = _styled("div", process.env.NODE_ENV === "production" ? {
|
|
15
10
|
target: "ebn2ljm1"
|
|
16
11
|
} : {
|
|
17
12
|
target: "ebn2ljm1",
|
|
18
|
-
label: "ZStackView"
|
|
19
|
-
})(process.env.NODE_ENV === "production" ? {
|
|
20
|
-
name: "5ob2ly",
|
|
21
|
-
styles: "display:flex;position:relative"
|
|
22
|
-
} : {
|
|
23
|
-
name: "5ob2ly",
|
|
24
|
-
styles: "display:flex;position:relative",
|
|
25
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkB3b3JkcHJlc3MvY29tcG9uZW50cy9zcmMvei1zdGFjay9zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBV29DIiwiZmlsZSI6IkB3b3JkcHJlc3MvY29tcG9uZW50cy9zcmMvei1zdGFjay9zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEV4dGVybmFsIGRlcGVuZGVuY2llc1xuICovXG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5cbi8qKlxuICogSW50ZXJuYWwgZGVwZW5kZW5jaWVzXG4gKi9cbmltcG9ydCB7IHJ0bCB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGNvbnN0IFpTdGFja1ZpZXcgPSBzdHlsZWQuZGl2YFxuXHRkaXNwbGF5OiBmbGV4O1xuXHRwb3NpdGlvbjogcmVsYXRpdmU7XG5gO1xuXG5leHBvcnQgY29uc3QgWlN0YWNrQ2hpbGRWaWV3ID0gc3R5bGVkLmRpdjwge1xuXHRpc0xheWVyZWQ6IGJvb2xlYW47XG5cdG9mZnNldEFtb3VudDogbnVtYmVyO1xuXHR6SW5kZXg6IG51bWJlcjtcbn0gPmBcblx0JHsgKCB7IGlzTGF5ZXJlZCwgb2Zmc2V0QW1vdW50IH0gKSA9PlxuXHRcdGlzTGF5ZXJlZFxuXHRcdFx0PyBjc3MoIHJ0bCggeyBtYXJnaW5MZWZ0OiBvZmZzZXRBbW91bnQgfSApKCkgKVxuXHRcdFx0OiBjc3MoIHJ0bCggeyByaWdodDogb2Zmc2V0QW1vdW50ICogLTEgfSApKCkgKSB9XG5cblx0JHsgKCB7IGlzTGF5ZXJlZCB9ICkgPT5cblx0XHRpc0xheWVyZWQgPyBwb3NpdGlvbkFic29sdXRlIDogcG9zaXRpb25SZWxhdGl2ZSB9XG5cblx0JHsgKCB7IHpJbmRleCB9ICkgPT4gY3NzKCB7IHpJbmRleCB9ICkgfVxuYDtcblxuY29uc3QgcG9zaXRpb25BYnNvbHV0ZSA9IGNzc2Bcblx0cG9zaXRpb246IGFic29sdXRlO1xuYDtcblxuY29uc3QgcG9zaXRpb25SZWxhdGl2ZSA9IGNzc2Bcblx0cG9zaXRpb246IHJlbGF0aXZlO1xuYDtcbiJdfQ== */",
|
|
26
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
27
|
-
});
|
|
28
|
-
export const ZStackChildView = _styled("div", process.env.NODE_ENV === "production" ? {
|
|
29
|
-
target: "ebn2ljm0"
|
|
30
|
-
} : {
|
|
31
|
-
target: "ebn2ljm0",
|
|
32
13
|
label: "ZStackChildView"
|
|
33
|
-
})(({
|
|
34
|
-
isLayered,
|
|
14
|
+
})("&:not( :first-of-type ){", ({
|
|
35
15
|
offsetAmount
|
|
36
|
-
}) =>
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
right: offsetAmount * -1
|
|
40
|
-
})(), process.env.NODE_ENV === "production" ? "" : ";label:ZStackChildView;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkB3b3JkcHJlc3MvY29tcG9uZW50cy9zcmMvei1zdGFjay9zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBd0JLIiwiZmlsZSI6IkB3b3JkcHJlc3MvY29tcG9uZW50cy9zcmMvei1zdGFjay9zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEV4dGVybmFsIGRlcGVuZGVuY2llc1xuICovXG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5cbi8qKlxuICogSW50ZXJuYWwgZGVwZW5kZW5jaWVzXG4gKi9cbmltcG9ydCB7IHJ0bCB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGNvbnN0IFpTdGFja1ZpZXcgPSBzdHlsZWQuZGl2YFxuXHRkaXNwbGF5OiBmbGV4O1xuXHRwb3NpdGlvbjogcmVsYXRpdmU7XG5gO1xuXG5leHBvcnQgY29uc3QgWlN0YWNrQ2hpbGRWaWV3ID0gc3R5bGVkLmRpdjwge1xuXHRpc0xheWVyZWQ6IGJvb2xlYW47XG5cdG9mZnNldEFtb3VudDogbnVtYmVyO1xuXHR6SW5kZXg6IG51bWJlcjtcbn0gPmBcblx0JHsgKCB7IGlzTGF5ZXJlZCwgb2Zmc2V0QW1vdW50IH0gKSA9PlxuXHRcdGlzTGF5ZXJlZFxuXHRcdFx0PyBjc3MoIHJ0bCggeyBtYXJnaW5MZWZ0OiBvZmZzZXRBbW91bnQgfSApKCkgKVxuXHRcdFx0OiBjc3MoIHJ0bCggeyByaWdodDogb2Zmc2V0QW1vdW50ICogLTEgfSApKCkgKSB9XG5cblx0JHsgKCB7IGlzTGF5ZXJlZCB9ICkgPT5cblx0XHRpc0xheWVyZWQgPyBwb3NpdGlvbkFic29sdXRlIDogcG9zaXRpb25SZWxhdGl2ZSB9XG5cblx0JHsgKCB7IHpJbmRleCB9ICkgPT4gY3NzKCB7IHpJbmRleCB9ICkgfVxuYDtcblxuY29uc3QgcG9zaXRpb25BYnNvbHV0ZSA9IGNzc2Bcblx0cG9zaXRpb246IGFic29sdXRlO1xuYDtcblxuY29uc3QgcG9zaXRpb25SZWxhdGl2ZSA9IGNzc2Bcblx0cG9zaXRpb246IHJlbGF0aXZlO1xuYDtcbiJdfQ== */"), " ", ({
|
|
41
|
-
isLayered
|
|
42
|
-
}) => isLayered ? positionAbsolute : positionRelative, " ", ({
|
|
16
|
+
}) => /*#__PURE__*/css({
|
|
17
|
+
marginInlineStart: offsetAmount
|
|
18
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:ZStackChildView;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkB3b3JkcHJlc3MvY29tcG9uZW50cy9zcmMvei1zdGFjay9zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBWUciLCJmaWxlIjoiQHdvcmRwcmVzcy9jb21wb25lbnRzL3NyYy96LXN0YWNrL3N0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogRXh0ZXJuYWwgZGVwZW5kZW5jaWVzXG4gKi9cbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcbmltcG9ydCBzdHlsZWQgZnJvbSAnQ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__PURE__*/css({
|
|
45
21
|
zIndex
|
|
46
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:ZStackChildView;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
22
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:ZStackChildView;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkB3b3JkcHJlc3MvY29tcG9uZW50cy9zcmMvei1zdGFjay9zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBaUJzQiIsImZpbGUiOiJAd29yZHByZXNzL2NvbXBvbmVudHMvc3JjL3otc3RhY2svc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBFeHRlcm5hbCBkZXBlbmRlbmNpZXNcbiAqL1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuXG5leHBvcnQgY29uc3QgWlN0YWNrQ2hpbGRWaWV3ID0gc3R5bGVkLmRpdjwge1xuXHRvZmZzZXRBbW91bnQ6IG51bWJlcjtcblx0ekluZGV4OiBudW1iZXI7XG59ID5gXG5cdCY6bm90KCA6Zmlyc3Qtb2YtdHlwZSApIHtcblx0XHQkeyAoIHsgb2Zmc2V0QW1vdW50IH0gKSA9PlxuXHRcdFx0Y3NzKCB7XG5cdFx0XHRcdG1hcmdpbklubGluZVN0YXJ0OiBvZmZzZXRBbW91bnQsXG5cdFx0XHR9ICkgfTtcblx0fVxuXG5cdCR7ICggeyB6SW5kZXggfSApID0+IGNzcyggeyB6SW5kZXggfSApIH07XG5gO1xuXG5leHBvcnQgY29uc3QgWlN0YWNrVmlldyA9IHN0eWxlZC5kaXY8IHtcblx0aXNMYXllcmVkOiBib29sZWFuO1xufSA+YFxuXHRkaXNwbGF5OiBpbmxpbmUtZ3JpZDtcblx0Z3JpZC1hdXRvLWZsb3c6IGNvbHVtbjtcblx0cG9zaXRpb246IHJlbGF0aXZlO1xuXG5cdCYgPiAkeyBaU3RhY2tDaGlsZFZpZXcgfSB7XG5cdFx0cG9zaXRpb246IHJlbGF0aXZlO1xuXHRcdGp1c3RpZnktc2VsZjogc3RhcnQ7XG5cblx0XHQkeyAoIHsgaXNMYXllcmVkIH0gKSA9PlxuXHRcdFx0aXNMYXllcmVkXG5cdFx0XHRcdD8gLy8gV2hlbiBgaXNMYXllcmVkYCBpcyB0cnVlLCBhbGwgaXRlbXMgb3ZlcmxhcCBpbiB0aGUgc2FtZSBncmlkIGNlbGxcblx0XHRcdFx0ICBjc3MoIHsgZ3JpZFJvd1N0YXJ0OiAxLCBncmlkQ29sdW1uU3RhcnQ6IDEgfSApXG5cdFx0XHRcdDogdW5kZWZpbmVkIH07XG5cdH1cbmA7XG4iXX0= */"), ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkB3b3JkcHJlc3MvY29tcG9uZW50cy9zcmMvei1zdGFjay9zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBU0ciLCJmaWxlIjoiQHdvcmRwcmVzcy9jb21wb25lbnRzL3NyYy96LXN0YWNrL3N0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogRXh0ZXJuYWwgZGVwZW5kZW5jaWVzXG4gKi9cbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcblxuZXhwb3J0IGNvbnN0IFpTdGFja0NoaWxkVmlldyA9IHN0eWxlZC5kaXY8IHtcblx0b2Zm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|
52
|
-
styles: "
|
|
53
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
28
|
+
name: "80o7c0-ZStackView",
|
|
29
|
+
styles: "grid-row-start:1;grid-column-start:1;label:ZStackView;",
|
|
30
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkB3b3JkcHJlc3MvY29tcG9uZW50cy9zcmMvei1zdGFjay9zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBa0NNIiwiZmlsZSI6IkB3b3JkcHJlc3MvY29tcG9uZW50cy9zcmMvei1zdGFjay9zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEV4dGVybmFsIGRlcGVuZGVuY2llc1xuICovXG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5cbmV4cG9ydCBjb25zdCBaU3RhY2tDaGlsZFZpZXcgPSBzdHlsZWQuZGl2PCB7XG5cdG9mZnNldEFtb3VudDogbnVtYmVyO1xuXHR6SW5kZXg6IG51bWJlcjtcbn0gPmBcblx0Jjpub3QoIDpmaXJzdC1vZi10eXBlICkge1xuXHRcdCR7ICggeyBvZmZzZXRBbW91bnQgfSApID0+XG5cdFx0XHRjc3MoIHtcblx0XHRcdFx0bWFyZ2luSW5saW5lU3RhcnQ6IG9mZnNldEFtb3VudCxcblx0XHRcdH0gKSB9O1xuXHR9XG5cblx0JHsgKCB7IHpJbmRleCB9ICkgPT4gY3NzKCB7IHpJbmRleCB9ICkgfTtcbmA7XG5cbmV4cG9ydCBjb25zdCBaU3RhY2tWaWV3ID0gc3R5bGVkLmRpdjwge1xuXHRpc0xheWVyZWQ6IGJvb2xlYW47XG59ID5gXG5cdGRpc3BsYXk6IGlubGluZS1ncmlkO1xuXHRncmlkLWF1dG8tZmxvdzogY29sdW1uO1xuXHRwb3NpdGlvbjogcmVsYXRpdmU7XG5cblx0JiA+ICR7IFpTdGFja0NoaWxkVmlldyB9IHtcblx0XHRwb3NpdGlvbjogcmVsYXRpdmU7XG5cdFx0anVzdGlmeS1zZWxmOiBzdGFydDtcblxuXHRcdCR7ICggeyBpc0xheWVyZWQgfSApID0+XG5cdFx0XHRpc0xheWVyZWRcblx0XHRcdFx0PyAvLyBXaGVuIGBpc0xheWVyZWRgIGlzIHRydWUsIGFsbCBpdGVtcyBvdmVybGFwIGluIHRoZSBzYW1lIGdyaWQgY2VsbFxuXHRcdFx0XHQgIGNzcyggeyBncmlkUm93U3RhcnQ6IDEsIGdyaWRDb2x1bW5TdGFydDogMSB9IClcblx0XHRcdFx0OiB1bmRlZmluZWQgfTtcblx0fVxuYDtcbiJdfQ== */",
|
|
54
31
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
55
32
|
};
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
33
|
+
|
|
34
|
+
export const ZStackView = _styled("div", process.env.NODE_ENV === "production" ? {
|
|
35
|
+
target: "ebn2ljm0"
|
|
59
36
|
} : {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
37
|
+
target: "ebn2ljm0",
|
|
38
|
+
label: "ZStackView"
|
|
39
|
+
})("display:inline-grid;grid-auto-flow:column;position:relative;&>", ZStackChildView, "{position:relative;justify-self:start;", ({
|
|
40
|
+
isLayered
|
|
41
|
+
}) => isLayered ? // When `isLayered` is true, all items overlap in the same grid cell
|
|
42
|
+
_ref : undefined, ";}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkB3b3JkcHJlc3MvY29tcG9uZW50cy9zcmMvei1zdGFjay9zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBc0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ZSBzYW1lIGdyaWQgY2VsbFxuXHRcdFx0XHQgIGNzcyggeyBncmlkUm93U3RhcnQ6IDEsIGdyaWRDb2x1bW5TdGFydDogMSB9IClcblx0XHRcdFx0OiB1bmRlZmluZWQgfTtcblx0fVxuYDtcbiJdfQ== */"));
|
|
65
43
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["@wordpress/components/src/z-stack/styles.ts"],"names":["css","
|
|
1
|
+
{"version":3,"sources":["@wordpress/components/src/z-stack/styles.ts"],"names":["css","ZStackChildView","offsetAmount","marginInlineStart","zIndex","ZStackView","isLayered","undefined"],"mappings":";;;;AAAA;AACA;AACA;AACA,SAASA,GAAT,QAAoB,gBAApB;AAGA,OAAO,MAAMC,eAAe;AAAA;AAAA;AAAA;AAAA;AAAA,+BAKvB,CAAE;AAAEC,EAAAA;AAAF,CAAF,kBACFF,GAAG,CAAE;AACJG,EAAAA,iBAAiB,EAAED;AADf,CAAF,ihDANsB,QAWxB,CAAE;AAAEE,EAAAA;AAAF,CAAF,kBAAkBJ,GAAG,CAAE;AAAEI,EAAAA;AAAF,CAAF,qhDAXG,i9CAArB;;;;;;;;;;;;AAcP,OAAO,MAAMC,UAAU;AAAA;AAAA;AAAA;AAAA;AAAA,qEAOfJ,eAPe,4CAWlB,CAAE;AAAEK,EAAAA;AAAF,CAAF,KACFA,SAAS,GACN;AADM,OAGNC,SAfiB,s9CAAhB","sourcesContent":["/**\n * External dependencies\n */\nimport { css } from '@emotion/react';\nimport styled from '@emotion/styled';\n\nexport const ZStackChildView = styled.div< {\n\toffsetAmount: number;\n\tzIndex: number;\n} >`\n\t&:not( :first-of-type ) {\n\t\t${ ( { offsetAmount } ) =>\n\t\t\tcss( {\n\t\t\t\tmarginInlineStart: offsetAmount,\n\t\t\t} ) };\n\t}\n\n\t${ ( { zIndex } ) => css( { zIndex } ) };\n`;\n\nexport const ZStackView = styled.div< {\n\tisLayered: boolean;\n} >`\n\tdisplay: inline-grid;\n\tgrid-auto-flow: column;\n\tposition: relative;\n\n\t& > ${ ZStackChildView } {\n\t\tposition: relative;\n\t\tjustify-self: start;\n\n\t\t${ ( { isLayered } ) =>\n\t\t\tisLayered\n\t\t\t\t? // When `isLayered` is true, all items overlap in the same grid cell\n\t\t\t\t css( { gridRowStart: 1, gridColumnStart: 1 } )\n\t\t\t\t: undefined };\n\t}\n`;\n"]}
|
|
@@ -402,21 +402,22 @@ p + .components-button.is-tertiary {
|
|
|
402
402
|
background-image: linear-gradient(45deg, #fafafa 33%, #e0e0e0 33%, #e0e0e0 70%, #fafafa 70%);
|
|
403
403
|
/* stylelint-enable */
|
|
404
404
|
}
|
|
405
|
-
.components-button.is-
|
|
405
|
+
.components-button.is-compact {
|
|
406
406
|
height: 32px;
|
|
407
|
-
line-height: 22px;
|
|
408
|
-
padding: 0 8px;
|
|
409
|
-
font-size: 11px;
|
|
410
407
|
}
|
|
411
|
-
.components-button.is-
|
|
408
|
+
.components-button.is-compact.has-icon:not(.has-text) {
|
|
412
409
|
padding: 0;
|
|
413
410
|
width: 32px;
|
|
414
411
|
min-width: 32px;
|
|
415
412
|
}
|
|
416
|
-
.components-button.is-small
|
|
413
|
+
.components-button.is-small {
|
|
417
414
|
height: 24px;
|
|
415
|
+
line-height: 22px;
|
|
416
|
+
padding: 0 8px;
|
|
417
|
+
font-size: 11px;
|
|
418
418
|
}
|
|
419
|
-
.components-button.is-small
|
|
419
|
+
.components-button.is-small.has-icon:not(.has-text) {
|
|
420
|
+
padding: 0;
|
|
420
421
|
width: 24px;
|
|
421
422
|
min-width: 24px;
|
|
422
423
|
}
|
|
@@ -1903,7 +1904,7 @@ body.is-dragging-components-draggable {
|
|
|
1903
1904
|
.components-modal__header {
|
|
1904
1905
|
box-sizing: border-box;
|
|
1905
1906
|
border-bottom: 1px solid transparent;
|
|
1906
|
-
padding: 24px 32px
|
|
1907
|
+
padding: 24px 32px 8px;
|
|
1907
1908
|
display: flex;
|
|
1908
1909
|
flex-direction: row;
|
|
1909
1910
|
justify-content: space-between;
|
|
@@ -1954,7 +1955,7 @@ body.is-dragging-components-draggable {
|
|
|
1954
1955
|
.components-modal__content {
|
|
1955
1956
|
flex: 1;
|
|
1956
1957
|
margin-top: 72px;
|
|
1957
|
-
padding:
|
|
1958
|
+
padding: 4px 32px 32px;
|
|
1958
1959
|
overflow: auto;
|
|
1959
1960
|
}
|
|
1960
1961
|
.components-modal__content.hide-header {
|
package/build-style/style.css
CHANGED
|
@@ -402,21 +402,22 @@ p + .components-button.is-tertiary {
|
|
|
402
402
|
background-image: linear-gradient(-45deg, #fafafa 33%, #e0e0e0 33%, #e0e0e0 70%, #fafafa 70%);
|
|
403
403
|
/* stylelint-enable */
|
|
404
404
|
}
|
|
405
|
-
.components-button.is-
|
|
405
|
+
.components-button.is-compact {
|
|
406
406
|
height: 32px;
|
|
407
|
-
line-height: 22px;
|
|
408
|
-
padding: 0 8px;
|
|
409
|
-
font-size: 11px;
|
|
410
407
|
}
|
|
411
|
-
.components-button.is-
|
|
408
|
+
.components-button.is-compact.has-icon:not(.has-text) {
|
|
412
409
|
padding: 0;
|
|
413
410
|
width: 32px;
|
|
414
411
|
min-width: 32px;
|
|
415
412
|
}
|
|
416
|
-
.components-button.is-small
|
|
413
|
+
.components-button.is-small {
|
|
417
414
|
height: 24px;
|
|
415
|
+
line-height: 22px;
|
|
416
|
+
padding: 0 8px;
|
|
417
|
+
font-size: 11px;
|
|
418
418
|
}
|
|
419
|
-
.components-button.is-small
|
|
419
|
+
.components-button.is-small.has-icon:not(.has-text) {
|
|
420
|
+
padding: 0;
|
|
420
421
|
width: 24px;
|
|
421
422
|
min-width: 24px;
|
|
422
423
|
}
|
|
@@ -1908,7 +1909,7 @@ body.is-dragging-components-draggable {
|
|
|
1908
1909
|
.components-modal__header {
|
|
1909
1910
|
box-sizing: border-box;
|
|
1910
1911
|
border-bottom: 1px solid transparent;
|
|
1911
|
-
padding: 24px 32px
|
|
1912
|
+
padding: 24px 32px 8px;
|
|
1912
1913
|
display: flex;
|
|
1913
1914
|
flex-direction: row;
|
|
1914
1915
|
justify-content: space-between;
|
|
@@ -1959,7 +1960,7 @@ body.is-dragging-components-draggable {
|
|
|
1959
1960
|
.components-modal__content {
|
|
1960
1961
|
flex: 1;
|
|
1961
1962
|
margin-top: 72px;
|
|
1962
|
-
padding:
|
|
1963
|
+
padding: 4px 32px 32px;
|
|
1963
1964
|
overflow: auto;
|
|
1964
1965
|
}
|
|
1965
1966
|
.components-modal__content.hide-header {
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import type { DeprecatedIconButtonProps } from './types';
|
|
3
3
|
declare const _default: import("react").ForwardRefExoticComponent<((Pick<{
|
|
4
4
|
__next40pxDefaultSize?: boolean | undefined;
|
|
5
|
-
__next32pxSmallSize?: boolean | undefined;
|
|
6
5
|
children?: import("react").ReactNode;
|
|
7
6
|
describedBy?: string | undefined;
|
|
8
7
|
focus?: boolean | undefined;
|
|
@@ -19,6 +18,7 @@ declare const _default: import("react").ForwardRefExoticComponent<((Pick<{
|
|
|
19
18
|
ariaLabel: string;
|
|
20
19
|
} | undefined;
|
|
21
20
|
showTooltip?: boolean | undefined;
|
|
21
|
+
size?: "default" | "small" | "compact" | undefined;
|
|
22
22
|
text?: string | undefined;
|
|
23
23
|
tooltipPosition?: ("bottom" | "top" | "middle") | "bottom left" | "bottom right" | "bottom center" | "top left" | "top right" | "top center" | "middle left" | "middle right" | "middle center" | "bottom left left" | "bottom left right" | "bottom left bottom" | "bottom left top" | "bottom right left" | "bottom right right" | "bottom right bottom" | "bottom right top" | "bottom center left" | "bottom center right" | "bottom center bottom" | "bottom center top" | "top left left" | "top left right" | "top left bottom" | "top left top" | "top right left" | "top right right" | "top right bottom" | "top right top" | "top center left" | "top center right" | "top center bottom" | "top center top" | "middle left left" | "middle left right" | "middle left bottom" | "middle left top" | "middle right left" | "middle right right" | "middle right bottom" | "middle right top" | "middle center left" | "middle center right" | "middle center bottom" | "middle center top" | undefined;
|
|
24
24
|
variant?: "link" | "primary" | "secondary" | "tertiary" | undefined;
|
|
@@ -27,7 +27,6 @@ declare const _default: import("react").ForwardRefExoticComponent<((Pick<{
|
|
|
27
27
|
disabled?: boolean | undefined;
|
|
28
28
|
} & Omit<Pick<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement>>, "disabled" | "as" | keyof {
|
|
29
29
|
__next40pxDefaultSize?: boolean | undefined;
|
|
30
|
-
__next32pxSmallSize?: boolean | undefined;
|
|
31
30
|
children?: import("react").ReactNode;
|
|
32
31
|
describedBy?: string | undefined;
|
|
33
32
|
focus?: boolean | undefined;
|
|
@@ -44,13 +43,13 @@ declare const _default: import("react").ForwardRefExoticComponent<((Pick<{
|
|
|
44
43
|
ariaLabel: string;
|
|
45
44
|
} | undefined;
|
|
46
45
|
showTooltip?: boolean | undefined;
|
|
46
|
+
size?: "default" | "small" | "compact" | undefined;
|
|
47
47
|
text?: string | undefined;
|
|
48
48
|
tooltipPosition?: ("bottom" | "top" | "middle") | "bottom left" | "bottom right" | "bottom center" | "top left" | "top right" | "top center" | "middle left" | "middle right" | "middle center" | "bottom left left" | "bottom left right" | "bottom left bottom" | "bottom left top" | "bottom right left" | "bottom right right" | "bottom right bottom" | "bottom right top" | "bottom center left" | "bottom center right" | "bottom center bottom" | "bottom center top" | "top left left" | "top left right" | "top left bottom" | "top left top" | "top right left" | "top right right" | "top right bottom" | "top right top" | "top center left" | "top center right" | "top center bottom" | "top center top" | "middle left left" | "middle left right" | "middle left bottom" | "middle left top" | "middle right left" | "middle right right" | "middle right bottom" | "middle right top" | "middle center left" | "middle center right" | "middle center bottom" | "middle center top" | undefined;
|
|
49
49
|
variant?: "link" | "primary" | "secondary" | "tertiary" | undefined;
|
|
50
50
|
__experimentalIsFocusable?: boolean | undefined;
|
|
51
51
|
}> & import("react").RefAttributes<any>, "defaultValue" | "onChange" | "value" | "name" | "color" | "translate" | "hidden" | "style" | "disabled" | "key" | "form" | "slot" | "title" | "type" | "id" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | keyof {
|
|
52
52
|
__next40pxDefaultSize?: boolean | undefined;
|
|
53
|
-
__next32pxSmallSize?: boolean | undefined;
|
|
54
53
|
children?: import("react").ReactNode;
|
|
55
54
|
describedBy?: string | undefined;
|
|
56
55
|
focus?: boolean | undefined;
|
|
@@ -67,13 +66,13 @@ declare const _default: import("react").ForwardRefExoticComponent<((Pick<{
|
|
|
67
66
|
ariaLabel: string;
|
|
68
67
|
} | undefined;
|
|
69
68
|
showTooltip?: boolean | undefined;
|
|
69
|
+
size?: "default" | "small" | "compact" | undefined;
|
|
70
70
|
text?: string | undefined;
|
|
71
71
|
tooltipPosition?: ("bottom" | "top" | "middle") | "bottom left" | "bottom right" | "bottom center" | "top left" | "top right" | "top center" | "middle left" | "middle right" | "middle center" | "bottom left left" | "bottom left right" | "bottom left bottom" | "bottom left top" | "bottom right left" | "bottom right right" | "bottom right bottom" | "bottom right top" | "bottom center left" | "bottom center right" | "bottom center bottom" | "bottom center top" | "top left left" | "top left right" | "top left bottom" | "top left top" | "top right left" | "top right right" | "top right bottom" | "top right top" | "top center left" | "top center right" | "top center bottom" | "top center top" | "middle left left" | "middle left right" | "middle left bottom" | "middle left top" | "middle right left" | "middle right right" | "middle right bottom" | "middle right top" | "middle center left" | "middle center right" | "middle center bottom" | "middle center top" | undefined;
|
|
72
72
|
variant?: "link" | "primary" | "secondary" | "tertiary" | undefined;
|
|
73
73
|
__experimentalIsFocusable?: boolean | undefined;
|
|
74
74
|
}> | Pick<{
|
|
75
75
|
__next40pxDefaultSize?: boolean | undefined;
|
|
76
|
-
__next32pxSmallSize?: boolean | undefined;
|
|
77
76
|
children?: import("react").ReactNode;
|
|
78
77
|
describedBy?: string | undefined;
|
|
79
78
|
focus?: boolean | undefined;
|
|
@@ -90,6 +89,7 @@ declare const _default: import("react").ForwardRefExoticComponent<((Pick<{
|
|
|
90
89
|
ariaLabel: string;
|
|
91
90
|
} | undefined;
|
|
92
91
|
showTooltip?: boolean | undefined;
|
|
92
|
+
size?: "default" | "small" | "compact" | undefined;
|
|
93
93
|
text?: string | undefined;
|
|
94
94
|
tooltipPosition?: ("bottom" | "top" | "middle") | "bottom left" | "bottom right" | "bottom center" | "top left" | "top right" | "top center" | "middle left" | "middle right" | "middle center" | "bottom left left" | "bottom left right" | "bottom left bottom" | "bottom left top" | "bottom right left" | "bottom right right" | "bottom right bottom" | "bottom right top" | "bottom center left" | "bottom center right" | "bottom center bottom" | "bottom center top" | "top left left" | "top left right" | "top left bottom" | "top left top" | "top right left" | "top right right" | "top right bottom" | "top right top" | "top center left" | "top center right" | "top center bottom" | "top center top" | "middle left left" | "middle left right" | "middle left bottom" | "middle left top" | "middle right left" | "middle right right" | "middle right bottom" | "middle right top" | "middle center left" | "middle center right" | "middle center bottom" | "middle center top" | undefined;
|
|
95
95
|
variant?: "link" | "primary" | "secondary" | "tertiary" | undefined;
|
|
@@ -100,7 +100,6 @@ declare const _default: import("react").ForwardRefExoticComponent<((Pick<{
|
|
|
100
100
|
target?: string | undefined;
|
|
101
101
|
} & Omit<Pick<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "key" | keyof import("react").AnchorHTMLAttributes<HTMLAnchorElement>>, "as" | keyof {
|
|
102
102
|
__next40pxDefaultSize?: boolean | undefined;
|
|
103
|
-
__next32pxSmallSize?: boolean | undefined;
|
|
104
103
|
children?: import("react").ReactNode;
|
|
105
104
|
describedBy?: string | undefined;
|
|
106
105
|
focus?: boolean | undefined;
|
|
@@ -117,6 +116,7 @@ declare const _default: import("react").ForwardRefExoticComponent<((Pick<{
|
|
|
117
116
|
ariaLabel: string;
|
|
118
117
|
} | undefined;
|
|
119
118
|
showTooltip?: boolean | undefined;
|
|
119
|
+
size?: "default" | "small" | "compact" | undefined;
|
|
120
120
|
text?: string | undefined;
|
|
121
121
|
tooltipPosition?: ("bottom" | "top" | "middle") | "bottom left" | "bottom right" | "bottom center" | "top left" | "top right" | "top center" | "middle left" | "middle right" | "middle center" | "bottom left left" | "bottom left right" | "bottom left bottom" | "bottom left top" | "bottom right left" | "bottom right right" | "bottom right bottom" | "bottom right top" | "bottom center left" | "bottom center right" | "bottom center bottom" | "bottom center top" | "top left left" | "top left right" | "top left bottom" | "top left top" | "top right left" | "top right right" | "top right bottom" | "top right top" | "top center left" | "top center right" | "top center bottom" | "top center top" | "middle left left" | "middle left right" | "middle left bottom" | "middle left top" | "middle right left" | "middle right right" | "middle right bottom" | "middle right top" | "middle center left" | "middle center right" | "middle center bottom" | "middle center top" | undefined;
|
|
122
122
|
variant?: "link" | "primary" | "secondary" | "tertiary" | undefined;
|
|
@@ -127,7 +127,6 @@ declare const _default: import("react").ForwardRefExoticComponent<((Pick<{
|
|
|
127
127
|
target?: string | undefined;
|
|
128
128
|
}> & import("react").RefAttributes<any>, "defaultValue" | "onChange" | "color" | "translate" | "hidden" | "style" | "key" | "slot" | "title" | "type" | "download" | "id" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "media" | keyof {
|
|
129
129
|
__next40pxDefaultSize?: boolean | undefined;
|
|
130
|
-
__next32pxSmallSize?: boolean | undefined;
|
|
131
130
|
children?: import("react").ReactNode;
|
|
132
131
|
describedBy?: string | undefined;
|
|
133
132
|
focus?: boolean | undefined;
|
|
@@ -144,6 +143,7 @@ declare const _default: import("react").ForwardRefExoticComponent<((Pick<{
|
|
|
144
143
|
ariaLabel: string;
|
|
145
144
|
} | undefined;
|
|
146
145
|
showTooltip?: boolean | undefined;
|
|
146
|
+
size?: "default" | "small" | "compact" | undefined;
|
|
147
147
|
text?: string | undefined;
|
|
148
148
|
tooltipPosition?: ("bottom" | "top" | "middle") | "bottom left" | "bottom right" | "bottom center" | "top left" | "top right" | "top center" | "middle left" | "middle right" | "middle center" | "bottom left left" | "bottom left right" | "bottom left bottom" | "bottom left top" | "bottom right left" | "bottom right right" | "bottom right bottom" | "bottom right top" | "bottom center left" | "bottom center right" | "bottom center bottom" | "bottom center top" | "top left left" | "top left right" | "top left bottom" | "top left top" | "top right left" | "top right right" | "top right bottom" | "top right top" | "top center left" | "top center right" | "top center bottom" | "top center top" | "middle left left" | "middle left right" | "middle left bottom" | "middle left top" | "middle right left" | "middle right right" | "middle right bottom" | "middle right top" | "middle center left" | "middle center right" | "middle center bottom" | "middle center top" | undefined;
|
|
149
149
|
variant?: "link" | "primary" | "secondary" | "tertiary" | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/button/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAEX,YAAY,EAIZ,MAAM,OAAO,CAAC;AAef,OAAO,KAAK,EAAE,WAAW,EAAyB,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/button/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAEX,YAAY,EAIZ,MAAM,OAAO,CAAC;AAef,OAAO,KAAK,EAAE,WAAW,EAAyB,MAAM,SAAS,CAAC;AAuDlE,wBAAgB,iBAAiB,CAChC,KAAK,EAAE,WAAW,EAClB,GAAG,EAAE,YAAY,CAAE,GAAG,CAAE,eAmLxB;AAED;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,MAAM,6FAAkC,CAAC;AACtD,eAAe,MAAM,CAAC"}
|
|
@@ -19,15 +19,6 @@ type BaseButtonProps = {
|
|
|
19
19
|
* @default false
|
|
20
20
|
*/
|
|
21
21
|
__next40pxDefaultSize?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Start opting into the larger `isSmall` button size that will become the
|
|
24
|
-
* default small size in a future version.
|
|
25
|
-
*
|
|
26
|
-
* Only takes effect when the `isSmall` prop is `true`.
|
|
27
|
-
*
|
|
28
|
-
* @default false
|
|
29
|
-
*/
|
|
30
|
-
__next32pxSmallSize?: boolean;
|
|
31
22
|
/**
|
|
32
23
|
* The button's children.
|
|
33
24
|
*/
|
|
@@ -70,6 +61,10 @@ type BaseButtonProps = {
|
|
|
70
61
|
isPressed?: boolean;
|
|
71
62
|
/**
|
|
72
63
|
* Decreases the size of the button.
|
|
64
|
+
*
|
|
65
|
+
* Deprecated in favor of the `size` prop. If both props are defined, the `size` prop will take precedence.
|
|
66
|
+
*
|
|
67
|
+
* @deprecated Use the `'small'` value on the `size` prop instead.
|
|
73
68
|
*/
|
|
74
69
|
isSmall?: boolean;
|
|
75
70
|
/**
|
|
@@ -89,6 +84,18 @@ type BaseButtonProps = {
|
|
|
89
84
|
* If provided, renders a Tooltip component for the button.
|
|
90
85
|
*/
|
|
91
86
|
showTooltip?: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* The size of the button.
|
|
89
|
+
*
|
|
90
|
+
* - `'default'`: For normal text-label buttons, unless it is a toggle button.
|
|
91
|
+
* - `'compact'`: For toggle buttons, icon buttons, and buttons when used in context of either.
|
|
92
|
+
* - `'small'`: For icon buttons associated with more advanced or auxiliary features.
|
|
93
|
+
*
|
|
94
|
+
* If the deprecated `isSmall` prop is also defined, this prop will take precedence.
|
|
95
|
+
*
|
|
96
|
+
* @default 'default'
|
|
97
|
+
*/
|
|
98
|
+
size?: 'default' | 'compact' | 'small';
|
|
92
99
|
/**
|
|
93
100
|
* If provided, displays the given text inside the button. If the button contains children elements, the text is displayed before them.
|
|
94
101
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/button/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;GAEG;AACH,OAAO,KAAK,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAEjF,MAAM,MAAM,WAAW,GACpB,uBAAuB,CAAE,mBAAmB,EAAE,QAAQ,EAAE,KAAK,CAAE,GAC/D,uBAAuB,CAAE,mBAAmB,EAAE,GAAG,EAAE,KAAK,CAAE,CAAC;AAE9D,MAAM,MAAM,mBAAmB,GAAG,eAAe,GAAG,YAAY,CAAC;AACjE,MAAM,MAAM,mBAAmB,GAAG,eAAe,GAAG,WAAW,CAAC;AAEhE,KAAK,eAAe,GAAG;IACtB;;;;;OAKG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/button/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;GAEG;AACH,OAAO,KAAK,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,SAAS,CAA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AAK,EAAY,gBAAgB,EAAE,MAAM,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../src/confirm-dialog/component.tsx"],"names":[],"mappings":";AAeA,OAAO,KAAK,EAAY,gBAAgB,EAAE,MAAM,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgH1D,wBAAgE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/font-size-picker/index.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/font-size-picker/index.tsx"],"names":[],"mappings":";AA0BA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AA4QnD,eAAO,MAAM,cAAc,qGAA0C,CAAC;AAEtE,eAAe,cAAc,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { FontSizePickerProps } from './types';
|
|
3
2
|
export declare const Container: import("@emotion/styled").StyledComponent<{
|
|
4
3
|
theme?: import("@emotion/react").Theme | undefined;
|
|
5
4
|
as?: import("react").ElementType<any> | undefined;
|
|
@@ -30,9 +29,4 @@ export declare const Controls: import("@emotion/styled").StyledComponent<{
|
|
|
30
29
|
} & {
|
|
31
30
|
__nextHasNoMarginBottom: boolean;
|
|
32
31
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
33
|
-
export declare const ResetButton: import("@emotion/styled").StyledComponent<((import("../button/types").ButtonProps & import("react").RefAttributes<any>) & {
|
|
34
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
35
|
-
}) & {
|
|
36
|
-
size: FontSizePickerProps['size'];
|
|
37
|
-
}, {}, {}>;
|
|
38
32
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/font-size-picker/styles.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/font-size-picker/styles.ts"],"names":[],"mappings":";AAcA,eAAO,MAAM,SAAS;;;2HAIrB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;UAElB,CAAC;AAEF,eAAO,MAAM,YAAY;;UAExB,CAAC;AAEF,eAAO,MAAM,WAAW;;;;UAKvB,CAAC;AAEF,eAAO,MAAM,UAAU;;;2GAEtB,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;6BACK,OAAO;yGAIhC,CAAC"}
|
|
@@ -35,7 +35,6 @@
|
|
|
35
35
|
*/
|
|
36
36
|
export declare const NavigatorBackButton: import("../../ui/context").WordPressComponent<"button", {
|
|
37
37
|
__next40pxDefaultSize?: boolean | undefined;
|
|
38
|
-
__next32pxSmallSize?: boolean | undefined;
|
|
39
38
|
children?: import("react").ReactNode;
|
|
40
39
|
describedBy?: string | undefined;
|
|
41
40
|
focus?: boolean | undefined;
|
|
@@ -52,6 +51,7 @@ export declare const NavigatorBackButton: import("../../ui/context").WordPressCo
|
|
|
52
51
|
ariaLabel: string;
|
|
53
52
|
} | undefined;
|
|
54
53
|
showTooltip?: boolean | undefined;
|
|
54
|
+
size?: "default" | "small" | "compact" | undefined;
|
|
55
55
|
text?: string | undefined;
|
|
56
56
|
tooltipPosition?: ("bottom" | "top" | "middle") | "bottom left" | "bottom right" | "bottom center" | "top left" | "top right" | "top center" | "middle left" | "middle right" | "middle center" | "bottom left left" | "bottom left right" | "bottom left bottom" | "bottom left top" | "bottom right left" | "bottom right right" | "bottom right bottom" | "bottom right top" | "bottom center left" | "bottom center right" | "bottom center bottom" | "bottom center top" | "top left left" | "top left right" | "top left bottom" | "top left top" | "top right left" | "top right right" | "top right bottom" | "top right top" | "top center left" | "top center right" | "top center bottom" | "top center top" | "middle left left" | "middle left right" | "middle left bottom" | "middle left top" | "middle right left" | "middle right right" | "middle right bottom" | "middle right top" | "middle center left" | "middle center right" | "middle center bottom" | "middle center top" | undefined;
|
|
57
57
|
variant?: "link" | "primary" | "secondary" | "tertiary" | undefined;
|
|
@@ -6,7 +6,6 @@ import { WordPressComponentProps } from '../../ui/context';
|
|
|
6
6
|
import type { NavigatorBackButtonHookProps } from '../types';
|
|
7
7
|
export declare function useNavigatorBackButton(props: WordPressComponentProps<NavigatorBackButtonHookProps, 'button'>): {
|
|
8
8
|
__next40pxDefaultSize?: boolean | undefined;
|
|
9
|
-
__next32pxSmallSize?: boolean | undefined;
|
|
10
9
|
children?: import("react").ReactNode;
|
|
11
10
|
describedBy?: string | undefined;
|
|
12
11
|
focus?: boolean | undefined;
|
|
@@ -23,6 +22,7 @@ export declare function useNavigatorBackButton(props: WordPressComponentProps<Na
|
|
|
23
22
|
ariaLabel: string;
|
|
24
23
|
} | undefined;
|
|
25
24
|
showTooltip?: boolean | undefined;
|
|
25
|
+
size?: "default" | "small" | "compact" | undefined;
|
|
26
26
|
text?: string | undefined;
|
|
27
27
|
tooltipPosition?: ("bottom" | "top" | "middle") | "bottom left" | "bottom right" | "bottom center" | "top left" | "top right" | "top center" | "middle left" | "middle right" | "middle center" | "bottom left left" | "bottom left right" | "bottom left bottom" | "bottom left top" | "bottom right left" | "bottom right right" | "bottom right bottom" | "bottom right top" | "bottom center left" | "bottom center right" | "bottom center bottom" | "bottom center top" | "top left left" | "top left right" | "top left bottom" | "top left top" | "top right left" | "top right right" | "top right bottom" | "top right top" | "top center left" | "top center right" | "top center bottom" | "top center top" | "middle left left" | "middle left right" | "middle left bottom" | "middle left top" | "middle right left" | "middle right right" | "middle right bottom" | "middle right top" | "middle center left" | "middle center right" | "middle center bottom" | "middle center top" | undefined;
|
|
28
28
|
variant?: "link" | "primary" | "secondary" | "tertiary" | undefined;
|
|
@@ -34,7 +34,6 @@
|
|
|
34
34
|
*/
|
|
35
35
|
export declare const NavigatorButton: import("../../ui/context").WordPressComponent<"button", {
|
|
36
36
|
__next40pxDefaultSize?: boolean | undefined;
|
|
37
|
-
__next32pxSmallSize?: boolean | undefined;
|
|
38
37
|
children?: import("react").ReactNode;
|
|
39
38
|
describedBy?: string | undefined;
|
|
40
39
|
focus?: boolean | undefined;
|
|
@@ -51,6 +50,7 @@ export declare const NavigatorButton: import("../../ui/context").WordPressCompon
|
|
|
51
50
|
ariaLabel: string;
|
|
52
51
|
} | undefined;
|
|
53
52
|
showTooltip?: boolean | undefined;
|
|
53
|
+
size?: "default" | "small" | "compact" | undefined;
|
|
54
54
|
text?: string | undefined;
|
|
55
55
|
tooltipPosition?: ("bottom" | "top" | "middle") | "bottom left" | "bottom right" | "bottom center" | "top left" | "top right" | "top center" | "middle left" | "middle right" | "middle center" | "bottom left left" | "bottom left right" | "bottom left bottom" | "bottom left top" | "bottom right left" | "bottom right right" | "bottom right bottom" | "bottom right top" | "bottom center left" | "bottom center right" | "bottom center bottom" | "bottom center top" | "top left left" | "top left right" | "top left bottom" | "top left top" | "top right left" | "top right right" | "top right bottom" | "top right top" | "top center left" | "top center right" | "top center bottom" | "top center top" | "middle left left" | "middle left right" | "middle left bottom" | "middle left top" | "middle right left" | "middle right right" | "middle right bottom" | "middle right top" | "middle center left" | "middle center right" | "middle center bottom" | "middle center top" | undefined;
|
|
56
56
|
variant?: "link" | "primary" | "secondary" | "tertiary" | undefined;
|
|
@@ -6,7 +6,6 @@ import { WordPressComponentProps } from '../../ui/context';
|
|
|
6
6
|
import type { NavigatorButtonProps } from '../types';
|
|
7
7
|
export declare function useNavigatorButton(props: WordPressComponentProps<NavigatorButtonProps, 'button'>): {
|
|
8
8
|
__next40pxDefaultSize?: boolean | undefined;
|
|
9
|
-
__next32pxSmallSize?: boolean | undefined;
|
|
10
9
|
children?: import("react").ReactNode;
|
|
11
10
|
describedBy?: string | undefined;
|
|
12
11
|
focus?: boolean | undefined;
|
|
@@ -23,6 +22,7 @@ export declare function useNavigatorButton(props: WordPressComponentProps<Naviga
|
|
|
23
22
|
ariaLabel: string;
|
|
24
23
|
} | undefined;
|
|
25
24
|
showTooltip?: boolean | undefined;
|
|
25
|
+
size?: "default" | "small" | "compact" | undefined;
|
|
26
26
|
text?: string | undefined;
|
|
27
27
|
tooltipPosition?: ("bottom" | "top" | "middle") | "bottom left" | "bottom right" | "bottom center" | "top left" | "top right" | "top center" | "middle left" | "middle right" | "middle center" | "bottom left left" | "bottom left right" | "bottom left bottom" | "bottom left top" | "bottom right left" | "bottom right right" | "bottom right bottom" | "bottom right top" | "bottom center left" | "bottom center right" | "bottom center bottom" | "bottom center top" | "top left left" | "top left right" | "top left bottom" | "top left top" | "top right left" | "top right right" | "top right bottom" | "top right top" | "top center left" | "top center right" | "top center bottom" | "top center top" | "middle left left" | "middle left right" | "middle left bottom" | "middle left top" | "middle right left" | "middle right right" | "middle right bottom" | "middle right top" | "middle center left" | "middle center right" | "middle center bottom" | "middle center top" | undefined;
|
|
28
28
|
variant?: "link" | "primary" | "secondary" | "tertiary" | undefined;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const NavigatorToParentButton: import("../../ui/context").WordPressComponent<"button", {
|
|
3
3
|
__next40pxDefaultSize?: boolean | undefined;
|
|
4
|
-
__next32pxSmallSize?: boolean | undefined;
|
|
5
4
|
children?: import("react").ReactNode;
|
|
6
5
|
describedBy?: string | undefined;
|
|
7
6
|
focus?: boolean | undefined;
|
|
@@ -18,6 +17,7 @@ export declare const NavigatorToParentButton: import("../../ui/context").WordPre
|
|
|
18
17
|
ariaLabel: string;
|
|
19
18
|
} | undefined;
|
|
20
19
|
showTooltip?: boolean | undefined;
|
|
20
|
+
size?: "default" | "small" | "compact" | undefined;
|
|
21
21
|
text?: string | undefined;
|
|
22
22
|
tooltipPosition?: ("bottom" | "top" | "middle") | "bottom left" | "bottom right" | "bottom center" | "top left" | "top right" | "top center" | "middle left" | "middle right" | "middle center" | "bottom left left" | "bottom left right" | "bottom left bottom" | "bottom left top" | "bottom right left" | "bottom right right" | "bottom right bottom" | "bottom right top" | "bottom center left" | "bottom center right" | "bottom center bottom" | "bottom center top" | "top left left" | "top left right" | "top left bottom" | "top left top" | "top right left" | "top right right" | "top right bottom" | "top right top" | "top center left" | "top center right" | "top center bottom" | "top center top" | "middle left left" | "middle left right" | "middle left bottom" | "middle left top" | "middle right left" | "middle right right" | "middle right bottom" | "middle right top" | "middle center left" | "middle center right" | "middle center bottom" | "middle center top" | undefined;
|
|
23
23
|
variant?: "link" | "primary" | "secondary" | "tertiary" | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/number-control/index.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/number-control/index.tsx"],"names":[],"mappings":";AAkRA,eAAO,MAAM,aAAa;;;;;;;;;;;;m6KAAyC,CAAC;AAEpE,eAAe,aAAa,CAAC"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { NumberControlProps } from '../types';
|
|
3
2
|
export declare const Input: import("@emotion/styled").StyledComponent<import("../../input-control/types").InputControlProps & import("react").RefAttributes<HTMLInputElement> & {
|
|
4
3
|
theme?: import("@emotion/react").Theme | undefined;
|
|
5
4
|
} & {
|
|
6
5
|
hideHTMLArrows: boolean;
|
|
7
6
|
}, {}, {}>;
|
|
8
|
-
export declare const SpinButton: import("@emotion/styled").StyledComponent<(
|
|
7
|
+
export declare const SpinButton: import("@emotion/styled").StyledComponent<(import("../../button/types").ButtonProps & import("react").RefAttributes<any>) & {
|
|
9
8
|
theme?: import("@emotion/react").Theme | undefined;
|
|
10
|
-
}
|
|
9
|
+
}, {}, {}>;
|
|
10
|
+
export declare const styles: {
|
|
11
|
+
smallSpinButtons: import("@emotion/utils").SerializedStyles;
|
|
12
|
+
};
|
|
11
13
|
//# sourceMappingURL=number-control-styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"number-control-styles.d.ts","sourceRoot":"","sources":["../../../src/number-control/styles/number-control-styles.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"number-control-styles.d.ts","sourceRoot":"","sources":["../../../src/number-control/styles/number-control-styles.ts"],"names":[],"mappings":";AAgCA,eAAO,MAAM,KAAK;;;oBAlB8C,OAAO;UAoBtE,CAAC;AAEF,eAAO,MAAM,UAAU;;UAItB,CAAC;AAQF,eAAO,MAAM,MAAM;;CAAuB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/select-control/index.tsx"],"names":[],"mappings":";AAiBA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/select-control/index.tsx"],"names":[],"mappings":";AAiBA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAmIlD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,aAAa,4JAAyC,CAAC;AAEpE,eAAe,aAAa,CAAC"}
|
|
@@ -27,6 +27,12 @@ type SelectControlBaseProps = Pick<InputBaseProps, '__next36pxDefaultSize' | 'di
|
|
|
27
27
|
* @default false
|
|
28
28
|
*/
|
|
29
29
|
disabled?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Whether or not the option should be hidden.
|
|
32
|
+
*
|
|
33
|
+
* @default false
|
|
34
|
+
*/
|
|
35
|
+
hidden?: boolean;
|
|
30
36
|
}[];
|
|
31
37
|
/**
|
|
32
38
|
* As an alternative to the `options` prop, `optgroup`s and `options` can be
|