@sikka/hawa 0.18.9-next → 0.18.10-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.js CHANGED
@@ -3565,16 +3565,6 @@ var Radio = ({
3565
3565
  // components/elements/Switch.tsx
3566
3566
  var React20 = __toESM(require("react"));
3567
3567
  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
3568
  var Switch = React20.forwardRef(
3579
3569
  ({ className, size = "default", roundedness = "inherit", label, ...props }, ref) => {
3580
3570
  const [parentDirection, setParentDirection] = React20.useState(
@@ -3589,6 +3579,16 @@ var Switch = React20.forwardRef(
3589
3579
  setParentDirection(dir);
3590
3580
  }
3591
3581
  });
3582
+ const rootSize = {
3583
+ default: "hawa-h-[25px] hawa-w-[42px]",
3584
+ sm: "hawa-h-[20px] hawa-w-[37px]",
3585
+ lg: "hawa-h-[30px] hawa-w-[47px]"
3586
+ };
3587
+ const thumbSize = {
3588
+ default: "hawa-h-[21px] hawa-w-[21px]",
3589
+ sm: "hawa-h-[16px] hawa-w-[16px]",
3590
+ lg: "hawa-h-[26px] hawa-w-[26px]"
3591
+ };
3592
3592
  const rootRoundednessStyles = {
3593
3593
  none: "hawa-rounded-none",
3594
3594
  full: "hawa-rounded-full",
@@ -3609,12 +3609,11 @@ var Switch = React20.forwardRef(
3609
3609
  SwitchPrimitives.Root,
3610
3610
  {
3611
3611
  className: cn(
3612
- "hawa-bg-primary/20",
3613
- // "data-[state=unchecked]:hawa-bg-primary/20",
3612
+ "data-[state=unchecked]:hawa-bg-primary/20",
3614
3613
  "data-[state=checked]:hawa-bg-primary",
3615
3614
  "hawa-relative hawa-cursor-pointer hawa-rounded hawa-outline-none",
3616
3615
  rootRoundednessStyles[roundedness],
3617
- className,
3616
+ // className,
3618
3617
  rootSize[size]
3619
3618
  ),
3620
3619
  ...props,
@@ -3625,7 +3624,9 @@ var Switch = React20.forwardRef(
3625
3624
  {
3626
3625
  className: cn(
3627
3626
  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",
3627
+ "hawa-block hawa-rounded hawa-transition-transform hawa-duration-100 hawa-will-change-transform",
3628
+ "data-[state=checked]:hawa-bg-primary-foreground",
3629
+ "hawa-bg-white dark:hawa-bg-background",
3629
3630
  thumbRoundednessStyles[roundedness],
3630
3631
  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
3632
  )
package/dist/index.mjs CHANGED
@@ -3340,16 +3340,6 @@ var Radio = ({
3340
3340
  // components/elements/Switch.tsx
3341
3341
  import * as React20 from "react";
3342
3342
  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
3343
  var Switch = React20.forwardRef(
3354
3344
  ({ className, size = "default", roundedness = "inherit", label, ...props }, ref) => {
3355
3345
  const [parentDirection, setParentDirection] = React20.useState(
@@ -3364,6 +3354,16 @@ var Switch = React20.forwardRef(
3364
3354
  setParentDirection(dir);
3365
3355
  }
3366
3356
  });
3357
+ const rootSize = {
3358
+ default: "hawa-h-[25px] hawa-w-[42px]",
3359
+ sm: "hawa-h-[20px] hawa-w-[37px]",
3360
+ lg: "hawa-h-[30px] hawa-w-[47px]"
3361
+ };
3362
+ const thumbSize = {
3363
+ default: "hawa-h-[21px] hawa-w-[21px]",
3364
+ sm: "hawa-h-[16px] hawa-w-[16px]",
3365
+ lg: "hawa-h-[26px] hawa-w-[26px]"
3366
+ };
3367
3367
  const rootRoundednessStyles = {
3368
3368
  none: "hawa-rounded-none",
3369
3369
  full: "hawa-rounded-full",
@@ -3384,12 +3384,11 @@ var Switch = React20.forwardRef(
3384
3384
  SwitchPrimitives.Root,
3385
3385
  {
3386
3386
  className: cn(
3387
- "hawa-bg-primary/20",
3388
- // "data-[state=unchecked]:hawa-bg-primary/20",
3387
+ "data-[state=unchecked]:hawa-bg-primary/20",
3389
3388
  "data-[state=checked]:hawa-bg-primary",
3390
3389
  "hawa-relative hawa-cursor-pointer hawa-rounded hawa-outline-none",
3391
3390
  rootRoundednessStyles[roundedness],
3392
- className,
3391
+ // className,
3393
3392
  rootSize[size]
3394
3393
  ),
3395
3394
  ...props,
@@ -3400,7 +3399,9 @@ var Switch = React20.forwardRef(
3400
3399
  {
3401
3400
  className: cn(
3402
3401
  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",
3402
+ "hawa-block hawa-rounded hawa-transition-transform hawa-duration-100 hawa-will-change-transform",
3403
+ "data-[state=checked]:hawa-bg-primary-foreground",
3404
+ "hawa-bg-white dark:hawa-bg-background",
3404
3405
  thumbRoundednessStyles[roundedness],
3405
3406
  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
3407
  )
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.10-next",
4
4
  "description": "Modern UI Kit made with Tailwind",
5
5
  "author": {
6
6
  "name": "Sikka Software",