@dt-dds/react-empty-state 1.0.0-beta.63 → 1.0.0-beta.65

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
  # @dt-ui/react-empty-state
2
2
 
3
+ ## 1.0.0-beta.65
4
+
5
+ ### Patch Changes
6
+
7
+ - chore(dependencies): upgrade builders versions
8
+ - Updated dependencies
9
+ - @dt-dds/react-button@1.0.0-beta.45
10
+ - @dt-dds/react-core@1.0.0-beta.45
11
+ - @dt-dds/react-typography@1.0.0-beta.36
12
+ - @dt-dds/themes@1.0.0-beta.5
13
+
14
+ ## 1.0.0-beta.64
15
+
16
+ ### Patch Changes
17
+
18
+ - refactor(themes): consolidate theme structure
19
+ - Updated dependencies
20
+ - @dt-dds/react-button@1.0.0-beta.44
21
+ - @dt-dds/react-core@1.0.0-beta.44
22
+ - @dt-dds/react-typography@1.0.0-beta.35
23
+ - @dt-dds/themes@1.0.0-beta.4
24
+
3
25
  ## 1.0.0-beta.63
4
26
 
5
27
  ### Patch Changes
@@ -0,0 +1,19 @@
1
+ import { CustomTheme } from '@dt-dds/themes';
2
+ import * as react_jsx_runtime from 'react/jsx-runtime';
3
+ import { BaseProps } from '@dt-dds/react-core';
4
+
5
+ interface EmptyStateContentProps extends Omit<BaseProps, 'children'> {
6
+ title: string;
7
+ description: string;
8
+ }
9
+ declare const EmptyState: {
10
+ ({ children, dataTestId, style }: BaseProps): react_jsx_runtime.JSX.Element;
11
+ Content({ dataTestId, style, title, description, }: EmptyStateContentProps): react_jsx_runtime.JSX.Element;
12
+ };
13
+
14
+ declare module '@emotion/react' {
15
+ interface Theme extends CustomTheme {
16
+ }
17
+ }
18
+
19
+ export { EmptyState, type EmptyStateContentProps };
package/dist/index.d.ts CHANGED
@@ -16,4 +16,4 @@ declare module '@emotion/react' {
16
16
  }
17
17
  }
18
18
 
19
- export { EmptyState, EmptyStateContentProps };
19
+ export { EmptyState, type EmptyStateContentProps };
package/dist/index.js CHANGED
@@ -28,11 +28,11 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
29
 
30
30
  // index.ts
