thailife-react 0.0.1 → 0.0.3

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.js CHANGED
@@ -32,6 +32,70 @@ 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 _defineProperty(e, r, t) {
36
+ return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
37
+ value: t,
38
+ enumerable: true,
39
+ configurable: true,
40
+ writable: true
41
+ }) : e[r] = t, e;
42
+ }
43
+ function ownKeys(e, r) {
44
+ var t = Object.keys(e);
45
+ if (Object.getOwnPropertySymbols) {
46
+ var o = Object.getOwnPropertySymbols(e);
47
+ r && (o = o.filter(function (r) {
48
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
49
+ })), t.push.apply(t, o);
50
+ }
51
+ return t;
52
+ }
53
+ function _objectSpread2(e) {
54
+ for (var r = 1; r < arguments.length; r++) {
55
+ var t = null != arguments[r] ? arguments[r] : {};
56
+ r % 2 ? ownKeys(Object(t), true).forEach(function (r) {
57
+ _defineProperty(e, r, t[r]);
58
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
59
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
60
+ });
61
+ }
62
+ return e;
63
+ }
64
+ function _objectWithoutProperties(e, t) {
65
+ if (null == e) return {};
66
+ var o,
67
+ r,
68
+ i = _objectWithoutPropertiesLoose(e, t);
69
+ if (Object.getOwnPropertySymbols) {
70
+ var n = Object.getOwnPropertySymbols(e);
71
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
72
+ }
73
+ return i;
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
+ }
98
+
35
99
  var jsxRuntime = {exports: {}};
36
100
 
37
101
  var reactJsxRuntime_production_min = {};
@@ -1393,21 +1457,26 @@ function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else i
1393
1457
  * Utility function to merge Tailwind CSS classes
1394
1458
  * Uses clsx for conditional classes and basic merging
1395
1459
  */
