@aggc/ui 0.6.0 → 0.7.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.
Files changed (50) hide show
  1. package/dist/chunks/{UiSkeleton.vue_vue_type_script_setup_true_lang-B61z8swg.js → UiSkeleton.vue_vue_type_script_setup_true_lang-Dg-HzSqj.js} +285 -285
  2. package/dist/chunks/{pageHeader-D9KF7WOO.js → pageHeader-DhPY_hNA.js} +153 -62
  3. package/dist/components/StatusBadge.styles.d.ts +5 -0
  4. package/dist/components/StatusBadge.vue.d.ts +2 -2
  5. package/dist/components/UiButton.styles.d.ts +31 -1
  6. package/dist/components/UiButton.vue.d.ts +4 -0
  7. package/dist/components/UiCheckbox.styles.d.ts +2 -4
  8. package/dist/components/UiSegmentedControl.styles.d.ts +5 -1
  9. package/dist/components/UiSelect.styles.d.ts +10 -3
  10. package/dist/components/UiSkeleton.styles.d.ts +1 -33
  11. package/dist/components.js +1 -1
  12. package/dist/index.js +2 -2
  13. package/dist/styles/recipes/badge.recipe.d.ts +5 -0
  14. package/dist/styles/recipes/button.recipe.d.ts +31 -1
  15. package/dist/styles/recipes/card.recipe.d.ts +23 -12
  16. package/dist/styles/recipes/dropdown.recipe.d.ts +6 -6
  17. package/dist/styles/recipes/input.recipe.d.ts +0 -3
  18. package/dist/styles.js +118 -92
  19. package/dist/tokens/colors.d.ts +30 -0
  20. package/dist/tokens/core-colors.d.ts +30 -0
  21. package/dist/tokens/motion.d.ts +20 -0
  22. package/dist/tokens/radius.d.ts +9 -0
  23. package/dist/tokens-core.js +21 -5
  24. package/dist/ui.css +312 -207
  25. package/package.json +1 -1
  26. package/src/components/ResultPanel.styles.ts +7 -2
  27. package/src/components/SectionCard.styles.ts +1 -1
  28. package/src/components/StatusBadge.styles.ts +10 -8
  29. package/src/components/StatusBadge.vue +1 -1
  30. package/src/components/UiButton.vue +5 -1
  31. package/src/components/UiCheckbox.styles.ts +7 -11
  32. package/src/components/UiField.styles.ts +2 -2
  33. package/src/components/UiLoadingState.styles.ts +2 -2
  34. package/src/components/UiSegmentedControl.styles.ts +14 -4
  35. package/src/components/UiSelect.styles.ts +24 -10
  36. package/src/components/UiSkeleton.styles.ts +7 -36
  37. package/src/css/base.css +44 -9
  38. package/src/styles/layouts/page.ts +5 -0
  39. package/src/styles/primitives/feedback.ts +1 -0
  40. package/src/styles/primitives/fields.ts +21 -11
  41. package/src/styles/primitives/surfaces.ts +12 -5
  42. package/src/styles/primitives/typography.ts +5 -4
  43. package/src/styles/recipes/badge.recipe.ts +5 -5
  44. package/src/styles/recipes/button.recipe.ts +83 -8
  45. package/src/styles/recipes/card.recipe.ts +24 -13
  46. package/src/styles/recipes/dropdown.recipe.ts +11 -8
  47. package/src/styles/recipes/input.recipe.ts +10 -6
  48. package/src/tokens/core-colors.ts +5 -0
  49. package/src/tokens/motion.ts +8 -0
  50. package/src/tokens/radius.ts +3 -0
@@ -3,65 +3,33 @@ export declare const skeletonClass: import("../../styled-system/types").RecipeRu
3
3
  text: {
4
4
  width: "100%";
5
5
  height: "0.875rem";
6
- borderRadius: "md";
7
- bg: "rgba(127, 146, 184, 0.14)";
8
- _dark: {
9
- bg: "rgba(210, 220, 240, 0.09)";
10
- };
11
6
  };
12
7
  title: {
13
8
  width: "100%";
14
9
  height: "1.75rem";
15
- borderRadius: "xl";
16
- bg: "rgba(127, 146, 184, 0.14)";
17
- _dark: {
18
- bg: "rgba(210, 220, 240, 0.09)";
19
- };
10
+ borderRadius: "md";
20
11
  };
21
12
  rect: {
22
13
  width: "100%";
23
14
  height: "5rem";
24
- borderRadius: "xl";
25
- bg: "rgba(127, 146, 184, 0.14)";
26
- _dark: {
27
- bg: "rgba(210, 220, 240, 0.09)";
28
- };
29
15
  };
30
16
  pill: {
31
17
  width: "5rem";
32
18
  height: "1.75rem";
33
19
  borderRadius: "999px";
34
- bg: "rgba(127, 146, 184, 0.14)";
35
- _dark: {
36
- bg: "rgba(210, 220, 240, 0.09)";
37
- };
38
20
  };
