@arun-dev/tokens 0.15.0 → 0.17.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/package.json +1 -1
- package/src/components/combobox.css +49 -0
- package/src/components/menu.css +24 -0
- package/src/components.css +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arun-dev/tokens",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"description": "Pure-CSS design tokens with white-label brand generation — primitives, brand palettes, semantic layers, and the createBrand() generator",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/* Combobox component tokens — map semantic tokens onto the field, its chips and the list.
|
|
2
|
+
The field matches Input's and the list matches Menu's, but both map from the semantic tier
|
|
3
|
+
directly: overriding --input-* or --menu-* moves only those, and these move only comboboxes. */
|
|
4
|
+
:root {
|
|
5
|
+
/* Field — the bordered box around chips, text, Clear and the chevron */
|
|
6
|
+
--combobox-height: 2.25rem;
|
|
7
|
+
--combobox-padding-inline: var(--space-xs);
|
|
8
|
+
--combobox-padding-block: var(--space-3xs);
|
|
9
|
+
--combobox-gap: var(--space-3xs);
|
|
10
|
+
--combobox-radius: var(--radius-md);
|
|
11
|
+
--combobox-bg: var(--color-bg-primary);
|
|
12
|
+
--combobox-color: var(--color-text-primary);
|
|
13
|
+
--combobox-font-size: var(--text-sm);
|
|
14
|
+
--combobox-placeholder-color: var(--color-text-muted);
|
|
15
|
+
--combobox-border-width: var(--space-px);
|
|
16
|
+
--combobox-border-color: var(--color-border-default);
|
|
17
|
+
--combobox-border-color-hover: var(--color-border-strong);
|
|
18
|
+
--combobox-border-color-focus: var(--color-text-accent);
|
|
19
|
+
--combobox-border-color-invalid: var(--color-status-error);
|
|
20
|
+
--combobox-icon-color: var(--color-text-secondary);
|
|
21
|
+
--combobox-input-min-width: 4rem;
|
|
22
|
+
--combobox-disabled-opacity: 0.5;
|
|
23
|
+
--combobox-duration: var(--duration-fast);
|
|
24
|
+
|
|
25
|
+
/* Chips — one per selected item, with multiple */
|
|
26
|
+
--combobox-chip-remove-size: 1rem;
|
|
27
|
+
--combobox-chip-remove-radius: var(--radius-full);
|
|
28
|
+
--combobox-chip-remove-bg-hover: var(--color-bg-secondary);
|
|
29
|
+
|
|
30
|
+
/* List */
|
|
31
|
+
--combobox-popup-offset: var(--space-2xs);
|
|
32
|
+
--combobox-popup-max-height: 20rem;
|
|
33
|
+
--combobox-popup-padding: var(--space-3xs);
|
|
34
|
+
--combobox-popup-radius: var(--radius-md);
|
|
35
|
+
--combobox-popup-bg: var(--color-bg-primary);
|
|
36
|
+
--combobox-popup-color: var(--color-text-primary);
|
|
37
|
+
--combobox-popup-border-color: var(--color-border-default);
|
|
38
|
+
--combobox-popup-shadow: var(--shadow-lg);
|
|
39
|
+
|
|
40
|
+
/* Item */
|
|
41
|
+
--combobox-item-padding-block: var(--space-2xs);
|
|
42
|
+
--combobox-item-padding-inline: var(--space-xs);
|
|
43
|
+
--combobox-item-radius: var(--radius-sm);
|
|
44
|
+
--combobox-item-bg-highlight: var(--color-bg-secondary);
|
|
45
|
+
--combobox-item-check-color: var(--color-text-accent);
|
|
46
|
+
|
|
47
|
+
/* Empty and Status */
|
|
48
|
+
--combobox-message-color: var(--color-text-muted);
|
|
49
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/* Menu component tokens — map semantic tokens onto the anchored list and its items.
|
|
2
|
+
The panel matches Popover's, but maps from the semantic tier directly: overriding
|
|
3
|
+
--popover-* moves only popovers, and these move only menus. */
|
|
4
|
+
:root {
|
|
5
|
+
--menu-offset: var(--space-2xs);
|
|
6
|
+
--menu-min-width: 10rem;
|
|
7
|
+
--menu-max-width: 20rem;
|
|
8
|
+
--menu-padding: var(--space-3xs);
|
|
9
|
+
--menu-radius: var(--radius-md);
|
|
10
|
+
--menu-bg: var(--color-bg-primary);
|
|
11
|
+
--menu-color: var(--color-text-primary);
|
|
12
|
+
--menu-border-width: var(--space-px);
|
|
13
|
+
--menu-border-color: var(--color-border-default);
|
|
14
|
+
--menu-shadow: var(--shadow-lg);
|
|
15
|
+
--menu-font-size: var(--text-sm);
|
|
16
|
+
--menu-duration: var(--duration-fast);
|
|
17
|
+
|
|
18
|
+
/* Item */
|
|
19
|
+
--menu-item-padding-block: var(--space-2xs);
|
|
20
|
+
--menu-item-padding-inline: var(--space-xs);
|
|
21
|
+
--menu-item-radius: var(--radius-sm);
|
|
22
|
+
--menu-item-bg-highlight: var(--color-bg-secondary);
|
|
23
|
+
--menu-disabled-opacity: 0.5;
|
|
24
|
+
}
|
package/src/components.css
CHANGED
|
@@ -6,8 +6,10 @@
|
|
|
6
6
|
@import './components/badge.css';
|
|
7
7
|
@import './components/button.css';
|
|
8
8
|
@import './components/checkbox.css';
|
|
9
|
+
@import './components/combobox.css';
|
|
9
10
|
@import './components/dialog.css';
|
|
10
11
|
@import './components/input.css';
|
|
12
|
+
@import './components/menu.css';
|
|
11
13
|
@import './components/popover.css';
|
|
12
14
|
@import './components/radio-group.css';
|
|
13
15
|
@import './components/select.css';
|