@saas-ui/react 1.2.1 → 1.3.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,59 @@
1
1
  # @saas-ui/react
2
2
 
3
+ ## 1.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @saas-ui/card@1.2.0
9
+
10
+ ## 1.3.0
11
+
12
+ ### Minor Changes
13
+
14
+ - f6ec7dc: Fixed issue where Next.js would not resolve Chakra UI components correctly.
15
+
16
+ ### Patch Changes
17
+
18
+ - be064d7: Only show list item outline when it is focused with keyboard nav
19
+ - Updated dependencies [f6ec7dc]
20
+ - Updated dependencies [be064d7]
21
+ - @saas-ui/auth@1.2.0
22
+ - @saas-ui/banner@1.1.0
23
+ - @saas-ui/button@1.1.0
24
+ - @saas-ui/card@1.1.0
25
+ - @saas-ui/data-table@1.1.0
26
+ - @saas-ui/forms@1.1.0
27
+ - @saas-ui/hooks@1.1.0
28
+ - @saas-ui/hotkeys@1.1.0
29
+ - @saas-ui/input-right-button@1.1.0
30
+ - @saas-ui/layout@1.1.0
31
+ - @saas-ui/list@1.1.0
32
+ - @saas-ui/menu@1.1.0
33
+ - @saas-ui/modals@1.1.0
34
+ - @saas-ui/nprogress@1.1.0
35
+ - @saas-ui/number-input@1.1.0
36
+ - @saas-ui/palette@1.1.0
37
+ - @saas-ui/password-input@1.1.0
38
+ - @saas-ui/persona@1.1.0
39
+ - @saas-ui/pin-input@1.1.0
40
+ - @saas-ui/property@1.1.0
41
+ - @saas-ui/provider@1.1.0
42
+ - @saas-ui/radio@1.1.0
43
+ - @saas-ui/search-input@1.1.0
44
+ - @saas-ui/select@1.1.0
45
+ - @saas-ui/snackbar@1.1.0
46
+ - @saas-ui/stepper@1.1.0
47
+ - @saas-ui/theme@1.2.0
48
+
49
+ ## 1.2.2
50
+
51
+ ### Patch Changes
52
+
53
+ - Updated dependencies [d88b04d]
54
+ - @saas-ui/hooks@1.0.2
55
+ - @saas-ui/auth@1.1.2
56
+
3
57
  ## 1.2.1
4
58
 
