@embeddable.com/remarkable-ui 2.0.15 → 2.0.16

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.
package/dist/index.js CHANGED
@@ -1,20 +1,22 @@
1
- import "./chunk-7RY47BRM.js";
1
+ import {
2
+ styles
3
+ } from "./chunk-V3ZAXTII.js";
2
4
 
3
5
  // src/components/shared/Skeleton/Skeleton.tsx
4
- import styles from "./Skeleton.module-ZN5S5VRF.module.css";
6
+ import styles2 from "./Skeleton.module-ZN5S5VRF.module.css";
5
7
  import { jsx } from "react/jsx-runtime";
6
8
  var Skeleton = () => {
7
- return /* @__PURE__ */ jsx("div", { className: styles.skeleton });
9
+ return /* @__PURE__ */ jsx("div", { className: styles2.skeleton });
8
10
  };
9
11
 
10
12
  // src/components/shared/Card/Card.tsx
11
13
  import React from "react";
12
- import styles2 from "./Card.module-DHO64CIG.module.css";
14
+ import styles3 from "./Card.module-DHO64CIG.module.css";
13
15
  import clsx from "clsx";
14
16
  import { jsx as jsx2, jsxs } from "react/jsx-runtime";
15
17
  var Card = React.forwardRef(
16
18
  ({ children, className, ...props }, ref) => {
17
- return /* @__PURE__ */ jsx2("div", { className: clsx(styles2.card, className), ref, ...props, children });
19
+ return /* @__PURE__ */ jsx2("div", { className: clsx(styles3.card, className), ref, ...props, children });
18
20
  }
19
21
  );
20
22
  Card.displayName = "Card";
