@react-xp/aeiou 1.0.0-beta.2 → 1.0.0-beta.4

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.
Files changed (175) hide show
  1. package/dist/cjs/components/a/a.native.js +6 -3
  2. package/dist/cjs/components/a/a.web.js +2 -3
  3. package/dist/cjs/components/d/d.native.js +20 -5
  4. package/dist/cjs/components/d/d.web.js +21 -6
  5. package/dist/cjs/components/e/e.native.js +2 -3
  6. package/dist/cjs/components/e/e.web.js +4 -3
  7. package/dist/cjs/components/i/i.native.js +4 -3
  8. package/dist/cjs/components/i/i.web.js +8 -3
  9. package/dist/cjs/components/l/l.web.js +2 -3
  10. package/dist/cjs/components/o/o.native.js +4 -3
  11. package/dist/cjs/components/o/o.web.js +2 -3
  12. package/dist/cjs/components/p/p.native.js +4 -3
  13. package/dist/cjs/components/p/p.web.js +4 -3
  14. package/dist/cjs/components/s/s.native.js +2 -3
  15. package/dist/cjs/components/t/t.native.js +2 -3
  16. package/dist/cjs/components/t/t.web.js +2 -3
  17. package/dist/cjs/hooks/useStyles/useStyles.native.js +2 -0
  18. package/dist/esm/components/a/a.native.js +6 -2
  19. package/dist/esm/components/a/a.web.js +2 -2
  20. package/dist/esm/components/d/d.native.js +20 -4
  21. package/dist/esm/components/d/d.web.js +21 -5
  22. package/dist/esm/components/e/e.native.js +2 -2
  23. package/dist/esm/components/e/e.web.js +4 -2
  24. package/dist/esm/components/i/i.native.js +4 -2
  25. package/dist/esm/components/i/i.web.js +8 -2
  26. package/dist/esm/components/l/l.web.js +2 -2
  27. package/dist/esm/components/o/o.native.js +4 -2
  28. package/dist/esm/components/o/o.web.js +2 -2
  29. package/dist/esm/components/p/p.native.js +4 -2
  30. package/dist/esm/components/p/p.web.js +4 -2
  31. package/dist/esm/components/s/s.native.js +2 -2
  32. package/dist/esm/components/t/t.native.js +2 -2
  33. package/dist/esm/components/t/t.web.js +2 -2
  34. package/dist/esm/hooks/useStyles/useStyles.native.js +2 -0
  35. package/dist/tsconfig.cjs.tsbuildinfo +1 -1
  36. package/dist/tsconfig.esm.tsbuildinfo +1 -1
  37. package/dist/types/components/d/d.native.d.ts.map +1 -1
  38. package/dist/types/hooks/useStyles/useStyles.native.d.ts.map +1 -1
  39. package/package.json +5 -5
  40. package/dist/native/cjs/components/a/a.native.js +0 -17
  41. package/dist/native/cjs/components/a/a.web.js +0 -15
  42. package/dist/native/cjs/components/a/index.native.js +0 -17
  43. package/dist/native/cjs/components/a/index.web.js +0 -17
  44. package/dist/native/cjs/components/d/d.native.js +0 -28
  45. package/dist/native/cjs/components/d/d.web.js +0 -38
  46. package/dist/native/cjs/components/d/index.native.js +0 -17
  47. package/dist/native/cjs/components/d/index.web.js +0 -17
  48. package/dist/native/cjs/components/e/e.native.js +0 -16
  49. package/dist/native/cjs/components/e/e.web.js +0 -15
  50. package/dist/native/cjs/components/e/index.native.js +0 -17
  51. package/dist/native/cjs/components/e/index.web.js +0 -17
  52. package/dist/native/cjs/components/i/i.native.js +0 -28
  53. package/dist/native/cjs/components/i/i.web.js +0 -27
  54. package/dist/native/cjs/components/i/index.native.js +0 -17
  55. package/dist/native/cjs/components/i/index.web.js +0 -17
  56. package/dist/native/cjs/components/i/useIUtils.js +0 -71
  57. package/dist/native/cjs/components/index.js +0 -26
  58. package/dist/native/cjs/components/index.native.js +0 -26
  59. package/dist/native/cjs/components/index.web.js +0 -26
  60. package/dist/native/cjs/components/l/index.native.js +0 -17
  61. package/dist/native/cjs/components/l/index.web.js +0 -17
  62. package/dist/native/cjs/components/l/l.native.js +0 -10
  63. package/dist/native/cjs/components/l/l.web.js +0 -15
  64. package/dist/native/cjs/components/o/index.native.js +0 -17
  65. package/dist/native/cjs/components/o/index.web.js +0 -17
  66. package/dist/native/cjs/components/o/o.native.js +0 -12
  67. package/dist/native/cjs/components/o/o.web.js +0 -15
  68. package/dist/native/cjs/components/p/index.native.js +0 -17
  69. package/dist/native/cjs/components/p/index.web.js +0 -17
  70. package/dist/native/cjs/components/p/p.native.js +0 -13
  71. package/dist/native/cjs/components/p/p.web.js +0 -16
  72. package/dist/native/cjs/components/s/index.native.js +0 -17
  73. package/dist/native/cjs/components/s/index.web.js +0 -17
  74. package/dist/native/cjs/components/s/s.native.js +0 -10
  75. package/dist/native/cjs/components/s/s.web.js +0 -10
  76. package/dist/native/cjs/components/t/index.native.js +0 -17
  77. package/dist/native/cjs/components/t/index.web.js +0 -17
  78. package/dist/native/cjs/components/t/t.native.js +0 -15
  79. package/dist/native/cjs/components/t/t.web.js +0 -15
  80. package/dist/native/cjs/components/u/context.js +0 -14
  81. package/dist/native/cjs/components/u/errorBoundary.js +0 -27
  82. package/dist/native/cjs/components/u/index.native.js +0 -19
  83. package/dist/native/cjs/components/u/index.web.js +0 -19
  84. package/dist/native/cjs/components/u/provider.native.js +0 -24
  85. package/dist/native/cjs/components/u/provider.web.js +0 -21
  86. package/dist/native/cjs/components/u/types.js +0 -2
  87. package/dist/native/cjs/components/u/useUniverse.js +0 -8
  88. package/dist/native/cjs/hooks/index.js +0 -19
  89. package/dist/native/cjs/hooks/index.native.js +0 -22
  90. package/dist/native/cjs/hooks/index.web.js +0 -22
  91. package/dist/native/cjs/hooks/useCn.js +0 -15
  92. package/dist/native/cjs/hooks/useInteractiveHandlers/useInteractiveHandlers.native.js +0 -43
  93. package/dist/native/cjs/hooks/useInteractiveHandlers/useInteractiveHandlers.web.js +0 -45
  94. package/dist/native/cjs/hooks/useInteractiveState/useInteractiveState.native.js +0 -69
  95. package/dist/native/cjs/hooks/useInteractiveState/useInteractiveState.web.js +0 -74
  96. package/dist/native/cjs/hooks/useOnChange.js +0 -18
  97. package/dist/native/cjs/hooks/useProps.js +0 -66
  98. package/dist/native/cjs/hooks/useStyles/useStyles.helpers.js +0 -35
  99. package/dist/native/cjs/hooks/useStyles/useStyles.native.js +0 -44
  100. package/dist/native/cjs/hooks/useStyles/useStyles.types.js +0 -2
  101. package/dist/native/cjs/hooks/useStyles/useStyles.web.js +0 -71
  102. package/dist/native/cjs/index.js +0 -19
  103. package/dist/native/cjs/index.native.js +0 -19
  104. package/dist/native/cjs/index.web.js +0 -19
  105. package/dist/native/cjs/types/base.js +0 -2
  106. package/dist/native/cjs/types/index.js +0 -17
  107. package/dist/native/esm/components/a/a.native.js +0 -13
  108. package/dist/native/esm/components/a/a.web.js +0 -11
  109. package/dist/native/esm/components/a/index.native.js +0 -1
  110. package/dist/native/esm/components/a/index.web.js +0 -1
  111. package/dist/native/esm/components/d/d.native.js +0 -24
  112. package/dist/native/esm/components/d/d.web.js +0 -34
  113. package/dist/native/esm/components/d/index.native.js +0 -1
  114. package/dist/native/esm/components/d/index.web.js +0 -1
  115. package/dist/native/esm/components/e/e.native.js +0 -12
  116. package/dist/native/esm/components/e/e.web.js +0 -11
  117. package/dist/native/esm/components/e/index.native.js +0 -1
  118. package/dist/native/esm/components/e/index.web.js +0 -1
  119. package/dist/native/esm/components/i/i.native.js +0 -24
  120. package/dist/native/esm/components/i/i.web.js +0 -23
  121. package/dist/native/esm/components/i/index.native.js +0 -1
  122. package/dist/native/esm/components/i/index.web.js +0 -1
  123. package/dist/native/esm/components/i/useIUtils.js +0 -67
  124. package/dist/native/esm/components/index.js +0 -10
  125. package/dist/native/esm/components/index.native.js +0 -10
  126. package/dist/native/esm/components/index.web.js +0 -10
  127. package/dist/native/esm/components/l/index.native.js +0 -1
  128. package/dist/native/esm/components/l/index.web.js +0 -1
  129. package/dist/native/esm/components/l/l.native.js +0 -6
  130. package/dist/native/esm/components/l/l.web.js +0 -11
  131. package/dist/native/esm/components/o/index.native.js +0 -1
  132. package/dist/native/esm/components/o/index.web.js +0 -1
  133. package/dist/native/esm/components/o/o.native.js +0 -8
  134. package/dist/native/esm/components/o/o.web.js +0 -11
  135. package/dist/native/esm/components/p/index.native.js +0 -1
  136. package/dist/native/esm/components/p/index.web.js +0 -1
  137. package/dist/native/esm/components/p/p.native.js +0 -9
  138. package/dist/native/esm/components/p/p.web.js +0 -12
  139. package/dist/native/esm/components/s/index.native.js +0 -1
  140. package/dist/native/esm/components/s/index.web.js +0 -1
  141. package/dist/native/esm/components/s/s.native.js +0 -7
  142. package/dist/native/esm/components/s/s.web.js +0 -6
  143. package/dist/native/esm/components/t/index.native.js +0 -1
  144. package/dist/native/esm/components/t/index.web.js +0 -1
  145. package/dist/native/esm/components/t/t.native.js +0 -11
  146. package/dist/native/esm/components/t/t.web.js +0 -11
  147. package/dist/native/esm/components/u/context.js +0 -11
  148. package/dist/native/esm/components/u/errorBoundary.js +0 -23
  149. package/dist/native/esm/components/u/index.native.js +0 -3
  150. package/dist/native/esm/components/u/index.web.js +0 -3
  151. package/dist/native/esm/components/u/provider.native.js +0 -20
  152. package/dist/native/esm/components/u/provider.web.js +0 -17
  153. package/dist/native/esm/components/u/types.js +0 -1
  154. package/dist/native/esm/components/u/useUniverse.js +0 -5
  155. package/dist/native/esm/hooks/index.js +0 -3
  156. package/dist/native/esm/hooks/index.native.js +0 -6
  157. package/dist/native/esm/hooks/index.web.js +0 -6
  158. package/dist/native/esm/hooks/useCn.js +0 -8
  159. package/dist/native/esm/hooks/useInteractiveHandlers/useInteractiveHandlers.native.js +0 -40
  160. package/dist/native/esm/hooks/useInteractiveHandlers/useInteractiveHandlers.web.js +0 -42
  161. package/dist/native/esm/hooks/useInteractiveState/useInteractiveState.native.js +0 -66
  162. package/dist/native/esm/hooks/useInteractiveState/useInteractiveState.web.js +0 -71
  163. package/dist/native/esm/hooks/useOnChange.js +0 -14
  164. package/dist/native/esm/hooks/useProps.js +0 -59
  165. package/dist/native/esm/hooks/useStyles/useStyles.helpers.js +0 -29
  166. package/dist/native/esm/hooks/useStyles/useStyles.native.js +0 -40
  167. package/dist/native/esm/hooks/useStyles/useStyles.types.js +0 -1
  168. package/dist/native/esm/hooks/useStyles/useStyles.web.js +0 -66
  169. package/dist/native/esm/index.js +0 -3
  170. package/dist/native/esm/index.native.js +0 -3
  171. package/dist/native/esm/index.web.js +0 -3
  172. package/dist/native/esm/types/base.js +0 -1
  173. package/dist/native/esm/types/index.js +0 -1
  174. package/dist/native/tsconfig.native.cjs.tsbuildinfo +0 -1
  175. package/dist/native/tsconfig.native.esm.tsbuildinfo +0 -1
