@sikka/hawa 0.10.6-next → 0.10.7-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
@@ -412,11 +412,14 @@ video {
412
412
  --error-foreground: 0 0% 98%;
413
413
  --border: 240 5.9% 90%;
414
414
  --input: 240 5.9% 90%;
415
+ --helper-text: 0 72% 51%;
415
416
  --ring: 240 5% 64.9%;
416
417
  --radius: 0.5rem;
417
418
  --radius-inner: calc(var(--radius) - calc(var(--radius) / 3));
418
419
  }
419
420
  .dark {
421
+ --helper-text: 0 84% 60%;
422
+ /* --helper-text: 61 97% 45%; */
420
423
  --background: 240 10% 3.9%;
421
424
  --foreground: 0 0% 98%;
422
425
  --card: 0 0% 2%;
@@ -660,16 +663,6 @@ input[type="number"]::-webkit-inner-spin-button,
660
663
  height: 1rem;
661
664
  width: 1rem;
662
665
  }
663
- .helper-text {
664
- font-size: 0.75rem;
665
- line-height: 1rem;
666
- --tw-text-opacity: 1;
667
- color: rgb(220 38 38 / var(--tw-text-opacity));
668
- }
669
- :is([data-mode="dark"] .helper-text) {
670
- --tw-text-opacity: 1;
671
- color: rgb(239 68 68 / var(--tw-text-opacity));
672
- }
673
666
  .ddm-w-parent {
674
667
  width: var(--radix-dropdown-menu-trigger-width);
675
668
  }
@@ -883,6 +876,10 @@ input[type="number"]::-webkit-inner-spin-button,
883
876
  margin-left: 1rem;
884
877
  margin-right: 1rem;
885
878
  }
879
+ .hawa-my-0 {
880
+ margin-top: 0px;
881
+ margin-bottom: 0px;
882
+ }
886
883
  .hawa-my-1 {
887
884
  margin-top: 0.25rem;
888
885
  margin-bottom: 0.25rem;
@@ -2362,6 +2359,9 @@ input[type="number"]::-webkit-inner-spin-button,
2362
2359
  --tw-text-opacity: 1;
2363
2360
  color: rgb(21 128 61 / var(--tw-text-opacity));
2364
2361
  }
2362
+ .hawa-text-helper-color {
2363
+ color: hsl(var(--helper-text));
2364
+ }
2365
2365
  .hawa-text-info-foreground {
2366
2366
  --tw-text-opacity: 1;
2367
2367
  color: hsl(var(--info-foreground) / var(--tw-text-opacity));
@@ -2412,10 +2412,6 @@ input[type="number"]::-webkit-inner-spin-button,
2412
2412
  --tw-text-opacity: 1;
2413
2413
  color: rgb(239 68 68 / var(--tw-text-opacity));
2414
2414
  }
2415
- .hawa-text-red-600 {
2416
- --tw-text-opacity: 1;
2417
- color: rgb(220 38 38 / var(--tw-text-opacity));
2418
- }
2419
2415
  .hawa-text-red-700 {
2420
2416
  --tw-text-opacity: 1;
2421
2417
  color: rgb(185 28 28 / var(--tw-text-opacity));
@@ -3391,10 +3387,6 @@ body {
3391
3387
  :is([data-mode="dark"] .dark\:hawa-text-muted-foreground) {
3392
3388
  color: hsl(var(--muted-foreground));
3393
3389
  }
3394
- :is([data-mode="dark"] .dark\:hawa-text-red-500) {
3395
- --tw-text-opacity: 1;
3396
- color: rgb(239 68 68 / var(--tw-text-opacity));
3397
- }
3398
3390
  :is([data-mode="dark"] .dark\:hawa-text-red-800) {
3399
3391
  --tw-text-opacity: 1;
3400
3392
  color: rgb(153 27 27 / var(--tw-text-opacity));
package/dist/index.js CHANGED
@@ -1815,7 +1815,7 @@ var Checkbox = function(_param) {
1815
1815
  className: cn("hawa-cursor-pointer hawa-select-none hawa-text-sm hawa-text-muted-foreground", checkboxProps.disabled && "hawa-cursor-not-allowed hawa-text-muted-foreground hawa-opacity-70")
1816
1816
  }, sublabel), helperText && !checkboxProps.disabled && /* @__PURE__ */ React15.createElement("label", {
1817
1817
  htmlFor: id,
1818
- className: cn("hawa-select-none helper-text", checkboxProps.disabled && "hawa-cursor-not-allowed hawa-opacity-70")
1818
+ className: cn("hawa-select-none hawa-text-xs hawa-text-helper-color", checkboxProps.disabled && "hawa-cursor-not-allowed hawa-opacity-70")
1819
1819
  }, helperText)));
