@ropav/styles 0.4.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/README.md +89 -5
- package/dist/components/accordion.css +6 -14
- package/dist/components/alert-dialog.css +1 -13
- package/dist/components/alert.css +1 -1
- package/dist/components/autocomplete/autocomplete.styles.d.ts +33 -0
- package/dist/components/autocomplete/autocomplete.styles.d.ts.map +1 -1
- package/dist/components/autocomplete/autocomplete.styles.js +12 -0
- package/dist/components/autocomplete.css +54 -36
- package/dist/components/breadcrumbs.css +9 -2
- package/dist/components/button-group.css +6 -10
- package/dist/components/button.css +10 -18
- package/dist/components/calendar-year-picker.css +20 -8
- package/dist/components/calendar.css +46 -21
- package/dist/components/card.css +1 -1
- package/dist/components/checkbox.css +54 -56
- package/dist/components/chip.css +3 -1
- package/dist/components/close-button.css +7 -6
- package/dist/components/color-area.css +6 -6
- package/dist/components/color-input-group/color-input-group.styles.d.ts +27 -0
- package/dist/components/color-input-group/color-input-group.styles.d.ts.map +1 -1
- package/dist/components/color-input-group/color-input-group.styles.js +6 -0
- package/dist/components/color-input-group.css +31 -28
- package/dist/components/color-picker.css +1 -5
- package/dist/components/color-slider.css +14 -12
- package/dist/components/color-swatch-picker.css +2 -85
- package/dist/components/color-swatch.css +1 -1
- package/dist/components/combo-box/combo-box.styles.d.ts +27 -0
- package/dist/components/combo-box/combo-box.styles.d.ts.map +1 -1
- package/dist/components/combo-box/combo-box.styles.js +17 -7
- package/dist/components/combo-box.css +34 -4
- package/dist/components/date-input-group/date-input-group.styles.d.ts +27 -0
- package/dist/components/date-input-group/date-input-group.styles.d.ts.map +1 -1
- package/dist/components/date-input-group/date-input-group.styles.js +6 -0
- package/dist/components/date-input-group.css +55 -33
- package/dist/components/date-picker.css +1 -5
- package/dist/components/date-range-picker.css +1 -5
- package/dist/components/disclosure.css +0 -4
- package/dist/components/drawer.css +4 -8
- package/dist/components/drop-zone/drop-zone.styles.d.ts +34 -0
- package/dist/components/drop-zone/drop-zone.styles.d.ts.map +1 -0
- package/dist/components/drop-zone/drop-zone.styles.js +8 -0
- package/dist/components/drop-zone/index.d.ts +2 -0
- package/dist/components/drop-zone/index.d.ts.map +1 -0
- package/dist/components/drop-zone/index.js +2 -0
- package/dist/components/drop-zone.css +78 -0
- package/dist/components/dropdown.css +1 -5
- package/dist/components/error-message.css +0 -4
- package/dist/components/field-error.css +0 -4
- package/dist/components/index.css +5 -0
- package/dist/components/index.d.ts +5 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/input/input.styles.d.ts +15 -0
- package/dist/components/input/input.styles.d.ts.map +1 -1
- package/dist/components/input/input.styles.js +6 -0
- package/dist/components/input-group/input-group.styles.d.ts +27 -0
- package/dist/components/input-group/input-group.styles.d.ts.map +1 -1
- package/dist/components/input-group/input-group.styles.js +6 -0
- package/dist/components/input-group.css +35 -38
- package/dist/components/input-otp.css +14 -26
- package/dist/components/input.css +23 -32
- package/dist/components/kbd.css +3 -1
- package/dist/components/label.css +7 -2
- package/dist/components/link.css +13 -11
- package/dist/components/list-box/list-box.styles.d.ts +15 -0
- package/dist/components/list-box/list-box.styles.d.ts.map +1 -1
- package/dist/components/list-box/list-box.styles.js +15 -5
- package/dist/components/list-box-item.css +8 -12
- package/dist/components/list-box.css +19 -0
- package/dist/components/menu/menu.styles.d.ts +19 -1
- package/dist/components/menu/menu.styles.d.ts.map +1 -1
- package/dist/components/menu/menu.styles.js +9 -1
- package/dist/components/menu-item.css +4 -10
- package/dist/components/menu.css +19 -0
- package/dist/components/meter.css +8 -16
- package/dist/components/modal.css +1 -13
- package/dist/components/number-field/number-field.styles.d.ts +27 -0
- package/dist/components/number-field/number-field.styles.d.ts.map +1 -1
- package/dist/components/number-field/number-field.styles.js +6 -0
- package/dist/components/number-field.css +83 -36
- package/dist/components/pagination.css +6 -10
- package/dist/components/popover.css +15 -5
- package/dist/components/progress-bar/progress-bar.styles.d.ts +36 -0
- package/dist/components/progress-bar/progress-bar.styles.d.ts.map +1 -1
- package/dist/components/progress-bar/progress-bar.styles.js +10 -0
- package/dist/components/progress-bar.css +82 -16
- package/dist/components/progress-circle.css +0 -4
- package/dist/components/radio.css +7 -9
- package/dist/components/range-calendar.css +73 -31
- package/dist/components/search-field/search-field.styles.d.ts +27 -0
- package/dist/components/search-field/search-field.styles.d.ts.map +1 -1
- package/dist/components/search-field/search-field.styles.js +6 -0
- package/dist/components/search-field.css +36 -29
- package/dist/components/segmented-control/index.d.ts +2 -0
- package/dist/components/segmented-control/index.d.ts.map +1 -0
- package/dist/components/segmented-control/index.js +2 -0
- package/dist/components/segmented-control/segmented-control.styles.d.ts +73 -0
- package/dist/components/segmented-control/segmented-control.styles.d.ts.map +1 -0
- package/dist/components/segmented-control/segmented-control.styles.js +27 -0
- package/dist/components/segmented-control.css +188 -0
- package/dist/components/select/select.styles.d.ts +33 -0
- package/dist/components/select/select.styles.d.ts.map +1 -1
- package/dist/components/select/select.styles.js +12 -0
- package/dist/components/select.css +47 -33
- package/dist/components/sidebar/index.d.ts +2 -0
- package/dist/components/sidebar/index.d.ts.map +1 -0
- package/dist/components/sidebar/index.js +2 -0
- package/dist/components/sidebar/sidebar.styles.d.ts +226 -0
- package/dist/components/sidebar/sidebar.styles.d.ts.map +1 -0
- package/dist/components/sidebar/sidebar.styles.js +65 -0
- package/dist/components/sidebar.css +604 -0
- package/dist/components/slider.css +10 -11
- package/dist/components/splitter/index.d.ts +2 -0
- package/dist/components/splitter/index.d.ts.map +1 -0
- package/dist/components/splitter/index.js +2 -0
- package/dist/components/splitter/splitter.styles.d.ts +61 -0
- package/dist/components/splitter/splitter.styles.d.ts.map +1 -0
- package/dist/components/splitter/splitter.styles.js +26 -0
- package/dist/components/splitter.css +249 -0
- package/dist/components/switch.css +16 -15
- package/dist/components/table.css +72 -30
- package/dist/components/tabs.css +9 -20
- package/dist/components/tag.css +32 -24
- package/dist/components/textarea/textarea.styles.d.ts +15 -0
- package/dist/components/textarea/textarea.styles.d.ts.map +1 -1
- package/dist/components/textarea/textarea.styles.js +6 -0
- package/dist/components/textarea.css +23 -32
- package/dist/components/toast.css +4 -2
- package/dist/components/toggle-button-group.css +7 -11
- package/dist/components/toggle-button.css +9 -17
- package/dist/components/toolbar.css +1 -1
- package/dist/components/tooltip.css +15 -6
- package/dist/components/typography.css +12 -4
- package/dist/components/virtualizer/index.d.ts +2 -0
- package/dist/components/virtualizer/index.d.ts.map +1 -0
- package/dist/components/virtualizer/index.js +2 -0
- package/dist/components/virtualizer/virtualizer.styles.d.ts +44 -0
- package/dist/components/virtualizer/virtualizer.styles.d.ts.map +1 -0
- package/dist/components/virtualizer/virtualizer.styles.js +15 -0
- package/dist/components/virtualizer.css +72 -0
- package/dist/index.js +6 -1
- package/dist/ropav.min.css +2 -2
- package/dist/themes/airbnb.css +11 -4
- package/dist/themes/all.css +1 -0
- package/dist/themes/coinbase.css +11 -4
- package/dist/themes/default.css +40 -8
- package/dist/themes/discord.css +11 -4
- package/dist/themes/hero.css +282 -0
- package/dist/themes/lavender.css +11 -4
- package/dist/themes/mint.css +11 -4
- package/dist/themes/netflix.css +11 -4
- package/dist/themes/rabbit.css +11 -4
- package/dist/themes/shared/theme.css +20 -2
- package/dist/themes/sky.css +11 -4
- package/dist/themes/spotify.css +11 -4
- package/dist/themes/uber.css +11 -4
- package/dist/utilities/index.css +27 -0
- package/package.json +1 -1
- package/src/components/autocomplete/autocomplete.styles.ts +12 -0
- package/src/components/color-input-group/color-input-group.styles.ts +10 -0
- package/src/components/combo-box/combo-box.styles.ts +12 -0
- package/src/components/date-input-group/date-input-group.styles.ts +10 -0
- package/src/components/drop-zone/drop-zone.styles.ts +12 -0
- package/src/components/drop-zone/index.ts +1 -0
- package/src/components/index.ts +5 -0
- package/src/components/input/input.styles.ts +6 -0
- package/src/components/input-group/input-group.styles.ts +10 -0
- package/src/components/list-box/list-box.styles.ts +6 -0
- package/src/components/menu/menu.styles.ts +10 -0
- package/src/components/number-field/number-field.styles.ts +10 -0
- package/src/components/progress-bar/progress-bar.styles.ts +14 -0
- package/src/components/search-field/search-field.styles.ts +10 -0
- package/src/components/segmented-control/index.ts +1 -0
- package/src/components/segmented-control/segmented-control.styles.ts +37 -0
- package/src/components/select/select.styles.ts +12 -0
- package/src/components/sidebar/index.ts +1 -0
- package/src/components/sidebar/sidebar.styles.ts +117 -0
- package/src/components/splitter/index.ts +1 -0
- package/src/components/splitter/splitter.styles.ts +44 -0
- package/src/components/textarea/textarea.styles.ts +6 -0
- package/src/components/virtualizer/index.ts +1 -0
- package/src/components/virtualizer/virtualizer.styles.ts +15 -0
|
@@ -4,12 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
/* Base styles */
|
|
6
6
|
.toggle-button {
|
|
7
|
-
@apply relative isolate inline-flex h-
|
|
7
|
+
@apply relative isolate inline-flex h-9 w-fit origin-center items-center justify-center gap-2 rounded-component px-4 text-sm font-medium whitespace-nowrap outline-none select-none no-highlight;
|
|
8
8
|
|
|
9
|
-
/**
|
|
10
|
-
* Transitions
|
|
11
|
-
* CRITICAL: motion-reduce must be AFTER transition for correct override specificity
|
|
12
|
-
*/
|
|
13
9
|
transition:
|
|
14
10
|
transform 250ms var(--ease-smooth),
|
|
15
11
|
background-color 100ms var(--ease-out),
|
|
@@ -91,7 +87,7 @@
|
|
|
91
87
|
|
|
92
88
|
/* SVG icon styling */
|
|
93
89
|
& svg {
|
|
94
|
-
@apply pointer-events-none -mx-0.5 my-
|
|
90
|
+
@apply pointer-events-none -mx-0.5 my-1 size-4 shrink-0 self-center;
|
|
95
91
|
}
|
|
96
92
|
}
|
|
97
93
|
|
|
@@ -100,11 +96,7 @@
|
|
|
100
96
|
========================================================================== */
|
|
101
97
|
|
|
102
98
|
.toggle-button--sm {
|
|
103
|
-
@apply h-
|
|
104
|
-
|
|
105
|
-
& svg {
|
|
106
|
-
@apply size-4;
|
|
107
|
-
}
|
|
99
|
+
@apply h-8 px-3;
|
|
108
100
|
|
|
109
101
|
&:active,
|
|
110
102
|
&[data-pressed="true"] {
|
|
@@ -117,7 +109,7 @@
|
|
|
117
109
|
}
|
|
118
110
|
|
|
119
111
|
.toggle-button--lg {
|
|
120
|
-
@apply h-
|
|
112
|
+
@apply h-10 text-base;
|
|
121
113
|
|
|
122
114
|
&:active,
|
|
123
115
|
&[data-pressed="true"] {
|
|
@@ -137,8 +129,8 @@
|
|
|
137
129
|
|
|
138
130
|
.toggle-button--ghost {
|
|
139
131
|
--toggle-button-bg: transparent;
|
|
140
|
-
--toggle-button-bg-hover: var(--
|
|
141
|
-
--toggle-button-bg-pressed: var(--
|
|
132
|
+
--toggle-button-bg-hover: var(--state-layer);
|
|
133
|
+
--toggle-button-bg-pressed: var(--state-layer);
|
|
142
134
|
--toggle-button-fg: var(--default-foreground);
|
|
143
135
|
}
|
|
144
136
|
|
|
@@ -147,13 +139,13 @@
|
|
|
147
139
|
========================================================================== */
|
|
148
140
|
|
|
149
141
|
.toggle-button--icon-only {
|
|
150
|
-
@apply w-
|
|
142
|
+
@apply w-9 p-0;
|
|
151
143
|
}
|
|
152
144
|
|
|
153
145
|
.toggle-button--icon-only.toggle-button--sm {
|
|
154
|
-
@apply w-
|
|
146
|
+
@apply w-8;
|
|
155
147
|
}
|
|
156
148
|
|
|
157
149
|
.toggle-button--icon-only.toggle-button--lg {
|
|
158
|
-
@apply w-
|
|
150
|
+
@apply w-10;
|
|
159
151
|
}
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
|
|
29
29
|
/* Attached variant */
|
|
30
30
|
.toolbar--attached {
|
|
31
|
-
@apply rounded-
|
|
31
|
+
@apply rounded-component bg-surface p-1 shadow-overlay;
|
|
32
32
|
|
|
33
33
|
/* Forced Colors Mode flattens the fill onto the page and strips the shadow, so the container
|
|
34
34
|
* stops having any shape and its contents sit loose on the page. */
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* Base tooltip styles */
|
|
4
4
|
.tooltip {
|
|
5
5
|
@apply max-w-xs origin-(--trigger-anchor-point) bg-overlay p-2 text-xs break-all;
|
|
6
|
-
border-radius: min(32px, var(--radius
|
|
6
|
+
border-radius: min(32px, var(--component-radius));
|
|
7
7
|
box-shadow: var(--shadow-overlay);
|
|
8
8
|
|
|
9
9
|
/* Entering animations */
|
|
@@ -40,10 +40,23 @@
|
|
|
40
40
|
|
|
41
41
|
/* Arrow styling */
|
|
42
42
|
& [data-slot="overlay-arrow"] {
|
|
43
|
-
@apply stroke-border/40;
|
|
44
43
|
fill: var(--overlay);
|
|
45
44
|
}
|
|
46
45
|
|
|
46
|
+
/**
|
|
47
|
+
* With an arrow, the edge treatment moves off the body and onto the pair.
|
|
48
|
+
*
|
|
49
|
+
* The arrow is a second shape filled with the body's own colour, overlapping it so no seam can
|
|
50
|
+
* open between them — which leaves nothing for a per-shape edge to be right about: a shadow or
|
|
51
|
+
* hairline painted on the body alone stops at the join, and one painted on the arrow crosses
|
|
52
|
+
* it. `--overlay-edge` is a filter, and a filter sees the two shapes as one image, so whatever
|
|
53
|
+
* edge it draws follows their combined silhouette.
|
|
54
|
+
*/
|
|
55
|
+
&:has([data-slot="tooltip-arrow"]) {
|
|
56
|
+
box-shadow: none;
|
|
57
|
+
filter: var(--overlay-edge, none);
|
|
58
|
+
}
|
|
59
|
+
|
|
47
60
|
/* Arrow rotation based on placement */
|
|
48
61
|
&[data-placement="bottom"] [data-slot="overlay-arrow"] {
|
|
49
62
|
rotate: 180deg;
|
|
@@ -62,10 +75,6 @@
|
|
|
62
75
|
.tooltip__trigger {
|
|
63
76
|
@apply inline-block;
|
|
64
77
|
|
|
65
|
-
/**
|
|
66
|
-
* Transitions
|
|
67
|
-
* CRITICAL: motion-reduce must be AFTER transition for correct override specificity
|
|
68
|
-
*/
|
|
69
78
|
transition:
|
|
70
79
|
color 150ms var(--ease-smooth),
|
|
71
80
|
background-color 150ms var(--ease-smooth),
|
|
@@ -35,7 +35,9 @@
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
.typography-prose code {
|
|
38
|
-
@apply
|
|
38
|
+
@apply bg-default px-1.5 py-0.5 font-mono text-sm text-foreground;
|
|
39
|
+
|
|
40
|
+
border-radius: min(32px, var(--component-radius));
|
|
39
41
|
|
|
40
42
|
/* Code is marked out by a tinted background and nothing else, so forced colors leaves it
|
|
41
43
|
* indistinguishable from the prose around it - the monospace face is all that is left. */
|
|
@@ -70,7 +72,9 @@
|
|
|
70
72
|
}
|
|
71
73
|
|
|
72
74
|
.typography-prose pre {
|
|
73
|
-
@apply my-4 overflow-x-auto
|
|
75
|
+
@apply my-4 overflow-x-auto bg-default p-4 font-mono text-sm leading-relaxed;
|
|
76
|
+
|
|
77
|
+
border-radius: min(32px, var(--component-radius));
|
|
74
78
|
|
|
75
79
|
/* Code is marked out by a tinted background and nothing else, so forced colors leaves it
|
|
76
80
|
* indistinguishable from the prose around it - the monospace face is all that is left. */
|
|
@@ -89,7 +93,9 @@
|
|
|
89
93
|
}
|
|
90
94
|
|
|
91
95
|
.typography-prose img {
|
|
92
|
-
@apply my-4
|
|
96
|
+
@apply my-4;
|
|
97
|
+
|
|
98
|
+
border-radius: min(32px, var(--component-radius));
|
|
93
99
|
}
|
|
94
100
|
|
|
95
101
|
.typography--h1 {
|
|
@@ -129,7 +135,9 @@
|
|
|
129
135
|
}
|
|
130
136
|
|
|
131
137
|
.typography--code {
|
|
132
|
-
@apply
|
|
138
|
+
@apply bg-default px-1.5 py-0.5 font-mono text-sm text-foreground;
|
|
139
|
+
|
|
140
|
+
border-radius: min(32px, var(--component-radius));
|
|
133
141
|
|
|
134
142
|
/* Code is marked out by a tinted background and nothing else, so forced colors leaves it
|
|
135
143
|
* indistinguishable from the prose around it - the monospace face is all that is left. */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/virtualizer/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The parts a windowed collection draws for itself, whichever collection it is.
|
|
3
|
+
*
|
|
4
|
+
* Only the scrollbar so far: a table and a listbox hide the native one and draw this in its place,
|
|
5
|
+
* so a dragged thumb moves the rows and the scroll offset together.
|
|
6
|
+
*/
|
|
7
|
+
export declare const virtualizerVariants: import("tailwind-variants").TVReturnType<{
|
|
8
|
+
[key: string]: {
|
|
9
|
+
[key: string]: {
|
|
10
|
+
scrollbar?: import("tailwind-variants").ClassValue;
|
|
11
|
+
scrollbarThumb?: import("tailwind-variants").ClassValue;
|
|
12
|
+
scrollbarTrack?: import("tailwind-variants").ClassValue;
|
|
13
|
+
} | import("tailwind-variants").ClassValue;
|
|
14
|
+
};
|
|
15
|
+
} | {
|
|
16
|
+
[x: string]: {
|
|
17
|
+
[x: string]: {
|
|
18
|
+
scrollbar?: import("tailwind-variants").ClassValue;
|
|
19
|
+
scrollbarThumb?: import("tailwind-variants").ClassValue;
|
|
20
|
+
scrollbarTrack?: import("tailwind-variants").ClassValue;
|
|
21
|
+
} | import("tailwind-variants").ClassValue;
|
|
22
|
+
};
|
|
23
|
+
} | {}, {
|
|
24
|
+
scrollbar: string;
|
|
25
|
+
scrollbarThumb: string;
|
|
26
|
+
scrollbarTrack: string;
|
|
27
|
+
}, undefined, {
|
|
28
|
+
[key: string]: {
|
|
29
|
+
[key: string]: {
|
|
30
|
+
scrollbar?: import("tailwind-variants").ClassValue;
|
|
31
|
+
scrollbarThumb?: import("tailwind-variants").ClassValue;
|
|
32
|
+
scrollbarTrack?: import("tailwind-variants").ClassValue;
|
|
33
|
+
} | import("tailwind-variants").ClassValue;
|
|
34
|
+
};
|
|
35
|
+
} | {}, {
|
|
36
|
+
scrollbar: string;
|
|
37
|
+
scrollbarThumb: string;
|
|
38
|
+
scrollbarTrack: string;
|
|
39
|
+
}, import("tailwind-variants").TVReturnTypeLike<unknown, {
|
|
40
|
+
scrollbar: string;
|
|
41
|
+
scrollbarThumb: string;
|
|
42
|
+
scrollbarTrack: string;
|
|
43
|
+
}>>;
|
|
44
|
+
//# sourceMappingURL=virtualizer.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"virtualizer.styles.d.ts","sourceRoot":"","sources":["../../../src/components/virtualizer/virtualizer.styles.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAM9B,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { tv } from "tailwind-variants";
|
|
2
|
+
//#region src/components/virtualizer/virtualizer.styles.ts
|
|
3
|
+
/**
|
|
4
|
+
* The parts a windowed collection draws for itself, whichever collection it is.
|
|
5
|
+
*
|
|
6
|
+
* Only the scrollbar so far: a table and a listbox hide the native one and draw this in its place,
|
|
7
|
+
* so a dragged thumb moves the rows and the scroll offset together.
|
|
8
|
+
*/
|
|
9
|
+
const virtualizerVariants = tv({ slots: {
|
|
10
|
+
scrollbar: "virtualizer__scrollbar",
|
|
11
|
+
scrollbarThumb: "virtualizer__scrollbar-thumb",
|
|
12
|
+
scrollbarTrack: "virtualizer__scrollbar-track"
|
|
13
|
+
} });
|
|
14
|
+
//#endregion
|
|
15
|
+
export { virtualizerVariants };
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
Virtualizer — the parts a windowed collection draws for itself.
|
|
3
|
+
========================================================================== */
|
|
4
|
+
|
|
5
|
+
/* --------------------------------------------------------------------------
|
|
6
|
+
Scrollbar — drawn by a windowed collection in place of the native one it
|
|
7
|
+
hides, so a dragged thumb moves the rows and the scroll offset together.
|
|
8
|
+
The component sizes and places each track; this only paints them and holds
|
|
9
|
+
the box they hang from.
|
|
10
|
+
-------------------------------------------------------------------------- */
|
|
11
|
+
|
|
12
|
+
/* A box of no height stuck to the top and inline start of the viewport, so a track placed at its
|
|
13
|
+
* edges sits at the viewport's edges however far the content has been scrolled along either axis.
|
|
14
|
+
* The component gives it the viewport's width. */
|
|
15
|
+
.virtualizer__scrollbar {
|
|
16
|
+
@apply sticky start-0 top-0 z-2 h-0;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.virtualizer__scrollbar-track {
|
|
20
|
+
@apply absolute touch-none select-none;
|
|
21
|
+
background-color: var(--scrollbar-track);
|
|
22
|
+
|
|
23
|
+
/* The content wrapper drops pointers mid-scroll so a fast scroll does not hover every row it
|
|
24
|
+
* passes. The track is what is being dragged, so it keeps taking them. */
|
|
25
|
+
pointer-events: auto;
|
|
26
|
+
|
|
27
|
+
&[data-orientation="vertical"] {
|
|
28
|
+
@apply end-0 top-0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&[data-orientation="horizontal"] {
|
|
32
|
+
@apply start-0;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.virtualizer__scrollbar-thumb {
|
|
37
|
+
@apply absolute rounded-full;
|
|
38
|
+
|
|
39
|
+
/* The thumb's fill, per state. Three states paint it and one declaration cannot tell them
|
|
40
|
+
* apart, so each reads its own. Both lit values are an alpha rather than a neutral, so the
|
|
41
|
+
* thumb stays visible over whatever the scroller happens to be showing. */
|
|
42
|
+
--virtualizer-scrollbar-thumb-bg: var(--scrollbar-thumb);
|
|
43
|
+
--virtualizer-scrollbar-thumb-bg-hover: color-mix(in oklch, var(--foreground) 25%, transparent);
|
|
44
|
+
--virtualizer-scrollbar-thumb-bg-pressed: color-mix(in oklch, var(--foreground) 35%, transparent);
|
|
45
|
+
|
|
46
|
+
background-color: var(--virtualizer-scrollbar-thumb-bg);
|
|
47
|
+
|
|
48
|
+
&[data-orientation="vertical"] {
|
|
49
|
+
inset-inline: 2px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&[data-orientation="horizontal"] {
|
|
53
|
+
inset-block: 2px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@media (hover: hover) {
|
|
57
|
+
&:hover,
|
|
58
|
+
&[data-hovered="true"] {
|
|
59
|
+
background-color: var(--virtualizer-scrollbar-thumb-bg-hover);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&[data-pressed="true"] {
|
|
64
|
+
background-color: var(--virtualizer-scrollbar-thumb-bg-pressed);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* Forced Colors Mode replaces the translucent fill with the canvas, and the thumb vanishes. */
|
|
68
|
+
@media (forced-colors: active) {
|
|
69
|
+
forced-color-adjust: none;
|
|
70
|
+
background-color: ButtonText;
|
|
71
|
+
}
|
|
72
|
+
}
|
package/dist/index.js
CHANGED
|
@@ -32,6 +32,7 @@ import { descriptionVariants } from "./components/description/description.styles
|
|
|
32
32
|
import { drawerVariants } from "./components/drawer/drawer.styles.js";
|
|
33
33
|
import { disclosureVariants } from "./components/disclosure/disclosure.styles.js";
|
|
34
34
|
import { disclosureGroupVariants } from "./components/disclosure-group/disclosure-group.styles.js";
|
|
35
|
+
import { dropZoneVariants } from "./components/drop-zone/drop-zone.styles.js";
|
|
35
36
|
import { dropdownVariants } from "./components/dropdown/dropdown.styles.js";
|
|
36
37
|
import { emptyStateVariants } from "./components/empty-state/empty-state.styles.js";
|
|
37
38
|
import { errorMessageVariants } from "./components/error-message/error-message.styles.js";
|
|
@@ -61,11 +62,14 @@ import { radioVariants } from "./components/radio/radio.styles.js";
|
|
|
61
62
|
import { radioGroupVariants } from "./components/radio-group/radio-group.styles.js";
|
|
62
63
|
import { scrollShadowVariants } from "./components/scroll-shadow/scroll-shadow.styles.js";
|
|
63
64
|
import { searchFieldVariants } from "./components/search-field/search-field.styles.js";
|
|
65
|
+
import { segmentedControlVariants } from "./components/segmented-control/segmented-control.styles.js";
|
|
64
66
|
import { selectVariants } from "./components/select/select.styles.js";
|
|
65
67
|
import { separatorVariants } from "./components/separator/separator.styles.js";
|
|
68
|
+
import { sidebarVariants } from "./components/sidebar/sidebar.styles.js";
|
|
66
69
|
import { skeletonVariants } from "./components/skeleton/skeleton.styles.js";
|
|
67
70
|
import { sliderVariants } from "./components/slider/slider.styles.js";
|
|
68
71
|
import { spinnerVariants } from "./components/spinner/spinner.styles.js";
|
|
72
|
+
import { splitterVariants } from "./components/splitter/splitter.styles.js";
|
|
69
73
|
import { surfaceVariants } from "./components/surface/surface.styles.js";
|
|
70
74
|
import { switchVariants } from "./components/switch/switch.styles.js";
|
|
71
75
|
import { switchGroupVariants } from "./components/switch-group/switch-group.styles.js";
|
|
@@ -82,5 +86,6 @@ import { toggleButtonVariants } from "./components/toggle-button/toggle-button.s
|
|
|
82
86
|
import { toggleButtonGroupVariants } from "./components/toggle-button-group/toggle-button-group.styles.js";
|
|
83
87
|
import { toolbarVariants } from "./components/toolbar/toolbar.styles.js";
|
|
84
88
|
import { tooltipVariants } from "./components/tooltip/tooltip.styles.js";
|
|
89
|
+
import { virtualizerVariants } from "./components/virtualizer/virtualizer.styles.js";
|
|
85
90
|
import { cn, tv } from "tailwind-variants";
|
|
86
|
-
export { accordionVariants, alertDialogVariants, alertVariants, ariaDisabledClasses, autocompleteVariants, avatarVariants, badgeVariants, breadcrumbsVariants, buttonGroupVariants, buttonVariants, calendarVariants, calendarYearPickerVariants, cardVariants, checkboxGroupVariants, checkboxVariants, chipVariants, closeButtonVariants, cn, colorAreaVariants, colorFieldVariants, colorInputGroupVariants, colorPickerVariants, colorSliderVariants, colorSwatchPickerVariants, colorSwatchVariants, comboBoxVariants, dateFieldVariants, dateInputGroupVariants, datePickerVariants, dateRangePickerVariants, descriptionVariants, disabledClasses, disclosureGroupVariants, disclosureVariants, drawerVariants, dropdownVariants, emptyStateVariants, errorMessageVariants, fieldErrorVariants, fieldsetVariants, focusRingClasses, headerVariants, inputGroupVariants, inputOTPVariants, inputVariants, kbdVariants, labelVariants, linkVariants, listboxItemVariants, listboxSectionVariants, listboxVariants, menuItemVariants, menuSectionVariants, menuVariants, meterVariants, modalVariants, numberFieldVariants, paginationVariants, popoverVariants, progressBarVariants, progressCircleVariants, radioGroupVariants, radioVariants, rangeCalendarVariants, scrollShadowVariants, searchFieldVariants, selectVariants, separatorVariants, skeletonVariants, sliderVariants, spinnerVariants, surfaceVariants, switchGroupVariants, switchVariants, tableVariants, tabsVariants, tagGroupVariants, tagVariants, textAreaVariants, textFieldVariants, timeFieldVariants, toastVariants, toggleButtonGroupVariants, toggleButtonVariants, toolbarVariants, tooltipVariants, tv, typographyVariants };
|
|
91
|
+
export { accordionVariants, alertDialogVariants, alertVariants, ariaDisabledClasses, autocompleteVariants, avatarVariants, badgeVariants, breadcrumbsVariants, buttonGroupVariants, buttonVariants, calendarVariants, calendarYearPickerVariants, cardVariants, checkboxGroupVariants, checkboxVariants, chipVariants, closeButtonVariants, cn, colorAreaVariants, colorFieldVariants, colorInputGroupVariants, colorPickerVariants, colorSliderVariants, colorSwatchPickerVariants, colorSwatchVariants, comboBoxVariants, dateFieldVariants, dateInputGroupVariants, datePickerVariants, dateRangePickerVariants, descriptionVariants, disabledClasses, disclosureGroupVariants, disclosureVariants, drawerVariants, dropZoneVariants, dropdownVariants, emptyStateVariants, errorMessageVariants, fieldErrorVariants, fieldsetVariants, focusRingClasses, headerVariants, inputGroupVariants, inputOTPVariants, inputVariants, kbdVariants, labelVariants, linkVariants, listboxItemVariants, listboxSectionVariants, listboxVariants, menuItemVariants, menuSectionVariants, menuVariants, meterVariants, modalVariants, numberFieldVariants, paginationVariants, popoverVariants, progressBarVariants, progressCircleVariants, radioGroupVariants, radioVariants, rangeCalendarVariants, scrollShadowVariants, searchFieldVariants, segmentedControlVariants, selectVariants, separatorVariants, sidebarVariants, skeletonVariants, sliderVariants, spinnerVariants, splitterVariants, surfaceVariants, switchGroupVariants, switchVariants, tableVariants, tabsVariants, tagGroupVariants, tagVariants, textAreaVariants, textFieldVariants, timeFieldVariants, toastVariants, toggleButtonGroupVariants, toggleButtonVariants, toolbarVariants, tooltipVariants, tv, typographyVariants, virtualizerVariants };
|