@sikka/hawa 0.24.0 → 0.24.2-next

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.
@@ -2,7 +2,7 @@ import * as class_variance_authority_types from 'class-variance-authority/types'
2
2
  import * as React from 'react';
3
3
  import * as ToastPrimitives from '@radix-ui/react-toast';
4
4
  import { VariantProps } from 'class-variance-authority';
5
- import { S as SeverityType, D as DirectionType } from './commonTypes-CKtkuNFH.mjs';
5
+ import { D as DirectionType } from './commonTypes-CKtkuNFH.mjs';
6
6
 
7
7
  declare const ToastProvider: React.FC<ToastPrimitives.ToastProviderProps>;
8
8
  declare const ToastViewport: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastViewportProps & React.RefAttributes<HTMLOListElement>, "ref"> & React.RefAttributes<HTMLOListElement>>;
@@ -10,13 +10,16 @@ declare const Toast: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastP
10
10
  variant?: "default" | "destructive" | null | undefined;
11
11
  severity?: "info" | "warning" | "error" | "success" | "none" | null | undefined;
12
12
  } & class_variance_authority_types.ClassProp) | undefined) => string> & {
13
- severity?: SeverityType | undefined;
14
13
  direction?: DirectionType | undefined;
15
14
  } & React.RefAttributes<HTMLLIElement>>;
16
15
  declare const ToastAction: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
17
16
  declare const ToastClose: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastCloseProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
18
- declare const ToastTitle: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastTitleProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
19
- declare const ToastDescription: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastDescriptionProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
17
+ declare const ToastTitle: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastTitleProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
18
+ size: "default" | "sm";
19
+ } & React.RefAttributes<HTMLDivElement>>;
20
+ declare const ToastDescription: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastDescriptionProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
21
+ size: "default" | "sm";
22
+ } & React.RefAttributes<HTMLDivElement>>;
20
23
  type ToastProps = React.ComponentPropsWithoutRef<typeof Toast>;
21
24
  type ToastActionElement = React.ReactElement<typeof ToastAction>;
22
25
 
@@ -2,7 +2,7 @@ import * as class_variance_authority_types from 'class-variance-authority/types'
2
2
  import * as React from 'react';
3
3
  import * as ToastPrimitives from '@radix-ui/react-toast';
4
4
  import { VariantProps } from 'class-variance-authority';
5
- import { S as SeverityType, D as DirectionType } from './commonTypes-CKtkuNFH.js';
5
+ import { D as DirectionType } from './commonTypes-CKtkuNFH.js';
6
6
 
7
7
  declare const ToastProvider: React.FC<ToastPrimitives.ToastProviderProps>;
8
8
  declare const ToastViewport: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastViewportProps & React.RefAttributes<HTMLOListElement>, "ref"> & React.RefAttributes<HTMLOListElement>>;
@@ -10,13 +10,16 @@ declare const Toast: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastP
10
10
  variant?: "default" | "destructive" | null | undefined;
11
11
  severity?: "info" | "warning" | "error" | "success" | "none" | null | undefined;
12
12
  } & class_variance_authority_types.ClassProp) | undefined) => string> & {
13
- severity?: SeverityType | undefined;
14
13
  direction?: DirectionType | undefined;
15
14
  } & React.RefAttributes<HTMLLIElement>>;
16
15
  declare const ToastAction: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
17
16
  declare const ToastClose: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastCloseProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
18
- declare const ToastTitle: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastTitleProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
19
- declare const ToastDescription: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastDescriptionProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
17
+ declare const ToastTitle: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastTitleProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
18
+ size: "default" | "sm";
19
+ } & React.RefAttributes<HTMLDivElement>>;
20
+ declare const ToastDescription: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastDescriptionProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
21
+ size: "default" | "sm";
22
+ } & React.RefAttributes<HTMLDivElement>>;
20
23
  type ToastProps = React.ComponentPropsWithoutRef<typeof Toast>;
21
24
  type ToastActionElement = React.ReactElement<typeof ToastAction>;
22
25
 