1820
1820
  };
1821
1821
  var CheckboxElement = React15.forwardRef(function(_param, ref) /* @__PURE__ */ {
@@ -2486,7 +2486,7 @@ var Textarea = React26.forwardRef(function(_param, ref) {
2486
2486
  className: cn("hawa-flex hawa-min-h-[80px] hawa-w-full hawa-rounded-md hawa-border hawa-border-input hawa-bg-background hawa-px-3 hawa-py-2 hawa-text-sm hawa-ring-offset-background placeholder:hawa-text-muted-foreground focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-cursor-not-allowed disabled:hawa-opacity-50", className),
2487
2487
  ref: ref
2488
2488
  }, props)), props.helperText && /* @__PURE__ */ React26.createElement("p", {
2489
- className: "helper-text"
2489
+ className: "hawa-text-xs hawa-text-helper-color"
2490
2490
  }, props.helperText));
2491
2491
  });
2492
2492
  Textarea.displayName = "Textarea";
@@ -2617,7 +2617,7 @@ var PinInput = function(_param) {
2617
2617
  }
2618
2618
  }, props));
2619
2619
  })), props.helperText && /* @__PURE__ */ import_react18.default.createElement("p", {
2620
- className: "hawa-mb-0 hawa-mt-0 hawa-text-xs hawa-text-red-600 dark:hawa-text-red-500"
2620
+ className: "hawa-my-0 hawa-text-xs hawa-text-helper-color"
2621
2621
  }, props.helperText));
2622
2622
  };
2623
2623
  // components/elements/FileDropzone.tsx
@@ -4652,7 +4652,7 @@ var Select = function(_param) {
4652
4652
  return props.onInputChange(newValue, action);
4653
4653
  }
4654
4654
  }), props.helperText && /* @__PURE__ */ import_react20.default.createElement("p", {
4655
- className: "helper-text"
4655
+ className: "hawa-text-xs hawa-text-helper-color"
4656
4656
  }, props.helperText));
4657
4657
  };
4658
4658
  // components/elements/PhoneInput.tsx
@@ -4702,7 +4702,7 @@ var PhoneInput = function(props) {
4702
4702
  type: "tel",
4703
4703
  placeholder: "531045453"
4704
4704
  }))), props.helperText && /* @__PURE__ */ import_react21.default.createElement("p", {
4705
- className: "hawa-mt-0 hawa-text-xs hawa-text-red-600 dark:hawa-text-red-500"
4705
+ className: "hawa-my-0 hawa-text-xs hawa-text-helper-color"
4706
4706
  }, props.helperText));
4707
4707
  };
4708
4708
  {}// components/elements/AppStores.tsx
@@ -4955,7 +4955,7 @@ var Input = function(_param) {
4955
4955
  })), props.iconInside && /* @__PURE__ */ import_react24.default.createElement("div", {
4956
4956
  className: "hawa-absolute hawa-right-1 hawa-top-[41px] hawa--translate-y-1/2"
4957
4957
  }, props.iconInside), props.helperText && /* @__PURE__ */ import_react24.default.createElement("p", {
4958
- className: "hawa-mb-0 hawa-mt-0 hawa-text-xs hawa-text-red-600 dark:hawa-text-red-500"
4958
+ className: "hawa-my-0 hawa-text-xs hawa-text-helper-color"
4959
4959
  }, props.helperText))));
4960
4960
  };
4961
4961
  // components/elements/DataTable.tsx
@@ -6055,7 +6055,7 @@ var Combobox = function(_param) {
6055
6055
  points: "20 6 9 17 4 12"
6056
6056
  })), getProperty(item, labelKey));
6057
6057
  }))))), props.helperText && /* @__PURE__ */ React47.createElement("p", {
6058
- className: "helper-text"
6058
+ className: "hawa-text-xs hawa-text-helper-color"
6059
6059
  }, props.helperText));
6060
6060
  };
6061
6061
  // components/elements/Count.tsx
