@cognite/aura 0.3.2 → 0.3.4

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 (143) hide show
  1. package/DESIGN.md +134 -5
  2. package/README.md +24 -3
  3. package/dist/components/index.d.ts +5 -1
  4. package/dist/components/index.js +59 -327
  5. package/dist/components/ui/core/accordion/accordion.js +79 -114
  6. package/dist/components/ui/core/action-toolbar/action-toolbar.js +108 -176
  7. package/dist/components/ui/core/alert/alert.js +158 -206
  8. package/dist/components/ui/core/avatar/avatar.js +64 -90
  9. package/dist/components/ui/core/badge/badge.js +73 -108
  10. package/dist/components/ui/core/banner/banner.js +146 -215
  11. package/dist/components/ui/core/breadcrumb/breadcrumb.js +105 -200
  12. package/dist/components/ui/core/button/button.js +47 -52
  13. package/dist/components/ui/core/button-group/button-group.js +40 -79
  14. package/dist/components/ui/core/calendar/calendar-header.js +63 -0
  15. package/dist/components/ui/core/calendar/calendar-utils.js +39 -0
  16. package/dist/components/ui/core/calendar/calendar.js +68 -0
  17. package/dist/components/ui/core/calendar/constants.d.ts +1 -0
  18. package/dist/components/ui/core/card/card.js +102 -185
  19. package/dist/components/ui/core/chart/chart.js +116 -206
  20. package/dist/components/ui/core/chart/index.js +2 -8
  21. package/dist/components/ui/core/checkbox/checkbox.js +67 -132
  22. package/dist/components/ui/core/checkbox/checkbox.metadata.js +7 -7
  23. package/dist/components/ui/core/code-block/code-block.d.ts +1 -1
  24. package/dist/components/ui/core/code-block/code-block.js +179 -267
  25. package/dist/components/ui/core/collapsible/collapsible.js +29 -49
  26. package/dist/components/ui/core/combobox/combobox.js +41 -0
  27. package/dist/components/ui/core/command/command.js +85 -150
  28. package/dist/components/ui/core/count/count.js +21 -32
  29. package/dist/components/ui/core/data-grid/data-grid-cell.d.ts +10 -0
  30. package/dist/components/ui/core/data-grid/data-grid-header-row.d.ts +13 -0
  31. package/dist/components/ui/core/data-grid/data-grid-row.d.ts +18 -0
  32. package/dist/components/ui/core/data-grid/data-grid.d.ts +43 -0
  33. package/dist/components/ui/core/data-grid/data-grid.fixtures.d.ts +12 -0
  34. package/dist/components/ui/core/data-grid/data-grid.utils.d.ts +9 -0
  35. package/dist/components/ui/core/date-time-pickers/date-picker/date-picker.js +60 -72
  36. package/dist/components/ui/core/date-time-pickers/date-picker/types.d.ts +2 -1
  37. package/dist/components/ui/core/date-time-pickers/date-picker/use-date-picker.js +36 -51
  38. package/dist/components/ui/core/date-time-pickers/date-range-picker/date-range-picker.js +63 -87
  39. package/dist/components/ui/core/date-time-pickers/date-range-picker/types.d.ts +2 -1
  40. package/dist/components/ui/core/date-time-pickers/date-range-picker/use-date-range-picker.js +60 -68
  41. package/dist/components/ui/core/date-time-pickers/date-time-picker/index.d.ts +1 -0
  42. package/dist/components/ui/core/date-time-pickers/date-time-picker/types.d.ts +36 -0
  43. package/dist/components/ui/core/date-time-pickers/date-time-picker/use-date-time-picker.d.ts +3 -0
  44. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/date-time-range-picker.js +118 -174
  45. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/types.d.ts +7 -6
  46. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/use-date-time-range-picker.js +104 -145
  47. package/dist/components/ui/core/date-time-pickers/index.d.ts +3 -1
  48. package/dist/components/ui/core/date-time-pickers/index.js +6 -10
  49. package/dist/components/ui/core/date-time-pickers/shared/am-pm-scroll/am-pm-scroll.d.ts +3 -2
  50. package/dist/components/ui/core/date-time-pickers/shared/am-pm-scroll/am-pm-scroll.js +42 -56
  51. package/dist/components/ui/core/date-time-pickers/shared/constants.d.ts +3 -8
  52. package/dist/components/ui/core/date-time-pickers/shared/date-time-input/date-time-input.js +64 -98
  53. package/dist/components/ui/core/date-time-pickers/shared/date-time-input/range-input-display.js +38 -67
  54. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-popover-state.js +23 -23
  55. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-range-date-state.js +52 -62
  56. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-range-step-manager.js +18 -18
  57. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-single-date-state.js +24 -31
  58. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-time-state.d.ts +3 -3
  59. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-time-state.js +24 -33
  60. package/dist/components/ui/core/date-time-pickers/shared/scroll-cell-classes.js +4 -7
  61. package/dist/components/ui/core/date-time-pickers/shared/shortcuts-panel/shortcuts-panel.d.ts +3 -2
  62. package/dist/components/ui/core/date-time-pickers/shared/shortcuts-panel/shortcuts-panel.js +17 -31
  63. package/dist/components/ui/core/date-time-pickers/shared/time-picker-panel/time-picker-panel.d.ts +3 -2
  64. package/dist/components/ui/core/date-time-pickers/shared/time-picker-panel/time-picker-panel.js +40 -40
  65. package/dist/components/ui/core/date-time-pickers/shared/time-picker-scroll/time-picker-scroll.js +33 -50
  66. package/dist/components/ui/core/date-time-pickers/time-picker/time-picker.js +78 -99
  67. package/dist/components/ui/core/date-time-pickers/time-picker/types.d.ts +5 -4
  68. package/dist/components/ui/core/date-time-pickers/time-picker/use-time-picker.js +41 -63
  69. package/dist/components/ui/core/date-time-pickers/time-range-picker/index.d.ts +1 -0
  70. package/dist/components/ui/core/date-time-pickers/time-range-picker/types.d.ts +40 -0
  71. package/dist/components/ui/core/date-time-pickers/time-range-picker/use-time-range-picker.d.ts +3 -0
  72. package/dist/components/ui/core/date-time-pickers/utils/format-utils.d.ts +1 -0
  73. package/dist/components/ui/core/date-time-pickers/utils/time-utils.d.ts +3 -3
  74. package/dist/components/ui/core/date-time-pickers/utils/time-utils.js +7 -15
  75. package/dist/components/ui/core/dialog/dialog.js +82 -155
  76. package/dist/components/ui/core/dropdown-menu/dropdown-menu.d.ts +2 -2
  77. package/dist/components/ui/core/dropdown-menu/dropdown-menu.js +150 -248
  78. package/dist/components/ui/core/empty-state/empty-state.context.js +5 -8
  79. package/dist/components/ui/core/empty-state/empty-state.js +86 -138
  80. package/dist/components/ui/core/helper-text/helper-text.js +37 -65
  81. package/dist/components/ui/core/hover-card/hover-card.js +54 -80
  82. package/dist/components/ui/core/inline-citation/inline-citation.js +98 -181
  83. package/dist/components/ui/core/input/input.js +12 -27
  84. package/dist/components/ui/core/input-group/input-group.js +76 -173
  85. package/dist/components/ui/core/kbd/kbd.js +20 -36
  86. package/dist/components/ui/core/label/label.js +26 -43
  87. package/dist/components/ui/core/loader/loader.js +80 -117
  88. package/dist/components/ui/core/message/message-response-default-streamdown-controls.js +12 -12
  89. package/dist/components/ui/core/message/message.d.ts +2 -2
  90. package/dist/components/ui/core/message/message.js +316 -542
  91. package/dist/components/ui/core/overflow-list/overflow-list.utils.d.ts +52 -0
  92. package/dist/components/ui/core/pagination/pagination-size-context.js +5 -6
  93. package/dist/components/ui/core/pagination/pagination-teleport.js +86 -106
  94. package/dist/components/ui/core/pagination/pagination-teleport.utils.js +6 -6
  95. package/dist/components/ui/core/pagination/pagination.js +231 -334
  96. package/dist/components/ui/core/popover/popover.js +90 -157
  97. package/dist/components/ui/core/progress/progress.js +36 -61
  98. package/dist/components/ui/core/prompt-input/prompt-input.js +274 -413
  99. package/dist/components/ui/core/radio-group/radio-group.js +58 -113
  100. package/dist/components/ui/core/reasoning/reasoning.js +55 -86
  101. package/dist/components/ui/core/scroll-area/scroll-area.js +41 -71
  102. package/dist/components/ui/core/search/search.js +77 -99
  103. package/dist/components/ui/core/segmented-control/segmented-control.js +110 -167
  104. package/dist/components/ui/core/select/select.js +168 -293
  105. package/dist/components/ui/core/separator/separator.js +13 -23
  106. package/dist/components/ui/core/shimmer/shimmer.d.ts +2 -4
  107. package/dist/components/ui/core/shimmer/shimmer.js +40 -107
  108. package/dist/components/ui/core/skeleton/skeleton.js +13 -18
  109. package/dist/components/ui/core/slider/slider.d.ts +9 -0
  110. package/dist/components/ui/core/slider/slider.js +40 -0
  111. package/dist/components/ui/core/sonner-toast/sonner-toast.js +54 -47
  112. package/dist/components/ui/core/sources/sources.d.ts +5 -1
  113. package/dist/components/ui/core/sources/sources.js +58 -79
  114. package/dist/components/ui/core/switch/switch.js +62 -0
  115. package/dist/components/ui/core/tabs/tabs.js +149 -223
  116. package/dist/components/ui/core/tabs/tabs.utils.js +6 -8
  117. package/dist/components/ui/core/textarea/textarea.js +13 -27
  118. package/dist/components/ui/core/toggle/toggle.js +55 -74
  119. package/dist/components/ui/core/tool/tool.js +127 -163
  120. package/dist/components/ui/core/tooltip/tooltip.js +47 -86
  121. package/dist/components/ui/core/topbar/topbar.js +106 -190
  122. package/dist/eslint/index.js +5 -10
  123. package/dist/eslint/no-overriding-styles.js +178 -237
  124. package/dist/icons/index.d.ts +1 -0
  125. package/dist/icons/index.js +1 -0
  126. package/dist/index.d.ts +1 -1
  127. package/dist/lib/highlight-code.d.ts +9 -0
  128. package/dist/lib/highlight-code.js +42 -0
  129. package/dist/lib/portal-container-context.js +8 -9
  130. package/dist/lib/style-scope.js +6 -6
  131. package/dist/lib/use-controllable-state.js +21 -30
  132. package/dist/lib/utils.d.ts +0 -2
  133. package/dist/lib/utils.js +32 -112
  134. package/dist/styles.css +1 -1
  135. package/dist/styles.source.css +26 -0
  136. package/package.json +42 -8
  137. package/dist/components/ui/core/date-time-pickers/shared/calendar/calendar.js +0 -119
  138. package/dist/components/ui/core/date-time-pickers/shared/calendar-header/calendar-header.js +0 -93
  139. package/dist/components/ui/core/date-time-pickers/shared/constants.js +0 -14
  140. package/dist/components/ui/core/date-time-pickers/utils/calendar-utils.js +0 -52
  141. /package/dist/components/ui/core/{date-time-pickers/shared/calendar-header → calendar}/calendar-header.d.ts +0 -0
  142. /package/dist/components/ui/core/{date-time-pickers/utils → calendar}/calendar-utils.d.ts +0 -0
  143. /package/dist/components/ui/core/{date-time-pickers/shared/calendar → calendar}/calendar.d.ts +0 -0
