@dt-dds/react-toast 1.0.0-beta.59 → 1.0.0-beta.61

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,21 @@
1
1
  # @dt-ui/react-toast
2
2
 
3
+ ## 1.0.0-beta.61
4
+
5
+ ### Patch Changes
6
+
7
+ - refactor(themes): consolidate theme structure
8
+ - Updated dependencies
9
+ - @dt-dds/react-button@1.0.0-beta.44
10
+ - @dt-dds/react-core@1.0.0-beta.44
11
+ - @dt-dds/themes@1.0.0-beta.4
12
+
13
+ ## 1.0.0-beta.60
14
+
15
+ ### Patch Changes
16
+
17
+ - @dt-dds/react-button@1.0.0-beta.43
18
+
3
19
  ## 1.0.0-beta.59
4
20
 
5
21
  ### Patch Changes
package/dist/index.js CHANGED
@@ -383,27 +383,27 @@ var ToastStyled = import_styled.default.div`
383
383
  opacity: ${isVisible ? 1 : 0};
384
384
  color: ${theme.palette.content.default};
385
385
  border-radius: ${theme.shape.toast};
386
- box-shadow: ${theme.shadows.s};
386
+ box-shadow: ${theme.shadows.elevation_200};
387
387
  `}
388
388
  `;
389
389
  var ToastContentStyled = import_styled.default.div`
390
390
  ${({ theme }) => `
391
391
  height: 100%;
392
392
  flex-grow: 1;
393
- padding: ${theme.spacing["2xs"]} ${theme.spacing["2xs"]};
393
+ padding: ${theme.spacing.spacing_50} ${theme.spacing.spacing_50};
394
394
  `}
395
395
  `;
396
396
  var ToastTitleStyled = import_styled.default.div`
397
397
  ${({ theme }) => `
398
398
  ${theme.fontStyles.h6};
399
399
  color: ${theme.palette.content.dark};
400
- margin-bottom: ${theme.spacing["5xs"]};
400
+ margin-bottom: ${theme.spacing.spacing_20};
401
401
  text-transform: capitalize;
402
402
  `}
403
403
  `;
404
404
  var ToastMessageStyled = import_styled.default.div`
405
405
  ${({ theme }) => `
406
- ${theme.fontStyles.body2};
406
+ ${theme.fontStyles.bodyMdRegular};
407
407
  color: ${theme.palette.content.default};
408
408
  overflow: hidden;
409
409
  word-break: break-word;
@@ -432,7 +432,7 @@ var ToastTextContainer = import_styled.default.div`
432
432
  ${({ theme, hasCloseButton }) => `
433
433
  display: grid;
434
434
  ${hasCloseButton ? "grid-template-columns: auto 24px;" : "grid-template-rows: auto auto;"}
435
- column-gap: ${theme.spacing["2xs"]};
435
+ column-gap: ${theme.spacing.spacing_50};
436
436
  `}
437
437
  `;
438
438
  var ToastActionsStyled = import_styled.default.div`
@@ -440,7 +440,7 @@ var ToastActionsStyled = import_styled.default.div`
440
440
  display: flex;
441
441
  flex-direction: row;
442
442
  justify-content: flex-end;
443
- padding-top: ${hasChildren ? theme.spacing["5xs"] : 0};
443
+ padding-top: ${hasChildren ? theme.spacing.spacing_20 : 0};
444
444
  `}
445
445
  `;
446
446
 
@@ -545,7 +545,7 @@ var emitToast = (_a) => {
545
545
  var Toaster = (_a) => {
546
546
  var _b = _a, { gutter = 8 } = _b, props = __objRest(_b, ["gutter"]);
547
547
  const theme = (0, import_react4.useTheme)();
548
- const small = (0, import_react_core.useMedia)(`(max-width: ${theme.breakpoints.s}px)`);
548
+ const small = (0, import_react_core.useMedia)(`(max-width: ${theme.breakpoints.mq2}px)`);
549
549
  const position = small ? smallPosition : defaultPosition;
550
550
  const margin = small ? 8 : 16;
551
551
  return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
package/dist/index.mjs CHANGED
@@ -345,27 +345,27 @@ var ToastStyled = styled.div`
345
345
  opacity: ${isVisible ? 1 : 0};
