@drivenets/design-system 0.5.0 → 0.6.0

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.
Files changed (125) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/components/ds-alert-banner/ds-alert-banner.d.ts +5 -5
  3. package/dist/components/ds-autocomplete/ds-autocomplete.d.ts +2 -2
  4. package/dist/components/ds-autocomplete/ds-autocomplete.d.ts.map +1 -1
  5. package/dist/components/ds-button/ds-button.d.ts +2 -2
  6. package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.d.ts +2 -0
  7. package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.types.d.ts +1 -1
  8. package/dist/components/ds-button/versions/ds-button-legacy/index.d.ts +2 -0
  9. package/dist/components/ds-card/ds-card.d.cts +5 -5
  10. package/dist/components/ds-card/ds-card.d.cts.map +1 -1
  11. package/dist/components/ds-card/ds-card.d.ts +5 -5
  12. package/dist/components/ds-card/ds-card.module.cjs +4 -4
  13. package/dist/components/ds-card/ds-card.module.js +4 -4
  14. package/dist/components/ds-card/ds-card.module.js.map +1 -1
  15. package/dist/components/ds-confirmation/ds-confirmation.d.cts +8 -8
  16. package/dist/components/ds-confirmation/ds-confirmation.d.cts.map +1 -1
  17. package/dist/components/ds-confirmation/ds-confirmation.d.ts +8 -8
  18. package/dist/components/ds-date-input/ds-date-input.d.cts +2 -2
  19. package/dist/components/ds-drawer/ds-drawer.d.cts +9 -9
  20. package/dist/components/ds-drawer/ds-drawer.d.ts +9 -9
  21. package/dist/components/ds-expandable-text-input/ds-expandable-text-input.d.cts +2 -2
  22. package/dist/components/ds-expandable-text-input/ds-expandable-text-input.d.cts.map +1 -1
  23. package/dist/components/ds-expandable-text-input/ds-expandable-text-input.d.ts +2 -2
  24. package/dist/components/ds-form-control/ds-form-control.d.cts +8 -8
  25. package/dist/components/ds-icon/ds-icon.d.cts +2 -2
  26. package/dist/components/ds-icon/ds-icon.d.ts +2 -2
  27. package/dist/components/ds-icon/ds-icon.d.ts.map +1 -1
  28. package/dist/components/ds-loader/ds-loader.d.cts +2 -2
  29. package/dist/components/ds-loader/ds-loader.d.ts +2 -2
  30. package/dist/components/ds-modal/ds-modal.d.cts +8 -8
  31. package/dist/components/ds-modal/ds-modal.d.ts +8 -8
  32. package/dist/components/ds-panel/ds-panel.cjs +112 -33
  33. package/dist/components/ds-panel/ds-panel.d.cts +3 -2
  34. package/dist/components/ds-panel/ds-panel.d.cts.map +1 -1
  35. package/dist/components/ds-panel/ds-panel.d.ts +3 -2
  36. package/dist/components/ds-panel/ds-panel.d.ts.map +1 -1
  37. package/dist/components/ds-panel/ds-panel.js +112 -33
  38. package/dist/components/ds-panel/ds-panel.js.map +1 -1
  39. package/dist/components/ds-panel/ds-panel.module.cjs +7 -6
  40. package/dist/components/ds-panel/ds-panel.module.js +7 -6
  41. package/dist/components/ds-panel/ds-panel.module.js.map +1 -1
  42. package/dist/components/ds-panel/ds-panel.types.d.cts +1 -0
  43. package/dist/components/ds-panel/ds-panel.types.d.cts.map +1 -1
  44. package/dist/components/ds-panel/ds-panel.types.d.ts +1 -0
  45. package/dist/components/ds-panel/ds-panel.types.d.ts.map +1 -1
  46. package/dist/components/ds-select/ds-select.d.cts +2 -2
  47. package/dist/components/ds-select/ds-select.d.ts +2 -2
  48. package/dist/components/ds-skeleton/ds-skeleton-circle.d.cts +2 -2
  49. package/dist/components/ds-skeleton/ds-skeleton-rect.d.cts +2 -2
  50. package/dist/components/ds-skeleton/ds-skeleton-text.d.cts +2 -2
  51. package/dist/components/ds-skeleton/ds-skeleton.d.cts +4 -4
  52. package/dist/components/ds-smart-tabs/ds-smart-tabs.d.cts +2 -2
  53. package/dist/components/ds-smart-tabs/ds-smart-tabs.d.ts +2 -2
  54. package/dist/components/ds-stepper/components/ds-step-content.cjs +31 -35
  55. package/dist/components/ds-stepper/components/ds-step-content.d.cts +5 -5
  56. package/dist/components/ds-stepper/components/ds-step-content.d.cts.map +1 -1
  57. package/dist/components/ds-stepper/components/ds-step-content.d.ts +5 -5
  58. package/dist/components/ds-stepper/components/ds-step-content.d.ts.map +1 -1
  59. package/dist/components/ds-stepper/components/ds-step-content.js +32 -36
  60. package/dist/components/ds-stepper/components/ds-step-content.js.map +1 -1
  61. package/dist/components/ds-stepper/components/ds-step-next-button.cjs +34 -17
  62. package/dist/components/ds-stepper/components/ds-step-next-button.d.cts +8 -5
  63. package/dist/components/ds-stepper/components/ds-step-next-button.d.cts.map +1 -1
  64. package/dist/components/ds-stepper/components/ds-step-next-button.d.ts +9 -5
  65. package/dist/components/ds-stepper/components/ds-step-next-button.d.ts.map +1 -1
  66. package/dist/components/ds-stepper/components/ds-step-next-button.js +34 -17
  67. package/dist/components/ds-stepper/components/ds-step-next-button.js.map +1 -1
  68. package/dist/components/ds-stepper/components/ds-step-separator.cjs +36 -0
  69. package/dist/components/ds-stepper/components/ds-step-separator.js +36 -0
  70. package/dist/components/ds-stepper/components/ds-step-separator.js.map +1 -0
  71. package/dist/components/ds-stepper/components/ds-step.cjs +145 -90
  72. package/dist/components/ds-stepper/components/ds-step.d.cts +24 -5
  73. package/dist/components/ds-stepper/components/ds-step.d.cts.map +1 -1
  74. package/dist/components/ds-stepper/components/ds-step.d.ts +24 -5
  75. package/dist/components/ds-stepper/components/ds-step.d.ts.map +1 -1
  76. package/dist/components/ds-stepper/components/ds-step.js +145 -90
  77. package/dist/components/ds-stepper/components/ds-step.js.map +1 -1
  78. package/dist/components/ds-stepper/ds-stepper.cjs +75 -48
  79. package/dist/components/ds-stepper/ds-stepper.d.cts +7 -3
  80. package/dist/components/ds-stepper/ds-stepper.d.cts.map +1 -1
  81. package/dist/components/ds-stepper/ds-stepper.d.ts +7 -3
  82. package/dist/components/ds-stepper/ds-stepper.d.ts.map +1 -1
  83. package/dist/components/ds-stepper/ds-stepper.js +76 -49
  84. package/dist/components/ds-stepper/ds-stepper.js.map +1 -1
  85. package/dist/components/ds-stepper/ds-stepper.module.cjs +17 -11
  86. package/dist/components/ds-stepper/ds-stepper.module.js +17 -11
  87. package/dist/components/ds-stepper/ds-stepper.module.js.map +1 -1
  88. package/dist/components/ds-stepper/ds-stepper.types.d.cts +11 -2
  89. package/dist/components/ds-stepper/ds-stepper.types.d.cts.map +1 -1
  90. package/dist/components/ds-stepper/ds-stepper.types.d.ts +11 -2
  91. package/dist/components/ds-stepper/ds-stepper.types.d.ts.map +1 -1
  92. package/dist/components/ds-stepper/hooks/use-stepper.js.map +1 -1
  93. package/dist/components/ds-stepper/hooks/use-steps.cjs +13 -11
  94. package/dist/components/ds-stepper/hooks/use-steps.js +13 -11
  95. package/dist/components/ds-stepper/hooks/use-steps.js.map +1 -1
  96. package/dist/components/ds-stepper/index.d.ts +4 -4
  97. package/dist/components/ds-table/ds-table.d.cts +2 -2
  98. package/dist/components/ds-tabs/ds-tabs.d.cts +5 -5
  99. package/dist/components/ds-tag/ds-tag.d.cts +2 -2
  100. package/dist/components/ds-tag/ds-tag.d.ts +2 -2
  101. package/dist/components/ds-tag-filter/ds-tag-filter.d.cts +2 -2
  102. package/dist/components/ds-tag-filter/ds-tag-filter.d.ts +2 -2
  103. package/dist/components/ds-toggle/ds-toggle.d.cts +2 -2
  104. package/dist/components/ds-toggle/ds-toggle.d.ts +2 -2
  105. package/dist/components/ds-vertical-tabs/ds-vertical-tabs.d.cts +5 -5
  106. package/dist/index.d.cts +5 -5
  107. package/dist/index.d.ts +5 -5
  108. package/dist/index.min.css +1 -1
  109. package/package.json +1 -1
  110. package/src/components/ds-card/ds-card.module.scss +3 -11
  111. package/src/components/ds-panel/ds-panel.module.scss +6 -0
  112. package/src/components/ds-panel/ds-panel.tsx +85 -0
  113. package/src/components/ds-panel/ds-panel.types.ts +1 -0
  114. package/src/components/ds-stepper/components/ds-step-content.tsx +25 -7
  115. package/src/components/ds-stepper/components/ds-step-next-button.tsx +8 -3
  116. package/src/components/ds-stepper/components/ds-step-separator.tsx +22 -0
  117. package/src/components/ds-stepper/components/ds-step.tsx +69 -10
  118. package/src/components/ds-stepper/ds-stepper.module.scss +193 -31
  119. package/src/components/ds-stepper/ds-stepper.tsx +29 -5
  120. package/src/components/ds-stepper/ds-stepper.types.ts +11 -1
  121. package/src/components/ds-stepper/hooks/use-stepper.ts +3 -1
  122. package/src/components/ds-stepper/hooks/use-steps.ts +3 -2
  123. package/src/components/ds-stepper/index.tsx +4 -4
  124. package/src/styles/_mixin.scss +1 -0
  125. package/src/styles/mixins/_disabled.scss +18 -0
