@beryl-ui/react 2.2.3 → 2.2.4

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.
package/dist/index.d.mts CHANGED
@@ -24,7 +24,7 @@ interface BoxProps extends ComponentProps<typeof BoxContainer> {
24
24
  as?: ElementType;
25
25
  children?: ReactNode;
26
26
  }
27
- declare const Box: react.ForwardRefExoticComponent<Omit<BoxProps, "ref"> & react.RefAttributes<HTMLElement>>;
27
+ declare const Box: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
28
28
 
29
29
  interface ButtonContainerProps {
30
30
  variant?: "primary" | "secondary" | "tertiary";
package/dist/index.d.ts CHANGED
@@ -24,7 +24,7 @@ interface BoxProps extends ComponentProps<typeof BoxContainer> {
24
24
  as?: ElementType;
25
25
  children?: ReactNode;
26
26
  }
27
- declare const Box: react.ForwardRefExoticComponent<Omit<BoxProps, "ref"> & react.RefAttributes<HTMLElement>>;
27
+ declare const Box: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
28
28
 
29
29
  interface ButtonContainerProps {
30
30
  variant?: "primary" | "secondary" | "tertiary";
package/dist/index.js CHANGED
@@ -120,9 +120,6 @@ function Avatar2(props) {
120
120
  }
121
121
  Avatar2.displayName = "Avatar";
122
122
 
123
- // src/components/Box/index.tsx
124
- var import_react = require("react");
125
-
126
123
  // src/components/Box/styles.ts
127
124
  var import_styled_components2 = require("styled-components");
128
125
  var BoxContainer = import_styled_components2.styled.div`
@@ -133,14 +130,11 @@ var BoxContainer = import_styled_components2.styled.div`
133
130
  `;
134
131
 
135
132
  // src/components/Box/index.tsx
136
- var import_jsx_runtime2 = require("react/jsx-runtime");
137
- var Box = (0, import_react.forwardRef)((props, ref) => {
138
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(BoxContainer, __spreadValues({ ref }, props));
139
- });
133
+ var Box = BoxContainer;
140
134
  Box.displayName = "Box";
141
135
 
142
136
  // src/components/Button/index.tsx
143
- var import_react2 = require("react");
137
+ var import_react = require("react");
144
138
 
145
139
  // src/components/Button/styles.ts
146
140
  var import_styled_components3 = require("styled-components");
@@ -236,10 +230,10 @@ var ButtonContainer = import_styled_components3.styled.button`
236
230
  `;
237
231
 
238
232
  // src/components/Button/index.tsx
239
- var import_jsx_runtime3 = require("react/jsx-runtime");
240
- var Button = (0, import_react2.forwardRef)(
233
+ var import_jsx_runtime2 = require("react/jsx-runtime");
234
+ var Button = (0, import_react.forwardRef)(
241
235
  (props, ref) => {
242
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ButtonContainer, __spreadValues({ ref }, props));
236
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ButtonContainer, __spreadValues({ ref }, props));
243
237
  }
244
238
  );
245
239
  Button.displayName = "Button";
@@ -297,14 +291,14 @@ var CheckboxIndicator = (0, import_styled_components4.styled)(Checkbox.Indicator
297
291
  `;
298
292
 
299
293
  // src/components/Checkbox/index.tsx
300
- var import_jsx_runtime4 = require("react/jsx-runtime");
294
+ var import_jsx_runtime3 = require("react/jsx-runtime");
301
295
  function Checkbox2(props) {
302
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(CheckboxContainer, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(CheckboxIndicator, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_phosphor_react2.Check, { weight: "bold" }) }) }));
296
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(CheckboxContainer, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(CheckboxIndicator, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_phosphor_react2.Check, { weight: "bold" }) }) }));
303
297
  }
304
298
  Checkbox2.displayName = "Checkbox";
305
299
 
306
300
  // src/components/Heading/index.tsx
307
- var import_react3 = require("react");
301
+ var import_react2 = require("react");
308
302
 
309
303
  // src/components/Heading/styles.ts
310
304
  var import_styled_components5 = require("styled-components");
@@ -344,10 +338,10 @@ var HeadingContainer = import_styled_components5.styled.h2`
344
338
  `;
345
339
 
346
340
  // src/components/Heading/index.tsx
