@pingux/astro 2.129.0-alpha.4 → 2.129.0-alpha.6

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 (46) 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/hooks/useGetTheme/useGetTheme.d.ts +3 -41
  17. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/callout.d.ts +27 -0
  18. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/callout.js +35 -0
  19. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.d.ts +26 -0
  20. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.js +2 -0
  21. package/lib/cjs/styles/themes/astro/customProperties/index.d.ts +4 -4
  22. package/lib/cjs/styles/themes/astro/customProperties/tShirtSizes.d.ts +4 -4
  23. package/lib/cjs/styles/themes/astro/customProperties/tShirtSizes.js +4 -4
  24. package/lib/cjs/styles/themes/next-gen/convertedComponentList.d.ts +1 -0
  25. package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +3 -2
  26. package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +33 -0
  27. package/lib/cjs/styles/themes/next-gen/variants/callout.d.ts +34 -0
  28. package/lib/cjs/styles/themes/next-gen/variants/callout.js +45 -0
  29. package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +33 -0
  30. package/lib/cjs/styles/themes/next-gen/variants/variants.js +2 -0
  31. package/lib/cjs/types/callout.d.ts +2 -0
  32. package/lib/components/Button/Button.stories.js +5 -0
  33. package/lib/components/Button/Buttons.styles.js +9 -1
  34. package/lib/components/Callout/Callout.js +14 -16
  35. package/lib/components/Callout/Callout.stories.js +22 -0
  36. package/lib/components/Callout/Callout.styles.js +19 -24
  37. package/lib/components/Callout/stories/CalloutNextGenComponent.js +24 -0
  38. package/lib/components/Callout/stories/NextGenCallout.chromatic.stories.js +12 -0
  39. package/lib/components/Callout/stories/NextGenDarkCallout.chomatic.stories.js +12 -0
  40. package/lib/styles/themeOverrides/nextGenDarkMode/variants/callout.js +27 -0
  41. package/lib/styles/themeOverrides/nextGenDarkMode/variants/variants.js +2 -0
  42. package/lib/styles/themes/astro/customProperties/tShirtSizes.js +4 -4
  43. package/lib/styles/themes/next-gen/convertedComponentList.js +3 -2
  44. package/lib/styles/themes/next-gen/variants/callout.js +36 -0
  45. package/lib/styles/themes/next-gen/variants/variants.js +2 -0
  46. package/package.json +1 -1
@@ -6,10 +6,10 @@ _Object$defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.iconWrapperSizes = exports["default"] = void 0;
8
8
  var _default = {
9
- xxs: 9,
10
- xs: 15,
11
- sm: 20,
12
- md: 25
9
+ xxs: '9px',
10
+ xs: '15px',
11
+ sm: '20px',
12
+ md: '25px'
13
13
  };
14
14
  exports["default"] = _default;