@@ -1,5 +1,5 @@
1
1
  import { DsLoaderProps } from "./ds-loader.types.cjs";
2
- import * as react_jsx_runtime42 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime34 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/ds-loader/ds-loader.d.ts
5
5
  /**
@@ -9,7 +9,7 @@ declare const DsLoader: ({
9
9
  variant,
10
10
  className,
11
11
  ...props
12
- }: DsLoaderProps) => react_jsx_runtime42.JSX.Element;
12
+ }: DsLoaderProps) => react_jsx_runtime34.JSX.Element;
13
13
  //#endregion
14
14
  export { DsLoader };
15
15
  //# sourceMappingURL=ds-loader.d.cts.map
@@ -1,5 +1,5 @@
1
1
  import { DsLoaderProps } from "./ds-loader.types.js";
2
- import * as react_jsx_runtime22 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime23 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/ds-loader/ds-loader.d.ts
5
5
  /**
@@ -9,7 +9,7 @@ declare const DsLoader: ({
9
9
  variant,
10
10
  className,
11
11
  ...props
12
- }: DsLoaderProps) => react_jsx_runtime22.JSX.Element;
12
+ }: DsLoaderProps) => react_jsx_runtime23.JSX.Element;
13
13
  //#endregion
14
14
  export { DsLoader };
15
15
  //# sourceMappingURL=ds-loader.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { DsModalProps } from "./ds-modal.types.cjs";
2
- import * as react_jsx_runtime29 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime36 from "react/jsx-runtime";
3
3
  import { CSSProperties, ReactNode } from "react";
4
4
 
5
5
  //#region src/components/ds-modal/ds-modal.d.ts
@@ -21,7 +21,7 @@ declare const DsModal: {
21
21
  closeOnInteractOutside,
22
22
  children,
23
23
  onOpenChange
24
- }: DsModalProps): react_jsx_runtime29.JSX.Element;
24
+ }: DsModalProps): react_jsx_runtime36.JSX.Element;
25
25
  Header: ({
26
26
  style,
27
27
  className,
@@ -30,7 +30,7 @@ declare const DsModal: {
30
30
  style?: CSSProperties;
31
31
  className?: string;
32
32
  children: ReactNode;
33
- }) => react_jsx_runtime29.JSX.Element;
33
+ }) => react_jsx_runtime36.JSX.Element;
34
34
  Title: ({
35
35
  style,
36
36
  className,
@@ -39,14 +39,14 @@ declare const DsModal: {
39
39
  style?: CSSProperties;
40
40
  className?: string;
41
41
  children: ReactNode;
42
- }) => react_jsx_runtime29.JSX.Element;
42
+ }) => react_jsx_runtime36.JSX.Element;
43
43
  CloseTrigger: ({
44
44
  style,
45
45
  className
46
46
  }: {
47
47
  style?: CSSProperties;
48
48
  className?: string;
49
- }) => react_jsx_runtime29.JSX.Element;
49
+ }) => react_jsx_runtime36.JSX.Element;
50
50
  Body: ({
51
51
  style,
52
52
  className,
@@ -55,7 +55,7 @@ declare const DsModal: {
55
55
  style?: CSSProperties;
56
56
  className?: string;
57
57
  children: ReactNode;
58
- }) => react_jsx_runtime29.JSX.Element;
58
+ }) => react_jsx_runtime36.JSX.Element;
59
59
  Footer: ({
60
60
  style,
61
61
  className,
@@ -64,7 +64,7 @@ declare const DsModal: {
64
64
  style?: CSSProperties;
65
65
  className?: string;
66
66
  children: ReactNode;
67
- }) => react_jsx_runtime29.JSX.Element;
67
+ }) => react_jsx_runtime36.JSX.Element;
68
68
  Actions: ({
69
69
  style,
70
70
  className,
@@ -73,7 +73,7 @@ declare const DsModal: {
73
73
  style?: CSSProperties;
74
74
  className?: string;
75
75
  children: ReactNode;
76
- }) => react_jsx_runtime29.JSX.Element;
76
+ }) => react_jsx_runtime36.JSX.Element;
77
77
  };
78
78
  //#endregion
79
79
  export { DsModal };
@@ -1,5 +1,5 @@
1
1
  import { DsModalProps } from "./ds-modal.types.js";
2
- import * as react_jsx_runtime15 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime16 from "react/jsx-runtime";
3
3
  import { CSSProperties, ReactNode } from "react";
4
4
 
5
5
  //#region src/components/ds-modal/ds-modal.d.ts
@@ -21,7 +21,7 @@ declare const DsModal: {
21
21
  closeOnInteractOutside,
22
22
  children,
23
23
  onOpenChange
24
- }: DsModalProps): react_jsx_runtime15.JSX.Element;
24
+ }: DsModalProps): react_jsx_runtime16.JSX.Element;
25
25
  Header: ({
26
26
  style,
27
27
  className,
@@ -30,7 +30,7 @@ declare const DsModal: {
30
30
  style?: CSSProperties;
31
31
  className?: string;
32
32
  children: ReactNode;
33
- }) => react_jsx_runtime15.JSX.Element;
33
+ }) => react_jsx_runtime16.JSX.Element;
34
34
  Title: ({
35
35
  style,
36
36
  className,
@@ -39,14 +39,14 @@ declare const DsModal: {
39
39
  style?: CSSProperties;
40
40
  className?: string;
41
41
  children: ReactNode;
42
- }) => react_jsx_runtime15.JSX.Element;
42
+ }) => react_jsx_runtime16.JSX.Element;
43
43
  CloseTrigger: ({
44
44
  style,
45
45
  className
46
46
  }: {
47
47
  style?: CSSProperties;
48
48
  className?: string;
49
- }) => react_jsx_runtime15.JSX.Element;
49
+ }) => react_jsx_runtime16.JSX.Element;
50
50
  Body: ({
51
51
  style,
52
52
  className,
@@ -55,7 +55,7 @@ declare const DsModal: {
55
55
  style?: CSSProperties;
56
56
  className?: string;
57
57
  children: ReactNode;
58
- }) => react_jsx_runtime15.JSX.Element;
58
+ }) => react_jsx_runtime16.JSX.Element;
59
59
  Footer: ({
60
60
  style,
61
61
  className,
@@ -64,7 +64,7 @@ declare const DsModal: {
64
64
  style?: CSSProperties;
65
65
  className?: string;
66
66
  children: ReactNode;
67
- }) => react_jsx_runtime15.JSX.Element;
67
+ }) => react_jsx_runtime16.JSX.Element;
68
68
  Actions: ({
69
69
  style,
70
70
  className,
@@ -73,7 +73,7 @@ declare const DsModal: {
73
73
  style?: CSSProperties;
74
74
  className?: string;
75
75
  children: ReactNode;
76
- }) => react_jsx_runtime15.JSX.Element;
76
+ }) => react_jsx_runtime16.JSX.Element;
77
77
  };
78
78
  //#endregion
79
79
  export { DsModal };
@@ -6,12 +6,84 @@ let react_compiler_runtime = require("react/compiler-runtime");
6
6
  let classnames = require("classnames");
7
7
  classnames = require_rolldown_runtime.__toESM(classnames);
8
8
  let react_jsx_runtime = require("react/jsx-runtime");
9
+ let react = require("react");
9
10
  let _radix_ui_react_collapsible = require("@radix-ui/react-collapsible");
10
11
  _radix_ui_react_collapsible = require_rolldown_runtime.__toESM(_radix_ui_react_collapsible);
11
12
 
12
13
  //#region src/components/ds-panel/ds-panel.tsx
14
+ function useDraggable(enabled) {
15
+ const $ = (0, react_compiler_runtime.c)(4);
16
+ const rootRef = (0, react.useRef)(null);
17
+ let t0;
18
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
19
+ t0 = {
20
+ x: 0,
21
+ y: 0
22
+ };
23
+ $[0] = t0;
24
+ } else t0 = $[0];
25
+ const positionRef = (0, react.useRef)(t0);
26
+ const dragRef = (0, react.useRef)(null);
27
+ let t1;
28
+ let t2;
29
+ if ($[1] !== enabled) {
30
+ t1 = () => {
31
+ const root = rootRef.current;
32
+ if (!root) return;
33
+ if (!enabled) {
34
+ positionRef.current = {
35
+ x: 0,
36
+ y: 0
37
+ };
38
+ root.style.transform = "";
39
+ return;
40
+ }
41
+ const handleMouseDown = (e) => {
42
+ if (!e.target.closest("[data-drag-handle]")) return;
43
+ e.preventDefault();
44
+ dragRef.current = {
45
+ startX: e.clientX,
46
+ startY: e.clientY,
47
+ originX: positionRef.current.x,
48
+ originY: positionRef.current.y
49
+ };
50
+ root.classList.add(require_ds_panel_module.default.dragging);
51
+ };
52
+ const handleMouseMove = (e_0) => {
53
+ if (!dragRef.current) return;
54
+ positionRef.current = {
55
+ x: dragRef.current.originX + (e_0.clientX - dragRef.current.startX),
56
+ y: dragRef.current.originY + (e_0.clientY - dragRef.current.startY)
57
+ };
58
+ root.style.transform = `translate(${String(positionRef.current.x)}px, ${String(positionRef.current.y)}px)`;
59
+ };
60
+ const handleMouseUp = () => {
61
+ if (!dragRef.current) return;
62
+ dragRef.current = null;
63
+ root.classList.remove(require_ds_panel_module.default.dragging);
64
+ };
65
+ root.addEventListener("mousedown", handleMouseDown);
66
+ document.addEventListener("mousemove", handleMouseMove);
67
+ document.addEventListener("mouseup", handleMouseUp);
68
+ return () => {
69
+ root.removeEventListener("mousedown", handleMouseDown);
70
+ document.removeEventListener("mousemove", handleMouseMove);
71
+ document.removeEventListener("mouseup", handleMouseUp);
72
+ };
73
+ };
74
+ t2 = [enabled];
75
+ $[1] = enabled;
76
+ $[2] = t1;
77
+ $[3] = t2;
78
+ } else {
79
+ t1 = $[2];
80
+ t2 = $[3];
81
+ }
82
+ (0, react.useEffect)(t1, t2);
83
+ return rootRef;
84
+ }
13
85
  function DsPanel(t0) {
14
- const $ = (0, react_compiler_runtime.c)(23);
86
+ const $ = (0, react_compiler_runtime.c)(25);
15
87
  let children;
16
88
  let className;
17
89
  let onOpenChange;
@@ -20,8 +92,9 @@ function DsPanel(t0) {
20
92
  let slotProps;
21
93
  let t1;
22
94
  let t2;
95
+ let t3;
23
96
  if ($[0] !== t0) {
24
- ({open, onOpenChange, children, className, slotProps, variant: t1, disablePadding: t2, ...props} = t0);
97
+ ({open, onOpenChange, children, className, slotProps, variant: t1, draggable: t2, disablePadding: t3, ...props} = t0);
25
98
  $[0] = t0;
26
99
  $[1] = children;
27
100
  $[2] = className;
@@ -31,6 +104,7 @@ function DsPanel(t0) {
31
104
  $[6] = slotProps;
32
105
  $[7] = t1;
33
106
  $[8] = t2;
107
+ $[9] = t3;
34
108
  } else {
35
109
  children = $[1];
36
110
  className = $[2];
@@ -40,49 +114,54 @@ function DsPanel(t0) {
40
114
  slotProps = $[6];
41
115
  t1 = $[7];
42
116
  t2 = $[8];
117
+ t3 = $[9];
43
118
  }
44
119
  const variant = t1 === void 0 ? "docked" : t1;
45
- const disablePadding = t2 === void 0 ? false : t2;
46
- const t3 = variant === "docked";
47
- const t4 = variant === "floating";
48
- let t5;
49
- if ($[9] !== className || $[10] !== disablePadding || $[11] !== t3 || $[12] !== t4) {
50
- t5 = (0, classnames.default)(require_ds_panel_module.default.root, className, {
51
- [require_ds_panel_module.default.variantDocked]: t3,
52
- [require_ds_panel_module.default.variantFloating]: t4,
120
+ const draggable = t2 === void 0 ? false : t2;
121
+ const disablePadding = t3 === void 0 ? false : t3;
122
+ const rootRef = useDraggable(variant === "floating" && draggable);
123
+ const t4 = variant === "docked";
124
+ const t5 = variant === "floating";
125
+ let t6;
126
+ if ($[10] !== className || $[11] !== disablePadding || $[12] !== t4 || $[13] !== t5) {
127
+ t6 = (0, classnames.default)(require_ds_panel_module.default.root, className, {
128
+ [require_ds_panel_module.default.variantDocked]: t4,
129
+ [require_ds_panel_module.default.variantFloating]: t5,
53
130
  [require_ds_panel_module.default.disablePadding]: disablePadding
54
131
  });
55
- $[9] = className;
56
- $[10] = disablePadding;
57
- $[11] = t3;
132
+ $[10] = className;
133
+ $[11] = disablePadding;
58
134
  $[12] = t4;
59
135
  $[13] = t5;
60
- } else t5 = $[13];
61
- const t6 = slotProps?.collapseButton;
62
- let t7;
63
- if ($[14] !== t6) {
64
- t7 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DsPanelCollapseButton, { ...t6 });
65
136
  $[14] = t6;
66
- $[15] = t7;
67
- } else t7 = $[15];
137
+ } else t6 = $[14];
138
+ const t7 = slotProps?.collapseButton;
68
139
  let t8;
69
- if ($[16] !== children || $[17] !== onOpenChange || $[18] !== open || $[19] !== props || $[20] !== t5 || $[21] !== t7) {
70
- t8 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_radix_ui_react_collapsible.Root, {
140
+ if ($[15] !== t7) {
141
+ t8 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DsPanelCollapseButton, { ...t7 });
142
+ $[15] = t7;
143
+ $[16] = t8;
144
+ } else t8 = $[16];
145
+ let t9;
146
+ if ($[17] !== children || $[18] !== onOpenChange || $[19] !== open || $[20] !== props || $[21] !== rootRef || $[22] !== t6 || $[23] !== t8) {
147
+ t9 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_radix_ui_react_collapsible.Root, {
148
+ ref: rootRef,
71
149
  open,
72
150
  onOpenChange,
73
- className: t5,
151
+ className: t6,
74
152
  ...props,
75
- children: [t7, children]
153
+ children: [t8, children]
76
154
  });
77
- $[16] = children;
78
- $[17] = onOpenChange;
79
- $[18] = open;
80
- $[19] = props;
81
- $[20] = t5;
82
- $[21] = t7;
83
- $[22] = t8;
84
- } else t8 = $[22];
85
- return t8;
155
+ $[17] = children;
156
+ $[18] = onOpenChange;
157
+ $[19] = open;
158
+ $[20] = props;
159
+ $[21] = rootRef;
160
+ $[22] = t6;
161
+ $[23] = t8;
162
+ $[24] = t9;
163
+ } else t9 = $[24];
164
+ return t9;
86
165
  }
87
166
  function DsPanelCollapseButton(t0) {
88
167
  const $ = (0, react_compiler_runtime.c)(9);
@@ -1,5 +1,5 @@
1
1
  import { DsPanelProps } from "./ds-panel.types.cjs";
2
- import * as react_jsx_runtime5 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime35 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/ds-panel/ds-panel.d.ts
5
5
  declare function DsPanel({
@@ -9,9 +9,10 @@ declare function DsPanel({
9
9
  className,
10
10
  slotProps,
11
11
  variant,
12
+ draggable,
12
13
  disablePadding,
13
14
  ...props
14
- }: DsPanelProps): react_jsx_runtime5.JSX.Element;
15
+ }: DsPanelProps): react_jsx_runtime35.JSX.Element;
15
16
  //#endregion
16
17
  export { DsPanel };
17
18
  //# sourceMappingURL=ds-panel.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ds-panel.d.cts","names":[],"sources":["../../../src/components/ds-panel/ds-panel.tsx"],"sourcesContent":[],"mappings":";;;;iBAMgB,OAAA;;;;;;;;;GASb,eAAY,kBAAA,CAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"ds-panel.d.cts","names":[],"sources":["../../../src/components/ds-panel/ds-panel.tsx"],"sourcesContent":[],"mappings":";;;;iBAsFgB,OAAA;;;;;;;;;;GAUb,eAAY,mBAAA,CAAA,GAAA,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { DsPanelProps } from "./ds-panel.types.js";
2
- import * as react_jsx_runtime48 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime39 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/ds-panel/ds-panel.d.ts
5
5
  declare function DsPanel({
@@ -9,9 +9,10 @@ declare function DsPanel({
9
9
  className,
10
10
  slotProps,
11
11
  variant,
12
+ draggable,
12
13
  disablePadding,
13
14
  ...props
14
- }: DsPanelProps): react_jsx_runtime48.JSX.Element;
15
+ }: DsPanelProps): react_jsx_runtime39.JSX.Element;
15
16
  //#endregion
16
17
  export { DsPanel };
17
18
  //# sourceMappingURL=ds-panel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ds-panel.d.ts","names":[],"sources":["../../../src/components/ds-panel/ds-panel.tsx"],"sourcesContent":[],"mappings":";;;;iBAMgB,OAAA;;;;;;;;;GASb,eAAY,mBAAA,CAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"ds-panel.d.ts","names":[],"sources":["../../../src/components/ds-panel/ds-panel.tsx"],"sourcesContent":[],"mappings":";;;;iBAsFgB,OAAA;;;;;;;;;;GAUb,eAAY,mBAAA,CAAA,GAAA,CAAA"}
@@ -4,11 +4,83 @@ import ds_panel_module_default from "./ds-panel.module.js";
4
4
  import { c } from "react/compiler-runtime";
5
5
  import classNames from "classnames";
6
6
  import { jsx, jsxs } from "react/jsx-runtime";
7
+ import { useEffect, useRef } from "react";
7
8
  import * as Collapsible from "@radix-ui/react-collapsible";
8
9
 
9
10
  //#region src/components/ds-panel/ds-panel.tsx
11
+ function useDraggable(enabled) {
12
+ const $ = c(4);
13
+ const rootRef = useRef(null);
14
+ let t0;
15
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
16
+ t0 = {
17
+ x: 0,
18
+ y: 0
19
+ };
20
+ $[0] = t0;
21
+ } else t0 = $[0];
22
+ const positionRef = useRef(t0);
23
+ const dragRef = useRef(null);
24
+ let t1;
25
+ let t2;
26
+ if ($[1] !== enabled) {
27
+ t1 = () => {
28
+ const root = rootRef.current;
29
+ if (!root) return;
30
+ if (!enabled) {
31
+ positionRef.current = {
32
+ x: 0,
33
+ y: 0
34
+ };
35
+ root.style.transform = "";
36
+ return;
37
+ }
38
+ const handleMouseDown = (e) => {
39
+ if (!e.target.closest("[data-drag-handle]")) return;
40
+ e.preventDefault();
41
+ dragRef.current = {
42
+ startX: e.clientX,
43
+ startY: e.clientY,
44
+ originX: positionRef.current.x,
45
+ originY: positionRef.current.y
46
+ };
47
+ root.classList.add(ds_panel_module_default.dragging);
48
+ };
49
+ const handleMouseMove = (e_0) => {
50
+ if (!dragRef.current) return;
51
+ positionRef.current = {
52
+ x: dragRef.current.originX + (e_0.clientX - dragRef.current.startX),
53
+ y: dragRef.current.originY + (e_0.clientY - dragRef.current.startY)
54
+ };
55
+ root.style.transform = `translate(${String(positionRef.current.x)}px, ${String(positionRef.current.y)}px)`;
56
+ };
57
+ const handleMouseUp = () => {
58
+ if (!dragRef.current) return;
59
+ dragRef.current = null;
60
+ root.classList.remove(ds_panel_module_default.dragging);
61
+ };
62
+ root.addEventListener("mousedown", handleMouseDown);
63
+ document.addEventListener("mousemove", handleMouseMove);
64
+ document.addEventListener("mouseup", handleMouseUp);
65
+ return () => {
66
+ root.removeEventListener("mousedown", handleMouseDown);
67
+ document.removeEventListener("mousemove", handleMouseMove);
68
+ document.removeEventListener("mouseup", handleMouseUp);
69
+ };
70
+ };
71
+ t2 = [enabled];
72
+ $[1] = enabled;
73
+ $[2] = t1;
74
+ $[3] = t2;
75
+ } else {
76
+ t1 = $[2];
77
+ t2 = $[3];
78
+ }
79
+ useEffect(t1, t2);
80
+ return rootRef;
81
+ }
10
82
  function DsPanel(t0) {
11
- const $ = c(23);
83
+ const $ = c(25);
12
84
  let children;
13
85
  let className;
14
86
  let onOpenChange;
@@ -17,8 +89,9 @@ function DsPanel(t0) {
17
89
  let slotProps;
18
90
  let t1;
19
91
  let t2;
92
+ let t3;
20
93
  if ($[0] !== t0) {
21
- ({open, onOpenChange, children, className, slotProps, variant: t1, disablePadding: t2, ...props} = t0);
94
+ ({open, onOpenChange, children, className, slotProps, variant: t1, draggable: t2, disablePadding: t3, ...props} = t0);
22
95
  $[0] = t0;
23
96
  $[1] = children;
24
97
  $[2] = className;
@@ -28,6 +101,7 @@ function DsPanel(t0) {
28
101
  $[6] = slotProps;
29
102
  $[7] = t1;
30
103
  $[8] = t2;
104
+ $[9] = t3;
31
105
  } else {
32
106
  children = $[1];
33
107
  className = $[2];
@@ -37,49 +111,54 @@ function DsPanel(t0) {
37
111
  slotProps = $[6];
38
112
  t1 = $[7];
39
113
  t2 = $[8];
114
+ t3 = $[9];
40
115
  }
41
116
  const variant = t1 === void 0 ? "docked" : t1;
42
- const disablePadding = t2 === void 0 ? false : t2;
43
- const t3 = variant === "docked";
44
- const t4 = variant === "floating";
45
- let t5;
46
- if ($[9] !== className || $[10] !== disablePadding || $[11] !== t3 || $[12] !== t4) {
47
- t5 = classNames(ds_panel_module_default.root, className, {
48
- [ds_panel_module_default.variantDocked]: t3,
49
- [ds_panel_module_default.variantFloating]: t4,
117
+ const draggable = t2 === void 0 ? false : t2;
118
+ const disablePadding = t3 === void 0 ? false : t3;
119
+ const rootRef = useDraggable(variant === "floating" && draggable);
120
+ const t4 = variant === "docked";
121
+ const t5 = variant === "floating";
122
+ let t6;
123
+ if ($[10] !== className || $[11] !== disablePadding || $[12] !== t4 || $[13] !== t5) {
124
+ t6 = classNames(ds_panel_module_default.root, className, {
125
+ [ds_panel_module_default.variantDocked]: t4,
126
+ [ds_panel_module_default.variantFloating]: t5,
50
127
  [ds_panel_module_default.disablePadding]: disablePadding
51
128
  });
52
- $[9] = className;
53
- $[10] = disablePadding;
54
- $[11] = t3;
129
+ $[10] = className;
130
+ $[11] = disablePadding;
55
131
  $[12] = t4;
56
132
  $[13] = t5;
57
- } else t5 = $[13];
58
- const t6 = slotProps?.collapseButton;
59
- let t7;
60
- if ($[14] !== t6) {
61
- t7 = /* @__PURE__ */ jsx(DsPanelCollapseButton, { ...t6 });
62
133
  $[14] = t6;
