@artsy/palette 44.1.0 → 44.2.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 (210) 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.story.d.ts +85 -25
  136. package/dist/elements/ReadMore/ReadMore.story.js +123 -80
  137. package/dist/elements/ReadMore/ReadMore.story.js.map +1 -1
  138. package/dist/elements/ResponsiveBox/ResponsiveBox.story.d.ts +40 -5
  139. package/dist/elements/ResponsiveBox/ResponsiveBox.story.js +87 -51
  140. package/dist/elements/ResponsiveBox/ResponsiveBox.story.js.map +1 -1
  141. package/dist/elements/Select/Select.story.d.ts +260 -2
  142. package/dist/elements/Select/Select.story.js +216 -48
  143. package/dist/elements/Select/Select.story.js.map +1 -1
  144. package/dist/elements/SelectInput/SelectInput.story.d.ts +304 -3
  145. package/dist/elements/SelectInput/SelectInput.story.js +347 -99
  146. package/dist/elements/SelectInput/SelectInput.story.js.map +1 -1
  147. package/dist/elements/SelectInput/SelectInputList.story.d.ts +31 -1
  148. package/dist/elements/SelectInput/SelectInputList.story.js +35 -164
  149. package/dist/elements/SelectInput/SelectInputList.story.js.map +1 -1
  150. package/dist/elements/Separator/Separator.story.d.ts +64 -2
  151. package/dist/elements/Separator/Separator.story.js +65 -18
  152. package/dist/elements/Separator/Separator.story.js.map +1 -1
  153. package/dist/elements/Shelf/Shelf.story.d.ts +140 -8
  154. package/dist/elements/Shelf/Shelf.story.js +224 -56
  155. package/dist/elements/Shelf/Shelf.story.js.map +1 -1
  156. package/dist/elements/ShowMore/ShowMore.story.d.ts +46 -4
  157. package/dist/elements/ShowMore/ShowMore.story.js +102 -48
  158. package/dist/elements/ShowMore/ShowMore.story.js.map +1 -1
  159. package/dist/elements/Skeleton/Skeleton.story.d.ts +68 -4
  160. package/dist/elements/Skeleton/Skeleton.story.js +84 -58
  161. package/dist/elements/Skeleton/Skeleton.story.js.map +1 -1
  162. package/dist/elements/Skip/Skip.story.d.ts +50 -11
  163. package/dist/elements/Skip/Skip.story.js +69 -31
  164. package/dist/elements/Skip/Skip.story.js.map +1 -1
  165. package/dist/elements/Spacer/Spacer.story.d.ts +39 -4
  166. package/dist/elements/Spacer/Spacer.story.js +53 -51
  167. package/dist/elements/Spacer/Spacer.story.js.map +1 -1
  168. package/dist/elements/Spinner/Spinner.story.d.ts +47 -7
  169. package/dist/elements/Spinner/Spinner.story.js +47 -27
  170. package/dist/elements/Spinner/Spinner.story.js.map +1 -1
  171. package/dist/elements/Stack/Stack.story.d.ts +45 -1
  172. package/dist/elements/Stack/Stack.story.js +81 -33
  173. package/dist/elements/Stack/Stack.story.js.map +1 -1
  174. package/dist/elements/StackableBorderBox/StackableBorderBox.story.d.ts +24 -1
  175. package/dist/elements/StackableBorderBox/StackableBorderBox.story.js +28 -9
  176. package/dist/elements/StackableBorderBox/StackableBorderBox.story.js.map +1 -1
  177. package/dist/elements/Stepper/Stepper.story.d.ts +99 -2
  178. package/dist/elements/Stepper/Stepper.story.js +166 -64
  179. package/dist/elements/Stepper/Stepper.story.js.map +1 -1
  180. package/dist/elements/Sup/Sup.story.d.ts +47 -1
  181. package/dist/elements/Sup/Sup.story.js +57 -15
  182. package/dist/elements/Sup/Sup.story.js.map +1 -1
  183. package/dist/elements/Swiper/Swiper.story.d.ts +32 -45
  184. package/dist/elements/Swiper/Swiper.story.js +234 -235
  185. package/dist/elements/Swiper/Swiper.story.js.map +1 -1
  186. package/dist/elements/Tabs/Tabs.story.d.ts +41 -18
  187. package/dist/elements/Tabs/Tabs.story.js +255 -238
  188. package/dist/elements/Tabs/Tabs.story.js.map +1 -1
  189. package/dist/elements/Text/Text.story.d.ts +117 -5
  190. package/dist/elements/Text/Text.story.js +119 -97
  191. package/dist/elements/Text/Text.story.js.map +1 -1
  192. package/dist/elements/TextArea/TextArea.story.d.ts +45 -2
  193. package/dist/elements/TextArea/TextArea.story.js +106 -49
  194. package/dist/elements/TextArea/TextArea.story.js.map +1 -1
  195. package/dist/elements/Toasts/Toast.story.d.ts +91 -2
  196. package/dist/elements/Toasts/Toast.story.js +90 -24
  197. package/dist/elements/Toasts/Toast.story.js.map +1 -1
  198. package/dist/elements/Toasts/Toasts.story.d.ts +13 -1
  199. package/dist/elements/Toasts/Toasts.story.js +78 -64
  200. package/dist/elements/Toasts/Toasts.story.js.map +1 -1
  201. package/dist/elements/Toggle/Toggle.story.d.ts +66 -2
  202. package/dist/elements/Toggle/Toggle.story.js +97 -41
  203. package/dist/elements/Toggle/Toggle.story.js.map +1 -1
  204. package/dist/elements/Tooltip/Tooltip.story.d.ts +53 -19
  205. package/dist/elements/Tooltip/Tooltip.story.js +201 -212
  206. package/dist/elements/Tooltip/Tooltip.story.js.map +1 -1
  207. package/dist/utils/storybookBlocklist.d.ts +6 -0
  208. package/dist/utils/storybookBlocklist.js +47 -0
  209. package/dist/utils/storybookBlocklist.js.map +1 -0
  210. package/package.json +3 -2
