@invoicebox/ui 0.1.0-alpha.162 → 0.1.0-alpha.164

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 (26) hide show
  1. package/dist/components/common/EntityAutocompleteOptionsDrawer/styles.d.ts +2 -38
  2. package/dist/components/common/SecondaryButton/styles.d.ts +2 -38
  3. package/dist/components/common/Typography/index.d.ts +9 -4
  4. package/dist/components/common/Typography/index.js +16 -4
  5. package/dist/components/common/Typography/index.stories.d.ts +1 -1
  6. package/dist/components/form/Autocomplete/components/OrganizationAutocompleteItem/styles.d.ts +6 -222
  7. package/dist/components/form/DateInput/index.d.ts +1 -0
  8. package/dist/components/form/DateInput/index.js +21 -11
  9. package/dist/components/form/DateInput/index.stories.d.ts +1 -0
  10. package/dist/components/form/DateInput/index.stories.js +17 -5
  11. package/dist/components/form/DateInput/logic.d.ts +3 -3
  12. package/dist/components/form/DateInput/logic.js +26 -13
  13. package/dist/components/form/DateInput/styles.d.ts +1 -1
  14. package/dist/components/form/DateInput/styles.js +3 -3
  15. package/dist/components/form/InputLabel/styles.d.ts +2 -38
  16. package/dist/components/form/PureInput/index.d.ts +5 -3
  17. package/dist/components/form/PureInput/index.js +4 -2
  18. package/dist/components/form/PureInput/styles.d.ts +11 -29
  19. package/dist/components/form/PureInput/styles.js +1 -1
  20. package/dist/components/form/Select/styles.d.ts +3 -75
  21. package/dist/components/form/TextInput/index.d.ts +2 -1
  22. package/dist/components/form/TextInput/index.js +5 -2
  23. package/dist/components/payment/PaymentCard/index.js +4 -1
  24. package/dist/components/payment/PaymentCard/styles.d.ts +8 -77
  25. package/dist/components/payment/PaymentCard/styles.js +15 -11
  26. package/package.json +1 -1
@@ -24,8 +24,8 @@ var Logic = /*#__PURE__*/function () {
24
24
  }
