@vkzstudio/muza-ui 1.5.2 → 1.7.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 (83) hide show
  1. package/dist/components/ArticleCard/ArticleCard.d.ts.map +1 -1
  2. package/dist/components/ArticleCard/ArticleCard.js +161 -170
  3. package/dist/components/Button/Button.d.ts.map +1 -1
  4. package/dist/components/Button/Button.js +42 -40
  5. package/dist/components/Button/Button.stories.d.ts.map +1 -1
  6. package/dist/components/Carousel/Carousel.d.ts +99 -2
  7. package/dist/components/Carousel/Carousel.d.ts.map +1 -1
  8. package/dist/components/Carousel/Carousel.js +208 -151
  9. package/dist/components/Carousel/Carousel.stories.d.ts +2 -0
  10. package/dist/components/Carousel/Carousel.stories.d.ts.map +1 -1
  11. package/dist/components/Carousel/index.js +3 -2
  12. package/dist/components/CarouselSection/CarouselSection.examples.d.ts +1 -1
  13. package/dist/components/DropdownMenu/DropdownMenu.d.ts +22 -3
  14. package/dist/components/DropdownMenu/DropdownMenu.d.ts.map +1 -1
  15. package/dist/components/DropdownMenu/DropdownMenu.js +131 -105
  16. package/dist/components/DropdownMenu/DropdownMenu.stories.d.ts +3 -2
  17. package/dist/components/DropdownMenu/DropdownMenu.stories.d.ts.map +1 -1
  18. package/dist/components/MarketNav/MarketNav.examples.d.ts.map +1 -1
  19. package/dist/components/MultiSelect/MultiSelect.d.ts.map +1 -1
  20. package/dist/components/MultiSelect/MultiSelect.js +28 -29
  21. package/dist/components/OfferCard/OfferCard.d.ts +45 -17
  22. package/dist/components/OfferCard/OfferCard.d.ts.map +1 -1
  23. package/dist/components/OfferCard/OfferCard.js +180 -266
  24. package/dist/components/OfferCard/OfferCard.stories.d.ts +5 -2
  25. package/dist/components/OfferCard/OfferCard.stories.d.ts.map +1 -1
  26. package/dist/components/PartnerCard/PartnerCard.d.ts +90 -26
  27. package/dist/components/PartnerCard/PartnerCard.d.ts.map +1 -1
  28. package/dist/components/PartnerCard/PartnerCard.js +323 -264
  29. package/dist/components/PartnerCard/PartnerCard.stories.d.ts +6 -0
  30. package/dist/components/PartnerCard/PartnerCard.stories.d.ts.map +1 -1
  31. package/dist/components/PriceTag/PriceTag.d.ts +37 -0
  32. package/dist/components/PriceTag/PriceTag.d.ts.map +1 -0
  33. package/dist/components/PriceTag/PriceTag.js +43 -0
  34. package/dist/components/PriceTag/PriceTag.stories.d.ts +8 -0
  35. package/dist/components/PriceTag/PriceTag.stories.d.ts.map +1 -0
  36. package/dist/components/PriceTag/index.d.ts +2 -0
  37. package/dist/components/PriceTag/index.d.ts.map +1 -0
  38. package/dist/components/PriceTag/index.js +5 -0
  39. package/dist/components/Select/Select.d.ts.map +1 -1
  40. package/dist/components/Select/Select.js +74 -100
  41. package/dist/components/Select/Select.stories.d.ts.map +1 -1
  42. package/dist/components/Select/SelectTrigger.d.ts +54 -0
  43. package/dist/components/Select/SelectTrigger.d.ts.map +1 -0
  44. package/dist/components/Select/SelectTrigger.js +57 -0
  45. package/dist/components/Select/SelectTrigger.stories.d.ts +11 -0
  46. package/dist/components/Select/SelectTrigger.stories.d.ts.map +1 -0
  47. package/dist/components/Select/index.d.ts +2 -0
  48. package/dist/components/Select/index.d.ts.map +1 -1
  49. package/dist/components/Select/index.js +6 -2
  50. package/dist/components/Select/utils.d.ts +10 -1
  51. package/dist/components/Select/utils.d.ts.map +1 -1
  52. package/dist/components/Select/utils.js +3 -5
  53. package/dist/components/Tooltip/Tooltip.d.ts +18 -7
  54. package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
  55. package/dist/components/Tooltip/Tooltip.js +116 -68
  56. package/dist/components/Tooltip/Tooltip.stories.d.ts +1 -0
  57. package/dist/components/Tooltip/Tooltip.stories.d.ts.map +1 -1
  58. package/dist/components/UniversalFooter/UniversalFooter.js +1 -1
  59. package/dist/components/VoucherCard/VoucherCard.d.ts +24 -1
  60. package/dist/components/VoucherCard/VoucherCard.d.ts.map +1 -1
  61. package/dist/components/VoucherCard/VoucherCard.js +68 -76
  62. package/dist/components/VoucherCard/VoucherCard.stories.d.ts +1 -0
  63. package/dist/components/VoucherCard/VoucherCard.stories.d.ts.map +1 -1
  64. package/dist/components/WebCheckoutNav/WebCheckoutNav.examples.d.ts.map +1 -1
  65. package/dist/components/index.d.ts +1 -0
  66. package/dist/components/index.d.ts.map +1 -1
  67. package/dist/components/internal/CardCompactShell.d.ts +80 -0
  68. package/dist/components/internal/CardCompactShell.d.ts.map +1 -0
  69. package/dist/components/internal/CardCompactShell.js +148 -0
  70. package/dist/components/internal/CardImageSlot.d.ts +56 -0
  71. package/dist/components/internal/CardImageSlot.d.ts.map +1 -0
  72. package/dist/components/internal/CardImageSlot.js +85 -0
  73. package/dist/index.js +356 -348
  74. package/dist/muza-ui.css +1 -1
  75. package/dist/styles/token-sizes.css +16 -4
  76. package/dist/utils/cn.d.ts.map +1 -1
  77. package/dist/utils/cn.js +6 -3
  78. package/dist/utils/disabledLinkProps.d.ts +8 -1
  79. package/dist/utils/disabledLinkProps.d.ts.map +1 -1
  80. package/dist/utils/disabledLinkProps.js +0 -1
  81. package/llms-full.md +133 -2
  82. package/llms.txt +2 -0
  83. package/package.json +3 -1
