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