@dmsi/wedgekit-react 0.0.369 → 0.0.371
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-RLLQRVM7.js → chunk-2H35FETR.js} +18 -10
- package/dist/chunk-2IKT6IHB.js +190 -0
- package/dist/chunk-4UNWXB4A.js +89 -0
- package/dist/chunk-5IFPG6TS.js +17 -0
- package/dist/{chunk-6GAYJCFE.js → chunk-6DPFKSCT.js} +1 -1
- package/dist/{chunk-ZFOANBWG.js → chunk-AG43RS4Q.js} +2 -1
- package/dist/chunk-AJ5M6MVX.js +7 -0
- package/dist/chunk-AT4AWD6B.js +44 -0
- package/dist/chunk-BQNPOGD5.js +105 -0
- package/dist/chunk-CQFPNZTN.js +172 -0
- package/dist/chunk-EJSPFQCY.js +29 -0
- package/dist/chunk-ER6RCOH3.js +97 -0
- package/dist/{chunk-4VER5OEU.js → chunk-FBE2HGEF.js} +35 -11
- package/dist/chunk-HPQWEZJL.js +45 -0
- package/dist/{chunk-URCLLHO5.js → chunk-IBX6DVHU.js} +376 -102
- package/dist/{chunk-I3WFZOFY.js → chunk-J5V2JRIK.js} +1 -1
- package/dist/chunk-JGJUVJKD.js +283 -0
- package/dist/chunk-KEMCFN4U.js +78 -0
- package/dist/chunk-M6TSTDNZ.js +22 -0
- package/dist/chunk-M7INAUAJ.js +140 -0
- package/dist/chunk-MBZ55T2D.js +51 -0
- package/dist/chunk-N6PNLLNS.js +77 -0
- package/dist/{chunk-ZA5E7ZYM.js → chunk-NXGUDYRR.js} +1 -1
- package/dist/chunk-P36QKH26.js +143 -0
- package/dist/chunk-PTRZHGHA.js +89 -0
- package/dist/chunk-QVWYTQKL.js +29 -0
- package/dist/{chunk-6CPGOW6J.js → chunk-T36HX6QY.js} +6 -4
- package/dist/chunk-U6PUOGG4.js +114 -0
- package/dist/{chunk-NQXZBWDZ.js → chunk-V6U7LU6M.js} +15 -6
- package/dist/chunk-VJVY6NPF.js +32 -0
- package/dist/chunk-VVXPGI2P.js +61 -0
- package/dist/{chunk-ARQBSR3I.js → chunk-YCKRVNJ3.js} +4 -4
- package/dist/chunk-YYHQLQDQ.js +68 -0
- package/dist/components/Accordion.cjs +47 -14
- package/dist/components/Accordion.js +2 -2
- package/dist/components/CalendarRange.cjs +700 -46
- package/dist/components/CalendarRange.css +186 -3
- package/dist/components/CalendarRange.js +43 -11
- package/dist/components/CompactImagesPreview.cjs +485 -0
- package/dist/components/CompactImagesPreview.js +13 -0
- package/dist/components/ContentTabs.cjs +3 -2
- package/dist/components/ContentTabs.js +3 -2
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +4687 -0
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.css +5051 -0
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +62 -0
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +4687 -0
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.css +5051 -0
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +62 -0
- package/dist/components/DataGrid/PinnedColumns.cjs +4687 -0
- package/dist/components/DataGrid/PinnedColumns.css +5051 -0
- package/dist/components/DataGrid/PinnedColumns.js +62 -0
- package/dist/components/DataGrid/TableBody/LoadingCell.cjs +4689 -0
- package/dist/components/DataGrid/TableBody/LoadingCell.css +5051 -0
- package/dist/components/DataGrid/TableBody/LoadingCell.js +62 -0
- package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +4689 -0
- package/dist/components/DataGrid/TableBody/TableBodyRow.css +5051 -0
- package/dist/components/DataGrid/TableBody/TableBodyRow.js +62 -0
- package/dist/components/DataGrid/TableBody/index.cjs +4689 -0
- package/dist/components/DataGrid/TableBody/index.css +5051 -0
- package/dist/components/DataGrid/TableBody/index.js +62 -0
- package/dist/components/DataGrid/index.cjs +4692 -0
- package/dist/components/DataGrid/index.css +5051 -0
- package/dist/components/DataGrid/index.js +65 -0
- package/dist/components/DataGrid/utils.cjs +4687 -0
- package/dist/components/DataGrid/utils.css +5051 -0
- package/dist/components/DataGrid/utils.js +62 -0
- package/dist/components/DataGridCell.js +6 -6
- package/dist/components/DateInput.cjs +721 -67
- package/dist/components/DateInput.css +186 -3
- package/dist/components/DateInput.js +45 -13
- package/dist/components/DateRangeInput.cjs +721 -67
- package/dist/components/DateRangeInput.css +186 -3
- package/dist/components/DateRangeInput.js +45 -13
- package/dist/components/FilterGroup.js +3 -3
- package/dist/components/Grid.cjs +3 -1
- package/dist/components/Grid.js +3 -92
- package/dist/components/ImagePlaceholder.cjs +65 -0
- package/dist/components/ImagePlaceholder.js +7 -0
- package/dist/components/Input.js +2 -2
- package/dist/components/MenuOption.js +2 -2
- package/dist/components/MobileDataGrid/ColumnList.cjs +845 -0
- package/dist/components/MobileDataGrid/ColumnList.js +17 -0
- package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +4797 -0
- package/dist/components/MobileDataGrid/ColumnSelector/index.css +5051 -0
- package/dist/components/MobileDataGrid/ColumnSelector/index.js +62 -0
- package/dist/components/MobileDataGrid/GridContextProvider/GridContext.cjs +31 -0
- package/dist/components/MobileDataGrid/GridContextProvider/GridContext.js +7 -0
- package/dist/components/MobileDataGrid/GridContextProvider/index.cjs +177 -0
- package/dist/components/MobileDataGrid/GridContextProvider/index.js +8 -0
- package/dist/components/MobileDataGrid/MobileDataGridCard/MobileDataGridColumn.cjs +269 -0
- package/dist/components/MobileDataGrid/MobileDataGridCard/MobileDataGridColumn.js +9 -0
- package/dist/components/MobileDataGrid/MobileDataGridCard/index.cjs +790 -0
- package/dist/components/MobileDataGrid/MobileDataGridCard/index.js +16 -0
- package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +5059 -0
- package/dist/components/MobileDataGrid/MobileDataGridHeader.css +5051 -0
- package/dist/components/MobileDataGrid/MobileDataGridHeader.js +62 -0
- package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.cjs +509 -0
- package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.js +13 -0
- package/dist/components/MobileDataGrid/RowDetailModalProvider/index.cjs +1261 -0
- package/dist/components/MobileDataGrid/RowDetailModalProvider/index.js +27 -0
- package/dist/components/MobileDataGrid/index.cjs +5521 -0
- package/dist/components/MobileDataGrid/index.css +5051 -0
- package/dist/components/MobileDataGrid/index.js +62 -0
- package/dist/components/Modal.cjs +24 -13
- package/dist/components/Modal.js +3 -3
- package/dist/components/ModalHeader.cjs +6 -4
- package/dist/components/ModalHeader.js +1 -1
- package/dist/components/ModalScrim.cjs +2 -1
- package/dist/components/ModalScrim.js +1 -1
- package/dist/components/NestedMenu.js +4 -4
- package/dist/components/Notification.cjs +15 -6
- package/dist/components/Notification.js +1 -1
- package/dist/components/PDFViewer/DownloadIcon.cjs +394 -0
- package/dist/components/PDFViewer/DownloadIcon.js +10 -0
- package/dist/components/PDFViewer/PDFElement.cjs +515 -0
- package/dist/components/PDFViewer/PDFElement.js +11 -0
- package/dist/components/{MobileDataGrid.cjs → PDFViewer/PDFNavigation.cjs} +318 -402
- package/dist/components/PDFViewer/PDFNavigation.js +13 -0
- package/dist/components/PDFViewer/PDFPage.cjs +56 -0
- package/dist/components/PDFViewer/PDFPage.js +7 -0
- package/dist/components/{PDFViewer.cjs → PDFViewer/index.cjs} +290 -202
- package/dist/components/PDFViewer/index.js +29 -0
- package/dist/components/Password.js +2 -2
- package/dist/components/ProductImagePreview/CarouselPagination.cjs +75 -0
- package/dist/components/ProductImagePreview/CarouselPagination.js +7 -0
- package/dist/components/ProductImagePreview/MobileImageCarousel.cjs +214 -0
- package/dist/components/ProductImagePreview/MobileImageCarousel.js +7 -0
- package/dist/components/ProductImagePreview/ProductPrimaryImage.cjs +255 -0
- package/dist/components/ProductImagePreview/ProductPrimaryImage.js +9 -0
- package/dist/components/ProductImagePreview/Thumbnail.cjs +105 -0
- package/dist/components/ProductImagePreview/Thumbnail.js +8 -0
- package/dist/components/ProductImagePreview/ZoomWindow.cjs +198 -0
- package/dist/components/ProductImagePreview/ZoomWindow.js +8 -0
- package/dist/components/ProductImagePreview/index.cjs +1369 -0
- package/dist/components/ProductImagePreview/index.js +22 -0
- package/dist/components/Search.js +3 -3
- package/dist/components/Select.js +3 -3
- package/dist/components/SideMenuGroup.cjs +15 -6
- package/dist/components/SideMenuGroup.js +1 -1
- package/dist/components/SideMenuItem.cjs +15 -6
- package/dist/components/SideMenuItem.js +1 -1
- package/dist/components/SkeletonParagraph.cjs +33 -0
- package/dist/components/SkeletonParagraph.js +10 -0
- package/dist/components/Stack.cjs +15 -6
- package/dist/components/Stack.js +1 -1
- package/dist/components/Stepper.cjs +61 -53
- package/dist/components/Stepper.js +63 -55
- package/dist/components/Surface.js +3 -39
- package/dist/components/Swatch.cjs +15 -6
- package/dist/components/Swatch.js +4 -4
- package/dist/components/Time.cjs +15 -6
- package/dist/components/Time.js +5 -5
- package/dist/components/Upload.cjs +15 -6
- package/dist/components/Upload.js +1 -1
- package/dist/components/index.cjs +2559 -14
- package/dist/components/index.css +186 -3
- package/dist/components/index.js +57 -14
- package/dist/index.css +186 -3
- package/package.json +1 -1
- package/src/components/Accordion.tsx +23 -4
- package/src/components/CompactImagesPreview.tsx +99 -0
- package/src/components/ContentTabs.tsx +3 -1
- package/src/components/DataGrid/types.ts +5 -0
- package/src/components/Grid.tsx +2 -0
- package/src/components/ImagePlaceholder.tsx +22 -0
- package/src/components/MobileDataGrid/ColumnList.tsx +66 -0
- package/src/components/MobileDataGrid/ColumnSelector/index.tsx +97 -0
- package/src/components/MobileDataGrid/GridContextProvider/GridContext.tsx +25 -0
- package/src/components/MobileDataGrid/GridContextProvider/index.tsx +132 -0
- package/src/components/MobileDataGrid/GridContextProvider/useGridContext.ts +10 -0
- package/src/components/MobileDataGrid/MobileDataGridCard/MobileDataGridColumn.tsx +20 -0
- package/src/components/MobileDataGrid/MobileDataGridCard/index.tsx +129 -0
- package/src/components/MobileDataGrid/MobileDataGridHeader.tsx +80 -0
- package/src/components/MobileDataGrid/RowDetailModalProvider/ModalContent.tsx +42 -0
- package/src/components/MobileDataGrid/RowDetailModalProvider/index.tsx +68 -0
- package/src/components/MobileDataGrid/dataGridReducer.ts +55 -0
- package/src/components/MobileDataGrid/index.tsx +92 -0
- package/src/components/MobileDataGrid/types.ts +4 -0
- package/src/components/Modal.tsx +31 -12
- package/src/components/ModalButtons.tsx +1 -1
- package/src/components/ModalHeader.tsx +5 -2
- package/src/components/ModalScrim.tsx +3 -2
- package/src/components/PDFViewer/DownloadIcon.tsx +22 -0
- package/src/components/PDFViewer/PDFElement.tsx +90 -0
- package/src/components/PDFViewer/PDFNavigation.tsx +68 -0
- package/src/components/PDFViewer/PDFPage.tsx +34 -0
- package/src/components/PDFViewer/index.tsx +128 -0
- package/src/components/ProductImagePreview/CarouselPagination.tsx +54 -0
- package/src/components/ProductImagePreview/MobileImageCarousel.tsx +226 -0
- package/src/components/ProductImagePreview/ProductPrimaryImage.tsx +218 -0
- package/src/components/ProductImagePreview/Thumbnail.tsx +49 -0
- package/src/components/ProductImagePreview/ZoomWindow.tsx +136 -0
- package/src/components/ProductImagePreview/index.tsx +182 -0
- package/src/components/ProductImagePreview/useProductImagePreview.ts +211 -0
- package/src/components/SkeletonParagraph.tsx +5 -0
- package/src/components/Stack.tsx +29 -6
- package/src/components/Stepper.tsx +5 -1
- package/src/components/index.ts +4 -0
- package/src/types.ts +2 -1
- package/dist/components/MobileDataGrid.js +0 -150
- package/dist/components/PDFViewer.js +0 -250
- package/src/components/MobileDataGrid.tsx +0 -163
- package/src/components/PDFViewer.tsx +0 -264
- package/dist/{chunk-OXSBIBGT.js → chunk-CKQNJNU3.js} +3 -3
- package/dist/{chunk-RJUN52HJ.js → chunk-ZL5X7KP6.js} +3 -3
|
@@ -56,355 +56,149 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
56
56
|
));
|
|
57
57
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
58
58
|
|
|
59
|
-
// src/components/
|
|
60
|
-
var
|
|
61
|
-
__export(
|
|
62
|
-
|
|
59
|
+
// src/components/PDFViewer/PDFNavigation.tsx
|
|
60
|
+
var PDFNavigation_exports = {};
|
|
61
|
+
__export(PDFNavigation_exports, {
|
|
62
|
+
PdfNavigation: () => PdfNavigation
|
|
63
63
|
});
|
|
64
|
-
module.exports = __toCommonJS(
|
|
65
|
-
var import_clsx7 = __toESM(require("clsx"), 1);
|
|
64
|
+
module.exports = __toCommonJS(PDFNavigation_exports);
|
|
66
65
|
|
|
67
|
-
// src/components/
|
|
68
|
-
var
|
|
69
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
70
|
-
function Icon(_a) {
|
|
71
|
-
var _b = _a, {
|
|
72
|
-
name,
|
|
73
|
-
size = 24,
|
|
74
|
-
variant = "outline",
|
|
75
|
-
testid
|
|
76
|
-
} = _b, props = __objRest(_b, [
|
|
77
|
-
"name",
|
|
78
|
-
"size",
|
|
79
|
-
"variant",
|
|
80
|
-
"testid"
|
|
81
|
-
]);
|
|
82
|
-
const variantStyle = variant === "filled" ? '"FILL" 1' : '"FILL" 0';
|
|
83
|
-
const weightStyle = size === 16 ? '"wght" 400' : '"wght" 300';
|
|
84
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
85
|
-
"span",
|
|
86
|
-
__spreadProps(__spreadValues({}, props), {
|
|
87
|
-
"data-testid": testid,
|
|
88
|
-
className: (0, import_clsx.default)(
|
|
89
|
-
"icon",
|
|
90
|
-
`icon-${size}`,
|
|
91
|
-
// size === 16 ? "font-normal" : "font-light", // size 16 font weight is not working as normal from before
|
|
92
|
-
props.className
|
|
93
|
-
),
|
|
94
|
-
style: __spreadValues({
|
|
95
|
-
fontVariationSettings: variantStyle + `, ${weightStyle}`
|
|
96
|
-
}, props.style),
|
|
97
|
-
children: name
|
|
98
|
-
})
|
|
99
|
-
);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
// src/components/Stack.tsx
|
|
103
|
-
var import_clsx3 = __toESM(require("clsx"), 1);
|
|
66
|
+
// src/components/Button.tsx
|
|
67
|
+
var import_clsx2 = __toESM(require("clsx"), 1);
|
|
104
68
|
|
|
105
69
|
// src/classNames.ts
|
|
106
|
-
var
|
|
70
|
+
var import_clsx = __toESM(require("clsx"), 1);
|
|
107
71
|
var typography = {
|
|
108
|
-
display1: (0,
|
|
72
|
+
display1: (0, import_clsx.default)(
|
|
109
73
|
"font-sans font-semibold",
|
|
110
74
|
"text-display-1-mobile desktop:text-display-1-desktop compact:text-display-1-desktop-compact",
|
|
111
75
|
"leading-display-1-mobile desktop:leading-display-1-desktop"
|
|
112
76
|
),
|
|
113
|
-
display2: (0,
|
|
77
|
+
display2: (0, import_clsx.default)(
|
|
114
78
|
"font-sans font-bold",
|
|
115
79
|
"text-display-2-mobile desktop:text-display-2-desktop compact:text-display-2-desktop-compact",
|
|
116
80
|
"leading-display-2-mobile desktop:leading-display-2-desktop"
|
|
117
81
|
),
|
|
118
|
-
heading1: (0,
|
|
82
|
+
heading1: (0, import_clsx.default)(
|
|
119
83
|
"font-sans font-semibold",
|
|
120
84
|
"text-heading-1-mobile desktop:text-heading-1-desktop compact:text-heading-1-desktop-compact",
|
|
121
85
|
"leading-heading-1-mobile desktop:leading-heading-1-desktop"
|
|
122
86
|
),
|
|
123
|
-
heading2: (0,
|
|
87
|
+
heading2: (0, import_clsx.default)(
|
|
124
88
|
"font-sans font-normal",
|
|
125
89
|
"text-heading-2-mobile desktop:text-heading-2-desktop compact:text-heading-2-desktop-compact",
|
|
126
90
|
"leading-heading-2-mobile desktop:leading-heading-2-desktop"
|
|
127
91
|
),
|
|
128
|
-
heading3: (0,
|
|
92
|
+
heading3: (0, import_clsx.default)(
|
|
129
93
|
"font-sans font-semibold",
|
|
130
94
|
"text-heading-3-mobile desktop:text-heading-3-desktop compact:text-heading-3-desktop-compact",
|
|
131
95
|
"leading-heading-3-mobile desktop:leading-heading-3-desktop"
|
|
132
96
|
),
|
|
133
|
-
subheader: (0,
|
|
97
|
+
subheader: (0, import_clsx.default)(
|
|
134
98
|
"font-sans font-semibold",
|
|
135
99
|
"text-subheader-mobile desktop:text-subheader-desktop compact:text-subheader-desktop-compact",
|
|
136
100
|
"leading-subheader-mobile desktop:leading-subheader-desktop"
|
|
137
101
|
),
|
|
138
|
-
link: (0,
|
|
102
|
+
link: (0, import_clsx.default)(
|
|
139
103
|
"font-sans font-normal",
|
|
140
104
|
"text-link-mobile desktop:text-link-desktop compact:text-link-desktop-compact",
|
|
141
105
|
"leading-link-mobile desktop:leading-link-desktop"
|
|
142
106
|
),
|
|
143
|
-
buttonLabel: (0,
|
|
107
|
+
buttonLabel: (0, import_clsx.default)(
|
|
144
108
|
"font-sans font-semibold",
|
|
145
109
|
"text-label-mobile desktop:text-label-desktop compact:text-label-desktop-compact",
|
|
146
110
|
"leading-label-mobile desktop:leading-label-desktop"
|
|
147
111
|
),
|
|
148
|
-
label: (0,
|
|
112
|
+
label: (0, import_clsx.default)(
|
|
149
113
|
"font-sans font-semibold",
|
|
150
114
|
"text-label-mobile desktop:text-label-desktop compact:text-label-desktop-compact",
|
|
151
115
|
"leading-label-mobile desktop:leading-label-desktop"
|
|
152
116
|
),
|
|
153
|
-
paragraph: (0,
|
|
117
|
+
paragraph: (0, import_clsx.default)(
|
|
154
118
|
"font-sans font-normal",
|
|
155
119
|
"text-paragraph-mobile desktop:text-paragraph-desktop compact:text-paragraph-desktop-compact",
|
|
156
120
|
"leading-paragraph-mobile desktop:leading-paragraph-desktop"
|
|
157
121
|
),
|
|
158
|
-
caption: (0,
|
|
122
|
+
caption: (0, import_clsx.default)(
|
|
159
123
|
"font-sans font-normal",
|
|
160
124
|
"text-caption-mobile desktop:text-caption-desktop compact:text-caption-desktop-compact",
|
|
161
125
|
"leading-caption-mobile desktop:leading-caption-desktop"
|
|
162
126
|
),
|
|
163
|
-
breadcrumb: (0,
|
|
127
|
+
breadcrumb: (0, import_clsx.default)(
|
|
164
128
|
"font-sans font-normal",
|
|
165
129
|
"text-paragraph-mobile desktop:text-paragraph-desktop compact:text-paragraph-desktop-compact",
|
|
166
130
|
"leading-mobile-breadcrumb desktop:leading-desktop-breadcrumb"
|
|
167
131
|
)
|
|
168
132
|
};
|
|
169
|
-
var baseTransition = (0,
|
|
133
|
+
var baseTransition = (0, import_clsx.default)(
|
|
170
134
|
"transition-colors duration-100 ease-in-out"
|
|
171
135
|
);
|
|
172
|
-
var componentGap = (0,
|
|
136
|
+
var componentGap = (0, import_clsx.default)(
|
|
173
137
|
"gap-mobile-component-gap desktop:gap-desktop-component-gap compact:gap-desktop-compact-component-gap"
|
|
174
138
|
);
|
|
175
|
-
var paddingUsingComponentGap = (0,
|
|
139
|
+
var paddingUsingComponentGap = (0, import_clsx.default)(
|
|
176
140
|
"p-mobile-component-gap desktop:p-desktop-component-gap compact:p-desktop-compact-component-gap"
|
|
177
141
|
);
|
|
178
|
-
var paddingXUsingLayoutGroupGap = (0,
|
|
142
|
+
var paddingXUsingLayoutGroupGap = (0, import_clsx.default)(
|
|
179
143
|
"px-mobile-layout-group-gap desktop:px-desktop-layout-group-gap compact:px-desktop-compact-layout-group-gap"
|
|
180
144
|
);
|
|
181
|
-
var paddingYUsingLayoutGroupGap = (0,
|
|
145
|
+
var paddingYUsingLayoutGroupGap = (0, import_clsx.default)(
|
|
182
146
|
"py-mobile-layout-group-gap desktop:py-desktop-layout-group-gap compact:py-desktop-compact-layout-group-gap"
|
|
183
147
|
);
|
|
184
|
-
var componentPadding = (0,
|
|
148
|
+
var componentPadding = (0, import_clsx.default)(
|
|
185
149
|
"p-mobile-component-padding desktop:p-desktop-component-padding compact:p-desktop-compact-component-padding"
|
|
186
150
|
);
|
|
187
|
-
var componentPaddingBottom = (0,
|
|
151
|
+
var componentPaddingBottom = (0, import_clsx.default)(
|
|
188
152
|
"pb-mobile-component-padding desktop:pb-desktop-component-padding compact:pb-desktop-compact-component-padding"
|
|
189
153
|
);
|
|
190
|
-
var componentPaddingX = (0,
|
|
154
|
+
var componentPaddingX = (0, import_clsx.default)(
|
|
191
155
|
"px-mobile-component-padding desktop:px-desktop-component-padding compact:px-desktop-compact-component-padding"
|
|
192
156
|
);
|
|
193
|
-
var componentPaddingY = (0,
|
|
157
|
+
var componentPaddingY = (0, import_clsx.default)(
|
|
194
158
|
"py-mobile-component-padding desktop:py-desktop-component-padding compact:py-desktop-compact-component-padding"
|
|
195
159
|
);
|
|
196
|
-
var componentPaddingXUsingComponentGap = (0,
|
|
160
|
+
var componentPaddingXUsingComponentGap = (0, import_clsx.default)(
|
|
197
161
|
"px-mobile-component-gap desktop:px-desktop-component-gap compact:px-desktop-compact-component-gap"
|
|
198
162
|
);
|
|
199
|
-
var componentPaddingYUsingComponentGap = (0,
|
|
163
|
+
var componentPaddingYUsingComponentGap = (0, import_clsx.default)(
|
|
200
164
|
"py-mobile-component-gap desktop:py-desktop-component-gap compact:py-desktop-compact-component-gap"
|
|
201
165
|
);
|
|
202
|
-
var componentPaddingMinusBorder = (0,
|
|
166
|
+
var componentPaddingMinusBorder = (0, import_clsx.default)(
|
|
203
167
|
"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)]"
|
|
204
168
|
);
|
|
205
|
-
var componentPaddingMinus2pxBorder = (0,
|
|
169
|
+
var componentPaddingMinus2pxBorder = (0, import_clsx.default)(
|
|
206
170
|
"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)]"
|
|
207
171
|
);
|
|
208
|
-
var layoutPaddding = (0,
|
|
172
|
+
var layoutPaddding = (0, import_clsx.default)(
|
|
209
173
|
"p-mobile-layout-padding desktop:p-desktop-layout-padding compact:p-desktop-compact-layout-padding"
|
|
210
174
|
);
|
|
211
|
-
var layoutPaddingBottom = (0,
|
|
175
|
+
var layoutPaddingBottom = (0, import_clsx.default)(
|
|
212
176
|
"pb-mobile-layout-padding desktop:pb-desktop-layout-padding compact:pb-desktop-compact-layout-padding"
|
|
213
177
|
);
|
|
214
|
-
var layoutPaddingY = (0,
|
|
178
|
+
var layoutPaddingY = (0, import_clsx.default)(
|
|
215
179
|
"py-mobile-layout-padding desktop:py-desktop-layout-padding compact:py-desktop-compact-layout-padding"
|
|
216
180
|
);
|
|
217
|
-
var containerPaddingX = (0,
|
|
181
|
+
var containerPaddingX = (0, import_clsx.default)(
|
|
218
182
|
"px-mobile-container-padding desktop:px-desktop-container-padding compact:px-desktop-compact-container-padding"
|
|
219
183
|
);
|
|
220
|
-
var containerPaddingY = (0,
|
|
184
|
+
var containerPaddingY = (0, import_clsx.default)(
|
|
221
185
|
"py-mobile-container-padding desktop:py-desktop-container-padding compact:py-desktop-compact-container-padding"
|
|
222
186
|
);
|
|
223
|
-
var layoutGroupGapPaddingY = (0,
|
|
187
|
+
var layoutGroupGapPaddingY = (0, import_clsx.default)(
|
|
224
188
|
"py-mobile-layout-group-gap desktop:py-desktop-layout-group-gap compact:py-desktop-compact-layout-group-gap"
|
|
225
189
|
);
|
|
226
|
-
var layoutGroupGap = (0,
|
|
190
|
+
var layoutGroupGap = (0, import_clsx.default)(
|
|
227
191
|
"gap-mobile-layout-group-gap desktop:gap-desktop-layout-group-gap compact:gap-desktop-compact-layout-group-gap"
|
|
228
192
|
);
|
|
229
|
-
var layoutGap = (0,
|
|
193
|
+
var layoutGap = (0, import_clsx.default)(
|
|
230
194
|
"gap-mobile-layout-gap desktop:gap-desktop-layout-gap compact:gap-desktop-compact-layout-gap"
|
|
231
195
|
);
|
|
232
|
-
var gapUsingContainerPadding = (0,
|
|
196
|
+
var gapUsingContainerPadding = (0, import_clsx.default)(
|
|
233
197
|
"gap-mobile-container-padding desktop:gap-desktop-container-padding compact:gap-desktop-compact-container-padding"
|
|
234
198
|
);
|
|
235
199
|
|
|
236
|
-
// src/components/Stack.tsx
|
|
237
|
-
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
238
|
-
var getFlexClassNames = ({ items, justify, grow }) => (0, import_clsx3.default)(
|
|
239
|
-
"flex",
|
|
240
|
-
items === "start" && "items-start",
|
|
241
|
-
grow && "grow",
|
|
242
|
-
items === "start" && "items-start",
|
|
243
|
-
items === "center" && "items-center",
|
|
244
|
-
items === "end" && "items-end",
|
|
245
|
-
items === "start-center" && "items-start desktop:items-center",
|
|
246
|
-
justify === "start" && "justify-start",
|
|
247
|
-
justify === "center" && "justify-center",
|
|
248
|
-
justify === "end" && "justify-end",
|
|
249
|
-
justify === "end" && "justify-end",
|
|
250
|
-
justify === "between" && "justify-between",
|
|
251
|
-
justify === "around" && "justify-around"
|
|
252
|
-
);
|
|
253
|
-
var useGapClassNames = (sizing) => {
|
|
254
|
-
return (0, import_clsx3.default)(
|
|
255
|
-
sizing === "layout-group" && "gap-mobile-layout-group-gap desktop:gap-desktop-layout-group-gap compact:gap-compact-layout-group-gap",
|
|
256
|
-
sizing === "layout" && "gap-mobile-layout-gap desktop:gap-desktop-layout-gap compact:gap-compact-layout-gap",
|
|
257
|
-
sizing === "container" && "gap-mobile-container-gap desktop:gap-desktop-container-gap compact:gap-compact-container-gap",
|
|
258
|
-
sizing === "component" && "gap-mobile-component-gap desktop:gap-desktop-component-gap compact:gap-compact-component-gap"
|
|
259
|
-
);
|
|
260
|
-
};
|
|
261
|
-
var Stack = (_a) => {
|
|
262
|
-
var _b = _a, {
|
|
263
|
-
children,
|
|
264
|
-
items,
|
|
265
|
-
justify,
|
|
266
|
-
grow,
|
|
267
|
-
padding,
|
|
268
|
-
paddingX,
|
|
269
|
-
paddingY,
|
|
270
|
-
margin,
|
|
271
|
-
marginX,
|
|
272
|
-
marginY,
|
|
273
|
-
horizontal,
|
|
274
|
-
horizontalMobile,
|
|
275
|
-
elevation = 0,
|
|
276
|
-
rounded,
|
|
277
|
-
centered,
|
|
278
|
-
width,
|
|
279
|
-
minHeight,
|
|
280
|
-
maxWidth,
|
|
281
|
-
minWidth,
|
|
282
|
-
height,
|
|
283
|
-
maxHeight,
|
|
284
|
-
borderColor,
|
|
285
|
-
backgroundColor,
|
|
286
|
-
sizing = "none",
|
|
287
|
-
overflowY = "inherit",
|
|
288
|
-
overflowX = "inherit",
|
|
289
|
-
flexShrink,
|
|
290
|
-
flexGrow,
|
|
291
|
-
position,
|
|
292
|
-
top,
|
|
293
|
-
left,
|
|
294
|
-
id,
|
|
295
|
-
noGap,
|
|
296
|
-
marginTop,
|
|
297
|
-
marginBottom,
|
|
298
|
-
testid
|
|
299
|
-
} = _b, props = __objRest(_b, [
|
|
300
|
-
"children",
|
|
301
|
-
"items",
|
|
302
|
-
"justify",
|
|
303
|
-
"grow",
|
|
304
|
-
"padding",
|
|
305
|
-
"paddingX",
|
|
306
|
-
"paddingY",
|
|
307
|
-
"margin",
|
|
308
|
-
"marginX",
|
|
309
|
-
"marginY",
|
|
310
|
-
"horizontal",
|
|
311
|
-
"horizontalMobile",
|
|
312
|
-
"elevation",
|
|
313
|
-
"rounded",
|
|
314
|
-
"centered",
|
|
315
|
-
"width",
|
|
316
|
-
"minHeight",
|
|
317
|
-
"maxWidth",
|
|
318
|
-
"minWidth",
|
|
319
|
-
"height",
|
|
320
|
-
"maxHeight",
|
|
321
|
-
"borderColor",
|
|
322
|
-
"backgroundColor",
|
|
323
|
-
"sizing",
|
|
324
|
-
"overflowY",
|
|
325
|
-
"overflowX",
|
|
326
|
-
"flexShrink",
|
|
327
|
-
"flexGrow",
|
|
328
|
-
"position",
|
|
329
|
-
"top",
|
|
330
|
-
"left",
|
|
331
|
-
"id",
|
|
332
|
-
"noGap",
|
|
333
|
-
"marginTop",
|
|
334
|
-
"marginBottom",
|
|
335
|
-
"testid"
|
|
336
|
-
]);
|
|
337
|
-
const flexClassNames = getFlexClassNames({ items, justify, grow });
|
|
338
|
-
const gapClassNames = useGapClassNames(sizing);
|
|
339
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
340
|
-
"div",
|
|
341
|
-
__spreadProps(__spreadValues({
|
|
342
|
-
id,
|
|
343
|
-
"data-testid": testid
|
|
344
|
-
}, props), {
|
|
345
|
-
style: {
|
|
346
|
-
height: height === "full" ? "100%" : height !== void 0 ? `${height}px` : void 0,
|
|
347
|
-
maxHeight: maxHeight !== void 0 ? `${maxHeight}px` : void 0,
|
|
348
|
-
minHeight: minHeight !== void 0 ? `${minHeight}px` : void 0,
|
|
349
|
-
maxWidth: maxWidth !== void 0 ? `${maxWidth}px` : void 0,
|
|
350
|
-
width: width !== void 0 && typeof width === "number" ? `${width}px` : void 0,
|
|
351
|
-
minWidth: minWidth !== void 0 ? `${minWidth}px` : void 0,
|
|
352
|
-
border: borderColor ? `1px solid var(--color-${borderColor})` : void 0,
|
|
353
|
-
backgroundColor: backgroundColor ? `var(--color-${backgroundColor})` : void 0,
|
|
354
|
-
flexGrow: flexGrow !== void 0 ? flexGrow : void 0,
|
|
355
|
-
flexShrink: flexShrink !== void 0 ? flexShrink : void 0,
|
|
356
|
-
position: position !== void 0 ? position : void 0,
|
|
357
|
-
top: top !== void 0 ? `${top}px` : void 0,
|
|
358
|
-
left: left !== void 0 ? `${left}px` : void 0
|
|
359
|
-
},
|
|
360
|
-
className: (0, import_clsx3.default)(
|
|
361
|
-
"scrollbar-thin",
|
|
362
|
-
"max-w-screen",
|
|
363
|
-
width !== "fit" && "w-full",
|
|
364
|
-
width === "full" && "w-full",
|
|
365
|
-
width === "max" && "w-max",
|
|
366
|
-
centered && "mx-auto",
|
|
367
|
-
overflowY == "auto" && "overflow-y-auto",
|
|
368
|
-
overflowY == "hidden" && "overflow-y-hidden",
|
|
369
|
-
overflowY == "scroll" && "overflow-y-scroll",
|
|
370
|
-
overflowX == "auto" && "overflow-x-auto",
|
|
371
|
-
overflowX == "hidden" && "overflow-x-hidden",
|
|
372
|
-
overflowX == "scroll" && "overflow-x-scroll",
|
|
373
|
-
padding && sizing === "container" && "p-mobile-container-padding desktop:p-desktop-container-padding compact:p-desktop-compact-container-padding",
|
|
374
|
-
padding && sizing === "layout" && "p-mobile-layout-padding desktop:p-desktop-layout-padding compact:p-desktop-compact-layout-padding",
|
|
375
|
-
padding && sizing === "layout-group" && "p-mobile-layout-group-padding desktop:p-desktop-layout-group-padding compact:p-desktop-compact-layout-group-padding",
|
|
376
|
-
padding && sizing === "component" && "p-mobile-component-padding desktop:p-desktop-component-padding compact:p-desktop-compact-component-padding",
|
|
377
|
-
paddingX && sizing === "container" && "px-mobile-container-padding desktop:px-desktop-container-padding compact:px-desktop-compact-container-padding",
|
|
378
|
-
paddingX && sizing === "layout" && "px-mobile-layout-padding desktop:px-desktop-layout-padding compact:px-desktop-compact-layout-padding",
|
|
379
|
-
paddingX && sizing === "layout-group" && "px-mobile-layout-group-padding desktop:px-desktop-layout-group-padding compact:px-desktop-compact-layout-group-padding",
|
|
380
|
-
paddingX && sizing === "component" && "px-mobile-component-padding desktop:px-desktop-component-padding compact:px-desktop-compact-component-padding",
|
|
381
|
-
paddingY && sizing === "container" && "py-mobile-container-padding desktop:py-desktop-container-padding compact:py-desktop-compact-container-padding",
|
|
382
|
-
paddingY && sizing === "layout" && "py-mobile-layout-padding desktop:py-desktop-layout-padding compact:py-desktop-compact-layout-padding",
|
|
383
|
-
paddingY && sizing === "layout-group" && paddingYUsingLayoutGroupGap,
|
|
384
|
-
paddingY && sizing === "component" && "py-mobile-component-padding desktop:py-desktop-component-padding compact:py-desktop-compact-component-padding",
|
|
385
|
-
margin && sizing === "container" && "m-mobile-container-padding desktop:m-desktop-container-padding compact:m-compact-container-padding",
|
|
386
|
-
marginX && sizing === "container" && "mx-mobile-container-padding desktop:mx-desktop-container-padding compact:mx-compact-container-padding",
|
|
387
|
-
marginTop && sizing === "container" && "mt-mobile-container-padding desktop:mt-desktop-container-padding compact:mt-compact-container-padding",
|
|
388
|
-
marginBottom && sizing === "container" && "mb-mobile-container-padding desktop:mb-desktop-container-padding compact:mb-compact-container-padding",
|
|
389
|
-
marginY && sizing === "container" && "my-mobile-container-padding desktop:my-desktop-container-padding compact:my-compact-container-padding",
|
|
390
|
-
horizontal ? "desktop:flex-row" : "desktop:flex-col",
|
|
391
|
-
horizontalMobile ? "flex-row" : "flex-col",
|
|
392
|
-
flexClassNames,
|
|
393
|
-
!noGap && gapClassNames,
|
|
394
|
-
elevation === 0 && "shadow-none",
|
|
395
|
-
elevation === 2 && "shadow-2",
|
|
396
|
-
elevation === 4 && "shadow-4",
|
|
397
|
-
elevation === 16 && "shadow-16",
|
|
398
|
-
rounded && "rounded"
|
|
399
|
-
),
|
|
400
|
-
children
|
|
401
|
-
})
|
|
402
|
-
);
|
|
403
|
-
};
|
|
404
|
-
|
|
405
200
|
// src/components/Button.tsx
|
|
406
|
-
var
|
|
407
|
-
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
201
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
408
202
|
var Button = (_a) => {
|
|
409
203
|
var _b = _a, {
|
|
410
204
|
variant = "primary",
|
|
@@ -437,7 +231,7 @@ var Button = (_a) => {
|
|
|
437
231
|
"id",
|
|
438
232
|
"testid"
|
|
439
233
|
]);
|
|
440
|
-
const primaryVariantStyles = variant === "primary" && (0,
|
|
234
|
+
const primaryVariantStyles = variant === "primary" && (0, import_clsx2.default)(
|
|
441
235
|
(colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
|
|
442
236
|
"bg-background-action-primary-normal border-background-action-primary-normal",
|
|
443
237
|
"hover:bg-background-action-primary-hover hover:border-background-action-primary-hover",
|
|
@@ -445,7 +239,7 @@ var Button = (_a) => {
|
|
|
445
239
|
"active:bg-background-action-primary-active active:border-background-action-primary-active",
|
|
446
240
|
"disabled:bg-background-action-primary-disabled disabled:border-background-action-primary-disabled disabled:text-text-on-action-primary-disabled"
|
|
447
241
|
);
|
|
448
|
-
const secondaryVariantStyles = variant === "secondary" && (0,
|
|
242
|
+
const secondaryVariantStyles = variant === "secondary" && (0, import_clsx2.default)(
|
|
449
243
|
(colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-action-primary-normal",
|
|
450
244
|
"bg-background-action-secondary-normal border-border-action-normal",
|
|
451
245
|
"hover:bg-background-action-secondary-hover hover:border-border-action-hover hover:text-text-action-primary-hover",
|
|
@@ -453,7 +247,7 @@ var Button = (_a) => {
|
|
|
453
247
|
"active:bg-background-action-secondary-active active:border-border-action-active active:text-text-action-primary-active",
|
|
454
248
|
"disabled:bg-background-action-primary-disabled disabled:border-border-action-disabled disabled:text-text-action-primary-disabled"
|
|
455
249
|
);
|
|
456
|
-
const tertiaryVariantStyles = variant === "tertiary" && (0,
|
|
250
|
+
const tertiaryVariantStyles = variant === "tertiary" && (0, import_clsx2.default)(
|
|
457
251
|
"bg-transparent border-transparent",
|
|
458
252
|
iconOnly ? (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-icon-action-primary-normal" : (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-action-primary-normal",
|
|
459
253
|
"bg-transparent border-transparent",
|
|
@@ -462,7 +256,7 @@ var Button = (_a) => {
|
|
|
462
256
|
"active:bg-background-action-secondary-active active:border-transparent active:text-text-action-primary-active",
|
|
463
257
|
"disabled:bg-transparent disabled:border-transparent disabled:text-text-action-primary-disabled"
|
|
464
258
|
);
|
|
465
|
-
const primaryCriticalVariantStyles = variant === "primary-critical" && (0,
|
|
259
|
+
const primaryCriticalVariantStyles = variant === "primary-critical" && (0, import_clsx2.default)(
|
|
466
260
|
(colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
|
|
467
261
|
"bg-background-action-critical-primary-normal border-background-action-critical-primary-normal",
|
|
468
262
|
"hover:bg-background-action-critical-primary-hover hover:border-background-action-critical-primary-hover",
|
|
@@ -470,7 +264,7 @@ var Button = (_a) => {
|
|
|
470
264
|
"active:bg-background-action-critical-primary-active active:border-background-action-critical-primary-active",
|
|
471
265
|
"disabled:bg-background-action-critical-primary-disabled disabled:border-background-action-critical-primary-disabled disabled:text-text-on-action-primary-disabled"
|
|
472
266
|
);
|
|
473
|
-
const secondaryCriticalVariantStyles = variant === "secondary-critical" && (0,
|
|
267
|
+
const secondaryCriticalVariantStyles = variant === "secondary-critical" && (0, import_clsx2.default)(
|
|
474
268
|
(colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-action-critical-normal",
|
|
475
269
|
"bg-background-action-critical-secondary-normal border-border-action-critical-normal",
|
|
476
270
|
"hover:bg-background-action-critical-secondary-hover hover:border-border-action-critical-hover hover:text-text-action-critical-hover",
|
|
@@ -478,7 +272,7 @@ var Button = (_a) => {
|
|
|
478
272
|
"active:bg-background-action-critical-secondary-active active:border-border-action-critical-active active:text-text-action-critical-active",
|
|
479
273
|
"disabled:bg-background-action-critical-disabled disabled:border-border-action-critical-disabled disabled:text-text-action-critical-disabled"
|
|
480
274
|
);
|
|
481
|
-
const tertiaryCriticalVariantStyles = variant === "tertiary-critical" && (0,
|
|
275
|
+
const tertiaryCriticalVariantStyles = variant === "tertiary-critical" && (0, import_clsx2.default)(
|
|
482
276
|
(colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-action-critical-normal",
|
|
483
277
|
"bg-transparent border-transparent text-text-action-critical-normal",
|
|
484
278
|
"hover:bg-background-action-critical-secondary-hover hover:border-background-action-critical-secondary-hover hover:text-text-action-critical-hover",
|
|
@@ -486,7 +280,7 @@ var Button = (_a) => {
|
|
|
486
280
|
"active:bg-background-action-critical-secondary-active active:border-background-action-critical-secondary-active active:text-text-action-critical-active",
|
|
487
281
|
"disabled:bg-transparent disabled:border-transparent disabled:text-text-action-critical-disabled"
|
|
488
282
|
);
|
|
489
|
-
const navigationVarianStyles = variant === "navigation" && (0,
|
|
283
|
+
const navigationVarianStyles = variant === "navigation" && (0, import_clsx2.default)(
|
|
490
284
|
(colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-action-primary-normal",
|
|
491
285
|
"bg-transparent",
|
|
492
286
|
"hover:bg-background-action-secondary-hover hover:text-text-action-primary-hover",
|
|
@@ -496,8 +290,8 @@ var Button = (_a) => {
|
|
|
496
290
|
"flex-col",
|
|
497
291
|
paddingUsingComponentGap
|
|
498
292
|
);
|
|
499
|
-
const notNavigationVariantStyles = variant !== "navigation" && (0,
|
|
500
|
-
const buttonClasses = (0,
|
|
293
|
+
const notNavigationVariantStyles = variant !== "navigation" && (0, import_clsx2.default)("border-2 flex-row", componentPaddingMinus2pxBorder, componentGap);
|
|
294
|
+
const buttonClasses = (0, import_clsx2.default)(
|
|
501
295
|
disabled ? "cursor-default" : "cursor-pointer",
|
|
502
296
|
block ? "w-full" : "w-fit",
|
|
503
297
|
baseTransition,
|
|
@@ -512,14 +306,14 @@ var Button = (_a) => {
|
|
|
512
306
|
notNavigationVariantStyles,
|
|
513
307
|
className
|
|
514
308
|
);
|
|
515
|
-
const labelClasses = (0,
|
|
309
|
+
const labelClasses = (0, import_clsx2.default)(
|
|
516
310
|
"min-h-6 flex items-center justify-center",
|
|
517
311
|
classNameLabel,
|
|
518
312
|
componentPaddingXUsingComponentGap,
|
|
519
313
|
typography.buttonLabel
|
|
520
314
|
);
|
|
521
315
|
const Element = href && !as ? "a" : as;
|
|
522
|
-
return /* @__PURE__ */ (0,
|
|
316
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
523
317
|
Element,
|
|
524
318
|
__spreadProps(__spreadValues({
|
|
525
319
|
id,
|
|
@@ -533,7 +327,7 @@ var Button = (_a) => {
|
|
|
533
327
|
"data-theme": variant === "navigation" ? "brand" : void 0,
|
|
534
328
|
children: [
|
|
535
329
|
leftIcon && leftIcon,
|
|
536
|
-
!iconOnly && children && /* @__PURE__ */ (0,
|
|
330
|
+
!iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { id: id ? `${id}-label` : void 0, "data-testid": testid ? `${testid}-label` : void 0, className: labelClasses, children }),
|
|
537
331
|
rightIcon && rightIcon
|
|
538
332
|
]
|
|
539
333
|
})
|
|
@@ -541,33 +335,9 @@ var Button = (_a) => {
|
|
|
541
335
|
};
|
|
542
336
|
Button.displayName = "Button";
|
|
543
337
|
|
|
544
|
-
// src/components/Theme.tsx
|
|
545
|
-
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
546
|
-
function Theme({
|
|
547
|
-
theme,
|
|
548
|
-
children,
|
|
549
|
-
id,
|
|
550
|
-
testid,
|
|
551
|
-
ref
|
|
552
|
-
}) {
|
|
553
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
554
|
-
"div",
|
|
555
|
-
{
|
|
556
|
-
id,
|
|
557
|
-
"data-testid": testid,
|
|
558
|
-
className: "contents",
|
|
559
|
-
"data-theme": theme,
|
|
560
|
-
ref: (e) => {
|
|
561
|
-
if (ref) ref.current = e;
|
|
562
|
-
},
|
|
563
|
-
children
|
|
564
|
-
}
|
|
565
|
-
);
|
|
566
|
-
}
|
|
567
|
-
|
|
568
338
|
// src/components/Heading.tsx
|
|
569
|
-
var
|
|
570
|
-
var
|
|
339
|
+
var import_clsx3 = __toESM(require("clsx"), 1);
|
|
340
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
571
341
|
var Heading = (_a) => {
|
|
572
342
|
var _b = _a, {
|
|
573
343
|
className,
|
|
@@ -590,12 +360,12 @@ var Heading = (_a) => {
|
|
|
590
360
|
]);
|
|
591
361
|
const defaultElement = variant === "heading1" ? "h1" : variant === "heading2" ? "h2" : "h3";
|
|
592
362
|
const Element = as != null ? as : defaultElement;
|
|
593
|
-
return /* @__PURE__ */ (0,
|
|
363
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
594
364
|
Element,
|
|
595
365
|
__spreadProps(__spreadValues({
|
|
596
366
|
id,
|
|
597
367
|
"data-testid": testid,
|
|
598
|
-
className: (0,
|
|
368
|
+
className: (0, import_clsx3.default)(
|
|
599
369
|
typography[variant],
|
|
600
370
|
className,
|
|
601
371
|
align === "left" && "text-left",
|
|
@@ -611,16 +381,51 @@ var Heading = (_a) => {
|
|
|
611
381
|
);
|
|
612
382
|
};
|
|
613
383
|
Heading.displayName = "Heading";
|
|
614
|
-
var Heading1 = (props) => /* @__PURE__ */ (0,
|
|
615
|
-
var Heading2 = (props) => /* @__PURE__ */ (0,
|
|
616
|
-
var Heading3 = (props) => /* @__PURE__ */ (0,
|
|
384
|
+
var Heading1 = (props) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Heading, __spreadProps(__spreadValues({}, props), { variant: "heading1" }));
|
|
385
|
+
var Heading2 = (props) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Heading, __spreadProps(__spreadValues({}, props), { variant: "heading2" }));
|
|
386
|
+
var Heading3 = (props) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Heading, __spreadProps(__spreadValues({}, props), { variant: "heading3" }));
|
|
617
387
|
Heading1.displayName = "Heading1";
|
|
618
388
|
Heading2.displayName = "Heading2";
|
|
619
389
|
Heading3.displayName = "Heading3";
|
|
620
390
|
|
|
391
|
+
// src/components/Icon.tsx
|
|
392
|
+
var import_clsx4 = __toESM(require("clsx"), 1);
|
|
393
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
394
|
+
function Icon(_a) {
|
|
395
|
+
var _b = _a, {
|
|
396
|
+
name,
|
|
397
|
+
size = 24,
|
|
398
|
+
variant = "outline",
|
|
399
|
+
testid
|
|
400
|
+
} = _b, props = __objRest(_b, [
|
|
401
|
+
"name",
|
|
402
|
+
"size",
|
|
403
|
+
"variant",
|
|
404
|
+
"testid"
|
|
405
|
+
]);
|
|
406
|
+
const variantStyle = variant === "filled" ? '"FILL" 1' : '"FILL" 0';
|
|
407
|
+
const weightStyle = size === 16 ? '"wght" 400' : '"wght" 300';
|
|
408
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
409
|
+
"span",
|
|
410
|
+
__spreadProps(__spreadValues({}, props), {
|
|
411
|
+
"data-testid": testid,
|
|
412
|
+
className: (0, import_clsx4.default)(
|
|
413
|
+
"icon",
|
|
414
|
+
`icon-${size}`,
|
|
415
|
+
// size === 16 ? "font-normal" : "font-light", // size 16 font weight is not working as normal from before
|
|
416
|
+
props.className
|
|
417
|
+
),
|
|
418
|
+
style: __spreadValues({
|
|
419
|
+
fontVariationSettings: variantStyle + `, ${weightStyle}`
|
|
420
|
+
}, props.style),
|
|
421
|
+
children: name
|
|
422
|
+
})
|
|
423
|
+
);
|
|
424
|
+
}
|
|
425
|
+
|
|
621
426
|
// src/components/Paragraph.tsx
|
|
622
|
-
var
|
|
623
|
-
var
|
|
427
|
+
var import_clsx5 = __toESM(require("clsx"), 1);
|
|
428
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
624
429
|
var Paragraph = (_a) => {
|
|
625
430
|
var _b = _a, {
|
|
626
431
|
className,
|
|
@@ -646,13 +451,13 @@ var Paragraph = (_a) => {
|
|
|
646
451
|
"testid"
|
|
647
452
|
]);
|
|
648
453
|
const Element = as;
|
|
649
|
-
return /* @__PURE__ */ (0,
|
|
454
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
650
455
|
Element,
|
|
651
456
|
__spreadProps(__spreadValues({
|
|
652
457
|
id,
|
|
653
458
|
"data-testid": testid
|
|
654
459
|
}, props), {
|
|
655
|
-
className: (0,
|
|
460
|
+
className: (0, import_clsx5.default)(
|
|
656
461
|
typography.paragraph,
|
|
657
462
|
className,
|
|
658
463
|
padded && componentPaddingXUsingComponentGap,
|
|
@@ -671,132 +476,243 @@ var Paragraph = (_a) => {
|
|
|
671
476
|
};
|
|
672
477
|
Paragraph.displayName = "Paragraph";
|
|
673
478
|
|
|
674
|
-
// src/components/
|
|
675
|
-
var
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
479
|
+
// src/components/Stack.tsx
|
|
480
|
+
var import_clsx6 = __toESM(require("clsx"), 1);
|
|
481
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
482
|
+
var getFlexClassNames = ({ items, justify, grow }) => (0, import_clsx6.default)(
|
|
483
|
+
"flex",
|
|
484
|
+
items === "start" && "items-start",
|
|
485
|
+
grow && "grow",
|
|
486
|
+
items === "start" && "items-start",
|
|
487
|
+
items === "center" && "items-center",
|
|
488
|
+
items === "end" && "items-end",
|
|
489
|
+
items === "start-center" && "items-start desktop:items-center",
|
|
490
|
+
justify === "start" && "justify-start",
|
|
491
|
+
justify === "center" && "justify-center",
|
|
492
|
+
justify === "end" && "justify-end",
|
|
493
|
+
justify === "end" && "justify-end",
|
|
494
|
+
justify === "between" && "justify-between",
|
|
495
|
+
justify === "around" && "justify-around"
|
|
496
|
+
);
|
|
497
|
+
var useGapClassNames = (sizing) => {
|
|
498
|
+
return (0, import_clsx6.default)(
|
|
499
|
+
sizing === "layout-group" && "gap-mobile-layout-group-gap desktop:gap-desktop-layout-group-gap compact:gap-compact-layout-group-gap",
|
|
500
|
+
sizing === "layout" && "gap-mobile-layout-gap desktop:gap-desktop-layout-gap compact:gap-compact-layout-gap",
|
|
501
|
+
sizing === "container" && "gap-mobile-container-gap desktop:gap-desktop-container-gap compact:gap-compact-container-gap",
|
|
502
|
+
sizing === "component" && "gap-mobile-component-gap desktop:gap-desktop-component-gap compact:gap-compact-component-gap"
|
|
503
|
+
);
|
|
504
|
+
};
|
|
505
|
+
var Stack = (_a) => {
|
|
506
|
+
var _b = _a, {
|
|
507
|
+
children,
|
|
508
|
+
items,
|
|
509
|
+
justify,
|
|
510
|
+
grow,
|
|
511
|
+
padding,
|
|
512
|
+
paddingX,
|
|
513
|
+
paddingY,
|
|
514
|
+
margin,
|
|
515
|
+
marginX,
|
|
516
|
+
marginY,
|
|
517
|
+
horizontal,
|
|
518
|
+
horizontalMobile,
|
|
519
|
+
elevation = 0,
|
|
520
|
+
rounded,
|
|
521
|
+
centered,
|
|
522
|
+
width,
|
|
523
|
+
minHeight,
|
|
524
|
+
maxWidth,
|
|
525
|
+
minWidth,
|
|
526
|
+
height,
|
|
527
|
+
maxHeight,
|
|
528
|
+
borderColor,
|
|
529
|
+
backgroundColor,
|
|
530
|
+
sizing = "none",
|
|
531
|
+
overflowY = "inherit",
|
|
532
|
+
overflowX = "inherit",
|
|
533
|
+
flexShrink,
|
|
534
|
+
flexGrow,
|
|
535
|
+
position,
|
|
536
|
+
top,
|
|
537
|
+
left,
|
|
538
|
+
id,
|
|
539
|
+
noGap,
|
|
540
|
+
marginTop,
|
|
541
|
+
marginBottom,
|
|
542
|
+
testid,
|
|
543
|
+
bottom,
|
|
544
|
+
zIndex
|
|
545
|
+
} = _b, props = __objRest(_b, [
|
|
546
|
+
"children",
|
|
547
|
+
"items",
|
|
548
|
+
"justify",
|
|
549
|
+
"grow",
|
|
550
|
+
"padding",
|
|
551
|
+
"paddingX",
|
|
552
|
+
"paddingY",
|
|
553
|
+
"margin",
|
|
554
|
+
"marginX",
|
|
555
|
+
"marginY",
|
|
556
|
+
"horizontal",
|
|
557
|
+
"horizontalMobile",
|
|
558
|
+
"elevation",
|
|
559
|
+
"rounded",
|
|
560
|
+
"centered",
|
|
561
|
+
"width",
|
|
562
|
+
"minHeight",
|
|
563
|
+
"maxWidth",
|
|
564
|
+
"minWidth",
|
|
565
|
+
"height",
|
|
566
|
+
"maxHeight",
|
|
567
|
+
"borderColor",
|
|
568
|
+
"backgroundColor",
|
|
569
|
+
"sizing",
|
|
570
|
+
"overflowY",
|
|
571
|
+
"overflowX",
|
|
572
|
+
"flexShrink",
|
|
573
|
+
"flexGrow",
|
|
574
|
+
"position",
|
|
575
|
+
"top",
|
|
576
|
+
"left",
|
|
577
|
+
"id",
|
|
578
|
+
"noGap",
|
|
579
|
+
"marginTop",
|
|
580
|
+
"marginBottom",
|
|
581
|
+
"testid",
|
|
582
|
+
"bottom",
|
|
583
|
+
"zIndex"
|
|
584
|
+
]);
|
|
585
|
+
var _a2, _b2, _c, _d, _e;
|
|
586
|
+
const flexClassNames = getFlexClassNames({ items, justify, grow });
|
|
587
|
+
const gapClassNames = useGapClassNames(sizing);
|
|
588
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
687
589
|
"div",
|
|
688
|
-
{
|
|
590
|
+
__spreadProps(__spreadValues({
|
|
689
591
|
id,
|
|
690
|
-
"data-testid": testid
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
"
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
592
|
+
"data-testid": testid
|
|
593
|
+
}, props), {
|
|
594
|
+
style: {
|
|
595
|
+
height: height === "full" ? "100%" : height !== void 0 ? `${height}px` : void 0,
|
|
596
|
+
maxHeight: maxHeight !== void 0 ? isNaN(+maxHeight) ? maxHeight : `${maxHeight}px` : (_a2 = props.style) == null ? void 0 : _a2.maxHeight,
|
|
597
|
+
maxWidth: maxWidth !== void 0 ? isNaN(+maxWidth) ? maxWidth : `${maxWidth}px` : (_b2 = props.style) == null ? void 0 : _b2.maxWidth,
|
|
598
|
+
minHeight: minHeight !== void 0 ? isNaN(+minHeight) ? minHeight : `${minHeight}px` : (_c = props.style) == null ? void 0 : _c.minHeight,
|
|
599
|
+
width: width !== void 0 && typeof width === "number" ? `${width}px` : void 0,
|
|
600
|
+
minWidth: minWidth !== void 0 ? `${minWidth}px` : void 0,
|
|
601
|
+
border: borderColor ? `1px solid var(--color-${borderColor})` : void 0,
|
|
602
|
+
backgroundColor: backgroundColor ? `var(--color-${backgroundColor})` : void 0,
|
|
603
|
+
flexGrow: flexGrow !== void 0 ? flexGrow : void 0,
|
|
604
|
+
flexShrink: flexShrink !== void 0 ? flexShrink : void 0,
|
|
605
|
+
position: position !== void 0 ? position : void 0,
|
|
606
|
+
top: top !== void 0 ? `${top}px` : void 0,
|
|
607
|
+
bottom: bottom !== void 0 ? `${bottom}px` : void 0,
|
|
608
|
+
left: left !== void 0 ? `${left}px` : void 0,
|
|
609
|
+
borderBlock: (_d = props.style) == null ? void 0 : _d.borderBlock,
|
|
610
|
+
marginInline: (_e = props.style) == null ? void 0 : _e.marginInline,
|
|
611
|
+
zIndex: zIndex !== void 0 ? zIndex : void 0
|
|
612
|
+
},
|
|
613
|
+
className: (0, import_clsx6.default)(
|
|
614
|
+
"scrollbar-thin",
|
|
615
|
+
"max-w-screen",
|
|
616
|
+
width !== "fit" && "w-full",
|
|
617
|
+
width === "full" && "w-full",
|
|
618
|
+
width === "max" && "w-max",
|
|
619
|
+
centered && "mx-auto",
|
|
620
|
+
overflowY == "auto" && "overflow-y-auto",
|
|
621
|
+
overflowY == "hidden" && "overflow-y-hidden",
|
|
622
|
+
overflowY == "scroll" && "overflow-y-scroll",
|
|
623
|
+
overflowX == "auto" && "overflow-x-auto",
|
|
624
|
+
overflowX == "hidden" && "overflow-x-hidden",
|
|
625
|
+
overflowX == "scroll" && "overflow-x-scroll",
|
|
626
|
+
padding && sizing === "container" && "p-mobile-container-padding desktop:p-desktop-container-padding compact:p-desktop-compact-container-padding",
|
|
627
|
+
padding && sizing === "layout" && "p-mobile-layout-padding desktop:p-desktop-layout-padding compact:p-desktop-compact-layout-padding",
|
|
628
|
+
padding && sizing === "layout-group" && "p-mobile-layout-group-padding desktop:p-desktop-layout-group-padding compact:p-desktop-compact-layout-group-padding",
|
|
629
|
+
padding && sizing === "component" && "p-mobile-component-padding desktop:p-desktop-component-padding compact:p-desktop-compact-component-padding",
|
|
630
|
+
paddingX && sizing === "container" && "px-mobile-container-padding desktop:px-desktop-container-padding compact:px-desktop-compact-container-padding",
|
|
631
|
+
paddingX && sizing === "layout" && "px-mobile-layout-padding desktop:px-desktop-layout-padding compact:px-desktop-compact-layout-padding",
|
|
632
|
+
paddingX && sizing === "layout-group" && "px-mobile-layout-group-padding desktop:px-desktop-layout-group-padding compact:px-desktop-compact-layout-group-padding",
|
|
633
|
+
paddingX && sizing === "component" && "px-mobile-component-padding desktop:px-desktop-component-padding compact:px-desktop-compact-component-padding",
|
|
634
|
+
paddingY && sizing === "container" && "py-mobile-container-padding desktop:py-desktop-container-padding compact:py-desktop-compact-container-padding",
|
|
635
|
+
paddingY && sizing === "layout" && "py-mobile-layout-padding desktop:py-desktop-layout-padding compact:py-desktop-compact-layout-padding",
|
|
636
|
+
paddingY && sizing === "layout-group" && paddingYUsingLayoutGroupGap,
|
|
637
|
+
paddingY && sizing === "component" && "py-mobile-component-padding desktop:py-desktop-component-padding compact:py-desktop-compact-component-padding",
|
|
638
|
+
margin && sizing === "container" && "m-mobile-container-padding desktop:m-desktop-container-padding compact:m-compact-container-padding",
|
|
639
|
+
marginX && sizing === "container" && "mx-mobile-container-padding desktop:mx-desktop-container-padding compact:mx-compact-container-padding",
|
|
640
|
+
marginTop && sizing === "container" && "mt-mobile-container-padding desktop:mt-desktop-container-padding compact:mt-compact-container-padding",
|
|
641
|
+
marginBottom && sizing === "container" && "mb-mobile-container-padding desktop:mb-desktop-container-padding compact:mb-compact-container-padding",
|
|
642
|
+
marginY && sizing === "container" && "my-mobile-container-padding desktop:my-desktop-container-padding compact:my-compact-container-padding",
|
|
643
|
+
horizontal ? "desktop:flex-row" : "desktop:flex-col",
|
|
644
|
+
horizontalMobile ? "flex-row" : "flex-col",
|
|
645
|
+
flexClassNames,
|
|
646
|
+
!noGap && gapClassNames,
|
|
647
|
+
elevation === 0 && "shadow-none",
|
|
648
|
+
elevation === 2 && "shadow-2",
|
|
649
|
+
elevation === 4 && "shadow-4",
|
|
650
|
+
elevation === 16 && "shadow-16",
|
|
651
|
+
rounded && "rounded"
|
|
697
652
|
),
|
|
698
|
-
children
|
|
699
|
-
|
|
700
|
-
MobileDataGridHeader,
|
|
701
|
-
{
|
|
702
|
-
id: id ? `${id}-header` : void 0,
|
|
703
|
-
testid: testid ? `${testid}-header` : void 0,
|
|
704
|
-
header
|
|
705
|
-
}
|
|
706
|
-
),
|
|
707
|
-
data.map((item) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
708
|
-
MobileDataGridCard,
|
|
709
|
-
{
|
|
710
|
-
id: id ? `${id}-card-${getId(item)}` : void 0,
|
|
711
|
-
testid: testid ? `${testid}-card-${getId(item)}` : void 0,
|
|
712
|
-
data: item,
|
|
713
|
-
columns,
|
|
714
|
-
renderLink,
|
|
715
|
-
renderChevron
|
|
716
|
-
},
|
|
717
|
-
getId(item)
|
|
718
|
-
))
|
|
719
|
-
]
|
|
720
|
-
}
|
|
653
|
+
children
|
|
654
|
+
})
|
|
721
655
|
);
|
|
722
|
-
}
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
656
|
+
};
|
|
657
|
+
|
|
658
|
+
// src/components/PDFViewer/PDFNavigation.tsx
|
|
659
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
660
|
+
function PdfNavigation({
|
|
661
|
+
currentIndex,
|
|
662
|
+
total,
|
|
663
|
+
onPrev,
|
|
664
|
+
onNext,
|
|
665
|
+
disablePrev,
|
|
666
|
+
disableNext,
|
|
667
|
+
extraActions,
|
|
668
|
+
testid,
|
|
669
|
+
fileName
|
|
727
670
|
}) {
|
|
728
|
-
return /* @__PURE__ */ (0,
|
|
671
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "w-full", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
729
672
|
Stack,
|
|
730
673
|
{
|
|
731
674
|
horizontal: true,
|
|
732
|
-
items: "
|
|
733
|
-
justify: "
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
) }) });
|
|
740
|
-
}
|
|
741
|
-
function MobileDataGridCard({
|
|
742
|
-
data,
|
|
743
|
-
columns,
|
|
744
|
-
renderLink,
|
|
745
|
-
renderChevron,
|
|
746
|
-
id,
|
|
747
|
-
testid
|
|
748
|
-
}) {
|
|
749
|
-
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { id, "data-testid": testid, children: [
|
|
750
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Stack, { sizing: "component", padding: true, children: [
|
|
751
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Stack, { horizontal: true, horizontalMobile: true, items: "center", justify: "between", children: [
|
|
752
|
-
renderLink && renderLink(data),
|
|
753
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Stack, { horizontal: true, horizontalMobile: true, items: "center", justify: "end", children: [
|
|
754
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
675
|
+
items: "center",
|
|
676
|
+
justify: "between",
|
|
677
|
+
sizing: "layout-group",
|
|
678
|
+
testid: testid ? `${testid}-pdf-navigation` : void 0,
|
|
679
|
+
children: [
|
|
680
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(Stack, { horizontal: true, items: "center", children: [
|
|
681
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
755
682
|
Button,
|
|
756
683
|
{
|
|
757
|
-
id: id ? `${id}-docs-button` : void 0,
|
|
758
|
-
testid: testid ? `${testid}-docs-button` : void 0,
|
|
759
684
|
iconOnly: true,
|
|
760
685
|
variant: "tertiary",
|
|
761
|
-
onClick:
|
|
762
|
-
},
|
|
763
|
-
|
|
686
|
+
onClick: onPrev,
|
|
687
|
+
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon, { name: "chevron_backward" }),
|
|
688
|
+
disabled: disablePrev,
|
|
689
|
+
testid: testid ? `${testid}-pdf-file-previous-button` : void 0
|
|
764
690
|
}
|
|
765
691
|
),
|
|
766
|
-
/* @__PURE__ */ (0,
|
|
692
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(Heading3, { className: "text-text-primary-normal whitespace-nowrap", children: [
|
|
693
|
+
currentIndex + 1,
|
|
694
|
+
" / ",
|
|
695
|
+
total
|
|
696
|
+
] }),
|
|
697
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
767
698
|
Button,
|
|
768
699
|
{
|
|
769
|
-
id: id ? `${id}-swap-button` : void 0,
|
|
770
|
-
testid: testid ? `${testid}-swap-button` : void 0,
|
|
771
700
|
iconOnly: true,
|
|
772
701
|
variant: "tertiary",
|
|
773
|
-
onClick:
|
|
774
|
-
},
|
|
775
|
-
|
|
702
|
+
onClick: onNext,
|
|
703
|
+
rightIcon: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon, { name: "chevron_forward" }),
|
|
704
|
+
disabled: disableNext,
|
|
705
|
+
testid: testid ? `${testid}-pdf-file-next-button` : void 0
|
|
776
706
|
}
|
|
777
|
-
)
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
children: [
|
|
785
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Paragraph, { color: "text-secondary-normal", className: "text-left", children: [
|
|
786
|
-
column.header,
|
|
787
|
-
":"
|
|
788
|
-
] }),
|
|
789
|
-
" ",
|
|
790
|
-
column.cell ? column.cell({ row: data }) : String(data[column.accessorKey])
|
|
791
|
-
]
|
|
792
|
-
},
|
|
793
|
-
String(column.accessorKey)
|
|
794
|
-
))
|
|
795
|
-
] }),
|
|
796
|
-
renderChevron && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Stack, { items: "center", justify: "center", horizontal: true, horizontalMobile: true, children: renderChevron(data) })
|
|
797
|
-
] });
|
|
707
|
+
),
|
|
708
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Paragraph, { children: (fileName == null ? void 0 : fileName.endsWith(".pdf")) ? fileName : `${fileName}.pdf` })
|
|
709
|
+
] }),
|
|
710
|
+
extraActions && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "flex items-center gap-2", children: extraActions })
|
|
711
|
+
]
|
|
712
|
+
}
|
|
713
|
+
) });
|
|
798
714
|
}
|
|
799
715
|
// Annotate the CommonJS export names for ESM import in node:
|
|
800
716
|
0 && (module.exports = {
|
|
801
|
-
|
|
717
|
+
PdfNavigation
|
|
802
718
|
});
|