@draftbit/core 48.4.12-8fc2e1.2 → 48.4.12-ec076f.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.
- package/lib/commonjs/components/Picker/NativePicker.js +1 -1
- package/lib/commonjs/components/Picker/PickerInputContainer.js +1 -1
- package/lib/commonjs/components/Picker/dropdown/DropDownPicker.js +1 -1
- package/lib/commonjs/components/TextField.js +1 -1
- package/lib/typescript/src/components/Picker/NativePicker.d.ts +4 -2
- package/lib/typescript/src/components/Picker/NativePicker.js +24 -21
- package/lib/typescript/src/components/Picker/NativePicker.js.map +1 -1
- package/lib/typescript/src/components/Picker/PickerCommon.d.ts +2 -8
- package/lib/typescript/src/components/Picker/PickerCommon.js.map +1 -1
- package/lib/typescript/src/components/Picker/PickerInputContainer.d.ts +1 -0
- package/lib/typescript/src/components/Picker/PickerInputContainer.js +4 -4
- package/lib/typescript/src/components/Picker/PickerInputContainer.js.map +1 -1
- package/lib/typescript/src/components/Picker/dropdown/DropDownPicker.js +4 -7
- package/lib/typescript/src/components/Picker/dropdown/DropDownPicker.js.map +1 -1
- package/lib/typescript/src/components/Picker/dropdown/MultiSelectPicker.d.ts +2 -2
- package/lib/typescript/src/components/Picker/index.d.ts +2 -2
- package/lib/typescript/src/components/Picker/index.js +2 -1
- package/lib/typescript/src/components/Picker/index.js.map +1 -1
- package/lib/typescript/src/components/TextField.js +3 -2
- package/lib/typescript/src/components/TextField.js.map +1 -1
- package/lib/typescript/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/components/Picker/NativePicker.js +24 -21
- package/src/components/Picker/NativePicker.js.map +1 -1
- package/src/components/Picker/NativePicker.tsx +33 -27
- package/src/components/Picker/PickerCommon.js.map +1 -1
- package/src/components/Picker/PickerCommon.ts +2 -8
- package/src/components/Picker/PickerInputContainer.js +4 -4
- package/src/components/Picker/PickerInputContainer.js.map +1 -1
- package/src/components/Picker/PickerInputContainer.tsx +18 -14
- package/src/components/Picker/dropdown/DropDownPicker.js +4 -7
- package/src/components/Picker/dropdown/DropDownPicker.js.map +1 -1
- package/src/components/Picker/dropdown/DropDownPicker.tsx +4 -6
- package/src/components/Picker/dropdown/MultiSelectPicker.tsx +1 -1
- package/src/components/Picker/index.js +2 -1
- package/src/components/Picker/index.js.map +1 -1
- package/src/components/Picker/index.tsx +6 -2
- package/src/components/TextField.js +3 -2
- package/src/components/TextField.js.map +1 -1
- package/src/components/TextField.tsx +3 -1
|
@@ -238,6 +238,7 @@ class TextField extends React.Component<Props, State> {
|
|
|
238
238
|
Icon,
|
|
239
239
|
type = "underline",
|
|
240
240
|
disabled = false,
|
|
241
|
+
editable = true,
|
|
241
242
|
label,
|
|
242
243
|
error = false,
|
|
243
244
|
leftIconName,
|
|
@@ -568,7 +569,8 @@ class TextField extends React.Component<Props, State> {
|
|
|
568
569
|
? this.state.placeholder
|
|
569
570
|
: this.props.placeholder,
|
|
570
571
|
placeholderTextColor: placeholderColor,
|
|
571
|
-
editable: !disabled,
|
|
572
|
+
editable: !disabled && editable,
|
|
573
|
+
disabled: disabled || !editable,
|
|
572
574
|
selectionColor: activeColor,
|
|
573
575
|
multiline,
|
|
574
576
|
numberOfLines,
|