@dmsi/wedgekit-react 0.0.451 → 0.0.453
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/{chunk-LCJZRP5S.js → chunk-2F3R3WXW.js} +3 -3
- package/dist/{chunk-SVTQGC2D.js → chunk-44TH3VC7.js} +9 -5
- package/dist/{chunk-IFHMGICR.js → chunk-6TYWM26K.js} +2 -2
- package/dist/chunk-75USUR3I.js +27 -0
- package/dist/{chunk-PQWWVBSR.js → chunk-7BVUTFZ5.js} +2 -2
- package/dist/{chunk-DCLNAUC4.js → chunk-7GHD74J3.js} +1 -1
- package/dist/{chunk-7CS736EF.js → chunk-AL5QIRY3.js} +1 -1
- package/dist/{chunk-7B334WPV.js → chunk-BYRLHNBP.js} +16 -16
- package/dist/{chunk-3HBYDOYE.js → chunk-DNUBM26R.js} +4 -4
- package/dist/{chunk-DTW7JCBR.js → chunk-DORD2EBO.js} +1 -1
- package/dist/{chunk-FRHPFACM.js → chunk-FG7GNGE3.js} +1 -1
- package/dist/{chunk-VEL4ICLU.js → chunk-G7EOLHST.js} +1 -1
- package/dist/{chunk-T36HX6QY.js → chunk-G7KIKHER.js} +3 -3
- package/dist/{chunk-TYAQWVIM.js → chunk-GRGDX7JC.js} +2 -2
- package/dist/{chunk-6LHBY2IH.js → chunk-GTBGPBH6.js} +4 -4
- package/dist/{chunk-EU73QPW7.js → chunk-H2KC5XUY.js} +1 -1
- package/dist/{chunk-JQWYQDH7.js → chunk-HVNHTM3P.js} +1 -1
- package/dist/{chunk-DNYGKNQM.js → chunk-I363QX6Y.js} +1 -1
- package/dist/{chunk-NAY4I3FL.js → chunk-IT4VFU6T.js} +3 -3
- package/dist/{chunk-6CTCHYIS.js → chunk-IXR65MOU.js} +8 -0
- package/dist/{chunk-EJSPFQCY.js → chunk-JUFBGNWW.js} +1 -1
- package/dist/{chunk-SBCFBHNG.js → chunk-KCUB3UWA.js} +5 -5
- package/dist/{chunk-GICZ5RWY.js → chunk-KHIJYWZ7.js} +1 -1
- package/dist/{chunk-TJV3S52X.js → chunk-KJNK7KEV.js} +1 -1
- package/dist/{chunk-7HCS6TZN.js → chunk-KW6V7O3H.js} +1 -1
- package/dist/{chunk-WWAPK5PH.js → chunk-LPY6PMAY.js} +1 -1
- package/dist/{chunk-UOHCOOC2.js → chunk-LZH6DJEZ.js} +2 -2
- package/dist/{chunk-FHQL42YP.js → chunk-PCQXSYTH.js} +1 -1
- package/dist/{chunk-MVMYXAXB.js → chunk-RQRR4FEF.js} +6 -3
- package/dist/{chunk-QNJTYAPX.js → chunk-SOZRGIQW.js} +3 -3
- package/dist/{chunk-RDJT63IS.js → chunk-TVXBP5CW.js} +5 -5
- package/dist/{chunk-FA7IFW66.js → chunk-UCJUC5AZ.js} +1 -1
- package/dist/{chunk-FFGIFICI.js → chunk-UKSV4UHI.js} +5 -5
- package/dist/{chunk-CANJ2YPW.js → chunk-W53FKPJD.js} +1 -1
- package/dist/{chunk-NO5BIKWS.js → chunk-WEAVZEE4.js} +2 -2
- package/dist/{chunk-4V6ZO2MR.js → chunk-WX62IDZ5.js} +3 -3
- package/dist/{chunk-RQLWSLVE.js → chunk-YNKN6RKF.js} +1 -1
- package/dist/{chunk-4OMINRN5.js → chunk-Z6HIIJK3.js} +1 -1
- package/dist/{chunk-XM7IQHBU.js → chunk-ZQJMNPCF.js} +2 -2
- package/dist/{chunk-5TGP5EFM.js → chunk-ZQSD74IJ.js} +3 -3
- package/dist/{chunk-OGIFIPKH.js → chunk-ZSETMD4A.js} +1 -1
- package/dist/components/AccessChangerTabItem.cjs +6 -0
- package/dist/components/AccessChangerTabItem.js +2 -2
- package/dist/components/Accordion.cjs +6 -0
- package/dist/components/Accordion.js +4 -4
- package/dist/components/Breadcrumbs.cjs +6 -0
- package/dist/components/Breadcrumbs.js +2 -2
- package/dist/components/Button.cjs +6 -0
- package/dist/components/Button.js +2 -2
- package/dist/components/CalendarRange.cjs +45 -30
- package/dist/components/CalendarRange.css +9 -3
- package/dist/components/CalendarRange.js +37 -36
- package/dist/components/Caption.cjs +6 -0
- package/dist/components/Caption.js +1 -1
- package/dist/components/Checkbox.cjs +6 -0
- package/dist/components/Checkbox.js +3 -3
- package/dist/components/CompactImagesPreview.cjs +6 -0
- package/dist/components/CompactImagesPreview.js +3 -3
- package/dist/components/ContentTab.cjs +6 -0
- package/dist/components/ContentTab.js +3 -3
- package/dist/components/ContentTabs.cjs +6 -0
- package/dist/components/ContentTabs.js +3 -3
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +22 -7
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.css +9 -3
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +36 -35
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +29 -14
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.css +9 -3
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +36 -35
- package/dist/components/DataGrid/PinnedColumns.cjs +40 -25
- package/dist/components/DataGrid/PinnedColumns.css +9 -3
- package/dist/components/DataGrid/PinnedColumns.js +36 -35
- package/dist/components/DataGrid/TableBody/LoadingCell.cjs +25 -10
- package/dist/components/DataGrid/TableBody/LoadingCell.css +9 -3
- package/dist/components/DataGrid/TableBody/LoadingCell.js +36 -35
- package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +27 -12
- package/dist/components/DataGrid/TableBody/TableBodyRow.css +9 -3
- package/dist/components/DataGrid/TableBody/TableBodyRow.js +36 -35
- package/dist/components/DataGrid/TableBody/index.cjs +40 -25
- package/dist/components/DataGrid/TableBody/index.css +9 -3
- package/dist/components/DataGrid/TableBody/index.js +36 -35
- package/dist/components/DataGrid/index.cjs +100 -85
- package/dist/components/DataGrid/index.css +9 -3
- package/dist/components/DataGrid/index.js +36 -35
- package/dist/components/DataGrid/utils.cjs +23 -8
- package/dist/components/DataGrid/utils.css +9 -3
- package/dist/components/DataGrid/utils.js +36 -35
- package/dist/components/DataGridCell.cjs +17 -5
- package/dist/components/DataGridCell.js +7 -7
- package/dist/components/DateInput.cjs +51 -36
- package/dist/components/DateInput.css +9 -3
- package/dist/components/DateInput.js +37 -36
- package/dist/components/DateRangeInput.cjs +51 -36
- package/dist/components/DateRangeInput.css +9 -3
- package/dist/components/DateRangeInput.js +37 -36
- package/dist/components/Display.cjs +6 -0
- package/dist/components/Display.js +2 -2
- package/dist/components/EmptyCartIcon.cjs +51 -0
- package/dist/components/EmptyCartIcon.js +7 -0
- package/dist/components/FilterGroup.cjs +17 -5
- package/dist/components/FilterGroup.js +9 -9
- package/dist/components/Heading.cjs +6 -0
- package/dist/components/Heading.js +2 -2
- package/dist/components/Input.cjs +12 -3
- package/dist/components/Input.js +3 -3
- package/dist/components/InputGroup.cjs +6 -0
- package/dist/components/InputGroup.js +2 -2
- package/dist/components/Label.cjs +6 -0
- package/dist/components/Label.js +2 -2
- package/dist/components/Link.cjs +6 -0
- package/dist/components/Link.js +2 -2
- package/dist/components/ListGroup.cjs +6 -0
- package/dist/components/ListGroup.js +4 -4
- package/dist/components/MainBar.cjs +8 -2
- package/dist/components/MainBar.js +4 -4
- package/dist/components/MenuOption.cjs +6 -0
- package/dist/components/MenuOption.js +4 -4
- package/dist/components/MobileDataGrid/ColumnList.cjs +6 -0
- package/dist/components/MobileDataGrid/ColumnList.js +8 -8
- package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +28 -13
- package/dist/components/MobileDataGrid/ColumnSelector/index.css +9 -3
- package/dist/components/MobileDataGrid/ColumnSelector/index.js +36 -35
- package/dist/components/MobileDataGrid/MobileDataGridCard/MobileDataGridColumn.cjs +6 -0
- package/dist/components/MobileDataGrid/MobileDataGridCard/MobileDataGridColumn.js +3 -3
- package/dist/components/MobileDataGrid/MobileDataGridCard/index.cjs +6 -0
- package/dist/components/MobileDataGrid/MobileDataGridCard/index.js +7 -7
- package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +36 -21
- package/dist/components/MobileDataGrid/MobileDataGridHeader.css +9 -3
- package/dist/components/MobileDataGrid/MobileDataGridHeader.js +36 -35
- package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.cjs +6 -0
- package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.js +5 -5
- package/dist/components/MobileDataGrid/RowDetailModalProvider/index.cjs +6 -0
- package/dist/components/MobileDataGrid/RowDetailModalProvider/index.js +12 -12
- package/dist/components/MobileDataGrid/index.cjs +81 -66
- package/dist/components/MobileDataGrid/index.css +9 -3
- package/dist/components/MobileDataGrid/index.js +36 -35
- package/dist/components/Modal.cjs +6 -0
- package/dist/components/Modal.js +7 -7
- package/dist/components/ModalButtons.cjs +6 -0
- package/dist/components/ModalButtons.js +3 -3
- package/dist/components/ModalContent.cjs +6 -0
- package/dist/components/ModalContent.js +2 -2
- package/dist/components/ModalHeader.cjs +6 -0
- package/dist/components/ModalHeader.js +4 -4
- package/dist/components/NavigationTab.cjs +6 -0
- package/dist/components/NavigationTab.js +3 -3
- package/dist/components/NavigationTabs.cjs +6 -0
- package/dist/components/NavigationTabs.js +3 -3
- package/dist/components/NestedMenu.cjs +6 -0
- package/dist/components/NestedMenu.js +4 -4
- package/dist/components/Notification.cjs +6 -0
- package/dist/components/Notification.js +5 -5
- package/dist/components/OptionPill.cjs +6 -0
- package/dist/components/OptionPill.js +4 -4
- package/dist/components/PDFViewer/DownloadIcon.cjs +6 -0
- package/dist/components/PDFViewer/DownloadIcon.js +3 -3
- package/dist/components/PDFViewer/PDFElement.cjs +6 -0
- package/dist/components/PDFViewer/PDFElement.js +3 -3
- package/dist/components/PDFViewer/PDFNavigation.cjs +6 -0
- package/dist/components/PDFViewer/PDFNavigation.js +6 -6
- package/dist/components/PDFViewer/index.cjs +6 -0
- package/dist/components/PDFViewer/index.js +13 -13
- package/dist/components/Pagination.cjs +6 -0
- package/dist/components/Pagination.js +3 -3
- package/dist/components/Paragraph.cjs +6 -0
- package/dist/components/Paragraph.js +2 -2
- package/dist/components/Password.cjs +12 -3
- package/dist/components/Password.js +3 -3
- package/dist/components/ProductImagePreview/index.cjs +6 -0
- package/dist/components/ProductImagePreview/index.js +3 -3
- package/dist/components/ProjectBar.cjs +6 -0
- package/dist/components/ProjectBar.js +1 -1
- package/dist/components/Radio.cjs +6 -0
- package/dist/components/Radio.js +2 -2
- package/dist/components/Search.cjs +17 -5
- package/dist/components/Search.js +4 -4
- package/dist/components/Select.cjs +12 -3
- package/dist/components/Select.js +4 -4
- package/dist/components/SideMenuGroup.cjs +6 -0
- package/dist/components/SideMenuGroup.js +3 -3
- package/dist/components/SideMenuItem.cjs +6 -0
- package/dist/components/SideMenuItem.js +3 -3
- package/dist/components/SimpleTable.cjs +6 -0
- package/dist/components/SimpleTable.js +4 -4
- package/dist/components/Stack.cjs +6 -0
- package/dist/components/Stack.js +2 -2
- package/dist/components/StatusPill.cjs +6 -0
- package/dist/components/StatusPill.js +2 -2
- package/dist/components/Stepper.cjs +12 -3
- package/dist/components/Stepper.js +4 -4
- package/dist/components/Subheader.cjs +6 -0
- package/dist/components/Subheader.js +2 -2
- package/dist/components/Swatch.cjs +6 -0
- package/dist/components/Swatch.js +5 -5
- package/dist/components/Textarea.cjs +6 -0
- package/dist/components/Textarea.js +1 -1
- package/dist/components/Time.cjs +12 -3
- package/dist/components/Time.js +4 -4
- package/dist/components/Toast.cjs +6 -0
- package/dist/components/Toast.js +4 -4
- package/dist/components/Tooltip.cjs +6 -0
- package/dist/components/Tooltip.js +2 -2
- package/dist/components/TopBar.cjs +8 -2
- package/dist/components/TopBar.js +3 -3
- package/dist/components/Upload.cjs +6 -0
- package/dist/components/Upload.js +4 -4
- package/dist/components/index.cjs +43 -5
- package/dist/components/index.css +9 -3
- package/dist/components/index.js +39 -35
- package/dist/index.css +9 -3
- package/package.json +1 -1
- package/src/classNames.ts +8 -0
- package/src/components/EmptyCartIcon.tsx +18 -0
- package/src/components/Input.tsx +5 -1
- package/src/components/MainBar.tsx +3 -3
- package/src/components/Search.tsx +3 -0
- package/src/components/TopBar.tsx +2 -2
- package/src/components/index.ts +1 -0
|
@@ -166,12 +166,18 @@ var componentPaddingXUsingComponentGap = (0, import_clsx.default)(
|
|
|
166
166
|
var componentPaddingYUsingComponentGap = (0, import_clsx.default)(
|
|
167
167
|
"py-mobile-component-gap desktop:py-desktop-component-gap compact:py-desktop-compact-component-gap"
|
|
168
168
|
);
|
|
169
|
+
var componentPaddingYUsingComponentGap2xMobile = (0, import_clsx.default)(
|
|
170
|
+
"py-[calc(var(--spacing-mobile-component-gap)_+_8px)] desktop:py-desktop-component-gap compact:py-desktop-compact-component-gap"
|
|
171
|
+
);
|
|
169
172
|
var componentPaddingMinusBorder = (0, import_clsx.default)(
|
|
170
173
|
"p-[calc(var(--spacing-mobile-component-padding)_-_1px)] desktop:p-[calc(var(--spacing-desktop-component-padding)_-_1px)] compact:p-[calc(var(--spacing-desktop-compact-component-padding)_-_1px)]"
|
|
171
174
|
);
|
|
172
175
|
var componentPaddingMinus2pxBorder = (0, import_clsx.default)(
|
|
173
176
|
"p-[calc(var(--spacing-mobile-component-padding)_-_2px)] desktop:p-[calc(var(--spacing-desktop-component-padding)_-_2px)] compact:p-[calc(var(--spacing-desktop-compact-component-padding)_-_2px)]"
|
|
174
177
|
);
|
|
178
|
+
var componentPaddingMinusBorderDesktop = (0, import_clsx.default)(
|
|
179
|
+
"p-[calc(var(--spacing-desktop-component-padding)_-_1px)]"
|
|
180
|
+
);
|
|
175
181
|
var layoutPaddding = (0, import_clsx.default)(
|
|
176
182
|
"p-mobile-layout-padding desktop:p-desktop-layout-padding compact:p-desktop-compact-layout-padding"
|
|
177
183
|
);
|
|
@@ -336,7 +342,8 @@ var InputBase = (_a) => {
|
|
|
336
342
|
secondaryIconColor,
|
|
337
343
|
fullWidth = true,
|
|
338
344
|
width,
|
|
339
|
-
wrapperRef
|
|
345
|
+
wrapperRef,
|
|
346
|
+
autocompletePadding = false
|
|
340
347
|
} = _b, props = __objRest(_b, [
|
|
341
348
|
"id",
|
|
342
349
|
"testid",
|
|
@@ -358,7 +365,8 @@ var InputBase = (_a) => {
|
|
|
358
365
|
"secondaryIconColor",
|
|
359
366
|
"fullWidth",
|
|
360
367
|
"width",
|
|
361
|
-
"wrapperRef"
|
|
368
|
+
"wrapperRef",
|
|
369
|
+
"autocompletePadding"
|
|
362
370
|
]);
|
|
363
371
|
const attributes = {
|
|
364
372
|
"data-error": error && !focus || null,
|
|
@@ -386,7 +394,8 @@ var InputBase = (_a) => {
|
|
|
386
394
|
componentGap,
|
|
387
395
|
baseTransition,
|
|
388
396
|
"outline-transparent outline-2 -outline-offset-2",
|
|
389
|
-
componentPaddingMinusBorder,
|
|
397
|
+
!autocompletePadding && componentPaddingMinusBorder,
|
|
398
|
+
autocompletePadding && componentPaddingMinusBorderDesktop,
|
|
390
399
|
!removeRoundness && "rounded-base",
|
|
391
400
|
!removeBorder && "border border-border-primary-normal",
|
|
392
401
|
"relative"
|
|
@@ -1886,7 +1895,8 @@ var Search = (_a) => {
|
|
|
1886
1895
|
renderMenu,
|
|
1887
1896
|
onClick,
|
|
1888
1897
|
wrapperClassName,
|
|
1889
|
-
removeRoundness
|
|
1898
|
+
removeRoundness,
|
|
1899
|
+
autocompletePadding = false
|
|
1890
1900
|
} = _b, props = __objRest(_b, [
|
|
1891
1901
|
"id",
|
|
1892
1902
|
"testid",
|
|
@@ -1897,7 +1907,8 @@ var Search = (_a) => {
|
|
|
1897
1907
|
"renderMenu",
|
|
1898
1908
|
"onClick",
|
|
1899
1909
|
"wrapperClassName",
|
|
1900
|
-
"removeRoundness"
|
|
1910
|
+
"removeRoundness",
|
|
1911
|
+
"autocompletePadding"
|
|
1901
1912
|
]);
|
|
1902
1913
|
const inputRef = (0, import_react10.useRef)(null);
|
|
1903
1914
|
const inputContainerRef = (0, import_react10.useRef)(null);
|
|
@@ -1925,6 +1936,7 @@ var Search = (_a) => {
|
|
|
1925
1936
|
ref: inputRef,
|
|
1926
1937
|
label,
|
|
1927
1938
|
wrapperClassName,
|
|
1939
|
+
autocompletePadding,
|
|
1928
1940
|
onClick: (e) => {
|
|
1929
1941
|
if (props.disabled || readOnly) {
|
|
1930
1942
|
return;
|
|
@@ -4922,8 +4934,11 @@ Pagination.displayName = "Pagination";
|
|
|
4922
4934
|
// src/components/SkeletonParagraph.tsx
|
|
4923
4935
|
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
4924
4936
|
|
|
4925
|
-
// src/components/
|
|
4937
|
+
// src/components/EmptyCartIcon.tsx
|
|
4926
4938
|
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
4939
|
+
|
|
4940
|
+
// src/components/CalendarRange.tsx
|
|
4941
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
4927
4942
|
function DateCell(_a) {
|
|
4928
4943
|
var _b = _a, {
|
|
4929
4944
|
date,
|
|
@@ -4958,7 +4973,7 @@ function DateCell(_a) {
|
|
|
4958
4973
|
"id",
|
|
4959
4974
|
"testid"
|
|
4960
4975
|
]);
|
|
4961
|
-
return /* @__PURE__ */ (0,
|
|
4976
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
4962
4977
|
"span",
|
|
4963
4978
|
__spreadProps(__spreadValues({}, props), {
|
|
4964
4979
|
id,
|
|
@@ -5112,7 +5127,7 @@ function CalendarRange({
|
|
|
5112
5127
|
}
|
|
5113
5128
|
return false;
|
|
5114
5129
|
}
|
|
5115
|
-
return /* @__PURE__ */ (0,
|
|
5130
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
5116
5131
|
"div",
|
|
5117
5132
|
{
|
|
5118
5133
|
id,
|
|
@@ -5125,7 +5140,7 @@ function CalendarRange({
|
|
|
5125
5140
|
// baseTransition,
|
|
5126
5141
|
"overflow-hidden"
|
|
5127
5142
|
),
|
|
5128
|
-
children: /* @__PURE__ */ (0,
|
|
5143
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
5129
5144
|
"div",
|
|
5130
5145
|
{
|
|
5131
5146
|
className: (0, import_clsx38.default)(
|
|
@@ -5133,7 +5148,7 @@ function CalendarRange({
|
|
|
5133
5148
|
layoutGap
|
|
5134
5149
|
),
|
|
5135
5150
|
children: (mode === "double" ? [0, 1] : [0]).map((offset, idx) => {
|
|
5136
|
-
return /* @__PURE__ */ (0,
|
|
5151
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
5137
5152
|
CalendarPane,
|
|
5138
5153
|
{
|
|
5139
5154
|
getMonthData,
|
|
@@ -5198,13 +5213,13 @@ function CalendarPane({
|
|
|
5198
5213
|
const month = getMonthData(offset);
|
|
5199
5214
|
const totalCells = 42;
|
|
5200
5215
|
const emptyCells = month.firstDayOffset;
|
|
5201
|
-
return /* @__PURE__ */ (0,
|
|
5202
|
-
/* @__PURE__ */ (0,
|
|
5216
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_react37.default.Fragment, { children: [
|
|
5217
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
|
|
5203
5218
|
"div",
|
|
5204
5219
|
{
|
|
5205
5220
|
className: (0, import_clsx38.default)("flex flex-col"),
|
|
5206
5221
|
children: [
|
|
5207
|
-
/* @__PURE__ */ (0,
|
|
5222
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
|
|
5208
5223
|
"div",
|
|
5209
5224
|
{
|
|
5210
5225
|
className: (0, import_clsx38.default)(
|
|
@@ -5213,7 +5228,7 @@ function CalendarPane({
|
|
|
5213
5228
|
"text-text-action-primary-normal"
|
|
5214
5229
|
),
|
|
5215
5230
|
children: [
|
|
5216
|
-
idx === 0 ? /* @__PURE__ */ (0,
|
|
5231
|
+
idx === 0 ? /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
5217
5232
|
"button",
|
|
5218
5233
|
{
|
|
5219
5234
|
id: id ? `${id}-prev-month-button` : void 0,
|
|
@@ -5225,11 +5240,11 @@ function CalendarPane({
|
|
|
5225
5240
|
),
|
|
5226
5241
|
"aria-label": "Previous month",
|
|
5227
5242
|
onClick: () => setBaseMonth(baseMonth.subtract({ months: 1 })),
|
|
5228
|
-
children: /* @__PURE__ */ (0,
|
|
5243
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Icon, { name: "chevron_left", size: 24 })
|
|
5229
5244
|
}
|
|
5230
|
-
) : /* @__PURE__ */ (0,
|
|
5231
|
-
/* @__PURE__ */ (0,
|
|
5232
|
-
/* @__PURE__ */ (0,
|
|
5245
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { className: (0, import_clsx38.default)(componentPadding, "mr-1") }),
|
|
5246
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "flex gap-desktop-compact-component-padding", children: [
|
|
5247
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
5233
5248
|
"button",
|
|
5234
5249
|
{
|
|
5235
5250
|
ref: (el) => {
|
|
@@ -5244,13 +5259,13 @@ function CalendarPane({
|
|
|
5244
5259
|
children: month.name
|
|
5245
5260
|
}
|
|
5246
5261
|
),
|
|
5247
|
-
/* @__PURE__ */ (0,
|
|
5262
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
5248
5263
|
Menu,
|
|
5249
5264
|
{
|
|
5250
5265
|
show: monthMenuOpen,
|
|
5251
5266
|
positionTo: monthMenuRef,
|
|
5252
5267
|
setShow: () => setMonthMenuOpen(false),
|
|
5253
|
-
children: months.map((x) => [x, getMonthDataWith(x + 1)]).map(([x, m]) => /* @__PURE__ */ (0,
|
|
5268
|
+
children: months.map((x) => [x, getMonthDataWith(x + 1)]).map(([x, m]) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
5254
5269
|
MenuOption,
|
|
5255
5270
|
{
|
|
5256
5271
|
selected: baseMonth.month === x + 1,
|
|
@@ -5264,7 +5279,7 @@ function CalendarPane({
|
|
|
5264
5279
|
))
|
|
5265
5280
|
}
|
|
5266
5281
|
),
|
|
5267
|
-
/* @__PURE__ */ (0,
|
|
5282
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
5268
5283
|
"button",
|
|
5269
5284
|
{
|
|
5270
5285
|
ref: (el) => {
|
|
@@ -5279,13 +5294,13 @@ function CalendarPane({
|
|
|
5279
5294
|
children: month.year
|
|
5280
5295
|
}
|
|
5281
5296
|
),
|
|
5282
|
-
/* @__PURE__ */ (0,
|
|
5297
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
5283
5298
|
Menu,
|
|
5284
5299
|
{
|
|
5285
5300
|
show: yearMenuOpen,
|
|
5286
5301
|
positionTo: yearMenuRef,
|
|
5287
5302
|
setShow: () => setYearMenuOpen(false),
|
|
5288
|
-
children: years.map((y) => /* @__PURE__ */ (0,
|
|
5303
|
+
children: years.map((y) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
5289
5304
|
MenuOption,
|
|
5290
5305
|
{
|
|
5291
5306
|
selected: baseMonth.year === y,
|
|
@@ -5300,7 +5315,7 @@ function CalendarPane({
|
|
|
5300
5315
|
}
|
|
5301
5316
|
)
|
|
5302
5317
|
] }),
|
|
5303
|
-
(mode === "double" ? idx === 1 : true) ? /* @__PURE__ */ (0,
|
|
5318
|
+
(mode === "double" ? idx === 1 : true) ? /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
5304
5319
|
"button",
|
|
5305
5320
|
{
|
|
5306
5321
|
id: id ? `${id}-next-month-button` : void 0,
|
|
@@ -5312,13 +5327,13 @@ function CalendarPane({
|
|
|
5312
5327
|
),
|
|
5313
5328
|
"aria-label": "Next month",
|
|
5314
5329
|
onClick: () => setBaseMonth(baseMonth.add({ months: 1 })),
|
|
5315
|
-
children: /* @__PURE__ */ (0,
|
|
5330
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Icon, { name: "chevron_right", size: 24 })
|
|
5316
5331
|
}
|
|
5317
|
-
) : /* @__PURE__ */ (0,
|
|
5332
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { className: (0, import_clsx38.default)(componentPadding, "ml-1") })
|
|
5318
5333
|
]
|
|
5319
5334
|
}
|
|
5320
5335
|
),
|
|
5321
|
-
/* @__PURE__ */ (0,
|
|
5336
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: (0, import_clsx38.default)("grid grid-cols-7"), children: weekDays.map((d) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
5322
5337
|
"span",
|
|
5323
5338
|
{
|
|
5324
5339
|
className: (0, import_clsx38.default)(
|
|
@@ -5330,7 +5345,7 @@ function CalendarPane({
|
|
|
5330
5345
|
},
|
|
5331
5346
|
d
|
|
5332
5347
|
)) }),
|
|
5333
|
-
/* @__PURE__ */ (0,
|
|
5348
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: (0, import_clsx38.default)("grid grid-cols-7"), children: Array.from({ length: totalCells }).map((_, i) => {
|
|
5334
5349
|
const day = i - emptyCells + 1;
|
|
5335
5350
|
const date = month.date.with({ day: 1 }).add({
|
|
5336
5351
|
days: i - emptyCells
|
|
@@ -5344,7 +5359,7 @@ function CalendarPane({
|
|
|
5344
5359
|
const hoverDateIsAfterPendingFrom = hoveredDate && pendingFrom && import_polyfill.Temporal.PlainDate.compare(hoveredDate, pendingFrom) >= 0;
|
|
5345
5360
|
const isRangeStart = mode === "single" && disableRange ? false : !pendingFrom && isInMonth && fromDate && date.equals(fromDate) || hoverDateIsAfterPendingFrom && date.equals(pendingFrom);
|
|
5346
5361
|
const isRangeEnd = mode === "single" && disableRange ? false : !pendingFrom && isInMonth && toDate && date.equals(toDate) || hoverDateIsBeforePendingFrom && date.equals(pendingFrom);
|
|
5347
|
-
return /* @__PURE__ */ (0,
|
|
5362
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
5348
5363
|
DateCell,
|
|
5349
5364
|
{
|
|
5350
5365
|
id: id ? `${id}-date-${date.toString()}` : void 0,
|
|
@@ -5369,7 +5384,7 @@ function CalendarPane({
|
|
|
5369
5384
|
]
|
|
5370
5385
|
}
|
|
5371
5386
|
),
|
|
5372
|
-
mode === "double" && idx === 0 && /* @__PURE__ */ (0,
|
|
5387
|
+
mode === "double" && idx === 0 && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
5373
5388
|
"div",
|
|
5374
5389
|
{
|
|
5375
5390
|
className: (0, import_clsx38.default)(
|
|
@@ -5383,7 +5398,7 @@ function CalendarPane({
|
|
|
5383
5398
|
}
|
|
5384
5399
|
|
|
5385
5400
|
// src/components/DateInput.tsx
|
|
5386
|
-
var
|
|
5401
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
5387
5402
|
var DateInput = (_a) => {
|
|
5388
5403
|
var _b = _a, {
|
|
5389
5404
|
id,
|
|
@@ -5542,8 +5557,8 @@ var DateInput = (_a) => {
|
|
|
5542
5557
|
}
|
|
5543
5558
|
}
|
|
5544
5559
|
};
|
|
5545
|
-
return /* @__PURE__ */ (0,
|
|
5546
|
-
/* @__PURE__ */ (0,
|
|
5560
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "relative", children: [
|
|
5561
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
5547
5562
|
InputBase,
|
|
5548
5563
|
__spreadProps(__spreadValues({
|
|
5549
5564
|
id,
|
|
@@ -5557,7 +5572,7 @@ var DateInput = (_a) => {
|
|
|
5557
5572
|
placeholder,
|
|
5558
5573
|
disabled,
|
|
5559
5574
|
readOnly,
|
|
5560
|
-
after: /* @__PURE__ */ (0,
|
|
5575
|
+
after: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Icon, { name: "calendar_month" }),
|
|
5561
5576
|
onFocus: handleFocus,
|
|
5562
5577
|
onClick: handleClick,
|
|
5563
5578
|
onChange: handleInputChange,
|
|
@@ -5568,7 +5583,7 @@ var DateInput = (_a) => {
|
|
|
5568
5583
|
})
|
|
5569
5584
|
),
|
|
5570
5585
|
visible && !readOnly && (0, import_react_dom4.createPortal)(
|
|
5571
|
-
/* @__PURE__ */ (0,
|
|
5586
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
5572
5587
|
"div",
|
|
5573
5588
|
{
|
|
5574
5589
|
ref: (el) => {
|
|
@@ -5580,7 +5595,7 @@ var DateInput = (_a) => {
|
|
|
5580
5595
|
left: `${calendarPosition.left}px`,
|
|
5581
5596
|
minWidth: `${calendarPosition.width}px`
|
|
5582
5597
|
},
|
|
5583
|
-
children: /* @__PURE__ */ (0,
|
|
5598
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
5584
5599
|
CalendarRange,
|
|
5585
5600
|
{
|
|
5586
5601
|
id: id ? `${id}-calendar` : void 0,
|
|
@@ -895,12 +895,12 @@
|
|
|
895
895
|
.max-w-38 {
|
|
896
896
|
max-width: calc(var(--spacing) * 38);
|
|
897
897
|
}
|
|
898
|
+
.max-w-100 {
|
|
899
|
+
max-width: calc(var(--spacing) * 100);
|
|
900
|
+
}
|
|
898
901
|
.max-w-240 {
|
|
899
902
|
max-width: calc(var(--spacing) * 240);
|
|
900
903
|
}
|
|
901
|
-
.max-w-\[400px\] {
|
|
902
|
-
max-width: 400px;
|
|
903
|
-
}
|
|
904
904
|
.max-w-fit {
|
|
905
905
|
max-width: fit-content;
|
|
906
906
|
}
|
|
@@ -1919,6 +1919,9 @@
|
|
|
1919
1919
|
.p-6 {
|
|
1920
1920
|
padding: calc(var(--spacing) * 6);
|
|
1921
1921
|
}
|
|
1922
|
+
.p-\[calc\(var\(--spacing-desktop-component-padding\)_-_1px\)\] {
|
|
1923
|
+
padding: calc(var(--spacing-desktop-component-padding) - 1px);
|
|
1924
|
+
}
|
|
1922
1925
|
.p-\[calc\(var\(--spacing-mobile-component-padding\)_-_1px\)\] {
|
|
1923
1926
|
padding: calc(var(--spacing-mobile-component-padding) - 1px);
|
|
1924
1927
|
}
|
|
@@ -1997,6 +2000,9 @@
|
|
|
1997
2000
|
.py-\[15px\] {
|
|
1998
2001
|
padding-block: 15px;
|
|
1999
2002
|
}
|
|
2003
|
+
.py-\[calc\(var\(--spacing-mobile-component-gap\)_\+_8px\)\] {
|
|
2004
|
+
padding-block: calc(var(--spacing-mobile-component-gap) + 8px);
|
|
2005
|
+
}
|
|
2000
2006
|
.py-mobile-component-gap {
|
|
2001
2007
|
padding-block: var(--spacing-mobile-component-gap);
|
|
2002
2008
|
}
|
|
@@ -1,56 +1,57 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CalendarRange
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-LZH6DJEZ.js";
|
|
4
|
+
import "../chunk-BYRLHNBP.js";
|
|
5
|
+
import "../chunk-UKSV4UHI.js";
|
|
6
|
+
import "../chunk-IT4VFU6T.js";
|
|
7
7
|
import "../chunk-M7INAUAJ.js";
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-DNUBM26R.js";
|
|
9
|
+
import "../chunk-I363QX6Y.js";
|
|
10
10
|
import "../chunk-MBZ55T2D.js";
|
|
11
11
|
import "../chunk-2IKT6IHB.js";
|
|
12
12
|
import "../chunk-YCDDBSVU.js";
|
|
13
13
|
import "../chunk-3X3Y4TMS.js";
|
|
14
14
|
import "../chunk-BQNPOGD5.js";
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-KJNK7KEV.js";
|
|
16
|
+
import "../chunk-TVXBP5CW.js";
|
|
17
17
|
import "../chunk-5IFPG6TS.js";
|
|
18
|
+
import "../chunk-KW6V7O3H.js";
|
|
18
19
|
import "../chunk-AJ5M6MVX.js";
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-RQLWSLVE.js";
|
|
22
|
-
import "../chunk-6LHBY2IH.js";
|
|
20
|
+
import "../chunk-JUFBGNWW.js";
|
|
21
|
+
import "../chunk-YNKN6RKF.js";
|
|
23
22
|
import "../chunk-VJVY6NPF.js";
|
|
23
|
+
import "../chunk-GTBGPBH6.js";
|
|
24
|
+
import "../chunk-AT4AWD6B.js";
|
|
24
25
|
import "../chunk-EWGHVZL5.js";
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
26
|
+
import "../chunk-7GHD74J3.js";
|
|
27
|
+
import "../chunk-7BVUTFZ5.js";
|
|
27
28
|
import "../chunk-ETAEB3TA.js";
|
|
28
|
-
import "../chunk-
|
|
29
|
-
import "../chunk-
|
|
30
|
-
import "../chunk-
|
|
31
|
-
import "../chunk-SBCFBHNG.js";
|
|
29
|
+
import "../chunk-HVNHTM3P.js";
|
|
30
|
+
import "../chunk-GRGDX7JC.js";
|
|
31
|
+
import "../chunk-KCUB3UWA.js";
|
|
32
32
|
import "../chunk-4RJKB7LC.js";
|
|
33
|
+
import "../chunk-G7KIKHER.js";
|
|
33
34
|
import "../chunk-AG43RS4Q.js";
|
|
34
|
-
import "../chunk-
|
|
35
|
-
import "../chunk-
|
|
36
|
-
import "../chunk-
|
|
37
|
-
import "../chunk-IFHMGICR.js";
|
|
35
|
+
import "../chunk-ZQJMNPCF.js";
|
|
36
|
+
import "../chunk-FG7GNGE3.js";
|
|
37
|
+
import "../chunk-6TYWM26K.js";
|
|
38
38
|
import "../chunk-SBRRNFOP.js";
|
|
39
39
|
import "../chunk-Y2GK27RX.js";
|
|
40
|
-
import "../chunk-
|
|
40
|
+
import "../chunk-H2KC5XUY.js";
|
|
41
41
|
import "../chunk-QVWYTQKL.js";
|
|
42
|
-
import "../chunk-
|
|
43
|
-
import "../chunk-
|
|
44
|
-
import "../chunk-
|
|
42
|
+
import "../chunk-75USUR3I.js";
|
|
43
|
+
import "../chunk-WEAVZEE4.js";
|
|
44
|
+
import "../chunk-W53FKPJD.js";
|
|
45
|
+
import "../chunk-WX62IDZ5.js";
|
|
45
46
|
import "../chunk-22VBZWJG.js";
|
|
46
47
|
import "../chunk-NVOZAVEX.js";
|
|
47
|
-
import "../chunk-
|
|
48
|
+
import "../chunk-SOZRGIQW.js";
|
|
48
49
|
import "../chunk-WVUIIBRR.js";
|
|
49
|
-
import "../chunk-
|
|
50
|
+
import "../chunk-RQRR4FEF.js";
|
|
50
51
|
import {
|
|
51
52
|
InputBase
|
|
52
|
-
} from "../chunk-
|
|
53
|
-
import "../chunk-
|
|
53
|
+
} from "../chunk-44TH3VC7.js";
|
|
54
|
+
import "../chunk-AL5QIRY3.js";
|
|
54
55
|
import "../chunk-MYKYZHEO.js";
|
|
55
56
|
import {
|
|
56
57
|
findDocumentRoot
|
|
@@ -63,16 +64,16 @@ import {
|
|
|
63
64
|
parseInputDate
|
|
64
65
|
} from "../chunk-TYTD4FLW.js";
|
|
65
66
|
import "../chunk-5UH6QUFB.js";
|
|
66
|
-
import "../chunk-
|
|
67
|
-
import "../chunk-
|
|
67
|
+
import "../chunk-UCJUC5AZ.js";
|
|
68
|
+
import "../chunk-ZQSD74IJ.js";
|
|
68
69
|
import "../chunk-KBJZUVLM.js";
|
|
69
|
-
import "../chunk-
|
|
70
|
-
import "../chunk-
|
|
70
|
+
import "../chunk-DORD2EBO.js";
|
|
71
|
+
import "../chunk-ZSETMD4A.js";
|
|
71
72
|
import {
|
|
72
73
|
Icon
|
|
73
74
|
} from "../chunk-NKUETCDA.js";
|
|
74
|
-
import "../chunk-
|
|
75
|
-
import "../chunk-
|
|
75
|
+
import "../chunk-LPY6PMAY.js";
|
|
76
|
+
import "../chunk-IXR65MOU.js";
|
|
76
77
|
import {
|
|
77
78
|
__objRest,
|
|
78
79
|
__spreadProps,
|