@xola/ui-kit 3.5.0 → 3.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (215) hide show
  1. package/README.md +136 -87
  2. package/build/components/Alert.js +18 -13
  3. package/build/components/Animation/FadeIn.js +36 -25
  4. package/build/components/Animation/SlideDown.js +14 -9
  5. package/build/components/Avatar.js +17 -10
  6. package/build/components/Badge.js +33 -24
  7. package/build/components/BottomSheet.js +114 -0
  8. package/build/components/Breadcrumb.js +27 -21
  9. package/build/components/Breakdown.js +66 -74
  10. package/build/components/Buttons/Button.js +53 -47
  11. package/build/components/Buttons/ButtonGroup.js +42 -39
  12. package/build/components/Buttons/SecondaryButton.js +31 -0
  13. package/build/components/Buttons/SubmitButton.js +72 -66
  14. package/build/components/Buttons/ToggleButton.js +15 -16
  15. package/build/components/Counter.js +10 -6
  16. package/build/components/DatePicker/DatePicker.helpers.js +24 -13
  17. package/build/components/DatePicker/DatePicker.js +196 -223
  18. package/build/components/DatePicker/DatePickerPopover.js +75 -66
  19. package/build/components/DatePicker/Day.js +35 -32
  20. package/build/components/DatePicker/LocalizedDayPicker.js +15 -18
  21. package/build/components/DatePicker/MonthGrid.js +35 -48
  22. package/build/components/DatePicker/MonthPicker.js +25 -20
  23. package/build/components/DatePicker/MonthSelector.js +39 -40
  24. package/build/components/DatePicker/MonthYearSelector.js +18 -39
  25. package/build/components/DatePicker/NavbarElement.js +26 -35
  26. package/build/components/DatePicker/RangeDatePicker.js +104 -123
  27. package/build/components/DatePicker/RelativeDateRange.js +153 -143
  28. package/build/components/DatePicker/UpcomingDatePicker.js +29 -25
  29. package/build/components/Dot/Dot.js +13 -8
  30. package/build/components/Dot/DotProgress.js +12 -7
  31. package/build/components/Drawer.js +109 -101
  32. package/build/components/Forms/BaseInput.js +50 -34
  33. package/build/components/Forms/Checkbox.js +33 -30
  34. package/build/components/Forms/ComboBox.js +35 -35
  35. package/build/components/Forms/FormGroup.js +7 -3
  36. package/build/components/Forms/InlineValuePopover.js +33 -39
  37. package/build/components/Forms/Input.js +15 -7
  38. package/build/components/Forms/Label.js +14 -8
  39. package/build/components/Forms/RangeSlider.js +41 -22
  40. package/build/components/Forms/Select.js +5 -6
  41. package/build/components/Forms/Switch.js +46 -38
  42. package/build/components/Forms/Textarea.js +37 -30
  43. package/build/components/Forms/ValuePopoverText.js +5 -8
  44. package/build/components/GooglePlacesAutocomplete.js +112 -0
  45. package/build/components/HeaderToolbar.js +30 -22
  46. package/build/components/ImageUpload.js +76 -79
  47. package/build/components/Key.js +21 -16
  48. package/build/components/Logo.js +12 -5
  49. package/build/components/Modal.js +87 -72
  50. package/build/components/Popover/Popover.js +40 -31
  51. package/build/components/Popover/PopoverList.js +43 -36
  52. package/build/components/Provider.js +7 -8
  53. package/build/components/Screens/Login.js +97 -126
  54. package/build/components/Search.js +114 -144
  55. package/build/components/Sidebar/Sidebar.Account.js +39 -46
  56. package/build/components/Sidebar/Sidebar.Button.js +45 -19
  57. package/build/components/Sidebar/Sidebar.Footer.js +8 -7
  58. package/build/components/Sidebar/Sidebar.Heading.js +11 -8
  59. package/build/components/Sidebar/Sidebar.Link.js +79 -44
  60. package/build/components/Sidebar/Sidebar.Menu.js +52 -28
  61. package/build/components/Sidebar/Sidebar.Notifications.js +107 -0
  62. package/build/components/Sidebar/Sidebar.js +207 -214
  63. package/build/components/Sidebar/SidebarContext.js +15 -0
  64. package/build/components/Sidebar/sidebarWidth.js +41 -0
  65. package/build/components/Sidebar/useSidebarWidthState.js +115 -0
  66. package/build/components/Skeleton.js +19 -20
  67. package/build/components/Spinner.js +18 -10
  68. package/build/components/Table.js +86 -50
  69. package/build/components/Tabs/Tabs.Panel.js +9 -5
  70. package/build/components/Tabs/Tabs.Tab.js +28 -23
  71. package/build/components/Tabs/Tabs.js +23 -23
  72. package/build/components/Tag.js +28 -23
  73. package/build/components/Tooltip.js +19 -5
  74. package/build/components/Utilities/Currency.js +49 -42
  75. package/build/components/Utilities/Number.js +14 -12
  76. package/build/components/Utilities/Phone.js +18 -12
  77. package/build/helpers/environment.js +10 -0
  78. package/build/helpers/flash.js +45 -46
  79. package/build/hooks/useIsMobile.js +8 -0
  80. package/build/hooks/useViewportHeight.js +6 -12
  81. package/build/icons/src/AnnounceIcon.js +3 -4
  82. package/build/icons/src/BellIcon.js +0 -1
  83. package/build/icons/src/CalendarIcon.js +0 -1
  84. package/build/icons/src/CheckIcon.js +0 -1
  85. package/build/icons/src/ChevronDownIcon.js +4 -5
  86. package/build/icons/src/ChevronLeftIcon.js +0 -1
  87. package/build/icons/src/ChevronRightIcon.js +0 -1
  88. package/build/icons/src/CircleNotch.js +0 -1
  89. package/build/icons/src/CloseIcon.js +11 -9
  90. package/build/icons/src/DownArrowIcon.js +0 -1
  91. package/build/icons/src/ImageIcon.js +0 -1
  92. package/build/icons/src/SearchIcon.js +4 -5
  93. package/build/icons/src/TrashIcon.js +0 -1
  94. package/build/icons/src/WarningDiamondIcon.js +0 -1
  95. package/build/icons/src/helpers/icon.js +5 -9
  96. package/build/icons/src/images/XolaLogoSimple.js +2 -3
  97. package/build/index.js +143 -130
  98. package/build/style.css +1 -0
  99. package/build/theme.css +76 -0
  100. package/build/theme.js +2 -0
  101. package/build/utils/currency.js +5 -5
  102. package/build/{helpers → utils}/date.js +17 -20
  103. package/build/utils/numbers.js +12 -12
  104. package/build/utils/phone.js +12 -14
  105. package/build/utils/userLocale.js +6 -0
  106. package/index.css +96 -4
  107. package/index.d.ts +204 -0
  108. package/package.json +87 -77
  109. package/skills/README.md +27 -0
  110. package/skills/migrate-2.6-to-3.7/SKILL.md +110 -0
  111. package/tailwind.config.js +5 -2
  112. package/build/base.css +0 -2
  113. package/build/components/Alert.d.ts +0 -18
  114. package/build/components/Animation/FadeIn.d.ts +0 -13
  115. package/build/components/Animation/SlideDown.d.ts +0 -6
  116. package/build/components/Avatar.d.ts +0 -16
  117. package/build/components/Badge.d.ts +0 -28
  118. package/build/components/Breadcrumb.d.ts +0 -21
  119. package/build/components/Breakdown.d.ts +0 -63
  120. package/build/components/Buttons/Button.d.ts +0 -53
  121. package/build/components/Buttons/ButtonGroup.d.ts +0 -35
  122. package/build/components/Buttons/SubmitButton.d.ts +0 -11
  123. package/build/components/Buttons/ToggleButton.d.ts +0 -21
  124. package/build/components/Charts/BaseChartOptions.d.ts +0 -136
  125. package/build/components/Charts/HistogramOptions.d.ts +0 -192
  126. package/build/components/Charts/PieOptions.d.ts +0 -177
  127. package/build/components/Counter.d.ts +0 -5
  128. package/build/components/DatePicker/DatePicker.d.ts +0 -41
  129. package/build/components/DatePicker/DatePicker.helpers.d.ts +0 -17
  130. package/build/components/DatePicker/DatePickerPopover.d.ts +0 -29
  131. package/build/components/DatePicker/Day.d.ts +0 -13
  132. package/build/components/DatePicker/LocalizedDayPicker.d.ts +0 -6
  133. package/build/components/DatePicker/MonthGrid.d.ts +0 -11
  134. package/build/components/DatePicker/MonthPicker.d.ts +0 -7
  135. package/build/components/DatePicker/MonthSelector.d.ts +0 -8
  136. package/build/components/DatePicker/MonthYearSelector.d.ts +0 -8
  137. package/build/components/DatePicker/NavbarElement.d.ts +0 -15
  138. package/build/components/DatePicker/RangeDatePicker.d.ts +0 -25
  139. package/build/components/DatePicker/RelativeDateRange.d.ts +0 -51
  140. package/build/components/DatePicker/UpcomingDatePicker.d.ts +0 -11
  141. package/build/components/Dot/Dot.d.ts +0 -24
  142. package/build/components/Dot/DotProgress.d.ts +0 -6
  143. package/build/components/Drawer.d.ts +0 -28
  144. package/build/components/Forms/BaseInput.d.ts +0 -20
  145. package/build/components/Forms/Checkbox.d.ts +0 -10
  146. package/build/components/Forms/ComboBox.d.ts +0 -8
  147. package/build/components/Forms/FormGroup.d.ts +0 -5
  148. package/build/components/Forms/InlineValuePopover.d.ts +0 -17
  149. package/build/components/Forms/Input.d.ts +0 -6
  150. package/build/components/Forms/Label.d.ts +0 -7
  151. package/build/components/Forms/RangeSlider.d.ts +0 -33
  152. package/build/components/Forms/Select.d.ts +0 -5
  153. package/build/components/Forms/Switch.d.ts +0 -46
  154. package/build/components/Forms/Textarea.d.ts +0 -6
  155. package/build/components/Forms/ValuePopoverText.d.ts +0 -6
  156. package/build/components/GooglePlacesAutocomplete.d.ts +0 -14
  157. package/build/components/HeaderToolbar.d.ts +0 -21
  158. package/build/components/ImageUpload.d.ts +0 -17
  159. package/build/components/Key.d.ts +0 -6
  160. package/build/components/Logo.d.ts +0 -19
  161. package/build/components/Modal.d.ts +0 -52
  162. package/build/components/Popover/Popover.d.ts +0 -20
  163. package/build/components/Popover/PopoverList.d.ts +0 -25
  164. package/build/components/Provider.d.ts +0 -18
  165. package/build/components/Screens/Login.d.ts +0 -25
  166. package/build/components/Search.d.ts +0 -16
  167. package/build/components/Sidebar/Sidebar.Account.d.ts +0 -13
  168. package/build/components/Sidebar/Sidebar.Button.d.ts +0 -10
  169. package/build/components/Sidebar/Sidebar.Footer.d.ts +0 -8
  170. package/build/components/Sidebar/Sidebar.Heading.d.ts +0 -10
  171. package/build/components/Sidebar/Sidebar.Link.d.ts +0 -24
  172. package/build/components/Sidebar/Sidebar.Menu.d.ts +0 -13
  173. package/build/components/Sidebar/Sidebar.d.ts +0 -58
  174. package/build/components/Sidebar/index.d.ts +0 -8
  175. package/build/components/Skeleton.d.ts +0 -13
  176. package/build/components/Spinner.d.ts +0 -26
  177. package/build/components/Table.d.ts +0 -59
  178. package/build/components/Tabs/Tabs.Panel.d.ts +0 -9
  179. package/build/components/Tabs/Tabs.Tab.d.ts +0 -19
  180. package/build/components/Tabs/Tabs.d.ts +0 -27
  181. package/build/components/Tabs/index.d.ts +0 -4
  182. package/build/components/Tag.d.ts +0 -25
  183. package/build/components/Tooltip.d.ts +0 -8
  184. package/build/components/Utilities/Currency.d.ts +0 -32
  185. package/build/components/Utilities/Number.d.ts +0 -8
  186. package/build/components/Utilities/Phone.d.ts +0 -8
  187. package/build/full.css +0 -2
  188. package/build/helpers/avatar.d.ts +0 -1
  189. package/build/helpers/avatar.js +0 -8
  190. package/build/helpers/browser.d.ts +0 -2
  191. package/build/helpers/children.d.ts +0 -3
  192. package/build/helpers/classnames.d.ts +0 -5
  193. package/build/helpers/currency.d.ts +0 -2
  194. package/build/helpers/currency.js +0 -11
  195. package/build/helpers/date.d.ts +0 -12
  196. package/build/helpers/flash.d.ts +0 -21
  197. package/build/helpers/numbers.d.ts +0 -4
  198. package/build/helpers/numbers.js +0 -23
  199. package/build/helpers/phone.d.ts +0 -11
  200. package/build/helpers/phone.js +0 -25
  201. package/build/hooks/useId.d.ts +0 -1
  202. package/build/hooks/useId.js +0 -9
  203. package/build/hooks/useIsClient.d.ts +0 -1
  204. package/build/hooks/useViewportHeight.d.ts +0 -1
  205. package/build/icons/src/helpers/classnames.js +0 -8
  206. package/build/index.d.ts +0 -66
  207. package/build/theme.d.ts +0 -413
  208. package/build/types/index.d.ts +0 -22
  209. package/build/types/migration.d.ts +0 -2
  210. package/build/ui-kit.css +0 -1
  211. package/build/utils/avatar.d.ts +0 -1
  212. package/build/utils/currency.d.ts +0 -2
  213. package/build/utils/index.d.ts +0 -4
  214. package/build/utils/numbers.d.ts +0 -4
  215. package/build/utils/phone.d.ts +0 -2
