@cdx-ui/components 0.0.1-alpha.1

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 (146) hide show
  1. package/README.md +34 -0
  2. package/lib/commonjs/components/Box/Box.js +30 -0
  3. package/lib/commonjs/components/Box/Box.js.map +1 -0
  4. package/lib/commonjs/components/Box/index.js +17 -0
  5. package/lib/commonjs/components/Box/index.js.map +1 -0
  6. package/lib/commonjs/components/Button/index.js +155 -0
  7. package/lib/commonjs/components/Button/index.js.map +1 -0
  8. package/lib/commonjs/components/Button/styles.js +312 -0
  9. package/lib/commonjs/components/Button/styles.js.map +1 -0
  10. package/lib/commonjs/components/Input/BaseInput.js +13 -0
  11. package/lib/commonjs/components/Input/BaseInput.js.map +1 -0
  12. package/lib/commonjs/components/Input/BaseInput.web.js +50 -0
  13. package/lib/commonjs/components/Input/BaseInput.web.js.map +1 -0
  14. package/lib/commonjs/components/Input/index.js +142 -0
  15. package/lib/commonjs/components/Input/index.js.map +1 -0
  16. package/lib/commonjs/components/Input/styles.js +62 -0
  17. package/lib/commonjs/components/Input/styles.js.map +1 -0
  18. package/lib/commonjs/components/Select/index.js +213 -0
  19. package/lib/commonjs/components/Select/index.js.map +1 -0
  20. package/lib/commonjs/components/Select/styles.js +120 -0
  21. package/lib/commonjs/components/Select/styles.js.map +1 -0
  22. package/lib/commonjs/components/Spinner/Spinner.js +15 -0
  23. package/lib/commonjs/components/Spinner/Spinner.js.map +1 -0
  24. package/lib/commonjs/components/Spinner/index.js +17 -0
  25. package/lib/commonjs/components/Spinner/index.js.map +1 -0
  26. package/lib/commonjs/components/Stack/HStack.js +45 -0
  27. package/lib/commonjs/components/Stack/HStack.js.map +1 -0
  28. package/lib/commonjs/components/Stack/VStack.js +45 -0
  29. package/lib/commonjs/components/Stack/VStack.js.map +1 -0
  30. package/lib/commonjs/components/Stack/index.js +20 -0
  31. package/lib/commonjs/components/Stack/index.js.map +1 -0
  32. package/lib/commonjs/components/Text/Text.js +30 -0
  33. package/lib/commonjs/components/Text/Text.js.map +1 -0
  34. package/lib/commonjs/components/Text/index.js +17 -0
  35. package/lib/commonjs/components/Text/index.js.map +1 -0
  36. package/lib/commonjs/components/index.js +83 -0
  37. package/lib/commonjs/components/index.js.map +1 -0
  38. package/lib/commonjs/index.js +17 -0
  39. package/lib/commonjs/index.js.map +1 -0
  40. package/lib/commonjs/package.json +1 -0
  41. package/lib/commonjs/styles.css +6 -0
  42. package/lib/commonjs/utils/WrapStringChild.js +22 -0
  43. package/lib/commonjs/utils/WrapStringChild.js.map +1 -0
  44. package/lib/module/components/Box/Box.js +26 -0
  45. package/lib/module/components/Box/Box.js.map +1 -0
  46. package/lib/module/components/Box/index.js +4 -0
  47. package/lib/module/components/Box/index.js.map +1 -0
  48. package/lib/module/components/Button/index.js +151 -0
  49. package/lib/module/components/Button/index.js.map +1 -0
  50. package/lib/module/components/Button/styles.js +309 -0
  51. package/lib/module/components/Button/styles.js.map +1 -0
  52. package/lib/module/components/Input/BaseInput.js +4 -0
  53. package/lib/module/components/Input/BaseInput.js.map +1 -0
  54. package/lib/module/components/Input/BaseInput.web.js +45 -0
  55. package/lib/module/components/Input/BaseInput.web.js.map +1 -0
  56. package/lib/module/components/Input/index.js +138 -0
  57. package/lib/module/components/Input/index.js.map +1 -0
  58. package/lib/module/components/Input/styles.js +58 -0
  59. package/lib/module/components/Input/styles.js.map +1 -0
  60. package/lib/module/components/Select/index.js +209 -0
  61. package/lib/module/components/Select/index.js.map +1 -0
  62. package/lib/module/components/Select/styles.js +117 -0
  63. package/lib/module/components/Select/styles.js.map +1 -0
  64. package/lib/module/components/Spinner/Spinner.js +11 -0
  65. package/lib/module/components/Spinner/Spinner.js.map +1 -0
  66. package/lib/module/components/Spinner/index.js +4 -0
  67. package/lib/module/components/Spinner/index.js.map +1 -0
  68. package/lib/module/components/Stack/HStack.js +41 -0
  69. package/lib/module/components/Stack/HStack.js.map +1 -0
  70. package/lib/module/components/Stack/VStack.js +41 -0
  71. package/lib/module/components/Stack/VStack.js.map +1 -0
  72. package/lib/module/components/Stack/index.js +5 -0
  73. package/lib/module/components/Stack/index.js.map +1 -0
  74. package/lib/module/components/Text/Text.js +26 -0
  75. package/lib/module/components/Text/Text.js.map +1 -0
  76. package/lib/module/components/Text/index.js +4 -0
  77. package/lib/module/components/Text/index.js.map +1 -0
  78. package/lib/module/components/index.js +9 -0
  79. package/lib/module/components/index.js.map +1 -0
  80. package/lib/module/index.js +4 -0
  81. package/lib/module/index.js.map +1 -0
  82. package/lib/module/styles.css +6 -0
  83. package/lib/module/utils/WrapStringChild.js +18 -0
  84. package/lib/module/utils/WrapStringChild.js.map +1 -0
  85. package/lib/typescript/components/Box/Box.d.ts +8 -0
  86. package/lib/typescript/components/Box/Box.d.ts.map +1 -0
  87. package/lib/typescript/components/Box/index.d.ts +2 -0
  88. package/lib/typescript/components/Box/index.d.ts.map +1 -0
  89. package/lib/typescript/components/Button/index.d.ts +41 -0
  90. package/lib/typescript/components/Button/index.d.ts.map +1 -0
  91. package/lib/typescript/components/Button/styles.d.ts +23 -0
  92. package/lib/typescript/components/Button/styles.d.ts.map +1 -0
  93. package/lib/typescript/components/Input/BaseInput.d.ts +2 -0
  94. package/lib/typescript/components/Input/BaseInput.d.ts.map +1 -0
  95. package/lib/typescript/components/Input/BaseInput.web.d.ts +3 -0
  96. package/lib/typescript/components/Input/BaseInput.web.d.ts.map +1 -0
  97. package/lib/typescript/components/Input/index.d.ts +32 -0
  98. package/lib/typescript/components/Input/index.d.ts.map +1 -0
  99. package/lib/typescript/components/Input/styles.d.ts +17 -0
  100. package/lib/typescript/components/Input/styles.d.ts.map +1 -0
  101. package/lib/typescript/components/Select/index.d.ts +45 -0
  102. package/lib/typescript/components/Select/index.d.ts.map +1 -0
  103. package/lib/typescript/components/Select/styles.d.ts +22 -0
  104. package/lib/typescript/components/Select/styles.d.ts.map +1 -0
  105. package/lib/typescript/components/Spinner/Spinner.d.ts +5 -0
  106. package/lib/typescript/components/Spinner/Spinner.d.ts.map +1 -0
  107. package/lib/typescript/components/Spinner/index.d.ts +2 -0
  108. package/lib/typescript/components/Spinner/index.d.ts.map +1 -0
  109. package/lib/typescript/components/Stack/HStack.d.ts +20 -0
  110. package/lib/typescript/components/Stack/HStack.d.ts.map +1 -0
  111. package/lib/typescript/components/Stack/VStack.d.ts +20 -0
  112. package/lib/typescript/components/Stack/VStack.d.ts.map +1 -0
  113. package/lib/typescript/components/Stack/index.d.ts +3 -0
  114. package/lib/typescript/components/Stack/index.d.ts.map +1 -0
  115. package/lib/typescript/components/Text/Text.d.ts +11 -0
  116. package/lib/typescript/components/Text/Text.d.ts.map +1 -0
  117. package/lib/typescript/components/Text/index.d.ts +2 -0
  118. package/lib/typescript/components/Text/index.d.ts.map +1 -0
  119. package/lib/typescript/components/index.d.ts +7 -0
  120. package/lib/typescript/components/index.d.ts.map +1 -0
  121. package/lib/typescript/index.d.ts +2 -0
  122. package/lib/typescript/index.d.ts.map +1 -0
  123. package/lib/typescript/utils/WrapStringChild.d.ts +10 -0
  124. package/lib/typescript/utils/WrapStringChild.d.ts.map +1 -0
  125. package/package.json +90 -0
  126. package/src/components/Box/Box.tsx +21 -0
  127. package/src/components/Box/index.ts +1 -0
  128. package/src/components/Button/index.tsx +186 -0
  129. package/src/components/Button/styles.ts +410 -0
  130. package/src/components/Input/BaseInput.tsx +1 -0
  131. package/src/components/Input/BaseInput.web.tsx +41 -0
  132. package/src/components/Input/index.tsx +161 -0
  133. package/src/components/Input/styles.ts +83 -0
  134. package/src/components/Select/index.tsx +215 -0
  135. package/src/components/Select/styles.ts +168 -0
  136. package/src/components/Spinner/Spinner.tsx +10 -0
  137. package/src/components/Spinner/index.ts +1 -0
  138. package/src/components/Stack/HStack.tsx +42 -0
  139. package/src/components/Stack/VStack.tsx +46 -0
  140. package/src/components/Stack/index.ts +2 -0
  141. package/src/components/Text/Text.tsx +58 -0
  142. package/src/components/Text/index.ts +1 -0
  143. package/src/components/index.ts +6 -0
  144. package/src/index.ts +1 -0
  145. package/src/styles.css +6 -0
  146. package/src/utils/WrapStringChild.tsx +25 -0