39
21
  circle: {
40
22
  width: "2.75rem";
41
23
  height: "2.75rem";
42
24
  borderRadius: "999px";
43
- bg: "rgba(127, 146, 184, 0.14)";
44
- _dark: {
45
- bg: "rgba(210, 220, 240, 0.09)";
46
- };
47
25
  };
48
26
  stat: {
49
27
  width: "100%";
50
28
  height: "4.75rem";
51
- borderRadius: "xl";
52
- bg: "rgba(117, 138, 178, 0.16)";
53
- _dark: {
54
- bg: "rgba(210, 220, 240, 0.11)";
55
- };
56
29
  };
57
30
  action: {
58
31
  width: "100%";
59
32
  height: "2.75rem";
60
- borderRadius: "xl";
61
- bg: "rgba(127, 146, 184, 0.14)";
62
- _dark: {
63
- bg: "rgba(210, 220, 240, 0.09)";
64
- };
65
33
  };
66
34
  };
67
35
  }>;
@@ -1,4 +1,4 @@
1
- import { _ as s, a as t, b as i, c as o, d as n, e as S, f as U, g as d, h as l, i as c, j as g } from "./chunks/UiSkeleton.vue_vue_type_script_setup_true_lang-B61z8swg.js";
1
+ import { _ as s, a as t, b as i, c as o, d as n, e as S, f as U, g as d, h as l, i as c, j as g } from "./chunks/UiSkeleton.vue_vue_type_script_setup_true_lang-Dg-HzSqj.js";
2
2
  export {
3
3
  s as PageSurface,
4
4
  t as ResultPanel,
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import { _ as a, a as l, b as o, c as t, d as i, e as n, f as r, g as C, h as c, i as p, j as d } from "./chunks/UiSkeleton.vue_vue_type_script_setup_true_lang-B61z8swg.js";
1
+ import { _ as a, a as l, b as o, c as t, d as i, e as n, f as r, g as C, h as c, i as p, j as d } from "./chunks/UiSkeleton.vue_vue_type_script_setup_true_lang-Dg-HzSqj.js";
2
2
  import { actionToolbarClass as u, badgeRecipe as f, cardRecipe as m, centeredEmptyStatePanelClass as k, clusterLayout as R, emptyStatePanelClass as T, errorTextClass as S, fieldControlClass as x, fieldControlSmClass as b, fieldTextareaClass as P, focusRingClass as y, infoPanelClass as U, inputRecipe as L, loadingRegionClass as h, metricGridPattern as B, mutedTextClass as D, resultRegionClass as H, resultSkeletonPanelClass as j, selectableDetailClass as w, selectableListClass as v, selectableListDetailRootClass as A, splitLayout as E, stackLayout as F } from "./styles.js";
3
- import { b as V, c as _, d as q, e as z, a as I, h as J, i as K, m as M, p as N, f as O, g as Q, j as W, k as X, s as Y, l as Z, n as $ } from "./chunks/pageHeader-D9KF7WOO.js";
3
+ import { b as V, c as _, d as q, e as z, a as I, h as J, i as K, m as M, p as N, f as O, g as Q, j as W, k as X, s as Y, l as Z, n as $ } from "./chunks/pageHeader-DhPY_hNA.js";
4
4
  import { colorTokens as es } from "./tokens.js";
5
5
  import { coreColorTokens as ls, motionTokens as os, radiusTokens as ts, spacingTokens as is, typographyTokens as ns } from "./tokens-core.js";
6
6
  import { desktopColorTokens as Cs } from "./tokens-desktop.js";
@@ -20,6 +20,11 @@ export declare const badgeRecipe: import("../../../styled-system/types").RecipeR
20
20
  bg: "badge.warningBg";
21
21
  color: "badge.warningText";
22
22
  };
23
+ danger: {
24
+ borderColor: "badge.dangerBorder";
25
+ bg: "badge.dangerBg";
26
+ color: "badge.dangerText";
27
+ };
23
28
  };
24
29
  size: {
25
30
  sm: {
@@ -6,7 +6,7 @@ export declare const buttonRecipe: import("../../../styled-system/types").Recipe
6
6
  borderWidth: "1px";
7
7
  borderColor: "transparent";
8
8
  _dark: {
9
- color: "#f7f9fd";
9
+ color: "text.inverse";
10
10
  };
11
11
  };
12
12
  outline: {
@@ -22,6 +22,36 @@ export declare const buttonRecipe: import("../../../styled-system/types").Recipe
22
22
  borderColor: "badge.infoBorder";
23
23
  };
24
24
  };
