@pingux/astro 2.129.0 → 2.130.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.
Files changed (108) hide show
  1. package/lib/cjs/components/Button/Button.stories.d.ts +1 -0
  2. package/lib/cjs/components/Button/Button.stories.js +8 -2
  3. package/lib/cjs/components/Button/Buttons.styles.d.ts +48 -0
  4. package/lib/cjs/components/Button/Buttons.styles.js +9 -1
  5. package/lib/cjs/components/Callout/Callout.js +14 -16
  6. package/lib/cjs/components/Callout/Callout.stories.d.ts +9 -0
  7. package/lib/cjs/components/Callout/Callout.stories.js +24 -1
  8. package/lib/cjs/components/Callout/Callout.styles.d.ts +14 -22
  9. package/lib/cjs/components/Callout/Callout.styles.js +19 -23
  10. package/lib/cjs/components/Callout/stories/CalloutNextGenComponent.d.ts +2 -0
  11. package/lib/cjs/components/Callout/stories/CalloutNextGenComponent.js +33 -0
  12. package/lib/cjs/components/Callout/stories/NextGenCallout.chromatic.stories.d.ts +6 -0
  13. package/lib/cjs/components/Callout/stories/NextGenCallout.chromatic.stories.js +22 -0
  14. package/lib/cjs/components/Callout/stories/NextGenDarkCallout.chomatic.stories.d.ts +6 -0
  15. package/lib/cjs/components/Callout/stories/NextGenDarkCallout.chomatic.stories.js +22 -0
  16. package/lib/cjs/components/Card/Card.styles.d.ts +11 -0
  17. package/lib/cjs/components/Card/Card.styles.js +6 -1
  18. package/lib/cjs/components/RockerButtonGroup/RockerButtonGroup.mdx +1 -1
  19. package/lib/cjs/components/Table/Table.stories.js +4 -5
  20. package/lib/cjs/components/Table/Table.styles.d.ts +5 -3
  21. package/lib/cjs/components/Table/Table.styles.js +8 -6
  22. package/lib/cjs/components/TableBase/TableBase.d.ts +9 -0
  23. package/lib/cjs/components/TableBase/TableBase.js +238 -0
  24. package/lib/cjs/components/TableBase/TableBase.mdx +30 -0
  25. package/lib/cjs/components/TableBase/TableBase.stories.d.ts +6 -0
  26. package/lib/cjs/components/TableBase/TableBase.stories.js +111 -0
  27. package/lib/cjs/components/TableBase/TableBase.styles.d.ts +76 -0
  28. package/lib/cjs/components/TableBase/TableBase.styles.js +80 -0
  29. package/lib/cjs/components/TableBase/TableBase.test.d.ts +1 -0
  30. package/lib/cjs/components/TableBase/TableBase.test.js +122 -0
  31. package/lib/cjs/components/TableBase/index.d.ts +1 -0
  32. package/lib/cjs/components/TableBase/index.js +14 -0
  33. package/lib/cjs/components/TableBase/stories/NextGenDarkTableBase.chromatic.stories.d.ts +6 -0
  34. package/lib/cjs/components/TableBase/stories/NextGenDarkTableBase.chromatic.stories.js +22 -0
  35. package/lib/cjs/components/TableBase/stories/NextGenTableBase.chromatic.stories.d.ts +6 -0
  36. package/lib/cjs/components/TableBase/stories/NextGenTableBase.chromatic.stories.js +22 -0
  37. package/lib/cjs/components/TableBase/stories/NextGenTableBase.d.ts +3 -0
  38. package/lib/cjs/components/TableBase/stories/NextGenTableBase.js +67 -0
  39. package/lib/cjs/hooks/useGetTheme/useGetTheme.d.ts +3 -41
  40. package/lib/cjs/index.d.ts +3 -2
  41. package/lib/cjs/index.js +74 -20
  42. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/callout.d.ts +27 -0
  43. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/callout.js +35 -0
  44. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.d.ts +48 -0
  45. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.js +24 -0
  46. package/lib/cjs/styles/themes/astro/customProperties/index.d.ts +4 -4
  47. package/lib/cjs/styles/themes/astro/customProperties/tShirtSizes.d.ts +4 -4
  48. package/lib/cjs/styles/themes/astro/customProperties/tShirtSizes.js +4 -4
  49. package/lib/cjs/styles/themes/next-gen/colors/colors.d.ts +1 -0
  50. package/lib/cjs/styles/themes/next-gen/colors/colors.js +2 -1
  51. package/lib/cjs/styles/themes/next-gen/convertedComponentList.d.ts +1 -0
  52. package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +3 -2
  53. package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +179 -1
  54. package/lib/cjs/styles/themes/next-gen/variants/callout.d.ts +34 -0
  55. package/lib/cjs/styles/themes/next-gen/variants/callout.js +45 -0
  56. package/lib/cjs/styles/themes/next-gen/variants/cards.d.ts +14 -1
  57. package/lib/cjs/styles/themes/next-gen/variants/cards.js +7 -2
  58. package/lib/cjs/styles/themes/next-gen/variants/table.d.ts +45 -0
  59. package/lib/cjs/styles/themes/next-gen/variants/table.js +65 -0
  60. package/lib/cjs/styles/themes/next-gen/variants/tableBase.d.ts +86 -0
  61. package/lib/cjs/styles/themes/next-gen/variants/tableBase.js +99 -0
  62. package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +164 -0
  63. package/lib/cjs/styles/themes/next-gen/variants/variants.js +7 -1
  64. package/lib/cjs/styles/variants/variants.js +5 -2
  65. package/lib/cjs/types/callout.d.ts +2 -0
  66. package/lib/cjs/types/cell.d.ts +12 -0
  67. package/lib/cjs/types/cell.js +6 -0
  68. package/lib/cjs/types/tableBase.d.ts +45 -0
  69. package/lib/cjs/types/tableBase.js +6 -0
  70. package/lib/cjs/utils/devUtils/constants/items.d.ts +10 -0
  71. package/lib/cjs/utils/devUtils/constants/items.js +87 -0
  72. package/lib/components/Button/Button.stories.js +5 -0
  73. package/lib/components/Button/Buttons.styles.js +9 -1
  74. package/lib/components/Callout/Callout.js +14 -16
  75. package/lib/components/Callout/Callout.stories.js +22 -0
  76. package/lib/components/Callout/Callout.styles.js +19 -24
  77. package/lib/components/Callout/stories/CalloutNextGenComponent.js +24 -0
  78. package/lib/components/Callout/stories/NextGenCallout.chromatic.stories.js +12 -0
  79. package/lib/components/Callout/stories/NextGenDarkCallout.chomatic.stories.js +12 -0
  80. package/lib/components/Card/Card.styles.js +6 -1
  81. package/lib/components/RockerButtonGroup/RockerButtonGroup.mdx +1 -1
  82. package/lib/components/Table/Table.stories.js +5 -6
  83. package/lib/components/Table/Table.styles.js +8 -6
  84. package/lib/components/TableBase/TableBase.js +221 -0
  85. package/lib/components/TableBase/TableBase.mdx +30 -0
  86. package/lib/components/TableBase/TableBase.stories.js +100 -0
  87. package/lib/components/TableBase/TableBase.styles.js +72 -0
  88. package/lib/components/TableBase/TableBase.test.js +119 -0
  89. package/lib/components/TableBase/index.js +1 -0
  90. package/lib/components/TableBase/stories/NextGenDarkTableBase.chromatic.stories.js +12 -0
  91. package/lib/components/TableBase/stories/NextGenTableBase.chromatic.stories.js +12 -0
  92. package/lib/components/TableBase/stories/NextGenTableBase.js +58 -0
  93. package/lib/index.js +3 -2
  94. package/lib/styles/themeOverrides/nextGenDarkMode/variants/callout.js +27 -0
  95. package/lib/styles/themeOverrides/nextGenDarkMode/variants/variants.js +24 -0
  96. package/lib/styles/themes/astro/customProperties/tShirtSizes.js +4 -4
  97. package/lib/styles/themes/next-gen/colors/colors.js +2 -1
  98. package/lib/styles/themes/next-gen/convertedComponentList.js +3 -2
  99. package/lib/styles/themes/next-gen/variants/callout.js +36 -0
  100. package/lib/styles/themes/next-gen/variants/cards.js +7 -2
  101. package/lib/styles/themes/next-gen/variants/table.js +57 -0
  102. package/lib/styles/themes/next-gen/variants/tableBase.js +91 -0
  103. package/lib/styles/themes/next-gen/variants/variants.js +7 -1
  104. package/lib/styles/variants/variants.js +5 -2
  105. package/lib/types/cell.js +1 -0
  106. package/lib/types/tableBase.js +1 -0
  107. package/lib/utils/devUtils/constants/items.js +79 -0
  108. package/package.json +1 -1