5
59
  ### Patch Changes
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../src/error-boundary.tsx","../src/typography.tsx"],"sourcesContent":["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","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"],"names":["ErrorBoundary","_React$Component","props","_this","this","state","error","getDerivedStateFromError","componentDidCatch","React","errorInfo","context","onError","_this$context$onError","call","_this$context","_proto","render","errorComponent","createElement","children","Component","chakra","span"],"mappings":"2yCAcaA,mBAKX,SAAAC,WAAA,SAAAD,EAAYE,GAAyB,IAAAC,EAAA,OACnCA,cAAMD,IAANE,MALFC,WAIqC,EAEnCF,EAAKE,MAAQ,CAAEC,MAAO,UAFxBL,KAAAD,yEALFA,EAUSO,yBAAP,SAAgCD,GAC9B,MAAO,CAAEA,MAAAA,IAGXE,IAAAA,EAAAA,EAAAA,UAdiCC,OAcjCD,EAAAA,kBAAA,SAAkBF,EAAcI,WAC9B,OAAKC,GAAAA,EAAAA,KAAAA,SAAQC,UAAbC,EAAAC,KAAAC,EAAuBT,EAAOI,IAflCM,EAkBEC,OAAA,WACE,OAAIb,KAAKC,MAAMC,WACDJ,MAAMgB,6BAAkBT,EAAAU,cAAA,KAAA,KAAA,yBAG/Bf,KAAKF,MAAMkB,UAvBaX,EAKjC,CALiCA,EAAMY,sBCXY,SAACnB,gBACpD,OACEO,EAACU,cAAAG,EAADA,OAAQC,KAASrB,eACfO,EAAAU,cAAA,KAAA"}
1
+ {"version":3,"file":"index.js","sources":["../src/error-boundary.tsx","../src/typography.tsx"],"sourcesContent":["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","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"],"names":["ErrorBoundary","_React$Component","props","_this","this","state","error","getDerivedStateFromError","componentDidCatch","React","errorInfo","context","onError","_this$context$onError","call","_this$context","_proto","render","errorComponent","createElement","children","Component","chakra","span"],"mappings":"2yCAcaA,mBAKX,SAAAC,WAAA,SAAAD,EAAYE,GAAyB,IAAAC,EAAA,OACnCA,cAAMD,IAANE,MALFC,WAIqC,EAEnCF,EAAKE,MAAQ,CAAEC,MAAO,OACvB,GAHDL,KAAAD,yEALFA,EAUSO,yBAAP,SAAgCD,GAC9B,MAAO,CAAEA,MAAAA,EACV,EAEDE,IAAAA,EAAAA,EAAAA,UAdiCC,OAcjCD,EAAAA,kBAAA,SAAkBF,EAAcI,WAC9B,OAAKC,GAAAA,EAAAA,KAAAA,SAAQC,UAAbC,EAAAC,KAAAC,EAAuBT,EAAOI,EAC/B,EAhBHM,EAkBEC,OAAA,WACE,OAAIb,KAAKC,MAAMC,WACDJ,MAAMgB,6BAAkBT,EAAAU,cAAA,KAAA,KAAA,yBAG/Bf,KAAKF,MAAMkB,QACnB,EAxBgCX,CAAAA,CAKjC,CALiCA,EAAMY,sBCXY,SAACnB,gBACpD,OACEO,EAACU,cAAAG,EAADA,OAAQC,KAASrB,eACfO,EAAAU,cAAA,KAAA,MAGL"}
@@ -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/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.mjs.map
2
+ //# sourceMappingURL=index.modern.js.map
@@ -0,0 +1 @@
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","ErrorBoundary","Component","constructor","super","this","state","error","static","componentDidCatch","errorInfo","context","onError","render","errorComponent","children"],"mappings":"y5BAGaA,MAAAA,EAAyCC,gBAElDC,EAAAC,cAACC,EAAOC,KAASJ,eACfC,EADFC,cAAA,KAAA,aCSSG,UAA2BJ,EAACK,UAKvCC,YAAYP,GACVQ,MAAMR,GAD6BS,KAJrCC,WAME,EAAAD,KAAKC,MAAQ,CAAEC,MAAO,KACvB,CAE8BC,gCAACD,GAC9B,MAAO,CAAEA,QACV,CAEDE,kBAAkBF,EAAcG,kBACzBC,GAAAA,EAAAA,KAAAA,SAAQC,mBAAUL,EAAOG,EAC/B,CAEDG,SACE,OAAIR,KAAKC,MAAMC,WACDX,MAAMkB,6BAAkBjB,wDAG1BD,MAAMmB,QACnB"}
package/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@saas-ui/react",
3
- "version": "1.2.1",
3
+ "version": "1.3.1",
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
- "default": "./dist/index.modern.mjs"
9
+ "import": "./dist/index.modern.js"
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.mjs",
16
+ "module": "./dist/index.modern.js",
17
17
  "types": "./dist/index.d.ts",
18
18
  "scripts": {
19
19
  "clean": "rimraf --no-glob ./dist",
@@ -56,34 +56,34 @@
56
56
  },
