thread-ui 0.13.1 → 0.14.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 (161) hide show
  1. package/dist/components/content-display/carousel/carousel-context.d.ts +117 -9
  2. package/dist/components/content-display/carousel/carousel.d.ts +1 -1
  3. package/dist/components/content-display/carousel/carousel.js +19 -4
  4. package/dist/components/content-display/carousel/carousel.js.map +1 -1
  5. package/dist/components/content-display/carousel/carousel.types.d.ts +10 -9
  6. package/dist/components/content-display/carousel/components/carousel-controls.js +1 -1
  7. package/dist/components/content-display/carousel/components/carousel-controls.js.map +1 -1
  8. package/dist/components/content-display/carousel/components/carousel-header.d.ts +1 -1
  9. package/dist/components/content-display/carousel/components/carousel-header.js +6 -13
  10. package/dist/components/content-display/carousel/components/carousel-header.js.map +1 -1
  11. package/dist/components/content-display/carousel/components/carousel-item.js +1 -5
  12. package/dist/components/content-display/carousel/components/carousel-item.js.map +1 -1
  13. package/dist/components/content-display/gallery/components/gallery-content.js +3 -4
  14. package/dist/components/content-display/gallery/components/gallery-content.js.map +1 -1
  15. package/dist/components/content-display/gallery/gallery-context.d.ts +117 -9
  16. package/dist/components/content-display/gallery/gallery.d.ts +1 -1
  17. package/dist/components/content-display/gallery/gallery.js +2 -1
  18. package/dist/components/content-display/gallery/gallery.js.map +1 -1
  19. package/dist/components/content-display/gallery/gallery.types.d.ts +4 -5
  20. package/dist/components/content-display/lightbox/components/lightbox-title.js +5 -8
  21. package/dist/components/content-display/lightbox/components/lightbox-title.js.map +1 -1
  22. package/dist/components/content-display/lightbox/lightbox-context.d.ts +44 -2
  23. package/dist/components/content-display/lightbox/lightbox.types.d.ts +1 -1
  24. package/dist/components/layouts/column-layout/column-layout.d.ts +2 -2
  25. package/dist/components/layouts/column-layout/column-layout.js +6 -6
  26. package/dist/components/layouts/column-layout/column-layout.js.map +1 -1
  27. package/dist/components/layouts/column-layout/column-layout.types.d.ts +4 -7
  28. package/dist/components/layouts/footer/footer.d.ts +3 -3
  29. package/dist/components/layouts/footer/footer.js +4 -4
  30. package/dist/components/layouts/footer/footer.js.map +1 -1
  31. package/dist/components/layouts/footer/footer.types.d.ts +1 -1
  32. package/dist/components/layouts/layout-component.types.d.ts +2 -1
  33. package/dist/components/layouts/masonry-layout/masonry-layout.d.ts +1 -1
  34. package/dist/components/layouts/masonry-layout/masonry-layout.js +3 -3
  35. package/dist/components/layouts/masonry-layout/masonry-layout.js.map +1 -1
  36. package/dist/components/layouts/masonry-layout/masonry-layout.types.d.ts +4 -6
  37. package/dist/components/media-display/info-card/info-card.js +2 -2
  38. package/dist/components/media-display/info-card/info-card.js.map +1 -1
  39. package/dist/components/media-display/info-card/info-card.types.d.ts +1 -1
  40. package/dist/components/typography/heading/heading.js +1 -1
  41. package/dist/components/typography/heading/heading.js.map +1 -1
  42. package/dist/components/typography/page-header/page-header.d.ts +3 -3
  43. package/dist/components/typography/page-header/page-header.js +5 -5
  44. package/dist/components/typography/page-header/page-header.js.map +1 -1
  45. package/dist/components/typography/page-header/page-header.types.d.ts +3 -3
  46. package/dist/components/ui/button/button-recipe.js +11 -10
  47. package/dist/components/ui/button/button-recipe.js.map +1 -1
  48. package/dist/components/ui/card/card.d.ts +1 -1
  49. package/dist/components/ui/card/card.js +14 -9
  50. package/dist/components/ui/card/card.js.map +1 -1
  51. package/dist/components/ui/card/card.types.d.ts +2 -0
  52. package/dist/components/ui/loaders/skeleton-layout/skeleton-layout.types.d.ts +1 -1
  53. package/dist/components/ui/modal/modal-context.d.ts +2 -2
  54. package/dist/internal-components/content-header/content-header.d.ts +12 -0
  55. package/dist/internal-components/content-header/content-header.js +36 -0
  56. package/dist/internal-components/content-header/content-header.js.map +1 -0
  57. package/dist/internal-components/content-header/content-header.types.d.ts +32 -0
  58. package/dist/internal-components/content-header/content-header.types.js +2 -0
  59. package/dist/internal-components/content-header/content-header.types.js.map +1 -0
  60. package/dist/internal-components/content-header/index.d.ts +2 -0
  61. package/dist/internal-components/content-header/index.js +2 -0
  62. package/dist/internal-components/content-header/index.js.map +1 -0
  63. package/dist/internal-components/index.d.ts +2 -0
  64. package/dist/internal-components/index.js +2 -0
  65. package/dist/internal-components/index.js.map +1 -1
  66. package/dist/internal-components/surface/index.d.ts +2 -0
  67. package/dist/internal-components/surface/index.js +2 -0
  68. package/dist/internal-components/surface/index.js.map +1 -0
  69. package/dist/internal-components/surface/surface.d.ts +3 -0
  70. package/dist/internal-components/surface/surface.js +11 -0
  71. package/dist/internal-components/surface/surface.js.map +1 -0
  72. package/dist/internal-components/surface/surface.types.d.ts +15 -0
  73. package/dist/internal-components/surface/surface.types.js +2 -0
  74. package/dist/internal-components/surface/surface.types.js.map +1 -0
  75. package/dist/styled-system/recipes/button.js +6 -6
  76. package/dist/styled-system/tokens/index.js +8 -0
  77. package/dist/styled-system/tokens/tokens.d.ts +1 -1
  78. package/dist/styles/panda.css +1 -1
  79. package/dist/styles/theme.css +6 -0
  80. package/dist/theme/css-name-configurations/theme-css-names.d.ts +1 -0
  81. package/dist/theme/css-name-configurations/theme-css-names.js +3 -0
  82. package/dist/theme/css-name-configurations/theme-css-names.js.map +1 -1
  83. package/dist/theme/default-theme.js +2 -0
  84. package/dist/theme/default-theme.js.map +1 -1
  85. package/dist/theme/theme-surface-system.d.ts +2 -1
  86. package/dist/theme/theme-surface-system.js.map +1 -1
  87. package/dist/types/colors/utility-color-options.types.d.ts +1 -1
  88. package/dist/types/theme/theme.types.d.ts +1 -0
  89. package/dist/utils/theme-utilities/get-colored-text-color/get-colored-text-color.js +2 -0
  90. package/dist/utils/theme-utilities/get-colored-text-color/get-colored-text-color.js.map +1 -1
  91. package/dist/utils/theme-utilities/get-surface-styles/get-surface-styles.d.ts +2 -3
  92. package/dist/utils/theme-utilities/get-surface-styles/get-surface-styles.js.map +1 -1
  93. package/dist/utils/theme-utilities/get-text-color-styles/get-text-color-styles.js +1 -0
  94. package/dist/utils/theme-utilities/get-text-color-styles/get-text-color-styles.js.map +1 -1
  95. package/dist/utils/theme-utilities/get-utility-size-value/get-utility-size-value.d.ts +1 -1
  96. package/package.json +1 -1
  97. package/dist/styled-system/css/conditions..js +0 -36
  98. package/dist/styled-system/css/conditions.mjs +0 -36
  99. package/dist/styled-system/css/css..js +0 -45
  100. package/dist/styled-system/css/css.mjs +0 -45
  101. package/dist/styled-system/css/cva..js +0 -87
  102. package/dist/styled-system/css/cva.mjs +0 -87
  103. package/dist/styled-system/css/cx..js +0 -15
  104. package/dist/styled-system/css/cx.mjs +0 -15
  105. package/dist/styled-system/css/index..js +0 -4
  106. package/dist/styled-system/css/index.mjs +0 -4
  107. package/dist/styled-system/css/sva..js +0 -46
  108. package/dist/styled-system/css/sva.mjs +0 -46
  109. package/dist/styled-system/helpers..js +0 -316
  110. package/dist/styled-system/helpers.mjs +0 -316
  111. package/dist/styled-system/patterns/aspect-ratio..js +0 -38
  112. package/dist/styled-system/patterns/aspect-ratio.mjs +0 -38
  113. package/dist/styled-system/patterns/bleed..js +0 -24
  114. package/dist/styled-system/patterns/bleed.mjs +0 -24
  115. package/dist/styled-system/patterns/box..js +0 -15
  116. package/dist/styled-system/patterns/box.mjs +0 -15
  117. package/dist/styled-system/patterns/center..js +0 -21
  118. package/dist/styled-system/patterns/center.mjs +0 -21
  119. package/dist/styled-system/patterns/circle..js +0 -25
  120. package/dist/styled-system/patterns/circle.mjs +0 -25
  121. package/dist/styled-system/patterns/container..js +0 -22
  122. package/dist/styled-system/patterns/container.mjs +0 -22
  123. package/dist/styled-system/patterns/cq..js +0 -21
  124. package/dist/styled-system/patterns/cq.mjs +0 -21
  125. package/dist/styled-system/patterns/divider..js +0 -25
  126. package/dist/styled-system/patterns/divider.mjs +0 -25
  127. package/dist/styled-system/patterns/flex..js +0 -26
  128. package/dist/styled-system/patterns/flex.mjs +0 -26
  129. package/dist/styled-system/patterns/float..js +0 -52
  130. package/dist/styled-system/patterns/float.mjs +0 -52
  131. package/dist/styled-system/patterns/grid-item..js +0 -25
  132. package/dist/styled-system/patterns/grid-item.mjs +0 -25
  133. package/dist/styled-system/patterns/grid..js +0 -27
  134. package/dist/styled-system/patterns/grid.mjs +0 -27
  135. package/dist/styled-system/patterns/hstack..js +0 -24
  136. package/dist/styled-system/patterns/hstack.mjs +0 -24
  137. package/dist/styled-system/patterns/index..js +0 -20
  138. package/dist/styled-system/patterns/index.mjs +0 -20
  139. package/dist/styled-system/patterns/link-overlay..js +0 -24
  140. package/dist/styled-system/patterns/link-overlay.mjs +0 -24
  141. package/dist/styled-system/patterns/spacer..js +0 -21
  142. package/dist/styled-system/patterns/spacer.mjs +0 -21
  143. package/dist/styled-system/patterns/square..js +0 -24
  144. package/dist/styled-system/patterns/square.mjs +0 -24
  145. package/dist/styled-system/patterns/stack..js +0 -24
  146. package/dist/styled-system/patterns/stack.mjs +0 -24
  147. package/dist/styled-system/patterns/visually-hidden..js +0 -18
  148. package/dist/styled-system/patterns/visually-hidden.mjs +0 -18
  149. package/dist/styled-system/patterns/vstack..js +0 -24
  150. package/dist/styled-system/patterns/vstack.mjs +0 -24
  151. package/dist/styled-system/patterns/wrap..js +0 -25
  152. package/dist/styled-system/patterns/wrap.mjs +0 -25
  153. package/dist/styled-system/recipes/button..js +0 -445
  154. package/dist/styled-system/recipes/button.mjs +0 -445
  155. package/dist/styled-system/recipes/create-recipe..js +0 -82
  156. package/dist/styled-system/recipes/create-recipe.mjs +0 -82
  157. package/dist/styled-system/recipes/index..js +0 -1
  158. package/dist/styled-system/recipes/index.mjs +0 -1
  159. package/dist/styled-system/styles.css +0 -1
  160. package/dist/styled-system/tokens/index..js +0 -2104
  161. package/dist/styled-system/tokens/index.mjs +0 -2164
