ads-nuxt 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -4
- package/app/assets/css/component-tokens.css +369 -367
- package/app/assets/css/main.css +26 -65
- package/app/components/AdsBadge.vue +3 -3
- package/app/components/AdsBroadcast.vue +1 -1
- package/app/components/AdsButton.vue +13 -5
- package/app/components/AdsButtonMenu.vue +2 -2
- package/app/components/AdsCharttip.vue +3 -2
- package/app/components/AdsCheckbox.vue +77 -77
- package/app/components/AdsDatePicker.vue +23 -6
- package/app/components/AdsEmptyState.vue +6 -3
- package/app/components/AdsHeavyTable.vue +4 -0
- package/app/components/AdsInput.vue +3 -2
- package/app/components/AdsMenuBar.vue +8 -1
- package/app/components/AdsMetricCard.vue +1 -1
- package/app/components/AdsModal.vue +7 -4
- package/app/components/AdsNavbarApp.vue +1 -1
- package/app/components/AdsNavbarDesk.vue +14 -9
- package/app/components/AdsNumberInput.vue +8 -8
- package/app/components/AdsPagination.vue +91 -91
- package/app/components/AdsPill.vue +1 -1
- package/app/components/AdsProductTag.vue +21 -2
- package/app/components/AdsRadio.vue +70 -70
- package/app/components/AdsSearchInput.vue +2 -2
- package/app/components/AdsSelect.vue +18 -1
- package/app/components/AdsSelectPanel.vue +103 -32
- package/app/components/AdsSteptip.vue +104 -101
- package/app/components/AdsSwitch.vue +59 -59
- package/app/components/AdsTable.vue +16 -1
- package/app/components/AdsTextarea.vue +2 -2
- package/app/components/AdsToast.vue +6 -5
- package/app/components/AdsTooltip.vue +2 -2
- package/app/components/OverlayLoading.vue +313 -173
- package/app/composables/useOverlayLoading.ts +31 -9
- package/app/theme/ads-theme.ts +1 -1
- package/app/theme/component-tokens.json +368 -366
- package/app/theme/component-tokens.ts +809 -807
- package/app/types/overlay-loading.types.ts +11 -2
- package/app/utils/ads-table.ts +3 -0
- package/package.json +56 -55
- package/app/assets/animations/Error.gif +0 -0
- package/app/assets/animations/Loading.gif +0 -0
- package/app/assets/animations/Search.gif +0 -0
- package/app/assets/animations/Success.gif +0 -0
|
@@ -3,9 +3,11 @@ export type OverlayVariant =
|
|
|
3
3
|
| "success"
|
|
4
4
|
| "error"
|
|
5
5
|
| "search"
|
|
6
|
-
| "info"
|
|
6
|
+
| "info"
|
|
7
|
+
| "warning";
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
/** loading e search bloqueiam a tela até o processo terminar; os demais podem ser fechados. */
|
|
10
|
+
export type OverlayClosableVariant = "info" | "success" | "error" | "warning";
|
|
9
11
|
|
|
10
12
|
export interface OverlayLoadingOptions {
|
|
11
13
|
title?: string;
|
|
@@ -16,7 +18,14 @@ export interface OverlayLoadingOptions {
|
|
|
16
18
|
variant?: OverlayVariant;
|
|
17
19
|
iconSrc?: string;
|
|
18
20
|
actionLabel?: string;
|
|
21
|
+
/** Ícone Lucide do botão de ação. Sem valor: refresh-cw no erro, nenhum nos demais. */
|
|
22
|
+
actionIcon?: string;
|
|
19
23
|
onAction?: () => void;
|
|
24
|
+
/** Segunda ação, em botão unfilled ao lado da primeira (ex.: "Fechar" junto de "Tentar novamente"). */
|
|
25
|
+
secondaryActionLabel?: string;
|
|
26
|
+
secondaryActionIcon?: string;
|
|
27
|
+
/** Sem valor, a ação secundária fecha o overlay. */
|
|
28
|
+
onSecondaryAction?: () => void;
|
|
20
29
|
onUserClose?: () => void;
|
|
21
30
|
closableVariants?: OverlayClosableVariant[];
|
|
22
31
|
}
|
package/app/utils/ads-table.ts
CHANGED
|
@@ -98,6 +98,9 @@ export const buildAdsTableUi = ({
|
|
|
98
98
|
return {
|
|
99
99
|
root: [
|
|
100
100
|
"relative overflow-auto bg-[var(--ads-surface-card)]",
|
|
101
|
+
// O cabeçalho gruda na rolagem da própria tabela: sem altura máxima ela não rola e o
|
|
102
|
+
// cabeçalho sai junto com a página. Uma classe max-h do consumidor sobrescreve esta.
|
|
103
|
+
stickyHeader ? "max-h-[70vh]" : "",
|
|
101
104
|
"[scrollbar-color:var(--ads-border-subtle)_transparent] [scrollbar-width:thin]",
|
|
102
105
|
framed ? "rounded-[var(--ads-radius-md)] border border-[var(--ads-border-subtle)]" : "",
|
|
103
106
|
].join(" "),
|
package/package.json
CHANGED
|
@@ -1,55 +1,56 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "ads-nuxt",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"license": "MIT",
|
|
5
|
-
"description": "Alquimia Design System para Nuxt, construído sobre Nuxt UI",
|
|
6
|
-
"repository": {
|
|
7
|
-
"type": "git",
|
|
8
|
-
"url": "git+https://github.com/jbfarmarcas/alquimia-design-system.git"
|
|
9
|
-
},
|
|
10
|
-
"publishConfig": {
|
|
11
|
-
"access": "public"
|
|
12
|
-
},
|
|
13
|
-
"type": "module",
|
|
14
|
-
"packageManager": "pnpm@10.4.1",
|
|
15
|
-
"main": "./nuxt.config.ts",
|
|
16
|
-
"files": [
|
|
17
|
-
"app",
|
|
18
|
-
"nuxt.config.ts"
|
|
19
|
-
],
|
|
20
|
-
"scripts": {
|
|
21
|
-
"dev": "nuxt dev playground --port 3010",
|
|
22
|
-
"build": "nuxt build playground",
|
|
23
|
-
"preview": "nuxt preview playground --port 3010",
|
|
24
|
-
"prepare": "nuxt prepare playground",
|
|
25
|
-
"skill:reference": "node scripts/generate-skill-reference.mjs",
|
|
26
|
-
"skill:check": "node scripts/generate-skill-reference.mjs --check"
|
|
27
|
-
},
|
|
28
|
-
"dependencies": {
|
|
29
|
-
"@iconify-json/lucide": "^1.2.104"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"@
|
|
34
|
-
"@nuxt/
|
|
35
|
-
"@nuxt/
|
|
36
|
-
"@
|
|
37
|
-
"@vueuse/
|
|
38
|
-
"nuxt": "^
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"@
|
|
45
|
-
"@nuxt/
|
|
46
|
-
"@nuxt/
|
|
47
|
-
"@
|
|
48
|
-
"@vueuse/
|
|
49
|
-
"nuxt": "^
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"vue
|
|
54
|
-
|
|
55
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "ads-nuxt",
|
|
3
|
+
"version": "0.4.0",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"description": "Alquimia Design System para Nuxt, construído sobre Nuxt UI",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/jbfarmarcas/alquimia-design-system.git"
|
|
9
|
+
},
|
|
10
|
+
"publishConfig": {
|
|
11
|
+
"access": "public"
|
|
12
|
+
},
|
|
13
|
+
"type": "module",
|
|
14
|
+
"packageManager": "pnpm@10.4.1",
|
|
15
|
+
"main": "./nuxt.config.ts",
|
|
16
|
+
"files": [
|
|
17
|
+
"app",
|
|
18
|
+
"nuxt.config.ts"
|
|
19
|
+
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"dev": "nuxt dev playground --port 3010",
|
|
22
|
+
"build": "nuxt build playground",
|
|
23
|
+
"preview": "nuxt preview playground --port 3010",
|
|
24
|
+
"prepare": "nuxt prepare playground",
|
|
25
|
+
"skill:reference": "node scripts/generate-skill-reference.mjs",
|
|
26
|
+
"skill:check": "node scripts/generate-skill-reference.mjs --check"
|
|
27
|
+
},
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@iconify-json/lucide": "^1.2.104",
|
|
30
|
+
"@tanstack/vue-virtual": "^3.13.49"
|
|
31
|
+
},
|
|
32
|
+
"peerDependencies": {
|
|
33
|
+
"@internationalized/date": "^3.12.4",
|
|
34
|
+
"@nuxt/fonts": "^0.12.1 || ^0.14.0",
|
|
35
|
+
"@nuxt/icon": "^2.2.0",
|
|
36
|
+
"@nuxt/ui": "^4.3.0",
|
|
37
|
+
"@vueuse/core": "^14.0.0",
|
|
38
|
+
"@vueuse/nuxt": "^14.0.0",
|
|
39
|
+
"nuxt": "^4.0.0",
|
|
40
|
+
"tailwindcss": "^4.0.15",
|
|
41
|
+
"vue": "^3.5.18"
|
|
42
|
+
},
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"@internationalized/date": "^3.12.4",
|
|
45
|
+
"@nuxt/fonts": "^0.12.1",
|
|
46
|
+
"@nuxt/icon": "^2.2.0",
|
|
47
|
+
"@nuxt/ui": "^4.3.0",
|
|
48
|
+
"@vueuse/core": "^14.0.0",
|
|
49
|
+
"@vueuse/nuxt": "^14.0.0",
|
|
50
|
+
"nuxt": "^4.0.0",
|
|
51
|
+
"tailwindcss": "^4.0.15",
|
|
52
|
+
"typescript": "^5.6.3",
|
|
53
|
+
"vue": "^3.5.18",
|
|
54
|
+
"vue-router": "^4.5.0"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|