@planningcenter/tapestry-react 2.0.1-rc.0 → 2.1.0
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/cjs/Avatar/Avatar.js +3 -1
- package/dist/cjs/Box/Box.js +2 -2
- package/dist/cjs/Button/Button.js +2 -2
- package/dist/cjs/Calendar/Day.js +1 -0
- package/dist/cjs/Card/Card.js +14 -24
- package/dist/cjs/Card/Section.js +28 -0
- package/dist/cjs/Checkbox/Checkbox.js +1 -1
- package/dist/cjs/Collapse/Collapse.js +10 -9
- package/dist/cjs/Collapse/Collapse.test.js +56 -0
- package/dist/cjs/DataTable/components/Icon.js +4 -4
- package/dist/cjs/DragDrop/DragDrop.js +1 -1
- package/dist/cjs/GridView/GridView.js +2 -2
- package/dist/cjs/HelperDrawer/HelperDrawer.js +8 -8
- package/dist/cjs/Icon/Path.js +1 -0
- package/dist/cjs/Icon/Status.js +24 -17
- package/dist/cjs/Pagination/Pagination.js +99 -83
- package/dist/cjs/Select/Inline.js +1 -0
- package/dist/cjs/Select/Option.js +1 -1
- package/dist/cjs/Select/OptionGroup.js +1 -3
- package/dist/cjs/Select/Value.js +1 -0
- package/dist/cjs/Select/constants.js +2 -2
- package/dist/cjs/Sidebar/Sidebar.js +5 -5
- package/dist/cjs/Spinner/Spinner.js +3 -3
- package/dist/cjs/StackView/StackView.js +2 -2
- package/dist/cjs/Table/Table.js +2 -2
- package/dist/cjs/Text/Text.js +2 -2
- package/dist/cjs/ThemeProvider/ThemeProvider.js +4 -18
- package/dist/cjs/TileView/TileView.js +2 -2
- package/dist/cjs/system/box-sizes.js +6 -3
- package/dist/cjs/system/use-css.js +2 -2
- package/dist/cjs/system/utils.js +2 -2
- package/dist/esm/Avatar/Avatar.js +3 -3
- package/dist/esm/Box/Box.js +1 -1
- package/dist/esm/Button/Button.js +2 -2
- package/dist/esm/Calendar/Day.js +1 -0
- package/dist/esm/Card/Card.js +12 -22
- package/dist/esm/Card/Section.js +15 -0
- package/dist/esm/Checkbox/Checkbox.js +1 -1
- package/dist/esm/Collapse/Collapse.js +3 -2
- package/dist/esm/Collapse/Collapse.test.js +53 -0
- package/dist/esm/DataTable/components/Icon.js +1 -1
- package/dist/esm/DragDrop/DragDrop.js +1 -1
- package/dist/esm/GridView/GridView.js +1 -1
- package/dist/esm/HelperDrawer/HelperDrawer.js +1 -1
- package/dist/esm/Icon/Path.js +1 -0
- package/dist/esm/Icon/Status.js +24 -17
- package/dist/esm/Pagination/Pagination.js +96 -78
- package/dist/esm/Select/Inline.js +1 -0
- package/dist/esm/Select/Option.js +1 -1
- package/dist/esm/Select/OptionGroup.js +1 -2
- package/dist/esm/Select/Value.js +1 -0
- package/dist/esm/Select/constants.js +2 -2
- package/dist/esm/Sidebar/Sidebar.js +1 -1
- package/dist/esm/Spinner/Spinner.js +1 -1
- package/dist/esm/StackView/StackView.js +1 -1
- package/dist/esm/Table/Table.js +1 -1
- package/dist/esm/Text/Text.js +1 -1
- package/dist/esm/ThemeProvider/ThemeProvider.js +3 -15
- package/dist/esm/TileView/TileView.js +1 -1
- package/dist/esm/system/box-sizes.js +6 -3
- package/dist/esm/system/use-css.js +1 -1
- package/dist/esm/system/utils.js +1 -1
- package/dist/types/Avatar/Avatar.d.ts +19 -0
- package/dist/types/Box/Box.d.ts +5 -2
- package/dist/types/Button/Button.d.ts +22 -14
- package/dist/types/Button/Input.d.ts +1 -1
- package/dist/types/Card/Card.d.ts +2 -8
- package/dist/types/Card/Section.d.ts +11 -0
- package/dist/types/ChurchCenterStatus/ChurchCenterStatus.d.ts +0 -1
- package/dist/types/Collapse/Collapse.test.d.ts +1 -0
- package/dist/types/Divider/Divider.d.ts +0 -1
- package/dist/types/FilterLayout/FilterLayout.d.ts +0 -1
- package/dist/types/GridView/GridView.d.ts +4 -1
- package/dist/types/Pagination/Pagination.d.ts +23 -0
- package/dist/types/Popover/Popover.d.ts +3 -3
- package/dist/types/Portal/Portal.d.ts +4 -3
- package/dist/types/Spinner/Spinner.d.ts +0 -1
- package/dist/types/StackView/StackView.d.ts +4 -1
- package/dist/types/Tab/Tab.d.ts +0 -1
- package/dist/types/Text/Text.d.ts +4 -1
- package/dist/types/TileView/TileView.d.ts +4 -1
- package/package.json +12 -15
- package/src/Avatar/Avatar.mdx +2 -2
- package/src/Avatar/{Avatar.js → Avatar.tsx} +10 -5
- package/src/Badge/Badge.mdx +2 -0
- package/src/Badge/Status.mdx +1 -0
- package/src/Box/Box.tsx +2 -1
- package/src/Button/Button.mdx +1 -0
- package/src/Button/Button.tsx +13 -5
- package/src/Button/Input.mdx +1 -0
- package/src/Calendar/Calendar.mdx +1 -0
- package/src/Calendar/Day.js +42 -2
- package/src/Calendar/Day.mdx +6 -0
- package/src/Card/Card.mdx +1 -10
- package/src/Card/Card.tsx +8 -16
- package/src/Card/Section.mdx +19 -0
- package/src/Card/Section.tsx +25 -0
- package/src/Checkbox/Checkbox.js +1 -1
- package/src/Collapse/Collapse.js +5 -2
- package/src/Collapse/Collapse.test.tsx +42 -0
- package/src/Combobox/Combobox.mdx +1 -1
- package/src/DataTable/components/Icon.js +1 -1
- package/src/DragDrop/DragDrop.js +1 -1
- package/src/Drawer/Drawer.mdx +1 -0
- package/src/EditActions/EditActions.mdx +1 -0
- package/src/FieldSet/FieldSet.mdx +1 -0
- package/src/GridView/GridView.tsx +1 -1
- package/src/HeadingUppercase/HeadingUppercase.mdx +1 -0
- package/src/HelperDrawer/HelperDrawer.js +1 -1
- package/src/Highlight/Highlight.mdx +1 -0
- package/src/Icon/Icon.mdx +65 -35
- package/src/Icon/Path.js +2 -0
- package/src/Icon/Path.mdx +34 -0
- package/src/Icon/Status.js +23 -14
- package/src/Icon/Status.mdx +17 -0
- package/src/Input/Inline.mdx +1 -0
- package/src/Input/Input.mdx +1 -0
- package/src/Input/InputBox.mdx +1 -0
- package/src/Input/InputField.mdx +1 -0
- package/src/Input/InputLabel.mdx +1 -0
- package/src/PagerView/PagerView.mdx +1 -1
- package/src/Pagination/Pagination.mdx +0 -1
- package/src/Pagination/Pagination.tsx +163 -0
- package/src/Popover/Popover.tsx +1 -1
- package/src/Portal/Portal.tsx +2 -0
- package/src/Progress/Progress.mdx +1 -0
- package/src/RangeSlider/RangeSlider.mdx +1 -0
- package/src/Scrim/Scrim.tsx +2 -2
- package/src/Section/Section.mdx +1 -0
- package/src/Select/Inline.js +21 -1
- package/src/Select/Inline.mdx +27 -0
- package/src/Select/Option.js +1 -1
- package/src/Select/Option.mdx +30 -0
- package/src/Select/OptionGroup.js +9 -3
- package/src/Select/OptionGroup.mdx +25 -0
- package/src/Select/Select.mdx +2 -99
- package/src/Select/Value.js +2 -0
- package/src/Select/Value.mdx +67 -0
- package/src/Select/constants.js +2 -2
- package/src/Sidebar/Sidebar.js +1 -1
- package/src/Spinner/Spinner.mdx +1 -0
- package/src/Spinner/Spinner.tsx +1 -1
- package/src/StackView/StackView.tsx +1 -1
- package/src/StepperField/StepperField.mdx +1 -0
- package/src/StepperProgress/StepperProgress.mdx +1 -0
- package/src/Table/Table.js +1 -1
- package/src/Text/Text.mdx +1 -0
- package/src/Text/Text.tsx +1 -1
- package/src/ThemeProvider/ThemeProvider.tsx +2 -13
- package/src/TileView/TileView.tsx +1 -1
- package/src/system/README.md +1 -1
- package/src/system/box-sizes.js +6 -3
- package/src/system/use-css.js +1 -1
- package/src/system/utils.js +1 -1
- package/src/Pagination/Pagination.js +0 -145
package/dist/types/Box/Box.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/** @jsxRuntime classic */
|
|
2
|
+
/** @jsx jsx */
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
1
4
|
import * as React from 'react';
|
|
2
5
|
import { StyleProps, MediaQueries, Variants } from '../index';
|
|
3
6
|
export declare type BoxProps = {
|
|
@@ -27,9 +30,9 @@ export declare type BoxProps = {
|
|
|
27
30
|
*/
|
|
28
31
|
mediaQueries?: object;
|
|
29
32
|
} & StyleProps;
|
|
30
|
-
declare type Props = React.RefAttributes<any> & React.HTMLAttributes<any> & BoxProps & MediaQueries<BoxProps> & Variants<BoxProps>;
|
|
33
|
+
declare type Props = React.RefAttributes<any> & React.HTMLAttributes<any> & React.ImgHTMLAttributes<any> & BoxProps & MediaQueries<BoxProps> & Variants<BoxProps>;
|
|
31
34
|
/**
|
|
32
35
|
* Box is the base component that everything builds from. It is responsible for processing all style props.
|
|
33
36
|
*/
|
|
34
|
-
export declare function Box({ as, innerRef, inline, ...props }: Props): JSX.Element;
|
|
37
|
+
export declare function Box({ as, innerRef, inline, ...props }: Props): jsx.JSX.Element;
|
|
35
38
|
export {};
|
|
@@ -11,6 +11,14 @@ declare type ButtonProps = {
|
|
|
11
11
|
* Opens the linked destination in a new window or tab.
|
|
12
12
|
*/
|
|
13
13
|
external?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Pass styles for when the button is focused.
|
|
16
|
+
*/
|
|
17
|
+
focus?: object;
|
|
18
|
+
/**
|
|
19
|
+
* Pass styles for when the button is hovered.
|
|
20
|
+
*/
|
|
21
|
+
hover?: object;
|
|
14
22
|
/**
|
|
15
23
|
* Renders an [Icon](/icon) in the center of the button. Pass a string or any valid `Icon` props.
|
|
16
24
|
* Must pass a [`title`](/button#title) or [`tooltip.title`](/tooltip#title) when using icon-only buttons.
|
|
@@ -45,7 +53,7 @@ declare type ButtonProps = {
|
|
|
45
53
|
*/
|
|
46
54
|
title?: string | number;
|
|
47
55
|
/**
|
|
48
|
-
* Where the browser should navigate to when pressed.
|
|
56
|
+
* Where the browser should navigate to when pressed. If you need any element here other than `<a>`, remember to use the `as` prop.
|
|
49
57
|
*/
|
|
50
58
|
to?: string;
|
|
51
59
|
/**
|
|
@@ -65,7 +73,7 @@ declare type Props = React.RefAttributes<any> & React.HTMLAttributes<any> & Butt
|
|
|
65
73
|
export declare function Button({ children, disabled, external, icon, iconLeft, iconRight, onClick, onKeyDown, size, spinner, square, theme, title, to, tooltip, variant, ...restProps }: Props): JSX.Element;
|
|
66
74
|
export declare namespace Button {
|
|
67
75
|
var Input: React.ForwardRefExoticComponent<Pick<React.RefAttributes<any> & React.HTMLAttributes<any> & {
|
|
68
|
-
children: React.ReactElement<any, string | ((props: any) => React.ReactElement<any,
|
|
76
|
+
children: React.ReactElement<any, string | ((props: any) => React.ReactElement<any, any>) | (new (props: any) => React.Component<any, any, any>)> | ((inputProps: {
|
|
69
77
|
inputProps: any;
|
|
70
78
|
isOpen: boolean;
|
|
71
79
|
open: any;
|
|
@@ -82,23 +90,23 @@ export declare namespace Button {
|
|
|
82
90
|
visible?: boolean;
|
|
83
91
|
variants?: object;
|
|
84
92
|
mediaQueries?: object;
|
|
85
|
-
} & Pick<React.CSSProperties, "
|
|
93
|
+
} & Pick<React.CSSProperties, "alignContent" | "alignItems" | "alignSelf" | "alignmentBaseline" | "animation" | "animationDelay" | "animationDirection" | "animationDuration" | "animationFillMode" | "animationIterationCount" | "animationName" | "animationPlayState" | "animationTimingFunction" | "backfaceVisibility" | "background" | "backgroundAttachment" | "backgroundBlendMode" | "backgroundClip" | "backgroundImage" | "backgroundOrigin" | "backgroundPosition" | "backgroundPositionX" | "backgroundPositionY" | "backgroundRepeat" | "backgroundSize" | "baselineShift" | "border" | "borderBottom" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStyle" | "borderBottomWidth" | "borderCollapse" | "borderImage" | "borderImageOutset" | "borderImageRepeat" | "borderImageSlice" | "borderImageSource" | "borderImageWidth" | "borderLeft" | "borderLeftStyle" | "borderLeftWidth" | "borderRadius" | "borderRight" | "borderRightStyle" | "borderRightWidth" | "borderSpacing" | "borderStyle" | "borderTop" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStyle" | "borderTopWidth" | "borderWidth" | "bottom" | "boxShadow" | "boxSizing" | "breakAfter" | "breakBefore" | "breakInside" | "clear" | "clip" | "clipPath" | "clipRule" | "columnCount" | "columnFill" | "columnGap" | "columnRule" | "columnRuleColor" | "columnRuleStyle" | "columnRuleWidth" | "columnSpan" | "columnWidth" | "columns" | "contain" | "content" | "counterIncrement" | "counterReset" | "cursor" | "direction" | "display" | "fillOpacity" | "fillRule" | "filter" | "flex" | "flexBasis" | "flexDirection" | "flexFlow" | "flexGrow" | "flexShrink" | "flexWrap" | "font" | "fontFamily" | "fontFeatureSettings" | "fontKerning" | "fontSize" | "fontStretch" | "fontStyle" | "fontVariant" | "fontVariantCaps" | "fontVariantLigatures" | "fontVariantNumeric" | "fontWeight" | "gap" | "gridArea" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumn" | "gridColumnEnd" | "gridColumnGap" | "gridColumnStart" | "gridGap" | "gridRow" | "gridRowEnd" | "gridRowGap" | "gridRowStart" | "gridTemplate" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "imageRendering" | "isolation" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lightingColor" | "lineHeight" | "listStyle" | "listStyleImage" | "listStylePosition" | "listStyleType" | "margin" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "mask" | "maskType" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "mixBlendMode" | "motion" | "objectFit" | "objectPosition" | "opacity" | "order" | "outline" | "outlineColor" | "outlineOffset" | "outlineStyle" | "outlineWidth" | "overflow" | "overflowWrap" | "overflowX" | "overflowY" | "padding" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "pageBreakAfter" | "pageBreakBefore" | "pageBreakInside" | "perspective" | "perspectiveOrigin" | "placeItems" | "placeSelf" | "pointerEvents" | "position" | "resize" | "right" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "tabSize" | "tableLayout" | "textAlign" | "textDecoration" | "textIndent" | "textOrientation" | "textOverflow" | "textRendering" | "textShadow" | "textTransform" | "top" | "touchAction" | "transform" | "transformOrigin" | "transformStyle" | "transition" | "transitionDelay" | "transitionDuration" | "transitionProperty" | "transitionTimingFunction" | "verticalAlign" | "visibility" | "userSelect" | "WebkitOverflowScrolling" | "writingMode" | "whiteSpace" | "width" | "willChange" | "wordBreak" | "wordSpacing" | "wordWrap" | "zIndex"> & Partial<Record<"backgroundColor" | "borderColor" | "borderBottomColor" | "borderLeftColor" | "borderRightColor" | "borderTopColor" | "color" | "fill" | "stroke", import("type-fest").LiteralUnion<"background" | "foreground" | "foregroundSecondary" | "foregroundTertiary" | "backgroundSecondary" | "backgroundTertiary" | "surface" | "surfaceSecondary" | "surfaceTertiary" | "separator" | "separatorSecondary" | "separatorTertiary" | "separatorHover" | "separatorFocus" | "separatorFocusSecondary" | "highlight" | "highlightSecondary" | "linkForeground" | "linkBackground" | "primary" | "primary-light" | "primary-lighter" | "primary-lightest" | "primary-dark" | "primary-darker" | "primary-darkest" | "warning" | "warning-light" | "warning-lighter" | "warning-lightest" | "warning-dark" | "warning-darker" | "warning-darkest" | "error" | "error-light" | "error-lighter" | "error-lightest" | "error-dark" | "error-darker" | "error-darkest" | "success" | "success-light" | "success-lighter" | "success-lightest" | "success-dark" | "success-darker" | "success-darkest" | "sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "check-ins" | "giving" | "groups" | "music-stand" | "pco" | "people" | "planning-center" | "projector" | "registrations" | "calendar" | "services" | "red-0" | "red-1" | "red-2" | "red-3" | "red-4" | "red-5" | "red-6" | "red-7" | "red-8" | "red-9" | "blue-0" | "blue-1" | "blue-2" | "blue-3" | "blue-4" | "blue-5" | "blue-6" | "blue-7" | "blue-8" | "blue-9" | "green-0" | "green-1" | "green-2" | "green-3" | "green-4" | "green-5" | "green-6" | "green-7" | "green-8" | "green-9" | "yellow-0" | "yellow-1" | "yellow-2" | "yellow-3" | "yellow-4" | "yellow-5" | "yellow-6" | "yellow-7" | "yellow-8" | "yellow-9" | "light-0" | "light-1" | "light-2" | "light-3" | "light-4" | "light-5" | "light-6" | "light-7" | "light-8" | "light-9" | "dark-0" | "dark-1" | "dark-2" | "dark-3" | "dark-4" | "dark-5" | "dark-6" | "dark-7" | "dark-8" | "dark-9" | "grey-0" | "grey-1" | "grey-2" | "grey-3" | "grey-4" | "grey-5" | "grey-6" | "grey-7" | "grey-8" | "grey-9" | "transparent", string>>> & {
|
|
86
94
|
css?: any;
|
|
87
95
|
paddingHorizontal?: string | number;
|
|
88
96
|
paddingVertical?: string | number;
|
|
89
97
|
marginHorizontal?: string | number;
|
|
90
98
|
marginVertical?: string | number;
|
|
91
|
-
column?: import("csstype").Property.
|
|
92
|
-
columnStart?: import("csstype").Property.
|
|
93
|
-
columnEnd?: import("csstype").Property.
|
|
94
|
-
row?: import("csstype").Property.
|
|
95
|
-
rowStart?: import("csstype").Property.
|
|
96
|
-
rowEnd?: import("csstype").Property.
|
|
97
|
-
basis?: import("csstype").Property.
|
|
98
|
-
grow?: import("csstype").Property.
|
|
99
|
-
shrink?: import("csstype").Property.
|
|
99
|
+
column?: import("csstype").Property.ColumnCount;
|
|
100
|
+
columnStart?: import("csstype").Property.ColumnCount;
|
|
101
|
+
columnEnd?: import("csstype").Property.ColumnCount;
|
|
102
|
+
row?: import("csstype").Property.ColumnCount;
|
|
103
|
+
rowStart?: import("csstype").Property.ColumnCount;
|
|
104
|
+
rowEnd?: import("csstype").Property.ColumnCount;
|
|
105
|
+
basis?: import("csstype").Property.Height<string | number>;
|
|
106
|
+
grow?: import("csstype").Property.BorderImageSlice;
|
|
107
|
+
shrink?: import("csstype").Property.BorderImageSlice;
|
|
100
108
|
wrap?: string | boolean;
|
|
101
|
-
radius?: import("csstype").Property.
|
|
109
|
+
radius?: import("csstype").Property.Height<string | number>;
|
|
102
110
|
radiusTop?: string | number;
|
|
103
111
|
radiusRight?: string | number;
|
|
104
112
|
radiusBottom?: string | number;
|
|
@@ -111,6 +119,6 @@ export declare namespace Button {
|
|
|
111
119
|
rotate?: number;
|
|
112
120
|
scale?: number;
|
|
113
121
|
uppercase?: boolean;
|
|
114
|
-
}, "
|
|
122
|
+
}, "alignContent" | "alignItems" | "alignSelf" | "alignmentBaseline" | "animation" | "animationDelay" | "animationDirection" | "animationDuration" | "animationFillMode" | "animationIterationCount" | "animationName" | "animationPlayState" | "animationTimingFunction" | "backfaceVisibility" | "background" | "backgroundAttachment" | "backgroundBlendMode" | "backgroundClip" | "backgroundImage" | "backgroundOrigin" | "backgroundPosition" | "backgroundPositionX" | "backgroundPositionY" | "backgroundRepeat" | "backgroundSize" | "baselineShift" | "border" | "borderBottom" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStyle" | "borderBottomWidth" | "borderCollapse" | "borderImage" | "borderImageOutset" | "borderImageRepeat" | "borderImageSlice" | "borderImageSource" | "borderImageWidth" | "borderLeft" | "borderLeftStyle" | "borderLeftWidth" | "borderRadius" | "borderRight" | "borderRightStyle" | "borderRightWidth" | "borderSpacing" | "borderStyle" | "borderTop" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStyle" | "borderTopWidth" | "borderWidth" | "bottom" | "boxShadow" | "boxSizing" | "breakAfter" | "breakBefore" | "breakInside" | "clear" | "clip" | "clipPath" | "clipRule" | "columnCount" | "columnFill" | "columnGap" | "columnRule" | "columnRuleColor" | "columnRuleStyle" | "columnRuleWidth" | "columnSpan" | "columnWidth" | "columns" | "contain" | "content" | "counterIncrement" | "counterReset" | "cursor" | "direction" | "display" | "fillOpacity" | "fillRule" | "filter" | "flex" | "flexBasis" | "flexDirection" | "flexFlow" | "flexGrow" | "flexShrink" | "flexWrap" | "font" | "fontFamily" | "fontFeatureSettings" | "fontKerning" | "fontSize" | "fontStretch" | "fontStyle" | "fontVariant" | "fontVariantCaps" | "fontVariantLigatures" | "fontVariantNumeric" | "fontWeight" | "gap" | "gridArea" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumn" | "gridColumnEnd" | "gridColumnGap" | "gridColumnStart" | "gridGap" | "gridRow" | "gridRowEnd" | "gridRowGap" | "gridRowStart" | "gridTemplate" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "imageRendering" | "isolation" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lightingColor" | "lineHeight" | "listStyle" | "listStyleImage" | "listStylePosition" | "listStyleType" | "margin" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "mask" | "maskType" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "mixBlendMode" | "motion" | "objectFit" | "objectPosition" | "opacity" | "order" | "outline" | "outlineColor" | "outlineOffset" | "outlineStyle" | "outlineWidth" | "overflow" | "overflowWrap" | "overflowX" | "overflowY" | "padding" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "pageBreakAfter" | "pageBreakBefore" | "pageBreakInside" | "perspective" | "perspectiveOrigin" | "placeItems" | "placeSelf" | "pointerEvents" | "position" | "resize" | "right" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "tabSize" | "tableLayout" | "textAlign" | "textDecoration" | "textIndent" | "textOrientation" | "textOverflow" | "textRendering" | "textShadow" | "textTransform" | "top" | "touchAction" | "transform" | "transformOrigin" | "transformStyle" | "transition" | "transitionDelay" | "transitionDuration" | "transitionProperty" | "transitionTimingFunction" | "verticalAlign" | "visibility" | "userSelect" | "WebkitOverflowScrolling" | "writingMode" | "whiteSpace" | "width" | "willChange" | "wordBreak" | "wordSpacing" | "wordWrap" | "zIndex" | "backgroundColor" | "borderColor" | "borderBottomColor" | "borderLeftColor" | "borderRightColor" | "borderTopColor" | "color" | "fill" | "stroke" | "as" | "row" | "innerRef" | "inline" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "visible" | "variants" | "mediaQueries" | "css" | "paddingHorizontal" | "paddingVertical" | "marginHorizontal" | "marginVertical" | "column" | "columnStart" | "columnEnd" | "rowStart" | "rowEnd" | "basis" | "grow" | "shrink" | "wrap" | "radius" | "radiusTop" | "radiusRight" | "radiusBottom" | "radiusLeft" | "strokeAlign" | "strokeWeight" | "elevation" | "x" | "y" | "rotate" | "scale" | "uppercase" | "size" | "onOpen" | "onClose"> & React.RefAttributes<unknown>>;
|
|
115
123
|
}
|
|
116
124
|
export {};
|
|
@@ -26,5 +26,5 @@ declare type ButtonInputProps = {
|
|
|
26
26
|
onOpen: () => void;
|
|
27
27
|
} & BoxProps;
|
|
28
28
|
declare type Props = React.RefAttributes<any> & React.HTMLAttributes<any> & ButtonInputProps;
|
|
29
|
-
declare const ButtonInput: React.ForwardRefExoticComponent<Pick<Props, "
|
|
29
|
+
declare const ButtonInput: React.ForwardRefExoticComponent<Pick<Props, "alignContent" | "alignItems" | "alignSelf" | "alignmentBaseline" | "animation" | "animationDelay" | "animationDirection" | "animationDuration" | "animationFillMode" | "animationIterationCount" | "animationName" | "animationPlayState" | "animationTimingFunction" | "backfaceVisibility" | "background" | "backgroundAttachment" | "backgroundBlendMode" | "backgroundClip" | "backgroundImage" | "backgroundOrigin" | "backgroundPosition" | "backgroundPositionX" | "backgroundPositionY" | "backgroundRepeat" | "backgroundSize" | "baselineShift" | "border" | "borderBottom" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStyle" | "borderBottomWidth" | "borderCollapse" | "borderImage" | "borderImageOutset" | "borderImageRepeat" | "borderImageSlice" | "borderImageSource" | "borderImageWidth" | "borderLeft" | "borderLeftStyle" | "borderLeftWidth" | "borderRadius" | "borderRight" | "borderRightStyle" | "borderRightWidth" | "borderSpacing" | "borderStyle" | "borderTop" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStyle" | "borderTopWidth" | "borderWidth" | "bottom" | "boxShadow" | "boxSizing" | "breakAfter" | "breakBefore" | "breakInside" | "clear" | "clip" | "clipPath" | "clipRule" | "columnCount" | "columnFill" | "columnGap" | "columnRule" | "columnRuleColor" | "columnRuleStyle" | "columnRuleWidth" | "columnSpan" | "columnWidth" | "columns" | "contain" | "content" | "counterIncrement" | "counterReset" | "cursor" | "direction" | "display" | "fillOpacity" | "fillRule" | "filter" | "flex" | "flexBasis" | "flexDirection" | "flexFlow" | "flexGrow" | "flexShrink" | "flexWrap" | "font" | "fontFamily" | "fontFeatureSettings" | "fontKerning" | "fontSize" | "fontStretch" | "fontStyle" | "fontVariant" | "fontVariantCaps" | "fontVariantLigatures" | "fontVariantNumeric" | "fontWeight" | "gap" | "gridArea" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumn" | "gridColumnEnd" | "gridColumnGap" | "gridColumnStart" | "gridGap" | "gridRow" | "gridRowEnd" | "gridRowGap" | "gridRowStart" | "gridTemplate" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "imageRendering" | "isolation" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lightingColor" | "lineHeight" | "listStyle" | "listStyleImage" | "listStylePosition" | "listStyleType" | "margin" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "mask" | "maskType" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "mixBlendMode" | "motion" | "objectFit" | "objectPosition" | "opacity" | "order" | "outline" | "outlineColor" | "outlineOffset" | "outlineStyle" | "outlineWidth" | "overflow" | "overflowWrap" | "overflowX" | "overflowY" | "padding" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "pageBreakAfter" | "pageBreakBefore" | "pageBreakInside" | "perspective" | "perspectiveOrigin" | "placeItems" | "placeSelf" | "pointerEvents" | "position" | "resize" | "right" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "tabSize" | "tableLayout" | "textAlign" | "textDecoration" | "textIndent" | "textOrientation" | "textOverflow" | "textRendering" | "textShadow" | "textTransform" | "top" | "touchAction" | "transform" | "transformOrigin" | "transformStyle" | "transition" | "transitionDelay" | "transitionDuration" | "transitionProperty" | "transitionTimingFunction" | "verticalAlign" | "visibility" | "userSelect" | "WebkitOverflowScrolling" | "writingMode" | "whiteSpace" | "width" | "willChange" | "wordBreak" | "wordSpacing" | "wordWrap" | "zIndex" | "backgroundColor" | "borderColor" | "borderBottomColor" | "borderLeftColor" | "borderRightColor" | "borderTopColor" | "color" | "fill" | "stroke" | "as" | "row" | "innerRef" | "inline" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "visible" | "variants" | "mediaQueries" | "css" | "paddingHorizontal" | "paddingVertical" | "marginHorizontal" | "marginVertical" | "column" | "columnStart" | "columnEnd" | "rowStart" | "rowEnd" | "basis" | "grow" | "shrink" | "wrap" | "radius" | "radiusTop" | "radiusRight" | "radiusBottom" | "radiusLeft" | "strokeAlign" | "strokeWeight" | "elevation" | "x" | "y" | "rotate" | "scale" | "uppercase" | "size" | "onOpen" | "onClose"> & React.RefAttributes<unknown>>;
|
|
30
30
|
export default ButtonInput;
|
|
@@ -7,13 +7,7 @@ export declare type CardProps = {
|
|
|
7
7
|
/** The size of the radius. (Default is 3px). */
|
|
8
8
|
radius?: number | string;
|
|
9
9
|
} & StackViewProps;
|
|
10
|
-
declare
|
|
11
|
-
export declare function Section({ subdued, ...restProps }: Props): JSX.Element;
|
|
12
|
-
export declare namespace Section {
|
|
13
|
-
var displayName: string;
|
|
14
|
-
}
|
|
15
|
-
export declare function Card({ children, subdued, radius, ...restProps }: Props): JSX.Element;
|
|
10
|
+
export declare function Card({ children, subdued, radius, ...restProps }: CardProps): JSX.Element;
|
|
16
11
|
export declare namespace Card {
|
|
17
|
-
var Section: typeof import("./
|
|
12
|
+
var Section: typeof import("./Section").Section;
|
|
18
13
|
}
|
|
19
|
-
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { StackViewProps } from '../StackView';
|
|
3
|
+
export declare type SectionProps = {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
/** Adds a slightly higher contrast background. */
|
|
6
|
+
subdued?: boolean;
|
|
7
|
+
} & StackViewProps & React.RefAttributes<any> & React.HTMLAttributes<any>;
|
|
8
|
+
export declare function Section({ subdued, ...restProps }: SectionProps): JSX.Element;
|
|
9
|
+
export declare namespace Section {
|
|
10
|
+
var displayName: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom/extend-expect';
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/** @jsxRuntime classic */
|
|
2
|
+
/** @jsx jsx */
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
1
4
|
import * as React from 'react';
|
|
2
5
|
import { BoxProps } from '../Box';
|
|
3
6
|
import { MediaQueries, Variants } from '../index';
|
|
@@ -34,5 +37,5 @@ export declare type GridViewProps = {
|
|
|
34
37
|
mediaQueries?: object;
|
|
35
38
|
} & BoxProps;
|
|
36
39
|
declare type Props = React.RefAttributes<any> & React.HTMLAttributes<any> & GridViewProps & MediaQueries<GridViewProps> & Variants<GridViewProps>;
|
|
37
|
-
export declare function GridView({ as, inline, innerRef, ...props }: Props): JSX.Element;
|
|
40
|
+
export declare function GridView({ as, inline, innerRef, ...props }: Props): jsx.JSX.Element;
|
|
38
41
|
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare type PaginationProps = {
|
|
2
|
+
/**
|
|
3
|
+
* Change the color of the active page
|
|
4
|
+
*/
|
|
5
|
+
activeColor: string;
|
|
6
|
+
/**
|
|
7
|
+
* Current visible page number
|
|
8
|
+
*/
|
|
9
|
+
currentPage: number;
|
|
10
|
+
/**
|
|
11
|
+
* Callback when new page is requested
|
|
12
|
+
*/
|
|
13
|
+
onPageChange: (nextPage: number) => undefined;
|
|
14
|
+
/**
|
|
15
|
+
* Total available pages
|
|
16
|
+
*/
|
|
17
|
+
totalPages: number;
|
|
18
|
+
/**
|
|
19
|
+
* Amount of visible pages
|
|
20
|
+
*/
|
|
21
|
+
visiblePages?: number;
|
|
22
|
+
};
|
|
23
|
+
export default function Pagination({ activeColor, currentPage, onPageChange, visiblePages, totalPages, ...restProps }: PaginationProps): JSX.Element;
|
|
@@ -3,7 +3,7 @@ export declare type PopoverProps = {
|
|
|
3
3
|
/**
|
|
4
4
|
* Controls the default component or tag being rendered.
|
|
5
5
|
*/
|
|
6
|
-
as?:
|
|
6
|
+
as?: any;
|
|
7
7
|
/**
|
|
8
8
|
* The element to attach the popover to. Clones the element's ref to calculate
|
|
9
9
|
* position relative to the optional `relativeTo` prop or the `renderTo` element.
|
|
@@ -60,12 +60,12 @@ export declare const Popover: React.ForwardRefExoticComponent<{
|
|
|
60
60
|
/**
|
|
61
61
|
* Controls the default component or tag being rendered.
|
|
62
62
|
*/
|
|
63
|
-
as?:
|
|
63
|
+
as?: any;
|
|
64
64
|
/**
|
|
65
65
|
* The element to attach the popover to. Clones the element's ref to calculate
|
|
66
66
|
* position relative to the optional `relativeTo` prop or the `renderTo` element.
|
|
67
67
|
*/
|
|
68
|
-
anchorElement: React.ReactElement<any, string | ((props: any) => React.ReactElement<any,
|
|
68
|
+
anchorElement: React.ReactElement<any, string | ((props: any) => React.ReactElement<any, any>) | (new (props: any) => React.Component<any, any, any>)> | ((anchorCallbackProps: any) => null);
|
|
69
69
|
/**
|
|
70
70
|
* Attempts to keep popover in view clipping edges if too large.
|
|
71
71
|
*/
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
export declare type PortalProps = {
|
|
3
|
+
children: any;
|
|
3
4
|
/** Styles to apply to the portal root element. */
|
|
4
5
|
style?: React.CSSProperties;
|
|
5
6
|
/** Where the portal is rendered into. */
|
|
@@ -23,12 +24,12 @@ declare class Portal extends React.Component<PortalProps> {
|
|
|
23
24
|
componentDidMount(): void;
|
|
24
25
|
componentDidUpdate(): void;
|
|
25
26
|
componentWillUnmount(): void;
|
|
26
|
-
_getSecondChild(): string | number |
|
|
27
|
+
_getSecondChild(): string | number | React.ReactElement<any, string | ((props: any) => React.ReactElement<any, any>) | (new (props: any) => React.Component<any, any, any>)> | React.ReactFragment | React.ReactPortal;
|
|
27
28
|
_getRenderToNode(): Element;
|
|
28
29
|
_setupPortal(): void;
|
|
29
30
|
_updatePortal(): void;
|
|
30
|
-
_renderPortal(component: any):
|
|
31
|
+
_renderPortal(component: any): import("react").ReactPortal;
|
|
31
32
|
_destroyPortal(): void;
|
|
32
|
-
render():
|
|
33
|
+
render(): number | React.ReactFragment | JSX.Element;
|
|
33
34
|
}
|
|
34
35
|
export { Portal };
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/** @jsxRuntime classic */
|
|
2
|
+
/** @jsx jsx */
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
1
4
|
import * as React from 'react';
|
|
2
5
|
import { BoxProps } from '../Box';
|
|
3
6
|
import { MediaQueries, Variants } from '../index';
|
|
@@ -23,7 +26,7 @@ export declare type StackViewProps = {
|
|
|
23
26
|
mediaQueries?: object;
|
|
24
27
|
} & BoxProps;
|
|
25
28
|
declare type Props = React.RefAttributes<any> & React.HTMLAttributes<any> & StackViewProps & MediaQueries<StackViewProps> & Variants<StackViewProps>;
|
|
26
|
-
export declare function StackView({ as, children, inline, innerRef, ...props }: Props): JSX.Element;
|
|
29
|
+
export declare function StackView({ as, children, inline, innerRef, ...props }: Props): jsx.JSX.Element;
|
|
27
30
|
export declare namespace StackView {
|
|
28
31
|
var BASELINE: string;
|
|
29
32
|
var CENTER: string;
|
package/dist/types/Tab/Tab.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/** @jsxRuntime classic */
|
|
2
|
+
/** @jsx jsx */
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
1
4
|
import * as React from 'react';
|
|
2
5
|
import { BoxProps } from '../Box';
|
|
3
6
|
import { MediaQueries, Variants } from '../index';
|
|
@@ -52,5 +55,5 @@ export declare type TextProps = {
|
|
|
52
55
|
mediaQueries?: object;
|
|
53
56
|
} & BoxProps;
|
|
54
57
|
declare type Props = React.RefAttributes<any> & React.HTMLAttributes<any> & TextProps & MediaQueries<TextProps> & Variants<TextProps>;
|
|
55
|
-
export declare function Text({ as, innerRef, ...props }: Props): JSX.Element;
|
|
58
|
+
export declare function Text({ as, innerRef, ...props }: Props): jsx.JSX.Element;
|
|
56
59
|
export {};
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/** @jsxRuntime classic */
|
|
2
|
+
/** @jsx jsx */
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
1
4
|
import * as React from 'react';
|
|
2
5
|
import { BoxProps } from '../Box';
|
|
3
6
|
import { MediaQueries, Variants } from '../index';
|
|
@@ -17,5 +20,5 @@ export declare type TileViewProps = {
|
|
|
17
20
|
mediaQueries?: object;
|
|
18
21
|
} & BoxProps;
|
|
19
22
|
declare type Props = React.RefAttributes<any> & React.HTMLAttributes<any> & TileViewProps & MediaQueries<TileViewProps> & Variants<TileViewProps>;
|
|
20
|
-
export declare function TileView({ as, innerRef, ...props }: Props): JSX.Element;
|
|
23
|
+
export declare function TileView({ as, innerRef, ...props }: Props): jsx.JSX.Element;
|
|
21
24
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@planningcenter/tapestry-react",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "A collection of flexible React components to help you build resilient, accessible user interfaces quickly and effectively.",
|
|
5
5
|
"author": "Front End Systems Engineering <frontend@pco.bz>",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
],
|
|
14
14
|
"repository": {
|
|
15
15
|
"type": "git",
|
|
16
|
-
"url": "https://github.com/
|
|
16
|
+
"url": "https://github.com/planningcenter/tapestry-react.git"
|
|
17
17
|
},
|
|
18
18
|
"license": "UNLICENSED",
|
|
19
19
|
"publishConfig": {
|
|
@@ -24,7 +24,6 @@
|
|
|
24
24
|
"test:coverage": "jest --coverage",
|
|
25
25
|
"test:watch": "jest --watch",
|
|
26
26
|
"test:debug": "node --inspect-brk ./node_modules/bin/jest --runInBand --watch",
|
|
27
|
-
"icons": "node scripts/generate-icons.js",
|
|
28
27
|
"prebuild": "rimraf dist",
|
|
29
28
|
"build": "yarn build:cjs && yarn build:esm && yarn build:types",
|
|
30
29
|
"build:cjs": "NODE_ENV=production BABEL_ENV=cjs babel src -d dist/cjs --extensions '.js,.ts,.tsx' --ignore '**/__tests__/**/*.js','**/*.test.js'",
|
|
@@ -34,13 +33,11 @@
|
|
|
34
33
|
"develop": "yarn prebuild && yarn build:esm --watch",
|
|
35
34
|
"develop:yalc": "yalc publish && chokidar src -c 'yalc publish --push --changed'",
|
|
36
35
|
"lint": "eslint src",
|
|
37
|
-
"validate": "yarn lint && yarn prettier --list-different"
|
|
38
|
-
"semantic-release": "semantic-release"
|
|
36
|
+
"validate": "yarn lint && yarn prettier --list-different"
|
|
39
37
|
},
|
|
40
38
|
"peerDependencies": {
|
|
41
39
|
"@emotion/cache": "10.x",
|
|
42
|
-
"@emotion/
|
|
43
|
-
"emotion-theming": "10.x",
|
|
40
|
+
"@emotion/react": "^11.10.5",
|
|
44
41
|
"react": "^16.8.0 || ^17.0.0",
|
|
45
42
|
"react-dom": "^16.8.0 || ^17.0.0"
|
|
46
43
|
},
|
|
@@ -55,19 +52,19 @@
|
|
|
55
52
|
"@babel/preset-flow": "7.12.13",
|
|
56
53
|
"@babel/preset-react": "7.12.13",
|
|
57
54
|
"@babel/preset-typescript": "^7.12.17",
|
|
58
|
-
"@emotion/cache": "10.
|
|
59
|
-
"@emotion/
|
|
55
|
+
"@emotion/cache": "^11.10.5",
|
|
56
|
+
"@emotion/react": "^11.10.5",
|
|
60
57
|
"@testing-library/jest-dom": "^5.11.9",
|
|
61
|
-
"@testing-library/react": "^
|
|
62
|
-
"@testing-library/react-hooks": "
|
|
58
|
+
"@testing-library/react": "^12.1.4",
|
|
59
|
+
"@testing-library/react-hooks": "^8.0.1",
|
|
63
60
|
"@testing-library/user-event": "^13.1.9",
|
|
64
61
|
"@types/jest": "^26.0.20",
|
|
62
|
+
"@types/react": "^18.0.24",
|
|
63
|
+
"@types/react-dom": "^18.0.8",
|
|
65
64
|
"babel-eslint": "10.1.0",
|
|
66
65
|
"chokidar-cli": "^2.1.0",
|
|
67
|
-
"commitizen": "^4.2.3",
|
|
68
66
|
"cz-conventional-changelog": "^3.3.0",
|
|
69
67
|
"dotenv": "^8.2.0",
|
|
70
|
-
"emotion-theming": "10.0.27",
|
|
71
68
|
"eslint": "7.20.0",
|
|
72
69
|
"eslint-config-react-app": "6.0.0",
|
|
73
70
|
"eslint-plugin-flowtype": "5.2.1",
|
|
@@ -85,7 +82,6 @@
|
|
|
85
82
|
"react-dom": "^17.0.1",
|
|
86
83
|
"react-test-renderer": "17.0.1",
|
|
87
84
|
"rimraf": "3.0.2",
|
|
88
|
-
"semantic-release": "19.0.3",
|
|
89
85
|
"svgo": "^2.1.0",
|
|
90
86
|
"svgson": "4.1.0",
|
|
91
87
|
"type-fest": "^0.21.1",
|
|
@@ -93,8 +89,10 @@
|
|
|
93
89
|
},
|
|
94
90
|
"dependencies": {
|
|
95
91
|
"@planningcenter/icons": "^14.0.0",
|
|
92
|
+
"@planningcenter/react-beautiful-dnd": "^13.2.1",
|
|
96
93
|
"@popmotion/popcorn": "^0.4.4",
|
|
97
94
|
"@popperjs/core": "^2.11.6",
|
|
95
|
+
"@react-hook/window-size": "^3.1.1",
|
|
98
96
|
"date-fns": "^2.29.2",
|
|
99
97
|
"focus-options-polyfill": "^1.6.0",
|
|
100
98
|
"focus-visible": "^5.2.0",
|
|
@@ -104,7 +102,6 @@
|
|
|
104
102
|
"mousetrap": "^1.6.5",
|
|
105
103
|
"polished": "^4.2.2",
|
|
106
104
|
"popper-max-size-modifier": "^0.2.0",
|
|
107
|
-
"react-beautiful-dnd": "^13.1.0",
|
|
108
105
|
"react-sticky-box": "^1.0.2",
|
|
109
106
|
"stylefire": "^7.0.3",
|
|
110
107
|
"tabbable": "^6.0.0",
|
package/src/Avatar/Avatar.mdx
CHANGED
|
@@ -13,11 +13,11 @@ const statuses = {
|
|
|
13
13
|
}
|
|
14
14
|
function App() {
|
|
15
15
|
const [status, setStatus] = React.useState(null)
|
|
16
|
-
const users = useUsers()
|
|
16
|
+
const users = useUsers(6)
|
|
17
17
|
return (
|
|
18
18
|
<StackView alignment="center" spacing={4}>
|
|
19
19
|
<StackView axis="horizontal" alignment="end" spacing={1}>
|
|
20
|
-
{['xs', 'sm', 'md', 'lg', 'xl'].map((size, index) => (
|
|
20
|
+
{['xs', 'sm', 'md', 'lg', 'xl', 'xxl'].map((size, index) => (
|
|
21
21
|
<StackView key={size} spacing={1} alignment="center">
|
|
22
22
|
<Avatar
|
|
23
23
|
size={size}
|