@@ -2,47 +2,155 @@ import { CarouselEmblaContext } from './carousel.types';
2
2
  export declare const CarouselProvider: {
3
3
  ({ initialValue, children, }: {
4
4
  initialValue: {
5
- title?: import("react").ReactNode;
5
+ title?: (string | import("react").ReactElement<{
6
+ align?: "left" | "center" | undefined;
7
+ inline?: boolean | undefined;
8
+ truncate?: boolean | undefined;
9
+ children: import("react").ReactNode;
10
+ color?: import("../../..").ColoredTextOptions | undefined;
11
+ subtitle?: import("react").ReactNode;
12
+ }, ((props: {
13
+ align?: "left" | "center" | undefined;
14
+ inline?: boolean | undefined;
15
+ truncate?: boolean | undefined;
16
+ children: import("react").ReactNode;
17
+ color?: import("../../..").ColoredTextOptions | undefined;
18
+ subtitle?: import("react").ReactNode;
19
+ }) => import("react/jsx-runtime").JSX.Element) | ((props: {
20
+ align?: "left" | "center" | undefined;
21
+ inline?: boolean | undefined;
22
+ truncate?: boolean | undefined;
23
+ children: import("react").ReactNode;
24
+ color?: import("../../..").ColoredTextOptions | undefined;
25
+ subtitle?: import("react").ReactNode;
26
+ }) => import("react/jsx-runtime").JSX.Element) | ((props: {
27
+ align?: "left" | "center" | undefined;
28
+ inline?: boolean | undefined;
29
+ truncate?: boolean | undefined;
30
+ children: import("react").ReactNode;
31
+ color?: import("../../..").ColoredTextOptions | undefined;
32
+ subtitle?: import("react").ReactNode;
33
+ }) => import("react/jsx-runtime").JSX.Element) | ((props: {
34
+ align?: "left" | "center" | undefined;
35
+ inline?: boolean | undefined;
36
+ truncate?: boolean | undefined;
37
+ children: import("react").ReactNode;
38
+ color?: import("../../..").ColoredTextOptions | undefined;
39
+ subtitle?: import("react").ReactNode;
40
+ }) => import("react/jsx-runtime").JSX.Element)>) | undefined;
41
+ subtitle?: string | undefined;
6
42
  mdCols: import("../..").MediumColumnOptions;
7
43
  lgCols: import("../..").LargeColumnOptions;
8
44
  items: Record<string, {
9
- title: string;
45
+ title?: string | undefined;
10
46
  content: import("react").ReactNode;
11
47
  id: import("./carousel.types").CarouselItemId;
12
48
  }>;
13
49
  itemOrder: import("./carousel.types").CarouselItemId[];
14
50
  controlsPosition: import("./carousel.types").CarouselControlsPosition;
15
- ItemWrapper: import("react").ComponentType<any> | undefined;
51
+ ItemWrapper: import("react").ComponentClass<any, any> | import("react").FunctionComponent<any>;
16
52
  };
17
53
  children: import("react").ReactNode;
18
54
  }): import("react/jsx-runtime").JSX.Element;
19
55
  displayName: string;
20
56
  }, useCarouselContext: () => {
21
57
  value: {
22
- title?: import("react").ReactNode;
58
+ title?: (string | import("react").ReactElement<{
59
+ align?: "left" | "center" | undefined;
60
+ inline?: boolean | undefined;
61
+ truncate?: boolean | undefined;
62
+ children: import("react").ReactNode;
63
+ color?: import("../../..").ColoredTextOptions | undefined;
64
+ subtitle?: import("react").ReactNode;
65
+ }, ((props: {
66
+ align?: "left" | "center" | undefined;
67
+ inline?: boolean | undefined;
68
+ truncate?: boolean | undefined;
69
+ children: import("react").ReactNode;
70
+ color?: import("../../..").ColoredTextOptions | undefined;
71
+ subtitle?: import("react").ReactNode;
72
+ }) => import("react/jsx-runtime").JSX.Element) | ((props: {
73
+ align?: "left" | "center" | undefined;
74
+ inline?: boolean | undefined;
75
+ truncate?: boolean | undefined;
76
+ children: import("react").ReactNode;
77
+ color?: import("../../..").ColoredTextOptions | undefined;
78
+ subtitle?: import("react").ReactNode;
79
+ }) => import("react/jsx-runtime").JSX.Element) | ((props: {
80
+ align?: "left" | "center" | undefined;
81
+ inline?: boolean | undefined;
82
+ truncate?: boolean | undefined;
83
+ children: import("react").ReactNode;
84
+ color?: import("../../..").ColoredTextOptions | undefined;
85
+ subtitle?: import("react").ReactNode;
86
+ }) => import("react/jsx-runtime").JSX.Element) | ((props: {
87
+ align?: "left" | "center" | undefined;
88
+ inline?: boolean | undefined;
89
+ truncate?: boolean | undefined;
90
+ children: import("react").ReactNode;
91
+ color?: import("../../..").ColoredTextOptions | undefined;
92
+ subtitle?: import("react").ReactNode;
93
+ }) => import("react/jsx-runtime").JSX.Element)>) | undefined;
94
+ subtitle?: string | undefined;
23
95
  mdCols: import("../..").MediumColumnOptions;
24
96
  lgCols: import("../..").LargeColumnOptions;
25
97
  items: Record<string, {
26
- title: string;
98
+ title?: string | undefined;
27
99
  content: import("react").ReactNode;
28
100
  id: import("./carousel.types").CarouselItemId;
29
101
  }>;
30
102
  itemOrder: import("./carousel.types").CarouselItemId[];
31
103
  controlsPosition: import("./carousel.types").CarouselControlsPosition;
32
- ItemWrapper: import("react").ComponentType<any> | undefined;
104
+ ItemWrapper: import("react").ComponentClass<any, any> | import("react").FunctionComponent<any>;
33
105
  };
34
106
  setValue: import("react").Dispatch<import("react").SetStateAction<{
35
- title?: import("react").ReactNode;
107
+ title?: (string | import("react").ReactElement<{
108
+ align?: "left" | "center" | undefined;
109
+ inline?: boolean | undefined;
110
+ truncate?: boolean | undefined;
111
+ children: import("react").ReactNode;
112
+ color?: import("../../..").ColoredTextOptions | undefined;
113
+ subtitle?: import("react").ReactNode;
114
+ }, ((props: {
115
+ align?: "left" | "center" | undefined;
116
+ inline?: boolean | undefined;
117
+ truncate?: boolean | undefined;
118
+ children: import("react").ReactNode;
119
+ color?: import("../../..").ColoredTextOptions | undefined;
120
+ subtitle?: import("react").ReactNode;
121
+ }) => import("react/jsx-runtime").JSX.Element) | ((props: {
122
+ align?: "left" | "center" | undefined;
123
+ inline?: boolean | undefined;
124
+ truncate?: boolean | undefined;
125
+ children: import("react").ReactNode;
126
+ color?: import("../../..").ColoredTextOptions | undefined;
127
+ subtitle?: import("react").ReactNode;
128
+ }) => import("react/jsx-runtime").JSX.Element) | ((props: {
129
+ align?: "left" | "center" | undefined;
130
+ inline?: boolean | undefined;
131
+ truncate?: boolean | undefined;
132
+ children: import("react").ReactNode;
133
+ color?: import("../../..").ColoredTextOptions | undefined;
134
+ subtitle?: import("react").ReactNode;
135
+ }) => import("react/jsx-runtime").JSX.Element) | ((props: {
136
+ align?: "left" | "center" | undefined;
137
+ inline?: boolean | undefined;
138
+ truncate?: boolean | undefined;
139
+ children: import("react").ReactNode;
140
+ color?: import("../../..").ColoredTextOptions | undefined;
141
+ subtitle?: import("react").ReactNode;
142
+ }) => import("react/jsx-runtime").JSX.Element)>) | undefined;
143
+ subtitle?: string | undefined;
36
144
  mdCols: import("../..").MediumColumnOptions;
37
145
  lgCols: import("../..").LargeColumnOptions;
38
146
  items: Record<string, {
39
- title: string;
147
+ title?: string | undefined;
40
148
  content: import("react").ReactNode;
41
149
  id: import("./carousel.types").CarouselItemId;
42
150
  }>;
43
151
  itemOrder: import("./carousel.types").CarouselItemId[];
44
152
  controlsPosition: import("./carousel.types").CarouselControlsPosition;
45
- ItemWrapper: import("react").ComponentType<any> | undefined;
153
+ ItemWrapper: import("react").ComponentClass<any, any> | import("react").FunctionComponent<any>;
46
154
  }>>;
47
155
  };
