@artsy/palette 45.0.0 → 45.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,6 @@ import React from "react";
2
2
  export interface ReadMoreProps {
3
3
  content: string;
4
4
  disabled?: boolean;
5
- inlineReadMoreLink?: boolean;
6
5
  defaultExpanded?: boolean;
7
6
  maxLines?: number;
8
7
  onReadLessClicked?: () => void;
@@ -9,12 +9,10 @@ var _react = _interopRequireWildcard(require("react"));
9
9
  var _styledComponents = _interopRequireDefault(require("styled-components"));
10
10
  var _Clickable = require("../Clickable");
11
11
  var _Text = require("../Text");
12
- var _Theme = require("../../Theme");
13
12
  var _Box = require("../Box");
14
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
14
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
16
15
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
17
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
18
16
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
19
17
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
20
18
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -24,28 +22,20 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
24
22
  var ReadMore = exports.ReadMore = function ReadMore(_ref) {
25
23
  var expandedHTML = _ref.content,
26
24
  disabled = _ref.disabled,
27
- _ref$inlineReadMoreLi = _ref.inlineReadMoreLink,
28
- inlineReadMoreLink = _ref$inlineReadMoreLi === void 0 ? true : _ref$inlineReadMoreLi,
29
25
  defaultExpanded = _ref.defaultExpanded,
30
26
  _ref$maxLines = _ref.maxLines,
31
27
  maxLines = _ref$maxLines === void 0 ? Infinity : _ref$maxLines,
32
28
  onReadLessClicked = _ref.onReadLessClicked,
33
29
  onReadMoreClicked = _ref.onReadMoreClicked;
34
30
  var ref = (0, _react.useRef)(null);
35
- var _useTheme = (0, _Theme.useTheme)(),
36
- theme = _useTheme.theme;
37
31
  var _useState = (0, _react.useState)(false),
38
32
  _useState2 = _slicedToArray(_useState, 2),
39
33
  overflowing = _useState2[0],
40
34
  setOverflowing = _useState2[1];
41
- var _useState3 = (0, _react.useState)(0),
35
+ var _useState3 = (0, _react.useState)(!!defaultExpanded),
42
36
  _useState4 = _slicedToArray(_useState3, 2),
43
- singleLineHeight = _useState4[0],
44
- setSingleLineHeight = _useState4[1];
45
- var _useState5 = (0, _react.useState)(!!defaultExpanded),
46
- _useState6 = _slicedToArray(_useState5, 2),
47
- expanded = _useState6[0],
48
- setExpanded = _useState6[1];
37
+ expanded = _useState4[0],
38
+ setExpanded = _useState4[1];
49
39
  var maxLinesToShow = expanded ? Infinity : maxLines;
50
40
  var handleClick = function handleClick() {
51
41
  if (disabled) return;
@@ -59,9 +49,6 @@ var ReadMore = exports.ReadMore = function ReadMore(_ref) {
59
49
  if (!ref.current) return false;
60
50
  var shouldExpand = ref.current.scrollHeight > ref.current.clientHeight;
61
51
  setOverflowing(shouldExpand);
62
- var sentinel = ref.current.querySelector("[data-readmore-sentinel]");
63
- if (!sentinel) return shouldExpand;
64
- setSingleLineHeight(sentinel.clientHeight);
65
52
  return shouldExpand;
66
53
  };
67
54
  var initialized = (0, _react.useRef)(false);
@@ -79,29 +66,20 @@ var ReadMore = exports.ReadMore = function ReadMore(_ref) {
79
66
  }, /*#__PURE__*/_react.default.createElement(_Box.Box, {
80
67
  position: "relative",
81
68
  dangerouslySetInnerHTML: {
82
- __html: expanded ? expandedHTML : "".concat(expandedHTML).concat(SENTINEL)
69
+ __html: expandedHTML
83
70
  }
84
- })), overflowing && /*#__PURE__*/_react.default.createElement(_Clickable.Clickable, _extends({
71
+ })), overflowing && /*#__PURE__*/_react.default.createElement(_Clickable.Clickable, {
85
72
  cursor: "pointer",
86
73
  textDecoration: "underline",
87
- onClick: handleClick
88
- }, !expanded && inlineReadMoreLink ? {
89
- position: "absolute",
90
- bottom: 0,
91
- right: 0,
92
- background: "linear-gradient(to left, ".concat(theme.colors.mono0, " 0, ").concat(theme.colors.mono0, " calc(100% - ").concat(theme.space[4], "), transparent 100%)"),
93
- pl: 4,
94
- height: singleLineHeight,
95
- display: "flex",
96
- alignItems: "center",
97
- justifyContent: "center"
98
- } : {}), /*#__PURE__*/_react.default.createElement(_Text.Text, {
74
+ onClick: handleClick,
75
+ display: "block",
76
+ width: "100%"
77
+ }, /*#__PURE__*/_react.default.createElement(_Text.Text, {
99
78
  variant: "xs",
100
79
  fontWeight: "bold"
101
80
  }, "Read ", expanded ? "less" : "more")));
102
81
  };
103
82
  ReadMore.displayName = "ReadMore";
