gbs-add-block 2.0.4 → 2.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/.gbs/skills/gbs-components/references/styling.md +21 -15
- package/README.md +22 -7
- package/package.json +1 -1
- package/source/beta-components/accordion/styles.css +5 -5
- package/source/beta-components/alert/styles.css +4 -4
- package/source/beta-components/avatar/styles.css +226 -227
- package/source/beta-components/badge/styles.css +7 -7
- package/source/beta-components/breadcrumb/styles.css +5 -4
- package/source/beta-components/button/styles.css +5 -4
- package/source/beta-components/card/styles.css +5 -4
- package/source/beta-components/checkbox/styles.css +5 -4
- package/source/beta-components/combobox/styles.css +4 -4
- package/source/beta-components/data-grid/styles.css +7 -8
- package/source/beta-components/date-picker/styles.css +4 -4
- package/source/beta-components/dialog/styles.css +5 -4
- package/source/beta-components/file-uploader/styles.css +5 -4
- package/source/beta-components/input/styles.css +5 -4
- package/source/beta-components/menu/styles.css +5 -4
- package/source/beta-components/modal/styles.css +5 -4
- package/source/beta-components/number-input/styles.css +5 -5
- package/source/beta-components/popover/styles.css +5 -4
- package/source/beta-components/progress/styles.css +1 -2
- package/source/beta-components/radio-group/styles.css +270 -270
- package/source/beta-components/skeleton/styles.css +5 -4
- package/source/beta-components/spinner/styles.css +174 -174
- package/source/beta-components/switch/styles.css +229 -229
- package/source/beta-components/tabs/styles.css +264 -264
- package/source/beta-components/textarea/styles.css +5 -4
- package/source/beta-components/toaster/styles.css +1 -2
- package/source/beta-components/tooltip/styles.css +5 -4
|
@@ -1,174 +1,174 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Spinner styles.
|
|
3
|
-
*
|
|
4
|
-
* The indicator draws in `currentColor`, so it takes the color of its
|
|
5
|
-
* surroundings. Tokens read the shared --gbs-* variables when they are set on
|
|
6
|
-
* ancestor. Rules live in the `
|
|
7
|
-
*
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
@layer
|
|
12
|
-
.sp-root,
|
|
13
|
-
.sp-container {
|
|
14
|
-
--sp-size: 24px;
|
|
15
|
-
--sp-color: currentColor;
|
|
16
|
-
--sp-track: color-mix(in oklab, currentColor 18%, transparent);
|
|
17
|
-
--sp-duration: 0.8s;
|
|
18
|
-
--sp-overlay-bg: color-mix(in oklab, var(--gbs-bg, var(--dg-bg, light-dark(#ffffff, #0b0b0e))) 72%, transparent);
|
|
19
|
-
--sp-overlay-color: var(--gbs-accent, var(--dg-accent, light-dark(#2563eb, #60a5fa)));
|
|
20
|
-
--sp-font-size: var(--gbs-font-size, var(--dg-font-size, 13px));
|
|
21
|
-
|
|
22
|
-
color-scheme: inherit;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
:where(.dark, [data-theme="dark"]) .sp-root {
|
|
26
|
-
color-scheme: dark;
|
|
27
|
-
}
|
|
28
|
-
:where(.light, [data-theme="light"]) .sp-root {
|
|
29
|
-
color-scheme: light;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
:where(.sp-root, .sp-container) *,
|
|
33
|
-
:where(.sp-root, .sp-container) *::before,
|
|
34
|
-
:where(.sp-root, .sp-container) *::after {
|
|
35
|
-
box-sizing: border-box;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.sp-root {
|
|
39
|
-
display: inline-flex;
|
|
40
|
-
align-items: center;
|
|
41
|
-
vertical-align: middle;
|
|
42
|
-
color: var(--sp-color);
|
|
43
|
-
font-size: var(--sp-font-size);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.sp-status {
|
|
47
|
-
display: inline-flex;
|
|
48
|
-
align-items: center;
|
|
49
|
-
gap: 8px;
|
|
50
|
-
}
|
|
51
|
-
.sp-label {
|
|
52
|
-
line-height: 1.4;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.sp-indicator {
|
|
56
|
-
display: inline-grid;
|
|
57
|
-
flex: none;
|
|
58
|
-
place-items: center;
|
|
59
|
-
width: var(--sp-size);
|
|
60
|
-
height: var(--sp-size);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/* ---------------------------------------------------------------- ring */
|
|
64
|
-
|
|
65
|
-
.sp-ring {
|
|
66
|
-
width: 100%;
|
|
67
|
-
height: 100%;
|
|
68
|
-
animation: sp-rotate var(--sp-duration) linear infinite;
|
|
69
|
-
}
|
|
70
|
-
.sp-track,
|
|
71
|
-
.sp-arc {
|
|
72
|
-
fill: none;
|
|
73
|
-
stroke-width: 2.5;
|
|
74
|
-
}
|
|
75
|
-
.sp-track {
|
|
76
|
-
stroke: var(--sp-track);
|
|
77
|
-
}
|
|
78
|
-
.sp-arc {
|
|
79
|
-
stroke: currentColor;
|
|
80
|
-
stroke-linecap: round;
|
|
81
|
-
stroke-dasharray: 28 100;
|
|
82
|
-
}
|
|
83
|
-
@keyframes sp-rotate {
|
|
84
|
-
to {
|
|
85
|
-
transform: rotate(360deg);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
/* ---------------------------------------------------------------- dots */
|
|
90
|
-
|
|
91
|
-
.sp-indicator[data-variant="dots"] {
|
|
92
|
-
grid-auto-flow: column;
|
|
93
|
-
gap: calc(var(--sp-size) * 0.1);
|
|
94
|
-
}
|
|
95
|
-
.sp-dot {
|
|
96
|
-
width: calc(var(--sp-size) * 0.22);
|
|
97
|
-
aspect-ratio: 1;
|
|
98
|
-
border-radius: 50%;
|
|
99
|
-
background: currentColor;
|
|
100
|
-
animation: sp-pulse calc(var(--sp-duration) * 1.4) ease-in-out infinite;
|
|
101
|
-
}
|
|
102
|
-
.sp-dot:nth-child(2) {
|
|
103
|
-
animation-delay: calc(var(--sp-duration) * 0.18);
|
|
104
|
-
}
|
|
105
|
-
.sp-dot:nth-child(3) {
|
|
106
|
-
animation-delay: calc(var(--sp-duration) * 0.36);
|
|
107
|
-
}
|
|
108
|
-
@keyframes sp-pulse {
|
|
109
|
-
0%,
|
|
110
|
-
80%,
|
|
111
|
-
100% {
|
|
112
|
-
opacity: 0.25;
|
|
113
|
-
scale: 0.7;
|
|
114
|
-
}
|
|
115
|
-
40% {
|
|
116
|
-
opacity: 1;
|
|
117
|
-
scale: 1;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
/* ----------------------------------------------------------- container */
|
|
122
|
-
|
|
123
|
-
.sp-container {
|
|
124
|
-
position: relative;
|
|
125
|
-
}
|
|
126
|
-
.sp-overlay {
|
|
127
|
-
position: absolute;
|
|
128
|
-
inset: 0;
|
|
129
|
-
z-index: 1;
|
|
130
|
-
display: grid;
|
|
131
|
-
place-items: center;
|
|
132
|
-
border-radius: inherit;
|
|
133
|
-
background: var(--sp-overlay-bg);
|
|
134
|
-
color: var(--sp-overlay-color);
|
|
135
|
-
font-size: var(--sp-font-size);
|
|
136
|
-
animation: sp-fade 150ms ease both;
|
|
137
|
-
}
|
|
138
|
-
@keyframes sp-fade {
|
|
139
|
-
from {
|
|
140
|
-
opacity: 0;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
.sp-sr-only {
|
|
145
|
-
position: absolute;
|
|
146
|
-
width: 1px;
|
|
147
|
-
height: 1px;
|
|
148
|
-
margin: -1px;
|
|
149
|
-
padding: 0;
|
|
150
|
-
overflow: hidden;
|
|
151
|
-
clip-path: inset(50%);
|
|
152
|
-
white-space: nowrap;
|
|
153
|
-
border: 0;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
/* Slower, not stopped: a frozen spinner reads as a hang. */
|
|
157
|
-
@media (prefers-reduced-motion: reduce) {
|
|
158
|
-
.sp-root,
|
|
159
|
-
.sp-container {
|
|
160
|
-
--sp-duration: 2.4s;
|
|
161
|
-
}
|
|
162
|
-
.sp-overlay {
|
|
163
|
-
animation: none;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
@media (forced-colors: active) {
|
|
168
|
-
.sp-arc,
|
|
169
|
-
.sp-dot {
|
|
170
|
-
stroke: CanvasText;
|
|
171
|
-
background: CanvasText;
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
}
|
|
1
|
+
/*
|
|
2
|
+
* Spinner styles.
|
|
3
|
+
*
|
|
4
|
+
* The indicator draws in `currentColor`, so it takes the color of its
|
|
5
|
+
* surroundings. Tokens read the shared --gbs-* variables when they are set on
|
|
6
|
+
* an ancestor. Rules live in the `gbs` layer. Declare where that sits in your
|
|
7
|
+
* global CSS — e.g. `@layer reset, gbs, app, utilities;` — and anything in a
|
|
8
|
+
* later layer, Tailwind utilities included, overrides them.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
@layer gbs {
|
|
12
|
+
.sp-root,
|
|
13
|
+
.sp-container {
|
|
14
|
+
--sp-size: 24px;
|
|
15
|
+
--sp-color: currentColor;
|
|
16
|
+
--sp-track: color-mix(in oklab, currentColor 18%, transparent);
|
|
17
|
+
--sp-duration: 0.8s;
|
|
18
|
+
--sp-overlay-bg: color-mix(in oklab, var(--gbs-bg, var(--dg-bg, light-dark(#ffffff, #0b0b0e))) 72%, transparent);
|
|
19
|
+
--sp-overlay-color: var(--gbs-accent, var(--dg-accent, light-dark(#2563eb, #60a5fa)));
|
|
20
|
+
--sp-font-size: var(--gbs-font-size, var(--dg-font-size, 13px));
|
|
21
|
+
|
|
22
|
+
color-scheme: inherit;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
:where(.dark, [data-theme="dark"]) .sp-root {
|
|
26
|
+
color-scheme: dark;
|
|
27
|
+
}
|
|
28
|
+
:where(.light, [data-theme="light"]) .sp-root {
|
|
29
|
+
color-scheme: light;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
:where(.sp-root, .sp-container) *,
|
|
33
|
+
:where(.sp-root, .sp-container) *::before,
|
|
34
|
+
:where(.sp-root, .sp-container) *::after {
|
|
35
|
+
box-sizing: border-box;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.sp-root {
|
|
39
|
+
display: inline-flex;
|
|
40
|
+
align-items: center;
|
|
41
|
+
vertical-align: middle;
|
|
42
|
+
color: var(--sp-color);
|
|
43
|
+
font-size: var(--sp-font-size);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.sp-status {
|
|
47
|
+
display: inline-flex;
|
|
48
|
+
align-items: center;
|
|
49
|
+
gap: 8px;
|
|
50
|
+
}
|
|
51
|
+
.sp-label {
|
|
52
|
+
line-height: 1.4;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.sp-indicator {
|
|
56
|
+
display: inline-grid;
|
|
57
|
+
flex: none;
|
|
58
|
+
place-items: center;
|
|
59
|
+
width: var(--sp-size);
|
|
60
|
+
height: var(--sp-size);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/* ---------------------------------------------------------------- ring */
|
|
64
|
+
|
|
65
|
+
.sp-ring {
|
|
66
|
+
width: 100%;
|
|
67
|
+
height: 100%;
|
|
68
|
+
animation: sp-rotate var(--sp-duration) linear infinite;
|
|
69
|
+
}
|
|
70
|
+
.sp-track,
|
|
71
|
+
.sp-arc {
|
|
72
|
+
fill: none;
|
|
73
|
+
stroke-width: 2.5;
|
|
74
|
+
}
|
|
75
|
+
.sp-track {
|
|
76
|
+
stroke: var(--sp-track);
|
|
77
|
+
}
|
|
78
|
+
.sp-arc {
|
|
79
|
+
stroke: currentColor;
|
|
80
|
+
stroke-linecap: round;
|
|
81
|
+
stroke-dasharray: 28 100;
|
|
82
|
+
}
|
|
83
|
+
@keyframes sp-rotate {
|
|
84
|
+
to {
|
|
85
|
+
transform: rotate(360deg);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/* ---------------------------------------------------------------- dots */
|
|
90
|
+
|
|
91
|
+
.sp-indicator[data-variant="dots"] {
|
|
92
|
+
grid-auto-flow: column;
|
|
93
|
+
gap: calc(var(--sp-size) * 0.1);
|
|
94
|
+
}
|
|
95
|
+
.sp-dot {
|
|
96
|
+
width: calc(var(--sp-size) * 0.22);
|
|
97
|
+
aspect-ratio: 1;
|
|
98
|
+
border-radius: 50%;
|
|
99
|
+
background: currentColor;
|
|
100
|
+
animation: sp-pulse calc(var(--sp-duration) * 1.4) ease-in-out infinite;
|
|
101
|
+
}
|
|
102
|
+
.sp-dot:nth-child(2) {
|
|
103
|
+
animation-delay: calc(var(--sp-duration) * 0.18);
|
|
104
|
+
}
|
|
105
|
+
.sp-dot:nth-child(3) {
|
|
106
|
+
animation-delay: calc(var(--sp-duration) * 0.36);
|
|
107
|
+
}
|
|
108
|
+
@keyframes sp-pulse {
|
|
109
|
+
0%,
|
|
110
|
+
80%,
|
|
111
|
+
100% {
|
|
112
|
+
opacity: 0.25;
|
|
113
|
+
scale: 0.7;
|
|
114
|
+
}
|
|
115
|
+
40% {
|
|
116
|
+
opacity: 1;
|
|
117
|
+
scale: 1;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/* ----------------------------------------------------------- container */
|
|
122
|
+
|
|
123
|
+
.sp-container {
|
|
124
|
+
position: relative;
|
|
125
|
+
}
|
|
126
|
+
.sp-overlay {
|
|
127
|
+
position: absolute;
|
|
128
|
+
inset: 0;
|
|
129
|
+
z-index: 1;
|
|
130
|
+
display: grid;
|
|
131
|
+
place-items: center;
|
|
132
|
+
border-radius: inherit;
|
|
133
|
+
background: var(--sp-overlay-bg);
|
|
134
|
+
color: var(--sp-overlay-color);
|
|
135
|
+
font-size: var(--sp-font-size);
|
|
136
|
+
animation: sp-fade 150ms ease both;
|
|
137
|
+
}
|
|
138
|
+
@keyframes sp-fade {
|
|
139
|
+
from {
|
|
140
|
+
opacity: 0;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.sp-sr-only {
|
|
145
|
+
position: absolute;
|
|
146
|
+
width: 1px;
|
|
147
|
+
height: 1px;
|
|
148
|
+
margin: -1px;
|
|
149
|
+
padding: 0;
|
|
150
|
+
overflow: hidden;
|
|
151
|
+
clip-path: inset(50%);
|
|
152
|
+
white-space: nowrap;
|
|
153
|
+
border: 0;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/* Slower, not stopped: a frozen spinner reads as a hang. */
|
|
157
|
+
@media (prefers-reduced-motion: reduce) {
|
|
158
|
+
.sp-root,
|
|
159
|
+
.sp-container {
|
|
160
|
+
--sp-duration: 2.4s;
|
|
161
|
+
}
|
|
162
|
+
.sp-overlay {
|
|
163
|
+
animation: none;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
@media (forced-colors: active) {
|
|
168
|
+
.sp-arc,
|
|
169
|
+
.sp-dot {
|
|
170
|
+
stroke: CanvasText;
|
|
171
|
+
background: CanvasText;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|