@@ -5,13 +5,16 @@ exports.A = A;
5
5
  const jsx_runtime_1 = require("react/jsx-runtime");
6
6
  const react_native_1 = require("react-native");
7
7
  const index_native_1 = require("../../hooks/index.native");
8
- const useCn_1 = require("../../hooks/useCn");
9
8
  const index_native_2 = require("../e/index.native");
10
9
  function A({ accessibilityLabel, accessibilityRole, accessibilityState, className, children, loading, ref, style, testId, ...restProps }) {
11
- const cn = (0, useCn_1.useCn)();
10
+ // const cn = useCn();
12
11
  const { disabled, eventHandlers } = (0, index_native_1.useInteractiveHandlers)(restProps);
13
12
  const { getStylesWithInteraction } = (0, index_native_1.useStyles)();
14
13
  const isDisabled = Boolean(disabled || loading);
15
- return ((0, jsx_runtime_1.jsx)(react_native_1.Pressable, { ref: ref, disabled: isDisabled, accessibilityLabel: accessibilityLabel, accessibilityRole: accessibilityRole, accessibilityState: accessibilityState, testID: testId, ...eventHandlers, ...getStylesWithInteraction({ disabled, style }), children: (0, jsx_runtime_1.jsx)(index_native_2.E, { className: cn(disabled && 'opacity-60', className), style: style, ...restProps, children: children }) }));
14
+ return ((0, jsx_runtime_1.jsx)(react_native_1.Pressable, { ref: ref, disabled: isDisabled, accessibilityLabel: accessibilityLabel, accessibilityRole: accessibilityRole, accessibilityState: accessibilityState, testID: testId, ...eventHandlers, ...getStylesWithInteraction({ disabled, style }), children: (0, jsx_runtime_1.jsx)(index_native_2.E
15
+ // className={cn(disabled && 'opacity-60', className)}
16
+ , {
17
+ // className={cn(disabled && 'opacity-60', className)}
18
+ style: style, ...restProps, children: children }) }));
16
19
  }
