@saas-ui/react 1.7.2 → 1.7.4

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,27 @@
1
1
  # @saas-ui/react
2
2
 
3
+ ## 1.7.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 523b5ca: Fixed default value for Switch fields.
8
+ - a050ea1: Support disable sorting on individual columns in DataTable
9
+ - c8f7b32: Fixed issue where closing dialogs opened by the modals manager to flicker, due to config reset before closing animation was finished.
10
+ - Updated dependencies [523b5ca]
11
+ - Updated dependencies [a050ea1]
12
+ - Updated dependencies [c8f7b32]
13
+ - @saas-ui/forms@1.4.2
14
+ - @saas-ui/data-table@1.3.3
15
+ - @saas-ui/modals@1.4.3
16
+ - @saas-ui/auth@1.6.4
17
+
18
+ ## 1.7.3
19
+
20
+ ### Patch Changes
21
+
22
+ - Updated dependencies [91fbab7]
23
+ - @saas-ui/auth@1.6.3
24
+
3
25
  ## 1.7.2
4
26
 
5
27
  ### 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 +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":"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"}
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saas-ui/react",
3
- "version": "1.7.2",
3
+ "version": "1.7.4",
4
4
  "description": "Saas UI - The frontend stack for SaaS companies.",
5
5
  "source": "src/index.ts",
6
6
  "exports": {
@@ -57,20 +57,20 @@
57
57
  "dependencies": {
58
58
  "@chakra-ui/system": "^2.3.3",
59
59
  "@saas-ui/app-shell": "1.0.0",
60
- "@saas-ui/auth": "1.6.2",
60
+ "@saas-ui/auth": "1.6.4",
61
61
  "@saas-ui/banner": "1.3.0",
62
62
  "@saas-ui/button": "1.3.0",
63
63
  "@saas-ui/card": "1.4.0",
64
64
  "@saas-ui/collapse": "1.3.0",
65
- "@saas-ui/data-table": "1.3.2",
66
- "@saas-ui/forms": "1.4.1",
65
+ "@saas-ui/data-table": "1.3.3",
66
+ "@saas-ui/forms": "1.4.2",
67
67
  "@saas-ui/hooks": "1.1.2",
68
68
  "@saas-ui/hotkeys": "1.3.0",
69
69
  "@saas-ui/input-right-button": "1.3.0",
70
70
  "@saas-ui/layout": "1.3.2",
71
71
  "@saas-ui/list": "1.3.0",
72
72
  "@saas-ui/menu": "1.3.2",
73
- "@saas-ui/modals": "1.4.2",
73
+ "@saas-ui/modals": "1.4.3",
74
74
  "@saas-ui/nprogress": "1.3.0",
75
75
  "@saas-ui/number-input": "1.3.0",
76
76
  "@saas-ui/palette": "1.2.0",