@planningcenter/tapestry 3.4.1-rc.8 → 3.4.1
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/components/button/BaseButton.d.ts +1 -1
- package/dist/components/button/BaseButton.d.ts.map +1 -1
- package/dist/components/button/BaseButton.js +4 -15
- package/dist/components/button/BaseButton.js.map +1 -1
- package/dist/components/button/DropdownButton.d.ts +1 -1
- package/dist/components/button/DropdownButton.js +1 -1
- package/dist/components/button/DropdownButton.js.map +1 -1
- package/dist/components/link/BaseLink.d.ts.map +1 -1
- package/dist/components/link/BaseLink.js +4 -9
- package/dist/components/link/BaseLink.js.map +1 -1
- package/dist/index.css +15 -5
- package/dist/index.css.map +1 -1
- package/dist/reactRender.css +1162 -1152
- package/dist/reactRender.css.map +1 -1
- package/dist/reactRenderLegacy.css +1162 -1152
- package/dist/reactRenderLegacy.css.map +1 -1
- package/dist/unstable.css +15 -5
- package/dist/unstable.css.map +1 -1
- package/dist/utilities/buttonLinkShared.d.ts +1 -1
- package/dist/utilities/buttonLinkShared.d.ts.map +1 -1
- package/dist/utilities/buttonLinkShared.js +4 -18
- package/dist/utilities/buttonLinkShared.js.map +1 -1
- package/package.json +4 -4
|
@@ -37,5 +37,5 @@ export interface BaseComponentProps {
|
|
|
37
37
|
/** A React node to display after the component's content. Set via story args for non-primitive values. */
|
|
38
38
|
suffix?: React.ReactNode;
|
|
39
39
|
}
|
|
40
|
-
export declare
|
|
40
|
+
export declare function wrapStringWithSpan(content: React.ReactNode): React.ReactNode;
|
|
41
41
|
//# sourceMappingURL=buttonLinkShared.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buttonLinkShared.d.ts","sourceRoot":"","sources":["../../src/utilities/buttonLinkShared.
|
|
1
|
+
{"version":3,"file":"buttonLinkShared.d.ts","sourceRoot":"","sources":["../../src/utilities/buttonLinkShared.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;CAgB3B,CAAA;AAEV,eAAO,MAAM,wBAAwB;;;;;;CAM3B,CAAA;AAEV,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,wBAAwB,CAAA;AAEjE,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,wBAAwB,CAAA;AAEjE,MAAM,WAAW,kBAAkB;IACjC,yEAAyE;IACzE,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,yCAAyC;IACzC,IAAI,CAAC,EAAE,aAAa,CAAA;IACpB,2GAA2G;IAC3G,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACxB,iCAAiC;IACjC,IAAI,CAAC,EAAE,aAAa,CAAA;IACpB,0GAA0G;IAC1G,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CACzB;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,CAE5E"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import classNames from 'classnames';
|
|
2
1
|
import React__default from 'react';
|
|
3
2
|
|
|
4
3
|
const COMPONENT_KIND_CLASS_MAP = {
|
|
@@ -25,22 +24,9 @@ const COMPONENT_SIZE_CLASS_MAP = {
|
|
|
25
24
|
xl: "tds-btn--xl",
|
|
26
25
|
xs: "tds-btn--xs",
|
|
27
26
|
};
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
if (React__default.isValidElement(element)) {
|
|
32
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
33
|
-
return React__default.cloneElement(element, {
|
|
34
|
-
className: classNames(
|
|
35
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
36
|
-
element.props.className, className),
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
if (typeof element === "string" && element.trim()) {
|
|
40
|
-
return React__default.createElement("span", { className }, element);
|
|
41
|
-
}
|
|
42
|
-
return null;
|
|
43
|
-
};
|
|
27
|
+
function wrapStringWithSpan(content) {
|
|
28
|
+
return typeof content === "string" ? React__default.createElement("span", null, content) : content;
|
|
29
|
+
}
|
|
44
30
|
|
|
45
|
-
export { COMPONENT_KIND_CLASS_MAP, COMPONENT_SIZE_CLASS_MAP,
|
|
31
|
+
export { COMPONENT_KIND_CLASS_MAP, COMPONENT_SIZE_CLASS_MAP, wrapStringWithSpan };
|
|
46
32
|
//# sourceMappingURL=buttonLinkShared.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buttonLinkShared.js","sources":["../../src/utilities/buttonLinkShared.
|
|
1
|
+
{"version":3,"file":"buttonLinkShared.js","sources":["../../src/utilities/buttonLinkShared.tsx"],"sourcesContent":["import React from \"react\"\n\nexport const COMPONENT_KIND_CLASS_MAP = {\n delete: \"tds-btn--delete\",\n ghost: \"tds-btn--ghost-neutral\",\n \"ghost-delete\": \"tds-btn--ghost-delete\",\n \"ghost-interaction\": \"tds-btn--ghost-interaction\",\n \"inline-text\": \"tds-btn--inline-text\",\n neutral: \"tds-btn--neutral\",\n \"neutral-inline\": \"tds-btn--neutral-inline\",\n pill: \"tds-btn--pill\",\n primary: \"tds-btn--interaction\",\n \"primary-page-header\": \"tds-btn--primary-page-header\",\n secondary: \"tds-btn--outline-neutral\",\n \"secondary-delete\": \"tds-btn--outline-delete\",\n \"secondary-interaction\": \"tds-btn--outline-interaction\",\n \"secondary-page-header\": \"tds-btn--secondary-page-header\",\n \"staff-only\": \"tds-btn--staff-only\",\n} as const\n\nexport const COMPONENT_SIZE_CLASS_MAP = {\n lg: \"tds-btn--lg\",\n md: \"\",\n sm: \"tds-btn--sm\",\n xl: \"tds-btn--xl\",\n xs: \"tds-btn--xs\",\n} as const\n\nexport type ComponentSize = keyof typeof COMPONENT_SIZE_CLASS_MAP\n\nexport type ComponentKind = keyof typeof COMPONENT_KIND_CLASS_MAP\n\nexport interface BaseComponentProps {\n /** Whether the component should take the full width of its container. */\n fullWidth?: boolean\n /** The visual style of the component. */\n kind?: ComponentKind\n /** A React node to display before the component's content. Set via story args for non-primitive values. */\n prefix?: React.ReactNode\n /** The size of the component. */\n size?: ComponentSize\n /** A React node to display after the component's content. Set via story args for non-primitive values. */\n suffix?: React.ReactNode\n}\n\nexport function wrapStringWithSpan(content: React.ReactNode): React.ReactNode {\n return typeof content === \"string\" ? <span>{content}</span> : content\n}\n"],"names":["React"],"mappings":";;AAEO,MAAM,wBAAwB,GAAG;AACtC,IAAA,MAAM,EAAE,iBAAiB;AACzB,IAAA,KAAK,EAAE,wBAAwB;AAC/B,IAAA,cAAc,EAAE,uBAAuB;AACvC,IAAA,mBAAmB,EAAE,4BAA4B;AACjD,IAAA,aAAa,EAAE,sBAAsB;AACrC,IAAA,OAAO,EAAE,kBAAkB;AAC3B,IAAA,gBAAgB,EAAE,yBAAyB;AAC3C,IAAA,IAAI,EAAE,eAAe;AACrB,IAAA,OAAO,EAAE,sBAAsB;AAC/B,IAAA,qBAAqB,EAAE,8BAA8B;AACrD,IAAA,SAAS,EAAE,0BAA0B;AACrC,IAAA,kBAAkB,EAAE,yBAAyB;AAC7C,IAAA,uBAAuB,EAAE,8BAA8B;AACvD,IAAA,uBAAuB,EAAE,gCAAgC;AACzD,IAAA,YAAY,EAAE,qBAAqB;;AAG9B,MAAM,wBAAwB,GAAG;AACtC,IAAA,EAAE,EAAE,aAAa;AACjB,IAAA,EAAE,EAAE,EAAE;AACN,IAAA,EAAE,EAAE,aAAa;AACjB,IAAA,EAAE,EAAE,aAAa;AACjB,IAAA,EAAE,EAAE,aAAa;;AAoBb,SAAU,kBAAkB,CAAC,OAAwB,EAAA;AACzD,IAAA,OAAO,OAAO,OAAO,KAAK,QAAQ,GAAGA,cAAA,CAAA,aAAA,CAAA,MAAA,EAAA,IAAA,EAAO,OAAO,CAAQ,GAAG,OAAO;AACvE;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@planningcenter/tapestry",
|
|
3
|
-
"version": "3.4.1
|
|
3
|
+
"version": "3.4.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
},
|
|
52
52
|
"types": "./dist/index.d.ts",
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@planningcenter/tapestry-render": "^3.4.1
|
|
54
|
+
"@planningcenter/tapestry-render": "^3.4.1",
|
|
55
55
|
"@rollup/plugin-commonjs": "^26.0.1",
|
|
56
56
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
57
57
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
@@ -113,10 +113,10 @@
|
|
|
113
113
|
},
|
|
114
114
|
"dependencies": {
|
|
115
115
|
"@planningcenter/icons": "^15.29.0",
|
|
116
|
-
"@planningcenter/tapestry-tokens": "^3.4.1
|
|
116
|
+
"@planningcenter/tapestry-tokens": "^3.4.1",
|
|
117
117
|
"classnames": "^2.5.1",
|
|
118
118
|
"lodash": "^4.17.21",
|
|
119
119
|
"react-aria-components": "^1.17.0"
|
|
120
120
|
},
|
|
121
|
-
"gitHead": "
|
|
121
|
+
"gitHead": "f005d23b54d1a95f03e0823e6ab0d139af17cead"
|
|
122
122
|
}
|