104
- var SENTINEL = "<span data-readmore-sentinel aria-hidden=\"true\" style=\"display:block;width:0;padding:0;margin:0;position:absolute;bottom:0;right:0;\">&#8203;</span>";
105
83
  var Container = _styledComponents.default.div.withConfig({
106
84
  displayName: "ReadMore__Container",
107
85
  componentId: "sc-1bqy0ya-0"
@@ -1 +1 @@
1
- {"version":3,"file":"ReadMore.js","names":["_react","_interopRequireWildcard","require","_styledComponents","_interopRequireDefault","_Clickable","_Text","_Theme","_Box","obj","__esModule","default","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_extends","assign","bind","target","i","arguments","length","source","apply","_slicedToArray","arr","_arrayWithHoles","_iterableToArrayLimit","_unsupportedIterableToArray","_nonIterableRest","TypeError","o","minLen","_arrayLikeToArray","n","toString","slice","constructor","name","Array","from","test","len","arr2","_i","Symbol","iterator","_s","_e","_x","_r","_arr","_n","_d","next","done","push","value","err","return","isArray","ReadMore","exports","_ref","expandedHTML","content","disabled","_ref$inlineReadMoreLi","inlineReadMoreLink","defaultExpanded","_ref$maxLines","maxLines","Infinity","onReadLessClicked","onReadMoreClicked","ref","useRef","_useTheme","useTheme","theme","_useState","useState","_useState2","overflowing","setOverflowing","_useState3","_useState4","singleLineHeight","setSingleLineHeight","_useState5","_useState6","expanded","setExpanded","maxLinesToShow","handleClick","prevExpanded","nextExpanded","handleResize","current","shouldExpand","scrollHeight","clientHeight","sentinel","querySelector","initialized","useEffect","createElement","Container","LineClamp","lineClamp","Box","position","dangerouslySetInnerHTML","__html","concat","SENTINEL","Clickable","cursor","textDecoration","onClick","bottom","right","background","colors","mono0","space","pl","height","display","alignItems","justifyContent","Text","variant","fontWeight","displayName","styled","div","withConfig","componentId","props"],"sources":["../../../src/elements/ReadMore/ReadMore.tsx"],"sourcesContent":["import React, { useEffect, useRef, useState } from \"react\"\nimport styled from \"styled-components\"\nimport { Clickable } from \"../Clickable\"\nimport { Text } from \"../Text\"\nimport { useTheme } from \"../../Theme\"\nimport { Box } from \"../Box\"\n\nexport interface ReadMoreProps {\n content: string\n disabled?: boolean\n inlineReadMoreLink?: boolean\n defaultExpanded?: boolean\n maxLines?: number\n onReadLessClicked?: () => void\n onReadMoreClicked?: () => void\n}\n\nexport const ReadMore: React.FC<React.PropsWithChildren<ReadMoreProps>> = ({\n content: expandedHTML,\n disabled,\n inlineReadMoreLink = true,\n defaultExpanded,\n maxLines = Infinity,\n onReadLessClicked,\n onReadMoreClicked,\n}) => {\n const ref = useRef<HTMLDivElement>(null)\n\n const { theme } = useTheme()\n\n const [overflowing, setOverflowing] = useState(false)\n const [singleLineHeight, setSingleLineHeight] = useState(0)\n const [expanded, setExpanded] = useState(!!defaultExpanded)\n\n const maxLinesToShow = expanded ? Infinity : maxLines\n\n const handleClick = () => {\n if (disabled) return\n\n setExpanded((prevExpanded) => {\n const nextExpanded = !prevExpanded\n nextExpanded ? onReadMoreClicked?.() : onReadLessClicked?.()\n return nextExpanded\n })\n }\n\n const handleResize = () => {\n if (!ref.current) return false\n\n const shouldExpand = ref.current.scrollHeight > ref.current.clientHeight\n setOverflowing(shouldExpand)\n\n const sentinel = ref.current.querySelector(\"[data-readmore-sentinel]\")\n if (!sentinel) return shouldExpand\n\n setSingleLineHeight(sentinel.clientHeight)\n return shouldExpand\n }\n\n const initialized = useRef(false)\n\n useEffect(() => {\n if (initialized.current) return\n\n const shouldExpand = handleResize()\n if (!shouldExpand) setExpanded(true)\n\n initialized.current = true\n }, [])\n\n return (\n <Container aria-expanded={expanded}>\n <LineClamp ref={ref} lineClamp={maxLinesToShow}>\n {/* LineClamp's `display` causes stacking of margins. Nested div ensures internal margins collapse. */}\n <Box\n position=\"relative\"\n dangerouslySetInnerHTML={{\n __html: expanded ? expandedHTML : `${expandedHTML}${SENTINEL}`,\n }}\n />\n </LineClamp>\n\n {overflowing && (\n <Clickable\n cursor=\"pointer\"\n textDecoration=\"underline\"\n onClick={handleClick}\n {...(!expanded && inlineReadMoreLink\n ? {\n position: \"absolute\",\n bottom: 0,\n right: 0,\n background: `linear-gradient(to left, ${theme.colors.mono0} 0, ${theme.colors.mono0} calc(100% - ${theme.space[4]}), transparent 100%)`,\n pl: 4,\n height: singleLineHeight,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n }\n : {})}\n >\n <Text variant=\"xs\" fontWeight=\"bold\">\n Read {expanded ? \"less\" : \"more\"}\n </Text>\n </Clickable>\n )}\n </Container>\n )\n}\n\nconst SENTINEL = `<span data-readmore-sentinel aria-hidden=\"true\" style=\"display:block;width:0;padding:0;margin:0;position:absolute;bottom:0;right:0;\">&#8203;</span>`\n\nconst Container = styled.div`\n position: relative;\n`\n\nContainer.displayName = \"Container\"\n\nconst LineClamp = styled.div<{ lineClamp: number }>`\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: ${(props) => props.lineClamp};\n line-clamp: ${(props) => props.lineClamp};\n overflow: hidden;\n`\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AACA,IAAAI,KAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,IAAA,GAAAN,OAAA;AAA4B,SAAAE,uBAAAK,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAA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,WAAW;IAC1BC,OAAO,EAAEzB;EAAY,GAChB,CAACH,QAAQ,IAAIvB,kBAAkB,GAChC;IACE2C,QAAQ,EAAE,UAAU;IACpBS,MAAM,EAAE,CAAC;IACTC,KAAK,EAAE,CAAC;IACRC,UAAU,8BAAAR,MAAA,CAA8BnC,KAAK,CAAC4C,MAAM,CAACC,KAAK,UAAAV,MAAA,CAAOnC,KAAK,CAAC4C,MAAM,CAACC,KAAK,mBAAAV,MAAA,CAAgBnC,KAAK,CAAC8C,KAAK,CAAC,CAAC,CAAC,yBAAsB;IACvIC,EAAE,EAAE,CAAC;IACLC,MAAM,EAAExC,gBAAgB;IACxByC,OAAO,EAAE,MAAM;IACfC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB,CAAC,GACD,CAAC,CAAC,gBAENnJ,MAAA,CAAAW,OAAA,CAAAgH,aAAA,CAACrH,KAAA,CAAA8I,IAAI;IAACC,OAAO,EAAC,IAAI;IAACC,UAAU,EAAC;EAAM,GAAC,OAC9B,EAAC1C,QAAQ,GAAG,MAAM,GAAG,MAAM,CAC3B,CAEV,CACS;AAEhB,CAAC;AA3FY9B,QAA0D,CAAAyE,WAAA;AA6FvE,IAAMnB,QAAQ,4JAAwJ;AAEtK,IAAMR,SAAS,GAAG4B,yBAAM,CAACC,GAAG,CAAAC,UAAA;EAAAH,WAAA;EAAAI,WAAA;AAAA,0BAE3B;AAED/B,SAAS,CAAC2B,WAAW,GAAG,WAAW;AAEnC,IAAM1B,SAAS,GAAG2B,yBAAM,CAACC,GAAG,CAAAC,UAAA;EAAAH,WAAA;EAAAI,WAAA;AAAA,iHAGJ,UAACC,KAAK;EAAA,OAAKA,KAAK,CAAC9B,SAAS;AAAA,GAClC,UAAC8B,KAAK;EAAA,OAAKA,KAAK,CAAC9B,SAAS;AAAA,EAEzC"}
1
+ {"version":3,"file":"ReadMore.js","names":["_react","_interopRequireWildcard","require","_styledComponents","_interopRequireDefault","_Clickable","_Text","_Box","obj","__esModule","default","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_slicedToArray","arr","i","_arrayWithHoles","_iterableToArrayLimit","_unsupportedIterableToArray","_nonIterableRest","TypeError","o","minLen","_arrayLikeToArray","n","toString","slice","constructor","name","Array","from","test","len","length","arr2","_i","Symbol","iterator","_s","_e","_x","_r","_arr","_n","_d","next","done","push","value","err","return","isArray","ReadMore","exports","_ref","expandedHTML","content","disabled","defaultExpanded","_ref$maxLines","maxLines","Infinity","onReadLessClicked","onReadMoreClicked","ref","useRef","_useState","useState","_useState2","overflowing","setOverflowing","_useState3","_useState4","expanded","setExpanded","maxLinesToShow","handleClick","prevExpanded","nextExpanded","handleResize","current","shouldExpand","scrollHeight","clientHeight","initialized","useEffect","createElement","Container","LineClamp","lineClamp","Box","position","dangerouslySetInnerHTML","__html","Clickable","cursor","textDecoration","onClick","display","width","Text","variant","fontWeight","displayName","styled","div","withConfig","componentId","props"],"sources":["../../../src/elements/ReadMore/ReadMore.tsx"],"sourcesContent":["import React, { useEffect, useRef, useState } from \"react\"\nimport styled from \"styled-components\"\nimport { Clickable } from \"../Clickable\"\nimport { Text } from \"../Text\"\nimport { Box } from \"../Box\"\n\nexport interface ReadMoreProps {\n content: string\n disabled?: boolean\n defaultExpanded?: boolean\n maxLines?: number\n onReadLessClicked?: () => void\n onReadMoreClicked?: () => void\n}\n\nexport const ReadMore: React.FC<React.PropsWithChildren<ReadMoreProps>> = ({\n content: expandedHTML,\n disabled,\n defaultExpanded,\n maxLines = Infinity,\n onReadLessClicked,\n onReadMoreClicked,\n}) => {\n const ref = useRef<HTMLDivElement>(null)\n\n const [overflowing, setOverflowing] = useState(false)\n const [expanded, setExpanded] = useState(!!defaultExpanded)\n\n const maxLinesToShow = expanded ? Infinity : maxLines\n\n const handleClick = () => {\n if (disabled) return\n\n setExpanded((prevExpanded) => {\n const nextExpanded = !prevExpanded\n nextExpanded ? onReadMoreClicked?.() : onReadLessClicked?.()\n return nextExpanded\n })\n }\n\n const handleResize = () => {\n if (!ref.current) return false\n\n const shouldExpand = ref.current.scrollHeight > ref.current.clientHeight\n setOverflowing(shouldExpand)\n\n return shouldExpand\n }\n\n const initialized = useRef(false)\n\n useEffect(() => {\n if (initialized.current) return\n\n const shouldExpand = handleResize()\n if (!shouldExpand) setExpanded(true)\n\n initialized.current = true\n }, [])\n\n return (\n <Container aria-expanded={expanded}>\n <LineClamp ref={ref} lineClamp={maxLinesToShow}>\n {/* LineClamp's `display` causes stacking of margins. Nested div ensures internal margins collapse. */}\n <Box\n position=\"relative\"\n dangerouslySetInnerHTML={{\n __html: expandedHTML,\n }}\n />\n </LineClamp>\n\n {overflowing && (\n <Clickable\n cursor=\"pointer\"\n textDecoration=\"underline\"\n onClick={handleClick}\n display=\"block\"\n width=\"100%\"\n >\n <Text variant=\"xs\" fontWeight=\"bold\">\n Read {expanded ? \"less\" : \"more\"}\n </Text>\n </Clickable>\n )}\n </Container>\n )\n}\n\nconst Container = styled.div`\n position: relative;\n`\n\nContainer.displayName = \"Container\"\n\nconst LineClamp = styled.div<{ lineClamp: number }>`\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: ${(props) => props.lineClamp};\n line-clamp: ${(props) => props.lineClamp};\n overflow: hidden;\n`\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AACA,IAAAI,KAAA,GAAAJ,OAAA;AACA,IAAAK,IAAA,GAAAL,OAAA;AAA4B,SAAAE,uBAAAI,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,yBAAAC,WAAA,eAAAC,OAAA,kCAA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C,QAAQ,EAAC,UAAU;IACnBC,uBAAuB,EAAE;MACvBC,MAAM,EAAEtC;IACV;EAAE,EACF,CACQ,EAEXc,WAAW,iBACVvF,MAAA,CAAAU,OAAA,CAAA8F,aAAA,CAACnG,UAAA,CAAA2G,SAAS;IACRC,MAAM,EAAC,SAAS;IAChBC,cAAc,EAAC,WAAW;IAC1BC,OAAO,EAAErB,WAAY;IACrBsB,OAAO,EAAC,OAAO;IACfC,KAAK,EAAC;EAAM,gBAEZrH,MAAA,CAAAU,OAAA,CAAA8F,aAAA,CAAClG,KAAA,CAAAgH,IAAI;IAACC,OAAO,EAAC,IAAI;IAACC,UAAU,EAAC;EAAM,GAAC,OAC9B,EAAC7B,QAAQ,GAAG,MAAM,GAAG,MAAM,CAC3B,CAEV,CACS;AAEhB,CAAC;AAxEYrB,QAA0D,CAAAmD,WAAA;AA0EvE,IAAMhB,SAAS,GAAGiB,yBAAM,CAACC,GAAG,CAAAC,UAAA;EAAAH,WAAA;EAAAI,WAAA;AAAA,0BAE3B;AAEDpB,SAAS,CAACgB,WAAW,GAAG,WAAW;AAEnC,IAAMf,SAAS,GAAGgB,yBAAM,CAACC,GAAG,CAAAC,UAAA;EAAAH,WAAA;EAAAI,WAAA;AAAA,iHAGJ,UAACC,KAAK;EAAA,OAAKA,KAAK,CAACnB,SAAS;AAAA,GAClC,UAACmB,KAAK;EAAA,OAAKA,KAAK,CAACnB,SAAS;AAAA,EAEzC"}
@@ -100,13 +100,3 @@ export declare const CharacterCapWithHtmlDisabled: {
100
100
  };
101
101
  };
102
102
  };
103
- export declare const WithBottomReadMore: {
104
- render: () => React.JSX.Element;
105
- parameters: {
106
- docs: {
107
- description: {
108
- story: string;
109
- };
110
- };
111
- };
112
- };
@@ -3,11 +3,10 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = exports.WithCustomizableTypography2 = exports.WithCustomizableTypography = exports.WithBottomReadMore = exports.ShortContent = exports.Default = exports.CharacterCapWithHtmlDisabled = exports.CharacterCapWithHtml = exports.AsString = void 0;
6
+ exports.default = exports.WithCustomizableTypography2 = exports.WithCustomizableTypography = exports.ShortContent = exports.Default = exports.CharacterCapWithHtmlDisabled = exports.CharacterCapWithHtml = exports.AsString = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _HTML = require("../HTML");
9
9
  var _ReadMore = require("./ReadMore");
10
- var _Box = require("../Box");
11
10
  var _storybookBlocklist = require("../../utils/storybookBlocklist");
12
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
12
  var _default = exports.default = {
@@ -133,25 +132,4 @@ var CharacterCapWithHtmlDisabled = exports.CharacterCapWithHtmlDisabled = {
133
132
  }
134
133
  }
135
134
  };
136
- var WithBottomReadMore = exports.WithBottomReadMore = {
137
- render: function render() {
138
- return /*#__PURE__*/_react.default.createElement(_Box.Box, {
139
- textAlign: "center",
140
- width: 600
141
- }, /*#__PURE__*/_react.default.createElement(_HTML.HTML, {
142
- variant: "lg"
143
- }, /*#__PURE__*/_react.default.createElement(_ReadMore.ReadMore, {
144
- inlineReadMoreLink: false,
145
- maxLines: 3,
146
- content: "<div>\n Donald Judd, widely regarded as one of the most significant American\n artists of <a href=\"#\">the post-war period</a>, is perhaps best-known\n for the large-scale outdoor installations and long, spacious interiors\n he designed in Marfa. Donald Judd, widely regarded as one of the most\n significant American artists of the post-war period, is perhaps\n best-known for the large-scale outdoor installations and long,\n spacious interiors he designed in Marfa.\n </div>"
147
- })));
148
- },
149
- parameters: {
150
- docs: {
151
- description: {
152
- story: "ReadMore with bottom-placed 'Read More' link."
153
- }
154
- }
155
- }
156
- };
157
135
  //# sourceMappingURL=ReadMore.story.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ReadMore.story.js","names":["_react","_interopRequireDefault","require","_HTML","_ReadMore","_Box","_storybookBlocklist","obj","__esModule","default","_default","exports","component","ReadMore","title","tags","parameters","docs","description","controls","exclude","STORYBOOK_PROPS_BLOCKLIST","Default","args","maxLines","onReadMoreClicked","console","log","onReadLessClicked","content","story","ShortContent","AsString","CharacterCapWithHtml","render","createElement","HTML","variant","WithCustomizableTypography","WithCustomizableTypography2","CharacterCapWithHtmlDisabled","disabled","WithBottomReadMore","Box","textAlign","width","inlineReadMoreLink"],"sources":["../../../src/elements/ReadMore/ReadMore.story.tsx"],"sourcesContent":["import React from \"react\"\nimport { HTML } from \"../HTML\"\nimport { ReadMore } from \"./ReadMore\"\nimport { Box } from \"../Box\"\nimport { STORYBOOK_PROPS_BLOCKLIST } from \"../../utils/storybookBlocklist\"\n\nexport default {\n component: ReadMore,\n title: \"Components/ReadMore\",\n tags: [\"autodocs\"],\n parameters: {\n docs: {\n description: {\n component:\n \"A component that truncates content and provides a 'read more' link to expand the full content.\",\n },\n },\n controls: {\n exclude: STORYBOOK_PROPS_BLOCKLIST,\n },\n },\n}\n\nexport const Default = {\n args: {\n maxLines: 2,\n onReadMoreClicked: () => console.log(\"Read more clicked\"),\n onReadLessClicked: () => console.log(\"Read less clicked\"),\n content: `<div>\n Donald Judd, widely regarded as one of the most significant American\n artists of <a href=\"#\">the post-war period</a>, is perhaps best-known\n for the large-scale outdoor installations and long, spacious interiors\n he designed in Marfa. Donald Judd, widely regarded as one of the most\n significant American artists of the post-war period, is perhaps\n best-known for the large-scale outdoor installations and long,\n spacious interiors he designed in Marfa.\n </div>`,\n },\n parameters: {\n docs: {\n description: {\n story: \"Read more component with character limit truncation.\",\n },\n },\n },\n}\n\nexport const ShortContent = {\n args: {\n maxLines: 3,\n content: `<div>\n Donald Judd, widely regarded as one of the most significant American\n artists of <a href=\"#\">the post-war period</a>.\n </div>`,\n },\n parameters: {\n docs: {\n description: {\n story: \"Read more with content shorter than the character limit.\",\n },\n },\n },\n}\n\nexport const AsString = {\n args: {\n maxLines: 2,\n content:\n \"Donald Judd, widely regarded as one of the most significant American artists of the post-war period, is perhaps best-known for the large-scale outdoor installations and long, spacious interiors he designed in Marfa. Donald Judd, widely regarded as one of the most significant American artists of the post-war period, is perhaps best-known for the large-scale outdoor installations and long, spacious interiors he designed in Marfa.\",\n },\n parameters: {\n docs: {\n description: {\n story: \"Read more with plain string content instead of HTML.\",\n },\n },\n },\n}\n\nexport const CharacterCapWithHtml = {\n render: () => (\n <HTML variant=\"sm\">\n <ReadMore\n maxLines={2}\n content={`<p>\n Donald Judd, widely regarded as one of the most significant American\n artists of <a href=\"#\">the post-war period</a>, is perhaps\n best-known for the large-scale outdoor installations and long,\n spacious interiors he designed in Marfa. Donald Judd, widely\n regarded as one of the most significant American artists of the\n post-war period, is perhaps best-known for the large-scale outdoor\n installations and long, spacious interiors he designed in Marfa.\n </p>\n <hr />\n <p>\n <strong>Lorem ipsum dolor</strong> sit amet consectetur adipisicing\n elit. Ducimus eligendi obcaecati voluptate\n <em>molestias vero nobis voluptatum</em>, tenetur dolorum assumenda.\n </p>\n <p>\n Lorem ipsum dolor sit amet consectetur adipisicing elit. Debitis\n eveniet aliquid laborum fugiat quibusdam id suscipit est temporibus\n labore sint aliquam, laudantium tempore. Tenetur adipisci cumque\n alias facilis animi. Illum.\n </p>`}\n />\n </HTML>\n ),\n parameters: {\n docs: {\n description: {\n story: \"Character cap with HTML content.\",\n },\n },\n },\n}\n\nexport const WithCustomizableTypography = {\n render: () => (\n <HTML>\n <ReadMore\n maxLines={3}\n content={`\n <p>\n Donald Judd, widely regarded as one of the most significant\n American artists of <a href=\"#\">the post-war period</a>, is\n perhaps best-known for the large-scale outdoor installations and\n long, spacious interiors he designed in Marfa. Donald Judd, widely\n regarded as one of the most significant American artists of the\n post-war period, is perhaps best-known for the large-scale outdoor\n installations and long, spacious interiors he designed in Marfa.\n </p>\n <hr />\n <p>\n <strong>Lorem ipsum dolor</strong> sit amet consectetur\n adipisicing elit. Ducimus eligendi obcaecati voluptate\n <em>molestias vero nobis voluptatum</em>, tenetur dolorum\n assumenda.\n </p>\n <p>\n Lorem ipsum dolor sit amet consectetur adipisicing elit. Debitis\n eveniet aliquid laborum fugiat quibusdam id suscipit est\n temporibus labore sint aliquam, laudantium tempore. Tenetur\n adipisci cumque alias facilis animi. Illum.\n </p>`}\n />\n </HTML>\n ),\n parameters: {\n docs: {\n description: {\n story: \"ReadMore with customizable typography using HTML wrapper.\",\n },\n },\n },\n}\n\nexport const WithCustomizableTypography2 = {\n render: () => (\n <HTML variant=\"lg\">\n <ReadMore\n maxLines={3}\n content={`<p>\n Donald Judd, widely regarded as one of the most significant\n American artists of <a href=\"#\">the post-war period</a>, is\n perhaps best-known for the large-scale outdoor installations and\n long, spacious interiors he designed in Marfa. Donald Judd, widely\n regarded as one of the most significant American artists of the\n post-war period, is perhaps best-known for the large-scale outdoor\n installations and long, spacious interiors he designed in Marfa.\n </p>\n <hr />\n <p>\n <strong>Lorem ipsum dolor</strong> sit amet consectetur\n adipisicing elit. Ducimus eligendi obcaecati voluptate\n <em>molestias vero nobis voluptatum</em>, tenetur dolorum\n assumenda.\n </p>\n <p>\n Lorem ipsum dolor sit amet consectetur adipisicing elit. Debitis\n eveniet aliquid laborum fugiat quibusdam id suscipit est\n temporibus labore sint aliquam, laudantium tempore. Tenetur\n adipisci cumque alias facilis animi. Illum.\n </p>`}\n />\n </HTML>\n ),\n parameters: {\n docs: {\n description: {\n story:\n \"ReadMore with customizable large typography using HTML wrapper.\",\n },\n },\n },\n}\n\nexport const CharacterCapWithHtmlDisabled = {\n args: {\n disabled: true,\n maxLines: 3,\n content: `<div>\n Donald Judd, widely regarded as one of the most significant American\n artists of <a href=\"#\">the post-war period</a>, is perhaps best-known\n for the large-scale outdoor installations and long, spacious interiors\n he designed in Marfa. Donald Judd, widely regarded as one of the most\n significant American artists of the post-war period, is perhaps\n best-known for the large-scale outdoor installations and long,\n spacious interiors he designed in Marfa.\n </div>`,\n },\n parameters: {\n docs: {\n description: {\n story: \"Character cap with HTML content when disabled.\",\n },\n },\n },\n}\n\nexport const WithBottomReadMore = {\n render: () => (\n <Box textAlign=\"center\" width={600}>\n <HTML variant=\"lg\">\n <ReadMore\n inlineReadMoreLink={false}\n maxLines={3}\n content={`<div>\n Donald Judd, widely regarded as one of the most significant American\n artists of <a href=\"#\">the post-war period</a>, is perhaps best-known\n for the large-scale outdoor installations and long, spacious interiors\n he designed in Marfa. Donald Judd, widely regarded as one of the most\n significant American artists of the post-war period, is perhaps\n best-known for the large-scale outdoor installations and long,\n spacious interiors he designed in Marfa.\n </div>`}\n />\n </HTML>\n </Box>\n ),\n parameters: {\n docs: {\n description: {\n story: \"ReadMore with bottom-placed 'Read More' link.\",\n },\n },\n },\n}\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,IAAA,GAAAH,OAAA;AACA,IAAAI,mBAAA,GAAAJ,OAAA;AAA0E,SAAAD,uBAAAM,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,IAAAG,QAAA,GAAAC,OAAA,CAAAF,OAAA,GAE3D;EACbG,SAAS,EAAEC,kBAAQ;EACnBC,KAAK,EAAE,qBAAqB;EAC5BC,IAAI,EAAE,CAAC,UAAU,CAAC;EAClBC,UAAU,EAAE;IACVC,IAAI,EAAE;MACJC,WAAW,EAAE;QACXN,SAAS,EACP;MACJ;IACF,CAAC;IACDO,QAAQ,EAAE;MACRC,OAAO,EAAEC;IACX;EACF;AACF,CAAC;AAEM,IAAMC,OAAO,GAAAX,OAAA,CAAAW,OAAA,GAAG;EACrBC,IAAI,EAAE;IACJC,QAAQ,EAAE,CAAC;IACXC,iBAAiB,EAAE,SAAnBA,iBAAiBA,CAAA;MAAA,OAAQC,OAAO,CAACC,GAAG,CAAC,mBAAmB,CAAC;IAAA;IACzDC,iBAAiB,EAAE,SAAnBA,iBAAiBA,CAAA;MAAA,OAAQF,OAAO,CAACC,GAAG,CAAC,mBAAmB,CAAC;IAA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,CAAAS,QAAQ;MACPiC,kBAAkB,EAAE,KAAM;MAC1BtB,QAAQ,EAAE,CAAE;MACZK,OAAO;IAQD,EACN,CACG,CACH;EAAA,CACP;EACDb,UAAU,EAAE;IACVC,IAAI,EAAE;MACJC,WAAW,EAAE;QACXY,KAAK,EAAE;MACT;IACF;EACF;AACF,CAAC"}
1
+ {"version":3,"file":"ReadMore.story.js","names":["_react","_interopRequireDefault","require","_HTML","_ReadMore","_storybookBlocklist","obj","__esModule","default","_default","exports","component","ReadMore","title","tags","parameters","docs","description","controls","exclude","STORYBOOK_PROPS_BLOCKLIST","Default","args","maxLines","onReadMoreClicked","console","log","onReadLessClicked","content","story","ShortContent","AsString","CharacterCapWithHtml","render","createElement","HTML","variant","WithCustomizableTypography","WithCustomizableTypography2","CharacterCapWithHtmlDisabled","disabled"],"sources":["../../../src/elements/ReadMore/ReadMore.story.tsx"],"sourcesContent":["import React from \"react\"\nimport { HTML } from \"../HTML\"\nimport { ReadMore } from \"./ReadMore\"\nimport { STORYBOOK_PROPS_BLOCKLIST } from \"../../utils/storybookBlocklist\"\n\nexport default {\n component: ReadMore,\n title: \"Components/ReadMore\",\n tags: [\"autodocs\"],\n parameters: {\n docs: {\n description: {\n component:\n \"A component that truncates content and provides a 'read more' link to expand the full content.\",\n },\n },\n controls: {\n exclude: STORYBOOK_PROPS_BLOCKLIST,\n },\n },\n}\n\nexport const Default = {\n args: {\n maxLines: 2,\n onReadMoreClicked: () => console.log(\"Read more clicked\"),\n onReadLessClicked: () => console.log(\"Read less clicked\"),\n content: `<div>\n Donald Judd, widely regarded as one of the most significant American\n artists of <a href=\"#\">the post-war period</a>, is perhaps best-known\n for the large-scale outdoor installations and long, spacious interiors\n he designed in Marfa. Donald Judd, widely regarded as one of the most\n significant American artists of the post-war period, is perhaps\n best-known for the large-scale outdoor installations and long,\n spacious interiors he designed in Marfa.\n </div>`,\n },\n parameters: {\n docs: {\n description: {\n story: \"Read more component with character limit truncation.\",\n },\n },\n },\n}\n\nexport const ShortContent = {\n args: {\n maxLines: 3,\n content: `<div>\n Donald Judd, widely regarded as one of the most significant American\n artists of <a href=\"#\">the post-war period</a>.\n </div>`,\n },\n parameters: {\n docs: {\n description: {\n story: \"Read more with content shorter than the character limit.\",\n },\n },\n },\n}\n\nexport const AsString = {\n args: {\n maxLines: 2,\n content:\n \"Donald Judd, widely regarded as one of the most significant American artists of the post-war period, is perhaps best-known for the large-scale outdoor installations and long, spacious interiors he designed in Marfa. Donald Judd, widely regarded as one of the most significant American artists of the post-war period, is perhaps best-known for the large-scale outdoor installations and long, spacious interiors he designed in Marfa.\",\n },\n parameters: {\n docs: {\n description: {\n story: \"Read more with plain string content instead of HTML.\",\n },\n },\n },\n}\n\nexport const CharacterCapWithHtml = {\n render: () => (\n <HTML variant=\"sm\">\n <ReadMore\n maxLines={2}\n content={`<p>\n Donald Judd, widely regarded as one of the most significant American\n artists of <a href=\"#\">the post-war period</a>, is perhaps\n best-known for the large-scale outdoor installations and long,\n spacious interiors he designed in Marfa. Donald Judd, widely\n regarded as one of the most significant American artists of the\n post-war period, is perhaps best-known for the large-scale outdoor\n installations and long, spacious interiors he designed in Marfa.\n </p>\n <hr />\n <p>\n <strong>Lorem ipsum dolor</strong> sit amet consectetur adipisicing\n elit. Ducimus eligendi obcaecati voluptate\n <em>molestias vero nobis voluptatum</em>, tenetur dolorum assumenda.\n </p>\n <p>\n Lorem ipsum dolor sit amet consectetur adipisicing elit. Debitis\n eveniet aliquid laborum fugiat quibusdam id suscipit est temporibus\n labore sint aliquam, laudantium tempore. Tenetur adipisci cumque\n alias facilis animi. Illum.\n </p>`}\n />\n </HTML>\n ),\n parameters: {\n docs: {\n description: {\n story: \"Character cap with HTML content.\",\n },\n },\n },\n}\n\nexport const WithCustomizableTypography = {\n render: () => (\n <HTML>\n <ReadMore\n maxLines={3}\n content={`\n <p>\n Donald Judd, widely regarded as one of the most significant\n American artists of <a href=\"#\">the post-war period</a>, is\n perhaps best-known for the large-scale outdoor installations and\n long, spacious interiors he designed in Marfa. Donald Judd, widely\n regarded as one of the most significant American artists of the\n post-war period, is perhaps best-known for the large-scale outdoor\n installations and long, spacious interiors he designed in Marfa.\n </p>\n <hr />\n <p>\n <strong>Lorem ipsum dolor</strong> sit amet consectetur\n adipisicing elit. Ducimus eligendi obcaecati voluptate\n <em>molestias vero nobis voluptatum</em>, tenetur dolorum\n assumenda.\n </p>\n <p>\n Lorem ipsum dolor sit amet consectetur adipisicing elit. Debitis\n eveniet aliquid laborum fugiat quibusdam id suscipit est\n temporibus labore sint aliquam, laudantium tempore. Tenetur\n adipisci cumque alias facilis animi. Illum.\n </p>`}\n />\n </HTML>\n ),\n parameters: {\n docs: {\n description: {\n story: \"ReadMore with customizable typography using HTML wrapper.\",\n },\n },\n },\n}\n\nexport const WithCustomizableTypography2 = {\n render: () => (\n <HTML variant=\"lg\">\n <ReadMore\n maxLines={3}\n content={`<p>\n Donald Judd, widely regarded as one of the most significant\n American artists of <a href=\"#\">the post-war period</a>, is\n perhaps best-known for the large-scale outdoor installations and\n long, spacious interiors he designed in Marfa. Donald Judd, widely\n regarded as one of the most significant American artists of the\n post-war period, is perhaps best-known for the large-scale outdoor\n installations and long, spacious interiors he designed in Marfa.\n </p>\n <hr />\n <p>\n <strong>Lorem ipsum dolor</strong> sit amet consectetur\n adipisicing elit. Ducimus eligendi obcaecati voluptate\n <em>molestias vero nobis voluptatum</em>, tenetur dolorum\n assumenda.\n </p>\n <p>\n Lorem ipsum dolor sit amet consectetur adipisicing elit. Debitis\n eveniet aliquid laborum fugiat quibusdam id suscipit est\n temporibus labore sint aliquam, laudantium tempore. Tenetur\n adipisci cumque alias facilis animi. Illum.\n </p>`}\n />\n </HTML>\n ),\n parameters: {\n docs: {\n description: {\n story:\n \"ReadMore with customizable large typography using HTML wrapper.\",\n },\n },\n },\n}\n\nexport const CharacterCapWithHtmlDisabled = {\n args: {\n disabled: true,\n maxLines: 3,\n content: `<div>\n Donald Judd, widely regarded as one of the most significant American\n artists of <a href=\"#\">the post-war period</a>, is perhaps best-known\n for the large-scale outdoor installations and long, spacious interiors\n he designed in Marfa. Donald Judd, widely regarded as one of the most\n significant American artists of the post-war period, is perhaps\n best-known for the large-scale outdoor installations and long,\n spacious interiors he designed in Marfa.\n </div>`,\n },\n parameters: {\n docs: {\n description: {\n story: \"Character cap with HTML content when disabled.\",\n },\n },\n },\n}\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,mBAAA,GAAAH,OAAA;AAA0E,SAAAD,uBAAAK,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,IAAAG,QAAA,GAAAC,OAAA,CAAAF,OAAA,GAE3D;EACbG,SAAS,EAAEC,kBAAQ;EACnBC,KAAK,EAAE,qBAAqB;EAC5BC,IAAI,EAAE,CAAC,UAAU,CAAC;EAClBC,UAAU,EAAE;IACVC,IAAI,EAAE;MACJC,WAAW,EAAE;QACXN,SAAS,EACP;MACJ;IACF,CAAC;IACDO,QAAQ,EAAE;MACRC,OAAO,EAAEC;IACX;EACF;AACF,CAAC;AAEM,IAAMC,OAAO,GAAAX,OAAA,CAAAW,OAAA,GAAG;EACrBC,IAAI,EAAE;IACJC,QAAQ,EAAE,CAAC;IACXC,iBAAiB,EAAE,SAAnBA,iBAAiBA,CAAA;MAAA,OAAQC,OAAO,CAACC,GAAG,CAAC,mBAAmB,CAAC;IAAA;IACzDC,iBAAiB,EAAE,SAAnBA,iBAAiBA,CAAA;MAAA,OAAQF,OAAO,CAACC,GAAG,CAAC,mBAAmB,CAAC;IAAA;IACzDE,OAAO;EAST,CAAC;EACDb,UAAU,EAAE;IACVC,IAAI,EAAE;MACJC,WAAW,EAAE;QACXY,KAAK,EAAE;MACT;IACF;EACF;AACF,CAAC;AAEM,IAAMC,Y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E;QACXY,KAAK,EAAE;MACT;IACF;EACF;AACF,CAAC;AAEM,IAAMS,2BAA2B,GAAA5B,OAAA,CAAA4B,2BAAA,GAAG;EACzCL,MAAM,EAAE,SAARA,MAAMA,CAAA;IAAA,oBACJjC,MAAA,CAAAQ,OAAA,CAAA0B,aAAA,CAAC/B,KAAA,CAAAgC,IAAI;MAACC,OAAO,EAAC;IAAI,gBAChBpC,MAAA,CAAAQ,OAAA,CAAA0B,aAAA,CAAC9B,SAAA,CAAAQ,QAAQ;MACPW,QAAQ,EAAE,CAAE;MACZK,OAAO;IAqBG,EACV,CACG;EAAA,CACR;EACDb,UAAU,EAAE;IACVC,IAAI,EAAE;MACJC,WAAW,EAAE;QACXY,KAAK,EACH;MACJ;IACF;EACF;AACF,CAAC;AAEM,IAAMU,4BAA4B,GAAA7B,OAAA,CAAA6B,4BAAA,GAAG;EAC1CjB,IAAI,EAAE;IACJkB,QAAQ,EAAE,IAAI;IACdjB,QAAQ,EAAE,CAAC;IACXK,OAAO;EAST,CAAC;EACDb,UAAU,EAAE;IACVC,IAAI,EAAE;MACJC,WAAW,EAAE;QACXY,KAAK,EAAE;MACT;IACF;EACF;AACF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/palette",
3
- "version": "45.0.0",
3
+ "version": "45.1.0",
4
4
  "description": "Design system library for react components",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {
@@ -191,5 +191,5 @@
191
191
  "url": "http://localhost"
192
192
  }
193
193
  },
194
- "gitHead": "3c6197033960490c4fb28af4cc39906078adee52"
194
+ "gitHead": "a2560f5fe7c1f60d8854aa3689e15ecfed930228"
195
195
  }