@vkzstudio/muza-ui 1.0.45 → 1.0.47

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 (76) hide show
  1. package/dist/components/Accordion/Accordion.d.ts.map +1 -1
  2. package/dist/components/Accordion/Accordion.js +70 -62
  3. package/dist/components/Accordion/Accordion.stories.d.ts.map +1 -1
  4. package/dist/components/Button/Button.stories.d.ts.map +1 -1
  5. package/dist/components/Card/Card.d.ts +63 -0
  6. package/dist/components/Card/Card.d.ts.map +1 -0
  7. package/dist/components/Card/Card.js +67 -0
  8. package/dist/components/Card/Card.stories.d.ts +13 -0
  9. package/dist/components/Card/Card.stories.d.ts.map +1 -0
  10. package/dist/components/Card/index.d.ts +2 -0
  11. package/dist/components/Card/index.d.ts.map +1 -0
  12. package/dist/components/Carousel/Carousel.d.ts +140 -0
  13. package/dist/components/Carousel/Carousel.d.ts.map +1 -0
  14. package/dist/components/Carousel/Carousel.js +241 -0
  15. package/dist/components/Carousel/Carousel.stories.d.ts +13 -0
  16. package/dist/components/Carousel/Carousel.stories.d.ts.map +1 -0
  17. package/dist/components/Carousel/index.d.ts +2 -0
  18. package/dist/components/Carousel/index.d.ts.map +1 -0
  19. package/dist/components/DataTable/DataTable.stories.d.ts.map +1 -1
  20. package/dist/components/DropdownMenu/DropdownMenu.js +1 -1
  21. package/dist/components/EdgeButton/EdgeButton.stories.d.ts.map +1 -1
  22. package/dist/components/Flex/Flex.d.ts +372 -1
  23. package/dist/components/Flex/Flex.d.ts.map +1 -1
  24. package/dist/components/Flex/Flex.js +61 -63
  25. package/dist/components/Flex/Flex.stories.d.ts.map +1 -1
  26. package/dist/components/Icons/Icons.stories.d.ts.map +1 -1
  27. package/dist/components/Icons/LogosAndBadges.stories.d.ts.map +1 -1
  28. package/dist/components/MultiSelect/MultiSelect.stories.d.ts.map +1 -1
  29. package/dist/components/MuzaUIProvider/MuzaUIProvider.stories.d.ts.map +1 -1
  30. package/dist/components/Pagination/Pagination.js +1 -1
  31. package/dist/components/Pagination/Pagination.stories.d.ts.map +1 -1
  32. package/dist/components/Progress/Progress.d.ts +49 -0
  33. package/dist/components/Progress/Progress.d.ts.map +1 -0
  34. package/dist/components/Progress/Progress.js +64 -0
  35. package/dist/components/Progress/Progress.stories.d.ts +13 -0
  36. package/dist/components/Progress/Progress.stories.d.ts.map +1 -0
  37. package/dist/components/Progress/index.d.ts +2 -0
  38. package/dist/components/Progress/index.d.ts.map +1 -0
  39. package/dist/components/Reorderable/Reorderable.stories.d.ts.map +1 -1
  40. package/dist/components/Sheet/Sheet.d.ts +89 -0
  41. package/dist/components/Sheet/Sheet.d.ts.map +1 -0
  42. package/dist/components/Sheet/Sheet.js +189 -0
  43. package/dist/components/Sheet/Sheet.stories.d.ts +20 -0
  44. package/dist/components/Sheet/Sheet.stories.d.ts.map +1 -0
  45. package/dist/components/Sheet/index.d.ts +2 -0
  46. package/dist/components/Sheet/index.d.ts.map +1 -0
  47. package/dist/components/Slider/Slider.d.ts +65 -0
  48. package/dist/components/Slider/Slider.d.ts.map +1 -0
  49. package/dist/components/Slider/Slider.js +134 -0
  50. package/dist/components/Slider/Slider.stories.d.ts +12 -0
  51. package/dist/components/Slider/Slider.stories.d.ts.map +1 -0
  52. package/dist/components/Slider/index.d.ts +2 -0
  53. package/dist/components/Slider/index.d.ts.map +1 -0
  54. package/dist/components/TextEditor/TextEditor.stories.d.ts.map +1 -1
  55. package/dist/components/Typography/Typography.stories.d.ts.map +1 -1
  56. package/dist/components/index.d.ts +5 -0
  57. package/dist/components/index.d.ts.map +1 -1
  58. package/dist/index.js +310 -277
  59. package/dist/muza-ui.css +1 -1
  60. package/dist/styles/primitives.css +5 -1
  61. package/dist/styles/token-colors.css +175 -27
  62. package/dist/styles/token-sizes.css +602 -257
  63. package/dist/styles/typography.css +36 -7
  64. package/dist/translations/locales/cs.d.ts.map +1 -1
  65. package/dist/translations/locales/cs.js +17 -0
  66. package/dist/translations/locales/en.d.ts.map +1 -1
  67. package/dist/translations/locales/en.js +17 -0
  68. package/dist/translations/locales/sk.d.ts.map +1 -1
  69. package/dist/translations/locales/sk.js +19 -2
  70. package/dist/translations/types.d.ts +42 -0
  71. package/dist/translations/types.d.ts.map +1 -1
  72. package/dist/utils/cn.d.ts.map +1 -1
  73. package/dist/utils/cn.js +24 -10
  74. package/llms-full.md +38 -35
  75. package/llms.txt +10 -9
  76. package/package.json +6 -3