@@ -3,12 +3,18 @@ import { PartnerCard } from './PartnerCard';
3
3
  declare const meta: Meta<typeof PartnerCard>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof PartnerCard>;
6
+ export declare const Compact: Story;
7
+ export declare const CompactPlaceholder: Story;
8
+ export declare const CompactPromoBand: Story;
9
+ export declare const CompactSkeleton: Story;
6
10
  export declare const Search: Story;
11
+ export declare const SearchPlaceholder: Story;
7
12
  export declare const SearchSkeleton: Story;
8
13
  export declare const Hero: Story;
9
14
  export declare const HeroSkeleton: Story;
10
15
  export declare const WithFavoriteControlled: Story;
11
16
  export declare const ListView: Story;
17
+ export declare const ListViewPlaceholder: Story;
12
18
  export declare const ListViewSkeleton: Story;
13
19
  export declare const AsChildLink: Story;
14
20
  //# sourceMappingURL=PartnerCard.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PartnerCard.stories.d.ts","sourceRoot":"","sources":["../../../src/components/PartnerCard/PartnerCard.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAW3D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AA6O3C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CAqDlC,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,WAAW,CAAC,CAAA;AAEzC,eAAO,MAAM,MAAM,EAAE,KA6BpB,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,KAgB5B,CAAA;AAED,eAAO,MAAM,IAAI,EAAE,KAsClB,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,KAgC1B,CAAA;AAED,eAAO,MAAM,sBAAsB,EAAE,KA0BpC,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KA8BtB,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,KAgB9B,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,KAuBzB,CAAA"}
