@planningcenter/tapestry 1.4.1-rc.1 → 1.4.1-rc.2
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/sidenav/index.js +1 -1
- package/dist/tapestry-wc/dist/components/{p-BxHCQQ8u.js → p-BEeckCM3.js} +2 -2
- package/dist/tapestry-wc/dist/components/{p-BxHCQQ8u.js.map → p-BEeckCM3.js.map} +1 -1
- package/dist/tapestry-wc/dist/components/{p-Cf8whY1j.js → p-CeJ-vD07.js} +3 -3
- package/dist/tapestry-wc/dist/components/{p-Cf8whY1j.js.map → p-CeJ-vD07.js.map} +1 -1
- package/dist/tapestry-wc/dist/components/{p-Gd-o1hGy.js → p-Cf73Eah7.js} +3 -3
- package/dist/tapestry-wc/dist/components/{p-Gd-o1hGy.js.map → p-Cf73Eah7.js.map} +1 -1
- package/dist/tapestry-wc/dist/components/{p-Dg2qHte3.js → p-D36B1g_x.js} +2 -2
- package/dist/tapestry-wc/dist/components/{p-Dg2qHte3.js.map → p-D36B1g_x.js.map} +1 -1
- package/dist/tapestry-wc/dist/components/{p-D8axJx8V.js → p-DMtXbDfX.js} +3 -3
- package/dist/tapestry-wc/dist/components/{p-D8axJx8V.js.map → p-DMtXbDfX.js.map} +1 -1
- package/dist/tapestry-wc/dist/components/{p-Cg3NuPqs.js → p-DPq33yxQ.js} +4 -4
- package/dist/tapestry-wc/dist/components/{p-Cg3NuPqs.js.map → p-DPq33yxQ.js.map} +1 -1
- 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 +6 -6
- package/dist/tapestry-wc/dist/components/tds-sidenav.js.map +1 -1
- package/package.json +3 -3
- package/react-types/index.d.ts +0 -196
package/react-types/index.d.ts
CHANGED
|
@@ -195,199 +195,3 @@ If the `label` prop is provided, it will be used to generate a header for the se
|
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
|
-
|
|
199
|
-
declare module "react" {
|
|
200
|
-
namespace JSX {
|
|
201
|
-
interface IntrinsicElements {
|
|
202
|
-
/**
|
|
203
|
-
* The page header displays the title and any additional metadata and navigation.
|
|
204
|
-
* @example How to use it
|
|
205
|
-
* ```html
|
|
206
|
-
* <tds-page-header>
|
|
207
|
-
* <h1>Title</h1>
|
|
208
|
-
*
|
|
209
|
-
* <div slot="actions">
|
|
210
|
-
* <button>Button</button>
|
|
211
|
-
* </div>
|
|
212
|
-
* </tds-page-header>
|
|
213
|
-
* ```
|
|
214
|
-
* @slot - The main content of the page header. It will be displayed prominently. For simple pages, providing a h1 will suffice.
|
|
215
|
-
* @slot actions - Additional content (typically actions) that complements the primary slot.
|
|
216
|
-
* @slot navigation - For page header with navigation, this slot is for the nav.
|
|
217
|
-
* @cssprop --tds-page-header-background-color - Background color of the header.
|
|
218
|
-
* @cssprop --tds-page-header-background-color-inactive - Background color of inactive headers.
|
|
219
|
-
* @cssprop --tds-page-header-color - Color of any meta text.
|
|
220
|
-
* @cssprop --tds-page-header-headline-color - Color of the page header h1.
|
|
221
|
-
* @cssprop --tds-page-header-padding-x - Horizontal padding of the header.
|
|
222
|
-
* @cssprop --tds-page-header-padding-y - Vertical padding of the header.
|
|
223
|
-
* @cssprop --tds-page-header-nav-item-padding-x: {var(--t-spacing-1)} - Horizontal padding for the tab.
|
|
224
|
-
* @cssprop --tds-page-header-nav-item-padding-y: {var(--t-spacing-1)} - Vertical padding for the tab.
|
|
225
|
-
* @cssprop --tds-page-header-nav-item-color: {var(--t-text-color-default-primary)} - Text color for the tab.
|
|
226
|
-
* @cssprop --tds-page-header-nav-item-background-color: {var(--t-fill-color-transparency-light-060)} - Background color for the tab.
|
|
227
|
-
* @cssprop --tds-page-header-nav-item-border-width: {0} - Border width for the tab.
|
|
228
|
-
* @cssprop --tds-page-header-nav-item-border-color: {var(--tds-page-header-nav-item-background-color)} - Border color for the tab.
|
|
229
|
-
* @cssprop --tds-page-header-nav-item-border-bottom-color: {var(--t-border-color-default-base)} - Border bottom color for the tab.
|
|
230
|
-
* @cssprop --tds-page-header-nav-item-color-hover: {var(--tds-page-header-nav-item-color)} - Text color for the tab on hover.
|
|
231
|
-
* @cssprop --tds-page-header-nav-item-background-color-hover: {var(--t-fill-color-neutral-080)} - Background color for the tab on hover.
|
|
232
|
-
* @cssprop --tds-page-header-nav-item-border-color-hover: {var(--tds-page-header-nav-item-background-color-hover)} - Border color for the tab on hover.
|
|
233
|
-
* @cssprop --tds-page-header-nav-item-background-color-active: {var(--t-fill-color-neutral-060)} - Background color for the tab on active.
|
|
234
|
-
* @cssprop --tds-page-header-nav-item-border-color-active: {var(--tds-page-header-nav-item-background-color-hover)} - Border color for the tab on active.
|
|
235
|
-
* @cssprop --tds-page-header-nav-item-color-disabled: {var(--t-text-color-default-disabled)} - Text color for the tab on disabled.
|
|
236
|
-
* @cssprop --tds-page-header-nav-item-background-color-disabled: {var(--t-fill-color-neutral-080)} - Background color for the tab on disabled.
|
|
237
|
-
* @cssprop --tds-page-header-nav-item-border-color-disabled: {var(--tds-page-header-nav-item-background-color-disabled)} - Border color for the tab on disabled.
|
|
238
|
-
* @cssprop --tds-page-header-nav-item-color-selected: {var(--t-text-color-default-primary)} - Text color for the tab on selected.
|
|
239
|
-
* @cssprop --tds-page-header-nav-item-border-color-selected: {var(--t-border-color-default-base)} - Border color for the tab on selected.
|
|
240
|
-
* @cssprop --tds-page-header-nav-item-background-color-selected: {var(--t-fill-color-neutral-100)} - Background color for the tab on selected.
|
|
241
|
-
* @cssprop --tds-page-header-nav-item-border-bottom-color-selected: {var(--tds-page-header-nav-item-background-color-selected)} - Border bottom color for the tab on selected.
|
|
242
|
-
*/
|
|
243
|
-
"tds-page-header": {
|
|
244
|
-
/**
|
|
245
|
-
* Indicates whether the page header is inactive or not.
|
|
246
|
-
* When set to true, the page header is visually inactive
|
|
247
|
-
* @prop {boolean} inactive - Controls the inactive state of the page. Defaults to false.
|
|
248
|
-
*/
|
|
249
|
-
"inactive"?: boolean
|
|
250
|
-
/**
|
|
251
|
-
* Indicates whether the page header is a profile page header or not.
|
|
252
|
-
* When set to true, the page header will visually center the title and actions at mobile breakpoints.
|
|
253
|
-
*/
|
|
254
|
-
"profile"?: boolean
|
|
255
|
-
"class"?: string
|
|
256
|
-
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "className">
|
|
257
|
-
/**
|
|
258
|
-
*
|
|
259
|
-
*/
|
|
260
|
-
"tds-page-header-nav": {
|
|
261
|
-
"class"?: string
|
|
262
|
-
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "className">
|
|
263
|
-
/**
|
|
264
|
-
*
|
|
265
|
-
* @slot - Default slot for placing content inside the popovercontainer.
|
|
266
|
-
*/
|
|
267
|
-
"tds-popover-container": {
|
|
268
|
-
/**
|
|
269
|
-
* Automatically position the popover above or below the trigger element based on the available space.
|
|
270
|
-
* The area beneath the trigger element is given a 48px bias towards positioning below.
|
|
271
|
-
*/
|
|
272
|
-
"autoPosition"?: boolean
|
|
273
|
-
"class"?: string
|
|
274
|
-
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "className">
|
|
275
|
-
/**
|
|
276
|
-
* The sidenav lets users navigate through subsets of data pertaining to a resource.
|
|
277
|
-
It can be used in addition to the page header navigation, as secondary navigation.
|
|
278
|
-
|
|
279
|
-
The expected structure of a `tds-sidenav` is:
|
|
280
|
-
`<tds-sidenav> > <tds-sidenav-section> > <tds-sidenav-item>`
|
|
281
|
-
If more depth is needed, the `tds-sidenav-item` can have a `subnav` slot that nests a `tds-sidenav-section`.
|
|
282
|
-
`<tds-sidenav> > <tds-sidenav-section> > <tds-sidenav-item> > <button> + <tds-sidenav-section slot="subnav"> > <tds-sidenav-item> `
|
|
283
|
-
|
|
284
|
-
Please refer to each component's documentation for more information on how to use them.
|
|
285
|
-
* @slot - The default slot used to nest`tds-sidenav-section` components.
|
|
286
|
-
* @cssprop --tds-sidenav-item-background - Background color for item (default: transparent)
|
|
287
|
-
* @cssprop --tds-sidenav-item-background-hover - Background color for hover state (default: var(--t-fill-color-neutral-080))
|
|
288
|
-
* @cssprop --tds-sidenav-item-background-active - Background color for active state (default: var(--t-fill-color-neutral-070))
|
|
289
|
-
* @cssprop --tds-sidenav-item-background-selected - Background color for selected state (default: var(--t-fill-color-neutral-050))
|
|
290
|
-
* @cssprop --tds-sidenav-item-nested-border-color - Border color for nested items (default: var(--t-fill-color-neutral-050))
|
|
291
|
-
* @cssprop --tds-sidenav-item-nested-border-color-hover - Border color for nested items in hover state (default: var(--t-fill-color-neutral-010))
|
|
292
|
-
* @cssprop --tds-sidenav-item-nested-border-color-selected - Border color for nested items in selected state (default: var(--t-fill-color-neutral-010))
|
|
293
|
-
* @cssprop --tds-sidenav-item-icon-color - Color for item icons (default: var(--t-icon-color-default-secondary))
|
|
294
|
-
* @cssprop --tds-sidenav-item-icon-color-selected - Color for selected item icons (default: var(--t-icon-color-default-primary))
|
|
295
|
-
* @cssprop --tds-sidenav-indent - Internal: The indentation spacing for nested items (default: 12px)
|
|
296
|
-
* @cssprop --tds-sidenav-item-depth - Internal: The current nesting depth of items (default: 0)
|
|
297
|
-
* @cssprop --tds-sidenav-item-transition - Internal: The transition timing for item state changes (default: background-color .2s cubic-bezier(.19, .91, .38, 1))
|
|
298
|
-
*/
|
|
299
|
-
"tds-sidenav": {
|
|
300
|
-
/**
|
|
301
|
-
* The label for the sidenav, used for accessibility.
|
|
302
|
-
*/
|
|
303
|
-
"label"?: string
|
|
304
|
-
/**
|
|
305
|
-
* The label for the `tds-sidenav-responsive-header`, corresponds to the selected item in the sidenav.
|
|
306
|
-
*/
|
|
307
|
-
"selectedItemLabel"?: string
|
|
308
|
-
"class"?: string
|
|
309
|
-
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "className">
|
|
310
|
-
/**
|
|
311
|
-
* The `tds-sidenav-item` component is used to display a single item in the sidenav.
|
|
312
|
-
The slotted content should be a link or button without any classes or styles applied.
|
|
313
|
-
* @example ```html
|
|
314
|
-
* <tds-sidenav-item>
|
|
315
|
-
* <a href="#">Home</a>
|
|
316
|
-
* </tds-sidenav-item>
|
|
317
|
-
*
|
|
318
|
-
* <tds-sidenav-item>
|
|
319
|
-
* <button>Foo</button>
|
|
320
|
-
* <tds-sidenav-section slot="subnav">
|
|
321
|
-
* <tds-sidenav-item><a href="#">Nested Link</a></tds-sidenav-item>
|
|
322
|
-
* </tds-sidenav-section>
|
|
323
|
-
* </tds-sidenav-item>
|
|
324
|
-
* ```
|
|
325
|
-
* @slot - The default slot is used to display the sidenav item link or button.
|
|
326
|
-
* @slot subnav - The subnav slot is used to display a nested subnav menu. The slotted content should be a `tds-sidenav-section` component.
|
|
327
|
-
*/
|
|
328
|
-
"tds-sidenav-item": {
|
|
329
|
-
/**
|
|
330
|
-
* Whether the sidenav item is selected.
|
|
331
|
-
*/
|
|
332
|
-
"selected"?: boolean
|
|
333
|
-
"class"?: string
|
|
334
|
-
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "className">
|
|
335
|
-
/**
|
|
336
|
-
* UNSTABLE: This component is currently in development and subject to change.
|
|
337
|
-
Provides a collapsible sidenav item.
|
|
338
|
-
* @slot prefix - The prefix slot is used to display an icon or other content before the label.
|
|
339
|
-
* @slot suffix - The suffix slot is used to display an icon or other content after the label.
|
|
340
|
-
* @slot subnav - The subnav slot is used to display a nested subnav menu. Should be a `tds-sidenav-section` component.
|
|
341
|
-
*/
|
|
342
|
-
"tds-sidenav-item-collapsible": {
|
|
343
|
-
/**
|
|
344
|
-
* Indicates whether the sidenav item is collapsed or not.
|
|
345
|
-
*/
|
|
346
|
-
"collapsed"?: boolean
|
|
347
|
-
/**
|
|
348
|
-
* The label of the sidenav item.
|
|
349
|
-
*/
|
|
350
|
-
"label"?: string
|
|
351
|
-
"class"?: string
|
|
352
|
-
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "className">
|
|
353
|
-
/**
|
|
354
|
-
* The `tds-sidenav-popover` component is used as part of the `tds-sidenav` component to display a popover for the sidenav.
|
|
355
|
-
It wraps the `tds-popover-container` primitive element, and is not intended to be used as a standalone component.
|
|
356
|
-
* @slot - The default slot is used to display the wrapped content.
|
|
357
|
-
*/
|
|
358
|
-
"tds-sidenav-popover": {
|
|
359
|
-
/**
|
|
360
|
-
* Maximum screen width at which the popover will be displayed
|
|
361
|
-
*/
|
|
362
|
-
"popoverMaxScreenWidth"?: string
|
|
363
|
-
"class"?: string
|
|
364
|
-
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "className">
|
|
365
|
-
/**
|
|
366
|
-
* Provides a toggle to display the sidenav popover and current item for the sidenav on smaller viewports.
|
|
367
|
-
|
|
368
|
-
It is included inside `tds-sidenav` and is not intended to be used as a standalone component.
|
|
369
|
-
*/
|
|
370
|
-
"tds-sidenav-responsive-header": {
|
|
371
|
-
/**
|
|
372
|
-
* The label for the sidenav header
|
|
373
|
-
*/
|
|
374
|
-
"label"?: string
|
|
375
|
-
"class"?: string
|
|
376
|
-
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "className">
|
|
377
|
-
/**
|
|
378
|
-
* The `tds-sidenav-section` component is used to display a section of the sidenav.
|
|
379
|
-
All `tds-sidenav-item` components should be nested within a `tds-sidenav-section`.
|
|
380
|
-
|
|
381
|
-
If the `label` prop is provided, it will be used to generate a header for the section, and the section will be labelled by the `aria-labelledby` attribute.
|
|
382
|
-
* @slot - The default slot is used to nest `tds-sidenav-item` components.
|
|
383
|
-
*/
|
|
384
|
-
"tds-sidenav-section": {
|
|
385
|
-
/**
|
|
386
|
-
* The label for the section.
|
|
387
|
-
*/
|
|
388
|
-
"label"?: string
|
|
389
|
-
"class"?: string
|
|
390
|
-
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "className">
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
}
|