@saas-ui/react 1.7.4 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,44 @@
1
1
  # @saas-ui/react
2
2
 
3
+ ## 1.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 1f074c98: Upgrade to Chakra 2.4.8. Using .mjs for esm bundles.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [1f074c98]
12
+ - @saas-ui/app-shell@1.1.0
13
+ - @saas-ui/auth@1.7.0
14
+ - @saas-ui/banner@1.4.0
15
+ - @saas-ui/button@1.4.0
16
+ - @saas-ui/card@1.5.0
17
+ - @saas-ui/collapse@1.4.0
18
+ - @saas-ui/data-table@1.4.0
19
+ - @saas-ui/forms@1.5.0
20
+ - @saas-ui/hooks@1.2.0
21
+ - @saas-ui/hotkeys@1.4.0
22
+ - @saas-ui/input-right-button@1.4.0
23
+ - @saas-ui/layout@1.4.0
24
+ - @saas-ui/list@1.4.0
25
+ - @saas-ui/menu@1.4.0
26
+ - @saas-ui/modals@1.5.0
27
+ - @saas-ui/nprogress@1.4.0
28
+ - @saas-ui/number-input@1.4.0
29
+ - @saas-ui/palette@1.3.0
30
+ - @saas-ui/password-input@1.4.0
31
+ - @saas-ui/persona@1.4.0
32
+ - @saas-ui/pin-input@1.4.0
33
+ - @saas-ui/property@1.4.0
34
+ - @saas-ui/provider@1.2.0
35
+ - @saas-ui/radio@1.4.0
36
+ - @saas-ui/search-input@1.4.0
37
+ - @saas-ui/select@1.4.0
38
+ - @saas-ui/snackbar@1.2.0
39
+ - @saas-ui/stepper@1.4.0
40
+ - @saas-ui/theme@1.7.0
41
+
3
42
  ## 1.7.4
4
43
 
5
44
  ### Patch Changes
@@ -1,2 +1,2 @@
1
1
  import*as r from"react";import{chakra as o}from"@chakra-ui/system";export*from"@saas-ui/auth";export*from"@saas-ui/app-shell";export*from"@saas-ui/banner";export*from"@saas-ui/button";export*from"@saas-ui/card";export*from"@saas-ui/collapse";export*from"@saas-ui/data-table";export*from"@saas-ui/list";export*from"@saas-ui/layout";export*from"@saas-ui/forms";export*from"@saas-ui/hooks";export*from"@saas-ui/hotkeys";export*from"@saas-ui/input-right-button";export*from"@saas-ui/menu";export*from"@saas-ui/modals";export*from"@saas-ui/nprogress";export*from"@saas-ui/number-input";export*from"@saas-ui/palette";export*from"@saas-ui/password-input";export*from"@saas-ui/persona";export*from"@saas-ui/pin-input";export*from"@saas-ui/property";export*from"@saas-ui/provider";export*from"@saas-ui/radio";export*from"@saas-ui/search-input";export*from"@saas-ui/select";export*from"@saas-ui/snackbar";export*from"@saas-ui/stepper";export*from"@saas-ui/theme";const s=s=>/*#__PURE__*/r.createElement(o.span,s,/*#__PURE__*/r.createElement("br",null));class t extends r.Component{constructor(r){super(r),this.state=void 0,this.state={error:null}}static getDerivedStateFromError(r){return{error:r}}componentDidCatch(r,o){var s,t;null==(s=(t=this.context).onError)||s.call(t,r,o)}render(){return this.state.error?this.props.errorComponent||/*#__PURE__*/r.createElement("h1",null,"Something went wrong."):this.props.children}}export{s as Br,t as ErrorBoundary};