@@ -22,8 +24,8 @@ var CardHeader = ({ title, subtitle, rightContent }) => {
22
24
  if (!title && !subtitle && !rightContent) {
23
25
  return null;
24
26
  }
25
- return /* @__PURE__ */ jsxs("div", { className: styles2.cardHeader, children: [
26
- /* @__PURE__ */ jsxs("div", { className: styles2.leftContent, children: [
27
+ return /* @__PURE__ */ jsxs("div", { className: styles3.cardHeader, children: [
28
+ /* @__PURE__ */ jsxs("div", { className: styles3.leftContent, children: [
27
29
  title && /* @__PURE__ */ jsx2("h1", { children: title }),
28
30
  subtitle && /* @__PURE__ */ jsx2("p", { children: subtitle })
29
31
  ] }),
@@ -32,14 +34,14 @@ var CardHeader = ({ title, subtitle, rightContent }) => {
32
34
  };
33
35
  var CardContent = React.forwardRef(
34
36
  ({ children }, ref) => {
35
- return /* @__PURE__ */ jsx2("div", { className: styles2.cardContent, ref, children });
37
+ return /* @__PURE__ */ jsx2("div", { className: styles3.cardContent, ref, children });
36
38
  }
37
39
  );
38
40
  CardContent.displayName = "CardContent";
39
41
 
40
42
  // src/components/shared/Card/CardFeedback/CardFeedback.tsx
41
43
  import clsx2 from "clsx";
42
- import styles3 from "./CardFeedback.module-WCSHLBSM.module.css";
44
+ import styles4 from "./CardFeedback.module-WCSHLBSM.module.css";
43
45
  import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
44
46
  var CardFeedback = ({
45
47
  icon: Icon,
@@ -48,7 +50,7 @@ var CardFeedback = ({
48
50
  className,
49
51
  variant = "info"
50
52
  }) => {
51
- return /* @__PURE__ */ jsxs2("div", { className: clsx2(styles3.feedback, styles3[variant], className), children: [
53
+ return /* @__PURE__ */ jsxs2("div", { className: clsx2(styles4.feedback, styles4[variant], className), children: [
52
54
  Icon && /* @__PURE__ */ jsx3(Icon, {}),
53
55
  /* @__PURE__ */ jsx3("h2", { children: title }),
54
56
  /* @__PURE__ */ jsx3("p", { children: message })
@@ -56,7 +58,7 @@ var CardFeedback = ({
56
58
  };
57
59
 
58
60
  // src/components/shared/Typography/Typography.tsx
59
- import styles4 from "./Typography.module-SW6CT55P.module.css";
61
+ import styles5 from "./Typography.module-SW6CT55P.module.css";
60
62
  import clsx3 from "clsx";
61
63
  import { jsx as jsx4 } from "react/jsx-runtime";
62
64
  function Typography({
@@ -66,20 +68,20 @@ function Typography({
66
68
  style,
67
69
  title
68
70
  }) {
69
- return /* @__PURE__ */ jsx4(Component, { title, className: clsx3(styles4.typography, className), style, children });
71
+ return /* @__PURE__ */ jsx4(Component, { title, className: clsx3(styles5.typography, className), style, children });
70
72
  }
71
73
 
72
74
  // src/components/shared/ActionIcon/ActionIcon.tsx
73
75
  import clsx4 from "clsx";
74
- import styles5 from "./ActionIcon.module-WZFHG44L.module.css";
76
+ import styles6 from "./ActionIcon.module-WZFHG44L.module.css";
75
77
  import { jsx as jsx5 } from "react/jsx-runtime";
76
78
  var ActionIcon = ({ icon: Icon, className, ...props }) => {
77
- return /* @__PURE__ */ jsx5("button", { className: clsx4(styles5.actionIcon, className), ...props, children: /* @__PURE__ */ jsx5(Icon, { className: styles5.icon }) });
79
+ return /* @__PURE__ */ jsx5("button", { className: clsx4(styles6.actionIcon, className), ...props, children: /* @__PURE__ */ jsx5(Icon, { className: styles6.icon }) });
78
80
  };
79
81
 
80
82
  // src/components/shared/ButtonIcon/ButtonIcon.tsx
81
83
  import clsx5 from "clsx";
82
- import styles6 from "./ButtonIcon.module-JHFZQSMJ.module.css";
84
+ import styles7 from "./ButtonIcon.module-JHFZQSMJ.module.css";
83
85
  import { jsx as jsx6 } from "react/jsx-runtime";
84
86
  var ButtonIcon = ({
85
87
  icon: Icon,
@@ -91,7 +93,7 @@ var ButtonIcon = ({
91
93
  return /* @__PURE__ */ jsx6(
92
94
  "button",
93
95
  {
94
- className: clsx5(styles6.buttonIcon, styles6[variant], styles6[size], className),
96
+ className: clsx5(styles7.buttonIcon, styles7[variant], styles7[size], className),
95
97
  ...props,
96
98
  children: /* @__PURE__ */ jsx6(Icon, {})
97
99
  }
@@ -118,7 +120,7 @@ var Dropdown = ({
118
120
 
119
121
  // src/components/editors/selects/shared/SelectFieldContent/SelectFieldOptions/SelectFieldOption/SelectFieldOption.tsx
120
122
  import * as DropdownMenu2 from "@radix-ui/react-dropdown-menu";
121
- import styles7 from "./SelectFieldOption.module-SH3TOVNB.module.css";
123
+ import styles8 from "./SelectFieldOption.module-SH3TOVNB.module.css";
122
124
  import clsx6 from "clsx";
123
125
  import { jsx as jsx8, jsxs as jsxs4 } from "react/jsx-runtime";
124
126
  var SelectListOption = ({
@@ -135,18 +137,18 @@ var SelectListOption = ({
135
137
  DropdownMenu2.Item,
136
138
  {
137
139
  className: clsx6(
138
- styles7.selectFieldOption,
139
- disabled && styles7.disabled,
140
- isSelected && styles7.selected
140
+ styles8.selectFieldOption,
141
+ disabled && styles8.disabled,
142
+ isSelected && styles8.selected
141
143
  ),
142
144
  "data-value": value,
143
145
  ...props,
144
146
  children: [
145
- /* @__PURE__ */ jsxs4("span", { className: styles7.leftContent, children: [
147
+ /* @__PURE__ */ jsxs4("span", { className: styles8.leftContent, children: [
146
148
  startIcon,
147
149
  /* @__PURE__ */ jsx8("span", { title: label, children: label })
148
150
  ] }),
149
- /* @__PURE__ */ jsxs4("span", { className: styles7.rightContent, children: [
151
+ /* @__PURE__ */ jsxs4("span", { className: styles8.rightContent, children: [
150
152
  /* @__PURE__ */ jsx8("span", { title: rightLabel, children: rightLabel }),
151
153
  endIcon
152
154
  ] })
@@ -156,7 +158,7 @@ var SelectListOption = ({
156
158
  };
157
159
 
158
160
  // src/components/shared/Button/Button.tsx
159
- import styles8 from "./Button.module-GOXSST7L.module.css";
161
+ import styles9 from "./Button.module-GOXSST7L.module.css";
160
162
  import clsx7 from "clsx";
161
163
  import { jsx as jsx9, jsxs as jsxs5 } from "react/jsx-runtime";
162
164
  var Button = ({
@@ -168,7 +170,7 @@ var Button = ({
168
170
  className,
169
171
  ...props
170
172
  }) => {
171
- return /* @__PURE__ */ jsxs5("button", { className: clsx7(styles8.button, styles8[variant], styles8[size], className), ...props, children: [
173
+ return /* @__PURE__ */ jsxs5("button", { className: clsx7(styles9.button, styles9[variant], styles9[size], className), ...props, children: [
172
174
  StartIcon && /* @__PURE__ */ jsx9(StartIcon, {}),
173
175
  /* @__PURE__ */ jsx9("span", { children }),
174
176
  EndIcon && /* @__PURE__ */ jsx9(EndIcon, {})
@@ -177,7 +179,7 @@ var Button = ({
177
179
 
178
180
  // src/components/shared/GhostButton/GhostButton.tsx
179
181
  import clsx8 from "clsx";
180
- import styles9 from "./GhostButton.module-43KOFC6W.module.css";
182
+ import styles10 from "./GhostButton.module-43KOFC6W.module.css";
181
183
  import { jsx as jsx10, jsxs as jsxs6 } from "react/jsx-runtime";
182
184
  var GhostButton = ({
183
185
  startIcon: StartIcon,
@@ -186,7 +188,7 @@ var GhostButton = ({
186
188
  className,
187
189
  ...props
188
190
  }) => {
189
- return /* @__PURE__ */ jsxs6("button", { className: clsx8(styles9.ghostButton, className), ...props, children: [
191
+ return /* @__PURE__ */ jsxs6("button", { className: clsx8(styles10.ghostButton, className), ...props, children: [
190
192
  StartIcon && /* @__PURE__ */ jsx10(StartIcon, {}),
191
193
  /* @__PURE__ */ jsx10("span", { children }),
192
194
  EndIcon && /* @__PURE__ */ jsx10(EndIcon, {})
@@ -195,17 +197,17 @@ var GhostButton = ({
195
197
 
196
198
  // src/components/shared/Overlay/Overlay.tsx
197
199
  import clsx9 from "clsx";
198
- import styles10 from "./Overlay.module-FCW64VWM.module.css";
200
+ import styles11 from "./Overlay.module-FCW64VWM.module.css";
199
201
  import { jsx as jsx11 } from "react/jsx-runtime";
200
202
  var Overlay = ({ className, children }) => {
201
- return /* @__PURE__ */ jsx11("div", { className: clsx9(styles10.overlay, className), children });
203
+ return /* @__PURE__ */ jsx11("div", { className: clsx9(styles11.overlay, className), children });
202
204
  };
203
205
 
204
206
  // src/components/editors/selects/MultiSelectField/MultiSelectField.tsx
205
207
  import { Fragment as Fragment2, useEffect as useEffect3, useMemo, useRef as useRef2, useState } from "react";
206
208
 
207
209
  // src/components/editors/selects/shared/SelectFieldTrigger/SelectFieldTrigger.tsx
208
- import styles11 from "./SelectFieldTrigger.module-M6BRE7IY.module.css";
210
+ import styles12 from "./SelectFieldTrigger.module-M6BRE7IY.module.css";
209
211
  import { IconCaretDownFilled, IconLoader2, IconX } from "@tabler/icons-react";
210
212
  import clsx10 from "clsx";
211
213
  import { forwardRef } from "react";
@@ -233,16 +235,16 @@ var SelectFieldTrigger = forwardRef(
233
235
  {
234
236
  ref,
235
237
  className: clsx10(
236
- styles11.selectFieldTrigger,
237
- valueLabel && styles11.filled,
238
- error && styles11.error
238
+ styles12.selectFieldTrigger,
239
+ valueLabel && styles12.filled,
240
+ error && styles12.error
239
241
  ),
240
242
  ...props,
241
243
  children: [
242
244
  StartIcon && /* @__PURE__ */ jsx12(StartIcon, {}),
243
245
  /* @__PURE__ */ jsx12("span", { children: displayValue }),
244
246
  showClearButton && /* @__PURE__ */ jsx12(IconX, { onPointerDown: handleClear }),
245
- isLoading ? /* @__PURE__ */ jsx12(IconLoader2, { className: styles11.loading }) : /* @__PURE__ */ jsx12(IconCaretDownFilled, {})
247
+ isLoading ? /* @__PURE__ */ jsx12(IconLoader2, { className: styles12.loading }) : /* @__PURE__ */ jsx12(IconCaretDownFilled, {})
246
248
  ]
247
249
  }
248
250
  );
@@ -252,7 +254,7 @@ SelectFieldTrigger.displayName = "SelectFieldTrigger";
252
254
 
253
255
  // src/components/editors/selects/shared/SelectFieldContent/SelectFieldContent.tsx
254
256
  import { useEffect, useRef } from "react";
255
- import styles12 from "./SelectFieldContent.module-GZYJOPUB.module.css";
257
+ import styles13 from "./SelectFieldContent.module-GZYJOPUB.module.css";
256
258
  import clsx11 from "clsx";
257
259
  import { jsx as jsx13 } from "react/jsx-runtime";
258
260
  var SelectFieldContent = ({
@@ -313,14 +315,14 @@ var SelectFieldContent = ({
313
315
  {
314
316
  ref: containerRef,
315
317
  tabIndex: -1,
316
- className: clsx11(styles12.selectFieldContent, fitContent && styles12.fitContent, className),
318
+ className: clsx11(styles13.selectFieldContent, fitContent && styles13.fitContent, className),
317
319
  ...props,
318
320
  children
319
321
  }
320
322
  );
321
323
  };
322
324
  var SelectFieldContentList = ({ children, disabled }) => {
323
- return /* @__PURE__ */ jsx13("div", { className: clsx11(styles12.selectFieldContentList, disabled && styles12.disabled), children });
325
+ return /* @__PURE__ */ jsx13("div", { className: clsx11(styles13.selectFieldContentList, disabled && styles13.disabled), children });
324
326
  };
325
327
 
326
328
  // src/components/editors/selects/shared/SelectFieldContent/SelectFieldContent.utils.ts
@@ -340,7 +342,7 @@ var groupOptionsByCategory = (options) => {
340
342
 
341
343
  // src/components/editors/selects/MultiSelectField/MultiSelectField.tsx
342
344
  import { IconSearch, IconSquare, IconSquareCheckFilled } from "@tabler/icons-react";
343
- import styles17 from "./selects.module-MRJADSDF.module.css";
345
+ import styles18 from "./selects.module-MRJADSDF.module.css";
344
346
 
345
347
  // src/components/editors/selects/shared/useSelectSearchFocus.hook.ts
346
348
  import { useEffect as useEffect2 } from "react";
@@ -355,23 +357,23 @@ var useSelectSearchFocus = (isOpen, searchFieldRef) => {
355
357
  };
356
358
 
357
359
  // src/components/editors/selects/shared/SelectFieldContent/SelectFieldOptions/SelectFieldCategory/SelectFieldCategory.tsx
358
- import styles13 from "./SelectFieldCategory.module-FMZMX5V2.module.css";
360
+ import styles14 from "./SelectFieldCategory.module-FMZMX5V2.module.css";
359
361
  import { jsx as jsx14 } from "react/jsx-runtime";
360
362
  var SelectFieldCategory = ({ label }) => {
361
- return /* @__PURE__ */ jsx14("span", { className: styles13.selectFieldCategory, children: label });
363
+ return /* @__PURE__ */ jsx14("span", { className: styles14.selectFieldCategory, children: label });
362
364
  };
363
365
 
364
366
  // src/components/shared/Field/FieldFeedback.tsx
365
367
  import clsx12 from "clsx";
366
- import styles14 from "./FieldFeedback.module-F7Z33KCS.module.css";
368
+ import styles15 from "./FieldFeedback.module-F7Z33KCS.module.css";
367
369
  import { jsx as jsx15 } from "react/jsx-runtime";
368
370
  var FieldFeedback = ({ message, variant, className }) => {
369
- return /* @__PURE__ */ jsx15("p", { className: clsx12(styles14.fieldFeedback, variant && styles14[variant], className), children: message });
371
+ return /* @__PURE__ */ jsx15("p", { className: clsx12(styles15.fieldFeedback, variant && styles15[variant], className), children: message });
370
372
  };
371
373
 
372
374
  // src/components/shared/Field/FieldHeader.tsx
373
375
  import clsx13 from "clsx";
374
- import styles15 from "./FieldHeader.module-QOLBH472.module.css";
376
+ import styles16 from "./FieldHeader.module-QOLBH472.module.css";
375
377
  import { jsx as jsx16, jsxs as jsxs8 } from "react/jsx-runtime";
376
378
  var FieldHeader = ({
377
379
  label,
@@ -382,7 +384,7 @@ var FieldHeader = ({
382
384
  if (!label && !required) {
383
385
  return null;
384
386
  }
385
- return /* @__PURE__ */ jsxs8("label", { className: clsx13(styles15.fieldHeader, className), children: [
387
+ return /* @__PURE__ */ jsxs8("label", { className: clsx13(styles16.fieldHeader, className), children: [
386
388
  label,
387
389
  required && /* @__PURE__ */ jsx16("span", { children: requiredLabel })
388
390
  ] });
@@ -393,7 +395,7 @@ import { forwardRef as forwardRef3 } from "react";
393
395
 
394
396
  // src/components/editors/inputs/shared/InputField/InputField.tsx
395
397
  import { IconX as IconX2 } from "@tabler/icons-react";
396
- import styles16 from "./InputField.module-LDLOMDBK.module.css";
398
+ import styles17 from "./InputField.module-LDLOMDBK.module.css";
397
399
  import clsx14 from "clsx";
398
400
  import { forwardRef as forwardRef2 } from "react";
399
401
  import { jsx as jsx17, jsxs as jsxs9 } from "react/jsx-runtime";
@@ -420,7 +422,7 @@ var InputField = forwardRef2(
420
422
  const hasError = error || errorMessage;
421
423
  return /* @__PURE__ */ jsxs9("div", { className, children: [
422
424
  /* @__PURE__ */ jsx17(FieldHeader, { label, required, requiredLabel }),
423
- /* @__PURE__ */ jsxs9("div", { className: clsx14(styles16.input, hasError && styles16.error), children: [
425
+ /* @__PURE__ */ jsxs9("div", { className: clsx14(styles17.input, hasError && styles17.error), children: [
424
426
  StartIcon && /* @__PURE__ */ jsx17(StartIcon, {}),
425
427
  /* @__PURE__ */ jsx17(
426
428
  "input",
@@ -439,7 +441,7 @@ var InputField = forwardRef2(
439
441
  /* @__PURE__ */ jsx17(
440
442
  IconX2,
441
443
  {
442
- className: clsx14(styles16.clearIcon, showClearButton && styles16.clearIconVisible),
444
+ className: clsx14(styles17.clearIcon, showClearButton && styles17.clearIconVisible),
443
445
  onClick: () => onChange("")
444
446
  }
445
447
  ),
@@ -594,7 +596,7 @@ var MultiSelectField = ({
594
596
  value: searchValue,
595
597
  onKeyDown: (e) => e.stopPropagation(),
596
598
  onChange: handleSearch,
597
- className: styles17.searchField
599
+ className: styles18.searchField
598
600
  }
599
601
  ),
600
602
  /* @__PURE__ */ jsxs11(SelectFieldContentList, { disabled: isLoading, children: [
@@ -623,7 +625,7 @@ var MultiSelectField = ({
623
625
  /* @__PURE__ */ jsx19(
624
626
  Button,
625
627
  {
626
- className: styles17.submitButton,
628
+ className: styles18.submitButton,
627
629
  disabled: isSubmitDisabled || isLoading,
628
630
  variant: "primary",
629
631
  size: "medium",
@@ -641,7 +643,7 @@ var MultiSelectField = ({
641
643
 
642
644
  // src/components/editors/Switch/Switch.tsx
643
645
  import clsx15 from "clsx";
644
- import styles18 from "./Switch.module-MXKS66UI.module.css";
646
+ import styles19 from "./Switch.module-MXKS66UI.module.css";
645
647
  import { jsx as jsx20, jsxs as jsxs12 } from "react/jsx-runtime";
646
648
  var Switch = ({
647
649
  checked,
@@ -666,9 +668,9 @@ var Switch = ({
666
668
  {
667
669
  className: clsx15(
668
670
  className,
669
- styles18.switch,
670
- checked && styles18.checked,
671
- disabled && styles18.disabled
671
+ styles19.switch,
672
+ checked && styles19.checked,
673
+ disabled && styles19.disabled
672
674
  ),
673
675
  children: [
674
676
  /* @__PURE__ */ jsx20(
@@ -684,8 +686,8 @@ var Switch = ({
684
686
  ...props
685
687
  }
686
688
  ),
687
- /* @__PURE__ */ jsx20("span", { className: styles18.switchTrack, "aria-hidden": "true", children: /* @__PURE__ */ jsx20("span", { className: styles18.switchThumb, "aria-hidden": "true" }) }),
688
- label && /* @__PURE__ */ jsx20("span", { className: clsx15(styles18.switchLabel), children: label })
689
+ /* @__PURE__ */ jsx20("span", { className: styles19.switchTrack, "aria-hidden": "true", children: /* @__PURE__ */ jsx20("span", { className: styles19.switchThumb, "aria-hidden": "true" }) }),
690
+ label && /* @__PURE__ */ jsx20("span", { className: clsx15(styles19.switchLabel), children: label })
689
691
  ]
690
692
  }
691
693
  );
@@ -694,7 +696,7 @@ var Switch = ({
694
696
  // src/components/editors/selects/SingleSelectField/SingleSelectField.tsx
695
697
  import { Fragment as Fragment3, useEffect as useEffect4, useMemo as useMemo2, useRef as useRef3, useState as useState2 } from "react";
696
698
  import { IconSearch as IconSearch2 } from "@tabler/icons-react";
697
- import styles19 from "./selects.module-MRJADSDF.module.css";
699
+ import styles20 from "./selects.module-MRJADSDF.module.css";
698
700
  import { jsx as jsx21, jsxs as jsxs13 } from "react/jsx-runtime";
699
701
  var SingleSelectField = ({
700
702
  label,
@@ -781,7 +783,7 @@ var SingleSelectField = ({
781
783
  value: searchValue,
782
784
  onKeyDown: (e) => e.stopPropagation(),
783
785
  onChange: handleSearch,
784
- className: styles19.searchField
786
+ className: styles20.searchField
785
787
  }
786
788
  ),
787
789
  /* @__PURE__ */ jsxs13(SelectFieldContentList, { disabled: isLoading, children: [
@@ -858,11 +860,11 @@ NumberField.displayName = "NumberField";
858
860
  // src/components/editors/dates/DateRangePicker/DateRangePicker.tsx
859
861
  import { useState as useState3 } from "react";
860
862
  import { DayPicker } from "react-day-picker";
861
- import "./DateRangePicker-YLEWETBG.css";
863
+ import "./DateRangePicker-E7WV7TPK.css";
862
864
 
863
865
  // src/components/editors/dates/DateRangePicker/DateRangePickerChevron.tsx
864
866
  import { IconCaretDownFilled as IconCaretDownFilled2 } from "@tabler/icons-react";
865
- import styles20 from "./DateRangePickerChevron.module-2PDNKQAJ.module.css";
867
+ import styles21 from "./DateRangePickerChevron.module-DWIFI5J2.module.css";
866
868
  import { jsx as jsx23 } from "react/jsx-runtime";
867
869
  var DateRangePickerChevron = ({
868
870
  orientation
@@ -871,7 +873,7 @@ var DateRangePickerChevron = ({
871
873
  return /* @__PURE__ */ jsx23(
872
874
  "button",
873
875
  {
874
- className: styles20.chevron,
876
+ className: styles21.chevron,
875
877
  style: {
876
878
  transform: rotation
877
879
  },
@@ -925,7 +927,7 @@ var DateRangePicker = ({
925
927
 
926
928
  // src/components/editors/dates/DateRangePickerField/DateRangePickerField.tsx
927
929
  import { useState as useState4 } from "react";
928
- import styles21 from "./DateRangePickerField.module-CURG3KIS.module.css";
930
+ import styles22 from "./DateRangePickerField.module-CURG3KIS.module.css";
929
931
  import { jsx as jsx25, jsxs as jsxs14 } from "react/jsx-runtime";
930
932
  var getDateRangePickerLabel = (dateRange, displayValue) => {
931
933
  if (dateRange === void 0) return void 0;
@@ -1006,7 +1008,7 @@ var DateRangePickerField = ({
1006
1008
  Button,
1007
1009
  {
1008
1010
  size: "small",
1009
- className: styles21.submitButton,
1011
+ className: styles22.submitButton,
1010
1012
  onClick: handleChange,
1011
1013
  disabled: isSubmitDisabled,
1012
1014
  children: submitLabel
@@ -1455,7 +1457,7 @@ var getBarChartOptions = (options) => {
1455
1457
  };
1456
1458
 
1457
1459
  // src/components/charts/bars/BarChart.tsx
1458
- import styles22 from "./charts.module-YNKCWRLU.module.css";
1460
+ import styles23 from "./charts.module-YNKCWRLU.module.css";
1459
1461
  import { mergician as mergician3 } from "mergician";
1460
1462
  import ChartDataLabels from "chartjs-plugin-datalabels";
1461
1463
  import { jsx as jsx26 } from "react/jsx-runtime";
@@ -1476,7 +1478,7 @@ var BarChart = ({ data, onSegmentClick, options = {}, ...props }) => {
1476
1478
  const indexClicked = getSegmentIndexClicked(event, chartRef);
1477
1479
  onSegmentClick?.(indexClicked);
1478
1480
  };
1479
- return /* @__PURE__ */ jsx26("div", { className: styles22.chartContainer, children: /* @__PURE__ */ jsx26(
1481
+ return /* @__PURE__ */ jsx26("div", { className: styles23.chartContainer, children: /* @__PURE__ */ jsx26(
1480
1482
  Bar,
1481
1483
  {
1482
1484
  ref: chartRef,
@@ -1501,7 +1503,7 @@ import {
1501
1503
  Filler
1502
1504
  } from "chart.js";
1503
1505
  import { Line } from "react-chartjs-2";
1504
- import styles23 from "./charts.module-YNKCWRLU.module.css";
1506
+ import styles24 from "./charts.module-YNKCWRLU.module.css";
1505
1507
  import { useRef as useRef5 } from "react";
1506
1508
  import { mergician as mergician5 } from "mergician";
1507
1509
 
@@ -1617,7 +1619,7 @@ var LineChart = ({ options = {}, data, onSegmentClick, ...props }) => {
1617
1619
  const indexClicked = getSegmentIndexClicked(event, chartRef);
1618
1620
  onSegmentClick?.(indexClicked);
1619
1621
  };
1620
- return /* @__PURE__ */ jsx27("div", { className: styles23.chartContainer, children: /* @__PURE__ */ jsx27(
1622
+ return /* @__PURE__ */ jsx27("div", { className: styles24.chartContainer, children: /* @__PURE__ */ jsx27(
1621
1623
  Line,
1622
1624
  {
1623
1625
  ref: chartRef,
@@ -1629,16 +1631,16 @@ var LineChart = ({ options = {}, data, onSegmentClick, ...props }) => {
1629
1631
  };
1630
1632
 
1631
1633
  // src/components/charts/kpis/KpiChart.tsx
1632
- import styles25 from "./KpiChart.module-2LUIN66C.module.css";
1634
+ import styles26 from "./KpiChart.module-2LUIN66C.module.css";
1633
1635
 
1634
1636
  // src/components/charts/kpis/components/KpiChartChange.tsx
1635
- import styles24 from "./KpiChartChange.module-BAW7YCOW.module.css";
1637
+ import styles25 from "./KpiChartChange.module-BAW7YCOW.module.css";
1636
1638
  import clsx16 from "clsx";
1637
1639
  import { IconTrendingDown, IconTrendingUp } from "@tabler/icons-react";
1638
1640
  import { Fragment as Fragment4, jsx as jsx28, jsxs as jsxs15 } from "react/jsx-runtime";
1639
1641
  var getChangeClass = (isPositive, invertChangeColors) => {
1640
- if (isPositive) return invertChangeColors ? styles24.negative : styles24.positive;
1641
- return invertChangeColors ? styles24.positive : styles24.negative;
1642
+ if (isPositive) return invertChangeColors ? styles25.negative : styles25.positive;
1643
+ return invertChangeColors ? styles25.positive : styles25.negative;
1642
1644
  };
1643
1645
  var KpiChartChange = ({
1644
1646
  value,
@@ -1664,26 +1666,26 @@ var KpiChartChange = ({
1664
1666
  const displayValue = `${isPositive ? "+" : ""}${differenceLabel}`;
1665
1667
  const Icon = isPositive ? IconTrendingUp : IconTrendingDown;
1666
1668
  const showNoPreviousData = showChangeAsPercentage && Number(comparisonValue) === 0;
1667
- return /* @__PURE__ */ jsxs15("div", { className: styles24.kpiChangeContainerSizeGuide, children: [
1668
- /* @__PURE__ */ jsxs15("div", { className: clsx16(styles24.kpiChartChangeContainer, styles24.hidden), children: [
1669
+ return /* @__PURE__ */ jsxs15("div", { className: styles25.kpiChangeContainerSizeGuide, children: [
1670
+ /* @__PURE__ */ jsxs15("div", { className: clsx16(styles25.kpiChartChangeContainer, styles25.hidden), children: [
1669
1671
  /* @__PURE__ */ jsxs15(
1670
1672
  "span",
1671
1673
  {
1672
- className: clsx16(styles24.kpiChangeBadge, getChangeClass(isPositive, invertChangeColors)),
1674
+ className: clsx16(styles25.kpiChangeBadge, getChangeClass(isPositive, invertChangeColors)),
1673
1675
  children: [
1674
1676
  /* @__PURE__ */ jsx28(Icon, {}),
1675
1677
  /* @__PURE__ */ jsx28("span", { children: displayValue })
1676
1678
  ]
1677
1679
  }
1678
1680
  ),
1679
- /* @__PURE__ */ jsx28("span", { className: styles24.kpiComparisonLabel, children: comparisonLabel })
1681
+ /* @__PURE__ */ jsx28("span", { className: styles25.kpiComparisonLabel, children: comparisonLabel })
1680
1682
  ] }),
1681
- /* @__PURE__ */ jsx28("div", { className: styles24.kpiAbsoluteContainer, children: /* @__PURE__ */ jsx28("div", { className: styles24.kpiChartChangeContainer, children: showNoPreviousData ? /* @__PURE__ */ jsx28("span", { className: styles24.kpiComparisonLabel, children: noPreviousDataLabel }) : /* @__PURE__ */ jsxs15(Fragment4, { children: [
1683
+ /* @__PURE__ */ jsx28("div", { className: styles25.kpiAbsoluteContainer, children: /* @__PURE__ */ jsx28("div", { className: styles25.kpiChartChangeContainer, children: showNoPreviousData ? /* @__PURE__ */ jsx28("span", { className: styles25.kpiComparisonLabel, children: noPreviousDataLabel }) : /* @__PURE__ */ jsxs15(Fragment4, { children: [
1682
1684
  !equalComparison && /* @__PURE__ */ jsxs15(
1683
1685
  "span",
1684
1686
  {
1685
1687
  className: clsx16(
1686
- styles24.kpiChangeBadge,
1688
+ styles25.kpiChangeBadge,
1687
1689
  getChangeClass(isPositive, invertChangeColors)
1688
1690
  ),
1689
1691
  children: [
@@ -1692,7 +1694,7 @@ var KpiChartChange = ({
1692
1694
  ]
1693
1695
  }
1694
1696
  ),
1695
- /* @__PURE__ */ jsx28("span", { className: styles24.kpiComparisonLabel, children: equalComparison ? equalComparisonLabel ?? comparisonLabel : comparisonLabel })
1697
+ /* @__PURE__ */ jsx28("span", { className: styles25.kpiComparisonLabel, children: equalComparison ? equalComparisonLabel ?? comparisonLabel : comparisonLabel })
1696
1698
  ] }) }) })
1697
1699
  ] });
1698
1700
  };
@@ -1723,8 +1725,8 @@ var KpiChart = ({
1723
1725
  const hasComparisonValue = comparisonValue !== void 0;
1724
1726
  const displayValue = value === void 0 ? "" : valueFormatter ? valueFormatter(value) : value;
1725
1727
  const autoResizeValueFontSize = !valueFontSize;
1726
- return /* @__PURE__ */ jsxs16("div", { className: styles25.kpiChartContainer, children: [
1727
- /* @__PURE__ */ jsx30("div", { className: styles25.kpiChartValueContainer, children: /* @__PURE__ */ jsx30(
1728
+ return /* @__PURE__ */ jsxs16("div", { className: styles26.kpiChartContainer, children: [
1729
+ /* @__PURE__ */ jsx30("div", { className: styles26.kpiChartValueContainer, children: /* @__PURE__ */ jsx30(
1728
1730
  ConditionalWrapper_default,
1729
1731
  {
1730
1732
  condition: autoResizeValueFontSize,
@@ -1741,7 +1743,7 @@ var KpiChart = ({
1741
1743
  )
1742
1744
  }
1743
1745
  ) }),
1744
- /* @__PURE__ */ jsx30("div", { className: styles25.kpiComparisonContainer, style: { fontSize: trendFontSize }, children: /* @__PURE__ */ jsx30("div", { style: { visibility: hasComparisonValue ? "visible" : "hidden" }, children: /* @__PURE__ */ jsx30(
1746
+ /* @__PURE__ */ jsx30("div", { className: styles26.kpiComparisonContainer, style: { fontSize: trendFontSize }, children: /* @__PURE__ */ jsx30("div", { style: { visibility: hasComparisonValue ? "visible" : "hidden" }, children: /* @__PURE__ */ jsx30(
1745
1747
  KpiChartChange,
1746
1748
  {
1747
1749
  equalComparisonLabel,
@@ -1838,7 +1840,7 @@ var getDonutChartOptions = (options) => {
1838
1840
 
1839
1841
  // src/components/charts/pies/DonutChart/DonutChart.tsx
1840
1842
  import { mergician as mergician7 } from "mergician";
1841
- import styles26 from "./charts.module-YNKCWRLU.module.css";
1843
+ import styles27 from "./charts.module-YNKCWRLU.module.css";
1842
1844
 
1843
1845
  // src/hooks/useResizeObserver.hook.ts
1844
1846
  import { useLayoutEffect, useRef as useRef6, useState as useState5 } from "react";
@@ -1900,7 +1902,7 @@ var DonutChart = ({
1900
1902
  };
1901
1903
  const { height, width } = useResizeObserver(containerRef, 0);
1902
1904
  const hideChart = height < MIN_WIDTH_HEIGHT_TO_SHOW_CHART || width < MIN_WIDTH_HEIGHT_TO_SHOW_CHART;
1903
- return /* @__PURE__ */ jsx31("div", { className: styles26.chartContainer, ref: containerRef, children: hideChart ? null : /* @__PURE__ */ jsx31(
1905
+ return /* @__PURE__ */ jsx31("div", { className: styles27.chartContainer, ref: containerRef, children: hideChart ? null : /* @__PURE__ */ jsx31(
1904
1906
  Pie,
1905
1907
  {
1906
1908
  ref: chartRef,
@@ -1917,7 +1919,7 @@ import { Pie as Pie2 } from "react-chartjs-2";
1917
1919
  import { ArcElement as ArcElement2, Chart as ChartJS4, Legend as Legend4, Tooltip as Tooltip4 } from "chart.js";
1918
1920
  import ChartDataLabels4 from "chartjs-plugin-datalabels";
1919
1921
  import { mergician as mergician8 } from "mergician";
1920
- import styles27 from "./charts.module-YNKCWRLU.module.css";
1922
+ import styles28 from "./charts.module-YNKCWRLU.module.css";
1921
1923
  import AnnotationPlugin3 from "chartjs-plugin-annotation";
1922
1924
  import { jsx as jsx32 } from "react/jsx-runtime";
1923
1925
  ChartJS4.register(ArcElement2, Tooltip4, Legend4, ChartDataLabels4, AnnotationPlugin3);
@@ -1942,7 +1944,7 @@ var PieChart = ({
1942
1944
  const indexClicked = getSegmentIndexClicked(event, chartRef);
1943
1945
  onSegmentClick?.(indexClicked);
1944
1946
  };
1945
- return /* @__PURE__ */ jsx32("div", { className: styles27.chartContainer, children: /* @__PURE__ */ jsx32(
1947
+ return /* @__PURE__ */ jsx32("div", { className: styles28.chartContainer, children: /* @__PURE__ */ jsx32(
1946
1948
  Pie2,
1947
1949
  {
1948
1950
  ref: chartRef,
@@ -1955,7 +1957,7 @@ var PieChart = ({
1955
1957
 
1956
1958
  // src/components/charts/tables/Table/TablePaginated.tsx
1957
1959
  import * as React3 from "react";
1958
- import styles31 from "./tables.module-GNDYDW3Z.module.css";
1960
+ import styles32 from "./tables.module-GNDYDW3Z.module.css";
1959
1961
  import clsx19 from "clsx";
1960
1962
 
1961
1963
  // src/components/charts/tables/Table/components/TablePagination/TablePagination.tsx
@@ -1965,7 +1967,7 @@ import {
1965
1967
  IconChevronsLeft,
1966
1968
  IconChevronsRight
1967
1969
  } from "@tabler/icons-react";
1968
- import styles28 from "./TablePagination.module-VGIQ7VN7.module.css";
1970
+ import styles29 from "./TablePagination.module-VGIQ7VN7.module.css";
1969
1971
  import { useEffect as useEffect5 } from "react";
1970
1972
  import { jsx as jsx33, jsxs as jsxs17 } from "react/jsx-runtime";
1971
1973
  var getTableTotalPages = (total, pageSize) => {
@@ -1986,8 +1988,8 @@ var TablePagination = ({
1986
1988
  onPageChange(0);
1987
1989
  }
1988
1990
  }, [totalPages, page]);
1989
- return /* @__PURE__ */ jsx33("div", { className: styles28.tablePagination, "aria-label": "Table pagination controls", children: /* @__PURE__ */ jsxs17("div", { className: styles28.tablePaginationCentral, children: [
1990
- /* @__PURE__ */ jsxs17("div", { className: styles28.tablePaginationCentralButtons, children: [
1991
+ return /* @__PURE__ */ jsx33("div", { className: styles29.tablePagination, "aria-label": "Table pagination controls", children: /* @__PURE__ */ jsxs17("div", { className: styles29.tablePaginationCentral, children: [
1992
+ /* @__PURE__ */ jsxs17("div", { className: styles29.tablePaginationCentralButtons, children: [
1991
1993
  /* @__PURE__ */ jsx33(
1992
1994
  ActionIcon,
1993
1995
  {
@@ -2012,7 +2014,7 @@ var TablePagination = ({
2012
2014
  )
2013
2015
  ] }),
2014
2016
  /* @__PURE__ */ jsx33("span", { children: paginationLabel ?? `Page ${page + 1} of ${totalPages ?? "?"}` }),
2015
- /* @__PURE__ */ jsxs17("div", { className: styles28.tablePaginationCentralButtons, children: [
2017
+ /* @__PURE__ */ jsxs17("div", { className: styles29.tablePaginationCentralButtons, children: [
2016
2018
  /* @__PURE__ */ jsx33(
2017
2019
  ActionIcon,
2018
2020
  {
@@ -2039,7 +2041,7 @@ var TablePagination = ({
2039
2041
 
2040
2042
  // src/components/charts/tables/Table/components/TableHeader/TableHeader.tsx
2041
2043
  import { IconCaretDownFilled as IconCaretDownFilled3, IconCaretUpDownFilled, IconCaretUpFilled } from "@tabler/icons-react";
2042
- import styles29 from "./TableHeader.module-XXXLQWHC.module.css";
2044
+ import styles30 from "./TableHeader.module-XXXLQWHC.module.css";
2043
2045
 
2044
2046
  // src/components/charts/tables/Table/table.types.ts
2045
2047
  var TableSortDirection = {
@@ -2095,12 +2097,12 @@ var TableHeader = ({
2095
2097
  }
2096
2098
  }
2097
2099
  };
2098
- return /* @__PURE__ */ jsx34("thead", { className: styles29.tableHeader, children: /* @__PURE__ */ jsxs18("tr", { children: [
2100
+ return /* @__PURE__ */ jsx34("thead", { className: styles30.tableHeader, children: /* @__PURE__ */ jsxs18("tr", { children: [
2099
2101
  showIndex && /* @__PURE__ */ jsx34("th", { className: clsx17(tableStyles.mutedCell, tableStyles.stickyFirstColumn), children: "#" }),
2100
2102
  headers.map((header) => /* @__PURE__ */ jsx34(
2101
2103
  "th",
2102
2104
  {
2103
- className: styles29.tableHeaderCell,
2105
+ className: styles30.tableHeaderCell,
2104
2106
  style: { minWidth: header.minWidth },
2105
2107
  scope: "col",
2106
2108
  "aria-sort": getHeaderAriaSort(sort, header),
@@ -2122,7 +2124,7 @@ var TableHeader = ({
2122
2124
  };
2123
2125
 
2124
2126
  // src/components/charts/tables/Table/components/TableBody/TableBody.tsx
2125
- import styles30 from "./TableBody.module-ARNVVKDL.module.css";
2127
+ import styles31 from "./TableBody.module-ARNVVKDL.module.css";
2126
2128
  import clsx18 from "clsx";
2127
2129
  import { IconCopy, IconCopyCheckFilled } from "@tabler/icons-react";
2128
2130
  import { useState as useState6 } from "react";
@@ -2136,7 +2138,7 @@ var TableBody = ({
2136
2138
  showIndex,
2137
2139
  onRowIndexClick
2138
2140
  }) => {
2139
- return /* @__PURE__ */ jsx35("tbody", { className: styles30.tableBody, children: rows.map((row, rowIndex) => /* @__PURE__ */ jsxs19(
2141
+ return /* @__PURE__ */ jsx35("tbody", { className: styles31.tableBody, children: rows.map((row, rowIndex) => /* @__PURE__ */ jsxs19(
2140
2142
  "tr",
2141
2143
  {
2142
2144
  onClick: () => onRowIndexClick?.(rowIndex),
@@ -2165,7 +2167,7 @@ var TableBodyCell = ({ header, row, rowIndex, cellIndex }) => {
2165
2167
  row[header.id]
2166
2168
  ) : void 0;
2167
2169
  if (header.cell) {
2168
- return header.cell({ value, className: styles30.tableBodyCell });
2170
+ return header.cell({ value, className: styles31.tableBodyCell });
2169
2171
  }
2170
2172
  const handleCopy = () => {
2171
2173
  setIsPressedCopy(true);
@@ -2187,8 +2189,8 @@ var TableBodyCell = ({ header, row, rowIndex, cellIndex }) => {
2187
2189
  onMouseDown: handleCopy,
2188
2190
  icon: isPressedCopy ? IconCopyCheckFilled : IconCopy,
2189
2191
  className: clsx18(
2190
- styles30.copyButton,
2191
- header.align === TableHeaderAlign.RIGHT && styles30.leftAlign
2192
+ styles31.copyButton,
2193
+ header.align === TableHeaderAlign.RIGHT && styles31.leftAlign
2192
2194
  ),
2193
2195
  onClick: handleCopy
2194
2196
  }
@@ -2219,8 +2221,8 @@ var TablePaginated = React3.forwardRef(
2219
2221
  onPageChange,
2220
2222
  onSortChange
2221
2223
  } = props;
2222
- return /* @__PURE__ */ jsxs20("div", { ref, className: clsx19(styles31.tableContainer, className), children: [
2223
- /* @__PURE__ */ jsx36("div", { className: styles31.tableContainerScroll, children: /* @__PURE__ */ jsxs20("table", { className: styles31.table, children: [
2224
+ return /* @__PURE__ */ jsxs20("div", { ref, className: clsx19(styles32.tableContainer, className), children: [
2225
+ /* @__PURE__ */ jsx36("div", { className: styles32.tableContainerScroll, children: /* @__PURE__ */ jsxs20("table", { className: styles32.table, children: [
2224
2226
  /* @__PURE__ */ jsx36(
2225
2227
  TableHeader,
2226
2228
  {
@@ -2943,6 +2945,7 @@ export {
2943
2945
  TextField,
2944
2946
  Typography,
2945
2947
  chartjsAxisOptionsLayoutPadding,
2948
+ endOfDayUTC,
2946
2949
  getBarChartData,
2947
2950
  getBarChartOptions,
2948
2951
  getChartColors,
@@ -2963,6 +2966,9 @@ export {
2963
2966
  getStyle,
2964
2967
  getStyleNumber,
2965
2968
  getTableTotalPages,
2969
+ isSameDate,
2970
+ isSameDateRange,
2971
+ styles,
2966
2972
  useDebounce,
2967
2973
  useResizeObserver,
2968
2974
  useTableGetRowsPerPage