@uxf/ui 10.0.0-beta.9 → 10.0.1

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 (386) hide show
  1. package/_file-input-base/file-input-base.js +15 -1
  2. package/_file-input-base/index.d.ts +1 -1
  3. package/_input-with-popover/input-with-popover.d.ts +4 -3
  4. package/_input-with-popover/input-with-popover.js +26 -26
  5. package/_select-base/_select-base.d.ts +3 -2
  6. package/_select-base/_select-base.js +6 -5
  7. package/_select-base/index.d.ts +1 -1
  8. package/alert-bubble/alert-bubble.d.ts +8 -0
  9. package/alert-bubble/alert-bubble.js +22 -0
  10. package/alert-bubble/alert-bubble.spec.d.ts +1 -0
  11. package/alert-bubble/alert-bubble.spec.js +9 -0
  12. package/alert-bubble/alert-bubble.stories.d.ts +7 -0
  13. package/alert-bubble/alert-bubble.stories.js +50 -0
  14. package/alert-bubble/index.d.ts +3 -0
  15. package/alert-bubble/index.js +5 -0
  16. package/alert-bubble/theme.d.ts +16 -0
  17. package/alert-bubble/theme.js +2 -0
  18. package/avatar/README.md +8 -0
  19. package/avatar/avatar.stories.js +1 -1
  20. package/avatar/index.d.ts +1 -1
  21. package/avatar-file-input/README.md +1 -0
  22. package/avatar-file-input/avatar-file-input.d.ts +3 -0
  23. package/avatar-file-input/avatar-file-input.js +12 -6
  24. package/avatar-file-input/avatar-file-input.stories.js +5 -5
  25. package/avatar-file-input/index.d.ts +1 -1
  26. package/avatar-file-input/theme.d.ts +5 -0
  27. package/avatar-file-input/theme.js +2 -0
  28. package/badge/README.md +1 -0
  29. package/badge/badge.d.ts +1 -1
  30. package/badge/badge.stories.js +1 -1
  31. package/badge/index.d.ts +1 -1
  32. package/button/README.md +68 -0
  33. package/button/button.stories.js +0 -1
  34. package/button/index.d.ts +1 -1
  35. package/button/theme.d.ts +1 -0
  36. package/button-group/README.md +1 -0
  37. package/button-group/button-group.js +1 -1
  38. package/button-group/button-group.stories.js +1 -1
  39. package/button-group/index.d.ts +1 -1
  40. package/button-list/README.md +1 -0
  41. package/button-list/button-list.d.ts +1 -1
  42. package/button-list/button-list.js +22 -22
  43. package/button-list/index.d.ts +1 -1
  44. package/calendar/README.md +1 -0
  45. package/calendar/calendar-day-cell.d.ts +4 -1
  46. package/calendar/calendar-day-cell.js +18 -18
  47. package/{date-picker/date-picker-navigation.d.ts → calendar/calendar-navigation.d.ts} +2 -3
  48. package/{date-picker/date-picker-navigation.js → calendar/calendar-navigation.js} +6 -6
  49. package/calendar/calendar-provider.js +2 -2
  50. package/calendar/calendar.d.ts +5 -0
  51. package/calendar/calendar.js +6 -9
  52. package/calendar/calendar.stories.js +1 -1
  53. package/calendar/index.d.ts +4 -1
  54. package/calendar/index.js +5 -15
  55. package/checkbox/README.md +1 -0
  56. package/checkbox/checkbox.stories.js +1 -1
  57. package/checkbox/index.d.ts +1 -1
  58. package/checkbox-button/README.md +1 -0
  59. package/checkbox-button/checkbox-button.js +2 -2
  60. package/checkbox-button/checkbox-button.stories.js +1 -1
  61. package/checkbox-button/index.d.ts +1 -1
  62. package/checkbox-input/README.md +1 -0
  63. package/checkbox-input/checkbox-input.d.ts +1 -1
  64. package/checkbox-input/checkbox-input.stories.js +1 -1
  65. package/checkbox-input/index.d.ts +1 -1
  66. package/chip/README.md +1 -0
  67. package/chip/chip.d.ts +1 -1
  68. package/chip/chip.js +5 -3
  69. package/chip/chip.stories.js +37 -31
  70. package/chip/index.d.ts +2 -2
  71. package/color-radio/README.md +8 -0
  72. package/color-radio/color-radio.js +1 -1
  73. package/color-radio/index.d.ts +1 -1
  74. package/color-radio-group/README.md +9 -0
  75. package/color-radio-group/color-radio-group.js +3 -3
  76. package/color-radio-group/color-radio-group.stories.js +1 -1
  77. package/color-radio-group/index.d.ts +1 -1
  78. package/combobox/README.md +12 -0
  79. package/combobox/combobox.d.ts +1 -1
  80. package/combobox/combobox.js +1 -1
  81. package/combobox/combobox.stories.d.ts +2 -1
  82. package/combobox/combobox.stories.js +7 -3
  83. package/combobox/index.d.ts +1 -1
  84. package/config/icons-config.d.ts +1 -1
  85. package/config/icons-config.js +1 -1
  86. package/config/icons.d.ts +13 -3
  87. package/config/icons.js +3 -1
  88. package/content/types.d.ts +1 -1
  89. package/context/provider.js +1 -1
  90. package/create-component-preview-page/create-component-preview-page.d.ts +8 -0
  91. package/create-component-preview-page/create-component-preview-page.js +40 -0
  92. package/create-component-preview-page/index.d.ts +2 -0
  93. package/create-component-preview-page/index.js +18 -0
  94. package/create-component-preview-page/ui-components.d.ts +237 -0
  95. package/create-component-preview-page/ui-components.js +263 -0
  96. package/create-component-preview-page/ui-readmes.d.ts +2 -0
  97. package/create-component-preview-page/ui-readmes.js +102 -0
  98. package/css/alert-bubble.css +100 -0
  99. package/css/avatar-file-input.css +54 -20
  100. package/css/avatar.css +4 -4
  101. package/css/badge.css +5 -5
  102. package/css/button-group.css +1 -1
  103. package/css/button-list.css +2 -2
  104. package/css/button.css +78 -32
  105. package/css/calendar.css +115 -51
  106. package/css/checkbox-button.css +10 -10
  107. package/css/checkbox.css +9 -9
  108. package/css/chip.css +5 -3
  109. package/css/color-radio-group.css +1 -1
  110. package/css/color-radio.css +3 -3
  111. package/css/component-structure-analyzer.css +12 -12
  112. package/css/date-picker.css +10 -3
  113. package/css/date-range-picker.css +21 -0
  114. package/css/datetime-picker.css +2 -2
  115. package/css/dialog.css +55 -0
  116. package/css/dropdown.css +11 -3
  117. package/css/dropzone.css +6 -6
  118. package/css/error-message.css +1 -1
  119. package/css/file-input.css +2 -2
  120. package/css/flash-messages.css +133 -9
  121. package/css/icon.css +1 -1
  122. package/css/image-gallery.css +8 -8
  123. package/css/input-with-popover.css +1 -1
  124. package/css/input.css +10 -10
  125. package/css/layout.css +4 -4
  126. package/css/list-item.css +2 -2
  127. package/css/message.css +92 -0
  128. package/css/modal.css +10 -54
  129. package/css/multi-combobox.css +12 -12
  130. package/css/pagination.css +14 -14
  131. package/css/paper.css +1 -1
  132. package/css/radio-group.css +3 -3
  133. package/css/radio.css +7 -7
  134. package/css/raster-image.css +1 -1
  135. package/css/select-base.css +1 -1
  136. package/css/tabs.css +16 -16
  137. package/css/text-link.css +4 -4
  138. package/css/textarea.css +68 -76
  139. package/css/time-picker.css +12 -16
  140. package/css/toggle.css +3 -3
  141. package/css/tooltip.css +2 -2
  142. package/date-picker/README.md +9 -0
  143. package/date-picker/date-picker-content.d.ts +5 -2
  144. package/date-picker/date-picker-content.js +4 -3
  145. package/date-picker/date-picker-decade.js +10 -10
  146. package/date-picker/date-picker-month.js +6 -6
  147. package/date-picker/date-picker-year.js +2 -2
  148. package/date-picker/date-picker.d.ts +4 -1
  149. package/date-picker/date-picker.js +4 -2
  150. package/date-picker/date-picker.stories.js +2 -1
  151. package/date-picker/index.d.ts +1 -1
  152. package/date-picker-input/README.md +11 -0
  153. package/date-picker-input/date-picker-input.d.ts +2 -0
  154. package/date-picker-input/date-picker-input.js +5 -3
  155. package/date-picker-input/date-picker-input.stories.js +1 -1
  156. package/date-picker-input/index.d.ts +1 -1
  157. package/date-picker-input/index.js +3 -3
  158. package/date-range-picker/README.md +1 -0
  159. package/date-range-picker/date-range-picker-content.d.ts +5 -0
  160. package/date-range-picker/date-range-picker-content.js +56 -0
  161. package/date-range-picker/date-range-picker-decade.d.ts +6 -0
  162. package/date-range-picker/date-range-picker-decade.js +72 -0
  163. package/date-range-picker/date-range-picker-month.d.ts +8 -0
  164. package/date-range-picker/date-range-picker-month.js +69 -0
  165. package/date-range-picker/date-range-picker-year.d.ts +7 -0
  166. package/date-range-picker/date-range-picker-year.js +80 -0
  167. package/date-range-picker/date-range-picker.d.ts +11 -0
  168. package/date-range-picker/date-range-picker.js +51 -0
  169. package/date-range-picker/date-range-picker.spec.d.ts +1 -0
  170. package/date-range-picker/date-range-picker.spec.js +9 -0
  171. package/date-range-picker/date-range-picker.stories.d.ts +7 -0
  172. package/date-range-picker/date-range-picker.stories.js +43 -0
  173. package/date-range-picker/index.d.ts +3 -0
  174. package/date-range-picker/index.js +5 -0
  175. package/date-range-picker/types.d.ts +5 -0
  176. package/date-range-picker/types.js +2 -0
  177. package/date-range-picker-input/README.md +1 -0
  178. package/date-range-picker-input/date-range-picker-input.d.ts +17 -0
  179. package/date-range-picker-input/date-range-picker-input.js +62 -0
  180. package/date-range-picker-input/date-range-picker-input.spec.d.ts +1 -0
  181. package/date-range-picker-input/date-range-picker-input.spec.js +9 -0
  182. package/date-range-picker-input/date-range-picker-input.stories.d.ts +10 -0
  183. package/date-range-picker-input/date-range-picker-input.stories.js +53 -0
  184. package/date-range-picker-input/index.d.ts +2 -0
  185. package/date-range-picker-input/index.js +5 -0
  186. package/datetime-picker/README.md +13 -0
  187. package/datetime-picker/datetime-picker.d.ts +3 -1
  188. package/datetime-picker/datetime-picker.js +5 -5
  189. package/datetime-picker/index.d.ts +1 -1
  190. package/datetime-picker/index.js +2 -2
  191. package/datetime-picker-input/README.md +1 -0
  192. package/datetime-picker-input/datetime-picker-input.d.ts +2 -0
  193. package/datetime-picker-input/datetime-picker-input.js +5 -3
  194. package/datetime-picker-input/datetime-picker-input.stories.js +1 -1
  195. package/datetime-picker-input/index.d.ts +1 -1
  196. package/datetime-picker-input/index.js +2 -2
  197. package/dialog/dialog.d.ts +11 -0
  198. package/{modal/modal-dialog.js → dialog/dialog.js} +9 -10
  199. package/dialog/dialog.spec.d.ts +1 -0
  200. package/dialog/dialog.spec.js +9 -0
  201. package/dialog/dialog.stories.d.ts +7 -0
  202. package/dialog/dialog.stories.js +47 -0
  203. package/dialog/index.d.ts +2 -0
  204. package/dialog/index.js +5 -0
  205. package/dialog/theme.d.ts +4 -0
  206. package/dialog/theme.js +2 -0
  207. package/dropdown/README.md +1 -0
  208. package/dropdown/dropdown.stories.js +2 -2
  209. package/dropdown/index.d.ts +1 -1
  210. package/dropzone/README.md +8 -0
  211. package/dropzone/dropzone-input.js +10 -6
  212. package/dropzone/dropzone-list.js +2 -16
  213. package/dropzone/dropzone.stories.js +7 -7
  214. package/error-message/README.md +7 -0
  215. package/error-message/error-message.stories.js +1 -1
  216. package/file-input/README.md +11 -0
  217. package/file-input/file-input.d.ts +3 -0
  218. package/file-input/file-input.js +10 -22
  219. package/file-input/file-input.stories.js +5 -5
  220. package/file-input/index.d.ts +1 -1
  221. package/flash-messages/README.md +23 -0
  222. package/flash-messages/flash-message.d.ts +1 -1
  223. package/flash-messages/flash-message.js +1 -1
  224. package/flash-messages/flash-messages.js +52 -18
  225. package/flash-messages/flash-messages.stories.js +12 -0
  226. package/flash-messages/index.d.ts +2 -2
  227. package/flash-messages/index.js +4 -4
  228. package/form-component/README.md +7 -0
  229. package/form-component/index.d.ts +1 -1
  230. package/hooks/use-dropdown.d.ts +16 -8
  231. package/icon/README.md +11 -0
  232. package/icon/icon.stories.js +1 -1
  233. package/icon/index.d.ts +1 -1
  234. package/image-gallery/components/close-button.d.ts +2 -1
  235. package/image-gallery/components/close-button.js +2 -3
  236. package/image-gallery/components/gallery.d.ts +4 -1
  237. package/image-gallery/components/gallery.js +6 -5
  238. package/image-gallery/components/next-button.d.ts +7 -0
  239. package/image-gallery/components/next-button.js +14 -0
  240. package/image-gallery/components/prev-button.d.ts +7 -0
  241. package/image-gallery/components/prev-button.js +14 -0
  242. package/image-gallery/image-gallery.d.ts +4 -1
  243. package/image-gallery/image-gallery.js +2 -2
  244. package/image-gallery/image-gallery.stories.js +5 -1
  245. package/image-gallery/image.d.ts +1 -1
  246. package/image-gallery/image.js +1 -1
  247. package/image-gallery/use-image.js +1 -1
  248. package/input/README.md +8 -0
  249. package/input/input-element.d.ts +1 -0
  250. package/input/input-element.js +1 -1
  251. package/input/input.d.ts +2 -2
  252. package/input/input.js +3 -3
  253. package/input/input.stories.js +3 -3
  254. package/label/README.md +7 -0
  255. package/label/index.d.ts +1 -1
  256. package/label/label.stories.js +1 -1
  257. package/layout/index.d.ts +1 -1
  258. package/layout/layout.js +28 -28
  259. package/list-item/README.md +7 -0
  260. package/list-item/index.d.ts +1 -1
  261. package/list-item/list-item.stories.js +1 -1
  262. package/loader/README.md +7 -0
  263. package/loader/index.d.ts +1 -1
  264. package/message/README.md +1 -0
  265. package/message/index.d.ts +3 -0
  266. package/message/index.js +7 -0
  267. package/message/message-content.d.ts +17 -0
  268. package/message/message-content.js +41 -0
  269. package/message/message-service.d.ts +13 -0
  270. package/message/message-service.js +29 -0
  271. package/message/message.d.ts +20 -0
  272. package/message/message.js +47 -0
  273. package/message/message.spec.d.ts +1 -0
  274. package/message/message.spec.js +9 -0
  275. package/message/message.stories.d.ts +7 -0
  276. package/message/message.stories.js +82 -0
  277. package/message/theme.d.ts +12 -0
  278. package/message/theme.js +2 -0
  279. package/modal/README.md +24 -0
  280. package/modal/index.d.ts +3 -2
  281. package/modal/index.js +3 -3
  282. package/modal/modal.d.ts +6 -4
  283. package/modal/modal.js +9 -9
  284. package/modal/modal.stories.js +12 -0
  285. package/modal/theme.d.ts +7 -0
  286. package/multi-combobox/README.md +10 -0
  287. package/multi-combobox/_multi-combobox-base.js +28 -22
  288. package/multi-combobox/multi-combobox.js +1 -1
  289. package/multi-combobox/multi-combobox.stories.js +7 -4
  290. package/multi-combobox/types.d.ts +5 -1
  291. package/multi-select/README.md +11 -0
  292. package/multi-select/_multi-select-base.js +21 -21
  293. package/multi-select/index.d.ts +1 -1
  294. package/multi-select/multi-select.js +1 -1
  295. package/multi-select/multi-select.stories.js +6 -3
  296. package/multi-select/types.d.ts +1 -1
  297. package/package.json +17 -12
  298. package/pagination/README.md +31 -0
  299. package/pagination/index.d.ts +1 -1
  300. package/pagination/pagination.d.ts +1 -1
  301. package/pagination/pagination.js +2 -2
  302. package/pagination/pagination.stories.d.ts +0 -3
  303. package/pagination/pagination.stories.js +14 -30
  304. package/paper/README.md +7 -0
  305. package/paper/index.d.ts +1 -1
  306. package/paper/paper.stories.js +1 -1
  307. package/radio/README.md +7 -0
  308. package/radio/index.d.ts +1 -1
  309. package/radio/radio.stories.js +1 -1
  310. package/radio-group/README.md +8 -0
  311. package/radio-group/index.d.ts +2 -2
  312. package/radio-group/radio-group.d.ts +3 -3
  313. package/radio-group/radio-group.js +2 -2
  314. package/radio-group/radio-group.stories.js +5 -5
  315. package/raster-image/README.md +7 -0
  316. package/raster-image/index.d.ts +1 -1
  317. package/raster-image/raster-image.js +1 -1
  318. package/scripts/generate-tw-tokens.js +40 -32
  319. package/select/README.md +11 -0
  320. package/select/index.d.ts +1 -1
  321. package/select/select.d.ts +1 -4
  322. package/select/select.js +2 -2
  323. package/select/select.stories.d.ts +2 -1
  324. package/select/select.stories.js +9 -3
  325. package/tabs/README.md +7 -0
  326. package/tabs/index.d.ts +1 -1
  327. package/text-input/README.md +10 -0
  328. package/text-input/index.d.ts +1 -1
  329. package/text-input/text-input.d.ts +1 -0
  330. package/text-input/text-input.js +2 -2
  331. package/text-link/README.md +19 -0
  332. package/text-link/index.d.ts +1 -1
  333. package/text-link/text-link.d.ts +1 -1
  334. package/textarea/README.md +9 -0
  335. package/textarea/index.d.ts +1 -1
  336. package/textarea/textarea.js +5 -5
  337. package/textarea/textarea.stories.js +1 -1
  338. package/time-picker/README.md +8 -0
  339. package/time-picker/index.d.ts +1 -1
  340. package/time-picker/time-picker-hour.js +6 -6
  341. package/time-picker/time-picker-hours.js +2 -2
  342. package/time-picker/time-picker-input.stories.js +2 -1
  343. package/time-picker/time-picker-minute.js +6 -6
  344. package/time-picker/time-picker-minutes.js +2 -2
  345. package/time-picker/time-picker.d.ts +2 -1
  346. package/time-picker/time-picker.js +7 -6
  347. package/time-picker-input/README.md +9 -0
  348. package/time-picker-input/index.d.ts +1 -1
  349. package/time-picker-input/index.js +3 -3
  350. package/time-picker-input/time-picker-input.js +6 -4
  351. package/time-picker-input/time-picker-input.stories.js +1 -1
  352. package/toggle/README.md +7 -0
  353. package/toggle/index.d.ts +1 -1
  354. package/toggle/toggle.js +8 -8
  355. package/toggle/toggle.stories.js +1 -1
  356. package/tooltip/README.md +7 -0
  357. package/tooltip/index.d.ts +2 -2
  358. package/tooltip/tooltip.js +27 -25
  359. package/tooltip/tooltip.stories.js +1 -1
  360. package/tooltip/use-tooltip.d.ts +19 -11
  361. package/tooltip/use-tooltip.js +15 -15
  362. package/tw-tokens/tw-colors.d.ts +283 -282
  363. package/tw-tokens/tw-colors.js +283 -282
  364. package/tw-tokens/tw-line-height.d.ts +8 -8
  365. package/tw-tokens/tw-line-height.js +8 -8
  366. package/tw-tokens/tw-spacing.d.ts +34 -34
  367. package/tw-tokens/tw-spacing.js +34 -34
  368. package/tw-tokens/tw-z-index.d.ts +7 -7
  369. package/tw-tokens/tw-z-index.js +7 -7
  370. package/types/index.d.ts +1 -1
  371. package/types/index.js +1 -1
  372. package/typography/README.md +7 -0
  373. package/utils/action.d.ts +2 -1
  374. package/utils/action.js +2 -2
  375. package/utils/files/get-file-icon.d.ts +2 -0
  376. package/utils/files/get-file-icon.js +19 -0
  377. package/utils/icons-config.js +13 -3
  378. package/utils/mocks/{uploadFIle.mock.js → upload-file.mock.js} +1 -1
  379. package/utils/snap-test.js +1 -1
  380. package/utils/storybook-config.d.ts +12 -2
  381. package/utils/storybook-config.js +9 -1
  382. package/utils/tailwind-config.js +10 -1
  383. package/image-gallery/components/arrow-button.d.ts +0 -7
  384. package/image-gallery/components/arrow-button.js +0 -14
  385. package/modal/modal-dialog.d.ts +0 -11
  386. /package/utils/mocks/{uploadFIle.mock.d.ts → upload-file.mock.d.ts} +0 -0
