@ultraviolet/ui 3.23.0 → 3.24.1
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 +6 -4
- 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/styles.css.d.ts.map +1 -1
- package/dist/components/Tag/styles.css.js +43 -41
- 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/constant.d.ts +2 -2
- package/dist/components/TagList/constant.d.ts.map +1 -1
- package/dist/components/TagList/constant.js +2 -4
- package/dist/components/TagList/index.d.ts +6 -6
- package/dist/components/TagList/index.d.ts.map +1 -1
- package/dist/components/TagList/index.js +77 -115
- package/dist/components/TagList/styles.css.d.ts +3 -3
- package/dist/components/TagList/styles.css.d.ts.map +1 -1
- package/dist/components/TagList/styles.css.js +7 -8
- 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 +23 -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 +30 -30
- 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 +30 -30
- 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 +5 -4
- 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,6 +1,6 @@
|
|
|
1
1
|
import { __esmMin, __name } from "../../../_rolldown/runtime.js";
|
|
2
2
|
|
|
3
|
-
//#region \0@oxc-project+runtime@0.
|
|
3
|
+
//#region \0@oxc-project+runtime@0.146.0/helpers/esm/asyncToGenerator.js
|
|
4
4
|
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
5
5
|
try {
|
|
6
6
|
var i = n[a](c);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __esmMin, __name } from "../../../_rolldown/runtime.js";
|
|
2
2
|
import toPropertyKey, { init_toPropertyKey } from "./toPropertyKey.js";
|
|
3
3
|
|
|
4
|
-
//#region \0@oxc-project+runtime@0.
|
|
4
|
+
//#region \0@oxc-project+runtime@0.146.0/helpers/esm/defineProperty.js
|
|
5
5
|
function _defineProperty(e, r, t) {
|
|
6
6
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
7
7
|
value: t,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __esmMin, __name } from "../../../_rolldown/runtime.js";
|
|
2
2
|
|
|
3
|
-
//#region \0@oxc-project+runtime@0.
|
|
3
|
+
//#region \0@oxc-project+runtime@0.146.0/helpers/esm/extends.js
|
|
4
4
|
function _extends() {
|
|
5
5
|
return _extends = Object.assign ? Object.assign.bind() : function(n) {
|
|
6
6
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __esmMin, __name } from "../../../_rolldown/runtime.js";
|
|
2
2
|
|
|
3
|
-
//#region \0@oxc-project+runtime@0.
|
|
3
|
+
//#region \0@oxc-project+runtime@0.146.0/helpers/esm/objectDestructuringEmpty.js
|
|
4
4
|
function _objectDestructuringEmpty(t) {
|
|
5
5
|
if (null == t) throw new TypeError("Cannot destructure " + t);
|
|
6
6
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __esmMin, __name } from "../../../_rolldown/runtime.js";
|
|
2
2
|
import _defineProperty, { init_defineProperty } from "./defineProperty.js";
|
|
3
3
|
|
|
4
|
-
//#region \0@oxc-project+runtime@0.
|
|
4
|
+
//#region \0@oxc-project+runtime@0.146.0/helpers/esm/objectSpread2.js
|
|
5
5
|
function ownKeys(e, r) {
|
|
6
6
|
var t = Object.keys(e);
|
|
7
7
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __esmMin, __name } from "../../../_rolldown/runtime.js";
|
|
2
2
|
import _objectWithoutPropertiesLoose, { init_objectWithoutPropertiesLoose } from "./objectWithoutPropertiesLoose.js";
|
|
3
3
|
|
|
4
|
-
//#region \0@oxc-project+runtime@0.
|
|
4
|
+
//#region \0@oxc-project+runtime@0.146.0/helpers/esm/objectWithoutProperties.js
|
|
5
5
|
function _objectWithoutProperties(e, t) {
|
|
6
6
|
if (null == e) return {};
|
|
7
7
|
var o;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __esmMin, __name } from "../../../_rolldown/runtime.js";
|
|
2
2
|
|
|
3
|
-
//#region \0@oxc-project+runtime@0.
|
|
3
|
+
//#region \0@oxc-project+runtime@0.146.0/helpers/esm/objectWithoutPropertiesLoose.js
|
|
4
4
|
function _objectWithoutPropertiesLoose(r, e) {
|
|
5
5
|
if (null == r) return {};
|
|
6
6
|
var t = {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __esmMin, __name } from "../../../_rolldown/runtime.js";
|
|
2
2
|
import _typeof, { init_typeof } from "./typeof.js";
|
|
3
3
|
|
|
4
|
-
//#region \0@oxc-project+runtime@0.
|
|
4
|
+
//#region \0@oxc-project+runtime@0.146.0/helpers/esm/toPrimitive.js
|
|
5
5
|
function toPrimitive(t, r) {
|
|
6
6
|
if ("object" != _typeof(t) || !t) return t;
|
|
7
7
|
var e = t[Symbol.toPrimitive];
|
|
@@ -2,7 +2,7 @@ import { __esmMin, __name } from "../../../_rolldown/runtime.js";
|
|
|
2
2
|
import _typeof, { init_typeof } from "./typeof.js";
|
|
3
3
|
import toPrimitive, { init_toPrimitive } from "./toPrimitive.js";
|
|
4
4
|
|
|
5
|
-
//#region \0@oxc-project+runtime@0.
|
|
5
|
+
//#region \0@oxc-project+runtime@0.146.0/helpers/esm/toPropertyKey.js
|
|
6
6
|
function toPropertyKey(t) {
|
|
7
7
|
var i = toPrimitive(t, "string");
|
|
8
8
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __esmMin, __name } from "../../../_rolldown/runtime.js";
|
|
2
2
|
|
|
3
|
-
//#region \0@oxc-project+runtime@0.
|
|
3
|
+
//#region \0@oxc-project+runtime@0.146.0/helpers/esm/typeof.js
|
|
4
4
|
function _typeof(o) {
|
|
5
5
|
"@babel/helpers - typeof";
|
|
6
6
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
+
import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.146.0/helpers/esm/objectSpread2.js";
|
|
4
4
|
import { Stack, init_Stack } from "../Stack/index.js";
|
|
5
5
|
import { actionBarStyle, init_styles_css, rankActionBar } from "./styles.css.js";
|
|
6
6
|
import { cn } from "@ultraviolet/utils";
|
|
@@ -1,42 +1,3 @@
|
|
|
1
|
-
import type { RecipeVariants } from '@vanilla-extract/recipes';
|
|
2
|
-
declare const alert: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
3
|
-
sentiment: {
|
|
4
|
-
danger: {
|
|
5
|
-
backgroundColor: `var(--${string})`;
|
|
6
|
-
borderLeft: string;
|
|
7
|
-
color: `var(--${string})`;
|
|
8
|
-
};
|
|
9
|
-
info: {
|
|
10
|
-
backgroundColor: `var(--${string})`;
|
|
11
|
-
borderLeft: string;
|
|
12
|
-
color: `var(--${string})`;
|
|
13
|
-
};
|
|
14
|
-
neutral: {
|
|
15
|
-
backgroundColor: `var(--${string})`;
|
|
16
|
-
borderLeft: `4px solid var(--${string})`;
|
|
17
|
-
color: `var(--${string})`;
|
|
18
|
-
};
|
|
19
|
-
success: {
|
|
20
|
-
backgroundColor: `var(--${string})`;
|
|
21
|
-
borderLeft: string;
|
|
22
|
-
color: `var(--${string})`;
|
|
23
|
-
};
|
|
24
|
-
warning: {
|
|
25
|
-
backgroundColor: `var(--${string})`;
|
|
26
|
-
borderLeft: string;
|
|
27
|
-
color: `var(--${string})`;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
size: {
|
|
31
|
-
medium: {
|
|
32
|
-
padding: `var(--${string})`;
|
|
33
|
-
};
|
|
34
|
-
small: {
|
|
35
|
-
padding: `var(--${string})`;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
}>;
|
|
39
|
-
export type AlertVariants = NonNullable<RecipeVariants<typeof alert>>;
|
|
40
1
|
export declare const alertStyle: {
|
|
41
2
|
alert: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
42
3
|
sentiment: {
|
|
@@ -81,5 +42,4 @@ export declare const alertStyle: {
|
|
|
81
42
|
buttonClose: string;
|
|
82
43
|
icon: string;
|
|
83
44
|
};
|
|
84
|
-
export {};
|
|
85
45
|
//# sourceMappingURL=styles.css.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/Alert/styles.css.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/Alert/styles.css.ts"],"names":[],"mappings":"AAuEA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAnCjB,MAAM;gBACJ,OAAO;;YAET,KAAK;gBACH,OAAO;;;;;;;;;CAsCd,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
+
import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.146.0/helpers/esm/objectSpread2.js";
|
|
4
4
|
import { Text, init_Text } from "../Text/index.js";
|
|
5
5
|
import { avatarStyle, init_styles_css } from "./styles.css.js";
|
|
6
6
|
import { DEFAULT_COLORS, TEXT_VARIANT_BY_SIZE, init_constants, sizes } from "./constants.js";
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import type { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import type { BadgeVariants } from './styles.css';
|
|
3
2
|
type BadgeProps = {
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
prominence?: 'default' | 'strong';
|
|
5
|
+
sentiment?: 'danger' | 'info' | 'success' | 'warning' | 'neutral' | 'black' | 'white' | 'primary' | 'secondary';
|
|
6
|
+
size?: 'medium' | 'small' | 'large' | 'xsmall';
|
|
4
7
|
className?: string;
|
|
5
8
|
children: ReactNode;
|
|
6
9
|
'data-testid'?: string;
|
|
7
10
|
style?: CSSProperties;
|
|
8
|
-
}
|
|
11
|
+
};
|
|
9
12
|
export declare function Badge({ sentiment, size, prominence, disabled, className, children, 'data-testid': dataTestId, style, }: BadgeProps): import("react").JSX.Element;
|
|
10
13
|
export declare namespace Badge {
|
|
11
14
|
var displayName: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKrD,KAAK,UAAU,GAAG;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAA;IACjC,SAAS,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO,GAAG,SAAS,GAAG,WAAW,CAAA;IAC/G,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAA;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,SAAS,CAAA;IACnB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;8BAKqB,EACpB,SAAqB,EACrB,IAAe,EACf,UAAsB,EACtB,QAAgB,EAChB,SAAS,EACT,QAAQ,EACR,aAAa,EAAE,UAAU,EACzB,KAAK,GACN,EAAE,UAAU"}
|
|
@@ -1,47 +1,3 @@
|
|
|
1
|
-
import type { RecipeVariants } from '@vanilla-extract/recipes';
|
|
2
|
-
declare const badge: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
3
|
-
disabled: {
|
|
4
|
-
true: {
|
|
5
|
-
backgroundColor: `var(--${string})`;
|
|
6
|
-
border: "none";
|
|
7
|
-
color: `var(--${string})`;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
prominence: {
|
|
11
|
-
default: {};
|
|
12
|
-
strong: {};
|
|
13
|
-
};
|
|
14
|
-
sentiment: {
|
|
15
|
-
black: {};
|
|
16
|
-
danger: {};
|
|
17
|
-
info: {};
|
|
18
|
-
neutral: {};
|
|
19
|
-
primary: {};
|
|
20
|
-
secondary: {};
|
|
21
|
-
success: {};
|
|
22
|
-
warning: {};
|
|
23
|
-
white: {};
|
|
24
|
-
};
|
|
25
|
-
size: {
|
|
26
|
-
large: {
|
|
27
|
-
height: `var(--${string})`;
|
|
28
|
-
padding: `0 var(--${string})`;
|
|
29
|
-
};
|
|
30
|
-
medium: {
|
|
31
|
-
height: `var(--${string})`;
|
|
32
|
-
padding: `0 var(--${string})`;
|
|
33
|
-
};
|
|
34
|
-
small: {
|
|
35
|
-
height: `var(--${string})`;
|
|
36
|
-
padding: `0 var(--${string})`;
|
|
37
|
-
};
|
|
38
|
-
xsmall: {
|
|
39
|
-
height: `var(--${string})`;
|
|
40
|
-
padding: `0 var(--${string})`;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
}>;
|
|
44
|
-
export type BadgeVariants = NonNullable<RecipeVariants<typeof badge>>;
|
|
45
1
|
export declare const badgeStyle: {
|
|
46
2
|
badge: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
47
3
|
disabled: {
|
|
@@ -86,5 +42,4 @@ export declare const badgeStyle: {
|
|
|
86
42
|
};
|
|
87
43
|
}>;
|
|
88
44
|
};
|
|
89
|
-
export {};
|
|
90
45
|
//# sourceMappingURL=styles.css.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/styles.css.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/styles.css.ts"],"names":[],"mappings":"AAyHA,eAAO,MAAM,UAAU;;;;;;;;;;YApCjB,OAAO;YACP,MAAM;;;YAIN,KAAK;YACL,MAAM;YACN,IAAI;YACJ,OAAO;YACP,OAAO;YACP,SAAS;YACT,OAAO;YACP,OAAO;YACP,KAAK;;;;;;;;;;;;;;;;;;;;;CAuBwB,CAAA"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { ComponentProps, CSSProperties, ReactNode } from 'react';
|
|
2
2
|
import { Button } from '../Button';
|
|
3
|
-
import type { BannerVariants } from './styles.css';
|
|
4
3
|
type BannerProps = {
|
|
5
4
|
title: string;
|
|
6
5
|
children: ReactNode;
|
|
@@ -19,7 +18,9 @@ type BannerProps = {
|
|
|
19
18
|
className?: string;
|
|
20
19
|
'data-testid'?: string;
|
|
21
20
|
style?: CSSProperties;
|
|
22
|
-
|
|
21
|
+
size?: 'small' | 'medium';
|
|
22
|
+
variant?: 'intro' | 'promotional';
|
|
23
|
+
};
|
|
23
24
|
export declare function Banner({ variant, size, title, children, direction, onClose, buttonText, onClickButton, linkText, linkHref, image, className, closable, 'data-testid': dataTestId, style, }: BannerProps): import("react").JSX.Element | null;
|
|
24
25
|
export declare namespace Banner {
|
|
25
26
|
var displayName: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Banner/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACrE,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Banner/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACrE,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAQlC,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,SAAS,CAAA;IACnB,SAAS,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAA;IAC5B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,aAAa,CAAC,EAAE,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC,SAAS,CAAC,CAAA;IACxD,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAA;IACzB,OAAO,CAAC,EAAE,OAAO,GAAG,aAAa,CAAA;CAClC,CAAA;+BAKsB,EACrB,OAAiB,EACjB,IAAe,EACf,KAAK,EACL,QAAQ,EACR,SAAoB,EACpB,OAAO,EACP,UAAU,EACV,aAAa,EACb,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,SAAS,EACT,QAAe,EACf,aAAa,EAAE,UAAU,EACzB,KAAK,GACN,EAAE,WAAW"}
|
|
@@ -1,19 +1,3 @@
|
|
|
1
|
-
import type { RecipeVariants } from '@vanilla-extract/recipes';
|
|
2
|
-
declare const banner: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
3
|
-
size: {
|
|
4
|
-
medium: {
|
|
5
|
-
padding: `var(--${string})`;
|
|
6
|
-
};
|
|
7
|
-
small: {
|
|
8
|
-
padding: `var(--${string})`;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
variant: {
|
|
12
|
-
intro: {};
|
|
13
|
-
promotional: {};
|
|
14
|
-
};
|
|
15
|
-
}>;
|
|
16
|
-
export type BannerVariants = NonNullable<RecipeVariants<typeof banner>>;
|
|
17
1
|
export declare const bannerStyle: {
|
|
18
2
|
banner: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
19
3
|
size: {
|
|
@@ -32,5 +16,4 @@ export declare const bannerStyle: {
|
|
|
32
16
|
imageStack: Record<"medium" | "small", string>;
|
|
33
17
|
closeButton: string;
|
|
34
18
|
};
|
|
35
|
-
export {};
|
|
36
19
|
//# sourceMappingURL=styles.css.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/Banner/styles.css.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/Banner/styles.css.ts"],"names":[],"mappings":"AAqFA,eAAO,MAAM,WAAW;;;YAhClB,MAAM;gBACJ,OAAO;;YAET,KAAK;gBACH,OAAO;;;;YAIT,KAAK;YACL,WAAW;;;;;CA2BhB,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
+
import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.146.0/helpers/esm/objectSpread2.js";
|
|
4
4
|
import { getLegendColor, init_legend } from "../../helpers/legend.js";
|
|
5
5
|
import { getNivoTheme, init_nivoTheme } from "../../helpers/nivoTheme.js";
|
|
6
6
|
import { BarChartTooltip, init_Tooltip } from "./Tooltip.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import _objectSpread2, { init_objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
+
import _objectSpread2, { init_objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.146.0/helpers/esm/objectSpread2.js";
|
|
4
4
|
import { Text, init_Text } from "../../Text/index.js";
|
|
5
5
|
import { Button, init_Button } from "../../Button/index.js";
|
|
6
6
|
import { breadcrumbsStyle, init_styles_css } from "../styles.css.js";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { RenderProp } from '@ultraviolet/utils';
|
|
2
2
|
import type { AriaRole, ButtonHTMLAttributes, CSSProperties, MouseEventHandler, ReactNode } from 'react';
|
|
3
|
-
import type { ButtonVariants } from './styles.css';
|
|
4
3
|
type CommonProps = {
|
|
5
4
|
type?: ButtonHTMLAttributes<HTMLButtonElement>['type'];
|
|
6
5
|
autoFocus?: ButtonHTMLAttributes<HTMLButtonElement>['autoFocus'];
|
|
@@ -35,7 +34,12 @@ type CommonProps = {
|
|
|
35
34
|
onPointerDown?: ButtonHTMLAttributes<HTMLButtonElement>['onPointerDown'];
|
|
36
35
|
onKeyDown?: ButtonHTMLAttributes<HTMLButtonElement>['onKeyDown'];
|
|
37
36
|
style?: CSSProperties;
|
|
38
|
-
|
|
37
|
+
disabled?: boolean;
|
|
38
|
+
fullWidth?: boolean;
|
|
39
|
+
sentiment?: 'danger' | 'info' | 'neutral' | 'primary' | 'secondary' | 'success' | 'warning' | 'black' | 'white';
|
|
40
|
+
size?: 'small' | 'medium' | 'large' | 'xsmall';
|
|
41
|
+
variant?: 'filled' | 'outlined' | 'ghost';
|
|
42
|
+
};
|
|
39
43
|
type BaseButtonProps = CommonProps & {
|
|
40
44
|
children: ReactNode;
|
|
41
45
|
name?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Button/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAEpD,OAAO,KAAK,EAAE,QAAQ,EAAE,oBAAoB,EAAE,aAAa,EAAE,iBAAiB,EAAE,SAAS,EAAO,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Button/index.tsx"],"names":[],"mappings":"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"}
|
|
@@ -1,85 +1,3 @@
|
|
|
1
|
-
import type { RecipeVariants } from '@vanilla-extract/recipes';
|
|
2
|
-
declare const button: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
3
|
-
disabled: {
|
|
4
|
-
false: {
|
|
5
|
-
cursor: "pointer";
|
|
6
|
-
};
|
|
7
|
-
true: {
|
|
8
|
-
cursor: "not-allowed";
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
fullWidth: {
|
|
12
|
-
false: {
|
|
13
|
-
width: "auto";
|
|
14
|
-
};
|
|
15
|
-
true: {
|
|
16
|
-
width: "100%";
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
sentiment: {
|
|
20
|
-
black: {};
|
|
21
|
-
danger: {};
|
|
22
|
-
info: {};
|
|
23
|
-
neutral: {};
|
|
24
|
-
primary: {};
|
|
25
|
-
secondary: {};
|
|
26
|
-
success: {};
|
|
27
|
-
warning: {};
|
|
28
|
-
white: {};
|
|
29
|
-
};
|
|
30
|
-
size: {
|
|
31
|
-
large: {
|
|
32
|
-
fontFamily: `var(--${string})`;
|
|
33
|
-
fontSize: `var(--${string})`;
|
|
34
|
-
fontWeight: `var(--${string})`;
|
|
35
|
-
gap: `var(--${string})`;
|
|
36
|
-
height: `var(--${string})`;
|
|
37
|
-
letterSpacing: `var(--${string})`;
|
|
38
|
-
lineHeight: `var(--${string})`;
|
|
39
|
-
paddingLeft: `var(--${string})`;
|
|
40
|
-
paddingRight: `var(--${string})`;
|
|
41
|
-
};
|
|
42
|
-
medium: {
|
|
43
|
-
fontFamily: `var(--${string})`;
|
|
44
|
-
fontSize: `var(--${string})`;
|
|
45
|
-
fontWeight: `var(--${string})`;
|
|
46
|
-
letterSpacing: `var(--${string})`;
|
|
47
|
-
lineHeight: `var(--${string})`;
|
|
48
|
-
gap: `var(--${string})`;
|
|
49
|
-
height: `var(--${string})`;
|
|
50
|
-
paddingLeft: `var(--${string})`;
|
|
51
|
-
paddingRight: `var(--${string})`;
|
|
52
|
-
};
|
|
53
|
-
small: {
|
|
54
|
-
fontFamily: `var(--${string})`;
|
|
55
|
-
fontSize: `var(--${string})`;
|
|
56
|
-
fontWeight: `var(--${string})`;
|
|
57
|
-
letterSpacing: `var(--${string})`;
|
|
58
|
-
lineHeight: `var(--${string})`;
|
|
59
|
-
gap: `var(--${string})`;
|
|
60
|
-
height: `var(--${string})`;
|
|
61
|
-
paddingLeft: `var(--${string})`;
|
|
62
|
-
paddingRight: `var(--${string})`;
|
|
63
|
-
};
|
|
64
|
-
xsmall: {
|
|
65
|
-
fontFamily: `var(--${string})`;
|
|
66
|
-
fontSize: `var(--${string})`;
|
|
67
|
-
fontWeight: `var(--${string})`;
|
|
68
|
-
letterSpacing: `var(--${string})`;
|
|
69
|
-
lineHeight: `var(--${string})`;
|
|
70
|
-
gap: `var(--${string})`;
|
|
71
|
-
height: `var(--${string})`;
|
|
72
|
-
paddingLeft: `var(--${string})`;
|
|
73
|
-
paddingRight: `var(--${string})`;
|
|
74
|
-
};
|
|
75
|
-
};
|
|
76
|
-
variant: {
|
|
77
|
-
filled: {};
|
|
78
|
-
ghost: {};
|
|
79
|
-
outlined: {};
|
|
80
|
-
};
|
|
81
|
-
}>;
|
|
82
|
-
export type ButtonVariants = NonNullable<RecipeVariants<typeof button>>;
|
|
83
1
|
export declare const buttonStyle: {
|
|
84
2
|
button: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
85
3
|
disabled: {
|
|
@@ -162,5 +80,4 @@ export declare const buttonStyle: {
|
|
|
162
80
|
};
|
|
163
81
|
}>;
|
|
164
82
|
};
|
|
165
|
-
export {};
|
|
166
83
|
//# sourceMappingURL=styles.css.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/Button/styles.css.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/Button/styles.css.ts"],"names":[],"mappings":"AA4XA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;YApDlB,KAAK;YACL,MAAM;YACN,IAAI;YACJ,OAAO;YACP,OAAO;YACP,SAAS;YACT,OAAO;YACP,OAAO;YACP,KAAK;;;;gBAIH,UAAU;gBACV,QAAQ;gBACR,UAAU;gBACV,GAAG;gBACH,MAAM;gBACN,aAAa;gBACb,UAAU;gBACV,WAAW;gBACX,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAyBd,MAAM;YACN,KAAK;YACL,QAAQ;;;CAKuB,CAAA"}
|
|
@@ -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 { carouselStyle, init_styles_css, widthVar } from "./styles.css.js";
|
|
4
4
|
import { assignInlineVars } from "@vanilla-extract/dynamic";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -41,8 +41,10 @@ function init_Chip() {
|
|
|
41
41
|
setIsActive(active);
|
|
42
42
|
}, [active]);
|
|
43
43
|
useEffect(() => {
|
|
44
|
-
if (chipRef.current && iconRef.current)
|
|
45
|
-
|
|
44
|
+
if (chipRef.current && iconRef.current) {
|
|
45
|
+
if (chipRef.current.lastChild === iconRef.current) setTrailingIcon(true);
|
|
46
|
+
else setTrailingIcon(false);
|
|
47
|
+
}
|
|
46
48
|
}, [children, iconRef]);
|
|
47
49
|
return /* @__PURE__ */ jsx(ChipContext.Provider, {
|
|
48
50
|
value,
|
|
@@ -38,11 +38,13 @@ function init_CalendarContent() {
|
|
|
38
38
|
"data-testid": "previous-month",
|
|
39
39
|
disabled: !!(minDate && minDate > new Date(yearToShow, monthToShow - 1, 0)) || disabled,
|
|
40
40
|
onClick: () => {
|
|
41
|
-
if ((!minDate || minDate <= new Date(yearToShow, monthToShow - 1, 0)) && !readOnly)
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
41
|
+
if ((!minDate || minDate <= new Date(yearToShow, monthToShow - 1, 0)) && !readOnly) {
|
|
42
|
+
if (showMonthYearPicker) setYearToShow(yearToShow - 1);
|
|
43
|
+
else {
|
|
44
|
+
const [prevMonth, year] = getPreviousMonth(monthToShow, yearToShow);
|
|
45
|
+
setMonthToShow(prevMonth);
|
|
46
|
+
setYearToShow(year);
|
|
47
|
+
}
|
|
46
48
|
}
|
|
47
49
|
},
|
|
48
50
|
sentiment: "neutral",
|
|
@@ -66,11 +68,13 @@ function init_CalendarContent() {
|
|
|
66
68
|
"data-testid": "next-month",
|
|
67
69
|
disabled: !!(maxDate && maxDate < new Date(yearToShow, monthToShow, 1)) || disabled,
|
|
68
70
|
onClick: () => {
|
|
69
|
-
if ((!maxDate || maxDate >= new Date(yearToShow, monthToShow, 1)) && !readOnly)
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
if ((!maxDate || maxDate >= new Date(yearToShow, monthToShow, 1)) && !readOnly) {
|
|
72
|
+
if (showMonthYearPicker) setYearToShow(yearToShow + 1);
|
|
73
|
+
else {
|
|
74
|
+
const [monthNext, year] = getNextMonth(monthToShow, yearToShow);
|
|
75
|
+
setMonthToShow(monthNext);
|
|
76
|
+
setYearToShow(year);
|
|
77
|
+
}
|
|
74
78
|
}
|
|
75
79
|
},
|
|
76
80
|
sentiment: "neutral",
|
|
@@ -78,41 +78,43 @@ function init_CalendarDaily() {
|
|
|
78
78
|
return new Date(yearToShow, monthToShow - 1, data.day);
|
|
79
79
|
};
|
|
80
80
|
const onClickRange = (event, newDate) => {
|
|
81
|
-
if (selectsRange)
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
81
|
+
if (selectsRange) {
|
|
82
|
+
if (rangeState === "end" && isAfterStartDate) {
|
|
83
|
+
setRange === null || setRange === void 0 || setRange({
|
|
84
|
+
end: newDate,
|
|
85
|
+
start: range.start
|
|
86
|
+
});
|
|
87
|
+
onChange === null || onChange === void 0 || onChange([range.start, newDate], event);
|
|
88
|
+
setInputValue(formatValue(null, {
|
|
89
|
+
end: newDate,
|
|
90
|
+
start: range.start
|
|
91
|
+
}, false, true, format));
|
|
92
|
+
setRangeState("start");
|
|
93
|
+
setVisible(false);
|
|
94
|
+
} else if (rangeState === "end" && !isAfterStartDate && (range === null || range === void 0 ? void 0 : range.start)) {
|
|
95
|
+
setRange === null || setRange === void 0 || setRange({
|
|
96
|
+
end: range.start,
|
|
97
|
+
start: newDate
|
|
98
|
+
});
|
|
99
|
+
onChange === null || onChange === void 0 || onChange([newDate, range.start], event);
|
|
100
|
+
setInputValue(formatValue(null, {
|
|
101
|
+
end: range.start,
|
|
102
|
+
start: newDate
|
|
103
|
+
}, false, true, format));
|
|
104
|
+
setRangeState("start");
|
|
105
|
+
setVisible(false);
|
|
106
|
+
} else {
|
|
107
|
+
setRange === null || setRange === void 0 || setRange({
|
|
108
|
+
end: null,
|
|
109
|
+
start: newDate
|
|
110
|
+
});
|
|
111
|
+
onChange === null || onChange === void 0 || onChange([newDate, null], event);
|
|
112
|
+
setInputValue(formatValue(null, {
|
|
113
|
+
end: null,
|
|
114
|
+
start: newDate
|
|
115
|
+
}, false, true, format));
|
|
116
|
+
setRangeState("end");
|
|
117
|
+
}
|
|
116
118
|
}
|
|
117
119
|
};
|
|
118
120
|
const createTestId = () => {
|