@panneau/ui 5.0.0-alpha.43 → 5.0.0-alpha.44
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/dist/avatar/Avatar.css +87 -0
- package/dist/avatar/Avatar.d.ts +31 -0
- package/dist/avatar/Avatar.d.ts.map +1 -0
- package/dist/avatar/Avatar.js +113 -0
- package/dist/avatar/Avatar.js.map +1 -0
- package/dist/avatar/Avatar.module.js +30 -0
- package/dist/avatar/Avatar.module.js.map +1 -0
- package/dist/avatar/AvatarGroup.d.ts +27 -0
- package/dist/avatar/AvatarGroup.d.ts.map +1 -0
- package/dist/avatar/AvatarGroup.js +109 -0
- package/dist/avatar/AvatarGroup.js.map +1 -0
- package/dist/avatar/initials.d.ts +11 -0
- package/dist/avatar/initials.d.ts.map +1 -0
- package/dist/avatar/initials.js +34 -0
- package/dist/avatar/initials.js.map +1 -0
- package/dist/avatar/tokens.d.ts +3 -0
- package/dist/avatar/tokens.d.ts.map +1 -0
- package/dist/avatar/tokens.js +33 -0
- package/dist/avatar/tokens.js.map +1 -0
- package/dist/badge/tokens.d.ts +1 -1
- package/dist/breadcrumbs/Breadcrumbs.css +66 -0
- package/dist/breadcrumbs/Breadcrumbs.d.ts +25 -0
- package/dist/breadcrumbs/Breadcrumbs.d.ts.map +1 -0
- package/dist/breadcrumbs/Breadcrumbs.js +158 -0
- package/dist/breadcrumbs/Breadcrumbs.js.map +1 -0
- package/dist/breadcrumbs/Breadcrumbs.module.js +20 -0
- package/dist/breadcrumbs/Breadcrumbs.module.js.map +1 -0
- package/dist/breadcrumbs/tokens.d.ts +3 -0
- package/dist/breadcrumbs/tokens.d.ts.map +1 -0
- package/dist/breadcrumbs/tokens.js +23 -0
- package/dist/breadcrumbs/tokens.js.map +1 -0
- package/dist/button/tokens.d.ts +1 -1
- package/dist/button-group/ButtonGroup.css +75 -0
- package/dist/button-group/ButtonGroup.d.ts +19 -0
- package/dist/button-group/ButtonGroup.d.ts.map +1 -0
- package/dist/button-group/ButtonGroup.js +42 -0
- package/dist/button-group/ButtonGroup.js.map +1 -0
- package/dist/button-group/ButtonGroup.module.js +12 -0
- package/dist/button-group/ButtonGroup.module.js.map +1 -0
- package/dist/button-group/tokens.d.ts +3 -0
- package/dist/button-group/tokens.d.ts.map +1 -0
- package/dist/button-group/tokens.js +10 -0
- package/dist/button-group/tokens.js.map +1 -0
- package/dist/combo-box/ComboBox.js +2 -2
- package/dist/date-picker/DatePicker.js +2 -2
- package/dist/date-range-picker/DateRangePicker.js +1 -1
- package/dist/empty-state/EmptyState.css +73 -0
- package/dist/empty-state/EmptyState.d.ts +24 -0
- package/dist/empty-state/EmptyState.d.ts.map +1 -0
- package/dist/empty-state/EmptyState.js +96 -0
- package/dist/empty-state/EmptyState.js.map +1 -0
- package/dist/empty-state/EmptyState.module.js +22 -0
- package/dist/empty-state/EmptyState.module.js.map +1 -0
- package/dist/empty-state/tokens.d.ts +3 -0
- package/dist/empty-state/tokens.d.ts.map +1 -0
- package/dist/empty-state/tokens.js +35 -0
- package/dist/empty-state/tokens.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -4
- package/dist/pill-trigger/tokens.d.ts +1 -1
- package/dist/prose/tokens.d.ts +1 -1
- package/dist/select/Select.js +2 -2
- package/dist/text-area/TextArea.css +38 -0
- package/dist/text-area/TextArea.d.ts +11 -1
- package/dist/text-area/TextArea.d.ts.map +1 -1
- package/dist/text-area/TextArea.js +129 -91
- package/dist/text-area/TextArea.js.map +1 -1
- package/dist/text-area/TextArea.module.js +12 -2
- package/dist/text-area/TextArea.module.js.map +1 -1
- package/dist/theme/components.d.ts +9 -4
- package/dist/theme/components.d.ts.map +1 -1
- package/dist/theme/components.js +10 -0
- package/dist/theme/components.js.map +1 -1
- package/dist/tile/Tile.css +169 -0
- package/dist/tile/Tile.d.ts +40 -0
- package/dist/tile/Tile.d.ts.map +1 -0
- package/dist/tile/Tile.js +165 -0
- package/dist/tile/Tile.js.map +1 -0
- package/dist/tile/Tile.module.js +40 -0
- package/dist/tile/Tile.module.js.map +1 -0
- package/dist/tile/tokens.d.ts +3 -0
- package/dist/tile/tokens.d.ts.map +1 -0
- package/dist/tile/tokens.js +39 -0
- package/dist/tile/tokens.js.map +1 -0
- package/package.json +3 -3
|
@@ -3,16 +3,20 @@ import Field_module_default from "../field/Field.module.js";
|
|
|
3
3
|
import { FieldDescription, FieldErrors, FieldLabel } from "../field/FieldParts.js";
|
|
4
4
|
import TextArea_module_default from "./TextArea.module.js";
|
|
5
5
|
import { c } from "react/compiler-runtime";
|
|
6
|
-
import { TextArea, TextField } from "react-aria-components";
|
|
6
|
+
import { Group, TextArea, TextField } from "react-aria-components";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
//#region src/text-area/TextArea.tsx
|
|
9
9
|
/** A multi-line text input with its label, description and errors. */
|
|
10
10
|
function TextArea$1(t0) {
|
|
11
|
-
const $ = c(
|
|
11
|
+
const $ = c(53);
|
|
12
12
|
let className;
|
|
13
|
+
let controlClassName;
|
|
13
14
|
let description;
|
|
14
15
|
let descriptionClassName;
|
|
15
16
|
let errorsClassName;
|
|
17
|
+
let footer;
|
|
18
|
+
let header;
|
|
19
|
+
let isReadOnly;
|
|
16
20
|
let isRequired;
|
|
17
21
|
let label;
|
|
18
22
|
let labelClassName;
|
|
@@ -22,125 +26,159 @@ function TextArea$1(t0) {
|
|
|
22
26
|
let t2;
|
|
23
27
|
let textAreaClassName;
|
|
24
28
|
if ($[0] !== t0) {
|
|
25
|
-
({label, description, errors: t1, placeholder, rows: t2, className, labelClassName, descriptionClassName, errorsClassName, textAreaClassName, isRequired, ...props} = t0);
|
|
29
|
+
({label, description, errors: t1, placeholder, rows: t2, header, footer, className, labelClassName, descriptionClassName, errorsClassName, controlClassName, textAreaClassName, isRequired, isReadOnly, ...props} = t0);
|
|
26
30
|
$[0] = t0;
|
|
27
31
|
$[1] = className;
|
|
28
|
-
$[2] =
|
|
29
|
-
$[3] =
|
|
30
|
-
$[4] =
|
|
31
|
-
$[5] =
|
|
32
|
-
$[6] =
|
|
33
|
-
$[7] =
|
|
34
|
-
$[8] =
|
|
35
|
-
$[9] =
|
|
36
|
-
$[10] =
|
|
37
|
-
$[11] =
|
|
38
|
-
$[12] =
|
|
32
|
+
$[2] = controlClassName;
|
|
33
|
+
$[3] = description;
|
|
34
|
+
$[4] = descriptionClassName;
|
|
35
|
+
$[5] = errorsClassName;
|
|
36
|
+
$[6] = footer;
|
|
37
|
+
$[7] = header;
|
|
38
|
+
$[8] = isReadOnly;
|
|
39
|
+
$[9] = isRequired;
|
|
40
|
+
$[10] = label;
|
|
41
|
+
$[11] = labelClassName;
|
|
42
|
+
$[12] = placeholder;
|
|
43
|
+
$[13] = props;
|
|
44
|
+
$[14] = t1;
|
|
45
|
+
$[15] = t2;
|
|
46
|
+
$[16] = textAreaClassName;
|
|
39
47
|
} else {
|
|
40
48
|
className = $[1];
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
controlClassName = $[2];
|
|
50
|
+
description = $[3];
|
|
51
|
+
descriptionClassName = $[4];
|
|
52
|
+
errorsClassName = $[5];
|
|
53
|
+
footer = $[6];
|
|
54
|
+
header = $[7];
|
|
55
|
+
isReadOnly = $[8];
|
|
56
|
+
isRequired = $[9];
|
|
57
|
+
label = $[10];
|
|
58
|
+
labelClassName = $[11];
|
|
59
|
+
placeholder = $[12];
|
|
60
|
+
props = $[13];
|
|
61
|
+
t1 = $[14];
|
|
62
|
+
t2 = $[15];
|
|
63
|
+
textAreaClassName = $[16];
|
|
52
64
|
}
|
|
53
65
|
let t3;
|
|
54
|
-
if ($[
|
|
66
|
+
if ($[17] !== t1) {
|
|
55
67
|
t3 = t1 === void 0 ? [] : t1;
|
|
56
|
-
$[
|
|
57
|
-
$[
|
|
58
|
-
} else t3 = $[
|
|
68
|
+
$[17] = t1;
|
|
69
|
+
$[18] = t3;
|
|
70
|
+
} else t3 = $[18];
|
|
59
71
|
const errors = t3;
|
|
60
72
|
const rows = t2 === void 0 ? 4 : t2;
|
|
61
|
-
const
|
|
73
|
+
const invalid = errors.length > 0;
|
|
74
|
+
const hasHeader = header !== void 0 && header !== null;
|
|
75
|
+
const hasFooter = footer !== void 0 && footer !== null;
|
|
76
|
+
let t4;
|
|
77
|
+
if ($[19] !== className) {
|
|
78
|
+
t4 = cx("panneau-text-area", Field_module_default.field, className);
|
|
79
|
+
$[19] = className;
|
|
80
|
+
$[20] = t4;
|
|
81
|
+
} else t4 = $[20];
|
|
62
82
|
let t5;
|
|
63
|
-
if ($[
|
|
64
|
-
t5 =
|
|
65
|
-
$[15] = className;
|
|
66
|
-
$[16] = t5;
|
|
67
|
-
} else t5 = $[16];
|
|
68
|
-
let t6;
|
|
69
|
-
if ($[17] !== isRequired || $[18] !== label || $[19] !== labelClassName) {
|
|
70
|
-
t6 = /* @__PURE__ */ jsx(FieldLabel, {
|
|
83
|
+
if ($[21] !== isRequired || $[22] !== label || $[23] !== labelClassName) {
|
|
84
|
+
t5 = /* @__PURE__ */ jsx(FieldLabel, {
|
|
71
85
|
isRequired,
|
|
72
86
|
className: labelClassName,
|
|
73
87
|
children: label
|
|
74
88
|
});
|
|
75
|
-
$[
|
|
76
|
-
$[
|
|
77
|
-
$[
|
|
78
|
-
$[
|
|
79
|
-
} else
|
|
80
|
-
let
|
|
81
|
-
if ($[
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
+
$[21] = isRequired;
|
|
90
|
+
$[22] = label;
|
|
91
|
+
$[23] = labelClassName;
|
|
92
|
+
$[24] = t5;
|
|
93
|
+
} else t5 = $[24];
|
|
94
|
+
let t6;
|
|
95
|
+
if ($[25] !== controlClassName || $[26] !== footer || $[27] !== hasFooter || $[28] !== hasHeader || $[29] !== header || $[30] !== invalid || $[31] !== isReadOnly || $[32] !== placeholder || $[33] !== props || $[34] !== rows || $[35] !== textAreaClassName) {
|
|
96
|
+
t6 = hasHeader || hasFooter ? /* @__PURE__ */ jsxs(Group, {
|
|
97
|
+
className: cx(Field_module_default.control, TextArea_module_default.box, controlClassName),
|
|
98
|
+
"data-invalid": invalid || void 0,
|
|
99
|
+
isReadOnly,
|
|
100
|
+
isDisabled: props.isDisabled,
|
|
101
|
+
children: [
|
|
102
|
+
hasHeader ? /* @__PURE__ */ jsx("div", {
|
|
103
|
+
className: TextArea_module_default.header,
|
|
104
|
+
children: header
|
|
105
|
+
}) : null,
|
|
106
|
+
/* @__PURE__ */ jsx(TextArea, {
|
|
107
|
+
placeholder,
|
|
108
|
+
rows,
|
|
109
|
+
className: cx(Field_module_default.bare, TextArea_module_default.text, textAreaClassName)
|
|
110
|
+
}),
|
|
111
|
+
hasFooter ? /* @__PURE__ */ jsx("div", {
|
|
112
|
+
className: TextArea_module_default.footer,
|
|
113
|
+
children: footer
|
|
114
|
+
}) : null
|
|
115
|
+
]
|
|
116
|
+
}) : /* @__PURE__ */ jsx(TextArea, {
|
|
89
117
|
placeholder,
|
|
90
118
|
rows,
|
|
91
|
-
className:
|
|
119
|
+
className: cx(Field_module_default.control, TextArea_module_default.control, controlClassName, textAreaClassName)
|
|
92
120
|
});
|
|
93
|
-
$[
|
|
94
|
-
$[
|
|
95
|
-
$[
|
|
96
|
-
$[
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
121
|
+
$[25] = controlClassName;
|
|
122
|
+
$[26] = footer;
|
|
123
|
+
$[27] = hasFooter;
|
|
124
|
+
$[28] = hasHeader;
|
|
125
|
+
$[29] = header;
|
|
126
|
+
$[30] = invalid;
|
|
127
|
+
$[31] = isReadOnly;
|
|
128
|
+
$[32] = placeholder;
|
|
129
|
+
$[33] = props;
|
|
130
|
+
$[34] = rows;
|
|
131
|
+
$[35] = textAreaClassName;
|
|
132
|
+
$[36] = t6;
|
|
133
|
+
} else t6 = $[36];
|
|
134
|
+
let t7;
|
|
135
|
+
if ($[37] !== description || $[38] !== descriptionClassName) {
|
|
136
|
+
t7 = /* @__PURE__ */ jsx(FieldDescription, {
|
|
101
137
|
className: descriptionClassName,
|
|
102
138
|
children: description
|
|
103
139
|
});
|
|
104
|
-
$[
|
|
105
|
-
$[
|
|
106
|
-
$[
|
|
107
|
-
} else
|
|
108
|
-
let
|
|
109
|
-
if ($[
|
|
110
|
-
|
|
140
|
+
$[37] = description;
|
|
141
|
+
$[38] = descriptionClassName;
|
|
142
|
+
$[39] = t7;
|
|
143
|
+
} else t7 = $[39];
|
|
144
|
+
let t8;
|
|
145
|
+
if ($[40] !== errors || $[41] !== errorsClassName) {
|
|
146
|
+
t8 = /* @__PURE__ */ jsx(FieldErrors, {
|
|
111
147
|
errors,
|
|
112
148
|
className: errorsClassName
|
|
113
149
|
});
|
|
114
|
-
$[
|
|
115
|
-
$[
|
|
116
|
-
$[
|
|
117
|
-
} else
|
|
118
|
-
let
|
|
119
|
-
if ($[
|
|
120
|
-
|
|
150
|
+
$[40] = errors;
|
|
151
|
+
$[41] = errorsClassName;
|
|
152
|
+
$[42] = t8;
|
|
153
|
+
} else t8 = $[42];
|
|
154
|
+
let t9;
|
|
155
|
+
if ($[43] !== invalid || $[44] !== isReadOnly || $[45] !== isRequired || $[46] !== props || $[47] !== t4 || $[48] !== t5 || $[49] !== t6 || $[50] !== t7 || $[51] !== t8) {
|
|
156
|
+
t9 = /* @__PURE__ */ jsxs(TextField, {
|
|
121
157
|
...props,
|
|
122
158
|
isRequired,
|
|
123
|
-
|
|
159
|
+
isReadOnly,
|
|
160
|
+
isInvalid: invalid,
|
|
124
161
|
validationBehavior: "aria",
|
|
125
|
-
className:
|
|
162
|
+
className: t4,
|
|
126
163
|
children: [
|
|
164
|
+
t5,
|
|
127
165
|
t6,
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
t10
|
|
166
|
+
t7,
|
|
167
|
+
t8
|
|
131
168
|
]
|
|
132
169
|
});
|
|
133
|
-
$[
|
|
134
|
-
$[
|
|
135
|
-
$[
|
|
136
|
-
$[
|
|
137
|
-
$[
|
|
138
|
-
$[
|
|
139
|
-
$[
|
|
140
|
-
$[
|
|
141
|
-
$[
|
|
142
|
-
|
|
143
|
-
|
|
170
|
+
$[43] = invalid;
|
|
171
|
+
$[44] = isReadOnly;
|
|
172
|
+
$[45] = isRequired;
|
|
173
|
+
$[46] = props;
|
|
174
|
+
$[47] = t4;
|
|
175
|
+
$[48] = t5;
|
|
176
|
+
$[49] = t6;
|
|
177
|
+
$[50] = t7;
|
|
178
|
+
$[51] = t8;
|
|
179
|
+
$[52] = t9;
|
|
180
|
+
} else t9 = $[52];
|
|
181
|
+
return t9;
|
|
144
182
|
}
|
|
145
183
|
//#endregion
|
|
146
184
|
export { TextArea$1 as TextArea };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextArea.js","names":["TextArea","AriaTextArea","TextFieldProps","AriaTextFieldProps","TextField","FieldChromeProps","FieldDescription","FieldErrors","FieldLabel","fieldStyles","cx","styles","TextAreaProps","Omit","placeholder","rows","textAreaClassName","t0","$","_c","className","description","descriptionClassName","errorsClassName","isRequired","label","labelClassName","props","t1","t2","errors","t3","undefined","
|
|
1
|
+
{"version":3,"file":"TextArea.js","names":["ReactNode","TextArea","AriaTextArea","TextFieldProps","AriaTextFieldProps","Group","TextField","FieldChromeProps","FieldDescription","FieldErrors","FieldLabel","fieldStyles","cx","styles","TextAreaProps","Omit","placeholder","rows","header","footer","controlClassName","textAreaClassName","t0","$","_c","className","description","descriptionClassName","errorsClassName","isReadOnly","isRequired","label","labelClassName","props","t1","t2","errors","t3","undefined","invalid","length","hasHeader","hasFooter","t4","field","t5","t6","control","box","isDisabled","bare","text","t7","t8","t9","TextArea","_c","fieldStyles","styles","AriaTextArea"],"sources":["../../src/text-area/TextArea.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\nimport {\n TextArea as AriaTextArea,\n type TextFieldProps as AriaTextFieldProps,\n Group,\n TextField,\n} from 'react-aria-components';\n\nimport {\n type FieldChromeProps,\n FieldDescription,\n FieldErrors,\n FieldLabel,\n fieldStyles,\n} from '../field/FieldParts';\nimport { cx } from '../utils/cx';\nimport styles from './TextArea.module.css';\n\nexport interface TextAreaProps\n extends\n Omit<AriaTextFieldProps, 'className' | 'style' | 'children' | 'isInvalid' | 'validate'>,\n FieldChromeProps {\n placeholder?: string;\n /** Visible lines of text. Defaults to 4. */\n rows?: number;\n /**\n * Content inside the box, above the text: a hint, small buttons (`IconButton` or `Button` with\n * `size=\"sm\"`).\n */\n header?: ReactNode;\n /** Content inside the box, under the text: a character count, small buttons. */\n footer?: ReactNode;\n /** Class name of the box, with a header or a footer. */\n controlClassName?: string;\n textAreaClassName?: string;\n}\n\n/** A multi-line text input with its label, description and errors. */\nexport function TextArea({\n label,\n description,\n errors = [],\n placeholder,\n rows = 4,\n header,\n footer,\n className,\n labelClassName,\n descriptionClassName,\n errorsClassName,\n controlClassName,\n textAreaClassName,\n isRequired,\n isReadOnly,\n ...props\n}: TextAreaProps) {\n const invalid = errors.length > 0;\n const hasHeader = header !== undefined && header !== null;\n const hasFooter = footer !== undefined && footer !== null;\n return (\n <TextField\n {...props}\n isRequired={isRequired}\n isReadOnly={isReadOnly}\n isInvalid={invalid}\n validationBehavior=\"aria\"\n className={cx('panneau-text-area', fieldStyles.field, className)}\n >\n <FieldLabel isRequired={isRequired} className={labelClassName}>\n {label}\n </FieldLabel>\n {hasHeader || hasFooter ? (\n <Group\n className={cx(fieldStyles.control, styles.box, controlClassName)}\n data-invalid={invalid || undefined}\n isReadOnly={isReadOnly}\n isDisabled={props.isDisabled}\n >\n {hasHeader ? <div className={styles.header}>{header}</div> : null}\n <AriaTextArea\n placeholder={placeholder}\n rows={rows}\n className={cx(fieldStyles.bare, styles.text, textAreaClassName)}\n />\n {hasFooter ? <div className={styles.footer}>{footer}</div> : null}\n </Group>\n ) : (\n <AriaTextArea\n placeholder={placeholder}\n rows={rows}\n className={cx(\n fieldStyles.control,\n styles.control,\n controlClassName,\n textAreaClassName,\n )}\n />\n )}\n <FieldDescription className={descriptionClassName}>{description}</FieldDescription>\n <FieldErrors errors={errors} className={errorsClassName} />\n </TextField>\n );\n}\n"],"mappings":"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"}
|
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
import "./TextArea.css";
|
|
2
2
|
//#region src/text-area/TextArea.module.css
|
|
3
3
|
var control = "panneau-text-area-control";
|
|
4
|
-
var
|
|
4
|
+
var box = "panneau-text-area-box";
|
|
5
|
+
var text = "panneau-text-area-text";
|
|
6
|
+
var header = "panneau-text-area-header";
|
|
7
|
+
var footer = "panneau-text-area-footer";
|
|
8
|
+
var TextArea_module_default = {
|
|
9
|
+
control,
|
|
10
|
+
box,
|
|
11
|
+
text,
|
|
12
|
+
header,
|
|
13
|
+
footer
|
|
14
|
+
};
|
|
5
15
|
//#endregion
|
|
6
|
-
export { control, TextArea_module_default as default };
|
|
16
|
+
export { box, control, TextArea_module_default as default, footer, header, text };
|
|
7
17
|
|
|
8
18
|
//# sourceMappingURL=TextArea.module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextArea.module.js","names":[],"sources":["../../src/text-area/TextArea.module.css"],"sourcesContent":["/* Doubled class: overrides the shared control, whatever the CSS order. */\n.control.control {\n display: block;\n min-height: calc(var(--panneau-control-height) * 2);\n padding: var(--panneau-space-2) var(--panneau-space-3);\n line-height: var(--panneau-line-height);\n resize: vertical;\n}\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"TextArea.module.js","names":[],"sources":["../../src/text-area/TextArea.module.css"],"sourcesContent":["/* Doubled class: overrides the shared control, whatever the CSS order. */\n.control.control {\n display: block;\n min-height: calc(var(--panneau-control-height) * 2);\n padding: var(--panneau-space-2) var(--panneau-space-3);\n line-height: var(--panneau-line-height);\n resize: vertical;\n}\n\n/* With a header or a footer, the box is a group around them and the text. */\n.box.box {\n flex-direction: column;\n align-items: stretch;\n padding: 0;\n cursor: text;\n}\n\n.text.text {\n display: block;\n min-height: calc(var(--panneau-control-height) * 2);\n padding: var(--panneau-space-2) var(--panneau-space-3);\n line-height: var(--panneau-line-height);\n resize: vertical;\n}\n\n.header,\n.footer {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--panneau-space-2);\n min-height: var(--panneau-control-height-sm);\n padding: var(--panneau-space-1) var(--panneau-space-2) var(--panneau-space-1)\n var(--panneau-space-3);\n font-size: var(--panneau-font-size-sm);\n color: var(--panneau-color-text-muted);\n cursor: default;\n}\n\n.header {\n border-bottom: var(--panneau-border-width) solid var(--panneau-color-border);\n}\n\n.footer {\n border-top: var(--panneau-border-width) solid var(--panneau-color-border);\n}\n"],"mappings":""}
|
|
@@ -5,9 +5,12 @@
|
|
|
5
5
|
export declare const componentTokens: Readonly<{
|
|
6
6
|
alert: Readonly<Record<"panneau-alert-radius" | "panneau-alert-gap" | "panneau-alert-padding-y" | "panneau-alert-padding-x" | "panneau-alert-border-width" | "panneau-alert-title-font-weight", string>>;
|
|
7
7
|
aside: Readonly<Record<"panneau-aside-border" | "panneau-aside-width" | "panneau-aside-radius" | "panneau-aside-padding" | "panneau-aside-width-wide" | "panneau-aside-bg" | "panneau-aside-shadow", string>>;
|
|
8
|
-
|
|
8
|
+
avatar: Readonly<Record<"panneau-avatar-radius" | "panneau-avatar-size-xs" | "panneau-avatar-size-sm" | "panneau-avatar-size-md" | "panneau-avatar-size-lg" | "panneau-avatar-size-xl" | "panneau-avatar-font-weight" | "panneau-avatar-tint" | "panneau-avatar-ring-width" | "panneau-avatar-ring-gap" | "panneau-avatar-gap-color" | "panneau-avatar-group-overlap", string>>;
|
|
9
|
+
badge: Readonly<Record<"panneau-badge-height" | "panneau-badge-radius" | "panneau-badge-gap" | "panneau-badge-padding-x" | "panneau-badge-border-width" | "panneau-badge-font-weight" | "panneau-badge-font-size", string>>;
|
|
9
10
|
'bar-chart': Readonly<Record<"panneau-bar-chart-gap" | "panneau-bar-chart-font-size" | "panneau-bar-chart-bar-height" | "panneau-bar-chart-bar-radius", string>>;
|
|
10
|
-
|
|
11
|
+
breadcrumbs: Readonly<Record<"panneau-breadcrumbs-gap" | "panneau-breadcrumbs-font-size" | "panneau-breadcrumbs-link-color" | "panneau-breadcrumbs-current-color" | "panneau-breadcrumbs-current-font-weight" | "panneau-breadcrumbs-separator-color" | "panneau-breadcrumbs-item-max-width", string>>;
|
|
12
|
+
button: Readonly<Record<"panneau-button-radius" | "panneau-button-gap" | "panneau-button-padding-x" | "panneau-button-border-width" | "panneau-button-font-weight" | "panneau-button-font-size" | "panneau-button-solid-border-color" | "panneau-button-pressed-scale" | "panneau-button-padding-x-sm" | "panneau-button-font-size-sm", string>>;
|
|
13
|
+
'button-group': Readonly<Record<"panneau-button-group-separator-color", string>>;
|
|
11
14
|
calendar: Readonly<Record<"panneau-calendar-cell-size" | "panneau-calendar-cell-radius" | "panneau-calendar-selected-color" | "panneau-calendar-selected-bg", string>>;
|
|
12
15
|
card: Readonly<Record<"panneau-card-radius" | "panneau-card-gap" | "panneau-card-padding-y" | "panneau-card-padding-x" | "panneau-card-border-width" | "panneau-card-title-font-weight" | "panneau-card-bg" | "panneau-card-shadow" | "panneau-card-border-color" | "panneau-card-header-padding-y" | "panneau-card-title-font-size", string>>;
|
|
13
16
|
checkbox: Readonly<Record<"panneau-checkbox-size" | "panneau-checkbox-radius" | "panneau-checkbox-bg" | "panneau-checkbox-border-color" | "panneau-checkbox-checked-color" | "panneau-checkbox-checked-bg", string>>;
|
|
@@ -16,6 +19,7 @@ export declare const componentTokens: Readonly<{
|
|
|
16
19
|
dialog: Readonly<Record<"panneau-dialog-width" | "panneau-dialog-radius" | "panneau-dialog-padding-x" | "panneau-dialog-title-font-weight" | "panneau-dialog-bg" | "panneau-dialog-shadow" | "panneau-dialog-title-font-size" | "panneau-dialog-width-sm" | "panneau-dialog-width-lg" | "panneau-dialog-width-xl" | "panneau-dialog-backdrop", string>>;
|
|
17
20
|
disclosure: Readonly<Record<"panneau-disclosure-gap" | "panneau-disclosure-title-font-weight" | "panneau-disclosure-title-font-size", string>>;
|
|
18
21
|
divider: Readonly<Record<"panneau-divider-color" | "panneau-divider-width", string>>;
|
|
22
|
+
'empty-state': Readonly<Record<"panneau-empty-state-gap" | "panneau-empty-state-padding-y" | "panneau-empty-state-padding-x" | "panneau-empty-state-title-font-weight" | "panneau-empty-state-title-font-size" | "panneau-empty-state-padding-y-sm" | "panneau-empty-state-max-width" | "panneau-empty-state-icon-size" | "panneau-empty-state-icon-bg" | "panneau-empty-state-icon-color" | "panneau-empty-state-icon-radius" | "panneau-empty-state-title-font-size-sm" | "panneau-empty-state-description-color", string>>;
|
|
19
23
|
field: Readonly<Record<"panneau-field-gap" | "panneau-field-label-font-size" | "panneau-field-label-font-weight" | "panneau-field-required-color", string>>;
|
|
20
24
|
grid: Readonly<Record<"panneau-grid-gap", string>>;
|
|
21
25
|
heading: Readonly<Record<"panneau-heading-color" | "panneau-heading-font-family" | "panneau-heading-display-font-family" | "panneau-heading-1-font-size" | "panneau-heading-1-font-weight" | "panneau-heading-1-line-height" | "panneau-heading-1-letter-spacing" | "panneau-heading-2-font-size" | "panneau-heading-2-font-weight" | "panneau-heading-2-line-height" | "panneau-heading-2-letter-spacing" | "panneau-heading-3-font-size" | "panneau-heading-3-font-weight" | "panneau-heading-3-line-height" | "panneau-heading-3-letter-spacing" | "panneau-heading-4-font-size" | "panneau-heading-4-font-weight" | "panneau-heading-4-line-height" | "panneau-heading-4-letter-spacing" | "panneau-heading-display-1-font-size" | "panneau-heading-display-1-font-weight" | "panneau-heading-display-1-line-height" | "panneau-heading-display-1-letter-spacing" | "panneau-heading-display-2-font-size" | "panneau-heading-display-2-font-weight" | "panneau-heading-display-2-line-height" | "panneau-heading-display-2-letter-spacing", string>>;
|
|
@@ -27,9 +31,9 @@ export declare const componentTokens: Readonly<{
|
|
|
27
31
|
menu: Readonly<Record<"panneau-menu-header-font-size" | "panneau-menu-header-font-weight" | "panneau-menu-header-color" | "panneau-menu-header-text-transform" | "panneau-menu-header-letter-spacing" | "panneau-menu-footer-font-size" | "panneau-menu-footer-color" | "panneau-menu-media-size" | "panneau-menu-media-size-described" | "panneau-menu-media-radius" | "panneau-menu-item-bg-selected", string>>;
|
|
28
32
|
meter: Readonly<Record<"panneau-meter-height" | "panneau-meter-radius" | "panneau-meter-track-bg", string>>;
|
|
29
33
|
'number-input': Readonly<Record<"panneau-number-input-stepper-width", string>>;
|
|
30
|
-
'pill-trigger': Readonly<Record<"panneau-pill-trigger-color" | "panneau-pill-trigger-radius" | "panneau-pill-trigger-gap" | "panneau-pill-trigger-padding-x" | "panneau-pill-trigger-bg" | "panneau-pill-trigger-font-
|
|
34
|
+
'pill-trigger': Readonly<Record<"panneau-pill-trigger-color" | "panneau-pill-trigger-radius" | "panneau-pill-trigger-gap" | "panneau-pill-trigger-padding-x" | "panneau-pill-trigger-bg" | "panneau-pill-trigger-font-weight" | "panneau-pill-trigger-font-size" | "panneau-pill-trigger-padding-x-sm" | "panneau-pill-trigger-font-size-sm" | "panneau-pill-trigger-border-color" | "panneau-pill-trigger-media-size" | "panneau-pill-trigger-media-radius" | "panneau-pill-trigger-bg-hover" | "panneau-pill-trigger-media-size-sm", string>>;
|
|
31
35
|
popover: Readonly<Record<"panneau-popover-radius" | "panneau-popover-padding" | "panneau-popover-bg" | "panneau-popover-shadow" | "panneau-popover-border-color", string>>;
|
|
32
|
-
prose: Readonly<Record<"panneau-prose-gap" | "panneau-prose-
|
|
36
|
+
prose: Readonly<Record<"panneau-prose-gap" | "panneau-prose-link-color" | "panneau-prose-border-color" | "panneau-prose-line-height" | "panneau-prose-heading-gap" | "panneau-prose-list-indent" | "panneau-prose-code-font-size" | "panneau-prose-code-color" | "panneau-prose-code-bg" | "panneau-prose-code-radius" | "panneau-prose-quote-border-color" | "panneau-prose-quote-color", string>>;
|
|
33
37
|
radio: Readonly<Record<"panneau-radio-size" | "panneau-radio-bg" | "panneau-radio-border-color" | "panneau-radio-checked-color" | "panneau-radio-media-size" | "panneau-radio-media-radius" | "panneau-radio-checked-border-width" | "panneau-radio-card-gap" | "panneau-radio-card-padding" | "panneau-radio-card-bg" | "panneau-radio-card-border-color" | "panneau-radio-card-border-color-hover" | "panneau-radio-card-border-color-selected" | "panneau-radio-scale-bg" | "panneau-radio-scale-border-color" | "panneau-radio-scale-selected-bg" | "panneau-radio-scale-selected-text" | "panneau-radio-card-radius" | "panneau-radio-card-label-font-weight", string>>;
|
|
34
38
|
'segmented-control': Readonly<Record<"panneau-segmented-control-radius" | "panneau-segmented-control-padding" | "panneau-segmented-control-bg" | "panneau-segmented-control-border-color" | "panneau-segmented-control-segment-padding-x" | "panneau-segmented-control-segment-font-weight" | "panneau-segmented-control-segment-color" | "panneau-segmented-control-segment-color-hover" | "panneau-segmented-control-segment-bg-hover" | "panneau-segmented-control-segment-color-selected" | "panneau-segmented-control-segment-bg-selected" | "panneau-segmented-control-segment-shadow-selected", string>>;
|
|
35
39
|
selected: Readonly<Record<"panneau-selected-text" | "panneau-selected-subtle" | "panneau-selected-bg", string>>;
|
|
@@ -41,6 +45,7 @@ export declare const componentTokens: Readonly<{
|
|
|
41
45
|
switch: Readonly<Record<"panneau-switch-height" | "panneau-switch-width" | "panneau-switch-radius" | "panneau-switch-checked-bg" | "panneau-switch-track-bg" | "panneau-switch-track-border-color" | "panneau-switch-thumb-size" | "panneau-switch-thumb-bg" | "panneau-switch-checked-thumb-bg", string>>;
|
|
42
46
|
tabs: Readonly<Record<"panneau-tabs-gap" | "panneau-tabs-border-color" | "panneau-tabs-tab-padding-x" | "panneau-tabs-tab-font-weight" | "panneau-tabs-tab-color" | "panneau-tabs-indicator-height" | "panneau-tabs-tab-color-selected" | "panneau-tabs-indicator-color", string>>;
|
|
43
47
|
text: Readonly<Record<"panneau-text-muted-color", string>>;
|
|
48
|
+
tile: Readonly<Record<"panneau-tile-radius" | "panneau-tile-gap" | "panneau-tile-padding-y" | "panneau-tile-padding-x" | "panneau-tile-title-font-weight" | "panneau-tile-border-color" | "panneau-tile-padding-y-sm" | "panneau-tile-icon-bg" | "panneau-tile-icon-color" | "panneau-tile-icon-radius" | "panneau-tile-description-color" | "panneau-tile-media-size" | "panneau-tile-media-size-sm" | "panneau-tile-subtle-bg" | "panneau-tile-hover-bg", string>>;
|
|
44
49
|
toast: Readonly<Record<"panneau-toast-width" | "panneau-toast-radius" | "panneau-toast-bg" | "panneau-toast-shadow" | "panneau-toast-border-color" | "panneau-toast-tone-width", string>>;
|
|
45
50
|
tooltip: Readonly<Record<"panneau-tooltip-color" | "panneau-tooltip-radius" | "panneau-tooltip-padding-y" | "panneau-tooltip-padding-x" | "panneau-tooltip-bg" | "panneau-tooltip-font-size", string>>;
|
|
46
51
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../src/theme/components.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../src/theme/components.ts"],"names":[],"mappings":"AA8CA;;;GAGG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8C1B,CAAC;AAEH,gFAAgF;AAChF,MAAM,MAAM,kBAAkB,GAAG;KAC5B,SAAS,IAAI,MAAM,OAAO,eAAe,GAAG,MAAM,CAAC,OAAO,eAAe,CAAC,CAAC,SAAS,CAAC;CACzF,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC"}
|
package/dist/theme/components.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { alertTokens } from "../alert/tokens.js";
|
|
2
2
|
import { asideTokens } from "../aside/tokens.js";
|
|
3
|
+
import { avatarTokens } from "../avatar/tokens.js";
|
|
3
4
|
import { badgeTokens } from "../badge/tokens.js";
|
|
4
5
|
import { barChartTokens } from "../bar-chart/tokens.js";
|
|
6
|
+
import { breadcrumbsTokens } from "../breadcrumbs/tokens.js";
|
|
7
|
+
import { buttonGroupTokens } from "../button-group/tokens.js";
|
|
5
8
|
import { buttonTokens } from "../button/tokens.js";
|
|
6
9
|
import { cardTokens } from "../card/tokens.js";
|
|
7
10
|
import { checkboxTokens } from "../checkbox/tokens.js";
|
|
@@ -11,6 +14,7 @@ import { calendarTokens } from "../date-picker/calendarTokens.js";
|
|
|
11
14
|
import { dialogTokens } from "../dialog/tokens.js";
|
|
12
15
|
import { disclosureTokens } from "../disclosure/tokens.js";
|
|
13
16
|
import { dividerTokens } from "../divider/tokens.js";
|
|
17
|
+
import { emptyStateTokens } from "../empty-state/tokens.js";
|
|
14
18
|
import { inputTokens } from "../field/inputTokens.js";
|
|
15
19
|
import { fieldTokens } from "../field/tokens.js";
|
|
16
20
|
import { gridTokens } from "../grid/tokens.js";
|
|
@@ -35,6 +39,7 @@ import { statTokens } from "../stat/tokens.js";
|
|
|
35
39
|
import { switchTokens } from "../switch/tokens.js";
|
|
36
40
|
import { tabsTokens } from "../tabs/tokens.js";
|
|
37
41
|
import { textTokens } from "../text/tokens.js";
|
|
42
|
+
import { tileTokens } from "../tile/tokens.js";
|
|
38
43
|
import { toastTokens } from "../toast/tokens.js";
|
|
39
44
|
import { tooltipTokens } from "../tooltip/tokens.js";
|
|
40
45
|
import { selectedTokens } from "./selectedTokens.js";
|
|
@@ -46,9 +51,12 @@ import { selectedTokens } from "./selectedTokens.js";
|
|
|
46
51
|
var componentTokens = Object.freeze({
|
|
47
52
|
alert: alertTokens.tokens,
|
|
48
53
|
aside: asideTokens.tokens,
|
|
54
|
+
avatar: avatarTokens.tokens,
|
|
49
55
|
badge: badgeTokens.tokens,
|
|
50
56
|
"bar-chart": barChartTokens.tokens,
|
|
57
|
+
breadcrumbs: breadcrumbsTokens.tokens,
|
|
51
58
|
button: buttonTokens.tokens,
|
|
59
|
+
"button-group": buttonGroupTokens.tokens,
|
|
52
60
|
calendar: calendarTokens.tokens,
|
|
53
61
|
card: cardTokens.tokens,
|
|
54
62
|
checkbox: checkboxTokens.tokens,
|
|
@@ -57,6 +65,7 @@ var componentTokens = Object.freeze({
|
|
|
57
65
|
dialog: dialogTokens.tokens,
|
|
58
66
|
disclosure: disclosureTokens.tokens,
|
|
59
67
|
divider: dividerTokens.tokens,
|
|
68
|
+
"empty-state": emptyStateTokens.tokens,
|
|
60
69
|
field: fieldTokens.tokens,
|
|
61
70
|
grid: gridTokens.tokens,
|
|
62
71
|
heading: headingTokens.tokens,
|
|
@@ -82,6 +91,7 @@ var componentTokens = Object.freeze({
|
|
|
82
91
|
switch: switchTokens.tokens,
|
|
83
92
|
tabs: tabsTokens.tokens,
|
|
84
93
|
text: textTokens.tokens,
|
|
94
|
+
tile: tileTokens.tokens,
|
|
85
95
|
toast: toastTokens.tokens,
|
|
86
96
|
tooltip: tooltipTokens.tokens
|
|
87
97
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.js","names":["alertTokens","asideTokens","badgeTokens","barChartTokens","buttonTokens","cardTokens","checkboxTokens","commandPaletteTokens","containerTokens","calendarTokens","dialogTokens","disclosureTokens","dividerTokens","inputTokens","fieldTokens","gridTokens","headingTokens","iconTokens","inlineTokens","lineChartTokens","menuTokens","meterTokens","numberInputTokens","pillTriggerTokens","popoverTokens","proseTokens","radioTokens","segmentedControlTokens","listBoxTokens","skeletonTokens","sparklineTokens","spinnerTokens","stackTokens","statTokens","switchTokens","tabsTokens","textTokens","toastTokens","tooltipTokens","selectedTokens","componentTokens","Object","freeze","alert","tokens","aside","badge","button","calendar","card","checkbox","container","dialog","disclosure","divider","field","grid","heading","icon","inline","input","menu","meter","popover","prose","radio","selected","skeleton","sparkline","spinner","stack","stat","switch","tabs","text","toast","tooltip","ComponentTokenName","Component"],"sources":["../../src/theme/components.ts"],"sourcesContent":["import { alertTokens } from '../alert/tokens';\nimport { asideTokens } from '../aside/tokens';\nimport { badgeTokens } from '../badge/tokens';\nimport { barChartTokens } from '../bar-chart/tokens';\nimport { buttonTokens } from '../button/tokens';\nimport { cardTokens } from '../card/tokens';\nimport { checkboxTokens } from '../checkbox/tokens';\nimport { commandPaletteTokens } from '../command-palette/tokens';\nimport { containerTokens } from '../container/tokens';\nimport { calendarTokens } from '../date-picker/calendarTokens';\nimport { dialogTokens } from '../dialog/tokens';\nimport { disclosureTokens } from '../disclosure/tokens';\nimport { dividerTokens } from '../divider/tokens';\nimport { inputTokens } from '../field/inputTokens';\nimport { fieldTokens } from '../field/tokens';\nimport { gridTokens } from '../grid/tokens';\nimport { headingTokens } from '../heading/tokens';\nimport { iconTokens } from '../icon/tokens';\nimport { inlineTokens } from '../inline/tokens';\nimport { lineChartTokens } from '../line-chart/tokens';\nimport { menuTokens } from '../menu/tokens';\nimport { meterTokens } from '../meter/tokens';\nimport { numberInputTokens } from '../number-input/tokens';\nimport { pillTriggerTokens } from '../pill-trigger/tokens';\nimport { popoverTokens } from '../popover/tokens';\nimport { proseTokens } from '../prose/tokens';\nimport { radioTokens } from '../radio-group/tokens';\nimport { segmentedControlTokens } from '../segmented-control/tokens';\nimport { listBoxTokens } from '../select/listBoxTokens';\nimport { skeletonTokens } from '../skeleton/tokens';\nimport { sparklineTokens } from '../sparkline/tokens';\nimport { spinnerTokens } from '../spinner/tokens';\nimport { stackTokens } from '../stack/tokens';\nimport { statTokens } from '../stat/tokens';\nimport { switchTokens } from '../switch/tokens';\nimport { tabsTokens } from '../tabs/tokens';\nimport { textTokens } from '../text/tokens';\nimport { toastTokens } from '../toast/tokens';\nimport { tooltipTokens } from '../tooltip/tokens';\nimport { selectedTokens } from './selectedTokens';\n\n/**\n * The component tokens of `@panneau/ui` and their defaults, by component: what a theme, a scope or\n * a project's CSS can set to restyle one component without touching the others (decision 0024).\n */\nexport const componentTokens = Object.freeze({\n alert: alertTokens.tokens,\n aside: asideTokens.tokens,\n badge: badgeTokens.tokens,\n 'bar-chart': barChartTokens.tokens,\n button: buttonTokens.tokens,\n calendar: calendarTokens.tokens,\n card: cardTokens.tokens,\n checkbox: checkboxTokens.tokens,\n 'command-palette': commandPaletteTokens.tokens,\n container: containerTokens.tokens,\n dialog: dialogTokens.tokens,\n disclosure: disclosureTokens.tokens,\n divider: dividerTokens.tokens,\n field: fieldTokens.tokens,\n grid: gridTokens.tokens,\n heading: headingTokens.tokens,\n icon: iconTokens.tokens,\n inline: inlineTokens.tokens,\n input: inputTokens.tokens,\n 'line-chart': lineChartTokens.tokens,\n 'list-box': listBoxTokens.tokens,\n menu: menuTokens.tokens,\n meter: meterTokens.tokens,\n 'number-input': numberInputTokens.tokens,\n 'pill-trigger': pillTriggerTokens.tokens,\n popover: popoverTokens.tokens,\n prose: proseTokens.tokens,\n radio: radioTokens.tokens,\n 'segmented-control': segmentedControlTokens.tokens,\n selected: selectedTokens.tokens,\n skeleton: skeletonTokens.tokens,\n sparkline: sparklineTokens.tokens,\n spinner: spinnerTokens.tokens,\n stack: stackTokens.tokens,\n stat: statTokens.tokens,\n switch: switchTokens.tokens,\n tabs: tabsTokens.tokens,\n text: textTokens.tokens,\n toast: toastTokens.tokens,\n tooltip: tooltipTokens.tokens,\n});\n\n/** The name of a component token of `@panneau/ui`, without the leading `--`. */\nexport type ComponentTokenName = {\n [Component in keyof typeof componentTokens]: keyof (typeof componentTokens)[Component];\n}[keyof typeof componentTokens];\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"components.js","names":["alertTokens","asideTokens","avatarTokens","badgeTokens","barChartTokens","breadcrumbsTokens","buttonGroupTokens","buttonTokens","cardTokens","checkboxTokens","commandPaletteTokens","containerTokens","calendarTokens","dialogTokens","disclosureTokens","dividerTokens","emptyStateTokens","inputTokens","fieldTokens","gridTokens","headingTokens","iconTokens","inlineTokens","lineChartTokens","menuTokens","meterTokens","numberInputTokens","pillTriggerTokens","popoverTokens","proseTokens","radioTokens","segmentedControlTokens","listBoxTokens","skeletonTokens","sparklineTokens","spinnerTokens","stackTokens","statTokens","switchTokens","tabsTokens","textTokens","tileTokens","toastTokens","tooltipTokens","selectedTokens","componentTokens","Object","freeze","alert","tokens","aside","avatar","badge","breadcrumbs","button","calendar","card","checkbox","container","dialog","disclosure","divider","field","grid","heading","icon","inline","input","menu","meter","popover","prose","radio","selected","skeleton","sparkline","spinner","stack","stat","switch","tabs","text","tile","toast","tooltip","ComponentTokenName","Component"],"sources":["../../src/theme/components.ts"],"sourcesContent":["import { alertTokens } from '../alert/tokens';\nimport { asideTokens } from '../aside/tokens';\nimport { avatarTokens } from '../avatar/tokens';\nimport { badgeTokens } from '../badge/tokens';\nimport { barChartTokens } from '../bar-chart/tokens';\nimport { breadcrumbsTokens } from '../breadcrumbs/tokens';\nimport { buttonGroupTokens } from '../button-group/tokens';\nimport { buttonTokens } from '../button/tokens';\nimport { cardTokens } from '../card/tokens';\nimport { checkboxTokens } from '../checkbox/tokens';\nimport { commandPaletteTokens } from '../command-palette/tokens';\nimport { containerTokens } from '../container/tokens';\nimport { calendarTokens } from '../date-picker/calendarTokens';\nimport { dialogTokens } from '../dialog/tokens';\nimport { disclosureTokens } from '../disclosure/tokens';\nimport { dividerTokens } from '../divider/tokens';\nimport { emptyStateTokens } from '../empty-state/tokens';\nimport { inputTokens } from '../field/inputTokens';\nimport { fieldTokens } from '../field/tokens';\nimport { gridTokens } from '../grid/tokens';\nimport { headingTokens } from '../heading/tokens';\nimport { iconTokens } from '../icon/tokens';\nimport { inlineTokens } from '../inline/tokens';\nimport { lineChartTokens } from '../line-chart/tokens';\nimport { menuTokens } from '../menu/tokens';\nimport { meterTokens } from '../meter/tokens';\nimport { numberInputTokens } from '../number-input/tokens';\nimport { pillTriggerTokens } from '../pill-trigger/tokens';\nimport { popoverTokens } from '../popover/tokens';\nimport { proseTokens } from '../prose/tokens';\nimport { radioTokens } from '../radio-group/tokens';\nimport { segmentedControlTokens } from '../segmented-control/tokens';\nimport { listBoxTokens } from '../select/listBoxTokens';\nimport { skeletonTokens } from '../skeleton/tokens';\nimport { sparklineTokens } from '../sparkline/tokens';\nimport { spinnerTokens } from '../spinner/tokens';\nimport { stackTokens } from '../stack/tokens';\nimport { statTokens } from '../stat/tokens';\nimport { switchTokens } from '../switch/tokens';\nimport { tabsTokens } from '../tabs/tokens';\nimport { textTokens } from '../text/tokens';\nimport { tileTokens } from '../tile/tokens';\nimport { toastTokens } from '../toast/tokens';\nimport { tooltipTokens } from '../tooltip/tokens';\nimport { selectedTokens } from './selectedTokens';\n\n/**\n * The component tokens of `@panneau/ui` and their defaults, by component: what a theme, a scope or\n * a project's CSS can set to restyle one component without touching the others (decision 0024).\n */\nexport const componentTokens = Object.freeze({\n alert: alertTokens.tokens,\n aside: asideTokens.tokens,\n avatar: avatarTokens.tokens,\n badge: badgeTokens.tokens,\n 'bar-chart': barChartTokens.tokens,\n breadcrumbs: breadcrumbsTokens.tokens,\n button: buttonTokens.tokens,\n 'button-group': buttonGroupTokens.tokens,\n calendar: calendarTokens.tokens,\n card: cardTokens.tokens,\n checkbox: checkboxTokens.tokens,\n 'command-palette': commandPaletteTokens.tokens,\n container: containerTokens.tokens,\n dialog: dialogTokens.tokens,\n disclosure: disclosureTokens.tokens,\n divider: dividerTokens.tokens,\n 'empty-state': emptyStateTokens.tokens,\n field: fieldTokens.tokens,\n grid: gridTokens.tokens,\n heading: headingTokens.tokens,\n icon: iconTokens.tokens,\n inline: inlineTokens.tokens,\n input: inputTokens.tokens,\n 'line-chart': lineChartTokens.tokens,\n 'list-box': listBoxTokens.tokens,\n menu: menuTokens.tokens,\n meter: meterTokens.tokens,\n 'number-input': numberInputTokens.tokens,\n 'pill-trigger': pillTriggerTokens.tokens,\n popover: popoverTokens.tokens,\n prose: proseTokens.tokens,\n radio: radioTokens.tokens,\n 'segmented-control': segmentedControlTokens.tokens,\n selected: selectedTokens.tokens,\n skeleton: skeletonTokens.tokens,\n sparkline: sparklineTokens.tokens,\n spinner: spinnerTokens.tokens,\n stack: stackTokens.tokens,\n stat: statTokens.tokens,\n switch: switchTokens.tokens,\n tabs: tabsTokens.tokens,\n text: textTokens.tokens,\n tile: tileTokens.tokens,\n toast: toastTokens.tokens,\n tooltip: tooltipTokens.tokens,\n});\n\n/** The name of a component token of `@panneau/ui`, without the leading `--`. */\nexport type ComponentTokenName = {\n [Component in keyof typeof componentTokens]: keyof (typeof componentTokens)[Component];\n}[keyof typeof componentTokens];\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkDA,IAAa6C,kBAAkBC,OAAOC,OAAO;CACzCC,OAAOhD,YAAYiD;CACnBC,OAAOjD,YAAYgD;CACnBE,QAAQjD,aAAa+C;CACrBG,OAAOjD,YAAY8C;CACnB,aAAa7C,eAAe6C;CAC5BI,aAAahD,kBAAkB4C;CAC/BK,QAAQ/C,aAAa0C;CACrB,gBAAgB3C,kBAAkB2C;CAClCM,UAAU3C,eAAeqC;CACzBO,MAAMhD,WAAWyC;CACjBQ,UAAUhD,eAAewC;CACzB,mBAAmBvC,qBAAqBuC;CACxCS,WAAW/C,gBAAgBsC;CAC3BU,QAAQ9C,aAAaoC;CACrBW,YAAY9C,iBAAiBmC;CAC7BY,SAAS9C,cAAckC;CACvB,eAAejC,iBAAiBiC;CAChCa,OAAO5C,YAAY+B;CACnBc,MAAM5C,WAAW8B;CACjBe,SAAS5C,cAAc6B;CACvBgB,MAAM5C,WAAW4B;CACjBiB,QAAQ5C,aAAa2B;CACrBkB,OAAOlD,YAAYgC;CACnB,cAAc1B,gBAAgB0B;CAC9B,YAAYjB,cAAciB;CAC1BmB,MAAM5C,WAAWyB;CACjBoB,OAAO5C,YAAYwB;CACnB,gBAAgBvB,kBAAkBuB;CAClC,gBAAgBtB,kBAAkBsB;CAClCqB,SAAS1C,cAAcqB;CACvBsB,OAAO1C,YAAYoB;CACnBuB,OAAO1C,YAAYmB;CACnB,qBAAqBlB,uBAAuBkB;CAC5CwB,UAAU7B,eAAeK;CACzByB,UAAUzC,eAAegB;CACzB0B,WAAWzC,gBAAgBe;CAC3B2B,SAASzC,cAAcc;CACvB4B,OAAOzC,YAAYa;CACnB6B,MAAMzC,WAAWY;CACjB8B,QAAQzC,aAAaW;CACrB+B,MAAMzC,WAAWU;CACjBgC,MAAMzC,WAAWS;CACjBiC,MAAMzC,WAAWQ;CACjBkC,OAAOzC,YAAYO;CACnBmC,SAASzC,cAAcM;AAC3B,CAAC"}
|