@via-profit/ui-kit 0.1.0-rc.1 → 0.1.0-rc.10

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 (181) hide show
  1. package/Button/ButtonAccent.d.ts +11 -0
  2. package/Button/ButtonAccent.js +47 -0
  3. package/Button/ButtonBase.d.ts +8 -0
  4. package/{dist/Button → Button}/ButtonBase.js +11 -6
  5. package/Button/ButtonStandard.d.ts +11 -0
  6. package/Button/ButtonStandard.js +52 -0
  7. package/Button/components/EndIconWrapper.js +10 -0
  8. package/Button/components/StartIconWrapper.js +10 -0
  9. package/Button/components/TextWrapper.js +12 -0
  10. package/Button/index.d.ts +10 -0
  11. package/{dist/Calendar → Calendar}/CalendarCell.js +9 -9
  12. package/{dist/Calendar → Calendar}/CalendarMonthControl.js +4 -4
  13. package/{dist/Calendar → Calendar}/CalendarPaper.js +2 -2
  14. package/{dist/Calendar → Calendar}/CalendarWeekDayLabel.js +1 -1
  15. package/{dist/Menu → Menu}/MenuItemInner.js +4 -4
  16. package/{dist/Menu → Menu}/MenuWrapper.js +7 -7
  17. package/{dist/Modal → Modal}/ModalConfirmBox.js +2 -2
  18. package/{dist/Modal → Modal}/ModalDialog.js +1 -1
  19. package/{dist/Modal → Modal}/ModalDrawer.js +3 -3
  20. package/{dist/Modal → Modal}/ModalMessageBox.js +2 -2
  21. package/{dist/PhoneField → PhoneField}/CountryFlag.js +1 -1
  22. package/{dist/PhoneField → PhoneField}/flags/UnknownFlag.js +2 -2
  23. package/{dist/SelectBox → SelectBox}/SelectButton.js +5 -5
  24. package/{dist/TextField → TextField}/TextFieldErrorText.js +1 -1
  25. package/{dist/TextField → TextField}/TextFieldLabelAsterisk.js +1 -1
  26. package/{dist/TextField → TextField}/TextFieldWrapper.js +9 -9
  27. package/ThemeProvider/createTheme.js +39 -0
  28. package/ThemeProvider/index.d.ts +5 -0
  29. package/{dist/Typography → Typography}/Base.js +1 -0
  30. package/{dist/Typography → Typography}/Blockquote.js +2 -2
  31. package/{dist/Typography → Typography}/Del.js +1 -0
  32. package/{dist/Typography → Typography}/Em.js +1 -0
  33. package/{dist/Typography → Typography}/H1.js +1 -0
  34. package/{dist/Typography → Typography}/H2.js +1 -0
  35. package/{dist/Typography → Typography}/H3.js +1 -0
  36. package/{dist/Typography → Typography}/H4.js +1 -0
  37. package/{dist/Typography → Typography}/H5.js +1 -0
  38. package/{dist/Typography → Typography}/List.js +3 -0
  39. package/{dist/Typography → Typography}/Paragraph.js +1 -0
  40. package/{dist/Typography → Typography}/Span.js +1 -0
  41. package/{dist/Typography → Typography}/Strong.js +1 -0
  42. package/{dist → Typography}/index.js +3 -4
  43. package/{dist/color → color}/Color.js +23 -8
  44. package/color/index.d.ts +27 -0
  45. package/index.d.ts +49 -0
  46. package/package.json +3 -9
  47. package/CONTRIBUTING.md +0 -0
  48. package/dist/Autocomplete/index.d.ts +0 -46
  49. package/dist/Autocomplete/popper-options.d.ts +0 -4
  50. package/dist/Button/ButtonAccent.d.ts +0 -10
  51. package/dist/Button/ButtonAccent.js +0 -48
  52. package/dist/Button/ButtonBase.d.ts +0 -4
  53. package/dist/Button/ButtonStandard.d.ts +0 -19
  54. package/dist/Button/ButtonStandard.js +0 -50
  55. package/dist/Button/index.d.ts +0 -9
  56. package/dist/Calendar/CalendarBottomBar.d.ts +0 -4
  57. package/dist/Calendar/CalendarCell.d.ts +0 -8
  58. package/dist/Calendar/CalendarDateContainer.d.ts +0 -6
  59. package/dist/Calendar/CalendarEmptyCell.d.ts +0 -4
  60. package/dist/Calendar/CalendarMonthControl.d.ts +0 -6
  61. package/dist/Calendar/CalendarPaper.d.ts +0 -6
  62. package/dist/Calendar/CalendarTopBar.d.ts +0 -4
  63. package/dist/Calendar/CalendarWeekDayLabel.d.ts +0 -6
  64. package/dist/Calendar/CalendarWeekDaysBar.d.ts +0 -10
  65. package/dist/Calendar/CalendarWeekRow.d.ts +0 -6
  66. package/dist/Calendar/IconChevronLeft.d.ts +0 -3
  67. package/dist/Calendar/IconChevronRight.d.ts +0 -3
  68. package/dist/Calendar/index.d.ts +0 -18
  69. package/dist/Calendar/use-calendar.d.ts +0 -50
  70. package/dist/DatePicker/index.d.ts +0 -3
  71. package/dist/ErrorBoundary/index.d.ts +0 -19
  72. package/dist/Image/index.d.ts +0 -7
  73. package/dist/MaskedField/index.d.ts +0 -33
  74. package/dist/MaskedField/templates.d.ts +0 -11
  75. package/dist/MaskedField/useMasked.d.ts +0 -18
  76. package/dist/Menu/MenuItem.d.ts +0 -10
  77. package/dist/Menu/MenuItemInner.d.ts +0 -7
  78. package/dist/Menu/MenuWrapper.d.ts +0 -10
  79. package/dist/Menu/index.d.ts +0 -196
  80. package/dist/Menu/popper-options.d.ts +0 -4
  81. package/dist/Menu/reducer.d.ts +0 -14
  82. package/dist/Modal/CloseIcon.d.ts +0 -3
  83. package/dist/Modal/ModalConfirmBox.d.ts +0 -9
  84. package/dist/Modal/ModalDialog.d.ts +0 -7
  85. package/dist/Modal/ModalDrawer.d.ts +0 -11
  86. package/dist/Modal/ModalMessageBox.d.ts +0 -8
  87. package/dist/Modal/index.d.ts +0 -12
  88. package/dist/NoSSR/index.d.ts +0 -7
  89. package/dist/PhoneField/CountryFlag.d.ts +0 -6
  90. package/dist/PhoneField/flags/BYFlag.d.ts +0 -3
  91. package/dist/PhoneField/flags/JPFlag.d.ts +0 -3
  92. package/dist/PhoneField/flags/KZFlag.d.ts +0 -3
  93. package/dist/PhoneField/flags/RUFlag.d.ts +0 -3
  94. package/dist/PhoneField/flags/UAFlag.d.ts +0 -3
  95. package/dist/PhoneField/flags/USFlag.d.ts +0 -3
  96. package/dist/PhoneField/flags/UnknownFlag.d.ts +0 -3
  97. package/dist/PhoneField/index.d.ts +0 -49
  98. package/dist/PhoneField/templates.d.ts +0 -3
  99. package/dist/PhoneField/usePhoneUtils.d.ts +0 -65
  100. package/dist/SelectBox/IconChevronDown.d.ts +0 -3
  101. package/dist/SelectBox/SelectButton.d.ts +0 -10
  102. package/dist/SelectBox/index.d.ts +0 -40
  103. package/dist/SelectBox/popper-options.d.ts +0 -4
  104. package/dist/TextField/TextFieldContainer.d.ts +0 -7
  105. package/dist/TextField/TextFieldErrorText.d.ts +0 -8
  106. package/dist/TextField/TextFieldIconWrapper.d.ts +0 -8
  107. package/dist/TextField/TextFieldInput.d.ts +0 -7
  108. package/dist/TextField/TextFieldLabel.d.ts +0 -7
  109. package/dist/TextField/TextFieldLabelAsterisk.d.ts +0 -7
  110. package/dist/TextField/TextFieldWrapper.d.ts +0 -14
  111. package/dist/TextField/index.d.ts +0 -14
  112. package/dist/ThemeProvider/createTheme.d.ts +0 -36
  113. package/dist/ThemeProvider/createTheme.js +0 -34
  114. package/dist/ThemeProvider/index.d.ts +0 -8
  115. package/dist/Typography/Base.d.ts +0 -6
  116. package/dist/Typography/Blockquote.d.ts +0 -6
  117. package/dist/Typography/Del.d.ts +0 -6
  118. package/dist/Typography/Em.d.ts +0 -6
  119. package/dist/Typography/H1.d.ts +0 -6
  120. package/dist/Typography/H2.d.ts +0 -6
  121. package/dist/Typography/H3.d.ts +0 -6
  122. package/dist/Typography/H4.d.ts +0 -6
  123. package/dist/Typography/H5.d.ts +0 -6
  124. package/dist/Typography/List.d.ts +0 -14
  125. package/dist/Typography/Paragraph.d.ts +0 -6
  126. package/dist/Typography/SectionDescription.d.ts +0 -8
  127. package/dist/Typography/SectionTitle.d.ts +0 -8
  128. package/dist/Typography/Span.d.ts +0 -6
  129. package/dist/Typography/Strong.d.ts +0 -6
  130. package/dist/Typography/U.d.ts +0 -6
  131. package/dist/color/Color.d.ts +0 -44
  132. package/dist/color/index.d.ts +0 -3
  133. package/dist/index.d.ts +0 -4
  134. /package/{dist/Autocomplete → Autocomplete}/index.js +0 -0
  135. /package/{dist/Autocomplete → Autocomplete}/popper-options.js +0 -0
  136. /package/{dist/Button → Button}/index.js +0 -0
  137. /package/{dist/Calendar → Calendar}/CalendarBottomBar.js +0 -0
  138. /package/{dist/Calendar → Calendar}/CalendarDateContainer.js +0 -0
  139. /package/{dist/Calendar → Calendar}/CalendarEmptyCell.js +0 -0
  140. /package/{dist/Calendar → Calendar}/CalendarTopBar.js +0 -0
  141. /package/{dist/Calendar → Calendar}/CalendarWeekDaysBar.js +0 -0
  142. /package/{dist/Calendar → Calendar}/CalendarWeekRow.js +0 -0
  143. /package/{dist/Calendar → Calendar}/IconChevronLeft.js +0 -0
  144. /package/{dist/Calendar → Calendar}/IconChevronRight.js +0 -0
  145. /package/{dist/Calendar → Calendar}/index.js +0 -0
  146. /package/{dist/Calendar → Calendar}/use-calendar.js +0 -0
  147. /package/{dist/DatePicker → DatePicker}/index.js +0 -0
  148. /package/{dist/ErrorBoundary → ErrorBoundary}/index.js +0 -0
  149. /package/{dist/Image → Image}/index.js +0 -0
  150. /package/{dist/MaskedField → MaskedField}/index.js +0 -0
  151. /package/{dist/MaskedField → MaskedField}/templates.js +0 -0
  152. /package/{dist/MaskedField → MaskedField}/useMasked.js +0 -0
  153. /package/{dist/Menu → Menu}/MenuItem.js +0 -0
  154. /package/{dist/Menu → Menu}/index.js +0 -0
  155. /package/{dist/Menu → Menu}/popper-options.js +0 -0
  156. /package/{dist/Menu → Menu}/reducer.js +0 -0
  157. /package/{dist/Modal → Modal}/CloseIcon.js +0 -0
  158. /package/{dist/Modal → Modal}/index.js +0 -0
  159. /package/{dist/NoSSR → NoSSR}/index.js +0 -0
  160. /package/{dist/PhoneField → PhoneField}/flags/BYFlag.js +0 -0
  161. /package/{dist/PhoneField → PhoneField}/flags/JPFlag.js +0 -0
  162. /package/{dist/PhoneField → PhoneField}/flags/KZFlag.js +0 -0
  163. /package/{dist/PhoneField → PhoneField}/flags/RUFlag.js +0 -0
  164. /package/{dist/PhoneField → PhoneField}/flags/UAFlag.js +0 -0
  165. /package/{dist/PhoneField → PhoneField}/flags/USFlag.js +0 -0
  166. /package/{dist/PhoneField → PhoneField}/index.js +0 -0
  167. /package/{dist/PhoneField → PhoneField}/templates.js +0 -0
  168. /package/{dist/PhoneField → PhoneField}/usePhoneUtils.js +0 -0
  169. /package/{dist/SelectBox → SelectBox}/IconChevronDown.js +0 -0
  170. /package/{dist/SelectBox → SelectBox}/index.js +0 -0
  171. /package/{dist/SelectBox → SelectBox}/popper-options.js +0 -0
  172. /package/{dist/TextField → TextField}/TextFieldContainer.js +0 -0
  173. /package/{dist/TextField → TextField}/TextFieldIconWrapper.js +0 -0
  174. /package/{dist/TextField → TextField}/TextFieldInput.js +0 -0
  175. /package/{dist/TextField → TextField}/TextFieldLabel.js +0 -0
  176. /package/{dist/TextField → TextField}/index.js +0 -0
  177. /package/{dist/ThemeProvider → ThemeProvider}/index.js +0 -0
  178. /package/{dist/Typography → Typography}/SectionDescription.js +0 -0
  179. /package/{dist/Typography → Typography}/SectionTitle.js +0 -0
  180. /package/{dist/Typography → Typography}/U.js +0 -0
  181. /package/{dist/color → color}/index.js +0 -0
