thailife-react 0.0.8 → 0.0.9

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.esm.js CHANGED
@@ -1478,10 +1478,7 @@ function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else i
1478
1478
  * Utility function to merge Tailwind CSS classes
1479
1479
  * Uses clsx for conditional classes and basic merging
1480
1480
  */
1481
- function cn() {
1482
- for (var _len = arguments.length, inputs = new Array(_len), _key = 0; _key < _len; _key++) {
1483
- inputs[_key] = arguments[_key];
1484
- }
1481
+ function cn(...inputs) {
1485
1482
  return clsx(inputs);
1486
1483
  }
1487
1484
 
@@ -1547,7 +1544,7 @@ const Input = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
1547
1544
  id
1548
1545
  } = _ref,
1549
1546
  props = _objectWithoutProperties(_ref, _excluded$5);
1550
- const inputId = id || "input-".concat(Math.random().toString(36).substr(2, 9));
1547
+ const inputId = id || `input-${Math.random().toString(36).substr(2, 9)}`;
1551
1548
  const sizes = {
1552
1549
  sm: "px-3 py-1.5 text-sm",
1553
1550
  md: "px-4 py-2 text-sm",
@@ -1586,7 +1583,7 @@ const Textarea = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
1586
1583
  id
1587
1584
  } = _ref,
1588
1585
  props = _objectWithoutProperties(_ref, _excluded$4);
1589
- const textareaId = id || "textarea-".concat(Math.random().toString(36).substr(2, 9));
1586
+ const textareaId = id || `textarea-${Math.random().toString(36).substr(2, 9)}`;
1590
1587
  const sizes = {
1591
1588
  sm: "px-3 py-1.5 text-sm",
1592
1589
  md: "px-4 py-2 text-sm",
@@ -1627,7 +1624,7 @@ const InputFile = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
1627
1624
  id
1628
1625
  } = _ref,
1629
1626
  props = _objectWithoutProperties(_ref, _excluded$3);
1630
- const inputId = id || "file-input-".concat(Math.random().toString(36).substr(2, 9));
1627
+ const inputId = id || `file-input-${Math.random().toString(36).substr(2, 9)}`;
1631
1628
  const sizes = {
1632
1629
  sm: "px-3 py-1.5 text-sm",
1633
1630
  md: "px-4 py-2 text-sm",
@@ -1680,7 +1677,7 @@ const Checkbox = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
1680
1677
  id
1681
1678
  } = _ref,
1682
1679
  props = _objectWithoutProperties(_ref, _excluded$2);
1683
- const checkboxId = id || "checkbox-".concat(Math.random().toString(36).substr(2, 9));
1680
+ const checkboxId = id || `checkbox-${Math.random().toString(36).substr(2, 9)}`;
1684
1681
  const sizes = {
1685
1682
  sm: "w-4 h-4",
1686
1683
  md: "w-5 h-5",
@@ -1734,7 +1731,7 @@ const Radio = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
1734
1731
  id
1735
1732
  } = _ref,
1736
1733
  props = _objectWithoutProperties(_ref, _excluded$1);
1737
- const radioId = id || "radio-".concat(Math.random().toString(36).substr(2, 9));
1734
+ const radioId = id || `radio-${Math.random().toString(36).substr(2, 9)}`;
1738
1735
  const sizes = {
1739
1736
  sm: "w-4 h-4",
1740
1737
  md: "w-5 h-5",
@@ -1785,7 +1782,7 @@ const Select = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
1785
1782
  id
1786
1783
  } = _ref,
1787
1784
  props = _objectWithoutProperties(_ref, _excluded);
1788
- const selectId = id || "select-".concat(Math.random().toString(36).substr(2, 9));
1785
+ const selectId = id || `select-${Math.random().toString(36).substr(2, 9)}`;
1789
1786
  const sizes = {
1790
1787
  sm: "px-3 py-1.5 text-sm",
1791
1788
  md: "px-4 py-2 text-sm",