@arun-dev/tokens 0.16.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.css +1 -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
|
+
}
|
package/src/components.css
CHANGED