@shoplflow/base 0.4.0 → 0.5.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/dist/animation/fadeInOut.d.ts +17 -0
- package/dist/components/BackDrop/BackDrop.d.ts +3 -0
- package/dist/components/BackDrop/BackDrop.types.d.ts +5 -0
- package/dist/components/BackDrop/index.d.ts +2 -0
- package/dist/components/Modal/Modal.styled.d.ts +28 -0
- package/dist/components/Modal/Modal.types.d.ts +55 -0
- package/dist/components/Modal/ModalBody.d.ts +3 -0
- package/dist/components/Modal/ModalContainer.d.ts +3 -0
- package/dist/components/Modal/ModalFooter.d.ts +3 -0
- package/dist/components/Modal/ModalHeader.d.ts +3 -0
- package/dist/components/Modal/index.d.ts +7 -0
- package/dist/components/Stack/Stack.d.ts +12 -0
- package/dist/components/Stack/Stack.styled.d.ts +6 -0
- package/dist/components/Stack/Stack.types.d.ts +52 -0
- package/dist/components/Stack/index.d.ts +4 -0
- package/dist/components/Text/Text.d.ts +4 -0
- package/dist/components/Text/Text.styled.d.ts +6 -0
- package/dist/components/Text/Text.types.d.ts +23 -0
- package/dist/components/Text/index.d.ts +2 -0
- package/dist/components/index.d.ts +4 -0
- package/dist/{index.css → global.css} +3 -2
- package/dist/hooks/index.d.ts +6 -0
- package/dist/hooks/useDomain.d.ts +6 -0
- package/dist/hooks/useHandleModal.d.ts +5 -0
- package/dist/hooks/useModalStore.d.ts +15 -0
- package/dist/hooks/useModalValue.d.ts +3 -0
- package/dist/hooks/useOutsideClick.d.ts +14 -0
- package/dist/hooks/useResizeObserver.d.ts +9 -0
- package/dist/index.cjs +110 -6877
- package/dist/index.d.ts +5 -212
- package/dist/index.mjs +112 -0
- package/dist/providers/ShoplflowProvider.d.ts +8 -0
- package/dist/providers/index.d.ts +3 -0
- package/dist/styles/index.d.ts +9 -0
- package/dist/styles/tokens.d.ts +99 -0
- package/dist/types/Domain.d.ts +1 -0
- package/dist/utils/noop.d.ts +1 -0
- package/dist/utils/type/$values.d.ts +1 -0
- package/dist/utils/type/ComponentProps.d.ts +91 -0
- package/package.json +52 -37
- package/dist/emotion.d.cjs +0 -5
- package/dist/emotion.d.cjs.map +0 -1
- package/dist/emotion.d.d.cts +0 -5
- package/dist/emotion.d.d.ts +0 -5
- package/dist/emotion.d.js +0 -3
- package/dist/emotion.d.js.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.css.map +0 -1
- package/dist/index.d.cts +0 -212
- package/dist/index.js +0 -6851
- package/dist/index.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shoplflow/base",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
|
-
"module": "dist/index.
|
|
6
|
+
"module": "dist/index.mjs",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
10
|
"types": "./dist/index.d.ts",
|
|
11
|
-
"import": "./dist/index.
|
|
11
|
+
"import": "./dist/index.mjs",
|
|
12
12
|
"require": "./dist/index.cjs"
|
|
13
13
|
},
|
|
14
|
-
"./styles": "./dist/
|
|
14
|
+
"./styles": "./dist/global.css",
|
|
15
15
|
"./package.json": "./package.json"
|
|
16
16
|
},
|
|
17
17
|
"main": "dist/index.cjs",
|
|
@@ -29,48 +29,63 @@
|
|
|
29
29
|
"react-dom": "*"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"
|
|
33
|
-
"@babel/
|
|
34
|
-
"@babel/preset-
|
|
35
|
-
"@
|
|
36
|
-
"@
|
|
37
|
-
"@storybook/addon-
|
|
38
|
-
"@storybook/addon-
|
|
39
|
-
"@storybook/addon-
|
|
40
|
-
"@storybook/addon-
|
|
41
|
-
"@storybook/addon-
|
|
42
|
-
"@storybook/addon-
|
|
43
|
-
"@storybook/addon-
|
|
44
|
-
"@storybook/addon-
|
|
45
|
-
"@storybook/addon-
|
|
46
|
-
"@storybook/addon-
|
|
47
|
-
"@storybook/addon-
|
|
48
|
-
"@storybook/
|
|
49
|
-
"@storybook/
|
|
50
|
-
"@storybook/
|
|
51
|
-
"@storybook/
|
|
32
|
+
"@babel/core": "^7.22.19",
|
|
33
|
+
"@babel/preset-env": "^7.22.15",
|
|
34
|
+
"@babel/preset-typescript": "^7.22.15",
|
|
35
|
+
"@emotion/react": "^11.11.1",
|
|
36
|
+
"@emotion/styled": "^11.11.0",
|
|
37
|
+
"@storybook/addon-actions": "^7.4.1",
|
|
38
|
+
"@storybook/addon-backgrounds": "^7.4.1",
|
|
39
|
+
"@storybook/addon-controls": "^7.4.1",
|
|
40
|
+
"@storybook/addon-docs": "^7.4.1",
|
|
41
|
+
"@storybook/addon-essentials": "^7.4.1",
|
|
42
|
+
"@storybook/addon-interactions": "^7.4.1",
|
|
43
|
+
"@storybook/addon-links": "^7.4.1",
|
|
44
|
+
"@storybook/addon-mdx-gfm": "^7.4.1",
|
|
45
|
+
"@storybook/addon-measure": "^7.4.1",
|
|
46
|
+
"@storybook/addon-onboarding": "^1.0.8",
|
|
47
|
+
"@storybook/addon-outline": "^7.4.1",
|
|
48
|
+
"@storybook/addon-toolbars": "^7.4.1",
|
|
49
|
+
"@storybook/addon-viewport": "^7.4.1",
|
|
50
|
+
"@storybook/addons": "^7.4.1",
|
|
51
|
+
"@storybook/blocks": "^7.4.1",
|
|
52
|
+
"@storybook/react": "^7.4.1",
|
|
53
|
+
"@storybook/react-vite": "^7.4.1",
|
|
52
54
|
"@storybook/testing-library": "^0.2.0",
|
|
53
|
-
"@storybook/theming": "^7.
|
|
54
|
-
"@emotion/react": "^11",
|
|
55
|
-
"@emotion/styled": "^11",
|
|
55
|
+
"@storybook/theming": "^7.4.1",
|
|
56
56
|
"@types/node": "20.4.9",
|
|
57
|
-
"@types/react": "^18.
|
|
58
|
-
"@types/react-dom": "^18.
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
57
|
+
"@types/react": "^18.2.21",
|
|
58
|
+
"@types/react-dom": "^18.2.7",
|
|
59
|
+
"esbuild": "0.18.17",
|
|
60
|
+
"esbuild-plugin-babel": "^0.2.3",
|
|
61
|
+
"esbuild-plugin-d.ts": "^1.1.0",
|
|
62
|
+
"eslint": "^8.49.0",
|
|
63
|
+
"eslint-plugin-storybook": "^0.6.13",
|
|
64
|
+
"react": "^18.2.0",
|
|
65
|
+
"react-dom": "^18.2.0",
|
|
66
|
+
"storybook": "^7.4.1",
|
|
63
67
|
"ts-node": "^10.9.1",
|
|
64
|
-
"
|
|
65
|
-
|
|
68
|
+
"typescript": "^4.6.3"
|
|
69
|
+
},
|
|
70
|
+
"eslintConfig": {
|
|
71
|
+
"extends": [
|
|
72
|
+
"plugin:storybook/recommended"
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
"dependencies": {
|
|
76
|
+
"framer-motion": "^9.1.7",
|
|
77
|
+
"react-custom-scrollbars-2": "^4.5.0",
|
|
78
|
+
"zustand": "^4.4.1"
|
|
66
79
|
},
|
|
67
80
|
"scripts": {
|
|
68
81
|
"build:tokens": "node scripts/generate-tokens.cjs",
|
|
69
82
|
"type-check": "tsc --noEmit || true",
|
|
70
|
-
"build:package": "
|
|
83
|
+
"build:package": "node build.js",
|
|
71
84
|
"build:storybook": "storybook build",
|
|
72
85
|
"build": "pnpm run build:package && pnpm run build:storybook",
|
|
73
86
|
"dev:stories": "storybook dev -p 6007",
|
|
74
|
-
"dev": "
|
|
87
|
+
"dev": "node build.js --watch",
|
|
88
|
+
"storybook": "storybook dev -p 6007",
|
|
89
|
+
"build-storybook": "storybook build"
|
|
75
90
|
}
|
|
76
91
|
}
|
package/dist/emotion.d.cjs
DELETED
package/dist/emotion.d.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/emotion.d.ts"],"sourcesContent":["import '@emotion/react';\nimport type React from 'react';\ndeclare module '*.svg' {\n export const ReactComponent: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;\n}\n"],"mappings":";;;AAAA,mBAAO;","names":[]}
|
package/dist/emotion.d.d.cts
DELETED
package/dist/emotion.d.d.ts
DELETED
package/dist/emotion.d.js
DELETED
package/dist/emotion.d.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/emotion.d.ts"],"sourcesContent":["import '@emotion/react';\nimport type React from 'react';\ndeclare module '*.svg' {\n export const ReactComponent: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;\n}\n"],"mappings":";AAAA,OAAO;","names":[]}
|