@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,7 +4,7 @@ import { DsPasswordInputProps } from "../ds-password-input/ds-password-input.typ
|
|
|
4
4
|
import { DsTextareaProps } from "../ds-textarea/ds-textarea.types.cjs";
|
|
5
5
|
import { DsSelectProps } from "../ds-select/ds-select.types.cjs";
|
|
6
6
|
import { DsFormControlDescriptionProps, DsFormControlProps } from "./ds-form-control.types.cjs";
|
|
7
|
-
import * as
|
|
7
|
+
import * as react_jsx_runtime27 from "react/jsx-runtime";
|
|
8
8
|
import React from "react";
|
|
9
9
|
|
|
10
10
|
//#region src/components/ds-form-control/ds-form-control.d.ts
|
|
@@ -20,12 +20,12 @@ declare const DsFormControl: {
|
|
|
20
20
|
className,
|
|
21
21
|
style,
|
|
22
22
|
children
|
|
23
|
-
}: DsFormControlProps):
|
|
24
|
-
TextInput: (props: DsTextInputProps) =>
|
|
25
|
-
NumberInput: (props: DsNumberInputProps) =>
|
|
26
|
-
PasswordInput: (props: DsPasswordInputProps) =>
|
|
27
|
-
Textarea: (props: DsTextareaProps) =>
|
|
28
|
-
Select: (props: DsSelectProps) =>
|
|
23
|
+
}: DsFormControlProps): react_jsx_runtime27.JSX.Element;
|
|
24
|
+
TextInput: (props: DsTextInputProps) => react_jsx_runtime27.JSX.Element;
|
|
25
|
+
NumberInput: (props: DsNumberInputProps) => react_jsx_runtime27.JSX.Element;
|
|
26
|
+
PasswordInput: (props: DsPasswordInputProps) => react_jsx_runtime27.JSX.Element;
|
|
27
|
+
Textarea: (props: DsTextareaProps) => react_jsx_runtime27.JSX.Element;
|
|
28
|
+
Select: (props: DsSelectProps) => react_jsx_runtime27.JSX.Element;
|
|
29
29
|
Description: React.FC<DsFormControlDescriptionProps>;
|
|
30
30
|
};
|
|
31
31
|
//#endregion
|
|
@@ -9,7 +9,7 @@ import "../ds-textarea/index.js";
|
|
|
9
9
|
import { DsSelectProps } from "../ds-select/ds-select.types.js";
|
|
10
10
|
import "../ds-select/index.js";
|
|
11
11
|
import { DsFormControlDescriptionProps, DsFormControlProps } from "./ds-form-control.types.js";
|
|
12
|
-
import * as
|
|
12
|
+
import * as react_jsx_runtime4 from "react/jsx-runtime";
|
|
13
13
|
import React from "react";
|
|
14
14
|
|
|
15
15
|
//#region src/components/ds-form-control/ds-form-control.d.ts
|
|
@@ -25,12 +25,12 @@ declare const DsFormControl: {
|
|
|
25
25
|
className,
|
|
26
26
|
style,
|
|
27
27
|
children
|
|
28
|
-
}: DsFormControlProps):
|
|
29
|
-
TextInput: (props: DsTextInputProps) =>
|
|
30
|
-
NumberInput: (props: DsNumberInputProps) =>
|
|
31
|
-
PasswordInput: (props: DsPasswordInputProps) =>
|
|
32
|
-
Textarea: (props: DsTextareaProps) =>
|
|
33
|
-
Select: (props: DsSelectProps) =>
|
|
28
|
+
}: DsFormControlProps): react_jsx_runtime4.JSX.Element;
|
|
29
|
+
TextInput: (props: DsTextInputProps) => react_jsx_runtime4.JSX.Element;
|
|
30
|
+
NumberInput: (props: DsNumberInputProps) => react_jsx_runtime4.JSX.Element;
|
|
31
|
+
PasswordInput: (props: DsPasswordInputProps) => react_jsx_runtime4.JSX.Element;
|
|
32
|
+
Textarea: (props: DsTextareaProps) => react_jsx_runtime4.JSX.Element;
|
|
33
|
+
Select: (props: DsSelectProps) => react_jsx_runtime4.JSX.Element;
|
|
34
34
|
Description: React.FC<DsFormControlDescriptionProps>;
|
|
35
35
|
};
|
|
36
36
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ds-form-control.d.ts","names":[],"sources":["../../../src/components/ds-form-control/ds-form-control.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;cAwCM;;;;;;;;;;;;KAWH,qBAAkB,
|
|
1
|
+
{"version":3,"file":"ds-form-control.d.ts","names":[],"sources":["../../../src/components/ds-form-control/ds-form-control.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;cAwCM;;;;;;;;;;;;KAWH,qBAAkB,kBAAA,CAAA,GAAA,CAAA;qBAAA"}
|
|
@@ -11,6 +11,7 @@ import "../ds-number-input/index.js";
|
|
|
11
11
|
import ds_password_input_default from "../ds-password-input/ds-password-input.js";
|
|
12
12
|
import "../ds-password-input/index.js";
|
|
13
13
|
import ds_form_control_module_default from "./ds-form-control.module.js";
|
|
14
|
+
import { c } from "react/compiler-runtime";
|
|
14
15
|
import classNames from "classnames";
|
|
15
16
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
17
|
import { createContext, useContext, useId } from "react";
|
|
@@ -38,47 +39,131 @@ const controlify = (Component) => {
|
|
|
38
39
|
});
|
|
39
40
|
};
|
|
40
41
|
};
|
|
41
|
-
const DsFormControlDescription = (
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
const DsFormControlDescription = (t0) => {
|
|
43
|
+
const $ = c(5);
|
|
44
|
+
const { children, className } = t0;
|
|
45
|
+
let t1;
|
|
46
|
+
if ($[0] !== className) {
|
|
47
|
+
t1 = classNames(ds_form_control_module_default.description, className);
|
|
48
|
+
$[0] = className;
|
|
49
|
+
$[1] = t1;
|
|
50
|
+
} else t1 = $[1];
|
|
51
|
+
let t2;
|
|
52
|
+
if ($[2] !== children || $[3] !== t1) {
|
|
53
|
+
t2 = /* @__PURE__ */ jsx("div", {
|
|
54
|
+
className: t1,
|
|
55
|
+
children
|
|
56
|
+
});
|
|
57
|
+
$[2] = children;
|
|
58
|
+
$[3] = t1;
|
|
59
|
+
$[4] = t2;
|
|
60
|
+
} else t2 = $[4];
|
|
61
|
+
return t2;
|
|
46
62
|
};
|
|
47
|
-
const DsFormControl = (
|
|
63
|
+
const DsFormControl = (t0) => {
|
|
64
|
+
const $ = c(28);
|
|
65
|
+
const { id, status, label, required: t1, slots, message, messageIcon: t2, className, style, children } = t0;
|
|
66
|
+
const required = t1 === void 0 ? false : t1;
|
|
67
|
+
const messageIcon = t2 === void 0 ? "info" : t2;
|
|
48
68
|
const generatedId = useId();
|
|
49
69
|
const controlId = id || generatedId;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
70
|
+
let t3;
|
|
71
|
+
if ($[0] !== controlId) {
|
|
72
|
+
t3 = { controlId };
|
|
73
|
+
$[0] = controlId;
|
|
74
|
+
$[1] = t3;
|
|
75
|
+
} else t3 = $[1];
|
|
76
|
+
const t4 = status && message && ds_form_control_module_default[status];
|
|
77
|
+
let t5;
|
|
78
|
+
if ($[2] !== className || $[3] !== t4) {
|
|
79
|
+
t5 = classNames(ds_form_control_module_default.container, t4, className);
|
|
80
|
+
$[2] = className;
|
|
81
|
+
$[3] = t4;
|
|
82
|
+
$[4] = t5;
|
|
83
|
+
} else t5 = $[4];
|
|
84
|
+
let t6;
|
|
85
|
+
if ($[5] !== required) {
|
|
86
|
+
t6 = classNames(ds_form_control_module_default.label, { [ds_form_control_module_default.required]: required });
|
|
87
|
+
$[5] = required;
|
|
88
|
+
$[6] = t6;
|
|
89
|
+
} else t6 = $[6];
|
|
90
|
+
let t7;
|
|
91
|
+
if ($[7] !== controlId || $[8] !== label || $[9] !== t6) {
|
|
92
|
+
t7 = /* @__PURE__ */ jsx("label", {
|
|
93
|
+
htmlFor: controlId,
|
|
94
|
+
className: t6,
|
|
95
|
+
children: label
|
|
96
|
+
});
|
|
97
|
+
$[7] = controlId;
|
|
98
|
+
$[8] = label;
|
|
99
|
+
$[9] = t6;
|
|
100
|
+
$[10] = t7;
|
|
101
|
+
} else t7 = $[10];
|
|
102
|
+
let t8;
|
|
103
|
+
if ($[11] !== slots) {
|
|
104
|
+
t8 = slots?.endAdornment && /* @__PURE__ */ jsx("div", {
|
|
105
|
+
className: ds_form_control_module_default.endAdornment,
|
|
106
|
+
children: slots.endAdornment
|
|
107
|
+
});
|
|
108
|
+
$[11] = slots;
|
|
109
|
+
$[12] = t8;
|
|
110
|
+
} else t8 = $[12];
|
|
111
|
+
let t9;
|
|
112
|
+
if ($[13] !== t7 || $[14] !== t8) {
|
|
113
|
+
t9 = /* @__PURE__ */ jsxs("div", {
|
|
114
|
+
className: ds_form_control_module_default.labelContainer,
|
|
115
|
+
children: [t7, t8]
|
|
116
|
+
});
|
|
117
|
+
$[13] = t7;
|
|
118
|
+
$[14] = t8;
|
|
119
|
+
$[15] = t9;
|
|
120
|
+
} else t9 = $[15];
|
|
121
|
+
let t10;
|
|
122
|
+
if ($[16] !== message || $[17] !== messageIcon) {
|
|
123
|
+
t10 = message && /* @__PURE__ */ jsxs("div", {
|
|
124
|
+
className: ds_form_control_module_default.message,
|
|
125
|
+
children: [/* @__PURE__ */ jsx(ds_icon_default, {
|
|
126
|
+
icon: messageIcon,
|
|
127
|
+
size: "tiny",
|
|
128
|
+
filled: true
|
|
129
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
130
|
+
className: ds_form_control_module_default.messageText,
|
|
131
|
+
children: message
|
|
132
|
+
})]
|
|
133
|
+
});
|
|
134
|
+
$[16] = message;
|
|
135
|
+
$[17] = messageIcon;
|
|
136
|
+
$[18] = t10;
|
|
137
|
+
} else t10 = $[18];
|
|
138
|
+
let t11;
|
|
139
|
+
if ($[19] !== children || $[20] !== style || $[21] !== t10 || $[22] !== t5 || $[23] !== t9) {
|
|
140
|
+
t11 = /* @__PURE__ */ jsxs("div", {
|
|
141
|
+
className: t5,
|
|
54
142
|
style,
|
|
55
143
|
children: [
|
|
56
|
-
|
|
57
|
-
className: ds_form_control_module_default.labelContainer,
|
|
58
|
-
children: [/* @__PURE__ */ jsx("label", {
|
|
59
|
-
htmlFor: controlId,
|
|
60
|
-
className: classNames(ds_form_control_module_default.label, { [ds_form_control_module_default.required]: required }),
|
|
61
|
-
children: label
|
|
62
|
-
}), slots?.endAdornment && /* @__PURE__ */ jsx("div", {
|
|
63
|
-
className: ds_form_control_module_default.endAdornment,
|
|
64
|
-
children: slots.endAdornment
|
|
65
|
-
})]
|
|
66
|
-
}),
|
|
144
|
+
t9,
|
|
67
145
|
children,
|
|
68
|
-
|
|
69
|
-
className: ds_form_control_module_default.message,
|
|
70
|
-
children: [/* @__PURE__ */ jsx(ds_icon_default, {
|
|
71
|
-
icon: messageIcon,
|
|
72
|
-
size: "tiny",
|
|
73
|
-
filled: true
|
|
74
|
-
}), /* @__PURE__ */ jsx("span", {
|
|
75
|
-
className: ds_form_control_module_default.messageText,
|
|
76
|
-
children: message
|
|
77
|
-
})]
|
|
78
|
-
})
|
|
146
|
+
t10
|
|
79
147
|
]
|
|
80
|
-
})
|
|
81
|
-
|
|
148
|
+
});
|
|
149
|
+
$[19] = children;
|
|
150
|
+
$[20] = style;
|
|
151
|
+
$[21] = t10;
|
|
152
|
+
$[22] = t5;
|
|
153
|
+
$[23] = t9;
|
|
154
|
+
$[24] = t11;
|
|
155
|
+
} else t11 = $[24];
|
|
156
|
+
let t12;
|
|
157
|
+
if ($[25] !== t11 || $[26] !== t3) {
|
|
158
|
+
t12 = /* @__PURE__ */ jsx(FormControlContext.Provider, {
|
|
159
|
+
value: t3,
|
|
160
|
+
children: t11
|
|
161
|
+
});
|
|
162
|
+
$[25] = t11;
|
|
163
|
+
$[26] = t3;
|
|
164
|
+
$[27] = t12;
|
|
165
|
+
} else t12 = $[27];
|
|
166
|
+
return t12;
|
|
82
167
|
};
|
|
83
168
|
DsFormControl.TextInput = controlify(ds_text_input_default);
|
|
84
169
|
DsFormControl.NumberInput = controlify(ds_number_input_default);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ds-form-control.js","names":["
|
|
1
|
+
{"version":3,"file":"ds-form-control.js","names":["ComponentType","createContext","useContext","useId","React","classNames","DsIcon","DsSelect","DsTextInput","DsTextarea","DsNumberInput","DsPasswordInput","DsFormControlDescriptionProps","DsFormControlProps","styles","FormControlContext","controlId","useFormControlContext","context","Error","controlify","id","Component","TProps","WrappedFormControl","props","DsFormControlDescription","FC","t0","$","_c","children","className","t1","description","t2","DsFormControl","status","label","required","slots","message","messageIcon","style","undefined","generatedId","t3","t4","t5","container","t6","t7","t8","endAdornment","t9","labelContainer","t10","messageText","t11","t12","TextInput","NumberInput","PasswordInput","Textarea","Select","Description"],"sources":["../../../src/components/ds-form-control/ds-form-control.tsx"],"sourcesContent":["import { type ComponentType, createContext, useContext, useId } from 'react';\nimport type React from 'react';\nimport classNames from 'classnames';\nimport { DsIcon } from '../ds-icon';\nimport { DsSelect } from '../ds-select';\nimport { DsTextInput } from '../ds-text-input';\nimport { DsTextarea } from '../ds-textarea';\nimport { DsNumberInput } from '../ds-number-input';\nimport { DsPasswordInput } from '../ds-password-input';\nimport type { DsFormControlDescriptionProps, DsFormControlProps } from './ds-form-control.types';\nimport styles from './ds-form-control.module.scss';\n\nconst FormControlContext = createContext<{ controlId: string } | null>(null);\n\nconst useFormControlContext = () => {\n\tconst context = useContext(FormControlContext);\n\tif (!context) {\n\t\tthrow new Error('useFormControlContext must be used within DsFormControl');\n\t}\n\treturn context;\n};\n\n/**\n * HOC that automatically injects the controlId from form control context\n * into any component that expects an 'id' prop.\n *\n * @param Component - The component to wrap with form control context\n * @returns A new component that automatically receives the controlId\n */\nconst controlify = <TProps extends { id?: string }>(Component: ComponentType<TProps>) => {\n\treturn function WrappedFormControl(props: TProps) {\n\t\tconst { controlId } = useFormControlContext();\n\t\treturn <Component id={controlId} {...props} />;\n\t};\n};\n\nconst DsFormControlDescription: React.FC<DsFormControlDescriptionProps> = ({ children, className }) => {\n\treturn <div className={classNames(styles.description, className)}>{children}</div>;\n};\n\nconst DsFormControl = ({\n\tid,\n\tstatus,\n\tlabel,\n\trequired = false,\n\tslots,\n\tmessage,\n\tmessageIcon = 'info',\n\tclassName,\n\tstyle,\n\tchildren,\n}: DsFormControlProps) => {\n\tconst generatedId = useId();\n\tconst controlId = id || generatedId;\n\n\treturn (\n\t\t<FormControlContext.Provider value={{ controlId }}>\n\t\t\t<div\n\t\t\t\tclassName={classNames(styles.container, status && message && styles[status], className)}\n\t\t\t\tstyle={style}\n\t\t\t>\n\t\t\t\t<div className={styles.labelContainer}>\n\t\t\t\t\t<label\n\t\t\t\t\t\thtmlFor={controlId}\n\t\t\t\t\t\tclassName={classNames(styles.label, {\n\t\t\t\t\t\t\t[styles.required]: required,\n\t\t\t\t\t\t})}\n\t\t\t\t\t>\n\t\t\t\t\t\t{label}\n\t\t\t\t\t</label>\n\t\t\t\t\t{slots?.endAdornment && <div className={styles.endAdornment}>{slots.endAdornment}</div>}\n\t\t\t\t</div>\n\n\t\t\t\t{children}\n\n\t\t\t\t{message && (\n\t\t\t\t\t<div className={styles.message}>\n\t\t\t\t\t\t<DsIcon icon={messageIcon} size=\"tiny\" filled />\n\t\t\t\t\t\t<span className={styles.messageText}>{message}</span>\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t</FormControlContext.Provider>\n\t);\n};\n\nDsFormControl.TextInput = controlify(DsTextInput);\nDsFormControl.NumberInput = controlify(DsNumberInput);\nDsFormControl.PasswordInput = controlify(DsPasswordInput);\nDsFormControl.Textarea = controlify(DsTextarea);\nDsFormControl.Select = controlify(DsSelect);\nDsFormControl.Description = DsFormControlDescription;\n\nexport default DsFormControl;\n"],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ds-form-control.types.js","names":[],"sources":["../../../src/components/ds-form-control/ds-form-control.types.tsx"],"sourcesContent":["import type React from 'react';\nimport type { IconType } from '../ds-icon';\n\nexport const controlStatuses = ['info', 'success', 'error', 'warning'] as const;\nexport type ControlStatus = (typeof controlStatuses)[number];\n\nexport interface DsFormControlProps extends React.PropsWithChildren {\n\t/**\n\t * Unique identifier for the control\n\t */\n\tid?: string;\n\t/**\n\t * Visual status\n\t */\n\tstatus?: ControlStatus;\n\t/**\n\t * Label text\n\t */\n\tlabel: string;\n\t/**\n\t * Marks the field as required\n\t */\n\trequired?: boolean;\n\n\tslots?: {\n\t\t/**\n\t\t * Adornment to display at the end of the label\n\t\t */\n\t\tendAdornment?: React.ReactNode;\n\t};\n\t/**\n\t * Message under the control\n\t */\n\tmessage?: string;\n\t/**\n\t * Icon shown next to message\n\t */\n\tmessageIcon?: IconType;\n\t/**\n\t * Additional CSS class names\n\t */\n\tclassName?: string;\n\t/**\n\t * Additional styles to apply to the component\n\t */\n\tstyle?: React.CSSProperties;\n}\n\nexport interface DsFormControlDescriptionProps {\n\t/**\n\t * The description content\n\t */\n\tchildren: React.ReactNode;\n\t/**\n\t * Additional CSS class names\n\t */\n\tclassName?: string;\n}\n"],"mappings":";AAGA,
|
|
1
|
+
{"version":3,"file":"ds-form-control.types.js","names":["React","IconType","controlStatuses","const","ControlStatus","DsFormControlProps","PropsWithChildren","id","status","label","required","slots","endAdornment","ReactNode","message","messageIcon","className","style","CSSProperties","DsFormControlDescriptionProps","children"],"sources":["../../../src/components/ds-form-control/ds-form-control.types.tsx"],"sourcesContent":["import type React from 'react';\nimport type { IconType } from '../ds-icon';\n\nexport const controlStatuses = ['info', 'success', 'error', 'warning'] as const;\nexport type ControlStatus = (typeof controlStatuses)[number];\n\nexport interface DsFormControlProps extends React.PropsWithChildren {\n\t/**\n\t * Unique identifier for the control\n\t */\n\tid?: string;\n\t/**\n\t * Visual status\n\t */\n\tstatus?: ControlStatus;\n\t/**\n\t * Label text\n\t */\n\tlabel: string;\n\t/**\n\t * Marks the field as required\n\t */\n\trequired?: boolean;\n\n\tslots?: {\n\t\t/**\n\t\t * Adornment to display at the end of the label\n\t\t */\n\t\tendAdornment?: React.ReactNode;\n\t};\n\t/**\n\t * Message under the control\n\t */\n\tmessage?: string;\n\t/**\n\t * Icon shown next to message\n\t */\n\tmessageIcon?: IconType;\n\t/**\n\t * Additional CSS class names\n\t */\n\tclassName?: string;\n\t/**\n\t * Additional styles to apply to the component\n\t */\n\tstyle?: React.CSSProperties;\n}\n\nexport interface DsFormControlDescriptionProps {\n\t/**\n\t * The description content\n\t */\n\tchildren: React.ReactNode;\n\t/**\n\t * Additional CSS class names\n\t */\n\tclassName?: string;\n}\n"],"mappings":";AAGA,MAAaE,kBAAkB;CAAC;CAAQ;CAAW;CAAS;CAAU"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ds-grid.js","names":["
|
|
1
|
+
{"version":3,"file":"ds-grid.js","names":["React","classNames","DsGridItemProps","DsGridProps","DsGrid","FC","children","columns","rows","className","gridClass","String","DsGridItem","colSpan","colStart","rowSpan","rowStart","gridItemClass"],"sources":["../../../src/components/ds-grid/ds-grid.tsx"],"sourcesContent":["import type React from 'react';\nimport classNames from 'classnames';\nimport type { DsGridItemProps, DsGridProps } from './ds-grid.types';\n\n/**\n * Design system Grid component\n */\nexport const DsGrid: React.FC<DsGridProps> = ({ children, columns, rows, className }) => {\n\tconst gridClass = classNames(\n\t\t'ds-grid',\n\t\t{\n\t\t\t[`ds-grid-cols-${String(columns)}`]: columns,\n\t\t\t[`ds-grid-rows-${String(rows)}`]: rows,\n\t\t},\n\t\tclassName,\n\t);\n\n\treturn <div className={gridClass}>{children}</div>;\n};\n\n/**\n * Design system GridItem component\n */\nexport const DsGridItem: React.FC<DsGridItemProps> = ({\n\tchildren,\n\tcolSpan,\n\tcolStart,\n\trowSpan,\n\trowStart,\n\tclassName,\n}) => {\n\tconst gridItemClass = classNames(\n\t\t{\n\t\t\t[`ds-grid-col-span-${String(colSpan)}`]: colSpan,\n\t\t\t[`ds-grid-col-start-${String(colStart)}`]: colStart,\n\t\t\t[`ds-grid-row-span-${String(rowSpan)}`]: rowSpan,\n\t\t\t[`ds-grid-row-start-${String(rowStart)}`]: rowStart,\n\t\t},\n\t\tclassName,\n\t);\n\n\treturn <div className={gridItemClass}>{children}</div>;\n};\n"],"mappings":";;;;;;;AAOA,MAAaI,UAAiC,EAAEE,UAAUC,SAASC,MAAMC,gBAAgB;AAUxF,QAAO,oBAAC;EAAI,WATMR,WACjB,WACA;IACE,gBAAgBU,OAAOJ,QAAQ,KAAKA;IACpC,gBAAgBI,OAAOH,KAAK,KAAKA;GAClC,EACDC,UACA;EAEkCH;GAAe;;;;;AAMnD,MAAaM,cAAyC,EACrDN,UACAO,SACAC,UACAC,SACAC,UACAP,gBACK;AAWL,QAAO,oBAAC;EAAI,WAVUR,WACrB;IACE,oBAAoBU,OAAOE,QAAQ,KAAKA;IACxC,qBAAqBF,OAAOG,SAAS,KAAKA;IAC1C,oBAAoBH,OAAOI,QAAQ,KAAKA;IACxC,qBAAqBJ,OAAOK,SAAS,KAAKA;GAC3C,EACDP,UACA;EAEsCH;GAAe"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_ds_icon_module = require('./ds-icon.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");
|
|
@@ -8,20 +9,90 @@ let react_jsx_runtime = require("react/jsx-runtime");
|
|
|
8
9
|
/**
|
|
9
10
|
* Design system Icon component that renders Google Material Icons or inline SVGs
|
|
10
11
|
*/
|
|
11
|
-
const DsIcon = (
|
|
12
|
+
const DsIcon = (t0) => {
|
|
13
|
+
const $ = (0, react_compiler_runtime.c)(24);
|
|
14
|
+
let filled;
|
|
15
|
+
let icon;
|
|
16
|
+
let rest;
|
|
17
|
+
let t1;
|
|
18
|
+
let t2;
|
|
19
|
+
let t3;
|
|
20
|
+
let t4;
|
|
21
|
+
if ($[0] !== t0) {
|
|
22
|
+
({icon, size: t1, variant: t2, filled, className: t3, style: t4, ...rest} = t0);
|
|
23
|
+
$[0] = t0;
|
|
24
|
+
$[1] = filled;
|
|
25
|
+
$[2] = icon;
|
|
26
|
+
$[3] = rest;
|
|
27
|
+
$[4] = t1;
|
|
28
|
+
$[5] = t2;
|
|
29
|
+
$[6] = t3;
|
|
30
|
+
$[7] = t4;
|
|
31
|
+
} else {
|
|
32
|
+
filled = $[1];
|
|
33
|
+
icon = $[2];
|
|
34
|
+
rest = $[3];
|
|
35
|
+
t1 = $[4];
|
|
36
|
+
t2 = $[5];
|
|
37
|
+
t3 = $[6];
|
|
38
|
+
t4 = $[7];
|
|
39
|
+
}
|
|
40
|
+
const size = t1 === void 0 ? "medium" : t1;
|
|
41
|
+
const variant = t2 === void 0 ? "outlined" : t2;
|
|
42
|
+
const className = t3 === void 0 ? "" : t3;
|
|
43
|
+
let t5;
|
|
44
|
+
if ($[8] !== t4) {
|
|
45
|
+
t5 = t4 === void 0 ? {} : t4;
|
|
46
|
+
$[8] = t4;
|
|
47
|
+
$[9] = t5;
|
|
48
|
+
} else t5 = $[9];
|
|
49
|
+
const style = t5;
|
|
12
50
|
const variantClass = `material-symbols-${variant}`;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
51
|
+
let t6;
|
|
52
|
+
let t7;
|
|
53
|
+
if ($[10] !== className || $[11] !== filled || $[12] !== icon || $[13] !== rest || $[14] !== size || $[15] !== style || $[16] !== variantClass) {
|
|
54
|
+
t7 = Symbol.for("react.early_return_sentinel");
|
|
55
|
+
bb0: {
|
|
56
|
+
const iconClass = (0, classnames.default)(require_ds_icon_module.default.icon, require_ds_icon_module.default[size], { [require_ds_icon_module.default.filled]: filled }, className);
|
|
57
|
+
if (typeof icon === "function") {
|
|
58
|
+
t7 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(icon, {
|
|
59
|
+
className: iconClass,
|
|
60
|
+
style,
|
|
61
|
+
...rest
|
|
62
|
+
});
|
|
63
|
+
break bb0;
|
|
64
|
+
}
|
|
65
|
+
t6 = (0, classnames.default)(iconClass, variantClass);
|
|
66
|
+
}
|
|
67
|
+
$[10] = className;
|
|
68
|
+
$[11] = filled;
|
|
69
|
+
$[12] = icon;
|
|
70
|
+
$[13] = rest;
|
|
71
|
+
$[14] = size;
|
|
72
|
+
$[15] = style;
|
|
73
|
+
$[16] = variantClass;
|
|
74
|
+
$[17] = t6;
|
|
75
|
+
$[18] = t7;
|
|
76
|
+
} else {
|
|
77
|
+
t6 = $[17];
|
|
78
|
+
t7 = $[18];
|
|
79
|
+
}
|
|
80
|
+
if (t7 !== Symbol.for("react.early_return_sentinel")) return t7;
|
|
81
|
+
let t8;
|
|
82
|
+
if ($[19] !== icon || $[20] !== rest || $[21] !== style || $[22] !== t6) {
|
|
83
|
+
t8 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
84
|
+
className: t6,
|
|
85
|
+
style,
|
|
86
|
+
...rest,
|
|
87
|
+
children: icon
|
|
88
|
+
});
|
|
89
|
+
$[19] = icon;
|
|
90
|
+
$[20] = rest;
|
|
91
|
+
$[21] = style;
|
|
92
|
+
$[22] = t6;
|
|
93
|
+
$[23] = t8;
|
|
94
|
+
} else t8 = $[23];
|
|
95
|
+
return t8;
|
|
25
96
|
};
|
|
26
97
|
var ds_icon_default = DsIcon;
|
|
27
98
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import ds_icon_module_default from "./ds-icon.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
|
|
|
@@ -6,20 +7,90 @@ import { jsx } from "react/jsx-runtime";
|
|
|
6
7
|
/**
|
|
7
8
|
* Design system Icon component that renders Google Material Icons or inline SVGs
|
|
8
9
|
*/
|
|
9
|
-
const DsIcon = (
|
|
10
|
+
const DsIcon = (t0) => {
|
|
11
|
+
const $ = c(24);
|
|
12
|
+
let filled;
|
|
13
|
+
let icon;
|
|
14
|
+
let rest;
|
|
15
|
+
let t1;
|
|
16
|
+
let t2;
|
|
17
|
+
let t3;
|
|
18
|
+
let t4;
|
|
19
|
+
if ($[0] !== t0) {
|
|
20
|
+
({icon, size: t1, variant: t2, filled, className: t3, style: t4, ...rest} = t0);
|
|
21
|
+
$[0] = t0;
|
|
22
|
+
$[1] = filled;
|
|
23
|
+
$[2] = icon;
|
|
24
|
+
$[3] = rest;
|
|
25
|
+
$[4] = t1;
|
|
26
|
+
$[5] = t2;
|
|
27
|
+
$[6] = t3;
|
|
28
|
+
$[7] = t4;
|
|
29
|
+
} else {
|
|
30
|
+
filled = $[1];
|
|
31
|
+
icon = $[2];
|
|
32
|
+
rest = $[3];
|
|
33
|
+
t1 = $[4];
|
|
34
|
+
t2 = $[5];
|
|
35
|
+
t3 = $[6];
|
|
36
|
+
t4 = $[7];
|
|
37
|
+
}
|
|
38
|
+
const size = t1 === void 0 ? "medium" : t1;
|
|
39
|
+
const variant = t2 === void 0 ? "outlined" : t2;
|
|
40
|
+
const className = t3 === void 0 ? "" : t3;
|
|
41
|
+
let t5;
|
|
42
|
+
if ($[8] !== t4) {
|
|
43
|
+
t5 = t4 === void 0 ? {} : t4;
|
|
44
|
+
$[8] = t4;
|
|
45
|
+
$[9] = t5;
|
|
46
|
+
} else t5 = $[9];
|
|
47
|
+
const style = t5;
|
|
10
48
|
const variantClass = `material-symbols-${variant}`;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
49
|
+
let t6;
|
|
50
|
+
let t7;
|
|
51
|
+
if ($[10] !== className || $[11] !== filled || $[12] !== icon || $[13] !== rest || $[14] !== size || $[15] !== style || $[16] !== variantClass) {
|
|
52
|
+
t7 = Symbol.for("react.early_return_sentinel");
|
|
53
|
+
bb0: {
|
|
54
|
+
const iconClass = classNames(ds_icon_module_default.icon, ds_icon_module_default[size], { [ds_icon_module_default.filled]: filled }, className);
|
|
55
|
+
if (typeof icon === "function") {
|
|
56
|
+
t7 = /* @__PURE__ */ jsx(icon, {
|
|
57
|
+
className: iconClass,
|
|
58
|
+
style,
|
|
59
|
+
...rest
|
|
60
|
+
});
|
|
61
|
+
break bb0;
|
|
62
|
+
}
|
|
63
|
+
t6 = classNames(iconClass, variantClass);
|
|
64
|
+
}
|
|
65
|
+
$[10] = className;
|
|
66
|
+
$[11] = filled;
|
|
67
|
+
$[12] = icon;
|
|
68
|
+
$[13] = rest;
|
|
69
|
+
$[14] = size;
|
|
70
|
+
$[15] = style;
|
|
71
|
+
$[16] = variantClass;
|
|
72
|
+
$[17] = t6;
|
|
73
|
+
$[18] = t7;
|
|
74
|
+
} else {
|
|
75
|
+
t6 = $[17];
|
|
76
|
+
t7 = $[18];
|
|
77
|
+
}
|
|
78
|
+
if (t7 !== Symbol.for("react.early_return_sentinel")) return t7;
|
|
79
|
+
let t8;
|
|
80
|
+
if ($[19] !== icon || $[20] !== rest || $[21] !== style || $[22] !== t6) {
|
|
81
|
+
t8 = /* @__PURE__ */ jsx("span", {
|
|
82
|
+
className: t6,
|
|
83
|
+
style,
|
|
84
|
+
...rest,
|
|
85
|
+
children: icon
|
|
86
|
+
});
|
|
87
|
+
$[19] = icon;
|
|
88
|
+
$[20] = rest;
|
|
89
|
+
$[21] = style;
|
|
90
|
+
$[22] = t6;
|
|
91
|
+
$[23] = t8;
|
|
92
|
+
} else t8 = $[23];
|
|
93
|
+
return t8;
|
|
23
94
|
};
|
|
24
95
|
var ds_icon_default = DsIcon;
|
|
25
96
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ds-icon.js","names":["
|
|
1
|
+
{"version":3,"file":"ds-icon.js","names":["React","classNames","styles","DsIconProps","DsIcon","FC","t0","$","_c","filled","icon","rest","t1","t2","t3","t4","size","variant","className","style","undefined","t5","variantClass","t6","t7","Symbol","for","bb0","iconClass","SvgComponent","t8"],"sources":["../../../src/components/ds-icon/ds-icon.tsx"],"sourcesContent":["import type React from 'react';\nimport classNames from 'classnames';\nimport styles from './ds-icon.module.scss';\nimport type { DsIconProps } from './ds-icon.types';\n\n/**\n * Design system Icon component that renders Google Material Icons or inline SVGs\n */\nconst DsIcon: React.FC<DsIconProps> = ({\n\ticon,\n\tsize = 'medium',\n\tvariant = 'outlined',\n\tfilled,\n\tclassName = '',\n\tstyle = {},\n\t...rest\n}) => {\n\tconst variantClass = `material-symbols-${variant}`;\n\tconst iconClass = classNames(styles.icon, styles[size], { [styles.filled]: filled }, className);\n\n\tif (typeof icon === 'function') {\n\t\tconst SvgComponent = icon;\n\t\treturn <SvgComponent className={iconClass} style={style} {...rest} />;\n\t}\n\n\treturn (\n\t\t<span className={classNames(iconClass, variantClass)} style={style} {...rest}>\n\t\t\t{icon}\n\t\t</span>\n\t);\n};\n\nexport default DsIcon;\n"],"mappings":";;;;;;;;;AAQA,MAAMI,UAAgCE,OAAA;CAAA,MAAAC,IAAAC,EAAA,GAAA;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAC;AAAA,KAAAR,EAAA,OAAAD,IAAA;AAAC,GAAA,CAAAI,MAAAM,MAAAJ,IAAAK,SAAAJ,IAAAJ,QAAAS,WAAAJ,IAAAK,OAAAJ,OAAAJ,QAAAL;AAQtCC,IAAA,KAAAD;AAAAC,IAAA,KAAAE;AAAAF,IAAA,KAAAG;AAAAH,IAAA,KAAAI;AAAAJ,IAAA,KAAAK;AAAAL,IAAA,KAAAM;AAAAN,IAAA,KAAAO;AAAAP,IAAA,KAAAQ;QAAA;AAAAN,WAAAF,EAAA;AAAAG,SAAAH,EAAA;AAAAI,SAAAJ,EAAA;AAAAK,OAAAL,EAAA;AAAAM,OAAAN,EAAA;AAAAO,OAAAP,EAAA;AAAAQ,OAAAR,EAAA;;CANA,MAAAS,OAAAJ,OAAAQ,SAAA,WAAAR;CACA,MAAAK,UAAAJ,OAAAO,SAAA,aAAAP;CAEA,MAAAK,YAAAJ,OAAAM,SAAA,KAAAN;CAAc,IAAAO;AAAA,KAAAd,EAAA,OAAAQ,IAAA;AACdM,OAAAN,OAAAK,SAAA,EAAU,GAAVL;AAAUR,IAAA,KAAAQ;AAAAR,IAAA,KAAAc;OAAAA,MAAAd,EAAA;CAAV,MAAAY,QAAAE;CAGA,MAAAC,eAAqB,oBAAoBL;CAAU,IAAAM;CAAA,IAAAC;AAAA,KAAAjB,EAAA,QAAAW,aAAAX,EAAA,QAAAE,UAAAF,EAAA,QAAAG,QAAAH,EAAA,QAAAI,QAAAJ,EAAA,QAAAS,QAAAT,EAAA,QAAAY,SAAAZ,EAAA,QAAAe,cAAA;AAK3CE,OAAAC,OAA8DC,IAA9D,8BAA8D;AAAAC,OAAA;GAJtE,MAAAC,YAAkB3B,WAAWC,uBAAMQ,MAAOR,uBAAOc,OAAO,GAAGd,uBAAMO,SAAUA,QAAQ,EAAES,UAAU;AAE/F,OAAI,OAAOR,SAAS,YAAU;AAEtBc,SAAA,oBADcd;KACWkB,WAAAA;KAAkBT;KAAK,GAAMR;MAAQ;AAA9D,UAAAgB;;AAIUJ,QAAAtB,WAAW2B,WAAWN,aAAa;;AAAAf,IAAA,MAAAW;AAAAX,IAAA,MAAAE;AAAAF,IAAA,MAAAG;AAAAH,IAAA,MAAAI;AAAAJ,IAAA,MAAAS;AAAAT,IAAA,MAAAY;AAAAZ,IAAA,MAAAe;AAAAf,IAAA,MAAAgB;AAAAhB,IAAA,MAAAiB;QAAA;AAAAD,OAAAhB,EAAA;AAAAiB,OAAAjB,EAAA;;AAAA,KAAAiB,OAAAC,OAAAC,IAAA,8BAAA,CAAA,QAAAF;CAAA,IAAAM;AAAA,KAAAvB,EAAA,QAAAG,QAAAH,EAAA,QAAAI,QAAAJ,EAAA,QAAAY,SAAAZ,EAAA,QAAAgB,IAAA;AAApDO,OAAA,oBAAA;GAAiB,WAAAP;GAA4CJ;GAAK,GAAMR;aACtED;IACK;AAAAH,IAAA,MAAAG;AAAAH,IAAA,MAAAI;AAAAJ,IAAA,MAAAY;AAAAZ,IAAA,MAAAgB;AAAAhB,IAAA,MAAAuB;OAAAA,MAAAvB,EAAA;AAAA,QAFPuB;;AAMF,sBAAe1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ds-icon.types.d.cts","names":[],"sources":["../../../src/components/ds-icon/ds-icon.types.ts"],"sourcesContent":[],"mappings":";;;;cAGa;KACD,QAAA,WAAmB;AADlB,cAEA,YAFwE,EAAA,SAAA,CAAA,UAAA,EAAA,SAAA,CAAA;AACzE,KAEA,WAAA,
|
|
1
|
+
{"version":3,"file":"ds-icon.types.d.cts","names":[],"sources":["../../../src/components/ds-icon/ds-icon.types.ts"],"sourcesContent":[],"mappings":";;;;cAGa;KACD,QAAA,WAAmB;AADlB,cAEA,YAFwE,EAAA,SAAA,CAAA,UAAA,EAAA,SAAA,CAAA;AACzE,KAEA,WAAA,GAFQ,CAAW,OAEG,YAFM,CAAA,CAAA,MAAA,CAAA;AAC3B,KAGD,QAAA,GAHgD,QAChD,MAAA,OAGQ,aAHc,GAGE,CAHF,SAAY,GAGG,UAHH,KAAA,KAAA,KAAA,EAAA,GAAA,IAAA,GAAA,KAAA,EAE9C,CAAA,MAAY,OAEG,aAFK,CAAA;AACA,KAGR,QAAA,GAAW,QAHH,GAGc,KAAA,CAAM,iBAHpB,CAGsC,KAAA,CAAM,QAH5C,CAGqD,aAHrD,CAAA,CAAA;AAAgB,UAKnB,WAAA,CALmB;EAAa;;;EAGrC,IAAA,EAML,QANa;EAAG;;;;EAAkC,IAAA,CAAA,EAYjD,QAZiD;EAExC;;;;EAgCR,OAAM,CAAA,EAhBJ,WAgBI;EAKqB;;;;;;;;;;;;UAL3B,KAAA,CAAM;;;;oBAKI,KAAA,CAAM,WAAW,kBAAkB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ds-icon.types.js","names":[],"sources":["../../../src/components/ds-icon/ds-icon.types.ts"],"sourcesContent":["import type React from 'react';\nimport type { IconPrefix, materialIcons } from './material-icons';\n\nexport const iconSizes = ['tiny', 'small', 'medium', 'large', 'extra-large'] as const;\nexport type IconSize = (typeof iconSizes)[number];\nexport const iconVariants = ['outlined', 'rounded'] as const;\nexport type IconVariant = (typeof iconVariants)[number];\n\nexport type IconName = {\n\t[K in keyof typeof materialIcons]: K extends `${IconPrefix}::${infer Name}` ? Name : never;\n}[keyof typeof materialIcons];\n\nexport type IconType = IconName | React.FunctionComponent<React.SVGProps<SVGSVGElement>>;\n\nexport interface DsIconProps {\n\t/**\n\t * The icon to display. This can be a Material Icon name (e.g., 'home') or an SVG component.\n\t */\n\ticon: IconType;\n\n\t/**\n\t * The size of the icon\n\t * @default 'medium'\n\t */\n\tsize?: IconSize;\n\n\t/**\n\t * The variant of the Material Icon\n\t * @default 'outlined'\n\t */\n\tvariant?: IconVariant;\n\n\t/**\n\t * Whether the icon should be filled\n\t * @default false\n\t */\n\tfilled?: boolean;\n\n\t/**\n\t * Additional CSS class names\n\t */\n\tclassName?: string;\n\n\t/**\n\t * Additional styles to apply to the icon\n\t */\n\tstyle?: React.CSSProperties;\n\n\t/**\n\t * Optional click handler\n\t */\n\tonClick?: (event: React.MouseEvent<HTMLSpanElement | SVGSVGElement>) => void;\n}\n"],"mappings":";AAGA,
|
|
1
|
+
{"version":3,"file":"ds-icon.types.js","names":["React","IconPrefix","materialIcons","iconSizes","const","IconSize","iconVariants","IconVariant","IconName","K","Name","IconType","FunctionComponent","SVGProps","SVGSVGElement","DsIconProps","icon","size","variant","filled","className","style","CSSProperties","onClick","event","MouseEvent","HTMLSpanElement"],"sources":["../../../src/components/ds-icon/ds-icon.types.ts"],"sourcesContent":["import type React from 'react';\nimport type { IconPrefix, materialIcons } from './material-icons';\n\nexport const iconSizes = ['tiny', 'small', 'medium', 'large', 'extra-large'] as const;\nexport type IconSize = (typeof iconSizes)[number];\nexport const iconVariants = ['outlined', 'rounded'] as const;\nexport type IconVariant = (typeof iconVariants)[number];\n\nexport type IconName = {\n\t[K in keyof typeof materialIcons]: K extends `${IconPrefix}::${infer Name}` ? Name : never;\n}[keyof typeof materialIcons];\n\nexport type IconType = IconName | React.FunctionComponent<React.SVGProps<SVGSVGElement>>;\n\nexport interface DsIconProps {\n\t/**\n\t * The icon to display. This can be a Material Icon name (e.g., 'home') or an SVG component.\n\t */\n\ticon: IconType;\n\n\t/**\n\t * The size of the icon\n\t * @default 'medium'\n\t */\n\tsize?: IconSize;\n\n\t/**\n\t * The variant of the Material Icon\n\t * @default 'outlined'\n\t */\n\tvariant?: IconVariant;\n\n\t/**\n\t * Whether the icon should be filled\n\t * @default false\n\t */\n\tfilled?: boolean;\n\n\t/**\n\t * Additional CSS class names\n\t */\n\tclassName?: string;\n\n\t/**\n\t * Additional styles to apply to the icon\n\t */\n\tstyle?: React.CSSProperties;\n\n\t/**\n\t * Optional click handler\n\t */\n\tonClick?: (event: React.MouseEvent<HTMLSpanElement | SVGSVGElement>) => void;\n}\n"],"mappings":";AAGA,MAAaG,YAAY;CAAC;CAAQ;CAAS;CAAU;CAAS;CAAc;AAE5E,MAAaG,eAAe,CAAC,YAAY,UAAU"}
|