@adgytec/adgytec-web-ui-components 2.0.0 → 2.1.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 (230) hide show
  1. package/dist/assets/AppBar.css +1 -0
  2. package/dist/assets/AppBarAvatar.css +1 -0
  3. package/dist/assets/AppBarHeadline.css +1 -0
  4. package/dist/assets/Navigation.css +1 -0
  5. package/dist/assets/NavigationScrollContainer.css +1 -0
  6. package/dist/assets/NavigationSection.css +1 -0
  7. package/dist/assets/NavigationSectionLabel.css +1 -0
  8. package/dist/assets/SideSheet.css +1 -1
  9. package/dist/assets/Tag.css +1 -1
  10. package/dist/assets/core10.css +1 -0
  11. package/dist/assets/core2.css +1 -1
  12. package/dist/assets/core3.css +1 -1
  13. package/dist/assets/core9.css +1 -0
  14. package/dist/chunks/ActionDialog +10 -10
  15. package/dist/chunks/AppBar +65 -0
  16. package/dist/chunks/AppBar.map +1 -0
  17. package/dist/chunks/AppBarAvatar +35 -0
  18. package/dist/chunks/AppBarAvatar.map +1 -0
  19. package/dist/chunks/AppBarHeadline +19 -0
  20. package/dist/chunks/AppBarHeadline.map +1 -0
  21. package/dist/chunks/BaseCalendar +35 -35
  22. package/dist/chunks/BottomSheet +17 -13
  23. package/dist/chunks/BottomSheet.map +1 -1
  24. package/dist/chunks/BottomSheetModal +5 -5
  25. package/dist/chunks/ButtonGroup +4 -4
  26. package/dist/chunks/CalendarCell +14 -14
  27. package/dist/chunks/CalendarGrid +7 -7
  28. package/dist/chunks/CalendarMenuItem +3 -3
  29. package/dist/chunks/CenteredSlider +16 -16
  30. package/dist/chunks/ComboBox +12 -12
  31. package/dist/chunks/ComboBoxTrigger +6 -6
  32. package/dist/chunks/ConnectedButtonGroup +4 -4
  33. package/dist/chunks/Dialog +10 -6
  34. package/dist/chunks/Dialog.map +1 -1
  35. package/dist/chunks/Disclosure +3 -3
  36. package/dist/chunks/DisclosureGroup +4 -4
  37. package/dist/chunks/DisclosureHeader +15 -15
  38. package/dist/chunks/DisclosurePanel +4 -4
  39. package/dist/chunks/Divider +3 -3
  40. package/dist/chunks/FieldError +3 -3
  41. package/dist/chunks/Input +12 -12
  42. package/dist/chunks/Input2 +28 -28
  43. package/dist/chunks/Modal +3 -3
  44. package/dist/chunks/ModalOverlay +3 -3
  45. package/dist/chunks/Navigation +68 -0
  46. package/dist/chunks/Navigation.map +1 -0
  47. package/dist/chunks/NavigationScrollContainer +32 -0
  48. package/dist/chunks/NavigationScrollContainer.map +1 -0
  49. package/dist/chunks/NavigationSection +10 -0
  50. package/dist/chunks/NavigationSection.map +1 -0
  51. package/dist/chunks/NavigationSectionLabel +12 -0
  52. package/dist/chunks/NavigationSectionLabel.map +1 -0
  53. package/dist/chunks/NavigationState +69 -0
  54. package/dist/chunks/NavigationState.map +1 -0
  55. package/dist/chunks/Popover +3 -3
  56. package/dist/chunks/Radio +13 -13
  57. package/dist/chunks/SearchField +10 -10
  58. package/dist/chunks/SelectTrigger +12 -12
  59. package/dist/chunks/SideSheet +50 -37
  60. package/dist/chunks/SideSheet.map +1 -1
  61. package/dist/chunks/SideSheetModal +6 -6
  62. package/dist/chunks/Slider +13 -13
  63. package/dist/chunks/SliderOutput +7 -7
  64. package/dist/chunks/SliderStops +9 -9
  65. package/dist/chunks/SliderThumb +5 -5
  66. package/dist/chunks/Snackbar +23 -23
  67. package/dist/chunks/SplitButton +20 -21
  68. package/dist/chunks/SplitButton.map +1 -1
  69. package/dist/chunks/SplitButtonTrigger +28 -28
  70. package/dist/chunks/SplitButtonTrigger.map +1 -1
  71. package/dist/chunks/Switch +21 -21
  72. package/dist/chunks/Switch.map +1 -1
  73. package/dist/chunks/Tab +12 -12
  74. package/dist/chunks/TabList +3 -3
  75. package/dist/chunks/TabPanel +3 -3
  76. package/dist/chunks/TabPanels +3 -3
  77. package/dist/chunks/Tabs +3 -3
  78. package/dist/chunks/Tag +18 -18
  79. package/dist/chunks/Tag.map +1 -1
  80. package/dist/chunks/ThemeSelector +42 -42
  81. package/dist/chunks/Toolbar +6 -6
  82. package/dist/chunks/Tooltip +3 -3
  83. package/dist/chunks/core +39 -39
  84. package/dist/chunks/core.map +1 -1
  85. package/dist/chunks/core2 +8 -8
  86. package/dist/chunks/core2.map +1 -1
  87. package/dist/chunks/core3 +3 -3
  88. package/dist/chunks/core8 +18 -0
  89. package/dist/chunks/core8.map +1 -0
  90. package/dist/chunks/core9 +6 -0
  91. package/dist/chunks/core9.map +1 -0
  92. package/dist/chunks/navContext +12 -0
  93. package/dist/chunks/navContext.map +1 -0
  94. package/dist/chunks/useSplash +7 -7
  95. package/dist/components/AppBar/AppBar/index.js +2 -0
  96. package/dist/components/AppBar/AppBarAction/index.js +12 -0
  97. package/dist/components/AppBar/AppBarAction/index.js.map +1 -0
  98. package/dist/components/AppBar/AppBarAvatar/index.js +2 -0
  99. package/dist/components/AppBar/AppBarHeadline/index.js +2 -0
  100. package/dist/components/AppBar/AppBarState/index.js +17 -0
  101. package/dist/components/AppBar/AppBarState/index.js.map +1 -0
  102. package/dist/components/AppBar/core/index.js +24 -0
  103. package/dist/components/AppBar/core/index.js.map +1 -0
  104. package/dist/components/AppBar/index.js +7 -0
  105. package/dist/components/Button/Button/index.js +16 -16
  106. package/dist/components/Button/IconButton/index.js +12 -12
  107. package/dist/components/Button/LinkButton/index.js +16 -16
  108. package/dist/components/Button/LinkIconButton/index.js +12 -12
  109. package/dist/components/Button/SplitButton/SplitButtonPrimary/index.js +32 -32
  110. package/dist/components/Button/SplitButton/SplitButtonPrimary/index.js.map +1 -1
  111. package/dist/components/Button/ToggleButton/index.js +17 -17
  112. package/dist/components/Button/ToggleIconButton/index.js +15 -15
  113. package/dist/components/Calendar/Calendar/index.js +4 -4
  114. package/dist/components/Calendar/CalendarMonthMenu/index.js +10 -10
  115. package/dist/components/Calendar/CalendarYearMenu/index.js +7 -7
  116. package/dist/components/Calendar/RangeCalendar/index.js +4 -4
  117. package/dist/components/Dialog/core/index.js +9 -2
  118. package/dist/components/Dialog/core/index.js.map +1 -1
  119. package/dist/components/Dialog/index.js +6 -6
  120. package/dist/components/Input/DateField/index.js +9 -9
  121. package/dist/components/Input/DatePicker/DatePicker/index.js +15 -15
  122. package/dist/components/Input/DatePicker/DateRangePicker/index.js +19 -19
  123. package/dist/components/Input/Description/index.js +3 -3
  124. package/dist/components/Input/Label/index.js +3 -3
  125. package/dist/components/Input/Select/Select/index.js +8 -8
  126. package/dist/components/Input/Select/SelectItem/index.js +18 -18
  127. package/dist/components/Input/Select/SelectList/index.js +3 -3
  128. package/dist/components/Input/Select/SelectListSection/index.js +3 -3
  129. package/dist/components/Input/Select/SelectListSectionHeader/index.js +3 -3
  130. package/dist/components/Input/Slider/RangeSlider/index.js +13 -13
  131. package/dist/components/Input/TextArea/index.js +11 -11
  132. package/dist/components/Input/TimeField/index.js +9 -9
  133. package/dist/components/Menu/Menu/index.js +4 -4
  134. package/dist/components/Menu/MenuItem/index.js +19 -19
  135. package/dist/components/Menu/MenuSection/index.js +3 -3
  136. package/dist/components/Menu/MenuSectionHeader/index.js +3 -3
  137. package/dist/components/Menu/MenuTrigger/index.js +4 -4
  138. package/dist/components/Navigation/Navigation/index.js +3 -0
  139. package/dist/components/Navigation/NavigationItem/NavigationButton/index.js +27 -0
  140. package/dist/components/Navigation/NavigationItem/NavigationButton/index.js.map +1 -0
  141. package/dist/components/Navigation/NavigationItem/NavigationItemIconRenderer/index.js +12 -0
  142. package/dist/components/Navigation/NavigationItem/NavigationItemIconRenderer/index.js.map +1 -0
  143. package/dist/components/Navigation/NavigationItem/NavigationLink/index.js +25 -0
  144. package/dist/components/Navigation/NavigationItem/NavigationLink/index.js.map +1 -0
  145. package/dist/components/Navigation/NavigationItem/core/index.js +2 -0
  146. package/dist/components/Navigation/NavigationItem/index.js +3 -0
  147. package/dist/components/Navigation/NavigationScrollContainer/index.js +2 -0
  148. package/dist/components/Navigation/NavigationSection/NavigationSection/index.js +2 -0
  149. package/dist/components/Navigation/NavigationSection/NavigationSectionLabel/index.js +2 -0
  150. package/dist/components/Navigation/NavigationSection/index.js +3 -0
  151. package/dist/components/Navigation/NavigationState/index.js +2 -0
  152. package/dist/components/Navigation/SubNavigation/SubNavigation/index.js +63 -0
  153. package/dist/components/Navigation/SubNavigation/SubNavigation/index.js.map +1 -0
  154. package/dist/components/Navigation/SubNavigation/SubNavigationTrigger/index.js +34 -0
  155. package/dist/components/Navigation/SubNavigation/SubNavigationTrigger/index.js.map +1 -0
  156. package/dist/components/Navigation/SubNavigation/index.js +3 -0
  157. package/dist/components/Navigation/core/index.js +2 -0
  158. package/dist/components/Navigation/index.js +10 -0
  159. package/dist/components/Sheets/SideSheet/index.js +2 -2
  160. package/dist/components/Sheets/index.js +2 -2
  161. package/dist/components/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipSubhead/index.js +3 -3
  162. package/dist/components/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipText/index.js +3 -3
  163. package/dist/components/Tooltip/TooltipTrigger/index.js +3 -3
  164. package/dist/index.js +122 -107
  165. package/dist/index.js.map +1 -1
  166. package/dist/src/components/AppBar/AppBar/AppBar.d.ts +2 -0
  167. package/dist/src/components/AppBar/AppBar/index.d.ts +2 -0
  168. package/dist/src/components/AppBar/AppBar/types.d.ts +9 -0
  169. package/dist/src/components/AppBar/AppBarAction/AppBarAction.d.ts +2 -0
  170. package/dist/src/components/AppBar/AppBarAction/index.d.ts +1 -0
  171. package/dist/src/components/AppBar/AppBarAvatar/AppBarAvatar.d.ts +2 -0
  172. package/dist/src/components/AppBar/AppBarAvatar/index.d.ts +1 -0
  173. package/dist/src/components/AppBar/AppBarHeadline/AppBarHeadline.d.ts +2 -0
  174. package/dist/src/components/AppBar/AppBarHeadline/index.d.ts +1 -0
  175. package/dist/src/components/AppBar/AppBarState/AppBarState.d.ts +5 -0
  176. package/dist/src/components/AppBar/AppBarState/context.d.ts +5 -0
  177. package/dist/src/components/AppBar/AppBarState/index.d.ts +2 -0
  178. package/dist/src/components/AppBar/core/alignment.d.ts +1 -0
  179. package/dist/src/components/AppBar/core/context.d.ts +10 -0
  180. package/dist/src/components/AppBar/core/index.d.ts +3 -0
  181. package/dist/src/components/AppBar/core/size.d.ts +3 -0
  182. package/dist/src/components/AppBar/index.d.ts +6 -0
  183. package/dist/src/components/Dialog/core/context.d.ts +2 -0
  184. package/dist/src/components/Dialog/core/index.d.ts +1 -0
  185. package/dist/src/components/Input/Switch/types.d.ts +3 -0
  186. package/dist/src/components/Navigation/Navigation/Navigation.d.ts +2 -0
  187. package/dist/src/components/Navigation/Navigation/index.d.ts +4 -0
  188. package/dist/src/components/Navigation/Navigation/navContext.d.ts +7 -0
  189. package/dist/src/components/Navigation/Navigation/navRenderingContext.d.ts +5 -0
  190. package/dist/src/components/Navigation/Navigation/types.d.ts +10 -0
  191. package/dist/src/components/Navigation/NavigationItem/NavigationButton/NavigationButton.d.ts +2 -0
  192. package/dist/src/components/Navigation/NavigationItem/NavigationButton/index.d.ts +2 -0
  193. package/dist/src/components/Navigation/NavigationItem/NavigationButton/types.d.ts +7 -0
  194. package/dist/src/components/Navigation/NavigationItem/NavigationItemIconRenderer/NavigationItemIconRenderer.d.ts +6 -0
  195. package/dist/src/components/Navigation/NavigationItem/NavigationItemIconRenderer/index.d.ts +1 -0
  196. package/dist/src/components/Navigation/NavigationItem/NavigationLink/NavigationLink.d.ts +2 -0
  197. package/dist/src/components/Navigation/NavigationItem/NavigationLink/index.d.ts +2 -0
  198. package/dist/src/components/Navigation/NavigationItem/NavigationLink/types.d.ts +4 -0
  199. package/dist/src/components/Navigation/NavigationItem/core/index.d.ts +1 -0
  200. package/dist/src/components/Navigation/NavigationItem/core/navigationItem.d.ts +10 -0
  201. package/dist/src/components/Navigation/NavigationItem/index.d.ts +2 -0
  202. package/dist/src/components/Navigation/NavigationScrollContainer/NavigationScrollContainer.d.ts +1 -0
  203. package/dist/src/components/Navigation/NavigationScrollContainer/index.d.ts +1 -0
  204. package/dist/src/components/Navigation/NavigationSection/NavigationSection/NavigationSection.d.ts +1 -0
  205. package/dist/src/components/Navigation/NavigationSection/NavigationSection/index.d.ts +1 -0
  206. package/dist/src/components/Navigation/NavigationSection/NavigationSectionLabel/NavigationSectionLabel.d.ts +2 -0
  207. package/dist/src/components/Navigation/NavigationSection/NavigationSectionLabel/index.d.ts +1 -0
  208. package/dist/src/components/Navigation/NavigationSection/index.d.ts +2 -0
  209. package/dist/src/components/Navigation/NavigationState/NavigationState.d.ts +4 -0
  210. package/dist/src/components/Navigation/NavigationState/context.d.ts +10 -0
  211. package/dist/src/components/Navigation/NavigationState/index.d.ts +2 -0
  212. package/dist/src/components/Navigation/NavigationState/types.d.ts +5 -0
  213. package/dist/src/components/Navigation/SubNavigation/SubNavigation/SubNavigation.d.ts +4 -0
  214. package/dist/src/components/Navigation/SubNavigation/SubNavigation/index.d.ts +1 -0
  215. package/dist/src/components/Navigation/SubNavigation/SubNavigationTrigger/SubNavigationTrigger.d.ts +6 -0
  216. package/dist/src/components/Navigation/SubNavigation/SubNavigationTrigger/index.d.ts +1 -0
  217. package/dist/src/components/Navigation/SubNavigation/index.d.ts +2 -0
  218. package/dist/src/components/Navigation/core/index.d.ts +3 -0
  219. package/dist/src/components/Navigation/core/navLabelContext.d.ts +3 -0
  220. package/dist/src/components/Navigation/core/navigation.d.ts +3 -0
  221. package/dist/src/components/Navigation/core/navigationInfo.d.ts +6 -0
  222. package/dist/src/components/Navigation/index.d.ts +5 -0
  223. package/dist/src/components/Sheets/SideSheet/SideSheetDialog.d.ts +2 -0
  224. package/dist/src/components/Sheets/SideSheet/index.d.ts +1 -0
  225. package/dist/src/components/Sheets/SideSheet/types.d.ts +2 -0
  226. package/dist/src/index.d.ts +2 -0
  227. package/dist/src/utils/index.d.ts +1 -0
  228. package/dist/src/utils/scroll/index.d.ts +1 -0
  229. package/dist/src/utils/scroll/scroll.d.ts +10 -0
  230. package/package.json +1 -1
