@middag-io/react 0.33.0 → 0.34.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 (131) hide show
  1. package/README.md +2 -2
  2. package/dist-lib/base/shell/AuthShell.js +39 -0
  3. package/dist-lib/base/shell/BasicShell.js +207 -0
  4. package/dist-lib/base/shell/ImmersiveShell.js +55 -0
  5. package/dist-lib/base/shell/partials/InspectorContext.js +60 -0
  6. package/dist-lib/base/shell/partials/InspectorPanel.js +22 -0
  7. package/dist-lib/base/shell/partials/NavErrorBoundary.js +66 -0
  8. package/dist-lib/base/shell/partials/OverlayScreen.js +36 -0
  9. package/dist-lib/base/shell/partials/PageActionButton.js +4 -0
  10. package/dist-lib/base/theme/appearance.js +39 -0
  11. package/dist-lib/base/theme/host-layout-detector.js +39 -0
  12. package/dist-lib/base/theme/host-theme-detector.js +131 -0
  13. package/dist-lib/base/theme/sidebar-safelist.txt +20 -0
  14. package/dist-lib/base/theme/theme-bridge.css +164 -0
  15. package/dist-lib/base/theme/theme-context.js +103 -0
  16. package/dist-lib/base/theme/themes/classic.css +174 -0
  17. package/dist-lib/base/theme/tokens.css +290 -0
  18. package/dist-lib/base/theme/useHostTheme.js +34 -0
  19. package/dist-lib/base/utils/clipboard.js +16 -0
  20. package/dist-lib/base/utils/conditions.js +13 -0
  21. package/dist-lib/base/utils/icon-registry.js +16 -0
  22. package/dist-lib/base/utils/icons.js +11 -0
  23. package/dist-lib/base/utils/interpolate.js +6 -0
  24. package/dist-lib/base/utils/register-default-icons.js +9 -0
  25. package/dist-lib/base/utils/storage.js +30 -0
  26. package/dist-lib/base/utils/time.js +59 -0
  27. package/dist-lib/chunks/subpath-BD_PKGUX.js +146 -0
  28. package/dist-lib/chunks/subpath-DLFO_UGQ.js +604 -0
  29. package/dist-lib/components/reui/accordion.js +43 -0
  30. package/dist-lib/components/reui/alert-dialog.js +101 -0
  31. package/dist-lib/components/reui/alert.js +55 -0
  32. package/dist-lib/components/reui/aspect-ratio.js +11 -0
  33. package/dist-lib/components/reui/autocomplete.js +170 -0
  34. package/dist-lib/components/reui/avatar.js +51 -0
  35. package/dist-lib/components/reui/badge.js +64 -0
  36. package/dist-lib/components/reui/breadcrumb.js +69 -0
  37. package/dist-lib/components/reui/button-group.js +38 -0
  38. package/dist-lib/components/reui/button.js +47 -0
  39. package/dist-lib/components/reui/calendar.js +89 -0
  40. package/dist-lib/components/reui/card.js +55 -0
  41. package/dist-lib/components/reui/carousel.js +110 -0
  42. package/dist-lib/components/reui/chart.js +130 -0
  43. package/dist-lib/components/reui/checkbox.js +20 -0
  44. package/dist-lib/components/reui/collapsible.js +23 -0
  45. package/dist-lib/components/reui/combobox.js +166 -0
  46. package/dist-lib/components/reui/command.js +85 -0
  47. package/dist-lib/components/reui/context-menu.js +121 -0
  48. package/dist-lib/components/reui/data-grid/data-grid-column-filter.js +108 -0
  49. package/dist-lib/components/reui/data-grid/data-grid-column-header.js +217 -0
  50. package/dist-lib/components/reui/data-grid/data-grid-column-visibility.js +25 -0
  51. package/dist-lib/components/reui/data-grid/data-grid-pagination.js +132 -0
  52. package/dist-lib/components/reui/data-grid/data-grid-scroll-area.js +183 -0
  53. package/dist-lib/components/reui/data-grid/data-grid-table-dnd-rows.js +125 -0
  54. package/dist-lib/components/reui/data-grid/data-grid-table-dnd.js +130 -0
  55. package/dist-lib/components/reui/data-grid/data-grid-table-virtual.js +156 -0
  56. package/dist-lib/components/reui/data-grid/data-grid-table.js +546 -0
  57. package/dist-lib/components/reui/data-grid/data-grid.js +113 -0
  58. package/dist-lib/components/reui/data-grid-pagination.js +131 -0
  59. package/dist-lib/components/reui/date-selector.js +642 -0
  60. package/dist-lib/components/reui/dialog.js +94 -0
  61. package/dist-lib/components/reui/drawer.js +77 -0
  62. package/dist-lib/components/reui/dropdown-menu.js +123 -0
  63. package/dist-lib/components/reui/empty.js +59 -0
  64. package/dist-lib/components/reui/field.js +115 -0
  65. package/dist-lib/components/reui/filters.js +873 -0
  66. package/dist-lib/components/reui/frame.js +97 -0
  67. package/dist-lib/components/reui/hover-card.js +31 -0
  68. package/dist-lib/components/reui/icon-placeholder.js +14 -0
  69. package/dist-lib/components/reui/index.js +18 -0
  70. package/dist-lib/components/reui/input-group.js +78 -0
  71. package/dist-lib/components/reui/input-otp.js +44 -0
  72. package/dist-lib/components/reui/input.js +14 -0
  73. package/dist-lib/components/reui/item.js +116 -0
  74. package/dist-lib/components/reui/kanban.js +316 -0
  75. package/dist-lib/components/reui/kbd.js +19 -0
  76. package/dist-lib/components/reui/label.js +14 -0
  77. package/dist-lib/components/reui/menubar.js +132 -0
  78. package/dist-lib/components/reui/native-select.js +37 -0
  79. package/dist-lib/components/reui/navigation-menu.js +80 -0
  80. package/dist-lib/components/reui/number-field.js +126 -0
  81. package/dist-lib/components/reui/pagination.js +78 -0
  82. package/dist-lib/components/reui/phone-input.js +124 -0
  83. package/dist-lib/components/reui/popover.js +55 -0
  84. package/dist-lib/components/reui/progress.js +20 -0
  85. package/dist-lib/components/reui/radio-group.js +27 -0
  86. package/dist-lib/components/reui/rating.js +81 -0
  87. package/dist-lib/components/reui/resizable.js +31 -0
  88. package/dist-lib/components/reui/scroll-area.js +36 -0
  89. package/dist-lib/components/reui/scrollspy.js +104 -0
  90. package/dist-lib/components/reui/select.js +97 -0
  91. package/dist-lib/components/reui/separator.js +17 -0
  92. package/dist-lib/components/reui/sheet.js +81 -0
  93. package/dist-lib/components/reui/sidebar.js +350 -0
  94. package/dist-lib/components/reui/skeleton.js +12 -0
  95. package/dist-lib/components/reui/slider.js +35 -0
  96. package/dist-lib/components/reui/sonner.js +28 -0
  97. package/dist-lib/components/reui/sortable.js +172 -0
  98. package/dist-lib/components/reui/spinner.js +14 -0
  99. package/dist-lib/components/reui/stepper.js +193 -0
  100. package/dist-lib/components/reui/svgs/claudeAiIcon.js +13 -0
  101. package/dist-lib/components/reui/svgs/gemini.js +257 -0
  102. package/dist-lib/components/reui/svgs/openai.js +10 -0
  103. package/dist-lib/components/reui/svgs/openaiDark.js +13 -0
  104. package/dist-lib/components/reui/switch.js +19 -0
  105. package/dist-lib/components/reui/table.js +66 -0
  106. package/dist-lib/components/reui/tabs.js +47 -0
  107. package/dist-lib/components/reui/textarea.js +13 -0
  108. package/dist-lib/components/reui/timeline.js +84 -0
  109. package/dist-lib/components/reui/toggle-group.js +48 -0
  110. package/dist-lib/components/reui/toggle.js +36 -0
  111. package/dist-lib/components/reui/tooltip.js +35 -0
  112. package/dist-lib/components/reui/tree.js +102 -0
  113. package/dist-lib/i18n/I18nProvider.js +23 -0
  114. package/dist-lib/i18n/host-resolver.js +10 -0
  115. package/dist-lib/i18n/instance.js +2 -0
  116. package/dist-lib/i18n/locales/en/ui.json +266 -0
  117. package/dist-lib/i18n/locales/en/validators.json +13 -0
  118. package/dist-lib/i18n/locales/pt-BR/ui.json +266 -0
  119. package/dist-lib/i18n/locales/pt-BR/validators.json +13 -0
  120. package/dist-lib/i18n/register-strings.js +7 -0
  121. package/dist-lib/i18n/render-label.js +13 -0
  122. package/dist-lib/i18n/resolve-field-error.js +10 -0
  123. package/dist-lib/i18n/useHostString.js +31 -0
  124. package/dist-lib/i18n/useTranslation.js +48 -0
  125. package/dist-lib/lib/actions/resolve-action-target.js +48 -0
  126. package/dist-lib/lib/hooks/use-copy-to-clipboard.js +18 -0
  127. package/dist-lib/lib/hooks/use-file-upload.js +171 -0
  128. package/dist-lib/lib/hooks/use-mobile.js +18 -0
  129. package/dist-lib/lib/portal-container.js +7 -0
  130. package/dist-lib/lib/utils.js +8 -0
  131. package/package.json +39 -7
