@ultraviolet/ui 3.20.2 → 3.21.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/README.md +3 -3
- package/dist/_virtual/{_@oxc-project_runtime@0.133.0 → _@oxc-project_runtime@0.139.0}/helpers/esm/asyncToGenerator.js +2 -2
- package/dist/_virtual/{_@oxc-project_runtime@0.133.0 → _@oxc-project_runtime@0.139.0}/helpers/esm/defineProperty.js +3 -3
- package/dist/_virtual/{_@oxc-project_runtime@0.133.0 → _@oxc-project_runtime@0.139.0}/helpers/esm/extends.js +2 -2
- package/dist/_virtual/{_@oxc-project_runtime@0.133.0 → _@oxc-project_runtime@0.139.0}/helpers/esm/objectDestructuringEmpty.js +2 -2
- package/dist/_virtual/{_@oxc-project_runtime@0.133.0 → _@oxc-project_runtime@0.139.0}/helpers/esm/objectSpread2.js +3 -3
- package/dist/_virtual/{_@oxc-project_runtime@0.133.0 → _@oxc-project_runtime@0.139.0}/helpers/esm/objectWithoutProperties.js +3 -3
- package/dist/_virtual/{_@oxc-project_runtime@0.133.0 → _@oxc-project_runtime@0.139.0}/helpers/esm/objectWithoutPropertiesLoose.js +2 -2
- package/dist/_virtual/{_@oxc-project_runtime@0.133.0 → _@oxc-project_runtime@0.139.0}/helpers/esm/toPrimitive.js +3 -3
- package/dist/_virtual/{_@oxc-project_runtime@0.133.0 → _@oxc-project_runtime@0.139.0}/helpers/esm/toPropertyKey.js +4 -4
- package/dist/_virtual/{_@oxc-project_runtime@0.133.0 → _@oxc-project_runtime@0.139.0}/helpers/esm/typeof.js +2 -2
- package/dist/_virtual/_rolldown/runtime.js +8 -1
- package/dist/components/ActionBar/index.js +1 -1
- package/dist/components/Avatar/index.js +2 -2
- package/dist/components/Banner/index.js +1 -1
- package/dist/components/BarChart/index.js +1 -1
- package/dist/components/Breadcrumbs/components/Item.js +2 -2
- package/dist/components/Button/index.d.ts +1 -0
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/Button/index.js +3 -1
- package/dist/components/Carousel/Item.js +1 -1
- package/dist/components/CheckboxGroup/SingleCheckbox.js +1 -1
- package/dist/components/CheckboxGroup/index.js +2 -2
- package/dist/components/Chip/ChipIcon.js +1 -1
- package/dist/components/Chip/index.js +1 -1
- package/dist/components/DateInput/components/CalendarContent.js +1 -1
- package/dist/components/DateInput/components/CalendarDaily.js +1 -1
- package/dist/components/DateInput/components/CalendarMonthly.js +1 -1
- package/dist/components/DateInput/components/Popup.js +1 -1
- package/dist/components/DateInput/helpers.js +5 -3
- package/dist/components/DateInput/helpersLocale.js +2 -1
- package/dist/components/DateInput/index.js +3 -2
- package/dist/components/Dialog/index.d.ts +1 -0
- package/dist/components/Dialog/index.d.ts.map +1 -1
- package/dist/components/Dialog/index.js +2 -2
- package/dist/components/Drawer/index.js +2 -2
- package/dist/components/EmptyState/index.js +1 -1
- package/dist/components/Expandable/AnimatedExpandable.js +1 -1
- package/dist/components/Expandable/NonAnimatedExpandable.js +1 -1
- package/dist/components/ExpandableCard/index.js +1 -1
- package/dist/components/FileInput/components/Button.js +3 -4
- package/dist/components/FileInput/components/List.js +3 -2
- package/dist/components/FileInput/helpers.js +3 -2
- package/dist/components/FileInput/index.js +5 -4
- package/dist/components/GlobalAlert/index.js +1 -1
- package/dist/components/InfiniteScroll/index.js +1 -1
- package/dist/components/Key/styles.css.d.ts.map +1 -1
- package/dist/components/LineChart/CustomLegend.js +1 -1
- package/dist/components/LineChart/index.js +1 -1
- package/dist/components/List/Cell.js +2 -2
- package/dist/components/List/ExpandButtonCell.js +1 -1
- package/dist/components/List/HeaderRow.js +1 -1
- package/dist/components/List/ListContext.js +3 -3
- package/dist/components/List/Row.js +1 -1
- package/dist/components/List/SelectRowCell.js +1 -1
- package/dist/components/List/SkeletonRows.js +1 -1
- package/dist/components/List/TableContainer.js +1 -1
- package/dist/components/List/index.js +1 -1
- package/dist/components/Loader/index.js +1 -1
- package/dist/components/Menu/MenuContent.js +2 -1
- package/dist/components/Menu/index.js +2 -2
- package/dist/components/Modal/components/Dialog.js +3 -2
- package/dist/components/Notification/Notification.js +1 -1
- package/dist/components/Notification/index.js +5 -2
- package/dist/components/NumberInput/components/Controls.d.ts +1 -1
- package/dist/components/NumberInput/components/Controls.d.ts.map +1 -1
- package/dist/components/NumberInput/components/Controls.js +6 -10
- package/dist/components/NumberInput/index.d.ts.map +1 -1
- package/dist/components/NumberInput/index.js +31 -9
- package/dist/components/PieChart/index.js +2 -2
- package/dist/components/Popup/index.js +1 -1
- package/dist/components/RadioGroup/SingleRadio.js +1 -1
- package/dist/components/RadioGroup/index.js +1 -1
- package/dist/components/Row/index.d.ts +1 -1
- package/dist/components/Row/index.d.ts.map +1 -1
- package/dist/components/Row/index.js +1 -1
- package/dist/components/Row/styles.css.js +1 -1
- package/dist/components/SelectInput/SelectInputProvider.d.ts +1 -0
- package/dist/components/SelectInput/SelectInputProvider.d.ts.map +1 -1
- package/dist/components/SelectInput/SelectInputProvider.js +4 -5
- package/dist/components/SelectInput/components/Dropdown/Content.d.ts.map +1 -1
- package/dist/components/SelectInput/components/Dropdown/Content.js +3 -3
- package/dist/components/SelectInput/components/Dropdown/Dropdown.js +1 -1
- package/dist/components/SelectInput/components/Dropdown/Group.d.ts +1 -1
- package/dist/components/SelectInput/components/Dropdown/Group.d.ts.map +1 -1
- package/dist/components/SelectInput/components/Dropdown/Group.js +4 -3
- package/dist/components/SelectInput/components/Dropdown/SearchBar.d.ts.map +1 -1
- package/dist/components/SelectInput/components/Dropdown/SearchBar.js +14 -7
- package/dist/components/SelectInput/components/Dropdown/SelectAll.d.ts.map +1 -1
- package/dist/components/SelectInput/components/Dropdown/SelectAll.js +14 -20
- package/dist/components/SelectInput/components/Dropdown/dropdown.css.d.ts +2 -1
- package/dist/components/SelectInput/components/Dropdown/dropdown.css.d.ts.map +1 -1
- package/dist/components/SelectInput/components/Dropdown/dropdown.css.js +4 -4
- package/dist/components/SelectInput/reducerFunctions.d.ts +3 -8
- package/dist/components/SelectInput/reducerFunctions.d.ts.map +1 -1
- package/dist/components/SelectInput/reducerFunctions.js +4 -14
- package/dist/components/SelectInput/styles.css.d.ts +2 -1
- package/dist/components/SelectInput/styles.css.d.ts.map +1 -1
- package/dist/components/SelectInput/styles.css.js +16 -15
- package/dist/components/SelectInput/types.d.ts +0 -1
- package/dist/components/SelectInput/types.d.ts.map +1 -1
- package/dist/components/SelectableCard/MultiStateInput.js +2 -2
- package/dist/components/SelectableCard/SelectableCard.js +1 -1
- package/dist/components/SelectableCard/index.js +1 -1
- package/dist/components/SelectableCardGroup/index.js +1 -1
- package/dist/components/SelectableCardOptionGroup/SelectableCardOptionGroup.js +1 -1
- package/dist/components/SelectableCardOptionGroup/components/Option.js +2 -2
- package/dist/components/SelectableCardOptionGroup/index.js +4 -2
- package/dist/components/Skeleton/index.js +2 -1
- package/dist/components/Slider/components/DoubleSlider.js +1 -1
- package/dist/components/Slider/components/Options.js +1 -1
- package/dist/components/Slider/components/SingleSlider.js +2 -2
- package/dist/components/Snippet/index.d.ts.map +1 -1
- package/dist/components/Snippet/index.js +2 -3
- package/dist/components/Stack/index.d.ts +1 -1
- package/dist/components/Stack/index.d.ts.map +1 -1
- package/dist/components/Stack/index.js +3 -4
- package/dist/components/Stack/styles.css.js +1 -1
- package/dist/components/StepList/Item.js +1 -1
- package/dist/components/Stepper/Bullet.js +1 -1
- package/dist/components/Stepper/Step.js +1 -1
- package/dist/components/Stepper/index.js +2 -2
- package/dist/components/SwitchButton/FocusOverlay.js +1 -1
- package/dist/components/SwitchButton/index.js +3 -2
- package/dist/components/Table/Cell.js +2 -2
- package/dist/components/Table/Row.js +1 -1
- package/dist/components/Table/TableContainer.js +1 -1
- package/dist/components/Table/TableContext.js +4 -7
- package/dist/components/Table/index.js +2 -2
- package/dist/components/Tabs/Tab.js +4 -5
- package/dist/components/Tabs/TabMenu.js +3 -4
- package/dist/components/Tabs/TabMenuItem.js +4 -5
- package/dist/components/Tabs/index.js +4 -5
- package/dist/components/Tabs/styles.css.d.ts.map +1 -1
- package/dist/components/TagInput/index.js +2 -2
- package/dist/components/TagList/index.js +2 -2
- package/dist/components/Text/constants.d.ts +2 -0
- package/dist/components/Text/constants.d.ts.map +1 -1
- package/dist/components/Text/index.js +1 -1
- package/dist/components/Text/style.css.d.ts.map +1 -1
- package/dist/components/TextArea/index.d.ts +1 -1
- package/dist/components/TextArea/index.d.ts.map +1 -1
- package/dist/components/TextArea/index.js +24 -31
- package/dist/components/TextArea/styles.css.d.ts +0 -3
- package/dist/components/TextArea/styles.css.d.ts.map +1 -1
- package/dist/components/TimeInput/index.js +2 -2
- package/dist/components/Toaster/Toaster.js +1 -1
- package/dist/components/Toaster/components/Button.js +3 -4
- package/dist/components/Toaster/components/Link.js +3 -3
- package/dist/components/Toaster/index.js +3 -1
- package/dist/components/ToggleGroup/index.js +1 -1
- package/dist/components/TreeMapChart/index.js +2 -2
- package/dist/components/UnitInput/index.js +1 -1
- package/dist/components/VerificationCode/index.js +4 -2
- package/dist/components/index.js +16 -16
- package/dist/components/styles.js +91 -91
- package/dist/composition.js +30 -30
- package/dist/compositions/EstimateCost/Components/Item.js +1 -1
- package/dist/compositions/EstimateCost/Components/LineThrough.js +3 -4
- 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/EstimateCost/styles.css.js +0 -2
- package/dist/compositions/FAQ/index.js +1 -1
- package/dist/compositions/Filters/filterTypes/FilterDateRange.d.ts +9 -0
- package/dist/compositions/Filters/filterTypes/FilterDateRange.d.ts.map +1 -0
- package/dist/compositions/Filters/filterTypes/FilterDateRange.js +36 -0
- package/dist/compositions/Filters/filterTypes/FilterMultiSelect.d.ts.map +1 -1
- package/dist/compositions/Filters/filterTypes/FilterMultiSelect.js +2 -1
- package/dist/compositions/Filters/filterTypes/FilterSelect.d.ts +1 -1
- package/dist/compositions/Filters/filterTypes/FilterSelect.d.ts.map +1 -1
- package/dist/compositions/Filters/filterTypes/FilterSelect.js +3 -2
- package/dist/compositions/Filters/filterTypes/FilterSlider.js +1 -1
- package/dist/compositions/Filters/index.d.ts +1 -1
- package/dist/compositions/Filters/index.d.ts.map +1 -1
- package/dist/compositions/Filters/parts/AbstractFilter.d.ts.map +1 -1
- package/dist/compositions/Filters/parts/AbstractFilter.js +7 -3
- package/dist/compositions/Filters/parts/FiltersDrawer.d.ts.map +1 -1
- package/dist/compositions/Filters/parts/FiltersDrawer.js +2 -4
- package/dist/compositions/Filters/parts/reducer.js +9 -3
- package/dist/compositions/Filters/parts/useFilters.js +1 -1
- package/dist/compositions/Filters/types.d.ts +24 -1
- 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.js +83 -83
- package/dist/compositions/Navigation/NavigationProvider.d.ts.map +1 -1
- package/dist/compositions/Navigation/NavigationProvider.js +2 -2
- package/dist/compositions/Navigation/styles.css.js +0 -2
- package/dist/compositions/OfferList/components/SelectableCell.js +1 -1
- package/dist/compositions/OptionSelector/styles.css.js +83 -97
- package/dist/compositions/OrderSummary/NonScrollableContent.d.ts.map +1 -1
- package/dist/compositions/OrderSummary/NonScrollableContent.js +5 -0
- package/dist/compositions/OrderSummary/components/Category.d.ts.map +1 -1
- package/dist/compositions/OrderSummary/components/Category.js +8 -0
- package/dist/compositions/OrderSummary/components/SubCategory.js +4 -0
- package/dist/compositions/OrderSummary/components/SubCategoryPrice.d.ts.map +1 -1
- package/dist/compositions/OrderSummary/components/SubCategoryPrice.js +5 -0
- package/dist/compositions/OrderSummary/helpers.js +2 -2
- package/dist/compositions/OrderSummary/styles.css.d.ts +1 -0
- package/dist/compositions/OrderSummary/styles.css.d.ts.map +1 -1
- package/dist/compositions/OrderSummary/styles.css.js +2 -1
- package/dist/compositions/Plans/PlanHeader.d.ts +2 -2
- package/dist/compositions/Plans/PlanHeader.d.ts.map +1 -1
- package/dist/compositions/Plans/PlanHeader.js +2 -4
- package/dist/compositions/Plans/index.js +2 -1
- package/dist/compositions/RichTextInput/editorCore.js +1 -1
- package/dist/compositions/RichTextInput/index.js +1 -1
- package/dist/compositions/index.js +1 -1
- package/dist/compositions/styles.js +1 -1
- package/dist/helpers/treeMap.js +1 -1
- package/dist/index.js +71 -71
- package/dist/theme/ThemeProvider.d.ts +11 -0
- package/dist/theme/ThemeProvider.d.ts.map +1 -1
- package/dist/theme/ThemeProvider.js +2 -7
- package/dist/theme/index.d.ts +27 -2
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/index.js +2 -1
- package/dist/ui.css +1 -1
- package/dist/utils/index.js +5 -1
- package/dist/utils/normalize.d.ts.map +1 -1
- package/dist/utils/normalize.js +0 -1
- package/dist/utils/responsive/index.js +11 -0
- package/dist/utils/responsive/utilities.js +1 -1
- package/package.json +13 -13
- package/dist/components/Avatar/variables.css.ts.vanilla.js +0 -8
- package/dist/components/List/variables.css.ts.vanilla.js +0 -8
- package/dist/components/Popup/variables.css.ts.vanilla.js +0 -8
- package/dist/components/ProgressBar/variables.css.ts.vanilla.js +0 -8
- package/dist/components/SelectableCard/variables.css.ts.vanilla.js +0 -8
- package/dist/components/Table/variables.css.ts.vanilla.js +0 -8
- package/dist/components/Text/variables.css.ts.vanilla.js +0 -8
- package/dist/compositions/Navigation/variables.css.ts.vanilla.js +0 -8
- package/dist/themes/dist/vanilla/themes.css.js.vanilla.js +0 -8
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import
|
|
2
|
+
import _asyncToGenerator, { init_asyncToGenerator } from "../../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/asyncToGenerator.js";
|
|
3
3
|
|
|
4
4
|
//#region src/components/FileInput/helpers.ts
|
|
5
5
|
var getMimeTypeType, formatFileSize, fileIsAccepted, isFileEntry, isDirectoryEntry, convertEntryToFile, readEntriesInDirectory, readEntries, readTransferredFiles;
|
|
@@ -92,7 +92,8 @@ var init_helpers = __esmMin(() => {
|
|
|
92
92
|
}();
|
|
93
93
|
readTransferredFiles = function() {
|
|
94
94
|
var _ref4 = _asyncToGenerator(function* (dataTransfer) {
|
|
95
|
-
const
|
|
95
|
+
const items = [...dataTransfer.items].map((entry) => entry.webkitGetAsEntry()).filter((item) => !!item);
|
|
96
|
+
const files = yield readEntries(items);
|
|
96
97
|
const outputDataTransfer = new DataTransfer();
|
|
97
98
|
for (const file of files) outputDataTransfer.items.add(file);
|
|
98
99
|
return outputDataTransfer.files;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import
|
|
3
|
+
import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
4
4
|
import { Stack, init_Stack } from "../Stack/index.js";
|
|
5
5
|
import { Text, init_Text } from "../Text/index.js";
|
|
6
6
|
import { hasHelperText, init_hasHelperText } from "../../helpers/hasHelperText.js";
|
|
7
7
|
import { Description, init_Description } from "../Description/index.js";
|
|
8
8
|
import { Label, init_Label } from "../Label/index.js";
|
|
9
|
+
import { fileInputStyle, init_styles_css } from "./styles.css.js";
|
|
9
10
|
import { FileInputContext, init_FileInputProvider } from "./FileInputProvider.js";
|
|
10
11
|
import { FileInputButton, init_Button } from "./components/Button.js";
|
|
11
|
-
import
|
|
12
|
+
import _asyncToGenerator, { init_asyncToGenerator } from "../../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/asyncToGenerator.js";
|
|
12
13
|
import { fileIsAccepted, init_helpers, readTransferredFiles } from "./helpers.js";
|
|
13
|
-
import { fileInputStyle, init_styles_css } from "./styles.css.js";
|
|
14
14
|
import { ListFiles, init_List } from "./components/List.js";
|
|
15
15
|
import { DropzoneContent, init_DropzoneContent } from "./DropzoneContent.js";
|
|
16
16
|
import { useEffect, useId, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
@@ -114,7 +114,8 @@ var init_FileInput = __esmMin(() => {
|
|
|
114
114
|
var _event$dataTransfer;
|
|
115
115
|
event.preventDefault();
|
|
116
116
|
if (disabled || disabledDragndrop) return;
|
|
117
|
-
const
|
|
117
|
+
const fileList = allowDirectories ? yield readTransferredFiles(event.dataTransfer) : (_event$dataTransfer = event.dataTransfer) === null || _event$dataTransfer === void 0 ? void 0 : _event$dataTransfer.files;
|
|
118
|
+
const [acceptedFiles, errorFiles] = addFiles(fileList);
|
|
118
119
|
onDrop === null || onDrop === void 0 || onDrop(event, acceptedFiles, errorFiles);
|
|
119
120
|
});
|
|
120
121
|
return function onDropComputed(_x) {
|
|
@@ -3,8 +3,8 @@ import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
|
3
3
|
import { Stack, init_Stack } from "../Stack/index.js";
|
|
4
4
|
import { Text, init_Text } from "../Text/index.js";
|
|
5
5
|
import { Button, init_Button } from "../Button/index.js";
|
|
6
|
-
import { GlobalAlertLink, init_GlobalAlertLink } from "./GlobalAlertLink.js";
|
|
7
6
|
import { globalAlertStyle, init_styles_css } from "./styles.css.js";
|
|
7
|
+
import { GlobalAlertLink, init_GlobalAlertLink } from "./GlobalAlertLink.js";
|
|
8
8
|
import { useReducer } from "react";
|
|
9
9
|
import { cn } from "@ultraviolet/utils";
|
|
10
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import
|
|
3
|
+
import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
4
4
|
import { Loader, init_Loader } from "../Loader/index.js";
|
|
5
5
|
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
6
6
|
import { useDebouncedCallback } from "@ultraviolet/utils";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/Key/styles.css.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/Key/styles.css.ts"],"names":[],"mappings":"AAiGA,eAAO,MAAM,QAAQ;;;YA7Bf,IAAI;;;YAGJ,OAAO;YACP,MAAM;;;YAGN,OAAO;gBACL,UAAU;gBACV,WAAW;;YAEb,OAAO;gBACL,eAAe;gBACf,WAAW;;;;YAIb,MAAM;gBACJ,MAAM;gBACN,QAAQ;;YAEV,KAAK;gBACH,MAAM;gBACN,QAAQ;;;;CAMe,CAAA"}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
3
|
import { Text, init_Text } from "../Text/index.js";
|
|
4
4
|
import { Checkbox, init_Checkbox } from "../Checkbox/index.js";
|
|
5
|
+
import { backgroundColorLegend, init_styles_css, lineChartStyle } from "./styles.css.js";
|
|
5
6
|
import { getLegendColor, init_legend } from "../../helpers/legend.js";
|
|
6
7
|
import { getAverage, getCurrent, getMax, getMin, getSelected, init_helpers } from "./helpers.js";
|
|
7
|
-
import { backgroundColorLegend, init_styles_css, lineChartStyle } from "./styles.css.js";
|
|
8
8
|
import { Cell, init_LegendCell } from "./LegendCell.js";
|
|
9
9
|
import { theme } from "@ultraviolet/themes";
|
|
10
10
|
import { cn } from "@ultraviolet/utils";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import
|
|
3
|
+
import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
4
4
|
import { getLegendColor, init_legend } from "../../helpers/legend.js";
|
|
5
5
|
import { getNivoTheme, init_nivoTheme } from "../../helpers/nivoTheme.js";
|
|
6
6
|
import { getMaxChartValue, getMinChartValue, init_helpers } from "./helpers.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import
|
|
3
|
+
import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
4
|
+
import { init_styles_css, listStyle } from "./styles.css.js";
|
|
4
5
|
import { init_ColumnProvider, useColumnProvider } from "./ColumnProvider.js";
|
|
5
6
|
import { init_ListContext, useListContext } from "./ListContext.js";
|
|
6
|
-
import { init_styles_css, listStyle } from "./styles.css.js";
|
|
7
7
|
import { init_variables_css, listCellPadding, maxWidthCell, maxWidthChildrenCell, minWidthCell, minWidthChildrenCell, widthCell, widthChildrenCell } from "./variables.css.js";
|
|
8
8
|
import { forwardRef } from "react";
|
|
9
9
|
import { cn } from "@ultraviolet/utils";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { Button, init_Button } from "../Button/index.js";
|
|
3
|
+
import { init_styles_css, listStyle } from "./styles.css.js";
|
|
3
4
|
import { ColumnProvider, init_ColumnProvider } from "./ColumnProvider.js";
|
|
4
5
|
import { init_ListContext, useListContext } from "./ListContext.js";
|
|
5
|
-
import { init_styles_css, listStyle } from "./styles.css.js";
|
|
6
6
|
import { Cell, init_Cell } from "./Cell.js";
|
|
7
7
|
import { theme } from "@ultraviolet/themes";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
3
|
import { Checkbox, init_Checkbox } from "../Checkbox/index.js";
|
|
4
|
-
import { init_ListContext, useListContext } from "./ListContext.js";
|
|
5
4
|
import { init_styles_css, listStyle } from "./styles.css.js";
|
|
5
|
+
import { init_ListContext, useListContext } from "./ListContext.js";
|
|
6
6
|
import { HeaderCell, init_HeaderCell } from "./HeaderCell.js";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import { init_toPropertyKey
|
|
4
|
-
import
|
|
5
|
-
import
|
|
3
|
+
import toPropertyKey, { init_toPropertyKey } from "../../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/toPropertyKey.js";
|
|
4
|
+
import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
5
|
+
import _objectWithoutProperties, { init_objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectWithoutProperties.js";
|
|
6
6
|
import { createContext, useCallback, useContext, useEffect, useMemo, useState } from "react";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { init_styles_css, listStyle } from "./styles.css.js";
|
|
3
4
|
import { ColumnProvider, init_ColumnProvider } from "./ColumnProvider.js";
|
|
4
5
|
import { init_ListContext, useListContext } from "./ListContext.js";
|
|
5
|
-
import { init_styles_css, listStyle } from "./styles.css.js";
|
|
6
6
|
import { init_variables_css, paddingExpandableCell } from "./variables.css.js";
|
|
7
7
|
import { Cell, init_Cell } from "./Cell.js";
|
|
8
8
|
import { ExpandButtonCell, init_ExpandButtonCell } from "./ExpandButtonCell.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { Tooltip, init_Tooltip } from "../Tooltip/index.js";
|
|
3
3
|
import { Checkbox, init_Checkbox } from "../Checkbox/index.js";
|
|
4
|
+
import { init_styles_css, listStyle } from "./styles.css.js";
|
|
4
5
|
import { ColumnProvider, init_ColumnProvider } from "./ColumnProvider.js";
|
|
5
6
|
import { init_ListContext, useListContext } from "./ListContext.js";
|
|
6
|
-
import { init_styles_css, listStyle } from "./styles.css.js";
|
|
7
7
|
import { Cell, init_Cell } from "./Cell.js";
|
|
8
8
|
import { theme } from "@ultraviolet/themes";
|
|
9
9
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
3
|
import { Skeleton, init_Skeleton } from "../Skeleton/index.js";
|
|
4
|
+
import { init_styles_css, listStyle } from "./styles.css.js";
|
|
4
5
|
import { ColumnProvider, init_ColumnProvider } from "./ColumnProvider.js";
|
|
5
6
|
import { init_ListContext, useListContext } from "./ListContext.js";
|
|
6
|
-
import { init_styles_css, listStyle } from "./styles.css.js";
|
|
7
7
|
import { Cell, init_Cell } from "./Cell.js";
|
|
8
8
|
import { cn } from "@ultraviolet/utils";
|
|
9
9
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import { init_ListContext, useListContext } from "./ListContext.js";
|
|
4
3
|
import { init_styles_css, listStyle } from "./styles.css.js";
|
|
4
|
+
import { init_ListContext, useListContext } from "./ListContext.js";
|
|
5
5
|
import { Children, useEffect, useState } from "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import { ListProvider, init_ListContext, useListContext } from "./ListContext.js";
|
|
4
3
|
import { init_styles_css, listStyle } from "./styles.css.js";
|
|
4
|
+
import { ListProvider, init_ListContext, useListContext } from "./ListContext.js";
|
|
5
5
|
import { Cell, init_Cell } from "./Cell.js";
|
|
6
6
|
import { HeaderCell, init_HeaderCell } from "./HeaderCell.js";
|
|
7
7
|
import { HeaderRow, init_HeaderRow } from "./HeaderRow.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import
|
|
3
|
+
import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
4
4
|
import { SIZES, init_constants } from "./constants.js";
|
|
5
5
|
import { init_styles_css, loaderStyle } from "./styles.css.js";
|
|
6
6
|
import { useTheme } from "@ultraviolet/themes";
|
|
@@ -137,7 +137,8 @@ var init_MenuContent = __esmMin(() => {
|
|
|
137
137
|
useEffect(() => {
|
|
138
138
|
if (disclosureRef.current && placement === "bottom" && shrink) {
|
|
139
139
|
const disclosureBottom = disclosureRef.current.getBoundingClientRect().bottom;
|
|
140
|
-
|
|
140
|
+
const availableSpace = portalTarget.getBoundingClientRect().bottom - disclosureBottom - SPACE_DISCLOSURE_POPUP;
|
|
141
|
+
setPopupMaxHeight(`${availableSpace}px`);
|
|
141
142
|
}
|
|
142
143
|
}, [
|
|
143
144
|
isVisible,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
4
|
+
import _objectWithoutProperties, { init_objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectWithoutProperties.js";
|
|
5
5
|
import { Group, init_Group } from "./components/Group.js";
|
|
6
6
|
import { MenuProvider, init_MenuProvider } from "./MenuProvider.js";
|
|
7
7
|
import { Item, init_Item } from "./components/Item.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import
|
|
3
|
+
import _objectSpread2, { init_objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
4
4
|
import { Stack, init_Stack } from "../../Stack/index.js";
|
|
5
5
|
import { init_ModalProvider, useModal } from "../ModalProvider.js";
|
|
6
6
|
import { init_styles_css, modalStyle, positionModal, topModal } from "../styles.css.js";
|
|
@@ -115,7 +115,8 @@ var init_Dialog = __esmMin(() => {
|
|
|
115
115
|
if (focusableEls) {
|
|
116
116
|
const elems = [...focusableEls];
|
|
117
117
|
const firstFocusableEl = elems[0];
|
|
118
|
-
|
|
118
|
+
const lastFocusableEl = elems.at(-1);
|
|
119
|
+
handleFocusMove(event, firstFocusableEl, lastFocusableEl);
|
|
119
120
|
}
|
|
120
121
|
}, [dialogRef, handleFocusMove]);
|
|
121
122
|
if ((modalAbove === null || modalAbove === void 0 ? void 0 : modalAbove.ref) && typeof modalAbove.ref === "object" && "current" in modalAbove.ref && currentModalHeight) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import
|
|
3
|
+
import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
4
4
|
import { Stack, init_Stack } from "../Stack/index.js";
|
|
5
5
|
import { Text, init_Text } from "../Text/index.js";
|
|
6
6
|
import { Button, init_Button } from "../Button/index.js";
|
|
@@ -3,8 +3,11 @@ import { init_Notification as init_Notification$1, notification } from "./Notifi
|
|
|
3
3
|
import { NotificationContainer, init_NotificationContainer } from "./NotificationContainer.js";
|
|
4
4
|
|
|
5
5
|
//#region src/components/Notification/index.ts
|
|
6
|
-
var init_Notification = __esmMin(() => {
|
|
6
|
+
var init_Notification = __esmMin(() => {
|
|
7
|
+
init_Notification$1();
|
|
8
|
+
init_NotificationContainer();
|
|
9
|
+
});
|
|
7
10
|
|
|
8
11
|
//#endregion
|
|
9
12
|
init_Notification();
|
|
10
|
-
export { init_Notification };
|
|
13
|
+
export { NotificationContainer, init_Notification, notification };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ControlsProps } from '../types';
|
|
2
|
-
export declare const Controls: ({ controls, direction, size, localRef, max, min,
|
|
2
|
+
export declare const Controls: ({ controls, direction, size, localRef, max, min, isDisabledOrReadOnly }: ControlsProps) => import("react").JSX.Element | null;
|
|
3
3
|
//# sourceMappingURL=Controls.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Controls.d.ts","sourceRoot":"","sources":["../../../../src/components/NumberInput/components/Controls.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAG7C,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"Controls.d.ts","sourceRoot":"","sources":["../../../../src/components/NumberInput/components/Controls.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAG7C,eAAO,MAAM,QAAQ,4EAA6E,aAAa,uCAkE9G,CAAA"}
|
|
@@ -13,7 +13,7 @@ var init_Controls = __esmMin(() => {
|
|
|
13
13
|
init_Button();
|
|
14
14
|
init_Stack();
|
|
15
15
|
init_styles_css();
|
|
16
|
-
Controls = ({ controls, direction, size, localRef, max, min,
|
|
16
|
+
Controls = ({ controls, direction, size, localRef, max, min, isDisabledOrReadOnly }) => {
|
|
17
17
|
var _localRef$current4;
|
|
18
18
|
var _localRef$current8;
|
|
19
19
|
const isUp = direction === "up";
|
|
@@ -37,8 +37,6 @@ var init_Controls = __esmMin(() => {
|
|
|
37
37
|
return Number.isNaN(numericValue) || numericValue <= minValue;
|
|
38
38
|
}, [localRef === null || localRef === void 0 || (_localRef$current8 = localRef.current) === null || _localRef$current8 === void 0 ? void 0 : _localRef$current8.value, min]);
|
|
39
39
|
const onClickSideButton = useCallback(() => {
|
|
40
|
-
var _Number$parseFloat;
|
|
41
|
-
var _localRef$current$val;
|
|
42
40
|
var _localRef$current11;
|
|
43
41
|
if (direction === "up") {
|
|
44
42
|
var _localRef$current9;
|
|
@@ -47,13 +45,11 @@ var init_Controls = __esmMin(() => {
|
|
|
47
45
|
var _localRef$current10;
|
|
48
46
|
(_localRef$current10 = localRef.current) === null || _localRef$current10 === void 0 || _localRef$current10.stepDown();
|
|
49
47
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
direction
|
|
56
|
-
]);
|
|
48
|
+
(_localRef$current11 = localRef.current) === null || _localRef$current11 === void 0 || _localRef$current11.dispatchEvent(new Event("input", {
|
|
49
|
+
bubbles: true,
|
|
50
|
+
cancelable: false
|
|
51
|
+
}));
|
|
52
|
+
}, [localRef, direction]);
|
|
57
53
|
const isDisabled = isUp ? isPlusDisabled() : isMinusDisabled();
|
|
58
54
|
return controls ? /* @__PURE__ */ jsx(Stack, {
|
|
59
55
|
alignItems: "center",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/NumberInput/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/NumberInput/index.tsx"],"names":[],"mappings":"AAqBA;;;GAGG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;oRAkMvB,CAAA"}
|
|
@@ -14,7 +14,7 @@ import { isNullOrUndefined } from "@ultraviolet/utils";
|
|
|
14
14
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/NumberInput/index.tsx
|
|
17
|
-
var NumberInput;
|
|
17
|
+
var getValueAsNumber, NumberInput;
|
|
18
18
|
var init_NumberInput = __esmMin(() => {
|
|
19
19
|
init_hasHelperText();
|
|
20
20
|
init_Description();
|
|
@@ -25,9 +25,29 @@ var init_NumberInput = __esmMin(() => {
|
|
|
25
25
|
init_Controls();
|
|
26
26
|
init_Unit();
|
|
27
27
|
init_styles_css();
|
|
28
|
+
getValueAsNumber = (input) => {
|
|
29
|
+
return input.value === "" && !input.validity.badInput ? null : input.valueAsNumber;
|
|
30
|
+
};
|
|
28
31
|
NumberInput = forwardRef(({ disabled = false, max = Number.MAX_SAFE_INTEGER, min = 0, name, onChange, onFocus, onBlur, size = "large", step, unit, value, tooltip, className, label, labelDescription, id, controls = true, placeholder = "", error, success, helper, "aria-label": ariaLabel, "data-testid": dataTestId, "aria-describedby": ariaDescribedBy, required, autoFocus, readOnly, style }, ref) => {
|
|
29
32
|
const localRef = useRef(null);
|
|
30
|
-
|
|
33
|
+
/**
|
|
34
|
+
* Expose a custom ref for react-hook-form which reads the `value` prop of the native input when using the `register` function.
|
|
35
|
+
* We return a modified `value` to differentiate empty (null) from invalid (NaN), like we do in the `onChange` callback.
|
|
36
|
+
*/
|
|
37
|
+
useImperativeHandle(ref, () => {
|
|
38
|
+
if (!localRef.current) return null;
|
|
39
|
+
return new Proxy(localRef.current, {
|
|
40
|
+
get(target, prop) {
|
|
41
|
+
if (prop === "value") return getValueAsNumber(target);
|
|
42
|
+
const value = Reflect.get(target, prop);
|
|
43
|
+
return typeof value === "function" ? value.bind(target) : value;
|
|
44
|
+
},
|
|
45
|
+
set(target, prop, newValue) {
|
|
46
|
+
if (prop === "value" && Number.isNaN(newValue)) return true;
|
|
47
|
+
return Reflect.set(target, prop, newValue);
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
});
|
|
31
51
|
const uniqueId = useId();
|
|
32
52
|
const helperId = useId();
|
|
33
53
|
const localId = id !== null && id !== void 0 ? id : uniqueId;
|
|
@@ -103,16 +123,18 @@ var init_NumberInput = __esmMin(() => {
|
|
|
103
123
|
inputMode: Number.isInteger(step) ? "numeric" : "decimal",
|
|
104
124
|
onBlur: (event) => {
|
|
105
125
|
const { valueAsNumber } = event.target;
|
|
106
|
-
if (valueAsNumber) {
|
|
107
|
-
if (!isNullOrUndefined(max) && valueAsNumber > max)
|
|
108
|
-
if (!isNullOrUndefined(min) && valueAsNumber < min)
|
|
126
|
+
if (valueAsNumber && localRef.current) {
|
|
127
|
+
if (!isNullOrUndefined(max) && valueAsNumber > max) localRef.current.valueAsNumber = max;
|
|
128
|
+
if (!isNullOrUndefined(min) && valueAsNumber < min) localRef.current.valueAsNumber = min;
|
|
129
|
+
localRef.current.dispatchEvent(new Event("input", {
|
|
130
|
+
bubbles: true,
|
|
131
|
+
cancelable: false
|
|
132
|
+
}));
|
|
109
133
|
}
|
|
110
134
|
onBlur === null || onBlur === void 0 || onBlur(event);
|
|
111
135
|
},
|
|
112
136
|
onChange: onChange ? (event) => {
|
|
113
|
-
|
|
114
|
-
if (Number.isNaN(target.valueAsNumber)) onChange(null);
|
|
115
|
-
else onChange(target.valueAsNumber);
|
|
137
|
+
onChange(getValueAsNumber(event.target));
|
|
116
138
|
} : void 0,
|
|
117
139
|
onFocus,
|
|
118
140
|
placeholder,
|
|
@@ -122,7 +144,7 @@ var init_NumberInput = __esmMin(() => {
|
|
|
122
144
|
step,
|
|
123
145
|
style,
|
|
124
146
|
type: "number",
|
|
125
|
-
value: value === null || value
|
|
147
|
+
value: value === null || Number.isNaN(value) ? "" : value
|
|
126
148
|
}), /* @__PURE__ */ jsx(Unit, {
|
|
127
149
|
controls,
|
|
128
150
|
disabled,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import
|
|
3
|
+
import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
4
4
|
import { Text, init_Text } from "../Text/index.js";
|
|
5
|
+
import { heightContainerPie, init_styles_css, pieChartStyle } from "./styles.css.js";
|
|
5
6
|
import { getLegendColor, init_legend } from "../../helpers/legend.js";
|
|
6
7
|
import { getNivoTheme, init_nivoTheme } from "../../helpers/nivoTheme.js";
|
|
7
|
-
import { heightContainerPie, init_styles_css, pieChartStyle } from "./styles.css.js";
|
|
8
8
|
import { Legends, init_Legends } from "./Legends.js";
|
|
9
9
|
import { useCallback, useState } from "react";
|
|
10
10
|
import { useTheme } from "@ultraviolet/themes";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import
|
|
3
|
+
import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
4
4
|
import { init_isClientSide, isClientSide } from "../../helpers/isClientSide.js";
|
|
5
5
|
import { DEFAULT_POSITIONS, computePositions, init_helpers } from "./helpers.js";
|
|
6
6
|
import { init_styles_css, popupStyle } from "./styles.css.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import { RadioGroupContext, init_Context } from "./Context.js";
|
|
4
3
|
import { Radio, init_Radio } from "../Radio/index.js";
|
|
4
|
+
import { RadioGroupContext, init_Context } from "./Context.js";
|
|
5
5
|
import { useContext } from "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
|
|
@@ -5,9 +5,9 @@ import { Text, init_Text } from "../Text/index.js";
|
|
|
5
5
|
import { hasHelperText, init_hasHelperText } from "../../helpers/hasHelperText.js";
|
|
6
6
|
import { Description, init_Description } from "../Description/index.js";
|
|
7
7
|
import { Label, init_Label } from "../Label/index.js";
|
|
8
|
+
import { init_styles_css, radioGRoupStyle } from "./styles.css.js";
|
|
8
9
|
import { RadioGroupContext, init_Context } from "./Context.js";
|
|
9
10
|
import { RadioGroupRadio, init_SingleRadio } from "./SingleRadio.js";
|
|
10
|
-
import { init_styles_css, radioGRoupStyle } from "./styles.css.js";
|
|
11
11
|
import { useId, useMemo } from "react";
|
|
12
12
|
import { cn } from "@ultraviolet/utils";
|
|
13
13
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { UltravioletUITheme } from '@ultraviolet/themes';
|
|
1
2
|
import type { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import type { UltravioletUITheme } from '../../theme';
|
|
3
3
|
import type { AlignItemsType, JustifyContentType } from './styles.css';
|
|
4
4
|
type ResponsiveProp<T> = T | Partial<Record<keyof UltravioletUITheme['breakpoints'], T>>;
|
|
5
5
|
type ToNumber<T extends string> = T extends `${infer N extends number}` ? N : never;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Row/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Row/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAG7D,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAErD,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AAGtE,KAAK,cAAc,CAAC,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,kBAAkB,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC,CAAC,CAAA;AAGxF,KAAK,QAAQ,CAAC,CAAC,SAAS,MAAM,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,MAAM,EAAE,GAAG,CAAC,GAAG,KAAK,CAAA;AAEnF,KAAK,QAAQ,GAAG;IACd,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,EAAE,SAAS,CAAA;IACnB,eAAe,EAAE,cAAc,CAAC,MAAM,CAAC,CAAA;IACvC,GAAG,CAAC,EAAE,cAAc,CAAC,MAAM,kBAAkB,CAAC,OAAO,CAAC,GAAG,QAAQ,CAAC,MAAM,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA;IACrG,UAAU,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC,CAAA;IAC3C,cAAc,CAAC,EAAE,cAAc,CAAC,kBAAkB,CAAC,CAAA;IACnD,OAAO,CAAC,EAAE,cAAc,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC,CAAA;IAClD,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;4BAyBmB,EAClB,SAAS,EACT,aAAa,EAAE,UAAU,EACzB,QAAQ,EACR,eAAe,EACf,UAAU,EACV,cAAc,EACd,GAAG,EACH,OAAO,EACP,KAAK,GACN,EAAE,QAAQ"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import
|
|
3
|
+
import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.139.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":"SelectInputProvider.d.ts","sourceRoot":"","sources":["../../../src/components/SelectInput/SelectInputProvider.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAS3E,OAAO,KAAK,EAAE,QAAQ,EAAc,aAAa,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAEhF,KAAK,YAAY,GAAG;IAClB,OAAO,EAAE,QAAQ,CAAA;IACjB,QAAQ,EAAE,QAAQ,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAA;IAC5C,iBAAiB,EAAE,OAAO,CAAA;IAC1B,oBAAoB,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAA;IACvD,WAAW,EAAE,MAAM,CAAA;IACnB,cAAc,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAA;IAChD,SAAS,CAAC,EAAE;QAAE,KAAK,EAAE,SAAS,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;IACtD,cAAc,EAAE,OAAO,CAAA;IACvB,eAAe,EAAE,MAAM,CAAA;IACvB,gBAAgB,EAAE,QAAQ,CAAA;IAC1B,YAAY,EAAE,YAAY,CAAA;IAC1B,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;IAClC,eAAe,EAAE,QAAQ,CAAC,aAAa,CAAC,CAAA;CACzC,GAAG,CACA;IACE,WAAW,EAAE,IAAI,CAAA;IACjB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;CACrC,GACD;IACE,WAAW,EAAE,KAAK,CAAA;IAClB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;CACnC,CACJ,CAAA;
|
|
1
|
+
{"version":3,"file":"SelectInputProvider.d.ts","sourceRoot":"","sources":["../../../src/components/SelectInput/SelectInputProvider.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAS3E,OAAO,KAAK,EAAE,QAAQ,EAAc,aAAa,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAEhF,KAAK,YAAY,GAAG;IAClB,OAAO,EAAE,QAAQ,CAAA;IACjB,QAAQ,EAAE,QAAQ,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAA;IAC5C,iBAAiB,EAAE,OAAO,CAAA;IAC1B,oBAAoB,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAA;IACvD,WAAW,EAAE,MAAM,CAAA;IACnB,cAAc,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAA;IAChD,SAAS,CAAC,EAAE;QAAE,KAAK,EAAE,SAAS,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;IACtD,cAAc,EAAE,OAAO,CAAA;IACvB,eAAe,EAAE,MAAM,CAAA;IACvB,uBAAuB,EAAE,MAAM,CAAA;IAC/B,gBAAgB,EAAE,QAAQ,CAAA;IAC1B,YAAY,EAAE,YAAY,CAAA;IAC1B,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;IAClC,eAAe,EAAE,QAAQ,CAAC,aAAa,CAAC,CAAA;CACzC,GAAG,CACA;IACE,WAAW,EAAE,IAAI,CAAA;IACjB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;CACrC,GACD;IACE,WAAW,EAAE,KAAK,CAAA;IAClB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;CACnC,CACJ,CAAA;AAqBD,eAAO,MAAM,cAAc,oBAAuC,CAAA;AAElE,KAAK,wBAAwB,CAAC,OAAO,SAAS,OAAO,IAAI;IACvD,OAAO,EAAE,QAAQ,CAAA;IACjB,SAAS,CAAC,EAAE;QAAE,KAAK,EAAE,SAAS,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;IACtD,QAAQ,EAAE,SAAS,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACzB,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;IAClC,cAAc,EAAE,OAAO,CAAA;IACvB,eAAe,EAAE,MAAM,CAAA;IACvB,uBAAuB,EAAE,MAAM,CAAA;IAC/B,WAAW,EAAE,OAAO,CAAA;IACpB,SAAS,CAAC,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;IAC5C,QAAQ,CAAC,EAAE,OAAO,SAAS,IAAI,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACrF,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;CACpB,CAAA;AAED,eAAO,MAAM,mBAAmB,GAAI,CAAC,SAAS,OAAO,sJAalD,wBAAwB,CAAC,CAAC,CAAC,gCA2I7B,CAAA"}
|
|
@@ -13,6 +13,7 @@ var init_SelectInputProvider = __esmMin(() => {
|
|
|
13
13
|
isDropdownVisible: false,
|
|
14
14
|
multiselect: false,
|
|
15
15
|
numberOfOptions: 0,
|
|
16
|
+
numberOfDisabledOptions: 0,
|
|
16
17
|
onChange: () => {},
|
|
17
18
|
onSearch: () => {},
|
|
18
19
|
options: [],
|
|
@@ -20,7 +21,6 @@ var init_SelectInputProvider = __esmMin(() => {
|
|
|
20
21
|
selectAll: { label: "" },
|
|
21
22
|
selectAllGroup: false,
|
|
22
23
|
selectedData: {
|
|
23
|
-
allSelected: false,
|
|
24
24
|
selectedGroups: [],
|
|
25
25
|
selectedValues: []
|
|
26
26
|
},
|
|
@@ -63,9 +63,9 @@ var init_SelectInputProvider = __esmMin(() => {
|
|
|
63
63
|
}, [options]);
|
|
64
64
|
const reducer = (state, action) => {
|
|
65
65
|
switch (action.type) {
|
|
66
|
-
case "selectAll": return selectAllAction(state, allGroups, allValues);
|
|
67
|
-
case "selectGroup": return selectGroupAction(state, action.selectedGroup, options
|
|
68
|
-
case "selectOption": return selectOptionAction(state, options,
|
|
66
|
+
case "selectAll": return selectAllAction(state, allGroups, allValues, numberOfOptions, numberOfDisabledOptions);
|
|
67
|
+
case "selectGroup": return selectGroupAction(state, action.selectedGroup, options);
|
|
68
|
+
case "selectOption": return selectOptionAction(state, options, multiselect, action.clickedOption, action.group);
|
|
69
69
|
case "clearAll": return clearAllAction();
|
|
70
70
|
case "update": return updateAction(state, options);
|
|
71
71
|
case "reset": return resetAction(action.selectedGroups, action.selectedValues);
|
|
@@ -73,7 +73,6 @@ var init_SelectInputProvider = __esmMin(() => {
|
|
|
73
73
|
}
|
|
74
74
|
};
|
|
75
75
|
const [selectedData, setSelectedData] = useReducer(reducer, {
|
|
76
|
-
allSelected: false,
|
|
77
76
|
selectedGroups,
|
|
78
77
|
selectedValues: currentValue
|
|
79
78
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Content.d.ts","sourceRoot":"","sources":["../../../../../src/components/SelectInput/components/Dropdown/Content.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Content.d.ts","sourceRoot":"","sources":["../../../../../src/components/SelectInput/components/Dropdown/Content.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAiB,SAAS,EAAE,MAAM,OAAO,CAAA;AAYrD,KAAK,mBAAmB,GAAG;IACzB,OAAO,EAAE,OAAO,CAAA;IAChB,UAAU,EAAE,SAAS,CAAA;IACrB,oBAAoB,EAAE,KAAK,GAAG,QAAQ,CAAA;IACtC,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,qBAAqB,EAAE,MAAM,GAAG,OAAO,CAAA;IACvC,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAA;IACjC,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAA;IACtC,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAA;IAC3C,SAAS,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAA;KAAE,CAAA;IACnE,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA;AA2CD,eAAO,MAAM,cAAc,uKAYxB,mBAAmB,gCA8KrB,CAAA"}
|
|
@@ -11,7 +11,6 @@ import { Group, init_Group } from "./Group.js";
|
|
|
11
11
|
import { Item, init_Item } from "./Item.js";
|
|
12
12
|
import { SelectAll, init_SelectAll } from "./SelectAll.js";
|
|
13
13
|
import { useEffect, useRef } from "react";
|
|
14
|
-
import { cn } from "@ultraviolet/utils";
|
|
15
14
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
16
15
|
import { PlusIcon } from "@ultraviolet/icons/PlusIcon";
|
|
17
16
|
|
|
@@ -103,8 +102,7 @@ var init_Content = __esmMin(() => {
|
|
|
103
102
|
textVariant
|
|
104
103
|
});
|
|
105
104
|
return Array.isArray(displayedOptions) ? /* @__PURE__ */ jsxs(Stack, {
|
|
106
|
-
className:
|
|
107
|
-
gap: .25,
|
|
105
|
+
className: selectInputStyle.dropdownContainer,
|
|
108
106
|
id: "select-dropdown",
|
|
109
107
|
onKeyDown: handleKeyDownSelect,
|
|
110
108
|
role: "listbox",
|
|
@@ -123,6 +121,7 @@ var init_Content = __esmMin(() => {
|
|
|
123
121
|
/* @__PURE__ */ jsxs(Stack, {
|
|
124
122
|
gap: .25,
|
|
125
123
|
id: "items",
|
|
124
|
+
className: selectInputStyle.dropdownSection,
|
|
126
125
|
children: [isLoading ? /* @__PURE__ */ jsx(Skeleton, { variant: "block" }) : displayedOptions.map((option, index) => /* @__PURE__ */ jsx(Item, {
|
|
127
126
|
defaultSearchValue,
|
|
128
127
|
descriptionDirection,
|
|
@@ -163,6 +162,7 @@ var init_Content = __esmMin(() => {
|
|
|
163
162
|
const errorGroup = (_groupError$group = groupError === null || groupError === void 0 ? void 0 : groupError[group]) !== null && _groupError$group !== void 0 ? _groupError$group : null;
|
|
164
163
|
return /* @__PURE__ */ jsxs(Stack, {
|
|
165
164
|
gap: .25,
|
|
165
|
+
className: selectInputStyle.dropdownSection,
|
|
166
166
|
children: [hasElements || emptyStateGroup ? /* @__PURE__ */ jsx(Group, {
|
|
167
167
|
group,
|
|
168
168
|
index
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import
|
|
3
|
+
import _objectSpread2, { init_objectSpread2 } from "../../../../_virtual/_@oxc-project_runtime@0.139.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";
|