@artsy/palette 44.1.0 → 45.0.0-canary.1472.32632.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (213) hide show
  1. package/dist/elements/AutocompleteInput/AutocompleteInput.story.d.ts +105 -6
  2. package/dist/elements/AutocompleteInput/AutocompleteInput.story.js +78 -365
  3. package/dist/elements/AutocompleteInput/AutocompleteInput.story.js.map +1 -1
  4. package/dist/elements/Avatar/Avatar.story.d.ts +74 -5
  5. package/dist/elements/Avatar/Avatar.story.js +69 -85
  6. package/dist/elements/Avatar/Avatar.story.js.map +1 -1
  7. package/dist/elements/Banner/Banner.story.d.ts +53 -2
  8. package/dist/elements/Banner/Banner.story.js +55 -24
  9. package/dist/elements/Banner/Banner.story.js.map +1 -1
  10. package/dist/elements/BaseTabs/BaseTabs.story.d.ts +45 -20
  11. package/dist/elements/BaseTabs/BaseTabs.story.js +99 -154
  12. package/dist/elements/BaseTabs/BaseTabs.story.js.map +1 -1
  13. package/dist/elements/BorderedRadio/BorderedRadio.story.d.ts +30 -1
  14. package/dist/elements/BorderedRadio/BorderedRadio.story.js +92 -19
  15. package/dist/elements/BorderedRadio/BorderedRadio.story.js.map +1 -1
  16. package/dist/elements/Box/Box.story.d.ts +35 -1
  17. package/dist/elements/Box/Box.story.js +54 -28
  18. package/dist/elements/Box/Box.story.js.map +1 -1
  19. package/dist/elements/Breadcrumbs/Breadcrumbs.story.d.ts +27 -1
  20. package/dist/elements/Breadcrumbs/Breadcrumbs.story.js +43 -26
  21. package/dist/elements/Breadcrumbs/Breadcrumbs.story.js.map +1 -1
  22. package/dist/elements/Button/Button.story.d.ts +132 -19
  23. package/dist/elements/Button/Button.story.js +133 -228
  24. package/dist/elements/Button/Button.story.js.map +1 -1
  25. package/dist/elements/CSSGrid/CSSGrid.story.d.ts +35 -10
  26. package/dist/elements/CSSGrid/CSSGrid.story.js +57 -20
  27. package/dist/elements/CSSGrid/CSSGrid.story.js.map +1 -1
  28. package/dist/elements/Cards/Cards.story.d.ts +56 -14
  29. package/dist/elements/Cards/Cards.story.js +65 -55
  30. package/dist/elements/Cards/Cards.story.js.map +1 -1
  31. package/dist/elements/Carousel/Carousel.story.d.ts +135 -48
  32. package/dist/elements/Carousel/Carousel.story.js +399 -303
  33. package/dist/elements/Carousel/Carousel.story.js.map +1 -1
  34. package/dist/elements/CarouselBar/CarouselBar.story.d.ts +37 -2
  35. package/dist/elements/CarouselBar/CarouselBar.story.js +38 -19
  36. package/dist/elements/CarouselBar/CarouselBar.story.js.map +1 -1
  37. package/dist/elements/Checkbox/Check.story.d.ts +75 -2
  38. package/dist/elements/Checkbox/Check.story.js +77 -32
  39. package/dist/elements/Checkbox/Check.story.js.map +1 -1
  40. package/dist/elements/Checkbox/Checkbox.story.d.ts +79 -3
  41. package/dist/elements/Checkbox/Checkbox.story.js +81 -79
  42. package/dist/elements/Checkbox/Checkbox.story.js.map +1 -1
  43. package/dist/elements/Clickable/Clickable.story.d.ts +50 -5
  44. package/dist/elements/Clickable/Clickable.story.js +52 -58
  45. package/dist/elements/Clickable/Clickable.story.js.map +1 -1
  46. package/dist/elements/Drawer/Drawer.story.d.ts +36 -2
  47. package/dist/elements/Drawer/Drawer.story.js +42 -9
  48. package/dist/elements/Drawer/Drawer.story.js.map +1 -1
  49. package/dist/elements/Dropdown/Dropdown.story.d.ts +53 -18
  50. package/dist/elements/Dropdown/Dropdown.story.js +244 -237
  51. package/dist/elements/Dropdown/Dropdown.story.js.map +1 -1
  52. package/dist/elements/EntityHeader/EntityHeader.story.d.ts +245 -1
  53. package/dist/elements/EntityHeader/EntityHeader.story.js +209 -76
  54. package/dist/elements/EntityHeader/EntityHeader.story.js.map +1 -1
  55. package/dist/elements/Expandable/Expandable.story.d.ts +54 -2
  56. package/dist/elements/Expandable/Expandable.story.js +76 -65
  57. package/dist/elements/Expandable/Expandable.story.js.map +1 -1
  58. package/dist/elements/FilterSelect/FilterSelect.story.d.ts +153 -2
  59. package/dist/elements/FilterSelect/FilterSelect.story.js +159 -62
  60. package/dist/elements/FilterSelect/FilterSelect.story.js.map +1 -1
  61. package/dist/elements/FullBleed/FullBleed.story.d.ts +30 -1
  62. package/dist/elements/FullBleed/FullBleed.story.js +44 -21
  63. package/dist/elements/FullBleed/FullBleed.story.js.map +1 -1
  64. package/dist/elements/GridColumns/GridColumns.story.d.ts +47 -9
  65. package/dist/elements/GridColumns/GridColumns.story.js +188 -204
  66. package/dist/elements/GridColumns/GridColumns.story.js.map +1 -1
  67. package/dist/elements/HTML/HTML.story.d.ts +56 -9
  68. package/dist/elements/HTML/HTML.story.js +56 -28
  69. package/dist/elements/HTML/HTML.story.js.map +1 -1
  70. package/dist/elements/HorizontalOverflow/HorizontalOverflow.story.d.ts +52 -2
  71. package/dist/elements/HorizontalOverflow/HorizontalOverflow.story.js +83 -46
  72. package/dist/elements/HorizontalOverflow/HorizontalOverflow.story.js.map +1 -1
  73. package/dist/elements/Image/Image.story.d.ts +56 -17
  74. package/dist/elements/Image/Image.story.js +106 -88
  75. package/dist/elements/Image/Image.story.js.map +1 -1
  76. package/dist/elements/Input/Input.story.d.ts +111 -6
  77. package/dist/elements/Input/Input.story.js +108 -106
  78. package/dist/elements/Input/Input.story.js.map +1 -1
  79. package/dist/elements/Join/Join.d.ts +1 -2
  80. package/dist/elements/Join/Join.js.map +1 -1
  81. package/dist/elements/Join/Join.story.d.ts +55 -10
  82. package/dist/elements/Join/Join.story.js +122 -58
  83. package/dist/elements/Join/Join.story.js.map +1 -1
  84. package/dist/elements/Label/Label.story.d.ts +44 -2
  85. package/dist/elements/Label/Label.story.js +68 -24
  86. package/dist/elements/Label/Label.story.js.map +1 -1
  87. package/dist/elements/LabeledInput/LabeledInput.story.d.ts +50 -3
  88. package/dist/elements/LabeledInput/LabeledInput.story.js +62 -68
  89. package/dist/elements/LabeledInput/LabeledInput.story.js.map +1 -1
  90. package/dist/elements/Marquee/Marquee.story.d.ts +57 -1
  91. package/dist/elements/Marquee/Marquee.story.js +82 -20
  92. package/dist/elements/Marquee/Marquee.story.js.map +1 -1
  93. package/dist/elements/Message/Message.story.d.ts +56 -1
  94. package/dist/elements/Message/Message.story.js +84 -25
  95. package/dist/elements/Message/Message.story.js.map +1 -1
  96. package/dist/elements/Modal/ModalBase.story.d.ts +53 -4
  97. package/dist/elements/Modal/ModalBase.story.js +78 -33
  98. package/dist/elements/Modal/ModalBase.story.js.map +1 -1
  99. package/dist/elements/ModalDialog/ModalDialog.story.d.ts +58 -1
  100. package/dist/elements/ModalDialog/ModalDialog.story.js +93 -144
  101. package/dist/elements/ModalDialog/ModalDialog.story.js.map +1 -1
  102. package/dist/elements/ModalDialog/ModalDialogContent.story.d.ts +112 -1
  103. package/dist/elements/ModalDialog/ModalDialogContent.story.js +190 -65
  104. package/dist/elements/ModalDialog/ModalDialogContent.story.js.map +1 -1
  105. package/dist/elements/MultiSelect/MultiSelect.story.d.ts +119 -2
  106. package/dist/elements/MultiSelect/MultiSelect.story.js +102 -46
  107. package/dist/elements/MultiSelect/MultiSelect.story.js.map +1 -1
  108. package/dist/elements/Pagination/Pagination.story.d.ts +88 -4
  109. package/dist/elements/Pagination/Pagination.story.js +64 -23
  110. package/dist/elements/Pagination/Pagination.story.js.map +1 -1
  111. package/dist/elements/PasswordInput/PasswordInput.story.d.ts +54 -2
  112. package/dist/elements/PasswordInput/PasswordInput.story.js +54 -16
  113. package/dist/elements/PasswordInput/PasswordInput.story.js.map +1 -1
  114. package/dist/elements/Pill/Pill.story.d.ts +114 -9
  115. package/dist/elements/Pill/Pill.story.js +282 -169
  116. package/dist/elements/Pill/Pill.story.js.map +1 -1
  117. package/dist/elements/Popover/Popover.story.d.ts +162 -13
  118. package/dist/elements/Popover/Popover.story.js +351 -190
  119. package/dist/elements/Popover/Popover.story.js.map +1 -1
  120. package/dist/elements/ProgressBar/ProgressBar.story.d.ts +43 -7
  121. package/dist/elements/ProgressBar/ProgressBar.story.js +73 -35
  122. package/dist/elements/ProgressBar/ProgressBar.story.js.map +1 -1
  123. package/dist/elements/ProgressDots/ProgressDots.story.d.ts +69 -7
  124. package/dist/elements/ProgressDots/ProgressDots.story.js +108 -41
  125. package/dist/elements/ProgressDots/ProgressDots.story.js.map +1 -1
  126. package/dist/elements/Radio/Radio.story.d.ts +103 -2
  127. package/dist/elements/Radio/Radio.story.js +112 -57
  128. package/dist/elements/Radio/Radio.story.js.map +1 -1
  129. package/dist/elements/RadioGroup/RadioGroup.story.d.ts +104 -5
  130. package/dist/elements/RadioGroup/RadioGroup.story.js +183 -65
  131. package/dist/elements/RadioGroup/RadioGroup.story.js.map +1 -1
  132. package/dist/elements/Range/Range.story.d.ts +89 -8
  133. package/dist/elements/Range/Range.story.js +170 -94
  134. package/dist/elements/Range/Range.story.js.map +1 -1
  135. package/dist/elements/ReadMore/ReadMore.d.ts +1 -1
  136. package/dist/elements/ReadMore/ReadMore.js +54 -42
  137. package/dist/elements/ReadMore/ReadMore.js.map +1 -1
  138. package/dist/elements/ReadMore/ReadMore.story.d.ts +85 -25
  139. package/dist/elements/ReadMore/ReadMore.story.js +128 -85
  140. package/dist/elements/ReadMore/ReadMore.story.js.map +1 -1
  141. package/dist/elements/ResponsiveBox/ResponsiveBox.story.d.ts +40 -5
  142. package/dist/elements/ResponsiveBox/ResponsiveBox.story.js +87 -51
  143. package/dist/elements/ResponsiveBox/ResponsiveBox.story.js.map +1 -1
  144. package/dist/elements/Select/Select.story.d.ts +260 -2
  145. package/dist/elements/Select/Select.story.js +216 -48
  146. package/dist/elements/Select/Select.story.js.map +1 -1
  147. package/dist/elements/SelectInput/SelectInput.story.d.ts +304 -3
  148. package/dist/elements/SelectInput/SelectInput.story.js +347 -99
  149. package/dist/elements/SelectInput/SelectInput.story.js.map +1 -1
  150. package/dist/elements/SelectInput/SelectInputList.story.d.ts +31 -1
  151. package/dist/elements/SelectInput/SelectInputList.story.js +35 -164
  152. package/dist/elements/SelectInput/SelectInputList.story.js.map +1 -1
  153. package/dist/elements/Separator/Separator.story.d.ts +64 -2
  154. package/dist/elements/Separator/Separator.story.js +65 -18
  155. package/dist/elements/Separator/Separator.story.js.map +1 -1
  156. package/dist/elements/Shelf/Shelf.story.d.ts +140 -8
  157. package/dist/elements/Shelf/Shelf.story.js +224 -56
  158. package/dist/elements/Shelf/Shelf.story.js.map +1 -1
  159. package/dist/elements/ShowMore/ShowMore.story.d.ts +46 -4
  160. package/dist/elements/ShowMore/ShowMore.story.js +102 -48
  161. package/dist/elements/ShowMore/ShowMore.story.js.map +1 -1
  162. package/dist/elements/Skeleton/Skeleton.story.d.ts +68 -4
  163. package/dist/elements/Skeleton/Skeleton.story.js +84 -58
  164. package/dist/elements/Skeleton/Skeleton.story.js.map +1 -1
  165. package/dist/elements/Skip/Skip.story.d.ts +50 -11
  166. package/dist/elements/Skip/Skip.story.js +69 -31
  167. package/dist/elements/Skip/Skip.story.js.map +1 -1
  168. package/dist/elements/Spacer/Spacer.story.d.ts +39 -4
  169. package/dist/elements/Spacer/Spacer.story.js +53 -51
  170. package/dist/elements/Spacer/Spacer.story.js.map +1 -1
  171. package/dist/elements/Spinner/Spinner.story.d.ts +47 -7
  172. package/dist/elements/Spinner/Spinner.story.js +47 -27
  173. package/dist/elements/Spinner/Spinner.story.js.map +1 -1
  174. package/dist/elements/Stack/Stack.story.d.ts +45 -1
  175. package/dist/elements/Stack/Stack.story.js +81 -33
  176. package/dist/elements/Stack/Stack.story.js.map +1 -1
  177. package/dist/elements/StackableBorderBox/StackableBorderBox.story.d.ts +24 -1
  178. package/dist/elements/StackableBorderBox/StackableBorderBox.story.js +28 -9
  179. package/dist/elements/StackableBorderBox/StackableBorderBox.story.js.map +1 -1
  180. package/dist/elements/Stepper/Stepper.story.d.ts +99 -2
  181. package/dist/elements/Stepper/Stepper.story.js +166 -64
  182. package/dist/elements/Stepper/Stepper.story.js.map +1 -1
  183. package/dist/elements/Sup/Sup.story.d.ts +47 -1
  184. package/dist/elements/Sup/Sup.story.js +57 -15
  185. package/dist/elements/Sup/Sup.story.js.map +1 -1
  186. package/dist/elements/Swiper/Swiper.story.d.ts +32 -45
  187. package/dist/elements/Swiper/Swiper.story.js +234 -235
  188. package/dist/elements/Swiper/Swiper.story.js.map +1 -1
  189. package/dist/elements/Tabs/Tabs.story.d.ts +41 -18
  190. package/dist/elements/Tabs/Tabs.story.js +255 -238
  191. package/dist/elements/Tabs/Tabs.story.js.map +1 -1
  192. package/dist/elements/Text/Text.story.d.ts +117 -5
  193. package/dist/elements/Text/Text.story.js +119 -97
  194. package/dist/elements/Text/Text.story.js.map +1 -1
  195. package/dist/elements/TextArea/TextArea.story.d.ts +45 -2
  196. package/dist/elements/TextArea/TextArea.story.js +106 -49
  197. package/dist/elements/TextArea/TextArea.story.js.map +1 -1
  198. package/dist/elements/Toasts/Toast.story.d.ts +91 -2
  199. package/dist/elements/Toasts/Toast.story.js +90 -24
  200. package/dist/elements/Toasts/Toast.story.js.map +1 -1
  201. package/dist/elements/Toasts/Toasts.story.d.ts +13 -1
  202. package/dist/elements/Toasts/Toasts.story.js +78 -64
  203. package/dist/elements/Toasts/Toasts.story.js.map +1 -1
  204. package/dist/elements/Toggle/Toggle.story.d.ts +66 -2
  205. package/dist/elements/Toggle/Toggle.story.js +97 -41
  206. package/dist/elements/Toggle/Toggle.story.js.map +1 -1
  207. package/dist/elements/Tooltip/Tooltip.story.d.ts +53 -19
  208. package/dist/elements/Tooltip/Tooltip.story.js +201 -212
  209. package/dist/elements/Tooltip/Tooltip.story.js.map +1 -1
  210. package/dist/utils/storybookBlocklist.d.ts +6 -0
  211. package/dist/utils/storybookBlocklist.js +47 -0
  212. package/dist/utils/storybookBlocklist.js.map +1 -0
  213. package/package.json +3 -2
