@thecb/components 6.0.0-beta.8 → 6.0.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/dist/index.cjs.js +1426 -112
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +1426 -112
- package/dist/index.esm.js.map +1 -1
- package/package.json +2 -1
- package/src/components/atoms/dropdown/Dropdown.js +184 -152
- package/src/components/atoms/form-select/FormSelect.js +3 -1
- package/src/components/atoms/layouts/Box.js +79 -73
- package/src/util/general.js +21 -0
- package/src/.DS_Store +0 -0
package/src/util/general.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { Fragment } from "react";
|
|
2
2
|
import numeral from "numeral";
|
|
3
|
+
import { CHARADE_GREY } from "../constants/colors";
|
|
3
4
|
|
|
4
5
|
export const noop = () => {};
|
|
5
6
|
|
|
@@ -96,3 +97,23 @@ export const screenReaderOnlyStyle = `
|
|
|
96
97
|
height: 1px;
|
|
97
98
|
overflow: hidden;
|
|
98
99
|
`;
|
|
100
|
+
|
|
101
|
+
export const inputPlaceholderTextStyle = `
|
|
102
|
+
::-webkit-input-placeholder {
|
|
103
|
+
color: ${CHARADE_GREY};
|
|
104
|
+
}
|
|
105
|
+
::-moz-placeholder {
|
|
106
|
+
color: ${CHARADE_GREY};
|
|
107
|
+
}
|
|
108
|
+
::-ms-placeholder {
|
|
109
|
+
color: ${CHARADE_GREY};
|
|
110
|
+
}
|
|
111
|
+
::placeholder {
|
|
112
|
+
color: ${CHARADE_GREY};
|
|
113
|
+
}
|
|
114
|
+
`;
|
|
115
|
+
export const inputDisabledStyle = `
|
|
116
|
+
color: #6e727e;
|
|
117
|
+
background-color: #f7f7f7;
|
|
118
|
+
pointer-events: none;
|
|
119
|
+
`;
|
package/src/.DS_Store
DELETED
|
Binary file
|