package/dist/index.mjs CHANGED
@@ -1240,7 +1240,7 @@ var Checkbox = ({
1240
1240
  {
1241
1241
  htmlFor: id,
1242
1242
  className: cn(
1243
- "hawa-select-none helper-text",
1243
+ "hawa-select-none hawa-text-xs hawa-text-helper-color",
1244
1244
  checkboxProps.disabled && "hawa-cursor-not-allowed hawa-opacity-70"
1245
1245
  )
1246
1246
  },
@@ -2045,7 +2045,7 @@ var Textarea = React26.forwardRef(
2045
2045
  ref,
2046
2046
  ...props
2047
2047
  }
2048
- ), props.helperText && /* @__PURE__ */ React26.createElement("p", { className: "helper-text" }, props.helperText));
2048
+ ), props.helperText && /* @__PURE__ */ React26.createElement("p", { className: "hawa-text-xs hawa-text-helper-color" }, props.helperText));
2049
2049
  }
2050
2050
  );
2051
2051
  Textarea.displayName = "Textarea";
@@ -2200,7 +2200,7 @@ var PinInput = ({
2200
2200
  ...props
2201
2201
  }
2202
2202
  ))
2203
- ), props.helperText && /* @__PURE__ */ React29.createElement("p", { className: "hawa-mb-0 hawa-mt-0 hawa-text-xs hawa-text-red-600 dark:hawa-text-red-500" }, props.helperText));
2203
+ ), props.helperText && /* @__PURE__ */ React29.createElement("p", { className: "hawa-my-0 hawa-text-xs hawa-text-helper-color" }, props.helperText));
2204
2204
  };
2205
2205
 
2206
2206
  // components/elements/FileDropzone.tsx
@@ -4252,7 +4252,7 @@ var Select = ({ labelKey = "label", ...props }) => {
4252
4252
  onInputChange: (newValue, action) => props.onInputChange(newValue, action)
4253
4253
  }
4254
4254
  ),
4255
- props.helperText && /* @__PURE__ */ React31.createElement("p", { className: "helper-text" }, props.helperText)
4255
+ props.helperText && /* @__PURE__ */ React31.createElement("p", { className: "hawa-text-xs hawa-text-helper-color" }, props.helperText)
4256
4256
  );
4257
4257
  };
4258
4258
 
@@ -4302,7 +4302,7 @@ var PhoneInput = (props) => {
4302
4302
  type: "tel",
4303
4303
  placeholder: "531045453"
4304
4304
  }
4305
- ))), props.helperText && /* @__PURE__ */ React32.createElement("p", { className: "hawa-mt-0 hawa-text-xs hawa-text-red-600 dark:hawa-text-red-500" }, props.helperText));
4305
+ ))), props.helperText && /* @__PURE__ */ React32.createElement("p", { className: "hawa-my-0 hawa-text-xs hawa-text-helper-color" }, props.helperText));
4306
4306
  };
4307
4307
  {
4308
4308
  }
@@ -4595,7 +4595,7 @@ var Input = ({
4595
4595
  disabled: preview,
4596
4596
  style: { height: 40 }
4597
4597
  }
4598
- )), props.iconInside && /* @__PURE__ */ React36.createElement("div", { className: "hawa-absolute hawa-right-1 hawa-top-[41px] hawa--translate-y-1/2" }, props.iconInside), props.helperText && /* @__PURE__ */ React36.createElement("p", { className: "hawa-mb-0 hawa-mt-0 hawa-text-xs hawa-text-red-600 dark:hawa-text-red-500" }, props.helperText)))
4598
+ )), props.iconInside && /* @__PURE__ */ React36.createElement("div", { className: "hawa-absolute hawa-right-1 hawa-top-[41px] hawa--translate-y-1/2" }, props.iconInside), props.helperText && /* @__PURE__ */ React36.createElement("p", { className: "hawa-my-0 hawa-text-xs hawa-text-helper-color" }, props.helperText)))
4599
4599
  );
4600
4600
  };
4601
4601
 
@@ -5751,7 +5751,7 @@ var Combobox = ({
5751
5751
  ),
5752
5752
  getProperty(item, labelKey)
5753
5753
  )))))),
5754
- props.helperText && /* @__PURE__ */ React47.createElement("p", { className: "helper-text" }, props.helperText)
5754
+ props.helperText && /* @__PURE__ */ React47.createElement("p", { className: "hawa-text-xs hawa-text-helper-color" }, props.helperText)
5755
5755
  );
5756
5756
  };
5757
5757
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.10.6-next",
3
+ "version": "0.10.7-next",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {