@actioneer/ads 0.6.0 → 0.8.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 (123) hide show
  1. package/DESIGN.md +597 -0
  2. package/components/ai-elements/agent-trace.d.ts +2 -2
  3. package/components/ai-elements/agent-trace.js +164 -105
  4. package/components/ai-elements/chain-of-thought.d.ts +2 -2
  5. package/components/ai-elements/chain-of-thought.js +1 -1
  6. package/components/ai-elements/index.d.ts +0 -5
  7. package/components/ai-elements/inline-citation.js +1 -1
  8. package/components/alert.d.ts +6 -6
  9. package/components/alert.js +89 -53
  10. package/components/answer-sources.d.ts +2 -6
  11. package/components/answer-sources.js +58 -60
  12. package/components/answer.d.ts +5 -0
  13. package/components/answer.js +311 -271
  14. package/components/assistant-ui/action-bar.js +1 -1
  15. package/components/assistant-ui/attachment.js +11 -11
  16. package/components/assistant-ui/badge.js +18 -18
  17. package/components/assistant-ui/composer-harness.js +15 -20
  18. package/components/assistant-ui/composer-trigger-popover.js +9 -9
  19. package/components/assistant-ui/composer.d.ts +3 -1
  20. package/components/assistant-ui/composer.js +148 -144
  21. package/components/assistant-ui/image.js +61 -61
  22. package/components/assistant-ui/index.d.ts +0 -3
  23. package/components/assistant-ui/message-timing.js +1 -1
  24. package/components/assistant-ui/selection-toolbar.js +7 -7
  25. package/components/assistant-ui/thread-context.d.ts +3 -1
  26. package/components/assistant-ui/thread.js +50 -42
  27. package/components/avatar.js +42 -42
  28. package/components/badge.d.ts +5 -6
  29. package/components/badge.js +13 -76
  30. package/components/body-page-header.d.ts +15 -0
  31. package/components/body-page-header.js +24 -0
  32. package/components/brand-loader.d.ts +0 -3
  33. package/components/brand-loader.js +10 -32
  34. package/components/breadcrumbs.d.ts +0 -7
  35. package/components/breadcrumbs.js +54 -71
  36. package/components/button.d.ts +1 -1
  37. package/components/button.js +55 -49
  38. package/components/chart.js +298 -296
  39. package/components/chip.d.ts +13 -1
  40. package/components/chip.js +93 -80
  41. package/components/collection-header.d.ts +17 -0
  42. package/components/collection-header.js +31 -0
  43. package/components/connector-card.d.ts +6 -6
  44. package/components/connector-card.js +31 -32
  45. package/components/date-range-picker.d.ts +2 -1
  46. package/components/date-range-picker.js +158 -122
  47. package/components/divider.js +25 -25
  48. package/components/drawer.d.ts +6 -2
  49. package/components/drawer.js +61 -58
  50. package/components/dropdown.d.ts +1 -2
  51. package/components/dropdown.js +88 -89
  52. package/components/field.js +41 -36
  53. package/components/file-dropzone.js +1 -1
  54. package/components/index.d.ts +4 -4
  55. package/components/index.js +501 -549
  56. package/components/infinite-canvas.js +24 -24
  57. package/components/input-field.d.ts +18 -3
  58. package/components/input-field.js +88 -72
  59. package/components/input.js +32 -29
  60. package/components/modal.d.ts +31 -3
  61. package/components/modal.js +244 -170
  62. package/components/number-field.js +45 -42
  63. package/components/page-body.d.ts +12 -0
  64. package/components/page-body.js +18 -0
  65. package/components/pagination.js +36 -36
  66. package/components/pixel-blast-svg.js +71 -73
  67. package/components/select.d.ts +21 -0
  68. package/components/select.js +189 -148
  69. package/components/setting-row.d.ts +6 -5
  70. package/components/setting-row.js +33 -32
  71. package/components/sidebar.d.ts +2 -0
  72. package/components/sidebar.js +151 -141
  73. package/components/skeleton.js +8 -7
  74. package/components/slider.js +1 -1
  75. package/components/surface-loader.d.ts +11 -0
  76. package/components/surface-loader.js +35 -0
  77. package/components/table.d.ts +16 -10
  78. package/components/table.js +427 -412
  79. package/components/tabs.d.ts +2 -0
  80. package/components/tabs.js +160 -295
  81. package/components/textarea.js +9 -9
  82. package/components/toast.d.ts +1 -1
  83. package/components/toast.js +181 -118
  84. package/components/tree.d.ts +5 -1
  85. package/components/tree.js +54 -49
  86. package/components/typography.d.ts +4 -4
  87. package/components/typography.js +13 -13
  88. package/components/ui/button.d.ts +1 -1
  89. package/components/ui/button.js +4 -4
  90. package/components/ui/dialog.js +25 -25
  91. package/demo/components/add-to-artifact.js +6 -10
  92. package/lib/cn.js +11 -4
  93. package/lib/icons.d.ts +4 -0
  94. package/lib/icons.js +103 -102
  95. package/lib/interactive.d.ts +1 -1
  96. package/llms.txt +132 -188
  97. package/manifest.json +1719 -2831
  98. package/package.json +2 -2
  99. package/styles.css +362 -233
  100. package/theme.css +312 -177
  101. package/components/agent-icon.d.ts +0 -76
  102. package/components/agent-icon.js +0 -265
  103. package/components/ai-elements/queue.d.ts +0 -60
  104. package/components/ai-elements/queue.js +0 -193
  105. package/components/ai-elements/speech-input.d.ts +0 -16
  106. package/components/ai-elements/speech-input.js +0 -151
  107. package/components/ai-elements/task-progress.d.ts +0 -41
  108. package/components/ai-elements/task-progress.js +0 -224
  109. package/components/ai-elements/task.d.ts +0 -39
  110. package/components/ai-elements/task.js +0 -105
  111. package/components/ai-elements/voice.d.ts +0 -90
  112. package/components/ai-elements/voice.js +0 -496
  113. package/components/assistant-ui/follow-up-suggestions.d.ts +0 -11
  114. package/components/assistant-ui/follow-up-suggestions.js +0 -72
  115. package/components/assistant-ui/suggestions.d.ts +0 -7
  116. package/components/assistant-ui/suggestions.js +0 -19
  117. package/components/assistant-ui/voice.d.ts +0 -18
  118. package/components/link.d.ts +0 -14
  119. package/components/link.js +0 -72
  120. package/components/navbar.d.ts +0 -15
  121. package/components/navbar.js +0 -68
  122. package/components/pixel-icon.d.ts +0 -37
  123. package/components/pixel-icon.js +0 -859
