@dmsi/wedgekit-react 0.0.413 → 0.0.415
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-7ULLUUVJ.js +61 -0
- package/dist/components/CalendarRange.cjs +39 -35
- package/dist/components/CalendarRange.css +9 -0
- package/dist/components/CalendarRange.js +6 -5
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +6 -2
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.css +9 -0
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +6 -5
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +13 -9
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.css +9 -0
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +6 -5
- package/dist/components/DataGrid/PinnedColumns.cjs +27 -23
- package/dist/components/DataGrid/PinnedColumns.css +9 -0
- package/dist/components/DataGrid/PinnedColumns.js +6 -5
- package/dist/components/DataGrid/TableBody/LoadingCell.cjs +9 -5
- package/dist/components/DataGrid/TableBody/LoadingCell.css +9 -0
- package/dist/components/DataGrid/TableBody/LoadingCell.js +6 -5
- package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +14 -10
- package/dist/components/DataGrid/TableBody/TableBodyRow.css +9 -0
- package/dist/components/DataGrid/TableBody/TableBodyRow.js +6 -5
- package/dist/components/DataGrid/TableBody/index.cjs +29 -25
- package/dist/components/DataGrid/TableBody/index.css +9 -0
- package/dist/components/DataGrid/TableBody/index.js +6 -5
- package/dist/components/DataGrid/index.cjs +98 -94
- package/dist/components/DataGrid/index.css +9 -0
- package/dist/components/DataGrid/index.js +6 -5
- package/dist/components/DataGrid/utils.cjs +9 -5
- package/dist/components/DataGrid/utils.css +9 -0
- package/dist/components/DataGrid/utils.js +6 -5
- package/dist/components/DateInput.cjs +45 -41
- package/dist/components/DateInput.css +9 -0
- package/dist/components/DateInput.js +6 -5
- package/dist/components/DateRangeInput.cjs +45 -41
- package/dist/components/DateRangeInput.css +9 -0
- package/dist/components/DateRangeInput.js +6 -5
- package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +12 -8
- package/dist/components/MobileDataGrid/ColumnSelector/index.css +9 -0
- package/dist/components/MobileDataGrid/ColumnSelector/index.js +6 -5
- package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +20 -16
- package/dist/components/MobileDataGrid/MobileDataGridHeader.css +9 -0
- package/dist/components/MobileDataGrid/MobileDataGridHeader.js +6 -5
- package/dist/components/MobileDataGrid/index.cjs +103 -99
- package/dist/components/MobileDataGrid/index.css +9 -0
- package/dist/components/MobileDataGrid/index.js +6 -5
- package/dist/components/ProductImagePreview/index.js +2 -2
- package/dist/components/SimpleTable.cjs +485 -0
- package/dist/components/SimpleTable.js +10 -0
- package/dist/components/index.cjs +53 -0
- package/dist/components/index.css +9 -0
- package/dist/components/index.js +9 -5
- package/dist/index.css +9 -0
- package/package.json +1 -1
- package/src/components/SimpleTable.tsx +77 -0
- package/src/components/index.ts +1 -0
- package/dist/{chunk-OBY5EH47.js → chunk-BK7SPR6Y.js} +6 -6
- package/dist/{chunk-LZGYABCX.js → chunk-ZHZIIVJN.js} +3 -3
|
@@ -841,6 +841,9 @@
|
|
|
841
841
|
.\!w-20 {
|
|
842
842
|
width: calc(var(--spacing) * 20) !important;
|
|
843
843
|
}
|
|
844
|
+
.w-2\/3 {
|
|
845
|
+
width: calc(2/3 * 100%);
|
|
846
|
+
}
|
|
844
847
|
.w-3 {
|
|
845
848
|
width: calc(var(--spacing) * 3);
|
|
846
849
|
}
|
|
@@ -961,6 +964,9 @@
|
|
|
961
964
|
.grow-0 {
|
|
962
965
|
flex-grow: 0;
|
|
963
966
|
}
|
|
967
|
+
.border-collapse {
|
|
968
|
+
border-collapse: collapse;
|
|
969
|
+
}
|
|
964
970
|
.translate-x-0 {
|
|
965
971
|
--tw-translate-x: calc(var(--spacing) * 0);
|
|
966
972
|
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
@@ -2035,6 +2041,9 @@
|
|
|
2035
2041
|
.text-right {
|
|
2036
2042
|
text-align: right;
|
|
2037
2043
|
}
|
|
2044
|
+
.align-middle {
|
|
2045
|
+
vertical-align: middle;
|
|
2046
|
+
}
|
|
2038
2047
|
.font-sans {
|
|
2039
2048
|
font-family: var(--font-sans);
|
|
2040
2049
|
}
|
|
@@ -2,25 +2,26 @@
|
|
|
2
2
|
import {
|
|
3
3
|
DataGrid,
|
|
4
4
|
DataGrid_default
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-M7INAUAJ.js";
|
|
5
|
+
} from "../../chunk-BK7SPR6Y.js";
|
|
7
6
|
import "../../chunk-6I5LZ2ZC.js";
|
|
7
|
+
import "../../chunk-M7INAUAJ.js";
|
|
8
8
|
import "../../chunk-44TDIHUP.js";
|
|
9
|
-
import "../../chunk-
|
|
9
|
+
import "../../chunk-ZHZIIVJN.js";
|
|
10
|
+
import "../../chunk-2IKT6IHB.js";
|
|
10
11
|
import "../../chunk-G5DEC7H3.js";
|
|
11
12
|
import "../../chunk-3X3Y4TMS.js";
|
|
12
13
|
import "../../chunk-BQNPOGD5.js";
|
|
13
14
|
import "../../chunk-MBZ55T2D.js";
|
|
14
|
-
import "../../chunk-2IKT6IHB.js";
|
|
15
15
|
import "../../chunk-AA6GE3TH.js";
|
|
16
16
|
import "../../chunk-KZZKQLKF.js";
|
|
17
17
|
import "../../chunk-5IFPG6TS.js";
|
|
18
18
|
import "../../chunk-AJ5M6MVX.js";
|
|
19
19
|
import "../../chunk-M6TSTDNZ.js";
|
|
20
|
+
import "../../chunk-EWGHVZL5.js";
|
|
20
21
|
import "../../chunk-QQ5G773N.js";
|
|
21
22
|
import "../../chunk-AT4AWD6B.js";
|
|
22
|
-
import "../../chunk-EWGHVZL5.js";
|
|
23
23
|
import "../../chunk-J5V2JRIK.js";
|
|
24
|
+
import "../../chunk-7ULLUUVJ.js";
|
|
24
25
|
import "../../chunk-D6YCMQPO.js";
|
|
25
26
|
import "../../chunk-4RJKB7LC.js";
|
|
26
27
|
import "../../chunk-XM7IQHBU.js";
|
|
@@ -62,7 +62,7 @@ __export(utils_exports, {
|
|
|
62
62
|
getSortIcon: () => getSortIcon
|
|
63
63
|
});
|
|
64
64
|
module.exports = __toCommonJS(utils_exports);
|
|
65
|
-
var
|
|
65
|
+
var import_clsx34 = __toESM(require("clsx"), 1);
|
|
66
66
|
|
|
67
67
|
// src/components/DataGridCell.tsx
|
|
68
68
|
var import_sortable = require("@dnd-kit/sortable");
|
|
@@ -4646,17 +4646,21 @@ var import_react32 = require("react");
|
|
|
4646
4646
|
var import_clsx32 = __toESM(require("clsx"), 1);
|
|
4647
4647
|
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
4648
4648
|
|
|
4649
|
-
// src/components/
|
|
4649
|
+
// src/components/SimpleTable.tsx
|
|
4650
|
+
var import_clsx33 = __toESM(require("clsx"), 1);
|
|
4650
4651
|
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
4652
|
+
|
|
4653
|
+
// src/components/DataGrid/utils.tsx
|
|
4654
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
4651
4655
|
function getSortIcon(sort, nextSort = false) {
|
|
4652
|
-
const iconClassName = (0,
|
|
4656
|
+
const iconClassName = (0, import_clsx34.default)(
|
|
4653
4657
|
"text-icon-on-action-primary-normal",
|
|
4654
4658
|
nextSort && "hidden group-hover:block"
|
|
4655
4659
|
);
|
|
4656
4660
|
if (sort === "asc")
|
|
4657
|
-
return /* @__PURE__ */ (0,
|
|
4661
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Icon, { size: 16, className: iconClassName, name: "arrow_upward" });
|
|
4658
4662
|
if (sort === "desc")
|
|
4659
|
-
return /* @__PURE__ */ (0,
|
|
4663
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Icon, { size: 16, className: iconClassName, name: "arrow_downward" });
|
|
4660
4664
|
return null;
|
|
4661
4665
|
}
|
|
4662
4666
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -841,6 +841,9 @@
|
|
|
841
841
|
.\!w-20 {
|
|
842
842
|
width: calc(var(--spacing) * 20) !important;
|
|
843
843
|
}
|
|
844
|
+
.w-2\/3 {
|
|
845
|
+
width: calc(2/3 * 100%);
|
|
846
|
+
}
|
|
844
847
|
.w-3 {
|
|
845
848
|
width: calc(var(--spacing) * 3);
|
|
846
849
|
}
|
|
@@ -961,6 +964,9 @@
|
|
|
961
964
|
.grow-0 {
|
|
962
965
|
flex-grow: 0;
|
|
963
966
|
}
|
|
967
|
+
.border-collapse {
|
|
968
|
+
border-collapse: collapse;
|
|
969
|
+
}
|
|
964
970
|
.translate-x-0 {
|
|
965
971
|
--tw-translate-x: calc(var(--spacing) * 0);
|
|
966
972
|
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
@@ -2035,6 +2041,9 @@
|
|
|
2035
2041
|
.text-right {
|
|
2036
2042
|
text-align: right;
|
|
2037
2043
|
}
|
|
2044
|
+
.align-middle {
|
|
2045
|
+
vertical-align: middle;
|
|
2046
|
+
}
|
|
2038
2047
|
.font-sans {
|
|
2039
2048
|
font-family: var(--font-sans);
|
|
2040
2049
|
}
|
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getSortIcon
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-M7INAUAJ.js";
|
|
3
|
+
} from "../../chunk-BK7SPR6Y.js";
|
|
5
4
|
import "../../chunk-6I5LZ2ZC.js";
|
|
5
|
+
import "../../chunk-M7INAUAJ.js";
|
|
6
6
|
import "../../chunk-44TDIHUP.js";
|
|
7
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-ZHZIIVJN.js";
|
|
8
|
+
import "../../chunk-2IKT6IHB.js";
|
|
8
9
|
import "../../chunk-G5DEC7H3.js";
|
|
9
10
|
import "../../chunk-3X3Y4TMS.js";
|
|
10
11
|
import "../../chunk-BQNPOGD5.js";
|
|
11
12
|
import "../../chunk-MBZ55T2D.js";
|
|
12
|
-
import "../../chunk-2IKT6IHB.js";
|
|
13
13
|
import "../../chunk-AA6GE3TH.js";
|
|
14
14
|
import "../../chunk-KZZKQLKF.js";
|
|
15
15
|
import "../../chunk-5IFPG6TS.js";
|
|
16
16
|
import "../../chunk-AJ5M6MVX.js";
|
|
17
17
|
import "../../chunk-M6TSTDNZ.js";
|
|
18
|
+
import "../../chunk-EWGHVZL5.js";
|
|
18
19
|
import "../../chunk-QQ5G773N.js";
|
|
19
20
|
import "../../chunk-AT4AWD6B.js";
|
|
20
|
-
import "../../chunk-EWGHVZL5.js";
|
|
21
21
|
import "../../chunk-J5V2JRIK.js";
|
|
22
|
+
import "../../chunk-7ULLUUVJ.js";
|
|
22
23
|
import "../../chunk-D6YCMQPO.js";
|
|
23
24
|
import "../../chunk-4RJKB7LC.js";
|
|
24
25
|
import "../../chunk-XM7IQHBU.js";
|
|
@@ -716,7 +716,7 @@ Currency.displayName = "Currency";
|
|
|
716
716
|
Percentage.displayName = "Percentage";
|
|
717
717
|
|
|
718
718
|
// src/components/CalendarRange.tsx
|
|
719
|
-
var
|
|
719
|
+
var import_clsx35 = __toESM(require("clsx"), 1);
|
|
720
720
|
var import_react33 = __toESM(require("react"), 1);
|
|
721
721
|
var import_polyfill = require("@js-temporal/polyfill");
|
|
722
722
|
|
|
@@ -4739,8 +4739,12 @@ var import_react32 = require("react");
|
|
|
4739
4739
|
var import_clsx33 = __toESM(require("clsx"), 1);
|
|
4740
4740
|
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
4741
4741
|
|
|
4742
|
-
// src/components/
|
|
4742
|
+
// src/components/SimpleTable.tsx
|
|
4743
|
+
var import_clsx34 = __toESM(require("clsx"), 1);
|
|
4743
4744
|
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
4745
|
+
|
|
4746
|
+
// src/components/CalendarRange.tsx
|
|
4747
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
4744
4748
|
function DateCell(_a) {
|
|
4745
4749
|
var _b = _a, {
|
|
4746
4750
|
date,
|
|
@@ -4775,12 +4779,12 @@ function DateCell(_a) {
|
|
|
4775
4779
|
"id",
|
|
4776
4780
|
"testid"
|
|
4777
4781
|
]);
|
|
4778
|
-
return /* @__PURE__ */ (0,
|
|
4782
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
4779
4783
|
"span",
|
|
4780
4784
|
__spreadProps(__spreadValues({}, props), {
|
|
4781
4785
|
id,
|
|
4782
4786
|
"data-testid": testid,
|
|
4783
|
-
className: (0,
|
|
4787
|
+
className: (0, import_clsx35.default)(
|
|
4784
4788
|
"flex items-center justify-center aspect-square select-none transition-colors border duration-100 font-medium",
|
|
4785
4789
|
typography.caption,
|
|
4786
4790
|
cellPadding,
|
|
@@ -4929,12 +4933,12 @@ function CalendarRange({
|
|
|
4929
4933
|
}
|
|
4930
4934
|
return false;
|
|
4931
4935
|
}
|
|
4932
|
-
return /* @__PURE__ */ (0,
|
|
4936
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
4933
4937
|
"div",
|
|
4934
4938
|
{
|
|
4935
4939
|
id,
|
|
4936
4940
|
"data-testid": testid,
|
|
4937
|
-
className: (0,
|
|
4941
|
+
className: (0, import_clsx35.default)(
|
|
4938
4942
|
"relative bg-background-grouped-primary-normal rounded-base w-fit",
|
|
4939
4943
|
layoutPaddding,
|
|
4940
4944
|
layoutGap,
|
|
@@ -4942,15 +4946,15 @@ function CalendarRange({
|
|
|
4942
4946
|
// baseTransition,
|
|
4943
4947
|
"overflow-hidden"
|
|
4944
4948
|
),
|
|
4945
|
-
children: /* @__PURE__ */ (0,
|
|
4949
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
4946
4950
|
"div",
|
|
4947
4951
|
{
|
|
4948
|
-
className: (0,
|
|
4952
|
+
className: (0, import_clsx35.default)(
|
|
4949
4953
|
"flex flex-row items-start justify-start bg-background-primary-normal overflow-clip",
|
|
4950
4954
|
layoutGap
|
|
4951
4955
|
),
|
|
4952
4956
|
children: (mode === "double" ? [0, 1] : [0]).map((offset, idx) => {
|
|
4953
|
-
return /* @__PURE__ */ (0,
|
|
4957
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
4954
4958
|
CalendarPane,
|
|
4955
4959
|
{
|
|
4956
4960
|
getMonthData,
|
|
@@ -5015,38 +5019,38 @@ function CalendarPane({
|
|
|
5015
5019
|
const month = getMonthData(offset);
|
|
5016
5020
|
const totalCells = 42;
|
|
5017
5021
|
const emptyCells = month.firstDayOffset;
|
|
5018
|
-
return /* @__PURE__ */ (0,
|
|
5019
|
-
/* @__PURE__ */ (0,
|
|
5022
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_react33.default.Fragment, { children: [
|
|
5023
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
|
|
5020
5024
|
"div",
|
|
5021
5025
|
{
|
|
5022
|
-
className: (0,
|
|
5026
|
+
className: (0, import_clsx35.default)("flex flex-col"),
|
|
5023
5027
|
children: [
|
|
5024
|
-
/* @__PURE__ */ (0,
|
|
5028
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
|
|
5025
5029
|
"div",
|
|
5026
5030
|
{
|
|
5027
|
-
className: (0,
|
|
5031
|
+
className: (0, import_clsx35.default)(
|
|
5028
5032
|
"flex flex-row items-center justify-between",
|
|
5029
5033
|
typography.label,
|
|
5030
5034
|
"text-text-action-primary-normal"
|
|
5031
5035
|
),
|
|
5032
5036
|
children: [
|
|
5033
|
-
idx === 0 ? /* @__PURE__ */ (0,
|
|
5037
|
+
idx === 0 ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5034
5038
|
"button",
|
|
5035
5039
|
{
|
|
5036
5040
|
id: id ? `${id}-prev-month-button` : void 0,
|
|
5037
5041
|
"data-testid": testid ? `${testid}-prev-month-button` : void 0,
|
|
5038
5042
|
type: "button",
|
|
5039
|
-
className: (0,
|
|
5043
|
+
className: (0, import_clsx35.default)(
|
|
5040
5044
|
"flex items-center justify-center rounded-base hover:bg-action-100 active:bg-action-300 text-icon-action-primary-normal",
|
|
5041
5045
|
componentPadding
|
|
5042
5046
|
),
|
|
5043
5047
|
"aria-label": "Previous month",
|
|
5044
5048
|
onClick: () => setBaseMonth(baseMonth.subtract({ months: 1 })),
|
|
5045
|
-
children: /* @__PURE__ */ (0,
|
|
5049
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icon, { name: "chevron_left", size: 24 })
|
|
5046
5050
|
}
|
|
5047
|
-
) : /* @__PURE__ */ (0,
|
|
5048
|
-
/* @__PURE__ */ (0,
|
|
5049
|
-
/* @__PURE__ */ (0,
|
|
5051
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: (0, import_clsx35.default)(componentPadding, "mr-1") }),
|
|
5052
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "flex gap-desktop-compact-component-padding", children: [
|
|
5053
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5050
5054
|
"button",
|
|
5051
5055
|
{
|
|
5052
5056
|
ref: (el) => {
|
|
@@ -5061,13 +5065,13 @@ function CalendarPane({
|
|
|
5061
5065
|
children: month.name
|
|
5062
5066
|
}
|
|
5063
5067
|
),
|
|
5064
|
-
/* @__PURE__ */ (0,
|
|
5068
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5065
5069
|
Menu,
|
|
5066
5070
|
{
|
|
5067
5071
|
show: monthMenuOpen,
|
|
5068
5072
|
positionTo: monthMenuRef,
|
|
5069
5073
|
setShow: () => setMonthMenuOpen(false),
|
|
5070
|
-
children: months.map((x) => [x, getMonthDataWith(x + 1)]).map(([x, m]) => /* @__PURE__ */ (0,
|
|
5074
|
+
children: months.map((x) => [x, getMonthDataWith(x + 1)]).map(([x, m]) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5071
5075
|
MenuOption,
|
|
5072
5076
|
{
|
|
5073
5077
|
selected: baseMonth.month === x + 1,
|
|
@@ -5081,7 +5085,7 @@ function CalendarPane({
|
|
|
5081
5085
|
))
|
|
5082
5086
|
}
|
|
5083
5087
|
),
|
|
5084
|
-
/* @__PURE__ */ (0,
|
|
5088
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5085
5089
|
"button",
|
|
5086
5090
|
{
|
|
5087
5091
|
ref: (el) => {
|
|
@@ -5096,13 +5100,13 @@ function CalendarPane({
|
|
|
5096
5100
|
children: month.year
|
|
5097
5101
|
}
|
|
5098
5102
|
),
|
|
5099
|
-
/* @__PURE__ */ (0,
|
|
5103
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5100
5104
|
Menu,
|
|
5101
5105
|
{
|
|
5102
5106
|
show: yearMenuOpen,
|
|
5103
5107
|
positionTo: yearMenuRef,
|
|
5104
5108
|
setShow: () => setYearMenuOpen(false),
|
|
5105
|
-
children: years.map((y) => /* @__PURE__ */ (0,
|
|
5109
|
+
children: years.map((y) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5106
5110
|
MenuOption,
|
|
5107
5111
|
{
|
|
5108
5112
|
selected: baseMonth.year === y,
|
|
@@ -5117,28 +5121,28 @@ function CalendarPane({
|
|
|
5117
5121
|
}
|
|
5118
5122
|
)
|
|
5119
5123
|
] }),
|
|
5120
|
-
(mode === "double" ? idx === 1 : true) ? /* @__PURE__ */ (0,
|
|
5124
|
+
(mode === "double" ? idx === 1 : true) ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5121
5125
|
"button",
|
|
5122
5126
|
{
|
|
5123
5127
|
id: id ? `${id}-next-month-button` : void 0,
|
|
5124
5128
|
"data-testid": testid ? `${testid}-next-month-button` : void 0,
|
|
5125
5129
|
type: "button",
|
|
5126
|
-
className: (0,
|
|
5130
|
+
className: (0, import_clsx35.default)(
|
|
5127
5131
|
"flex items-center justify-center rounded-base hover:bg-action-100 active:bg-action-300 text-icon-action-primary-normal",
|
|
5128
5132
|
componentPadding
|
|
5129
5133
|
),
|
|
5130
5134
|
"aria-label": "Next month",
|
|
5131
5135
|
onClick: () => setBaseMonth(baseMonth.add({ months: 1 })),
|
|
5132
|
-
children: /* @__PURE__ */ (0,
|
|
5136
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icon, { name: "chevron_right", size: 24 })
|
|
5133
5137
|
}
|
|
5134
|
-
) : /* @__PURE__ */ (0,
|
|
5138
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: (0, import_clsx35.default)(componentPadding, "ml-1") })
|
|
5135
5139
|
]
|
|
5136
5140
|
}
|
|
5137
5141
|
),
|
|
5138
|
-
/* @__PURE__ */ (0,
|
|
5142
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: (0, import_clsx35.default)("grid grid-cols-7"), children: weekDays.map((d) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5139
5143
|
"span",
|
|
5140
5144
|
{
|
|
5141
|
-
className: (0,
|
|
5145
|
+
className: (0, import_clsx35.default)(
|
|
5142
5146
|
typography.caption,
|
|
5143
5147
|
"text-text-secondary-normal text-center",
|
|
5144
5148
|
"w-10"
|
|
@@ -5147,7 +5151,7 @@ function CalendarPane({
|
|
|
5147
5151
|
},
|
|
5148
5152
|
d
|
|
5149
5153
|
)) }),
|
|
5150
|
-
/* @__PURE__ */ (0,
|
|
5154
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: (0, import_clsx35.default)("grid grid-cols-7"), children: Array.from({ length: totalCells }).map((_, i) => {
|
|
5151
5155
|
const day = i - emptyCells + 1;
|
|
5152
5156
|
const date = month.date.with({ day: 1 }).add({
|
|
5153
5157
|
days: i - emptyCells
|
|
@@ -5161,7 +5165,7 @@ function CalendarPane({
|
|
|
5161
5165
|
const hoverDateIsAfterPendingFrom = hoveredDate && pendingFrom && import_polyfill.Temporal.PlainDate.compare(hoveredDate, pendingFrom) >= 0;
|
|
5162
5166
|
const isRangeStart = mode === "single" && disableRange ? false : !pendingFrom && isInMonth && fromDate && date.equals(fromDate) || hoverDateIsAfterPendingFrom && date.equals(pendingFrom);
|
|
5163
5167
|
const isRangeEnd = mode === "single" && disableRange ? false : !pendingFrom && isInMonth && toDate && date.equals(toDate) || hoverDateIsBeforePendingFrom && date.equals(pendingFrom);
|
|
5164
|
-
return /* @__PURE__ */ (0,
|
|
5168
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5165
5169
|
DateCell,
|
|
5166
5170
|
{
|
|
5167
5171
|
id: id ? `${id}-date-${date.toString()}` : void 0,
|
|
@@ -5186,10 +5190,10 @@ function CalendarPane({
|
|
|
5186
5190
|
]
|
|
5187
5191
|
}
|
|
5188
5192
|
),
|
|
5189
|
-
mode === "double" && idx === 0 && /* @__PURE__ */ (0,
|
|
5193
|
+
mode === "double" && idx === 0 && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5190
5194
|
"div",
|
|
5191
5195
|
{
|
|
5192
|
-
className: (0,
|
|
5196
|
+
className: (0, import_clsx35.default)(
|
|
5193
5197
|
"self-stretch bg-border-primary-normal rounded-base",
|
|
5194
5198
|
// 1px width, full height, matches Figma divider
|
|
5195
5199
|
"w-px"
|
|
@@ -5200,7 +5204,7 @@ function CalendarPane({
|
|
|
5200
5204
|
}
|
|
5201
5205
|
|
|
5202
5206
|
// src/components/DateInput.tsx
|
|
5203
|
-
var
|
|
5207
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
5204
5208
|
var DateInput = (_a) => {
|
|
5205
5209
|
var _b = _a, {
|
|
5206
5210
|
id,
|
|
@@ -5359,8 +5363,8 @@ var DateInput = (_a) => {
|
|
|
5359
5363
|
}
|
|
5360
5364
|
}
|
|
5361
5365
|
};
|
|
5362
|
-
return /* @__PURE__ */ (0,
|
|
5363
|
-
/* @__PURE__ */ (0,
|
|
5366
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "relative", children: [
|
|
5367
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
5364
5368
|
InputBase,
|
|
5365
5369
|
__spreadProps(__spreadValues({
|
|
5366
5370
|
id,
|
|
@@ -5374,7 +5378,7 @@ var DateInput = (_a) => {
|
|
|
5374
5378
|
placeholder,
|
|
5375
5379
|
disabled,
|
|
5376
5380
|
readOnly,
|
|
5377
|
-
after: /* @__PURE__ */ (0,
|
|
5381
|
+
after: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Icon, { name: "calendar_month" }),
|
|
5378
5382
|
onFocus: handleFocus,
|
|
5379
5383
|
onClick: handleClick,
|
|
5380
5384
|
onChange: handleInputChange,
|
|
@@ -5385,7 +5389,7 @@ var DateInput = (_a) => {
|
|
|
5385
5389
|
})
|
|
5386
5390
|
),
|
|
5387
5391
|
visible && !readOnly && (0, import_react_dom4.createPortal)(
|
|
5388
|
-
/* @__PURE__ */ (0,
|
|
5392
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
5389
5393
|
"div",
|
|
5390
5394
|
{
|
|
5391
5395
|
ref: (el) => {
|
|
@@ -5397,7 +5401,7 @@ var DateInput = (_a) => {
|
|
|
5397
5401
|
left: `${calendarPosition.left}px`,
|
|
5398
5402
|
minWidth: `${calendarPosition.width}px`
|
|
5399
5403
|
},
|
|
5400
|
-
children: /* @__PURE__ */ (0,
|
|
5404
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
5401
5405
|
CalendarRange,
|
|
5402
5406
|
{
|
|
5403
5407
|
id: id ? `${id}-calendar` : void 0,
|
|
@@ -841,6 +841,9 @@
|
|
|
841
841
|
.\!w-20 {
|
|
842
842
|
width: calc(var(--spacing) * 20) !important;
|
|
843
843
|
}
|
|
844
|
+
.w-2\/3 {
|
|
845
|
+
width: calc(2/3 * 100%);
|
|
846
|
+
}
|
|
844
847
|
.w-3 {
|
|
845
848
|
width: calc(var(--spacing) * 3);
|
|
846
849
|
}
|
|
@@ -961,6 +964,9 @@
|
|
|
961
964
|
.grow-0 {
|
|
962
965
|
flex-grow: 0;
|
|
963
966
|
}
|
|
967
|
+
.border-collapse {
|
|
968
|
+
border-collapse: collapse;
|
|
969
|
+
}
|
|
964
970
|
.translate-x-0 {
|
|
965
971
|
--tw-translate-x: calc(var(--spacing) * 0);
|
|
966
972
|
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
@@ -2035,6 +2041,9 @@
|
|
|
2035
2041
|
.text-right {
|
|
2036
2042
|
text-align: right;
|
|
2037
2043
|
}
|
|
2044
|
+
.align-middle {
|
|
2045
|
+
vertical-align: middle;
|
|
2046
|
+
}
|
|
2038
2047
|
.font-sans {
|
|
2039
2048
|
font-family: var(--font-sans);
|
|
2040
2049
|
}
|
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CalendarRange
|
|
3
3
|
} from "../chunk-UOHCOOC2.js";
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-M7INAUAJ.js";
|
|
4
|
+
import "../chunk-BK7SPR6Y.js";
|
|
6
5
|
import "../chunk-6I5LZ2ZC.js";
|
|
6
|
+
import "../chunk-M7INAUAJ.js";
|
|
7
7
|
import "../chunk-44TDIHUP.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-ZHZIIVJN.js";
|
|
9
|
+
import "../chunk-2IKT6IHB.js";
|
|
9
10
|
import "../chunk-G5DEC7H3.js";
|
|
10
11
|
import "../chunk-3X3Y4TMS.js";
|
|
11
12
|
import "../chunk-BQNPOGD5.js";
|
|
12
13
|
import "../chunk-MBZ55T2D.js";
|
|
13
|
-
import "../chunk-2IKT6IHB.js";
|
|
14
14
|
import "../chunk-AA6GE3TH.js";
|
|
15
15
|
import "../chunk-KZZKQLKF.js";
|
|
16
16
|
import "../chunk-5IFPG6TS.js";
|
|
17
17
|
import "../chunk-AJ5M6MVX.js";
|
|
18
18
|
import "../chunk-M6TSTDNZ.js";
|
|
19
|
+
import "../chunk-EWGHVZL5.js";
|
|
19
20
|
import "../chunk-QQ5G773N.js";
|
|
20
21
|
import "../chunk-AT4AWD6B.js";
|
|
21
|
-
import "../chunk-EWGHVZL5.js";
|
|
22
22
|
import "../chunk-J5V2JRIK.js";
|
|
23
|
+
import "../chunk-7ULLUUVJ.js";
|
|
23
24
|
import "../chunk-D6YCMQPO.js";
|
|
24
25
|
import "../chunk-4RJKB7LC.js";
|
|
25
26
|
import "../chunk-XM7IQHBU.js";
|