@pingux/astro 1.38.1 → 1.39.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 (86) hide show
  1. package/lib/cjs/components/AccordionGridGroup/AccordionGridGroup.stories.js +10 -8
  2. package/lib/cjs/components/Bulletin/Bulletin.js +93 -0
  3. package/lib/cjs/components/Bulletin/Bulletin.stories.js +90 -0
  4. package/lib/cjs/components/Bulletin/Bulletin.test.js +70 -0
  5. package/lib/cjs/components/Bulletin/index.js +18 -0
  6. package/lib/cjs/components/CollapsiblePanel/CollapsiblePanel.stories.js +1 -1
  7. package/lib/cjs/components/ComboBox/ComboBoxInput.js +1 -1
  8. package/lib/cjs/components/ComboBoxField/ComboBoxField.js +15 -14
  9. package/lib/cjs/components/ComboBoxField/ComboBoxField.stories.js +15 -1
  10. package/lib/cjs/components/ComboBoxField/ComboBoxField.test.js +36 -0
  11. package/lib/cjs/components/Icon/NoticeIcon.js +71 -0
  12. package/lib/cjs/components/Icon/NoticeIcon.test.js +35 -0
  13. package/lib/cjs/components/IconButton/IconButton.stories.js +11 -2
  14. package/lib/cjs/components/IconButtonToggle/IconButtonToggle.stories.js +3 -0
  15. package/lib/cjs/components/ListItem/ListItem.stories.js +4 -8
  16. package/lib/cjs/components/ListView/ListView.stories.js +22 -13
  17. package/lib/cjs/components/Messages/Message.js +27 -41
  18. package/lib/cjs/components/Messages/Messages.test.js +13 -0
  19. package/lib/cjs/components/NavBarSection/NavBarItemHeader.js +2 -2
  20. package/lib/cjs/components/TextField/TextField.stories.js +3 -3
  21. package/lib/cjs/index.js +85 -62
  22. package/lib/cjs/recipes/ApplicationSearchDropdown.stories.js +2 -1
  23. package/lib/cjs/recipes/AttributeMappingReadOnlyField.stories.js +1 -1
  24. package/lib/cjs/recipes/AttributesAndPingOneMapping.stories.js +4 -2
  25. package/lib/cjs/recipes/CollapsiblePanel.stories.js +1 -1
  26. package/lib/cjs/recipes/ConditionalFilter.stories.js +1 -1
  27. package/lib/cjs/recipes/DatePicker.stories.js +1 -1
  28. package/lib/cjs/recipes/EditableInput.stories.js +4 -2
  29. package/lib/cjs/recipes/LinkedListView.stories.js +1 -1
  30. package/lib/cjs/recipes/ListAndPanel.stories.js +10 -3
  31. package/lib/cjs/recipes/MaskedValue.stories.js +2 -1
  32. package/lib/cjs/recipes/OneWayToBidirectionalArrow.stories.js +5 -5
  33. package/lib/cjs/recipes/PageHeader.stories.js +1 -1
  34. package/lib/cjs/recipes/PanelHeader.stories.js +2 -2
  35. package/lib/cjs/recipes/RadioButtonsWithLinks.stories.js +2 -1
  36. package/lib/cjs/recipes/ScrollableListView.stories.js +10 -6
  37. package/lib/cjs/recipes/TrialExperienceIndustryButtons.stories.js +2 -2
  38. package/lib/cjs/recipes/TrialExperienceStatusBar.stories.js +1 -1
  39. package/lib/cjs/styles/templates/Nav/HeaderBar.js +1 -1
  40. package/lib/cjs/styles/variants/bulletin.js +60 -0
  41. package/lib/cjs/styles/variants/buttons.js +4 -1
  42. package/lib/cjs/styles/variants/variants.js +3 -0
  43. package/lib/components/AccordionGridGroup/AccordionGridGroup.stories.js +11 -9
  44. package/lib/components/Bulletin/Bulletin.js +70 -0
  45. package/lib/components/Bulletin/Bulletin.stories.js +59 -0
  46. package/lib/components/Bulletin/Bulletin.test.js +45 -0
  47. package/lib/components/Bulletin/index.js +1 -0
  48. package/lib/components/CollapsiblePanel/CollapsiblePanel.stories.js +1 -1
  49. package/lib/components/ComboBox/ComboBoxInput.js +1 -1
  50. package/lib/components/ComboBoxField/ComboBoxField.js +15 -14
  51. package/lib/components/ComboBoxField/ComboBoxField.stories.js +11 -0
  52. package/lib/components/ComboBoxField/ComboBoxField.test.js +34 -0
  53. package/lib/components/Icon/NoticeIcon.js +43 -0
  54. package/lib/components/Icon/NoticeIcon.test.js +24 -0
  55. package/lib/components/IconButton/IconButton.stories.js +11 -2
  56. package/lib/components/IconButtonToggle/IconButtonToggle.stories.js +3 -0
  57. package/lib/components/ListItem/ListItem.stories.js +4 -8
  58. package/lib/components/ListView/ListView.stories.js +22 -13
  59. package/lib/components/Messages/Message.js +21 -28
  60. package/lib/components/Messages/Messages.test.js +11 -0
  61. package/lib/components/NavBarSection/NavBarItemHeader.js +2 -2
  62. package/lib/components/TextField/TextField.stories.js +3 -3
  63. package/lib/index.js +2 -0
  64. package/lib/recipes/ApplicationSearchDropdown.stories.js +2 -1
  65. package/lib/recipes/AttributeMappingReadOnlyField.stories.js +1 -1
  66. package/lib/recipes/AttributesAndPingOneMapping.stories.js +4 -2
  67. package/lib/recipes/CollapsiblePanel.stories.js +1 -1
  68. package/lib/recipes/ConditionalFilter.stories.js +1 -1
  69. package/lib/recipes/DatePicker.stories.js +1 -1
  70. package/lib/recipes/EditableInput.stories.js +4 -2
  71. package/lib/recipes/LinkedListView.stories.js +1 -1
  72. package/lib/recipes/ListAndPanel.stories.js +10 -3
  73. package/lib/recipes/MaskedValue.stories.js +2 -1
  74. package/lib/recipes/OneWayToBidirectionalArrow.stories.js +5 -5
  75. package/lib/recipes/PageHeader.stories.js +1 -1
  76. package/lib/recipes/PanelHeader.stories.js +2 -2
  77. package/lib/recipes/RadioButtonsWithLinks.stories.js +2 -1
  78. package/lib/recipes/ScrollableListView.stories.js +10 -6
  79. package/lib/recipes/TrialExperienceIndustryButtons.stories.js +2 -2
  80. package/lib/recipes/TrialExperienceStatusBar.stories.js +1 -1
  81. package/lib/styles/templates/Nav/HeaderBar.js +1 -1
  82. package/lib/styles/variants/bulletin.js +41 -0
  83. package/lib/styles/variants/buttons.js +4 -1
  84. package/lib/styles/variants/variants.js +2 -0
  85. package/package.json +1 -1
  86. package/NOTICE.html +0 -4707
@@ -1008,4 +1008,38 @@ test('popover closes on input blur', function () {
1008
1008
  userEvent.click(document.body);
1009
1009
  expect(screen.queryByRole('listbox')).not.toBeInTheDocument();
1010
1010
  expect(screen.queryByRole('option')).not.toBeInTheDocument();
1011
+ });
1012
+ describe('when isReadOnly is true', function () {
1013
+ var testProp = {
1014
+ isReadOnly: true
1015
+ };
1016
+ var TEST_DEFAULT_INPUT_VALUE = 'test default input value';
1017
+ test('it does not have the show suggestions button', function () {
1018
+ getComponent(testProp);
1019
+ expect(screen.queryByRole('button', {
1020
+ name: "".concat(defaultProps.label, " Show suggestions")
1021
+ })).not.toBeInTheDocument();
1022
+ });
1023
+ test('it has attribute readonly', function () {
1024
+ getComponent(testProp);
1025
+ expect(screen.getByRole('combobox', {
1026
+ name: defaultProps.label
1027
+ })).toHaveAttribute('readonly');
1028
+ });
1029
+ test('the default selected value is selected', function () {
1030
+ testProp.defaultInputValue = TEST_DEFAULT_INPUT_VALUE;
1031
+ getComponent(testProp);
1032
+ expect(screen.getByRole('combobox', {
1033
+ name: defaultProps.label
1034
+ })).toHaveValue(TEST_DEFAULT_INPUT_VALUE);
1035
+ });
1036
+ test('the dropdown does not open when clicked', function () {
1037
+ getComponent(testProp);
1038
+ userEvent.click(screen.getByRole('combobox', {
1039
+ name: defaultProps.label
1040
+ }));
1041
+ expect(screen.queryByRole('listbox', {
1042
+ name: 'Test Label Suggestions'
1043
+ })).not.toBeInTheDocument();
1044
+ });
1011
1045
  });
@@ -0,0 +1,43 @@
1
+ import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
2
+ import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectWithoutProperties";
3
+ import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
4
+ var _excluded = ["status"];
5
+
6
+ var _noticeIcons;
7
+
8
+ import _Object$values from "@babel/runtime-corejs3/core-js-stable/object/values";
9
+ import React from 'react';
10
+ import AlertCircleIcon from 'mdi-react/AlertCircleIcon';
11
+ import AlertIcon from 'mdi-react/AlertIcon';
12
+ import CheckCircleIcon from 'mdi-react/CheckCircleIcon';
13
+ import InformationIcon from 'mdi-react/InformationIcon';
14
+ import PropTypes from 'prop-types';
15
+ import { Icon } from '../..';
16
+ import statuses from '../../utils/devUtils/constants/statuses';
17
+ import { jsx as ___EmotionJSX } from "@emotion/react";
18
+ export var noticeIcons = (_noticeIcons = {}, _defineProperty(_noticeIcons, statuses.DEFAULT, {
19
+ icon: InformationIcon,
20
+ testid: 'default-icon-testid'
21
+ }), _defineProperty(_noticeIcons, statuses.ERROR, {
22
+ icon: AlertCircleIcon,
23
+ testid: 'error-icon-testid'
24
+ }), _defineProperty(_noticeIcons, statuses.SUCCESS, {
25
+ icon: CheckCircleIcon,
26
+ testid: 'success-icon-testid'
27
+ }), _defineProperty(_noticeIcons, statuses.WARNING, {
28
+ icon: AlertIcon,
29
+ testid: 'warning-icon-testid'
30
+ }), _noticeIcons);
31
+ export var NoticeIcon = function NoticeIcon(_ref) {
32
+ var _ref$status = _ref.status,
33
+ status = _ref$status === void 0 ? statuses.DEFAULT : _ref$status,
34
+ others = _objectWithoutProperties(_ref, _excluded);
35
+
36
+ return ___EmotionJSX(Icon, _extends({
37
+ "data-testid": noticeIcons[status].testid,
38
+ icon: noticeIcons[status].icon
39
+ }, others));
40
+ };
41
+ NoticeIcon.propTypes = {
42
+ status: PropTypes.oneOf(_Object$values(statuses))
43
+ };
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ import { screen } from '@testing-library/react';
3
+ import statuses from '../../utils/devUtils/constants/statuses';
4
+ import { render } from '../../utils/testUtils/testWrapper';
5
+ import { NoticeIcon, noticeIcons } from './NoticeIcon';
6
+ import { jsx as ___EmotionJSX } from "@emotion/react";
7
+
8
+ var getComponent = function getComponent() {
9
+ var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
10
+ return render(___EmotionJSX(NoticeIcon, props));
11
+ };
12
+
13
+ describe('NoticeIcon', function () {
14
+ test('renders', function () {
15
+ getComponent();
16
+ screen.getByTestId(noticeIcons[statuses.DEFAULT].testid);
17
+ });
18
+ test.each([[statuses.DEFAULT, noticeIcons[statuses.DEFAULT].testid], [statuses.ERROR, noticeIcons[statuses.ERROR].testid], [statuses.SUCCESS, noticeIcons[statuses.SUCCESS].testid], [statuses.WARNING, noticeIcons[statuses.WARNING].testid]])('when given status %s it renders icon with %s', function (status, icon) {
19
+ getComponent({
20
+ status: status
21
+ });
22
+ screen.getByTestId(icon);
23
+ });
24
+ });
@@ -42,6 +42,13 @@ export default {
42
42
  options: ['iconButton', 'inverted', 'square', 'invertedSquare']
43
43
  },
44
44
  defaultValue: 'iconButton'
45
+ },
46
+ size: {
47
+ control: {
48
+ type: 'select',
49
+ options: ['xs', 'sm', 'md']
50
+ },
51
+ defaultValue: 'sm'
45
52
  }
46
53
  }
47
54
  };
@@ -49,7 +56,8 @@ export var Default = function Default(args) {
49
56
  return ___EmotionJSX(IconButton, _extends({
50
57
  "aria-label": "default icon button"
51
58
  }, args), ___EmotionJSX(Icon, {
52
- icon: CreateIcon
59
+ icon: CreateIcon,
60
+ size: args.size
53
61
  }));
54
62
  };
55
63
  export var WithTooltip = function WithTooltip() {
@@ -57,7 +65,8 @@ export var WithTooltip = function WithTooltip() {
57
65
  "aria-label": "icon button with tooltip",
58
66
  title: "Edit"
59
67
  }, ___EmotionJSX(Icon, {
60
- icon: CreateIcon
68
+ icon: CreateIcon,
69
+ size: "sm"
61
70
  }));
