@vygruppen/spor-react 0.0.2 → 0.1.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.
@@ -1,6 +1,6 @@
1
- @vygruppen/spor-react:build: cache hit, replaying output 74906cfe0f36c6f4
1
+ @vygruppen/spor-react:build: cache hit, replaying output 2900b11230676f8b
2
2
  @vygruppen/spor-react:build:
3
- @vygruppen/spor-react:build: > @vygruppen/spor-react@0.0.2 build
3
+ @vygruppen/spor-react:build: > @vygruppen/spor-react@0.1.0 build
4
4
  @vygruppen/spor-react:build: > tsup src/index.tsx --dts
5
5
  @vygruppen/spor-react:build:
6
6
  @vygruppen/spor-react:build: CLI Building entry: src/index.tsx
@@ -8,8 +8,8 @@
8
8
  @vygruppen/spor-react:build: CLI tsup v5.11.11
9
9
  @vygruppen/spor-react:build: CLI Target: node12
10
10
  @vygruppen/spor-react:build: CJS Build start
11
- @vygruppen/spor-react:build: CJS ⚡️ Build success in 41ms
11
+ @vygruppen/spor-react:build: CJS ⚡️ Build success in 31ms
12
12
  @vygruppen/spor-react:build: CJS dist/index.js 4.01 KB
13
13
  @vygruppen/spor-react:build: DTS Build start
14
- @vygruppen/spor-react:build: DTS ⚡️ Build success in 3592ms
15
- @vygruppen/spor-react:build: DTS dist/index.d.ts 1.90 KB
14
+ @vygruppen/spor-react:build: DTS ⚡️ Build success in 3076ms
15
+ @vygruppen/spor-react:build: DTS dist/index.d.ts 1.92 KB
package/CHANGELOG.md CHANGED
@@ -1,6 +1,27 @@
1
1
  # @vygruppen/spor-react
2
2
 
3
+ ## 0.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - a8d2de3: Add peer dependencies to `@vygruppen/spor-react`
8
+
9
+ In order to optimize for flexibility, the `spor-react` package loses a few direct dependencies, and adds them as peer dependencies.
10
+
11
+ This is a **breaking change**. To upgrade, please run:
12
+
13
+ ```bash
14
+ $ npm install @chakra-ui/react @emotion/styled @emotion/react framer-motion
15
+ ```
16
+
17
+ or:
18
+
19
+ ```bash
20
+ $ yarn add @chakra-ui/react @emotion/styled @emotion/react framer-motion
21
+ ```
22
+
3
23
  ## 0.0.2
24
+
4
25
  ### Patch Changes
5
26
 
6
27
  - 8e5444a: Fix a bug where the published packages specified the source files, instead of the built dist files
package/README.md CHANGED
@@ -5,9 +5,23 @@ This package includes everything you need to build your React component library.
5
5
  ## Installation
6
6
 
7
7
  ```bash
8
- $ npm install @vygruppen/spor-react
8
+ $ npm install @vygruppen/spor-react @chakra-ui/react @emotion/styled @emotion/react framer-motion
9
9
  ```
10
10
 
11
+ or
12
+
13
+ ```bash
14
+ $ yarn add @vygruppen/spor-react @chakra-ui/react @emotion/styled @emotion/react framer-motion
15
+ ```
16
+
17
+ <details>
18
+ <summary>That's a lot of dependencies! Why?</summary>
19
+ The reason there's a lot of dependencies, is that you'll most likely use both Chakra UI and framer-motion to implement your application, and you shouldn't be required to install these dependencies twice.
20
+
21
+ You'll also be able to update them independently of this library, in case there's a new feature or non-breaking feature out there that you need.
22
+
23
+ </details>
24
+
11
25
  ## Usage
12
26
 
13
27
  Import the components and functions you need as named imports:
package/dist/index.d.ts CHANGED
@@ -22,7 +22,7 @@ declare type SporProviderProps = ChakraProviderProps & {
22
22
  * You do, however, need to specify the current language of your application. This is specified to provide any built-in microcopy and labels for any Spor components.
23
23
  *
24
24
  * ```tsx
25
- * * import { SporProvider, Language } from "@spor-react";
25
+ * * import { SporProvider, Language } from "@vygruppen/spor-react";
26
26
  * const root = React.createRoot(document.getElementById("root"))
27
27
  * root.render(
28
28
  * <SporProvider language={Language.NorwegianBokmal}>
@@ -34,7 +34,7 @@ declare type SporProviderProps = ChakraProviderProps & {
34
34
  * You can pass specific overrides to the theme if you need to. Adding application specific design tokens, for example could be a useful thing to do.
35
35
  *
36
36
  * ```tsx
37
- * import { extendTheme, SporProvider } from "@spor-react";
37
+ * import { extendTheme, SporProvider } from "@vygruppen/spor-react";
38
38
  * const theme = extendTheme({
39
39
  * colors: { myApp: { primary: "tomato" } }
40
40
  * });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vygruppen/spor-react",
3
- "version": "0.0.2",
3
+ "version": "0.1.0",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "license": "MIT",
@@ -9,23 +9,27 @@
9
9
  "dev": "tsup src/index.tsx --watch"
10
10
  },
11
11
  "dependencies": {
12
- "@chakra-ui/react": "^1.7.3",
13
- "@emotion/react": "^11.7.1",
14
- "@emotion/styled": "^11.6.0",
15
12
  "@leile/lobo-t": "^1.0.5",
16
13
  "@vygruppen/spor-button-react": "*",
17
14
  "@vygruppen/spor-input-react": "*",
18
15
  "@vygruppen/spor-logo-react": "*",
19
16
  "@vygruppen/spor-theme-react": "*",
20
- "@vygruppen/spor-i18n-react": "*",
21
- "framer-motion": "^4.1.17"
17
+ "@vygruppen/spor-i18n-react": "*"
22
18
  },
23
19
  "devDependencies": {
20
+ "@chakra-ui/react": "^1.7.3",
21
+ "@emotion/react": "^11.7.1",
22
+ "@emotion/styled": "^11.6.0",
23
+ "framer-motion": "^5.0.0",
24
24
  "react": "^17.0.2",
25
25
  "react-dom": "^17.0.2",
26
26
  "tsup": "^5.11.11"
27
27
  },
28
28
  "peerDependencies": {
29
+ "@chakra-ui/react": "^1.7.3",
30
+ "@emotion/react": "^11.7.1",
31
+ "@emotion/styled": "^11.6.0",
32
+ "framer-motion": "^4.1.0 || ^5.0.0",
29
33
  "react": ">= 17.0.0",
30
34
  "react-dom": ">= 17.0.0"
31
35
  }
@@ -23,7 +23,7 @@ type SporProviderProps = ChakraProviderProps & {
23
23
  * You do, however, need to specify the current language of your application. This is specified to provide any built-in microcopy and labels for any Spor components.
24
24
  *
25
25
  * ```tsx
26
- * * import { SporProvider, Language } from "@spor-react";
26
+ * * import { SporProvider, Language } from "@vygruppen/spor-react";
27
27
  * const root = React.createRoot(document.getElementById("root"))
28
28
  * root.render(
29
29
  * <SporProvider language={Language.NorwegianBokmal}>
@@ -35,7 +35,7 @@ type SporProviderProps = ChakraProviderProps & {
35
35
  * You can pass specific overrides to the theme if you need to. Adding application specific design tokens, for example could be a useful thing to do.
36
36
  *
37
37
  * ```tsx
38
- * import { extendTheme, SporProvider } from "@spor-react";
38
+ * import { extendTheme, SporProvider } from "@vygruppen/spor-react";
39
39
  * const theme = extendTheme({
40
40
  * colors: { myApp: { primary: "tomato" } }
41
41
  * });