17
20
  exports.Action = A;
@@ -4,12 +4,11 @@ exports.Action = void 0;
4
4
  exports.A = A;
5
5
  const jsx_runtime_1 = require("react/jsx-runtime");
6
6
  const index_web_1 = require("../../hooks/index.web");
7
- const useCn_1 = require("../../hooks/useCn");
8
7
  function A({ className, children, loading, ref, testId, accessibilityLabel, accessibilityRole, accessibilityState, style, ...restProps }) {
9
- const cn = (0, useCn_1.useCn)();
8
+ // const cn = useCn();
10
9
  const { getStyles } = (0, index_web_1.useStyles)();
11
10
  const { disabled, eventHandlers } = (0, index_web_1.useInteractiveHandlers)(restProps);
12
11
  const isDisabled = Boolean(disabled || loading);
13
- return ((0, jsx_runtime_1.jsx)("button", { ref: ref, type: "button", className: cn('cursor-pointer', disabled && 'opacity-60', className), "aria-disabled": isDisabled || undefined, "aria-busy": loading || undefined, "aria-label": accessibilityLabel, "data-testid": testId, ...restProps, ...eventHandlers, ...getStyles({ disabled, style }), children: children }));
12
+ return ((0, jsx_runtime_1.jsx)("button", { ref: ref, type: "button", "aria-disabled": isDisabled || undefined, "aria-busy": loading || undefined, "aria-label": accessibilityLabel, "data-testid": testId, ...restProps, ...eventHandlers, ...getStyles({ disabled, style }), children: children }));
14
13
  }
15
14
  exports.Action = A;
@@ -4,10 +4,9 @@ exports.Dialog = void 0;
4
4
  exports.D = D;
5
5
  const jsx_runtime_1 = require("react/jsx-runtime");
6
6
  const react_native_1 = require("react-native");
7
- const useCn_1 = require("../../hooks/useCn");
8
7
  const index_native_1 = require("../e/index.native");
