polythene-core-textfield
Advanced tools
Comparing version 1.2.0 to 1.3.2
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('polythene-core'), require('polythene-theme')) : | ||
typeof define === 'function' && define.amd ? define(['exports', 'polythene-core', 'polythene-theme'], factory) : | ||
(factory((global.polythene = {}),global['polythene-core'],global['polythene-theme'])); | ||
}(this, (function (exports,polytheneCore,polytheneTheme) { 'use strict'; | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('polythene-core')) : | ||
typeof define === 'function' && define.amd ? define(['exports', 'polythene-core'], factory) : | ||
(factory((global.polythene = {}),global['polythene-core'])); | ||
}(this, (function (exports,polytheneCore) { 'use strict'; | ||
@@ -339,77 +339,3 @@ var classes = { | ||
var rgba = function rgba(colorStr) { | ||
var opacity = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1; | ||
return "rgba(" + colorStr + ", " + opacity + ")"; | ||
}; | ||
var line_height_input = 20; | ||
var input_padding_v = 7; | ||
var vars = { | ||
vertical_spacing_top: 6, // 8 minus natural label height padding (1) | ||
vertical_spacing_bottom: 7, // 8 minus natural label height padding (1) | ||
input_focus_border_width: 2, | ||
input_focus_border_animation_duration: polytheneTheme.vars.animation_duration, | ||
floating_label_vertical_spacing_top: 30, // 16 + 8 + 8 minus natural label height padding (2) | ||
floating_label_vertical_spacing_bottom: 7, // 8 minus natural label height padding (1) | ||
floating_label_top: 14, | ||
floating_label_animation_duration: ".12s", | ||
input_padding_h: 0, | ||
input_padding_v: input_padding_v, | ||
input_border_width: 1, | ||
margin_top_error_message: 6, | ||
font_size_input: 16, | ||
font_size_error: 12, | ||
font_size_floating_label: 12, | ||
line_height_input: line_height_input, | ||
dense_floating_label_vertical_spacing_top: 23, // 12 + 8 + 4 minus natural label height padding (1) | ||
dense_floating_label_vertical_spacing_bottom: 4, // 8 minus natural label height padding (1) | ||
dense_floating_label_top: 10, | ||
dense_font_size_input: 13, | ||
dense_font_size_floating_label: 13, | ||
full_width_input_padding_h: 20, | ||
full_width_input_padding_v: 18, // 20 minus natural label height padding (2) | ||
dense_full_width_input_padding_h: 16, | ||
dense_full_width_input_padding_v: 15, // 16 minus natural label height padding (1) | ||
dense_full_width_font_size_input: 13, | ||
color_light_input_text: rgba(polytheneTheme.vars.color_light_foreground, polytheneTheme.vars.blend_light_text_primary), | ||
color_light_input_background: "transparent", // only used to "remove" autofill color | ||
color_light_highlight_text: rgba(polytheneTheme.vars.color_primary, polytheneTheme.vars.blend_light_text_primary), | ||
color_light_input_bottom_border: rgba(polytheneTheme.vars.color_light_foreground, polytheneTheme.vars.blend_light_border_light), | ||
color_light_input_error_text: rgba("221, 44, 0"), | ||
color_light_input_error_border: rgba("221, 44, 0"), | ||
color_light_input_placeholder: rgba(polytheneTheme.vars.color_light_foreground, polytheneTheme.vars.blend_light_text_tertiary), | ||
color_light_label_text: rgba(polytheneTheme.vars.color_light_foreground, polytheneTheme.vars.blend_light_text_tertiary), | ||
color_light_disabled_label_text: rgba(polytheneTheme.vars.color_light_foreground, polytheneTheme.vars.blend_light_text_disabled), | ||
color_light_readonly_label_text: rgba(polytheneTheme.vars.color_light_foreground, polytheneTheme.vars.blend_light_text_tertiary), | ||
color_light_help_text: rgba(polytheneTheme.vars.color_light_foreground, polytheneTheme.vars.blend_light_text_tertiary), | ||
color_light_required_symbol: rgba("221, 44, 0"), | ||
color_light_focus_border: rgba(polytheneTheme.vars.color_primary), | ||
color_light_counter_ok_border: rgba(polytheneTheme.vars.color_primary), | ||
color_dark_input_text: rgba(polytheneTheme.vars.color_dark_foreground, polytheneTheme.vars.blend_dark_text_primary), | ||
color_dark_input_background: "transparent", // only used to "remove" autofill color | ||
color_dark_highlight_text: rgba(polytheneTheme.vars.color_primary, polytheneTheme.vars.blend_dark_text_primary), | ||
color_dark_input_bottom_border: rgba(polytheneTheme.vars.color_dark_foreground, polytheneTheme.vars.blend_dark_border_light), | ||
color_dark_input_error_text: rgba("222, 50, 38"), | ||
color_dark_input_error_border: rgba("222, 50, 38"), | ||
color_dark_input_placeholder: rgba(polytheneTheme.vars.color_dark_foreground, polytheneTheme.vars.blend_dark_text_tertiary), | ||
color_dark_label_text: rgba(polytheneTheme.vars.color_dark_foreground, polytheneTheme.vars.blend_dark_text_tertiary), | ||
color_dark_disabled_label_text: rgba(polytheneTheme.vars.color_dark_foreground, polytheneTheme.vars.blend_dark_text_disabled), | ||
color_dark_readonly_label_text: rgba(polytheneTheme.vars.color_dark_foreground, polytheneTheme.vars.blend_dark_text_tertiary), | ||
color_dark_help_text: rgba(polytheneTheme.vars.color_dark_foreground, polytheneTheme.vars.blend_dark_text_tertiary), | ||
color_dark_required_symbol: rgba("221, 44, 0"), | ||
color_dark_focus_border: rgba(polytheneTheme.vars.color_primary), | ||
color_dark_counter_ok_border: rgba(polytheneTheme.vars.color_primary) | ||
}; | ||
exports.coreTextField = textfield; | ||
exports.vars = vars; | ||
@@ -416,0 +342,0 @@ Object.defineProperty(exports, '__esModule', { value: true }); |
{ | ||
"name": "polythene-core-textfield", | ||
"version": "1.2.0", | ||
"version": "1.3.2", | ||
"description": "", | ||
@@ -17,5 +17,5 @@ "main": "dist/polythene-core-textfield", | ||
"dependencies": { | ||
"polythene-core": "^1.2.0", | ||
"polythene-css-classes": "^1.2.0", | ||
"polythene-theme": "^1.2.0" | ||
"polythene-core": "^1.3.2", | ||
"polythene-css-classes": "^1.3.2", | ||
"polythene-theme": "^1.3.2" | ||
}, | ||
@@ -22,0 +22,0 @@ "author": "Arthur Clemens <arthurclemens@gmail.com> (http://arthurclemens.com)", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
57284
607
Updatedpolythene-core@^1.3.2
Updatedpolythene-css-classes@^1.3.2
Updatedpolythene-theme@^1.3.2