@pingux/astro 2.129.0-alpha.5 → 2.129.0
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/Callout/Callout.js +16 -14
- package/lib/cjs/components/Callout/Callout.stories.d.ts +0 -9
- package/lib/cjs/components/Callout/Callout.stories.js +1 -24
- package/lib/cjs/components/Callout/Callout.styles.d.ts +22 -14
- package/lib/cjs/components/Callout/Callout.styles.js +23 -19
- package/lib/cjs/components/Card/Card.styles.d.ts +0 -11
- package/lib/cjs/components/Card/Card.styles.js +1 -6
- package/lib/cjs/components/RockerButtonGroup/RockerButtonGroup.mdx +1 -1
- package/lib/cjs/components/Table/Table.stories.js +5 -4
- package/lib/cjs/components/Table/Table.styles.d.ts +3 -5
- package/lib/cjs/components/Table/Table.styles.js +6 -8
- package/lib/cjs/hooks/useGetTheme/useGetTheme.d.ts +41 -3
- package/lib/cjs/index.d.ts +2 -3
- package/lib/cjs/index.js +20 -74
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.d.ts +0 -48
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.js +0 -24
- package/lib/cjs/styles/themes/astro/customProperties/index.d.ts +4 -4
- package/lib/cjs/styles/themes/astro/customProperties/tShirtSizes.d.ts +4 -4
- package/lib/cjs/styles/themes/astro/customProperties/tShirtSizes.js +4 -4
- package/lib/cjs/styles/themes/next-gen/colors/colors.d.ts +0 -1
- package/lib/cjs/styles/themes/next-gen/colors/colors.js +1 -2
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.d.ts +0 -1
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +2 -3
- package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +1 -179
- package/lib/cjs/styles/themes/next-gen/variants/cards.d.ts +1 -14
- package/lib/cjs/styles/themes/next-gen/variants/cards.js +2 -7
- package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +0 -164
- package/lib/cjs/styles/themes/next-gen/variants/variants.js +1 -7
- package/lib/cjs/styles/variants/variants.js +2 -5
- package/lib/cjs/types/callout.d.ts +0 -2
- package/lib/components/Callout/Callout.js +16 -14
- package/lib/components/Callout/Callout.stories.js +0 -22
- package/lib/components/Callout/Callout.styles.js +24 -19
- package/lib/components/Card/Card.styles.js +1 -6
- package/lib/components/RockerButtonGroup/RockerButtonGroup.mdx +1 -1
- package/lib/components/Table/Table.stories.js +6 -5
- package/lib/components/Table/Table.styles.js +6 -8
- package/lib/index.js +2 -3
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/variants.js +0 -24
- package/lib/styles/themes/astro/customProperties/tShirtSizes.js +4 -4
- package/lib/styles/themes/next-gen/colors/colors.js +1 -2
- package/lib/styles/themes/next-gen/convertedComponentList.js +2 -3
- package/lib/styles/themes/next-gen/variants/cards.js +2 -7
- package/lib/styles/themes/next-gen/variants/variants.js +1 -7
- package/lib/styles/variants/variants.js +2 -5
- package/package.json +1 -1
- package/lib/cjs/components/Callout/stories/CalloutNextGenComponent.d.ts +0 -2
- package/lib/cjs/components/Callout/stories/CalloutNextGenComponent.js +0 -33
- package/lib/cjs/components/Callout/stories/NextGenCallout.chromatic.stories.d.ts +0 -6
- package/lib/cjs/components/Callout/stories/NextGenCallout.chromatic.stories.js +0 -22
- package/lib/cjs/components/Callout/stories/NextGenDarkCallout.chomatic.stories.d.ts +0 -6
- package/lib/cjs/components/Callout/stories/NextGenDarkCallout.chomatic.stories.js +0 -22
- package/lib/cjs/components/TableBase/TableBase.d.ts +0 -9
- package/lib/cjs/components/TableBase/TableBase.js +0 -238
- package/lib/cjs/components/TableBase/TableBase.mdx +0 -30
- package/lib/cjs/components/TableBase/TableBase.stories.d.ts +0 -6
- package/lib/cjs/components/TableBase/TableBase.stories.js +0 -111
- package/lib/cjs/components/TableBase/TableBase.styles.d.ts +0 -76
- package/lib/cjs/components/TableBase/TableBase.styles.js +0 -80
- package/lib/cjs/components/TableBase/TableBase.test.d.ts +0 -1
- package/lib/cjs/components/TableBase/TableBase.test.js +0 -122
- package/lib/cjs/components/TableBase/index.d.ts +0 -1
- package/lib/cjs/components/TableBase/index.js +0 -14
- package/lib/cjs/components/TableBase/stories/NextGenDarkTableBase.chromatic.stories.d.ts +0 -6
- package/lib/cjs/components/TableBase/stories/NextGenDarkTableBase.chromatic.stories.js +0 -22
- package/lib/cjs/components/TableBase/stories/NextGenTableBase.chromatic.stories.d.ts +0 -6
- package/lib/cjs/components/TableBase/stories/NextGenTableBase.chromatic.stories.js +0 -22
- package/lib/cjs/components/TableBase/stories/NextGenTableBase.d.ts +0 -3
- package/lib/cjs/components/TableBase/stories/NextGenTableBase.js +0 -67
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/callout.d.ts +0 -27
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/callout.js +0 -35
- package/lib/cjs/styles/themes/next-gen/variants/callout.d.ts +0 -34
- package/lib/cjs/styles/themes/next-gen/variants/callout.js +0 -45
- package/lib/cjs/styles/themes/next-gen/variants/table.d.ts +0 -45
- package/lib/cjs/styles/themes/next-gen/variants/table.js +0 -65
- package/lib/cjs/styles/themes/next-gen/variants/tableBase.d.ts +0 -86
- package/lib/cjs/styles/themes/next-gen/variants/tableBase.js +0 -99
- package/lib/cjs/types/cell.d.ts +0 -12
- package/lib/cjs/types/cell.js +0 -6
- package/lib/cjs/types/tableBase.d.ts +0 -45
- package/lib/cjs/types/tableBase.js +0 -6
- package/lib/cjs/utils/devUtils/constants/items.d.ts +0 -10
- package/lib/cjs/utils/devUtils/constants/items.js +0 -87
- package/lib/components/Callout/stories/CalloutNextGenComponent.js +0 -24
- package/lib/components/Callout/stories/NextGenCallout.chromatic.stories.js +0 -12
- package/lib/components/Callout/stories/NextGenDarkCallout.chomatic.stories.js +0 -12
- package/lib/components/TableBase/TableBase.js +0 -221
- package/lib/components/TableBase/TableBase.mdx +0 -30
- package/lib/components/TableBase/TableBase.stories.js +0 -100
- package/lib/components/TableBase/TableBase.styles.js +0 -72
- package/lib/components/TableBase/TableBase.test.js +0 -119
- package/lib/components/TableBase/index.js +0 -1
- package/lib/components/TableBase/stories/NextGenDarkTableBase.chromatic.stories.js +0 -12
- package/lib/components/TableBase/stories/NextGenTableBase.chromatic.stories.js +0 -12
- package/lib/components/TableBase/stories/NextGenTableBase.js +0 -58
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/callout.js +0 -27
- package/lib/styles/themes/next-gen/variants/callout.js +0 -36
- package/lib/styles/themes/next-gen/variants/table.js +0 -57
- package/lib/styles/themes/next-gen/variants/tableBase.js +0 -91
- package/lib/types/cell.js +0 -1
- package/lib/types/tableBase.js +0 -1
- package/lib/utils/devUtils/constants/items.js +0 -79
@@ -14,25 +14,33 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime-c
|
|
14
14
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
|
15
15
|
var _react = _interopRequireWildcard(require("react"));
|
16
16
|
var _ = require("../..");
|
17
|
-
var _hooks = require("../../hooks");
|
18
17
|
var _statuses = _interopRequireDefault(require("../../utils/devUtils/constants/statuses"));
|
19
18
|
var _NoticeIcon = require("../Icon/NoticeIcon");
|
20
19
|
var _react2 = require("@emotion/react");
|
21
|
-
var _excluded = ["children", "status", "icon"
|
20
|
+
var _excluded = ["children", "status", "icon"];
|
22
21
|
var _calloutProps;
|
23
22
|
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
23
|
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; }
|
25
24
|
var CALLOUT_TEST_ID = 'CalloutTestId';
|
26
25
|
exports.CALLOUT_TEST_ID = CALLOUT_TEST_ID;
|
27
26
|
var calloutProps = (_calloutProps = {}, (0, _defineProperty2["default"])(_calloutProps, _statuses["default"].DEFAULT, {
|
28
|
-
color: 'text.secondary'
|
27
|
+
color: 'text.secondary',
|
28
|
+
variant: 'callout.base'
|
29
29
|
}), (0, _defineProperty2["default"])(_calloutProps, _statuses["default"].ERROR, {
|
30
|
-
color: 'critical.bright'
|
30
|
+
color: 'critical.bright',
|
31
|
+
variant: 'callout.error'
|
31
32
|
}), (0, _defineProperty2["default"])(_calloutProps, _statuses["default"].SUCCESS, {
|
32
|
-
color: 'success.bright'
|
33
|
+
color: 'success.bright',
|
34
|
+
variant: 'callout.success'
|
33
35
|
}), (0, _defineProperty2["default"])(_calloutProps, _statuses["default"].WARNING, {
|
34
|
-
color: 'warning.bright'
|
36
|
+
color: 'warning.bright',
|
37
|
+
variant: 'callout.warning'
|
35
38
|
}), _calloutProps);
|
39
|
+
var defaultIconProps = {
|
40
|
+
mr: 'md',
|
41
|
+
ml: 'md',
|
42
|
+
size: 'md'
|
43
|
+
};
|
36
44
|
|
37
45
|
/**
|
38
46
|
Please note, Callout is a static component, the [Messages](./?path=/docs/components-messages)
|
@@ -45,24 +53,18 @@ var Callout = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
45
53
|
_ref$status = _ref.status,
|
46
54
|
status = _ref$status === void 0 ? _statuses["default"].DEFAULT : _ref$status,
|
47
55
|
icon = _ref.icon,
|
48
|
-
className = _ref.className,
|
49
|
-
iconProps = _ref.iconProps,
|
50
56
|
others = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
51
|
-
var _useStatusClasses = (0, _hooks.useStatusClasses)(className, (0, _defineProperty2["default"])({}, "is-".concat(status), true)),
|
52
|
-
statusClasses = _useStatusClasses.classNames;
|
53
57
|
return (0, _react2.jsx)(_.Box, (0, _extends2["default"])({
|
54
58
|
ref: ref,
|
55
59
|
"data-testid": CALLOUT_TEST_ID,
|
56
60
|
isRow: true,
|
57
61
|
role: "note",
|
58
|
-
variant:
|
59
|
-
className: statusClasses
|
62
|
+
variant: calloutProps[status].variant
|
60
63
|
}, others), icon || (0, _react2.jsx)(_NoticeIcon.NoticeIcon, (0, _extends2["default"])({
|
61
64
|
color: calloutProps[status].color,
|
62
65
|
status: status,
|
63
|
-
variant: "callout.icon",
|
64
66
|
"aria-label": "".concat(status, "-icon")
|
65
|
-
},
|
67
|
+
}, defaultIconProps)), children);
|
66
68
|
});
|
67
69
|
Callout.displayName = 'Callout';
|
68
70
|
var _default = Callout;
|
@@ -4,7 +4,6 @@ import { CalloutProps } from '../../types/callout';
|
|
4
4
|
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
5
5
|
export default _default;
|
6
6
|
export declare const Default: StoryFn<CalloutProps>;
|
7
|
-
export declare const Customizations: () => React.JSX.Element;
|
8
7
|
export declare const ErrorStatus: StoryFn;
|
9
8
|
export declare const Success: StoryFn;
|
10
9
|
export declare const WithLink: {
|
@@ -14,14 +13,6 @@ export declare const WithLink: {
|
|
14
13
|
type: string;
|
15
14
|
url: string;
|
16
15
|
};
|
17
|
-
a11y: {
|
18
|
-
config: {
|
19
|
-
rules: {
|
20
|
-
id: string;
|
21
|
-
enabled: boolean;
|
22
|
-
}[];
|
23
|
-
};
|
24
|
-
};
|
25
16
|
};
|
26
17
|
};
|
27
18
|
export declare const Warning: StoryFn;
|
@@ -12,12 +12,11 @@ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequ
|
|
12
12
|
_Object$defineProperty(exports, "__esModule", {
|
13
13
|
value: true
|
14
14
|
});
|
15
|
-
exports["default"] = exports.WithLink = exports.WithCustomIcon = exports.Warning = exports.Success = exports.ErrorStatus = exports.Default =
|
15
|
+
exports["default"] = exports.WithLink = exports.WithCustomIcon = exports.Warning = exports.Success = exports.ErrorStatus = exports.Default = void 0;
|
16
16
|
var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
|
17
17
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
|
18
18
|
var _react = _interopRequireDefault(require("react"));
|
19
19
|
var _CheckBoldIcon = _interopRequireDefault(require("@pingux/mdi-react/CheckBoldIcon"));
|
20
|
-
var _LightbulbOutlineIcon = _interopRequireDefault(require("@pingux/mdi-react/LightbulbOutlineIcon"));
|
21
20
|
var _storybookAddonDesigns = require("storybook-addon-designs");
|
22
21
|
var _storybookDocsLayout = _interopRequireDefault(require("../../../.storybook/storybookDocsLayout"));
|
23
22
|
var _index = require("../../index");
|
@@ -57,20 +56,6 @@ Default.parameters = {
|
|
57
56
|
url: _figmaLinks.FIGMA_LINKS.callout["default"]
|
58
57
|
}
|
59
58
|
};
|
60
|
-
var Customizations = function Customizations() {
|
61
|
-
return (0, _react2.jsx)(_index.Callout, {
|
62
|
-
icon: (0, _react2.jsx)(_index.Icon, {
|
63
|
-
icon: _LightbulbOutlineIcon["default"],
|
64
|
-
size: "sm",
|
65
|
-
color: "teal-500",
|
66
|
-
mr: "md"
|
67
|
-
}),
|
68
|
-
sx: {
|
69
|
-
borderLeftColor: 'teal-500'
|
70
|
-
}
|
71
|
-
}, (0, _react2.jsx)(_index.Text, null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque vitae lacinia diam, nec ullamcorper neque. In egestas dui vel dolor tincidunt, sit amet ullamcorper leo consequat."));
|
72
|
-
};
|
73
|
-
exports.Customizations = Customizations;
|
74
59
|
var ErrorStatus = function ErrorStatus(args) {
|
75
60
|
return (0, _react2.jsx)(_index.Callout, (0, _extends2["default"])({
|
76
61
|
status: _statuses["default"].ERROR
|
@@ -111,14 +96,6 @@ WithLink.parameters = {
|
|
111
96
|
design: {
|
112
97
|
type: 'figma',
|
113
98
|
url: _figmaLinks.FIGMA_LINKS.callout.withLink
|
114
|
-
},
|
115
|
-
a11y: {
|
116
|
-
config: {
|
117
|
-
rules: [{
|
118
|
-
id: 'color-contrast',
|
119
|
-
enabled: false
|
120
|
-
}]
|
121
|
-
}
|
122
99
|
}
|
123
100
|
};
|
124
101
|
var Warning = function Warning(args) {
|
@@ -6,22 +6,30 @@ declare const _default: {
|
|
6
6
|
fontSize: string;
|
7
7
|
p: string;
|
8
8
|
width: string;
|
9
|
-
'&.is-success, > .is-success': {
|
10
|
-
borderColor: string;
|
11
|
-
};
|
12
|
-
'&.is-warning, > .is-warning': {
|
13
|
-
borderColor: string;
|
14
|
-
};
|
15
|
-
'&.is-error, > .is-error': {
|
16
|
-
borderColor: string;
|
17
|
-
};
|
18
9
|
};
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
10
|
+
error: {
|
11
|
+
borderColor: string;
|
12
|
+
alignItems: string;
|
13
|
+
border: string;
|
14
|
+
fontSize: string;
|
15
|
+
p: string;
|
16
|
+
width: string;
|
17
|
+
};
|
18
|
+
success: {
|
19
|
+
borderColor: string;
|
20
|
+
alignItems: string;
|
21
|
+
border: string;
|
22
|
+
fontSize: string;
|
23
|
+
p: string;
|
24
|
+
width: string;
|
25
|
+
};
|
26
|
+
warning: {
|
27
|
+
borderColor: string;
|
28
|
+
alignItems: string;
|
29
|
+
border: string;
|
30
|
+
fontSize: string;
|
31
|
+
p: string;
|
23
32
|
width: string;
|
24
|
-
height: string;
|
25
33
|
};
|
26
34
|
};
|
27
35
|
export default _default;
|
@@ -1,38 +1,42 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
+
var _Object$keys = require("@babel/runtime-corejs3/core-js-stable/object/keys");
|
4
|
+
var _Object$getOwnPropertySymbols = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols");
|
5
|
+
var _filterInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/filter");
|
6
|
+
var _Object$getOwnPropertyDescriptor = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor");
|
7
|
+
var _forEachInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/for-each");
|
8
|
+
var _Object$getOwnPropertyDescriptors = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors");
|
9
|
+
var _Object$defineProperties = require("@babel/runtime-corejs3/core-js-stable/object/define-properties");
|
3
10
|
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
4
11
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
5
12
|
_Object$defineProperty(exports, "__esModule", {
|
6
13
|
value: true
|
7
14
|
});
|
8
15
|
exports["default"] = void 0;
|
9
|
-
var
|
16
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
|
17
|
+
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; }
|
18
|
+
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; }
|
10
19
|
var base = {
|
11
20
|
alignItems: 'center',
|
12
21
|
border: '1px solid',
|
13
22
|
borderColor: 'text.secondary',
|
14
23
|
fontSize: 'md',
|
15
24
|
p: '15px 12px 15px 0',
|
16
|
-
width: '600px'
|
17
|
-
'&.is-success, > .is-success': {
|
18
|
-
borderColor: 'success.bright'
|
19
|
-
},
|
20
|
-
'&.is-warning, > .is-warning': {
|
21
|
-
borderColor: 'warning.bright'
|
22
|
-
},
|
23
|
-
'&.is-error, > .is-error': {
|
24
|
-
borderColor: 'critical.bright'
|
25
|
-
}
|
26
|
-
};
|
27
|
-
var icon = {
|
28
|
-
mr: 'md',
|
29
|
-
ml: 'md',
|
30
|
-
minWidth: "".concat(_tShirtSizes["default"].md, " !important"),
|
31
|
-
width: "".concat(_tShirtSizes["default"].md, " !important"),
|
32
|
-
height: "".concat(_tShirtSizes["default"].md, " !important")
|
25
|
+
width: '600px'
|
33
26
|
};
|
27
|
+
var error = _objectSpread(_objectSpread({}, base), {}, {
|
28
|
+
borderColor: 'critical.bright'
|
29
|
+
});
|
30
|
+
var success = _objectSpread(_objectSpread({}, base), {}, {
|
31
|
+
borderColor: 'success.bright'
|
32
|
+
});
|
33
|
+
var warning = _objectSpread(_objectSpread({}, base), {}, {
|
34
|
+
borderColor: 'warning.bright'
|
35
|
+
});
|
34
36
|
var _default = {
|
35
37
|
base: base,
|
36
|
-
|
38
|
+
error: error,
|
39
|
+
success: success,
|
40
|
+
warning: warning
|
37
41
|
};
|
38
42
|
exports["default"] = _default;
|
@@ -129,16 +129,5 @@ declare const _default: {
|
|
129
129
|
flex: string;
|
130
130
|
p: string;
|
131
131
|
};
|
132
|
-
tableWrapper: {
|
133
|
-
padding: number;
|
134
|
-
boxShadow: string;
|
135
|
-
display: string;
|
136
|
-
borderRadius: string;
|
137
|
-
color: string;
|
138
|
-
fontSize: string;
|
139
|
-
fontWeight: number;
|
140
|
-
flex: string;
|
141
|
-
p: string;
|
142
|
-
};
|
143
132
|
};
|
144
133
|
export default _default;
|
@@ -93,10 +93,6 @@ var activeCard = _objectSpread(_objectSpread({}, interactive), {}, {
|
|
93
93
|
}
|
94
94
|
}
|
95
95
|
});
|
96
|
-
var tableWrapper = _objectSpread(_objectSpread({}, container), {}, {
|
97
|
-
padding: 0,
|
98
|
-
boxShadow: 'none'
|
99
|
-
});
|
100
96
|
var _default = {
|
101
97
|
container: container,
|
102
98
|
interactive: interactive,
|
@@ -104,7 +100,6 @@ var _default = {
|
|
104
100
|
footer: footer,
|
105
101
|
flat: flat,
|
106
102
|
body: body,
|
107
|
-
activeCard: activeCard
|
108
|
-
tableWrapper: tableWrapper
|
103
|
+
activeCard: activeCard
|
109
104
|
};
|
110
105
|
exports["default"] = _default;
|
@@ -55,9 +55,10 @@ var objects = [{
|
|
55
55
|
total_grant: '75,000'
|
56
56
|
}];
|
57
57
|
var Default = function Default(args) {
|
58
|
-
return (0, _react2.jsx)(_index.
|
59
|
-
|
60
|
-
|
58
|
+
return (0, _react2.jsx)(_index.Table, args, (0, _react2.jsx)(_index.TableCaption, null, (0, _react2.jsx)(_index.Text, {
|
59
|
+
fontWeight: 3,
|
60
|
+
fontSize: "lg"
|
61
|
+
}, caption)), (0, _react2.jsx)(_index.TableHead, null, (0, _react2.jsx)(_index.TableRow, {
|
61
62
|
key: "head"
|
62
63
|
}, (0, _map["default"])(headers).call(headers, function (head) {
|
63
64
|
return (0, _react2.jsx)(_index.TableCell, {
|
@@ -73,6 +74,6 @@ var Default = function Default(args) {
|
|
73
74
|
key: value
|
74
75
|
}, value);
|
75
76
|
}));
|
76
|
-
})))
|
77
|
+
})));
|
77
78
|
};
|
78
79
|
exports.Default = Default;
|
@@ -4,16 +4,14 @@ declare const _default: {
|
|
4
4
|
borderTopColor: string;
|
5
5
|
borderBottom: string;
|
6
6
|
borderBottomColor: string;
|
7
|
-
'
|
7
|
+
'&& > tr:nth-of-type(odd) ': {
|
8
8
|
backgroundColor: string;
|
9
9
|
};
|
10
10
|
};
|
11
11
|
caption: {
|
12
|
-
fontFamily: string;
|
13
|
-
fontSize: string;
|
14
|
-
fontWeight: string;
|
15
|
-
p: string;
|
16
12
|
textAlign: string;
|
13
|
+
marginBottom: string;
|
14
|
+
lineHeight: string;
|
17
15
|
};
|
18
16
|
container: {
|
19
17
|
width: string;
|
@@ -21,18 +21,18 @@ var head = _objectSpread(_objectSpread({}, _Text.text.label), {}, {
|
|
21
21
|
fontWeight: 500,
|
22
22
|
width: '100%',
|
23
23
|
flexDirection: 'row !important',
|
24
|
-
p: '
|
24
|
+
p: '10px'
|
25
25
|
});
|
26
26
|
var data = _objectSpread(_objectSpread({}, _Text.text.tableData), {}, {
|
27
27
|
width: '100%',
|
28
|
-
p: '
|
28
|
+
p: '10px'
|
29
29
|
});
|
30
30
|
var body = {
|
31
31
|
borderTop: '1px solid',
|
32
32
|
borderTopColor: 'neutral.40',
|
33
33
|
borderBottom: '1px solid',
|
34
34
|
borderBottomColor: 'neutral.80',
|
35
|
-
'
|
35
|
+
'&& > tr:nth-of-type(odd) ': {
|
36
36
|
backgroundColor: 'neutral.95'
|
37
37
|
}
|
38
38
|
};
|
@@ -44,11 +44,9 @@ var container = {
|
|
44
44
|
width: '100%'
|
45
45
|
};
|
46
46
|
var caption = {
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
p: 'sm',
|
51
|
-
textAlign: 'left'
|
47
|
+
textAlign: 'left',
|
48
|
+
marginBottom: 'xs',
|
49
|
+
lineHeight: '21px'
|
52
50
|
};
|
53
51
|
var _default = {
|
54
52
|
body: body,
|
@@ -6,6 +6,9 @@ export declare const baseState: {
|
|
6
6
|
isCustom: boolean;
|
7
7
|
};
|
8
8
|
declare const useGetTheme: () => {
|
9
|
+
styles: {
|
10
|
+
navButtonEstHeight: number;
|
11
|
+
};
|
9
12
|
icons: {
|
10
13
|
[x: number]: import("@pingux/mdi-react").MdiReactIconComponentType;
|
11
14
|
MenuDown: import("@pingux/mdi-react").MdiReactIconComponentType;
|
@@ -13,14 +16,49 @@ declare const useGetTheme: () => {
|
|
13
16
|
pingLogoHorizontalSmall: import("react").JSX.Element;
|
14
17
|
listViewMenu: import("@pingux/mdi-react").MdiReactIconComponentType;
|
15
18
|
};
|
16
|
-
styles: {
|
17
|
-
navButtonEstHeight: number;
|
18
|
-
};
|
19
19
|
tShirtSizes: {
|
20
20
|
xxs: string;
|
21
|
+
'icon-100': string;
|
21
22
|
xs: string;
|
23
|
+
'icon-200': string;
|
22
24
|
sm: string;
|
25
|
+
'icon-300': string;
|
23
26
|
md: string;
|
27
|
+
'icon-400': string;
|
28
|
+
'icon-500': string;
|
29
|
+
'icon-600': string;
|
30
|
+
'icon-700': string;
|
31
|
+
'icon-800': string;
|
32
|
+
'icon-900': string;
|
33
|
+
};
|
34
|
+
iconWrapperSizes: {
|
35
|
+
sm: number;
|
36
|
+
md: number;
|
37
|
+
lg: number;
|
38
|
+
};
|
39
|
+
themeState: {
|
40
|
+
isOnyx: boolean;
|
41
|
+
isAstro: boolean;
|
42
|
+
isOnyxDark: boolean;
|
43
|
+
isCustom: boolean;
|
44
|
+
};
|
45
|
+
name: string;
|
46
|
+
} | {
|
47
|
+
icons: {
|
48
|
+
[x: number]: import("@pingux/mdi-react").MdiReactIconComponentType;
|
49
|
+
MenuDown: import("@pingux/mdi-react").MdiReactIconComponentType;
|
50
|
+
MenuUp: import("@pingux/mdi-react").MdiReactIconComponentType;
|
51
|
+
pingLogoHorizontalSmall: import("react").JSX.Element;
|
52
|
+
listViewMenu: import("@pingux/mdi-react").MdiReactIconComponentType;
|
53
|
+
};
|
54
|
+
styles: {
|
55
|
+
navButtonEstHeight: number;
|
56
|
+
};
|
57
|
+
tShirtSizes: {
|
58
|
+
xxs: number;
|
59
|
+
xs: number;
|
60
|
+
sm: number;
|
61
|
+
md: number;
|
24
62
|
};
|
25
63
|
iconWrapperSizes: {
|
26
64
|
sm: number;
|
package/lib/cjs/index.d.ts
CHANGED
@@ -184,8 +184,6 @@ export { default as Tab } from './components/Tab';
|
|
184
184
|
export * from './components/Tab';
|
185
185
|
export { default as Table } from './components/Table';
|
186
186
|
export * from './components/Table';
|
187
|
-
export * from './components/TableBase';
|
188
|
-
export { default as TableBase } from './components/TableBase';
|
189
187
|
export { default as TableBody } from './components/TableBody';
|
190
188
|
export * from './components/TableBody';
|
191
189
|
export { default as TableCaption } from './components/TableCaption';
|
@@ -220,4 +218,5 @@ export { default as NextGenTheme } from './styles/themes/next-gen';
|
|
220
218
|
export { default as OnyxTheme } from './styles/themes/next-gen';
|
221
219
|
export * from './types';
|
222
220
|
export { OverlayProvider, useOverlayPosition, useOverlayTrigger } from 'react-aria';
|
223
|
-
export {
|
221
|
+
export { Item, Section, useOverlayTriggerState, useTreeData } from 'react-stately';
|
222
|
+
export { TableBody as DataTableBody, Cell as DataTableCell, Column as DataTableColumn, TableHeader as DataTableHeader, Row as DataTableRow, } from 'react-stately';
|