@janbox/storefront-ui 4.0.6 → 4.0.8

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 (84) hide show
  1. package/dist/components/scroll-view.d.ts +3 -2
  2. package/dist/components/scroll-view.js +5 -3
  3. package/dist/components/virtualized-list.d.ts +3 -3
  4. package/dist/lib/accordion/accordion-content/accordion-content.js +1 -1
  5. package/dist/lib/button/button.js +2 -2
  6. package/dist/lib/cascader/cascader-floating-content.d.ts +1 -1
  7. package/dist/lib/cascader/cascader-floating-content.js +52 -73
  8. package/dist/lib/cascader/cascader.d.ts +1 -1
  9. package/dist/lib/cascader/cascader.js +10 -12
  10. package/dist/lib/collapse/collapse.d.ts +1 -1
  11. package/dist/lib/collapse/collapse.js +12 -4
  12. package/dist/lib/collapse/types.d.ts +3 -3
  13. package/dist/lib/count-up/README.md +22 -0
  14. package/dist/lib/count-up/count-up.d.ts +1 -1
  15. package/dist/lib/count-up/count-up.js +22 -5
  16. package/dist/lib/count-up/types.d.ts +9 -3
  17. package/dist/lib/date-picker/date-picker.js +25 -10
  18. package/dist/lib/dialog/dialog/dialog.d.ts +1 -1
  19. package/dist/lib/dialog/dialog/dialog.js +25 -28
  20. package/dist/lib/dialog/dialog-body/dialog-body.d.ts +1 -1
  21. package/dist/lib/dialog/dialog-body/dialog-body.js +10 -11
  22. package/dist/lib/dialog/dialog-body/types.d.ts +2 -3
  23. package/dist/lib/dialog/dialog-close/dialog-close.d.ts +1 -1
  24. package/dist/lib/dialog/dialog-footer/dialog-footer.js +2 -3
  25. package/dist/lib/dialog/dialog-header/dialog-header.d.ts +1 -1
  26. package/dist/lib/dialog/dialog-header/dialog-header.js +24 -27
  27. package/dist/lib/drawer/drawer/drawer.d.ts +1 -1
  28. package/dist/lib/drawer/drawer/drawer.js +39 -26
  29. package/dist/lib/drawer/drawer-close/drawer-close.d.ts +1 -1
  30. package/dist/lib/filter-panel/checkbox-filter-panel.d.ts +1 -1
  31. package/dist/lib/filter-panel/checkbox-filter-panel.js +2 -2
  32. package/dist/lib/filter-panel/filter-panel.d.ts +1 -1
  33. package/dist/lib/filter-panel/filter-panel.js +30 -15
  34. package/dist/lib/filter-panel/radio-filter-panel.d.ts +1 -1
  35. package/dist/lib/filter-panel/radio-filter-panel.js +3 -3
  36. package/dist/lib/floating/floating-close/floating-close.d.ts +1 -1
  37. package/dist/lib/floating/floating-close/floating-close.js +3 -2
  38. package/dist/lib/floating/floating-content/floating-content.d.ts +1 -1
  39. package/dist/lib/floating/floating-content/floating-content.js +8 -6
  40. package/dist/lib/form-label/form-label.d.ts +4 -3
  41. package/dist/lib/form-label/form-label.js +10 -8
  42. package/dist/lib/highlight-words/highlight-words.d.ts +1 -1
  43. package/dist/lib/highlight-words/highlight-words.js +3 -2
  44. package/dist/lib/input/input.js +1 -3
  45. package/dist/lib/lightbox/lightbox.d.ts +1 -1
  46. package/dist/lib/lightbox/lightbox.js +44 -32
  47. package/dist/lib/linear-progress/linear-progress.d.ts +1 -1
  48. package/dist/lib/linear-progress/linear-progress.js +50 -51
  49. package/dist/lib/loading/image-skeleton/image-skeleton.d.ts +1 -1
  50. package/dist/lib/loading/image-skeleton/image-skeleton.js +9 -4
  51. package/dist/lib/loading/loading-overlay/loading-overlay.d.ts +1 -1
  52. package/dist/lib/loading/loading-overlay/loading-overlay.js +2 -2
  53. package/dist/lib/menu/menu-item/menu-item.d.ts +1 -1
  54. package/dist/lib/menu/menu-item/menu-item.js +2 -2
  55. package/dist/lib/multiple-select/multiple-select.d.ts +1 -1
  56. package/dist/lib/multiple-select/multiple-select.js +38 -39
  57. package/dist/lib/notifications/notifications.d.ts +1 -1
  58. package/dist/lib/notifications/notifications.js +7 -7
  59. package/dist/lib/otp-input/otp-input.d.ts +1 -1
  60. package/dist/lib/otp-input/otp-input.js +43 -30
  61. package/dist/lib/pagination/pagination.d.ts +1 -1
  62. package/dist/lib/pagination/pagination.js +60 -54
  63. package/dist/lib/phone-input/phone-input.js +12 -11
  64. package/dist/lib/popover/popover-close/popover-close.d.ts +1 -1
  65. package/dist/lib/progress/progress.d.ts +1 -1
  66. package/dist/lib/progress/progress.js +26 -29
  67. package/dist/lib/progress/types.d.ts +5 -4
  68. package/dist/lib/select/select.js +15 -11
  69. package/dist/lib/star-rating/README.md +11 -3
  70. package/dist/lib/star-rating/star-rating.d.ts +1 -1
  71. package/dist/lib/star-rating/star-rating.js +40 -28
  72. package/dist/lib/star-rating/types.d.ts +3 -4
  73. package/dist/lib/stepper/step.js +8 -6
  74. package/dist/lib/stepper/stepper.d.ts +1 -1
  75. package/dist/lib/stepper/stepper.js +10 -9
  76. package/dist/lib/stepper/types.d.ts +2 -1
  77. package/dist/lib/swiper/swiper/swiper.js +3 -3
  78. package/dist/lib/swiper/swiper-dots-paging/swiper-dots-paging.d.ts +1 -1
  79. package/dist/lib/swiper/swiper-dots-paging/swiper-dots-paging.js +8 -7
  80. package/dist/lib/tabs/tab-indicator/tab-indicator.js +1 -1
  81. package/dist/lib/tabs/tabs/tabs.d.ts +1 -1
  82. package/dist/lib/tabs/tabs/tabs.js +1 -1
  83. package/dist/lib/time-picker/time-picker.js +16 -22
  84. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { jsx, jsxs, Fragment } from "@emotion/react/jsx-runtime";