25
25
  return _createClass(Logic, [{
26
26
  key: "getPlaceholder",
27
- value: function getPlaceholder() {
28
- return this.valueToString(this.today);
27
+ value: function getPlaceholder(withTime) {
28
+ return this.valueToString(this.today, withTime);
29
29
  }
30
30
  }, {
31
31
  key: "isValid",
@@ -43,27 +43,40 @@ var Logic = /*#__PURE__*/function () {
43
43
  // Date => 31.01.2023
44
44
  }, {
45
45
  key: "valueToString",
46
- value: function valueToString(value) {
46
+ value: function valueToString(value, withTime) {
47
47
  if (!value) return '';
48
48
  var toTwoDigits = function toTwoDigits(item) {
49
49
  return "0".concat(item).slice(-2);
50
50
  };
51
- var date = [toTwoDigits(value.getDate()), toTwoDigits(value.getMonth() + 1), value.getFullYear()];
52
- return date.join('.');
51
+ var date = [toTwoDigits(value.getDate()), toTwoDigits(value.getMonth() + 1), value.getFullYear()].join('.');
52
+ var time = [toTwoDigits(value.getHours()), toTwoDigits(value.getMinutes())].join(':');
53
+ return withTime ? date + ' ' + time : date;
53
54
  }
54
55
 
55
56
  // 31.01.2023 => Date
56
57
  }, {
57
58
  key: "stringToDate",
58
- value: function stringToDate(str) {
59
- var _str$split = str.split('.'),
60
- _str$split2 = _slicedToArray(_str$split, 3),
61
- dd = _str$split2[0],
62
- mm = _str$split2[1],
63
- yyyy = _str$split2[2];
64
- return new Date([mm, dd, yyyy].filter(function (i) {
59
+ value: function stringToDate(str, withTime) {
60
+ var _str$split = str.split(' '),
61
+ _str$split2 = _slicedToArray(_str$split, 2),
62
+ dateStr = _str$split2[0],
63
+ timeStr = _str$split2[1];
64
+ var _dateStr$split = dateStr.split('.'),
65
+ _dateStr$split2 = _slicedToArray(_dateStr$split, 3),
66
+ dd = _dateStr$split2[0],
67
+ mm = _dateStr$split2[1],
68
+ yyyy = _dateStr$split2[2];
69
+ var _ref = timeStr ? timeStr.split(':') : ['00', '00'],
70
+ _ref2 = _slicedToArray(_ref, 2),
71
+ hours = _ref2[0],
72
+ minutes = _ref2[1];
73
+ var formattedDateStr = [mm, dd, yyyy].filter(function (i) {
65
74
  return i;
66
- }).join('/'));
75
+ }).join('/');
76
+ var formattedTimeStr = [hours, minutes, '00'].filter(function (i) {
77
+ return i;
78
+ }).join(':');
79
+ return new Date(withTime ? formattedDateStr + ' ' + formattedTimeStr : formattedDateStr);
67
80
  }
68
81
  }]);
69
82
  }();
@@ -5,4 +5,4 @@ export declare const InputWrapper: import("styled-components/dist/types").IStyle
5
5
  export declare const Icon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
6
6
  $palette: TDateInputPalette;
7
7
  }>> & string;
8
- export declare const Calendar: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
8
+ export declare const CalendarWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.Wrapper = exports.InputWrapper = exports.Icon = exports.Calendar = void 0;
6
+ exports.Wrapper = exports.InputWrapper = exports.Icon = exports.CalendarWrapper = void 0;
7
7
  var _styledComponents = _interopRequireDefault(require("styled-components"));
8
8
  var _breakpoints = require("../../../breakpoints");
9
9
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
@@ -22,7 +22,7 @@ var Icon = exports.Icon = _styledComponents["default"].div.withConfig({
22
22
  var $palette = _ref.$palette;
23
23
  return $palette.icon;
24
24
  });
25
- var Calendar = exports.Calendar = _styledComponents["default"].div.withConfig({
26
- displayName: "styles__Calendar",
25
+ var CalendarWrapper = exports.CalendarWrapper = _styledComponents["default"].div.withConfig({
26
+ displayName: "styles__CalendarWrapper",
27
27
  componentId: "sc-7tnmvh-3"
28
28
  })(["padding:30px;@media ", "{padding:15px;}"], _breakpoints.breakpoints.sm);
@@ -1,45 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  import { TInputLabelPalette } from './palette';
3
- export declare const Label: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<(Omit<{
4
- variant: "headline1" | "headline2" | "headline3" | "headline4" | "headline5" | "headline6" | "headerText" | "buttonL" | "bodyL" | "bodyLUnderlined" | "buttonM" | "bodyMRegular" | "bodyMBold" | "bodyMUnderlined" | "captionRegular" | "labelsHintsRegular" | "labelsHintsBold" | "captionSRegular" | "captionUnderlined" | "smallMedium" | "labelsAndHints";
5
- } & {
6
- element?: "div" | undefined;
7
- } & import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLInputElement>, "ref"> & {
8
- ref?: ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined;
9
- }) | (Omit<{
10
- variant: "headline1" | "headline2" | "headline3" | "headline4" | "headline5" | "headline6" | "headerText" | "buttonL" | "bodyL" | "bodyLUnderlined" | "buttonM" | "bodyMRegular" | "bodyMBold" | "bodyMUnderlined" | "captionRegular" | "labelsHintsRegular" | "labelsHintsBold" | "captionSRegular" | "captionUnderlined" | "smallMedium" | "labelsAndHints";
11
- } & {
12
- element: "p";
13
- } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLInputElement>, "ref"> & {
14
- ref?: ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined;
15
- }) | (Omit<{
16
- variant: "headline1" | "headline2" | "headline3" | "headline4" | "headline5" | "headline6" | "headerText" | "buttonL" | "bodyL" | "bodyLUnderlined" | "buttonM" | "bodyMRegular" | "bodyMBold" | "bodyMUnderlined" | "captionRegular" | "labelsHintsRegular" | "labelsHintsBold" | "captionSRegular" | "captionUnderlined" | "smallMedium" | "labelsAndHints";
17
- } & {
18
- element: "span";
19
- } & import("react").HTMLAttributes<HTMLSpanElement> & import("react").RefAttributes<HTMLInputElement>, "ref"> & {
20
- ref?: ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined;
21
- }) | (Omit<{
22
- variant: "headline1" | "headline2" | "headline3" | "headline4" | "headline5" | "headline6" | "headerText" | "buttonL" | "bodyL" | "bodyLUnderlined" | "buttonM" | "bodyMRegular" | "bodyMBold" | "bodyMUnderlined" | "captionRegular" | "labelsHintsRegular" | "labelsHintsBold" | "captionSRegular" | "captionUnderlined" | "smallMedium" | "labelsAndHints";
23
- } & {
24
- element: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
25
- } & import("react").HTMLAttributes<HTMLHeadingElement> & import("react").RefAttributes<HTMLInputElement>, "ref"> & {
26
- ref?: ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined;
27
- }) | (Omit<{
28
- variant: "headline1" | "headline2" | "headline3" | "headline4" | "headline5" | "headline6" | "headerText" | "buttonL" | "bodyL" | "bodyLUnderlined" | "buttonM" | "bodyMRegular" | "bodyMBold" | "bodyMUnderlined" | "captionRegular" | "labelsHintsRegular" | "labelsHintsBold" | "captionSRegular" | "captionUnderlined" | "smallMedium" | "labelsAndHints";
29
- } & {
30
- element: "button";
31
- } & import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLInputElement>, "ref"> & {
32
- ref?: ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined;
33
- }) | (Omit<{
34
- variant: "headline1" | "headline2" | "headline3" | "headline4" | "headline5" | "headline6" | "headerText" | "buttonL" | "bodyL" | "bodyLUnderlined" | "buttonM" | "bodyMRegular" | "bodyMBold" | "bodyMUnderlined" | "captionRegular" | "labelsHintsRegular" | "labelsHintsBold" | "captionSRegular" | "captionUnderlined" | "smallMedium" | "labelsAndHints";
35
- } & {
36
- element: "input";
37
- } & import("react").InputHTMLAttributes<HTMLInputElement> & import("react").RefAttributes<HTMLInputElement>, "ref"> & {
38
- ref?: ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined;
39
- }), {
3
+ export declare const Label: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("../../common/Typography").TProps & import("styled-components/dist/types").BaseObject, {
40
4
  $inFocus: boolean;
41
5
  $palette: TInputLabelPalette;
42
- }>> & string & Omit<import("react").ForwardRefExoticComponent<import("../../common/Typography").TProps & import("react").RefAttributes<HTMLInputElement>>, keyof import("react").Component<any, {}, any>>;
6
+ }>> & string & Omit<import("react").FC<import("../../common/Typography").TProps>, keyof import("react").Component<any, {}, any>>;
43
7
  export declare const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
44
8
  $disabled: boolean;
45
9
  $isLabel: boolean;
@@ -1,5 +1,5 @@
1
- import React, { InputHTMLAttributes } from 'react';
2
- export type TProps = InputHTMLAttributes<HTMLInputElement> & {
1
+ import React, { InputHTMLAttributes, TextareaHTMLAttributes } from 'react';
2
+ export type TProps = Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'onBlur' | 'onChange' | 'onFocus'> & InputHTMLAttributes<HTMLInputElement> & {
3
3
  paddingLeft?: number;
4
4
  paddingRight?: number;
5
5
  paddingTop?: number;
@@ -9,8 +9,9 @@ export type TProps = InputHTMLAttributes<HTMLInputElement> & {
9
9
  hasBorder?: boolean;
10
10
  isOnlyNumbers?: boolean;
11
11
  className?: never;
12
+ element?: 'input' | 'textarea';
12
13
  };
13
- export declare const PureInput: React.ForwardRefExoticComponent<React.InputHTMLAttributes<HTMLInputElement> & {
14
+ export declare const PureInput: React.ForwardRefExoticComponent<Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "onFocus" | "onBlur" | "onChange"> & React.InputHTMLAttributes<HTMLInputElement> & {
14
15
  paddingLeft?: number | undefined;
15
16
  paddingRight?: number | undefined;
16
17
  paddingTop?: number | undefined;
@@ -20,4 +21,5 @@ export declare const PureInput: React.ForwardRefExoticComponent<React.InputHTMLA
20
21
  hasBorder?: boolean | undefined;
21
22
  isOnlyNumbers?: boolean | undefined;
22
23
  className?: undefined;
24
+ element?: "input" | "textarea" | undefined;
23
25
  } & React.RefAttributes<HTMLInputElement>>;
@@ -8,7 +8,7 @@ exports.PureInput = void 0;
8
8
  var _react = _interopRequireWildcard(require("react"));
9
9
  var S = _interopRequireWildcard(require("./styles"));
10
10
  var _palette = require("../../../palette");
11
- var _excluded = ["paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "hasError", "inFocus", "hasBorder", "isOnlyNumbers", "className", "onChange"];
11
+ var _excluded = ["paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "hasError", "inFocus", "hasBorder", "isOnlyNumbers", "className", "onChange", "element"];
12
12
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
13
13
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
14
14
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
@@ -33,6 +33,8 @@ var PureInput = exports.PureInput = /*#__PURE__*/_react["default"].forwardRef(fu
33
33
  isOnlyNumbers = _ref$isOnlyNumbers === void 0 ? false : _ref$isOnlyNumbers,
34
34
  className = _ref.className,
35
35
  onChange = _ref.onChange,
36
+ _ref$element = _ref.element,
37
+ element = _ref$element === void 0 ? 'input' : _ref$element,
36
38
  rest = _objectWithoutProperties(_ref, _excluded);
37
39
  var palette = (0, _palette.useComponentPalette)('pureInput');
38
40
  var handleChange = (0, _react.useCallback)(function (event) {
@@ -45,7 +47,7 @@ var PureInput = exports.PureInput = /*#__PURE__*/_react["default"].forwardRef(fu
45
47
  return /*#__PURE__*/_react["default"].createElement(S.Wrapper, _extends({
46
48
  ref: ref,
47
49
  variant: "bodyMRegular",
48
- element: "input",
50
+ element: element,
49
51
  $paddingLeft: paddingLeft,
50
52
  $paddingRight: paddingRight,
51
53
  $paddingTop: paddingTop,
@@ -3,38 +3,14 @@ import { TPureInputPalette } from './palette';
3
3
  export declare const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<(Omit<{
4
4
  variant: "headline1" | "headline2" | "headline3" | "headline4" | "headline5" | "headline6" | "headerText" | "buttonL" | "bodyL" | "bodyLUnderlined" | "buttonM" | "bodyMRegular" | "bodyMBold" | "bodyMUnderlined" | "captionRegular" | "labelsHintsRegular" | "labelsHintsBold" | "captionSRegular" | "captionUnderlined" | "smallMedium" | "labelsAndHints";
5
5
  } & {
6
- element?: "div" | undefined;
7
- } & import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLInputElement>, "ref"> & {
8
- ref?: ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined;
9
- }) | (Omit<{
10
- variant: "headline1" | "headline2" | "headline3" | "headline4" | "headline5" | "headline6" | "headerText" | "buttonL" | "bodyL" | "bodyLUnderlined" | "buttonM" | "bodyMRegular" | "bodyMBold" | "bodyMUnderlined" | "captionRegular" | "labelsHintsRegular" | "labelsHintsBold" | "captionSRegular" | "captionUnderlined" | "smallMedium" | "labelsAndHints";
11
- } & {
12
- element: "p";
13
- } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLInputElement>, "ref"> & {
14
- ref?: ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined;
15
- }) | (Omit<{
16
- variant: "headline1" | "headline2" | "headline3" | "headline4" | "headline5" | "headline6" | "headerText" | "buttonL" | "bodyL" | "bodyLUnderlined" | "buttonM" | "bodyMRegular" | "bodyMBold" | "bodyMUnderlined" | "captionRegular" | "labelsHintsRegular" | "labelsHintsBold" | "captionSRegular" | "captionUnderlined" | "smallMedium" | "labelsAndHints";
17
- } & {
18
- element: "span";
19
- } & import("react").HTMLAttributes<HTMLSpanElement> & import("react").RefAttributes<HTMLInputElement>, "ref"> & {
20
- ref?: ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined;
21
- }) | (Omit<{
22
- variant: "headline1" | "headline2" | "headline3" | "headline4" | "headline5" | "headline6" | "headerText" | "buttonL" | "bodyL" | "bodyLUnderlined" | "buttonM" | "bodyMRegular" | "bodyMBold" | "bodyMUnderlined" | "captionRegular" | "labelsHintsRegular" | "labelsHintsBold" | "captionSRegular" | "captionUnderlined" | "smallMedium" | "labelsAndHints";
23
- } & {
24
- element: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
25
- } & import("react").HTMLAttributes<HTMLHeadingElement> & import("react").RefAttributes<HTMLInputElement>, "ref"> & {
26
- ref?: ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined;
27
- }) | (Omit<{
28
- variant: "headline1" | "headline2" | "headline3" | "headline4" | "headline5" | "headline6" | "headerText" | "buttonL" | "bodyL" | "bodyLUnderlined" | "buttonM" | "bodyMRegular" | "bodyMBold" | "bodyMUnderlined" | "captionRegular" | "labelsHintsRegular" | "labelsHintsBold" | "captionSRegular" | "captionUnderlined" | "smallMedium" | "labelsAndHints";
29
- } & {
30
- element: "button";
31
- } & import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLInputElement>, "ref"> & {
6
+ element: "input";
7
+ } & import("react").InputHTMLAttributes<HTMLInputElement> & import("react").RefAttributes<HTMLInputElement>, "ref"> & {
32
8
  ref?: ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined;
33
9
  }) | (Omit<{
34
10
  variant: "headline1" | "headline2" | "headline3" | "headline4" | "headline5" | "headline6" | "headerText" | "buttonL" | "bodyL" | "bodyLUnderlined" | "buttonM" | "bodyMRegular" | "bodyMBold" | "bodyMUnderlined" | "captionRegular" | "labelsHintsRegular" | "labelsHintsBold" | "captionSRegular" | "captionUnderlined" | "smallMedium" | "labelsAndHints";
35
11
  } & {
36
- element: "input";
37
- } & import("react").InputHTMLAttributes<HTMLInputElement> & import("react").RefAttributes<HTMLInputElement>, "ref"> & {
12
+ element: "textarea";
13
+ } & Omit<import("react").TextareaHTMLAttributes<HTMLTextAreaElement>, "onFocus" | "onBlur" | "onChange"> & import("react").InputHTMLAttributes<HTMLInputElement> & import("react").RefAttributes<HTMLInputElement>, "ref"> & {
38
14
  ref?: ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined;
39
15
  }), {
40
16
  $paddingLeft: number;
@@ -45,4 +21,10 @@ export declare const Wrapper: import("styled-components/dist/types").IStyledComp
45
21
  $inFocus: boolean;
46
22
  $hasBorder: boolean;
47
23
  $palette: TPureInputPalette;
48
- }>> & string & Omit<import("react").ForwardRefExoticComponent<import("../../common/Typography").TProps & import("react").RefAttributes<HTMLInputElement>>, keyof import("react").Component<any, {}, any>>;
24
+ }>> & string & Omit<import("react").ForwardRefExoticComponent<({
25
+ variant: "headline1" | "headline2" | "headline3" | "headline4" | "headline5" | "headline6" | "headerText" | "buttonL" | "bodyL" | "bodyLUnderlined" | "buttonM" | "bodyMRegular" | "bodyMBold" | "bodyMUnderlined" | "captionRegular" | "labelsHintsRegular" | "labelsHintsBold" | "captionSRegular" | "captionUnderlined" | "smallMedium" | "labelsAndHints";
26
+ } & (({
27
+ element: "input";
28
+ } & import("react").InputHTMLAttributes<HTMLInputElement>) | ({
29
+ element: "textarea";
30
+ } & Omit<import("react").TextareaHTMLAttributes<HTMLTextAreaElement>, "onFocus" | "onBlur" | "onChange"> & import("react").InputHTMLAttributes<HTMLInputElement>))) & import("react").RefAttributes<HTMLInputElement>>, keyof import("react").Component<any, {}, any>>;
@@ -7,7 +7,7 @@ exports.Wrapper = void 0;
7
7
  var _styledComponents = _interopRequireDefault(require("styled-components"));
8
8
  var _Typography = require("../../common/Typography");
9
9
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
- var Wrapper = exports.Wrapper = (0, _styledComponents["default"])(_Typography.Typography).withConfig({
10
+ var Wrapper = exports.Wrapper = (0, _styledComponents["default"])(_Typography.InputWithTypography).withConfig({
11
11
  displayName: "styles__Wrapper",
12
12
  componentId: "sc-1g8ijo6-0"
13
13
  })(["color:", ";border-radius:10px;outline:none;width:100%;background-color:", ";transition:all 0.2s ease-in-out 0s;box-sizing:border-box;padding-right:", "px;padding-left:", "px;padding-top:", "px;padding-bottom:", "px;border:1px solid ", ";&::placeholder{color:", ";}&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}&[type='number']{-moz-appearance:textfield;}&:-webkit-autofill,&:-webkit-autofill:hover,&:-webkit-autofill:focus{transition:background-color 0s 600000s,color 0s 600000s !important;}"], function (_ref) {
@@ -3,80 +3,8 @@ import { TSelectPalette } from './palette';
3
3
  export declare const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
4
4
  export declare const InputWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
5
5
  export declare const Options: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
6
- export declare const Option: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<(Omit<{
7
- variant: "headline1" | "headline2" | "headline3" | "headline4" | "headline5" | "headline6" | "headerText" | "buttonL" | "bodyL" | "bodyLUnderlined" | "buttonM" | "bodyMRegular" | "bodyMBold" | "bodyMUnderlined" | "captionRegular" | "labelsHintsRegular" | "labelsHintsBold" | "captionSRegular" | "captionUnderlined" | "smallMedium" | "labelsAndHints";
8
- } & {
9
- element?: "div" | undefined;
10
- } & import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLInputElement>, "ref"> & {
11
- ref?: ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined;
12
- }) | (Omit<{
13
- variant: "headline1" | "headline2" | "headline3" | "headline4" | "headline5" | "headline6" | "headerText" | "buttonL" | "bodyL" | "bodyLUnderlined" | "buttonM" | "bodyMRegular" | "bodyMBold" | "bodyMUnderlined" | "captionRegular" | "labelsHintsRegular" | "labelsHintsBold" | "captionSRegular" | "captionUnderlined" | "smallMedium" | "labelsAndHints";
14
- } & {
15
- element: "p";
16
- } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLInputElement>, "ref"> & {
17
- ref?: ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined;
18
- }) | (Omit<{
19
- variant: "headline1" | "headline2" | "headline3" | "headline4" | "headline5" | "headline6" | "headerText" | "buttonL" | "bodyL" | "bodyLUnderlined" | "buttonM" | "bodyMRegular" | "bodyMBold" | "bodyMUnderlined" | "captionRegular" | "labelsHintsRegular" | "labelsHintsBold" | "captionSRegular" | "captionUnderlined" | "smallMedium" | "labelsAndHints";
20
- } & {
21
- element: "span";
22
- } & import("react").HTMLAttributes<HTMLSpanElement> & import("react").RefAttributes<HTMLInputElement>, "ref"> & {
23
- ref?: ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined;
24
- }) | (Omit<{
25
- variant: "headline1" | "headline2" | "headline3" | "headline4" | "headline5" | "headline6" | "headerText" | "buttonL" | "bodyL" | "bodyLUnderlined" | "buttonM" | "bodyMRegular" | "bodyMBold" | "bodyMUnderlined" | "captionRegular" | "labelsHintsRegular" | "labelsHintsBold" | "captionSRegular" | "captionUnderlined" | "smallMedium" | "labelsAndHints";
26
- } & {
27
- element: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
28
- } & import("react").HTMLAttributes<HTMLHeadingElement> & import("react").RefAttributes<HTMLInputElement>, "ref"> & {
29
- ref?: ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined;
30
- }) | (Omit<{
31
- variant: "headline1" | "headline2" | "headline3" | "headline4" | "headline5" | "headline6" | "headerText" | "buttonL" | "bodyL" | "bodyLUnderlined" | "buttonM" | "bodyMRegular" | "bodyMBold" | "bodyMUnderlined" | "captionRegular" | "labelsHintsRegular" | "labelsHintsBold" | "captionSRegular" | "captionUnderlined" | "smallMedium" | "labelsAndHints";
32
- } & {
33
- element: "button";
34
- } & import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLInputElement>, "ref"> & {
35
- ref?: ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined;
36
- }) | (Omit<{
37
- variant: "headline1" | "headline2" | "headline3" | "headline4" | "headline5" | "headline6" | "headerText" | "buttonL" | "bodyL" | "bodyLUnderlined" | "buttonM" | "bodyMRegular" | "bodyMBold" | "bodyMUnderlined" | "captionRegular" | "labelsHintsRegular" | "labelsHintsBold" | "captionSRegular" | "captionUnderlined" | "smallMedium" | "labelsAndHints";
38
- } & {
39
- element: "input";
40
- } & import("react").InputHTMLAttributes<HTMLInputElement> & import("react").RefAttributes<HTMLInputElement>, "ref"> & {
41
- ref?: ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined;
42
- }), {
6
+ export declare const Option: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("../../common/Typography").TProps & import("styled-components/dist/types").BaseObject, {
43
7
  $palette: TSelectPalette;
44
8
  $isGrouped: boolean;
45
- }>> & string & Omit<import("react").ForwardRefExoticComponent<import("../../common/Typography").TProps & import("react").RefAttributes<HTMLInputElement>>, keyof import("react").Component<any, {}, any>>;
46
- export declare const Group: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<(Omit<{
47
- variant: "headline1" | "headline2" | "headline3" | "headline4" | "headline5" | "headline6" | "headerText" | "buttonL" | "bodyL" | "bodyLUnderlined" | "buttonM" | "bodyMRegular" | "bodyMBold" | "bodyMUnderlined" | "captionRegular" | "labelsHintsRegular" | "labelsHintsBold" | "captionSRegular" | "captionUnderlined" | "smallMedium" | "labelsAndHints";
48
- } & {
49
- element?: "div" | undefined;
50
- } & import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLInputElement>, "ref"> & {
51
- ref?: ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined;
52
- }) | (Omit<{
53
- variant: "headline1" | "headline2" | "headline3" | "headline4" | "headline5" | "headline6" | "headerText" | "buttonL" | "bodyL" | "bodyLUnderlined" | "buttonM" | "bodyMRegular" | "bodyMBold" | "bodyMUnderlined" | "captionRegular" | "labelsHintsRegular" | "labelsHintsBold" | "captionSRegular" | "captionUnderlined" | "smallMedium" | "labelsAndHints";
54
- } & {
55
- element: "p";
56
- } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLInputElement>, "ref"> & {
57
- ref?: ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined;
58
- }) | (Omit<{
59
- variant: "headline1" | "headline2" | "headline3" | "headline4" | "headline5" | "headline6" | "headerText" | "buttonL" | "bodyL" | "bodyLUnderlined" | "buttonM" | "bodyMRegular" | "bodyMBold" | "bodyMUnderlined" | "captionRegular" | "labelsHintsRegular" | "labelsHintsBold" | "captionSRegular" | "captionUnderlined" | "smallMedium" | "labelsAndHints";
60
- } & {
61
- element: "span";
62
- } & import("react").HTMLAttributes<HTMLSpanElement> & import("react").RefAttributes<HTMLInputElement>, "ref"> & {
63
- ref?: ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined;
64
- }) | (Omit<{
65
- variant: "headline1" | "headline2" | "headline3" | "headline4" | "headline5" | "headline6" | "headerText" | "buttonL" | "bodyL" | "bodyLUnderlined" | "buttonM" | "bodyMRegular" | "bodyMBold" | "bodyMUnderlined" | "captionRegular" | "labelsHintsRegular" | "labelsHintsBold" | "captionSRegular" | "captionUnderlined" | "smallMedium" | "labelsAndHints";
66
- } & {
67
- element: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
68
- } & import("react").HTMLAttributes<HTMLHeadingElement> & import("react").RefAttributes<HTMLInputElement>, "ref"> & {
69
- ref?: ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined;
70
- }) | (Omit<{
71
- variant: "headline1" | "headline2" | "headline3" | "headline4" | "headline5" | "headline6" | "headerText" | "buttonL" | "bodyL" | "bodyLUnderlined" | "buttonM" | "bodyMRegular" | "bodyMBold" | "bodyMUnderlined" | "captionRegular" | "labelsHintsRegular" | "labelsHintsBold" | "captionSRegular" | "captionUnderlined" | "smallMedium" | "labelsAndHints";
72
- } & {
73
- element: "button";
74
- } & import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLInputElement>, "ref"> & {
75
- ref?: ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined;
76
- }) | (Omit<{
77
- variant: "headline1" | "headline2" | "headline3" | "headline4" | "headline5" | "headline6" | "headerText" | "buttonL" | "bodyL" | "bodyLUnderlined" | "buttonM" | "bodyMRegular" | "bodyMBold" | "bodyMUnderlined" | "captionRegular" | "labelsHintsRegular" | "labelsHintsBold" | "captionSRegular" | "captionUnderlined" | "smallMedium" | "labelsAndHints";
78
- } & {
79
- element: "input";
80
- } & import("react").InputHTMLAttributes<HTMLInputElement> & import("react").RefAttributes<HTMLInputElement>, "ref"> & {
81
- ref?: ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined;
82
- }), import("styled-components/dist/types").BaseObject>> & string & Omit<import("react").ForwardRefExoticComponent<import("../../common/Typography").TProps & import("react").RefAttributes<HTMLInputElement>>, keyof import("react").Component<any, {}, any>>;
9
+ }>> & string & Omit<import("react").FC<import("../../common/Typography").TProps>, keyof import("react").Component<any, {}, any>>;
10
+ export declare const Group: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("../../common/Typography").TProps & import("styled-components/dist/types").BaseObject, import("styled-components/dist/types").BaseObject>> & string & Omit<import("react").FC<import("../../common/Typography").TProps>, keyof import("react").Component<any, {}, any>>;
@@ -2,11 +2,12 @@ import { FC, ReactNode } from 'react';
2
2
  import { TProps as TInputLabelProps } from '../InputLabel';
3
3
  import { TProps as TPureInputProps } from '../PureInput';
4
4
  import { TSizes } from '../constants';
5
- export type TProps = Pick<TInputLabelProps, 'label'> & Pick<TPureInputProps, 'placeholder' | 'hasError' | 'onFocus' | 'onBlur' | 'disabled' | 'name' | 'paddingRight' | 'type' | 'isOnlyNumbers' | 'autoFocus'> & {
5
+ export type TProps = Pick<TInputLabelProps, 'label'> & Pick<TPureInputProps, 'placeholder' | 'hasError' | 'onFocus' | 'onBlur' | 'disabled' | 'name' | 'paddingRight' | 'type' | 'isOnlyNumbers' | 'autoFocus' | 'rows'> & {
6
6
  value: string;
7
7
  onChange: (value: string) => void;
8
8
  maxLength?: number;
9
9
  size?: TSizes;
10
10
  children?: ReactNode;
11
+ element?: 'input' | 'textarea';
11
12
  };
12
13
  export declare const TextInput: FC<TProps>;
@@ -32,7 +32,9 @@ var TextInput = exports.TextInput = function TextInput(_ref) {
32
32
  _ref$size = _ref.size,
33
33
  size = _ref$size === void 0 ? 'L' : _ref$size,
34
34
  isOnlyNumbers = _ref.isOnlyNumbers,
35
- autoFocus = _ref.autoFocus;
35
+ autoFocus = _ref.autoFocus,
36
+ _ref$element = _ref.element,
37
+ element = _ref$element === void 0 ? 'input' : _ref$element;
36
38
  var _useInputFocus = (0, _useInputFocus2.useInputFocus)({
37
39
  onFocus: onFocus,
38
40
  onBlur: onBlur
@@ -60,6 +62,7 @@ var TextInput = exports.TextInput = function TextInput(_ref) {
60
62
  paddingRight: paddingRight,
61
63
  type: type,
62
64
  isOnlyNumbers: isOnlyNumbers,
63
- autoFocus: autoFocus
65
+ autoFocus: autoFocus,
66
+ element: element
64
67
  }, _constants.SIZE_PADDING_MAP[size])), children && /*#__PURE__*/_react["default"].createElement(S.ChildrenWrapper, null, children)));
65
68
  };
@@ -44,7 +44,10 @@ var PaymentCard = exports.PaymentCard = function PaymentCard(_ref) {
44
44
  }, title), children), isCircleIconLayout ? /*#__PURE__*/_react["default"].createElement(S.IconWrapper, {
45
45
  $pallete: palette,
46
46
  $isActive: isActive
47
- }, icon || /*#__PURE__*/_react["default"].createElement(_DefaultLogo.DefaultLogo, null)) : /*#__PURE__*/_react["default"].createElement(S.OutContainerIconWrapper, null, icon || /*#__PURE__*/_react["default"].createElement(_DefaultLogo.DefaultLogo, null)), comment && /*#__PURE__*/_react["default"].createElement(S.Comment, {
47
+ }, icon || /*#__PURE__*/_react["default"].createElement(_DefaultLogo.DefaultLogo, null)) : /*#__PURE__*/_react["default"].createElement(S.OutContainerIconWrapper, {
48
+ $pallete: palette,
49
+ $isActive: isActive
50
+ }, icon || /*#__PURE__*/_react["default"].createElement(_DefaultLogo.DefaultLogo, null)), comment && /*#__PURE__*/_react["default"].createElement(S.Comment, {
48
51
  $pallete: palette,
49
52
  $isActive: isActive,
50
53
  variant: "captionSRegular"
@@ -9,88 +9,19 @@ export declare const Wrapper: import("styled-components/dist/types").IStyledComp
9
9
  }>> & string;
10
10
  export declare const RadioWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
11
11
  export declare const Content: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
12
- export declare const Title: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<(Omit<{
13
- variant: "headline1" | "headline2" | "headline3" | "headline4" | "headline5" | "headline6" | "headerText" | "buttonL" | "bodyL" | "bodyLUnderlined" | "buttonM" | "bodyMRegular" | "bodyMBold" | "bodyMUnderlined" | "captionRegular" | "labelsHintsRegular" | "labelsHintsBold" | "captionSRegular" | "captionUnderlined" | "smallMedium" | "labelsAndHints";
14
- } & {
15
- element?: "div" | undefined;
16
- } & import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLInputElement>, "ref"> & {
17
- ref?: ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined;
18
- }) | (Omit<{
19
- variant: "headline1" | "headline2" | "headline3" | "headline4" | "headline5" | "headline6" | "headerText" | "buttonL" | "bodyL" | "bodyLUnderlined" | "buttonM" | "bodyMRegular" | "bodyMBold" | "bodyMUnderlined" | "captionRegular" | "labelsHintsRegular" | "labelsHintsBold" | "captionSRegular" | "captionUnderlined" | "smallMedium" | "labelsAndHints";
20
- } & {
21
- element: "p";
22
- } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLInputElement>, "ref"> & {
23
- ref?: ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined;
24
- }) | (Omit<{
25
- variant: "headline1" | "headline2" | "headline3" | "headline4" | "headline5" | "headline6" | "headerText" | "buttonL" | "bodyL" | "bodyLUnderlined" | "buttonM" | "bodyMRegular" | "bodyMBold" | "bodyMUnderlined" | "captionRegular" | "labelsHintsRegular" | "labelsHintsBold" | "captionSRegular" | "captionUnderlined" | "smallMedium" | "labelsAndHints";
26
- } & {
27
- element: "span";
28
- } & import("react").HTMLAttributes<HTMLSpanElement> & import("react").RefAttributes<HTMLInputElement>, "ref"> & {
29
- ref?: ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined;
30
- }) | (Omit<{
31
- variant: "headline1" | "headline2" | "headline3" | "headline4" | "headline5" | "headline6" | "headerText" | "buttonL" | "bodyL" | "bodyLUnderlined" | "buttonM" | "bodyMRegular" | "bodyMBold" | "bodyMUnderlined" | "captionRegular" | "labelsHintsRegular" | "labelsHintsBold" | "captionSRegular" | "captionUnderlined" | "smallMedium" | "labelsAndHints";
32
- } & {
33
- element: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
34
- } & import("react").HTMLAttributes<HTMLHeadingElement> & import("react").RefAttributes<HTMLInputElement>, "ref"> & {
35
- ref?: ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined;
36
- }) | (Omit<{
37
- variant: "headline1" | "headline2" | "headline3" | "headline4" | "headline5" | "headline6" | "headerText" | "buttonL" | "bodyL" | "bodyLUnderlined" | "buttonM" | "bodyMRegular" | "bodyMBold" | "bodyMUnderlined" | "captionRegular" | "labelsHintsRegular" | "labelsHintsBold" | "captionSRegular" | "captionUnderlined" | "smallMedium" | "labelsAndHints";
38
- } & {
39
- element: "button";
40
- } & import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLInputElement>, "ref"> & {
41
- ref?: ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined;
42
- }) | (Omit<{
43
- variant: "headline1" | "headline2" | "headline3" | "headline4" | "headline5" | "headline6" | "headerText" | "buttonL" | "bodyL" | "bodyLUnderlined" | "buttonM" | "bodyMRegular" | "bodyMBold" | "bodyMUnderlined" | "captionRegular" | "labelsHintsRegular" | "labelsHintsBold" | "captionSRegular" | "captionUnderlined" | "smallMedium" | "labelsAndHints";
44
- } & {
45
- element: "input";
46
- } & import("react").InputHTMLAttributes<HTMLInputElement> & import("react").RefAttributes<HTMLInputElement>, "ref"> & {
47
- ref?: ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined;
48
- }), {
12
+ export declare const Title: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("../../common/Typography").TProps & import("styled-components/dist/types").BaseObject, {
49
13
  $ellipsis: boolean;
50
14
  $pallete: TPaymentCardPalette;
51
- }>> & string & Omit<import("react").ForwardRefExoticComponent<import("../../common/Typography").TProps & import("react").RefAttributes<HTMLInputElement>>, keyof import("react").Component<any, {}, any>>;
52
- export declare const OutContainerIconWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
15
+ }>> & string & Omit<import("react").FC<import("../../common/Typography").TProps>, keyof import("react").Component<any, {}, any>>;
16
+ export declare const OutContainerIconWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
17
+ $isActive: boolean;
18
+ $pallete: TPaymentCardPalette;
19
+ }>> & string;
53
20
  export declare const IconWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
54
21
  $isActive: boolean;
55
22
  $pallete: TPaymentCardPalette;
56
23
  }>> & string;
57
- export declare const Comment: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<(Omit<{
58
- variant: "headline1" | "headline2" | "headline3" | "headline4" | "headline5" | "headline6" | "headerText" | "buttonL" | "bodyL" | "bodyLUnderlined" | "buttonM" | "bodyMRegular" | "bodyMBold" | "bodyMUnderlined" | "captionRegular" | "labelsHintsRegular" | "labelsHintsBold" | "captionSRegular" | "captionUnderlined" | "smallMedium" | "labelsAndHints";
59
- } & {
60
- element?: "div" | undefined;
61
- } & import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLInputElement>, "ref"> & {
62
- ref?: ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined;
63
- }) | (Omit<{
64
- variant: "headline1" | "headline2" | "headline3" | "headline4" | "headline5" | "headline6" | "headerText" | "buttonL" | "bodyL" | "bodyLUnderlined" | "buttonM" | "bodyMRegular" | "bodyMBold" | "bodyMUnderlined" | "captionRegular" | "labelsHintsRegular" | "labelsHintsBold" | "captionSRegular" | "captionUnderlined" | "smallMedium" | "labelsAndHints";
65
- } & {
66
- element: "p";
67
- } & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLInputElement>, "ref"> & {
68
- ref?: ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined;
69
- }) | (Omit<{
70
- variant: "headline1" | "headline2" | "headline3" | "headline4" | "headline5" | "headline6" | "headerText" | "buttonL" | "bodyL" | "bodyLUnderlined" | "buttonM" | "bodyMRegular" | "bodyMBold" | "bodyMUnderlined" | "captionRegular" | "labelsHintsRegular" | "labelsHintsBold" | "captionSRegular" | "captionUnderlined" | "smallMedium" | "labelsAndHints";
71
- } & {
72
- element: "span";
73
- } & import("react").HTMLAttributes<HTMLSpanElement> & import("react").RefAttributes<HTMLInputElement>, "ref"> & {
74
- ref?: ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined;
75
- }) | (Omit<{
76
- variant: "headline1" | "headline2" | "headline3" | "headline4" | "headline5" | "headline6" | "headerText" | "buttonL" | "bodyL" | "bodyLUnderlined" | "buttonM" | "bodyMRegular" | "bodyMBold" | "bodyMUnderlined" | "captionRegular" | "labelsHintsRegular" | "labelsHintsBold" | "captionSRegular" | "captionUnderlined" | "smallMedium" | "labelsAndHints";
77
- } & {
78
- element: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
79
- } & import("react").HTMLAttributes<HTMLHeadingElement> & import("react").RefAttributes<HTMLInputElement>, "ref"> & {
80
- ref?: ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined;
81
- }) | (Omit<{
82
- variant: "headline1" | "headline2" | "headline3" | "headline4" | "headline5" | "headline6" | "headerText" | "buttonL" | "bodyL" | "bodyLUnderlined" | "buttonM" | "bodyMRegular" | "bodyMBold" | "bodyMUnderlined" | "captionRegular" | "labelsHintsRegular" | "labelsHintsBold" | "captionSRegular" | "captionUnderlined" | "smallMedium" | "labelsAndHints";
83
- } & {
84
- element: "button";
85
- } & import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLInputElement>, "ref"> & {
86
- ref?: ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined;
87
- }) | (Omit<{
88
- variant: "headline1" | "headline2" | "headline3" | "headline4" | "headline5" | "headline6" | "headerText" | "buttonL" | "bodyL" | "bodyLUnderlined" | "buttonM" | "bodyMRegular" | "bodyMBold" | "bodyMUnderlined" | "captionRegular" | "labelsHintsRegular" | "labelsHintsBold" | "captionSRegular" | "captionUnderlined" | "smallMedium" | "labelsAndHints";
89
- } & {
90
- element: "input";
91
- } & import("react").InputHTMLAttributes<HTMLInputElement> & import("react").RefAttributes<HTMLInputElement>, "ref"> & {
92
- ref?: ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined;
93
- }), {
24
+ export declare const Comment: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("../../common/Typography").TProps & import("styled-components/dist/types").BaseObject, {
94
25
  $pallete: TPaymentCardPalette;
95
26
  $isActive: boolean;
96
- }>> & string & Omit<import("react").ForwardRefExoticComponent<import("../../common/Typography").TProps & import("react").RefAttributes<HTMLInputElement>>, keyof import("react").Component<any, {}, any>>;
27
+ }>> & string & Omit<import("react").FC<import("../../common/Typography").TProps>, keyof import("react").Component<any, {}, any>>;
@@ -46,26 +46,30 @@ var Title = exports.Title = (0, _styledComponents["default"])(_Typography.Typogr
46
46
  var OutContainerIconWrapper = exports.OutContainerIconWrapper = _styledComponents["default"].div.withConfig({
47
47
  displayName: "styles__OutContainerIconWrapper",
48
48
  componentId: "sc-ykxt4t-4"
49
- })(["flex-shrink:0;"]);
49
+ })(["flex-shrink:0;height:36px;padding:0 5px;background-color:", ";border-radius:14px;display:flex;align-items:center;"], function (_ref6) {
50
+ var $isActive = _ref6.$isActive,
51
+ $pallete = _ref6.$pallete;
52
+ return $isActive ? 'transparent' : $pallete.iconBg;
53
+ });
50
54
  var IconWrapper = exports.IconWrapper = _styledComponents["default"].div.withConfig({
51
55
  displayName: "styles__IconWrapper",
52
56
  componentId: "sc-ykxt4t-5"
53
- })(["flex-shrink:0;flex-grow:0;width:36px;height:36px;border-radius:50%;background-color:", ";display:flex;align-items:center;justify-content:center;"], function (_ref6) {
54
- var $isActive = _ref6.$isActive,
55
- $pallete = _ref6.$pallete;
57
+ })(["flex-shrink:0;flex-grow:0;width:36px;border-radius:50%;background-color:", ";display:flex;align-items:center;justify-content:center;"], function (_ref7) {
58
+ var $isActive = _ref7.$isActive,
59
+ $pallete = _ref7.$pallete;
56
60
  return $isActive ? 'transparent' : $pallete.iconBg;
57
61
  });
58
62
  var Comment = exports.Comment = (0, _styledComponents["default"])(_Typography.Typography).withConfig({
59
63
  displayName: "styles__Comment",
60
64
  componentId: "sc-ykxt4t-6"
61
- })(["color:", ";position:absolute;bottom:0;right:0;padding:0 8px;box-sizing:border-box;background:", ";border-radius:6px 0 0 0;", ""], function (_ref7) {
62
- var $pallete = _ref7.$pallete;
63
- return $pallete.comment;
64
- }, function (_ref8) {
65
+ })(["color:", ";position:absolute;bottom:0;right:0;padding:0 8px;box-sizing:border-box;background:", ";border-radius:6px 0 0 0;", ""], function (_ref8) {
65
66
  var $pallete = _ref8.$pallete;
66
- return $pallete.commentBg;
67
+ return $pallete.comment;
67
68
  }, function (_ref9) {
68
- var $isActive = _ref9.$isActive,
69
- $pallete = _ref9.$pallete;
69
+ var $pallete = _ref9.$pallete;
70
+ return $pallete.commentBg;
71
+ }, function (_ref10) {
72
+ var $isActive = _ref10.$isActive,
73
+ $pallete = _ref10.$pallete;
70
74
  return $isActive ? (0, _styledComponents.css)(["border-top:1px solid ", ";border-left:1px solid ", ";"], $pallete.borderActive, $pallete.borderActive) : (0, _styledComponents.css)(["border-top:1px solid ", ";border-left:1px solid ", ";"], $pallete.borderInactive, $pallete.borderInactive);
71
75
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@invoicebox/ui",
3
- "version": "0.1.0-alpha.162",
3
+ "version": "0.1.0-alpha.164",
4
4
  "description": "Invoicebox UI",
5
5
  "license": "Apache License 2.0",
6
6
  "scripts": {