@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.
- 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
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Children } from 'react';
|
|
2
|
+
import CSSTranslate from '../../CSSTranslate';
|
|
3
|
+
export var noop = function noop() {};
|
|
4
|
+
export var defaultStatusFormatter = function defaultStatusFormatter(current, total) {
|
|
5
|
+
return "".concat(current, " of ").concat(total);
|
|
6
|
+
};
|
|
7
|
+
export var isKeyboardEvent = function isKeyboardEvent(e) {
|
|
8
|
+
return e ? e.hasOwnProperty('key') : false;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Gets the list 'position' relative to a current index
|
|
13
|
+
* @param index
|
|
14
|
+
*/
|
|
15
|
+
export var getPosition = function getPosition(index, props) {
|
|
16
|
+
if (props.infiniteLoop) {
|
|
17
|
+
// index has to be added by 1 because of the first cloned slide
|
|
18
|
+
++index;
|
|
19
|
+
}
|
|
20
|
+
if (index === 0) {
|
|
21
|
+
return 0;
|
|
22
|
+
}
|
|
23
|
+
var childrenLength = Children.count(props.children);
|
|
24
|
+
if (props.centerMode && props.axis === 'horizontal') {
|
|
25
|
+
var currentPosition = -index * props.centerSlidePercentage;
|
|
26
|
+
var lastPosition = childrenLength - 1;
|
|
27
|
+
if (index && (index !== lastPosition || props.infiniteLoop)) {
|
|
28
|
+
currentPosition += (100 - props.centerSlidePercentage) / 2;
|
|
29
|
+
} else if (index === lastPosition) {
|
|
30
|
+
currentPosition += 100 - props.centerSlidePercentage;
|
|
31
|
+
}
|
|
32
|
+
return currentPosition;
|
|
33
|
+
}
|
|
34
|
+
return -index * 100;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Sets the 'position' transform for sliding animations
|
|
39
|
+
* @param position
|
|
40
|
+
* @param forceReflow
|
|
41
|
+
*/
|
|
42
|
+
export var setPosition = function setPosition(position, axis) {
|
|
43
|
+
var style = {};
|
|
44
|
+
['WebkitTransform', 'MozTransform', 'MsTransform', 'OTransform', 'transform', 'msTransform'].forEach(function (prop) {
|
|
45
|
+
// @ts-ignore
|
|
46
|
+
style[prop] = CSSTranslate(position, '%', axis);
|
|
47
|
+
});
|
|
48
|
+
return style;
|
|
49
|
+
};
|
|
@@ -10,7 +10,7 @@ import React, { useEffect, useMemo, useState } from 'react';
|
|
|
10
10
|
import { CheckboxContext } from './checkbox-context';
|
|
11
11
|
import useWarning from '../utils/use-warning';
|
|
12
12
|
import useScale, { withScale } from '../use-scale';
|
|
13
|
-
import useClasses from '
|
|
13
|
+
import { useClasses } from '@helpdice/theme';
|
|
14
14
|
var CheckboxGroupComponent = function CheckboxGroupComponent(_ref) {
|
|
15
15
|
var _ref$disabled = _ref.disabled,
|
|
16
16
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _JSXStyle from "../styled-jsx.es.js";
|
|
2
2
|
import React, { useMemo } from 'react';
|
|
3
|
-
import useTheme from '
|
|
3
|
+
import { useTheme } from '@helpdice/theme';
|
|
4
4
|
var CheckboxIconComponent = function CheckboxIconComponent(_ref) {
|
|
5
5
|
var fill = _ref.fill,
|
|
6
6
|
bg = _ref.bg,
|
package/esm/checkbox/checkbox.js
CHANGED
|
@@ -10,9 +10,8 @@ import { useCheckbox } from './checkbox-context';
|
|
|
10
10
|
import CheckboxIcon from './checkbox.icon';
|
|
11
11
|
import useWarning from '../utils/use-warning';
|
|
12
12
|
import { getColors } from './styles';
|
|
13
|
-
import useTheme from '
|
|
13
|
+
import { useTheme, useClasses } from '@helpdice/theme';
|
|
14
14
|
import useScale, { withScale } from '../use-scale';
|
|
15
|
-
import useClasses from '../use-classes';
|
|
16
15
|
var CheckboxComponent = function CheckboxComponent(_ref) {
|
|
17
16
|
var checked = _ref.checked,
|
|
18
17
|
_ref$initialChecked = _ref.initialChecked,
|
package/esm/code/code.js
CHANGED
|
@@ -4,7 +4,7 @@ var _excluded = ["children", "block", "className", "name", "classic"];
|
|
|
4
4
|
import _JSXStyle from "../styled-jsx.es.js";
|
|
5
5
|
import React, { useMemo } from 'react';
|
|
6
6
|
import useScale, { withScale } from '../use-scale';
|
|
7
|
-
import useTheme from '
|
|
7
|
+
import { useTheme } from '@helpdice/theme';
|
|
8
8
|
import { addColorAlpha } from '../utils/color';
|
|
9
9
|
var CodeComponent = function CodeComponent(_ref) {
|
|
10
10
|
var children = _ref.children,
|
|
@@ -8,11 +8,10 @@ import _JSXStyle from "../styled-jsx.es.js";
|
|
|
8
8
|
|
|
9
9
|
import React, { useMemo } from 'react';
|
|
10
10
|
import Collapse from './collapse';
|
|
11
|
-
import useCurrentState from '../utils/use-current-state';
|
|
12
11
|
import { setChildrenIndex } from '../utils/collections';
|
|
13
12
|
import { CollapseContext } from './collapse-context';
|
|
14
13
|
import useScale, { withScale } from '../use-scale';
|
|
15
|
-
import useClasses from '
|
|
14
|
+
import { useClasses, useCurrentState } from '@helpdice/theme';
|
|
16
15
|
var CollapseGroupComponent = function CollapseGroupComponent(_ref) {
|
|
17
16
|
var children = _ref.children,
|
|
18
17
|
_ref$accordion = _ref.accordion,
|
package/esm/collapse/collapse.js
CHANGED
|
@@ -7,13 +7,10 @@ import _JSXStyle from "../styled-jsx.es.js";
|
|
|
7
7
|
|
|
8
8
|
import React, { useEffect } from 'react';
|
|
9
9
|
import CollapseIcon from './collapse-icon';
|
|
10
|
-
import useTheme from '
|
|
11
|
-
import Expand from '../shared/expand';
|
|
10
|
+
import { useTheme, Expand, useClasses, useCurrentState } from '@helpdice/theme';
|
|
12
11
|
import { useCollapseContext } from './collapse-context';
|
|
13
|
-
import useCurrentState from '../utils/use-current-state';
|
|
14
12
|
import useWarning from '../utils/use-warning';
|
|
15
13
|
import useScale, { withScale } from '../use-scale';
|
|
16
|
-
import useClasses from '../use-classes';
|
|
17
14
|
var CollapseComponent = function CollapseComponent(_ref) {
|
|
18
15
|
var children = _ref.children,
|
|
19
16
|
title = _ref.title,
|
|
@@ -3,9 +3,8 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
|
|
|
3
3
|
var _excluded = ["title", "content", "className"];
|
|
4
4
|
import _JSXStyle from "../styled-jsx.es.js";
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import useTheme from '
|
|
6
|
+
import { useTheme, useClasses } from '@helpdice/theme';
|
|
7
7
|
import useScale, { withScale } from '../use-scale';
|
|
8
|
-
import useClasses from '../use-classes';
|
|
9
8
|
var DescriptionComponent = function DescriptionComponent(_ref) {
|
|
10
9
|
var _ref$title = _ref.title,
|
|
11
10
|
title = _ref$title === void 0 ? 'Title' : _ref$title,
|
package/esm/display/display.js
CHANGED
|
@@ -3,9 +3,8 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
|
|
|
3
3
|
var _excluded = ["children", "caption", "shadow", "className"];
|
|
4
4
|
import _JSXStyle from "../styled-jsx.es.js";
|
|
5
5
|
import React, { useMemo } from 'react';
|
|
6
|
-
import useTheme from '
|
|
6
|
+
import { useTheme, useClasses } from '@helpdice/theme';
|
|
7
7
|
import useScale, { withScale } from '../use-scale';
|
|
8
|
-
import useClasses from '../use-classes';
|
|
9
8
|
var DisplayComponent = function DisplayComponent(_ref) {
|
|
10
9
|
var children = _ref.children,
|
|
11
10
|
_ref$caption = _ref.caption,
|
package/esm/divider/divider.js
CHANGED
|
@@ -5,9 +5,8 @@ import _JSXStyle from "../styled-jsx.es.js";
|
|
|
5
5
|
/* "use client" */
|
|
6
6
|
|
|
7
7
|
import React, { useMemo } from 'react';
|
|
8
|
-
import useTheme from '
|
|
8
|
+
import { useTheme, useClasses } from '@helpdice/theme';
|
|
9
9
|
import useScale, { withScale } from '../use-scale';
|
|
10
|
-
import useClasses from '../use-classes';
|
|
11
10
|
var getColor = function getColor(type, palette) {
|
|
12
11
|
var colors = {
|
|
13
12
|
"default": palette.border,
|
package/esm/dot/dot.js
CHANGED
|
@@ -3,9 +3,8 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
|
|
|
3
3
|
var _excluded = ["type", "children", "className"];
|
|
4
4
|
import _JSXStyle from "../styled-jsx.es.js";
|
|
5
5
|
import React, { useMemo } from 'react';
|
|
6
|
-
import useTheme from '
|
|
6
|
+
import { useTheme, useClasses } from '@helpdice/theme';
|
|
7
7
|
import useScale, { withScale } from '../use-scale';
|
|
8
|
-
import useClasses from '../use-classes';
|
|
9
8
|
var getColor = function getColor(type, theme) {
|
|
10
9
|
var colors = {
|
|
11
10
|
"default": theme.palette.accents_2,
|
|
@@ -6,11 +6,9 @@ import _JSXStyle from "../styled-jsx.es.js";
|
|
|
6
6
|
|
|
7
7
|
import React, { useEffect, useMemo, useRef } from 'react';
|
|
8
8
|
import useScale from '../use-scale';
|
|
9
|
-
import useTheme from '
|
|
10
|
-
import CssTransition from '../shared/css-transition';
|
|
9
|
+
import { useTheme, useClasses, CssTransition } from '@helpdice/theme';
|
|
11
10
|
import { isChildElement } from '../utils/collections';
|
|
12
11
|
import { getDrawerTransform } from './helper';
|
|
13
|
-
import useClasses from '../use-classes';
|
|
14
12
|
var DrawerWrapper = function DrawerWrapper(_ref) {
|
|
15
13
|
var _ref$className = _ref.className,
|
|
16
14
|
className = _ref$className === void 0 ? '' : _ref$className,
|
package/esm/drawer/drawer.js
CHANGED
|
@@ -10,7 +10,7 @@ import usePortal from '../utils/use-portal';
|
|
|
10
10
|
import useBodyScroll from '../utils/use-body-scroll';
|
|
11
11
|
import useKeyboard, { KeyCode } from '../use-keyboard';
|
|
12
12
|
import { createPortal } from 'react-dom';
|
|
13
|
-
import Backdrop from '
|
|
13
|
+
import { Backdrop } from '@helpdice/theme';
|
|
14
14
|
import DrawerWrapper from './drawer-wrapper';
|
|
15
15
|
var DrawerComponent = function DrawerComponent(_ref) {
|
|
16
16
|
var customVisible = _ref.visible,
|
|
@@ -4,7 +4,7 @@ var _excluded = ["className", "children"];
|
|
|
4
4
|
import _JSXStyle from "../styled-jsx.es.js";
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import useScale, { withScale } from '../use-scale';
|
|
7
|
-
import useClasses from '
|
|
7
|
+
import { useClasses } from '@helpdice/theme';
|
|
8
8
|
var FieldsetContentComponent = function FieldsetContentComponent(_ref) {
|
|
9
9
|
var _ref$className = _ref.className,
|
|
10
10
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
@@ -3,7 +3,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
|
|
|
3
3
|
var _excluded = ["className", "children"];
|
|
4
4
|
import _JSXStyle from "../styled-jsx.es.js";
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import useTheme from '
|
|
6
|
+
import { useTheme } from '@helpdice/theme';
|
|
7
7
|
import useScale, { withScale } from '../use-scale';
|
|
8
8
|
var FieldsetFooterComponent = function FieldsetFooterComponent(_ref) {
|
|
9
9
|
var _ref$className = _ref.className,
|
|
@@ -7,12 +7,10 @@ import _JSXStyle from "../styled-jsx.es.js";
|
|
|
7
7
|
/* "use client" */
|
|
8
8
|
|
|
9
9
|
import React, { useCallback, useMemo, useState } from 'react';
|
|
10
|
-
import useTheme from '
|
|
11
|
-
import useCurrentState from '../utils/use-current-state';
|
|
10
|
+
import { useTheme, useClasses, useCurrentState } from '@helpdice/theme';
|
|
12
11
|
import { FieldsetContext } from './fieldset-context';
|
|
13
12
|
import useWarning from '../utils/use-warning';
|
|
14
13
|
import useScale, { withScale } from '../use-scale';
|
|
15
|
-
import useClasses from '../use-classes';
|
|
16
14
|
var FieldsetGroupComponent = function FieldsetGroupComponent(_ref) {
|
|
17
15
|
var _ref$className = _ref.className,
|
|
18
16
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
@@ -3,7 +3,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
|
|
|
3
3
|
var _excluded = ["className", "children"];
|
|
4
4
|
import _JSXStyle from "../styled-jsx.es.js";
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import useClasses from '
|
|
6
|
+
import { useClasses } from '@helpdice/theme';
|
|
7
7
|
var FieldsetTitle = function FieldsetTitle(_ref) {
|
|
8
8
|
var _ref$className = _ref.className,
|
|
9
9
|
className = _ref$className === void 0 ? '' : _ref$className,
|
package/esm/fieldset/fieldset.js
CHANGED
|
@@ -6,7 +6,7 @@ import _JSXStyle from "../styled-jsx.es.js";
|
|
|
6
6
|
/* "use client" */
|
|
7
7
|
|
|
8
8
|
import React, { useEffect, useMemo, useState } from 'react';
|
|
9
|
-
import useTheme from '
|
|
9
|
+
import { useTheme, useClasses } from '@helpdice/theme';
|
|
10
10
|
import FieldsetTitle from './fieldset-title';
|
|
11
11
|
import FieldsetSubtitle from './fieldset-subtitle';
|
|
12
12
|
import FieldsetFooter from './fieldset-footer';
|
|
@@ -15,7 +15,6 @@ import { hasChild, pickChild } from '../utils/collections';
|
|
|
15
15
|
import { useFieldset } from './fieldset-context';
|
|
16
16
|
import useWarning from '../utils/use-warning';
|
|
17
17
|
import useScale, { withScale } from '../use-scale';
|
|
18
|
-
import useClasses from '../use-classes';
|
|
19
18
|
var FieldsetComponent = function FieldsetComponent(_ref) {
|
|
20
19
|
var _ref$className = _ref.className,
|
|
21
20
|
className = _ref$className === void 0 ? '' : _ref$className,
|
package/esm/grid/basic-item.js
CHANGED
|
@@ -4,9 +4,8 @@ var _excluded = ["xs", "sm", "md", "lg", "xl", "justify", "direction", "alignIte
|
|
|
4
4
|
import _JSXStyle from "../styled-jsx.es.js";
|
|
5
5
|
/* "use client" */;
|
|
6
6
|
import React, { useMemo } from 'react';
|
|
7
|
-
import useTheme from '
|
|
7
|
+
import { useTheme, useClasses } from '@helpdice/theme';
|
|
8
8
|
import useScale from '../use-scale';
|
|
9
|
-
import useClasses from '../use-classes';
|
|
10
9
|
var getItemLayout = function getItemLayout(val) {
|
|
11
10
|
var display = val === 0 ? 'display: none;' : 'display: inherit;';
|
|
12
11
|
if (typeof val === 'number') {
|
|
@@ -5,7 +5,7 @@ import _JSXStyle from "../styled-jsx.es.js";
|
|
|
5
5
|
import React, { useMemo } from 'react';
|
|
6
6
|
import GridBasicItem from './basic-item';
|
|
7
7
|
import useScale, { withScale } from '../use-scale';
|
|
8
|
-
import useClasses from '
|
|
8
|
+
import { useClasses } from '@helpdice/theme';
|
|
9
9
|
var GridContainerComponent = function GridContainerComponent(_ref) {
|
|
10
10
|
var _ref$gap = _ref.gap,
|
|
11
11
|
gap = _ref$gap === void 0 ? 0 : _ref$gap,
|
package/esm/grid/grid.js
CHANGED
|
@@ -6,7 +6,7 @@ import _JSXStyle from "../styled-jsx.es.js";
|
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import GridBasicItem from './basic-item';
|
|
8
8
|
import useScale, { withScale } from '../use-scale';
|
|
9
|
-
import useClasses from '
|
|
9
|
+
import { useClasses } from '@helpdice/theme';
|
|
10
10
|
var GridComponent = function GridComponent(_ref) {
|
|
11
11
|
var children = _ref.children,
|
|
12
12
|
_ref$className = _ref.className,
|
|
@@ -4,12 +4,11 @@ var _excluded = ["url", "title", "children", "showFullLink", "invert", "anchorPr
|
|
|
4
4
|
import _JSXStyle from "../styled-jsx.es.js";
|
|
5
5
|
import React, { useMemo } from 'react';
|
|
6
6
|
import Link from '../link';
|
|
7
|
-
import useTheme from '
|
|
7
|
+
import { useTheme, useClasses } from '@helpdice/theme';
|
|
8
8
|
import ImageBrowserHttpsIcon from './image-browser-https-icon';
|
|
9
9
|
import { getBrowserColors } from './styles';
|
|
10
10
|
import { getHostFromUrl } from './helpers';
|
|
11
11
|
import useScale, { withScale } from '../use-scale';
|
|
12
|
-
import useClasses from '../use-classes';
|
|
13
12
|
var getTitle = function getTitle(title, colors) {
|
|
14
13
|
return /*#__PURE__*/React.createElement("div", {
|
|
15
14
|
className: _JSXStyle.dynamic([["524099755", [colors.titleColor]]]) + " " + "title"
|
package/esm/image/image.js
CHANGED
|
@@ -6,11 +6,10 @@ import _JSXStyle from "../styled-jsx.es.js";
|
|
|
6
6
|
/* "use client" */
|
|
7
7
|
|
|
8
8
|
import React, { useEffect, useMemo, useRef, useState } from 'react';
|
|
9
|
-
import useTheme from '
|
|
9
|
+
import { useTheme, useClasses } from '@helpdice/theme';
|
|
10
10
|
import ImageSkeleton from './image.skeleton';
|
|
11
11
|
import { transformDataSource } from './helpers';
|
|
12
12
|
import useScale, { withScale } from '../use-scale';
|
|
13
|
-
import useClasses from '../use-classes';
|
|
14
13
|
var ImageComponent = function ImageComponent(_ref) {
|
|
15
14
|
var src = _ref.src,
|
|
16
15
|
_ref$disableSkeleton = _ref.disableSkeleton,
|
|
@@ -3,7 +3,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
|
|
|
3
3
|
var _excluded = ["opacity"];
|
|
4
4
|
import _JSXStyle from "../styled-jsx.es.js";
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import useTheme from '
|
|
6
|
+
import { useTheme } from '@helpdice/theme';
|
|
7
7
|
var ImageSkeleton = /*#__PURE__*/React.memo(function (_ref) {
|
|
8
8
|
var _ref$opacity = _ref.opacity,
|
|
9
9
|
opacity = _ref$opacity === void 0 ? 0.5 : _ref$opacity,
|
package/esm/index.d.ts
CHANGED
|
@@ -36,8 +36,6 @@ export type { DrawerProps } from './drawer';
|
|
|
36
36
|
export { default as Fieldset } from './fieldset';
|
|
37
37
|
export type { FieldsetProps, FieldsetTitleProps, FieldsetSubtitleProps, FieldsetGroupProps, FieldsetFooterProps, FieldsetContentProps, } from './fieldset';
|
|
38
38
|
export * from './form';
|
|
39
|
-
export { default as UiProvider } from './ui-provider';
|
|
40
|
-
export type { UiProviderProps } from './ui-provider';
|
|
41
39
|
export { default as Grid } from './grid';
|
|
42
40
|
export { default as Container } from './grid/grid-container';
|
|
43
41
|
export type { GridProps, GridContainerProps } from './grid';
|
|
@@ -100,35 +98,25 @@ export type { TooltipProps } from './tooltip';
|
|
|
100
98
|
export { default as Tree } from './tree';
|
|
101
99
|
export type { TreeProps } from './tree';
|
|
102
100
|
export { useTime, useTimer, useStopwatch } from './timer';
|
|
103
|
-
export { default as useAllThemes } from './use-all-themes';
|
|
104
|
-
export type { AllThemesConfig } from './use-all-themes';
|
|
105
|
-
export { default as useToasts } from './use-toasts';
|
|
106
|
-
export type { Toast, ToastInput, ToastAction, ToastLayout } from './use-toasts';
|
|
107
101
|
export { default as User } from './user';
|
|
108
102
|
export type { UserProps } from './user';
|
|
109
103
|
export { default as useBodyScroll } from './use-body-scroll';
|
|
110
104
|
export type { BodyScrollOptions } from './use-body-scroll';
|
|
111
105
|
export { default as useClipboard } from './use-clipboard';
|
|
112
106
|
export type { UseClipboardOptions } from './use-clipboard';
|
|
113
|
-
export { default as useMediaQuery } from './use-media-query';
|
|
114
|
-
export type { ResponsiveOptions, ResponsiveBreakpoint } from './use-media-query';
|
|
115
107
|
export { default as useKeyboard, KeyMod, KeyCode } from './use-keyboard';
|
|
116
108
|
export type { KeyboardOptions, UseKeyboardHandler } from './use-keyboard';
|
|
117
109
|
export { default as useInput } from './use-input';
|
|
118
110
|
export { default as useModal } from './use-modal';
|
|
119
111
|
export { default as useTabs } from './use-tabs';
|
|
120
112
|
export { default as useClickAway } from './use-click-away';
|
|
121
|
-
export { default as
|
|
122
|
-
export { default as CssBaseline } from './css-baseline';
|
|
123
|
-
export { default as useTheme } from './use-theme';
|
|
124
|
-
export { default as useClasses } from './use-classes';
|
|
113
|
+
export { default as LinearProgress } from './LinearProgress';
|
|
125
114
|
export { default as useScale } from './use-scale';
|
|
126
115
|
export { withScale, ScalePropKeys, ScaleContext } from './use-scale';
|
|
127
116
|
export type { ScaleProps, ScaleConfig, GetScalePropsFunction, GetAllScalePropsFunction, } from './use-scale';
|
|
117
|
+
export { default as useNetworkStatus } from './use-network-status';
|
|
128
118
|
export { useRect } from './utils/layouts';
|
|
129
119
|
export type { ReactiveDomReact } from './utils/layouts';
|
|
130
|
-
export { default as Highlight } from './shared/highlight';
|
|
131
|
-
export type { HighlightProps } from './shared/highlight';
|
|
132
120
|
export { default as CodeBlock } from './code-block';
|
|
133
121
|
export { default as Skeleton } from './skeleton';
|
|
134
122
|
export * from './login-with';
|
package/esm/index.js
CHANGED
|
@@ -24,7 +24,6 @@ export * from './form';
|
|
|
24
24
|
|
|
25
25
|
// export * as captcha from './captcha'
|
|
26
26
|
|
|
27
|
-
export { default as UiProvider } from './ui-provider';
|
|
28
27
|
export { default as Grid } from './grid';
|
|
29
28
|
export { default as Container } from './grid/grid-container';
|
|
30
29
|
export { default as HtmlRenderer } from './html-renderer';
|
|
@@ -59,25 +58,22 @@ export { default as Toggle } from './toggle';
|
|
|
59
58
|
export { default as Tooltip } from './tooltip';
|
|
60
59
|
export { default as Tree } from './tree';
|
|
61
60
|
export { useTime, useTimer, useStopwatch } from './timer';
|
|
62
|
-
export { default as useAllThemes } from './use-all-themes';
|
|
63
|
-
export { default as useToasts } from './use-toasts';
|
|
64
61
|
export { default as User } from './user';
|
|
65
62
|
export { default as useBodyScroll } from './use-body-scroll';
|
|
66
63
|
export { default as useClipboard } from './use-clipboard';
|
|
67
|
-
export { default as useMediaQuery } from './use-media-query';
|
|
68
64
|
export { default as useKeyboard, KeyMod, KeyCode } from './use-keyboard';
|
|
69
65
|
export { default as useInput } from './use-input';
|
|
70
66
|
export { default as useModal } from './use-modal';
|
|
71
67
|
export { default as useTabs } from './use-tabs';
|
|
72
68
|
export { default as useClickAway } from './use-click-away';
|
|
73
|
-
|
|
74
|
-
export { default as CssBaseline } from './css-baseline'
|
|
75
|
-
|
|
76
|
-
export { default as
|
|
69
|
+
|
|
70
|
+
// export { default as CssBaseline } from './css-baseline'
|
|
71
|
+
|
|
72
|
+
export { default as LinearProgress } from './LinearProgress';
|
|
77
73
|
export { default as useScale } from './use-scale';
|
|
78
74
|
export { withScale, ScalePropKeys, ScaleContext } from './use-scale';
|
|
75
|
+
export { default as useNetworkStatus } from './use-network-status';
|
|
79
76
|
export { useRect } from './utils/layouts';
|
|
80
|
-
export { default as Highlight } from './shared/highlight';
|
|
81
77
|
export { default as CodeBlock } from './code-block';
|
|
82
78
|
export { default as Skeleton } from './skeleton';
|
|
83
79
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _JSXStyle from "../styled-jsx.es.js";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import useTheme from '
|
|
3
|
+
import { useTheme } from '@helpdice/theme';
|
|
4
4
|
var InputBlockLabelComponent = function InputBlockLabelComponent(_ref) {
|
|
5
5
|
var children = _ref.children;
|
|
6
6
|
var theme = useTheme();
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import _JSXStyle from "../styled-jsx.es.js";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import useTheme from '
|
|
4
|
-
import useClasses from '../use-classes';
|
|
3
|
+
import { useTheme, useClasses } from '@helpdice/theme';
|
|
5
4
|
var InputIconClear = function InputIconClear(_ref) {
|
|
6
5
|
var onClick = _ref.onClick,
|
|
7
6
|
disabled = _ref.disabled,
|
package/esm/input/input-label.js
CHANGED
package/esm/input/input.js
CHANGED
|
@@ -8,14 +8,13 @@ import _JSXStyle from "../styled-jsx.es.js";
|
|
|
8
8
|
/* "use client" */
|
|
9
9
|
|
|
10
10
|
import React, { useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react';
|
|
11
|
-
import useTheme from '
|
|
11
|
+
import { useTheme, useClasses } from '@helpdice/theme';
|
|
12
12
|
import InputLabel from './input-label';
|
|
13
13
|
import InputBlockLabel from './input-block-label';
|
|
14
14
|
import InputIcon from './input-icon';
|
|
15
15
|
import InputClearIcon from './input-icon-clear';
|
|
16
16
|
import { getColors } from './styles';
|
|
17
17
|
import useScale, { withScale } from '../use-scale';
|
|
18
|
-
import useClasses from '../use-classes';
|
|
19
18
|
var simulateChangeEvent = function simulateChangeEvent(el, event) {
|
|
20
19
|
return _extends({}, event, {
|
|
21
20
|
target: el,
|
package/esm/keyboard/keyboard.js
CHANGED
|
@@ -3,7 +3,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
|
|
|
3
3
|
var _excluded = ["command", "shift", "option", "ctrl", "children", "className"];
|
|
4
4
|
import _JSXStyle from "../styled-jsx.es.js";
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import useTheme from '
|
|
6
|
+
import { useTheme } from '@helpdice/theme';
|
|
7
7
|
import useScale, { withScale } from '../use-scale';
|
|
8
8
|
var KeyboardComponent = function KeyboardComponent(_ref) {
|
|
9
9
|
var _ref$command = _ref.command,
|
package/esm/link/link.js
CHANGED
|
@@ -5,11 +5,10 @@ import _JSXStyle from "../styled-jsx.es.js";
|
|
|
5
5
|
// "use client"
|
|
6
6
|
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import useTheme from '
|
|
8
|
+
import { useTheme, useClasses } from '@helpdice/theme';
|
|
9
9
|
import LinkIcon from './icon';
|
|
10
10
|
import { addColorAlpha } from '../utils/color';
|
|
11
11
|
import useScale, { withScale } from '../use-scale';
|
|
12
|
-
import useClasses from '../use-classes';
|
|
13
12
|
var LinkComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
14
13
|
var _ref$href = _ref.href,
|
|
15
14
|
href = _ref$href === void 0 ? '' : _ref$href,
|
package/esm/list/list-item.js
CHANGED
|
@@ -3,9 +3,8 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
|
|
|
3
3
|
var _excluded = ["children", "direction", "justify", "alignItems", "line", "showTitle", "className", "onClick", "leading", "primary", "secondary", "trailing", "selected", "disableAutoClose"];
|
|
4
4
|
import _JSXStyle from "../styled-jsx.es.js";
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import useTheme from '
|
|
6
|
+
import { useTheme, useClasses } from '@helpdice/theme';
|
|
7
7
|
import useScale, { withScale } from '../use-scale';
|
|
8
|
-
import useClasses from '../use-classes';
|
|
9
8
|
var ListItemComponent = function ListItemComponent(_ref) {
|
|
10
9
|
var children = _ref.children,
|
|
11
10
|
_ref$direction = _ref.direction,
|
package/esm/loading/loading.js
CHANGED
|
@@ -3,9 +3,8 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
|
|
|
3
3
|
var _excluded = ["children", "type", "color", "className", "spaceRatio"];
|
|
4
4
|
import _JSXStyle from "../styled-jsx.es.js";
|
|
5
5
|
import React, { useMemo } from 'react';
|
|
6
|
-
import useTheme from '
|
|
6
|
+
import { useTheme, useClasses } from '@helpdice/theme';
|
|
7
7
|
import useScale, { withScale } from '../use-scale';
|
|
8
|
-
import useClasses from '../use-classes';
|
|
9
8
|
var getIconBgColor = function getIconBgColor(type, palette, color) {
|
|
10
9
|
var colors = {
|
|
11
10
|
"default": palette.accents_6,
|
|
@@ -5,11 +5,10 @@ import _JSXStyle from "../styled-jsx.es.js";
|
|
|
5
5
|
/* "use client" */
|
|
6
6
|
|
|
7
7
|
import React, { useImperativeHandle, useMemo, useRef } from 'react';
|
|
8
|
-
import useTheme from '
|
|
8
|
+
import { useTheme, useClasses } from '@helpdice/theme';
|
|
9
9
|
import { useModalContext } from './modal-context';
|
|
10
10
|
import Button from '../button/button';
|
|
11
11
|
import useScale, { withScale } from '../use-scale';
|
|
12
|
-
import useClasses from '../use-classes';
|
|
13
12
|
var ModalActionComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
14
13
|
var _ref$className = _ref.className,
|
|
15
14
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
@@ -6,7 +6,7 @@ import _JSXStyle from "../styled-jsx.es.js";
|
|
|
6
6
|
/* "use client" */
|
|
7
7
|
|
|
8
8
|
import React, { useEffect, useRef, useState } from 'react';
|
|
9
|
-
import useTheme from '
|
|
9
|
+
import { useTheme } from '@helpdice/theme';
|
|
10
10
|
var ModalActionsComponent = function ModalActionsComponent(_ref) {
|
|
11
11
|
var children = _ref.children,
|
|
12
12
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -4,7 +4,7 @@ var _excluded = ["className", "children"];
|
|
|
4
4
|
import _JSXStyle from "../styled-jsx.es.js";
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import useScale, { withScale } from '../use-scale';
|
|
7
|
-
import useClasses from '
|
|
7
|
+
import { useClasses } from '@helpdice/theme';
|
|
8
8
|
var ModalContentComponent = function ModalContentComponent(_ref) {
|
|
9
9
|
var _ref$className = _ref.className,
|
|
10
10
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
@@ -3,7 +3,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
|
|
|
3
3
|
var _excluded = ["className", "children"];
|
|
4
4
|
import _JSXStyle from "../styled-jsx.es.js";
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import useTheme from '
|
|
6
|
+
import { useTheme } from '@helpdice/theme';
|
|
7
7
|
import useScale, { withScale } from '../use-scale';
|
|
8
8
|
var ModalSubtitleComponent = function ModalSubtitleComponent(_ref) {
|
|
9
9
|
var _ref$className = _ref.className,
|
package/esm/modal/modal-title.js
CHANGED
|
@@ -3,7 +3,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
|
|
|
3
3
|
var _excluded = ["className", "children"];
|
|
4
4
|
import _JSXStyle from "../styled-jsx.es.js";
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import useTheme from '
|
|
6
|
+
import { useTheme } from '@helpdice/theme';
|
|
7
7
|
import useScale, { withScale } from '../use-scale';
|
|
8
8
|
var ModalTitleComponent = function ModalTitleComponent(_ref) {
|
|
9
9
|
var _ref$className = _ref.className,
|
|
@@ -5,11 +5,9 @@ import _JSXStyle from "../styled-jsx.es.js";
|
|
|
5
5
|
/* "use client" */
|
|
6
6
|
|
|
7
7
|
import React, { useEffect, useRef } from 'react';
|
|
8
|
-
import useTheme from '
|
|
9
|
-
import CssTransition from '../shared/css-transition';
|
|
8
|
+
import { useTheme, useClasses, CssTransition } from '@helpdice/theme';
|
|
10
9
|
import { isChildElement } from '../utils/collections';
|
|
11
10
|
import useScale from '../use-scale';
|
|
12
|
-
import useClasses from '../use-classes';
|
|
13
11
|
var ModalWrapper = function ModalWrapper(_ref) {
|
|
14
12
|
var _ref$className = _ref.className,
|
|
15
13
|
className = _ref$className === void 0 ? '' : _ref$className,
|
package/esm/modal/modal.js
CHANGED
|
@@ -8,7 +8,7 @@ import usePortal from '../utils/use-portal';
|
|
|
8
8
|
import ModalWrapper from './modal-wrapper';
|
|
9
9
|
import ModalAction from './modal-action';
|
|
10
10
|
import ModalActions from './modal-actions';
|
|
11
|
-
import Backdrop from '
|
|
11
|
+
import { Backdrop } from '@helpdice/theme';
|
|
12
12
|
import { ModalContext } from './modal-context';
|
|
13
13
|
import { pickChild } from '../utils/collections';
|
|
14
14
|
import useBodyScroll from '../utils/use-body-scroll';
|
package/esm/note/note.js
CHANGED
|
@@ -3,9 +3,8 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
|
|
|
3
3
|
var _excluded = ["children", "type", "label", "filled", "className"];
|
|
4
4
|
import _JSXStyle from "../styled-jsx.es.js";
|
|
5
5
|
import React, { useMemo } from 'react';
|
|
6
|
-
import useTheme from '
|
|
6
|
+
import { useTheme, useClasses } from '@helpdice/theme';
|
|
7
7
|
import useScale, { withScale } from '../use-scale';
|
|
8
|
-
import useClasses from '../use-classes';
|
|
9
8
|
var getStatusColor = function getStatusColor(type, filled, theme) {
|
|
10
9
|
var colors = {
|
|
11
10
|
secondary: theme.palette.secondary,
|
package/esm/page/page-header.js
CHANGED
|
@@ -4,7 +4,7 @@ var _excluded = ["children", "center", "className"];
|
|
|
4
4
|
import _JSXStyle from "../styled-jsx.es.js";
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import useScale, { withScale } from '../use-scale';
|
|
7
|
-
import useClasses from '
|
|
7
|
+
import { useClasses } from '@helpdice/theme';
|
|
8
8
|
var PageHeaderComponent = function PageHeaderComponent(_ref) {
|
|
9
9
|
var children = _ref.children,
|
|
10
10
|
_ref$center = _ref.center,
|