1
+ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import { useState, useRef, useEffect } from "react";
3
3
  import { times } from "lodash-es";
4
4
  import { motion } from "motion/react";
@@ -15,8 +15,8 @@ import { SwiperSlide } from "../swiper/swiper-slide/swiper-slide.js";
15
15
  import { Floating } from "../floating/floating/floating.js";
16
16
  import { FloatingContent } from "../floating/floating-content/floating-content.js";
17
17
  import { Primitive } from "../primitive/primitive.js";
18
+ import { Stylesheet } from "../stylesheet/stylesheet.js";
18
19
  import { Image } from "../image/image.js";
19
- import { mediaQuery } from "../../theme/screens.js";
20
20
  import { FloatingClose } from "../floating/floating-close/floating-close.js";
21
21
  import { IconButton } from "../icon-button/icon-button.js";
22
22
  const LightboxIconButton = (props) => {
@@ -24,7 +24,7 @@ const LightboxIconButton = (props) => {
24
24
  IconButton,
25
25
  {
26
26
  color: "neutral",
27
- css: {
27
+ sx: {
28
28
  backgroundColor: "rgba(255, 255, 255, 0.1)",
29
29
  color: "white",
30
30
  borderRadius: "50%",
@@ -59,9 +59,9 @@ const LightboxContent = ({ slides, defaultActiveIndex = 0 }) => {
59
59
  };
60
60
  }, [mainApi]);
61
61
  return /* @__PURE__ */ jsx(Primitive, { sx: { width: "100%", height: "100%", display: "flex", flexDirection: "column" }, children: /* @__PURE__ */ jsx(
62
- "div",
62
+ Primitive,
63
63
  {
64
- css: {
64
+ sx: {
65
65
  position: "relative",
66
66
  width: "100%",
67
67
  flex: 1,
@@ -73,12 +73,12 @@ const LightboxContent = ({ slides, defaultActiveIndex = 0 }) => {
73
73
  paddingBottom: 24,
74
74
  paddingLeft: 16,
75
75
  paddingRight: 16,
76
- [mediaQuery("md")]: { paddingLeft: 32, paddingRight: 32 }
76
+ md: { paddingLeft: 32, paddingRight: 32 }
77
77
  },
78
78
  children: /* @__PURE__ */ jsxs(
79
- "div",
79
+ Primitive,
80
80
  {
81
- css: {
81
+ sx: {
82
82
  position: "relative",
83
83
  width: "100%",
84
84
  height: "100%",
@@ -86,10 +86,10 @@ const LightboxContent = ({ slides, defaultActiveIndex = 0 }) => {
86
86
  paddingBottom: 20,
87
87
  paddingLeft: 0,
88
88
  paddingRight: 0,
89
- [mediaQuery("md")]: { paddingLeft: 20, paddingRight: 20 }
89
+ md: { paddingLeft: 20, paddingRight: 20 }
90
90
  },
91
91
  children: [
92
- /* @__PURE__ */ jsx("div", { css: { width: "100%", height: "100%" }, children: /* @__PURE__ */ jsx(
92
+ /* @__PURE__ */ jsx(Primitive, { sx: { width: "100%", height: "100%" }, children: /* @__PURE__ */ jsx(
93
93
  Swiper,
94
94
  {
95
95
  options: {
@@ -102,20 +102,20 @@ const LightboxContent = ({ slides, defaultActiveIndex = 0 }) => {
102
102
  },
103
103
  onApi: setMainApi,
104
104
  slidesPerView: 1,
105
- css: { width: "100%", height: "100%" },
106
- children: times(slides.length).map((index) => /* @__PURE__ */ jsx(SwiperSlide, { children: activeIndex === index && /* @__PURE__ */ jsx(
105
+ sx: { width: "100%", height: "100%" },
106
+ children: times(slides.length).map((index) => /* @__PURE__ */ jsx(SwiperSlide, { children: activeIndex === index && /* @__PURE__ */ jsx(Stylesheet, { children: ({ css }) => /* @__PURE__ */ jsx(
107
107
  motion.div,
108
108
  {
109
- css: {
109
+ initial: { opacity: 0 },
110
+ animate: { opacity: 1 },
111
+ exit: { opacity: 0 },
112
+ className: css({
110
113
  display: "flex",
111
114
  width: "100%",
112
115
  height: "100%",
113
116
  alignItems: "center",
114
117
  justifyContent: "center"
115
- },
116
- initial: { opacity: 0 },
117
- animate: { opacity: 1 },
118
- exit: { opacity: 0 },
118
+ }),
119
119
  children: /* @__PURE__ */ jsxs("div", { ref: contentElementRef, children: [
120
120
  (activeSlide == null ? void 0 : activeSlide.source.type) === "image" && /* @__PURE__ */ jsx(
121
121
  TransformWrapper,
@@ -139,7 +139,7 @@ const LightboxContent = ({ slides, defaultActiveIndex = 0 }) => {
139
139
  ) })
140
140
  }
141
141
  ),
142
- (activeSlide == null ? void 0 : activeSlide.source.type) === "video" && /* @__PURE__ */ jsx("div", { css: { aspectRatio: "16/9", width: "100%" }, children: /* @__PURE__ */ jsx(
142
+ (activeSlide == null ? void 0 : activeSlide.source.type) === "video" && /* @__PURE__ */ jsx(Primitive, { sx: { aspectRatio: "16/9", width: "100%" }, children: /* @__PURE__ */ jsx(
143
143
  ReactPlayer,
144
144
  {
145
145
  light: activeSlide.source.thumbnail,
@@ -151,17 +151,29 @@ const LightboxContent = ({ slides, defaultActiveIndex = 0 }) => {
151
151
  ) })
152
152
  ] })
153
153
  }
154
- ) }, index))
154
+ ) }) }, index))
155
155
  }
156
156
  ) }),
157
- slides.length > 1 && /* @__PURE__ */ jsxs("div", { css: { display: "none", [mediaQuery("md")]: { display: "contents" } }, children: [
158
- /* @__PURE__ */ jsx("div", { css: { position: "absolute", left: 0, top: "50%", transform: "translateY(-50%) translateX(-50%)" }, children: /* @__PURE__ */ jsx(LightboxIconButton, { size: "sm", onClick: handlePrevious, icon: { source: ArrowLeftIcon } }) }),
159
- /* @__PURE__ */ jsx("div", { css: { position: "absolute", right: 0, top: "50%", transform: "translateY(-50%) translateX(50%)" }, children: /* @__PURE__ */ jsx(LightboxIconButton, { size: "sm", onClick: handleNext, icon: { source: ArrowRightIcon } }) })
157
+ slides.length > 1 && /* @__PURE__ */ jsxs(Primitive, { sx: { display: "none", md: { display: "contents" } }, children: [
158
+ /* @__PURE__ */ jsx(
159
+ Primitive,
160
+ {
161
+ sx: { position: "absolute", left: 0, top: "50%", transform: "translateY(-50%) translateX(-50%)" },
162
+ children: /* @__PURE__ */ jsx(LightboxIconButton, { size: "sm", onClick: handlePrevious, icon: { source: ArrowLeftIcon } })
163
+ }
164
+ ),
165
+ /* @__PURE__ */ jsx(
166
+ Primitive,
167
+ {
168
+ sx: { position: "absolute", right: 0, top: "50%", transform: "translateY(-50%) translateX(50%)" },
169
+ children: /* @__PURE__ */ jsx(LightboxIconButton, { size: "sm", onClick: handleNext, icon: { source: ArrowRightIcon } })
170
+ }
171
+ )
160
172
  ] }),
161
173
  /* @__PURE__ */ jsx(
162
- "div",
174
+ Primitive,
163
175
  {
164
- css: {
176
+ sx: {
165
177
  position: "absolute",
166
178
  left: -4,
167
179
  top: 0,
@@ -169,7 +181,7 @@ const LightboxContent = ({ slides, defaultActiveIndex = 0 }) => {
169
181
  display: "flex",
170
182
  alignItems: "center",
171
183
  gap: 8,
172
- [mediaQuery("md")]: { left: -10 }
184
+ md: { left: -10 }
173
185
  },
174
186
  children: slides.length > 0 && /* @__PURE__ */ jsxs("div", { children: [
175
187
  activeIndex + 1,
@@ -179,9 +191,9 @@ const LightboxContent = ({ slides, defaultActiveIndex = 0 }) => {
179
191
  }
180
192
  ),
181
193
  /* @__PURE__ */ jsxs(
182
- "div",
194
+ Primitive,
183
195
  {
184
- css: {
196
+ sx: {
185
197
  position: "absolute",
186
198
  right: -4,
187
199
  top: 0,
@@ -189,10 +201,10 @@ const LightboxContent = ({ slides, defaultActiveIndex = 0 }) => {
189
201
  display: "flex",
190
202
  alignItems: "center",
191
203
  gap: 8,
192
- [mediaQuery("md")]: { right: -10 }
204
+ md: { right: -10 }
193
205
  },
194
206
  children: [
195
- slides.length > 1 && /* @__PURE__ */ jsxs("div", { css: { display: "contents", [mediaQuery("md")]: { display: "none" } }, children: [
207
+ slides.length > 1 && /* @__PURE__ */ jsxs(Primitive, { sx: { display: "contents", md: { display: "none" } }, children: [
196
208
  /* @__PURE__ */ jsx(LightboxIconButton, { size: "sm", onClick: handlePrevious, icon: { source: ArrowLeftIcon } }),
197
209
  /* @__PURE__ */ jsx(LightboxIconButton, { size: "sm", onClick: handleNext, icon: { source: ArrowRightIcon } })
198
210
  ] }),
@@ -225,9 +237,9 @@ const LightboxContent = ({ slides, defaultActiveIndex = 0 }) => {
225
237
  }
226
238
  ),
227
239
  (activeSlide == null ? void 0 : activeSlide.title) && /* @__PURE__ */ jsx(
228
- "div",
240
+ Primitive,
229
241
  {
230
- css: {
242
+ sx: {
231
243
  position: "absolute",
232
244
  bottom: 0,
233
245
  left: "50%",
@@ -271,7 +283,7 @@ const Lightbox = ({ slides, defaultActiveIndex, ...props }) => {
271
283
  color: "white"
272
284
  }
273
285
  },
274
- css: { width: "100%", height: "100%" },
286
+ sx: { width: "100%", height: "100%" },
275
287
  children: /* @__PURE__ */ jsx(LightboxContent, { slides, defaultActiveIndex })
276
288
  }
277
289
  )
@@ -1,2 +1,2 @@
1
1
  import { LinearProgressProps } from './types';
2
- export declare const LinearProgress: (_props: LinearProgressProps) => import("@emotion/react/jsx-runtime").JSX.Element;
2
+ export declare const LinearProgress: (_props: LinearProgressProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,68 +1,67 @@
1
- import { jsxs, jsx } from "@emotion/react/jsx-runtime";
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { isNil, isNumber } from "lodash-es";
3
3
  import { motion } from "motion/react";
4
4
  import { getLinearProgressProps } from "./helpers.js";
5
- import { mediaQuery } from "../../theme/screens.js";
6
- import "../../theme/palette.js";
7
5
  import { getColorShadesByVariant } from "../../utils/index.js";
6
+ import { Primitive } from "../primitive/primitive.js";
8
7
  const LinearProgress = (_props) => {
9
8
  const { size, color, sm, md, lg, value, variant: _variant, ...props } = getLinearProgressProps(_props);
10
9
  const palette = getColorShadesByVariant(color);
11
10
  const fallbackVariant = isNil(value) ? "indeterminate" : "determinate";
12
11
  const variant = _variant ?? fallbackVariant;
13
- const rootInterpolation = [
12
+ return /* @__PURE__ */ jsxs(
13
+ Primitive,
14
14
  {
15
- position: "relative",
16
- width: "100%",
17
- overflow: "hidden",
18
- backgroundColor: palette.light,
19
- [`& > *`]: {
20
- position: "absolute",
21
- height: "100%",
22
- backgroundColor: palette.main
23
- }
24
- },
25
- createStyle({ size }),
26
- {
27
- [mediaQuery("sm")]: createStyle(sm),
28
- [mediaQuery("md")]: createStyle(md),
29
- [mediaQuery("lg")]: createStyle(lg)
30
- }
31
- ];
32
- return /* @__PURE__ */ jsxs("div", { css: rootInterpolation, ...props, children: [
33
- variant === "indeterminate" && /* @__PURE__ */ jsx(
34
- motion.div,
35
- {
36
- initial: { left: "-25%", width: "25%" },
37
- animate: { left: "100%", width: "50%" },
38
- transition: {
39
- repeat: Infinity,
40
- ease: "linear",
41
- duration: 1.5
42
- }
43
- }
44
- ),
45
- variant === "determinate" && /* @__PURE__ */ jsx(
46
- motion.div,
47
- {
48
- initial: {
49
- width: `${value ?? 0}%`
15
+ sx: {
16
+ position: "relative",
17
+ width: "100%",
18
+ overflow: "hidden",
19
+ backgroundColor: palette.light,
20
+ "*": {
21
+ position: "absolute",
22
+ height: "100%",
23
+ backgroundColor: palette.main
50
24
  },
51
- animate: { width: `${value ?? 0}%` }
52
- }
53
- )
54
- ] });
25
+ ...createStyle({ size }),
26
+ sm: createStyle(sm),
27
+ md: createStyle(md),
28
+ lg: createStyle(lg)
29
+ },
30
+ ...props,
31
+ children: [
32
+ variant === "indeterminate" && /* @__PURE__ */ jsx(
33
+ motion.div,
34
+ {
35
+ initial: { left: "-25%", width: "25%" },
36
+ animate: { left: "100%", width: "50%" },
37
+ transition: {
38
+ repeat: Infinity,
39
+ ease: "linear",
40
+ duration: 1.5
41
+ }
42
+ }
43
+ ),
44
+ variant === "determinate" && /* @__PURE__ */ jsx(
45
+ motion.div,
46
+ {
47
+ initial: {
48
+ width: `${value ?? 0}%`
49
+ },
50
+ animate: { width: `${value ?? 0}%` }
51
+ }
52
+ )
53
+ ]
54
+ }
55
+ );
55
56
  };
56
57
  const createStyle = ({ size } = {}) => {
57
- return [
58
- {
59
- height: size,
60
- borderRadius: isNumber(size) ? size / 2 : void 0,
61
- [`& > *`]: {
62
- borderRadius: isNumber(size) ? size / 2 : void 0
63
- }
58
+ return {
59
+ height: size,
60
+ borderRadius: isNumber(size) ? size / 2 : void 0,
61
+ [`& > *`]: {
62
+ borderRadius: isNumber(size) ? size / 2 : void 0
64
63
  }
65
- ];
64
+ };
66
65
  };
67
66
  export {
68
67
  LinearProgress
@@ -1,2 +1,2 @@
1
1
  import { ImageSkeletonProps } from './types';
2
- export declare const ImageSkeleton: (props: ImageSkeletonProps) => import("@emotion/react/jsx-runtime").JSX.Element;
2
+ export declare const ImageSkeleton: (props: ImageSkeletonProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,9 @@
1
- import { jsx } from "@emotion/react/jsx-runtime";
1
+ import { jsx } from "react/jsx-runtime";
2
2
  import { animatePulseStyle } from "../../../constants/emotion.js";
3
3
  import "lodash-es";
4
4
  import { getColorVar } from "../../../theme/palette.js";
5
5
  import { Primitive } from "../../primitive/primitive.js";
6
+ import { Stylesheet } from "../../stylesheet/stylesheet.js";
6
7
  const ImageSkeleton = (props) => {
7
8
  return /* @__PURE__ */ jsx(
8
9
  Primitive,
@@ -19,17 +20,21 @@ const ImageSkeleton = (props) => {
19
20
  backgroundColor: getColorVar("neutral.200"),
20
21
  ...props.sx
21
22
  },
22
- children: /* @__PURE__ */ jsx(
23
+ children: /* @__PURE__ */ jsx(Stylesheet, { children: ({ css }) => /* @__PURE__ */ jsx(
23
24
  "svg",
24
25
  {
25
- css: { width: "25%", height: "25%", color: getColorVar("neutral.400") },
26
26
  "aria-hidden": "true",
27
27
  xmlns: "http://www.w3.org/2000/svg",
28
28
  fill: "currentColor",
29
29
  viewBox: "0 0 20 18",
30
+ className: css({
31
+ width: "25%",
32
+ height: "25%",
33
+ color: getColorVar("neutral.400")
34
+ }),
30
35
  children: /* @__PURE__ */ jsx("path", { d: "M18 0H2a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2Zm-5.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Zm4.376 10.481A1 1 0 0 1 16 15H4a1 1 0 0 1-.895-1.447l3.5-7A1 1 0 0 1 7.468 6a.965.965 0 0 1 .9.5l2.775 4.757 1.546-1.887a1 1 0 0 1 1.618.1l2.541 4a1 1 0 0 1 .028 1.011Z" })
31
36
  }
32
- )
37
+ ) })
33
38
  }
34
39
  );
35
40
  };
@@ -1,2 +1,2 @@
1
1
  import { LoadingOverlayProps } from './types';
2
- export declare const LoadingOverlay: ({ isLoading, iconProps, color, style, size, children, ...props }: LoadingOverlayProps) => import("@emotion/react/jsx-runtime").JSX.Element;
2
+ export declare const LoadingOverlay: ({ isLoading, iconProps, color, style, size, children, ...props }: LoadingOverlayProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { jsxs, jsx } from "@emotion/react/jsx-runtime";
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { SvgLoader } from "../../../components/svg-loader.js";
3
3
  import { animateSpinStyle } from "../../../constants/emotion.js";
4
4
  import LoadingIcon from "../../../assets/svg/loading-waiting.svg.js";
@@ -45,7 +45,7 @@ const LoadingOverlay = ({
45
45
  cursor: "progress",
46
46
  ...iconProps == null ? void 0 : iconProps.sx
47
47
  },
48
- children: /* @__PURE__ */ jsx(SvgLoader, { source: LoadingIcon, width: size, height: size, css: animateSpinStyle, style: { color: main } })
48
+ children: /* @__PURE__ */ jsx(SvgLoader, { source: LoadingIcon, width: size, height: size, sx: animateSpinStyle, style: { color: main } })
49
49
  }
50
50
  )
51
51
  ]
@@ -1,2 +1,2 @@
1
1
  import { MenuItemProps } from './types';
2
- export declare const MenuItem: ({ ref, ..._props }: MenuItemProps) => import("@emotion/react/jsx-runtime").JSX.Element;
2
+ export declare const MenuItem: ({ ref, ..._props }: MenuItemProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { jsx } from "@emotion/react/jsx-runtime";
1
+ import { jsx } from "react/jsx-runtime";
2
2
  import { getMenuItemProps } from "./helpers.js";
3
3
  import { HTMLDatasetAttributes, Booleanish } from "../../../constants/index.js";
4
4
  import { Button } from "../../button/button.js";
@@ -17,7 +17,7 @@ const MenuItem = ({ ref, ..._props }) => {
17
17
  Button,
18
18
  {
19
19
  ...props,
20
- css: {
20
+ sx: {
21
21
  justifyContent: "start",
22
22
  textAlign: "left",
23
23
  width: "100%"
@@ -1,2 +1,2 @@
1
1
  import { MultipleSelectProps } from './types';
2
- export declare const MultipleSelect: <O extends object = object>({ ref, ...props }: MultipleSelectProps<O>) => import("@emotion/react/jsx-runtime").JSX.Element;
2
+ export declare const MultipleSelect: <O extends object = object>({ ref, ...props }: MultipleSelectProps<O>) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { jsxs, jsx } from "@emotion/react/jsx-runtime";
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { useRef, useId, useCallback, useMemo, useEffect } from "react";
3
3
  import { get, isNil, isElement, trimStart } from "lodash-es";
4
4
  import { getMultipleSelectProps } from "./helpers.js";
@@ -159,7 +159,7 @@ const MultipleSelect = ({ ref, ...props }) => {
159
159
  width: "100%"
160
160
  }
161
161
  },
162
- children: /* @__PURE__ */ jsx("div", { css: { flex: 1, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children: isNil(rowData) ? /* @__PURE__ */ jsx(TextSkeleton, { css: { width: "100%" } }) : getOptionLabel(rowData) })
162
+ children: /* @__PURE__ */ jsx(Primitive, { sx: { flex: 1, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children: isNil(rowData) ? /* @__PURE__ */ jsx(TextSkeleton, { sx: { width: "100%" } }) : getOptionLabel(rowData) })
163
163
  }
164
164
  );
165
165
  };
@@ -245,7 +245,7 @@ const MultipleSelect = ({ ref, ...props }) => {
245
245
  source: ArrowDownIcon,
246
246
  width: 20,
247
247
  height: 20,
248
- css: {
248
+ sx: {
249
249
  transition: "transform 150ms",
250
250
  ...isOpen ? { transform: "rotate(-180deg)" } : {}
251
251
  }
@@ -254,24 +254,22 @@ const MultipleSelect = ({ ref, ...props }) => {
254
254
  ...rest,
255
255
  ref,
256
256
  children: /* @__PURE__ */ jsx(
257
- "div",
257
+ Primitive,
258
258
  {
259
- css: [
260
- {
261
- flex: 1,
262
- textAlign: "left",
263
- overflow: "hidden",
264
- textOverflow: "ellipsis",
265
- whiteSpace: "nowrap",
266
- paddingTop: 4,
267
- paddingBottom: 4
268
- },
269
- getTextCss(rest == null ? void 0 : rest.size)
270
- ],
259
+ sx: {
260
+ flex: 1,
261
+ textAlign: "left",
262
+ overflow: "hidden",
263
+ textOverflow: "ellipsis",
264
+ whiteSpace: "nowrap",
265
+ paddingTop: 4,
266
+ paddingBottom: 4,
267
+ ...getTextCss(rest == null ? void 0 : rest.size)
268
+ },
271
269
  children: selectedValueMap.size > 0 ? /* @__PURE__ */ jsxs(
272
- "div",
270
+ Primitive,
273
271
  {
274
- css: {
272
+ sx: {
275
273
  display: "flex",
276
274
  gap: 4,
277
275
  ...displayCount > 1 ? { flexWrap: "wrap" } : {}
@@ -281,42 +279,44 @@ const MultipleSelect = ({ ref, ...props }) => {
281
279
  const rowValue = getOptionValue(selectedOption);
282
280
  const rowLabel = getTagLabel(selectedOption) ?? getOptionLabel(selectedOption);
283
281
  return /* @__PURE__ */ jsx(
284
- "div",
282
+ Primitive,
285
283
  {
286
- css: {
284
+ sx: {
287
285
  display: "flex",
288
286
  alignItems: "center",
289
287
  gap: 8,
290
288
  overflow: "hidden",
291
289
  borderRadius: 8,
292
290
  backgroundColor: getColorVar("neutral.100"),
293
- paddingLeft: 8,
294
- paddingRight: 8,
295
- paddingTop: 4,
296
- paddingBottom: 4,
291
+ paddingInline: 8,
292
+ paddingBlock: 4,
297
293
  fontSize: "0.75rem",
298
294
  lineHeight: "1rem"
299
295
  },
300
- children: /* @__PURE__ */ jsx("div", { css: { flex: 1, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children: isElement(rowLabel) ? rowLabel : /* @__PURE__ */ jsx("span", { children: rowLabel }) })
296
+ children: /* @__PURE__ */ jsx(
297
+ Primitive,
298
+ {
299
+ sx: { flex: 1, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" },
300
+ children: isElement(rowLabel) ? rowLabel : /* @__PURE__ */ jsx("span", { children: rowLabel })
301
+ }
302
+ )
301
303
  },
302
304
  rowValue.toString()
303
305
  );
304
306
  }),
305
307
  displayCount < selectedValueMap.size && /* @__PURE__ */ jsx(
306
- "div",
308
+ Primitive,
307
309
  {
308
- css: {
310
+ sx: {
309
311
  borderRadius: 8,
310
312
  backgroundColor: getColorVar("neutral.100"),
311
- paddingLeft: 8,
312
- paddingRight: 8,
313
- paddingTop: 4,
314
- paddingBottom: 4,
313
+ paddingInline: 8,
314
+ paddingBlock: 4,
315
315
  fontSize: "0.75rem",
316
316
  lineHeight: "1rem",
317
317
  flexShrink: 0
318
318
  },
319
- children: /* @__PURE__ */ jsxs("span", { css: { fontWeight: 500 }, children: [
319
+ children: /* @__PURE__ */ jsxs(Primitive, { as: "span", sx: { fontWeight: 500 }, children: [
320
320
  "+",
321
321
  selectedValueMap.size - displayCount
322
322
  ] })
@@ -324,17 +324,16 @@ const MultipleSelect = ({ ref, ...props }) => {
324
324
  )
325
325
  ]
326
326
  }
327
- ) : /* @__PURE__ */ jsx("span", { css: { color: getColorVar("neutral.400"), display: "block" }, children: placeholder })
327
+ ) : /* @__PURE__ */ jsx(Primitive, { as: "span", sx: { color: getColorVar("neutral.400"), display: "block" }, children: placeholder })
328
328
  }
329
329
  )
330
330
  }
331
331
  ) }),
332
332
  /* @__PURE__ */ jsx(FloatingContent, { children: /* @__PURE__ */ jsxs(
333
- "div",
333
+ Primitive,
334
334
  {
335
- css: {
336
- paddingTop: 8,
337
- paddingBottom: 8,
335
+ sx: {
336
+ paddingBlock: 8,
338
337
  border: "1px solid",
339
338
  borderColor: getColorVar("border.default"),
340
339
  borderRadius: 8,
@@ -344,7 +343,7 @@ const MultipleSelect = ({ ref, ...props }) => {
344
343
  backgroundColor: getColorVar("surface.default")
345
344
  },
346
345
  children: [
347
- searchable && /* @__PURE__ */ jsx("div", { css: { paddingLeft: 8, paddingRight: 8, paddingBottom: 12, position: "relative" }, children: /* @__PURE__ */ jsx(
346
+ searchable && /* @__PURE__ */ jsx(Primitive, { sx: { paddingInline: 8, paddingBottom: 12, position: "relative" }, children: /* @__PURE__ */ jsx(
348
347
  Input,
349
348
  {
350
349
  size: rest.size,
@@ -361,7 +360,7 @@ const MultipleSelect = ({ ref, ...props }) => {
361
360
  VirtualizedList,
362
361
  {
363
362
  ...listProps,
364
- css: { paddingLeft: 4, paddingRight: 4 },
363
+ sx: { paddingInline: 4 },
365
364
  options: {
366
365
  count: displayOptions.length,
367
366
  estimateSize,
@@ -1 +1 @@
1
- export declare const Notifications: () => import("@emotion/react/jsx-runtime").JSX.Element;
1
+ export declare const Notifications: () => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { jsx, jsxs, Fragment } from "@emotion/react/jsx-runtime";
1
+ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import { useSyncExternalStore, useRef, useCallback, useEffect } from "react";
3
3
  import { FloatingPortal } from "@floating-ui/react";
4
4
  import { isNil } from "lodash-es";
@@ -9,9 +9,9 @@ import { FLOATING_Z_INDEX } from "../../theme/index.js";
9
9
  import CloseIcon from "../../assets/svg/times-close-delete.svg.js";
10
10
  import { usePortalContainer } from "../../theme/provider.js";
11
11
  import { Primitive } from "../primitive/primitive.js";
12
+ import { Stylesheet } from "../stylesheet/stylesheet.js";
12
13
  import { getTypographyVar } from "../../theme/typography.js";
13
14
  import { IconButton } from "../icon-button/icon-button.js";
14
- import { mediaQuery } from "../../theme/screens.js";
15
15
  const Notifications = () => {
16
16
  const { entries } = useSyncExternalStore(
17
17
  notificationStore.subscribe,
@@ -99,7 +99,7 @@ const Notification = ({ notification }) => {
99
99
  }
100
100
  });
101
101
  }, [startTimer, progressControls]);
102
- return /* @__PURE__ */ jsxs(
102
+ return /* @__PURE__ */ jsx(Stylesheet, { children: ({ css }) => /* @__PURE__ */ jsxs(
103
103
  motion.div,
104
104
  {
105
105
  layout: true,
@@ -107,7 +107,7 @@ const Notification = ({ notification }) => {
107
107
  animate: { opacity: 1, x: 0 },
108
108
  exit: { opacity: 0, x: 300 },
109
109
  transition: { duration: 0.3 },
110
- css: {
110
+ className: css({
111
111
  backgroundColor: light,
112
112
  outlineColor: main,
113
113
  width: 400,
@@ -124,11 +124,11 @@ const Notification = ({ notification }) => {
124
124
  padding: 12,
125
125
  overflow: "hidden",
126
126
  position: "relative",
127
- [mediaQuery("md")]: {
127
+ md: {
128
128
  padding: 16,
129
129
  width: 440
130
130
  }
131
- },
131
+ }),
132
132
  drag: "x",
133
133
  dragConstraints: { left: 0, right: 0 },
134
134
  onMouseEnter: handleMouseEnter,
@@ -227,7 +227,7 @@ const Notification = ({ notification }) => {
227
227
  )
228
228
  ]
229
229
  }
230
- );
230
+ ) });
231
231
  };
232
232
  export {
233
233
  Notifications
@@ -1,2 +1,2 @@
1
1
  import { OtpInputProps } from './types';
2
- export declare const OtpInput: ({ length, onFullfilled, onChange, disabled, autoFocus, isLoading, defaultValue, value, error, size, sm, md, lg, }: OtpInputProps) => import("@emotion/react/jsx-runtime").JSX.Element;
2
+ export declare const OtpInput: ({ length, onFullfilled, onChange, disabled, autoFocus, isLoading, defaultValue, value, error, size, sm, md, lg, }: OtpInputProps) => import("react/jsx-runtime").JSX.Element;