@react-xp/aeiou 0.1.0-beta.13 → 0.1.0-beta.14

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 (171) hide show
  1. package/dist/cjs/components/a/a.native.js +6 -4
  2. package/dist/cjs/components/a/a.web.js +6 -4
  3. package/dist/cjs/components/d/d.native.js +7 -7
  4. package/dist/cjs/components/d/d.web.js +8 -8
  5. package/dist/cjs/components/e/e.native.js +7 -5
  6. package/dist/cjs/components/e/e.web.js +7 -5
  7. package/dist/cjs/components/i/i.native.js +9 -5
  8. package/dist/cjs/components/i/i.web.js +9 -5
  9. package/dist/cjs/components/l/l.web.js +7 -5
  10. package/dist/cjs/components/o/o.native.js +4 -4
  11. package/dist/cjs/components/o/o.web.js +7 -4
  12. package/dist/cjs/components/p/p.native.js +4 -4
  13. package/dist/cjs/components/p/p.web.js +7 -4
  14. package/dist/cjs/components/s/s.native.js +4 -4
  15. package/dist/cjs/components/t/t.native.js +7 -5
  16. package/dist/cjs/components/t/t.web.js +7 -5
  17. package/dist/cjs/hooks/index.js +0 -1
  18. package/dist/cjs/hooks/index.native.js +2 -0
  19. package/dist/cjs/hooks/index.web.js +2 -0
  20. package/dist/cjs/hooks/useInteractiveHandlers/useInteractiveHandlers.native.js +43 -0
  21. package/dist/cjs/hooks/useInteractiveHandlers/useInteractiveHandlers.web.js +45 -0
  22. package/dist/cjs/hooks/useInteractiveState/useInteractiveState.native.js +16 -38
  23. package/dist/cjs/hooks/useInteractiveState/useInteractiveState.web.js +19 -48
  24. package/dist/cjs/hooks/useStyles/useStyles.helpers.js +35 -0
  25. package/dist/cjs/hooks/useStyles/useStyles.native.js +42 -0
  26. package/dist/cjs/hooks/useStyles/useStyles.web.js +71 -0
  27. package/dist/esm/components/a/a.native.js +6 -4
  28. package/dist/esm/components/a/a.web.js +6 -4
  29. package/dist/esm/components/d/d.native.js +5 -5
  30. package/dist/esm/components/d/d.web.js +5 -5
  31. package/dist/esm/components/e/e.native.js +6 -4
  32. package/dist/esm/components/e/e.web.js +6 -4
  33. package/dist/esm/components/i/i.native.js +7 -3
  34. package/dist/esm/components/i/i.web.js +7 -3
  35. package/dist/esm/components/l/l.web.js +6 -4
  36. package/dist/esm/components/o/o.native.js +3 -3
  37. package/dist/esm/components/o/o.web.js +6 -3
  38. package/dist/esm/components/p/p.native.js +3 -3
  39. package/dist/esm/components/p/p.web.js +6 -3
  40. package/dist/esm/components/s/s.native.js +3 -3
  41. package/dist/esm/components/t/t.native.js +6 -4
  42. package/dist/esm/components/t/t.web.js +6 -4
  43. package/dist/esm/hooks/index.js +0 -1
  44. package/dist/esm/hooks/index.native.js +2 -0
  45. package/dist/esm/hooks/index.web.js +2 -0
  46. package/dist/esm/hooks/useInteractiveHandlers/useInteractiveHandlers.native.js +40 -0
  47. package/dist/esm/hooks/useInteractiveHandlers/useInteractiveHandlers.web.js +42 -0
  48. package/dist/esm/hooks/useInteractiveState/useInteractiveState.native.js +16 -38
  49. package/dist/esm/hooks/useInteractiveState/useInteractiveState.web.js +19 -48
  50. package/dist/esm/hooks/useStyles/useStyles.helpers.js +29 -0
  51. package/dist/esm/hooks/useStyles/useStyles.native.js +38 -0
  52. package/dist/esm/hooks/useStyles/useStyles.web.js +66 -0
  53. package/dist/native/cjs/components/a/a.native.js +6 -4
  54. package/dist/native/cjs/components/a/a.web.js +6 -4
  55. package/dist/native/cjs/components/d/d.native.js +7 -7
  56. package/dist/native/cjs/components/d/d.web.js +8 -8
  57. package/dist/native/cjs/components/e/e.native.js +7 -5
  58. package/dist/native/cjs/components/e/e.web.js +7 -5
  59. package/dist/native/cjs/components/i/i.native.js +9 -5
  60. package/dist/native/cjs/components/i/i.web.js +9 -5
  61. package/dist/native/cjs/components/l/l.web.js +7 -5
  62. package/dist/native/cjs/components/o/o.native.js +4 -4
  63. package/dist/native/cjs/components/o/o.web.js +7 -4
  64. package/dist/native/cjs/components/p/p.native.js +4 -4
  65. package/dist/native/cjs/components/p/p.web.js +7 -4
  66. package/dist/native/cjs/components/s/s.native.js +4 -4
  67. package/dist/native/cjs/components/t/t.native.js +7 -5
  68. package/dist/native/cjs/components/t/t.web.js +7 -5
  69. package/dist/native/cjs/hooks/index.js +0 -1
  70. package/dist/native/cjs/hooks/index.native.js +2 -0
  71. package/dist/native/cjs/hooks/index.web.js +2 -0
  72. package/dist/native/cjs/hooks/useInteractiveHandlers/useInteractiveHandlers.native.js +43 -0
  73. package/dist/native/cjs/hooks/useInteractiveHandlers/useInteractiveHandlers.web.js +45 -0
  74. package/dist/native/cjs/hooks/useInteractiveState/useInteractiveState.native.js +16 -38
  75. package/dist/native/cjs/hooks/useInteractiveState/useInteractiveState.web.js +19 -48
  76. package/dist/native/cjs/hooks/useStyles/useStyles.helpers.js +35 -0
  77. package/dist/native/cjs/hooks/useStyles/useStyles.native.js +42 -0
  78. package/dist/native/cjs/hooks/useStyles/useStyles.web.js +71 -0
  79. package/dist/native/esm/components/a/a.native.js +6 -4
  80. package/dist/native/esm/components/a/a.web.js +6 -4
  81. package/dist/native/esm/components/d/d.native.js +5 -5
  82. package/dist/native/esm/components/d/d.web.js +5 -5
  83. package/dist/native/esm/components/e/e.native.js +6 -4
  84. package/dist/native/esm/components/e/e.web.js +6 -4
  85. package/dist/native/esm/components/i/i.native.js +7 -3
  86. package/dist/native/esm/components/i/i.web.js +7 -3
  87. package/dist/native/esm/components/l/l.web.js +6 -4
  88. package/dist/native/esm/components/o/o.native.js +3 -3
  89. package/dist/native/esm/components/o/o.web.js +6 -3
  90. package/dist/native/esm/components/p/p.native.js +3 -3
  91. package/dist/native/esm/components/p/p.web.js +6 -3
  92. package/dist/native/esm/components/s/s.native.js +3 -3
  93. package/dist/native/esm/components/t/t.native.js +6 -4
  94. package/dist/native/esm/components/t/t.web.js +6 -4
  95. package/dist/native/esm/hooks/index.js +0 -1
  96. package/dist/native/esm/hooks/index.native.js +2 -0
  97. package/dist/native/esm/hooks/index.web.js +2 -0
  98. package/dist/native/esm/hooks/useInteractiveHandlers/useInteractiveHandlers.native.js +40 -0
  99. package/dist/native/esm/hooks/useInteractiveHandlers/useInteractiveHandlers.web.js +42 -0
  100. package/dist/native/esm/hooks/useInteractiveState/useInteractiveState.native.js +16 -38
  101. package/dist/native/esm/hooks/useInteractiveState/useInteractiveState.web.js +19 -48
  102. package/dist/native/esm/hooks/useStyles/useStyles.helpers.js +29 -0
  103. package/dist/native/esm/hooks/useStyles/useStyles.native.js +38 -0
  104. package/dist/native/esm/hooks/useStyles/useStyles.web.js +66 -0
  105. package/dist/native/tsconfig.native.cjs.tsbuildinfo +1 -1
  106. package/dist/native/tsconfig.native.esm.tsbuildinfo +1 -1
  107. package/dist/tsconfig.cjs.tsbuildinfo +1 -1
  108. package/dist/tsconfig.esm.tsbuildinfo +1 -1
  109. package/dist/types/components/a/a.native.d.ts +1 -1
  110. package/dist/types/components/a/a.native.d.ts.map +1 -1
  111. package/dist/types/components/a/a.web.d.ts +1 -1
  112. package/dist/types/components/a/a.web.d.ts.map +1 -1
  113. package/dist/types/components/d/d.native.d.ts +1 -1
  114. package/dist/types/components/d/d.native.d.ts.map +1 -1
  115. package/dist/types/components/d/d.web.d.ts +1 -1
  116. package/dist/types/components/d/d.web.d.ts.map +1 -1
  117. package/dist/types/components/e/e.native.d.ts +1 -1
  118. package/dist/types/components/e/e.native.d.ts.map +1 -1
  119. package/dist/types/components/e/e.web.d.ts +1 -1
  120. package/dist/types/components/e/e.web.d.ts.map +1 -1
  121. package/dist/types/components/i/i.native.d.ts +1 -1
  122. package/dist/types/components/i/i.native.d.ts.map +1 -1
  123. package/dist/types/components/i/i.web.d.ts +1 -1
  124. package/dist/types/components/i/i.web.d.ts.map +1 -1
  125. package/dist/types/components/l/l.web.d.ts +1 -1
  126. package/dist/types/components/l/l.web.d.ts.map +1 -1
  127. package/dist/types/components/o/o.native.d.ts +1 -1
  128. package/dist/types/components/o/o.native.d.ts.map +1 -1
  129. package/dist/types/components/o/o.web.d.ts +1 -1
  130. package/dist/types/components/o/o.web.d.ts.map +1 -1
  131. package/dist/types/components/p/p.native.d.ts +1 -1
  132. package/dist/types/components/p/p.native.d.ts.map +1 -1
  133. package/dist/types/components/p/p.web.d.ts +1 -1
  134. package/dist/types/components/p/p.web.d.ts.map +1 -1
  135. package/dist/types/components/s/s.native.d.ts +1 -1
  136. package/dist/types/components/s/s.native.d.ts.map +1 -1
  137. package/dist/types/components/t/t.native.d.ts +1 -1
  138. package/dist/types/components/t/t.native.d.ts.map +1 -1
  139. package/dist/types/components/t/t.web.d.ts +1 -1
  140. package/dist/types/components/t/t.web.d.ts.map +1 -1
  141. package/dist/types/hooks/index.d.ts +0 -1
  142. package/dist/types/hooks/index.d.ts.map +1 -1
  143. package/dist/types/hooks/index.native.d.ts +2 -0
  144. package/dist/types/hooks/index.native.d.ts.map +1 -1
  145. package/dist/types/hooks/index.web.d.ts +2 -0
  146. package/dist/types/hooks/index.web.d.ts.map +1 -1
  147. package/dist/types/hooks/useInteractiveHandlers/useInteractiveHandlers.native.d.ts +11 -0
  148. package/dist/types/hooks/useInteractiveHandlers/useInteractiveHandlers.native.d.ts.map +1 -0
  149. package/dist/types/hooks/useInteractiveHandlers/useInteractiveHandlers.web.d.ts +12 -0
  150. package/dist/types/hooks/useInteractiveHandlers/useInteractiveHandlers.web.d.ts.map +1 -0
  151. package/dist/types/hooks/useInteractiveState/useInteractiveState.native.d.ts +5 -7
  152. package/dist/types/hooks/useInteractiveState/useInteractiveState.native.d.ts.map +1 -1
  153. package/dist/types/hooks/useInteractiveState/useInteractiveState.web.d.ts +5 -7
  154. package/dist/types/hooks/useInteractiveState/useInteractiveState.web.d.ts.map +1 -1
  155. package/dist/types/hooks/useStyles/useStyles.helpers.d.ts +171 -0
  156. package/dist/types/hooks/useStyles/useStyles.helpers.d.ts.map +1 -0
  157. package/dist/types/hooks/useStyles/useStyles.native.d.ts +15 -0
  158. package/dist/types/hooks/useStyles/useStyles.native.d.ts.map +1 -0
  159. package/dist/types/hooks/useStyles/useStyles.types.d.ts +6 -0
  160. package/dist/types/hooks/useStyles/useStyles.types.d.ts.map +1 -0
  161. package/dist/types/hooks/useStyles/useStyles.web.d.ts +11 -0
  162. package/dist/types/hooks/useStyles/useStyles.web.d.ts.map +1 -0
  163. package/dist/types/types/base.d.ts +28 -6
  164. package/dist/types/types/base.d.ts.map +1 -1
  165. package/package.json +1 -1
  166. package/dist/types/hooks/useInteractiveState/useInteractiveState.types.d.ts +0 -18
  167. package/dist/types/hooks/useInteractiveState/useInteractiveState.types.d.ts.map +0 -1
  168. /package/dist/cjs/hooks/{useInteractiveState/useInteractiveState.types.js → useStyles/useStyles.types.js} +0 -0
  169. /package/dist/esm/hooks/{useInteractiveState/useInteractiveState.types.js → useStyles/useStyles.types.js} +0 -0
  170. /package/dist/native/cjs/hooks/{useInteractiveState/useInteractiveState.types.js → useStyles/useStyles.types.js} +0 -0
  171. /package/dist/native/esm/hooks/{useInteractiveState/useInteractiveState.types.js → useStyles/useStyles.types.js} +0 -0
