trimble-terra 1.1.23 → 1.1.24
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/src/component/Dialog/Dialog.css +1 -1
- package/dist/src/component/Dialog/Dialog.d.ts +2 -2
- package/dist/src/component/Dialog/Dialog.d.ts.map +1 -1
- package/dist/src/component/Dialog/Dialog.js +21 -21
- package/dist/src/component/ProductDetail/ProductDetail.stories.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
.t2-dialog{position:fixed;z-index:5;background:#fff;max-width:
|
|
1
|
+
@keyframes t2-dialog-open{0%{opacity:0;transform:translate(-50%,-48%) scale(.9)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}.t2-dialog{position:fixed;z-index:5;box-sizing:border-box;background:#fff;max-width:560px;top:40%;left:50%;transform:translate(-50%,-50%);padding:24px 32px;border-radius:10px;box-shadow:0 110px 31px #0000,0 70px 28px #00000003,0 40px 24px #0000000d,0 18px 18px #00000017,0 4px 10px #0000001a;text-transform:none}.t2-dialog p:first-of-type{margin-top:0}.t2-dialog p:last-of-type{margin-bottom:0}@media not (min-width:600px){.t2-dialog{width:90%;height:auto}}.t2-dialog__overlay{position:fixed;top:0;left:0;width:100%;height:100%;z-index:1000;background:#3635454d}.t2-dialog__close{all:unset;position:absolute;top:33px;right:32px;margin:0;padding:0;cursor:pointer}.t2-dialog__close:focus{outline:revert}.t2-dialog__title{color:#353a40;font-size:1.5rem;font-style:normal;font-weight:700;line-height:1.875rem;letter-spacing:1.92px}.t2-dialog__title{letter-spacing:.5px;margin:0 0 8px}.t2-dialog__content,.t2-dialog__content__text,.t2-dialog__content__text-holder{color:#353a40;font-size:1.125rem;font-style:normal;font-weight:400;line-height:2rem;letter-spacing:.18px}@media screen and (max-width:600px){.t2-dialog__content,.t2-dialog__content__text,.t2-dialog__content__text-holder{font-size:1rem;line-height:1.375rem}}.t2-dialog__content--link,.t2-dialog__content__text--link,.t2-dialog__content__text-holder--link{color:#353a40;font-size:1.125rem;font-style:normal;font-weight:400;line-height:2rem;letter-spacing:.18px}@media screen and (max-width:600px){.t2-dialog__content--link,.t2-dialog__content__text--link,.t2-dialog__content__text-holder--link{font-size:1rem;line-height:1.375rem}}.t2-dialog__buttons{display:flex;gap:12px;flex-direction:row;justify-content:flex-end;margin-top:16px}@media not (min-width:600px){.t2-dialog__buttons{flex-direction:column-reverse}}.t2-dialog--opened{animation:t2-dialog-open .2s ease-out}.t2-dialog--closed{display:none}.t2-dialog-loading__section{display:flex;gap:12px;flex-direction:column;align-items:center;justify-content:center;margin-bottom:24px;margin-top:12px}.t2-dialog-loading__text{color:#0063a3;line-height:27px;letter-spacing:.15;color:#353a40;font-size:1.125rem;font-style:normal;font-weight:400;line-height:2rem;letter-spacing:.18px}@media screen and (max-width:600px){.t2-dialog-loading__text{font-size:1rem;line-height:1.375rem}}
|
|
@@ -6,8 +6,8 @@ interface DialogProps {
|
|
|
6
6
|
loadingText?: string;
|
|
7
7
|
primaryButtonText: string;
|
|
8
8
|
secondaryButtonText?: string;
|
|
9
|
-
onCloseButtonClick?: () => void;
|
|
10
|
-
onPrimaryButtonClick?: (
|
|
9
|
+
onCloseButtonClick?: (e?: React.MouseEvent<HTMLButtonElement>) => void;
|
|
10
|
+
onPrimaryButtonClick?: () => void;
|
|
11
11
|
onSecondaryButtonClick?: () => void;
|
|
12
12
|
contentWithLink?: string;
|
|
13
13
|
contentLink?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../src/component/Dialog/Dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,eAAe,CAAC;AAKvB,UAAU,WAAW;IACnB,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,kBAAkB,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../src/component/Dialog/Dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,eAAe,CAAC;AAKvB,UAAU,WAAW;IACnB,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,kBAAkB,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IACvE,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAC;IAClC,sBAAsB,CAAC,EAAE,MAAM,IAAI,CAAC;IACpC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,QAAA,MAAM,MAAM,GAAI,OAAO,WAAW,4CAqGjC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -2,27 +2,27 @@ import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
|
2
2
|
import './Dialog.css';/* empty css */
|
|
3
3
|
import L from "../LoadingSpinner/LoadingSpinner.js";
|
|
4
4
|
import { checkAndSet as x } from "../../utils/checkForDangerouslySet.js";
|
|
5
|
-
import { TerraLink as
|
|
6
|
-
const w = (
|
|
5
|
+
import { TerraLink as i } from "../TerraLink/TerraLink.js";
|
|
6
|
+
const w = (m) => {
|
|
7
7
|
const {
|
|
8
8
|
isOpen: o,
|
|
9
9
|
variant: u,
|
|
10
10
|
title: a,
|
|
11
11
|
content: r,
|
|
12
|
-
loadingText:
|
|
12
|
+
loadingText: c,
|
|
13
13
|
primaryButtonText: h = "OK",
|
|
14
14
|
secondaryButtonText: _ = "Cancel",
|
|
15
|
-
onCloseButtonClick:
|
|
15
|
+
onCloseButtonClick: d,
|
|
16
16
|
onPrimaryButtonClick: l,
|
|
17
|
-
onSecondaryButtonClick:
|
|
18
|
-
contentWithLink:
|
|
17
|
+
onSecondaryButtonClick: e,
|
|
18
|
+
contentWithLink: s,
|
|
19
19
|
contentLink: C,
|
|
20
|
-
contentLinkText:
|
|
21
|
-
} =
|
|
20
|
+
contentLinkText: g
|
|
21
|
+
} = m, p = () => d ? /* @__PURE__ */ t(
|
|
22
22
|
"button",
|
|
23
23
|
{
|
|
24
24
|
className: "t2-dialog__close",
|
|
25
|
-
onClick:
|
|
25
|
+
onClick: d,
|
|
26
26
|
"aria-label": "Close Dialog",
|
|
27
27
|
children: /* @__PURE__ */ t(
|
|
28
28
|
"svg",
|
|
@@ -42,21 +42,21 @@ const w = (g) => {
|
|
|
42
42
|
}
|
|
43
43
|
)
|
|
44
44
|
}
|
|
45
|
-
) : null, k = () => l ||
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
) : null, k = () => l || e ? /* @__PURE__ */ n("div", { className: "t2-dialog__buttons", children: [
|
|
46
|
+
e && /* @__PURE__ */ t(
|
|
47
|
+
i,
|
|
48
48
|
{
|
|
49
49
|
label: _,
|
|
50
|
-
size: "
|
|
51
|
-
onClickHandler:
|
|
50
|
+
size: "large",
|
|
51
|
+
onClickHandler: e
|
|
52
52
|
}
|
|
53
53
|
),
|
|
54
54
|
l && /* @__PURE__ */ t(
|
|
55
|
-
|
|
55
|
+
i,
|
|
56
56
|
{
|
|
57
57
|
label: h,
|
|
58
58
|
primary: !0,
|
|
59
|
-
size: "
|
|
59
|
+
size: "large",
|
|
60
60
|
onClickHandler: l
|
|
61
61
|
}
|
|
62
62
|
)
|
|
@@ -69,20 +69,20 @@ const w = (g) => {
|
|
|
69
69
|
/* @__PURE__ */ t(p, {}),
|
|
70
70
|
u === "loading" && /* @__PURE__ */ n("div", { className: "t2-dialog-loading__section", children: [
|
|
71
71
|
/* @__PURE__ */ t(L, {}),
|
|
72
|
-
|
|
72
|
+
c && /* @__PURE__ */ t("span", { className: "t2-dialog-loading__text", children: c })
|
|
73
73
|
] }),
|
|
74
74
|
a && /* @__PURE__ */ t("h6", { className: "t2-dialog__title", children: a }),
|
|
75
75
|
r && x(r, "t2-dialog__content", null, null),
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
s && C && g && /* @__PURE__ */ n("div", { className: "t2-dialog__content", children: [
|
|
77
|
+
s,
|
|
78
78
|
" ",
|
|
79
79
|
/* @__PURE__ */ t(
|
|
80
|
-
|
|
80
|
+
i,
|
|
81
81
|
{
|
|
82
82
|
className: "t2-dialog__content--link",
|
|
83
83
|
destination: C,
|
|
84
84
|
linkType: "text",
|
|
85
|
-
children:
|
|
85
|
+
children: g
|
|
86
86
|
}
|
|
87
87
|
)
|
|
88
88
|
] }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductDetail.stories.d.ts","sourceRoot":"","sources":["../../../../src/component/ProductDetail/ProductDetail.stories.jsx"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"ProductDetail.stories.d.ts","sourceRoot":"","sources":["../../../../src/component/ProductDetail/ProductDetail.stories.jsx"],"names":[],"mappings":";;;;;;;;;;;;AAiEA,4EAyDC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBA2Nc,gCAER;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAtRP,mFAyDC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBA2Uc,kCAER;;;;;;;;;;;AAtYP,+EAyDC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAyZc,kCAER;;;;;;;;;;;;;AApdP,4EAyDC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAyec,kCAER;;;;;;;;;;;;;;AApiBP,qFAyDC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBA0iBc,kCAER;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BArqBmB,iBAAiB;AA0L3C;;;;;;;;;;;KA6CE;AA5GF;;;;;IA6DE"}
|