62
71
  };
63
72
  export var Disabled = function Disabled() {
@@ -35,6 +35,9 @@ export var Controlled = function Controlled(args) {
35
35
  isToggled: isToggled,
36
36
  buttonProps: {
37
37
  'aria-label': 'eye icon'
38
+ },
39
+ iconProps: {
40
+ size: 'sm'
38
41
  }
39
42
  }));
40
43
  };
@@ -31,11 +31,9 @@ export var Default = function Default(args) {
31
31
  }, "Fons Vernall")), ___EmotionJSX(Box, {
32
32
  isRow: true,
33
33
  alignSelf: "center"
34
- }, ___EmotionJSX(IconButton, {
35
- size: 26
36
- }, ___EmotionJSX(Icon, {
34
+ }, ___EmotionJSX(IconButton, null, ___EmotionJSX(Icon, {
37
35
  icon: MoreVertIcon,
38
- size: 20,
36
+ size: "sm",
39
37
  color: "neutral.20"
40
38
  })))), ___EmotionJSX(Separator, {
41
39
  margin: 0
@@ -62,11 +60,9 @@ export var WithSubtitle = function WithSubtitle(args) {
62
60
  }, "fvernall0@google.it"))), ___EmotionJSX(Box, {
63
61
  isRow: true,
64
62
  alignSelf: "center"
65
- }, ___EmotionJSX(IconButton, {
66
- size: 26
67
- }, ___EmotionJSX(Icon, {
63
+ }, ___EmotionJSX(IconButton, null, ___EmotionJSX(Icon, {
68
64
  icon: MoreVertIcon,
69
- size: 20,
65
+ size: "sm",
70
66
  color: "neutral.20"
71
67
  })))), ___EmotionJSX(Separator, {
72
68
  margin: 0
@@ -530,7 +530,7 @@ var ListElement = function ListElement(_ref) {
530
530
  icon: FormSelectIcon,
531
531
  mr: "sm",
532
532
  color: "text.primary",
533
- size: 25
533
+ size: "md"
534
534
  }), ___EmotionJSX(Text, {
535
535
  variant: "itemTitle",
536
536
  alignSelf: "center"
@@ -538,12 +538,16 @@ var ListElement = function ListElement(_ref) {
538
538
  isRow: true,
539
539
  alignSelf: "center"
540
540
  }, ___EmotionJSX(IconButton, {
541
- "aria-label": "create-icon",
542
- size: 20
543
- }, ___EmotionJSX(CreateIcon, null)), ___EmotionJSX(IconButton, {
544
- "aria-label": "actions-icon",
545
- size: 20
546
- }, ___EmotionJSX(MoreVertIcon, null))));
541
+ "aria-label": "create-icon"
542
+ }, ___EmotionJSX(Icon, {
543
+ icon: CreateIcon,
544
+ size: "sm"
545
+ })), ___EmotionJSX(IconButton, {
546
+ "aria-label": "actions-icon"
547
+ }, ___EmotionJSX(Icon, {
548
+ icon: MoreVertIcon,
549
+ size: "sm"
550
+ }))));
547
551
  };
548
552
 
549
553
  export var Default = function Default(_ref2) {
@@ -566,7 +570,7 @@ export var Default = function Default(_ref2) {
566
570
  icon: FormSelectIcon,
567
571
  mr: "sm",
568
572
  color: "text.primary",
569
- size: 25
573
+ size: "md"
570
574
  }), ___EmotionJSX(Text, {
571
575
  variant: "itemTitle",
572
576
  alignSelf: "center"
@@ -574,12 +578,17 @@ export var Default = function Default(_ref2) {
574
578
  isRow: true,
575
579
  alignSelf: "center"
576
580
  }, ___EmotionJSX(IconButton, {
577
- "aria-label": "create-icon",
578
- size: 20
579
- }, ___EmotionJSX(CreateIcon, null)), ___EmotionJSX(IconButton, {
581
+ "aria-label": "create-icon"
582
+ }, ___EmotionJSX(Icon, {
583
+ icon: CreateIcon,
584
+ size: "sm"
585
+ })), ___EmotionJSX(IconButton, {
580
586
  "aria-label": "actions-icon",
581
- size: 20
582
- }, ___EmotionJSX(MoreVertIcon, null)))));
587
+ size: "sm"
588
+ }, ___EmotionJSX(Icon, {
589
+ icon: MoreVertIcon,
590
+ size: "sm"
591
+ })))));
583
592
  });
584
593
  };
