@saas-ui/react 1.7.3 → 1.8.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,59 @@
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
+
42
+ ## 1.7.4
43
+
44
+ ### Patch Changes
45
+
46
+ - 523b5ca: Fixed default value for Switch fields.
47
+ - a050ea1: Support disable sorting on individual columns in DataTable
48
+ - c8f7b32: Fixed issue where closing dialogs opened by the modals manager to flicker, due to config reset before closing animation was finished.
49
+ - Updated dependencies [523b5ca]
50
+ - Updated dependencies [a050ea1]
51
+ - Updated dependencies [c8f7b32]
52
+ - @saas-ui/forms@1.4.2
53
+ - @saas-ui/data-table@1.3.3
54
+ - @saas-ui/modals@1.4.3
55
+ - @saas-ui/auth@1.6.4
56
+
3
57
  ## 1.7.3
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":"20CAcaA,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
+ {"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","props","_this","_React$Component","call","this","state","error","getDerivedStateFromError","componentDidCatch","errorInfo","_this$context$onError","_this$context","context","onError","_proto","render","errorComponent","React","createElement","children","Component","chakra","span"],"mappings":"20CAcaA,IAAAA,mCAKX,SAAYC,EAAAA,GACV,IAAAC,EAC4B,OAD5BA,EAAAC,EAAAC,KAAAC,KAAMJ,IAAMI,MALdC,WAAK,EAMHJ,EAAKI,MAAQ,CAAEC,MAAO,MAAML,CAC9B,iFAACF,EAEMQ,yBAAP,SAAgCD,GAC9B,MAAO,CAAEA,MAAAA,EACX,EAEAE,IAAAA,EAAAA,EAAAA,UAUC,OAVDA,EAAAA,kBAAA,SAAkBF,EAAcG,GAC9B,IAAAC,EAAAC,EAAA,OAAAD,GAAAC,EAAAP,KAAKQ,SAAQC,UAAbH,EAAAP,KAAAQ,EAAuBL,EAAOG,EAChC,EAACK,EAEDC,OAAA,WACE,OAAIX,KAAKC,MAAMC,WACDN,MAAMgB,6BAAkBC,EAAAC,cAAA,KAAA,KAAA,yBAG/Bd,KAAKJ,MAAMmB,QACpB,EAACpB,CAAA,EAxBgCkB,EAAMG,sBCXY,SAACpB,gBACpD,OACEiB,EAACC,cAAAG,EAAMA,OAACC,KAAStB,eACfiB,EAAAC,cAAA,KAAA,MAGN"}
@@ -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.3",
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.3",
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.2",
66
- "@saas-ui/forms": "1.4.1",
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.2",
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","ErrorBoundary","Component","constructor","super","this","state","error","static","componentDidCatch","errorInfo","context","onError","render","errorComponent","children"],"mappings":"y7BAGaA,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"}