@@ -1,11 +1,11 @@
1
- import { t as e } from "../../../chunks/Icon";
2
- import { t } from "../../../chunks/Loader";
3
- import { n, t as r } from "../../../chunks/useSplash";
4
- import { t as i } from "../../../chunks/tapTarget";
1
+ import { t as e } from "../../../chunks/tapTarget";
2
+ import { t } from "../../../chunks/Icon";
3
+ import { t as n } from "../../../chunks/Loader";
4
+ import { n as r, t as i } from "../../../chunks/useSplash";
5
5
  import { a, c as o, d as s, f as c, i as l, l as u, n as d, o as f, p, t as m, u as h } from "../../../chunks/core";
6
6
  import { clsx as g } from "clsx";
7
- import { Button as _ } from "react-aria-components";
8
- import { jsx as v, jsxs as y } from "react/jsx-runtime";
7
+ import { jsx as _, jsxs as v } from "react/jsx-runtime";
8
+ import { Button as y } from "react-aria-components";
9
9
  //#region src/components/Button/Button/Button.tsx
10
10
  var b = ({ size: b, shape: x, color: S, tooltip: C, icon: w, children: T, onPress: E, iconPlacement: D, className: O, ...k }) => {
11
11
  let { buttonColor: A, buttonShape: j, buttonSize: M, buttonIconPlacement: N } = d({
@@ -13,19 +13,19 @@ var b = ({ size: b, shape: x, color: S, tooltip: C, icon: w, children: T, onPres
13
13
  shape: x,
14
14
  color: S,
15
15
  iconPlacement: D
16
- }), { splashInfo: P, handlePress: F } = r(E), I = typeof T == "function", L = p({
16
+ }), { splashInfo: P, handlePress: F } = i(E), I = typeof T == "function", L = p({
17
17
  shape: j,
18
18
  size: M,
19
19
  color: A
20
20
  });
21
- return m(/* @__PURE__ */ v(_, {
21
+ return m(/* @__PURE__ */ _(y, {
22
22
  onPress: F,
23
- className: (e) => g(c, i, o(M), h(A), typeof O == "function" ? O(e) : O),
23
+ className: (t) => g(c, e, o(M), h(A), typeof O == "function" ? O(t) : O),
24
24
  ...k,
25
25
  ...L,
26
26
  "data-button": !0,
27
- children: (r) => {
28
- let { isPending: i, isDisabled: o, isFocusVisible: c, isFocused: d, isPressed: p, isHovered: m } = r, h = {
27
+ children: (e) => {
28
+ let { isPending: i, isDisabled: o, isFocusVisible: c, isFocused: d, isPressed: p, isHovered: m } = e, h = {
29
29
  ...L,
30
30
  "data-hovered": m || void 0,
31
31
  "data-disabled": o || void 0,
@@ -33,17 +33,17 @@ var b = ({ size: b, shape: x, color: S, tooltip: C, icon: w, children: T, onPres
33
33
  "data-focus-visible": c || void 0,
34
34
  "data-pressed": p || void 0,
35
35
  "data-visual-button": !0
36
- }, _ = l[M], b = i ? /* @__PURE__ */ v(t, { size: _ }) : w && /* @__PURE__ */ v(e, {
36
+ }, y = l[M], b = i ? /* @__PURE__ */ _(n, { size: y }) : w && /* @__PURE__ */ _(t, {
37
37
  icon: w,
38
- size: _
38
+ size: y
39
39
  });
40
- return /* @__PURE__ */ y("span", {
40
+ return /* @__PURE__ */ v("span", {
41
41
  className: g(s, u, f, a[M]),
42
42
  ...h,
43
43
  children: [
44
- P && /* @__PURE__ */ v(n, { ...P }),
44
+ P && /* @__PURE__ */ _(r, { ...P }),
45
45
  N === "start" && b,
46
- I ? T(r) : T,
46
+ I ? T(e) : T,
47
47
  N === "end" && b
48
48
  ]
49
49
  });
@@ -1,18 +1,18 @@
1
- import { t as e } from "../../../chunks/Icon";
2
- import { t } from "../../../chunks/Loader";
3
- import { n, t as r } from "../../../chunks/useSplash";
4
- import { t as i } from "../../../chunks/tapTarget";
1
+ import { t as e } from "../../../chunks/tapTarget";
2
+ import { t } from "../../../chunks/Icon";
3
+ import { t as n } from "../../../chunks/Loader";
4
+ import { n as r, t as i } from "../../../chunks/useSplash";
5
5
  import { c as a, d as o, f as s, l as c, n as l, o as u, p as d, s as f, t as p, u as m } from "../../../chunks/core";
6
6
  import { clsx as h } from "clsx";
7
- import { Button as g } from "react-aria-components";
8
- import { jsx as _, jsxs as v } from "react/jsx-runtime";
7
+ import { jsx as g, jsxs as _ } from "react/jsx-runtime";
8
+ import { Button as v } from "react-aria-components";
9
9
  //#region src/components/Button/IconButton/IconButton.tsx
10
10
  var y = ({ size: y, shape: b, color: x, width: S = "default", tooltip: C, icon: w, onPress: T, className: E, ...D }) => {
11
11
  let { buttonColor: O, buttonShape: k, buttonSize: A } = l({
12
12
  size: y,
13
13
  shape: b,
14
14
  color: x
15
- }), { splashInfo: j, handlePress: M } = r(T), N = {
15
+ }), { splashInfo: j, handlePress: M } = i(T), N = {
16
16
  ...d({
17
17
  shape: k,
18
18
  size: A,
@@ -21,13 +21,13 @@ var y = ({ size: y, shape: b, color: x, width: S = "default", tooltip: C, icon:
21
21
  "data-width": S,
22
22
  "data-icon-button": !0
23
23
  };
24
- return p(/* @__PURE__ */ _(g, {
24
+ return p(/* @__PURE__ */ g(v, {
25
25
  onPress: M,
26
- className: (e) => h(s, i, a(A), m(O), typeof E == "function" ? E(e) : E),
26
+ className: (t) => h(s, e, a(A), m(O), typeof E == "function" ? E(t) : E),
27
27
  ...D,
28
28
  ...N,
29
29
  "data-button": !0,
30
- children: ({ isPending: r, isDisabled: i, isFocusVisible: a, isFocused: s, isPressed: l, isHovered: d }) => {
30
+ children: ({ isPending: e, isDisabled: i, isFocusVisible: a, isFocused: s, isPressed: l, isHovered: d }) => {
31
31
  let p = {
32
32
  ...N,
33
33
  "data-hovered": d || void 0,
@@ -37,10 +37,10 @@ var y = ({ size: y, shape: b, color: x, width: S = "default", tooltip: C, icon:
37
37
  "data-pressed": l || void 0,
38
38
  "data-visual-button": !0
39
39
  }, m = f[A];
40
- return /* @__PURE__ */ v("span", {
40
+ return /* @__PURE__ */ _("span", {
41
41
  className: h(o, c, u),
42
42
  ...p,
43
- children: [j && /* @__PURE__ */ _(n, { ...j }), r ? /* @__PURE__ */ _(t, { size: m }) : w && /* @__PURE__ */ _(e, {
43
+ children: [j && /* @__PURE__ */ g(r, { ...j }), e ? /* @__PURE__ */ g(n, { size: m }) : w && /* @__PURE__ */ g(t, {
44
44
  icon: w,
45
45
  size: m
46
46
  })]
@@ -1,10 +1,10 @@
1
- import { t as e } from "../../../chunks/Icon";
2
- import { n as t, t as n } from "../../../chunks/useSplash";
3
- import { t as r } from "../../../chunks/tapTarget";
1
+ import { t as e } from "../../../chunks/tapTarget";
2
+ import { t } from "../../../chunks/Icon";
3
+ import { n, t as r } from "../../../chunks/useSplash";
4
4
  import { a as i, c as a, d as o, f as s, i as c, l, n as u, o as d, p as f, t as p, u as m } from "../../../chunks/core";
5
5
  import { clsx as h } from "clsx";
6
- import { Link as g } from "react-aria-components";
7
- import { jsx as _, jsxs as v } from "react/jsx-runtime";
6
+ import { jsx as g, jsxs as _ } from "react/jsx-runtime";
7
+ import { Link as v } from "react-aria-components";
8
8
  //#region src/components/Button/LinkButton/LinkButton.tsx
9
9
  var y = ({ size: y, shape: b, color: x, tooltip: S, icon: C, children: w, onPress: T, className: E, iconPlacement: D, ...O }) => {
10
10
  let { buttonColor: k, buttonShape: A, buttonSize: j, buttonIconPlacement: M } = u({
@@ -12,20 +12,20 @@ var y = ({ size: y, shape: b, color: x, tooltip: S, icon: C, children: w, onPres
12
12
  shape: b,
13
13
  color: x,
14
14
  iconPlacement: D
15
- }), { splashInfo: N, handlePress: P } = n(T), F = typeof w == "function", I = f({
15
+ }), { splashInfo: N, handlePress: P } = r(T), F = typeof w == "function", I = f({
16
16
  shape: A,
17
17
  size: j,
18
18
  color: k
19
19
  });
20
- return p(/* @__PURE__ */ _(g, {
20
+ return p(/* @__PURE__ */ g(v, {
21
21
  onPress: P,
22
- className: (e) => h(s, r, a(j), m(k), typeof E == "function" ? E(e) : E),
22
+ className: (t) => h(s, e, a(j), m(k), typeof E == "function" ? E(t) : E),
23
23
  ...O,
24
24
  ...I,
25
25
  "data-button": !0,
26
26
  "data-link-button": !0,
27
- children: (n) => {
28
- let { isDisabled: r, isFocusVisible: a, isFocused: s, isPressed: u, isHovered: f } = n, p = {
27
+ children: (e) => {
28
+ let { isDisabled: r, isFocusVisible: a, isFocused: s, isPressed: u, isHovered: f } = e, p = {
29
29
  ...I,
30
30
  "data-hovered": f || void 0,
31
31
  "data-disabled": r || void 0,
@@ -33,18 +33,18 @@ var y = ({ size: y, shape: b, color: x, tooltip: S, icon: C, children: w, onPres
33
33
  "data-focus-visible": a || void 0,
34
34
  "data-pressed": u || void 0,
35
35
  "data-visual-button": !0
36
- }, m = c[j], g = C && /* @__PURE__ */ _(e, {
36
+ }, m = c[j], v = C && /* @__PURE__ */ g(t, {
37
37
  icon: C,
38
38
  size: m
39
39
  });
40
- return /* @__PURE__ */ v("span", {
40
+ return /* @__PURE__ */ _("span", {
41
41
  className: h(o, l, d, i[j]),
42
42
  ...p,
43
43
  children: [
44
- N && /* @__PURE__ */ _(t, { ...N }),
45
- M === "start" && g,
46
- F ? w(n) : w,
47
- M === "end" && g
44
+ N && /* @__PURE__ */ g(n, { ...N }),
45
+ M === "start" && v,
46
+ F ? w(e) : w,
47
+ M === "end" && v
48
48
  ]
49
49
  });
50
50
  }
@@ -1,17 +1,17 @@
1
- import { t as e } from "../../../chunks/Icon";
2
- import { n as t, t as n } from "../../../chunks/useSplash";
3
- import { t as r } from "../../../chunks/tapTarget";
1
+ import { t as e } from "../../../chunks/tapTarget";
2
+ import { t } from "../../../chunks/Icon";
3
+ import { n, t as r } from "../../../chunks/useSplash";
4
4
  import { c as i, d as a, f as o, l as s, n as c, o as l, p as u, s as d, t as f, u as p } from "../../../chunks/core";
5
5
  import { clsx as m } from "clsx";
6
- import { Link as h } from "react-aria-components";
7
- import { jsx as g, jsxs as _ } from "react/jsx-runtime";
6
+ import { jsx as h, jsxs as g } from "react/jsx-runtime";
7
+ import { Link as _ } from "react-aria-components";
8
8
  //#region src/components/Button/LinkIconButton/LinkIconButton.tsx
9
9
  var v = ({ size: v, shape: y, color: b, width: x = "default", tooltip: S, icon: C, onPress: w, className: T, ...E }) => {
10
10
  let { buttonColor: D, buttonShape: O, buttonSize: k } = c({
11
11
  size: v,
12
12
  shape: y,
13
13
  color: b
14
- }), { splashInfo: A, handlePress: j } = n(w), M = {
14
+ }), { splashInfo: A, handlePress: j } = r(w), M = {
15
15
  ...u({
16
16
  shape: O,
17
17
  size: k,
@@ -20,27 +20,27 @@ var v = ({ size: v, shape: y, color: b, width: x = "default", tooltip: S, icon:
20
20
  "data-width": x,
21
21
  "data-icon-button": !0
22
22
  };
23
- return f(/* @__PURE__ */ g(h, {
23
+ return f(/* @__PURE__ */ h(_, {
24
24
  onPress: j,
25
- className: (e) => m(o, r, i(k), p(D), typeof T == "function" ? T(e) : T),
25
+ className: (t) => m(o, e, i(k), p(D), typeof T == "function" ? T(t) : T),
26
26
  ...E,
27
27
  ...M,
28
28
  "data-button": !0,
29
29
  "data-link-button": !0,
30
- children: ({ isDisabled: n, isFocusVisible: r, isFocused: i, isPressed: o, isHovered: c }) => {
30
+ children: ({ isDisabled: e, isFocusVisible: r, isFocused: i, isPressed: o, isHovered: c }) => {
31
31
  let u = {
32
32
  ...M,
33
33
  "data-hovered": c || void 0,
34
- "data-disabled": n || void 0,
34
+ "data-disabled": e || void 0,
35
35
  "data-focused": i || void 0,
36
36
  "data-focus-visible": r || void 0,
37
37
  "data-pressed": o || void 0,
38
38
  "data-visual-button": !0
39
39
  }, f = d[k];
40
- return /* @__PURE__ */ _("span", {
40
+ return /* @__PURE__ */ g("span", {
41
41
  className: m(a, s, l),
42
42
  ...u,
43
- children: [A && /* @__PURE__ */ g(t, { ...A }), C && /* @__PURE__ */ g(e, {
43
+ children: [A && /* @__PURE__ */ h(n, { ...A }), C && /* @__PURE__ */ h(t, {
44
44
  icon: C,
45
45
  size: f
46
46
  })]
@@ -1,50 +1,50 @@
1
- import { t as e } from "../../../../chunks/Icon";
2
- import { t } from "../../../../chunks/Loader";
3
- import { n, t as r } from "../../../../chunks/useSplash";
4
- import { t as i } from "../../../../chunks/tapTarget";
5
- import { a, d as o, f as s, i as c, l, t as u } from "../../../../chunks/core";
6
- import { i as d, t as f } from "../../../../chunks/core2";
7
- import { useSplitButtonContext as p } from "../SplitButtonContext/index.js";
8
- import { clsx as m } from "clsx";
9
- import { Button as h } from "react-aria-components";
1
+ import { t as e } from "../../../../chunks/tapTarget";
2
+ import { t } from "../../../../chunks/Icon";
3
+ import { t as n } from "../../../../chunks/Loader";
4
+ import { n as r, t as i } from "../../../../chunks/useSplash";
5
+ import { a, d as o, f as s, i as c, l, t as u, u as d } from "../../../../chunks/core";
6
+ import { i as f, t as p } from "../../../../chunks/core2";
7
+ import { useSplitButtonContext as m } from "../SplitButtonContext/index.js";
8
+ import { clsx as h } from "clsx";
10
9
  import { jsx as g, jsxs as _ } from "react/jsx-runtime";
10
+ import { Button as v } from "react-aria-components";
11
11
  //#region src/components/Button/SplitButton/SplitButtonPrimary/SplitButtonPrimary.tsx
12
- var v = ({ tooltip: v, icon: y, children: b, onPress: x, isDisabled: S, isPending: C, className: w, iconPlacement: T = "start", ...E }) => {
13
- let D = p(), { splashInfo: O, handlePress: k } = r(x), A = typeof b == "function", j = C || D.isPending;
14
- return u(/* @__PURE__ */ g(h, {
15
- onPress: k,
16
- isDisabled: S || D.isDisabled,
17
- isPending: j,
18
- ...E,
19
- className: (e) => m(s, i, typeof w == "function" ? w(e) : w),
12
+ var y = ({ tooltip: y, icon: b, children: x, onPress: S, isDisabled: C, isPending: w, className: T, iconPlacement: E = "start", ...D }) => {
13
+ let O = m(), { splashInfo: k, handlePress: A } = i(S), j = typeof x == "function", M = w || O.isPending;
14
+ return u(/* @__PURE__ */ g(v, {
15
+ onPress: A,
16
+ isDisabled: C || O.isDisabled,
17
+ isPending: M,
18
+ ...D,
19
+ className: (t) => h(s, e, p, d(O.color), typeof T == "function" ? T(t) : T),
20
20
  "data-button": !0,
21
21
  "data-split-button-primary": !0,
22
- children: (r) => {
23
- let { isDisabled: i, isFocusVisible: s, isFocused: u, isPressed: p, isHovered: h } = r, v = {
24
- "data-hovered": h || void 0,
22
+ children: (e) => {
23
+ let { isDisabled: i, isFocusVisible: s, isFocused: u, isPressed: d, isHovered: p } = e, m = {
24
+ "data-hovered": p || void 0,
25
25
  "data-disabled": i || void 0,
26
26
  "data-focused": u || void 0,
27
27
  "data-focus-visible": s || void 0,
28
- "data-pressed": p || void 0,
28
+ "data-pressed": d || void 0,
29
29
  "data-visual-button": !0
30
- }, x = c[D.size], S = r.isPending ? /* @__PURE__ */ g(t, { size: x }) : y && /* @__PURE__ */ g(e, {
31
- icon: y,
32
- size: x
30
+ }, v = c[O.size], y = e.isPending ? /* @__PURE__ */ g(n, { size: v }) : b && /* @__PURE__ */ g(t, {
31
+ icon: b,
32
+ size: v
33
33
  });
34
34
  return /* @__PURE__ */ _("span", {
35
- className: m(o, l, a[D.size], f, d),
36
- ...v,
35
+ className: h(o, l, f, a[O.size]),
36
+ ...m,
37
37
  children: [
38
- O && /* @__PURE__ */ g(n, { ...O }),
39
- T === "start" && S,
40
- A ? b(r) : b,
41
- T === "end" && S
38
+ k && /* @__PURE__ */ g(r, { ...k }),
39
+ E === "start" && y,
40
+ j ? x(e) : x,
41
+ E === "end" && y
42
42
  ]
43
43
  });
44
44
  }
45
- }), v);
45
+ }), y);
46
46
  };
47
47
  //#endregion
48
- export { v as SplitButtonPrimary };
48
+ export { y as SplitButtonPrimary };
49
49
 
50
50
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../../src/components/Button/SplitButton/SplitButtonPrimary/SplitButtonPrimary.tsx"],"sourcesContent":["import { clsx } from \"clsx\";\nimport { Button as AriaButton } from \"react-aria-components\";\nimport { Icon } from \"@/components/Icon\";\nimport { Loader } from \"@/components/Loader\";\nimport { Splash } from \"@/components/Splash/Splash\";\nimport { useSplash } from \"@/components/Splash/useSplash\";\nimport { TapTarget } from \"@/utils/tapTarget\";\nimport {\n ButtonCore,\n ButtonIconSizeMapping,\n ButtonLabelTextMapping,\n ButtonReset,\n buttonColorBase,\n withTooltip,\n} from \"../../core\";\nimport { SplitButtonPrimaryBase, SplitButtonVariantBase } from \"../core\";\nimport { useSplitButtonContext } from \"../SplitButtonContext\";\nimport type { SplitButtonPrimaryProps } from \"./types\";\n\nexport const SplitButtonPrimary: React.FC<SplitButtonPrimaryProps> = ({\n tooltip,\n icon,\n children,\n onPress,\n isDisabled,\n isPending,\n className,\n iconPlacement = \"start\",\n ...props\n}) => {\n const splitButtonState = useSplitButtonContext();\n\n const { splashInfo, handlePress } = useSplash(onPress);\n const isChildFunc = typeof children === \"function\";\n\n const pending = isPending || splitButtonState.isPending;\n const disabled = isDisabled || splitButtonState.isDisabled;\n\n return withTooltip(\n <AriaButton\n onPress={handlePress}\n isDisabled={disabled}\n isPending={pending}\n {...props}\n className={(renderProps) =>\n clsx(\n ButtonReset,\n TapTarget,\n typeof className === \"function\"\n ? className(renderProps)\n : className\n )\n }\n data-button\n data-split-button-primary\n >\n {(renderProps) => {\n const {\n isDisabled,\n isFocusVisible,\n isFocused,\n isPressed,\n isHovered,\n } = renderProps;\n\n const dataAttrs = {\n \"data-hovered\": isHovered || undefined,\n \"data-disabled\": isDisabled || undefined,\n \"data-focused\": isFocused || undefined,\n \"data-focus-visible\": isFocusVisible || undefined,\n \"data-pressed\": isPressed || undefined,\n \"data-visual-button\": true,\n };\n\n const iconSize = ButtonIconSizeMapping[splitButtonState.size];\n const iconComp = renderProps.isPending ? (\n <Loader size={iconSize} />\n ) : (\n icon && <Icon icon={icon} size={iconSize} />\n );\n\n return (\n <span\n className={clsx(\n ButtonCore,\n buttonColorBase,\n ButtonLabelTextMapping[splitButtonState.size],\n SplitButtonPrimaryBase,\n SplitButtonVariantBase\n )}\n {...dataAttrs}\n >\n {splashInfo && <Splash {...splashInfo} />}\n\n {iconPlacement === \"start\" && iconComp}\n\n {isChildFunc ? children(renderProps) : children}\n\n {iconPlacement === \"end\" && iconComp}\n </span>\n );\n }}\n </AriaButton>,\n tooltip\n );\n};\n"],"mappings":";;;;;;;;;;;AAmBA,IAAa,KAAyD,EAClE,YACA,SACA,aACA,YACA,eACA,cACA,cACA,mBAAgB,SAChB,GAAG,QACD;CACF,IAAM,IAAmB,EAAsB,GAEzC,EAAE,eAAY,mBAAgB,EAAU,CAAO,GAC/C,IAAc,OAAO,KAAa,YAElC,IAAU,KAAa,EAAiB;CAG9C,OAAO,EACH,kBAAC,GAAD;EACI,SAAS;EACT,YALS,KAAc,EAAiB;EAMxC,WAAW;EACX,GAAI;EACJ,YAAY,MACR,EACI,GACA,GACA,OAAO,KAAc,aACf,EAAU,CAAW,IACrB,CACV;EAEJ,eAAA;EACA,6BAAA;aAEE,MAAgB;GACd,IAAM,EACF,eACA,mBACA,cACA,cACA,iBACA,GAEE,IAAY;IACd,gBAAgB,KAAa,KAAA;IAC7B,iBAAiB,KAAc,KAAA;IAC/B,gBAAgB,KAAa,KAAA;IAC7B,sBAAsB,KAAkB,KAAA;IACxC,gBAAgB,KAAa,KAAA;IAC7B,sBAAsB;GAC1B,GAEM,IAAW,EAAsB,EAAiB,OAClD,IAAW,EAAY,YACzB,kBAAC,GAAD,EAAQ,MAAM,EAAW,CAAA,IAEzB,KAAQ,kBAAC,GAAD;IAAY;IAAM,MAAM;GAAW,CAAA;GAG/C,OACI,kBAAC,QAAD;IACI,WAAW,EACP,GACA,GACA,EAAuB,EAAiB,OACxC,GACA,CACJ;IACA,GAAI;cARR;KAUK,KAAc,kBAAC,GAAD,EAAQ,GAAI,EAAa,CAAA;KAEvC,MAAkB,WAAW;KAE7B,IAAc,EAAS,CAAW,IAAI;KAEtC,MAAkB,SAAS;IAC1B;;EAEd;CACQ,CAAA,GACZ,CACJ;AACJ"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../../src/components/Button/SplitButton/SplitButtonPrimary/SplitButtonPrimary.tsx"],"sourcesContent":["import { clsx } from \"clsx\";\nimport { Button as AriaButton } from \"react-aria-components\";\nimport { Icon } from \"@/components/Icon\";\nimport { Loader } from \"@/components/Loader\";\nimport { Splash } from \"@/components/Splash/Splash\";\nimport { useSplash } from \"@/components/Splash/useSplash\";\nimport { TapTarget } from \"@/utils/tapTarget\";\nimport {\n ButtonCore,\n ButtonIconSizeMapping,\n ButtonLabelTextMapping,\n ButtonReset,\n buttonColorBase,\n buttonColorConfig,\n withTooltip,\n} from \"../../core\";\nimport { SplitButtonPrimaryBase, SplitButtonVariantBase } from \"../core\";\nimport { useSplitButtonContext } from \"../SplitButtonContext\";\nimport type { SplitButtonPrimaryProps } from \"./types\";\n\nexport const SplitButtonPrimary: React.FC<SplitButtonPrimaryProps> = ({\n tooltip,\n icon,\n children,\n onPress,\n isDisabled,\n isPending,\n className,\n iconPlacement = \"start\",\n ...props\n}) => {\n const splitButtonState = useSplitButtonContext();\n\n const { splashInfo, handlePress } = useSplash(onPress);\n const isChildFunc = typeof children === \"function\";\n\n const pending = isPending || splitButtonState.isPending;\n const disabled = isDisabled || splitButtonState.isDisabled;\n\n return withTooltip(\n <AriaButton\n onPress={handlePress}\n isDisabled={disabled}\n isPending={pending}\n {...props}\n className={(renderProps) =>\n clsx(\n ButtonReset,\n TapTarget,\n SplitButtonPrimaryBase,\n buttonColorConfig(splitButtonState.color),\n typeof className === \"function\"\n ? className(renderProps)\n : className\n )\n }\n data-button\n data-split-button-primary\n >\n {(renderProps) => {\n const {\n isDisabled,\n isFocusVisible,\n isFocused,\n isPressed,\n isHovered,\n } = renderProps;\n\n const dataAttrs = {\n \"data-hovered\": isHovered || undefined,\n \"data-disabled\": isDisabled || undefined,\n \"data-focused\": isFocused || undefined,\n \"data-focus-visible\": isFocusVisible || undefined,\n \"data-pressed\": isPressed || undefined,\n \"data-visual-button\": true,\n };\n\n const iconSize = ButtonIconSizeMapping[splitButtonState.size];\n const iconComp = renderProps.isPending ? (\n <Loader size={iconSize} />\n ) : (\n icon && <Icon icon={icon} size={iconSize} />\n );\n\n return (\n <span\n className={clsx(\n ButtonCore,\n buttonColorBase,\n SplitButtonVariantBase,\n ButtonLabelTextMapping[splitButtonState.size]\n )}\n {...dataAttrs}\n >\n {splashInfo && <Splash {...splashInfo} />}\n\n {iconPlacement === \"start\" && iconComp}\n\n {isChildFunc ? children(renderProps) : children}\n\n {iconPlacement === \"end\" && iconComp}\n </span>\n );\n }}\n </AriaButton>,\n tooltip\n );\n};\n"],"mappings":";;;;;;;;;;;AAoBA,IAAa,KAAyD,EAClE,YACA,SACA,aACA,YACA,eACA,cACA,cACA,mBAAgB,SAChB,GAAG,QACD;CACF,IAAM,IAAmB,EAAsB,GAEzC,EAAE,eAAY,mBAAgB,EAAU,CAAO,GAC/C,IAAc,OAAO,KAAa,YAElC,IAAU,KAAa,EAAiB;CAG9C,OAAO,EACH,kBAAC,GAAD;EACI,SAAS;EACT,YALS,KAAc,EAAiB;EAMxC,WAAW;EACX,GAAI;EACJ,YAAY,MACR,EACI,GACA,GACA,GACA,EAAkB,EAAiB,KAAK,GACxC,OAAO,KAAc,aACf,EAAU,CAAW,IACrB,CACV;EAEJ,eAAA;EACA,6BAAA;aAEE,MAAgB;GACd,IAAM,EACF,eACA,mBACA,cACA,cACA,iBACA,GAEE,IAAY;IACd,gBAAgB,KAAa,KAAA;IAC7B,iBAAiB,KAAc,KAAA;IAC/B,gBAAgB,KAAa,KAAA;IAC7B,sBAAsB,KAAkB,KAAA;IACxC,gBAAgB,KAAa,KAAA;IAC7B,sBAAsB;GAC1B,GAEM,IAAW,EAAsB,EAAiB,OAClD,IAAW,EAAY,YACzB,kBAAC,GAAD,EAAQ,MAAM,EAAW,CAAA,IAEzB,KAAQ,kBAAC,GAAD;IAAY;IAAM,MAAM;GAAW,CAAA;GAG/C,OACI,kBAAC,QAAD;IACI,WAAW,EACP,GACA,GACA,GACA,EAAuB,EAAiB,KAC5C;IACA,GAAI;cAPR;KASK,KAAc,kBAAC,GAAD,EAAQ,GAAI,EAAa,CAAA;KAEvC,MAAkB,WAAW;KAE7B,IAAc,EAAS,CAAW,IAAI;KAEtC,MAAkB,SAAS;IAC1B;;EAEd;CACQ,CAAA,GACZ,CACJ;AACJ"}
@@ -1,10 +1,10 @@
1
- import { t as e } from "../../../chunks/Icon";
2
- import { n as t, t as n } from "../../../chunks/useSplash";
3
- import { t as r } from "../../../chunks/tapTarget";
1
+ import { t as e } from "../../../chunks/tapTarget";
2
+ import { t } from "../../../chunks/Icon";
3
+ import { n, t as r } from "../../../chunks/useSplash";
4
4
  import { a as i, c as a, d as o, f as s, i as c, l, n as u, o as d, p as f, t as p, u as m } from "../../../chunks/core";
5
5
  import { clsx as h } from "clsx";
6
- import { ToggleButton as g } from "react-aria-components";
7
- import { jsx as _, jsxs as v } from "react/jsx-runtime";
6
+ import { jsx as g, jsxs as _ } from "react/jsx-runtime";
7
+ import { ToggleButton as v } from "react-aria-components";
8
8
  //#region src/components/Button/ToggleButton/ToggleButton.tsx
9
9
  var y = ({ size: y, shape: b, color: x, tooltip: S, selectedIcon: C, icon: w, children: T, onPress: E, className: D, iconPlacement: O, ...k }) => {
10
10
  let { buttonColor: A, buttonShape: j, buttonSize: M, buttonIconPlacement: N } = u({
@@ -12,7 +12,7 @@ var y = ({ size: y, shape: b, color: x, tooltip: S, selectedIcon: C, icon: w, ch
12
12
  shape: b,
13
13
  color: x,
14
14
  iconPlacement: O
15
- }), { splashInfo: P, handlePress: F } = n(E), I = typeof T == "function", L = {
15
+ }), { splashInfo: P, handlePress: F } = r(E), I = typeof T == "function", L = {
16
16
  ...f({
17
17
  shape: j,
18
18
  size: M,
@@ -20,14 +20,14 @@ var y = ({ size: y, shape: b, color: x, tooltip: S, selectedIcon: C, icon: w, ch
20
20
  }),
21
21
  "data-toggle-button": !0
22
22
  };
23
- return p(/* @__PURE__ */ _(g, {
23
+ return p(/* @__PURE__ */ g(v, {
24
24
  onPress: F,
25
- className: (e) => h(s, r, a(M), m(A), typeof D == "function" ? D(e) : D),
25
+ className: (t) => h(s, e, a(M), m(A), typeof D == "function" ? D(t) : D),
26
26
  ...k,
27
27
  ...L,
28
28
  "data-button": !0,
29
- children: (n) => {
30
- let { isSelected: r, isDisabled: a, isFocusVisible: s, isFocused: u, isPressed: f, isHovered: p } = n, m = {
29
+ children: (e) => {
30
+ let { isSelected: r, isDisabled: a, isFocusVisible: s, isFocused: u, isPressed: f, isHovered: p } = e, m = {
31
31
  ...L,
32
32
  "data-hovered": p || void 0,
33
33
  "data-disabled": a || void 0,
@@ -36,19 +36,19 @@ var y = ({ size: y, shape: b, color: x, tooltip: S, selectedIcon: C, icon: w, ch
36
36
  "data-pressed": f || void 0,
37
37
  "data-selected": r || void 0,
38
38
  "data-visual-button": !0
39
- }, g = w;
40
- r && C && (g = C);
41
- let y = c[M], b = g && /* @__PURE__ */ _(e, {
42
- icon: g,
39
+ }, v = w;
40
+ r && C && (v = C);
41
+ let y = c[M], b = v && /* @__PURE__ */ g(t, {
42
+ icon: v,
43
43
  size: y
44
44
  });
45
- return /* @__PURE__ */ v("span", {
45
+ return /* @__PURE__ */ _("span", {
46
46
  className: h(o, l, d, i[M]),
47
47
  ...m,
48
48
  children: [
49
- P && /* @__PURE__ */ _(t, { ...P }),
49
+ P && /* @__PURE__ */ g(n, { ...P }),
50
50
  N === "start" && b,
51
- I ? T(n) : T,
51
+ I ? T(e) : T,
52
52
  N === "end" && b
53
53
  ]
54
54
  });
@@ -1,17 +1,17 @@
1
- import { t as e } from "../../../chunks/Icon";
2
- import { n as t, t as n } from "../../../chunks/useSplash";
3
- import { t as r } from "../../../chunks/tapTarget";
1
+ import { t as e } from "../../../chunks/tapTarget";
2
+ import { t } from "../../../chunks/Icon";
3
+ import { n, t as r } from "../../../chunks/useSplash";
4
4
  import { c as i, d as a, f as o, l as s, n as c, o as l, p as u, s as d, t as f, u as p } from "../../../chunks/core";
5
5
  import { clsx as m } from "clsx";
6
- import { ToggleButton as h } from "react-aria-components";
7
- import { jsx as g, jsxs as _ } from "react/jsx-runtime";
6
+ import { jsx as h, jsxs as g } from "react/jsx-runtime";
7
+ import { ToggleButton as _ } from "react-aria-components";
8
8
  //#region src/components/Button/ToggleIconButton/ToggleIconButton.tsx
9
9
  var v = ({ size: v, shape: y, color: b, width: x = "default", tooltip: S, selectedIcon: C, icon: w, onPress: T, className: E, ...D }) => {
10
10
  let { buttonColor: O, buttonShape: k, buttonSize: A } = c({
11
11
  size: v,
12
12
  shape: y,
13
13
  color: b
14
- }), { splashInfo: j, handlePress: M } = n(T), N = {
14
+ }), { splashInfo: j, handlePress: M } = r(T), N = {
15
15
  ...u({
16
16
  shape: k,
17
17
  size: A,
@@ -21,13 +21,13 @@ var v = ({ size: v, shape: y, color: b, width: x = "default", tooltip: S, select
21
21
  "data-icon-button": !0,
22
22
  "data-toggle-button": !0
23
23
  };
24
- return f(/* @__PURE__ */ g(h, {
24
+ return f(/* @__PURE__ */ h(_, {
25
25
  onPress: M,
26
- className: (e) => m(o, r, i(A), p(O), typeof E == "function" ? E(e) : E),
26
+ className: (t) => m(o, e, i(A), p(O), typeof E == "function" ? E(t) : E),
27
27
  ...D,
28
28
  ...N,
29
29
  "data-button": !0,
30
- children: ({ isSelected: n, isDisabled: r, isFocusVisible: i, isFocused: o, isPressed: c, isHovered: u }) => {
30
+ children: ({ isSelected: e, isDisabled: r, isFocusVisible: i, isFocused: o, isPressed: c, isHovered: u }) => {
31
31
  let f = {
32
32
  ...N,
33
33
  "data-hovered": u || void 0,
@@ -35,17 +35,17 @@ var v = ({ size: v, shape: y, color: b, width: x = "default", tooltip: S, select
35
35
  "data-focused": o || void 0,
36
36
  "data-focus-visible": i || void 0,
37
37
  "data-pressed": c || void 0,
38
- "data-selected": n || void 0,
38
+ "data-selected": e || void 0,
39
39
  "data-visual-button": !0
40
40
  }, p = w;
41
- n && C && (p = C);
42
- let h = d[A];
43
- return /* @__PURE__ */ _("span", {
41
+ e && C && (p = C);
42
+ let _ = d[A];
43
+ return /* @__PURE__ */ g("span", {
44
44
  className: m(a, s, l),
45
45
  ...f,
46
- children: [j && /* @__PURE__ */ g(t, { ...j }), p && /* @__PURE__ */ g(e, {
46
+ children: [j && /* @__PURE__ */ h(n, { ...j }), p && /* @__PURE__ */ h(t, {
47
47
  icon: p,
48
- size: h
48
+ size: _
49
49
  })]
50
50
  });
51
51
  }
@@ -1,14 +1,14 @@
1
1
  import { r as e } from "../../../chunks/core3";
2
2
  import { t } from "../../../chunks/BaseCalendar";
3
3
  import n from "clsx";
4
- import { Calendar as r } from "react-aria-components";
5
- import { jsx as i } from "react/jsx-runtime";
4
+ import { jsx as r } from "react/jsx-runtime";
5
+ import { Calendar as i } from "react-aria-components";
6
6
  //#region src/components/Calendar/Calendar/Calendar.tsx
7
- var a = ({ weekdayStyle: a, className: o, ...s }) => /* @__PURE__ */ i(r, {
7
+ var a = ({ weekdayStyle: a, className: o, ...s }) => /* @__PURE__ */ r(i, {
8
8
  className: (t) => n(e, typeof o == "function" ? o(t) : o),
9
9
  ...s,
10
10
  "data-calendar": !0,
11
- children: /* @__PURE__ */ i(t, { weekdayStyle: a })
11
+ children: /* @__PURE__ */ r(t, { weekdayStyle: a })
12
12
  });
13
13
  //#endregion
14
14
  export { a as Calendar };
@@ -1,15 +1,15 @@
1
1
  import { t as e } from "../../../chunks/Icon";
2
2
  import { t } from "../../../chunks/CalendarMenuItem";
3
3
  import { n } from "../../../chunks/core3";
4
- import { ListBox as r, ListLayout as i, SelectionIndicator as a, Virtualizer as o } from "react-aria-components";
5
- import { jsx as s, jsxs as c } from "react/jsx-runtime";
4
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
+ import { ListBox as a, ListLayout as o, SelectionIndicator as s, Virtualizer as c } from "react-aria-components";
6
6
  import { Check as l } from "lucide-react";
7
7
  //#region src/components/Calendar/CalendarMonthMenu/CalendarMonthMenu.tsx
8
8
  var u = ({ onSelection: u, months: d }) => {
9
9
  let f = n();
10
- return /* @__PURE__ */ s(o, {
11
- layout: i,
12
- children: /* @__PURE__ */ s(r, {
10
+ return /* @__PURE__ */ r(c, {
11
+ layout: o,
12
+ children: /* @__PURE__ */ r(a, {
13
13
  "aria-label": "month selection",
14
14
  autoFocus: !0,
15
15
  "data-menu": !0,
@@ -17,17 +17,17 @@ var u = ({ onSelection: u, months: d }) => {
17
17
  selectionMode: "single",
18
18
  selectedKeys: [f.focusedDate.month],
19
19
  children: (n) => {
20
- let r = f.focusedDate.set({
20
+ let a = f.focusedDate.set({
21
21
  month: n.id,
22
22
  day: 1
23
- }), i = r.set({ day: r.calendar.getDaysInMonth(r) });
24
- return /* @__PURE__ */ c(t, {
23
+ }), o = a.set({ day: a.calendar.getDaysInMonth(a) });
24
+ return /* @__PURE__ */ i(t, {
25
25
  onPress: () => {
26
26
  f.setFocusedDate(f.focusedDate.set({ month: n.id })), u();
27
27
  },
28
- isDisabled: (f.maxValue && r.compare(f.maxValue) > 0 || f.minValue && i.compare(f.minValue) < 0) ?? void 0,
28
+ isDisabled: (f.maxValue && a.compare(f.maxValue) > 0 || f.minValue && o.compare(f.minValue) < 0) ?? void 0,
29
29
  textValue: n.formatted,
30
- children: [/* @__PURE__ */ s(a, { children: /* @__PURE__ */ s(e, {
30
+ children: [/* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(e, {
31
31
  icon: l,
32
32
  size: 24,
33
33
  "data-selected-icon": !0
@@ -1,27 +1,27 @@
1
1
  import { t as e } from "../../../chunks/Icon";
2
2
  import { t } from "../../../chunks/CalendarMenuItem";
3
3
  import { n } from "../../../chunks/core3";
4
- import { ListBox as r, ListLayout as i, SelectionIndicator as a, Virtualizer as o } from "react-aria-components";
5
- import { jsx as s, jsxs as c } from "react/jsx-runtime";
4
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
+ import { ListBox as a, ListLayout as o, SelectionIndicator as s, Virtualizer as c } from "react-aria-components";
6
6
  import { Check as l } from "lucide-react";
7
7
  //#region src/components/Calendar/CalendarYearMenu/CalendarYearMenu.tsx
8
8
  var u = ({ onSelection: u, years: d }) => {
9
9
  let f = n();
10
- return /* @__PURE__ */ s(o, {
11
- layout: i,
12
- children: /* @__PURE__ */ s(r, {
10
+ return /* @__PURE__ */ r(c, {
11
+ layout: o,
12
+ children: /* @__PURE__ */ r(a, {
13
13
  "aria-label": "year selection",
14
14
  autoFocus: !0,
15
15
  "data-menu": !0,
16
16
  items: d,
17
17
  selectionMode: "single",
18
18
  selectedKeys: [f.focusedDate.year],
19
- children: (n) => /* @__PURE__ */ c(t, {
19
+ children: (n) => /* @__PURE__ */ i(t, {
20
20
  onPress: () => {
21
21
  f.setFocusedDate(f.focusedDate.set({ year: n.id })), u();
22
22
  },
23
23
  textValue: n.formatted,
24
- children: [/* @__PURE__ */ s(a, { children: /* @__PURE__ */ s(e, {
24
+ children: [/* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(e, {
25
25
  icon: l,
26
26
  size: 24,
27
27
  "data-selected-icon": !0
@@ -1,15 +1,15 @@
1
1
  import { r as e } from "../../../chunks/core3";
2
2
  import { t } from "../../../chunks/BaseCalendar";
3
3
  import n from "clsx";
4
- import { RangeCalendar as r } from "react-aria-components";
5
- import { jsx as i } from "react/jsx-runtime";
4
+ import { jsx as r } from "react/jsx-runtime";
5
+ import { RangeCalendar as i } from "react-aria-components";
6
6
  //#region src/components/Calendar/RangeCalendar/RangeCalendar.tsx
7
- var a = ({ weekdayStyle: a, className: o, ...s }) => /* @__PURE__ */ i(r, {
7
+ var a = ({ weekdayStyle: a, className: o, ...s }) => /* @__PURE__ */ r(i, {
8
8
  className: (t) => n(e, typeof o == "function" ? o(t) : o),
9
9
  ...s,
10
10
  "data-calendar": !0,
11
11
  "data-range-calendar": !0,
12
- children: /* @__PURE__ */ i(t, {
12
+ children: /* @__PURE__ */ r(t, {
13
13
  weekdayStyle: a,
14
14
  isRangeCalendar: !0
15
15
  })