585
594
  export var InfiniteLoadingList = function InfiniteLoadingList(args) {
@@ -5,25 +5,13 @@ import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectW
5
5
  var _excluded = ["color"];
6
6
  import _Object$values from "@babel/runtime-corejs3/core-js-stable/object/values";
7
7
  import React, { forwardRef, useRef, useState, useLayoutEffect } from 'react';
8
- import PropTypes from 'prop-types';
9
- import AlertCircleIcon from 'mdi-react/AlertCircleIcon';
10
- import CheckCircleIcon from 'mdi-react/CheckCircleIcon';
11
8
  import CloseIcon from 'mdi-react/CloseIcon';
12
- import AlertIcon from 'mdi-react/AlertIcon';
13
- import InformationIcon from 'mdi-react/InformationIcon';
14
- import useStatusClasses from '../../hooks/useStatusClasses';
9
+ import PropTypes from 'prop-types';
10
+ import { NoticeIcon } from '../Icon/NoticeIcon';
15
11
  import statuses from '../../utils/devUtils/constants/statuses';
16
- import Box from '../Box';
17
- import Icon from '../Icon';
18
- import IconButton from '../IconButton';
19
- import Text from '../Text';
12
+ import useStatusClasses from '../../hooks/useStatusClasses';
13
+ import { Box, Icon, IconButton, Text } from '../..';
20
14
  import { jsx as ___EmotionJSX } from "@emotion/react";
21
- export var icons = {
22
- "default": InformationIcon,
23
- success: CheckCircleIcon,
24
- error: AlertCircleIcon,
25
- warning: AlertIcon
26
- };
27
15
  export var ARIA_STATUSES = {
28
16
  SUCCESS: 'Success Message',
29
17
  ERROR: 'Error Message',
@@ -50,10 +38,10 @@ var CloseButton = function CloseButton(_ref) {
50
38
  CloseButton.propTypes = {
51
39
  color: PropTypes.string
52
40
  };
53
- var Message = /*#__PURE__*/forwardRef(function (props, ref) {
54
- var className = props.className,
55
- item = props.item,
56
- onClose = props.onClose;
41
+ var Message = /*#__PURE__*/forwardRef(function (_ref2, ref) {
42
+ var className = _ref2.className,
43
+ item = _ref2.item,
44
+ onClose = _ref2.onClose;
57
45
  var key = item.key,
58
46
  itemProps = item.props;
59
47
  var children = itemProps.children,
@@ -61,8 +49,7 @@ var Message = /*#__PURE__*/forwardRef(function (props, ref) {
61
49
  status = _itemProps$status === void 0 ? 'default' : _itemProps$status,
62
50
  bg = itemProps.bg,
63
51
  color = itemProps.color,
64
- _itemProps$icon = itemProps.icon,
65
- icon = _itemProps$icon === void 0 ? icons[status] : _itemProps$icon,
52
+ icon = itemProps.icon,
66
53
  _itemProps$isHidden = itemProps.isHidden,
67
54
  isHidden = _itemProps$isHidden === void 0 ? false : _itemProps$isHidden,
68
55
  dataId = itemProps['data-id'];
@@ -104,6 +91,17 @@ var Message = /*#__PURE__*/forwardRef(function (props, ref) {
104
91
  return '';
105
92
  };
106
93
 
94
+ var messageIconProps = {
95
+ className: statusClasses,
96
+ color: color,
97
+ mr: 'md'
98
+ };
99
+ var messageIcon = icon ? ___EmotionJSX(Icon, _extends({
100
+ icon: icon,
101
+ "data-testid": "custom-icon-testid"
102
+ }, messageIconProps)) : ___EmotionJSX(NoticeIcon, _extends({
103
+ status: status
104
+ }, messageIconProps));
107
105
  return ___EmotionJSX(Box, {
108
106
  variant: "messages.transition",
109
107
  className: wrapperClasses,
@@ -122,12 +120,7 @@ var Message = /*#__PURE__*/forwardRef(function (props, ref) {
122
120
  variant: "messages.item",
123
121
  className: statusClasses,
124
122
  bg: bg
125
- }, icon && ___EmotionJSX(Icon, {
126
- icon: icon,
127
- className: statusClasses,
128
- color: color,
129
- mr: "md"
130
- }), ___EmotionJSX(Text, {
123
+ }, messageIcon, ___EmotionJSX(Text, {
131
124
  className: statusClasses,
132
125
  color: color,
133
126
  mr: "md"
@@ -5,6 +5,7 @@ import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
5
5
  import React from 'react';
6
6
  import { Item } from '@react-stately/collections';
7
7
  import userEvent from '@testing-library/user-event';
8
+ import AccountIcon from 'mdi-react/AccountIcon';
8
9
  import axeTest from '../../utils/testUtils/testAxe';
9
10
  import { render, screen } from '../../utils/testUtils/testWrapper';
10
11
  import Messages, { messagesReducerStory, multiMessagesReducerStory } from '.';
@@ -146,4 +147,14 @@ test('should render messages with multiMessagesReducerStory', function () {
146
147
  getComponent();
147
148
  multiMessagesReducerStory.actions.showSuccessMessage();
148
149
  expect(screen.getByTestId(testId)).toBeInTheDocument();
150
+ });
151
+ test('should render a custom icon', function () {
152
+ getWithDynamicList({
153
+ items: [{
154
+ key: 'message1',
155
+ text: 'test text',
156
+ icon: AccountIcon
157
+ }]
158
+ });
159
+ screen.getByTestId('custom-icon-testid');
149
160
  });
@@ -51,7 +51,7 @@ var NavBarItemHeader = function NavBarItemHeader(props) {
51
51
  "data-testid": heading
52
52
  }, icon && ___EmotionJSX(Icon, {
53
53
  icon: icon,
54
- size: 20,
54
+ size: "sm",
55
55
  sx: {
56
56
  mr: '10px',
57
57
  color: 'white',
@@ -68,7 +68,7 @@ var NavBarItemHeader = function NavBarItemHeader(props) {
68
68
  }
69
69
  }, ___EmotionJSX(Icon, {
70
70
  icon: isExpanded ? MenuUp : MenuDown,
71
- size: 20,
71
+ size: "xs",
72
72
  sx: {
73
73
  color: 'white',
74
74
  fill: 'white'
@@ -57,7 +57,7 @@ export var Default = function Default(_ref) {
57
57
  args = _objectWithoutProperties(_ref, _excluded);
58
58
 
59
59
  return ___EmotionJSX(TextField, _extends({
60
- id: "custom-id",
60
+ id: "default-id",
61
61
  name: "custom-name",
62
62
  label: "Example Label"
63
63
  }, variant && {
@@ -68,7 +68,7 @@ export var Default = function Default(_ref) {
68
68
  };
69
69
  export var SmallVariant = function SmallVariant() {
70
70
  return ___EmotionJSX(TextField, {
71
- id: "custom-id",
71
+ id: "small-variant-id",
72
72
  name: "custom-name",
73
73
  label: "Example Label",
74
74
  controlProps: {
@@ -187,7 +187,7 @@ export var Warning = function Warning() {
187
187
  };
188
188
  export var WithHelpHint = function WithHelpHint() {
189
189
  return ___EmotionJSX(TextField, {
190
- id: "custom-id",
190
+ id: "with-help-hint-id",
191
191
  name: "custom-name",
192
192
  hintText: "Example Hint",
193
193
  label: "Example Label"
package/lib/index.js CHANGED
@@ -22,6 +22,8 @@ export { default as Bracket } from './components/Bracket';
22
22
  export * from './components/Bracket';
23
23
  export { default as Breadcrumbs } from './components/Breadcrumbs';
24
24
  export * from './components/Breadcrumbs';
25
+ export { default as Bulletin } from './components/Bulletin';
26
+ export * from './components/Bulletin';
25
27
  export { default as Button } from './components/Button';
26
28
  export * from './components/Button';
27
29
  export { default as Card } from './components/Card';
@@ -215,7 +215,8 @@ export var Default = function Default() {
215
215
  '& > path': {
216
216
  fill: isPinned ? 'success.bright' : 'neutral.50'
217
217
  }
218
- }
218
+ },
219
+ size: "sm"
219
220
  }))));
220
221
  };
221
222
 
@@ -140,7 +140,7 @@ var Title = function Title() {
140
140
  "aria-label": "edit header button"
141
141
  }, ___EmotionJSX(Icon, {
142
142
  icon: CreateIcon,
143
- size: 18
143
+ size: "sm"
144
144
  }))));
145
145
  };
146
146
 
@@ -159,7 +159,8 @@ var Row = /*#__PURE__*/memo(function (props) {
159
159
  "aria-label": "icon button with tooltip",
160
160
  title: "Advanced Expression"
161
161
  }, ___EmotionJSX(Icon, {
162
- icon: CogsIcon
162
+ icon: CogsIcon,
163
+ size: "sm"
163
164
  })), ___EmotionJSX(IconButton, {
164
165
  "aria-label": "icon button with tooltip",
165
166
  title: "Delete",
@@ -170,7 +171,8 @@ var Row = /*#__PURE__*/memo(function (props) {
170
171
  return removeRow(index);
171
172
  }
172
173
  }, ___EmotionJSX(Icon, {
173
- icon: DeleteIcon
174
+ icon: DeleteIcon,
175
+ size: "sm"
174
176
  })))));
175
177
  });
176
178
  export var Default = function Default() {
@@ -210,7 +210,7 @@ export var Default = function Default() {
210
210
  "aria-label": "Close Panel"
211
211
  }, ___EmotionJSX(Icon, {
212
212
  icon: Clear,
213
- size: 20
213
+ size: "sm"
214
214
  }))))), ___EmotionJSX(Box, {
215
215
  pl: "md",
216
216
  pt: "25px"
@@ -109,7 +109,7 @@ export var Default = function Default() {
109
109
  }
110
110
  }, ___EmotionJSX(Icon, {
111
111
  icon: CreateIcon,
112
- size: 14
112
+ size: "xs"
113
113
  }))), ___EmotionJSX(Box, {
114
114
  isRow: true
115
115
  }, ___EmotionJSX(Chip, {
@@ -97,7 +97,7 @@ export var Default = function Default() {
97
97
  ref: triggerRef
98
98
  }, triggerProps), ___EmotionJSX(Icon, {
99
99
  icon: CalendarIcon,
100
- size: 20
100
+ size: "sm"
101
101
  }))
102
102
  },
103
103
  onChange: handleInputChange,
@@ -312,12 +312,14 @@ var EditableControl = function EditableControl(props) {
312
312
  variant: confirmBtn.variant,
313
313
  sx: sx.editableControlIconButton
314
314
  }, ___EmotionJSX(Icon, {
315
- icon: CheckIcon
315
+ icon: CheckIcon,
316
+ size: "sm"
316
317
  })), ___EmotionJSX(IconButton, {
317
318
  "aria-label": cancelBtn.ariaLabel,
318
319
  onPress: handleCancel,
319
320
  variant: cancelBtn.variant
320
321
  }, ___EmotionJSX(Icon, {
321
- icon: CloseIcon
322
+ icon: CloseIcon,
323
+ size: "sm"
322
324
  })));
323
325
  };
@@ -226,7 +226,7 @@ export var Default = function Default(_ref) {
226
226
  "aria-label": "Menu Button"
227
227
  }, ___EmotionJSX(Icon, {
228
228
  icon: DotsVerticalIcon,
229
- size: 16,
229
+ size: "xs",
230
230
  color: "Neutral.40",
231
231
  m: "0.61px"
232
232
  }))), ___EmotionJSX(Menu, {
@@ -201,7 +201,11 @@ var ListElement = function ListElement(_ref) {
201
201
  }), ___EmotionJSX(PopoverMenu, null, ___EmotionJSX(IconButton, {
202
202
  "aria-label": "more icon button",
203
203
  mr: onClosePanel ? 'sm' : 0
204
- }, ___EmotionJSX(MoreVertIcon, null)), ___EmotionJSX(Menu, null, ___EmotionJSX(Item, {
204
+ }, ___EmotionJSX(Icon, {
205
+ icon: MoreVertIcon,
206
+ color: "white",
207
+ size: "sm"
208
+ })), ___EmotionJSX(Menu, null, ___EmotionJSX(Item, {
205
209
  key: "enable"
206
210
  }, "Enable user"), ___EmotionJSX(Item, {
207
211
  key: "disable"
@@ -210,7 +214,10 @@ var ListElement = function ListElement(_ref) {
210
214
  }, "Delete user"))), onClosePanel && ___EmotionJSX(IconButton, {
211
215
  "aria-label": "close icon button",
212
216
  onPress: onClosePanel
213
- }, ___EmotionJSX(CloseIcon, null))));
217
+ }, ___EmotionJSX(Icon, {
218
+ size: "sm",
219
+ icon: CloseIcon
220
+ }))));
214
221
  };
215
222
 
216
223
  export var Default = function Default() {
@@ -271,7 +278,7 @@ export var Default = function Default() {
271
278
  }, ___EmotionJSX(Icon, {
272
279
  icon: PlusIcon,
273
280
  color: "white",
274
- size: 13
281
+ size: "xs"
275
282
  }))), ___EmotionJSX(Text, {
276
283
  variant: "bodyWeak"
277
284
  }, description, ___EmotionJSX(Link, {
@@ -61,6 +61,7 @@ export var Default = function Default(_ref) {
61
61
  },
62
62
  sx: sx.showHideButton
63
63
  }, ___EmotionJSX(Icon, {
64
- icon: isMasked ? EyeOffIcon : EyeIcon
64
+ icon: isMasked ? EyeOffIcon : EyeIcon,
65
+ size: "sm"
65
66
  }))));
66
67
  };
@@ -120,7 +120,7 @@ export var Default = function Default() {
120
120
  defaultIcon: CustomOffSvg,
121
121
  title: "Bidirectional/ Outbound toggle",
122
122
  iconProps: {
123
- size: 16
123
+ size: 'xs'
124
124
  },
125
125
  buttonProps: {
126
126
  variant: 'bidirectionalIconButton'
@@ -150,7 +150,7 @@ export var Default = function Default() {
150
150
  }, ___EmotionJSX(Icon, {
151
151
  icon: CogsIcon,
152
152
  sx: sx.actionIcon,
153
- size: 20,
153
+ size: "sm",
154
154
  title: "edit icon"
155
155
  })), ___EmotionJSX(IconButton, {
156
156
  sx: sx.iconButton,
@@ -158,7 +158,7 @@ export var Default = function Default() {
158
158
  }, ___EmotionJSX(Icon, {
159
159
  icon: DeleteIcon,
160
160
  sx: sx.actionIcon,
161
- size: 20,
161
+ size: "sm",
162
162
  title: "delete icon"
163
163
  })))), ___EmotionJSX(Box, {
164
164
  sx: sx.outerContainer,
@@ -222,7 +222,7 @@ export var Default = function Default() {
222
222
  }, ___EmotionJSX(Icon, {
223
223
  icon: CogsIcon,
224
224
  sx: sx.actionIcon,
225
- size: 20,
225
+ size: "sm",
226
226
  title: "edit icon"
227
227
  })), ___EmotionJSX(IconButton, {
228
228
  sx: sx.iconButton,
@@ -230,7 +230,7 @@ export var Default = function Default() {
230
230
  }, ___EmotionJSX(Icon, {
231
231
  icon: DeleteIcon,
232
232
  sx: sx.actionIcon,
233
- size: 20,
233
+ size: "sm",
234
234
  title: "delete icon"
235
235
  })))));
