@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.
Files changed (37) hide show
  1. package/dist/BaseCheckbox/BaseCheckbox.cjs +4 -4
  2. package/dist/BaseCheckbox/BaseCheckbox.js +19 -18
  3. package/dist/CarouselInput/Carousel.cjs +4 -4
  4. package/dist/CarouselInput/Carousel.js +13 -13
  5. package/dist/CarouselInput/CarouselInput.cjs +1 -1
  6. package/dist/CarouselInput/CarouselInput.js +14 -13
  7. package/dist/Checkbox/Checkbox.cjs +2 -2
  8. package/dist/Checkbox/Checkbox.js +22 -21
  9. package/dist/Combobox/Combobox.cjs +10 -10
  10. package/dist/Combobox/Combobox.js +57 -56
  11. package/dist/DatePicker/DatePicker.cjs +9 -9
  12. package/dist/DatePicker/DatePicker.js +67 -66
  13. package/dist/DateTimePicker/DateTimePicker.cjs +3 -3
  14. package/dist/DateTimePicker/DateTimePicker.js +46 -42
  15. package/dist/JSONInput/JSONInput.cjs +33 -1
  16. package/dist/JSONInput/JSONInput.js +85 -46
  17. package/dist/Popover/Popover.cjs +3 -3
  18. package/dist/Popover/Popover.js +52 -51
  19. package/dist/Select/MultiSelect.cjs +7 -7
  20. package/dist/Select/MultiSelect.js +45 -44
  21. package/dist/Select/SingleSelect.cjs +1 -1
  22. package/dist/Select/SingleSelect.js +35 -34
  23. package/dist/TextInput/TextInput.cjs +1 -1
  24. package/dist/TextInput/TextInput.js +15 -14
  25. package/dist/TimePicker/TimePicker.cjs +2 -2
  26. package/dist/TimePicker/TimePicker.js +38 -38
  27. package/dist/ToggleInput/ToggleInput.cjs +20 -4
  28. package/dist/ToggleInput/ToggleInput.js +44 -18
  29. package/dist/Typography/Typography.cjs +1 -1
  30. package/dist/Typography/Typography.js +6 -6
  31. package/dist/Typography/utils.cjs +1 -1
  32. package/dist/Typography/utils.js +4 -5
  33. package/dist/themes/utils.cjs +9 -9
  34. package/dist/themes/utils.js +9 -9
  35. package/package.json +10 -10
  36. package/dist/JSONInput/JSONInputContainer.cjs +0 -33
  37. 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
- };