@ac-design/design-system 2.0.0 → 2.1.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.
- package/dist/lib/charts/ChartFrame.vue.d.ts +2 -0
- package/dist/lib/charts/ChartFrame.vue_vue_type_script_setup_true_lang.js +42 -37
- package/dist/lib/charts/cartesian.d.ts +324 -0
- package/dist/lib/charts/cartesian.js +137 -0
- package/dist/lib/charts/echarts.d.ts +86 -0
- package/dist/lib/charts/echarts.js +173 -0
- package/dist/lib/charts/graph.d.ts +77 -0
- package/dist/lib/charts/graph.js +155 -0
- package/dist/lib/charts/index.d.ts +4 -0
- package/dist/lib/charts/index.js +3 -1
- package/dist/lib/charts/shared.d.ts +0 -7
- package/dist/lib/charts/shared.js +1 -19
- package/dist/lib/charts/xy.d.ts +11 -7
- package/dist/lib/charts/xy.js +53 -72
- package/dist/lib/compat.css +1322 -278
- package/dist/lib/components/AcAlert.vue.d.ts +9 -0
- package/dist/lib/components/AcAlert.vue_vue_type_script_setup_true_lang.js +121 -21
- package/dist/lib/components/AcAppSwitcher.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/lib/components/AcAreaChart.vue.d.ts +3 -0
- package/dist/lib/components/AcAreaChart.vue_vue_type_script_setup_true_lang.js +132 -142
- package/dist/lib/components/AcAvatar.vue.d.ts +7 -4
- package/dist/lib/components/AcAvatar.vue_vue_type_script_setup_true_lang.js +59 -54
- package/dist/lib/components/AcBadge.vue.d.ts +7 -3
- package/dist/lib/components/AcBadge.vue_vue_type_script_setup_true_lang.js +35 -28
- package/dist/lib/components/AcBarChart.vue.d.ts +3 -0
- package/dist/lib/components/AcBarChart.vue_vue_type_script_setup_true_lang.js +142 -146
- package/dist/lib/components/AcBreadcrumb.vue.d.ts +4 -1
- package/dist/lib/components/AcBreadcrumb.vue_vue_type_script_setup_true_lang.js +18 -17
- package/dist/lib/components/AcBulkActionBar.vue.d.ts +2 -0
- package/dist/lib/components/AcBulkActionBar.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/lib/components/AcButton.vue.d.ts +12 -6
- package/dist/lib/components/AcButton.vue_vue_type_script_setup_true_lang.js +85 -47
- package/dist/lib/components/AcCard.vue.d.ts +34 -3
- package/dist/lib/components/AcCard.vue_vue_type_script_setup_true_lang.js +169 -34
- package/dist/lib/components/AcCellValue.vue.d.ts +3 -3
- package/dist/lib/components/AcCellValue.vue_vue_type_script_setup_true_lang.js +171 -165
- package/dist/lib/components/AcCheckBox.vue.d.ts +1 -1
- package/dist/lib/components/AcCheckBox.vue_vue_type_script_setup_true_lang.js +58 -72
- package/dist/lib/components/AcCheckList.js +5 -0
- package/dist/lib/components/AcCheckList.vue.d.ts +45 -0
- package/dist/lib/components/AcCheckList.vue_vue_type_script_setup_true_lang.js +64 -0
- package/dist/lib/components/AcCheckRadio.vue.d.ts +30 -5
- package/dist/lib/components/AcCheckRadio.vue_vue_type_script_setup_true_lang.js +100 -36
- package/dist/lib/components/AcCircularProgress.vue.d.ts +4 -4
- package/dist/lib/components/AcCircularProgress.vue_vue_type_script_setup_true_lang.js +12 -9
- package/dist/lib/components/AcColorInput.vue.d.ts +5 -2
- package/dist/lib/components/AcColorInput.vue_vue_type_script_setup_true_lang.js +127 -97
- package/dist/lib/components/AcCommandBlock.js +5 -0
- package/dist/lib/components/AcCommandBlock.vue.d.ts +34 -0
- package/dist/lib/components/AcCommandBlock.vue_vue_type_script_setup_true_lang.js +88 -0
- package/dist/lib/components/AcConfirmModal.vue.d.ts +1 -1
- package/dist/lib/components/AcConfirmModal.vue_vue_type_script_setup_true_lang.js +7 -3
- package/dist/lib/components/AcCopyButton.vue.d.ts +2 -2
- package/dist/lib/components/AcCopyButton.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/lib/components/AcCostSummary.js +5 -0
- package/dist/lib/components/AcCostSummary.vue.d.ts +102 -0
- package/dist/lib/components/AcCostSummary.vue_vue_type_script_setup_true_lang.js +179 -0
- package/dist/lib/components/AcDatePicker.vue.d.ts +3 -3
- package/dist/lib/components/AcDatePicker.vue_vue_type_script_setup_true_lang.js +606 -380
- package/dist/lib/components/AcDeleteModal.vue_vue_type_script_setup_true_lang.js +47 -41
- package/dist/lib/components/AcDonutChart.vue.d.ts +10 -0
- package/dist/lib/components/AcDonutChart.vue_vue_type_script_setup_true_lang.js +116 -89
- package/dist/lib/components/AcDropdown.vue.d.ts +5 -2
- package/dist/lib/components/AcDropdown.vue_vue_type_script_setup_true_lang.js +88 -75
- package/dist/lib/components/AcDropdownDivider.vue_vue_type_script_setup_true_lang.js +11 -10
- package/dist/lib/components/AcDropdownItem.vue.d.ts +1 -1
- package/dist/lib/components/AcDropdownItem.vue_vue_type_script_setup_true_lang.js +17 -17
- package/dist/lib/components/AcEmptyState.vue.d.ts +1 -1
- package/dist/lib/components/AcErrorState.js +5 -0
- package/dist/lib/components/AcErrorState.vue.d.ts +46 -0
- package/dist/lib/components/AcErrorState.vue_vue_type_script_setup_true_lang.js +66 -0
- package/dist/lib/components/AcFeatureCard.vue.d.ts +6 -0
- package/dist/lib/components/AcFeatureCard.vue_vue_type_script_setup_true_lang.js +136 -114
- package/dist/lib/components/AcFooter.vue.d.ts +1 -1
- package/dist/lib/components/AcFooter.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/lib/components/AcFormFooter.vue.d.ts +1 -1
- package/dist/lib/components/AcFormSection.vue.d.ts +1 -1
- package/dist/lib/components/AcGraphChart.js +5 -0
- package/dist/lib/components/AcGraphChart.vue.d.ts +124 -0
- package/dist/lib/components/AcGraphChart.vue_vue_type_script_setup_true_lang.js +578 -0
- package/dist/lib/components/AcHeader.vue.d.ts +20 -2
- package/dist/lib/components/AcHeader.vue_vue_type_script_setup_true_lang.js +84 -26
- package/dist/lib/components/AcInfoTable.vue.d.ts +1 -1
- package/dist/lib/components/AcInput.vue.d.ts +1 -1
- package/dist/lib/components/AcInput.vue_vue_type_script_setup_true_lang.js +76 -79
- package/dist/lib/components/AcKeyValueInput.vue.d.ts +4 -4
- package/dist/lib/components/AcKeyValueInput.vue_vue_type_script_setup_true_lang.js +199 -183
- package/dist/lib/components/AcLineChart.vue.d.ts +6 -0
- package/dist/lib/components/AcLineChart.vue_vue_type_script_setup_true_lang.js +113 -125
- package/dist/lib/components/AcLoader.js +5 -0
- package/dist/lib/components/AcLoader.vue.d.ts +15 -0
- package/dist/lib/components/AcLoader.vue_vue_type_script_setup_true_lang.js +66 -0
- package/dist/lib/components/AcLocaleSwitcher.vue.d.ts +3 -1
- package/dist/lib/components/AcLocaleSwitcher.vue_vue_type_script_setup_true_lang.js +44 -36
- package/dist/lib/components/AcMapChart.js +5 -0
- package/dist/lib/components/AcMapChart.vue.d.ts +136 -0
- package/dist/lib/components/AcMapChart.vue_vue_type_script_setup_true_lang.js +518 -0
- package/dist/lib/components/AcModal.vue.d.ts +6 -3
- package/dist/lib/components/AcModal.vue_vue_type_script_setup_true_lang.js +85 -61
- package/dist/lib/components/AcNavbar.vue.d.ts +8 -5
- package/dist/lib/components/AcNavbar.vue_vue_type_script_setup_true_lang.js +25 -17
- package/dist/lib/components/AcNavbarItem.vue.d.ts +2 -2
- package/dist/lib/components/AcNavbarItem.vue_vue_type_script_setup_true_lang.js +3 -4
- package/dist/lib/components/AcNotificationMenu.vue.d.ts +3 -3
- package/dist/lib/components/AcNotificationMenu.vue_vue_type_script_setup_true_lang.js +133 -168
- package/dist/lib/components/AcNumberInput.vue.d.ts +2 -2
- package/dist/lib/components/AcNumberInput.vue_vue_type_script_setup_true_lang.js +137 -147
- package/dist/lib/components/AcPage.vue.d.ts +2 -2
- package/dist/lib/components/AcPage.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/lib/components/AcPagination.vue.d.ts +5 -5
- package/dist/lib/components/AcPagination.vue_vue_type_script_setup_true_lang.js +59 -56
- package/dist/lib/components/AcPreloader.vue.d.ts +3 -3
- package/dist/lib/components/AcPreloader.vue_vue_type_script_setup_true_lang.js +15 -16
- package/dist/lib/components/AcProductHero.js +5 -0
- package/dist/lib/components/AcProductHero.vue.d.ts +56 -0
- package/dist/lib/components/AcProductHero.vue_vue_type_script_setup_true_lang.js +95 -0
- package/dist/lib/components/AcProgress.vue.d.ts +17 -2
- package/dist/lib/components/AcProgress.vue_vue_type_script_setup_true_lang.js +83 -29
- package/dist/lib/components/AcResourceCard.vue.d.ts +1 -1
- package/dist/lib/components/AcResourceCard.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/lib/components/AcSearchBar.vue.d.ts +1 -1
- package/dist/lib/components/AcSearchBar.vue_vue_type_script_setup_true_lang.js +8 -4
- package/dist/lib/components/AcSelect.vue.d.ts +3 -3
- package/dist/lib/components/AcSelect.vue_vue_type_script_setup_true_lang.js +232 -243
- package/dist/lib/components/AcSettingsRow.js +5 -0
- package/dist/lib/components/AcSettingsRow.vue.d.ts +29 -0
- package/dist/lib/components/AcSettingsRow.vue_vue_type_script_setup_true_lang.js +37 -0
- package/dist/lib/components/AcSidePanel.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/lib/components/AcSideTabs.vue.d.ts +1 -1
- package/dist/lib/components/AcSidebar.vue.d.ts +4 -1
- package/dist/lib/components/AcSidebar.vue_vue_type_script_setup_true_lang.js +104 -94
- package/dist/lib/components/AcSidebarItem.vue.d.ts +1 -1
- package/dist/lib/components/AcSidebarItem.vue_vue_type_script_setup_true_lang.js +42 -42
- package/dist/lib/components/AcSidebarSection.vue.d.ts +2 -2
- package/dist/lib/components/AcSidebarSection.vue_vue_type_script_setup_true_lang.js +23 -18
- package/dist/lib/components/AcSteps.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/lib/components/AcSwitch.vue.d.ts +3 -0
- package/dist/lib/components/AcSwitch.vue_vue_type_script_setup_true_lang.js +46 -39
- package/dist/lib/components/AcSwitchCard.vue.d.ts +3 -3
- package/dist/lib/components/AcSwitchCard.vue_vue_type_script_setup_true_lang.js +9 -7
- package/dist/lib/components/AcTable.vue_vue_type_script_setup_true_lang.js +65 -65
- package/dist/lib/components/AcTabs.vue.d.ts +9 -2
- package/dist/lib/components/AcTabs.vue_vue_type_script_setup_true_lang.js +42 -27
- package/dist/lib/components/AcTag.vue.d.ts +1 -1
- package/dist/lib/components/AcTagInput.vue.d.ts +5 -5
- package/dist/lib/components/AcTagInput.vue_vue_type_script_setup_true_lang.js +140 -142
- package/dist/lib/components/AcTextarea.vue.d.ts +1 -1
- package/dist/lib/components/AcTextarea.vue_vue_type_script_setup_true_lang.js +69 -72
- package/dist/lib/components/AcThemeMode.vue.d.ts +3 -3
- package/dist/lib/components/AcThemeMode.vue_vue_type_script_setup_true_lang.js +54 -22
- package/dist/lib/components/AcTimePicker.vue.d.ts +1 -1
- package/dist/lib/components/AcTimePicker.vue_vue_type_script_setup_true_lang.js +177 -185
- package/dist/lib/components/AcToaster.vue.d.ts +6 -3
- package/dist/lib/components/AcToaster.vue_vue_type_script_setup_true_lang.js +103 -64
- package/dist/lib/components/AcTooltip.vue.d.ts +34 -14
- package/dist/lib/components/AcTooltip.vue_vue_type_script_setup_true_lang.js +184 -70
- package/dist/lib/components/AcUserMenu.vue.d.ts +23 -1
- package/dist/lib/components/AcUserMenu.vue_vue_type_script_setup_true_lang.js +181 -138
- package/dist/lib/components/index.d.ts +7 -0
- package/dist/lib/components/status.d.ts +3 -1
- package/dist/lib/components/status.js +20 -5
- package/dist/lib/composables/useToast.d.ts +17 -1
- package/dist/lib/composables/useToast.js +10 -2
- package/dist/lib/index.d.ts +7 -3
- package/dist/lib/index.js +80 -73
- package/dist/lib/theme.css +39 -54
- package/package.json +12 -3
|
@@ -6,12 +6,14 @@ export interface ToastAction {
|
|
|
6
6
|
export interface ToastOptions {
|
|
7
7
|
/** A second line under the title. */
|
|
8
8
|
description?: string;
|
|
9
|
-
/** Milliseconds before it closes on its own. 0 keeps it until dismissed. Default
|
|
9
|
+
/** Milliseconds before it closes on its own. 0 keeps it until dismissed. Default 4500, as cloud-ui. */
|
|
10
10
|
duration?: number;
|
|
11
11
|
/** One button in the toast, e.g. `{ label: "Undo", onClick }`. Clicking it also closes the toast. */
|
|
12
12
|
action?: ToastAction;
|
|
13
13
|
/** Shows the close button. Default true. */
|
|
14
14
|
dismissible?: boolean;
|
|
15
|
+
/** Shows a 2px bar along the bottom that shrinks with the time left and pauses on hover. Default: AcToaster's `progress` prop (off). cloud-ui's `showProgress`. */
|
|
16
|
+
progress?: boolean;
|
|
15
17
|
/** Reuse an id to update a toast in place, e.g. "Backing up…" → "Backup complete". */
|
|
16
18
|
id?: string;
|
|
17
19
|
}
|
|
@@ -21,6 +23,8 @@ export interface Toast extends Required<Pick<ToastOptions, "duration" | "dismiss
|
|
|
21
23
|
title: string;
|
|
22
24
|
description?: string;
|
|
23
25
|
action?: ToastAction;
|
|
26
|
+
/** Set only when the caller chose; otherwise AcToaster's `progress` prop decides. */
|
|
27
|
+
progress?: boolean;
|
|
24
28
|
/** Bumped on every update so the toaster restarts the timer. */
|
|
25
29
|
version: number;
|
|
26
30
|
}
|
|
@@ -41,6 +45,7 @@ export declare function useToast(): {
|
|
|
41
45
|
readonly label: string;
|
|
42
46
|
readonly onClick: () => void;
|
|
43
47
|
} | undefined;
|
|
48
|
+
readonly progress?: boolean | undefined;
|
|
44
49
|
readonly version: number;
|
|
45
50
|
readonly dismissible: boolean;
|
|
46
51
|
readonly duration: number;
|
|
@@ -53,6 +58,7 @@ export declare function useToast(): {
|
|
|
53
58
|
readonly label: string;
|
|
54
59
|
readonly onClick: () => void;
|
|
55
60
|
} | undefined;
|
|
61
|
+
readonly progress?: boolean | undefined;
|
|
56
62
|
readonly version: number;
|
|
57
63
|
readonly dismissible: boolean;
|
|
58
64
|
readonly duration: number;
|
|
@@ -65,4 +71,14 @@ export declare function useToast(): {
|
|
|
65
71
|
dismiss: typeof dismiss;
|
|
66
72
|
clear: typeof clear;
|
|
67
73
|
};
|
|
74
|
+
/** cloud-ui's toast options: `showProgress` is `progress`, and `width` is ignored (toasts are 384px). */
|
|
75
|
+
export interface CloudToastOptions extends ToastOptions {
|
|
76
|
+
showProgress?: boolean;
|
|
77
|
+
width?: number | string;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* cloud-ui's `showToast(title, type, options)`, so its calls work unchanged. A number as `options` is the duration.
|
|
81
|
+
* Shows in `<AcToaster />` like `useToast()`, and returns the toast's id.
|
|
82
|
+
*/
|
|
83
|
+
export declare function showToast(title: string, type: "success" | "info" | "warning" | "error", options?: number | CloudToastOptions): string;
|
|
68
84
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { readonly as e, ref as t } from "vue";
|
|
2
2
|
//#region src/lib/composables/useToast.ts
|
|
3
|
-
var n =
|
|
3
|
+
var n = 4500, r = t([]), i = 0;
|
|
4
4
|
function a(e, t, a = {}) {
|
|
5
5
|
let o = a.id ?? `toast-${++i}`, s = r.value.find((e) => e.id === o), c = {
|
|
6
6
|
id: o,
|
|
@@ -10,6 +10,7 @@ function a(e, t, a = {}) {
|
|
|
10
10
|
action: a.action,
|
|
11
11
|
duration: a.duration ?? n,
|
|
12
12
|
dismissible: a.dismissible ?? !0,
|
|
13
|
+
progress: a.progress,
|
|
13
14
|
version: (s?.version ?? 0) + 1
|
|
14
15
|
};
|
|
15
16
|
return r.value = s ? r.value.map((e) => e.id === o ? c : e) : [...r.value, c], o;
|
|
@@ -32,5 +33,12 @@ function c() {
|
|
|
32
33
|
clear: s
|
|
33
34
|
};
|
|
34
35
|
}
|
|
36
|
+
function l(e, t, n) {
|
|
37
|
+
let { showProgress: r, width: i, ...o } = typeof n == "number" ? { duration: n } : n ?? {};
|
|
38
|
+
return a(t, e, {
|
|
39
|
+
...o,
|
|
40
|
+
progress: o.progress ?? r
|
|
41
|
+
});
|
|
42
|
+
}
|
|
35
43
|
//#endregion
|
|
36
|
-
export { c as useToast };
|
|
44
|
+
export { l as showToast, c as useToast };
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export { useColorMode } from "./composables/useColorMode";
|
|
|
3
3
|
export { useFontScale, FONT_SCALES } from "./composables/useFontScale";
|
|
4
4
|
export type { FontScale } from "./composables/useFontScale";
|
|
5
5
|
export type { ColorMode } from "./composables/useColorMode";
|
|
6
|
-
export { useToast } from "./composables/useToast";
|
|
6
|
+
export { showToast, useToast } from "./composables/useToast";
|
|
7
7
|
export { useTablePagination } from "./composables/useTablePagination";
|
|
8
8
|
export type { TablePagination, UseTablePaginationOptions } from "./composables/useTablePagination";
|
|
9
9
|
export { useApiPagination } from "./composables/useApiPagination";
|
|
@@ -16,7 +16,7 @@ export { statusMeta, normalizeState, humanizeState } from "./components/status";
|
|
|
16
16
|
export type { StatusMeta, StatusMetaOptions, StatusTone } from "./components/status";
|
|
17
17
|
export { useBrandColor, hexToHsl, hslToHex, contrastOnWhite, readableLightness, MIN_CONTRAST, HexToHSL, HSLToHex, getThemeHSL, setThemeHSL, } from "./composables/useBrandColor";
|
|
18
18
|
export type { BrandHsl, LegacyHsl, SetBrandColorOptions } from "./composables/useBrandColor";
|
|
19
|
-
export type { Toast, ToastAction, ToastOptions, ToastTone } from "./composables/useToast";
|
|
19
|
+
export type { CloudToastOptions, Toast, ToastAction, ToastOptions, ToastTone } from "./composables/useToast";
|
|
20
20
|
export type { AppSwitcherApp } from "./components/AcAppSwitcher.vue";
|
|
21
21
|
export type { BreadcrumbItem } from "./components/AcBreadcrumb.vue";
|
|
22
22
|
export type { AcTableCell, AcTableCol, AcTableRow, CellType, ResourceCell, ResourceColumn, ResourceRow, ResourceTable, } from "./components/AcCellValue.vue";
|
|
@@ -40,4 +40,8 @@ export type { Step, SubStep } from "./components/AcSteps.vue";
|
|
|
40
40
|
export type { Column } from "./components/AcTable.vue";
|
|
41
41
|
export type { TabItem } from "./components/AcTabs.vue";
|
|
42
42
|
export type { UsageBreakdownRow } from "./components/AcUsageCard.vue";
|
|
43
|
-
export type { UserMenuItem } from "./components/AcUserMenu.vue";
|
|
43
|
+
export type { UserMenuItem, UserMenuWorkspace } from "./components/AcUserMenu.vue";
|
|
44
|
+
export type { CheckListItem } from "./components/AcCheckList.vue";
|
|
45
|
+
export type { CostSummaryDot, CostSummaryItem, CostSummarySpec } from "./components/AcCostSummary.vue";
|
|
46
|
+
export type { ProgressSegment } from "./components/AcProgress.vue";
|
|
47
|
+
export type { CheckRadioOption } from "./components/AcCheckRadio.vue";
|
package/dist/lib/index.js
CHANGED
|
@@ -16,80 +16,87 @@ import m from "./components/AcButtons.js";
|
|
|
16
16
|
import h from "./components/AcCard.js";
|
|
17
17
|
import g from "./components/AcModal.js";
|
|
18
18
|
import _ from "./components/AcSkeleton.js";
|
|
19
|
-
import v from "./components/
|
|
20
|
-
import y from "./components/
|
|
21
|
-
import b from "./components/
|
|
22
|
-
import x from "./components/
|
|
19
|
+
import v from "./components/AcTooltip.js";
|
|
20
|
+
import y from "./components/AcCellValue.js";
|
|
21
|
+
import b from "./components/AcCheckBox.js";
|
|
22
|
+
import x from "./components/AcCheckList.js";
|
|
23
23
|
import S from "./components/AcCheckRadio.js";
|
|
24
24
|
import C from "./components/AcCircularProgress.js";
|
|
25
25
|
import w from "./components/AcClusterSwitcher.js";
|
|
26
26
|
import T from "./components/AcColorInput.js";
|
|
27
|
-
import E from "./components/
|
|
28
|
-
import D from "./components/
|
|
29
|
-
import O from "./components/
|
|
30
|
-
import k from "./components/
|
|
31
|
-
import A from "./components/
|
|
32
|
-
import j from "./components/
|
|
33
|
-
import M from "./components/
|
|
34
|
-
import N from "./components/
|
|
35
|
-
import P from "./components/
|
|
36
|
-
import F from "./components/
|
|
37
|
-
import I from "./components/
|
|
38
|
-
import L from "./components/
|
|
39
|
-
import R from "./components/
|
|
40
|
-
import z from "./components/
|
|
41
|
-
import B from "./components/
|
|
42
|
-
import V from "./components/
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import K from "./
|
|
47
|
-
import q from "./components/
|
|
48
|
-
import J from "./components/
|
|
49
|
-
import Y from "./components/
|
|
50
|
-
import X from "./components/
|
|
51
|
-
import Z from "./components/
|
|
52
|
-
import Q from "./components/
|
|
53
|
-
import ne from "./components/
|
|
54
|
-
import
|
|
55
|
-
import
|
|
56
|
-
import
|
|
57
|
-
import
|
|
58
|
-
import
|
|
59
|
-
import se from "./components/
|
|
60
|
-
import ce from "./components/
|
|
61
|
-
import le from "./components/
|
|
62
|
-
import ue from "./components/
|
|
63
|
-
import de from "./components/
|
|
64
|
-
import fe from "./components/
|
|
65
|
-
import pe from "./components/
|
|
66
|
-
import me from "./components/
|
|
67
|
-
import he from "./components/
|
|
68
|
-
import ge from "./components/
|
|
69
|
-
import _e from "./components/
|
|
70
|
-
import ve from "./components/
|
|
71
|
-
import ye from "./components/
|
|
72
|
-
import be from "./components/
|
|
73
|
-
import xe from "./components/
|
|
74
|
-
import Se from "./components/
|
|
75
|
-
import Ce from "./components/
|
|
76
|
-
import we from "./components/
|
|
77
|
-
import Te from "./components/
|
|
78
|
-
import Ee from "./components/
|
|
79
|
-
import De from "./components/
|
|
80
|
-
import Oe from "./components/
|
|
81
|
-
import ke from "./components/
|
|
82
|
-
import Ae from "./components/
|
|
83
|
-
import
|
|
84
|
-
import Me from "./components/
|
|
85
|
-
import Ne from "./components/
|
|
86
|
-
import
|
|
87
|
-
import Fe from "./components/
|
|
88
|
-
import Ie from "./components/
|
|
89
|
-
import Le from "./components/
|
|
90
|
-
import {
|
|
91
|
-
import
|
|
92
|
-
import
|
|
93
|
-
import {
|
|
94
|
-
import
|
|
95
|
-
|
|
27
|
+
import E from "./components/AcCommandBlock.js";
|
|
28
|
+
import D from "./components/AcConfirmModal.js";
|
|
29
|
+
import O from "./components/AcContentHeader.js";
|
|
30
|
+
import k from "./components/AcContentLayout.js";
|
|
31
|
+
import A from "./components/AcSearchBar.js";
|
|
32
|
+
import j from "./components/AcContentTable.js";
|
|
33
|
+
import M from "./components/AcCopyButton.js";
|
|
34
|
+
import N from "./components/AcCostSummary.js";
|
|
35
|
+
import P from "./components/AcDatePicker.js";
|
|
36
|
+
import F from "./components/AcInput.js";
|
|
37
|
+
import I from "./components/AcDeleteModal.js";
|
|
38
|
+
import L from "./components/AcDivider.js";
|
|
39
|
+
import R from "./components/AcDropdown.js";
|
|
40
|
+
import z from "./components/AcDropdownDivider.js";
|
|
41
|
+
import B from "./components/AcDropdownItem.js";
|
|
42
|
+
import V from "./components/AcEmptyState.js";
|
|
43
|
+
import H from "./components/AcErrorState.js";
|
|
44
|
+
import U from "./components/AcFeatureCard.js";
|
|
45
|
+
import W from "./components/AcFileUpload.js";
|
|
46
|
+
import { FONT_SCALES as G, useFontScale as K } from "./composables/useFontScale.js";
|
|
47
|
+
import q from "./components/AcFontScale.js";
|
|
48
|
+
import J from "./components/AcFooter.js";
|
|
49
|
+
import Y from "./components/AcForm.js";
|
|
50
|
+
import X from "./components/AcFormArray.js";
|
|
51
|
+
import Z from "./components/AcFormFooter.js";
|
|
52
|
+
import Q from "./components/AcFormSection.js";
|
|
53
|
+
import ne from "./components/AcHeader.js";
|
|
54
|
+
import re from "./components/AcHeaderItem.js";
|
|
55
|
+
import ie from "./components/AcHeaderItems.js";
|
|
56
|
+
import ae from "./components/AcInfoTable.js";
|
|
57
|
+
import oe from "./components/AcKbd.js";
|
|
58
|
+
import $ from "./components/AcSelect.js";
|
|
59
|
+
import se from "./components/AcKeyValueInput.js";
|
|
60
|
+
import ce from "./components/AcLoader.js";
|
|
61
|
+
import le from "./components/AcLocaleSwitcher.js";
|
|
62
|
+
import ue from "./components/AcNavbar.js";
|
|
63
|
+
import de from "./components/AcNotificationMenu.js";
|
|
64
|
+
import fe from "./components/AcNumberInput.js";
|
|
65
|
+
import pe from "./components/AcPage.js";
|
|
66
|
+
import me from "./components/AcPagination.js";
|
|
67
|
+
import he from "./components/AcPreloader.js";
|
|
68
|
+
import ge from "./components/AcProgress.js";
|
|
69
|
+
import _e from "./components/AcProductHero.js";
|
|
70
|
+
import ve from "./components/AcTag.js";
|
|
71
|
+
import ye from "./components/AcResourceCard.js";
|
|
72
|
+
import be from "./components/AcSectionContent.js";
|
|
73
|
+
import xe from "./components/AcSegmentedControl.js";
|
|
74
|
+
import Se from "./components/AcSettingsRow.js";
|
|
75
|
+
import Ce from "./components/AcSidebar.js";
|
|
76
|
+
import we from "./components/AcSidebarItem.js";
|
|
77
|
+
import Te from "./components/AcSidebarSection.js";
|
|
78
|
+
import Ee from "./components/AcSidePanel.js";
|
|
79
|
+
import De from "./components/AcSideTabs.js";
|
|
80
|
+
import Oe from "./components/AcSlider.js";
|
|
81
|
+
import ke from "./components/AcStatCard.js";
|
|
82
|
+
import Ae from "./components/AcStatusBar.js";
|
|
83
|
+
import je from "./components/AcSteps.js";
|
|
84
|
+
import Me from "./components/AcSwitch.js";
|
|
85
|
+
import Ne from "./components/AcSwitchCard.js";
|
|
86
|
+
import Pe from "./components/AcTable.js";
|
|
87
|
+
import Fe from "./components/AcTabs.js";
|
|
88
|
+
import Ie from "./components/AcTagInput.js";
|
|
89
|
+
import Le from "./components/AcTextarea.js";
|
|
90
|
+
import { useColorMode as Re } from "./composables/useColorMode.js";
|
|
91
|
+
import ze from "./components/AcThemeMode.js";
|
|
92
|
+
import Be from "./components/AcTimePicker.js";
|
|
93
|
+
import { showToast as Ve, useToast as He } from "./composables/useToast.js";
|
|
94
|
+
import Ue from "./components/AcToaster.js";
|
|
95
|
+
import We from "./components/AcUsageCard.js";
|
|
96
|
+
import Ge from "./components/AcUserMenu.js";
|
|
97
|
+
import { useTablePagination as Ke } from "./composables/useTablePagination.js";
|
|
98
|
+
import { useApiPagination as qe } from "./composables/useApiPagination.js";
|
|
99
|
+
import { useBulkSelection as Je } from "./composables/useBulkSelection.js";
|
|
100
|
+
import { useFormValidation as Ye } from "./composables/useFormValidation.js";
|
|
101
|
+
import { HSLToHex as Xe, HexToHSL as Ze, MIN_CONTRAST as Qe, contrastOnWhite as $e, getThemeHSL as et, hexToHsl as tt, hslToHex as nt, readableLightness as rt, setThemeHSL as it, useBrandColor as at } from "./composables/useBrandColor.js";
|
|
102
|
+
export { ee as AcAccordion, te as AcAccordionItem, n as AcAlert, a as AcAppSwitcher, o as AcAvatar, u as AcBadge, d as AcBanner, f as AcBreadcrumb, p as AcBulkActionBar, t as AcButton, m as AcButtons, h as AcCard, y as AcCellValue, b as AcCheckBox, x as AcCheckList, S as AcCheckRadio, C as AcCircularProgress, w as AcClusterSwitcher, T as AcColorInput, E as AcCommandBlock, D as AcConfirmModal, O as AcContentHeader, k as AcContentLayout, j as AcContentTable, M as AcCopyButton, N as AcCostSummary, P as AcDatePicker, I as AcDeleteConfirmationModal, I as AcDeleteModal, L as AcDivider, R as AcDropdown, z as AcDropdownDivider, B as AcDropdownItem, V as AcEmptyState, H as AcErrorState, U as AcFeatureCard, W as AcFileUpload, q as AcFontScale, J as AcFooter, Y as AcForm, X as AcFormArray, Z as AcFormFooter, Q as AcFormSection, ne as AcHeader, re as AcHeaderItem, ie as AcHeaderItems, ae as AcInfoTable, F as AcInput, oe as AcKbd, se as AcKeyValueInput, ce as AcLoader, le as AcLocaleSwitcher, r as AcLogo, g as AcModal, ue as AcNavbar, i as AcNavbarItem, de as AcNotificationMenu, fe as AcNumberInput, pe as AcPage, me as AcPagination, he as AcPreloader, _e as AcProductHero, ge as AcProgress, ye as AcResourceCard, A as AcSearchBar, be as AcSectionContent, xe as AcSegmentedControl, $ as AcSelect, Se as AcSettingsRow, Ee as AcSidePanel, De as AcSideTabs, Ce as AcSidebar, we as AcSidebarItem, Te as AcSidebarSection, _ as AcSkeleton, Oe as AcSlider, e as AcSpinner, ke as AcStatCard, Ae as AcStatusBar, je as AcSteps, Me as AcSwitch, Ne as AcSwitchCard, Pe as AcTable, Fe as AcTabs, ve as AcTag, Ie as AcTagInput, Le as AcTextarea, ze as AcThemeMode, Be as AcTimePicker, Ue as AcToaster, v as AcTooltip, We as AcUsageCard, Ge as AcUserMenu, G as FONT_SCALES, Xe as HSLToHex, Ze as HexToHSL, Qe as MIN_CONTRAST, $e as contrastOnWhite, et as getThemeHSL, tt as hexToHsl, nt as hslToHex, s as humanizeState, c as normalizeState, rt as readableLightness, it as setThemeHSL, Ve as showToast, l as statusMeta, qe as useApiPagination, at as useBrandColor, Je as useBulkSelection, Re as useColorMode, K as useFontScale, Ye as useFormValidation, Ke as useTablePagination, He as useToast };
|
package/dist/lib/theme.css
CHANGED
|
@@ -37,6 +37,10 @@
|
|
|
37
37
|
/* Logo colours: exact brand values, the same in both themes. */
|
|
38
38
|
--color-brand-navy: #193d4b;
|
|
39
39
|
--color-brand-green: #00a651;
|
|
40
|
+
/* AcThemeMode's toggle, as cloud-ui's ThemeSwitcher: fixed in both themes like the brand colours */
|
|
41
|
+
--color-theme-sun: #ffbb52;
|
|
42
|
+
--color-theme-sun-soft: #ffeccf;
|
|
43
|
+
--color-theme-moon: #485367;
|
|
40
44
|
|
|
41
45
|
/* ac-primary: AppsCode green */
|
|
42
46
|
--color-primary: hsl(var(--primary-hue) var(--primary-saturation) var(--primary-light));
|
|
@@ -216,6 +220,8 @@
|
|
|
216
220
|
--color-background: #f9fafb;
|
|
217
221
|
--color-surface: #ffffff;
|
|
218
222
|
--color-surface-muted: #f8f8f8;
|
|
223
|
+
/* Light sidebar panel: the muted surface by day, cloud-ui's #171717 sidebar by night */
|
|
224
|
+
--color-sidebar-panel: #fafafa;
|
|
219
225
|
--color-surface-sunken: #f0f0f0;
|
|
220
226
|
/* Neutral interaction tints: row hover, selected list item, soft chips */
|
|
221
227
|
--color-accent: #eaf0f4;
|
|
@@ -326,6 +332,23 @@
|
|
|
326
332
|
--animate-shake: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
|
|
327
333
|
--animate-fade-in: fade-in 0.15s var(--ease-out-soft) both;
|
|
328
334
|
--animate-pop-in: pop-in 0.15s var(--ease-out-soft) both;
|
|
335
|
+
/* AcLoader, cloud-ui's page loader: an eased arc, a breathing glow and three dots, each dot with its own delay */
|
|
336
|
+
--animate-loader-spin: loader-spin 0.85s cubic-bezier(0.65, 0, 0.35, 1) infinite;
|
|
337
|
+
--animate-loader-glow: loader-glow 1.7s ease-in-out infinite;
|
|
338
|
+
--animate-loader-dot-1: loader-dot 1.2s ease-in-out infinite;
|
|
339
|
+
--animate-loader-dot-2: loader-dot 1.2s ease-in-out 0.15s infinite;
|
|
340
|
+
--animate-loader-dot-3: loader-dot 1.2s ease-in-out 0.3s infinite;
|
|
341
|
+
@keyframes loader-spin {
|
|
342
|
+
to { transform: rotate(360deg); }
|
|
343
|
+
}
|
|
344
|
+
@keyframes loader-glow {
|
|
345
|
+
0%, 100% { opacity: 0.5; transform: scale(1); }
|
|
346
|
+
50% { opacity: 0.15; transform: scale(1.15); }
|
|
347
|
+
}
|
|
348
|
+
@keyframes loader-dot {
|
|
349
|
+
0%, 70%, 100% { opacity: 0.4; transform: scale(1) translateY(0); }
|
|
350
|
+
35% { opacity: 1; transform: scale(1.2) translateY(-2px); }
|
|
351
|
+
}
|
|
329
352
|
@keyframes shake {
|
|
330
353
|
10%, 90% { transform: translate3d(-1px, 0, 0); }
|
|
331
354
|
20%, 80% { transform: translate3d(2px, 0, 0); }
|
|
@@ -511,6 +534,7 @@
|
|
|
511
534
|
--color-background: #0a0a0a;
|
|
512
535
|
--color-surface: #171717;
|
|
513
536
|
--color-surface-muted: #1f1f1f;
|
|
537
|
+
--color-sidebar-panel: #171717;
|
|
514
538
|
--color-surface-sunken: #2c2c2c;
|
|
515
539
|
--color-accent: #2a3138;
|
|
516
540
|
--color-accent-hover: #323b44;
|
|
@@ -558,8 +582,10 @@
|
|
|
558
582
|
h4 { font-size: var(--text-h4); letter-spacing: -0.012em; }
|
|
559
583
|
h5 { font-size: var(--text-h5); letter-spacing: -0.008em; }
|
|
560
584
|
h6 { font-size: var(--text-h6); letter-spacing: -0.008em; }
|
|
561
|
-
|
|
562
|
-
|
|
585
|
+
/* cloud-ui's base rules: roomy paragraphs, medium labels, table headers and controls; components still set their own sizes */
|
|
586
|
+
p { text-wrap: pretty; line-height: 1.625; letter-spacing: 0.002em; }
|
|
587
|
+
label, th { font-weight: 500; letter-spacing: 0.002em; }
|
|
588
|
+
button, input, select, textarea { font-family: inherit; font-weight: 500; letter-spacing: inherit; }
|
|
563
589
|
code, kbd, pre, samp { font-family: var(--font-mono); font-feature-settings: normal; }
|
|
564
590
|
::selection { background-color: var(--color-primary-90); color: var(--color-primary-10); }
|
|
565
591
|
:focus-visible { outline: 2px solid var(--color-ring); outline-offset: 2px; }
|
|
@@ -575,11 +601,20 @@
|
|
|
575
601
|
/* The standard focus treatment for form controls: a solid primary border plus a 2px primary/20 halo. */
|
|
576
602
|
@utility focus-ring {
|
|
577
603
|
outline: none;
|
|
578
|
-
|
|
604
|
+
/* cloud-ui's field focus: a 35% primary border inside a 2px 20% halo */
|
|
605
|
+
border-color: color-mix(in srgb, var(--color-primary) 35%, transparent);
|
|
579
606
|
box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 20%, transparent);
|
|
580
607
|
}
|
|
581
608
|
|
|
582
609
|
/* Thin scrollbar: a 4px grey thumb, like cloud-ui's custom-scrollbar. */
|
|
610
|
+
/* cloud-ui's `custom-container`: the page column, 1200px wide and centred, with 16px sides at every width. Pages add `py-8`. */
|
|
611
|
+
@utility page-container {
|
|
612
|
+
width: 100%;
|
|
613
|
+
max-width: var(--container-page);
|
|
614
|
+
margin-inline: auto;
|
|
615
|
+
padding-inline: calc(var(--spacing) * 4);
|
|
616
|
+
}
|
|
617
|
+
|
|
583
618
|
@utility ac-scrollbar {
|
|
584
619
|
overflow: auto;
|
|
585
620
|
scrollbar-width: thin;
|
|
@@ -619,57 +654,7 @@
|
|
|
619
654
|
.ac-progress-indeterminate { animation: none; }
|
|
620
655
|
}
|
|
621
656
|
|
|
622
|
-
/*
|
|
623
|
-
* Charts (the /charts entry). Unovis styles its SVG through --vis-* variables; they're set on chart roots only,
|
|
624
|
-
* so other Unovis charts on the page keep their own look. The --vis-dark-* twins get the same tokens, so
|
|
625
|
-
* Unovis' own dark-theme selectors (html.theme-dark and the like) still resolve to ours.
|
|
626
|
-
*/
|
|
657
|
+
/* Charts (the /charts entry). ECharts draws on a canvas and gets its colours from the tokens in JS; this only keeps figures aligned. */
|
|
627
658
|
[data-ac-chart] {
|
|
628
659
|
font-variant-numeric: tabular-nums;
|
|
629
|
-
--vis-font-family: var(--font-sans);
|
|
630
|
-
--vis-axis-font-family: var(--font-sans);
|
|
631
|
-
--vis-axis-tick-label-font-size: 12px;
|
|
632
|
-
--vis-axis-tick-label-weight: 400;
|
|
633
|
-
--vis-axis-label-font-size: 12px;
|
|
634
|
-
--vis-axis-label-weight: 500;
|
|
635
|
-
--vis-axis-tick-color: var(--color-border);
|
|
636
|
-
--vis-dark-axis-tick-color: var(--color-border);
|
|
637
|
-
--vis-axis-domain-color: var(--color-border-dark);
|
|
638
|
-
--vis-dark-axis-domain-color: var(--color-border-dark);
|
|
639
|
-
--vis-axis-grid-color: var(--color-border);
|
|
640
|
-
--vis-dark-axis-grid-color: var(--color-border);
|
|
641
|
-
--vis-axis-tick-label-color: var(--color-muted);
|
|
642
|
-
--vis-dark-axis-tick-label-color: var(--color-muted);
|
|
643
|
-
--vis-axis-label-color: var(--color-muted);
|
|
644
|
-
--vis-dark-axis-label-color: var(--color-muted);
|
|
645
|
-
--vis-crosshair-line-stroke-color: var(--color-border-dark);
|
|
646
|
-
--vis-crosshair-circle-stroke-color: var(--color-surface);
|
|
647
|
-
--vis-crosshair-circle-stroke-width: 2px;
|
|
648
|
-
--vis-crosshair-circle-stroke-opacity: 1;
|
|
649
|
-
/* A 1px surface stroke leaves a 2px gap between stacked segments. */
|
|
650
|
-
--vis-stacked-bar-stroke-color: var(--color-surface);
|
|
651
|
-
--vis-dark-stacked-bar-stroke-color: var(--color-surface);
|
|
652
|
-
--vis-stacked-bar-stroke-width: 1px;
|
|
653
|
-
--vis-grouped-bar-hover-stroke-width: 0px;
|
|
654
|
-
--vis-area-fill-opacity: 1;
|
|
655
|
-
--vis-donut-background-color: var(--color-surface-sunken);
|
|
656
|
-
--vis-dark-donut-background-color: var(--color-surface-sunken);
|
|
657
|
-
--vis-donut-segment-stroke-color: var(--color-surface);
|
|
658
|
-
--vis-donut-segment-stroke-width: 2px;
|
|
659
|
-
--vis-donut-central-label-text-color: var(--color-heading);
|
|
660
|
-
--vis-dark-donut-central-label-text-color: var(--color-heading);
|
|
661
|
-
--vis-donut-central-sub-label-text-color: var(--color-muted);
|
|
662
|
-
--vis-dark-donut-central-sub-label-text-color: var(--color-muted);
|
|
663
|
-
--vis-legend-label-color: var(--color-muted);
|
|
664
|
-
--vis-dark-legend-label-color: var(--color-muted);
|
|
665
|
-
--vis-legend-label-font-size: 12px;
|
|
666
|
-
--vis-tooltip-background-color: var(--color-surface);
|
|
667
|
-
--vis-dark-tooltip-background-color: var(--color-surface);
|
|
668
|
-
--vis-tooltip-border-color: var(--color-border);
|
|
669
|
-
--vis-dark-tooltip-border-color: var(--color-border);
|
|
670
|
-
--vis-tooltip-text-color: var(--color-body);
|
|
671
|
-
--vis-dark-tooltip-text-color: var(--color-body);
|
|
672
|
-
--vis-tooltip-border-radius: 10px;
|
|
673
|
-
--vis-tooltip-box-shadow: var(--shadow-lg);
|
|
674
|
-
--vis-tooltip-padding: 10px 12px;
|
|
675
660
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ac-design/design-system",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "AppsCode design system: Tailwind CSS v4 theme and Vue 3 components.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@lucide/vue": "^1.0.0",
|
|
48
|
+
"echarts": "^6.0.0",
|
|
48
49
|
"vue": "^3.5.0"
|
|
49
50
|
},
|
|
50
51
|
"dependencies": {
|
|
@@ -59,13 +60,14 @@
|
|
|
59
60
|
"@codemirror/search": "^6.7.2",
|
|
60
61
|
"@codemirror/state": "^6.7.6",
|
|
61
62
|
"@codemirror/view": "^6.43.13",
|
|
63
|
+
"@dagrejs/dagre": "^3.1.1",
|
|
62
64
|
"@fontsource-variable/google-sans-flex": "^5.3.1",
|
|
63
65
|
"@fontsource-variable/jetbrains-mono": "^5.3.0",
|
|
64
66
|
"@fontsource-variable/roboto": "^5.3.0",
|
|
65
67
|
"@lezer/highlight": "^1.2.5",
|
|
66
|
-
"@unovis/ts": "^1.7.1",
|
|
67
|
-
"@unovis/vue": "^1.7.1",
|
|
68
68
|
"ajv": "^8.20.0",
|
|
69
|
+
"topojson-client": "^3.1.0",
|
|
70
|
+
"world-atlas": "^2.0.2",
|
|
69
71
|
"yaml": "^2.9.1"
|
|
70
72
|
},
|
|
71
73
|
"devDependencies": {
|
|
@@ -75,8 +77,10 @@
|
|
|
75
77
|
"@tailwindcss/vite": "^4.3.3",
|
|
76
78
|
"@tsconfig/node22": "^22.0.6",
|
|
77
79
|
"@types/node": "^26.6.3",
|
|
80
|
+
"@types/topojson-client": "^3.1.5",
|
|
78
81
|
"@vitejs/plugin-vue": "^6.0.9",
|
|
79
82
|
"@vue/tsconfig": "^0.9.1",
|
|
83
|
+
"echarts": "^6.1.0",
|
|
80
84
|
"postcss": "^8.5.28",
|
|
81
85
|
"postcss-selector-parser": "^7.1.6",
|
|
82
86
|
"shiki": "^4.4.3",
|
|
@@ -87,5 +91,10 @@
|
|
|
87
91
|
"vue-component-meta": "^3.3.11",
|
|
88
92
|
"vue-router": "^4.6.4",
|
|
89
93
|
"vue-tsc": "^3.3.11"
|
|
94
|
+
},
|
|
95
|
+
"peerDependenciesMeta": {
|
|
96
|
+
"echarts": {
|
|
97
|
+
"optional": true
|
|
98
|
+
}
|
|
90
99
|
}
|
|
91
100
|
}
|