@helpdice/ui 1.7.5 → 1.7.7
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.
- package/dist/CurrencyInput/index.js +2981 -0
- package/dist/LinearProgress/index.d.ts +2 -0
- package/dist/{css-baseline → LinearProgress}/index.js +25 -317
- package/dist/LinearProgress/linear-progress.d.ts +9 -0
- package/dist/Loadable/index.js +570 -0
- package/dist/PhoneInput/index.js +2136 -314
- package/dist/Placeholder/index.js +2116 -254
- package/dist/auto-complete/index.js +2145 -652
- package/dist/avatar/index.js +2119 -333
- package/dist/badge/index.js +2117 -331
- package/dist/breadcrumbs/index.js +2126 -340
- package/dist/button/button.compact.d.ts +2 -0
- package/dist/button/index.js +2214 -342
- package/dist/button-dropdown/index.js +2120 -291
- package/dist/button-group/index.js +2117 -331
- package/dist/capacity/index.js +2117 -331
- package/dist/card/index.js +2127 -298
- package/dist/checkbox/index.js +2119 -290
- package/dist/code/index.js +2116 -297
- package/dist/collapse/index.js +2117 -475
- package/dist/description/index.js +2117 -331
- package/dist/display/index.js +2117 -331
- package/dist/divider/index.js +2118 -332
- package/dist/dot/index.js +2117 -331
- package/dist/drawer/index.js +2129 -439
- package/dist/fieldset/index.js +2121 -354
- package/dist/grid/index.js +2119 -333
- package/dist/image/index.js +2122 -336
- package/dist/index.d.ts +2 -14
- package/dist/index.js +3175 -1879
- package/dist/input/index.js +2125 -296
- package/dist/keyboard/index.js +2116 -297
- package/dist/link/index.js +2117 -331
- package/dist/list/index.js +2119 -333
- package/dist/loading/index.js +2117 -331
- package/dist/menu/index.js +77 -45
- package/dist/modal/index.js +2145 -452
- package/dist/note/index.js +2117 -331
- package/dist/page/index.js +2117 -331
- package/dist/pagination/index.js +2118 -351
- package/dist/popover/index.js +2123 -354
- package/dist/progress/index.js +2117 -331
- package/dist/radio/index.js +2120 -334
- package/dist/rating/index.js +2118 -332
- package/dist/row/index.js +2115 -296
- package/dist/select/index.js +2151 -688
- package/dist/slider/index.js +2123 -356
- package/dist/snippet/index.js +2118 -421
- package/dist/spacer/index.js +2115 -296
- package/dist/spinner/index.js +2117 -331
- package/dist/table/index.js +2341 -754
- package/dist/tabs/index.js +2123 -344
- package/dist/tag/index.js +2116 -254
- package/dist/text/index.js +2116 -297
- package/dist/textarea/index.js +2117 -288
- package/dist/toggle/index.js +2117 -331
- package/dist/tooltip/index.js +2120 -351
- package/dist/tree/index.js +2123 -459
- package/dist/use-input/index.js +2122 -24
- package/dist/use-modal/index.js +2122 -24
- package/dist/use-network-status/index.d.ts +2 -0
- package/dist/{use-current-state → use-network-status}/index.js +22 -15
- package/dist/use-network-status/use-netowork-status.d.ts +4 -0
- package/dist/use-scale/index.js +2115 -296
- package/dist/use-tabs/index.js +2122 -24
- package/dist/user/index.js +2123 -337
- package/esm/CurrencyInput/components/CurrencyInput.js +342 -0
- package/esm/CurrencyInput/components/CurrencyInputProps.js +1 -0
- package/esm/CurrencyInput/components/utils/addSeparators.js +7 -0
- package/esm/CurrencyInput/components/utils/cleanValue.js +69 -0
- package/esm/CurrencyInput/components/utils/escapeRegExp.js +8 -0
- package/esm/CurrencyInput/components/utils/fixedDecimalValue.js +29 -0
- package/esm/CurrencyInput/components/utils/formatValue.js +124 -0
- package/esm/CurrencyInput/components/utils/getLocaleConfig.js +47 -0
- package/esm/CurrencyInput/components/utils/getSuffix.js +10 -0
- package/esm/CurrencyInput/components/utils/index.js +8 -0
- package/esm/CurrencyInput/components/utils/isNumber.js +3 -0
- package/esm/CurrencyInput/components/utils/padTrimValue.js +27 -0
- package/esm/CurrencyInput/components/utils/parseAbbrValue.js +43 -0
- package/esm/CurrencyInput/components/utils/removeInvalidChars.js +10 -0
- package/esm/CurrencyInput/components/utils/removeSeparators.js +10 -0
- package/esm/CurrencyInput/components/utils/repositionCursor.js +35 -0
- package/esm/CurrencyInput/index.js +4 -0
- package/esm/LinearProgress/index.d.ts +2 -0
- package/esm/LinearProgress/index.js +2 -0
- package/esm/LinearProgress/linear-progress.d.ts +9 -0
- package/esm/LinearProgress/linear-progress.js +28 -0
- package/esm/Loadable/index.js +2 -0
- package/esm/PhoneInput/phone.js +22 -19
- package/esm/auto-complete/auto-complete-dropdown.js +1 -3
- package/esm/auto-complete/auto-complete-item.js +1 -3
- package/esm/auto-complete/auto-complete-searching.js +1 -1
- package/esm/auto-complete/auto-complete.js +1 -1
- package/esm/avatar/avatar-group.js +1 -2
- package/esm/avatar/avatar.js +1 -2
- package/esm/badge/badge.js +1 -2
- package/esm/breadcrumbs/breadcrumbs-item.js +1 -1
- package/esm/breadcrumbs/breadcrumbs-separator.js +1 -1
- package/esm/breadcrumbs/breadcrumbs.js +1 -1
- package/esm/button/button-icon.js +1 -1
- package/esm/button/button.compact.d.ts +2 -0
- package/esm/button/button.compact.js +94 -50
- package/esm/button/button.js +1 -2
- package/esm/button/utils.js +1 -1
- package/esm/button-dropdown/button-dropdown-item.js +1 -1
- package/esm/button-dropdown/button-dropdown.js +1 -2
- package/esm/button-group/button-group.js +1 -2
- package/esm/capacity/capacity.js +1 -2
- package/esm/card/card-content.js +1 -1
- package/esm/card/card-footer.js +1 -2
- package/esm/card/card.js +1 -2
- package/esm/carousal/Arrow.js +18 -0
- package/esm/carousal/Indicator.js +20 -0
- package/esm/carousal/Thumbs.js +302 -0
- package/esm/carousal/animations.js +162 -0
- package/esm/carousal/index.js +683 -0
- package/esm/carousal/types.js +1 -0
- package/esm/carousal/utils.js +49 -0
- package/esm/checkbox/checkbox-group.js +1 -1
- package/esm/checkbox/checkbox.icon.js +1 -1
- package/esm/checkbox/checkbox.js +1 -2
- package/esm/code/code.js +1 -1
- package/esm/collapse/collapse-group.js +1 -2
- package/esm/collapse/collapse.js +1 -4
- package/esm/description/description.js +1 -2
- package/esm/display/display.js +1 -2
- package/esm/divider/divider.js +1 -2
- package/esm/dot/dot.js +1 -2
- package/esm/drawer/drawer-wrapper.js +1 -3
- package/esm/drawer/drawer.js +1 -1
- package/esm/fieldset/fieldset-content.js +1 -1
- package/esm/fieldset/fieldset-footer.js +1 -1
- package/esm/fieldset/fieldset-group.js +1 -3
- package/esm/fieldset/fieldset-title.js +1 -1
- package/esm/fieldset/fieldset.js +1 -2
- package/esm/grid/basic-item.js +1 -2
- package/esm/grid/grid-container.js +1 -1
- package/esm/grid/grid.js +1 -1
- package/esm/image/image-browser.js +1 -2
- package/esm/image/image.js +1 -2
- package/esm/image/image.skeleton.js +1 -1
- package/esm/index.d.ts +2 -14
- package/esm/index.js +5 -9
- package/esm/input/input-block-label.js +1 -1
- package/esm/input/input-icon-clear.js +1 -2
- package/esm/input/input-label.js +1 -1
- package/esm/input/input.js +1 -2
- package/esm/keyboard/keyboard.js +1 -1
- package/esm/link/link.js +1 -2
- package/esm/list/list-item.js +1 -2
- package/esm/loading/loading.js +1 -2
- package/esm/modal/modal-action.js +1 -2
- package/esm/modal/modal-actions.js +1 -1
- package/esm/modal/modal-content.js +1 -1
- package/esm/modal/modal-subtitle.js +1 -1
- package/esm/modal/modal-title.js +1 -1
- package/esm/modal/modal-wrapper.js +1 -3
- package/esm/modal/modal.js +1 -1
- package/esm/note/note.js +1 -2
- package/esm/page/page-header.js +1 -1
- package/esm/page/page.js +1 -1
- package/esm/pagination/pagination-item.js +1 -2
- package/esm/pagination/pagination.js +1 -1
- package/esm/popover/popover-item.js +1 -2
- package/esm/popover/popover.js +1 -1
- package/esm/progress/progress.js +1 -2
- package/esm/radio/radio-description.js +1 -1
- package/esm/radio/radio-group.js +1 -1
- package/esm/radio/radio.js +1 -2
- package/esm/rating/rating.js +1 -2
- package/esm/row/row.js +1 -1
- package/esm/select/select-dropdown.js +1 -3
- package/esm/select/select-icon-clear.js +1 -1
- package/esm/select/select-multiple-value.js +1 -1
- package/esm/select/select-option.js +1 -3
- package/esm/select/select.js +9 -12
- package/esm/slider/slider-dot.js +1 -2
- package/esm/slider/slider-mark.js +1 -1
- package/esm/slider/slider.js +1 -3
- package/esm/snippet/snippet.js +1 -3
- package/esm/spinner/spinner.js +1 -2
- package/esm/table/table-body.js +1 -2
- package/esm/table/table-head.js +3 -2
- package/esm/tabs/tabs-item.js +1 -2
- package/esm/tabs/tabs.js +1 -3
- package/esm/tag/tag.js +1 -1
- package/esm/text/child.js +1 -1
- package/esm/textarea/textarea.js +1 -2
- package/esm/toggle/toggle.js +1 -2
- package/esm/tooltip/tooltip-content.js +1 -3
- package/esm/tooltip/tooltip-icon.js +1 -1
- package/esm/tooltip/tooltip.js +1 -1
- package/esm/tree/tree-file-icon.js +1 -1
- package/esm/tree/tree-file.js +1 -2
- package/esm/tree/tree-folder-icon.js +1 -1
- package/esm/tree/tree-folder.js +1 -3
- package/esm/tree/tree-status-icon.js +1 -1
- package/esm/tree/tree.js +1 -1
- package/esm/use-input/use-input.js +1 -1
- package/esm/use-modal/use-modal.js +1 -1
- package/esm/use-network-status/index.d.ts +2 -0
- package/esm/use-network-status/index.js +2 -0
- package/esm/use-network-status/use-netowork-status.d.ts +4 -0
- package/esm/use-network-status/use-netowork-status.js +29 -0
- package/esm/use-scale/with-scale.js +1 -1
- package/esm/use-tabs/use-tabs.js +1 -1
- package/esm/user/user.js +1 -2
- package/esm/utils/use-context-state/use-context-state.js +1 -1
- package/esm/utils/use-drag.js +1 -1
- package/package.json +12 -4
- package/dist/css-baseline/css-baseline.d.ts +0 -9
- package/dist/css-baseline/index.d.ts +0 -1
- package/dist/shared/backdrop.d.ts +0 -14
- package/dist/shared/css-transition.d.ts +0 -13
- package/dist/shared/dropdown.d.ts +0 -9
- package/dist/shared/ellipsis.d.ts +0 -6
- package/dist/shared/expand.d.ts +0 -7
- package/dist/shared/highlight.d.ts +0 -13
- package/dist/ui-provider/index.d.ts +0 -3
- package/dist/ui-provider/index.js +0 -2186
- package/dist/ui-provider/theme-provider.d.ts +0 -8
- package/dist/ui-provider/ui-provider.d.ts +0 -8
- package/dist/use-all-themes/all-themes-context.d.ts +0 -7
- package/dist/use-all-themes/index.d.ts +0 -3
- package/dist/use-all-themes/index.js +0 -311
- package/dist/use-classes/index.d.ts +0 -2
- package/dist/use-classes/index.js +0 -48
- package/dist/use-classes/use-classes.d.ts +0 -4
- package/dist/use-current-state/index.d.ts +0 -2
- package/dist/use-current-state/use-current-state.d.ts +0 -4
- package/dist/use-media-query/index.d.ts +0 -3
- package/dist/use-media-query/index.js +0 -444
- package/dist/use-media-query/use-media-query.d.ts +0 -12
- package/dist/use-theme/index.d.ts +0 -2
- package/dist/use-theme/index.js +0 -309
- package/dist/use-theme/theme-context.d.ts +0 -4
- package/dist/use-toasts/helpers.d.ts +0 -18
- package/dist/use-toasts/index.d.ts +0 -3
- package/dist/use-toasts/index.js +0 -204
- package/dist/use-toasts/toast-container.d.ts +0 -3
- package/dist/use-toasts/toast-item.d.ts +0 -8
- package/dist/use-toasts/use-toast.d.ts +0 -40
- package/dist/utils/use-current-state.d.ts +0 -2
- package/dist/utils/use-dom-observer.d.ts +0 -3
- package/dist/utils/use-hd-ui-context.d.ts +0 -16
- package/dist/utils/use-previous.d.ts +0 -2
- package/esm/captcha/index.js +0 -128
- package/esm/css-baseline/css-baseline.d.ts +0 -9
- package/esm/css-baseline/css-baseline.js +0 -23
- package/esm/css-baseline/index.d.ts +0 -1
- package/esm/css-baseline/index.js +0 -2
- package/esm/shared/backdrop.d.ts +0 -14
- package/esm/shared/backdrop.js +0 -66
- package/esm/shared/css-transition.d.ts +0 -13
- package/esm/shared/css-transition.js +0 -65
- package/esm/shared/dropdown.d.ts +0 -9
- package/esm/shared/dropdown.js +0 -99
- package/esm/shared/ellipsis.d.ts +0 -6
- package/esm/shared/ellipsis.js +0 -13
- package/esm/shared/expand.d.ts +0 -7
- package/esm/shared/expand.js +0 -86
- package/esm/shared/highlight.d.ts +0 -13
- package/esm/shared/highlight.js +0 -46
- package/esm/ui-provider/index.d.ts +0 -3
- package/esm/ui-provider/index.js +0 -4
- package/esm/ui-provider/theme-provider.d.ts +0 -8
- package/esm/ui-provider/theme-provider.js +0 -45
- package/esm/ui-provider/ui-provider.d.ts +0 -8
- package/esm/ui-provider/ui-provider.js +0 -55
- package/esm/use-all-themes/all-themes-context.d.ts +0 -7
- package/esm/use-all-themes/all-themes-context.js +0 -11
- package/esm/use-all-themes/index.d.ts +0 -3
- package/esm/use-all-themes/index.js +0 -2
- package/esm/use-classes/index.d.ts +0 -2
- package/esm/use-classes/index.js +0 -2
- package/esm/use-classes/use-classes.d.ts +0 -4
- package/esm/use-classes/use-classes.js +0 -34
- package/esm/use-current-state/index.d.ts +0 -2
- package/esm/use-current-state/index.js +0 -2
- package/esm/use-current-state/use-current-state.d.ts +0 -4
- package/esm/use-current-state/use-current-state.js +0 -23
- package/esm/use-media-query/index.d.ts +0 -3
- package/esm/use-media-query/index.js +0 -2
- package/esm/use-media-query/use-media-query.d.ts +0 -12
- package/esm/use-media-query/use-media-query.js +0 -81
- package/esm/use-theme/index.d.ts +0 -2
- package/esm/use-theme/index.js +0 -2
- package/esm/use-theme/theme-context.d.ts +0 -4
- package/esm/use-theme/theme-context.js +0 -9
- package/esm/use-toasts/helpers.d.ts +0 -18
- package/esm/use-toasts/helpers.js +0 -68
- package/esm/use-toasts/index.d.ts +0 -3
- package/esm/use-toasts/index.js +0 -2
- package/esm/use-toasts/toast-container.d.ts +0 -3
- package/esm/use-toasts/toast-container.js +0 -120
- package/esm/use-toasts/toast-item.d.ts +0 -8
- package/esm/use-toasts/toast-item.js +0 -45
- package/esm/use-toasts/use-toast.d.ts +0 -40
- package/esm/use-toasts/use-toast.js +0 -103
- package/esm/utils/use-current-state.d.ts +0 -2
- package/esm/utils/use-current-state.js +0 -2
- package/esm/utils/use-dom-observer.d.ts +0 -3
- package/esm/utils/use-hd-ui-context.d.ts +0 -16
- package/esm/utils/use-previous.d.ts +0 -2
|
@@ -547,322 +547,30 @@ function requireStyle () {
|
|
|
547
547
|
var styleExports = requireStyle();
|
|
548
548
|
var _JSXStyle = /*@__PURE__*/getDefaultExportFromCjs(styleExports);
|
|
549
549
|
|
|
550
|
-
function
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
var
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
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 =
|
|
576
|
+
exports.default = LinearProgress;
|