15
15
  var iconWrapperSizes = {
@@ -13,6 +13,7 @@ export declare const astroBlacklistStory: {
13
13
  DataTable: string[];
14
14
  NavBar: string[];
15
15
  SearchField: string[];
16
+ Callout: string[];
16
17
  };
17
18
  export declare const nextGenOnlyComponents: string[];
18
19
  export default nextGenConvertedComponents;
@@ -5,7 +5,7 @@ _Object$defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.nextGenOnlyComponents = exports["default"] = exports.componentSpecificNextGenBlacklist = exports.astroBlacklistStory = void 0;
8
- 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', 'Table', 'TableBase'];
8
+ 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', 'Callout', 'Table', 'TableBase'];
9
9
  var componentSpecificNextGenBlacklist = {
10
10
  AstroProvider: ['Default', 'With Custom Theme Override'],
11
11
  Badge: ['Status Badge Variants', 'Badge With Left Slot And Icon', 'Callout Badges', 'Removable'],
@@ -20,7 +20,8 @@ exports.componentSpecificNextGenBlacklist = componentSpecificNextGenBlacklist;
20
20
  var astroBlacklistStory = {
21
21
  DataTable: ['Onyx Default'],
22
22
  NavBar: ['Onyx Default'],
23
- SearchField: ['Onyx With Filter']
23
+ SearchField: ['Onyx With Filter'],
24
+ Callout: ['Customizations']
24
25
  };
25
26
  exports.astroBlacklistStory = astroBlacklistStory;
26
27
  var nextGenOnlyComponents = ['NavigationHeader', 'Prompt', 'AI Panel', 'Response', 'Suggestions', 'Prompt Input', 'Footer'];
@@ -3728,6 +3728,39 @@ declare const _default: {
3728
3728
  color: string;
3729
3729
  };
3730
3730
  };
3731
+ callout: {
3732
+ base: {
3733
+ width: string;
3734
+ backgroundColor: string;
3735
+ lineHeight: string;
3736
+ p: string;
3737
+ border: string;
3738
+ borderLeft: string;
3739
+ borderLeftColor: string;
3740
+ borderRadius: string;
3741
+ alignItems: string;
3742
+ color: string;
3743
+ '&.is-success, > .is-success': {
3744
+ borderColor: string;
3745
+ borderLeftColor: string;
3746
+ };
3747
+ '&.is-warning, > .is-warning': {
3748
+ borderColor: string;
3749
+ borderLeftColor: string;
3750
+ };
3751
+ '&.is-error, > .is-error': {
3752
+ borderColor: string;
3753
+ borderLeftColor: string;
3754
+ };
3755
+ };
3756
+ icon: {
3757
+ ml: string;
3758
+ mr: string;
3759
+ minWidth: string;
3760
+ width: string;
3761
+ height: string;
3762
+ };
3763
+ };
3731
3764
  table: {
3732
3765
  container: {
3733
3766
  overflow: string;
@@ -0,0 +1,34 @@
1
+ declare const _default: {
2
+ base: {
3
+ width: string;
4
+ backgroundColor: string;
5
+ lineHeight: string;
6
+ p: string;
7
+ border: string;
8
+ borderLeft: string;
9
+ borderLeftColor: string;
10
+ borderRadius: string;
11
+ alignItems: string;
12
+ color: string;
13
+ '&.is-success, > .is-success': {
14
+ borderColor: string;
15
+ borderLeftColor: string;
16
+ };
17
+ '&.is-warning, > .is-warning': {
18
+ borderColor: string;
19
+ borderLeftColor: string;
20
+ };
21
+ '&.is-error, > .is-error': {
22
+ borderColor: string;
23
+ borderLeftColor: string;
24
+ };
25
+ };
26
+ icon: {
27
+ ml: string;
28
+ mr: string;
29
+ minWidth: string;
30
+ width: string;
31
+ height: string;
32
+ };
33
+ };
34
+ export default _default;
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+
3
+ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
4
+ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
5
+ _Object$defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = void 0;
9
+ var _tShirtSizes = _interopRequireDefault(require("../customProperties/tShirtSizes"));
10
+ var base = {
11
+ width: '100%',
12
+ backgroundColor: 'background.secondary',
13
+ lineHeight: 'md',
14
+ p: 'md',
15
+ border: 'none',
16
+ borderLeft: '5px solid',
17
+ borderLeftColor: 'active',
18
+ borderRadius: '.25rem',
19
+ alignItems: 'flex-start',
20
+ color: 'text.primary',
21
+ '&.is-success, > .is-success': {
22
+ borderColor: 'unset',
23
+ borderLeftColor: 'success.bright'
24
+ },
25
+ '&.is-warning, > .is-warning': {
26
+ borderColor: 'unset',
27
+ borderLeftColor: 'warning.bright'
28
+ },
29
+ '&.is-error, > .is-error': {
30
+ borderColor: 'unset',
31
+ borderLeftColor: 'critical.bright'
32
+ }
33
+ };
34
+ var icon = {
35
+ ml: '0',
36
+ mr: 'md',
37
+ minWidth: "".concat(_tShirtSizes["default"].sm, " !important"),
38
+ width: "".concat(_tShirtSizes["default"].sm, " !important"),
39
+ height: "".concat(_tShirtSizes["default"].sm, " !important")
40
+ };
41
+ var _default = {
42
+ base: base,
43
+ icon: icon
44
+ };
45
+ exports["default"] = _default;
@@ -1328,6 +1328,39 @@ 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
+ };
1331
1364
  table: {
1332
1365
  container: {
1333
1366
  overflow: string;
@@ -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"));
@@ -392,6 +393,7 @@ var _default = {
392
393
  tooltip: _tooltip["default"],
393
394
  footer: _footer.footer,
394
395
  loader: loader,
396
+ callout: _callout["default"],
395
397
  table: _table.table,
396
398
  tableBase: _tableBase.tableBase
397
399
  };
@@ -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
  }
@@ -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) {
@@ -1,34 +1,29 @@
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; }
1
+ import tShirtSizes from '../../styles/themes/astro/customProperties/tShirtSizes';
12
2
  var base = {
13
3
  alignItems: 'center',
14
4
  border: '1px solid',
15
5
  borderColor: 'text.secondary',
16
6
  fontSize: 'md',
17
7
  p: '15px 12px 15px 0',
18
- width: '600px'
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")
19
25
  };
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
- });
29
26
  export default {
30
27
  base: base,
31
- error: error,
32
- success: success,
33
- warning: warning
28
+ icon: icon
34
29
  };
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ import LightbulbOutlineIcon from '@pingux/mdi-react/LightbulbOutlineIcon';
3
+ import { Box, Callout, Icon, Text } from '../../..';
4
+ import statuses from '../../../utils/devUtils/constants/statuses';
5
+ import { jsx as ___EmotionJSX } from "@emotion/react";
6
+ export var CalloutNextGenComponent = function CalloutNextGenComponent() {
7
+ return ___EmotionJSX(Box, {
8
+ gap: "md"
9
+ }, ___EmotionJSX(Callout, null, ___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.")), ___EmotionJSX(Callout, {
10
+ status: statuses.SUCCESS
11
+ }, ___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.")), ___EmotionJSX(Callout, {
12
+ status: statuses.WARNING
13
+ }, ___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.")), ___EmotionJSX(Callout, {
14
+ status: statuses.ERROR
15
+ }, ___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.")), ___EmotionJSX(Callout, {
16
+ status: statuses.SUCCESS,
17
+ icon: ___EmotionJSX(Icon, {
18
+ icon: LightbulbOutlineIcon,
19
+ size: "sm",
20
+ color: "success.bright",
21
+ mr: "md"
22
+ })
23
+ }, ___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.")));
24
+ };
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { AstroProvider, NextGenTheme } from '../../..';
3
+ import { CalloutNextGenComponent } from './CalloutNextGenComponent';
4
+ import { jsx as ___EmotionJSX } from "@emotion/react";
5
+ export default {
6
+ title: 'Chromatic Only Onyx Callout'
7
+ };
8
+ export var Default = function Default() {
9
+ return ___EmotionJSX(AstroProvider, {
10
+ theme: NextGenTheme
11
+ }, ___EmotionJSX(CalloutNextGenComponent, null));
12
+ };
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { AstroProvider, NextGenDarkTheme } from '../../..';
3
+ import { CalloutNextGenComponent } from './CalloutNextGenComponent';
4
+ import { jsx as ___EmotionJSX } from "@emotion/react";
5
+ export default {
6
+ title: 'Chromatic Only Onyx Dark Callout'
7
+ };
8
+ export var Default = function Default() {
9
+ return ___EmotionJSX(AstroProvider, {
10
+ themeOverrides: [NextGenDarkTheme]
11
+ }, ___EmotionJSX(CalloutNextGenComponent, null));
12
+ };
@@ -0,0 +1,27 @@
1
+ var base = {
2
+ color: 'text.secondary',
3
+ '> span': {
4
+ color: 'text.secondary'
5
+ },
6
+ '& > svg > path': {
7
+ fill: 'text.secondary'
8
+ },
9
+ '&.is-success, > .is-success': {
10
+ '& > svg > path': {
11
+ fill: 'text.secondary'
12
+ }
13
+ },
14
+ '&.is-warning, > .is-warning': {
15
+ '& > svg > path': {
16
+ fill: 'text.secondary'
17
+ }
18
+ },
19
+ '&.is-error, > .is-error': {
20
+ '& > svg > path': {
21
+ fill: 'text.secondary'
22
+ }
23
+ }
24
+ };
25
+ export default {
26
+ base: base
27
+ };
@@ -1,4 +1,5 @@
1
1
  import { avatar } from './avatar';
