@spaced-out/ui-design-system 0.1.78 → 0.1.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.vscode/extensions.json
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"recommendations": [
|
|
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,20 @@
|
|
|
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.80](https://github.com/spaced-out/ui-design-system/compare/v0.1.79...v0.1.80) (2024-02-20)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* radio input shrink issue ([#162](https://github.com/spaced-out/ui-design-system/issues/162)) ([09d5595](https://github.com/spaced-out/ui-design-system/commit/09d55958733242e46a9e5c49cab1faaf38587895))
|
|
11
|
+
|
|
12
|
+
### [0.1.79](https://github.com/spaced-out/ui-design-system/compare/v0.1.78...v0.1.79) (2024-02-16)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* ⨉ 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))
|
|
18
|
+
|
|
5
19
|
### [0.1.78](https://github.com/spaced-out/ui-design-system/compare/v0.1.77...v0.1.78) (2024-01-23)
|
|
6
20
|
|
|
7
21
|
|
|
@@ -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
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
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
|
);
|