@vkzstudio/muza-ui 1.2.0 → 1.4.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 (204) hide show
  1. package/dist/components/Accordion/Accordion.d.ts +52 -2
  2. package/dist/components/Accordion/Accordion.d.ts.map +1 -1
  3. package/dist/components/Accordion/Accordion.js +111 -76
  4. package/dist/components/ArticleCard/ArticleCard.d.ts +178 -0
  5. package/dist/components/ArticleCard/ArticleCard.d.ts.map +1 -0
  6. package/dist/components/ArticleCard/ArticleCard.js +542 -0
  7. package/dist/components/ArticleCard/ArticleCard.stories.d.ts +14 -0
  8. package/dist/components/ArticleCard/ArticleCard.stories.d.ts.map +1 -0
  9. package/dist/components/ArticleCard/index.d.ts +2 -0
  10. package/dist/components/ArticleCard/index.d.ts.map +1 -0
  11. package/dist/components/BalanceListView/BalanceListView.examples.d.ts +38 -0
  12. package/dist/components/BalanceListView/BalanceListView.examples.d.ts.map +1 -0
  13. package/dist/components/BalanceListView/BalanceListView.stories.d.ts +8 -0
  14. package/dist/components/BalanceListView/BalanceListView.stories.d.ts.map +1 -0
  15. package/dist/components/ButtonArrow/ButtonArrow.d.ts +3 -3
  16. package/dist/components/ButtonArrow/ButtonArrow.d.ts.map +1 -1
  17. package/dist/components/ButtonArrow/ButtonArrow.js +26 -25
  18. package/dist/components/Calendar/Calendar.d.ts.map +1 -1
  19. package/dist/components/Calendar/Calendar.js +5 -5
  20. package/dist/components/Calendar/index.d.ts +1 -2
  21. package/dist/components/Calendar/index.d.ts.map +1 -1
  22. package/dist/components/Carousel/Carousel.d.ts +9 -0
  23. package/dist/components/Carousel/Carousel.d.ts.map +1 -1
  24. package/dist/components/Carousel/Carousel.js +135 -133
  25. package/dist/components/CarouselSection/CarouselSection.examples.d.ts +34 -0
  26. package/dist/components/CarouselSection/CarouselSection.examples.d.ts.map +1 -0
  27. package/dist/components/CarouselSection/CarouselSection.stories.d.ts +8 -0
  28. package/dist/components/CarouselSection/CarouselSection.stories.d.ts.map +1 -0
  29. package/dist/components/CategoryCard/CategoryCard.d.ts +97 -0
  30. package/dist/components/CategoryCard/CategoryCard.d.ts.map +1 -0
  31. package/dist/components/CategoryCard/CategoryCard.js +152 -0
  32. package/dist/components/CategoryCard/CategoryCard.stories.d.ts +14 -0
  33. package/dist/components/CategoryCard/CategoryCard.stories.d.ts.map +1 -0
  34. package/dist/components/CategoryCard/index.d.ts +2 -0
  35. package/dist/components/CategoryCard/index.d.ts.map +1 -0
  36. package/dist/components/CategoryIcon/CategoryIcon.d.ts +45 -0
  37. package/dist/components/CategoryIcon/CategoryIcon.d.ts.map +1 -0
  38. package/dist/components/CategoryIcon/CategoryIcon.js +54 -0
  39. package/dist/components/CategoryIcon/CategoryIcon.stories.d.ts +10 -0
  40. package/dist/components/CategoryIcon/CategoryIcon.stories.d.ts.map +1 -0
  41. package/dist/components/CategoryIcon/index.d.ts +2 -0
  42. package/dist/components/CategoryIcon/index.d.ts.map +1 -0
  43. package/dist/components/DatePicker/DatePicker.d.ts.map +1 -1
  44. package/dist/components/DatePicker/DatePicker.js +5 -5
  45. package/dist/components/Dialog/Dialog.d.ts +12 -6
  46. package/dist/components/Dialog/Dialog.d.ts.map +1 -1
  47. package/dist/components/Dialog/Dialog.js +116 -120
  48. package/dist/components/Dialog/Dialog.stories.d.ts +1 -0
  49. package/dist/components/Dialog/Dialog.stories.d.ts.map +1 -1
  50. package/dist/components/DotDivider/DotDivider.d.ts +35 -0
  51. package/dist/components/DotDivider/DotDivider.d.ts.map +1 -0
  52. package/dist/components/DotDivider/DotDivider.js +31 -0
  53. package/dist/components/DotDivider/DotDivider.stories.d.ts +10 -0
  54. package/dist/components/DotDivider/DotDivider.stories.d.ts.map +1 -0
  55. package/dist/components/DotDivider/index.d.ts +2 -0
  56. package/dist/components/DotDivider/index.d.ts.map +1 -0
  57. package/dist/components/DropdownMenu/DropdownMenu.d.ts.map +1 -1
  58. package/dist/components/DropdownMenu/DropdownMenu.js +13 -13
  59. package/dist/components/EdgeButton/EdgeButton.d.ts.map +1 -1
  60. package/dist/components/EdgeButton/EdgeButton.js +10 -11
  61. package/dist/components/EmptyState/EmptyState.js +19 -19
  62. package/dist/components/FileUpload/FileItem.d.ts.map +1 -1
  63. package/dist/components/FileUpload/FileItem.js +8 -9
  64. package/dist/components/FileUpload/FileUpload.js +3 -3
  65. package/dist/components/HeartButton/HeartButton.d.ts +61 -0
  66. package/dist/components/HeartButton/HeartButton.d.ts.map +1 -0
  67. package/dist/components/HeartButton/HeartButton.js +88 -0
  68. package/dist/components/HeartButton/HeartButton.stories.d.ts +10 -0
  69. package/dist/components/HeartButton/HeartButton.stories.d.ts.map +1 -0
  70. package/dist/components/HeartButton/index.d.ts +2 -0
  71. package/dist/components/HeartButton/index.d.ts.map +1 -0
  72. package/dist/components/Icons/CustomBadges.d.ts +20 -0
  73. package/dist/components/Icons/CustomBadges.d.ts.map +1 -1
  74. package/dist/components/Icons/CustomBadges.js +176 -21
  75. package/dist/components/Icons/CustomIcons.d.ts +13 -0
  76. package/dist/components/Icons/CustomIcons.d.ts.map +1 -1
  77. package/dist/components/Icons/CustomIcons.js +50 -30
  78. package/dist/components/Icons/LogosAndBadges.stories.d.ts +2 -1
  79. package/dist/components/Icons/LogosAndBadges.stories.d.ts.map +1 -1
  80. package/dist/components/InputOTP/InputOTP.d.ts +95 -0
  81. package/dist/components/InputOTP/InputOTP.d.ts.map +1 -0
  82. package/dist/components/InputOTP/InputOTP.js +187 -0
  83. package/dist/components/InputOTP/InputOTP.stories.d.ts +18 -0
  84. package/dist/components/InputOTP/InputOTP.stories.d.ts.map +1 -0
  85. package/dist/components/InputOTP/index.d.ts +3 -0
  86. package/dist/components/InputOTP/index.d.ts.map +1 -0
  87. package/dist/components/InputOTP/useWebOtpAutofill.d.ts +33 -0
  88. package/dist/components/InputOTP/useWebOtpAutofill.d.ts.map +1 -0
  89. package/dist/components/InputOTP/useWebOtpAutofill.js +25 -0
  90. package/dist/components/LanguageSwitcher/LanguageSwitcher.d.ts.map +1 -1
  91. package/dist/components/LanguageSwitcher/LanguageSwitcher.js +65 -55
  92. package/dist/components/LoginScreen/LoginScreen.d.ts +10 -1
  93. package/dist/components/LoginScreen/LoginScreen.d.ts.map +1 -1
  94. package/dist/components/LoginScreen/LoginScreen.js +23 -17
  95. package/dist/components/MarketNav/MarketNav.examples.d.ts +60 -0
  96. package/dist/components/MarketNav/MarketNav.examples.d.ts.map +1 -0
  97. package/dist/components/MarketNav/MarketNav.stories.d.ts +9 -0
  98. package/dist/components/MarketNav/MarketNav.stories.d.ts.map +1 -0
  99. package/dist/components/MultiSelect/MultiSelect.js +1 -1
  100. package/dist/components/OfferCard/OfferCard.d.ts +206 -0
  101. package/dist/components/OfferCard/OfferCard.d.ts.map +1 -0
  102. package/dist/components/OfferCard/OfferCard.js +423 -0
  103. package/dist/components/OfferCard/OfferCard.stories.d.ts +15 -0
  104. package/dist/components/OfferCard/OfferCard.stories.d.ts.map +1 -0
  105. package/dist/components/OfferCard/index.d.ts +2 -0
  106. package/dist/components/OfferCard/index.d.ts.map +1 -0
  107. package/dist/components/PageContainer/PageContainer.d.ts +53 -0
  108. package/dist/components/PageContainer/PageContainer.d.ts.map +1 -0
  109. package/dist/components/PageContainer/PageContainer.js +49 -0
  110. package/dist/components/PageContainer/PageContainer.stories.d.ts +14 -0
  111. package/dist/components/PageContainer/PageContainer.stories.d.ts.map +1 -0
  112. package/dist/components/PageContainer/index.d.ts +2 -0
  113. package/dist/components/PageContainer/index.d.ts.map +1 -0
  114. package/dist/components/PartnerCard/PartnerCard.d.ts +234 -0
  115. package/dist/components/PartnerCard/PartnerCard.d.ts.map +1 -0
  116. package/dist/components/PartnerCard/PartnerCard.js +591 -0
  117. package/dist/components/PartnerCard/PartnerCard.stories.d.ts +14 -0
  118. package/dist/components/PartnerCard/PartnerCard.stories.d.ts.map +1 -0
  119. package/dist/components/PartnerCard/index.d.ts +2 -0
  120. package/dist/components/PartnerCard/index.d.ts.map +1 -0
  121. package/dist/components/PaymentMethodSelect/PaymentMethodSelect.examples.d.ts +35 -0
  122. package/dist/components/PaymentMethodSelect/PaymentMethodSelect.examples.d.ts.map +1 -0
  123. package/dist/components/PaymentMethodSelect/PaymentMethodSelect.stories.d.ts +11 -0
  124. package/dist/components/PaymentMethodSelect/PaymentMethodSelect.stories.d.ts.map +1 -0
  125. package/dist/components/Rating/Rating.d.ts +62 -0
  126. package/dist/components/Rating/Rating.d.ts.map +1 -0
  127. package/dist/components/Rating/Rating.js +88 -0
  128. package/dist/components/Rating/Rating.stories.d.ts +12 -0
  129. package/dist/components/Rating/Rating.stories.d.ts.map +1 -0
  130. package/dist/components/Rating/index.d.ts +2 -0
  131. package/dist/components/Rating/index.d.ts.map +1 -0
  132. package/dist/components/RatingBlock/RatingBlock.d.ts +65 -0
  133. package/dist/components/RatingBlock/RatingBlock.d.ts.map +1 -0
  134. package/dist/components/RatingBlock/RatingBlock.js +92 -0
  135. package/dist/components/RatingBlock/RatingBlock.stories.d.ts +12 -0
  136. package/dist/components/RatingBlock/RatingBlock.stories.d.ts.map +1 -0
  137. package/dist/components/RatingBlock/index.d.ts +2 -0
  138. package/dist/components/RatingBlock/index.d.ts.map +1 -0
  139. package/dist/components/ReorderableTable/ReorderableTable.stories.d.ts.map +1 -1
  140. package/dist/components/ResponsiveLayoutTable/ResponsiveLayoutTable.js +5 -5
  141. package/dist/components/SearchFilters/SearchFilters.d.ts +88 -0
  142. package/dist/components/SearchFilters/SearchFilters.d.ts.map +1 -0
  143. package/dist/components/SearchFilters/SearchFilters.js +176 -0
  144. package/dist/components/SearchFilters/SearchFilters.stories.d.ts +12 -0
  145. package/dist/components/SearchFilters/SearchFilters.stories.d.ts.map +1 -0
  146. package/dist/components/SearchFilters/index.d.ts +2 -0
  147. package/dist/components/SearchFilters/index.d.ts.map +1 -0
  148. package/dist/components/SegmentedControl/SegmentedControl.js +11 -11
  149. package/dist/components/Tag/Tag.d.ts.map +1 -1
  150. package/dist/components/Tag/Tag.js +1 -1
  151. package/dist/components/TransactionsListView/TransactionsListView.d.ts +152 -0
  152. package/dist/components/TransactionsListView/TransactionsListView.d.ts.map +1 -0
  153. package/dist/components/TransactionsListView/TransactionsListView.js +367 -0
  154. package/dist/components/TransactionsListView/TransactionsListView.stories.d.ts +12 -0
  155. package/dist/components/TransactionsListView/TransactionsListView.stories.d.ts.map +1 -0
  156. package/dist/components/TransactionsListView/index.d.ts +2 -0
  157. package/dist/components/TransactionsListView/index.d.ts.map +1 -0
  158. package/dist/components/UniversalFooter/UniversalFooter.d.ts +6 -5
  159. package/dist/components/UniversalFooter/UniversalFooter.d.ts.map +1 -1
  160. package/dist/components/UniversalFooter/UniversalFooter.js +186 -177
  161. package/dist/components/UniversalFooter/UniversalFooter.stories.d.ts.map +1 -1
  162. package/dist/components/VoucherCard/VoucherCard.d.ts +105 -0
  163. package/dist/components/VoucherCard/VoucherCard.d.ts.map +1 -0
  164. package/dist/components/VoucherCard/VoucherCard.js +167 -0
  165. package/dist/components/VoucherCard/VoucherCard.stories.d.ts +9 -0
  166. package/dist/components/VoucherCard/VoucherCard.stories.d.ts.map +1 -0
  167. package/dist/components/VoucherCard/index.d.ts +2 -0
  168. package/dist/components/VoucherCard/index.d.ts.map +1 -0
  169. package/dist/components/index.d.ts +14 -0
  170. package/dist/components/index.d.ts.map +1 -1
  171. package/dist/index.js +413 -352
  172. package/dist/muza-ui.css +1 -1
  173. package/dist/styles/primitives.css +5 -0
  174. package/dist/styles/token-colors.css +106 -30
  175. package/dist/styles/token-sizes.css +60 -16
  176. package/dist/translations/index.d.ts +2 -1
  177. package/dist/translations/index.d.ts.map +1 -1
  178. package/dist/translations/locales/cs.d.ts.map +1 -1
  179. package/dist/translations/locales/cs.js +30 -2
  180. package/dist/translations/locales/en.d.ts.map +1 -1
  181. package/dist/translations/locales/en.js +26 -2
  182. package/dist/translations/locales/sk.d.ts.map +1 -1
  183. package/dist/translations/locales/sk.js +30 -2
  184. package/dist/translations/resolvePluralTemplate.d.ts +10 -0
  185. package/dist/translations/resolvePluralTemplate.d.ts.map +1 -0
  186. package/dist/translations/resolvePluralTemplate.js +20 -0
  187. package/dist/translations/types.d.ts +57 -0
  188. package/dist/translations/types.d.ts.map +1 -1
  189. package/dist/utils/cn.d.ts.map +1 -1
  190. package/dist/utils/cn.js +124 -27
  191. package/dist/utils/disabledLinkProps.d.ts +14 -0
  192. package/dist/utils/disabledLinkProps.d.ts.map +1 -0
  193. package/dist/utils/disabledLinkProps.js +9 -0
  194. package/dist/{components/Calendar/utils → utils}/formatDate.d.ts +1 -1
  195. package/dist/utils/formatDate.d.ts.map +1 -0
  196. package/dist/utils/formatDateRange.d.ts.map +1 -0
  197. package/dist/utils/index.d.ts +3 -0
  198. package/dist/utils/index.d.ts.map +1 -1
  199. package/package.json +4 -3
  200. package/dist/components/Calendar/utils/formatDate.d.ts.map +0 -1
  201. package/dist/components/Calendar/utils/formatDateRange.d.ts.map +0 -1
  202. /package/dist/{components/Calendar/utils → utils}/formatDate.js +0 -0
  203. /package/dist/{components/Calendar/utils → utils}/formatDateRange.d.ts +0 -0
  204. /package/dist/{components/Calendar/utils → utils}/formatDateRange.js +0 -0
