@revolist/ui 4.0.2-rc → 4.0.3-rc

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 (161) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +345 -263
  3. package/_chunks/{calendar-CpaUK7w1.js → calendar-xpZ0v3xf.js} +39 -29
  4. package/_chunks/{chart-frame-BC99KjGa.js → chart-frame-Cmc7xU1i.js} +16 -13
  5. package/_chunks/{choice-chips-Cs4D-3nH.js → choice-chips-CHQTUdLs.js} +10 -10
  6. package/_chunks/clock-BOhPNlW3.js +4 -0
  7. package/_chunks/{color-palette-BBMFmUNA.js → color-palette-D8vyPfld.js} +1 -1
  8. package/_chunks/{color-picker-D90Jg-M8.js → color-picker-CudqPYZo.js} +10 -10
  9. package/_chunks/{component-YDcfoOLz.js → component-C_T2VN5u.js} +182 -178
  10. package/_chunks/{component-metadata-BENbgTjU.js → component-metadata-BMOOmqx5.js} +0 -4
  11. package/_chunks/control-AHKXD5Eu.js +93 -0
  12. package/_chunks/{control-tooltip-ztgmsG7H.js → control-tooltip-uscKfAnV.js} +15 -15
  13. package/_chunks/{controls-DIum-E66.js → controls-DsNi8V8I.js} +144 -129
  14. package/_chunks/{date-control-BJSzu79z.js → date-control-DrVFX13g.js} +1 -1
  15. package/_chunks/{date-time-BxPJusp9.js → date-time-qIhp5vaX.js} +143 -145
  16. package/_chunks/{delete-button-Bblyah10.js → delete-button-CW9vjLnk.js} +6 -6
  17. package/_chunks/{dialog.parts-DBqo3Qwb.js → dialog.parts-CKGkC5zP.js} +20 -20
  18. package/_chunks/{duration-87U2EoMS.js → duration-CL68Em0o.js} +16 -15
  19. package/_chunks/{editor-popup-D3JdS8l3.js → editor-popup-WDdtVDNA.js} +5 -5
  20. package/_chunks/field-context-D57PnBbH.js +5 -0
  21. package/_chunks/{framework-mount-C-Zwm44H.js → framework-mount--RTLIqE-.js} +1 -1
  22. package/_chunks/history-controls-B3u3INEK.js +27 -0
  23. package/_chunks/mount-DQ1cpppK.js +257 -0
  24. package/_chunks/native-control-C_yok8_-.js +605 -0
  25. package/_chunks/{number-input-BeIadZuL.js → number-input-BKwA5FnM.js} +2 -2
  26. package/_chunks/{picker-DpP7iQLA.js → picker-h1P5RUgp.js} +2 -2
  27. package/_chunks/popup-CT2uD3go.js +367 -0
  28. package/_chunks/{rating-choice-Ca8ZBty3.js → rating-choice-DZgmaic0.js} +1 -1
  29. package/_chunks/render-m5eMMwFR.js +83 -0
  30. package/_chunks/{reorder-list-Cc3KmfAN.js → reorder-list-CSlqAGHw.js} +1 -1
  31. package/_chunks/request-trail-DSlFix6i.js +618 -0
  32. package/_chunks/rich-text-CH7gIqOS.js +636 -0
  33. package/_chunks/rotate-right-Iha5ScJ1.js +4 -0
  34. package/_form.scss +1 -1
  35. package/ai/_chat.scss +195 -0
  36. package/ai/_style.scss +105 -34
  37. package/ai/chat.d.ts +63 -0
  38. package/ai/components.d.ts +19 -3
  39. package/ai/index.d.ts +2 -0
  40. package/ai/index.js +3 -3
  41. package/ai/mount.d.ts +30 -1
  42. package/ai/prompt-history.d.ts +13 -0
  43. package/ai/transcript.d.ts +25 -0
  44. package/ai/translations.d.ts +1 -1
  45. package/angular/angular.js +0 -3
  46. package/assignee/index.js +34 -35
  47. package/buttons/delete-button.d.ts +2 -1
  48. package/buttons/delete-button.js +1 -1
  49. package/buttons/remove-button.js +1 -1
  50. package/buttons/svg-button.d.ts +1 -0
  51. package/buttons/svg-button.js +5 -5
  52. package/calendar/_calendar.scss +7 -2
  53. package/calendar/calendar.js +1 -1
  54. package/calendar/index.js +2 -2
  55. package/choice-chips/index.js +1 -1
  56. package/color-palette/color-palette.js +1 -1
  57. package/color-palette/color-picker.js +2 -2
  58. package/component-catalog.d.ts +16 -5
  59. package/control-attributes.js +7 -7
  60. package/controls.d.ts +8 -6
  61. package/controls.js +3 -3
  62. package/core/editor-popup.js +1 -1
  63. package/date-time/index.js +1 -1
  64. package/date-time/style.scss +4 -4
  65. package/dialog/dialog.dom.js +8 -8
  66. package/dialog/dialog.parts.js +1 -1
  67. package/distribution-chart/area-chart.js +1 -1
  68. package/distribution-chart/bar-chart.d.ts +5 -2
  69. package/distribution-chart/bar-chart.js +7 -3
  70. package/distribution-chart/chart-frame.d.ts +2 -1
  71. package/distribution-chart/line-chart.js +1 -1
  72. package/dropdown/content.d.ts +2 -1
  73. package/dropdown/content.js +1 -142
  74. package/dropdown/control.d.ts +14 -0
  75. package/dropdown/control.js +1 -0
  76. package/dropdown/control.view.d.ts +6 -0
  77. package/dropdown/dropdown.types.d.ts +4 -0
  78. package/dropdown/editor-dropdown.style.scss +37 -9
  79. package/dropdown/index.d.ts +1 -1
  80. package/dropdown/index.js +3 -4
  81. package/dropdown/lookup-field.js +1 -1
  82. package/dropdown/popup.js +1 -141
  83. package/duration/index.js +1 -1
  84. package/duration/style.scss +1 -1
  85. package/editor-actions.js +1 -1
  86. package/field-configurator.js +6 -6
  87. package/fieldset.d.ts +3 -0
  88. package/filter/filters/slider/single.js +1 -1
  89. package/filter-badge.js +1 -1
  90. package/filter-controls.js +7 -7
  91. package/form-controls/field-context.d.ts +5 -0
  92. package/form-controls/index.js +7 -12
  93. package/form-controls/index.view.d.ts +2 -4
  94. package/form-controls/presentation.js +51 -43
  95. package/formatting/index.js +25 -21
  96. package/framework.js +215 -207
  97. package/history-controls.d.ts +14 -0
  98. package/history-controls.js +1 -0
  99. package/masked-input/index.js +1 -1
  100. package/native-control.d.ts +6 -4
  101. package/native-control.js +3 -26
  102. package/native-styles.css +1 -1
  103. package/native.js +31 -30
  104. package/number-input/index.js +1 -1
  105. package/package.json +18 -13
  106. package/pagination.d.ts +3 -0
  107. package/pagination.js +43 -33
  108. package/pdf-viewer/index.js +1 -1
  109. package/pdf-viewer/style.scss +3 -4
  110. package/preact.d.ts +2 -0
  111. package/preact.js +62 -62
  112. package/rating-choice.js +1 -1
  113. package/react-control.d.ts +0 -1
  114. package/react-control.js +2 -2
  115. package/react.d.ts +13 -3
  116. package/react.js +71 -88
  117. package/reorder-list.js +1 -1
  118. package/resource-picker/resource-picker-popup.js +1 -1
  119. package/resource-picker/resource-picker.js +4 -4
  120. package/resource-picker/resource-picker.scss +6 -3
  121. package/rich-text/engine.d.ts +16 -19
  122. package/rich-text/index.d.ts +7 -7
  123. package/rich-text/index.js +1 -1
  124. package/rich-text/model.d.ts +4 -3
  125. package/rich-text/render-model.d.ts +4 -5
  126. package/rich-text/style.scss +3 -12
  127. package/rich-text/toolbar.d.ts +6 -6
  128. package/rich-text/translations.d.ts +3 -15
  129. package/select.d.ts +20 -0
  130. package/select.js +1 -0
  131. package/status-feedback/exit-snapshot.js +4 -4
  132. package/status-feedback/index.js +2 -2
  133. package/status-feedback/popover.js +10 -10
  134. package/status-feedback/render.js +3 -44
  135. package/status-feedback/status-feedback.scss +7 -0
  136. package/status-feedback/types.d.ts +4 -0
  137. package/status-feedback/use-auto-dismiss.d.ts +3 -0
  138. package/styles/_compositions.scss +3 -1
  139. package/styles/_control.scss +12 -4
  140. package/styles/_primitives.scss +9 -8
  141. package/styles.css +1 -1
  142. package/surfaces.js +45 -45
  143. package/svelte/UiComponent.server.js +1 -48
  144. package/svelte/UiComponent.svelte +0 -21
  145. package/svelte.js +33 -68
  146. package/time-grid.js +1 -1
  147. package/timeline-track/component.d.ts +5 -1
  148. package/timeline-track/index.js +71 -54
  149. package/timeline-track/model.d.ts +9 -0
  150. package/timeline-track/model.js +10 -1
  151. package/ui.css +1 -1
  152. package/vue.d.ts +24 -5
  153. package/vue.js +140 -164
  154. package/_chunks/compat.module-DDB2pm9O.js +0 -229
  155. package/_chunks/dropdown-voWqmwAe.js +0 -357
  156. package/_chunks/mount-DZe_6VtR.js +0 -90
  157. package/_chunks/request-trail-IdNiFvKH.js +0 -347
  158. package/_chunks/rich-text-BzI1DyfF.js +0 -477
  159. package/react-native-select.d.ts +0 -6
  160. package/rich-text/syntax.d.ts +0 -2
  161. package/vue-native-select.d.ts +0 -9
