@chotot/clad-ui 3.0.0 → 3.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 (264) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/README.md +9 -9
  3. package/dist/{chunk-Bmb41Sf3.cjs → _virtual/_rolldown/runtime.cjs} +1 -1
  4. package/dist/brand/ChototLogoText.cjs +1 -0
  5. package/dist/brand/ChototLogoText.es.js +15 -0
  6. package/dist/brand/CtC2C.cjs +1 -0
  7. package/dist/brand/CtC2C.es.js +18 -0
  8. package/dist/brand/CtProperty.cjs +1 -0
  9. package/dist/brand/CtProperty.es.js +204 -0
  10. package/dist/brand/CtVehicle.cjs +1 -0
  11. package/dist/brand/CtVehicle.es.js +70 -0
  12. package/dist/brand/Tot.cjs +1 -0
  13. package/dist/brand/Tot.es.js +17 -0
  14. package/dist/components/Announcer/Announcer.cjs +1 -0
  15. package/dist/components/Announcer/Announcer.es.js +100 -0
  16. package/dist/components/Announcer/announcer.styles.cjs +1 -0
  17. package/dist/components/Announcer/announcer.styles.es.js +24 -0
  18. package/dist/components/Badge/Badge.cjs +1 -0
  19. package/dist/components/Badge/Badge.es.js +83 -0
  20. package/dist/components/Badge/badge.styles.cjs +1 -0
  21. package/dist/components/Badge/badge.styles.es.js +83 -0
  22. package/dist/components/Box/Box.cjs +1 -0
  23. package/dist/components/Box/Box.es.js +72 -0
  24. package/dist/components/Breadcrumbs/BreadcrumbItem.cjs +1 -0
  25. package/dist/components/Breadcrumbs/BreadcrumbItem.es.js +17 -0
  26. package/dist/components/Breadcrumbs/Breadcrumbs.cjs +1 -0
  27. package/dist/components/Breadcrumbs/Breadcrumbs.es.js +44 -0
  28. package/dist/components/Breadcrumbs/breadcrumbs.styles.cjs +1 -0
  29. package/dist/components/Breadcrumbs/breadcrumbs.styles.es.js +5 -0
  30. package/dist/components/Button/Button.cjs +1 -0
  31. package/dist/components/Button/Button.es.js +41 -0
  32. package/dist/components/Button/ButtonLink.cjs +1 -0
  33. package/dist/components/Button/ButtonLink.es.js +5 -0
  34. package/dist/components/Button/GhostButton.cjs +1 -0
  35. package/dist/components/Button/GhostButton.es.js +25 -0
  36. package/dist/components/Button/IconButton.cjs +1 -0
  37. package/dist/components/Button/IconButton.es.js +13 -0
  38. package/dist/components/Button/button.styles.cjs +1 -0
  39. package/dist/components/Button/button.styles.es.js +100 -0
  40. package/dist/components/Checkbox/Checkbox.cjs +1 -0
  41. package/dist/components/Checkbox/Checkbox.es.js +43 -0
  42. package/dist/components/Checkbox/checkbox.styles.cjs +1 -0
  43. package/dist/components/Checkbox/checkbox.styles.es.js +15 -0
  44. package/dist/components/Chip/Chip.cjs +1 -0
  45. package/dist/components/Chip/Chip.es.js +35 -0
  46. package/dist/components/Chip/chip.styles.cjs +1 -0
  47. package/dist/components/Chip/chip.styles.es.js +33 -0
  48. package/dist/components/CurrencyInput/CurrencyInput.cjs +1 -0
  49. package/dist/components/CurrencyInput/CurrencyInput.es.js +142 -0
  50. package/dist/components/CurrencyInput/currency-input.styles.cjs +1 -0
  51. package/dist/components/CurrencyInput/currency-input.styles.es.js +13 -0
  52. package/dist/components/CurrencyInput/utils.cjs +1 -0
  53. package/dist/components/CurrencyInput/utils.es.js +30 -0
  54. package/dist/components/DatePicker/DatePicker.cjs +1 -0
  55. package/dist/components/DatePicker/DatePicker.es.js +354 -0
  56. package/dist/components/DatePicker/DateTimePicker.cjs +1 -0
  57. package/dist/components/DatePicker/DateTimePicker.es.js +416 -0
  58. package/dist/components/DatePicker/date-picker.styles.cjs +1 -0
  59. package/dist/components/DatePicker/date-picker.styles.es.js +8 -0
  60. package/dist/components/DatePicker/date-time-picker.styles.cjs +1 -0
  61. package/dist/components/DatePicker/date-time-picker.styles.es.js +8 -0
  62. package/dist/components/DatePicker/index.d.ts +2 -1
  63. package/dist/components/DatePicker/types.cjs +1 -0
  64. package/dist/components/DatePicker/types.es.js +6 -0
  65. package/dist/components/Drawer/Drawer.cjs +1 -0
  66. package/dist/components/Drawer/Drawer.es.js +407 -0
  67. package/dist/components/Dropdown/Dropdown.cjs +1 -0
  68. package/dist/components/Dropdown/Dropdown.es.js +145 -0
  69. package/dist/components/Dropdown/dropdown.styles.cjs +1 -0
  70. package/dist/components/Dropdown/dropdown.styles.es.js +12 -0
  71. package/dist/components/EmptyState/EmptyState.cjs +2 -0
  72. package/dist/components/EmptyState/EmptyState.es.js +114 -0
  73. package/dist/components/EmptyState/empty-state.styles.cjs +1 -0
  74. package/dist/components/EmptyState/empty-state.styles.es.js +5 -0
  75. package/dist/components/Grid/Col.cjs +1 -0
  76. package/dist/components/Grid/Col.es.js +37 -0
  77. package/dist/components/Grid/Grid.cjs +1 -0
  78. package/dist/components/Grid/Grid.es.js +66 -0
  79. package/dist/components/Input/Input.cjs +1 -0
  80. package/dist/components/Input/Input.es.js +122 -0
  81. package/dist/components/Input/input.styles.cjs +1 -0
  82. package/dist/components/Input/input.styles.es.js +14 -0
  83. package/dist/components/InputGroup/InputGroup.cjs +1 -0
  84. package/dist/components/InputGroup/InputGroup.es.js +16 -0
  85. package/dist/components/InputGroup/input-group.styles.cjs +1 -0
  86. package/dist/components/InputGroup/input-group.styles.es.js +12 -0
  87. package/dist/components/LegacyDialog/DialogMainIcon.cjs +1 -0
  88. package/dist/components/LegacyDialog/DialogMainIcon.es.js +52 -0
  89. package/dist/components/LegacyDialog/LegacyDialog.cjs +1 -0
  90. package/dist/components/LegacyDialog/LegacyDialog.es.js +54 -0
  91. package/dist/components/LegacyPopup/LegacyPopup.cjs +1 -0
  92. package/dist/components/LegacyPopup/LegacyPopup.es.js +72 -0
  93. package/dist/components/MultiSearchDropdown/MultiSearchDropdown.cjs +1 -0
  94. package/dist/components/MultiSearchDropdown/MultiSearchDropdown.es.js +215 -0
  95. package/dist/components/MultiSearchDropdown/multi-search-dropdown.styles.cjs +1 -0
  96. package/dist/components/MultiSearchDropdown/multi-search-dropdown.styles.es.js +12 -0
  97. package/dist/components/Pagination/PageItem.cjs +1 -0
  98. package/dist/components/Pagination/PageItem.es.js +20 -0
  99. package/dist/components/Pagination/Pagination.cjs +1 -0
  100. package/dist/components/Pagination/Pagination.es.js +84 -0
  101. package/dist/components/Pagination/pagination.styles.cjs +1 -0
  102. package/dist/components/Pagination/pagination.styles.es.js +15 -0
  103. package/dist/components/Pagination/types.d.ts +1 -1
  104. package/dist/components/Popover/Popover.cjs +1 -0
  105. package/dist/components/Popover/Popover.es.js +54 -0
  106. package/dist/components/Popover/popover.styles.cjs +1 -0
  107. package/dist/components/Popover/popover.styles.es.js +5 -0
  108. package/dist/components/Popup/Popup.cjs +1 -0
  109. package/dist/components/Popup/Popup.es.js +148 -0
  110. package/dist/components/RadioButton/RadioButton.cjs +1 -0
  111. package/dist/components/RadioButton/RadioButton.es.js +61 -0
  112. package/dist/components/RadioButton/radio-button.styles.cjs +1 -0
  113. package/dist/components/RadioButton/radio-button.styles.es.js +15 -0
  114. package/dist/components/RangeInput/RangeInput.cjs +1 -0
  115. package/dist/components/RangeInput/RangeInput.es.js +32 -0
  116. package/dist/components/RangeInput/range-input.styles.cjs +1 -0
  117. package/dist/components/RangeInput/range-input.styles.es.js +5 -0
  118. package/dist/components/RowItem/RowItem.cjs +1 -0
  119. package/dist/components/RowItem/RowItem.es.js +56 -0
  120. package/dist/components/RowItem/rowitem.styles.cjs +1 -0
  121. package/dist/components/RowItem/rowitem.styles.es.js +23 -0
  122. package/dist/components/SearchInput/SearchInput.cjs +1 -0
  123. package/dist/components/SearchInput/SearchInput.es.js +129 -0
  124. package/dist/components/SearchInput/search-input.styles.cjs +1 -0
  125. package/dist/components/SearchInput/search-input.styles.es.js +12 -0
  126. package/dist/components/Searchbar/Searchbar.cjs +1 -0
  127. package/dist/components/Searchbar/Searchbar.es.js +51 -0
  128. package/dist/components/Searchbar/searchbar.styles.cjs +1 -0
  129. package/dist/components/Searchbar/searchbar.styles.es.js +5 -0
  130. package/dist/components/ShapeIcon/ShapeIcon.cjs +1 -0
  131. package/dist/components/ShapeIcon/ShapeIcon.es.js +22 -0
  132. package/dist/components/ShapeIcon/shape-icon.styles.cjs +1 -0
  133. package/dist/components/ShapeIcon/shape-icon.styles.es.js +65 -0
  134. package/dist/components/Slider/Slider.cjs +1 -0
  135. package/dist/components/Slider/Slider.es.js +169 -0
  136. package/dist/components/Slider/slider.styles.cjs +1 -0
  137. package/dist/components/Slider/slider.styles.es.js +5 -0
  138. package/dist/components/Snack/Snack.cjs +1 -0
  139. package/dist/components/Snack/Snack.es.js +69 -0
  140. package/dist/components/Snack/snack.styles.cjs +1 -0
  141. package/dist/components/Snack/snack.styles.es.js +13 -0
  142. package/dist/components/Tabs/Tab.cjs +1 -0
  143. package/dist/components/Tabs/Tab.es.js +42 -0
  144. package/dist/components/Tabs/Tabs.cjs +1 -0
  145. package/dist/components/Tabs/Tabs.es.js +115 -0
  146. package/dist/components/Tabs/tabs.styles.cjs +1 -0
  147. package/dist/components/Tabs/tabs.styles.es.js +33 -0
  148. package/dist/components/TagCloud/TagCloud.cjs +1 -0
  149. package/dist/components/TagCloud/TagCloud.d.ts +1 -1
  150. package/dist/components/TagCloud/TagCloud.es.js +48 -0
  151. package/dist/components/TagCloud/tagcloud.styles.cjs +1 -0
  152. package/dist/components/TagCloud/tagcloud.styles.es.js +12 -0
  153. package/dist/components/TagCloud/types.d.ts +5 -0
  154. package/dist/components/TextArea/TextArea.cjs +1 -0
  155. package/dist/components/TextArea/TextArea.es.js +104 -0
  156. package/dist/components/TextArea/text-area.styles.cjs +1 -0
  157. package/dist/components/TextArea/text-area.styles.es.js +13 -0
  158. package/dist/components/TextLabel/TextLabel.cjs +1 -0
  159. package/dist/components/TextLabel/TextLabel.es.js +28 -0
  160. package/dist/components/TextLabel/textlabel.styles.cjs +1 -0
  161. package/dist/components/TextLabel/textlabel.styles.es.js +29 -0
  162. package/dist/components/ToggleSwitch/ToggleSwitch.cjs +1 -0
  163. package/dist/components/ToggleSwitch/ToggleSwitch.es.js +37 -0
  164. package/dist/components/ToggleSwitch/toggle-switch.styles.cjs +1 -0
  165. package/dist/components/ToggleSwitch/toggle-switch.styles.es.js +24 -0
  166. package/dist/components/Tooltip/Tooltip.cjs +1 -0
  167. package/dist/components/Tooltip/Tooltip.es.js +103 -0
  168. package/dist/components/Tooltip/tooltip.styles.cjs +1 -0
  169. package/dist/components/Tooltip/tooltip.styles.es.js +12 -0
  170. package/dist/forge/index.cjs +1 -0
  171. package/dist/icons.cjs +1 -1
  172. package/dist/index.cjs +1 -0
  173. package/dist/index.es.js +82 -0
  174. package/dist/styles.css +1 -1
  175. package/dist/types/index.cjs +1 -0
  176. package/dist/types/index.es.js +7 -0
  177. package/dist/typography/BodyAnnotation.cjs +1 -0
  178. package/dist/typography/BodyAnnotation.es.js +10 -0
  179. package/dist/typography/BodyCaption.cjs +1 -0
  180. package/dist/typography/BodyCaption.es.js +10 -0
  181. package/dist/typography/BodyPage.cjs +1 -0
  182. package/dist/typography/BodyPage.es.js +10 -0
  183. package/dist/typography/BodySection.cjs +1 -0
  184. package/dist/typography/BodySection.es.js +10 -0
  185. package/dist/typography/DisplayAnnotation.cjs +1 -0
  186. package/dist/typography/DisplayAnnotation.es.js +10 -0
  187. package/dist/typography/DisplayCaption.cjs +1 -0
  188. package/dist/typography/DisplayCaption.es.js +10 -0
  189. package/dist/typography/DisplayPage.cjs +1 -0
  190. package/dist/typography/DisplayPage.es.js +10 -0
  191. package/dist/typography/DisplayPrice.cjs +1 -0
  192. package/dist/typography/DisplayPrice.es.js +10 -0
  193. package/dist/typography/DisplaySection.cjs +1 -0
  194. package/dist/typography/DisplaySection.es.js +10 -0
  195. package/dist/typography/HeaderAnnotation.cjs +1 -0
  196. package/dist/typography/HeaderAnnotation.es.js +10 -0
  197. package/dist/typography/HeaderCaption.cjs +1 -0
  198. package/dist/typography/HeaderCaption.es.js +10 -0
  199. package/dist/typography/HeaderPage.cjs +1 -0
  200. package/dist/typography/HeaderPage.es.js +10 -0
  201. package/dist/typography/HeaderSection.cjs +1 -0
  202. package/dist/typography/HeaderSection.es.js +10 -0
  203. package/dist/typography/LabelAnnotation.cjs +1 -0
  204. package/dist/typography/LabelAnnotation.es.js +10 -0
  205. package/dist/typography/LabelCaption.cjs +1 -0
  206. package/dist/typography/LabelCaption.es.js +10 -0
  207. package/dist/typography/LabelPage.cjs +1 -0
  208. package/dist/typography/LabelPage.es.js +10 -0
  209. package/dist/typography/LabelSection.cjs +1 -0
  210. package/dist/typography/LabelSection.es.js +10 -0
  211. package/dist/typography/NoteCaption.cjs +1 -0
  212. package/dist/typography/NoteCaption.es.js +10 -0
  213. package/dist/typography/NotePage.cjs +1 -0
  214. package/dist/typography/NotePage.es.js +10 -0
  215. package/dist/typography/NoteSection.cjs +1 -0
  216. package/dist/typography/NoteSection.es.js +10 -0
  217. package/dist/typography/TaglineAnnotation.cjs +1 -0
  218. package/dist/typography/TaglineAnnotation.es.js +10 -0
  219. package/dist/typography/TaglineCaption.cjs +1 -0
  220. package/dist/typography/TaglineCaption.es.js +10 -0
  221. package/dist/typography/TaglineFootext.cjs +1 -0
  222. package/dist/typography/TaglineFootext.es.js +10 -0
  223. package/dist/typography/TaglineSection.cjs +1 -0
  224. package/dist/typography/TaglineSection.es.js +10 -0
  225. package/dist/utils/bundleCss.cjs +1 -1
  226. package/dist/utils/cleanHtml.cjs +1 -0
  227. package/dist/utils/cleanHtml.es.js +6 -0
  228. package/dist/utils/cn.cjs +1 -0
  229. package/dist/utils/cn.es.js +59 -0
  230. package/dist/utils/createUniversalPortal.cjs +1 -0
  231. package/dist/utils/createUniversalPortal.es.js +17 -0
  232. package/dist/utils/floating.cjs +1 -0
  233. package/dist/utils/floating.es.js +374 -0
  234. package/dist/utils/getBreakpointsValues.cjs +1 -0
  235. package/dist/utils/getBreakpointsValues.es.js +27 -0
  236. package/dist/utils/sizes.cjs +1 -0
  237. package/dist/utils/sizes.es.js +30 -0
  238. package/dist/utils/themeTokens.cjs +1 -0
  239. package/dist/utils/themeTokens.es.js +319 -0
  240. package/dist/utils/useBodyScrollLock.cjs +1 -0
  241. package/dist/utils/useBodyScrollLock.es.js +24 -0
  242. package/dist/utils/useScrollTop.cjs +1 -0
  243. package/dist/utils/useScrollTop.es.js +9 -0
  244. package/package.json +6 -6
  245. package/scripts/postinstall.cjs +34 -6
  246. package/skills/clad-ui/SKILL.md +17 -2
  247. package/skills/clad-ui/references/components-display-layout.md +1 -0
  248. package/skills/clad-ui-feedback/SKILL.md +1 -1
  249. package/skills/migrate-clad-ui-v3/SKILL.md +4 -2
  250. package/skills/migrate-clad-ui-v3/references/component-api-changes.md +42 -0
  251. package/skills/migrate-clad-ui-v3/references/token-and-linaria-mapping.md +4 -1
  252. package/src/styles/base/base.css +1 -0
  253. package/src/styles/components/button.css +25 -0
  254. package/src/styles/components/chip.css +35 -0
  255. package/src/styles/components/drawer.css +9 -0
  256. package/src/styles/preset.css +1 -1
  257. package/dist/clad-ui.cjs +0 -2
  258. package/dist/clad-ui.d.ts +0 -2
  259. package/dist/clad-ui.es.js +0 -9791
  260. package/dist/components/Drawer/Drawer.pw.fixtures.d.ts +0 -9
  261. package/dist/components/Grid/Grid.pw.fixtures.d.ts +0 -3
  262. package/dist/components/Popover/Popover.pw.fixtures.d.ts +0 -6
  263. package/dist/components/Popup/Popup.pw.fixtures.d.ts +0 -5
  264. package/dist/components/Tooltip/Tooltip.pw.fixtures.d.ts +0 -1