@@ -0,0 +1,11 @@
1
+ declare module '@via-profit/ui-kit/Button/ButtonAccent' {
2
+ import '@via-profit/ui-kit';
3
+
4
+ import { ButtonBaseProps } from '@via-profit/ui-kit/Button/ButtonBase';
5
+
6
+ export type ButtonAccentProps = ButtonBaseProps;
7
+
8
+ const ButtonAccent: React.FC<ButtonAccentProps>;
9
+
10
+ export default ButtonAccent;
11
+ }
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ var __rest = (this && this.__rest) || function (s, e) {
3
+ var t = {};
4
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
+ t[p] = s[p];
6
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
+ t[p[i]] = s[p[i]];
10
+ }
11
+ return t;
12
+ };
13
+ var __importDefault = (this && this.__importDefault) || function (mod) {
14
+ return (mod && mod.__esModule) ? mod : { "default": mod };
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ const react_1 = __importDefault(require("react"));
18
+ const styled_1 = __importDefault(require("@emotion/styled"));
19
+ const react_2 = require("@emotion/react");
20
+ const ButtonBase_1 = __importDefault(require("./ButtonBase"));
21
+ const Button = (0, styled_1.default)(ButtonBase_1.default) `
22
+ color: ${({ theme, disabled }) => disabled
23
+ ? theme.colors.textPrimary.alpha(0.4).toString()
24
+ : theme.colors.accentPrimaryContrast.toString()};
25
+ background-color: ${({ theme, disabled }) => disabled
26
+ ? theme.colors.backgroundGrey.darken(30).toString()
27
+ : theme.colors.accentPrimary.toString()};
28
+
29
+ ${({ disabled, theme }) => !disabled &&
30
+ (0, react_2.css) `
31
+ box-shadow: 0 2px 12px ${theme.colors.accentPrimary.darken(60).alpha(0.3).toString()};
32
+ &:hover {
33
+ background-color: ${theme.colors.accentPrimary.darken(20).toString()};
34
+ }
35
+ &:active {
36
+ background-color: ${theme.colors.accentPrimary.darken(30).toString()};
37
+ }
38
+ &:focus-visible {
39
+ outline: 2px solid ${theme.colors.accentPrimary.darken(20).toString()};
40
+ }
41
+ `};
42
+ `;
43
+ const ButtonAccent = (props, ref) => {
44
+ const { children } = props, restProps = __rest(props, ["children"]);
45
+ return (react_1.default.createElement(Button, Object.assign({}, restProps, { ref: ref }), children));
46
+ };
47
+ exports.default = react_1.default.forwardRef(ButtonAccent);
@@ -0,0 +1,8 @@
1
+ declare module '@via-profit/ui-kit/Button/ButtonBase' {
2
+ import '@via-profit/ui-kit';
3
+
4
+ export interface ButtonBaseProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
5
+ readonly startIcon?: JSX.Element;
6
+ readonly endIcon?: JSX.Element;
7
+ }
8
+ }
@@ -16,23 +16,28 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  const react_1 = __importDefault(require("react"));
18
18
  const styled_1 = __importDefault(require("@emotion/styled"));