@@ -0,0 +1,209 @@
1
+ "use strict";
2
+
3
+ import { forwardRef } from 'react';
4
+ import { Pressable, Text, View } from 'react-native';
5
+ import { createSelect } from '@cdx-ui/primitives';
6
+ import { cn, useStyleContext, withStyleContext } from '@cdx-ui/utils';
7
+ import { selectContentVariants, selectIconVariants, selectItemLabelVariants, selectItemVariants, selectTriggerVariants, selectValueVariants } from './styles';
8
+ import { jsx as _jsx } from "react/jsx-runtime";
9
+ const SCOPE = 'SELECT';
10
+ const Root = withStyleContext(View, SCOPE);
11
+ const useSelectStyleContext = () => useStyleContext(SCOPE);
12
+ const SelectPrimitive = createSelect({
13
+ Root,
14
+ Trigger: Pressable,
15
+ Value: Text,
16
+ Icon: View,
17
+ Content: View,
18
+ Item: Pressable,
19
+ ItemLabel: Text
20
+ });
21
+
22
+ // =============================================================================
23
+ // STYLED ROOT COMPONENT
24
+ // =============================================================================
25
+
26
+ const SelectRoot = /*#__PURE__*/forwardRef(({
27
+ variant = 'outline',
28
+ size = 'md',
29
+ className,
30
+ children,
31
+ style,
32
+ ...props
33
+ }, ref) => {
34
+ return /*#__PURE__*/_jsx(SelectPrimitive, {
35
+ ref: ref,
36
+ className: className,
37
+ style: style,
38
+ context: {
39
+ variant,
40
+ size
41
+ },
42
+ ...props,
43
+ children: children
44
+ });
45
+ });
46
+ SelectRoot.displayName = 'Select';
47
+
48
+ // =============================================================================
49
+ // STYLED TRIGGER COMPONENT
50
+ // =============================================================================
51
+
52
+ const SelectTrigger = /*#__PURE__*/forwardRef(({
53
+ className,
54
+ children,
55
+ style,
56
+ ...props
57
+ }, ref) => {
58
+ const {
59
+ variant,
60
+ size
61
+ } = useSelectStyleContext();
62
+ const computedClassName = cn(selectTriggerVariants({
63
+ variant,
64
+ size
65
+ }), className);
66
+ return /*#__PURE__*/_jsx(SelectPrimitive.Trigger, {
67
+ ref: ref,
68
+ className: computedClassName,
69
+ style: style,
70
+ ...props,
71
+ children: children
72
+ });
73
+ });
74
+ SelectTrigger.displayName = 'Select.Trigger';
75
+
76
+ // =============================================================================
77
+ // STYLED VALUE COMPONENT
78
+ // =============================================================================
79
+
80
+ const SelectValue = /*#__PURE__*/forwardRef(({
81
+ className,
82
+ style,
83
+ ...props
84
+ }, ref) => {
85
+ const {
86
+ variant,
87
+ size
88
+ } = useSelectStyleContext();
89
+ const computedClassName = cn(selectValueVariants({
90
+ variant,
91
+ size
92
+ }), className);
93
+ return /*#__PURE__*/_jsx(SelectPrimitive.Value, {
94
+ ref: ref,
95
+ className: computedClassName,
96
+ style: style,
97
+ ...props
98
+ });
99
+ });
100
+ SelectValue.displayName = 'Select.Value';
101
+
102
+ // =============================================================================
103
+ // STYLED ICON COMPONENT
104
+ // =============================================================================
105
+
106
+ const SelectIcon = /*#__PURE__*/forwardRef(({
107
+ className,
108
+ style,
109
+ ...props
110
+ }, ref) => {
111
+ const {
112
+ variant,
113
+ size
114
+ } = useSelectStyleContext();
115
+ const computedClassName = cn(selectIconVariants({
116
+ variant,
117
+ size
118
+ }), className);
119
+ return /*#__PURE__*/_jsx(SelectPrimitive.Icon, {
120
+ ref: ref,
121
+ className: computedClassName,
122
+ style: style,
123
+ ...props
124
+ });
125
+ });
126
+ SelectIcon.displayName = 'Select.Icon';
127
+
128
+ // =============================================================================
129
+ // STYLED CONTENT COMPONENT
130
+ // =============================================================================
131
+
132
+ const SelectContent = /*#__PURE__*/forwardRef(({
133
+ className,
134
+ style,
135
+ ...props
136
+ }, ref) => {
137
+ const computedClassName = cn(selectContentVariants(), className);
138
+ return /*#__PURE__*/_jsx(SelectPrimitive.Content, {
139
+ ref: ref,
140
+ className: computedClassName,
141
+ style: style,
142
+ ...props
143
+ });
144
+ });
145
+ SelectContent.displayName = 'Select.Content';
146
+
147
+ // =============================================================================
148
+ // STYLED ITEM COMPONENT
149
+ // =============================================================================
150
+
151
+ const SelectItem = /*#__PURE__*/forwardRef(({
152
+ className,
153
+ children,
154
+ style,
155
+ ...props
156
+ }, ref) => {
157
+ const {
158
+ size
159
+ } = useSelectStyleContext();
160
+ const computedClassName = cn(selectItemVariants({
161
+ size
162
+ }), className);
163
+ return /*#__PURE__*/_jsx(SelectPrimitive.Item, {
164
+ ref: ref,
165
+ className: computedClassName,
166
+ style: style,
167
+ ...props,
168
+ children: children
169
+ });
170
+ });
171
+ SelectItem.displayName = 'Select.Item';
172
+
173
+ // =============================================================================
174
+ // STYLED ITEM LABEL COMPONENT
175
+ // =============================================================================
176
+
177
+ const SelectItemLabel = /*#__PURE__*/forwardRef(({
178
+ className,
179
+ style,
180
+ ...props
181
+ }, ref) => {
182
+ const {
183
+ size
184
+ } = useSelectStyleContext();
185
+ const computedClassName = cn(selectItemLabelVariants({
186
+ size
187
+ }), className);
188
+ return /*#__PURE__*/_jsx(SelectPrimitive.ItemLabel, {
189
+ ref: ref,
190
+ className: computedClassName,
191
+ style: style,
192
+ ...props
193
+ });
194
+ });
195
+ SelectItemLabel.displayName = 'Select.ItemLabel';
196
+
197
+ // =============================================================================
198
+ // COMPOUND COMPONENT
199
+ // =============================================================================
200
+
201
+ export const Select = Object.assign(SelectRoot, {
202
+ Trigger: SelectTrigger,
203
+ Value: SelectValue,
204
+ Icon: SelectIcon,
205
+ Content: SelectContent,
206
+ Item: SelectItem,
207
+ ItemLabel: SelectItemLabel
208
+ });
209
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["forwardRef","Pressable","Text","View","createSelect","cn","useStyleContext","withStyleContext","selectContentVariants","selectIconVariants","selectItemLabelVariants","selectItemVariants","selectTriggerVariants","selectValueVariants","jsx","_jsx","SCOPE","Root","useSelectStyleContext","SelectPrimitive","Trigger","Value","Icon","Content","Item","ItemLabel","SelectRoot","variant","size","className","children","style","props","ref","context","displayName","SelectTrigger","computedClassName","SelectValue","SelectIcon","SelectContent","SelectItem","SelectItemLabel","Select","Object","assign"],"sourceRoot":"../../../../src","sources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AI;IAACS,GAAG,EAAEA,GAAI;IAACJ,SAAS,EAAEQ,iBAAkB;IAACN,KAAK,EAAEA,KAAM;IAAA,GAAKC,KAAK;IAAAF,QAAA,EAClFA;EAAQ,CACW,CAAC;AAE3B,CACF,CAAC;AAEDW,UAAU,CAACN,WAAW,GAAG,aAAa;;AAEtC;AACA;AACA;;AAMA,MAAMO,eAAe,gBAAG1C,UAAU,CAChC,CAAC;EAAE6B,SAAS;EAAEE,KAAK;EAAE,GAAGC;AAAM,CAAC,EAAEC,GAAG,KAAK;EACvC,MAAM;IAAEL;EAAK,CAAC,GAAGV,qBAAqB,CAAC,CAAC;EAExC,MAAMmB,iBAAiB,GAAGhC,EAAE,CAACK,uBAAuB,CAAC;IAAEkB;EAAK,CAAC,CAAC,EAAEC,SAAS,CAAC;EAE1E,oBACEd,IAAA,CAACI,eAAe,CAACM,SAAS;IAACQ,GAAG,EAAEA,GAAI;IAACJ,SAAS,EAAEQ,iBAAkB;IAACN,KAAK,EAAEA,KAAM;IAAA,GAAKC;EAAK,CAAG,CAAC;AAElG,CACF,CAAC;AAEDU,eAAe,CAACP,WAAW,GAAG,kBAAkB;;AAEhD;AACA;AACA;;AAWA,OAAO,MAAMQ,MAAM,GAAGC,MAAM,CAACC,MAAM,CAACnB,UAAU,EAAE;EAC9CN,OAAO,EAAEgB,aAAa;EACtBf,KAAK,EAAEiB,WAAW;EAClBhB,IAAI,EAAEiB,UAAU;EAChBhB,OAAO,EAAEiB,aAAa;EACtBhB,IAAI,EAAEiB,UAAU;EAChBhB,SAAS,EAAEiB;AACb,CAAC,CAA4B","ignoreList":[]}
@@ -0,0 +1,117 @@
1
+ "use strict";
2
+
3
+ import { Platform } from 'react-native';
4
+ import { cva } from 'class-variance-authority';
5
+
6
+ // ── Trigger ─────────────────────────────────────────────────
7
+
8
+ export const selectTriggerVariants = cva(['flex-row items-center justify-between', 'rounded-lg', 'transition-colors duration-150', 'data-[disabled=true]:opacity-60 data-[disabled=true]:cursor-not-allowed data-[disabled=true]:pointer-events-none', 'data-[readonly=true]:cursor-default', 'data-[focus-visible=true]:ring-2 data-[focus-visible=true]:ring-blue-500 data-[focus-visible=true]:ring-offset-2'], {
9
+ variants: {
10
+ variant: {
11
+ outline: ['bg-white border border-gray-300', Platform.select({
12
+ default: 'data-[active=true]:border-gray-400',
13
+ web: 'data-[hover=true]:border-gray-400 data-[active=true]:data-[hover=true]:border-gray-500'
14
+ }), 'data-[state=open]:data-[invalid=false]:border-blue-500', 'data-[invalid=true]:border-red-500', 'data-[readonly=true]:bg-gray-50'],
15
+ filled: ['bg-gray-100 border border-transparent', Platform.select({
16
+ default: 'data-[active=true]:bg-gray-200',
17
+ web: 'data-[hover=true]:bg-gray-200 data-[active=true]:data-[hover=true]:bg-gray-300'
18
+ }), 'data-[state=open]:border-blue-500', 'data-[invalid=true]:border-red-500 data-[invalid=true]:border', 'data-[readonly=true]:bg-gray-200'],
19
+ ghost: ['bg-transparent border border-transparent', Platform.select({
20
+ default: 'data-[active=true]:bg-gray-100',
21
+ web: 'data-[hover=true]:bg-gray-50 data-[active=true]:data-[hover=true]:bg-gray-100'
22
+ }), 'data-[invalid=true]:border-red-500 data-[invalid=true]:border']
23
+ },
24
+ size: {
25
+ sm: 'h-8 px-2.5 gap-1.5',
26
+ md: 'h-10 px-3 gap-2',
27
+ lg: 'h-12 px-4 gap-2.5'
28
+ }
29
+ },
30
+ defaultVariants: {
31
+ variant: 'outline',
32
+ size: 'md'
33
+ }
34
+ });
35
+
36
+ // ── Value ───────────────────────────────────────────────────
37
+
38
+ export const selectValueVariants = cva(['flex-1', 'data-[placeholder=true]:text-gray-400', 'data-[invalid=true]:text-red-600'], {
39
+ variants: {
40
+ variant: {
41
+ outline: 'text-gray-900',
42
+ filled: 'text-gray-900',
43
+ ghost: 'text-gray-900'
44
+ },
45
+ size: {
46
+ sm: 'text-sm',
47
+ md: 'text-base',
48
+ lg: 'text-lg'
49
+ }
50
+ },
51
+ defaultVariants: {
52
+ variant: 'outline',
53
+ size: 'md'
54
+ }
55
+ });
56
+
57
+ // ── Icon ────────────────────────────────────────────────────
58
+
59
+ export const selectIconVariants = cva(['items-center justify-center', 'data-[invalid=true]:text-red-500'], {
60
+ variants: {
61
+ variant: {
62
+ outline: 'text-gray-500',
63
+ filled: 'text-gray-500',
64
+ ghost: 'text-gray-400'
65
+ },
66
+ size: {
67
+ sm: 'h-4 w-4',
68
+ md: 'h-5 w-5',
69
+ lg: 'h-6 w-6'
70
+ }
71
+ },
72
+ defaultVariants: {
73
+ variant: 'outline',
74
+ size: 'md'
75
+ }
76
+ });
77
+
78
+ // ── Content ─────────────────────────────────────────────────
79
+
80
+ export const selectContentVariants = cva(['bg-white', 'border border-gray-200', 'overflow-hidden', 'rounded-lg', Platform.select({
81
+ web: 'shadow-lg',
82
+ default: ''
83
+ }), 'max-h-60', 'py-1']);
84
+
85
+ // ── Item ────────────────────────────────────────────────────
86
+
87
+ export const selectItemVariants = cva(['flex-row items-center', 'transition-colors duration-100', 'data-[disabled=true]:opacity-50 data-[disabled=true]:pointer-events-none', 'data-[state=checked]:bg-blue-50', Platform.select({
88
+ default: 'data-[active=true]:bg-gray-100',
89
+ web: 'data-[hover=true]:bg-gray-100 data-[active=true]:data-[hover=true]:bg-gray-200 data-[highlighted=true]:bg-blue-50'
90
+ })], {
91
+ variants: {
92
+ size: {
93
+ sm: 'px-2.5 py-1.5',
94
+ md: 'px-3 py-2',
95
+ lg: 'px-4 py-2.5'
96
+ }
97
+ },
98
+ defaultVariants: {
99
+ size: 'md'
100
+ }
101
+ });
102
+
103
+ // ── ItemLabel ───────────────────────────────────────────────
104
+
105
+ export const selectItemLabelVariants = cva(['text-gray-900', 'data-[state=checked]:font-semibold', 'data-[state=checked]:text-blue-700'], {
106
+ variants: {
107
+ size: {
108
+ sm: 'text-sm',
109
+ md: 'text-base',
110
+ lg: 'text-lg'
111
+ }
112
+ },
113
+ defaultVariants: {
114
+ size: 'md'
115
+ }
116
+ });
117
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Platform","cva","selectTriggerVariants","variants","variant","outline","select","default","web","filled","ghost","size","sm","md","lg","defaultVariants","selectValueVariants","selectIconVariants","selectContentVariants","selectItemVariants","selectItemLabelVariants"],"sourceRoot":"../../../../src","sources":["components/Select/styles.ts"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,cAAc;AACvC,SAASC,GAAG,QAA2B,0BAA0B;;AAEjE;;AAEA,OAAO,MAAMC,qBAAqB,GAAGD,GAAG,CACtC,CACE,uCAAuC,EACvC,YAAY,EACZ,gCAAgC,EAChC,kHAAkH,EAClH,qCAAqC,EACrC,kHAAkH,CACnH,EACD;EACEE,QAAQ,EAAE;IACRC,OAAO,EAAE;MACPC,OAAO,EAAE,CACP,iCAAiC,EACjCL,QAAQ,CAACM,MAAM,CAAC;QACdC,OAAO,EAAE,oCAAoC;QAC7CC,GAAG,EAAE;MACP,CAAC,CAAC,EACF,wDAAwD,EACxD,oCAAoC,EACpC,iCAAiC,CAClC;MACDC,MAAM,EAAE,CACN,uCAAuC,EACvCT,QAAQ,CAACM,MAAM,CAAC;QACdC,OAAO,EAAE,gCAAgC;QACzCC,GAAG,EAAE;MACP,CAAC,CAAC,EACF,mCAAmC,EACnC,+DAA+D,EAC/D,kCAAkC,CACnC;MACDE,KAAK,EAAE,CACL,0CAA0C,EAC1CV,QAAQ,CAACM,MAAM,CAAC;QACdC,OAAO,EAAE,gCAAgC;QACzCC,GAAG,EAAE;MACP,CAAC,CAAC,EACF,+DAA+D;IAEnE,CAAC;IACDG,IAAI,EAAE;MACJC,EAAE,EAAE,oBAAoB;MACxBC,EAAE,EAAE,iBAAiB;MACrBC,EAAE,EAAE;IACN;EACF,CAAC;EACDC,eAAe,EAAE;IACfX,OAAO,EAAE,SAAS;IAClBO,IAAI,EAAE;EACR;AACF,CACF,CAAC;;AAED;;AAEA,OAAO,MAAMK,mBAAmB,GAAGf,GAAG,CACpC,CAAC,QAAQ,EAAE,uCAA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Ae;MACnBC,EAAE,EAAE,WAAW;MACfC,EAAE,EAAE;IACN;EACF,CAAC;EACDC,eAAe,EAAE;IACfJ,IAAI,EAAE;EACR;AACF,CACF,CAAC;;AAED;;AAEA,OAAO,MAAMS,uBAAuB,GAAGnB,GAAG,CACxC,CAAC,eAAe,EAAE,oCAAoC,EAAE,oCAAoC,CAAC,EAC7F;EACEE,QAAQ,EAAE;IACRQ,IAAI,EAAE;MACJC,EAAE,EAAE,SAAS;MACbC,EAAE,EAAE,WAAW;MACfC,EAAE,EAAE;IACN;EACF,CAAC;EACDC,eAAe,EAAE;IACfJ,IAAI,EAAE;EACR;AACF,CACF,CAAC","ignoreList":[]}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+
3
+ import { forwardRef } from 'react';
4
+ import { ActivityIndicator } from 'react-native';
5
+ import { jsx as _jsx } from "react/jsx-runtime";
6
+ export const Spinner = /*#__PURE__*/forwardRef((props, ref) => /*#__PURE__*/_jsx(ActivityIndicator, {
7
+ ref: ref,
8
+ ...props
9
+ }));
10
+ Spinner.displayName = 'Spinner';
11
+ //# sourceMappingURL=Spinner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["forwardRef","ActivityIndicator","jsx","_jsx","Spinner","props","ref","displayName"],"sourceRoot":"../../../../src","sources":["components/Spinner/Spinner.tsx"],"mappings":";;AAAA,SAA4BA,UAAU,QAAQ,OAAO;AACrD,SAASC,iBAAiB,QAAqC,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAI9E,OAAO,MAAMC,OAAO,gBAAGJ,UAAU,CAC/B,CAACK,KAAK,EAAEC,GAAoC,kBAAKH,IAAA,CAACF,iBAAiB;EAACK,GAAG,EAAEA,GAAI;EAAA,GAAKD;AAAK,CAAG,CAC5F,CAAC;AAEDD,OAAO,CAACG,WAAW,GAAG,SAAS","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export * from './Spinner';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/Spinner/index.ts"],"mappings":";;AAAA,cAAc,WAAW","ignoreList":[]}
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+
3
+ import { forwardRef } from 'react';
4
+ import { View } from 'react-native';
5
+ // import { spacing } from '@cdx-ui/tokens';
6
+
7
+ // TODO: Integrate with tokens (multiply by spacing)
8
+ import { jsx as _jsx } from "react/jsx-runtime";
9
+ const spaceScale = {
10
+ xs: 1,
11
+ sm: 2,
12
+ md: 3,
13
+ lg: 4,
14
+ xl: 5,
15
+ '2xl': 6,
16
+ '3xl': 7,
17
+ '4xl': 8
18
+ };
19
+ export const HStack = /*#__PURE__*/forwardRef(({
20
+ space,
21
+ reversed,
22
+ style,
23
+ className,
24
+ children,
25
+ ...restProps
26
+ }, ref) => {
27
+ const gap = space ? spaceScale[space] : undefined;
28
+ return /*#__PURE__*/_jsx(View, {
29
+ ref: ref,
30
+ className: className,
31
+ style: [{
32
+ flexDirection: reversed ? 'row-reverse' : 'row'
33
+ }, gap ? {
34
+ gap
35
+ } : null, style],
36
+ ...restProps,
37
+ children: children
38
+ });
39
+ });
40
+ HStack.displayName = 'HStack';
41
+ //# sourceMappingURL=HStack.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["forwardRef","View","jsx","_jsx","spaceScale","xs","sm","md","lg","xl","HStack","space","reversed","style","className","children","restProps","ref","gap","undefined","flexDirection","displayName"],"sourceRoot":"../../../../src","sources":["components/Stack/HStack.tsx"],"mappings":";;AACA,SAASA,UAAU,QAAQ,OAAO;AAClC,SAASC,IAAI,QAAwB,cAAc;AACnD;;AAEA;AAAA,SAAAC,GAAA,IAAAC,IAAA;AACA,MAAMC,UAAU,GAAG;EACjBC,EAAE,EAAE,CAAC;EACLC,EAAE,EAAE,CAAC;EACLC,EAAE,EAAE,CAAC;EACLC,EAAE,EAAE,CAAC;EACLC,EAAE,EAAE,CAAC;EACL,KAAK,EAAE,CAAC;EACR,KAAK,EAAE,CAAC;EACR,KAAK,EAAE;AACT,CAAU;AAUV,OAAO,MAAMC,MAAM,gBAAGV,UAAU,CAC9B,CAAC;EAAEW,KAAK;EAAEC,QAAQ;EAAEC,KAAK;EAAEC,SAAS;EAAEC,QAAQ;EAAE,GAAGC;AAAU,CAAC,EAAEC,GAAuB,KAAK;EAC1F,MAAMC,GAAG,GAAGP,KAAK,GAAGP,UAAU,CAACO,KAAK,CAAC,GAAGQ,SAAS;EACjD,oBACEhB,IAAA,CAACF,IAAI;IACHgB,GAAG,EAAEA,GAAI;IACTH,SAAS,EAAEA,SAAU;IACrBD,KAAK,EAAE,CAAC;MAAEO,aAAa,EAAER,QAAQ,GAAG,aAAa,GAAG;IAAM,CAAC,EAAEM,GAAG,GAAG;MAAEA;IAAI,CAAC,GAAG,IAAI,EAAEL,KAAK,CAAE;IAAA,GACtFG,SAAS;IAAAD,QAAA,EAEZA;EAAQ,CACL,CAAC;AAEX,CACF,CAAC;AAEDL,MAAM,CAACW,WAAW,GAAG,QAAQ","ignoreList":[]}
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+
3
+ import { forwardRef } from 'react';
4
+ import { View } from 'react-native';
5
+ // import { spacing } from '@cdx-ui/tokens';
6
+
7
+ // TODO: Integrate with tokens (multiply by spacing)
8
+ import { jsx as _jsx } from "react/jsx-runtime";
9
+ const spaceScale = {
10
+ xs: 1,
11
+ sm: 2,
12
+ md: 3,
13
+ lg: 4,
14
+ xl: 5,
15
+ '2xl': 6,
16
+ '3xl': 7,
17
+ '4xl': 8
18
+ };
19
+ export const VStack = /*#__PURE__*/forwardRef(({
20
+ space,
21
+ reversed,
22
+ style,
23
+ className,
24
+ children,
25
+ ...restProps
26
+ }, ref) => {
27
+ const gap = space ? spaceScale[space] : undefined;
28
+ return /*#__PURE__*/_jsx(View, {
29
+ ref: ref,
30
+ className: className,
31
+ style: [{
32
+ flexDirection: reversed ? 'column-reverse' : 'column'
33
+ }, gap ? {
34
+ gap
35
+ } : null, style],
36
+ ...restProps,
37
+ children: children
38
+ });
39
+ });
40
+ VStack.displayName = 'VStack';
41
+ //# sourceMappingURL=VStack.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["forwardRef","View","jsx","_jsx","spaceScale","xs","sm","md","lg","xl","VStack","space","reversed","style","className","children","restProps","ref","gap","undefined","flexDirection","displayName"],"sourceRoot":"../../../../src","sources":["components/Stack/VStack.tsx"],"mappings":";;AACA,SAASA,UAAU,QAAQ,OAAO;AAClC,SAASC,IAAI,QAAwB,cAAc;AACnD;;AAEA;AAAA,SAAAC,GAAA,IAAAC,IAAA;AACA,MAAMC,UAAU,GAAG;EACjBC,EAAE,EAAE,CAAC;EACLC,EAAE,EAAE,CAAC;EACLC,EAAE,EAAE,CAAC;EACLC,EAAE,EAAE,CAAC;EACLC,EAAE,EAAE,CAAC;EACL,KAAK,EAAE,CAAC;EACR,KAAK,EAAE,CAAC;EACR,KAAK,EAAE;AACT,CAAU;AAUV,OAAO,MAAMC,MAAM,gBAAGV,UAAU,CAC9B,CAAC;EAAEW,KAAK;EAAEC,QAAQ;EAAEC,KAAK;EAAEC,SAAS;EAAEC,QAAQ;EAAE,GAAGC;AAAU,CAAC,EAAEC,GAAuB,KAAK;EAC1F,MAAMC,GAAG,GAAGP,KAAK,GAAGP,UAAU,CAACO,KAAK,CAAC,GAAGQ,SAAS;EACjD,oBACEhB,IAAA,CAACF,IAAI;IACHgB,GAAG,EAAEA,GAAI;IACTH,SAAS,EAAEA,SAAU;IACrBD,KAAK,EAAE,CACL;MAAEO,aAAa,EAAER,QAAQ,GAAG,gBAAgB,GAAG;IAAS,CAAC,EACzDM,GAAG,GAAG;MAAEA;IAAI,CAAC,GAAG,IAAI,EACpBL,KAAK,CACL;IAAA,GACEG,SAAS;IAAAD,QAAA,EAEZA;EAAQ,CACL,CAAC;AAEX,CACF,CAAC;AAEDL,MAAM,CAACW,WAAW,GAAG,QAAQ","ignoreList":[]}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ export { HStack } from './HStack';
4
+ export { VStack } from './VStack';
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["HStack","VStack"],"sourceRoot":"../../../../src","sources":["components/Stack/index.ts"],"mappings":";;AAAA,SAASA,MAAM,QAAQ,UAAU;AACjC,SAASC,MAAM,QAAQ,UAAU","ignoreList":[]}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+
3
+ import { forwardRef } from 'react';
4
+ import { Text as RNText } from 'react-native';
5
+ import { jsx as _jsx } from "react/jsx-runtime";
6
+ const joinClassNames = (...parts) => parts.filter(Boolean).join(' ');
7
+ const buildTypographyClassName = variant => joinClassNames(`[font-family:var(--type-${variant}-family)]`, `[font-weight:var(--type-${variant}-weight)]`, `text-[var(--type-${variant}-size)]`, `leading-[var(--type-${variant}-lineHeight)]`, `tracking-[var(--type-${variant}-letterSpacing)]`, variant === 'overline' ? 'uppercase' : 'normal-case');
8
+ export const Text = /*#__PURE__*/forwardRef(({
9
+ variant,
10
+ children,
11
+ style,
12
+ className,
13
+ ...restProps
14
+ }, ref) => {
15
+ const variantKey = variant ?? 'body1';
16
+ const variantClassName = buildTypographyClassName(variantKey);
17
+ return /*#__PURE__*/_jsx(RNText, {
18
+ ref: ref,
19
+ className: joinClassNames(variantClassName, className),
20
+ style: style,
21
+ ...restProps,
22
+ children: children
23
+ });
24
+ });
25
+ Text.displayName = 'Text';
26
+ //# sourceMappingURL=Text.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["forwardRef","Text","RNText","jsx","_jsx","joinClassNames","parts","filter","Boolean","join","buildTypographyClassName","variant","children","style","className","restProps","ref","variantKey","variantClassName","displayName"],"sourceRoot":"../../../../src","sources":["components/Text/Text.tsx"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,OAAO;AAClC,SAASC,IAAI,IAAIC,MAAM,QAAuC,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;AA0B7E,MAAMC,cAAc,GAAGA,CAAC,GAAGC,KAAqC,KAC9DA,KAAK,CAACC,MAAM,CAACC,OAAO,CAAC,CAACC,IAAI,CAAC,GAAG,CAAC;AAEjC,MAAMC,wBAAwB,GAAIC,OAA0B,IAC1DN,cAAc,CACZ,2BAA2BM,OAAO,WAAW,EAC7C,2BAA2BA,OAAO,WAAW,EAC7C,oBAAoBA,OAAO,SAAS,EACpC,uBAAuBA,OAAO,eAAe,EAC7C,wBAAwBA,OAAO,kBAAkB,EACjDA,OAAO,KAAK,UAAU,GAAG,WAAW,GAAG,aACzC,CAAC;AAEH,OAAO,MAAMV,IAAI,gBAAGD,UAAU,CAC5B,CAAC;EAAEW,OAAO;EAAEC,QAAQ;EAAEC,KAAK;EAAEC,SAAS;EAAE,GAAGC;AAAU,CAAC,EAAEC,GAAG,KAAK;EAC9D,MAAMC,UAAU,GAAGN,OAAO,IAAI,OAAO;EACrC,MAAMO,gBAAgB,GAAGR,wBAAwB,CAACO,UAAU,CAAC;EAC7D,oBACEb,IAAA,CAACF,MAAM;IACLc,GAAG,EAAEA,GAAI;IACTF,SAAS,EAAET,cAAc,CAACa,gBAAgB,EAAEJ,SAAS,CAAE;IACvDD,KAAK,EAAEA,KAAM;IAAA,GACTE,SAAS;IAAAH,QAAA,EAEZA;EAAQ,CACH,CAAC;AAEb,CACF,CAAC;AAEDX,IAAI,CAACkB,WAAW,GAAG,MAAM","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export * from './Text';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/Text/index.ts"],"mappings":";;AAAA,cAAc,QAAQ","ignoreList":[]}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+
3
+ export * from './Box';
4
+ export * from './Button';
5
+ export * from './Input';
6
+ export * from './Select';
7
+ export { HStack, VStack } from './Stack';
8
+ export * from './Text';
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["HStack","VStack"],"sourceRoot":"../../../src","sources":["components/index.ts"],"mappings":";;AAAA,cAAc,OAAO;AACrB,cAAc,UAAU;AACxB,cAAc,SAAS;AACvB,cAAc,UAAU;AACxB,SAASA,MAAM,EAAEC,MAAM,QAAQ,SAAS;AACxC,cAAc,QAAQ","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export * from './components';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA,cAAc,cAAc","ignoreList":[]}
@@ -0,0 +1,6 @@
1
+ @source './**/*.{ts,tsx}';
2
+
3
+ /* TODO: Can we keep this? Check with Michael/Jack */
4
+ *:focus {
5
+ outline: none;
6
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ import { Children, Fragment, isValidElement } from 'react';
4
+ import { Text } from '../components/Text';
5
+ import { jsx as _jsx } from "react/jsx-runtime";
6
+ /** @deprecated Users should wrap their own children in a Text component themselves */
7
+ export function WrapStringChild({
8
+ children,
9
+ textProps
10
+ }) {
11
+ return Children.map(children, child => {
12
+ return typeof child === 'string' || typeof child === 'number' || /*#__PURE__*/isValidElement(child) && child.type === Fragment && child.props && typeof child.props === 'object' && 'children' in child.props && (typeof child.props.children === 'string' || typeof child.props.children === 'number') ? /*#__PURE__*/_jsx(Text, {
13
+ ...textProps,
14
+ children: child
15
+ }) : child;
16
+ });
17
+ }
18
+ //# sourceMappingURL=WrapStringChild.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Children","Fragment","isValidElement","Text","jsx","_jsx","WrapStringChild","children","textProps","map","child","type","props"],"sourceRoot":"../../../src","sources":["utils/WrapStringChild.tsx"],"mappings":";;AAAA,SAASA,QAAQ,EAAEC,QAAQ,EAAEC,cAAc,QAAwB,OAAO;AAC1E,SAASC,IAAI,QAAwB,oBAAoB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAO1D;AACA,OAAO,SAASC,eAAeA,CAAC;EAAEC,QAAQ;EAAEC;AAAgC,CAAC,EAAa;EACxF,OAAOR,QAAQ,CAACS,GAAG,CAACF,QAAQ,EAAGG,KAAK,IAAK;IACvC,OAAO,OAAOA,KAAK,KAAK,QAAQ,IAC9B,OAAOA,KAAK,KAAK,QAAQ,IACxB,aAAAR,cAAc,CAACQ,KAAK,CAAC,IACpBA,KAAK,CAACC,IAAI,KAAKV,QAAQ,IACvBS,KAAK,CAACE,KAAK,IACX,OAAOF,KAAK,CAACE,KAAK,KAAK,QAAQ,IAC/B,UAAU,IAAIF,KAAK,CAACE,KAAK,KACxB,OAAOF,KAAK,CAACE,KAAK,CAACL,QAAQ,KAAK,QAAQ,IAAI,OAAOG,KAAK,CAACE,KAAK,CAACL,QAAQ,KAAK,QAAQ,CAAE,gBACzFF,IAAA,CAACF,IAAI;MAAA,GAAKK,SAAS;MAAAD,QAAA,EAAGG;IAAK,CAAO,CAAC,GAEnCA,KACD;EACH,CAAC,CAAC;AACJ","ignoreList":[]}
@@ -0,0 +1,8 @@
1
+ import { View, type ViewProps } from 'react-native';
2
+ import type { TextProps } from '../Text';
3
+ export interface BoxProps extends ViewProps {
4
+ className?: string;
5
+ textProps?: TextProps;
6
+ }
7
+ export declare const Box: import("react").ForwardRefExoticComponent<BoxProps & import("react").RefAttributes<View>>;
8
+ //# sourceMappingURL=Box.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../../../src/components/Box/Box.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,MAAM,WAAW,QAAS,SAAQ,SAAS;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB;AAED,eAAO,MAAM,GAAG,2FAQf,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './Box';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Box/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC"}
@@ -0,0 +1,41 @@
1
+ import { type ReactElement, type ReactNode } from 'react';
2
+ import { ActivityIndicator, Text, View, type ActivityIndicatorProps, type PressableProps, type ViewProps, type TextProps } from 'react-native';
3
+ import { type IButtonProps } from '@cdx-ui/primitives';
4
+ import { type ButtonGroupVariantProps, type ButtonVariantProps } from './styles';
5
+ export interface ButtonProps extends PressableProps, IButtonProps, ButtonVariantProps {
6
+ className?: string;
7
+ children?: ReactNode;
8
+ }
9
+ declare const ButtonRoot: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<View>>;
10
+ export interface ButtonTextProps extends TextProps {
11
+ className?: string;
12
+ children?: ReactNode;
13
+ }
14
+ declare const ButtonLabel: import("react").ForwardRefExoticComponent<ButtonTextProps & import("react").RefAttributes<Text>>;
15
+ export interface ButtonGroupProps extends Omit<ViewProps, 'children'> {
16
+ className?: string;
17
+ children: ReactElement | ReactElement[];
18
+ flexDirection?: 'row' | 'column' | 'row-reverse' | 'column-reverse';
19
+ isDisabled?: boolean;
20
+ isAttached?: boolean;
21
+ reversed?: boolean;
22
+ }
23
+ declare const ButtonGroup: import("react").ForwardRefExoticComponent<ButtonGroupProps & import("react").RefAttributes<View>>;
24
+ export interface ButtonIconProps extends ViewProps {
25
+ className?: string;
26
+ }
27
+ declare const ButtonIcon: import("react").ForwardRefExoticComponent<ButtonIconProps & import("react").RefAttributes<View>>;
28
+ export interface ButtonSpinnerProps extends ActivityIndicatorProps {
29
+ className?: string;
30
+ colorClassName?: string;
31
+ }
32
+ declare const ButtonSpinner: import("react").ForwardRefExoticComponent<ButtonSpinnerProps & import("react").RefAttributes<ActivityIndicator>>;
33
+ type ButtonCompoundComponent = typeof ButtonRoot & {
34
+ Label: typeof ButtonLabel;
35
+ Group: typeof ButtonGroup;
36
+ Icon: typeof ButtonIcon;
37
+ Spinner: typeof ButtonSpinner;
38
+ };
39
+ export declare const Button: ButtonCompoundComponent;
40
+ export type { ButtonVariantProps, ButtonGroupVariantProps };
41
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACtE,OAAO,EACL,iBAAiB,EAEjB,IAAI,EACJ,IAAI,EACJ,KAAK,sBAAsB,EAC3B,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AACtB,OAAO,EAAgB,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAErE,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,kBAAkB,EAKxB,MAAM,UAAU,CAAC;AAoBlB,MAAM,WAAW,WAAY,SAAQ,cAAc,EAAE,YAAY,EAAE,kBAAkB;IACnF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,QAAA,MAAM,UAAU,8FA+Bf,CAAC;AAQF,MAAM,WAAW,eAAgB,SAAQ,SAAS;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,QAAA,MAAM,WAAW,kGAYhB,CAAC;AAIF,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC;IACnE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,YAAY,GAAG,YAAY,EAAE,CAAC;IACxC,aAAa,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,aAAa,GAAG,gBAAgB,CAAC;IAC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