@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.
- package/dist/elements/AutocompleteInput/AutocompleteInput.story.d.ts +105 -6
- package/dist/elements/AutocompleteInput/AutocompleteInput.story.js +78 -365
- package/dist/elements/AutocompleteInput/AutocompleteInput.story.js.map +1 -1
- package/dist/elements/Avatar/Avatar.story.d.ts +74 -5
- package/dist/elements/Avatar/Avatar.story.js +69 -85
- package/dist/elements/Avatar/Avatar.story.js.map +1 -1
- package/dist/elements/Banner/Banner.story.d.ts +53 -2
- package/dist/elements/Banner/Banner.story.js +55 -24
- package/dist/elements/Banner/Banner.story.js.map +1 -1
- package/dist/elements/BaseTabs/BaseTabs.story.d.ts +45 -20
- package/dist/elements/BaseTabs/BaseTabs.story.js +99 -154
- package/dist/elements/BaseTabs/BaseTabs.story.js.map +1 -1
- package/dist/elements/BorderedRadio/BorderedRadio.story.d.ts +30 -1
- package/dist/elements/BorderedRadio/BorderedRadio.story.js +92 -19
- package/dist/elements/BorderedRadio/BorderedRadio.story.js.map +1 -1
- package/dist/elements/Box/Box.story.d.ts +35 -1
- package/dist/elements/Box/Box.story.js +54 -28
- package/dist/elements/Box/Box.story.js.map +1 -1
- package/dist/elements/Breadcrumbs/Breadcrumbs.story.d.ts +27 -1
- package/dist/elements/Breadcrumbs/Breadcrumbs.story.js +43 -26
- package/dist/elements/Breadcrumbs/Breadcrumbs.story.js.map +1 -1
- package/dist/elements/Button/Button.story.d.ts +132 -19
- package/dist/elements/Button/Button.story.js +133 -228
- package/dist/elements/Button/Button.story.js.map +1 -1
- package/dist/elements/CSSGrid/CSSGrid.story.d.ts +35 -10
- package/dist/elements/CSSGrid/CSSGrid.story.js +57 -20
- package/dist/elements/CSSGrid/CSSGrid.story.js.map +1 -1
- package/dist/elements/Cards/Cards.story.d.ts +56 -14
- package/dist/elements/Cards/Cards.story.js +65 -55
- package/dist/elements/Cards/Cards.story.js.map +1 -1
- package/dist/elements/Carousel/Carousel.story.d.ts +135 -48
- package/dist/elements/Carousel/Carousel.story.js +399 -303
- package/dist/elements/Carousel/Carousel.story.js.map +1 -1
- package/dist/elements/CarouselBar/CarouselBar.story.d.ts +37 -2
- package/dist/elements/CarouselBar/CarouselBar.story.js +38 -19
- package/dist/elements/CarouselBar/CarouselBar.story.js.map +1 -1
- package/dist/elements/Checkbox/Check.story.d.ts +75 -2
- package/dist/elements/Checkbox/Check.story.js +77 -32
- package/dist/elements/Checkbox/Check.story.js.map +1 -1
- package/dist/elements/Checkbox/Checkbox.story.d.ts +79 -3
- package/dist/elements/Checkbox/Checkbox.story.js +81 -79
- package/dist/elements/Checkbox/Checkbox.story.js.map +1 -1
- package/dist/elements/Clickable/Clickable.story.d.ts +50 -5
- package/dist/elements/Clickable/Clickable.story.js +52 -58
- package/dist/elements/Clickable/Clickable.story.js.map +1 -1
- package/dist/elements/Drawer/Drawer.story.d.ts +36 -2
- package/dist/elements/Drawer/Drawer.story.js +42 -9
- package/dist/elements/Drawer/Drawer.story.js.map +1 -1
- package/dist/elements/Dropdown/Dropdown.story.d.ts +53 -18
- package/dist/elements/Dropdown/Dropdown.story.js +244 -237
- package/dist/elements/Dropdown/Dropdown.story.js.map +1 -1
- package/dist/elements/EntityHeader/EntityHeader.story.d.ts +245 -1
- package/dist/elements/EntityHeader/EntityHeader.story.js +209 -76
- package/dist/elements/EntityHeader/EntityHeader.story.js.map +1 -1
- package/dist/elements/Expandable/Expandable.story.d.ts +54 -2
- package/dist/elements/Expandable/Expandable.story.js +76 -65
- package/dist/elements/Expandable/Expandable.story.js.map +1 -1
- package/dist/elements/FilterSelect/FilterSelect.story.d.ts +153 -2
- package/dist/elements/FilterSelect/FilterSelect.story.js +159 -62
- package/dist/elements/FilterSelect/FilterSelect.story.js.map +1 -1
- package/dist/elements/FullBleed/FullBleed.story.d.ts +30 -1
- package/dist/elements/FullBleed/FullBleed.story.js +44 -21
- package/dist/elements/FullBleed/FullBleed.story.js.map +1 -1
- package/dist/elements/GridColumns/GridColumns.story.d.ts +47 -9
- package/dist/elements/GridColumns/GridColumns.story.js +188 -204
- package/dist/elements/GridColumns/GridColumns.story.js.map +1 -1
- package/dist/elements/HTML/HTML.story.d.ts +56 -9
- package/dist/elements/HTML/HTML.story.js +56 -28
- package/dist/elements/HTML/HTML.story.js.map +1 -1
- package/dist/elements/HorizontalOverflow/HorizontalOverflow.story.d.ts +52 -2
- package/dist/elements/HorizontalOverflow/HorizontalOverflow.story.js +83 -46
- package/dist/elements/HorizontalOverflow/HorizontalOverflow.story.js.map +1 -1
- package/dist/elements/Image/Image.story.d.ts +56 -17
- package/dist/elements/Image/Image.story.js +106 -88
- package/dist/elements/Image/Image.story.js.map +1 -1
- package/dist/elements/Input/Input.story.d.ts +111 -6
- package/dist/elements/Input/Input.story.js +108 -106
- package/dist/elements/Input/Input.story.js.map +1 -1
- package/dist/elements/Join/Join.d.ts +1 -2
- package/dist/elements/Join/Join.js.map +1 -1
- package/dist/elements/Join/Join.story.d.ts +55 -10
- package/dist/elements/Join/Join.story.js +122 -58
- package/dist/elements/Join/Join.story.js.map +1 -1
- package/dist/elements/Label/Label.story.d.ts +44 -2
- package/dist/elements/Label/Label.story.js +68 -24
- package/dist/elements/Label/Label.story.js.map +1 -1
- package/dist/elements/LabeledInput/LabeledInput.story.d.ts +50 -3
- package/dist/elements/LabeledInput/LabeledInput.story.js +62 -68
- package/dist/elements/LabeledInput/LabeledInput.story.js.map +1 -1
- package/dist/elements/Marquee/Marquee.story.d.ts +57 -1
- package/dist/elements/Marquee/Marquee.story.js +82 -20
- package/dist/elements/Marquee/Marquee.story.js.map +1 -1
- package/dist/elements/Message/Message.story.d.ts +56 -1
- package/dist/elements/Message/Message.story.js +84 -25
- package/dist/elements/Message/Message.story.js.map +1 -1
- package/dist/elements/Modal/ModalBase.story.d.ts +53 -4
- package/dist/elements/Modal/ModalBase.story.js +78 -33
- package/dist/elements/Modal/ModalBase.story.js.map +1 -1
- package/dist/elements/ModalDialog/ModalDialog.story.d.ts +58 -1
- package/dist/elements/ModalDialog/ModalDialog.story.js +93 -144
- package/dist/elements/ModalDialog/ModalDialog.story.js.map +1 -1
- package/dist/elements/ModalDialog/ModalDialogContent.story.d.ts +112 -1
- package/dist/elements/ModalDialog/ModalDialogContent.story.js +190 -65
- package/dist/elements/ModalDialog/ModalDialogContent.story.js.map +1 -1
- package/dist/elements/MultiSelect/MultiSelect.story.d.ts +119 -2
- package/dist/elements/MultiSelect/MultiSelect.story.js +102 -46
- package/dist/elements/MultiSelect/MultiSelect.story.js.map +1 -1
- package/dist/elements/Pagination/Pagination.story.d.ts +88 -4
- package/dist/elements/Pagination/Pagination.story.js +64 -23
- package/dist/elements/Pagination/Pagination.story.js.map +1 -1
- package/dist/elements/PasswordInput/PasswordInput.story.d.ts +54 -2
- package/dist/elements/PasswordInput/PasswordInput.story.js +54 -16
- package/dist/elements/PasswordInput/PasswordInput.story.js.map +1 -1
- package/dist/elements/Pill/Pill.story.d.ts +114 -9
- package/dist/elements/Pill/Pill.story.js +282 -169
- package/dist/elements/Pill/Pill.story.js.map +1 -1
- package/dist/elements/Popover/Popover.story.d.ts +162 -13
- package/dist/elements/Popover/Popover.story.js +351 -190
- package/dist/elements/Popover/Popover.story.js.map +1 -1
- package/dist/elements/ProgressBar/ProgressBar.story.d.ts +43 -7
- package/dist/elements/ProgressBar/ProgressBar.story.js +73 -35
- package/dist/elements/ProgressBar/ProgressBar.story.js.map +1 -1
- package/dist/elements/ProgressDots/ProgressDots.story.d.ts +69 -7
- package/dist/elements/ProgressDots/ProgressDots.story.js +108 -41
- package/dist/elements/ProgressDots/ProgressDots.story.js.map +1 -1
- package/dist/elements/Radio/Radio.story.d.ts +103 -2
- package/dist/elements/Radio/Radio.story.js +112 -57
- package/dist/elements/Radio/Radio.story.js.map +1 -1
- package/dist/elements/RadioGroup/RadioGroup.story.d.ts +104 -5
- package/dist/elements/RadioGroup/RadioGroup.story.js +183 -65
- package/dist/elements/RadioGroup/RadioGroup.story.js.map +1 -1
- package/dist/elements/Range/Range.story.d.ts +89 -8
- package/dist/elements/Range/Range.story.js +170 -94
- package/dist/elements/Range/Range.story.js.map +1 -1
- package/dist/elements/ReadMore/ReadMore.story.d.ts +85 -25
- package/dist/elements/ReadMore/ReadMore.story.js +123 -80
- package/dist/elements/ReadMore/ReadMore.story.js.map +1 -1
- package/dist/elements/ResponsiveBox/ResponsiveBox.story.d.ts +40 -5
- package/dist/elements/ResponsiveBox/ResponsiveBox.story.js +87 -51
- package/dist/elements/ResponsiveBox/ResponsiveBox.story.js.map +1 -1
- package/dist/elements/Select/Select.story.d.ts +260 -2
- package/dist/elements/Select/Select.story.js +216 -48
- package/dist/elements/Select/Select.story.js.map +1 -1
- package/dist/elements/SelectInput/SelectInput.story.d.ts +304 -3
- package/dist/elements/SelectInput/SelectInput.story.js +347 -99
- package/dist/elements/SelectInput/SelectInput.story.js.map +1 -1
- package/dist/elements/SelectInput/SelectInputList.story.d.ts +31 -1
- package/dist/elements/SelectInput/SelectInputList.story.js +35 -164
- package/dist/elements/SelectInput/SelectInputList.story.js.map +1 -1
- package/dist/elements/Separator/Separator.story.d.ts +64 -2
- package/dist/elements/Separator/Separator.story.js +65 -18
- package/dist/elements/Separator/Separator.story.js.map +1 -1
- package/dist/elements/Shelf/Shelf.story.d.ts +140 -8
- package/dist/elements/Shelf/Shelf.story.js +224 -56
- package/dist/elements/Shelf/Shelf.story.js.map +1 -1
- package/dist/elements/ShowMore/ShowMore.story.d.ts +46 -4
- package/dist/elements/ShowMore/ShowMore.story.js +102 -48
- package/dist/elements/ShowMore/ShowMore.story.js.map +1 -1
- package/dist/elements/Skeleton/Skeleton.story.d.ts +68 -4
- package/dist/elements/Skeleton/Skeleton.story.js +84 -58
- package/dist/elements/Skeleton/Skeleton.story.js.map +1 -1
- package/dist/elements/Skip/Skip.story.d.ts +50 -11
- package/dist/elements/Skip/Skip.story.js +69 -31
- package/dist/elements/Skip/Skip.story.js.map +1 -1
- package/dist/elements/Spacer/Spacer.story.d.ts +39 -4
- package/dist/elements/Spacer/Spacer.story.js +53 -51
- package/dist/elements/Spacer/Spacer.story.js.map +1 -1
- package/dist/elements/Spinner/Spinner.story.d.ts +47 -7
- package/dist/elements/Spinner/Spinner.story.js +47 -27
- package/dist/elements/Spinner/Spinner.story.js.map +1 -1
- package/dist/elements/Stack/Stack.story.d.ts +45 -1
- package/dist/elements/Stack/Stack.story.js +81 -33
- package/dist/elements/Stack/Stack.story.js.map +1 -1
- package/dist/elements/StackableBorderBox/StackableBorderBox.story.d.ts +24 -1
- package/dist/elements/StackableBorderBox/StackableBorderBox.story.js +28 -9
- package/dist/elements/StackableBorderBox/StackableBorderBox.story.js.map +1 -1
- package/dist/elements/Stepper/Stepper.story.d.ts +99 -2
- package/dist/elements/Stepper/Stepper.story.js +166 -64
- package/dist/elements/Stepper/Stepper.story.js.map +1 -1
- package/dist/elements/Sup/Sup.story.d.ts +47 -1
- package/dist/elements/Sup/Sup.story.js +57 -15
- package/dist/elements/Sup/Sup.story.js.map +1 -1
- package/dist/elements/Swiper/Swiper.story.d.ts +32 -45
- package/dist/elements/Swiper/Swiper.story.js +234 -235
- package/dist/elements/Swiper/Swiper.story.js.map +1 -1
- package/dist/elements/Tabs/Tabs.story.d.ts +41 -18
- package/dist/elements/Tabs/Tabs.story.js +255 -238
- package/dist/elements/Tabs/Tabs.story.js.map +1 -1
- package/dist/elements/Text/Text.story.d.ts +117 -5
- package/dist/elements/Text/Text.story.js +119 -97
- package/dist/elements/Text/Text.story.js.map +1 -1
- package/dist/elements/TextArea/TextArea.story.d.ts +45 -2
- package/dist/elements/TextArea/TextArea.story.js +106 -49
- package/dist/elements/TextArea/TextArea.story.js.map +1 -1
- package/dist/elements/Toasts/Toast.story.d.ts +91 -2
- package/dist/elements/Toasts/Toast.story.js +90 -24
- package/dist/elements/Toasts/Toast.story.js.map +1 -1
- package/dist/elements/Toasts/Toasts.story.d.ts +13 -1
- package/dist/elements/Toasts/Toasts.story.js +78 -64
- package/dist/elements/Toasts/Toasts.story.js.map +1 -1
- package/dist/elements/Toggle/Toggle.story.d.ts +66 -2
- package/dist/elements/Toggle/Toggle.story.js +97 -41
- package/dist/elements/Toggle/Toggle.story.js.map +1 -1
- package/dist/elements/Tooltip/Tooltip.story.d.ts +53 -19
- package/dist/elements/Tooltip/Tooltip.story.js +201 -212
- package/dist/elements/Tooltip/Tooltip.story.js.map +1 -1
- package/dist/utils/storybookBlocklist.d.ts +6 -0
- package/dist/utils/storybookBlocklist.js +47 -0
- package/dist/utils/storybookBlocklist.js.map +1 -0
- 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
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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.
|
|
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
|
|
16
|
-
|
|
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
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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
|
|
58
|
-
|
|
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
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
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","
|
|
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,KAAK,EAAE,kBAAkB;EACzBC,SAAS,EAAEC,UAAI;EACfC,IAAI,EAAE,CAAC,UAAU,CAAC;EAClBC,UAAU,EAAE;IACVC,IAAI,EAAE;MACJC,WAAW,EAAE;QACXL,SAAS,EACP;MACJ;IACF,CAAC;IACDM,QAAQ,EAAE;MACNC,OAAO,EAAEC;IACX;EACJ;AACF,CAAC;AAEM,IAAMC,OAAO,GAAAX,OAAA,CAAAW,OAAA,GAAG;EACrBC,IAAI,EAAE;IACJX,KAAK,EAAE,0BAA0B;IACjCY,QAAQ,EAAE,iBAAiB;IAC3BC,MAAM,EAAE,aAAa;IACrBC,KAAK,EAAE;MACLC,QAAQ,EAAE,IAAI;MACdC,GAAG,EAAE,4CAA4C;MACjDC,MAAM,EACJ;IACJ;EACF;AACF,CAAC;AAEM,IAAMC,SAAS,GAAAnB,OAAA,CAAAmB,SAAA,GAAG;EACvBP,IAAI,EAAE;IACJX,KAAK,EAAE,yDAAyD;IAChEY,QAAQ,EAAE,iBAAiB;IAC3BC,MAAM,EAAE,aAAa;IACrBC,KAAK,EAAE;MACLC,QAAQ,EAAE,IAAI;MACdC,GAAG,EAAE,4CAA4C;MACjDC,MAAM,EACJ;IACJ;EACF;AACF,CAAC;AAEM,IAAME,YAAY,GAAApB,OAAA,CAAAoB,YAAA,GAAG;EAC1BR,IAAI,EAAE;IACJX,KAAK,EAAE,0BAA0B;IACjCY,QAAQ,EAAE,iBAAiB;IAC3BC,MAAM,EAAE,aAAa;IACrBO,QAAQ,EAAE,GAAG;IACbN,KAAK,EAAE;MACLC,QAAQ,EAAE,IAAI;MACdC,GAAG,EAAE,4CAA4C;MACjDC,MAAM,EACJ;IACJ;EACF;AACF,CAAC;AAEM,IAAMI,OAAO,GAAAtB,OAAA,CAAAsB,OAAA,GAAG;EACrBV,IAAI,EAAE;IACJX,KAAK,EAAE,0BAA0B;IACjCY,QAAQ,EAAE,iBAAiB;IAC3BC,MAAM,EAAE;EACV;AACF,CAAC;AAEM,IAAMS,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:
|
|
7
|
-
|
|
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
|
-
()
|
|
10
|
-
story: {
|
|
11
|
-
name: string;
|
|
12
|
-
};
|
|
26
|
+
render: () => React.JSX.Element;
|
|
13
27
|
};
|
|
14
28
|
export declare const SingleOverflowingItem: {
|
|
15
|
-
()
|
|
16
|
-
|
|
17
|
-
|
|
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
|
-
()
|
|
22
|
-
|
|
23
|
-
|
|
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
|
-
()
|
|
28
|
-
|
|
29
|
-
|
|
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
|
-
()
|
|
34
|
-
|
|
35
|
-
|
|
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
|
-
()
|
|
40
|
-
|
|
41
|
-
|
|
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
|
-
()
|
|
46
|
-
|
|
47
|
-
|
|
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
|
-
()
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
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
|
-
()
|
|
63
|
-
|
|
64
|
-
|
|
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
|
-
()
|
|
69
|
-
|
|
70
|
-
|
|
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
|
-
()
|
|
75
|
-
|
|
76
|
-
|
|
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
|
-
()
|
|
81
|
-
|
|
82
|
-
|
|
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
|
-
()
|
|
87
|
-
|
|
88
|
-
|
|
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;
|