@@ -1,53 +1,113 @@
1
1
  import React from "react";
2
2
  declare const _default: {
3
+ component: React.FC<React.PropsWithChildren<import("./ReadMore").ReadMoreProps>>;
3
4
  title: string;
5
+ tags: string[];
6
+ parameters: {
7
+ docs: {
8
+ description: {
9
+ component: string;
10
+ };
11
+ };
12
+ controls: {
13
+ exclude: string[];
14
+ };
15
+ };
4
16
  };
5
17
  export default _default;
6
- export declare const WithCharacterCap: {
7
- (): React.JSX.Element;
8
- story: {
9
- name: string;
18
+ export declare const Default: {
19
+ args: {
20
+ maxLines: number;
21
+ content: string;
22
+ };
23
+ parameters: {
24
+ docs: {
25
+ description: {
26
+ story: string;
27
+ };
28
+ };
10
29
  };
11
30
  };
12
31
  export declare const ShortContent: {
13
- (): React.JSX.Element;
14
- story: {
15
- name: string;
32
+ args: {
33
+ maxLines: number;
34
+ content: string;
35
+ };
36
+ parameters: {
37
+ docs: {
38
+ description: {
39
+ story: string;
40
+ };
41
+ };
16
42
  };
17
43
  };
18
44
  export declare const AsString: {
19
- (): React.JSX.Element;
20
- story: {
21
- name: string;
45
+ args: {
46
+ maxLines: number;
47
+ content: string;
48
+ };
49
+ parameters: {
50
+ docs: {
51
+ description: {
52
+ story: string;
53
+ };
54
+ };
22
55
  };
23
56
  };
24
57
  export declare const CharacterCapWithHtml: {
25
- (): React.JSX.Element;
26
- story: {
27
- name: string;
58
+ args: {
59
+ maxLines: number;
60
+ content: string;
61
+ };
62
+ parameters: {
63
+ docs: {
64
+ description: {
65
+ story: string;
66
+ };
67
+ };
28
68
  };
29
69
  };
30
70
  export declare const WithCustomizableTypography: {
31
- (): React.JSX.Element;
32
- story: {
33
- name: string;
71
+ render: () => React.JSX.Element;
72
+ parameters: {
73
+ docs: {
74
+ description: {
75
+ story: string;
76
+ };
77
+ };
34
78
  };
35
79
  };
36
80
  export declare const WithCustomizableTypography2: {
37
- (): React.JSX.Element;
38
- story: {
39
- name: string;
81
+ render: () => React.JSX.Element;
82
+ parameters: {
83
+ docs: {
84
+ description: {
85
+ story: string;
86
+ };
87
+ };
40
88
  };
41
89
  };
42
90
  export declare const CharacterCapWithHtmlDisabled: {
43
- (): React.JSX.Element;
44
- story: {
45
- name: string;
91
+ args: {
92
+ disabled: boolean;
93
+ maxLines: number;
94
+ content: string;
95
+ };
96
+ parameters: {
97
+ docs: {
98
+ description: {
99
+ story: string;
100
+ };
101
+ };
46
102
  };
47
103
  };
48
104
  export declare const WithBottomReadMore: {
49
- (): React.JSX.Element;
50
- story: {
51
- name: string;
105
+ render: () => React.JSX.Element;
106
+ parameters: {
107
+ docs: {
108
+ description: {
109
+ story: string;
110
+ };
111
+ };
52
112
  };
53
113
  };
@@ -3,102 +3,145 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = exports.WithCustomizableTypography2 = exports.WithCustomizableTypography = exports.WithCharacterCap = exports.WithBottomReadMore = exports.ShortContent = exports.CharacterCapWithHtmlDisabled = exports.CharacterCapWithHtml = exports.AsString = void 0;
6
+ exports.default = exports.WithCustomizableTypography2 = exports.WithCustomizableTypography = exports.WithBottomReadMore = 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
10
  var _Box = require("../Box");
11
+ var _storybookBlocklist = require("../../utils/storybookBlocklist");
11
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
13
  var _default = exports.default = {
13
- title: "Components/ReadMore"
14
- };
15
- var WithCharacterCap = exports.WithCharacterCap = function WithCharacterCap() {
16
- return /*#__PURE__*/_react.default.createElement(_ReadMore.ReadMore, {
17
- maxChars: 300,
14
+ component: _ReadMore.ReadMore,
15
+ title: "Components/ReadMore",
16
+ tags: ["autodocs"],
17
+ parameters: {
18
+ docs: {
19
+ description: {
20
+ component: "A component that truncates content and provides a 'read more' link to expand the full content."
21
+ }
22
+ },
23
+ controls: {
24
+ exclude: _storybookBlocklist.STORYBOOK_PROPS_BLOCKLIST
25
+ }
26
+ }
27
+ };
28
+ var Default = exports.Default = {
29
+ args: {
30
+ maxLines: 2,
18
31
  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>"
19
- });
20
- };
21
- WithCharacterCap.displayName = "WithCharacterCap";
22
- WithCharacterCap.story = {
23
- name: "With character cap"
24
- };
25
- var ShortContent = exports.ShortContent = function ShortContent() {
26
- return /*#__PURE__*/_react.default.createElement(_ReadMore.ReadMore, {
27
- maxChars: 300,
32
+ },
33
+ parameters: {
34
+ docs: {
35
+ description: {
36
+ story: "Read more component with character limit truncation."
37
+ }
38
+ }
39
+ }
40
+ };
41
+ var ShortContent = exports.ShortContent = {
42
+ args: {
43
+ maxLines: 3,
28
44
  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>"
29
- });
30
- };
31
- ShortContent.displayName = "ShortContent";
32
- ShortContent.story = {
33
- name: "Short content"
34
- };
35
- var AsString = exports.AsString = function AsString() {
36
- return /*#__PURE__*/_react.default.createElement(_ReadMore.ReadMore, {
37
- maxChars: 300,
45
+ },
46
+ parameters: {
47
+ docs: {
48
+ description: {
49
+ story: "Read more with content shorter than the character limit."
50
+ }
51
+ }
52
+ }
53
+ };
54
+ var AsString = exports.AsString = {
55
+ args: {
56
+ maxLines: 2,
38
57
  content: "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."
39
- });
40
- };
41
- AsString.displayName = "AsString";
42
- AsString.story = {
43
- name: "As string"
44
- };
45
- var CharacterCapWithHtml = exports.CharacterCapWithHtml = function CharacterCapWithHtml() {
46
- return /*#__PURE__*/_react.default.createElement(_ReadMore.ReadMore, {
47
- maxChars: 300,
58
+ },
59
+ parameters: {
60
+ docs: {
61
+ description: {
62
+ story: "Read more with plain string content instead of HTML."
63
+ }
64
+ }
65
+ }
66
+ };
67
+ var CharacterCapWithHtml = exports.CharacterCapWithHtml = {
68
+ args: {
69
+ maxLines: 2,
48
70
  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>"
49
- });
50
- };
51
- CharacterCapWithHtml.displayName = "CharacterCapWithHtml";
52
- CharacterCapWithHtml.story = {
53
- name: "Character cap with HTML"
54
- };
55
- var WithCustomizableTypography = exports.WithCustomizableTypography = function WithCustomizableTypography() {
56
- return /*#__PURE__*/_react.default.createElement(_HTML.HTML, null, /*#__PURE__*/_react.default.createElement(_ReadMore.ReadMore, {
57
- maxChars: 300,
58
- 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>"
59
- }));
60
- };
61
- WithCustomizableTypography.displayName = "WithCustomizableTypography";
62
- WithCustomizableTypography.story = {
63
- name: "With customizable typography"
64
- };
65
- var WithCustomizableTypography2 = exports.WithCustomizableTypography2 = function WithCustomizableTypography2() {
66
- return /*#__PURE__*/_react.default.createElement(_HTML.HTML, {
67
- variant: "lg"
68
- }, /*#__PURE__*/_react.default.createElement(_ReadMore.ReadMore, {
69
- maxChars: 300,
70
- 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>"
71
- }));
72
- };
73
- WithCustomizableTypography2.displayName = "WithCustomizableTypography2";
74
- WithCustomizableTypography2.story = {
75
- name: "With customizable typography (2)"
76
- };
77
- var CharacterCapWithHtmlDisabled = exports.CharacterCapWithHtmlDisabled = function CharacterCapWithHtmlDisabled() {
78
- return /*#__PURE__*/_react.default.createElement(_ReadMore.ReadMore, {
71
+ },
72
+ parameters: {
73
+ docs: {
74
+ description: {
75
+ story: "Character cap with HTML content."
76
+ }
77
+ }
78
+ }
79
+ };
80
+ var WithCustomizableTypography = exports.WithCustomizableTypography = {
81
+ render: function render() {
82
+ return /*#__PURE__*/_react.default.createElement(_HTML.HTML, null, /*#__PURE__*/_react.default.createElement(_ReadMore.ReadMore, {
83
+ maxLines: 3,
84
+ 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>"
85
+ }));
86
+ },
87
+ parameters: {
88
+ docs: {
89
+ description: {
90
+ story: "ReadMore with customizable typography using HTML wrapper."
91
+ }
92
+ }
93
+ }
94
+ };
95
+ var WithCustomizableTypography2 = exports.WithCustomizableTypography2 = {
96
+ render: function render() {
97
+ return /*#__PURE__*/_react.default.createElement(_HTML.HTML, {
98
+ variant: "lg"
99
+ }, /*#__PURE__*/_react.default.createElement(_ReadMore.ReadMore, {
100
+ maxLines: 3,
101
+ 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>"
102
+ }));
103
+ },
104
+ parameters: {
105
+ docs: {
106
+ description: {
107
+ story: "ReadMore with customizable large typography using HTML wrapper."
108
+ }
109
+ }
110
+ }
111
+ };
112
+ var CharacterCapWithHtmlDisabled = exports.CharacterCapWithHtmlDisabled = {
113
+ args: {
79
114
  disabled: true,
80
- maxChars: 300,
115
+ maxLines: 3,
81
116
  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>"
82
- });
83
- };
84
- CharacterCapWithHtmlDisabled.displayName = "CharacterCapWithHtmlDisabled";
85
- CharacterCapWithHtmlDisabled.story = {
86
- name: "Character cap with html (disabled)"
87
- };
88
- var WithBottomReadMore = exports.WithBottomReadMore = function WithBottomReadMore() {
89
- return /*#__PURE__*/_react.default.createElement(_Box.Box, {
90
- textAlign: "center",
91
- width: 600
92
- }, /*#__PURE__*/_react.default.createElement(_HTML.HTML, {
93
- variant: "lg"
94
- }, /*#__PURE__*/_react.default.createElement(_ReadMore.ReadMore, {
95
- inlineReadMoreLink: false,
96
- maxChars: 280,
97
- 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>"
98
- })));
99
- };
100
- WithBottomReadMore.displayName = "WithBottomReadMore";
101
- WithBottomReadMore.story = {
102
- name: "With bottom placed 'Read More'"
117
+ },
118
+ parameters: {
119
+ docs: {
120
+ description: {
121
+ story: "Character cap with HTML content when disabled."
122
+ }
123
+ }
124
+ }
125
+ };
126
+ var WithBottomReadMore = exports.WithBottomReadMore = {
127
+ render: function render() {
128
+ return /*#__PURE__*/_react.default.createElement(_Box.Box, {
129
+ textAlign: "center",
130
+ width: 600
131
+ }, /*#__PURE__*/_react.default.createElement(_HTML.HTML, {
132
+ variant: "lg"
133
+ }, /*#__PURE__*/_react.default.createElement(_ReadMore.ReadMore, {
134
+ inlineReadMoreLink: false,
135
+ maxLines: 3,
136
+ 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>"
137
+ })));
138
+ },
139
+ parameters: {
140
+ docs: {
141
+ description: {
142
+ story: "ReadMore with bottom-placed 'Read More' link."
143
+ }
144
+ }
145
+ }
103
146
  };
104
147
  //# sourceMappingURL=ReadMore.story.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ReadMore.story.js","names":["_react","_interopRequireDefault","require","_HTML","_ReadMore","_Box","obj","__esModule","default","_default","exports","title","WithCharacterCap","createElement","ReadMore","maxChars","content","displayName","story","name","ShortContent","AsString","CharacterCapWithHtml","WithCustomizableTypography","HTML","WithCustomizableTypography2","variant","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\"\n\nexport default {\n title: \"Components/ReadMore\",\n}\n\nexport const WithCharacterCap = () => {\n return (\n <ReadMore\n maxChars={300}\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 )\n}\n\nWithCharacterCap.story = {\n name: \"With character cap\",\n}\n\nexport const ShortContent = () => {\n return (\n <ReadMore\n maxChars={300}\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 )\n}\n\nShortContent.story = {\n name: \"Short content\",\n}\n\nexport const AsString = () => {\n return (\n <ReadMore\n maxChars={300}\n content=\"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 )\n}\n\nAsString.story = {\n name: \"As string\",\n}\n\nexport const CharacterCapWithHtml = () => {\n return (\n <ReadMore\n maxChars={300}\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 )\n}\n\nCharacterCapWithHtml.story = {\n name: \"Character cap with HTML\",\n}\n\nexport const WithCustomizableTypography = () => {\n return (\n <HTML>\n <ReadMore\n maxChars={300}\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}\n\nWithCustomizableTypography.story = {\n name: \"With customizable typography\",\n}\n\nexport const WithCustomizableTypography2 = () => {\n return (\n <HTML variant=\"lg\">\n <ReadMore\n maxChars={300}\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}\n\nWithCustomizableTypography2.story = {\n name: \"With customizable typography (2)\",\n}\n\nexport const CharacterCapWithHtmlDisabled = () => {\n return (\n <ReadMore\n disabled\n maxChars={300}\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 )\n}\n\nCharacterCapWithHtmlDisabled.story = {\n name: \"Character cap with html (disabled)\",\n}\n\nexport const WithBottomReadMore = () => {\n return (\n <Box textAlign=\"center\" width={600}>\n <HTML variant=\"lg\">\n <ReadMore\n inlineReadMoreLink={false}\n maxChars={280}\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}\n\nWithBottomReadMore.story = {\n name: \"With bottom placed 'Read More'\",\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;AAA4B,SAAAD,uBAAAK,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,IAAAG,QAAA,GAAAC,OAAA,CAAAF,OAAA,GAEb;EACbG,KAAK,EAAE;AACT,CAAC;AAEM,IAAMC,gBAAgB,GAAAF,OAAA,CAAAE,gBAAA,GAAG,SAAnBA,gBAAgBA,CAAA,EAAS;EACpC,oBACEZ,MAAA,CAAAQ,OAAA,CAA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AAK,EAAE;EAAI,gBACjChC,MAAA,CAAAQ,OAAA,CAAAK,aAAA,CAACV,KAAA,CAAAqB,IAAI;IAACE,OAAO,EAAC;EAAI,gBAChB1B,MAAA,CAAAQ,OAAA,CAAAK,aAAA,CAACT,SAAA,CAAAU,QAAQ;IACPmB,kBAAkB,EAAE,KAAM;IAC1BlB,QAAQ,EAAE,GAAI;IACdC,OAAO;EAQD,EACN,CACG,CACH;AAEV,CAAC;AApBYa,kBAAkB,CAAAZ,WAAA;AAsB/BY,kBAAkB,CAACX,KAAK,GAAG;EACzBC,IAAI,EAAE;AACR,CAAC"}
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","content","story","ShortContent","AsString","CharacterCapWithHtml","WithCustomizableTypography","render","createElement","HTML","WithCustomizableTypography2","variant","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 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 args: {\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 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,EA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CAAAS,QAAQ;MACP6B,kBAAkB,EAAE,KAAM;MAC1BlB,QAAQ,EAAE,CAAE;MACZC,OAAO;IAQD,EACN,CACG,CACH;EAAA,CACP;EACDT,UAAU,EAAE;IACVC,IAAI,EAAE;MACJC,WAAW,EAAE;QACXQ,KAAK,EAAE;MACT;IACF;EACF;AACF,CAAC"}
@@ -1,13 +1,48 @@
1
1
  import React from "react";
2
+ import { ResponsiveBoxProps } from "./ResponsiveBox";
2
3
  declare const _default: {
4
+ component: React.FC<React.PropsWithChildren<ResponsiveBoxProps>>;
3
5
  title: string;
6
+ tags: string[];
7
+ parameters: {
8
+ docs: {
9
+ description: {
10
+ component: string;
11
+ };
12
+ controls: {
13
+ exclude: string[];
14
+ };
15
+ };
16
+ };
4
17
  };
5
18
  export default _default;
6
- export declare const Basic: () => React.JSX.Element;
19
+ export declare const Basic: {
20
+ render: () => React.JSX.Element;
21
+ parameters: {
22
+ docs: {
23
+ description: {
24
+ story: string;
25
+ };
26
+ };
27
+ };
28
+ };
7
29
  export declare const MaxWidth100: {
8
- (): React.JSX.Element;
9
- story: {
10
- name: string;
30
+ render: () => React.JSX.Element;
31
+ parameters: {
32
+ docs: {
33
+ description: {
34
+ story: string;
35
+ };
36
+ };
37
+ };
38
+ };
39
+ export declare const ColumnsWithResponsiveImages: {
40
+ render: () => React.JSX.Element;
41
+ parameters: {
42
+ docs: {
43
+ description: {
44
+ story: string;
45
+ };
46
+ };
11
47
  };
12
48
  };
13
- export declare const ColumnsWithResponsiveImages: () => React.JSX.Element;