@@ -1,85 +1,84 @@
1
- import { jsx as a, jsxs as p } from "react/jsx-runtime";
2
- import { Transition as u } from "@headlessui/react";
3
- import { Fragment as h } from "react";
4
- import c from "react-hot-toast";
1
+ import { Transition as p } from "@headlessui/react";
2
+ import n, { Fragment as d } from "react";
3
+ import i from "react-hot-toast";
5
4
  import y from "./classnames.js";
6
5
  import { CloseIcon as g } from "../icons/src/CloseIcon.js";
7
- const w = {
6
+ const h = {
8
7
  primary: "bg-primary",
9
8
  secondary: "bg-secondary",
10
9
  success: "bg-success",
11
10
  warning: "bg-warning",
12
11
  danger: "bg-danger",
13
12
  caution: "bg-caution"
14
- }, f = {
13
+ }, w = {
15
14
  small: "px-3 py-2 text-sm leading-3.5 shadow max-w-50",
16
15
  medium: "px-4 py-3.5 text-base leading-4 shadow max-w-100",
17
16
  large: "px-4.5 py-4 text-md leading-4.5 shadow max-w-xl"
18
- }, x = {
17
+ }, f = {
19
18
  duration: 3e3,
20
19
  position: "top-center",
21
20
  reverseOrder: !1
22
21
  }, l = {
23
- show({ text: r, size: s = "medium", color: e = "success", className: o, canClose: t = !0, onClose: i, ...m }) {
24
- const n = { ...x, ...m };
25
- t || (n.duration = Number.POSITIVE_INFINITY);
26
- const d = l.getStyles(e, s, o, t);
27
- c.custom(l.container.bind(this, r, d, t ? i : null), n);
22
+ show({ text: e, size: r = "medium", color: t = "success", className: o, canClose: s = !0, onClose: a, ...m }) {
23
+ const c = { ...f, ...m };
24
+ s || (c.duration = Number.POSITIVE_INFINITY);
25
+ const u = l.getStyles(t, r, o, s);
26
+ return i.custom(l.container.bind(this, e, u, s ? a : null), c);
28
27
  },
29
28
  //
30
29
  // Shortcut methods for flash.show
31
30
  //
32
- primary(r, s) {
33
- this.show({ color: "primary", text: r, ...s });
31
+ primary(e, r) {
32
+ return this.show({ color: "primary", text: e, ...r });
34
33
  },
35
- secondary(r, s) {
36
- this.show({ color: "secondary", text: r, ...s });
34
+ secondary(e, r) {
35
+ return this.show({ color: "secondary", text: e, ...r });
37
36
  },
38
- success(r, s) {
39
- this.show({ color: "success", text: r, ...s });
37
+ success(e, r) {
38
+ return this.show({ color: "success", text: e, ...r });
40
39
  },
41
- warning(r, s) {
42
- this.show({ color: "warning", text: r, ...s });
40
+ warning(e, r) {
41
+ return this.show({ color: "warning", text: e, ...r });
43
42
  },
44
- caution(r, s) {
45
- this.show({ color: "caution", text: r, ...s });
43
+ caution(e, r) {
44
+ return this.show({ color: "caution", text: e, ...r });
46
45
  },
47
- danger(r, s) {
48
- this.show({ color: "danger", text: r, ...s });
46
+ danger(e, r) {
47
+ return this.show({ color: "danger", text: e, ...r });
49
48
  },
50
- getStyles(r, s, e) {
51
- return y("flex text-white rounded pointer-events-auto", w[r], f[s], e);
49
+ getStyles(e, r, t) {
50
+ return y("flex text-white rounded pointer-events-auto", h[e], w[r], t);
52
51
  },
53
- container(r, s, e, o) {
54
- const t = (i) => e(i, o);
55
- return /* @__PURE__ */ a(
56
- u,
52
+ container(e, r, t, o) {
53
+ const s = (a) => t(a, o);
54
+ return /* @__PURE__ */ n.createElement(
55
+ p,
57
56
  {
58
57
  appear: !0,
59
- as: h,
58
+ as: d,
60
59
  show: o.visible,
61
60
  enter: "transition transform duration-500 ease-out",
62
61
  enterFrom: "-translate-y-full !opacity-0",
63
62
  enterTo: "translate-y-0 !opacity-100",
64
63
  leave: "transition transform duration-500 ease-in",
65
64
  leaveFrom: "!opacity-90 translate-y-0",
66
- leaveTo: "!opacity-0 -translate-y-full",
67
- children: /* @__PURE__ */ p("div", { className: s, children: [
68
- /* @__PURE__ */ a("div", { className: "w-full", children: r }),
69
- e && /* @__PURE__ */ a(
70
- "div",
71
- {
72
- className: "flex cursor-pointer items-center justify-center pl-3 opacity-60 hover:opacity-100",
73
- onClick: t,
74
- children: /* @__PURE__ */ a(g, {})
75
- }
76
- )
77
- ] }, o.id)
78
- }
65
+ leaveTo: "!opacity-0 -translate-y-full"
66
+ },
67
+ /* @__PURE__ */ n.createElement("div", { key: o.id, className: r }, /* @__PURE__ */ n.createElement("div", { className: "w-full" }, e), t && /* @__PURE__ */ n.createElement(
68
+ "div",
69
+ {
70
+ className: "flex cursor-pointer items-center justify-center pl-3 opacity-60 hover:opacity-100",
71
+ onClick: s
72
+ },
73
+ /* @__PURE__ */ n.createElement(g, null)
74
+ ))
79
75
  );
80
76
  },
81
- dismiss(r) {
82
- c.dismiss(r);
77
+ remove(e) {
78
+ return i.remove(e);
79
+ },
80
+ dismiss(e) {
81
+ return i.dismiss(e);
83
82
  }
84
83
  };
85
84
  export {
@@ -0,0 +1,8 @@
1
+ import { useResponsive as e } from "ahooks";
2
+ const t = () => {
3
+ const o = e();
4
+ return !(o != null && o.md);
5
+ };
6
+ export {
7
+ t as useIsMobile
8
+ };
@@ -1,15 +1,9 @@
1
- import { useState as n, useEffect as o } from "react";
2
- const w = () => {
3
- const [t, i] = n(0);
4
- return o(() => {
5
- const e = () => {
6
- i(window.innerHeight);
7
- };
8
- return e(), window.addEventListener("orientationchange", e), () => {
9
- window.removeEventListener("orientationchange", e);
10
- };
11
- }, []), t;
1
+ import { useMount as o, useEventListener as r } from "ahooks";
2
+ import { useState as n } from "react";
3
+ const g = () => {
4
+ const [e, i] = n(0), t = () => i(window.innerHeight);
5
+ return o(t), r("orientationchange", t), e;
12
6
  };
13
7
  export {
14
- w as useViewportHeight
8
+ g as useViewportHeight
15
9
  };
@@ -1,7 +1,6 @@
1
1
  import { jsxs as n, jsx as r } from "react/jsx-runtime";
2
- import "react";
3
- import { createIcon as t } from "./helpers/icon.js";
4
- const c = t((o) => /* @__PURE__ */ n("svg", { viewBox: "0 0 14 14", width: 15, height: 14, fill: "none", xmlns: "http://www.w3.org/2000/svg", ...o, children: [
2
+ import { createIcon as o } from "./helpers/icon.js";
3
+ const l = o((e) => /* @__PURE__ */ n("svg", { viewBox: "0 0 14 14", width: 15, height: 14, fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
5
4
  /* @__PURE__ */ n("g", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", children: [
6
5
  /* @__PURE__ */ r("path", { d: "M2.666 9.904l1.18 1.776M9.187 2l4.479 6.746M13.43 8.39l-9.82 2.934-.709-1.067 6.514-7.912 4.009 6.038.007.006z" }),
7
6
  /* @__PURE__ */ r("path", { d: "M8.721 9.798c.54.617.47 1.558-.147 2.098-.625.541-1.566.47-2.106-.147-.042-.05-.084-.098-.12-.154l-.617-.934" })
@@ -9,5 +8,5 @@ const c = t((o) => /* @__PURE__ */ n("svg", { viewBox: "0 0 14 14", width: 15, h
9
8
  /* @__PURE__ */ r("defs", { children: /* @__PURE__ */ r("clipPath", { id: "prefix__clip0", children: /* @__PURE__ */ r("path", { fill: "#fff", transform: "translate(.666)", d: "M0 0h14v14H0z" }) }) })
10
9
  ] }));
11
10
  export {
12
- c as AnnounceIcon
11
+ l as AnnounceIcon
13
12
  };
@@ -1,5 +1,4 @@
1
1
  import { jsxs as n, jsx as o } from "react/jsx-runtime";
2
- import "react";
3
2
  import { createIcon as t } from "./helpers/icon.js";
4
3
  const e = t((r) => /* @__PURE__ */ n("svg", { viewBox: "0 0 14 14", width: 14, height: 14, fill: "none", xmlns: "http://www.w3.org/2000/svg", ...r, children: [
5
4
  /* @__PURE__ */ o(
@@ -1,5 +1,4 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import "react";
3
2
  import { createIcon as t } from "./helpers/icon.js";
4
3
  const e = t((r) => /* @__PURE__ */ o("svg", { width: 14, height: 14, fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 14 14", ...r, children: /* @__PURE__ */ o(
5
4
  "path",
@@ -1,5 +1,4 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import "react";
3
2
  import { createIcon as t } from "./helpers/icon.js";
4
3
  const e = t((r) => /* @__PURE__ */ o("svg", { viewBox: "0 0 14 12", width: 14, height: 14, fill: "none", xmlns: "http://www.w3.org/2000/svg", ...r, children: /* @__PURE__ */ o("path", { d: "M12.166 3l-7.333 7.333L1.5 7", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" }) }));
5
4
  e.tags = ["tick", "correct"];
@@ -1,8 +1,7 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import "react";
3
- import { createIcon as t } from "./helpers/icon.js";
4
- const n = t((r) => /* @__PURE__ */ o("svg", { viewBox: "0 0 14 14", width: 14, height: 14, fill: "none", xmlns: "http://www.w3.org/2000/svg", ...r, children: /* @__PURE__ */ o("path", { d: "M12.75 4.25l-5.5 5.5-5.5-5.5", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" }) }));
5
- n.tags = ["arrow"];
2
+ import { createIcon as n } from "./helpers/icon.js";
3
+ const t = n((r) => /* @__PURE__ */ o("svg", { viewBox: "0 0 14 14", width: 14, height: 14, fill: "none", xmlns: "http://www.w3.org/2000/svg", ...r, children: /* @__PURE__ */ o("path", { d: "M12.75 4.25l-5.5 5.5-5.5-5.5", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" }) }));
4
+ t.tags = ["arrow"];
6
5
  export {
7
- n as ChevronDownIcon
6
+ t as ChevronDownIcon
8
7
  };
@@ -1,5 +1,4 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import "react";
3
2
  import { createIcon as t } from "./helpers/icon.js";
4
3
  const e = t((r) => /* @__PURE__ */ o("svg", { viewBox: "0 0 14 14", width: 14, height: 14, fill: "none", xmlns: "http://www.w3.org/2000/svg", ...r, children: /* @__PURE__ */ o("path", { d: "M9 12.5L3.5 7 9 1.5", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" }) }));
5
4
  e.tags = ["arrow"];
@@ -1,5 +1,4 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import "react";
3
2
  import { createIcon as t } from "./helpers/icon.js";
4
3
  const e = t((r) => /* @__PURE__ */ o("svg", { viewBox: "0 0 14 14", width: 14, height: 14, fill: "none", xmlns: "http://www.w3.org/2000/svg", ...r, children: /* @__PURE__ */ o("path", { d: "M4.5 1.5L10 7l-5.5 5.5", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" }) }));
5
4
  e.tags = ["arrow"];
@@ -1,5 +1,4 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import "react";
3
2
  const e = (t) => /* @__PURE__ */ r("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", fill: "none", viewBox: "0 0 14 14", ...t, children: /* @__PURE__ */ r("path", { fill: "currentColor", d: "M14 7a7 7 0 10-7 7v-1.4A5.6 5.6 0 1112.6 7H14z" }) });
4
3
  export {
5
4
  e as CircleNotch
@@ -1,11 +1,13 @@
1
- import { jsxs as i, jsx as r } from "react/jsx-runtime";
2
- import "react";
3
- import { createIcon as o } from "./helpers/icon.js";
4
- const t = o((e) => /* @__PURE__ */ i("svg", { width: 14, height: 14, fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 14 14", ...e, children: [
5
- /* @__PURE__ */ r("g", { clipPath: "url(#prefix__clip0_5_1805)", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ r("path", { d: "M11.148 3.147l-8.295 8.295M11.147 11.442L2.853 3.147" }) }),
6
- /* @__PURE__ */ r("defs", { children: /* @__PURE__ */ r("clipPath", { id: "prefix__clip0_5_1805", children: /* @__PURE__ */ r("path", { fill: "#fff", d: "M0 0h14v14H0z" }) }) })
7
- ] }));
8
- t.tags = ["cross", "delete", "x"];
1
+ import { jsxs as e, jsx as o } from "react/jsx-runtime";
2
+ import { createIcon as i } from "./helpers/icon.js";
3
+ const n = i((t) => {
4
+ const r = `close-icon-clip-${Math.random().toString(36).slice(2, 11)}`;
5
+ return /* @__PURE__ */ e("svg", { width: 14, height: 14, fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 14 14", ...t, children: [
6
+ /* @__PURE__ */ o("g", { clipPath: `url(#${r})`, stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ o("path", { d: "M11.148 3.147l-8.295 8.295M11.147 11.442L2.853 3.147" }) }),
7
+ /* @__PURE__ */ o("defs", { children: /* @__PURE__ */ o("clipPath", { id: r, children: /* @__PURE__ */ o("path", { fill: "#fff", d: "M0 0h14v14H0z" }) }) })
8
+ ] });
9
+ });
10
+ n.tags = ["cross", "delete", "x"];
9
11
  export {
10
- t as CloseIcon
12
+ n as CloseIcon
11
13
  };
@@ -1,5 +1,4 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import "react";
3
2
  import { createIcon as t } from "./helpers/icon.js";
4
3
  const e = t((r) => /* @__PURE__ */ o("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", fill: "none", viewBox: "0 0 14 14", ...r, children: /* @__PURE__ */ o(
5
4
  "path",
@@ -1,5 +1,4 @@
1
1
  import { jsxs as t, jsx as o } from "react/jsx-runtime";
2
- import "react";
3
2
  import { createIcon as e } from "./helpers/icon.js";
4
3
  const n = e((r) => /* @__PURE__ */ t("svg", { viewBox: "0 0 14 14", width: 15, height: 14, fill: "none", xmlns: "http://www.w3.org/2000/svg", ...r, children: [
5
4
  /* @__PURE__ */ o(
@@ -1,7 +1,6 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import "react";
3
- import { createIcon as t } from "./helpers/icon.js";
4
- const n = t((r) => /* @__PURE__ */ o("svg", { width: 14, height: 14, fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 14 14", ...r, children: /* @__PURE__ */ o(
2
+ import { createIcon as n } from "./helpers/icon.js";
3
+ const t = n((r) => /* @__PURE__ */ o("svg", { width: 14, height: 14, fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 14 14", ...r, children: /* @__PURE__ */ o(
5
4
  "path",
6
5
  {
7
6
  d: "M6.217 10.878a4.661 4.661 0 100-9.322 4.661 4.661 0 000 9.322zM9.514 9.513l2.93 2.931",
@@ -10,7 +9,7 @@ const n = t((r) => /* @__PURE__ */ o("svg", { width: 14, height: 14, fill: "none
10
9
  strokeLinejoin: "round"
11
10
  }
12
11
  ) }));
13
- n.tags = ["magnifying glass"];
12
+ t.tags = ["magnifying glass"];
14
13
  export {
15
- n as SearchIcon
14
+ t as SearchIcon
16
15
  };
@@ -1,5 +1,4 @@
1
1
  import { jsxs as t, jsx as r } from "react/jsx-runtime";
2
- import "react";
3
2
  import { createIcon as i } from "./helpers/icon.js";
4
3
  const o = i((e) => /* @__PURE__ */ t("svg", { viewBox: "0 0 14 14", width: 14, height: 14, fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
5
4
  /* @__PURE__ */ r(
@@ -1,5 +1,4 @@
1
1
  import { jsxs as n, jsx as o } from "react/jsx-runtime";
2
- import "react";
3
2
  import { createIcon as t } from "./helpers/icon.js";
4
3
  const e = t((r) => /* @__PURE__ */ n("svg", { viewBox: "0 0 14 14", width: 14, height: 14, fill: "none", xmlns: "http://www.w3.org/2000/svg", ...r, children: [
5
4
  /* @__PURE__ */ o(
@@ -1,11 +1,7 @@
1
- import { jsx as m } from "react/jsx-runtime";
2
- import i from "./classnames.js";
3
- import "react";
4
- import { iconSizes as a } from "./iconSizes.js";
5
- const f = (o) => {
6
- const e = ({ size: r = "small", className: n, ...t }) => /* @__PURE__ */ m(o, { className: i(a[r], "relative -top-0.25 inline-block", n), ...t });
7
- return e.displayName = `Icon(${o.displayName || o.name || "Component"})`, e;
8
- };
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import c from "clsx";
3
+ import { iconSizes as i } from "./iconSizes.js";
4
+ const p = (o) => ({ size: r = "small", className: n, ...t }) => /* @__PURE__ */ e(o, { className: c(i[r], "relative -top-0.25 inline-block", n), ...t });
9
5
  export {
10
- f as createIcon
6
+ p as createIcon
11
7
  };
@@ -1,6 +1,5 @@
1
1
  import { jsx as l } from "react/jsx-runtime";
2
- import "react";
3
- const i = (h) => /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", width: "310", height: "101", fill: "none", viewBox: "0 0 310 101", ...h, children: /* @__PURE__ */ l(
2
+ const o = (h) => /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", width: "310", height: "101", fill: "none", viewBox: "0 0 310 101", ...h, children: /* @__PURE__ */ l(
4
3
  "path",
5
4
  {
6
5
  fill: "currentColor",
@@ -10,5 +9,5 @@ const i = (h) => /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg",
10
9
  }
11
10
  ) });
12
11
  export {
13
- i as XolaLogoSimple
12
+ o as XolaLogoSimple
14
13
  };