@ac-design/design-system 2.2.1 → 2.3.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/dist/lib/compat.css +210 -0
- package/dist/lib/components/AcButton.vue.d.ts +18 -12
- package/dist/lib/components/AcButton.vue_vue_type_script_setup_true_lang.js +62 -32
- package/dist/lib/components/AcCard.vue.d.ts +11 -5
- package/dist/lib/components/AcCard.vue_vue_type_script_setup_true_lang.js +99 -51
- package/dist/lib/components/AcColorInput.vue.d.ts +1 -1
- package/dist/lib/components/AcDatePicker.vue.d.ts +27 -3
- package/dist/lib/components/AcDatePicker.vue_vue_type_script_setup_true_lang.js +432 -369
- package/dist/lib/components/AcErrorState.vue.d.ts +1 -1
- package/dist/lib/components/AcHeader.vue.d.ts +1 -1
- package/dist/lib/components/AcInput.vue.d.ts +28 -7
- package/dist/lib/components/AcInput.vue_vue_type_script_setup_true_lang.js +149 -80
- package/dist/lib/components/AcKeyValueInput.vue.d.ts +1 -1
- package/dist/lib/components/AcLocaleSwitcher.vue.d.ts +6 -0
- package/dist/lib/components/AcLocaleSwitcher.vue_vue_type_script_setup_true_lang.js +74 -58
- package/dist/lib/components/AcNavbar.vue.d.ts +2 -0
- package/dist/lib/components/AcNavbar.vue_vue_type_script_setup_true_lang.js +31 -25
- package/dist/lib/components/AcNumberInput.vue.d.ts +1 -1
- package/dist/lib/components/AcRadioCard.js +5 -0
- package/dist/lib/components/AcRadioCard.vue.d.ts +55 -0
- package/dist/lib/components/AcRadioCard.vue_vue_type_script_setup_true_lang.js +135 -0
- package/dist/lib/components/AcSelect.vue.d.ts +12 -1
- package/dist/lib/components/AcSelect.vue_vue_type_script_setup_true_lang.js +190 -174
- package/dist/lib/components/AcSidebar.vue.d.ts +9 -0
- package/dist/lib/components/AcSidebar.vue_vue_type_script_setup_true_lang.js +113 -94
- package/dist/lib/components/AcSidebarSection.vue_vue_type_script_setup_true_lang.js +19 -18
- package/dist/lib/components/AcSlider.vue.d.ts +1 -1
- package/dist/lib/components/AcTable.vue.d.ts +13 -1
- package/dist/lib/components/AcTable.vue_vue_type_script_setup_true_lang.js +106 -86
- package/dist/lib/components/AcTagInput.vue.d.ts +1 -1
- package/dist/lib/components/AcTextarea.vue.d.ts +30 -4
- package/dist/lib/components/AcTextarea.vue_vue_type_script_setup_true_lang.js +92 -61
- package/dist/lib/components/AcThemeMode.vue.d.ts +10 -2
- package/dist/lib/components/AcThemeMode.vue_vue_type_script_setup_true_lang.js +53 -42
- package/dist/lib/components/AcTimePicker.vue.d.ts +21 -3
- package/dist/lib/components/AcTimePicker.vue_vue_type_script_setup_true_lang.js +206 -174
- package/dist/lib/components/AcUserMenu.vue.d.ts +8 -0
- package/dist/lib/components/AcUserMenu.vue_vue_type_script_setup_true_lang.js +126 -109
- package/dist/lib/components/index.d.ts +1 -0
- package/dist/lib/components/types.d.ts +2 -0
- package/dist/lib/index.js +34 -33
- package/package.json +1 -1
package/dist/lib/compat.css
CHANGED
|
@@ -584,6 +584,9 @@ button:is([data-ac-ds], [data-ac-ds] *), input:where([type="button"], [type="res
|
|
|
584
584
|
.my-1:where([data-ac-ds], [data-ac-ds] *) {
|
|
585
585
|
margin-block: var(--spacing) !important;
|
|
586
586
|
}
|
|
587
|
+
.my-6:where([data-ac-ds], [data-ac-ds] *) {
|
|
588
|
+
margin-block: calc(var(--spacing) * 6) !important;
|
|
589
|
+
}
|
|
587
590
|
.-mt-0\.5:where([data-ac-ds], [data-ac-ds] *) {
|
|
588
591
|
margin-top: calc(var(--spacing) * -0.5) !important;
|
|
589
592
|
}
|
|
@@ -831,6 +834,10 @@ button:is([data-ac-ds], [data-ac-ds] *), input:where([type="button"], [type="res
|
|
|
831
834
|
width: calc(var(--spacing) * 12) !important;
|
|
832
835
|
height: calc(var(--spacing) * 12) !important;
|
|
833
836
|
}
|
|
837
|
+
.size-14:where([data-ac-ds], [data-ac-ds] *) {
|
|
838
|
+
width: calc(var(--spacing) * 14) !important;
|
|
839
|
+
height: calc(var(--spacing) * 14) !important;
|
|
840
|
+
}
|
|
834
841
|
.size-15:where([data-ac-ds], [data-ac-ds] *) {
|
|
835
842
|
width: calc(var(--spacing) * 15) !important;
|
|
836
843
|
height: calc(var(--spacing) * 15) !important;
|
|
@@ -953,6 +960,9 @@ button:is([data-ac-ds], [data-ac-ds] *), input:where([type="button"], [type="res
|
|
|
953
960
|
.h-18:where([data-ac-ds], [data-ac-ds] *) {
|
|
954
961
|
height: calc(var(--spacing) * 18) !important;
|
|
955
962
|
}
|
|
963
|
+
.h-30:where([data-ac-ds], [data-ac-ds] *) {
|
|
964
|
+
height: calc(var(--spacing) * 30) !important;
|
|
965
|
+
}
|
|
956
966
|
.h-32:where([data-ac-ds], [data-ac-ds] *) {
|
|
957
967
|
height: calc(var(--spacing) * 32) !important;
|
|
958
968
|
}
|
|
@@ -1049,6 +1059,9 @@ button:is([data-ac-ds], [data-ac-ds] *), input:where([type="button"], [type="res
|
|
|
1049
1059
|
.w-8:where([data-ac-ds], [data-ac-ds] *) {
|
|
1050
1060
|
width: calc(var(--spacing) * 8) !important;
|
|
1051
1061
|
}
|
|
1062
|
+
.w-8\.5:where([data-ac-ds], [data-ac-ds] *) {
|
|
1063
|
+
width: calc(var(--spacing) * 8.5) !important;
|
|
1064
|
+
}
|
|
1052
1065
|
.w-9:where([data-ac-ds], [data-ac-ds] *) {
|
|
1053
1066
|
width: calc(var(--spacing) * 9) !important;
|
|
1054
1067
|
}
|
|
@@ -1235,6 +1248,9 @@ button:is([data-ac-ds], [data-ac-ds] *), input:where([type="button"], [type="res
|
|
|
1235
1248
|
.min-w-10:where([data-ac-ds], [data-ac-ds] *) {
|
|
1236
1249
|
min-width: calc(var(--spacing) * 10) !important;
|
|
1237
1250
|
}
|
|
1251
|
+
.min-w-12:where([data-ac-ds], [data-ac-ds] *) {
|
|
1252
|
+
min-width: calc(var(--spacing) * 12) !important;
|
|
1253
|
+
}
|
|
1238
1254
|
.min-w-14:where([data-ac-ds], [data-ac-ds] *) {
|
|
1239
1255
|
min-width: calc(var(--spacing) * 14) !important;
|
|
1240
1256
|
}
|
|
@@ -1408,6 +1424,12 @@ button:is([data-ac-ds], [data-ac-ds] *), input:where([type="button"], [type="res
|
|
|
1408
1424
|
--tw-scale-z: 95% !important;
|
|
1409
1425
|
scale: var(--tw-scale-x) var(--tw-scale-y) !important;
|
|
1410
1426
|
}
|
|
1427
|
+
.scale-100:where([data-ac-ds], [data-ac-ds] *) {
|
|
1428
|
+
--tw-scale-x: 100% !important;
|
|
1429
|
+
--tw-scale-y: 100% !important;
|
|
1430
|
+
--tw-scale-z: 100% !important;
|
|
1431
|
+
scale: var(--tw-scale-x) var(--tw-scale-y) !important;
|
|
1432
|
+
}
|
|
1411
1433
|
.scale-110:where([data-ac-ds], [data-ac-ds] *) {
|
|
1412
1434
|
--tw-scale-x: 110% !important;
|
|
1413
1435
|
--tw-scale-y: 110% !important;
|
|
@@ -2107,6 +2129,9 @@ button:is([data-ac-ds], [data-ac-ds] *), input:where([type="button"], [type="res
|
|
|
2107
2129
|
background-color: color-mix(in oklab, var(--color-black) 80%, transparent) !important;
|
|
2108
2130
|
}
|
|
2109
2131
|
}
|
|
2132
|
+
.bg-body:where([data-ac-ds], [data-ac-ds] *) {
|
|
2133
|
+
background-color: var(--color-body) !important;
|
|
2134
|
+
}
|
|
2110
2135
|
.bg-border:where([data-ac-ds], [data-ac-ds] *) {
|
|
2111
2136
|
background-color: var(--color-border) !important;
|
|
2112
2137
|
}
|
|
@@ -2152,6 +2177,12 @@ button:is([data-ac-ds], [data-ac-ds] *), input:where([type="button"], [type="res
|
|
|
2152
2177
|
background-color: color-mix(in oklab, var(--color-danger) 5%, transparent) !important;
|
|
2153
2178
|
}
|
|
2154
2179
|
}
|
|
2180
|
+
.bg-danger\/6:where([data-ac-ds], [data-ac-ds] *) {
|
|
2181
|
+
background-color: color-mix(in srgb, #ef4444 6%, transparent) !important;
|
|
2182
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2183
|
+
background-color: color-mix(in oklab, var(--color-danger) 6%, transparent) !important;
|
|
2184
|
+
}
|
|
2185
|
+
}
|
|
2155
2186
|
.bg-danger\/10:where([data-ac-ds], [data-ac-ds] *) {
|
|
2156
2187
|
background-color: color-mix(in srgb, #ef4444 10%, transparent) !important;
|
|
2157
2188
|
@supports (color: color-mix(in lab, red, red)) {
|
|
@@ -2182,6 +2213,12 @@ button:is([data-ac-ds], [data-ac-ds] *), input:where([type="button"], [type="res
|
|
|
2182
2213
|
.bg-info:where([data-ac-ds], [data-ac-ds] *) {
|
|
2183
2214
|
background-color: var(--color-info) !important;
|
|
2184
2215
|
}
|
|
2216
|
+
.bg-info\/6:where([data-ac-ds], [data-ac-ds] *) {
|
|
2217
|
+
background-color: color-mix(in srgb, #0069ff 6%, transparent) !important;
|
|
2218
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2219
|
+
background-color: color-mix(in oklab, var(--color-info) 6%, transparent) !important;
|
|
2220
|
+
}
|
|
2221
|
+
}
|
|
2185
2222
|
.bg-info\/8:where([data-ac-ds], [data-ac-ds] *) {
|
|
2186
2223
|
background-color: color-mix(in srgb, #0069ff 8%, transparent) !important;
|
|
2187
2224
|
@supports (color: color-mix(in lab, red, red)) {
|
|
@@ -2266,6 +2303,12 @@ button:is([data-ac-ds], [data-ac-ds] *), input:where([type="button"], [type="res
|
|
|
2266
2303
|
background-color: color-mix(in oklab, var(--color-primary) 5%, transparent) !important;
|
|
2267
2304
|
}
|
|
2268
2305
|
}
|
|
2306
|
+
.bg-primary\/6:where([data-ac-ds], [data-ac-ds] *) {
|
|
2307
|
+
background-color: color-mix(in srgb, hsl(var(--primary-hue) var(--primary-saturation) var(--primary-light)) 6%, transparent) !important;
|
|
2308
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2309
|
+
background-color: color-mix(in oklab, var(--color-primary) 6%, transparent) !important;
|
|
2310
|
+
}
|
|
2311
|
+
}
|
|
2269
2312
|
.bg-primary\/8:where([data-ac-ds], [data-ac-ds] *) {
|
|
2270
2313
|
background-color: color-mix(in srgb, hsl(var(--primary-hue) var(--primary-saturation) var(--primary-light)) 8%, transparent) !important;
|
|
2271
2314
|
@supports (color: color-mix(in lab, red, red)) {
|
|
@@ -2344,6 +2387,12 @@ button:is([data-ac-ds], [data-ac-ds] *), input:where([type="button"], [type="res
|
|
|
2344
2387
|
background-color: color-mix(in oklab, var(--color-success) 5%, transparent) !important;
|
|
2345
2388
|
}
|
|
2346
2389
|
}
|
|
2390
|
+
.bg-success\/6:where([data-ac-ds], [data-ac-ds] *) {
|
|
2391
|
+
background-color: color-mix(in srgb, #00a651 6%, transparent) !important;
|
|
2392
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2393
|
+
background-color: color-mix(in oklab, var(--color-success) 6%, transparent) !important;
|
|
2394
|
+
}
|
|
2395
|
+
}
|
|
2347
2396
|
.bg-success\/10:where([data-ac-ds], [data-ac-ds] *) {
|
|
2348
2397
|
background-color: color-mix(in srgb, #00a651 10%, transparent) !important;
|
|
2349
2398
|
@supports (color: color-mix(in lab, red, red)) {
|
|
@@ -2395,6 +2444,12 @@ button:is([data-ac-ds], [data-ac-ds] *), input:where([type="button"], [type="res
|
|
|
2395
2444
|
background-color: color-mix(in oklab, var(--color-surface-sunken) 50%, transparent) !important;
|
|
2396
2445
|
}
|
|
2397
2446
|
}
|
|
2447
|
+
.bg-surface-sunken\/70:where([data-ac-ds], [data-ac-ds] *) {
|
|
2448
|
+
background-color: color-mix(in srgb, #f0f0f0 70%, transparent) !important;
|
|
2449
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2450
|
+
background-color: color-mix(in oklab, var(--color-surface-sunken) 70%, transparent) !important;
|
|
2451
|
+
}
|
|
2452
|
+
}
|
|
2398
2453
|
.bg-surface\/85:where([data-ac-ds], [data-ac-ds] *) {
|
|
2399
2454
|
background-color: color-mix(in srgb, #ffffff 85%, transparent) !important;
|
|
2400
2455
|
@supports (color: color-mix(in lab, red, red)) {
|
|
@@ -2428,6 +2483,12 @@ button:is([data-ac-ds], [data-ac-ds] *), input:where([type="button"], [type="res
|
|
|
2428
2483
|
background-color: color-mix(in oklab, var(--color-warning) 5%, transparent) !important;
|
|
2429
2484
|
}
|
|
2430
2485
|
}
|
|
2486
|
+
.bg-warning\/6:where([data-ac-ds], [data-ac-ds] *) {
|
|
2487
|
+
background-color: color-mix(in srgb, #f59e0b 6%, transparent) !important;
|
|
2488
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2489
|
+
background-color: color-mix(in oklab, var(--color-warning) 6%, transparent) !important;
|
|
2490
|
+
}
|
|
2491
|
+
}
|
|
2431
2492
|
.bg-warning\/10:where([data-ac-ds], [data-ac-ds] *) {
|
|
2432
2493
|
background-color: color-mix(in srgb, #f59e0b 10%, transparent) !important;
|
|
2433
2494
|
@supports (color: color-mix(in lab, red, red)) {
|
|
@@ -2880,6 +2941,12 @@ button:is([data-ac-ds], [data-ac-ds] *), input:where([type="button"], [type="res
|
|
|
2880
2941
|
.py-20:where([data-ac-ds], [data-ac-ds] *) {
|
|
2881
2942
|
padding-block: calc(var(--spacing) * 20) !important;
|
|
2882
2943
|
}
|
|
2944
|
+
.py-\[5px\]:where([data-ac-ds], [data-ac-ds] *) {
|
|
2945
|
+
padding-block: 5px !important;
|
|
2946
|
+
}
|
|
2947
|
+
.py-\[7px\]:where([data-ac-ds], [data-ac-ds] *) {
|
|
2948
|
+
padding-block: 7px !important;
|
|
2949
|
+
}
|
|
2883
2950
|
.pt-0:where([data-ac-ds], [data-ac-ds] *) {
|
|
2884
2951
|
padding-top: 0px !important;
|
|
2885
2952
|
}
|
|
@@ -2910,6 +2977,9 @@ button:is([data-ac-ds], [data-ac-ds] *), input:where([type="button"], [type="res
|
|
|
2910
2977
|
.pt-10:where([data-ac-ds], [data-ac-ds] *) {
|
|
2911
2978
|
padding-top: calc(var(--spacing) * 10) !important;
|
|
2912
2979
|
}
|
|
2980
|
+
.pt-\[54px\]:where([data-ac-ds], [data-ac-ds] *) {
|
|
2981
|
+
padding-top: 54px !important;
|
|
2982
|
+
}
|
|
2913
2983
|
.pr-0:where([data-ac-ds], [data-ac-ds] *) {
|
|
2914
2984
|
padding-right: 0px !important;
|
|
2915
2985
|
}
|
|
@@ -3142,6 +3212,10 @@ button:is([data-ac-ds], [data-ac-ds] *), input:where([type="button"], [type="res
|
|
|
3142
3212
|
--tw-tracking: -0.03em !important;
|
|
3143
3213
|
letter-spacing: -0.03em !important;
|
|
3144
3214
|
}
|
|
3215
|
+
.tracking-\[-0\.012em\]:where([data-ac-ds], [data-ac-ds] *) {
|
|
3216
|
+
--tw-tracking: -0.012em !important;
|
|
3217
|
+
letter-spacing: -0.012em !important;
|
|
3218
|
+
}
|
|
3145
3219
|
.tracking-\[0\.08em\]:where([data-ac-ds], [data-ac-ds] *) {
|
|
3146
3220
|
--tw-tracking: 0.08em !important;
|
|
3147
3221
|
letter-spacing: 0.08em !important;
|
|
@@ -3186,6 +3260,9 @@ button:is([data-ac-ds], [data-ac-ds] *), input:where([type="button"], [type="res
|
|
|
3186
3260
|
.whitespace-pre:where([data-ac-ds], [data-ac-ds] *) {
|
|
3187
3261
|
white-space: pre !important;
|
|
3188
3262
|
}
|
|
3263
|
+
.text-background:where([data-ac-ds], [data-ac-ds] *) {
|
|
3264
|
+
color: var(--color-background) !important;
|
|
3265
|
+
}
|
|
3189
3266
|
.text-body:where([data-ac-ds], [data-ac-ds] *) {
|
|
3190
3267
|
color: var(--color-body) !important;
|
|
3191
3268
|
}
|
|
@@ -3944,6 +4021,14 @@ button:is([data-ac-ds], [data-ac-ds] *), input:where([type="button"], [type="res
|
|
|
3944
4021
|
border-width: 0px !important;
|
|
3945
4022
|
}
|
|
3946
4023
|
@media (hover: hover) {
|
|
4024
|
+
.group-hover\:border-primary\/60:is(:where(.group):hover *):where([data-ac-ds], [data-ac-ds] *) {
|
|
4025
|
+
border-color: color-mix(in srgb, hsl(var(--primary-hue) var(--primary-saturation) var(--primary-light)) 60%, transparent) !important;
|
|
4026
|
+
}
|
|
4027
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
4028
|
+
.group-hover\:border-primary\/60:is(:where(.group):hover *):where([data-ac-ds], [data-ac-ds] *) {
|
|
4029
|
+
border-color: color-mix(in oklab, var(--color-primary) 60%, transparent) !important;
|
|
4030
|
+
}
|
|
4031
|
+
}
|
|
3947
4032
|
.group-hover\:text-heading:is(:where(.group):hover *):where([data-ac-ds], [data-ac-ds] *) {
|
|
3948
4033
|
color: var(--color-heading) !important;
|
|
3949
4034
|
}
|
|
@@ -4174,6 +4259,14 @@ button:is([data-ac-ds], [data-ac-ds] *), input:where([type="button"], [type="res
|
|
|
4174
4259
|
background-color: color-mix(in oklab, var(--color-accent) 60%, transparent) !important;
|
|
4175
4260
|
}
|
|
4176
4261
|
}
|
|
4262
|
+
.hover\:bg-body\/90:hover:where([data-ac-ds], [data-ac-ds] *) {
|
|
4263
|
+
background-color: color-mix(in srgb, #252525 90%, transparent) !important;
|
|
4264
|
+
}
|
|
4265
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
4266
|
+
.hover\:bg-body\/90:hover:where([data-ac-ds], [data-ac-ds] *) {
|
|
4267
|
+
background-color: color-mix(in oklab, var(--color-body) 90%, transparent) !important;
|
|
4268
|
+
}
|
|
4269
|
+
}
|
|
4177
4270
|
.hover\:bg-current\/10:hover:where([data-ac-ds], [data-ac-ds] *) {
|
|
4178
4271
|
background-color: currentcolor !important;
|
|
4179
4272
|
}
|
|
@@ -4201,6 +4294,14 @@ button:is([data-ac-ds], [data-ac-ds] *), input:where([type="button"], [type="res
|
|
|
4201
4294
|
background-color: color-mix(in oklab, var(--color-danger) 10%, transparent) !important;
|
|
4202
4295
|
}
|
|
4203
4296
|
}
|
|
4297
|
+
.hover\:bg-danger\/12:hover:where([data-ac-ds], [data-ac-ds] *) {
|
|
4298
|
+
background-color: color-mix(in srgb, #ef4444 12%, transparent) !important;
|
|
4299
|
+
}
|
|
4300
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
4301
|
+
.hover\:bg-danger\/12:hover:where([data-ac-ds], [data-ac-ds] *) {
|
|
4302
|
+
background-color: color-mix(in oklab, var(--color-danger) 12%, transparent) !important;
|
|
4303
|
+
}
|
|
4304
|
+
}
|
|
4204
4305
|
.hover\:bg-danger\/18:hover:where([data-ac-ds], [data-ac-ds] *) {
|
|
4205
4306
|
background-color: color-mix(in srgb, #ef4444 18%, transparent) !important;
|
|
4206
4307
|
}
|
|
@@ -4228,6 +4329,14 @@ button:is([data-ac-ds], [data-ac-ds] *), input:where([type="button"], [type="res
|
|
|
4228
4329
|
background-color: color-mix(in oklab, var(--color-info) 10%, transparent) !important;
|
|
4229
4330
|
}
|
|
4230
4331
|
}
|
|
4332
|
+
.hover\:bg-info\/12:hover:where([data-ac-ds], [data-ac-ds] *) {
|
|
4333
|
+
background-color: color-mix(in srgb, #0069ff 12%, transparent) !important;
|
|
4334
|
+
}
|
|
4335
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
4336
|
+
.hover\:bg-info\/12:hover:where([data-ac-ds], [data-ac-ds] *) {
|
|
4337
|
+
background-color: color-mix(in oklab, var(--color-info) 12%, transparent) !important;
|
|
4338
|
+
}
|
|
4339
|
+
}
|
|
4231
4340
|
.hover\:bg-info\/18:hover:where([data-ac-ds], [data-ac-ds] *) {
|
|
4232
4341
|
background-color: color-mix(in srgb, #0069ff 18%, transparent) !important;
|
|
4233
4342
|
}
|
|
@@ -4255,6 +4364,14 @@ button:is([data-ac-ds], [data-ac-ds] *), input:where([type="button"], [type="res
|
|
|
4255
4364
|
background-color: color-mix(in oklab, var(--color-primary) 10%, transparent) !important;
|
|
4256
4365
|
}
|
|
4257
4366
|
}
|
|
4367
|
+
.hover\:bg-primary\/12:hover:where([data-ac-ds], [data-ac-ds] *) {
|
|
4368
|
+
background-color: color-mix(in srgb, hsl(var(--primary-hue) var(--primary-saturation) var(--primary-light)) 12%, transparent) !important;
|
|
4369
|
+
}
|
|
4370
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
4371
|
+
.hover\:bg-primary\/12:hover:where([data-ac-ds], [data-ac-ds] *) {
|
|
4372
|
+
background-color: color-mix(in oklab, var(--color-primary) 12%, transparent) !important;
|
|
4373
|
+
}
|
|
4374
|
+
}
|
|
4258
4375
|
.hover\:bg-primary\/18:hover:where([data-ac-ds], [data-ac-ds] *) {
|
|
4259
4376
|
background-color: color-mix(in srgb, hsl(var(--primary-hue) var(--primary-saturation) var(--primary-light)) 18%, transparent) !important;
|
|
4260
4377
|
}
|
|
@@ -4277,6 +4394,14 @@ button:is([data-ac-ds], [data-ac-ds] *), input:where([type="button"], [type="res
|
|
|
4277
4394
|
background-color: color-mix(in oklab, var(--color-success) 10%, transparent) !important;
|
|
4278
4395
|
}
|
|
4279
4396
|
}
|
|
4397
|
+
.hover\:bg-success\/12:hover:where([data-ac-ds], [data-ac-ds] *) {
|
|
4398
|
+
background-color: color-mix(in srgb, #00a651 12%, transparent) !important;
|
|
4399
|
+
}
|
|
4400
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
4401
|
+
.hover\:bg-success\/12:hover:where([data-ac-ds], [data-ac-ds] *) {
|
|
4402
|
+
background-color: color-mix(in oklab, var(--color-success) 12%, transparent) !important;
|
|
4403
|
+
}
|
|
4404
|
+
}
|
|
4280
4405
|
.hover\:bg-success\/18:hover:where([data-ac-ds], [data-ac-ds] *) {
|
|
4281
4406
|
background-color: color-mix(in srgb, #00a651 18%, transparent) !important;
|
|
4282
4407
|
}
|
|
@@ -4331,6 +4456,14 @@ button:is([data-ac-ds], [data-ac-ds] *), input:where([type="button"], [type="res
|
|
|
4331
4456
|
background-color: color-mix(in oklab, var(--color-warning) 10%, transparent) !important;
|
|
4332
4457
|
}
|
|
4333
4458
|
}
|
|
4459
|
+
.hover\:bg-warning\/12:hover:where([data-ac-ds], [data-ac-ds] *) {
|
|
4460
|
+
background-color: color-mix(in srgb, #f59e0b 12%, transparent) !important;
|
|
4461
|
+
}
|
|
4462
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
4463
|
+
.hover\:bg-warning\/12:hover:where([data-ac-ds], [data-ac-ds] *) {
|
|
4464
|
+
background-color: color-mix(in oklab, var(--color-warning) 12%, transparent) !important;
|
|
4465
|
+
}
|
|
4466
|
+
}
|
|
4334
4467
|
.hover\:bg-warning\/18:hover:where([data-ac-ds], [data-ac-ds] *) {
|
|
4335
4468
|
background-color: color-mix(in srgb, #f59e0b 18%, transparent) !important;
|
|
4336
4469
|
}
|
|
@@ -4549,6 +4682,9 @@ button:is([data-ac-ds], [data-ac-ds] *), input:where([type="button"], [type="res
|
|
|
4549
4682
|
.disabled\:cursor-not-allowed:disabled:where([data-ac-ds], [data-ac-ds] *) {
|
|
4550
4683
|
cursor: not-allowed !important;
|
|
4551
4684
|
}
|
|
4685
|
+
.disabled\:cursor-wait:disabled:where([data-ac-ds], [data-ac-ds] *) {
|
|
4686
|
+
cursor: wait !important;
|
|
4687
|
+
}
|
|
4552
4688
|
.disabled\:bg-surface-sunken:disabled:where([data-ac-ds], [data-ac-ds] *) {
|
|
4553
4689
|
background-color: var(--color-surface-sunken) !important;
|
|
4554
4690
|
}
|
|
@@ -4681,6 +4817,20 @@ button:is([data-ac-ds], [data-ac-ds] *), input:where([type="button"], [type="res
|
|
|
4681
4817
|
.has-\[input\:focus-visible\]\:ring-offset-surface:has(:is(input:focus-visible)):where([data-ac-ds], [data-ac-ds] *) {
|
|
4682
4818
|
--tw-ring-offset-color: var(--color-surface) !important;
|
|
4683
4819
|
}
|
|
4820
|
+
.has-\[\>span\>input\[type\=radio\]\:focus-visible\]\:ring-2:has( > span > input[type=radio]:focus-visible):where([data-ac-ds], [data-ac-ds] *) {
|
|
4821
|
+
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor) !important;
|
|
4822
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow) !important;
|
|
4823
|
+
}
|
|
4824
|
+
.has-\[\>span\>input\[type\=radio\]\:focus-visible\]\:ring-ring:has( > span > input[type=radio]:focus-visible):where([data-ac-ds], [data-ac-ds] *) {
|
|
4825
|
+
--tw-ring-color: var(--color-ring) !important;
|
|
4826
|
+
}
|
|
4827
|
+
.has-\[\>span\>input\[type\=radio\]\:focus-visible\]\:ring-offset-2:has( > span > input[type=radio]:focus-visible):where([data-ac-ds], [data-ac-ds] *) {
|
|
4828
|
+
--tw-ring-offset-width: 2px !important;
|
|
4829
|
+
--tw-ring-offset-shadow: var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;
|
|
4830
|
+
}
|
|
4831
|
+
.has-\[\>span\>input\[type\=radio\]\:focus-visible\]\:ring-offset-background:has( > span > input[type=radio]:focus-visible):where([data-ac-ds], [data-ac-ds] *) {
|
|
4832
|
+
--tw-ring-offset-color: var(--color-background) !important;
|
|
4833
|
+
}
|
|
4684
4834
|
.aria-disabled\:pointer-events-none[aria-disabled="true"]:where([data-ac-ds], [data-ac-ds] *) {
|
|
4685
4835
|
pointer-events: none !important;
|
|
4686
4836
|
}
|
|
@@ -5051,6 +5201,9 @@ button:is([data-ac-ds], [data-ac-ds] *), input:where([type="button"], [type="res
|
|
|
5051
5201
|
.md\:h-11:where([data-ac-ds], [data-ac-ds] *) {
|
|
5052
5202
|
height: calc(var(--spacing) * 11) !important;
|
|
5053
5203
|
}
|
|
5204
|
+
.md\:h-13:where([data-ac-ds], [data-ac-ds] *) {
|
|
5205
|
+
height: calc(var(--spacing) * 13) !important;
|
|
5206
|
+
}
|
|
5054
5207
|
.md\:w-60:where([data-ac-ds], [data-ac-ds] *) {
|
|
5055
5208
|
width: calc(var(--spacing) * 60) !important;
|
|
5056
5209
|
}
|
|
@@ -5060,6 +5213,18 @@ button:is([data-ac-ds], [data-ac-ds] *), input:where([type="button"], [type="res
|
|
|
5060
5213
|
.md\:grid-cols-\[minmax\(0\,1fr\)_minmax\(0\,2fr\)\]:where([data-ac-ds], [data-ac-ds] *) {
|
|
5061
5214
|
grid-template-columns: minmax(0,1fr) minmax(0,2fr) !important;
|
|
5062
5215
|
}
|
|
5216
|
+
.md\:flex-row:where([data-ac-ds], [data-ac-ds] *) {
|
|
5217
|
+
flex-direction: row !important;
|
|
5218
|
+
}
|
|
5219
|
+
.md\:items-start:where([data-ac-ds], [data-ac-ds] *) {
|
|
5220
|
+
align-items: flex-start !important;
|
|
5221
|
+
}
|
|
5222
|
+
.md\:justify-between:where([data-ac-ds], [data-ac-ds] *) {
|
|
5223
|
+
justify-content: space-between !important;
|
|
5224
|
+
}
|
|
5225
|
+
.md\:gap-4:where([data-ac-ds], [data-ac-ds] *) {
|
|
5226
|
+
gap: calc(var(--spacing) * 4) !important;
|
|
5227
|
+
}
|
|
5063
5228
|
.md\:gap-10:where([data-ac-ds], [data-ac-ds] *) {
|
|
5064
5229
|
gap: calc(var(--spacing) * 10) !important;
|
|
5065
5230
|
}
|
|
@@ -5109,6 +5274,9 @@ button:is([data-ac-ds], [data-ac-ds] *), input:where([type="button"], [type="res
|
|
|
5109
5274
|
.lg\:w-80:where([data-ac-ds], [data-ac-ds] *) {
|
|
5110
5275
|
width: calc(var(--spacing) * 80) !important;
|
|
5111
5276
|
}
|
|
5277
|
+
.lg\:w-\[120px\]:where([data-ac-ds], [data-ac-ds] *) {
|
|
5278
|
+
width: 120px !important;
|
|
5279
|
+
}
|
|
5112
5280
|
.lg\:flex-row:where([data-ac-ds], [data-ac-ds] *) {
|
|
5113
5281
|
flex-direction: row !important;
|
|
5114
5282
|
}
|
|
@@ -5121,6 +5289,9 @@ button:is([data-ac-ds], [data-ac-ds] *), input:where([type="button"], [type="res
|
|
|
5121
5289
|
.lg\:py-16:where([data-ac-ds], [data-ac-ds] *) {
|
|
5122
5290
|
padding-block: calc(var(--spacing) * 16) !important;
|
|
5123
5291
|
}
|
|
5292
|
+
.lg\:pl-52:where([data-ac-ds], [data-ac-ds] *) {
|
|
5293
|
+
padding-left: calc(var(--spacing) * 52) !important;
|
|
5294
|
+
}
|
|
5124
5295
|
.lg\:text-\[60px\]:where([data-ac-ds], [data-ac-ds] *) {
|
|
5125
5296
|
font-size: 60px !important;
|
|
5126
5297
|
}
|
|
@@ -5132,6 +5303,9 @@ button:is([data-ac-ds], [data-ac-ds] *), input:where([type="button"], [type="res
|
|
|
5132
5303
|
.xl\:w-96:where([data-ac-ds], [data-ac-ds] *) {
|
|
5133
5304
|
width: calc(var(--spacing) * 96) !important;
|
|
5134
5305
|
}
|
|
5306
|
+
.xl\:pl-64:where([data-ac-ds], [data-ac-ds] *) {
|
|
5307
|
+
padding-left: calc(var(--spacing) * 64) !important;
|
|
5308
|
+
}
|
|
5135
5309
|
}
|
|
5136
5310
|
@container (width < 768px) {
|
|
5137
5311
|
.\@max-3xl\:hidden:where([data-ac-ds], [data-ac-ds] *) {
|
|
@@ -5287,6 +5461,10 @@ button:is([data-ac-ds], [data-ac-ds] *), input:where([type="button"], [type="res
|
|
|
5287
5461
|
width: calc(var(--spacing) * 8) !important;
|
|
5288
5462
|
height: calc(var(--spacing) * 8) !important;
|
|
5289
5463
|
}
|
|
5464
|
+
.\[\&_svg\]\:size-24\! svg:where([data-ac-ds], [data-ac-ds] *) {
|
|
5465
|
+
width: calc(var(--spacing) * 24) !important;
|
|
5466
|
+
height: calc(var(--spacing) * 24) !important;
|
|
5467
|
+
}
|
|
5290
5468
|
.\[\&_svg\]\:animate-spin svg:where([data-ac-ds], [data-ac-ds] *) {
|
|
5291
5469
|
animation: var(--animate-spin) !important;
|
|
5292
5470
|
}
|
|
@@ -5389,6 +5567,35 @@ button:is([data-ac-ds], [data-ac-ds] *), input:where([type="button"], [type="res
|
|
|
5389
5567
|
.\[\&\>svg\]\:text-muted > svg:where([data-ac-ds], [data-ac-ds] *) {
|
|
5390
5568
|
color: var(--color-muted) !important;
|
|
5391
5569
|
}
|
|
5570
|
+
:where(.\[\:where\(\&\)\]\:bg-danger\/5):where([data-ac-ds], [data-ac-ds] *) {
|
|
5571
|
+
background-color: color-mix(in srgb, #ef4444 5%, transparent) !important;
|
|
5572
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
5573
|
+
background-color: color-mix(in oklab, var(--color-danger) 5%, transparent) !important;
|
|
5574
|
+
}
|
|
5575
|
+
}
|
|
5576
|
+
:where(.\[\:where\(\&\)\]\:bg-surface):where([data-ac-ds], [data-ac-ds] *) {
|
|
5577
|
+
background-color: var(--color-surface) !important;
|
|
5578
|
+
}
|
|
5579
|
+
:where(.\[\:where\(\&\)\]\:bg-surface-sunken\/40):where([data-ac-ds], [data-ac-ds] *) {
|
|
5580
|
+
background-color: color-mix(in srgb, #f0f0f0 40%, transparent) !important;
|
|
5581
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
5582
|
+
background-color: color-mix(in oklab, var(--color-surface-sunken) 40%, transparent) !important;
|
|
5583
|
+
}
|
|
5584
|
+
}
|
|
5585
|
+
:where(.\[\:where\(\&\)\]\:bg-transparent):where([data-ac-ds], [data-ac-ds] *) {
|
|
5586
|
+
background-color: transparent !important;
|
|
5587
|
+
}
|
|
5588
|
+
:where(.\[\:where\(\&\)_svg\]\:size-3\.5) svg:where([data-ac-ds], [data-ac-ds] *) {
|
|
5589
|
+
width: calc(var(--spacing) * 3.5) !important;
|
|
5590
|
+
height: calc(var(--spacing) * 3.5) !important;
|
|
5591
|
+
}
|
|
5592
|
+
:where(.\[\:where\(\&\)_svg\]\:size-4) svg:where([data-ac-ds], [data-ac-ds] *) {
|
|
5593
|
+
width: calc(var(--spacing) * 4) !important;
|
|
5594
|
+
height: calc(var(--spacing) * 4) !important;
|
|
5595
|
+
}
|
|
5596
|
+
[data-testid=ac-sidebar-section] + .\[\[data-testid\=ac-sidebar-section\]\+\&\]\:mt-2\.5:where([data-ac-ds], [data-ac-ds] *) {
|
|
5597
|
+
margin-top: calc(var(--spacing) * 2.5) !important;
|
|
5598
|
+
}
|
|
5392
5599
|
[data-testid=ac-sidebar-section] + .\[\[data-testid\=ac-sidebar-section\]\+\&\]\:mt-5:where([data-ac-ds], [data-ac-ds] *) {
|
|
5393
5600
|
margin-top: calc(var(--spacing) * 5) !important;
|
|
5394
5601
|
}
|
|
@@ -5405,6 +5612,9 @@ button:is([data-ac-ds], [data-ac-ds] *), input:where([type="button"], [type="res
|
|
|
5405
5612
|
[data-testid=ac-sidebar-section] + .\[\[data-testid\=ac-sidebar-section\]\+\&\]\:pt-4:where([data-ac-ds], [data-ac-ds] *) {
|
|
5406
5613
|
padding-top: calc(var(--spacing) * 4) !important;
|
|
5407
5614
|
}
|
|
5615
|
+
[data-testid=ac-sidebar-section][data-closed] + .\[\[data-testid\=ac-sidebar-section\]\[data-closed\]\+\&\]\:mt-0:where([data-ac-ds], [data-ac-ds] *) {
|
|
5616
|
+
margin-top: 0px !important;
|
|
5617
|
+
}
|
|
5408
5618
|
tr:last-child .\[tr\:last-child_\&\]\:border-0:where([data-ac-ds], [data-ac-ds] *) {
|
|
5409
5619
|
border-style: var(--tw-border-style) !important;
|
|
5410
5620
|
border-width: 0px !important;
|
|
@@ -2,13 +2,13 @@ import type { Tone, Variant } from "./types";
|
|
|
2
2
|
export interface Props {
|
|
3
3
|
/** Text label. You can also pass content through the default slot. */
|
|
4
4
|
title?: string;
|
|
5
|
-
/** Colour of the button. `white` and `ghost` are neutral styles
|
|
6
|
-
color?: Tone | "white" | "ghost";
|
|
7
|
-
/** `solid` fill, `light` tinted fill (12% of the colour), `outlined` border on the page background, or `link`: coloured text with no box that underlines on hover, e.g. "Go to Health". */
|
|
8
|
-
variant?: Variant | "link";
|
|
9
|
-
/** Height and padding: `xs` 28px, `small` 36px, `normal` 42px (the field height, so a button lines up with an input), `medium` 42px with 16px text and 44px from 768px (cloud-ui's default `lg`). */
|
|
10
|
-
size?: "xs" | "small" | "normal" | "medium";
|
|
11
|
-
/** A round, square button for a single icon: 28px at `xs`, 32px at `small`, 36px at `normal`, 44px at `medium`. Put the icon in the `icon` or default slot; `title` becomes the accessible name, or add an `aria-label`. */
|
|
5
|
+
/** Colour of the button. `neutral` is a grey or near-black button that takes every `variant`; `white` and `ghost` are fixed neutral styles (the same as `neutral` with `outlined` and `ghost`). */
|
|
6
|
+
color?: Tone | "neutral" | "white" | "ghost";
|
|
7
|
+
/** `solid` fill, `light` tinted fill (12% of the colour), `subtle` a fainter 6% tint, `outlined` border on the page background, `ghost` no fill until hover, or `link`: coloured text with no box that underlines on hover, e.g. "Go to Health". */
|
|
8
|
+
variant?: Variant | "subtle" | "ghost" | "link";
|
|
9
|
+
/** Height and padding: `xs` 28px, `small` 36px, `normal` 42px (the field height, so a button lines up with an input), `medium` 42px with 16px text and 44px from 768px (cloud-ui's default `lg`), `xlarge` 48px with 16px text and 52px with 18px text from 768px (cloud-ui's `xl`). */
|
|
10
|
+
size?: "xs" | "small" | "normal" | "medium" | "xlarge";
|
|
11
|
+
/** A round, square button for a single icon: 28px at `xs`, 32px at `small`, 36px at `normal`, 44px at `medium`, 56px at `xlarge`. Put the icon in the `icon` or default slot; `title` becomes the accessible name, or add an `aria-label`. */
|
|
12
12
|
iconOnly?: boolean;
|
|
13
13
|
/** Shows a spinner before the label and blocks clicks. */
|
|
14
14
|
loading?: boolean;
|
|
@@ -20,11 +20,15 @@ export interface Props {
|
|
|
20
20
|
href?: string;
|
|
21
21
|
/** Fully rounded pill corners at every size and variant, e.g. an empty state's "Get started". */
|
|
22
22
|
rounded?: boolean;
|
|
23
|
+
/** With `variant="link"`, keeps the height, padding and corners of `size`, so a text link lines up with the buttons next to it. */
|
|
24
|
+
boxed?: boolean;
|
|
25
|
+
/** Native hover hint (the `title` attribute). Use it when the label comes from the default slot; the `title` prop is the visible label. */
|
|
26
|
+
hint?: string;
|
|
23
27
|
}
|
|
24
28
|
type __VLS_Slots = {
|
|
25
|
-
/** Button content, after the icon and `title`. */
|
|
29
|
+
/** Button content, after the icon and `title`. An icon here is 16px unless it has its own size class, e.g. `size-5`. */
|
|
26
30
|
default?: () => unknown;
|
|
27
|
-
/** A 16px icon before the label (an inline SVG or icon component). */
|
|
31
|
+
/** A 16px icon before the label (an inline SVG or icon component). A size class on the icon, e.g. `size-3.5`, wins. */
|
|
28
32
|
icon?: () => unknown;
|
|
29
33
|
/** A 16px icon after the label, e.g. an arrow or chevron. */
|
|
30
34
|
"icon-right"?: () => unknown;
|
|
@@ -34,16 +38,18 @@ declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, i
|
|
|
34
38
|
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
35
39
|
onClick?: ((e: MouseEvent) => any) | undefined;
|
|
36
40
|
}>, {
|
|
37
|
-
variant: Variant | "link";
|
|
41
|
+
variant: Variant | "subtle" | "ghost" | "link";
|
|
38
42
|
type: "button" | "submit" | "reset";
|
|
39
43
|
title: string;
|
|
40
44
|
disabled: boolean;
|
|
41
|
-
color: Tone | "white" | "ghost";
|
|
45
|
+
color: Tone | "neutral" | "white" | "ghost";
|
|
42
46
|
href: string;
|
|
43
|
-
size: "xs" | "small" | "normal" | "medium";
|
|
47
|
+
size: "xs" | "small" | "normal" | "medium" | "xlarge";
|
|
44
48
|
iconOnly: boolean;
|
|
45
49
|
loading: boolean;
|
|
46
50
|
rounded: boolean;
|
|
51
|
+
boxed: boolean;
|
|
52
|
+
hint: string;
|
|
47
53
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
48
54
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
49
55
|
declare const _default: typeof __VLS_export;
|