@ornikar/kitt-universal 13.3.2 → 13.4.1
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/babel-plugin-csf-to-jest.js +41 -20
- package/dist/definitions/forms/DatePicker/components/InputPart.d.ts +1 -0
- package/dist/definitions/forms/DatePicker/components/InputPart.d.ts.map +1 -1
- package/dist/definitions/forms/DatePicker/components/KeyboardDatePicker.d.ts.map +1 -1
- package/dist/definitions/forms/Label/Label.d.ts +2 -1
- package/dist/definitions/forms/Label/Label.d.ts.map +1 -1
- package/dist/index-browser-all.es.android.js +18 -9
- package/dist/index-browser-all.es.android.js.map +1 -1
- package/dist/index-browser-all.es.ios.js +18 -9
- package/dist/index-browser-all.es.ios.js.map +1 -1
- package/dist/index-browser-all.es.js +18 -9
- package/dist/index-browser-all.es.js.map +1 -1
- package/dist/index-browser-all.es.web.js +16 -8
- package/dist/index-browser-all.es.web.js.map +1 -1
- package/dist/index-node-14.17.cjs.js +11 -2
- package/dist/index-node-14.17.cjs.js.map +1 -1
- package/dist/index-node-14.17.cjs.web.js +9 -1
- package/dist/index-node-14.17.cjs.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +6 -5
|
@@ -4264,6 +4264,7 @@ function getCurrentInternalForcedState$1({
|
|
|
4264
4264
|
return 'default';
|
|
4265
4265
|
}
|
|
4266
4266
|
const InputPart = /*#__PURE__*/React.forwardRef(({
|
|
4267
|
+
id,
|
|
4267
4268
|
value,
|
|
4268
4269
|
placeholder,
|
|
4269
4270
|
disabled,
|
|
@@ -4277,6 +4278,7 @@ const InputPart = /*#__PURE__*/React.forwardRef(({
|
|
|
4277
4278
|
}, ref) => {
|
|
4278
4279
|
return /*#__PURE__*/jsxRuntime.jsx(InputText, {
|
|
4279
4280
|
ref: ref,
|
|
4281
|
+
id: id,
|
|
4280
4282
|
internalForceState: getCurrentInternalForcedState$1({
|
|
4281
4283
|
isDisabled: disabled,
|
|
4282
4284
|
isHoveredInternal,
|
|
@@ -4309,9 +4311,9 @@ function PartContainer({
|
|
|
4309
4311
|
}
|
|
4310
4312
|
|
|
4311
4313
|
const KeyboardDatePicker = /*#__PURE__*/React.forwardRef(({
|
|
4314
|
+
id,
|
|
4312
4315
|
value,
|
|
4313
4316
|
testID,
|
|
4314
|
-
id,
|
|
4315
4317
|
stretch,
|
|
4316
4318
|
placeholder,
|
|
4317
4319
|
minDate,
|
|
@@ -4377,6 +4379,7 @@ const KeyboardDatePicker = /*#__PURE__*/React.forwardRef(({
|
|
|
4377
4379
|
width: "kitt.forms.datePicker.day.minWidth",
|
|
4378
4380
|
children: /*#__PURE__*/jsxRuntime.jsx(InputPart, {
|
|
4379
4381
|
ref: ref,
|
|
4382
|
+
id: id ? `${id}-day` : undefined,
|
|
4380
4383
|
...sharedInputPartProps,
|
|
4381
4384
|
placeholder: placeholder?.day,
|
|
4382
4385
|
value: state.displayedDay,
|
|
@@ -4404,6 +4407,7 @@ const KeyboardDatePicker = /*#__PURE__*/React.forwardRef(({
|
|
|
4404
4407
|
width: "kitt.forms.datePicker.month.minWidth",
|
|
4405
4408
|
children: /*#__PURE__*/jsxRuntime.jsx(InputPart, {
|
|
4406
4409
|
ref: monthRef,
|
|
4410
|
+
id: id ? `${id}-month` : undefined,
|
|
4407
4411
|
...sharedInputPartProps,
|
|
4408
4412
|
placeholder: placeholder?.month,
|
|
4409
4413
|
value: state.displayedMonth,
|
|
@@ -4431,6 +4435,7 @@ const KeyboardDatePicker = /*#__PURE__*/React.forwardRef(({
|
|
|
4431
4435
|
width: "kitt.forms.datePicker.year.minWidth",
|
|
4432
4436
|
children: /*#__PURE__*/jsxRuntime.jsx(InputPart, {
|
|
4433
4437
|
ref: yearRef,
|
|
4438
|
+
id: id ? `${id}-year` : undefined,
|
|
4434
4439
|
...sharedInputPartProps,
|
|
4435
4440
|
placeholder: placeholder?.year,
|
|
4436
4441
|
value: state.displayedYear,
|
|
@@ -4988,12 +4993,16 @@ function InputTag({
|
|
|
4988
4993
|
}
|
|
4989
4994
|
|
|
4990
4995
|
function Label({
|
|
4996
|
+
id,
|
|
4991
4997
|
htmlFor,
|
|
4992
4998
|
children
|
|
4993
4999
|
}) {
|
|
5000
|
+
const isWeb = reactNative.Platform.OS === 'web';
|
|
4994
5001
|
return /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
4995
5002
|
base: "body",
|
|
4996
|
-
|
|
5003
|
+
nativeID: isWeb ? undefined : id,
|
|
5004
|
+
children: isWeb ? /*#__PURE__*/jsxRuntime.jsx("label", {
|
|
5005
|
+
id: id,
|
|
4997
5006
|
htmlFor: htmlFor,
|
|
4998
5007
|
children: children
|
|
4999
5008
|
}) : children
|