@wordpress/ui 0.5.1-next.v.0 → 0.6.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 +5 -1
- package/build/box/box.cjs +2 -2
- package/build/box/box.cjs.map +2 -2
- package/build/button/button.cjs +18 -303
- package/build/button/button.cjs.map +3 -3
- package/build/form/primitives/constants.cjs +35 -0
- package/build/form/primitives/constants.cjs.map +7 -0
- package/build/form/primitives/field/description.cjs +6 -33
- package/build/form/primitives/field/description.cjs.map +2 -2
- package/build/form/primitives/field/details.cjs +6 -33
- package/build/form/primitives/field/details.cjs.map +2 -2
- package/build/form/primitives/field/label.cjs +6 -33
- package/build/form/primitives/field/label.cjs.map +2 -2
- package/build/form/primitives/field/root.cjs +6 -17
- package/build/form/primitives/field/root.cjs.map +2 -2
- package/build/form/primitives/fieldset/description.cjs +6 -33
- package/build/form/primitives/fieldset/description.cjs.map +2 -2
- package/build/form/primitives/fieldset/details.cjs +6 -33
- package/build/form/primitives/fieldset/details.cjs.map +2 -2
- package/build/form/primitives/fieldset/legend.cjs +6 -33
- package/build/form/primitives/fieldset/legend.cjs.map +2 -2
- package/build/form/primitives/fieldset/root.cjs +6 -16
- package/build/form/primitives/fieldset/root.cjs.map +2 -2
- package/build/form/primitives/index.cjs +8 -2
- package/build/form/primitives/index.cjs.map +2 -2
- package/build/form/primitives/input/index.cjs +31 -0
- package/build/form/primitives/input/index.cjs.map +7 -0
- package/build/form/primitives/input/input.cjs +82 -0
- package/build/form/primitives/input/input.cjs.map +7 -0
- package/build/form/primitives/input/types.cjs +19 -0
- package/build/form/primitives/input/types.cjs.map +7 -0
- package/build/form/primitives/input-layout/input-layout.cjs +12 -111
- package/build/form/primitives/input-layout/input-layout.cjs.map +3 -3
- package/build/form/primitives/input-layout/slot.cjs +6 -94
- package/build/form/primitives/input-layout/slot.cjs.map +2 -2
- package/build/form/primitives/select/index.cjs +40 -0
- package/build/form/primitives/select/index.cjs.map +7 -0
- package/build/form/primitives/select/item.cjs +98 -0
- package/build/form/primitives/select/item.cjs.map +7 -0
- package/build/form/primitives/select/popup.cjs +109 -0
- package/build/form/primitives/select/popup.cjs.map +7 -0
- package/build/form/primitives/select/root.cjs +35 -0
- package/build/form/primitives/select/root.cjs.map +7 -0
- package/build/form/primitives/select/trigger.cjs +116 -0
- package/build/form/primitives/select/trigger.cjs.map +7 -0
- package/build/form/primitives/select/types.cjs +19 -0
- package/build/form/primitives/select/types.cjs.map +7 -0
- package/build/index.cjs +19 -0
- package/build/index.cjs.map +2 -2
- package/build/lock-unlock.cjs +37 -0
- package/build/lock-unlock.cjs.map +7 -0
- package/build/stack/stack.cjs +6 -11
- package/build/stack/stack.cjs.map +2 -2
- package/build/tooltip/index.cjs +40 -0
- package/build/tooltip/index.cjs.map +7 -0
- package/build/tooltip/popup.cjs +100 -0
- package/build/tooltip/popup.cjs.map +7 -0
- package/build/tooltip/provider.cjs +35 -0
- package/build/tooltip/provider.cjs.map +7 -0
- package/build/tooltip/root.cjs +35 -0
- package/build/tooltip/root.cjs.map +7 -0
- package/build/tooltip/trigger.cjs +38 -0
- package/build/tooltip/trigger.cjs.map +7 -0
- package/build/tooltip/types.cjs +19 -0
- package/build/tooltip/types.cjs.map +7 -0
- package/build/utils/types.cjs.map +1 -1
- package/build/visually-hidden/visually-hidden.cjs +6 -19
- package/build/visually-hidden/visually-hidden.cjs.map +2 -2
- package/build-module/box/box.mjs +2 -2
- package/build-module/box/box.mjs.map +2 -2
- package/build-module/button/button.mjs +18 -303
- package/build-module/button/button.mjs.map +3 -3
- package/build-module/form/primitives/constants.mjs +10 -0
- package/build-module/form/primitives/constants.mjs.map +7 -0
- package/build-module/form/primitives/field/description.mjs +6 -33
- package/build-module/form/primitives/field/description.mjs.map +2 -2
- package/build-module/form/primitives/field/details.mjs +6 -33
- package/build-module/form/primitives/field/details.mjs.map +2 -2
- package/build-module/form/primitives/field/label.mjs +6 -33
- package/build-module/form/primitives/field/label.mjs.map +2 -2
- package/build-module/form/primitives/field/root.mjs +6 -17
- package/build-module/form/primitives/field/root.mjs.map +2 -2
- package/build-module/form/primitives/fieldset/description.mjs +6 -33
- package/build-module/form/primitives/fieldset/description.mjs.map +2 -2
- package/build-module/form/primitives/fieldset/details.mjs +6 -33
- package/build-module/form/primitives/fieldset/details.mjs.map +2 -2
- package/build-module/form/primitives/fieldset/legend.mjs +6 -33
- package/build-module/form/primitives/fieldset/legend.mjs.map +2 -2
- package/build-module/form/primitives/fieldset/root.mjs +6 -16
- package/build-module/form/primitives/fieldset/root.mjs.map +2 -2
- package/build-module/form/primitives/index.mjs +5 -1
- package/build-module/form/primitives/index.mjs.map +2 -2
- package/build-module/form/primitives/input/index.mjs +6 -0
- package/build-module/form/primitives/input/index.mjs.map +7 -0
- package/build-module/form/primitives/input/input.mjs +47 -0
- package/build-module/form/primitives/input/input.mjs.map +7 -0
- package/build-module/form/primitives/input/types.mjs +1 -0
- package/build-module/form/primitives/input/types.mjs.map +7 -0
- package/build-module/form/primitives/input-layout/input-layout.mjs +12 -111
- package/build-module/form/primitives/input-layout/input-layout.mjs.map +3 -3
- package/build-module/form/primitives/input-layout/slot.mjs +6 -94
- package/build-module/form/primitives/input-layout/slot.mjs.map +2 -2
- package/build-module/form/primitives/select/index.mjs +12 -0
- package/build-module/form/primitives/select/index.mjs.map +7 -0
- package/build-module/form/primitives/select/item.mjs +63 -0
- package/build-module/form/primitives/select/item.mjs.map +7 -0
- package/build-module/form/primitives/select/popup.mjs +76 -0
- package/build-module/form/primitives/select/popup.mjs.map +7 -0
- package/build-module/form/primitives/select/root.mjs +10 -0
- package/build-module/form/primitives/select/root.mjs.map +7 -0
- package/build-module/form/primitives/select/trigger.mjs +81 -0
- package/build-module/form/primitives/select/trigger.mjs.map +7 -0
- package/build-module/form/primitives/select/types.mjs +1 -0
- package/build-module/form/primitives/select/types.mjs.map +7 -0
- package/build-module/index.mjs +4 -0
- package/build-module/index.mjs.map +2 -2
- package/build-module/lock-unlock.mjs +11 -0
- package/build-module/lock-unlock.mjs.map +7 -0
- package/build-module/stack/stack.mjs +6 -11
- package/build-module/stack/stack.mjs.map +2 -2
- package/build-module/tooltip/index.mjs +12 -0
- package/build-module/tooltip/index.mjs.map +7 -0
- package/build-module/tooltip/popup.mjs +67 -0
- package/build-module/tooltip/popup.mjs.map +7 -0
- package/build-module/tooltip/provider.mjs +10 -0
- package/build-module/tooltip/provider.mjs.map +7 -0
- package/build-module/tooltip/root.mjs +10 -0
- package/build-module/tooltip/root.mjs.map +7 -0
- package/build-module/tooltip/trigger.mjs +13 -0
- package/build-module/tooltip/trigger.mjs.map +7 -0
- package/build-module/tooltip/types.mjs +1 -0
- package/build-module/tooltip/types.mjs.map +7 -0
- package/build-module/visually-hidden/visually-hidden.mjs +6 -19
- package/build-module/visually-hidden/visually-hidden.mjs.map +2 -2
- package/build-types/badge/stories/choosing-intent.story.d.ts +17 -0
- package/build-types/badge/stories/choosing-intent.story.d.ts.map +1 -0
- package/build-types/badge/stories/index.story.d.ts +1 -1
- package/build-types/badge/stories/index.story.d.ts.map +1 -1
- package/build-types/box/stories/index.story.d.ts +1 -1
- package/build-types/box/stories/index.story.d.ts.map +1 -1
- package/build-types/button/stories/index.story.d.ts +1 -1
- package/build-types/button/stories/index.story.d.ts.map +1 -1
- package/build-types/form/primitives/constants.d.ts +9 -0
- package/build-types/form/primitives/constants.d.ts.map +1 -0
- package/build-types/form/primitives/field/stories/index.story.d.ts +1 -1
- package/build-types/form/primitives/field/stories/index.story.d.ts.map +1 -1
- package/build-types/form/primitives/fieldset/stories/index.story.d.ts +1 -1
- package/build-types/form/primitives/fieldset/stories/index.story.d.ts.map +1 -1
- package/build-types/form/primitives/index.d.ts +2 -0
- package/build-types/form/primitives/index.d.ts.map +1 -1
- package/build-types/form/primitives/input/index.d.ts +2 -0
- package/build-types/form/primitives/input/index.d.ts.map +1 -0
- package/build-types/form/primitives/input/input.d.ts +10 -0
- package/build-types/form/primitives/input/input.d.ts.map +1 -0
- package/build-types/form/primitives/input/stories/index.story.d.ts +13 -0
- package/build-types/form/primitives/input/stories/index.story.d.ts.map +1 -0
- package/build-types/form/primitives/input/test/index.test.d.ts +2 -0
- package/build-types/form/primitives/input/test/index.test.d.ts.map +1 -0
- package/build-types/form/primitives/input/types.d.ts +27 -0
- package/build-types/form/primitives/input/types.d.ts.map +1 -0
- package/build-types/form/primitives/input-layout/stories/index.story.d.ts +1 -1
- package/build-types/form/primitives/input-layout/stories/index.story.d.ts.map +1 -1
- package/build-types/form/primitives/select/index.d.ts +5 -0
- package/build-types/form/primitives/select/index.d.ts.map +1 -0
- package/build-types/form/primitives/select/item.d.ts +7 -0
- package/build-types/form/primitives/select/item.d.ts.map +1 -0
- package/build-types/form/primitives/select/popup.d.ts +2 -0
- package/build-types/form/primitives/select/popup.d.ts.map +1 -0
- package/build-types/form/primitives/select/root.d.ts +3 -0
- package/build-types/form/primitives/select/root.d.ts.map +1 -0
- package/build-types/form/primitives/select/stories/index.story.d.ts +50 -0
- package/build-types/form/primitives/select/stories/index.story.d.ts.map +1 -0
- package/build-types/form/primitives/select/test/index.test.d.ts +2 -0
- package/build-types/form/primitives/select/test/index.test.d.ts.map +1 -0
- package/build-types/form/primitives/select/trigger.d.ts +7 -0
- package/build-types/form/primitives/select/trigger.d.ts.map +1 -0
- package/build-types/form/primitives/select/types.d.ts +42 -0
- package/build-types/form/primitives/select/types.d.ts.map +1 -0
- package/build-types/icon/stories/index.story.d.ts +1 -1
- package/build-types/icon/stories/index.story.d.ts.map +1 -1
- package/build-types/index.d.ts +1 -0
- package/build-types/index.d.ts.map +1 -1
- package/build-types/lock-unlock.d.ts +2 -0
- package/build-types/lock-unlock.d.ts.map +1 -0
- package/build-types/stack/stories/index.story.d.ts +1 -1
- package/build-types/stack/stories/index.story.d.ts.map +1 -1
- package/build-types/tooltip/index.d.ts +6 -0
- package/build-types/tooltip/index.d.ts.map +1 -0
- package/build-types/tooltip/popup.d.ts +4 -0
- package/build-types/tooltip/popup.d.ts.map +1 -0
- package/build-types/tooltip/provider.d.ts +4 -0
- package/build-types/tooltip/provider.d.ts.map +1 -0
- package/build-types/tooltip/root.d.ts +4 -0
- package/build-types/tooltip/root.d.ts.map +1 -0
- package/build-types/tooltip/stories/index.story.d.ts +23 -0
- package/build-types/tooltip/stories/index.story.d.ts.map +1 -0
- package/build-types/tooltip/test/index.test.d.ts +2 -0
- package/build-types/tooltip/test/index.test.d.ts.map +1 -0
- package/build-types/tooltip/trigger.d.ts +4 -0
- package/build-types/tooltip/trigger.d.ts.map +1 -0
- package/build-types/tooltip/types.d.ts +18 -0
- package/build-types/tooltip/types.d.ts.map +1 -0
- package/build-types/utils/types.d.ts +0 -3
- package/build-types/utils/types.d.ts.map +1 -1
- package/build-types/visually-hidden/stories/index.story.d.ts +1 -1
- package/build-types/visually-hidden/stories/index.story.d.ts.map +1 -1
- package/package.json +12 -10
- package/src/badge/stories/choosing-intent.mdx +29 -32
- package/src/badge/stories/choosing-intent.story.tsx +129 -0
- package/src/badge/stories/index.story.tsx +1 -1
- package/src/box/box.tsx +2 -2
- package/src/box/stories/index.story.tsx +1 -1
- package/src/box/test/box.test.tsx +0 -11
- package/src/button/stories/index.story.tsx +1 -6
- package/src/button/style.module.css +2 -2
- package/src/button/test/button.test.tsx +1 -16
- package/src/form/primitives/constants.ts +10 -0
- package/src/form/primitives/field/stories/index.story.tsx +1 -1
- package/src/form/primitives/fieldset/stories/index.story.tsx +1 -1
- package/src/form/primitives/index.ts +2 -0
- package/src/form/primitives/input/index.ts +1 -0
- package/src/form/primitives/input/input.tsx +28 -0
- package/src/form/primitives/input/stories/index.story.tsx +40 -0
- package/src/form/primitives/input/style.module.css +34 -0
- package/src/form/primitives/input/test/index.test.tsx +13 -0
- package/src/form/primitives/input/types.ts +31 -0
- package/src/form/primitives/input-layout/stories/index.story.tsx +1 -1
- package/src/form/primitives/input-layout/style.module.css +5 -4
- package/src/form/primitives/select/index.ts +4 -0
- package/src/form/primitives/select/item.tsx +39 -0
- package/src/form/primitives/select/popup.tsx +55 -0
- package/src/form/primitives/select/root.tsx +6 -0
- package/src/form/primitives/select/stories/index.story.tsx +276 -0
- package/src/form/primitives/select/style.module.css +7 -0
- package/src/form/primitives/select/test/index.test.tsx +35 -0
- package/src/form/primitives/select/trigger.tsx +58 -0
- package/src/form/primitives/select/types.ts +52 -0
- package/src/icon/stories/index.story.tsx +1 -1
- package/src/index.ts +1 -0
- package/src/lock-unlock.ts +7 -0
- package/src/stack/stories/index.story.tsx +1 -1
- package/src/stories/introduction.mdx +1 -1
- package/src/tooltip/index.ts +6 -0
- package/src/tooltip/popup.tsx +64 -0
- package/src/tooltip/provider.tsx +8 -0
- package/src/tooltip/root.tsx +8 -0
- package/src/tooltip/stories/index.story.tsx +97 -0
- package/src/tooltip/style.module.css +20 -0
- package/src/tooltip/test/index.test.tsx +87 -0
- package/src/tooltip/trigger.tsx +15 -0
- package/src/tooltip/types.ts +26 -0
- package/src/utils/css/dropdown-motion.module.css +47 -0
- package/src/utils/css/focus.module.css +1 -1
- package/src/utils/css/item-popup.module.css +127 -0
- package/src/utils/css/select-trigger.module.css +58 -0
- package/src/utils/types.ts +0 -3
- package/src/visually-hidden/stories/index.story.tsx +1 -1
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// packages/ui/src/form/primitives/input/input.tsx
|
|
31
|
+
var input_exports = {};
|
|
32
|
+
__export(input_exports, {
|
|
33
|
+
Input: () => Input
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(input_exports);
|
|
36
|
+
var import_input = require("@base-ui/react/input");
|
|
37
|
+
var import_clsx = __toESM(require("clsx"));
|
|
38
|
+
var import_element = require("@wordpress/element");
|
|
39
|
+
|
|
40
|
+
// packages/ui/src/utils/css/focus.module.css
|
|
41
|
+
if (typeof document !== "undefined" && !document.head.querySelector("style[data-wp-hash='28ad59e2e3']")) {
|
|
42
|
+
const style = document.createElement("style");
|
|
43
|
+
style.setAttribute("data-wp-hash", "28ad59e2e3");
|
|
44
|
+
style.appendChild(document.createTextNode("@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-utilities{._08e8a2e44959f892__outset-ring--focus,._970d04df7376df67__outset-ring--focus-within-except-active,.c5cb3ee4bddaa8e4__outset-ring--focus-within-visible,.cd83dfc2126a0846__outset-ring--focus-within,.d0541bc9dd9dc7b6__outset-ring--focus-visible,.e25b2bdd7aa21721__outset-ring--focus-except-active{@media not (prefers-reduced-motion){transition:outline .1s ease-out}outline-color:#0000;outline-offset:1px;outline-style:solid;outline-width:0}._08e8a2e44959f892__outset-ring--focus:focus,._970d04df7376df67__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.c5cb3ee4bddaa8e4__outset-ring--focus-within-visible:focus-within:has(:focus-visible),.cd83dfc2126a0846__outset-ring--focus-within:focus-within,.d0541bc9dd9dc7b6__outset-ring--focus-visible:focus-visible,.e25b2bdd7aa21721__outset-ring--focus-except-active:focus:not(:active){outline-color:var(--wpds-color-stroke-focus-brand);outline-width:var(--wpds-border-width-focus)}}"));
|
|
45
|
+
document.head.appendChild(style);
|
|
46
|
+
}
|
|
47
|
+
var focus_default = { "outset-ring--focus": "_08e8a2e44959f892__outset-ring--focus", "outset-ring--focus-except-active": "e25b2bdd7aa21721__outset-ring--focus-except-active", "outset-ring--focus-visible": "d0541bc9dd9dc7b6__outset-ring--focus-visible", "outset-ring--focus-within": "cd83dfc2126a0846__outset-ring--focus-within", "outset-ring--focus-within-except-active": "_970d04df7376df67__outset-ring--focus-within-except-active", "outset-ring--focus-within-visible": "c5cb3ee4bddaa8e4__outset-ring--focus-within-visible" };
|
|
48
|
+
|
|
49
|
+
// packages/ui/src/form/primitives/input/style.module.css
|
|
50
|
+
if (typeof document !== "undefined" && !document.head.querySelector("style[data-wp-hash='03d76ef49c']")) {
|
|
51
|
+
const style = document.createElement("style");
|
|
52
|
+
style.setAttribute("data-wp-hash", "03d76ef49c");
|
|
53
|
+
style.appendChild(document.createTextNode("@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._2ae7be2fc1bb17a3__input{background:#0000;border:none;color:var(--wpds-color-fg-interactive-neutral);font-family:inherit;font-size:inherit;line-height:inherit;outline:none;padding-block:var(--wp-ui-input-padding-block,0);padding-inline:var(--wp-ui-input-layout-padding-inline,0);width:100%;&::placeholder{color:var(--wpds-color-fg-interactive-neutral-disabled)}&:disabled,&[aria-disabled=true]{color:var(--wpds-color-fg-interactive-neutral-disabled);@media (forced-colors:active){color:GrayText}}&[type=email],&[type=url]{direction:ltr}}}"));
|
|
54
|
+
document.head.appendChild(style);
|
|
55
|
+
}
|
|
56
|
+
var style_default = { "input": "_2ae7be2fc1bb17a3__input" };
|
|
57
|
+
|
|
58
|
+
// packages/ui/src/form/primitives/input/input.tsx
|
|
59
|
+
var import_input_layout = require("../input-layout/index.cjs");
|
|
60
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
61
|
+
var Input = (0, import_element.forwardRef)(function Input2({ className, size = "default", prefix, suffix, style, ...restProps }, ref) {
|
|
62
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
63
|
+
import_input_layout.InputLayout,
|
|
64
|
+
{
|
|
65
|
+
className: (0, import_clsx.default)(
|
|
66
|
+
focus_default["outset-ring--focus-within"],
|
|
67
|
+
className
|
|
68
|
+
),
|
|
69
|
+
style,
|
|
70
|
+
size,
|
|
71
|
+
visuallyDisabled: restProps.disabled,
|
|
72
|
+
prefix,
|
|
73
|
+
suffix,
|
|
74
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_input.Input, { ref, className: style_default.input, ...restProps })
|
|
75
|
+
}
|
|
76
|
+
);
|
|
77
|
+
});
|
|
78
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
79
|
+
0 && (module.exports = {
|
|
80
|
+
Input
|
|
81
|
+
});
|
|
82
|
+
//# sourceMappingURL=input.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/form/primitives/input/input.tsx", "../../../../src/utils/css/focus.module.css", "../../../../src/form/primitives/input/style.module.css"],
|
|
4
|
+
"sourcesContent": ["import { Input as _Input } from '@base-ui/react/input';\nimport clsx from 'clsx';\nimport { forwardRef } from '@wordpress/element';\nimport focusStyles from '../../../utils/css/focus.module.css';\nimport styles from './style.module.css';\nimport type { InputProps } from './types';\nimport { InputLayout } from '../input-layout';\n\nexport const Input = forwardRef< HTMLInputElement, InputProps >( function Input(\n\t{ className, size = 'default', prefix, suffix, style, ...restProps },\n\tref\n) {\n\treturn (\n\t\t<InputLayout\n\t\t\tclassName={ clsx(\n\t\t\t\tfocusStyles[ 'outset-ring--focus-within' ],\n\t\t\t\tclassName\n\t\t\t) }\n\t\t\tstyle={ style }\n\t\t\tsize={ size }\n\t\t\tvisuallyDisabled={ restProps.disabled }\n\t\t\tprefix={ prefix }\n\t\t\tsuffix={ suffix }\n\t\t>\n\t\t\t<_Input ref={ ref } className={ styles.input } { ...restProps } />\n\t\t</InputLayout>\n\t);\n} );\n", "if (typeof document !== 'undefined' && !document.head.querySelector(\"style[data-wp-hash='28ad59e2e3']\")) {\n\tconst style = document.createElement(\"style\");\n\tstyle.setAttribute(\"data-wp-hash\", \"28ad59e2e3\");\n\tstyle.appendChild(document.createTextNode(\"@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-utilities{._08e8a2e44959f892__outset-ring--focus,._970d04df7376df67__outset-ring--focus-within-except-active,.c5cb3ee4bddaa8e4__outset-ring--focus-within-visible,.cd83dfc2126a0846__outset-ring--focus-within,.d0541bc9dd9dc7b6__outset-ring--focus-visible,.e25b2bdd7aa21721__outset-ring--focus-except-active{@media not (prefers-reduced-motion){transition:outline .1s ease-out}outline-color:#0000;outline-offset:1px;outline-style:solid;outline-width:0}._08e8a2e44959f892__outset-ring--focus:focus,._970d04df7376df67__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.c5cb3ee4bddaa8e4__outset-ring--focus-within-visible:focus-within:has(:focus-visible),.cd83dfc2126a0846__outset-ring--focus-within:focus-within,.d0541bc9dd9dc7b6__outset-ring--focus-visible:focus-visible,.e25b2bdd7aa21721__outset-ring--focus-except-active:focus:not(:active){outline-color:var(--wpds-color-stroke-focus-brand);outline-width:var(--wpds-border-width-focus)}}\"));\n\tdocument.head.appendChild(style);\n}\nexport default {\"outset-ring--focus\":\"_08e8a2e44959f892__outset-ring--focus\",\"outset-ring--focus-except-active\":\"e25b2bdd7aa21721__outset-ring--focus-except-active\",\"outset-ring--focus-visible\":\"d0541bc9dd9dc7b6__outset-ring--focus-visible\",\"outset-ring--focus-within\":\"cd83dfc2126a0846__outset-ring--focus-within\",\"outset-ring--focus-within-except-active\":\"_970d04df7376df67__outset-ring--focus-within-except-active\",\"outset-ring--focus-within-visible\":\"c5cb3ee4bddaa8e4__outset-ring--focus-within-visible\"};\n", "if (typeof document !== 'undefined' && !document.head.querySelector(\"style[data-wp-hash='03d76ef49c']\")) {\n\tconst style = document.createElement(\"style\");\n\tstyle.setAttribute(\"data-wp-hash\", \"03d76ef49c\");\n\tstyle.appendChild(document.createTextNode(\"@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._2ae7be2fc1bb17a3__input{background:#0000;border:none;color:var(--wpds-color-fg-interactive-neutral);font-family:inherit;font-size:inherit;line-height:inherit;outline:none;padding-block:var(--wp-ui-input-padding-block,0);padding-inline:var(--wp-ui-input-layout-padding-inline,0);width:100%;&::placeholder{color:var(--wpds-color-fg-interactive-neutral-disabled)}&:disabled,&[aria-disabled=true]{color:var(--wpds-color-fg-interactive-neutral-disabled);@media (forced-colors:active){color:GrayText}}&[type=email],&[type=url]{direction:ltr}}}\"));\n\tdocument.head.appendChild(style);\n}\nexport default {\"input\":\"_2ae7be2fc1bb17a3__input\"};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAgC;AAChC,kBAAiB;AACjB,qBAA2B;;;ACF3B,IAAI,OAAO,aAAa,eAAe,CAAC,SAAS,KAAK,cAAc,kCAAkC,GAAG;AACxG,QAAM,QAAQ,SAAS,cAAc,OAAO;AAC5C,QAAM,aAAa,gBAAgB,YAAY;AAC/C,QAAM,YAAY,SAAS,eAAe,0hCAA0hC,CAAC;AACrkC,WAAS,KAAK,YAAY,KAAK;AAChC;AACA,IAAO,gBAAQ,EAAC,sBAAqB,yCAAwC,oCAAmC,sDAAqD,8BAA6B,gDAA+C,6BAA4B,+CAA8C,2CAA0C,8DAA6D,qCAAoC,sDAAqD;;;ACN3f,IAAI,OAAO,aAAa,eAAe,CAAC,SAAS,KAAK,cAAc,kCAAkC,GAAG;AACxG,QAAM,QAAQ,SAAS,cAAc,OAAO;AAC5C,QAAM,aAAa,gBAAgB,YAAY;AAC/C,QAAM,YAAY,SAAS,eAAe,moBAAmoB,CAAC;AAC9qB,WAAS,KAAK,YAAY,KAAK;AAChC;AACA,IAAO,gBAAQ,EAAC,SAAQ,2BAA0B;;;AFAlD,0BAA4B;AAkBzB;AAhBI,IAAM,YAAQ,2BAA4C,SAASA,OACzE,EAAE,WAAW,OAAO,WAAW,QAAQ,QAAQ,OAAO,GAAG,UAAU,GACnE,KACC;AACD,SACC;AAAA,IAAC;AAAA;AAAA,MACA,eAAY,YAAAC;AAAA,QACX,cAAa,2BAA4B;AAAA,QACzC;AAAA,MACD;AAAA,MACA;AAAA,MACA;AAAA,MACA,kBAAmB,UAAU;AAAA,MAC7B;AAAA,MACA;AAAA,MAEA,sDAAC,aAAAC,OAAA,EAAO,KAAY,WAAY,cAAO,OAAU,GAAG,WAAY;AAAA;AAAA,EACjE;AAEF,CAAE;",
|
|
6
|
+
"names": ["Input", "clsx", "_Input"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// packages/ui/src/form/primitives/input/types.ts
|
|
17
|
+
var types_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(types_exports);
|
|
19
|
+
//# sourceMappingURL=types.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/form/primitives/input/types.ts"],
|
|
4
|
+
"sourcesContent": ["import type { Input } from '@base-ui/react/input';\nimport type { InputLayoutProps } from '../input-layout/types';\nimport type { ComponentProps } from '../../../utils/types';\n\nexport type InputProps = Omit<\n\tComponentProps< typeof Input >,\n\t'value' | 'defaultValue' | 'type' | 'disabled' | 'prefix' | 'size'\n> &\n\tPick< InputLayoutProps, 'prefix' | 'suffix' > & {\n\t\t/**\n\t\t * Whether the field is disabled.\n\t\t */\n\t\tdisabled?: boolean;\n\t} & {\n\t\t/**\n\t\t * The type of the input element.\n\t\t */\n\t\ttype?: Input.Props[ 'type' ];\n\t\t/**\n\t\t * The default value to use in uncontrolled mode.\n\t\t */\n\t\tdefaultValue?: Input.Props[ 'defaultValue' ];\n\t\t/**\n\t\t * The value to use in controlled mode.\n\t\t */\n\t\tvalue?: Input.Props[ 'value' ];\n\t\t/**\n\t\t * The size of the field.\n\t\t */\n\t\tsize?: Exclude< InputLayoutProps[ 'size' ], 'small' >;\n\t};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -37,121 +37,22 @@ var import_clsx = __toESM(require("clsx"));
|
|
|
37
37
|
var import_element = require("@wordpress/element");
|
|
38
38
|
|
|
39
39
|
// packages/ui/src/utils/css/resets.module.css
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
*,
|
|
47
|
-
*::before,
|
|
48
|
-
*::after {
|
|
49
|
-
box-sizing: inherit;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
40
|
+
if (typeof document !== "undefined" && !document.head.querySelector("style[data-wp-hash='671ebfc62d']")) {
|
|
41
|
+
const style = document.createElement("style");
|
|
42
|
+
style.setAttribute("data-wp-hash", "671ebfc62d");
|
|
43
|
+
style.appendChild(document.createTextNode("@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}"));
|
|
44
|
+
document.head.appendChild(style);
|
|
52
45
|
}
|
|
53
|
-
|
|
54
|
-
document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(css));
|
|
55
|
-
var resets_default = {
|
|
56
|
-
"box-sizing": "resets-module__box-sizing__M2zT5"
|
|
57
|
-
};
|
|
46
|
+
var resets_default = { "box-sizing": "_336cd3e4e743482f__box-sizing" };
|
|
58
47
|
|
|
59
48
|
// packages/ui/src/form/primitives/input-layout/style.module.css
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
--wp-ui-input-layout-padding-inline: calc(var(--wpds-dimension-base) * 3);
|
|
66
|
-
|
|
67
|
-
display: flex;
|
|
68
|
-
height: 40px;
|
|
69
|
-
background-color: var(--wpds-color-bg-interactive-neutral-weak);
|
|
70
|
-
border-width: var(--wpds-border-width-surface-xs);
|
|
71
|
-
border-style: solid;
|
|
72
|
-
border-color: var(--wpds-color-stroke-interactive-neutral);
|
|
73
|
-
border-radius: var(--wpds-border-radius-surface-sm);
|
|
74
|
-
font-family: var(--wpds-font-family-body);
|
|
75
|
-
font-size: max(var(--wpds-font-size-md), 16px); /* avoid mobile zoom */
|
|
76
|
-
line-height: 1;
|
|
77
|
-
color: var(--wpds-color-fg-interactive-neutral);
|
|
78
|
-
|
|
79
|
-
@media (min-width: 600px) {
|
|
80
|
-
font-size: var(--wpds-font-size-md);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
&.style-module__is-size-compact__DIB6h {
|
|
84
|
-
/* TODO: Use padding tokens */
|
|
85
|
-
--wp-ui-input-layout-padding-inline: calc(var(--wpds-dimension-base) * 2);
|
|
86
|
-
height: 32px;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
&.style-module__is-size-small__7WfNo {
|
|
90
|
-
/* TODO: Use padding tokens */
|
|
91
|
-
--wp-ui-input-layout-padding-inline: calc(var(--wpds-dimension-base) * 2);
|
|
92
|
-
height: 24px;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
&.style-module__is-disabled__b7cQR {
|
|
96
|
-
background-color: var(--wpds-color-bg-interactive-neutral-weak-disabled);
|
|
97
|
-
border-color: var(--wpds-color-stroke-interactive-neutral-disabled);
|
|
98
|
-
color: var(--wpds-color-fg-interactive-neutral-disabled);
|
|
99
|
-
|
|
100
|
-
@media (forced-colors: active) {
|
|
101
|
-
border-color: GrayText;
|
|
102
|
-
color: GrayText;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
&.style-module__is-borderless__gJcnB {
|
|
107
|
-
border-color: transparent;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
/* Don't show focus ring when the focus is in the prefix or suffix slots */
|
|
111
|
-
&:has(.style-module__input-layout-slot__DXr61:focus-within) {
|
|
112
|
-
outline: none;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
&:hover:not(.style-module__is-disabled__b7cQR, .style-module__is-borderless__gJcnB) {
|
|
116
|
-
border-color: var(--wpds-color-stroke-interactive-neutral-active);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.style-module__input-layout-slot__DXr61 {
|
|
121
|
-
display: flex;
|
|
122
|
-
align-items: center;
|
|
123
|
-
|
|
124
|
-
&.style-module__is-padding-minimal__DJUmg {
|
|
125
|
-
--wp-ui-input-layout-prefix-padding-start:
|
|
126
|
-
calc(var(--wp-ui-input-layout-padding-inline) -
|
|
127
|
-
var(--wpds-dimension-base));
|
|
128
|
-
--wp-ui-input-layout-suffix-padding-end:
|
|
129
|
-
calc(var(--wp-ui-input-layout-padding-inline) -
|
|
130
|
-
var(--wpds-dimension-base));
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
&.style-module__is-prefix__ezQzb {
|
|
134
|
-
padding-inline-start: var(--wp-ui-input-layout-prefix-padding-start, var(--wp-ui-input-layout-padding-inline));
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
&.style-module__is-suffix__R6el3 {
|
|
138
|
-
padding-inline-end: var(--wp-ui-input-layout-suffix-padding-end, var(--wp-ui-input-layout-padding-inline));
|
|
139
|
-
}
|
|
140
|
-
}
|
|
49
|
+
if (typeof document !== "undefined" && !document.head.querySelector("style[data-wp-hash='c75ffc6db5']")) {
|
|
50
|
+
const style = document.createElement("style");
|
|
51
|
+
style.setAttribute("data-wp-hash", "c75ffc6db5");
|
|
52
|
+
style.appendChild(document.createTextNode("@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{.cb2baafdc08746bb__input-layout{--wp-ui-input-layout-padding-inline:calc(var(--wpds-dimension-base)*3);background-color:var(--wpds-color-bg-interactive-neutral-weak);border-color:var(--wpds-color-stroke-interactive-neutral);border-radius:var(--wpds-border-radius-sm);border-style:solid;border-width:var(--wpds-border-width-xs);color:var(--wpds-color-fg-interactive-neutral);display:flex;font-family:var(--wpds-font-family-body);font-size:max(var(--wpds-font-size-md),16px);height:40px;line-height:1;@media (min-width:600px){font-size:var(--wpds-font-size-md)}&._0c807a84cbb94e0c__is-size-compact{--wp-ui-input-layout-padding-inline:calc(var(--wpds-dimension-base)*2);height:32px}&.ed67cda122dc1e7b__is-size-small{--wp-ui-input-layout-padding-inline:calc(var(--wpds-dimension-base)*2);height:24px}&._6fb7104732387680__is-disabled,&:has([data-can-disable-input-layout][data-disabled]){background-color:var(--wpds-color-bg-interactive-neutral-weak-disabled);border-color:var(--wpds-color-stroke-interactive-neutral-disabled);color:var(--wpds-color-fg-interactive-neutral-disabled);@media (forced-colors:active){border-bottom-color:GrayText;border-left-color:GrayText;border-right-color:GrayText;border-top-color:GrayText;color:GrayText}}&._8097270636ca6100__is-borderless{border-color:#0000}&:has(._0d7afad74a057888__input-layout-slot:focus-within){outline:none}&:hover:not(._6fb7104732387680__is-disabled,:has([data-can-disable-input-layout][data-disabled]),._8097270636ca6100__is-borderless){border-color:var(--wpds-color-stroke-interactive-neutral-active)}}._0d7afad74a057888__input-layout-slot{align-items:center;display:flex;&._0c952682762ca288__is-padding-minimal{--wp-ui-input-layout-prefix-padding-start:calc(var(--wp-ui-input-layout-padding-inline) - var(--wpds-dimension-base));--wp-ui-input-layout-suffix-padding-end:calc(var(--wp-ui-input-layout-padding-inline) - var(--wpds-dimension-base))}&._7b34336f9cf989b9__is-prefix{padding-inline-start:var(--wp-ui-input-layout-prefix-padding-start,var(--wp-ui-input-layout-padding-inline))}&._47a7a5deefae3545__is-suffix{padding-inline-end:var(--wp-ui-input-layout-suffix-padding-end,var(--wp-ui-input-layout-padding-inline))}}}"));
|
|
53
|
+
document.head.appendChild(style);
|
|
141
54
|
}
|
|
142
|
-
|
|
143
|
-
document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(css2));
|
|
144
|
-
var style_default = {
|
|
145
|
-
"input-layout": "style-module__input-layout__yyuq-",
|
|
146
|
-
"is-size-compact": "style-module__is-size-compact__DIB6h",
|
|
147
|
-
"is-size-small": "style-module__is-size-small__7WfNo",
|
|
148
|
-
"is-disabled": "style-module__is-disabled__b7cQR",
|
|
149
|
-
"is-borderless": "style-module__is-borderless__gJcnB",
|
|
150
|
-
"input-layout-slot": "style-module__input-layout-slot__DXr61",
|
|
151
|
-
"is-padding-minimal": "style-module__is-padding-minimal__DJUmg",
|
|
152
|
-
"is-prefix": "style-module__is-prefix__ezQzb",
|
|
153
|
-
"is-suffix": "style-module__is-suffix__R6el3"
|
|
154
|
-
};
|
|
55
|
+
var style_default = { "input-layout": "cb2baafdc08746bb__input-layout", "is-size-compact": "_0c807a84cbb94e0c__is-size-compact", "is-size-small": "ed67cda122dc1e7b__is-size-small", "is-disabled": "_6fb7104732387680__is-disabled", "is-borderless": "_8097270636ca6100__is-borderless", "input-layout-slot": "_0d7afad74a057888__input-layout-slot", "is-padding-minimal": "_0c952682762ca288__is-padding-minimal", "is-prefix": "_7b34336f9cf989b9__is-prefix", "is-suffix": "_47a7a5deefae3545__is-suffix" };
|
|
155
56
|
|
|
156
57
|
// packages/ui/src/form/primitives/input-layout/input-layout.tsx
|
|
157
58
|
var import_context = require("./context.cjs");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/form/primitives/input-layout/input-layout.tsx", "../../../../src/utils/css/resets.module.css", "../../../../src/form/primitives/input-layout/style.module.css"],
|
|
4
|
-
"sourcesContent": ["import clsx from 'clsx';\nimport { forwardRef } from '@wordpress/element';\nimport resetStyles from '../../../utils/css/resets.module.css';\nimport styles from './style.module.css';\nimport type { InputLayoutProps } from './types';\nimport { SlotContextProvider } from './context';\n\n/**\n * A low-level component that handles the visual layout of an input-like field,\n * including disabled states and standard prefix/suffix slots.\n */\nexport const InputLayout = forwardRef< HTMLDivElement, InputLayoutProps >(\n\tfunction InputLayout(\n\t\t{\n\t\t\tclassName,\n\t\t\tchildren,\n\t\t\tvisuallyDisabled,\n\t\t\tsize = 'default',\n\t\t\tisBorderless,\n\t\t\tprefix,\n\t\t\tsuffix,\n\t\t\t...restProps\n\t\t},\n\t\tref\n\t) {\n\t\treturn (\n\t\t\t<div\n\t\t\t\tref={ ref }\n\t\t\t\tclassName={ clsx(\n\t\t\t\t\tresetStyles[ 'box-sizing' ],\n\t\t\t\t\tstyles[ 'input-layout' ],\n\t\t\t\t\tstyles[ `is-size-${ size }` ],\n\t\t\t\t\tvisuallyDisabled && styles[ 'is-disabled' ],\n\t\t\t\t\tisBorderless && styles[ 'is-borderless' ],\n\t\t\t\t\tclassName\n\t\t\t\t) }\n\t\t\t\t{ ...restProps }\n\t\t\t>\n\t\t\t\t<SlotContextProvider type=\"prefix\">\n\t\t\t\t\t{ prefix }\n\t\t\t\t</SlotContextProvider>\n\t\t\t\t{ children }\n\t\t\t\t<SlotContextProvider type=\"suffix\">\n\t\t\t\t\t{ suffix }\n\t\t\t\t</SlotContextProvider>\n\t\t\t</div>\n\t\t);\n\t}\n);\n", "
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAiB;AACjB,qBAA2B;;;ACD3B,
|
|
6
|
-
"names": ["
|
|
4
|
+
"sourcesContent": ["import clsx from 'clsx';\nimport { forwardRef } from '@wordpress/element';\nimport resetStyles from '../../../utils/css/resets.module.css';\nimport styles from './style.module.css';\nimport type { InputLayoutProps } from './types';\nimport { SlotContextProvider } from './context';\n\n/**\n * A low-level component that handles the visual layout of an input-like field,\n * including disabled states and standard prefix/suffix slots.\n */\nexport const InputLayout = forwardRef< HTMLDivElement, InputLayoutProps >(\n\tfunction InputLayout(\n\t\t{\n\t\t\tclassName,\n\t\t\tchildren,\n\t\t\tvisuallyDisabled,\n\t\t\tsize = 'default',\n\t\t\tisBorderless,\n\t\t\tprefix,\n\t\t\tsuffix,\n\t\t\t...restProps\n\t\t},\n\t\tref\n\t) {\n\t\treturn (\n\t\t\t<div\n\t\t\t\tref={ ref }\n\t\t\t\tclassName={ clsx(\n\t\t\t\t\tresetStyles[ 'box-sizing' ],\n\t\t\t\t\tstyles[ 'input-layout' ],\n\t\t\t\t\tstyles[ `is-size-${ size }` ],\n\t\t\t\t\tvisuallyDisabled && styles[ 'is-disabled' ],\n\t\t\t\t\tisBorderless && styles[ 'is-borderless' ],\n\t\t\t\t\tclassName\n\t\t\t\t) }\n\t\t\t\t{ ...restProps }\n\t\t\t>\n\t\t\t\t<SlotContextProvider type=\"prefix\">\n\t\t\t\t\t{ prefix }\n\t\t\t\t</SlotContextProvider>\n\t\t\t\t{ children }\n\t\t\t\t<SlotContextProvider type=\"suffix\">\n\t\t\t\t\t{ suffix }\n\t\t\t\t</SlotContextProvider>\n\t\t\t</div>\n\t\t);\n\t}\n);\n", "if (typeof document !== 'undefined' && !document.head.querySelector(\"style[data-wp-hash='671ebfc62d']\")) {\n\tconst style = document.createElement(\"style\");\n\tstyle.setAttribute(\"data-wp-hash\", \"671ebfc62d\");\n\tstyle.appendChild(document.createTextNode(\"@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}\"));\n\tdocument.head.appendChild(style);\n}\nexport default {\"box-sizing\":\"_336cd3e4e743482f__box-sizing\"};\n", "if (typeof document !== 'undefined' && !document.head.querySelector(\"style[data-wp-hash='c75ffc6db5']\")) {\n\tconst style = document.createElement(\"style\");\n\tstyle.setAttribute(\"data-wp-hash\", \"c75ffc6db5\");\n\tstyle.appendChild(document.createTextNode(\"@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{.cb2baafdc08746bb__input-layout{--wp-ui-input-layout-padding-inline:calc(var(--wpds-dimension-base)*3);background-color:var(--wpds-color-bg-interactive-neutral-weak);border-color:var(--wpds-color-stroke-interactive-neutral);border-radius:var(--wpds-border-radius-sm);border-style:solid;border-width:var(--wpds-border-width-xs);color:var(--wpds-color-fg-interactive-neutral);display:flex;font-family:var(--wpds-font-family-body);font-size:max(var(--wpds-font-size-md),16px);height:40px;line-height:1;@media (min-width:600px){font-size:var(--wpds-font-size-md)}&._0c807a84cbb94e0c__is-size-compact{--wp-ui-input-layout-padding-inline:calc(var(--wpds-dimension-base)*2);height:32px}&.ed67cda122dc1e7b__is-size-small{--wp-ui-input-layout-padding-inline:calc(var(--wpds-dimension-base)*2);height:24px}&._6fb7104732387680__is-disabled,&:has([data-can-disable-input-layout][data-disabled]){background-color:var(--wpds-color-bg-interactive-neutral-weak-disabled);border-color:var(--wpds-color-stroke-interactive-neutral-disabled);color:var(--wpds-color-fg-interactive-neutral-disabled);@media (forced-colors:active){border-bottom-color:GrayText;border-left-color:GrayText;border-right-color:GrayText;border-top-color:GrayText;color:GrayText}}&._8097270636ca6100__is-borderless{border-color:#0000}&:has(._0d7afad74a057888__input-layout-slot:focus-within){outline:none}&:hover:not(._6fb7104732387680__is-disabled,:has([data-can-disable-input-layout][data-disabled]),._8097270636ca6100__is-borderless){border-color:var(--wpds-color-stroke-interactive-neutral-active)}}._0d7afad74a057888__input-layout-slot{align-items:center;display:flex;&._0c952682762ca288__is-padding-minimal{--wp-ui-input-layout-prefix-padding-start:calc(var(--wp-ui-input-layout-padding-inline) - var(--wpds-dimension-base));--wp-ui-input-layout-suffix-padding-end:calc(var(--wp-ui-input-layout-padding-inline) - var(--wpds-dimension-base))}&._7b34336f9cf989b9__is-prefix{padding-inline-start:var(--wp-ui-input-layout-prefix-padding-start,var(--wp-ui-input-layout-padding-inline))}&._47a7a5deefae3545__is-suffix{padding-inline-end:var(--wp-ui-input-layout-suffix-padding-end,var(--wp-ui-input-layout-padding-inline))}}}\"));\n\tdocument.head.appendChild(style);\n}\nexport default {\"input-layout\":\"cb2baafdc08746bb__input-layout\",\"is-size-compact\":\"_0c807a84cbb94e0c__is-size-compact\",\"is-size-small\":\"ed67cda122dc1e7b__is-size-small\",\"is-disabled\":\"_6fb7104732387680__is-disabled\",\"is-borderless\":\"_8097270636ca6100__is-borderless\",\"input-layout-slot\":\"_0d7afad74a057888__input-layout-slot\",\"is-padding-minimal\":\"_0c952682762ca288__is-padding-minimal\",\"is-prefix\":\"_7b34336f9cf989b9__is-prefix\",\"is-suffix\":\"_47a7a5deefae3545__is-suffix\"};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAiB;AACjB,qBAA2B;;;ACD3B,IAAI,OAAO,aAAa,eAAe,CAAC,SAAS,KAAK,cAAc,kCAAkC,GAAG;AACxG,QAAM,QAAQ,SAAS,cAAc,OAAO;AAC5C,QAAM,aAAa,gBAAgB,YAAY;AAC/C,QAAM,YAAY,SAAS,eAAe,kMAAkM,CAAC;AAC7O,WAAS,KAAK,YAAY,KAAK;AAChC;AACA,IAAO,iBAAQ,EAAC,cAAa,gCAA+B;;;ACN5D,IAAI,OAAO,aAAa,eAAe,CAAC,SAAS,KAAK,cAAc,kCAAkC,GAAG;AACxG,QAAM,QAAQ,SAAS,cAAc,OAAO;AAC5C,QAAM,aAAa,gBAAgB,YAAY;AAC/C,QAAM,YAAY,SAAS,eAAe,2uEAA2uE,CAAC;AACtxE,WAAS,KAAK,YAAY,KAAK;AAChC;AACA,IAAO,gBAAQ,EAAC,gBAAe,kCAAiC,mBAAkB,sCAAqC,iBAAgB,mCAAkC,eAAc,kCAAiC,iBAAgB,oCAAmC,qBAAoB,wCAAuC,sBAAqB,yCAAwC,aAAY,gCAA+B,aAAY,+BAA8B;;;AFDxd,qBAAoC;AAqBjC;AAfI,IAAM,kBAAc;AAAA,EAC1B,SAASA,aACR;AAAA,IACC;AAAA,IACA;AAAA,IACA;AAAA,IACA,OAAO;AAAA,IACP;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EACJ,GACA,KACC;AACD,WACC;AAAA,MAAC;AAAA;AAAA,QACA;AAAA,QACA,eAAY,YAAAC;AAAA,UACX,eAAa,YAAa;AAAA,UAC1B,cAAQ,cAAe;AAAA,UACvB,cAAQ,WAAY,IAAK,EAAG;AAAA,UAC5B,oBAAoB,cAAQ,aAAc;AAAA,UAC1C,gBAAgB,cAAQ,eAAgB;AAAA,UACxC;AAAA,QACD;AAAA,QACE,GAAG;AAAA,QAEL;AAAA,sDAAC,sCAAoB,MAAK,UACvB,kBACH;AAAA,UACE;AAAA,UACF,4CAAC,sCAAoB,MAAK,UACvB,kBACH;AAAA;AAAA;AAAA,IACD;AAAA,EAEF;AACD;",
|
|
6
|
+
"names": ["InputLayout", "clsx"]
|
|
7
7
|
}
|
|
@@ -37,101 +37,13 @@ var import_clsx = __toESM(require("clsx"));
|
|
|
37
37
|
var import_element = require("@wordpress/element");
|
|
38
38
|
|
|
39
39
|
// packages/ui/src/form/primitives/input-layout/style.module.css
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
--wp-ui-input-layout-padding-inline: calc(var(--wpds-dimension-base) * 3);
|
|
46
|
-
|
|
47
|
-
display: flex;
|
|
48
|
-
height: 40px;
|
|
49
|
-
background-color: var(--wpds-color-bg-interactive-neutral-weak);
|
|
50
|
-
border-width: var(--wpds-border-width-surface-xs);
|
|
51
|
-
border-style: solid;
|
|
52
|
-
border-color: var(--wpds-color-stroke-interactive-neutral);
|
|
53
|
-
border-radius: var(--wpds-border-radius-surface-sm);
|
|
54
|
-
font-family: var(--wpds-font-family-body);
|
|
55
|
-
font-size: max(var(--wpds-font-size-md), 16px); /* avoid mobile zoom */
|
|
56
|
-
line-height: 1;
|
|
57
|
-
color: var(--wpds-color-fg-interactive-neutral);
|
|
58
|
-
|
|
59
|
-
@media (min-width: 600px) {
|
|
60
|
-
font-size: var(--wpds-font-size-md);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
&.style-module__is-size-compact__DIB6h {
|
|
64
|
-
/* TODO: Use padding tokens */
|
|
65
|
-
--wp-ui-input-layout-padding-inline: calc(var(--wpds-dimension-base) * 2);
|
|
66
|
-
height: 32px;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
&.style-module__is-size-small__7WfNo {
|
|
70
|
-
/* TODO: Use padding tokens */
|
|
71
|
-
--wp-ui-input-layout-padding-inline: calc(var(--wpds-dimension-base) * 2);
|
|
72
|
-
height: 24px;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
&.style-module__is-disabled__b7cQR {
|
|
76
|
-
background-color: var(--wpds-color-bg-interactive-neutral-weak-disabled);
|
|
77
|
-
border-color: var(--wpds-color-stroke-interactive-neutral-disabled);
|
|
78
|
-
color: var(--wpds-color-fg-interactive-neutral-disabled);
|
|
79
|
-
|
|
80
|
-
@media (forced-colors: active) {
|
|
81
|
-
border-color: GrayText;
|
|
82
|
-
color: GrayText;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
&.style-module__is-borderless__gJcnB {
|
|
87
|
-
border-color: transparent;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
/* Don't show focus ring when the focus is in the prefix or suffix slots */
|
|
91
|
-
&:has(.style-module__input-layout-slot__DXr61:focus-within) {
|
|
92
|
-
outline: none;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
&:hover:not(.style-module__is-disabled__b7cQR, .style-module__is-borderless__gJcnB) {
|
|
96
|
-
border-color: var(--wpds-color-stroke-interactive-neutral-active);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.style-module__input-layout-slot__DXr61 {
|
|
101
|
-
display: flex;
|
|
102
|
-
align-items: center;
|
|
103
|
-
|
|
104
|
-
&.style-module__is-padding-minimal__DJUmg {
|
|
105
|
-
--wp-ui-input-layout-prefix-padding-start:
|
|
106
|
-
calc(var(--wp-ui-input-layout-padding-inline) -
|
|
107
|
-
var(--wpds-dimension-base));
|
|
108
|
-
--wp-ui-input-layout-suffix-padding-end:
|
|
109
|
-
calc(var(--wp-ui-input-layout-padding-inline) -
|
|
110
|
-
var(--wpds-dimension-base));
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
&.style-module__is-prefix__ezQzb {
|
|
114
|
-
padding-inline-start: var(--wp-ui-input-layout-prefix-padding-start, var(--wp-ui-input-layout-padding-inline));
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
&.style-module__is-suffix__R6el3 {
|
|
118
|
-
padding-inline-end: var(--wp-ui-input-layout-suffix-padding-end, var(--wp-ui-input-layout-padding-inline));
|
|
119
|
-
}
|
|
120
|
-
}
|
|
40
|
+
if (typeof document !== "undefined" && !document.head.querySelector("style[data-wp-hash='c75ffc6db5']")) {
|
|
41
|
+
const style = document.createElement("style");
|
|
42
|
+
style.setAttribute("data-wp-hash", "c75ffc6db5");
|
|
43
|
+
style.appendChild(document.createTextNode("@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{.cb2baafdc08746bb__input-layout{--wp-ui-input-layout-padding-inline:calc(var(--wpds-dimension-base)*3);background-color:var(--wpds-color-bg-interactive-neutral-weak);border-color:var(--wpds-color-stroke-interactive-neutral);border-radius:var(--wpds-border-radius-sm);border-style:solid;border-width:var(--wpds-border-width-xs);color:var(--wpds-color-fg-interactive-neutral);display:flex;font-family:var(--wpds-font-family-body);font-size:max(var(--wpds-font-size-md),16px);height:40px;line-height:1;@media (min-width:600px){font-size:var(--wpds-font-size-md)}&._0c807a84cbb94e0c__is-size-compact{--wp-ui-input-layout-padding-inline:calc(var(--wpds-dimension-base)*2);height:32px}&.ed67cda122dc1e7b__is-size-small{--wp-ui-input-layout-padding-inline:calc(var(--wpds-dimension-base)*2);height:24px}&._6fb7104732387680__is-disabled,&:has([data-can-disable-input-layout][data-disabled]){background-color:var(--wpds-color-bg-interactive-neutral-weak-disabled);border-color:var(--wpds-color-stroke-interactive-neutral-disabled);color:var(--wpds-color-fg-interactive-neutral-disabled);@media (forced-colors:active){border-bottom-color:GrayText;border-left-color:GrayText;border-right-color:GrayText;border-top-color:GrayText;color:GrayText}}&._8097270636ca6100__is-borderless{border-color:#0000}&:has(._0d7afad74a057888__input-layout-slot:focus-within){outline:none}&:hover:not(._6fb7104732387680__is-disabled,:has([data-can-disable-input-layout][data-disabled]),._8097270636ca6100__is-borderless){border-color:var(--wpds-color-stroke-interactive-neutral-active)}}._0d7afad74a057888__input-layout-slot{align-items:center;display:flex;&._0c952682762ca288__is-padding-minimal{--wp-ui-input-layout-prefix-padding-start:calc(var(--wp-ui-input-layout-padding-inline) - var(--wpds-dimension-base));--wp-ui-input-layout-suffix-padding-end:calc(var(--wp-ui-input-layout-padding-inline) - var(--wpds-dimension-base))}&._7b34336f9cf989b9__is-prefix{padding-inline-start:var(--wp-ui-input-layout-prefix-padding-start,var(--wp-ui-input-layout-padding-inline))}&._47a7a5deefae3545__is-suffix{padding-inline-end:var(--wp-ui-input-layout-suffix-padding-end,var(--wp-ui-input-layout-padding-inline))}}}"));
|
|
44
|
+
document.head.appendChild(style);
|
|
121
45
|
}
|
|
122
|
-
|
|
123
|
-
document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(css));
|
|
124
|
-
var style_default = {
|
|
125
|
-
"input-layout": "style-module__input-layout__yyuq-",
|
|
126
|
-
"is-size-compact": "style-module__is-size-compact__DIB6h",
|
|
127
|
-
"is-size-small": "style-module__is-size-small__7WfNo",
|
|
128
|
-
"is-disabled": "style-module__is-disabled__b7cQR",
|
|
129
|
-
"is-borderless": "style-module__is-borderless__gJcnB",
|
|
130
|
-
"input-layout-slot": "style-module__input-layout-slot__DXr61",
|
|
131
|
-
"is-padding-minimal": "style-module__is-padding-minimal__DJUmg",
|
|
132
|
-
"is-prefix": "style-module__is-prefix__ezQzb",
|
|
133
|
-
"is-suffix": "style-module__is-suffix__R6el3"
|
|
134
|
-
};
|
|
46
|
+
var style_default = { "input-layout": "cb2baafdc08746bb__input-layout", "is-size-compact": "_0c807a84cbb94e0c__is-size-compact", "is-size-small": "ed67cda122dc1e7b__is-size-small", "is-disabled": "_6fb7104732387680__is-disabled", "is-borderless": "_8097270636ca6100__is-borderless", "input-layout-slot": "_0d7afad74a057888__input-layout-slot", "is-padding-minimal": "_0c952682762ca288__is-padding-minimal", "is-prefix": "_7b34336f9cf989b9__is-prefix", "is-suffix": "_47a7a5deefae3545__is-suffix" };
|
|
135
47
|
|
|
136
48
|
// packages/ui/src/form/primitives/input-layout/slot.tsx
|
|
137
49
|
var import_context = require("./context.cjs");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/form/primitives/input-layout/slot.tsx", "../../../../src/form/primitives/input-layout/style.module.css"],
|
|
4
|
-
"sourcesContent": ["import clsx from 'clsx';\nimport { forwardRef } from '@wordpress/element';\nimport styles from './style.module.css';\nimport type { InputLayoutSlotProps } from './types';\nimport { useInputLayoutSlotContext } from './context';\n\n/**\n * A layout helper to add paddings in a prefix or suffix.\n */\nexport const InputLayoutSlot = forwardRef<\n\tHTMLDivElement,\n\tInputLayoutSlotProps\n>( function InputLayoutSlot(\n\t{ type: typeProp, padding = 'default', ...restProps },\n\tref\n) {\n\tconst typeContext = useInputLayoutSlotContext();\n\tconst type = typeProp ?? typeContext;\n\n\tif ( ! type ) {\n\t\tthrow new Error(\n\t\t\t'InputLayoutSlot requires a `type` prop or must be used within an InputLayout prefix/suffix slot.'\n\t\t);\n\t}\n\n\treturn (\n\t\t<div\n\t\t\tref={ ref }\n\t\t\tclassName={ clsx(\n\t\t\t\tstyles[ 'input-layout-slot' ],\n\t\t\t\tstyles[ `is-${ type }` ],\n\t\t\t\tstyles[ `is-padding-${ padding }` ]\n\t\t\t) }\n\t\t\t{ ...restProps }\n\t\t/>\n\t);\n} );\n\nInputLayoutSlot.displayName = 'InputLayout.Slot';\n", "
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAiB;AACjB,qBAA2B;;;ACD3B,
|
|
4
|
+
"sourcesContent": ["import clsx from 'clsx';\nimport { forwardRef } from '@wordpress/element';\nimport styles from './style.module.css';\nimport type { InputLayoutSlotProps } from './types';\nimport { useInputLayoutSlotContext } from './context';\n\n/**\n * A layout helper to add paddings in a prefix or suffix.\n */\nexport const InputLayoutSlot = forwardRef<\n\tHTMLDivElement,\n\tInputLayoutSlotProps\n>( function InputLayoutSlot(\n\t{ type: typeProp, padding = 'default', ...restProps },\n\tref\n) {\n\tconst typeContext = useInputLayoutSlotContext();\n\tconst type = typeProp ?? typeContext;\n\n\tif ( ! type ) {\n\t\tthrow new Error(\n\t\t\t'InputLayoutSlot requires a `type` prop or must be used within an InputLayout prefix/suffix slot.'\n\t\t);\n\t}\n\n\treturn (\n\t\t<div\n\t\t\tref={ ref }\n\t\t\tclassName={ clsx(\n\t\t\t\tstyles[ 'input-layout-slot' ],\n\t\t\t\tstyles[ `is-${ type }` ],\n\t\t\t\tstyles[ `is-padding-${ padding }` ]\n\t\t\t) }\n\t\t\t{ ...restProps }\n\t\t/>\n\t);\n} );\n\nInputLayoutSlot.displayName = 'InputLayout.Slot';\n", "if (typeof document !== 'undefined' && !document.head.querySelector(\"style[data-wp-hash='c75ffc6db5']\")) {\n\tconst style = document.createElement(\"style\");\n\tstyle.setAttribute(\"data-wp-hash\", \"c75ffc6db5\");\n\tstyle.appendChild(document.createTextNode(\"@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{.cb2baafdc08746bb__input-layout{--wp-ui-input-layout-padding-inline:calc(var(--wpds-dimension-base)*3);background-color:var(--wpds-color-bg-interactive-neutral-weak);border-color:var(--wpds-color-stroke-interactive-neutral);border-radius:var(--wpds-border-radius-sm);border-style:solid;border-width:var(--wpds-border-width-xs);color:var(--wpds-color-fg-interactive-neutral);display:flex;font-family:var(--wpds-font-family-body);font-size:max(var(--wpds-font-size-md),16px);height:40px;line-height:1;@media (min-width:600px){font-size:var(--wpds-font-size-md)}&._0c807a84cbb94e0c__is-size-compact{--wp-ui-input-layout-padding-inline:calc(var(--wpds-dimension-base)*2);height:32px}&.ed67cda122dc1e7b__is-size-small{--wp-ui-input-layout-padding-inline:calc(var(--wpds-dimension-base)*2);height:24px}&._6fb7104732387680__is-disabled,&:has([data-can-disable-input-layout][data-disabled]){background-color:var(--wpds-color-bg-interactive-neutral-weak-disabled);border-color:var(--wpds-color-stroke-interactive-neutral-disabled);color:var(--wpds-color-fg-interactive-neutral-disabled);@media (forced-colors:active){border-bottom-color:GrayText;border-left-color:GrayText;border-right-color:GrayText;border-top-color:GrayText;color:GrayText}}&._8097270636ca6100__is-borderless{border-color:#0000}&:has(._0d7afad74a057888__input-layout-slot:focus-within){outline:none}&:hover:not(._6fb7104732387680__is-disabled,:has([data-can-disable-input-layout][data-disabled]),._8097270636ca6100__is-borderless){border-color:var(--wpds-color-stroke-interactive-neutral-active)}}._0d7afad74a057888__input-layout-slot{align-items:center;display:flex;&._0c952682762ca288__is-padding-minimal{--wp-ui-input-layout-prefix-padding-start:calc(var(--wp-ui-input-layout-padding-inline) - var(--wpds-dimension-base));--wp-ui-input-layout-suffix-padding-end:calc(var(--wp-ui-input-layout-padding-inline) - var(--wpds-dimension-base))}&._7b34336f9cf989b9__is-prefix{padding-inline-start:var(--wp-ui-input-layout-prefix-padding-start,var(--wp-ui-input-layout-padding-inline))}&._47a7a5deefae3545__is-suffix{padding-inline-end:var(--wp-ui-input-layout-suffix-padding-end,var(--wp-ui-input-layout-padding-inline))}}}\"));\n\tdocument.head.appendChild(style);\n}\nexport default {\"input-layout\":\"cb2baafdc08746bb__input-layout\",\"is-size-compact\":\"_0c807a84cbb94e0c__is-size-compact\",\"is-size-small\":\"ed67cda122dc1e7b__is-size-small\",\"is-disabled\":\"_6fb7104732387680__is-disabled\",\"is-borderless\":\"_8097270636ca6100__is-borderless\",\"input-layout-slot\":\"_0d7afad74a057888__input-layout-slot\",\"is-padding-minimal\":\"_0c952682762ca288__is-padding-minimal\",\"is-prefix\":\"_7b34336f9cf989b9__is-prefix\",\"is-suffix\":\"_47a7a5deefae3545__is-suffix\"};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAiB;AACjB,qBAA2B;;;ACD3B,IAAI,OAAO,aAAa,eAAe,CAAC,SAAS,KAAK,cAAc,kCAAkC,GAAG;AACxG,QAAM,QAAQ,SAAS,cAAc,OAAO;AAC5C,QAAM,aAAa,gBAAgB,YAAY;AAC/C,QAAM,YAAY,SAAS,eAAe,2uEAA2uE,CAAC;AACtxE,WAAS,KAAK,YAAY,KAAK;AAChC;AACA,IAAO,gBAAQ,EAAC,gBAAe,kCAAiC,mBAAkB,sCAAqC,iBAAgB,mCAAkC,eAAc,kCAAiC,iBAAgB,oCAAmC,qBAAoB,wCAAuC,sBAAqB,yCAAwC,aAAY,gCAA+B,aAAY,+BAA8B;;;ADFxd,qBAA0C;AAsBxC;AAjBK,IAAM,sBAAkB,2BAG5B,SAASA,iBACX,EAAE,MAAM,UAAU,UAAU,WAAW,GAAG,UAAU,GACpD,KACC;AACD,QAAM,kBAAc,0CAA0B;AAC9C,QAAM,OAAO,YAAY;AAEzB,MAAK,CAAE,MAAO;AACb,UAAM,IAAI;AAAA,MACT;AAAA,IACD;AAAA,EACD;AAEA,SACC;AAAA,IAAC;AAAA;AAAA,MACA;AAAA,MACA,eAAY,YAAAC;AAAA,QACX,cAAQ,mBAAoB;AAAA,QAC5B,cAAQ,MAAO,IAAK,EAAG;AAAA,QACvB,cAAQ,cAAe,OAAQ,EAAG;AAAA,MACnC;AAAA,MACE,GAAG;AAAA;AAAA,EACN;AAEF,CAAE;AAEF,gBAAgB,cAAc;",
|
|
6
6
|
"names": ["InputLayoutSlot", "clsx"]
|
|
7
7
|
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// packages/ui/src/form/primitives/select/index.ts
|
|
21
|
+
var select_exports = {};
|
|
22
|
+
__export(select_exports, {
|
|
23
|
+
Item: () => import_item.Item,
|
|
24
|
+
Popup: () => import_popup.Popup,
|
|
25
|
+
Root: () => import_root.Root,
|
|
26
|
+
Trigger: () => import_trigger.Trigger
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(select_exports);
|
|
29
|
+
var import_item = require("./item.cjs");
|
|
30
|
+
var import_popup = require("./popup.cjs");
|
|
31
|
+
var import_root = require("./root.cjs");
|
|
32
|
+
var import_trigger = require("./trigger.cjs");
|
|
33
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
34
|
+
0 && (module.exports = {
|
|
35
|
+
Item,
|
|
36
|
+
Popup,
|
|
37
|
+
Root,
|
|
38
|
+
Trigger
|
|
39
|
+
});
|
|
40
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/form/primitives/select/index.ts"],
|
|
4
|
+
"sourcesContent": ["export { Item } from './item';\nexport { Popup } from './popup';\nexport { Root } from './root';\nexport { Trigger } from './trigger';\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAqB;AACrB,mBAAsB;AACtB,kBAAqB;AACrB,qBAAwB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|