@helpdice/ui 1.7.5 → 1.7.8

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 (304) hide show
  1. package/dist/CurrencyInput/index.js +2981 -0
  2. package/dist/LinearProgress/index.d.ts +2 -0
  3. package/dist/{css-baseline → LinearProgress}/index.js +25 -317
  4. package/dist/LinearProgress/linear-progress.d.ts +9 -0
  5. package/dist/Loadable/index.js +570 -0
  6. package/dist/PhoneInput/index.js +2136 -314
  7. package/dist/Placeholder/index.js +2116 -254
  8. package/dist/auto-complete/index.js +2145 -652
  9. package/dist/avatar/index.js +2119 -333
  10. package/dist/badge/index.js +2117 -331
  11. package/dist/breadcrumbs/index.js +2126 -340
  12. package/dist/button/button.compact.d.ts +2 -0
  13. package/dist/button/index.js +2214 -342
  14. package/dist/button-dropdown/index.js +2120 -291
  15. package/dist/button-group/index.js +2117 -331
  16. package/dist/capacity/index.js +2117 -331
  17. package/dist/card/index.js +2127 -298
  18. package/dist/checkbox/index.js +2119 -290
  19. package/dist/code/index.js +2116 -297
  20. package/dist/collapse/index.js +2117 -475
  21. package/dist/description/index.js +2117 -331
  22. package/dist/display/index.js +2117 -331
  23. package/dist/divider/index.js +2118 -332
  24. package/dist/dot/index.js +2117 -331
  25. package/dist/drawer/index.js +2129 -439
  26. package/dist/fieldset/index.js +2121 -354
  27. package/dist/grid/index.js +2119 -333
  28. package/dist/image/index.js +2122 -336
  29. package/dist/index.d.ts +2 -14
  30. package/dist/index.js +3175 -1879
  31. package/dist/input/index.js +2125 -296
  32. package/dist/keyboard/index.js +2116 -297
  33. package/dist/link/index.js +2117 -331
  34. package/dist/list/index.js +2119 -333
  35. package/dist/loading/index.js +2117 -331
  36. package/dist/menu/index.js +77 -45
  37. package/dist/modal/index.js +2145 -452
  38. package/dist/note/index.js +2117 -331
  39. package/dist/page/index.js +2117 -331
  40. package/dist/pagination/index.js +2118 -351
  41. package/dist/popover/index.js +2123 -354
  42. package/dist/progress/index.js +2117 -331
  43. package/dist/radio/index.js +2120 -334
  44. package/dist/rating/index.js +2118 -332
  45. package/dist/row/index.js +2115 -296
  46. package/dist/select/index.js +2151 -688
  47. package/dist/slider/index.js +2123 -356
  48. package/dist/snippet/index.js +2118 -421
  49. package/dist/spacer/index.js +2115 -296
  50. package/dist/spinner/index.js +2117 -331
  51. package/dist/table/index.js +2341 -754
  52. package/dist/tabs/index.js +2123 -344
  53. package/dist/tag/index.js +2116 -254
  54. package/dist/text/index.js +2116 -297
  55. package/dist/textarea/index.js +2117 -288
  56. package/dist/toggle/index.js +2117 -331
  57. package/dist/tooltip/index.js +2120 -351
  58. package/dist/tree/index.js +2123 -459
  59. package/dist/use-input/index.js +2122 -24
  60. package/dist/use-modal/index.js +2122 -24
  61. package/dist/use-network-status/index.d.ts +2 -0
  62. package/dist/{use-current-state → use-network-status}/index.js +22 -15
  63. package/dist/use-network-status/use-netowork-status.d.ts +4 -0
  64. package/dist/use-scale/index.js +2115 -296
  65. package/dist/use-tabs/index.js +2122 -24
  66. package/dist/user/index.js +2123 -337
  67. package/esm/CurrencyInput/components/CurrencyInput.js +342 -0
  68. package/esm/CurrencyInput/components/CurrencyInputProps.js +1 -0
  69. package/esm/CurrencyInput/components/utils/addSeparators.js +7 -0
  70. package/esm/CurrencyInput/components/utils/cleanValue.js +69 -0
  71. package/esm/CurrencyInput/components/utils/escapeRegExp.js +8 -0
  72. package/esm/CurrencyInput/components/utils/fixedDecimalValue.js +29 -0
  73. package/esm/CurrencyInput/components/utils/formatValue.js +124 -0
  74. package/esm/CurrencyInput/components/utils/getLocaleConfig.js +47 -0
  75. package/esm/CurrencyInput/components/utils/getSuffix.js +10 -0
  76. package/esm/CurrencyInput/components/utils/index.js +8 -0
  77. package/esm/CurrencyInput/components/utils/isNumber.js +3 -0
  78. package/esm/CurrencyInput/components/utils/padTrimValue.js +27 -0
  79. package/esm/CurrencyInput/components/utils/parseAbbrValue.js +43 -0
  80. package/esm/CurrencyInput/components/utils/removeInvalidChars.js +10 -0
  81. package/esm/CurrencyInput/components/utils/removeSeparators.js +10 -0
  82. package/esm/CurrencyInput/components/utils/repositionCursor.js +35 -0
  83. package/esm/CurrencyInput/index.js +4 -0
  84. package/esm/LinearProgress/index.d.ts +2 -0
  85. package/esm/LinearProgress/index.js +2 -0
  86. package/esm/LinearProgress/linear-progress.d.ts +9 -0
  87. package/esm/LinearProgress/linear-progress.js +28 -0
  88. package/esm/Loadable/index.js +2 -0
  89. package/esm/PhoneInput/phone.js +22 -19
  90. package/esm/auto-complete/auto-complete-dropdown.js +1 -3
  91. package/esm/auto-complete/auto-complete-item.js +1 -3
  92. package/esm/auto-complete/auto-complete-searching.js +1 -1
  93. package/esm/auto-complete/auto-complete.js +1 -1
  94. package/esm/avatar/avatar-group.js +1 -2
  95. package/esm/avatar/avatar.js +1 -2
  96. package/esm/badge/badge.js +1 -2
  97. package/esm/breadcrumbs/breadcrumbs-item.js +1 -1
  98. package/esm/breadcrumbs/breadcrumbs-separator.js +1 -1
  99. package/esm/breadcrumbs/breadcrumbs.js +1 -1
  100. package/esm/button/button-icon.js +1 -1
  101. package/esm/button/button.compact.d.ts +2 -0
  102. package/esm/button/button.compact.js +94 -50
  103. package/esm/button/button.js +1 -2
  104. package/esm/button/utils.js +1 -1
  105. package/esm/button-dropdown/button-dropdown-item.js +1 -1
  106. package/esm/button-dropdown/button-dropdown.js +1 -2
  107. package/esm/button-group/button-group.js +1 -2
  108. package/esm/capacity/capacity.js +1 -2
  109. package/esm/card/card-content.js +1 -1
  110. package/esm/card/card-footer.js +1 -2
  111. package/esm/card/card.js +1 -2
  112. package/esm/carousal/Arrow.js +18 -0
  113. package/esm/carousal/Indicator.js +20 -0
  114. package/esm/carousal/Thumbs.js +302 -0
  115. package/esm/carousal/animations.js +162 -0
  116. package/esm/carousal/index.js +683 -0
  117. package/esm/carousal/types.js +1 -0
  118. package/esm/carousal/utils.js +49 -0
  119. package/esm/checkbox/checkbox-group.js +1 -1
  120. package/esm/checkbox/checkbox.icon.js +1 -1
  121. package/esm/checkbox/checkbox.js +1 -2
  122. package/esm/code/code.js +1 -1
  123. package/esm/collapse/collapse-group.js +1 -2
  124. package/esm/collapse/collapse.js +1 -4
  125. package/esm/description/description.js +1 -2
  126. package/esm/display/display.js +1 -2
  127. package/esm/divider/divider.js +1 -2
  128. package/esm/dot/dot.js +1 -2
  129. package/esm/drawer/drawer-wrapper.js +1 -3
  130. package/esm/drawer/drawer.js +1 -1
  131. package/esm/fieldset/fieldset-content.js +1 -1
  132. package/esm/fieldset/fieldset-footer.js +1 -1
  133. package/esm/fieldset/fieldset-group.js +1 -3
  134. package/esm/fieldset/fieldset-title.js +1 -1
  135. package/esm/fieldset/fieldset.js +1 -2
  136. package/esm/grid/basic-item.js +1 -2
  137. package/esm/grid/grid-container.js +1 -1
  138. package/esm/grid/grid.js +1 -1
  139. package/esm/image/image-browser.js +1 -2
  140. package/esm/image/image.js +1 -2
  141. package/esm/image/image.skeleton.js +1 -1
  142. package/esm/index.d.ts +2 -14
  143. package/esm/index.js +5 -9
  144. package/esm/input/input-block-label.js +1 -1
  145. package/esm/input/input-icon-clear.js +1 -2
  146. package/esm/input/input-label.js +1 -1
  147. package/esm/input/input.js +1 -2
  148. package/esm/keyboard/keyboard.js +1 -1
  149. package/esm/link/link.js +1 -2
  150. package/esm/list/list-item.js +1 -2
  151. package/esm/loading/loading.js +1 -2
  152. package/esm/modal/modal-action.js +1 -2
  153. package/esm/modal/modal-actions.js +1 -1
  154. package/esm/modal/modal-content.js +1 -1
  155. package/esm/modal/modal-subtitle.js +1 -1
  156. package/esm/modal/modal-title.js +1 -1
  157. package/esm/modal/modal-wrapper.js +1 -3
  158. package/esm/modal/modal.js +1 -1
  159. package/esm/note/note.js +1 -2
  160. package/esm/page/page-header.js +1 -1
  161. package/esm/page/page.js +1 -1
  162. package/esm/pagination/pagination-item.js +1 -2
  163. package/esm/pagination/pagination.js +1 -1
  164. package/esm/popover/popover-item.js +1 -2
  165. package/esm/popover/popover.js +1 -1
  166. package/esm/progress/progress.js +1 -2
  167. package/esm/radio/radio-description.js +1 -1
  168. package/esm/radio/radio-group.js +1 -1
  169. package/esm/radio/radio.js +1 -2
  170. package/esm/rating/rating.js +1 -2
  171. package/esm/row/row.js +1 -1
  172. package/esm/select/select-dropdown.js +1 -3
  173. package/esm/select/select-icon-clear.js +1 -1
  174. package/esm/select/select-multiple-value.js +1 -1
  175. package/esm/select/select-option.js +1 -3
  176. package/esm/select/select.js +9 -12
  177. package/esm/slider/slider-dot.js +1 -2
  178. package/esm/slider/slider-mark.js +1 -1
  179. package/esm/slider/slider.js +1 -3
  180. package/esm/snippet/snippet.js +1 -3
  181. package/esm/spinner/spinner.js +1 -2
  182. package/esm/table/table-body.js +1 -2
  183. package/esm/table/table-head.js +3 -2
  184. package/esm/tabs/tabs-item.js +1 -2
  185. package/esm/tabs/tabs.js +1 -3
  186. package/esm/tag/tag.js +1 -1
  187. package/esm/text/child.js +1 -1
  188. package/esm/textarea/textarea.js +1 -2
  189. package/esm/toggle/toggle.js +1 -2
  190. package/esm/tooltip/tooltip-content.js +1 -3
  191. package/esm/tooltip/tooltip-icon.js +1 -1
  192. package/esm/tooltip/tooltip.js +1 -1
  193. package/esm/tree/tree-file-icon.js +1 -1
  194. package/esm/tree/tree-file.js +1 -2
  195. package/esm/tree/tree-folder-icon.js +1 -1
  196. package/esm/tree/tree-folder.js +1 -3
  197. package/esm/tree/tree-status-icon.js +1 -1
  198. package/esm/tree/tree.js +1 -1
  199. package/esm/use-input/use-input.js +1 -1
  200. package/esm/use-modal/use-modal.js +1 -1
  201. package/esm/use-network-status/index.d.ts +2 -0
  202. package/esm/use-network-status/index.js +2 -0
  203. package/esm/use-network-status/use-netowork-status.d.ts +4 -0
  204. package/esm/use-network-status/use-netowork-status.js +29 -0
  205. package/esm/use-scale/with-scale.js +1 -1
  206. package/esm/use-tabs/use-tabs.js +1 -1
  207. package/esm/user/user.js +1 -2
  208. package/esm/utils/use-context-state/use-context-state.js +1 -1
  209. package/esm/utils/use-drag.js +1 -1
  210. package/package.json +12 -4
  211. package/dist/css-baseline/css-baseline.d.ts +0 -9
  212. package/dist/css-baseline/index.d.ts +0 -1
  213. package/dist/shared/backdrop.d.ts +0 -14
  214. package/dist/shared/css-transition.d.ts +0 -13
  215. package/dist/shared/dropdown.d.ts +0 -9
  216. package/dist/shared/ellipsis.d.ts +0 -6
  217. package/dist/shared/expand.d.ts +0 -7
  218. package/dist/shared/highlight.d.ts +0 -13
  219. package/dist/ui-provider/index.d.ts +0 -3
  220. package/dist/ui-provider/index.js +0 -2186
  221. package/dist/ui-provider/theme-provider.d.ts +0 -8
  222. package/dist/ui-provider/ui-provider.d.ts +0 -8
  223. package/dist/use-all-themes/all-themes-context.d.ts +0 -7
  224. package/dist/use-all-themes/index.d.ts +0 -3
  225. package/dist/use-all-themes/index.js +0 -311
  226. package/dist/use-classes/index.d.ts +0 -2
  227. package/dist/use-classes/index.js +0 -48
  228. package/dist/use-classes/use-classes.d.ts +0 -4
  229. package/dist/use-current-state/index.d.ts +0 -2
  230. package/dist/use-current-state/use-current-state.d.ts +0 -4
  231. package/dist/use-media-query/index.d.ts +0 -3
  232. package/dist/use-media-query/index.js +0 -444
  233. package/dist/use-media-query/use-media-query.d.ts +0 -12
  234. package/dist/use-theme/index.d.ts +0 -2
  235. package/dist/use-theme/index.js +0 -309
  236. package/dist/use-theme/theme-context.d.ts +0 -4
  237. package/dist/use-toasts/helpers.d.ts +0 -18
  238. package/dist/use-toasts/index.d.ts +0 -3
  239. package/dist/use-toasts/index.js +0 -204
  240. package/dist/use-toasts/toast-container.d.ts +0 -3
  241. package/dist/use-toasts/toast-item.d.ts +0 -8
  242. package/dist/use-toasts/use-toast.d.ts +0 -40
  243. package/dist/utils/use-current-state.d.ts +0 -2
  244. package/dist/utils/use-dom-observer.d.ts +0 -3
  245. package/dist/utils/use-hd-ui-context.d.ts +0 -16
  246. package/dist/utils/use-previous.d.ts +0 -2
  247. package/esm/captcha/index.js +0 -128
  248. package/esm/css-baseline/css-baseline.d.ts +0 -9
  249. package/esm/css-baseline/css-baseline.js +0 -23
  250. package/esm/css-baseline/index.d.ts +0 -1
  251. package/esm/css-baseline/index.js +0 -2
  252. package/esm/shared/backdrop.d.ts +0 -14
  253. package/esm/shared/backdrop.js +0 -66
  254. package/esm/shared/css-transition.d.ts +0 -13
  255. package/esm/shared/css-transition.js +0 -65
  256. package/esm/shared/dropdown.d.ts +0 -9
  257. package/esm/shared/dropdown.js +0 -99
  258. package/esm/shared/ellipsis.d.ts +0 -6
  259. package/esm/shared/ellipsis.js +0 -13
  260. package/esm/shared/expand.d.ts +0 -7
  261. package/esm/shared/expand.js +0 -86
  262. package/esm/shared/highlight.d.ts +0 -13
  263. package/esm/shared/highlight.js +0 -46
  264. package/esm/ui-provider/index.d.ts +0 -3
  265. package/esm/ui-provider/index.js +0 -4
  266. package/esm/ui-provider/theme-provider.d.ts +0 -8
  267. package/esm/ui-provider/theme-provider.js +0 -45
  268. package/esm/ui-provider/ui-provider.d.ts +0 -8
  269. package/esm/ui-provider/ui-provider.js +0 -55
  270. package/esm/use-all-themes/all-themes-context.d.ts +0 -7
  271. package/esm/use-all-themes/all-themes-context.js +0 -11
  272. package/esm/use-all-themes/index.d.ts +0 -3
  273. package/esm/use-all-themes/index.js +0 -2
  274. package/esm/use-classes/index.d.ts +0 -2
  275. package/esm/use-classes/index.js +0 -2
  276. package/esm/use-classes/use-classes.d.ts +0 -4
  277. package/esm/use-classes/use-classes.js +0 -34
  278. package/esm/use-current-state/index.d.ts +0 -2
  279. package/esm/use-current-state/index.js +0 -2
  280. package/esm/use-current-state/use-current-state.d.ts +0 -4
  281. package/esm/use-current-state/use-current-state.js +0 -23
  282. package/esm/use-media-query/index.d.ts +0 -3
  283. package/esm/use-media-query/index.js +0 -2
  284. package/esm/use-media-query/use-media-query.d.ts +0 -12
  285. package/esm/use-media-query/use-media-query.js +0 -81
  286. package/esm/use-theme/index.d.ts +0 -2
  287. package/esm/use-theme/index.js +0 -2
  288. package/esm/use-theme/theme-context.d.ts +0 -4
  289. package/esm/use-theme/theme-context.js +0 -9
  290. package/esm/use-toasts/helpers.d.ts +0 -18
  291. package/esm/use-toasts/helpers.js +0 -68
  292. package/esm/use-toasts/index.d.ts +0 -3
  293. package/esm/use-toasts/index.js +0 -2
  294. package/esm/use-toasts/toast-container.d.ts +0 -3
  295. package/esm/use-toasts/toast-container.js +0 -120
  296. package/esm/use-toasts/toast-item.d.ts +0 -8
  297. package/esm/use-toasts/toast-item.js +0 -45
  298. package/esm/use-toasts/use-toast.d.ts +0 -40
  299. package/esm/use-toasts/use-toast.js +0 -103
  300. package/esm/utils/use-current-state.d.ts +0 -2
  301. package/esm/utils/use-current-state.js +0 -2
  302. package/esm/utils/use-dom-observer.d.ts +0 -3
  303. package/esm/utils/use-hd-ui-context.d.ts +0 -16
  304. package/esm/utils/use-previous.d.ts +0 -2
