@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
|
@@ -1,31 +1,69 @@
|
|
|
1
1
|
import ds_typography_default from "../ds-typography/ds-typography.js";
|
|
2
2
|
import "../ds-typography/index.js";
|
|
3
3
|
import ds_tooltip_module_default from "./ds-tooltip.module.js";
|
|
4
|
+
import { c } from "react/compiler-runtime";
|
|
4
5
|
import classNames from "classnames";
|
|
5
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
7
|
import { isValidElement } from "react";
|
|
7
8
|
import * as Tooltip from "@radix-ui/react-tooltip";
|
|
8
9
|
|
|
9
10
|
//#region src/components/ds-tooltip/ds-tooltip.tsx
|
|
10
|
-
const DsTooltip = (
|
|
11
|
+
const DsTooltip = (t0) => {
|
|
12
|
+
const $ = c(11);
|
|
13
|
+
const { content, children } = t0;
|
|
11
14
|
if (content === void 0) return children;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
+
let t1;
|
|
16
|
+
if ($[0] !== children) {
|
|
17
|
+
t1 = /* @__PURE__ */ jsx(Tooltip.Trigger, {
|
|
15
18
|
asChild: true,
|
|
16
19
|
children
|
|
17
|
-
})
|
|
18
|
-
|
|
20
|
+
});
|
|
21
|
+
$[0] = children;
|
|
22
|
+
$[1] = t1;
|
|
23
|
+
} else t1 = $[1];
|
|
24
|
+
let t2;
|
|
25
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
26
|
+
t2 = classNames(ds_tooltip_module_default.tooltip);
|
|
27
|
+
$[2] = t2;
|
|
28
|
+
} else t2 = $[2];
|
|
29
|
+
let t3;
|
|
30
|
+
if ($[3] !== content) {
|
|
31
|
+
t3 = isValidElement(content) ? content : /* @__PURE__ */ jsx(ds_typography_default, {
|
|
32
|
+
variant: "body-xs-reg",
|
|
33
|
+
className: ds_tooltip_module_default.content,
|
|
34
|
+
children: content
|
|
35
|
+
});
|
|
36
|
+
$[3] = content;
|
|
37
|
+
$[4] = t3;
|
|
38
|
+
} else t3 = $[4];
|
|
39
|
+
let t4;
|
|
40
|
+
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
41
|
+
t4 = /* @__PURE__ */ jsx(Tooltip.Arrow, { className: ds_tooltip_module_default.arrow });
|
|
42
|
+
$[5] = t4;
|
|
43
|
+
} else t4 = $[5];
|
|
44
|
+
let t5;
|
|
45
|
+
if ($[6] !== t3) {
|
|
46
|
+
t5 = /* @__PURE__ */ jsx(Tooltip.Portal, { children: /* @__PURE__ */ jsxs(Tooltip.Content, {
|
|
47
|
+
className: t2,
|
|
19
48
|
side: "top",
|
|
20
49
|
align: "center",
|
|
21
50
|
sideOffset: 4,
|
|
22
|
-
children: [
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
51
|
+
children: [t3, t4]
|
|
52
|
+
}) });
|
|
53
|
+
$[6] = t3;
|
|
54
|
+
$[7] = t5;
|
|
55
|
+
} else t5 = $[7];
|
|
56
|
+
let t6;
|
|
57
|
+
if ($[8] !== t1 || $[9] !== t5) {
|
|
58
|
+
t6 = /* @__PURE__ */ jsx(Tooltip.Provider, {
|
|
59
|
+
delayDuration: 200,
|
|
60
|
+
children: /* @__PURE__ */ jsxs(Tooltip.Root, { children: [t1, t5] })
|
|
61
|
+
});
|
|
62
|
+
$[8] = t1;
|
|
63
|
+
$[9] = t5;
|
|
64
|
+
$[10] = t6;
|
|
65
|
+
} else t6 = $[10];
|
|
66
|
+
return t6;
|
|
29
67
|
};
|
|
30
68
|
var ds_tooltip_default = DsTooltip;
|
|
31
69
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ds-tooltip.js","names":["
|
|
1
|
+
{"version":3,"file":"ds-tooltip.js","names":["FC","isValidElement","Tooltip","classNames","styles","DsTooltipProps","DsTypography","DsTooltip","t0","$","_c","content","children","undefined","t1","t2","Symbol","for","tooltip","t3","t4","arrow","t5","t6"],"sources":["../../../src/components/ds-tooltip/ds-tooltip.tsx"],"sourcesContent":["import { type FC, isValidElement } from 'react';\nimport * as Tooltip from '@radix-ui/react-tooltip';\nimport classNames from 'classnames';\nimport styles from './ds-tooltip.module.scss';\nimport type { DsTooltipProps } from './ds-tooltip.types';\nimport { DsTypography } from '../ds-typography';\n\nconst DsTooltip: FC<DsTooltipProps> = ({ content, children }) => {\n\tif (content === undefined) {\n\t\treturn children;\n\t}\n\treturn (\n\t\t<Tooltip.Provider delayDuration={200}>\n\t\t\t<Tooltip.Root>\n\t\t\t\t<Tooltip.Trigger asChild>{children}</Tooltip.Trigger>\n\t\t\t\t<Tooltip.Portal>\n\t\t\t\t\t<Tooltip.Content className={classNames(styles.tooltip)} side=\"top\" align=\"center\" sideOffset={4}>\n\t\t\t\t\t\t{isValidElement(content) ? (\n\t\t\t\t\t\t\tcontent\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<DsTypography variant=\"body-xs-reg\" className={styles.content}>\n\t\t\t\t\t\t\t\t{content}\n\t\t\t\t\t\t\t</DsTypography>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t<Tooltip.Arrow className={styles.arrow} />\n\t\t\t\t\t</Tooltip.Content>\n\t\t\t\t</Tooltip.Portal>\n\t\t\t</Tooltip.Root>\n\t\t</Tooltip.Provider>\n\t);\n};\n\nexport default DsTooltip;\n"],"mappings":";;;;;;;;;;AAOA,MAAMO,aAAgCC,OAAA;CAAA,MAAAC,IAAAC,EAAA,GAAA;CAAC,MAAA,EAAAC,SAAAC,aAAAJ;AACtC,KAAIG,YAAYE,OAAS,QACjBD;CACP,IAAAE;AAAA,KAAAL,EAAA,OAAAG,UAAA;AAIEE,OAAA,oBAAA,QAAA;GAAiB,SAAA;GAASF;IAA2B;AAAAH,IAAA,KAAAG;AAAAH,IAAA,KAAAK;OAAAA,MAAAL,EAAA;CAAA,IAAAM;AAAA,KAAAN,EAAA,OAAAO,OAAAC,IAAA,4BAAA,EAAA;AAExBF,OAAAZ,WAAWC,0BAAMc,QAAS;AAAAT,IAAA,KAAAM;OAAAA,MAAAN,EAAA;CAAA,IAAAU;AAAA,KAAAV,EAAA,OAAAE,SAAA;AACpDQ,OAAAlB,eAAeU,QAMf,GANAA,UAGA,oBAAC;GAAqB,SAAA;GAAyB,WAAAP,0BAAMO;aACnDA;IAEF;AAAAF,IAAA,KAAAE;AAAAF,IAAA,KAAAU;OAAAA,MAAAV,EAAA;CAAA,IAAAW;AAAA,KAAAX,EAAA,OAAAO,OAAAC,IAAA,4BAAA,EAAA;AACDG,OAAA,oBAAA,QAAA,SAA0B,WAAAhB,0BAAMiB,QAAU;AAAAZ,IAAA,KAAAW;OAAAA,MAAAX,EAAA;CAAA,IAAAa;AAAA,KAAAb,EAAA,OAAAU,IAAA;AAT5CG,OAAA,oBAAA,QAAA,oBACC,qBAAA,QAAA;GAA4B,WAAAP;GAAiC,MAAA;GAAY,OAAA;GAAqB,YAAA;cAC5FI,IAODC;IAEF,GAAiB;AAAAX,IAAA,KAAAU;AAAAV,IAAA,KAAAa;OAAAA,MAAAb,EAAA;CAAA,IAAAc;AAAA,KAAAd,EAAA,OAAAK,MAAAL,EAAA,OAAAa,IAAA;AAdnBC,OAAA,oBAAA,QAAA;GAAiC,eAAA;aAChC,qBAAA,QAAA,mBACCT,IACAQ,MAaF;IAAmB;AAAAb,IAAA,KAAAK;AAAAL,IAAA,KAAAa;AAAAb,IAAA,MAAAc;OAAAA,MAAAd,EAAA;AAAA,QAhBnBc;;AAoBF,yBAAehB"}
|
|
@@ -1,19 +1,63 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_ds_typography_config = require('./ds-typography.config.cjs');
|
|
3
3
|
const require_ds_typography_module = require('./ds-typography.module.cjs');
|
|
4
|
+
let react_compiler_runtime = require("react/compiler-runtime");
|
|
4
5
|
let classnames = require("classnames");
|
|
5
6
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
6
7
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
8
|
let __radix_ui_react_slot = require("@radix-ui/react-slot");
|
|
8
9
|
|
|
9
10
|
//#region src/components/ds-typography/ds-typography.tsx
|
|
10
|
-
const DsTypography = (
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
const DsTypography = (t0) => {
|
|
12
|
+
const $ = (0, react_compiler_runtime.c)(16);
|
|
13
|
+
let children;
|
|
14
|
+
let className;
|
|
15
|
+
let props;
|
|
16
|
+
let ref;
|
|
17
|
+
let t1;
|
|
18
|
+
let variant;
|
|
19
|
+
if ($[0] !== t0) {
|
|
20
|
+
({ref, variant, asChild: t1, className, children, ...props} = t0);
|
|
21
|
+
$[0] = t0;
|
|
22
|
+
$[1] = children;
|
|
23
|
+
$[2] = className;
|
|
24
|
+
$[3] = props;
|
|
25
|
+
$[4] = ref;
|
|
26
|
+
$[5] = t1;
|
|
27
|
+
$[6] = variant;
|
|
28
|
+
} else {
|
|
29
|
+
children = $[1];
|
|
30
|
+
className = $[2];
|
|
31
|
+
props = $[3];
|
|
32
|
+
ref = $[4];
|
|
33
|
+
t1 = $[5];
|
|
34
|
+
variant = $[6];
|
|
35
|
+
}
|
|
36
|
+
const Component = (t1 === void 0 ? false : t1) ? __radix_ui_react_slot.Slot : require_ds_typography_config.semanticElementMap[variant];
|
|
37
|
+
const t2 = require_ds_typography_module.default[variant];
|
|
38
|
+
let t3;
|
|
39
|
+
if ($[7] !== className || $[8] !== t2) {
|
|
40
|
+
t3 = (0, classnames.default)(t2, className);
|
|
41
|
+
$[7] = className;
|
|
42
|
+
$[8] = t2;
|
|
43
|
+
$[9] = t3;
|
|
44
|
+
} else t3 = $[9];
|
|
45
|
+
let t4;
|
|
46
|
+
if ($[10] !== Component || $[11] !== children || $[12] !== props || $[13] !== ref || $[14] !== t3) {
|
|
47
|
+
t4 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Component, {
|
|
48
|
+
ref,
|
|
49
|
+
className: t3,
|
|
50
|
+
...props,
|
|
51
|
+
children
|
|
52
|
+
});
|
|
53
|
+
$[10] = Component;
|
|
54
|
+
$[11] = children;
|
|
55
|
+
$[12] = props;
|
|
56
|
+
$[13] = ref;
|
|
57
|
+
$[14] = t3;
|
|
58
|
+
$[15] = t4;
|
|
59
|
+
} else t4 = $[15];
|
|
60
|
+
return t4;
|
|
17
61
|
};
|
|
18
62
|
var ds_typography_default = DsTypography;
|
|
19
63
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ds-typography.config.js","names":[],"sources":["../../../src/components/ds-typography/ds-typography.config.ts"],"sourcesContent":["export const semanticElementMap = {\n\t// Body variants\n\t'body-md-reg': 'p',\n\t'body-md-md': 'p',\n\t'body-md-semi-bold': 'p',\n\t'body-md-bold': 'p',\n\t'body-md-link': 'a',\n\n\t'body-sm-reg': 'span',\n\t'body-sm-md': 'span',\n\t'body-sm-semi-bold': 'span',\n\t'body-sm-bold': 'span',\n\t'body-sm-link': 'a',\n\n\t'body-xs-reg': 'span',\n\t'body-xs-md': 'span',\n\t'body-xs-semi-bold': 'span',\n\t'body-xs-bold': 'span',\n\t'body-xs-link': 'a',\n\n\t// Code variants\n\t'code-sm-reg': 'code',\n\t'code-sm-semi-bold': 'code',\n\t'code-xs-reg': 'code',\n\t'code-xs-semi-bold': 'code',\n\n\t// Heading variants\n\theading1: 'h1',\n\theading2: 'h2',\n\theading3: 'h3',\n\theading4: 'h4',\n} as const;\n"],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"ds-typography.config.js","names":["semanticElementMap","heading1","heading2","heading3","heading4","const"],"sources":["../../../src/components/ds-typography/ds-typography.config.ts"],"sourcesContent":["export const semanticElementMap = {\n\t// Body variants\n\t'body-md-reg': 'p',\n\t'body-md-md': 'p',\n\t'body-md-semi-bold': 'p',\n\t'body-md-bold': 'p',\n\t'body-md-link': 'a',\n\n\t'body-sm-reg': 'span',\n\t'body-sm-md': 'span',\n\t'body-sm-semi-bold': 'span',\n\t'body-sm-bold': 'span',\n\t'body-sm-link': 'a',\n\n\t'body-xs-reg': 'span',\n\t'body-xs-md': 'span',\n\t'body-xs-semi-bold': 'span',\n\t'body-xs-bold': 'span',\n\t'body-xs-link': 'a',\n\n\t// Code variants\n\t'code-sm-reg': 'code',\n\t'code-sm-semi-bold': 'code',\n\t'code-xs-reg': 'code',\n\t'code-xs-semi-bold': 'code',\n\n\t// Heading variants\n\theading1: 'h1',\n\theading2: 'h2',\n\theading3: 'h3',\n\theading4: 'h4',\n} as const;\n"],"mappings":";AAAA,MAAaA,qBAAqB;CAEjC,eAAe;CACf,cAAc;CACd,qBAAqB;CACrB,gBAAgB;CAChB,gBAAgB;CAEhB,eAAe;CACf,cAAc;CACd,qBAAqB;CACrB,gBAAgB;CAChB,gBAAgB;CAEhB,eAAe;CACf,cAAc;CACd,qBAAqB;CACrB,gBAAgB;CAChB,gBAAgB;CAGhB,eAAe;CACf,qBAAqB;CACrB,eAAe;CACf,qBAAqB;CAGrBC,UAAU;CACVC,UAAU;CACVC,UAAU;CACVC,UAAU;CACV"}
|
|
@@ -1,17 +1,61 @@
|
|
|
1
1
|
import { semanticElementMap } from "./ds-typography.config.js";
|
|
2
2
|
import ds_typography_module_default from "./ds-typography.module.js";
|
|
3
|
+
import { c } from "react/compiler-runtime";
|
|
3
4
|
import classNames from "classnames";
|
|
4
5
|
import { jsx } from "react/jsx-runtime";
|
|
5
6
|
import { Slot } from "@radix-ui/react-slot";
|
|
6
7
|
|
|
7
8
|
//#region src/components/ds-typography/ds-typography.tsx
|
|
8
|
-
const DsTypography = (
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
const DsTypography = (t0) => {
|
|
10
|
+
const $ = c(16);
|
|
11
|
+
let children;
|
|
12
|
+
let className;
|
|
13
|
+
let props;
|
|
14
|
+
let ref;
|
|
15
|
+
let t1;
|
|
16
|
+
let variant;
|
|
17
|
+
if ($[0] !== t0) {
|
|
18
|
+
({ref, variant, asChild: t1, className, children, ...props} = t0);
|
|
19
|
+
$[0] = t0;
|
|
20
|
+
$[1] = children;
|
|
21
|
+
$[2] = className;
|
|
22
|
+
$[3] = props;
|
|
23
|
+
$[4] = ref;
|
|
24
|
+
$[5] = t1;
|
|
25
|
+
$[6] = variant;
|
|
26
|
+
} else {
|
|
27
|
+
children = $[1];
|
|
28
|
+
className = $[2];
|
|
29
|
+
props = $[3];
|
|
30
|
+
ref = $[4];
|
|
31
|
+
t1 = $[5];
|
|
32
|
+
variant = $[6];
|
|
33
|
+
}
|
|
34
|
+
const Component = (t1 === void 0 ? false : t1) ? Slot : semanticElementMap[variant];
|
|
35
|
+
const t2 = ds_typography_module_default[variant];
|
|
36
|
+
let t3;
|
|
37
|
+
if ($[7] !== className || $[8] !== t2) {
|
|
38
|
+
t3 = classNames(t2, className);
|
|
39
|
+
$[7] = className;
|
|
40
|
+
$[8] = t2;
|
|
41
|
+
$[9] = t3;
|
|
42
|
+
} else t3 = $[9];
|
|
43
|
+
let t4;
|
|
44
|
+
if ($[10] !== Component || $[11] !== children || $[12] !== props || $[13] !== ref || $[14] !== t3) {
|
|
45
|
+
t4 = /* @__PURE__ */ jsx(Component, {
|
|
46
|
+
ref,
|
|
47
|
+
className: t3,
|
|
48
|
+
...props,
|
|
49
|
+
children
|
|
50
|
+
});
|
|
51
|
+
$[10] = Component;
|
|
52
|
+
$[11] = children;
|
|
53
|
+
$[12] = props;
|
|
54
|
+
$[13] = ref;
|
|
55
|
+
$[14] = t3;
|
|
56
|
+
$[15] = t4;
|
|
57
|
+
} else t4 = $[15];
|
|
58
|
+
return t4;
|
|
15
59
|
};
|
|
16
60
|
var ds_typography_default = DsTypography;
|
|
17
61
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ds-typography.js","names":["DsTypography
|
|
1
|
+
{"version":3,"file":"ds-typography.js","names":["React","Slot","classNames","DsTypographyProps","semanticElementMap","styles","DsTypography","FC","ref","Ref","HTMLElement","t0","$","_c","children","className","props","t1","variant","asChild","undefined","Component","t2","t3","t4"],"sources":["../../../src/components/ds-typography/ds-typography.tsx"],"sourcesContent":["import type React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\nimport classNames from 'classnames';\nimport type { DsTypographyProps } from './ds-typography.types';\nimport { semanticElementMap } from './ds-typography.config';\nimport styles from './ds-typography.module.scss';\n\n/*\n * Design system Typography component that provides consistent text styling\n */\nconst DsTypography: React.FC<DsTypographyProps & { ref?: React.Ref<HTMLElement> }> = ({\n\tref,\n\tvariant,\n\tasChild = false,\n\tclassName,\n\tchildren,\n\t...props\n}) => {\n\tconst Component: React.ElementType = asChild ? Slot : semanticElementMap[variant];\n\treturn (\n\t\t<Component ref={ref} className={classNames(styles[variant], className)} {...props}>\n\t\t\t{children}\n\t\t</Component>\n\t);\n};\n\nexport default DsTypography;\n"],"mappings":";;;;;;;;AAUA,MAAMM,gBAA+EK,OAAA;CAAA,MAAAC,IAAAC,EAAA,GAAA;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAR;CAAA,IAAAS;CAAA,IAAAC;AAAA,KAAAN,EAAA,OAAAD,IAAA;AAAC,GAAA,CAAAH,KAAAU,SAAAC,SAAAF,IAAAF,WAAAD,aAAAE,SAAAL;AAOrFC,IAAA,KAAAD;AAAAC,IAAA,KAAAE;AAAAF,IAAA,KAAAG;AAAAH,IAAA,KAAAI;AAAAJ,IAAA,KAAAJ;AAAAI,IAAA,KAAAK;AAAAL,IAAA,KAAAM;QAAA;AAAAJ,aAAAF,EAAA;AAAAG,cAAAH,EAAA;AAAAI,UAAAJ,EAAA;AAAAJ,QAAAI,EAAA;AAAAK,OAAAL,EAAA;AAAAM,YAAAN,EAAA;;CACA,MAAAS,aALAJ,OAAAG,SAAA,QAAAH,MAKqChB,OAAiBG,mBAAmBc;CAE7B,MAAAI,KAAAjB,6BAAOa;CAAQ,IAAAK;AAAA,KAAAX,EAAA,OAAAG,aAAAH,EAAA,OAAAU,IAAA;AAA1BC,OAAArB,WAAWoB,IAAiBP,UAAU;AAAAH,IAAA,KAAAG;AAAAH,IAAA,KAAAU;AAAAV,IAAA,KAAAW;OAAAA,MAAAX,EAAA;CAAA,IAAAY;AAAA,KAAAZ,EAAA,QAAAS,aAAAT,EAAA,QAAAE,YAAAF,EAAA,QAAAI,SAAAJ,EAAA,QAAAJ,OAAAI,EAAA,QAAAW,IAAA;AAAtEC,OAAA,oBAAC;GAAehB;GAAgB,WAAAe;GAAsC,GAAMP;GAC1EF;IACU;AAAAF,IAAA,MAAAS;AAAAT,IAAA,MAAAE;AAAAF,IAAA,MAAAI;AAAAJ,IAAA,MAAAJ;AAAAI,IAAA,MAAAW;AAAAX,IAAA,MAAAY;OAAAA,MAAAZ,EAAA;AAAA,QAFZY;;AAMF,4BAAelB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_ds_vertical_tabs_module = require('./ds-vertical-tabs.module.cjs');
|
|
3
|
+
let react_compiler_runtime = require("react/compiler-runtime");
|
|
3
4
|
let classnames = require("classnames");
|
|
4
5
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
5
6
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -24,48 +25,108 @@ let __ark_ui_react_tabs = require("@ark-ui/react/tabs");
|
|
|
24
25
|
* </DsVerticalTabs>
|
|
25
26
|
* ```
|
|
26
27
|
*/
|
|
27
|
-
const DsVerticalTabs = (
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
28
|
+
const DsVerticalTabs = (t0) => {
|
|
29
|
+
const $ = (0, react_compiler_runtime.c)(8);
|
|
30
|
+
const { value, onValueChange, className, style, children } = t0;
|
|
31
|
+
let t1;
|
|
32
|
+
if ($[0] !== onValueChange) {
|
|
33
|
+
t1 = (details) => {
|
|
34
|
+
onValueChange?.(details.value);
|
|
35
|
+
};
|
|
36
|
+
$[0] = onValueChange;
|
|
37
|
+
$[1] = t1;
|
|
38
|
+
} else t1 = $[1];
|
|
39
|
+
const handleValueChange = t1;
|
|
40
|
+
let t2;
|
|
41
|
+
if ($[2] !== children || $[3] !== className || $[4] !== handleValueChange || $[5] !== style || $[6] !== value) {
|
|
42
|
+
t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ark_ui_react_tabs.Tabs.Root, {
|
|
43
|
+
orientation: "vertical",
|
|
44
|
+
value,
|
|
45
|
+
onValueChange: handleValueChange,
|
|
46
|
+
className,
|
|
47
|
+
style,
|
|
48
|
+
children
|
|
49
|
+
});
|
|
50
|
+
$[2] = children;
|
|
51
|
+
$[3] = className;
|
|
52
|
+
$[4] = handleValueChange;
|
|
53
|
+
$[5] = style;
|
|
54
|
+
$[6] = value;
|
|
55
|
+
$[7] = t2;
|
|
56
|
+
} else t2 = $[7];
|
|
57
|
+
return t2;
|
|
39
58
|
};
|
|
40
59
|
/**
|
|
41
60
|
* Container for tab triggers
|
|
42
61
|
*/
|
|
43
|
-
const DsVerticalTabsList = (
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
62
|
+
const DsVerticalTabsList = (t0) => {
|
|
63
|
+
const $ = (0, react_compiler_runtime.c)(5);
|
|
64
|
+
const { className, children } = t0;
|
|
65
|
+
let t1;
|
|
66
|
+
if ($[0] !== className) {
|
|
67
|
+
t1 = (0, classnames.default)(require_ds_vertical_tabs_module.default.tabList, className);
|
|
68
|
+
$[0] = className;
|
|
69
|
+
$[1] = t1;
|
|
70
|
+
} else t1 = $[1];
|
|
71
|
+
let t2;
|
|
72
|
+
if ($[2] !== children || $[3] !== t1) {
|
|
73
|
+
t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ark_ui_react_tabs.Tabs.List, {
|
|
74
|
+
className: t1,
|
|
75
|
+
children
|
|
76
|
+
});
|
|
77
|
+
$[2] = children;
|
|
78
|
+
$[3] = t1;
|
|
79
|
+
$[4] = t2;
|
|
80
|
+
} else t2 = $[4];
|
|
81
|
+
return t2;
|
|
48
82
|
};
|
|
49
83
|
/**
|
|
50
84
|
* Individual tab trigger - fully customizable content
|
|
51
85
|
*/
|
|
52
|
-
const DsVerticalTabsTab = (
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
86
|
+
const DsVerticalTabsTab = (t0) => {
|
|
87
|
+
const $ = (0, react_compiler_runtime.c)(7);
|
|
88
|
+
const { value, disabled, className, children } = t0;
|
|
89
|
+
let t1;
|
|
90
|
+
if ($[0] !== className) {
|
|
91
|
+
t1 = (0, classnames.default)(require_ds_vertical_tabs_module.default.tabItem, className);
|
|
92
|
+
$[0] = className;
|
|
93
|
+
$[1] = t1;
|
|
94
|
+
} else t1 = $[1];
|
|
95
|
+
let t2;
|
|
96
|
+
if ($[2] !== children || $[3] !== disabled || $[4] !== t1 || $[5] !== value) {
|
|
97
|
+
t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ark_ui_react_tabs.Tabs.Trigger, {
|
|
98
|
+
value,
|
|
99
|
+
disabled,
|
|
100
|
+
className: t1,
|
|
101
|
+
children
|
|
102
|
+
});
|
|
103
|
+
$[2] = children;
|
|
104
|
+
$[3] = disabled;
|
|
105
|
+
$[4] = t1;
|
|
106
|
+
$[5] = value;
|
|
107
|
+
$[6] = t2;
|
|
108
|
+
} else t2 = $[6];
|
|
109
|
+
return t2;
|
|
59
110
|
};
|
|
60
111
|
/**
|
|
61
112
|
* Tab content panel - displays when corresponding tab is active
|
|
62
113
|
*/
|
|
63
|
-
const DsVerticalTabsContent = (
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
114
|
+
const DsVerticalTabsContent = (t0) => {
|
|
115
|
+
const $ = (0, react_compiler_runtime.c)(4);
|
|
116
|
+
const { value, className, children } = t0;
|
|
117
|
+
let t1;
|
|
118
|
+
if ($[0] !== children || $[1] !== className || $[2] !== value) {
|
|
119
|
+
t1 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ark_ui_react_tabs.Tabs.Content, {
|
|
120
|
+
value,
|
|
121
|
+
className,
|
|
122
|
+
children
|
|
123
|
+
});
|
|
124
|
+
$[0] = children;
|
|
125
|
+
$[1] = className;
|
|
126
|
+
$[2] = value;
|
|
127
|
+
$[3] = t1;
|
|
128
|
+
} else t1 = $[3];
|
|
129
|
+
return t1;
|
|
69
130
|
};
|
|
70
131
|
DsVerticalTabs.List = DsVerticalTabsList;
|
|
71
132
|
DsVerticalTabs.Tab = DsVerticalTabsTab;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DsVerticalTabsContentProps, DsVerticalTabsListProps, DsVerticalTabsRootProps, DsVerticalTabsTabProps } from "./ds-vertical-tabs.types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime41 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/ds-vertical-tabs/ds-vertical-tabs.d.ts
|
|
5
5
|
|
|
@@ -28,22 +28,22 @@ declare const DsVerticalTabs: {
|
|
|
28
28
|
className,
|
|
29
29
|
style,
|
|
30
30
|
children
|
|
31
|
-
}: DsVerticalTabsRootProps):
|
|
31
|
+
}: DsVerticalTabsRootProps): react_jsx_runtime41.JSX.Element;
|
|
32
32
|
List: ({
|
|
33
33
|
className,
|
|
34
34
|
children
|
|
35
|
-
}: DsVerticalTabsListProps) =>
|
|
35
|
+
}: DsVerticalTabsListProps) => react_jsx_runtime41.JSX.Element;
|
|
36
36
|
Tab: ({
|
|
37
37
|
value,
|
|
38
38
|
disabled,
|
|
39
39
|
className,
|
|
40
40
|
children
|
|
41
|
-
}: DsVerticalTabsTabProps) =>
|
|
41
|
+
}: DsVerticalTabsTabProps) => react_jsx_runtime41.JSX.Element;
|
|
42
42
|
Content: ({
|
|
43
43
|
value,
|
|
44
44
|
className,
|
|
45
45
|
children
|
|
46
|
-
}: DsVerticalTabsContentProps) =>
|
|
46
|
+
}: DsVerticalTabsContentProps) => react_jsx_runtime41.JSX.Element;
|
|
47
47
|
};
|
|
48
48
|
//#endregion
|
|
49
49
|
export { DsVerticalTabs };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DsVerticalTabsContentProps, DsVerticalTabsListProps, DsVerticalTabsRootProps, DsVerticalTabsTabProps } from "./ds-vertical-tabs.types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime36 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/ds-vertical-tabs/ds-vertical-tabs.d.ts
|
|
5
5
|
|
|
@@ -28,22 +28,22 @@ declare const DsVerticalTabs: {
|
|
|
28
28
|
className,
|
|
29
29
|
style,
|
|
30
30
|
children
|
|
31
|
-
}: DsVerticalTabsRootProps):
|
|
31
|
+
}: DsVerticalTabsRootProps): react_jsx_runtime36.JSX.Element;
|
|
32
32
|
List: ({
|
|
33
33
|
className,
|
|
34
34
|
children
|
|
35
|
-
}: DsVerticalTabsListProps) =>
|
|
35
|
+
}: DsVerticalTabsListProps) => react_jsx_runtime36.JSX.Element;
|
|
36
36
|
Tab: ({
|
|
37
37
|
value,
|
|
38
38
|
disabled,
|
|
39
39
|
className,
|
|
40
40
|
children
|
|
41
|
-
}: DsVerticalTabsTabProps) =>
|
|
41
|
+
}: DsVerticalTabsTabProps) => react_jsx_runtime36.JSX.Element;
|
|
42
42
|
Content: ({
|
|
43
43
|
value,
|
|
44
44
|
className,
|
|
45
45
|
children
|
|
46
|
-
}: DsVerticalTabsContentProps) =>
|
|
46
|
+
}: DsVerticalTabsContentProps) => react_jsx_runtime36.JSX.Element;
|
|
47
47
|
};
|
|
48
48
|
//#endregion
|
|
49
49
|
export { DsVerticalTabs };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import ds_vertical_tabs_module_default from "./ds-vertical-tabs.module.js";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
2
3
|
import classNames from "classnames";
|
|
3
4
|
import { jsx } from "react/jsx-runtime";
|
|
4
5
|
import { Tabs } from "@ark-ui/react/tabs";
|
|
@@ -22,48 +23,108 @@ import { Tabs } from "@ark-ui/react/tabs";
|
|
|
22
23
|
* </DsVerticalTabs>
|
|
23
24
|
* ```
|
|
24
25
|
*/
|
|
25
|
-
const DsVerticalTabs = (
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
26
|
+
const DsVerticalTabs = (t0) => {
|
|
27
|
+
const $ = c(8);
|
|
28
|
+
const { value, onValueChange, className, style, children } = t0;
|
|
29
|
+
let t1;
|
|
30
|
+
if ($[0] !== onValueChange) {
|
|
31
|
+
t1 = (details) => {
|
|
32
|
+
onValueChange?.(details.value);
|
|
33
|
+
};
|
|
34
|
+
$[0] = onValueChange;
|
|
35
|
+
$[1] = t1;
|
|
36
|
+
} else t1 = $[1];
|
|
37
|
+
const handleValueChange = t1;
|
|
38
|
+
let t2;
|
|
39
|
+
if ($[2] !== children || $[3] !== className || $[4] !== handleValueChange || $[5] !== style || $[6] !== value) {
|
|
40
|
+
t2 = /* @__PURE__ */ jsx(Tabs.Root, {
|
|
41
|
+
orientation: "vertical",
|
|
42
|
+
value,
|
|
43
|
+
onValueChange: handleValueChange,
|
|
44
|
+
className,
|
|
45
|
+
style,
|
|
46
|
+
children
|
|
47
|
+
});
|
|
48
|
+
$[2] = children;
|
|
49
|
+
$[3] = className;
|
|
50
|
+
$[4] = handleValueChange;
|
|
51
|
+
$[5] = style;
|
|
52
|
+
$[6] = value;
|
|
53
|
+
$[7] = t2;
|
|
54
|
+
} else t2 = $[7];
|
|
55
|
+
return t2;
|
|
37
56
|
};
|
|
38
57
|
/**
|
|
39
58
|
* Container for tab triggers
|
|
40
59
|
*/
|
|
41
|
-
const DsVerticalTabsList = (
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
60
|
+
const DsVerticalTabsList = (t0) => {
|
|
61
|
+
const $ = c(5);
|
|
62
|
+
const { className, children } = t0;
|
|
63
|
+
let t1;
|
|
64
|
+
if ($[0] !== className) {
|
|
65
|
+
t1 = classNames(ds_vertical_tabs_module_default.tabList, className);
|
|
66
|
+
$[0] = className;
|
|
67
|
+
$[1] = t1;
|
|
68
|
+
} else t1 = $[1];
|
|
69
|
+
let t2;
|
|
70
|
+
if ($[2] !== children || $[3] !== t1) {
|
|
71
|
+
t2 = /* @__PURE__ */ jsx(Tabs.List, {
|
|
72
|
+
className: t1,
|
|
73
|
+
children
|
|
74
|
+
});
|
|
75
|
+
$[2] = children;
|
|
76
|
+
$[3] = t1;
|
|
77
|
+
$[4] = t2;
|
|
78
|
+
} else t2 = $[4];
|
|
79
|
+
return t2;
|
|
46
80
|
};
|
|
47
81
|
/**
|
|
48
82
|
* Individual tab trigger - fully customizable content
|
|
49
83
|
*/
|
|
50
|
-
const DsVerticalTabsTab = (
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
84
|
+
const DsVerticalTabsTab = (t0) => {
|
|
85
|
+
const $ = c(7);
|
|
86
|
+
const { value, disabled, className, children } = t0;
|
|
87
|
+
let t1;
|
|
88
|
+
if ($[0] !== className) {
|
|
89
|
+
t1 = classNames(ds_vertical_tabs_module_default.tabItem, className);
|
|
90
|
+
$[0] = className;
|
|
91
|
+
$[1] = t1;
|
|
92
|
+
} else t1 = $[1];
|
|
93
|
+
let t2;
|
|
94
|
+
if ($[2] !== children || $[3] !== disabled || $[4] !== t1 || $[5] !== value) {
|
|
95
|
+
t2 = /* @__PURE__ */ jsx(Tabs.Trigger, {
|
|
96
|
+
value,
|
|
97
|
+
disabled,
|
|
98
|
+
className: t1,
|
|
99
|
+
children
|
|
100
|
+
});
|
|
101
|
+
$[2] = children;
|
|
102
|
+
$[3] = disabled;
|
|
103
|
+
$[4] = t1;
|
|
104
|
+
$[5] = value;
|
|
105
|
+
$[6] = t2;
|
|
106
|
+
} else t2 = $[6];
|
|
107
|
+
return t2;
|
|
57
108
|
};
|
|
58
109
|
/**
|
|
59
110
|
* Tab content panel - displays when corresponding tab is active
|
|
60
111
|
*/
|
|
61
|
-
const DsVerticalTabsContent = (
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
112
|
+
const DsVerticalTabsContent = (t0) => {
|
|
113
|
+
const $ = c(4);
|
|
114
|
+
const { value, className, children } = t0;
|
|
115
|
+
let t1;
|
|
116
|
+
if ($[0] !== children || $[1] !== className || $[2] !== value) {
|
|
117
|
+
t1 = /* @__PURE__ */ jsx(Tabs.Content, {
|
|
118
|
+
value,
|
|
119
|
+
className,
|
|
120
|
+
children
|
|
121
|
+
});
|
|
122
|
+
$[0] = children;
|
|
123
|
+
$[1] = className;
|
|
124
|
+
$[2] = value;
|
|
125
|
+
$[3] = t1;
|
|
126
|
+
} else t1 = $[3];
|
|
127
|
+
return t1;
|
|
67
128
|
};
|
|
68
129
|
DsVerticalTabs.List = DsVerticalTabsList;
|
|
69
130
|
DsVerticalTabs.Tab = DsVerticalTabsTab;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ds-vertical-tabs.js","names":["styles"],"sources":["../../../src/components/ds-vertical-tabs/ds-vertical-tabs.tsx"],"sourcesContent":["import classNames from 'classnames';\nimport { Tabs } from '@ark-ui/react/tabs';\nimport type {\n\tDsVerticalTabsContentProps,\n\tDsVerticalTabsListProps,\n\tDsVerticalTabsRootProps,\n\tDsVerticalTabsTabProps,\n} from './ds-vertical-tabs.types';\nimport styles from './ds-vertical-tabs.module.scss';\n\n/**\n * Design system vertical tabs component - compound component for flexible vertical navigation\n *\n * @example\n * ```tsx\n * <DsVerticalTabs value={selected} onValueChange={handleChange}>\n * <DsVerticalTabs.List>\n * <DsVerticalTabs.Tab value=\"status\">\n * <span>Status</span>\n * <span className={styles.badge}>5</span>\n * </DsVerticalTabs.Tab>\n * <DsVerticalTabs.Tab value=\"date\">Date</DsVerticalTabs.Tab>\n * </DsVerticalTabs.List>\n * <DsVerticalTabs.Content value=\"status\">Status filters...</DsVerticalTabs.Content>\n * <DsVerticalTabs.Content value=\"date\">Date filters...</DsVerticalTabs.Content>\n * </DsVerticalTabs>\n * ```\n */\nconst DsVerticalTabs = ({ value, onValueChange, className, style, children }: DsVerticalTabsRootProps) => {\n\tconst handleValueChange = (details: { value: string | null }) => {\n\t\tonValueChange?.(details.value);\n\t};\n\n\treturn (\n\t\t<Tabs.Root\n\t\t\torientation=\"vertical\"\n\t\t\tvalue={value}\n\t\t\tonValueChange={handleValueChange}\n\t\t\tclassName={className}\n\t\t\tstyle={style}\n\t\t>\n\t\t\t{children}\n\t\t</Tabs.Root>\n\t);\n};\n\n/**\n * Container for tab triggers\n */\nconst DsVerticalTabsList = ({ className, children }: DsVerticalTabsListProps) => {\n\treturn <Tabs.List className={classNames(styles.tabList, className)}>{children}</Tabs.List>;\n};\n\n/**\n * Individual tab trigger - fully customizable content\n */\nconst DsVerticalTabsTab = ({ value, disabled, className, children }: DsVerticalTabsTabProps) => {\n\treturn (\n\t\t<Tabs.Trigger value={value} disabled={disabled} className={classNames(styles.tabItem, className)}>\n\t\t\t{children}\n\t\t</Tabs.Trigger>\n\t);\n};\n\n/**\n * Tab content panel - displays when corresponding tab is active\n */\nconst DsVerticalTabsContent = ({ value, className, children }: DsVerticalTabsContentProps) => {\n\treturn (\n\t\t<Tabs.Content value={value} className={className}>\n\t\t\t{children}\n\t\t</Tabs.Content>\n\t);\n};\n\nDsVerticalTabs.List = DsVerticalTabsList;\nDsVerticalTabs.Tab = DsVerticalTabsTab;\nDsVerticalTabs.Content = DsVerticalTabsContent;\n\nexport default DsVerticalTabs;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ds-vertical-tabs.js","names":["classNames","Tabs","DsVerticalTabsContentProps","DsVerticalTabsListProps","DsVerticalTabsRootProps","DsVerticalTabsTabProps","styles","DsVerticalTabs","t0","$","_c","value","onValueChange","className","style","children","t1","details","handleValueChange","t2","DsVerticalTabsList","tabList","DsVerticalTabsTab","disabled","tabItem","DsVerticalTabsContent","List","Tab","Content"],"sources":["../../../src/components/ds-vertical-tabs/ds-vertical-tabs.tsx"],"sourcesContent":["import classNames from 'classnames';\nimport { Tabs } from '@ark-ui/react/tabs';\nimport type {\n\tDsVerticalTabsContentProps,\n\tDsVerticalTabsListProps,\n\tDsVerticalTabsRootProps,\n\tDsVerticalTabsTabProps,\n} from './ds-vertical-tabs.types';\nimport styles from './ds-vertical-tabs.module.scss';\n\n/**\n * Design system vertical tabs component - compound component for flexible vertical navigation\n *\n * @example\n * ```tsx\n * <DsVerticalTabs value={selected} onValueChange={handleChange}>\n * <DsVerticalTabs.List>\n * <DsVerticalTabs.Tab value=\"status\">\n * <span>Status</span>\n * <span className={styles.badge}>5</span>\n * </DsVerticalTabs.Tab>\n * <DsVerticalTabs.Tab value=\"date\">Date</DsVerticalTabs.Tab>\n * </DsVerticalTabs.List>\n * <DsVerticalTabs.Content value=\"status\">Status filters...</DsVerticalTabs.Content>\n * <DsVerticalTabs.Content value=\"date\">Date filters...</DsVerticalTabs.Content>\n * </DsVerticalTabs>\n * ```\n */\nconst DsVerticalTabs = ({ value, onValueChange, className, style, children }: DsVerticalTabsRootProps) => {\n\tconst handleValueChange = (details: { value: string | null }) => {\n\t\tonValueChange?.(details.value);\n\t};\n\n\treturn (\n\t\t<Tabs.Root\n\t\t\torientation=\"vertical\"\n\t\t\tvalue={value}\n\t\t\tonValueChange={handleValueChange}\n\t\t\tclassName={className}\n\t\t\tstyle={style}\n\t\t>\n\t\t\t{children}\n\t\t</Tabs.Root>\n\t);\n};\n\n/**\n * Container for tab triggers\n */\nconst DsVerticalTabsList = ({ className, children }: DsVerticalTabsListProps) => {\n\treturn <Tabs.List className={classNames(styles.tabList, className)}>{children}</Tabs.List>;\n};\n\n/**\n * Individual tab trigger - fully customizable content\n */\nconst DsVerticalTabsTab = ({ value, disabled, className, children }: DsVerticalTabsTabProps) => {\n\treturn (\n\t\t<Tabs.Trigger value={value} disabled={disabled} className={classNames(styles.tabItem, className)}>\n\t\t\t{children}\n\t\t</Tabs.Trigger>\n\t);\n};\n\n/**\n * Tab content panel - displays when corresponding tab is active\n */\nconst DsVerticalTabsContent = ({ value, className, children }: DsVerticalTabsContentProps) => {\n\treturn (\n\t\t<Tabs.Content value={value} className={className}>\n\t\t\t{children}\n\t\t</Tabs.Content>\n\t);\n};\n\nDsVerticalTabs.List = DsVerticalTabsList;\nDsVerticalTabs.Tab = DsVerticalTabsTab;\nDsVerticalTabs.Content = DsVerticalTabsContent;\n\nexport default DsVerticalTabs;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AA4BA,MAAMO,kBAAiBC,OAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CAAC,MAAA,EAAAC,OAAAC,eAAAC,WAAAC,OAAAC,aAAAP;CAA6E,IAAAQ;AAAA,KAAAP,EAAA,OAAAG,eAAA;AAC1EI,QAAAC,YAAA;AACzBL,mBAAgBK,QAAON,MAAO;;AAC9BF,IAAA,KAAAG;AAAAH,IAAA,KAAAO;OAAAA,MAAAP,EAAA;CAFD,MAAAS,oBAA0BF;CAExB,IAAAG;AAAA,KAAAV,EAAA,OAAAM,YAAAN,EAAA,OAAAI,aAAAJ,EAAA,OAAAS,qBAAAT,EAAA,OAAAK,SAAAL,EAAA,OAAAE,OAAA;AAGDQ,OAAA,oBAAA,KAAA;GACa,aAAA;GACLR;GACQO,eAAAA;GACJL;GACJC;GAENC;IACU;AAAAN,IAAA,KAAAM;AAAAN,IAAA,KAAAI;AAAAJ,IAAA,KAAAS;AAAAT,IAAA,KAAAK;AAAAL,IAAA,KAAAE;AAAAF,IAAA,KAAAU;OAAAA,MAAAV,EAAA;AAAA,QARZU;;;;;AAeF,MAAMC,sBAAqBZ,OAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CAAC,MAAA,EAAAG,WAAAE,aAAAP;CAAgD,IAAAQ;AAAA,KAAAP,EAAA,OAAAI,WAAA;AAC9CG,OAAAhB,WAAWM,gCAAMe,SAAUR,UAAU;AAAAJ,IAAA,KAAAI;AAAAJ,IAAA,KAAAO;OAAAA,MAAAP,EAAA;CAAA,IAAAU;AAAA,KAAAV,EAAA,OAAAM,YAAAN,EAAA,OAAAO,IAAA;AAA3DG,OAAA,oBAAA,KAAA;GAAsB,WAAAH;GAAwCD;IAAqB;AAAAN,IAAA,KAAAM;AAAAN,IAAA,KAAAO;AAAAP,IAAA,KAAAU;OAAAA,MAAAV,EAAA;AAAA,QAAnFU;;;;;AAMR,MAAMG,qBAAoBd,OAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CAAC,MAAA,EAAAC,OAAAY,UAAAV,WAAAE,aAAAP;CAAgE,IAAAQ;AAAA,KAAAP,EAAA,OAAAI,WAAA;AAE9BG,OAAAhB,WAAWM,gCAAMkB,SAAUX,UAAU;AAAAJ,IAAA,KAAAI;AAAAJ,IAAA,KAAAO;OAAAA,MAAAP,EAAA;CAAA,IAAAU;AAAA,KAAAV,EAAA,OAAAM,YAAAN,EAAA,OAAAc,YAAAd,EAAA,OAAAO,MAAAP,EAAA,OAAAE,OAAA;AAAhGQ,OAAA,oBAAA,KAAA;GAAqBR;GAAiBY;GAAqB,WAAAP;GACzDD;IACa;AAAAN,IAAA,KAAAM;AAAAN,IAAA,KAAAc;AAAAd,IAAA,KAAAO;AAAAP,IAAA,KAAAE;AAAAF,IAAA,KAAAU;OAAAA,MAAAV,EAAA;AAAA,QAFfU;;;;;AASF,MAAMM,yBAAwBjB,OAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CAAC,MAAA,EAAAC,OAAAE,WAAAE,aAAAP;CAA0D,IAAAQ;AAAA,KAAAP,EAAA,OAAAM,YAAAN,EAAA,OAAAI,aAAAJ,EAAA,OAAAE,OAAA;AAEvFK,OAAA,oBAAA,KAAA;GAAqBL;GAAkBE;GACrCE;IACa;AAAAN,IAAA,KAAAM;AAAAN,IAAA,KAAAI;AAAAJ,IAAA,KAAAE;AAAAF,IAAA,KAAAO;OAAAA,MAAAP,EAAA;AAAA,QAFfO;;AAMFT,eAAemB,OAAON;AACtBb,eAAeoB,MAAML;AACrBf,eAAeqB,UAAUH;AAEzB,+BAAelB"}
|