1
+ {"version":3,"file":"PartnerCard.stories.d.ts","sourceRoot":"","sources":["../../../src/components/PartnerCard/PartnerCard.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAkB3D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAsS3C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CAyDlC,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,WAAW,CAAC,CAAA;AAEzC,eAAO,MAAM,OAAO,EAAE,KA2BrB,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,KA8ChC,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,KAqC9B,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,KAoB7B,CAAA;AAED,eAAO,MAAM,MAAM,EAAE,KA6BpB,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,KAqD/B,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,KAgB5B,CAAA;AAED,eAAO,MAAM,IAAI,EAAE,KAsClB,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,KAgC1B,CAAA;AAED,eAAO,MAAM,sBAAsB,EAAE,KA0BpC,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KA8BtB,CAAA;AAED,eAAO,MAAM,mBAAmB,EAAE,KAqEjC,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,KAgB9B,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,KAuBzB,CAAA"}
@@ -0,0 +1,37 @@
1
+ import * as React from 'react';
2
+ declare const priceTagVariants: (props?: ({
3
+ disabled?: boolean | null | undefined;
4
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
5
+ /** Props for the PriceTag component. */
6
+ export interface PriceTagProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, 'children'> {
7
+ /**
8
+ * Formatted price to display, e.g. `"100 Kč"`. Formatting (currency symbol,
9
+ * decimal separator, locale) is the consumer's responsibility — the tag
10
+ * renders the string as-is.
11
+ */
12
+ children: React.ReactNode;
13
+ /**
14
+ * Dimmed state used when the offer the price belongs to is unavailable.
15
+ * Swaps the fill and text to the disabled color ramp.
16
+ *
17
+ * @default false
18
+ */
19
+ disabled?: boolean;
20
+ }
21
+ /**
22
+ * A pill displaying the price of an offer or product.
23
+ *
24
+ * Sizing is driven entirely by design tokens, so the tag shrinks from 32px to
25
+ * 28px tall below the `md` breakpoint without any prop changes.
26
+ *
27
+ * @example
28
+ * <PriceTag>100 Kč</PriceTag>
29
+ *
30
+ * @example
31
+ * // Inside an OfferCard, prefer the card's `price` prop over composing
32
+ * // the tag by hand:
33
+ * <OfferCard name="Offer" href="/offer" variant="search" price="100 Kč" />
34
+ */
35
+ declare const PriceTag: React.ForwardRefExoticComponent<PriceTagProps & React.RefAttributes<HTMLSpanElement>>;
36
+ export { PriceTag, priceTagVariants };
37
+ //# sourceMappingURL=PriceTag.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PriceTag.d.ts","sourceRoot":"","sources":["../../../src/components/PriceTag/PriceTag.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAK9B,QAAA,MAAM,gBAAgB;;8EAWrB,CAAA;AAED,wCAAwC;AACxC,MAAM,WAAW,aACf,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,UAAU,CAAC;IAC/D;;;;OAIG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,QAAQ,uFAmBb,CAAA;AAGD,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,CAAA"}
@@ -0,0 +1,43 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import * as c from "react";
3
+ import { cva as o } from "class-variance-authority";
4
+ import { cn as s } from "../../utils/cn.js";
5
+ import { Typography as m } from "../Typography/Typography.js";
6
+ const n = o(
7
+ "inline-flex h-comp-price-tag-h w-fit shrink-0 items-center justify-center rounded-comp-price-tag-radius px-comp-price-tag-p-hor whitespace-nowrap",
8
+ {
9
+ variants: {
10
+ disabled: {
11
+ true: "bg-comp-price-tag-disabled-bg text-comp-price-tag-disabled-text",
12
+ false: "bg-comp-price-tag-default-bg text-comp-price-tag-default-text"
13
+ }
14
+ },
15
+ defaultVariants: { disabled: !1 }
16
+ }
17
+ ), d = c.forwardRef(
18
+ ({ className: a, disabled: t = !1, children: r, ...i }, p) => /* @__PURE__ */ e(
19
+ "span",
20
+ {
21
+ ref: p,
22
+ className: s(n({ disabled: t, className: a })),
23
+ ...i,
24
+ children: /* @__PURE__ */ e(
25
+ m,
26
+ {
27
+ component: "span",
28
+ variant: "body",
29
+ size: "sm",
30
+ weight: "medium",
31
+ fixY: !0,
32
+ className: "text-center",
33
+ children: r
34
+ }
35
+ )
36
+ }
37
+ )
38
+ );
39
+ d.displayName = "PriceTag";
40
+ export {
41
+ d as PriceTag,
42
+ n as priceTagVariants
43
+ };
@@ -0,0 +1,8 @@
1
+ import { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { PriceTag } from './PriceTag';
3
+ declare const meta: Meta<typeof PriceTag>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof PriceTag>;
6
+ export declare const Default: Story;
7
+ export declare const AllStates: Story;
8
+ //# sourceMappingURL=PriceTag.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PriceTag.stories.d.ts","sourceRoot":"","sources":["../../../src/components/PriceTag/PriceTag.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAE3D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,QAAQ,CAkC/B,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,QAAQ,CAAC,CAAA;AAEtC,eAAO,MAAM,OAAO,EAAE,KAUrB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KAgBvB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './PriceTag';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/PriceTag/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { PriceTag as e, priceTagVariants as i } from "./PriceTag.js";
2
+ export {
3
+ e as PriceTag,
4
+ i as priceTagVariants
5
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACZ,KAAK,SAAS,EAMf,MAAM,OAAO,CAAA;AAgBd;;;;;;;;;GASG;AACH,MAAM,WAAW,aAAa;IAC5B,+EAA+E;IAC/E,KAAK,EAAE,MAAM,CAAA;IACb,wFAAwF;IACxF,KAAK,EAAE,SAAS,CAAA;IAChB,4EAA4E;IAC5E,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,2FAA2F;IAC3F,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,iEAAiE;IACjE,IAAI,CAAC,EAAE,SAAS,CAAA;CACjB;AAED;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B,4DAA4D;IAC5D,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,kGAAkG;IAClG,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,kFAAkF;IAClF,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,0FAA0F;IAC1F,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,iFAAiF;IACjF,uBAAuB,CAAC,EAAE,OAAO,CAAA;IACjC,oEAAoE;IACpE,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,6EAA6E;IAC7E,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,kGAAkG;IAClG,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,qGAAqG;IACrG,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,2DAA2D;IAC3D,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,MAAM,GAAG,IAAI,CAAA;IAClC;;;;;;;;;;;;OAYG;IACH,OAAO,EAAE,aAAa,EAAE,CAAA;IACxB,wEAAwE;IACxE,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,0EAA0E;IAC1E,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,gFAAgF;IAChF,4BAA4B,CAAC,EAAE,OAAO,CAAA;IACtC,oHAAoH;IACpH,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,6HAA6H;IAC7H,UAAU,CAAC,EAAE,SAAS,CAAA;IACtB,sGAAsG;IACtG,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,eAAO,MAAM,MAAM,wFA+OlB,CAAA"}
1
+ {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACZ,KAAK,SAAS,EAMf,MAAM,OAAO,CAAA;AAcd;;;;;;;;;GASG;AACH,MAAM,WAAW,aAAa;IAC5B,+EAA+E;IAC/E,KAAK,EAAE,MAAM,CAAA;IACb,wFAAwF;IACxF,KAAK,EAAE,SAAS,CAAA;IAChB,4EAA4E;IAC5E,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,2FAA2F;IAC3F,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,iEAAiE;IACjE,IAAI,CAAC,EAAE,SAAS,CAAA;CACjB;AAED;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B,4DAA4D;IAC5D,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,kGAAkG;IAClG,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,kFAAkF;IAClF,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,0FAA0F;IAC1F,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,iFAAiF;IACjF,uBAAuB,CAAC,EAAE,OAAO,CAAA;IACjC,oEAAoE;IACpE,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,6EAA6E;IAC7E,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,kGAAkG;IAClG,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,qGAAqG;IACrG,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,2DAA2D;IAC3D,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,MAAM,GAAG,IAAI,CAAA;IAClC;;;;;;;;;;;;OAYG;IACH,OAAO,EAAE,aAAa,EAAE,CAAA;IACxB,wEAAwE;IACxE,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,0EAA0E;IAC1E,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,gFAAgF;IAChF,4BAA4B,CAAC,EAAE,OAAO,CAAA;IACtC,oHAAoH;IACpH,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,6HAA6H;IAC7H,UAAU,CAAC,EAAE,SAAS,CAAA;IACtB,sGAAsG;IACtG,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,eAAO,MAAM,MAAM,wFAoNlB,CAAA"}
@@ -1,36 +1,34 @@
1
- import { jsx as t, jsxs as u } from "react/jsx-runtime";
2
- import f, { forwardRef as G, useId as L, useMemo as U, useRef as S, useEffect as T } from "react";
1
+ import { jsx as t, jsxs as N } from "react/jsx-runtime";
2
+ import u, { forwardRef as B, useId as G, useMemo as L, useRef as z, useEffect as S } from "react";
3
3
  import { useMuzaTranslations as H } from "../../translations/TranslationContext.js";
4
- import { cn as D } from "../../utils/cn.js";
5
- import { DropdownMenu as J, DropdownMenuTrigger as K, DropdownMenuContent as Q, DropdownMenuRadioGroup as X, DropdownMenuRadioItem as Y } from "../DropdownMenu/DropdownMenu.js";
6
- import { Flex as Z } from "../Flex/Flex.js";
7
- import { FormField as ee } from "../FormField/FormField.js";
8
- import { AltArrowUpOutline as te } from "@solar-icons/react-perf";
9
- import { Typography as o } from "../Typography/Typography.js";
10
- import { triggerWrapperVariants as re } from "./utils.js";
11
- const ne = G(
12
- (I, h) => {
13
- const g = H(), {
14
- label: x,
15
- hint: b,
16
- error: w,
17
- options: a,
18
- onChange: d,
4
+ import { DropdownMenu as J, DropdownMenuTrigger as K, DropdownMenuContent as Q, DropdownMenuRadioGroup as U, DropdownMenuRadioItem as X } from "../DropdownMenu/DropdownMenu.js";
5
+ import { Flex as Y } from "../Flex/Flex.js";
6
+ import { FormField as Z } from "../FormField/FormField.js";
7
+ import { Typography as l } from "../Typography/Typography.js";
8
+ import { SelectTrigger as ee } from "./SelectTrigger.js";
9
+ const te = B(
10
+ (T, p) => {
11
+ const m = H(), {
12
+ label: f,
13
+ hint: h,
14
+ error: g,
15
+ options: s,
16
+ onChange: c,
19
17
  value: n,
20
- disabled: s,
21
- prefix: y,
22
- size: O,
23
- placeholder: W,
24
- emptyMessage: A,
25
- shouldScrollToSelectedOption: v,
26
- collisionPadding: C,
27
- required: N,
28
- disableRequiredAsterisk: F,
29
- labelExtra: V,
30
- infoTooltip: q
31
- } = I, R = W ?? g.select.placeholder, E = A ?? g.select.noOptions, M = L(), P = x ? `${M}-label` : void 0, $ = b ? `${M}-hint` : void 0, r = n ? a.find((e) => e.value === n) : void 0, j = U(() => r ? r.description ? /* @__PURE__ */ u(Z, { flex: 1, direction: "column", className: "min-w-0 text-left", children: [
18
+ disabled: x,
19
+ prefix: D,
20
+ size: I,
21
+ placeholder: C,
22
+ emptyMessage: F,
23
+ shouldScrollToSelectedOption: b,
24
+ collisionPadding: O,
25
+ required: y,
26
+ disableRequiredAsterisk: W,
27
+ labelExtra: q,
28
+ infoTooltip: E
29
+ } = T, v = C ?? m.select.placeholder, P = F ?? m.select.noOptions, w = G(), V = f ? `${w}-label` : void 0, $ = h ? `${w}-hint` : void 0, r = n ? s.find((e) => e.value === n) : void 0, j = L(() => r ? r.description ? /* @__PURE__ */ N(Y, { flex: 1, direction: "column", className: "min-w-0 text-left", children: [
32
30
  /* @__PURE__ */ t(
33
- o,
31
+ l,
34
32
  {
35
33
  size: "sm",
36
34
  variant: "title",
@@ -41,7 +39,7 @@ const ne = G(
41
39
  }
42
40
  ),
43
41
  /* @__PURE__ */ t(
44
- o,
42
+ l,
45
43
  {
46
44
  size: "sm",
47
45
  variant: "body",
@@ -52,7 +50,7 @@ const ne = G(
52
50
  }
53
51
  )
54
52
  ] }) : typeof r.label != "function" ? /* @__PURE__ */ t(
55
- o,
53
+ l,
56
54
  {
57
55
  size: "input",
58
56
  className: "grow-1 fix-y-text truncate text-left text-comp-select-text-primary",
@@ -61,84 +59,60 @@ const ne = G(
61
59
  children: r.label
62
60
  }
63
61
  ) : r.label : /* @__PURE__ */ t(
64
- o,
62
+ l,
65
63
  {
66
64
  size: "input",
67
65
  className: "grow-1 fix-y-text truncate text-left text-comp-select-text-placeholder",
68
66
  weight: "regular",
69
67
  component: "span",
70
- children: R
68
+ children: v
71
69
  }
72
- ), [r, R]), [l, k] = f.useState(!1), [z, _] = f.useState(0), p = f.useRef(!1), B = S(null), m = S({}), i = (typeof h == "function" ? null : h) ?? B;
73
- return T(() => {
70
+ ), [r, v]), [R, k] = u.useState(!1), [M, A] = u.useState(0), a = u.useRef(!1), _ = z(null), d = z({}), i = (typeof p == "function" ? null : p) ?? _;
71
+ return S(() => {
74
72
  const e = () => {
75
- i.current && _(i.current.offsetWidth);
73
+ i.current && A(i.current.offsetWidth);
76
74
  };
77
75
  e();
78
- const c = new ResizeObserver(e);
79
- return i.current && c.observe(i.current), () => {
80
- c.disconnect();
76
+ const o = new ResizeObserver(e);
77
+ return i.current && o.observe(i.current), () => {
78
+ o.disconnect();
81
79
  };
82
- }, [i]), T(() => {
80
+ }, [i]), S(() => {
83
81
  var e;
84
- l && n && m.current[n] && v && ((e = m.current[n]) == null || e.scrollIntoView({ block: "nearest" }));
85
- }, [l, v, n]), /* @__PURE__ */ t(
86
- ee,
82
+ R && n && d.current[n] && b && ((e = d.current[n]) == null || e.scrollIntoView({ block: "nearest" }));
83
+ }, [R, b, n]), /* @__PURE__ */ t(
84
+ Z,
87
85
  {
88
- label: x,
89
- hint: b,
90
- error: w,
91
- required: N,
92
- disableRequiredAsterisk: F,
93
- labelId: P,
86
+ label: f,
87
+ hint: h,
88
+ error: g,
89
+ required: y,
90
+ disableRequiredAsterisk: W,
91
+ labelId: V,
94
92
  hintId: $,
95
- labelExtra: V,
96
- infoTooltip: q,
93
+ labelExtra: q,
94
+ infoTooltip: E,
97
95
  className: "flex-1",
98
- children: /* @__PURE__ */ u(
96
+ children: /* @__PURE__ */ N(
99
97
  J,
100
98
  {
101
99
  onOpenChange: (e) => {
102
100
  k(e);
103
101
  },
104
102
  children: [
105
- /* @__PURE__ */ t(K, { disabled: s, asChild: !0, children: /* @__PURE__ */ t(
106
- "button",
103
+ /* @__PURE__ */ t(K, { disabled: x, asChild: !0, children: /* @__PURE__ */ t(
104
+ ee,
107
105
  {
108
106
  ref: i,
109
- type: "button",
110
107
  role: "input",
111
108
  tabIndex: 0,
112
- disabled: s,
113
- "aria-required": N,
114
- className: D(
115
- re({
116
- size: O,
117
- error: w,
118
- expanded: l,
119
- hasDescription: !!(r != null && r.description)
120
- })
121
- ),
122
- children: /* @__PURE__ */ u("div", { className: "flex min-w-0 flex-1 items-center gap-sm", children: [
123
- y && /* @__PURE__ */ t(
124
- "span",
125
- {
126
- className: s ? "text-comp-select-icon-disabled" : "text-comp-select-icon-brand-def",
127
- children: y
128
- }
129
- ),
130
- j,
131
- /* @__PURE__ */ t(
132
- te,
133
- {
134
- className: D(
135
- "transition-transform duration-200",
136
- l ? "rotate-0" : "rotate-180",
137
- s ? "text-comp-select-icon-disabled" : "text-comp-select-icon-brand-def"
138
- )
139
- }
140
- )
141
- ] })
109
+ disabled: x,
110
+ "aria-required": y,
111
+ size: I,
112
+ error: g,
113
+ prefix: D,
114
+ hasDescription: !!(r != null && r.description),
115
+ children: j
142
116
  }
143
117
  ) }),
144
118
  /* @__PURE__ */ t(
@@ -146,38 +120,38 @@ const ne = G(
146
120
  {
147
121
  className: "mt-1",
148
122
  style: {
149
- width: z > 0 ? `${z}px` : void 0
123
+ width: M > 0 ? `${M}px` : void 0
150
124
  },
151
125
  align: "center",
152
126
  onCloseAutoFocus: (e) => {
153
- p.current || e.preventDefault(), p.current = !1;
127
+ a.current || e.preventDefault(), a.current = !1;
154
128
  },
155
- collisionPadding: C,
156
- children: a.length === 0 ? /* @__PURE__ */ t("div", { className: "px-lg py-md", role: "presentation", children: /* @__PURE__ */ t(
157
- o,
129
+ collisionPadding: O,
130
+ children: s.length === 0 ? /* @__PURE__ */ t("div", { className: "px-lg py-md", role: "presentation", children: /* @__PURE__ */ t(
131
+ l,
158
132
  {
159
133
  component: "span",
160
134
  size: "input",
161
135
  weight: "regular",
162
136
  className: "text-comp-select-text-secondary",
163
- children: E
137
+ children: P
164
138
  }
165
139
  ) }) : /* @__PURE__ */ t(
166
- X,
140
+ U,
167
141
  {
168
142
  value: n,
169
143
  onValueChange: (e) => {
170
- p.current = !0, d == null || d(e);
144
+ a.current = !0, c == null || c(e);
171
145
  },
172
- children: a.map((e) => /* @__PURE__ */ t(
173
- Y,
146
+ children: s.map((e) => /* @__PURE__ */ t(
147
+ X,
174
148
  {
175
149
  value: e.value.toString(),
176
150
  disabled: e.disabled,
177
151
  icon: e.icon,
178
152
  description: e.description,
179
- ref: (c) => {
180
- m.current[e.value] = c;
153
+ ref: (o) => {
154
+ d.current[e.value] = o;
181
155
  },
182
156
  children: e.label
183
157
  },
@@ -194,7 +168,7 @@ const ne = G(
194
168
  );
195
169
  }
196
170
  );
197
- ne.displayName = "Select";
171
+ te.displayName = "Select";
198
172
  export {
199
- ne as Select
173
+ te as Select
200
174
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Select.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAU3D,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAoI7B,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAA;AA6BpC,eAAO,MAAM,OAAO,EAAE,KAwBrB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KA2BvB,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,KA0B9B,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KA0BvB,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,KAwB/B,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KA0BtB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KA0BtB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KA6DtB,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,KA0C7B,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,KAgCzB,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAyBxB,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,KAqDhC,CAAA;AAED,eAAO,MAAM,mBAAmB,EAAE,KAkCjC,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,KAoDrB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KAqBvB,CAAA"}
1
+ {"version":3,"file":"Select.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAU3D,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAsI7B,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAA;AA6BpC,eAAO,MAAM,OAAO,EAAE,KAwBrB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KA2BvB,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,KA0B9B,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KA0BvB,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,KAwB/B,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KA0BtB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KA0BtB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KA6DtB,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,KA0C7B,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,KAgCzB,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAyBxB,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,KAqDhC,CAAA;AAED,eAAO,MAAM,mBAAmB,EAAE,KAkCjC,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,KAoDrB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KAqBvB,CAAA"}
@@ -0,0 +1,54 @@
1
+ import * as React from 'react';
2
+ /**
3
+ * Props for the SelectTrigger component.
4
+ *
5
+ * Extends the native `<button>` attributes — every unrecognised prop is spread onto
6
+ * the root element, so overlay primitives such as `DropdownMenuTrigger asChild` can
7
+ * inject their handlers, `aria-*` attributes and `data-state`.
8
+ */
9
+ export interface ISelectTriggerProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'prefix'> {
10
+ /**
11
+ * Label content. A `string` or `number` is rendered in the standard truncated
12
+ * trigger label style; pass your own node to control the layout (as `Select`
13
+ * does for its two-line options).
14
+ */
15
+ children?: React.ReactNode;
16
+ /** Controls height and horizontal padding. Matches the `Select` size scale. @default 'base' */
17
+ size?: 'xs' | 'sm' | 'base' | 'lg';
18
+ /** Applies the error border color. @default false */
19
+ error?: boolean;
20
+ /** Icon or element rendered before the label. */
21
+ prefix?: React.ReactNode;
22
+ /** Adds vertical padding for two-line label content. @default false */
23
+ hasDescription?: boolean;
24
+ }
25
+ /**
26
+ * The presentational trigger used by {@link Select} — a pill-shaped button with an
27
+ * optional prefix, a truncated label and a chevron that flips when the surrounding
28
+ * overlay opens.
29
+ *
30
+ * It is fully stateless: the expanded styling is derived from the `data-state="open"`
31
+ * attribute that Radix sets on a trigger, so the same component works inside
32
+ * `Select`, `DropdownMenu`, `Popover` or any other overlay without an extra prop.
33
+ * Use it directly when a menu needs to *look* like a select but is not a combobox —
34
+ * an account menu, a filter menu, a navigation dropdown.
35
+ *
36
+ * @example Standalone
37
+ * ```tsx
38
+ * <SelectTrigger size="sm">Jan Novák</SelectTrigger>
39
+ * ```
40
+ *
41
+ * @example As a DropdownMenu trigger
42
+ * ```tsx
43
+ * <DropdownMenu>
44
+ * <DropdownMenuTrigger asChild>
45
+ * <SelectTrigger size="sm" className="max-w-comp-market-nav-select-max-w">
46
+ * {userName}
47
+ * </SelectTrigger>
48
+ * </DropdownMenuTrigger>
49
+ * <DropdownMenuContent align="end">…</DropdownMenuContent>
50
+ * </DropdownMenu>
51
+ * ```
52
+ */
53
+ export declare const SelectTrigger: React.ForwardRefExoticComponent<ISelectTriggerProps & React.RefAttributes<HTMLButtonElement>>;
54
+ //# sourceMappingURL=SelectTrigger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectTrigger.d.ts","sourceRoot":"","sources":["../../../src/components/Select/SelectTrigger.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAM9B;;;;;;GAMG;AACH,MAAM,WAAW,mBACf,SAAQ,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,QAAQ,CAAC;IACrE;;;;OAIG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,+FAA+F;IAC/F,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,MAAM,GAAG,IAAI,CAAA;IAClC,qDAAqD;IACrD,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,iDAAiD;IACjD,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACxB,uEAAuE;IACvE,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,aAAa,+FAuDzB,CAAA"}
@@ -0,0 +1,57 @@
1
+ import { jsx as t, jsxs as l } from "react/jsx-runtime";
2
+ import * as g from "react";
3
+ import { cn as o } from "../../utils/cn.js";
4
+ import { AltArrowUpOutline as d } from "@solar-icons/react-perf";
5
+ import { Typography as f } from "../Typography/Typography.js";
6
+ import { triggerWrapperVariants as x } from "./utils.js";
7
+ const u = g.forwardRef(
8
+ ({
9
+ children: e,
10
+ className: s,
11
+ size: a,
12
+ error: i,
13
+ prefix: r,
14
+ hasDescription: m,
15
+ type: c = "button",
16
+ ...p
17
+ }, n) => /* @__PURE__ */ t(
18
+ "button",
19
+ {
20
+ ref: n,
21
+ type: c,
22
+ className: o(
23
+ x({ size: a, error: i, hasDescription: m }),
24
+ "group/select-trigger",
25
+ s
26
+ ),
27
+ ...p,
28
+ children: /* @__PURE__ */ l("div", { className: "flex min-w-0 flex-1 items-center gap-sm", children: [
29
+ r && /* @__PURE__ */ t("span", { className: "text-comp-select-icon-brand-def group-disabled/select-trigger:text-comp-select-icon-disabled", children: r }),
30
+ typeof e == "string" || typeof e == "number" ? /* @__PURE__ */ t(
31
+ f,
32
+ {
33
+ size: "input",
34
+ className: "grow-1 fix-y-text truncate text-left text-comp-select-text-primary",
35
+ weight: "medium",
36
+ component: "span",
37
+ children: e
38
+ }
39
+ ) : e,
40
+ /* @__PURE__ */ t(
41
+ d,
42
+ {
43
+ className: o(
44
+ "shrink-0 rotate-180 transition-transform duration-200",
45
+ "group-data-[state=open]/select-trigger:rotate-0",
46
+ "text-comp-select-icon-brand-def group-disabled/select-trigger:text-comp-select-icon-disabled"
47
+ )
48
+ }
49
+ )
50
+ ] })
51
+ }
52
+ )
53
+ );
54
+ u.displayName = "SelectTrigger";
55
+ export {
56
+ u as SelectTrigger
57
+ };
@@ -0,0 +1,11 @@
1
+ import { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { SelectTrigger } from './SelectTrigger';
3
+ declare const meta: Meta<typeof SelectTrigger>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof SelectTrigger>;
6
+ export declare const Default: Story;
7
+ export declare const AsDropdownMenuTrigger: Story;
8
+ export declare const OpenState: Story;
9
+ export declare const AllSizes: Story;
10
+ export declare const AllStates: Story;
11
+ //# sourceMappingURL=SelectTrigger.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectTrigger.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Select/SelectTrigger.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAiB3D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,aAAa,CA8DpC,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,aAAa,CAAC,CAAA;AAE3C,eAAO,MAAM,OAAO,EAAE,KAkBrB,CAAA;AAED,eAAO,MAAM,qBAAqB,EAAE,KA8BnC,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KA6BvB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAkBtB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KAwBvB,CAAA"}
@@ -1,2 +1,4 @@
1
1
  export { Select, type ISelectOption, type ISelectProps } from './Select';
2
+ export { SelectTrigger, type ISelectTriggerProps } from './SelectTrigger';
3
+ export { triggerWrapperVariants } from './utils';
2
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Select/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,aAAa,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Select/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,aAAa,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAA;AACxE,OAAO,EAAE,aAAa,EAAE,KAAK,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA"}
@@ -1,4 +1,8 @@
1
- import { Select as r } from "./Select.js";
1
+ import { Select as t } from "./Select.js";
2
+ import { SelectTrigger as p } from "./SelectTrigger.js";
3
+ import { triggerWrapperVariants as a } from "./utils.js";
2
4
  export {
3
- r as Select
5
+ t as Select,
6
+ p as SelectTrigger,
7
+ a as triggerWrapperVariants
4
8
  };
@@ -1,7 +1,16 @@
1
+ /**
2
+ * Styling for the `Select` trigger button.
3
+ *
4
+ * Exported as an escape hatch for cases that cannot use the `SelectTrigger`
5
+ * component itself. Prefer `SelectTrigger` — it also owns the label truncation
6
+ * and the chevron.
7
+ *
8
+ * The expanded border is driven by `data-state="open"`, which Radix sets on any
9
+ * trigger (Select, DropdownMenu, Popover…), so no `expanded` flag is needed.
10
+ */
1
11
  export declare const triggerWrapperVariants: (props?: ({
2
12
  size?: "xs" | "sm" | "lg" | "base" | null | undefined;
3
13
  error?: boolean | null | undefined;
4
- expanded?: boolean | null | undefined;
5
14
  hasIcon?: boolean | null | undefined;
6
15
  hasDescription?: boolean | null | undefined;
7
16
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/Select/utils.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,sBAAsB;;;;;;8EAkClC,CAAA"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/Select/utils.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,eAAO,MAAM,sBAAsB;;;;;8EAgClC,CAAA"}
@@ -1,10 +1,11 @@
1
1
  import { cva as e } from "class-variance-authority";
2
- const r = e(
2
+ const o = e(
3
3
  [
4
4
  "flex w-full cursor-pointer items-center gap-sm rounded-full border border-comp-select-stroke-def",
5
5
  "overflow-hidden bg-comp-select-fill-def whitespace-nowrap focus-visible-default transition-colors",
6
6
  "hover:border-comp-select-stroke-hover",
7
7
  "focus-visible:border-comp-select-stroke-focused",
8
+ "data-[state=open]:border-comp-select-stroke-focused",
8
9
  "disabled:cursor-not-allowed disabled:border-comp-select-stroke-disabled disabled:bg-comp-select-fill-disabled"
9
10
  ],
10
11
  {
@@ -18,9 +19,6 @@ const r = e(
18
19
  error: {
19
20
  true: "border-comp-select-stroke-error-def"
20
21
  },
21
- expanded: {
22
- true: "border-comp-select-stroke-focused"
23
- },
24
22
  hasIcon: {
25
23
  false: "pl-comp-select-p-large"
26
24
  },
@@ -35,5 +33,5 @@ const r = e(
35
33
  }
36
34
  );
37
35
  export {
38
- r as triggerWrapperVariants
36
+ o as triggerWrapperVariants
39
37
  };