@@ -0,0 +1,68 @@
1
+ import { cn as e } from "../../../../lib/utils.js";
2
+ import { CalendarHeader as t } from "./calendar-header.js";
3
+ import { getCalendarDays as n, getWeekNumbers as r, getWeekdayNames as i, isDateInRange as a, isOutsideMonth as o, isSameDay as s, isToday as c } from "./calendar-utils.js";
4
+ import l from "react";
5
+ import { jsx as u, jsxs as d } from "react/jsx-runtime";
6
+ //#region libs/aura/src/components/ui/core/calendar/calendar.tsx
7
+ function f({ isOutsideMonth: t, isSelected: n, isToday: r, isRangeStart: i, isRangeEnd: a, isInRange: o, isInHoverRange: s }) {
8
+ return e("w-9 h-9 flex items-center justify-center text-sm font-medium cursor-pointer select-none relative transition-colors", "focus-visible:ring-2 focus-visible:ring-border focus-visible:outline-none", i && a && "rounded-lg", i && !a && "rounded-l-lg", a && !i && "rounded-r-lg", n && "bg-primary-background text-foreground-on-primary hover:bg-primary-background", !n && t && "text-muted-foreground/50", !n && !t && (o || s) ? "text-foreground" : !n && !t && "text-secondary-foreground", !n && (o || s) && "bg-accent-background", !n && "hover:bg-accent-background hover:rounded-lg hover:text-foreground", r && !n && "border border-border rounded-lg");
9
+ }
10
+ var p = ({ displayedMonth: p, selectedRange: m, hoverDate: h, displayWeekNumber: g = !1, onDateClick: _, onMonthChange: v, onDateHover: y, className: b }) => {
11
+ let [x, S] = m, C = n(p), w = i(), T = g ? r(C) : [], E = () => {
12
+ v(p.subtract(1, "month"));
13
+ }, D = () => {
14
+ v(p.add(1, "month"));
15
+ }, O = (e) => {
16
+ let t = {
17
+ isOutsideMonth: o(e, p),
18
+ isToday: c(e),
19
+ isSelected: s(e, x) || s(e, S),
20
+ isRangeStart: s(e, x),
21
+ isRangeEnd: s(e, S),
22
+ isInRange: a(e, x, S),
23
+ isInHoverRange: !1
24
+ };
25
+ return h && x && !S && (t.isInHoverRange = a(e, x.isBefore(h) ? x : h, x.isBefore(h) ? h : x)), t;
26
+ };
27
+ return /* @__PURE__ */ d("div", {
28
+ "data-slot": "calendar",
29
+ className: e("flex flex-col gap-4", b),
30
+ children: [/* @__PURE__ */ u(t, {
31
+ displayedMonth: p,
32
+ onPrevMonth: E,
33
+ onNextMonth: D,
34
+ onMonthChange: v
35
+ }), /* @__PURE__ */ d("div", {
36
+ className: e("grid gap-0", g ? "grid-cols-calendar-weeks" : "grid-cols-calendar"),
37
+ children: [
38
+ g && /* @__PURE__ */ u("div", {
39
+ className: "text-xs font-semibold text-muted-foreground text-center py-2 px-1",
40
+ children: "#"
41
+ }),
42
+ w.map((e) => /* @__PURE__ */ u("div", {
43
+ className: "text-xs font-medium text-muted-foreground text-center py-2 px-1 tracking-tighter",
44
+ children: e
45
+ }, e)),
46
+ C.map((e, t) => {
47
+ let n = O(e), r = Math.floor(t / 7), i = g && t % 7 == 0, a = `day-${e.format("YYYY-MM-DD")}`;
48
+ return /* @__PURE__ */ d(l.Fragment, { children: [i && /* @__PURE__ */ u("div", {
49
+ className: "text-xs text-muted-foreground text-center flex items-center justify-center h-9",
50
+ children: T[r]
51
+ }), /* @__PURE__ */ u("div", {
52
+ className: f(n),
53
+ onClick: () => _(e),
54
+ onMouseEnter: () => y?.(e),
55
+ onMouseLeave: () => y?.(null),
56
+ role: "gridcell",
57
+ tabIndex: 0,
58
+ "aria-label": e.format("DD MMMM YYYY"),
59
+ "aria-selected": n.isSelected,
60
+ children: e.date()
61
+ })] }, a);
62
+ })
63
+ ]
64
+ })]
65
+ });
66
+ };
67
+ //#endregion
68
+ export { p as Calendar };
@@ -0,0 +1 @@
1
+ export declare const DAYS_IN_WEEK = 7;
@@ -1,187 +1,104 @@
1
- import { jsx as e, jsxs as n } from "react/jsx-runtime";
2
- import { forwardRef as d } from "react";
3
- import { IconDotsVertical as l } from "@tabler/icons-react";
4
- import { cn as s } from "../../../../lib/utils.js";
5
- import { Button as c } from "../button/button.js";
6
- import { DropdownMenu as i, DropdownMenuTrigger as m, DropdownMenuContent as f } from "../dropdown-menu/dropdown-menu.js";
7
- const p = d(
8
- ({ className: t, ...r }, a) => /* @__PURE__ */ e(
9
- "div",
10
- {
11
- ref: a,
12
- "data-slot": "card",
13
- className: s(
14
- "bg-card-background text-foreground flex flex-col rounded-xl p-4 gap-4",
15
- t
16
- ),
17
- ...r
18
- }
19
- )
20
- );
21
- p.displayName = "Card";
22
- const u = d(
23
- ({ className: t, children: r, ...a }, o) => /* @__PURE__ */ e(
24
- "div",
25
- {
26
- ref: o,
27
- "data-slot": "card-header-start",
28
- className: s(
29
- "col-start-1 row-start-1 h-12 self-stretch pt-1.5",
30
- t
31
- ),
32
- ...a,
33
- children: /* @__PURE__ */ e("div", { className: "flex items-start h-full", children: r })
34
- }
35
- )
36
- );
1
+ import { cn as e } from "../../../../lib/utils.js";
2
+ import { Button as t } from "../button/button.js";
3
+ import { DropdownMenu as n, DropdownMenuContent as r, DropdownMenuTrigger as i } from "../dropdown-menu/dropdown-menu.js";
4
+ import { forwardRef as a } from "react";
5
+ import { IconDotsVertical as o } from "@tabler/icons-react";
6
+ import { jsx as s, jsxs as c } from "react/jsx-runtime";
7
+ //#region libs/aura/src/components/ui/core/card/card.tsx
8
+ var l = a(({ className: t, ...n }, r) => /* @__PURE__ */ s("div", {
9
+ ref: r,
10
+ "data-slot": "card",
11
+ className: e("bg-card-background text-foreground flex flex-col rounded-xl p-4 gap-4", t),
12
+ ...n
13
+ }));
14
+ l.displayName = "Card";
15
+ var u = a(({ className: t, children: n, ...r }, i) => /* @__PURE__ */ s("div", {
16
+ ref: i,
17
+ "data-slot": "card-header-start",
18
+ className: e("col-start-1 row-start-1 h-12 self-stretch pt-1.5", t),
19
+ ...r,
20
+ children: /* @__PURE__ */ s("div", {
21
+ className: "flex items-start h-full",
22
+ children: n
23
+ })
24
+ }));
37
25
  u.displayName = "CardHeaderStart";
