@ac-design/design-system 2.9.1 → 2.10.1

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.
@@ -1118,6 +1118,9 @@ button:is([data-ac-ds], [data-ac-ds] *), input:where([type="button"], [type="res
1118
1118
  .w-1\/4:where([data-ac-ds], [data-ac-ds] *) {
1119
1119
  width: calc(1 / 4 * 100%) !important;
1120
1120
  }
1121
+ .w-2:where([data-ac-ds], [data-ac-ds] *) {
1122
+ width: calc(var(--spacing) * 2) !important;
1123
+ }
1121
1124
  .w-2\/5:where([data-ac-ds], [data-ac-ds] *) {
1122
1125
  width: calc(2 / 5 * 100%) !important;
1123
1126
  }
@@ -1331,6 +1334,9 @@ button:is([data-ac-ds], [data-ac-ds] *), input:where([type="button"], [type="res
1331
1334
  .min-w-0:where([data-ac-ds], [data-ac-ds] *) {
1332
1335
  min-width: 0px !important;
1333
1336
  }
1337
+ .min-w-1:where([data-ac-ds], [data-ac-ds] *) {
1338
+ min-width: var(--spacing) !important;
1339
+ }
1334
1340
  .min-w-4:where([data-ac-ds], [data-ac-ds] *) {
1335
1341
  min-width: calc(var(--spacing) * 4) !important;
1336
1342
  }
@@ -1391,6 +1397,9 @@ button:is([data-ac-ds], [data-ac-ds] *), input:where([type="button"], [type="res
1391
1397
  .grow:where([data-ac-ds], [data-ac-ds] *) {
1392
1398
  flex-grow: 1 !important;
1393
1399
  }
1400
+ .basis-0:where([data-ac-ds], [data-ac-ds] *) {
1401
+ flex-basis: 0px !important;
1402
+ }
1394
1403
  .basis-\[80px\]:where([data-ac-ds], [data-ac-ds] *) {
1395
1404
  flex-basis: 80px !important;
1396
1405
  }
@@ -2144,6 +2153,9 @@ button:is([data-ac-ds], [data-ac-ds] *), input:where([type="button"], [type="res
2144
2153
  border-color: color-mix(in oklab, var(--color-success) 40%, transparent) !important;
2145
2154
  }
2146
2155
  }
2156
+ .border-surface:where([data-ac-ds], [data-ac-ds] *) {
2157
+ border-color: var(--color-surface) !important;
2158
+ }
2147
2159
  .border-transparent:where([data-ac-ds], [data-ac-ds] *) {
2148
2160
  border-color: transparent !important;
2149
2161
  }
@@ -2264,24 +2276,66 @@ button:is([data-ac-ds], [data-ac-ds] *), input:where([type="button"], [type="res
2264
2276
  .bg-chart-1:where([data-ac-ds], [data-ac-ds] *) {
2265
2277
  background-color: var(--color-chart-1) !important;
2266
2278
  }
2279
+ .bg-chart-1\/50:where([data-ac-ds], [data-ac-ds] *) {
2280
+ background-color: color-mix(in srgb, hsl(var(--primary-hue) var(--primary-saturation) var(--primary-light)) 50%, transparent) !important;
2281
+ @supports (color: color-mix(in lab, red, red)) {
2282
+ background-color: color-mix(in oklab, var(--color-chart-1) 50%, transparent) !important;
2283
+ }
2284
+ }
2267
2285
  .bg-chart-2:where([data-ac-ds], [data-ac-ds] *) {
2268
2286
  background-color: var(--color-chart-2) !important;
2269
2287
  }
2288
+ .bg-chart-2\/50:where([data-ac-ds], [data-ac-ds] *) {
2289
+ background-color: color-mix(in srgb, #0069ff 50%, transparent) !important;
2290
+ @supports (color: color-mix(in lab, red, red)) {
2291
+ background-color: color-mix(in oklab, var(--color-chart-2) 50%, transparent) !important;
2292
+ }
2293
+ }
2270
2294
  .bg-chart-3:where([data-ac-ds], [data-ac-ds] *) {
2271
2295
  background-color: var(--color-chart-3) !important;
2272
2296
  }
2297
+ .bg-chart-3\/50:where([data-ac-ds], [data-ac-ds] *) {
2298
+ background-color: color-mix(in srgb, #d97706 50%, transparent) !important;
2299
+ @supports (color: color-mix(in lab, red, red)) {
2300
+ background-color: color-mix(in oklab, var(--color-chart-3) 50%, transparent) !important;
2301
+ }
2302
+ }
2273
2303
  .bg-chart-4:where([data-ac-ds], [data-ac-ds] *) {
2274
2304
  background-color: var(--color-chart-4) !important;
2275
2305
  }
2306
+ .bg-chart-4\/50:where([data-ac-ds], [data-ac-ds] *) {
2307
+ background-color: color-mix(in srgb, #8b5cf6 50%, transparent) !important;
2308
+ @supports (color: color-mix(in lab, red, red)) {
2309
+ background-color: color-mix(in oklab, var(--color-chart-4) 50%, transparent) !important;
2310
+ }
2311
+ }
2276
2312
  .bg-chart-5:where([data-ac-ds], [data-ac-ds] *) {
2277
2313
  background-color: var(--color-chart-5) !important;
2278
2314
  }
2315
+ .bg-chart-5\/50:where([data-ac-ds], [data-ac-ds] *) {
2316
+ background-color: color-mix(in srgb, #ef4444 50%, transparent) !important;
2317
+ @supports (color: color-mix(in lab, red, red)) {
2318
+ background-color: color-mix(in oklab, var(--color-chart-5) 50%, transparent) !important;
2319
+ }
2320
+ }
2279
2321
  .bg-chart-6:where([data-ac-ds], [data-ac-ds] *) {
2280
2322
  background-color: var(--color-chart-6) !important;
2281
2323
  }
2324
+ .bg-chart-6\/50:where([data-ac-ds], [data-ac-ds] *) {
2325
+ background-color: color-mix(in srgb, #0891b2 50%, transparent) !important;
2326
+ @supports (color: color-mix(in lab, red, red)) {
2327
+ background-color: color-mix(in oklab, var(--color-chart-6) 50%, transparent) !important;
2328
+ }
2329
+ }
2282
2330
  .bg-chart-7:where([data-ac-ds], [data-ac-ds] *) {
2283
2331
  background-color: var(--color-chart-7) !important;
2284
2332
  }
2333
+ .bg-chart-7\/50:where([data-ac-ds], [data-ac-ds] *) {
2334
+ background-color: color-mix(in srgb, #737373 50%, transparent) !important;
2335
+ @supports (color: color-mix(in lab, red, red)) {
2336
+ background-color: color-mix(in oklab, var(--color-chart-7) 50%, transparent) !important;
2337
+ }
2338
+ }
2285
2339
  .bg-chart-8:where([data-ac-ds], [data-ac-ds] *) {
2286
2340
  background-color: var(--color-chart-8) !important;
2287
2341
  }
@@ -2324,6 +2378,12 @@ button:is([data-ac-ds], [data-ac-ds] *), input:where([type="button"], [type="res
2324
2378
  background-color: color-mix(in oklab, var(--color-danger) 15%, transparent) !important;
2325
2379
  }
2326
2380
  }
2381
+ .bg-danger\/50:where([data-ac-ds], [data-ac-ds] *) {
2382
+ background-color: color-mix(in srgb, #ef4444 50%, transparent) !important;
2383
+ @supports (color: color-mix(in lab, red, red)) {
2384
+ background-color: color-mix(in oklab, var(--color-danger) 50%, transparent) !important;
2385
+ }
2386
+ }
2327
2387
  .bg-danger\/80:where([data-ac-ds], [data-ac-ds] *) {
2328
2388
  background-color: color-mix(in srgb, #ef4444 80%, transparent) !important;
2329
2389
  @supports (color: color-mix(in lab, red, red)) {
@@ -2366,6 +2426,12 @@ button:is([data-ac-ds], [data-ac-ds] *), input:where([type="button"], [type="res
2366
2426
  background-color: color-mix(in oklab, var(--color-info) 15%, transparent) !important;
2367
2427
  }
2368
2428
  }
2429
+ .bg-info\/50:where([data-ac-ds], [data-ac-ds] *) {
2430
+ background-color: color-mix(in srgb, #0069ff 50%, transparent) !important;
2431
+ @supports (color: color-mix(in lab, red, red)) {
2432
+ background-color: color-mix(in oklab, var(--color-info) 50%, transparent) !important;
2433
+ }
2434
+ }
2369
2435
  .bg-info\/80:where([data-ac-ds], [data-ac-ds] *) {
2370
2436
  background-color: color-mix(in srgb, #0069ff 80%, transparent) !important;
2371
2437
  @supports (color: color-mix(in lab, red, red)) {
@@ -2411,6 +2477,12 @@ button:is([data-ac-ds], [data-ac-ds] *), input:where([type="button"], [type="res
2411
2477
  background-color: color-mix(in oklab, var(--color-pending) 15%, transparent) !important;
2412
2478
  }
2413
2479
  }
2480
+ .bg-pending\/50:where([data-ac-ds], [data-ac-ds] *) {
2481
+ background-color: color-mix(in srgb, #8b5cf6 50%, transparent) !important;
2482
+ @supports (color: color-mix(in lab, red, red)) {
2483
+ background-color: color-mix(in oklab, var(--color-pending) 50%, transparent) !important;
2484
+ }
2485
+ }
2414
2486
  .bg-primary:where([data-ac-ds], [data-ac-ds] *) {
2415
2487
  background-color: var(--color-primary) !important;
2416
2488
  }
@@ -2462,6 +2534,12 @@ button:is([data-ac-ds], [data-ac-ds] *), input:where([type="button"], [type="res
2462
2534
  background-color: color-mix(in oklab, var(--color-primary) 20%, transparent) !important;
2463
2535
  }
2464
2536
  }
2537
+ .bg-primary\/50:where([data-ac-ds], [data-ac-ds] *) {
2538
+ background-color: color-mix(in srgb, hsl(var(--primary-hue) var(--primary-saturation) var(--primary-light)) 50%, transparent) !important;
2539
+ @supports (color: color-mix(in lab, red, red)) {
2540
+ background-color: color-mix(in oklab, var(--color-primary) 50%, transparent) !important;
2541
+ }
2542
+ }
2465
2543
  .bg-primary\/80:where([data-ac-ds], [data-ac-ds] *) {
2466
2544
  background-color: color-mix(in srgb, hsl(var(--primary-hue) var(--primary-saturation) var(--primary-light)) 80%, transparent) !important;
2467
2545
  @supports (color: color-mix(in lab, red, red)) {
@@ -2534,6 +2612,12 @@ button:is([data-ac-ds], [data-ac-ds] *), input:where([type="button"], [type="res
2534
2612
  background-color: color-mix(in oklab, var(--color-success) 15%, transparent) !important;
2535
2613
  }
2536
2614
  }
2615
+ .bg-success\/50:where([data-ac-ds], [data-ac-ds] *) {
2616
+ background-color: color-mix(in srgb, #00a651 50%, transparent) !important;
2617
+ @supports (color: color-mix(in lab, red, red)) {
2618
+ background-color: color-mix(in oklab, var(--color-success) 50%, transparent) !important;
2619
+ }
2620
+ }
2537
2621
  .bg-success\/80:where([data-ac-ds], [data-ac-ds] *) {
2538
2622
  background-color: color-mix(in srgb, #00a651 80%, transparent) !important;
2539
2623
  @supports (color: color-mix(in lab, red, red)) {
@@ -2636,6 +2720,12 @@ button:is([data-ac-ds], [data-ac-ds] *), input:where([type="button"], [type="res
2636
2720
  background-color: color-mix(in oklab, var(--color-warning) 20%, transparent) !important;
2637
2721
  }
2638
2722
  }
2723
+ .bg-warning\/50:where([data-ac-ds], [data-ac-ds] *) {
2724
+ background-color: color-mix(in srgb, #f59e0b 50%, transparent) !important;
2725
+ @supports (color: color-mix(in lab, red, red)) {
2726
+ background-color: color-mix(in oklab, var(--color-warning) 50%, transparent) !important;
2727
+ }
2728
+ }
2639
2729
  .bg-warning\/90:where([data-ac-ds], [data-ac-ds] *) {
2640
2730
  background-color: color-mix(in srgb, #f59e0b 90%, transparent) !important;
2641
2731
  @supports (color: color-mix(in lab, red, red)) {
@@ -3073,6 +3163,9 @@ button:is([data-ac-ds], [data-ac-ds] *), input:where([type="button"], [type="res
3073
3163
  .py-20:where([data-ac-ds], [data-ac-ds] *) {
3074
3164
  padding-block: calc(var(--spacing) * 20) !important;
3075
3165
  }
3166
+ .py-\[3px\]:where([data-ac-ds], [data-ac-ds] *) {
3167
+ padding-block: 3px !important;
3168
+ }
3076
3169
  .py-\[5px\]:where([data-ac-ds], [data-ac-ds] *) {
3077
3170
  padding-block: 5px !important;
3078
3171
  }
@@ -4011,6 +4104,11 @@ button:is([data-ac-ds], [data-ac-ds] *), input:where([type="button"], [type="res
4011
4104
  transition-timing-function: var(--tw-ease, var(--default-transition-timing-function)) !important;
4012
4105
  transition-duration: var(--tw-duration, var(--default-transition-duration)) !important;
4013
4106
  }
4107
+ .transition-\[flex-grow\]:where([data-ac-ds], [data-ac-ds] *) {
4108
+ transition-property: flex-grow !important;
4109
+ transition-timing-function: var(--tw-ease, var(--default-transition-timing-function)) !important;
4110
+ transition-duration: var(--tw-duration, var(--default-transition-duration)) !important;
4111
+ }
4014
4112
  .transition-\[grid-template-rows\,opacity\,translate\]:where([data-ac-ds], [data-ac-ds] *) {
4015
4113
  transition-property: grid-template-rows,opacity,translate !important;
4016
4114
  transition-timing-function: var(--tw-ease, var(--default-transition-timing-function)) !important;
@@ -67,7 +67,7 @@ var ae = {
67
67
  },
68
68
  {
69
69
  name: "db",
70
- title: "KubeDB",
70
+ title: "DB",
71
71
  port: "5996",
72
72
  subtitle: "Manage your databases",
73
73
  iconUrl: "https://cdn.appscode.com/images/products/kubedb/kubedb-512x512_1.svg"
@@ -0,0 +1,5 @@
1
+ import e from "./AcCombobox.vue_vue_type_script_setup_true_lang.js";
2
+ //#region src/lib/components/AcCombobox.vue
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -0,0 +1,121 @@
1
+ import type { HTMLAttributes } from "vue";
2
+ export interface ComboboxOption {
3
+ /** Text written to `v-model` when the option is picked. */
4
+ value: string;
5
+ /** Text shown in the list. Defaults to `value`. */
6
+ label?: string;
7
+ /** Second line under the label, e.g. "256 addresses". */
8
+ description?: string;
9
+ /** Greys the option out so it can't be picked. */
10
+ disabled?: boolean;
11
+ }
12
+ export interface Props {
13
+ /** Suggestions: `{ value, label?, description?, disabled? }` objects or plain strings. */
14
+ options?: (ComboboxOption | string)[];
15
+ /** Label above the field. Also the accessible name of the field and the list. */
16
+ label?: string;
17
+ /** Classes for the label above the field, e.g. `@min-[401px]:sr-only` to hide it on wide layouts while screen readers still read it. */
18
+ labelClass?: HTMLAttributes["class"];
19
+ /** Example value shown inside the empty field, e.g. "10.0.1.0/24". */
20
+ placeholder?: string;
21
+ /** Help text between the label and the field. */
22
+ hint?: string;
23
+ /** Height: `small` 36px or `normal` 42px. */
24
+ size?: "small" | "normal";
25
+ /** Disables the field. */
26
+ disabled?: boolean;
27
+ /** Shows the value but blocks changes: a muted fill, and "(read only)" after the label. */
28
+ readonly?: boolean;
29
+ /** Marks the field required and adds a red asterisk. */
30
+ required?: boolean;
31
+ /** Adds the red asterisk without native `required`, for forms that run their own validation on submit. */
32
+ requiredMark?: boolean;
33
+ /** Error text under the field. Turns the border red and sets `aria-invalid`. */
34
+ errorMsg?: string;
35
+ /** Turns the border red and sets `aria-invalid` without a message, for forms that print their own. */
36
+ invalid?: boolean;
37
+ /** `true`: the typed text is the value, and options are suggestions. `false`: only an option can be chosen; text that matches no option is dropped when the field loses focus. */
38
+ allowCustom?: boolean;
39
+ /** Decides which options match the typed text: `(option, query) => boolean`. The default keeps options whose label or value contains the text, ignoring case. `false` shows every option, for lists the server already filtered. */
40
+ filter?: ((option: ComboboxOption, query: string) => boolean) | false;
41
+ /** Shows a spinner in the field while options load; the field stays usable. With no options yet, the list shows `loading-text`. */
42
+ loading?: boolean;
43
+ /** Text in the list while `loading` and no options are there yet. */
44
+ loadingText?: string;
45
+ /** Text shown when no option matches, in place of "No suggestions" and "No matches for “text”". */
46
+ emptyText?: string;
47
+ /** Opens the list when the field gets focus or is clicked. With `false`, typing, ↓ or the chevron opens it. */
48
+ openOnFocus?: boolean;
49
+ /** Side of the field the list opens on: `bottom` or `top`. It flips to the other side when there isn't room. */
50
+ placement?: "bottom" | "top";
51
+ /** Classes for the `<input>` element itself, e.g. `font-mono`. `class` goes on the wrapper. */
52
+ inputClass?: HTMLAttributes["class"];
53
+ }
54
+ type __VLS_Props = Props;
55
+ type __VLS_Slots = {
56
+ /** Custom option row. Receives the option and whether it's selected or highlighted. */
57
+ option?: (props: {
58
+ option: ComboboxOption;
59
+ selected: boolean;
60
+ active: boolean;
61
+ }) => unknown;
62
+ /** Content shown when no option matches. Receives the typed text. */
63
+ empty?: (props: {
64
+ query: string;
65
+ }) => unknown;
66
+ /** Content before the label text, e.g. an icon. */
67
+ "label-icon"?: () => unknown;
68
+ /** Content after the label text, e.g. "(Optional)". */
69
+ "label-extra"?: () => unknown;
70
+ /** Content under the field and its error, such as a note or a "Did you mean…" fix. */
71
+ message?: () => unknown;
72
+ };
73
+ type __VLS_ModelProps = {
74
+ modelValue?: string;
75
+ };
76
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
77
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
78
+ /** Moves focus to the input. */
79
+ focus: () => void | undefined;
80
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
81
+ search: (query: string) => any;
82
+ select: (option: ComboboxOption) => any;
83
+ "update:modelValue": (value: string) => any;
84
+ blur: (event: FocusEvent) => any;
85
+ focus: (event: FocusEvent) => any;
86
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
87
+ onSearch?: ((query: string) => any) | undefined;
88
+ onSelect?: ((option: ComboboxOption) => any) | undefined;
89
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
90
+ onBlur?: ((event: FocusEvent) => any) | undefined;
91
+ onFocus?: ((event: FocusEvent) => any) | undefined;
92
+ }>, {
93
+ required: boolean;
94
+ filter: ((option: ComboboxOption, query: string) => boolean) | false;
95
+ label: string;
96
+ disabled: boolean;
97
+ size: "small" | "normal";
98
+ placement: "bottom" | "top";
99
+ invalid: boolean;
100
+ loading: boolean;
101
+ hint: string;
102
+ readonly: boolean;
103
+ options: (ComboboxOption | string)[];
104
+ placeholder: string;
105
+ errorMsg: string;
106
+ labelClass: string | false | Record<string, any> | import("vue").ClassValue[] | null;
107
+ emptyText: string;
108
+ requiredMark: boolean;
109
+ allowCustom: boolean;
110
+ loadingText: string;
111
+ openOnFocus: boolean;
112
+ inputClass: string | false | Record<string, any> | import("vue").ClassValue[] | null;
113
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
114
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
115
+ declare const _default: typeof __VLS_export;
116
+ export default _default;
117
+ type __VLS_WithSlots<T, S> = T & {
118
+ new (): {
119
+ $slots: S;
120
+ };
121
+ };