@@ -0,0 +1,2 @@
1
+ import LinearProgress from "./linear-progress";
2
+ export default LinearProgress;
@@ -547,322 +547,30 @@ function requireStyle () {
547
547
  var styleExports = requireStyle();
548
548
  var _JSXStyle = /*@__PURE__*/getDefaultExportFromCjs(styleExports);
549
549
 
550
- function _defineProperty(e, r, t) {
551
- return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
552
- value: t,
553
- enumerable: true,
554
- configurable: true,
555
- writable: true
556
- }) : e[r] = t, e;
557
- }
558
- function ownKeys(e, r) {
559
- var t = Object.keys(e);
560
- if (Object.getOwnPropertySymbols) {
561
- var o = Object.getOwnPropertySymbols(e);
562
- r && (o = o.filter(function (r) {
563
- return Object.getOwnPropertyDescriptor(e, r).enumerable;
564
- })), t.push.apply(t, o);
565
- }
566
- return t;
567
- }
568
- function _objectSpread2(e) {
569
- for (var r = 1; r < arguments.length; r++) {
570
- var t = null != arguments[r] ? arguments[r] : {};
571
- r % 2 ? ownKeys(Object(t), true).forEach(function (r) {
572
- _defineProperty(e, r, t[r]);
573
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
574
- Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
575
- });
576
- }
577
- return e;
578
- }
579
- function _toPrimitive(t, r) {
580
- if ("object" != typeof t || !t) return t;
581
- var e = t[Symbol.toPrimitive];
582
- if (void 0 !== e) {
583
- var i = e.call(t, r);
584
- if ("object" != typeof i) return i;
585
- throw new TypeError("@@toPrimitive must return a primitive value.");
586
- }
587
- return ("string" === r ? String : Number)(t);
588
- }
589
- function _toPropertyKey(t) {
590
- var i = _toPrimitive(t, "string");
591
- return "symbol" == typeof i ? i : i + "";
592
- }
593
- function _typeof(o) {
594
- "@babel/helpers - typeof";
595
-
596
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
597
- return typeof o;
598
- } : function (o) {
599
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
600
- }, _typeof(o);
601
- }
602
-
603
- var defaultFont = {
604
- sans: '"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif',
605
- mono: 'Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace',
606
- prism: 'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,"Liberation Mono", "Courier New", monospace'
607
- };
608
- var defaultBreakpoints = {
609
- xs: {
610
- min: '0',
611
- max: '650px'
612
- },
613
- sm: {
614
- min: '650px',
615
- max: '900px'
616
- },
617
- md: {
618
- min: '900px',
619
- max: '1280px'
620
- },
621
- lg: {
622
- min: '1280px',
623
- max: '1920px'
624
- },
625
- xl: {
626
- min: '1920px',
627
- max: '10000px'
628
- }
629
- };
630
- var defaultLayout = {
631
- gap: '16pt',
632
- gapNegative: '-16pt',
633
- gapHalf: '8pt',
634
- gapHalfNegative: '-8pt',
635
- gapQuarter: '4pt',
636
- gapQuarterNegative: '-4pt',
637
- pageMargin: '16pt',
638
- pageWidth: '750pt',
639
- pageWidthWithMargin: '782pt',
640
- breakpointMobile: defaultBreakpoints.xs.max,
641
- breakpointTablet: defaultBreakpoints.sm.max,
642
- radius: '6px',
643
- unit: '16px'
644
- };
645
-
646
- var palette$1 = {
647
- accents_1: '#fafafa',
648
- accents_2: '#eaeaea',
649
- accents_3: '#999',
650
- accents_4: '#888',
651
- accents_5: '#666',
652
- accents_6: '#444',
653
- accents_7: '#333',
654
- accents_8: '#111',
655
- background: '#fff',
656
- foreground: '#000',
657
- selection: '#79ffe1',
658
- secondary: '#666',
659
- code: '#f81ce5',
660
- border: '#eaeaea',
661
- error: '#e00',
662
- errorLight: '#ff1a1a',
663
- errorLighter: '#f7d4d6',
664
- errorDark: '#c50000',
665
- success: '#0070f3',
666
- successLight: '#3291ff',
667
- successLighter: '#d3e5ff',
668
- successDark: '#0761d1',
669
- warning: '#f5a623',
670
- warningLight: '#f7b955',
671
- warningLighter: '#ffefcf',
672
- warningDark: '#ab570a',
673
- cyan: '#50e3c2',
674
- cyanLighter: '#aaffec',
675
- cyanLight: '#79ffe1',
676
- cyanDark: '#29bc9b',
677
- violet: '#7928ca',
678
- violetLighter: '#e3d7fc',
679
- violetLight: '#8a63d2',
680
- violetDark: '#4c2889',
681
- purple: '#f81ce5',
682
- alert: '#ff0080',
683
- magenta: '#eb367f',
684
- link: '#0070f3'
685
- };
686
- var expressiveness$1 = {
687
- linkStyle: 'none',
688
- linkHoverStyle: 'none',
689
- dropdownBoxShadow: '0 4px 4px 0 rgba(0, 0, 0, 0.02)',
690
- scrollerStart: 'rgba(255, 255, 255, 1)',
691
- scrollerEnd: 'rgba(255, 255, 255, 0)',
692
- shadowSmall: '0 5px 10px rgba(0, 0, 0, 0.12)',
693
- shadowMedium: '0 8px 30px rgba(0, 0, 0, 0.12)',
694
- shadowLarge: '0 30px 60px rgba(0, 0, 0, 0.12)',
695
- portalOpacity: 0.25
696
- };
697
- var font$1 = defaultFont;
698
- var breakpoints$1 = defaultBreakpoints;
699
- var layout$1 = defaultLayout;
700
- var themes$1 = {
701
- type: 'light',
702
- font: font$1,
703
- layout: layout$1,
704
- palette: palette$1,
705
- breakpoints: breakpoints$1,
706
- expressiveness: expressiveness$1
707
- };
708
-
709
- var palette = {
710
- accents_1: '#111',
711
- accents_2: '#333',
712
- accents_3: '#444',
713
- accents_4: '#666',
714
- accents_5: '#888',
715
- accents_6: '#999',
716
- accents_7: '#eaeaea',
717
- accents_8: '#fafafa',
718
- background: '#000',
719
- foreground: '#fff',
720
- selection: '#f81ce5',
721
- secondary: '#888',
722
- code: '#79ffe1',
723
- border: '#333',
724
- error: '#e00',
725
- errorLighter: '#f7d4d6',
726
- errorLight: '#ff1a1a',
727
- errorDark: '#c50000',
728
- success: '#0070f3',
729
- successLighter: '#d3e5ff',
730
- successLight: '#3291ff',
731
- successDark: '#0761d1',
732
- warning: '#f5a623',
733
- warningLighter: '#ffefcf',
734
- warningLight: '#f7b955',
735
- warningDark: '#ab570a',
736
- cyan: '#50e3c2',
737
- cyanLighter: '#aaffec',
738
- cyanLight: '#79ffe1',
739
- cyanDark: '#29bc9b',
740
- violet: '#7928ca',
741
- violetLighter: '#e3d7fc',
742
- violetLight: '#8a63d2',
743
- violetDark: '#4c2889',
744
- purple: '#f81ce5',
745
- alert: '#ff0080',
746
- magenta: '#eb367f',
747
- link: '#3291ff'
748
- };
749
- var expressiveness = {
750
- linkStyle: 'none',
751
- linkHoverStyle: 'none',
752
- dropdownBoxShadow: '0 0 0 1px #333',
753
- scrollerStart: 'rgba(255, 255, 255, 1)',
754
- scrollerEnd: 'rgba(255, 255, 255, 0)',
755
- shadowSmall: '0 0 0 1px #333',
756
- shadowMedium: '0 0 0 1px #333',
757
- shadowLarge: '0 0 0 1px #333',
758
- portalOpacity: 0.75
759
- };
760
- var font = defaultFont;
761
- var breakpoints = defaultBreakpoints;
762
- var layout = defaultLayout;
763
- var themes = {
764
- type: 'dark',
765
- font: font,
766
- layout: layout,
767
- palette: palette,
768
- breakpoints: breakpoints,
769
- expressiveness: expressiveness
770
- };
771
-
772
- var isObject = function isObject(target) {
773
- return target && _typeof(target) === 'object';
774
- };
775
- var _deepDuplicable = function deepDuplicable(source, target) {
776
- if (!isObject(target) || !isObject(source)) return source;
777
- var sourceKeys = Object.keys(source);
778
- var result = {};
779
- for (var _i = 0, _sourceKeys = sourceKeys; _i < _sourceKeys.length; _i++) {
780
- var key = _sourceKeys[_i];
781
- var sourceValue = source[key];
782
- var targetValue = target[key];
783
- if (Array.isArray(sourceValue) && Array.isArray(targetValue)) {
784
- result[key] = targetValue.concat(sourceValue);
785
- } else if (isObject(sourceValue) && isObject(targetValue)) {
786
- result[key] = _deepDuplicable(sourceValue, _objectSpread2({}, targetValue));
787
- } else if (targetValue) {
788
- result[key] = targetValue;
789
- } else {
790
- result[key] = sourceValue;
791
- }
792
- }
793
- return result;
794
- };
795
- var getPresets = function getPresets() {
796
- return [themes$1, themes];
797
- };
798
- var getPresetStaticTheme = function getPresetStaticTheme() {
799
- return themes$1;
800
- };
801
- var isAvailableThemeType = function isAvailableThemeType(type) {
802
- if (!type) return false;
803
- var presetThemes = getPresets();
804
- var hasType = presetThemes.find(function (theme) {
805
- return theme.type === type;
806
- });
807
- return !hasType;
808
- };
809
- var isPresetTheme = function isPresetTheme(themeOrType) {
810
- if (!themeOrType) return false;
811
- var isType = typeof themeOrType === 'string';
812
- var type = isType ? themeOrType : themeOrType.type;
813
- return !isAvailableThemeType(type);
814
- };
815
- var hasUserCustomTheme = function hasUserCustomTheme() {
816
- var themes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
817
- return !!themes.find(function (item) {
818
- return isAvailableThemeType(item.type);
819
- });
820
- };
821
- var create = function create(base, custom) {
822
- if (!isAvailableThemeType(custom.type)) {
823
- throw new Error('Duplicate or unavailable theme type');
824
- }
825
- return _deepDuplicable(base, custom);
826
- };
827
- var createFromDark = function createFromDark(custom) {
828
- return create(themes, custom);
829
- };
830
- var createFromLight = function createFromLight(custom) {
831
- return create(themes$1, custom);
832
- };
833
- var Themes = {
834
- isPresetTheme: isPresetTheme,
835
- isAvailableThemeType: isAvailableThemeType,
836
- hasUserCustomTheme: hasUserCustomTheme,
837
- getPresets: getPresets,
838
- getPresetStaticTheme: getPresetStaticTheme,
839
- create: create,
840
- createFromDark: createFromDark,
841
- createFromLight: createFromLight
842
- };
843
-
844
- /* "use client" */
845
-
846
- var defaultTheme = Themes.getPresetStaticTheme();
847
- var ThemeContext = /*#__PURE__*/React.createContext(defaultTheme);
848
- var useTheme = function useTheme() {
849
- return React.useContext(ThemeContext);
850
- };
851
-
852
- // import flush from 'styled-jsx'
853
-
854
- // export type FlushToReact = <T>(opts?: { nonce?: string }) => Array<ReactElement<T>>
855
-
856
- // export type FlushToHTML = (opts?: { nonce?: string }) => string
857
-
858
- var CssBaseline = function CssBaseline(_ref) {
859
- var children = _ref.children;
860
- var theme = useTheme();
861
- return /*#__PURE__*/React.createElement(React.Fragment, null, children, /*#__PURE__*/React.createElement(_JSXStyle, {
862
- id: "3647548829",
863
- dynamic: [theme.palette.background, theme.palette.foreground, theme.palette.background, theme.font.sans, theme.font.sans, theme.palette.link, theme.expressiveness.linkStyle, theme.expressiveness.linkHoverStyle, theme.layout.gapHalf, theme.layout.gapHalf, theme.layout.gapHalf, theme.layout.gap, theme.palette.foreground, theme.palette.code, theme.font.mono, theme.layout.gap, theme.layout.gap, theme.layout.gap, theme.palette.accents_2, theme.layout.radius, theme.font.mono, theme.palette.foreground, theme.palette.accents_2, theme.palette.accents_1, theme.layout.gap, theme.layout.gap, theme.palette.accents_5, theme.palette.accents_1, theme.layout.radius, theme.palette.border, theme.palette.selection, theme.palette.foreground]
864
- }, "html,body{background-color:".concat(theme.palette.background, ";color:").concat(theme.palette.foreground, ";}html{font-size:16px;--helpdice-icons-background:").concat(theme.palette.background, ";}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;font-size:1rem;line-height:1.5;margin:0;padding:0;min-height:100%;position:relative;overflow-x:hidden;font-family:").concat(theme.font.sans, ";}#__next{overflow-x:hidden;}*,*:before,*:after{box-sizing:inherit;text-rendering:geometricPrecision;-webkit-tap-highlight-color:transparent;}p,small{font-weight:400;color:inherit;-webkit-letter-spacing:-0.005625em;-moz-letter-spacing:-0.005625em;-ms-letter-spacing:-0.005625em;letter-spacing:-0.005625em;font-family:").concat(theme.font.sans, ";}p{margin:1em 0;font-size:1em;line-height:1.625em;}small{margin:0;line-height:1.5;font-size:0.875em;}b{font-weight:600;}span{font-size:inherit;color:inherit;font-weight:inherit;}img{max-width:100%;}a{cursor:pointer;font-size:inherit;-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-box-align:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:").concat(theme.palette.link, ";-webkit-text-decoration:").concat(theme.expressiveness.linkStyle, ";text-decoration:").concat(theme.expressiveness.linkStyle, ";}a:hover{-webkit-text-decoration:").concat(theme.expressiveness.linkHoverStyle, ";text-decoration:").concat(theme.expressiveness.linkHoverStyle, ";}ul,ol{padding:0;list-style-type:none;margin:").concat(theme.layout.gapHalf, " ").concat(theme.layout.gapHalf, " ").concat(theme.layout.gapHalf, " ").concat(theme.layout.gap, ";color:").concat(theme.palette.foreground, ";}ol{list-style-type:decimal;}li{margin-bottom:0.625em;font-size:1em;line-height:1.625em;}h1,h2,h3,h4,h5,h6{color:inherit;margin:0 0 0.7rem 0;}h1{font-size:3rem;-webkit-letter-spacing:-0.02em;-moz-letter-spacing:-0.02em;-ms-letter-spacing:-0.02em;letter-spacing:-0.02em;line-height:1.5;font-weight:700;}h2{font-size:2.25rem;-webkit-letter-spacing:-0.02em;-moz-letter-spacing:-0.02em;-ms-letter-spacing:-0.02em;letter-spacing:-0.02em;font-weight:600;}h3{font-size:1.5rem;-webkit-letter-spacing:-0.02em;-moz-letter-spacing:-0.02em;-ms-letter-spacing:-0.02em;letter-spacing:-0.02em;font-weight:600;}h4{font-size:1.25rem;-webkit-letter-spacing:-0.02em;-moz-letter-spacing:-0.02em;-ms-letter-spacing:-0.02em;letter-spacing:-0.02em;font-weight:600;}h5{font-size:1rem;-webkit-letter-spacing:-0.01em;-moz-letter-spacing:-0.01em;-ms-letter-spacing:-0.01em;letter-spacing:-0.01em;font-weight:600;}h6{font-size:0.875rem;-webkit-letter-spacing:-0.005em;-moz-letter-spacing:-0.005em;-ms-letter-spacing:-0.005em;letter-spacing:-0.005em;font-weight:600;}button,input,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit;color:inherit;margin:0;}button:focus,input:focus,select:focus,textarea:focus{outline:none;}code{color:").concat(theme.palette.code, ";font-family:").concat(theme.font.mono, ";font-size:0.9em;white-space:pre-wrap;}code:before,code:after{content:'\\`';}pre{padding:calc(").concat(theme.layout.gap, " * 0.9) ").concat(theme.layout.gap, ";margin:").concat(theme.layout.gap, " 0;border:1px solid ").concat(theme.palette.accents_2, ";border-radius:").concat(theme.layout.radius, ";font-family:").concat(theme.font.mono, ";white-space:pre;overflow:auto;line-height:1.5;text-align:left;font-size:14px;-webkit-overflow-scrolling:touch;}pre code{color:").concat(theme.palette.foreground, ";font-size:1em;line-height:1.25em;white-space:pre;}pre code:before,pre code:after{display:none;}pre p{margin:0;}pre::-webkit-scrollbar{display:none;width:0;height:0;background:transparent;}hr{border-color:").concat(theme.palette.accents_2, ";}details{background-color:").concat(theme.palette.accents_1, ";border:none;}details:focus,details:hover,details:active{outline:none;}summary{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;list-style:none;outline:none;}summary::marker,summary::before,summary::-webkit-details-marker{display:none;}summary::-moz-list-bullet{font-size:0;}summary:focus,summary:hover,summary:active{outline:none;list-style:none;}blockquote{padding:calc(0.667 * ").concat(theme.layout.gap, ") ").concat(theme.layout.gap, ";color:").concat(theme.palette.accents_5, ";background-color:").concat(theme.palette.accents_1, ";border-radius:").concat(theme.layout.radius, ";margin:1.5em 0;border:1px solid ").concat(theme.palette.border, ";}blockquote *:first-child{margin-top:0;}blockquote *:last-child{margin-bottom:0;}::selection{background-color:").concat(theme.palette.selection, ";color:").concat(theme.palette.foreground, ";}")));
550
+ var LinearProgress = function LinearProgress(_ref) {
551
+ var _ref$isActive = _ref.isActive,
552
+ isActive = _ref$isActive === void 0 ? false : _ref$isActive,
553
+ progress = _ref.progress,
554
+ _ref$color = _ref.color,
555
+ color = _ref$color === void 0 ? '#1976d2' : _ref$color,
556
+ _ref$speed = _ref.speed,
557
+ speed = _ref$speed === void 0 ? 1.5 : _ref$speed;
558
+ if (!isActive) return null;
559
+ var isDeterminate = typeof progress === 'number' && progress >= 0 && progress <= 100;
560
+ return /*#__PURE__*/React.createElement("div", {
561
+ className: _JSXStyle.dynamic([["2900495535", [color, speed]]]) + " " + "loader-wrapper"
562
+ }, isDeterminate ? /*#__PURE__*/React.createElement("div", {
563
+ style: {
564
+ width: "".concat(progress, "%"),
565
+ backgroundColor: color
566
+ },
567
+ className: _JSXStyle.dynamic([["2900495535", [color, speed]]]) + " " + "determinate-bar"
568
+ }) : /*#__PURE__*/React.createElement("div", {
569
+ className: _JSXStyle.dynamic([["2900495535", [color, speed]]]) + " " + "indeterminate-loader"
570
+ }), /*#__PURE__*/React.createElement(_JSXStyle, {
571
+ id: "2900495535",
572
+ dynamic: [color, speed]
573
+ }, ".loader-wrapper.__jsx-style-dynamic-selector{position:fixed;top:0;left:0;width:100%;height:4px;background:rgba(0,0,0,0.05);z-index:2000;overflow:hidden;}.determinate-bar.__jsx-style-dynamic-selector{height:100%;-webkit-transition:width 0.3s ease;transition:width 0.3s ease;}.indeterminate-loader.__jsx-style-dynamic-selector{width:100%;height:100%;background:linear-gradient( to right, transparent 0%, ".concat(color, " 50%, transparent 100% );background-size:200% 100%;-webkit-animation:slide-__jsx-style-dynamic-selector ").concat(speed, "s linear infinite;animation:slide-__jsx-style-dynamic-selector ").concat(speed, "s linear infinite;}@-webkit-keyframes slide-__jsx-style-dynamic-selector{from{background-position:-100% 0;}to{background-position:100% 0;}}@keyframes slide-__jsx-style-dynamic-selector{from{background-position:-100% 0;}to{background-position:100% 0;}}")));
865
574
  };
866
- var MemoCssBaseline = /*#__PURE__*/React.memo(CssBaseline);
867
575
 
868
- exports.default = MemoCssBaseline;
576
+ exports.default = LinearProgress;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ interface LinearProgressProps {
3
+ isActive?: boolean;
4
+ progress?: number;
5
+ color?: string;
6
+ speed?: number;
7
+ }
8
+ declare const LinearProgress: React.FC<LinearProgressProps>;
9
+ export default LinearProgress;