@cascivo/react 0.18.0 → 1.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 (645) hide show
  1. package/README.md +9 -7
  2. package/dist/accordion/accordion.js +1 -114
  3. package/dist/accordion/accordion.module.js +1 -10
  4. package/dist/action-sheet/action-sheet.css +1 -1
  5. package/dist/action-sheet/action-sheet.js +1 -91
  6. package/dist/action-sheet/action-sheet.module.js +1 -12
  7. package/dist/alert/alert.js +1 -55
  8. package/dist/alert/alert.module.js +1 -11
  9. package/dist/alert-dialog/alert-dialog.css +1 -1
  10. package/dist/alert-dialog/alert-dialog.js +1 -66
  11. package/dist/alert-dialog/alert-dialog.module.js +1 -11
  12. package/dist/app-shell/app-shell.css +1 -1
  13. package/dist/app-shell/app-shell.js +1 -85
  14. package/dist/app-shell/app-shell.module.js +1 -12
  15. package/dist/aspect-ratio/aspect-ratio.js +1 -20
  16. package/dist/aspect-ratio/aspect-ratio.module.js +1 -6
  17. package/dist/avatar/avatar.js +1 -57
  18. package/dist/avatar/avatar.module.js +1 -8
  19. package/dist/avatar-group/avatar-group.js +1 -24
  20. package/dist/avatar-group/avatar-group.module.js +1 -6
  21. package/dist/badge/badge.js +1 -22
  22. package/dist/badge/badge.module.js +1 -3
  23. package/dist/blockquote/blockquote.js +1 -16
  24. package/dist/blockquote/blockquote.module.js +1 -6
  25. package/dist/bottom-sheet/bottom-sheet.js +1 -111
  26. package/dist/bottom-sheet/bottom-sheet.module.js +1 -14
  27. package/dist/brand/logo/logo.css +1 -0
  28. package/dist/brand/logo/logo.js +1 -0
  29. package/dist/brand/logo/logo.module.js +2 -0
  30. package/dist/breadcrumb/breadcrumb.js +1 -28
  31. package/dist/breadcrumb/breadcrumb.module.js +1 -3
  32. package/dist/button/button.css +1 -1
  33. package/dist/button/button.js +1 -35
  34. package/dist/button/button.module.js +1 -6
  35. package/dist/button-group/button-group.js +1 -39
  36. package/dist/button-group/button-group.module.js +1 -3
  37. package/dist/calendar/calendar-date.js +1 -0
  38. package/dist/calendar/calendar.css +1 -1
  39. package/dist/calendar/calendar.js +1 -199
  40. package/dist/calendar/calendar.module.js +1 -14
  41. package/dist/card/card.js +1 -53
  42. package/dist/card/card.module.js +1 -12
  43. package/dist/carousel/carousel.css +1 -1
  44. package/dist/carousel/carousel.js +1 -138
  45. package/dist/carousel/carousel.module.js +1 -13
  46. package/dist/chat-bubble/chat-bubble.js +1 -31
  47. package/dist/chat-bubble/chat-bubble.module.js +1 -11
  48. package/dist/checkbox/checkbox.js +1 -38
  49. package/dist/checkbox/checkbox.module.js +1 -8
  50. package/dist/checkbox-card/checkbox-card.css +1 -1
  51. package/dist/checkbox-card/checkbox-card.js +1 -50
  52. package/dist/checkbox-card/checkbox-card.module.js +1 -11
  53. package/dist/code/code.js +1 -14
  54. package/dist/code/code.module.js +1 -3
  55. package/dist/code-snippet/code-snippet.js +2 -121
  56. package/dist/code-snippet/code-snippet.module.js +1 -17
  57. package/dist/code-snippet/highlight.js +1 -67
  58. package/dist/collapsible/collapsible.js +1 -47
  59. package/dist/collapsible/collapsible.module.js +1 -7
  60. package/dist/color-picker/color-picker.css +1 -1
  61. package/dist/color-picker/color-picker.js +1 -268
  62. package/dist/color-picker/color-picker.module.js +1 -18
  63. package/dist/color-picker/color.js +1 -0
  64. package/dist/combobox/combobox.css +1 -1
  65. package/dist/combobox/combobox.js +1 -165
  66. package/dist/combobox/combobox.module.js +1 -19
  67. package/dist/combobox/list-nav.js +1 -0
  68. package/dist/combobox/option-list.js +1 -0
  69. package/dist/command-menu/command-menu.js +1 -421
  70. package/dist/command-menu/command-menu.module.js +1 -34
  71. package/dist/comparison/comparison.js +1 -69
  72. package/dist/comparison/comparison.module.js +1 -9
  73. package/dist/contained-list/contained-list.js +1 -41
  74. package/dist/contained-list/contained-list.module.js +1 -11
  75. package/dist/context-menu/context-menu.js +1 -93
  76. package/dist/context-menu/context-menu.module.js +1 -7
  77. package/dist/copy-button/copy-button.js +1 -60
  78. package/dist/copy-button/copy-button.module.js +1 -6
  79. package/dist/data-list/data-list.js +1 -25
  80. package/dist/data-list/data-list.module.js +1 -8
  81. package/dist/data-table/column-filter.js +1 -0
  82. package/dist/data-table/column-layout.js +1 -0
  83. package/dist/data-table/data-table.css +1 -1
  84. package/dist/data-table/data-table.js +1 -371
  85. package/dist/data-table/data-table.module.js +1 -33
  86. package/dist/data-table/grid-keys.js +1 -0
  87. package/dist/data-table/row-group.js +1 -0
  88. package/dist/data-table/row-search.js +1 -0
  89. package/dist/data-table/row-sort.js +1 -0
  90. package/dist/data-table/to-csv.js +3 -0
  91. package/dist/data-table/virtual-window.js +1 -0
  92. package/dist/date-picker/date-picker.css +1 -1
  93. package/dist/date-picker/date-picker.js +1 -219
  94. package/dist/date-picker/date-picker.module.js +1 -23
  95. package/dist/date-picker/parse-date.js +1 -0
  96. package/dist/date-range-picker/date-range-picker.js +1 -196
  97. package/dist/date-range-picker/date-range-picker.module.js +1 -18
  98. package/dist/dock/dock.css +1 -1
  99. package/dist/dock/dock.js +1 -34
  100. package/dist/dock/dock.module.js +1 -8
  101. package/dist/drawer/drawer.js +1 -96
  102. package/dist/drawer/drawer.module.js +1 -13
  103. package/dist/dropdown/dropdown.css +1 -1
  104. package/dist/dropdown/dropdown.js +1 -107
  105. package/dist/dropdown/dropdown.module.js +1 -9
  106. package/dist/editable/editable.js +1 -67
  107. package/dist/editable/editable.module.js +1 -11
  108. package/dist/empty-state/empty-state.js +1 -32
  109. package/dist/empty-state/empty-state.module.js +1 -9
  110. package/dist/fab/fab.css +1 -1
  111. package/dist/fab/fab.js +1 -93
  112. package/dist/fab/fab.module.js +1 -12
  113. package/dist/field/field.css +1 -1
  114. package/dist/field/field.js +1 -46
  115. package/dist/field/field.module.js +1 -7
  116. package/dist/file-uploader/file-uploader.css +1 -1
  117. package/dist/file-uploader/file-uploader.js +1 -122
  118. package/dist/file-uploader/file-uploader.module.js +1 -18
  119. package/dist/filter/filter.css +1 -1
  120. package/dist/filter/filter.js +1 -35
  121. package/dist/filter/filter.module.js +1 -6
  122. package/dist/form/form.js +1 -95
  123. package/dist/form/form.module.js +1 -3
  124. package/dist/header/header.js +1 -44
  125. package/dist/header/header.module.js +1 -11
  126. package/dist/header-panel/header-panel.js +1 -72
  127. package/dist/header-panel/header-panel.module.js +1 -9
  128. package/dist/heading/heading.css +1 -1
  129. package/dist/heading/heading.js +1 -22
  130. package/dist/heading/heading.module.js +1 -3
  131. package/dist/hover-card/hover-card.css +1 -1
  132. package/dist/hover-card/hover-card.js +1 -84
  133. package/dist/hover-card/hover-card.module.js +1 -6
  134. package/dist/icon-button/icon-button.js +1 -19
  135. package/dist/icon-button/icon-button.module.js +1 -3
  136. package/dist/image/image.css +1 -1
  137. package/dist/image/image.js +1 -64
  138. package/dist/image/image.module.js +1 -9
  139. package/dist/index.d.ts +2084 -120
  140. package/dist/indicator/indicator.js +1 -16
  141. package/dist/indicator/indicator.module.js +1 -6
  142. package/dist/infinite-scroll/infinite-scroll.js +1 -49
  143. package/dist/infinite-scroll/infinite-scroll.module.js +1 -7
  144. package/dist/inline-loading/inline-loading.js +1 -74
  145. package/dist/inline-loading/inline-loading.module.js +1 -9
  146. package/dist/input/input.css +1 -1
  147. package/dist/input/input.js +1 -55
  148. package/dist/input/input.module.js +1 -9
  149. package/dist/input-group/input-group.css +1 -1
  150. package/dist/input-group/input-group.js +1 -39
  151. package/dist/input-group/input-group.module.js +1 -9
  152. package/dist/item/item.js +1 -50
  153. package/dist/item/item.module.js +1 -10
  154. package/dist/join/join.js +1 -12
  155. package/dist/join/join.module.js +1 -3
  156. package/dist/kbd/kbd.js +1 -14
  157. package/dist/kbd/kbd.module.js +1 -3
  158. package/dist/label/label.js +1 -23
  159. package/dist/label/label.module.js +1 -7
  160. package/dist/large-title-header/large-title-header.js +1 -38
  161. package/dist/large-title-header/large-title-header.module.js +1 -12
  162. package/dist/layouts/src/auto-grid/auto-grid.js +1 -17
  163. package/dist/layouts/src/auto-grid/auto-grid.module.js +1 -4
  164. package/dist/layouts/src/center/center.js +1 -16
  165. package/dist/layouts/src/center/center.module.js +1 -3
  166. package/dist/layouts/src/columns/columns.js +1 -21
  167. package/dist/layouts/src/columns/columns.module.js +1 -6
  168. package/dist/layouts/src/flex/flex.js +1 -20
  169. package/dist/layouts/src/flex/flex.module.js +1 -3
  170. package/dist/layouts/src/grid/grid.css +1 -1
  171. package/dist/layouts/src/grid/grid.js +1 -55
  172. package/dist/layouts/src/grid/grid.module.js +1 -7
  173. package/dist/layouts/src/page-header/page-header.js +1 -31
  174. package/dist/layouts/src/page-header/page-header.module.js +1 -10
  175. package/dist/layouts/src/spacer/spacer.js +1 -17
  176. package/dist/layouts/src/spacer/spacer.module.js +1 -3
  177. package/dist/link/link.css +1 -1
  178. package/dist/link/link.js +1 -22
  179. package/dist/link/link.module.js +1 -3
  180. package/dist/list/list.js +1 -21
  181. package/dist/list/list.module.js +1 -6
  182. package/dist/log-viewer/log-viewer.css +1 -1
  183. package/dist/log-viewer/log-viewer.js +2 -184
  184. package/dist/log-viewer/log-viewer.module.js +1 -16
  185. package/dist/menu/menu.js +1 -126
  186. package/dist/menu/menu.module.js +1 -8
  187. package/dist/menu-button/menu-button.js +1 -92
  188. package/dist/menu-button/menu-button.module.js +1 -8
  189. package/dist/menubar/menubar.js +1 -103
  190. package/dist/menubar/menubar.module.js +1 -8
  191. package/dist/modal/modal.css +1 -1
  192. package/dist/modal/modal.js +1 -76
  193. package/dist/modal/modal.module.js +1 -12
  194. package/dist/multi-select/list-nav.js +1 -0
  195. package/dist/multi-select/multi-select.css +1 -1
  196. package/dist/multi-select/multi-select.js +1 -106
  197. package/dist/multi-select/multi-select.module.js +1 -15
  198. package/dist/multi-select/option-list.js +1 -0
  199. package/dist/native-select/native-select.css +1 -1
  200. package/dist/native-select/native-select.js +1 -37
  201. package/dist/native-select/native-select.module.js +1 -7
  202. package/dist/navigation-menu/navigation-menu.js +1 -99
  203. package/dist/navigation-menu/navigation-menu.module.js +1 -10
  204. package/dist/node/accordion/accordion.js +1 -114
  205. package/dist/node/accordion/accordion.module.js +1 -10
  206. package/dist/node/action-sheet/action-sheet.js +1 -91
  207. package/dist/node/action-sheet/action-sheet.module.js +1 -12
  208. package/dist/node/alert/alert.js +1 -55
  209. package/dist/node/alert/alert.module.js +1 -11
  210. package/dist/node/alert-dialog/alert-dialog.js +1 -66
  211. package/dist/node/alert-dialog/alert-dialog.module.js +1 -11
  212. package/dist/node/app-shell/app-shell.js +1 -85
  213. package/dist/node/app-shell/app-shell.module.js +1 -12
  214. package/dist/node/aspect-ratio/aspect-ratio.js +1 -20
  215. package/dist/node/aspect-ratio/aspect-ratio.module.js +1 -6
  216. package/dist/node/avatar/avatar.js +1 -57
  217. package/dist/node/avatar/avatar.module.js +1 -8
  218. package/dist/node/avatar-group/avatar-group.js +1 -24
  219. package/dist/node/avatar-group/avatar-group.module.js +1 -6
  220. package/dist/node/badge/badge.js +1 -22
  221. package/dist/node/badge/badge.module.js +1 -3
  222. package/dist/node/blockquote/blockquote.js +1 -16
  223. package/dist/node/blockquote/blockquote.module.js +1 -6
  224. package/dist/node/bottom-sheet/bottom-sheet.js +1 -111
  225. package/dist/node/bottom-sheet/bottom-sheet.module.js +1 -14
  226. package/dist/node/brand/logo/logo.js +1 -0
  227. package/dist/node/brand/logo/logo.module.js +1 -0
  228. package/dist/node/breadcrumb/breadcrumb.js +1 -28
  229. package/dist/node/breadcrumb/breadcrumb.module.js +1 -3
  230. package/dist/node/button/button.js +1 -35
  231. package/dist/node/button/button.module.js +1 -6
  232. package/dist/node/button-group/button-group.js +1 -39
  233. package/dist/node/button-group/button-group.module.js +1 -3
  234. package/dist/node/calendar/calendar-date.js +1 -0
  235. package/dist/node/calendar/calendar.js +1 -199
  236. package/dist/node/calendar/calendar.module.js +1 -14
  237. package/dist/node/card/card.js +1 -53
  238. package/dist/node/card/card.module.js +1 -12
  239. package/dist/node/carousel/carousel.js +1 -138
  240. package/dist/node/carousel/carousel.module.js +1 -13
  241. package/dist/node/chat-bubble/chat-bubble.js +1 -31
  242. package/dist/node/chat-bubble/chat-bubble.module.js +1 -11
  243. package/dist/node/checkbox/checkbox.js +1 -38
  244. package/dist/node/checkbox/checkbox.module.js +1 -8
  245. package/dist/node/checkbox-card/checkbox-card.js +1 -50
  246. package/dist/node/checkbox-card/checkbox-card.module.js +1 -11
  247. package/dist/node/code/code.js +1 -14
  248. package/dist/node/code/code.module.js +1 -3
  249. package/dist/node/code-snippet/code-snippet.js +2 -121
  250. package/dist/node/code-snippet/code-snippet.module.js +1 -17
  251. package/dist/node/code-snippet/highlight.js +1 -67
  252. package/dist/node/collapsible/collapsible.js +1 -47
  253. package/dist/node/collapsible/collapsible.module.js +1 -7
  254. package/dist/node/color-picker/color-picker.js +1 -268
  255. package/dist/node/color-picker/color-picker.module.js +1 -18
  256. package/dist/node/color-picker/color.js +1 -0
  257. package/dist/node/combobox/combobox.js +1 -165
  258. package/dist/node/combobox/combobox.module.js +1 -19
  259. package/dist/node/combobox/list-nav.js +1 -0
  260. package/dist/node/combobox/option-list.js +1 -0
  261. package/dist/node/command-menu/command-menu.js +1 -421
  262. package/dist/node/command-menu/command-menu.module.js +1 -34
  263. package/dist/node/comparison/comparison.js +1 -69
  264. package/dist/node/comparison/comparison.module.js +1 -9
  265. package/dist/node/contained-list/contained-list.js +1 -41
  266. package/dist/node/contained-list/contained-list.module.js +1 -11
  267. package/dist/node/context-menu/context-menu.js +1 -93
  268. package/dist/node/context-menu/context-menu.module.js +1 -7
  269. package/dist/node/copy-button/copy-button.js +1 -60
  270. package/dist/node/copy-button/copy-button.module.js +1 -6
  271. package/dist/node/data-list/data-list.js +1 -25
  272. package/dist/node/data-list/data-list.module.js +1 -8
  273. package/dist/node/data-table/column-filter.js +1 -0
  274. package/dist/node/data-table/column-layout.js +1 -0
  275. package/dist/node/data-table/data-table.js +1 -371
  276. package/dist/node/data-table/data-table.module.js +1 -33
  277. package/dist/node/data-table/grid-keys.js +1 -0
  278. package/dist/node/data-table/row-group.js +1 -0
  279. package/dist/node/data-table/row-search.js +1 -0
  280. package/dist/node/data-table/row-sort.js +1 -0
  281. package/dist/node/data-table/to-csv.js +3 -0
  282. package/dist/node/data-table/virtual-window.js +1 -0
  283. package/dist/node/date-picker/date-picker.js +1 -219
  284. package/dist/node/date-picker/date-picker.module.js +1 -23
  285. package/dist/node/date-picker/parse-date.js +1 -0
  286. package/dist/node/date-range-picker/date-range-picker.js +1 -196
  287. package/dist/node/date-range-picker/date-range-picker.module.js +1 -18
  288. package/dist/node/dock/dock.js +1 -34
  289. package/dist/node/dock/dock.module.js +1 -8
  290. package/dist/node/drawer/drawer.js +1 -96
  291. package/dist/node/drawer/drawer.module.js +1 -13
  292. package/dist/node/dropdown/dropdown.js +1 -107
  293. package/dist/node/dropdown/dropdown.module.js +1 -9
  294. package/dist/node/editable/editable.js +1 -67
  295. package/dist/node/editable/editable.module.js +1 -11
  296. package/dist/node/empty-state/empty-state.js +1 -32
  297. package/dist/node/empty-state/empty-state.module.js +1 -9
  298. package/dist/node/fab/fab.js +1 -93
  299. package/dist/node/fab/fab.module.js +1 -12
  300. package/dist/node/field/field.js +1 -46
  301. package/dist/node/field/field.module.js +1 -7
  302. package/dist/node/file-uploader/file-uploader.js +1 -122
  303. package/dist/node/file-uploader/file-uploader.module.js +1 -18
  304. package/dist/node/filter/filter.js +1 -35
  305. package/dist/node/filter/filter.module.js +1 -6
  306. package/dist/node/form/form.js +1 -95
  307. package/dist/node/form/form.module.js +1 -3
  308. package/dist/node/header/header.js +1 -44
  309. package/dist/node/header/header.module.js +1 -11
  310. package/dist/node/header-panel/header-panel.js +1 -72
  311. package/dist/node/header-panel/header-panel.module.js +1 -9
  312. package/dist/node/heading/heading.js +1 -22
  313. package/dist/node/heading/heading.module.js +1 -3
  314. package/dist/node/hover-card/hover-card.js +1 -84
  315. package/dist/node/hover-card/hover-card.module.js +1 -6
  316. package/dist/node/icon-button/icon-button.js +1 -19
  317. package/dist/node/icon-button/icon-button.module.js +1 -3
  318. package/dist/node/image/image.js +1 -64
  319. package/dist/node/image/image.module.js +1 -9
  320. package/dist/node/indicator/indicator.js +1 -16
  321. package/dist/node/indicator/indicator.module.js +1 -6
  322. package/dist/node/infinite-scroll/infinite-scroll.js +1 -49
  323. package/dist/node/infinite-scroll/infinite-scroll.module.js +1 -7
  324. package/dist/node/inline-loading/inline-loading.js +1 -74
  325. package/dist/node/inline-loading/inline-loading.module.js +1 -9
  326. package/dist/node/input/input.js +1 -55
  327. package/dist/node/input/input.module.js +1 -9
  328. package/dist/node/input-group/input-group.js +1 -39
  329. package/dist/node/input-group/input-group.module.js +1 -9
  330. package/dist/node/item/item.js +1 -50
  331. package/dist/node/item/item.module.js +1 -10
  332. package/dist/node/join/join.js +1 -12
  333. package/dist/node/join/join.module.js +1 -3
  334. package/dist/node/kbd/kbd.js +1 -14
  335. package/dist/node/kbd/kbd.module.js +1 -3
  336. package/dist/node/label/label.js +1 -23
  337. package/dist/node/label/label.module.js +1 -7
  338. package/dist/node/large-title-header/large-title-header.js +1 -38
  339. package/dist/node/large-title-header/large-title-header.module.js +1 -12
  340. package/dist/node/layouts/src/auto-grid/auto-grid.js +1 -17
  341. package/dist/node/layouts/src/auto-grid/auto-grid.module.js +1 -4
  342. package/dist/node/layouts/src/center/center.js +1 -16
  343. package/dist/node/layouts/src/center/center.module.js +1 -3
  344. package/dist/node/layouts/src/columns/columns.js +1 -21
  345. package/dist/node/layouts/src/columns/columns.module.js +1 -6
  346. package/dist/node/layouts/src/flex/flex.js +1 -20
  347. package/dist/node/layouts/src/flex/flex.module.js +1 -3
  348. package/dist/node/layouts/src/grid/grid.js +1 -55
  349. package/dist/node/layouts/src/grid/grid.module.js +1 -7
  350. package/dist/node/layouts/src/page-header/page-header.js +1 -31
  351. package/dist/node/layouts/src/page-header/page-header.module.js +1 -10
  352. package/dist/node/layouts/src/spacer/spacer.js +1 -17
  353. package/dist/node/layouts/src/spacer/spacer.module.js +1 -3
  354. package/dist/node/link/link.js +1 -22
  355. package/dist/node/link/link.module.js +1 -3
  356. package/dist/node/list/list.js +1 -21
  357. package/dist/node/list/list.module.js +1 -6
  358. package/dist/node/log-viewer/log-viewer.js +2 -184
  359. package/dist/node/log-viewer/log-viewer.module.js +1 -16
  360. package/dist/node/menu/menu.js +1 -126
  361. package/dist/node/menu/menu.module.js +1 -8
  362. package/dist/node/menu-button/menu-button.js +1 -92
  363. package/dist/node/menu-button/menu-button.module.js +1 -8
  364. package/dist/node/menubar/menubar.js +1 -103
  365. package/dist/node/menubar/menubar.module.js +1 -8
  366. package/dist/node/modal/modal.js +1 -76
  367. package/dist/node/modal/modal.module.js +1 -12
  368. package/dist/node/multi-select/list-nav.js +1 -0
  369. package/dist/node/multi-select/multi-select.js +1 -106
  370. package/dist/node/multi-select/multi-select.module.js +1 -15
  371. package/dist/node/multi-select/option-list.js +1 -0
  372. package/dist/node/native-select/native-select.js +1 -37
  373. package/dist/node/native-select/native-select.module.js +1 -7
  374. package/dist/node/navigation-menu/navigation-menu.js +1 -99
  375. package/dist/node/navigation-menu/navigation-menu.module.js +1 -10
  376. package/dist/node/notification/notification.js +1 -140
  377. package/dist/node/notification/notification.module.js +1 -11
  378. package/dist/node/number-input/number-input.js +1 -147
  379. package/dist/node/number-input/number-input.module.js +1 -12
  380. package/dist/node/otp-input/otp-input.js +1 -70
  381. package/dist/node/otp-input/otp-input.module.js +1 -6
  382. package/dist/node/overflow-menu/overflow-menu.js +1 -70
  383. package/dist/node/overflow-menu/overflow-menu.module.js +1 -7
  384. package/dist/node/pagination/pagination.js +1 -92
  385. package/dist/node/pagination/pagination.module.js +1 -11
  386. package/dist/node/password-input/password-input.js +1 -81
  387. package/dist/node/password-input/password-input.module.js +1 -11
  388. package/dist/node/popover/popover.js +1 -51
  389. package/dist/node/popover/popover.module.js +1 -6
  390. package/dist/node/popover/use-popover.js +1 -55
  391. package/dist/node/progress/progress.js +1 -16
  392. package/dist/node/progress/progress.module.js +1 -6
  393. package/dist/node/progress-bar/progress-bar.js +1 -42
  394. package/dist/node/progress-bar/progress-bar.module.js +1 -11
  395. package/dist/node/progress-circle/progress-circle.js +1 -46
  396. package/dist/node/progress-circle/progress-circle.module.js +1 -9
  397. package/dist/node/progress-indicator/progress-indicator.js +1 -34
  398. package/dist/node/progress-indicator/progress-indicator.module.js +1 -10
  399. package/dist/node/prose/prose.js +1 -13
  400. package/dist/node/prose/prose.module.js +1 -3
  401. package/dist/node/pull-to-refresh/pull-to-refresh.js +1 -82
  402. package/dist/node/pull-to-refresh/pull-to-refresh.module.js +1 -9
  403. package/dist/node/qr-code/encode.js +1 -583
  404. package/dist/node/qr-code/qr-code.js +1 -41
  405. package/dist/node/qr-code/qr-code.module.js +1 -6
  406. package/dist/node/radial-progress/radial-progress.js +1 -27
  407. package/dist/node/radial-progress/radial-progress.module.js +1 -6
  408. package/dist/node/radio/radio.js +1 -48
  409. package/dist/node/radio/radio.module.js +1 -9
  410. package/dist/node/radio-card/radio-card.js +1 -64
  411. package/dist/node/radio-card/radio-card.module.js +1 -11
  412. package/dist/node/rating-group/rating-group.js +1 -37
  413. package/dist/node/rating-group/rating-group.module.js +1 -6
  414. package/dist/node/react/src/index.js +1 -141
  415. package/dist/node/relative-time/relative-time.js +1 -66
  416. package/dist/node/relative-time/relative-time.module.js +1 -3
  417. package/dist/node/reorder-list/reorder-list.js +1 -143
  418. package/dist/node/reorder-list/reorder-list.module.js +1 -11
  419. package/dist/node/resizable/resizable.js +1 -80
  420. package/dist/node/resizable/resizable.module.js +1 -8
  421. package/dist/node/scroll-area/scroll-area.js +1 -38
  422. package/dist/node/scroll-area/scroll-area.module.js +1 -3
  423. package/dist/node/search/search.js +1 -92
  424. package/dist/node/search/search.module.js +1 -9
  425. package/dist/node/segmented-control/segmented-control.js +1 -43
  426. package/dist/node/segmented-control/segmented-control.module.js +1 -6
  427. package/dist/node/select/select.js +1 -72
  428. package/dist/node/select/select.module.js +1 -11
  429. package/dist/node/separator/separator.js +1 -19
  430. package/dist/node/separator/separator.module.js +1 -3
  431. package/dist/node/sheet/sheet.js +1 -49
  432. package/dist/node/sheet/sheet.module.js +1 -9
  433. package/dist/node/shell-header/shell-header.js +1 -169
  434. package/dist/node/shell-header/shell-header.module.js +1 -24
  435. package/dist/node/side-nav/side-nav.js +1 -334
  436. package/dist/node/side-nav/side-nav.module.js +1 -31
  437. package/dist/node/skeleton/skeleton.js +1 -23
  438. package/dist/node/skeleton/skeleton.module.js +1 -7
  439. package/dist/node/skip-nav/skip-nav.js +1 -28
  440. package/dist/node/skip-nav/skip-nav.module.js +1 -3
  441. package/dist/node/slider/slider.js +1 -29
  442. package/dist/node/slider/slider.module.js +1 -7
  443. package/dist/node/spinner/spinner.js +1 -18
  444. package/dist/node/spinner/spinner.module.js +1 -6
  445. package/dist/node/stack/stack.js +1 -17
  446. package/dist/node/stack/stack.module.js +1 -6
  447. package/dist/node/stat/stat.js +1 -41
  448. package/dist/node/stat/stat.module.js +1 -11
  449. package/dist/node/status/status.js +1 -25
  450. package/dist/node/status/status.module.js +1 -7
  451. package/dist/node/steps/steps.js +1 -35
  452. package/dist/node/steps/steps.module.js +1 -8
  453. package/dist/node/structured-list/structured-list.js +1 -102
  454. package/dist/node/structured-list/structured-list.module.js +1 -12
  455. package/dist/node/swap/swap.js +1 -36
  456. package/dist/node/swap/swap.module.js +1 -7
  457. package/dist/node/swipe-item/swipe-item.js +1 -62
  458. package/dist/node/swipe-item/swipe-item.module.js +1 -12
  459. package/dist/node/switcher/switcher.js +1 -32
  460. package/dist/node/switcher/switcher.module.js +1 -8
  461. package/dist/node/tabs/tabs.js +1 -98
  462. package/dist/node/tabs/tabs.module.js +1 -8
  463. package/dist/node/tag/tag.js +1 -33
  464. package/dist/node/tag/tag.module.js +1 -6
  465. package/dist/node/tags-input/tags-input.js +1 -64
  466. package/dist/node/tags-input/tags-input.module.js +1 -8
  467. package/dist/node/text/text.js +1 -16
  468. package/dist/node/text/text.module.js +1 -3
  469. package/dist/node/textarea/textarea.js +1 -57
  470. package/dist/node/textarea/textarea.module.js +1 -9
  471. package/dist/node/tile/tile.js +1 -39
  472. package/dist/node/tile/tile.module.js +1 -7
  473. package/dist/node/time-picker/time-picker.js +1 -63
  474. package/dist/node/time-picker/time-picker.module.js +1 -9
  475. package/dist/node/timeline/timeline.js +1 -55
  476. package/dist/node/timeline/timeline.module.js +1 -11
  477. package/dist/node/toast/toast.js +1 -85
  478. package/dist/node/toast/toast.module.js +1 -11
  479. package/dist/node/toc/toc.js +1 -43
  480. package/dist/node/toc/toc.module.js +1 -3
  481. package/dist/node/toc/use-toc-from-region.js +1 -18
  482. package/dist/node/toggle/toggle.js +1 -41
  483. package/dist/node/toggle/toggle.module.js +1 -8
  484. package/dist/node/toggle-group/toggle-group.js +1 -55
  485. package/dist/node/toggle-group/toggle-group.module.js +1 -6
  486. package/dist/node/toggletip/toggletip.js +1 -49
  487. package/dist/node/toggletip/toggletip.module.js +1 -7
  488. package/dist/node/tooltip/tooltip.js +1 -58
  489. package/dist/node/tooltip/tooltip.module.js +1 -6
  490. package/dist/node/tree-view/tree-view.js +1 -201
  491. package/dist/node/tree-view/tree-view.module.js +1 -13
  492. package/dist/node/user/user.js +1 -35
  493. package/dist/node/user/user.module.js +1 -9
  494. package/dist/node/virtual-list/virtual-list.js +1 -40
  495. package/dist/node/virtual-list/virtual-list.module.js +1 -7
  496. package/dist/node/visually-hidden/visually-hidden.js +1 -2
  497. package/dist/node/wheel-picker/wheel-picker.js +1 -84
  498. package/dist/node/wheel-picker/wheel-picker.module.js +1 -8
  499. package/dist/notification/notification.js +1 -140
  500. package/dist/notification/notification.module.js +1 -11
  501. package/dist/number-input/number-input.js +1 -147
  502. package/dist/number-input/number-input.module.js +1 -12
  503. package/dist/otp-input/otp-input.js +1 -70
  504. package/dist/otp-input/otp-input.module.js +1 -6
  505. package/dist/overflow-menu/overflow-menu.js +1 -70
  506. package/dist/overflow-menu/overflow-menu.module.js +1 -7
  507. package/dist/pagination/pagination.js +1 -92
  508. package/dist/pagination/pagination.module.js +1 -11
  509. package/dist/password-input/password-input.js +1 -81
  510. package/dist/password-input/password-input.module.js +1 -11
  511. package/dist/popover/popover.js +1 -51
  512. package/dist/popover/popover.module.js +1 -6
  513. package/dist/popover/use-popover.js +1 -55
  514. package/dist/progress/progress.css +1 -1
  515. package/dist/progress/progress.js +1 -16
  516. package/dist/progress/progress.module.js +1 -6
  517. package/dist/progress-bar/progress-bar.css +1 -1
  518. package/dist/progress-bar/progress-bar.js +1 -42
  519. package/dist/progress-bar/progress-bar.module.js +1 -11
  520. package/dist/progress-circle/progress-circle.js +1 -46
  521. package/dist/progress-circle/progress-circle.module.js +1 -9
  522. package/dist/progress-indicator/progress-indicator.css +1 -1
  523. package/dist/progress-indicator/progress-indicator.js +1 -34
  524. package/dist/progress-indicator/progress-indicator.module.js +1 -10
  525. package/dist/prose/prose.css +1 -1
  526. package/dist/prose/prose.js +1 -13
  527. package/dist/prose/prose.module.js +1 -3
  528. package/dist/pull-to-refresh/pull-to-refresh.js +1 -82
  529. package/dist/pull-to-refresh/pull-to-refresh.module.js +1 -9
  530. package/dist/qr-code/encode.js +1 -583
  531. package/dist/qr-code/qr-code.js +1 -41
  532. package/dist/qr-code/qr-code.module.js +1 -6
  533. package/dist/radial-progress/radial-progress.js +1 -27
  534. package/dist/radial-progress/radial-progress.module.js +1 -6
  535. package/dist/radio/radio.js +1 -48
  536. package/dist/radio/radio.module.js +1 -9
  537. package/dist/radio-card/radio-card.css +1 -1
  538. package/dist/radio-card/radio-card.js +1 -64
  539. package/dist/radio-card/radio-card.module.js +1 -11
  540. package/dist/rating-group/rating-group.js +1 -37
  541. package/dist/rating-group/rating-group.module.js +1 -6
  542. package/dist/react/src/index.js +1 -141
  543. package/dist/relative-time/relative-time.js +1 -66
  544. package/dist/relative-time/relative-time.module.js +1 -3
  545. package/dist/reorder-list/reorder-list.css +1 -1
  546. package/dist/reorder-list/reorder-list.js +1 -143
  547. package/dist/reorder-list/reorder-list.module.js +1 -11
  548. package/dist/resizable/resizable.js +1 -80
  549. package/dist/resizable/resizable.module.js +1 -8
  550. package/dist/scroll-area/scroll-area.css +1 -1
  551. package/dist/scroll-area/scroll-area.js +1 -38
  552. package/dist/scroll-area/scroll-area.module.js +1 -3
  553. package/dist/search/search.js +1 -92
  554. package/dist/search/search.module.js +1 -9
  555. package/dist/segmented-control/segmented-control.js +1 -43
  556. package/dist/segmented-control/segmented-control.module.js +1 -6
  557. package/dist/select/select.js +1 -72
  558. package/dist/select/select.module.js +1 -11
  559. package/dist/separator/separator.js +1 -19
  560. package/dist/separator/separator.module.js +1 -3
  561. package/dist/sheet/sheet.js +1 -49
  562. package/dist/sheet/sheet.module.js +1 -9
  563. package/dist/shell-header/shell-header.css +1 -1
  564. package/dist/shell-header/shell-header.js +1 -169
  565. package/dist/shell-header/shell-header.module.js +1 -24
  566. package/dist/side-nav/side-nav.css +1 -1
  567. package/dist/side-nav/side-nav.js +1 -334
  568. package/dist/side-nav/side-nav.module.js +1 -31
  569. package/dist/skeleton/skeleton.css +1 -1
  570. package/dist/skeleton/skeleton.js +1 -23
  571. package/dist/skeleton/skeleton.module.js +1 -7
  572. package/dist/skip-nav/skip-nav.js +1 -28
  573. package/dist/skip-nav/skip-nav.module.js +1 -3
  574. package/dist/slider/slider.js +1 -29
  575. package/dist/slider/slider.module.js +1 -7
  576. package/dist/spinner/spinner.css +1 -1
  577. package/dist/spinner/spinner.js +1 -18
  578. package/dist/spinner/spinner.module.js +1 -6
  579. package/dist/stack/stack.js +1 -17
  580. package/dist/stack/stack.module.js +1 -6
  581. package/dist/stat/stat.js +1 -41
  582. package/dist/stat/stat.module.js +1 -11
  583. package/dist/status/status.css +1 -1
  584. package/dist/status/status.js +1 -25
  585. package/dist/status/status.module.js +1 -7
  586. package/dist/steps/steps.css +1 -1
  587. package/dist/steps/steps.js +1 -35
  588. package/dist/steps/steps.module.js +1 -8
  589. package/dist/structured-list/structured-list.js +1 -102
  590. package/dist/structured-list/structured-list.module.js +1 -12
  591. package/dist/styles.css +395 -53
  592. package/dist/swap/swap.css +1 -1
  593. package/dist/swap/swap.js +1 -36
  594. package/dist/swap/swap.module.js +1 -7
  595. package/dist/swipe-item/swipe-item.js +1 -62
  596. package/dist/swipe-item/swipe-item.module.js +1 -12
  597. package/dist/switcher/switcher.js +1 -32
  598. package/dist/switcher/switcher.module.js +1 -8
  599. package/dist/tabs/tabs.js +1 -98
  600. package/dist/tabs/tabs.module.js +1 -8
  601. package/dist/tag/tag.js +1 -33
  602. package/dist/tag/tag.module.js +1 -6
  603. package/dist/tags-input/tags-input.js +1 -64
  604. package/dist/tags-input/tags-input.module.js +1 -8
  605. package/dist/text/text.css +1 -1
  606. package/dist/text/text.js +1 -16
  607. package/dist/text/text.module.js +1 -3
  608. package/dist/textarea/textarea.css +1 -1
  609. package/dist/textarea/textarea.js +1 -57
  610. package/dist/textarea/textarea.module.js +1 -9
  611. package/dist/tile/tile.css +1 -1
  612. package/dist/tile/tile.js +1 -39
  613. package/dist/tile/tile.module.js +1 -7
  614. package/dist/time-picker/time-picker.js +1 -63
  615. package/dist/time-picker/time-picker.module.js +1 -9
  616. package/dist/timeline/timeline.js +1 -55
  617. package/dist/timeline/timeline.module.js +1 -11
  618. package/dist/toast/toast.css +1 -1
  619. package/dist/toast/toast.js +1 -85
  620. package/dist/toast/toast.module.js +1 -11
  621. package/dist/toc/toc.css +1 -1
  622. package/dist/toc/toc.js +1 -43
  623. package/dist/toc/toc.module.js +1 -3
  624. package/dist/toc/use-toc-from-region.js +1 -18
  625. package/dist/toggle/toggle.js +1 -41
  626. package/dist/toggle/toggle.module.js +1 -8
  627. package/dist/toggle-group/toggle-group.js +1 -55
  628. package/dist/toggle-group/toggle-group.module.js +1 -6
  629. package/dist/toggletip/toggletip.js +1 -49
  630. package/dist/toggletip/toggletip.module.js +1 -7
  631. package/dist/tooltip/tooltip.css +1 -1
  632. package/dist/tooltip/tooltip.js +1 -58
  633. package/dist/tooltip/tooltip.module.js +1 -6
  634. package/dist/tree-view/tree-view.css +1 -1
  635. package/dist/tree-view/tree-view.js +1 -201
  636. package/dist/tree-view/tree-view.module.js +1 -13
  637. package/dist/user/user.js +1 -35
  638. package/dist/user/user.module.js +1 -9
  639. package/dist/virtual-list/virtual-list.js +1 -40
  640. package/dist/virtual-list/virtual-list.module.js +1 -7
  641. package/dist/visually-hidden/visually-hidden.js +1 -2
  642. package/dist/wheel-picker/wheel-picker.js +1 -84
  643. package/dist/wheel-picker/wheel-picker.module.js +1 -8
  644. package/package.json +4 -4
  645. package/readme.body.md +7 -5