@@ -1 +1 @@
1
- {"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../../src/components/Accordion/Accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAA;AAC/D,OAAO,EACL,KAAK,sBAAsB,IAAI,2BAA2B,EAC1D,KAAK,oBAAoB,IAAI,yBAAyB,EACvD,MAAM,2BAA2B,CAAA;AAKlC;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,CAAA;AAEjE,mEAAmE;AACnE,MAAM,WAAW,oBAAqB,SAAQ,yBAAyB;IACrE,yDAAyD;IACzD,IAAI,EAAE,QAAQ,CAAA;IACd;;;;OAIG;IACH,OAAO,CAAC,EAAE,gBAAgB,CAAA;IAC1B,iFAAiF;IACjF,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,qEAAqE;IACrE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,oDAAoD;IACpD,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,2EAA2E;IAC3E,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,gFAAgF;AAChF,MAAM,WAAW,sBAAuB,SAAQ,2BAA2B;IACzE,sEAAsE;IACtE,IAAI,EAAE,UAAU,CAAA;IAChB;;;;OAIG;IACH,OAAO,CAAC,EA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,wBAAwB,EACxB,6BAA6B,GAC9B,CAAA"}
@@ -1,19 +1,19 @@
1
1
  import { jsx as t, jsxs as w } from "react/jsx-runtime";
2
- import * as d from "react";
3
- import * as c from "@radix-ui/react-accordion";
4
- import { cva as g } from "class-variance-authority";
5
- import { cn as n } from "../../utils/cn.js";
2
+ import * as c from "react";
3
+ import * as n from "@radix-ui/react-accordion";
4
+ import { cva as u } from "class-variance-authority";
5
+ import { cn as i } from "../../utils/cn.js";
6
6
  import { AltArrowDownOutline as N } from "@solar-icons/react-perf";