2
+ import callout from './callout';
2
3
  import { footer } from './footer';
3
4
  import iconBadge from './iconBadge';
4
5
  import { listView, listViewItem, lisViewItemChart } from './listview';
@@ -117,6 +118,7 @@ export default {
117
118
  }
118
119
  }
119
120
  },
121
+ callout: callout,
120
122
  table: {
121
123
  caption: {
122
124
  color: 'text.secondary'
@@ -1,8 +1,8 @@
1
1
  export default {
2
- xxs: 9,
3
- xs: 15,
4
- sm: 20,
5
- md: 25
2
+ xxs: '9px',
3
+ xs: '15px',
4
+ sm: '20px',
5
+ md: '25px'
6
6
  };
7
7
  export var iconWrapperSizes = {
8
8
  sm: 18,
@@ -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', 'Table', 'TableBase'];
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', 'Callout', 'Table', 'TableBase'];
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,7 +12,8 @@ export var componentSpecificNextGenBlacklist = {
12
12
  export var astroBlacklistStory = {
13
13
  DataTable: ['Onyx Default'],
14
14
  NavBar: ['Onyx Default'],
15
- SearchField: ['Onyx With Filter']
15
+ SearchField: ['Onyx With Filter'],
16
+ Callout: ['Customizations']
16
17
  };
17
18
  export var nextGenOnlyComponents = ['NavigationHeader', 'Prompt', 'AI Panel', 'Response', 'Suggestions', 'Prompt Input', 'Footer'];
18
19
  export default nextGenConvertedComponents;
@@ -0,0 +1,36 @@
1
+ import tShirtSizes from '../customProperties/tShirtSizes';
2
+ var base = {
3
+ width: '100%',
4
+ backgroundColor: 'background.secondary',
5
+ lineHeight: 'md',
6
+ p: 'md',
7
+ border: 'none',
8
+ borderLeft: '5px solid',
9
+ borderLeftColor: 'active',
10
+ borderRadius: '.25rem',
11
+ alignItems: 'flex-start',
12
+ color: 'text.primary',
13
+ '&.is-success, > .is-success': {
14
+ borderColor: 'unset',
15
+ borderLeftColor: 'success.bright'
16
+ },
17
+ '&.is-warning, > .is-warning': {
18
+ borderColor: 'unset',
19
+ borderLeftColor: 'warning.bright'
20
+ },
21
+ '&.is-error, > .is-error': {
22
+ borderColor: 'unset',
23
+ borderLeftColor: 'critical.bright'
24
+ }
25
+ };
26
+ var icon = {
27
+ ml: '0',
28
+ mr: 'md',
29
+ minWidth: "".concat(tShirtSizes.sm, " !important"),
30
+ width: "".concat(tShirtSizes.sm, " !important"),
31
+ height: "".concat(tShirtSizes.sm, " !important")
32
+ };
33
+ export default {
34
+ base: base,
35
+ icon: icon
36
+ };
@@ -14,6 +14,7 @@ import skeleton from '../../../../components/Skeleton/Skeleton.styles';
14
14
  import codeView from '../codeView/codeView';
15
15
  import { avatar } from './avatar';
16
16
  import button from './button';
17
+ import callout from './callout';
17
18
  import { dataTable } from './dataTable';
18
19
  import { footer } from './footer';
19
20
  import iconWrapper from './iconWrapper';
@@ -383,6 +384,7 @@ export default {
383
384
  tooltip: tooltip,
384
385
  footer: footer,
385
386
  loader: loader,
387
+ callout: callout,
386
388
  table: table,
387
389
  tableBase: tableBase
388
390
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "2.129.0-alpha.4",
3
+ "version": "2.129.0-alpha.6",
4
4
  "description": "React component library for Ping Identity's design system",
5
5
  "repository": {
6
6
  "type": "git",