@@ -1,583 +1 @@
1
- //#region ../components/src/qr-code/encode.ts
2
- var e = {
3
- L: {
4
- ordinal: 0,
5
- formatBits: 1
6
- },
7
- M: {
8
- ordinal: 1,
9
- formatBits: 0
10
- },
11
- Q: {
12
- ordinal: 2,
13
- formatBits: 3
14
- },
15
- H: {
16
- ordinal: 3,
17
- formatBits: 2
18
- }
19
- }, t = 1, n = 40, r = [
20
- [
21
- -1,
22
- 7,
23
- 10,
24
- 15,
25
- 20,
26
- 26,
27
- 18,
28
- 20,
29
- 24,
30
- 30,
31
- 18,
32
- 20,
33
- 24,
34
- 26,
35
- 30,
36
- 22,
37
- 24,
38
- 28,
39
- 30,
40
- 28,
41
- 28,
42
- 28,
43
- 28,
44
- 30,
45
- 30,
46
- 26,
47
- 28,
48
- 30,
49
- 30,
50
- 30,
51
- 30,
52
- 30,
53
- 30,
54
- 30,
55
- 30,
56
- 30,
57
- 30,
58
- 30,
59
- 30,
60
- 30,
61
- 30
62
- ],
63
- [
64
- -1,
65
- 10,
66
- 16,
67
- 26,
68
- 18,
69
- 24,
70
- 16,
71
- 18,
72
- 22,
73
- 22,
74
- 26,
75
- 30,
76
- 22,
77
- 22,
78
- 24,
79
- 24,
80
- 28,
81
- 28,
82
- 26,
83
- 26,
84
- 26,
85
- 26,
86
- 28,
87
- 28,
88
- 28,
89
- 28,
90
- 28,
91
- 28,
92
- 28,
93
- 28,
94
- 28,
95
- 28,
96
- 28,
97
- 28,
98
- 28,
99
- 28,
100
- 28,
101
- 28,
102
- 28,
103
- 28,
104
- 28
105
- ],
106
- [
107
- -1,
108
- 13,
109
- 22,
110
- 18,
111
- 26,
112
- 18,
113
- 24,
114
- 18,
115
- 22,
116
- 20,
117
- 24,
118
- 28,
119
- 26,
120
- 24,
121
- 20,
122
- 30,
123
- 24,
124
- 28,
125
- 28,
126
- 26,
127
- 30,
128
- 28,
129
- 30,
130
- 30,
131
- 30,
132
- 30,
133
- 28,
134
- 30,
135
- 30,
136
- 30,
137
- 30,
138
- 30,
139
- 30,
140
- 30,
141
- 30,
142
- 30,
143
- 30,
144
- 30,
145
- 30,
146
- 30,
147
- 30
148
- ],
149
- [
150
- -1,
151
- 17,
152
- 28,
153
- 22,
154
- 16,
155
- 22,
156
- 28,
157
- 26,
158
- 26,
159
- 24,
160
- 28,
161
- 24,
162
- 28,
163
- 22,
164
- 24,
165
- 24,
166
- 30,
167
- 28,
168
- 28,
169
- 26,
170
- 28,
171
- 30,
172
- 24,
173
- 30,
174
- 30,
175
- 30,
176
- 30,
177
- 30,
178
- 30,
179
- 30,
180
- 30,
181
- 30,
182
- 30,
183
- 30,
184
- 30,
185
- 30,
186
- 30,
187
- 30,
188
- 30,
189
- 30,
190
- 30
191
- ]
192
- ], i = [
193
- [
194
- -1,
195
- 1,
196
- 1,
197
- 1,
198
- 1,
199
- 1,
200
- 2,
201
- 2,
202
- 2,
203
- 2,
204
- 4,
205
- 4,
206
- 4,
207
- 4,
208
- 4,
209
- 6,
210
- 6,
211
- 6,
212
- 6,
213
- 7,
214
- 8,
215
- 8,
216
- 9,
217
- 9,
218
- 10,
219
- 12,
220
- 12,
221
- 12,
222
- 13,
223
- 14,
224
- 15,
225
- 16,
226
- 17,
227
- 18,
228
- 19,
229
- 19,
230
- 20,
231
- 21,
232
- 22,
233
- 24,
234
- 25
235
- ],
236
- [
237
- -1,
238
- 1,
239
- 1,
240
- 1,
241
- 2,
242
- 2,
243
- 4,
244
- 4,
245
- 4,
246
- 5,
247
- 5,
248
- 5,
249
- 8,
250
- 9,
251
- 9,
252
- 10,
253
- 10,
254
- 11,
255
- 13,
256
- 14,
257
- 16,
258
- 17,
259
- 17,
260
- 18,
261
- 20,
262
- 21,
263
- 23,
264
- 25,
265
- 26,
266
- 28,
267
- 29,
268
- 31,
269
- 33,
270
- 35,
271
- 37,
272
- 38,
273
- 40,
274
- 43,
275
- 45,
276
- 47,
277
- 49
278
- ],
279
- [
280
- -1,
281
- 1,
282
- 1,
283
- 2,
284
- 2,
285
- 4,
286
- 4,
287
- 6,
288
- 6,
289
- 8,
290
- 8,
291
- 8,
292
- 10,
293
- 12,
294
- 16,
295
- 12,
296
- 17,
297
- 16,
298
- 18,
299
- 21,
300
- 20,
301
- 23,
302
- 23,
303
- 25,
304
- 27,
305
- 29,
306
- 34,
307
- 34,
308
- 35,
309
- 38,
310
- 40,
311
- 43,
312
- 45,
313
- 48,
314
- 51,
315
- 53,
316
- 56,
317
- 59,
318
- 62,
319
- 65,
320
- 68
321
- ],
322
- [
323
- -1,
324
- 1,
325
- 1,
326
- 2,
327
- 4,
328
- 4,
329
- 4,
330
- 5,
331
- 6,
332
- 8,
333
- 8,
334
- 11,
335
- 11,
336
- 16,
337
- 16,
338
- 18,
339
- 16,
340
- 19,
341
- 21,
342
- 25,
343
- 25,
344
- 25,
345
- 34,
346
- 30,
347
- 32,
348
- 35,
349
- 37,
350
- 40,
351
- 42,
352
- 45,
353
- 48,
354
- 51,
355
- 54,
356
- 57,
357
- 60,
358
- 63,
359
- 66,
360
- 70,
361
- 74,
362
- 77,
363
- 81
364
- ]
365
- ];
366
- function a(e) {
367
- let t = (16 * e + 128) * e + 64;
368
- if (e >= 2) {
369
- let n = Math.floor(e / 7) + 2;
370
- t -= (25 * n - 10) * n - 55, e >= 7 && (t -= 36);
371
- }
372
- return t;
373
- }
374
- function o(t, n) {
375
- let o = e[n].ordinal;
376
- return Math.floor(a(t) / 8) - r[o][t] * i[o][t];
377
- }
378
- function s(e, t) {
379
- let n = 0;
380
- for (let r = 7; r >= 0; r--) n = n << 1 ^ (n >>> 7) * 285, n ^= (t >>> r & 1) * e;
381
- return n & 255;
382
- }
383
- function c(e) {
384
- let t = Array.from({ length: e }).fill(0);
385
- t[e - 1] = 1;
386
- let n = 1;
387
- for (let r = 0; r < e; r++) {
388
- for (let e = 0; e < t.length; e++) t[e] = s(t[e], n), e + 1 < t.length && (t[e] = t[e] ^ t[e + 1]);
389
- n = s(n, 2);
390
- }
391
- return t;
392
- }
393
- function l(e, t) {
394
- let n = Array.from({ length: t.length }).fill(0);
395
- for (let r of e) {
396
- let e = r ^ n.shift();
397
- n.push(0);
398
- for (let r = 0; r < n.length; r++) n[r] = n[r] ^ s(t[r], e);
399
- }
400
- return n;
401
- }
402
- function u(e, t, n) {
403
- for (let r = t - 1; r >= 0; r--) n.push(e >>> r & 1);
404
- }
405
- function d(e, t) {
406
- let n = [];
407
- u(4, 4, n);
408
- let r = t <= 9 ? 8 : 16;
409
- u(e.length, r, n);
410
- for (let t of e) u(t, 8, n);
411
- return n;
412
- }
413
- function f(e, t, n) {
414
- return 4 + (t <= 9 ? 8 : 16) + e * 8 <= o(t, n) * 8;
415
- }
416
- function p(t, n, o) {
417
- let s = e[o].ordinal, u = i[s][n], d = r[s][n], f = Math.floor(a(n) / 8), p = u - f % u, m = Math.floor(f / u), h = [], g = c(d), _ = 0;
418
- for (let e = 0; e < u; e++) {
419
- let n = m - d + (e < p ? 0 : 1), r = t.slice(_, _ + n);
420
- _ += n;
421
- let i = l(r, g);
422
- e < p && r.push(0), h.push(r.concat(i));
423
- }
424
- let v = [];
425
- for (let e = 0; e < h[0].length; e++) for (let t = 0; t < h.length; t++) (e !== m - d || t >= p) && v.push(h[t][e]);
426
- return v;
427
- }
428
- function m(e, t, n) {
429
- let r = d(h(e), t), i = o(t, n) * 8;
430
- u(0, Math.min(4, i - r.length), r), u(0, (8 - r.length % 8) % 8, r);
431
- let a = [];
432
- for (let e = 0; e < r.length; e += 8) {
433
- let t = 0;
434
- for (let n = 0; n < 8; n++) t = t << 1 | r[e + n];
435
- a.push(t);
436
- }
437
- for (let e = 236; a.length < i / 8; e ^= 253) a.push(e);
438
- return a;
439
- }
440
- function h(e) {
441
- return typeof TextEncoder < "u" ? Array.from(new TextEncoder().encode(e)) : Array.from(unescape(encodeURIComponent(e)), (e) => e.charCodeAt(0));
442
- }
443
- var g = class {
444
- size;
445
- modules;
446
- isFunction;
447
- constructor(e) {
448
- this.size = e * 4 + 17, this.modules = Array.from({ length: this.size }, () => Array.from({ length: this.size }).fill(!1)), this.isFunction = Array.from({ length: this.size }, () => Array.from({ length: this.size }).fill(!1));
449
- }
450
- set(e, t, n, r) {
451
- this.modules[t][e] = n, this.isFunction[t][e] = r;
452
- }
453
- drawFinder(e, t) {
454
- for (let n = -4; n <= 4; n++) for (let r = -4; r <= 4; r++) {
455
- let i = e + r, a = t + n;
456
- if (i < 0 || i >= this.size || a < 0 || a >= this.size) continue;
457
- let o = Math.max(Math.abs(r), Math.abs(n));
458
- this.set(i, a, o !== 2 && o !== 4, !0);
459
- }
460
- }
461
- drawAlignment(e, t) {
462
- for (let n = -2; n <= 2; n++) for (let r = -2; r <= 2; r++) this.set(e + r, t + n, Math.max(Math.abs(r), Math.abs(n)) !== 1, !0);
463
- }
464
- isFn(e, t) {
465
- return this.isFunction[t][e];
466
- }
467
- };
468
- function _(e) {
469
- if (e === 1) return [];
470
- let t = Math.floor(e / 7) + 2, n = Math.floor((e * 8 + t * 3 + 5) / (t * 4 - 4)) * 2, r = [6];
471
- for (let i = e * 4 + 10; r.length < t; i -= n) r.splice(1, 0, i);
472
- return r;
473
- }
474
- function v(e, t, n) {
475
- let r = e.size;
476
- for (let t = 0; t < r; t++) e.set(6, t, t % 2 == 0, !0), e.set(t, 6, t % 2 == 0, !0);
477
- e.drawFinder(3, 3), e.drawFinder(r - 4, 3), e.drawFinder(3, r - 4);
478
- let i = _(t);
479
- for (let t = 0; t < i.length; t++) for (let n = 0; n < i.length; n++) t === 0 && n === 0 || t === 0 && n === i.length - 1 || t === i.length - 1 && n === 0 || e.drawAlignment(i[t], i[n]);
480
- y(e, n, 0, !0), b(e, t);
481
- }
482
- function y(t, n, r, i) {
483
- let a = t.size, o = e[n].formatBits << 3 | r, s = o;
484
- for (let e = 0; e < 10; e++) s = s << 1 ^ (s >>> 9) * 1335;
485
- let c = (o << 10 | s) ^ 21522, l = (e) => i ? !1 : (c >>> e & 1) != 0;
486
- for (let e = 0; e <= 5; e++) t.set(8, e, l(e), !0);
487
- t.set(8, 7, l(6), !0), t.set(8, 8, l(7), !0), t.set(7, 8, l(8), !0);
488
- for (let e = 9; e < 15; e++) t.set(14 - e, 8, l(e), !0);
489
- for (let e = 0; e < 8; e++) t.set(a - 1 - e, 8, l(e), !0);
490
- for (let e = 8; e < 15; e++) t.set(8, a - 15 + e, l(e), !0);
491
- t.set(8, a - 8, !0, !0);
492
- }
493
- function b(e, t) {
494
- if (t < 7) return;
495
- let n = t;
496
- for (let e = 0; e < 12; e++) n = n << 1 ^ (n >>> 11) * 7973;
497
- let r = t << 12 | n;
498
- for (let t = 0; t < 18; t++) {
499
- let n = (r >>> t & 1) != 0, i = e.size - 11 + t % 3, a = Math.floor(t / 3);
500
- e.set(i, a, n, !0), e.set(a, i, n, !0);
501
- }
502
- }
503
- function x(e, t) {
504
- let n = e.size, r = 0;
505
- for (let i = n - 1; i >= 1; i -= 2) {
506
- let a = i === 6 ? 5 : i;
507
- for (let i = 0; i < n; i++) for (let o = 0; o < 2; o++) {
508
- let s = a - o, c = a + 1 & 2 ? i : n - 1 - i;
509
- if (!e.isFn(s, c) && r < t.length * 8) {
510
- let n = (t[r >>> 3] >>> 7 - (r & 7) & 1) != 0;
511
- e.set(s, c, n, !1), r++;
512
- }
513
- }
514
- }
515
- }
516
- function S(e, t) {
517
- for (let n = 0; n < e.size; n++) for (let r = 0; r < e.size; r++) {
518
- if (e.isFn(r, n)) continue;
519
- let i = !1;
520
- switch (t) {
521
- case 0:
522
- i = (r + n) % 2 == 0;
523
- break;
524
- case 1:
525
- i = n % 2 == 0;
526
- break;
527
- case 2:
528
- i = r % 3 == 0;
529
- break;
530
- case 3:
531
- i = (r + n) % 3 == 0;
532
- break;
533
- case 4:
534
- i = (Math.floor(r / 3) + Math.floor(n / 2)) % 2 == 0;
535
- break;
536
- case 5:
537
- i = r * n % 2 + r * n % 3 == 0;
538
- break;
539
- case 6:
540
- i = (r * n % 2 + r * n % 3) % 2 == 0;
541
- break;
542
- case 7:
543
- i = ((r + n) % 2 + r * n % 3) % 2 == 0;
544
- break;
545
- }
546
- i && (e.modules[n][r] = !e.modules[n][r]);
547
- }
548
- }
549
- function C(e) {
550
- let t = e.size, n = 0, r = e.modules;
551
- for (let e = 0; e < t; e++) {
552
- let i = !1, a = 0;
553
- for (let o = 0; o < t; o++) r[e][o] === i ? (a++, a === 5 ? n += 3 : a > 5 && n++) : (i = r[e][o], a = 1);
554
- }
555
- for (let e = 0; e < t; e++) {
556
- let i = !1, a = 0;
557
- for (let o = 0; o < t; o++) r[o][e] === i ? (a++, a === 5 ? n += 3 : a > 5 && n++) : (i = r[o][e], a = 1);
558
- }
559
- for (let e = 0; e < t - 1; e++) for (let i = 0; i < t - 1; i++) {
560
- let t = r[e][i];
561
- t === r[e][i + 1] && t === r[e + 1][i] && t === r[e + 1][i + 1] && (n += 3);
562
- }
563
- let i = 0;
564
- for (let e = 0; e < t; e++) for (let n = 0; n < t; n++) r[e][n] && i++;
565
- let a = t * t, o = Math.ceil(Math.abs(i * 20 - a * 10) / a) - 1;
566
- return n += o * 10, n;
567
- }
568
- function w(e, r = "M") {
569
- let i = h(e).length, a = t;
570
- for (; a <= n && !f(i, a, r);) a++;
571
- if (a > n) throw Error("Data too long for a QR code");
572
- let o = p(m(e, a, r), a, r), s = new g(a);
573
- v(s, a, r), x(s, o);
574
- let c = 0, l = Infinity;
575
- for (let e = 0; e < 8; e++) {
576
- S(s, e), y(s, r, e, !1);
577
- let t = C(s);
578
- t < l && (l = t, c = e), S(s, e);
579
- }
580
- return S(s, c), y(s, r, c, !1), s.modules;
581
- }
582
- //#endregion
583
- export { w as encode };
1
+ var e={L:{ordinal:0,formatBits:1},M:{ordinal:1,formatBits:0},Q:{ordinal:2,formatBits:3},H:{ordinal:3,formatBits:2}},t=1,n=40,r=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],i=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]];function a(e){let t=(16*e+128)*e+64;if(e>=2){let n=Math.floor(e/7)+2;t-=(25*n-10)*n-55,e>=7&&(t-=36)}return t}function o(t,n){let o=e[n].ordinal;return Math.floor(a(t)/8)-r[o][t]*i[o][t]}function s(e,t){let n=0;for(let r=7;r>=0;r--)n=n<<1^(n>>>7)*285,n^=(t>>>r&1)*e;return n&255}function c(e){let t=Array.from({length:e}).fill(0);t[e-1]=1;let n=1;for(let r=0;r<e;r++){for(let e=0;e<t.length;e++)t[e]=s(t[e],n),e+1<t.length&&(t[e]=t[e]^t[e+1]);n=s(n,2)}return t}function l(e,t){let n=Array.from({length:t.length}).fill(0);for(let r of e){let e=r^n.shift();n.push(0);for(let r=0;r<n.length;r++)n[r]=n[r]^s(t[r],e)}return n}function u(e,t,n){for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function d(e,t){let n=[];u(4,4,n);let r=t<=9?8:16;u(e.length,r,n);for(let t of e)u(t,8,n);return n}function f(e,t,n){return 4+(t<=9?8:16)+e*8<=o(t,n)*8}function p(t,n,o){let s=e[o].ordinal,u=i[s][n],d=r[s][n],f=Math.floor(a(n)/8),p=u-f%u,m=Math.floor(f/u),h=[],g=c(d),_=0;for(let e=0;e<u;e++){let n=m-d+(e<p?0:1),r=t.slice(_,_+n);_+=n;let i=l(r,g);e<p&&r.push(0),h.push(r.concat(i))}let v=[];for(let e=0;e<h[0].length;e++)for(let t=0;t<h.length;t++)(e!==m-d||t>=p)&&v.push(h[t][e]);return v}function m(e,t,n){let r=d(h(e),t),i=o(t,n)*8;u(0,Math.min(4,i-r.length),r),u(0,(8-r.length%8)%8,r);let a=[];for(let e=0;e<r.length;e+=8){let t=0;for(let n=0;n<8;n++)t=t<<1|r[e+n];a.push(t)}for(let e=236;a.length<i/8;e^=253)a.push(e);return a}function h(e){return typeof TextEncoder<`u`?Array.from(new TextEncoder().encode(e)):Array.from(unescape(encodeURIComponent(e)),e=>e.charCodeAt(0))}var g=class{size;modules;isFunction;constructor(e){this.size=e*4+17,this.modules=Array.from({length:this.size},()=>Array.from({length:this.size}).fill(!1)),this.isFunction=Array.from({length:this.size},()=>Array.from({length:this.size}).fill(!1))}set(e,t,n,r){this.modules[t][e]=n,this.isFunction[t][e]=r}drawFinder(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){let i=e+r,a=t+n;if(i<0||i>=this.size||a<0||a>=this.size)continue;let o=Math.max(Math.abs(r),Math.abs(n));this.set(i,a,o!==2&&o!==4,!0)}}drawAlignment(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.set(e+r,t+n,Math.max(Math.abs(r),Math.abs(n))!==1,!0)}isFn(e,t){return this.isFunction[t][e]}};function _(e){if(e===1)return[];let t=Math.floor(e/7)+2,n=Math.floor((e*8+t*3+5)/(t*4-4))*2,r=[6];for(let i=e*4+10;r.length<t;i-=n)r.splice(1,0,i);return r}function v(e,t,n){let r=e.size;for(let t=0;t<r;t++)e.set(6,t,t%2==0,!0),e.set(t,6,t%2==0,!0);e.drawFinder(3,3),e.drawFinder(r-4,3),e.drawFinder(3,r-4);let i=_(t);for(let t=0;t<i.length;t++)for(let n=0;n<i.length;n++)t===0&&n===0||t===0&&n===i.length-1||t===i.length-1&&n===0||e.drawAlignment(i[t],i[n]);y(e,n,0,!0),b(e,t)}function y(t,n,r,i){let a=t.size,o=e[n].formatBits<<3|r,s=o;for(let e=0;e<10;e++)s=s<<1^(s>>>9)*1335;let c=(o<<10|s)^21522,l=e=>i?!1:(c>>>e&1)!=0;for(let e=0;e<=5;e++)t.set(8,e,l(e),!0);t.set(8,7,l(6),!0),t.set(8,8,l(7),!0),t.set(7,8,l(8),!0);for(let e=9;e<15;e++)t.set(14-e,8,l(e),!0);for(let e=0;e<8;e++)t.set(a-1-e,8,l(e),!0);for(let e=8;e<15;e++)t.set(8,a-15+e,l(e),!0);t.set(8,a-8,!0,!0)}function b(e,t){if(t<7)return;let n=t;for(let e=0;e<12;e++)n=n<<1^(n>>>11)*7973;let r=t<<12|n;for(let t=0;t<18;t++){let n=(r>>>t&1)!=0,i=e.size-11+t%3,a=Math.floor(t/3);e.set(i,a,n,!0),e.set(a,i,n,!0)}}function x(e,t){let n=e.size,r=0;for(let i=n-1;i>=1;i-=2){let a=i===6?5:i;for(let i=0;i<n;i++)for(let o=0;o<2;o++){let s=a-o,c=a+1&2?i:n-1-i;if(!e.isFn(s,c)&&r<t.length*8){let n=(t[r>>>3]>>>7-(r&7)&1)!=0;e.set(s,c,n,!1),r++}}}}function S(e,t){for(let n=0;n<e.size;n++)for(let r=0;r<e.size;r++){if(e.isFn(r,n))continue;let i=!1;switch(t){case 0:i=(r+n)%2==0;break;case 1:i=n%2==0;break;case 2:i=r%3==0;break;case 3:i=(r+n)%3==0;break;case 4:i=(Math.floor(r/3)+Math.floor(n/2))%2==0;break;case 5:i=r*n%2+r*n%3==0;break;case 6:i=(r*n%2+r*n%3)%2==0;break;case 7:i=((r+n)%2+r*n%3)%2==0;break}i&&(e.modules[n][r]=!e.modules[n][r])}}function C(e){let t=e.size,n=0,r=e.modules;for(let e=0;e<t;e++){let i=!1,a=0;for(let o=0;o<t;o++)r[e][o]===i?(a++,a===5?n+=3:a>5&&n++):(i=r[e][o],a=1)}for(let e=0;e<t;e++){let i=!1,a=0;for(let o=0;o<t;o++)r[o][e]===i?(a++,a===5?n+=3:a>5&&n++):(i=r[o][e],a=1)}for(let e=0;e<t-1;e++)for(let i=0;i<t-1;i++){let t=r[e][i];t===r[e][i+1]&&t===r[e+1][i]&&t===r[e+1][i+1]&&(n+=3)}let i=0;for(let e=0;e<t;e++)for(let n=0;n<t;n++)r[e][n]&&i++;let a=t*t,o=Math.ceil(Math.abs(i*20-a*10)/a)-1;return n+=o*10,n}function w(e,r=`M`){let i=h(e).length,a=t;for(;a<=n&&!f(i,a,r);)a++;if(a>n)throw Error(`Data too long for a QR code`);let o=p(m(e,a,r),a,r),s=new g(a);v(s,a,r),x(s,o);let c=0,l=1/0;for(let e=0;e<8;e++){S(s,e),y(s,r,e,!1);let t=C(s);t<l&&(l=t,c=e),S(s,e)}return S(s,c),y(s,r,c,!1),s.modules}export{w as encode};
@@ -1,41 +1 @@
1
- "use client";
2
-
3
- import { encode as e } from "./encode.js";
4
- import t from "./qr-code.module.js";
5
- import { cn as n, useSignals as r } from "@cascivo/core";
6
- import { builtin as i, t as a } from "@cascivo/i18n";
7
- import { jsx as o, jsxs as s } from "react/jsx-runtime";
8
- //#region ../components/src/qr-code/qr-code.tsx
9
- var c = 4;
10
- function l({ value: l, size: u = 128, errorCorrection: d = "M", radius: f, fill: p = "currentColor", background: m = "transparent", label: h, className: g, style: _, ...v }) {
11
- if (r(), !l) return null;
12
- let y = e(l, d), b = y.length + c * 2, x = "";
13
- for (let e = 0; e < y.length; e++) for (let t = 0; t < y.length; t++) y[e][t] && (x += `M${t + c},${e + c}h1v1h-1z`);
14
- return /* @__PURE__ */ o("div", {
15
- className: n(t.qrCode, g),
16
- style: {
17
- inlineSize: u,
18
- blockSize: u,
19
- borderRadius: f,
20
- ..._
21
- },
22
- ...v,
23
- children: /* @__PURE__ */ s("svg", {
24
- className: t.svg,
25
- role: "img",
26
- "aria-label": h ?? a(i.qrCode.label),
27
- viewBox: `0 0 ${b} ${b}`,
28
- shapeRendering: "crispEdges",
29
- children: [/* @__PURE__ */ o("rect", {
30
- width: b,
31
- height: b,
32
- fill: m
33
- }), /* @__PURE__ */ o("path", {
34
- d: x,
35
- fill: p
36
- })]
37
- })
38
- });
39
- }
40
- //#endregion
41
- export { l as QrCode };
1
+ "use client";import{encode as e}from"./encode.js";import t from"./qr-code.module.js";import{cn as n,useSignals as r}from"@cascivo/core";import{builtin as i,t as a}from"@cascivo/i18n";import{jsx as o,jsxs as s}from"react/jsx-runtime";var c=4;function l({value:l,size:u=128,errorCorrection:d=`M`,radius:f,fill:p=`currentColor`,background:m=`transparent`,label:h,ariaLabel:g,className:_,style:v,...y}){if(r(),!l)return null;let b=e(l,d),x=b.length+c*2,S=``;for(let e=0;e<b.length;e++)for(let t=0;t<b.length;t++)b[e][t]&&(S+=`M${t+c},${e+c}h1v1h-1z`);return o(`div`,{className:n(t.qrCode,_),style:{inlineSize:u,blockSize:u,borderRadius:f,...v},...y,children:s(`svg`,{className:t.svg,role:`img`,"aria-label":g??h??a(i.qrCode.label),viewBox:`0 0 ${x} ${x}`,shapeRendering:`crispEdges`,children:[o(`rect`,{width:x,height:x,fill:m}),o(`path`,{d:S,fill:p})]})})}export{l as QrCode};
@@ -1,7 +1,2 @@
1
1
  import './qr-code.css';