@@ -1,6 +1,6 @@
1
1
  import { i as e, n as t, t as n } from "./hooks.module-CG3gN83z.js";
2
2
  import { t as r } from "./jsxRuntime.module-F6UFnpT-.js";
3
- import { ButtonControl as i, Select as a } from "../native-control.js";
3
+ import { l as i, t as a } from "./native-control-C_yok8_-.js";
4
4
  import { createControlId as o } from "../core/control-id.js";
5
5
  import { DEFAULT_CALENDAR_TRANSLATIONS as s } from "../calendar/translations.js";
6
6
  import { a as c, n as l } from "./iso-B0YHBK7m.js";
@@ -9,7 +9,7 @@ import { CalendarHeader as ee, CalendarWeekdays as te } from "../calendar/header
9
9
  import { CalendarMonthGrid as x } from "../calendar/month-grid.js";
10
10
  import { CalendarYearGrid as ne } from "../calendar/year-grid.js";
11
11
  //#region src/calendar/caption.tsx
12
- function re({ month: e, system: n, locale: i, layout: o, start: s, end: c, disabled: l, labels: u, onChange: d }) {
12
+ function re({ month: e, system: n, locale: a, layout: o, start: s, end: c, disabled: l, labels: u, onChange: d }) {
13
13
  let h = m(e, n), g = f(e, n), _ = t(() => {
14
14
  let t = m(e, n)[0], r = s ? m(s, n)[0] : v(t, -600, n), i = c ? m(c, n)[0] : v(t, 120, n), a = [];
15
15
  for (let e = r; e <= i; e = v(e, 12, n)) a.push(e);
@@ -22,35 +22,45 @@ function re({ month: e, system: n, locale: i, layout: o, start: s, end: c, disab
22
22
  ]);
23
23
  return /* @__PURE__ */ r("div", {
24
24
  class: "revo-calendar__caption",
25
- children: [o === "dropdown-years" ? /* @__PURE__ */ r("span", { children: b(e, i, { month: "long" }, n) }) : /* @__PURE__ */ r(a, {
26
- "aria-label": u.chooseMonth,
25
+ children: [o === "dropdown-years" ? /* @__PURE__ */ r("span", { children: b(e, a, { month: "long" }, n) }) : /* @__PURE__ */ r(i, {
26
+ className: "rv-select",
27
+ config: {
28
+ ariaLabel: u.chooseMonth,
29
+ topLayer: !0,
30
+ nativeTabNavigation: !0
31
+ },
27
32
  disabled: l,
28
33
  value: String(g.month),
29
- onChange: (e) => d(h[Number(e.currentTarget.value) - 1]),
30
- children: h.map((e, t) => /* @__PURE__ */ r("option", {
34
+ source: h.map((e, t) => ({
31
35
  value: String(t + 1),
32
- disabled: !!(s && e < p(s, n) || c && e > p(c, n)),
33
- children: b(e, i, { month: "short" }, n)
34
- }, e))
35
- }), o === "dropdown-months" ? /* @__PURE__ */ r("span", { children: b(e, i, { year: "numeric" }, n) }) : /* @__PURE__ */ r(a, {
36
- "aria-label": u.chooseYear,
36
+ label: b(e, a, { month: "short" }, n),
37
+ disabled: !!(s && e < p(s, n) || c && e > p(c, n))
38
+ })),
39
+ onChange: (e) => d(h[Number(e) - 1])
40
+ }), o === "dropdown-months" ? /* @__PURE__ */ r("span", { children: b(e, a, { year: "numeric" }, n) }) : /* @__PURE__ */ r(i, {
41
+ className: "rv-select",
42
+ config: {
43
+ ariaLabel: u.chooseYear,
44
+ topLayer: !0,
45
+ nativeTabNavigation: !0
46
+ },
37
47
  disabled: l,
38
48
  value: h[0],
39
- onChange: (e) => {
40
- let t = e.currentTarget.value, r = v(t, g.month - 1, n);
41
- s && r < p(s, n) && (r = p(s, n)), c && r > p(c, n) && (r = p(c, n)), d(r);
42
- },
43
- children: _.map((e) => /* @__PURE__ */ r("option", {
49
+ source: _.map((e) => ({
44
50
  value: e,
45
- children: b(e, i, { year: "numeric" }, n)
46
- }, e))
51
+ label: b(e, a, { year: "numeric" }, n)
52
+ })),
53
+ onChange: (e) => {
54
+ let t = v(e, g.month - 1, n);
55
+ s && t < p(s, n) && (t = p(s, n)), c && t > p(c, n) && (t = p(c, n)), d(t);
56
+ }
47
57
  })]
48
58
  });
49
59
  }
50
60
  //#endregion
51
61
  //#region src/calendar/calendar.tsx
52
62
  var ie = "2026-08-02";
53
- function S({ locale: a = "en-US", weekStartsOn: f = 1, showOutsideDays: m = !1, allowOutsideMonthSelection: S = !1, fixedWeeks: ae = !0, showTodayButton: oe = !1, showHeader: se = !0, showNavigation: C = !0, showPreviousButton: ce = C, showNextButton: le = C, showMonthLabel: ue = !0, showWeekdays: de = !0, enableYearView: w = !0, translations: fe = {}, ...T }) {
63
+ function S({ locale: i = "en-US", weekStartsOn: f = 1, showOutsideDays: m = !1, allowOutsideMonthSelection: S = !1, fixedWeeks: ae = !0, showTodayButton: oe = !1, showHeader: se = !0, showNavigation: C = !0, showPreviousButton: ce = C, showNextButton: le = C, showMonthLabel: ue = !0, showWeekdays: de = !0, enableYearView: w = !0, translations: fe = {}, ...T }) {
54
64
  let [E] = e(() => o("rv-calendar-feedback")), D = T.calendarSystem ?? "gregory", O = Math.max(1, Math.min(12, Math.trunc(T.numberOfMonths || 1))), k = t(() => {
55
65
  let e = T.views ? [...new Set(T.views.filter((e) => e === "month" || e === "year"))] : w ? ["month", "year"] : ["month"];
56
66
  return e.length ? e : ["month"];
@@ -111,7 +121,7 @@ function S({ locale: a = "en-US", weekStartsOn: f = 1, showOutsideDays: m = !1,
111
121
  let e = F.current.get(r);
112
122
  e && (I.current = !1, e.focus());
113
123
  }));
114
- }, q = (e) => T.formatMonth?.(e, a) ?? b(e, a, {
124
+ }, q = (e) => T.formatMonth?.(e, i) ?? b(e, i, {
115
125
  month: "long",
116
126
  year: "numeric"
117
127
  }, D), J = j === "year", Y = J ? 12 : T.pagedNavigation ? O : 1, X = H(v(M, -Y, D), J ? 1 : O), Z = H(v(M, Y, D), J ? 1 : O), Q = (e, t = J ? 1 : O) => {
@@ -130,13 +140,13 @@ function S({ locale: a = "en-US", weekStartsOn: f = 1, showOutsideDays: m = !1,
130
140
  children: (J ? [M] : me).map((e, t) => /* @__PURE__ */ r("section", {
131
141
  class: "revo-calendar__month-panel",
132
142
  children: [se && /* @__PURE__ */ r(ee, {
133
- label: J ? b(e, a, { year: "numeric" }, D) : q(e),
143
+ label: J ? b(e, i, { year: "numeric" }, D) : q(e),
134
144
  previousLabel: J ? L.previousYear : L.previousMonth,
135
145
  nextLabel: J ? L.nextYear : L.nextMonth,
136
146
  caption: !J && T.captionLayout && T.captionLayout !== "label" ? /* @__PURE__ */ r(re, {
137
147
  month: e,
138
148
  system: D,
139
- locale: a,
149
+ locale: i,
140
150
  layout: T.captionLayout,
141
151
  start: z,
142
152
  end: B,
@@ -162,8 +172,8 @@ function S({ locale: a = "en-US", weekStartsOn: f = 1, showOutsideDays: m = !1,
162
172
  minDate: T.minDate,
163
173
  maxDate: T.maxDate,
164
174
  isMonthDisabled: T.isMonthDisabled,
165
- locale: a,
166
- ariaLabel: `${L.chooseMonth} ${b(M, a, { year: "numeric" }, D)}`,
175
+ locale: i,
176
+ ariaLabel: `${L.chooseMonth} ${b(M, i, { year: "numeric" }, D)}`,
167
177
  onEscape: () => G("month"),
168
178
  onSelect: (e) => {
169
179
  Q(e, O), G("month");
@@ -174,7 +184,7 @@ function S({ locale: a = "en-US", weekStartsOn: f = 1, showOutsideDays: m = !1,
174
184
  "aria-label": `${q(e)} ${L.calendar}`,
175
185
  children: [de && /* @__PURE__ */ r(te, {
176
186
  dates: he,
177
- locale: a,
187
+ locale: i,
178
188
  format: T.formatWeekday ?? ((e, t) => b(e, t, { weekday: /^(fa|ar)(-|$)/.test(t) ? "narrow" : "short" }, D)),
179
189
  weekNumberLabel: T.showWeekNumber ? L.weekNumber : void 0
180
190
  }), /* @__PURE__ */ r(x, {
@@ -192,9 +202,9 @@ function S({ locale: a = "en-US", weekStartsOn: f = 1, showOutsideDays: m = !1,
192
202
  showOutsideDays: m,
193
203
  allowOutsideMonthSelection: S,
194
204
  dayClassName: T.dayClassName,
195
- renderDay: T.renderDay ?? ((e) => b(e, a, { day: "numeric" }, D)),
205
+ renderDay: T.renderDay ?? ((e) => b(e, i, { day: "numeric" }, D)),
196
206
  isDisabled: W,
197
- formatDayLabel: (e) => T.formatDayLabel?.(e, a) ?? b(e, a, {
207
+ formatDayLabel: (e) => T.formatDayLabel?.(e, i) ?? b(e, i, {
198
208
  weekday: "long",
199
209
  month: "long",
200
210
  day: "numeric",
@@ -202,7 +212,7 @@ function S({ locale: a = "en-US", weekStartsOn: f = 1, showOutsideDays: m = !1,
202
212
  }, D),
203
213
  weekNumber: T.showWeekNumber ? (e) => {
204
214
  let t = d(T.weekNumbering === "local" ? e : g(e, (4 - c(e) + 7) % 7), T.weekNumbering === "local" ? f : 1, T.weekNumbering === "local" ? 1 : 4, T.weekNumbering === "local" ? D : "gregory");
205
- return T.formatWeekNumber?.(t) ?? new Intl.NumberFormat(a).format(t);
215
+ return T.formatWeekNumber?.(t) ?? new Intl.NumberFormat(i).format(t);
206
216
  } : void 0,
207
217
  weekNumberLabel: L.weekNumber,
208
218
  setDayRef: _e,
@@ -216,7 +226,7 @@ function S({ locale: a = "en-US", weekStartsOn: f = 1, showOutsideDays: m = !1,
216
226
  }),
217
227
  T.presets?.length ? /* @__PURE__ */ r("div", {
218
228
  class: "revo-calendar__presets",
219
- children: T.presets.map((e) => /* @__PURE__ */ r(i, {
229
+ children: T.presets.map((e) => /* @__PURE__ */ r(a, {
220
230
  disabled: W(e.date),
221
231
  onClick: () => $(e.date),
222
232
  children: e.label
@@ -27,11 +27,11 @@ function s({ title: e, details: t = [] }) {
27
27
  function c({ title: t, details: n = [] }) {
28
28
  return /* @__PURE__ */ r(e, { children: [/* @__PURE__ */ r("strong", { children: t }), n.map((e) => /* @__PURE__ */ r("span", { children: e }, e))] });
29
29
  }
30
- function l({ data: e, ariaLabel: a, variant: o, height: l = 72, className: u = "", showGrid: d = !1, showLabels: f = !1, showValues: p = !1, legend: m, formatValue: h = String, tooltip: g = !0, tooltipIndicator: _ = "none", renderTooltip: v, positions: y, renderDatum: b, children: x }) {
31
- let { values: S, max: C } = i(e), [w, T] = t(0), E = n([]), D = Math.min(w, Math.max(0, e.length - 1)), O = (t) => {
30
+ function l({ data: e, ariaLabel: a, variant: o, height: l = 72, className: u = "", showGrid: d = !1, showLabels: f = !1, showValues: p = !1, legend: m, formatValue: h = String, tooltip: g = !0, tooltipIndicator: _ = "none", renderTooltip: v, positions: y, datumColors: b, renderDatum: x, children: S }) {
31
+ let { values: C, max: w } = i(e), [T, E] = t(0), D = n([]), O = Math.min(T, Math.max(0, e.length - 1)), k = (t) => {
32
32
  if (!e.length) return;
33
33
  let n = Math.max(0, Math.min(t, e.length - 1));
34
- T(n), E.current[n]?.focus();
34
+ E(n), D.current[n]?.focus();
35
35
  };
36
36
  return /* @__PURE__ */ r("div", {
37
37
  class: `rv-distribution-chart rv-distribution-chart--${o} ${u}`.trim(),
@@ -54,7 +54,7 @@ function l({ data: e, ariaLabel: a, variant: o, height: l = 72, className: u = "
54
54
  4
55
55
  ].map((e) => /* @__PURE__ */ r("span", {}, e))
56
56
  }),
57
- x,
57
+ S,
58
58
  /* @__PURE__ */ r("div", {
59
59
  class: "rv-distribution-chart__data",
60
60
  role: "list",
@@ -62,26 +62,29 @@ function l({ data: e, ariaLabel: a, variant: o, height: l = 72, className: u = "
62
62
  let i = y?.[n], a = !i;
63
63
  return /* @__PURE__ */ r("span", {
64
64
  ref: (e) => {
65
- E.current[n] = e;
65
+ D.current[n] = e;
66
66
  },
67
67
  class: `rv-distribution-chart__datum${t.selected ? " is-selected" : ""}${a ? " is-bar" : " is-point"}`,
68
68
  role: "listitem",
69
- tabIndex: n === D ? 0 : -1,
69
+ tabIndex: n === O ? 0 : -1,
70
70
  "aria-label": s(t.tooltip),
71
- style: a ? void 0 : {
72
- left: `${i.x}%`,
73
- top: `${i.y}%`
71
+ style: {
72
+ "--rv-distribution-accent": b?.[n],
73
+ ...a ? {} : {
74
+ left: `${i.x}%`,
75
+ top: `${i.y}%`
76
+ }
74
77
  },
75
- onFocus: () => T(n),
78
+ onFocus: () => E(n),
76
79
  onKeyDown: (t) => {
77
- t.key === "ArrowRight" || t.key === "ArrowDown" ? (t.preventDefault(), O(n + 1)) : t.key === "ArrowLeft" || t.key === "ArrowUp" ? (t.preventDefault(), O(n - 1)) : t.key === "Home" ? (t.preventDefault(), O(0)) : t.key === "End" && (t.preventDefault(), O(e.length - 1));
80
+ t.key === "ArrowRight" || t.key === "ArrowDown" ? (t.preventDefault(), k(n + 1)) : t.key === "ArrowLeft" || t.key === "ArrowUp" ? (t.preventDefault(), k(n - 1)) : t.key === "Home" ? (t.preventDefault(), k(0)) : t.key === "End" && (t.preventDefault(), k(e.length - 1));
78
81
  },
79
82
  children: [
80
- b(t, n),
83
+ x(t, n),
81
84
  p && /* @__PURE__ */ r("span", {
82
85
  class: "rv-distribution-chart__value",
83
86
  style: a ? {
84
- top: `${100 - Math.max(3, S[n] / C * 100)}%`,
87
+ top: `${100 - Math.max(3, C[n] / w * 100)}%`,
85
88
  transform: "translate(-50%, -100%)"
86
89
  } : void 0,
87
90
  "aria-hidden": "true",
@@ -1,9 +1,9 @@
1
1
  import { r as e, t } from "./hooks.module-CG3gN83z.js";
2
2
  import { t as n } from "./jsxRuntime.module-F6UFnpT-.js";
3
3
  import { SvgIcon as r } from "../icons/icon.js";
4
- import { ButtonControl as i } from "../native-control.js";
5
- import { TooltipController as a } from "../surfaces.js";
6
- import { RemoveButton as o } from "../buttons/remove-button.js";
4
+ import { t as i } from "./native-control-C_yok8_-.js";
5
+ import { RemoveButton as a } from "../buttons/remove-button.js";
6
+ import { TooltipController as o } from "../surfaces.js";
7
7
  //#region ../../node_modules/.pnpm/@fortawesome+fontawesome-free@7.3.1/node_modules/@fortawesome/fontawesome-free/svgs/solid/circle-info.svg?raw
8
8
  var s = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM224 160a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm-8 64l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24z\"/></svg>";
9
9
  //#endregion
@@ -38,11 +38,11 @@ function c({ value: e, options: t, onChange: r, ariaLabel: i, appearance: a = "s
38
38
  })
39
39
  });
40
40
  }
41
- function l({ "data-tooltip": o, title: c, ref: l, ...u }) {
42
- let d = t(null), f = o ?? (typeof c == "object" ? c.value : c);
41
+ function l({ "data-tooltip": a, title: c, ref: l, ...u }) {
42
+ let d = t(null), f = a ?? (typeof c == "object" ? c.value : c);
43
43
  return e(() => {
44
44
  if (!d.current || !f) return;
45
- let e = new a();
45
+ let e = new o();
46
46
  return e.bind(d.current, f, { trigger: "click" }), () => e.destroy();
47
47
  }, [f]), /* @__PURE__ */ n(i, {
48
48
  ...u,
@@ -57,12 +57,12 @@ function l({ "data-tooltip": o, title: c, ref: l, ...u }) {
57
57
  })
58
58
  });
59
59
  }
60
- function u({ children: e, color: t, selected: r, onSelect: i, info: a, onRemove: s, removeLabel: c, removeClassName: l = "", className: u = "", disabled: d, ...f }) {
60
+ function u({ children: e, color: t, selected: r, onSelect: i, info: o, onRemove: s, removeLabel: c, removeClassName: l = "", className: u = "", disabled: d, ...f }) {
61
61
  let p = t ? typeof f.style == "string" ? `${f.style};--rv-choice-chip-color:${t}` : {
62
62
  ...f.style,
63
63
  "--rv-choice-chip-color": t
64
64
  } : f.style;
65
- return !a && !s && i ? /* @__PURE__ */ n("button", {
65
+ return !o && !s && i ? /* @__PURE__ */ n("button", {
66
66
  ...f,
67
67
  style: p,
68
68
  "data-color": t ? "true" : void 0,
@@ -92,8 +92,8 @@ function u({ children: e, color: t, selected: r, onSelect: i, info: a, onRemove:
92
92
  class: "rv-choice-chip-label",
93
93
  children: e
94
94
  }),
95
- a,
96
- s && /* @__PURE__ */ n(o, {
95
+ o,
96
+ s && /* @__PURE__ */ n(a, {
97
97
  compact: !0,
98
98
  className: l,
99
99
  disabled: typeof d == "object" ? d.value : d,
@@ -0,0 +1,4 @@
1
+ //#region ../../node_modules/.pnpm/@fortawesome+fontawesome-free@7.3.1/node_modules/@fortawesome/fontawesome-free/svgs/regular/clock.svg?raw
2
+ var e = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M464 256a208 208 0 1 1 -416 0 208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0 256 256 0 1 0 -512 0zM232 120l0 136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2 280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24z\"/></svg>";
3
+ //#endregion
4
+ export { e as t };
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./jsxRuntime.module-F6UFnpT-.js";
2
- import { n as t } from "./control-tooltip-ztgmsG7H.js";
2
+ import { n as t } from "./control-tooltip-uscKfAnV.js";
3
3
  import { DEFAULT_COLOR_PALETTE_OPTIONS as n } from "../color-palette/palette.js";
4
4
  //#region src/color-palette/color-model.ts
5
5
  function r(e) {
@@ -1,9 +1,9 @@
1
1
  import { c as e, i as t, t as n } from "./hooks.module-CG3gN83z.js";
2
2
  import { t as r } from "./jsxRuntime.module-F6UFnpT-.js";
3
- import { ButtonControl as i, Input as a } from "../native-control.js";
4
- import { createControlId as o } from "../core/control-id.js";
5
- import { t as s } from "./chevron-down-GbplLa6s.js";
6
- import { n as c, t as l } from "./color-palette-BBMFmUNA.js";
3
+ import { n as i, t as a } from "./native-control-C_yok8_-.js";
4
+ import { t as o } from "./chevron-down-GbplLa6s.js";
5
+ import { createControlId as s } from "../core/control-id.js";
6
+ import { n as c, t as l } from "./color-palette-D8vyPfld.js";
7
7
  import { COLOR_PICKER_DEFAULT_COLOR as u } from "../color-palette/color-picker.constants.js";
8
8
  //#region ../../node_modules/.pnpm/@fortawesome+fontawesome-free@7.3.1/node_modules/@fortawesome/fontawesome-free/svgs/solid/ban.svg?raw
9
9
  var d = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M367.2 412.5L99.5 144.8c-22.4 31.4-35.5 69.8-35.5 111.2 0 106 86 192 192 192 41.5 0 79.9-13.1 111.2-35.5zm45.3-45.3c22.4-31.4 35.5-69.8 35.5-111.2 0-106-86-192-192-192-41.5 0-79.9 13.1-111.2 35.5L412.5 367.2zM0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0z\"/></svg>", f = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M512 256c0 .9 0 1.8 0 2.7-.4 36.5-33.6 61.3-70.1 61.3L344 320c-26.5 0-48 21.5-48 48 0 3.4 .4 6.7 1 9.9 2.1 10.2 6.5 20 10.8 29.9 6.1 13.8 12.1 27.5 12.1 42 0 31.8-21.6 60.7-53.4 62-3.5 .1-7 .2-10.6 .2-141.4 0-256-114.6-256-256S114.6 0 256 0 512 114.6 512 256zM128 288a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm0-96a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM288 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm96 96a32 32 0 1 0 0-64 32 32 0 1 0 0 64z\"/></svg>";
@@ -17,7 +17,7 @@ function p({ icon: e, className: t = "rv-format-icon rv-format-color-picker__ico
17
17
  });
18
18
  }
19
19
  function m({ label: m, value: h, defaultLabel: g, customLabel: _, customHexLabel: v, invalidColor: y, colorLabels: b, optional: x = !0, allowHexInput: S = !0, disabled: C = !1, onChange: w }) {
20
- let [T] = t(o), E = `rv-format-color-popover-${T}`, D = `rv-format-color-custom-${T}`, O = `rv-format-color-error-${T}`, k = `--rv-format-color-anchor-${T}`, A = n(null), [j, M] = t(!1), [N, P] = t(!1), [F, I] = t(h ?? u), [L, R] = t(!1);
20
+ let [T] = t(s), E = `rv-format-color-popover-${T}`, D = `rv-format-color-custom-${T}`, O = `rv-format-color-error-${T}`, k = `--rv-format-color-anchor-${T}`, A = n(null), [j, M] = t(!1), [N, P] = t(!1), [F, I] = t(h ?? u), [L, R] = t(!1);
21
21
  e(() => {
22
22
  I(h ?? u), R(!1);
23
23
  }, [h]);
@@ -32,7 +32,7 @@ function m({ label: m, value: h, defaultLabel: g, customLabel: _, customHexLabel
32
32
  onKeyDownCapture: (e) => {
33
33
  e.key === "Escape" && A.current?.matches(":popover-open") && (e.preventDefault(), e.stopPropagation(), B());
34
34
  },
35
- children: [/* @__PURE__ */ r(i, {
35
+ children: [/* @__PURE__ */ r(a, {
36
36
  unstyled: !0,
37
37
  type: "button",
38
38
  class: "rv-format-color-picker__trigger",
@@ -57,7 +57,7 @@ function m({ label: m, value: h, defaultLabel: g, customLabel: _, customHexLabel
57
57
  class: "rv-format-color-picker__trigger-value",
58
58
  children: h?.toUpperCase() ?? g
59
59
  }),
60
- /* @__PURE__ */ r(p, { icon: s })
60
+ /* @__PURE__ */ r(p, { icon: o })
61
61
  ]
62
62
  }), /* @__PURE__ */ r("div", {
63
63
  id: E,
@@ -86,7 +86,7 @@ function m({ label: m, value: h, defaultLabel: g, customLabel: _, customHexLabel
86
86
  "data-selection-only": !S || void 0,
87
87
  hidden: !N,
88
88
  children: [
89
- /* @__PURE__ */ r(a, {
89
+ /* @__PURE__ */ r(i, {
90
90
  type: "color",
91
91
  disabled: C,
92
92
  class: "rv-format-color-picker__native",
@@ -95,7 +95,7 @@ function m({ label: m, value: h, defaultLabel: g, customLabel: _, customHexLabel
95
95
  value: c(F) ?? u,
96
96
  onInput: (e) => z(e.currentTarget.value)
97
97
  }),
98
- S ? /* @__PURE__ */ r(a, {
98
+ S ? /* @__PURE__ */ r(i, {
99
99
  type: "text",
100
100
  disabled: C,
101
101
  class: "rv-control rv-format-color-picker__hex",
@@ -119,7 +119,7 @@ function m({ label: m, value: h, defaultLabel: g, customLabel: _, customHexLabel
119
119
  }) : null
120
120
  ]
121
121
  }),
122
- /* @__PURE__ */ r(i, {
122
+ /* @__PURE__ */ r(a, {
123
123
  unstyled: !0,
124
124
  type: "button",
125
125
  class: "rv-format-color-picker__custom-action",