@@ -0,0 +1,99 @@
1
+ "use strict";
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");
10
+ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
11
+ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
12
+ _Object$defineProperty(exports, "__esModule", {
13
+ value: true
14
+ });
15
+ exports.tableBase = void 0;
16
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
17
+ var _button = require("./button");
18
+ 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; }
19
+ 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; }
20
+ var borderRadius = '16px';
21
+ var defaultFocus = _objectSpread(_objectSpread({}, _button.defaultFocus), {}, {
22
+ outlineOffset: '-2px'
23
+ });
24
+ var caption = {
25
+ backgroundColor: 'background.base',
26
+ px: 'lg',
27
+ color: 'text.primary',
28
+ borderBottom: '1px solid',
29
+ borderBottomColor: 'border.base',
30
+ borderTopLeftRadius: borderRadius,
31
+ borderTopRightRadius: borderRadius
32
+ };
33
+ var row = {
34
+ borderBottom: '1px solid',
35
+ borderBottomColor: 'border.base',
36
+ '&.is-focused': _objectSpread({}, defaultFocus),
37
+ '&.is-hovered': {
38
+ bg: 'background.hover'
39
+ },
40
+ '&:nth-of-type(odd)': {
41
+ bg: 'background.base',
42
+ '&.is-hovered': {
43
+ bg: 'background.hover'
44
+ }
45
+ }
46
+ };
47
+ var thead = {
48
+ backgroundColor: 'background.base',
49
+ '&:not(.has-caption)': {
50
+ '& > tr:first-child': {
51
+ borderTopLeftRadius: borderRadius,
52
+ borderTopRightRadius: borderRadius,
53
+ '& > th:first-of-type': {
54
+ borderTopLeftRadius: borderRadius
55
+ },
56
+ '& > th:last-of-type': {
57
+ borderTopRightRadius: borderRadius
58
+ }
59
+ }
60
+ }
61
+ };
62
+ var head = {
63
+ px: 'lg',
64
+ py: 'sm',
65
+ fontSize: 'md',
66
+ fontWeight: '2',
67
+ color: 'text.primary',
68
+ lineHeight: 'body',
69
+ '&.is-focused': _objectSpread({}, defaultFocus)
70
+ };
71
+ var tbody = {
72
+ borderTopColor: 'border.base',
73
+ borderBottom: 'unset',
74
+ backgroundColor: 'background.base',
75
+ '& > tr:last-child': {
76
+ borderBottom: 'unset',
77
+ borderBottomLeftRadius: borderRadius,
78
+ borderBottomRightRadius: borderRadius,
79
+ '& > td:first-of-type': {
80
+ borderBottomLeftRadius: borderRadius
81
+ },
82
+ '& > td:last-of-type': {
83
+ borderBottomRightRadius: borderRadius
84
+ }
85
+ }
86
+ };
87
+ var data = _objectSpread(_objectSpread({}, head), {}, {
88
+ py: 'md',
89
+ fontWeight: '1'
90
+ });
91
+ var tableBase = {
92
+ caption: caption,
93
+ row: row,
94
+ thead: thead,
95
+ head: head,
96
+ tbody: tbody,
97
+ data: data
98
+ };
99
+ exports.tableBase = tableBase;
@@ -1328,5 +1328,169 @@ 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
+ };
1331
1495
  };