38
- const C = d(({ className: t, as: r = "h3", ...a }, o) => /* @__PURE__ */ e(
39
- r,
40
- {
41
- ref: o,
42
- "data-slot": "card-title",
43
- className: s(
44
- "tracking-tightest text-foreground font-medium text-lg leading-6 line-clamp-2 overflow-hidden",
45
- t
46
- ),
47
- ...a
48
- }
49
- ));
50
- C.displayName = "CardTitle";
51
- const g = d(
52
- ({ className: t, ...r }, a) => /* @__PURE__ */ e(
53
- "p",
54
- {
55
- ref: a,
56
- "data-slot": "card-description",
57
- className: s(
58
- "text-muted-foreground text-sm font-normal leading-5 tracking-tight line-clamp-2 overflow-hidden",
59
- t
60
- ),
61
- ...r
62
- }
63
- )
64
- );
65
- g.displayName = "CardDescription";
66
- const x = d(
67
- ({ className: t, ...r }, a) => /* @__PURE__ */ e(
68
- "div",
69
- {
70
- ref: a,
71
- "data-slot": "card-header-end",
72
- className: s(
73
- "col-start-3 row-start-1 self-start justify-self-end flex justify-end items-start gap-1",
74
- t
75
- ),
76
- ...r
77
- }
78
- )
79
- );
80
- x.displayName = "CardHeaderEnd";
81
- const N = d(
82
- ({ className: t, children: r, ...a }, o) => /* @__PURE__ */ e(
83
- "div",
84
- {
85
- ref: o,
86
- "data-slot": "card-header",
87
- className: s(
88
- "group/card-header @container/card-header grid items-center gap-x-3 grid-cols-[auto_minmax(0,1fr)_auto]",
89
- t
90
- ),
91
- ...a,
92
- children: r
93
- }
94
- )
95
- );
96
- N.displayName = "CardHeader";
97
- const h = d(
98
- ({ className: t, ...r }, a) => /* @__PURE__ */ e(
99
- "div",
100
- {
101
- ref: a,
102
- "data-slot": "card-header-center",
103
- className: s(
104
- "col-start-1 row-start-1 min-w-0 flex flex-col justify-center",
105
- "group-has-data-[slot=card-header-start]/card-header:col-start-2",
106
- t
107
- ),
108
- ...r
109
- }
110
- )
111
- );
26
+ var d = a(({ className: t, as: n = "h3", ...r }, i) => /* @__PURE__ */ s(n, {
27
+ ref: i,
28
+ "data-slot": "card-title",
29
+ className: e("tracking-tightest text-foreground font-medium text-lg leading-6 line-clamp-2 overflow-hidden", t),
30
+ ...r
31
+ }));
32
+ d.displayName = "CardTitle";
33
+ var f = a(({ className: t, ...n }, r) => /* @__PURE__ */ s("p", {
34
+ ref: r,
35
+ "data-slot": "card-description",
36
+ className: e("text-muted-foreground text-sm font-normal leading-5 tracking-tight line-clamp-2 overflow-hidden", t),
37
+ ...n
38
+ }));
39
+ f.displayName = "CardDescription";
40
+ var p = a(({ className: t, ...n }, r) => /* @__PURE__ */ s("div", {
41
+ ref: r,
42
+ "data-slot": "card-header-end",
43
+ className: e("col-start-3 row-start-1 self-start justify-self-end flex justify-end items-start gap-1", t),
44
+ ...n
45
+ }));
46
+ p.displayName = "CardHeaderEnd";
47
+ var m = a(({ className: t, children: n, ...r }, i) => /* @__PURE__ */ s("div", {
48
+ ref: i,
49
+ "data-slot": "card-header",
50
+ className: e("group/card-header @container/card-header grid items-center gap-x-3 grid-cols-[auto_minmax(0,1fr)_auto]", t),
51
+ ...r,
52
+ children: n
53
+ }));
54
+ m.displayName = "CardHeader";
55
+ var h = a(({ className: t, ...n }, r) => /* @__PURE__ */ s("div", {
56
+ ref: r,
57
+ "data-slot": "card-header-center",
58
+ className: e("col-start-1 row-start-1 min-w-0 flex flex-col justify-center", "group-has-data-[slot=card-header-start]/card-header:col-start-2", t),
59
+ ...n
60
+ }));
112
61
  h.displayName = "CardHeaderCenter";
