@strapi/design-system 1.8.1 → 1.9.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/BaseCheckbox/BaseCheckbox.cjs +4 -4
- package/dist/BaseCheckbox/BaseCheckbox.js +19 -18
- package/dist/CarouselInput/Carousel.cjs +4 -4
- package/dist/CarouselInput/Carousel.js +13 -13
- package/dist/CarouselInput/CarouselInput.cjs +1 -1
- package/dist/CarouselInput/CarouselInput.js +14 -13
- package/dist/Checkbox/Checkbox.cjs +2 -2
- package/dist/Checkbox/Checkbox.js +22 -21
- package/dist/Combobox/Combobox.cjs +10 -10
- package/dist/Combobox/Combobox.js +57 -56
- package/dist/DatePicker/DatePicker.cjs +9 -9
- package/dist/DatePicker/DatePicker.js +67 -66
- package/dist/DateTimePicker/DateTimePicker.cjs +3 -3
- package/dist/DateTimePicker/DateTimePicker.js +46 -42
- package/dist/JSONInput/JSONInput.cjs +33 -1
- package/dist/JSONInput/JSONInput.js +85 -46
- package/dist/Popover/Popover.cjs +3 -3
- package/dist/Popover/Popover.js +52 -51
- package/dist/Select/MultiSelect.cjs +7 -7
- package/dist/Select/MultiSelect.js +45 -44
- package/dist/Select/SingleSelect.cjs +1 -1
- package/dist/Select/SingleSelect.js +35 -34
- package/dist/TextInput/TextInput.cjs +1 -1
- package/dist/TextInput/TextInput.js +15 -14
- package/dist/TimePicker/TimePicker.cjs +2 -2
- package/dist/TimePicker/TimePicker.js +38 -38
- package/dist/ToggleInput/ToggleInput.cjs +20 -4
- package/dist/ToggleInput/ToggleInput.js +44 -18
- package/dist/Typography/Typography.cjs +1 -1
- package/dist/Typography/Typography.js +6 -6
- package/dist/Typography/utils.cjs +1 -1
- package/dist/Typography/utils.js +4 -5
- package/dist/themes/utils.cjs +9 -9
- package/dist/themes/utils.js +9 -9
- package/package.json +10 -10
- package/dist/JSONInput/JSONInputContainer.cjs +0 -33
- package/dist/JSONInput/JSONInputContainer.js +0 -39
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import o from "styled-components";
|
|
2
|
-
import { inputFocusStyle as t } from "../themes/utils.js";
|
|
3
|
-
import { Flex as c } from "../Flex/Flex.js";
|
|
4
|
-
const l = o(c)`
|
|
5
|
-
line-height: ${({ theme: e }) => e.lineHeights[2]};
|
|
6
|
-
|
|
7
|
-
.cm-editor {
|
|
8
|
-
/**
|
|
9
|
-
* Hard coded since the color is the same between themes,
|
|
10
|
-
* theme.colors.neutral800 changes between themes
|
|
11
|
-
*/
|
|
12
|
-
background-color: #32324d;
|
|
13
|
-
width: 100%;
|
|
14
|
-
outline: none;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.cm-scroller {
|
|
18
|
-
border: 1px solid ${({ theme: e, hasError: r }) => r ? e.colors.danger600 : e.colors.neutral200};
|
|
19
|
-
/* inputFocusStyle will receive hasError prop */
|
|
20
|
-
${t()}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.cm-editor,
|
|
24
|
-
.cm-scroller {
|
|
25
|
-
border-radius: ${({ theme: e }) => e.borderRadius};
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.cm-gutters,
|
|
29
|
-
.cm-activeLineGutter {
|
|
30
|
-
/**
|
|
31
|
-
* Hard coded since the color is the same between themes,
|
|
32
|
-
* theme.colors.neutral700 changes between themes
|
|
33
|
-
*/
|
|
34
|
-
background-color: #4a4a6a;
|
|
35
|
-
}
|
|
36
|
-
`;
|
|
37
|
-
export {
|
|
38
|
-
l as JSONInputContainer
|
|
39
|
-
};
|