7
- const v = g("relative w-full transition-colors", {
7
+ const v = u("relative w-full transition-colors", {
8
8
  variants: {
9
9
  variant: {
10
- default: "rounded-xl border border-stroke-base-primary bg-surface-base-secondary px-comp-accordion-p py-comp-accordion-p-hor has-[[data-slot=accordion-trigger]:hover]:border-stroke-brand-hover",
11
- branded: "rounded-lg border-0 bg-surface-brand-brand-tertiary p-comp-accordion-p has-[[data-slot=accordion-trigger]:hover]:bg-surface-base-primary-hover",
12
- settings: "rounded-xl border border-comp-accordeon-settings-stroke-def bg-comp-accordeon-settings-bg-primary-def has-[[data-slot=accordion-trigger]:disabled]:cursor-not-allowed has-[[data-slot=accordion-trigger]:disabled]:border-comp-accordeon-settings-stroke-disabled has-[[data-slot=accordion-trigger]:disabled]:bg-comp-accordeon-settings-bg-primary-disabled has-[[data-slot=accordion-trigger]:focus-visible]:border-comp-accordeon-settings-stroke-focused has-[[data-slot=accordion-trigger]:focus-visible]:bg-comp-accordeon-settings-bg-primary-focused has-[[data-slot=accordion-trigger]:hover:not(:disabled)]:border-comp-accordeon-settings-stroke-hover has-[[data-slot=accordion-trigger]:hover:not(:disabled)]:bg-comp-accordeon-settings-bg-primary-hover"
10
+ default: "rounded-comp-accordion-default-radius border border-stroke-base-primary bg-surface-base-secondary px-comp-accordion-default-p py-comp-accordion-default-p-ver has-[[data-slot=accordion-trigger]:hover]:border-stroke-brand-hover",
11
+ branded: "rounded-comp-accordion-branded-radius border-0 bg-surface-brand-brand-tertiary p-comp-accordion-branded-p has-[[data-slot=accordion-trigger]:hover]:bg-surface-base-primary-hover",
12
+ settings: "rounded-comp-accordion-settings-radius border border-comp-accordion-settings-stroke-def bg-comp-accordion-settings-bg-primary-def has-[[data-slot=accordion-trigger]:disabled]:cursor-not-allowed has-[[data-slot=accordion-trigger]:disabled]:border-comp-accordion-settings-stroke-disabled has-[[data-slot=accordion-trigger]:disabled]:bg-comp-accordion-settings-bg-primary-disabled has-[[data-slot=accordion-trigger]:focus-visible]:border-comp-accordion-settings-stroke-focused has-[[data-slot=accordion-trigger]:focus-visible]:bg-comp-accordion-settings-bg-primary-focused has-[[data-slot=accordion-trigger]:hover:not(:disabled)]:border-comp-accordion-settings-stroke-hover has-[[data-slot=accordion-trigger]:hover:not(:disabled)]:bg-comp-accordion-settings-bg-primary-hover"
13
13
  }
14
14
  },
15
15
  defaultVariants: { variant: "default" }
16
- }), x = g(
16
+ }), x = u(
17
17
  "group flex w-full cursor-pointer items-center justify-between gap-4 transition-all outline-none [&[data-state=open]>svg]:rotate-180",
18
18
  {
19
19
  variants: {
@@ -25,7 +25,7 @@ const v = g("relative w-full transition-colors", {
25
25
  },
26
26
  defaultVariants: { variant: "default" }
27
27
  }
28
- ), h = g("text-left", {
28
+ ), h = u("text-left", {
29
29
  variants: {
30
30
  variant: {
31
31
  default: "pt-md",
@@ -34,54 +34,54 @@ const v = g("relative w-full transition-colors", {
34
34
  }
35
35
  },
36
36
  defaultVariants: { variant: "default" }
37
- }), y = d.createContext({
37
+ }), y = c.createContext({
38
38
  variant: "default"
39
- }), m = () => d.useContext(y), l = d.createContext({
39
+ }), m = () => c.useContext(y), l = c.createContext({
40
40
  isStatic: !1
41
- }), k = () => d.useContext(l), j = ({
42
- className: e,
43
- variant: o,
41
+ }), k = () => c.useContext(l), P = ({
42
+ className: o,
43
+ variant: r,
44
44
  ...a
45
45
  }) => {
46
- const r = o ?? (a.type === "single" ? "branded" : "default");
47
- return /* @__PURE__ */ t(y.Provider, { value: { variant: r }, children: /* @__PURE__ */ t(
48
- c.Root,
46
+ const e = r ?? (a.type === "single" ? "branded" : "default");
47
+ return /* @__PURE__ */ t(y.Provider, { value: { variant: e }, children: /* @__PURE__ */ t(
48
+ n.Root,
49
49
  {
50
50
  "data-slot": "accordion",
51
- className: n("flex w-full flex-col gap-md", e),
51
+ className: i("flex w-full flex-col gap-md", o),
52
52
  ...a
53
53
  }
54
54
  ) });
55
- }, R = ({
56
- className: e,
57
- children: o,
55
+ }, j = ({
56
+ className: o,
57
+ children: r,
58
58
  clickableContent: a = !0,
59
- static: r,
60
- value: i,
59
+ static: e,
60
+ value: d,
61
61
  disabled: A,
62
- ...u
62
+ ...g
63
63
  }) => {
64
- const { variant: f } = m(), p = d.useRef(null);
65
- return r ? /* @__PURE__ */ t(l.Provider, { value: { isStatic: !0 }, children: /* @__PURE__ */ t(
64
+ const { variant: f } = m(), p = c.useRef(null);
65
+ return e ? /* @__PURE__ */ t(l.Provider, { value: { isStatic: !0 }, children: /* @__PURE__ */ t(
66
66
  "div",
67
67
  {
68
68
  "data-slot": "accordion-item",
69
69
  "data-state": "open",
70
- className: n(v({ variant: f }), e),
71
- ...u,
72
- children: o
70
+ className: i(v({ variant: f }), o),
71
+ ...g,
72
+ children: r
73
73
  }
74
74
  ) }) : /* @__PURE__ */ t(l.Provider, { value: { isStatic: !1 }, children: /* @__PURE__ */ t(
75
- c.Item,
75
+ n.Item,
76
76
  {
77
77
  ref: p,
78
78
  "data-slot": "accordion-item",
79
- value: i,
79
+ value: d,
80
80
  disabled: A,
81
- className: n(
81
+ className: i(
82
82
  v({ variant: f }),
83
83
  a && "cursor-pointer",
84
- e
84
+ o
85
85
  ),
86
86
  onClick: a ? (C) => {
87
87
  var b;
@@ -90,51 +90,59 @@ const v = g("relative w-full transition-colors", {
90
90
  );
91
91
  s && !s.contains(C.target) && s.click();
92
92
  } : void 0,
93
- ...u,
94
- children: o
93
+ ...g,
94
+ children: r
95
95
  }
96
96
  ) });
97
- }, z = ({
98
- className: e,
99
- children: o,
97
+ }, R = ({
98
+ className: o,
99
+ children: r,
100
100
  ...a
101
101
  }) => {
102
- const { variant: r } = m(), { isStatic: i } = k();
103
- return i ? /* @__PURE__ */ t("div", { className: "flex", ...a, children: /* @__PURE__ */ t(
102
+ const { variant: e } = m(), { isStatic: d } = k();
103
+ return d ? /* @__PURE__ */ t("div", { className: "flex", ...a, children: /* @__PURE__ */ t(
104
104
  "div",
105
105
  {
106
- className: n(
107
- x({ variant: r }),
106
+ className: i(
107
+ x({ variant: e }),
108
108
  "cursor-default",
109
- e
109
+ o
110
110
  ),
111
- children: o
111
+ children: r
112
112
  }
113
- ) }) : /* @__PURE__ */ t(c.Header, { className: "flex", ...a, children: /* @__PURE__ */ w(
114
- c.Trigger,
113
+ ) }) : /* @__PURE__ */ t(n.Header, { className: "flex", ...a, children: /* @__PURE__ */ w(
114
+ n.Trigger,
115
115
  {
116
116
  "data-slot": "accordion-trigger",
117
- className: n(x({ variant: r }), e),
117
+ className: i(x({ variant: e }), o),
118
118
  children: [
119
- o,
120
- /* @__PURE__ */ t(N, { className: "size-comp-accordion-ico-size-md shrink-0 text-comp-select-icon-brand-def transition-transform duration-300 group-data-[disabled]:text-icon-dark-tertiary" })
119
+ r,
120
+ /* @__PURE__ */ t(
121
+ N,
122
+ {
123
+ className: i(
124
+ "shrink-0 text-comp-select-icon-brand-def transition-transform duration-300 group-data-[disabled]:text-icon-dark-tertiary",
125
+ e === "branded" ? "size-comp-accordion-branded-ico-size-md" : "size-comp-accordion-default-ico-size-md"
126
+ )
127
+ }
128
+ )
121
129
  ]
122
130
  }
123
131
  ) });
124
132
  }, H = ({
125
- className: e,
126
- children: o,
133
+ className: o,
134
+ children: r,
127
135
  ...a
128
136
  }) => {
129
- const { variant: r } = m(), { isStatic: i } = k();
130
- return i ? /* @__PURE__ */ t("div", { "data-slot": "accordion-content", ...a, children: /* @__PURE__ */ t(
137
+ const { variant: e } = m(), { isStatic: d } = k();
138
+ return d ? /* @__PURE__ */ t("div", { "data-slot": "accordion-content", ...a, children: /* @__PURE__ */ t(
131
139
  "div",
132
140
  {
133
- className: n(h({ variant: r }), e),
134
- children: o
141
+ className: i(h({ variant: e }), o),
142
+ children: r
135
143
  }
136
144
  ) }) : /* @__PURE__ */ t(
137
- c.Content,
145
+ n.Content,
138
146
  {
139
147
  "data-slot": "accordion-content",
140
148
  className: "overflow-hidden data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
@@ -142,18 +150,18 @@ const v = g("relative w-full transition-colors", {
142
150
  children: /* @__PURE__ */ t(
143
151
  "div",
144
152
  {
145
- className: n(h({ variant: r }), e),
146
- children: o
153
+ className: i(h({ variant: e }), o),
154
+ children: r
147
155
  }
148
156
  )
149
157
  }
150
158
  );
151
159
  };
152
160
  export {
153
- j as Accordion,
161
+ P as Accordion,
154
162
  H as AccordionContent,
155
- z as AccordionHeader,
156
- R as AccordionItem,
163
+ R as AccordionHeader,
164
+ j as AccordionItem,
157
165
  h as accordionContentInnerVariants,
158
166
  v as accordionItemVariants,
159
167
  x as accordionTriggerVariants
@@ -1 +1 @@
1
- {"version":3,"file":"Accordion.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Accordion/Accordion.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAc3D,OAAO,EACL,SAAS,EAKV,MAAM,aAAa,CAAA;AAEpB,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,SAAS,CAuEhC,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,SAAS,CAAC,CAAA;AAEvC,eAAO,MAAM,OAAO,EAAE,KAsDrB,CAAA;AAED,eAAO,MAAM,MAAM,EAAE,KAmEpB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAiCtB,CAAA;AAoVD,eAAO,MAAM,QAAQ,EAAE,KAetB,CAAA;AAED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AAA;AAED,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CAAC,eAAe,CAyEtD,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"Button.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.stories.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAW3D,OAAO,EAAE,MAAM,EAAoB,MAAM,UAAU,CAAA;AAoBnD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAqF7B,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAA;AAEpC,eAAO,MAAM,OAAO,EAAE,KAarB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAetB,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,KAe7B,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAoCtB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KAgBvB,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,KAyCzB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAkDtB,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,KAmF/B,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,KA8D1B,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,KAgB5B,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAgB3B,CAAA;AAaD,eAAO,MAAM,gBAAgB,EAAE,KAmL9B,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,KAgC/B,CAAA"}
1
+ {"version":3,"file":"Button.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.stories.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAW3D,OAAO,EAAE,MAAM,EAAoB,MAAM,UAAU,CAAA;AAoBnD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAqF7B,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAA;AAEpC,eAAO,MAAM,OAAO,EAAE,KAarB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAetB,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,KAe7B,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAoCtB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KAgBvB,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,KAyCzB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAkDtB,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,KAmF/B,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,KA8D1B,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,KAgB5B,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAgB3B,CAAA;AAcD,eAAO,MAAM,gBAAgB,EAAE,KAmL9B,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,KAgC/B,CAAA"}
@@ -0,0 +1,63 @@
1
+ import { FlexProps } from '../Flex/Flex';
2
+ import * as React from 'react';
3
+ declare const cardVariants: (props?: ({
4
+ variant?: "default" | "market" | "checkout" | null | undefined;
5
+ gap?: "none" | "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "3xs" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | "10xl" | null | undefined;
6
+ gapX?: "none" | "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "3xs" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | "10xl" | null | undefined;
7
+ gapY?: "none" | "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "3xs" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | "10xl" | null | undefined;
8
+ p?: "none" | "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "3xs" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | "10xl" | null | undefined;
9
+ px?: "none" | "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "3xs" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | "10xl" | null | undefined;
10
+ py?: "none" | "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "3xs" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | "10xl" | null | undefined;
11
+ pt?: "none" | "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "3xs" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | "10xl" | null | undefined;
12
+ pr?: "none" | "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "3xs" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | "10xl" | null | undefined;
13
+ pb?: "none" | "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "3xs" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | "10xl" | null | undefined;
14
+ pl?: "none" | "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "3xs" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | "10xl" | null | undefined;
15
+ m?: "none" | "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "3xs" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | "10xl" | null | undefined;
16
+ mx?: "none" | "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "3xs" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | "10xl" | null | undefined;
17
+ my?: "none" | "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "3xs" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | "10xl" | null | undefined;
18
+ mt?: "none" | "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "3xs" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | "10xl" | null | undefined;
19
+ mr?: "none" | "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "3xs" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | "10xl" | null | undefined;
20
+ mb?: "none" | "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "3xs" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | "10xl" | null | undefined;
21
+ ml?: "none" | "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "3xs" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | "10xl" | null | undefined;
22
+ direction?: "row" | "column" | "row-reverse" | "column-reverse" | null | undefined;
23
+ wrap?: "wrap" | "nowrap" | "wrap-reverse" | null | undefined;
24
+ justify?: "end" | "start" | "center" | "stretch" | "between" | "around" | "evenly" | null | undefined;
25
+ align?: "end" | "start" | "center" | "baseline" | "stretch" | null | undefined;
26
+ flex?: 1 | "none" | "auto" | "initial" | null | undefined;
27
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
28
+ /**
29
+ * Props for the Card component.
30
+ *
31
+ * Extends `FlexProps` so the card surface exposes the same layout API as
32
+ * `Flex` (direction, alignment, gap, padding, margin, polymorphic
33
+ * `component`). Adds a visual `variant` for the Figma-defined card styles
34
+ * and an `asChild` escape hatch for polymorphic rendering via Radix Slot.
35
+ */
36
+ export interface CardProps extends FlexProps, Omit<React.HTMLAttributes<HTMLElement>, 'color'> {
37
+ /**
38
+ * Visual style variant.
39
+ *
40
+ * - `default` — primary card layout used across the app (Múza-IN). Smaller width with vertical padding.
41
+ * - `market` — wider container used for Múza Market account cards.
42
+ * - `checkout` — checkout-flow card with the same radius family as `default` but a distinct stroke/fill.
43
+ *
44
+ * @default 'default'
45
+ */
46
+ variant?: 'default' | 'market' | 'checkout';
47
+ /**
48
+ * Renders the single child as the root element via Radix `Slot`, merging
49
+ * Card's props, styles, ref, and event handlers onto it. Use for
50
+ * polymorphic rendering — e.g. an `<a>` link wrapper, a `<button>` for a
51
+ * clickable card, or a router `Link`. Takes precedence over `component`.
52
+ *
53
+ * @default false
54
+ * @example
55
+ * <Card asChild>
56
+ * <a href="/account">Open account</a>
57
+ * </Card>
58
+ */
59
+ asChild?: boolean;
60
+ }
61
+ declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLElement>>;
62
+ export { Card, cardVariants };
63
+ //# sourceMappingURL=Card.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../src/components/Card/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAK9B,OAAO,EACL,KAAK,SAAS,EAGf,MAAM,cAAc,CAAA;AAErB,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;8EAiBhB,CAAA;AAEF;;;;;;;GAOG;AACH,MAAM,WAAW,SACf,SAAQ,SAAS,EACf,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAClD;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,UAAU,CAAA;IAC3C;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,QAAA,MAAM,IAAI,+EA+CT,CAAA;AAGD,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,CAAA"}
@@ -0,0 +1,67 @@
1
+ import * as r from "react";
2
+ import { Slot as g } from "@radix-ui/react-slot";
3
+ import { cva as x } from "class-variance-authority";
4
+ import { getSpacingVariants as y } from "../../utils/spacing.js";
5
+ import { flexLayoutDefaults as V, flexLayoutVariants as C } from "../Flex/Flex.js";
6
+ import { cn as z } from "../../utils/cn.js";
7
+ const L = x("flex border border-solid", {
8
+ variants: {
9
+ ...C,
10
+ variant: {
11
+ default: "rounded-comp-card-default-radius border-comp-card-muzain-stroke bg-comp-card-muzain-bg px-comp-card-default-p-hor py-comp-card-default-p-ver",
12
+ market: "rounded-comp-card-account-radius border-comp-card-account-stroke bg-comp-card-account-fill px-comp-card-account-p-hor py-comp-card-account-p-ver-def",
13
+ checkout: "rounded-comp-card-checkout-radius border-comp-card-checkout-stroke bg-comp-card-checkout-fill px-comp-card-checkout-p-hor py-comp-card-checkout-p-ver"
14
+ }
15
+ },
16
+ defaultVariants: {
17
+ ...V,
18
+ direction: "column",
19
+ variant: "default"
20
+ }
21
+ }), N = r.forwardRef(
22
+ ({
23
+ className: a,
24
+ style: c,
25
+ variant: o,
26
+ direction: t,
27
+ wrap: e,
28
+ justify: d,
29
+ align: p,
30
+ flex: m,
31
+ gap: u,
32
+ padding: n,
33
+ margin: i,
34
+ component: s = "div",
35
+ asChild: f = !1,
36
+ children: l,
37
+ ...k
38
+ }, b) => {
39
+ const h = f ? g : s, v = y({ gap: u, padding: n, margin: i });
40
+ return r.createElement(
41
+ h,
42
+ {
43
+ ref: b,
44
+ className: z(
45
+ L({
46
+ variant: o,
47
+ direction: t,
48
+ wrap: e,
49
+ justify: d,
50
+ align: p,
51
+ flex: m,
52
+ ...v
53
+ }),
54
+ a
55
+ ),
56
+ style: c,
57
+ ...k
58
+ },
59
+ l
60
+ );
61
+ }
62
+ );
63
+ N.displayName = "Card";
64
+ export {
65
+ N as Card,
66
+ L as cardVariants
67
+ };
@@ -0,0 +1,13 @@
1
+ import { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { Card } from './Card';
3
+ declare const meta: Meta<typeof Card>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Card>;
6
+ export declare const Default: Story;
7
+ export declare const Market: Story;
8
+ export declare const Checkout: Story;
9
+ export declare const AllVariants: Story;
10
+ export declare const FlexLayout: Story;
11
+ export declare const AsChild: Story;
12
+ export declare const SemanticElement: Story;
13
+ //# sourceMappingURL=Card.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Card.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Card/Card.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAG3D,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAE7B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,IAAI,CA4E3B,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AA4BlC,eAAO,MAAM,OAAO,EAAE,KAgBrB,CAAA;AAED,eAAO,MAAM,MAAM,EAAE,KAgBpB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAgBtB,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,KAsBzB,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAuBxB,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,KAuBrB,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,KAgB7B,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './Card';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Card/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA"}
@@ -0,0 +1,140 @@
1
+ import { default as useEmblaCarousel, UseEmblaCarouselType } from 'embla-carousel-react';
2
+ import { ButtonArrow } from '../ButtonArrow';
3
+ import * as React from 'react';
4
+ /**
5
+ * Imperative Embla API exposed via the {@link CarouselProps.setApi} callback.
6
+ * Use it to scroll programmatically, query state, or subscribe to events.
7
+ *
8
+ * @example
9
+ * const [api, setApi] = React.useState<CarouselApi>()
10
+ *
11
+ * React.useEffect(() => {
12
+ * if (!api) return
13
+ * api.on('select', () => console.log(api.selectedScrollSnap()))
14
+ * }, [api])
15
+ *
16
+ * <Carousel setApi={setApi}>...</Carousel>
17
+ */
18
+ export type CarouselApi = UseEmblaCarouselType[1];
19
+ type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;
20
+ /**
21
+ * Embla options object forwarded as the first argument to `useEmblaCarousel`.
22
+ * Controls behaviour like looping, alignment, drag thresholds, etc.
23
+ *
24
+ * @see https://www.embla-carousel.com/api/options/
25
+ */
26
+ export type CarouselOptions = UseCarouselParameters[0];
27
+ /**
28
+ * Embla plugin array forwarded as the second argument to `useEmblaCarousel`.
29
+ * Use it to add autoplay, classnames, fade, and other Embla plugins.
30
+ *
31
+ * @see https://www.embla-carousel.com/api/plugins/
32
+ */
33
+ export type CarouselPlugin = UseCarouselParameters[1];
34
+ /**
35
+ * Props for the Carousel root component. Sets orientation, configures the
36
+ * underlying Embla instance, and exposes its API.
37
+ */
38
+ export interface CarouselProps {
39
+ /**
40
+ * Embla configuration forwarded as the first argument to `useEmblaCarousel`.
41
+ * Controls behaviour like looping, alignment, or drag thresholds.
42
+ *
43
+ * @example
44
+ * <Carousel opts={{ loop: true, align: 'start' }}>...</Carousel>
45
+ *
46
+ * @see CarouselOptions
47
+ */
48
+ opts?: CarouselOptions;
49
+ /**
50
+ * Embla plugins forwarded as the second argument to `useEmblaCarousel`
51
+ * (autoplay, classnames, fade, etc.).
52
+ *
53
+ * @example
54
+ * import Autoplay from 'embla-carousel-autoplay'
55
+ * <Carousel plugins={[Autoplay({ delay: 4000 })]}>...</Carousel>
56
+ *
57
+ * @see CarouselPlugin
58
+ */
59
+ plugins?: CarouselPlugin;
60
+ /**
61
+ * Controls scroll direction. Also drives keyboard navigation
62
+ * (←/→ for horizontal, ↑/↓ for vertical).
63
+ *
64
+ * @default 'horizontal'
65
+ */
66
+ orientation?: 'horizontal' | 'vertical';
67
+ /**
68
+ * Receives the Embla API once initialised. Use it for imperative control —
69
+ * scroll to a specific slide, subscribe to events, or query state.
70
+ *
71
+ * @example
72
+ * const [api, setApi] = React.useState<CarouselApi>()
73
+ * <Carousel setApi={setApi}>...</Carousel>
74
+ *
75
+ * @see CarouselApi
76
+ */
77
+ setApi?: (api: CarouselApi) => void;
78
+ }
79
+ declare const Carousel: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & CarouselProps & React.RefAttributes<HTMLDivElement>>;
80
+ /**
81
+ * Props for the CarouselContent component. Wraps the scrolling track and
82
+ * lays out its `CarouselItem` children along the active orientation axis.
83
+ *
84
+ * Accepts all standard `<div>` attributes.
85
+ */
86
+ export type CarouselContentProps = React.HTMLAttributes<HTMLDivElement>;
87
+ declare const CarouselContent: React.ForwardRefExoticComponent<CarouselContentProps & React.RefAttributes<HTMLDivElement>>;
88
+ /**
89
+ * Props for the CarouselItem component. Renders a single slide that occupies
90
+ * the full track by default — override `basis-*` to show multiple slides at once.
91
+ *
92
+ * Accepts all standard `<div>` attributes.
93
+ *
94
+ * @example
95
+ * // Show three slides per view
96
+ * <CarouselItem className="basis-1/3">...</CarouselItem>
97
+ */
98
+ export type CarouselItemProps = React.HTMLAttributes<HTMLDivElement>;
99
+ declare const CarouselItem: React.ForwardRefExoticComponent<CarouselItemProps & React.RefAttributes<HTMLDivElement>>;
100
+ /**
101
+ * Props shared by `CarouselPrevious` and `CarouselNext`. Forwards all
102
+ * `ButtonArrow` props (`size`, `disabled`, `onClick`, `className`, etc.)
103
+ * except `direction` (set internally based on which button is rendered) and
104
+ * `aria-label` (use {@link CarouselNavButtonProps.ariaLabel} instead).
105
+ *
106
+ * @see ButtonArrowProps
107
+ */
108
+ export interface CarouselNavButtonProps extends Omit<React.ComponentPropsWithoutRef<typeof ButtonArrow>, 'direction' | 'aria-label'> {
109
+ /**
110
+ * Accessible label for the nav button. Falls back to the translation value
111
+ * (`carousel.previousAriaLabel` / `carousel.nextAriaLabel`).
112
+ */
113
+ ariaLabel?: string;
114
+ }
115
+ declare const CarouselPrevious: React.ForwardRefExoticComponent<CarouselNavButtonProps & React.RefAttributes<HTMLButtonElement>>;
116
+ declare const CarouselNext: React.ForwardRefExoticComponent<CarouselNavButtonProps & React.RefAttributes<HTMLButtonElement>>;
117
+ /**
118
+ * Props for the CarouselDots component. Renders pagination indicators bound
119
+ * to the carousel state — clicking a dot scrolls to that slide.
120
+ *
121
+ * Backed by {@link SliderIndicatorsProps}.
122
+ */
123
+ export interface CarouselDotsProps {
124
+ /** Additional CSS classes for the indicator container. */
125
+ className?: string;
126
+ /**
127
+ * Accessible label for the indicator list. Falls back to the translation
128
+ * value (`carousel.dotsAriaLabel`).
129
+ */
130
+ ariaLabel?: string;
131
+ /**
132
+ * Base accessible label for individual dot buttons. The slide index is
133
+ * appended automatically by `SliderIndicators`. Falls back to the
134
+ * translation value (`carousel.dotAriaLabel`).
135
+ */
136
+ buttonAriaLabel?: string;
137
+ }
138
+ declare const CarouselDots: React.FC<CarouselDotsProps>;
139
+ export { Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext, CarouselDots, };
140
+ //# sourceMappingURL=Carousel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Carousel.d.ts","sourceRoot":"","sources":["../../../src/components/Carousel/Carousel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,gBAAgB,EAAE,EACvB,KAAK,oBAAoB,EAC1B,MAAM,sBAAsB,CAAA;AAG7B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAI5C;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,WAAW,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAA;AAEjD,KAAK,qBAAqB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAEhE;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG,qBAAqB,CAAC,CA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