@commercetools-uikit/radio-input 14.0.2 → 14.0.6
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.
|
@@ -654,9 +654,9 @@ Group.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
654
654
|
isReadOnly: _pt__default["default"].bool,
|
|
655
655
|
hasError: _pt__default["default"].bool,
|
|
656
656
|
hasWarning: _pt__default["default"].bool,
|
|
657
|
-
horizontalConstraint: _pt__default["default"].oneOf([7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 'scale', 'auto']),
|
|
658
|
-
direction: _pt__default["default"].
|
|
659
|
-
directionProps: _pt__default["default"].
|
|
657
|
+
horizontalConstraint: _pt__default["default"].oneOf([7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 'scale', 'auto']).isRequired,
|
|
658
|
+
direction: _pt__default["default"].oneOf(['stack', 'inline']).isRequired,
|
|
659
|
+
directionProps: _pt__default["default"].shape({}).isRequired,
|
|
660
660
|
children: _pt__default["default"].node.isRequired,
|
|
661
661
|
'aria-invalid': _pt__default["default"].bool,
|
|
662
662
|
'aria-errormessage': _pt__default["default"].string
|
|
@@ -666,7 +666,7 @@ Group.defaultProps = defaultProps;
|
|
|
666
666
|
var Group$1 = Group;
|
|
667
667
|
|
|
668
668
|
// NOTE: This string will be replaced on build time with the package version.
|
|
669
|
-
var version = "14.0.
|
|
669
|
+
var version = "14.0.6";
|
|
670
670
|
|
|
671
671
|
var RadioInput = {
|
|
672
672
|
Group: Group$1,
|
|
@@ -631,9 +631,9 @@ Group.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
631
631
|
isReadOnly: _pt.bool,
|
|
632
632
|
hasError: _pt.bool,
|
|
633
633
|
hasWarning: _pt.bool,
|
|
634
|
-
horizontalConstraint: _pt.oneOf([7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 'scale', 'auto']),
|
|
635
|
-
direction: _pt.
|
|
636
|
-
directionProps: _pt.
|
|
634
|
+
horizontalConstraint: _pt.oneOf([7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 'scale', 'auto']).isRequired,
|
|
635
|
+
direction: _pt.oneOf(['stack', 'inline']).isRequired,
|
|
636
|
+
directionProps: _pt.shape({}).isRequired,
|
|
637
637
|
children: _pt.node.isRequired,
|
|
638
638
|
'aria-invalid': _pt.bool,
|
|
639
639
|
'aria-errormessage': _pt.string
|
|
@@ -643,7 +643,7 @@ Group.defaultProps = defaultProps;
|
|
|
643
643
|
var Group$1 = Group;
|
|
644
644
|
|
|
645
645
|
// NOTE: This string will be replaced on build time with the package version.
|
|
646
|
-
var version = "14.0.
|
|
646
|
+
var version = "14.0.6";
|
|
647
647
|
|
|
648
648
|
var RadioInput = {
|
|
649
649
|
Group: Group$1,
|
|
@@ -1,17 +1,5 @@
|
|
|
1
1
|
import { type ChangeEventHandler, type FocusEventHandler, type ReactNode } from 'react';
|
|
2
|
-
import { type
|
|
3
|
-
declare const directionWrapper: {
|
|
4
|
-
stack: {
|
|
5
|
-
(props: TStackProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
|
-
displayName: string;
|
|
7
|
-
defaultProps: Pick<TStackProps, "alignItems" | "scale">;
|
|
8
|
-
};
|
|
9
|
-
inline: {
|
|
10
|
-
(props: import("@commercetools-uikit/spacings-inline/src/inline").TProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
11
|
-
defaultProps: Pick<import("@commercetools-uikit/spacings-inline/src/inline").TProps, "alignItems" | "justifyContent" | "scale">;
|
|
12
|
-
displayName: string;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
2
|
+
import { type TInlineProps } from '@commercetools-uikit/spacings-inline';
|
|
15
3
|
export declare type TGroupProps = {
|
|
16
4
|
id?: string;
|
|
17
5
|
name?: string;
|
|
@@ -23,9 +11,13 @@ export declare type TGroupProps = {
|
|
|
23
11
|
isReadOnly?: boolean;
|
|
24
12
|
hasError?: boolean;
|
|
25
13
|
hasWarning?: boolean;
|
|
26
|
-
horizontalConstraint
|
|
27
|
-
direction
|
|
28
|
-
directionProps
|
|
14
|
+
horizontalConstraint: 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 'scale' | 'auto';
|
|
15
|
+
direction: 'stack' | 'inline';
|
|
16
|
+
directionProps: {
|
|
17
|
+
scale?: TInlineProps['scale'];
|
|
18
|
+
alignItems?: TInlineProps['alignItems'];
|
|
19
|
+
justifyContent?: TInlineProps['justifyContent'];
|
|
20
|
+
};
|
|
29
21
|
children: ReactNode;
|
|
30
22
|
'aria-invalid'?: boolean;
|
|
31
23
|
'aria-errormessage'?: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/radio-input",
|
|
3
3
|
"description": "A RadioInput represents a group of options where only one option can be selected at a time.",
|
|
4
|
-
"version": "14.0.
|
|
4
|
+
"version": "14.0.6",
|
|
5
5
|
"bugs": "https://github.com/commercetools/ui-kit/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"@commercetools-uikit/constraints": "14.0.1",
|
|
28
28
|
"@commercetools-uikit/design-system": "14.0.0",
|
|
29
29
|
"@commercetools-uikit/icons": "14.0.1",
|
|
30
|
-
"@commercetools-uikit/input-utils": "14.0.
|
|
31
|
-
"@commercetools-uikit/spacings-inline": "14.0.
|
|
30
|
+
"@commercetools-uikit/input-utils": "14.0.6",
|
|
31
|
+
"@commercetools-uikit/spacings-inline": "14.0.6",
|
|
32
32
|
"@commercetools-uikit/spacings-inset": "14.0.1",
|
|
33
|
-
"@commercetools-uikit/spacings-stack": "14.0.
|
|
33
|
+
"@commercetools-uikit/spacings-stack": "14.0.6",
|
|
34
34
|
"@commercetools-uikit/utils": "14.0.1",
|
|
35
35
|
"@emotion/react": "^11.4.0",
|
|
36
36
|
"@emotion/styled": "^11.3.0",
|