@scattered-light/base-ui-theme 0.1.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/README.md +19 -0
- package/dist/index.d.ts +103 -0
- package/dist/index.js +313 -0
- package/dist/index.js.map +1 -0
- package/dist/styles/base/borders.css +26 -0
- package/dist/styles/base/breakpoints.css +26 -0
- package/dist/styles/base/colors.css +150 -0
- package/dist/styles/base/global.css +108 -0
- package/dist/styles/base/reset-accessibility.css +119 -0
- package/dist/styles/base/reset.css +451 -0
- package/dist/styles/base/shadows.css +42 -0
- package/dist/styles/base/spacing.css +62 -0
- package/dist/styles/base/transitions.css +29 -0
- package/dist/styles/base/typography.css +63 -0
- package/dist/styles/base/z-index.css +22 -0
- package/dist/styles/components/AGGrid.css +6 -0
- package/dist/styles/components/Accordion.css +184 -0
- package/dist/styles/components/AlertDialog.css +172 -0
- package/dist/styles/components/Autocomplete.css +261 -0
- package/dist/styles/components/Avatar.css +154 -0
- package/dist/styles/components/Button.css +164 -0
- package/dist/styles/components/Checkbox.css +199 -0
- package/dist/styles/components/CheckboxGroup.css +21 -0
- package/dist/styles/components/Collapsible.css +115 -0
- package/dist/styles/components/Combobox.css +514 -0
- package/dist/styles/components/ContextMenu.css +209 -0
- package/dist/styles/components/Dialog.css +159 -0
- package/dist/styles/components/Field.css +138 -0
- package/dist/styles/components/Fieldset.css +48 -0
- package/dist/styles/components/Form.css +22 -0
- package/dist/styles/components/Input.css +106 -0
- package/dist/styles/components/Menu.css +158 -0
- package/dist/styles/components/Menubar.css +201 -0
- package/dist/styles/components/Meter.css +104 -0
- package/dist/styles/components/NavigationMenu.css +469 -0
- package/dist/styles/components/NumberField.css +182 -0
- package/dist/styles/components/Popover.css +167 -0
- package/dist/styles/components/PreviewCard.css +148 -0
- package/dist/styles/components/Progress.css +130 -0
- package/dist/styles/components/Radio.css +178 -0
- package/dist/styles/components/ScrollArea.css +103 -0
- package/dist/styles/components/Select.css +297 -0
- package/dist/styles/components/Separator.css +34 -0
- package/dist/styles/components/Slider.css +163 -0
- package/dist/styles/components/Switch.css +197 -0
- package/dist/styles/components/Tabs.css +163 -0
- package/dist/styles/components/Toast.css +261 -0
- package/dist/styles/components/Toggle.css +103 -0
- package/dist/styles/components/ToggleGroup.css +19 -0
- package/dist/styles/components/Toolbar.css +78 -0
- package/dist/styles/components/Tooltip.css +87 -0
- package/dist/styles/index.css +103 -0
- package/dist/styles/semantic/accessibility.css +77 -0
- package/dist/styles/semantic/accordion.css +102 -0
- package/dist/styles/semantic/ag-grid.css +114 -0
- package/dist/styles/semantic/alert-dialog.css +78 -0
- package/dist/styles/semantic/autocomplete.css +162 -0
- package/dist/styles/semantic/avatar.css +96 -0
- package/dist/styles/semantic/badge.css +16 -0
- package/dist/styles/semantic/button.css +145 -0
- package/dist/styles/semantic/card.css +14 -0
- package/dist/styles/semantic/checkbox-group.css +18 -0
- package/dist/styles/semantic/checkbox.css +117 -0
- package/dist/styles/semantic/collapsible.css +123 -0
- package/dist/styles/semantic/combobox.css +325 -0
- package/dist/styles/semantic/context-menu.css +131 -0
- package/dist/styles/semantic/dialog.css +91 -0
- package/dist/styles/semantic/dropdown.css +16 -0
- package/dist/styles/semantic/field.css +73 -0
- package/dist/styles/semantic/fieldset.css +45 -0
- package/dist/styles/semantic/form.css +20 -0
- package/dist/styles/semantic/input.css +83 -0
- package/dist/styles/semantic/menu.css +104 -0
- package/dist/styles/semantic/menubar.css +70 -0
- package/dist/styles/semantic/meter.css +88 -0
- package/dist/styles/semantic/modal.css +14 -0
- package/dist/styles/semantic/navigation-menu.css +171 -0
- package/dist/styles/semantic/number-field.css +142 -0
- package/dist/styles/semantic/popover.css +113 -0
- package/dist/styles/semantic/preview-card.css +108 -0
- package/dist/styles/semantic/progress.css +85 -0
- package/dist/styles/semantic/radio.css +103 -0
- package/dist/styles/semantic/scroll-area.css +64 -0
- package/dist/styles/semantic/select.css +197 -0
- package/dist/styles/semantic/separator.css +37 -0
- package/dist/styles/semantic/slider.css +120 -0
- package/dist/styles/semantic/switch.css +158 -0
- package/dist/styles/semantic/tabs.css +150 -0
- package/dist/styles/semantic/toast.css +171 -0
- package/dist/styles/semantic/toggle-group.css +29 -0
- package/dist/styles/semantic/toggle.css +94 -0
- package/dist/styles/semantic/toolbar.css +47 -0
- package/dist/styles/semantic/tooltip.css +56 -0
- package/dist/styles/theme/README.md +179 -0
- package/dist/styles/theme/theme-accessibility.css +13 -0
- package/dist/styles/theme/theme-primitives.css +7 -0
- package/dist/styles/theme/theme-radius.css +12 -0
- package/dist/styles/theme/theme-roles.css +66 -0
- package/dist/styles/theme/theme-spacing.css +28 -0
- package/dist/styles/theme/theme-stroke.css +7 -0
- package/dist/styles/theme/theme-typography.css +218 -0
- package/dist/styles/utilities/color-styles.css +34 -0
- package/dist/styles/utilities/layout-styles.css +19 -0
- package/dist/styles/utilities/text-styles.css +102 -0
- package/package.json +75 -0
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
/* Avatar - Mojave Theme */
|
|
2
|
+
|
|
3
|
+
/* ============================================
|
|
4
|
+
ROOT CONTAINER
|
|
5
|
+
============================================ */
|
|
6
|
+
|
|
7
|
+
.AvatarRoot {
|
|
8
|
+
display: var(--avatar-root-display);
|
|
9
|
+
align-items: var(--avatar-root-align-items);
|
|
10
|
+
justify-content: var(--avatar-root-justify-content);
|
|
11
|
+
width: var(--avatar-root-size);
|
|
12
|
+
height: var(--avatar-root-size);
|
|
13
|
+
border-radius: var(--avatar-root-border-radius);
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
background: var(--avatar-root-bg);
|
|
16
|
+
border: var(--avatar-root-border-width) solid var(--avatar-root-border-color);
|
|
17
|
+
box-shadow: var(--avatar-root-shadow);
|
|
18
|
+
flex-shrink: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/* ============================================
|
|
22
|
+
IMAGE
|
|
23
|
+
============================================ */
|
|
24
|
+
|
|
25
|
+
.AvatarImage {
|
|
26
|
+
width: var(--avatar-image-width);
|
|
27
|
+
height: var(--avatar-image-height);
|
|
28
|
+
object-fit: var(--avatar-image-object-fit);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/* ============================================
|
|
32
|
+
FALLBACK
|
|
33
|
+
============================================ */
|
|
34
|
+
|
|
35
|
+
.AvatarFallback {
|
|
36
|
+
display: var(--avatar-fallback-display);
|
|
37
|
+
align-items: var(--avatar-fallback-align-items);
|
|
38
|
+
justify-content: var(--avatar-fallback-justify-content);
|
|
39
|
+
width: var(--avatar-fallback-width);
|
|
40
|
+
height: var(--avatar-fallback-height);
|
|
41
|
+
background: var(--avatar-fallback-bg);
|
|
42
|
+
color: var(--avatar-fallback-color);
|
|
43
|
+
font-family: var(--avatar-fallback-font-family);
|
|
44
|
+
font-size: var(--avatar-fallback-font-size);
|
|
45
|
+
font-weight: var(--avatar-fallback-font-weight);
|
|
46
|
+
line-height: var(--avatar-fallback-line-height);
|
|
47
|
+
letter-spacing: var(--avatar-fallback-letter-spacing);
|
|
48
|
+
text-transform: var(--avatar-fallback-text-transform);
|
|
49
|
+
user-select: var(--avatar-fallback-user-select);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* ============================================
|
|
53
|
+
SIZE VARIANTS
|
|
54
|
+
============================================ */
|
|
55
|
+
|
|
56
|
+
.AvatarRoot[data-size='xs'] {
|
|
57
|
+
width: var(--avatar-size-xs);
|
|
58
|
+
height: var(--avatar-size-xs);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.AvatarRoot[data-size='xs'] .AvatarFallback {
|
|
62
|
+
font-family: var(--avatar-font-family-xs);
|
|
63
|
+
font-size: var(--avatar-font-size-xs);
|
|
64
|
+
font-weight: var(--avatar-font-weight-xs);
|
|
65
|
+
line-height: var(--avatar-line-height-xs);
|
|
66
|
+
letter-spacing: var(--avatar-letter-spacing-xs);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.AvatarRoot[data-size='sm'] {
|
|
70
|
+
width: var(--avatar-size-sm);
|
|
71
|
+
height: var(--avatar-size-sm);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.AvatarRoot[data-size='sm'] .AvatarFallback {
|
|
75
|
+
font-family: var(--avatar-font-family-sm);
|
|
76
|
+
font-size: var(--avatar-font-size-sm);
|
|
77
|
+
font-weight: var(--avatar-font-weight-sm);
|
|
78
|
+
line-height: var(--avatar-line-height-sm);
|
|
79
|
+
letter-spacing: var(--avatar-letter-spacing-sm);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.AvatarRoot[data-size='md'] {
|
|
83
|
+
width: var(--avatar-size-md);
|
|
84
|
+
height: var(--avatar-size-md);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.AvatarRoot[data-size='md'] .AvatarFallback {
|
|
88
|
+
font-family: var(--avatar-font-family-md);
|
|
89
|
+
font-size: var(--avatar-font-size-md);
|
|
90
|
+
font-weight: var(--avatar-font-weight-md);
|
|
91
|
+
line-height: var(--avatar-line-height-md);
|
|
92
|
+
letter-spacing: var(--avatar-letter-spacing-md);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.AvatarRoot[data-size='lg'] {
|
|
96
|
+
width: var(--avatar-size-lg);
|
|
97
|
+
height: var(--avatar-size-lg);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.AvatarRoot[data-size='lg'] .AvatarFallback {
|
|
101
|
+
font-family: var(--avatar-font-family-lg);
|
|
102
|
+
font-size: var(--avatar-font-size-lg);
|
|
103
|
+
font-weight: var(--avatar-font-weight-lg);
|
|
104
|
+
line-height: var(--avatar-line-height-lg);
|
|
105
|
+
letter-spacing: var(--avatar-letter-spacing-lg);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.AvatarRoot[data-size='xl'] {
|
|
109
|
+
width: var(--avatar-size-xl);
|
|
110
|
+
height: var(--avatar-size-xl);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.AvatarRoot[data-size='xl'] .AvatarFallback {
|
|
114
|
+
font-family: var(--avatar-font-family-xl);
|
|
115
|
+
font-size: var(--avatar-font-size-xl);
|
|
116
|
+
font-weight: var(--avatar-font-weight-xl);
|
|
117
|
+
line-height: var(--avatar-line-height-xl);
|
|
118
|
+
letter-spacing: var(--avatar-letter-spacing-xl);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/* ============================================
|
|
122
|
+
AVATAR GROUP
|
|
123
|
+
============================================ */
|
|
124
|
+
|
|
125
|
+
.AvatarGroup {
|
|
126
|
+
display: flex;
|
|
127
|
+
align-items: center;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.AvatarGroup .AvatarRoot {
|
|
131
|
+
margin-inline-start: calc(var(--avatar-root-size) * -0.33);
|
|
132
|
+
border: 3px solid var(--color-glare);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.AvatarGroup .AvatarRoot:first-child {
|
|
136
|
+
margin-inline-start: 0;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.AvatarGroup .AvatarRoot:hover {
|
|
140
|
+
z-index: 1;
|
|
141
|
+
transform: translateY(-2px);
|
|
142
|
+
transition: transform 0.2s ease;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/* ============================================
|
|
146
|
+
REDUCED MOTION
|
|
147
|
+
============================================ */
|
|
148
|
+
|
|
149
|
+
@media (prefers-reduced-motion: reduce) {
|
|
150
|
+
.AvatarGroup .AvatarRoot:hover {
|
|
151
|
+
transform: none;
|
|
152
|
+
transition: none;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
/* Button - Mojave Theme */
|
|
2
|
+
|
|
3
|
+
/* ============================================
|
|
4
|
+
BASE BUTTON
|
|
5
|
+
============================================ */
|
|
6
|
+
|
|
7
|
+
.Button {
|
|
8
|
+
display: var(--button-display);
|
|
9
|
+
align-items: var(--button-align-items);
|
|
10
|
+
justify-content: var(--button-justify-content);
|
|
11
|
+
gap: var(--button-gap);
|
|
12
|
+
height: var(--button-height);
|
|
13
|
+
padding-inline: var(--button-padding-inline);
|
|
14
|
+
font-family: var(--button-font-family);
|
|
15
|
+
font-size: var(--button-font-size);
|
|
16
|
+
font-weight: var(--button-font-weight);
|
|
17
|
+
line-height: var(--button-line-height);
|
|
18
|
+
letter-spacing: var(--button-letter-spacing);
|
|
19
|
+
border-radius: var(--button-border-radius);
|
|
20
|
+
border-width: var(--button-border-width);
|
|
21
|
+
border-style: solid;
|
|
22
|
+
transition: var(--button-transition);
|
|
23
|
+
cursor: var(--button-cursor);
|
|
24
|
+
outline: none;
|
|
25
|
+
text-decoration: none;
|
|
26
|
+
white-space: nowrap;
|
|
27
|
+
user-select: none;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* ============================================
|
|
31
|
+
SOLID VARIANT (default)
|
|
32
|
+
============================================ */
|
|
33
|
+
|
|
34
|
+
.Button[data-variant="solid"],
|
|
35
|
+
.Button:not([data-variant]) {
|
|
36
|
+
background: var(--button-solid-bg);
|
|
37
|
+
color: var(--button-solid-color);
|
|
38
|
+
border-color: var(--button-solid-border-color);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.Button[data-variant="solid"]:hover:not(:disabled):not([aria-disabled="true"]),
|
|
42
|
+
.Button:not([data-variant]):hover:not(:disabled):not([aria-disabled="true"]) {
|
|
43
|
+
background: var(--button-solid-bg-hover);
|
|
44
|
+
border-color: var(--button-solid-border-color-hover);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.Button[data-variant="solid"]:active:not(:disabled):not([aria-disabled="true"]),
|
|
48
|
+
.Button:not([data-variant]):active:not(:disabled):not([aria-disabled="true"]) {
|
|
49
|
+
background: var(--button-solid-bg-active);
|
|
50
|
+
border-color: var(--button-solid-border-color-active);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.Button[data-variant="solid"]:focus-visible,
|
|
54
|
+
.Button:not([data-variant]):focus-visible {
|
|
55
|
+
box-shadow: var(--button-solid-shadow-focus);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* ============================================
|
|
59
|
+
OUTLINE VARIANT
|
|
60
|
+
============================================ */
|
|
61
|
+
|
|
62
|
+
.Button[data-variant="outline"] {
|
|
63
|
+
background: var(--button-outline-bg);
|
|
64
|
+
color: var(--button-outline-color);
|
|
65
|
+
border-color: var(--button-outline-border-color);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.Button[data-variant="outline"]:hover:not(:disabled):not([aria-disabled="true"]) {
|
|
69
|
+
background: var(--button-outline-bg-hover);
|
|
70
|
+
color: var(--button-outline-color-hover);
|
|
71
|
+
border-color: var(--button-outline-border-color-hover);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.Button[data-variant="outline"]:active:not(:disabled):not([aria-disabled="true"]) {
|
|
75
|
+
background: var(--button-outline-bg-active);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.Button[data-variant="outline"]:focus-visible {
|
|
79
|
+
box-shadow: var(--button-outline-shadow-focus);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/* ============================================
|
|
83
|
+
GHOST VARIANT
|
|
84
|
+
============================================ */
|
|
85
|
+
|
|
86
|
+
.Button[data-variant="ghost"] {
|
|
87
|
+
background: var(--button-ghost-bg);
|
|
88
|
+
color: var(--button-ghost-color);
|
|
89
|
+
border-color: var(--button-ghost-border-color);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.Button[data-variant="ghost"]:hover:not(:disabled):not([aria-disabled="true"]) {
|
|
93
|
+
background: var(--button-ghost-bg-hover);
|
|
94
|
+
color: var(--button-ghost-color-hover);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.Button[data-variant="ghost"]:active:not(:disabled):not([aria-disabled="true"]) {
|
|
98
|
+
background: var(--button-ghost-bg-active);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.Button[data-variant="ghost"]:focus-visible {
|
|
102
|
+
box-shadow: var(--button-ghost-shadow-focus);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/* ============================================
|
|
106
|
+
DISABLED STATE
|
|
107
|
+
============================================ */
|
|
108
|
+
|
|
109
|
+
.Button:disabled,
|
|
110
|
+
.Button[aria-disabled="true"] {
|
|
111
|
+
opacity: var(--button-disabled-opacity);
|
|
112
|
+
cursor: var(--button-disabled-cursor);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/* ============================================
|
|
116
|
+
SIZE VARIANTS
|
|
117
|
+
============================================ */
|
|
118
|
+
|
|
119
|
+
.Button[data-size="sm"] {
|
|
120
|
+
height: var(--button-height-sm);
|
|
121
|
+
padding-inline: var(--button-padding-inline-sm);
|
|
122
|
+
font-family: var(--button-font-family-sm);
|
|
123
|
+
font-size: var(--button-font-size-sm);
|
|
124
|
+
font-weight: var(--button-font-weight-sm);
|
|
125
|
+
line-height: var(--button-line-height-sm);
|
|
126
|
+
letter-spacing: var(--button-letter-spacing-sm);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.Button[data-size="lg"] {
|
|
130
|
+
height: var(--button-height-lg);
|
|
131
|
+
padding-inline: var(--button-padding-inline-lg);
|
|
132
|
+
font-family: var(--button-font-family-lg);
|
|
133
|
+
font-size: var(--button-font-size-lg);
|
|
134
|
+
font-weight: var(--button-font-weight-lg);
|
|
135
|
+
line-height: var(--button-line-height-lg);
|
|
136
|
+
letter-spacing: var(--button-letter-spacing-lg);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/* Extra Small */
|
|
140
|
+
.Button[data-size='xs'] {
|
|
141
|
+
height: var(--button-height-xs);
|
|
142
|
+
padding-inline: var(--button-padding-inline-xs);
|
|
143
|
+
font-family: var(--button-font-family-xs);
|
|
144
|
+
font-size: var(--button-font-size-xs);
|
|
145
|
+
font-weight: var(--button-font-weight-xs);
|
|
146
|
+
line-height: var(--button-line-height-xs);
|
|
147
|
+
letter-spacing: var(--button-letter-spacing-xs);
|
|
148
|
+
gap: var(--button-gap-xs);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.Button[data-size='xs'] svg {
|
|
152
|
+
width: var(--button-icon-size-xs);
|
|
153
|
+
height: var(--button-icon-size-xs);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/* ============================================
|
|
157
|
+
REDUCED MOTION
|
|
158
|
+
============================================ */
|
|
159
|
+
|
|
160
|
+
@media (prefers-reduced-motion: reduce) {
|
|
161
|
+
.Button {
|
|
162
|
+
transition: none;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
/* Checkbox - Mojave Theme */
|
|
2
|
+
|
|
3
|
+
/* ============================================
|
|
4
|
+
LABEL WRAPPER
|
|
5
|
+
============================================ */
|
|
6
|
+
|
|
7
|
+
.CheckboxLabel {
|
|
8
|
+
display: var(--checkbox-root-display);
|
|
9
|
+
align-items: var(--checkbox-root-align-items);
|
|
10
|
+
gap: var(--checkbox-root-gap);
|
|
11
|
+
cursor: var(--checkbox-label-cursor);
|
|
12
|
+
font-family: var(--checkbox-label-font-family);
|
|
13
|
+
font-size: var(--checkbox-label-font-size);
|
|
14
|
+
font-weight: var(--checkbox-label-font-weight);
|
|
15
|
+
line-height: var(--checkbox-label-line-height);
|
|
16
|
+
letter-spacing: var(--checkbox-label-letter-spacing);
|
|
17
|
+
color: var(--checkbox-label-color);
|
|
18
|
+
user-select: none;
|
|
19
|
+
min-height: 44px; /* Ensure consistent tap target */
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/* ============================================
|
|
23
|
+
CHECKBOX ROOT (the actual checkbox button)
|
|
24
|
+
============================================ */
|
|
25
|
+
|
|
26
|
+
.CheckboxRoot {
|
|
27
|
+
all: unset;
|
|
28
|
+
box-sizing: border-box;
|
|
29
|
+
width: var(--checkbox-indicator-size);
|
|
30
|
+
height: var(--checkbox-indicator-size);
|
|
31
|
+
border-radius: var(--checkbox-indicator-border-radius);
|
|
32
|
+
border: var(--checkbox-indicator-border-width) solid var(--checkbox-indicator-border-color);
|
|
33
|
+
background: var(--checkbox-indicator-bg);
|
|
34
|
+
transition: var(--checkbox-indicator-transition);
|
|
35
|
+
display: inline-flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
justify-content: center;
|
|
38
|
+
flex-shrink: 0;
|
|
39
|
+
cursor: pointer;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.CheckboxRoot:hover {
|
|
43
|
+
border-color: var(--checkbox-indicator-border-color-hover);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.CheckboxRoot:focus-visible {
|
|
47
|
+
outline: none;
|
|
48
|
+
box-shadow: var(--checkbox-indicator-shadow-focus);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* ============================================
|
|
52
|
+
CHECKED STATE (using data-checked attribute)
|
|
53
|
+
============================================ */
|
|
54
|
+
|
|
55
|
+
.CheckboxRoot[data-checked] {
|
|
56
|
+
background: var(--checkbox-indicator-bg-checked);
|
|
57
|
+
border-color: var(--checkbox-indicator-border-color-checked);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/* ============================================
|
|
61
|
+
INDETERMINATE STATE
|
|
62
|
+
============================================ */
|
|
63
|
+
|
|
64
|
+
.CheckboxRoot[data-indeterminate] {
|
|
65
|
+
background: var(--checkbox-indicator-bg-checked);
|
|
66
|
+
border-color: var(--checkbox-indicator-border-color-checked);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* ============================================
|
|
70
|
+
DISABLED STATE
|
|
71
|
+
============================================ */
|
|
72
|
+
|
|
73
|
+
.CheckboxRoot[data-disabled] {
|
|
74
|
+
opacity: var(--checkbox-indicator-opacity-disabled);
|
|
75
|
+
cursor: var(--checkbox-indicator-cursor-disabled);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.CheckboxLabel:has(.CheckboxRoot[data-disabled]) {
|
|
79
|
+
color: var(--checkbox-label-color-disabled);
|
|
80
|
+
cursor: var(--checkbox-label-cursor-disabled);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/* ============================================
|
|
84
|
+
CHECKBOX INDICATOR (only renders when checked)
|
|
85
|
+
============================================ */
|
|
86
|
+
|
|
87
|
+
.CheckboxIndicator {
|
|
88
|
+
display: flex;
|
|
89
|
+
align-items: center;
|
|
90
|
+
justify-content: center;
|
|
91
|
+
width: 100%;
|
|
92
|
+
height: 100%;
|
|
93
|
+
color: var(--checkbox-icon-color);
|
|
94
|
+
line-height: 0; /* Prevent line-height from affecting layout */
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* ============================================
|
|
98
|
+
CHECKBOX ICON
|
|
99
|
+
============================================ */
|
|
100
|
+
|
|
101
|
+
.CheckboxIcon {
|
|
102
|
+
width: var(--checkbox-icon-size);
|
|
103
|
+
height: var(--checkbox-icon-size);
|
|
104
|
+
fill: currentColor;
|
|
105
|
+
display: block; /* Prevent inline spacing issues */
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/* ============================================
|
|
109
|
+
SIZE VARIANTS
|
|
110
|
+
============================================ */
|
|
111
|
+
|
|
112
|
+
.CheckboxRoot[data-size='sm'] {
|
|
113
|
+
width: var(--checkbox-size-sm);
|
|
114
|
+
height: var(--checkbox-size-sm);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.CheckboxRoot[data-size='sm'] .CheckboxIcon {
|
|
118
|
+
width: var(--checkbox-icon-size-sm);
|
|
119
|
+
height: var(--checkbox-icon-size-sm);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.CheckboxLabel:has(.CheckboxRoot[data-size='sm']) {
|
|
123
|
+
font-family: var(--checkbox-label-font-family-sm);
|
|
124
|
+
font-size: var(--checkbox-label-font-size-sm);
|
|
125
|
+
font-weight: var(--checkbox-label-font-weight-sm);
|
|
126
|
+
line-height: var(--checkbox-label-line-height-sm);
|
|
127
|
+
letter-spacing: var(--checkbox-label-letter-spacing-sm);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.CheckboxRoot[data-size='lg'] {
|
|
131
|
+
width: var(--checkbox-size-lg);
|
|
132
|
+
height: var(--checkbox-size-lg);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.CheckboxRoot[data-size='lg'] .CheckboxIcon {
|
|
136
|
+
width: var(--checkbox-icon-size-lg);
|
|
137
|
+
height: var(--checkbox-icon-size-lg);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.CheckboxLabel:has(.CheckboxRoot[data-size='lg']) {
|
|
141
|
+
font-family: var(--checkbox-label-font-family-lg);
|
|
142
|
+
font-size: var(--checkbox-label-font-size-lg);
|
|
143
|
+
font-weight: var(--checkbox-label-font-weight-lg);
|
|
144
|
+
line-height: var(--checkbox-label-line-height-lg);
|
|
145
|
+
letter-spacing: var(--checkbox-label-letter-spacing-lg);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/* ============================================
|
|
149
|
+
STYLE VARIANTS
|
|
150
|
+
============================================ */
|
|
151
|
+
|
|
152
|
+
/* Outline variant */
|
|
153
|
+
.CheckboxRoot[data-variant='outline'] {
|
|
154
|
+
background: var(--checkbox-outline-bg);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.CheckboxRoot[data-variant='outline'][data-checked] {
|
|
158
|
+
background: var(--checkbox-outline-checked-bg);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.CheckboxRoot[data-variant='outline'][data-checked] .CheckboxIndicator {
|
|
162
|
+
color: var(--checkbox-outline-checked-icon-color);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.CheckboxRoot[data-variant='outline'][data-disabled][data-checked] .CheckboxIndicator {
|
|
166
|
+
color: var(--checkbox-outline-disabled-checked-icon-color);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/* Circular variant */
|
|
170
|
+
.CheckboxRoot[data-variant='circular'],
|
|
171
|
+
.CheckboxRoot[data-variant='circular-outline'] {
|
|
172
|
+
border-radius: var(--checkbox-circular-border-radius);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.CheckboxRoot[data-variant='circular-outline'] {
|
|
176
|
+
background: var(--checkbox-outline-bg);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.CheckboxRoot[data-variant='circular-outline'][data-checked] {
|
|
180
|
+
background: var(--checkbox-outline-checked-bg);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.CheckboxRoot[data-variant='circular-outline'][data-checked] .CheckboxIndicator {
|
|
184
|
+
color: var(--checkbox-outline-checked-icon-color);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.CheckboxRoot[data-variant='circular-outline'][data-disabled][data-checked] .CheckboxIndicator {
|
|
188
|
+
color: var(--checkbox-outline-disabled-checked-icon-color);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/* ============================================
|
|
192
|
+
REDUCED MOTION
|
|
193
|
+
============================================ */
|
|
194
|
+
|
|
195
|
+
@media (prefers-reduced-motion: reduce) {
|
|
196
|
+
.CheckboxRoot {
|
|
197
|
+
transition: none;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/* Checkbox Group - Mojave Theme */
|
|
2
|
+
|
|
3
|
+
/* ============================================
|
|
4
|
+
GROUP WRAPPER
|
|
5
|
+
============================================ */
|
|
6
|
+
|
|
7
|
+
.CheckboxGroup {
|
|
8
|
+
display: var(--checkbox-group-display);
|
|
9
|
+
flex-direction: var(--checkbox-group-flex-direction);
|
|
10
|
+
gap: var(--checkbox-group-gap);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/* ============================================
|
|
14
|
+
DISABLED STATE
|
|
15
|
+
============================================ */
|
|
16
|
+
|
|
17
|
+
.CheckboxGroup[data-disabled] {
|
|
18
|
+
opacity: var(--checkbox-group-disabled-opacity);
|
|
19
|
+
cursor: var(--checkbox-group-disabled-cursor);
|
|
20
|
+
pointer-events: none;
|
|
21
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/* Collapsible - Mojave Theme */
|
|
2
|
+
|
|
3
|
+
.Collapsible {
|
|
4
|
+
display: var(--collapsible-root-display);
|
|
5
|
+
width: var(--collapsible-root-width);
|
|
6
|
+
min-height: var(--collapsible-root-min-height);
|
|
7
|
+
flex-direction: var(--collapsible-root-flex-direction);
|
|
8
|
+
justify-content: var(--collapsible-root-justify-content);
|
|
9
|
+
color: var(--collapsible-root-color);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.CollapsibleIcon {
|
|
13
|
+
width: var(--collapsible-icon-size);
|
|
14
|
+
height: var(--collapsible-icon-size);
|
|
15
|
+
font-size: var(--collapsible-icon-size);
|
|
16
|
+
transition: var(--collapsible-icon-transition);
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
justify-content: center;
|
|
20
|
+
line-height: 1;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.CollapsibleTrigger {
|
|
24
|
+
display: var(--collapsible-trigger-display);
|
|
25
|
+
align-items: var(--collapsible-trigger-align-items);
|
|
26
|
+
gap: var(--collapsible-trigger-gap);
|
|
27
|
+
margin: var(--collapsible-trigger-margin);
|
|
28
|
+
border: var(--collapsible-trigger-border);
|
|
29
|
+
outline: var(--collapsible-trigger-outline);
|
|
30
|
+
padding: var(--collapsible-trigger-padding);
|
|
31
|
+
border-radius: var(--collapsible-trigger-border-radius);
|
|
32
|
+
background-color: var(--collapsible-trigger-background-default);
|
|
33
|
+
color: var(--collapsible-trigger-color);
|
|
34
|
+
font-family: var(--collapsible-trigger-font-family);
|
|
35
|
+
font-size: var(--collapsible-trigger-font-size);
|
|
36
|
+
line-height: var(--collapsible-trigger-line-height);
|
|
37
|
+
font-weight: var(--collapsible-trigger-font-weight);
|
|
38
|
+
letter-spacing: var(--collapsible-trigger-letter-spacing);
|
|
39
|
+
cursor: var(--collapsible-trigger-cursor);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@media (hover: hover) {
|
|
43
|
+
.CollapsibleTrigger:hover {
|
|
44
|
+
background-color: var(--collapsible-trigger-background-hover);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.CollapsibleTrigger:active {
|
|
49
|
+
background-color: var(--collapsible-trigger-background-active);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.CollapsibleTrigger:focus-visible {
|
|
53
|
+
outline: var(--collapsible-trigger-focus-outline);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.CollapsibleTrigger[data-panel-open] .CollapsibleIcon {
|
|
57
|
+
transform: rotate(90deg);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.CollapsiblePanel {
|
|
61
|
+
display: var(--collapsible-panel-display);
|
|
62
|
+
height: var(--collapsible-panel-height);
|
|
63
|
+
flex-direction: var(--collapsible-panel-flex-direction);
|
|
64
|
+
justify-content: var(--collapsible-panel-justify-content);
|
|
65
|
+
overflow: var(--collapsible-panel-overflow);
|
|
66
|
+
font-family: var(--collapsible-panel-font-family);
|
|
67
|
+
font-size: var(--collapsible-panel-font-size);
|
|
68
|
+
font-weight: var(--collapsible-panel-font-weight);
|
|
69
|
+
line-height: var(--collapsible-panel-line-height);
|
|
70
|
+
letter-spacing: var(--collapsible-panel-letter-spacing);
|
|
71
|
+
transition: var(--collapsible-panel-transition);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.CollapsiblePanel[hidden]:not([hidden='until-found']) {
|
|
75
|
+
display: none;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.CollapsiblePanel[data-starting-style],
|
|
79
|
+
.CollapsiblePanel[data-ending-style] {
|
|
80
|
+
height: 0;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.CollapsibleContent {
|
|
84
|
+
display: var(--collapsible-content-display);
|
|
85
|
+
flex-direction: var(--collapsible-content-flex-direction);
|
|
86
|
+
gap: var(--collapsible-content-gap);
|
|
87
|
+
margin-top: var(--collapsible-content-margin-top);
|
|
88
|
+
padding: var(--collapsible-content-padding);
|
|
89
|
+
border-radius: var(--collapsible-content-border-radius);
|
|
90
|
+
background-color: var(--collapsible-content-background);
|
|
91
|
+
color: var(--collapsible-content-color);
|
|
92
|
+
cursor: var(--collapsible-content-cursor);
|
|
93
|
+
font-family: var(--collapsible-content-font-family);
|
|
94
|
+
font-size: var(--collapsible-content-font-size);
|
|
95
|
+
font-weight: var(--collapsible-content-font-weight);
|
|
96
|
+
line-height: var(--collapsible-content-line-height);
|
|
97
|
+
letter-spacing: var(--collapsible-content-letter-spacing);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.CollapsibleContent p {
|
|
101
|
+
margin: 0;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.CollapsibleContent code {
|
|
105
|
+
display: block;
|
|
106
|
+
margin-top: var(--collapsible-panel-code-margin-top);
|
|
107
|
+
padding: var(--collapsible-panel-code-padding);
|
|
108
|
+
border-radius: var(--collapsible-panel-code-border-radius);
|
|
109
|
+
background: var(--collapsible-panel-code-background);
|
|
110
|
+
font-family: var(--collapsible-panel-code-font-family);
|
|
111
|
+
font-size: var(--collapsible-panel-code-font-size);
|
|
112
|
+
font-weight: var(--collapsible-panel-code-font-weight);
|
|
113
|
+
line-height: var(--collapsible-panel-code-line-height);
|
|
114
|
+
letter-spacing: var(--collapsible-panel-code-letter-spacing);
|
|
115
|
+
}
|