@@ -0,0 +1,97 @@
1
+ import { SkeletonProps } from '../Skeleton';
2
+ import * as React from 'react';
3
+ declare const categoryCardVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
4
+ /**
5
+ * Props shared between the link and asChild shapes of `CategoryCard`.
6
+ */
7
+ export interface CategoryCardBaseProps {
8
+ /** Category label shown next to the image. */
9
+ title: React.ReactNode;
10
+ /** Image URL displayed at the start of the card. Ignored when `imageSlot` is provided. */
11
+ image?: string;
12
+ /** Alt text for the image. @default '' */
13
+ imageAlt?: string;
14
+ /**
15
+ * Custom node rendered in place of the default `<img>` — pass an icon or any
16
+ * 48×48 element. Takes precedence over `image`.
17
+ */
18
+ imageSlot?: React.ReactNode;
19
+ /** Trailing count or badge value (right-aligned, brand-colored). */
20
+ count?: React.ReactNode;
21
+ /**
22
+ * Disables interaction and dims the row. The `<a>`'s `href` is stripped
23
+ * from the DOM when disabled so the link becomes non-navigable while
24
+ * keeping its visual state.
25
+ *
26
+ * @default false
27
+ */
28
+ disabled?: boolean;
29
+ /** Additional CSS classes for the root element. */
30
+ className?: string;
31
+ }
32
+ /**
33
+ * Default shape — `CategoryCard` renders an `<a href>` as its root and the
34
+ * structured content (image, title, count) as its children.
35
+ */
36
+ export interface CategoryCardLinkProps extends CategoryCardBaseProps, Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'title' | 'children' | 'href' | 'className'> {
37
+ /**
38
+ * URL the card navigates to when activated. Required unless `asChild` is
39
+ * used. Stripped from the rendered DOM when `disabled` is true so the
40
+ * anchor becomes non-navigable while keeping its visual state.
41
+ *
42
+ * @example
43
+ * <CategoryCard href="/categories/zamky" title="Zámky, galerie, muzea" count={18} />
44
+ */
45
+ href: string;
46
+ /** Discriminator for the link shape — omit or set to `false`. Use `asChild` for the polymorphic shape instead. */
47
+ asChild?: false;
48
+ /** Not used in the link shape — the card renders its own structured content as the anchor's children. */
49
+ children?: never;
50
+ }
51
+ /**
52
+ * Escape-hatch shape — hand the root element off to a consumer-provided
53
+ * `<Link>` (Next.js, React Router, …) via Radix `Slot`. The card's
54
+ * structured content is rendered as the child's children, so the child
55
+ * must be self-closing.
56
+ */
57
+ export interface CategoryCardAsChildProps extends CategoryCardBaseProps, Omit<React.HTMLAttributes<HTMLElement>, 'title' | 'children' | 'className'> {
58
+ /**
59
+ * Renders the consumer's child as the root element via Radix `Slot`, so
60
+ * the card surface can be a router `<Link>` (Next.js, React Router, …)
61
+ * instead of the built-in `<a>`. The structured content (image, title,
62
+ * count) is rendered as the child's children — pass a self-closing
63
+ * element.
64
+ *
65
+ * @example
66
+ * <CategoryCard asChild title="Zámky" count={18} image="…">
67
+ * <Link href="/categories/zamky" />
68
+ * </CategoryCard>
69
+ */
70
+ asChild: true;
71
+ /** Self-closing element to use as the root. Its children are overwritten with the card's structured content. */
72
+ children: React.ReactElement;
73
+ /** Not applicable in the `asChild` shape — set `href` on the child element instead. */
74
+ href?: never;
75
+ }
76
+ /**
77
+ * Props for the CategoryCard component.
78
+ *
79
+ * The card is a link by default. Pass `href` for the built-in `<a>`, or
80
+ * `asChild` with a self-closing child to swap in a router `<Link>`.
81
+ */
82
+ export type CategoryCardProps = CategoryCardLinkProps | CategoryCardAsChildProps;
83
+ declare const CategoryCard: React.ForwardRefExoticComponent<CategoryCardProps & React.RefAttributes<HTMLAnchorElement>>;
84
+ /** Props for the {@link CategoryCardSkeleton} component. */
85
+ export type CategoryCardSkeletonProps = SkeletonProps;
86
+ /**
87
+ * Loading placeholder matching the `CategoryCard` footprint — a bordered row
88
+ * with a leading 48×48 image block, a flexible title line, and a trailing
89
+ * count block. Mirrors the real card's border, radius, and padding tokens so
90
+ * the layout doesn't shift when content arrives.
91
+ */
92
+ declare const CategoryCardSkeleton: {
93
+ ({ className, color, ...props }: CategoryCardSkeletonProps): import("react/jsx-runtime").JSX.Element;
94
+ displayName: string;
95
+ };
96
+ export { CategoryCard, categoryCardVariants, CategoryCardSkeleton };
97
+ //# sourceMappingURL=CategoryCard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CategoryCard.d.ts","sourceRoot":"","sources":["../../../src/components/CategoryCard/CategoryCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAK9B,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,aAAa,CAAA;AAG1D,QAAA,MAAM,oBAAoB,oFAYxB,CAAA;AAEF;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,8CAA8C;IAC9C,KAAK,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,0FAA0F;IAC1F,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;;;OAGG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC3B,oEAAoE;IACpE,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACvB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,mDAAmD;IACnD,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;GAGG;AACH,MAAM,WAAW,qBACf,SAAQ,qBAAqB,EAC3B,IAAI,CACF,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAC7C,OAAO,GAAG,UAAU,GAAG,MAAM,GAAG,WAAW,CAC5C;IACH;;;;;;;OAOG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ,kHAAkH;IAClH,OAAO,CAAC,EAAE,KAAK,CAAA;IACf,yGAAyG;IACzG,QAAQ,CAAC,EAAE,KAAK,CAAA;CACjB;AAED;;;;;GAKG;AACH,MAAM,WAAW,wBACf,SAAQ,qBAAqB,EAC3B,IAAI,CACF,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EACjC,OAAO,GAAG,UAAU,GAAG,WAAW,CACnC;IACH;;;;;;;;;;;OAWG;IACH,OAAO,EAAE,IAAI,CAAA;IACb,gHAAgH;IAChH,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAA;IAC5B,uFAAuF;IACvF,IAAI,CAAC,EAAE,KAAK,CAAA;CACb;AAED;;;;;GAKG;AACH,MAAM,MAAM,iBAAiB,GAAG,qBAAqB,GAAG,wBAAwB,CAAA;AAEhF,QAAA,MAAM,YAAY,6FA6GjB,CAAA;AAGD,4DAA4D;AAC5D,MAAM,MAAM,yBAAyB,GAAG,aAAa,CAAA;AAErD;;;;;GAKG;AACH,QAAA,MAAM,oBAAoB;qCAIvB,yBAAyB;;CAmB3B,CAAA;AAGD,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,CAAA"}
@@ -0,0 +1,152 @@
1
+ import { jsxs as l, Fragment as N, jsx as e } from "react/jsx-runtime";
2
+ import * as i from "react";
3
+ import { Slot as C } from "@radix-ui/react-slot";
4
+ import { cva as w } from "class-variance-authority";
5
+ import { Flex as x } from "../Flex/Flex.js";
6
+ import { cn as t } from "../../utils/cn.js";
7
+ import { Typography as f } from "../Typography/Typography.js";
8
+ import { Skeleton as n } from "../Skeleton/Skeleton.js";
9
+ const S = w([
10
+ "group inline-flex w-full items-center gap-md no-underline",
11
+ "py-sm pr-2xl pl-sm",
12
+ "rounded-lg border border-solid bg-surface-base-secondary",
13
+ "cursor-pointer transition-colors outline-none",
14
+ "border-stroke-base-primary",
15
+ "hover:border-stroke-brand-hover",
16
+ "focus-visible:border-stroke-brand-focused",
17
+ "active:border-stroke-brand-pressed",
18
+ "data-[disabled=true]:pointer-events-none",
19
+ "data-[disabled=true]:cursor-not-allowed",
20
+ "data-[disabled=true]:border-stroke-base-disabled"
21
+ ]), z = i.forwardRef(
22
+ (o, r) => {
23
+ const {
24
+ title: s,
25
+ image: m,
26
+ imageAlt: g = "",
27
+ imageSlot: h,
28
+ count: d,
29
+ disabled: a = !1,
30
+ asChild: v = !1,
31
+ href: y,
32
+ className: k,
33
+ children: c,
34
+ ...p
35
+ } = o, b = /* @__PURE__ */ l(N, { children: [
36
+ /* @__PURE__ */ l(
37
+ x,
38
+ {
39
+ component: "span",
40
+ align: "center",
41
+ gap: "md",
42
+ flex: 1,
43
+ className: "min-w-0",
44
+ children: [
45
+ h ?? (m && /* @__PURE__ */ e(
46
+ "img",
47
+ {
48
+ src: m,
49
+ alt: g,
50
+ className: t(
51
+ "size-comp-button-h-sm shrink-0 rounded-md object-cover",
52
+ "group-data-[disabled=true]:opacity-50"
53
+ )
54
+ }
55
+ )),
56
+ /* @__PURE__ */ e(
57
+ f,
58
+ {
59
+ component: "span",
60
+ variant: "body",
61
+ size: "sm",
62
+ weight: "medium",
63
+ fixY: !0,
64
+ className: t(
65
+ "line-clamp-3 min-w-0 flex-1 text-left text-text-dark-primary-def transition-colors",
66
+ "group-focus-visible:text-text-brand-focused",
67
+ "group-active:text-text-brand-pressed",
68
+ "group-data-[disabled=true]:text-text-dark-disabled"
69
+ ),
70
+ children: s
71
+ }
72
+ )
73
+ ]
74
+ }
75
+ ),
76
+ d != null && /* @__PURE__ */ e(
77
+ f,
78
+ {
79
+ component: "span",
80
+ variant: "body",
81
+ size: "sm",
82
+ weight: "medium",
83
+ fixY: !0,
84
+ className: t(
85
+ "shrink-0 text-text-brand-def transition-colors",
86
+ "group-hover:text-text-brand-hover",
87
+ "group-focus-visible:text-text-brand-focused",
88
+ "group-active:text-text-brand-pressed",
89
+ "group-data-[disabled=true]:text-text-dark-disabled"
90
+ ),
91
+ children: d
92
+ }
93
+ )
94
+ ] }), u = t(S(), k);
95
+ return v && i.isValidElement(c) ? /* @__PURE__ */ e(
96
+ C,
97
+ {
98
+ ref: r,
99
+ className: u,
100
+ "data-disabled": a || void 0,
101
+ "aria-disabled": a || void 0,
102
+ ...p,
103
+ children: i.cloneElement(c, void 0, b)
104
+ }
105
+ ) : /* @__PURE__ */ e(
106
+ "a",
107
+ {
108
+ ref: r,
109
+ href: a ? void 0 : y,
110
+ className: u,
111
+ "data-disabled": a || void 0,
112
+ "aria-disabled": a || void 0,
113
+ ...p,
114
+ children: b
115
+ }
116
+ );
117
+ }
118
+ );
119
+ z.displayName = "CategoryCard";
120
+ const j = ({
121
+ className: o,
122
+ color: r = "default",
123
+ ...s
124
+ }) => /* @__PURE__ */ l(
125
+ x,
126
+ {
127
+ align: "center",
128
+ gap: "md",
129
+ className: t(
130
+ "w-full rounded-lg border border-solid border-stroke-base-primary bg-surface-base-secondary py-sm pr-2xl pl-sm",
131
+ o
132
+ ),
133
+ ...s,
134
+ children: [
135
+ /* @__PURE__ */ e(
136
+ n,
137
+ {
138
+ color: r,
139
+ className: "size-comp-button-h-sm shrink-0 rounded-md"
140
+ }
141
+ ),
142
+ /* @__PURE__ */ e(n, { color: r, className: "h-[16px] min-w-0 flex-1" }),
143
+ /* @__PURE__ */ e(n, { color: r, className: "h-[16px] w-[28px] shrink-0" })
144
+ ]
145
+ }
146
+ );
147
+ j.displayName = "CategoryCardSkeleton";
148
+ export {
149
+ z as CategoryCard,
150
+ j as CategoryCardSkeleton,
151
+ S as categoryCardVariants
152
+ };
@@ -0,0 +1,14 @@
1
+ import { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { CategoryCard } from './CategoryCard';
3
+ declare const meta: Meta<typeof CategoryCard>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof CategoryCard>;
6
+ export declare const Default: Story;
7
+ export declare const AllStates: Story;
8
+ export declare const WithoutCount: Story;
9
+ export declare const LongTitle: Story;
10
+ export declare const AsChild: Story;
11
+ export declare const Grid: Story;
12
+ export declare const LoadingSkeleton: Story;
13
+ export declare const LoadingSkeletonGrid: Story;
14
+ //# sourceMappingURL=CategoryCard.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CategoryCard.stories.d.ts","sourceRoot":"","sources":["../../../src/components/CategoryCard/CategoryCard.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,YAAY,EAAwB,MAAM,gBAAgB,CAAA;AAInE,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,YAAY,CAmCnC,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,YAAY,CAAC,CAAA;AAY1C,eAAO,MAAM,OAAO,EAAE,KAErB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KAkCvB,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,KAY1B,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KAcvB,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,KA0BrB,CAAA;AAED,eAAO,MAAM,IAAI,EAAE,KA8BlB,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,KAY7B,CAAA;AAED,eAAO,MAAM,mBAAmB,EAAE,KAkBjC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './CategoryCard';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/CategoryCard/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA"}
@@ -0,0 +1,45 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from 'react';
3
+ /**
4
+ * CVA variants for {@link CategoryIcon}. Exposes the `size` variant
5
+ * (`'sm' | 'md' | 'lg'`) that maps to the `--comp-market-category-ico-*` design tokens.
6
+ */
7
+ declare const categoryIconVariants: (props?: ({
8
+ size?: "sm" | "md" | "lg" | null | undefined;
9
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
10
+ /** Props for the CategoryIcon component. */
11
+ export interface CategoryIconProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, 'color'>, VariantProps<typeof categoryIconVariants> {
12
+ /**
13
+ * Main color of the category (any CSS color string).
14
+ * Drives the icon color (via `currentColor` on the container) and the
15
+ * derived background tint (`Color(color).alpha(0.2)`).
16
+ *
17
+ * @example
18
+ * <CategoryIcon color="#e3b42b" icon={<SuitcaseBold />} />
19
+ */
20
+ color: string;
21
+ /**
22
+ * Icon node rendered inside the badge. Should use `currentColor` (Solar
23
+ * icons do by default) so it inherits the main color from the container.
24
+ */
25
+ icon: React.ReactNode;
26
+ /** Visual size. @default 'sm' */
27
+ size?: 'sm' | 'md' | 'lg';
28
+ }
29
+ /**
30
+ * A circular category badge: an icon over a softly tinted background derived
31
+ * from a single main color.
32
+ *
33
+ * Pass any CSS color string as `color` and any icon node as `icon`. The
34
+ * component sets `color` on the container so icons rendered with
35
+ * `currentColor` (the Solar icon default) inherit it automatically, and
36
+ * derives a 20% alpha background tint from the same color using the
37
+ * [color](https://www.npmjs.com/package/color) package.
38
+ *
39
+ * @component
40
+ * @example
41
+ * <CategoryIcon color="#e3b42b" icon={<SuitcaseBold />} size="lg" />
42
+ */
43
+ declare const CategoryIcon: React.ForwardRefExoticComponent<CategoryIconProps & React.RefAttributes<HTMLSpanElement>>;
44
+ export { CategoryIcon, categoryIconVariants };
45
+ //# sourceMappingURL=CategoryIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CategoryIcon.d.ts","sourceRoot":"","sources":["../../../src/components/CategoryIcon/CategoryIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,KAAK,YAAY,EAAO,MAAM,0BAA0B,CAAA;AAIjE;;;GAGG;AACH,QAAA,MAAM,oBAAoB;;8EAYzB,CAAA;AAED,4CAA4C;AAC5C,MAAM,WAAW,iBACf,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,OAAO,CAAC,EAC1D,YAAY,CAAC,OAAO,oBAAoB,CAAC;IAC3C;;;;;;;OAOG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,IAAI,EAAE,KAAK,CAAC,SAAS,CAAA;IACrB,iCAAiC;IACjC,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;CAC1B;AAYD;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,YAAY,2FAuCjB,CAAA;AAGD,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,CAAA"}
@@ -0,0 +1,54 @@
1
+ import { jsx as m } from "react/jsx-runtime";
2
+ import * as g from "react";
3
+ import { cva as l } from "class-variance-authority";
4
+ import p from "color";
5
+ import { cn as y } from "../../utils/cn.js";
6
+ const d = l(
7
+ "inline-flex shrink-0 items-center justify-center rounded-full [&>svg]:pointer-events-none",
8
+ {
9
+ variants: {
10
+ size: {
11
+ sm: "size-comp-market-category-ico-bg-size-sm [&>*]:size-comp-market-category-ico-ico-size-sm",
12
+ md: "size-comp-market-category-ico-bg-size-md [&>*]:size-comp-market-category-ico-ico-size-md",
13
+ lg: "size-comp-market-category-ico-bg-size-lg [&>*]:size-comp-market-category-ico-ico-size-lg"
14
+ }
15
+ },
16
+ defaultVariants: { size: "sm" }
17
+ }
18
+ ), f = (t) => {
19
+ try {
20
+ return p(t);
21
+ } catch {
22
+ return null;
23
+ }
24
+ }, a = /* @__PURE__ */ new Set(), z = g.forwardRef(
25
+ ({ className: t, color: e, icon: c, size: i, style: r, ...n }, s) => {
26
+ const o = f(e);
27
+ return !o && process.env.NODE_ENV !== "production" && !a.has(e) && (a.add(e), console.warn(
28
+ `[CategoryIcon] Invalid color "${e}". Falling back to neutral styling.`
29
+ )), /* @__PURE__ */ m(
30
+ "span",
31
+ {
32
+ ref: s,
33
+ "data-slot": "category-icon",
34
+ className: y(
35
+ d({ size: i }),
36
+ o && "bg-(--category-icon-bg) text-(--category-icon-fg)",
37
+ t
38
+ ),
39
+ style: o ? {
40
+ "--category-icon-bg": o.alpha(0.2).toString(),
41
+ "--category-icon-fg": o.toString(),
42
+ ...r
43
+ } : r,
44
+ ...n,
45
+ children: c
46
+ }
47
+ );
48
+ }
49
+ );
50
+ z.displayName = "CategoryIcon";
51
+ export {
52
+ z as CategoryIcon,
53
+ d as categoryIconVariants
54
+ };
@@ -0,0 +1,10 @@
1
+ import { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { CategoryIcon } from './CategoryIcon';
3
+ declare const meta: Meta<typeof CategoryIcon>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof CategoryIcon>;
6
+ export declare const Default: Story;
7
+ export declare const AllCategories: Story;
8
+ export declare const AllSizes: Story;
9
+ export declare const CustomColor: Story;
10
+ //# sourceMappingURL=CategoryIcon.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CategoryIcon.stories.d.ts","sourceRoot":"","sources":["../../../src/components/CategoryIcon/CategoryIcon.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAW3D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE7C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,YAAY,CAoCnC,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,YAAY,CAAC,CAAA;AAY1C,eAAO,MAAM,OAAO,EAAE,KAerB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAqB3B,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAgBtB,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,KAiBzB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './CategoryIcon';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/CategoryIcon/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../src/components/DatePicker/DatePicker.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAA2C,MAAM,OAAO,CAAA;AAC/E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAIjD,OAAO,EAEL,KAAK,iBAAiB,EAGvB,MAAM,aAAa,CAAA;AAGpB,OAAO,EAGL,KAAK,mBAAmB,EAEzB,MAAM,oBAAoB,CAAA;AAE3B,OAAO,EAAE,KAAK,OAAO,EAAgB,MAAM,sBAAsB,CAAA;AAGjE;;;;;GAKG;AACH,MAAM,MAAM,oBAAoB,GAAG,OAAO,CAAC;IACzC,qEAAqE;IACrE,cAAc,EAAE,MAAM,CAAA;IACtB,sDAAsD;IACtD,cAAc,EAAE,MAAM,CAAA;IACtB,kDAAkD;IAClD,KAAK,EAAE,MAAM,CAAA;IACb,6DAA6D;IAC7D,eAAe,EAAE,MAAM,CAAA;CACxB,CAAC,CAAA;AAEF;;;;;;;;;GASG;AACH,MAAM,MAAM,eAAe,GAA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iGAAiG;IACjG,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,GAAG,SAAS,KAAK,IAAI,CAAA;IAChD,0EAA0E;IAC1E,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,MAAM,CAAA;CAC5C,CAAA;AAED;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,qCAAqC;IACrC,IAAI,EAAE,QAAQ,CAAA;IACd,4CAA4C;IAC5C,KAAK,CAAC,EAAE,IAAI,GAAG,SAAS,CAAA;IACxB,2CAA2C;IAC3C,YAAY,CAAC,EAAE,IAAI,GAAG,SAAS,CAAA;IAC/B,2FAA2F;IAC3F,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,SAAS,KAAK,IAAI,CAAA;IAC3C,oEAAoE;IACpE,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,MAAM,CAAA;CACvC,CAAA;AAED,eAAO,MAAM,UAAU,8GAmQtB,CAAA"}
@@ -6,11 +6,11 @@ import { Popover as pt, PopoverTrigger as nt, PopoverContent as dt } from "../Po
6
6
  import { getDateRange as ut } from "./utils/getDateRange.js";
7
7
  import { resolveOneDayRange as bt } from "./utils/resolveOneDayRange.js";
8
8
  import { Input as st } from "../Input/Input.js";
9
- import { formatDate as xt } from "../Calendar/utils/formatDate.js";
10
- import { formatDateRange as lt } from "../Calendar/utils/formatDateRange.js";
11
9
  import { Calendar as A } from "../Calendar/Calendar.js";
12
10
  import { cn as l } from "../../utils/cn.js";
13
- import { typographyVariants as yt } from "../Typography/Typography.js";
11
+ import { typographyVariants as xt } from "../Typography/Typography.js";
12
+ import { formatDate as lt } from "../../utils/formatDate.js";
13
+ import { formatDateRange as yt } from "../../utils/formatDateRange.js";
14
14
  import { CalendarBold as mt } from "@solar-icons/react-perf";
15
15
  const vt = et(
16
16
  ({
@@ -64,7 +64,7 @@ const vt = et(
64
64
  "button",
65
65
  {
66
66
  className: l(
67
- yt({
67
+ xt({
68
68
  variant: "cta",
69
69
  weight: "medium",
70
70
  size: "sm",
@@ -83,7 +83,7 @@ const vt = et(
83
83
  children: t.name
84
84
  },
85
85
  t.type
86
- )), D = H ?? (y === "single" ? xt : lt), F = f ? e !== void 0 ? e : i : j, E = {
86
+ )), D = H ?? (y === "single" ? lt : yt), F = f ? e !== void 0 ? e : i : j, E = {
87
87
  ...a,
88
88
  numberOfMonths: Z ?? (h ? 2 : 1),
89
89
  hideNavigation: _,
@@ -17,6 +17,14 @@ export interface DialogContentProps extends ComponentPropsWithoutRef<typeof Dial
17
17
  size?: 'small' | 'medium' | 'large';
18
18
  /** Accessible label for the close button. Defaults to translation value. */
19
19
  closeAriaLabel?: string;
20
+ /**
21
+ * Shrinks the content region's top and bottom padding to
22
+ * `--spacing-comp-dialog-p-hor-sm` for a more compact dialog. Header and
23
+ * footer keep their own padding and stay flush to the edges.
24
+ *
25
+ * @default false
26
+ */
27
+ smallerContentYpadding?: boolean;
20
28
  }
21
29
  declare const Dialog: React.FC<DialogProps>;
22
30
  declare const DialogTitle: import('react').ForwardRefExoticComponent<DialogPrimitive.DialogTitleProps & import('react').RefAttributes<HTMLHeadingElement>>;
@@ -33,12 +41,9 @@ export interface DialogHeaderProps extends Omit<ComponentPropsWithoutRef<'div'>,
33
41
  title?: ReactNode;
34
42
  }
35
43
  declare const DialogHeader: import('react').ForwardRefExoticComponent<DialogHeaderProps & import('react').RefAttributes<HTMLDivElement>>;
36
- /** Props for the DialogFooter component. Renders a fixed footer area for action buttons with a conditional top border. */
37
- export interface DialogFooterProps extends ComponentPropsWithoutRef<'div'> {
38
- /** @internal Used by DialogContent to control border visibility based on scroll state. */
39
- _showBorder?: boolean;
40
- }
41
- declare const DialogFooter: import('react').ForwardRefExoticComponent<DialogFooterProps & import('react').RefAttributes<HTMLDivElement>>;
44
+ /** Props for the DialogFooter component. Renders a fixed footer area for action buttons with a top border separating it from the content. */
45
+ export type DialogFooterProps = ComponentPropsWithoutRef<'div'>;
46
+ declare const DialogFooter: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
42
47
  declare const DialogTrigger: import('react').ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & import('react').RefAttributes<HTMLButtonElement>>;
43
48
  declare const DialogPortal: import('react').FC<DialogPrimitive.DialogPortalProps>;
44
49
  declare const DialogClose: import('react').ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & import('react').RefAttributes<HTMLButtonElement>>;
@@ -46,6 +51,7 @@ declare const DialogOverlay: import('react').ForwardRefExoticComponent<Omit<Dial
46
51
  declare const DialogContent: import('react').ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
47
52
  size?: "small" | "medium" | "large";
48
53
  closeAriaLabel?: string;
54
+ smallerContentYpadding?: boolean;
49
55
  } & import('react').RefAttributes<HTMLDivElement>>;
50
56
  export { Dialog, DialogPortal, DialogOverlay, DialogClose, DialogTrigger, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, };
51
57
  //# sourceMappingURL=Dialog.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../src/components/Dialog/Dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,wBAAwB,EAE7B,KAAK,SAAS,EAOf,MAAM,OAAO,CAAA;AACd,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAA;AAMzD,6EAA6E;AAC7E,MAAM,WAAW,WACf,SAAQ,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC;IACzD,2CAA2C;IAC3C,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,gEAAgE;IAChE,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,qCAAqC;IACrC,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,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