@sikka/hawa 0.18.9-next → 0.18.11-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.
package/dist/index.css CHANGED
@@ -386,14 +386,14 @@ video {
386
386
  display: none;
387
387
  }
388
388
  :root {
389
+ --primary: 240 5.9% 10%;
390
+ --primary-foreground: 0 0% 98%;
389
391
  --background: 0 0% 100%;
390
392
  --foreground: 240 10% 3.9%;
391
393
  --card: 210 50% 98%;
392
394
  --card-foreground: 240 10% 3.9%;
393
395
  --popover: 0 0% 100%;
394
396
  --popover-foreground: 240 10% 3.9%;
395
- --primary: 240 5.9% 10%;
396
- --primary-foreground: 0 0% 98%;
397
397
  --secondary: 240 4.8% 95.9%;
398
398
  --secondary-foreground: 240 5.9% 10%;
399
399
  --muted: 240 4.8% 95.9%;
@@ -423,12 +423,12 @@ video {
423
423
  /* --helper-text: 61 97% 45%; */
424
424
  --background: 240 10% 3.9%;
425
425
  --foreground: 0 0% 98%;
426
+ --primary: 0 0% 98%;
427
+ --primary-foreground: 240 5.9% 10%;
426
428
  --card: 0 0% 2%;
427
429
  --card-foreground: 0 0% 98%;
428
430
  --popover: 240 10% 3.9%;
429
431
  --popover-foreground: 0 0% 98%;
430
- --primary: 0 0% 98%;
431
- --primary-foreground: 240 5.9% 10%;
432
432
  --secondary: 240 3.7% 15.9%;
433
433
  --secondary-foreground: 0 0% 98%;
434
434
  --muted: 240 3.7% 15.9%;
package/dist/index.d.mts CHANGED
@@ -8,6 +8,7 @@ import * as class_variance_authority_types from 'class-variance-authority/types'
8
8
  import { VariantProps } from 'class-variance-authority';
9
9
  import * as SheetPrimitive from '@radix-ui/react-dialog';
10
10
  import { DialogProps } from '@radix-ui/react-dialog';
11
+ import * as TooltipPrimitive from '@radix-ui/react-tooltip';
11
12
  import * as ToastPrimitives from '@radix-ui/react-toast';
12
13
  import * as PopoverPrimitive from '@radix-ui/react-popover';
13
14
  import * as embla_carousel_react from 'embla-carousel-react';
@@ -489,6 +490,7 @@ type TooltipTypes = {
489
490
  onOpenChange?: any;
490
491
  /** Duration of the delay before the tooltip appears. */
491
492
  delayDuration?: any;
493
+ triggerProps?: TooltipPrimitive.TooltipTriggerProps;
492
494
  };
493
495
  declare const Tooltip: React__default.FunctionComponent<TooltipTypes>;
494
496
 
package/dist/index.d.ts CHANGED
@@ -8,6 +8,7 @@ import * as class_variance_authority_types from 'class-variance-authority/types'
8
8
  import { VariantProps } from 'class-variance-authority';
9
9
  import * as SheetPrimitive from '@radix-ui/react-dialog';
10
10
  import { DialogProps } from '@radix-ui/react-dialog';
11
+ import * as TooltipPrimitive from '@radix-ui/react-tooltip';
11
12
  import * as ToastPrimitives from '@radix-ui/react-toast';
12
13
  import * as PopoverPrimitive from '@radix-ui/react-popover';
13
14
  import * as embla_carousel_react from 'embla-carousel-react';
@@ -489,6 +490,7 @@ type TooltipTypes = {
489
490
  onOpenChange?: any;
490
491
  /** Duration of the delay before the tooltip appears. */
491
492
  delayDuration?: any;
493
+ triggerProps?: TooltipPrimitive.TooltipTriggerProps;
492
494
  };
493
495
  declare const Tooltip: React__default.FunctionComponent<TooltipTypes>;
494
496
 
package/dist/index.js CHANGED
@@ -3011,6 +3011,7 @@ var Tooltip = ({
3011
3011
  children,
3012
3012
  defaultOpen,
3013
3013
  onOpenChange,
3014
+ triggerProps,
3014
3015
  delayDuration = 300,
3015
3016
  ...props
3016
3017
  }) => {
@@ -3021,7 +3022,7 @@ var Tooltip = ({
3021
3022
  defaultOpen,
3022
3023
  onOpenChange
3023
3024
  },
3024
- /* @__PURE__ */ import_react9.default.createElement(TooltipPrimitive.Trigger, { asChild: true }, children),
3025
+ /* @__PURE__ */ import_react9.default.createElement(TooltipPrimitive.Trigger, { ...triggerProps }, children),
3025
3026
  /* @__PURE__ */ import_react9.default.createElement(TooltipContent, { side, align: "center", ...props }, content)
3026
3027
  ));
3027
3028
  };
@@ -3565,16 +3566,6 @@ var Radio = ({
3565
3566
  // components/elements/Switch.tsx
3566
3567
  var React20 = __toESM(require("react"));
3567
3568
  var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"));
3568
- var rootSize = {
3569
- default: "hawa-h-[25px] hawa-w-[42px]",
3570
- sm: "hawa-h-[20px] hawa-w-[37px]",
3571
- lg: "hawa-h-[30px] hawa-w-[47px]"
3572
- };
3573
- var thumbSize = {
3574
- default: "hawa-h-[21px] hawa-w-[21px]",
3575
- sm: "hawa-h-[16px] hawa-w-[16px]",
3576
- lg: "hawa-h-[26px] hawa-w-[26px]"
3577
- };
3578
3569
  var Switch = React20.forwardRef(
3579
3570
  ({ className, size = "default", roundedness = "inherit", label, ...props }, ref) => {
3580
3571
  const [parentDirection, setParentDirection] = React20.useState(
@@ -3589,6 +3580,16 @@ var Switch = React20.forwardRef(
3589
3580
  setParentDirection(dir);
3590
3581
  }
3591
3582
  });
3583
+ const rootSize = {
3584
+ default: "hawa-h-[25px] hawa-w-[42px]",
3585
+ sm: "hawa-h-[20px] hawa-w-[37px]",
3586
+ lg: "hawa-h-[30px] hawa-w-[47px]"
3587
+ };
3588
+ const thumbSize = {
3589
+ default: "hawa-h-[21px] hawa-w-[21px]",
3590
+ sm: "hawa-h-[16px] hawa-w-[16px]",
3591
+ lg: "hawa-h-[26px] hawa-w-[26px]"
3592
+ };
3592
3593
  const rootRoundednessStyles = {
3593
3594
  none: "hawa-rounded-none",
3594
3595
  full: "hawa-rounded-full",
@@ -3609,8 +3610,7 @@ var Switch = React20.forwardRef(
3609
3610
  SwitchPrimitives.Root,
3610
3611
  {
3611
3612
  className: cn(
3612
- "hawa-bg-primary/20",
3613
- // "data-[state=unchecked]:hawa-bg-primary/20",
3613
+ "data-[state=unchecked]:hawa-bg-primary/20",
3614
3614
  "data-[state=checked]:hawa-bg-primary",
3615
3615
  "hawa-relative hawa-cursor-pointer hawa-rounded hawa-outline-none",
3616
3616
  rootRoundednessStyles[roundedness],
@@ -3625,7 +3625,9 @@ var Switch = React20.forwardRef(
3625
3625
  {
3626
3626
  className: cn(
3627
3627
  thumbSize[size],
3628
- "hawa-block hawa-rounded hawa-bg-white hawa-transition-transform hawa-duration-100 hawa-will-change-transform data-[state=checked]:hawa-bg-primary-foreground dark:hawa-bg-background",
3628
+ "hawa-block hawa-rounded hawa-transition-transform hawa-duration-100 hawa-will-change-transform",
3629
+ "data-[state=checked]:hawa-bg-primary-foreground",
3630
+ "hawa-bg-white dark:hawa-bg-background",
3629
3631
  thumbRoundednessStyles[roundedness],
3630
3632
  parentDirection === "rtl" ? "hawa--translate-x-0.5 data-[state=checked]:hawa--translate-x-[19px]" : "hawa-translate-x-0.5 data-[state=checked]:hawa-translate-x-[19px]"
3631
3633
  )
package/dist/index.mjs CHANGED
@@ -2786,6 +2786,7 @@ var Tooltip = ({
2786
2786
  children,
2787
2787
  defaultOpen,
2788
2788
  onOpenChange,
2789
+ triggerProps,
2789
2790
  delayDuration = 300,
2790
2791
  ...props
2791
2792
  }) => {
@@ -2796,7 +2797,7 @@ var Tooltip = ({
2796
2797
  defaultOpen,
2797
2798
  onOpenChange
2798
2799
  },
2799
- /* @__PURE__ */ React13.createElement(TooltipPrimitive.Trigger, { asChild: true }, children),
2800
+ /* @__PURE__ */ React13.createElement(TooltipPrimitive.Trigger, { ...triggerProps }, children),
2800
2801
  /* @__PURE__ */ React13.createElement(TooltipContent, { side, align: "center", ...props }, content)
2801
2802
  ));
2802
2803
  };
@@ -3340,16 +3341,6 @@ var Radio = ({
3340
3341
  // components/elements/Switch.tsx
3341
3342
  import * as React20 from "react";
3342
3343
  import * as SwitchPrimitives from "@radix-ui/react-switch";
3343
- var rootSize = {
3344
- default: "hawa-h-[25px] hawa-w-[42px]",
3345
- sm: "hawa-h-[20px] hawa-w-[37px]",
3346
- lg: "hawa-h-[30px] hawa-w-[47px]"
3347
- };
3348
- var thumbSize = {
3349
- default: "hawa-h-[21px] hawa-w-[21px]",
3350
- sm: "hawa-h-[16px] hawa-w-[16px]",
3351
- lg: "hawa-h-[26px] hawa-w-[26px]"
3352
- };
3353
3344
  var Switch = React20.forwardRef(
3354
3345
  ({ className, size = "default", roundedness = "inherit", label, ...props }, ref) => {
3355
3346
  const [parentDirection, setParentDirection] = React20.useState(
@@ -3364,6 +3355,16 @@ var Switch = React20.forwardRef(
3364
3355
  setParentDirection(dir);
3365
3356
  }
3366
3357
  });
3358
+ const rootSize = {
3359
+ default: "hawa-h-[25px] hawa-w-[42px]",
3360
+ sm: "hawa-h-[20px] hawa-w-[37px]",
3361
+ lg: "hawa-h-[30px] hawa-w-[47px]"
3362
+ };
3363
+ const thumbSize = {
3364
+ default: "hawa-h-[21px] hawa-w-[21px]",
3365
+ sm: "hawa-h-[16px] hawa-w-[16px]",
3366
+ lg: "hawa-h-[26px] hawa-w-[26px]"
3367
+ };
3367
3368
  const rootRoundednessStyles = {
3368
3369
  none: "hawa-rounded-none",
3369
3370
  full: "hawa-rounded-full",
@@ -3384,8 +3385,7 @@ var Switch = React20.forwardRef(
3384
3385
  SwitchPrimitives.Root,
3385
3386
  {
3386
3387
  className: cn(
3387
- "hawa-bg-primary/20",
3388
- // "data-[state=unchecked]:hawa-bg-primary/20",
3388
+ "data-[state=unchecked]:hawa-bg-primary/20",
3389
3389
  "data-[state=checked]:hawa-bg-primary",
3390
3390
  "hawa-relative hawa-cursor-pointer hawa-rounded hawa-outline-none",
3391
3391
  rootRoundednessStyles[roundedness],
@@ -3400,7 +3400,9 @@ var Switch = React20.forwardRef(
3400
3400
  {
3401
3401
  className: cn(
3402
3402
  thumbSize[size],
3403
- "hawa-block hawa-rounded hawa-bg-white hawa-transition-transform hawa-duration-100 hawa-will-change-transform data-[state=checked]:hawa-bg-primary-foreground dark:hawa-bg-background",
3403
+ "hawa-block hawa-rounded hawa-transition-transform hawa-duration-100 hawa-will-change-transform",
3404
+ "data-[state=checked]:hawa-bg-primary-foreground",
3405
+ "hawa-bg-white dark:hawa-bg-background",
3404
3406
  thumbRoundednessStyles[roundedness],
3405
3407
  parentDirection === "rtl" ? "hawa--translate-x-0.5 data-[state=checked]:hawa--translate-x-[19px]" : "hawa-translate-x-0.5 data-[state=checked]:hawa-translate-x-[19px]"
3406
3408
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.18.9-next",
3
+ "version": "0.18.11-next",
4
4
  "description": "Modern UI Kit made with Tailwind",
5
5
  "author": {
6
6
  "name": "Sikka Software",