@ultraviolet/ui 3.23.0 → 3.24.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/dist/_virtual/{_@oxc-project_runtime@0.142.0 → _@oxc-project_runtime@0.146.0}/helpers/esm/asyncToGenerator.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.142.0 → _@oxc-project_runtime@0.146.0}/helpers/esm/defineProperty.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.142.0 → _@oxc-project_runtime@0.146.0}/helpers/esm/extends.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.142.0 → _@oxc-project_runtime@0.146.0}/helpers/esm/objectDestructuringEmpty.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.142.0 → _@oxc-project_runtime@0.146.0}/helpers/esm/objectSpread2.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.142.0 → _@oxc-project_runtime@0.146.0}/helpers/esm/objectWithoutProperties.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.142.0 → _@oxc-project_runtime@0.146.0}/helpers/esm/objectWithoutPropertiesLoose.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.142.0 → _@oxc-project_runtime@0.146.0}/helpers/esm/toPrimitive.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.142.0 → _@oxc-project_runtime@0.146.0}/helpers/esm/toPropertyKey.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.142.0 → _@oxc-project_runtime@0.146.0}/helpers/esm/typeof.js +1 -1
- package/dist/components/ActionBar/index.js +1 -1
- package/dist/components/Alert/index.js +0 -1
- package/dist/components/Alert/styles.css.d.ts +0 -40
- package/dist/components/Alert/styles.css.d.ts.map +1 -1
- package/dist/components/Avatar/index.js +1 -1
- package/dist/components/Badge/index.d.ts +5 -2
- package/dist/components/Badge/index.d.ts.map +1 -1
- package/dist/components/Badge/styles.css.d.ts +0 -45
- package/dist/components/Badge/styles.css.d.ts.map +1 -1
- package/dist/components/Banner/index.d.ts +3 -2
- package/dist/components/Banner/index.d.ts.map +1 -1
- package/dist/components/Banner/styles.css.d.ts +0 -17
- package/dist/components/Banner/styles.css.d.ts.map +1 -1
- package/dist/components/BarChart/index.js +1 -1
- package/dist/components/Breadcrumbs/components/Item.js +1 -1
- package/dist/components/Button/index.d.ts +6 -2
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/Button/styles.css.d.ts +0 -83
- package/dist/components/Button/styles.css.d.ts.map +1 -1
- package/dist/components/Carousel/Item.js +1 -1
- package/dist/components/Chip/index.js +4 -2
- package/dist/components/DateInput/components/CalendarContent.js +14 -10
- package/dist/components/DateInput/components/CalendarDaily.js +37 -35
- package/dist/components/DateInput/components/CalendarMonthly.js +46 -42
- package/dist/components/DateInput/index.js +8 -6
- package/dist/components/DateInput/styles.css.d.ts.map +1 -1
- package/dist/components/Dialog/index.js +1 -1
- package/dist/components/Expandable/AnimatedExpandable.js +1 -1
- package/dist/components/Expandable/NonAnimatedExpandable.js +1 -1
- package/dist/components/FileInput/components/Button.js +2 -2
- package/dist/components/FileInput/helpers.js +1 -1
- package/dist/components/FileInput/index.js +2 -2
- package/dist/components/InfiniteScroll/index.js +1 -1
- package/dist/components/KeyValueInput/index.js +1 -1
- package/dist/components/LineChart/index.js +1 -1
- package/dist/components/List/Cell.js +1 -1
- package/dist/components/List/ListContext.js +3 -3
- package/dist/components/Loader/index.js +1 -1
- package/dist/components/Menu/MenuContent.js +1 -1
- package/dist/components/Menu/index.js +2 -2
- package/dist/components/Modal/components/Dialog.js +1 -1
- package/dist/components/Notification/Notification.js +1 -1
- package/dist/components/NumberInput/components/Controls.d.ts.map +1 -1
- package/dist/components/NumberInput/components/Controls.js +1 -0
- package/dist/components/Pagination/PaginationButtons.d.ts +2 -1
- package/dist/components/Pagination/PaginationButtons.d.ts.map +1 -1
- package/dist/components/Pagination/PaginationButtons.js +19 -15
- package/dist/components/Pagination/getPageItems.d.ts +8 -0
- package/dist/components/Pagination/getPageItems.d.ts.map +1 -0
- package/dist/components/Pagination/getPageItems.js +35 -0
- package/dist/components/Pagination/getPageNumbers.d.ts +2 -1
- package/dist/components/Pagination/getPageNumbers.d.ts.map +1 -1
- package/dist/components/Pagination/getPageNumbers.js +3 -4
- package/dist/components/Pagination/index.d.ts.map +1 -1
- package/dist/components/Pagination/index.js +15 -3
- package/dist/components/Pagination/styles.css.d.ts +1 -0
- package/dist/components/Pagination/styles.css.d.ts.map +1 -1
- package/dist/components/Pagination/styles.css.js +6 -5
- package/dist/components/PieChart/index.js +1 -1
- package/dist/components/Popup/index.js +1 -1
- package/dist/components/Popup/styles.css.d.ts.map +1 -1
- package/dist/components/Popup/styles.css.js +1 -7
- package/dist/components/Row/index.js +1 -1
- package/dist/components/SearchInput/styles.css.d.ts.map +1 -1
- package/dist/components/SelectInput/components/Dropdown/Dropdown.js +1 -1
- package/dist/components/SelectInput/components/Dropdown/Group.js +9 -7
- package/dist/components/SelectInput/components/Dropdown/Item.d.ts.map +1 -1
- package/dist/components/SelectInput/components/Dropdown/Item.js +49 -43
- package/dist/components/SelectInput/components/Dropdown/Option.d.ts.map +1 -1
- package/dist/components/SelectInput/components/Dropdown/Option.js +71 -89
- package/dist/components/SelectInput/components/Dropdown/SearchBar.js +36 -31
- package/dist/components/SelectInput/components/Dropdown/dropdown.css.d.ts.map +1 -1
- package/dist/components/SelectInput/components/SelectBar/SelectBar.js +6 -4
- package/dist/components/SelectableCard/MultiStateInput.js +1 -1
- package/dist/components/SelectableCard/SelectableCard.js +1 -1
- package/dist/components/SelectableCardOptionGroup/components/Option.js +1 -1
- package/dist/components/Separator/index.d.ts +3 -2
- package/dist/components/Separator/index.d.ts.map +1 -1
- package/dist/components/Separator/styles.css.d.ts +0 -60
- package/dist/components/Separator/styles.css.d.ts.map +1 -1
- package/dist/components/Separator/styles.css.js +3 -3
- package/dist/components/Slider/components/DoubleSlider.d.ts.map +1 -1
- package/dist/components/Slider/components/DoubleSlider.js +103 -114
- package/dist/components/Slider/components/SingleSlider.js +2 -5
- package/dist/components/Slider/styles.css.d.ts +0 -37
- package/dist/components/Slider/styles.css.d.ts.map +1 -1
- package/dist/components/Slider/styles.css.js +27 -44
- package/dist/components/Stack/index.js +2 -2
- package/dist/components/Stepper/index.js +1 -1
- package/dist/components/SwitchButton/index.js +1 -0
- package/dist/components/Table/Cell.js +1 -1
- package/dist/components/Table/TableContext.js +2 -2
- package/dist/components/Tabs/Tab.js +2 -2
- package/dist/components/Tabs/TabMenu.js +2 -2
- package/dist/components/Tabs/TabMenuItem.js +2 -2
- package/dist/components/Tabs/index.js +2 -2
- package/dist/components/Tag/index.d.ts.map +1 -1
- package/dist/components/Tag/index.js +28 -23
- package/dist/components/Tag/type.d.ts +1 -2
- package/dist/components/Tag/type.d.ts.map +1 -1
- package/dist/components/TagInput/index.js +2 -1
- package/dist/components/TagList/index.js +1 -1
- package/dist/components/TagList/styles.css.d.ts.map +1 -1
- package/dist/components/Text/index.d.ts.map +1 -1
- package/dist/components/Text/index.js +4 -6
- package/dist/components/Text/style.css.d.ts +0 -47
- package/dist/components/Text/style.css.d.ts.map +1 -1
- package/dist/components/TextArea/index.js +1 -1
- package/dist/components/TimeInput/index.js +1 -1
- package/dist/components/Toaster/Toaster.js +1 -1
- package/dist/components/Toaster/components/Button.js +2 -2
- package/dist/components/Toaster/components/Link.js +3 -3
- package/dist/components/Tooltip/TooltipChildren.d.ts +10 -0
- package/dist/components/Tooltip/TooltipChildren.d.ts.map +1 -0
- package/dist/components/Tooltip/TooltipChildren.js +71 -0
- package/dist/components/Tooltip/TooltipElement.d.ts +8 -0
- package/dist/components/Tooltip/TooltipElement.d.ts.map +1 -0
- package/dist/components/Tooltip/TooltipElement.js +39 -0
- package/dist/components/Tooltip/index.d.ts +92 -34
- package/dist/components/Tooltip/index.d.ts.map +1 -1
- package/dist/components/Tooltip/index.js +51 -29
- package/dist/components/Tooltip/styles.css.d.ts +17 -0
- package/dist/components/Tooltip/styles.css.d.ts.map +1 -1
- package/dist/components/Tooltip/styles.css.js +21 -1
- package/dist/components/Tooltip/types.d.ts +7 -0
- package/dist/components/Tooltip/types.d.ts.map +1 -0
- package/dist/components/Tooltip/useTooltip.d.ts +25 -0
- package/dist/components/Tooltip/useTooltip.d.ts.map +1 -0
- package/dist/components/Tooltip/useTooltip.js +75 -0
- package/dist/components/TreeMapChart/index.js +1 -1
- package/dist/components/VisuallyHidden/index.js +2 -2
- package/dist/composition.js +3 -3
- package/dist/compositions/EstimateCost/Components/Item.js +1 -1
- package/dist/compositions/EstimateCost/Components/LineThrough.js +2 -2
- package/dist/compositions/EstimateCost/Components/Unit.js +1 -1
- package/dist/compositions/EstimateCost/EstimateCostProvider.js +1 -1
- package/dist/compositions/EstimateCost/Image.js +1 -1
- package/dist/compositions/Filters/filterTypes/FilterSlider.js +1 -1
- package/dist/compositions/Filters/filterTypes/FilterText.d.ts.map +1 -1
- package/dist/compositions/Filters/filterTypes/FilterText.js +1 -0
- package/dist/compositions/Filters/parts/AbstractFilter.js +1 -1
- package/dist/compositions/Filters/parts/FiltersDrawer.d.ts +1 -0
- package/dist/compositions/Filters/parts/FiltersDrawer.d.ts.map +1 -1
- package/dist/compositions/Filters/parts/FiltersDrawer.js +15 -4
- package/dist/compositions/Filters/parts/FiltersMainRow.js +1 -0
- package/dist/compositions/Filters/parts/helpers.d.ts.map +1 -1
- package/dist/compositions/Filters/parts/helpers.js +3 -1
- package/dist/compositions/Filters/parts/reducer.js +1 -1
- package/dist/compositions/Filters/parts/useFilters.js +1 -1
- package/dist/compositions/Filters/types.d.ts +1 -0
- package/dist/compositions/Filters/types.d.ts.map +1 -1
- package/dist/compositions/InfoTable/components/Row.js +1 -1
- package/dist/compositions/InfoTable/styles.css.d.ts.map +1 -1
- package/dist/compositions/InfoTable/styles.css.js +97 -97
- package/dist/compositions/Navigation/NavigationProvider.js +1 -1
- package/dist/compositions/Navigation/components/items.css.d.ts.map +1 -1
- package/dist/compositions/Navigation/components/styles.css.d.ts.map +1 -1
- package/dist/compositions/OfferList/components/Row.js +4 -2
- package/dist/compositions/OptionSelector/styles.css.js +97 -97
- package/dist/compositions/OrderSummary/helpers.js +1 -1
- package/dist/compositions/RichTextInput/index.js +1 -1
- package/dist/hooks/useBreakpoint.d.ts +15 -0
- package/dist/hooks/useBreakpoint.d.ts.map +1 -0
- package/dist/hooks/useBreakpoint.js +46 -0
- package/dist/hooks/useIsOverflowing.d.ts +7 -3
- package/dist/hooks/useIsOverflowing.d.ts.map +1 -1
- package/dist/hooks/useIsOverflowing.js +13 -10
- package/dist/index.js +13 -13
- package/dist/ui.css +1 -1
- package/package.json +3 -2
- package/dist/components/Pagination/PaginationButton.d.ts +0 -11
- package/dist/components/Pagination/PaginationButton.d.ts.map +0 -1
- package/dist/components/Pagination/PaginationButton.js +0 -34
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/Popup/styles.css.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/Popup/styles.css.ts"],"names":[],"mappings":"AAgIA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKtB,CAAA"}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { __esmMin } from "../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { init_styles_css_ts_vanilla } from "
|
|
3
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$1 } from "../TagList/styles.css.ts.vanilla.js";
|
|
4
|
-
import { init_style_css_ts_vanilla } from "../Text/style.css.ts.vanilla.js";
|
|
5
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$2 } from "./styles.css.ts.vanilla.js";
|
|
2
|
+
import { init_styles_css_ts_vanilla } from "./styles.css.ts.vanilla.js";
|
|
6
3
|
import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
7
4
|
|
|
8
5
|
//#region src/components/Popup/styles.css.ts
|
|
@@ -10,9 +7,6 @@ var popupStyle;
|
|
|
10
7
|
function init_styles_css() {
|
|
11
8
|
return (init_styles_css = __esmMin(() => {
|
|
12
9
|
/* @__PURE__ */ init_styles_css_ts_vanilla();
|
|
13
|
-
/* @__PURE__ */ init_styles_css_ts_vanilla$1();
|
|
14
|
-
/* @__PURE__ */ init_style_css_ts_vanilla();
|
|
15
|
-
/* @__PURE__ */ init_styles_css_ts_vanilla$2();
|
|
16
10
|
popupStyle = {
|
|
17
11
|
container: createRuntimeFn({
|
|
18
12
|
defaultClassName: "uv_w40vpo2",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
+
import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.146.0/helpers/esm/objectSpread2.js";
|
|
4
4
|
import { init_styles_css, rowStyle, sprinkles } from "./styles.css.js";
|
|
5
5
|
import { init_variables_css, paddings, templateColumn } from "./variables.css.js";
|
|
6
6
|
import { consoleLightTheme } from "@ultraviolet/themes";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/SearchInput/styles.css.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/SearchInput/styles.css.ts"],"names":[],"mappings":"AAoBA,eAAO,MAAM,gBAAgB;;;;CAI5B,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import _objectSpread2, { init_objectSpread2 } from "../../../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
+
import _objectSpread2, { init_objectSpread2 } from "../../../../_virtual/_@oxc-project_runtime@0.146.0/helpers/esm/objectSpread2.js";
|
|
4
4
|
import { Stack, init_Stack } from "../../../Stack/index.js";
|
|
5
5
|
import { Popup, init_Popup } from "../../../Popup/index.js";
|
|
6
6
|
import { ModalContext, init_ModalProvider } from "../../../Modal/ModalProvider.js";
|
|
@@ -22,13 +22,15 @@ function init_Group() {
|
|
|
22
22
|
selectedGroup: group,
|
|
23
23
|
type: "selectGroup"
|
|
24
24
|
});
|
|
25
|
-
if (!Array.isArray(options))
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
25
|
+
if (!Array.isArray(options)) {
|
|
26
|
+
if (selectedData.selectedGroups.includes(group)) {
|
|
27
|
+
const newSelectedValues = [...selectedData.selectedValues].filter((selectedValue) => !options[group].find((option) => option.value === selectedValue));
|
|
28
|
+
onChange === null || onChange === void 0 || onChange(newSelectedValues);
|
|
29
|
+
} else {
|
|
30
|
+
const newSelectedValues = [...selectedData.selectedValues];
|
|
31
|
+
options[group].map((option) => newSelectedValues.includes(option.value) || option.disabled ? null : newSelectedValues.push(option.value));
|
|
32
|
+
onChange === null || onChange === void 0 || onChange(newSelectedValues);
|
|
33
|
+
}
|
|
32
34
|
}
|
|
33
35
|
}
|
|
34
36
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../../../../src/components/SelectInput/components/Dropdown/Item.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAA0C,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../../../../src/components/SelectInput/components/Dropdown/Item.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAA0C,SAAS,EAAE,MAAM,OAAO,CAAA;AAI9E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAI7C,eAAO,MAAM,IAAI,kIASd;IACD,MAAM,EAAE,UAAU,CAAA;IAClB,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAA;IACjC,cAAc,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;IAChD,oBAAoB,EAAE,QAAQ,GAAG,KAAK,CAAA;IACtC,WAAW,EAAE,MAAM,GAAG,WAAW,CAAA;IACjC,qBAAqB,EAAE,MAAM,GAAG,OAAO,CAAA;CACxC,gCA+FA,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { __esmMin, __name } from "../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { Tooltip, init_Tooltip } from "../../../Tooltip/index.js";
|
|
2
3
|
import { init_SelectInputProvider, useSelectInput } from "../../SelectInputProvider.js";
|
|
3
4
|
import { init_styles_css, selectInputStyle } from "../../styles.css.js";
|
|
4
5
|
import { DisplayOption, init_Option } from "./Option.js";
|
|
@@ -11,6 +12,7 @@ var Item;
|
|
|
11
12
|
function init_Item() {
|
|
12
13
|
return (init_Item = __esmMin(() => {
|
|
13
14
|
init_Checkbox();
|
|
15
|
+
init_Tooltip();
|
|
14
16
|
init_SelectInputProvider();
|
|
15
17
|
init_Option();
|
|
16
18
|
init_styles_css();
|
|
@@ -23,61 +25,65 @@ function init_Item() {
|
|
|
23
25
|
group,
|
|
24
26
|
type: "selectOption"
|
|
25
27
|
});
|
|
26
|
-
if (multiselect)
|
|
27
|
-
|
|
28
|
-
|
|
28
|
+
if (multiselect) {
|
|
29
|
+
if (selectedData.selectedValues.includes(clickedOption.value)) onChange === null || onChange === void 0 || onChange(selectedData.selectedValues.filter((value) => value !== clickedOption.value));
|
|
30
|
+
else onChange === null || onChange === void 0 || onChange([...selectedData.selectedValues, clickedOption.value]);
|
|
31
|
+
} else onChange === null || onChange === void 0 || onChange(clickedOption.value);
|
|
29
32
|
setIsDropdownVisible(multiselect);
|
|
30
33
|
};
|
|
31
|
-
return /* @__PURE__ */ jsx(
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
});
|
|
47
|
-
},
|
|
48
|
-
onKeyDown: (event) => {
|
|
49
|
-
if ([" ", "Enter"].includes(event.key)) handleClick({
|
|
50
|
-
clickedOption: option,
|
|
51
|
-
event
|
|
52
|
-
});
|
|
53
|
-
},
|
|
54
|
-
ref: option.value === defaultSearchValue || option.searchText === defaultSearchValue ? focusedItemRef : null,
|
|
55
|
-
role: "option",
|
|
56
|
-
tabIndex: option.disabled ? -1 : 0,
|
|
57
|
-
children: multiselect ? /* @__PURE__ */ jsx(Checkbox, {
|
|
58
|
-
checked: selectedData.selectedValues.includes(option.value) && !option.disabled,
|
|
59
|
-
className: selectInputStyle.dropdownCheckbox,
|
|
60
|
-
disabled: option.disabled,
|
|
61
|
-
onChange: (event) => {
|
|
34
|
+
return /* @__PURE__ */ jsx(Tooltip, {
|
|
35
|
+
containerFullWidth: true,
|
|
36
|
+
text: option.tooltip,
|
|
37
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
38
|
+
"aria-disabled": !!option.disabled,
|
|
39
|
+
"aria-label": option.value,
|
|
40
|
+
"aria-selected": selectedData.selectedValues.includes(option.value) && !option.disabled,
|
|
41
|
+
className: cn(selectInputStyle.dropdownItem({
|
|
42
|
+
disabled: !!option.disabled,
|
|
43
|
+
size,
|
|
44
|
+
selected: selectedData.selectedValues.includes(option.value) && !option.disabled
|
|
45
|
+
})),
|
|
46
|
+
"data-testid": `option-${option.value}`,
|
|
47
|
+
id: `option-${indexOption}`,
|
|
48
|
+
onClick: (event) => {
|
|
62
49
|
if (!option.disabled) handleClick({
|
|
63
50
|
clickedOption: option,
|
|
64
51
|
event
|
|
65
52
|
});
|
|
66
53
|
},
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
54
|
+
onKeyDown: (event) => {
|
|
55
|
+
if ([" ", "Enter"].includes(event.key) && !option.disabled) handleClick({
|
|
56
|
+
clickedOption: option,
|
|
57
|
+
event
|
|
58
|
+
});
|
|
59
|
+
},
|
|
60
|
+
ref: option.value === defaultSearchValue || option.searchText === defaultSearchValue ? focusedItemRef : null,
|
|
61
|
+
role: "option",
|
|
62
|
+
tabIndex: 0,
|
|
63
|
+
children: multiselect ? /* @__PURE__ */ jsx(Checkbox, {
|
|
64
|
+
checked: selectedData.selectedValues.includes(option.value) && !option.disabled,
|
|
65
|
+
className: selectInputStyle.dropdownCheckbox,
|
|
66
|
+
disabled: option.disabled,
|
|
67
|
+
onChange: (event) => {
|
|
68
|
+
if (!option.disabled) handleClick({
|
|
69
|
+
clickedOption: option,
|
|
70
|
+
event
|
|
71
|
+
});
|
|
72
|
+
},
|
|
73
|
+
tabIndex: -1,
|
|
74
|
+
value: option.value,
|
|
75
|
+
children: /* @__PURE__ */ jsx(DisplayOption, {
|
|
76
|
+
descriptionDirection,
|
|
77
|
+
option,
|
|
78
|
+
optionalInfoPlacement,
|
|
79
|
+
textVariant
|
|
80
|
+
})
|
|
81
|
+
}) : /* @__PURE__ */ jsx(DisplayOption, {
|
|
71
82
|
descriptionDirection,
|
|
72
83
|
option,
|
|
73
84
|
optionalInfoPlacement,
|
|
74
85
|
textVariant
|
|
75
86
|
})
|
|
76
|
-
}) : /* @__PURE__ */ jsx(DisplayOption, {
|
|
77
|
-
descriptionDirection,
|
|
78
|
-
option,
|
|
79
|
-
optionalInfoPlacement,
|
|
80
|
-
textVariant
|
|
81
87
|
})
|
|
82
88
|
});
|
|
83
89
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Option.d.ts","sourceRoot":"","sources":["../../../../../src/components/SelectInput/components/Dropdown/Option.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Option.d.ts","sourceRoot":"","sources":["../../../../../src/components/SelectInput/components/Dropdown/Option.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAG7C,KAAK,kBAAkB,GAAG;IACxB,MAAM,EAAE,UAAU,CAAA;IAClB,oBAAoB,EAAE,KAAK,GAAG,QAAQ,CAAA;IACtC,qBAAqB,EAAE,MAAM,GAAG,OAAO,CAAA;IACvC,WAAW,EAAE,MAAM,GAAG,WAAW,CAAA;CAClC,CAAA;AAED,eAAO,MAAM,aAAa,0EAKvB,kBAAkB,gCA+FpB,CAAA"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../../../_virtual/_rolldown/runtime.js";
|
|
3
3
|
import { Stack, init_Stack } from "../../../Stack/index.js";
|
|
4
|
-
import { Tooltip, init_Tooltip } from "../../../Tooltip/index.js";
|
|
5
4
|
import { Text, init_Text } from "../../../Text/index.js";
|
|
6
5
|
import { init_styles_css, selectInputStyle } from "../../styles.css.js";
|
|
7
6
|
import { useMemo } from "react";
|
|
@@ -13,7 +12,6 @@ function init_Option() {
|
|
|
13
12
|
return (init_Option = __esmMin(() => {
|
|
14
13
|
init_Stack();
|
|
15
14
|
init_Text();
|
|
16
|
-
init_Tooltip();
|
|
17
15
|
init_styles_css();
|
|
18
16
|
DisplayOption = ({ option, optionalInfoPlacement, descriptionDirection, textVariant }) => {
|
|
19
17
|
const captionSize = useMemo(() => textVariant === "body" ? "bodySmall" : "caption", [textVariant]);
|
|
@@ -25,105 +23,89 @@ function init_Option() {
|
|
|
25
23
|
variant: captionSize,
|
|
26
24
|
children: option.description
|
|
27
25
|
}) : null;
|
|
28
|
-
if (descriptionDirection === "row" && optionalInfoPlacement === "left") return /* @__PURE__ */
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
26
|
+
if (descriptionDirection === "row" && optionalInfoPlacement === "left") return /* @__PURE__ */ jsxs(Stack, {
|
|
27
|
+
alignItems: optionDescription ? "flex-start" : "center",
|
|
28
|
+
className: selectInputStyle.dropdownInfoContainer,
|
|
29
|
+
direction: "row",
|
|
30
|
+
"data-testid": `option-stack-${option.value}`,
|
|
31
|
+
gap: .5,
|
|
32
|
+
children: [
|
|
33
|
+
option.optionalInfo,
|
|
34
|
+
/* @__PURE__ */ jsx(Text, {
|
|
35
|
+
as: "span",
|
|
36
|
+
className: selectInputStyle.dropdownInfoTextItem,
|
|
37
|
+
placement: "left",
|
|
38
|
+
variant: textVariant,
|
|
39
|
+
children: option.label
|
|
40
|
+
}),
|
|
41
|
+
optionDescription
|
|
42
|
+
]
|
|
43
|
+
});
|
|
44
|
+
if (descriptionDirection === "row" && optionalInfoPlacement === "right") return /* @__PURE__ */ jsxs(Stack, {
|
|
45
|
+
alignItems: "baseline",
|
|
46
|
+
"data-testid": `option-stack-${option.value}`,
|
|
47
|
+
direction: "row",
|
|
48
|
+
gap: .5,
|
|
49
|
+
justifyContent: "space-between",
|
|
50
|
+
children: [/* @__PURE__ */ jsxs(Stack, {
|
|
51
|
+
alignItems: "baseline",
|
|
33
52
|
className: selectInputStyle.dropdownInfoContainer,
|
|
34
53
|
direction: "row",
|
|
35
|
-
"data-testid": `option-stack-${option.value}`,
|
|
36
54
|
gap: .5,
|
|
37
|
-
children: [
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
})
|
|
55
|
+
children: [/* @__PURE__ */ jsx(Text, {
|
|
56
|
+
as: "span",
|
|
57
|
+
className: selectInputStyle.dropdownInfoTextItem,
|
|
58
|
+
placement: "left",
|
|
59
|
+
variant: textVariant,
|
|
60
|
+
children: option.label
|
|
61
|
+
}), optionDescription]
|
|
62
|
+
}), option.optionalInfo ? /* @__PURE__ */ jsx("div", {
|
|
63
|
+
className: selectInputStyle.dropdownInfo,
|
|
64
|
+
children: option.optionalInfo
|
|
65
|
+
}) : null]
|
|
49
66
|
});
|
|
50
|
-
if (descriptionDirection === "
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
67
|
+
if (descriptionDirection === "column" && optionalInfoPlacement === "left") return /* @__PURE__ */ jsxs(Stack, {
|
|
68
|
+
alignItems: "normal",
|
|
69
|
+
direction: "row",
|
|
70
|
+
gap: .5,
|
|
71
|
+
justifyContent: option.optionalInfo ? "left" : "space-between",
|
|
72
|
+
className: selectInputStyle.optionalInfoPadding,
|
|
73
|
+
children: [option.optionalInfo, /* @__PURE__ */ jsxs(Stack, {
|
|
74
|
+
className: selectInputStyle.dropdownInfoContainer,
|
|
55
75
|
"data-testid": `option-stack-${option.value}`,
|
|
76
|
+
direction: "column",
|
|
77
|
+
gap: .5,
|
|
78
|
+
children: [/* @__PURE__ */ jsx(Text, {
|
|
79
|
+
as: "span",
|
|
80
|
+
className: selectInputStyle.dropdownInfoTextItem,
|
|
81
|
+
placement: "left",
|
|
82
|
+
variant: textVariant,
|
|
83
|
+
children: option.label
|
|
84
|
+
}), optionDescription]
|
|
85
|
+
})]
|
|
86
|
+
});
|
|
87
|
+
return /* @__PURE__ */ jsxs(Stack, {
|
|
88
|
+
alignItems: "normal",
|
|
89
|
+
"data-testid": `option-stack-${option.value}`,
|
|
90
|
+
direction: "column",
|
|
91
|
+
gap: .5,
|
|
92
|
+
children: [/* @__PURE__ */ jsxs(Stack, {
|
|
93
|
+
className: selectInputStyle.dropdownInfoContainer,
|
|
56
94
|
direction: "row",
|
|
57
95
|
gap: .5,
|
|
58
96
|
justifyContent: "space-between",
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
className: selectInputStyle.dropdownInfoTextItem,
|
|
67
|
-
placement: "left",
|
|
68
|
-
variant: textVariant,
|
|
69
|
-
children: option.label
|
|
70
|
-
}), optionDescription]
|
|
97
|
+
alignItems: optionDescription ? "flex-start" : "center",
|
|
98
|
+
children: [/* @__PURE__ */ jsx(Text, {
|
|
99
|
+
as: "span",
|
|
100
|
+
className: selectInputStyle.dropdownInfoTextItem,
|
|
101
|
+
placement: "left",
|
|
102
|
+
variant: textVariant,
|
|
103
|
+
children: option.label
|
|
71
104
|
}), option.optionalInfo ? /* @__PURE__ */ jsx("div", {
|
|
72
105
|
className: selectInputStyle.dropdownInfo,
|
|
73
106
|
children: option.optionalInfo
|
|
74
107
|
}) : null]
|
|
75
|
-
})
|
|
76
|
-
});
|
|
77
|
-
if (descriptionDirection === "column" && optionalInfoPlacement === "left") return /* @__PURE__ */ jsx(Tooltip, {
|
|
78
|
-
disableAnimation: true,
|
|
79
|
-
text: option.tooltip,
|
|
80
|
-
children: /* @__PURE__ */ jsxs(Stack, {
|
|
81
|
-
alignItems: "normal",
|
|
82
|
-
direction: "row",
|
|
83
|
-
gap: .5,
|
|
84
|
-
justifyContent: option.optionalInfo ? "left" : "space-between",
|
|
85
|
-
className: selectInputStyle.optionalInfoPadding,
|
|
86
|
-
children: [option.optionalInfo, /* @__PURE__ */ jsxs(Stack, {
|
|
87
|
-
className: selectInputStyle.dropdownInfoContainer,
|
|
88
|
-
"data-testid": `option-stack-${option.value}`,
|
|
89
|
-
direction: "column",
|
|
90
|
-
gap: .5,
|
|
91
|
-
children: [/* @__PURE__ */ jsx(Text, {
|
|
92
|
-
as: "span",
|
|
93
|
-
className: selectInputStyle.dropdownInfoTextItem,
|
|
94
|
-
placement: "left",
|
|
95
|
-
variant: textVariant,
|
|
96
|
-
children: option.label
|
|
97
|
-
}), optionDescription]
|
|
98
|
-
})]
|
|
99
|
-
})
|
|
100
|
-
});
|
|
101
|
-
return /* @__PURE__ */ jsx(Tooltip, {
|
|
102
|
-
disableAnimation: true,
|
|
103
|
-
text: option.tooltip,
|
|
104
|
-
children: /* @__PURE__ */ jsxs(Stack, {
|
|
105
|
-
alignItems: "normal",
|
|
106
|
-
"data-testid": `option-stack-${option.value}`,
|
|
107
|
-
direction: "column",
|
|
108
|
-
gap: .5,
|
|
109
|
-
children: [/* @__PURE__ */ jsxs(Stack, {
|
|
110
|
-
className: selectInputStyle.dropdownInfoContainer,
|
|
111
|
-
direction: "row",
|
|
112
|
-
gap: .5,
|
|
113
|
-
justifyContent: "space-between",
|
|
114
|
-
alignItems: optionDescription ? "flex-start" : "center",
|
|
115
|
-
children: [/* @__PURE__ */ jsx(Text, {
|
|
116
|
-
as: "span",
|
|
117
|
-
className: selectInputStyle.dropdownInfoTextItem,
|
|
118
|
-
placement: "left",
|
|
119
|
-
variant: textVariant,
|
|
120
|
-
children: option.label
|
|
121
|
-
}), option.optionalInfo ? /* @__PURE__ */ jsx("div", {
|
|
122
|
-
className: selectInputStyle.dropdownInfo,
|
|
123
|
-
children: option.optionalInfo
|
|
124
|
-
}) : null]
|
|
125
|
-
}), optionDescription]
|
|
126
|
-
})
|
|
108
|
+
}), optionDescription]
|
|
127
109
|
});
|
|
128
110
|
};
|
|
129
111
|
}))();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import _objectSpread2, { init_objectSpread2 } from "../../../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
+
import _objectSpread2, { init_objectSpread2 } from "../../../../_virtual/_@oxc-project_runtime@0.146.0/helpers/esm/objectSpread2.js";
|
|
4
4
|
import { TextInput, init_TextInput } from "../../../TextInput/index.js";
|
|
5
5
|
import { init_styles_css, searchInputStyle } from "../../../SearchInput/styles.css.js";
|
|
6
6
|
import { OPTION_SELECTOR, init_constants } from "../../constants.js";
|
|
@@ -35,16 +35,18 @@ function init_SearchBar() {
|
|
|
35
35
|
return (query.length > 2 ? isFuzzyMatch(query, referenceText) : referenceText.match(regex)) || typeof option.description === "string" && option.description.match(regex) || option.value.match(regex);
|
|
36
36
|
});
|
|
37
37
|
findClosestOption = (options, searchInput) => {
|
|
38
|
-
if (searchInput)
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
possibleOptions
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
38
|
+
if (searchInput) {
|
|
39
|
+
if (Array.isArray(options)) {
|
|
40
|
+
const possibleOption = [...options].find((option) => !option.disabled);
|
|
41
|
+
if (possibleOption) return possibleOption;
|
|
42
|
+
} else {
|
|
43
|
+
const possibleOptions = _objectSpread2({}, options);
|
|
44
|
+
Object.keys(possibleOptions).map((group) => {
|
|
45
|
+
possibleOptions[group] = possibleOptions[group].filter((option) => !option.disabled);
|
|
46
|
+
return null;
|
|
47
|
+
});
|
|
48
|
+
if (Object.keys(possibleOptions).some((group) => possibleOptions[group].length > 0)) return Object.keys(possibleOptions).map((group) => possibleOptions[group][0]).find((value) => !!value);
|
|
49
|
+
}
|
|
48
50
|
}
|
|
49
51
|
return null;
|
|
50
52
|
};
|
|
@@ -53,32 +55,35 @@ function init_SearchBar() {
|
|
|
53
55
|
const searchInputRef = useRef(null);
|
|
54
56
|
const { onChange, onSearch, setSearchInput, searchInput, options, multiselect, setSelectedData, selectedData, size } = useSelectInput();
|
|
55
57
|
const handleChange = (search) => {
|
|
56
|
-
if (search.length > 0)
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
58
|
+
if (search.length > 0) {
|
|
59
|
+
if (Array.isArray(options)) {
|
|
60
|
+
const filteredOptions = searchRegex([...options], escapeRegExp(search.toString()));
|
|
61
|
+
onSearch(filteredOptions);
|
|
62
|
+
} else {
|
|
63
|
+
const filteredOptions = _objectSpread2({}, options);
|
|
64
|
+
Object.keys(filteredOptions).map((group) => {
|
|
65
|
+
filteredOptions[group] = searchRegex(filteredOptions[group], escapeRegExp(search.toString()));
|
|
66
|
+
return null;
|
|
67
|
+
});
|
|
68
|
+
onSearch(filteredOptions);
|
|
69
|
+
}
|
|
70
|
+
} else onSearch(options);
|
|
68
71
|
setSearchInput(search);
|
|
69
72
|
};
|
|
70
73
|
const handleKeyDown = (event, search) => {
|
|
71
74
|
const { key } = event;
|
|
72
75
|
if (key === "Enter") {
|
|
73
76
|
const closestOption = findClosestOption(displayedOptions, search);
|
|
74
|
-
if (closestOption)
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
77
|
+
if (closestOption) {
|
|
78
|
+
if (multiselect) {
|
|
79
|
+
const data = computeSelectedDataMultiselect(closestOption, options, selectedData);
|
|
80
|
+
setSelectedData(data.computedData);
|
|
81
|
+
onChange === null || onChange === void 0 || onChange(data.onChangeData);
|
|
82
|
+
} else {
|
|
83
|
+
const data = computeSelectedDataSingleSelect(closestOption, selectedData);
|
|
84
|
+
setSelectedData(data.computedData);
|
|
85
|
+
onChange === null || onChange === void 0 || onChange(data.onChangeData);
|
|
86
|
+
}
|
|
82
87
|
}
|
|
83
88
|
} else if (key === "Tab" || key === "ArrowDown") {
|
|
84
89
|
event === null || event === void 0 || event.preventDefault();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown.css.d.ts","sourceRoot":"","sources":["../../../../../src/components/SelectInput/components/Dropdown/dropdown.css.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,aAAa,oBAAc,CAAA;AAExC,eAAO,MAAM,QAAQ,QASnB,CAAA;AAEF,eAAO,MAAM,iBAAiB,QAI5B,CAAA;AAEF,eAAO,MAAM,aAAa,QAmBxB,CAAA;AAEF,eAAO,MAAM,uBAAuB;;QAY9B,KAAK;YACH,WAAW;;QAEb,KAAK;QACL,MAAM;;EAMV,CAAA;AAEF,eAAO,MAAM,eAAe,QAU1B,CAAA;AAEF,eAAO,MAAM,oBAAoB,QAG/B,CAAA;AAEF,eAAO,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"dropdown.css.d.ts","sourceRoot":"","sources":["../../../../../src/components/SelectInput/components/Dropdown/dropdown.css.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,aAAa,oBAAc,CAAA;AAExC,eAAO,MAAM,QAAQ,QASnB,CAAA;AAEF,eAAO,MAAM,iBAAiB,QAI5B,CAAA;AAEF,eAAO,MAAM,aAAa,QAmBxB,CAAA;AAEF,eAAO,MAAM,uBAAuB;;QAY9B,KAAK;YACH,WAAW;;QAEb,KAAK;QACL,MAAM;;EAMV,CAAA;AAEF,eAAO,MAAM,eAAe,QAU1B,CAAA;AAEF,eAAO,MAAM,oBAAoB,QAG/B,CAAA;AAEF,eAAO,MAAM,oBAAoB,QAQ/B,CAAA;AAEF,eAAO,MAAM,gBAAgB,QAM3B,CAAA;AAEF,eAAO,MAAM,YAAY;;QAoBnB,IAAI;YACF,eAAe;;;;QAIjB,KAAK;QACL,MAAM;QACN,KAAK;YACH,OAAO;;;;;;;;;;;;;;;;;EAkBb,CAAA;AAEF,eAAO,MAAM,MAAM,QAKjB,CAAA;AAQF,eAAO,MAAM,gBAAgB,QAA8D,CAAA;AAE3F,eAAO,MAAM,qBAAqB,QAA0D,CAAA;AAC5F,eAAO,MAAM,kBAAkB,QAAqC,CAAA;AAEpE,eAAO,MAAM,gBAAgB,QAAyC,CAAA;AAEtE,eAAO,MAAM,YAAY,QAEvB,CAAA;AAEF,eAAO,MAAM,oBAAoB,QAM/B,CAAA;AAEF,eAAO,MAAM,qBAAqB,QAAgC,CAAA;AAElE,eAAO,MAAM,SAAS,QAGpB,CAAA;AAEF,eAAO,MAAM,cAAc,QAWzB,CAAA;AAEF,eAAO,MAAM,mBAAmB,QAAY,CAAA"}
|
|
@@ -133,10 +133,12 @@ function init_SelectBar() {
|
|
|
133
133
|
id,
|
|
134
134
|
onClick: openable ? () => setIsDropdownVisible(!isDropdownVisible) : void 0,
|
|
135
135
|
onKeyDown: (event) => {
|
|
136
|
-
if (event.key === "ArrowDown")
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
136
|
+
if (event.key === "ArrowDown") {
|
|
137
|
+
if (isDropdownVisible) {
|
|
138
|
+
var _document$getElementB;
|
|
139
|
+
(_document$getElementB = document.getElementById("option-0")) === null || _document$getElementB === void 0 || _document$getElementB.focus();
|
|
140
|
+
} else setIsDropdownVisible(true);
|
|
141
|
+
}
|
|
140
142
|
if (event.key === " ") event.preventDefault();
|
|
141
143
|
return ["Enter", " "].includes(event.key) && openable ? setIsDropdownVisible(!isDropdownVisible) : null;
|
|
142
144
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.146.0/helpers/esm/objectSpread2.js";
|
|
3
3
|
import { Checkbox, init_Checkbox } from "../Checkbox/index.js";
|
|
4
4
|
import { init_styles_css, selectableCardStyle } from "./styles.css.js";
|
|
5
5
|
import { Radio, init_Radio } from "../Radio/index.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
+
import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.146.0/helpers/esm/objectSpread2.js";
|
|
4
4
|
import { Stack, init_Stack } from "../Stack/index.js";
|
|
5
5
|
import { Tooltip, init_Tooltip } from "../Tooltip/index.js";
|
|
6
6
|
import { init_styles_css, selectableCardStyle } from "./styles.css.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import _objectSpread2, { init_objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
+
import _objectSpread2, { init_objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.146.0/helpers/esm/objectSpread2.js";
|
|
4
4
|
import { Stack, init_Stack } from "../../Stack/index.js";
|
|
5
5
|
import { Label, init_Label } from "../../Label/index.js";
|
|
6
6
|
import { init_styles_css, selectableCardOptionGroupStyle } from "../styles.css.js";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import type { SeparatorVariants } from './styles.css';
|
|
3
2
|
type SeparatorProps = {
|
|
3
|
+
direction?: 'horizontal' | 'vertical';
|
|
4
|
+
sentiment?: 'danger' | 'info' | 'neutral' | 'primary' | 'secondary' | 'success' | 'warning';
|
|
4
5
|
thickness?: number;
|
|
5
6
|
className?: string;
|
|
6
7
|
'data-testid'?: string;
|
|
@@ -10,7 +11,7 @@ type SeparatorProps = {
|
|
|
10
11
|
'data-flip-id'?: string;
|
|
11
12
|
children?: ReactNode;
|
|
12
13
|
style?: CSSProperties;
|
|
13
|
-
}
|
|
14
|
+
};
|
|
14
15
|
export declare function Separator({ direction, thickness, sentiment, className, 'data-testid': dataTestId, 'data-flip-id': flipId, children, style, }: SeparatorProps): import("react").JSX.Element;
|
|
15
16
|
export declare namespace Separator {
|
|
16
17
|
var displayName: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Separator/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Separator/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGrD,KAAK,cAAc,GAAG;IACpB,SAAS,CAAC,EAAE,YAAY,GAAG,UAAU,CAAA;IACrC,SAAS,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,SAAS,CAAA;IAC3F,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;kCAKyB,EACxB,SAAwB,EACxB,SAAa,EACb,SAAqB,EACrB,SAAS,EACT,aAAa,EAAE,UAAU,EACzB,cAAc,EAAE,MAAM,EACtB,QAAQ,EACR,KAAK,GACN,EAAE,cAAc"}
|