@revolist/ui 4.0.1-rc → 4.0.2-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 (218) hide show
  1. package/README.md +6 -5
  2. package/_chunks/calendar-CpaUK7w1.js +248 -0
  3. package/_chunks/chart-frame-BC99KjGa.js +127 -0
  4. package/_chunks/choice-chips-Cs4D-3nH.js +110 -0
  5. package/_chunks/{color-palette-BmZ7kH9R.js → color-palette-BBMFmUNA.js} +41 -41
  6. package/_chunks/color-picker-D90Jg-M8.js +138 -0
  7. package/_chunks/compat.module-DDB2pm9O.js +229 -0
  8. package/_chunks/component-YDcfoOLz.js +859 -0
  9. package/_chunks/{control-tooltip-BCNzQCXE.js → control-tooltip-ztgmsG7H.js} +29 -29
  10. package/_chunks/{controller-CmLo-Ajc.js → controller-hRBm_Lfz.js} +15 -15
  11. package/_chunks/{controls-NEL5tDaz.js → controls-DIum-E66.js} +192 -192
  12. package/_chunks/{date-control-CYCkb1aQ.js → date-control-BJSzu79z.js} +21 -21
  13. package/_chunks/date-time-BxPJusp9.js +770 -0
  14. package/_chunks/{delete-button-DnpmDNEJ.js → delete-button-Bblyah10.js} +1 -1
  15. package/_chunks/dialog.parts-DBqo3Qwb.js +134 -0
  16. package/_chunks/{dropdown-CkGQBm1Q.js → dropdown-voWqmwAe.js} +102 -102
  17. package/_chunks/duration-87U2EoMS.js +271 -0
  18. package/_chunks/editor-commit-Bq3wSgvr.js +12 -0
  19. package/_chunks/{editor-popup-B7fu_A_T.js → editor-popup-D3JdS8l3.js} +8 -8
  20. package/_chunks/framework-mount-C-Zwm44H.js +54 -0
  21. package/_chunks/hooks.module-CG3gN83z.js +157 -0
  22. package/_chunks/jsxRuntime.module-F6UFnpT-.js +30 -0
  23. package/_chunks/mount-DZe_6VtR.js +90 -0
  24. package/_chunks/native.view-ByyZ1CT5.js +32 -0
  25. package/_chunks/{number-input-NnH57J4j.js → number-input-BeIadZuL.js} +89 -89
  26. package/_chunks/picker-DpP7iQLA.js +122 -0
  27. package/_chunks/preact.module-BBM36DnO.js +290 -0
  28. package/_chunks/{rating-choice-CWAsNQNS.js → rating-choice-Ca8ZBty3.js} +10 -10
  29. package/_chunks/reorder-list-Cc3KmfAN.js +59 -0
  30. package/_chunks/request-trail-IdNiFvKH.js +347 -0
  31. package/_chunks/{rich-text-2Rla349o.js → rich-text-BzI1DyfF.js} +167 -167
  32. package/_vendor/preact/LICENSE +21 -0
  33. package/_vendor/preact/compat/src/index.d.ts +353 -0
  34. package/_vendor/preact/compat/src/suspense-list.d.ts +16 -0
  35. package/_vendor/preact/compat/src/suspense.d.ts +19 -0
  36. package/_vendor/preact/hooks/src/index.d.ts +145 -0
  37. package/_vendor/preact/src/dom.d.ts +2548 -0
  38. package/_vendor/preact/src/index.d.ts +373 -0
  39. package/_vendor/preact/src/jsx.d.ts +2958 -0
  40. package/activity-message.d.ts +1 -1
  41. package/activity-message.js +16 -16
  42. package/ai/components.d.ts +1 -1
  43. package/ai/index.js +2 -2
  44. package/ai/request-trail.d.ts +1 -1
  45. package/ai/translation-context.d.ts +1 -1
  46. package/alert.d.ts +2 -2
  47. package/assignee/field.d.ts +2 -2
  48. package/assignee/index.js +87 -87
  49. package/assignee/layout.d.ts +2 -2
  50. package/assignee/picker.d.ts +1 -1
  51. package/avatar/index.js +25 -25
  52. package/avatar/index.view.d.ts +1 -1
  53. package/brush-range/component.d.ts +1 -1
  54. package/brush-range/component.js +30 -30
  55. package/buttons/delete-button.js +1 -1
  56. package/buttons/remove-button.d.ts +1 -1
  57. package/buttons/remove-button.js +3 -3
  58. package/buttons/svg-button.d.ts +1 -1
  59. package/buttons/svg-button.js +35 -35
  60. package/calendar/calendar.d.ts +1 -1
  61. package/calendar/calendar.js +1 -1
  62. package/calendar/caption.d.ts +1 -1
  63. package/calendar/day.d.ts +1 -1
  64. package/calendar/day.js +4 -4
  65. package/calendar/header.d.ts +1 -1
  66. package/calendar/header.js +35 -35
  67. package/calendar/index.js +2 -2
  68. package/calendar/month-grid.d.ts +1 -1
  69. package/calendar/month-grid.js +37 -37
  70. package/calendar/picker.d.ts +1 -1
  71. package/calendar/types.d.ts +1 -1
  72. package/calendar/year-grid.d.ts +1 -1
  73. package/calendar/year-grid.js +12 -12
  74. package/checkbox/index.d.ts +2 -2
  75. package/checkbox/index.js +9 -9
  76. package/choice-chips/index.d.ts +1 -1
  77. package/choice-chips/index.js +1 -1
  78. package/color-palette/color-palette.d.ts +1 -1
  79. package/color-palette/color-palette.js +1 -1
  80. package/color-palette/color-picker.d.ts +1 -1
  81. package/color-palette/color-picker.js +2 -2
  82. package/component-catalog.d.ts +19 -19
  83. package/control-presentation.js +18 -18
  84. package/controls.d.ts +4 -4
  85. package/controls.js +1 -1
  86. package/core/editor-commit.d.ts +1 -1
  87. package/core/editor-popup.d.ts +1 -1
  88. package/core/editor-popup.js +1 -1
  89. package/date-time/date-control.d.ts +1 -1
  90. package/date-time/field.d.ts +2 -2
  91. package/date-time/index.js +1 -1
  92. package/date-time/picker.d.ts +1 -1
  93. package/date-time/time-control.d.ts +1 -1
  94. package/date-time/time-selection.d.ts +1 -1
  95. package/date-time/types.d.ts +1 -1
  96. package/dialog/dialog-action-footer.view.d.ts +1 -1
  97. package/dialog/dialog.dom.js +52 -52
  98. package/dialog/dialog.parts.d.ts +18 -18
  99. package/dialog/dialog.parts.js +1 -1
  100. package/dialog/dialog.preact.d.ts +1 -1
  101. package/dialog/dialog.preact.js +6 -6
  102. package/distribution-chart/area-chart.d.ts +1 -1
  103. package/distribution-chart/area-chart.js +25 -25
  104. package/distribution-chart/bar-chart.d.ts +1 -1
  105. package/distribution-chart/bar-chart.js +6 -6
  106. package/distribution-chart/chart-frame.d.ts +1 -1
  107. package/distribution-chart/index.d.ts +1 -1
  108. package/distribution-chart/index.js +6 -6
  109. package/distribution-chart/line-chart.d.ts +1 -1
  110. package/distribution-chart/line-chart.js +9 -9
  111. package/distribution-chart/types.d.ts +1 -1
  112. package/dropdown/content.d.ts +1 -1
  113. package/dropdown/content.js +83 -82
  114. package/dropdown/dropdown.service.d.ts +1 -1
  115. package/dropdown/dropdown.service.js +9 -9
  116. package/dropdown/index.js +1 -1
  117. package/dropdown/lookup-field.d.ts +1 -1
  118. package/dropdown/lookup-field.js +41 -41
  119. package/dropdown/popup.d.ts +1 -1
  120. package/dropdown/popup.js +17 -16
  121. package/duration/controls.d.ts +1 -1
  122. package/duration/index.d.ts +2 -2
  123. package/duration/index.js +1 -1
  124. package/editor-actions.d.ts +1 -1
  125. package/editor-actions.js +21 -20
  126. package/editor-layout/index.d.ts +1 -1
  127. package/editor-layout/index.js +27 -27
  128. package/field-configurator.d.ts +1 -1
  129. package/field-configurator.js +93 -93
  130. package/field-reorder.hook.js +32 -32
  131. package/filter/filters/slider/preact.js +3 -3
  132. package/filter/filters/slider/single.d.ts +1 -1
  133. package/filter/filters/slider/single.js +23 -23
  134. package/filter-badge.d.ts +1 -1
  135. package/filter-badge.js +23 -22
  136. package/filter-controls.d.ts +1 -1
  137. package/filter-controls.js +31 -31
  138. package/form-controls/index.js +20 -20
  139. package/form-controls/presentation.d.ts +1 -1
  140. package/form-controls/presentation.js +44 -44
  141. package/formatting/comparison-preview.d.ts +1 -1
  142. package/formatting/control-tooltip.d.ts +1 -1
  143. package/formatting/icon-controls.d.ts +1 -1
  144. package/formatting/index.js +99 -98
  145. package/formatting/inspector-section.d.ts +1 -1
  146. package/formatting/typography-controls.d.ts +1 -1
  147. package/framework-mount.d.ts +1 -1
  148. package/framework.js +19 -19
  149. package/icons/icon.d.ts +1 -1
  150. package/icons/icon.js +1 -1
  151. package/legend.d.ts +1 -1
  152. package/legend.js +12 -12
  153. package/masked-input/index.d.ts +1 -1
  154. package/masked-input/index.js +109 -109
  155. package/native-control.d.ts +11 -11
  156. package/native-control.js +12 -12
  157. package/native.js +39 -39
  158. package/number-input/index.d.ts +1 -1
  159. package/number-input/index.js +1 -1
  160. package/package.json +1 -2
  161. package/pdf-viewer/component.d.ts +1 -1
  162. package/pdf-viewer/controller.js +1 -1
  163. package/pdf-viewer/header.d.ts +1 -1
  164. package/pdf-viewer/index.js +13 -13
  165. package/pdf-viewer/search-bar.d.ts +1 -1
  166. package/pdf-viewer/status.d.ts +1 -1
  167. package/pdf-viewer/toolbar.d.ts +1 -1
  168. package/pickers.d.ts +1 -1
  169. package/preact-mount.d.ts +1 -1
  170. package/preact-mount.js +1 -1
  171. package/preact.js +14 -14
  172. package/rating-choice.d.ts +1 -1
  173. package/rating-choice.js +1 -1
  174. package/react-adapter.d.ts +1 -1
  175. package/react.js +19 -19
  176. package/reorder-list.d.ts +1 -1
  177. package/reorder-list.js +1 -1
  178. package/resource-picker/resource-picker-avatar.d.ts +1 -1
  179. package/resource-picker/resource-picker-avatar.js +14 -14
  180. package/resource-picker/resource-picker-option.d.ts +1 -1
  181. package/resource-picker/resource-picker-option.js +28 -28
  182. package/resource-picker/resource-picker-popup.d.ts +1 -1
  183. package/resource-picker/resource-picker-popup.js +3 -3
  184. package/resource-picker/resource-picker.d.ts +1 -1
  185. package/resource-picker/resource-picker.js +88 -88
  186. package/rich-text/index.d.ts +1 -1
  187. package/rich-text/index.js +1 -1
  188. package/rich-text/toolbar.d.ts +1 -1
  189. package/search-input/index.js +12 -12
  190. package/segmented-switch/index.d.ts +1 -1
  191. package/segmented-switch/index.js +1 -1
  192. package/status-feedback/render.d.ts +2 -2
  193. package/status-feedback/render.js +13 -13
  194. package/surfaces.js +34 -34
  195. package/svelte.js +2 -2
  196. package/switch/index.js +15 -15
  197. package/time-grid.d.ts +1 -1
  198. package/time-grid.js +58 -58
  199. package/timeline-track/component.d.ts +1 -1
  200. package/timeline-track/index.js +75 -75
  201. package/vue-adapter.d.ts +1 -1
  202. package/vue.d.ts +116 -116
  203. package/vue.js +121 -121
  204. package/_chunks/calendar-BsDxCYhI.js +0 -248
  205. package/_chunks/chart-frame-BvxbmEU9.js +0 -126
  206. package/_chunks/choice-chips-0HfOnK_4.js +0 -110
  207. package/_chunks/color-picker-BRv-__AM.js +0 -138
  208. package/_chunks/component-D4PH5UZT.js +0 -859
  209. package/_chunks/date-time-DjucJmbc.js +0 -769
  210. package/_chunks/dialog.parts-Dt3KinUz.js +0 -134
  211. package/_chunks/duration-BCaktcvz.js +0 -270
  212. package/_chunks/editor-commit-D6Rf5rGz.js +0 -12
  213. package/_chunks/framework-mount-BKIOsvY-.js +0 -54
  214. package/_chunks/mount-0-8opf1j.js +0 -90
  215. package/_chunks/native.view-8q_nwQ7x.js +0 -32
  216. package/_chunks/picker-oazJ7sO_.js +0 -121
  217. package/_chunks/reorder-list-BV3kZXso.js +0 -59
  218. package/_chunks/request-trail-D0oVzdRd.js +0 -347
