@rebilly/instruments 2.1.1-beta.0 → 3.0.0-beta.0
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/dist/functions/mount/fetch-data.js +4 -0
- package/dist/functions/mount/index.js +6 -0
- package/dist/functions/mount/mount.spec.js +2 -4
- package/dist/functions/mount/setup-framepay-theme.js +95 -0
- package/dist/functions/mount/setup-options.js +3 -0
- package/dist/i18n/en.json +1 -1
- package/dist/style/base/__snapshots__/theme.spec.js.snap +188 -45
- package/dist/style/base/default-theme.js +699 -0
- package/dist/style/base/index.js +48 -16
- package/dist/style/base/theme.js +16 -49
- package/dist/style/base/theme.spec.js +4 -15
- package/dist/style/components/address.js +3 -3
- package/dist/style/components/button.js +32 -22
- package/dist/style/components/divider.js +9 -9
- package/dist/style/components/forms/checkbox.js +12 -9
- package/dist/style/components/forms/field.js +18 -6
- package/dist/style/components/forms/form.js +2 -2
- package/dist/style/components/forms/input.js +54 -13
- package/dist/style/components/forms/label.js +44 -18
- package/dist/style/components/forms/select.js +54 -22
- package/dist/style/components/forms/validation.js +53 -6
- package/dist/style/components/icons.js +4 -4
- package/dist/style/components/loader.js +5 -3
- package/dist/style/components/methods.js +18 -15
- package/dist/style/components/overlay.js +5 -5
- package/dist/style/helpers/index.js +46 -46
- package/dist/style/index.js +3 -1
- package/dist/style/payment-instruments/payment-card.js +4 -4
- package/dist/style/utils/border.js +47 -0
- package/dist/style/utils/color-values.js +39 -3
- package/dist/style/utils/remove-empty-null.js +20 -0
- package/dist/style/vendor/framepay.js +11 -8
- package/dist/style/vendor/postmate.js +2 -2
- package/dist/style/views/confirmation.js +13 -13
- package/dist/style/views/method-selector.js +2 -2
- package/dist/style/views/modal.js +6 -6
- package/dist/style/views/result.js +4 -4
- package/dist/style/views/summary.js +23 -23
- package/dist/views/__snapshots__/summary.spec.js.snap +4 -40
- package/dist/views/common/iframe/modal-iframe.js +6 -1
- package/dist/views/summary.js +17 -11
- package/package.json +3 -1
- package/src/functions/mount/fetch-data.js +4 -0
- package/src/functions/mount/index.js +2 -0
- package/src/functions/mount/mount.spec.js +3 -5
- package/src/functions/mount/setup-framepay-theme.js +82 -0
- package/src/functions/mount/setup-options.js +3 -0
- package/src/i18n/en.json +1 -1
- package/src/style/base/__snapshots__/theme.spec.js.snap +188 -45
- package/src/style/base/default-theme.js +674 -0
- package/src/style/base/index.js +48 -16
- package/src/style/base/theme.js +17 -47
- package/src/style/base/theme.spec.js +4 -16
- package/src/style/components/address.js +3 -3
- package/src/style/components/button.js +32 -24
- package/src/style/components/divider.js +9 -9
- package/src/style/components/forms/checkbox.js +11 -11
- package/src/style/components/forms/field.js +18 -6
- package/src/style/components/forms/form.js +2 -2
- package/src/style/components/forms/input.js +54 -13
- package/src/style/components/forms/label.js +44 -18
- package/src/style/components/forms/select.js +54 -22
- package/src/style/components/forms/validation.js +53 -6
- package/src/style/components/icons.js +4 -4
- package/src/style/components/loader.js +4 -5
- package/src/style/components/methods.js +18 -15
- package/src/style/components/overlay.js +5 -5
- package/src/style/helpers/index.js +46 -46
- package/src/style/index.js +2 -1
- package/src/style/payment-instruments/payment-card.js +4 -4
- package/src/style/utils/border.js +34 -0
- package/src/style/utils/color-values.js +27 -1
- package/src/style/utils/remove-empty-null.js +10 -0
- package/src/style/vendor/framepay.js +11 -8
- package/src/style/vendor/postmate.js +2 -2
- package/src/style/views/confirmation.js +13 -13
- package/src/style/views/method-selector.js +2 -2
- package/src/style/views/modal.js +6 -6
- package/src/style/views/result.js +4 -4
- package/src/style/views/summary.js +23 -23
- package/src/views/__snapshots__/summary.spec.js.snap +4 -40
- package/src/views/common/iframe/modal-iframe.js +7 -1
- package/src/views/summary.js +17 -11
|
@@ -27,6 +27,8 @@ var _setupStyles = _interopRequireDefault(require("./setup-styles"));
|
|
|
27
27
|
|
|
28
28
|
var _setupI18n = _interopRequireDefault(require("./setup-i18n"));
|
|
29
29
|
|
|
30
|
+
var _setupFramepayTheme = _interopRequireDefault(require("./setup-framepay-theme"));
|
|
31
|
+
|
|
30
32
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
31
33
|
|
|
32
34
|
/* eslint-disable max-len */
|
|
@@ -139,6 +141,10 @@ async function mount({
|
|
|
139
141
|
state.data = await (0, _fetchData.fetchData)({
|
|
140
142
|
state
|
|
141
143
|
});
|
|
144
|
+
state.options.themeFramepay = await (0, _setupFramepayTheme.default)({
|
|
145
|
+
state,
|
|
146
|
+
options
|
|
147
|
+
});
|
|
142
148
|
const i18n = (0, _setupI18n.default)({
|
|
143
149
|
state
|
|
144
150
|
});
|
|
@@ -31,9 +31,7 @@ describe('RebillyInstruments instance', () => {
|
|
|
31
31
|
quantity: 1
|
|
32
32
|
}],
|
|
33
33
|
theme: {
|
|
34
|
-
|
|
35
|
-
background: '#000'
|
|
36
|
-
}
|
|
34
|
+
colorBackground: '#000'
|
|
37
35
|
},
|
|
38
36
|
css: `
|
|
39
37
|
.rebilly-instruments-summary-line-item-synopsis-title {
|
|
@@ -50,7 +48,7 @@ describe('RebillyInstruments instance', () => {
|
|
|
50
48
|
expect(summarySelector.innerHTML).toMatch('My Product'); // Theme config overrides initial styles
|
|
51
49
|
|
|
52
50
|
const SUMMARY_CONTAINER = summarySelector.querySelector('.rebilly-instruments-content');
|
|
53
|
-
expect(getComputedStyle(SUMMARY_CONTAINER).
|
|
51
|
+
expect(getComputedStyle(SUMMARY_CONTAINER).getPropertyValue('--rebilly-colorBackground')).toEqual('#000'); // CSS config property overrides initial styles
|
|
54
52
|
|
|
55
53
|
const LINE_ITEM_TITLE = document.querySelector('.rebilly-instruments-summary-line-item-synopsis-title');
|
|
56
54
|
expect(getComputedStyle(LINE_ITEM_TITLE).color).toEqual('rgb(0, 68, 212)'); // Mounts default FramePay script
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _css = _interopRequireDefault(require("css"));
|
|
9
|
+
|
|
10
|
+
var _postcss = _interopRequireDefault(require("postcss"));
|
|
11
|
+
|
|
12
|
+
var _postcssCustomProperties = _interopRequireDefault(require("postcss-custom-properties"));
|
|
13
|
+
|
|
14
|
+
var _lodash = _interopRequireDefault(require("lodash.camelcase"));
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
+
|
|
18
|
+
const resolveCssVars = async rawCss => (0, _postcss.default)([(0, _postcssCustomProperties.default)({
|
|
19
|
+
preserve: false
|
|
20
|
+
})]).process(rawCss, {
|
|
21
|
+
from: undefined
|
|
22
|
+
}).then(output => output.css);
|
|
23
|
+
|
|
24
|
+
const getStyleProps = (ast, selector) => {
|
|
25
|
+
const {
|
|
26
|
+
rules
|
|
27
|
+
} = ast.stylesheet;
|
|
28
|
+
const output = {
|
|
29
|
+
color: null,
|
|
30
|
+
fontFamily: null,
|
|
31
|
+
fontSize: null,
|
|
32
|
+
lineHeight: null,
|
|
33
|
+
fontWeight: null,
|
|
34
|
+
background: null
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
for (let i = 0; i < rules.length; i += 1) {
|
|
38
|
+
const rule = rules[i];
|
|
39
|
+
|
|
40
|
+
if (rule.type === 'rule' && rule.selectors.includes(selector)) {
|
|
41
|
+
rule.declarations.forEach(decl => {
|
|
42
|
+
const propName = (0, _lodash.default)(decl.property);
|
|
43
|
+
|
|
44
|
+
if (typeof output[propName] !== 'undefined') {
|
|
45
|
+
output[propName] = decl.value;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
return output;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
var _default = async ({
|
|
55
|
+
state,
|
|
56
|
+
options = {}
|
|
57
|
+
}) => {
|
|
58
|
+
const fullCss = `
|
|
59
|
+
${state.mainStyle}
|
|
60
|
+
${options.css || ''}
|
|
61
|
+
`;
|
|
62
|
+
const resolvedCss = await resolveCssVars(fullCss);
|
|
63
|
+
|
|
64
|
+
const cssAst = _css.default.parse(resolvedCss);
|
|
65
|
+
|
|
66
|
+
const cssSelectors = {
|
|
67
|
+
base: '.rebilly-instruments-form-field-input',
|
|
68
|
+
baseHover: '.rebilly-instruments-form-field-input:hover',
|
|
69
|
+
baseFocus: '.rebilly-instruments-form-field-input:focus',
|
|
70
|
+
basePlaceholder: '.rebilly-instruments-form-field-input::placeholder',
|
|
71
|
+
baseSelection: '.rebilly-instruments-form-field-input::selection',
|
|
72
|
+
invalid: '.rebilly-instruments-form-field.is-error .rebilly-instruments-form-field-input',
|
|
73
|
+
invalidHover: '.rebilly-instruments-form-field.is-error .rebilly-instruments-form-field-input:hover',
|
|
74
|
+
invalidFocus: '.rebilly-instruments-form-field.is-error .rebilly-instruments-form-field-input:focus',
|
|
75
|
+
invalidPlaceholder: '.rebilly-instruments-form-field.is-error .rebilly-instruments-form-field-input::placeholder',
|
|
76
|
+
invalidSelection: '.rebilly-instruments-form-field.is-error .rebilly-instruments-form-field-input::selection'
|
|
77
|
+
};
|
|
78
|
+
const framepayStyle = {
|
|
79
|
+
base: { ...getStyleProps(cssAst, cssSelectors.base),
|
|
80
|
+
':hover': getStyleProps(cssAst, cssSelectors.baseHover),
|
|
81
|
+
':focus': getStyleProps(cssAst, cssSelectors.baseFocus),
|
|
82
|
+
'::placeholder': getStyleProps(cssAst, cssSelectors.basePlaceholder),
|
|
83
|
+
'::selection': getStyleProps(cssAst, cssSelectors.baseSelection)
|
|
84
|
+
},
|
|
85
|
+
invalid: { ...getStyleProps(cssAst, cssSelectors.invalid),
|
|
86
|
+
':hover': getStyleProps(cssAst, cssSelectors.invalidHover),
|
|
87
|
+
':focus': getStyleProps(cssAst, cssSelectors.invalidFocus),
|
|
88
|
+
'::placeholder': getStyleProps(cssAst, cssSelectors.invalidPlaceholder),
|
|
89
|
+
'::selection': getStyleProps(cssAst, cssSelectors.invalidSelection)
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
return framepayStyle;
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
exports.default = _default;
|
package/dist/i18n/en.json
CHANGED
|
@@ -3,50 +3,193 @@
|
|
|
3
3
|
exports[`RebillyInstruments theme builds the theme object 1`] = `
|
|
4
4
|
Object {
|
|
5
5
|
"borderRadius": "4px",
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
6
|
+
"buttonActiveColorBackground": "var(--rebilly-buttonHoverColorBackground)",
|
|
7
|
+
"buttonBorder": "1px solid transparent",
|
|
8
|
+
"buttonBorderRadius": "var(--rebilly-borderRadius)",
|
|
9
|
+
"buttonBoxShadow": "none",
|
|
10
|
+
"buttonColorBackground": "var(--rebilly-colorPrimary)",
|
|
11
|
+
"buttonColorText": "#FFFFFF",
|
|
12
|
+
"buttonFontFamily": "var(--rebilly-fontFamily)",
|
|
13
|
+
"buttonFontLineHeight": "1.5",
|
|
14
|
+
"buttonFontSize": "var(--rebilly-fontSizeBase)",
|
|
15
|
+
"buttonFontWeight": "var(--rebilly-fontWeightBase)",
|
|
16
|
+
"buttonHoverColorBackground": "#0036aa",
|
|
17
|
+
"colorBackground": "#FFFFFF",
|
|
18
|
+
"colorDanger": "#CD5C5C",
|
|
19
|
+
"colorMutedBorder": "rgba(13, 43, 62, 0.25)",
|
|
20
|
+
"colorMutedText": "rgba(13, 43, 62, 0.6)",
|
|
21
|
+
"colorPrimary": "#0044D4",
|
|
22
|
+
"colorText": "#0D2B3E",
|
|
23
|
+
"cssVars": "--rebilly-colorPrimary: #0044D4;
|
|
24
|
+
--rebilly-colorBackground: #FFFFFF;
|
|
25
|
+
--rebilly-colorText: #0D2B3E;
|
|
26
|
+
--rebilly-colorMutedText: rgba(13, 43, 62, 0.6);
|
|
27
|
+
--rebilly-colorMutedBorder: rgba(13, 43, 62, 0.25);
|
|
28
|
+
--rebilly-colorDanger: #CD5C5C;
|
|
29
|
+
--rebilly-fontFamily: Avenir, Helvetica, Arial, sans-serif;
|
|
30
|
+
--rebilly-fontSizeBase: 16px;
|
|
31
|
+
--rebilly-fontWeightBase: 400;
|
|
32
|
+
--rebilly-fontLineHeightBase: initial;
|
|
33
|
+
--rebilly-fontSmooth: auto;
|
|
34
|
+
--rebilly-borderRadius: 4px;
|
|
35
|
+
--rebilly-headingFontFamily: var(--rebilly-fontFamily);
|
|
36
|
+
--rebilly-headingFontWeight: 500;
|
|
37
|
+
--rebilly-headingColorText: var(--rebilly-colorText);
|
|
38
|
+
--rebilly-buttonColorBackground: var(--rebilly-colorPrimary);
|
|
39
|
+
--rebilly-buttonColorText: #FFFFFF;
|
|
40
|
+
--rebilly-buttonFontFamily: var(--rebilly-fontFamily);
|
|
41
|
+
--rebilly-buttonFontSize: var(--rebilly-fontSizeBase);
|
|
42
|
+
--rebilly-buttonFontLineHeight: 1.5;
|
|
43
|
+
--rebilly-buttonFontWeight: var(--rebilly-fontWeightBase);
|
|
44
|
+
--rebilly-buttonBorder: 1px solid transparent;
|
|
45
|
+
--rebilly-buttonBorderRadius: var(--rebilly-borderRadius);
|
|
46
|
+
--rebilly-buttonBoxShadow: none;
|
|
47
|
+
--rebilly-buttonHoverColorBackground: #0036aa;
|
|
48
|
+
--rebilly-buttonActiveColorBackground: var(--rebilly-buttonHoverColorBackground);
|
|
49
|
+
--rebilly-inputColorBackground: transparent;
|
|
50
|
+
--rebilly-inputColorText: var(--rebilly-colorText);
|
|
51
|
+
--rebilly-inputFontFamily: var(--rebilly-fontFamily);
|
|
52
|
+
--rebilly-inputFontSize: var(--rebilly-fontSizeBase);
|
|
53
|
+
--rebilly-inputFontLineHeight: 1.5;
|
|
54
|
+
--rebilly-inputFontWeight: var(--rebilly-fontWeightBase);
|
|
55
|
+
--rebilly-inputBorder: 1px solid rgba(13, 43, 62, 0.25);
|
|
56
|
+
--rebilly-inputBorderRadius: var(--rebilly-borderRadius);
|
|
57
|
+
--rebilly-inputBoxShadow: none;
|
|
58
|
+
--rebilly-inputHoverColorBackground: var(--rebilly-inputColorBackground);
|
|
59
|
+
--rebilly-inputHoverColorText: var(--rebilly-inputColorText);
|
|
60
|
+
--rebilly-inputHoverFontFamily: var(--rebilly-inputFontFamily);
|
|
61
|
+
--rebilly-inputHoverFontSize: var(--rebilly-inputFontSize);
|
|
62
|
+
--rebilly-inputHoverFontLineHeight: var(--rebilly-inputFontLineHeight);
|
|
63
|
+
--rebilly-inputHoverFontWeight: var(--rebilly-inputFontWeight);
|
|
64
|
+
--rebilly-inputHoverBorder: var(--rebilly-inputBorder);
|
|
65
|
+
--rebilly-inputHoverBorderRadius: var(--rebilly-inputBorderRadius);
|
|
66
|
+
--rebilly-inputHoverBoxShadow: var(--rebilly-inputBoxShadow);
|
|
67
|
+
--rebilly-inputFocusColorBackground: var(--rebilly-inputHoverColorBackground);
|
|
68
|
+
--rebilly-inputFocusColorText: var(--rebilly-inputHoverColorText);
|
|
69
|
+
--rebilly-inputFocusFontFamily: var(--rebilly-inputHoverFontFamily);
|
|
70
|
+
--rebilly-inputFocusFontSize: var(--rebilly-inputHoverFontSize);
|
|
71
|
+
--rebilly-inputFocusFontLineHeight: var(--rebilly-inputHoverFontLineHeight);
|
|
72
|
+
--rebilly-inputFocusFontWeight: var(--rebilly-inputHoverFontWeight);
|
|
73
|
+
--rebilly-inputFocusBorder: 1px solid #0044D4;
|
|
74
|
+
--rebilly-inputFocusBorderRadius: var(--rebilly-inputHoverBorderRadius);
|
|
75
|
+
--rebilly-inputFocusBoxShadow: 0 0 0 1px #0044D4;
|
|
76
|
+
--rebilly-inputPlaceholderColorText: rgba(13, 43, 62, 0.6);
|
|
77
|
+
--rebilly-inputPlaceholderFontFamily: var(--rebilly-inputFontFamily);
|
|
78
|
+
--rebilly-inputPlaceholderFontSize: var(--rebilly-inputFontSize);
|
|
79
|
+
--rebilly-inputPlaceholderFontLineHeight: var(--rebilly-inputFontLineHeight);
|
|
80
|
+
--rebilly-inputPlaceholderFontWeight: var(--rebilly-inputFontWeight);
|
|
81
|
+
--rebilly-inputSelectionColorText: initial;
|
|
82
|
+
--rebilly-inputSelectionColorBackground: initial;
|
|
83
|
+
--rebilly-inputErrorColorBackground: var(--rebilly-inputColorBackground);
|
|
84
|
+
--rebilly-inputErrorColorText: var(--rebilly-colorDanger);
|
|
85
|
+
--rebilly-inputErrorFontFamily: var(--rebilly-inputFontFamily);
|
|
86
|
+
--rebilly-inputErrorFontSize: var(--rebilly-inputFontSize);
|
|
87
|
+
--rebilly-inputErrorFontLineHeight: var(--rebilly-inputFontLineHeight);
|
|
88
|
+
--rebilly-inputErrorFontWeight: var(--rebilly-inputFontWeight);
|
|
89
|
+
--rebilly-inputErrorBorder: 1px solid #CD5C5C;
|
|
90
|
+
--rebilly-inputErrorBorderRadius: var(--rebilly-inputBorderRadius);
|
|
91
|
+
--rebilly-inputErrorBoxShadow: var(--rebilly-inputBoxShadow);
|
|
92
|
+
--rebilly-inputErrorHoverColorBackground: var(--rebilly-inputErrorColorBackground);
|
|
93
|
+
--rebilly-inputErrorHoverColorText: var(--rebilly-inputErrorColorText);
|
|
94
|
+
--rebilly-inputErrorHoverFontFamily: var(--rebilly-inputErrorFontFamily);
|
|
95
|
+
--rebilly-inputErrorHoverFontSize: var(--rebilly-inputErrorFontSize);
|
|
96
|
+
--rebilly-inputErrorHoverFontLineHeight: var(--rebilly-inputErrorFontLineHeight);
|
|
97
|
+
--rebilly-inputErrorHoverFontWeight: var(--rebilly-inputErrorFontWeight);
|
|
98
|
+
--rebilly-inputErrorHoverBorder: var(--rebilly-inputErrorBorder);
|
|
99
|
+
--rebilly-inputErrorHoverBorderRadius: var(--rebilly-inputErrorBorderRadius);
|
|
100
|
+
--rebilly-inputErrorHoverBoxShadow: var(--rebilly-inputErrorBoxShadow);
|
|
101
|
+
--rebilly-inputErrorFocusColorBackground: var(--rebilly-inputErrorHoverColorBackground);
|
|
102
|
+
--rebilly-inputErrorFocusColorText: var(--rebilly-inputErrorHoverColorText);
|
|
103
|
+
--rebilly-inputErrorFocusFontFamily: var(--rebilly-inputErrorHoverFontFamily);
|
|
104
|
+
--rebilly-inputErrorFocusFontSize: var(--rebilly-inputErrorHoverFontSize);
|
|
105
|
+
--rebilly-inputErrorFocusFontLineHeight: var(--rebilly-inputErrorHoverFontLineHeight);
|
|
106
|
+
--rebilly-inputErrorFocusFontWeight: var(--rebilly-inputErrorHoverFontWeight);
|
|
107
|
+
--rebilly-inputErrorFocusBorder: var(--rebilly-inputErrorHoverBorder);
|
|
108
|
+
--rebilly-inputErrorFocusBorderRadius: var(--rebilly-inputErrorHoverBorderRadius);
|
|
109
|
+
--rebilly-inputErrorFocusBoxShadow: var(--rebilly-inputErrorHoverBoxShadow);
|
|
110
|
+
--rebilly-inputErrorPlaceholderColorText: rgba(205, 92, 92, 0.6);
|
|
111
|
+
--rebilly-inputErrorPlaceholderFontFamily: var(--rebilly-inputPlaceholderFontFamily);
|
|
112
|
+
--rebilly-inputErrorPlaceholderFontSize: var(--rebilly-inputPlaceholderFontSize);
|
|
113
|
+
--rebilly-inputErrorPlaceholderFontLineHeight: var(--rebilly-inputPlaceholderFontLineHeight);
|
|
114
|
+
--rebilly-inputErrorPlaceholderFontWeight: var(--rebilly-inputPlaceholderFontWeight);
|
|
115
|
+
--rebilly-inputErrorSelectionColorText: var(--rebilly-inputSelectionColorText);
|
|
116
|
+
--rebilly-inputErrorSelectionColorBackground: var(--rebilly-inputSelectionColorBackground);",
|
|
117
|
+
"fontFamily": "Avenir, Helvetica, Arial, sans-serif",
|
|
118
|
+
"fontLineHeightBase": "initial",
|
|
119
|
+
"fontSizeBase": "16px",
|
|
120
|
+
"fontSmooth": "auto",
|
|
121
|
+
"fontWeightBase": "400",
|
|
122
|
+
"headingColorText": "var(--rebilly-colorText)",
|
|
123
|
+
"headingFontFamily": "var(--rebilly-fontFamily)",
|
|
124
|
+
"headingFontWeight": "500",
|
|
125
|
+
"inputBorder": "1px solid rgba(13, 43, 62, 0.25)",
|
|
126
|
+
"inputBorderRadius": "var(--rebilly-borderRadius)",
|
|
127
|
+
"inputBoxShadow": "none",
|
|
128
|
+
"inputColorBackground": "transparent",
|
|
129
|
+
"inputColorText": "var(--rebilly-colorText)",
|
|
130
|
+
"inputErrorBorder": "1px solid #CD5C5C",
|
|
131
|
+
"inputErrorBorderRadius": "var(--rebilly-inputBorderRadius)",
|
|
132
|
+
"inputErrorBoxShadow": "var(--rebilly-inputBoxShadow)",
|
|
133
|
+
"inputErrorColorBackground": "var(--rebilly-inputColorBackground)",
|
|
134
|
+
"inputErrorColorText": "var(--rebilly-colorDanger)",
|
|
135
|
+
"inputErrorFocusBorder": "var(--rebilly-inputErrorHoverBorder)",
|
|
136
|
+
"inputErrorFocusBorderRadius": "var(--rebilly-inputErrorHoverBorderRadius)",
|
|
137
|
+
"inputErrorFocusBoxShadow": "var(--rebilly-inputErrorHoverBoxShadow)",
|
|
138
|
+
"inputErrorFocusColorBackground": "var(--rebilly-inputErrorHoverColorBackground)",
|
|
139
|
+
"inputErrorFocusColorText": "var(--rebilly-inputErrorHoverColorText)",
|
|
140
|
+
"inputErrorFocusFontFamily": "var(--rebilly-inputErrorHoverFontFamily)",
|
|
141
|
+
"inputErrorFocusFontLineHeight": "var(--rebilly-inputErrorHoverFontLineHeight)",
|
|
142
|
+
"inputErrorFocusFontSize": "var(--rebilly-inputErrorHoverFontSize)",
|
|
143
|
+
"inputErrorFocusFontWeight": "var(--rebilly-inputErrorHoverFontWeight)",
|
|
144
|
+
"inputErrorFontFamily": "var(--rebilly-inputFontFamily)",
|
|
145
|
+
"inputErrorFontLineHeight": "var(--rebilly-inputFontLineHeight)",
|
|
146
|
+
"inputErrorFontSize": "var(--rebilly-inputFontSize)",
|
|
147
|
+
"inputErrorFontWeight": "var(--rebilly-inputFontWeight)",
|
|
148
|
+
"inputErrorHoverBorder": "var(--rebilly-inputErrorBorder)",
|
|
149
|
+
"inputErrorHoverBorderRadius": "var(--rebilly-inputErrorBorderRadius)",
|
|
150
|
+
"inputErrorHoverBoxShadow": "var(--rebilly-inputErrorBoxShadow)",
|
|
151
|
+
"inputErrorHoverColorBackground": "var(--rebilly-inputErrorColorBackground)",
|
|
152
|
+
"inputErrorHoverColorText": "var(--rebilly-inputErrorColorText)",
|
|
153
|
+
"inputErrorHoverFontFamily": "var(--rebilly-inputErrorFontFamily)",
|
|
154
|
+
"inputErrorHoverFontLineHeight": "var(--rebilly-inputErrorFontLineHeight)",
|
|
155
|
+
"inputErrorHoverFontSize": "var(--rebilly-inputErrorFontSize)",
|
|
156
|
+
"inputErrorHoverFontWeight": "var(--rebilly-inputErrorFontWeight)",
|
|
157
|
+
"inputErrorPlaceholderColorText": "rgba(205, 92, 92, 0.6)",
|
|
158
|
+
"inputErrorPlaceholderFontFamily": "var(--rebilly-inputPlaceholderFontFamily)",
|
|
159
|
+
"inputErrorPlaceholderFontLineHeight": "var(--rebilly-inputPlaceholderFontLineHeight)",
|
|
160
|
+
"inputErrorPlaceholderFontSize": "var(--rebilly-inputPlaceholderFontSize)",
|
|
161
|
+
"inputErrorPlaceholderFontWeight": "var(--rebilly-inputPlaceholderFontWeight)",
|
|
162
|
+
"inputErrorSelectionColorBackground": "var(--rebilly-inputSelectionColorBackground)",
|
|
163
|
+
"inputErrorSelectionColorText": "var(--rebilly-inputSelectionColorText)",
|
|
164
|
+
"inputFocusBorder": "1px solid #0044D4",
|
|
165
|
+
"inputFocusBorderRadius": "var(--rebilly-inputHoverBorderRadius)",
|
|
166
|
+
"inputFocusBoxShadow": "0 0 0 1px #0044D4",
|
|
167
|
+
"inputFocusColorBackground": "var(--rebilly-inputHoverColorBackground)",
|
|
168
|
+
"inputFocusColorText": "var(--rebilly-inputHoverColorText)",
|
|
169
|
+
"inputFocusFontFamily": "var(--rebilly-inputHoverFontFamily)",
|
|
170
|
+
"inputFocusFontLineHeight": "var(--rebilly-inputHoverFontLineHeight)",
|
|
171
|
+
"inputFocusFontSize": "var(--rebilly-inputHoverFontSize)",
|
|
172
|
+
"inputFocusFontWeight": "var(--rebilly-inputHoverFontWeight)",
|
|
173
|
+
"inputFontFamily": "var(--rebilly-fontFamily)",
|
|
174
|
+
"inputFontLineHeight": "1.5",
|
|
175
|
+
"inputFontSize": "var(--rebilly-fontSizeBase)",
|
|
176
|
+
"inputFontWeight": "var(--rebilly-fontWeightBase)",
|
|
177
|
+
"inputHoverBorder": "var(--rebilly-inputBorder)",
|
|
178
|
+
"inputHoverBorderRadius": "var(--rebilly-inputBorderRadius)",
|
|
179
|
+
"inputHoverBoxShadow": "var(--rebilly-inputBoxShadow)",
|
|
180
|
+
"inputHoverColorBackground": "var(--rebilly-inputColorBackground)",
|
|
181
|
+
"inputHoverColorText": "var(--rebilly-inputColorText)",
|
|
182
|
+
"inputHoverFontFamily": "var(--rebilly-inputFontFamily)",
|
|
183
|
+
"inputHoverFontLineHeight": "var(--rebilly-inputFontLineHeight)",
|
|
184
|
+
"inputHoverFontSize": "var(--rebilly-inputFontSize)",
|
|
185
|
+
"inputHoverFontWeight": "var(--rebilly-inputFontWeight)",
|
|
186
|
+
"inputPlaceholderColorText": "rgba(13, 43, 62, 0.6)",
|
|
187
|
+
"inputPlaceholderFontFamily": "var(--rebilly-inputFontFamily)",
|
|
188
|
+
"inputPlaceholderFontLineHeight": "var(--rebilly-inputFontLineHeight)",
|
|
189
|
+
"inputPlaceholderFontSize": "var(--rebilly-inputFontSize)",
|
|
190
|
+
"inputPlaceholderFontWeight": "var(--rebilly-inputFontWeight)",
|
|
191
|
+
"inputSelectionColorBackground": "initial",
|
|
192
|
+
"inputSelectionColorText": "initial",
|
|
193
|
+
"labels": "floating",
|
|
51
194
|
}
|
|
52
195
|
`;
|