@servicetitan/confirm 22.4.5 → 23.0.0
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/CHANGELOG.md +28 -0
- package/package.json +4 -4
- package/src/confirm.stories.tsx +34 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,31 @@
|
|
|
1
|
+
# v23.0.0 (Fri Sep 09 2022)
|
|
2
|
+
|
|
3
|
+
#### 💥 Breaking Change
|
|
4
|
+
|
|
5
|
+
- DS-1141: Updating dependencies for design-system, tokens, formstate, etc [#150](https://github.com/servicetitan/anvil-uikit-contrib/pull/150) ([@rgdelato](https://github.com/rgdelato))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Ryan De La Torre ([@rgdelato](https://github.com/rgdelato))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# v22.5.0 (Wed Aug 31 2022)
|
|
14
|
+
|
|
15
|
+
:tada: This release contains work from a new contributor! :tada:
|
|
16
|
+
|
|
17
|
+
Thank you, ilya Andreyev ([@ilyaandreyev](https://github.com/ilyaandreyev)), for all your work!
|
|
18
|
+
|
|
19
|
+
#### 🏠 Internal
|
|
20
|
+
|
|
21
|
+
- FAR-981: Moving examples to contrib storybook [#133](https://github.com/servicetitan/anvil-uikit-contrib/pull/133) ([@rgdelato](https://github.com/rgdelato))
|
|
22
|
+
|
|
23
|
+
#### Authors: 1
|
|
24
|
+
|
|
25
|
+
- Ryan De La Torre ([@rgdelato](https://github.com/rgdelato))
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
1
29
|
# v22.0.1 (Tue Jun 21 2022)
|
|
2
30
|
|
|
3
31
|
#### 🐛 Bug Fix
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@servicetitan/confirm",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "23.0.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"homepage": "https://docs.st.dev/docs/frontend/confirm",
|
|
6
6
|
"repository": {
|
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
"src"
|
|
17
17
|
],
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@servicetitan/design-system": "
|
|
19
|
+
"@servicetitan/design-system": ">=12.4.1",
|
|
20
20
|
"@types/react": "~17.0.38",
|
|
21
21
|
"react": "~17.0.2"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@servicetitan/design-system": "
|
|
24
|
+
"@servicetitan/design-system": ">=12.4.1",
|
|
25
25
|
"react": "~17.0.2"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"cli": {
|
|
34
34
|
"webpack": false
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "c29a739a4437e2bb2a91805e01d34858fe0c7425"
|
|
37
37
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Fragment, FC } from 'react';
|
|
2
|
+
import { Text } from '@servicetitan/design-system';
|
|
3
|
+
|
|
4
|
+
import {
|
|
5
|
+
BasicExample,
|
|
6
|
+
HookExample,
|
|
7
|
+
ConfigurableExample,
|
|
8
|
+
ToggleableExample,
|
|
9
|
+
YesNoExample,
|
|
10
|
+
CustomExample,
|
|
11
|
+
} from '../dist/demo';
|
|
12
|
+
|
|
13
|
+
export default {
|
|
14
|
+
title: 'Confirm/Demos',
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export const Basic = wrap('Default confirmation', BasicExample);
|
|
18
|
+
export const Hook = wrap('Hook usage', HookExample);
|
|
19
|
+
export const Configurable = wrap('Configurable default dialog', ConfigurableExample);
|
|
20
|
+
export const Toggleable = wrap('Toggleable confirmation', ToggleableExample);
|
|
21
|
+
export const YesNo = wrap('(Yes / No / Cancel) confrimation', YesNoExample);
|
|
22
|
+
export const Custom = wrap('Custom confirmation component', CustomExample);
|
|
23
|
+
|
|
24
|
+
function wrap(name: string, Component: FC) {
|
|
25
|
+
return () => (
|
|
26
|
+
<Fragment>
|
|
27
|
+
<Text size={4} className="m-b-half">
|
|
28
|
+
{name}
|
|
29
|
+
</Text>
|
|
30
|
+
|
|
31
|
+
<Component />
|
|
32
|
+
</Fragment>
|
|
33
|
+
);
|
|
34
|
+
}
|