@pingux/astro 2.142.1-alpha.1 → 2.143.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/components/AccordionGridGroup/AccordionGrid.styles.js +1 -2
- package/lib/cjs/components/AccordionGridGroup/AccordionGridGroup.stories.js +86 -5
- package/lib/cjs/components/AccordionGridItem/AccordionGridItemHeader.js +7 -5
- package/lib/cjs/components/AccordionGroup/AccordionGroup.js +5 -3
- package/lib/cjs/components/AccordionGroup/AccordionGroup.stories.js +3 -6
- package/lib/cjs/components/AccordionItem/AccordionItem.js +8 -4
- package/lib/cjs/components/AstroProvider/AstroProvider.js +3 -3
- package/lib/cjs/components/Breadcrumbs/Breadcrumbs.js +6 -2
- package/lib/cjs/components/Button/Button.stories.js +6 -3
- package/lib/cjs/components/Button/Buttons.styles.d.ts +40 -0
- package/lib/cjs/components/Button/Buttons.styles.js +2 -0
- package/lib/cjs/components/Card/Card.styles.d.ts +3 -0
- package/lib/cjs/components/Card/Card.styles.js +4 -1
- package/lib/cjs/components/CollapsiblePanel/CollapsiblePanel.stories.js +5 -1
- package/lib/cjs/components/CopyText/CopyButton.js +4 -1
- package/lib/cjs/components/CopyText/CopyText.js +2 -1
- package/lib/cjs/components/GridList/GridList.stories.js +0 -1
- package/lib/cjs/components/Icon/Icon.js +2 -1
- package/lib/cjs/components/Icon/Icon.stories.js +1 -1
- package/lib/cjs/components/IconBadge/IconBadge.js +4 -4
- package/lib/cjs/components/IconBadge/IconBadge.stories.js +2 -2
- package/lib/cjs/components/Input/Input.styles.js +3 -0
- package/lib/cjs/components/ListView/ListView.stories.js +27 -10
- package/lib/cjs/components/ListView/ListViewItem.js +1 -1
- package/lib/cjs/components/Loader/Loader.js +71 -5
- package/lib/cjs/components/Loader/Loader.stories.js +17 -2
- package/lib/cjs/components/Loader/Loader.styles.d.ts +7 -0
- package/lib/cjs/components/Loader/Loader.styles.js +11 -1
- package/lib/cjs/components/MultivaluesField/CondensedMultivaluesField.js +6 -4
- package/lib/cjs/components/MultivaluesField/DefaultMultivaluesField.js +26 -15
- package/lib/cjs/components/PageHeader/PageHeader.js +5 -2
- package/lib/cjs/components/PanelHeader/PanelHeader.js +43 -10
- package/lib/cjs/components/PanelHeader/PanelHeader.stories.js +9 -4
- package/lib/cjs/components/PanelHeader/PanelHeader.styles.js +5 -0
- package/lib/cjs/components/PanelHeader/PanelHeader.test.js +22 -0
- package/lib/cjs/components/RequirementsList/RequirementsList.js +11 -8
- package/lib/cjs/components/Stepper/Step.js +1 -1
- package/lib/cjs/components/Stepper/Stepper.styles.js +1 -0
- package/lib/cjs/components/Switch/Switch.js +12 -2
- package/lib/cjs/components/Switch/Switch.styles.js +1 -1
- package/lib/cjs/components/SwitchField/SwitchField.js +7 -2
- package/lib/cjs/components/TableBase/TableBase.d.ts +1 -7
- package/lib/cjs/components/TableBase/TableBase.js +96 -74
- package/lib/cjs/components/TableBase/TableBase.stories.js +45 -36
- package/lib/cjs/components/TableBase/TableBase.styles.d.ts +5 -7
- package/lib/cjs/components/TableBase/TableBase.styles.js +8 -3
- package/lib/cjs/components/TableBase/stories/NextGenTableBase.js +5 -2
- package/lib/cjs/components/Tabs/Tabs.stories.js +23 -7
- package/lib/cjs/components/Text/Text.stories.d.ts +1 -0
- package/lib/cjs/components/Text/Text.stories.js +354 -1
- package/lib/cjs/components/Text/Text.styles.d.ts +10 -0
- package/lib/cjs/components/Text/Text.styles.js +5 -0
- package/lib/cjs/components/TextField/TextField.stories.js +12 -2
- package/lib/cjs/hooks/useCircularLoader/useCircularLoader.d.ts +23 -0
- package/lib/cjs/hooks/useCircularLoader/useCircularLoader.js +80 -0
- package/lib/cjs/hooks/useCircularLoader/useCircularLoader.test.d.ts +1 -0
- package/lib/cjs/hooks/useCircularLoader/useCircularLoader.test.js +136 -0
- package/lib/cjs/hooks/useField/useField.d.ts +6 -6
- package/lib/cjs/hooks/useGetTheme/useGetTheme.d.ts +75 -0
- package/lib/cjs/hooks/usePagination/usePagination.d.ts +4 -4
- package/lib/cjs/styles/colors.d.ts +6 -0
- package/lib/cjs/styles/colors.js +4 -1
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/colors.d.ts +36 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/colors.js +23 -2
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/customProperties/icons.d.ts +5 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/customProperties/index.d.ts +17 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/customProperties/index.js +7 -1
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/buttons.d.ts +66 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/buttons.js +18 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/forms.d.ts +15 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/forms.js +18 -1
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/input.d.ts +0 -8
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/input.js +9 -9
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/links.d.ts +14 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/links.js +15 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.d.ts +10 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.js +11 -0
- package/lib/cjs/styles/themes/astro/customProperties/icons.d.ts +5 -0
- package/lib/cjs/styles/themes/astro/customProperties/icons.js +11 -4
- package/lib/cjs/styles/themes/astro/customProperties/index.d.ts +18 -0
- package/lib/cjs/styles/themes/astro/customProperties/index.js +26 -1
- package/lib/cjs/styles/themes/next-gen/codeView/codeView.d.ts +2 -0
- package/lib/cjs/styles/themes/next-gen/codeView/codeView.js +4 -2
- package/lib/cjs/styles/themes/next-gen/colors/colors.d.ts +37 -0
- package/lib/cjs/styles/themes/next-gen/colors/colors.js +5 -2
- package/lib/cjs/styles/themes/next-gen/colors/iconWrapper.js +14 -35
- package/lib/cjs/styles/themes/next-gen/colors/twoTone.d.ts +37 -0
- package/lib/cjs/styles/themes/next-gen/colors/twoTone.js +46 -0
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.d.ts +4 -1
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +6 -3
- package/lib/cjs/styles/themes/next-gen/customProperties/customSizes.d.ts +10 -0
- package/lib/cjs/styles/themes/next-gen/customProperties/customSizes.js +22 -0
- package/lib/cjs/styles/themes/next-gen/customProperties/icons.d.ts +5 -0
- package/lib/cjs/styles/themes/next-gen/customProperties/icons.js +10 -3
- package/lib/cjs/styles/themes/next-gen/customProperties/index.d.ts +17 -0
- package/lib/cjs/styles/themes/next-gen/customProperties/index.js +26 -4
- package/lib/cjs/styles/themes/next-gen/customProperties/tShirtSizes.js +4 -4
- package/lib/cjs/styles/themes/next-gen/forms.d.ts +42 -0
- package/lib/cjs/styles/themes/next-gen/forms.js +5 -0
- package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +1185 -881
- package/lib/cjs/styles/themes/next-gen/next-gen.js +1 -1
- package/lib/cjs/styles/themes/next-gen/text.js +2 -2
- package/lib/cjs/styles/themes/next-gen/variants/accordion.d.ts +16 -0
- package/lib/cjs/styles/themes/next-gen/variants/accordion.js +26 -0
- package/lib/cjs/styles/themes/next-gen/variants/badges.d.ts +0 -17
- package/lib/cjs/styles/themes/next-gen/variants/badges.js +1 -3
- package/lib/cjs/styles/themes/next-gen/variants/button.d.ts +151 -105
- package/lib/cjs/styles/themes/next-gen/variants/button.js +38 -7
- package/lib/cjs/styles/themes/next-gen/variants/cards.js +1 -1
- package/lib/cjs/styles/themes/next-gen/variants/input.js +16 -5
- package/lib/cjs/styles/themes/next-gen/variants/label.js +5 -3
- package/lib/cjs/styles/themes/next-gen/variants/links.d.ts +4 -2
- package/lib/cjs/styles/themes/next-gen/variants/listview.js +1 -1
- package/lib/cjs/styles/themes/next-gen/variants/panelHeader.d.ts +16 -0
- package/lib/cjs/styles/themes/next-gen/variants/panelHeader.js +26 -0
- package/lib/cjs/styles/themes/next-gen/variants/stepper.d.ts +66 -0
- package/lib/cjs/styles/themes/next-gen/variants/stepper.js +74 -0
- package/lib/cjs/styles/themes/next-gen/variants/switch.d.ts +36 -0
- package/lib/cjs/styles/themes/next-gen/variants/switch.js +44 -0
- package/lib/cjs/styles/themes/next-gen/variants/tableBase.d.ts +32 -22
- package/lib/cjs/styles/themes/next-gen/variants/tableBase.js +35 -23
- package/lib/cjs/styles/themes/next-gen/variants/text.d.ts +62 -0
- package/lib/cjs/styles/themes/next-gen/variants/text.js +67 -7
- package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +919 -752
- package/lib/cjs/styles/themes/next-gen/variants/variants.js +88 -38
- package/lib/cjs/types/loader.d.ts +5 -2
- package/lib/cjs/types/shared/style.d.ts +2 -0
- package/lib/cjs/types/tableBase.d.ts +4 -3
- package/lib/components/AccordionGridGroup/AccordionGrid.styles.js +1 -2
- package/lib/components/AccordionGridGroup/AccordionGridGroup.stories.js +86 -5
- package/lib/components/AccordionGridItem/AccordionGridItemHeader.js +6 -4
- package/lib/components/AccordionGroup/AccordionGroup.js +5 -3
- package/lib/components/AccordionGroup/AccordionGroup.stories.js +3 -6
- package/lib/components/AccordionItem/AccordionItem.js +8 -4
- package/lib/components/AstroProvider/AstroProvider.js +3 -3
- package/lib/components/Breadcrumbs/Breadcrumbs.js +7 -3
- package/lib/components/Button/Button.stories.js +4 -1
- package/lib/components/Button/Buttons.styles.js +2 -0
- package/lib/components/Card/Card.styles.js +4 -1
- package/lib/components/CollapsiblePanel/CollapsiblePanel.stories.js +5 -1
- package/lib/components/CopyText/CopyButton.js +4 -1
- package/lib/components/CopyText/CopyText.js +2 -1
- package/lib/components/GridList/GridList.stories.js +0 -1
- package/lib/components/Icon/Icon.js +2 -1
- package/lib/components/Icon/Icon.stories.js +1 -1
- package/lib/components/IconBadge/IconBadge.js +4 -4
- package/lib/components/IconBadge/IconBadge.stories.js +2 -2
- package/lib/components/Input/Input.styles.js +3 -0
- package/lib/components/ListView/ListView.stories.js +28 -11
- package/lib/components/ListView/ListViewItem.js +1 -1
- package/lib/components/Loader/Loader.js +71 -3
- package/lib/components/Loader/Loader.stories.js +13 -0
- package/lib/components/Loader/Loader.styles.js +11 -1
- package/lib/components/MultivaluesField/CondensedMultivaluesField.js +6 -4
- package/lib/components/MultivaluesField/DefaultMultivaluesField.js +27 -16
- package/lib/components/PageHeader/PageHeader.js +5 -2
- package/lib/components/PanelHeader/PanelHeader.js +44 -11
- package/lib/components/PanelHeader/PanelHeader.stories.js +9 -4
- package/lib/components/PanelHeader/PanelHeader.styles.js +5 -0
- package/lib/components/PanelHeader/PanelHeader.test.js +23 -1
- package/lib/components/RequirementsList/RequirementsList.js +7 -4
- package/lib/components/Stepper/Step.js +1 -1
- package/lib/components/Stepper/Stepper.styles.js +1 -0
- package/lib/components/Switch/Switch.js +12 -2
- package/lib/components/Switch/Switch.styles.js +1 -1
- package/lib/components/SwitchField/SwitchField.js +7 -2
- package/lib/components/TableBase/TableBase.js +100 -72
- package/lib/components/TableBase/TableBase.stories.js +46 -37
- package/lib/components/TableBase/TableBase.styles.js +8 -3
- package/lib/components/TableBase/stories/NextGenTableBase.js +6 -3
- package/lib/components/Tabs/Tabs.stories.js +23 -7
- package/lib/components/Text/Text.stories.js +352 -0
- package/lib/components/Text/Text.styles.js +5 -0
- package/lib/components/TextField/TextField.stories.js +12 -2
- package/lib/hooks/useCircularLoader/useCircularLoader.js +71 -0
- package/lib/hooks/useCircularLoader/useCircularLoader.test.js +129 -0
- package/lib/styles/colors.js +4 -1
- package/lib/styles/themeOverrides/nextGenDarkMode/colors.js +23 -2
- package/lib/styles/themeOverrides/nextGenDarkMode/customProperties/index.js +7 -1
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/buttons.js +18 -0
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/forms.js +18 -1
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/input.js +9 -9
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/links.js +15 -0
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/variants.js +11 -0
- package/lib/styles/themes/astro/customProperties/icons.js +12 -5
- package/lib/styles/themes/astro/customProperties/index.js +26 -1
- package/lib/styles/themes/next-gen/codeView/codeView.js +4 -2
- package/lib/styles/themes/next-gen/colors/colors.js +5 -2
- package/lib/styles/themes/next-gen/colors/iconWrapper.js +14 -35
- package/lib/styles/themes/next-gen/colors/twoTone.js +38 -0
- package/lib/styles/themes/next-gen/convertedComponentList.js +6 -3
- package/lib/styles/themes/next-gen/customProperties/customSizes.js +14 -0
- package/lib/styles/themes/next-gen/customProperties/icons.js +10 -3
- package/lib/styles/themes/next-gen/customProperties/index.js +26 -2
- package/lib/styles/themes/next-gen/customProperties/tShirtSizes.js +4 -4
- package/lib/styles/themes/next-gen/forms.js +5 -0
- package/lib/styles/themes/next-gen/next-gen.js +1 -1
- package/lib/styles/themes/next-gen/text.js +2 -2
- package/lib/styles/themes/next-gen/variants/accordion.js +18 -0
- package/lib/styles/themes/next-gen/variants/badges.js +1 -3
- package/lib/styles/themes/next-gen/variants/button.js +38 -7
- package/lib/styles/themes/next-gen/variants/cards.js +1 -1
- package/lib/styles/themes/next-gen/variants/input.js +16 -5
- package/lib/styles/themes/next-gen/variants/label.js +5 -3
- package/lib/styles/themes/next-gen/variants/listview.js +1 -1
- package/lib/styles/themes/next-gen/variants/panelHeader.js +18 -0
- package/lib/styles/themes/next-gen/variants/stepper.js +66 -0
- package/lib/styles/themes/next-gen/variants/switch.js +36 -0
- package/lib/styles/themes/next-gen/variants/tableBase.js +35 -23
- package/lib/styles/themes/next-gen/variants/text.js +67 -7
- package/lib/styles/themes/next-gen/variants/variants.js +82 -37
- package/package.json +1 -1
@@ -0,0 +1,136 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var _typeof = require("@babel/runtime-corejs3/helpers/typeof");
|
4
|
+
var _Object$keys = require("@babel/runtime-corejs3/core-js-stable/object/keys");
|
5
|
+
var _Object$getOwnPropertySymbols = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols");
|
6
|
+
var _filterInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/filter");
|
7
|
+
var _Object$getOwnPropertyDescriptor = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor");
|
8
|
+
var _forEachInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/for-each");
|
9
|
+
var _Object$getOwnPropertyDescriptors = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors");
|
10
|
+
var _Object$defineProperties = require("@babel/runtime-corejs3/core-js-stable/object/define-properties");
|
11
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
12
|
+
var _WeakMap = require("@babel/runtime-corejs3/core-js-stable/weak-map");
|
13
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
14
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
|
15
|
+
var _react = require("@testing-library/react");
|
16
|
+
var _useCircularLoader = _interopRequireWildcard(require("./useCircularLoader"));
|
17
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "function") return null; var cacheBabelInterop = new _WeakMap(); var cacheNodeInterop = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
18
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { _Object$defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
19
|
+
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
20
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
21
|
+
var nonCircleProps = {
|
22
|
+
isAstro: true,
|
23
|
+
defaultLoaderSize: 20
|
24
|
+
};
|
25
|
+
var circleProps = {
|
26
|
+
isAstro: false,
|
27
|
+
defaultLoaderSize: 20
|
28
|
+
};
|
29
|
+
var defaultProps = {
|
30
|
+
isAstro: false,
|
31
|
+
defaultLoaderSize: 20
|
32
|
+
};
|
33
|
+
test('astro theme returns isCircle = false ', function () {
|
34
|
+
var _renderHook = (0, _react.renderHook)(function () {
|
35
|
+
return (0, _useCircularLoader["default"])(_objectSpread({}, nonCircleProps));
|
36
|
+
}),
|
37
|
+
result = _renderHook.result;
|
38
|
+
expect(result.current.isCircle).toEqual(false);
|
39
|
+
});
|
40
|
+
test('mode = "dots" returns returns isCircle = false ', function () {
|
41
|
+
var _renderHook2 = (0, _react.renderHook)(function () {
|
42
|
+
return (0, _useCircularLoader["default"])(_objectSpread(_objectSpread({}, circleProps), {}, {
|
43
|
+
mode: 'dots'
|
44
|
+
}));
|
45
|
+
}),
|
46
|
+
result = _renderHook2.result;
|
47
|
+
expect(result.current.isCircle).toEqual(false);
|
48
|
+
});
|
49
|
+
test('numeric calcuations are correct', function () {
|
50
|
+
var _renderHook3 = (0, _react.renderHook)(function () {
|
51
|
+
return (0, _useCircularLoader["default"])(_objectSpread(_objectSpread({}, circleProps), {}, {
|
52
|
+
size: 120
|
53
|
+
}));
|
54
|
+
}),
|
55
|
+
result = _renderHook3.result;
|
56
|
+
var current = result.current;
|
57
|
+
var radius = current.radius,
|
58
|
+
strokeWidth = current.strokeWidth,
|
59
|
+
center = current.center,
|
60
|
+
size = current.size;
|
61
|
+
expect(radius).toEqual(45);
|
62
|
+
expect(center).toEqual(50);
|
63
|
+
expect(strokeWidth).toEqual(10);
|
64
|
+
expect(size).toEqual(100);
|
65
|
+
});
|
66
|
+
test('returns isCircle = false when mode is "dots"', function () {
|
67
|
+
var _renderHook4 = (0, _react.renderHook)(function () {
|
68
|
+
return (0, _useCircularLoader["default"])(_objectSpread(_objectSpread({}, defaultProps), {}, {
|
69
|
+
mode: 'dots'
|
70
|
+
}));
|
71
|
+
}),
|
72
|
+
result = _renderHook4.result;
|
73
|
+
expect(result.current.isCircle).toBe(false);
|
74
|
+
});
|
75
|
+
test('returns isCircle = false when isAstro is true', function () {
|
76
|
+
var _renderHook5 = (0, _react.renderHook)(function () {
|
77
|
+
return (0, _useCircularLoader["default"])(_objectSpread(_objectSpread({}, defaultProps), {}, {
|
78
|
+
isAstro: true
|
79
|
+
}));
|
80
|
+
}),
|
81
|
+
result = _renderHook5.result;
|
82
|
+
expect(result.current.isCircle).toBe(false);
|
83
|
+
});
|
84
|
+
test('calculates correct values for circular loader with size "sm"', function () {
|
85
|
+
var _renderHook6 = (0, _react.renderHook)(function () {
|
86
|
+
return (0, _useCircularLoader["default"])(_objectSpread(_objectSpread({}, defaultProps), {}, {
|
87
|
+
size: 'sm'
|
88
|
+
}));
|
89
|
+
}),
|
90
|
+
result = _renderHook6.result;
|
91
|
+
var size = result.current.size;
|
92
|
+
expect(size).toBeCloseTo(_useCircularLoader.circularSizes.sm * (10 / 12)); // Adjust based on actual calculation
|
93
|
+
});
|
94
|
+
|
95
|
+
test('calculates correct values for circular loader with size "lg"', function () {
|
96
|
+
var _renderHook7 = (0, _react.renderHook)(function () {
|
97
|
+
return (0, _useCircularLoader["default"])(_objectSpread(_objectSpread({}, defaultProps), {}, {
|
98
|
+
size: 'lg'
|
99
|
+
}));
|
100
|
+
}),
|
101
|
+
result = _renderHook7.result;
|
102
|
+
var size = result.current.size;
|
103
|
+
expect(size).toBeCloseTo(_useCircularLoader.circularSizes.lg * (10 / 12)); // Adjust based on actual calculation
|
104
|
+
});
|
105
|
+
|
106
|
+
test('uses defaultLoaderSize when size is not provided', function () {
|
107
|
+
var _renderHook8 = (0, _react.renderHook)(function () {
|
108
|
+
return (0, _useCircularLoader["default"])(_objectSpread({}, defaultProps));
|
109
|
+
}),
|
110
|
+
result = _renderHook8.result;
|
111
|
+
expect(result.current.size).toBe(defaultProps.defaultLoaderSize * (10 / 12));
|
112
|
+
});
|
113
|
+
test('calculates correct values for custom progress', function () {
|
114
|
+
var _renderHook9 = (0, _react.renderHook)(function () {
|
115
|
+
return (0, _useCircularLoader["default"])(_objectSpread(_objectSpread({}, defaultProps), {}, {
|
116
|
+
size: 120,
|
117
|
+
progress: 50
|
118
|
+
}));
|
119
|
+
}),
|
120
|
+
result = _renderHook9.result;
|
121
|
+
var _result$current = result.current,
|
122
|
+
dashLength = _result$current.dashLength,
|
123
|
+
gapLength = _result$current.gapLength,
|
124
|
+
radius = _result$current.radius;
|
125
|
+
expect(dashLength).toBeCloseTo(50 / 100 * 2 * Math.PI * radius); // Progress = 50%
|
126
|
+
expect(gapLength).toBeCloseTo(2 * Math.PI * radius);
|
127
|
+
});
|
128
|
+
test('returns correct size when size is a custom number', function () {
|
129
|
+
var _renderHook10 = (0, _react.renderHook)(function () {
|
130
|
+
return (0, _useCircularLoader["default"])(_objectSpread(_objectSpread({}, defaultProps), {}, {
|
131
|
+
size: 100
|
132
|
+
}));
|
133
|
+
}),
|
134
|
+
result = _renderHook10.result;
|
135
|
+
expect(result.current.size).toBeCloseTo(100 * (10 / 12)); // Adjust based on actual calculation
|
136
|
+
});
|
@@ -1165,9 +1165,6 @@ declare const useField: <T>(props: UseFieldProps<T>) => {
|
|
1165
1165
|
style?: React.CSSProperties | undefined;
|
1166
1166
|
slot?: string | undefined;
|
1167
1167
|
title?: string | undefined;
|
1168
|
-
id?: string | undefined;
|
1169
|
-
tabIndex?: number | undefined;
|
1170
|
-
hidden?: boolean | undefined;
|
1171
1168
|
key?: React.Key | null | undefined;
|
1172
1169
|
defaultChecked?: boolean | undefined;
|
1173
1170
|
defaultValue?: string | number | readonly string[] | undefined;
|
@@ -1179,10 +1176,13 @@ declare const useField: <T>(props: UseFieldProps<T>) => {
|
|
1179
1176
|
contextMenu?: string | undefined;
|
1180
1177
|
dir?: string | undefined;
|
1181
1178
|
draggable?: (boolean | "false" | "true") | undefined;
|
1179
|
+
hidden?: boolean | undefined;
|
1180
|
+
id?: string | undefined;
|
1182
1181
|
lang?: string | undefined;
|
1183
1182
|
nonce?: string | undefined;
|
1184
1183
|
placeholder?: string | undefined;
|
1185
1184
|
spellCheck?: (boolean | "false" | "true") | undefined;
|
1185
|
+
tabIndex?: number | undefined;
|
1186
1186
|
radioGroup?: string | undefined;
|
1187
1187
|
about?: string | undefined;
|
1188
1188
|
datatype?: string | undefined;
|
@@ -1484,9 +1484,6 @@ declare const useField: <T>(props: UseFieldProps<T>) => {
|
|
1484
1484
|
style?: React.CSSProperties | undefined;
|
1485
1485
|
slot?: string | undefined;
|
1486
1486
|
title?: string | undefined;
|
1487
|
-
id?: string | undefined;
|
1488
|
-
tabIndex?: number | undefined;
|
1489
|
-
hidden?: boolean | undefined;
|
1490
1487
|
key?: React.Key | null | undefined;
|
1491
1488
|
defaultChecked?: boolean | undefined;
|
1492
1489
|
defaultValue?: string | number | readonly string[] | undefined;
|
@@ -1498,10 +1495,13 @@ declare const useField: <T>(props: UseFieldProps<T>) => {
|
|
1498
1495
|
contextMenu?: string | undefined;
|
1499
1496
|
dir?: string | undefined;
|
1500
1497
|
draggable?: (boolean | "false" | "true") | undefined;
|
1498
|
+
hidden?: boolean | undefined;
|
1499
|
+
id?: string | undefined;
|
1501
1500
|
lang?: string | undefined;
|
1502
1501
|
nonce?: string | undefined;
|
1503
1502
|
placeholder?: string | undefined;
|
1504
1503
|
spellCheck?: (boolean | "false" | "true") | undefined;
|
1504
|
+
tabIndex?: number | undefined;
|
1505
1505
|
radioGroup?: string | undefined;
|
1506
1506
|
about?: string | undefined;
|
1507
1507
|
datatype?: string | undefined;
|
@@ -6,10 +6,76 @@ export declare const baseState: {
|
|
6
6
|
isCustom: boolean;
|
7
7
|
};
|
8
8
|
declare const useGetTheme: () => {
|
9
|
+
copyButtonSize: import("../..").IconSize;
|
10
|
+
breadcrumbIconSize: import("../..").IconSize;
|
11
|
+
breadcrumbIconMargin: string;
|
12
|
+
accordionItemMarginLeft: string;
|
13
|
+
pageHeaderTitleMargin: string;
|
14
|
+
defaultLoaderSize: number;
|
15
|
+
activeColor: string;
|
16
|
+
backgroundBaseColor: string;
|
17
|
+
styles: {
|
18
|
+
navButtonEstHeight: number;
|
19
|
+
};
|
20
|
+
icons: {
|
21
|
+
[x: number]: import("@pingux/mdi-react").MdiReactIconComponentType;
|
22
|
+
ErrorCircle: import("@pingux/mdi-react").MdiReactIconComponentType;
|
23
|
+
WarningIcon: import("@pingux/mdi-react").MdiReactIconComponentType;
|
24
|
+
DefaultCircle: import("@pingux/mdi-react").MdiReactIconComponentType;
|
25
|
+
SuccessCircle: import("@pingux/mdi-react").MdiReactIconComponentType;
|
26
|
+
CreateIcon: import("@pingux/mdi-react").MdiReactIconComponentType;
|
27
|
+
MenuDown: import("@pingux/mdi-react").MdiReactIconComponentType;
|
28
|
+
MenuUp: import("@pingux/mdi-react").MdiReactIconComponentType;
|
29
|
+
pingLogoHorizontalSmall: React.JSX.Element;
|
30
|
+
listViewMenu: import("@pingux/mdi-react").MdiReactIconComponentType;
|
31
|
+
Ascending: import("@pingux/mdi-react").MdiReactIconComponentType;
|
32
|
+
Descending: import("@pingux/mdi-react").MdiReactIconComponentType;
|
33
|
+
};
|
34
|
+
tShirtSizes: {
|
35
|
+
xxs: string;
|
36
|
+
'icon-100': string;
|
37
|
+
xs: string;
|
38
|
+
'icon-200': string;
|
39
|
+
sm: string;
|
40
|
+
'icon-300': string;
|
41
|
+
md: string;
|
42
|
+
'icon-400': string;
|
43
|
+
'icon-500': string;
|
44
|
+
'icon-600': string;
|
45
|
+
'icon-700': string;
|
46
|
+
'icon-800': string;
|
47
|
+
'icon-900': string;
|
48
|
+
};
|
49
|
+
iconBadgeCircleColor: string;
|
50
|
+
iconWrapperSizes: {
|
51
|
+
sm: number;
|
52
|
+
md: number;
|
53
|
+
lg: number;
|
54
|
+
};
|
55
|
+
defaultIconColor: string;
|
56
|
+
accordionItemDefaultLabelTag: string;
|
57
|
+
iFrameContentDivBackgroundColor: string;
|
58
|
+
rockerButtonGap: string;
|
59
|
+
themeState: {
|
60
|
+
isOnyx: boolean;
|
61
|
+
isAstro: boolean;
|
62
|
+
isOnyxDark: boolean;
|
63
|
+
isCustom: boolean;
|
64
|
+
};
|
65
|
+
name: string;
|
66
|
+
} | {
|
67
|
+
accordionItemDefaultLabelTag: string;
|
68
|
+
activeColor: string;
|
69
|
+
backgroundBaseColor: string;
|
9
70
|
icons: {
|
10
71
|
[x: number]: import("@pingux/mdi-react").MdiReactIconComponentType;
|
72
|
+
ErrorCircle: import("@pingux/mdi-react").MdiReactIconComponentType;
|
73
|
+
WarningIcon: import("@pingux/mdi-react").MdiReactIconComponentType;
|
74
|
+
DefaultCircle: import("@pingux/mdi-react").MdiReactIconComponentType;
|
75
|
+
SuccessCircle: import("@pingux/mdi-react").MdiReactIconComponentType;
|
11
76
|
MenuDown: import("@pingux/mdi-react").MdiReactIconComponentType;
|
12
77
|
MenuUp: import("@pingux/mdi-react").MdiReactIconComponentType;
|
78
|
+
CreateIcon: import("@pingux/mdi-react").MdiReactIconComponentType;
|
13
79
|
pingLogoHorizontalSmall: React.JSX.Element;
|
14
80
|
listViewMenu: import("@pingux/mdi-react").MdiReactIconComponentType;
|
15
81
|
Ascending: import("@pingux/mdi-react").MdiReactIconComponentType;
|
@@ -24,12 +90,21 @@ declare const useGetTheme: () => {
|
|
24
90
|
sm: string;
|
25
91
|
md: string;
|
26
92
|
};
|
93
|
+
iconBadgeCircleColor: string;
|
27
94
|
iconWrapperSizes: {
|
28
95
|
sm: number;
|
29
96
|
md: number;
|
30
97
|
lg: number;
|
31
98
|
};
|
99
|
+
iFrameContentDivBackgroundColor: string;
|
100
|
+
copyButtonSize: import("../..").IconSize;
|
101
|
+
pageHeaderTitleMargin: string;
|
102
|
+
breadcrumbIconSize: import("../..").IconSize;
|
103
|
+
breadcrumbIconMargin: number;
|
32
104
|
rockerButtonGap: string;
|
105
|
+
accordionItemMarginLeft: string;
|
106
|
+
defaultLoaderSize: number;
|
107
|
+
defaultIconColor: string;
|
33
108
|
name: string;
|
34
109
|
themeState: {
|
35
110
|
isAstro: boolean;
|
@@ -91,8 +91,6 @@ declare const usePagination: (props: PaginationProps) => {
|
|
91
91
|
style?: import("react").CSSProperties | undefined;
|
92
92
|
slot?: string | undefined;
|
93
93
|
title?: string | undefined;
|
94
|
-
id?: string | undefined;
|
95
|
-
hidden?: boolean | undefined;
|
96
94
|
key?: import("react").Key | null | undefined;
|
97
95
|
disabled?: boolean | undefined;
|
98
96
|
formAction?: string | undefined;
|
@@ -113,6 +111,8 @@ declare const usePagination: (props: PaginationProps) => {
|
|
113
111
|
contextMenu?: string | undefined;
|
114
112
|
dir?: string | undefined;
|
115
113
|
draggable?: (boolean | "false" | "true") | undefined;
|
114
|
+
hidden?: boolean | undefined;
|
115
|
+
id?: string | undefined;
|
116
116
|
lang?: string | undefined;
|
117
117
|
nonce?: string | undefined;
|
118
118
|
placeholder?: string | undefined;
|
@@ -420,8 +420,6 @@ declare const usePagination: (props: PaginationProps) => {
|
|
420
420
|
style?: import("react").CSSProperties | undefined;
|
421
421
|
slot?: string | undefined;
|
422
422
|
title?: string | undefined;
|
423
|
-
id?: string | undefined;
|
424
|
-
hidden?: boolean | undefined;
|
425
423
|
key?: import("react").Key | null | undefined;
|
426
424
|
disabled?: boolean | undefined;
|
427
425
|
formAction?: string | undefined;
|
@@ -442,6 +440,8 @@ declare const usePagination: (props: PaginationProps) => {
|
|
442
440
|
contextMenu?: string | undefined;
|
443
441
|
dir?: string | undefined;
|
444
442
|
draggable?: (boolean | "false" | "true") | undefined;
|
443
|
+
hidden?: boolean | undefined;
|
444
|
+
id?: string | undefined;
|
445
445
|
lang?: string | undefined;
|
446
446
|
nonce?: string | undefined;
|
447
447
|
placeholder?: string | undefined;
|
@@ -103,6 +103,9 @@ declare const allColors: {
|
|
103
103
|
badge: {
|
104
104
|
textColor: string;
|
105
105
|
background: string;
|
106
|
+
readOnly: string;
|
107
|
+
iconBadge: string;
|
108
|
+
iconBadgeFill: string;
|
106
109
|
};
|
107
110
|
white: string;
|
108
111
|
neutral: {
|
@@ -213,6 +216,9 @@ export declare const getBaseHexColor: (colorName: string) => string | {
|
|
213
216
|
badge: {
|
214
217
|
textColor: string;
|
215
218
|
background: string;
|
219
|
+
readOnly: string;
|
220
|
+
iconBadge: string;
|
221
|
+
iconBadgeFill: string;
|
216
222
|
};
|
217
223
|
white: string;
|
218
224
|
neutral: {
|
package/lib/cjs/styles/colors.js
CHANGED
@@ -144,7 +144,10 @@ var shadow = (0, _chromaJs["default"])(neutral[10]).alpha(0.25).hex();
|
|
144
144
|
exports.shadow = shadow;
|
145
145
|
var badge = {
|
146
146
|
textColor: 'white',
|
147
|
-
background: neutral[10]
|
147
|
+
background: neutral[10],
|
148
|
+
readOnly: 'white',
|
149
|
+
iconBadge: 'white',
|
150
|
+
iconBadgeFill: accent[40]
|
148
151
|
};
|
149
152
|
var tooltip = accent[20];
|
150
153
|
var allColors = {
|
@@ -5,6 +5,42 @@ export declare const overrides: {
|
|
5
5
|
disabled: string;
|
6
6
|
};
|
7
7
|
export declare const colors: {
|
8
|
+
twoTone: {
|
9
|
+
bg: {
|
10
|
+
orange: string;
|
11
|
+
cyan: string;
|
12
|
+
green: string;
|
13
|
+
purple: string;
|
14
|
+
pink: string;
|
15
|
+
red: string;
|
16
|
+
yellow: string;
|
17
|
+
teal: string;
|
18
|
+
blue: string;
|
19
|
+
indigo: string;
|
20
|
+
lightBlue: string;
|
21
|
+
lightPink: string;
|
22
|
+
lightGreen: string;
|
23
|
+
lightYellow: string;
|
24
|
+
lightIndigo: string;
|
25
|
+
};
|
26
|
+
text: {
|
27
|
+
orange: string;
|
28
|
+
cyan: string;
|
29
|
+
green: string;
|
30
|
+
purple: string;
|
31
|
+
pink: string;
|
32
|
+
red: string;
|
33
|
+
yellow: string;
|
34
|
+
teal: string;
|
35
|
+
blue: string;
|
36
|
+
indigo: string;
|
37
|
+
lightBlue: string;
|
38
|
+
lightPink: string;
|
39
|
+
lightGreen: string;
|
40
|
+
lightYellow: string;
|
41
|
+
lightIndigo: string;
|
42
|
+
};
|
43
|
+
};
|
8
44
|
light: string;
|
9
45
|
secondary: string;
|
10
46
|
dark: string;
|
@@ -41,8 +41,8 @@ var badge = {
|
|
41
41
|
background: _colorTokens.nextGenColors['gray-800'],
|
42
42
|
textColor: _colorTokens.nextGenColors['gray-100']
|
43
43
|
};
|
44
|
-
var
|
45
|
-
|
44
|
+
var twoTone = {
|
45
|
+
bg: {
|
46
46
|
orange: _colorTokens.nextGenColors['orange-500'],
|
47
47
|
cyan: _colorTokens.nextGenColors['cyan-500'],
|
48
48
|
green: _colorTokens.nextGenColors['green-500'],
|
@@ -59,6 +59,26 @@ var iconWrapper = {
|
|
59
59
|
lightYellow: _colorTokens.nextGenColors['yellow-800'],
|
60
60
|
lightIndigo: _colorTokens.nextGenColors['indigo-700']
|
61
61
|
},
|
62
|
+
text: {
|
63
|
+
orange: 'black',
|
64
|
+
cyan: 'black',
|
65
|
+
green: 'black',
|
66
|
+
purple: 'black',
|
67
|
+
pink: 'black',
|
68
|
+
red: 'black',
|
69
|
+
yellow: 'black',
|
70
|
+
teal: 'black',
|
71
|
+
blue: 'black',
|
72
|
+
indigo: 'black',
|
73
|
+
lightBlue: 'black',
|
74
|
+
lightPink: 'black',
|
75
|
+
lightGreen: 'black',
|
76
|
+
lightYellow: 'black',
|
77
|
+
lightIndigo: 'black'
|
78
|
+
}
|
79
|
+
};
|
80
|
+
var iconWrapper = {
|
81
|
+
wrapper: _objectSpread({}, twoTone.bg),
|
62
82
|
icon: {
|
63
83
|
orange: 'black',
|
64
84
|
cyan: 'black',
|
@@ -81,6 +101,7 @@ var colors = _objectSpread(_objectSpread({
|
|
81
101
|
border: border,
|
82
102
|
iconWrapper: iconWrapper
|
83
103
|
}, overrides), {}, {
|
104
|
+
twoTone: twoTone,
|
84
105
|
light: _colorTokens.nextGenColors['gray-900'],
|
85
106
|
secondary: _colorTokens.nextGenColors['gray-400'],
|
86
107
|
dark: _colorTokens.nextGenColors['gray-400'],
|
@@ -1,6 +1,11 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
declare const _default: {
|
3
3
|
pingLogoHorizontalSmall: import("react").JSX.Element;
|
4
|
+
ErrorCircle: import("@pingux/mdi-react").MdiReactIconComponentType;
|
5
|
+
WarningIcon: import("@pingux/mdi-react").MdiReactIconComponentType;
|
6
|
+
DefaultCircle: import("@pingux/mdi-react").MdiReactIconComponentType;
|
7
|
+
SuccessCircle: import("@pingux/mdi-react").MdiReactIconComponentType;
|
8
|
+
CreateIcon: import("@pingux/mdi-react").MdiReactIconComponentType;
|
4
9
|
MenuDown: import("@pingux/mdi-react").MdiReactIconComponentType;
|
5
10
|
MenuUp: import("@pingux/mdi-react").MdiReactIconComponentType;
|
6
11
|
listViewMenu: import("@pingux/mdi-react").MdiReactIconComponentType;
|
@@ -1,13 +1,28 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
export declare const nextGenDarkThemeValues: {
|
3
|
+
backgroundBaseColor: string;
|
4
|
+
iFrameContentDivBackgroundColor: string;
|
3
5
|
icons: {
|
4
6
|
pingLogoHorizontalSmall: import("react").JSX.Element;
|
7
|
+
ErrorCircle: import("@pingux/mdi-react").MdiReactIconComponentType;
|
8
|
+
WarningIcon: import("@pingux/mdi-react").MdiReactIconComponentType;
|
9
|
+
DefaultCircle: import("@pingux/mdi-react").MdiReactIconComponentType;
|
10
|
+
SuccessCircle: import("@pingux/mdi-react").MdiReactIconComponentType;
|
11
|
+
CreateIcon: import("@pingux/mdi-react").MdiReactIconComponentType;
|
5
12
|
MenuDown: import("@pingux/mdi-react").MdiReactIconComponentType;
|
6
13
|
MenuUp: import("@pingux/mdi-react").MdiReactIconComponentType;
|
7
14
|
listViewMenu: import("@pingux/mdi-react").MdiReactIconComponentType;
|
8
15
|
Ascending: import("@pingux/mdi-react").MdiReactIconComponentType;
|
9
16
|
Descending: import("@pingux/mdi-react").MdiReactIconComponentType;
|
10
17
|
};
|
18
|
+
defaultIconColor: string;
|
19
|
+
copyButtonSize: import("../../../..").IconSize;
|
20
|
+
breadcrumbIconSize: import("../../../..").IconSize;
|
21
|
+
breadcrumbIconMargin: string;
|
22
|
+
accordionItemMarginLeft: string;
|
23
|
+
pageHeaderTitleMargin: string;
|
24
|
+
defaultLoaderSize: number;
|
25
|
+
activeColor: string;
|
11
26
|
styles: {
|
12
27
|
navButtonEstHeight: number;
|
13
28
|
};
|
@@ -26,10 +41,12 @@ export declare const nextGenDarkThemeValues: {
|
|
26
41
|
'icon-800': string;
|
27
42
|
'icon-900': string;
|
28
43
|
};
|
44
|
+
iconBadgeCircleColor: string;
|
29
45
|
iconWrapperSizes: {
|
30
46
|
sm: number;
|
31
47
|
md: number;
|
32
48
|
lg: number;
|
33
49
|
};
|
50
|
+
accordionItemDefaultLabelTag: string;
|
34
51
|
rockerButtonGap: string;
|
35
52
|
};
|
@@ -18,7 +18,13 @@ var _customProperties = require("../../../themes/next-gen/customProperties");
|
|
18
18
|
var _icons = _interopRequireDefault(require("./icons"));
|
19
19
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
20
20
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
21
|
+
var backgroundBaseColor = '#23282e';
|
22
|
+
var defaultIconColor = 'gray-400';
|
23
|
+
var iFrameContentDivBackgroundColor = backgroundBaseColor;
|
21
24
|
var nextGenDarkThemeValues = _objectSpread(_objectSpread({}, _customProperties.nextGenThemeValues), {}, {
|
22
|
-
|
25
|
+
backgroundBaseColor: backgroundBaseColor,
|
26
|
+
iFrameContentDivBackgroundColor: iFrameContentDivBackgroundColor,
|
27
|
+
icons: _icons["default"],
|
28
|
+
defaultIconColor: defaultIconColor
|
23
29
|
});
|
24
30
|
exports.nextGenDarkThemeValues = nextGenDarkThemeValues;
|
@@ -213,6 +213,49 @@ declare const buttons: {
|
|
213
213
|
};
|
214
214
|
};
|
215
215
|
};
|
216
|
+
inverted: {
|
217
|
+
borderColor: string;
|
218
|
+
path: {
|
219
|
+
fill: string;
|
220
|
+
};
|
221
|
+
'&.is-pressed': {
|
222
|
+
backgroundColor: string;
|
223
|
+
borderColor: string;
|
224
|
+
};
|
225
|
+
'&.is-hovered': {
|
226
|
+
border: string;
|
227
|
+
borderColor: string;
|
228
|
+
backgroundColor: string;
|
229
|
+
};
|
230
|
+
'&.is-focused': {
|
231
|
+
outline: string;
|
232
|
+
outlineColor: string;
|
233
|
+
outlineOffset: string;
|
234
|
+
};
|
235
|
+
};
|
236
|
+
hintButton: {
|
237
|
+
path: {
|
238
|
+
fill: string;
|
239
|
+
};
|
240
|
+
'&.is-focused': {
|
241
|
+
outline: string;
|
242
|
+
outlineColor: string;
|
243
|
+
outlineOffset: string;
|
244
|
+
};
|
245
|
+
'&.is-hovered': {
|
246
|
+
path: {
|
247
|
+
fill: string;
|
248
|
+
};
|
249
|
+
backgroundColor: string;
|
250
|
+
};
|
251
|
+
'&.is-pressed': {
|
252
|
+
backgroundColor: string;
|
253
|
+
borderColor: string;
|
254
|
+
path: {
|
255
|
+
fill: string;
|
256
|
+
};
|
257
|
+
};
|
258
|
+
};
|
216
259
|
nextGen: {
|
217
260
|
'&.is-hovered': {
|
218
261
|
path: {
|
@@ -252,6 +295,29 @@ declare const buttons: {
|
|
252
295
|
};
|
253
296
|
};
|
254
297
|
};
|
298
|
+
modalCloseButton: {
|
299
|
+
path: {
|
300
|
+
fill: string;
|
301
|
+
};
|
302
|
+
'&.is-focused': {
|
303
|
+
outline: string;
|
304
|
+
outlineColor: string;
|
305
|
+
outlineOffset: string;
|
306
|
+
};
|
307
|
+
'&.is-hovered': {
|
308
|
+
path: {
|
309
|
+
fill: string;
|
310
|
+
};
|
311
|
+
backgroundColor: string;
|
312
|
+
};
|
313
|
+
'&.is-pressed': {
|
314
|
+
backgroundColor: string;
|
315
|
+
borderColor: string;
|
316
|
+
path: {
|
317
|
+
fill: string;
|
318
|
+
};
|
319
|
+
};
|
320
|
+
};
|
255
321
|
messageCloseButton: {
|
256
322
|
'&.is-hovered': {
|
257
323
|
backgroundColor: string;
|
@@ -41,8 +41,25 @@ var baseIconButton = {
|
|
41
41
|
}
|
42
42
|
}
|
43
43
|
};
|
44
|
+
var hintButton = _objectSpread({}, baseIconButton);
|
44
45
|
var iconButtons = {
|
45
46
|
base: _objectSpread({}, baseIconButton),
|
47
|
+
inverted: _objectSpread(_objectSpread({}, baseIconButton), {}, {
|
48
|
+
borderColor: 'transparent !important',
|
49
|
+
path: {
|
50
|
+
fill: 'black'
|
51
|
+
},
|
52
|
+
'&.is-pressed': {
|
53
|
+
backgroundColor: _chromaJs["default"].mix('white', 'black', 0.125, 'rgb').hex(),
|
54
|
+
borderColor: _chromaJs["default"].mix('white', 'black', 0.125, 'rgb').hex()
|
55
|
+
},
|
56
|
+
'&.is-hovered': {
|
57
|
+
border: 'none !important',
|
58
|
+
borderColor: 'none !important',
|
59
|
+
backgroundColor: 'white'
|
60
|
+
}
|
61
|
+
}),
|
62
|
+
hintButton: hintButton,
|
46
63
|
nextGen: {
|
47
64
|
'&.is-hovered': {
|
48
65
|
path: {
|
@@ -67,6 +84,7 @@ var iconButtons = {
|
|
67
84
|
backgroundColor: 'gray-700'
|
68
85
|
}
|
69
86
|
}),
|
87
|
+
modalCloseButton: _objectSpread({}, baseIconButton),
|
70
88
|
messageCloseButton: _objectSpread(_objectSpread({}, baseIconButton), {}, {
|
71
89
|
'&.is-hovered': {
|
72
90
|
backgroundColor: '#455469'
|
@@ -32,6 +32,14 @@ declare const _default: {
|
|
32
32
|
color: string;
|
33
33
|
};
|
34
34
|
};
|
35
|
+
label: {
|
36
|
+
radioGroup: {
|
37
|
+
color: string;
|
38
|
+
};
|
39
|
+
radio: {
|
40
|
+
color: string;
|
41
|
+
};
|
42
|
+
};
|
35
43
|
select: {
|
36
44
|
option: {
|
37
45
|
backgroundColor: string;
|
@@ -64,5 +72,12 @@ declare const _default: {
|
|
64
72
|
color: string;
|
65
73
|
};
|
66
74
|
};
|
75
|
+
switch: {
|
76
|
+
thumb: {
|
77
|
+
'&.is-selected': {
|
78
|
+
bg: string;
|
79
|
+
};
|
80
|
+
};
|
81
|
+
};
|
67
82
|
};
|
68
83
|
export default _default;
|