@@ -1,25 +1,67 @@
1
1
  import React from "react";
2
2
  declare const _default: {
3
3
  title: string;
4
+ component: React.FC<React.PropsWithChildren<import("./Card").CardProps>>;
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 Single: {
7
- (): React.JSX.Element;
8
- story: {
9
- parameters: {
10
- chromatic: {
11
- diffThreshold: number;
12
- };
18
+ export declare const Default: {
19
+ args: {
20
+ title: string;
21
+ subtitle: string;
22
+ status: string;
23
+ image: {
24
+ lazyLoad: boolean;
25
+ src: string;
26
+ srcSet: string;
13
27
  };
14
28
  };
15
29
  };
16
- export declare const Triptych: {
17
- (): React.JSX.Element;
18
- story: {
19
- parameters: {
20
- chromatic: {
21
- diffThreshold: number;
22
- };
30
+ export declare const LongTitle: {
31
+ args: {
32
+ title: string;
33
+ subtitle: string;
34
+ status: string;
35
+ image: {
36
+ lazyLoad: boolean;
37
+ src: string;
38
+ srcSet: string;
23
39
  };
24
40
  };
25
41
  };
42
+ export declare const WithMaxWidth: {
43
+ args: {
44
+ title: string;
45
+ subtitle: string;
46
+ status: string;
47
+ maxWidth: number;
48
+ image: {
49
+ lazyLoad: boolean;
50
+ src: string;
51
+ srcSet: string;
52
+ };
53
+ };
54
+ };
55
+ export declare const NoImage: {
56
+ args: {
57
+ title: string;
58
+ subtitle: string;
59
+ status: string;
60
+ };
61
+ };
62
+ export declare const MinimalCard: {
63
+ args: {};
64
+ };
65
+ export declare const TriptychCardExample: {
66
+ render: () => React.JSX.Element;
67
+ };
@@ -3,29 +3,29 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = exports.Triptych = exports.Single = void 0;
6
+ exports.default = exports.WithMaxWidth = exports.TriptychCardExample = exports.NoImage = exports.MinimalCard = exports.LongTitle = exports.Default = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
- var _storybookStates = require("storybook-states");
9
8
  var _Card = require("./Card");
10
9
  var _TriptychCard = require("./TriptychCard");
10
+ var _storybookBlocklist = require("../../utils/storybookBlocklist");
11
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
12
  var _default = exports.default = {
13
- title: "Components/Cards"
13
+ title: "Components/Cards",
14
+ component: _Card.Card,
15
+ tags: ["autodocs"],
16
+ parameters: {
17
+ docs: {
18
+ description: {
19
+ component: "Card components display information in a structured card format with optional images, titles, subtitles, and status information. Includes both single cards and triptych layouts."
20
+ }
21
+ },
22
+ controls: {
23
+ exclude: _storybookBlocklist.STORYBOOK_PROPS_BLOCKLIST
24
+ }
25
+ }
14
26
  };
15
- var Single = exports.Single = function Single() {
16
- return /*#__PURE__*/_react.default.createElement(_storybookStates.States, {
17
- states: [{}, {
18
- title: "A Much Longer Exhibition Title With Possible Line Break"
19
- }, {
20
- maxWidth: 400
21
- }, {
22
- image: undefined
23
- }, {
24
- title: undefined,
25
- subtitle: undefined,
26
- status: undefined
27
- }]
28
- }, /*#__PURE__*/_react.default.createElement(_Card.Card, {
27
+ var Default = exports.Default = {
28
+ args: {
29
29
  title: "Example Exhibition Title",
30
30
  subtitle: "Partner Gallery",
31
31
  status: "4 days left",
@@ -34,53 +34,63 @@ var Single = exports.Single = function Single() {
34
34
  src: "https://picsum.photos/seed/example/400/300",
35
35
  srcSet: "https://picsum.photos/seed/example/400/300 1x, https://picsum.photos/seed/example/800/600 2x"
36
36
  }
37
- }));
37
+ }
38
38
  };
39
- Single.displayName = "Single";
40
- Single.story = {
41
- parameters: {
42
- chromatic: {
43
- diffThreshold: 0.2
39
+ var LongTitle = exports.LongTitle = {
40
+ args: {
41
+ title: "A Much Longer Exhibition Title With Possible Line Break",
42
+ subtitle: "Partner Gallery",
43
+ status: "4 days left",
44
+ image: {
45
+ lazyLoad: true,
46
+ src: "https://picsum.photos/seed/example/400/300",
47
+ srcSet: "https://picsum.photos/seed/example/400/300 1x, https://picsum.photos/seed/example/800/600 2x"
44
48
  }
45
49
  }
46
50
  };
47
- var LARGE_SQUARE_IMG = {
48
- lazyLoad: true,
49
- src: "https://picsum.photos/seed/example/400/400",
50
- srcSet: "https://picsum.photos/seed/example/400/400 1x, https://picsum.photos/seed/example/800/800 2x"
51
- };
52
- var SMALL_SQUARE_IMG = {
53
- lazyLoad: true,
54
- src: "https://picsum.photos/seed/example/200/200",
55
- srcSet: "https://picsum.photos/seed/example/200/200 1x, https://picsum.photos/seed/example/400/400 2x"
51
+ var WithMaxWidth = exports.WithMaxWidth = {
52
+ args: {
53
+ title: "Example Exhibition Title",
54
+ subtitle: "Partner Gallery",
55
+ status: "4 days left",
56
+ maxWidth: 400,
57
+ image: {
58
+ lazyLoad: true,
59
+ src: "https://picsum.photos/seed/example/400/300",
60
+ srcSet: "https://picsum.photos/seed/example/400/300 1x, https://picsum.photos/seed/example/800/600 2x"
61
+ }
62
+ }
56
63
  };
57
- var Triptych = exports.Triptych = function Triptych() {
58
- return /*#__PURE__*/_react.default.createElement(_storybookStates.States, {
59
- states: [{}, {
60
- images: [LARGE_SQUARE_IMG, SMALL_SQUARE_IMG]
61
- }, {
62
- images: [LARGE_SQUARE_IMG]
63
- }, {
64
- maxWidth: "100%"
65
- }, {
66
- title: undefined,
67
- subtitle: undefined,
68
- status: undefined
69
- }]
70
- }, /*#__PURE__*/_react.default.createElement(_TriptychCard.TriptychCard, {
71
- maxWidth: 600,
72
- images: [LARGE_SQUARE_IMG, SMALL_SQUARE_IMG, SMALL_SQUARE_IMG],
64
+ var NoImage = exports.NoImage = {
65
+ args: {
73
66
  title: "Example Exhibition Title",
74
67
  subtitle: "Partner Gallery",
75
68
  status: "4 days left"
76
- }));
69
+ }
77
70
  };
78
- Triptych.displayName = "Triptych";
79
- Triptych.story = {
80
- parameters: {
81
- chromatic: {
82
- diffThreshold: 0.2
83
- }
71
+ var MinimalCard = exports.MinimalCard = {
72
+ args: {}
73
+ };
74
+ var TriptychCardExample = exports.TriptychCardExample = {
75
+ render: function render() {
76
+ return /*#__PURE__*/_react.default.createElement(_TriptychCard.TriptychCard, {
77
+ title: "Example Triptych",
78
+ subtitle: "Multiple Artworks",
79
+ status: "Available",
80
+ images: [{
81
+ lazyLoad: true,
82
+ src: "https://picsum.photos/seed/example/400/400",
83
+ srcSet: "https://picsum.photos/seed/example/400/400 1x, https://picsum.photos/seed/example/800/800 2x"
84
+ }, {
85
+ lazyLoad: true,
86
+ src: "https://picsum.photos/seed/example2/200/200",
87
+ srcSet: "https://picsum.photos/seed/example2/200/200 1x, https://picsum.photos/seed/example2/400/400 2x"
88
+ }, {
89
+ lazyLoad: true,
90
+ src: "https://picsum.photos/seed/example3/200/200",
91
+ srcSet: "https://picsum.photos/seed/example3/200/200 1x, https://picsum.photos/seed/example3/400/400 2x"
92
+ }]
93
+ });
84
94
  }
85
95
  };
86
96
  //# sourceMappingURL=Cards.story.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Cards.story.js","names":["_react","_interopRequireDefault","require","_storybookStates","_Card","_TriptychCard","obj","__esModule","default","_default","exports","title","Single","createElement","States","states","maxWidth","image","undefined","subtitle","status","Card","lazyLoad","src","srcSet","displayName","story","parameters","chromatic","diffThreshold","LARGE_SQUARE_IMG","SMALL_SQUARE_IMG","Triptych","images","TriptychCard"],"sources":["../../../src/elements/Cards/Cards.story.tsx"],"sourcesContent":["import React from \"react\"\nimport { States } from \"storybook-states\"\nimport { Card, CardProps } from \"./Card\"\nimport { TriptychCard, TriptychCardProps } from \"./TriptychCard\"\n\nexport default {\n title: \"Components/Cards\",\n}\n\nexport const Single = () => {\n return (\n <States<Partial<CardProps>>\n states={[\n {},\n { title: \"A Much Longer Exhibition Title With Possible Line Break\" },\n { maxWidth: 400 },\n { image: undefined },\n { title: undefined, subtitle: undefined, status: undefined },\n ]}\n >\n <Card\n title=\"Example Exhibition Title\"\n subtitle=\"Partner Gallery\"\n status=\"4 days left\"\n image={{\n lazyLoad: true,\n src: \"https://picsum.photos/seed/example/400/300\",\n srcSet:\n \"https://picsum.photos/seed/example/400/300 1x, https://picsum.photos/seed/example/800/600 2x\",\n }}\n />\n </States>\n )\n}\n\nSingle.story = {\n parameters: { chromatic: { diffThreshold: 0.2 } },\n}\n\nconst LARGE_SQUARE_IMG = {\n lazyLoad: true,\n src: \"https://picsum.photos/seed/example/400/400\",\n srcSet:\n \"https://picsum.photos/seed/example/400/400 1x, https://picsum.photos/seed/example/800/800 2x\",\n}\n\nconst SMALL_SQUARE_IMG = {\n lazyLoad: true,\n src: \"https://picsum.photos/seed/example/200/200\",\n srcSet:\n \"https://picsum.photos/seed/example/200/200 1x, https://picsum.photos/seed/example/400/400 2x\",\n}\n\nexport const Triptych = () => {\n return (\n <States<Partial<TriptychCardProps>>\n states={[\n {},\n { images: [LARGE_SQUARE_IMG, SMALL_SQUARE_IMG] },\n { images: [LARGE_SQUARE_IMG] },\n { maxWidth: \"100%\" },\n { title: undefined, subtitle: undefined, status: undefined },\n ]}\n >\n <TriptychCard\n maxWidth={600}\n images={[LARGE_SQUARE_IMG, SMALL_SQUARE_IMG, SMALL_SQUARE_IMG]}\n title=\"Example Exhibition Title\"\n subtitle=\"Partner Gallery\"\n status=\"4 days left\"\n />\n </States>\n )\n}\n\nTriptych.story = {\n parameters: { chromatic: { diffThreshold: 0.2 } },\n}\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,gBAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,aAAA,GAAAH,OAAA;AAAgE,SAAAD,uBAAAK,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,IAAAG,QAAA,GAAAC,OAAA,CAAAF,OAAA,GAEjD;EACbG,KAAK,EAAE;AACT,CAAC;AAEM,IAAMC,MAAM,GAAAF,OAAA,CAAAE,MAAA,GAAG,SAATA,MAAMA,CAAA,EAAS;EAC1B,oBACEZ,MAAA,CAAAQ,OAAA,CAAAK,aAAA,CAACV,gBAAA,CAAAW,MAAM;IACLC,MAAM,EAAE,CACN,CAAC,CAAC,EACF;MAAEJ,KAAK,EAAE;IAA0D,CAAC,EACpE;MAAEK,QAAQ,EAAE;IAAI,CAAC,EACjB;MAAEC,KAAK,EAAEC;IAAU,CAAC,EACpB;MAAEP,KAAK,EAAEO,SAAS;MAAEC,QAAQ,EAAED,SAAS;MAAEE,MAAM,EAAE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ACH,gBAAgB,EAAEC,gBAAgB,EAAEA,gBAAgB,CAAE;IAC/DpB,KAAK,EAAC,0BAA0B;IAChCQ,QAAQ,EAAC,iBAAiB;IAC1BC,MAAM,EAAC;EAAa,EACpB,CACK;AAEb,CAAC;AApBYY,QAAQ,CAAAP,WAAA;AAsBrBO,QAAQ,CAACN,KAAK,GAAG;EACfC,UAAU,EAAE;IAAEC,SAAS,EAAE;MAAEC,aAAa,EAAE;IAAI;EAAE;AAClD,CAAC"}
1
+ {"version":3,"file":"Cards.story.js","names":["_react","_interopRequireDefault","require","_Card","_TriptychCard","_storybookBlocklist","obj","__esModule","default","_default","exports","title","component","Card","tags","parameters","docs","description","controls","exclude","STORYBOOK_PROPS_BLOCKLIST","Default","args","subtitle","status","image","lazyLoad","src","srcSet","LongTitle","WithMaxWidth","maxWidth","NoImage","MinimalCard","TriptychCardExample","render","createElement","TriptychCard","images"],"sources":["../../../src/elements/Cards/Cards.story.tsx"],"sourcesContent":["import React from \"react\"\nimport { Card } from \"./Card\"\nimport { TriptychCard } from \"./TriptychCard\"\nimport { STORYBOOK_PROPS_BLOCKLIST } from \"../../utils/storybookBlocklist\"\n\nexport default {\n title: \"Components/Cards\",\n component: Card,\n tags: [\"autodocs\"],\n parameters: {\n docs: {\n description: {\n component:\n \"Card components display information in a structured card format with optional images, titles, subtitles, and status information. Includes both single cards and triptych layouts.\",\n },\n },\n controls: {\n exclude: STORYBOOK_PROPS_BLOCKLIST,\n },\n },\n}\n\nexport const Default = {\n args: {\n title: \"Example Exhibition Title\",\n subtitle: \"Partner Gallery\",\n status: \"4 days left\",\n image: {\n lazyLoad: true,\n src: \"https://picsum.photos/seed/example/400/300\",\n srcSet:\n \"https://picsum.photos/seed/example/400/300 1x, https://picsum.photos/seed/example/800/600 2x\",\n },\n },\n}\n\nexport const LongTitle = {\n args: {\n title: \"A Much Longer Exhibition Title With Possible Line Break\",\n subtitle: \"Partner Gallery\",\n status: \"4 days left\",\n image: {\n lazyLoad: true,\n src: \"https://picsum.photos/seed/example/400/300\",\n srcSet:\n \"https://picsum.photos/seed/example/400/300 1x, https://picsum.photos/seed/example/800/600 2x\",\n },\n },\n}\n\nexport const WithMaxWidth = {\n args: {\n title: \"Example Exhibition Title\",\n subtitle: \"Partner Gallery\",\n status: \"4 days left\",\n maxWidth: 400,\n image: {\n lazyLoad: true,\n src: \"https://picsum.photos/seed/example/400/300\",\n srcSet:\n \"https://picsum.photos/seed/example/400/300 1x, https://picsum.photos/seed/example/800/600 2x\",\n },\n },\n}\n\nexport const NoImage = {\n args: {\n title: \"Example Exhibition Title\",\n subtitle: \"Partner Gallery\",\n status: \"4 days left\",\n },\n}\n\nexport const MinimalCard = {\n args: {},\n}\n\nexport const TriptychCardExample = {\n render: () => (\n <TriptychCard\n title=\"Example Triptych\"\n subtitle=\"Multiple Artworks\"\n status=\"Available\"\n images={[\n {\n lazyLoad: true,\n src: \"https://picsum.photos/seed/example/400/400\",\n srcSet:\n \"https://picsum.photos/seed/example/400/400 1x, https://picsum.photos/seed/example/800/800 2x\",\n },\n {\n lazyLoad: true,\n src: \"https://picsum.photos/seed/example2/200/200\",\n srcSet:\n \"https://picsum.photos/seed/example2/200/200 1x, https://picsum.photos/seed/example2/400/400 2x\",\n },\n {\n lazyLoad: true,\n src: \"https://picsum.photos/seed/example3/200/200\",\n srcSet:\n \"https://picsum.photos/seed/example3/200/200 1x, https://picsum.photos/seed/example3/400/400 2x\",\n },\n ]}\n />\n ),\n}\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,aAAA,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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S,WAAW,GAAAvB,OAAA,CAAAuB,WAAA,GAAG;EACzBX,IAAI,EAAE,CAAC;AACT,CAAC;AAEM,IAAMY,mBAAmB,GAAAxB,OAAA,CAAAwB,mBAAA,GAAG;EACjCC,MAAM,EAAE,SAARA,MAAMA,CAAA;IAAA,oBACJnC,MAAA,CAAAQ,OAAA,CAAA4B,aAAA,CAAChC,aAAA,CAAAiC,YAAY;MACX1B,KAAK,EAAC,kBAAkB;MACxBY,QAAQ,EAAC,mBAAmB;MAC5BC,MAAM,EAAC,WAAW;MAClBc,MAAM,EAAE,CACN;QACEZ,QAAQ,EAAE,IAAI;QACdC,GAAG,EAAE,4CAA4C;QACjDC,MAAM,EACJ;MACJ,CAAC,EACD;QACEF,QAAQ,EAAE,IAAI;QACdC,GAAG,EAAE,6CAA6C;QAClDC,MAAM,EACJ;MACJ,CAAC,EACD;QACEF,QAAQ,EAAE,IAAI;QACdC,GAAG,EAAE,6CAA6C;QAClDC,MAAM,EACJ;MACJ,CAAC;IACD,EACF;EAAA;AAEN,CAAC"}
@@ -1,93 +1,180 @@
1
1
  import React from "react";
2
+ import { CarouselProps } from "./";
2
3
  declare const _default: {
3
4
  title: string;
5
+ component: React.FC<React.PropsWithChildren<CarouselProps>>;
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 Simple: () => React.JSX.Element;
7
- export declare const Multiple: () => React.JSX.Element;
19
+ export declare const Simple: {
20
+ render: () => React.JSX.Element;
21
+ };
22
+ export declare const Multiple: {
23
+ render: () => React.JSX.Element;
24
+ };
8
25
  export declare const SinglePage: {
9
- (): React.JSX.Element;
10
- story: {
11
- name: string;
12
- };
26
+ render: () => React.JSX.Element;
13
27
  };
14
28
  export declare const SingleOverflowingItem: {
15
- (): React.JSX.Element;
16
- story: {
17
- name: string;
29
+ render: () => React.JSX.Element;
30
+ parameters: {
31
+ docs: {
32
+ description: {
33
+ story: string;
34
+ };
35
+ };
18
36
  };
19
37
  };
20
38
  export declare const MultipleOverflowingItems: {
21
- (): React.JSX.Element;
22
- story: {
23
- name: string;
39
+ render: () => React.JSX.Element;
40
+ parameters: {
41
+ docs: {
42
+ description: {
43
+ story: string;
44
+ };
45
+ };
24
46
  };
25
47
  };
26
48
  export declare const TwoishPages: {
27
- (): React.JSX.Element;
28
- story: {
29
- name: string;
49
+ render: () => React.JSX.Element;
50
+ parameters: {
51
+ docs: {
52
+ description: {
53
+ story: string;
54
+ };
55
+ };
30
56
  };
31
57
  };
32
58
  export declare const ManyPages: {
33
- (): React.JSX.Element;
34
- story: {
35
- name: string;
59
+ render: () => React.JSX.Element;
60
+ parameters: {
61
+ docs: {
62
+ description: {
63
+ story: string;
64
+ };
65
+ };
36
66
  };
37
67
  };
38
68
  export declare const VaryingWidths: {
39
- (): React.JSX.Element;
40
- story: {
41
- name: string;
69
+ render: () => React.JSX.Element;
70
+ parameters: {
71
+ docs: {
72
+ description: {
73
+ story: string;
74
+ };
75
+ };
42
76
  };
43
77
  };
44
78
  export declare const VaryingHeights: {
45
- (): React.JSX.Element;
46
- story: {
47
- name: string;
79
+ render: () => React.JSX.Element;
80
+ parameters: {
81
+ docs: {
82
+ description: {
83
+ story: string;
84
+ };
85
+ };
48
86
  };
49
87
  };
50
88
  export declare const DynamicItems: {
51
- (): React.JSX.Element;
52
- story: {
53
- name: string;
54
- parameters: {
55
- chromatic: {
56
- disable: boolean;
89
+ render: () => React.JSX.Element;
90
+ parameters: {
91
+ chromatic: {
92
+ disable: boolean;
93
+ };
94
+ docs: {
95
+ description: {
96
+ story: string;
57
97
  };
58
98
  };
59
99
  };
60
100
  };
61
101
  export declare const CustomArrows: {
62
- (): React.JSX.Element;
63
- story: {
64
- name: string;
102
+ render: () => React.JSX.Element;
103
+ parameters: {
104
+ docs: {
105
+ description: {
106
+ story: string;
107
+ };
108
+ };
65
109
  };
66
110
  };
67
111
  export declare const CustomRailAndCells: {
68
- (): React.JSX.Element;
69
- story: {
70
- name: string;
112
+ render: () => React.JSX.Element;
113
+ parameters: {
114
+ docs: {
115
+ description: {
116
+ story: string;
117
+ };
118
+ };
71
119
  };
72
120
  };
73
121
  export declare const CarouselWithText: {
74
- (): React.JSX.Element;
75
- story: {
76
- name: string;
122
+ render: () => React.JSX.Element;
123
+ parameters: {
124
+ docs: {
125
+ description: {
126
+ story: string;
127
+ };
128
+ };
77
129
  };
78
130
  };
79
131
  export declare const InitialIndexOnMount: {
80
- (): React.JSX.Element;
81
- story: {
82
- name: string;
132
+ render: () => React.JSX.Element;
133
+ parameters: {
134
+ docs: {
135
+ description: {
136
+ story: string;
137
+ };
138
+ };
83
139
  };
84
140
  };
85
141
  export declare const NavigateViaProps: {
86
- (): React.JSX.Element;
87
- story: {
88
- name: string;
142
+ render: () => React.JSX.Element;
143
+ parameters: {
144
+ docs: {
145
+ description: {
146
+ story: string;
147
+ };
148
+ };
149
+ };
150
+ };
151
+ export declare const ConditionalChildren: {
152
+ render: () => React.JSX.Element;
153
+ parameters: {
154
+ docs: {
155
+ description: {
156
+ story: string;
157
+ };
158
+ };
159
+ };
160
+ };
161
+ export declare const PaginationByCell: {
162
+ render: () => React.JSX.Element;
163
+ parameters: {
164
+ docs: {
165
+ description: {
166
+ story: string;
167
+ };
168
+ };
169
+ };
170
+ };
171
+ export declare const PaginationByCellWithVaryingWidths: {
172
+ render: () => React.JSX.Element;
173
+ parameters: {
174
+ docs: {
175
+ description: {
176
+ story: string;
177
+ };
178
+ };
89
179
  };
90
180
  };
91
- export declare const ConditionalChildren: () => React.JSX.Element;
92
- export declare const PaginationByCell: () => React.JSX.Element;
93
- export declare const PaginationByCellWithVaryingWidths: () => React.JSX.Element;