@@ -137,7 +137,7 @@ var Loading = ({
137
137
  color,
138
138
  ...props
139
139
  }) => {
140
- let sizeStyles = {
140
+ let sizeStyles2 = {
141
141
  button: "hawa-h-4 hawa-w-4",
142
142
  xs: "hawa-h-1 hawa-w-1",
143
143
  sm: "hawa-h-6 hawa-w-6",
@@ -161,7 +161,7 @@ var Loading = ({
161
161
  {
162
162
  className: cn(
163
163
  "hawa-animate-bounce hawa-rounded-full hawa-delay-100 hawa-repeat-infinite",
164
- size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
164
+ size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles2[size],
165
165
  animationStyles[design.split("-")[1]],
166
166
  color ? color : "hawa-bg-primary"
167
167
  )
@@ -172,7 +172,7 @@ var Loading = ({
172
172
  {
173
173
  className: cn(
174
174
  "hawa-animate-bounce hawa-rounded-full hawa-delay-200 hawa-repeat-infinite",
175
- size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
175
+ size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles2[size],
176
176
  animationStyles[design.split("-")[1]],
177
177
  color ? color : "hawa-bg-primary"
178
178
  )
@@ -183,7 +183,7 @@ var Loading = ({
183
183
  {
184
184
  className: cn(
185
185
  "hawa-animate-bounce hawa-rounded-full hawa-delay-300 hawa-repeat-infinite",
186
- size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
186
+ size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles2[size],
187
187
  animationStyles[design.split("-")[1]],
188
188
  color ? color : "hawa-bg-primary"
189
189
  )
@@ -194,7 +194,7 @@ var Loading = ({
194
194
  return /* @__PURE__ */ import_react.default.createElement(
195
195
  "svg",
196
196
  {
197
- className: cn("squircle-container", sizeStyles[size]),
197
+ className: cn("squircle-container", sizeStyles2[size]),
198
198
  viewBox: "0 0 35 35",
199
199
  height: "35",
200
200
  width: "35"
@@ -229,7 +229,7 @@ var Loading = ({
229
229
  return /* @__PURE__ */ import_react.default.createElement(
230
230
  "svg",
231
231
  {
232
- className: cn("squircle-container", sizeStyles[size]),
232
+ className: cn("squircle-container", sizeStyles2[size]),
233
233
  x: "0px",
234
234
  y: "0px",
235
235
  viewBox: "0 0 37 37",
@@ -266,7 +266,7 @@ var Loading = ({
266
266
  return /* @__PURE__ */ import_react.default.createElement(
267
267
  "svg",
268
268
  {
269
- className: cn("circle-container", sizeStyles[size]),
269
+ className: cn("circle-container", sizeStyles2[size]),
270
270
  viewBox: "0 0 40 40",
271
271
  height: "40",
272
272
  width: "40"
@@ -585,7 +585,7 @@ var Chip = import_react4.default.forwardRef(
585
585
  full: "hawa-rounded-full",
586
586
  none: "hawa-rounded-none"
587
587
  };
588
- let sizeStyles = {
588
+ let sizeStyles2 = {
589
589
  small: "hawa-h-[15px] hawa-leading-4 hawa-px-0 hawa-py-0 hawa-text-[9px] hawa-gap-0.5 ",
590
590
  normal: "hawa-h-fit hawa-text-xs",
591
591
  large: "hawa-text-base"
@@ -618,7 +618,7 @@ var Chip = import_react4.default.forwardRef(
618
618
  ref,
619
619
  className: cn(
620
620
  defaultStyles,
621
- sizeStyles[size],
621
+ sizeStyles2[size],
622
622
  radiusStyles[radius],
623
623
  color ? colorStyles[color] : "hawa-border hawa-bg-none"
624
624
  )
@@ -1871,6 +1871,7 @@ var Combobox = React27.forwardRef(
1871
1871
  "button",
1872
1872
  {
1873
1873
  role: "combobox",
1874
+ type: "button",
1874
1875
  "aria-expanded": open,
1875
1876
  className: cn(
1876
1877
  "hawa-inline-flex hawa-h-10 hawa-w-full hawa-select-none hawa-items-center hawa-justify-between hawa-rounded-md hawa-border hawa-py-2 hawa-text-sm hawa-font-normal hawa-text-primary hawa-ring-offset-background hawa-transition-all focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-pointer-events-none disabled:hawa-opacity-50",
@@ -1880,7 +1881,7 @@ var Combobox = React27.forwardRef(
1880
1881
  value ? getProperty(
1881
1882
  data.find((item) => item[valueKey] === value) || {},
1882
1883
  labelKey
1883
- ) : ((_a = props.texts) == null ? void 0 : _a.placeholder) || "...",
1884
+ ) : ((_a = props.texts) == null ? void 0 : _a.placeholder) || ". . .",
1884
1885
  /* @__PURE__ */ React27.createElement(
1885
1886
  "svg",
1886
1887
  {
@@ -1911,6 +1912,7 @@ var Combobox = React27.forwardRef(
1911
1912
  ))), /* @__PURE__ */ React27.createElement(
1912
1913
  PopoverContent,
1913
1914
  {
1915
+ sideOffset: 0,
1914
1916
  className: cn("popover-w-parent", props.helperText && "-hawa-mt-4")
1915
1917
  },
1916
1918
  /* @__PURE__ */ React27.createElement(Command, null, !props.hideInput && /* @__PURE__ */ React27.createElement(
@@ -2477,7 +2479,7 @@ var React56 = __toESM(require("react"));
2477
2479
  var ToastPrimitives = __toESM(require("@radix-ui/react-toast"));
2478
2480
  var import_class_variance_authority4 = require("class-variance-authority");
2479
2481
  var toastVariants = (0, import_class_variance_authority4.cva)(
2480
- "hawa-group hawa-z-[900] hawa-pointer-events-auto hawa-relative hawa-flex hawa-w-full hawa-items-center hawa-justify-between hawa-space-x-4 hawa-overflow-hidden hawa-rounded-md hawa-border hawa-shadow-lg hawa-transition-all data-[swipe=cancel]:hawa-translate-x-0 data-[swipe=end]:hawa-translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:hawa-translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:hawa-transition-none data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[swipe=end]:hawa-animate-out data-[state=closed]:hawa-fade-out-80 data-[state=open]:hawa-slide-in-from-top-full data-[state=open]:sm:hawa-slide-in-from-bottom-full",
2482
+ "hawa-group hawa-z-[900] hawa-pointer-events-auto hawa-relative hawa-flex hawa-w-full hawa-items-center hawa-justify-between hawa-overflow-hidden hawa-rounded-md hawa-border hawa-shadow-lg hawa-transition-all data-[swipe=cancel]:hawa-translate-x-0 data-[swipe=end]:hawa-translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:hawa-translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:hawa-transition-none data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[swipe=end]:hawa-animate-out data-[state=closed]:hawa-fade-out-80 data-[state=open]:hawa-slide-in-from-top-full data-[state=open]:sm:hawa-slide-in-from-bottom-full",
2481
2483
  {
2482
2484
  variants: {
2483
2485
  variant: {
@@ -2492,11 +2494,14 @@ var toastVariants = (0, import_class_variance_authority4.cva)(
2492
2494
  none: ""
2493
2495
  }
2494
2496
  },
2495
- defaultVariants: {
2496
- variant: "default"
2497
- }
2497
+ defaultVariants: { variant: "default" }
2498
2498
  }
2499
2499
  );
2500
+ var sizeStyles = {
2501
+ default: "hawa-text-sm",
2502
+ // Update this based on the desired padding for rtl
2503
+ sm: "hawa-text-xs"
2504
+ };
2500
2505
  var ToastViewport = React56.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React56.createElement(
2501
2506
  ToastPrimitives.Viewport,
2502
2507
  {
@@ -2517,7 +2522,7 @@ var Toast = React56.forwardRef(({ className, variant, severity = "none", directi
2517
2522
  className: cn(
2518
2523
  toastVariants({ variant, severity }),
2519
2524
  className,
2520
- direction === "rtl" ? "hawa-p-6 hawa-pl-0 hawa-pr-10 data-[state=closed]:hawa-slide-out-to-left-full" : "hawa-p-6 hawa-pr-8 data-[state=closed]:hawa-slide-out-to-right-full"
2525
+ direction === "rtl" ? "data-[state=closed]:hawa-slide-out-to-left-full" : "data-[state=closed]:hawa-slide-out-to-right-full"
2521
2526
  ),
2522
2527
  dir: direction,
2523
2528
  ...props
@@ -2536,6 +2541,7 @@ var ToastAction = React56.forwardRef(({ className, ...props }, ref) => {
2536
2541
  "group-[.error]:hawa-border-muted/40 group-[.error]:hover:hawa-border-error/30 group-[.error]:hover:hawa-bg-error group-[.error]:hover:hawa-text-error-foreground group-[.error]:focus:hawa-ring-error",
2537
2542
  "group-[.success]:hawa-border-muted/40 group-[.success]:hover:hawa-border-success/30 group-[.success]:hover:hawa-bg-success group-[.success]:hover:hawa-text-success-foreground group-[.success]:focus:hawa-ring-success",
2538
2543
  "group-[.warning]:hawa-border-muted/40 group-[.warning]:hover:hawa-border-warning/30 group-[.warning]:hover:hawa-bg-warning group-[.warning]:hover:hawa-text-warning-foreground group-[.warning]:focus:hawa-ring-warning",
2544
+ "hawa-whitespace-nowrap",
2539
2545
  className
2540
2546
  ),
2541
2547
  ...props
@@ -2548,7 +2554,10 @@ var ToastClose = React56.forwardRef(({ className, ...props }, ref) => /* @__PURE
2548
2554
  {
2549
2555
  ref,
2550
2556
  className: cn(
2551
- "hawa-absolute hawa-right-2 hawa-top-2 hawa-rounded-md hawa-p-1 hawa-text-foreground/50 hawa-opacity-0 hawa-transition-opacity hover:hawa-text-foreground focus:hawa-opacity-100 focus:hawa-outline-none focus:hawa-ring-2 group-hover:hawa-opacity-100 group-[.destructive]:hawa-text-red-300 group-[.destructive]:hover:hawa-text-red-50 group-[.destructive]:focus:hawa-ring-red-400 group-[.destructive]:focus:hawa-ring-offset-red-600",
2557
+ // "hawa-absolute hawa-start-2 hawa-top-2",
2558
+ // "group-hover:hawa-opacity-100",
2559
+ "hawa-opacity-100",
2560
+ "hawa-rounded-md hawa-p-1 hawa-text-foreground/50 hawa-transition-opacity hover:hawa-text-foreground focus:hawa-opacity-100 focus:hawa-outline-none focus:hawa-ring-2 group-[.destructive]:hawa-text-red-300 group-[.destructive]:hover:hawa-text-red-50 group-[.destructive]:focus:hawa-ring-red-400 group-[.destructive]:focus:hawa-ring-offset-red-600",
2552
2561
  className
2553
2562
  ),
2554
2563
  "toast-close": "",
@@ -2574,23 +2583,28 @@ var ToastClose = React56.forwardRef(({ className, ...props }, ref) => /* @__PURE
2574
2583
  )
2575
2584
  ));
2576
2585
  ToastClose.displayName = ToastPrimitives.Close.displayName;
2577
- var ToastTitle = React56.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React56.createElement(
2586
+ var ToastTitle = React56.forwardRef(({ className, size = "default", ...props }, ref) => /* @__PURE__ */ React56.createElement(
2578
2587
  ToastPrimitives.Title,
2579
2588
  {
2580
2589
  ref,
2581
2590
  className: cn(
2582
2591
  "hawa-select-text hawa-text-sm hawa-font-semibold",
2592
+ sizeStyles[size],
2583
2593
  className
2584
2594
  ),
2585
2595
  ...props
2586
2596
  }
2587
2597
  ));
2588
2598
  ToastTitle.displayName = ToastPrimitives.Title.displayName;
2589
- var ToastDescription = React56.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React56.createElement(
2599
+ var ToastDescription = React56.forwardRef(({ className, size = "default", ...props }, ref) => /* @__PURE__ */ React56.createElement(
2590
2600
  ToastPrimitives.Description,
2591
2601
  {
2592
2602
  ref,
2593
- className: cn("hawa-select-text hawa-text-sm hawa-opacity-90", className),
2603
+ className: cn(
2604
+ "hawa-select-text hawa-opacity-90",
2605
+ sizeStyles[size],
2606
+ className
2607
+ ),
2594
2608
  ...props
2595
2609
  }
2596
2610
  ));
@@ -1375,6 +1375,7 @@ var Combobox = React19.forwardRef(
1375
1375
  "button",
1376
1376
  {
1377
1377
  role: "combobox",
1378
+ type: "button",
1378
1379
  "aria-expanded": open,
1379
1380
  className: cn(
1380
1381
  "hawa-inline-flex hawa-h-10 hawa-w-full hawa-select-none hawa-items-center hawa-justify-between hawa-rounded-md hawa-border hawa-py-2 hawa-text-sm hawa-font-normal hawa-text-primary hawa-ring-offset-background hawa-transition-all focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-pointer-events-none disabled:hawa-opacity-50",
@@ -1384,7 +1385,7 @@ var Combobox = React19.forwardRef(
1384
1385
  value ? getProperty(
1385
1386
  data.find((item) => item[valueKey] === value) || {},
1386
1387
  labelKey
1387
- ) : ((_a = props.texts) == null ? void 0 : _a.placeholder) || "...",
1388
+ ) : ((_a = props.texts) == null ? void 0 : _a.placeholder) || ". . .",
1388
1389
  /* @__PURE__ */ React19.createElement(
1389
1390
  "svg",
1390
1391
  {
@@ -1415,6 +1416,7 @@ var Combobox = React19.forwardRef(
1415
1416
  ))), /* @__PURE__ */ React19.createElement(
1416
1417
  PopoverContent,
1417
1418
  {
1419
+ sideOffset: 0,
1418
1420
  className: cn("popover-w-parent", props.helperText && "-hawa-mt-4")
1419
1421
  },
1420
1422
  /* @__PURE__ */ React19.createElement(Command, null, !props.hideInput && /* @__PURE__ */ React19.createElement(
@@ -1988,7 +1990,7 @@ import * as React48 from "react";
1988
1990
  import * as ToastPrimitives from "@radix-ui/react-toast";
1989
1991
  import { cva as cva3 } from "class-variance-authority";
1990
1992
  var toastVariants = cva3(
1991
- "hawa-group hawa-z-[900] hawa-pointer-events-auto hawa-relative hawa-flex hawa-w-full hawa-items-center hawa-justify-between hawa-space-x-4 hawa-overflow-hidden hawa-rounded-md hawa-border hawa-shadow-lg hawa-transition-all data-[swipe=cancel]:hawa-translate-x-0 data-[swipe=end]:hawa-translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:hawa-translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:hawa-transition-none data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[swipe=end]:hawa-animate-out data-[state=closed]:hawa-fade-out-80 data-[state=open]:hawa-slide-in-from-top-full data-[state=open]:sm:hawa-slide-in-from-bottom-full",
1993
+ "hawa-group hawa-z-[900] hawa-pointer-events-auto hawa-relative hawa-flex hawa-w-full hawa-items-center hawa-justify-between hawa-overflow-hidden hawa-rounded-md hawa-border hawa-shadow-lg hawa-transition-all data-[swipe=cancel]:hawa-translate-x-0 data-[swipe=end]:hawa-translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:hawa-translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:hawa-transition-none data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[swipe=end]:hawa-animate-out data-[state=closed]:hawa-fade-out-80 data-[state=open]:hawa-slide-in-from-top-full data-[state=open]:sm:hawa-slide-in-from-bottom-full",
1992
1994
  {
1993
1995
  variants: {
1994
1996
  variant: {
@@ -2003,11 +2005,14 @@ var toastVariants = cva3(
2003
2005
  none: ""
2004
2006
  }
2005
2007
  },
2006
- defaultVariants: {
2007
- variant: "default"
2008
- }
2008
+ defaultVariants: { variant: "default" }
2009
2009
  }
2010
2010
  );
2011
+ var sizeStyles = {
2012
+ default: "hawa-text-sm",
2013
+ // Update this based on the desired padding for rtl
2014
+ sm: "hawa-text-xs"
2015
+ };
2011
2016
  var ToastViewport = React48.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React48.createElement(
2012
2017
  ToastPrimitives.Viewport,
2013
2018
  {
@@ -2028,7 +2033,7 @@ var Toast = React48.forwardRef(({ className, variant, severity = "none", directi
2028
2033
  className: cn(
2029
2034
  toastVariants({ variant, severity }),
2030
2035
  className,
2031
- direction === "rtl" ? "hawa-p-6 hawa-pl-0 hawa-pr-10 data-[state=closed]:hawa-slide-out-to-left-full" : "hawa-p-6 hawa-pr-8 data-[state=closed]:hawa-slide-out-to-right-full"
2036
+ direction === "rtl" ? "data-[state=closed]:hawa-slide-out-to-left-full" : "data-[state=closed]:hawa-slide-out-to-right-full"
2032
2037
  ),
2033
2038
  dir: direction,
2034
2039
  ...props
@@ -2047,6 +2052,7 @@ var ToastAction = React48.forwardRef(({ className, ...props }, ref) => {
2047
2052
  "group-[.error]:hawa-border-muted/40 group-[.error]:hover:hawa-border-error/30 group-[.error]:hover:hawa-bg-error group-[.error]:hover:hawa-text-error-foreground group-[.error]:focus:hawa-ring-error",
2048
2053
  "group-[.success]:hawa-border-muted/40 group-[.success]:hover:hawa-border-success/30 group-[.success]:hover:hawa-bg-success group-[.success]:hover:hawa-text-success-foreground group-[.success]:focus:hawa-ring-success",
2049
2054
  "group-[.warning]:hawa-border-muted/40 group-[.warning]:hover:hawa-border-warning/30 group-[.warning]:hover:hawa-bg-warning group-[.warning]:hover:hawa-text-warning-foreground group-[.warning]:focus:hawa-ring-warning",
2055
+ "hawa-whitespace-nowrap",
2050
2056
  className
2051
2057
  ),
2052
2058
  ...props
@@ -2059,7 +2065,10 @@ var ToastClose = React48.forwardRef(({ className, ...props }, ref) => /* @__PURE
2059
2065
  {
2060
2066
  ref,
2061
2067
  className: cn(
2062
- "hawa-absolute hawa-right-2 hawa-top-2 hawa-rounded-md hawa-p-1 hawa-text-foreground/50 hawa-opacity-0 hawa-transition-opacity hover:hawa-text-foreground focus:hawa-opacity-100 focus:hawa-outline-none focus:hawa-ring-2 group-hover:hawa-opacity-100 group-[.destructive]:hawa-text-red-300 group-[.destructive]:hover:hawa-text-red-50 group-[.destructive]:focus:hawa-ring-red-400 group-[.destructive]:focus:hawa-ring-offset-red-600",
2068
+ // "hawa-absolute hawa-start-2 hawa-top-2",
2069
+ // "group-hover:hawa-opacity-100",
2070
+ "hawa-opacity-100",
2071
+ "hawa-rounded-md hawa-p-1 hawa-text-foreground/50 hawa-transition-opacity hover:hawa-text-foreground focus:hawa-opacity-100 focus:hawa-outline-none focus:hawa-ring-2 group-[.destructive]:hawa-text-red-300 group-[.destructive]:hover:hawa-text-red-50 group-[.destructive]:focus:hawa-ring-red-400 group-[.destructive]:focus:hawa-ring-offset-red-600",
2063
2072
  className
2064
2073
  ),
2065
2074
  "toast-close": "",
@@ -2085,23 +2094,28 @@ var ToastClose = React48.forwardRef(({ className, ...props }, ref) => /* @__PURE
2085
2094
  )
2086
2095
  ));
2087
2096
  ToastClose.displayName = ToastPrimitives.Close.displayName;
2088
- var ToastTitle = React48.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React48.createElement(
2097
+ var ToastTitle = React48.forwardRef(({ className, size = "default", ...props }, ref) => /* @__PURE__ */ React48.createElement(
2089
2098
  ToastPrimitives.Title,
2090
2099
  {
2091
2100
  ref,
2092
2101
  className: cn(
2093
2102
  "hawa-select-text hawa-text-sm hawa-font-semibold",
2103
+ sizeStyles[size],
2094
2104
  className
2095
2105
  ),
2096
2106
  ...props
2097
2107
  }
2098
2108
  ));
2099
2109
  ToastTitle.displayName = ToastPrimitives.Title.displayName;
2100
- var ToastDescription = React48.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React48.createElement(
2110
+ var ToastDescription = React48.forwardRef(({ className, size = "default", ...props }, ref) => /* @__PURE__ */ React48.createElement(
2101
2111
  ToastPrimitives.Description,
2102
2112
  {
2103
2113
  ref,
2104
- className: cn("hawa-select-text hawa-text-sm hawa-opacity-90", className),
2114
+ className: cn(
2115
+ "hawa-select-text hawa-opacity-90",
2116
+ sizeStyles[size],
2117
+ className
2118
+ ),
2105
2119
  ...props
2106
2120
  }
2107
2121
  ));
@@ -638,6 +638,7 @@ var Combobox = React7.forwardRef(
638
638
  "button",
639
639
  {
640
640
  role: "combobox",
641
+ type: "button",
641
642
  "aria-expanded": open,
642
643
  className: cn(
643
644
  "hawa-inline-flex hawa-h-10 hawa-w-full hawa-select-none hawa-items-center hawa-justify-between hawa-rounded-md hawa-border hawa-py-2 hawa-text-sm hawa-font-normal hawa-text-primary hawa-ring-offset-background hawa-transition-all focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-pointer-events-none disabled:hawa-opacity-50",
@@ -647,7 +648,7 @@ var Combobox = React7.forwardRef(
647
648
  value ? getProperty(
648
649
  data.find((item) => item[valueKey] === value) || {},
649
650
  labelKey
650
- ) : ((_a = props.texts) == null ? void 0 : _a.placeholder) || "...",
651
+ ) : ((_a = props.texts) == null ? void 0 : _a.placeholder) || ". . .",
651
652
  /* @__PURE__ */ React7.createElement(
652
653
  "svg",
653
654
  {
@@ -678,6 +679,7 @@ var Combobox = React7.forwardRef(
678
679
  ))), /* @__PURE__ */ React7.createElement(
679
680
  PopoverContent,
680
681
  {
682
+ sideOffset: 0,
681
683
  className: cn("popover-w-parent", props.helperText && "-hawa-mt-4")
682
684
  },
683
685
  /* @__PURE__ */ React7.createElement(Command, null, !props.hideInput && /* @__PURE__ */ React7.createElement(
@@ -517,6 +517,7 @@ var Combobox = React5.forwardRef(
517
517
  "button",
518
518
  {
519
519
  role: "combobox",
520
+ type: "button",
520
521
  "aria-expanded": open,
521
522
  className: cn(
522
523
  "hawa-inline-flex hawa-h-10 hawa-w-full hawa-select-none hawa-items-center hawa-justify-between hawa-rounded-md hawa-border hawa-py-2 hawa-text-sm hawa-font-normal hawa-text-primary hawa-ring-offset-background hawa-transition-all focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-pointer-events-none disabled:hawa-opacity-50",
@@ -526,7 +527,7 @@ var Combobox = React5.forwardRef(
526
527
  value ? getProperty(
527
528
  data.find((item) => item[valueKey] === value) || {},
528
529
  labelKey
529
- ) : ((_a = props.texts) == null ? void 0 : _a.placeholder) || "...",
530
+ ) : ((_a = props.texts) == null ? void 0 : _a.placeholder) || ". . .",
530
531
  /* @__PURE__ */ React5.createElement(
531
532
  "svg",
532
533
  {
@@ -557,6 +558,7 @@ var Combobox = React5.forwardRef(
557
558
  ))), /* @__PURE__ */ React5.createElement(
558
559
  PopoverContent,
559
560
  {
561
+ sideOffset: 0,
560
562
  className: cn("popover-w-parent", props.helperText && "-hawa-mt-4")
561
563
  },
562
564
  /* @__PURE__ */ React5.createElement(Command, null, !props.hideInput && /* @__PURE__ */ React5.createElement(
@@ -22,7 +22,7 @@ import * as ProgressPrimitive from '@radix-ui/react-progress';
22
22
  import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
23
23
  import * as SliderPrimitive from '@radix-ui/react-slider';
24
24
  import { EmblaOptionsType } from 'embla-carousel-react';
25
- export { d as Toast, h as ToastAction, a as ToastActionElement, g as ToastClose, f as ToastDescription, T as ToastProps, b as ToastProvider, e as ToastTitle, c as ToastViewport } from '../Toast-jAb16JQg.mjs';
25
+ export { d as Toast, h as ToastAction, a as ToastActionElement, g as ToastClose, f as ToastDescription, T as ToastProps, b as ToastProvider, e as ToastTitle, c as ToastViewport } from '../Toast-VBd4UvlM.mjs';
26
26
  import '@radix-ui/react-dropdown-menu';
27
27
  import '@radix-ui/react-toast';
28
28
 
@@ -22,7 +22,7 @@ import * as ProgressPrimitive from '@radix-ui/react-progress';
22
22
  import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
23
23
  import * as SliderPrimitive from '@radix-ui/react-slider';
24
24
  import { EmblaOptionsType } from 'embla-carousel-react';
25
- export { d as Toast, h as ToastAction, a as ToastActionElement, g as ToastClose, f as ToastDescription, T as ToastProps, b as ToastProvider, e as ToastTitle, c as ToastViewport } from '../Toast-xcELwcIX.js';
25
+ export { d as Toast, h as ToastAction, a as ToastActionElement, g as ToastClose, f as ToastDescription, T as ToastProps, b as ToastProvider, e as ToastTitle, c as ToastViewport } from '../Toast-pOd4uGZz.js';
26
26
  import '@radix-ui/react-dropdown-menu';
27
27
  import '@radix-ui/react-toast';
28
28