@draftbit/core 46.7.9-8c03b2.2 → 46.7.9-9a1f8c.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/DatePicker/DatePicker.js +8 -1
- package/lib/commonjs/mappings/DatePicker.js +2 -1
- package/lib/module/components/DatePicker/DatePicker.js +8 -1
- package/lib/module/mappings/DatePicker.js +2 -1
- package/lib/typescript/src/mappings/DatePicker.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/components/DatePicker/DatePicker.js +1 -1
- package/src/components/DatePicker/DatePicker.tsx +1 -1
- package/src/mappings/DatePicker.js +2 -1
- package/src/mappings/DatePicker.ts +2 -1
|
@@ -160,7 +160,14 @@ const DatePicker = _ref => {
|
|
|
160
160
|
const MAXIMIZED_LABEL_FONT_SIZE = textStyles.fontSize || typography.subtitle1.fontSize;
|
|
161
161
|
const MINIMIZED_LABEL_FONT_SIZE = labelSize ? labelSize : typography.caption.fontSize;
|
|
162
162
|
const hasActiveOutline = focused;
|
|
163
|
-
let inputTextColor,
|
|
163
|
+
let inputTextColor,
|
|
164
|
+
activeColor,
|
|
165
|
+
underlineColor,
|
|
166
|
+
borderColor = inputBorderColor,
|
|
167
|
+
placeholderColor,
|
|
168
|
+
containerStyle,
|
|
169
|
+
backgroundColor,
|
|
170
|
+
inputStyle;
|
|
164
171
|
inputTextColor = colors.strong;
|
|
165
172
|
if (disabled) {
|
|
166
173
|
activeColor = colors.light;
|
|
@@ -37,7 +37,8 @@ const SEED_DATA_PROPS = {
|
|
|
37
37
|
label: "Border Color"
|
|
38
38
|
}),
|
|
39
39
|
borderColorActive: (0, _types.createColorProp)({
|
|
40
|
-
label: "Border Color"
|
|
40
|
+
label: "Active Border Color",
|
|
41
|
+
description: "Color of border when date picker is active"
|
|
41
42
|
}),
|
|
42
43
|
format: {
|
|
43
44
|
label: "Format",
|
|
@@ -151,7 +151,14 @@ const DatePicker = _ref => {
|
|
|
151
151
|
const MAXIMIZED_LABEL_FONT_SIZE = textStyles.fontSize || typography.subtitle1.fontSize;
|
|
152
152
|
const MINIMIZED_LABEL_FONT_SIZE = labelSize ? labelSize : typography.caption.fontSize;
|
|
153
153
|
const hasActiveOutline = focused;
|
|
154
|
-
let inputTextColor,
|
|
154
|
+
let inputTextColor,
|
|
155
|
+
activeColor,
|
|
156
|
+
underlineColor,
|
|
157
|
+
borderColor = inputBorderColor,
|
|
158
|
+
placeholderColor,
|
|
159
|
+
containerStyle,
|
|
160
|
+
backgroundColor,
|
|
161
|
+
inputStyle;
|
|
155
162
|
inputTextColor = colors.strong;
|
|
156
163
|
if (disabled) {
|
|
157
164
|
activeColor = colors.light;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../../src/mappings/DatePicker.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../../src/mappings/DatePicker.ts"],"names":[],"mappings":"AAgKA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BrB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@draftbit/core",
|
|
3
|
-
"version": "46.7.9-
|
|
3
|
+
"version": "46.7.9-9a1f8c.2+9a1f8c6",
|
|
4
4
|
"description": "Core (non-native) Components",
|
|
5
5
|
"main": "lib/commonjs/index.js",
|
|
6
6
|
"module": "lib/module/index.js",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@date-io/date-fns": "^1.3.13",
|
|
43
43
|
"@draftbit/react-theme-provider": "^2.1.1",
|
|
44
|
-
"@draftbit/types": "^46.7.9-
|
|
44
|
+
"@draftbit/types": "^46.7.9-9a1f8c.2+9a1f8c6",
|
|
45
45
|
"@material-ui/core": "^4.11.0",
|
|
46
46
|
"@material-ui/pickers": "^3.2.10",
|
|
47
47
|
"@react-native-community/slider": "4.2.3",
|
|
@@ -91,5 +91,5 @@
|
|
|
91
91
|
]
|
|
92
92
|
]
|
|
93
93
|
},
|
|
94
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "9a1f8c61263c43031edbf650cefccb40ac43ab4d"
|
|
95
95
|
}
|
|
@@ -132,7 +132,7 @@ const DatePicker = ({ Icon, style, theme: { colors, typography, roundness, disab
|
|
|
132
132
|
? labelSize
|
|
133
133
|
: typography.caption.fontSize;
|
|
134
134
|
const hasActiveOutline = focused;
|
|
135
|
-
let inputTextColor, activeColor, underlineColor, borderColor, placeholderColor, containerStyle, backgroundColor, inputStyle;
|
|
135
|
+
let inputTextColor, activeColor, underlineColor, borderColor = inputBorderColor, placeholderColor, containerStyle, backgroundColor, inputStyle;
|
|
136
136
|
inputTextColor = colors.strong;
|
|
137
137
|
if (disabled) {
|
|
138
138
|
activeColor = colors.light;
|
|
@@ -232,7 +232,7 @@ const DatePicker: React.FC<React.PropsWithChildren<Props>> = ({
|
|
|
232
232
|
let inputTextColor,
|
|
233
233
|
activeColor,
|
|
234
234
|
underlineColor,
|
|
235
|
-
borderColor,
|
|
235
|
+
borderColor = inputBorderColor,
|
|
236
236
|
placeholderColor,
|
|
237
237
|
containerStyle: StyleProp<ViewStyle>,
|
|
238
238
|
backgroundColor,
|
|
@@ -31,7 +31,8 @@ const SEED_DATA_PROPS = {
|
|
|
31
31
|
label: "Border Color",
|
|
32
32
|
}),
|
|
33
33
|
borderColorActive: createColorProp({
|
|
34
|
-
label: "Border Color",
|
|
34
|
+
label: "Active Border Color",
|
|
35
|
+
description: "Color of border when date picker is active",
|
|
35
36
|
}),
|
|
36
37
|
format: {
|
|
37
38
|
label: "Format",
|
|
@@ -42,7 +42,8 @@ const SEED_DATA_PROPS = {
|
|
|
42
42
|
label: "Border Color",
|
|
43
43
|
}),
|
|
44
44
|
borderColorActive: createColorProp({
|
|
45
|
-
label: "Border Color",
|
|
45
|
+
label: "Active Border Color",
|
|
46
|
+
description: "Color of border when date picker is active",
|
|
46
47
|
}),
|
|
47
48
|
format: {
|
|
48
49
|
label: "Format",
|