@uncinc/uncinc-react-kitchen-sink 2.23.0 → 2.23.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -19,7 +19,8 @@ export var Checkbox = function Checkbox(props) {
|
|
|
19
19
|
className = props.className,
|
|
20
20
|
wrapperClassName = props.wrapperClassName,
|
|
21
21
|
disabled = props.disabled,
|
|
22
|
-
id = props.id
|
|
22
|
+
id = props.id,
|
|
23
|
+
descriptionAboveInput = props.descriptionAboveInput;
|
|
23
24
|
var _useExtendedFormikCon = useExtendedFormikContext(),
|
|
24
25
|
values = _useExtendedFormikCon.values,
|
|
25
26
|
errors = _useExtendedFormikCon.errors,
|
|
@@ -49,7 +50,8 @@ export var Checkbox = function Checkbox(props) {
|
|
|
49
50
|
error: error,
|
|
50
51
|
errorId: errorId,
|
|
51
52
|
descriptionId: descriptionId,
|
|
52
|
-
displayRequiredIndicator: displayRequiredIndicator
|
|
53
|
+
displayRequiredIndicator: displayRequiredIndicator,
|
|
54
|
+
descriptionAboveInput: descriptionAboveInput
|
|
53
55
|
}, /*#__PURE__*/React.createElement(Field, {
|
|
54
56
|
required: required,
|
|
55
57
|
name: fieldName,
|
|
@@ -125,7 +125,8 @@ var Checkboxes = function Checkboxes(props) {
|
|
|
125
125
|
otherLabel = props.otherLabel,
|
|
126
126
|
otherPlaceholder = props.otherPlaceholder,
|
|
127
127
|
onChange = props.onChange,
|
|
128
|
-
includeFieldSet = props.includeFieldSet
|
|
128
|
+
includeFieldSet = props.includeFieldSet,
|
|
129
|
+
descriptionAboveInput = props.descriptionAboveInput;
|
|
129
130
|
var _useExtendedFormikCon = useExtendedFormikContext(),
|
|
130
131
|
errors = _useExtendedFormikCon.errors,
|
|
131
132
|
touched = _useExtendedFormikCon.touched,
|
|
@@ -156,7 +157,8 @@ var Checkboxes = function Checkboxes(props) {
|
|
|
156
157
|
isTouched: isTouched,
|
|
157
158
|
descriptionId: descriptionId,
|
|
158
159
|
displayRequiredIndicator: displayRequiredIndicator,
|
|
159
|
-
includeFieldSet: includeFieldSet
|
|
160
|
+
includeFieldSet: includeFieldSet,
|
|
161
|
+
descriptionAboveInput: descriptionAboveInput
|
|
160
162
|
}, Object.keys(options).map(function (item) {
|
|
161
163
|
var label = _typeof(options[item]) === 'object' ? options[item].label : options[item];
|
|
162
164
|
var value = _typeof(options[item]) === 'object' ? options[item].value : item;
|
|
@@ -25,8 +25,6 @@ var LottieAnimation = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
25
25
|
var id = props.id,
|
|
26
26
|
className = props.className,
|
|
27
27
|
ariaLabel = props.ariaLabel,
|
|
28
|
-
_props$ariaHidden = props.ariaHidden,
|
|
29
|
-
ariaHidden = _props$ariaHidden === void 0 ? false : _props$ariaHidden,
|
|
30
28
|
data = props.data,
|
|
31
29
|
path = props.path,
|
|
32
30
|
_props$renderer = props.renderer,
|
|
@@ -186,18 +184,18 @@ var LottieAnimation = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
186
184
|
}, [loadAnimation, lottieAnimation, onDestroy]);
|
|
187
185
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
188
186
|
className: lottieClasses,
|
|
189
|
-
id: "lottie--".concat(lottieId)
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
187
|
+
id: "lottie--".concat(lottieId)
|
|
188
|
+
}, ariaLabel && {
|
|
189
|
+
'aria-label': ariaLabel
|
|
190
|
+
}, !ariaLabel && !pauseOnClick && !activateOnHover && {
|
|
191
|
+
role: 'presentation'
|
|
192
|
+
}, (pauseOnClick || activateOnHover) && {
|
|
194
193
|
role: 'button',
|
|
195
194
|
tabIndex: 0,
|
|
196
195
|
onMouseEnter: onMouseEnter,
|
|
197
196
|
onMouseLeave: onMouseLeave,
|
|
198
|
-
ariaLabel: ariaLabel,
|
|
199
197
|
onClick: onClick,
|
|
200
198
|
onKeyDown: onKeyDown
|
|
201
|
-
}
|
|
199
|
+
}));
|
|
202
200
|
});
|
|
203
201
|
export default LottieAnimation;
|
|
@@ -11,8 +11,7 @@ export interface LottieConfig<T extends RendererType = 'svg'> extends Omit<Anima
|
|
|
11
11
|
export interface LottieProps extends Omit<Partial<LottieConfig>, 'animationData' | 'autoplay'> {
|
|
12
12
|
id?: string;
|
|
13
13
|
className?: string;
|
|
14
|
-
ariaLabel
|
|
15
|
-
ariaHidden?: boolean;
|
|
14
|
+
ariaLabel?: string;
|
|
16
15
|
data?: unknown;
|
|
17
16
|
autoPlay?: AnimationConfig['autoplay'];
|
|
18
17
|
delay?: number;
|