@dmsi/wedgekit-react 0.0.495 → 0.0.497
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-34VEVX5H.js +31 -0
- package/dist/{chunk-ETAEB3TA.js → chunk-L3BXRDLP.js} +8 -2
- package/dist/components/CalendarRange.cjs +28 -25
- package/dist/components/CalendarRange.css +21 -3
- package/dist/components/CalendarRange.js +9 -8
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +5 -2
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.css +21 -3
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +9 -8
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +12 -9
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.css +21 -3
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +9 -8
- package/dist/components/DataGrid/PinnedColumns.cjs +23 -20
- package/dist/components/DataGrid/PinnedColumns.css +21 -3
- package/dist/components/DataGrid/PinnedColumns.js +9 -8
- package/dist/components/DataGrid/TableBody/LoadingCell.cjs +8 -5
- package/dist/components/DataGrid/TableBody/LoadingCell.css +21 -3
- package/dist/components/DataGrid/TableBody/LoadingCell.js +9 -8
- package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +10 -7
- package/dist/components/DataGrid/TableBody/TableBodyRow.css +21 -3
- package/dist/components/DataGrid/TableBody/TableBodyRow.js +9 -8
- package/dist/components/DataGrid/TableBody/index.cjs +23 -20
- package/dist/components/DataGrid/TableBody/index.css +21 -3
- package/dist/components/DataGrid/TableBody/index.js +9 -8
- package/dist/components/DataGrid/index.cjs +83 -80
- package/dist/components/DataGrid/index.css +21 -3
- package/dist/components/DataGrid/index.js +9 -8
- package/dist/components/DataGrid/utils.cjs +6 -3
- package/dist/components/DataGrid/utils.css +21 -3
- package/dist/components/DataGrid/utils.js +9 -8
- package/dist/components/DateInput.cjs +34 -31
- package/dist/components/DateInput.css +21 -3
- package/dist/components/DateInput.js +9 -8
- package/dist/components/DateRangeInput.cjs +34 -31
- package/dist/components/DateRangeInput.css +21 -3
- package/dist/components/DateRangeInput.js +9 -8
- package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +11 -8
- package/dist/components/MobileDataGrid/ColumnSelector/index.css +21 -3
- package/dist/components/MobileDataGrid/ColumnSelector/index.js +9 -8
- package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +19 -16
- package/dist/components/MobileDataGrid/MobileDataGridHeader.css +21 -3
- package/dist/components/MobileDataGrid/MobileDataGridHeader.js +9 -8
- package/dist/components/MobileDataGrid/index.cjs +64 -61
- package/dist/components/MobileDataGrid/index.css +21 -3
- package/dist/components/MobileDataGrid/index.js +9 -8
- package/dist/components/OrderCheckIcon.cjs +67 -0
- package/dist/components/OrderCheckIcon.js +7 -0
- package/dist/components/PDFViewer/index.js +3 -3
- package/dist/components/ProductImagePreview/index.js +2 -2
- package/dist/components/SkeletonParagraph.cjs +8 -2
- package/dist/components/SkeletonParagraph.js +1 -1
- package/dist/components/index.cjs +33 -2
- package/dist/components/index.css +21 -3
- package/dist/components/index.js +13 -9
- package/dist/index.css +21 -3
- package/package.json +1 -1
- package/src/components/OrderCheckIcon.tsx +19 -0
- package/src/components/SkeletonParagraph.tsx +9 -1
- package/src/components/index.ts +1 -0
- package/src/index.css +4 -3
- package/dist/{chunk-TPBEID5X.js → chunk-3WCLGTYP.js} +3 -3
- package/dist/{chunk-2A7H5GVB.js → chunk-7LKGHCVT.js} +3 -3
- package/dist/{chunk-DYBJUTGK.js → chunk-XHQOTLG6.js} +3 -3
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
PDFViewer
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-B53XDCLO.js";
|
|
6
|
-
import "../../chunk-JUFBGNWW.js";
|
|
4
|
+
} from "../../chunk-3WCLGTYP.js";
|
|
7
5
|
import "../../chunk-YEZBNQZI.js";
|
|
6
|
+
import "../../chunk-B53XDCLO.js";
|
|
8
7
|
import "../../chunk-S5ZJ3Q7P.js";
|
|
8
|
+
import "../../chunk-JUFBGNWW.js";
|
|
9
9
|
import "../../chunk-X67L3NZI.js";
|
|
10
10
|
import "../../chunk-4RJKB7LC.js";
|
|
11
11
|
import "../../chunk-FG7GNGE3.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ProductImagePreview
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-XHQOTLG6.js";
|
|
4
|
+
import "../../chunk-BQNPOGD5.js";
|
|
4
5
|
import "../../chunk-MBZ55T2D.js";
|
|
5
6
|
import "../../chunk-2IKT6IHB.js";
|
|
6
7
|
import "../../chunk-YCDDBSVU.js";
|
|
7
8
|
import "../../chunk-3X3Y4TMS.js";
|
|
8
|
-
import "../../chunk-BQNPOGD5.js";
|
|
9
9
|
import "../../chunk-AT4AWD6B.js";
|
|
10
10
|
import "../../chunk-Y2GK27RX.js";
|
|
11
11
|
import "../../chunk-QVWYTQKL.js";
|
|
@@ -26,14 +26,20 @@ module.exports = __toCommonJS(SkeletonParagraph_exports);
|
|
|
26
26
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
27
27
|
function SkeletonParagraph({
|
|
28
28
|
className = "",
|
|
29
|
-
heightClassName = "h-6"
|
|
29
|
+
heightClassName = "h-6",
|
|
30
|
+
size = "large"
|
|
30
31
|
}) {
|
|
32
|
+
const sizeClassMap = {
|
|
33
|
+
small: "min-w-10 w-1/4",
|
|
34
|
+
medium: "min-w-20 w-1/2",
|
|
35
|
+
large: "min-w-32 w-full"
|
|
36
|
+
};
|
|
31
37
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
32
38
|
"div",
|
|
33
39
|
{
|
|
34
40
|
"aria-label": "Loading content",
|
|
35
41
|
role: "status",
|
|
36
|
-
className: `skeleton-paragraph ${heightClassName}
|
|
42
|
+
className: `skeleton-paragraph ${heightClassName} ${sizeClassMap[size]} rounded-xs ${className}`
|
|
37
43
|
}
|
|
38
44
|
);
|
|
39
45
|
}
|
|
@@ -79,6 +79,7 @@ __export(components_exports, {
|
|
|
79
79
|
Menu: () => Menu,
|
|
80
80
|
MenuOption: () => MenuOption,
|
|
81
81
|
MobileDataGrid: () => MobileDataGrid,
|
|
82
|
+
OrderCheckIcon: () => OrderCheckIcon,
|
|
82
83
|
PDFViewer: () => PDFViewer,
|
|
83
84
|
Pagination: () => Pagination,
|
|
84
85
|
Paragraph: () => Paragraph,
|
|
@@ -8153,14 +8154,20 @@ Pagination.displayName = "Pagination";
|
|
|
8153
8154
|
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
8154
8155
|
function SkeletonParagraph({
|
|
8155
8156
|
className = "",
|
|
8156
|
-
heightClassName = "h-6"
|
|
8157
|
+
heightClassName = "h-6",
|
|
8158
|
+
size = "large"
|
|
8157
8159
|
}) {
|
|
8160
|
+
const sizeClassMap = {
|
|
8161
|
+
small: "min-w-10 w-1/4",
|
|
8162
|
+
medium: "min-w-20 w-1/2",
|
|
8163
|
+
large: "min-w-32 w-full"
|
|
8164
|
+
};
|
|
8158
8165
|
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
8159
8166
|
"div",
|
|
8160
8167
|
{
|
|
8161
8168
|
"aria-label": "Loading content",
|
|
8162
8169
|
role: "status",
|
|
8163
|
-
className: `skeleton-paragraph ${heightClassName}
|
|
8170
|
+
className: `skeleton-paragraph ${heightClassName} ${sizeClassMap[size]} rounded-xs ${className}`
|
|
8164
8171
|
}
|
|
8165
8172
|
);
|
|
8166
8173
|
}
|
|
@@ -8293,6 +8300,29 @@ function Alert(_a) {
|
|
|
8293
8300
|
})
|
|
8294
8301
|
);
|
|
8295
8302
|
}
|
|
8303
|
+
|
|
8304
|
+
// src/components/OrderCheckIcon.tsx
|
|
8305
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
8306
|
+
function OrderCheckIcon(props) {
|
|
8307
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
8308
|
+
"svg",
|
|
8309
|
+
__spreadProps(__spreadValues({
|
|
8310
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8311
|
+
viewBox: "0 0 37 36",
|
|
8312
|
+
fill: "none",
|
|
8313
|
+
width: 37,
|
|
8314
|
+
height: 36
|
|
8315
|
+
}, props), {
|
|
8316
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
8317
|
+
"path",
|
|
8318
|
+
{
|
|
8319
|
+
d: "M18.457 3.00024C19.6493 3.01827 20.8644 3.13827 22.0283 3.41724C22.8321 3.61234 23.3287 4.42237 23.1337 5.22778C22.9402 6.03178 22.1252 6.5272 21.3242 6.33521C20.3928 6.11026 19.4046 6.01526 18.4658 6.00024C15.2603 6.00924 12.2492 7.26586 9.99018 9.53833C7.72976 11.8108 6.49103 14.829 6.49995 18.0344C6.50895 21.2399 7.7656 24.2495 10.038 26.51C12.303 28.7615 15.3065 30.0002 18.4999 30.0002H18.5341C21.7396 29.9912 24.7507 28.7346 27.0097 26.4622C29.2701 24.1882 30.5089 21.1714 30.4999 17.9661C30.4984 17.1382 31.1673 16.4629 31.9951 16.4612H31.9999C32.8263 16.4612 33.4982 17.13 33.4999 17.9563C33.5119 21.9627 31.9625 25.7354 29.1367 28.5764C26.3123 31.4173 22.5503 32.9881 18.5439 33.0002H18.4999C14.5086 33.0002 10.7542 31.4523 7.92378 28.637C5.08288 25.8126 3.51206 22.0505 3.49995 18.0442C3.48795 14.0363 5.03742 10.265 7.86323 7.42407C10.6877 4.58307 14.4505 3.01224 18.457 3.00024ZM27.872 9.51196C28.418 8.89248 29.3642 8.82637 29.9882 9.37231C30.6107 9.91681 30.6739 10.8645 30.1279 11.4885L19.6279 23.4885C19.3549 23.8004 18.9652 23.9852 18.5498 24.0002H18.4999C18.1025 24.0002 17.7214 23.8428 17.4394 23.5608L12.9394 19.0608C12.3529 18.4743 12.353 17.5262 12.9394 16.9397C13.5259 16.3532 14.474 16.3532 15.0605 16.9397L18.4267 20.3059L27.872 9.51196Z",
|
|
8320
|
+
fill: "#1D1E1E"
|
|
8321
|
+
}
|
|
8322
|
+
)
|
|
8323
|
+
})
|
|
8324
|
+
);
|
|
8325
|
+
}
|
|
8296
8326
|
// Annotate the CommonJS export names for ESM import in node:
|
|
8297
8327
|
0 && (module.exports = {
|
|
8298
8328
|
Accordion,
|
|
@@ -8315,6 +8345,7 @@ function Alert(_a) {
|
|
|
8315
8345
|
Menu,
|
|
8316
8346
|
MenuOption,
|
|
8317
8347
|
MobileDataGrid,
|
|
8348
|
+
OrderCheckIcon,
|
|
8318
8349
|
PDFViewer,
|
|
8319
8350
|
Pagination,
|
|
8320
8351
|
Paragraph,
|
|
@@ -838,6 +838,12 @@
|
|
|
838
838
|
.\!w-20 {
|
|
839
839
|
width: calc(var(--spacing) * 20) !important;
|
|
840
840
|
}
|
|
841
|
+
.w-1\/2 {
|
|
842
|
+
width: calc(1/2 * 100%);
|
|
843
|
+
}
|
|
844
|
+
.w-1\/4 {
|
|
845
|
+
width: calc(1/4 * 100%);
|
|
846
|
+
}
|
|
841
847
|
.w-2\/3 {
|
|
842
848
|
width: calc(2/3 * 100%);
|
|
843
849
|
}
|
|
@@ -922,6 +928,9 @@
|
|
|
922
928
|
.min-w-0 {
|
|
923
929
|
min-width: calc(var(--spacing) * 0);
|
|
924
930
|
}
|
|
931
|
+
.min-w-10 {
|
|
932
|
+
min-width: calc(var(--spacing) * 10);
|
|
933
|
+
}
|
|
925
934
|
.min-w-20 {
|
|
926
935
|
min-width: calc(var(--spacing) * 20);
|
|
927
936
|
}
|
|
@@ -4678,6 +4687,7 @@
|
|
|
4678
4687
|
position: relative;
|
|
4679
4688
|
overflow: hidden;
|
|
4680
4689
|
background-color: #f7f7f7;
|
|
4690
|
+
opacity: 0.85;
|
|
4681
4691
|
}
|
|
4682
4692
|
.skeleton-paragraph::after {
|
|
4683
4693
|
content: "";
|
|
@@ -4687,9 +4697,17 @@
|
|
|
4687
4697
|
background-image:
|
|
4688
4698
|
linear-gradient(
|
|
4689
4699
|
90deg,
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
|
|
4700
|
+
transparent 0%,
|
|
4701
|
+
color-mix(in srgb, #ffffff 60%, transparent) 50%,
|
|
4702
|
+
transparent 100%);
|
|
4703
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
4704
|
+
background-image:
|
|
4705
|
+
linear-gradient(
|
|
4706
|
+
90deg,
|
|
4707
|
+
transparent 0%,
|
|
4708
|
+
color-mix(in srgb, var(--color-neutral-000) 60%, transparent) 50%,
|
|
4709
|
+
transparent 100%);
|
|
4710
|
+
}
|
|
4693
4711
|
animation: skeleton-shimmer 1.4s ease-in-out infinite;
|
|
4694
4712
|
}
|
|
4695
4713
|
@keyframes skeleton-shimmer {
|
package/dist/components/index.js
CHANGED
|
@@ -2,44 +2,47 @@ import {
|
|
|
2
2
|
DataGrid,
|
|
3
3
|
DateInput,
|
|
4
4
|
MobileDataGrid
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-7LKGHCVT.js";
|
|
6
6
|
import "../chunk-M7INAUAJ.js";
|
|
7
7
|
import "../chunk-4Q7T4GJ2.js";
|
|
8
8
|
import "../chunk-3DEYCNUE.js";
|
|
9
9
|
import {
|
|
10
10
|
ProductImagePreview
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-XHQOTLG6.js";
|
|
12
|
+
import "../chunk-BQNPOGD5.js";
|
|
12
13
|
import {
|
|
13
14
|
SearchResultImage
|
|
14
15
|
} from "../chunk-Y5GD2FJA.js";
|
|
15
16
|
import {
|
|
16
17
|
PDFViewer
|
|
17
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-3WCLGTYP.js";
|
|
19
|
+
import "../chunk-YEZBNQZI.js";
|
|
18
20
|
import "../chunk-B53XDCLO.js";
|
|
21
|
+
import "../chunk-S5ZJ3Q7P.js";
|
|
19
22
|
import "../chunk-MBZ55T2D.js";
|
|
20
23
|
import "../chunk-2IKT6IHB.js";
|
|
21
24
|
import "../chunk-YCDDBSVU.js";
|
|
22
25
|
import "../chunk-3X3Y4TMS.js";
|
|
23
|
-
import "../chunk-BQNPOGD5.js";
|
|
24
26
|
import "../chunk-QMSPTD6L.js";
|
|
25
27
|
import "../chunk-XIXQUEYC.js";
|
|
26
28
|
import "../chunk-5IFPG6TS.js";
|
|
27
29
|
import "../chunk-AJ5M6MVX.js";
|
|
28
30
|
import "../chunk-KW6V7O3H.js";
|
|
29
31
|
import "../chunk-JUFBGNWW.js";
|
|
30
|
-
import "../chunk-YEZBNQZI.js";
|
|
31
|
-
import "../chunk-S5ZJ3Q7P.js";
|
|
32
|
-
import "../chunk-AT4AWD6B.js";
|
|
33
|
-
import "../chunk-EWGHVZL5.js";
|
|
34
32
|
import {
|
|
35
33
|
Tooltip
|
|
36
34
|
} from "../chunk-7GHD74J3.js";
|
|
35
|
+
import "../chunk-AT4AWD6B.js";
|
|
36
|
+
import "../chunk-EWGHVZL5.js";
|
|
37
37
|
import {
|
|
38
38
|
SimpleTable
|
|
39
39
|
} from "../chunk-7BVUTFZ5.js";
|
|
40
40
|
import {
|
|
41
41
|
SkeletonParagraph
|
|
42
|
-
} from "../chunk-
|
|
42
|
+
} from "../chunk-L3BXRDLP.js";
|
|
43
|
+
import {
|
|
44
|
+
OrderCheckIcon
|
|
45
|
+
} from "../chunk-34VEVX5H.js";
|
|
43
46
|
import {
|
|
44
47
|
Pagination
|
|
45
48
|
} from "../chunk-GRGDX7JC.js";
|
|
@@ -141,6 +144,7 @@ export {
|
|
|
141
144
|
Menu,
|
|
142
145
|
MenuOption,
|
|
143
146
|
MobileDataGrid,
|
|
147
|
+
OrderCheckIcon,
|
|
144
148
|
PDFViewer,
|
|
145
149
|
Pagination,
|
|
146
150
|
Paragraph,
|
package/dist/index.css
CHANGED
|
@@ -816,6 +816,12 @@
|
|
|
816
816
|
.\!w-20 {
|
|
817
817
|
width: calc(var(--spacing) * 20) !important;
|
|
818
818
|
}
|
|
819
|
+
.w-1\/2 {
|
|
820
|
+
width: calc(1/2 * 100%);
|
|
821
|
+
}
|
|
822
|
+
.w-1\/4 {
|
|
823
|
+
width: calc(1/4 * 100%);
|
|
824
|
+
}
|
|
819
825
|
.w-2\/3 {
|
|
820
826
|
width: calc(2/3 * 100%);
|
|
821
827
|
}
|
|
@@ -900,6 +906,9 @@
|
|
|
900
906
|
.min-w-0 {
|
|
901
907
|
min-width: calc(var(--spacing) * 0);
|
|
902
908
|
}
|
|
909
|
+
.min-w-10 {
|
|
910
|
+
min-width: calc(var(--spacing) * 10);
|
|
911
|
+
}
|
|
903
912
|
.min-w-20 {
|
|
904
913
|
min-width: calc(var(--spacing) * 20);
|
|
905
914
|
}
|
|
@@ -4656,6 +4665,7 @@
|
|
|
4656
4665
|
position: relative;
|
|
4657
4666
|
overflow: hidden;
|
|
4658
4667
|
background-color: #f7f7f7;
|
|
4668
|
+
opacity: 0.85;
|
|
4659
4669
|
}
|
|
4660
4670
|
.skeleton-paragraph::after {
|
|
4661
4671
|
content: "";
|
|
@@ -4665,9 +4675,17 @@
|
|
|
4665
4675
|
background-image:
|
|
4666
4676
|
linear-gradient(
|
|
4667
4677
|
90deg,
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4678
|
+
transparent 0%,
|
|
4679
|
+
color-mix(in srgb, #ffffff 60%, transparent) 50%,
|
|
4680
|
+
transparent 100%);
|
|
4681
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
4682
|
+
background-image:
|
|
4683
|
+
linear-gradient(
|
|
4684
|
+
90deg,
|
|
4685
|
+
transparent 0%,
|
|
4686
|
+
color-mix(in srgb, var(--color-neutral-000) 60%, transparent) 50%,
|
|
4687
|
+
transparent 100%);
|
|
4688
|
+
}
|
|
4671
4689
|
animation: skeleton-shimmer 1.4s ease-in-out infinite;
|
|
4672
4690
|
}
|
|
4673
4691
|
@keyframes skeleton-shimmer {
|
package/package.json
CHANGED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SVGProps } from "react";
|
|
2
|
+
|
|
3
|
+
export function OrderCheckIcon(props: SVGProps<SVGSVGElement>) {
|
|
4
|
+
return (
|
|
5
|
+
<svg
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
viewBox="0 0 37 36"
|
|
8
|
+
fill="none"
|
|
9
|
+
width={37}
|
|
10
|
+
height={36}
|
|
11
|
+
{...props}
|
|
12
|
+
>
|
|
13
|
+
<path
|
|
14
|
+
d="M18.457 3.00024C19.6493 3.01827 20.8644 3.13827 22.0283 3.41724C22.8321 3.61234 23.3287 4.42237 23.1337 5.22778C22.9402 6.03178 22.1252 6.5272 21.3242 6.33521C20.3928 6.11026 19.4046 6.01526 18.4658 6.00024C15.2603 6.00924 12.2492 7.26586 9.99018 9.53833C7.72976 11.8108 6.49103 14.829 6.49995 18.0344C6.50895 21.2399 7.7656 24.2495 10.038 26.51C12.303 28.7615 15.3065 30.0002 18.4999 30.0002H18.5341C21.7396 29.9912 24.7507 28.7346 27.0097 26.4622C29.2701 24.1882 30.5089 21.1714 30.4999 17.9661C30.4984 17.1382 31.1673 16.4629 31.9951 16.4612H31.9999C32.8263 16.4612 33.4982 17.13 33.4999 17.9563C33.5119 21.9627 31.9625 25.7354 29.1367 28.5764C26.3123 31.4173 22.5503 32.9881 18.5439 33.0002H18.4999C14.5086 33.0002 10.7542 31.4523 7.92378 28.637C5.08288 25.8126 3.51206 22.0505 3.49995 18.0442C3.48795 14.0363 5.03742 10.265 7.86323 7.42407C10.6877 4.58307 14.4505 3.01224 18.457 3.00024ZM27.872 9.51196C28.418 8.89248 29.3642 8.82637 29.9882 9.37231C30.6107 9.91681 30.6739 10.8645 30.1279 11.4885L19.6279 23.4885C19.3549 23.8004 18.9652 23.9852 18.5498 24.0002H18.4999C18.1025 24.0002 17.7214 23.8428 17.4394 23.5608L12.9394 19.0608C12.3529 18.4743 12.353 17.5262 12.9394 16.9397C13.5259 16.3532 14.474 16.3532 15.0605 16.9397L18.4267 20.3059L27.872 9.51196Z"
|
|
15
|
+
fill="#1D1E1E"
|
|
16
|
+
/>
|
|
17
|
+
</svg>
|
|
18
|
+
);
|
|
19
|
+
}
|
|
@@ -3,6 +3,8 @@ interface SkeletonParagraphProps {
|
|
|
3
3
|
className?: string;
|
|
4
4
|
/** Height of the skeleton (tailwind height utility), defaults to h-6 */
|
|
5
5
|
heightClassName?: string;
|
|
6
|
+
/** Size of the skeleton, affects widthClassName */
|
|
7
|
+
size?: "small" | "medium" | "large";
|
|
6
8
|
}
|
|
7
9
|
|
|
8
10
|
/**
|
|
@@ -12,12 +14,18 @@ interface SkeletonParagraphProps {
|
|
|
12
14
|
export function SkeletonParagraph({
|
|
13
15
|
className = "",
|
|
14
16
|
heightClassName = "h-6",
|
|
17
|
+
size = "large",
|
|
15
18
|
}: SkeletonParagraphProps) {
|
|
19
|
+
const sizeClassMap: Record<string, string> = {
|
|
20
|
+
small: "min-w-10 w-1/4",
|
|
21
|
+
medium: "min-w-20 w-1/2",
|
|
22
|
+
large: "min-w-32 w-full",
|
|
23
|
+
};
|
|
16
24
|
return (
|
|
17
25
|
<div
|
|
18
26
|
aria-label="Loading content"
|
|
19
27
|
role="status"
|
|
20
|
-
className={`skeleton-paragraph ${heightClassName}
|
|
28
|
+
className={`skeleton-paragraph ${heightClassName} ${sizeClassMap[size]} rounded-xs ${className}`}
|
|
21
29
|
/>
|
|
22
30
|
);
|
|
23
31
|
}
|
package/src/components/index.ts
CHANGED
package/src/index.css
CHANGED
|
@@ -639,6 +639,7 @@
|
|
|
639
639
|
position: relative;
|
|
640
640
|
overflow: hidden;
|
|
641
641
|
background-color: theme("colors.neutral.100");
|
|
642
|
+
opacity: 0.85;
|
|
642
643
|
}
|
|
643
644
|
|
|
644
645
|
.skeleton-paragraph::after {
|
|
@@ -648,9 +649,9 @@
|
|
|
648
649
|
transform: translateX(-100%);
|
|
649
650
|
background-image: linear-gradient(
|
|
650
651
|
90deg,
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
652
|
+
transparent 0%,
|
|
653
|
+
color-mix(in srgb, var(--color-neutral-000) 60%, transparent) 50%,
|
|
654
|
+
transparent 100%
|
|
654
655
|
);
|
|
655
656
|
animation: skeleton-shimmer 1.4s ease-in-out infinite;
|
|
656
657
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
PDFElement
|
|
3
|
+
} from "./chunk-YEZBNQZI.js";
|
|
1
4
|
import {
|
|
2
5
|
PdfNavigation
|
|
3
6
|
} from "./chunk-B53XDCLO.js";
|
|
4
7
|
import {
|
|
5
8
|
DownloadIcon
|
|
6
9
|
} from "./chunk-JUFBGNWW.js";
|
|
7
|
-
import {
|
|
8
|
-
PDFElement
|
|
9
|
-
} from "./chunk-YEZBNQZI.js";
|
|
10
10
|
import {
|
|
11
11
|
Modal
|
|
12
12
|
} from "./chunk-X67L3NZI.js";
|
|
@@ -10,12 +10,12 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
useGridContext
|
|
12
12
|
} from "./chunk-5IFPG6TS.js";
|
|
13
|
-
import {
|
|
14
|
-
Theme
|
|
15
|
-
} from "./chunk-EWGHVZL5.js";
|
|
16
13
|
import {
|
|
17
14
|
Tooltip
|
|
18
15
|
} from "./chunk-7GHD74J3.js";
|
|
16
|
+
import {
|
|
17
|
+
Theme
|
|
18
|
+
} from "./chunk-EWGHVZL5.js";
|
|
19
19
|
import {
|
|
20
20
|
Select
|
|
21
21
|
} from "./chunk-HVNHTM3P.js";
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ZoomWindow
|
|
3
|
+
} from "./chunk-BQNPOGD5.js";
|
|
1
4
|
import {
|
|
2
5
|
CarouselPagination
|
|
3
6
|
} from "./chunk-MBZ55T2D.js";
|
|
@@ -10,9 +13,6 @@ import {
|
|
|
10
13
|
import {
|
|
11
14
|
Thumbnail
|
|
12
15
|
} from "./chunk-3X3Y4TMS.js";
|
|
13
|
-
import {
|
|
14
|
-
ZoomWindow
|
|
15
|
-
} from "./chunk-BQNPOGD5.js";
|
|
16
16
|
import {
|
|
17
17
|
Grid
|
|
18
18
|
} from "./chunk-Y2GK27RX.js";
|