1332
1496
  export default _default;
@@ -19,6 +19,7 @@ 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"));
22
23
  var _dataTable = require("./dataTable");
23
24
  var _footer = require("./footer");
24
25
  var _iconWrapper = _interopRequireDefault(require("./iconWrapper"));
@@ -31,6 +32,8 @@ var _prompt = _interopRequireDefault(require("./prompt"));
31
32
  var _response = _interopRequireDefault(require("./response"));
32
33
  var _suggestion = _interopRequireDefault(require("./suggestion"));
33
34
  var _suggestions = _interopRequireDefault(require("./suggestions"));
35
+ var _table = require("./table");
36
+ var _tableBase = require("./tableBase");
34
37
  var _tabs = require("./tabs");
35
38
  var _tooltip = _interopRequireDefault(require("./tooltip"));
36
39
  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; }
@@ -389,6 +392,9 @@ var _default = {
389
392
  rockerButton: rockerButton,
390
393
  tooltip: _tooltip["default"],
391
394
  footer: _footer.footer,
392
- loader: loader
395
+ loader: loader,
396
+ callout: _callout["default"],
397
+ table: _table.table,
398
+ tableBase: _tableBase.tableBase
393
399
  };
394
400
  exports["default"] = _default;
@@ -59,6 +59,7 @@ 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"));
62
63
  var tab = _interopRequireWildcard(require("../../components/Tabs/Tabs.style"));
