@invoicebox/ui 0.1.0-alpha.117 → 0.1.0-alpha.118

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.
@@ -5,3 +5,5 @@ declare const meta: Meta<typeof PaymentCard>;
5
5
  export default meta;
6
6
  export declare const Default: StoryObj<typeof PaymentCard>;
7
7
  export declare const WithChildren: StoryObj<typeof PaymentCard>;
8
+ export declare const OverflowText: StoryObj<typeof PaymentCard>;
9
+ export declare const OverflowTextWithChildren: StoryObj<typeof PaymentCard>;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports["default"] = exports.WithChildren = exports.Default = void 0;
6
+ exports["default"] = exports.WithChildren = exports.OverflowTextWithChildren = exports.OverflowText = exports.Default = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _ = require(".");
9
9
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
@@ -35,4 +35,27 @@ var WithChildren = exports.WithChildren = {
35
35
  }),
36
36
  comment: 'Комиссия 10 руб'
37
37
  }
38
+ };
39
+ var OverflowText = exports.OverflowText = {
40
+ args: {
41
+ title: 'Длинное наименование длинное наименование длинное наименование длинное наименование длинное наименование длинное наименование длинное наименование длинное наименование длинное наименование длинное наименование длинное наименование ',
42
+ isActive: false,
43
+ isDisabled: false,
44
+ comment: 'Комиссия 10 руб'
45
+ }
46
+ };
47
+ var OverflowTextWithChildren = exports.OverflowTextWithChildren = {
48
+ args: {
49
+ title: 'Длинное наименование длинное наименование длинное наименование длинное наименование длинное наименование длинное наименование длинное наименование длинное наименование длинное наименование длинное наименование длинное наименование ',
50
+ isActive: false,
51
+ isDisabled: false,
52
+ comment: 'Комиссия 10 руб',
53
+ children: /*#__PURE__*/_react["default"].createElement("div", {
54
+ style: {
55
+ height: 22,
56
+ width: 121,
57
+ background: 'green'
58
+ }
59
+ })
60
+ }
38
61
  };
@@ -33,32 +33,35 @@ var Content = exports.Content = _styledComponents["default"].div.withConfig({
33
33
  var Title = exports.Title = (0, _styledComponents["default"])(_Typography.Typography).withConfig({
34
34
  displayName: "styles__Title",
35
35
  componentId: "sc-ykxt4t-3"
36
- })(["white-space:", ";overflow:hidden;text-overflow:ellipsis;max-width:100%;color:", ";"], function (_ref3) {
36
+ })(["white-space:", ";text-overflow:ellipsis;overflow:hidden;", " max-width:100%;color:", ";"], function (_ref3) {
37
37
  var $ellipsis = _ref3.$ellipsis;
38
38
  return $ellipsis ? 'normal' : 'nowrap';
39
39
  }, function (_ref4) {
40
- var $pallete = _ref4.$pallete;
40
+ var $ellipsis = _ref4.$ellipsis;
41
+ return $ellipsis && "\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n ";
42
+ }, function (_ref5) {
43
+ var $pallete = _ref5.$pallete;
41
44
  return $pallete.title;
42
45
  });
43
46
  var IconWrapper = exports.IconWrapper = _styledComponents["default"].div.withConfig({
44
47
  displayName: "styles__IconWrapper",
45
48
  componentId: "sc-ykxt4t-4"
46
- })(["flex-shrink:0;flex-grow:0;width:36px;height:36px;border-radius:50%;background-color:", ";display:flex;align-items:center;justify-content:center;"], function (_ref5) {
47
- var $isActive = _ref5.$isActive,
48
- $pallete = _ref5.$pallete;
49
+ })(["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) {
50
+ var $isActive = _ref6.$isActive,
51
+ $pallete = _ref6.$pallete;
49
52
  return $isActive ? 'transparent' : $pallete.iconBg;
50
53
  });
51
54
  var Comment = exports.Comment = (0, _styledComponents["default"])(_Typography.Typography).withConfig({
52
55
  displayName: "styles__Comment",
53
56
  componentId: "sc-ykxt4t-5"
54
- })(["color:", ";position:absolute;bottom:0;right:0;padding:0 8px;box-sizing:border-box;background:", ";border-radius:6px 0px 0px 0px;", ""], function (_ref6) {
55
- var $pallete = _ref6.$pallete;
56
- return $pallete.comment;
57
- }, function (_ref7) {
57
+ })(["color:", ";position:absolute;bottom:0;right:0;padding:0 8px;box-sizing:border-box;background:", ";border-radius:6px 0px 0px 0px;", ""], function (_ref7) {
58
58
  var $pallete = _ref7.$pallete;
59
- return $pallete.commentBg;
59
+ return $pallete.comment;
60
60
  }, function (_ref8) {
61
- var $isActive = _ref8.$isActive,
62
- $pallete = _ref8.$pallete;
61
+ var $pallete = _ref8.$pallete;
62
+ return $pallete.commentBg;
63
+ }, function (_ref9) {
64
+ var $isActive = _ref9.$isActive,
65
+ $pallete = _ref9.$pallete;
63
66
  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);
64
67
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@invoicebox/ui",
3
- "version": "0.1.0-alpha.117",
3
+ "version": "0.1.0-alpha.118",
4
4
  "description": "Invoicebox UI",
5
5
  "license": "Apache License 2.0",
6
6
  "scripts": {