@@ -0,0 +1,257 @@
1
+ import { jsx as e, jsxs as t } from "react/jsx-runtime";
2
+ //#region src/components/reui/svgs/gemini.tsx
3
+ var n = (n) => /* @__PURE__ */ t("svg", {
4
+ ...n,
5
+ viewBox: "0 0 296 298",
6
+ fill: "none",
7
+ children: [
8
+ /* @__PURE__ */ e("mask", {
9
+ id: "a",
10
+ width: "296",
11
+ height: "298",
12
+ x: "0",
13
+ y: "0",
14
+ maskUnits: "userSpaceOnUse",
15
+ style: { maskType: "alpha" },
16
+ children: /* @__PURE__ */ e("path", {
17
+ fill: "#3186FF",
18
+ d: "M141.201 4.886c2.282-6.17 11.042-6.071 13.184.148l5.985 17.37a184.004 184.004 0 0 0 111.257 113.049l19.304 6.997c6.143 2.227 6.156 10.91.02 13.155l-19.35 7.082a184.001 184.001 0 0 0-109.495 109.385l-7.573 20.629c-2.241 6.105-10.869 6.121-13.133.025l-7.908-21.296a184 184 0 0 0-109.02-108.658l-19.698-7.239c-6.102-2.243-6.118-10.867-.025-13.132l20.083-7.467A183.998 183.998 0 0 0 133.291 26.28l7.91-21.394Z"
19
+ })
20
+ }),
21
+ /* @__PURE__ */ t("g", {
22
+ mask: "url(#a)",
23
+ children: [
24
+ /* @__PURE__ */ e("g", {
25
+ filter: "url(#b)",
26
+ children: /* @__PURE__ */ e("ellipse", {
27
+ cx: "163",
28
+ cy: "149",
29
+ fill: "#3689FF",
30
+ rx: "196",
31
+ ry: "159"
32
+ })
33
+ }),
34
+ /* @__PURE__ */ e("g", {
35
+ filter: "url(#c)",
36
+ children: /* @__PURE__ */ e("ellipse", {
37
+ cx: "33.5",
38
+ cy: "142.5",
39
+ fill: "#F6C013",
40
+ rx: "68.5",
41
+ ry: "72.5"
42
+ })
43
+ }),
44
+ /* @__PURE__ */ e("g", {
45
+ filter: "url(#d)",
46
+ children: /* @__PURE__ */ e("ellipse", {
47
+ cx: "19.5",
48
+ cy: "148.5",
49
+ fill: "#F6C013",
50
+ rx: "68.5",
51
+ ry: "72.5"
52
+ })
53
+ }),
54
+ /* @__PURE__ */ e("g", {
55
+ filter: "url(#e)",
56
+ children: /* @__PURE__ */ e("path", {
57
+ fill: "#FA4340",
58
+ d: "M194 10.5C172 82.5 65.5 134.333 22.5 135L144-66l50 76.5Z"
59
+ })
60
+ }),
61
+ /* @__PURE__ */ e("g", {
62
+ filter: "url(#f)",
63
+ children: /* @__PURE__ */ e("path", {
64
+ fill: "#FA4340",
65
+ d: "M190.5-12.5C168.5 59.5 62 111.333 19 112L140.5-89l50 76.5Z"
66
+ })
67
+ }),
68
+ /* @__PURE__ */ e("g", {
69
+ filter: "url(#g)",
70
+ children: /* @__PURE__ */ e("path", {
71
+ fill: "#14BB69",
72
+ d: "M194.5 279.5C172.5 207.5 66 155.667 23 155l121.5 201 50-76.5Z"
73
+ })
74
+ }),
75
+ /* @__PURE__ */ e("g", {
76
+ filter: "url(#h)",
77
+ children: /* @__PURE__ */ e("path", {
78
+ fill: "#14BB69",
79
+ d: "M196.5 320.5C174.5 248.5 68 196.667 25 196l121.5 201 50-76.5Z"
80
+ })
81
+ })
82
+ ]
83
+ }),
84
+ /* @__PURE__ */ t("defs", { children: [
85
+ /* @__PURE__ */ t("filter", {
86
+ id: "b",
87
+ width: "464",
88
+ height: "390",
89
+ x: "-69",
90
+ y: "-46",
91
+ colorInterpolationFilters: "sRGB",
92
+ filterUnits: "userSpaceOnUse",
93
+ children: [
94
+ /* @__PURE__ */ e("feFlood", {
95
+ "flood-opacity": "0",
96
+ result: "BackgroundImageFix"
97
+ }),
98
+ /* @__PURE__ */ e("feBlend", {
99
+ in: "SourceGraphic",
100
+ in2: "BackgroundImageFix",
101
+ result: "shape"
102
+ }),
103
+ /* @__PURE__ */ e("feGaussianBlur", {
104
+ result: "effect1_foregroundBlur_69_17998",
105
+ stdDeviation: "18"
106
+ })
107
+ ]
108
+ }),
109
+ /* @__PURE__ */ t("filter", {
110
+ id: "c",
111
+ width: "265",
112
+ height: "273",
113
+ x: "-99",
114
+ y: "6",
115
+ colorInterpolationFilters: "sRGB",
116
+ filterUnits: "userSpaceOnUse",
117
+ children: [
118
+ /* @__PURE__ */ e("feFlood", {
119
+ "flood-opacity": "0",
120
+ result: "BackgroundImageFix"
121
+ }),
122
+ /* @__PURE__ */ e("feBlend", {
123
+ in: "SourceGraphic",
124
+ in2: "BackgroundImageFix",
125
+ result: "shape"
126
+ }),
127
+ /* @__PURE__ */ e("feGaussianBlur", {
128
+ result: "effect1_foregroundBlur_69_17998",
129
+ stdDeviation: "32"
130
+ })
131
+ ]
132
+ }),
133
+ /* @__PURE__ */ t("filter", {
134
+ id: "d",
135
+ width: "265",
136
+ height: "273",
137
+ x: "-113",
138
+ y: "12",
139
+ colorInterpolationFilters: "sRGB",
140
+ filterUnits: "userSpaceOnUse",
141
+ children: [
142
+ /* @__PURE__ */ e("feFlood", {
143
+ "flood-opacity": "0",
144
+ result: "BackgroundImageFix"
145
+ }),
146
+ /* @__PURE__ */ e("feBlend", {
147
+ in: "SourceGraphic",
148
+ in2: "BackgroundImageFix",
149
+ result: "shape"
150
+ }),
151
+ /* @__PURE__ */ e("feGaussianBlur", {
152
+ result: "effect1_foregroundBlur_69_17998",
153
+ stdDeviation: "32"
154
+ })
155
+ ]
156
+ }),
157
+ /* @__PURE__ */ t("filter", {
158
+ id: "e",
159
+ width: "299.5",
160
+ height: "329",
161
+ x: "-41.5",
162
+ y: "-130",
163
+ colorInterpolationFilters: "sRGB",
164
+ filterUnits: "userSpaceOnUse",
165
+ children: [
166
+ /* @__PURE__ */ e("feFlood", {
167
+ "flood-opacity": "0",
168
+ result: "BackgroundImageFix"
169
+ }),
170
+ /* @__PURE__ */ e("feBlend", {
171
+ in: "SourceGraphic",
172
+ in2: "BackgroundImageFix",
173
+ result: "shape"
174
+ }),
175
+ /* @__PURE__ */ e("feGaussianBlur", {
176
+ result: "effect1_foregroundBlur_69_17998",
177
+ stdDeviation: "32"
178
+ })
179
+ ]
180
+ }),
181
+ /* @__PURE__ */ t("filter", {
182
+ id: "f",
183
+ width: "299.5",
184
+ height: "329",
185
+ x: "-45",
186
+ y: "-153",
187
+ colorInterpolationFilters: "sRGB",
188
+ filterUnits: "userSpaceOnUse",
189
+ children: [
190
+ /* @__PURE__ */ e("feFlood", {
191
+ "flood-opacity": "0",
192
+ result: "BackgroundImageFix"
193
+ }),
194
+ /* @__PURE__ */ e("feBlend", {
195
+ in: "SourceGraphic",
196
+ in2: "BackgroundImageFix",
197
+ result: "shape"
198
+ }),
199
+ /* @__PURE__ */ e("feGaussianBlur", {
200
+ result: "effect1_foregroundBlur_69_17998",
201
+ stdDeviation: "32"
202
+ })
203
+ ]
204
+ }),
205
+ /* @__PURE__ */ t("filter", {
206
+ id: "g",
207
+ width: "299.5",
208
+ height: "329",
209
+ x: "-41",
210
+ y: "91",
211
+ colorInterpolationFilters: "sRGB",
212
+ filterUnits: "userSpaceOnUse",
213
+ children: [
214
+ /* @__PURE__ */ e("feFlood", {
215
+ "flood-opacity": "0",
216
+ result: "BackgroundImageFix"
217
+ }),
218
+ /* @__PURE__ */ e("feBlend", {
219
+ in: "SourceGraphic",
220
+ in2: "BackgroundImageFix",
221
+ result: "shape"
222
+ }),
223
+ /* @__PURE__ */ e("feGaussianBlur", {
224
+ result: "effect1_foregroundBlur_69_17998",
225
+ stdDeviation: "32"
226
+ })
227
+ ]
228
+ }),
229
+ /* @__PURE__ */ t("filter", {
230
+ id: "h",
231
+ width: "299.5",
232
+ height: "329",
233
+ x: "-39",
234
+ y: "132",
235
+ colorInterpolationFilters: "sRGB",
236
+ filterUnits: "userSpaceOnUse",
237
+ children: [
238
+ /* @__PURE__ */ e("feFlood", {
239
+ "flood-opacity": "0",
240
+ result: "BackgroundImageFix"
241
+ }),
242
+ /* @__PURE__ */ e("feBlend", {
243
+ in: "SourceGraphic",
244
+ in2: "BackgroundImageFix",
245
+ result: "shape"
246
+ }),
247
+ /* @__PURE__ */ e("feGaussianBlur", {
248
+ result: "effect1_foregroundBlur_69_17998",
249
+ stdDeviation: "32"
250
+ })
251
+ ]
252
+ })
253
+ ] })
254
+ ]
255
+ });
256
+ //#endregion
257
+ export { n as Gemini };
@@ -0,0 +1,10 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ //#region src/components/reui/svgs/openai.tsx
3
+ var t = (t) => /* @__PURE__ */ e("svg", {
4
+ ...t,
5
+ preserveAspectRatio: "xMidYMid",
6
+ viewBox: "0 0 256 260",
7
+ children: /* @__PURE__ */ e("path", { d: "M239.184 106.203a64.716 64.716 0 0 0-5.576-53.103C219.452 28.459 191 15.784 163.213 21.74A65.586 65.586 0 0 0 52.096 45.22a64.716 64.716 0 0 0-43.23 31.36c-14.31 24.602-11.061 55.634 8.033 76.74a64.665 64.665 0 0 0 5.525 53.102c14.174 24.65 42.644 37.324 70.446 31.36a64.72 64.72 0 0 0 48.754 21.744c28.481.025 53.714-18.361 62.414-45.481a64.767 64.767 0 0 0 43.229-31.36c14.137-24.558 10.875-55.423-8.083-76.483Zm-97.56 136.338a48.397 48.397 0 0 1-31.105-11.255l1.535-.87 51.67-29.825a8.595 8.595 0 0 0 4.247-7.367v-72.85l21.845 12.636c.218.111.37.32.409.563v60.367c-.056 26.818-21.783 48.545-48.601 48.601Zm-104.466-44.61a48.345 48.345 0 0 1-5.781-32.589l1.534.921 51.722 29.826a8.339 8.339 0 0 0 8.441 0l63.181-36.425v25.221a.87.87 0 0 1-.358.665l-52.335 30.184c-23.257 13.398-52.97 5.431-66.404-17.803ZM23.549 85.38a48.499 48.499 0 0 1 25.58-21.333v61.39a8.288 8.288 0 0 0 4.195 7.316l62.874 36.272-21.845 12.636a.819.819 0 0 1-.767 0L41.353 151.53c-23.211-13.454-31.171-43.144-17.804-66.405v.256Zm179.466 41.695-63.08-36.63L161.73 77.86a.819.819 0 0 1 .768 0l52.233 30.184a48.6 48.6 0 0 1-7.316 87.635v-61.391a8.544 8.544 0 0 0-4.4-7.213Zm21.742-32.69-1.535-.922-51.619-30.081a8.39 8.39 0 0 0-8.492 0L99.98 99.808V74.587a.716.716 0 0 1 .307-.665l52.233-30.133a48.652 48.652 0 0 1 72.236 50.391v.205ZM88.061 139.097l-21.845-12.585a.87.87 0 0 1-.41-.614V65.685a48.652 48.652 0 0 1 79.757-37.346l-1.535.87-51.67 29.825a8.595 8.595 0 0 0-4.246 7.367l-.051 72.697Zm11.868-25.58 28.138-16.217 28.188 16.218v32.434l-28.086 16.218-28.188-16.218-.052-32.434Z" })
8
+ });
9
+ //#endregion
10
+ export { t as Openai };
@@ -0,0 +1,13 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ //#region src/components/reui/svgs/openaiDark.tsx
3
+ var t = (t) => /* @__PURE__ */ e("svg", {
4
+ ...t,
5
+ preserveAspectRatio: "xMidYMid",
6
+ viewBox: "0 0 256 260",
7
+ children: /* @__PURE__ */ e("path", {
8
+ fill: "#fff",
9
+ d: "M239.184 106.203a64.716 64.716 0 0 0-5.576-53.103C219.452 28.459 191 15.784 163.213 21.74A65.586 65.586 0 0 0 52.096 45.22a64.716 64.716 0 0 0-43.23 31.36c-14.31 24.602-11.061 55.634 8.033 76.74a64.665 64.665 0 0 0 5.525 53.102c14.174 24.65 42.644 37.324 70.446 31.36a64.72 64.72 0 0 0 48.754 21.744c28.481.025 53.714-18.361 62.414-45.481a64.767 64.767 0 0 0 43.229-31.36c14.137-24.558 10.875-55.423-8.083-76.483Zm-97.56 136.338a48.397 48.397 0 0 1-31.105-11.255l1.535-.87 51.67-29.825a8.595 8.595 0 0 0 4.247-7.367v-72.85l21.845 12.636c.218.111.37.32.409.563v60.367c-.056 26.818-21.783 48.545-48.601 48.601Zm-104.466-44.61a48.345 48.345 0 0 1-5.781-32.589l1.534.921 51.722 29.826a8.339 8.339 0 0 0 8.441 0l63.181-36.425v25.221a.87.87 0 0 1-.358.665l-52.335 30.184c-23.257 13.398-52.97 5.431-66.404-17.803ZM23.549 85.38a48.499 48.499 0 0 1 25.58-21.333v61.39a8.288 8.288 0 0 0 4.195 7.316l62.874 36.272-21.845 12.636a.819.819 0 0 1-.767 0L41.353 151.53c-23.211-13.454-31.171-43.144-17.804-66.405v.256Zm179.466 41.695-63.08-36.63L161.73 77.86a.819.819 0 0 1 .768 0l52.233 30.184a48.6 48.6 0 0 1-7.316 87.635v-61.391a8.544 8.544 0 0 0-4.4-7.213Zm21.742-32.69-1.535-.922-51.619-30.081a8.39 8.39 0 0 0-8.492 0L99.98 99.808V74.587a.716.716 0 0 1 .307-.665l52.233-30.133a48.652 48.652 0 0 1 72.236 50.391v.205ZM88.061 139.097l-21.845-12.585a.87.87 0 0 1-.41-.614V65.685a48.652 48.652 0 0 1 79.757-37.346l-1.535.87-51.67 29.825a8.595 8.595 0 0 0-4.246 7.367l-.051 72.697Zm11.868-25.58 28.138-16.217 28.188 16.218v32.434l-28.086 16.218-28.188-16.218-.052-32.434Z"
10
+ })
11
+ });
12
+ //#endregion
13
+ export { t as OpenaiDark };
@@ -0,0 +1,19 @@
1
+ import { cn as e } from "../../lib/utils.js";
2
+ import "react";
3
+ import { Switch as t } from "radix-ui";
4
+ import { jsx as n } from "react/jsx-runtime";
5
+ //#region src/components/reui/switch.tsx
6
+ function r({ className: r, size: i = "default", ...a }) {
7
+ return /* @__PURE__ */ n(t.Root, {
8
+ "data-slot": "switch",
9
+ "data-size": i,
10
+ className: e("peer group/switch inline-flex shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-[1.15rem] data-[size=default]:w-8 data-[size=sm]:h-3.5 data-[size=sm]:w-6 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input dark:data-[state=unchecked]:bg-input/80", r),
11
+ ...a,
12
+ children: /* @__PURE__ */ n(t.Thumb, {
13
+ "data-slot": "switch-thumb",
14
+ className: e("pointer-events-none block rounded-full bg-background ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0 dark:data-[state=checked]:bg-primary-foreground dark:data-[state=unchecked]:bg-foreground")
15
+ })
16
+ });
17
+ }
18
+ //#endregion
19
+ export { r as Switch };
@@ -0,0 +1,66 @@
1
+ import { cn as e } from "../../lib/utils.js";
2
+ import "react";
3
+ import { jsx as t } from "react/jsx-runtime";
4
+ //#region src/components/reui/table.tsx
5
+ function n({ className: n, ...r }) {
6
+ return /* @__PURE__ */ t("div", {
7
+ "data-slot": "table-container",
8
+ className: "relative w-full overflow-x-auto",
9
+ children: /* @__PURE__ */ t("table", {
10
+ "data-slot": "table",
11
+ className: e("w-full caption-bottom text-sm", n),
12
+ ...r
13
+ })
14
+ });
15
+ }
16
+ function r({ className: n, ...r }) {
17
+ return /* @__PURE__ */ t("thead", {
18
+ "data-slot": "table-header",
19
+ className: e("[&_tr]:border-b", n),
20
+ ...r
21
+ });
22
+ }
23
+ function i({ className: n, ...r }) {
24
+ return /* @__PURE__ */ t("tbody", {
25
+ "data-slot": "table-body",
26
+ className: e("[&_tr:last-child]:border-0", n),
27
+ ...r
28
+ });
29
+ }
30
+ function a({ className: n, ...r }) {
31
+ return /* @__PURE__ */ t("tfoot", {
32
+ "data-slot": "table-footer",
33
+ className: e("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0", n),
34
+ ...r
35
+ });
36
+ }
37
+ function o({ className: n, ...r }) {
38
+ return /* @__PURE__ */ t("tr", {
39
+ "data-slot": "table-row",
40
+ className: e("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted", n),
41
+ ...r
42
+ });
43
+ }
44
+ function s({ className: n, ...r }) {
45
+ return /* @__PURE__ */ t("th", {
46
+ "data-slot": "table-head",
47
+ className: e("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]", n),
48
+ ...r
49
+ });
50
+ }
51
+ function c({ className: n, ...r }) {
52
+ return /* @__PURE__ */ t("td", {
53
+ "data-slot": "table-cell",
54
+ className: e("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]", n),
55
+ ...r
56
+ });
57
+ }
58
+ function l({ className: n, ...r }) {
59
+ return /* @__PURE__ */ t("caption", {
60
+ "data-slot": "table-caption",
61
+ className: e("mt-4 text-sm text-muted-foreground", n),
62
+ ...r
63
+ });
64
+ }
65
+ //#endregion
66
+ export { n as Table, i as TableBody, l as TableCaption, c as TableCell, a as TableFooter, s as TableHead, r as TableHeader, o as TableRow };
@@ -0,0 +1,47 @@
1
+ "use client";
2
+ import { cn as e } from "../../lib/utils.js";
3
+ import "react";
4
+ import { Tabs as t } from "radix-ui";
5
+ import { jsx as n } from "react/jsx-runtime";
6
+ import { cva as r } from "class-variance-authority";
7
+ //#region src/components/reui/tabs.tsx
8
+ function i({ className: r, orientation: i = "horizontal", ...a }) {
9
+ return /* @__PURE__ */ n(t.Root, {
10
+ "data-slot": "tabs",
11
+ "data-orientation": i,
12
+ orientation: i,
13
+ className: e("group/tabs flex gap-2 data-[orientation=horizontal]:flex-col", r),
14
+ ...a
15
+ });
16
+ }
17
+ var a = r("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-[orientation=horizontal]/tabs:h-9 group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col data-[variant=line]:rounded-none", {
18
+ variants: { variant: {
19
+ default: "bg-muted",
20
+ line: "gap-1 bg-transparent"
21
+ } },
22
+ defaultVariants: { variant: "default" }
23
+ });
24
+ function o({ className: r, variant: i = "default", ...o }) {
25
+ return /* @__PURE__ */ n(t.List, {
26
+ "data-slot": "tabs-list",
27
+ "data-variant": i,
28
+ className: e(a({ variant: i }), r),
29
+ ...o
30
+ });
31
+ }
32
+ function s({ className: r, ...i }) {
33
+ return /* @__PURE__ */ n(t.Trigger, {
34
+ "data-slot": "tabs-trigger",
35
+ className: e("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", "group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent", "data-[state=active]:bg-background data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:data-[state=active]:text-foreground", "after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100", r),
36
+ ...i
37
+ });
38
+ }
39
+ function c({ className: r, ...i }) {
40
+ return /* @__PURE__ */ n(t.Content, {
41
+ "data-slot": "tabs-content",
42
+ className: e("flex-1 outline-none", r),
43
+ ...i
44
+ });
45
+ }
46
+ //#endregion
47
+ export { i as Tabs, c as TabsContent, o as TabsList, s as TabsTrigger, a as tabsListVariants };
@@ -0,0 +1,13 @@
1
+ import { cn as e } from "../../lib/utils.js";
2
+ import "react";
3
+ import { jsx as t } from "react/jsx-runtime";
4
+ //#region src/components/reui/textarea.tsx
5
+ function n({ className: n, ...r }) {
6
+ return /* @__PURE__ */ t("textarea", {
7
+ "data-slot": "textarea",
8
+ className: e("flex field-sizing-content min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:ring-destructive/40", n),
9
+ ...r
10
+ });
11
+ }
12
+ //#endregion
13
+ export { n as Textarea };
@@ -0,0 +1,84 @@
1
+ import { cn as e } from "../../lib/utils.js";
2
+ import { createContext as t, useCallback as n, useContext as r, useState as i } from "react";
3
+ import { Slot as a } from "radix-ui";
4
+ import { jsx as o } from "react/jsx-runtime";
5
+ //#region src/components/reui/timeline.tsx
6
+ var s = t(void 0), c = () => {
7
+ let e = r(s);
8
+ if (!e) throw Error("useTimeline must be used within a Timeline");
9
+ return e;
10
+ };
11
+ function l({ defaultValue: t = 1, value: r, onValueChange: a, orientation: c = "vertical", className: l, children: u, ...d }) {
12
+ let [f, p] = i(t), m = n((e) => {
13
+ r === void 0 && p(e), a?.(e);
14
+ }, [r, a]), h = r ?? f;
15
+ return /* @__PURE__ */ o(s.Provider, {
16
+ value: {
17
+ activeStep: h,
18
+ setActiveStep: m
19
+ },
20
+ children: /* @__PURE__ */ o("div", {
21
+ className: e("group/timeline flex data-[orientation=horizontal]:w-full data-[orientation=horizontal]:flex-row data-[orientation=vertical]:flex-col", l),
22
+ "data-orientation": c,
23
+ "data-slot": "timeline",
24
+ ...d,
25
+ children: u
26
+ })
27
+ });
28
+ }
29
+ function u({ className: t, ...n }) {
30
+ return /* @__PURE__ */ o("div", {
31
+ className: e("text-muted-foreground text-sm", t),
32
+ "data-slot": "timeline-content",
33
+ ...n
34
+ });
35
+ }
36
+ function d({ asChild: t = !1, className: n, ...r }) {
37
+ return /* @__PURE__ */ o(t ? a.Root : "time", {
38
+ className: e("text-muted-foreground mb-1 block text-xs font-medium group-data-[orientation=vertical]/timeline:max-sm:h-4", n),
39
+ "data-slot": "timeline-date",
40
+ ...r
41
+ });
42
+ }
43
+ function f({ className: t, ...n }) {
44
+ return /* @__PURE__ */ o("div", {
45
+ className: e(t),
46
+ "data-slot": "timeline-header",
47
+ ...n
48
+ });
49
+ }
50
+ function p({ asChild: t = !1, className: n, children: r, ...i }) {
51
+ return /* @__PURE__ */ o(t ? a.Root : "div", {
52
+ "aria-hidden": "true",
53
+ className: e("border-primary/20 group-data-completed/timeline-item:border-primary absolute size-4 rounded-full border-2 group-data-[orientation=horizontal]/timeline:-top-6 group-data-[orientation=horizontal]/timeline:left-0 group-data-[orientation=horizontal]/timeline:-translate-y-1/2 group-data-[orientation=vertical]/timeline:top-0 group-data-[orientation=vertical]/timeline:-left-6 group-data-[orientation=vertical]/timeline:-translate-x-1/2", n),
54
+ "data-slot": "timeline-indicator",
55
+ ...i,
56
+ children: r
57
+ });
58
+ }
59
+ function m({ step: t, className: n, ...r }) {
60
+ let { activeStep: i } = c();
61
+ return /* @__PURE__ */ o("div", {
62
+ className: e("group/timeline-item has-[+[data-completed]]:**:data-[slot=timeline-separator]:bg-primary relative flex flex-1 flex-col gap-0.5 group-data-[orientation=horizontal]/timeline:mt-8 group-data-[orientation=horizontal]/timeline:not-last:pe-8 group-data-[orientation=vertical]/timeline:ms-8 group-data-[orientation=vertical]/timeline:not-last:pb-6", n),
63
+ "data-completed": t <= i || void 0,
64
+ "data-slot": "timeline-item",
65
+ ...r
66
+ });
67
+ }
68
+ function h({ className: t, ...n }) {
69
+ return /* @__PURE__ */ o("div", {
70
+ "aria-hidden": "true",
71
+ className: e("bg-primary/10 absolute self-start group-last/timeline-item:hidden group-data-[orientation=horizontal]/timeline:-top-6 group-data-[orientation=horizontal]/timeline:h-0.5 group-data-[orientation=horizontal]/timeline:w-[calc(100%-1rem-0.25rem)] group-data-[orientation=horizontal]/timeline:translate-x-4.5 group-data-[orientation=horizontal]/timeline:-translate-y-1/2 group-data-[orientation=vertical]/timeline:-left-6 group-data-[orientation=vertical]/timeline:h-[calc(100%-1rem-0.25rem)] group-data-[orientation=vertical]/timeline:w-0.5 group-data-[orientation=vertical]/timeline:-translate-x-1/2 group-data-[orientation=vertical]/timeline:translate-y-4.5", t),
72
+ "data-slot": "timeline-separator",
73
+ ...n
74
+ });
75
+ }
76
+ function g({ className: t, ...n }) {
77
+ return /* @__PURE__ */ o("h3", {
78
+ className: e("text-sm font-medium", t),
79
+ "data-slot": "timeline-title",
80
+ ...n
81
+ });
82
+ }
83
+ //#endregion
84
+ export { l as Timeline, u as TimelineContent, d as TimelineDate, f as TimelineHeader, p as TimelineIndicator, m as TimelineItem, h as TimelineSeparator, g as TimelineTitle };
@@ -0,0 +1,48 @@
1
+ "use client";
2
+ import { cn as e } from "../../lib/utils.js";
3
+ import { toggleVariants as t } from "./toggle.js";
4
+ import * as n from "react";
5
+ import { ToggleGroup as r } from "radix-ui";
6
+ import { jsx as i } from "react/jsx-runtime";
7
+ //#region src/components/reui/toggle-group.tsx
8
+ var a = n.createContext({
9
+ size: "default",
10
+ variant: "default",
11
+ spacing: 0
12
+ });
13
+ function o({ className: t, variant: n, size: o, spacing: s = 0, children: c, ...l }) {
14
+ return /* @__PURE__ */ i(r.Root, {
15
+ "data-slot": "toggle-group",
16
+ "data-variant": n,
17
+ "data-size": o,
18
+ "data-spacing": s,
19
+ style: { "--gap": s },
20
+ className: e("group/toggle-group flex w-fit items-center gap-[--spacing(var(--gap))] rounded-md data-[spacing=default]:data-[variant=outline]:shadow-xs", t),
21
+ ...l,
22
+ children: /* @__PURE__ */ i(a.Provider, {
23
+ value: {
24
+ variant: n,
25
+ size: o,
26
+ spacing: s
27
+ },
28
+ children: c
29
+ })
30
+ });
31
+ }
32
+ function s({ className: o, children: s, variant: c, size: l, ...u }) {
33
+ let d = n.useContext(a);
34
+ return /* @__PURE__ */ i(r.Item, {
35
+ "data-slot": "toggle-group-item",
36
+ "data-variant": d.variant || c,
37
+ "data-size": d.size || l,
38
+ "data-spacing": d.spacing,
39
+ className: e(t({
40
+ variant: d.variant || c,
41
+ size: d.size || l
42
+ }), "w-auto min-w-0 shrink-0 px-3 focus:z-10 focus-visible:z-10", "data-[spacing=0]:rounded-none data-[spacing=0]:shadow-none data-[spacing=0]:first:rounded-l-md data-[spacing=0]:last:rounded-r-md data-[spacing=0]:data-[variant=outline]:border-l-0 data-[spacing=0]:data-[variant=outline]:first:border-l", o),
43
+ ...u,
44
+ children: s
45
+ });
46
+ }
47
+ //#endregion
48
+ export { o as ToggleGroup, s as ToggleGroupItem };
@@ -0,0 +1,36 @@
1
+ import { cn as e } from "../../lib/utils.js";
2
+ import "react";
3
+ import { Toggle as t } from "radix-ui";
4
+ import { jsx as n } from "react/jsx-runtime";
5
+ import { cva as r } from "class-variance-authority";
6
+ //#region src/components/reui/toggle.tsx
7
+ var i = r("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-[color,box-shadow] outline-none hover:bg-muted hover:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", {
8
+ variants: {
9
+ variant: {
10
+ default: "bg-transparent",
11
+ outline: "border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"
12
+ },
13
+ size: {
14
+ default: "h-9 min-w-9 px-2",
15
+ sm: "h-8 min-w-8 px-1.5",
16
+ lg: "h-10 min-w-10 px-2.5"
17
+ }
18
+ },
19
+ defaultVariants: {
20
+ variant: "default",
21
+ size: "default"
22
+ }
23
+ });
24
+ function a({ className: r, variant: a, size: o, ...s }) {
25
+ return /* @__PURE__ */ n(t.Root, {
26
+ "data-slot": "toggle",
27
+ className: e(i({
28
+ variant: a,
29
+ size: o,
30
+ className: r
31
+ })),
32
+ ...s
33
+ });
34
+ }
35
+ //#endregion
36
+ export { a as Toggle, i as toggleVariants };
@@ -0,0 +1,35 @@
1
+ import { cn as e } from "../../lib/utils.js";
2
+ import "react";
3
+ import { Tooltip as t } from "radix-ui";
4
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
5
+ //#region src/components/reui/tooltip.tsx
6
+ function i({ delayDuration: e = 0, ...r }) {
7
+ return /* @__PURE__ */ n(t.Provider, {
8
+ "data-slot": "tooltip-provider",
9
+ delayDuration: e,
10
+ ...r
11
+ });
12
+ }
13
+ function a({ ...e }) {
14
+ return /* @__PURE__ */ n(t.Root, {
15
+ "data-slot": "tooltip",
16
+ ...e
17
+ });
18
+ }
19
+ function o({ ...e }) {
20
+ return /* @__PURE__ */ n(t.Trigger, {
21
+ "data-slot": "tooltip-trigger",
22
+ ...e
23
+ });
24
+ }
25
+ function s({ className: i, sideOffset: a = 0, children: o, ...s }) {
26
+ return /* @__PURE__ */ n(t.Portal, { children: /* @__PURE__ */ r(t.Content, {
27
+ "data-slot": "tooltip-content",
28
+ sideOffset: a,
29
+ className: e("z-50 w-fit origin-(--radix-tooltip-content-transform-origin) animate-in rounded-md bg-foreground px-3 py-1.5 text-xs text-balance text-background fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95", i),
30
+ ...s,
31
+ children: [o, /* @__PURE__ */ n(t.Arrow, { className: "z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground" })]
32
+ }) });
33
+ }
34
+ //#endregion
35
+ export { a as Tooltip, s as TooltipContent, i as TooltipProvider, o as TooltipTrigger };