@drivenets/design-system 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/README.md +1 -1
- 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.d.ts +5 -5
- package/dist/components/ds-alert-banner/ds-alert-banner.d.ts.map +1 -1
- package/dist/components/ds-alert-banner/ds-alert-banner.types.d.cts.map +1 -1
- package/dist/components/ds-autocomplete/ds-autocomplete.cjs +218 -0
- package/dist/components/ds-autocomplete/ds-autocomplete.d.cts +22 -0
- package/dist/components/ds-autocomplete/ds-autocomplete.d.cts.map +1 -0
- package/dist/components/ds-autocomplete/ds-autocomplete.d.ts +22 -0
- package/dist/components/ds-autocomplete/ds-autocomplete.d.ts.map +1 -0
- package/dist/components/ds-autocomplete/ds-autocomplete.js +217 -0
- package/dist/components/ds-autocomplete/ds-autocomplete.js.map +1 -0
- package/dist/components/ds-autocomplete/ds-autocomplete.module.cjs +27 -0
- package/dist/components/ds-autocomplete/ds-autocomplete.module.js +27 -0
- package/dist/components/ds-autocomplete/ds-autocomplete.module.js.map +1 -0
- package/dist/components/ds-autocomplete/ds-autocomplete.types.d.cts +79 -0
- package/dist/components/ds-autocomplete/ds-autocomplete.types.d.cts.map +1 -0
- package/dist/components/ds-autocomplete/ds-autocomplete.types.d.ts +80 -0
- package/dist/components/ds-autocomplete/ds-autocomplete.types.d.ts.map +1 -0
- package/dist/components/ds-autocomplete/index.cjs +1 -0
- package/dist/components/ds-autocomplete/index.d.ts +2 -0
- package/dist/components/ds-autocomplete/index.js +1 -0
- package/dist/components/ds-avatar/ds-avatar.module.js.map +1 -1
- package/dist/components/ds-avatar-group/ds-avatar-group.module.js.map +1 -1
- 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-confirmation/ds-confirmation.cjs +20 -221
- package/dist/components/ds-confirmation/ds-confirmation.d.cts +22 -27
- package/dist/components/ds-confirmation/ds-confirmation.d.cts.map +1 -1
- package/dist/components/ds-confirmation/ds-confirmation.d.ts +22 -27
- package/dist/components/ds-confirmation/ds-confirmation.d.ts.map +1 -1
- package/dist/components/ds-confirmation/ds-confirmation.js +21 -221
- package/dist/components/ds-confirmation/ds-confirmation.js.map +1 -1
- package/dist/components/ds-confirmation/ds-confirmation.types.d.cts +2 -1
- package/dist/components/ds-confirmation/ds-confirmation.types.d.cts.map +1 -1
- package/dist/components/ds-confirmation/ds-confirmation.types.d.ts +2 -1
- package/dist/components/ds-confirmation/ds-confirmation.types.d.ts.map +1 -1
- package/dist/components/ds-date-input/ds-date-input.cjs +1 -1
- package/dist/components/ds-date-input/ds-date-input.d.cts +2 -2
- package/dist/components/ds-date-input/ds-date-input.d.ts +2 -2
- package/dist/components/ds-date-input/ds-date-input.js +1 -1
- package/dist/components/ds-drawer/ds-drawer.cjs +1 -1
- package/dist/components/ds-drawer/ds-drawer.d.cts +9 -9
- package/dist/components/ds-drawer/ds-drawer.d.cts.map +1 -1
- package/dist/components/ds-drawer/ds-drawer.d.ts +9 -9
- package/dist/components/ds-drawer/ds-drawer.js +1 -1
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.cjs +1 -1
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.js +1 -1
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.module.cjs +20 -20
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.module.js +20 -20
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.module.js.map +1 -1
- 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-form-control/ds-form-control.d.cts +8 -8
- package/dist/components/ds-form-control/ds-form-control.d.ts +8 -8
- package/dist/components/ds-loader/ds-loader.d.cts +2 -2
- package/dist/components/ds-loader/ds-loader.d.ts +2 -2
- package/dist/components/ds-modal/ds-modal.cjs +47 -48
- package/dist/components/ds-modal/ds-modal.d.cts +11 -10
- package/dist/components/ds-modal/ds-modal.d.cts.map +1 -1
- package/dist/components/ds-modal/ds-modal.d.ts +11 -10
- package/dist/components/ds-modal/ds-modal.d.ts.map +1 -1
- package/dist/components/ds-modal/ds-modal.js +47 -48
- package/dist/components/ds-modal/ds-modal.js.map +1 -1
- package/dist/components/ds-modal/ds-modal.module.cjs +24 -24
- package/dist/components/ds-modal/ds-modal.module.js +24 -24
- package/dist/components/ds-modal/ds-modal.module.js.map +1 -1
- package/dist/components/ds-modal/ds-modal.types.d.cts +10 -5
- package/dist/components/ds-modal/ds-modal.types.d.cts.map +1 -1
- package/dist/components/ds-modal/ds-modal.types.d.ts +10 -5
- package/dist/components/ds-modal/ds-modal.types.d.ts.map +1 -1
- package/dist/components/ds-panel/ds-panel.d.cts +2 -2
- package/dist/components/ds-panel/ds-panel.d.ts +2 -2
- package/dist/components/ds-select/ds-select.cjs +1 -1
- package/dist/components/ds-select/ds-select.d.cts +2 -2
- package/dist/components/ds-select/ds-select.js +1 -1
- package/dist/components/ds-skeleton/ds-skeleton-circle.d.cts +2 -2
- package/dist/components/ds-skeleton/ds-skeleton-circle.d.ts +2 -2
- package/dist/components/ds-skeleton/ds-skeleton-rect.d.cts +2 -2
- package/dist/components/ds-skeleton/ds-skeleton-rect.d.ts +2 -2
- package/dist/components/ds-skeleton/ds-skeleton-rect.d.ts.map +1 -1
- package/dist/components/ds-skeleton/ds-skeleton-text.d.cts +2 -2
- package/dist/components/ds-skeleton/ds-skeleton-text.d.ts +2 -2
- package/dist/components/ds-skeleton/ds-skeleton.d.cts +4 -4
- package/dist/components/ds-skeleton/ds-skeleton.d.ts +4 -4
- package/dist/components/ds-smart-tabs/ds-smart-tabs.d.cts +2 -2
- 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-stepper/components/ds-step-content.d.cts +2 -2
- package/dist/components/ds-stepper/components/ds-step-content.d.ts +2 -2
- package/dist/components/ds-stepper/components/ds-step-next-button.d.cts +2 -2
- package/dist/components/ds-stepper/components/ds-step-next-button.d.ts +2 -2
- package/dist/components/ds-stepper/components/ds-step.d.cts +2 -2
- package/dist/components/ds-stepper/components/ds-step.d.ts +2 -2
- package/dist/components/ds-stepper/ds-stepper.d.cts +2 -2
- package/dist/components/ds-stepper/ds-stepper.d.ts +2 -2
- package/dist/components/ds-table/ds-table.d.ts +2 -2
- package/dist/components/ds-table/filters/hooks/index.d.ts +1 -1
- package/dist/components/ds-table/filters/hooks/use-table-filters.cjs +180 -185
- package/dist/components/ds-table/filters/hooks/use-table-filters.d.cts +58 -25
- package/dist/components/ds-table/filters/hooks/use-table-filters.d.cts.map +1 -1
- package/dist/components/ds-table/filters/hooks/use-table-filters.d.ts +58 -25
- package/dist/components/ds-table/filters/hooks/use-table-filters.d.ts.map +1 -1
- package/dist/components/ds-table/filters/hooks/use-table-filters.js +180 -185
- package/dist/components/ds-table/filters/hooks/use-table-filters.js.map +1 -1
- package/dist/components/ds-table/filters/index.d.ts +1 -1
- package/dist/components/ds-table/index.d.ts +1 -1
- package/dist/components/ds-tabs/components/ds-tabs-content/ds-tabs-content.module.cjs +2 -2
- package/dist/components/ds-tabs/components/ds-tabs-content/ds-tabs-content.module.js +2 -2
- package/dist/components/ds-tabs/components/ds-tabs-content/ds-tabs-content.module.js.map +1 -1
- package/dist/components/ds-tabs/ds-tabs.d.cts +5 -5
- package/dist/components/ds-tabs/ds-tabs.d.ts +5 -5
- package/dist/components/ds-tag/ds-tag.d.cts +2 -2
- package/dist/components/ds-tag/ds-tag.d.ts +2 -2
- package/dist/components/ds-tag-filter/ds-tag-filter.d.cts +2 -2
- package/dist/components/ds-tag-filter/ds-tag-filter.d.ts +2 -2
- package/dist/components/ds-toggle/ds-toggle.d.cts +2 -2
- package/dist/components/ds-toggle/ds-toggle.d.ts +2 -2
- 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/index.cjs +4 -1
- package/dist/index.d.cts +4 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.js +4 -2
- package/dist/index.min.css +1 -1
- package/package.json +1 -1
- package/src/components/ds-autocomplete/ds-autocomplete.module.scss +257 -0
- package/src/components/ds-autocomplete/ds-autocomplete.tsx +130 -0
- package/src/components/ds-autocomplete/ds-autocomplete.types.tsx +76 -0
- package/src/components/ds-autocomplete/index.ts +2 -0
- package/src/components/ds-avatar/ds-avatar.module.scss +1 -1
- package/src/components/ds-avatar-group/ds-avatar-group.module.scss +1 -1
- package/src/components/ds-confirmation/ds-confirmation.tsx +11 -115
- package/src/components/ds-confirmation/ds-confirmation.types.tsx +2 -1
- package/src/components/ds-dropdown-menu/ds-dropdown-menu.module.scss +0 -1
- package/src/components/ds-modal/ds-modal.module.scss +123 -60
- package/src/components/ds-modal/ds-modal.tsx +5 -2
- package/src/components/ds-modal/ds-modal.types.tsx +14 -5
- package/src/components/ds-table/filters/hooks/index.ts +1 -1
- package/src/components/ds-table/filters/hooks/use-table-filters.ts +117 -116
- package/src/components/ds-tabs/components/ds-tabs-content/ds-tabs-content.module.scss +4 -0
- package/src/index.ts +1 -0
- package/src/styles/shared/_modal.scss +0 -123
- package/dist/components/ds-confirmation/ds-confirmation.module.cjs +0 -21
- package/dist/components/ds-confirmation/ds-confirmation.module.js +0 -21
- package/dist/components/ds-confirmation/ds-confirmation.module.js.map +0 -1
- package/src/components/ds-confirmation/ds-confirmation.module.scss +0 -58
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
//#region src/components/ds-autocomplete/ds-autocomplete.module.scss
|
|
2
|
+
var ds_autocomplete_module_default = {
|
|
3
|
+
"root": "_root_1ah6z_1",
|
|
4
|
+
"control": "_control_1ah6z_1",
|
|
5
|
+
"input": "_input_1ah6z_1",
|
|
6
|
+
"iconButton": "_iconButton_1ah6z_1",
|
|
7
|
+
"startAdornment": "_startAdornment_1ah6z_1",
|
|
8
|
+
"iconContainer": "_iconContainer_1ah6z_1",
|
|
9
|
+
"clearButton": "_clearButton_1ah6z_1",
|
|
10
|
+
"trigger": "_trigger_1ah6z_1",
|
|
11
|
+
"positioner": "_positioner_1ah6z_1",
|
|
12
|
+
"content": "_content_1ah6z_1",
|
|
13
|
+
"expand": "_expand_1ah6z_1",
|
|
14
|
+
"collapse": "_collapse_1ah6z_1",
|
|
15
|
+
"itemGroup": "_itemGroup_1ah6z_1",
|
|
16
|
+
"item": "_item_1ah6z_1",
|
|
17
|
+
"indicator": "_indicator_1ah6z_1",
|
|
18
|
+
"itemIcon": "_itemIcon_1ah6z_1",
|
|
19
|
+
"itemText": "_itemText_1ah6z_1",
|
|
20
|
+
"noMatches": "_noMatches_1ah6z_1",
|
|
21
|
+
"disabled": "_disabled_1ah6z_1",
|
|
22
|
+
"invalid": "_invalid_1ah6z_1"
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
//#endregion
|
|
26
|
+
export { ds_autocomplete_module_default as default };
|
|
27
|
+
//# sourceMappingURL=ds-autocomplete.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ds-autocomplete.module.js","names":[],"sources":["../../../file:/home/runner/work/design-system/design-system/packages/design-system/src/components/ds-autocomplete/ds-autocomplete.module.scss","../../../file:/home/runner/work/design-system/design-system/packages/design-system/src/styles/shared/_input.scss","../../../file:/home/runner/work/design-system/design-system/packages/design-system/src/styles/_typography.scss","../../../file:/home/runner/work/design-system/design-system/packages/design-system/src/styles/shared/_dropdown.scss","../../../file:/home/runner/work/design-system/design-system/packages/design-system/src/styles/mixins/_bounding-box.scss"],"sourcesContent":["@use '../../styles/shared/dropdown';\n@use '../../styles/shared/input';\n\n$autocomplete-input-height: 36px;\n$autocomplete-max-visible-items: 4;\n$autocomplete-item-height: 38px;\n$autocomplete-dropdown-max-height: calc($autocomplete-max-visible-items * $autocomplete-item-height);\n$autocomplete-trigger-size: 24px;\n$autocomplete-trigger-border-radius: 4px;\n$autocomplete-highlight-border-radius: 2px;\n$autocomplete-animation-duration: 0.2s;\n$autocomplete-animation-translate: -8px;\n$autocomplete-outline-width: 2px;\n$autocomplete-outline-offset: 2px;\n$autocomplete-rotation-open: 180deg;\n$autocomplete-opacity-hidden: 0;\n$autocomplete-opacity-visible: 1;\n\n.root {\n\tposition: relative;\n\twidth: 100%;\n\tdisplay: inline-flex;\n\tflex-direction: column;\n}\n\n.control {\n\t@include input.base-input-container;\n\t@include input.input-container-states;\n\tdisplay: flex;\n\talign-items: center;\n\tgap: var(--spacing-3xs);\n\theight: $autocomplete-input-height;\n\tmin-height: $autocomplete-input-height;\n\tmax-height: $autocomplete-input-height;\n\n\t&[data-focus] {\n\t\tborder-color: var(--form-control-border-color, var(--color-border-action-primary)) !important;\n\t}\n\n\t&[data-invalid] {\n\t\tborder-color: var(--color-background-danger-strong);\n\t}\n}\n\n.input {\n\t@include input.base-input;\n\tflex: 1;\n\tmin-width: 0;\n\toutline: none;\n\n\t&::placeholder {\n\t\tcolor: var(--color-font-placeholder);\n\t}\n}\n\n.startAdornment {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tcolor: var(--color-background-action);\n\tflex-shrink: 0;\n}\n\n.iconContainer {\n\tdisplay: flex;\n\talign-items: center;\n\tgap: var(--spacing-3xs);\n\tflex-shrink: 0;\n}\n\n.clearButton {\n\t@include input.icon-button;\n\tcursor: pointer;\n\topacity: $autocomplete-opacity-hidden;\n\tvisibility: hidden;\n\ttransition: opacity $autocomplete-animation-duration ease;\n\n\t&:hover {\n\t\tcolor: var(--color-background-action-hover);\n\t}\n}\n\n.control:hover .clearButton,\n.control[data-focus] .clearButton {\n\topacity: $autocomplete-opacity-visible;\n\tvisibility: visible;\n}\n\n.trigger {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tcolor: var(--color-background-deselected);\n\ttransition:\n\t\ttransform $autocomplete-animation-duration ease-in-out,\n\t\tbackground-color $autocomplete-animation-duration ease,\n\t\tcolor $autocomplete-animation-duration ease;\n\tcursor: pointer;\n\tbackground: transparent;\n\tborder: none;\n\tpadding: 0;\n\tborder-radius: $autocomplete-trigger-border-radius;\n\twidth: $autocomplete-trigger-size;\n\theight: $autocomplete-trigger-size;\n\n\t&:hover {\n\t\tcolor: var(--color-background-deselected-hover);\n\t\tbackground: var(--color-background-action-hover-weak);\n\t}\n\n\t&[data-state='open'] {\n\t\ttransform: rotate($autocomplete-rotation-open);\n\t\tcolor: var(--color-background-deselected-hover);\n\t\tbackground: var(--color-background-action-hover-weak);\n\t}\n\n\t&:focus-visible {\n\t\toutline: $autocomplete-outline-width solid var(--color-focus);\n\t\toutline-offset: $autocomplete-outline-offset;\n\t}\n}\n\n.control[data-focus] .trigger {\n\tcolor: var(--color-background-deselected-hover);\n\tbackground: var(--color-background-action-hover-weak);\n}\n\n.positioner {\n\tz-index: var(--z-index-dropdown, 9999);\n\twidth: var(--reference-width);\n}\n\n.content {\n\t@include dropdown.dropdown-content;\n\toverflow: hidden;\n\tanimation: expand $autocomplete-animation-duration ease;\n\twidth: 100%;\n\tmin-width: var(--reference-width);\n\tmax-height: $autocomplete-dropdown-max-height;\n\n\t&[data-state='open'] {\n\t\tanimation: expand $autocomplete-animation-duration ease;\n\t}\n\n\t&[data-state='closed'] {\n\t\tanimation: collapse $autocomplete-animation-duration ease;\n\t}\n}\n\n.itemGroup {\n\toverflow-y: auto;\n\toverflow-x: hidden;\n\tmax-height: $autocomplete-dropdown-max-height;\n\tscrollbar-width: thin;\n}\n\n.item {\n\t@include dropdown.dropdown-item;\n\tdisplay: flex;\n\talign-items: center;\n\tgap: var(--spacing-xs);\n\theight: $autocomplete-item-height;\n\tmin-height: $autocomplete-item-height;\n\n\t&[data-highlighted] {\n\t\tbackground: var(--color-background-secondary-selected-weak);\n\t}\n}\n\n.itemIcon {\n\tcolor: var(--color-background-deselected);\n\tflex-shrink: 0;\n\tdisplay: flex;\n\talign-items: center;\n}\n\n.itemText {\n\tflex: 1;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\twhite-space: nowrap;\n\n\tmark {\n\t\tbackground-color: var(--color-data-yellow);\n\t\tcolor: var(--color-font-main);\n\t\tfont-weight: var(--font-weight-medium);\n\t\tpadding: 0;\n\t\tborder-radius: $autocomplete-highlight-border-radius;\n\t}\n}\n\n.noMatches {\n\tpadding: var(--spacing-xs);\n\tcolor: var(--color-font-disabled);\n\ttext-align: center;\n\tfont-size: var(--font-size-sm);\n}\n\n.disabled {\n\t.control {\n\t\tcolor: var(--color-background-deselected);\n\t\tbackground: var(--color-background-secondary);\n\t\tborder-color: var(--color-border-disabled);\n\t\tcursor: not-allowed;\n\n\t\t.input {\n\t\t\tcolor: var(--color-font-disabled);\n\t\t\tcursor: not-allowed;\n\t\t}\n\n\t\t.trigger {\n\t\t\tcolor: var(--color-background-disable);\n\t\t\tcursor: not-allowed;\n\t\t\tbackground: transparent;\n\n\t\t\t&:hover {\n\t\t\t\tbackground: transparent;\n\t\t\t\tcolor: var(--color-background-disable);\n\t\t\t}\n\t\t}\n\t}\n}\n\n.invalid {\n\t.control {\n\t\tborder-color: var(--color-background-danger-strong);\n\n\t\t&:hover,\n\t\t&[data-focus] {\n\t\t\tborder-color: var(--color-background-danger-strong) !important;\n\t\t}\n\t}\n}\n\n@keyframes expand {\n\t0% {\n\t\topacity: $autocomplete-opacity-hidden;\n\t\ttransform: translateY($autocomplete-animation-translate);\n\t}\n\n\t100% {\n\t\topacity: $autocomplete-opacity-visible;\n\t\ttransform: translateY(0);\n\t}\n}\n\n@keyframes collapse {\n\t0% {\n\t\topacity: $autocomplete-opacity-visible;\n\t\ttransform: translateY(0);\n\t}\n\n\t100% {\n\t\topacity: $autocomplete-opacity-hidden;\n\t\ttransform: translateY($autocomplete-animation-translate);\n\t}\n}\n"],"mappings":""}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { IconName } from "../ds-icon/ds-icon.types.cjs";
|
|
2
|
+
import React from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/ds-autocomplete/ds-autocomplete.types.d.ts
|
|
5
|
+
interface DsAutocompleteOption {
|
|
6
|
+
/**
|
|
7
|
+
* Label to display in the autocomplete dropdown
|
|
8
|
+
*/
|
|
9
|
+
label: string;
|
|
10
|
+
/**
|
|
11
|
+
* Value to return when the option is selected
|
|
12
|
+
*/
|
|
13
|
+
value: string;
|
|
14
|
+
/**
|
|
15
|
+
* Optional icon to display next to the label
|
|
16
|
+
*/
|
|
17
|
+
icon?: IconName;
|
|
18
|
+
}
|
|
19
|
+
interface DsAutocompleteProps {
|
|
20
|
+
/**
|
|
21
|
+
* Unique identifier for the autocomplete component
|
|
22
|
+
*/
|
|
23
|
+
id?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Options to display in the dropdown
|
|
26
|
+
*/
|
|
27
|
+
options: DsAutocompleteOption[];
|
|
28
|
+
/**
|
|
29
|
+
* Additional styles to apply to the component
|
|
30
|
+
*/
|
|
31
|
+
style?: React.CSSProperties;
|
|
32
|
+
/**
|
|
33
|
+
* Additional CSS class names
|
|
34
|
+
*/
|
|
35
|
+
className?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Placeholder text to display when input is empty
|
|
38
|
+
*/
|
|
39
|
+
placeholder?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Whether the autocomplete is disabled
|
|
42
|
+
*/
|
|
43
|
+
disabled?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Whether the autocomplete is in an invalid state
|
|
46
|
+
*/
|
|
47
|
+
invalid?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Event handler called when the value changes (when an option is selected or custom value is entered)
|
|
50
|
+
*/
|
|
51
|
+
onValueChange?: (value: string) => void;
|
|
52
|
+
/**
|
|
53
|
+
* Event handler called when the input value changes (on every keystroke)
|
|
54
|
+
*/
|
|
55
|
+
onInputValueChange?: (value: string) => void;
|
|
56
|
+
/**
|
|
57
|
+
* Message to display when no options match the input
|
|
58
|
+
* @default 'No matches found'
|
|
59
|
+
*/
|
|
60
|
+
noMatchesMessage?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Whether to highlight the matching text in the dropdown options
|
|
63
|
+
* @default true
|
|
64
|
+
*/
|
|
65
|
+
highlightMatch?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Whether to show the dropdown trigger (arrow) button.
|
|
68
|
+
* If false, the dropdown will only open on typing.
|
|
69
|
+
* @default true
|
|
70
|
+
*/
|
|
71
|
+
showTrigger?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Content to display at the start of the input (e.g., a search icon).
|
|
74
|
+
*/
|
|
75
|
+
startAdornment?: React.ReactNode;
|
|
76
|
+
}
|
|
77
|
+
//#endregion
|
|
78
|
+
export { DsAutocompleteOption, DsAutocompleteProps };
|
|
79
|
+
//# sourceMappingURL=ds-autocomplete.types.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ds-autocomplete.types.d.cts","names":[],"sources":["../../../src/components/ds-autocomplete/ds-autocomplete.types.tsx"],"sourcesContent":[],"mappings":";;;;UAGiB,oBAAA;;AAAjB;AAeA;EAQU,KAAA,EAAA,MAAA;EAID;;;;;;;SAfD;;UAGS,mBAAA;;;;;;;;WAQP;;;;UAID,KAAA,CAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBA4CG,KAAA,CAAM"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { IconName } from "../ds-icon/ds-icon.types.js";
|
|
2
|
+
import "../ds-icon/index.js";
|
|
3
|
+
import React from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/components/ds-autocomplete/ds-autocomplete.types.d.ts
|
|
6
|
+
interface DsAutocompleteOption {
|
|
7
|
+
/**
|
|
8
|
+
* Label to display in the autocomplete dropdown
|
|
9
|
+
*/
|
|
10
|
+
label: string;
|
|
11
|
+
/**
|
|
12
|
+
* Value to return when the option is selected
|
|
13
|
+
*/
|
|
14
|
+
value: string;
|
|
15
|
+
/**
|
|
16
|
+
* Optional icon to display next to the label
|
|
17
|
+
*/
|
|
18
|
+
icon?: IconName;
|
|
19
|
+
}
|
|
20
|
+
interface DsAutocompleteProps {
|
|
21
|
+
/**
|
|
22
|
+
* Unique identifier for the autocomplete component
|
|
23
|
+
*/
|
|
24
|
+
id?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Options to display in the dropdown
|
|
27
|
+
*/
|
|
28
|
+
options: DsAutocompleteOption[];
|
|
29
|
+
/**
|
|
30
|
+
* Additional styles to apply to the component
|
|
31
|
+
*/
|
|
32
|
+
style?: React.CSSProperties;
|
|
33
|
+
/**
|
|
34
|
+
* Additional CSS class names
|
|
35
|
+
*/
|
|
36
|
+
className?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Placeholder text to display when input is empty
|
|
39
|
+
*/
|
|
40
|
+
placeholder?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Whether the autocomplete is disabled
|
|
43
|
+
*/
|
|
44
|
+
disabled?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Whether the autocomplete is in an invalid state
|
|
47
|
+
*/
|
|
48
|
+
invalid?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Event handler called when the value changes (when an option is selected or custom value is entered)
|
|
51
|
+
*/
|
|
52
|
+
onValueChange?: (value: string) => void;
|
|
53
|
+
/**
|
|
54
|
+
* Event handler called when the input value changes (on every keystroke)
|
|
55
|
+
*/
|
|
56
|
+
onInputValueChange?: (value: string) => void;
|
|
57
|
+
/**
|
|
58
|
+
* Message to display when no options match the input
|
|
59
|
+
* @default 'No matches found'
|
|
60
|
+
*/
|
|
61
|
+
noMatchesMessage?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Whether to highlight the matching text in the dropdown options
|
|
64
|
+
* @default true
|
|
65
|
+
*/
|
|
66
|
+
highlightMatch?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Whether to show the dropdown trigger (arrow) button.
|
|
69
|
+
* If false, the dropdown will only open on typing.
|
|
70
|
+
* @default true
|
|
71
|
+
*/
|
|
72
|
+
showTrigger?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Content to display at the start of the input (e.g., a search icon).
|
|
75
|
+
*/
|
|
76
|
+
startAdornment?: React.ReactNode;
|
|
77
|
+
}
|
|
78
|
+
//#endregion
|
|
79
|
+
export { DsAutocompleteOption, DsAutocompleteProps };
|
|
80
|
+
//# sourceMappingURL=ds-autocomplete.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ds-autocomplete.types.d.ts","names":[],"sources":["../../../src/components/ds-autocomplete/ds-autocomplete.types.tsx"],"sourcesContent":[],"mappings":";;;;;UAGiB,oBAAA;;;AAAjB;EAeiB,KAAA,EAAA,MAAA;EAQP;;;EAgDuB,KAAA,EAAA,MAAA;;;;SA3DzB;;UAGS,mBAAA;;;;;;;;WAQP;;;;UAID,KAAA,CAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBA4CG,KAAA,CAAM"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const require_ds_autocomplete = require('./ds-autocomplete.cjs');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { DsAutocomplete } from "./ds-autocomplete.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ds-avatar.module.js","names":[],"sources":["../../../file:/home/runner/work/design-system/design-system/packages/design-system/src/components/ds-avatar/ds-avatar.module.scss","../../../file:/home/runner/work/design-system/design-system/packages/design-system/src/components/ds-avatar/_mixins.scss"],"sourcesContent":["@
|
|
1
|
+
{"version":3,"file":"ds-avatar.module.js","names":[],"sources":["../../../file:/home/runner/work/design-system/design-system/packages/design-system/src/components/ds-avatar/ds-avatar.module.scss","../../../file:/home/runner/work/design-system/design-system/packages/design-system/src/components/ds-avatar/_mixins.scss"],"sourcesContent":["@use './mixins' as *;\n\n.avatar {\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: center;\n\tposition: relative;\n\toverflow: hidden;\n\tbackground-color: var(--color-background-deselected);\n\tcolor: var(--color-font-on-action);\n\tflex-shrink: 0;\n\tuser-select: none;\n\n\t&.circle {\n\t\tborder-radius: 50%;\n\t}\n\n\t&.rounded {\n\t\t&.xsm,\n\t\t&.sm {\n\t\t\tborder-radius: $avatar-border-radius-small;\n\t\t}\n\t\t&.regular,\n\t\t&.md,\n\t\t&.lg,\n\t\t&.xl {\n\t\t\tborder-radius: $avatar-border-radius-large;\n\t\t}\n\t}\n\n\t@include avatar-sizes;\n\n\timg {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tobject-fit: cover;\n\t\tdisplay: block;\n\t}\n\n\t.fallback {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tfont-weight: var(--font-weight-medium);\n\t\ttext-transform: uppercase;\n\t}\n}\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ds-avatar-group.module.js","names":[],"sources":["../../../file:/home/runner/work/design-system/design-system/packages/design-system/src/components/ds-avatar-group/ds-avatar-group.module.scss","../../../file:/home/runner/work/design-system/design-system/packages/design-system/src/components/ds-avatar/_mixins.scss"],"sourcesContent":["@
|
|
1
|
+
{"version":3,"file":"ds-avatar-group.module.js","names":[],"sources":["../../../file:/home/runner/work/design-system/design-system/packages/design-system/src/components/ds-avatar-group/ds-avatar-group.module.scss","../../../file:/home/runner/work/design-system/design-system/packages/design-system/src/components/ds-avatar/_mixins.scss"],"sourcesContent":["@use '../ds-avatar/mixins' as *;\n\n.avatarGroup {\n\tdisplay: flex;\n\talign-items: center;\n\n\t.avatarItem {\n\t\tborder: $avatar-border-width solid var(--color-background);\n\n\t\t&:not(:first-child) {\n\t\t\tmargin-left: $avatar-overlap-default;\n\t\t}\n\n\t\t&.xsm:not(:first-child) {\n\t\t\tmargin-left: $avatar-overlap-xsm;\n\t\t}\n\n\t\t&.sm:not(:first-child) {\n\t\t\tmargin-left: $avatar-overlap-sm;\n\t\t}\n\t}\n\n\t.moreAvatar {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\tbackground-color: var(--color-background);\n\t\tcolor: var(--color-font-action);\n\t\tborder: $avatar-border-width solid var(--color-background);\n\t\tmargin-left: $avatar-overlap-default;\n\t\tfont-weight: var(--font-weight-medium);\n\t\tz-index: 1;\n\t\tcursor: default;\n\t\tflex-shrink: 0;\n\n\t\t&.circle {\n\t\t\tborder-radius: 50%;\n\t\t}\n\n\t\t&.rounded {\n\t\t\t&.xsm,\n\t\t\t&.sm {\n\t\t\t\tborder-radius: $avatar-border-radius-small;\n\t\t\t}\n\t\t\t&.regular,\n\t\t\t&.md,\n\t\t\t&.lg,\n\t\t\t&.xl {\n\t\t\t\tborder-radius: $avatar-border-radius-large;\n\t\t\t}\n\t\t}\n\n\t\t@include avatar-sizes;\n\n\t\t&.xsm {\n\t\t\tmargin-left: $avatar-overlap-xsm;\n\t\t}\n\n\t\t&.sm {\n\t\t\tmargin-left: $avatar-overlap-sm;\n\t\t}\n\t}\n\n\t.tooltipList {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tgap: var(--spacing-3xs);\n\t\tpadding: var(--spacing-3xs) 0;\n\t}\n}\n"],"mappings":""}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DsButtonUnifiedProps } from "./ds-button.types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime11 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/ds-button/ds-button.d.ts
|
|
5
|
-
declare const DsButton: (props: DsButtonUnifiedProps) =>
|
|
5
|
+
declare const DsButton: (props: DsButtonUnifiedProps) => react_jsx_runtime11.JSX.Element;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { DsButton };
|
|
8
8
|
//# sourceMappingURL=ds-button.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ds-button.d.cts","names":[],"sources":["../../../src/components/ds-button/ds-button.tsx"],"sourcesContent":[],"mappings":";;;;cAIM,kBAAmB,yBAAoB,
|
|
1
|
+
{"version":3,"file":"ds-button.d.cts","names":[],"sources":["../../../src/components/ds-button/ds-button.tsx"],"sourcesContent":[],"mappings":";;;;cAIM,kBAAmB,yBAAoB,mBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -1,235 +1,34 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const
|
|
3
|
-
require('../ds-icon/index.cjs');
|
|
4
|
-
const require_ds_typography = require('../ds-typography/ds-typography.cjs');
|
|
5
|
-
const require_ds_confirmation_module = require('./ds-confirmation.module.cjs');
|
|
2
|
+
const require_ds_modal = require('../ds-modal/ds-modal.cjs');
|
|
6
3
|
let react_compiler_runtime = require("react/compiler-runtime");
|
|
7
|
-
let classnames = require("classnames");
|
|
8
|
-
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
9
4
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
|
-
let __ark_ui_react_portal = require("@ark-ui/react/portal");
|
|
11
|
-
let __ark_ui_react_dialog = require("@ark-ui/react/dialog");
|
|
12
5
|
|
|
13
6
|
//#region src/components/ds-confirmation/ds-confirmation.tsx
|
|
14
7
|
/**
|
|
15
|
-
*
|
|
8
|
+
* @deprecated DsConfirmation is deprecated. Use DsModal instead.
|
|
9
|
+
* @see {@link ../ds-modal} for the replacement component.
|
|
16
10
|
*/
|
|
17
|
-
const DsConfirmation = (
|
|
18
|
-
const $ = (0, react_compiler_runtime.c)(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
onOpenChange(details.open);
|
|
24
|
-
};
|
|
25
|
-
$[0] = onOpenChange;
|
|
26
|
-
$[1] = t1;
|
|
27
|
-
} else t1 = $[1];
|
|
28
|
-
const handleOpenChange = t1;
|
|
29
|
-
let t2;
|
|
30
|
-
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
31
|
-
t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ark_ui_react_dialog.Dialog.Backdrop, { className: require_ds_confirmation_module.default.overlay });
|
|
32
|
-
$[2] = t2;
|
|
33
|
-
} else t2 = $[2];
|
|
34
|
-
let t3;
|
|
35
|
-
if ($[3] !== className) {
|
|
36
|
-
t3 = (0, classnames.default)(require_ds_confirmation_module.default.modal, className);
|
|
37
|
-
$[3] = className;
|
|
38
|
-
$[4] = t3;
|
|
39
|
-
} else t3 = $[4];
|
|
40
|
-
let t4;
|
|
41
|
-
if ($[5] !== children || $[6] !== style) {
|
|
42
|
-
t4 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
43
|
-
style,
|
|
44
|
-
className: require_ds_confirmation_module.default.content,
|
|
45
|
-
children
|
|
46
|
-
});
|
|
47
|
-
$[5] = children;
|
|
48
|
-
$[6] = style;
|
|
49
|
-
$[7] = t4;
|
|
50
|
-
} else t4 = $[7];
|
|
51
|
-
let t5;
|
|
52
|
-
if ($[8] !== t3 || $[9] !== t4) {
|
|
53
|
-
t5 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__ark_ui_react_portal.Portal, { children: [t2, /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ark_ui_react_dialog.Dialog.Positioner, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ark_ui_react_dialog.Dialog.Content, {
|
|
54
|
-
className: t3,
|
|
55
|
-
children: t4
|
|
56
|
-
}) })] });
|
|
57
|
-
$[8] = t3;
|
|
58
|
-
$[9] = t4;
|
|
59
|
-
$[10] = t5;
|
|
60
|
-
} else t5 = $[10];
|
|
61
|
-
let t6;
|
|
62
|
-
if ($[11] !== handleOpenChange || $[12] !== open || $[13] !== t5) {
|
|
63
|
-
t6 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ark_ui_react_dialog.Dialog.Root, {
|
|
64
|
-
open,
|
|
65
|
-
onOpenChange: handleOpenChange,
|
|
66
|
-
modal: true,
|
|
11
|
+
const DsConfirmation = (props) => {
|
|
12
|
+
const $ = (0, react_compiler_runtime.c)(2);
|
|
13
|
+
let t0;
|
|
14
|
+
if ($[0] !== props) {
|
|
15
|
+
t0 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ds_modal.default, {
|
|
16
|
+
columns: 4,
|
|
67
17
|
closeOnEscape: true,
|
|
68
18
|
closeOnInteractOutside: true,
|
|
69
|
-
|
|
70
|
-
});
|
|
71
|
-
$[11] = handleOpenChange;
|
|
72
|
-
$[12] = open;
|
|
73
|
-
$[13] = t5;
|
|
74
|
-
$[14] = t6;
|
|
75
|
-
} else t6 = $[14];
|
|
76
|
-
return t6;
|
|
77
|
-
};
|
|
78
|
-
const Header = (t0) => {
|
|
79
|
-
const $ = (0, react_compiler_runtime.c)(6);
|
|
80
|
-
const { style, className, children } = t0;
|
|
81
|
-
let t1;
|
|
82
|
-
if ($[0] !== className) {
|
|
83
|
-
t1 = (0, classnames.default)(require_ds_confirmation_module.default.header, className);
|
|
84
|
-
$[0] = className;
|
|
85
|
-
$[1] = t1;
|
|
86
|
-
} else t1 = $[1];
|
|
87
|
-
let t2;
|
|
88
|
-
if ($[2] !== children || $[3] !== style || $[4] !== t1) {
|
|
89
|
-
t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
90
|
-
style,
|
|
91
|
-
className: t1,
|
|
92
|
-
children
|
|
93
|
-
});
|
|
94
|
-
$[2] = children;
|
|
95
|
-
$[3] = style;
|
|
96
|
-
$[4] = t1;
|
|
97
|
-
$[5] = t2;
|
|
98
|
-
} else t2 = $[5];
|
|
99
|
-
return t2;
|
|
100
|
-
};
|
|
101
|
-
const Title = (t0) => {
|
|
102
|
-
const $ = (0, react_compiler_runtime.c)(8);
|
|
103
|
-
const { style, className, children } = t0;
|
|
104
|
-
let t1;
|
|
105
|
-
if ($[0] !== className) {
|
|
106
|
-
t1 = (0, classnames.default)(require_ds_confirmation_module.default.title, className);
|
|
107
|
-
$[0] = className;
|
|
108
|
-
$[1] = t1;
|
|
109
|
-
} else t1 = $[1];
|
|
110
|
-
let t2;
|
|
111
|
-
if ($[2] !== children) {
|
|
112
|
-
t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ds_typography.default, {
|
|
113
|
-
variant: "heading4",
|
|
114
|
-
children
|
|
115
|
-
});
|
|
116
|
-
$[2] = children;
|
|
117
|
-
$[3] = t2;
|
|
118
|
-
} else t2 = $[3];
|
|
119
|
-
let t3;
|
|
120
|
-
if ($[4] !== style || $[5] !== t1 || $[6] !== t2) {
|
|
121
|
-
t3 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ark_ui_react_dialog.Dialog.Title, {
|
|
122
|
-
className: t1,
|
|
123
|
-
style,
|
|
124
|
-
asChild: true,
|
|
125
|
-
children: t2
|
|
126
|
-
});
|
|
127
|
-
$[4] = style;
|
|
128
|
-
$[5] = t1;
|
|
129
|
-
$[6] = t2;
|
|
130
|
-
$[7] = t3;
|
|
131
|
-
} else t3 = $[7];
|
|
132
|
-
return t3;
|
|
133
|
-
};
|
|
134
|
-
const CloseTrigger = (t0) => {
|
|
135
|
-
const $ = (0, react_compiler_runtime.c)(4);
|
|
136
|
-
const { style, className } = t0;
|
|
137
|
-
let t1;
|
|
138
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
139
|
-
t1 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ds_icon.default, {
|
|
140
|
-
icon: "close",
|
|
141
|
-
size: "small"
|
|
142
|
-
});
|
|
143
|
-
$[0] = t1;
|
|
144
|
-
} else t1 = $[0];
|
|
145
|
-
let t2;
|
|
146
|
-
if ($[1] !== className || $[2] !== style) {
|
|
147
|
-
t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ark_ui_react_dialog.Dialog.CloseTrigger, {
|
|
148
|
-
style,
|
|
149
|
-
className,
|
|
150
|
-
children: t1
|
|
151
|
-
});
|
|
152
|
-
$[1] = className;
|
|
153
|
-
$[2] = style;
|
|
154
|
-
$[3] = t2;
|
|
155
|
-
} else t2 = $[3];
|
|
156
|
-
return t2;
|
|
157
|
-
};
|
|
158
|
-
const Body = (t0) => {
|
|
159
|
-
const $ = (0, react_compiler_runtime.c)(6);
|
|
160
|
-
const { style, className, children } = t0;
|
|
161
|
-
let t1;
|
|
162
|
-
if ($[0] !== className) {
|
|
163
|
-
t1 = (0, classnames.default)(require_ds_confirmation_module.default.body, className);
|
|
164
|
-
$[0] = className;
|
|
165
|
-
$[1] = t1;
|
|
166
|
-
} else t1 = $[1];
|
|
167
|
-
let t2;
|
|
168
|
-
if ($[2] !== children || $[3] !== style || $[4] !== t1) {
|
|
169
|
-
t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
170
|
-
style,
|
|
171
|
-
className: t1,
|
|
172
|
-
children
|
|
173
|
-
});
|
|
174
|
-
$[2] = children;
|
|
175
|
-
$[3] = style;
|
|
176
|
-
$[4] = t1;
|
|
177
|
-
$[5] = t2;
|
|
178
|
-
} else t2 = $[5];
|
|
179
|
-
return t2;
|
|
180
|
-
};
|
|
181
|
-
const Footer = (t0) => {
|
|
182
|
-
const $ = (0, react_compiler_runtime.c)(6);
|
|
183
|
-
const { style, className, children } = t0;
|
|
184
|
-
let t1;
|
|
185
|
-
if ($[0] !== className) {
|
|
186
|
-
t1 = (0, classnames.default)(require_ds_confirmation_module.default.footer, className);
|
|
187
|
-
$[0] = className;
|
|
188
|
-
$[1] = t1;
|
|
189
|
-
} else t1 = $[1];
|
|
190
|
-
let t2;
|
|
191
|
-
if ($[2] !== children || $[3] !== style || $[4] !== t1) {
|
|
192
|
-
t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
193
|
-
style,
|
|
194
|
-
className: t1,
|
|
195
|
-
children
|
|
196
|
-
});
|
|
197
|
-
$[2] = children;
|
|
198
|
-
$[3] = style;
|
|
199
|
-
$[4] = t1;
|
|
200
|
-
$[5] = t2;
|
|
201
|
-
} else t2 = $[5];
|
|
202
|
-
return t2;
|
|
203
|
-
};
|
|
204
|
-
const Actions = (t0) => {
|
|
205
|
-
const $ = (0, react_compiler_runtime.c)(6);
|
|
206
|
-
const { style, className, children } = t0;
|
|
207
|
-
let t1;
|
|
208
|
-
if ($[0] !== className) {
|
|
209
|
-
t1 = (0, classnames.default)(require_ds_confirmation_module.default.actions, className);
|
|
210
|
-
$[0] = className;
|
|
211
|
-
$[1] = t1;
|
|
212
|
-
} else t1 = $[1];
|
|
213
|
-
let t2;
|
|
214
|
-
if ($[2] !== children || $[3] !== style || $[4] !== t1) {
|
|
215
|
-
t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
216
|
-
style,
|
|
217
|
-
className: t1,
|
|
218
|
-
children
|
|
19
|
+
...props
|
|
219
20
|
});
|
|
220
|
-
$[
|
|
221
|
-
$[
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
} else t2 = $[5];
|
|
225
|
-
return t2;
|
|
21
|
+
$[0] = props;
|
|
22
|
+
$[1] = t0;
|
|
23
|
+
} else t0 = $[1];
|
|
24
|
+
return t0;
|
|
226
25
|
};
|
|
227
|
-
DsConfirmation.Header = Header;
|
|
228
|
-
DsConfirmation.Title = Title;
|
|
229
|
-
DsConfirmation.CloseTrigger = CloseTrigger;
|
|
230
|
-
DsConfirmation.Body = Body;
|
|
231
|
-
DsConfirmation.Footer = Footer;
|
|
232
|
-
DsConfirmation.Actions = Actions;
|
|
26
|
+
DsConfirmation.Header = require_ds_modal.default.Header;
|
|
27
|
+
DsConfirmation.Title = require_ds_modal.default.Title;
|
|
28
|
+
DsConfirmation.CloseTrigger = require_ds_modal.default.CloseTrigger;
|
|
29
|
+
DsConfirmation.Body = require_ds_modal.default.Body;
|
|
30
|
+
DsConfirmation.Footer = require_ds_modal.default.Footer;
|
|
31
|
+
DsConfirmation.Actions = require_ds_modal.default.Actions;
|
|
233
32
|
|
|
234
33
|
//#endregion
|
|
235
34
|
exports.DsConfirmation = DsConfirmation;
|
|
@@ -1,71 +1,66 @@
|
|
|
1
1
|
import { DsConfirmationProps } from "./ds-confirmation.types.cjs";
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
2
|
+
import * as react_jsx_runtime4 from "react/jsx-runtime";
|
|
3
|
+
import * as react0 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/ds-confirmation/ds-confirmation.d.ts
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* @deprecated DsConfirmation is deprecated. Use DsModal instead.
|
|
8
|
+
* @see {@link ../ds-modal} for the replacement component.
|
|
8
9
|
*/
|
|
9
10
|
declare const DsConfirmation: {
|
|
10
|
-
(
|
|
11
|
-
open,
|
|
12
|
-
onOpenChange,
|
|
13
|
-
style,
|
|
14
|
-
className,
|
|
15
|
-
children
|
|
16
|
-
}: DsConfirmationProps): react_jsx_runtime8.JSX.Element;
|
|
11
|
+
(props: DsConfirmationProps): react_jsx_runtime4.JSX.Element;
|
|
17
12
|
Header: ({
|
|
18
13
|
style,
|
|
19
14
|
className,
|
|
20
15
|
children
|
|
21
16
|
}: {
|
|
22
|
-
style?: CSSProperties;
|
|
17
|
+
style?: react0.CSSProperties;
|
|
23
18
|
className?: string;
|
|
24
|
-
children: ReactNode;
|
|
25
|
-
}) =>
|
|
19
|
+
children: react0.ReactNode;
|
|
20
|
+
}) => react_jsx_runtime4.JSX.Element;
|
|
26
21
|
Title: ({
|
|
27
22
|
style,
|
|
28
23
|
className,
|
|
29
24
|
children
|
|
30
25
|
}: {
|
|
31
|
-
style?: CSSProperties;
|
|
26
|
+
style?: react0.CSSProperties;
|
|
32
27
|
className?: string;
|
|
33
|
-
children: ReactNode;
|
|
34
|
-
}) =>
|
|
28
|
+
children: react0.ReactNode;
|
|
29
|
+
}) => react_jsx_runtime4.JSX.Element;
|
|
35
30
|
CloseTrigger: ({
|
|
36
31
|
style,
|
|
37
32
|
className
|
|
38
33
|
}: {
|
|
39
|
-
style?: CSSProperties;
|
|
34
|
+
style?: react0.CSSProperties;
|
|
40
35
|
className?: string;
|
|
41
|
-
}) =>
|
|
36
|
+
}) => react_jsx_runtime4.JSX.Element;
|
|
42
37
|
Body: ({
|
|
43
38
|
style,
|
|
44
39
|
className,
|
|
45
40
|
children
|
|
46
41
|
}: {
|
|
47
|
-
style?: CSSProperties;
|
|
42
|
+
style?: react0.CSSProperties;
|
|
48
43
|
className?: string;
|
|
49
|
-
children: ReactNode;
|
|
50
|
-
}) =>
|
|
44
|
+
children: react0.ReactNode;
|
|
45
|
+
}) => react_jsx_runtime4.JSX.Element;
|
|
51
46
|
Footer: ({
|
|
52
47
|
style,
|
|
53
48
|
className,
|
|
54
49
|
children
|
|
55
50
|
}: {
|
|
56
|
-
style?: CSSProperties;
|
|
51
|
+
style?: react0.CSSProperties;
|
|
57
52
|
className?: string;
|
|
58
|
-
children: ReactNode;
|
|
59
|
-
}) =>
|
|
53
|
+
children: react0.ReactNode;
|
|
54
|
+
}) => react_jsx_runtime4.JSX.Element;
|
|
60
55
|
Actions: ({
|
|
61
56
|
style,
|
|
62
57
|
className,
|
|
63
58
|
children
|
|
64
59
|
}: {
|
|
65
|
-
style?: CSSProperties;
|
|
60
|
+
style?: react0.CSSProperties;
|
|
66
61
|
className?: string;
|
|
67
|
-
children: ReactNode;
|
|
68
|
-
}) =>
|
|
62
|
+
children: react0.ReactNode;
|
|
63
|
+
}) => react_jsx_runtime4.JSX.Element;
|
|
69
64
|
};
|
|
70
65
|
//#endregion
|
|
71
66
|
export { DsConfirmation };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ds-confirmation.d.cts","names":[],"sources":["../../../src/components/ds-confirmation/ds-confirmation.tsx"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ds-confirmation.d.cts","names":[],"sources":["../../../src/components/ds-confirmation/ds-confirmation.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;AAOa,cAAA,cAEZ,EAAA;EAFqC,CAAA,KAAA,EAAA,mBAAA,CAAA,EAAmB,kBAAA,CAAA,GAAA,CAAA,OAAnB;EAAmB,MAAA,EAAA,CAAA;IAAA,KAAA;IAAA,SAAA;IAAA;GAAA,EAAA;mBAU44B;;cAAA,MAAA,CAAA;sCAAA;EAAA,KAAA,EAAA,CAAA;IAAA,KAAA;IAAA,SAAA;IAAA;GAAA,EAAA;mBAA+N;;cAAA,MAAA,CAAA;;cAAA,EAAA,CAAA;IAAA,KAAA;IAAA;GAAA,EAAA;IAAA,KAAA,CAAA,SAAgS,aAAhS;;;;;;;;IAAgS,KAAA,CAAA,SAA4O,aAA5O;;cAA4O,MAAA,CAAA;;;;;;;IAAA,KAAA,CAAA,SAA8N,aAA9N;IAAA,SAAA,CAAA,EAAA,MAAA;cAA8N,MAAA,CAAA;;;;;;;mBAAiO;IAAjO,SAAA,CAAA,EAAA,MAAA;IAAA,QAAA,EAAiO,MAAA,CAAA,SAAjO"}
|