@@ -1,176 +1,212 @@
1
1
  "use client";
2
- import { jsxs as a, jsx as e } from "react/jsx-runtime";
3
- import * as x from "react";
4
- import { parseDate as u } from "@internationalized/date";
5
- import { DateRangePicker as H, Label as I, Group as L, DateInput as b, DateSegment as p, Button as l, Text as h, Popover as O, Dialog as T, RangeCalendar as $, Heading as q, CalendarGrid as A, CalendarGridHeader as E, CalendarHeaderCell as F, CalendarGridBody as J, CalendarCell as K } from "react-aria-components";
6
- import { Calendar as M, ChevronLeft as Q, ChevronRight as U } from "../lib/icons.js";
7
- import { cn as n } from "../lib/cn.js";
8
- function N(r) {
9
- if (!(r != null && r.start) || !r.end) return null;
2
+ import { jsx as t, jsxs as d } from "react/jsx-runtime";
3
+ import * as c from "react";
4
+ import { parseDate as p } from "@internationalized/date";
5
+ import { I18nProvider as L, DateRangePicker as A, Label as I, Group as J, DateInput as g, DateSegment as v, Button as m, Text as N, Popover as O, Dialog as E, RangeCalendar as T, Heading as Y, CalendarGrid as F, CalendarGridHeader as _, CalendarHeaderCell as $, CalendarGridBody as q, CalendarCell as K } from "react-aria-components";
6
+ import { Calendar as Q, ChevronLeft as U, ChevronRight as W } from "../lib/icons.js";
7
+ import { cn as o } from "../lib/cn.js";
8
+ import { interactive as X } from "../lib/interactive.js";
9
+ function w(e) {
10
+ if (!(e != null && e.start) || !e.end) return null;
10
11
  try {
11
12
  return {
12
- start: u(r.start),
13
- end: u(r.end)
13
+ start: p(e.start),
14
+ end: p(e.end)
14
15
  };
15
16
  } catch {
16
17
  return null;
17
18
  }
18
19
  }
19
- function y(r) {
20
- if (r)
20
+ function D(e) {
21
+ if (e)
21
22
  try {
22
- return u(r);
23
+ return p(e);
23
24
  } catch {
24
25
  return;
25
26
  }
26
27
  }
27
- function W(r) {
28
- return r ? {
29
- start: r.start.toString(),
30
- end: r.end.toString()
28
+ function Z(e) {
29
+ return e ? {
30
+ start: e.start.toString(),
31
+ end: e.end.toString()
31
32
  } : null;
32
33
  }
33
- const X = {
34
- sm: {
35
- group: "min-h-8 rounded-sm text-xs",
36
- trigger: "size-7 rounded-sm"
37
- },
38
- md: {
39
- group: "min-h-10 rounded-md text-sm",
40
- trigger: "size-8 rounded-sm"
41
- }
42
- };
43
- function te({
44
- value: r,
45
- defaultValue: m,
46
- onChange: d,
47
- label: c,
48
- description: g,
49
- errorMessage: s,
50
- size: v = "md",
51
- disabled: w,
52
- minValue: z,
53
- maxValue: k,
54
- className: D,
55
- "aria-label": C
34
+ const ee = [
35
+ "Jan",
36
+ "Feb",
37
+ "Mar",
38
+ "Apr",
39
+ "May",
40
+ "Jun",
41
+ "Jul",
42
+ "Aug",
43
+ "Sep",
44
+ "Oct",
45
+ "Nov",
46
+ "Dec"
47
+ ];
48
+ function S(e) {
49
+ return e.type === "literal" ? " " : e.value == null ? e.type === "day" ? "DD" : e.type === "month" ? "MMM" : e.type === "year" ? "YY" : e.text : e.type === "day" ? String(e.value).padStart(2, "0") : e.type === "month" ? ee[e.value - 1] ?? e.text : e.type === "year" ? String(e.value).slice(-2) : e.text;
50
+ }
51
+ function se({
52
+ value: e,
53
+ defaultValue: f,
54
+ onChange: u,
55
+ label: x,
56
+ description: h,
57
+ errorMessage: n,
58
+ disabled: z,
59
+ minValue: k,
60
+ maxValue: B,
61
+ className: C,
62
+ "aria-label": R
56
63
  }) {
57
- const f = X[v], R = x.useMemo(() => N(r), [r]), j = x.useMemo(
58
- () => N(m),
59
- [m]
64
+ const l = c.useMemo(() => w(e), [e]), b = c.useMemo(
65
+ () => w(f),
66
+ [f]
67
+ ), [j, y] = c.useState(
68
+ !!(l ?? b)
60
69
  );
61
- return /* @__PURE__ */ a(
62
- H,
70
+ c.useEffect(() => {
71
+ e !== void 0 && y(!!l);
72
+ }, [l, e]);
73
+ const V = (r) => {
74
+ const a = Z(r);
75
+ y(!!a), u == null || u(a);
76
+ };
77
+ return /* @__PURE__ */ t(L, { locale: "en-GB", children: /* @__PURE__ */ d(
78
+ A,
63
79
  {
64
- "aria-label": C,
65
- className: n("flex w-full flex-col gap-1.5", D),
66
- value: r === void 0 ? void 0 : R,
67
- defaultValue: j ?? void 0,
68
- isDisabled: w,
69
- minValue: y(z),
70
- maxValue: y(k),
71
- isInvalid: !!s,
72
- onChange: (t) => d == null ? void 0 : d(W(t)),
80
+ "aria-label": R,
81
+ className: o("flex w-full flex-col gap-1.5", C),
82
+ value: e === void 0 ? void 0 : l,
83
+ defaultValue: b ?? void 0,
84
+ isDisabled: z,
85
+ minValue: D(k),
86
+ maxValue: D(B),
87
+ isInvalid: !!n,
88
+ onChange: V,
73
89
  children: [
74
- c && /* @__PURE__ */ e(I, { className: "text-xs font-medium text-foreground", children: c }),
75
- /* @__PURE__ */ a(
76
- L,
90
+ x && /* @__PURE__ */ t(I, { className: "text-m font-medium text-foreground", children: x }),
91
+ /* @__PURE__ */ d(
92
+ J,
77
93
  {
78
- className: n(
79
- "flex w-full items-center gap-1 border border-input bg-background px-2 text-foreground shadow-xs outline-none transition-[border-color,box-shadow,background-color]",
80
- "hover:bg-muted/40 focus-within:border-ring focus-within:ring-3 focus-within:ring-ring",
81
- "data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
82
- "data-[invalid]:border-danger data-[invalid]:ring-danger/20",
83
- f.group
94
+ "aria-invalid": n ? !0 : void 0,
95
+ "data-value-set": j || void 0,
96
+ className: o(
97
+ "group/field flex h-8 w-full items-center rounded-md border bg-elevated px-3 text-m font-medium text-on-white-tertiary outline-none",
98
+ "hover:text-on-white-secondary focus-within:text-on-white-primary",
99
+ "transition-[border-color,box-shadow]",
100
+ X({
101
+ on: "within",
102
+ color: "brand",
103
+ intensity: "medium",
104
+ animate: !0
105
+ }),
106
+ "[--glow-border-rest:var(--input)]",
107
+ "[--glow-border-active:var(--field-focus)]",
108
+ "[--glow-inset:var(--inner-glow-field)]",
109
+ "data-[value-set]:text-on-white-primary!",
110
+ "data-[disabled]:pointer-events-none data-[disabled]:opacity-50"
84
111
  ),
85
112
  children: [
86
- /* @__PURE__ */ e(b, { slot: "start", className: "flex min-w-0 flex-1 items-center", children: (t) => /* @__PURE__ */ e(
87
- p,
113
+ /* @__PURE__ */ t(g, { slot: "start", className: "flex shrink-0 items-center", children: (r) => /* @__PURE__ */ t(
114
+ v,
88
115
  {
89
- segment: t,
90
- className: ({ isFocused: i, isPlaceholder: o }) => n(
91
- "rounded-xs px-0.5 tabular-nums outline-none",
92
- o && "text-muted-foreground",
93
- i && "bg-primary text-primary-foreground"
94
- )
116
+ segment: r,
117
+ className: ({ isFocused: a, isPlaceholder: i, type: s }) => o(
118
+ "tabular-nums outline-none",
119
+ s !== "literal" && "-mx-0.5 cursor-text rounded-xs px-0.5 transition-colors duration-150 hover:bg-action-primary-soft hover:text-action-primary-text",
120
+ i && "text-muted-foreground",
121
+ a && "bg-action-primary-soft text-action-primary-text"
122
+ ),
123
+ children: S(r)
95
124
  }
96
125
  ) }),
97
- /* @__PURE__ */ e("span", { "aria-hidden": "true", className: "shrink-0 text-muted-foreground", children: "–" }),
98
- /* @__PURE__ */ e(b, { slot: "end", className: "flex min-w-0 flex-1 items-center", children: (t) => /* @__PURE__ */ e(
99
- p,
126
+ /* @__PURE__ */ t("span", { "aria-hidden": "true", className: "shrink-0", children: " - " }),
127
+ /* @__PURE__ */ t(g, { slot: "end", className: "flex shrink-0 items-center", children: (r) => /* @__PURE__ */ t(
128
+ v,
100
129
  {
101
- segment: t,
102
- className: ({ isFocused: i, isPlaceholder: o }) => n(
103
- "rounded-xs px-0.5 tabular-nums outline-none",
104
- o && "text-muted-foreground",
105
- i && "bg-primary text-primary-foreground"
106
- )
130
+ segment: r,
131
+ className: ({ isFocused: a, isPlaceholder: i, type: s }) => o(
132
+ "tabular-nums outline-none",
133
+ s !== "literal" && "-mx-0.5 cursor-text rounded-xs px-0.5 transition-colors duration-150 hover:bg-action-primary-soft hover:text-action-primary-text",
134
+ i && "text-muted-foreground",
135
+ a && "bg-action-primary-soft text-action-primary-text"
136
+ ),
137
+ children: S(r)
107
138
  }
108
139
  ) }),
109
- /* @__PURE__ */ e(
110
- l,
140
+ /* @__PURE__ */ t(
141
+ m,
111
142
  {
112
143
  "aria-label": "Open calendar",
113
- className: n(
114
- "ml-auto inline-flex shrink-0 items-center justify-center border border-transparent text-muted-foreground outline-none transition-colors",
115
- "hover:bg-muted hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring data-[pressed]:bg-muted",
116
- f.trigger
144
+ className: o(
145
+ "ml-auto inline-flex shrink-0 cursor-pointer items-center justify-center border border-transparent text-muted-foreground outline-none",
146
+ "transition-[background,color,transform] duration-150 ease-out",
147
+ "group-hover/field:text-foreground group-focus-within/field:text-g12!",
148
+ "hover:bg-action-primary-soft hover:text-action-primary-text!",
149
+ "data-[pressed]:scale-[0.97] data-[pressed]:bg-action-primary-soft data-[pressed]:text-action-primary-text!",
150
+ "motion-reduce:data-[pressed]:scale-100",
151
+ "size-7 rounded-sm"
117
152
  ),
118
- children: /* @__PURE__ */ e(M, { className: "size-4" })
153
+ children: /* @__PURE__ */ t(Q, { className: "size-4" })
119
154
  }
120
155
  )
121
156
  ]
122
157
  }
123
158
  ),
124
- g && !s && /* @__PURE__ */ e(h, { slot: "description", className: "text-xs text-muted-foreground", children: g }),
125
- s && /* @__PURE__ */ e(h, { slot: "errorMessage", className: "text-xs text-danger", children: s }),
126
- /* @__PURE__ */ e(
159
+ h && !n && /* @__PURE__ */ t(N, { slot: "description", className: "text-m font-normal text-muted-foreground", children: h }),
160
+ n && /* @__PURE__ */ t(N, { slot: "errorMessage", className: "text-m font-normal text-danger", children: n }),
161
+ /* @__PURE__ */ t(
127
162
  O,
128
163
  {
129
164
  placement: "bottom end",
130
165
  offset: 6,
131
- className: "z-50 w-72 rounded-md border border-border bg-popover p-3 text-popover-foreground shadow-elevation outline-none entering:animate-in entering:fade-in entering:zoom-in-95 exiting:animate-out exiting:fade-out exiting:zoom-out-95",
132
- children: /* @__PURE__ */ e(T, { className: "outline-none", children: /* @__PURE__ */ a($, { className: "w-full", visibleDuration: { months: 1 }, children: [
133
- /* @__PURE__ */ a("header", { className: "mb-3 flex items-center justify-between gap-2", children: [
134
- /* @__PURE__ */ e(
135
- l,
166
+ className: "z-50 w-72 rounded-md border border-input bg-popover p-3 text-popover-foreground shadow-elevation outline-none entering:animate-in entering:fade-in entering:zoom-in-95 exiting:animate-out exiting:fade-out exiting:zoom-out-95",
167
+ children: /* @__PURE__ */ t(E, { className: "outline-none", children: /* @__PURE__ */ d(T, { className: "w-full", visibleDuration: { months: 1 }, children: [
168
+ /* @__PURE__ */ d("header", { className: "mb-3 flex items-center justify-between gap-2", children: [
169
+ /* @__PURE__ */ t(
170
+ m,
136
171
  {
137
172
  slot: "previous",
138
- className: "inline-flex size-8 items-center justify-center rounded-sm border border-input bg-background text-foreground outline-none hover:bg-muted focus-visible:ring-3 focus-visible:ring-ring disabled:opacity-40",
139
- children: /* @__PURE__ */ e(Q, { className: "size-4" })
173
+ className: "inline-flex size-8 cursor-pointer items-center justify-center rounded-sm border border-input bg-elevated text-foreground outline-none transition-[background,border,color,transform] duration-150 ease-out hover:border-action-primary hover:bg-action-primary-soft hover:text-action-primary-text data-[pressed]:scale-[0.97] data-[pressed]:border-action-primary data-[pressed]:bg-action-primary-soft data-[pressed]:text-action-primary-text focus-visible:ring-3 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-40 motion-reduce:data-[pressed]:scale-100",
174
+ children: /* @__PURE__ */ t(U, { className: "size-4" })
140
175
  }
141
176
  ),
142
- /* @__PURE__ */ e(q, { className: "text-sm font-semibold" }),
143
- /* @__PURE__ */ e(
144
- l,
177
+ /* @__PURE__ */ t(Y, { className: "text-sm font-semibold" }),
178
+ /* @__PURE__ */ t(
179
+ m,
145
180
  {
146
181
  slot: "next",
147
- className: "inline-flex size-8 items-center justify-center rounded-sm border border-input bg-background text-foreground outline-none hover:bg-muted focus-visible:ring-3 focus-visible:ring-ring disabled:opacity-40",
148
- children: /* @__PURE__ */ e(U, { className: "size-4" })
182
+ className: "inline-flex size-8 cursor-pointer items-center justify-center rounded-sm border border-input bg-elevated text-foreground outline-none transition-[background,border,color,transform] duration-150 ease-out hover:border-action-primary hover:bg-action-primary-soft hover:text-action-primary-text data-[pressed]:scale-[0.97] data-[pressed]:border-action-primary data-[pressed]:bg-action-primary-soft data-[pressed]:text-action-primary-text focus-visible:ring-3 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-40 motion-reduce:data-[pressed]:scale-100",
183
+ children: /* @__PURE__ */ t(W, { className: "size-4" })
149
184
  }
150
185
  )
151
186
  ] }),
152
- /* @__PURE__ */ a(A, { weekdayStyle: "short", className: "w-full border-separate border-spacing-0.5", children: [
153
- /* @__PURE__ */ e(E, { children: (t) => /* @__PURE__ */ e(F, { className: "h-7 text-center text-xs font-medium text-muted-foreground", children: t }) }),
154
- /* @__PURE__ */ e(J, { children: (t) => /* @__PURE__ */ e(
187
+ /* @__PURE__ */ d(F, { weekdayStyle: "short", className: "w-full border-separate border-spacing-0.5", children: [
188
+ /* @__PURE__ */ t(_, { children: (r) => /* @__PURE__ */ t($, { className: "h-7 text-center text-xs font-medium text-muted-foreground", children: r }) }),
189
+ /* @__PURE__ */ t(q, { children: (r) => /* @__PURE__ */ t(
155
190
  K,
156
191
  {
157
- date: t,
192
+ date: r,
158
193
  className: ({
159
- isDisabled: i,
160
- isFocusVisible: o,
161
- isOutsideMonth: B,
194
+ isDisabled: a,
195
+ isFocusVisible: i,
196
+ isOutsideMonth: s,
162
197
  isSelected: G,
163
- isSelectionEnd: P,
164
- isSelectionStart: S,
165
- isUnavailable: V
166
- }) => n(
167
- "relative flex size-8 items-center justify-center rounded-sm text-xs tabular-nums outline-none transition-colors",
168
- "hover:bg-muted",
169
- G && "bg-muted font-medium text-foreground",
170
- (S || P) && "bg-primary text-primary-foreground hover:bg-primary",
171
- B && "text-muted-foreground/45",
172
- (i || V) && "pointer-events-none text-muted-foreground/35 line-through",
173
- o && "ring-3 ring-ring"
198
+ isSelectionEnd: H,
199
+ isSelectionStart: M,
200
+ isUnavailable: P
201
+ }) => o(
202
+ "relative flex size-8 cursor-pointer items-center justify-center rounded-sm text-xs tabular-nums outline-none transition-colors duration-150",
203
+ "hover:bg-action-primary-soft hover:text-action-primary-text",
204
+ "data-[pressed]:bg-action-primary-soft data-[pressed]:text-action-primary-text",
205
+ G && "bg-action-primary-soft font-medium text-action-primary-text",
206
+ (M || H) && "bg-action-primary text-action-primary-foreground hover:bg-action-primary-hover hover:text-action-primary-foreground",
207
+ s && "text-muted-foreground/45",
208
+ (a || P) && "pointer-events-none cursor-default text-muted-foreground/35 line-through",
209
+ i && "ring-3 ring-ring"
174
210
  )
175
211
  }
176
212
  ) })
@@ -180,8 +216,8 @@ function te({
180
216
  )
181
217
  ]
182
218
  }
183
- );
219
+ ) });
184
220
  }
185
221
  export {
186
- te as DateRangePicker
222
+ se as DateRangePicker
187
223
  };
@@ -1,69 +1,69 @@
1
1
  "use client";
2
- import { jsx as r, jsxs as f } from "react/jsx-runtime";
3
- import * as k from "react";
2
+ import { jsx as a, jsxs as u } from "react/jsx-runtime";
3
+ import * as b from "react";
4
4
  import { cn as e } from "../lib/cn.js";
5
- const p = "linear-gradient(to right, black, transparent)", g = "linear-gradient(to bottom, black, transparent)", u = k.forwardRef(
5
+ const p = "linear-gradient(to right, var(--color-wg12), transparent)", g = "linear-gradient(to bottom, var(--color-wg12), transparent)", v = b.forwardRef(
6
6
  ({
7
- className: n,
7
+ className: o,
8
8
  orientation: m = "horizontal",
9
- variant: b = "primary",
9
+ variant: x = "primary",
10
10
  fade: c = !1,
11
11
  label: d,
12
- style: o,
12
+ style: n,
13
13
  ...i
14
14
  }, s) => {
15
- const x = b === "secondary", a = m === "vertical", t = x ? a ? "w-px [background-image:linear-gradient(to_bottom,var(--color-border)_50%,transparent_50%)] [background-size:1px_12px] [background-repeat:repeat-y]" : "h-px [background-image:linear-gradient(to_right,var(--color-border)_50%,transparent_50%)] [background-size:12px_1px] [background-repeat:repeat-x]" : a ? "w-px bg-border" : "h-px bg-border", l = c ? {
16
- WebkitMaskImage: a ? g : p,
17
- maskImage: a ? g : p
15
+ const f = x === "secondary", r = m === "vertical", t = f ? r ? "w-px [background-image:linear-gradient(to_bottom,var(--color-border)_50%,transparent_50%)] [background-size:1px_12px] [background-repeat:repeat-y]" : "h-px [background-image:linear-gradient(to_right,var(--color-border)_50%,transparent_50%)] [background-size:12px_1px] [background-repeat:repeat-x]" : r ? "w-px bg-border" : "h-px bg-border", l = c ? {
16
+ WebkitMaskImage: r ? g : p,
17
+ maskImage: r ? g : p
18
18
  } : void 0;
19
- return a ? /* @__PURE__ */ r(
19
+ return r ? /* @__PURE__ */ a(
20
20
  "div",
21
21
  {
22
22
  ref: s,
23
23
  role: "separator",
24
24
  "aria-orientation": "vertical",
25
- className: e("h-full self-stretch", t, n),
26
- style: { ...l, ...o },
25
+ className: e("h-full self-stretch", t, o),
26
+ style: { ...l, ...n },
27
27
  ...i
28
28
  }
29
- ) : d != null ? /* @__PURE__ */ f(
29
+ ) : d != null ? /* @__PURE__ */ u(
30
30
  "div",
31
31
  {
32
32
  ref: s,
33
33
  role: "separator",
34
34
  "aria-orientation": "horizontal",
35
- className: e("flex items-center gap-3 w-full", n),
36
- style: o,
35
+ className: e("flex items-center gap-3 w-full", o),
36
+ style: n,
37
37
  ...i,
38
38
  children: [
39
- /* @__PURE__ */ r("span", { className: e("flex-1", t), style: l }),
40
- /* @__PURE__ */ r("span", { className: "text-xs text-muted-foreground whitespace-nowrap", children: d }),
41
- /* @__PURE__ */ r(
39
+ /* @__PURE__ */ a("span", { className: e("flex-1", t), style: l }),
40
+ /* @__PURE__ */ a("span", { className: "text-xs text-muted-foreground whitespace-nowrap", children: d }),
41
+ /* @__PURE__ */ a(
42
42
  "span",
43
43
  {
44
44
  className: e("flex-1", t),
45
45
  style: c ? {
46
- WebkitMaskImage: "linear-gradient(to left, black, transparent)",
47
- maskImage: "linear-gradient(to left, black, transparent)"
46
+ WebkitMaskImage: "linear-gradient(to left, var(--color-wg12), transparent)",
47
+ maskImage: "linear-gradient(to left, var(--color-wg12), transparent)"
48
48
  } : void 0
49
49
  }
50
50
  )
51
51
  ]
52
52
  }
53
- ) : /* @__PURE__ */ r(
53
+ ) : /* @__PURE__ */ a(
54
54
  "div",
55
55
  {
56
56
  ref: s,
57
57
  role: "separator",
58
58
  "aria-orientation": "horizontal",
59
- className: e("w-full", t, n),
60
- style: { ...l, ...o },
59
+ className: e("w-full", t, o),
60
+ style: { ...l, ...n },
61
61
  ...i
62
62
  }
63
63
  );
64
64
  }
65
65
  );
66
- u.displayName = "Divider";
66
+ v.displayName = "Divider";
67
67
  export {
68
- u as Divider
68
+ v as Divider
69
69
  };
@@ -2,13 +2,17 @@ import { VariantProps } from 'class-variance-authority';
2
2
  import * as React from "react";
3
3
  declare const panelVariants: (props?: ({
4
4
  side?: "bottom" | "left" | "right" | null | undefined;
5
- size?: "sm" | "md" | "lg" | "xl" | null | undefined;
5
+ size?: "xl" | "sm" | "md" | "lg" | null | undefined;
6
6
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
7
  export interface DrawerProps extends VariantProps<typeof panelVariants> {
8
8
  open: boolean;
9
9
  onOpenChange: (open: boolean) => void;
10
+ /** Whether Escape and the built-in close button can dismiss the drawer. */
11
+ dismissible?: boolean;
10
12
  /** Accessible label for the drawer landmark. */
11
13
  "aria-label": string;
14
+ /** Optional classes for the inline animation slot around the panel. */
15
+ containerClassName?: string;
12
16
  className?: string;
13
17
  children: React.ReactNode;
14
18
  }
@@ -55,7 +59,7 @@ export declare function ModalDrawer({ open, onOpenChange, side: sideProp, size,
55
59
  * If the panel doesn't read, fix the ground; never add a border or shadow to
56
60
  * force it (that fights principle 1).
57
61
  */
58
- export declare function Drawer({ open, onOpenChange, side: sideProp, size, className, children, "aria-label": ariaLabel, }: DrawerProps): React.JSX.Element;
62
+ export declare function Drawer({ open, onOpenChange, dismissible, side: sideProp, size, containerClassName, className, children, "aria-label": ariaLabel, }: DrawerProps): React.JSX.Element;
59
63
  /** @deprecated Alias for `Drawer` — the canonical drawer is now the inline
60
64
  * variant. Kept for any code still importing `InlineDrawer`. */
61
65
  export declare const InlineDrawer: typeof Drawer;