@@ -1,4 +1,4 @@
1
- import { h } from 'preact';
1
+ import { h } from '../_vendor/preact/src/index';
2
2
  import { DeleteButton } from './delete-button';
3
3
  export type RemoveButtonProps = Parameters<typeof DeleteButton>[0] & {
4
4
  /** Compact hit area for an action embedded inside a selected-value chip. */
@@ -1,8 +1,8 @@
1
- import { t as e } from "../_chunks/delete-button-DnpmDNEJ.js";
2
- import { jsx as t } from "preact/jsx-runtime";
1
+ import { t as e } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
2
+ import { t } from "../_chunks/delete-button-Bblyah10.js";
3
3
  //#region src/buttons/remove-button.tsx
4
4
  function n({ compact: n = !1, className: r = "", ...i }) {
5
- return /* @__PURE__ */ t(e, {
5
+ return /* @__PURE__ */ e(t, {
6
6
  ...i,
7
7
  className: `rv-remove-button${n ? " rv-remove-button--compact" : ""} ${r}`
8
8
  });
@@ -1,4 +1,4 @@
1
- import { h, ComponentChildren, JSX } from 'preact';
1
+ import { h, ComponentChildren, JSX } from '../_vendor/preact/src/index';
2
2
  export interface SvgButtonProps extends Omit<JSX.IntrinsicElements['button'], 'className' | 'children'> {
3
3
  readonly label: string;
4
4
  readonly busy?: boolean;
@@ -1,64 +1,64 @@
1
- import { SvgIcon as e } from "../icons/icon.js";
2
- import { controlClassName as t } from "../control-attributes.js";
3
- import { ButtonControl as n } from "../native-control.js";
4
- import { n as r } from "../_chunks/control-tooltip-BCNzQCXE.js";
5
- import { jsx as i, jsxs as a } from "preact/jsx-runtime";
1
+ import { t as e } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
2
+ import { SvgIcon as t } from "../icons/icon.js";
3
+ import { controlClassName as n } from "../control-attributes.js";
4
+ import { ButtonControl as r } from "../native-control.js";
5
+ import { n as i } from "../_chunks/control-tooltip-ztgmsG7H.js";
6
6
  //#region src/buttons/svg-button.tsx
7
- function o({ label: o, variant: s, icon: c, visibleLabel: l, className: u, iconClassName: d, labelClassName: f, children: p, iconContent: m, badge: h, badgeClassName: g = "", class: _, disabled: v, ...y }) {
8
- let b = r(o, !0, {
7
+ function a({ label: a, variant: o, icon: s, visibleLabel: c, className: l, iconClassName: u, labelClassName: d, children: f, iconContent: p, badge: m, badgeClassName: h = "", class: g, disabled: _, ...v }) {
8
+ let y = i(a, !0, {
9
9
  className: "rv-control-tooltip",
10
10
  placement: "above"
11
11
  });
12
- return /* @__PURE__ */ a(n, {
12
+ return /* @__PURE__ */ e(r, {
13
13
  type: "button",
14
- "aria-label": h === void 0 ? o : `${o} ${h}`,
15
- ...y,
16
- disabled: v,
17
- ...b.triggerProps,
18
- "aria-describedby": [y["aria-describedby"], b.id].filter(Boolean).join(" "),
14
+ "aria-label": m === void 0 ? a : `${a} ${m}`,
15
+ ...v,
16
+ disabled: _,
17
+ ...y.triggerProps,
18
+ "aria-describedby": [v["aria-describedby"], y.id].filter(Boolean).join(" "),
19
19
  onFocus: (e) => {
20
- b.triggerProps.onFocus(e), y.onFocus?.(e);
20
+ y.triggerProps.onFocus(e), v.onFocus?.(e);
21
21
  },
22
22
  onBlur: (e) => {
23
- b.triggerProps.onBlur(), y.onBlur?.(e);
23
+ y.triggerProps.onBlur(), v.onBlur?.(e);
24
24
  },
25
25
  onMouseEnter: (e) => {
26
- b.triggerProps.onMouseEnter(e), y.onMouseEnter?.(e);
26
+ y.triggerProps.onMouseEnter(e), v.onMouseEnter?.(e);
27
27
  },
28
28
  onMouseLeave: (e) => {
29
- b.triggerProps.onMouseLeave(), y.onMouseLeave?.(e);
29
+ y.triggerProps.onMouseLeave(), v.onMouseLeave?.(e);
30
30
  },
31
31
  onPointerDown: (e) => {
32
- b.triggerProps.onPointerDown(e), y.onPointerDown?.(e);
32
+ y.triggerProps.onPointerDown(e), v.onPointerDown?.(e);
33
33
  },
34
34
  onPointerCancel: (e) => {
35
- b.triggerProps.onPointerCancel(), y.onPointerCancel?.(e);
35
+ y.triggerProps.onPointerCancel(), v.onPointerCancel?.(e);
36
36
  },
37
37
  onKeyDown: (e) => {
38
- b.triggerProps.onKeyDown(e), y.onKeyDown?.(e);
38
+ y.triggerProps.onKeyDown(e), v.onKeyDown?.(e);
39
39
  },
40
40
  onClick: (e) => {
41
- b.hide(), y.onClick?.(e);
41
+ y.hide(), v.onClick?.(e);
42
42
  },
43
- class: t(u ?? (s ? "" : "rv-btn-ghost"), s && `rv-btn-${s}`, _, "rv-icon-action", !l && "rv-btn-icon"),
43
+ class: n(l ?? (o ? "" : "rv-btn-ghost"), o && `rv-btn-${o}`, g, "rv-icon-action", !c && "rv-btn-icon"),
44
44
  children: [
45
- c ? /* @__PURE__ */ i(e, {
46
- svg: c,
47
- className: d
48
- }) : m,
49
- l ? /* @__PURE__ */ i("span", {
50
- class: f,
51
- children: l
45
+ s ? /* @__PURE__ */ e(t, {
46
+ svg: s,
47
+ className: u
48
+ }) : p,
49
+ c ? /* @__PURE__ */ e("span", {
50
+ class: d,
51
+ children: c
52
52
  }) : null,
53
- h !== void 0 && /* @__PURE__ */ i("span", {
54
- class: `rv-badge ${g}`,
53
+ m !== void 0 && /* @__PURE__ */ e("span", {
54
+ class: `rv-badge ${h}`,
55
55
  "aria-hidden": "true",
56
- children: h
56
+ children: m
57
57
  }),
58
- p,
59
- b.tooltip
58
+ f,
59
+ y.tooltip
60
60
  ]
61
61
  });
62
62
  }
63
63
  //#endregion
64
- export { o as SvgButton };
64
+ export { a as SvgButton };
@@ -1,3 +1,3 @@
1
- import { h } from 'preact';
1
+ import { h } from '../_vendor/preact/src/index';
2
2
  import { CalendarProps } from './types';
3
3
  export declare function Calendar({ locale, weekStartsOn, showOutsideDays, allowOutsideMonthSelection, fixedWeeks, showTodayButton, showHeader, showNavigation, showPreviousButton, showNextButton, showMonthLabel, showWeekdays, enableYearView, translations, ...props }: CalendarProps): h.JSX.Element;
@@ -1 +1 @@
1
- export { t as Calendar } from "../_chunks/calendar-BsDxCYhI.js";
1
+ export { t as Calendar } from "../_chunks/calendar-CpaUK7w1.js";
@@ -1,4 +1,4 @@
1
- import { h } from 'preact';
1
+ import { h } from '../_vendor/preact/src/index';
2
2
  import { ISODateString, DisplayCalendarSystem } from '../_shared/dates/index';
3
3
  import { CalendarProps, CalendarTranslations } from './types';
4
4
  export declare function CalendarCaption({ month, system, locale, layout, start, end, disabled, labels, onChange, }: {
package/calendar/day.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { h, ComponentChildren } from 'preact';
1
+ import { h, ComponentChildren } from '../_vendor/preact/src/index';
2
2
  import { ISODateString } from '../_shared/dates/index';
3
3
  export interface CalendarDayProps {
4
4
  readonly date: ISODateString;
package/calendar/day.js CHANGED
@@ -1,5 +1,5 @@
1
- import { c as e } from "../_chunks/iso-B0YHBK7m.js";
2
- import { jsx as t } from "preact/jsx-runtime";
1
+ import { t as e } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
2
+ import { c as t } from "../_chunks/iso-B0YHBK7m.js";
3
3
  //#region src/calendar/day.tsx
4
4
  function n(n) {
5
5
  let r = [
@@ -15,7 +15,7 @@ function n(n) {
15
15
  n.previewStart && "preview-start",
16
16
  n.previewEnd && "preview-end"
17
17
  ].filter(Boolean).join(" ");
18
- return /* @__PURE__ */ t("button", {
18
+ return /* @__PURE__ */ e("button", {
19
19
  ref: (e) => n.setRef(n.date, e),
20
20
  type: "button",
21
21
  role: "gridcell",
@@ -36,7 +36,7 @@ function n(n) {
36
36
  onMouseLeave: () => n.onPreview(),
37
37
  onKeyDown: (e) => n.onKeyDown(e, n.date),
38
38
  onClick: () => n.onSelect(n.date),
39
- children: n.content ?? e(n.date).getUTCDate()
39
+ children: n.content ?? t(n.date).getUTCDate()
40
40
  });
41
41
  }
42
42
  //#endregion
@@ -1,4 +1,4 @@
1
- import { h, ComponentChildren } from 'preact';
1
+ import { h, ComponentChildren } from '../_vendor/preact/src/index';
2
2
  import { ISODateString } from '../_shared/dates/index';
3
3
  export declare function CalendarHeader({ label, previousLabel, nextLabel, labelAction, caption, showLabel, showPrevious, showNext, previousDisabled, nextDisabled, onPrevious, onNext, }: {
4
4
  label: string;
@@ -1,61 +1,61 @@
1
- import { t as e } from "../_chunks/chevron-left-D0nc4Z5S.js";
2
- import { t } from "../_chunks/chevron-right-sxHQMSkq.js";
3
- import { jsx as n, jsxs as r } from "preact/jsx-runtime";
1
+ import { t as e } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
2
+ import { t } from "../_chunks/chevron-left-D0nc4Z5S.js";
3
+ import { t as n } from "../_chunks/chevron-right-sxHQMSkq.js";
4
4
  //#region src/calendar/header.tsx
5
- function i({ label: i, previousLabel: a, nextLabel: o, labelAction: s, caption: c, showLabel: l = !0, showPrevious: u = !0, showNext: d = !0, previousDisabled: f = !1, nextDisabled: p = !1, onPrevious: m, onNext: h }) {
6
- return /* @__PURE__ */ r("header", {
5
+ function r({ label: r, previousLabel: i, nextLabel: a, labelAction: o, caption: s, showLabel: c = !0, showPrevious: l = !0, showNext: u = !0, previousDisabled: d = !1, nextDisabled: f = !1, onPrevious: p, onNext: m }) {
6
+ return /* @__PURE__ */ e("header", {
7
7
  class: "revo-calendar__header",
8
8
  children: [
9
- u ? /* @__PURE__ */ n("button", {
9
+ l ? /* @__PURE__ */ e("button", {
10
10
  type: "button",
11
- "aria-label": a,
12
- disabled: f,
13
- onClick: m,
14
- children: /* @__PURE__ */ n("span", {
11
+ "aria-label": i,
12
+ disabled: d,
13
+ onClick: p,
14
+ children: /* @__PURE__ */ e("span", {
15
15
  "aria-hidden": "true",
16
- dangerouslySetInnerHTML: { __html: e }
16
+ dangerouslySetInnerHTML: { __html: t }
17
17
  })
18
- }) : /* @__PURE__ */ n("span", { "aria-hidden": "true" }),
19
- l && c ? c : l && s ? /* @__PURE__ */ n("button", {
18
+ }) : /* @__PURE__ */ e("span", { "aria-hidden": "true" }),
19
+ c && s ? s : c && o ? /* @__PURE__ */ e("button", {
20
20
  type: "button",
21
21
  class: "revo-calendar__month-label revo-calendar__month-label-button",
22
- "aria-label": s.ariaLabel,
23
- onClick: s.onClick,
24
- children: /* @__PURE__ */ n("span", {
22
+ "aria-label": o.ariaLabel,
23
+ onClick: o.onClick,
24
+ children: /* @__PURE__ */ e("span", {
25
25
  "aria-live": "polite",
26
- children: i
26
+ children: r
27
27
  })
28
- }) : l ? /* @__PURE__ */ n("strong", {
28
+ }) : c ? /* @__PURE__ */ e("strong", {
29
29
  class: "revo-calendar__month-label",
30
30
  "aria-live": "polite",
31
- children: i
32
- }) : /* @__PURE__ */ n("span", { "aria-hidden": "true" }),
33
- d ? /* @__PURE__ */ n("button", {
31
+ children: r
32
+ }) : /* @__PURE__ */ e("span", { "aria-hidden": "true" }),
33
+ u ? /* @__PURE__ */ e("button", {
34
34
  type: "button",
35
- "aria-label": o,
36
- disabled: p,
37
- onClick: h,
38
- children: /* @__PURE__ */ n("span", {
35
+ "aria-label": a,
36
+ disabled: f,
37
+ onClick: m,
38
+ children: /* @__PURE__ */ e("span", {
39
39
  "aria-hidden": "true",
40
- dangerouslySetInnerHTML: { __html: t }
40
+ dangerouslySetInnerHTML: { __html: n }
41
41
  })
42
- }) : /* @__PURE__ */ n("span", { "aria-hidden": "true" })
42
+ }) : /* @__PURE__ */ e("span", { "aria-hidden": "true" })
43
43
  ]
44
44
  });
45
45
  }
46
- function a({ dates: e, locale: t, format: i, weekNumberLabel: a }) {
47
- return /* @__PURE__ */ r("div", {
46
+ function i({ dates: t, locale: n, format: r, weekNumberLabel: i }) {
47
+ return /* @__PURE__ */ e("div", {
48
48
  class: "revo-calendar__weekdays",
49
49
  role: "row",
50
- children: [a && /* @__PURE__ */ n("span", {
50
+ children: [i && /* @__PURE__ */ e("span", {
51
51
  role: "columnheader",
52
- "aria-label": a,
52
+ "aria-label": i,
53
53
  children: "#"
54
- }), e.map((e) => /* @__PURE__ */ n("span", {
54
+ }), t.map((t) => /* @__PURE__ */ e("span", {
55
55
  role: "columnheader",
56
- children: i(e, t)
57
- }, e))]
56
+ children: r(t, n)
57
+ }, t))]
58
58
  });
59
59
  }
60
60
  //#endregion
61
- export { i as CalendarHeader, a as CalendarWeekdays };
61
+ export { r as CalendarHeader, i as CalendarWeekdays };
package/calendar/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { DEFAULT_CALENDAR_TRANSLATIONS as e } from "./translations.js";
2
2
  import { a as t, i as n, n as r, o as i, r as a, t as o } from "../_chunks/model-mPO2tG2f.js";
3
3
  import { CalendarHeader as s, CalendarWeekdays as c } from "./header.js";
4
- import { t as l } from "../_chunks/calendar-BsDxCYhI.js";
4
+ import { t as l } from "../_chunks/calendar-CpaUK7w1.js";
5
5
  import { CalendarDay as u } from "./day.js";
6
6
  import { CalendarMonthGrid as d } from "./month-grid.js";
7
7
  import { CalendarYearGrid as f } from "./year-grid.js";
8
- import { t as p } from "../_chunks/picker-oazJ7sO_.js";
8
+ import { t as p } from "../_chunks/picker-DpP7iQLA.js";
9
9
  export { l as Calendar, u as CalendarDay, s as CalendarHeader, d as CalendarMonthGrid, p as CalendarPicker, c as CalendarWeekdays, f as CalendarYearGrid, e as DEFAULT_CALENDAR_TRANSLATIONS, o as createCalendarMonth, r as isCalendarDateDisabled, a as isCalendarMonthDisabled, n as isDateInCalendarRange, t as moveCalendarFocus, i as orderCalendarRange };
@@ -1,4 +1,4 @@
1
- import { h, ComponentChildren } from 'preact';
1
+ import { h, ComponentChildren } from '../_vendor/preact/src/index';
2
2
  import { ISODateString, DisplayCalendarSystem } from '../_shared/dates/index';
3
3
  import { CalendarDateRange, CalendarDayContext } from './types';
4
4
  export declare function CalendarMonthGrid({ dates, system, selectedDates, visibleMonths, weekNumber, weekNumberLabel, month, focusedDate, referenceDate, selection, preview, previewInvalid, previewDescriptionId, showOutsideDays, allowOutsideMonthSelection, dayClassName, renderDay, isDisabled, formatDayLabel, setDayRef, onFocus, onPreview, onKeyDown, onSelect, }: {
@@ -1,56 +1,56 @@
1
- import { f as e, i as t } from "../_chunks/model-mPO2tG2f.js";
2
- import { CalendarDay as n } from "./day.js";
3
- import { jsx as r, jsxs as i } from "preact/jsx-runtime";
1
+ import { t as e } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
2
+ import { f as t, i as n } from "../_chunks/model-mPO2tG2f.js";
3
+ import { CalendarDay as r } from "./day.js";
4
4
  //#region src/calendar/month-grid.tsx
5
- function a({ dates: a, system: o = "gregory", selectedDates: s, visibleMonths: c, weekNumber: l, weekNumberLabel: u = "Week number", month: d, focusedDate: f, referenceDate: p, selection: m, preview: h, previewInvalid: g, previewDescriptionId: _, showOutsideDays: v, allowOutsideMonthSelection: y, dayClassName: b, renderDay: x, isDisabled: S, formatDayLabel: C, setDayRef: w, onFocus: T, onPreview: E, onKeyDown: D, onSelect: O }) {
6
- return /* @__PURE__ */ r("div", {
5
+ function i({ dates: i, system: a = "gregory", selectedDates: o, visibleMonths: s, weekNumber: c, weekNumberLabel: l = "Week number", month: u, focusedDate: d, referenceDate: f, selection: p, preview: m, previewInvalid: h, previewDescriptionId: g, showOutsideDays: _, allowOutsideMonthSelection: v, dayClassName: y, renderDay: b, isDisabled: x, formatDayLabel: S, setDayRef: C, onFocus: w, onPreview: T, onKeyDown: E, onSelect: D }) {
6
+ return /* @__PURE__ */ e("div", {
7
7
  class: "revo-calendar__month-grid",
8
- children: Array.from({ length: a.length / 7 }, (k, A) => /* @__PURE__ */ i("div", {
8
+ children: Array.from({ length: i.length / 7 }, (O, k) => /* @__PURE__ */ e("div", {
9
9
  class: "revo-calendar__week",
10
10
  role: "row",
11
- "aria-hidden": !l && a.slice(A * 7, A * 7 + 7).every((t) => e(t, o) !== d && (!v || c?.includes(e(t, o)))) || void 0,
12
- children: [l && /* @__PURE__ */ r("span", {
11
+ "aria-hidden": !c && i.slice(k * 7, k * 7 + 7).every((e) => t(e, a) !== u && (!_ || s?.includes(t(e, a)))) || void 0,
12
+ children: [c && /* @__PURE__ */ e("span", {
13
13
  class: "revo-calendar__week-number",
14
14
  role: "rowheader",
15
- "aria-label": `${u} ${l(a[A * 7])}`,
16
- children: l(a[A * 7])
17
- }), a.slice(A * 7, A * 7 + 7).map((i) => {
18
- let a = e(i, o) !== d, l = a && (!v || !!c?.includes(e(i, o))), u = S(i) || a && !y, k = {
19
- outside: a,
20
- disabled: u,
21
- selected: !!s?.includes(i) || t(i, m),
22
- previewed: t(i, h),
23
- today: i === p
15
+ "aria-label": `${l} ${c(i[k * 7])}`,
16
+ children: c(i[k * 7])
17
+ }), i.slice(k * 7, k * 7 + 7).map((i) => {
18
+ let c = t(i, a) !== u, l = c && (!_ || !!s?.includes(t(i, a))), O = x(i) || c && !v, k = {
19
+ outside: c,
20
+ disabled: O,
21
+ selected: !!o?.includes(i) || n(i, p),
22
+ previewed: n(i, m),
23
+ today: i === f
24
24
  };
25
- return /* @__PURE__ */ r(n, {
25
+ return /* @__PURE__ */ e(r, {
26
26
  date: i,
27
- label: C(i),
28
- className: typeof b == "function" ? b(i, k) : b,
29
- outside: a,
27
+ label: S(i),
28
+ className: typeof y == "function" ? y(i, k) : y,
29
+ outside: c,
30
30
  hidden: l,
31
- disabled: u,
32
- focused: i === f,
31
+ disabled: O,
32
+ focused: i === d,
33
33
  selected: k.selected,
34
34
  previewed: k.previewed,
35
- previewInvalid: k.previewed && g,
36
- previewDescriptionId: _,
37
- rangeStart: s?.includes(i) || m?.from === i,
38
- rangeEnd: s?.includes(i) || m?.to === i,
39
- previewStart: h?.from === i,
40
- previewEnd: h?.to === i,
35
+ previewInvalid: k.previewed && h,
36
+ previewDescriptionId: g,
37
+ rangeStart: o?.includes(i) || p?.from === i,
38
+ rangeEnd: o?.includes(i) || p?.to === i,
39
+ previewStart: m?.from === i,
40
+ previewEnd: m?.to === i,
41
41
  today: k.today,
42
- content: x?.(i, k),
42
+ content: b?.(i, k),
43
43
  setRef: (e, t) => {
44
- a || w(e, t);
44
+ c || C(e, t);
45
45
  },
46
- onFocus: T,
47
- onPreview: E,
48
- onKeyDown: D,
49
- onSelect: O
46
+ onFocus: w,
47
+ onPreview: T,
48
+ onKeyDown: E,
49
+ onSelect: D
50
50
  }, i);
51
51
  })]
52
- }, A))
52
+ }, k))
53
53
  });
54
54
  }
55
55
  //#endregion
56
- export { a as CalendarMonthGrid };
56
+ export { i as CalendarMonthGrid };
@@ -1,4 +1,4 @@
1
- import { h } from 'preact';
1
+ import { h } from '../_vendor/preact/src/index';
2
2
  import { ISODateString } from '../_shared/dates/index';
3
3
  import { CalendarProps } from './types';
4
4
  export interface CalendarRangeSelection {
@@ -1,4 +1,4 @@
1
- import { ComponentChildren } from 'preact';
1
+ import { ComponentChildren } from '../_vendor/preact/src/index';
2
2
  import { DisplayCalendarSystem, ISODateString } from '../_shared/dates/index';
3
3
  export type CalendarWeekStart = 0 | 1 | 2 | 3 | 4 | 5 | 6;
4
4
  export type CalendarView = 'month' | 'year';
@@ -1,4 +1,4 @@
1
- import { h } from 'preact';
1
+ import { h } from '../_vendor/preact/src/index';
2
2
  import { DisplayCalendarSystem, ISODateString } from '../_shared/dates/index';
3
3
  export declare function CalendarYearGrid({ month, system, referenceDate, minDate, maxDate, isMonthDisabled, locale, ariaLabel, onSelect, onEscape, }: {
4
4
  month: ISODateString;
@@ -1,31 +1,31 @@
1
- import { f as e, l as t, r as n, u as r } from "../_chunks/model-mPO2tG2f.js";
2
- import { jsx as i } from "preact/jsx-runtime";
1
+ import { t as e } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
2
+ import { f as t, l as n, r, u as i } from "../_chunks/model-mPO2tG2f.js";
3
3
  //#region src/calendar/year-grid.tsx
4
4
  function a({ month: a, system: o = "gregory", referenceDate: s, minDate: c, maxDate: l, isMonthDisabled: u, locale: d, ariaLabel: f, onSelect: p, onEscape: m }) {
5
- let h = t(a, o);
6
- return /* @__PURE__ */ i("div", {
5
+ let h = n(a, o);
6
+ return /* @__PURE__ */ e("div", {
7
7
  class: "revo-calendar__year-grid",
8
8
  role: "group",
9
9
  "aria-label": f,
10
10
  onKeyDown: (e) => {
11
11
  e.key === "Escape" && (e.preventDefault(), m());
12
12
  },
13
- children: h.map((t) => {
14
- let f = n(t, {
13
+ children: h.map((n) => {
14
+ let f = r(n, {
15
15
  minDate: c,
16
16
  maxDate: l,
17
17
  isMonthDisabled: u,
18
18
  calendarSystem: o
19
- }), m = t === a, h = s ? e(s, o) === t : !1;
20
- return /* @__PURE__ */ i("button", {
19
+ }), m = n === a, h = s ? t(s, o) === n : !1;
20
+ return /* @__PURE__ */ e("button", {
21
21
  type: "button",
22
22
  class: `revo-calendar__month${m ? " active" : ""}${h ? " current" : ""}`,
23
- "data-calendar-month": t,
23
+ "data-calendar-month": n,
24
24
  "aria-pressed": m ? "true" : "false",
25
25
  disabled: f,
26
- onClick: () => p(t),
27
- children: r(t, d, { month: "long" }, o)
28
- }, t);
26
+ onClick: () => p(n),
27
+ children: i(n, d, { month: "long" }, o)
28
+ }, n);
29
29
  })
30
30
  });
31
31
  }
@@ -3,8 +3,8 @@ export type SharedCheckboxAttributes = Record<string, unknown> & {
3
3
  class?: string;
4
4
  className?: string;
5
5
  };
6
- type PreactH = typeof import('preact').h;
7
- type PreactVNode = import('preact').VNode;
6
+ type PreactH = typeof import('../_vendor/preact/src/index').h;
7
+ type PreactVNode = import('../_vendor/preact/src/index').VNode;
8
8
  export type CheckboxProps = Omit<SharedCheckboxAttributes, 'onChange'> & {
9
9
  checked?: boolean;
10
10
  indeterminate?: boolean;
package/checkbox/index.js CHANGED
@@ -1,25 +1,25 @@
1
- import { renderControl as e } from "../control-presentation.js";
2
- import { h as t } from "preact";
1
+ import { c as e } from "../_chunks/preact.module-BBM36DnO.js";
2
+ import { renderControl as t } from "../control-presentation.js";
3
3
  //#region src/checkbox/index.ts
4
4
  var n = "rv-checkbox";
5
- function r(t, r = {}) {
5
+ function r(e, r = {}) {
6
6
  let { class: i, className: a, ...o } = r, s = [
7
7
  n,
8
8
  i,
9
9
  a
10
10
  ].filter(Boolean).join(" ");
11
- return e(t, "input", {
11
+ return t(e, "input", {
12
12
  ...o,
13
13
  class: s,
14
14
  type: "checkbox"
15
15
  });
16
16
  }
17
- function i({ checked: e, indeterminate: n = !1, label: i, description: a, ariaLabel: o, controlClassName: s = "", inputRef: c, onChange: l, ...u }) {
18
- let d = r(t, {
17
+ function i({ checked: t, indeterminate: n = !1, label: i, description: a, ariaLabel: o, controlClassName: s = "", inputRef: c, onChange: l, ...u }) {
18
+ let d = r(e, {
19
19
  ...u,
20
- checked: e,
20
+ checked: t,
21
21
  "aria-label": o,
22
- "aria-checked": n ? "mixed" : !!e,
22
+ "aria-checked": n ? "mixed" : !!t,
23
23
  ref: (e) => {
24
24
  e && (e.indeterminate = n), c?.(e);
25
25
  },
@@ -27,7 +27,7 @@ function i({ checked: e, indeterminate: n = !1, label: i, description: a, ariaLa
27
27
  l?.(e.currentTarget.checked, e);
28
28
  }
29
29
  });
30
- return i === void 0 && a === void 0 ? d : t("label", { class: `rv-checkbox-control ${s}`.trim() }, [d, t("span", { class: "rv-checkbox-control__copy" }, [i === void 0 ? null : t("span", { class: "rv-checkbox-control__label" }, i), a === void 0 ? null : t("span", { class: "rv-checkbox-control__description" }, a)])]);
30
+ return i === void 0 && a === void 0 ? d : e("label", { class: `rv-checkbox-control ${s}`.trim() }, [d, e("span", { class: "rv-checkbox-control__copy" }, [i === void 0 ? null : e("span", { class: "rv-checkbox-control__label" }, i), a === void 0 ? null : e("span", { class: "rv-checkbox-control__description" }, a)])]);
31
31
  }
32
32
  //#endregion
33
33
  export { i as Checkbox, n as SHARED_CHECKBOX_CLASS, r as renderCheckbox };
@@ -1,4 +1,4 @@
1
- import { h, ComponentChildren, JSX } from 'preact';
1
+ import { h, ComponentChildren, JSX } from '../_vendor/preact/src/index';
2
2
  export type ChoiceChipValue = string | number;
3
3
  export type ChoiceChipOption<T extends ChoiceChipValue = ChoiceChipValue> = {
4
4
  value: T;
@@ -1 +1 @@
1
- export { t as ChoiceChip, n as ChoiceChipInfoButton, r as ChoiceChips } from "../_chunks/choice-chips-0HfOnK_4.js";
1
+ export { t as ChoiceChip, n as ChoiceChipInfoButton, r as ChoiceChips } from "../_chunks/choice-chips-Cs4D-3nH.js";
@@ -1,4 +1,4 @@
1
- import { h } from 'preact';
1
+ import { h } from '../_vendor/preact/src/index';
2
2
  import { ColorPaletteOption, ColorPaletteValue } from './palette';
3
3
  export * from './palette';
4
4
  export interface ColorPaletteProps {
@@ -1,3 +1,3 @@
1
- import { t as e } from "../_chunks/color-palette-BmZ7kH9R.js";
1
+ import { t as e } from "../_chunks/color-palette-BBMFmUNA.js";
2
2
  import { DEFAULT_COLOR_PALETTE_OPTIONS as t } from "./palette.js";
3
3
  export { e as ColorPalette, t as DEFAULT_COLOR_PALETTE_OPTIONS };
@@ -1,4 +1,4 @@
1
- import { h } from 'preact';
1
+ import { h } from '../_vendor/preact/src/index';
2
2
  export declare function ColorPicker({ label, value, defaultLabel, customLabel, customHexLabel, invalidColor, colorLabels, optional, allowHexInput, disabled, onChange, }: {
3
3
  readonly label: string;
4
4
  readonly value?: string;
@@ -1,3 +1,3 @@
1
- import { n as e } from "../_chunks/color-palette-BmZ7kH9R.js";
2
- import { t } from "../_chunks/color-picker-BRv-__AM.js";
1
+ import { n as e } from "../_chunks/color-palette-BBMFmUNA.js";
2
+ import { t } from "../_chunks/color-picker-D90Jg-M8.js";
3
3
  export { t as ColorPicker, e as normalizeHexColor };