@blofin/blofin-ui 0.6.87

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 (238) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +97 -0
  3. package/dist/Badge.d.ts +1 -0
  4. package/dist/Badge.es.js +56 -0
  5. package/dist/Button.d.ts +1 -0
  6. package/dist/Button.es.js +377 -0
  7. package/dist/Dialog.d.ts +1 -0
  8. package/dist/Dialog.es.js +159 -0
  9. package/dist/Divider.d.ts +1 -0
  10. package/dist/Divider.es.js +25 -0
  11. package/dist/Drawer.d.ts +1 -0
  12. package/dist/Drawer.es.js +90 -0
  13. package/dist/Form.d.ts +1 -0
  14. package/dist/Form.es.js +752 -0
  15. package/dist/Slider.d.ts +1 -0
  16. package/dist/Slider.es.js +242 -0
  17. package/dist/blofin.css +1 -0
  18. package/dist/close-c67ec245.js +5 -0
  19. package/dist/components/Alert/Alert.d.ts +12 -0
  20. package/dist/components/Alert/index.d.ts +2 -0
  21. package/dist/components/Alert/styles.d.ts +7 -0
  22. package/dist/components/Badge/Badge.d.ts +21 -0
  23. package/dist/components/Badge/index.d.ts +2 -0
  24. package/dist/components/Badge/styles.d.ts +7 -0
  25. package/dist/components/Button/Button.d.ts +35 -0
  26. package/dist/components/Button/Loading/index.d.ts +8 -0
  27. package/dist/components/Button/index.d.ts +2 -0
  28. package/dist/components/Button/styles.d.ts +13 -0
  29. package/dist/components/Button/types.d.ts +5 -0
  30. package/dist/components/Calendar/Calendar.d.ts +12 -0
  31. package/dist/components/Calendar/index.d.ts +2 -0
  32. package/dist/components/Calendar/styles.d.ts +39 -0
  33. package/dist/components/Checkbox/Checkbox.d.ts +8 -0
  34. package/dist/components/Checkbox/index.d.ts +2 -0
  35. package/dist/components/Checkbox/styles.d.ts +22 -0
  36. package/dist/components/CssDropdown/CssDropdown.d.ts +18 -0
  37. package/dist/components/CssDropdown/styles.d.ts +7 -0
  38. package/dist/components/DatePickerRange/DatePickerRange.d.ts +32 -0
  39. package/dist/components/DatePickerRange/styles.d.ts +6 -0
  40. package/dist/components/DateTimePicker/Calendar.d.ts +10 -0
  41. package/dist/components/DateTimePicker/DateTimePicker.d.ts +18 -0
  42. package/dist/components/DateTimePicker/ScrollableList.d.ts +12 -0
  43. package/dist/components/DateTimePicker/hooks/useDateTimePicker.d.ts +35 -0
  44. package/dist/components/DateTimePicker/styles.d.ts +48 -0
  45. package/dist/components/Dialog/Dialog.d.ts +30 -0
  46. package/dist/components/Dialog/index.d.ts +2 -0
  47. package/dist/components/Dialog/styles.d.ts +13 -0
  48. package/dist/components/Divider/Divider.d.ts +8 -0
  49. package/dist/components/Divider/index.d.ts +2 -0
  50. package/dist/components/Divider/styles.d.ts +7 -0
  51. package/dist/components/Drawer/Drawer.d.ts +13 -0
  52. package/dist/components/Drawer/index.d.ts +2 -0
  53. package/dist/components/Drawer/styles.d.ts +6 -0
  54. package/dist/components/Dropdown/Dropdown.d.ts +14 -0
  55. package/dist/components/Dropdown/style.d.ts +9 -0
  56. package/dist/components/Empty/index.d.ts +5 -0
  57. package/dist/components/Form/Control.d.ts +13 -0
  58. package/dist/components/Form/Form.d.ts +3 -0
  59. package/dist/components/Form/FormItem.d.ts +4 -0
  60. package/dist/components/Form/FormLabel.d.ts +4 -0
  61. package/dist/components/Form/context.d.ts +5 -0
  62. package/dist/components/Form/index.d.ts +8 -0
  63. package/dist/components/Form/interface.d.ts +48 -0
  64. package/dist/components/Form/store.d.ts +16 -0
  65. package/dist/components/Form/styles/item.d.ts +5 -0
  66. package/dist/components/Form/useForm.d.ts +3 -0
  67. package/dist/components/LabelTextField/LabelTextField.d.ts +17 -0
  68. package/dist/components/LabelTextField/index.d.ts +2 -0
  69. package/dist/components/LabelTextField/styles.d.ts +34 -0
  70. package/dist/components/MonthPicker/index.d.ts +17 -0
  71. package/dist/components/Notification/Notification.d.ts +2 -0
  72. package/dist/components/Notification/style.d.ts +15 -0
  73. package/dist/components/Pagination/PageOptions.d.ts +12 -0
  74. package/dist/components/Pagination/Pagination.d.ts +34 -0
  75. package/dist/components/Pagination/styles.d.ts +6 -0
  76. package/dist/components/Picker/hooks/usePickerMethod.d.ts +9 -0
  77. package/dist/components/Picker/index.d.ts +10 -0
  78. package/dist/components/Picker/styles.d.ts +4 -0
  79. package/dist/components/Popover/Popover.d.ts +17 -0
  80. package/dist/components/Popup/index.d.ts +15 -0
  81. package/dist/components/Popup/styles.d.ts +3 -0
  82. package/dist/components/RadioButton/RadioButton.d.ts +10 -0
  83. package/dist/components/RadioButton/index.d.ts +2 -0
  84. package/dist/components/RadioButton/styles.d.ts +12 -0
  85. package/dist/components/Select/Select.d.ts +38 -0
  86. package/dist/components/Select/index.d.ts +2 -0
  87. package/dist/components/Select/styles.d.ts +24 -0
  88. package/dist/components/Slider/Slider.d.ts +20 -0
  89. package/dist/components/Slider/index.d.ts +2 -0
  90. package/dist/components/Slider/styles.d.ts +31 -0
  91. package/dist/components/Sort/SortButton.d.ts +14 -0
  92. package/dist/components/Sort/SortGroup.d.ts +8 -0
  93. package/dist/components/Sort/reducer.d.ts +36 -0
  94. package/dist/components/Sortable/SortItem.d.ts +6 -0
  95. package/dist/components/Sortable/index.d.ts +10 -0
  96. package/dist/components/Switch/Switch.d.ts +9 -0
  97. package/dist/components/Switch/styles.d.ts +12 -0
  98. package/dist/components/Tab/Tab.d.ts +21 -0
  99. package/dist/components/Tab/styles.d.ts +20 -0
  100. package/dist/components/Table/Pagination/index.d.ts +8 -0
  101. package/dist/components/Table/Table.d.ts +5 -0
  102. package/dist/components/Table/Tbody/index.d.ts +14 -0
  103. package/dist/components/Table/Thead/index.d.ts +17 -0
  104. package/dist/components/Table/context.d.ts +17 -0
  105. package/dist/components/Table/css.d.ts +12 -0
  106. package/dist/components/Table/hooks/useStickyClassName.d.ts +3 -0
  107. package/dist/components/Table/hooks/useStickyOffset.d.ts +15 -0
  108. package/dist/components/Table/index.d.ts +3 -0
  109. package/dist/components/Table/interface.d.ts +48 -0
  110. package/dist/components/TextField/TextField.d.ts +15 -0
  111. package/dist/components/TextField/index.d.ts +2 -0
  112. package/dist/components/TextSelect/TextSelect.d.ts +50 -0
  113. package/dist/components/TextSelect/styles.d.ts +27 -0
  114. package/dist/components/Textarea/index.d.ts +15 -0
  115. package/dist/components/Textarea/style.d.ts +13 -0
  116. package/dist/components/Toast/Toast.d.ts +2 -0
  117. package/dist/components/Toast/styles.d.ts +13 -0
  118. package/dist/components/Tooltip/Tooltip.d.ts +22 -0
  119. package/dist/components/Tooltip/enum.d.ts +21 -0
  120. package/dist/components/Tooltip/styles.d.ts +10 -0
  121. package/dist/components/Tooltip/type.d.ts +1 -0
  122. package/dist/components/Typography/Typography.d.ts +35 -0
  123. package/dist/components/Typography/styles.d.ts +10 -0
  124. package/dist/config/tailwind.js +9 -0
  125. package/dist/config/theme.js +318 -0
  126. package/dist/hooks/useAlign.d.ts +20 -0
  127. package/dist/hooks/useClient.d.ts +4 -0
  128. package/dist/hooks/useDelayEvent.d.ts +2 -0
  129. package/dist/hooks/useLatest.d.ts +1 -0
  130. package/dist/hooks/useNotification.d.ts +10 -0
  131. package/dist/hooks/useOutsideClick.d.ts +2 -0
  132. package/dist/hooks/useToast.d.ts +9 -0
  133. package/dist/index-0055aace.js +338 -0
  134. package/dist/index-0171eaca.js +436 -0
  135. package/dist/index-03ecf4ec.js +400 -0
  136. package/dist/index-04d10294.js +298 -0
  137. package/dist/index-0a1520d4.js +287 -0
  138. package/dist/index-0f855a91.js +14 -0
  139. package/dist/index-114820db.js +354 -0
  140. package/dist/index-1388dfff.js +336 -0
  141. package/dist/index-15b50a21.js +298 -0
  142. package/dist/index-17308ac1.js +298 -0
  143. package/dist/index-17afe366.js +298 -0
  144. package/dist/index-1d78221c.js +339 -0
  145. package/dist/index-1dc85776.js +437 -0
  146. package/dist/index-20e881af.js +354 -0
  147. package/dist/index-20f2adc4.js +398 -0
  148. package/dist/index-21539629.js +478 -0
  149. package/dist/index-21f85e78.js +377 -0
  150. package/dist/index-236e0579.js +71 -0
  151. package/dist/index-250f50e2.js +502 -0
  152. package/dist/index-356291b2.js +450 -0
  153. package/dist/index-38216e9e.js +340 -0
  154. package/dist/index-3c058c26.js +606 -0
  155. package/dist/index-3c3ba437.js +341 -0
  156. package/dist/index-3cd72a27.js +61 -0
  157. package/dist/index-3dcefa10.js +328 -0
  158. package/dist/index-3f70b1d4.js +331 -0
  159. package/dist/index-40ad0dd1.js +287 -0
  160. package/dist/index-42fb4fd5.js +334 -0
  161. package/dist/index-45696efa.js +438 -0
  162. package/dist/index-4b6824f2.js +61 -0
  163. package/dist/index-4b7924c1.js +354 -0
  164. package/dist/index-4c8ef561.js +337 -0
  165. package/dist/index-4ced47cd.js +359 -0
  166. package/dist/index-4eb29fd9.js +313 -0
  167. package/dist/index-4f2d4e0d.js +342 -0
  168. package/dist/index-51847d07.js +363 -0
  169. package/dist/index-51c1e00d.js +9 -0
  170. package/dist/index-51cf15b2.js +11054 -0
  171. package/dist/index-5357c173.js +336 -0
  172. package/dist/index-572ed179.js +353 -0
  173. package/dist/index-580c6bf2.js +362 -0
  174. package/dist/index-6817d9c1.js +363 -0
  175. package/dist/index-682656f7.js +62 -0
  176. package/dist/index-6834d6cf.js +330 -0
  177. package/dist/index-6a5829bd.js +387 -0
  178. package/dist/index-739cb389.js +332 -0
  179. package/dist/index-7601ed24.js +332 -0
  180. package/dist/index-76c2d21a.js +362 -0
  181. package/dist/index-7871c2fa.js +397 -0
  182. package/dist/index-7a871a23.js +362 -0
  183. package/dist/index-7aae1d07.js +298 -0
  184. package/dist/index-80121226.js +443 -0
  185. package/dist/index-872a50e8.js +353 -0
  186. package/dist/index-88fdaa89.js +437 -0
  187. package/dist/index-8a4c6daa.js +302 -0
  188. package/dist/index-8fb7d88b.js +360 -0
  189. package/dist/index-9412ffa1.js +346 -0
  190. package/dist/index-95d62350.js +427 -0
  191. package/dist/index-96a8d125.js +65 -0
  192. package/dist/index-9d0a665d.js +298 -0
  193. package/dist/index-a8c0dd3b.js +500 -0
  194. package/dist/index-aa90be0a.js +146 -0
  195. package/dist/index-aac5376e.js +331 -0
  196. package/dist/index-ac48594f.js +364 -0
  197. package/dist/index-acc7a626.js +146 -0
  198. package/dist/index-af6965cc.js +332 -0
  199. package/dist/index-b523f554.js +61 -0
  200. package/dist/index-b5aa671f.js +463 -0
  201. package/dist/index-b7612310.js +333 -0
  202. package/dist/index-babf632c.js +332 -0
  203. package/dist/index-baf0849c.js +346 -0
  204. package/dist/index-bb65c72e.js +514 -0
  205. package/dist/index-bb84ad8c.js +514 -0
  206. package/dist/index-c1e6e7ba.js +340 -0
  207. package/dist/index-cb4b8e2c.js +341 -0
  208. package/dist/index-d9848a76.js +545 -0
  209. package/dist/index-dc4bbb59.js +332 -0
  210. package/dist/index-dfc0fb0e.js +364 -0
  211. package/dist/index-e27e30cc.js +345 -0
  212. package/dist/index-e8380fcb.js +335 -0
  213. package/dist/index-ea4a8872.js +311 -0
  214. package/dist/index-eb696d64.js +436 -0
  215. package/dist/index-ebd469fd.js +297 -0
  216. package/dist/index-ed48cf75.js +383 -0
  217. package/dist/index-f3092738.js +308 -0
  218. package/dist/index-f41bdf2a.js +238 -0
  219. package/dist/index-f5c25d06.js +458 -0
  220. package/dist/index-f7e0a67b.js +511 -0
  221. package/dist/index-fafae16f.js +337 -0
  222. package/dist/index-ffe656da.js +332 -0
  223. package/dist/index.d.ts +43 -0
  224. package/dist/index.es.js +51 -0
  225. package/dist/isObjectLike-1b8bbac2.js +44 -0
  226. package/dist/jsx-runtime-944c88e2.js +631 -0
  227. package/dist/provider/NoticeProvider.d.ts +41 -0
  228. package/dist/provider/ThemeProvider.d.ts +7 -0
  229. package/dist/provider/useTheme.d.ts +4 -0
  230. package/dist/types/component.d.ts +16 -0
  231. package/dist/types/svg.d.ts +4 -0
  232. package/dist/utils/format.d.ts +7 -0
  233. package/dist/utils/helper.d.ts +7 -0
  234. package/dist/utils/locales.d.ts +1 -0
  235. package/dist/utils/utils.d.ts +2 -0
  236. package/dist/utils-7e50508b.js +2304 -0
  237. package/dist/vite.svg +1 -0
  238. package/package.json +117 -0
