@vygruppen/spor-react 1.0.0 → 1.2.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,18 +1,17 @@
1
- @vygruppen/spor-react:build: cache hit, replaying output 9208082950a4ebfe
2
- @vygruppen/spor-react:build:
3
- @vygruppen/spor-react:build: > @vygruppen/spor-react@1.0.0 build
4
- @vygruppen/spor-react:build: > tsup src/* --dts --treeshake --format esm,cjs
5
- @vygruppen/spor-react:build:
6
- @vygruppen/spor-react:build: CLI Building entry: src/index.tsx
7
- @vygruppen/spor-react:build: CLI Using tsconfig: tsconfig.json
8
- @vygruppen/spor-react:build: CLI tsup v6.2.3
9
- @vygruppen/spor-react:build: CLI Target: node14
10
- @vygruppen/spor-react:build: ESM Build start
11
- @vygruppen/spor-react:build: CJS Build start
12
- @vygruppen/spor-react:build: ESM dist/index.mjs 1.04 KB
13
- @vygruppen/spor-react:build: ESM ⚡️ Build success in 92ms
14
- @vygruppen/spor-react:build: CJS dist/index.js 6.43 KB
15
- @vygruppen/spor-react:build: CJS ⚡️ Build success in 76ms
16
- @vygruppen/spor-react:build: DTS Build start
17
- @vygruppen/spor-react:build: DTS ⚡️ Build success in 3744ms
18
- @vygruppen/spor-react:build: DTS dist/index.d.ts 1.04 KB
1
+
2
+ > @vygruppen/spor-react@1.2.0 build
3
+ > tsup src/* --dts --treeshake --format esm,cjs
4
+
5
+ CLI Building entry: src/index.tsx
6
+ CLI Using tsconfig: tsconfig.json
7
+ CLI tsup v6.2.3
8
+ CLI Target: node14
9
+ ESM Build start
10
+ CJS Build start
11
+ ESM dist/index.mjs 1.18 KB
12
+ ESM ⚡️ Build success in 122ms
13
+ CJS dist/index.js 7.29 KB
14
+ CJS ⚡️ Build success in 103ms
15
+ DTS Build start
16
+ DTS ⚡️ Build success in 5254ms
17
+ DTS dist/index.d.ts 1.18 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,34 @@
1
1
  # @vygruppen/spor-react
2
2
 
3
+ ## 1.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 1b0d28d6: Add new alert component
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [9a26a7c5]
12
+ - Updated dependencies [1b0d28d6]
13
+ - @vygruppen/spor-icon-react@1.2.0
14
+ - @vygruppen/spor-alert-react@0.1.0
15
+ - @vygruppen/spor-theme-react@1.0.8
16
+
17
+ ## 1.1.0
18
+
19
+ ### Minor Changes
20
+
21
+ - 43acbc1d: Add new package media-controller-react
22
+
23
+ ### Patch Changes
24
+
25
+ - 6fd2530c: Add new package spor-util-react
26
+ - Updated dependencies [43acbc1d]
27
+ - Updated dependencies [6fd2530c]
28
+ - @vygruppen/spor-media-controller-react@0.1.0
29
+ - @vygruppen/spor-theme-react@1.0.3
30
+ - @vygruppen/spor-util-react@0.1.0
31
+
3
32
  ## 1.0.0
4
33
 
5
34
  ### Major Changes
package/README.md CHANGED
@@ -5,23 +5,10 @@ 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 @chakra-ui/react @emotion/styled @emotion/react framer-motion
8
+ $ npm install @vygruppen/spor-react
9
+ $ yarn add @vygruppen/spor-react
9
10
  ```
10
11
 
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
-
25
12
  ## Usage
26
13
 
27
14
  Import the components and functions you need as named imports:
@@ -30,40 +17,8 @@ Import the components and functions you need as named imports:
30
17
  import { Button, Input } from "@vygruppen/spor-react";
31
18
  ```
32
19
 
33
- Each component and function comes with extensive documentation that shows up once you use it. Just hover over the component to make it show up in your IDE. There will also be interactive documentation available online sometime in The Future (tm).
34
-
35
- This package comes with one component of its own though - the `SporProvider`:
36
-
37
- ```tsx
38
- import { SporProvider } from "@vygruppen/spor-react";
39
- ```
40
-
41
- The `SporProvider` provides the rest of the Spor components with a theme and a language preference.
42
-
43
- Wrap your entire app with this component. It's important to place it before you render any UI, like where you mount your React app (`src/index.tsx` in Create React App based apps, and `pages/_app.tsx` in Next.js based apps).
44
-
45
- You have to specify the current language (and save/retrieve it somehow). Here's a basic example:
46
-
47
- ```tsx
48
- import { SporProvider, Language } from "@vygruppen/spor-react";
49
-
50
- const Root = () => {
51
- return (
52
- <SporProvider language={Language.NorwegianBokmal}>
53
- <App />
54
- </SporProvider>
55
- );
56
- };
57
- ```
58
-
59
- For more details about internationalization, please refer to the `spor-i18n-react` docs.
60
-
61
- You can also override the theme. Please refer to the `spor-theme-react` docs.
20
+ Each component and function comes with extensive documentation that shows up once you use it. Just hover over the component to make it show up in your IDE. Documentation is also available on [the documentation website](https://spor.cloud.vy.no).
62
21
 
63
22
  ## Development
64
23
 
65
24
  Please refer to the root readme for development notes.
66
-
67
- ```
68
-
69
- ```
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export { extendTheme } from '@chakra-ui/react';
2
2
  export * from '@vygruppen/spor-accordion-react';
3
+ export * from '@vygruppen/spor-alert-react';
3
4
  export * from '@vygruppen/spor-button-react';
4
5
  export * from '@vygruppen/spor-card-react';
5
6
  export * from '@vygruppen/spor-datepicker-react';
@@ -13,6 +14,7 @@ export * from '@vygruppen/spor-linjetag-react';
13
14
  export * from '@vygruppen/spor-link-react';
14
15
  export * from '@vygruppen/spor-loader-react';
15
16
  export * from '@vygruppen/spor-logo-react';
17
+ export * from '@vygruppen/spor-media-controller-react';
16
18
  export * from '@vygruppen/spor-modal-react';
17
19
  export * from '@vygruppen/spor-popover-react';
18
20
  export * from '@vygruppen/spor-provider-react';
@@ -21,3 +23,4 @@ export * from '@vygruppen/spor-tab-react';
21
23
  export * from '@vygruppen/spor-table-react';
22
24
  export * from '@vygruppen/spor-theme-react';
23
25
  export * from '@vygruppen/spor-typography-react';
26
+ export * from '@vygruppen/spor-util-react';
package/dist/index.js CHANGED
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var react = require('@chakra-ui/react');
6
6
  var sporAccordionReact = require('@vygruppen/spor-accordion-react');
7
+ var sporAlertReact = require('@vygruppen/spor-alert-react');
7
8
  var sporButtonReact = require('@vygruppen/spor-button-react');
8
9
  var sporCardReact = require('@vygruppen/spor-card-react');
9
10
  var sporDatepickerReact = require('@vygruppen/spor-datepicker-react');
@@ -17,6 +18,7 @@ var sporLinjetagReact = require('@vygruppen/spor-linjetag-react');
17
18
  var sporLinkReact = require('@vygruppen/spor-link-react');
18
19
  var sporLoaderReact = require('@vygruppen/spor-loader-react');
19
20
  var sporLogoReact = require('@vygruppen/spor-logo-react');
21
+ var sporMediaControllerReact = require('@vygruppen/spor-media-controller-react');
20
22
  var sporModalReact = require('@vygruppen/spor-modal-react');
21
23
  var sporPopoverReact = require('@vygruppen/spor-popover-react');
22
24
  var sporProviderReact = require('@vygruppen/spor-provider-react');
@@ -25,6 +27,7 @@ var sporTabReact = require('@vygruppen/spor-tab-react');
25
27
  var sporTableReact = require('@vygruppen/spor-table-react');
26
28
  var sporThemeReact = require('@vygruppen/spor-theme-react');
27
29
  var sporTypographyReact = require('@vygruppen/spor-typography-react');
30
+ var sporUtilReact = require('@vygruppen/spor-util-react');
28
31
 
29
32
 
30
33
 
@@ -38,6 +41,12 @@ Object.keys(sporAccordionReact).forEach(function (k) {
38
41
  get: function () { return sporAccordionReact[k]; }
39
42
  });
40
43
  });
44
+ Object.keys(sporAlertReact).forEach(function (k) {
45
+ if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
46
+ enumerable: true,
47
+ get: function () { return sporAlertReact[k]; }
48
+ });
49
+ });
41
50
  Object.keys(sporButtonReact).forEach(function (k) {
42
51
  if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
43
52
  enumerable: true,
@@ -116,6 +125,12 @@ Object.keys(sporLogoReact).forEach(function (k) {
116
125
  get: function () { return sporLogoReact[k]; }
117
126
  });
118
127
  });
128
+ Object.keys(sporMediaControllerReact).forEach(function (k) {
129
+ if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
130
+ enumerable: true,
131
+ get: function () { return sporMediaControllerReact[k]; }
132
+ });
133
+ });
119
134
  Object.keys(sporModalReact).forEach(function (k) {
120
135
  if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
121
136
  enumerable: true,
@@ -164,3 +179,9 @@ Object.keys(sporTypographyReact).forEach(function (k) {
164
179
  get: function () { return sporTypographyReact[k]; }
165
180
  });
166
181
  });
182
+ Object.keys(sporUtilReact).forEach(function (k) {
183
+ if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
184
+ enumerable: true,
185
+ get: function () { return sporUtilReact[k]; }
186
+ });
187
+ });
package/dist/index.mjs CHANGED
@@ -1,5 +1,6 @@
1
1
  export { extendTheme } from '@chakra-ui/react';
2
2
  export * from '@vygruppen/spor-accordion-react';
3
+ export * from '@vygruppen/spor-alert-react';
3
4
  export * from '@vygruppen/spor-button-react';
4
5
  export * from '@vygruppen/spor-card-react';
5
6
  export * from '@vygruppen/spor-datepicker-react';
@@ -13,6 +14,7 @@ export * from '@vygruppen/spor-linjetag-react';
13
14
  export * from '@vygruppen/spor-link-react';
14
15
  export * from '@vygruppen/spor-loader-react';
15
16
  export * from '@vygruppen/spor-logo-react';
17
+ export * from '@vygruppen/spor-media-controller-react';
16
18
  export * from '@vygruppen/spor-modal-react';
17
19
  export * from '@vygruppen/spor-popover-react';
18
20
  export * from '@vygruppen/spor-provider-react';
@@ -21,3 +23,4 @@ export * from '@vygruppen/spor-tab-react';
21
23
  export * from '@vygruppen/spor-table-react';
22
24
  export * from '@vygruppen/spor-theme-react';
23
25
  export * from '@vygruppen/spor-typography-react';
26
+ export * from '@vygruppen/spor-util-react';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vygruppen/spor-react",
3
- "version": "1.0.0",
3
+ "version": "1.2.0",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -19,6 +19,7 @@
19
19
  "dependencies": {
20
20
  "@leile/lobo-t": "^1.0.5",
21
21
  "@vygruppen/spor-accordion-react": "*",
22
+ "@vygruppen/spor-alert-react": "*",
22
23
  "@vygruppen/spor-button-react": "*",
23
24
  "@vygruppen/spor-card-react": "*",
24
25
  "@vygruppen/spor-design-tokens": "*",
@@ -32,14 +33,16 @@
32
33
  "@vygruppen/spor-link-react": "*",
33
34
  "@vygruppen/spor-loader-react": "*",
34
35
  "@vygruppen/spor-logo-react": "*",
36
+ "@vygruppen/spor-media-controller-react": "*",
35
37
  "@vygruppen/spor-modal-react": "*",
38
+ "@vygruppen/spor-stepper-react": "*",
36
39
  "@vygruppen/spor-table-react": "*",
37
40
  "@vygruppen/spor-theme-react": "*",
38
41
  "@vygruppen/spor-popover-react": "*",
39
42
  "@vygruppen/spor-provider-react": "*",
40
43
  "@vygruppen/spor-tab-react": "*",
41
44
  "@vygruppen/spor-typography-react": "*",
42
- "@vygruppen/spor-stepper-react": "*",
45
+ "@vygruppen/spor-util-react": "*",
43
46
  "@chakra-ui/react": "^2.3.5",
44
47
  "@emotion/react": "^11.10.4",
45
48
  "@emotion/styled": "^11.10.4",
package/src/index.tsx CHANGED
@@ -1,5 +1,6 @@
1
1
  export { extendTheme } from "@chakra-ui/react";
2
2
  export * from "@vygruppen/spor-accordion-react";
3
+ export * from "@vygruppen/spor-alert-react";
3
4
  export * from "@vygruppen/spor-button-react";
4
5
  export * from "@vygruppen/spor-card-react";
5
6
  export * from "@vygruppen/spor-datepicker-react";
@@ -13,6 +14,7 @@ export * from "@vygruppen/spor-linjetag-react";
13
14
  export * from "@vygruppen/spor-link-react";
14
15
  export * from "@vygruppen/spor-loader-react";
15
16
  export * from "@vygruppen/spor-logo-react";
17
+ export * from "@vygruppen/spor-media-controller-react";
16
18
  export * from "@vygruppen/spor-modal-react";
17
19
  export * from "@vygruppen/spor-popover-react";
18
20
  export * from "@vygruppen/spor-provider-react";
@@ -21,3 +23,4 @@ export * from "@vygruppen/spor-tab-react";
21
23
  export * from "@vygruppen/spor-table-react";
22
24
  export * from "@vygruppen/spor-theme-react";
23
25
  export * from "@vygruppen/spor-typography-react";
26
+ export * from "@vygruppen/spor-util-react";