2
- //# sourceMappingURL=index.modern.js.map
2
+ //# sourceMappingURL=index.modern.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.modern.mjs","sources":["../src/typography.tsx","../src/error-boundary.tsx"],"sourcesContent":["import * as React from 'react'\nimport { chakra, HTMLChakraProps } from '@chakra-ui/system'\n\nexport const Br: React.FC<HTMLChakraProps<'span'>> = (props) => {\n return (\n <chakra.span {...props}>\n <br />\n </chakra.span>\n )\n}\n","import * as React from 'react'\n\nimport { SaasContext } from '@saas-ui/provider'\n\nexport interface ErrorBoundaryProps {\n errorComponent?: React.ReactNode\n children: React.ReactNode\n}\n\ninterface ErrorBoundaryState {\n error?: Error | null\n errorInfo?: any\n}\n\nexport class ErrorBoundary extends React.Component<ErrorBoundaryProps> {\n state: ErrorBoundaryState\n\n declare context: React.ContextType<typeof SaasContext>\n\n constructor(props: ErrorBoundaryProps) {\n super(props)\n this.state = { error: null }\n }\n\n static getDerivedStateFromError(error: Error) {\n return { error }\n }\n\n componentDidCatch(error: Error, errorInfo: any) {\n this.context.onError?.(error, errorInfo)\n }\n\n render() {\n if (this.state.error) {\n return this.props.errorComponent || <h1>Something went wrong.</h1>\n }\n\n return this.props.children\n }\n}\n"],"names":["Br","props","React","createElement","chakra","span","Component","constructor","super","this","state","error","static","componentDidCatch","errorInfo","_this$context$onError","_this$context","context","onError","call","render","errorComponent","children"],"mappings":"y7BAGaA,MAAAA,EAAyCC,gBAElDC,EAAAC,cAACC,EAAOC,KAASJ,eACfC,EACFC,cAAA,KAAA,OCOS,gBAAsBD,EAAMI,UAKvCC,YAAYN,GACVO,MAAMP,GAAMQ,KALdC,aAMED,KAAKC,MAAQ,CAAEC,MAAO,KACxB,CAEAC,gCAAgCD,GAC9B,MAAO,CAAEA,QACX,CAEAE,kBAAkBF,EAAcG,GAC9B,IAAAC,EAAAC,EAAA,OAAAD,GAAAC,EAAAP,KAAKQ,SAAQC,UAAbH,EAAAI,KAAAH,EAAuBL,EAAOG,EAChC,CAEAM,SACE,OAAIX,KAAKC,MAAMC,MACNF,KAAKR,MAAMoB,6BAAkBnB,EAAAC,cAAA,KAAA,KAAA,yBAG/BM,KAAKR,MAAMqB,QACpB"}
package/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@saas-ui/react",
3
- "version": "1.7.4",
3
+ "version": "1.8.0",
4
4
  "description": "Saas UI - The frontend stack for SaaS companies.",
5
5
  "source": "src/index.ts",
6
6
  "exports": {
7
7
  ".": {
8
8
  "require": "./dist/index.js",
9
- "import": "./dist/index.modern.js"
9
+ "import": "./dist/index.modern.mjs"
10
10
  },
11
11
  "./src": {
12
12
  "default": "./src/index.ts"
13
13
  }
14
14
  },
15
15
  "main": "./dist/index.js",
16
- "module": "./dist/index.modern.js",
16
+ "module": "./dist/index.modern.mjs",
17
17
  "types": "./dist/index.d.ts",
18
18
  "scripts": {
19
19
  "clean": "rimraf --no-glob ./dist",
@@ -55,39 +55,39 @@
55
55
  "url": "https://storybook.saas-ui.dev"
56
56
  },
57
57
  "dependencies": {
58
- "@chakra-ui/system": "^2.3.3",
59
- "@saas-ui/app-shell": "1.0.0",
60
- "@saas-ui/auth": "1.6.4",
61
- "@saas-ui/banner": "1.3.0",
62
- "@saas-ui/button": "1.3.0",
63
- "@saas-ui/card": "1.4.0",
64
- "@saas-ui/collapse": "1.3.0",
65
- "@saas-ui/data-table": "1.3.3",
66
- "@saas-ui/forms": "1.4.2",
67
- "@saas-ui/hooks": "1.1.2",
68
- "@saas-ui/hotkeys": "1.3.0",
69
- "@saas-ui/input-right-button": "1.3.0",
70
- "@saas-ui/layout": "1.3.2",
71
- "@saas-ui/list": "1.3.0",
72
- "@saas-ui/menu": "1.3.2",
73
- "@saas-ui/modals": "1.4.3",
74
- "@saas-ui/nprogress": "1.3.0",
75
- "@saas-ui/number-input": "1.3.0",
76
- "@saas-ui/palette": "1.2.0",
77
- "@saas-ui/password-input": "1.3.0",
78
- "@saas-ui/persona": "1.3.0",
79
- "@saas-ui/pin-input": "1.3.0",
80
- "@saas-ui/property": "1.3.0",
81
- "@saas-ui/provider": "1.1.8",
82
- "@saas-ui/radio": "1.3.0",
83
- "@saas-ui/search-input": "1.3.0",
84
- "@saas-ui/select": "1.3.0",
85
- "@saas-ui/snackbar": "1.1.1",
86
- "@saas-ui/stepper": "1.3.1",
87
- "@saas-ui/theme": "1.6.2"
58
+ "@chakra-ui/system": "^2.3.8",
59
+ "@saas-ui/app-shell": "1.1.0",
60
+ "@saas-ui/auth": "1.7.0",
61
+ "@saas-ui/banner": "1.4.0",
62
+ "@saas-ui/button": "1.4.0",
63
+ "@saas-ui/card": "1.5.0",
64
+ "@saas-ui/collapse": "1.4.0",
65
+ "@saas-ui/data-table": "1.4.0",
66
+ "@saas-ui/forms": "1.5.0",
67
+ "@saas-ui/hooks": "1.2.0",
68
+ "@saas-ui/hotkeys": "1.4.0",
69
+ "@saas-ui/input-right-button": "1.4.0",
70
+ "@saas-ui/layout": "1.4.0",
71
+ "@saas-ui/list": "1.4.0",
72
+ "@saas-ui/menu": "1.4.0",
73
+ "@saas-ui/modals": "1.5.0",
74
+ "@saas-ui/nprogress": "1.4.0",
75
+ "@saas-ui/number-input": "1.4.0",
76
+ "@saas-ui/palette": "1.3.0",
77
+ "@saas-ui/password-input": "1.4.0",
78
+ "@saas-ui/persona": "1.4.0",
79
+ "@saas-ui/pin-input": "1.4.0",
80
+ "@saas-ui/property": "1.4.0",
81
+ "@saas-ui/provider": "1.2.0",
82
+ "@saas-ui/radio": "1.4.0",
83
+ "@saas-ui/search-input": "1.4.0",
84
+ "@saas-ui/select": "1.4.0",
85
+ "@saas-ui/snackbar": "1.2.0",
86
+ "@saas-ui/stepper": "1.4.0",
87
+ "@saas-ui/theme": "1.7.0"
88
88
  },
