@pingux/astro 2.143.0-alpha.0 → 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/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/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 +5 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.js +5 -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 +1151 -857
- 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/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 +900 -743
- 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/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/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/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 +5 -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/text.js +67 -7
- package/lib/styles/themes/next-gen/variants/variants.js +82 -37
- package/package.json +1 -1
@@ -47,11 +47,16 @@ var wrapper = {
|
|
47
47
|
var rightOfData = {
|
48
48
|
alignSelf: 'center'
|
49
49
|
};
|
50
|
+
var iconWrapper = {
|
51
|
+
width: '25px',
|
52
|
+
mx: 'md'
|
53
|
+
};
|
50
54
|
var _default = {
|
51
55
|
container: container,
|
52
56
|
controls: controls,
|
53
57
|
data: data,
|
54
58
|
emptyData: emptyData,
|
59
|
+
iconWrapper: iconWrapper,
|
55
60
|
rightOfData: rightOfData,
|
56
61
|
wrapper: wrapper
|
57
62
|
};
|
@@ -39,6 +39,12 @@ var getComponent = function getComponent() {
|
|
39
39
|
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
40
40
|
return (0, _testWrapper.render)((0, _react3.jsx)(_index.PanelHeader, (0, _extends2["default"])({}, defaultProps, props)));
|
41
41
|
};
|
42
|
+
var getComponentOnyx = function getComponentOnyx() {
|
43
|
+
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
44
|
+
return (0, _testWrapper.render)((0, _react3.jsx)(_index.AstroProvider, {
|
45
|
+
themeOverrides: [_index.OnyxTheme]
|
46
|
+
}, (0, _react3.jsx)(_index.PanelHeader, (0, _extends2["default"])({}, defaultProps, props))));
|
47
|
+
};
|
42
48
|
var fallbackImageObj = null;
|
43
49
|
jest.mock('../../hooks/useFallbackImage', function () {
|
44
50
|
return function (props) {
|
@@ -100,4 +106,20 @@ test('renders rightOfData slot', function () {
|
|
100
106
|
}
|
101
107
|
});
|
102
108
|
_testWrapper.screen.getByText(TEST_TEXT);
|
109
|
+
});
|
110
|
+
test('renders leftOfData slot', function () {
|
111
|
+
var TEST_TEXT = 'test text';
|
112
|
+
getComponent({
|
113
|
+
slots: {
|
114
|
+
leftOfData: (0, _react3.jsx)("div", null, TEST_TEXT)
|
115
|
+
}
|
116
|
+
});
|
117
|
+
_testWrapper.screen.getByText(TEST_TEXT);
|
118
|
+
});
|
119
|
+
test('renders onyx components', function () {
|
120
|
+
getComponentOnyx();
|
121
|
+
var image = _testWrapper.screen.getByRole('img');
|
122
|
+
expect(image.tagName.toLowerCase()).toBe('img');
|
123
|
+
expect(image).toHaveAttribute('src', _images.pingImg);
|
124
|
+
expect(image).toHaveAttribute('alt', 'Avatar');
|
103
125
|
});
|
@@ -13,11 +13,8 @@ var _map = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable
|
|
13
13
|
var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
|
14
14
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/objectWithoutProperties"));
|
15
15
|
var _react = _interopRequireWildcard(require("react"));
|
16
|
-
var _AlertCircleIcon = _interopRequireDefault(require("@pingux/mdi-react/AlertCircleIcon"));
|
17
|
-
var _AlertOutlineIcon = _interopRequireDefault(require("@pingux/mdi-react/AlertOutlineIcon"));
|
18
|
-
var _CheckboxBlankCircleOutlineIcon = _interopRequireDefault(require("@pingux/mdi-react/CheckboxBlankCircleOutlineIcon"));
|
19
|
-
var _CheckCircleIcon = _interopRequireDefault(require("@pingux/mdi-react/CheckCircleIcon"));
|
20
16
|
var _kebabCase = _interopRequireDefault(require("lodash/kebabCase"));
|
17
|
+
var _hooks = require("../../hooks");
|
21
18
|
var _Box = _interopRequireDefault(require("../Box"));
|
22
19
|
var _Icon = _interopRequireDefault(require("../Icon"));
|
23
20
|
var _Text = _interopRequireDefault(require("../Text"));
|
@@ -28,6 +25,12 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
28
25
|
var RequirementsList = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
29
26
|
var requirements = props.requirements,
|
30
27
|
others = (0, _objectWithoutProperties2["default"])(props, _excluded);
|
28
|
+
var _useGetTheme = (0, _hooks.useGetTheme)(),
|
29
|
+
icons = _useGetTheme.icons;
|
30
|
+
var SuccessCircle = icons.SuccessCircle,
|
31
|
+
ErrorCircle = icons.ErrorCircle,
|
32
|
+
WarningIcon = icons.WarningIcon,
|
33
|
+
DefaultCircle = icons.DefaultCircle;
|
31
34
|
var statusIconRender = function statusIconRender(status, key) {
|
32
35
|
switch (status) {
|
33
36
|
case 'success':
|
@@ -36,7 +39,7 @@ var RequirementsList = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref)
|
|
36
39
|
id: key,
|
37
40
|
name: 'Success Status Icon'
|
38
41
|
},
|
39
|
-
icon:
|
42
|
+
icon: SuccessCircle,
|
40
43
|
color: "success.bright",
|
41
44
|
mr: "sm",
|
42
45
|
size: "sm",
|
@@ -48,7 +51,7 @@ var RequirementsList = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref)
|
|
48
51
|
id: key,
|
49
52
|
name: 'Warning Status Icon'
|
50
53
|
},
|
51
|
-
icon:
|
54
|
+
icon: WarningIcon,
|
52
55
|
color: "warning.bright",
|
53
56
|
mr: "sm",
|
54
57
|
size: "sm",
|
@@ -60,7 +63,7 @@ var RequirementsList = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref)
|
|
60
63
|
id: key,
|
61
64
|
name: 'Error Status Icon'
|
62
65
|
},
|
63
|
-
icon:
|
66
|
+
icon: ErrorCircle,
|
64
67
|
color: "critical.bright",
|
65
68
|
mr: "sm",
|
66
69
|
size: "sm",
|
@@ -72,7 +75,7 @@ var RequirementsList = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref)
|
|
72
75
|
id: key,
|
73
76
|
name: 'Empty Status Icon'
|
74
77
|
},
|
75
|
-
icon:
|
78
|
+
icon: DefaultCircle,
|
76
79
|
color: "neutral.40",
|
77
80
|
mr: "sm",
|
78
81
|
size: "sm",
|
@@ -39,7 +39,7 @@ var Step = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
39
39
|
className: className
|
40
40
|
}), status === COMPLETED && !isHovered ? (0, _react2.jsx)(_index.Icon, {
|
41
41
|
icon: _CheckBoldIcon["default"],
|
42
|
-
size:
|
42
|
+
size: "sm",
|
43
43
|
color: "text.primaryLight",
|
44
44
|
title: {
|
45
45
|
name: 'Check Bold Icon'
|
@@ -13,6 +13,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/e
|
|
13
13
|
var _react = _interopRequireWildcard(require("react"));
|
14
14
|
var _reactAria = require("react-aria");
|
15
15
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
16
|
+
var _hooks = require("../../hooks");
|
16
17
|
var _Box = _interopRequireDefault(require("../Box"));
|
17
18
|
var _react2 = require("@emotion/react");
|
18
19
|
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); }
|
@@ -24,21 +25,30 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
24
25
|
*
|
25
26
|
* **Note: Requires a label. It's recommended to use `SwitchField` for a complete solution.**
|
26
27
|
*/var Switch = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
27
|
-
var inputProps = props.inputProps
|
28
|
+
var inputProps = props.inputProps,
|
29
|
+
isSelected = props.isSelected;
|
30
|
+
var _useStatusClasses = (0, _hooks.useStatusClasses)('', {
|
31
|
+
isSelected: isSelected
|
32
|
+
}),
|
33
|
+
classNames = _useStatusClasses.classNames;
|
28
34
|
return (0, _react2.jsx)(_Box["default"], (0, _extends2["default"])({
|
35
|
+
className: classNames,
|
29
36
|
variant: "forms.switch.container"
|
30
37
|
}, props), (0, _react2.jsx)(_reactAria.VisuallyHidden, null, (0, _react2.jsx)(_Box["default"], (0, _extends2["default"])({
|
31
38
|
as: "input"
|
32
39
|
}, inputProps, {
|
33
40
|
ref: ref
|
34
41
|
}))), (0, _react2.jsx)(_Box["default"], {
|
42
|
+
className: classNames,
|
35
43
|
variant: "forms.switch.thumbContainer"
|
36
44
|
}, (0, _react2.jsx)(_Box["default"], {
|
45
|
+
className: classNames,
|
37
46
|
variant: "forms.switch.thumb"
|
38
47
|
})));
|
39
48
|
});
|
40
49
|
Switch.propTypes = {
|
41
|
-
inputProps: _propTypes["default"].shape({})
|
50
|
+
inputProps: _propTypes["default"].shape({}),
|
51
|
+
isSelected: _propTypes["default"].bool
|
42
52
|
};
|
43
53
|
Switch.displayName = 'Switch';
|
44
54
|
var _default = Switch;
|
@@ -61,8 +61,9 @@ var SwitchField = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
61
61
|
'aria-label': others['aria-label'] || 'switch-field'
|
62
62
|
}), state, switchRef),
|
63
63
|
inputProps = _useSwitch.inputProps;
|
64
|
+
var isSelected = (_inputProps$checked = inputProps.checked) !== null && _inputProps$checked !== void 0 ? _inputProps$checked : false;
|
64
65
|
var statusClasses = {
|
65
|
-
isSelected:
|
66
|
+
isSelected: isSelected
|
66
67
|
};
|
67
68
|
var _useField = (0, _hooks.useField)(_objectSpread(_objectSpread(_objectSpread({
|
68
69
|
statusClasses: statusClasses
|
@@ -77,7 +78,10 @@ var SwitchField = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
77
78
|
'aria-controls': others['aria-controls'],
|
78
79
|
'aria-errormessage': others['aria-errormessage']
|
79
80
|
};
|
80
|
-
return (0, _react2.jsx)(_.Box, (0, _extends2["default"])({}, (0, _pendoID.getPendoID)(displayName), fieldContainerProps
|
81
|
+
return (0, _react2.jsx)(_.Box, (0, _extends2["default"])({}, (0, _pendoID.getPendoID)(displayName), fieldContainerProps, {
|
82
|
+
alignSelf: "top",
|
83
|
+
alignItems: "start"
|
84
|
+
}), (0, _react2.jsx)(_.Label, (0, _extends2["default"])({
|
81
85
|
variant: "forms.switch.label"
|
82
86
|
}, fieldLabelProps), (0, _react2.jsx)(_.Box, (0, _extends2["default"])({}, fieldControlWrapperProps, {
|
83
87
|
sx: _objectSpread(_objectSpread({}, fieldControlWrapperProps.sx), {}, {
|
@@ -85,6 +89,7 @@ var SwitchField = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
85
89
|
})
|
86
90
|
}), (0, _react2.jsx)(_.Switch, (0, _extends2["default"])({
|
87
91
|
ref: switchRef,
|
92
|
+
isSelected: isSelected,
|
88
93
|
inputProps: fieldControlInputProps,
|
89
94
|
name: name
|
90
95
|
}, unhandledAriaProps, (0, _omit["default"])(others, 'data-pendo-id', 'aria-label')))), label), helperText && (0, _react2.jsx)(_.FieldHelperText, {
|
@@ -59,13 +59,25 @@ var _default = {
|
|
59
59
|
};
|
60
60
|
exports["default"] = _default;
|
61
61
|
var tabs = [{
|
62
|
-
name: '
|
63
|
-
children: (0, _react2.jsx)(_index.Text, null, "Tab
|
62
|
+
name: 'Overview',
|
63
|
+
children: (0, _react2.jsx)(_index.Text, null, "Tab 3 body")
|
64
64
|
}, {
|
65
|
-
name: '
|
66
|
-
children: (0, _react2.jsx)(_index.Text, null, "Tab
|
65
|
+
name: 'Configuration',
|
66
|
+
children: (0, _react2.jsx)(_index.Text, null, "Tab 3 body")
|
67
|
+
}, {
|
68
|
+
name: 'Resources',
|
69
|
+
children: (0, _react2.jsx)(_index.Text, null, "Tab 3 body")
|
70
|
+
}, {
|
71
|
+
name: 'Policies',
|
72
|
+
children: (0, _react2.jsx)(_index.Text, null, "Tab 3 body")
|
73
|
+
}, {
|
74
|
+
name: 'Attribute Mappings',
|
75
|
+
children: (0, _react2.jsx)(_index.Text, null, "Tab 3 body")
|
76
|
+
}, {
|
77
|
+
name: 'Access',
|
78
|
+
children: (0, _react2.jsx)(_index.Text, null, "Tab 3 body")
|
67
79
|
}, {
|
68
|
-
name: '
|
80
|
+
name: 'Integration',
|
69
81
|
children: (0, _react2.jsx)(_index.Text, null, "Tab 3 body")
|
70
82
|
}];
|
71
83
|
var customTabs = [{
|
@@ -96,7 +108,11 @@ var Controlled = function Controlled() {
|
|
96
108
|
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
97
109
|
currentTab = _useState2[0],
|
98
110
|
setCurrentTab = _useState2[1];
|
99
|
-
return (0, _react2.jsx)(_index.
|
111
|
+
return (0, _react2.jsx)(_index.Box, {
|
112
|
+
sx: {
|
113
|
+
maxWidth: '500px'
|
114
|
+
}
|
115
|
+
}, (0, _react2.jsx)(_index.Tabs, {
|
100
116
|
selectedKey: currentTab,
|
101
117
|
onSelectionChange: setCurrentTab,
|
102
118
|
items: tabs
|
@@ -106,7 +122,7 @@ var Controlled = function Controlled() {
|
|
106
122
|
title: item.name,
|
107
123
|
textValue: item.name
|
108
124
|
}, item.children);
|
109
|
-
});
|
125
|
+
}));
|
110
126
|
};
|
111
127
|
exports.Controlled = Controlled;
|
112
128
|
var Centered = function Centered() {
|
@@ -3,5 +3,6 @@ import { TextProps } from '../../types';
|
|
3
3
|
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
4
4
|
export default _default;
|
5
5
|
export declare const Default: StoryFn<TextProps>;
|
6
|
+
export declare const Onyx: StoryFn<TextProps>;
|
6
7
|
export declare const CustomWidth: StoryFn;
|
7
8
|
export declare const CustomStyle: StoryFn;
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequ
|
|
5
5
|
_Object$defineProperty(exports, "__esModule", {
|
6
6
|
value: true
|
7
7
|
});
|
8
|
-
exports["default"] = exports.Default = exports.CustomWidth = exports.CustomStyle = void 0;
|
8
|
+
exports["default"] = exports.Onyx = exports.Default = exports.CustomWidth = exports.CustomStyle = void 0;
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
|
10
10
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/slicedToArray"));
|
11
11
|
var _map = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/map"));
|
@@ -429,6 +429,359 @@ var Default = function Default() {
|
|
429
429
|
}))));
|
430
430
|
};
|
431
431
|
exports.Default = Default;
|
432
|
+
var Onyx = function Onyx() {
|
433
|
+
var _context7, _context8, _context9, _context10, _context11, _context12;
|
434
|
+
var fontSizesOnyx = {
|
435
|
+
xxx: '33.8px (xxx)',
|
436
|
+
xl: '22.5px (xl)',
|
437
|
+
lg: '18.8px (lg)',
|
438
|
+
md: '15px (md)',
|
439
|
+
sm: '12px (sm)',
|
440
|
+
xs: '11px (xs)',
|
441
|
+
h2: '26.3px (h2)'
|
442
|
+
};
|
443
|
+
var fontWeightsOnyx = {
|
444
|
+
'-1': '300 (-1)',
|
445
|
+
'0': '400 (0)',
|
446
|
+
'1': '500 (1)',
|
447
|
+
'2': '600 (2)',
|
448
|
+
'3': '700 (3)'
|
449
|
+
};
|
450
|
+
var headingVariants = {
|
451
|
+
H1: {
|
452
|
+
weight: fontWeightsOnyx[2],
|
453
|
+
fontSize: fontSizesOnyx.xxx,
|
454
|
+
example: (0, _react2.jsx)(_index.Text, {
|
455
|
+
variant: "H1",
|
456
|
+
as: "h1"
|
457
|
+
}, '<Text variant="H1" as="H1"/>')
|
458
|
+
},
|
459
|
+
H2: {
|
460
|
+
weight: fontWeightsOnyx[2],
|
461
|
+
fontSize: fontSizesOnyx.h2,
|
462
|
+
example: (0, _react2.jsx)(_index.Text, {
|
463
|
+
variant: "H2",
|
464
|
+
as: "h2"
|
465
|
+
}, '<Text variant="H2" as="H2"/>')
|
466
|
+
},
|
467
|
+
H3: {
|
468
|
+
weight: fontWeightsOnyx[2],
|
469
|
+
fontSize: fontSizesOnyx.xl,
|
470
|
+
example: (0, _react2.jsx)(_index.Text, {
|
471
|
+
variant: "H3",
|
472
|
+
as: "h3"
|
473
|
+
}, '<Text variant="H3" as="H3"/>')
|
474
|
+
},
|
475
|
+
H4: {
|
476
|
+
weight: fontWeightsOnyx[2],
|
477
|
+
fontSize: fontSizesOnyx.lg,
|
478
|
+
example: (0, _react2.jsx)(_index.Text, {
|
479
|
+
variant: "H4",
|
480
|
+
as: "h4"
|
481
|
+
}, '<Text variant="H4" as="H4"/>')
|
482
|
+
},
|
483
|
+
H5: {
|
484
|
+
weight: fontWeightsOnyx[2],
|
485
|
+
fontSize: fontSizesOnyx.md,
|
486
|
+
example: (0, _react2.jsx)(_index.Text, {
|
487
|
+
variant: "H5",
|
488
|
+
as: "h5"
|
489
|
+
}, '<Text variant="H5" as="H5"/>')
|
490
|
+
},
|
491
|
+
H6: {
|
492
|
+
weight: fontWeightsOnyx[0],
|
493
|
+
fontSize: fontSizesOnyx.sm,
|
494
|
+
example: (0, _react2.jsx)(_index.Text, {
|
495
|
+
variant: "H6",
|
496
|
+
as: "h6"
|
497
|
+
}, '<Text variant="H6" as="H6"/>')
|
498
|
+
}
|
499
|
+
};
|
500
|
+
var baseAndSubtitleVariants = {
|
501
|
+
'Base (default variant of Text)': {
|
502
|
+
weight: fontWeightsOnyx[0],
|
503
|
+
fontSize: fontSizesOnyx.md,
|
504
|
+
color: 'text.primary',
|
505
|
+
example: (0, _react2.jsx)(_index.Text, {
|
506
|
+
variant: "base",
|
507
|
+
fontWeight: "0"
|
508
|
+
}, '<Text variant="base"/>')
|
509
|
+
},
|
510
|
+
Subtitle: {
|
511
|
+
weight: fontWeightsOnyx[0],
|
512
|
+
fontSize: fontSizesOnyx.sm,
|
513
|
+
color: 'text.secondary',
|
514
|
+
example: (0, _react2.jsx)(_index.Text, {
|
515
|
+
variant: "subtitle"
|
516
|
+
}, '<Text variant="subtitle"/>')
|
517
|
+
}
|
518
|
+
};
|
519
|
+
var largeVariants = {
|
520
|
+
Bold: {
|
521
|
+
weight: fontWeightsOnyx[3],
|
522
|
+
fontSize: fontSizesOnyx.lg,
|
523
|
+
example: (0, _react2.jsx)(_index.Text, {
|
524
|
+
fontSize: "lg",
|
525
|
+
fontWeight: "3"
|
526
|
+
}, '<Text fontSize="lg" fontWeight="3">')
|
527
|
+
},
|
528
|
+
Semibold: {
|
529
|
+
weight: fontWeightsOnyx[2],
|
530
|
+
fontSize: fontSizesOnyx.lg,
|
531
|
+
example: (0, _react2.jsx)(_index.Text, {
|
532
|
+
fontSize: "lg",
|
533
|
+
fontWeight: "2"
|
534
|
+
}, '<Text fontSize="lg" fontWeight="2">')
|
535
|
+
},
|
536
|
+
Regular: {
|
537
|
+
weight: fontWeightsOnyx[0],
|
538
|
+
fontSize: fontSizesOnyx.lg,
|
539
|
+
example: (0, _react2.jsx)(_index.Text, {
|
540
|
+
fontSize: "lg",
|
541
|
+
fontWeight: "0"
|
542
|
+
}, '<Text fontSize="lg" fontWeight="0">')
|
543
|
+
},
|
544
|
+
Light: {
|
545
|
+
weight: fontWeightsOnyx[-1],
|
546
|
+
fontSize: fontSizesOnyx.lg,
|
547
|
+
example: (0, _react2.jsx)(_index.Text, {
|
548
|
+
fontSize: "lg",
|
549
|
+
fontWeight: "0"
|
550
|
+
}, '<Text fontSize="lg" fontWeight="0">')
|
551
|
+
}
|
552
|
+
};
|
553
|
+
var mediumVariants = {
|
554
|
+
Bold: {
|
555
|
+
weight: fontWeightsOnyx[3],
|
556
|
+
fontSize: fontSizesOnyx.md,
|
557
|
+
example: (0, _react2.jsx)(_index.Text, {
|
558
|
+
fontSize: "md",
|
559
|
+
fontWeight: "3"
|
560
|
+
}, '<Text fontSize="md" fontWeight="3">')
|
561
|
+
},
|
562
|
+
Semibold: {
|
563
|
+
weight: fontWeightsOnyx[2],
|
564
|
+
fontSize: fontSizesOnyx.md,
|
565
|
+
example: (0, _react2.jsx)(_index.Text, {
|
566
|
+
fontSize: "md",
|
567
|
+
fontWeight: "2"
|
568
|
+
}, '<Text fontSize="md" fontWeight="2">')
|
569
|
+
},
|
570
|
+
Regular: {
|
571
|
+
weight: fontWeightsOnyx[0],
|
572
|
+
fontSize: fontSizesOnyx.md,
|
573
|
+
example: (0, _react2.jsx)(_index.Text, {
|
574
|
+
fontSize: "md",
|
575
|
+
fontWeight: "0"
|
576
|
+
}, '<Text fontSize="md" fontWeight="0">')
|
577
|
+
},
|
578
|
+
Light: {
|
579
|
+
weight: fontWeightsOnyx[-1],
|
580
|
+
fontSize: fontSizesOnyx.md,
|
581
|
+
example: (0, _react2.jsx)(_index.Text, {
|
582
|
+
fontSize: "md",
|
583
|
+
fontWeight: "-1"
|
584
|
+
}, '<Text fontSize="md" fontWeight="-1">')
|
585
|
+
}
|
586
|
+
};
|
587
|
+
var smallVariants = {
|
588
|
+
Bold: {
|
589
|
+
weight: fontWeightsOnyx[3],
|
590
|
+
fontSize: fontSizesOnyx.sm,
|
591
|
+
example: (0, _react2.jsx)(_index.Text, {
|
592
|
+
fontSize: "sm",
|
593
|
+
fontWeight: "3"
|
594
|
+
}, '<Text fontSize="sm" fontWeight="3">')
|
595
|
+
},
|
596
|
+
Semibold: {
|
597
|
+
weight: fontWeightsOnyx[2],
|
598
|
+
fontSize: fontSizesOnyx.sm,
|
599
|
+
example: (0, _react2.jsx)(_index.Text, {
|
600
|
+
fontSize: "sm",
|
601
|
+
fontWeight: "2"
|
602
|
+
}, '<Text fontSize="sm" fontWeight="2">')
|
603
|
+
},
|
604
|
+
Regular: {
|
605
|
+
weight: fontWeightsOnyx[0],
|
606
|
+
fontSize: fontSizesOnyx.sm,
|
607
|
+
example: (0, _react2.jsx)(_index.Text, {
|
608
|
+
fontSize: "sm",
|
609
|
+
fontWeight: "0"
|
610
|
+
}, '<Text fontSize="sm" fontWeight="0">')
|
611
|
+
},
|
612
|
+
Light: {
|
613
|
+
weight: fontWeightsOnyx[-1],
|
614
|
+
fontSize: fontSizesOnyx.sm,
|
615
|
+
example: (0, _react2.jsx)(_index.Text, {
|
616
|
+
fontSize: "sm",
|
617
|
+
fontWeight: "-1"
|
618
|
+
}, '<Text fontSize="sm" fontWeight="-1">')
|
619
|
+
}
|
620
|
+
};
|
621
|
+
var xsmallVariants = {
|
622
|
+
Bold: {
|
623
|
+
weight: fontWeightsOnyx[3],
|
624
|
+
fontSize: fontSizesOnyx.xs,
|
625
|
+
example: (0, _react2.jsx)(_index.Text, {
|
626
|
+
fontSize: "xs",
|
627
|
+
fontWeight: "3"
|
628
|
+
}, '<Text fontSize="xs" fontWeight="3">')
|
629
|
+
},
|
630
|
+
Semibold: {
|
631
|
+
weight: fontWeightsOnyx[2],
|
632
|
+
fontSize: fontSizesOnyx.xs,
|
633
|
+
example: (0, _react2.jsx)(_index.Text, {
|
634
|
+
fontSize: "xs",
|
635
|
+
fontWeight: "2"
|
636
|
+
}, '<Text fontSize="xs" fontWeight="2">')
|
637
|
+
},
|
638
|
+
Regular: {
|
639
|
+
weight: fontWeightsOnyx[0],
|
640
|
+
fontSize: fontSizesOnyx.xs,
|
641
|
+
example: (0, _react2.jsx)(_index.Text, {
|
642
|
+
fontSize: "xs",
|
643
|
+
fontWeight: "0"
|
644
|
+
}, '<Text fontSize="xs" fontWeight="0">')
|
645
|
+
},
|
646
|
+
Light: {
|
647
|
+
weight: fontWeightsOnyx[-1],
|
648
|
+
fontSize: fontSizesOnyx.xs,
|
649
|
+
example: (0, _react2.jsx)(_index.Text, {
|
650
|
+
fontSize: "xs",
|
651
|
+
fontWeight: "-1"
|
652
|
+
}, '<Text fontSize="xs" fontWeight="-1">')
|
653
|
+
}
|
654
|
+
};
|
655
|
+
return (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_index.Table, {
|
656
|
+
mb: "xx"
|
657
|
+
}, (0, _react2.jsx)(TableHeading, {
|
658
|
+
title: "Heading"
|
659
|
+
}), (0, _react2.jsx)(_index.TableBody, {
|
660
|
+
sx: sx.tableBody
|
661
|
+
}, (0, _map["default"])(_context7 = (0, _entries["default"])(headingVariants)).call(_context7, function (_ref15) {
|
662
|
+
var _ref16 = (0, _slicedToArray2["default"])(_ref15, 2),
|
663
|
+
key = _ref16[0],
|
664
|
+
value = _ref16[1];
|
665
|
+
return (0, _react2.jsx)(TableData, {
|
666
|
+
variant: key,
|
667
|
+
value: value,
|
668
|
+
key: key
|
669
|
+
});
|
670
|
+
}))), (0, _react2.jsx)(_index.Table, {
|
671
|
+
mb: "xx"
|
672
|
+
}, (0, _react2.jsx)(_index.TableHead, null, (0, _react2.jsx)(_index.TableRow, {
|
673
|
+
key: "head"
|
674
|
+
}, (0, _react2.jsx)(_index.TableCell, {
|
675
|
+
sx: sx.cell,
|
676
|
+
isHeading: true,
|
677
|
+
width: "60%"
|
678
|
+
}, "Base and Subtitle"), (0, _react2.jsx)(_index.TableCell, {
|
679
|
+
sx: sx.cell,
|
680
|
+
isHeading: true,
|
681
|
+
width: "20%"
|
682
|
+
}, "Weight"), (0, _react2.jsx)(_index.TableCell, {
|
683
|
+
sx: sx.cell,
|
684
|
+
isHeading: true,
|
685
|
+
width: "30%"
|
686
|
+
}, "Size"), (0, _react2.jsx)(_index.TableCell, {
|
687
|
+
sx: sx.cell,
|
688
|
+
isHeading: true,
|
689
|
+
width: "40%"
|
690
|
+
}, "Color"), (0, _react2.jsx)(_index.TableCell, {
|
691
|
+
sx: sx.cell,
|
692
|
+
isHeading: true
|
693
|
+
}, "Example"))), (0, _react2.jsx)(_index.TableBody, {
|
694
|
+
sx: sx.tableBody
|
695
|
+
}, (0, _map["default"])(_context8 = (0, _entries["default"])(baseAndSubtitleVariants)).call(_context8, function (_ref17) {
|
696
|
+
var _ref18 = (0, _slicedToArray2["default"])(_ref17, 2),
|
697
|
+
key = _ref18[0],
|
698
|
+
value = _ref18[1];
|
699
|
+
return (0, _react2.jsx)(_index.TableRow, {
|
700
|
+
sx: {
|
701
|
+
backgroundColor: 'transparent !important'
|
702
|
+
},
|
703
|
+
key: key
|
704
|
+
}, (0, _react2.jsx)(_index.TableCell, {
|
705
|
+
sx: sx.cell,
|
706
|
+
width: "60%"
|
707
|
+
}, (0, _react2.jsx)(_index.Text, null, key)), (0, _react2.jsx)(_index.TableCell, {
|
708
|
+
sx: sx.cell,
|
709
|
+
width: "20%"
|
710
|
+
}, (0, _react2.jsx)(_index.Text, null, value.weight)), (0, _react2.jsx)(_index.TableCell, {
|
711
|
+
sx: sx.cell,
|
712
|
+
width: "30%"
|
713
|
+
}, (0, _react2.jsx)(_index.Text, null, value.fontSize)), (0, _react2.jsx)(_index.TableCell, {
|
714
|
+
sx: sx.cell,
|
715
|
+
width: "40%"
|
716
|
+
}, (0, _react2.jsx)(_index.Text, null, value.color)), (0, _react2.jsx)(_index.TableCell, {
|
717
|
+
sx: sx.cell
|
718
|
+
}, value.example));
|
719
|
+
}))), (0, _react2.jsx)(_index.Table, {
|
720
|
+
mb: "xx"
|
721
|
+
}, (0, _react2.jsx)(TableHeading, {
|
722
|
+
title: "Large"
|
723
|
+
}), (0, _react2.jsx)(_index.TableBody, {
|
724
|
+
sx: sx.tableBody
|
725
|
+
}, (0, _map["default"])(_context9 = (0, _entries["default"])(largeVariants)).call(_context9, function (_ref19) {
|
726
|
+
var _ref20 = (0, _slicedToArray2["default"])(_ref19, 2),
|
727
|
+
key = _ref20[0],
|
728
|
+
value = _ref20[1];
|
729
|
+
return (0, _react2.jsx)(TableData, {
|
730
|
+
variant: key,
|
731
|
+
value: value,
|
732
|
+
key: key
|
733
|
+
});
|
734
|
+
}))), (0, _react2.jsx)(_index.Table, {
|
735
|
+
mb: "xx"
|
736
|
+
}, (0, _react2.jsx)(TableHeading, {
|
737
|
+
title: "Medium"
|
738
|
+
}), (0, _react2.jsx)(_index.TableBody, {
|
739
|
+
sx: sx.tableBody
|
740
|
+
}, (0, _map["default"])(_context10 = (0, _entries["default"])(mediumVariants)).call(_context10, function (_ref21) {
|
741
|
+
var _ref22 = (0, _slicedToArray2["default"])(_ref21, 2),
|
742
|
+
key = _ref22[0],
|
743
|
+
value = _ref22[1];
|
744
|
+
return (0, _react2.jsx)(TableData, {
|
745
|
+
variant: key,
|
746
|
+
value: value,
|
747
|
+
key: key
|
748
|
+
});
|
749
|
+
}))), (0, _react2.jsx)(_index.Table, {
|
750
|
+
mb: "xx"
|
751
|
+
}, (0, _react2.jsx)(TableHeading, {
|
752
|
+
title: "Small"
|
753
|
+
}), (0, _react2.jsx)(_index.TableBody, {
|
754
|
+
sx: sx.tableBody
|
755
|
+
}, (0, _map["default"])(_context11 = (0, _entries["default"])(smallVariants)).call(_context11, function (_ref23) {
|
756
|
+
var _ref24 = (0, _slicedToArray2["default"])(_ref23, 2),
|
757
|
+
key = _ref24[0],
|
758
|
+
value = _ref24[1];
|
759
|
+
return (0, _react2.jsx)(TableData, {
|
760
|
+
variant: key,
|
761
|
+
value: value,
|
762
|
+
key: key
|
763
|
+
});
|
764
|
+
}))), (0, _react2.jsx)(_index.Table, {
|
765
|
+
mb: "xx"
|
766
|
+
}, (0, _react2.jsx)(TableHeading, {
|
767
|
+
title: "XSmall"
|
768
|
+
}), (0, _react2.jsx)(_index.TableBody, {
|
769
|
+
sx: sx.tableBody
|
770
|
+
}, (0, _map["default"])(_context12 = (0, _entries["default"])(xsmallVariants)).call(_context12, function (_ref25) {
|
771
|
+
var _ref26 = (0, _slicedToArray2["default"])(_ref25, 2),
|
772
|
+
key = _ref26[0],
|
773
|
+
value = _ref26[1];
|
774
|
+
return (0, _react2.jsx)(TableData, {
|
775
|
+
variant: key,
|
776
|
+
value: value,
|
777
|
+
key: key
|
778
|
+
});
|
779
|
+
}))));
|
780
|
+
};
|
781
|
+
exports.Onyx = Onyx;
|
782
|
+
Default.parameters = {
|
783
|
+
codesandbox: false
|
784
|
+
};
|
432
785
|
var CustomWidth = function CustomWidth(args) {
|
433
786
|
return (0, _react2.jsx)(_index.Box, {
|
434
787
|
width: 200
|
@@ -121,6 +121,16 @@ export declare const text: {
|
|
121
121
|
color: string;
|
122
122
|
fontFamily: string;
|
123
123
|
};
|
124
|
+
pageHeaderBody: {
|
125
|
+
fontSize: string;
|
126
|
+
color: string;
|
127
|
+
fontFamily: string;
|
128
|
+
display: string;
|
129
|
+
overflowWrap: overflowWrap;
|
130
|
+
maxWidth: string;
|
131
|
+
wordWrap: wordWrapText;
|
132
|
+
wordBreak: wordBreak;
|
133
|
+
};
|
124
134
|
panelHeaderSubtext: {
|
125
135
|
textOverflow: string;
|
126
136
|
overflow: string;
|
@@ -236,6 +236,11 @@ var text = _objectSpread(_objectSpread(_objectSpread({
|
|
236
236
|
color: 'text.secondary',
|
237
237
|
fontFamily: 'standard'
|
238
238
|
},
|
239
|
+
pageHeaderBody: _objectSpread(_objectSpread({}, wordWrap), {}, {
|
240
|
+
fontSize: 'sm',
|
241
|
+
color: 'text.secondary',
|
242
|
+
fontFamily: 'standard'
|
243
|
+
}),
|
239
244
|
panelHeaderSubtext: _objectSpread(_objectSpread({}, listViewItemSubtext), textEllipsis),
|
240
245
|
panelHeaderText: _objectSpread(_objectSpread({}, listViewItemText), textEllipsis),
|
241
246
|
sectionTitle: sectionTitle,
|