@dmsi/wedgekit-react 0.0.850 → 0.0.851
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-SZ47M32R.js +13 -0
- package/dist/components/CalendarRange.cjs +29 -25
- package/dist/components/CalendarRange.css +17 -0
- package/dist/components/CalendarRange.js +5 -4
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +6 -2
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.css +17 -0
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +5 -4
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +13 -9
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.css +17 -0
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +5 -4
- package/dist/components/DataGrid/PinnedColumns.cjs +24 -20
- package/dist/components/DataGrid/PinnedColumns.css +17 -0
- package/dist/components/DataGrid/PinnedColumns.js +5 -4
- package/dist/components/DataGrid/TableBody/LoadingCell.cjs +9 -5
- package/dist/components/DataGrid/TableBody/LoadingCell.css +17 -0
- package/dist/components/DataGrid/TableBody/LoadingCell.js +5 -4
- package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +11 -7
- package/dist/components/DataGrid/TableBody/TableBodyRow.css +17 -0
- package/dist/components/DataGrid/TableBody/TableBodyRow.js +5 -4
- package/dist/components/DataGrid/TableBody/index.cjs +24 -20
- package/dist/components/DataGrid/TableBody/index.css +17 -0
- package/dist/components/DataGrid/TableBody/index.js +5 -4
- package/dist/components/DataGrid/index.cjs +84 -80
- package/dist/components/DataGrid/index.css +17 -0
- package/dist/components/DataGrid/index.js +5 -4
- package/dist/components/DataGrid/utils.cjs +7 -3
- package/dist/components/DataGrid/utils.css +17 -0
- package/dist/components/DataGrid/utils.js +5 -4
- package/dist/components/DateInput.cjs +35 -31
- package/dist/components/DateInput.css +17 -0
- package/dist/components/DateInput.js +5 -4
- package/dist/components/DateRangeInput.cjs +35 -31
- package/dist/components/DateRangeInput.css +17 -0
- package/dist/components/DateRangeInput.js +5 -4
- package/dist/components/EmblaCarousel/index.cjs +47 -0
- package/dist/components/EmblaCarousel/index.js +9 -0
- package/dist/components/MobileDataGrid/ColumnList.css +17 -0
- package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +12 -8
- package/dist/components/MobileDataGrid/ColumnSelector/index.css +17 -0
- package/dist/components/MobileDataGrid/ColumnSelector/index.js +5 -4
- package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +20 -16
- package/dist/components/MobileDataGrid/MobileDataGridHeader.css +17 -0
- package/dist/components/MobileDataGrid/MobileDataGridHeader.js +5 -4
- package/dist/components/MobileDataGrid/index.cjs +93 -89
- package/dist/components/MobileDataGrid/index.css +17 -0
- package/dist/components/MobileDataGrid/index.js +5 -4
- package/dist/components/ProductImagePreview/index.js +2 -2
- package/dist/components/index.cjs +10 -0
- package/dist/components/index.css +17 -0
- package/dist/components/index.js +8 -4
- package/dist/index.css +17 -0
- package/package.json +3 -1
- package/dist/{chunk-GQDUOL5Y.js → chunk-C5DKGJ4E.js} +3 -3
- /package/dist/{chunk-UIF3AIAT.js → chunk-ILHEM6BK.js} +0 -0
|
@@ -4902,6 +4902,10 @@ var import_clsx37 = __toESM(require("clsx"), 1);
|
|
|
4902
4902
|
var import_react35 = require("react");
|
|
4903
4903
|
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
4904
4904
|
|
|
4905
|
+
// src/components/EmblaCarousel/index.tsx
|
|
4906
|
+
var import_embla_carousel_react = __toESM(require("embla-carousel-react"), 1);
|
|
4907
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
4908
|
+
|
|
4905
4909
|
// src/components/DataGrid/index.tsx
|
|
4906
4910
|
var import_react40 = __toESM(require("react"), 1);
|
|
4907
4911
|
var import_react_table3 = require("@tanstack/react-table");
|
|
@@ -4917,16 +4921,16 @@ var import_clsx41 = __toESM(require("clsx"), 1);
|
|
|
4917
4921
|
|
|
4918
4922
|
// src/components/DataGrid/utils.tsx
|
|
4919
4923
|
var import_clsx38 = __toESM(require("clsx"), 1);
|
|
4920
|
-
var
|
|
4924
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
4921
4925
|
function getSortIcon(sort, nextSort = false) {
|
|
4922
4926
|
const iconClassName = (0, import_clsx38.default)(
|
|
4923
4927
|
"text-icon-on-action-primary-normal",
|
|
4924
4928
|
nextSort && "hidden group-hover:block"
|
|
4925
4929
|
);
|
|
4926
4930
|
if (sort === "asc")
|
|
4927
|
-
return /* @__PURE__ */ (0,
|
|
4931
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Icon, { size: 16, className: iconClassName, name: "arrow_upward" });
|
|
4928
4932
|
if (sort === "desc")
|
|
4929
|
-
return /* @__PURE__ */ (0,
|
|
4933
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Icon, { size: 16, className: iconClassName, name: "arrow_downward" });
|
|
4930
4934
|
return null;
|
|
4931
4935
|
}
|
|
4932
4936
|
|
|
@@ -4941,7 +4945,7 @@ var import_clsx40 = __toESM(require("clsx"), 1);
|
|
|
4941
4945
|
var import_clsx39 = __toESM(require("clsx"), 1);
|
|
4942
4946
|
var import_react_table = require("@tanstack/react-table");
|
|
4943
4947
|
var import_react36 = __toESM(require("react"), 1);
|
|
4944
|
-
var
|
|
4948
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
4945
4949
|
var valueFormatters = {
|
|
4946
4950
|
date: (value) => typeof value === "string" ? formatDate(value) : "",
|
|
4947
4951
|
currency: (value) => formatCurrencyDisplay(value)
|
|
@@ -4978,7 +4982,7 @@ function TableBodyRow({
|
|
|
4978
4982
|
const isError = typeof row.original === "object" && row.original !== null && "rowState" in row.original && row.original.rowState === "error";
|
|
4979
4983
|
const CellElement = locked ? DataGridCell : DragAlongCell;
|
|
4980
4984
|
const isHovered = hoveredRowId === row.id;
|
|
4981
|
-
return /* @__PURE__ */ (0,
|
|
4985
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
|
4982
4986
|
"tr",
|
|
4983
4987
|
{
|
|
4984
4988
|
className: (0, import_clsx39.default)(
|
|
@@ -5002,7 +5006,7 @@ function TableBodyRow({
|
|
|
5002
5006
|
children: [
|
|
5003
5007
|
!locked && virtualPaddingLeft ? (
|
|
5004
5008
|
// fake empty column to the left for virtualization scroll padding
|
|
5005
|
-
/* @__PURE__ */ (0,
|
|
5009
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("td", { style: { display: "flex", width: virtualPaddingLeft } })
|
|
5006
5010
|
) : null,
|
|
5007
5011
|
columns.map((column) => {
|
|
5008
5012
|
var _a2, _b, _c, _d;
|
|
@@ -5013,7 +5017,7 @@ function TableBodyRow({
|
|
|
5013
5017
|
const cellFormat = (_a2 = cell.column.columnDef.meta) == null ? void 0 : _a2.format;
|
|
5014
5018
|
const cellValue = cellFormat && isValueFormatterKey(cellFormat) ? valueFormatters[cellFormat](cell.getValue()) : cell.getValue();
|
|
5015
5019
|
const cellAlignment = (_c = (_b = cell.column.columnDef.meta) == null ? void 0 : _b.align) != null ? _c : typeof cellValue === "number" ? "right" : "left";
|
|
5016
|
-
return ((_d = cell.column.columnDef.meta) == null ? void 0 : _d.useCustomRenderer) ? /* @__PURE__ */ (0,
|
|
5020
|
+
return ((_d = cell.column.columnDef.meta) == null ? void 0 : _d.useCustomRenderer) ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_react36.default.Fragment, { children: (0, import_react_table.flexRender)(cell.column.columnDef.cell, cell.getContext()) }, cell.id) : /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
5017
5021
|
CellElement,
|
|
5018
5022
|
{
|
|
5019
5023
|
id: id ? `${id}-row-${row.id}-cell-${cell.id}` : void 0,
|
|
@@ -5023,7 +5027,7 @@ function TableBodyRow({
|
|
|
5023
5027
|
"justify-start": cellAlignment === "left",
|
|
5024
5028
|
"justify-end": cellAlignment === "right"
|
|
5025
5029
|
}),
|
|
5026
|
-
children: /* @__PURE__ */ (0,
|
|
5030
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
5027
5031
|
Tooltip,
|
|
5028
5032
|
{
|
|
5029
5033
|
id: id ? `${id}-tooltip-${cell.id}` : void 0,
|
|
@@ -5031,7 +5035,7 @@ function TableBodyRow({
|
|
|
5031
5035
|
showOnTruncation: true,
|
|
5032
5036
|
message: cellValue,
|
|
5033
5037
|
position: "bottom",
|
|
5034
|
-
children: /* @__PURE__ */ (0,
|
|
5038
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Paragraph, { addOverflow: true, tall: true, children: cellValue })
|
|
5035
5039
|
}
|
|
5036
5040
|
)
|
|
5037
5041
|
},
|
|
@@ -5040,7 +5044,7 @@ function TableBodyRow({
|
|
|
5040
5044
|
}),
|
|
5041
5045
|
!locked && virtualPaddingRight ? (
|
|
5042
5046
|
// fake empty column to the right for virtualization scroll padding
|
|
5043
|
-
/* @__PURE__ */ (0,
|
|
5047
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("td", { style: { display: "flex", width: virtualPaddingRight } })
|
|
5044
5048
|
) : null
|
|
5045
5049
|
]
|
|
5046
5050
|
},
|
|
@@ -5049,7 +5053,7 @@ function TableBodyRow({
|
|
|
5049
5053
|
}
|
|
5050
5054
|
|
|
5051
5055
|
// src/components/DataGrid/TableBody/LoadingCell.tsx
|
|
5052
|
-
var
|
|
5056
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
5053
5057
|
function LoadingCell({
|
|
5054
5058
|
id,
|
|
5055
5059
|
testid,
|
|
@@ -5057,16 +5061,16 @@ function LoadingCell({
|
|
|
5057
5061
|
}) {
|
|
5058
5062
|
const key = `loading-${column.id}`;
|
|
5059
5063
|
if (column.cell === "checkbox") {
|
|
5060
|
-
return /* @__PURE__ */ (0,
|
|
5064
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(DataGridCell, { id: id ? `${id}-${key}` : void 0, testid: testid ? `${testid}-${key}` : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Checkbox, { id: id ? `${id}-${key}-checkbox` : void 0, testid: testid ? `${testid}-${key}-checkbox` : void 0, disabled: true }) }, key);
|
|
5061
5065
|
}
|
|
5062
5066
|
if (column.cell === "input") {
|
|
5063
|
-
return /* @__PURE__ */ (0,
|
|
5067
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
5064
5068
|
DataGridCell,
|
|
5065
5069
|
{
|
|
5066
5070
|
id: id ? `${id}-${key}` : void 0,
|
|
5067
5071
|
testid: testid ? `${testid}-${key}` : void 0,
|
|
5068
5072
|
component: "input",
|
|
5069
|
-
children: /* @__PURE__ */ (0,
|
|
5073
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
5070
5074
|
Input,
|
|
5071
5075
|
{
|
|
5072
5076
|
id: id ? `${id}-${key}-input` : void 0,
|
|
@@ -5080,11 +5084,11 @@ function LoadingCell({
|
|
|
5080
5084
|
key
|
|
5081
5085
|
);
|
|
5082
5086
|
}
|
|
5083
|
-
return /* @__PURE__ */ (0,
|
|
5087
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(DataGridCell, { id: id ? `${id}-${key}` : void 0, testid: testid ? `${testid}-${key}` : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "bg-linear-270 to-neutral-300/[24%] from-neutral-300/[12%] rounded-xs w-full max-w-25 h-6" }) }, key);
|
|
5084
5088
|
}
|
|
5085
5089
|
|
|
5086
5090
|
// src/components/DataGrid/TableBody/index.tsx
|
|
5087
|
-
var
|
|
5091
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
5088
5092
|
function TableBody({
|
|
5089
5093
|
id,
|
|
5090
5094
|
testid,
|
|
@@ -5122,7 +5126,7 @@ function TableBody({
|
|
|
5122
5126
|
} else {
|
|
5123
5127
|
headerGroups = table.getCenterHeaderGroups();
|
|
5124
5128
|
}
|
|
5125
|
-
return /* @__PURE__ */ (0,
|
|
5129
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
|
|
5126
5130
|
"tbody",
|
|
5127
5131
|
{
|
|
5128
5132
|
className: (0, import_clsx40.default)(locked ? "shadow-16" : ""),
|
|
@@ -5134,7 +5138,7 @@ function TableBody({
|
|
|
5134
5138
|
// needed for absolute positioning of rows
|
|
5135
5139
|
},
|
|
5136
5140
|
children: [
|
|
5137
|
-
showFilterRow && /* @__PURE__ */ (0,
|
|
5141
|
+
showFilterRow && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
5138
5142
|
"tr",
|
|
5139
5143
|
{
|
|
5140
5144
|
style: {
|
|
@@ -5150,7 +5154,7 @@ function TableBody({
|
|
|
5150
5154
|
children: headerGroups.flatMap(
|
|
5151
5155
|
(x) => x.headers.map((header) => {
|
|
5152
5156
|
var _a, _b, _c, _d, _e;
|
|
5153
|
-
return /* @__PURE__ */ (0,
|
|
5157
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
5154
5158
|
CellElement,
|
|
5155
5159
|
{
|
|
5156
5160
|
id: id ? `${id}-filter-cell-${header.id}` : void 0,
|
|
@@ -5161,7 +5165,7 @@ function TableBody({
|
|
|
5161
5165
|
children: header.column.getCanFilter() && ((_e = (_c = (_b = header.column.columnDef.meta) == null ? void 0 : _b.filterRowCell) == null ? void 0 : _c.call(_b, {
|
|
5162
5166
|
header,
|
|
5163
5167
|
table
|
|
5164
|
-
})) != null ? _e : /* @__PURE__ */ (0,
|
|
5168
|
+
})) != null ? _e : /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
5165
5169
|
Search,
|
|
5166
5170
|
{
|
|
5167
5171
|
id: id ? `${id}-filter-search-${header.id}` : void 0,
|
|
@@ -5182,7 +5186,7 @@ function TableBody({
|
|
|
5182
5186
|
),
|
|
5183
5187
|
virtualRows.map((virtualRow) => {
|
|
5184
5188
|
const row = rows[virtualRow.index];
|
|
5185
|
-
return /* @__PURE__ */ (0,
|
|
5189
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
5186
5190
|
TableBodyRow,
|
|
5187
5191
|
{
|
|
5188
5192
|
id,
|
|
@@ -5204,7 +5208,7 @@ function TableBody({
|
|
|
5204
5208
|
row.id
|
|
5205
5209
|
);
|
|
5206
5210
|
}),
|
|
5207
|
-
!pagination && isLoadingMore && hasMore && /* @__PURE__ */ (0,
|
|
5211
|
+
!pagination && isLoadingMore && hasMore && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
5208
5212
|
"tr",
|
|
5209
5213
|
{
|
|
5210
5214
|
style: {
|
|
@@ -5214,7 +5218,7 @@ function TableBody({
|
|
|
5214
5218
|
transform: `translateY(${virtualRows[virtualRows.length - 1].start + 40}px)`
|
|
5215
5219
|
},
|
|
5216
5220
|
className: "odd:bg-background-grouped-primary-normal even:bg-background-grouped-secondary-normal",
|
|
5217
|
-
children: table.getAllLeafColumns().map((column) => /* @__PURE__ */ (0,
|
|
5221
|
+
children: table.getAllLeafColumns().map((column) => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
5218
5222
|
LoadingCell,
|
|
5219
5223
|
{
|
|
5220
5224
|
id,
|
|
@@ -5235,7 +5239,7 @@ var import_react38 = require("react");
|
|
|
5235
5239
|
|
|
5236
5240
|
// src/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.tsx
|
|
5237
5241
|
var import_react37 = require("react");
|
|
5238
|
-
var
|
|
5242
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
5239
5243
|
function ColumnSelectorMenuOption({
|
|
5240
5244
|
id,
|
|
5241
5245
|
testid,
|
|
@@ -5244,7 +5248,7 @@ function ColumnSelectorMenuOption({
|
|
|
5244
5248
|
}) {
|
|
5245
5249
|
const [isVisible, setIsVisible] = (0, import_react37.useState)(column.getIsVisible());
|
|
5246
5250
|
const label = typeof column.columnDef.header === "string" ? column.columnDef.header : null;
|
|
5247
|
-
return /* @__PURE__ */ (0,
|
|
5251
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(MenuOption, { id, testid, defaultChecked: isVisible, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
5248
5252
|
Checkbox,
|
|
5249
5253
|
{
|
|
5250
5254
|
id: id ? `${id}-checkbox` : void 0,
|
|
@@ -5260,7 +5264,7 @@ function ColumnSelectorMenuOption({
|
|
|
5260
5264
|
}
|
|
5261
5265
|
|
|
5262
5266
|
// src/components/DataGrid/ColumnSelectorHeaderCell/index.tsx
|
|
5263
|
-
var
|
|
5267
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
5264
5268
|
function ColumnSelectorHeaderCell({
|
|
5265
5269
|
id,
|
|
5266
5270
|
testid,
|
|
@@ -5270,7 +5274,7 @@ function ColumnSelectorHeaderCell({
|
|
|
5270
5274
|
}) {
|
|
5271
5275
|
const ref = (0, import_react38.useRef)(null);
|
|
5272
5276
|
const [show, setShow] = (0, import_react38.useState)(false);
|
|
5273
|
-
return /* @__PURE__ */ (0,
|
|
5277
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
|
|
5274
5278
|
DataGridCell,
|
|
5275
5279
|
{
|
|
5276
5280
|
id,
|
|
@@ -5280,7 +5284,7 @@ function ColumnSelectorHeaderCell({
|
|
|
5280
5284
|
color: "text-secondary-normal",
|
|
5281
5285
|
ref,
|
|
5282
5286
|
children: [
|
|
5283
|
-
/* @__PURE__ */ (0,
|
|
5287
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
5284
5288
|
Button,
|
|
5285
5289
|
{
|
|
5286
5290
|
id: id ? `${id}-button` : void 0,
|
|
@@ -5288,10 +5292,10 @@ function ColumnSelectorHeaderCell({
|
|
|
5288
5292
|
onClick: () => setShow((prev) => !prev),
|
|
5289
5293
|
variant: "navigation",
|
|
5290
5294
|
iconOnly: true,
|
|
5291
|
-
leftIcon: /* @__PURE__ */ (0,
|
|
5295
|
+
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Icon, { name: "tune" })
|
|
5292
5296
|
}
|
|
5293
5297
|
),
|
|
5294
|
-
/* @__PURE__ */ (0,
|
|
5298
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
|
|
5295
5299
|
Menu,
|
|
5296
5300
|
{
|
|
5297
5301
|
id: id ? `${id}-menu` : void 0,
|
|
@@ -5302,7 +5306,7 @@ function ColumnSelectorHeaderCell({
|
|
|
5302
5306
|
setShow,
|
|
5303
5307
|
calculateMinMaxHeight: true,
|
|
5304
5308
|
children: [
|
|
5305
|
-
/* @__PURE__ */ (0,
|
|
5309
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
5306
5310
|
Button,
|
|
5307
5311
|
{
|
|
5308
5312
|
id: id ? `${id}-reset-button` : void 0,
|
|
@@ -5318,7 +5322,7 @@ function ColumnSelectorHeaderCell({
|
|
|
5318
5322
|
table.getAllColumns().filter((x) => {
|
|
5319
5323
|
var _a;
|
|
5320
5324
|
return (_a = x.columnDef.meta) == null ? void 0 : _a.inVisibilityMenu;
|
|
5321
|
-
}).map((column) => /* @__PURE__ */ (0,
|
|
5325
|
+
}).map((column) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
5322
5326
|
ColumnSelectorMenuOption,
|
|
5323
5327
|
{
|
|
5324
5328
|
id: id ? `${id}-option-${column.id}` : void 0,
|
|
@@ -5337,7 +5341,7 @@ function ColumnSelectorHeaderCell({
|
|
|
5337
5341
|
}
|
|
5338
5342
|
|
|
5339
5343
|
// src/components/DataGrid/PinnedColumns.tsx
|
|
5340
|
-
var
|
|
5344
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
5341
5345
|
function PinnedColumns(_a) {
|
|
5342
5346
|
var _b = _a, {
|
|
5343
5347
|
id,
|
|
@@ -5369,7 +5373,7 @@ function PinnedColumns(_a) {
|
|
|
5369
5373
|
const pinnedTestId = testid ? `${pinDirection}-pinned-${testid}` : void 0;
|
|
5370
5374
|
const hasAnyHeaders = ((_a2 = headerGroups[0]) == null ? void 0 : _a2.headers.length) > 0;
|
|
5371
5375
|
if (!hasAnyHeaders && !enableColumnSelector) return;
|
|
5372
|
-
return /* @__PURE__ */ (0,
|
|
5376
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
|
|
5373
5377
|
"table",
|
|
5374
5378
|
{
|
|
5375
5379
|
className: (0, import_clsx41.default)(
|
|
@@ -5378,8 +5382,8 @@ function PinnedColumns(_a) {
|
|
|
5378
5382
|
),
|
|
5379
5383
|
"data-testid": pinnedTestId,
|
|
5380
5384
|
children: [
|
|
5381
|
-
/* @__PURE__ */ (0,
|
|
5382
|
-
return /* @__PURE__ */ (0,
|
|
5385
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("thead", { className: "sticky top-0 z-20 grid", children: headerGroups.map((headerGroup) => {
|
|
5386
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
|
|
5383
5387
|
"tr",
|
|
5384
5388
|
{
|
|
5385
5389
|
"data-testid": pinnedTestId ? `${pinnedTestId}-header-row-${headerGroup.id}` : void 0,
|
|
@@ -5394,7 +5398,7 @@ function PinnedColumns(_a) {
|
|
|
5394
5398
|
const cellAlignment = (_c = (_b2 = header.column.columnDef.meta) == null ? void 0 : _b2.align) != null ? _c : typeof cellValue === "number" ? "right" : "left";
|
|
5395
5399
|
if (typeof header.column.columnDef.header === "string") {
|
|
5396
5400
|
const customHeaderWidth = (_d = header.column.columnDef.meta) == null ? void 0 : _d.headerWidth;
|
|
5397
|
-
return /* @__PURE__ */ (0,
|
|
5401
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
|
|
5398
5402
|
DataCellHeader,
|
|
5399
5403
|
{
|
|
5400
5404
|
locked: true,
|
|
@@ -5411,11 +5415,11 @@ function PinnedColumns(_a) {
|
|
|
5411
5415
|
}
|
|
5412
5416
|
),
|
|
5413
5417
|
children: [
|
|
5414
|
-
/* @__PURE__ */ (0,
|
|
5418
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Subheader, { tall: true, children: header.column.columnDef.header }),
|
|
5415
5419
|
getSortIcon(header.column.getIsSorted()),
|
|
5416
5420
|
!header.column.getIsSorted() && header.column.getCanSort() && getSortIcon(header.column.getNextSortingOrder(), true),
|
|
5417
|
-
header.column.getSortIndex() !== -1 && table.getState().sorting.length > 1 && /* @__PURE__ */ (0,
|
|
5418
|
-
!((_e = header.column.columnDef.meta) == null ? void 0 : _e.locked) && /* @__PURE__ */ (0,
|
|
5421
|
+
header.column.getSortIndex() !== -1 && table.getState().sorting.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Subheader, { tall: true, children: header.column.getSortIndex() + 1 }),
|
|
5422
|
+
!((_e = header.column.columnDef.meta) == null ? void 0 : _e.locked) && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
5419
5423
|
"div",
|
|
5420
5424
|
{
|
|
5421
5425
|
onDoubleClick: (e) => {
|
|
@@ -5438,7 +5442,7 @@ function PinnedColumns(_a) {
|
|
|
5438
5442
|
header.id
|
|
5439
5443
|
);
|
|
5440
5444
|
}
|
|
5441
|
-
return /* @__PURE__ */ (0,
|
|
5445
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react39.default.Fragment, { children: ((_f = header.column.columnDef.meta) == null ? void 0 : _f.checkbox) ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(DataGridCell, { type: "header", component: "checkbox", locked: true, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
5442
5446
|
Checkbox,
|
|
5443
5447
|
{
|
|
5444
5448
|
checked: allSelectedAcrossPages,
|
|
@@ -5450,7 +5454,7 @@ function PinnedColumns(_a) {
|
|
|
5450
5454
|
header.getContext()
|
|
5451
5455
|
) }, header.id);
|
|
5452
5456
|
}),
|
|
5453
|
-
enableColumnSelector && /* @__PURE__ */ (0,
|
|
5457
|
+
enableColumnSelector && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
5454
5458
|
ColumnSelectorHeaderCell,
|
|
5455
5459
|
{
|
|
5456
5460
|
id: id ? `${id}-column-selector` : void 0,
|
|
@@ -5467,7 +5471,7 @@ function PinnedColumns(_a) {
|
|
|
5467
5471
|
headerGroup.id
|
|
5468
5472
|
);
|
|
5469
5473
|
}) }),
|
|
5470
|
-
/* @__PURE__ */ (0,
|
|
5474
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
5471
5475
|
TableBody,
|
|
5472
5476
|
__spreadProps(__spreadValues({
|
|
5473
5477
|
testid: pinnedTestId
|
|
@@ -5485,7 +5489,7 @@ function PinnedColumns(_a) {
|
|
|
5485
5489
|
}
|
|
5486
5490
|
|
|
5487
5491
|
// src/components/DataGrid/index.tsx
|
|
5488
|
-
var
|
|
5492
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
5489
5493
|
var PAGE_SIZE_OPTIONS = [5, 10, 15, 20, 25, 30, 35];
|
|
5490
5494
|
var NO_RESULTS_HEIGHT = "h-[185px]";
|
|
5491
5495
|
function DataGrid({
|
|
@@ -5737,7 +5741,7 @@ function DataGrid({
|
|
|
5737
5741
|
virtualPaddingRight = columnVirtualizer.getTotalSize() - ((_e = (_d = virtualColumns[virtualColumns.length - 1]) == null ? void 0 : _d.end) != null ? _e : 0);
|
|
5738
5742
|
}
|
|
5739
5743
|
const empty = table.getRowModel().rows.length === 0;
|
|
5740
|
-
return /* @__PURE__ */ (0,
|
|
5744
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5741
5745
|
import_core.DndContext,
|
|
5742
5746
|
{
|
|
5743
5747
|
id: dndId,
|
|
@@ -5745,19 +5749,19 @@ function DataGrid({
|
|
|
5745
5749
|
modifiers: [import_modifiers.restrictToHorizontalAxis],
|
|
5746
5750
|
onDragEnd: handleDragEnd,
|
|
5747
5751
|
sensors,
|
|
5748
|
-
children: /* @__PURE__ */ (0,
|
|
5752
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5749
5753
|
import_sortable2.SortableContext,
|
|
5750
5754
|
{
|
|
5751
5755
|
items: columnOrder,
|
|
5752
5756
|
strategy: import_sortable2.horizontalListSortingStrategy,
|
|
5753
|
-
children: /* @__PURE__ */ (0,
|
|
5757
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
5754
5758
|
"div",
|
|
5755
5759
|
{
|
|
5756
5760
|
id,
|
|
5757
5761
|
"data-testid": testid,
|
|
5758
5762
|
className: "flex flex-col grow-0 h-fit w-full rounded border border-border-primary-normal overflow-hidden text-text-primary-normal",
|
|
5759
5763
|
children: [
|
|
5760
|
-
/* @__PURE__ */ (0,
|
|
5764
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
5761
5765
|
"div",
|
|
5762
5766
|
{
|
|
5763
5767
|
className: (0, import_clsx42.default)(
|
|
@@ -5766,7 +5770,7 @@ function DataGrid({
|
|
|
5766
5770
|
),
|
|
5767
5771
|
ref: containerRef,
|
|
5768
5772
|
children: [
|
|
5769
|
-
/* @__PURE__ */ (0,
|
|
5773
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5770
5774
|
PinnedColumns,
|
|
5771
5775
|
{
|
|
5772
5776
|
testid,
|
|
@@ -5781,8 +5785,8 @@ function DataGrid({
|
|
|
5781
5785
|
setHoveredRowId
|
|
5782
5786
|
}
|
|
5783
5787
|
),
|
|
5784
|
-
/* @__PURE__ */ (0,
|
|
5785
|
-
/* @__PURE__ */ (0,
|
|
5788
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("table", { className: "flex-1 flex flex-col min-h-min", children: [
|
|
5789
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("thead", { className: "sticky top-0 z-10 grid", children: table.getCenterHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
5786
5790
|
"tr",
|
|
5787
5791
|
{
|
|
5788
5792
|
"data-testid": testid ? `${testid}-header-row-${headerGroup.id}` : void 0,
|
|
@@ -5790,7 +5794,7 @@ function DataGrid({
|
|
|
5790
5794
|
children: [
|
|
5791
5795
|
virtualPaddingLeft ? (
|
|
5792
5796
|
// fake empty column to the left for virtualization scroll padding
|
|
5793
|
-
/* @__PURE__ */ (0,
|
|
5797
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5794
5798
|
"th",
|
|
5795
5799
|
{
|
|
5796
5800
|
style: { display: "flex", width: virtualPaddingLeft }
|
|
@@ -5806,7 +5810,7 @@ function DataGrid({
|
|
|
5806
5810
|
if (typeof header.column.columnDef.header === "string") {
|
|
5807
5811
|
const cellValue = (_a2 = table.getRowModel().rows[0]) == null ? void 0 : _a2.getValue(header.column.id);
|
|
5808
5812
|
const cellAlignment = (_c2 = (_b2 = header.column.columnDef.meta) == null ? void 0 : _b2.align) != null ? _c2 : typeof cellValue === "number" ? "right" : "left";
|
|
5809
|
-
return /* @__PURE__ */ (0,
|
|
5813
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
5810
5814
|
DraggableCellHeader,
|
|
5811
5815
|
{
|
|
5812
5816
|
minWidth: `${header.column.getSize()}px`,
|
|
@@ -5825,15 +5829,15 @@ function DataGrid({
|
|
|
5825
5829
|
),
|
|
5826
5830
|
useMenuDefaultMinWidth,
|
|
5827
5831
|
children: [
|
|
5828
|
-
cellAlignment === "left" && /* @__PURE__ */ (0,
|
|
5832
|
+
cellAlignment === "left" && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Subheader, { tall: true, children: header.column.columnDef.header }),
|
|
5829
5833
|
getSortIcon(header.column.getIsSorted()),
|
|
5830
5834
|
!header.column.getIsSorted() && header.column.getCanSort() && getSortIcon(
|
|
5831
5835
|
header.column.getNextSortingOrder(),
|
|
5832
5836
|
true
|
|
5833
5837
|
),
|
|
5834
|
-
header.column.getSortIndex() !== -1 && table.getState().sorting.length > 1 && /* @__PURE__ */ (0,
|
|
5835
|
-
cellAlignment === "right" && /* @__PURE__ */ (0,
|
|
5836
|
-
/* @__PURE__ */ (0,
|
|
5838
|
+
header.column.getSortIndex() !== -1 && table.getState().sorting.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Subheader, { tall: true, children: header.column.getSortIndex() + 1 }),
|
|
5839
|
+
cellAlignment === "right" && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Subheader, { tall: true, children: header.column.columnDef.header }),
|
|
5840
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5837
5841
|
"div",
|
|
5838
5842
|
{
|
|
5839
5843
|
onDoubleClick: (e) => {
|
|
@@ -5856,7 +5860,7 @@ function DataGrid({
|
|
|
5856
5860
|
header.id
|
|
5857
5861
|
);
|
|
5858
5862
|
}
|
|
5859
|
-
return /* @__PURE__ */ (0,
|
|
5863
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_react40.default.Fragment, { children: ((_e2 = header.column.columnDef.meta) == null ? void 0 : _e2.checkbox) ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5860
5864
|
DataGridCell,
|
|
5861
5865
|
{
|
|
5862
5866
|
id: id ? `${id}-header-${header.id}` : void 0,
|
|
@@ -5864,7 +5868,7 @@ function DataGrid({
|
|
|
5864
5868
|
type: "header",
|
|
5865
5869
|
component: "checkbox",
|
|
5866
5870
|
locked: true,
|
|
5867
|
-
children: /* @__PURE__ */ (0,
|
|
5871
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5868
5872
|
Checkbox,
|
|
5869
5873
|
{
|
|
5870
5874
|
id: id ? `${id}-select-all-checkbox` : void 0,
|
|
@@ -5882,7 +5886,7 @@ function DataGrid({
|
|
|
5882
5886
|
}),
|
|
5883
5887
|
virtualPaddingRight ? (
|
|
5884
5888
|
//fake empty column to the right for virtualization scroll padding
|
|
5885
|
-
/* @__PURE__ */ (0,
|
|
5889
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5886
5890
|
"th",
|
|
5887
5891
|
{
|
|
5888
5892
|
style: { display: "flex", width: virtualPaddingRight }
|
|
@@ -5893,7 +5897,7 @@ function DataGrid({
|
|
|
5893
5897
|
},
|
|
5894
5898
|
headerGroup.id
|
|
5895
5899
|
)) }),
|
|
5896
|
-
/* @__PURE__ */ (0,
|
|
5900
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5897
5901
|
TableBody,
|
|
5898
5902
|
{
|
|
5899
5903
|
id,
|
|
@@ -5915,7 +5919,7 @@ function DataGrid({
|
|
|
5915
5919
|
}
|
|
5916
5920
|
)
|
|
5917
5921
|
] }),
|
|
5918
|
-
/* @__PURE__ */ (0,
|
|
5922
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5919
5923
|
PinnedColumns,
|
|
5920
5924
|
{
|
|
5921
5925
|
id,
|
|
@@ -5937,7 +5941,7 @@ function DataGrid({
|
|
|
5937
5941
|
]
|
|
5938
5942
|
}
|
|
5939
5943
|
),
|
|
5940
|
-
empty && /* @__PURE__ */ (0,
|
|
5944
|
+
empty && /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
5941
5945
|
"div",
|
|
5942
5946
|
{
|
|
5943
5947
|
className: (0, import_clsx42.default)(
|
|
@@ -5948,7 +5952,7 @@ function DataGrid({
|
|
|
5948
5952
|
),
|
|
5949
5953
|
"data-testid": testid ? `${testid}-no-results` : void 0,
|
|
5950
5954
|
children: [
|
|
5951
|
-
/* @__PURE__ */ (0,
|
|
5955
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5952
5956
|
"img",
|
|
5953
5957
|
{
|
|
5954
5958
|
src: (_g = (_f = no_results_image_default) == null ? void 0 : _f.src) != null ? _g : no_results_image_default,
|
|
@@ -5958,15 +5962,15 @@ function DataGrid({
|
|
|
5958
5962
|
height: 120
|
|
5959
5963
|
}
|
|
5960
5964
|
),
|
|
5961
|
-
/* @__PURE__ */ (0,
|
|
5962
|
-
/* @__PURE__ */ (0,
|
|
5965
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Subheader, { color: "text-secondary-normal", children: "No Results" }),
|
|
5966
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Paragraph, { color: "text-secondary-normal", children: "To view results, enter or update your search criteria." })
|
|
5963
5967
|
]
|
|
5964
5968
|
}
|
|
5965
5969
|
),
|
|
5966
|
-
!hideStatusBar && /* @__PURE__ */ (0,
|
|
5967
|
-
pagination && /* @__PURE__ */ (0,
|
|
5968
|
-
/* @__PURE__ */ (0,
|
|
5969
|
-
/* @__PURE__ */ (0,
|
|
5970
|
+
!hideStatusBar && /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "p-2 pt-[7px] border-t border-border-primary-normal h-full min-h-[34px]", children: [
|
|
5971
|
+
pagination && /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex justify-between items-center", children: [
|
|
5972
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex items-center gap-1 w-min", children: [
|
|
5973
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5970
5974
|
Select,
|
|
5971
5975
|
{
|
|
5972
5976
|
id: id ? `${id}-pagesize-select` : void 0,
|
|
@@ -5977,12 +5981,12 @@ function DataGrid({
|
|
|
5977
5981
|
var _a2;
|
|
5978
5982
|
return (_a2 = pagination.onPageSizeChange) == null ? void 0 : _a2.call(pagination, Number(e.target.value));
|
|
5979
5983
|
},
|
|
5980
|
-
renderMenu: (props) => /* @__PURE__ */ (0,
|
|
5984
|
+
renderMenu: (props) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5981
5985
|
Menu,
|
|
5982
5986
|
__spreadProps(__spreadValues({}, props), {
|
|
5983
5987
|
id: id ? `${id}-pagesize-menu` : void 0,
|
|
5984
5988
|
testid: testid ? `${testid}-pagesize-menu` : void 0,
|
|
5985
|
-
children: PAGE_SIZE_OPTIONS.map((option) => /* @__PURE__ */ (0,
|
|
5989
|
+
children: PAGE_SIZE_OPTIONS.map((option) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5986
5990
|
MenuOption,
|
|
5987
5991
|
{
|
|
5988
5992
|
id: id ? `${id}-pagesize-option-${option}` : void 0,
|
|
@@ -5999,22 +6003,22 @@ function DataGrid({
|
|
|
5999
6003
|
)
|
|
6000
6004
|
}
|
|
6001
6005
|
),
|
|
6002
|
-
/* @__PURE__ */ (0,
|
|
6006
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Label, { children: "Per Page" })
|
|
6003
6007
|
] }),
|
|
6004
|
-
/* @__PURE__ */ (0,
|
|
6005
|
-
/* @__PURE__ */ (0,
|
|
6008
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
6009
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
6006
6010
|
Button,
|
|
6007
6011
|
{
|
|
6008
6012
|
id: id ? `${id}-prev-page-button` : void 0,
|
|
6009
6013
|
testid: testid ? `${testid}-prev-page-button` : void 0,
|
|
6010
6014
|
iconOnly: true,
|
|
6011
|
-
leftIcon: /* @__PURE__ */ (0,
|
|
6015
|
+
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Icon, { name: "chevron_left" }),
|
|
6012
6016
|
onClick: () => pagination.onPageChange(pagination.pageIndex - 1),
|
|
6013
6017
|
variant: "tertiary",
|
|
6014
6018
|
disabled: pagination.pageIndex === 0
|
|
6015
6019
|
}
|
|
6016
6020
|
),
|
|
6017
|
-
/* @__PURE__ */ (0,
|
|
6021
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(Paragraph, { children: [
|
|
6018
6022
|
pagination.pageIndex * pagination.pageSize + 1,
|
|
6019
6023
|
" -",
|
|
6020
6024
|
" ",
|
|
@@ -6026,13 +6030,13 @@ function DataGrid({
|
|
|
6026
6030
|
"of ",
|
|
6027
6031
|
pagination.total
|
|
6028
6032
|
] }),
|
|
6029
|
-
/* @__PURE__ */ (0,
|
|
6033
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
6030
6034
|
Button,
|
|
6031
6035
|
{
|
|
6032
6036
|
id: id ? `${id}-next-page-button` : void 0,
|
|
6033
6037
|
testid: testid ? `${testid}-next-page-button` : void 0,
|
|
6034
6038
|
iconOnly: true,
|
|
6035
|
-
leftIcon: /* @__PURE__ */ (0,
|
|
6039
|
+
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Icon, { name: "chevron_right" }),
|
|
6036
6040
|
onClick: () => pagination.onPageChange(pagination.pageIndex + 1),
|
|
6037
6041
|
variant: "tertiary",
|
|
6038
6042
|
disabled: (pagination.pageIndex + 1) * pagination.pageSize >= pagination.total
|
|
@@ -6040,7 +6044,7 @@ function DataGrid({
|
|
|
6040
6044
|
)
|
|
6041
6045
|
] })
|
|
6042
6046
|
] }),
|
|
6043
|
-
status && /* @__PURE__ */ (0,
|
|
6047
|
+
status && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
6044
6048
|
Paragraph,
|
|
6045
6049
|
{
|
|
6046
6050
|
testid: testid ? `${testid}-status-text` : void 0,
|
|
@@ -632,6 +632,9 @@
|
|
|
632
632
|
.m-4 {
|
|
633
633
|
margin: calc(var(--spacing) * 4);
|
|
634
634
|
}
|
|
635
|
+
.m-auto {
|
|
636
|
+
margin: auto;
|
|
637
|
+
}
|
|
635
638
|
.m-mobile-container-padding {
|
|
636
639
|
margin: var(--spacing-mobile-container-padding);
|
|
637
640
|
}
|
|
@@ -1031,6 +1034,14 @@
|
|
|
1031
1034
|
.cursor-pointer {
|
|
1032
1035
|
cursor: pointer;
|
|
1033
1036
|
}
|
|
1037
|
+
.touch-pan-y {
|
|
1038
|
+
--tw-pan-y: pan-y;
|
|
1039
|
+
touch-action: var(--tw-pan-x,) var(--tw-pan-y,) var(--tw-pinch-zoom,);
|
|
1040
|
+
}
|
|
1041
|
+
.touch-pinch-zoom {
|
|
1042
|
+
--tw-pinch-zoom: pinch-zoom;
|
|
1043
|
+
touch-action: var(--tw-pan-x,) var(--tw-pan-y,) var(--tw-pinch-zoom,);
|
|
1044
|
+
}
|
|
1034
1045
|
.resize {
|
|
1035
1046
|
resize: both;
|
|
1036
1047
|
}
|
|
@@ -5254,6 +5265,9 @@ body {
|
|
|
5254
5265
|
@property --tw-rotate-z { syntax: "*"; inherits: false; }
|
|
5255
5266
|
@property --tw-skew-x { syntax: "*"; inherits: false; }
|
|
5256
5267
|
@property --tw-skew-y { syntax: "*"; inherits: false; }
|
|
5268
|
+
@property --tw-pan-x { syntax: "*"; inherits: false; }
|
|
5269
|
+
@property --tw-pan-y { syntax: "*"; inherits: false; }
|
|
5270
|
+
@property --tw-pinch-zoom { syntax: "*"; inherits: false; }
|
|
5257
5271
|
@property --tw-space-y-reverse { syntax: "*"; inherits: false; initial-value: 0; }
|
|
5258
5272
|
@property --tw-space-x-reverse { syntax: "*"; inherits: false; initial-value: 0; }
|
|
5259
5273
|
@property --tw-divide-x-reverse { syntax: "*"; inherits: false; initial-value: 0; }
|
|
@@ -5328,6 +5342,9 @@ body {
|
|
|
5328
5342
|
--tw-rotate-z: initial;
|
|
5329
5343
|
--tw-skew-x: initial;
|
|
5330
5344
|
--tw-skew-y: initial;
|
|
5345
|
+
--tw-pan-x: initial;
|
|
5346
|
+
--tw-pan-y: initial;
|
|
5347
|
+
--tw-pinch-zoom: initial;
|
|
5331
5348
|
--tw-space-y-reverse: 0;
|
|
5332
5349
|
--tw-space-x-reverse: 0;
|
|
5333
5350
|
--tw-divide-x-reverse: 0;
|