@@ -1,23 +1,21 @@
1
1
  import type { GestureResponderEvent, NativeSyntheticEvent, TargetedEvent } from 'react-native';
2
- import type { TAny } from '../../types';
3
- import type { TInteractiveState, TUseInteractiveStateOptions } from './useInteractiveState.types';
4
- export declare function useInteractiveState(options?: TUseInteractiveStateOptions): {
5
- state: TInteractiveState;
2
+ import type { TInteractionState, TInteractiveStateProps } from '../../types';
3
+ export declare function useInteractiveState({ disabled, onBlur, onClick, onFocus, onPress, onIn, onOut, }?: TInteractiveStateProps): {
6
4
  dataAttrs: {
7
- readonly 'data-state': TInteractiveState;
5
+ readonly 'data-state': TInteractionState;
8
6
  readonly 'data-disabled': "true" | "false";
9
7
  readonly 'data-focused': "true" | "false";
10
8
  readonly 'data-hovered': "true" | "false";
11
9
  readonly 'data-pressed': "true" | "false";
12
10
  };
11
+ disabled: boolean | undefined;
13
12
  eventHandlers: {
14
13
  onBlur: (e: NativeSyntheticEvent<TargetedEvent>) => void;
15
14
  onFocus: (e: NativeSyntheticEvent<TargetedEvent>) => void;
16
- onIn: (e: TAny) => void;
17
15
  onPress: (e: GestureResponderEvent) => void;
18
16
  onPressIn: (e: GestureResponderEvent) => void;
19
17
  onPressOut: (e: GestureResponderEvent) => void;
20
- onOut: (e: TAny) => void;
21
18
  };
19
+ interactiveState: TInteractionState;
22
20
  };
23
21
  //# sourceMappingURL=useInteractiveState.native.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useInteractiveState.native.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useInteractiveState/useInteractiveState.native.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,qBAAqB,EACrB,oBAAoB,EACpB,aAAa,EACd,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,KAAK,EACV,iBAAiB,EACjB,2BAA2B,EAC5B,MAAM,6BAA6B,CAAC;AAErC,wBAAgB,mBAAmB,CAAC,OAAO,GAAE,2BAAgC;;;;;;;;;;oBA0B7D,oBAAoB,CAAC,aAAa,CAAC;qBAUlC,oBAAoB,CAAC,aAAa,CAAC;kBAStC,IAAI;qBASD,qBAAqB;uBAyBnB,qBAAqB;wBASpB,qBAAqB;mBAS1B,IAAI;;EAYlB"}
1
+ {"version":3,"file":"useInteractiveState.native.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useInteractiveState/useInteractiveState.native.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,qBAAqB,EACrB,oBAAoB,EACpB,aAAa,EACd,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAE7E,wBAAgB,mBAAmB,CAAC,EAClC,QAAQ,EACR,MAAM,EACN,OAAO,EACP,OAAO,EACP,OAAO,EACP,IAAI,EACJ,KAAK,GACN,GAAE,sBAA2B;;;;;;;;;;oBAed,oBAAoB,CAAC,aAAa,CAAC;qBASlC,oBAAoB,CAAC,aAAa,CAAC;qBASnC,qBAAqB;uBAyBnB,qBAAqB;wBASpB,qBAAqB;;;EAiBxC"}
@@ -1,24 +1,22 @@
1
- import type { TAny } from '../../types';
2
- import type { TInteractiveState, TUseInteractiveStateOptions } from './useInteractiveState.types';
3
- export declare function useInteractiveState(options?: TUseInteractiveStateOptions): {
4
- state: TInteractiveState;
1
+ import type { TAny, TInteractionState, TInteractiveStateProps } from '../../types';
2
+ export declare function useInteractiveState({ disabled, onBlur, onClick, onFocus, onPress, onIn, onOut, }?: TInteractiveStateProps): {
5
3
  dataAttrs: {
6
- readonly 'data-state': TInteractiveState;
4
+ readonly 'data-state': TInteractionState;
7
5
  readonly 'data-disabled': "true" | "false";
8
6
  readonly 'data-focused': "true" | "false";
9
7
  readonly 'data-hovered': "true" | "false";
10
8
  readonly 'data-pressed': "true" | "false";
11
9
  };
10
+ disabled: boolean | undefined;
12
11
  eventHandlers: {
13
12
  onBlur: (e: React.FocusEvent<TAny>) => void;
14
13
  onClick: (e: React.MouseEvent<TAny>) => void;
15
14
  onFocus: (e: React.FocusEvent<TAny>) => void;
16
- onIn: (e: React.MouseEvent<TAny>) => void;
17
15
  onMouseDown: (e: React.MouseEvent<TAny>) => void;
18
16
  onMouseEnter: (e: React.MouseEvent<TAny>) => void;
19
17
  onMouseLeave: (e: React.MouseEvent<TAny>) => void;
20
18
  onMouseUp: (e: React.MouseEvent<TAny>) => void;
21
- onOut: (e: React.MouseEvent<TAny>) => void;
22
19
  };
20
+ interactiveState: TInteractionState;
23
21
  };
24
22
  //# sourceMappingURL=useInteractiveState.web.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useInteractiveState.web.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useInteractiveState/useInteractiveState.web.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,KAAK,EACV,iBAAiB,EACjB,2BAA2B,EAC5B,MAAM,6BAA6B,CAAC;AAErC,wBAAgB,mBAAmB,CAAC,OAAO,GAAE,2BAAgC;;;;;;;;;;oBAyB7D,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC;qBAarB,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC;qBAetB,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC;kBAWzB,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC;yBASf,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC;0BASrB,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC;0BAWtB,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC;uBAYzB,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC;mBAS1B,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC;;EAYpC"}
1
+ {"version":3,"file":"useInteractiveState.web.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useInteractiveState/useInteractiveState.web.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,IAAI,EACJ,iBAAiB,EACjB,sBAAsB,EACvB,MAAM,aAAa,CAAC;AAErB,wBAAgB,mBAAmB,CAAC,EAClC,QAAQ,EACR,MAAM,EACN,OAAO,EACP,OAAO,EACP,OAAO,EACP,IAAI,EACJ,KAAK,GACN,GAAE,sBAA2B;;;;;;;;;;oBAad,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC;qBASrB,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC;qBAatB,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC;yBASlB,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC;0BAOrB,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC;0BAStB,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC;uBAWzB,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC;;;EAiBxC"}
@@ -0,0 +1,171 @@
1
+ import type { TUniversalStyle, TUniversalStylePrimitive } from '../../types';
2
+ export declare const extractStyles: (style: TUniversalStyle) => {
3
+ styleBase: {
4
+ color?: import("react-native").ColorValue | undefined;
5
+ fontFamily?: string | undefined;
6
+ fontSize?: number | undefined;
7
+ fontStyle?: "normal" | "italic" | undefined;
8
+ fontWeight?: "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "medium" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined;
9
+ letterSpacing?: number | undefined;
10
+ lineHeight?: number | undefined;
11
+ textAlign?: "auto" | "left" | "right" | "center" | "justify" | undefined;
12
+ textDecorationLine?: "none" | "underline" | "line-through" | "underline line-through" | undefined;
13
+ textDecorationStyle?: "solid" | "double" | "dotted" | "dashed" | undefined;
14
+ textDecorationColor?: import("react-native").ColorValue | undefined;
15
+ textShadowColor?: import("react-native").ColorValue | undefined;
16
+ textShadowOffset?: {
17
+ width: number;
18
+ height: number;
19
+ } | undefined;
20
+ textShadowRadius?: number | undefined;
21
+ textTransform?: "none" | "capitalize" | "uppercase" | "lowercase" | undefined;
22
+ userSelect?: "auto" | "none" | "text" | "contain" | "all" | undefined;
23
+ fontVariant?: import("react-native").FontVariant[] | undefined;
24
+ writingDirection?: "auto" | "ltr" | "rtl" | undefined;
25
+ backfaceVisibility?: "visible" | "hidden" | undefined;
26
+ backgroundColor?: import("react-native").ColorValue | undefined;
27
+ borderBlockColor?: import("react-native").ColorValue | undefined;
28
+ borderBlockEndColor?: import("react-native").ColorValue | undefined;
29
+ borderBlockStartColor?: import("react-native").ColorValue | undefined;
30
+ borderBottomColor?: import("react-native").ColorValue | undefined;
31
+ borderBottomEndRadius?: import("react-native").AnimatableNumericValue | string | undefined;
32
+ borderBottomLeftRadius?: import("react-native").AnimatableNumericValue | string | undefined;
33
+ borderBottomRightRadius?: import("react-native").AnimatableNumericValue | string | undefined;
34
+ borderBottomStartRadius?: import("react-native").AnimatableNumericValue | string | undefined;
35
+ borderColor?: import("react-native").ColorValue | undefined;
36
+ borderCurve?: "circular" | "continuous" | undefined;
37
+ borderEndColor?: import("react-native").ColorValue | undefined;
38
+ borderEndEndRadius?: import("react-native").AnimatableNumericValue | string | undefined;
39
+ borderEndStartRadius?: import("react-native").AnimatableNumericValue | string | undefined;
40
+ borderLeftColor?: import("react-native").ColorValue | undefined;
41
+ borderRadius?: import("react-native").AnimatableNumericValue | string | undefined;
42
+ borderRightColor?: import("react-native").ColorValue | undefined;
43
+ borderStartColor?: import("react-native").ColorValue | undefined;
44
+ borderStartEndRadius?: import("react-native").AnimatableNumericValue | string | undefined;
45
+ borderStartStartRadius?: import("react-native").AnimatableNumericValue | string | undefined;
46
+ borderStyle?: "solid" | "dotted" | "dashed" | undefined;
47
+ borderTopColor?: import("react-native").ColorValue | undefined;
48
+ borderTopEndRadius?: import("react-native").AnimatableNumericValue | string | undefined;
49
+ borderTopLeftRadius?: import("react-native").AnimatableNumericValue | string | undefined;
50
+ borderTopRightRadius?: import("react-native").AnimatableNumericValue | string | undefined;
51
+ borderTopStartRadius?: import("react-native").AnimatableNumericValue | string | undefined;
52
+ outlineColor?: import("react-native").ColorValue | undefined;
53
+ outlineOffset?: import("react-native").AnimatableNumericValue | undefined;
54
+ outlineStyle?: "solid" | "dotted" | "dashed" | undefined;
55
+ outlineWidth?: import("react-native").AnimatableNumericValue | undefined;
56
+ opacity?: import("react-native").AnimatableNumericValue | undefined;
57
+ elevation?: number | undefined;
58
+ pointerEvents?: "box-none" | "none" | "box-only" | "auto" | undefined;
59
+ isolation?: "auto" | "isolate" | undefined;
60
+ cursor?: import("react-native").CursorValue | undefined;
61
+ boxShadow?: ReadonlyArray<import("react-native").BoxShadowValue> | string | undefined;
62
+ filter?: ReadonlyArray<import("react-native").FilterFunction> | string | undefined;
63
+ mixBlendMode?: import("react-native").BlendMode | undefined;
64
+ experimental_backgroundImage?: ReadonlyArray<import("react-native").GradientValue> | string | undefined;
65
+ alignContent?: "flex-start" | "flex-end" | "center" | "stretch" | "space-between" | "space-around" | "space-evenly" | undefined;
66
+ alignItems?: import("react-native").FlexAlignType | undefined;
67
+ alignSelf?: "auto" | import("react-native").FlexAlignType | undefined;
68
+ aspectRatio?: number | string | undefined;
69
+ borderBottomWidth?: number | undefined;
70
+ borderEndWidth?: number | undefined;
71
+ borderLeftWidth?: number | undefined;
72
+ borderRightWidth?: number | undefined;
73
+ borderStartWidth?: number | undefined;
74
+ borderTopWidth?: number | undefined;
75
+ borderWidth?: number | undefined;
76
+ bottom?: import("react-native").DimensionValue | undefined;
77
+ boxSizing?: "border-box" | "content-box" | undefined;
78
+ display?: "none" | "flex" | "contents" | undefined;
79
+ end?: import("react-native").DimensionValue | undefined;
80
+ flex?: number | undefined;
81
+ flexBasis?: import("react-native").DimensionValue | undefined;
82
+ flexDirection?: "row" | "column" | "row-reverse" | "column-reverse" | undefined;
83
+ rowGap?: number | string | undefined;
84
+ gap?: number | string | undefined;
85
+ columnGap?: number | string | undefined;
86
+ flexGrow?: number | undefined;
87
+ flexShrink?: number | undefined;
88
+ flexWrap?: "wrap" | "nowrap" | "wrap-reverse" | undefined;
89
+ height?: import("react-native").DimensionValue | undefined;
90
+ justifyContent?: "flex-start" | "flex-end" | "center" | "space-between" | "space-around" | "space-evenly" | undefined;
91
+ left?: import("react-native").DimensionValue | undefined;
92
+ margin?: import("react-native").DimensionValue | undefined;
93
+ marginBottom?: import("react-native").DimensionValue | undefined;
94
+ marginEnd?: import("react-native").DimensionValue | undefined;
95
+ marginHorizontal?: import("react-native").DimensionValue | undefined;
96
+ marginLeft?: import("react-native").DimensionValue | undefined;
97
+ marginRight?: import("react-native").DimensionValue | undefined;
98
+ marginStart?: import("react-native").DimensionValue | undefined;
99
+ marginTop?: import("react-native").DimensionValue | undefined;
100
+ marginVertical?: import("react-native").DimensionValue | undefined;
101
+ maxHeight?: import("react-native").DimensionValue | undefined;
102
+ maxWidth?: import("react-native").DimensionValue | undefined;
103
+ minHeight?: import("react-native").DimensionValue | undefined;
104
+ minWidth?: import("react-native").DimensionValue | undefined;
105
+ overflow?: "visible" | "hidden" | "scroll" | undefined;
106
+ padding?: import("react-native").DimensionValue | undefined;
107
+ paddingBottom?: import("react-native").DimensionValue | undefined;
108
+ paddingEnd?: import("react-native").DimensionValue | undefined;
109
+ paddingHorizontal?: import("react-native").DimensionValue | undefined;
110
+ paddingLeft?: import("react-native").DimensionValue | undefined;
111
+ paddingRight?: import("react-native").DimensionValue | undefined;
112
+ paddingStart?: import("react-native").DimensionValue | undefined;
113
+ paddingTop?: import("react-native").DimensionValue | undefined;
114
+ paddingVertical?: import("react-native").DimensionValue | undefined;
115
+ position?: "absolute" | "relative" | "static" | undefined;
116
+ right?: import("react-native").DimensionValue | undefined;
117
+ start?: import("react-native").DimensionValue | undefined;
118
+ top?: import("react-native").DimensionValue | undefined;
119
+ width?: import("react-native").DimensionValue | undefined;
120
+ zIndex?: number | undefined;
121
+ direction?: "inherit" | "ltr" | "rtl" | undefined;
122
+ inset?: import("react-native").DimensionValue | undefined;
123
+ insetBlock?: import("react-native").DimensionValue | undefined;
124
+ insetBlockEnd?: import("react-native").DimensionValue | undefined;
125
+ insetBlockStart?: import("react-native").DimensionValue | undefined;
126
+ insetInline?: import("react-native").DimensionValue | undefined;
127
+ insetInlineEnd?: import("react-native").DimensionValue | undefined;
128
+ insetInlineStart?: import("react-native").DimensionValue | undefined;
129
+ marginBlock?: import("react-native").DimensionValue | undefined;
130
+ marginBlockEnd?: import("react-native").DimensionValue | undefined;
131
+ marginBlockStart?: import("react-native").DimensionValue | undefined;
132
+ marginInline?: import("react-native").DimensionValue | undefined;
133
+ marginInlineEnd?: import("react-native").DimensionValue | undefined;
134
+ marginInlineStart?: import("react-native").DimensionValue | undefined;
135
+ paddingBlock?: import("react-native").DimensionValue | undefined;
136
+ paddingBlockEnd?: import("react-native").DimensionValue | undefined;
137
+ paddingBlockStart?: import("react-native").DimensionValue | undefined;
138
+ paddingInline?: import("react-native").DimensionValue | undefined;
139
+ paddingInlineEnd?: import("react-native").DimensionValue | undefined;
140
+ paddingInlineStart?: import("react-native").DimensionValue | undefined;
141
+ shadowColor?: import("react-native").ColorValue | undefined;
142
+ shadowOffset?: Readonly<{
143
+ width: number;
144
+ height: number;
145
+ }> | undefined;
146
+ shadowOpacity?: import("react-native").AnimatableNumericValue | undefined;
147
+ shadowRadius?: number | undefined;
148
+ transform?: Readonly<import("react-native").MaximumOneOf<import("react-native").PerspectiveTransform & import("react-native").RotateTransform & import("react-native").RotateXTransform & import("react-native").RotateYTransform & import("react-native").RotateZTransform & import("react-native").ScaleTransform & import("react-native").ScaleXTransform & import("react-native").ScaleYTransform & import("react-native").TranslateXTransform & import("react-native").TranslateYTransform & import("react-native").SkewXTransform & import("react-native").SkewYTransform & import("react-native").MatrixTransform>[]> | string | undefined;
149
+ transformOrigin?: Array<string | number> | string | undefined;
150
+ transformMatrix?: Array<number> | undefined;
151
+ rotation?: import("react-native").AnimatableNumericValue | undefined;
152
+ scaleX?: import("react-native").AnimatableNumericValue | undefined;
153
+ scaleY?: import("react-native").AnimatableNumericValue | undefined;
154
+ translateX?: import("react-native").AnimatableNumericValue | undefined;
155
+ translateY?: import("react-native").AnimatableNumericValue | undefined;
156
+ textAlignVertical?: "auto" | "top" | "bottom" | "center" | undefined;
157
+ verticalAlign?: "auto" | "top" | "bottom" | "middle" | undefined;
158
+ includeFontPadding?: boolean | undefined;
159
+ $disabled?: TUniversalStylePrimitive;
160
+ $focused?: TUniversalStylePrimitive;
161
+ $hovered?: TUniversalStylePrimitive;
162
+ $pressed?: TUniversalStylePrimitive;
163
+ };
164
+ styleDisabled: import("react-native").TextStyle;
165
+ styleFocused: import("react-native").TextStyle;
166
+ styleHovered: import("react-native").TextStyle;
167
+ stylePressed: import("react-native").TextStyle;
168
+ };
169
+ export declare const toKebab: (s: string) => string;
170
+ export declare const toCssDecls: (style?: TUniversalStylePrimitive) => string;
171
+ //# sourceMappingURL=useStyles.helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useStyles.helpers.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useStyles/useStyles.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAE7E,eAAO,MAAM,aAAa,GAAI,OAAO,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmBnD,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,GAAG,MAAM,WACkB,CAAC;AAEpD,eAAO,MAAM,UAAU,GAAI,QAAQ,wBAAwB,WAU1D,CAAC"}
@@ -0,0 +1,15 @@
1
+ import type { TUniversalStyleOptions } from '../../types';
2
+ import type { TUseStylesMethodGetStylesProps } from './useStyles.types';
3
+ export declare const useStyles: () => {
4
+ getStyles: <TStyle>({ disabled, style, }: TUseStylesMethodGetStylesProps) => {
5
+ style?: undefined;
6
+ } | {
7
+ style: TStyle;
8
+ };
9
+ getStylesWithInteraction: <TStyle>({ disabled, style }: TUseStylesMethodGetStylesProps) => (options?: TUniversalStyleOptions) => {
10
+ style?: undefined;
11
+ } | {
12
+ style: TStyle;
13
+ };
14
+ };
15
+ //# sourceMappingURL=useStyles.native.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useStyles.native.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useStyles/useStyles.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAE1D,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,mBAAmB,CAAC;AAwDxE,eAAO,MAAM,SAAS;gBAtDH,MAAM,wBAGtB,8BAA8B;;;eAaE,MAAM;;+BAItC,MAAM,uBAAwB,8BAA8B,MAC5D,UAAU,sBAAsB;;;eA8BE,MAAM;;CAQ1C,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { TUniversalStyle } from '../../types';
2
+ export type TUseStylesMethodGetStylesProps = {
3
+ disabled?: boolean;
4
+ style?: TUniversalStyle;
5
+ };
6
+ //# sourceMappingURL=useStyles.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useStyles.types.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useStyles/useStyles.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD,MAAM,MAAM,8BAA8B,GAAG;IAC3C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,eAAe,CAAC;CACzB,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { TUniversalStyle } from '../../types';
2
+ import type { TUseStylesMethodGetStylesProps } from './useStyles.types';
3
+ export declare const createInteractiveClass: ({ disabled, id, style, }: {
4
+ disabled?: boolean;
5
+ id: string;
6
+ style: TUniversalStyle;
7
+ }) => string;
8
+ export declare const useStyles: () => {
9
+ getStyles: ({ disabled, style }: TUseStylesMethodGetStylesProps) => {};
10
+ };
11
+ //# sourceMappingURL=useStyles.web.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useStyles.web.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useStyles/useStyles.web.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,mBAAmB,CAAC;AAgBxE,eAAO,MAAM,sBAAsB,GAAI,0BAIpC;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,eAAe,CAAA;CAAE,WAsC5D,CAAC;AAiBF,eAAO,MAAM,SAAS;qCAbE,8BAA8B;CA4BrD,CAAC"}
@@ -1,16 +1,38 @@
1
1
  import type { CSSProperties, ReactNode, Ref } from 'react';
2
- import type { AccessibilityRole, AccessibilityState, StyleProp, TextStyle } from 'react-native';
2
+ import type { AccessibilityRole, AccessibilityState, ImageStyle, TextStyle, ViewStyle } from 'react-native';
3
3
  export type TAny = any;
4
- export type TNativeStyle<TStyle = TextStyle> = StyleProp<TStyle>;
4
+ export type TUniversalStylePrimitive = TextStyle;
5
+ export type TNativeStyle = ImageStyle | TextStyle | ViewStyle;
5
6
  export type TWebStyle = CSSProperties;
6
- export type TUniversalStyle = TNativeStyle | TWebStyle;
7
+ export type TUniversalStyle = TUniversalStylePrimitive & {
8
+ $disabled?: TUniversalStylePrimitive;
9
+ $focused?: TUniversalStylePrimitive;
10
+ $hovered?: TUniversalStylePrimitive;
11
+ $pressed?: TUniversalStylePrimitive;
12
+ };
13
+ export type TUniversalStyleOptions = {
14
+ focused?: boolean;
15
+ hovered?: boolean;
16
+ pressed?: boolean;
17
+ };
18
+ export type TInteractionState = 'idle' | 'hovered' | 'pressed' | 'focused';
7
19
  export type TBasePrimitiveProps = {
8
20
  children?: ReactNode;
9
21
  className?: string;
10
22
  ref?: Ref<TAny>;
11
23
  style?: TUniversalStyle;
12
24
  };
13
- export type TBaseInteractionProps = {
25
+ export type TInteractiveHandlersProps = {
26
+ disabled?: boolean;
27
+ onBlur?: (e?: TAny) => void;
28
+ onClick?: (e?: TAny) => void;
29
+ onFocus?: (e?: TAny) => void;
30
+ onIn?: (e?: TAny) => void;
31
+ onOut?: (e?: TAny) => void;
32
+ onPress?: (e?: TAny) => void;
33
+ };
34
+ export type TInteractiveStateProps = {
35
+ disabled?: boolean;
14
36
  onBlur?: (e?: TAny) => void;
15
37
  onClick?: (e?: TAny) => void;
16
38
  onFocus?: (e?: TAny) => void;
@@ -18,14 +40,14 @@ export type TBaseInteractionProps = {
18
40
  onOut?: (e?: TAny) => void;
19
41
  onPress?: (e?: TAny) => void;
20
42
  };
21
- export type TBasePrimitiveWithActionProps = TBasePrimitiveProps & TBaseInteractionProps;
43
+ export type TBasePrimitiveWithActionProps = TBasePrimitiveProps & TInteractiveHandlersProps;
22
44
  export type TActionProps = TBasePrimitiveWithActionProps & {
23
45
  accessibilityLabel?: string;
24
46
  accessibilityRole?: AccessibilityRole;
25
47
  accessibilityState?: AccessibilityState;
26
48
  disabled?: boolean;
27
49
  loading?: boolean;
28
- testID?: string;
50
+ testId?: string;
29
51
  };
30
52
  export type TElementProps = TBasePrimitiveWithActionProps & {
31
53
  disabled?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/types/base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,KAAK,EACV,iBAAiB,EACjB,kBAAkB,EAClB,SAAS,EACT,SAAS,EACV,MAAM,cAAc,CAAC;AAGtB,MAAM,MAAM,IAAI,GAAG,GAAG,CAAC;AAEvB,MAAM,MAAM,YAAY,CAAC,MAAM,GAAG,SAAS,IAAI,SAAS,CAAC,MAAM,CAAC,CAAC;AACjE,MAAM,MAAM,SAAS,GAAG,aAAa,CAAC;AACtC,MAAM,MAAM,eAAe,GAAG,YAAY,GAAG,SAAS,CAAC;AAEvD,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC;IAChB,KAAK,CAAC,EAAE,eAAe,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,KAAK,IAAI,CAAC;IAC5B,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,KAAK,IAAI,CAAC;IAC7B,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,KAAK,IAAI,CAAC;IAC7B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EAAE,IAAI,KAAK,IAAI,CAAC;IACnC,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAC7B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,aAAa,CAAC,EAAE,eAAe,CAAC;IAChC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,EAAE,eAAe,CAAC;IACjC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,eAAe,CAAC;IAC/B,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,mBAAmB,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@react-xp/aeiou",
3
3
  "description": "This is a React Experience aeiou package",
4
- "version": "0.1.0-beta.13",
4
+ "version": "0.1.0-beta.14",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -1,18 +0,0 @@
1
- import type { TAny, TBaseInteractionProps } from '../../types';
2
- export type TInteractiveState = 'idle' | 'hovered' | 'pressed' | 'focused' | 'disabled';
3
- export type TInteractionDataAttrs = {
4
- 'data-state': TInteractiveState;
5
- 'data-hovered': string;
6
- 'data-pressed': string;
7
- 'data-focused': string;
8
- 'data-disabled': string;
9
- };
10
- export type TUseInteractiveStateOptions = TBaseInteractionProps & {
11
- disabled?: boolean;
12
- };
13
- export type TUseInteractiveStateResult = {
14
- state: TInteractiveState;
15
- dataAttrs: TInteractionDataAttrs;
16
- eventHandlers: Record<string, TAny>;
17
- };
18
- //# sourceMappingURL=useInteractiveState.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useInteractiveState.types.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useInteractiveState/useInteractiveState.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAE/D,MAAM,MAAM,iBAAiB,GACzB,MAAM,GACN,SAAS,GACT,SAAS,GACT,SAAS,GACT,UAAU,CAAC;AAEf,MAAM,MAAM,qBAAqB,GAAG;IAClC,YAAY,EAAE,iBAAiB,CAAC;IAChC,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG,qBAAqB,GAAG;IAChE,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,KAAK,EAAE,iBAAiB,CAAC;IACzB,SAAS,EAAE,qBAAqB,CAAC;IACjC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;CACrC,CAAC"}