@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
@@ -36,8 +36,7 @@ var interactive = {
|
|
36
36
|
}
|
37
37
|
};
|
38
38
|
var container = _objectSpread(_objectSpread({}, _flatInstanceProperty(_Card)), {}, {
|
39
|
-
p: 'lg'
|
40
|
-
borderColor: 'border.base'
|
39
|
+
p: 'lg'
|
41
40
|
});
|
42
41
|
var dark = _objectSpread(_objectSpread({}, _flatInstanceProperty(_Card)), {}, {
|
43
42
|
border: 'none',
|
@@ -82,9 +81,6 @@ var suggestionRow = _objectSpread(_objectSpread({}, baseSuggestion), {}, {
|
|
82
81
|
var suggestionColumn = _objectSpread(_objectSpread({}, baseSuggestion), {}, {
|
83
82
|
display: 'flex'
|
84
83
|
});
|
85
|
-
var tableWrapper = _objectSpread(_objectSpread({}, container), {}, {
|
86
|
-
overflowY: 'hidden'
|
87
|
-
});
|
88
84
|
var _default = {
|
89
85
|
interactive: interactive,
|
90
86
|
dark: dark,
|
@@ -92,7 +88,6 @@ var _default = {
|
|
92
88
|
activeCard: activeCard,
|
93
89
|
container: container,
|
94
90
|
suggestionColumn: suggestionColumn,
|
95
|
-
suggestionRow: suggestionRow
|
96
|
-
tableWrapper: tableWrapper
|
91
|
+
suggestionRow: suggestionRow
|
97
92
|
};
|
98
93
|
exports["default"] = _default;
|
@@ -1328,169 +1328,5 @@ declare const _default: {
|
|
1328
1328
|
color: string;
|
1329
1329
|
};
|
1330
1330
|
};
|
1331
|
-
callout: {
|
1332
|
-
base: {
|
1333
|
-
width: string;
|
1334
|
-
backgroundColor: string;
|
1335
|
-
lineHeight: string;
|
1336
|
-
p: string;
|
1337
|
-
border: string;
|
1338
|
-
borderLeft: string;
|
1339
|
-
borderLeftColor: string;
|
1340
|
-
borderRadius: string;
|
1341
|
-
alignItems: string;
|
1342
|
-
color: string;
|
1343
|
-
'&.is-success, > .is-success': {
|
1344
|
-
borderColor: string;
|
1345
|
-
borderLeftColor: string;
|
1346
|
-
};
|
1347
|
-
'&.is-warning, > .is-warning': {
|
1348
|
-
borderColor: string;
|
1349
|
-
borderLeftColor: string;
|
1350
|
-
};
|
1351
|
-
'&.is-error, > .is-error': {
|
1352
|
-
borderColor: string;
|
1353
|
-
borderLeftColor: string;
|
1354
|
-
};
|
1355
|
-
};
|
1356
|
-
icon: {
|
1357
|
-
ml: string;
|
1358
|
-
mr: string;
|
1359
|
-
minWidth: string;
|
1360
|
-
width: string;
|
1361
|
-
height: string;
|
1362
|
-
};
|
1363
|
-
};
|
1364
|
-
table: {
|
1365
|
-
container: {
|
1366
|
-
overflow: string;
|
1367
|
-
};
|
1368
|
-
caption: {
|
1369
|
-
px: string;
|
1370
|
-
color: string;
|
1371
|
-
borderBottom: string;
|
1372
|
-
borderBottomColor: string;
|
1373
|
-
};
|
1374
|
-
head: {
|
1375
|
-
px: string;
|
1376
|
-
py: string;
|
1377
|
-
fontSize: string;
|
1378
|
-
fontWeight: string;
|
1379
|
-
color: string;
|
1380
|
-
lineHeight: string;
|
1381
|
-
};
|
1382
|
-
body: {
|
1383
|
-
borderTopColor: string;
|
1384
|
-
borderBottom: string;
|
1385
|
-
backgroundColor: string;
|
1386
|
-
borderBottomLeftRadius: string;
|
1387
|
-
borderBottomRightRadius: string;
|
1388
|
-
'&& > tr:not(:last-child)': {
|
1389
|
-
borderBottom: string;
|
1390
|
-
borderBottomColor: string;
|
1391
|
-
};
|
1392
|
-
'&& > tr:nth-of-type(odd) ': {
|
1393
|
-
backgroundColor: string;
|
1394
|
-
};
|
1395
|
-
'&& > tr:last-child': {
|
1396
|
-
borderBottomLeftRadius: string;
|
1397
|
-
borderBottomRightRadius: string;
|
1398
|
-
};
|
1399
|
-
};
|
1400
|
-
data: {
|
1401
|
-
py: string;
|
1402
|
-
fontWeight: string;
|
1403
|
-
px: string;
|
1404
|
-
fontSize: string;
|
1405
|
-
color: string;
|
1406
|
-
lineHeight: string;
|
1407
|
-
};
|
1408
|
-
};
|
1409
|
-
tableBase: {
|
1410
|
-
caption: {
|
1411
|
-
backgroundColor: string;
|
1412
|
-
px: string;
|
1413
|
-
color: string;
|
1414
|
-
borderBottom: string;
|
1415
|
-
borderBottomColor: string;
|
1416
|
-
borderTopLeftRadius: string;
|
1417
|
-
borderTopRightRadius: string;
|
1418
|
-
};
|
1419
|
-
row: {
|
1420
|
-
borderBottom: string;
|
1421
|
-
borderBottomColor: string;
|
1422
|
-
'&.is-focused': {
|
1423
|
-
outlineOffset: string;
|
1424
|
-
outline: string;
|
1425
|
-
outlineColor: string;
|
1426
|
-
};
|
1427
|
-
'&.is-hovered': {
|
1428
|
-
bg: string;
|
1429
|
-
};
|
1430
|
-
'&:nth-of-type(odd)': {
|
1431
|
-
bg: string;
|
1432
|
-
'&.is-hovered': {
|
1433
|
-
bg: string;
|
1434
|
-
};
|
1435
|
-
};
|
1436
|
-
};
|
1437
|
-
thead: {
|
1438
|
-
backgroundColor: string;
|
1439
|
-
'&:not(.has-caption)': {
|
1440
|
-
'& > tr:first-child': {
|
1441
|
-
borderTopLeftRadius: string;
|
1442
|
-
borderTopRightRadius: string;
|
1443
|
-
'& > th:first-of-type': {
|
1444
|
-
borderTopLeftRadius: string;
|
1445
|
-
};
|
1446
|
-
'& > th:last-of-type': {
|
1447
|
-
borderTopRightRadius: string;
|
1448
|
-
};
|
1449
|
-
};
|
1450
|
-
};
|
1451
|
-
};
|
1452
|
-
head: {
|
1453
|
-
px: string;
|
1454
|
-
py: string;
|
1455
|
-
fontSize: string;
|
1456
|
-
fontWeight: string;
|
1457
|
-
color: string;
|
1458
|
-
lineHeight: string;
|
1459
|
-
'&.is-focused': {
|
1460
|
-
outlineOffset: string;
|
1461
|
-
outline: string;
|
1462
|
-
outlineColor: string;
|
1463
|
-
};
|
1464
|
-
};
|
1465
|
-
tbody: {
|
1466
|
-
borderTopColor: string;
|
1467
|
-
borderBottom: string;
|
1468
|
-
backgroundColor: string;
|
1469
|
-
'& > tr:last-child': {
|
1470
|
-
borderBottom: string;
|
1471
|
-
borderBottomLeftRadius: string;
|
1472
|
-
borderBottomRightRadius: string;
|
1473
|
-
'& > td:first-of-type': {
|
1474
|
-
borderBottomLeftRadius: string;
|
1475
|
-
};
|
1476
|
-
'& > td:last-of-type': {
|
1477
|
-
borderBottomRightRadius: string;
|
1478
|
-
};
|
1479
|
-
};
|
1480
|
-
};
|
1481
|
-
data: {
|
1482
|
-
py: string;
|
1483
|
-
fontWeight: string;
|
1484
|
-
px: string;
|
1485
|
-
fontSize: string;
|
1486
|
-
color: string;
|
1487
|
-
lineHeight: string;
|
1488
|
-
'&.is-focused': {
|
1489
|
-
outlineOffset: string;
|
1490
|
-
outline: string;
|
1491
|
-
outlineColor: string;
|
1492
|
-
};
|
1493
|
-
};
|
1494
|
-
};
|
1495
1331
|
};
|
1496
1332
|
export default _default;
|
@@ -19,7 +19,6 @@ var _Skeleton = _interopRequireDefault(require("../../../../components/Skeleton/
|
|
19
19
|
var _codeView = _interopRequireDefault(require("../codeView/codeView"));
|
20
20
|
var _avatar = require("./avatar");
|
21
21
|
var _button = _interopRequireDefault(require("./button"));
|
22
|
-
var _callout = _interopRequireDefault(require("./callout"));
|
23
22
|
var _dataTable = require("./dataTable");
|
24
23
|
var _footer = require("./footer");
|
25
24
|
var _iconWrapper = _interopRequireDefault(require("./iconWrapper"));
|
@@ -32,8 +31,6 @@ var _prompt = _interopRequireDefault(require("./prompt"));
|
|
32
31
|
var _response = _interopRequireDefault(require("./response"));
|
33
32
|
var _suggestion = _interopRequireDefault(require("./suggestion"));
|
34
33
|
var _suggestions = _interopRequireDefault(require("./suggestions"));
|
35
|
-
var _table = require("./table");
|
36
|
-
var _tableBase = require("./tableBase");
|
37
34
|
var _tabs = require("./tabs");
|
38
35
|
var _tooltip = _interopRequireDefault(require("./tooltip"));
|
39
36
|
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; }
|
@@ -392,9 +389,6 @@ var _default = {
|
|
392
389
|
rockerButton: rockerButton,
|
393
390
|
tooltip: _tooltip["default"],
|
394
391
|
footer: _footer.footer,
|
395
|
-
loader: loader
|
396
|
-
callout: _callout["default"],
|
397
|
-
table: _table.table,
|
398
|
-
tableBase: _tableBase.tableBase
|
392
|
+
loader: loader
|
399
393
|
};
|
400
394
|
exports["default"] = _default;
|
@@ -59,7 +59,6 @@ var _Skeleton = _interopRequireDefault(require("../../components/Skeleton/Skelet
|
|
59
59
|
var _Slider = _interopRequireDefault(require("../../components/SliderField/Slider.styles"));
|
60
60
|
var _Stepper = _interopRequireDefault(require("../../components/Stepper/Stepper.styles"));
|
61
61
|
var _Table = _interopRequireDefault(require("../../components/Table/Table.styles"));
|
62
|
-
var _TableBase = _interopRequireDefault(require("../../components/TableBase/TableBase.styles"));
|
63
62
|
var tab = _interopRequireWildcard(require("../../components/Tabs/Tabs.style"));
|
64
63
|
var _TimeField = _interopRequireDefault(require("../../components/TimeField/TimeField.styles"));
|
65
64
|
var _TimeZone = _interopRequireDefault(require("../../components/TimeZonePicker/TimeZone.styles"));
|
@@ -69,7 +68,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "functi
|
|
69
68
|
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; }
|
70
69
|
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; }
|
71
70
|
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; }
|
72
|
-
var _default = _objectSpread(
|
71
|
+
var _default = _objectSpread({
|
73
72
|
accordion: _Accordion["default"],
|
74
73
|
accordionGrid: _AccordionGrid["default"],
|
75
74
|
box: _Box["default"],
|
@@ -117,7 +116,5 @@ var _default = _objectSpread(_objectSpread({
|
|
117
116
|
timeZone: _TimeZone["default"],
|
118
117
|
tooltip: _Tooltip["default"],
|
119
118
|
treeView: _TreeView["default"]
|
120
|
-
}, tab)
|
121
|
-
tableBase: _TableBase["default"]
|
122
|
-
});
|
119
|
+
}, tab);
|
123
120
|
exports["default"] = _default;
|
@@ -1,9 +1,7 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import { IconProps } from './icon';
|
3
2
|
import { Status } from './item';
|
4
3
|
import { DOMAttributes, StyleProps } from './shared';
|
5
4
|
export interface CalloutProps extends StyleProps, DOMAttributes {
|
6
5
|
status?: Status;
|
7
6
|
icon?: React.ReactNode;
|
8
|
-
iconProps?: IconProps;
|
9
7
|
}
|
@@ -1,24 +1,32 @@
|
|
1
1
|
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
2
2
|
import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectWithoutProperties";
|
3
3
|
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
4
|
-
var _excluded = ["children", "status", "icon"
|
4
|
+
var _excluded = ["children", "status", "icon"];
|
5
5
|
var _calloutProps;
|
6
6
|
import React, { forwardRef } from 'react';
|
7
7
|
import { Box } from '../..';
|
8
|
-
import { useStatusClasses } from '../../hooks';
|
9
8
|
import statuses from '../../utils/devUtils/constants/statuses';
|
10
9
|
import { NoticeIcon } from '../Icon/NoticeIcon';
|
11
10
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
12
11
|
export var CALLOUT_TEST_ID = 'CalloutTestId';
|
13
12
|
var calloutProps = (_calloutProps = {}, _defineProperty(_calloutProps, statuses.DEFAULT, {
|
14
|
-
color: 'text.secondary'
|
13
|
+
color: 'text.secondary',
|
14
|
+
variant: 'callout.base'
|
15
15
|
}), _defineProperty(_calloutProps, statuses.ERROR, {
|
16
|
-
color: 'critical.bright'
|
16
|
+
color: 'critical.bright',
|
17
|
+
variant: 'callout.error'
|
17
18
|
}), _defineProperty(_calloutProps, statuses.SUCCESS, {
|
18
|
-
color: 'success.bright'
|
19
|
+
color: 'success.bright',
|
20
|
+
variant: 'callout.success'
|
19
21
|
}), _defineProperty(_calloutProps, statuses.WARNING, {
|
20
|
-
color: 'warning.bright'
|
22
|
+
color: 'warning.bright',
|
23
|
+
variant: 'callout.warning'
|
21
24
|
}), _calloutProps);
|
25
|
+
var defaultIconProps = {
|
26
|
+
mr: 'md',
|
27
|
+
ml: 'md',
|
28
|
+
size: 'md'
|
29
|
+
};
|
22
30
|
|
23
31
|
/**
|
24
32
|
Please note, Callout is a static component, the [Messages](./?path=/docs/components-messages)
|
@@ -31,24 +39,18 @@ var Callout = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
31
39
|
_ref$status = _ref.status,
|
32
40
|
status = _ref$status === void 0 ? statuses.DEFAULT : _ref$status,
|
33
41
|
icon = _ref.icon,
|
34
|
-
className = _ref.className,
|
35
|
-
iconProps = _ref.iconProps,
|
36
42
|
others = _objectWithoutProperties(_ref, _excluded);
|
37
|
-
var _useStatusClasses = useStatusClasses(className, _defineProperty({}, "is-".concat(status), true)),
|
38
|
-
statusClasses = _useStatusClasses.classNames;
|
39
43
|
return ___EmotionJSX(Box, _extends({
|
40
44
|
ref: ref,
|
41
45
|
"data-testid": CALLOUT_TEST_ID,
|
42
46
|
isRow: true,
|
43
47
|
role: "note",
|
44
|
-
variant:
|
45
|
-
className: statusClasses
|
48
|
+
variant: calloutProps[status].variant
|
46
49
|
}, others), icon || ___EmotionJSX(NoticeIcon, _extends({
|
47
50
|
color: calloutProps[status].color,
|
48
51
|
status: status,
|
49
|
-
variant: "callout.icon",
|
50
52
|
"aria-label": "".concat(status, "-icon")
|
51
|
-
},
|
53
|
+
}, defaultIconProps)), children);
|
52
54
|
});
|
53
55
|
Callout.displayName = 'Callout';
|
54
56
|
export default Callout;
|
@@ -12,7 +12,6 @@ function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (
|
|
12
12
|
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) { _defineProperty(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; }
|
13
13
|
import React from 'react';
|
14
14
|
import CheckBoldIcon from '@pingux/mdi-react/CheckBoldIcon';
|
15
|
-
import LightbulbOutlineIcon from '@pingux/mdi-react/LightbulbOutlineIcon';
|
16
15
|
import { withDesign } from 'storybook-addon-designs';
|
17
16
|
import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
18
17
|
import { Box, Callout, Icon, Link, Text } from '../../index';
|
@@ -50,19 +49,6 @@ Default.parameters = {
|
|
50
49
|
url: FIGMA_LINKS.callout["default"]
|
51
50
|
}
|
52
51
|
};
|
53
|
-
export var Customizations = function Customizations() {
|
54
|
-
return ___EmotionJSX(Callout, {
|
55
|
-
icon: ___EmotionJSX(Icon, {
|
56
|
-
icon: LightbulbOutlineIcon,
|
57
|
-
size: "sm",
|
58
|
-
color: "teal-500",
|
59
|
-
mr: "md"
|
60
|
-
}),
|
61
|
-
sx: {
|
62
|
-
borderLeftColor: 'teal-500'
|
63
|
-
}
|
64
|
-
}, ___EmotionJSX(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."));
|
65
|
-
};
|
66
52
|
export var ErrorStatus = function ErrorStatus(args) {
|
67
53
|
return ___EmotionJSX(Callout, _extends({
|
68
54
|
status: statuses.ERROR
|
@@ -100,14 +86,6 @@ WithLink.parameters = {
|
|
100
86
|
design: {
|
101
87
|
type: 'figma',
|
102
88
|
url: FIGMA_LINKS.callout.withLink
|
103
|
-
},
|
104
|
-
a11y: {
|
105
|
-
config: {
|
106
|
-
rules: [{
|
107
|
-
id: 'color-contrast',
|
108
|
-
enabled: false
|
109
|
-
}]
|
110
|
-
}
|
111
89
|
}
|
112
90
|
};
|
113
91
|
export var Warning = function Warning(args) {
|
@@ -1,29 +1,34 @@
|
|
1
|
-
import
|
1
|
+
import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
|
2
|
+
import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
|
3
|
+
import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
|
4
|
+
import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";
|
5
|
+
import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
|
6
|
+
import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
|
7
|
+
import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
|
8
|
+
import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
|
9
|
+
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
10
|
+
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; }
|
11
|
+
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) { _defineProperty(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; }
|
2
12
|
var base = {
|
3
13
|
alignItems: 'center',
|
4
14
|
border: '1px solid',
|
5
15
|
borderColor: 'text.secondary',
|
6
16
|
fontSize: 'md',
|
7
17
|
p: '15px 12px 15px 0',
|
8
|
-
width: '600px'
|
9
|
-
'&.is-success, > .is-success': {
|
10
|
-
borderColor: 'success.bright'
|
11
|
-
},
|
12
|
-
'&.is-warning, > .is-warning': {
|
13
|
-
borderColor: 'warning.bright'
|
14
|
-
},
|
15
|
-
'&.is-error, > .is-error': {
|
16
|
-
borderColor: 'critical.bright'
|
17
|
-
}
|
18
|
-
};
|
19
|
-
var icon = {
|
20
|
-
mr: 'md',
|
21
|
-
ml: 'md',
|
22
|
-
minWidth: "".concat(tShirtSizes.md, " !important"),
|
23
|
-
width: "".concat(tShirtSizes.md, " !important"),
|
24
|
-
height: "".concat(tShirtSizes.md, " !important")
|
18
|
+
width: '600px'
|
25
19
|
};
|
20
|
+
var error = _objectSpread(_objectSpread({}, base), {}, {
|
21
|
+
borderColor: 'critical.bright'
|
22
|
+
});
|
23
|
+
var success = _objectSpread(_objectSpread({}, base), {}, {
|
24
|
+
borderColor: 'success.bright'
|
25
|
+
});
|
26
|
+
var warning = _objectSpread(_objectSpread({}, base), {}, {
|
27
|
+
borderColor: 'warning.bright'
|
28
|
+
});
|
26
29
|
export default {
|
27
30
|
base: base,
|
28
|
-
|
31
|
+
error: error,
|
32
|
+
success: success,
|
33
|
+
warning: warning
|
29
34
|
};
|
@@ -85,10 +85,6 @@ var activeCard = _objectSpread(_objectSpread({}, interactive), {}, {
|
|
85
85
|
}
|
86
86
|
}
|
87
87
|
});
|
88
|
-
var tableWrapper = _objectSpread(_objectSpread({}, container), {}, {
|
89
|
-
padding: 0,
|
90
|
-
boxShadow: 'none'
|
91
|
-
});
|
92
88
|
export default {
|
93
89
|
container: container,
|
94
90
|
interactive: interactive,
|
@@ -96,6 +92,5 @@ export default {
|
|
96
92
|
footer: footer,
|
97
93
|
flat: flat,
|
98
94
|
body: body,
|
99
|
-
activeCard: activeCard
|
100
|
-
tableWrapper: tableWrapper
|
95
|
+
activeCard: activeCard
|
101
96
|
};
|
@@ -2,7 +2,7 @@ import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance
|
|
2
2
|
import _Object$values from "@babel/runtime-corejs3/core-js-stable/object/values";
|
3
3
|
import React from 'react';
|
4
4
|
import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
5
|
-
import {
|
5
|
+
import { Table, TableBody, TableCaption, TableCell, TableHead, TableRow, Text } from '../../index';
|
6
6
|
import TableReadme from './Table.mdx';
|
7
7
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
8
8
|
export default {
|
@@ -46,9 +46,10 @@ var objects = [{
|
|
46
46
|
total_grant: '75,000'
|
47
47
|
}];
|
48
48
|
export var Default = function Default(args) {
|
49
|
-
return ___EmotionJSX(
|
50
|
-
|
51
|
-
|
49
|
+
return ___EmotionJSX(Table, args, ___EmotionJSX(TableCaption, null, ___EmotionJSX(Text, {
|
50
|
+
fontWeight: 3,
|
51
|
+
fontSize: "lg"
|
52
|
+
}, caption)), ___EmotionJSX(TableHead, null, ___EmotionJSX(TableRow, {
|
52
53
|
key: "head"
|
53
54
|
}, _mapInstanceProperty(headers).call(headers, function (head) {
|
54
55
|
return ___EmotionJSX(TableCell, {
|
@@ -64,5 +65,5 @@ export var Default = function Default(args) {
|
|
64
65
|
key: value
|
65
66
|
}, value);
|
66
67
|
}));
|
67
|
-
})))
|
68
|
+
})));
|
68
69
|
};
|
@@ -14,18 +14,18 @@ var head = _objectSpread(_objectSpread({}, text.label), {}, {
|
|
14
14
|
fontWeight: 500,
|
15
15
|
width: '100%',
|
16
16
|
flexDirection: 'row !important',
|
17
|
-
p: '
|
17
|
+
p: '10px'
|
18
18
|
});
|
19
19
|
var data = _objectSpread(_objectSpread({}, text.tableData), {}, {
|
20
20
|
width: '100%',
|
21
|
-
p: '
|
21
|
+
p: '10px'
|
22
22
|
});
|
23
23
|
var body = {
|
24
24
|
borderTop: '1px solid',
|
25
25
|
borderTopColor: 'neutral.40',
|
26
26
|
borderBottom: '1px solid',
|
27
27
|
borderBottomColor: 'neutral.80',
|
28
|
-
'
|
28
|
+
'&& > tr:nth-of-type(odd) ': {
|
29
29
|
backgroundColor: 'neutral.95'
|
30
30
|
}
|
31
31
|
};
|
@@ -37,11 +37,9 @@ var container = {
|
|
37
37
|
width: '100%'
|
38
38
|
};
|
39
39
|
var caption = {
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
p: 'sm',
|
44
|
-
textAlign: 'left'
|
40
|
+
textAlign: 'left',
|
41
|
+
marginBottom: 'xs',
|
42
|
+
lineHeight: '21px'
|
45
43
|
};
|
46
44
|
export default {
|
47
45
|
body: body,
|
package/lib/index.js
CHANGED
@@ -188,8 +188,6 @@ export { default as Tab } from './components/Tab';
|
|
188
188
|
export * from './components/Tab';
|
189
189
|
export { default as Table } from './components/Table';
|
190
190
|
export * from './components/Table';
|
191
|
-
export * from './components/TableBase';
|
192
|
-
export { default as TableBase } from './components/TableBase';
|
193
191
|
export { default as TableBody } from './components/TableBody';
|
194
192
|
export * from './components/TableBody';
|
195
193
|
export { default as TableCaption } from './components/TableCaption';
|
@@ -224,4 +222,5 @@ export { default as NextGenTheme } from './styles/themes/next-gen';
|
|
224
222
|
export { default as OnyxTheme } from './styles/themes/next-gen';
|
225
223
|
export * from './types';
|
226
224
|
export { OverlayProvider, useOverlayPosition, useOverlayTrigger } from 'react-aria';
|
227
|
-
export {
|
225
|
+
export { Item, Section, useOverlayTriggerState, useTreeData } from 'react-stately';
|
226
|
+
export { TableBody as DataTableBody, Cell as DataTableCell, Column as DataTableColumn, TableHeader as DataTableHeader, Row as DataTableRow } from 'react-stately';
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { avatar } from './avatar';
|
2
|
-
import callout from './callout';
|
3
2
|
import { footer } from './footer';
|
4
3
|
import iconBadge from './iconBadge';
|
5
4
|
import { listView, listViewItem, lisViewItemChart } from './listview';
|
@@ -117,28 +116,5 @@ export default {
|
|
117
116
|
boxShadow: '0 0 0 3px inset #1a73e8'
|
118
117
|
}
|
119
118
|
}
|
120
|
-
},
|
121
|
-
callout: callout,
|
122
|
-
table: {
|
123
|
-
caption: {
|
124
|
-
color: 'text.secondary'
|
125
|
-
},
|
126
|
-
head: {
|
127
|
-
color: 'text.secondary'
|
128
|
-
},
|
129
|
-
data: {
|
130
|
-
color: 'text.secondary'
|
131
|
-
}
|
132
|
-
},
|
133
|
-
tableBase: {
|
134
|
-
caption: {
|
135
|
-
color: 'text.secondary'
|
136
|
-
},
|
137
|
-
head: {
|
138
|
-
color: 'text.secondary'
|
139
|
-
},
|
140
|
-
data: {
|
141
|
-
color: 'text.secondary'
|
142
|
-
}
|
143
119
|
}
|
144
120
|
};
|
@@ -99,8 +99,7 @@ var background = {
|
|
99
99
|
base: 'white',
|
100
100
|
secondary: nextGenColors['gray-100'],
|
101
101
|
card: nextGenColors['blue-100'],
|
102
|
-
suggestion: '#ecf0f5'
|
103
|
-
hover: nextGenColors['gray-100']
|
102
|
+
suggestion: '#ecf0f5'
|
104
103
|
};
|
105
104
|
var card = {
|
106
105
|
blue: nextGenColors['blue-100'],
|
@@ -1,4 +1,4 @@
|
|
1
|
-
var nextGenConvertedComponents = ['DataTable', 'Message', 'Button', 'Badge', 'IconButton', 'CheckboxField', 'Messages', 'PopoverMenu', 'TextField', 'PasswordField', 'SearchField', 'SelectField', 'Modal', 'RadioField', 'MultiValuesField', 'TextAreaField', 'RadioGroupField', 'RockerButtonGroup', 'Tabs', 'ProgressBar', 'NavBar', 'OverlayPanel', 'AstroProvider', 'ListView', 'NavigationHeader', 'Avatar', 'MultivaluesField', 'Text', 'Link', 'Card', 'IconWrapper', 'ComboBoxField', 'CodeView', 'Sticker Sheet', 'NextGen ListViewItem', 'Skeleton', 'TooltipTrigger', 'ListViewItem', 'Pagination'
|
1
|
+
var nextGenConvertedComponents = ['DataTable', 'Message', 'Button', 'Badge', 'IconButton', 'CheckboxField', 'Messages', 'PopoverMenu', 'TextField', 'PasswordField', 'SearchField', 'SelectField', 'Modal', 'RadioField', 'MultiValuesField', 'TextAreaField', 'RadioGroupField', 'RockerButtonGroup', 'Tabs', 'ProgressBar', 'NavBar', 'OverlayPanel', 'AstroProvider', 'ListView', 'NavigationHeader', 'Avatar', 'MultivaluesField', 'Text', 'Link', 'Card', 'IconWrapper', 'ComboBoxField', 'CodeView', 'Sticker Sheet', 'NextGen ListViewItem', 'Skeleton', 'TooltipTrigger', 'ListViewItem', 'Pagination'];
|
2
2
|
export var componentSpecificNextGenBlacklist = {
|
3
3
|
AstroProvider: ['Default', 'With Custom Theme Override'],
|
4
4
|
Badge: ['Status Badge Variants', 'Badge With Left Slot And Icon', 'Callout Badges', 'Removable'],
|
@@ -12,8 +12,7 @@ export var componentSpecificNextGenBlacklist = {
|
|
12
12
|
export var astroBlacklistStory = {
|
13
13
|
DataTable: ['Onyx Default'],
|
14
14
|
NavBar: ['Onyx Default'],
|
15
|
-
SearchField: ['Onyx With Filter']
|
16
|
-
Callout: ['Customizations']
|
15
|
+
SearchField: ['Onyx With Filter']
|
17
16
|
};
|
18
17
|
export var nextGenOnlyComponents = ['NavigationHeader', 'Prompt', 'AI Panel', 'Response', 'Suggestions', 'Prompt Input', 'Footer'];
|
19
18
|
export default nextGenConvertedComponents;
|
@@ -28,8 +28,7 @@ var interactive = {
|
|
28
28
|
}
|
29
29
|
};
|
30
30
|
var container = _objectSpread(_objectSpread({}, flat), {}, {
|
31
|
-
p: 'lg'
|
32
|
-
borderColor: 'border.base'
|
31
|
+
p: 'lg'
|
33
32
|
});
|
34
33
|
var dark = _objectSpread(_objectSpread({}, flat), {}, {
|
35
34
|
border: 'none',
|
@@ -74,9 +73,6 @@ var suggestionRow = _objectSpread(_objectSpread({}, baseSuggestion), {}, {
|
|
74
73
|
var suggestionColumn = _objectSpread(_objectSpread({}, baseSuggestion), {}, {
|
75
74
|
display: 'flex'
|
76
75
|
});
|
77
|
-
var tableWrapper = _objectSpread(_objectSpread({}, container), {}, {
|
78
|
-
overflowY: 'hidden'
|
79
|
-
});
|
80
76
|
export default {
|
81
77
|
interactive: interactive,
|
82
78
|
dark: dark,
|
@@ -84,6 +80,5 @@ export default {
|
|
84
80
|
activeCard: activeCard,
|
85
81
|
container: container,
|
86
82
|
suggestionColumn: suggestionColumn,
|
87
|
-
suggestionRow: suggestionRow
|
88
|
-
tableWrapper: tableWrapper
|
83
|
+
suggestionRow: suggestionRow
|
89
84
|
};
|