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 +7 -10
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +7 -10
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1497,10 +1497,7 @@ function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else i
|
|
|
1497
1497
|
* Utility function to merge Tailwind CSS classes
|
|
1498
1498
|
* Uses clsx for conditional classes and basic merging
|
|
1499
1499
|
*/
|
|
1500
|
-
function cn() {
|
|
1501
|
-
for (var _len = arguments.length, inputs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
1502
|
-
inputs[_key] = arguments[_key];
|
|
1503
|
-
}
|
|
1500
|
+
function cn(...inputs) {
|
|
1504
1501
|
return clsx(inputs);
|
|
1505
1502
|
}
|
|
1506
1503
|
|
|
@@ -1566,7 +1563,7 @@ const Input = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
1566
1563
|
id
|
|
1567
1564
|
} = _ref,
|
|
1568
1565
|
props = _objectWithoutProperties(_ref, _excluded$5);
|
|
1569
|
-
const inputId = id ||
|
|
1566
|
+
const inputId = id || `input-${Math.random().toString(36).substr(2, 9)}`;
|
|
1570
1567
|
const sizes = {
|
|
1571
1568
|
sm: "px-3 py-1.5 text-sm",
|
|
1572
1569
|
md: "px-4 py-2 text-sm",
|
|
@@ -1605,7 +1602,7 @@ const Textarea = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
1605
1602
|
id
|
|
1606
1603
|
} = _ref,
|
|
1607
1604
|
props = _objectWithoutProperties(_ref, _excluded$4);
|
|
1608
|
-
const textareaId = id ||
|
|
1605
|
+
const textareaId = id || `textarea-${Math.random().toString(36).substr(2, 9)}`;
|
|
1609
1606
|
const sizes = {
|
|
1610
1607
|
sm: "px-3 py-1.5 text-sm",
|
|
1611
1608
|
md: "px-4 py-2 text-sm",
|
|
@@ -1646,7 +1643,7 @@ const InputFile = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
1646
1643
|
id
|
|
1647
1644
|
} = _ref,
|
|
1648
1645
|
props = _objectWithoutProperties(_ref, _excluded$3);
|
|
1649
|
-
const inputId = id ||
|
|
1646
|
+
const inputId = id || `file-input-${Math.random().toString(36).substr(2, 9)}`;
|
|
1650
1647
|
const sizes = {
|
|
1651
1648
|
sm: "px-3 py-1.5 text-sm",
|
|
1652
1649
|
md: "px-4 py-2 text-sm",
|
|
@@ -1699,7 +1696,7 @@ const Checkbox = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
1699
1696
|
id
|
|
1700
1697
|
} = _ref,
|
|
1701
1698
|
props = _objectWithoutProperties(_ref, _excluded$2);
|
|
1702
|
-
const checkboxId = id ||
|
|
1699
|
+
const checkboxId = id || `checkbox-${Math.random().toString(36).substr(2, 9)}`;
|
|
1703
1700
|
const sizes = {
|
|
1704
1701
|
sm: "w-4 h-4",
|
|
1705
1702
|
md: "w-5 h-5",
|
|
@@ -1753,7 +1750,7 @@ const Radio = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
1753
1750
|
id
|
|
1754
1751
|
} = _ref,
|
|
1755
1752
|
props = _objectWithoutProperties(_ref, _excluded$1);
|
|
1756
|
-
const radioId = id ||
|
|
1753
|
+
const radioId = id || `radio-${Math.random().toString(36).substr(2, 9)}`;
|
|
1757
1754
|
const sizes = {
|
|
1758
1755
|
sm: "w-4 h-4",
|
|
1759
1756
|
md: "w-5 h-5",
|
|
@@ -1804,7 +1801,7 @@ const Select = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
1804
1801
|
id
|
|
1805
1802
|
} = _ref,
|
|
1806
1803
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
1807
|
-
const selectId = id ||
|
|
1804
|
+
const selectId = id || `select-${Math.random().toString(36).substr(2, 9)}`;
|
|
1808
1805
|
const sizes = {
|
|
1809
1806
|
sm: "px-3 py-1.5 text-sm",
|
|
1810
1807
|
md: "px-4 py-2 text-sm",
|