63
64
  var _TimeField = _interopRequireDefault(require("../../components/TimeField/TimeField.styles"));
64
65
  var _TimeZone = _interopRequireDefault(require("../../components/TimeZonePicker/TimeZone.styles"));
@@ -68,7 +69,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "functi
68
69
  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; }
69
70
  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; }
70
71
  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; }
71
- var _default = _objectSpread({
72
+ var _default = _objectSpread(_objectSpread({
72
73
  accordion: _Accordion["default"],
73
74
  accordionGrid: _AccordionGrid["default"],
74
75
  box: _Box["default"],
@@ -116,5 +117,7 @@ var _default = _objectSpread({
116
117
  timeZone: _TimeZone["default"],
117
118
  tooltip: _Tooltip["default"],
118
119
  treeView: _TreeView["default"]
119
- }, tab);
120
+ }, tab), {}, {
121
+ tableBase: _TableBase["default"]
122
+ });
120
123
  exports["default"] = _default;
@@ -1,7 +1,9 @@
1
1
  /// <reference types="react" />
2
+ import { IconProps } from './icon';
2
3
  import { Status } from './item';
3
4
  import { DOMAttributes, StyleProps } from './shared';
4
5
  export interface CalloutProps extends StyleProps, DOMAttributes {
5
6
  status?: Status;
6
7
  icon?: React.ReactNode;
8
+ iconProps?: IconProps;
7
9
  }
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import { StyleProps } from './shared';
3
+ declare module '@react-types/table' {
4
+ interface CellProps extends StyleProps {
5
+ /** Whether the cell should not wrap its contents. */
6
+ noWrap?: boolean;
7
+ /** The contents of the cell. */
8
+ children: React.ReactNode;
9
+ /** A string representation of the cell's contents, used for features like typeahead. */
10
+ textValue?: string;
11
+ }
12
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
4
+ _Object$defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
@@ -0,0 +1,45 @@
1
+ import { Key, ReactNode } from 'react';
2
+ import type { TableState } from '@react-stately/table';
3
+ import type { GridNode } from '@react-types/grid';
4
+ import type { Node } from '@react-types/shared';
5
+ import { TestingAttributes } from './shared/test';
6
+ import { BoxProps } from './box';
7
+ import { DOMAttributes } from './shared';
8
+ export interface TableBaseProp extends BoxProps, TestingAttributes, DOMAttributes {
9
+ }
10
+ export interface TableBaseProps extends TableBaseProp {
11
+ 'aria-label'?: string;
12
+ selectedKeys?: Key[];
13
+ defaultSelectedKeys?: Key[];
14
+ selectionMode?: 'single' | 'none';
15
+ 'data-testid'?: string;
16
+ caption?: ReactNode | string;
17
+ tableBodyProps?: Record<string, unknown>;
18
+ }
19
+ export interface TableRowGroupProps extends TableBaseProp {
20
+ type: 'thead' | 'tbody' | 'tfoot';
21
+ children: ReactNode;
22
+ hasCaption?: boolean;
23
+ }
24
+ export interface TableHeaderRowProps extends TableBaseProp {
25
+ item: Node<object>;
26
+ state: TableState<object>;
27
+ children: ReactNode;
28
+ className?: string;
29
+ }
30
+ export interface TableColumnHeaderProps extends TableBaseProp {
31
+ column: GridNode<object>;
32
+ state: TableState<object>;
33
+ className?: string;
34
+ }
35
+ export interface TableRowProps extends TableBaseProp {
36
+ item: Node<object>;
37
+ state: TableState<object>;
38
+ children: ReactNode;
39
+ className?: string;
40
+ }
41
+ export interface TableCellProps extends TableBaseProp {
42
+ cell: GridNode<object>;
43
+ state: TableState<object>;
44
+ className?: string;
45
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
4
+ _Object$defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
@@ -0,0 +1,10 @@
1
+ import { Key } from 'react';
2
+ interface Item {
3
+ id: Key;
4
+ email: string;
5
+ firstName: string;
6
+ lastName: string;
7
+ status: 'Pending' | 'Active' | 'Failed' | 'Rejected';
8
+ }
9
+ export declare const items: Item[];
10
+ export {};
@@ -0,0 +1,87 @@
1
+ "use strict";
2
+
3
+ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
4
+ _Object$defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.items = void 0;
8
+ var items = [{
9
+ id: '1',
10
+ email: 'dburkitt5@columbia.edu',
11
+ firstName: 'Nicola',
12
+ lastName: 'Burkitt',
13
+ status: 'Failed'
14
+ }, {
15
+ id: '2',
16
+ email: 'idixie2@elegantthemes.com',
17
+ firstName: 'Cacilia',
18
+ lastName: 'Dixie',
19
+ status: 'Active'
20
+ }, {
21
+ id: '3',
22
+ email: 'dfowler0@rambler.ru',
23
+ firstName: 'Stavro',
24
+ lastName: 'Fowler',
25
+ status: 'Active'
26
+ }, {
27
+ id: '4',
28
+ email: 'jgolde8@jimdo.com',
29
+ firstName: 'Celisse',
30
+ lastName: 'Golde',
31
+ status: 'Active'
32
+ }, {
33
+ id: '5',
34
+ email: 'shearst9@answers.com',
35
+ firstName: 'Jeth',
36
+ lastName: 'Hearst',
37
+ status: 'Pending'
38
+ }, {
39
+ id: '6',
40
+ email: 'ajinaa@mapquest.com',
41
+ firstName: 'Kaycee',
42
+ lastName: 'Jina',
43
+ status: 'Active'
44
+ }, {
45
+ id: '7',
46
+ email: 'vmalster4@biblegateway.com',
47
+ firstName: 'Lorry',
48
+ lastName: 'Malster',
49
+ status: 'Pending'
50
+ }, {
51
+ id: '8',
52
+ email: 'yphipp6@yellowpages.com',
53
+ firstName: 'Stanley',
54
+ lastName: 'Phipp',
55
+ status: 'Active'
56
+ }, {
57
+ id: '9',
58
+ email: 'mskilbeck3@bbc.co.uk',
59
+ firstName: 'Gradey',
60
+ lastName: 'Skilbeck',
61
+ status: 'Pending'
62
+ }, {
63
+ id: '10',
64
+ email: 'dstebbing1@msu.edu',
65
+ firstName: 'Marnia',
66
+ lastName: 'Stebbing',
67
+ status: 'Rejected'
68
+ }, {
69
+ id: '11',
70
+ email: 'lsterley7@lulu.com',
71
+ firstName: 'Joshua',
72
+ lastName: 'Sterley',
73
+ status: 'Pending'
74
+ }, {
75
+ id: '12',
76
+ email: 'luttleyb@hugedomains.com',
77
+ firstName: 'Jarrod',
78
+ lastName: 'Uttley',
79
+ status: 'Active'
80
+ }, {
81
+ id: '13',
82
+ email: 'lidelc@yelp.com',
83
+ firstName: 'Andromache',
84
+ lastName: 'Idel',
85
+ status: 'Pending'
86
+ }];
87
+ exports.items = items;
@@ -207,4 +207,9 @@ ColorBlockButton.parameters = {
207
207
  type: 'figma',
208
208
  url: FIGMA_LINKS.button.colorBlockButton
209
209
  }
210
+ };
211
+ export var Filter = function Filter() {
212
+ return ___EmotionJSX(Button, {
213
+ variant: "filter"
214
+ }, "Filter Text");
210
215
  };
@@ -182,6 +182,13 @@ var defaultVariant = _objectSpread(_objectSpread({}, base), {}, {
182
182
  '&.is-pressed': _objectSpread({}, defaultActive),
183
183
  '&.is-focused': _objectSpread({}, defaultFocus)
184
184
  });
185
+ var filter = _objectSpread(_objectSpread({}, defaultVariant), {}, {
186
+ px: 'sm',
187
+ borderColor: 'neutral.80',
188
+ height: 40,
189
+ color: 'active',
190
+ display: 'flex'
191
+ });
185
192
  var colorBlock = {
186
193
  bg: 'neutral.95',
187
194
  border: '1px solid',
@@ -296,5 +303,6 @@ export default {
296
303
  primaryWithIcon: primaryWithIcon,
297
304
  quiet: quiet,
298
305
  success: success,
299
- withIcon: withIcon
306
+ withIcon: withIcon,
307
+ filter: filter
300
308
  };
@@ -1,32 +1,24 @@
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", "className", "iconProps"];
5
5
  var _calloutProps;
6
6
  import React, { forwardRef } from 'react';
7
7
  import { Box } from '../..';
8
+ import { useStatusClasses } from '../../hooks';
8
9
  import statuses from '../../utils/devUtils/constants/statuses';
9
10
  import { NoticeIcon } from '../Icon/NoticeIcon';
10
11
  import { jsx as ___EmotionJSX } from "@emotion/react";
11
12
  export var CALLOUT_TEST_ID = 'CalloutTestId';
12
13
  var calloutProps = (_calloutProps = {}, _defineProperty(_calloutProps, statuses.DEFAULT, {
13
- color: 'text.secondary',
14
- variant: 'callout.base'
14
+ color: 'text.secondary'
15
15
  }), _defineProperty(_calloutProps, statuses.ERROR, {
16
- color: 'critical.bright',
17
- variant: 'callout.error'
16
+ color: 'critical.bright'
18
17
  }), _defineProperty(_calloutProps, statuses.SUCCESS, {
19
- color: 'success.bright',
20
- variant: 'callout.success'
18
+ color: 'success.bright'
21
19
  }), _defineProperty(_calloutProps, statuses.WARNING, {
22
- color: 'warning.bright',
23
- variant: 'callout.warning'
20
+ color: 'warning.bright'
24
21
  }), _calloutProps);
25
- var defaultIconProps = {
26
- mr: 'md',
27
- ml: 'md',
28
- size: 'md'
29
- };
30
22
 
31
23
  /**
32
24
  Please note, Callout is a static component, the [Messages](./?path=/docs/components-messages)
@@ -39,18 +31,24 @@ var Callout = /*#__PURE__*/forwardRef(function (_ref, ref) {
39
31
  _ref$status = _ref.status,
40
32
  status = _ref$status === void 0 ? statuses.DEFAULT : _ref$status,
41
33
  icon = _ref.icon,
34
+ className = _ref.className,
35
+ iconProps = _ref.iconProps,
42
36
  others = _objectWithoutProperties(_ref, _excluded);
37
+ var _useStatusClasses = useStatusClasses(className, _defineProperty({}, "is-".concat(status), true)),
38
+ statusClasses = _useStatusClasses.classNames;
43
39
  return ___EmotionJSX(Box, _extends({
44
40
  ref: ref,
45
41
  "data-testid": CALLOUT_TEST_ID,
46
42
  isRow: true,
47
43
  role: "note",
48
- variant: calloutProps[status].variant
44
+ variant: "callout.base",
45
+ className: statusClasses
49
46
  }, others), icon || ___EmotionJSX(NoticeIcon, _extends({
50
47
  color: calloutProps[status].color,
51
48
  status: status,
49
+ variant: "callout.icon",
52
50
  "aria-label": "".concat(status, "-icon")
53
- }, defaultIconProps)), children);
51
+ }, iconProps)), children);
54
52
  });
55
53
  Callout.displayName = 'Callout';
56
54
  export default Callout;
@@ -12,6 +12,7 @@ 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';
15
16
  import { withDesign } from 'storybook-addon-designs';
16
17
  import DocsLayout from '../../../.storybook/storybookDocsLayout';
17
18
  import { Box, Callout, Icon, Link, Text } from '../../index';
@@ -49,6 +50,19 @@ Default.parameters = {
49
50
  url: FIGMA_LINKS.callout["default"]
50
51
  }
51
52
  };
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
+ };
52
66
  export var ErrorStatus = function ErrorStatus(args) {
53
67
  return ___EmotionJSX(Callout, _extends({
54
68
  status: statuses.ERROR
@@ -86,6 +100,14 @@ WithLink.parameters = {
86
100
  design: {
87
101
  type: 'figma',
88
102
  url: FIGMA_LINKS.callout.withLink
103
+ },
104
+ a11y: {
105
+ config: {
106
+ rules: [{
107
+ id: 'color-contrast',
108
+ enabled: false
109
+ }]
110
+ }
89
111
  }
90
112
  };
91
113
  export var Warning = function Warning(args) {