2
- var e = {
3
- qrCode: "_qrCode_1p9u3_2",
4
- svg: "_svg_1p9u3_8"
5
- };
6
- //#endregion
7
- export { e as default };
2
+ var e={qrCode:`_qrCode_1p9u3_2`,svg:`_svg_1p9u3_8`};export{e as default};
@@ -1,27 +1 @@
1
- import e from "./radial-progress.module.js";
2
- import { useId as t } from "react";
3
- import { jsx as n } from "react/jsx-runtime";
4
- //#region ../components/src/radial-progress/radial-progress.tsx
5
- function r({ value: r, size: i = "md", variant: a = "primary", children: o, className: s, ariaLabel: c, ...l }) {
6
- let u = Math.min(100, Math.max(0, r)), d = t();
7
- return /* @__PURE__ */ n("div", {
8
- role: "progressbar",
9
- "aria-valuenow": u,
10
- "aria-valuemin": 0,
11
- "aria-valuemax": 100,
12
- "aria-labelledby": c ?? l["aria-label"] ? void 0 : d,
13
- className: [e.radialProgress, s].filter(Boolean).join(" "),
14
- "data-size": i,
15
- "data-variant": a,
16
- style: { "--cascivo-radial-progress": u },
17
- ...l,
18
- ...c === void 0 ? {} : { "aria-label": c },
19
- children: /* @__PURE__ */ n("span", {
20
- id: d,
21
- className: e.label,
22
- children: o ?? `${u}%`
23
- })
24
- });
25
- }
26
- //#endregion
27
- export { r as RadialProgress };
1
+ import e from"./radial-progress.module.js";import{useId as t}from"react";import{jsx as n}from"react/jsx-runtime";function r({value:r,size:i=`md`,variant:a=`primary`,children:o,className:s,ariaLabel:c,label:l,...u}){let d=Math.min(100,Math.max(0,r)),f=t(),p=c??l;return n(`div`,{role:`progressbar`,"aria-valuenow":d,"aria-valuemin":0,"aria-valuemax":100,"aria-labelledby":p??u[`aria-label`]?void 0:f,className:[e.radialProgress,s].filter(Boolean).join(` `),"data-size":i,"data-variant":a,style:{"--cascivo-radial-progress":d},...u,...p===void 0?{}:{"aria-label":p},children:n(`span`,{id:f,className:e.label,children:o??`${d}%`})})}export{r as RadialProgress};
@@ -1,7 +1,2 @@
1
1
  import './radial-progress.css';
2
- var e = {
3
- radialProgress: "_radialProgress_1z011_2",
4
- label: "_label_1z011_51"
5
- };
6
- //#endregion
7
- export { e as default };
2
+ var e={radialProgress:`_radialProgress_1z011_2`,label:`_label_1z011_51`};export{e as default};