design-zystem 1.0.238 → 1.0.240

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/dist/index.d.mts CHANGED
@@ -181,14 +181,16 @@ interface DrawerProps {
181
181
  children?: ReactNode;
182
182
  leftButtonLabel?: string;
183
183
  leftButtonAction?: () => void;
184
+ leftButtonDisabled?: boolean;
184
185
  rightButtonLabel?: string;
185
186
  rightButtonAction?: () => void;
187
+ rightButtonDisabled?: boolean;
186
188
  isLoading?: boolean;
187
189
  leftVariant?: string;
188
190
  variant?: string;
189
191
  footer?: ReactNode;
190
192
  }
191
- declare const Drawer: ({ showDrawer, closeDrawer, title, width, children, leftButtonLabel, leftButtonAction, rightButtonLabel, rightButtonAction, isLoading, leftVariant, variant, footer, }: DrawerProps) => react_jsx_runtime.JSX.Element | null;
193
+ declare const Drawer: ({ showDrawer, closeDrawer, title, width, children, leftButtonLabel, leftButtonAction, leftButtonDisabled, rightButtonLabel, rightButtonAction, rightButtonDisabled, isLoading, leftVariant, variant, footer, }: DrawerProps) => react_jsx_runtime.JSX.Element | null;
192
194
 
193
195
  type SizeKey = 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl';
194
196
  interface TagBubbleProps extends HTMLAttributes<HTMLDivElement> {
package/dist/index.d.ts CHANGED
@@ -181,14 +181,16 @@ interface DrawerProps {
181
181
  children?: ReactNode;
182
182
  leftButtonLabel?: string;
183
183
  leftButtonAction?: () => void;
184
+ leftButtonDisabled?: boolean;
184
185
  rightButtonLabel?: string;
185
186
  rightButtonAction?: () => void;
187
+ rightButtonDisabled?: boolean;
186
188
  isLoading?: boolean;
187
189
  leftVariant?: string;
188
190
  variant?: string;
189
191
  footer?: ReactNode;
190
192
  }
191
- declare const Drawer: ({ showDrawer, closeDrawer, title, width, children, leftButtonLabel, leftButtonAction, rightButtonLabel, rightButtonAction, isLoading, leftVariant, variant, footer, }: DrawerProps) => react_jsx_runtime.JSX.Element | null;
193
+ declare const Drawer: ({ showDrawer, closeDrawer, title, width, children, leftButtonLabel, leftButtonAction, leftButtonDisabled, rightButtonLabel, rightButtonAction, rightButtonDisabled, isLoading, leftVariant, variant, footer, }: DrawerProps) => react_jsx_runtime.JSX.Element | null;
192
194
 
193
195
  type SizeKey = 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl';
194
196
  interface TagBubbleProps extends HTMLAttributes<HTMLDivElement> {
package/dist/index.js CHANGED
@@ -1489,8 +1489,10 @@ var Drawer = ({
1489
1489
  children,
1490
1490
  leftButtonLabel,
1491
1491
  leftButtonAction,
1492
+ leftButtonDisabled = false,
1492
1493
  rightButtonLabel,
1493
1494
  rightButtonAction,
1495
+ rightButtonDisabled = false,
1494
1496
  isLoading = false,
1495
1497
  leftVariant,
1496
1498
  variant = "blue_700",
@@ -1543,6 +1545,7 @@ var Drawer = ({
1543
1545
  {
1544
1546
  outline: true,
1545
1547
  onClick: leftButtonAction,
1548
+ disabled: leftButtonDisabled,
1546
1549
  variant: leftVariant ? leftVariant : variant,
1547
1550
  width: "100%",
1548
1551
  children: leftButtonLabel
@@ -1553,6 +1556,7 @@ var Drawer = ({
1553
1556
  {
1554
1557
  onClick: rightButtonAction,
1555
1558
  isLoading,
1559
+ disabled: rightButtonDisabled,
1556
1560
  variant,
1557
1561
  width: "100%",
1558
1562
  children: rightButtonLabel
@@ -3635,7 +3639,7 @@ var Switch = (0, import_react17.forwardRef)(
3635
3639
  onChange,
3636
3640
  disabled = false,
3637
3641
  size = "m",
3638
- color: color = colors.blue_700,
3642
+ color: color = colors.blue_950,
3639
3643
  id
3640
3644
  } = _b, rest = __objRest(_b, [
3641
3645
  "checked",
package/dist/index.mjs CHANGED
@@ -1396,8 +1396,10 @@ var Drawer = ({
1396
1396
  children,
1397
1397
  leftButtonLabel,
1398
1398
  leftButtonAction,
1399
+ leftButtonDisabled = false,
1399
1400
  rightButtonLabel,
1400
1401
  rightButtonAction,
1402
+ rightButtonDisabled = false,
1401
1403
  isLoading = false,
1402
1404
  leftVariant,
1403
1405
  variant = "blue_700",
@@ -1450,6 +1452,7 @@ var Drawer = ({
1450
1452
  {
1451
1453
  outline: true,
1452
1454
  onClick: leftButtonAction,
1455
+ disabled: leftButtonDisabled,
1453
1456
  variant: leftVariant ? leftVariant : variant,
1454
1457
  width: "100%",
1455
1458
  children: leftButtonLabel
@@ -1460,6 +1463,7 @@ var Drawer = ({
1460
1463
  {
1461
1464
  onClick: rightButtonAction,
1462
1465
  isLoading,
1466
+ disabled: rightButtonDisabled,
1463
1467
  variant,
1464
1468
  width: "100%",
1465
1469
  children: rightButtonLabel
@@ -3548,7 +3552,7 @@ var Switch = forwardRef7(
3548
3552
  onChange,
3549
3553
  disabled = false,
3550
3554
  size = "m",
3551
- color: color = colors.blue_700,
3555
+ color: color = colors.blue_950,
3552
3556
  id
3553
3557
  } = _b, rest = __objRest(_b, [
3554
3558
  "checked",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "design-zystem",
3
- "version": "1.0.238",
3
+ "version": "1.0.240",
4
4
  "description": "A React design system of importable components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",