@@ -0,0 +1,427 @@
1
+ import { a as u, b as r, c as h, d as o } from "./index-51cf15b2.js";
2
+ import "./Badge.es.js";
3
+ import "./jsx-runtime-944c88e2.js";
4
+ import "react";
5
+ import "./index-96a8d125.js";
6
+ import "./utils-7e50508b.js";
7
+ import "./Button.es.js";
8
+ import "./isObjectLike-1b8bbac2.js";
9
+ import "./Dialog.es.js";
10
+ import "react-dom";
11
+ import "./close-c67ec245.js";
12
+ import "./Drawer.es.js";
13
+ import "./Slider.es.js";
14
+ import "./Divider.es.js";
15
+ var m = {
16
+ lessThanXSeconds: {
17
+ standalone: {
18
+ one: "vähem kui üks sekund",
19
+ other: "vähem kui {{count}} sekundit"
20
+ },
21
+ withPreposition: {
22
+ one: "vähem kui ühe sekundi",
23
+ other: "vähem kui {{count}} sekundi"
24
+ }
25
+ },
26
+ xSeconds: {
27
+ standalone: {
28
+ one: "üks sekund",
29
+ other: "{{count}} sekundit"
30
+ },
31
+ withPreposition: {
32
+ one: "ühe sekundi",
33
+ other: "{{count}} sekundi"
34
+ }
35
+ },
36
+ halfAMinute: {
37
+ standalone: "pool minutit",
38
+ withPreposition: "poole minuti"
39
+ },
40
+ lessThanXMinutes: {
41
+ standalone: {
42
+ one: "vähem kui üks minut",
43
+ other: "vähem kui {{count}} minutit"
44
+ },
45
+ withPreposition: {
46
+ one: "vähem kui ühe minuti",
47
+ other: "vähem kui {{count}} minuti"
48
+ }
49
+ },
50
+ xMinutes: {
51
+ standalone: {
52
+ one: "üks minut",
53
+ other: "{{count}} minutit"
54
+ },
55
+ withPreposition: {
56
+ one: "ühe minuti",
57
+ other: "{{count}} minuti"
58
+ }
59
+ },
60
+ aboutXHours: {
61
+ standalone: {
62
+ one: "umbes üks tund",
63
+ other: "umbes {{count}} tundi"
64
+ },
65
+ withPreposition: {
66
+ one: "umbes ühe tunni",
67
+ other: "umbes {{count}} tunni"
68
+ }
69
+ },
70
+ xHours: {
71
+ standalone: {
72
+ one: "üks tund",
73
+ other: "{{count}} tundi"
74
+ },
75
+ withPreposition: {
76
+ one: "ühe tunni",
77
+ other: "{{count}} tunni"
78
+ }
79
+ },
80
+ xDays: {
81
+ standalone: {
82
+ one: "üks päev",
83
+ other: "{{count}} päeva"
84
+ },
85
+ withPreposition: {
86
+ one: "ühe päeva",
87
+ other: "{{count}} päeva"
88
+ }
89
+ },
90
+ aboutXWeeks: {
91
+ standalone: {
92
+ one: "umbes üks nädal",
93
+ other: "umbes {{count}} nädalat"
94
+ },
95
+ withPreposition: {
96
+ one: "umbes ühe nädala",
97
+ other: "umbes {{count}} nädala"
98
+ }
99
+ },
100
+ xWeeks: {
101
+ standalone: {
102
+ one: "üks nädal",
103
+ other: "{{count}} nädalat"
104
+ },
105
+ withPreposition: {
106
+ one: "ühe nädala",
107
+ other: "{{count}} nädala"
108
+ }
109
+ },
110
+ aboutXMonths: {
111
+ standalone: {
112
+ one: "umbes üks kuu",
113
+ other: "umbes {{count}} kuud"
114
+ },
115
+ withPreposition: {
116
+ one: "umbes ühe kuu",
117
+ other: "umbes {{count}} kuu"
118
+ }
119
+ },
120
+ xMonths: {
121
+ standalone: {
122
+ one: "üks kuu",
123
+ other: "{{count}} kuud"
124
+ },
125
+ withPreposition: {
126
+ one: "ühe kuu",
127
+ other: "{{count}} kuu"
128
+ }
129
+ },
130
+ aboutXYears: {
131
+ standalone: {
132
+ one: "umbes üks aasta",
133
+ other: "umbes {{count}} aastat"
134
+ },
135
+ withPreposition: {
136
+ one: "umbes ühe aasta",
137
+ other: "umbes {{count}} aasta"
138
+ }
139
+ },
140
+ xYears: {
141
+ standalone: {
142
+ one: "üks aasta",
143
+ other: "{{count}} aastat"
144
+ },
145
+ withPreposition: {
146
+ one: "ühe aasta",
147
+ other: "{{count}} aasta"
148
+ }
149
+ },
150
+ overXYears: {
151
+ standalone: {
152
+ one: "rohkem kui üks aasta",
153
+ other: "rohkem kui {{count}} aastat"
154
+ },
155
+ withPreposition: {
156
+ one: "rohkem kui ühe aasta",
157
+ other: "rohkem kui {{count}} aasta"
158
+ }
159
+ },
160
+ almostXYears: {
161
+ standalone: {
162
+ one: "peaaegu üks aasta",
163
+ other: "peaaegu {{count}} aastat"
164
+ },
165
+ withPreposition: {
166
+ one: "peaaegu ühe aasta",
167
+ other: "peaaegu {{count}} aasta"
168
+ }
169
+ }
170
+ }, p = function(e, s, a) {
171
+ var i = a != null && a.addSuffix ? m[e].withPreposition : m[e].standalone, t;
172
+ return typeof i == "string" ? t = i : s === 1 ? t = i.one : t = i.other.replace("{{count}}", String(s)), a != null && a.addSuffix ? a.comparison && a.comparison > 0 ? t + " pärast" : t + " eest" : t;
173
+ };
174
+ const k = p;
175
+ var v = {
176
+ full: "EEEE, d. MMMM y",
177
+ long: "d. MMMM y",
178
+ medium: "d. MMM y",
179
+ short: "dd.MM.y"
180
+ }, c = {
181
+ full: "HH:mm:ss zzzz",
182
+ long: "HH:mm:ss z",
183
+ medium: "HH:mm:ss",
184
+ short: "HH:mm"
185
+ }, f = {
186
+ full: "{{date}} 'kell' {{time}}",
187
+ long: "{{date}} 'kell' {{time}}",
188
+ medium: "{{date}}. {{time}}",
189
+ short: "{{date}}. {{time}}"
190
+ }, b = {
191
+ date: u({
192
+ formats: v,
193
+ defaultWidth: "full"
194
+ }),
195
+ time: u({
196
+ formats: c,
197
+ defaultWidth: "full"
198
+ }),
199
+ dateTime: u({
200
+ formats: f,
201
+ defaultWidth: "full"
202
+ })
203
+ };
204
+ const P = b;
205
+ var g = {
206
+ lastWeek: "'eelmine' eeee 'kell' p",
207
+ yesterday: "'eile kell' p",
208
+ today: "'täna kell' p",
209
+ tomorrow: "'homme kell' p",
210
+ nextWeek: "'järgmine' eeee 'kell' p",
211
+ other: "P"
212
+ }, w = function(e, s, a, i) {
213
+ return g[e];
214
+ };
215
+ const M = w;
216
+ var j = {
217
+ narrow: ["e.m.a", "m.a.j"],
218
+ abbreviated: ["e.m.a", "m.a.j"],
219
+ wide: ["enne meie ajaarvamist", "meie ajaarvamise järgi"]
220
+ }, y = {
221
+ narrow: ["1", "2", "3", "4"],
222
+ abbreviated: ["K1", "K2", "K3", "K4"],
223
+ wide: ["1. kvartal", "2. kvartal", "3. kvartal", "4. kvartal"]
224
+ }, l = {
225
+ narrow: ["J", "V", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
226
+ abbreviated: ["jaan", "veebr", "märts", "apr", "mai", "juuni", "juuli", "aug", "sept", "okt", "nov", "dets"],
227
+ wide: ["jaanuar", "veebruar", "märts", "aprill", "mai", "juuni", "juuli", "august", "september", "oktoober", "november", "detsember"]
228
+ }, d = {
229
+ narrow: ["P", "E", "T", "K", "N", "R", "L"],
230
+ short: ["P", "E", "T", "K", "N", "R", "L"],
231
+ abbreviated: ["pühap.", "esmasp.", "teisip.", "kolmap.", "neljap.", "reede.", "laup."],
232
+ wide: ["pühapäev", "esmaspäev", "teisipäev", "kolmapäev", "neljapäev", "reede", "laupäev"]
233
+ }, W = {
234
+ narrow: {
235
+ am: "AM",
236
+ pm: "PM",
237
+ midnight: "kesköö",
238
+ noon: "keskpäev",
239
+ morning: "hommik",
240
+ afternoon: "pärastlõuna",
241
+ evening: "õhtu",
242
+ night: "öö"
243
+ },
244
+ abbreviated: {
245
+ am: "AM",
246
+ pm: "PM",
247
+ midnight: "kesköö",
248
+ noon: "keskpäev",
249
+ morning: "hommik",
250
+ afternoon: "pärastlõuna",
251
+ evening: "õhtu",
252
+ night: "öö"
253
+ },
254
+ wide: {
255
+ am: "AM",
256
+ pm: "PM",
257
+ midnight: "kesköö",
258
+ noon: "keskpäev",
259
+ morning: "hommik",
260
+ afternoon: "pärastlõuna",
261
+ evening: "õhtu",
262
+ night: "öö"
263
+ }
264
+ }, D = {
265
+ narrow: {
266
+ am: "AM",
267
+ pm: "PM",
268
+ midnight: "keskööl",
269
+ noon: "keskpäeval",
270
+ morning: "hommikul",
271
+ afternoon: "pärastlõunal",
272
+ evening: "õhtul",
273
+ night: "öösel"
274
+ },
275
+ abbreviated: {
276
+ am: "AM",
277
+ pm: "PM",
278
+ midnight: "keskööl",
279
+ noon: "keskpäeval",
280
+ morning: "hommikul",
281
+ afternoon: "pärastlõunal",
282
+ evening: "õhtul",
283
+ night: "öösel"
284
+ },
285
+ wide: {
286
+ am: "AM",
287
+ pm: "PM",
288
+ midnight: "keskööl",
289
+ noon: "keskpäeval",
290
+ morning: "hommikul",
291
+ afternoon: "pärastlõunal",
292
+ evening: "õhtul",
293
+ night: "öösel"
294
+ }
295
+ }, K = function(e, s) {
296
+ var a = Number(e);
297
+ return a + ".";
298
+ }, x = {
299
+ ordinalNumber: K,
300
+ era: r({
301
+ values: j,
302
+ defaultWidth: "wide"
303
+ }),
304
+ quarter: r({
305
+ values: y,
306
+ defaultWidth: "wide",
307
+ argumentCallback: function(e) {
308
+ return e - 1;
309
+ }
310
+ }),
311
+ month: r({
312
+ values: l,
313
+ defaultWidth: "wide",
314
+ formattingValues: l,
315
+ defaultFormattingWidth: "wide"
316
+ }),
317
+ day: r({
318
+ values: d,
319
+ defaultWidth: "wide",
320
+ formattingValues: d,
321
+ defaultFormattingWidth: "wide"
322
+ }),
323
+ dayPeriod: r({
324
+ values: W,
325
+ defaultWidth: "wide",
326
+ formattingValues: D,
327
+ defaultFormattingWidth: "wide"
328
+ })
329
+ };
330
+ const F = x;
331
+ var H = /^\d+\./i, N = /\d+/i, V = {
332
+ narrow: /^(e\.m\.a|m\.a\.j|eKr|pKr)/i,
333
+ abbreviated: /^(e\.m\.a|m\.a\.j|eKr|pKr)/i,
334
+ wide: /^(enne meie ajaarvamist|meie ajaarvamise järgi|enne Kristust|pärast Kristust)/i
335
+ }, z = {
336
+ any: [/^e/i, /^(m|p)/i]
337
+ }, A = {
338
+ narrow: /^[1234]/i,
339
+ abbreviated: /^K[1234]/i,
340
+ wide: /^[1234](\.)? kvartal/i
341
+ }, L = {
342
+ any: [/1/i, /2/i, /3/i, /4/i]
343
+ }, E = {
344
+ narrow: /^[jvmasond]/i,
345
+ abbreviated: /^(jaan|veebr|märts|apr|mai|juuni|juuli|aug|sept|okt|nov|dets)/i,
346
+ wide: /^(jaanuar|veebruar|märts|aprill|mai|juuni|juuli|august|september|oktoober|november|detsember)/i
347
+ }, X = {
348
+ narrow: [/^j/i, /^v/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i],
349
+ any: [/^ja/i, /^v/i, /^mär/i, /^ap/i, /^mai/i, /^juun/i, /^juul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i]
350
+ }, C = {
351
+ narrow: /^[petknrl]/i,
352
+ short: /^[petknrl]/i,
353
+ abbreviated: /^(püh?|esm?|tei?|kolm?|nel?|ree?|laup?)\.?/i,
354
+ wide: /^(pühapäev|esmaspäev|teisipäev|kolmapäev|neljapäev|reede|laupäev)/i
355
+ }, R = {
356
+ any: [/^p/i, /^e/i, /^t/i, /^k/i, /^n/i, /^r/i, /^l/i]
357
+ }, S = {
358
+ any: /^(am|pm|keskööl?|keskpäev(al)?|hommik(ul)?|pärastlõunal?|õhtul?|öö(sel)?)/i
359
+ }, T = {
360
+ any: {
361
+ am: /^a/i,
362
+ pm: /^p/i,
363
+ midnight: /^keskö/i,
364
+ noon: /^keskp/i,
365
+ morning: /hommik/i,
366
+ afternoon: /pärastlõuna/i,
367
+ evening: /õhtu/i,
368
+ night: /öö/i
369
+ }
370
+ }, $ = {
371
+ ordinalNumber: h({
372
+ matchPattern: H,
373
+ parsePattern: N,
374
+ valueCallback: function(e) {
375
+ return parseInt(e, 10);
376
+ }
377
+ }),
378
+ era: o({
379
+ matchPatterns: V,
380
+ defaultMatchWidth: "wide",
381
+ parsePatterns: z,
382
+ defaultParseWidth: "any"
383
+ }),
384
+ quarter: o({
385
+ matchPatterns: A,
386
+ defaultMatchWidth: "wide",
387
+ parsePatterns: L,
388
+ defaultParseWidth: "any",
389
+ valueCallback: function(e) {
390
+ return e + 1;
391
+ }
392
+ }),
393
+ month: o({
394
+ matchPatterns: E,
395
+ defaultMatchWidth: "wide",
396
+ parsePatterns: X,
397
+ defaultParseWidth: "any"
398
+ }),
399
+ day: o({
400
+ matchPatterns: C,
401
+ defaultMatchWidth: "wide",
402
+ parsePatterns: R,
403
+ defaultParseWidth: "any"
404
+ }),
405
+ dayPeriod: o({
406
+ matchPatterns: S,
407
+ defaultMatchWidth: "any",
408
+ parsePatterns: T,
409
+ defaultParseWidth: "any"
410
+ })
411
+ };
412
+ const O = $;
413
+ var ie = {
414
+ code: "et",
415
+ formatDistance: k,
416
+ formatLong: P,
417
+ formatRelative: M,
418
+ localize: F,
419
+ match: O,
420
+ options: {
421
+ weekStartsOn: 1,
422
+ firstWeekContainsDate: 4
423
+ }
424
+ };
425
+ export {
426
+ ie as default
427
+ };
@@ -0,0 +1,65 @@
1
+ import { createContext as b, useContext as T } from "react";
2
+ const y = b({
3
+ theme: "light"
4
+ }), O = y.Provider, P = () => {
5
+ const { theme: t } = T(y);
6
+ return {
7
+ theme: t
8
+ };
9
+ };
10
+ function h(t) {
11
+ var n, e, r = "";
12
+ if (typeof t == "string" || typeof t == "number")
13
+ r += t;
14
+ else if (typeof t == "object")
15
+ if (Array.isArray(t))
16
+ for (n = 0; n < t.length; n++)
17
+ t[n] && (e = h(t[n])) && (r && (r += " "), r += e);
18
+ else
19
+ for (n in t)
20
+ t[n] && (r && (r += " "), r += n);
21
+ return r;
22
+ }
23
+ function j() {
24
+ for (var t, n, e = 0, r = ""; e < arguments.length; )
25
+ (t = arguments[e++]) && (n = h(t)) && (r && (r += " "), r += n);
26
+ return r;
27
+ }
28
+ const m = (t) => typeof t == "boolean" ? "".concat(t) : t === 0 ? "0" : t, f = j, g = (t, n) => (e) => {
29
+ var r;
30
+ if ((n == null ? void 0 : n.variants) == null)
31
+ return f(t, e == null ? void 0 : e.class, e == null ? void 0 : e.className);
32
+ const { variants: d, defaultVariants: s } = n, C = Object.keys(d).map((a) => {
33
+ const l = e == null ? void 0 : e[a], o = s == null ? void 0 : s[a];
34
+ if (l === null)
35
+ return null;
36
+ const i = m(l) || m(o);
37
+ return d[a][i];
38
+ }), c = e && Object.entries(e).reduce((a, l) => {
39
+ let [o, i] = l;
40
+ return i === void 0 || (a[o] = i), a;
41
+ }, {}), x = n == null || (r = n.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((a, l) => {
42
+ let { class: o, className: i, ...N } = l;
43
+ return Object.entries(N).every((V) => {
44
+ let [v, u] = V;
45
+ return Array.isArray(u) ? u.includes({
46
+ ...s,
47
+ ...c
48
+ }[v]) : {
49
+ ...s,
50
+ ...c
51
+ }[v] === u;
52
+ }) ? [
53
+ ...a,
54
+ o,
55
+ i
56
+ ] : a;
57
+ }, []);
58
+ return f(t, C, x, e == null ? void 0 : e.class, e == null ? void 0 : e.className);
59
+ };
60
+ export {
61
+ O as T,
62
+ g as a,
63
+ j as c,
64
+ P as u
65
+ };