@dt-dds/react-drawer 1.0.0-beta.58 → 1.0.0-beta.59

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,18 @@
1
1
  # @dt-ui/react-drawer
2
2
 
3
+ ## 1.0.0-beta.59
4
+
5
+ ### Patch Changes
6
+
7
+ - fix(config): update ESLint, TS, and Storybook config
8
+ - fix(icon-button): add missing @dt-dds/react-icon devDependency
9
+ - Updated dependencies
10
+ - Updated dependencies
11
+ - @dt-dds/react-core@1.0.0-beta.52
12
+ - @dt-dds/react-icon-button@1.0.0-beta.21
13
+ - @dt-dds/react-typography@1.0.0-beta.43
14
+ - @dt-dds/themes@1.0.0-beta.10
15
+
3
16
  ## 1.0.0-beta.58
4
17
 
5
18
  ### Minor Changes
package/dist/index.js CHANGED
@@ -52,8 +52,8 @@ __export(index_exports, {
52
52
  module.exports = __toCommonJS(index_exports);
53
53
 
54
54
  // src/Drawer.tsx
55
- var import_react6 = require("@emotion/react");
56
- var import_react7 = require("react");
55
+ var import_react6 = require("react");
56
+ var import_react7 = require("@emotion/react");
57
57
 
58
58
  // src/components/title/DrawerTitle.tsx
59
59
  var import_react_typography = require("@dt-dds/react-typography");
@@ -63,6 +63,25 @@ var DrawerTitle = ({ title }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(imp
63
63
  // src/components/header/DrawerHeader.tsx
64
64
  var import_react_icon_button = require("@dt-dds/react-icon-button");
65
65
 
66
+ // src/components/header/DrawerHeader.styled.ts
67
+ var import_styled = __toESM(require("@emotion/styled"));
68
+ var HeaderStyled = import_styled.default.header`
69
+ ${({ theme }) => `
70
+ display: flex;
71
+ justify-content: space-between;
72
+ align-items: flex-start;
73
+ padding: 0 ${theme.spacing.spacing_60} ${theme.spacing.spacing_50};
74
+
75
+ &:has(+.hasScroll) {
76
+ box-shadow: ${theme.shadows.elevation_100};
77
+ }
78
+
79
+ @media only screen and (min-width: ${theme.breakpoints.mq2}px) {
80
+ padding: 0 ${theme.spacing.spacing_80} ${theme.spacing.spacing_50};
81
+ }
82
+ `}
83
+ `;
84
+
66
85
  // ../../dt-dds-react/core/assets/svgs/AllOut.tsx
67
86
  var import_jsx_runtime2 = require("react/jsx-runtime");
68
87
 
@@ -280,25 +299,6 @@ var useDrawerContext = () => {
280
299
  return context;
281
300
  };
282
301
 
283
- // src/components/header/DrawerHeader.styled.ts
284
- var import_styled = __toESM(require("@emotion/styled"));
285
- var HeaderStyled = import_styled.default.header`
286
- ${({ theme }) => `
287
- display: flex;
288
- justify-content: space-between;
289
- align-items: flex-start;
290
- padding: 0 ${theme.spacing.spacing_60} ${theme.spacing.spacing_50};
291
-
292
- &:has(+.hasScroll) {
293
- box-shadow: ${theme.shadows.elevation_100};
294
- }
295
-
296
- @media only screen and (min-width: ${theme.breakpoints.mq2}px) {
297
- padding: 0 ${theme.spacing.spacing_80} ${theme.spacing.spacing_50};
298
- }
299
- `}
300
- `;
301
-
302
302
  // src/components/header/DrawerHeader.tsx
303
303
  var import_jsx_runtime60 = require("react/jsx-runtime");
304
304
  var DrawerHeader = ({ children }) => {
@@ -372,9 +372,9 @@ var DrawerBody = ({ children, style, dataTestId }) => {
372
372
  };
373
373
 
374
374
  // src/Drawer.styled.ts
375
- var import_react_core = require("@dt-dds/react-core");
376
375
  var import_react5 = require("@emotion/react");
377
376
  var import_styled3 = __toESM(require("@emotion/styled"));
377
+ var import_react_core = require("@dt-dds/react-core");
378
378
  var GlobalStyle = import_react5.css`
379
379
  body {
380
380
  overflow: hidden;
@@ -433,15 +433,15 @@ var Drawer = ({
433
433
  children,
434
434
  dataTestId
435
435
  }) => {
436
- const [isTransformed, setIsTransformed] = (0, import_react7.useState)(false);
437
- const theme = (0, import_react6.useTheme)();
438
- const handleClose = (0, import_react7.useCallback)(() => {
436
+ const [isTransformed, setIsTransformed] = (0, import_react6.useState)(false);
437
+ const theme = (0, import_react7.useTheme)();
438
+ const handleClose = (0, import_react6.useCallback)(() => {
439
439
  setIsTransformed(false);
440
440
  setTimeout(() => {
441
441
  setIsVisible(false);
442
442
  }, animationToMiliseconds(theme.animations.emphasizedDecelerate.timingFunction));
443
443
  }, [setIsVisible, theme.animations.emphasizedDecelerate.timingFunction]);
444
- (0, import_react7.useEffect)(() => {
444
+ (0, import_react6.useEffect)(() => {
445
445
  const handleKeyDown = (event) => {
446
446
  if (event.key === "Escape") {
447
447
  handleClose();
@@ -454,7 +454,7 @@ var Drawer = ({
454
454
  };
455
455
  }, [handleClose, isVisible]);
456
456
  return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(DrawerContextProvider, { handleClose, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(MainContainerStyled, { children: [
457
- isVisible ? /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_react6.Global, { styles: GlobalStyle }) : null,
457
+ isVisible ? /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_react7.Global, { styles: GlobalStyle }) : null,
458
458
  /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
459
459
  OverlayStyled,
460
460
  {
package/dist/index.mjs CHANGED
@@ -19,8 +19,8 @@ var __spreadValues = (a, b) => {
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
 
21
21
  // src/Drawer.tsx
22
- import { useTheme as useTheme3, Global } from "@emotion/react";
23
22
  import { useCallback, useEffect as useEffect2, useState } from "react";
23
+ import { useTheme as useTheme3, Global } from "@emotion/react";
24
24
 
25
25
  // src/components/title/DrawerTitle.tsx
26
26
  import { Typography } from "@dt-dds/react-typography";
@@ -30,6 +30,25 @@ var DrawerTitle = ({ title }) => /* @__PURE__ */ jsx(Typography, { color: "conte
30
30
  // src/components/header/DrawerHeader.tsx
31
31
  import { IconButton } from "@dt-dds/react-icon-button";
32
32
 
33
+ // src/components/header/DrawerHeader.styled.ts
34
+ import styled from "@emotion/styled";
35
+ var HeaderStyled = styled.header`
36
+ ${({ theme }) => `
37
+ display: flex;
38
+ justify-content: space-between;
39
+ align-items: flex-start;
40
+ padding: 0 ${theme.spacing.spacing_60} ${theme.spacing.spacing_50};
41
+
42
+ &:has(+.hasScroll) {
43
+ box-shadow: ${theme.shadows.elevation_100};
44
+ }
45
+
46
+ @media only screen and (min-width: ${theme.breakpoints.mq2}px) {
47
+ padding: 0 ${theme.spacing.spacing_80} ${theme.spacing.spacing_50};
48
+ }
49
+ `}
50
+ `;
51
+
33
52
  // ../../dt-dds-react/core/assets/svgs/AllOut.tsx
34
53
  import { jsx as jsx2, jsxs } from "react/jsx-runtime";
35
54
 
@@ -247,25 +266,6 @@ var useDrawerContext = () => {
247
266
  return context;
248
267
  };
249
268
 
250
- // src/components/header/DrawerHeader.styled.ts
251
- import styled from "@emotion/styled";
252
- var HeaderStyled = styled.header`
253
- ${({ theme }) => `
254
- display: flex;
255
- justify-content: space-between;
256
- align-items: flex-start;
257
- padding: 0 ${theme.spacing.spacing_60} ${theme.spacing.spacing_50};
258
-
259
- &:has(+.hasScroll) {
260
- box-shadow: ${theme.shadows.elevation_100};
261
- }
262
-
263
- @media only screen and (min-width: ${theme.breakpoints.mq2}px) {
264
- padding: 0 ${theme.spacing.spacing_80} ${theme.spacing.spacing_50};
265
- }
266
- `}
267
- `;
268
-
269
269
  // src/components/header/DrawerHeader.tsx
270
270
  import { jsx as jsx60, jsxs as jsxs25 } from "react/jsx-runtime";
271
271
  var DrawerHeader = ({ children }) => {
@@ -339,9 +339,9 @@ var DrawerBody = ({ children, style, dataTestId }) => {
339
339
  };
340
340
 
341
341
  // src/Drawer.styled.ts
342
- import { DRAWER_Z_INDEX } from "@dt-dds/react-core";
343
342
  import { css } from "@emotion/react";
344
343
  import styled3 from "@emotion/styled";
344
+ import { DRAWER_Z_INDEX } from "@dt-dds/react-core";
345
345
  var GlobalStyle = css`
346
346
  body {
347
347
  overflow: hidden;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dt-dds/react-drawer",
3
- "version": "1.0.0-beta.58",
3
+ "version": "1.0.0-beta.59",
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-core": "1.0.0-beta.51",
24
- "@dt-dds/react-icon-button": "1.0.0-beta.20",
25
- "@dt-dds/react-typography": "1.0.0-beta.42",
26
- "@dt-dds/themes": "1.0.0-beta.9"
23
+ "@dt-dds/react-core": "1.0.0-beta.52",
24
+ "@dt-dds/react-icon-button": "1.0.0-beta.21",
25
+ "@dt-dds/react-typography": "1.0.0-beta.43",
26
+ "@dt-dds/themes": "1.0.0-beta.10"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@babel/core": "^7.22.9",