48
156
  export declare const CarouselEmblaProvider: import("react").Provider<CarouselEmblaContext | undefined>, useCarouselEmblaContext: () => CarouselEmblaContext;
@@ -15,4 +15,4 @@ import { CarouselProps } from './carousel.types';
15
15
  * />
16
16
  * ```
17
17
  */
18
- export declare const Carousel: ({ title, items: itemList, controlsPosition, mdCols, lgCols, itemWrapper, }: CarouselProps) => import("react/jsx-runtime").JSX.Element | null;
18
+ export declare const Carousel: ({ title, subtitle, items: itemList, controlsPosition, mdCols, lgCols, itemWrapper, }: CarouselProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -1,9 +1,23 @@
1
1
  'use client';
2
- import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
3
3
  import { useMemo, useState, useEffect, useCallback } from 'react';
4
4
  import useEmblaCarousel from 'embla-carousel-react';
5
+ import { Card } from '../../../components/ui';
5
6
  import { CarouselProvider, CarouselEmblaProvider } from './carousel-context';
6
7
  import { CarouselContent } from './components/carousel-content';
8
+ // -- Item Wrapper Resolution --
9
+ const FragmentWrapper = ({ children }) => _jsx(_Fragment, { children: children });
10
+ const CardWrapper = ({ children, title }) => (_jsx(Card, { fullWidth: true, title: title ? { text: title } : undefined, size: "md", children: children }));
11
+ const CardFrameWrapper = ({ children, title }) => (_jsx(Card, { fullWidth: true, flush: true, title: title ? { text: title } : undefined, size: "md", children: children }));
12
+ const resolveItemWrapper = (option) => {
13
+ if (option === 'none')
14
+ return FragmentWrapper;
15
+ if (option === 'card')
16
+ return CardWrapper;
17
+ if (option === 'cardFrame')
18
+ return CardFrameWrapper;
19
+ return option;
20
+ };
7
21
  /**
8
22
  * A scrollable carousel with optional navigation controls and responsive column configuration. Powered by [Embla Carousel](https://www.embla-carousel.com)
9
23
  *
@@ -20,7 +34,7 @@ import { CarouselContent } from './components/carousel-content';
20
34
  * />
21
35
  * ```