@@ -3,14 +3,14 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.twLineHeight = void 0;
5
5
  exports.twLineHeight = {
6
- 3: ".75rem",
7
- 4: "1rem",
8
- 5: "1.25rem",
9
- 6: "1.5rem",
10
- 7: "1.75rem",
11
- 8: "2rem",
12
- 9: "2.25rem",
13
- 10: "2.5rem",
6
+ "3": ".75rem",
7
+ "4": "1rem",
8
+ "5": "1.25rem",
9
+ "6": "1.5rem",
10
+ "7": "1.75rem",
11
+ "8": "2rem",
12
+ "9": "2.25rem",
13
+ "10": "2.5rem",
14
14
  none: "1",
15
15
  tight: "1.25",
16
16
  snug: "1.375",
@@ -1,39 +1,39 @@
1
1
  export declare const twSpacing: {
2
- 0: string;
3
- 1: string;
4
- 2: string;
5
- 3: string;
6
- 4: string;
7
- 5: string;
8
- 6: string;
9
- 7: string;
10
- 8: string;
11
- 9: string;
12
- 10: string;
13
- 11: string;
14
- 12: string;
15
- 14: string;
16
- 16: string;
17
- 20: string;
18
- 24: string;
19
- 28: string;
20
- 32: string;
21
- 36: string;
22
- 40: string;
23
- 44: string;
24
- 48: string;
25
- 52: string;
26
- 56: string;
27
- 60: string;
28
- 64: string;
29
- 72: string;
30
- 80: string;
31
- 96: string;
2
+ "0": string;
3
+ "1": string;
4
+ "2": string;
5
+ "3": string;
6
+ "4": string;
7
+ "5": string;
8
+ "6": string;
9
+ "7": string;
10
+ "8": string;
11
+ "9": string;
12
+ "10": string;
13
+ "11": string;
14
+ "12": string;
15
+ "14": string;
16
+ "16": string;
17
+ "20": string;
18
+ "24": string;
19
+ "28": string;
20
+ "32": string;
21
+ "36": string;
22
+ "40": string;
23
+ "44": string;
24
+ "48": string;
25
+ "52": string;
26
+ "56": string;
27
+ "60": string;
28
+ "64": string;
29
+ "72": string;
30
+ "80": string;
31
+ "96": string;
32
32
  px: string;
33
- 0.5: string;
34
- 1.5: string;
35
- 2.5: string;
36
- 3.5: string;
33
+ "0.5": string;
34
+ "1.5": string;
35
+ "2.5": string;
36
+ "3.5": string;
37
37
  inherit: string;
38
38
  };
39
39
  export type TwSpacing = typeof twSpacing;
@@ -3,40 +3,40 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.twSpacing = void 0;
5
5
  exports.twSpacing = {
6
- 0: "0px",
7
- 1: "0.25rem",
8
- 2: "0.5rem",
9
- 3: "0.75rem",
10
- 4: "1rem",
11
- 5: "1.25rem",
12
- 6: "1.5rem",
13
- 7: "1.75rem",
14
- 8: "2rem",
15
- 9: "2.25rem",
16
- 10: "2.5rem",
17
- 11: "2.75rem",
18
- 12: "3rem",
19
- 14: "3.5rem",
20
- 16: "4rem",
21
- 20: "5rem",
22
- 24: "6rem",
23
- 28: "7rem",
24
- 32: "8rem",
25
- 36: "9rem",
26
- 40: "10rem",
27
- 44: "11rem",
28
- 48: "12rem",
29
- 52: "13rem",
30
- 56: "14rem",
31
- 60: "15rem",
32
- 64: "16rem",
33
- 72: "18rem",
34
- 80: "20rem",
35
- 96: "24rem",
6
+ "0": "0px",
7
+ "1": "0.25rem",
8
+ "2": "0.5rem",
9
+ "3": "0.75rem",
10
+ "4": "1rem",
11
+ "5": "1.25rem",
12
+ "6": "1.5rem",
13
+ "7": "1.75rem",
14
+ "8": "2rem",
15
+ "9": "2.25rem",
16
+ "10": "2.5rem",
17
+ "11": "2.75rem",
18
+ "12": "3rem",
19
+ "14": "3.5rem",
20
+ "16": "4rem",
21
+ "20": "5rem",
22
+ "24": "6rem",
23
+ "28": "7rem",
24
+ "32": "8rem",
25
+ "36": "9rem",
26
+ "40": "10rem",
27
+ "44": "11rem",
28
+ "48": "12rem",
29
+ "52": "13rem",
30
+ "56": "14rem",
31
+ "60": "15rem",
32
+ "64": "16rem",
33
+ "72": "18rem",
34
+ "80": "20rem",
35
+ "96": "24rem",
36
36
  px: "1px",
37
- 0.5: "0.125rem",
38
- 1.5: "0.375rem",
39
- 2.5: "0.625rem",
40
- 3.5: "0.875rem",
37
+ "0.5": "0.125rem",
38
+ "1.5": "0.375rem",
39
+ "2.5": "0.625rem",
40
+ "3.5": "0.875rem",
41
41
  inherit: "inherit",
42
42
  };
@@ -1,11 +1,11 @@
1
1
  export declare const twZIndex: {
2
- 0: string;
3
- 1: string;
4
- 10: string;
5
- 20: string;
6
- 30: string;
7
- 40: string;
8
- 50: string;
2
+ "0": string;
3
+ "1": string;
4
+ "10": string;
5
+ "20": string;
6
+ "30": string;
7
+ "40": string;
8
+ "50": string;
9
9
  auto: string;
10
10
  focus: string;
11
11
  fixed: string;
@@ -3,13 +3,13 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.twZIndex = void 0;
5
5
  exports.twZIndex = {
6
- 0: "0",
7
- 1: "1",
8
- 10: "10",
9
- 20: "20",
10
- 30: "30",
11
- 40: "40",
12
- 50: "50",
6
+ "0": "0",
7
+ "1": "1",
8
+ "10": "10",
9
+ "20": "20",
10
+ "30": "30",
11
+ "40": "40",
12
+ "50": "50",
13
13
  auto: "auto",
14
14
  focus: "5",
15
15
  fixed: "10",
package/types/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export * from "./color";
2
- export * from "./form-control-props";
3
2
  export * from "./file-response";
3
+ export * from "./form-control-props";
package/types/index.js CHANGED
@@ -15,5 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./color"), exports);
18
- __exportStar(require("./form-control-props"), exports);
19
18
  __exportStar(require("./file-response"), exports);
19
+ __exportStar(require("./form-control-props"), exports);
@@ -0,0 +1,7 @@
1
+ # Typography
2
+
3
+ ## CSS Dependencies
4
+
5
+ ```css
6
+ @import url("@uxf/ui/typography/typography.css");
7
+ ```
package/utils/action.d.ts CHANGED
@@ -1,2 +1,3 @@
1
- import { HandlerFunction } from "@storybook/addon-actions";
1
+ type HandlerFunction = (...args: any[]) => void;
2
2
  export declare function action(name: string, handler: HandlerFunction): HandlerFunction;
3
+ export {};
package/utils/action.js CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.action = void 0;
4
- const addon_actions_1 = require("@storybook/addon-actions");
5
4
  function action(name, handler) {
6
5
  return function (...args) {
7
- (0, addon_actions_1.action)(name)(...args);
6
+ // eslint-disable-next-line no-console
7
+ console.log(name, ...args);
8
8
  handler(...args);
9
9
  };
10
10
  }
@@ -0,0 +1,2 @@
1
+ import { IconName } from "../../icon/types";
2
+ export declare function getIconNameFromFileExtension(extension: string): IconName;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getIconNameFromFileExtension = void 0;
4
+ function getIconNameFromFileExtension(extension) {
5
+ switch (extension) {
6
+ case "jpg":
7
+ case "jpeg":
8
+ case "png":
9
+ case "gif":
10
+ return "imageFile";
11
+ case "mp4":
12
+ case "avi":
13
+ case "mov":
14
+ return "videoFile";
15
+ default:
16
+ return "file";
17
+ }
18
+ }
19
+ exports.getIconNameFromFileExtension = getIconNameFromFileExtension;
@@ -95,16 +95,26 @@ module.exports = {
95
95
  height: 512,
96
96
  data: `<path d="m365.3 93.38-74.63-74.64C278.6 6.742 262.3 0 245.4 0H64C28.65 0 0 28.65 0 64l.0065 384c0 35.34 28.65 64 64 64H320c35.2 0 64-28.8 64-64V138.6c0-16.9-6.7-33.2-18.7-45.22zM336 448c0 8.836-7.164 16-16 16H64.02c-8.838 0-16-7.164-16-16L48 64.13c0-8.836 7.164-16 16-16h160V128c0 17.67 14.33 32 32 32h79.1v288zM215.3 292c-4.68 0-9.051 2.34-11.65 6.234L164 357.8l-11.68-17.53c-2.62-3.97-7.02-6.27-11.62-6.27-4.682 0-9.053 2.34-11.65 6.234l-46.67 70c-2.865 4.297-3.131 9.82-.6953 14.37C84.09 429.2 88.84 432 93.1 432h196c5.163 0 9.907-2.844 12.34-7.395 2.436-4.551 2.17-10.07-.6953-14.37l-74.67-112C224.4 294.3 220 292 215.3 292zm-87.3-4c17.67 0 32-14.33 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32z" fill="currentColor" />`,
97
97
  },
98
- videoFile: {
99
- width: 384,
98
+ "triangle-exclamation": {
99
+ width: 512,
100
100
  height: 512,
101
- data: `<path d="m365.3 93.38-74.63-74.64C278.6 6.742 262.3 0 245.4 0H64C28.65 0 0 28.65 0 64l.0065 384c0 35.34 28.65 64 64 64H320c35.2 0 64-28.8 64-64V138.6c0-16.9-6.7-33.2-18.7-45.22zM336 448c0 8.836-7.164 16-16 16H64.02c-8.838 0-16-7.164-16-16L48 64.13c0-8.836 7.164-16 16-16h160V128c0 17.67 14.33 32 32 32h79.1v288zm-96-160c0-17.67-14.33-32-32-32h-96c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-16.52l43.84 30.2c8.46 5.82 20.16-.08 20.16-10.28V284.6c0-10.16-11.64-16.16-20.16-10.32L240 304.5V288z" fill="currentColor" />`,
101
+ data: `<path fill="currentColor" d="M248.4 84.3c1.6-2.7 4.5-4.3 7.6-4.3s6 1.6 7.6 4.3L461.9 410c1.4 2.3 2.1 4.9 2.1 7.5c0 8-6.5 14.5-14.5 14.5H62.5c-8 0-14.5-6.5-14.5-14.5c0-2.7 .7-5.3 2.1-7.5L248.4 84.3zm-41-25L9.1 385c-6 9.8-9.1 21-9.1 32.5C0 452 28 480 62.5 480h387c34.5 0 62.5-28 62.5-62.5c0-11.5-3.2-22.7-9.1-32.5L304.6 59.3C294.3 42.4 275.9 32 256 32s-38.3 10.4-48.6 27.3zM288 368a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm-8-184c0-13.3-10.7-24-24-24s-24 10.7-24 24v96c0 13.3 10.7 24 24 24s24-10.7 24-24V184z"/>`,
102
102
  },
103
103
  user: {
104
104
  width: 448,
105
105
  height: 512,
106
106
  data: `<path d="M272 304h-96C78.8 304 0 382.8 0 480a32 32 0 0 0 32 32h384a32 32 0 0 0 32-32c0-97.2-78.8-176-176-176zM48.99 464c7.9-63.1 61.81-112 127.01-112h96c65.16 0 119.1 48.95 127 112H48.99zM224 256c70.69 0 128-57.31 128-128S294.69 0 224 0 96 57.31 96 128c0 70.7 57.3 128 128 128zm0-208c44.11 0 80 35.89 80 80s-35.89 80-80 80-80-35.9-80-80c0-44.11 35.9-80 80-80z" fill="currentColor"/>`,
107
107
  },
108
+ videoFile: {
109
+ width: 384,
110
+ height: 512,
111
+ data: `<path d="m365.3 93.38-74.63-74.64C278.6 6.742 262.3 0 245.4 0H64C28.65 0 0 28.65 0 64l.0065 384c0 35.34 28.65 64 64 64H320c35.2 0 64-28.8 64-64V138.6c0-16.9-6.7-33.2-18.7-45.22zM336 448c0 8.836-7.164 16-16 16H64.02c-8.838 0-16-7.164-16-16L48 64.13c0-8.836 7.164-16 16-16h160V128c0 17.67 14.33 32 32 32h79.1v288zm-96-160c0-17.67-14.33-32-32-32h-96c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-16.52l43.84 30.2c8.46 5.82 20.16-.08 20.16-10.28V284.6c0-10.16-11.64-16.16-20.16-10.32L240 304.5V288z" fill="currentColor" />`,
112
+ },
113
+ xmark: {
114
+ width: 384,
115
+ height: 512,
116
+ data: `<path fill="currentColor" d="M345 137c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-119 119L73 103c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l119 119L39 375c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l119-119L311 409c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-119-119L345 137z"/>`,
117
+ },
108
118
  xmarkLarge: {
109
119
  width: 448,
110
120
  height: 512,
@@ -13,7 +13,7 @@ function getRandomUuid() {
13
13
  function uploadFile(file, uploadOptions) {
14
14
  // axios.put("/api/upload", file, { signal: uploadOptions?.abortController?.signal, onUploadProgress: uploadOptions?.onUploadProgress });
15
15
  return new Promise((resolve) => {
16
- const time = file.size / 10;
16
+ const time = file.size / 100;
17
17
  const interval = time / 10;
18
18
  let loaded = 0;
19
19
  const intervalTimer = window.setInterval(() => {
@@ -4,11 +4,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.snapTest = void 0;
7
+ const dayjs_1 = __importDefault(require("dayjs"));
7
8
  const react_1 = __importDefault(require("react"));
8
9
  const react_test_renderer_1 = require("react-test-renderer");
9
10
  const get_provider_config_1 = require("../_private-utils/get-provider-config");
10
11
  const context_1 = require("../context");
11
- const dayjs_1 = __importDefault(require("dayjs"));
12
12
  const snapTest = (name, component) => {
13
13
  beforeAll(() => {
14
14
  jest.useFakeTimers();
@@ -1,13 +1,23 @@
1
- import React, { ReactNode } from "react";
2
1
  import { ButtonColor, ButtonSize, ButtonVariant } from "@uxf/ui/button";
2
+ import React, { ReactNode } from "react";
3
+ import { AlertBubbleColor, AlertBubbleSize } from "../alert-bubble";
3
4
  import { ChipColor } from "../chip";
4
5
  import { InputGroupSizes } from "../input/theme";
6
+ import { MessageColor, MessageVariant } from "../message/theme";
5
7
  export declare const defaultConfig: StorybookConfig;
6
8
  export interface StorybookConfig {
9
+ AlertBubble: {
10
+ colors: AlertBubbleColor[];
11
+ sizes: AlertBubbleSize[];
12
+ };
7
13
  Button: {
14
+ colors: ButtonColor[];
8
15
  sizes: ButtonSize[];
9
16
  variants: ButtonVariant[];
10
- colors: ButtonColor[];
17
+ };
18
+ Confirm: {
19
+ colors: MessageColor[];
20
+ sizes: MessageVariant[];
11
21
  };
12
22
  Chip: {
13
23
  colors: ChipColor[];
@@ -26,11 +26,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.StorybookContextProvider = exports.useStorybookConfig = exports.defaultConfig = void 0;
27
27
  const react_1 = __importStar(require("react"));
28
28
  exports.defaultConfig = {
29
+ AlertBubble: {
30
+ sizes: ["xs", "sm", "default", "lg", "xl", "2xl"],
31
+ colors: ["default", "success", "error", "warning"],
32
+ },
29
33
  Button: {
30
34
  sizes: ["xs", "sm", "default", "lg", "xl"],
31
- colors: ["default", "success", "error"],
35
+ colors: ["default", "success", "error", "warning"],
32
36
  variants: ["default", "outlined", "white", "text"],
33
37
  },
38
+ Confirm: {
39
+ colors: ["default", "success", "error", "warning"],
40
+ sizes: ["simple", "centered"],
41
+ },
34
42
  Chip: {
35
43
  colors: ["primary", "orange", "red", "yellow", "pink", "purple", "indigo", "green", "blue", "default"],
36
44
  },
@@ -1,5 +1,5 @@
1
1
  const tailwindThemeDefaults = require("./tailwind-theme-defaults");
2
- const { colors, fontFamily } = require("tailwindcss/defaultTheme");
2
+ const { fontFamily } = require("tailwindcss/defaultTheme");
3
3
  const { rem } = require("@uxf/styles/units/rem");
4
4
 
5
5
  /** @type {import('tailwindcss').Config} */
@@ -9,6 +9,14 @@ module.exports = {
9
9
  theme: {
10
10
  containers: tailwindThemeDefaults.containers,
11
11
  screens: tailwindThemeDefaults.screens,
12
+ alertBubbleSize: {
13
+ xs: "32px",
14
+ sm: "40px",
15
+ default: "48px",
16
+ lg: "56px",
17
+ xl: "64px",
18
+ "2xl": "80px",
19
+ },
12
20
  inputSize: {
13
21
  xs: "30px",
14
22
  sm: "34px",
@@ -87,6 +95,7 @@ module.exports = {
87
95
  800: "#991b1b",
88
96
  900: "#7f1d1d",
89
97
  },
98
+ test: "#ff00ff",
90
99
  },
91
100
  fontFamily: {
92
101
  sans: ["var(--font-inter)", ...fontFamily.sans],
@@ -1,7 +0,0 @@
1
- import { FC } from "react";
2
- interface NextButtonProps {
3
- onClick: () => void;
4
- type: "prev" | "next";
5
- }
6
- export declare const ArrowButton: FC<NextButtonProps>;
7
- export {};
@@ -1,14 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ArrowButton = void 0;
7
- const react_1 = __importDefault(require("react"));
8
- const icon_1 = require("../../icon");
9
- const ArrowButton = (props) => {
10
- return (react_1.default.createElement("button", { className: `uxf-image-gallery__button ${props.type === "prev" ? "uxf-image-gallery__button--prev" : "uxf-image-gallery__button--next"}`, onClick: props.onClick },
11
- react_1.default.createElement(icon_1.Icon, { className: "uxf-image-gallery__button-icon", name: props.type === "prev" ? "chevronLeft" : "chevronRight" })));
12
- };
13
- exports.ArrowButton = ArrowButton;
14
- exports.ArrowButton.displayName = "UxfUiArrowButton";
@@ -1,11 +0,0 @@
1
- import React, { ReactNode } from "react";
2
- import { ModalWidths } from "@uxf/ui/modal/theme";
3
- export interface ModalDialogProps {
4
- children: ReactNode;
5
- className?: string;
6
- disableBackdropClose?: boolean;
7
- onClose: () => void;
8
- open: boolean;
9
- width?: keyof ModalWidths;
10
- }
11
- export declare const ModalDialog: React.NamedExoticComponent<ModalDialogProps>;