1396
- function cn(...inputs) {
1460
+ function cn() {
1461
+ for (var _len = arguments.length, inputs = new Array(_len), _key = 0; _key < _len; _key++) {
1462
+ inputs[_key] = arguments[_key];
1463
+ }
1397
1464
  return clsx(inputs);
1398
1465
  }
1399
1466
 
1400
- const Button = /*#__PURE__*/React.forwardRef(({
1401
- className,
1402
- color = "primary",
1403
- variant = "contained",
1404
- size = "md",
1405
- fullWidth = false,
1406
- loading = false,
1407
- disabled,
1408
- children,
1409
- ...props
1410
- }, ref) => {
1467
+ const _excluded$6 = ["className", "color", "variant", "size", "fullWidth", "loading", "disabled", "children"];
1468
+ const Button = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1469
+ let {
1470
+ className,
1471
+ color = "primary",
1472
+ variant = "contained",
1473
+ size = "md",
1474
+ fullWidth = false,
1475
+ loading = false,
1476
+ disabled,
1477
+ children
1478
+ } = _ref,
1479
+ props = _objectWithoutProperties(_ref, _excluded$6);
1411
1480
  const baseClasses = cn(className, "btn transition-all duration-300 flex items-center justify-center");
1412
1481
  const variants = {
1413
1482
  contained: {
@@ -1434,28 +1503,30 @@ const Button = /*#__PURE__*/React.forwardRef(({
1434
1503
  md: "px-4 py-2 text-sm",
1435
1504
  lg: "px-6 py-3 text-base"
1436
1505
  };
1437
- return jsxRuntimeExports.jsx("button", {
1506
+ return jsxRuntimeExports.jsx("button", _objectSpread2(_objectSpread2({
1438
1507
  className: cn(baseClasses, variants[variant][color], sizes[size], fullWidth && "w-full", (disabled || loading) && "opacity-50 cursor-not-allowed", className),
1439
1508
  ref: ref,
1440
- disabled: disabled || loading,
1441
- ...props,
1509
+ disabled: disabled || loading
1510
+ }, props), {}, {
1442
1511
  children: children
1443
- });
1512
+ }));
1444
1513
  });
1445
1514
  Button.displayName = "Button";
1446
1515
 
1447
- const Input = /*#__PURE__*/React.forwardRef(({
1448
- className,
1449
- type = "text",
1450
- label,
1451
- error,
1452
- helperText,
1453
- size = "md",
1454
- fullWidth = false,
1455
- id,
1456
- ...props
1457
- }, ref) => {
1458
- const inputId = id || `input-${Math.random().toString(36).substr(2, 9)}`;
1516
+ const _excluded$5 = ["className", "type", "label", "error", "helperText", "size", "fullWidth", "id"];
1517
+ const Input = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1518
+ let {
1519
+ className,
1520
+ type = "text",
1521
+ label,
1522
+ error,
1523
+ helperText,
1524
+ size = "md",
1525
+ fullWidth = false,
1526
+ id
1527
+ } = _ref,
1528
+ props = _objectWithoutProperties(_ref, _excluded$5);
1529
+ const inputId = id || "input-".concat(Math.random().toString(36).substr(2, 9));
1459
1530
  const sizes = {
1460
1531
  sm: "px-3 py-1.5 text-sm",
1461
1532
  md: "px-4 py-2 text-sm",
@@ -1468,13 +1539,12 @@ const Input = /*#__PURE__*/React.forwardRef(({
1468
1539
  htmlFor: inputId,
1469
1540
  className: "mb-1 text-sm font-medium text-secondary-700",
1470
1541
  children: label
1471
- }), jsxRuntimeExports.jsx("input", {
1542
+ }), jsxRuntimeExports.jsx("input", _objectSpread2({
1472
1543
  type: type,
1473
1544
  className: baseClasses,
1474
1545
  ref: ref,
1475
- id: inputId,
1476
- ...props
1477
- }), (error || helperText) && jsxRuntimeExports.jsx("p", {
1546
+ id: inputId
1547
+ }, props)), (error || helperText) && jsxRuntimeExports.jsx("p", {
1478
1548
  className: cn("mt-1 text-xs", error ? "text-red-600" : "text-secondary-500"),
1479
1549
  children: error || helperText
1480
1550
  })]
@@ -1482,18 +1552,20 @@ const Input = /*#__PURE__*/React.forwardRef(({
1482
1552
  });
1483
1553
  Input.displayName = "Input";
1484
1554
 
1485
- const Textarea = /*#__PURE__*/React.forwardRef(({
1486
- className,
1487
- label,
1488
- error,
1489
- helperText,
1490
- size = "md",
1491
- fullWidth = false,
1492
- rows = 3,
1493
- id,
1494
- ...props
1495
- }, ref) => {
1496
- const textareaId = id || `textarea-${Math.random().toString(36).substr(2, 9)}`;
1555
+ const _excluded$4 = ["className", "label", "error", "helperText", "size", "fullWidth", "rows", "id"];
1556
+ const Textarea = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1557
+ let {
1558
+ className,
1559
+ label,
1560
+ error,
1561
+ helperText,
1562
+ size = "md",
1563
+ fullWidth = false,
1564
+ rows = 3,
1565
+ id
1566
+ } = _ref,
1567
+ props = _objectWithoutProperties(_ref, _excluded$4);
1568
+ const textareaId = id || "textarea-".concat(Math.random().toString(36).substr(2, 9));
1497
1569
  const sizes = {
1498
1570
  sm: "px-3 py-1.5 text-sm",
1499
1571
  md: "px-4 py-2 text-sm",
@@ -1506,13 +1578,12 @@ const Textarea = /*#__PURE__*/React.forwardRef(({
1506
1578
  htmlFor: textareaId,
1507
1579
  className: "mb-1 text-sm font-medium text-secondary-700",
1508
1580
  children: label
1509
- }), jsxRuntimeExports.jsx("textarea", {
1581
+ }), jsxRuntimeExports.jsx("textarea", _objectSpread2({
1510
1582
  className: baseClasses,
1511
1583
  ref: ref,
1512
1584
  id: textareaId,
1513
- rows: rows,
1514
- ...props
1515
- }), (error || helperText) && jsxRuntimeExports.jsx("p", {
1585
+ rows: rows
1586
+ }, props)), (error || helperText) && jsxRuntimeExports.jsx("p", {
1516
1587
  className: cn("mt-1 text-xs", error ? "text-red-600" : "text-secondary-500"),
1517
1588
  children: error || helperText
1518
1589
  })]
@@ -1520,20 +1591,22 @@ const Textarea = /*#__PURE__*/React.forwardRef(({
1520
1591
  });
1521
1592
  Textarea.displayName = "Textarea";
1522
1593
 
1523
- const InputFile = /*#__PURE__*/React.forwardRef(({
1524
- className,
1525
- label,
1526
- error,
1527
- helperText,
1528
- size = "md",
1529
- fullWidth = false,
1530
- accept,
1531
- multiple = false,
1532
- buttonText = "Choose File",
1533
- id,
1534
- ...props
1535
- }, ref) => {
1536
- const inputId = id || `file-input-${Math.random().toString(36).substr(2, 9)}`;
1594
+ const _excluded$3 = ["className", "label", "error", "helperText", "size", "fullWidth", "accept", "multiple", "buttonText", "id"];
1595
+ const InputFile = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1596
+ let {
1597
+ className,
1598
+ label,
1599
+ error,
1600
+ helperText,
1601
+ size = "md",
1602
+ fullWidth = false,
1603
+ accept,
1604
+ multiple = false,
1605
+ buttonText = "Choose File",
1606
+ id
1607
+ } = _ref,
1608
+ props = _objectWithoutProperties(_ref, _excluded$3);
1609
+ const inputId = id || "file-input-".concat(Math.random().toString(36).substr(2, 9));
1537
1610
  const sizes = {
1538
1611
  sm: "px-3 py-1.5 text-sm",
1539
1612
  md: "px-4 py-2 text-sm",
@@ -1548,15 +1621,14 @@ const InputFile = /*#__PURE__*/React.forwardRef(({
1548
1621
  children: label
1549
1622
  }), jsxRuntimeExports.jsxs("div", {
1550
1623
  className: "relative",
1551
- children: [jsxRuntimeExports.jsx("input", {
1624
+ children: [jsxRuntimeExports.jsx("input", _objectSpread2({
1552
1625
  type: "file",
1553
1626
  className: "absolute inset-0 w-full h-full opacity-0 cursor-pointer",
1554
1627
  ref: ref,
1555
1628
  id: inputId,
1556
1629
  accept: accept,
1557
- multiple: multiple,
1558
- ...props
1559
- }), jsxRuntimeExports.jsxs("div", {
1630
+ multiple: multiple
1631
+ }, props)), jsxRuntimeExports.jsxs("div", {
1560
1632
  className: cn(baseClasses, "flex items-center justify-center"),
1561
1633
  children: [jsxRuntimeExports.jsx("span", {
1562
1634
  className: "text-secondary-600",
@@ -1574,18 +1646,20 @@ const InputFile = /*#__PURE__*/React.forwardRef(({
1574
1646
  });
1575
1647
  InputFile.displayName = "InputFile";
1576
1648
 
1577
- const Checkbox = /*#__PURE__*/React.forwardRef(({
1578
- className,
1579
- label,
1580
- error,
1581
- helperText,
1582
- size = "md",
1583
- fullWidth = false,
1584
- indeterminate = false,
1585
- id,
1586
- ...props
1587
- }, ref) => {
1588
- const checkboxId = id || `checkbox-${Math.random().toString(36).substr(2, 9)}`;
1649
+ const _excluded$2 = ["className", "label", "error", "helperText", "size", "fullWidth", "indeterminate", "id"];
1650
+ const Checkbox = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1651
+ let {
1652
+ className,
1653
+ label,
1654
+ error,
1655
+ helperText,
1656
+ size = "md",
1657
+ fullWidth = false,
1658
+ indeterminate = false,
1659
+ id
1660
+ } = _ref,
1661
+ props = _objectWithoutProperties(_ref, _excluded$2);
1662
+ const checkboxId = id || "checkbox-".concat(Math.random().toString(36).substr(2, 9));
1589
1663
  const sizes = {
1590
1664
  sm: "w-4 h-4",
1591
1665
  md: "w-5 h-5",
@@ -1606,13 +1680,12 @@ const Checkbox = /*#__PURE__*/React.forwardRef(({
1606
1680
  className: cn("flex items-start", fullWidth && "w-full"),
1607
1681
  children: [jsxRuntimeExports.jsx("div", {
1608
1682
  className: "flex items-center h-5",
1609
- children: jsxRuntimeExports.jsx("input", {
1683
+ children: jsxRuntimeExports.jsx("input", _objectSpread2({
1610
1684
  type: "checkbox",
1611
1685
  className: baseClasses,
1612
1686
  ref: ref,
1613
- id: checkboxId,
1614
- ...props
1615
- })
1687
+ id: checkboxId
1688
+ }, props))
1616
1689
  }), jsxRuntimeExports.jsxs("div", {
1617
1690
  className: "ml-3",
1618
1691
  children: [label && jsxRuntimeExports.jsx("label", {
@@ -1628,17 +1701,19 @@ const Checkbox = /*#__PURE__*/React.forwardRef(({
1628
1701
  });
1629
1702
  Checkbox.displayName = "Checkbox";
1630
1703
 
1631
- const Radio = /*#__PURE__*/React.forwardRef(({
1632
- className,
1633
- label,
1634
- error,
1635
- helperText,
1636
- size = "md",
1637
- fullWidth = false,
1638
- id,
1639
- ...props
1640
- }, ref) => {
1641
- const radioId = id || `radio-${Math.random().toString(36).substr(2, 9)}`;
1704
+ const _excluded$1 = ["className", "label", "error", "helperText", "size", "fullWidth", "id"];
1705
+ const Radio = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1706
+ let {
1707
+ className,
1708
+ label,
1709
+ error,
1710
+ helperText,
1711
+ size = "md",
1712
+ fullWidth = false,
1713
+ id
1714
+ } = _ref,
1715
+ props = _objectWithoutProperties(_ref, _excluded$1);
1716
+ const radioId = id || "radio-".concat(Math.random().toString(36).substr(2, 9));
1642
1717
  const sizes = {
1643
1718
  sm: "w-4 h-4",
1644
1719
  md: "w-5 h-5",
@@ -1654,13 +1729,12 @@ const Radio = /*#__PURE__*/React.forwardRef(({
1654
1729
  className: cn("flex items-start", fullWidth && "w-full"),
1655
1730
  children: [jsxRuntimeExports.jsx("div", {
1656
1731
  className: "flex items-center h-5",
1657
- children: jsxRuntimeExports.jsx("input", {
1732
+ children: jsxRuntimeExports.jsx("input", _objectSpread2({
1658
1733
  type: "radio",
1659
1734
  className: baseClasses,
1660
1735
  ref: ref,
1661
- id: radioId,
1662
- ...props
1663
- })
1736
+ id: radioId
1737
+ }, props))
1664
1738
  }), jsxRuntimeExports.jsxs("div", {
1665
1739
  className: "ml-3",
1666
1740
  children: [label && jsxRuntimeExports.jsx("label", {
@@ -1676,19 +1750,21 @@ const Radio = /*#__PURE__*/React.forwardRef(({
1676
1750
  });
1677
1751
  Radio.displayName = "Radio";
1678
1752
 
1679
- const Select = /*#__PURE__*/React.forwardRef(({
1680
- className,
1681
- label,
1682
- error,
1683
- helperText,
1684
- size = "md",
1685
- fullWidth = false,
1686
- options,
1687
- placeholder,
1688
- id,
1689
- ...props
1690
- }, ref) => {
1691
- const selectId = id || `select-${Math.random().toString(36).substr(2, 9)}`;
1753
+ const _excluded = ["className", "label", "error", "helperText", "size", "fullWidth", "options", "placeholder", "id"];
1754
+ const Select = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1755
+ let {
1756
+ className,
1757
+ label,
1758
+ error,
1759
+ helperText,
1760
+ size = "md",
1761
+ fullWidth = false,
1762
+ options,
1763
+ placeholder,
1764
+ id
1765
+ } = _ref,
1766
+ props = _objectWithoutProperties(_ref, _excluded);
1767
+ const selectId = id || "select-".concat(Math.random().toString(36).substr(2, 9));
1692
1768
  const sizes = {
1693
1769
  sm: "px-3 py-1.5 text-sm",
1694
1770
  md: "px-4 py-2 text-sm",
@@ -1703,11 +1779,11 @@ const Select = /*#__PURE__*/React.forwardRef(({
1703
1779
  children: label
1704
1780
  }), jsxRuntimeExports.jsxs("div", {
1705
1781
  className: "relative",
1706
- children: [jsxRuntimeExports.jsxs("select", {
1782
+ children: [jsxRuntimeExports.jsxs("select", _objectSpread2(_objectSpread2({
1707
1783
  className: baseClasses,
1708
1784
  ref: ref,
1709
- id: selectId,
1710
- ...props,
1785
+ id: selectId
1786
+ }, props), {}, {
1711
1787
  children: [placeholder && jsxRuntimeExports.jsx("option", {
1712
1788
  value: "",
1713
1789
  disabled: true,
@@ -1717,7 +1793,7 @@ const Select = /*#__PURE__*/React.forwardRef(({
1717
1793
  disabled: option.disabled,
1718
1794
  children: option.label
1719
1795
  }, option.value))]
1720
- }), jsxRuntimeExports.jsx("div", {
1796
+ })), jsxRuntimeExports.jsx("div", {
1721
1797
  className: "absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none",
1722
1798
  children: jsxRuntimeExports.jsx("svg", {
1723
1799
  className: "w-4 h-4 text-secondary-400",