31
- var empty_state_exports = {};
32
- __export(empty_state_exports, {
31
+ var index_exports = {};
32
+ __export(index_exports, {
33
33
  EmptyState: () => EmptyState
34
34
  });
35
- module.exports = __toCommonJS(empty_state_exports);
35
+ module.exports = __toCommonJS(index_exports);
36
36
 
37
37
  // src/EmptyState.tsx
38
38
  var import_react_typography = require("@dt-dds/react-typography");
@@ -53,8 +53,8 @@ var EmptyStateStyled = import_styled.default.div`
53
53
  height: 100%;
54
54
  gap: ${theme.spacing.xs};
55
55
 
56
- @media only screen and (min-width: ${theme.breakpoints.s}px) {
57
- padding: ${theme.spacing["2xl"]} ${theme.spacing["5xl"]};
56
+ @media only screen and (min-width: ${theme.breakpoints.mq32}px) {
57
+ padding: ${theme.spacing.spacing_200} ${theme.spacing.spacing_500};
58
58
  }
59
59
  `}
60
60
  `;
@@ -65,10 +65,10 @@ var EmptyStateContentStyled = import_styled.default.div`
65
65
  justify-content: center;
66
66
  text-align: center;
67
67
  ${({ theme }) => `
68
- gap: ${theme.spacing["4xs"]};
68
+ gap: ${theme.spacing.spacing_30};
69
69
 
70
- @media only screen and (min-width: ${theme.breakpoints.s}px) {
71
- gap: ${theme.spacing["3xs"]};
70
+ @media only screen and (min-width: ${theme.breakpoints.mq32}px) {
71
+ gap: ${theme.spacing.spacing_40};
72
72
  }
73
73
  `}
74
74
  `;
@@ -89,7 +89,7 @@ EmptyState.Content = ({
89
89
  style,
90
90
  children: [
91
91
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_typography.Typography, { color: "content.dark", element: "h2", fontStyles: "h4", children: title }),
92
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_typography.Typography, { color: "content.default", fontStyles: "body1", children: description })
92
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_typography.Typography, { color: "content.default", fontStyles: "bodyLgRegular", children: description })
93
93
  ]
94
94
  }
95
95
  );
package/dist/index.mjs CHANGED
@@ -17,8 +17,8 @@ var EmptyStateStyled = styled.div`
17
17
  height: 100%;
18
18
  gap: ${theme.spacing.xs};
19
19
 
20
- @media only screen and (min-width: ${theme.breakpoints.s}px) {
21
- padding: ${theme.spacing["2xl"]} ${theme.spacing["5xl"]};
20
+ @media only screen and (min-width: ${theme.breakpoints.mq32}px) {
21
+ padding: ${theme.spacing.spacing_200} ${theme.spacing.spacing_500};
22
22
  }
23
23
  `}
24
24
  `;
@@ -29,10 +29,10 @@ var EmptyStateContentStyled = styled.div`
29
29
  justify-content: center;
30
30
  text-align: center;
31
31
  ${({ theme }) => `
32
- gap: ${theme.spacing["4xs"]};
32
+ gap: ${theme.spacing.spacing_30};
33
33
 
34
- @media only screen and (min-width: ${theme.breakpoints.s}px) {
35
- gap: ${theme.spacing["3xs"]};
34
+ @media only screen and (min-width: ${theme.breakpoints.mq32}px) {
35
+ gap: ${theme.spacing.spacing_40};
36
36
  }
37
37
  `}
38
38
  `;
@@ -53,7 +53,7 @@ EmptyState.Content = ({
53
53
  style,
54
54
  children: [
55
55
  /* @__PURE__ */ jsx(Typography, { color: "content.dark", element: "h2", fontStyles: "h4", children: title }),
56
- /* @__PURE__ */ jsx(Typography, { color: "content.default", fontStyles: "body1", children: description })
56
+ /* @__PURE__ */ jsx(Typography, { color: "content.default", fontStyles: "bodyLgRegular", children: description })
57
57
  ]
58
58
  }
59
59
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dt-dds/react-empty-state",
3
- "version": "1.0.0-beta.63",
3
+ "version": "1.0.0-beta.65",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": "./dist/index.js"
@@ -20,10 +20,10 @@
20
20
  "test:update:snapshot": "jest -u"
21
21
  },
22
22
  "dependencies": {
23
- "@dt-dds/react-button": "1.0.0-beta.43",
24
- "@dt-dds/react-core": "1.0.0-beta.43",
25
- "@dt-dds/react-typography": "1.0.0-beta.34",
26
- "@dt-dds/themes": "1.0.0-beta.3"
23
+ "@dt-dds/react-button": "1.0.0-beta.45",
24
+ "@dt-dds/react-core": "1.0.0-beta.45",
25
+ "@dt-dds/react-typography": "1.0.0-beta.36",
26
+ "@dt-dds/themes": "1.0.0-beta.5"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@babel/core": "^7.22.9",
@@ -44,7 +44,7 @@
44
44
  "react": "^18.1.0",
45
45
  "react-dom": "^18.2.0",
46
46
  "tsconfig": "*",
47
- "tsup": "^6.6.3",
47
+ "tsup": "^8.5.0",
48
48
  "typescript": "^4.5.3"
49
49
  },
50
50
  "peerDependencies": {