347
- var import_jsx_runtime5 = require("react/jsx-runtime");
348
- var Heading = (0, import_react3.forwardRef)(
341
+ var import_jsx_runtime4 = require("react/jsx-runtime");
342
+ var Heading = (0, import_react2.forwardRef)(
349
343
  (props, ref) => {
350
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(HeadingContainer, __spreadValues({ ref }, props));
344
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(HeadingContainer, __spreadValues({ ref }, props));
351
345
  }
352
346
  );
353
347
  Heading.displayName = "Heading";
@@ -356,7 +350,7 @@ Heading.displayName = "Heading";
356
350
  var import_styled_components7 = require("styled-components");
357
351
 
358
352
  // src/components/Text/index.tsx
359
- var import_react4 = require("react");
353
+ var import_react3 = require("react");
360
354
 
361
355
  // src/components/Text/styles.ts
362
356
  var import_styled_components6 = require("styled-components");
@@ -370,10 +364,10 @@ var TextContainer = import_styled_components6.styled.p`
370
364
  `;
371
365
 
372
366
  // src/components/Text/index.tsx
373
- var import_jsx_runtime6 = require("react/jsx-runtime");
374
- var Text = (0, import_react4.forwardRef)(
367
+ var import_jsx_runtime5 = require("react/jsx-runtime");
368
+ var Text = (0, import_react3.forwardRef)(
375
369
  (props, ref) => {
376
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(TextContainer, __spreadValues({ ref }, props));
370
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(TextContainer, __spreadValues({ ref }, props));
377
371
  }
378
372
  );
379
373
  Text.displayName = "Text";
@@ -400,24 +394,24 @@ var Step = import_styled_components7.styled.div`
400
394
  `;
401
395
 
402
396
  // src/components/MultiStep/index.tsx
403
- var import_jsx_runtime7 = require("react/jsx-runtime");
397
+ var import_jsx_runtime6 = require("react/jsx-runtime");
404
398
  function MultiStep({ size, currentStep = 1 }) {
405
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(MultiStepContainer, { children: [
406
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Label, { children: [
399
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(MultiStepContainer, { children: [
400
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(Label, { children: [
407
401
  "Step ",
408
402
  currentStep,
409
403
  " of ",
410
404
  size
411
405
  ] }),
412
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Steps, { size, children: Array.from({ length: size }, (_, i) => i + 1).map((step) => {
413
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Step, { $active: step <= currentStep }, step);
406
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Steps, { size, children: Array.from({ length: size }, (_, i) => i + 1).map((step) => {
407
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Step, { $active: step <= currentStep }, step);
414
408
  }) })
415
409
  ] });
416
410
  }
417
411
  MultiStep.displayName = "MultiStep";
418
412
 
419
413
  // src/components/TextArea/index.tsx
420
- var import_react5 = require("react");
414
+ var import_react4 = require("react");
421
415
 
422
416
  // src/components/TextArea/styles.ts
423
417
  var import_styled_components8 = require("styled-components");
@@ -450,14 +444,14 @@ var TextAreaContainer = import_styled_components8.styled.textarea`
450
444
  `;
451
445
 
452
446
  // src/components/TextArea/index.tsx
453
- var import_jsx_runtime8 = require("react/jsx-runtime");
454
- var TextArea = (0, import_react5.forwardRef)((props, ref) => {
455
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(TextAreaContainer, __spreadValues({ ref }, props));
447
+ var import_jsx_runtime7 = require("react/jsx-runtime");
448
+ var TextArea = (0, import_react4.forwardRef)((props, ref) => {
449
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(TextAreaContainer, __spreadValues({ ref }, props));
456
450
  });
457
451
  TextArea.displayName = "TextArea";
458
452
 
459
453
  // src/components/TextInput/index.tsx
460
- var import_react6 = require("react");
454
+ var import_react5 = require("react");
461
455
 
462
456
  // src/components/TextInput/styles.ts
463
457
  var import_styled_components9 = require("styled-components");
@@ -515,13 +509,13 @@ var Input = import_styled_components9.styled.input`
515
509
  `;
516
510
 
517
511
  // src/components/TextInput/index.tsx
518
- var import_jsx_runtime9 = require("react/jsx-runtime");
519
- var TextInput = (0, import_react6.forwardRef)(
512
+ var import_jsx_runtime8 = require("react/jsx-runtime");
513
+ var TextInput = (0, import_react5.forwardRef)(
520
514
  (_a, ref) => {
521
515
  var _b = _a, { prefix } = _b, props = __objRest(_b, ["prefix"]);
522
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(TextInputContainer, { children: [
523
- !!prefix && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Prefix, { children: prefix }),
524
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Input, __spreadValues({ ref }, props))
516
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(TextInputContainer, { children: [
517
+ !!prefix && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Prefix, { children: prefix }),
518
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Input, __spreadValues({ ref }, props))
525
519
  ] });
526
520
  }
527
521
  );
@@ -530,7 +524,7 @@ TextInput.displayName = "TextInput";
530
524
  // src/components/Toast/index.tsx
531
525
  var RadixToast = __toESM(require("@radix-ui/react-toast"));
532
526
  var import_phosphor_react3 = require("phosphor-react");
533
- var import_react7 = require("react");
527
+ var import_react6 = require("react");
534
528
 
535
529
  // src/components/Toast/styles.ts
536
530
  var Toast = __toESM(require("@radix-ui/react-toast"));
@@ -620,10 +614,10 @@ var ToastClose = (0, import_styled_components10.styled)(Toast.Close)`
620
614
  `;
621
615
 
622
616
  // src/components/Toast/index.tsx
623
- var import_jsx_runtime10 = require("react/jsx-runtime");
624
- var ToastContext = (0, import_react7.createContext)({});
617
+ var import_jsx_runtime9 = require("react/jsx-runtime");
618
+ var ToastContext = (0, import_react6.createContext)({});
625
619
  function ToastProvider({ children }) {
626
- const [toasts, setToasts] = (0, import_react7.useState)([]);
620
+ const [toasts, setToasts] = (0, import_react6.useState)([]);
627
621
  function showToast({ title, description }) {
628
622
  const newToast = {
629
623
  id: (/* @__PURE__ */ new Date()).getTime().toString(),
@@ -637,27 +631,27 @@ function ToastProvider({ children }) {
637
631
  setToasts((prev) => prev.filter((toast) => toast.id !== toastId));
638
632
  }
639
633
  }
640
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(ToastContext.Provider, { value: { showToast }, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(RadixToast.Provider, { swipeDirection: "right", children: [
634
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(ToastContext.Provider, { value: { showToast }, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(RadixToast.Provider, { swipeDirection: "right", children: [
641
635
  children,
642
- toasts.map((toast) => /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
636
+ toasts.map((toast) => /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
643
637
  ToastRoot,
644
638
  {
645
639
  onOpenChange: (open) => handleOpenChange(open, toast.id),
646
640
  children: [
647
- /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { children: [
648
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(ToastTitle, { children: toast.title }),
649
- toast.description && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(ToastDescription, { children: toast.description })
641
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { children: [
642
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(ToastTitle, { children: toast.title }),
643
+ toast.description && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(ToastDescription, { children: toast.description })
650
644
  ] }),
651
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(ToastClose, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_phosphor_react3.X, { weight: "light", size: 20 }) })
645
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(ToastClose, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_phosphor_react3.X, { weight: "light", size: 20 }) })
652
646
  ]
653
647
  },
654
648
  toast.id
655
649
  )),
656
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(ToastViewport, {})
650
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(ToastViewport, {})
657
651
  ] }) });
658
652
  }
659
653
  var useToast = () => {
660
- const context = (0, import_react7.useContext)(ToastContext);
654
+ const context = (0, import_react6.useContext)(ToastContext);
661
655
  if (!context) {
662
656
  throw new Error("useToast must be used within a ToastProvider");
663
657
  }
@@ -686,7 +680,7 @@ var TooltipArrow = (0, import_styled_components11.styled)(Tooltip.Arrow)`
686
680
  `;
687
681
 
688
682
  // src/components/Tooltip/index.tsx
689
- var import_jsx_runtime11 = require("react/jsx-runtime");
683
+ var import_jsx_runtime10 = require("react/jsx-runtime");
690
684
  function Tooltip2(_a) {
691
685
  var _b = _a, {
692
686
  children,
@@ -697,11 +691,11 @@ function Tooltip2(_a) {
697
691
  "content",
698
692
  "contentProps"
699
693
  ]);
700
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(RadixTooltip.Root, __spreadProps(__spreadValues({}, props), { children: [
701
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(RadixTooltip.Trigger, { asChild: true, children }),
702
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(RadixTooltip.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(TooltipContent, __spreadProps(__spreadValues({ sideOffset: 5 }, contentProps), { children: [
694
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(RadixTooltip.Root, __spreadProps(__spreadValues({}, props), { children: [
695
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(RadixTooltip.Trigger, { asChild: true, children }),
696
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(RadixTooltip.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(TooltipContent, __spreadProps(__spreadValues({ sideOffset: 5 }, contentProps), { children: [
703
697
  content,
704
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(TooltipArrow, {})
698
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(TooltipArrow, {})
705
699
  ] })) })
706
700
  ] }));
707
701
  }
package/dist/index.mjs CHANGED
@@ -74,9 +74,6 @@ function Avatar2(props) {
74
74
  }
75
75
  Avatar2.displayName = "Avatar";
76
76
 
77
- // src/components/Box/index.tsx
78
- import { forwardRef } from "react";
79
-
80
77
  // src/components/Box/styles.ts
81
78
  import { styled as styled2 } from "styled-components";
82
79
  var BoxContainer = styled2.div`
@@ -87,14 +84,11 @@ var BoxContainer = styled2.div`
87
84
  `;
88
85
 
89
86
  // src/components/Box/index.tsx
90
- import { jsx as jsx2 } from "react/jsx-runtime";
91
- var Box = forwardRef((props, ref) => {
92
- return /* @__PURE__ */ jsx2(BoxContainer, __spreadValues({ ref }, props));
93
- });
87
+ var Box = BoxContainer;
94
88
  Box.displayName = "Box";
95
89
 
96
90
  // src/components/Button/index.tsx
97
- import { forwardRef as forwardRef2 } from "react";
91
+ import { forwardRef } from "react";
98
92
 
99
93
  // src/components/Button/styles.ts
100
94
  import { css, styled as styled3 } from "styled-components";
@@ -190,10 +184,10 @@ var ButtonContainer = styled3.button`
190
184
  `;
191
185
 
192
186
  // src/components/Button/index.tsx
193
- import { jsx as jsx3 } from "react/jsx-runtime";
194
- var Button = forwardRef2(
187
+ import { jsx as jsx2 } from "react/jsx-runtime";
188
+ var Button = forwardRef(
195
189
  (props, ref) => {
196
- return /* @__PURE__ */ jsx3(ButtonContainer, __spreadValues({ ref }, props));
190
+ return /* @__PURE__ */ jsx2(ButtonContainer, __spreadValues({ ref }, props));
197
191
  }
198
192
  );
199
193
  Button.displayName = "Button";
@@ -251,14 +245,14 @@ var CheckboxIndicator = styled4(Checkbox.Indicator)`
251
245
  `;
252
246
 
253
247
  // src/components/Checkbox/index.tsx
254
- import { jsx as jsx4 } from "react/jsx-runtime";
248
+ import { jsx as jsx3 } from "react/jsx-runtime";
255
249
  function Checkbox2(props) {
256
- return /* @__PURE__ */ jsx4(CheckboxContainer, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ jsx4(CheckboxIndicator, { asChild: true, children: /* @__PURE__ */ jsx4(Check, { weight: "bold" }) }) }));
250
+ return /* @__PURE__ */ jsx3(CheckboxContainer, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ jsx3(CheckboxIndicator, { asChild: true, children: /* @__PURE__ */ jsx3(Check, { weight: "bold" }) }) }));
257
251
  }
258
252
  Checkbox2.displayName = "Checkbox";
259
253
 
260
254
  // src/components/Heading/index.tsx
261
- import { forwardRef as forwardRef3 } from "react";
255
+ import { forwardRef as forwardRef2 } from "react";
262
256
 
263
257
  // src/components/Heading/styles.ts
264
258
  import { css as css2, styled as styled5 } from "styled-components";
@@ -298,10 +292,10 @@ var HeadingContainer = styled5.h2`
298
292
  `;
299
293
 
300
294
  // src/components/Heading/index.tsx
301
- import { jsx as jsx5 } from "react/jsx-runtime";
302
- var Heading = forwardRef3(
295
+ import { jsx as jsx4 } from "react/jsx-runtime";
296
+ var Heading = forwardRef2(
303
297
  (props, ref) => {
304
- return /* @__PURE__ */ jsx5(HeadingContainer, __spreadValues({ ref }, props));
298
+ return /* @__PURE__ */ jsx4(HeadingContainer, __spreadValues({ ref }, props));
305
299
  }
306
300
  );
307
301
  Heading.displayName = "Heading";
@@ -310,7 +304,7 @@ Heading.displayName = "Heading";
310
304
  import { styled as styled7 } from "styled-components";
311
305
 
312
306
  // src/components/Text/index.tsx
313
- import { forwardRef as forwardRef4 } from "react";
307
+ import { forwardRef as forwardRef3 } from "react";
314
308
 
315
309
  // src/components/Text/styles.ts
316
310
  import { styled as styled6 } from "styled-components";
@@ -324,10 +318,10 @@ var TextContainer = styled6.p`
324
318
  `;
325
319
 
326
320
  // src/components/Text/index.tsx
327
- import { jsx as jsx6 } from "react/jsx-runtime";
328
- var Text = forwardRef4(
321
+ import { jsx as jsx5 } from "react/jsx-runtime";
322
+ var Text = forwardRef3(
329
323
  (props, ref) => {
330
- return /* @__PURE__ */ jsx6(TextContainer, __spreadValues({ ref }, props));
324
+ return /* @__PURE__ */ jsx5(TextContainer, __spreadValues({ ref }, props));
331
325
  }
332
326
  );
333
327
  Text.displayName = "Text";
@@ -354,7 +348,7 @@ var Step = styled7.div`
354
348
  `;
355
349
 
356
350
  // src/components/MultiStep/index.tsx
357
- import { jsx as jsx7, jsxs as jsxs2 } from "react/jsx-runtime";
351
+ import { jsx as jsx6, jsxs as jsxs2 } from "react/jsx-runtime";
358
352
  function MultiStep({ size, currentStep = 1 }) {
359
353
  return /* @__PURE__ */ jsxs2(MultiStepContainer, { children: [
360
354
  /* @__PURE__ */ jsxs2(Label, { children: [
@@ -363,15 +357,15 @@ function MultiStep({ size, currentStep = 1 }) {
363
357
  " of ",
364
358
  size
365
359
  ] }),
366
- /* @__PURE__ */ jsx7(Steps, { size, children: Array.from({ length: size }, (_, i) => i + 1).map((step) => {
367
- return /* @__PURE__ */ jsx7(Step, { $active: step <= currentStep }, step);
360
+ /* @__PURE__ */ jsx6(Steps, { size, children: Array.from({ length: size }, (_, i) => i + 1).map((step) => {
361
+ return /* @__PURE__ */ jsx6(Step, { $active: step <= currentStep }, step);
368
362
  }) })
369
363
  ] });
370
364
  }
371
365
  MultiStep.displayName = "MultiStep";
372
366
 
373
367
  // src/components/TextArea/index.tsx
374
- import { forwardRef as forwardRef5 } from "react";
368
+ import { forwardRef as forwardRef4 } from "react";
375
369
 
376
370
  // src/components/TextArea/styles.ts
377
371
  import { styled as styled8 } from "styled-components";
@@ -404,14 +398,14 @@ var TextAreaContainer = styled8.textarea`
404
398
  `;
405
399
 
406
400
  // src/components/TextArea/index.tsx
407
- import { jsx as jsx8 } from "react/jsx-runtime";
408
- var TextArea = forwardRef5((props, ref) => {
409
- return /* @__PURE__ */ jsx8(TextAreaContainer, __spreadValues({ ref }, props));
401
+ import { jsx as jsx7 } from "react/jsx-runtime";
402
+ var TextArea = forwardRef4((props, ref) => {
403
+ return /* @__PURE__ */ jsx7(TextAreaContainer, __spreadValues({ ref }, props));
410
404
  });
411
405
  TextArea.displayName = "TextArea";
412
406
 
413
407
  // src/components/TextInput/index.tsx
414
- import { forwardRef as forwardRef6 } from "react";
408
+ import { forwardRef as forwardRef5 } from "react";
415
409
 
416
410
  // src/components/TextInput/styles.ts
417
411
  import { styled as styled9 } from "styled-components";
@@ -469,13 +463,13 @@ var Input = styled9.input`
469
463
  `;
470
464
 
471
465
  // src/components/TextInput/index.tsx
472
- import { jsx as jsx9, jsxs as jsxs3 } from "react/jsx-runtime";
473
- var TextInput = forwardRef6(
466
+ import { jsx as jsx8, jsxs as jsxs3 } from "react/jsx-runtime";
467
+ var TextInput = forwardRef5(
474
468
  (_a, ref) => {
475
469
  var _b = _a, { prefix } = _b, props = __objRest(_b, ["prefix"]);
476
470
  return /* @__PURE__ */ jsxs3(TextInputContainer, { children: [
477
- !!prefix && /* @__PURE__ */ jsx9(Prefix, { children: prefix }),
478
- /* @__PURE__ */ jsx9(Input, __spreadValues({ ref }, props))
471
+ !!prefix && /* @__PURE__ */ jsx8(Prefix, { children: prefix }),
472
+ /* @__PURE__ */ jsx8(Input, __spreadValues({ ref }, props))
479
473
  ] });
480
474
  }
481
475
  );
@@ -574,7 +568,7 @@ var ToastClose = styled10(Toast.Close)`
574
568
  `;
575
569
 
576
570
  // src/components/Toast/index.tsx
577
- import { jsx as jsx10, jsxs as jsxs4 } from "react/jsx-runtime";
571
+ import { jsx as jsx9, jsxs as jsxs4 } from "react/jsx-runtime";
578
572
  var ToastContext = createContext({});
579
573
  function ToastProvider({ children }) {
580
574
  const [toasts, setToasts] = useState([]);
@@ -591,7 +585,7 @@ function ToastProvider({ children }) {
591
585
  setToasts((prev) => prev.filter((toast) => toast.id !== toastId));
592
586
  }
593
587
  }
594
- return /* @__PURE__ */ jsx10(ToastContext.Provider, { value: { showToast }, children: /* @__PURE__ */ jsxs4(RadixToast.Provider, { swipeDirection: "right", children: [
588
+ return /* @__PURE__ */ jsx9(ToastContext.Provider, { value: { showToast }, children: /* @__PURE__ */ jsxs4(RadixToast.Provider, { swipeDirection: "right", children: [
595
589
  children,
596
590
  toasts.map((toast) => /* @__PURE__ */ jsxs4(
597
591
  ToastRoot,
@@ -599,15 +593,15 @@ function ToastProvider({ children }) {
599
593
  onOpenChange: (open) => handleOpenChange(open, toast.id),
600
594
  children: [
601
595
  /* @__PURE__ */ jsxs4("div", { children: [
602
- /* @__PURE__ */ jsx10(ToastTitle, { children: toast.title }),
603
- toast.description && /* @__PURE__ */ jsx10(ToastDescription, { children: toast.description })
596
+ /* @__PURE__ */ jsx9(ToastTitle, { children: toast.title }),
597
+ toast.description && /* @__PURE__ */ jsx9(ToastDescription, { children: toast.description })
604
598
  ] }),
605
- /* @__PURE__ */ jsx10(ToastClose, { asChild: true, children: /* @__PURE__ */ jsx10(X, { weight: "light", size: 20 }) })
599
+ /* @__PURE__ */ jsx9(ToastClose, { asChild: true, children: /* @__PURE__ */ jsx9(X, { weight: "light", size: 20 }) })
606
600
  ]
607
601
  },
608
602
  toast.id
609
603
  )),
610
- /* @__PURE__ */ jsx10(ToastViewport, {})
604
+ /* @__PURE__ */ jsx9(ToastViewport, {})
611
605
  ] }) });
612
606
  }
613
607
  var useToast = () => {
@@ -640,7 +634,7 @@ var TooltipArrow = styled11(Tooltip.Arrow)`
640
634
  `;
641
635
 
642
636
  // src/components/Tooltip/index.tsx
643
- import { jsx as jsx11, jsxs as jsxs5 } from "react/jsx-runtime";
637
+ import { jsx as jsx10, jsxs as jsxs5 } from "react/jsx-runtime";
644
638
  function Tooltip2(_a) {
645
639
  var _b = _a, {
646
640
  children,
@@ -652,10 +646,10 @@ function Tooltip2(_a) {
652
646
  "contentProps"
653
647
  ]);
654
648
  return /* @__PURE__ */ jsxs5(RadixTooltip.Root, __spreadProps(__spreadValues({}, props), { children: [
655
- /* @__PURE__ */ jsx11(RadixTooltip.Trigger, { asChild: true, children }),
656
- /* @__PURE__ */ jsx11(RadixTooltip.Portal, { children: /* @__PURE__ */ jsxs5(TooltipContent, __spreadProps(__spreadValues({ sideOffset: 5 }, contentProps), { children: [
649
+ /* @__PURE__ */ jsx10(RadixTooltip.Trigger, { asChild: true, children }),
650
+ /* @__PURE__ */ jsx10(RadixTooltip.Portal, { children: /* @__PURE__ */ jsxs5(TooltipContent, __spreadProps(__spreadValues({ sideOffset: 5 }, contentProps), { children: [
657
651
  content,
658
- /* @__PURE__ */ jsx11(TooltipArrow, {})
652
+ /* @__PURE__ */ jsx10(TooltipArrow, {})
659
653
  ] })) })
660
654
  ] }));
661
655
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beryl-ui/react",
3
- "version": "2.2.3",
3
+ "version": "2.2.4",
4
4
  "description": "React components for the beryl-ui Design System.",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.js",