25
+ size: {
26
+ sm: {
27
+ px: "3";
28
+ py: "1.5";
29
+ fontSize: "xs";
30
+ borderRadius: "md";
31
+ };
32
+ md: {
33
+ px: "4";
34
+ py: "2.5";
35
+ };
36
+ lg: {
37
+ px: "5";
38
+ py: "3";
39
+ fontSize: "md";
40
+ borderRadius: "xl";
41
+ };
42
+ };
43
+ tone: {
44
+ default: {};
45
+ danger: {
46
+ bg: "text.error";
47
+ color: "text.inverse";
48
+ borderWidth: "1px";
49
+ borderColor: "transparent";
50
+ _dark: {
51
+ color: "text.inverse";
52
+ };
53
+ };
54
+ };
25
55
  disabled: {
26
56
  true: {
27
57
  cursor: "not-allowed";
@@ -2,36 +2,47 @@ export declare const cardRecipe: import("../../../styled-system/types").RecipeRu
2
2
  variant: {
3
3
  surface: {
4
4
  position: "relative";
5
- overflow: "hidden";
6
- borderRadius: "3xl";
5
+ borderRadius: "xl";
7
6
  borderColor: "border.subtle";
8
7
  bg: "bg.card";
9
- backdropFilter: "blur(28px) saturate(155%)";
10
- boxShadow: "0 25px 30px -35px rgba(15,23,42,0.42)";
8
+ boxShadow: "0 1px 2px 0 rgba(15,23,42,0.04), 0 1px 3px 0 rgba(15,23,42,0.06)";
9
+ _dark: {
10
+ borderColor: "border.default";
11
+ boxShadow: "0 1px 2px 0 rgba(0,0,0,0.2), 0 1px 3px 0 rgba(0,0,0,0.24)";
12
+ };
11
13
  };
12
14
  inset: {
13
- borderRadius: "2xl";
15
+ borderRadius: "lg";
14
16
  borderColor: "border.soft";
15
17
  bg: "bg.cardAlt";
16
- backdropFilter: "blur(24px) saturate(145%)";
17
- boxShadow: "inset 0 1px 0 rgba(255,255,255,0.22)";
18
+ _dark: {
19
+ borderColor: "border.subtle";
20
+ };
18
21
  };
19
22
  elevated: {
20
- borderRadius: "2xl";
23
+ borderRadius: "lg";
21
24
  borderColor: "border.default";
22
25
  bg: "bg.cardStrong";
23
- backdropFilter: "blur(24px) saturate(145%)";
24
- boxShadow: "0 16px 32px -28px rgba(15,23,42,0.42)";
26
+ boxShadow: "0 1px 2px 0 rgba(15,23,42,0.04), 0 4px 12px -4px rgba(15,23,42,0.1)";
27
+ _dark: {
28
+ borderColor: "border.strong";
29
+ boxShadow: "0 1px 2px 0 rgba(0,0,0,0.24), 0 4px 12px -4px rgba(0,0,0,0.4)";
30
+ };
25
31
  };
26
32
  selectable: {
27
- borderRadius: "2xl";
33
+ borderRadius: "lg";
28
34
  borderColor: "border.default";
29
35
  bg: "bg.cardAlt";
30
36
  cursor: "pointer";
31
37
  _hover: {
32
38
  borderColor: "border.strong";
33
39
  bg: "bg.card";
34
- transform: "translateY(-1px)";
40
+ };
41
+ _dark: {
42
+ borderColor: "border.strong";
43
+ _hover: {
44
+ borderColor: "border.accent";
45
+ };
35
46
  };
36
47
  };
37
48
  };
@@ -2,7 +2,7 @@ export declare const dropdownRecipe: import("../../../styled-system/types").Reci
2
2
  placement: {
3
3
  anchored: {
4
4
  position: "absolute";
5
- top: "calc(100% + 10px)";
5
+ top: "calc(100% + 6px)";
6
6
  left: "0";
7
7
  right: "0";
8
8
  };
@@ -12,14 +12,14 @@ export declare const dropdownRecipe: import("../../../styled-system/types").Reci
12
12
  };
13
13
  density: {
14
14
  cozy: {
15
- borderRadius: "2xl";
16
- p: "2";
17
- gap: "1";
18
- };
19
- compact: {
20
15
  borderRadius: "xl";
21
16
  p: "1.5";
22
17
  gap: "0.5";
23
18
  };
19
+ compact: {
20
+ borderRadius: "lg";
21
+ p: "1";
22
+ gap: "0.5";
23
+ };
24
24
  };
25
25
  }>;
@@ -6,7 +6,6 @@ export declare const inputRecipe: import("../../../styled-system/types").RecipeR
6
6
  px: "3";
7
7
  py: "2.5";
8
8
  lineHeight: "1.45";
9
- boxShadow: "inset 0 1px 0 rgba(255,255,255,0.2)";
10
9
  };
11
10
  md: {
12
11
  minHeight: "48px";
@@ -14,7 +13,6 @@ export declare const inputRecipe: import("../../../styled-system/types").RecipeR
14
13
  px: "4";
15
14
  py: "3";
16
15
  lineHeight: "1.5";
17
- boxShadow: "inset 0 1px 0 rgba(255,255,255,0.24), 0 14px 28px -28px rgba(15,23,42,0.42)";
18
16
  };
19
17
  };
20
18
  kind: {
@@ -26,7 +24,6 @@ export declare const inputRecipe: import("../../../styled-system/types").RecipeR
26
24
  py: "4";
27
25
  lineHeight: "1.6";
28
26
  fontFamily: "mono";
29
- boxShadow: "inset 0 1px 0 rgba(255,255,255,0.24), 0 18px 36px -32px rgba(15,23,42,0.42)";
30
27
  };
31
28
  };
32
29
  }>;