@@ -0,0 +1,374 @@
1
+ "use client";
2
+ import { forwardRef as e, useCallback as t, useEffect as n, useLayoutEffect as r, useMemo as i, useRef as a, useState as o } from "react";
3
+ import { jsx as s, jsxs as c } from "react/jsx-runtime";
4
+ import { createPortal as l } from "react-dom";
5
+ import { arrow as u, autoUpdate as d, flip as f, offset as p, platform as m, shift as h, useFloating as g } from "@floating-ui/react-dom";
6
+ //#region src/utils/floating.tsx
7
+ var _ = {
8
+ ...m,
9
+ getDimensions(e) {
10
+ let t = e.getBoundingClientRect();
11
+ return {
12
+ width: t.width,
13
+ height: t.height
14
+ };
15
+ }
16
+ }, v = typeof window < "u" ? r : n;
17
+ function y(...e) {
18
+ return (t) => {
19
+ for (let n of e) n && (typeof n == "function" ? n(t) : n.current = t);
20
+ };
21
+ }
22
+ function b(e) {
23
+ switch (e) {
24
+ case "top-center": return "top";
25
+ case "bottom-center": return "bottom";
26
+ case "left-center": return "left";
27
+ case "right-center": return "right";
28
+ case "center": return "top";
29
+ default: return e;
30
+ }
31
+ }
32
+ function x(e, t) {
33
+ if (t || e === "center") return "center";
34
+ let n = e.split("-")[0];
35
+ return n === "top" || n === "bottom" || n === "left" || n === "right" ? n : "top";
36
+ }
37
+ var S = "layers";
38
+ function C() {
39
+ if (typeof document > "u") return null;
40
+ let e = document.getElementById(S);
41
+ return e || (e = document.createElement("div"), e.id = S, e.style.cssText = "position: absolute; top: 0px; left: 0px; right: 0px;", document.body.appendChild(e)), e;
42
+ }
43
+ function w(e, t, n) {
44
+ return e < t ? t : e > n ? n : e;
45
+ }
46
+ function T(e) {
47
+ let { isOpen: r = !1, placement: s = "top-center", possiblePlacements: c, auto: m = !1, snap: y = !1, triggerOffset: S = 0, arrowOffset: T = 0, containerOffset: E = 10, overflowContainer: D = !0, onOutsideClick: O } = e, k = s === "center", A = a(null), j = a(null), M = a(null), [N, P] = o(null), F = D ? "fixed" : "absolute", { x: I, y: L, refs: R, placement: z, middlewareData: B, update: V } = g({
48
+ open: r,
49
+ placement: b(s),
50
+ strategy: F,
51
+ platform: _,
52
+ middleware: i(() => {
53
+ if (k) return [{
54
+ name: "center",
55
+ fn({ rects: e }) {
56
+ return {
57
+ x: e.reference.x + e.reference.width / 2 - e.floating.width / 2,
58
+ y: e.reference.y + e.reference.height / 2 - e.floating.height / 2
59
+ };
60
+ }
61
+ }];
62
+ let e = [p(S)];
63
+ if (m) {
64
+ let t = c ? c.filter((e) => e !== s && e !== "center").map(b) : void 0;
65
+ e.push(f({
66
+ padding: E,
67
+ crossAxis: y ? "alignment" : !1,
68
+ ...t ? { fallbackPlacements: t } : {}
69
+ })), y || e.push(h({ padding: E }));
70
+ }
71
+ return N && e.push({
72
+ name: "reactLaagArrowClamp",
73
+ fn({ x: e, y: t, rects: n, placement: r }) {
74
+ let i = r.split("-")[0], a = i === "left" || i === "right", o = T * 2, s = a ? n.reference.y : n.reference.x, c = a ? n.reference.height : n.reference.width, l = a ? n.floating.height : n.floating.width, u = s - (l - 16) + o, d = s + (c - 16) - o, f = a ? e : w(e, u, d), p = a ? w(t, u, d) : t, m = a ? p : f, h = m + l, g = s + c, _ = c > l, v = T + 16 / 2, y = l - 16 / 2 - T, b = m + l / 2 - s - 16 / 2 - T, x = h - l / 2 - g + 16 / 2 + T, S = (b < 0 ? -b : 0) + (x > 0 ? x : 0);
75
+ return {
76
+ x: f,
77
+ y: p,
78
+ data: { arrowPos: w(_ ? l / 2 + S : s + c / 2 - m, v, y) }
79
+ };
80
+ }
81
+ }, u({
82
+ element: N,
83
+ padding: T
84
+ })), e;
85
+ }, [
86
+ k,
87
+ S,
88
+ m,
89
+ c,
90
+ s,
91
+ E,
92
+ y,
93
+ N,
94
+ T
95
+ ]),
96
+ whileElementsMounted: d
97
+ }), H = t((e) => {
98
+ e && e !== A.current && (A.current = e);
99
+ }, []), U = t((e) => {
100
+ j.current = e, A.current && R.reference.current !== A.current && R.setReference(A.current), R.setFloating(e);
101
+ }, [R]), W = t((e) => {
102
+ M.current = e, P((t) => t === e ? t : e);
103
+ }, []);
104
+ v(() => {
105
+ r && A.current && (R.reference.current !== A.current && R.setReference(A.current), V());
106
+ }, [
107
+ r,
108
+ R,
109
+ V
110
+ ]);
111
+ let G = a(O);
112
+ G.current = O, n(() => {
113
+ if (!r || !G.current) return;
114
+ let e = (e) => {
115
+ let t = e.target;
116
+ if (!t) return;
117
+ let n = A.current && A.current.contains(t), r = j.current && j.current.contains(t);
118
+ !n && !r && G.current?.();
119
+ };
120
+ return document.addEventListener("click", e, !0), () => {
121
+ document.removeEventListener("click", e, !0);
122
+ };
123
+ }, [r]);
124
+ let K = x(z, k), q = K === "left" || K === "right", J = i(() => {
125
+ let e = {
126
+ position: "absolute",
127
+ willChange: "top, left"
128
+ };
129
+ if (K === "center") return e;
130
+ let t = B.reactLaagArrowClamp, n = B.arrow?.x, r = B.arrow?.y, i = q ? r == null ? 0 : r + 8 : n == null ? 0 : n + 8, a = t?.arrowPos ?? i;
131
+ return {
132
+ ...e,
133
+ [K]: "100%",
134
+ ...q ? { top: a } : { left: a }
135
+ };
136
+ }, [
137
+ K,
138
+ q,
139
+ B.reactLaagArrowClamp,
140
+ B.arrow?.x,
141
+ B.arrow?.y
142
+ ]), Y = i(() => ({
143
+ willChange: "top, left, width, height",
144
+ position: F,
145
+ top: L ?? 0,
146
+ left: I ?? 0
147
+ }), [
148
+ F,
149
+ I,
150
+ L
151
+ ]), X = t((e) => {
152
+ let t = C();
153
+ return t ? l(e, t) : null;
154
+ }, []);
155
+ return {
156
+ triggerProps: { ref: H },
157
+ layerProps: {
158
+ ref: U,
159
+ style: Y
160
+ },
161
+ arrowProps: {
162
+ ref: W,
163
+ style: J,
164
+ layerSide: K
165
+ },
166
+ layerSide: K,
167
+ get triggerBounds() {
168
+ return r && A.current ? A.current.getBoundingClientRect() : null;
169
+ },
170
+ renderLayer: X
171
+ };
172
+ }
173
+ function E(e, t) {
174
+ return Math.tan(Math.PI / 180 * e) * t;
175
+ }
176
+ function D(e, t, n, r) {
177
+ return {
178
+ bottom: `0 ${-r} ${t} ${e}`,
179
+ top: `0 0 ${t} ${e + r}`,
180
+ right: `${-r} 0 ${e} ${t}`,
181
+ left: `0 0 ${e + r} ${t}`
182
+ }[n];
183
+ }
184
+ function O(e, t, n, r, i) {
185
+ let a = n === "left" || n === "right", o = r / 10 * e * 2, s = {
186
+ bottom: [0, e],
187
+ top: [0, 0],
188
+ right: [e, t],
189
+ left: [0, t]
190
+ }[n].join(" "), c = a ? "V 0" : `H ${t}`, l = t / 2, u = t / 2 + E(i, e / 8), d = e / 8, f = {
191
+ bottom: [
192
+ "C",
193
+ u,
194
+ d,
195
+ l + o,
196
+ 0,
197
+ l,
198
+ 0
199
+ ],
200
+ top: [
201
+ "C",
202
+ u,
203
+ e - d,
204
+ l + o,
205
+ e,
206
+ l,
207
+ e
208
+ ],
209
+ right: [
210
+ "C",
211
+ d,
212
+ t - u,
213
+ 0,
214
+ l - o,
215
+ 0,
216
+ l
217
+ ],
218
+ left: [
219
+ "C",
220
+ e - d,
221
+ t - u,
222
+ e,
223
+ l - o,
224
+ e,
225
+ l
226
+ ]
227
+ }[n].join(" "), p = t / 2 - E(i, e / 8), m = e / 8;
228
+ return [
229
+ "M",
230
+ s,
231
+ c,
232
+ f,
233
+ {
234
+ bottom: [
235
+ "C",
236
+ l - o,
237
+ 0,
238
+ p,
239
+ m,
240
+ s
241
+ ],
242
+ top: [
243
+ "C",
244
+ l - o,
245
+ e,
246
+ p,
247
+ e - m,
248
+ s
249
+ ],
250
+ right: [
251
+ "C",
252
+ 0,
253
+ l + o,
254
+ m,
255
+ t - p,
256
+ s
257
+ ],
258
+ left: [
259
+ "C",
260
+ e,
261
+ l + o,
262
+ e - m,
263
+ t - p,
264
+ s
265
+ ]
266
+ }[n].join(" ")
267
+ ].join(" ");
268
+ }
269
+ function k(e, t, n, r, i) {
270
+ let a = r === "left" || r === "right", o = r === "top" || r === "left", s = E(i, n), [c, l] = o ? [0, n] : [e, e - n];
271
+ return a ? [
272
+ "M",
273
+ c,
274
+ n,
275
+ "V",
276
+ t - n,
277
+ "L",
278
+ l,
279
+ t - n - s,
280
+ "V",
281
+ s + n,
282
+ "Z"
283
+ ].join(" ") : [
284
+ "M",
285
+ n,
286
+ c,
287
+ "H",
288
+ t - n,
289
+ "L",
290
+ t - n - s,
291
+ l,
292
+ "H",
293
+ s + n,
294
+ "Z"
295
+ ].join(" ");
296
+ }
297
+ var A = e(function({ size: e = 8, angle: t = 45, borderWidth: n = 0, borderColor: r = "black", roundness: i = 0, backgroundColor: a = "white", layerSide: o = "top", style: l = {}, ...u }, d) {
298
+ if (o === "center") return null;
299
+ let f = o === "left" || o === "right", p = o === "top" || o === "left", m = e, h = E(t, e) * 2, g = Math.max(m, h);
300
+ return /* @__PURE__ */ c("svg", {
301
+ ref: d,
302
+ ...u,
303
+ style: {
304
+ ...l,
305
+ transform: `translate${f ? "Y" : "X"}(-50%)`
306
+ },
307
+ width: g,
308
+ height: g,
309
+ preserveAspectRatio: p ? "xMinYMin" : "xMaxYMax",
310
+ viewBox: D(m, h, o, n),
311
+ children: [/* @__PURE__ */ s("path", {
312
+ fill: a,
313
+ strokeWidth: n,
314
+ stroke: r,
315
+ d: O(m, h, o, i, t)
316
+ }), /* @__PURE__ */ s("path", {
317
+ fill: a,
318
+ d: k(m, h, n, o, t)
319
+ })]
320
+ });
321
+ }), j = {
322
+ ENTERING: 0,
323
+ LEAVING: 1,
324
+ IDLE: 2
325
+ };
326
+ function M(e = {}) {
327
+ let { delayEnter: r = 0, delayLeave: i = 0, hideOnScroll: s = !0 } = e, [c, l] = o(!1), u = a(null), d = a(j.IDLE), f = a(!1), p = t(() => {
328
+ u.current !== null && (window.clearTimeout(u.current), u.current = null), d.current = j.IDLE;
329
+ }, []), m = () => {
330
+ d.current === j.LEAVING && u.current !== null && p(), !c && (d.current = j.ENTERING, u.current = window.setTimeout(() => {
331
+ l(!0), u.current = null, d.current = j.IDLE;
332
+ }, r));
333
+ }, h = (e) => {
334
+ if (d.current === j.ENTERING && u.current !== null && p(), c) {
335
+ if (e) {
336
+ l(!1), u.current = null, d.current = j.IDLE;
337
+ return;
338
+ }
339
+ d.current = j.LEAVING, u.current = window.setTimeout(() => {
340
+ l(!1), u.current = null, d.current = j.IDLE;
341
+ }, i);
342
+ }
343
+ };
344
+ return n(() => {
345
+ let e = () => {
346
+ c && s && (p(), l(!1));
347
+ };
348
+ return window.addEventListener("scroll", e, !0), () => {
349
+ window.removeEventListener("scroll", e, !0), u.current !== null && window.clearTimeout(u.current);
350
+ };
351
+ }, [
352
+ c,
353
+ s,
354
+ p
355
+ ]), [
356
+ c,
357
+ {
358
+ onMouseEnter: m,
359
+ onMouseLeave: () => h(!1),
360
+ onTouchStart: () => {
361
+ f.current = !1;
362
+ },
363
+ onTouchMove: () => {
364
+ f.current = !0;
365
+ },
366
+ onTouchEnd: () => {
367
+ !f.current && !c && l(!0), f.current = !1;
368
+ }
369
+ },
370
+ () => h(!0)
371
+ ];
372
+ }
373
+ //#endregion
374
+ export { A as Arrow, y as mergeRefs, M as useHover, T as useLayer };
@@ -0,0 +1 @@
1
+ function e(e,t){if(e==null||Array.isArray(e)&&e.length===0)return[t,t,t,t,t];let n=Array.isArray(e)?[...e]:[e,e,e,e,e],r=n[0]==null?t:n[0],i=[r,r,r,r,r];for(let e=1;e<5;e++)i[e]=n[e]==null?i[e-1]:n[e];return i}exports.default=e;
@@ -0,0 +1,27 @@
1
+ //#region src/utils/getBreakpointsValues.ts
2
+ function e(e, t) {
3
+ if (e == null || Array.isArray(e) && e.length === 0) return [
4
+ t,
5
+ t,
6
+ t,
7
+ t,
8
+ t
9
+ ];
10
+ let n = Array.isArray(e) ? [...e] : [
11
+ e,
12
+ e,
13
+ e,
14
+ e,
15
+ e
16
+ ], r = n[0] == null ? t : n[0], i = [
17
+ r,
18
+ r,
19
+ r,
20
+ r,
21
+ r
22
+ ];
23
+ for (let e = 1; e < 5; e++) i[e] = n[e] == null ? i[e - 1] : n[e];
24
+ return i;
25
+ }
26
+ //#endregion
27
+ export { e as default };
@@ -0,0 +1 @@
1
+ var e={vW:`100vw`,vH:`100vh`,quarter:`25%`,third:`33.33%`,half:`50%`,twoThird:`66.66%`,threeQuarter:`75%`,full:`100%`,xxxs:`12px`,xxs:`16px`,xs:`20px`,sm:`24px`,md:`28px`,lg:`32px`,lxl:`40px`,xl:`48px`,xxl:`64px`,xxxl:`80px`,xxxxl:`96px`,xxxxxl:`128px`,buttonMaxWidth:`352px`,$sm:`236px`,$md:`480px`,$lg:`636px`,$xl:`864px`};exports.SIZES_MAP=e;
@@ -0,0 +1,30 @@
1
+ //#region src/utils/sizes.ts
2
+ var e = {
3
+ vW: "100vw",
4
+ vH: "100vh",
5
+ quarter: "25%",
6
+ third: "33.33%",
7
+ half: "50%",
8
+ twoThird: "66.66%",
9
+ threeQuarter: "75%",
10
+ full: "100%",
11
+ xxxs: "12px",
12
+ xxs: "16px",
13
+ xs: "20px",
14
+ sm: "24px",
15
+ md: "28px",
16
+ lg: "32px",
17
+ lxl: "40px",
18
+ xl: "48px",
19
+ xxl: "64px",
20
+ xxxl: "80px",
21
+ xxxxl: "96px",
22
+ xxxxxl: "128px",
23
+ buttonMaxWidth: "352px",
24
+ $sm: "236px",
25
+ $md: "480px",
26
+ $lg: "636px",
27
+ $xl: "864px"
28
+ };
29
+ //#endregion
30
+ export { e as SIZES_MAP };
@@ -0,0 +1 @@
1
+ var e={none:`0px`,xxxs:`2px`,xxs:`4px`,xs:`8px`,sm:`12px`,md:`16px`,mdl:`20px`,lg:`24px`,xl:`32px`,xxl:`48px`,xxxl:`64px`,xxxxl:`96px`,xxxxxl:`128px`},t={vW:`100vw`,vH:`100vh`,quarter:`25%`,third:`33.33%`,half:`50%`,twoThird:`66.66%`,threeQuarter:`75%`,full:`100%`,xxxs:`12px`,xxs:`16px`,xs:`20px`,sm:`24px`,md:`28px`,lg:`32px`,lxl:`40px`,xl:`48px`,xxl:`64px`,xxxl:`80px`,xxxxl:`96px`,xxxxxl:`128px`,buttonMaxWidth:`352px`,$sm:`236px`,$md:`480px`,$lg:`636px`,$xl:`864px`},n={none:`0px`,sm:`1px`,md:`2px`,lg:`3px`,xl:`4px`,strokeDivider:`1px`,strokeAction:`2px`,strokeEmphasize:`3px`},r={none:`0`,xs:`2px`,sm:`4px`,$sm:`6px`,md:`8px`,lg:`12px`,xl:`20px`,pill:`9999px`,circle:`100%`,adSmall:`var(--radius-ad-small)`,ad:`var(--radius-ad)`,cardSmall:`var(--radius-card-small)`,card:`var(--radius-card)`,decoration:`var(--radius-decoration)`,modal:`var(--radius-modal)`},i={none:`none`,sm:`0px 2px 4px rgba(0,0,0,.5)`,md:`0px 0px 8px rgba(0,0,0,.3)`,lg:`2px 2px 14px rgba(0,0,0,.3)`,below:`var(--shadow-below)`,floating:`var(--shadow-floating)`},a={gray0:`var(--color-gray0)`,gray25:`var(--color-gray25)`,gray50:`var(--color-gray50)`,gray75:`var(--color-gray75)`,gray100:`var(--color-gray100)`,gray200:`var(--color-gray200)`,gray300:`var(--color-gray300)`,gray400:`var(--color-gray400)`,gray500:`var(--color-gray500)`,gray600:`var(--color-gray600)`,gray700:`var(--color-gray700)`,gray800:`var(--color-gray800)`,gray900:`var(--color-gray900)`,red50:`var(--color-red50)`,red75:`var(--color-red75)`,red100:`var(--color-red100)`,red200:`var(--color-red200)`,red300:`var(--color-red300)`,red400:`var(--color-red400)`,red500:`var(--color-red500)`,red600:`var(--color-red600)`,red700:`var(--color-red700)`,red800:`var(--color-red800)`,red900:`var(--color-red900)`,orange50:`var(--color-orange50)`,orange75:`var(--color-orange75)`,orange100:`var(--color-orange100)`,orange200:`var(--color-orange200)`,orange300:`var(--color-orange300)`,orange400:`var(--color-orange400)`,orange500:`var(--color-orange500)`,orange600:`var(--color-orange600)`,orange700:`var(--color-orange700)`,orange800:`var(--color-orange800)`,orange900:`var(--color-orange900)`,yellow50:`var(--color-yellow50)`,yellow75:`var(--color-yellow75)`,yellow100:`var(--color-yellow100)`,yellow200:`var(--color-yellow200)`,yellow300:`var(--color-yellow300)`,yellow400:`var(--color-yellow400)`,yellow500:`var(--color-yellow500)`,yellow600:`var(--color-yellow600)`,yellow700:`var(--color-yellow700)`,yellow800:`var(--color-yellow800)`,yellow900:`var(--color-yellow900)`,green50:`var(--color-green50)`,green75:`var(--color-green75)`,green100:`var(--color-green100)`,green200:`var(--color-green200)`,green300:`var(--color-green300)`,green400:`var(--color-green400)`,green500:`var(--color-green500)`,green600:`var(--color-green600)`,green700:`var(--color-green700)`,green800:`var(--color-green800)`,green900:`var(--color-green900)`,blue50:`var(--color-blue50)`,blue75:`var(--color-blue75)`,blue100:`var(--color-blue100)`,blue200:`var(--color-blue200)`,blue300:`var(--color-blue300)`,blue400:`var(--color-blue400)`,blue500:`var(--color-blue500)`,blue600:`var(--color-blue600)`,blue700:`var(--color-blue700)`,blue800:`var(--color-blue800)`,blue900:`var(--color-blue900)`,vertical50:`var(--color-vertical50)`,vertical75:`var(--color-vertical75)`,vertical100:`var(--color-vertical100)`,vertical200:`var(--color-vertical200)`,vertical300:`var(--color-vertical300)`,vertical400:`var(--color-vertical400)`,vertical500:`var(--color-vertical500)`,vertical600:`var(--color-vertical600)`,vertical700:`var(--color-vertical700)`,vertical800:`var(--color-vertical800)`,vertical900:`var(--color-vertical900)`,text:`var(--color-gray900)`,textLighter:`var(--color-gray400)`,link:`var(--color-blue500)`,linkHover:`var(--color-blue400)`,linkActive:`var(--color-blue600)`,border:`var(--color-gray200)`,line:`var(--color-gray75)`,background:`var(--color-gray50)`,highlight:`var(--color-yellow75)`,muted:`var(--color-gray200)`,primary:`var(--color-orange300)`,primaryDark:`var(--color-orange400)`,primaryLight:`var(--color-orange200)`,primaryBG:`var(--color-orange75)`,primaryBGLight:`var(--color-orange50)`,secondary:`var(--color-green400)`,secondaryDark:`var(--color-green500)`,secondaryLight:`var(--color-green300)`,secondaryBG:`var(--color-green75)`,secondaryBGLight:`var(--color-green50)`,accent:`var(--color-orange300)`,accentDark:`var(--color-orange400)`,accentLight:`var(--color-orange200)`,accentBG:`var(--color-orange75)`,accentBGLight:`var(--color-orange50)`,neutral:`var(--color-gray200)`,neutralDark:`var(--color-gray400)`,neutralLight:`var(--color-gray75)`,neutralBG:`var(--color-gray50)`,neutralBGLight:`var(--color-gray50)`,critical:`var(--color-red500)`,criticalDark:`var(--color-red400)`,criticalLight:`var(--color-red600)`,criticalBG:`var(--color-red75)`,criticalBGLight:`var(--color-red50)`,info:`var(--color-blue400)`,infoDark:`var(--color-blue500)`,infoLight:`var(--color-blue300)`,infoBG:`var(--color-blue75)`,infoBGLight:`var(--color-blue50)`,positive:`var(--color-green400)`,positiveDark:`var(--color-green500)`,positiveLight:`var(--color-green300)`,positiveBG:`var(--color-green75)`,positiveBGLight:`var(--color-green50)`,caution:`var(--color-yellow200)`,cautionDark:`var(--color-yellow300)`,cautionLight:`var(--color-yellow100)`,cautionBG:`var(--color-yellow75)`,cautionBGLight:`var(--color-yellow50)`,negative:`var(--color-red500)`,notice:``,backgroundApp:`var(--color-background-app)`,backgroundBrand:`var(--color-background-brand)`,backgroundBrandLight:`var(--color-background-brand-light)`,backgroundBrandLightSecondary:`var(--color-background-brand-light-secondary)`,backgroundInfo:`var(--color-background-info)`,backgroundInfoLight:`var(--color-background-info-light)`,backgroundSuccess:`var(--color-background-success)`,backgroundSuccessLight:`var(--color-background-success-light)`,backgroundError:`var(--color-background-error)`,backgroundErrorLight:`var(--color-background-error-light)`,backgroundWarning:`var(--color-background-warning)`,backgroundWarningLight:`var(--color-background-warning-light)`,backgroundAppwrapper:`var(--color-background-appwrapper)`,backgroundPrimary:`var(--color-background-primary)`,backgroundInverted:`var(--color-background-inverted)`,backgroundSecondary:`var(--color-background-secondary)`,backgroundOverlay:`var(--color-background-overlay)`,backgroundOverlayInverted:`var(--color-background-overlay-inverted)`,backgroundTertiary:`var(--color-background-tertiary)`,backgroundChotot:`var(--color-background-chotot)`,backgroundChototLight:`var(--color-background-chotot-light)`,backgroundDisabled:`var(--color-background-disabled)`,backgroundDisable:`var(--color-background-disable)`,textBrand:`var(--color-text-brand)`,textPrimary:`var(--color-text-primary)`,textSecondary:`var(--color-text-secondary)`,textTertiary:`var(--color-text-tertiary)`,textLink:`var(--color-text-link)`,textInfo:`var(--color-text-info)`,textSuccess:`var(--color-text-success)`,textError:`var(--color-text-error)`,textWarning:`var(--color-text-warning)`,textDisabled:`var(--color-text-disabled)`,textBlank:`var(--color-text-blank)`,textOverlay:`var(--color-text-overlay)`,textOverlaySecondary:`var(--color-text-overlay-secondary)`,textOnBackground:`var(--color-text-on-background)`,textChotot:`var(--color-text-chotot)`,buttonPrimary:`var(--color-button-primary)`,buttonNeutral:`var(--color-button-neutral)`,buttonInfo:`var(--color-button-info)`,buttonSuccess:`var(--color-button-success)`,buttonError:`var(--color-button-error)`,buttonChotot:`var(--color-button-chotot)`,buttonBlank:`var(--color-button-blank)`,buttonDisabled:`var(--color-button-disabled)`,buttonAppwrapper:`var(--color-button-appwrapper)`,buttonSecondary:`var(--color-button-secondary)`,buttonTonalInfo:`var(--color-button-tonal-info)`,buttonTonalSuccess:`var(--color-button-tonal-success)`,buttonTonalError:`var(--color-button-tonal-error)`,buttonTonalNeutral:`var(--color-button-tonal-neutral)`,skeletonBackground:`var(--color-skeleton-background)`,skeletonItem:`var(--color-skeleton-item)`,logoPrimary:`var(--color-logo-primary)`,logoSecondary:`var(--color-logo-secondary)`,logoOnBlack:`var(--color-logo-on-black)`,borderThin:`var(--color-border-thin)`,borderRegular:`var(--color-border-regular)`,borderBold:`var(--color-border-bold)`,borderActive:`var(--color-border-active)`,borderBlank:`var(--color-border-blank)`,borderBrand:`var(--color-border-brand)`,borderInfo:`var(--color-border-info)`,borderSuccess:`var(--color-border-success)`,borderError:`var(--color-border-error)`,borderDisabled:`var(--color-border-disabled)`,borderBlack:`var(--color-border-black)`,borderDivider:`var(--color-border-divider)`,borderOverlay:`var(--color-border-overlay)`,borderWarning:`var(--color-border-warning)`,iconBrand:`var(--color-icon-brand)`,iconPrimary:`var(--color-icon-primary)`,iconSecondary:`var(--color-icon-secondary)`,iconTertiary:`var(--color-icon-tertiary)`,iconBlank:`var(--color-icon-blank)`,iconInfo:`var(--color-icon-info)`,iconSuccess:`var(--color-icon-success)`,iconError:`var(--color-icon-error)`,iconWarning:`var(--color-icon-warning)`,iconChotot:`var(--color-icon-chotot)`,iconChototBold:`var(--color-icon-chotot-bold)`,iconDisabled:`var(--color-icon-disabled)`,iconOnBackground:`var(--color-icon-on-background)`,interactionBrandHover:`var(--color-interaction-brand-hover)`,interactionBrandPressed:`var(--color-interaction-brand-pressed)`,interactionBrandLightHover:`var(--color-interaction-brand-light-hover)`,interactionBrandLightPressed:`var(--color-interaction-brand-light-pressed)`,interactionInfoHover:`var(--color-interaction-info-hover)`,interactionInfoPressed:`var(--color-interaction-info-pressed)`,interactionInfoLightHover:`var(--color-interaction-info-light-hover)`,interactionInfoLightPressed:`var(--color-interaction-info-light-pressed)`,interactionSuccessHover:`var(--color-interaction-success-hover)`,interactionSuccessPressed:`var(--color-interaction-success-pressed)`,interactionSuccessLightHover:`var(--color-interaction-success-light-hover)`,interactionSuccessLightPressed:`var(--color-interaction-success-light-pressed)`,interactionErrorHover:`var(--color-interaction-error-hover)`,interactionErrorPressed:`var(--color-interaction-error-pressed)`,interactionErrorLightHover:`var(--color-interaction-error-light-hover)`,interactionErrorLightPressed:`var(--color-interaction-error-light-pressed)`,interactionNeutralHover:`var(--color-interaction-neutral-hover)`,interactionNeutralPressed:`var(--color-interaction-neutral-pressed)`,interactionNeutralLightHover:`var(--color-interaction-neutral-light-hover)`,interactionNeutralLightPressed:`var(--color-interaction-neutral-light-pressed)`,interactionChototHover:`var(--color-interaction-chotot-hover)`,interactionChototPressed:`var(--color-interaction-chotot-pressed)`,interactionPrimaryHover:`var(--color-interaction-primary-hover)`,interactionWarningHover:`var(--color-interaction-warning-hover)`,interactionWarningPressed:`var(--color-interaction-warning-pressed)`,interactionWarningLightHover:`var(--color-interaction-warning-light-hover)`,interactionWarningLightPressed:`var(--color-interaction-warning-light-pressed)`};exports.BORDER_WIDTHS_MAP=n,exports.COLORS_MAP=a,exports.RADII_MAP=r,exports.SHADOWS_MAP=i,exports.SIZES_TOKENS_MAP=t,exports.SPACE_MAP=e;