@planningcenter/tapestry 2.8.0-rc.10 → 2.8.0-rc.12
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/page-header/index.js +1 -1
- package/dist/components/radio/Radio.d.ts +18 -0
- package/dist/components/radio/Radio.d.ts.map +1 -0
- package/dist/components/radio/Radio.js +24 -0
- package/dist/components/radio/Radio.js.map +1 -0
- package/dist/components/sidenav/index.js +1 -1
- package/dist/index.css +6 -6
- package/dist/index.css.map +1 -1
- package/dist/reactRender.css +6 -6
- package/dist/reactRender.css.map +1 -1
- package/dist/reactRenderLegacy.css +6 -6
- package/dist/reactRenderLegacy.css.map +1 -1
- package/dist/tapestry-wc/dist/components/{p-DH8SSvwR.js → p-Bhu9KZar.js} +2 -2
- package/dist/tapestry-wc/dist/components/p-Bhu9KZar.js.map +1 -0
- package/dist/tapestry-wc/dist/components/{p-CjnSzcFH.js → p-Bm3Yv5DQ.js} +3 -3
- package/dist/tapestry-wc/dist/components/p-Bm3Yv5DQ.js.map +1 -0
- package/dist/tapestry-wc/dist/components/{p-BhARqz4-.js → p-C-DiXomr.js} +2 -2
- package/dist/tapestry-wc/dist/components/p-C-DiXomr.js.map +1 -0
- package/dist/tapestry-wc/dist/components/{p-BGt5xQza.js → p-CD7Hye-R.js} +3 -3
- package/dist/tapestry-wc/dist/components/p-CD7Hye-R.js.map +1 -0
- package/dist/tapestry-wc/dist/components/{p-CCXjmhC0.js → p-DCsSkabe.js} +3 -3
- package/dist/tapestry-wc/dist/components/p-DCsSkabe.js.map +1 -0
- package/dist/tapestry-wc/dist/components/tds-page-header-nav.js +2 -2
- package/dist/tapestry-wc/dist/components/tds-page-header-nav.js.map +1 -1
- package/dist/tapestry-wc/dist/components/tds-page-header.js +3 -3
- package/dist/tapestry-wc/dist/components/tds-page-header.js.map +1 -1
- package/dist/tapestry-wc/dist/components/tds-sidenav-item.js +3 -3
- package/dist/tapestry-wc/dist/components/tds-sidenav-item.js.map +1 -1
- package/dist/tapestry-wc/dist/components/tds-sidenav-responsive-header.js +2 -2
- package/dist/tapestry-wc/dist/components/tds-sidenav-responsive-header.js.map +1 -1
- package/dist/tapestry-wc/dist/components/tds-sidenav-section.js +3 -3
- package/dist/tapestry-wc/dist/components/tds-sidenav-section.js.map +1 -1
- package/dist/tapestry-wc/dist/components/tds-sidenav.js +5 -5
- package/dist/tapestry-wc/dist/components/tds-sidenav.js.map +1 -1
- package/dist/tokens/tokens-deprecated.json +32 -16
- package/dist/tokens.css +6 -6
- package/dist/tokens.css.map +1 -1
- package/dist/unstable.css +6 -6
- package/dist/unstable.css.map +1 -1
- package/dist/unstable.d.ts +1 -0
- package/dist/unstable.d.ts.map +1 -1
- package/dist/unstable.js +1 -0
- package/dist/unstable.js.map +1 -1
- package/dist/utilities/useId.d.ts +2 -0
- package/dist/utilities/useId.d.ts.map +1 -0
- package/dist/utilities/useId.js +14 -0
- package/dist/utilities/useId.js.map +1 -0
- package/package.json +4 -4
- package/dist/tapestry-wc/dist/components/p-BGt5xQza.js.map +0 -1
- package/dist/tapestry-wc/dist/components/p-BhARqz4-.js.map +0 -1
- package/dist/tapestry-wc/dist/components/p-CCXjmhC0.js.map +0 -1
- package/dist/tapestry-wc/dist/components/p-CjnSzcFH.js.map +0 -1
- package/dist/tapestry-wc/dist/components/p-DH8SSvwR.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '../../tapestry-wc/dist/components/p-
|
|
1
|
+
import '../../tapestry-wc/dist/components/p-C-DiXomr.js';
|
|
2
2
|
import { defineCustomElement } from '../../tapestry-wc/dist/components/tds-page-header.js';
|
|
3
3
|
import { defineCustomElement as defineCustomElement$1 } from '../../tapestry-wc/dist/components/tds-page-header-nav.js';
|
|
4
4
|
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React, { InputHTMLAttributes } from "react";
|
|
2
|
+
export type RadioSize = "md" | "sm";
|
|
3
|
+
export interface RadioProps {
|
|
4
|
+
description?: string;
|
|
5
|
+
label: string;
|
|
6
|
+
name: string;
|
|
7
|
+
size?: RadioSize;
|
|
8
|
+
}
|
|
9
|
+
export type RadioElementProps = Omit<InputHTMLAttributes<HTMLInputElement>, keyof RadioProps | "type"> & RadioProps;
|
|
10
|
+
/**
|
|
11
|
+
* A radio component that renders as a radio input with label.
|
|
12
|
+
* Supports various sizes.
|
|
13
|
+
* Label must be a string. Must have a name attribute.
|
|
14
|
+
*
|
|
15
|
+
* @component
|
|
16
|
+
*/
|
|
17
|
+
export declare const Radio: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "type" | keyof RadioProps> & RadioProps & React.RefAttributes<HTMLInputElement>>;
|
|
18
|
+
//# sourceMappingURL=Radio.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../../src/components/radio/Radio.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAc,mBAAmB,EAAE,MAAM,OAAO,CAAA;AAI9D,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,IAAI,CAAA;AAEnC,MAAM,WAAW,UAAU;IACzB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,SAAS,CAAA;CACjB;AAED,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAClC,mBAAmB,CAAC,gBAAgB,CAAC,EACrC,MAAM,UAAU,GAAG,MAAM,CAC1B,GACC,UAAU,CAAA;AAEZ;;;;;;GAMG;AACH,eAAO,MAAM,KAAK,oKAuCjB,CAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import classNames from 'classnames';
|
|
2
|
+
import React, { forwardRef } from 'react';
|
|
3
|
+
import { useId } from '../../utilities/useId.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* A radio component that renders as a radio input with label.
|
|
7
|
+
* Supports various sizes.
|
|
8
|
+
* Label must be a string. Must have a name attribute.
|
|
9
|
+
*
|
|
10
|
+
* @component
|
|
11
|
+
*/
|
|
12
|
+
const Radio = forwardRef(({ className, description, id, label, size = "md", ...restProps }, ref) => {
|
|
13
|
+
const combinedClassName = classNames("tds-radio", size && size === "sm" && `tds-radio--sm`, className);
|
|
14
|
+
const stableId = useId();
|
|
15
|
+
const radioId = id || `tds-radio-${stableId}`;
|
|
16
|
+
return (React.createElement("div", { className: combinedClassName },
|
|
17
|
+
React.createElement("input", { ...restProps, "aria-describedby": description ? `${radioId}-description` : undefined, id: radioId, ref: ref, type: "radio" }),
|
|
18
|
+
React.createElement("label", { htmlFor: radioId }, label),
|
|
19
|
+
description && (React.createElement("p", { id: `${radioId}-description`, className: "tds-radio-description" }, description))));
|
|
20
|
+
});
|
|
21
|
+
Radio.displayName = "Radio";
|
|
22
|
+
|
|
23
|
+
export { Radio };
|
|
24
|
+
//# sourceMappingURL=Radio.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Radio.js","sources":["../../../src/components/radio/Radio.tsx"],"sourcesContent":["import classNames from \"classnames\"\nimport React, { forwardRef, InputHTMLAttributes } from \"react\"\n\nimport { useId } from \"../../utilities/useId\"\n\nexport type RadioSize = \"md\" | \"sm\"\n\nexport interface RadioProps {\n description?: string\n label: string\n name: string\n size?: RadioSize\n}\n\nexport type RadioElementProps = Omit<\n InputHTMLAttributes<HTMLInputElement>,\n keyof RadioProps | \"type\"\n> &\n RadioProps\n\n/**\n * A radio component that renders as a radio input with label.\n * Supports various sizes.\n * Label must be a string. Must have a name attribute.\n *\n * @component\n */\nexport const Radio = forwardRef<HTMLInputElement, RadioElementProps>(\n (\n {\n className,\n description,\n id,\n label,\n size = \"md\",\n ...restProps\n }: RadioElementProps,\n ref\n ) => {\n const combinedClassName = classNames(\n \"tds-radio\",\n size && size === \"sm\" && `tds-radio--sm`,\n className\n )\n\n const stableId = useId()\n const radioId = id || `tds-radio-${stableId}`\n\n return (\n <div className={combinedClassName}>\n <input\n {...restProps}\n aria-describedby={description ? `${radioId}-description` : undefined}\n id={radioId}\n ref={ref}\n type=\"radio\"\n />\n <label htmlFor={radioId}>{label}</label>\n {description && (\n <p id={`${radioId}-description`} className=\"tds-radio-description\">\n {description}\n </p>\n )}\n </div>\n )\n }\n)\n\nRadio.displayName = \"Radio\"\n"],"names":[],"mappings":";;;;AAoBA;;;;;;AAMG;AACI,MAAM,KAAK,GAAG,UAAU,CAC7B,CACE,EACE,SAAS,EACT,WAAW,EACX,EAAE,EACF,KAAK,EACL,IAAI,GAAG,IAAI,EACX,GAAG,SAAS,EACM,EACpB,GAAG,KACD;AACF,IAAA,MAAM,iBAAiB,GAAG,UAAU,CAClC,WAAW,EACX,IAAI,IAAI,IAAI,KAAK,IAAI,IAAI,CAAA,aAAA,CAAe,EACxC,SAAS,CACV;AAED,IAAA,MAAM,QAAQ,GAAG,KAAK,EAAE;AACxB,IAAA,MAAM,OAAO,GAAG,EAAE,IAAI,CAAA,UAAA,EAAa,QAAQ,EAAE;AAE7C,IAAA,QACE,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAE,iBAAiB,EAAA;QAC/B,KAAA,CAAA,aAAA,CAAA,OAAA,EAAA,EAAA,GACM,SAAS,EAAA,kBAAA,EACK,WAAW,GAAG,CAAA,EAAG,OAAO,CAAA,YAAA,CAAc,GAAG,SAAS,EACpE,EAAE,EAAE,OAAO,EACX,GAAG,EAAE,GAAG,EACR,IAAI,EAAC,OAAO,EAAA,CACZ;AACF,QAAA,KAAA,CAAA,aAAA,CAAA,OAAA,EAAA,EAAO,OAAO,EAAE,OAAO,EAAA,EAAG,KAAK,CAAS;AACvC,QAAA,WAAW,KACV,KAAA,CAAA,aAAA,CAAA,GAAA,EAAA,EAAG,EAAE,EAAE,CAAA,EAAG,OAAO,CAAA,YAAA,CAAc,EAAE,SAAS,EAAC,uBAAuB,EAAA,EAC/D,WAAW,CACV,CACL,CACG;AAEV,CAAC;AAGH,KAAK,CAAC,WAAW,GAAG,OAAO;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '../../tapestry-wc/dist/components/p-
|
|
1
|
+
import '../../tapestry-wc/dist/components/p-C-DiXomr.js';
|
|
2
2
|
import { defineCustomElement } from '../../tapestry-wc/dist/components/tds-sidenav.js';
|
|
3
3
|
import { defineCustomElement as defineCustomElement$1 } from '../../tapestry-wc/dist/components/tds-sidenav-item.js';
|
|
4
4
|
import { defineCustomElement as defineCustomElement$3 } from '../../tapestry-wc/dist/components/tds-sidenav-responsive-header.js';
|
package/dist/index.css
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
--t-border-radius-lg:8px;
|
|
7
7
|
--t-border-radius-xl:16px;
|
|
8
8
|
--t-border-radius-round:56px;
|
|
9
|
-
--t-border-radius:
|
|
9
|
+
--t-border-radius:var(--t-border-radius-md);
|
|
10
10
|
--t-border-width:1px;
|
|
11
11
|
--t-border-width-thick:2px;
|
|
12
12
|
--t-spacing-1:8px;
|
|
@@ -318,9 +318,9 @@
|
|
|
318
318
|
--t-fill-color-button-neutral-ghost-hover:hsl(0, 0%, 95%);
|
|
319
319
|
--t-fill-color-button-neutral-ghost-active:hsl(0, 0%, 93%);
|
|
320
320
|
--t-fill-color-button-neutral-ghost-disabled:hsla(0, 0%, 100%, 0);
|
|
321
|
-
--t-fill-color-button-neutral-responsive-header:
|
|
322
|
-
--t-fill-color-button-neutral-responsive-header-hover:
|
|
323
|
-
--t-fill-color-button-neutral-responsive-header-active:
|
|
321
|
+
--t-fill-color-button-neutral-responsive-header:var(--t-fill-color-transparency-dark-010);
|
|
322
|
+
--t-fill-color-button-neutral-responsive-header-hover:var(--t-fill-color-transparency-dark-020);
|
|
323
|
+
--t-fill-color-button-neutral-responsive-header-active:var(--t-fill-color-transparency-dark-030);
|
|
324
324
|
--t-fill-color-button-neutral-responsive-header-disabled:hsla(0, 0%, 0%, 0.05);
|
|
325
325
|
--t-fill-color-button-interaction-solid:hsl(204, 100%, 40%);
|
|
326
326
|
--t-fill-color-button-interaction-solid-hover:hsl(204, 100%, 35%);
|
|
@@ -377,8 +377,8 @@
|
|
|
377
377
|
--t-fill-color-transparency-dark-static-070:hsla(0, 0%, 0%, 0.7);
|
|
378
378
|
--t-fill-color-transparency-dark-static-080:hsla(0, 0%, 0%, 0.8);
|
|
379
379
|
--t-fill-color-transparency-dark-static-090:hsla(0, 0%, 0%, 0.9);
|
|
380
|
-
--t-surface-color-card:
|
|
381
|
-
--t-surface-color-canvas:
|
|
380
|
+
--t-surface-color-card:var(--t-fill-color-neutral-100);
|
|
381
|
+
--t-surface-color-canvas:var(--t-fill-color-neutral-100);
|
|
382
382
|
--t-border-color:hsl(0, 0%, 88%);
|
|
383
383
|
--t-border-color-dark:hsl(0, 0%, 81%);
|
|
384
384
|
--t-border-color-darker:hsl(0, 0%, 68%);
|