@planningcenter/tapestry 3.2.3-rc.7 → 3.2.3-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/components/button/BaseButton.d.ts +4 -0
- package/dist/components/button/BaseButton.d.ts.map +1 -1
- package/dist/components/button/BaseButton.js.map +1 -1
- package/dist/components/button/Button.d.ts +2 -0
- package/dist/components/button/Button.d.ts.map +1 -1
- package/dist/components/button/Button.js.map +1 -1
- package/dist/components/button/DropdownButton.d.ts +2 -0
- package/dist/components/button/DropdownButton.d.ts.map +1 -1
- package/dist/components/button/DropdownButton.js.map +1 -1
- package/dist/components/button/IconButton.d.ts +4 -0
- package/dist/components/button/IconButton.d.ts.map +1 -1
- package/dist/components/button/IconButton.js.map +1 -1
- package/dist/components/button/LoadingButton.d.ts +2 -0
- package/dist/components/button/LoadingButton.d.ts.map +1 -1
- package/dist/components/button/LoadingButton.js.map +1 -1
- package/dist/components/button/PageHeaderActionsDropdownButton.d.ts +2 -0
- package/dist/components/button/PageHeaderActionsDropdownButton.d.ts.map +1 -1
- package/dist/components/button/PageHeaderActionsDropdownButton.js.map +1 -1
- package/dist/components/checkbox/Checkbox.d.ts +4 -0
- package/dist/components/checkbox/Checkbox.d.ts.map +1 -1
- package/dist/components/checkbox/Checkbox.js.map +1 -1
- package/dist/components/checkbox-group/CheckboxGroup.d.ts +4 -0
- package/dist/components/checkbox-group/CheckboxGroup.d.ts.map +1 -1
- package/dist/components/checkbox-group/CheckboxGroup.js.map +1 -1
- package/dist/components/link/IconLink.d.ts +2 -0
- package/dist/components/link/IconLink.d.ts.map +1 -1
- package/dist/components/link/IconLink.js.map +1 -1
- package/dist/components/page-header/PageHeader.d.ts +6 -3
- package/dist/components/page-header/PageHeader.d.ts.map +1 -1
- package/dist/components/page-header/PageHeader.js.map +1 -1
- package/dist/components/radio/Radio.d.ts +3 -0
- package/dist/components/radio/Radio.d.ts.map +1 -1
- package/dist/components/radio/Radio.js.map +1 -1
- package/dist/components/radio-group/RadioGroup.d.ts +4 -0
- package/dist/components/radio-group/RadioGroup.d.ts.map +1 -1
- package/dist/components/radio-group/RadioGroup.js.map +1 -1
- package/dist/components/select/Select.d.ts +59 -9
- package/dist/components/select/Select.d.ts.map +1 -1
- package/dist/components/select/Select.js.map +1 -1
- package/dist/components/toggle-switch/ToggleSwitch.d.ts +10 -4
- package/dist/components/toggle-switch/ToggleSwitch.d.ts.map +1 -1
- package/dist/components/toggle-switch/ToggleSwitch.js.map +1 -1
- package/dist/reactRender.css +609 -609
- package/dist/reactRender.css.map +1 -1
- package/dist/reactRenderLegacy.css +609 -609
- package/dist/reactRenderLegacy.css.map +1 -1
- package/dist/utilities/buttonLinkShared.d.ts +5 -0
- package/dist/utilities/buttonLinkShared.d.ts.map +1 -1
- package/dist/utilities/buttonLinkShared.js.map +1 -1
- package/package.json +2 -2
|
@@ -26,10 +26,15 @@ export declare const COMPONENT_SIZE_CLASS_MAP: {
|
|
|
26
26
|
export type ComponentSize = keyof typeof COMPONENT_SIZE_CLASS_MAP;
|
|
27
27
|
export type ComponentKind = keyof typeof COMPONENT_KIND_CLASS_MAP;
|
|
28
28
|
export interface BaseComponentProps {
|
|
29
|
+
/** Whether the component should take the full width of its container. */
|
|
29
30
|
fullWidth?: boolean;
|
|
31
|
+
/** The visual style of the component. */
|
|
30
32
|
kind?: ComponentKind;
|
|
33
|
+
/** A React node to display before the component's content. Set via story args for non-primitive values. */
|
|
31
34
|
prefix?: React.ReactNode;
|
|
35
|
+
/** The size of the component. */
|
|
32
36
|
size?: ComponentSize;
|
|
37
|
+
/** A React node to display after the component's content. Set via story args for non-primitive values. */
|
|
33
38
|
suffix?: React.ReactNode;
|
|
34
39
|
}
|
|
35
40
|
export declare const enhanceElementWithClassName: (element: React.ReactNode, className: string) => React.ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buttonLinkShared.d.ts","sourceRoot":"","sources":["../../src/utilities/buttonLinkShared.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,EAAE,KAAK,CAAC,SAAS,CAAA;CACzB;AAED,eAAO,MAAM,2BAA2B,YAC7B,KAAK,CAAC,SAAS,aACb,MAAM,KAChB,KAAK,CAAC,SAmBR,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buttonLinkShared.js","sources":["../../src/utilities/buttonLinkShared.ts"],"sourcesContent":["import classNames from \"classnames\"\nimport 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 fullWidth?: boolean\n kind?: ComponentKind\n prefix?: React.ReactNode\n size?: ComponentSize\n suffix?: React.ReactNode\n}\n\nexport const enhanceElementWithClassName = (\n element: React.ReactNode,\n className: string\n): React.ReactNode => {\n if (!element) return null\n\n if (React.isValidElement(element)) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return React.cloneElement(element as React.ReactElement<any>, {\n className: classNames(\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (element as React.ReactElement<any>).props.className,\n className\n ),\n })\n }\n\n if (typeof element === \"string\" && element.trim()) {\n return React.createElement(\"span\", { className }, element)\n }\n\n return null\n}\n"],"names":["React"],"mappings":";;;AAGO,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;;
|
|
1
|
+
{"version":3,"file":"buttonLinkShared.js","sources":["../../src/utilities/buttonLinkShared.ts"],"sourcesContent":["import classNames from \"classnames\"\nimport 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 const enhanceElementWithClassName = (\n element: React.ReactNode,\n className: string\n): React.ReactNode => {\n if (!element) return null\n\n if (React.isValidElement(element)) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return React.cloneElement(element as React.ReactElement<any>, {\n className: classNames(\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (element as React.ReactElement<any>).props.className,\n className\n ),\n })\n }\n\n if (typeof element === \"string\" && element.trim()) {\n return React.createElement(\"span\", { className }, element)\n }\n\n return null\n}\n"],"names":["React"],"mappings":";;;AAGO,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;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
6
|
"type": "git",
|
|
@@ -114,5 +114,5 @@
|
|
|
114
114
|
"lodash": "^4.17.21",
|
|
115
115
|
"react-aria-components": "^1.16.0"
|
|
116
116
|
},
|
|
117
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "fb204ab4876a9ebf848f7c057f80a591da51c8aa"
|
|
118
118
|
}
|