thailife-react 0.0.9 → 0.0.11
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.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +37 -47
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +39 -46
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,sBAAsB,CAAC;AAG9B,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,YAAY,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAE9D,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACjD,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAE3D,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,YAAY,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,YAAY,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAEvE,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,YAAY,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACjD,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAE3D,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAkB5E,OAAO,EAAE,EAAE,EAAE,MAAM,YAAY,CAAC;AAGhC,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,sBAAsB,CAAC;AAG9B,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,YAAY,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAE9D,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACjD,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAE3D,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,YAAY,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,YAAY,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAEvE,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,YAAY,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACjD,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAE3D,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAkB5E,OAAO,EAAE,EAAE,EAAE,MAAM,YAAY,CAAC;AAGhC,OAAO,EAAE,KAAK,EAAE,CAAC;AAGjB,eAAe,KAAK,CAAC"}
|
package/dist/index.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
export { default as React } from 'react';
|
|
3
|
+
export { default as React, default } from 'react';
|
|
4
4
|
|
|
5
5
|
function styleInject(css, ref) {
|
|
6
6
|
if ( ref === void 0 ) ref = {};
|
|
@@ -32,41 +32,14 @@ function styleInject(css, ref) {
|
|
|
32
32
|
var css_248z = "*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:\"\"}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:Inter,system-ui,sans-serif;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.pointer-events-none{pointer-events:none}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.inset-y-0{bottom:0;top:0}.right-0{right:0}.mb-1{margin-bottom:.25rem}.ml-1{margin-left:.25rem}.ml-3{margin-left:.75rem}.mt-1{margin-top:.25rem}.flex{display:flex}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-full{height:100%}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-full{width:100%}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.rounded{border-radius:.25rem}.border{border-width:1px}.border-2{border-width:2px}.border-dashed{border-style:dashed}.border-dark{--tw-border-opacity:1;border-color:rgb(51 51 51/var(--tw-border-opacity,1))}.border-error{--tw-border-opacity:1;border-color:rgb(255 17 0/var(--tw-border-opacity,1))}.border-light{--tw-border-opacity:1;border-color:rgb(102 102 102/var(--tw-border-opacity,1))}.border-primary{--tw-border-opacity:1;border-color:rgb(0 122 194/var(--tw-border-opacity,1))}.border-red-500{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity,1))}.bg-dark{--tw-bg-opacity:1;background-color:rgb(51 51 51/var(--tw-bg-opacity,1))}.bg-error{--tw-bg-opacity:1;background-color:rgb(255 17 0/var(--tw-bg-opacity,1))}.bg-light{--tw-bg-opacity:1;background-color:rgb(102 102 102/var(--tw-bg-opacity,1))}.bg-primary{--tw-bg-opacity:1;background-color:rgb(0 122 194/var(--tw-bg-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1\\.5{padding-bottom:.375rem;padding-top:.375rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.pr-3{padding-right:.75rem}.text-base{font-size:1rem;line-height:1.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.text-dark{--tw-text-opacity:1;color:rgb(51 51 51/var(--tw-text-opacity,1))}.text-error{--tw-text-opacity:1;color:rgb(255 17 0/var(--tw-text-opacity,1))}.text-light{--tw-text-opacity:1;color:rgb(102 102 102/var(--tw-text-opacity,1))}.text-primary{--tw-text-opacity:1;color:rgb(0 122 194/var(--tw-text-opacity,1))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-50{opacity:.5}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-300{transition-duration:.3s}.hover\\:border-primary\\/60:hover{border-color:rgba(0,122,194,.6)}.hover\\:border-red-400:hover{--tw-border-opacity:1;border-color:rgb(248 113 113/var(--tw-border-opacity,1))}.hover\\:bg-dark\\/10:hover{background-color:rgba(51,51,51,.1)}.hover\\:bg-dark\\/80:hover{background-color:rgba(51,51,51,.8)}.hover\\:bg-error\\/10:hover{background-color:rgba(255,17,0,.1)}.hover\\:bg-error\\/80:hover{background-color:rgba(255,17,0,.8)}.hover\\:bg-light\\/10:hover{background-color:hsla(0,0%,40%,.1)}.hover\\:bg-light\\/80:hover{background-color:hsla(0,0%,40%,.8)}.hover\\:bg-primary\\/10:hover{background-color:rgba(0,122,194,.1)}.hover\\:bg-primary\\/80:hover{background-color:rgba(0,122,194,.8)}.focus\\:border-primary:focus{--tw-border-opacity:1;border-color:rgb(0 122 194/var(--tw-border-opacity,1))}.focus\\:border-transparent:focus{border-color:transparent}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-primary:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(0 122 194/var(--tw-ring-opacity,1))}.focus\\:ring-red-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(239 68 68/var(--tw-ring-opacity,1))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}";
|
|
33
33
|
styleInject(css_248z,{"insertAt":"top"});
|
|
34
34
|
|
|
35
|
-
function _typeof(o) {
|
|
36
|
-
"@babel/helpers - typeof";
|
|
37
|
-
|
|
38
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
39
|
-
return typeof o;
|
|
40
|
-
} : function (o) {
|
|
41
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
42
|
-
}, _typeof(o);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
function toPrimitive(t, r) {
|
|
46
|
-
if ("object" != _typeof(t) || !t) return t;
|
|
47
|
-
var e = t[Symbol.toPrimitive];
|
|
48
|
-
if (void 0 !== e) {
|
|
49
|
-
var i = e.call(t, r);
|
|
50
|
-
if ("object" != _typeof(i)) return i;
|
|
51
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
52
|
-
}
|
|
53
|
-
return ("string" === r ? String : Number)(t);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
function toPropertyKey(t) {
|
|
57
|
-
var i = toPrimitive(t, "string");
|
|
58
|
-
return "symbol" == _typeof(i) ? i : i + "";
|
|
59
|
-
}
|
|
60
|
-
|
|
61
35
|
function _defineProperty(e, r, t) {
|
|
62
|
-
return (r =
|
|
36
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
63
37
|
value: t,
|
|
64
38
|
enumerable: true,
|
|
65
39
|
configurable: true,
|
|
66
40
|
writable: true
|
|
67
41
|
}) : e[r] = t, e;
|
|
68
42
|
}
|
|
69
|
-
|
|
70
43
|
function ownKeys(e, r) {
|
|
71
44
|
var t = Object.keys(e);
|
|
72
45
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -88,17 +61,6 @@ function _objectSpread2(e) {
|
|
|
88
61
|
}
|
|
89
62
|
return e;
|
|
90
63
|
}
|
|
91
|
-
|
|
92
|
-
function _objectWithoutPropertiesLoose(r, e) {
|
|
93
|
-
if (null == r) return {};
|
|
94
|
-
var t = {};
|
|
95
|
-
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
96
|
-
if (-1 !== e.indexOf(n)) continue;
|
|
97
|
-
t[n] = r[n];
|
|
98
|
-
}
|
|
99
|
-
return t;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
64
|
function _objectWithoutProperties(e, t) {
|
|
103
65
|
if (null == e) return {};
|
|
104
66
|
var o,
|
|
@@ -110,6 +72,29 @@ function _objectWithoutProperties(e, t) {
|
|
|
110
72
|
}
|
|
111
73
|
return i;
|
|
112
74
|
}
|
|
75
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
76
|
+
if (null == r) return {};
|
|
77
|
+
var t = {};
|
|
78
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
79
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
80
|
+
t[n] = r[n];
|
|
81
|
+
}
|
|
82
|
+
return t;
|
|
83
|
+
}
|
|
84
|
+
function _toPrimitive(t, r) {
|
|
85
|
+
if ("object" != typeof t || !t) return t;
|
|
86
|
+
var e = t[Symbol.toPrimitive];
|
|
87
|
+
if (void 0 !== e) {
|
|
88
|
+
var i = e.call(t, r);
|
|
89
|
+
if ("object" != typeof i) return i;
|
|
90
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
91
|
+
}
|
|
92
|
+
return ("string" === r ? String : Number)(t);
|
|
93
|
+
}
|
|
94
|
+
function _toPropertyKey(t) {
|
|
95
|
+
var i = _toPrimitive(t, "string");
|
|
96
|
+
return "symbol" == typeof i ? i : i + "";
|
|
97
|
+
}
|
|
113
98
|
|
|
114
99
|
function getDefaultExportFromNamespaceIfNotNamed (n) {
|
|
115
100
|
return n && Object.prototype.hasOwnProperty.call(n, 'default') && Object.keys(n).length === 1 ? n['default'] : n;
|
|
@@ -1478,7 +1463,10 @@ function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else i
|
|
|
1478
1463
|
* Utility function to merge Tailwind CSS classes
|
|
1479
1464
|
* Uses clsx for conditional classes and basic merging
|
|
1480
1465
|
*/
|
|
1481
|
-
function cn(
|
|
1466
|
+
function cn() {
|
|
1467
|
+
for (var _len = arguments.length, inputs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
1468
|
+
inputs[_key] = arguments[_key];
|
|
1469
|
+
}
|
|
1482
1470
|
return clsx(inputs);
|
|
1483
1471
|
}
|
|
1484
1472
|
|
|
@@ -1544,7 +1532,7 @@ const Input = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
1544
1532
|
id
|
|
1545
1533
|
} = _ref,
|
|
1546
1534
|
props = _objectWithoutProperties(_ref, _excluded$5);
|
|
1547
|
-
const inputId = id ||
|
|
1535
|
+
const inputId = id || "input-".concat(Math.random().toString(36).substr(2, 9));
|
|
1548
1536
|
const sizes = {
|
|
1549
1537
|
sm: "px-3 py-1.5 text-sm",
|
|
1550
1538
|
md: "px-4 py-2 text-sm",
|
|
@@ -1583,7 +1571,7 @@ const Textarea = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
1583
1571
|
id
|
|
1584
1572
|
} = _ref,
|
|
1585
1573
|
props = _objectWithoutProperties(_ref, _excluded$4);
|
|
1586
|
-
const textareaId = id ||
|
|
1574
|
+
const textareaId = id || "textarea-".concat(Math.random().toString(36).substr(2, 9));
|
|
1587
1575
|
const sizes = {
|
|
1588
1576
|
sm: "px-3 py-1.5 text-sm",
|
|
1589
1577
|
md: "px-4 py-2 text-sm",
|
|
@@ -1624,7 +1612,7 @@ const InputFile = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
1624
1612
|
id
|
|
1625
1613
|
} = _ref,
|
|
1626
1614
|
props = _objectWithoutProperties(_ref, _excluded$3);
|
|
1627
|
-
const inputId = id ||
|
|
1615
|
+
const inputId = id || "file-input-".concat(Math.random().toString(36).substr(2, 9));
|
|
1628
1616
|
const sizes = {
|
|
1629
1617
|
sm: "px-3 py-1.5 text-sm",
|
|
1630
1618
|
md: "px-4 py-2 text-sm",
|
|
@@ -1677,7 +1665,7 @@ const Checkbox = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
1677
1665
|
id
|
|
1678
1666
|
} = _ref,
|
|
1679
1667
|
props = _objectWithoutProperties(_ref, _excluded$2);
|
|
1680
|
-
const checkboxId = id ||
|
|
1668
|
+
const checkboxId = id || "checkbox-".concat(Math.random().toString(36).substr(2, 9));
|
|
1681
1669
|
const sizes = {
|
|
1682
1670
|
sm: "w-4 h-4",
|
|
1683
1671
|
md: "w-5 h-5",
|
|
@@ -1731,7 +1719,7 @@ const Radio = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
1731
1719
|
id
|
|
1732
1720
|
} = _ref,
|
|
1733
1721
|
props = _objectWithoutProperties(_ref, _excluded$1);
|
|
1734
|
-
const radioId = id ||
|
|
1722
|
+
const radioId = id || "radio-".concat(Math.random().toString(36).substr(2, 9));
|
|
1735
1723
|
const sizes = {
|
|
1736
1724
|
sm: "w-4 h-4",
|
|
1737
1725
|
md: "w-5 h-5",
|
|
@@ -1782,7 +1770,7 @@ const Select = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
1782
1770
|
id
|
|
1783
1771
|
} = _ref,
|
|
1784
1772
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
1785
|
-
const selectId = id ||
|
|
1773
|
+
const selectId = id || "select-".concat(Math.random().toString(36).substr(2, 9));
|
|
1786
1774
|
const sizes = {
|
|
1787
1775
|
sm: "px-3 py-1.5 text-sm",
|
|
1788
1776
|
md: "px-4 py-2 text-sm",
|
|
@@ -1834,5 +1822,7 @@ const Select = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
1834
1822
|
});
|
|
1835
1823
|
Select.displayName = "Select";
|
|
1836
1824
|
|
|
1825
|
+
// Ensure React is available before importing components
|
|
1826
|
+
|
|
1837
1827
|
export { Button, Checkbox, Input, InputFile, Radio, Select, Textarea, cn };
|
|
1838
1828
|
//# sourceMappingURL=index.esm.js.map
|