@planningcenter/tapestry-react 2.10.0-rc.3 → 2.10.0-rc.5
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/Box/Box.js +12 -10
- package/dist/cjs/Button/Button.js +1 -1
- package/dist/cjs/Input/Inline.js +1 -1
- package/dist/cjs/Input/InputBox.js +1 -1
- package/dist/cjs/Radio/Radio.js +1 -1
- package/dist/cjs/StackView/StackView.js +6 -5
- package/dist/cjs/designTokens/index.js +6 -2
- package/dist/esm/Box/Box.js +6 -8
- package/dist/esm/Button/Button.js +1 -1
- package/dist/esm/Input/Inline.js +1 -1
- package/dist/esm/Input/InputBox.js +1 -1
- package/dist/esm/Radio/Radio.js +1 -1
- package/dist/esm/StackView/StackView.js +3 -5
- package/dist/esm/designTokens/index.js +6 -2
- package/dist/types/Box/Box.d.ts +76 -18
- package/dist/types/Button/Button.d.ts +9 -9
- package/dist/types/Button/Input.d.ts +1 -1
- package/dist/types/StackView/StackView.d.ts +76 -21
- package/dist/types/designTokens/index.d.ts +6 -2
- package/package.json +2 -2
- package/src/Box/Box.tsx +29 -25
- package/src/Button/Button.tsx +1 -1
- package/src/Input/Inline.js +1 -1
- package/src/Input/InputBox.js +1 -1
- package/src/Radio/Radio.tsx +1 -1
- package/src/StackView/StackView.tsx +16 -14
- package/src/designTokens/index.ts +6 -2
package/dist/cjs/Box/Box.js
CHANGED
|
@@ -5,7 +5,7 @@ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWild
|
|
|
5
5
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
6
|
|
|
7
7
|
exports.__esModule = true;
|
|
8
|
-
exports.Box =
|
|
8
|
+
exports.Box = void 0;
|
|
9
9
|
|
|
10
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
11
|
|
|
@@ -13,34 +13,36 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
13
13
|
|
|
14
14
|
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
15
15
|
|
|
16
|
-
var _react = require("@emotion/react");
|
|
17
|
-
|
|
18
16
|
var React = _interopRequireWildcard(require("react"));
|
|
19
17
|
|
|
18
|
+
var _react2 = require("@emotion/react");
|
|
19
|
+
|
|
20
20
|
var _splitStyles = _interopRequireDefault(require("../system/split-styles"));
|
|
21
21
|
|
|
22
22
|
var _VariantProvider = require("../VariantProvider");
|
|
23
23
|
|
|
24
24
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
25
25
|
|
|
26
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } /** @
|
|
26
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } /** @jsx jsx */
|
|
27
27
|
|
|
28
28
|
var defaultElement = 'div';
|
|
29
29
|
/**
|
|
30
30
|
* Box is the base component that everything builds from. It is responsible for processing all style props.
|
|
31
31
|
*/
|
|
32
32
|
|
|
33
|
-
function Box(_ref) {
|
|
33
|
+
var Box = function Box(_ref) {
|
|
34
34
|
var as = _ref.as,
|
|
35
|
-
innerRef = _ref.innerRef,
|
|
36
35
|
inline = _ref.inline,
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
innerRef = _ref.innerRef,
|
|
37
|
+
props = (0, _objectWithoutPropertiesLoose2["default"])(_ref, ["as", "inline", "innerRef"]);
|
|
39
38
|
var variant = (0, _VariantProvider.useVariant)();
|
|
40
|
-
|
|
39
|
+
var Element = as || defaultElement;
|
|
40
|
+
return (0, _react2.jsx)(Element, (0, _extends2["default"])({
|
|
41
41
|
ref: innerRef
|
|
42
42
|
}, (0, _splitStyles["default"])(_objectSpread({
|
|
43
43
|
display: inline ? 'inline-block' : 'block',
|
|
44
44
|
variant: variant
|
|
45
45
|
}, props))));
|
|
46
|
-
}
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
exports.Box = Box;
|
|
@@ -80,7 +80,7 @@ function Button(_ref) {
|
|
|
80
80
|
inline: true,
|
|
81
81
|
lineHeight: lineHeight,
|
|
82
82
|
position: 'relative',
|
|
83
|
-
radius: _designTokens.designTokens.borderRadius,
|
|
83
|
+
radius: _designTokens.designTokens.button.borderRadius,
|
|
84
84
|
strokeAlign: 'inside',
|
|
85
85
|
strokeWeight: 1,
|
|
86
86
|
userSelect: 'none',
|
package/dist/cjs/Input/Inline.js
CHANGED
|
@@ -51,7 +51,7 @@ function Inline(_ref) {
|
|
|
51
51
|
paddingHorizontal: 0.5,
|
|
52
52
|
paddingVertical: 0,
|
|
53
53
|
placeholderColor: light ? 'light-5' : 'foregroundTertiary',
|
|
54
|
-
radius: _designTokens.designTokens.
|
|
54
|
+
radius: _designTokens.designTokens.input.borderRadius,
|
|
55
55
|
stroke: undefined
|
|
56
56
|
}, restProps));
|
|
57
57
|
}
|
|
@@ -307,7 +307,7 @@ var InputBox = /*#__PURE__*/function (_Component) {
|
|
|
307
307
|
alignment: _StackView["default"].CENTER,
|
|
308
308
|
shrink: 0,
|
|
309
309
|
minHeight: boxSize,
|
|
310
|
-
radius: _designTokens.designTokens.
|
|
310
|
+
radius: _designTokens.designTokens.input.borderRadius,
|
|
311
311
|
position: "relative",
|
|
312
312
|
cursor: "text",
|
|
313
313
|
outline: 0,
|
package/dist/cjs/Radio/Radio.js
CHANGED
|
@@ -5,7 +5,7 @@ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWild
|
|
|
5
5
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
6
|
|
|
7
7
|
exports.__esModule = true;
|
|
8
|
-
exports.StackView =
|
|
8
|
+
exports.StackView = void 0;
|
|
9
9
|
|
|
10
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
11
|
|
|
@@ -27,7 +27,7 @@ var _VariantProvider = require("../VariantProvider");
|
|
|
27
27
|
|
|
28
28
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
29
29
|
|
|
30
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } /** @
|
|
30
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } /** @jsx jsx */
|
|
31
31
|
|
|
32
32
|
var BASELINE = 'baseline';
|
|
33
33
|
var CENTER = 'center';
|
|
@@ -74,14 +74,14 @@ var stackViewPlugin = {
|
|
|
74
74
|
};
|
|
75
75
|
var defaultElement = 'div';
|
|
76
76
|
|
|
77
|
-
function StackView(_ref2) {
|
|
77
|
+
var StackView = function StackView(_ref2) {
|
|
78
78
|
var as = _ref2.as,
|
|
79
79
|
children = _ref2.children,
|
|
80
80
|
inline = _ref2.inline,
|
|
81
81
|
innerRef = _ref2.innerRef,
|
|
82
82
|
props = (0, _objectWithoutPropertiesLoose2["default"])(_ref2, ["as", "children", "inline", "innerRef"]);
|
|
83
|
-
var Element = as || defaultElement;
|
|
84
83
|
var variant = (0, _VariantProvider.useVariant)();
|
|
84
|
+
var Element = as || defaultElement;
|
|
85
85
|
var childrenToRender = Element === 'textarea' ? undefined : typeof props.spacing === 'object' ? (0, _utils.joinChildren)(children, props.spacing) : children;
|
|
86
86
|
return (0, _react.jsx)(Element, (0, _extends2["default"])({
|
|
87
87
|
ref: innerRef
|
|
@@ -91,8 +91,9 @@ function StackView(_ref2) {
|
|
|
91
91
|
plugin: stackViewPlugin,
|
|
92
92
|
variant: variant
|
|
93
93
|
}, props))), childrenToRender);
|
|
94
|
-
}
|
|
94
|
+
};
|
|
95
95
|
|
|
96
|
+
exports.StackView = StackView;
|
|
96
97
|
StackView.BASELINE = BASELINE;
|
|
97
98
|
StackView.CENTER = CENTER;
|
|
98
99
|
StackView.END = END;
|
package/dist/esm/Box/Box.js
CHANGED
|
@@ -6,11 +6,9 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
6
6
|
|
|
7
7
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
8
8
|
|
|
9
|
-
/** @jsxRuntime classic */
|
|
10
|
-
|
|
11
9
|
/** @jsx jsx */
|
|
12
|
-
import { jsx } from '@emotion/react';
|
|
13
10
|
import * as React from 'react';
|
|
11
|
+
import { jsx } from '@emotion/react';
|
|
14
12
|
import splitStyles from '../system/split-styles';
|
|
15
13
|
import { useVariant } from '../VariantProvider';
|
|
16
14
|
var defaultElement = 'div';
|
|
@@ -18,18 +16,18 @@ var defaultElement = 'div';
|
|
|
18
16
|
* Box is the base component that everything builds from. It is responsible for processing all style props.
|
|
19
17
|
*/
|
|
20
18
|
|
|
21
|
-
export function Box(_ref) {
|
|
19
|
+
export var Box = function Box(_ref) {
|
|
22
20
|
var as = _ref.as,
|
|
23
|
-
innerRef = _ref.innerRef,
|
|
24
21
|
inline = _ref.inline,
|
|
25
|
-
|
|
22
|
+
innerRef = _ref.innerRef,
|
|
23
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "inline", "innerRef"]);
|
|
26
24
|
|
|
27
|
-
var Element = as || defaultElement;
|
|
28
25
|
var variant = useVariant();
|
|
26
|
+
var Element = as || defaultElement;
|
|
29
27
|
return jsx(Element, _extends({
|
|
30
28
|
ref: innerRef
|
|
31
29
|
}, splitStyles(_objectSpread({
|
|
32
30
|
display: inline ? 'inline-block' : 'block',
|
|
33
31
|
variant: variant
|
|
34
32
|
}, props))));
|
|
35
|
-
}
|
|
33
|
+
};
|
package/dist/esm/Input/Inline.js
CHANGED
|
@@ -41,7 +41,7 @@ function Inline(_ref) {
|
|
|
41
41
|
paddingHorizontal: 0.5,
|
|
42
42
|
paddingVertical: 0,
|
|
43
43
|
placeholderColor: light ? 'light-5' : 'foregroundTertiary',
|
|
44
|
-
radius: designTokens.
|
|
44
|
+
radius: designTokens.input.borderRadius,
|
|
45
45
|
stroke: undefined
|
|
46
46
|
}, restProps));
|
|
47
47
|
}
|
|
@@ -295,7 +295,7 @@ var InputBox = /*#__PURE__*/function (_Component) {
|
|
|
295
295
|
alignment: StackView.CENTER,
|
|
296
296
|
shrink: 0,
|
|
297
297
|
minHeight: boxSize,
|
|
298
|
-
radius: designTokens.
|
|
298
|
+
radius: designTokens.input.borderRadius,
|
|
299
299
|
position: "relative",
|
|
300
300
|
cursor: "text",
|
|
301
301
|
outline: 0,
|
package/dist/esm/Radio/Radio.js
CHANGED
|
@@ -6,8 +6,6 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
6
6
|
|
|
7
7
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
8
8
|
|
|
9
|
-
/** @jsxRuntime classic */
|
|
10
|
-
|
|
11
9
|
/** @jsx jsx */
|
|
12
10
|
import { jsx } from '@emotion/react';
|
|
13
11
|
import * as React from 'react';
|
|
@@ -59,15 +57,15 @@ var stackViewPlugin = {
|
|
|
59
57
|
}
|
|
60
58
|
};
|
|
61
59
|
var defaultElement = 'div';
|
|
62
|
-
export function StackView(_ref2) {
|
|
60
|
+
export var StackView = function StackView(_ref2) {
|
|
63
61
|
var as = _ref2.as,
|
|
64
62
|
children = _ref2.children,
|
|
65
63
|
inline = _ref2.inline,
|
|
66
64
|
innerRef = _ref2.innerRef,
|
|
67
65
|
props = _objectWithoutPropertiesLoose(_ref2, ["as", "children", "inline", "innerRef"]);
|
|
68
66
|
|
|
69
|
-
var Element = as || defaultElement;
|
|
70
67
|
var variant = useVariant();
|
|
68
|
+
var Element = as || defaultElement;
|
|
71
69
|
var childrenToRender = Element === 'textarea' ? undefined : typeof props.spacing === 'object' ? joinChildren(children, props.spacing) : children;
|
|
72
70
|
return jsx(Element, _extends({
|
|
73
71
|
ref: innerRef
|
|
@@ -77,7 +75,7 @@ export function StackView(_ref2) {
|
|
|
77
75
|
plugin: stackViewPlugin,
|
|
78
76
|
variant: variant
|
|
79
77
|
}, props))), childrenToRender);
|
|
80
|
-
}
|
|
78
|
+
};
|
|
81
79
|
StackView.BASELINE = BASELINE;
|
|
82
80
|
StackView.CENTER = CENTER;
|
|
83
81
|
StackView.END = END;
|
package/dist/types/Box/Box.d.ts
CHANGED
|
@@ -1,38 +1,96 @@
|
|
|
1
|
-
/** @jsxRuntime classic */
|
|
2
1
|
/** @jsx jsx */
|
|
3
|
-
import { jsx } from '@emotion/react';
|
|
4
2
|
import * as React from 'react';
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
4
|
+
import { StyleProps } from '../index';
|
|
5
|
+
export declare type BoxProps<E extends React.ElementType = React.ElementType> = {
|
|
8
6
|
/**
|
|
9
7
|
* Render custom component or HTML element tag. (Defaults to a `<div>` element).
|
|
10
8
|
*/
|
|
11
|
-
as?:
|
|
9
|
+
as?: E;
|
|
12
10
|
/**
|
|
13
|
-
*
|
|
11
|
+
* The content of the box.
|
|
14
12
|
*/
|
|
15
|
-
|
|
13
|
+
children?: React.ReactNode;
|
|
16
14
|
/**
|
|
17
15
|
* If true, sets `display: inline-block`, otherwise it defaults to `display: block`
|
|
18
16
|
*/
|
|
19
17
|
inline?: boolean;
|
|
20
18
|
/**
|
|
21
|
-
*
|
|
19
|
+
* Gain access to the internal ref
|
|
22
20
|
*/
|
|
23
|
-
|
|
21
|
+
innerRef?: React.Ref<any>;
|
|
22
|
+
/**
|
|
23
|
+
* Describes props at different breakpoints. [Read about mediaQueries](/responsive).
|
|
24
|
+
*/
|
|
25
|
+
mediaQueries?: object;
|
|
24
26
|
/**
|
|
25
|
-
|
|
26
|
-
|
|
27
|
+
* Describes styles at various points in time. [Read about variants](/variants).
|
|
28
|
+
*/
|
|
27
29
|
variants?: object;
|
|
28
30
|
/**
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
31
|
+
* Controls display property. If `false` sets `display: none`, otherwise defaults to initial display value.
|
|
32
|
+
*/
|
|
33
|
+
visible?: boolean;
|
|
32
34
|
} & StyleProps;
|
|
33
|
-
declare type Props = React.RefAttributes<any> & React.HTMLAttributes<any> & React.ImgHTMLAttributes<any> & BoxProps & MediaQueries<BoxProps> & Variants<BoxProps>;
|
|
34
35
|
/**
|
|
35
36
|
* Box is the base component that everything builds from. It is responsible for processing all style props.
|
|
36
37
|
*/
|
|
37
|
-
export declare
|
|
38
|
-
|
|
38
|
+
export declare const Box: <E extends React.ElementType<any> = "div">({ as, inline, innerRef, ...props }: {
|
|
39
|
+
/**
|
|
40
|
+
* Render custom component or HTML element tag. (Defaults to a `<div>` element).
|
|
41
|
+
*/
|
|
42
|
+
as?: E;
|
|
43
|
+
/**
|
|
44
|
+
* The content of the box.
|
|
45
|
+
*/
|
|
46
|
+
children?: React.ReactNode;
|
|
47
|
+
/**
|
|
48
|
+
* If true, sets `display: inline-block`, otherwise it defaults to `display: block`
|
|
49
|
+
*/
|
|
50
|
+
inline?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Gain access to the internal ref
|
|
53
|
+
*/
|
|
54
|
+
innerRef?: React.Ref<any>;
|
|
55
|
+
/**
|
|
56
|
+
* Describes props at different breakpoints. [Read about mediaQueries](/responsive).
|
|
57
|
+
*/
|
|
58
|
+
mediaQueries?: object;
|
|
59
|
+
/**
|
|
60
|
+
* Describes styles at various points in time. [Read about variants](/variants).
|
|
61
|
+
*/
|
|
62
|
+
variants?: object;
|
|
63
|
+
/**
|
|
64
|
+
* Controls display property. If `false` sets `display: none`, otherwise defaults to initial display value.
|
|
65
|
+
*/
|
|
66
|
+
visible?: boolean;
|
|
67
|
+
} & Pick<React.CSSProperties, "clipPath" | "filter" | "mask" | "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" | "clipRule" | "columnCount" | "columnFill" | "columnGap" | "columnRule" | "columnRuleColor" | "columnRuleStyle" | "columnRuleWidth" | "columnSpan" | "columnWidth" | "columns" | "contain" | "content" | "counterIncrement" | "counterReset" | "cursor" | "direction" | "display" | "fillOpacity" | "fillRule" | "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" | "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<"outlineColor" | "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>>> & {
|
|
68
|
+
css?: any;
|
|
69
|
+
paddingHorizontal?: string | number;
|
|
70
|
+
paddingVertical?: string | number;
|
|
71
|
+
marginHorizontal?: string | number;
|
|
72
|
+
marginVertical?: string | number;
|
|
73
|
+
column?: import("csstype").Property.ColumnCount;
|
|
74
|
+
columnStart?: import("csstype").Property.ColumnCount;
|
|
75
|
+
columnEnd?: import("csstype").Property.ColumnCount;
|
|
76
|
+
row?: import("csstype").Property.ColumnCount;
|
|
77
|
+
rowStart?: import("csstype").Property.ColumnCount;
|
|
78
|
+
rowEnd?: import("csstype").Property.ColumnCount;
|
|
79
|
+
basis?: import("csstype").Property.Padding<string | number>;
|
|
80
|
+
grow?: import("csstype").Property.BorderImageSlice;
|
|
81
|
+
shrink?: import("csstype").Property.BorderImageSlice;
|
|
82
|
+
wrap?: string | boolean;
|
|
83
|
+
radius?: import("csstype").Property.Padding<string | number>;
|
|
84
|
+
radiusTop?: string | number;
|
|
85
|
+
radiusRight?: string | number;
|
|
86
|
+
radiusBottom?: string | number;
|
|
87
|
+
radiusLeft?: string | number;
|
|
88
|
+
strokeAlign?: "center" | "inside" | "outside";
|
|
89
|
+
strokeWeight?: number;
|
|
90
|
+
elevation?: number;
|
|
91
|
+
x?: string | number;
|
|
92
|
+
y?: string | number;
|
|
93
|
+
rotate?: number;
|
|
94
|
+
scale?: number;
|
|
95
|
+
uppercase?: boolean;
|
|
96
|
+
} & Pick<React.PropsWithoutRef<React.ComponentProps<E>>, Exclude<keyof React.PropsWithoutRef<React.ComponentProps<E>>, "clipPath" | "filter" | "mask" | "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" | "clipRule" | "columnCount" | "columnFill" | "columnGap" | "columnRule" | "columnRuleColor" | "columnRuleStyle" | "columnRuleWidth" | "columnSpan" | "columnWidth" | "columns" | "contain" | "content" | "counterIncrement" | "counterReset" | "cursor" | "direction" | "display" | "fillOpacity" | "fillRule" | "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" | "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" | "children" | "inline" | "innerRef" | "mediaQueries" | "variants" | "visible" | "css" | "paddingHorizontal" | "paddingVertical" | "marginHorizontal" | "marginVertical" | "column" | "columnStart" | "columnEnd" | "row" | "rowStart" | "rowEnd" | "basis" | "grow" | "shrink" | "wrap" | "radius" | "radiusTop" | "radiusRight" | "radiusBottom" | "radiusLeft" | "strokeAlign" | "strokeWeight" | "elevation" | "x" | "y" | "rotate" | "scale" | "uppercase">>) => jsx.JSX.Element;
|
|
@@ -99,14 +99,14 @@ export declare namespace Button {
|
|
|
99
99
|
onClose: () => void;
|
|
100
100
|
onOpen: () => void;
|
|
101
101
|
} & {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
innerRef?: any;
|
|
102
|
+
as?: React.ElementType<any>;
|
|
103
|
+
children?: React.ReactNode;
|
|
105
104
|
inline?: boolean;
|
|
106
|
-
|
|
107
|
-
variants?: object;
|
|
105
|
+
innerRef?: React.Ref<any>;
|
|
108
106
|
mediaQueries?: object;
|
|
109
|
-
|
|
107
|
+
variants?: object;
|
|
108
|
+
visible?: boolean;
|
|
109
|
+
} & Pick<React.CSSProperties, "clipPath" | "filter" | "mask" | "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" | "clipRule" | "columnCount" | "columnFill" | "columnGap" | "columnRule" | "columnRuleColor" | "columnRuleStyle" | "columnRuleWidth" | "columnSpan" | "columnWidth" | "columns" | "contain" | "content" | "counterIncrement" | "counterReset" | "cursor" | "direction" | "display" | "fillOpacity" | "fillRule" | "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" | "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<"outlineColor" | "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>>> & {
|
|
110
110
|
css?: any;
|
|
111
111
|
paddingHorizontal?: string | number;
|
|
112
112
|
paddingVertical?: string | number;
|
|
@@ -118,11 +118,11 @@ export declare namespace Button {
|
|
|
118
118
|
row?: import("csstype").Property.ColumnCount;
|
|
119
119
|
rowStart?: import("csstype").Property.ColumnCount;
|
|
120
120
|
rowEnd?: import("csstype").Property.ColumnCount;
|
|
121
|
-
basis?: import("csstype").Property.
|
|
121
|
+
basis?: import("csstype").Property.Padding<string | number>;
|
|
122
122
|
grow?: import("csstype").Property.BorderImageSlice;
|
|
123
123
|
shrink?: import("csstype").Property.BorderImageSlice;
|
|
124
124
|
wrap?: string | boolean;
|
|
125
|
-
radius?: import("csstype").Property.
|
|
125
|
+
radius?: import("csstype").Property.Padding<string | number>;
|
|
126
126
|
radiusTop?: string | number;
|
|
127
127
|
radiusRight?: string | number;
|
|
128
128
|
radiusBottom?: string | number;
|
|
@@ -135,6 +135,6 @@ export declare namespace Button {
|
|
|
135
135
|
rotate?: number;
|
|
136
136
|
scale?: number;
|
|
137
137
|
uppercase?: boolean;
|
|
138
|
-
}, "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" | "
|
|
138
|
+
}, "slot" | "style" | "title" | "clipPath" | "filter" | "mask" | "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" | "clipRule" | "columnCount" | "columnFill" | "columnGap" | "columnRule" | "columnRuleColor" | "columnRuleStyle" | "columnRuleWidth" | "columnSpan" | "columnWidth" | "columns" | "contain" | "content" | "counterIncrement" | "counterReset" | "cursor" | "direction" | "display" | "fillOpacity" | "fillRule" | "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" | "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" | "children" | "inline" | "innerRef" | "mediaQueries" | "variants" | "visible" | "css" | "paddingHorizontal" | "paddingVertical" | "marginHorizontal" | "marginVertical" | "column" | "columnStart" | "columnEnd" | "row" | "rowStart" | "rowEnd" | "basis" | "grow" | "shrink" | "wrap" | "radius" | "radiusTop" | "radiusRight" | "radiusBottom" | "radiusLeft" | "strokeAlign" | "strokeWeight" | "elevation" | "x" | "y" | "rotate" | "scale" | "uppercase" | "className" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "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" | "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" | "size" | "onOpen" | "onClose"> & React.RefAttributes<unknown>>;
|
|
139
139
|
}
|
|
140
140
|
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, "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" | "
|
|
29
|
+
declare const ButtonInput: React.ForwardRefExoticComponent<Pick<Props, "slot" | "style" | "title" | "clipPath" | "filter" | "mask" | "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" | "clipRule" | "columnCount" | "columnFill" | "columnGap" | "columnRule" | "columnRuleColor" | "columnRuleStyle" | "columnRuleWidth" | "columnSpan" | "columnWidth" | "columns" | "contain" | "content" | "counterIncrement" | "counterReset" | "cursor" | "direction" | "display" | "fillOpacity" | "fillRule" | "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" | "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" | "children" | "inline" | "innerRef" | "mediaQueries" | "variants" | "visible" | "css" | "paddingHorizontal" | "paddingVertical" | "marginHorizontal" | "marginVertical" | "column" | "columnStart" | "columnEnd" | "row" | "rowStart" | "rowEnd" | "basis" | "grow" | "shrink" | "wrap" | "radius" | "radiusTop" | "radiusRight" | "radiusBottom" | "radiusLeft" | "strokeAlign" | "strokeWeight" | "elevation" | "x" | "y" | "rotate" | "scale" | "uppercase" | "className" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "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" | "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" | "size" | "onOpen" | "onClose"> & React.RefAttributes<unknown>>;
|
|
30
30
|
export default ButtonInput;
|
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
/** @jsxRuntime classic */
|
|
2
1
|
/** @jsx jsx */
|
|
3
2
|
import { jsx } from '@emotion/react';
|
|
4
3
|
import * as React from 'react';
|
|
5
4
|
import { BoxProps } from '../Box';
|
|
6
|
-
|
|
7
|
-
export declare type StackViewProps = {
|
|
8
|
-
children?: any;
|
|
5
|
+
export declare type StackViewProps<E extends React.ElementType = React.ElementType> = {
|
|
9
6
|
/** Render custom component or HTML element tag. (Defaults to a `<div>` element). */
|
|
10
|
-
as?:
|
|
7
|
+
as?: E;
|
|
11
8
|
/** The axis along which children are laid out. */
|
|
12
9
|
axis?: 'horizontal' | 'vertical';
|
|
13
10
|
/** The alignment of children perpendicular to the stack view’s main axis. */
|
|
14
11
|
alignment?: 'start' | 'center' | 'end' | 'stretch' | 'baseline';
|
|
12
|
+
/** The content of the StackView. */
|
|
13
|
+
children?: React.ReactNode;
|
|
15
14
|
/** The distribution of children along the main axis. */
|
|
16
15
|
distribution?: 'start' | 'center' | 'end' | 'fill' | 'space-between' | 'space-evenly';
|
|
17
16
|
/** If true, sets `display: inline-flex`, otherwise it defaults to `display: flex` */
|
|
18
17
|
inline?: boolean;
|
|
19
18
|
/** Gain access to the internal ref */
|
|
20
|
-
innerRef?: any
|
|
19
|
+
innerRef?: React.Ref<any>;
|
|
21
20
|
/** The amount of space or element that is inserted between each child. */
|
|
22
21
|
spacing?: number | string | React.ReactNode;
|
|
23
22
|
/** Describes styles at various points in time. [Read about variants](/variants). */
|
|
@@ -25,18 +24,74 @@ export declare type StackViewProps = {
|
|
|
25
24
|
/** Describes props at different breakpoints. [Read about mediaQueries](/responsive). */
|
|
26
25
|
mediaQueries?: object;
|
|
27
26
|
} & BoxProps;
|
|
28
|
-
declare
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
27
|
+
export declare const StackView: {
|
|
28
|
+
<E extends React.ElementType<any> = "div">({ as, children, inline, innerRef, ...props }: {
|
|
29
|
+
/** Render custom component or HTML element tag. (Defaults to a `<div>` element). */
|
|
30
|
+
as?: E;
|
|
31
|
+
/** The axis along which children are laid out. */
|
|
32
|
+
axis?: 'horizontal' | 'vertical';
|
|
33
|
+
/** The alignment of children perpendicular to the stack view’s main axis. */
|
|
34
|
+
alignment?: 'start' | 'center' | 'end' | 'stretch' | 'baseline';
|
|
35
|
+
/** The content of the StackView. */
|
|
36
|
+
children?: React.ReactNode;
|
|
37
|
+
/** The distribution of children along the main axis. */
|
|
38
|
+
distribution?: 'start' | 'center' | 'end' | 'fill' | 'space-between' | 'space-evenly';
|
|
39
|
+
/** If true, sets `display: inline-flex`, otherwise it defaults to `display: flex` */
|
|
40
|
+
inline?: boolean;
|
|
41
|
+
/** Gain access to the internal ref */
|
|
42
|
+
innerRef?: React.Ref<any>;
|
|
43
|
+
/** The amount of space or element that is inserted between each child. */
|
|
44
|
+
spacing?: number | string | React.ReactNode;
|
|
45
|
+
/** Describes styles at various points in time. [Read about variants](/variants). */
|
|
46
|
+
variants?: object;
|
|
47
|
+
/** Describes props at different breakpoints. [Read about mediaQueries](/responsive). */
|
|
48
|
+
mediaQueries?: object;
|
|
49
|
+
} & {
|
|
50
|
+
as?: React.ElementType<any>;
|
|
51
|
+
children?: React.ReactNode;
|
|
52
|
+
inline?: boolean;
|
|
53
|
+
innerRef?: React.Ref<any>;
|
|
54
|
+
mediaQueries?: object;
|
|
55
|
+
variants?: object;
|
|
56
|
+
visible?: boolean;
|
|
57
|
+
} & Pick<React.CSSProperties, "clipPath" | "filter" | "mask" | "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" | "clipRule" | "columnCount" | "columnFill" | "columnGap" | "columnRule" | "columnRuleColor" | "columnRuleStyle" | "columnRuleWidth" | "columnSpan" | "columnWidth" | "columns" | "contain" | "content" | "counterIncrement" | "counterReset" | "cursor" | "direction" | "display" | "fillOpacity" | "fillRule" | "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" | "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<"outlineColor" | "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>>> & {
|
|
58
|
+
css?: any;
|
|
59
|
+
paddingHorizontal?: string | number;
|
|
60
|
+
paddingVertical?: string | number;
|
|
61
|
+
marginHorizontal?: string | number;
|
|
62
|
+
marginVertical?: string | number;
|
|
63
|
+
column?: import("csstype").Property.ColumnCount;
|
|
64
|
+
columnStart?: import("csstype").Property.ColumnCount;
|
|
65
|
+
columnEnd?: import("csstype").Property.ColumnCount;
|
|
66
|
+
row?: import("csstype").Property.ColumnCount;
|
|
67
|
+
rowStart?: import("csstype").Property.ColumnCount;
|
|
68
|
+
rowEnd?: import("csstype").Property.ColumnCount;
|
|
69
|
+
basis?: import("csstype").Property.Padding<string | number>;
|
|
70
|
+
grow?: import("csstype").Property.BorderImageSlice;
|
|
71
|
+
shrink?: import("csstype").Property.BorderImageSlice;
|
|
72
|
+
wrap?: string | boolean;
|
|
73
|
+
radius?: import("csstype").Property.Padding<string | number>;
|
|
74
|
+
radiusTop?: string | number;
|
|
75
|
+
radiusRight?: string | number;
|
|
76
|
+
radiusBottom?: string | number;
|
|
77
|
+
radiusLeft?: string | number;
|
|
78
|
+
strokeAlign?: "center" | "inside" | "outside";
|
|
79
|
+
strokeWeight?: number;
|
|
80
|
+
elevation?: number;
|
|
81
|
+
x?: string | number;
|
|
82
|
+
y?: string | number;
|
|
83
|
+
rotate?: number;
|
|
84
|
+
scale?: number;
|
|
85
|
+
uppercase?: boolean;
|
|
86
|
+
} & Pick<React.PropsWithoutRef<React.ComponentProps<E>>, Exclude<keyof React.PropsWithoutRef<React.ComponentProps<E>>, "clipPath" | "filter" | "mask" | "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" | "clipRule" | "columnCount" | "columnFill" | "columnGap" | "columnRule" | "columnRuleColor" | "columnRuleStyle" | "columnRuleWidth" | "columnSpan" | "columnWidth" | "columns" | "contain" | "content" | "counterIncrement" | "counterReset" | "cursor" | "direction" | "display" | "fillOpacity" | "fillRule" | "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" | "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" | "children" | "inline" | "innerRef" | "mediaQueries" | "variants" | "visible" | "css" | "paddingHorizontal" | "paddingVertical" | "marginHorizontal" | "marginVertical" | "column" | "columnStart" | "columnEnd" | "row" | "rowStart" | "rowEnd" | "basis" | "grow" | "shrink" | "wrap" | "radius" | "radiusTop" | "radiusRight" | "radiusBottom" | "radiusLeft" | "strokeAlign" | "strokeWeight" | "elevation" | "x" | "y" | "rotate" | "scale" | "uppercase" | "alignment" | "axis" | "distribution" | "spacing">>): jsx.JSX.Element;
|
|
87
|
+
BASELINE: string;
|
|
88
|
+
CENTER: string;
|
|
89
|
+
END: string;
|
|
90
|
+
FILL: string;
|
|
91
|
+
HORIZONTAL: string;
|
|
92
|
+
SPACE_BETWEEN: string;
|
|
93
|
+
SPACE_EVENLY: string;
|
|
94
|
+
START: string;
|
|
95
|
+
STRETCH: string;
|
|
96
|
+
VERTICAL: string;
|
|
97
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@planningcenter/tapestry-react",
|
|
3
|
-
"version": "2.10.0-rc.
|
|
3
|
+
"version": "2.10.0-rc.5",
|
|
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",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"typescript": "^4.1.5"
|
|
90
90
|
},
|
|
91
91
|
"dependencies": {
|
|
92
|
-
"@planningcenter/icons": "^
|
|
92
|
+
"@planningcenter/icons": "^15.2.0",
|
|
93
93
|
"@planningcenter/react-beautiful-dnd": "^13.4.0",
|
|
94
94
|
"@popmotion/popcorn": "^0.4.4",
|
|
95
95
|
"@popperjs/core": "^2.11.6",
|
package/src/Box/Box.tsx
CHANGED
|
@@ -1,23 +1,21 @@
|
|
|
1
|
-
/** @jsxRuntime classic */
|
|
2
1
|
/** @jsx jsx */
|
|
3
|
-
import { jsx } from '@emotion/react'
|
|
4
2
|
import * as React from 'react'
|
|
3
|
+
import { jsx } from '@emotion/react'
|
|
5
4
|
|
|
6
5
|
import { StyleProps, MediaQueries, Variants } from '../index'
|
|
7
6
|
import splitStyles from '../system/split-styles'
|
|
8
7
|
import { useVariant } from '../VariantProvider'
|
|
9
8
|
|
|
10
|
-
export type BoxProps = {
|
|
11
|
-
children?: any
|
|
9
|
+
export type BoxProps<E extends React.ElementType = React.ElementType> = {
|
|
12
10
|
/**
|
|
13
11
|
* Render custom component or HTML element tag. (Defaults to a `<div>` element).
|
|
14
12
|
*/
|
|
15
|
-
as?:
|
|
13
|
+
as?: E
|
|
16
14
|
|
|
17
15
|
/**
|
|
18
|
-
*
|
|
16
|
+
* The content of the box.
|
|
19
17
|
*/
|
|
20
|
-
|
|
18
|
+
children?: React.ReactNode
|
|
21
19
|
|
|
22
20
|
/**
|
|
23
21
|
* If true, sets `display: inline-block`, otherwise it defaults to `display: block`
|
|
@@ -25,36 +23,42 @@ export type BoxProps = {
|
|
|
25
23
|
inline?: boolean
|
|
26
24
|
|
|
27
25
|
/**
|
|
28
|
-
*
|
|
26
|
+
* Gain access to the internal ref
|
|
29
27
|
*/
|
|
30
|
-
|
|
28
|
+
innerRef?: React.Ref<any>
|
|
31
29
|
|
|
32
|
-
/**
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
30
|
+
/**
|
|
31
|
+
* Describes props at different breakpoints. [Read about mediaQueries](/responsive).
|
|
32
|
+
*/
|
|
33
|
+
mediaQueries?: object
|
|
36
34
|
|
|
37
|
-
|
|
38
|
-
* Describes
|
|
35
|
+
/**
|
|
36
|
+
* Describes styles at various points in time. [Read about variants](/variants).
|
|
39
37
|
*/
|
|
40
|
-
|
|
41
|
-
} & StyleProps
|
|
38
|
+
variants?: object
|
|
42
39
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
Variants<BoxProps>
|
|
40
|
+
/**
|
|
41
|
+
* Controls display property. If `false` sets `display: none`, otherwise defaults to initial display value.
|
|
42
|
+
*/
|
|
43
|
+
visible?: boolean
|
|
44
|
+
} & StyleProps
|
|
49
45
|
|
|
50
46
|
const defaultElement = 'div'
|
|
51
47
|
|
|
52
48
|
/**
|
|
53
49
|
* Box is the base component that everything builds from. It is responsible for processing all style props.
|
|
54
50
|
*/
|
|
55
|
-
export
|
|
56
|
-
|
|
51
|
+
export const Box = <E extends React.ElementType = 'div'>({
|
|
52
|
+
as,
|
|
53
|
+
inline,
|
|
54
|
+
innerRef,
|
|
55
|
+
...props
|
|
56
|
+
}: BoxProps<E> &
|
|
57
|
+
Omit<React.ComponentPropsWithoutRef<E>, keyof BoxProps<E>>) => {
|
|
57
58
|
const variant = useVariant()
|
|
59
|
+
|
|
60
|
+
const Element: React.ElementType = as || defaultElement
|
|
61
|
+
|
|
58
62
|
return (
|
|
59
63
|
<Element
|
|
60
64
|
ref={innerRef}
|
package/src/Button/Button.tsx
CHANGED
package/src/Input/Inline.js
CHANGED
package/src/Input/InputBox.js
CHANGED
|
@@ -390,7 +390,7 @@ class InputBox extends Component<InputBoxProps> {
|
|
|
390
390
|
alignment={StackView.CENTER}
|
|
391
391
|
shrink={0}
|
|
392
392
|
minHeight={boxSize}
|
|
393
|
-
radius={designTokens.
|
|
393
|
+
radius={designTokens.input.borderRadius}
|
|
394
394
|
position="relative"
|
|
395
395
|
cursor="text"
|
|
396
396
|
outline={0}
|
package/src/Radio/Radio.tsx
CHANGED
|
@@ -118,7 +118,7 @@ const Radio = ({
|
|
|
118
118
|
// Type '{ innerRef: MutableRefObject<undefined>; as: string; type: string; id: string; name: string; checked: boolean; value: any; disabled: boolean; onChange: (event: ChangeEvent<HTMLInputElement>) => void; onFocus: (event: FocusEvent<...>) => void; onBlur: (event: FocusEvent<...>) => void; position: "absolute"; }' is not assignable to type 'IntrinsicAttributes & RefAttributes<any> & HTMLAttributes<any> & ImgHTMLAttributes<any> & { children?: any; ... 5 more ...; mediaQueries?: object; } & ... 4 more ... & Variants<...>'.
|
|
119
119
|
// @ts-ignore
|
|
120
120
|
type="radio"
|
|
121
|
-
id={
|
|
121
|
+
id={String(id)}
|
|
122
122
|
name={name}
|
|
123
123
|
checked={checked}
|
|
124
124
|
value={value}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/** @jsxRuntime classic */
|
|
2
1
|
/** @jsx jsx */
|
|
3
2
|
import { jsx } from '@emotion/react'
|
|
4
3
|
import * as React from 'react'
|
|
@@ -42,11 +41,9 @@ const stackViewPlugin = {
|
|
|
42
41
|
},
|
|
43
42
|
}
|
|
44
43
|
|
|
45
|
-
export type StackViewProps = {
|
|
46
|
-
children?: any
|
|
47
|
-
|
|
44
|
+
export type StackViewProps<E extends React.ElementType = React.ElementType> = {
|
|
48
45
|
/** Render custom component or HTML element tag. (Defaults to a `<div>` element). */
|
|
49
|
-
as?:
|
|
46
|
+
as?: E
|
|
50
47
|
|
|
51
48
|
/** The axis along which children are laid out. */
|
|
52
49
|
axis?: 'horizontal' | 'vertical'
|
|
@@ -54,6 +51,9 @@ export type StackViewProps = {
|
|
|
54
51
|
/** The alignment of children perpendicular to the stack view’s main axis. */
|
|
55
52
|
alignment?: 'start' | 'center' | 'end' | 'stretch' | 'baseline'
|
|
56
53
|
|
|
54
|
+
/** The content of the StackView. */
|
|
55
|
+
children?: React.ReactNode
|
|
56
|
+
|
|
57
57
|
/** The distribution of children along the main axis. */
|
|
58
58
|
distribution?:
|
|
59
59
|
| 'start'
|
|
@@ -67,7 +67,7 @@ export type StackViewProps = {
|
|
|
67
67
|
inline?: boolean
|
|
68
68
|
|
|
69
69
|
/** Gain access to the internal ref */
|
|
70
|
-
innerRef?: any
|
|
70
|
+
innerRef?: React.Ref<any>
|
|
71
71
|
|
|
72
72
|
/** The amount of space or element that is inserted between each child. */
|
|
73
73
|
spacing?: number | string | React.ReactNode
|
|
@@ -79,17 +79,19 @@ export type StackViewProps = {
|
|
|
79
79
|
mediaQueries?: object
|
|
80
80
|
} & BoxProps
|
|
81
81
|
|
|
82
|
-
type Props = React.RefAttributes<any> &
|
|
83
|
-
React.HTMLAttributes<any> &
|
|
84
|
-
StackViewProps &
|
|
85
|
-
MediaQueries<StackViewProps> &
|
|
86
|
-
Variants<StackViewProps>
|
|
87
|
-
|
|
88
82
|
const defaultElement = 'div'
|
|
89
83
|
|
|
90
|
-
export
|
|
91
|
-
|
|
84
|
+
export const StackView = <E extends React.ElementType = 'div'>({
|
|
85
|
+
as,
|
|
86
|
+
children,
|
|
87
|
+
inline,
|
|
88
|
+
innerRef,
|
|
89
|
+
...props
|
|
90
|
+
}: StackViewProps<E> &
|
|
91
|
+
Omit<React.ComponentPropsWithoutRef<E>, keyof StackViewProps<E>>) => {
|
|
92
92
|
const variant = useVariant()
|
|
93
|
+
const Element: React.ElementType = as || defaultElement
|
|
94
|
+
|
|
93
95
|
const childrenToRender =
|
|
94
96
|
Element === 'textarea'
|
|
95
97
|
? undefined
|