@sikka/hawa 0.18.7-next → 0.18.9-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
@@ -3641,6 +3641,9 @@ body {
3641
3641
  .data-\[state\=selected\]\:hawa-bg-muted[data-state=selected] {
3642
3642
  background-color: hsl(var(--muted));
3643
3643
  }
3644
+ .data-\[state\=unchecked\]\:hawa-bg-primary\/20[data-state=unchecked] {
3645
+ background-color: hsl(var(--primary) / 0.2);
3646
+ }
3644
3647
  .data-\[state\=active\]\:hawa-text-primary-foreground[data-state=active] {
3645
3648
  color: hsl(var(--primary-foreground));
3646
3649
  }
package/dist/index.d.mts CHANGED
@@ -290,7 +290,11 @@ declare const Input: React__default.ForwardRefExoticComponent<React__default.Inp
290
290
  preview?: boolean | undefined;
291
291
  iconInside?: React__default.ReactNode;
292
292
  endIcon?: React__default.ReactNode;
293
+ endIconProps?: {
294
+ className?: string | undefined;
295
+ } | undefined;
293
296
  startIcon?: React__default.ReactNode;
297
+ placeholder?: React__default.ReactNode;
294
298
  } & React__default.RefAttributes<HTMLInputElement>>;
295
299
 
296
300
  type ComboboxTypes<T> = {
package/dist/index.d.ts CHANGED
@@ -290,7 +290,11 @@ declare const Input: React__default.ForwardRefExoticComponent<React__default.Inp
290
290
  preview?: boolean | undefined;
291
291
  iconInside?: React__default.ReactNode;
292
292
  endIcon?: React__default.ReactNode;
293
+ endIconProps?: {
294
+ className?: string | undefined;
295
+ } | undefined;
293
296
  startIcon?: React__default.ReactNode;
297
+ placeholder?: React__default.ReactNode;
294
298
  } & React__default.RefAttributes<HTMLInputElement>>;
295
299
 