22
36
  */
23
- export const Carousel = ({ title, items: itemList, controlsPosition = 'above', mdCols, lgCols, itemWrapper, }) => {
37
+ export const Carousel = ({ title, subtitle, items: itemList, controlsPosition = 'above', mdCols, lgCols, itemWrapper = 'card', }) => {
24
38
  // Embla Config
25
39
  const [emblaRef, emblaApi] = useEmblaCarousel();
26
40
  const [selectedIndex, setSelectedIndex] = useState(0);
@@ -49,14 +63,15 @@ export const Carousel = ({ title, items: itemList, controlsPosition = 'above', m
49
63
  const itemOrder = normalizedItems.map((item) => item.id);
50
64
  return {
51
65
  title,
66
+ subtitle,
52
67
  items,
53
68
  itemOrder,
54
- ItemWrapper: itemWrapper,
69
+ ItemWrapper: resolveItemWrapper(itemWrapper),
55
70
  controlsPosition,
56
71
  mdCols,
57
72
  lgCols: lgCols ? lgCols : mdCols,
58
73
  };
59
- }, [title, normalizedItems, controlsPosition, mdCols, lgCols]);
74
+ }, [title, normalizedItems, controlsPosition, mdCols, lgCols, itemWrapper]);
60
75
  const emblaValue = useMemo(() => ({
61
76
  emblaRef,
62
77
  emblaApi,
@@ -1 +1 @@
1
- {"version":3,"file":"carousel.js","sourceRoot":"","sources":["../../../../src/components/content-display/carousel/carousel.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAClE,OAAO,gBAAgB,MAAM,sBAAsB,CAAC;AAEpD,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAE7E,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE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CAAC;IAEF,IAAI,CAAC,QAAQ,CAAC,MAAM;QAAE,OAAO,IAAI,CAAC;IAElC,OAAO,CACN,KAAC,gBAAgB,IAAC,YAAY,EAAE,YAAY,YAC3C,KAAC,qBAAqB,IAAC,KAAK,EAAE,UAAU,YACvC,KAAC,eAAe,KAAG,GACI,GACN,CACnB,CAAC;AACH,CAAC,CAAC"}
@@ -3,11 +3,12 @@ import { Prettify } from '../../../types';
3
3
  import { EmblaViewportRefType } from 'embla-carousel-react';
4
4
  import { EmblaCarouselType } from 'embla-carousel';
5
5
  import { LargeColumnOptions, MediumColumnOptions } from '../../../components';
6
+ import { ContentTitle } from '../../../internal-components';
6
7
  export type CarouselControlsPosition = 'above' | 'around' | 'below' | 'none';
7
8
  /** A single pane consumed and displayed by the `Carousel` component */
8
9
  export type CarouselItem = {
9
10
  /** Optional title rendered with content */
10
- title: string;
11
+ title?: string;
11
12
  /** Content rendered in the carousel */
12
13
  content: ReactNode;
13
14
  };
@@ -15,25 +16,25 @@ export type CarouselItemId = string;
15
16
  type InternalCarouselItem = Prettify<CarouselItem & {
16
17
  id: CarouselItemId;
17
18
  }>;
18
- export type CarouselProps = Prettify<{
19
- /** Optional Title */
20
- title?: string | ReactNode;
19
+ type ItemWrapperComponent = ComponentType<any>;
20
+ export type ItemWrapperOptions = 'none' | 'card' | 'cardFrame' | ItemWrapperComponent;
21
+ export type CarouselProps = Prettify<ContentTitle & {
21
22
  /** Items to render, in display order */
22
- items: InternalCarouselItem[];
23
+ items: CarouselItem[];
23
24
  /** Location to Render Controls @default 'around' */
24
25
  controlsPosition?: CarouselControlsPosition;
25
- /** Optional Carousel Item Wrapper @default `Card` */
26
- itemWrapper?: ComponentType<any>;
26
+ /** Optional Carousel Item Wrapper @default `cardOutline` */
27
+ itemWrapper?: ItemWrapperOptions;
27
28
  /** Number of Columns in Medium Viewport */
28
29
  mdCols: MediumColumnOptions;
29
30
  /** Number of Columns in Large Viewport */
30
31
  lgCols?: LargeColumnOptions;
31
32
  }>;
32
- export type CarouselState = Prettify<Pick<CarouselProps, 'title' | 'mdCols'> & Required<Pick<CarouselProps, 'lgCols'>> & {
33
+ export type CarouselState = Prettify<Pick<CarouselProps, 'title' | 'subtitle' | 'mdCols'> & Required<Pick<CarouselProps, 'lgCols'>> & {
33
34
  items: Record<CarouselItemId, InternalCarouselItem>;
34
35
  itemOrder: CarouselItemId[];
35
36
  controlsPosition: CarouselControlsPosition;
36
- ItemWrapper: CarouselProps['itemWrapper'];
37
+ ItemWrapper: ItemWrapperComponent;
37
38
  }>;
38
39
  /** Live embla values, bridged out of embla's mutable api via its event loop.
39
40
  * Separate from CarouselState because these change externally, not via dispatch. */
@@ -17,7 +17,7 @@ export const PreviousButton = () => {
17
17
  return (_jsx(IconButton, { color: "neutral", name: "CaretLeft", size: "sm", onClick: goToPrev, disabled: !canScrollPrev }));
18
18
  };
19
19
  export const NextButton = () => {
20
- const { emblaApi, canScrollPrev, canScrollNext } = useCarouselEmblaContext();
20
+ const { emblaApi, canScrollNext } = useCarouselEmblaContext();
21
21
  const goToNext = () => emblaApi?.scrollNext();
22
22
  return (_jsx(IconButton, { color: "neutral", name: "CaretRight", size: "sm", onClick: goToNext, disabled: !canScrollNext }));
23
23
  };
@@ -1 +1 @@
1
- {"version":3,"file":"carousel-controls.js","sourceRoot":"","sources":["../../../../../src/components/content-display/carousel/components/carousel-controls.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAE9D,MAAM,MAAM,GAAG;IACd,SAAS,EAAE,GAAG,CAAC;QACd,OAAO,EAAE,MAAM;QACf,aAAa,EAAE,KAAK;QACpB,UAAU,EAAE,QAAQ;QACpB,GAAG,EAAE,GAAG;KACR,CAAC;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,EAAE;IAClC,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,GAAG,uBAAuB,EAAE,CAAC;IAE9D,MAAM,QAAQ,GAAG,GAAG,EAAE,CAAC,QAAQ,EAAE,UAAU,EAAE,CAAC;IAE9C,OAAO,CACN,KAAC,UAAU,IACV,KAAK,EAAC,SAAS,EACf,IAAI,EAAC,WAAW,EAChB,IAAI,EAAC,IAAI,EACT,OAAO,EAAE,QAAQ,EACjB,QAAQ,EAAE,CAAC,aAAa,GACvB,CACF,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,EAAE;IAC9B,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,aAAa,EAAE,GAAG,uBAAuB,EAAE,CAAC;IAE7E,MAAM,QAAQ,GAAG,GAAG,EAAE,CAAC,QAAQ,EAAE,UAAU,EAAE,CAAC;IAE9C,OAAO,CACN,KAAC,UAAU,IACV,KAAK,EAAC,SAAS,EACf,IAAI,EAAC,YAAY,EACjB,IAAI,EAAC,IAAI,EACT,OAAO,EAAE,QAAQ,EACjB,QAAQ,EAAE,CAAC,aAAa,GACvB,CACF,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,EAAE;IACpC,OAAO,CACN,eAAK,SAAS,EAAE,MAAM,CAAC,SAAS,aAC/B,KAAC,cAAc,KAAG,EAClB,KAAC,UAAU,KAAG,IACT,CACN,CAAC;AACH,CAAC,CAAC"}
1
+ {"version":3,"file":"carousel-controls.js","sourceRoot":"","sources":["../../../../../src/components/content-display/carousel/components/carousel-controls.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAE9D,MAAM,MAAM,GAAG;IACd,SAAS,EAAE,GAAG,CAAC;QACd,OAAO,EAAE,MAAM;QACf,aAAa,EAAE,KAAK;QACpB,UAAU,EAAE,QAAQ;QACpB,GAAG,EAAE,GAAG;KACR,CAAC;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,EAAE;IAClC,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,GAAG,uBAAuB,EAAE,CAAC;IAE9D,MAAM,QAAQ,GAAG,GAAG,EAAE,CAAC,QAAQ,EAAE,UAAU,EAAE,CAAC;IAE9C,OAAO,CACN,KAAC,UAAU,IACV,KAAK,EAAC,SAAS,EACf,IAAI,EAAC,WAAW,EAChB,IAAI,EAAC,IAAI,EACT,OAAO,EAAE,QAAQ,EACjB,QAAQ,EAAE,CAAC,aAAa,GACvB,CACF,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,EAAE;IAC9B,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,GAAG,uBAAuB,EAAE,CAAC;IAE9D,MAAM,QAAQ,GAAG,GAAG,EAAE,CAAC,QAAQ,EAAE,UAAU,EAAE,CAAC;IAE9C,OAAO,CACN,KAAC,UAAU,IACV,KAAK,EAAC,SAAS,EACf,IAAI,EAAC,YAAY,EACjB,IAAI,EAAC,IAAI,EACT,OAAO,EAAE,QAAQ,EACjB,QAAQ,EAAE,CAAC,aAAa,GACvB,CACF,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,EAAE;IACpC,OAAO,CACN,eAAK,SAAS,EAAE,MAAM,CAAC,SAAS,aAC/B,KAAC,cAAc,KAAG,EAClB,KAAC,UAAU,KAAG,IACT,CACN,CAAC;AACH,CAAC,CAAC"}
@@ -1 +1 @@
1
- export declare const CarouselHeader: () => import("react/jsx-runtime").JSX.Element | null;
1
+ export declare const CarouselHeader: () => import("react/jsx-runtime").JSX.Element;
@@ -1,24 +1,17 @@
1
1
  'use client';
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { useCarouselContext } from '../carousel-context';
4
- import { H2 } from '../../../../components/typography';
2
+ import { jsx as _jsx } from "react/jsx-runtime";
5
3
  import { css } from '../../../../styled-system/css';
4
+ import { useCarouselContext } from '../carousel-context';
6
5
  import { CarouselControls } from './carousel-controls';
6
+ import { ContentHeader } from '../../../../internal-components';
7
7
  const styles = {
8
8
  titleBlock: css({
9
- display: 'flex',
10
- flexDirection: 'row',
11
- justifyContent: 'space-between',
12
- alignItems: 'center',
13
9
  marginBottom: '4',
14
10
  }),
15
11
  };
16
12
  export const CarouselHeader = () => {
17
- const { value: { controlsPosition, title }, } = useCarouselContext();
18
- if (!title && controlsPosition !== 'above') {
19
- return null;
20
- }
21
- const titleDisplay = typeof title === 'string' ? _jsx(H2, { inline: true, children: title }) : title;
22
- return (_jsxs("div", { className: styles.titleBlock, children: [title && titleDisplay, controlsPosition === 'above' && _jsx(CarouselControls, {})] }));
13
+ const { value: { controlsPosition, title, subtitle }, } = useCarouselContext();
14
+ const headerControls = controlsPosition === 'above' ? _jsx(CarouselControls, {}) : undefined;
15
+ return (_jsx(ContentHeader, { className: styles.titleBlock, title: title, subtitle: subtitle, secondaryContent: headerControls }));
23
16
  };
24
17
  //# sourceMappingURL=carousel-header.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"carousel-header.js","sourceRoot":"","sources":["../../../../../src/components/content-display/carousel/components/carousel-header.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAGb,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,EAAE,EAAE,MAAM,yBAAyB,CAAC;AAC7C,OAAO,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,MAAM,MAAM,GAAG;IACd,UAAU,EAAE,GAAG,CAAC;QACf,OAAO,EAAE,MAAM;QACf,aAAa,EAAE,KAAK;QACpB,cAAc,EAAE,eAAe;QAC/B,UAAU,EAAE,QAAQ;QACpB,YAAY,EAAE,GAAG;KACjB,CAAC;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,EAAE;IAClC,MAAM,EACL,KAAK,EAAE,EAAE,gBAAgB,EAAE,KAAK,EAAE,GAClC,GAAG,kBAAkB,EAAE,CAAC;IAEzB,IAAI,CAAC,KAAK,IAAI,gBAAgB,KAAK,OAAO,EAAE,CAAC;QAC5C,OAAO,IAAI,CAAC;IACb,CAAC;IAED,MAAM,YAAY,GAAc,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAC,EAAE,IAAC,MAAM,kBAAE,KAAK,GAAM,CAAC,CAAC,CAAC,KAAK,CAAC;IAE5F,OAAO,CACN,eAAK,SAAS,EAAE,MAAM,CAAC,UAAU,aAC/B,KAAK,IAAI,YAAY,EACrB,gBAAgB,KAAK,OAAO,IAAI,KAAC,gBAAgB,KAAG,IAChD,CACN,CAAC;AACH,CAAC,CAAC"}
1
+ {"version":3,"file":"carousel-header.js","sourceRoot":"","sources":["../../../../../src/components/content-display/carousel/components/carousel-header.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEtD,MAAM,MAAM,GAAG;IACd,UAAU,EAAE,GAAG,CAAC;QACf,YAAY,EAAE,GAAG;KACjB,CAAC;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,EAAE;IAClC,MAAM,EACL,KAAK,EAAE,EAAE,gBAAgB,EAAE,KAAK,EAAE,QAAQ,EAAE,GAC5C,GAAG,kBAAkB,EAAE,CAAC;IAEzB,MAAM,cAAc,GAAG,gBAAgB,KAAK,OAAO,CAAC,CAAC,CAAC,KAAC,gBAAgB,KAAG,CAAC,CAAC,CAAC,SAAS,CAAC;IAEvF,OAAO,CACN,KAAC,aAAa,IACb,SAAS,EAAE,MAAM,CAAC,UAAU,EAC5B,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAClB,gBAAgB,EAAE,cAAc,GAC/B,CACF,CAAC;AACH,CAAC,CAAC"}
@@ -1,7 +1,6 @@
1
1
  'use client';
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import { cva } from '../../../../styled-system/css';
4
- import { Card } from '../../../../components/ui';
5
4
  import { useCarouselContext } from '../carousel-context';
6
5
  const styles = {
7
6
  wrapper: cva({
@@ -35,9 +34,6 @@ const styles = {
35
34
  export const CarouselItem = ({ itemId }) => {
36
35
  const { value: { items, ItemWrapper, mdCols, lgCols }, } = useCarouselContext();
37
36
  const item = items[itemId];
38
- if (ItemWrapper) {
39
- return (_jsx("div", { className: styles.wrapper({ mdCols, lgCols }), children: _jsx(ItemWrapper, { children: item.content }) }));
40
- }
41
- return (_jsx("div", { className: styles.wrapper({ mdCols, lgCols }), children: _jsx(Card, { fullWidth: true, title: { text: item.title }, size: "md", children: item.content }) }));
37
+ return (_jsx("div", { className: styles.wrapper({ mdCols, lgCols }), children: _jsx(ItemWrapper, { title: item.title, children: item.content }) }));
42
38
  };
43
39
  //# sourceMappingURL=carousel-item.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"carousel-item.js","sourceRoot":"","sources":["../../../../../src/components/content-display/carousel/components/carousel-item.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAO,GAAG,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAOzD,MAAM,MA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,MAAM,EAAE,MAAM,EAAE,GAC7C,GAAG,kBAAkB,EAAE,CAAC;IAEzB,MAAM,IAAI,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;IAE3B,IAAI,WAAW,EAAE,CAAC;QACjB,OAAO,CACN,cAAK,SAAS,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,YACjD,KAAC,WAAW,cAAE,IAAI,CAAC,OAAO,GAAe,GACpC,CACN,CAAC;IACH,CAAC;IAED,OAAO,CACN,cAAK,SAAS,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,YACjD,KAAC,IAAI,IAAC,SAAS,QAAC,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,KAAK,EAAE,EAAE,IAAI,EAAC,IAAI,YACpD,IAAI,CAAC,OAAO,GACP,GACF,CACN,CAAC;AACH,CAAC,CAAC"}
1
+ {"version":3,"file":"carousel-item.js","sourceRoot":"","sources":["../../../../../src/components/content-display/carousel/components/carousel-item.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAOzD,MAAM,MAAM,GAAG;IACd,OAAO,EAAE,GAAG,CAAC;QACZ,IAAI,EAAE;YACL,QAAQ,EAAE,CAAC;YACX,UAAU,EAAE,CAAC;YACb,QAAQ,EAAE,GAAG;YACb,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE;SACnC;QACD,QAAQ,EAAE;YACT,MAAM,EAAE;gBACP,CAAC,EAAE,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE;gBAC9C,CAAC,EAAE,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAA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
  import { css, cva } from '../../../../styled-system/css';
4
- import { H2 } from '../../../../components/typography';
5
4
  import { useGalleryContext } from '../gallery-context';
6
5
  import { GALLERY_DISPLAY_CONSTANT_NAMES, GALLERY_DISPLAY_CONSTANTS, } from '../gallery-display-constants';
7
6
  import { GalleryItemsDisplay } from './item-display/gallery-items-display';
8
7
  import { ItemTrack } from './item-track/item-track';
8
+ import { ContentHeader } from '../../../../internal-components';
9
9
  const styles = {
10
10
  container: cva({
11
11
  base: {
@@ -56,9 +56,8 @@ const styles = {
56
56
  }),
57
57
  };
58
58
  export const GalleryContent = () => {
59
- const { value: { size, title }, } = useGalleryContext();
60
- const titleDisplay = typeof title === 'string' ? _jsx(H2, { children: title }) : title;
59
+ const { value: { size, title, subtitle }, } = useGalleryContext();
61
60
  const cssVariables = Object.fromEntries(Object.entries(GALLERY_DISPLAY_CONSTANT_NAMES).map(([key, cssVar]) => [cssVar, GALLERY_DISPLAY_CONSTANTS[key]]));
62
- return (_jsxs("div", { className: styles.container({ size }), style: cssVariables, children: [title && titleDisplay, _jsxs("div", { className: styles.internalContent, children: [_jsx("div", { className: styles.displayContent, children: _jsx(GalleryItemsDisplay, {}) }), _jsx("div", { className: styles.trackContent({ size: size === 'fill' ? 'lg' : size }), children: _jsx(ItemTrack, {}) })] })] }));
61
+ return (_jsxs("div", { className: styles.container({ size }), style: cssVariables, children: [_jsx(ContentHeader, { title: title, subtitle: subtitle }), _jsxs("div", { className: styles.internalContent, children: [_jsx("div", { className: styles.displayContent, children: _jsx(GalleryItemsDisplay, {}) }), _jsx("div", { className: styles.trackContent({ size: size === 'fill' ? 'lg' : size }), children: _jsx(ItemTrack, {}) })] })] }));
63
62
  };
64
63
  //# sourceMappingURL=gallery-content.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"gallery-content.js","sourceRoot":"","sources":["../../../../../src/components/content-display/gallery/components/gallery-content.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,GAAG,EAAE,GAA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gBACD,EAAE,EAAE;oBACH,MAAM,EAAE,OAAO;iBACf;aACD;SACD;KACD,CAAC;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,EAAE;IAClC,MAAM,EACL,KAAK,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,GACtB,GAAG,iBAAiB,EAAE,CAAC;IAExB,MAAM,YAAY,GAAc,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAC,EAAE,cAAE,KAAK,GAAM,CAAC,CAAC,CAAC,KAAK,CAAC;IAErF,MAAM,YAAY,GAA2B,MAAM,CAAC,WAAW,CAC7D,MAAM,CAAC,OAAO,CAAC,8BAA8B,CAAsC,CAAC,GAAG,CACvF,CAAC,CAAC,GAAG,EAAE,MAAM,CAAC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,yBAAyB,CAAC,GAAG,CAAC,CAAC,CAC3D,CACD,CAAC;IAEF,OAAO,CACN,eAAK,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,YAAY,aAC7D,KAAK,IAAI,YAAY,EACtB,eAAK,SAAS,EAAE,MAAM,CAAC,eAAe,aACrC,cAAK,SAAS,EAAE,MAAM,CAAC,cAAc,YACpC,KAAC,mBAAmB,KAAG,GAClB,EACN,cAAK,SAAS,EAAE,MAAM,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,YAC3E,KAAC,SAAS,KAAG,GACR,IACD,IACD,CACN,CAAC;AACH,CAAC,CAAC"}
1
+ {"version":3,"file":"gallery-content.js","sourceRoot":"","sources":["../../../../../src/components/content-display/gallery/components/gallery-content.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,i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D;SACD;KACD,CAAC;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,EAAE;IAClC,MAAM,EACL,KAAK,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,GAChC,GAAG,iBAAiB,EAAE,CAAC;IAExB,MAAM,YAAY,GAA2B,MAAM,CAAC,WAAW,CAC7D,MAAM,CAAC,OAAO,CAAC,8BAA8B,CAAsC,CAAC,GAAG,CACvF,CAAC,CAAC,GAAG,EAAE,MAAM,CAAC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,yBAAyB,CAAC,GAAG,CAAC,CAAC,CAC3D,CACD,CAAC;IAEF,OAAO,CACN,eAAK,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,YAAY,aAC9D,KAAC,aAAa,IAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,GAAI,EACnD,eAAK,SAAS,EAAE,MAAM,CAAC,eAAe,aACrC,cAAK,SAAS,EAAE,MAAM,CAAC,cAAc,YACpC,KAAC,mBAAmB,KAAG,GAClB,EACN,cAAK,SAAS,EAAE,MAAM,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,YAC3E,KAAC,SAAS,KAAG,GACR,IACD,IACD,CACN,CAAC;AACH,CAAC,CAAC"}
@@ -2,15 +2,51 @@ import { GalleryEmblaContext } from './gallery.types';
2
2
  export declare const GalleryProvider: {
3
3
  ({ initialValue, children, }: {
4
4
  initialValue: {
5
- title?: import("react").ReactNode;
6
- appearance: import("./gallery.types").GalleryAppearanceOptions;
5
+ title?: (string | import("react").ReactElement<{
6
+ align?: "left" | "center" | undefined;
7
+ inline?: boolean | undefined;
8
+ truncate?: boolean | undefined;
9
+ children: import("react").ReactNode;
10
+ color?: import("../../..").ColoredTextOptions | undefined;
11
+ subtitle?: import("react").ReactNode;
12
+ }, ((props: {
13
+ align?: "left" | "center" | undefined;
14
+ inline?: boolean | undefined;
15
+ truncate?: boolean | undefined;
16
+ children: import("react").ReactNode;
17
+ color?: import("../../..").ColoredTextOptions | undefined;
18
+ subtitle?: import("react").ReactNode;
19
+ }) => import("react/jsx-runtime").JSX.Element) | ((props: {
20
+ align?: "left" | "center" | undefined;
21
+ inline?: boolean | undefined;
22
+ truncate?: boolean | undefined;
23
+ children: import("react").ReactNode;
24
+ color?: import("../../..").ColoredTextOptions | undefined;
25
+ subtitle?: import("react").ReactNode;
26
+ }) => import("react/jsx-runtime").JSX.Element) | ((props: {
27
+ align?: "left" | "center" | undefined;
28
+ inline?: boolean | undefined;
29
+ truncate?: boolean | undefined;
30
+ children: import("react").ReactNode;
31
+ color?: import("../../..").ColoredTextOptions | undefined;
32
+ subtitle?: import("react").ReactNode;
33
+ }) => import("react/jsx-runtime").JSX.Element) | ((props: {
34
+ align?: "left" | "center" | undefined;
35
+ inline?: boolean | undefined;
36
+ truncate?: boolean | undefined;
37
+ children: import("react").ReactNode;
38
+ color?: import("../../..").ColoredTextOptions | undefined;
39
+ subtitle?: import("react").ReactNode;
40
+ }) => import("react/jsx-runtime").JSX.Element)>) | undefined;
41
+ subtitle?: string | undefined;
7
42
  size: import("../../..").UtilitySizeOptions | "fill";
43
+ appearance: import("./gallery.types").GalleryAppearanceOptions;
8
44
  variableWidths: boolean;
9
45
  items: Record<import("./gallery.types").GalleryItemId, {
10
46
  id: import("./gallery.types").GalleryItemId;
11
47
  content: import("./gallery.types").GalleryItem;
12
48
  }>;
13
- ItemWrapper: import("./gallery.types").GalleryProps["itemWrapper"];
49
+ ItemWrapper: import("react").ComponentType<any> | undefined;
14
50
  itemOrder: import("./gallery.types").GalleryItemId[];
15
51
  };
16
52
  children: import("react").ReactNode;
@@ -18,27 +54,99 @@ export declare const GalleryProvider: {
18
54
  displayName: string;
19
55
  }, useGalleryContext: () => {
20
56
  value: {
21
- title?: import("react").ReactNode;
22
- appearance: import("./gallery.types").GalleryAppearanceOptions;
57
+ title?: (string | import("react").ReactElement<{
58
+ align?: "left" | "center" | undefined;
59
+ inline?: boolean | undefined;
60
+ truncate?: boolean | undefined;
61
+ children: import("react").ReactNode;
62
+ color?: import("../../..").ColoredTextOptions | undefined;
63
+ subtitle?: import("react").ReactNode;
64
+ }, ((props: {
65
+ align?: "left" | "center" | undefined;
66
+ inline?: boolean | undefined;
67
+ truncate?: boolean | undefined;
68
+ children: import("react").ReactNode;
69
+ color?: import("../../..").ColoredTextOptions | undefined;
70
+ subtitle?: import("react").ReactNode;
71
+ }) => import("react/jsx-runtime").JSX.Element) | ((props: {
72
+ align?: "left" | "center" | undefined;
73
+ inline?: boolean | undefined;
74
+ truncate?: boolean | undefined;
75
+ children: import("react").ReactNode;
76
+ color?: import("../../..").ColoredTextOptions | undefined;
77
+ subtitle?: import("react").ReactNode;
78
+ }) => import("react/jsx-runtime").JSX.Element) | ((props: {
79
+ align?: "left" | "center" | undefined;
80
+ inline?: boolean | undefined;
81
+ truncate?: boolean | undefined;
82
+ children: import("react").ReactNode;
83
+ color?: import("../../..").ColoredTextOptions | undefined;
84
+ subtitle?: import("react").ReactNode;
85
+ }) => import("react/jsx-runtime").JSX.Element) | ((props: {
86
+ align?: "left" | "center" | undefined;
87
+ inline?: boolean | undefined;
88
+ truncate?: boolean | undefined;
89
+ children: import("react").ReactNode;
90
+ color?: import("../../..").ColoredTextOptions | undefined;
91
+ subtitle?: import("react").ReactNode;
92
+ }) => import("react/jsx-runtime").JSX.Element)>) | undefined;
93
+ subtitle?: string | undefined;
23
94
  size: import("../../..").UtilitySizeOptions | "fill";
95
+ appearance: import("./gallery.types").GalleryAppearanceOptions;
24
96
  variableWidths: boolean;
25
97
  items: Record<import("./gallery.types").GalleryItemId, {
26
98
  id: import("./gallery.types").GalleryItemId;
27
99
  content: import("./gallery.types").GalleryItem;
28
100
  }>;
29
- ItemWrapper: import("./gallery.types").GalleryProps["itemWrapper"];
101
+ ItemWrapper: import("react").ComponentType<any> | undefined;
30
102
  itemOrder: import("./gallery.types").GalleryItemId[];
31
103
  };
32
104
  setValue: import("react").Dispatch<import("react").SetStateAction<{
33
- title?: import("react").ReactNode;
34
- appearance: import("./gallery.types").GalleryAppearanceOptions;
105
+ title?: (string | import("react").ReactElement<{
106
+ align?: "left" | "center" | undefined;
107
+ inline?: boolean | undefined;
108
+ truncate?: boolean | undefined;
109
+ children: import("react").ReactNode;
110
+ color?: import("../../..").ColoredTextOptions | undefined;
111
+ subtitle?: import("react").ReactNode;
112
+ }, ((props: {
113
+ align?: "left" | "center" | undefined;
114
+ inline?: boolean | undefined;
115
+ truncate?: boolean | undefined;
116
+ children: import("react").ReactNode;
117
+ color?: import("../../..").ColoredTextOptions | undefined;
118
+ subtitle?: import("react").ReactNode;
119
+ }) => import("react/jsx-runtime").JSX.Element) | ((props: {
120
+ align?: "left" | "center" | undefined;
121
+ inline?: boolean | undefined;
122
+ truncate?: boolean | undefined;
123
+ children: import("react").ReactNode;
124
+ color?: import("../../..").ColoredTextOptions | undefined;
125
+ subtitle?: import("react").ReactNode;
126
+ }) => import("react/jsx-runtime").JSX.Element) | ((props: {
127
+ align?: "left" | "center" | undefined;
128
+ inline?: boolean | undefined;
129
+ truncate?: boolean | undefined;
130
+ children: import("react").ReactNode;
131
+ color?: import("../../..").ColoredTextOptions | undefined;
132
+ subtitle?: import("react").ReactNode;
133
+ }) => import("react/jsx-runtime").JSX.Element) | ((props: {
134
+ align?: "left" | "center" | undefined;
135
+ inline?: boolean | undefined;
136
+ truncate?: boolean | undefined;
137
+ children: import("react").ReactNode;
138
+ color?: import("../../..").ColoredTextOptions | undefined;
139
+ subtitle?: import("react").ReactNode;
140
+ }) => import("react/jsx-runtime").JSX.Element)>) | undefined;
141
+ subtitle?: string | undefined;
35
142
  size: import("../../..").UtilitySizeOptions | "fill";
143
+ appearance: import("./gallery.types").GalleryAppearanceOptions;
36
144
  variableWidths: boolean;
37
145
  items: Record<import("./gallery.types").GalleryItemId, {
38
146
  id: import("./gallery.types").GalleryItemId;
39
147
  content: import("./gallery.types").GalleryItem;
40
148
  }>;
41
- ItemWrapper: import("./gallery.types").GalleryProps["itemWrapper"];
149
+ ItemWrapper: import("react").ComponentType<any> | undefined;
42
150
  itemOrder: import("./gallery.types").GalleryItemId[];
43
151
  }>>;
44
152
  };
@@ -15,4 +15,4 @@ import { GalleryProps } from './gallery.types';
15
15
  * />
16
16
  * ```
17
17
  */
18
- export declare const Gallery: ({ title, items: itemList, itemWrapper, size, appearance, startIndex, variableWidths, }: GalleryProps) => import("react/jsx-runtime").JSX.Element;
18
+ export declare const Gallery: ({ title, subtitle, items: itemList, itemWrapper, size, appearance, startIndex, variableWidths, }: GalleryProps) => import("react/jsx-runtime").JSX.Element;
@@ -21,7 +21,7 @@ import { WheelGesturesPlugin } from 'embla-carousel-wheel-gestures';
21
21
  * />
22
22
  * ```
23
23
  */
24
- export const Gallery = ({ title, items: itemList, itemWrapper, size = 'lg', appearance = 'framed', startIndex = 0, variableWidths = false, }) => {
24
+ export const Gallery = ({ title, subtitle, items: itemList, itemWrapper, size = 'lg', appearance = 'framed', startIndex = 0, variableWidths = false, }) => {
25
25
  const [emblaDisplayRef, emblaDisplayApi] = useEmblaCarousel({ startIndex });
26
26
  const [emblaItemTrackRef, emblaItemTrackApi] = useEmblaCarousel({
27
27
  startIndex,
@@ -55,6 +55,7 @@ export const Gallery = ({ title, items: itemList, itemWrapper, size = 'lg', appe
55
55
  const itemOrder = normalizedItems.map((item) => item.id);
56
56
  return {
57
57
  title,
58
+ subtitle,
58
59
  items,
59
60
  itemOrder,
60
61
  ItemWrapper: itemWrapper,