346
346
  color: ${theme.palette.content.default};
347
347
  border-radius: ${theme.shape.toast};
348
- box-shadow: ${theme.shadows.s};
348
+ box-shadow: ${theme.shadows.elevation_200};
349
349
  `}
350
350
  `;
351
351
  var ToastContentStyled = styled.div`
352
352
  ${({ theme }) => `
353
353
  height: 100%;
354
354
  flex-grow: 1;
355
- padding: ${theme.spacing["2xs"]} ${theme.spacing["2xs"]};
355
+ padding: ${theme.spacing.spacing_50} ${theme.spacing.spacing_50};
356
356
  `}
357
357
  `;
358
358
  var ToastTitleStyled = styled.div`
359
359
  ${({ theme }) => `
360
360
  ${theme.fontStyles.h6};
361
361
  color: ${theme.palette.content.dark};
362
- margin-bottom: ${theme.spacing["5xs"]};
362
+ margin-bottom: ${theme.spacing.spacing_20};
363
363
  text-transform: capitalize;
364
364
  `}
365
365
  `;
366
366
  var ToastMessageStyled = styled.div`
367
367
  ${({ theme }) => `
368
- ${theme.fontStyles.body2};
368
+ ${theme.fontStyles.bodyMdRegular};
369
369
  color: ${theme.palette.content.default};
370
370
  overflow: hidden;
371
371
  word-break: break-word;
@@ -394,7 +394,7 @@ var ToastTextContainer = styled.div`
394
394
  ${({ theme, hasCloseButton }) => `
395
395
  display: grid;
396
396
  ${hasCloseButton ? "grid-template-columns: auto 24px;" : "grid-template-rows: auto auto;"}
397
- column-gap: ${theme.spacing["2xs"]};
397
+ column-gap: ${theme.spacing.spacing_50};
398
398
  `}
399
399
  `;
400
400
  var ToastActionsStyled = styled.div`
@@ -402,7 +402,7 @@ var ToastActionsStyled = styled.div`
402
402
  display: flex;
403
403
  flex-direction: row;
404
404
  justify-content: flex-end;
405
- padding-top: ${hasChildren ? theme.spacing["5xs"] : 0};
405
+ padding-top: ${hasChildren ? theme.spacing.spacing_20 : 0};
406
406
  `}
407
407
  `;
408
408
 
@@ -510,7 +510,7 @@ var emitToast = (_a) => {
510
510
  var Toaster = (_a) => {
511
511
  var _b = _a, { gutter = 8 } = _b, props = __objRest(_b, ["gutter"]);
512
512
  const theme = useTheme3();
513
- const small = useMedia(`(max-width: ${theme.breakpoints.s}px)`);
513
+ const small = useMedia(`(max-width: ${theme.breakpoints.mq2}px)`);
514
514
  const position = small ? smallPosition : defaultPosition;
515
515
  const margin = small ? 8 : 16;
516
516
  return /* @__PURE__ */ jsx59(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dt-dds/react-toast",
3
- "version": "1.0.0-beta.59",
3
+ "version": "1.0.0-beta.61",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": "./dist/index.js"
@@ -20,9 +20,9 @@
20
20
  "test:update:snapshot": "jest -u"
21
21
  },
22
22
  "dependencies": {
23
- "@dt-dds/react-button": "1.0.0-beta.42",
24
- "@dt-dds/react-core": "1.0.0-beta.43",
25
- "@dt-dds/themes": "1.0.0-beta.3",
23
+ "@dt-dds/react-button": "1.0.0-beta.44",
24
+ "@dt-dds/react-core": "1.0.0-beta.44",
25
+ "@dt-dds/themes": "1.0.0-beta.4",
26
26
  "react-hot-toast": "^2.3.0"
27
27
  },
28
28
  "devDependencies": {