296
300
  type ComboboxTypes<T> = {
package/dist/index.js CHANGED
@@ -3609,7 +3609,10 @@ var Switch = React20.forwardRef(
3609
3609
  SwitchPrimitives.Root,
3610
3610
  {
3611
3611
  className: cn(
3612
- "hawa-relative hawa-cursor-pointer hawa-rounded hawa-bg-primary/20 hawa-outline-none data-[state=checked]:hawa-bg-primary",
3612
+ "hawa-bg-primary/20",
3613
+ // "data-[state=unchecked]:hawa-bg-primary/20",
3614
+ "data-[state=checked]:hawa-bg-primary",
3615
+ "hawa-relative hawa-cursor-pointer hawa-rounded hawa-outline-none",
3613
3616
  rootRoundednessStyles[roundedness],
3614
3617
  className,
3615
3618
  rootSize[size]
@@ -3771,9 +3774,10 @@ var Input = (0, import_react15.forwardRef)(
3771
3774
  preview = false,
3772
3775
  forceHideHelperText = false,
3773
3776
  labelProps,
3777
+ placeholder,
3774
3778
  ...props
3775
3779
  }, ref) => {
3776
- var _a;
3780
+ var _a, _b;
3777
3781
  let marginStyles = {
3778
3782
  none: "hawa-mb-0",
3779
3783
  normal: "hawa-mb-3",
@@ -3807,8 +3811,16 @@ var Input = (0, import_react15.forwardRef)(
3807
3811
  preview ? "hawa-opacity-100" : "hawa-opacity-0"
3808
3812
  )
3809
3813
  }
3810
- ), /* @__PURE__ */ import_react15.default.createElement(import_react15.default.Fragment, null, /* @__PURE__ */ import_react15.default.createElement("div", { className: cn("hawa-relative") }, props.startIcon && /* @__PURE__ */ import_react15.default.createElement("div", { className: "hawa-absolute hawa-start-3 hawa-top-1/2 hawa--translate-y-1/2" }, props.startIcon), props.endIcon && // TODO: make end-3 editable from outside
3811
- /* @__PURE__ */ import_react15.default.createElement("div", { className: "hawa-absolute hawa-end-3 hawa-top-1/2 hawa--translate-y-1/2" }, props.endIcon), /* @__PURE__ */ import_react15.default.createElement(
3814
+ ), /* @__PURE__ */ import_react15.default.createElement(import_react15.default.Fragment, null, /* @__PURE__ */ import_react15.default.createElement("div", { className: cn("hawa-relative") }, props.startIcon && /* @__PURE__ */ import_react15.default.createElement("div", { className: "hawa-absolute hawa-start-3 hawa-top-1/2 hawa--translate-y-1/2" }, props.startIcon), props.endIcon && /* @__PURE__ */ import_react15.default.createElement(
3815
+ "div",
3816
+ {
3817
+ className: cn(
3818
+ "hawa-absolute hawa-end-3 hawa-top-1/2 hawa--translate-y-1/2",
3819
+ (_a = props.endIconProps) == null ? void 0 : _a.className
3820
+ )
3821
+ },
3822
+ props.endIcon
3823
+ ), /* @__PURE__ */ import_react15.default.createElement(
3812
3824
  "input",
3813
3825
  {
3814
3826
  required: true,
@@ -3818,7 +3830,7 @@ var Input = (0, import_react15.forwardRef)(
3818
3830
  onChange: props.onChange,
3819
3831
  autoComplete: props.autoComplete,
3820
3832
  defaultValue: props.defaultValue,
3821
- placeholder: props.placeholder,
3833
+ placeholder,
3822
3834
  disabled: preview,
3823
3835
  style: { height: 40 },
3824
3836
  className: cn(
@@ -3827,7 +3839,7 @@ var Input = (0, import_react15.forwardRef)(
3827
3839
  props.endIcon && "hawa-pe-9",
3828
3840
  props.startIcon && "hawa-ps-9",
3829
3841
  preview && "hawa-border-transparent hawa-bg-transparent hawa-px-0",
3830
- (_a = props.inputProps) == null ? void 0 : _a.className
3842
+ (_b = props.inputProps) == null ? void 0 : _b.className
3831
3843
  )
3832
3844
  }
3833
3845
  )), !forceHideHelperText && /* @__PURE__ */ import_react15.default.createElement(
package/dist/index.mjs CHANGED
@@ -3384,7 +3384,10 @@ var Switch = React20.forwardRef(
3384
3384
  SwitchPrimitives.Root,
3385
3385
  {
3386
3386
  className: cn(
3387
- "hawa-relative hawa-cursor-pointer hawa-rounded hawa-bg-primary/20 hawa-outline-none data-[state=checked]:hawa-bg-primary",
3387
+ "hawa-bg-primary/20",
3388
+ // "data-[state=unchecked]:hawa-bg-primary/20",
3389
+ "data-[state=checked]:hawa-bg-primary",
3390
+ "hawa-relative hawa-cursor-pointer hawa-rounded hawa-outline-none",
3388
3391
  rootRoundednessStyles[roundedness],
3389
3392
  className,
3390
3393
  rootSize[size]
@@ -3549,9 +3552,10 @@ var Input = forwardRef9(
3549
3552
  preview = false,
3550
3553
  forceHideHelperText = false,
3551
3554
  labelProps,
3555
+ placeholder,
3552
3556
  ...props
3553
3557
  }, ref) => {
3554
- var _a;
3558
+ var _a, _b;
3555
3559
  let marginStyles = {
3556
3560
  none: "hawa-mb-0",
3557
3561
  normal: "hawa-mb-3",
@@ -3585,8 +3589,16 @@ var Input = forwardRef9(
3585
3589
  preview ? "hawa-opacity-100" : "hawa-opacity-0"
3586
3590
  )
3587
3591
  }
3588
- ), /* @__PURE__ */ React24.createElement(React24.Fragment, null, /* @__PURE__ */ React24.createElement("div", { className: cn("hawa-relative") }, props.startIcon && /* @__PURE__ */ React24.createElement("div", { className: "hawa-absolute hawa-start-3 hawa-top-1/2 hawa--translate-y-1/2" }, props.startIcon), props.endIcon && // TODO: make end-3 editable from outside
3589
- /* @__PURE__ */ React24.createElement("div", { className: "hawa-absolute hawa-end-3 hawa-top-1/2 hawa--translate-y-1/2" }, props.endIcon), /* @__PURE__ */ React24.createElement(
3592
+ ), /* @__PURE__ */ React24.createElement(React24.Fragment, null, /* @__PURE__ */ React24.createElement("div", { className: cn("hawa-relative") }, props.startIcon && /* @__PURE__ */ React24.createElement("div", { className: "hawa-absolute hawa-start-3 hawa-top-1/2 hawa--translate-y-1/2" }, props.startIcon), props.endIcon && /* @__PURE__ */ React24.createElement(
3593
+ "div",
3594
+ {
3595
+ className: cn(
3596
+ "hawa-absolute hawa-end-3 hawa-top-1/2 hawa--translate-y-1/2",
3597
+ (_a = props.endIconProps) == null ? void 0 : _a.className
3598
+ )
3599
+ },
3600
+ props.endIcon
3601
+ ), /* @__PURE__ */ React24.createElement(
3590
3602
  "input",
3591
3603
  {
3592
3604
  required: true,
@@ -3596,7 +3608,7 @@ var Input = forwardRef9(
3596
3608
  onChange: props.onChange,
3597
3609
  autoComplete: props.autoComplete,
3598
3610
  defaultValue: props.defaultValue,
3599
- placeholder: props.placeholder,
3611
+ placeholder,
3600
3612
  disabled: preview,
3601
3613
  style: { height: 40 },
3602
3614
  className: cn(
@@ -3605,7 +3617,7 @@ var Input = forwardRef9(
3605
3617
  props.endIcon && "hawa-pe-9",
3606
3618
  props.startIcon && "hawa-ps-9",
3607
3619
  preview && "hawa-border-transparent hawa-bg-transparent hawa-px-0",
3608
- (_a = props.inputProps) == null ? void 0 : _a.className
3620
+ (_b = props.inputProps) == null ? void 0 : _b.className
3609
3621
  )
3610
3622
  }
3611
3623
  )), !forceHideHelperText && /* @__PURE__ */ React24.createElement(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.18.7-next",
3
+ "version": "0.18.9-next",
4
4
  "description": "Modern UI Kit made with Tailwind",
5
5
  "author": {
6
6
  "name": "Sikka Software",