@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.
Files changed (51) hide show
  1. package/dist/animation/fadeInOut.d.ts +17 -0
  2. package/dist/components/BackDrop/BackDrop.d.ts +3 -0
  3. package/dist/components/BackDrop/BackDrop.types.d.ts +5 -0
  4. package/dist/components/BackDrop/index.d.ts +2 -0
  5. package/dist/components/Modal/Modal.styled.d.ts +28 -0
  6. package/dist/components/Modal/Modal.types.d.ts +55 -0
  7. package/dist/components/Modal/ModalBody.d.ts +3 -0
  8. package/dist/components/Modal/ModalContainer.d.ts +3 -0
  9. package/dist/components/Modal/ModalFooter.d.ts +3 -0
  10. package/dist/components/Modal/ModalHeader.d.ts +3 -0
  11. package/dist/components/Modal/index.d.ts +7 -0
  12. package/dist/components/Stack/Stack.d.ts +12 -0
  13. package/dist/components/Stack/Stack.styled.d.ts +6 -0
  14. package/dist/components/Stack/Stack.types.d.ts +52 -0
  15. package/dist/components/Stack/index.d.ts +4 -0
  16. package/dist/components/Text/Text.d.ts +4 -0
  17. package/dist/components/Text/Text.styled.d.ts +6 -0
  18. package/dist/components/Text/Text.types.d.ts +23 -0
  19. package/dist/components/Text/index.d.ts +2 -0
  20. package/dist/components/index.d.ts +4 -0
  21. package/dist/{index.css → global.css} +3 -2
  22. package/dist/hooks/index.d.ts +6 -0
  23. package/dist/hooks/useDomain.d.ts +6 -0
  24. package/dist/hooks/useHandleModal.d.ts +5 -0
  25. package/dist/hooks/useModalStore.d.ts +15 -0
  26. package/dist/hooks/useModalValue.d.ts +3 -0
  27. package/dist/hooks/useOutsideClick.d.ts +14 -0
  28. package/dist/hooks/useResizeObserver.d.ts +9 -0
  29. package/dist/index.cjs +110 -6877
  30. package/dist/index.d.ts +5 -212
  31. package/dist/index.mjs +112 -0
  32. package/dist/providers/ShoplflowProvider.d.ts +8 -0
  33. package/dist/providers/index.d.ts +3 -0
  34. package/dist/styles/index.d.ts +9 -0
  35. package/dist/styles/tokens.d.ts +99 -0
  36. package/dist/types/Domain.d.ts +1 -0
  37. package/dist/utils/noop.d.ts +1 -0
  38. package/dist/utils/type/$values.d.ts +1 -0
  39. package/dist/utils/type/ComponentProps.d.ts +91 -0
  40. package/package.json +52 -37
  41. package/dist/emotion.d.cjs +0 -5
  42. package/dist/emotion.d.cjs.map +0 -1
  43. package/dist/emotion.d.d.cts +0 -5
  44. package/dist/emotion.d.d.ts +0 -5
  45. package/dist/emotion.d.js +0 -3
  46. package/dist/emotion.d.js.map +0 -1
  47. package/dist/index.cjs.map +0 -1
  48. package/dist/index.css.map +0 -1
  49. package/dist/index.d.cts +0 -212
  50. package/dist/index.js +0 -6851
  51. 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.4.0",
3
+ "version": "0.5.0",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
- "module": "dist/index.js",
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.js",
11
+ "import": "./dist/index.mjs",
12
12
  "require": "./dist/index.cjs"
13
13
  },
14
- "./styles": "./dist/index.css",
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
- "storybook": "^7.3.1",
33
- "@babel/core": "^7.22.5",
34
- "@babel/preset-env": "^7.22.5",
35
- "@babel/preset-typescript": "^7.22.5",
36
- "@storybook/addon-actions": "^7.3.2",
37
- "@storybook/addon-backgrounds": "^7.3.2",
38
- "@storybook/addon-controls": "^7.3.2",
39
- "@storybook/addon-docs": "^7.3.1",
40
- "@storybook/addon-essentials": "^7.3.1",
41
- "@storybook/addon-interactions": "^7.3.1",
42
- "@storybook/addon-links": "^7.3.1",
43
- "@storybook/addon-mdx-gfm": "^7.3.1",
44
- "@storybook/addon-measure": "^7.3.2",
45
- "@storybook/addon-outline": "^7.3.2",
46
- "@storybook/addon-toolbars": "^7.3.2",
47
- "@storybook/addon-viewport": "^7.3.2",
48
- "@storybook/addons": "^7.3.1",
49
- "@storybook/blocks": "^7.3.1",
50
- "@storybook/react": "^7.3.1",
51
- "@storybook/react-vite": "^7.3.1",
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.3.1",
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.0.0",
58
- "@types/react-dom": "^18.0.0",
59
- "eslint": "^8.44.0",
60
- "framer-motion": "^9.0.2",
61
- "react": "^18.0.0",
62
- "react-dom": "^18.0.0",
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
- "tsup": "7.2.0",
65
- "typescript": "^4.9.2"
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": "tsup",
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": "tsup --watch"
87
+ "dev": "node build.js --watch",
88
+ "storybook": "storybook dev -p 6007",
89
+ "build-storybook": "storybook build"
75
90
  }
76
91
  }
@@ -1,5 +0,0 @@
1
- "use strict";
2
-
3
- // src/emotion.d.ts
4
- var import_react = require("@emotion/react");
5
- //# sourceMappingURL=emotion.d.cjs.map
@@ -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":[]}
@@ -1,5 +0,0 @@
1
- import React__default from 'react';
2
-
3
- declare module '*.svg' {
4
- export const ReactComponent: React__default.FunctionComponent<React__default.SVGProps<SVGSVGElement>>;
5
- }
@@ -1,5 +0,0 @@
1
- import React__default from 'react';
2
-
3
- declare module '*.svg' {
4
- export const ReactComponent: React__default.FunctionComponent<React__default.SVGProps<SVGSVGElement>>;
5
- }
package/dist/emotion.d.js DELETED
@@ -1,3 +0,0 @@
1
- // src/emotion.d.ts
2
- import "@emotion/react";
3
- //# sourceMappingURL=emotion.d.js.map
@@ -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":[]}