@planningcenter/tapestry-migration-cli 2.6.0 → 3.0.0-rc.10
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.
|
@@ -153,7 +153,7 @@ const videoCamera = "M10.176,12.838h-8.60089c-0.59377,0 -1.07511,-0.4814 -1.0751
|
|
|
153
153
|
const viewCardStack = "M15.3333,0c0.3682,0 0.6667,0.29848 0.6667,0.66667v1.33333c0,0.36819 -0.2985,0.66667 -0.6667,0.66667h-14.66663c-0.36819,0 -0.66667,-0.29848 -0.66667,-0.66667v-1.33333c0,-0.36819 0.29848,-0.66667 0.66667,-0.66667zM0,5.33333c0,-0.36819 0.29848,-0.66666 0.66667,-0.66666h14.66663c0.3682,0 0.6667,0.29847 0.6667,0.66666v5.33337c0,0.3682 -0.2985,0.6666 -0.6667,0.6666h-14.66663c-0.36819,0 -0.66667,-0.2984 -0.66667,-0.6666zM15.3333,13.3333c0.3682,0 0.6667,0.2985 0.6667,0.6667v1.3333c0,0.3682 -0.2985,0.6667 -0.6667,0.6667h-14.66663c-0.36819,0 -0.66667,-0.2985 -0.66667,-0.6667v-1.3333c0,-0.3682 0.29848,-0.6667 0.66667,-0.6667z";
|
|
154
154
|
const viewTable = "M14,0c1.1046,0 2,0.89543 2,2v2h-16v-2c0,-1.10457 0.89543,-2 2,-2zM16,10h-7v-4h7zM9,12h7v2c0,1.1046 -0.8954,2 -2,2h-5zM7,16h-5c-1.10457,0 -2,-0.8954 -2,-2v-2h7zM7,10h-7v-4h7z";
|
|
155
155
|
const xCircle = "M11.3951,10.2621l-2.26245,-2.2621l2.26245,-2.26215l-1.1317,-1.1316l-2.2625,2.26215l-2.26246,-2.26215l-1.13175,1.1316l2.26246,2.26215l-2.26246,2.2621l1.13175,1.1316l2.26246,-2.2621l2.2625,2.2621zM16,8c0,2.1214 -0.8421,4.156 -2.3414,5.6569c-1.119,1.1188 -2.5446,1.8807 -4.09668,2.1894c-1.55205,0.3087 -3.16079,0.1502 -4.62278,-0.4553c-1.46199,-0.6055 -2.71157,-1.6309 -3.59073,-2.9465c-0.87916,-1.3156 -1.34841,-2.86226 -1.34841,-4.4445c0,-1.58224 0.46925,-3.12895 1.34841,-4.44453c0.87916,-1.31559 2.12874,-2.34097 3.59073,-2.94648c1.46199,-0.60551 3.07073,-0.76395 4.62278,-0.45529c1.55208,0.30866 2.97768,1.07056 4.09668,2.18935c1.4993,1.50098 2.3414,3.5356 2.3414,5.65695z";
|
|
156
|
-
const x$
|
|
156
|
+
const x$1 = "M9.88,8.035l5.7,5.7l-1.9,1.9l-5.7,-5.7l-5.7,5.7l-1.89999,-1.9l5.7,-5.7l-5.69999,-5.7l1.9,-1.9l5.7,5.7l5.7,-5.7l1.9,1.9z";
|
|
157
157
|
const r$5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
158
158
|
__proto__: null,
|
|
159
159
|
bell,
|
|
@@ -308,7 +308,7 @@ const r$5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
308
308
|
videoCamera,
|
|
309
309
|
viewCardStack,
|
|
310
310
|
viewTable,
|
|
311
|
-
x: x$
|
|
311
|
+
x: x$1,
|
|
312
312
|
xCircle
|
|
313
313
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
314
314
|
const checkbox0 = "M12,1c1.65685,0 3,1.34315 3,3v8c0,1.65685 -1.34315,3 -3,3h-8c-1.65685,0 -3,-1.34315 -3,-3v-8c0,-1.65685 1.34315,-3 3,-3z";
|
|
@@ -320,7 +320,7 @@ const radio0 = "M15,8c0,3.864 -3.136,7 -7,7c-3.864,0 -7,-3.136 -7,-7c0,-3.864 3.
|
|
|
320
320
|
const radio1 = "M11,8c0,1.656 -1.344,3 -3,3c-1.656,0 -3,-1.344 -3,-3c0,-1.656 1.344,-3 3,-3c1.656,0 3,1.344 3,3z";
|
|
321
321
|
const rightChevron = "M11.175,8l-5,5l-1.175,-1.175l3.81667,-3.825l-3.81667,-3.825l1.175,-1.175z";
|
|
322
322
|
const upChevron = "M13,10l-1.175,1.175l-3.825,-3.81667l-3.825,3.81667l-1.175,-1.175l5,-5z";
|
|
323
|
-
const o$
|
|
323
|
+
const o$5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
324
324
|
__proto__: null,
|
|
325
325
|
checkbox0,
|
|
326
326
|
checkbox1,
|
|
@@ -351,7 +351,7 @@ var hasRequiredReact_production_min;
|
|
|
351
351
|
function requireReact_production_min() {
|
|
352
352
|
if (hasRequiredReact_production_min) return react_production_min;
|
|
353
353
|
hasRequiredReact_production_min = 1;
|
|
354
|
-
var l2 = Symbol.for("react.element"), n2 = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), q = Symbol.for("react.strict_mode"), r2 = Symbol.for("react.profiler"), t2 = Symbol.for("react.provider"), u2 = Symbol.for("react.context"), v2 = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), x2 = Symbol.for("react.memo"),
|
|
354
|
+
var l2 = Symbol.for("react.element"), n2 = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), q = Symbol.for("react.strict_mode"), r2 = Symbol.for("react.profiler"), t2 = Symbol.for("react.provider"), u2 = Symbol.for("react.context"), v2 = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), x2 = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), z = Symbol.iterator;
|
|
355
355
|
function A(a2) {
|
|
356
356
|
if (null === a2 || "object" !== typeof a2) return null;
|
|
357
357
|
a2 = z && a2[z] || a2["@@iterator"];
|
|
@@ -392,8 +392,8 @@ function requireReact_production_min() {
|
|
|
392
392
|
H.isPureReactComponent = true;
|
|
393
393
|
var I = Array.isArray, J = Object.prototype.hasOwnProperty, K = { current: null }, L = { key: true, ref: true, __self: true, __source: true };
|
|
394
394
|
function M(a2, b2, e2) {
|
|
395
|
-
var d2, c2 = {},
|
|
396
|
-
if (null != b2) for (d2 in void 0 !== b2.ref && (h2 = b2.ref), void 0 !== b2.key && (
|
|
395
|
+
var d2, c2 = {}, k2 = null, h2 = null;
|
|
396
|
+
if (null != b2) for (d2 in void 0 !== b2.ref && (h2 = b2.ref), void 0 !== b2.key && (k2 = "" + b2.key), b2) J.call(b2, d2) && !L.hasOwnProperty(d2) && (c2[d2] = b2[d2]);
|
|
397
397
|
var g = arguments.length - 2;
|
|
398
398
|
if (1 === g) c2.children = e2;
|
|
399
399
|
else if (1 < g) {
|
|
@@ -401,12 +401,12 @@ function requireReact_production_min() {
|
|
|
401
401
|
c2.children = f;
|
|
402
402
|
}
|
|
403
403
|
if (a2 && a2.defaultProps) for (d2 in g = a2.defaultProps, g) void 0 === c2[d2] && (c2[d2] = g[d2]);
|
|
404
|
-
return { $$typeof: l2, type: a2, key:
|
|
404
|
+
return { $$typeof: l2, type: a2, key: k2, ref: h2, props: c2, _owner: K.current };
|
|
405
405
|
}
|
|
406
406
|
function N(a2, b2) {
|
|
407
407
|
return { $$typeof: l2, type: a2.type, key: b2, ref: a2.ref, props: a2.props, _owner: a2._owner };
|
|
408
408
|
}
|
|
409
|
-
function
|
|
409
|
+
function O2(a2) {
|
|
410
410
|
return "object" === typeof a2 && null !== a2 && a2.$$typeof === l2;
|
|
411
411
|
}
|
|
412
412
|
function escape(a2) {
|
|
@@ -420,11 +420,11 @@ function requireReact_production_min() {
|
|
|
420
420
|
return "object" === typeof a2 && null !== a2 && null != a2.key ? escape("" + a2.key) : b2.toString(36);
|
|
421
421
|
}
|
|
422
422
|
function R(a2, b2, e2, d2, c2) {
|
|
423
|
-
var
|
|
424
|
-
if ("undefined" ===
|
|
423
|
+
var k2 = typeof a2;
|
|
424
|
+
if ("undefined" === k2 || "boolean" === k2) a2 = null;
|
|
425
425
|
var h2 = false;
|
|
426
426
|
if (null === a2) h2 = true;
|
|
427
|
-
else switch (
|
|
427
|
+
else switch (k2) {
|
|
428
428
|
case "string":
|
|
429
429
|
case "number":
|
|
430
430
|
h2 = true;
|
|
@@ -438,16 +438,16 @@ function requireReact_production_min() {
|
|
|
438
438
|
}
|
|
439
439
|
if (h2) return h2 = a2, c2 = c2(h2), a2 = "" === d2 ? "." + Q(h2, 0) : d2, I(c2) ? (e2 = "", null != a2 && (e2 = a2.replace(P, "$&/") + "/"), R(c2, b2, e2, "", function(a3) {
|
|
440
440
|
return a3;
|
|
441
|
-
})) : null != c2 && (
|
|
441
|
+
})) : null != c2 && (O2(c2) && (c2 = N(c2, e2 + (!c2.key || h2 && h2.key === c2.key ? "" : ("" + c2.key).replace(P, "$&/") + "/") + a2)), b2.push(c2)), 1;
|
|
442
442
|
h2 = 0;
|
|
443
443
|
d2 = "" === d2 ? "." : d2 + ":";
|
|
444
444
|
if (I(a2)) for (var g = 0; g < a2.length; g++) {
|
|
445
|
-
|
|
446
|
-
var f = d2 + Q(
|
|
447
|
-
h2 += R(
|
|
445
|
+
k2 = a2[g];
|
|
446
|
+
var f = d2 + Q(k2, g);
|
|
447
|
+
h2 += R(k2, b2, e2, f, c2);
|
|
448
448
|
}
|
|
449
|
-
else if (f = A(a2), "function" === typeof f) for (a2 = f.call(a2), g = 0; !(
|
|
450
|
-
else if ("object" ===
|
|
449
|
+
else if (f = A(a2), "function" === typeof f) for (a2 = f.call(a2), g = 0; !(k2 = a2.next()).done; ) k2 = k2.value, f = d2 + Q(k2, g++), h2 += R(k2, b2, e2, f, c2);
|
|
450
|
+
else if ("object" === k2) throw b2 = String(a2), Error("Objects are not valid as a React child (found: " + ("[object Object]" === b2 ? "object with keys {" + Object.keys(a2).join(", ") + "}" : b2) + "). If you meant to render a collection of children, use an array instead.");
|
|
451
451
|
return h2;
|
|
452
452
|
}
|
|
453
453
|
function S(a2, b2, e2) {
|
|
@@ -491,7 +491,7 @@ function requireReact_production_min() {
|
|
|
491
491
|
return a3;
|
|
492
492
|
}) || [];
|
|
493
493
|
}, only: function(a2) {
|
|
494
|
-
if (!
|
|
494
|
+
if (!O2(a2)) throw Error("React.Children.only expected to receive a single React element child.");
|
|
495
495
|
return a2;
|
|
496
496
|
} };
|
|
497
497
|
react_production_min.Component = E;
|
|
@@ -504,9 +504,9 @@ function requireReact_production_min() {
|
|
|
504
504
|
react_production_min.act = X;
|
|
505
505
|
react_production_min.cloneElement = function(a2, b2, e2) {
|
|
506
506
|
if (null === a2 || void 0 === a2) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + a2 + ".");
|
|
507
|
-
var d2 = C2({}, a2.props), c2 = a2.key,
|
|
507
|
+
var d2 = C2({}, a2.props), c2 = a2.key, k2 = a2.ref, h2 = a2._owner;
|
|
508
508
|
if (null != b2) {
|
|
509
|
-
void 0 !== b2.ref && (
|
|
509
|
+
void 0 !== b2.ref && (k2 = b2.ref, h2 = K.current);
|
|
510
510
|
void 0 !== b2.key && (c2 = "" + b2.key);
|
|
511
511
|
if (a2.type && a2.type.defaultProps) var g = a2.type.defaultProps;
|
|
512
512
|
for (f in b2) J.call(b2, f) && !L.hasOwnProperty(f) && (d2[f] = void 0 === b2[f] && void 0 !== g ? g[f] : b2[f]);
|
|
@@ -518,7 +518,7 @@ function requireReact_production_min() {
|
|
|
518
518
|
for (var m2 = 0; m2 < f; m2++) g[m2] = arguments[m2 + 2];
|
|
519
519
|
d2.children = g;
|
|
520
520
|
}
|
|
521
|
-
return { $$typeof: l2, type: a2.type, key: c2, ref:
|
|
521
|
+
return { $$typeof: l2, type: a2.type, key: c2, ref: k2, props: d2, _owner: h2 };
|
|
522
522
|
};
|
|
523
523
|
react_production_min.createContext = function(a2) {
|
|
524
524
|
a2 = { $$typeof: u2, _currentValue: a2, _currentValue2: a2, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null };
|
|
@@ -537,9 +537,9 @@ function requireReact_production_min() {
|
|
|
537
537
|
react_production_min.forwardRef = function(a2) {
|
|
538
538
|
return { $$typeof: v2, render: a2 };
|
|
539
539
|
};
|
|
540
|
-
react_production_min.isValidElement =
|
|
540
|
+
react_production_min.isValidElement = O2;
|
|
541
541
|
react_production_min.lazy = function(a2) {
|
|
542
|
-
return { $$typeof:
|
|
542
|
+
return { $$typeof: y, _payload: { _status: -1, _result: a2 }, _init: T };
|
|
543
543
|
};
|
|
544
544
|
react_production_min.memo = function(a2, b2) {
|
|
545
545
|
return { $$typeof: x2, type: a2, compare: void 0 === b2 ? null : b2 };
|
|
@@ -2725,8 +2725,8 @@ const tokens = {
|
|
|
2725
2725
|
"--t-border-radius-lg": "8px",
|
|
2726
2726
|
"--t-border-radius-xl": "16px",
|
|
2727
2727
|
"--t-border-radius-round": "56px",
|
|
2728
|
-
"--t-border-radius
|
|
2729
|
-
"--t-border-width
|
|
2728
|
+
"--t-border-radius": "4px",
|
|
2729
|
+
"--t-border-width": "1px",
|
|
2730
2730
|
"--t-border-width-thick": "2px",
|
|
2731
2731
|
"--t-border-size-default": "1px",
|
|
2732
2732
|
"--t-border-size-thick": "2px",
|
|
@@ -2739,6 +2739,7 @@ const tokens = {
|
|
|
2739
2739
|
"--t-spacing-7": "56px",
|
|
2740
2740
|
"--t-spacing-fourth": "2px",
|
|
2741
2741
|
"--t-spacing-half": "4px",
|
|
2742
|
+
"--t-spacing-1-half": "12px",
|
|
2742
2743
|
"--t-element-size-3xl": "48px",
|
|
2743
2744
|
"--t-element-size-2xl": "32px",
|
|
2744
2745
|
"--t-element-size-xl": "24px",
|
|
@@ -2771,13 +2772,13 @@ const tokens = {
|
|
|
2771
2772
|
"--t-avatar-size-48": "48px",
|
|
2772
2773
|
"--t-avatar-size-72": "72px",
|
|
2773
2774
|
"--t-avatar-size-112": "112px",
|
|
2774
|
-
"--t-text-color-
|
|
2775
|
-
"--t-text-color
|
|
2776
|
-
"--t-text-color-
|
|
2777
|
-
"--t-text-color-
|
|
2778
|
-
"--t-text-color-
|
|
2779
|
-
"--t-text-color-
|
|
2780
|
-
"--t-text-color-interaction
|
|
2775
|
+
"--t-text-color-headline": "hsl(0, 0%, 12%)",
|
|
2776
|
+
"--t-text-color": "hsl(0, 0%, 24%)",
|
|
2777
|
+
"--t-text-color-secondary": "hsl(0, 0%, 42%)",
|
|
2778
|
+
"--t-text-color-disabled": "hsl(0, 0%, 81%)",
|
|
2779
|
+
"--t-text-color-placeholder": "hsl(0, 0%, 58%)",
|
|
2780
|
+
"--t-text-color-inverted": "hsl(0, 0%, 100%)",
|
|
2781
|
+
"--t-text-color-interaction": "hsl(204, 100%, 40%)",
|
|
2781
2782
|
"--t-text-color-interaction-hover": "hsl(204, 100%, 35%)",
|
|
2782
2783
|
"--t-text-color-interaction-active": "hsl(204, 100%, 30%)",
|
|
2783
2784
|
"--t-text-color-interaction-visited": "hsl(204, 100%, 30%)",
|
|
@@ -2808,21 +2809,21 @@ const tokens = {
|
|
|
2808
2809
|
"--t-text-color-tag-bold-pink": "hsl(327, 88%, 20%)",
|
|
2809
2810
|
"--t-text-color-tag-bold-purple": "hsl(268, 71%, 27%)",
|
|
2810
2811
|
"--t-text-color-tag-bold-magenta": "hsl(285, 71%, 20%)",
|
|
2811
|
-
"--t-icon-color
|
|
2812
|
-
"--t-icon-color-
|
|
2813
|
-
"--t-icon-color-
|
|
2814
|
-
"--t-icon-color-
|
|
2815
|
-
"--t-icon-color-
|
|
2816
|
-
"--t-icon-color-status-neutral
|
|
2812
|
+
"--t-icon-color": "hsl(0, 0%, 24%)",
|
|
2813
|
+
"--t-icon-color-secondary": "hsl(0, 0%, 42%)",
|
|
2814
|
+
"--t-icon-color-dim": "hsl(0, 0%, 58%)",
|
|
2815
|
+
"--t-icon-color-disabled": "hsl(0, 0%, 81%)",
|
|
2816
|
+
"--t-icon-color-inverted": "hsl(0, 0%, 100%)",
|
|
2817
|
+
"--t-icon-color-status-neutral": "hsl(0, 0%, 42%)",
|
|
2817
2818
|
"--t-icon-color-status-neutral-secondary": "hsl(0, 0%, 58%)",
|
|
2818
2819
|
"--t-icon-color-status-neutral-bold": "hsl(0, 0%, 24%)",
|
|
2819
2820
|
"--t-icon-color-status-neutral-dark": "hsl(0, 0%, 24%)",
|
|
2820
|
-
"--t-icon-color-status-info
|
|
2821
|
+
"--t-icon-color-status-info": "hsl(204, 100%, 40%)",
|
|
2821
2822
|
"--t-icon-color-status-info-secondary": "hsl(204, 100%, 40%)",
|
|
2822
|
-
"--t-icon-color-status-success
|
|
2823
|
+
"--t-icon-color-status-success": "hsl(96, 57%, 33%)",
|
|
2823
2824
|
"--t-icon-color-status-success-secondary": "hsl(97, 57%, 40%)",
|
|
2824
|
-
"--t-icon-color-status-warning
|
|
2825
|
-
"--t-icon-color-status-error
|
|
2825
|
+
"--t-icon-color-status-warning": "hsl(42, 84%, 49%)",
|
|
2826
|
+
"--t-icon-color-status-error": "hsl(8, 60%, 47%)",
|
|
2826
2827
|
"--t-fill-color-neutral-100": "hsl(0, 0%, 100%)",
|
|
2827
2828
|
"--t-fill-color-neutral-000": "hsl(0, 0%, 12%)",
|
|
2828
2829
|
"--t-fill-color-neutral-010": "hsl(0, 0%, 24%)",
|
|
@@ -2835,36 +2836,41 @@ const tokens = {
|
|
|
2835
2836
|
"--t-fill-color-neutral-070": "hsl(0, 0%, 95%)",
|
|
2836
2837
|
"--t-fill-color-neutral-080": "hsl(0, 0%, 97%)",
|
|
2837
2838
|
"--t-fill-color-neutral-090": "hsl(0, 0%, 98%)",
|
|
2838
|
-
"--t-fill-color-interaction
|
|
2839
|
+
"--t-fill-color-interaction": "hsl(204, 100%, 40%)",
|
|
2839
2840
|
"--t-fill-color-interaction-hover": "hsl(204, 100%, 35%)",
|
|
2840
2841
|
"--t-fill-color-interaction-active": "hsl(204, 100%, 30%)",
|
|
2841
2842
|
"--t-fill-color-interaction-disabled": "hsl(0, 0%, 81%)",
|
|
2842
2843
|
"--t-fill-color-control-neutral-off": "hsl(0, 0%, 58%)",
|
|
2843
2844
|
"--t-fill-color-control-neutral-on": "hsl(0, 0%, 24%)",
|
|
2844
|
-
"--t-fill-color-control
|
|
2845
|
+
"--t-fill-color-control": "hsl(204, 100%, 40%)",
|
|
2845
2846
|
"--t-fill-color-control-secondary": "hsl(97, 57%, 40%)",
|
|
2846
2847
|
"--t-fill-color-control-error": "hsl(8, 60%, 47%)",
|
|
2847
2848
|
"--t-fill-color-control-disabled": "hsl(0, 0%, 81%)",
|
|
2848
|
-
"--t-fill-color-status-neutral
|
|
2849
|
+
"--t-fill-color-status-neutral": "hsl(0, 0%, 42%)",
|
|
2849
2850
|
"--t-fill-color-status-neutral-ghost": "hsl(0, 0%, 93%)",
|
|
2850
2851
|
"--t-fill-color-status-neutral-dim": "hsl(0, 0%, 97%)",
|
|
2851
|
-
"--t-fill-color-status-
|
|
2852
|
+
"--t-fill-color-status-neutral-solid": "hsl(0, 0%, 42%)",
|
|
2853
|
+
"--t-fill-color-status-info": "hsl(204, 100%, 40%)",
|
|
2852
2854
|
"--t-fill-color-status-info-ghost": "hsl(203, 94%, 94%)",
|
|
2853
2855
|
"--t-fill-color-status-info-dim": "hsl(204, 100%, 97%)",
|
|
2854
|
-
"--t-fill-color-status-
|
|
2856
|
+
"--t-fill-color-status-info-solid": "hsl(204, 100%, 40%)",
|
|
2857
|
+
"--t-fill-color-status-success": "hsl(96, 57%, 33%)",
|
|
2855
2858
|
"--t-fill-color-status-success-ghost": "hsl(97, 57%, 90%)",
|
|
2856
2859
|
"--t-fill-color-status-success-dim": "hsl(96, 60%, 95%)",
|
|
2857
|
-
"--t-fill-color-status-
|
|
2860
|
+
"--t-fill-color-status-success-solid": "hsl(96, 57%, 33%)",
|
|
2861
|
+
"--t-fill-color-status-warning": "hsl(42, 84%, 63%)",
|
|
2858
2862
|
"--t-fill-color-status-warning-ghost": "hsl(42, 87%, 94%)",
|
|
2859
2863
|
"--t-fill-color-status-warning-dim": "hsl(42, 87%, 97%)",
|
|
2860
|
-
"--t-fill-color-status-
|
|
2864
|
+
"--t-fill-color-status-warning-solid": "hsl(42, 84%, 63%)",
|
|
2865
|
+
"--t-fill-color-status-error": "hsl(8, 60%, 47%)",
|
|
2861
2866
|
"--t-fill-color-status-error-ghost": "hsl(9, 59%, 93%)",
|
|
2862
2867
|
"--t-fill-color-status-error-dim": "hsl(7, 60%, 97%)",
|
|
2868
|
+
"--t-fill-color-status-error-solid": "hsl(8, 60%, 47%)",
|
|
2863
2869
|
"--t-fill-color-alert-info": "hsl(204, 94%, 49%)",
|
|
2864
2870
|
"--t-fill-color-alert-success": "hsl(122, 60%, 41%)",
|
|
2865
2871
|
"--t-fill-color-alert-warning": "hsl(43, 96%, 58%)",
|
|
2866
2872
|
"--t-fill-color-alert-error": "hsl(4, 77%, 59%)",
|
|
2867
|
-
"--t-fill-color-tooltip
|
|
2873
|
+
"--t-fill-color-tooltip": "hsla(0, 0%, 12%, 0.9)",
|
|
2868
2874
|
"--t-fill-color-product-accounts-010": "hsl(212, 54%, 93%)",
|
|
2869
2875
|
"--t-fill-color-product-accounts-020": "hsl(209, 53%, 90%)",
|
|
2870
2876
|
"--t-fill-color-product-accounts-030": "hsl(210, 56%, 70%)",
|
|
@@ -2945,7 +2951,7 @@ const tokens = {
|
|
|
2945
2951
|
"--t-fill-color-product-services-060": "hsl(89, 62%, 31%)",
|
|
2946
2952
|
"--t-fill-color-product-services-070": "hsl(89, 62%, 26%)",
|
|
2947
2953
|
"--t-fill-color-product-services-080": "hsl(89, 63%, 21%)",
|
|
2948
|
-
"--t-fill-color-product-staff
|
|
2954
|
+
"--t-fill-color-product-staff": "hsl(328, 100%, 45%)",
|
|
2949
2955
|
"--t-fill-color-product-staff-dark": "hsl(328, 100%, 38%)",
|
|
2950
2956
|
"--t-fill-color-product-staff-darker": "hsl(328, 100%, 33%)",
|
|
2951
2957
|
"--t-fill-color-product-accounts-gradient-brand": "linear-gradient(135deg, hsl(203, 86%, 57%), hsl(220, 76%, 57%))",
|
|
@@ -3025,36 +3031,44 @@ const tokens = {
|
|
|
3025
3031
|
"--t-fill-color-tag-indigo-020": "hsl(233, 79%, 87%)",
|
|
3026
3032
|
"--t-fill-color-tag-indigo-030": "hsl(233, 77%, 81%)",
|
|
3027
3033
|
"--t-fill-color-tag-indigo-040": "hsl(236, 79%, 74%)",
|
|
3028
|
-
"--t-fill-color-button-neutral-solid
|
|
3034
|
+
"--t-fill-color-button-neutral-solid": "hsl(0, 0%, 93%)",
|
|
3029
3035
|
"--t-fill-color-button-neutral-solid-hover": "hsl(0, 0%, 88%)",
|
|
3030
3036
|
"--t-fill-color-button-neutral-solid-active": "hsl(0, 0%, 81%)",
|
|
3031
3037
|
"--t-fill-color-button-neutral-solid-disabled": "hsl(0, 0%, 95%)",
|
|
3032
|
-
"--t-fill-color-button-neutral-outline
|
|
3033
|
-
"--t-fill-color-button-neutral-outline-
|
|
3034
|
-
"--t-fill-color-button-neutral-outline-
|
|
3035
|
-
"--t-fill-color-button-neutral-outline-
|
|
3036
|
-
"--t-fill-color-button-neutral-
|
|
3037
|
-
"--t-fill-color-button-neutral-ghost-default": "hsla(0, 0%, 100%, 0)",
|
|
3038
|
+
"--t-fill-color-button-neutral-outline": "hsla(0, 0%, 100%, 0)",
|
|
3039
|
+
"--t-fill-color-button-neutral-outline-hover": "hsl(0, 0%, 95%)",
|
|
3040
|
+
"--t-fill-color-button-neutral-outline-active": "hsl(0, 0%, 93%)",
|
|
3041
|
+
"--t-fill-color-button-neutral-outline-disabled": "hsl(0, 0%, 98%)",
|
|
3042
|
+
"--t-fill-color-button-neutral-ghost": "hsla(0, 0%, 100%, 0)",
|
|
3038
3043
|
"--t-fill-color-button-neutral-ghost-hover": "hsl(0, 0%, 95%)",
|
|
3039
3044
|
"--t-fill-color-button-neutral-ghost-active": "hsl(0, 0%, 93%)",
|
|
3040
3045
|
"--t-fill-color-button-neutral-ghost-disabled": "hsla(0, 0%, 100%, 0)",
|
|
3041
3046
|
"--t-fill-color-button-neutral-ghost-disabled-solid": "hsl(0, 0%, 98%)",
|
|
3042
|
-
"--t-fill-color-button-neutral-responsive-header
|
|
3047
|
+
"--t-fill-color-button-neutral-responsive-header": "hsla(0, 0%, 0%, 0.1)",
|
|
3043
3048
|
"--t-fill-color-button-neutral-responsive-header-hover": "hsla(0, 0%, 0%, 0.2)",
|
|
3044
3049
|
"--t-fill-color-button-neutral-responsive-header-active": "hsla(0, 0%, 0%, 0.3)",
|
|
3045
3050
|
"--t-fill-color-button-neutral-responsive-header-disabled": "hsla(0, 0%, 0%, 0.05)",
|
|
3046
|
-
"--t-fill-color-button-
|
|
3051
|
+
"--t-fill-color-button-neutral-outline-dim-default": "hsla(0, 0%, 100%, 0)",
|
|
3052
|
+
"--t-fill-color-button-neutral-outline-dim-hover": "hsl(0, 0%, 95%)",
|
|
3053
|
+
"--t-fill-color-button-neutral-outline-dim-active": "hsl(0, 0%, 93%)",
|
|
3054
|
+
"--t-fill-color-button-neutral-outline-dim-disabled": "hsl(0, 0%, 98%)",
|
|
3055
|
+
"--t-fill-color-button-neutral-outline-dim-disabled-solid": "hsl(0, 0%, 98%)",
|
|
3056
|
+
"--t-fill-color-button-interaction-solid": "hsl(204, 100%, 40%)",
|
|
3047
3057
|
"--t-fill-color-button-interaction-solid-hover": "hsl(204, 100%, 35%)",
|
|
3048
3058
|
"--t-fill-color-button-interaction-solid-active": "hsl(204, 100%, 30%)",
|
|
3049
3059
|
"--t-fill-color-button-interaction-solid-disabled": "hsl(0, 0%, 95%)",
|
|
3060
|
+
"--t-fill-color-button-interaction-outline": "hsla(0, 0%, 100%, 0)",
|
|
3061
|
+
"--t-fill-color-button-interaction-outline-hover": "hsl(204, 100%, 97%)",
|
|
3062
|
+
"--t-fill-color-button-interaction-outline-active": "hsl(203, 94%, 94%)",
|
|
3063
|
+
"--t-fill-color-button-interaction-outline-disabled": "hsl(0, 0%, 98%)",
|
|
3064
|
+
"--t-fill-color-button-interaction-ghost": "hsla(0, 0%, 100%, 0)",
|
|
3065
|
+
"--t-fill-color-button-interaction-ghost-hover": "hsl(204, 100%, 97%)",
|
|
3066
|
+
"--t-fill-color-button-interaction-ghost-active": "hsl(203, 94%, 94%)",
|
|
3067
|
+
"--t-fill-color-button-interaction-ghost-disabled": "hsla(0, 0%, 100%, 0)",
|
|
3050
3068
|
"--t-fill-color-button-interaction-outline-dim-default": "hsla(0, 0%, 100%, 0)",
|
|
3051
3069
|
"--t-fill-color-button-interaction-outline-dim-hover": "hsl(204, 100%, 97%)",
|
|
3052
3070
|
"--t-fill-color-button-interaction-outline-dim-active": "hsl(203, 94%, 94%)",
|
|
3053
3071
|
"--t-fill-color-button-interaction-outline-dim-disabled": "hsl(0, 0%, 98%)",
|
|
3054
|
-
"--t-fill-color-button-interaction-ghost-default": "hsla(0, 0%, 100%, 0)",
|
|
3055
|
-
"--t-fill-color-button-interaction-ghost-hover": "hsl(204, 100%, 97%)",
|
|
3056
|
-
"--t-fill-color-button-interaction-ghost-active": "hsl(203, 94%, 94%)",
|
|
3057
|
-
"--t-fill-color-button-interaction-ghost-disabled": "hsla(0, 0%, 100%, 0)",
|
|
3058
3072
|
"--t-fill-color-button-create-solid-default": "hsl(96, 57%, 33%)",
|
|
3059
3073
|
"--t-fill-color-button-create-solid-hover": "hsl(97, 57%, 28%)",
|
|
3060
3074
|
"--t-fill-color-button-create-solid-active": "hsl(97, 57%, 23%)",
|
|
@@ -3063,19 +3077,23 @@ const tokens = {
|
|
|
3063
3077
|
"--t-fill-color-button-create-ghost-hover": "hsl(96, 60%, 95%)",
|
|
3064
3078
|
"--t-fill-color-button-create-ghost-active": "hsl(97, 57%, 90%)",
|
|
3065
3079
|
"--t-fill-color-button-create-ghost-disabled": "hsla(0, 0%, 100%, 0)",
|
|
3066
|
-
"--t-fill-color-button-delete-solid
|
|
3080
|
+
"--t-fill-color-button-delete-solid": "hsl(8, 60%, 47%)",
|
|
3067
3081
|
"--t-fill-color-button-delete-solid-hover": "hsl(8, 60%, 45%)",
|
|
3068
3082
|
"--t-fill-color-button-delete-solid-active": "hsl(8, 60%, 40%)",
|
|
3069
3083
|
"--t-fill-color-button-delete-solid-disabled": "hsl(0, 0%, 95%)",
|
|
3084
|
+
"--t-fill-color-button-delete-outline": "hsla(0, 0%, 100%, 0)",
|
|
3085
|
+
"--t-fill-color-button-delete-outline-hover": "hsl(7, 60%, 97%)",
|
|
3086
|
+
"--t-fill-color-button-delete-outline-active": "hsl(9, 59%, 93%)",
|
|
3087
|
+
"--t-fill-color-button-delete-outline-disabled": "hsl(0, 0%, 98%)",
|
|
3088
|
+
"--t-fill-color-button-delete-ghost": "hsla(0, 0%, 100%, 0)",
|
|
3089
|
+
"--t-fill-color-button-delete-ghost-hover": "hsl(7, 60%, 97%)",
|
|
3090
|
+
"--t-fill-color-button-delete-ghost-active": "hsl(9, 59%, 93%)",
|
|
3091
|
+
"--t-fill-color-button-delete-ghost-disabled": "hsla(0, 0%, 100%, 0)",
|
|
3070
3092
|
"--t-fill-color-button-delete-outline-dim-default": "hsla(0, 0%, 100%, 0)",
|
|
3071
3093
|
"--t-fill-color-button-delete-outline-dim-hover": "hsl(7, 60%, 97%)",
|
|
3072
3094
|
"--t-fill-color-button-delete-outline-dim-active": "hsl(9, 59%, 93%)",
|
|
3073
3095
|
"--t-fill-color-button-delete-outline-dim-disabled": "hsl(0, 0%, 98%)",
|
|
3074
|
-
"--t-fill-color-button-
|
|
3075
|
-
"--t-fill-color-button-delete-ghost-hover": "hsl(7, 60%, 97%)",
|
|
3076
|
-
"--t-fill-color-button-delete-ghost-active": "hsl(9, 59%, 93%)",
|
|
3077
|
-
"--t-fill-color-button-delete-ghost-disabled": "hsla(0, 0%, 100%, 0)",
|
|
3078
|
-
"--t-fill-color-button-pill-default": "hsl(0, 0%, 93%)",
|
|
3096
|
+
"--t-fill-color-button-pill": "hsl(0, 0%, 93%)",
|
|
3079
3097
|
"--t-fill-color-button-pill-hover": "hsl(0, 0%, 88%)",
|
|
3080
3098
|
"--t-fill-color-button-pill-active": "hsl(0, 0%, 88%)",
|
|
3081
3099
|
"--t-fill-color-button-pill-disabled": "hsl(0, 0%, 93%)",
|
|
@@ -3108,13 +3126,13 @@ const tokens = {
|
|
|
3108
3126
|
"--t-fill-color-transparency-dark-static-090": "hsla(0, 0%, 0%, 0.9)",
|
|
3109
3127
|
"--t-surface-color-card": "hsl(0, 0%, 100%)",
|
|
3110
3128
|
"--t-surface-color-canvas": "hsl(0, 0%, 100%)",
|
|
3111
|
-
"--t-border-color
|
|
3112
|
-
"--t-border-color-
|
|
3113
|
-
"--t-border-color-
|
|
3114
|
-
"--t-border-color-
|
|
3115
|
-
"--t-border-color-
|
|
3116
|
-
"--t-border-color-
|
|
3117
|
-
"--t-border-color-
|
|
3129
|
+
"--t-border-color": "hsl(0, 0%, 88%)",
|
|
3130
|
+
"--t-border-color-dark": "hsl(0, 0%, 81%)",
|
|
3131
|
+
"--t-border-color-darker": "hsl(0, 0%, 68%)",
|
|
3132
|
+
"--t-border-color-darkest": "hsl(0, 0%, 58%)",
|
|
3133
|
+
"--t-border-color-disabled": "hsl(0, 0%, 88%)",
|
|
3134
|
+
"--t-border-color-dim": "hsl(0, 0%, 95%)",
|
|
3135
|
+
"--t-border-color-white": "hsl(0, 0%, 100%)",
|
|
3118
3136
|
"--t-border-color-status-neutral": "hsl(0, 0%, 58%)",
|
|
3119
3137
|
"--t-border-color-status-info": "hsl(204, 100%, 40%)",
|
|
3120
3138
|
"--t-border-color-status-success": "hsl(97, 57%, 40%)",
|
|
@@ -3156,9 +3174,8 @@ function token(varName) {
|
|
|
3156
3174
|
function computedToken(varName) {
|
|
3157
3175
|
return tokens[varName];
|
|
3158
3176
|
}
|
|
3159
|
-
var
|
|
3160
|
-
var
|
|
3161
|
-
var o$5 = { dark: { fill: { active: { backgroundColor: "dark-2" }, backgroundColor: "dark-0", color: "dark-9", hover: { backgroundColor: "dark-1" } }, naked: { active: { backgroundColor: "dark-1" }, color: "dark-9", hover: { backgroundColor: "dark-0" } }, outline: { active: { backgroundColor: "dark-1" }, color: "dark-9", hover: { backgroundColor: "dark-0" }, stroke: "dark-3" } }, default: { fill: { active: { backgroundColor: "grey-5" }, backgroundColor: "grey-3", color: "foreground", hover: { backgroundColor: "grey-4" } }, naked: { active: { backgroundColor: "highlightSecondary" }, color: "foreground", hover: { backgroundColor: "highlight" } }, outline: { active: { backgroundColor: "highlightSecondary" }, color: "foreground", hover: { backgroundColor: "highlight" }, stroke: "separatorSecondary" } }, error: { fill: { active: { backgroundColor: "error-darker" }, backgroundColor: "error", color: "white", hover: { backgroundColor: "error-dark" } }, naked: { active: { backgroundColor: "error-lighter" }, color: "error", hover: { backgroundColor: "error-lightest" } }, outline: { active: { backgroundColor: "error-lighter" }, color: "error", hover: { backgroundColor: "error-lightest" }, stroke: "error" } }, info: { fill: { active: { backgroundColor: "blue-3" }, backgroundColor: "blue-5", color: "light-9", hover: { backgroundColor: "blue-4" } }, naked: { active: { backgroundColor: "blue-1" }, color: "blue-5", hover: { backgroundColor: "blue-0" } }, outline: { active: { backgroundColor: "blue-1" }, color: "blue-5", hover: { backgroundColor: "blue-0" }, stroke: "blue-5" } }, light: { fill: { active: { backgroundColor: "light-3" }, backgroundColor: "light-1", color: "white", hover: { backgroundColor: "light-2" } }, naked: { active: { backgroundColor: "light-1" }, color: "light-9", hover: { backgroundColor: "light-0" } }, outline: { active: { backgroundColor: "light-1" }, color: "white", hover: { backgroundColor: "light-0" }, stroke: "light-3" } }, primary: { fill: { active: { backgroundColor: "primary-darker" }, backgroundColor: "primary", color: "light-9", hover: { backgroundColor: "primary-dark" } }, naked: { active: { backgroundColor: "primary-lighter" }, color: "primary", hover: { backgroundColor: "primary-lightest" } }, outline: { active: { backgroundColor: "primary-lighter" }, color: "primary", hover: { backgroundColor: "primary-lightest" }, stroke: "primary" } }, success: { fill: { active: { backgroundColor: "success-darker" }, backgroundColor: "success", color: "white", hover: { backgroundColor: "success-dark" } }, naked: { active: { backgroundColor: "success-lighter" }, color: "success", hover: { backgroundColor: "success-lightest" } }, outline: { active: { backgroundColor: "success-lighter" }, color: "success", hover: { backgroundColor: "success-lightest" }, stroke: "success" } }, warning: { fill: { active: { backgroundColor: "yellow-3" }, backgroundColor: "yellow-5", color: "dark-9", hover: { backgroundColor: "yellow-4" } }, naked: { active: { backgroundColor: "yellow-1" }, color: "yellow-9", hover: { backgroundColor: "yellow-0" } }, outline: { active: { backgroundColor: "yellow-1" }, color: "yellow-9", hover: { backgroundColor: "yellow-0" }, stroke: "yellow-5" } }, white: { fill: { active: { backgroundColor: "grey-1" }, backgroundColor: "white", color: "primary", hover: { backgroundColor: "grey-0" } }, naked: { active: { backgroundColor: "light-1" }, color: "white", hover: { backgroundColor: "light-0" } }, outline: { active: { backgroundColor: "light-1" }, color: "white", hover: { backgroundColor: "light-0" }, stroke: "white" } } };
|
|
3177
|
+
var i$2 = { lg: { boxSize: 5, fontSize: 3, lineHeight: 4, paddingHorizontal: 1.75, paddingHorizontalDense: 1, paddingVertical: 0.5, radius: 5 }, md: { boxSize: 4, fontSize: 4, lineHeight: 3, paddingHorizontal: 1.375, paddingHorizontalDense: 1, paddingVertical: 0.5, radius: 4 }, sm: { boxSize: 3, fontSize: 5, lineHeight: 2.5, paddingHorizontal: 1, paddingHorizontalDense: 0.5, paddingVertical: 0.25, radius: 3 }, xl: { boxSize: 8, fontSize: 1, lineHeight: 5, paddingHorizontal: 2.25, paddingHorizontalDense: 2, paddingVertical: 1.5, radius: 6 }, xs: { boxSize: 2.5, fontSize: 5, lineHeight: 2.5, paddingHorizontal: 0.75, paddingHorizontalDense: 0.5, paddingVertical: 0, radius: 2.5 }, xxl: { boxSize: 14 } };
|
|
3178
|
+
var l$1 = { fill: { backgroundColor: token("--t-fill-color-button-interaction-solid-disabled"), color: token("--t-text-color-default-disabled"), opacity: 1 }, naked: { color: token("--t-text-color-default-disabled"), opacity: 1 }, outline: { backgroundColor: token("--t-fill-color-button-interaction-outline-dim-disabled"), color: token("--t-text-color-default-disabled"), opacity: 1, stroke: token("--t-border-color-button-neutral") } }, r$4 = { color: token("--t-text-color-status-neutral"), backgroundColor: token("--t-fill-color-button-neutral-responsive-header-default"), stroke: "transparent", hover: { backgroundColor: token("--t-fill-color-button-neutral-responsive-header-hover") }, active: { backgroundColor: token("--t-fill-color-button-neutral-responsive-header-active") }, disabled: { color: token("--t-text-color-default-disabled"), backgroundColor: token("--t-fill-color-button-neutral-responsive-header-disabled"), borderColor: token("--t-fill-color-button-neutral-responsive-header-disabled"), opacity: 1 }, mediaQueries: { "@media (min-width: 600px)": { color: token("--t-text-color-status-neutral"), backgroundColor: "var(--local-page-header-button-background-color, transparent)", boxShadow: "inset 0px 0px 0px 1px var(--t-border-color-button-neutral)", hover: { backgroundColor: token("--t-fill-color-button-neutral-outline-dim-hover") }, active: { backgroundColor: token("--t-fill-color-button-neutral-outline-dim-active") }, disabled: l$1.outline } } }, e$7 = { dark: { fill: { active: { backgroundColor: "dark-2" }, backgroundColor: "dark-0", color: "dark-9", hover: { backgroundColor: "dark-1" }, disabled: l$1.fill }, naked: { active: { backgroundColor: "dark-1" }, color: "dark-9", hover: { backgroundColor: "dark-0" }, disabled: l$1.naked }, outline: { active: { backgroundColor: "dark-1" }, color: "dark-9", hover: { backgroundColor: "dark-0" }, stroke: "dark-3", disabled: l$1.outline } }, default: { fill: { backgroundColor: token("--t-fill-color-button-neutral-solid-default"), color: token("--t-text-color-status-neutral"), hover: { backgroundColor: token("--t-fill-color-button-neutral-solid-hover") }, active: { backgroundColor: token("--t-fill-color-button-neutral-solid-active") }, disabled: l$1.fill }, naked: { color: token("--t-text-color-status-neutral"), hover: { backgroundColor: token("--t-fill-color-button-neutral-outline-dim-hover") }, active: { backgroundColor: token("--t-fill-color-button-neutral-outline-dim-active") }, disabled: l$1.naked }, outline: { color: token("--t-text-color-status-neutral"), stroke: token("--t-border-color-button-neutral"), hover: { backgroundColor: token("--t-fill-color-button-neutral-outline-dim-hover") }, active: { backgroundColor: token("--t-fill-color-button-neutral-outline-dim-active") }, disabled: l$1.outline } }, secondaryPageHeader: { fill: r$4, naked: r$4, outline: r$4 }, error: { fill: { backgroundColor: token("--t-fill-color-button-delete-solid-default"), color: token("--t-text-color-default-inverted"), hover: { backgroundColor: token("--t-fill-color-button-delete-solid-hover") }, active: { backgroundColor: token("--t-fill-color-button-delete-solid-active") }, disabled: l$1.fill }, naked: { color: token("--t-text-color-status-error"), hover: { backgroundColor: token("--t-fill-color-button-delete-outline-dim-hover") }, active: { backgroundColor: token("--t-fill-color-button-delete-outline-dim-active") }, disabled: l$1.naked }, outline: { color: token("--t-text-color-status-error"), stroke: token("--t-border-color-button-delete"), hover: { backgroundColor: token("--t-fill-color-button-delete-outline-dim-hover") }, active: { backgroundColor: token("--t-fill-color-button-delete-outline-dim-active") }, disabled: l$1.outline } }, info: { fill: { active: { backgroundColor: "blue-3" }, backgroundColor: "blue-5", color: "light-9", hover: { backgroundColor: "blue-4" }, disabled: l$1.fill }, naked: { active: { backgroundColor: "blue-1" }, color: "blue-5", hover: { backgroundColor: "blue-0" }, disabled: l$1.naked }, outline: { active: { backgroundColor: "blue-1" }, color: "blue-5", hover: { backgroundColor: "blue-0" }, stroke: "blue-5", disabled: l$1.outline } }, light: { fill: { active: { backgroundColor: "light-3" }, backgroundColor: "light-1", color: "white", hover: { backgroundColor: "light-2" }, disabled: l$1.fill }, naked: { active: { backgroundColor: "light-1" }, color: "light-9", hover: { backgroundColor: "light-0" }, disabled: l$1.naked }, outline: { active: { backgroundColor: "light-1" }, color: "white", hover: { backgroundColor: "light-0" }, stroke: "light-3", disabled: l$1.outline } }, primary: { fill: { backgroundColor: token("--t-fill-color-button-interaction-solid-default"), color: token("--t-text-color-default-inverted"), hover: { backgroundColor: token("--t-fill-color-button-interaction-solid-hover") }, active: { backgroundColor: token("--t-fill-color-button-interaction-solid-active") }, disabled: l$1.fill }, naked: { color: token("--t-text-color-interaction-primary"), hover: { backgroundColor: token("--t-fill-color-button-interaction-outline-dim-hover") }, active: { backgroundColor: token("--t-fill-color-button-interaction-outline-dim-active") }, disabled: l$1.naked }, outline: { color: token("--t-text-color-interaction-primary"), stroke: token("--t-border-color-button-info"), hover: { backgroundColor: token("--t-fill-color-button-interaction-outline-dim-hover") }, active: { backgroundColor: token("--t-fill-color-button-interaction-outline-dim-active") }, disabled: l$1.outline } }, success: { fill: { active: { backgroundColor: "success-darker" }, backgroundColor: "success", color: "white", hover: { backgroundColor: "success-dark" }, disabled: l$1.fill }, naked: { active: { backgroundColor: "success-lighter" }, color: "success", hover: { backgroundColor: "success-lightest" }, disabled: l$1.naked }, outline: { active: { backgroundColor: "success-lighter" }, color: "success", hover: { backgroundColor: "success-lightest" }, stroke: "success", disabled: l$1.outline } }, warning: { fill: { active: { backgroundColor: "yellow-3" }, backgroundColor: "yellow-5", color: "dark-9", hover: { backgroundColor: "yellow-4" }, disabled: l$1.fill }, naked: { active: { backgroundColor: "yellow-1" }, color: "yellow-9", hover: { backgroundColor: "yellow-0" }, disabled: l$1.naked }, outline: { active: { backgroundColor: "yellow-1" }, color: "yellow-9", hover: { backgroundColor: "yellow-0" }, stroke: "yellow-5", disabled: l$1.outline } }, white: { fill: { active: { backgroundColor: "grey-1" }, backgroundColor: "white", color: "primary", hover: { backgroundColor: "grey-0" }, disabled: l$1.fill }, naked: { active: { backgroundColor: "light-1" }, color: "white", hover: { backgroundColor: "light-0" }, disabled: l$1.naked }, outline: { active: { backgroundColor: "light-1" }, color: "white", hover: { backgroundColor: "light-0" }, stroke: "white", disabled: l$1.outline } } };
|
|
3162
3179
|
var o$4 = function() {
|
|
3163
3180
|
return o$4 = Object.assign || function(t2) {
|
|
3164
3181
|
for (var r2, o2 = 1, n2 = arguments.length; o2 < n2; o2++) for (var e2 in r2 = arguments[o2]) Object.prototype.hasOwnProperty.call(r2, e2) && (t2[e2] = r2[e2]);
|
|
@@ -3174,7 +3191,7 @@ function n$3(t2, r2) {
|
|
|
3174
3191
|
}
|
|
3175
3192
|
return o2;
|
|
3176
3193
|
}
|
|
3177
|
-
function e$
|
|
3194
|
+
function e$6(t2, r2, o2) {
|
|
3178
3195
|
for (var n2, e2 = 0, c2 = r2.length; e2 < c2; e2++) !n2 && e2 in r2 || (n2 || (n2 = Array.prototype.slice.call(r2, 0, e2)), n2[e2] = r2[e2]);
|
|
3179
3196
|
return t2.concat(n2 || Array.prototype.slice.call(r2));
|
|
3180
3197
|
}
|
|
@@ -3838,9 +3855,9 @@ function mix(weight, color, otherColor) {
|
|
|
3838
3855
|
});
|
|
3839
3856
|
var alphaDelta = color1.alpha - color2.alpha;
|
|
3840
3857
|
var x2 = parseFloat(weight) * 2 - 1;
|
|
3841
|
-
var
|
|
3858
|
+
var y = x2 * alphaDelta === -1 ? x2 : x2 + alphaDelta;
|
|
3842
3859
|
var z = 1 + x2 * alphaDelta;
|
|
3843
|
-
var weight1 = (
|
|
3860
|
+
var weight1 = (y / z + 1) / 2;
|
|
3844
3861
|
var weight2 = 1 - weight1;
|
|
3845
3862
|
var mixedColor = {
|
|
3846
3863
|
red: Math.floor(color1.red * weight1 + color2.red * weight2),
|
|
@@ -4433,10 +4450,10 @@ var kebabCaseExports = requireKebabCase();
|
|
|
4433
4450
|
const n$2 = /* @__PURE__ */ getDefaultExportFromCjs(kebabCaseExports);
|
|
4434
4451
|
var c$1 = false;
|
|
4435
4452
|
if ("undefined" != typeof window) try {
|
|
4436
|
-
var d$
|
|
4453
|
+
var d$1 = { get passive() {
|
|
4437
4454
|
return c$1 = true, true;
|
|
4438
4455
|
} };
|
|
4439
|
-
window.addEventListener("test", null, d$
|
|
4456
|
+
window.addEventListener("test", null, d$1), window.removeEventListener("test", null, d$1);
|
|
4440
4457
|
} catch (e2) {
|
|
4441
4458
|
c$1 = false;
|
|
4442
4459
|
}
|
|
@@ -4446,7 +4463,7 @@ C && C.getContext("2d");
|
|
|
4446
4463
|
function Z(e2, t2) {
|
|
4447
4464
|
return e2 && t2 ? "var(--".concat(n$2(e2), "-").concat(n$2(t2), ")") : void 0;
|
|
4448
4465
|
}
|
|
4449
|
-
function d
|
|
4466
|
+
function d(t2, n2) {
|
|
4450
4467
|
return Object.keys(t2).map((function(e2) {
|
|
4451
4468
|
var c2, o2, a2, u2 = t2[e2];
|
|
4452
4469
|
return "string" == typeof u2 ? ((c2 = {})[e2] = u2, o2 = c2) : o2 = Array.isArray(u2) ? u2.reduce((function(t3, n3, c3) {
|
|
@@ -4461,8 +4478,8 @@ function d$1(t2, n2) {
|
|
|
4461
4478
|
}), {}), n2({ colors: o2, name: (a2 = e2, a2.charAt(0).toUpperCase() + a2.slice(1)) });
|
|
4462
4479
|
}));
|
|
4463
4480
|
}
|
|
4464
|
-
function m
|
|
4465
|
-
var n2 = d
|
|
4481
|
+
function m(t2) {
|
|
4482
|
+
var n2 = d(t2, (function(r2) {
|
|
4466
4483
|
return r2.colors;
|
|
4467
4484
|
})).reduce((function(t3, n3) {
|
|
4468
4485
|
return o$4(o$4({}, t3), n3);
|
|
@@ -4472,11 +4489,11 @@ function m$1(t2) {
|
|
|
4472
4489
|
return o$4(o$4({}, t3), ((c2 = {})[e2] = a2 ? Z("colors", o2) : o2, c2));
|
|
4473
4490
|
}), {});
|
|
4474
4491
|
}
|
|
4475
|
-
var
|
|
4476
|
-
function
|
|
4477
|
-
return l2 ?
|
|
4492
|
+
var o$3 = { create: { create35: token("--t-fill-color-control-secondary") }, interaction66: token("--t-fill-color-control-primary") }, a$1 = { apps: { calendar: token("--t-fill-color-product-calendar-050"), "check-ins": token("--t-fill-color-product-checkins-050"), giving: token("--t-fill-color-product-giving-050"), groups: token("--t-fill-color-product-groups-050"), home: token("--t-fill-color-product-home-050"), "music-stand": "#4984c4", pco: "#3565cf", people: token("--t-fill-color-product-people-050"), "planning-center": "#2266f7", projector: "#f19900", registrations: token("--t-fill-color-product-registrations-050"), services: token("--t-fill-color-product-services-050") }, background: { background: token("--t-surface-color-card"), backgroundSecondary: token("--t-surface-color-canvas"), backgroundTertiary: token("--t-fill-color-neutral-070") }, static: { staticDark: computedToken("--t-text-color-default-primary"), staticLight: computedToken("--t-text-color-default-inverted") }, blue: ["hsl(197, 56%, 92%)", "hsl(197, 56%, 88%)", "hsl(197, 56%, 72%)", "hsl(197, 56%, 64%)", "hsl(197, 56%, 52%)", "hsl(197, 56%, 44%)", "hsl(197, 56%, 40%)", "hsl(197, 56%, 32%)", "hsl(197, 56%, 24%)", "hsl(197, 56%, 20%)"], dark: ["hsla(0,0%,0%,0.04)", "hsla(0,0%,0%,0.08)", token("--t-fill-color-transparency-dark-010"), token("--t-fill-color-transparency-dark-020"), token("--t-fill-color-transparency-dark-020"), token("--t-fill-color-transparency-dark-030"), token("--t-fill-color-transparency-dark-040"), token("--t-fill-color-transparency-dark-050"), token("--t-fill-color-transparency-dark-060"), token("--t-fill-color-transparency-dark-070")], days: { friday: "#F69688", monday: "#789FF8", saturday: "#66BEEB", sunday: "#7DC156", thursday: "#FA7EA4", tuesday: "#A193FD", wednesday: "#D18CF6" }, error: { base: token("--t-fill-color-button-delete-solid-default"), dark: token("--t-fill-color-button-delete-solid-hover"), darker: token("--t-fill-color-button-delete-solid-active"), light: "hsl(8, 60%, 85%)", lighter: token("--t-fill-color-status-error-ghost"), lightest: token("--t-fill-color-status-error-dim") }, foreground: { foreground: token("--t-text-color-default-primary"), foregroundSecondary: token("--t-text-color-default-secondary"), foregroundTertiary: "hsl(0, 0%, 58%)" }, green: ["hsl(96, 24%, 92%)", "hsl(96, 30%, 84%)", "hsl(96, 32%, 76%)", "hsl(96, 34%, 72%)", "hsl(96, 36%, 64%)", "hsl(96, 40%, 58%)", "hsl(96, 44%, 50%)", "hsl(96, 48%, 40%)", "hsl(96, 52%, 30%)", "hsl(96, 60%, 20%)"], grey: [token("--t-fill-color-neutral-090"), token("--t-fill-color-neutral-080"), token("--t-fill-color-neutral-070"), token("--t-fill-color-neutral-060"), token("--t-fill-color-neutral-050"), token("--t-fill-color-neutral-040"), token("--t-fill-color-neutral-030"), token("--t-fill-color-neutral-025"), token("--t-fill-color-neutral-020"), token("--t-fill-color-neutral-010")], highlight: { highlight: token("--t-fill-color-neutral-070"), highlightSecondary: token("--t-fill-color-neutral-060") }, interaction: { base: token("--t-fill-color-interaction-default"), dark: token("--t-fill-color-interaction-hover"), darker: token("--t-fill-color-interaction-active"), darkest: "hsl(221, 90%, 31%)", light: "hsl(221, 91%, 70%)", lighter: "hsl(0, 0%, 81%);", lightest: token("--t-fill-color-interaction-disabled") }, light: [token("--t-fill-color-transparency-light-010"), token("--t-fill-color-transparency-light-020"), token("--t-fill-color-transparency-light-030"), token("--t-fill-color-transparency-light-040"), token("--t-fill-color-transparency-light-050"), token("--t-fill-color-transparency-light-060"), token("--t-fill-color-transparency-light-070"), token("--t-fill-color-transparency-light-080"), token("--t-fill-color-transparency-light-090"), "hsla(0,0%,100%,0.96)"], link: { linkBackground: token("--t-fill-color-neutral-090"), linkForeground: token("--t-text-color-interaction-primary") }, primary: { base: "hsl(88, 44%, 40%)", dark: "hsl(88, 46%, 36%)", darker: "hsl(88, 52%, 32%)", darkest: "hsl(88, 72%, 20%)", light: "hsl(88, 40%, 54%)", lighter: "hsl(88, 32%, 86%)", lightest: "hsl(88, 24%, 92%)" }, red: ["hsl(8, 73%, 96%)", "hsl(8, 74%, 92%)", "hsl(8, 75%, 88%)", "hsl(8, 76%, 68%)", "hsl(8, 77%, 60%)", "hsl(8, 78%, 56%)", "hsl(8, 79%, 52%)", "hsl(8, 80%, 48%)", "hsl(8, 81%, 40%)", "hsl(8, 82%, 30%)"], separator: { separator: token("--t-fill-color-neutral-040"), separatorFocus: token("--t-form-border-color-focus"), separatorFocusSecondary: token("--t-fill-color-neutral-050"), separatorHover: token("--t-form-border-color-hover"), separatorSecondary: token("--t-fill-color-neutral-050"), separatorTertiary: token("--t-fill-color-neutral-050") }, success: { base: token("--t-fill-color-status-success-solid"), dark: token("--t-text-color-status-success"), darker: "hsl(86, 91%, 23%)", light: token("--t-border-color-control-success"), lighter: token("--t-fill-color-status-success-ghost"), lightest: token("--t-fill-color-status-success-dim") }, surface: { surface: token("--t-surface-color-card"), surfaceSecondary: token("--t-surface-color-canvas"), surfaceTertiary: token("--t-fill-color-neutral-070") }, tapestry: o$3, warning: { base: token("--t-fill-color-status-warning-solid"), dark: token("--t-fill-color-status-warning-solid"), darker: token("--t-icon-color-status-warning-primary"), light: "hsl(42, 87%, 90%)", lighter: token("--t-fill-color-status-warning-ghost"), lightest: token("--t-fill-color-status-warning-dim") }, yellow: ["hsl(50, 89%, 90%)", "hsl(50, 90%, 86%)", "hsl(50, 91%, 74%)", "hsl(50, 92%, 68%)", "hsl(50, 93%, 62%)", "hsl(50, 94%, 56%)", "hsl(50, 95%, 48%)", "hsl(50, 96%, 40%)", "hsl(50, 97%, 32%)", "hsl(50, 98%, 26%)"] }, s$2 = m(a$1);
|
|
4493
|
+
function e$5(l2) {
|
|
4494
|
+
return l2 ? s$2[l2] : s$2;
|
|
4478
4495
|
}
|
|
4479
|
-
var i$2
|
|
4496
|
+
var s$1 = { boxSizes: i$2, breakpoints: { lg: 960, md: 720, sm: 600, xl: 1200, xs: 480 }, button: { themes: e$7 }, calendar: { weekStartsOn: 0 }, checkbox: { checkedFill: token("--t-fill-color-control-primary"), checkedStroke: token("--t-fill-color-control-primary"), disabled: { checkedFill: token("--t-fill-color-control-disabled"), checkedStroke: token("--t-border-color-control-disabled"), fill: token("--t-fill-color-neutral-070"), stroke: token("--t-border-color-control-disabled") }, fill: token("--t-surface-color-card"), focusStroke: token("--t-fill-color-control-primary"), stroke: token("--t-border-color-control-neutral") }, colors: s$2, elevations: ["0 2px 5px rgba(0,0,0,0.043)", "0 4px 12px rgba(0,0,0,0.12)", "0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23)", "0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23)", "0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22)", "0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22)"], fontSizes: [30, 21, 18, 16, 14, 12, 10], group: { radius: 3 }, icons: { general: r$5, tapestry: o$5 }, pageBody: { backgroundColor: token("--t-surface-color-card") }, id: "default", lineHeights: [40, 32, 24, 24, 20, 16, 16], spinner: { color: token("--t-fill-color-neutral-010"), sizes: { lg: 3, md: 2.5, sm: 2, xl: 5, xs: 1.75, xxl: 8, xxs: 1.5 }, thickness: { lg: 5, md: 4, sm: 3, xl: 7, xs: 3, xxl: 9, xxs: 3 }, trackColor: token("--t-fill-color-transparency-dark-020") }, toggleSwitch: { backgroundColor: token("--t-fill-color-control-primary") } };
|
|
4480
4497
|
var _baseFindIndex;
|
|
4481
4498
|
var hasRequired_baseFindIndex;
|
|
4482
4499
|
function require_baseFindIndex() {
|
|
@@ -5614,50 +5631,50 @@ function requireGet() {
|
|
|
5614
5631
|
return get_1;
|
|
5615
5632
|
}
|
|
5616
5633
|
requireGet();
|
|
5617
|
-
var
|
|
5618
|
-
function
|
|
5619
|
-
for (var
|
|
5620
|
-
return
|
|
5621
|
-
return null !=
|
|
5634
|
+
var h$1 = { baseline: "baseline", center: "center", end: "flex-end", start: "flex-start", stretch: "stretch" }, v = { center: "center", end: "flex-end", "space-around": "space-around", "space-between": "space-between", "space-evenly": "space-evenly", start: "flex-start" };
|
|
5635
|
+
function x() {
|
|
5636
|
+
for (var t2 = [], r2 = 0; r2 < arguments.length; r2++) t2[r2] = arguments[r2];
|
|
5637
|
+
return t2.some((function(t3) {
|
|
5638
|
+
return null != t3;
|
|
5622
5639
|
}));
|
|
5623
5640
|
}
|
|
5624
|
-
function
|
|
5625
|
-
return "number" == typeof
|
|
5641
|
+
function b(t2) {
|
|
5642
|
+
return "number" == typeof t2 ? 8 * t2 + "px" : t2;
|
|
5626
5643
|
}
|
|
5627
|
-
function
|
|
5628
|
-
var n2 =
|
|
5644
|
+
function j(r2, e2) {
|
|
5645
|
+
var n2 = e2.split(/\s+/);
|
|
5629
5646
|
if (1 === n2.length) {
|
|
5630
5647
|
var o2 = n2[0];
|
|
5631
5648
|
n2 = [o2, o2, o2, o2];
|
|
5632
5649
|
} else 2 === n2.length ? n2 = n2.concat(n2) : 3 === n2.length && n2.push(n2[1]);
|
|
5633
|
-
return ["Top", "Right", "Bottom", "Left"].reduce((function(
|
|
5634
|
-
var
|
|
5635
|
-
return o$4(o$4({},
|
|
5650
|
+
return ["Top", "Right", "Bottom", "Left"].reduce((function(e3, o3, a2) {
|
|
5651
|
+
var i2;
|
|
5652
|
+
return o$4(o$4({}, e3), ((i2 = {})["".concat(r2).concat(o3)] = n2[a2], i2));
|
|
5636
5653
|
}), {});
|
|
5637
5654
|
}
|
|
5638
|
-
function
|
|
5639
|
-
for (var
|
|
5640
|
-
return
|
|
5641
|
-
return "string" == typeof
|
|
5655
|
+
function k() {
|
|
5656
|
+
for (var t2 = [], r2 = 0; r2 < arguments.length; r2++) t2[r2] = arguments[r2];
|
|
5657
|
+
return t2.reduce((function(t3, r3) {
|
|
5658
|
+
return "string" == typeof r3 ? r3 : null != r3 ? 8 * r3 + "px" : t3;
|
|
5642
5659
|
}), 0);
|
|
5643
5660
|
}
|
|
5644
|
-
function
|
|
5645
|
-
if ("object" == typeof
|
|
5646
|
-
var
|
|
5647
|
-
if ("transparent" ===
|
|
5648
|
-
if (
|
|
5649
|
-
var
|
|
5650
|
-
return "rgba(".concat(
|
|
5661
|
+
function O(t2) {
|
|
5662
|
+
if ("object" == typeof t2) {
|
|
5663
|
+
var r2 = e$5(t2.base) || t2.base;
|
|
5664
|
+
if ("transparent" === r2) return r2;
|
|
5665
|
+
if (t2.darken && (r2 = curriedDarken$1(t2.darken, r2)), t2.lighten && (r2 = curriedLighten$1(t2.lighten, r2)), void 0 !== t2.alpha) {
|
|
5666
|
+
var e2 = parseToRgb(r2), n2 = e2.red, u2 = e2.green, c2 = e2.blue;
|
|
5667
|
+
return "rgba(".concat(n2, ", ").concat(u2, ", ").concat(c2, ", ").concat(t2.alpha, ")");
|
|
5651
5668
|
}
|
|
5652
|
-
return
|
|
5669
|
+
return r2;
|
|
5653
5670
|
}
|
|
5654
|
-
return
|
|
5671
|
+
return e$5(t2) || t2;
|
|
5655
5672
|
}
|
|
5656
5673
|
function e$4(e2, t2) {
|
|
5657
|
-
var b2 = e2.backgroundColor, d2 = e2.borderColor, C2 = e2.borderBottomColor, i2 = e2.borderLeftColor, s2 = e2.borderRightColor, c2 = e2.borderTopColor, f = e2.color, u2 = e2.fill, n2 = e2.outlineColor, m2 = e2.stroke, a2 = n$3(e2, ["backgroundColor", "borderColor", "borderBottomColor", "borderLeftColor", "borderRightColor", "borderTopColor", "color", "fill", "outlineColor", "stroke"]),
|
|
5658
|
-
return Object.keys(
|
|
5659
|
-
var e3 =
|
|
5660
|
-
e3 && (a2[o2] = t2 && t2.colors && t2.colors[e3] ? Z("colors", e3) :
|
|
5674
|
+
var b2 = e2.backgroundColor, d2 = e2.borderColor, C2 = e2.borderBottomColor, i2 = e2.borderLeftColor, s2 = e2.borderRightColor, c2 = e2.borderTopColor, f = e2.color, u2 = e2.fill, n2 = e2.outlineColor, m2 = e2.stroke, a2 = n$3(e2, ["backgroundColor", "borderColor", "borderBottomColor", "borderLeftColor", "borderRightColor", "borderTopColor", "color", "fill", "outlineColor", "stroke"]), k2 = { backgroundColor: b2, borderBottomColor: C2, borderColor: d2, borderLeftColor: i2, borderRightColor: s2, borderTopColor: c2, color: f, fill: u2, outlineColor: n2, stroke: m2 };
|
|
5675
|
+
return Object.keys(k2).forEach((function(o2) {
|
|
5676
|
+
var e3 = k2[o2];
|
|
5677
|
+
e3 && (a2[o2] = t2 && t2.colors && t2.colors[e3] ? Z("colors", e3) : O(e3));
|
|
5661
5678
|
})), a2;
|
|
5662
5679
|
}
|
|
5663
5680
|
function o$2(o2, t2) {
|
|
@@ -5666,8 +5683,8 @@ function o$2(o2, t2) {
|
|
|
5666
5683
|
}
|
|
5667
5684
|
function l(l2) {
|
|
5668
5685
|
void 0 === l2 && (l2 = {});
|
|
5669
|
-
var n2 = l2.alignItems, t2 = l2.alignSelf, a2 = l2.basis, f = l2.direction,
|
|
5670
|
-
return f && (h2.flexDirection = f), void 0 === u2 && (u2 =
|
|
5686
|
+
var n2 = l2.alignItems, t2 = l2.alignSelf, a2 = l2.basis, f = l2.direction, d2 = l2.flexBasis, x2 = l2.flexGrow, p = l2.flexShrink, v$1 = l2.flexWrap, w = l2.grow, g = l2.justifyContent, m2 = l2.shrink, u2 = l2.wrap, S = n$3(l2, ["alignItems", "alignSelf", "basis", "direction", "flexBasis", "flexGrow", "flexShrink", "flexWrap", "grow", "justifyContent", "shrink", "wrap"]), h2 = {};
|
|
5687
|
+
return f && (h2.flexDirection = f), void 0 === u2 && (u2 = v$1), void 0 !== u2 && (h2.flexWrap = "reverse" === u2 ? "wrap-reverse" : true === u2 || "wrap" === u2 ? "wrap" : "nowrap"), void 0 === w && (w = x2), void 0 !== w && (h2.flexGrow = true === w ? 1 : w), void 0 === m2 && (m2 = p), void 0 !== m2 && (h2.flexShrink = true === m2 ? 1 : m2), void 0 === a2 && (a2 = d2), void 0 !== a2 && (h2.flexBasis = b(a2)), g && (h2.justifyContent = v[g] || g), n2 && (h2.alignItems = h$1[n2] || n2), t2 && (h2.alignSelf = h$1[t2] || t2), o$4(o$4({}, S), h2);
|
|
5671
5688
|
}
|
|
5672
5689
|
function r$1(r2) {
|
|
5673
5690
|
void 0 === r2 && (r2 = {});
|
|
@@ -5676,41 +5693,41 @@ function r$1(r2) {
|
|
|
5676
5693
|
}
|
|
5677
5694
|
function t$1(t2) {
|
|
5678
5695
|
var i2 = t2.uppercase, r2 = n$3(t2, ["uppercase"]);
|
|
5679
|
-
return r2.boxShadow && r2.boxShadow.constructor === Array && (r2.boxShadow = r2.boxShadow.join(", ")), void 0 !== r2.lineHeight && (r2.lineHeight = "number" == typeof r2.lineHeight ?
|
|
5696
|
+
return r2.boxShadow && r2.boxShadow.constructor === Array && (r2.boxShadow = r2.boxShadow.join(", ")), void 0 !== r2.lineHeight && (r2.lineHeight = "number" == typeof r2.lineHeight ? b(r2.lineHeight) : r2.lineHeight), i2 && (r2.textTransform = "uppercase", r2.letterSpacing = "0.15em"), r2;
|
|
5680
5697
|
}
|
|
5681
5698
|
function e$3(e2) {
|
|
5682
5699
|
var d2 = e2.position, r2 = e2.top, s2 = e2.right, n2 = e2.bottom, p = e2.left, l2 = e2.zIndex, m2 = n$3(e2, ["position", "top", "right", "bottom", "left", "zIndex"]), f = {};
|
|
5683
|
-
return d2 && (f.position = d2), void 0 !== r2 && (f.top =
|
|
5700
|
+
return d2 && (f.position = d2), void 0 !== r2 && (f.top = b(r2)), void 0 !== s2 && (f.right = b(s2)), void 0 !== n2 && (f.bottom = b(n2)), void 0 !== p && (f.left = b(p)), void 0 !== l2 && (f.zIndex = l2), o$4(o$4({}, m2), f);
|
|
5684
5701
|
}
|
|
5685
5702
|
function h(h2) {
|
|
5686
5703
|
var e2 = h2.width, m2 = h2.height, d2 = h2.minWidth, n2 = h2.minHeight, a2 = h2.maxWidth, o2 = h2.maxHeight, r2 = n$3(h2, ["width", "height", "minWidth", "minHeight", "maxWidth", "maxHeight"]), g = { height: m2, maxHeight: o2, maxWidth: a2, minHeight: n2, minWidth: d2, width: e2 };
|
|
5687
5704
|
return Object.keys(g).forEach((function(i2) {
|
|
5688
5705
|
var h3 = g[i2];
|
|
5689
|
-
void 0 !== h3 && (r2[i2] =
|
|
5706
|
+
void 0 !== h3 && (r2[i2] = b(h3));
|
|
5690
5707
|
})), r2;
|
|
5691
5708
|
}
|
|
5692
5709
|
function o$1(o2) {
|
|
5693
|
-
var p = o2.padding, r2 = o2.paddingHorizontal, m2 = o2.paddingVertical, e2 = o2.paddingTop, f = o2.paddingRight, l2 = o2.paddingBottom, h2 = o2.paddingLeft, s2 = o2.margin, B = o2.marginHorizontal, L = o2.marginVertical, R = o2.marginTop, T = o2.marginRight, c2 = o2.marginBottom, u2 = o2.marginLeft,
|
|
5694
|
-
if (
|
|
5695
|
-
var w =
|
|
5710
|
+
var p = o2.padding, r2 = o2.paddingHorizontal, m2 = o2.paddingVertical, e2 = o2.paddingTop, f = o2.paddingRight, l2 = o2.paddingBottom, h2 = o2.paddingLeft, s2 = o2.margin, B = o2.marginHorizontal, L = o2.marginVertical, R = o2.marginTop, T = o2.marginRight, c2 = o2.marginBottom, u2 = o2.marginLeft, v2 = o2.gap, G = o2.columnGap, z = o2.rowGap, H = n$3(o2, ["padding", "paddingHorizontal", "paddingVertical", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "margin", "marginHorizontal", "marginVertical", "marginTop", "marginRight", "marginBottom", "marginLeft", "gap", "columnGap", "rowGap"]), V = {};
|
|
5711
|
+
if (x(p)) if ("string" == typeof p) {
|
|
5712
|
+
var w = j("padding", p);
|
|
5696
5713
|
V.paddingTop = w.paddingTop, V.paddingRight = w.paddingRight, V.paddingBottom = w.paddingBottom, V.paddingLeft = w.paddingLeft;
|
|
5697
5714
|
} else {
|
|
5698
|
-
var b$1 =
|
|
5715
|
+
var b$1 = k(p);
|
|
5699
5716
|
V.paddingTop = b$1, V.paddingRight = b$1, V.paddingBottom = b$1, V.paddingLeft = b$1;
|
|
5700
5717
|
}
|
|
5701
|
-
if (
|
|
5702
|
-
var
|
|
5703
|
-
V.marginTop =
|
|
5718
|
+
if (x(m2, e2) && (V.paddingTop = k(m2, e2)), x(r2, f) && (V.paddingRight = k(r2, f)), x(m2, l2) && (V.paddingBottom = k(m2, l2)), x(r2, h2) && (V.paddingLeft = k(r2, h2)), x(s2)) if ("string" == typeof s2) {
|
|
5719
|
+
var j$1 = j("margin", s2);
|
|
5720
|
+
V.marginTop = j$1.marginTop, V.marginRight = j$1.marginRight, V.marginBottom = j$1.marginBottom, V.marginLeft = j$1.marginLeft;
|
|
5704
5721
|
} else {
|
|
5705
|
-
var y
|
|
5706
|
-
V.marginTop = y
|
|
5722
|
+
var y = k(s2);
|
|
5723
|
+
V.marginTop = y, V.marginRight = y, V.marginBottom = y, V.marginLeft = y;
|
|
5707
5724
|
}
|
|
5708
|
-
return
|
|
5725
|
+
return x(L, R) && (V.marginTop = k(L, R)), x(B, T) && (V.marginRight = k(B, T)), x(L, c2) && (V.marginBottom = k(L, c2)), x(B, u2) && (V.marginLeft = k(B, u2)), void 0 !== v2 && (V.gap = b(v2)), void 0 !== G && (V.columnGap = b(G)), void 0 !== z && (V.rowGap = b(z)), o$4(o$4({}, H), V);
|
|
5709
5726
|
}
|
|
5710
5727
|
function e$2(e2, r2) {
|
|
5711
5728
|
var c2 = e2.stroke, p = e2.strokeAlign, n2 = void 0 === p ? "outside" : p, x2 = e2.strokeOpacity, a2 = e2.strokeWeight, l2 = n$3(e2, ["stroke", "strokeAlign", "strokeOpacity", "strokeWeight"]), u2 = {};
|
|
5712
5729
|
if (c2 && a2) {
|
|
5713
|
-
var d2 = r2 && r2.colors && r2.colors[c2] ? Z("colors", c2) :
|
|
5730
|
+
var d2 = r2 && r2.colors && r2.colors[c2] ? Z("colors", c2) : O(c2), f = u2.boxShadow ? u2.boxShadow.split(", ") : [];
|
|
5714
5731
|
"inside" === n2 ? f.unshift("inset 0px 0px 0px ".concat(a2, "px ").concat(d2)) : "outside" === n2 ? f.unshift("0px 0px 0px ".concat(a2, "px ").concat(d2)) : "center" === n2 && (f.unshift("inset 0px 0px 0px ".concat(a2 / 2, "px ").concat(d2)), f.unshift("0px 0px 0px ".concat(a2 / 2, "px ").concat(d2))), u2.boxShadow = f.join(", ");
|
|
5715
5732
|
} else u2.stroke = c2, x2 && (u2.strokeOpacity = x2);
|
|
5716
5733
|
return o$4(o$4({}, l2), u2);
|
|
@@ -5727,7 +5744,7 @@ function e$1(e2, t2) {
|
|
|
5727
5744
|
return e2;
|
|
5728
5745
|
}
|
|
5729
5746
|
var c = [r$1, l, e$3, h, o$1, t$2, e$2, e$1, e$4, o$2, a, t$1];
|
|
5730
|
-
var o = ["alignContent", "alignItems", "alignSelf", "alignmentBaseline", "animation", "animationDelay", "animationDirection", "animationDuration", "animationFillMode", "animationIterationCount", "animationName", "animationPlayState", "animationTimingFunction", "aspectRatio", "backfaceVisibility", "background", "backgroundAttachment", "backgroundBlendMode", "backgroundClip", "backgroundImage", "backgroundOrigin", "backgroundPosition", "backgroundPositionX", "backgroundPositionY", "backgroundRepeat", "backgroundSize", "baselineShift", "border", "borderBottom", "borderBottomLeftRadius", "borderBottomRightRadius", "borderBottomStyle", "borderBottomWidth", "borderCollapse", "borderImage", "borderImageOutset", "borderImageRepeat", "borderImageSlice", "borderImageSource", "borderImageWidth", "borderLeft", "borderLeftStyle", "borderLeftWidth", "borderRadius", "borderRight", "borderRightStyle", "borderRightWidth", "borderSpacing", "borderStyle", "borderTop", "borderTopLeftRadius", "borderTopRightRadius", "borderTopStyle", "borderTopWidth", "borderWidth", "bottom", "boxShadow", "boxSizing", "breakAfter", "breakBefore", "breakInside", "clear", "clip", "clipPath", "clipRule", "columnCount", "columnFill", "columnGap", "columnRule", "columnRuleColor", "columnRuleStyle", "columnRuleWidth", "columnSpan", "columnWidth", "columns", "contain", "content", "counterIncrement", "counterReset", "cursor", "direction", "display", "fillOpacity", "fillRule", "filter", "flex", "flexBasis", "flexDirection", "flexFlow", "flexGrow", "flexShrink", "flexWrap", "font", "fontFamily", "fontFeatureSettings", "fontKerning", "fontSize", "fontStretch", "fontStyle", "fontVariant", "fontVariantCaps", "fontVariantLigatures", "fontVariantNumeric", "fontWeight", "gap", "gridArea", "gridAutoColumns", "gridAutoFlow", "gridAutoRows", "gridColumn", "gridColumnEnd", "gridColumnGap", "gridColumnStart", "gridGap", "gridRow", "gridRowEnd", "gridRowGap", "gridRowStart", "gridTemplate", "gridTemplateAreas", "gridTemplateColumns", "gridTemplateRows", "height", "hyphens", "imageRendering", "isolation", "justifyContent", "justifyItems", "justifySelf", "left", "letterSpacing", "lightingColor", "lineHeight", "listStyle", "listStyleImage", "listStylePosition", "listStyleType", "margin", "marginBottom", "marginLeft", "marginRight", "marginTop", "mask", "maskType", "maxHeight", "maxWidth", "minHeight", "minWidth", "mixBlendMode", "motion", "objectFit", "objectPosition", "opacity", "order", "outline", "outlineColor", "outlineOffset", "outlineStyle", "outlineWidth", "overflow", "overflowWrap", "overflowX", "overflowY", "padding", "paddingBottom", "paddingLeft", "paddingRight", "paddingTop", "pageBreakAfter", "pageBreakBefore", "pageBreakInside", "perspective", "perspectiveOrigin", "placeItems", "placeSelf", "pointerEvents", "position", "resize", "right", "strokeDasharray", "strokeDashoffset", "strokeLinecap", "strokeLinejoin", "strokeMiterlimit", "strokeOpacity", "strokeWidth", "tabSize", "tableLayout", "textAlign", "textDecoration", "textIndent", "textOrientation", "textOverflow", "textRendering", "textShadow", "textTransform", "top", "touchAction", "transform", "transformOrigin", "transformStyle", "transition", "transitionDelay", "transitionDuration", "transitionProperty", "transitionTimingFunction", "verticalAlign", "visibility", "clipPath", "filter", "userSelect", "WebkitOverflowScrolling", "writingMode", "whiteSpace", "width", "willChange", "wordBreak", "wordSpacing", "wordWrap", "zIndex"], e = ["backgroundColor", "borderColor", "borderBottomColor", "borderLeftColor", "borderRightColor", "borderTopColor", "color", "fill", "outlineColor", "stroke"], i$1 = ["css", "column", "columnStart", "columnEnd", "row", "rowStart", "rowEnd", "basis", "elevation", "grow", "marginHorizontal", "marginVertical", "paddingHorizontal", "paddingVertical", "radius", "radiusTop", "radiusRight", "radiusBottom", "radiusLeft", "x", "y", "rotate", "scale", "uppercase", "shrink", "wrap", "strokeAlign", "strokeWeight"], r = e$
|
|
5747
|
+
var o = ["alignContent", "alignItems", "alignSelf", "alignmentBaseline", "animation", "animationDelay", "animationDirection", "animationDuration", "animationFillMode", "animationIterationCount", "animationName", "animationPlayState", "animationTimingFunction", "aspectRatio", "backfaceVisibility", "background", "backgroundAttachment", "backgroundBlendMode", "backgroundClip", "backgroundImage", "backgroundOrigin", "backgroundPosition", "backgroundPositionX", "backgroundPositionY", "backgroundRepeat", "backgroundSize", "baselineShift", "border", "borderBottom", "borderBottomLeftRadius", "borderBottomRightRadius", "borderBottomStyle", "borderBottomWidth", "borderCollapse", "borderImage", "borderImageOutset", "borderImageRepeat", "borderImageSlice", "borderImageSource", "borderImageWidth", "borderLeft", "borderLeftStyle", "borderLeftWidth", "borderRadius", "borderRight", "borderRightStyle", "borderRightWidth", "borderSpacing", "borderStyle", "borderTop", "borderTopLeftRadius", "borderTopRightRadius", "borderTopStyle", "borderTopWidth", "borderWidth", "bottom", "boxShadow", "boxSizing", "breakAfter", "breakBefore", "breakInside", "clear", "clip", "clipPath", "clipRule", "columnCount", "columnFill", "columnGap", "columnRule", "columnRuleColor", "columnRuleStyle", "columnRuleWidth", "columnSpan", "columnWidth", "columns", "contain", "content", "counterIncrement", "counterReset", "cursor", "direction", "display", "fillOpacity", "fillRule", "filter", "flex", "flexBasis", "flexDirection", "flexFlow", "flexGrow", "flexShrink", "flexWrap", "font", "fontFamily", "fontFeatureSettings", "fontKerning", "fontSize", "fontStretch", "fontStyle", "fontVariant", "fontVariantCaps", "fontVariantLigatures", "fontVariantNumeric", "fontWeight", "gap", "gridArea", "gridAutoColumns", "gridAutoFlow", "gridAutoRows", "gridColumn", "gridColumnEnd", "gridColumnGap", "gridColumnStart", "gridGap", "gridRow", "gridRowEnd", "gridRowGap", "gridRowStart", "gridTemplate", "gridTemplateAreas", "gridTemplateColumns", "gridTemplateRows", "height", "hyphens", "imageRendering", "isolation", "justifyContent", "justifyItems", "justifySelf", "left", "letterSpacing", "lightingColor", "lineHeight", "listStyle", "listStyleImage", "listStylePosition", "listStyleType", "margin", "marginBottom", "marginLeft", "marginRight", "marginTop", "mask", "maskType", "maxHeight", "maxWidth", "minHeight", "minWidth", "mixBlendMode", "motion", "objectFit", "objectPosition", "opacity", "order", "outline", "outlineColor", "outlineOffset", "outlineStyle", "outlineWidth", "overflow", "overflowWrap", "overflowX", "overflowY", "padding", "paddingBottom", "paddingLeft", "paddingRight", "paddingTop", "pageBreakAfter", "pageBreakBefore", "pageBreakInside", "perspective", "perspectiveOrigin", "placeItems", "placeSelf", "pointerEvents", "position", "resize", "right", "strokeDasharray", "strokeDashoffset", "strokeLinecap", "strokeLinejoin", "strokeMiterlimit", "strokeOpacity", "strokeWidth", "tabSize", "tableLayout", "textAlign", "textDecoration", "textIndent", "textOrientation", "textOverflow", "textRendering", "textShadow", "textTransform", "top", "touchAction", "transform", "transformOrigin", "transformStyle", "transition", "transitionDelay", "transitionDuration", "transitionProperty", "transitionTimingFunction", "verticalAlign", "visibility", "clipPath", "filter", "userSelect", "WebkitOverflowScrolling", "writingMode", "whiteSpace", "width", "willChange", "wordBreak", "wordSpacing", "wordWrap", "zIndex"], e = ["backgroundColor", "borderColor", "borderBottomColor", "borderLeftColor", "borderRightColor", "borderTopColor", "color", "fill", "outlineColor", "stroke"], i$1 = ["css", "column", "columnStart", "columnEnd", "row", "rowStart", "rowEnd", "basis", "elevation", "grow", "marginHorizontal", "marginVertical", "paddingHorizontal", "paddingVertical", "radius", "radiusTop", "radiusRight", "radiusBottom", "radiusLeft", "x", "y", "rotate", "scale", "uppercase", "shrink", "wrap", "strokeAlign", "strokeWeight"], r = e$6(e$6(e$6([], o, true), e, true), i$1), n$1 = ["active", "focus", "hover"];
|
|
5731
5748
|
var n = c.length;
|
|
5732
5749
|
function s(t2, e2, s2) {
|
|
5733
5750
|
void 0 === t2 && (t2 = {});
|
|
@@ -5752,14 +5769,14 @@ function u(t2, o2, e2) {
|
|
|
5752
5769
|
}), {}) : i(t2, o2, e2) : null;
|
|
5753
5770
|
}
|
|
5754
5771
|
function t(t2) {
|
|
5755
|
-
var o2 = t2.className, d2 = void 0 === o2 ? void 0 : o2, v2 = t2.mediaQueries, l2 = void 0 === v2 ? {} : v2, c2 = t2.plugin, u2 = void 0 === c2 ? void 0 : c2, p = t2.variant, f = t2.variants, m2 = void 0 === f ? {} : f,
|
|
5772
|
+
var o2 = t2.className, d2 = void 0 === o2 ? void 0 : o2, v2 = t2.mediaQueries, l2 = void 0 === v2 ? {} : v2, c2 = t2.plugin, u2 = void 0 === c2 ? void 0 : c2, p = t2.variant, f = t2.variants, m2 = void 0 === f ? {} : f, y = t2.visible, b2 = void 0 === y || y, x2 = n$3(t2, ["className", "mediaQueries", "plugin", "variant", "variants", "visible"]), O2 = {}, j2 = {}, k2 = function(e2) {
|
|
5756
5773
|
return r.indexOf(e2) > -1 || n$1.indexOf(e2) > -1 || u2 && u2.styleProps.indexOf(e2) > -1;
|
|
5757
5774
|
};
|
|
5758
5775
|
for (var N in x2) {
|
|
5759
5776
|
var g = x2[N];
|
|
5760
|
-
|
|
5777
|
+
k2(N) ? j2[N] = g : O2[N] = g;
|
|
5761
5778
|
}
|
|
5762
|
-
return o$4(o$4({},
|
|
5779
|
+
return o$4(o$4({}, O2), { className: d2 ? "tapestry-react-reset ".concat(d2) : "tapestry-react-reset", css: function(t3) {
|
|
5763
5780
|
var o3 = {};
|
|
5764
5781
|
for (var d3 in j2) {
|
|
5765
5782
|
var v3 = j2[d3];
|
|
@@ -5768,18 +5785,18 @@ function t(t2) {
|
|
|
5768
5785
|
var c3 = s(o3, u2, t3), f2 = Object.keys(l2).reduce((function(e2, i2) {
|
|
5769
5786
|
var r2 = null == t3 ? void 0 : t3.breakpoints[i2], s$12 = r2 ? "number" == typeof r2 ? "@media screen and (min-width: ".concat(r2, "px)") : r2 : i2, a2 = s(l2[i2], u2, t3);
|
|
5770
5787
|
return void 0 !== a2.visible && (a2.display = a2.visible ? c3.display : "none", delete a2.visible), e2[s$12] = a2, e2;
|
|
5771
|
-
}), {}),
|
|
5788
|
+
}), {}), y2 = function(r2) {
|
|
5772
5789
|
var n2 = r2.variants, s2 = n$3(r2, ["variants"]);
|
|
5773
5790
|
return n2 ? o$4(o$4({}, s2), x3(n2)) : r2;
|
|
5774
5791
|
}, x3 = function(s$12) {
|
|
5775
5792
|
return Object.keys(s$12).reduce((function(o4, d4) {
|
|
5776
5793
|
var v4, l3 = s(s$12[d4], u2, t3), f3 = l3.visible, m3 = n$3(l3, ["visible"]);
|
|
5777
|
-
return void 0 !== f3 && (m3.display = f3 ? c3.display : "none"), p.includes(d4) ? o$4(o$4({}, o4),
|
|
5794
|
+
return void 0 !== f3 && (m3.display = f3 ? c3.display : "none"), p.includes(d4) ? o$4(o$4({}, o4), y2(m3)) : r$3(n$1, d4) ? o$4(o$4({}, o4), ((v4 = {})[":".concat(d4)] = y2(m3), v4)) : o4;
|
|
5778
5795
|
}), {});
|
|
5779
|
-
},
|
|
5780
|
-
return false === b2 && (c3.display = "none"), [c3, f2,
|
|
5796
|
+
}, O3 = x3(m2);
|
|
5797
|
+
return false === b2 && (c3.display = "none"), [c3, f2, O3];
|
|
5781
5798
|
} });
|
|
5782
5799
|
}
|
|
5783
|
-
exports.defaultTheme =
|
|
5800
|
+
exports.defaultTheme = s$1;
|
|
5784
5801
|
exports.splitStyles = t;
|
|
5785
5802
|
exports.stylePropNames = r;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@planningcenter/tapestry-migration-cli",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-rc.10",
|
|
4
4
|
"description": "CLI tool for Tapestry migrations",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"author": "Planning Center",
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"engines": {
|
|
26
|
-
"node": ">=
|
|
26
|
+
"node": ">=20.0.0"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"commander": "^11.0.0",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"publishConfig": {
|
|
52
52
|
"access": "public"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "a203b9bca56b893e03dad1c64c8bdfa57c22d28f"
|
|
55
55
|
}
|
|
@@ -30,7 +30,8 @@ export default function Test() {
|
|
|
30
30
|
expect(result).toContain(
|
|
31
31
|
'import { Button, Tooltip } from "@planningcenter/tapestry-react"'
|
|
32
32
|
)
|
|
33
|
-
expect(result).toContain('<Tooltip {...{ title: "Save this item" }}
|
|
33
|
+
expect(result).toContain('<Tooltip {...{ title: "Save this item" }}')
|
|
34
|
+
expect(result).toContain("refAsInnerRef={false}")
|
|
34
35
|
expect(result).toContain("<Button>Save</Button>")
|
|
35
36
|
expect(result).toContain("</Tooltip>")
|
|
36
37
|
expect(result).not.toContain("tooltip=")
|
|
@@ -47,7 +48,8 @@ export default function Test() {
|
|
|
47
48
|
|
|
48
49
|
const result = applyTransform(input)
|
|
49
50
|
|
|
50
|
-
expect(result).toContain('<Tooltip {...{ title: "Save this item" }}
|
|
51
|
+
expect(result).toContain('<Tooltip {...{ title: "Save this item" }}')
|
|
52
|
+
expect(result).toContain("refAsInnerRef={false}")
|
|
51
53
|
expect(result).toContain("<Button>Save</Button>")
|
|
52
54
|
expect(result).not.toContain("tooltip=")
|
|
53
55
|
})
|
|
@@ -63,9 +65,8 @@ export default function Test() {
|
|
|
63
65
|
|
|
64
66
|
const result = applyTransform(input)
|
|
65
67
|
|
|
66
|
-
expect(result).toContain(
|
|
67
|
-
|
|
68
|
-
)
|
|
68
|
+
expect(result).toContain('<Tooltip {...{text: "Save", placement: "top"}}')
|
|
69
|
+
expect(result).toContain("refAsInnerRef={false}")
|
|
69
70
|
expect(result).toContain("<Button>Save</Button>")
|
|
70
71
|
expect(result).not.toContain("tooltip=")
|
|
71
72
|
})
|
|
@@ -81,7 +82,8 @@ export default function Test() {
|
|
|
81
82
|
|
|
82
83
|
const result = applyTransform(input)
|
|
83
84
|
|
|
84
|
-
expect(result).toContain('<Tooltip {...{title: "Help"}}
|
|
85
|
+
expect(result).toContain('<Tooltip {...{title: "Help"}}')
|
|
86
|
+
expect(result).toContain("refAsInnerRef={false}")
|
|
85
87
|
expect(result).toContain(
|
|
86
88
|
'<Button variant="primary" onClick={handler} disabled>Save</Button>'
|
|
87
89
|
)
|
|
@@ -99,7 +101,8 @@ export default function Test() {
|
|
|
99
101
|
|
|
100
102
|
const result = applyTransform(input)
|
|
101
103
|
|
|
102
|
-
expect(result).toContain('<Tooltip {...{title: "Icon button"}}
|
|
104
|
+
expect(result).toContain('<Tooltip {...{title: "Icon button"}}')
|
|
105
|
+
expect(result).toContain("refAsInnerRef={false}")
|
|
103
106
|
expect(result).toContain("<Button />")
|
|
104
107
|
expect(result).toContain("</Tooltip>")
|
|
105
108
|
expect(result).not.toContain("tooltip=")
|
|
@@ -121,7 +124,8 @@ export default function Test() {
|
|
|
121
124
|
expect(result).toContain(
|
|
122
125
|
'import { Button, Link, Tooltip } from "@planningcenter/tapestry-react"'
|
|
123
126
|
)
|
|
124
|
-
expect(result).toContain('<Tooltip {...{title: "Save"}}
|
|
127
|
+
expect(result).toContain('<Tooltip {...{title: "Save"}}')
|
|
128
|
+
expect(result).toContain("refAsInnerRef={false}")
|
|
125
129
|
})
|
|
126
130
|
|
|
127
131
|
it("should not add duplicate Tooltip import", () => {
|
|
@@ -197,8 +201,9 @@ export default function Test() {
|
|
|
197
201
|
expect(result).toContain(
|
|
198
202
|
'import { Button, Tooltip } from "@planningcenter/tapestry-react"'
|
|
199
203
|
)
|
|
200
|
-
expect(result).toContain('<Tooltip {...{title: "Save the document"}}
|
|
201
|
-
expect(result).toContain('<Tooltip {...{title: "Cancel operation"}}
|
|
204
|
+
expect(result).toContain('<Tooltip {...{title: "Save the document"}}')
|
|
205
|
+
expect(result).toContain('<Tooltip {...{title: "Cancel operation"}}')
|
|
206
|
+
expect(result).toContain("refAsInnerRef={false}")
|
|
202
207
|
expect(result).not.toContain("tooltip=")
|
|
203
208
|
})
|
|
204
209
|
|
|
@@ -218,7 +223,8 @@ export default function Test() {
|
|
|
218
223
|
|
|
219
224
|
const result = applyTransform(input)
|
|
220
225
|
|
|
221
|
-
expect(result).toContain('<Tooltip {...{title: "Has tooltip"}}
|
|
226
|
+
expect(result).toContain('<Tooltip {...{title: "Has tooltip"}}')
|
|
227
|
+
expect(result).toContain("refAsInnerRef={false}")
|
|
222
228
|
expect(result).toContain("<Button>With Tooltip</Button>")
|
|
223
229
|
expect(result).toContain("<Button>Without Tooltip</Button>")
|
|
224
230
|
// Only one Tooltip wrapper should be created
|
|
@@ -282,7 +288,8 @@ export default function Test() {
|
|
|
282
288
|
expect(result).toContain(
|
|
283
289
|
'import { Button as TapestryButton, Tooltip } from "@planningcenter/tapestry-react"'
|
|
284
290
|
)
|
|
285
|
-
expect(result).toContain('<Tooltip {...{title: "Save item"}}
|
|
291
|
+
expect(result).toContain('<Tooltip {...{title: "Save item"}}')
|
|
292
|
+
expect(result).toContain("refAsInnerRef={false}")
|
|
286
293
|
expect(result).toContain("<TapestryButton>Save</TapestryButton>")
|
|
287
294
|
expect(result).not.toContain("tooltip=")
|
|
288
295
|
})
|
|
@@ -307,8 +314,9 @@ export default function Test({ items }) {
|
|
|
307
314
|
const result = applyTransform(input)
|
|
308
315
|
|
|
309
316
|
expect(result).toContain(
|
|
310
|
-
"<Tooltip key={item.id} {...`Save ${item.name}`}
|
|
317
|
+
"<Tooltip key={item.id} {...`Save ${item.name}`}"
|
|
311
318
|
)
|
|
319
|
+
expect(result).toContain("refAsInnerRef={false}")
|
|
312
320
|
expect(result).toContain("<Button onClick={() => save(item)}>")
|
|
313
321
|
expect(result).not.toContain("tooltip=")
|
|
314
322
|
})
|
|
@@ -324,7 +332,8 @@ export default function Test() {
|
|
|
324
332
|
|
|
325
333
|
const result = applyTransform(input)
|
|
326
334
|
|
|
327
|
-
expect(result).toContain("<Tooltip
|
|
335
|
+
expect(result).toContain("<Tooltip")
|
|
336
|
+
expect(result).toContain("refAsInnerRef={false}")
|
|
328
337
|
expect(result).toContain("<Button>Save</Button>")
|
|
329
338
|
expect(result).toContain("</Tooltip>")
|
|
330
339
|
expect(result).not.toContain("tooltip")
|
|
@@ -359,11 +368,12 @@ export default function Test() {
|
|
|
359
368
|
expect(result).toContain(
|
|
360
369
|
'import { Button, Link, Tooltip } from "@planningcenter/tapestry-react"'
|
|
361
370
|
)
|
|
362
|
-
expect(result).toContain('<Tooltip {...{title: "Submit the form"}}
|
|
371
|
+
expect(result).toContain('<Tooltip {...{title: "Submit the form"}}')
|
|
372
|
+
expect(result).toContain("refAsInnerRef={false}")
|
|
363
373
|
expect(result).toContain('type="submit" variant="primary"')
|
|
364
374
|
expect(result).toContain("Submit")
|
|
365
375
|
expect(result).toContain(
|
|
366
|
-
'<Tooltip {...{text: "Reset form", placement: "bottom"}}
|
|
376
|
+
'<Tooltip {...{text: "Reset form", placement: "bottom"}}'
|
|
367
377
|
)
|
|
368
378
|
expect(result).toContain('type="reset"')
|
|
369
379
|
expect(result).toContain("Reset")
|
|
@@ -384,8 +394,9 @@ export default function Test() {
|
|
|
384
394
|
const result = applyTransform(input)!
|
|
385
395
|
|
|
386
396
|
expect(result.replace(/(\s*)?\n(\s*)?/gm, " ")).toContain(
|
|
387
|
-
'<Tooltip {...{ title: "Click me" }}
|
|
397
|
+
'<Tooltip {...{ title: "Click me" }}'
|
|
388
398
|
)
|
|
399
|
+
expect(result).toContain("refAsInnerRef={false}")
|
|
389
400
|
expect(result).toContain("<Button>Click</Button>")
|
|
390
401
|
expect(result).not.toContain("tooltip=")
|
|
391
402
|
})
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { addAttribute } from "../../shared/actions/addAttribute"
|
|
1
2
|
import { createWrapper } from "../../shared/actions/createWrapper"
|
|
2
3
|
import { getAttributeValueAsProps } from "../../shared/actions/getAttributeValueAsProps"
|
|
3
4
|
import { removeAttribute } from "../../shared/actions/removeAttribute"
|
|
@@ -18,7 +19,7 @@ const transform = attributeTransformFactory({
|
|
|
18
19
|
|
|
19
20
|
removeAttribute("tooltip", { element, j, source })
|
|
20
21
|
|
|
21
|
-
createWrapper({
|
|
22
|
+
const wrapperElement = createWrapper({
|
|
22
23
|
conflictAlias: "TRTooltip",
|
|
23
24
|
element,
|
|
24
25
|
j,
|
|
@@ -28,6 +29,13 @@ const transform = attributeTransformFactory({
|
|
|
28
29
|
wrapperProps,
|
|
29
30
|
})
|
|
30
31
|
|
|
32
|
+
addAttribute({
|
|
33
|
+
element: wrapperElement,
|
|
34
|
+
j,
|
|
35
|
+
name: "refAsInnerRef",
|
|
36
|
+
value: false,
|
|
37
|
+
})
|
|
38
|
+
|
|
31
39
|
return true
|
|
32
40
|
},
|
|
33
41
|
})
|