57
57
  "dependencies": {
58
58
  "@chakra-ui/system": "^2.1.3",
59
- "@saas-ui/auth": "1.1.1",
60
- "@saas-ui/banner": "1.0.1",
61
- "@saas-ui/button": "1.0.0",
62
- "@saas-ui/card": "1.0.0",
59
+ "@saas-ui/auth": "1.2.0",
60
+ "@saas-ui/banner": "1.1.0",
61
+ "@saas-ui/button": "1.1.0",
62
+ "@saas-ui/card": "1.2.0",
63
63
  "@saas-ui/collapse": "1.0.0",
64
- "@saas-ui/data-table": "1.0.2",
65
- "@saas-ui/forms": "1.0.3",
66
- "@saas-ui/hooks": "1.0.1",
67
- "@saas-ui/hotkeys": "1.0.1",
68
- "@saas-ui/input-right-button": "1.0.1",
69
- "@saas-ui/layout": "1.0.2",
70
- "@saas-ui/list": "1.0.0",
71
- "@saas-ui/menu": "1.0.2",
72
- "@saas-ui/modals": "1.0.5",
73
- "@saas-ui/nprogress": "1.0.0",
74
- "@saas-ui/number-input": "1.0.0",
75
- "@saas-ui/palette": "1.0.0",
76
- "@saas-ui/password-input": "1.0.2",
77
- "@saas-ui/persona": "1.0.0",
78
- "@saas-ui/pin-input": "1.0.0",
79
- "@saas-ui/property": "1.0.0",
80
- "@saas-ui/provider": "1.0.2",
81
- "@saas-ui/radio": "1.0.0",
82
- "@saas-ui/search-input": "1.0.0",
83
- "@saas-ui/select": "1.0.0",
84
- "@saas-ui/snackbar": "1.0.0",
85
- "@saas-ui/stepper": "1.0.0",
86
- "@saas-ui/theme": "1.1.0"
64
+ "@saas-ui/data-table": "1.1.0",
65
+ "@saas-ui/forms": "1.1.0",
66
+ "@saas-ui/hooks": "1.1.0",
67
+ "@saas-ui/hotkeys": "1.1.0",
68
+ "@saas-ui/input-right-button": "1.1.0",
69
+ "@saas-ui/layout": "1.1.0",
70
+ "@saas-ui/list": "1.1.0",
71
+ "@saas-ui/menu": "1.1.0",
72
+ "@saas-ui/modals": "1.1.0",
73
+ "@saas-ui/nprogress": "1.1.0",
74
+ "@saas-ui/number-input": "1.1.0",
75
+ "@saas-ui/palette": "1.1.0",
76
+ "@saas-ui/password-input": "1.1.0",
77
+ "@saas-ui/persona": "1.1.0",
78
+ "@saas-ui/pin-input": "1.1.0",
79
+ "@saas-ui/property": "1.1.0",
80
+ "@saas-ui/provider": "1.1.0",
81
+ "@saas-ui/radio": "1.1.0",
82
+ "@saas-ui/search-input": "1.1.0",
83
+ "@saas-ui/select": "1.1.0",
84
+ "@saas-ui/snackbar": "1.1.0",
85
+ "@saas-ui/stepper": "1.1.0",
86
+ "@saas-ui/theme": "1.2.0"
87
87
  },
88
88
  "peerDependencies": {
89
89
  "@chakra-ui/react": ">=2.1.0",
@@ -1 +0,0 @@
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","ErrorBoundary","Component","constructor","super","this","state","error","static","componentDidCatch","errorInfo","context","onError","render","errorComponent","children"],"mappings":"y5BAGaA,MAAAA,EAAyCC,gBAElDC,EAAAC,cAACC,EAAOC,KAASJ,eACfC,EADFC,cAAA,KAAA,aCSSG,UAA2BJ,EAACK,UAKvCC,YAAYP,GACVQ,MAAMR,GAD6BS,KAJrCC,WAME,EAAAD,KAAKC,MAAQ,CAAEC,MAAO,MAGOC,gCAACD,GAC9B,MAAO,CAAEA,MAAAA,GAGXE,kBAAkBF,EAAcG,kBACzBC,GAAAA,EAAAA,KAAAA,SAAQC,mBAAUL,EAAOG,GAGhCG,SACE,OAAIR,KAAKC,MAAMC,WACDX,MAAMkB,6BAAkBjB,wDAG1BD,MAAMmB"}