236
236
  };
@@ -46,7 +46,7 @@ export var Default = function Default() {
46
46
  }, ___EmotionJSX(Icon, {
47
47
  icon: PlusIcon,
48
48
  color: "white",
49
- size: 13
49
+ size: "xs"
50
50
  }))), ___EmotionJSX(Text, {
51
51
  variant: "bodyWeak"
52
52
  }, description)));
@@ -51,7 +51,7 @@ export var Default = function Default() {
51
51
  "aria-label": "Menu Button"
52
52
  }, ___EmotionJSX(Icon, {
53
53
  icon: DotsVerticalIcon,
54
- size: 16.8,
54
+ size: "xs",
55
55
  color: "Neutral.40",
56
56
  m: "0.61px"
57
57
  })), ___EmotionJSX(Menu, null, ___EmotionJSX(Item, {
@@ -68,7 +68,7 @@ export var Default = function Default() {
68
68
  mx: "10px"
69
69
  }, ___EmotionJSX(Icon, {
70
70
  icon: CloseIcon,
71
- size: 16.8,
71
+ size: "xs",
72
72
  color: "Neutral.40",
73
73
  m: "0.61px"
74
74
  }))));
@@ -81,7 +81,8 @@ export var Default = function Default() {
81
81
  onPress: onPress,
82
82
  "aria-label": "close icon button"
83
83
  }, ___EmotionJSX(Icon, {
84
- icon: CloseIcon
84
+ icon: CloseIcon,
85
+ size: "sm"
85
86
  }))), ___EmotionJSX(Box, null, ___EmotionJSX(Text, {
86
87
  sx: titleSx,
87
88
  mb: "xs"
@@ -103,11 +103,15 @@ export var Default = function Default(_ref) {
103
103
  isRow: true,
104
104
  alignSelf: "center"
105
105
  }, ___EmotionJSX(IconButton, {
106
- "aria-label": "create-icon",
107
- size: 20
108
- }, ___EmotionJSX(CreateIcon, null)), ___EmotionJSX(IconButton, {
109
- "aria-label": "create-icon",
110
- size: 20
111
- }, ___EmotionJSX(MoreVertIcon, null)))));
106
+ "aria-label": "create-icon"
107
+ }, ___EmotionJSX(Icon, {
108
+ icon: CreateIcon,
109
+ size: "sm"
110
+ })), ___EmotionJSX(IconButton, {
111
+ "aria-label": "create-icon"
112
+ }, ___EmotionJSX(Icon, {
113
+ icon: MoreVertIcon,
114
+ size: "sm"
115
+ })))));
112
116
  })));
113
117
  };