89
89
  "peerDependencies": {
90
- "@chakra-ui/react": ">=2.1.0",
90
+ "@chakra-ui/react": ">=2.4.0",
91
91
  "@emotion/react": "^11",
92
92
  "@emotion/styled": "^11",
93
93
  "framer-motion": ">=5.5.0",
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.modern.js","sources":["../src/typography.tsx","../src/error-boundary.tsx"],"sourcesContent":["import * as React from 'react'\nimport { chakra, HTMLChakraProps } from '@chakra-ui/system'\n\nexport const Br: React.FC<HTMLChakraProps<'span'>> = (props) => {\n return (\n <chakra.span {...props}>\n <br />\n </chakra.span>\n )\n}\n","import * as React from 'react'\n\nimport { SaasContext } from '@saas-ui/provider'\n\nexport interface ErrorBoundaryProps {\n errorComponent?: React.ReactNode\n children: React.ReactNode\n}\n\ninterface ErrorBoundaryState {\n error?: Error | null\n errorInfo?: any\n}\n\nexport class ErrorBoundary extends React.Component<ErrorBoundaryProps> {\n state: ErrorBoundaryState\n\n declare context: React.ContextType<typeof SaasContext>\n\n constructor(props: ErrorBoundaryProps) {\n super(props)\n this.state = { error: null }\n }\n\n static getDerivedStateFromError(error: Error) {\n return { error }\n }\n\n componentDidCatch(error: Error, errorInfo: any) {\n this.context.onError?.(error, errorInfo)\n }\n\n render() {\n if (this.state.error) {\n return this.props.errorComponent || <h1>Something went wrong.</h1>\n }\n\n return this.props.children\n }\n}\n"],"names":["Br","props","React","createElement","chakra","span","Component","constructor","super","this","state","error","static","componentDidCatch","errorInfo","_this$context$onError","_this$context","context","onError","call","render","errorComponent","children"],"mappings":"y7BAGaA,MAAAA,EAAyCC,gBAElDC,EAAAC,cAACC,EAAOC,KAASJ,eACfC,EACFC,cAAA,KAAA,OCOS,gBAAsBD,EAAMI,UAKvCC,YAAYN,GACVO,MAAMP,GAAMQ,KALdC,aAMED,KAAKC,MAAQ,CAAEC,MAAO,KACxB,CAEAC,gCAAgCD,GAC9B,MAAO,CAAEA,QACX,CAEAE,kBAAkBF,EAAcG,GAC9B,IAAAC,EAAAC,EAAA,OAAAD,GAAAC,EAAAP,KAAKQ,SAAQC,UAAbH,EAAAI,KAAAH,EAAuBL,EAAOG,EAChC,CAEAM,SACE,OAAIX,KAAKC,MAAMC,MACNF,KAAKR,MAAMoB,6BAAkBnB,EAAAC,cAAA,KAAA,KAAA,yBAG/BM,KAAKR,MAAMqB,QACpB"}