19
+ const StartIconWrapper_1 = __importDefault(require("./components/StartIconWrapper"));
20
+ const EndIconWrapper_1 = __importDefault(require("./components/EndIconWrapper"));
21
+ const TextWrapper_1 = __importDefault(require("./components/TextWrapper"));
19
22
  const Button = styled_1.default.button `
20
23
  border-radius: ${({ theme }) => theme.shape.radiusFactor * 2}em;
21
24
  padding: 0.8em 1em;
22
- cursor: pointer;
25
+ font-size: 0.8rem;
26
+ cursor: ${({ disabled }) => (disabled ? 'default' : 'pointer')};
23
27
  font-size: 1em;
24
28
  border: 0;
25
29
  outline: transparent;
26
30
  transition: all 180ms ease-out 0s;
27
31
  background: none;
28
32
  color: currentColor;
29
- `;
30
- const ButtonText = styled_1.default.span `
31
- font-size: 0.86em;
33
+ display: inline-flex;
34
+ align-items: center;
32
35
  `;
33
36
  const ButtonBase = (props, ref) => {
34
- const { children } = props, otherProps = __rest(props, ["children"]);
37
+ const { children, startIcon, endIcon } = props, otherProps = __rest(props, ["children", "startIcon", "endIcon"]);
35
38
  return (react_1.default.createElement(Button, Object.assign({}, otherProps, { ref: ref }),
36
- react_1.default.createElement(ButtonText, null, children)));
39
+ typeof startIcon !== 'undefined' && startIcon !== null && (react_1.default.createElement(StartIconWrapper_1.default, null, startIcon)),
40
+ react_1.default.createElement(TextWrapper_1.default, null, children),
41
+ typeof endIcon !== 'undefined' && endIcon !== null && (react_1.default.createElement(EndIconWrapper_1.default, null, endIcon))));
37
42
  };
