@planningcenter/tapestry-migration-cli 3.4.1-rc.8 → 3.4.1-rc.9
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/tapestry-react-shim.cjs +34 -64
- package/package.json +3 -3
|
@@ -2512,6 +2512,33 @@ const React = /* @__PURE__ */ getDefaultExportFromCjs(reactExports);
|
|
|
2512
2512
|
function LoadingSpinner() {
|
|
2513
2513
|
return React.createElement("div", { className: "tds-loading-spinner" });
|
|
2514
2514
|
}
|
|
2515
|
+
const COMPONENT_KIND_CLASS_MAP = {
|
|
2516
|
+
delete: "tds-btn--delete",
|
|
2517
|
+
ghost: "tds-btn--ghost-neutral",
|
|
2518
|
+
"ghost-delete": "tds-btn--ghost-delete",
|
|
2519
|
+
"ghost-interaction": "tds-btn--ghost-interaction",
|
|
2520
|
+
"inline-text": "tds-btn--inline-text",
|
|
2521
|
+
neutral: "tds-btn--neutral",
|
|
2522
|
+
"neutral-inline": "tds-btn--neutral-inline",
|
|
2523
|
+
pill: "tds-btn--pill",
|
|
2524
|
+
primary: "tds-btn--interaction",
|
|
2525
|
+
"primary-page-header": "tds-btn--primary-page-header",
|
|
2526
|
+
secondary: "tds-btn--outline-neutral",
|
|
2527
|
+
"secondary-delete": "tds-btn--outline-delete",
|
|
2528
|
+
"secondary-interaction": "tds-btn--outline-interaction",
|
|
2529
|
+
"secondary-page-header": "tds-btn--secondary-page-header",
|
|
2530
|
+
"staff-only": "tds-btn--staff-only"
|
|
2531
|
+
};
|
|
2532
|
+
const COMPONENT_SIZE_CLASS_MAP = {
|
|
2533
|
+
lg: "tds-btn--lg",
|
|
2534
|
+
md: "",
|
|
2535
|
+
sm: "tds-btn--sm",
|
|
2536
|
+
xl: "tds-btn--xl",
|
|
2537
|
+
xs: "tds-btn--xs"
|
|
2538
|
+
};
|
|
2539
|
+
function wrapStringWithSpan(content) {
|
|
2540
|
+
return typeof content === "string" ? React.createElement("span", null, content) : content;
|
|
2541
|
+
}
|
|
2515
2542
|
var classnames = { exports: {} };
|
|
2516
2543
|
/*!
|
|
2517
2544
|
Copyright (c) 2018 Jed Watson.
|
|
@@ -2577,68 +2604,16 @@ function requireClassnames() {
|
|
|
2577
2604
|
}
|
|
2578
2605
|
var classnamesExports = requireClassnames();
|
|
2579
2606
|
const classNames = /* @__PURE__ */ getDefaultExportFromCjs(classnamesExports);
|
|
2580
|
-
const COMPONENT_KIND_CLASS_MAP = {
|
|
2581
|
-
delete: "tds-btn--delete",
|
|
2582
|
-
ghost: "tds-btn--ghost-neutral",
|
|
2583
|
-
"ghost-delete": "tds-btn--ghost-delete",
|
|
2584
|
-
"ghost-interaction": "tds-btn--ghost-interaction",
|
|
2585
|
-
"inline-text": "tds-btn--inline-text",
|
|
2586
|
-
neutral: "tds-btn--neutral",
|
|
2587
|
-
"neutral-inline": "tds-btn--neutral-inline",
|
|
2588
|
-
pill: "tds-btn--pill",
|
|
2589
|
-
primary: "tds-btn--interaction",
|
|
2590
|
-
"primary-page-header": "tds-btn--primary-page-header",
|
|
2591
|
-
secondary: "tds-btn--outline-neutral",
|
|
2592
|
-
"secondary-delete": "tds-btn--outline-delete",
|
|
2593
|
-
"secondary-interaction": "tds-btn--outline-interaction",
|
|
2594
|
-
"secondary-page-header": "tds-btn--secondary-page-header",
|
|
2595
|
-
"staff-only": "tds-btn--staff-only"
|
|
2596
|
-
};
|
|
2597
|
-
const COMPONENT_SIZE_CLASS_MAP = {
|
|
2598
|
-
lg: "tds-btn--lg",
|
|
2599
|
-
md: "",
|
|
2600
|
-
sm: "tds-btn--sm",
|
|
2601
|
-
xl: "tds-btn--xl",
|
|
2602
|
-
xs: "tds-btn--xs"
|
|
2603
|
-
};
|
|
2604
|
-
const enhanceElementWithClassName = (element, className) => {
|
|
2605
|
-
if (!element)
|
|
2606
|
-
return null;
|
|
2607
|
-
if (React.isValidElement(element)) {
|
|
2608
|
-
return React.cloneElement(element, {
|
|
2609
|
-
className: classNames(
|
|
2610
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2611
|
-
element.props.className,
|
|
2612
|
-
className
|
|
2613
|
-
)
|
|
2614
|
-
});
|
|
2615
|
-
}
|
|
2616
|
-
if (typeof element === "string" && element.trim()) {
|
|
2617
|
-
return React.createElement("span", { className }, element);
|
|
2618
|
-
}
|
|
2619
|
-
return null;
|
|
2620
|
-
};
|
|
2621
|
-
const buildComponentClassName$1 = ({ className, fullWidth, kind, loading, size }) => {
|
|
2622
|
-
return classNames(kind && "tds-btn", size && size !== "md" && COMPONENT_SIZE_CLASS_MAP[size], kind && COMPONENT_KIND_CLASS_MAP[kind], fullWidth && "tds-btn--full-width", loading && "tds-btn--loading", className);
|
|
2623
|
-
};
|
|
2624
2607
|
const BaseButton = reactExports.forwardRef(({ "aria-label": ariaLabel, className, disabled = false, fullWidth, kind = "secondary", label, loading = false, loadingAriaLabel = "Loading...", prefix, size, suffix, ...restProps }, ref) => {
|
|
2625
|
-
const combinedClassName =
|
|
2626
|
-
className,
|
|
2627
|
-
fullWidth,
|
|
2628
|
-
kind,
|
|
2629
|
-
loading,
|
|
2630
|
-
size
|
|
2631
|
-
});
|
|
2632
|
-
const prefixElement = enhanceElementWithClassName(prefix, "prefix");
|
|
2633
|
-
const suffixElement = enhanceElementWithClassName(suffix, "suffix");
|
|
2608
|
+
const combinedClassName = classNames(kind && "tds-btn", size && size !== "md" && COMPONENT_SIZE_CLASS_MAP[size], kind && COMPONENT_KIND_CLASS_MAP[kind], fullWidth && "tds-btn--full-width", loading && "tds-btn--loading", className, { "tds-btn--prefix": prefix, "tds-btn--suffix": suffix });
|
|
2634
2609
|
const isDisabled = disabled || loading;
|
|
2635
2610
|
return React.createElement(
|
|
2636
2611
|
"button",
|
|
2637
2612
|
{ type: "button", className: combinedClassName, ref, ...restProps, "aria-busy": loading || void 0, "aria-disabled": isDisabled || void 0, disabled: isDisabled, "aria-label": loading ? loadingAriaLabel : ariaLabel },
|
|
2638
2613
|
loading && React.createElement(LoadingSpinner, null),
|
|
2639
|
-
|
|
2614
|
+
wrapStringWithSpan(prefix),
|
|
2640
2615
|
loading ? React.createElement("span", null, label) : label,
|
|
2641
|
-
|
|
2616
|
+
wrapStringWithSpan(suffix)
|
|
2642
2617
|
);
|
|
2643
2618
|
});
|
|
2644
2619
|
BaseButton.displayName = "BaseButton";
|
|
@@ -2754,7 +2729,7 @@ function Icon({ symbol: s2, className, ...props }) {
|
|
|
2754
2729
|
function dropdownProps({ className }) {
|
|
2755
2730
|
return {
|
|
2756
2731
|
className: classNames(className, "tds-btn--dropdown"),
|
|
2757
|
-
suffix: React.createElement(Icon, { symbol: "general#down-caret", "aria-hidden": true })
|
|
2732
|
+
suffix: React.createElement(Icon, { className: "suffix", symbol: "general#down-caret", "aria-hidden": true })
|
|
2758
2733
|
};
|
|
2759
2734
|
}
|
|
2760
2735
|
const DropdownButton = reactExports.forwardRef((props, ref) => {
|
|
@@ -2788,20 +2763,15 @@ const PageHeaderActionsDropdownButton = reactExports.forwardRef(({ className, ne
|
|
|
2788
2763
|
return React.createElement(DropdownButton, { ref, ...props, kind: "secondary-page-header", ...needsAttentionProps({ className, needsAttention }) });
|
|
2789
2764
|
});
|
|
2790
2765
|
PageHeaderActionsDropdownButton.displayName = "PageHeaderActionsDropdownButton";
|
|
2791
|
-
const buildComponentClassName = (size, kind, fullWidth, className) => {
|
|
2792
|
-
return classNames(kind && "tds-btn", size && size !== "md" && kind && COMPONENT_SIZE_CLASS_MAP[size], kind && COMPONENT_KIND_CLASS_MAP[kind], fullWidth && "tds-btn--full-width", className);
|
|
2793
|
-
};
|
|
2794
2766
|
const BaseLink = reactExports.forwardRef(({ children, className, external = false, fullWidth, href, kind, label, prefix, size, suffix, ...restProps }, ref) => {
|
|
2795
|
-
const combinedClassName =
|
|
2796
|
-
const prefixElement = enhanceElementWithClassName(prefix, "prefix");
|
|
2797
|
-
const suffixElement = enhanceElementWithClassName(suffix, "suffix");
|
|
2767
|
+
const combinedClassName = classNames(kind && "tds-btn", size && size !== "md" && kind && COMPONENT_SIZE_CLASS_MAP[size], kind && COMPONENT_KIND_CLASS_MAP[kind], fullWidth && "tds-btn--full-width", className, { "tds-btn--prefix": prefix, "tds-btn--suffix": suffix });
|
|
2798
2768
|
const externalProps = external ? { rel: "noopener noreferrer", target: "_blank" } : {};
|
|
2799
2769
|
return React.createElement(
|
|
2800
2770
|
"a",
|
|
2801
2771
|
{ href, className: combinedClassName, ref, ...restProps, ...externalProps },
|
|
2802
|
-
|
|
2772
|
+
wrapStringWithSpan(prefix),
|
|
2803
2773
|
label || children,
|
|
2804
|
-
|
|
2774
|
+
wrapStringWithSpan(suffix)
|
|
2805
2775
|
);
|
|
2806
2776
|
});
|
|
2807
2777
|
BaseLink.displayName = "BaseLink";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@planningcenter/tapestry-migration-cli",
|
|
3
|
-
"version": "3.4.1-rc.
|
|
3
|
+
"version": "3.4.1-rc.9",
|
|
4
4
|
"description": "CLI tool for Tapestry migrations",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@emotion/react": "^11.14.0",
|
|
33
|
-
"@planningcenter/tapestry": "^3.4.1-rc.
|
|
33
|
+
"@planningcenter/tapestry": "^3.4.1-rc.9",
|
|
34
34
|
"@planningcenter/tapestry-react": "^4.11.5",
|
|
35
35
|
"@types/jscodeshift": "^17.3.0",
|
|
36
36
|
"@types/node": "^20.0.0",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"publishConfig": {
|
|
51
51
|
"access": "public"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "8c98e7300610da3514ddea4ea4b2c262441c9912"
|
|
54
54
|
}
|