@drivenets/design-system 0.0.3 → 0.0.5
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 +13 -0
- package/README.md +51 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.cjs +157 -52
- package/dist/components/ds-alert-banner/ds-alert-banner.d.cts +5 -5
- package/dist/components/ds-alert-banner/ds-alert-banner.d.cts.map +1 -1
- package/dist/components/ds-alert-banner/ds-alert-banner.js +157 -52
- package/dist/components/ds-alert-banner/ds-alert-banner.js.map +1 -1
- package/dist/components/ds-alert-banner/ds-alert-banner.types.d.cts.map +1 -1
- package/dist/components/ds-alert-banner/ds-alert-banner.types.js.map +1 -1
- package/dist/components/ds-breadcrumb/ds-breadcrumb.cjs +59 -16
- package/dist/components/ds-breadcrumb/ds-breadcrumb.js +59 -16
- package/dist/components/ds-breadcrumb/ds-breadcrumb.js.map +1 -1
- package/dist/components/ds-button/ds-button.cjs +18 -2
- package/dist/components/ds-button/ds-button.d.cts +2 -2
- package/dist/components/ds-button/ds-button.d.cts.map +1 -1
- package/dist/components/ds-button/ds-button.d.ts +2 -2
- package/dist/components/ds-button/ds-button.js +18 -2
- package/dist/components/ds-button/ds-button.js.map +1 -1
- package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.cjs +79 -10
- package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.js +79 -10
- package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.js.map +1 -1
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.cjs +78 -10
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.js +78 -10
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.js.map +1 -1
- package/dist/components/ds-checkbox/ds-checkbox.cjs +89 -18
- package/dist/components/ds-checkbox/ds-checkbox.js +89 -18
- package/dist/components/ds-checkbox/ds-checkbox.js.map +1 -1
- package/dist/components/ds-chip/ds-chip.cjs +100 -30
- package/dist/components/ds-chip/ds-chip.js +100 -30
- package/dist/components/ds-chip/ds-chip.js.map +1 -1
- package/dist/components/ds-chip-group/ds-chip-group.cjs +6 -6
- package/dist/components/ds-chip-group/ds-chip-group.js +6 -6
- package/dist/components/ds-chip-group/ds-chip-group.js.map +1 -1
- package/dist/components/ds-chip-group/hooks/use-chip-row-calculation.js.map +1 -1
- package/dist/components/ds-confirmation/ds-confirmation.cjs +210 -56
- package/dist/components/ds-confirmation/ds-confirmation.d.cts +8 -8
- package/dist/components/ds-confirmation/ds-confirmation.d.ts +8 -8
- package/dist/components/ds-confirmation/ds-confirmation.js +210 -56
- package/dist/components/ds-confirmation/ds-confirmation.js.map +1 -1
- package/dist/components/ds-dialog/ds-dialog.js.map +1 -1
- package/dist/components/ds-drawer/ds-drawer.cjs +261 -61
- package/dist/components/ds-drawer/ds-drawer.d.cts +9 -9
- package/dist/components/ds-drawer/ds-drawer.d.ts +9 -9
- package/dist/components/ds-drawer/ds-drawer.js +261 -61
- package/dist/components/ds-drawer/ds-drawer.js.map +1 -1
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.cjs +481 -135
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.js +481 -135
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.js.map +1 -1
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.cjs +146 -56
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.d.cts +2 -2
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.d.ts +2 -2
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.js +146 -56
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.js.map +1 -1
- package/dist/components/ds-file-upload/components/file-upload/file-upload.cjs +190 -69
- package/dist/components/ds-file-upload/components/file-upload/file-upload.js +190 -69
- package/dist/components/ds-file-upload/components/file-upload/file-upload.js.map +1 -1
- package/dist/components/ds-file-upload/components/file-upload-item/file-upload-item.cjs +273 -132
- package/dist/components/ds-file-upload/components/file-upload-item/file-upload-item.js +273 -132
- package/dist/components/ds-file-upload/components/file-upload-item/file-upload-item.js.map +1 -1
- package/dist/components/ds-file-upload/ds-file-upload.cjs +96 -16
- package/dist/components/ds-file-upload/ds-file-upload.js +96 -16
- package/dist/components/ds-file-upload/ds-file-upload.js.map +1 -1
- package/dist/components/ds-file-upload/errors/file-upload-errors.js.map +1 -1
- package/dist/components/ds-file-upload/hooks/use-file-upload.cjs +93 -93
- package/dist/components/ds-file-upload/hooks/use-file-upload.js +93 -93
- package/dist/components/ds-file-upload/hooks/use-file-upload.js.map +1 -1
- package/dist/components/ds-file-upload/types/accept-types.js.map +1 -1
- package/dist/components/ds-file-upload/utils/accept-utils.js.map +1 -1
- package/dist/components/ds-file-upload/utils/constants.js.map +1 -1
- package/dist/components/ds-file-upload/utils/file-factory.js.map +1 -1
- package/dist/components/ds-file-upload/utils/format-file-size.js.map +1 -1
- package/dist/components/ds-file-upload/utils/generate-helper-text.js.map +1 -1
- package/dist/components/ds-file-upload/utils/get-error-message.js.map +1 -1
- package/dist/components/ds-file-upload/utils/is-file-equal.js.map +1 -1
- package/dist/components/ds-form-control/ds-form-control.cjs +119 -34
- package/dist/components/ds-form-control/ds-form-control.d.cts +7 -7
- package/dist/components/ds-form-control/ds-form-control.d.ts +7 -7
- package/dist/components/ds-form-control/ds-form-control.d.ts.map +1 -1
- package/dist/components/ds-form-control/ds-form-control.js +119 -34
- package/dist/components/ds-form-control/ds-form-control.js.map +1 -1
- package/dist/components/ds-form-control/ds-form-control.types.js.map +1 -1
- package/dist/components/ds-grid/ds-grid.js.map +1 -1
- package/dist/components/ds-icon/ds-icon.cjs +84 -13
- package/dist/components/ds-icon/ds-icon.js +84 -13
- package/dist/components/ds-icon/ds-icon.js.map +1 -1
- package/dist/components/ds-icon/ds-icon.types.d.cts.map +1 -1
- package/dist/components/ds-icon/ds-icon.types.js.map +1 -1
- package/dist/components/ds-modal/ds-modal.cjs +222 -55
- package/dist/components/ds-modal/ds-modal.d.cts +8 -8
- package/dist/components/ds-modal/ds-modal.d.ts +8 -8
- package/dist/components/ds-modal/ds-modal.d.ts.map +1 -1
- package/dist/components/ds-modal/ds-modal.js +222 -55
- package/dist/components/ds-modal/ds-modal.js.map +1 -1
- package/dist/components/ds-number-input/ds-number-input.cjs +136 -49
- package/dist/components/ds-number-input/ds-number-input.js +136 -49
- package/dist/components/ds-number-input/ds-number-input.js.map +1 -1
- package/dist/components/ds-panel/ds-panel.cjs +111 -19
- package/dist/components/ds-panel/ds-panel.d.cts +2 -2
- package/dist/components/ds-panel/ds-panel.d.cts.map +1 -1
- package/dist/components/ds-panel/ds-panel.d.ts +2 -2
- package/dist/components/ds-panel/ds-panel.js +111 -19
- package/dist/components/ds-panel/ds-panel.js.map +1 -1
- package/dist/components/ds-password-input/ds-password-input.cjs +108 -41
- package/dist/components/ds-password-input/ds-password-input.js +108 -41
- package/dist/components/ds-password-input/ds-password-input.js.map +1 -1
- package/dist/components/ds-popover/ds-popover.cjs +50 -12
- package/dist/components/ds-popover/ds-popover.js +50 -12
- package/dist/components/ds-popover/ds-popover.js.map +1 -1
- package/dist/components/ds-radio-group/ds-radio-group.cjs +209 -53
- package/dist/components/ds-radio-group/ds-radio-group.js +209 -53
- package/dist/components/ds-radio-group/ds-radio-group.js.map +1 -1
- package/dist/components/ds-segment-group/ds-segment-group.cjs +215 -0
- package/dist/components/ds-segment-group/ds-segment-group.d.cts +26 -0
- package/dist/components/ds-segment-group/ds-segment-group.d.cts.map +1 -0
- package/dist/components/ds-segment-group/ds-segment-group.d.ts +26 -0
- package/dist/components/ds-segment-group/ds-segment-group.d.ts.map +1 -0
- package/dist/components/ds-segment-group/ds-segment-group.js +214 -0
- package/dist/components/ds-segment-group/ds-segment-group.js.map +1 -0
- package/dist/components/ds-segment-group/ds-segment-group.module.cjs +12 -0
- package/dist/components/ds-segment-group/ds-segment-group.module.js +12 -0
- package/dist/components/ds-segment-group/ds-segment-group.module.js.map +1 -0
- package/dist/components/ds-segment-group/ds-segment-group.types.cjs +2 -0
- package/dist/components/ds-segment-group/ds-segment-group.types.d.cts +52 -0
- package/dist/components/ds-segment-group/ds-segment-group.types.d.cts.map +1 -0
- package/dist/components/ds-segment-group/ds-segment-group.types.d.ts +52 -0
- package/dist/components/ds-segment-group/ds-segment-group.types.d.ts.map +1 -0
- package/dist/components/ds-segment-group/ds-segment-group.types.js +2 -0
- package/dist/components/ds-segment-group/index.cjs +2 -0
- package/dist/components/ds-segment-group/index.d.ts +2 -0
- package/dist/components/ds-segment-group/index.js +2 -0
- package/dist/components/ds-select/ds-select.cjs +198 -89
- package/dist/components/ds-select/ds-select.d.cts +2 -2
- package/dist/components/ds-select/ds-select.d.cts.map +1 -1
- package/dist/components/ds-select/ds-select.d.ts +2 -2
- package/dist/components/ds-select/ds-select.js +198 -89
- package/dist/components/ds-select/ds-select.js.map +1 -1
- package/dist/components/ds-select/select-items-chips.cjs +73 -22
- package/dist/components/ds-select/select-items-chips.js +73 -22
- package/dist/components/ds-select/select-items-chips.js.map +1 -1
- package/dist/components/ds-smart-tabs/ds-smart-tabs.cjs +208 -46
- package/dist/components/ds-smart-tabs/ds-smart-tabs.d.cts +2 -2
- package/dist/components/ds-smart-tabs/ds-smart-tabs.d.cts.map +1 -1
- package/dist/components/ds-smart-tabs/ds-smart-tabs.d.ts +2 -2
- package/dist/components/ds-smart-tabs/ds-smart-tabs.d.ts.map +1 -1
- package/dist/components/ds-smart-tabs/ds-smart-tabs.js +208 -46
- package/dist/components/ds-smart-tabs/ds-smart-tabs.js.map +1 -1
- package/dist/components/ds-smart-tabs/ds-smart-tabs.types.js.map +1 -1
- package/dist/components/ds-spinner/ds-spinner.cjs +90 -20
- package/dist/components/ds-spinner/ds-spinner.js +90 -20
- package/dist/components/ds-spinner/ds-spinner.js.map +1 -1
- package/dist/components/ds-spinner/ds-spinner.types.js.map +1 -1
- package/dist/components/ds-status-badge/ds-status-badge.cjs +54 -11
- package/dist/components/ds-status-badge/ds-status-badge.js +54 -11
- package/dist/components/ds-status-badge/ds-status-badge.js.map +1 -1
- package/dist/components/ds-stepper/components/ds-step-content.cjs +59 -13
- package/dist/components/ds-stepper/components/ds-step-content.d.cts +2 -2
- package/dist/components/ds-stepper/components/ds-step-content.js +59 -13
- package/dist/components/ds-stepper/components/ds-step-content.js.map +1 -1
- package/dist/components/ds-stepper/components/ds-step-description.cjs +14 -5
- package/dist/components/ds-stepper/components/ds-step-description.js +14 -5
- package/dist/components/ds-stepper/components/ds-step-description.js.map +1 -1
- package/dist/components/ds-stepper/components/ds-step-label.cjs +14 -5
- package/dist/components/ds-stepper/components/ds-step-label.js +14 -5
- package/dist/components/ds-stepper/components/ds-step-label.js.map +1 -1
- package/dist/components/ds-stepper/components/ds-step-next-button.cjs +23 -6
- package/dist/components/ds-stepper/components/ds-step-next-button.d.cts +2 -2
- package/dist/components/ds-stepper/components/ds-step-next-button.js +23 -6
- package/dist/components/ds-stepper/components/ds-step-next-button.js.map +1 -1
- package/dist/components/ds-stepper/components/ds-step.cjs +106 -25
- package/dist/components/ds-stepper/components/ds-step.d.cts +2 -2
- package/dist/components/ds-stepper/components/ds-step.js +106 -25
- package/dist/components/ds-stepper/components/ds-step.js.map +1 -1
- package/dist/components/ds-stepper/ds-stepper.cjs +62 -15
- package/dist/components/ds-stepper/ds-stepper.d.cts +2 -2
- package/dist/components/ds-stepper/ds-stepper.d.cts.map +1 -1
- package/dist/components/ds-stepper/ds-stepper.js +62 -15
- package/dist/components/ds-stepper/ds-stepper.js.map +1 -1
- package/dist/components/ds-stepper/hooks/use-stepper.js.map +1 -1
- package/dist/components/ds-stepper/hooks/use-steps.cjs +29 -9
- package/dist/components/ds-stepper/hooks/use-steps.js +29 -9
- package/dist/components/ds-stepper/hooks/use-steps.js.map +1 -1
- package/dist/components/ds-system-status/ds-system-status.cjs +37 -7
- package/dist/components/ds-system-status/ds-system-status.js +37 -7
- package/dist/components/ds-system-status/ds-system-status.js.map +1 -1
- package/dist/components/ds-system-status/ds-system-status.types.js.map +1 -1
- package/dist/components/ds-table/components/core-table/core-table.cjs +281 -48
- package/dist/components/ds-table/components/core-table/core-table.js +281 -48
- package/dist/components/ds-table/components/core-table/core-table.js.map +1 -1
- package/dist/components/ds-table/components/ds-table-bulk-actions/ds-table-bulk-actions.cjs +134 -50
- package/dist/components/ds-table/components/ds-table-bulk-actions/ds-table-bulk-actions.js +134 -50
- package/dist/components/ds-table/components/ds-table-bulk-actions/ds-table-bulk-actions.js.map +1 -1
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.cjs +140 -43
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.js +140 -43
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.js.map +1 -1
- package/dist/components/ds-table/components/ds-table-header/ds-table-header.cjs +37 -6
- package/dist/components/ds-table/components/ds-table-header/ds-table-header.js +37 -6
- package/dist/components/ds-table/components/ds-table-header/ds-table-header.js.map +1 -1
- package/dist/components/ds-table/components/ds-table-row/ds-table-row.cjs +272 -100
- package/dist/components/ds-table/components/ds-table-row/ds-table-row.js +272 -100
- package/dist/components/ds-table/components/ds-table-row/ds-table-row.js.map +1 -1
- package/dist/components/ds-table/context/ds-table-context.js.map +1 -1
- package/dist/components/ds-table/ds-table.cjs +15 -15
- package/dist/components/ds-table/ds-table.d.cts +2 -2
- package/dist/components/ds-table/ds-table.js +15 -15
- package/dist/components/ds-table/ds-table.js.map +1 -1
- package/dist/components/ds-table/hooks/use-drag-and-drop.cjs +126 -38
- package/dist/components/ds-table/hooks/use-drag-and-drop.js +126 -38
- package/dist/components/ds-table/hooks/use-drag-and-drop.js.map +1 -1
- package/dist/components/ds-table/utils/column-styling.js.map +1 -1
- package/dist/components/ds-table/utils/create-columns-grid-template.js.map +1 -1
- package/dist/components/ds-table/utils/merge-refs.js.map +1 -1
- package/dist/components/ds-text-input/ds-text-input.cjs +128 -43
- package/dist/components/ds-text-input/ds-text-input.js +128 -43
- package/dist/components/ds-text-input/ds-text-input.js.map +1 -1
- package/dist/components/ds-text-input/ds-text-input.types.js.map +1 -1
- package/dist/components/ds-textarea/ds-textarea.cjs +66 -22
- package/dist/components/ds-textarea/ds-textarea.js +66 -22
- package/dist/components/ds-textarea/ds-textarea.js.map +1 -1
- package/dist/components/ds-toast/ds-toast-context.cjs +62 -17
- package/dist/components/ds-toast/ds-toast-context.js +62 -17
- package/dist/components/ds-toast/ds-toast-context.js.map +1 -1
- package/dist/components/ds-toast/ds-toast.cjs +90 -26
- package/dist/components/ds-toast/ds-toast.js +90 -26
- package/dist/components/ds-toast/ds-toast.js.map +1 -1
- package/dist/components/ds-tooltip/ds-tooltip.cjs +51 -13
- package/dist/components/ds-tooltip/ds-tooltip.js +51 -13
- package/dist/components/ds-tooltip/ds-tooltip.js.map +1 -1
- package/dist/components/ds-typography/ds-typography.cjs +51 -7
- package/dist/components/ds-typography/ds-typography.config.js.map +1 -1
- package/dist/components/ds-typography/ds-typography.js +51 -7
- package/dist/components/ds-typography/ds-typography.js.map +1 -1
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.cjs +91 -30
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.d.cts +5 -5
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.d.ts +5 -5
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.js +91 -30
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.js.map +1 -1
- package/dist/index.cjs +3 -0
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +3 -1
- package/dist/index.min.css +1 -1
- package/package.json +8 -2
- package/src/components/ds-segment-group/ds-segment-group.module.scss +99 -0
- package/src/components/ds-segment-group/ds-segment-group.tsx +76 -0
- package/src/components/ds-segment-group/ds-segment-group.types.tsx +64 -0
- package/src/components/ds-segment-group/index.tsx +2 -0
- package/src/index.ts +1 -0
|
@@ -4,6 +4,7 @@ require('../ds-icon/index.cjs');
|
|
|
4
4
|
const require_ds_typography = require('../ds-typography/ds-typography.cjs');
|
|
5
5
|
require('../ds-typography/index.cjs');
|
|
6
6
|
const require_ds_drawer_module = require('./ds-drawer.module.cjs');
|
|
7
|
+
let react_compiler_runtime = require("react/compiler-runtime");
|
|
7
8
|
let classnames = require("classnames");
|
|
8
9
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
9
10
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -17,73 +18,272 @@ let __ark_ui_react_dialog = require("@ark-ui/react/dialog");
|
|
|
17
18
|
* Supports grid-based sizing, flexible positioning, and compound components.
|
|
18
19
|
* Use columns prop to control drawer width (1-12 grid columns).
|
|
19
20
|
*/
|
|
20
|
-
const DsDrawer = (
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
const DsDrawer = (t0) => {
|
|
22
|
+
const $ = (0, react_compiler_runtime.c)(25);
|
|
23
|
+
const { open, onOpenChange, columns: t1, position: t2, backdrop: t3, closeOnEscape: t4, closeOnInteractOutside: t5, portal: t6, style, className, children } = t0;
|
|
24
|
+
const columns = t1 === void 0 ? 4 : t1;
|
|
25
|
+
const position = t2 === void 0 ? "end" : t2;
|
|
26
|
+
const backdrop = t3 === void 0 ? false : t3;
|
|
27
|
+
const closeOnEscape = t4 === void 0 ? true : t4;
|
|
28
|
+
const closeOnInteractOutside = t5 === void 0 ? false : t5;
|
|
29
|
+
const portal = t6 === void 0 ? false : t6;
|
|
30
|
+
let t7;
|
|
31
|
+
if ($[0] !== onOpenChange) {
|
|
32
|
+
t7 = (details) => {
|
|
33
|
+
onOpenChange(details.open);
|
|
34
|
+
};
|
|
35
|
+
$[0] = onOpenChange;
|
|
36
|
+
$[1] = t7;
|
|
37
|
+
} else t7 = $[1];
|
|
38
|
+
const handleOpenChange = t7;
|
|
24
39
|
const Wrapper = portal ? __ark_ui_react_portal.Portal : react.Fragment;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
40
|
+
let t8;
|
|
41
|
+
if ($[2] !== backdrop) {
|
|
42
|
+
t8 = backdrop && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ark_ui_react_dialog.Dialog.Backdrop, { className: require_ds_drawer_module.default.backdrop });
|
|
43
|
+
$[2] = backdrop;
|
|
44
|
+
$[3] = t8;
|
|
45
|
+
} else t8 = $[3];
|
|
46
|
+
const t9 = require_ds_drawer_module.default[`cols-${String(columns)}`];
|
|
47
|
+
const t10 = require_ds_drawer_module.default[`position-${position}`];
|
|
48
|
+
let t11;
|
|
49
|
+
if ($[4] !== className || $[5] !== t10 || $[6] !== t9) {
|
|
50
|
+
t11 = (0, classnames.default)(require_ds_drawer_module.default.drawer, t9, t10, className);
|
|
51
|
+
$[4] = className;
|
|
52
|
+
$[5] = t10;
|
|
53
|
+
$[6] = t9;
|
|
54
|
+
$[7] = t11;
|
|
55
|
+
} else t11 = $[7];
|
|
56
|
+
let t12;
|
|
57
|
+
if ($[8] !== children) {
|
|
58
|
+
t12 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
59
|
+
className: require_ds_drawer_module.default.content,
|
|
60
|
+
children
|
|
61
|
+
});
|
|
62
|
+
$[8] = children;
|
|
63
|
+
$[9] = t12;
|
|
64
|
+
} else t12 = $[9];
|
|
65
|
+
let t13;
|
|
66
|
+
if ($[10] !== style || $[11] !== t11 || $[12] !== t12) {
|
|
67
|
+
t13 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ark_ui_react_dialog.Dialog.Positioner, {
|
|
33
68
|
className: require_ds_drawer_module.default.positioner,
|
|
34
69
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ark_ui_react_dialog.Dialog.Content, {
|
|
35
70
|
style,
|
|
36
|
-
className:
|
|
37
|
-
children:
|
|
38
|
-
className: require_ds_drawer_module.default.content,
|
|
39
|
-
children
|
|
40
|
-
})
|
|
71
|
+
className: t11,
|
|
72
|
+
children: t12
|
|
41
73
|
})
|
|
42
|
-
})
|
|
43
|
-
|
|
74
|
+
});
|
|
75
|
+
$[10] = style;
|
|
76
|
+
$[11] = t11;
|
|
77
|
+
$[12] = t12;
|
|
78
|
+
$[13] = t13;
|
|
79
|
+
} else t13 = $[13];
|
|
80
|
+
let t14;
|
|
81
|
+
if ($[14] !== Wrapper || $[15] !== t13 || $[16] !== t8) {
|
|
82
|
+
t14 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Wrapper, { children: [t8, t13] });
|
|
83
|
+
$[14] = Wrapper;
|
|
84
|
+
$[15] = t13;
|
|
85
|
+
$[16] = t8;
|
|
86
|
+
$[17] = t14;
|
|
87
|
+
} else t14 = $[17];
|
|
88
|
+
let t15;
|
|
89
|
+
if ($[18] !== backdrop || $[19] !== closeOnEscape || $[20] !== closeOnInteractOutside || $[21] !== handleOpenChange || $[22] !== open || $[23] !== t14) {
|
|
90
|
+
t15 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ark_ui_react_dialog.Dialog.Root, {
|
|
91
|
+
open,
|
|
92
|
+
onOpenChange: handleOpenChange,
|
|
93
|
+
modal: backdrop,
|
|
94
|
+
closeOnEscape,
|
|
95
|
+
closeOnInteractOutside,
|
|
96
|
+
preventScroll: backdrop,
|
|
97
|
+
children: t14
|
|
98
|
+
});
|
|
99
|
+
$[18] = backdrop;
|
|
100
|
+
$[19] = closeOnEscape;
|
|
101
|
+
$[20] = closeOnInteractOutside;
|
|
102
|
+
$[21] = handleOpenChange;
|
|
103
|
+
$[22] = open;
|
|
104
|
+
$[23] = t14;
|
|
105
|
+
$[24] = t15;
|
|
106
|
+
} else t15 = $[24];
|
|
107
|
+
return t15;
|
|
108
|
+
};
|
|
109
|
+
const Header = (t0) => {
|
|
110
|
+
const $ = (0, react_compiler_runtime.c)(6);
|
|
111
|
+
const { style, className, children } = t0;
|
|
112
|
+
let t1;
|
|
113
|
+
if ($[0] !== className) {
|
|
114
|
+
t1 = (0, classnames.default)(require_ds_drawer_module.default.header, className);
|
|
115
|
+
$[0] = className;
|
|
116
|
+
$[1] = t1;
|
|
117
|
+
} else t1 = $[1];
|
|
118
|
+
let t2;
|
|
119
|
+
if ($[2] !== children || $[3] !== style || $[4] !== t1) {
|
|
120
|
+
t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
121
|
+
style,
|
|
122
|
+
className: t1,
|
|
123
|
+
children
|
|
124
|
+
});
|
|
125
|
+
$[2] = children;
|
|
126
|
+
$[3] = style;
|
|
127
|
+
$[4] = t1;
|
|
128
|
+
$[5] = t2;
|
|
129
|
+
} else t2 = $[5];
|
|
130
|
+
return t2;
|
|
131
|
+
};
|
|
132
|
+
const Title = (t0) => {
|
|
133
|
+
const $ = (0, react_compiler_runtime.c)(8);
|
|
134
|
+
const { style, className, children } = t0;
|
|
135
|
+
let t1;
|
|
136
|
+
if ($[0] !== className) {
|
|
137
|
+
t1 = (0, classnames.default)(require_ds_drawer_module.default.title, className);
|
|
138
|
+
$[0] = className;
|
|
139
|
+
$[1] = t1;
|
|
140
|
+
} else t1 = $[1];
|
|
141
|
+
let t2;
|
|
142
|
+
if ($[2] !== children) {
|
|
143
|
+
t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ds_typography.default, {
|
|
144
|
+
variant: "heading3",
|
|
145
|
+
children
|
|
146
|
+
});
|
|
147
|
+
$[2] = children;
|
|
148
|
+
$[3] = t2;
|
|
149
|
+
} else t2 = $[3];
|
|
150
|
+
let t3;
|
|
151
|
+
if ($[4] !== style || $[5] !== t1 || $[6] !== t2) {
|
|
152
|
+
t3 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ark_ui_react_dialog.Dialog.Title, {
|
|
153
|
+
className: t1,
|
|
154
|
+
style,
|
|
155
|
+
asChild: true,
|
|
156
|
+
children: t2
|
|
157
|
+
});
|
|
158
|
+
$[4] = style;
|
|
159
|
+
$[5] = t1;
|
|
160
|
+
$[6] = t2;
|
|
161
|
+
$[7] = t3;
|
|
162
|
+
} else t3 = $[7];
|
|
163
|
+
return t3;
|
|
164
|
+
};
|
|
165
|
+
const CloseTrigger = (t0) => {
|
|
166
|
+
const $ = (0, react_compiler_runtime.c)(6);
|
|
167
|
+
const { style, className } = t0;
|
|
168
|
+
let t1;
|
|
169
|
+
if ($[0] !== className) {
|
|
170
|
+
t1 = (0, classnames.default)(require_ds_drawer_module.default.closeTrigger, className);
|
|
171
|
+
$[0] = className;
|
|
172
|
+
$[1] = t1;
|
|
173
|
+
} else t1 = $[1];
|
|
174
|
+
let t2;
|
|
175
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
176
|
+
t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ds_icon.default, {
|
|
177
|
+
icon: "close",
|
|
178
|
+
size: "small"
|
|
179
|
+
});
|
|
180
|
+
$[2] = t2;
|
|
181
|
+
} else t2 = $[2];
|
|
182
|
+
let t3;
|
|
183
|
+
if ($[3] !== style || $[4] !== t1) {
|
|
184
|
+
t3 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ark_ui_react_dialog.Dialog.CloseTrigger, {
|
|
185
|
+
style,
|
|
186
|
+
className: t1,
|
|
187
|
+
children: t2
|
|
188
|
+
});
|
|
189
|
+
$[3] = style;
|
|
190
|
+
$[4] = t1;
|
|
191
|
+
$[5] = t3;
|
|
192
|
+
} else t3 = $[5];
|
|
193
|
+
return t3;
|
|
194
|
+
};
|
|
195
|
+
const Toolbar = (t0) => {
|
|
196
|
+
const $ = (0, react_compiler_runtime.c)(6);
|
|
197
|
+
const { style, className, children } = t0;
|
|
198
|
+
let t1;
|
|
199
|
+
if ($[0] !== className) {
|
|
200
|
+
t1 = (0, classnames.default)(require_ds_drawer_module.default.toolbar, className);
|
|
201
|
+
$[0] = className;
|
|
202
|
+
$[1] = t1;
|
|
203
|
+
} else t1 = $[1];
|
|
204
|
+
let t2;
|
|
205
|
+
if ($[2] !== children || $[3] !== style || $[4] !== t1) {
|
|
206
|
+
t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
207
|
+
style,
|
|
208
|
+
className: t1,
|
|
209
|
+
children
|
|
210
|
+
});
|
|
211
|
+
$[2] = children;
|
|
212
|
+
$[3] = style;
|
|
213
|
+
$[4] = t1;
|
|
214
|
+
$[5] = t2;
|
|
215
|
+
} else t2 = $[5];
|
|
216
|
+
return t2;
|
|
217
|
+
};
|
|
218
|
+
const Body = (t0) => {
|
|
219
|
+
const $ = (0, react_compiler_runtime.c)(6);
|
|
220
|
+
const { style, className, children } = t0;
|
|
221
|
+
let t1;
|
|
222
|
+
if ($[0] !== className) {
|
|
223
|
+
t1 = (0, classnames.default)(require_ds_drawer_module.default.body, className);
|
|
224
|
+
$[0] = className;
|
|
225
|
+
$[1] = t1;
|
|
226
|
+
} else t1 = $[1];
|
|
227
|
+
let t2;
|
|
228
|
+
if ($[2] !== children || $[3] !== style || $[4] !== t1) {
|
|
229
|
+
t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
230
|
+
style,
|
|
231
|
+
className: t1,
|
|
232
|
+
children
|
|
233
|
+
});
|
|
234
|
+
$[2] = children;
|
|
235
|
+
$[3] = style;
|
|
236
|
+
$[4] = t1;
|
|
237
|
+
$[5] = t2;
|
|
238
|
+
} else t2 = $[5];
|
|
239
|
+
return t2;
|
|
240
|
+
};
|
|
241
|
+
const Footer = (t0) => {
|
|
242
|
+
const $ = (0, react_compiler_runtime.c)(6);
|
|
243
|
+
const { style, className, children } = t0;
|
|
244
|
+
let t1;
|
|
245
|
+
if ($[0] !== className) {
|
|
246
|
+
t1 = (0, classnames.default)(require_ds_drawer_module.default.footer, className);
|
|
247
|
+
$[0] = className;
|
|
248
|
+
$[1] = t1;
|
|
249
|
+
} else t1 = $[1];
|
|
250
|
+
let t2;
|
|
251
|
+
if ($[2] !== children || $[3] !== style || $[4] !== t1) {
|
|
252
|
+
t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
253
|
+
style,
|
|
254
|
+
className: t1,
|
|
255
|
+
children
|
|
256
|
+
});
|
|
257
|
+
$[2] = children;
|
|
258
|
+
$[3] = style;
|
|
259
|
+
$[4] = t1;
|
|
260
|
+
$[5] = t2;
|
|
261
|
+
} else t2 = $[5];
|
|
262
|
+
return t2;
|
|
263
|
+
};
|
|
264
|
+
const Actions = (t0) => {
|
|
265
|
+
const $ = (0, react_compiler_runtime.c)(6);
|
|
266
|
+
const { style, className, children } = t0;
|
|
267
|
+
let t1;
|
|
268
|
+
if ($[0] !== className) {
|
|
269
|
+
t1 = (0, classnames.default)(require_ds_drawer_module.default.actions, className);
|
|
270
|
+
$[0] = className;
|
|
271
|
+
$[1] = t1;
|
|
272
|
+
} else t1 = $[1];
|
|
273
|
+
let t2;
|
|
274
|
+
if ($[2] !== children || $[3] !== style || $[4] !== t1) {
|
|
275
|
+
t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
276
|
+
style,
|
|
277
|
+
className: t1,
|
|
278
|
+
children
|
|
279
|
+
});
|
|
280
|
+
$[2] = children;
|
|
281
|
+
$[3] = style;
|
|
282
|
+
$[4] = t1;
|
|
283
|
+
$[5] = t2;
|
|
284
|
+
} else t2 = $[5];
|
|
285
|
+
return t2;
|
|
44
286
|
};
|
|
45
|
-
const Header = ({ style, className, children }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
46
|
-
style,
|
|
47
|
-
className: (0, classnames.default)(require_ds_drawer_module.default.header, className),
|
|
48
|
-
children
|
|
49
|
-
});
|
|
50
|
-
const Title = ({ style, className, children }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ark_ui_react_dialog.Dialog.Title, {
|
|
51
|
-
className: (0, classnames.default)(require_ds_drawer_module.default.title, className),
|
|
52
|
-
style,
|
|
53
|
-
asChild: true,
|
|
54
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ds_typography.default, {
|
|
55
|
-
variant: "heading3",
|
|
56
|
-
children
|
|
57
|
-
})
|
|
58
|
-
});
|
|
59
|
-
const CloseTrigger = ({ style, className }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ark_ui_react_dialog.Dialog.CloseTrigger, {
|
|
60
|
-
style,
|
|
61
|
-
className: (0, classnames.default)(require_ds_drawer_module.default.closeTrigger, className),
|
|
62
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ds_icon.default, {
|
|
63
|
-
icon: "close",
|
|
64
|
-
size: "small"
|
|
65
|
-
})
|
|
66
|
-
});
|
|
67
|
-
const Toolbar = ({ style, className, children }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
68
|
-
style,
|
|
69
|
-
className: (0, classnames.default)(require_ds_drawer_module.default.toolbar, className),
|
|
70
|
-
children
|
|
71
|
-
});
|
|
72
|
-
const Body = ({ style, className, children }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
73
|
-
style,
|
|
74
|
-
className: (0, classnames.default)(require_ds_drawer_module.default.body, className),
|
|
75
|
-
children
|
|
76
|
-
});
|
|
77
|
-
const Footer = ({ style, className, children }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
78
|
-
style,
|
|
79
|
-
className: (0, classnames.default)(require_ds_drawer_module.default.footer, className),
|
|
80
|
-
children
|
|
81
|
-
});
|
|
82
|
-
const Actions = ({ style, className, children }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
83
|
-
style,
|
|
84
|
-
className: (0, classnames.default)(require_ds_drawer_module.default.actions, className),
|
|
85
|
-
children
|
|
86
|
-
});
|
|
87
287
|
DsDrawer.Header = Header;
|
|
88
288
|
DsDrawer.Title = Title;
|
|
89
289
|
DsDrawer.CloseTrigger = CloseTrigger;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DsDrawerProps } from "./ds-drawer.types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime19 from "react/jsx-runtime";
|
|
3
3
|
import { CSSProperties, ReactNode } from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/ds-drawer/ds-drawer.d.ts
|
|
@@ -22,7 +22,7 @@ declare const DsDrawer: {
|
|
|
22
22
|
style,
|
|
23
23
|
className,
|
|
24
24
|
children
|
|
25
|
-
}: DsDrawerProps):
|
|
25
|
+
}: DsDrawerProps): react_jsx_runtime19.JSX.Element;
|
|
26
26
|
Header: ({
|
|
27
27
|
style,
|
|
28
28
|
className,
|
|
@@ -31,7 +31,7 @@ declare const DsDrawer: {
|
|
|
31
31
|
style?: CSSProperties;
|
|
32
32
|
className?: string;
|
|
33
33
|
children: ReactNode;
|
|
34
|
-
}) =>
|
|
34
|
+
}) => react_jsx_runtime19.JSX.Element;
|
|
35
35
|
Title: ({
|
|
36
36
|
style,
|
|
37
37
|
className,
|
|
@@ -40,14 +40,14 @@ declare const DsDrawer: {
|
|
|
40
40
|
style?: CSSProperties;
|
|
41
41
|
className?: string;
|
|
42
42
|
children: ReactNode;
|
|
43
|
-
}) =>
|
|
43
|
+
}) => react_jsx_runtime19.JSX.Element;
|
|
44
44
|
CloseTrigger: ({
|
|
45
45
|
style,
|
|
46
46
|
className
|
|
47
47
|
}: {
|
|
48
48
|
style?: CSSProperties;
|
|
49
49
|
className?: string;
|
|
50
|
-
}) =>
|
|
50
|
+
}) => react_jsx_runtime19.JSX.Element;
|
|
51
51
|
Toolbar: ({
|
|
52
52
|
style,
|
|
53
53
|
className,
|
|
@@ -56,7 +56,7 @@ declare const DsDrawer: {
|
|
|
56
56
|
style?: CSSProperties;
|
|
57
57
|
className?: string;
|
|
58
58
|
children: ReactNode;
|
|
59
|
-
}) =>
|
|
59
|
+
}) => react_jsx_runtime19.JSX.Element;
|
|
60
60
|
Body: ({
|
|
61
61
|
style,
|
|
62
62
|
className,
|
|
@@ -65,7 +65,7 @@ declare const DsDrawer: {
|
|
|
65
65
|
style?: CSSProperties;
|
|
66
66
|
className?: string;
|
|
67
67
|
children: ReactNode;
|
|
68
|
-
}) =>
|
|
68
|
+
}) => react_jsx_runtime19.JSX.Element;
|
|
69
69
|
Footer: ({
|
|
70
70
|
style,
|
|
71
71
|
className,
|
|
@@ -74,7 +74,7 @@ declare const DsDrawer: {
|
|
|
74
74
|
style?: CSSProperties;
|
|
75
75
|
className?: string;
|
|
76
76
|
children: ReactNode;
|
|
77
|
-
}) =>
|
|
77
|
+
}) => react_jsx_runtime19.JSX.Element;
|
|
78
78
|
Actions: ({
|
|
79
79
|
style,
|
|
80
80
|
className,
|
|
@@ -83,7 +83,7 @@ declare const DsDrawer: {
|
|
|
83
83
|
style?: CSSProperties;
|
|
84
84
|
className?: string;
|
|
85
85
|
children: ReactNode;
|
|
86
|
-
}) =>
|
|
86
|
+
}) => react_jsx_runtime19.JSX.Element;
|
|
87
87
|
};
|
|
88
88
|
//#endregion
|
|
89
89
|
export { DsDrawer };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DsDrawerProps } from "./ds-drawer.types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime18 from "react/jsx-runtime";
|
|
3
3
|
import { CSSProperties, ReactNode } from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/ds-drawer/ds-drawer.d.ts
|
|
@@ -22,7 +22,7 @@ declare const DsDrawer: {
|
|
|
22
22
|
style,
|
|
23
23
|
className,
|
|
24
24
|
children
|
|
25
|
-
}: DsDrawerProps):
|
|
25
|
+
}: DsDrawerProps): react_jsx_runtime18.JSX.Element;
|
|
26
26
|
Header: ({
|
|
27
27
|
style,
|
|
28
28
|
className,
|
|
@@ -31,7 +31,7 @@ declare const DsDrawer: {
|
|
|
31
31
|
style?: CSSProperties;
|
|
32
32
|
className?: string;
|
|
33
33
|
children: ReactNode;
|
|
34
|
-
}) =>
|
|
34
|
+
}) => react_jsx_runtime18.JSX.Element;
|
|
35
35
|
Title: ({
|
|
36
36
|
style,
|
|
37
37
|
className,
|
|
@@ -40,14 +40,14 @@ declare const DsDrawer: {
|
|
|
40
40
|
style?: CSSProperties;
|
|
41
41
|
className?: string;
|
|
42
42
|
children: ReactNode;
|
|
43
|
-
}) =>
|
|
43
|
+
}) => react_jsx_runtime18.JSX.Element;
|
|
44
44
|
CloseTrigger: ({
|
|
45
45
|
style,
|
|
46
46
|
className
|
|
47
47
|
}: {
|
|
48
48
|
style?: CSSProperties;
|
|
49
49
|
className?: string;
|
|
50
|
-
}) =>
|
|
50
|
+
}) => react_jsx_runtime18.JSX.Element;
|
|
51
51
|
Toolbar: ({
|
|
52
52
|
style,
|
|
53
53
|
className,
|
|
@@ -56,7 +56,7 @@ declare const DsDrawer: {
|
|
|
56
56
|
style?: CSSProperties;
|
|
57
57
|
className?: string;
|
|
58
58
|
children: ReactNode;
|
|
59
|
-
}) =>
|
|
59
|
+
}) => react_jsx_runtime18.JSX.Element;
|
|
60
60
|
Body: ({
|
|
61
61
|
style,
|
|
62
62
|
className,
|
|
@@ -65,7 +65,7 @@ declare const DsDrawer: {
|
|
|
65
65
|
style?: CSSProperties;
|
|
66
66
|
className?: string;
|
|
67
67
|
children: ReactNode;
|
|
68
|
-
}) =>
|
|
68
|
+
}) => react_jsx_runtime18.JSX.Element;
|
|
69
69
|
Footer: ({
|
|
70
70
|
style,
|
|
71
71
|
className,
|
|
@@ -74,7 +74,7 @@ declare const DsDrawer: {
|
|
|
74
74
|
style?: CSSProperties;
|
|
75
75
|
className?: string;
|
|
76
76
|
children: ReactNode;
|
|
77
|
-
}) =>
|
|
77
|
+
}) => react_jsx_runtime18.JSX.Element;
|
|
78
78
|
Actions: ({
|
|
79
79
|
style,
|
|
80
80
|
className,
|
|
@@ -83,7 +83,7 @@ declare const DsDrawer: {
|
|
|
83
83
|
style?: CSSProperties;
|
|
84
84
|
className?: string;
|
|
85
85
|
children: ReactNode;
|
|
86
|
-
}) =>
|
|
86
|
+
}) => react_jsx_runtime18.JSX.Element;
|
|
87
87
|
};
|
|
88
88
|
//#endregion
|
|
89
89
|
export { DsDrawer };
|