38
43
  exports.default = react_1.default.forwardRef(ButtonBase);
@@ -0,0 +1,11 @@
1
+ declare module '@via-profit/ui-kit/Button/ButtonStandard' {
2
+ import '@via-profit/ui-kit';
3
+
4
+ import { ButtonBaseProps } from '@via-profit/ui-kit/Button/ButtonBase';
5
+
6
+ export type ButtonStandardProps = ButtonBaseProps;
7
+
8
+ const ButtonStandard: React.FC<ButtonStandardProps>;
9
+
10
+ export default ButtonStandard;
11
+ }
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ var __rest = (this && this.__rest) || function (s, e) {
3
+ var t = {};
4
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
+ t[p] = s[p];
6
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
+ t[p[i]] = s[p[i]];
10
+ }
11
+ return t;
12
+ };
13
+ var __importDefault = (this && this.__importDefault) || function (mod) {
14
+ return (mod && mod.__esModule) ? mod : { "default": mod };
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ const react_1 = __importDefault(require("react"));
18
+ const styled_1 = __importDefault(require("@emotion/styled"));
19
+ const react_2 = require("@emotion/react");
20
+ const ButtonBase_1 = __importDefault(require("./ButtonBase"));
21
+ /**
22
+ * Standard
23
+ */
24
+ const StyledButtonBase = (0, styled_1.default)(ButtonBase_1.default) `
25
+ color: ${({ theme, disabled }) => disabled
26
+ ? theme.colors.textPrimary.alpha(0.4).toString()
27
+ : theme.colors.textPrimary.toString()};
28
+ background-color: ${({ theme, disabled }) => disabled
29
+ ? theme.colors.backgroundGrey.darken(10).toString()
30
+ : theme.isDark
31
+ ? theme.colors.backgroundPrimary.lighten(20).toString()
32
+ : theme.colors.backgroundPrimary.toString()};
33
+
34
+ ${({ disabled, theme }) => !disabled &&
35
+ (0, react_2.css) `
36
+ box-shadow: 0 2px 12px ${theme.colors.backgroundPrimary.darken(40).alpha(0.6).toString()};
37
+ &:hover {
38
+ background-color: ${theme.colors.backgroundPrimary.darken(20).toString()};
39
+ }
40
+ &:active {
41
+ background-color: ${theme.colors.backgroundPrimary.darken(40).toString()};
42
+ }
43
+ &:focus-visible {
44
+ outline: 2px solid ${theme.colors.accentPrimary.toString()};
45
+ }
46
+ `}
47
+ `;
48
+ const ButtonStandard = (props, ref) => {
49
+ const { children, disabled } = props, restProps = __rest(props, ["children", "disabled"]);
50
+ return (react_1.default.createElement(StyledButtonBase, Object.assign({ disabled: disabled }, restProps, { ref: ref }), children));
51
+ };
52
+ exports.default = react_1.default.forwardRef(ButtonStandard);
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const styled_1 = __importDefault(require("@emotion/styled"));
7
+ const EndIconWrapper = styled_1.default.span `
8
+ margin-left: 0.8em;
9
+ `;
10
+ exports.default = EndIconWrapper;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const styled_1 = __importDefault(require("@emotion/styled"));
7
+ const StartIconWrapper = styled_1.default.span `
8
+ margin-right: 0.8em;
9
+ `;
10
+ exports.default = StartIconWrapper;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const styled_1 = __importDefault(require("@emotion/styled"));
7
+ const TextWrapper = styled_1.default.span `
8
+ font-size: 0.86em;
9
+ display: flex;
10
+ align-items: center;
11
+ `;
12
+ exports.default = TextWrapper;
@@ -0,0 +1,10 @@
1
+ declare module '@via-profit/ui-kit/Button' {
2
+ import { ButtonAccentProps } from '@via-profit/ui-kit/Button/ButtonAccent';
3
+ import { ButtonStandardProps } from '@via-profit/ui-kit/Button/ButtonStandard';
4
+
5
+ export interface BaseProps {
6
+ readonly variant?: 'standard' | 'accent';
7
+ }
8
+
9
+ export type ButtonProps = (ButtonStandardProps | ButtonAccentProps) & BaseProps;
10
+ }
@@ -29,28 +29,28 @@ const Btn = styled_1.default.button `
29
29
  cursor: ${({ $isDisabled }) => ($isDisabled ? 'default' : 'pointer')};
30
30
  border: 1px solid transparent;
31
31
  background-color: ${({ theme, $isSelected }) => $isSelected
32
- ? theme.colors.accentPrimary().toString()
33
- : theme.colors.backgroundPrimary().toString()};
32
+ ? theme.colors.accentPrimary.toString()
33
+ : theme.colors.backgroundPrimary.toString()};
34
34
  border-radius: ${({ theme }) => theme.shape.radiusFactor * 3}em;
35
35
  color: ${({ $isToday, theme, $isSelected, $isDisabled }) => {
36
36
  if ($isDisabled) {
37
- return theme.colors.textSecondary().toString();
37
+ return theme.colors.textSecondary.toString();
38
38
  }
39
39
  if ($isSelected) {
40
- return theme.colors.accentPrimaryContrast().toString();
40
+ return theme.colors.accentPrimaryContrast.toString();
41
41
  }
42
42
  if ($isToday) {
43
- return theme.colors.accentPrimary().toString();
43
+ return theme.colors.accentPrimary.toString();
44
44
  }
45
- return theme.colors.textPrimary().toString();
45
+ return theme.colors.textPrimary.toString();
46
46
  }};
47
47
  &:hover {
48
48
  background-color: ${({ theme, $isSelected }) => $isSelected
49
- ? theme.colors.accentPrimary().darken(0.1).toString()
50
- : theme.colors.backgroundPrimary().darken(0.1).toString()};
49
+ ? theme.colors.accentPrimary.darken(0.1).toString()
50
+ : theme.colors.backgroundPrimary.darken(0.1).toString()};
51
51
  }
52
52
  &:focus-visible {
53
- border-color: ${({ theme, $isDisabled }) => $isDisabled ? 'transparent' : theme.colors.accentPrimary().toString()};
53
+ border-color: ${({ theme, $isDisabled }) => $isDisabled ? 'transparent' : theme.colors.accentPrimary.toString()};
54
54
  }
55
55
  opacity: ${({ $isDisabled }) => ($isDisabled ? 0.4 : 1)};
56
56
  `;
@@ -31,14 +31,14 @@ const Btn = styled_1.default.button `
31
31
  outline: none;
32
32
  cursor: pointer;
33
33
  border: 1px solid transparent;
34
- background-color: ${({ theme }) => theme.colors.backgroundPrimary().toString()};
34
+ background-color: ${({ theme }) => theme.colors.backgroundPrimary.toString()};
35
35
  border-radius: ${({ theme }) => theme.shape.radiusFactor * 3}em;
36
- color: ${({ theme }) => theme.colors.textPrimary().toString()};
36
+ color: ${({ theme }) => theme.colors.textPrimary.toString()};
37
37
  &:hover {
38
- background-color: ${({ theme }) => theme.colors.backgroundPrimary().darken(0.1).toString()};
38
+ background-color: ${({ theme }) => theme.colors.backgroundPrimary.darken(0.1).toString()};
39
39
  }
40
40
  &:focus-visible {
41
- border-color: ${({ theme }) => theme.colors.accentPrimary().toString()};
41
+ border-color: ${({ theme }) => theme.colors.accentPrimary.toString()};
42
42
  }
43
43
  opacity: ${({ disabled }) => (disabled ? 0.4 : 1)};
44
44
  `;
@@ -9,12 +9,12 @@ const CalendarPaper = styled_1.default.div `
9
9
  display: flex;
10
10
  flex-direction: column;
11
11
  justify-content: stretch;
12
- background-color: ${({ theme }) => theme.colors.backgroundPrimary().toString()};
12
+ background-color: ${({ theme }) => theme.colors.backgroundPrimary.toString()};
13
13
  border-radius: ${({ theme }) => theme.shape.radiusFactor * 1}em;
14
14
  padding: 0.4em;
15
15
  max-width: 17.6em;
16
16
  max-height: 20.4em;
17
17
  box-shadow: 0 4px 24px
18
- ${({ theme }) => theme.colors.backgroundPrimary().darken(0.5).alpha(0.6).toString()};
18
+ ${({ theme }) => theme.colors.backgroundPrimary.darken(0.5).alpha(0.6).toString()};
19
19
  `;
20
20
  exports.default = CalendarPaper;
@@ -12,6 +12,6 @@ const CalendarWeekDayLabel = styled_1.default.div `
12
12
  user-select: none;
13
13
  width: 3em;
14
14
  height: 3em;
15
- color: ${({ theme }) => theme.colors.textSecondary().toString()};
15
+ color: ${({ theme }) => theme.colors.textSecondary.toString()};
16
16
  `;
17
17
  exports.default = react_1.default.memo(CalendarWeekDayLabel);
@@ -24,19 +24,19 @@ const InnerContainer = styled_1.default.div `
24
24
  border-radius: ${({ theme }) => theme.shape.radiusFactor * 1}em;
25
25
  background-color: ${({ theme, selected, hovered }) => {
26
26
  if (selected && hovered) {
27
- return theme.colors.accentPrimary().darken(0.1).toString();
27
+ return theme.colors.accentPrimary.darken(0.1).toString();
28
28
  }
29
29
  if (selected) {
30
- return theme.colors.accentPrimary().toString();
30
+ return theme.colors.accentPrimary.toString();
31
31
  }
32
32
  if (hovered) {
33
- return theme.colors.backgroundGrey().darken(0.04).toString();
33
+ return theme.colors.backgroundGrey.darken(0.04).toString();
34
34
  }
35
35
  return 'inherit';
36
36
  }};
37
37
  color: ${({ theme, selected }) => {
38
38
  if (selected) {
39
- return theme.colors.accentPrimaryContrast().toString();
39
+ return theme.colors.accentPrimaryContrast.toString();
40
40
  }
41
41
  return 'inherit';
42
42
  }};
@@ -25,10 +25,10 @@ const StyledMenuWrapper = styled_1.default.div `
25
25
  transition: visibility 120ms ease-out, opacity 120ms ease-out;
26
26
  opacity: ${props => (props.$isOpen ? 1 : 0)};
27
27
  visibility: ${props => (props.$isOpen ? 'visible' : 'hidden')};
28
- background-color: ${({ theme }) => theme.colors.backgroundPrimary().toString()};
28
+ background-color: ${({ theme }) => theme.colors.backgroundPrimary.toString()};
29
29
  border-radius: ${({ theme }) => theme.shape.radiusFactor * 2}em;
30
30
  box-shadow: 0 4px 24px
31
- ${({ theme }) => theme.colors.backgroundPrimary().darken(0.5).alpha(0.6).toString()};
31
+ ${({ theme }) => theme.colors.backgroundPrimary.darken(0.5).alpha(0.6).toString()};
32
32
  &:focus {
33
33
  outline: none;
34
34
  }
@@ -43,20 +43,20 @@ const StyledMenuWrapper = styled_1.default.div `
43
43
 
44
44
  & ::-webkit-scrollbar-track {
45
45
  background: ${({ theme }) => theme.isDark
46
- ? theme.colors.backgroundPrimary().darken(0.1).toString()
47
- : theme.colors.backgroundPrimary().darken(0.05).toString()};
46
+ ? theme.colors.backgroundPrimary.darken(0.1).toString()
47
+ : theme.colors.backgroundPrimary.darken(0.05).toString()};
48
48
  }
49
49
 
50
50
  & ::-webkit-scrollbar-thumb {
51
51
  background: ${({ theme }) => theme.isDark
52
- ? theme.colors.backgroundSecondary().lighten(0.3).toString()
53
- : theme.colors.backgroundSecondary().darken(0.3).toString()};
52
+ ? theme.colors.backgroundSecondary.lighten(0.3).toString()
53
+ : theme.colors.backgroundSecondary.darken(0.3).toString()};
54
54
  border-radius: 0.3rem;
55
55
  }
56
56
 
57
57
  & ::-webkit-scrollbar-thumb:horizontal:hover,
58
58
  & ::-webkit-scrollbar-thumb:vertical:hover {
59
- background: ${({ theme }) => theme.colors.accentPrimary().toString()};
59
+ background: ${({ theme }) => theme.colors.accentPrimary.toString()};
60
60
  }
61
61
  `;
62
62
  const MenuWrapperInner = styled_1.default.div `
@@ -41,7 +41,7 @@ const React = __importStar(require("react"));
41
41
  const styled_1 = __importDefault(require("@emotion/styled"));
42
42
  const react_1 = require("@emotion/react");
43
43
  const react_modal_1 = __importDefault(require("react-modal"));
44
- const Button_1 = __importDefault(require("@via-profit/ui-kit/src/Button"));
44
+ const Button_1 = __importDefault(require("../Button"));
45
45
  const Container = styled_1.default.div `
46
46
  display: flex;
47
47
  flex-flow: column;
@@ -127,7 +127,7 @@ const ModalConfirmBox = (props, ref) => {
127
127
  overflow: auto;
128
128
  -webkit-overflow-scrolling: touch;
129
129
  outline: none;
130
- background: ${theme.colors.backgroundPrimary().toString()};
130
+ background: ${theme.colors.backgroundPrimary.toString()};
131
131
  border-radius: 1em;
132
132
  transform: translate(-50%, -40%);
133
133
  transition: transform 100ms ease-in-out, opacity 100ms ease-in-out;
@@ -78,7 +78,7 @@ const ModalDialog = (props, ref) => {
78
78
  overflow: auto;
79
79
  -webkit-overflow-scrolling: touch;
80
80
  outline: none;
81
- background: ${theme.colors.backgroundPrimary().toString()};
81
+ background: ${theme.colors.backgroundPrimary.toString()};
82
82
  border-radius: 1em;
83
83
  transform: translate(-50%, -40%);
84
84
  transition: transform 100ms ease-in-out, opacity 100ms ease-in-out;
@@ -41,7 +41,7 @@ const React = __importStar(require("react"));
41
41
  const styled_1 = __importDefault(require("@emotion/styled"));
42
42
  const react_1 = require("@emotion/react");
43
43
  const react_modal_1 = __importDefault(require("react-modal"));
44
- const Button_1 = __importDefault(require("@via-profit/ui-kit/src/Button"));
44
+ const Button_1 = __importDefault(require("../Button"));
45
45
  const CloseIcon_1 = __importDefault(require("./CloseIcon"));
46
46
  const Container = styled_1.default.div `
47
47
  min-height: 2rem;
@@ -76,7 +76,7 @@ const Inner = styled_1.default.div `
76
76
  `;
77
77
  const CloseButton = (0, styled_1.default)(Button_1.default) `
78
78
  margin-left: ${props => (props.$withToolbar ? '1em' : 0)};
79
- color: ${props => props.theme.colors.textPrimary().toString()};
79
+ color: ${props => props.theme.colors.textPrimary.toString()};
80
80
  background: none;
81
81
  width: auto;
82
82
  height: auto;
@@ -131,7 +131,7 @@ const ModalDrawer = (props, ref) => {
131
131
  overflow: auto;
132
132
  -webkit-overflow-scrolling: touch;
133
133
  outline: none;
134
- background: ${theme.colors.backgroundPrimary().toString()};
134
+ background: ${theme.colors.backgroundPrimary.toString()};
135
135
  border-radius: 1em 1em 0 0;
136
136
  transform: translate(0, 100%);
137
137
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
@@ -41,7 +41,7 @@ const React = __importStar(require("react"));
41
41
  const styled_1 = __importDefault(require("@emotion/styled"));
42
42
  const react_1 = require("@emotion/react");
43
43
  const react_modal_1 = __importDefault(require("react-modal"));
44
- const Button_1 = __importDefault(require("@via-profit/ui-kit/src/Button"));
44
+ const Button_1 = __importDefault(require("../Button"));
45
45
  const Container = styled_1.default.div `
46
46
  display: flex;
47
47
  flex-flow: column;
@@ -126,7 +126,7 @@ const ModalMessageBox = (props, ref) => {
126
126
  overflow: auto;
127
127
  -webkit-overflow-scrolling: touch;
128
128
  outline: none;
129
- background: ${theme.colors.backgroundPrimary().toString()};
129
+ background: ${theme.colors.backgroundPrimary.toString()};
130
130
  border-radius: 1em;
131
131
  transform: translate(-50%, -40%);
132
132
  transition: transform 100ms ease-in-out, opacity 100ms ease-in-out;
@@ -32,7 +32,7 @@ const CountryFlagContainer = styled_1.default.span `
32
32
  overflow: hidden;
33
33
  margin-left: 0.5em;
34
34
  margin-right: 0.5em;
35
- border: 1px solid ${({ theme }) => theme.colors.textPrimary().alpha(0.8).toString()};
35
+ border: 1px solid ${({ theme }) => theme.colors.textPrimary.alpha(0.8).toString()};
36
36
  `;
37
37
  const CountryFlag = props => {
38
38
  const { countryCode } = props, otherProps = __rest(props, ["countryCode"]);
@@ -28,7 +28,7 @@ const react_1 = require("@emotion/react");
28
28
  const UnknownFlag = (props, ref) => {
29
29
  const { colors } = (0, react_1.useTheme)();
30
30
  return (React.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 512 512", ref: ref }, props),
31
- React.createElement("path", { transform: "translate(78.682 31.951)", d: "m-78.682-31.951h512v512h-512z", fill: colors.backgroundPrimary().toString(), strokeLinejoin: "round", strokeWidth: "2.176" }),
32
- React.createElement("path", { transform: "translate(78.682 31.951)", d: "m177.32 288.09q-4.915 0-8.0953-3.1803-3.1803-3.4694-3.1803-8.3844 0-11.854 5.7824-25.153 5.7823-13.299 15.612-22.551l7.2279-6.6497q9.83-9.2518 15.323-15.323 5.4932-6.3606 8.9626-15.034 3.7585-8.9626 3.7585-20.527 0-11.276-5.4932-20.527-5.4932-9.5409-15.612-15.034-10.119-5.4932-23.129-5.4932-21.395 0-34.116 13.01-12.432 12.721-12.432 33.248 0 4.915-3.1803 8.0953-2.8912 2.8912-7.8062 2.8912t-8.0953-2.8912q-3.1803-3.1803-3.1803-8.0953 0-19.66 8.6735-34.983 8.6735-15.323 24.286-23.997 15.612-8.6735 35.851-8.6735 19.082 0 34.116 8.3844 15.323 8.0953 23.708 22.551 8.6735 14.456 8.6735 32.67 0 14.167-4.6259 24.864-4.6259 10.408-11.854 18.503-6.9388 8.0953-19.949 19.949l-5.2041 4.6259q-8.0953 7.2279-11.565 17.058-3.1803 9.5409-3.1803 19.082 0 4.915-3.1803 8.3844-3.1803 3.1803-8.0953 3.1803zm0 51.174q-7.2279 0-12.143-4.915-4.6259-4.915-4.6259-11.854 0-7.2279 4.915-12.143 4.915-4.915 11.854-4.915t11.854 4.915q5.2041 4.915 5.2041 12.143 0 6.9388-5.2041 11.854-4.915 4.915-11.854 4.915z", fill: colors.textPrimary().toString(), strokeWidth: ".72279" })));
31
+ React.createElement("path", { transform: "translate(78.682 31.951)", d: "m-78.682-31.951h512v512h-512z", fill: colors.backgroundPrimary.toString(), strokeLinejoin: "round", strokeWidth: "2.176" }),
32
+ React.createElement("path", { transform: "translate(78.682 31.951)", d: "m177.32 288.09q-4.915 0-8.0953-3.1803-3.1803-3.4694-3.1803-8.3844 0-11.854 5.7824-25.153 5.7823-13.299 15.612-22.551l7.2279-6.6497q9.83-9.2518 15.323-15.323 5.4932-6.3606 8.9626-15.034 3.7585-8.9626 3.7585-20.527 0-11.276-5.4932-20.527-5.4932-9.5409-15.612-15.034-10.119-5.4932-23.129-5.4932-21.395 0-34.116 13.01-12.432 12.721-12.432 33.248 0 4.915-3.1803 8.0953-2.8912 2.8912-7.8062 2.8912t-8.0953-2.8912q-3.1803-3.1803-3.1803-8.0953 0-19.66 8.6735-34.983 8.6735-15.323 24.286-23.997 15.612-8.6735 35.851-8.6735 19.082 0 34.116 8.3844 15.323 8.0953 23.708 22.551 8.6735 14.456 8.6735 32.67 0 14.167-4.6259 24.864-4.6259 10.408-11.854 18.503-6.9388 8.0953-19.949 19.949l-5.2041 4.6259q-8.0953 7.2279-11.565 17.058-3.1803 9.5409-3.1803 19.082 0 4.915-3.1803 8.3844-3.1803 3.1803-8.0953 3.1803zm0 51.174q-7.2279 0-12.143-4.915-4.6259-4.915-4.6259-11.854 0-7.2279 4.915-12.143 4.915-4.915 11.854-4.915t11.854 4.915q5.2041 4.915 5.2041 12.143 0 6.9388-5.2041 11.854-4.915 4.915-11.854 4.915z", fill: colors.textPrimary.toString(), strokeWidth: ".72279" })));
33
33
  };
34
34
  exports.default = React.forwardRef(UnknownFlag);
@@ -36,16 +36,16 @@ const StyledButton = styled_1.default.button `
36
36
  border: 1px solid;
37
37
  border-radius: ${({ theme }) => theme.shape.radiusFactor * 2}em;
38
38
  border-color: ${({ theme }) => theme.isDark
39
- ? theme.colors.backgroundPrimary().lighten(1.4).toString()
40
- : theme.colors.backgroundPrimary().darken(0.4).toString()};
39
+ ? theme.colors.backgroundPrimary.lighten(1.4).toString()
40
+ : theme.colors.backgroundPrimary.darken(0.4).toString()};
41
41
  &:hover {
42
- background-color: ${({ theme }) => theme.colors.backgroundPrimary().darken(0.05).toString()};
42
+ background-color: ${({ theme }) => theme.colors.backgroundPrimary.darken(0.05).toString()};
43
43
  }
44
44
  &:active {
45
- background-color: ${({ theme }) => theme.colors.backgroundPrimary().darken(0.1).toString()};
45
+ background-color: ${({ theme }) => theme.colors.backgroundPrimary.darken(0.1).toString()};
46
46
  }
47
47
  &:focus-visible {
48
- outline: 2px solid ${({ theme }) => theme.colors.accentPrimary().toString()};
48
+ outline: 2px solid ${({ theme }) => theme.colors.accentPrimary.toString()};
49
49
  }
50
50
  `;
51
51
  const ValueWrapper = styled_1.default.span `
@@ -47,7 +47,7 @@ const ErrorTextContainer = styled_1.default.div `
47
47
  overflow: hidden;
48
48
  `;
49
49
  const ErrorTextInner = styled_1.default.div `
50
- color: ${({ theme }) => theme.colors.error().toString()};
50
+ color: ${({ theme }) => theme.colors.error.toString()};
51
51
  font-size: 0.8em;
52
52
  transform: translateY(${({ $error }) => ($error ? 0 : '0.2em')});
53
53
  opacity: ${({ $error }) => ($error ? 1 : 0)};
@@ -42,7 +42,7 @@ const styled_1 = __importDefault(require("@emotion/styled"));
42
42
  const Asterisk = styled_1.default.span `
43
43
  font-size: 0.8em;
44
44
  margin-left: 0.2em;
45
- color: ${({ theme }) => theme.colors.error().toString()};
45
+ color: ${({ theme }) => theme.colors.error.toString()};
46
46
  `;
47
47
  const TextFieldLabelAsterisk = (props, ref) => {
48
48
  const { children, error, focused } = props, otherProps = __rest(props, ["children", "error", "focused"]);
@@ -47,25 +47,25 @@ const Wrapper = styled_1.default.div `
47
47
  border: 1px solid;
48
48
  outline: 1px solid transparent;
49
49
  border-color: ${({ theme }) => theme.isDark
50
- ? theme.colors.textPrimary().darken(100).toString()
51
- : theme.colors.textPrimary().lighten(150).toString()};
50
+ ? theme.colors.textPrimary.darken(100).toString()
51
+ : theme.colors.textPrimary.lighten(150).toString()};
52
52
  width: ${({ $fullWidth }) => ($fullWidth ? '100%' : 'auto')};
53
53
  font-size: 0.9em;
54
- background-color: ${({ theme }) => theme.colors.backgroundPrimary().darken(0.02).toString()};
55
- color: ${({ theme }) => theme.colors.textPrimary().toString()};
54
+ background-color: ${({ theme }) => theme.colors.backgroundPrimary.darken(0.02).toString()};
55
+ color: ${({ theme }) => theme.colors.textPrimary.toString()};
56
56
  transition: all 180ms ease-out 0s;
57
57
 
58
58
  ${props => props.$focused &&
59
59
  (0, react_1.css) `
60
- border-color: ${props.theme.colors.accentPrimary().lighten(0.5).toString()};
61
- outline-color: ${props.theme.colors.accentPrimary().lighten(0.5).toString()};
60
+ border-color: ${props.theme.colors.accentPrimary.lighten(0.5).toString()};
61
+ outline-color: ${props.theme.colors.accentPrimary.lighten(0.5).toString()};
62
62
  `};
63
63
  ${props => props.$error &&
64
64
  (0, react_1.css) `
65
- border-color: ${props.theme.colors.error().toString()};
66
- color: ${props.theme.colors.error().toString()};
65
+ border-color: ${props.theme.colors.error.toString()};
66
+ color: ${props.theme.colors.error.toString()};
67
67
  &:focus {
68
- border-color: ${props.theme.colors.error().lighten(0.6).toString()};
68
+ border-color: ${props.theme.colors.error.lighten(0.6).toString()};
69
69
  }
70
70
  `}
71
71
  `;
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ var __rest = (this && this.__rest) || function (s, e) {
3
+ var t = {};
4
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
+ t[p] = s[p];
6
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
+ t[p[i]] = s[p[i]];
10
+ }
11
+ return t;
12
+ };
13
+ var __importDefault = (this && this.__importDefault) || function (mod) {
14
+ return (mod && mod.__esModule) ? mod : { "default": mod };
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ const color_1 = __importDefault(require("../color"));
18
+ const createTheme = overrides => {
19
+ const _a = overrides || {}, { isDark, fontSize, zIndex, colors, shape } = _a, rest = __rest(_a, ["isDark", "fontSize", "zIndex", "colors", "shape"]);
20
+ const theme = Object.assign(Object.assign({}, rest), { isDark: typeof isDark === 'boolean' ? isDark : false, fontSize: Object.assign({ small: 14, normal: 16, medium: 18, large: 20 }, fontSize), zIndex: Object.assign({ header: 8, mainDrawer: 9, modal: 10 }, zIndex), colors: {}, shape: Object.assign({ radiusFactor: 0.5 }, shape) });
21
+ const defaultColors = {
22
+ backgroundPrimary: '#FFFFFF',
23
+ backgroundSecondary: '#F9F9F9',
24
+ backgroundGrey: '#F4F6FA',
25
+ textPrimary: '#212121',
26
+ textSecondary: '#343434',
27
+ accentPrimary: '#FFA800',
28
+ accentPrimaryContrast: '#FFFFFF',
29
+ accentSecondary: '#bd00ff',
30
+ accentSecondaryContrast: '#FFFFFF',
31
+ error: '#ff2b2b',
32
+ };
33
+ Object.entries(Object.assign(Object.assign({}, defaultColors), colors)).forEach(([colorName, colorValue]) => {
34
+ theme.colors[colorName] = new color_1.default(colorValue);
35
+ });
36
+ theme.colors.test = new color_1.default('red');
37
+ return theme;
38
+ };
39
+ exports.default = createTheme;
@@ -0,0 +1,5 @@
1
+ declare module '@via-profit/ui-kit/ThemeProvider' {
2
+ import { UITheme, UIThemeOverrides } from '@via-profit/ui-kit';
3
+
4
+ export type CreateTheme = (overrides?: UIThemeOverrides) => UITheme;
5
+ }
@@ -7,5 +7,6 @@ const styled_1 = __importDefault(require("@emotion/styled"));
7
7
  const Base = styled_1.default.span `
8
8
  font-size: 1rem;
9
9
  font-weight: 300;
10
+ color: ${({ theme }) => theme.colors.textPrimary.toString()};
10
11
  `;
11
12
  exports.default = Base;
@@ -9,8 +9,8 @@ const Blockquote = styled_1.default.blockquote `
9
9
  font-weight: 400;
10
10
  font-style: italic;
11
11
  position: relative;
12
- border-left: 4px solid ${({ theme }) => theme.colors.textSecondary().toString()};
13
- color: ${({ theme }) => theme.colors.textSecondary().toString()};
12
+ border-left: 4px solid ${({ theme }) => theme.colors.textSecondary.toString()};
13
+ color: ${({ theme }) => theme.colors.textSecondary.toString()};
14
14
  margin: 0;
15
15
  padding: 1em 0 1em 2em;
16
16
  & > p:first-of-type {
@@ -6,5 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const styled_1 = __importDefault(require("@emotion/styled"));
7
7
  const Del = styled_1.default.del `
8
8
  font-size: 1em;
9
+ color: ${({ theme }) => theme.colors.textPrimary.toString()};
9
10
  `;
10
11
  exports.default = Del;
@@ -6,5 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const styled_1 = __importDefault(require("@emotion/styled"));
7
7
  const Em = styled_1.default.em `
8
8
  font-size: 1em;
9
+ color: ${({ theme }) => theme.colors.textPrimary.toString()};
9
10
  `;
10
11
  exports.default = Em;