@spaced-out/ui-design-system 0.1.35 → 0.1.37-beta.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.
|
@@ -88,8 +88,8 @@ jobs:
|
|
|
88
88
|
env:
|
|
89
89
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
90
90
|
|
|
91
|
-
# Publish version to
|
|
92
|
-
- name: Publish
|
|
91
|
+
# Publish version to NPM repository
|
|
92
|
+
- name: Publish to NPM
|
|
93
93
|
run: yarn publish --verbose --access public --tag ${{ env.RELEASE_TAG }}
|
|
94
94
|
env:
|
|
95
95
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,27 @@
|
|
|
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.37-beta.1](https://github.com/spaced-out/ui-design-system/compare/v0.1.37-beta.0...v0.1.37-beta.1) (2023-07-05)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* release automation ([c72df3a](https://github.com/spaced-out/ui-design-system/commit/c72df3a36cbe53c6917af3962674125e4ac535fd))
|
|
11
|
+
|
|
12
|
+
### [0.1.37-beta.0](https://github.com/spaced-out/ui-design-system/compare/v0.1.36...v0.1.37-beta.0) (2023-07-05)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* added release creation automation ([f267d47](https://github.com/spaced-out/ui-design-system/commit/f267d47ca65291439f7714807ec81e0c9cd4706c))
|
|
18
|
+
|
|
19
|
+
### [0.1.36](https://github.com/spaced-out/ui-design-system/compare/v0.1.35...v0.1.36) (2023-07-03)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Bug Fixes
|
|
23
|
+
|
|
24
|
+
* modal sizing defaults reset ([08eaf2a](https://github.com/spaced-out/ui-design-system/commit/08eaf2a22a1d53967ba50a8b8c504fa5087551b9))
|
|
25
|
+
|
|
5
26
|
### [0.1.35](https://github.com/spaced-out/ui-design-system/compare/v0.1.34...v0.1.35) (2023-07-03)
|
|
6
27
|
|
|
7
28
|
|
|
@@ -121,7 +121,8 @@ const Modal = _ref4 => {
|
|
|
121
121
|
tapOutsideToClose = true,
|
|
122
122
|
initialFocus = -1,
|
|
123
123
|
customAnimation,
|
|
124
|
-
|
|
124
|
+
// Size is not set to default for backward compatibility. Don't change if you don't know this.
|
|
125
|
+
size
|
|
125
126
|
} = _ref4;
|
|
126
127
|
const {
|
|
127
128
|
refs,
|
|
@@ -214,7 +215,11 @@ const Modal = _ref4 => {
|
|
|
214
215
|
}, classNames?.backdrop),
|
|
215
216
|
onClick: onBackdropClick
|
|
216
217
|
}), isMounted && /*#__PURE__*/React.createElement("div", {
|
|
217
|
-
className: (0, _classify.default)(_ModalModule.default.modal,
|
|
218
|
+
className: (0, _classify.default)(_ModalModule.default.modal, {
|
|
219
|
+
[_ModalModule.default.small]: size === 'small',
|
|
220
|
+
[_ModalModule.default.medium]: size === 'medium',
|
|
221
|
+
[_ModalModule.default.large]: size === 'large'
|
|
222
|
+
}, classNames?.content),
|
|
218
223
|
role: "dialog",
|
|
219
224
|
style: {
|
|
220
225
|
// Transition styles
|
|
@@ -194,7 +194,8 @@ export const Modal = ({
|
|
|
194
194
|
tapOutsideToClose = true,
|
|
195
195
|
initialFocus = -1,
|
|
196
196
|
customAnimation,
|
|
197
|
-
|
|
197
|
+
// Size is not set to default for backward compatibility. Don't change if you don't know this.
|
|
198
|
+
size,
|
|
198
199
|
}: BaseModalProps): React.Node => {
|
|
199
200
|
const {refs, context} = useFloating({open: isOpen});
|
|
200
201
|
const {isMounted, styles} = useTransitionStyles(
|
|
@@ -307,7 +308,15 @@ export const Modal = ({
|
|
|
307
308
|
/>
|
|
308
309
|
{isMounted && (
|
|
309
310
|
<div
|
|
310
|
-
className={classify(
|
|
311
|
+
className={classify(
|
|
312
|
+
css.modal,
|
|
313
|
+
{
|
|
314
|
+
[css.small]: size === 'small',
|
|
315
|
+
[css.medium]: size === 'medium',
|
|
316
|
+
[css.large]: size === 'large',
|
|
317
|
+
},
|
|
318
|
+
classNames?.content,
|
|
319
|
+
)}
|
|
311
320
|
role="dialog"
|
|
312
321
|
style={{
|
|
313
322
|
// Transition styles
|