@spaced-out/ui-design-system 0.1.78 → 0.1.79

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.
@@ -1,3 +1,9 @@
1
1
  {
2
- "recommendations": ["dbaeumer.vscode-eslint", "streetsidesoftware.code-spell-checker", "esbenp.prettier-vscode", "simonsiefke.svg-preview", "flowtype.flow-for-vscode"]
3
- }
2
+ "recommendations": [
3
+ "dbaeumer.vscode-eslint",
4
+ "streetsidesoftware.code-spell-checker",
5
+ "esbenp.prettier-vscode",
6
+ "simonsiefke.svg-preview",
7
+ "flowtype.flow-for-vscode"
8
+ ]
9
+ }
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.1.79](https://github.com/spaced-out/ui-design-system/compare/v0.1.78...v0.1.79) (2024-02-16)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * ⨉ makes close icon optional in toast ([#161](https://github.com/spaced-out/ui-design-system/issues/161)) ([e050951](https://github.com/spaced-out/ui-design-system/commit/e0509516b2532a3235cb11151a9711add568c8a3))
11
+
5
12
  ### [0.1.78](https://github.com/spaced-out/ui-design-system/compare/v0.1.77...v0.1.78) (2024-01-23)
6
13
 
7
14
 
@@ -142,7 +142,8 @@ const Toast = _ref5 => {
142
142
  semantic = TOAST_SEMANTIC.success,
143
143
  onClose,
144
144
  initialFocus = -1,
145
- customIcon
145
+ customIcon,
146
+ hideCloseIcon
146
147
  } = _ref5;
147
148
  const {
148
149
  refs,
@@ -186,7 +187,7 @@ const Toast = _ref5 => {
186
187
  className: _ToastModule.default.titleBodyWrap
187
188
  }, getComp('ToastTitle'), getComp('ToastBody')), time && /*#__PURE__*/React.createElement(_Text.SubTitleExtraSmall, {
188
189
  className: classNames?.time
189
- }, time)), footerWithClose), /*#__PURE__*/React.createElement(_Icon.CloseIcon, {
190
+ }, time)), footerWithClose), !hideCloseIcon && /*#__PURE__*/React.createElement(_Icon.CloseIcon, {
190
191
  className: _ToastModule.default.closeIcon,
191
192
  onClick: onClose,
192
193
  ariaLabel: "Close Button"
@@ -36,6 +36,7 @@ export type ToastProps = {
36
36
  onClose?: () => void,
37
37
  initialFocus?: number,
38
38
  customIcon?: React.Node,
39
+ hideCloseIcon?: boolean,
39
40
  };
40
41
 
41
42
  const ToastIcon = ({semantic}: {semantic: ToastSemanticType}) => {
@@ -190,6 +191,7 @@ export const Toast = ({
190
191
  onClose,
191
192
  initialFocus = -1,
192
193
  customIcon,
194
+ hideCloseIcon,
193
195
  }: ToastProps): React.Node => {
194
196
  const {refs, context} = useFloating({
195
197
  open: true,
@@ -234,11 +236,13 @@ export const Toast = ({
234
236
  </div>
235
237
  {footerWithClose}
236
238
  </div>
237
- <CloseIcon
238
- className={css.closeIcon}
239
- onClick={onClose}
240
- ariaLabel="Close Button"
241
- />
239
+ {!hideCloseIcon && (
240
+ <CloseIcon
241
+ className={css.closeIcon}
242
+ onClick={onClose}
243
+ ariaLabel="Close Button"
244
+ />
245
+ )}
242
246
  </div>
243
247
  </FloatingFocusManager>
244
248
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spaced-out/ui-design-system",
3
- "version": "0.1.78",
3
+ "version": "0.1.79",
4
4
  "main": "index.js",
5
5
  "description": "Sense UI components library",
6
6
  "author": {