9
8
  function D({ open, onOpenChange, placement = 'center', backdropClassName, backdropStyle, containerClassName, containerStyle, contentClassName, contentStyle, children, ref, ...restProps }) {
10
- const cn = (0, useCn_1.useCn)();
9
+ // const cn = useCn();
11
10
  const placementClasses = {
12
11
  center: 'items-center justify-center',
13
12
  top: 'items-start justify-center',
@@ -15,14 +14,30 @@ function D({ open, onOpenChange, placement = 'center', backdropClassName, backdr
15
14
  left: 'items-stretch justify-start',
16
15
  right: 'items-stretch justify-end',
17
16
  };
18
- const containerClasses = cn('flex-1 bg-black/40 flex', placementClasses[placement], containerClassName, backdropClassName);
19
- const contentClasses = cn('bg-background p-4 rounded-lg shadow-lg max-h-[90vh] w-full max-w-lg', placement === 'left' || placement === 'right' ? 'h-full max-h-none' : '', placement === 'bottom' || placement === 'top' ? 'max-w-none' : '', contentClassName);
17
+ // const containerClasses = cn(
18
+ // 'flex-1 bg-black/40 flex',
19
+ // placementClasses[placement],
20
+ // containerClassName,
21
+ // backdropClassName,
22
+ // );
23
+ // const contentClasses = cn(
24
+ // 'bg-background p-4 rounded-lg shadow-lg max-h-[90vh] w-full max-w-lg',
25
+ // placement === 'left' || placement === 'right' ? 'h-full max-h-none' : '',
26
+ // placement === 'bottom' || placement === 'top' ? 'max-w-none' : '',
27
+ // contentClassName,
28
+ // );
20
29
  const handleRequestClose = (e) => {
21
30
  onOpenChange?.(false);
22
31
  if (typeof restProps.onRequestClose === 'function') {
23
32
  restProps.onRequestClose?.(e);
24
33
  }
25
34
  };
26
- return ((0, jsx_runtime_1.jsx)(react_native_1.Modal, { visible: open, animationType: "slide", transparent: true, onRequestClose: handleRequestClose, ...restProps, children: (0, jsx_runtime_1.jsx)(index_native_1.E, { className: containerClasses, style: { ...containerStyle, ...backdropStyle }, children: (0, jsx_runtime_1.jsx)(index_native_1.E, { ref: ref, className: contentClasses, style: contentStyle, children: children }) }) }));
35
+ return ((0, jsx_runtime_1.jsx)(react_native_1.Modal, { visible: open, animationType: "slide", transparent: true, onRequestClose: handleRequestClose, ...restProps, children: (0, jsx_runtime_1.jsx)(index_native_1.E
36
+ // className={containerClasses}
37
+ , {
38
+ // className={containerClasses}
39
+ style: { ...containerStyle, ...backdropStyle }, children: (0, jsx_runtime_1.jsx)(index_native_1.E, { ref: ref,
40
+ // className={contentClasses}
41
+ style: contentStyle, children: children }) }) }));
27
42
  }
28
43
  exports.Dialog = D;
@@ -4,10 +4,9 @@ exports.Dialog = void 0;
4
4
  exports.D = D;
5
5
  const jsx_runtime_1 = require("react/jsx-runtime");
6
6
  const react_dom_1 = require("react-dom");
7
- const useCn_1 = require("../../hooks/useCn");
8
7
  const index_web_1 = require("../e/index.web");
9
8
  function D({ open, onOpenChange, placement = 'center', backdropClassName, backdropStyle, containerClassName, containerStyle, contentClassName, contentStyle, closeOnBackdropClick = true, children, ref, ...restProps }) {
10
- const cn = (0, useCn_1.useCn)();
9
+ // const cn = useCn();
11
10
  if (typeof document === 'undefined')
12
11
  return null;
13
12
  if (!open)
@@ -26,13 +25,29 @@ function D({ open, onOpenChange, placement = 'center', backdropClassName, backdr
26
25
  onOpenChange?.(false);
27
26
  }
28
27
  };
29
- const backdropClasses = cn('fixed inset-0 z-50 flex bg-black/40', placementClasses[placement], containerClassName, backdropClassName);
30
- const contentClasses = cn('relative max-h-[90vh] w-full max-w-lg overflow-auto rounded-lg bg-background p-4 shadow-lg', placement === 'left' || placement === 'right' ? 'h-full max-h-none' : '', placement === 'bottom' || placement === 'top' ? 'max-w-none' : '', contentClassName);
31
- return (0, react_dom_1.createPortal)((0, jsx_runtime_1.jsx)(index_web_1.E, { className: backdropClasses, role: "presentation", onClick: handleBackdropClick, style: {
28
+ // const backdropClasses = cn(
29
+ // 'fixed inset-0 z-50 flex bg-black/40',
30
+ // placementClasses[placement],
31
+ // containerClassName,
32
+ // backdropClassName,
33
+ // );
34
+ // const contentClasses = cn(
35
+ // 'relative max-h-[90vh] w-full max-w-lg overflow-auto rounded-lg bg-background p-4 shadow-lg',
36
+ // placement === 'left' || placement === 'right' ? 'h-full max-h-none' : '',
37
+ // placement === 'bottom' || placement === 'top' ? 'max-w-none' : '',
38
+ // contentClassName,
39
+ // );
40
+ return (0, react_dom_1.createPortal)((0, jsx_runtime_1.jsx)(index_web_1.E
41
+ // className={backdropClasses}
42
+ , {
43
+ // className={backdropClasses}
44
+ role: "presentation", onClick: handleBackdropClick, style: {
32
45
  ...(containerStyle || {}),
33
46
  ...(backdropStyle || {}),
34
47
  }, children: (0, jsx_runtime_1.jsx)("div", { ref: ref,
35
48
  // biome-ignore lint/a11y/useSemanticElements: <explanation>
36
- role: "dialog", "aria-modal": "true", className: contentClasses, style: contentStyle, ...restProps, children: children }) }), document.body);
49
+ role: "dialog", "aria-modal": "true",
50
+ // className={contentClasses}
51
+ style: contentStyle, ...restProps, children: children }) }), document.body);
37
52
  }
38
53
  exports.Dialog = D;
@@ -4,13 +4,12 @@ exports.Element = void 0;
4
4
  exports.E = E;
5
5
  const jsx_runtime_1 = require("react/jsx-runtime");
6
6
  const react_native_1 = require("react-native");
7
- const useCn_1 = require("../../hooks/useCn");
8
7
  const index_native_1 = require("../../index.native");
9
8
  const index_native_2 = require("../t/index.native");
10
9
  function E({ className, children, ref, style, ...restProps }) {
11
- const cn = (0, useCn_1.useCn)();
10
+ // const cn = useCn();
12
11
  const { getStyles } = (0, index_native_1.useStyles)();
13
12
  const { disabled, eventHandlers } = (0, index_native_1.useInteractiveHandlers)(restProps);
14
- return ((0, jsx_runtime_1.jsx)(react_native_1.View, { ref: ref, className: cn(className), ...eventHandlers, ...getStyles({ disabled, style }), children: typeof children === 'string' ? (0, jsx_runtime_1.jsx)(index_native_2.T, { children: children }) : children }));
13
+ return ((0, jsx_runtime_1.jsx)(react_native_1.View, { ref: ref, ...eventHandlers, ...getStyles({ disabled, style }), children: typeof children === 'string' ? (0, jsx_runtime_1.jsx)(index_native_2.T, { children: children }) : children }));
15
14
  }
16
15
  exports.Element = E;
@@ -3,13 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Element = void 0;
4
4
  exports.E = E;
5
5
  const jsx_runtime_1 = require("react/jsx-runtime");
6
- const useCn_1 = require("../../hooks/useCn");
7
6
  const index_web_1 = require("../../index.web");
8
7
  function E({ as = 'div', className, children, ref, role, style, ...restProps }) {
9
- const cn = (0, useCn_1.useCn)();
8
+ // const cn = useCn();
10
9
  const { disabled, eventHandlers } = (0, index_web_1.useInteractiveHandlers)(restProps);
11
10
  const { getStyles } = (0, index_web_1.useStyles)();
12
11
  const Comp = as;
13
- return ((0, jsx_runtime_1.jsx)(Comp, { ref: ref, className: cn(className), role: role, ...restProps, ...eventHandlers, ...getStyles({ disabled, style }), children: children }));
12
+ return ((0, jsx_runtime_1.jsx)(Comp, { ref: ref,
13
+ // className={cn(className)}
14
+ role: role, ...restProps, ...eventHandlers, ...getStyles({ disabled, style }), children: children }));
14
15
  }
15
16
  exports.Element = E;
@@ -4,13 +4,12 @@ exports.Input = void 0;
4
4
  exports.I = I;
5
5
  const jsx_runtime_1 = require("react/jsx-runtime");
6
6
  const react_native_1 = require("react-native");
7
- const useCn_1 = require("../../hooks/useCn");
8
7
  const useOnChange_1 = require("../../hooks/useOnChange");
9
8
  const index_native_1 = require("../../index.native");
10
9
  const useIUtils_1 = require("./useIUtils");
11
10
  function I({ className, value, defaultValue, placeholder, onChange, onChangeValue, type, inputMode, keyboardType, editable, ref, name, style, ...restProps }) {
12
11
  const { treatTypeModeAndKeyboardType } = (0, useIUtils_1.useIUtils)();
13
- const cn = (0, useCn_1.useCn)();
12
+ // const cn = useCn();
14
13
  const { onChange: handleOnChange } = (0, useOnChange_1.useOnChange)({
15
14
  onChange,
16
15
  onChangeValue,
@@ -23,6 +22,8 @@ function I({ className, value, defaultValue, placeholder, onChange, onChangeValu
23
22
  keyboardType,
24
23
  type,
25
24
  });
26
- return ((0, jsx_runtime_1.jsx)(react_native_1.TextInput, { ref: ref, className: cn(!effectiveEditable && 'opacity-60', className), value: value?.toString(), defaultValue: defaultValue?.toString(), placeholder: placeholder, onChange: handleOnChange, secureTextEntry: masterInputType === 'password', keyboardType: masterInputKeyboardType, editable: effectiveEditable, ...restProps, ...eventHandlers, ...getStyles({ disabled, style }) }));
25
+ return ((0, jsx_runtime_1.jsx)(react_native_1.TextInput, { ref: ref,
26
+ // className={cn(!effectiveEditable && 'opacity-60', className)}
27
+ value: value?.toString(), defaultValue: defaultValue?.toString(), placeholder: placeholder, onChange: handleOnChange, secureTextEntry: masterInputType === 'password', keyboardType: masterInputKeyboardType, editable: effectiveEditable, ...restProps, ...eventHandlers, ...getStyles({ disabled, style }) }));
27
28
  }
28
29
  exports.Input = I;
@@ -3,13 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Input = void 0;
4
4
  exports.I = I;
5
5
  const jsx_runtime_1 = require("react/jsx-runtime");
6
- const useCn_1 = require("../../hooks/useCn");
7
6
  const useOnChange_1 = require("../../hooks/useOnChange");
8
7
  const index_web_1 = require("../../index.web");
9
8
  const useIUtils_1 = require("./useIUtils");
10
9
  function I({ className, value, defaultValue, placeholder, onChange, onChangeValue, type, inputMode, keyboardType, editable, ref, style, ...restProps }) {
11
10
  const { treatTypeModeAndKeyboardType } = (0, useIUtils_1.useIUtils)();
12
- const cn = (0, useCn_1.useCn)();
11
+ // const cn = useCn();
13
12
  const { onChange: handleOnChange } = (0, useOnChange_1.useOnChange)({
14
13
  onChange,
15
14
  onChangeValue,
@@ -22,6 +21,12 @@ function I({ className, value, defaultValue, placeholder, onChange, onChangeValu
22
21
  keyboardType,
23
22
  type,
24
23
  });
25
- return ((0, jsx_runtime_1.jsx)("input", { ref: ref, type: masterInputType, inputMode: masterInputMode, className: cn('outline-none', effectiveDisabled && 'opacity-60 cursor-not-allowed', className), value: value?.toString(), defaultValue: defaultValue?.toString(), placeholder: placeholder, onChange: handleOnChange, disabled: effectiveDisabled, ...restProps, ...eventHandlers, ...getStyles({ disabled, style }) }));
24
+ return ((0, jsx_runtime_1.jsx)("input", { ref: ref, type: masterInputType, inputMode: masterInputMode,
25
+ // className={cn(
26
+ // 'outline-none',
27
+ // effectiveDisabled && 'opacity-60 cursor-not-allowed',
28
+ // className,
29
+ // )}
30
+ value: value?.toString(), defaultValue: defaultValue?.toString(), placeholder: placeholder, onChange: handleOnChange, disabled: effectiveDisabled, ...restProps, ...eventHandlers, ...getStyles({ disabled, style }) }));
26
31
  }
27
32
  exports.Input = I;
@@ -3,13 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Link = void 0;
4
4
  exports.L = L;
5
5
  const jsx_runtime_1 = require("react/jsx-runtime");
6
- const useCn_1 = require("../../hooks/useCn");
7
6
  const index_web_1 = require("../../index.web");
8
7
  function L({ className, children, to, href, preventDefault, ref, style, ...restProps }) {
9
- const cn = (0, useCn_1.useCn)();
8
+ // const cn = useCn();
10
9
  const { disabled, eventHandlers } = (0, index_web_1.useInteractiveHandlers)(restProps);
11
10
  const { getStyles } = (0, index_web_1.useStyles)();
12
11
  const resolvedHref = href ?? to ?? '#';
13
- return ((0, jsx_runtime_1.jsx)("a", { ref: ref, href: resolvedHref, className: cn('cursor-pointer', className), ...restProps, ...eventHandlers, ...getStyles({ disabled, style }), children: children }));
12
+ return ((0, jsx_runtime_1.jsx)("a", { ref: ref, href: resolvedHref, ...restProps, ...eventHandlers, ...getStyles({ disabled, style }), children: children }));
14
13
  }
15
14
  exports.Link = L;
@@ -4,9 +4,10 @@ exports.Overflow = void 0;
4
4
  exports.O = O;
5
5
  const jsx_runtime_1 = require("react/jsx-runtime");
6
6
  const react_native_1 = require("react-native");
7
- const useCn_1 = require("../../hooks/useCn");
8
7
  function O({ className, children, horizontal, ref, ...restProps }) {
9
- const cn = (0, useCn_1.useCn)();
10
- return ((0, jsx_runtime_1.jsx)(react_native_1.ScrollView, { ref: ref, className: cn(className), horizontal: horizontal, ...restProps, children: children }));
8
+ // const cn = useCn();
9
+ return ((0, jsx_runtime_1.jsx)(react_native_1.ScrollView, { ref: ref,
10
+ // className={cn(className)}
11
+ horizontal: horizontal, ...restProps, children: children }));
11
12
  }
12
13
  exports.Overflow = O;
@@ -3,13 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Overflow = void 0;
4
4
  exports.O = O;
5
5
  const jsx_runtime_1 = require("react/jsx-runtime");
6
- const useCn_1 = require("../../hooks/useCn");
7
6
  const index_web_1 = require("../../index.web");
8
7
  function O({ className, children, horizontal, ref, style, ...restProps }) {
9
- const cn = (0, useCn_1.useCn)();
8
+ // const cn = useCn();
10
9
  const { disabled, eventHandlers } = (0, index_web_1.useInteractiveHandlers)(restProps);
11
10
  const { getStyles } = (0, index_web_1.useStyles)();
12
11
  const overflowClass = horizontal ? 'overflow-x-auto' : 'overflow-y-auto';
13
- return ((0, jsx_runtime_1.jsx)("div", { ref: ref, className: cn(overflowClass, className), ...restProps, ...eventHandlers, ...getStyles({ disabled, style }), children: children }));
12
+ return ((0, jsx_runtime_1.jsx)("div", { ref: ref, ...restProps, ...eventHandlers, ...getStyles({ disabled, style }), children: children }));
14
13
  }
15
14
  exports.Overflow = O;
@@ -4,10 +4,11 @@ exports.Picture = void 0;
4
4
  exports.P = P;
5
5
  const jsx_runtime_1 = require("react/jsx-runtime");
6
6
  const react_native_1 = require("react-native");
7
- const useCn_1 = require("../../hooks/useCn");
8
7
  function P({ className, src, source, ref, ...restProps }) {
9
- const cn = (0, useCn_1.useCn)();
8
+ // const cn = useCn();
10
9
  const finalSource = src != null ? { uri: src } : source;
11
- return ((0, jsx_runtime_1.jsx)(react_native_1.Image, { ref: ref, className: cn(className), source: finalSource, ...restProps }));
10
+ return ((0, jsx_runtime_1.jsx)(react_native_1.Image, { ref: ref,
11
+ // className={cn(className)}
12
+ source: finalSource, ...restProps }));
12
13
  }
13
14
  exports.Picture = P;
@@ -3,14 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Picture = void 0;
4
4
  exports.P = P;
5
5
  const jsx_runtime_1 = require("react/jsx-runtime");
6
- const useCn_1 = require("../../hooks/useCn");
7
6
  const index_web_1 = require("../../index.web");
8
7
  function P({ alt, className, ref, style, source, src, ...restProps }) {
9
- const cn = (0, useCn_1.useCn)();
8
+ // const cn = useCn();
10
9
  const { disabled, eventHandlers } = (0, index_web_1.useInteractiveHandlers)(restProps);
11
10
  const { getStyles } = (0, index_web_1.useStyles)();
12
11
  return (
13
12
  // biome-ignore lint/a11y/useAltText: <explanation>
14
- (0, jsx_runtime_1.jsx)("img", { alt: alt, "aria-label": alt, ref: ref, className: cn('object-cover', className), src: src ?? source, ...restProps, ...eventHandlers, ...getStyles({ disabled, style }) }));
13
+ (0, jsx_runtime_1.jsx)("img", { alt: alt, "aria-label": alt, ref: ref,
14
+ // className={cn('object-cover', className)}
15
+ src: src ?? source, ...restProps, ...eventHandlers, ...getStyles({ disabled, style }) }));
15
16
  }
16
17
  exports.Picture = P;
@@ -3,8 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.S = S;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_native_safe_area_context_1 = require("react-native-safe-area-context");
6
- const useCn_1 = require("../../hooks/useCn");
7
6
  function S({ className, children, ref, ...restProps }) {
8
- const cn = (0, useCn_1.useCn)();
9
- return ((0, jsx_runtime_1.jsx)(react_native_safe_area_context_1.SafeAreaView, { ref: ref, className: cn(className), ...restProps, children: children }));
7
+ // const cn = useCn();
8
+ return ((0, jsx_runtime_1.jsx)(react_native_safe_area_context_1.SafeAreaView, { ref: ref, ...restProps, children: children }));
10
9
  }
@@ -4,12 +4,11 @@ exports.Text = void 0;
4
4
  exports.T = T;
5
5
  const jsx_runtime_1 = require("react/jsx-runtime");
6
6
  const react_native_1 = require("react-native");
7
- const useCn_1 = require("../../hooks/useCn");
8
7
  const index_native_1 = require("../../index.native");
9
8
  function T({ className, children, ref, style, ...restProps }) {
10
- const cn = (0, useCn_1.useCn)();
9
+ // const cn = useCn();
11
10
  const { disabled, eventHandlers } = (0, index_native_1.useInteractiveHandlers)(restProps);
12
11
  const { getStyles } = (0, index_native_1.useStyles)();
13
- return ((0, jsx_runtime_1.jsx)(react_native_1.Text, { ref: ref, className: cn('leading-relaxed', className), ...restProps, ...eventHandlers, ...getStyles({ disabled, style }), children: children }));
12
+ return ((0, jsx_runtime_1.jsx)(react_native_1.Text, { ref: ref, ...restProps, ...eventHandlers, ...getStyles({ disabled, style }), children: children }));
14
13
  }
15
14
  exports.Text = T;
@@ -3,13 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Text = void 0;
4
4
  exports.T = T;
5
5
  const jsx_runtime_1 = require("react/jsx-runtime");
6
- const useCn_1 = require("../../hooks/useCn");
7
6
  const index_web_1 = require("../../index.web");
8
7
  function T({ as = 'span', className, children, ref, style, ...restProps }) {
9
- const cn = (0, useCn_1.useCn)();
8
+ // const cn = useCn();
10
9
  const { disabled, eventHandlers } = (0, index_web_1.useInteractiveHandlers)(restProps);
11
10
  const { getStyles } = (0, index_web_1.useStyles)();
12
11
  const Comp = as;
13
- return ((0, jsx_runtime_1.jsx)(Comp, { ref: ref, className: cn('leading-relaxed', className), ...restProps, ...eventHandlers, ...getStyles({ disabled, style }), children: children }));
12
+ return ((0, jsx_runtime_1.jsx)(Comp, { ref: ref, ...restProps, ...eventHandlers, ...getStyles({ disabled, style }), children: children }));
14
13
  }
15
14
  exports.Text = T;
@@ -15,6 +15,7 @@ const getStyles = ({ disabled, style, }) => {
15
15
  };
16
16
  const getStylesWithInteraction = ({ disabled, style, }) => ({
17
17
  style: (options) => {
18
+ console.log('getStylesWithInteraction options:', options);
18
19
  if (!style) {
19
20
  return {};
20
21
  }
@@ -32,6 +33,7 @@ const getStylesWithInteraction = ({ disabled, style, }) => ({
32
33
  if (options?.pressed) {
33
34
  Object.assign(composedStyle, stylePressed || {});
34
35
  }
36
+ console.log('getStylesWithInteraction output:', composedStyle);
35
37
  return composedStyle;
36
38
  },
37
39
  });
@@ -4,10 +4,14 @@ import { useInteractiveHandlers, useStyles } from '../../hooks/index.native';
4
4
  import { useCn } from '../../hooks/useCn';
5
5
  import { E } from '../e/index.native';
6
6
  export function A({ accessibilityLabel, accessibilityRole, accessibilityState, className, children, loading, ref, style, testId, ...restProps }) {
7
- const cn = useCn();
7
+ // const cn = useCn();
8
8
  const { disabled, eventHandlers } = useInteractiveHandlers(restProps);
9
9
  const { getStylesWithInteraction } = useStyles();
10
10
  const isDisabled = Boolean(disabled || loading);
11
- return (_jsx(Pressable, { ref: ref, disabled: isDisabled, accessibilityLabel: accessibilityLabel, accessibilityRole: accessibilityRole, accessibilityState: accessibilityState, testID: testId, ...eventHandlers, ...getStylesWithInteraction({ disabled, style }), children: _jsx(E, { className: cn(disabled && 'opacity-60', className), style: style, ...restProps, children: children }) }));
11
+ return (_jsx(Pressable, { ref: ref, disabled: isDisabled, accessibilityLabel: accessibilityLabel, accessibilityRole: accessibilityRole, accessibilityState: accessibilityState, testID: testId, ...eventHandlers, ...getStylesWithInteraction({ disabled, style }), children: _jsx(E
12
+ // className={cn(disabled && 'opacity-60', className)}
13
+ , {
14
+ // className={cn(disabled && 'opacity-60', className)}
15
+ style: style, ...restProps, children: children }) }));
12
16
  }
13
17
  export const Action = A;
@@ -2,10 +2,10 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useInteractiveHandlers, useStyles } from '../../hooks/index.web';
3
3
  import { useCn } from '../../hooks/useCn';
4
4
  export function A({ className, children, loading, ref, testId, accessibilityLabel, accessibilityRole, accessibilityState, style, ...restProps }) {
5
- const cn = useCn();
5
+ // const cn = useCn();
6
6
  const { getStyles } = useStyles();
7
7
  const { disabled, eventHandlers } = useInteractiveHandlers(restProps);
8
8
  const isDisabled = Boolean(disabled || loading);
9
- return (_jsx("button", { ref: ref, type: "button", className: cn('cursor-pointer', disabled && 'opacity-60', className), "aria-disabled": isDisabled || undefined, "aria-busy": loading || undefined, "aria-label": accessibilityLabel, "data-testid": testId, ...restProps, ...eventHandlers, ...getStyles({ disabled, style }), children: children }));
9
+ return (_jsx("button", { ref: ref, type: "button", "aria-disabled": isDisabled || undefined, "aria-busy": loading || undefined, "aria-label": accessibilityLabel, "data-testid": testId, ...restProps, ...eventHandlers, ...getStyles({ disabled, style }), children: children }));
10
10
  }
11
11
  export const Action = A;
@@ -3,7 +3,7 @@ import { Modal } from 'react-native';
3
3
  import { useCn } from '../../hooks/useCn';
4
4
  import { E } from '../e/index.native';
5
5
  export function D({ open, onOpenChange, placement = 'center', backdropClassName, backdropStyle, containerClassName, containerStyle, contentClassName, contentStyle, children, ref, ...restProps }) {
6
- const cn = useCn();
6
+ // const cn = useCn();
7
7
  const placementClasses = {
8
8
  center: 'items-center justify-center',
9
9
  top: 'items-start justify-center',
@@ -11,14 +11,30 @@ export function D({ open, onOpenChange, placement = 'center', backdropClassName,
11
11
  left: 'items-stretch justify-start',
12
12
  right: 'items-stretch justify-end',
13
13
  };
14
- const containerClasses = cn('flex-1 bg-black/40 flex', placementClasses[placement], containerClassName, backdropClassName);
15
- const contentClasses = cn('bg-background p-4 rounded-lg shadow-lg max-h-[90vh] w-full max-w-lg', placement === 'left' || placement === 'right' ? 'h-full max-h-none' : '', placement === 'bottom' || placement === 'top' ? 'max-w-none' : '', contentClassName);
14
+ // const containerClasses = cn(
15
+ // 'flex-1 bg-black/40 flex',
16
+ // placementClasses[placement],
17
+ // containerClassName,
18
+ // backdropClassName,
19
+ // );
20
+ // const contentClasses = cn(
21
+ // 'bg-background p-4 rounded-lg shadow-lg max-h-[90vh] w-full max-w-lg',
22
+ // placement === 'left' || placement === 'right' ? 'h-full max-h-none' : '',
23
+ // placement === 'bottom' || placement === 'top' ? 'max-w-none' : '',
24
+ // contentClassName,
25
+ // );
16
26
  const handleRequestClose = (e) => {
17
27
  onOpenChange?.(false);
18
28
  if (typeof restProps.onRequestClose === 'function') {
19
29
  restProps.onRequestClose?.(e);
20
30
  }
21
31
  };
22
- return (_jsx(Modal, { visible: open, animationType: "slide", transparent: true, onRequestClose: handleRequestClose, ...restProps, children: _jsx(E, { className: containerClasses, style: { ...containerStyle, ...backdropStyle }, children: _jsx(E, { ref: ref, className: contentClasses, style: contentStyle, children: children }) }) }));
32
+ return (_jsx(Modal, { visible: open, animationType: "slide", transparent: true, onRequestClose: handleRequestClose, ...restProps, children: _jsx(E
33
+ // className={containerClasses}
34
+ , {
35
+ // className={containerClasses}
36
+ style: { ...containerStyle, ...backdropStyle }, children: _jsx(E, { ref: ref,
37
+ // className={contentClasses}
38
+ style: contentStyle, children: children }) }) }));
23
39
  }
24
40
  export const Dialog = D;
@@ -3,7 +3,7 @@ import { createPortal } from 'react-dom';
3
3
  import { useCn } from '../../hooks/useCn';
4
4
  import { E } from '../e/index.web';
5
5
  export function D({ open, onOpenChange, placement = 'center', backdropClassName, backdropStyle, containerClassName, containerStyle, contentClassName, contentStyle, closeOnBackdropClick = true, children, ref, ...restProps }) {
6
- const cn = useCn();
6
+ // const cn = useCn();
7
7
  if (typeof document === 'undefined')
8
8
  return null;
9
9
  if (!open)
@@ -22,13 +22,29 @@ export function D({ open, onOpenChange, placement = 'center', backdropClassName,
22
22
  onOpenChange?.(false);
23
23
  }
24
24
  };
25
- const backdropClasses = cn('fixed inset-0 z-50 flex bg-black/40', placementClasses[placement], containerClassName, backdropClassName);
26
- const contentClasses = cn('relative max-h-[90vh] w-full max-w-lg overflow-auto rounded-lg bg-background p-4 shadow-lg', placement === 'left' || placement === 'right' ? 'h-full max-h-none' : '', placement === 'bottom' || placement === 'top' ? 'max-w-none' : '', contentClassName);
27
- return createPortal(_jsx(E, { className: backdropClasses, role: "presentation", onClick: handleBackdropClick, style: {
25
+ // const backdropClasses = cn(
26
+ // 'fixed inset-0 z-50 flex bg-black/40',
27
+ // placementClasses[placement],
28
+ // containerClassName,
29
+ // backdropClassName,
30
+ // );
31
+ // const contentClasses = cn(
32
+ // 'relative max-h-[90vh] w-full max-w-lg overflow-auto rounded-lg bg-background p-4 shadow-lg',
33
+ // placement === 'left' || placement === 'right' ? 'h-full max-h-none' : '',
34
+ // placement === 'bottom' || placement === 'top' ? 'max-w-none' : '',
35
+ // contentClassName,
36
+ // );
37
+ return createPortal(_jsx(E
38
+ // className={backdropClasses}
39
+ , {
40
+ // className={backdropClasses}
41
+ role: "presentation", onClick: handleBackdropClick, style: {
28
42
  ...(containerStyle || {}),
29
43
  ...(backdropStyle || {}),
30
44
  }, children: _jsx("div", { ref: ref,
31
45
  // biome-ignore lint/a11y/useSemanticElements: <explanation>
32
- role: "dialog", "aria-modal": "true", className: contentClasses, style: contentStyle, ...restProps, children: children }) }), document.body);
46
+ role: "dialog", "aria-modal": "true",
47
+ // className={contentClasses}
48
+ style: contentStyle, ...restProps, children: children }) }), document.body);
33
49
  }
34
50
  export const Dialog = D;
@@ -4,9 +4,9 @@ import { useCn } from '../../hooks/useCn';
4
4
  import { useInteractiveHandlers, useStyles } from '../../index.native';
5
5
  import { T } from '../t/index.native';
6
6
  export function E({ className, children, ref, style, ...restProps }) {
7
- const cn = useCn();
7
+ // const cn = useCn();
8
8
  const { getStyles } = useStyles();
9
9
  const { disabled, eventHandlers } = useInteractiveHandlers(restProps);
10
- return (_jsx(View, { ref: ref, className: cn(className), ...eventHandlers, ...getStyles({ disabled, style }), children: typeof children === 'string' ? _jsx(T, { children: children }) : children }));
10
+ return (_jsx(View, { ref: ref, ...eventHandlers, ...getStyles({ disabled, style }), children: typeof children === 'string' ? _jsx(T, { children: children }) : children }));
11
11
  }
12
12
  export const Element = E;
@@ -2,10 +2,12 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useCn } from '../../hooks/useCn';
3
3
  import { useInteractiveHandlers, useStyles } from '../../index.web';
4
4
  export function E({ as = 'div', className, children, ref, role, style, ...restProps }) {
5
- const cn = useCn();
5
+ // const cn = useCn();
6
6
  const { disabled, eventHandlers } = useInteractiveHandlers(restProps);
7
7
  const { getStyles } = useStyles();
8
8
  const Comp = as;
9
- return (_jsx(Comp, { ref: ref, className: cn(className), role: role, ...restProps, ...eventHandlers, ...getStyles({ disabled, style }), children: children }));
9
+ return (_jsx(Comp, { ref: ref,
10
+ // className={cn(className)}
11
+ role: role, ...restProps, ...eventHandlers, ...getStyles({ disabled, style }), children: children }));
10
12
  }
11
13
  export const Element = E;
@@ -6,7 +6,7 @@ import { useInteractiveHandlers, useStyles } from '../../index.native';
6
6
  import { useIUtils } from './useIUtils';
7
7
  export function I({ className, value, defaultValue, placeholder, onChange, onChangeValue, type, inputMode, keyboardType, editable, ref, name, style, ...restProps }) {
8
8
  const { treatTypeModeAndKeyboardType } = useIUtils();
9
- const cn = useCn();
9
+ // const cn = useCn();
10
10
  const { onChange: handleOnChange } = useOnChange({
11
11
  onChange,
12
12
  onChangeValue,
@@ -19,6 +19,8 @@ export function I({ className, value, defaultValue, placeholder, onChange, onCha
19
19
  keyboardType,
20
20
  type,
21
21
  });
22
- return (_jsx(TextInput, { ref: ref, className: cn(!effectiveEditable && 'opacity-60', className), value: value?.toString(), defaultValue: defaultValue?.toString(), placeholder: placeholder, onChange: handleOnChange, secureTextEntry: masterInputType === 'password', keyboardType: masterInputKeyboardType, editable: effectiveEditable, ...restProps, ...eventHandlers, ...getStyles({ disabled, style }) }));
22
+ return (_jsx(TextInput, { ref: ref,
23
+ // className={cn(!effectiveEditable && 'opacity-60', className)}
24
+ value: value?.toString(), defaultValue: defaultValue?.toString(), placeholder: placeholder, onChange: handleOnChange, secureTextEntry: masterInputType === 'password', keyboardType: masterInputKeyboardType, editable: effectiveEditable, ...restProps, ...eventHandlers, ...getStyles({ disabled, style }) }));
23
25
  }
24
26
  export const Input = I;
@@ -5,7 +5,7 @@ import { useInteractiveHandlers, useStyles } from '../../index.web';
5
5
  import { useIUtils } from './useIUtils';
6
6
  export function I({ className, value, defaultValue, placeholder, onChange, onChangeValue, type, inputMode, keyboardType, editable, ref, style, ...restProps }) {
7
7
  const { treatTypeModeAndKeyboardType } = useIUtils();
8
- const cn = useCn();
8
+ // const cn = useCn();
9
9
  const { onChange: handleOnChange } = useOnChange({
10
10
  onChange,
11
11
  onChangeValue,
@@ -18,6 +18,12 @@ export function I({ className, value, defaultValue, placeholder, onChange, onCha
18
18
  keyboardType,
19
19
  type,
20
20
  });
21
- return (_jsx("input", { ref: ref, type: masterInputType, inputMode: masterInputMode, className: cn('outline-none', effectiveDisabled && 'opacity-60 cursor-not-allowed', className), value: value?.toString(), defaultValue: defaultValue?.toString(), placeholder: placeholder, onChange: handleOnChange, disabled: effectiveDisabled, ...restProps, ...eventHandlers, ...getStyles({ disabled, style }) }));
21
+ return (_jsx("input", { ref: ref, type: masterInputType, inputMode: masterInputMode,
22
+ // className={cn(
23
+ // 'outline-none',
24
+ // effectiveDisabled && 'opacity-60 cursor-not-allowed',
25
+ // className,
26
+ // )}
27
+ value: value?.toString(), defaultValue: defaultValue?.toString(), placeholder: placeholder, onChange: handleOnChange, disabled: effectiveDisabled, ...restProps, ...eventHandlers, ...getStyles({ disabled, style }) }));
22
28
  }
23
29
  export const Input = I;
@@ -2,10 +2,10 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useCn } from '../../hooks/useCn';
3
3
  import { useInteractiveHandlers, useStyles } from '../../index.web';
4
4
  export function L({ className, children, to, href, preventDefault, ref, style, ...restProps }) {
5
- const cn = useCn();
5
+ // const cn = useCn();
6
6
  const { disabled, eventHandlers } = useInteractiveHandlers(restProps);
7
7
  const { getStyles } = useStyles();
8
8
  const resolvedHref = href ?? to ?? '#';
9
- return (_jsx("a", { ref: ref, href: resolvedHref, className: cn('cursor-pointer', className), ...restProps, ...eventHandlers, ...getStyles({ disabled, style }), children: children }));
9
+ return (_jsx("a", { ref: ref, href: resolvedHref, ...restProps, ...eventHandlers, ...getStyles({ disabled, style }), children: children }));
10
10
  }
11
11
  export const Link = L;
@@ -2,7 +2,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { ScrollView } from 'react-native';
3
3
  import { useCn } from '../../hooks/useCn';
4
4
  export function O({ className, children, horizontal, ref, ...restProps }) {
5
- const cn = useCn();
6
- return (_jsx(ScrollView, { ref: ref, className: cn(className), horizontal: horizontal, ...restProps, children: children }));
5
+ // const cn = useCn();
6
+ return (_jsx(ScrollView, { ref: ref,
7
+ // className={cn(className)}
8
+ horizontal: horizontal, ...restProps, children: children }));
7
9
  }
8
10
  export const Overflow = O;
@@ -2,10 +2,10 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useCn } from '../../hooks/useCn';
3
3
  import { useInteractiveHandlers, useStyles } from '../../index.web';
4
4
  export function O({ className, children, horizontal, ref, style, ...restProps }) {
5
- const cn = useCn();
5
+ // const cn = useCn();
6
6
  const { disabled, eventHandlers } = useInteractiveHandlers(restProps);
7
7
  const { getStyles } = useStyles();
8
8
  const overflowClass = horizontal ? 'overflow-x-auto' : 'overflow-y-auto';
9
- return (_jsx("div", { ref: ref, className: cn(overflowClass, className), ...restProps, ...eventHandlers, ...getStyles({ disabled, style }), children: children }));
9
+ return (_jsx("div", { ref: ref, ...restProps, ...eventHandlers, ...getStyles({ disabled, style }), children: children }));
10
10
  }
11
11
  export const Overflow = O;