113
- const y = d(({ children: t, align: r = "end", ...a }, o) => /* @__PURE__ */ n(i, { ...a, children: [
114
- /* @__PURE__ */ e(
115
- m,
116
- {
117
- render: /* @__PURE__ */ e(c, { variant: "ghost", size: "icon-sm", ref: o, children: /* @__PURE__ */ e(l, {}) })
118
- }
119
- ),
120
- /* @__PURE__ */ e(f, { align: r, children: t })
121
- ] }));
122
- y.displayName = "CardActions";
123
- const v = d(
124
- ({ className: t, ...r }, a) => /* @__PURE__ */ e(
125
- "div",
126
- {
127
- ref: a,
128
- "data-slot": "card-content",
129
- className: s(
130
- "text-secondary-foreground flex flex-col items-start gap-4 self-stretch",
131
- t
132
- ),
133
- ...r
134
- }
135
- )
136
- );
137
- v.displayName = "CardContent";
138
- const w = d(
139
- ({ className: t, ...r }, a) => /* @__PURE__ */ e(
140
- "div",
141
- {
142
- ref: a,
143
- "data-slot": "card-footer",
144
- className: s("flex items-center gap-4 self-stretch", t),
145
- ...r
146
- }
147
- )
148
- );
149
- w.displayName = "CardFooter";
150
- const H = d(
151
- ({ className: t, ...r }, a) => /* @__PURE__ */ e(
152
- "div",
153
- {
154
- ref: a,
155
- "data-slot": "card-footer-start",
156
- className: s("flex-1 flex items-start justify-start gap-2", t),
157
- ...r
158
- }
159
- )
160
- );
161
- H.displayName = "CardFooterStart";
162
- const j = d(
163
- ({ className: t, ...r }, a) => /* @__PURE__ */ e(
164
- "div",
165
- {
166
- ref: a,
167
- "data-slot": "card-footer-end",
168
- className: s("flex items-center justify-end", t),
169
- ...r
170
- }
171
- )
172
- );
173
- j.displayName = "CardFooterEnd";
174
- export {
175
- p as Card,
176
- y as CardActions,
177
- v as CardContent,
178
- g as CardDescription,
179
- w as CardFooter,
180
- j as CardFooterEnd,
181
- H as CardFooterStart,
182
- N as CardHeader,
183
- h as CardHeaderCenter,
184
- x as CardHeaderEnd,
185
- u as CardHeaderStart,
186
- C as CardTitle
187
- };
62
+ var g = a(({ children: e, align: a = "end", ...l }, u) => /* @__PURE__ */ c(n, {
63
+ ...l,
64
+ children: [/* @__PURE__ */ s(i, { render: /* @__PURE__ */ s(t, {
65
+ variant: "ghost",
66
+ size: "icon-sm",
67
+ ref: u,
68
+ children: /* @__PURE__ */ s(o, {})
69
+ }) }), /* @__PURE__ */ s(r, {
70
+ align: a,
71
+ children: e
72
+ })]
73
+ }));
74
+ g.displayName = "CardActions";
75
+ var _ = a(({ className: t, ...n }, r) => /* @__PURE__ */ s("div", {
76
+ ref: r,
77
+ "data-slot": "card-content",
78
+ className: e("text-secondary-foreground flex flex-col items-start gap-4 self-stretch", t),
79
+ ...n
80
+ }));
81
+ _.displayName = "CardContent";
82
+ var v = a(({ className: t, ...n }, r) => /* @__PURE__ */ s("div", {
83
+ ref: r,
84
+ "data-slot": "card-footer",
85
+ className: e("flex items-center gap-4 self-stretch", t),
86
+ ...n
87
+ }));
88
+ v.displayName = "CardFooter";
89
+ var y = a(({ className: t, ...n }, r) => /* @__PURE__ */ s("div", {
90
+ ref: r,
91
+ "data-slot": "card-footer-start",
92
+ className: e("flex-1 flex items-start justify-start gap-2", t),
93
+ ...n
94
+ }));
95
+ y.displayName = "CardFooterStart";
96
+ var b = a(({ className: t, ...n }, r) => /* @__PURE__ */ s("div", {
97
+ ref: r,
98
+ "data-slot": "card-footer-end",
99
+ className: e("flex items-center justify-end", t),
100
+ ...n
101
+ }));
102
+ b.displayName = "CardFooterEnd";
103
+ //#endregion
104
+ export { l as Card, g as CardActions, _ as CardContent, f as CardDescription, v as CardFooter, b as CardFooterEnd, y as CardFooterStart, m as CardHeader, h as CardHeaderCenter, p as CardHeaderEnd, u as CardHeaderStart, d as CardTitle };