63
- $[15] = t7;
64
- } else t7 = $[15];
134
+ } else t6 = $[14];
135
+ const t7 = slotProps?.collapseButton;
65
136
  let t8;
66
- if ($[16] !== children || $[17] !== onOpenChange || $[18] !== open || $[19] !== props || $[20] !== t5 || $[21] !== t7) {
67
- t8 = /* @__PURE__ */ jsxs(Collapsible.Root, {
137
+ if ($[15] !== t7) {
138
+ t8 = /* @__PURE__ */ jsx(DsPanelCollapseButton, { ...t7 });
139
+ $[15] = t7;
140
+ $[16] = t8;
141
+ } else t8 = $[16];
142
+ let t9;
143
+ if ($[17] !== children || $[18] !== onOpenChange || $[19] !== open || $[20] !== props || $[21] !== rootRef || $[22] !== t6 || $[23] !== t8) {
144
+ t9 = /* @__PURE__ */ jsxs(Collapsible.Root, {
145
+ ref: rootRef,
68
146
  open,
69
147
  onOpenChange,
70
- className: t5,
148
+ className: t6,
71
149
  ...props,
72
- children: [t7, children]
150
+ children: [t8, children]
73
151
  });
74
- $[16] = children;
75
- $[17] = onOpenChange;
76
- $[18] = open;
77
- $[19] = props;
78
- $[20] = t5;
79
- $[21] = t7;
80
- $[22] = t8;
81
- } else t8 = $[22];
82
- return t8;
152
+ $[17] = children;
153
+ $[18] = onOpenChange;
154
+ $[19] = open;
155
+ $[20] = props;
156
+ $[21] = rootRef;
157
+ $[22] = t6;
158
+ $[23] = t8;
159
+ $[24] = t9;
160
+ } else t9 = $[24];
161
+ return t9;
83
162
  }
84
163
  function DsPanelCollapseButton(t0) {
85
164
  const $ = c(9);
@@ -1 +1 @@
1
- {"version":3,"file":"ds-panel.js","names":["Collapsible","classnames","styles","DsIcon","DsPanelCollapseButtonProps","DsPanelProps","DsPanel","t0","$","_c","children","className","onOpenChange","open","props","slotProps","t1","t2","variant","disablePadding","undefined","t3","t4","t5","root","variantDocked","variantFloating","t6","collapseButton","t7","t8","DsPanelCollapseButton","collapsed","trigger","triggerCollapsed","Symbol","for"],"sources":["../../../src/components/ds-panel/ds-panel.tsx"],"sourcesContent":["import * as Collapsible from '@radix-ui/react-collapsible';\nimport classnames from 'classnames';\nimport styles from './ds-panel.module.scss';\nimport { DsIcon } from '../ds-icon';\nimport type { DsPanelCollapseButtonProps, DsPanelProps } from './ds-panel.types';\n\nexport function DsPanel({\n\topen,\n\tonOpenChange,\n\tchildren,\n\tclassName,\n\tslotProps,\n\tvariant = 'docked',\n\tdisablePadding = false,\n\t...props\n}: DsPanelProps) {\n\treturn (\n\t\t<Collapsible.Root\n\t\t\topen={open}\n\t\t\tonOpenChange={onOpenChange}\n\t\t\tclassName={classnames(styles.root, className, {\n\t\t\t\t[styles.variantDocked]: variant === 'docked',\n\t\t\t\t[styles.variantFloating]: variant === 'floating',\n\t\t\t\t[styles.disablePadding]: disablePadding,\n\t\t\t})}\n\t\t\t{...props}\n\t\t>\n\t\t\t<DsPanelCollapseButton {...slotProps?.collapseButton} />\n\t\t\t{children}\n\t\t</Collapsible.Root>\n\t);\n}\n\nfunction DsPanelCollapseButton({ collapsed, ...props }: DsPanelCollapseButtonProps) {\n\treturn (\n\t\t<Collapsible.Trigger\n\t\t\tclassName={classnames(styles.trigger, {\n\t\t\t\t[styles.triggerCollapsed]: collapsed,\n\t\t\t})}\n\t\t\taria-label=\"Toggle panel\"\n\t\t\t{...props}\n\t\t>\n\t\t\t<DsIcon icon=\"arrow_circle_left\" variant=\"outlined\" />\n\t\t</Collapsible.Trigger>\n\t);\n}\n"],"mappings":";;;;;;;;;AAMA,SAAOM,QAAAC,IAAA;CAAA,MA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AAA;GACY,WAAAL;GAGA,cAAA;GAAc,GACrBF;aAEJG;IACqB;AAAAT,IAAA,KAAAM;AAAAN,IAAA,KAAAQ;AAAAR,IAAA,KAAAa;OAAAA,MAAAb,EAAA;AAAA,QARtBa"}
1
+ {"version":3,"file":"ds-panel.js","names":["useEffect","useRef","Collapsible","classnames","styles","DsIcon","DsPanelCollapseButtonProps","DsPanelProps","useDraggable","enabled","$","_c","rootRef","t0","Symbol","for","x","y","positionRef","dragRef","t1","t2","root","current","style","transform","handleMouseDown","e","target","HTMLElement","closest","preventDefault","startX","clientX","startY","clientY","originX","originY","classList","add","dragging","handleMouseMove","e_0","String","handleMouseUp","remove","addEventListener","document","removeEventListener","DsPanel","children","className","onOpenChange","open","props","slotProps","t3","variant","draggable","disablePadding","undefined","isDraggable","t4","t5","t6","variantDocked","variantFloating","t7","collapseButton","t8","t9","DsPanelCollapseButton","collapsed","trigger","triggerCollapsed"],"sources":["../../../src/components/ds-panel/ds-panel.tsx"],"sourcesContent":["import { useEffect, useRef } from 'react';\nimport * as Collapsible from '@radix-ui/react-collapsible';\nimport classnames from 'classnames';\nimport styles from './ds-panel.module.scss';\nimport { DsIcon } from '../ds-icon';\nimport type { DsPanelCollapseButtonProps, DsPanelProps } from './ds-panel.types';\n\nfunction useDraggable(enabled: boolean) {\n\tconst rootRef = useRef<HTMLDivElement>(null);\n\tconst positionRef = useRef({ x: 0, y: 0 });\n\tconst dragRef = useRef<{\n\t\tstartX: number;\n\t\tstartY: number;\n\t\toriginX: number;\n\t\toriginY: number;\n\t} | null>(null);\n\n\tuseEffect(() => {\n\t\tconst root = rootRef.current;\n\n\t\tif (!root) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!enabled) {\n\t\t\tpositionRef.current = { x: 0, y: 0 };\n\t\t\troot.style.transform = '';\n\n\t\t\treturn;\n\t\t}\n\n\t\tconst handleMouseDown = (e: MouseEvent) => {\n\t\t\tconst target = e.target as HTMLElement;\n\n\t\t\tif (!target.closest('[data-drag-handle]')) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\te.preventDefault();\n\n\t\t\tdragRef.current = {\n\t\t\t\tstartX: e.clientX,\n\t\t\t\tstartY: e.clientY,\n\t\t\t\toriginX: positionRef.current.x,\n\t\t\t\toriginY: positionRef.current.y,\n\t\t\t};\n\n\t\t\troot.classList.add(styles.dragging);\n\t\t};\n\n\t\tconst handleMouseMove = (e: MouseEvent) => {\n\t\t\tif (!dragRef.current) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tpositionRef.current = {\n\t\t\t\tx: dragRef.current.originX + (e.clientX - dragRef.current.startX),\n\t\t\t\ty: dragRef.current.originY + (e.clientY - dragRef.current.startY),\n\t\t\t};\n\n\t\t\troot.style.transform = `translate(${String(positionRef.current.x)}px, ${String(positionRef.current.y)}px)`;\n\t\t};\n\n\t\tconst handleMouseUp = () => {\n\t\t\tif (!dragRef.current) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tdragRef.current = null;\n\t\t\troot.classList.remove(styles.dragging);\n\t\t};\n\n\t\troot.addEventListener('mousedown', handleMouseDown);\n\t\tdocument.addEventListener('mousemove', handleMouseMove);\n\t\tdocument.addEventListener('mouseup', handleMouseUp);\n\n\t\treturn () => {\n\t\t\troot.removeEventListener('mousedown', handleMouseDown);\n\t\t\tdocument.removeEventListener('mousemove', handleMouseMove);\n\t\t\tdocument.removeEventListener('mouseup', handleMouseUp);\n\t\t};\n\t}, [enabled]);\n\n\treturn rootRef;\n}\n\nexport function DsPanel({\n\topen,\n\tonOpenChange,\n\tchildren,\n\tclassName,\n\tslotProps,\n\tvariant = 'docked',\n\tdraggable = false,\n\tdisablePadding = false,\n\t...props\n}: DsPanelProps) {\n\tconst isDraggable = variant === 'floating' && draggable;\n\tconst rootRef = useDraggable(isDraggable);\n\n\treturn (\n\t\t<Collapsible.Root\n\t\t\tref={rootRef}\n\t\t\topen={open}\n\t\t\tonOpenChange={onOpenChange}\n\t\t\tclassName={classnames(styles.root, className, {\n\t\t\t\t[styles.variantDocked]: variant === 'docked',\n\t\t\t\t[styles.variantFloating]: variant === 'floating',\n\t\t\t\t[styles.disablePadding]: disablePadding,\n\t\t\t})}\n\t\t\t{...props}\n\t\t>\n\t\t\t<DsPanelCollapseButton {...slotProps?.collapseButton} />\n\t\t\t{children}\n\t\t</Collapsible.Root>\n\t);\n}\n\nfunction DsPanelCollapseButton({ collapsed, ...props }: DsPanelCollapseButtonProps) {\n\treturn (\n\t\t<Collapsible.Trigger\n\t\t\tclassName={classnames(styles.trigger, {\n\t\t\t\t[styles.triggerCollapsed]: collapsed,\n\t\t\t})}\n\t\t\taria-label=\"Toggle panel\"\n\t\t\t{...props}\n\t\t>\n\t\t\t<DsIcon icon=\"arrow_circle_left\" variant=\"outlined\" />\n\t\t</Collapsible.Trigger>\n\t);\n}\n"],"mappings":";;;;;;;;;;AAOA,SAAAQ,aAAAC,SAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CACC,MAAAC,UAAgBX,OAAuB,KAAK;CAAC,IAAAY;AAAA,KAAAH,EAAA,OAAAI,OAAAC,IAAA,4BAAA,EAAA;AAClBF,OAAA;GAAAG,GAAK;GAACC,GAAK;GAAG;AAAAP,IAAA,KAAAG;OAAAA,MAAAH,EAAA;CAAzC,MAAAQ,cAAoBjB,OAAOY,GAAe;CAC1C,MAAAM,UAAgBlB,OAKN,KAAK;CAAC,IAAAmB;CAAA,IAAAC;AAAA,KAAAX,EAAA,OAAAD,SAAA;AAENW,aAAA;GACT,MAAAE,OAAaV,QAAOW;AAEpB,OAAI,CAACD,KAAI;AAIT,OAAI,CAACb,SAAO;AACXS,gBAAWK,UAAW;KAAAP,GAAK;KAACC,GAAK;KAAd;AACnBK,SAAIE,MAAMC,YAAa;AAAH;;GAKrB,MAAAC,mBAAwBC,MAAA;AAGvB,QAAI,CAFWA,EAACC,OAELE,QAAS,qBAAqB,CAAA;AAIzCH,MAACI,gBAAiB;AAElBZ,YAAOI,UAAW;KAAAS,QACTL,EAAC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;GAA4B,SAAA;IAAa;AAAAX,IAAA,KAAAW;OAAAA,MAAAX,EAAA;CAAA,IAAA8C;AAAA,KAAA9C,EAAA,OAAA4C,SAAA5C,EAAA,OAAAU,IAAA;AAPvDoC,OAAA,oBAAA,YAAA;GACY,WAAApC;GAGA,cAAA;GAAc,GACrBkC;aAEJjC;IACqB;AAAAX,IAAA,KAAA4C;AAAA5C,IAAA,KAAAU;AAAAV,IAAA,KAAA8C;OAAAA,MAAA9C,EAAA;AAAA,QARtB8C"}
@@ -1,12 +1,13 @@
1
1
 
2
2
  //#region src/components/ds-panel/ds-panel.module.scss
3
3
  var ds_panel_module_default = {
4
- "root": "_root_17q29_1",
5
- "variantFloating": "_variantFloating_17q29_1",
6
- "disablePadding": "_disablePadding_17q29_1",
7
- "trigger": "_trigger_17q29_1",
8
- "triggerCollapsed": "_triggerCollapsed_17q29_1",
9
- "variantDocked": "_variantDocked_17q29_1"
4
+ "root": "_root_1g6rb_1",
5
+ "variantFloating": "_variantFloating_1g6rb_1",
6
+ "dragging": "_dragging_1g6rb_1",
7
+ "disablePadding": "_disablePadding_1g6rb_1",
8
+ "trigger": "_trigger_1g6rb_1",
9
+ "triggerCollapsed": "_triggerCollapsed_1g6rb_1",
10
+ "variantDocked": "_variantDocked_1g6rb_1"
10
11
  };
11
12
 
12
13
  //#endregion