@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,80 +1,80 @@
|
|
|
1
1
|
import { __esmMin } from "../../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { init_variables_css_ts_vanilla } from "../../components/Stack/variables.css.ts.vanilla.js";
|
|
3
3
|
import { init_styles_css_ts_vanilla } from "../../components/Stack/styles.css.ts.vanilla.js";
|
|
4
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$1 } from "../../components/Tag/styles.css.ts.vanilla.js";
|
|
5
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$2 } from "../../components/TagList/styles.css.ts.vanilla.js";
|
|
6
|
-
import { init_style_css_ts_vanilla } from "../../components/Text/style.css.ts.vanilla.js";
|
|
7
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$3 } from "../../components/Popup/styles.css.ts.vanilla.js";
|
|
8
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$4 } from "../../components/Tooltip/styles.css.ts.vanilla.js";
|
|
9
4
|
import { init_animationsVanillaExtract_css_ts_vanilla } from "../../utils/animations/animationsVanillaExtract.css.ts.vanilla.js";
|
|
10
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
11
|
-
import {
|
|
12
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
13
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
14
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
15
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
16
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
17
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
18
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
19
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
20
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
5
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$1 } from "../../components/Tooltip/styles.css.ts.vanilla.js";
|
|
6
|
+
import { init_style_css_ts_vanilla } from "../../components/Text/style.css.ts.vanilla.js";
|
|
7
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$2 } from "../../components/Loader/styles.css.ts.vanilla.js";
|
|
8
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$3 } from "../../components/Button/styles.css.ts.vanilla.js";
|
|
9
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$4 } from "../../components/Menu/styles.css.ts.vanilla.js";
|
|
10
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$5 } from "../../components/Popup/styles.css.ts.vanilla.js";
|
|
11
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$6 } from "../../components/Label/styles.css.ts.vanilla.js";
|
|
12
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$7 } from "../../components/SearchInput/styles.css.ts.vanilla.js";
|
|
13
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$8 } from "../../components/TextInput/styles.css.ts.vanilla.js";
|
|
14
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$9 } from "../../components/Key/styles.css.ts.vanilla.js";
|
|
15
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$10 } from "../../components/Badge/styles.css.ts.vanilla.js";
|
|
16
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$11 } from "../../components/Expandable/styles.css.ts.vanilla.js";
|
|
17
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$12 } from "../../components/Drawer/styles.css.ts.vanilla.js";
|
|
18
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$13 } from "../../components/Tag/styles.css.ts.vanilla.js";
|
|
19
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$14 } from "../../components/Separator/styles.css.ts.vanilla.js";
|
|
21
20
|
import { init_variables_css_ts_vanilla as init_variables_css_ts_vanilla$1 } from "../../components/Row/variables.css.ts.vanilla.js";
|
|
22
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
23
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
24
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
21
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$15 } from "../../components/Row/styles.css.ts.vanilla.js";
|
|
22
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$16 } from "../../components/NumberInput/styles.css.ts.vanilla.js";
|
|
23
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$17 } from "../../components/Alert/styles.css.ts.vanilla.js";
|
|
25
24
|
import { init_stylesVariants_css_ts_vanilla } from "../../components/Skeleton/stylesVariants.css.ts.vanilla.js";
|
|
26
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
25
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$18 } from "../../components/Skeleton/styles.css.ts.vanilla.js";
|
|
27
26
|
import { init_dropdown_css_ts_vanilla } from "../../components/SelectInput/components/Dropdown/dropdown.css.ts.vanilla.js";
|
|
28
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
29
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
27
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$19 } from "../../components/SelectableCardOptionGroup/styles.css.ts.vanilla.js";
|
|
28
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$20 } from "../../components/UnitInput/styles.css.ts.vanilla.js";
|
|
30
29
|
import { init_selectBar_css_ts_vanilla } from "../../components/SelectInput/components/SelectBar/selectBar.css.ts.vanilla.js";
|
|
31
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
32
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
33
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
34
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
35
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
36
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
37
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
38
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
39
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
40
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
41
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
42
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
43
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
44
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
45
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
46
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
47
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
48
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
49
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
50
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
51
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
52
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
53
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
54
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
55
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
56
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
57
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
58
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
59
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
60
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
61
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
62
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
63
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
64
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
65
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
66
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
67
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
68
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
69
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
70
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
71
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
72
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
73
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
74
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
75
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
76
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
77
|
-
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$
|
|
30
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$21 } from "../../components/SelectInput/styles.css.ts.vanilla.js";
|
|
31
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$22 } from "../../components/CheckboxGroup/styles.css.ts.vanilla.js";
|
|
32
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$23 } from "../../components/List/styles.css.ts.vanilla.js";
|
|
33
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$24 } from "../../components/SelectableCard/styles.css.ts.vanilla.js";
|
|
34
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$25 } from "../../components/Checkbox/styles.css.ts.vanilla.js";
|
|
35
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$26 } from "../../components/ActionBar/styles.css.ts.vanilla.js";
|
|
36
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$27 } from "../../components/Avatar/styles.css.ts.vanilla.js";
|
|
37
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$28 } from "../../components/Banner/styles.css.ts.vanilla.js";
|
|
38
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$29 } from "../../components/BarChart/styles.css.ts.vanilla.js";
|
|
39
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$30 } from "../../components/BarStack/styles.css.ts.vanilla.js";
|
|
40
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$31 } from "../../components/Breadcrumbs/components/styles.css.ts.vanilla.js";
|
|
41
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$32 } from "../../components/Breadcrumbs/styles.css.ts.vanilla.js";
|
|
42
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$33 } from "../../components/Bullet/styles.css.ts.vanilla.js";
|
|
43
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$34 } from "../../components/Card/styles.css.ts.vanilla.js";
|
|
44
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$35 } from "../../components/Carousel/styles.css.ts.vanilla.js";
|
|
45
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$36 } from "../../components/Chip/styles.css.ts.vanilla.js";
|
|
46
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$37 } from "../../components/DateInput/components/styles.css.ts.vanilla.js";
|
|
47
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$38 } from "../../components/DateInput/styles.css.ts.vanilla.js";
|
|
48
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$39 } from "../../components/Dialog/styles.css.ts.vanilla.js";
|
|
49
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$40 } from "../../components/EmptyState/styles.css.ts.vanilla.js";
|
|
50
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$41 } from "../../components/ExpandableCard/styles.css.ts.vanilla.js";
|
|
51
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$42 } from "../../components/FileInput/styles.css.ts.vanilla.js";
|
|
52
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$43 } from "../../components/GlobalAlert/styles.css.ts.vanilla.js";
|
|
53
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$44 } from "../../components/KeyValueInput/styles.css.ts.vanilla.js";
|
|
54
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$45 } from "../../components/LineChart/styles.css.ts.vanilla.js";
|
|
55
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$46 } from "../../components/Link/styles.css.ts.vanilla.js";
|
|
56
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$47 } from "../../components/Meter/styles.css.ts.vanilla.js";
|
|
57
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$48 } from "../../components/Modal/styles.css.ts.vanilla.js";
|
|
58
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$49 } from "../../components/Notice/styles.css.ts.vanilla.js";
|
|
59
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$50 } from "../../components/Notification/styles.css.ts.vanilla.js";
|
|
60
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$51 } from "../../components/Pagination/styles.css.ts.vanilla.js";
|
|
61
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$52 } from "../../components/PasswordCheck/styles.css.ts.vanilla.js";
|
|
62
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$53 } from "../../components/PieChart/styles.css.ts.vanilla.js";
|
|
63
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$54 } from "../../components/Popover/styles.css.ts.vanilla.js";
|
|
64
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$55 } from "../../components/ProgressBar/styles.css.ts.vanilla.js";
|
|
65
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$56 } from "../../components/SwitchButton/styles.css.ts.vanilla.js";
|
|
66
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$57 } from "../../components/Radio/styles.css.ts.vanilla.js";
|
|
67
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$58 } from "../../components/RadioGroup/styles.css.ts.vanilla.js";
|
|
68
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$59 } from "../../components/SelectableCardGroup/styles.css.ts.vanilla.js";
|
|
69
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$60 } from "../../components/Slider/styles.css.ts.vanilla.js";
|
|
70
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$61 } from "../../components/Snippet/styles.css.ts.vanilla.js";
|
|
71
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$62 } from "../../components/Status/styles.css.ts.vanilla.js";
|
|
72
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$63 } from "../../components/StepList/styles.css.ts.vanilla.js";
|
|
73
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$64 } from "../../components/Stepper/styles.css.ts.vanilla.js";
|
|
74
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$65 } from "../../components/Table/styles.css.ts.vanilla.js";
|
|
75
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$66 } from "../../components/Tabs/styles.css.ts.vanilla.js";
|
|
76
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$67 } from "../../components/TagInput/styles.css.ts.vanilla.js";
|
|
77
|
+
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$68 } from "../../components/TagList/styles.css.ts.vanilla.js";
|
|
78
78
|
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$69 } from "../../components/TextArea/styles.css.ts.vanilla.js";
|
|
79
79
|
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$70 } from "../../components/TimeInput/styles.css.ts.vanilla.js";
|
|
80
80
|
import { init_styles_css_ts_vanilla as init_styles_css_ts_vanilla$71 } from "../../components/Toaster/styles.css.ts.vanilla.js";
|
|
@@ -90,86 +90,86 @@ var optionSelectorStyle;
|
|
|
90
90
|
function init_styles_css() {
|
|
91
91
|
return (init_styles_css = __esmMin(() => {
|
|
92
92
|
/* @__PURE__ */ init_animationsVanillaExtract_css_ts_vanilla();
|
|
93
|
+
/* @__PURE__ */ init_styles_css_ts_vanilla$26();
|
|
94
|
+
/* @__PURE__ */ init_styles_css_ts_vanilla$17();
|
|
93
95
|
/* @__PURE__ */ init_styles_css_ts_vanilla$27();
|
|
94
|
-
/* @__PURE__ */ init_styles_css_ts_vanilla$
|
|
96
|
+
/* @__PURE__ */ init_styles_css_ts_vanilla$10();
|
|
95
97
|
/* @__PURE__ */ init_styles_css_ts_vanilla$28();
|
|
96
|
-
/* @__PURE__ */ init_styles_css_ts_vanilla$12();
|
|
97
98
|
/* @__PURE__ */ init_styles_css_ts_vanilla$29();
|
|
98
99
|
/* @__PURE__ */ init_styles_css_ts_vanilla$30();
|
|
99
100
|
/* @__PURE__ */ init_styles_css_ts_vanilla$31();
|
|
100
101
|
/* @__PURE__ */ init_styles_css_ts_vanilla$32();
|
|
101
102
|
/* @__PURE__ */ init_styles_css_ts_vanilla$33();
|
|
103
|
+
/* @__PURE__ */ init_styles_css_ts_vanilla$3();
|
|
102
104
|
/* @__PURE__ */ init_styles_css_ts_vanilla$34();
|
|
103
|
-
/* @__PURE__ */ init_styles_css_ts_vanilla$6();
|
|
104
105
|
/* @__PURE__ */ init_styles_css_ts_vanilla$35();
|
|
105
|
-
/* @__PURE__ */ init_styles_css_ts_vanilla$
|
|
106
|
+
/* @__PURE__ */ init_styles_css_ts_vanilla$22();
|
|
106
107
|
/* @__PURE__ */ init_styles_css_ts_vanilla$23();
|
|
107
108
|
/* @__PURE__ */ init_styles_css_ts_vanilla$24();
|
|
108
109
|
/* @__PURE__ */ init_styles_css_ts_vanilla$25();
|
|
109
|
-
/* @__PURE__ */ init_styles_css_ts_vanilla$
|
|
110
|
+
/* @__PURE__ */ init_styles_css_ts_vanilla$36();
|
|
110
111
|
/* @__PURE__ */ init_styles_css_ts_vanilla$37();
|
|
111
112
|
/* @__PURE__ */ init_styles_css_ts_vanilla$38();
|
|
112
113
|
/* @__PURE__ */ init_styles_css_ts_vanilla$39();
|
|
114
|
+
/* @__PURE__ */ init_styles_css_ts_vanilla$12();
|
|
113
115
|
/* @__PURE__ */ init_styles_css_ts_vanilla$40();
|
|
114
|
-
/* @__PURE__ */ init_styles_css_ts_vanilla$
|
|
116
|
+
/* @__PURE__ */ init_styles_css_ts_vanilla$11();
|
|
115
117
|
/* @__PURE__ */ init_styles_css_ts_vanilla$41();
|
|
116
|
-
/* @__PURE__ */ init_styles_css_ts_vanilla$13();
|
|
117
118
|
/* @__PURE__ */ init_styles_css_ts_vanilla$42();
|
|
118
119
|
/* @__PURE__ */ init_styles_css_ts_vanilla$43();
|
|
120
|
+
/* @__PURE__ */ init_styles_css_ts_vanilla$9();
|
|
119
121
|
/* @__PURE__ */ init_styles_css_ts_vanilla$44();
|
|
120
|
-
/* @__PURE__ */ init_styles_css_ts_vanilla$
|
|
122
|
+
/* @__PURE__ */ init_styles_css_ts_vanilla$6();
|
|
121
123
|
/* @__PURE__ */ init_styles_css_ts_vanilla$45();
|
|
122
|
-
/* @__PURE__ */ init_styles_css_ts_vanilla$8();
|
|
123
124
|
/* @__PURE__ */ init_styles_css_ts_vanilla$46();
|
|
125
|
+
/* @__PURE__ */ init_styles_css_ts_vanilla$2();
|
|
126
|
+
/* @__PURE__ */ init_styles_css_ts_vanilla$4();
|
|
124
127
|
/* @__PURE__ */ init_styles_css_ts_vanilla$47();
|
|
125
|
-
/* @__PURE__ */ init_styles_css_ts_vanilla$5();
|
|
126
|
-
/* @__PURE__ */ init_styles_css_ts_vanilla$7();
|
|
127
128
|
/* @__PURE__ */ init_styles_css_ts_vanilla$48();
|
|
128
129
|
/* @__PURE__ */ init_styles_css_ts_vanilla$49();
|
|
129
130
|
/* @__PURE__ */ init_styles_css_ts_vanilla$50();
|
|
131
|
+
/* @__PURE__ */ init_styles_css_ts_vanilla$16();
|
|
130
132
|
/* @__PURE__ */ init_styles_css_ts_vanilla$51();
|
|
131
|
-
/* @__PURE__ */ init_styles_css_ts_vanilla$17();
|
|
132
133
|
/* @__PURE__ */ init_styles_css_ts_vanilla$52();
|
|
133
134
|
/* @__PURE__ */ init_styles_css_ts_vanilla$53();
|
|
134
135
|
/* @__PURE__ */ init_styles_css_ts_vanilla$54();
|
|
136
|
+
/* @__PURE__ */ init_styles_css_ts_vanilla$5();
|
|
135
137
|
/* @__PURE__ */ init_styles_css_ts_vanilla$55();
|
|
136
|
-
/* @__PURE__ */ init_styles_css_ts_vanilla$
|
|
137
|
-
/* @__PURE__ */ init_styles_css_ts_vanilla$2();
|
|
138
|
-
/* @__PURE__ */ init_style_css_ts_vanilla();
|
|
139
|
-
/* @__PURE__ */ init_styles_css_ts_vanilla$3();
|
|
138
|
+
/* @__PURE__ */ init_styles_css_ts_vanilla$19();
|
|
140
139
|
/* @__PURE__ */ init_styles_css_ts_vanilla$56();
|
|
141
|
-
/* @__PURE__ */ init_styles_css_ts_vanilla$20();
|
|
142
140
|
/* @__PURE__ */ init_styles_css_ts_vanilla$57();
|
|
143
141
|
/* @__PURE__ */ init_styles_css_ts_vanilla$58();
|
|
144
|
-
/* @__PURE__ */ init_styles_css_ts_vanilla$59();
|
|
145
142
|
/* @__PURE__ */ init_variables_css_ts_vanilla$1();
|
|
146
|
-
/* @__PURE__ */ init_styles_css_ts_vanilla$
|
|
147
|
-
/* @__PURE__ */ init_styles_css_ts_vanilla$
|
|
148
|
-
/* @__PURE__ */ init_styles_css_ts_vanilla$
|
|
143
|
+
/* @__PURE__ */ init_styles_css_ts_vanilla$15();
|
|
144
|
+
/* @__PURE__ */ init_styles_css_ts_vanilla$7();
|
|
145
|
+
/* @__PURE__ */ init_styles_css_ts_vanilla$59();
|
|
149
146
|
/* @__PURE__ */ init_dropdown_css_ts_vanilla();
|
|
150
|
-
/* @__PURE__ */ init_styles_css_ts_vanilla$
|
|
147
|
+
/* @__PURE__ */ init_styles_css_ts_vanilla$20();
|
|
151
148
|
/* @__PURE__ */ init_selectBar_css_ts_vanilla();
|
|
152
|
-
/* @__PURE__ */ init_styles_css_ts_vanilla$
|
|
153
|
-
/* @__PURE__ */ init_styles_css_ts_vanilla$
|
|
149
|
+
/* @__PURE__ */ init_styles_css_ts_vanilla$21();
|
|
150
|
+
/* @__PURE__ */ init_styles_css_ts_vanilla$13();
|
|
151
|
+
/* @__PURE__ */ init_styles_css_ts_vanilla$14();
|
|
154
152
|
/* @__PURE__ */ init_stylesVariants_css_ts_vanilla();
|
|
155
|
-
/* @__PURE__ */ init_styles_css_ts_vanilla$
|
|
153
|
+
/* @__PURE__ */ init_styles_css_ts_vanilla$18();
|
|
154
|
+
/* @__PURE__ */ init_styles_css_ts_vanilla$60();
|
|
156
155
|
/* @__PURE__ */ init_styles_css_ts_vanilla$61();
|
|
157
|
-
/* @__PURE__ */ init_styles_css_ts_vanilla$62();
|
|
158
156
|
/* @__PURE__ */ init_variables_css_ts_vanilla();
|
|
159
157
|
/* @__PURE__ */ init_styles_css_ts_vanilla();
|
|
158
|
+
/* @__PURE__ */ init_styles_css_ts_vanilla$62();
|
|
160
159
|
/* @__PURE__ */ init_styles_css_ts_vanilla$63();
|
|
161
160
|
/* @__PURE__ */ init_styles_css_ts_vanilla$64();
|
|
162
161
|
/* @__PURE__ */ init_styles_css_ts_vanilla$65();
|
|
163
162
|
/* @__PURE__ */ init_styles_css_ts_vanilla$66();
|
|
164
163
|
/* @__PURE__ */ init_styles_css_ts_vanilla$67();
|
|
165
164
|
/* @__PURE__ */ init_styles_css_ts_vanilla$68();
|
|
165
|
+
/* @__PURE__ */ init_style_css_ts_vanilla();
|
|
166
166
|
/* @__PURE__ */ init_styles_css_ts_vanilla$69();
|
|
167
|
-
/* @__PURE__ */ init_styles_css_ts_vanilla$
|
|
167
|
+
/* @__PURE__ */ init_styles_css_ts_vanilla$8();
|
|
168
168
|
/* @__PURE__ */ init_styles_css_ts_vanilla$70();
|
|
169
169
|
/* @__PURE__ */ init_styles_css_ts_vanilla$71();
|
|
170
170
|
/* @__PURE__ */ init_styles_css_ts_vanilla$72();
|
|
171
171
|
/* @__PURE__ */ init_styles_css_ts_vanilla$73();
|
|
172
|
-
/* @__PURE__ */ init_styles_css_ts_vanilla$
|
|
172
|
+
/* @__PURE__ */ init_styles_css_ts_vanilla$1();
|
|
173
173
|
/* @__PURE__ */ init_styles_css_ts_vanilla$74();
|
|
174
174
|
/* @__PURE__ */ init_styles_css_ts_vanilla$75();
|
|
175
175
|
/* @__PURE__ */ init_styles_css_ts_vanilla$76();
|
|
@@ -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 { init_constants, multiplier } from "./constants.js";
|
|
4
4
|
import { OrderSummaryContext, init_Provider } from "./Provider.js";
|
|
5
5
|
import { useContext } from "react";
|
|
@@ -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 "../../components/Stack/index.js";
|
|
5
5
|
import { hasHelperText, init_hasHelperText } from "../../helpers/hasHelperText.js";
|
|
6
6
|
import { Description, init_Description } from "../../components/Description/index.js";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { RefObject } from 'react';
|
|
2
|
+
type BreakpointState<T extends string> = Record<T, boolean>;
|
|
3
|
+
/**
|
|
4
|
+
* Returns whether each breakpoint is active for the given element's width.
|
|
5
|
+
*
|
|
6
|
+
* The `breakpoints` argument maps a breakpoint name to the width (in px) at
|
|
7
|
+
* which its range starts, e.g. `{ small: 0, medium: 320, large: 768 }`. A
|
|
8
|
+
* breakpoint is active while the element's width is at least its start value
|
|
9
|
+
* and below the next breakpoint's start value. The last breakpoint has no
|
|
10
|
+
* upper bound. The returned object has the breakpoint names as properties,
|
|
11
|
+
* each set to `true` when that breakpoint is active.
|
|
12
|
+
*/
|
|
13
|
+
export declare const useBreakpoints: <T extends string>(ref: RefObject<HTMLElement | null>, breakpoints: Record<T, number>) => BreakpointState<T>;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=useBreakpoint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useBreakpoint.d.ts","sourceRoot":"","sources":["../../src/hooks/useBreakpoint.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,KAAK,eAAe,CAAC,CAAC,SAAS,MAAM,IAAI,MAAM,CAAC,CAAC,EAAE,OAAO,CAAC,CAAA;AAc3D;;;;;;;;;GASG;AACH,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,MAAM,OACxC,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,eACrB,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,KAC7B,eAAe,CAAC,CAAC,CA2BnB,CAAA"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { __esmMin, __name } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { useEffect, useRef, useState } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/hooks/useBreakpoint.ts
|
|
5
|
+
var getActive, useBreakpoints;
|
|
6
|
+
function init_useBreakpoint() {
|
|
7
|
+
return (init_useBreakpoint = __esmMin(() => {
|
|
8
|
+
getActive = (width, breakpoints) => {
|
|
9
|
+
const sorted = Object.entries(breakpoints).sort((a, b) => a[1] - b[1]);
|
|
10
|
+
const active = {};
|
|
11
|
+
sorted.forEach(([name, start], index) => {
|
|
12
|
+
var _sorted;
|
|
13
|
+
const next = (_sorted = sorted[index + 1]) === null || _sorted === void 0 ? void 0 : _sorted[1];
|
|
14
|
+
active[name] = width >= start && (next === void 0 || width < next);
|
|
15
|
+
});
|
|
16
|
+
return active;
|
|
17
|
+
};
|
|
18
|
+
useBreakpoints = (ref, breakpoints) => {
|
|
19
|
+
const breakpointsRef = useRef(breakpoints);
|
|
20
|
+
const [current, setCurrent] = useState(() => {
|
|
21
|
+
var _ref$current$getBound;
|
|
22
|
+
var _ref$current;
|
|
23
|
+
var _ref$current$getBound2;
|
|
24
|
+
const width = (_ref$current$getBound = (_ref$current = ref.current) === null || _ref$current === void 0 || (_ref$current$getBound2 = _ref$current.getBoundingClientRect) === null || _ref$current$getBound2 === void 0 || (_ref$current$getBound2 = _ref$current$getBound2.call(_ref$current)) === null || _ref$current$getBound2 === void 0 ? void 0 : _ref$current$getBound2.width) !== null && _ref$current$getBound !== void 0 ? _ref$current$getBound : 0;
|
|
25
|
+
return getActive(width, breakpoints);
|
|
26
|
+
});
|
|
27
|
+
useEffect(() => {
|
|
28
|
+
const element = ref.current;
|
|
29
|
+
if (!element) return;
|
|
30
|
+
const update = (width) => setCurrent(getActive(width, breakpointsRef.current));
|
|
31
|
+
if (typeof ResizeObserver === "undefined") {
|
|
32
|
+
update(element.getBoundingClientRect().width);
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
const observer = new ResizeObserver(([entry]) => update(entry.contentRect.width));
|
|
36
|
+
observer.observe(element);
|
|
37
|
+
return () => observer.disconnect();
|
|
38
|
+
}, [ref]);
|
|
39
|
+
return current;
|
|
40
|
+
};
|
|
41
|
+
}))();
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
//#endregion
|
|
45
|
+
init_useBreakpoint();
|
|
46
|
+
export { init_useBreakpoint, useBreakpoints };
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
type UseIsOverflowingOptions = {
|
|
2
|
+
callback?: (hasOverflow: boolean) => void;
|
|
3
|
+
enabled?: boolean;
|
|
4
|
+
};
|
|
2
5
|
/**
|
|
3
|
-
*
|
|
6
|
+
* Check if the element has overflow based on the clientWidth and scrollWidth of the element.
|
|
4
7
|
*/
|
|
5
|
-
export declare const useIsOverflowing: (
|
|
8
|
+
export declare const useIsOverflowing: ({ callback, enabled }?: UseIsOverflowingOptions) => readonly [import("react").Dispatch<import("react").SetStateAction<HTMLElement | null>>, boolean];
|
|
9
|
+
export {};
|
|
6
10
|
//# sourceMappingURL=useIsOverflowing.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIsOverflowing.d.ts","sourceRoot":"","sources":["../../src/hooks/useIsOverflowing.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useIsOverflowing.d.ts","sourceRoot":"","sources":["../../src/hooks/useIsOverflowing.ts"],"names":[],"mappings":"AAEA,KAAK,uBAAuB,GAAG;IAC7B,QAAQ,CAAC,EAAE,CAAC,WAAW,EAAE,OAAO,KAAK,IAAI,CAAA;IACzC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,gBAAgB,2BAAkC,uBAAuB,qGA2BrF,CAAA"}
|
|
@@ -5,24 +5,27 @@ import { useEffect, useState } from "react";
|
|
|
5
5
|
var useIsOverflowing;
|
|
6
6
|
function init_useIsOverflowing() {
|
|
7
7
|
return (init_useIsOverflowing = __esmMin(() => {
|
|
8
|
-
useIsOverflowing = (
|
|
8
|
+
useIsOverflowing = ({ callback, enabled = true } = {}) => {
|
|
9
|
+
const [element, setElement] = useState(null);
|
|
9
10
|
const [isOverflowing, setIsOverflowing] = useState(false);
|
|
10
11
|
useEffect(() => {
|
|
12
|
+
if (!enabled || !element || typeof ResizeObserver === "undefined") return;
|
|
11
13
|
const handleResize = () => {
|
|
12
|
-
|
|
13
|
-
const element = ref.current;
|
|
14
|
-
const hasOverflow = element.clientWidth < element.scrollWidth;
|
|
14
|
+
const hasOverflow = element.scrollWidth > element.clientWidth;
|
|
15
15
|
setIsOverflowing(hasOverflow);
|
|
16
16
|
if (callback) callback(hasOverflow);
|
|
17
17
|
};
|
|
18
|
-
const
|
|
19
|
-
|
|
18
|
+
const resizeObserver = new ResizeObserver(handleResize);
|
|
19
|
+
resizeObserver.observe(element);
|
|
20
20
|
return () => {
|
|
21
|
-
|
|
22
|
-
clearTimeout(timeout);
|
|
21
|
+
resizeObserver.disconnect();
|
|
23
22
|
};
|
|
24
|
-
}, [
|
|
25
|
-
|
|
23
|
+
}, [
|
|
24
|
+
element,
|
|
25
|
+
callback,
|
|
26
|
+
enabled
|
|
27
|
+
]);
|
|
28
|
+
return [setElement, isOverflowing];
|
|
26
29
|
};
|
|
27
30
|
}))();
|
|
28
31
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { __esmMin } from "./_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { init_styles_css, stackStyle } from "./components/Stack/styles.css.js";
|
|
3
3
|
import { Stack, init_Stack } from "./components/Stack/index.js";
|
|
4
|
-
import { init_styles_css as init_styles_css$1,
|
|
5
|
-
import { Popup, init_Popup } from "./components/Popup/index.js";
|
|
6
|
-
import { init_styles_css as init_styles_css$2, tooltipStyle } from "./components/Tooltip/styles.css.js";
|
|
4
|
+
import { init_styles_css as init_styles_css$1, tooltipStyle } from "./components/Tooltip/styles.css.js";
|
|
7
5
|
import { Tooltip, init_Tooltip } from "./components/Tooltip/index.js";
|
|
8
6
|
import { init_style_css, textStyle } from "./components/Text/style.css.js";
|
|
9
7
|
import { Text, init_Text } from "./components/Text/index.js";
|
|
10
|
-
import { init_styles_css as init_styles_css$
|
|
8
|
+
import { init_styles_css as init_styles_css$2, loaderStyle } from "./components/Loader/styles.css.js";
|
|
11
9
|
import { Loader, init_Loader } from "./components/Loader/index.js";
|
|
12
|
-
import { buttonStyle, init_styles_css as init_styles_css$
|
|
10
|
+
import { buttonStyle, init_styles_css as init_styles_css$3 } from "./components/Button/styles.css.js";
|
|
13
11
|
import { Button, init_Button } from "./components/Button/index.js";
|
|
14
|
-
import { init_styles_css as init_styles_css$
|
|
12
|
+
import { init_styles_css as init_styles_css$4, menuStyle } from "./components/Menu/styles.css.js";
|
|
13
|
+
import { init_styles_css as init_styles_css$5, popupStyle } from "./components/Popup/styles.css.js";
|
|
14
|
+
import { Popup, init_Popup } from "./components/Popup/index.js";
|
|
15
15
|
import { init_styles_css as init_styles_css$6, labelStyle } from "./components/Label/styles.css.js";
|
|
16
16
|
import { Label, init_Label } from "./components/Label/index.js";
|
|
17
17
|
import { init_styles_css as init_styles_css$7, textInputStyle } from "./components/TextInput/styles.css.js";
|
|
@@ -96,8 +96,6 @@ import { init_styles_css as init_styles_css$73, verificationCodeStyle } from "./
|
|
|
96
96
|
import { Tag, init_Tag } from "./components/Tag/index.js";
|
|
97
97
|
import { SelectInput, init_SelectInput } from "./components/SelectInput/index.js";
|
|
98
98
|
import { UnitInput, init_UnitInput } from "./components/UnitInput/index.js";
|
|
99
|
-
import { Modal, init_Modal } from "./components/Modal/index.js";
|
|
100
|
-
import { Drawer, init_Drawer } from "./components/Drawer/index.js";
|
|
101
99
|
import { ActionBar, init_ActionBar } from "./components/ActionBar/index.js";
|
|
102
100
|
import { Avatar, init_Avatar } from "./components/Avatar/index.js";
|
|
103
101
|
import { Link, init_Link } from "./components/Link/index.js";
|
|
@@ -113,7 +111,9 @@ import { CheckboxGroup, init_CheckboxGroup } from "./components/CheckboxGroup/in
|
|
|
113
111
|
import { Chip, init_Chip } from "./components/Chip/index.js";
|
|
114
112
|
import { CopyButton, init_CopyButton } from "./components/CopyButton/index.js";
|
|
115
113
|
import { DateInput, init_DateInput } from "./components/DateInput/index.js";
|
|
114
|
+
import { Modal, init_Modal } from "./components/Modal/index.js";
|
|
116
115
|
import { Dialog, init_Dialog } from "./components/Dialog/index.js";
|
|
116
|
+
import { Drawer, init_Drawer } from "./components/Drawer/index.js";
|
|
117
117
|
import { EmptyState, init_EmptyState } from "./components/EmptyState/index.js";
|
|
118
118
|
import { ExpandableCard, init_ExpandableCard } from "./components/ExpandableCard/index.js";
|
|
119
119
|
import { FileInput, init_FileInput } from "./components/FileInput/index.js";
|
|
@@ -259,7 +259,7 @@ function init_src() {
|
|
|
259
259
|
init_styles_css$23();
|
|
260
260
|
init_styles_css$24();
|
|
261
261
|
init_styles_css$25();
|
|
262
|
-
init_styles_css$
|
|
262
|
+
init_styles_css$3();
|
|
263
263
|
init_styles_css$26();
|
|
264
264
|
init_styles_css$27();
|
|
265
265
|
init_styles_css$18();
|
|
@@ -279,8 +279,8 @@ function init_src() {
|
|
|
279
279
|
init_styles_css$38();
|
|
280
280
|
init_styles_css$39();
|
|
281
281
|
init_styles_css$40();
|
|
282
|
-
init_styles_css$
|
|
283
|
-
init_styles_css$
|
|
282
|
+
init_styles_css$2();
|
|
283
|
+
init_styles_css$4();
|
|
284
284
|
init_styles_css$41();
|
|
285
285
|
init_styles_css$42();
|
|
286
286
|
init_styles_css$43();
|
|
@@ -290,7 +290,7 @@ function init_src() {
|
|
|
290
290
|
init_styles_css$46();
|
|
291
291
|
init_styles_css$47();
|
|
292
292
|
init_styles_css$48();
|
|
293
|
-
init_styles_css$
|
|
293
|
+
init_styles_css$5();
|
|
294
294
|
init_styles_css$49();
|
|
295
295
|
init_styles_css$50();
|
|
296
296
|
init_styles_css$51();
|
|
@@ -321,7 +321,7 @@ function init_src() {
|
|
|
321
321
|
init_styles_css$68();
|
|
322
322
|
init_styles_css$69();
|
|
323
323
|
init_styles_css$70();
|
|
324
|
-
init_styles_css$
|
|
324
|
+
init_styles_css$1();
|
|
325
325
|
init_styles_css$71();
|
|
326
326
|
init_styles_css$72();
|
|
327
327
|
init_styles_css$73();
|