@pantheon-systems/pds-toolkit-react 2.0.0-alpha.81 → 2.0.0-alpha.83
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/codemods/v1-to-v2/mappings.json +12 -4
- package/dist/components/Table/Table.d.ts +20 -11
- package/dist/components/badges/StatusBadge/StatusBadge.d.ts +1 -1
- package/dist/components/buttons/SegmentedButton/SegmentedButton.d.ts +5 -5
- package/dist/components/icons/Icon/generated-icon-data.d.ts +1 -1
- package/dist/components/{Avatar → identity/Avatar}/Avatar.d.ts +3 -2
- package/dist/components/identity/AvatarLabel/AvatarLabel.d.ts +42 -0
- package/dist/components/{IdentityBlock → identity/IdentityBlock}/IdentityBlock.d.ts +1 -1
- package/dist/components/inputs/Checkbox/Checkbox.d.ts +11 -1
- package/dist/components/inputs/CheckboxFieldset/CheckboxFieldset.d.ts +12 -2
- package/dist/components/inputs/CheckboxGroup/CheckboxGroup.d.ts +12 -2
- package/dist/components/inputs/Combobox/Combobox.d.ts +11 -1
- package/dist/components/inputs/ComboboxMultiselect/ComboboxMultiselect.d.ts +12 -2
- package/dist/components/inputs/Datepicker/Datepicker.d.ts +12 -4
- package/dist/components/inputs/FileUpload/FileUpload.d.ts +11 -1
- package/dist/components/inputs/RadioGroup/RadioGroup.d.ts +12 -2
- package/dist/components/inputs/Select/Select.d.ts +20 -3
- package/dist/components/inputs/Switch/Switch.d.ts +11 -1
- package/dist/components/inputs/TagsInput/TagsInput.d.ts +11 -1
- package/dist/components/inputs/TextInput/TextInput.d.ts +11 -1
- package/dist/components/inputs/Textarea/Textarea.d.ts +11 -1
- package/dist/components/inputs/Timepicker/Timepicker.d.ts +12 -2
- package/dist/components/inputs/input-utilities.d.ts +5 -0
- package/dist/components/navigation/ButtonNav/ButtonNav.d.ts +5 -5
- package/dist/components/overlays/Modal/Modal.d.ts +3 -1
- package/dist/components/panels/PanelList/PanelRow.d.ts +9 -1
- package/dist/css/component-css/pds-avatar-label.css +1 -0
- package/dist/css/component-css/pds-avatar.css +1 -1
- package/dist/css/component-css/pds-index.css +9 -9
- package/dist/css/component-css/pds-input-utilities.css +1 -1
- package/dist/css/component-css/pds-link-new-window.css +1 -1
- package/dist/css/component-css/pds-modal.css +1 -1
- package/dist/css/component-css/pds-panel-list.css +1 -1
- package/dist/css/component-css/pds-side-nav-global.css +1 -1
- package/dist/css/component-css/pds-stat-panel.css +1 -1
- package/dist/css/component-css/pds-status-badge.css +1 -1
- package/dist/css/layout-css/pds-sidebar-layout.css +2 -2
- package/dist/css/pds-components.css +9 -9
- package/dist/css/pds-core.css +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.js +2295 -2244
- package/dist/index.js.map +1 -1
- package/dist/index.source.d.ts +3 -2
- package/dist/layouts/SidebarLayout/SidebarLayout.d.ts +6 -1
- package/dist/libs/types/layout-types.d.ts +1 -0
- package/dist/utilities/FlexContainer/FlexContainer.d.ts +1 -1
- package/dist/utilities/grid/Grid.d.ts +2 -4
- package/package.json +1 -1
package/dist/index.source.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export * from './components/Avatar/Avatar';
|
|
2
1
|
export * from './components/badges/Badge/Badge';
|
|
3
2
|
export * from './components/badges/StatusBadge/StatusBadge';
|
|
4
3
|
export * from './components/badges/Tally/Tally';
|
|
@@ -34,7 +33,9 @@ export * from './components/FileDiff/FileDiff';
|
|
|
34
33
|
export * from './components/icons/Icon/Icon';
|
|
35
34
|
export * from './components/icons/PaymentIcon/PaymentIcon';
|
|
36
35
|
export * from './components/icons/PlatformIcon/PlatformIcon';
|
|
37
|
-
export * from './components/
|
|
36
|
+
export * from './components/identity/Avatar/Avatar';
|
|
37
|
+
export * from './components/identity/AvatarLabel/AvatarLabel';
|
|
38
|
+
export * from './components/identity/IdentityBlock/IdentityBlock';
|
|
38
39
|
export * from './components/inputs/Checkbox/Checkbox';
|
|
39
40
|
export * from './components/inputs/CheckboxFieldset/CheckboxFieldset';
|
|
40
41
|
export * from './components/inputs/CheckboxGroup/CheckboxGroup';
|
|
@@ -20,6 +20,11 @@ interface SidebarLayoutProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
20
20
|
* Defaults to `xl`.
|
|
21
21
|
*/
|
|
22
22
|
gridGap?: GapScale;
|
|
23
|
+
/**
|
|
24
|
+
* Gap on mobile, when the sidebar(s) stack above/below the main content.
|
|
25
|
+
* If not set, will default to the same value as `gridGap`.
|
|
26
|
+
*/
|
|
27
|
+
mobileGridGap?: GapScale;
|
|
23
28
|
/**
|
|
24
29
|
* Mobile position of the `second-sidebar` slot: `'before'` or `'after'` (default) the main content.
|
|
25
30
|
* When both sidebars resolve to `'after'`, they stack in the same left-to-right order they have
|
|
@@ -62,5 +67,5 @@ interface SidebarLayoutProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
62
67
|
/**
|
|
63
68
|
* SidebarLayout UI component
|
|
64
69
|
*/
|
|
65
|
-
export declare const SidebarLayout: ({ children, className, gridGap, secondSidebarMobileLocation, secondSidebarWidth, secondSidebarWidthMax, secondSidebarWidthMin, sidebarLocation, sidebarMobileLocation, sidebarWidth, sidebarWidthMax, sidebarWidthMin, ...props }: SidebarLayoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
70
|
+
export declare const SidebarLayout: ({ children, className, gridGap, mobileGridGap, secondSidebarMobileLocation, secondSidebarWidth, secondSidebarWidthMax, secondSidebarWidthMin, sidebarLocation, sidebarMobileLocation, sidebarWidth, sidebarWidthMax, sidebarWidthMin, ...props }: SidebarLayoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
66
71
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export type GapScale = 'none' | 'xs' | 's' | 'm' | 'l' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl';
|
|
2
|
+
export type ContainerStackBreakpoint = 's' | 'm' | 'l' | 'xl';
|
|
2
3
|
export type PaddingScale = 'none' | 'condensed' | 'standard' | 'spacious';
|
|
3
4
|
export type CardPaddingScale = Exclude<PaddingScale, 'none'>;
|
|
4
5
|
export type CardBackground = 'default' | 'secondary' | 'transparent';
|
|
@@ -49,7 +49,7 @@ interface FlexContainerProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
49
49
|
*/
|
|
50
50
|
mobileAlignItems?: FlexAlignItems;
|
|
51
51
|
/**
|
|
52
|
-
* Flex direction for mobile.
|
|
52
|
+
* Flex direction for mobile. If not set, will default to the same value as `flexDirection`.
|
|
53
53
|
*/
|
|
54
54
|
mobileFlexDirection?: FlexDirection;
|
|
55
55
|
/**
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import { GapScale } from '../../libs/types/layout-types';
|
|
2
|
+
import { ContainerStackBreakpoint, GapScale } from '../../libs/types/layout-types';
|
|
3
3
|
import './grid.css';
|
|
4
|
-
type GridStackBreakpoint = 's' | 'm' | 'l' | 'xl';
|
|
5
4
|
/**
|
|
6
5
|
* Prop types for Grid
|
|
7
6
|
*/
|
|
@@ -44,7 +43,7 @@ export interface GridProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
44
43
|
* `l` 60rem, `xl` 75rem). Implies `asContainer`. For an off-scale threshold,
|
|
45
44
|
* use `asContainer` with your own `@container` rule instead.
|
|
46
45
|
*/
|
|
47
|
-
stackBelow?:
|
|
46
|
+
stackBelow?: ContainerStackBreakpoint;
|
|
48
47
|
}
|
|
49
48
|
/**
|
|
50
49
|
* Grid layout component — a typed wrapper over the `pds-grid` utility classes.
|
|
@@ -55,4 +54,3 @@ export interface GridProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
55
54
|
* also be used directly without this component.
|
|
56
55
|
*/
|
|
57
56
|
export declare const Grid: ({ asContainer, children, className, dense, gap, mobileGap, stackBelow, ...props }: GridProps) => import("react/jsx-runtime").JSX.Element;
|
|
58
|
-
export {};
|
package/package.json
CHANGED