orange-core-ui 0.1.0

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 (158) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +246 -0
  3. package/dist/components/accordion/accordion.d.ts +12 -0
  4. package/dist/components/accordion/accordion.d.ts.map +1 -0
  5. package/dist/components/accordion/index.d.ts +2 -0
  6. package/dist/components/accordion/index.d.ts.map +1 -0
  7. package/dist/components/alert/alert.d.ts +9 -0
  8. package/dist/components/alert/alert.d.ts.map +1 -0
  9. package/dist/components/alert/index.d.ts +2 -0
  10. package/dist/components/alert/index.d.ts.map +1 -0
  11. package/dist/components/avatar/avatar.d.ts +10 -0
  12. package/dist/components/avatar/avatar.d.ts.map +1 -0
  13. package/dist/components/avatar/index.d.ts +2 -0
  14. package/dist/components/avatar/index.d.ts.map +1 -0
  15. package/dist/components/badge/badge.d.ts +8 -0
  16. package/dist/components/badge/badge.d.ts.map +1 -0
  17. package/dist/components/badge/index.d.ts +2 -0
  18. package/dist/components/badge/index.d.ts.map +1 -0
  19. package/dist/components/breadcrumbs/breadcrumbs.d.ts +11 -0
  20. package/dist/components/breadcrumbs/breadcrumbs.d.ts.map +1 -0
  21. package/dist/components/breadcrumbs/index.d.ts +2 -0
  22. package/dist/components/breadcrumbs/index.d.ts.map +1 -0
  23. package/dist/components/button/button.d.ts +12 -0
  24. package/dist/components/button/button.d.ts.map +1 -0
  25. package/dist/components/button/index.d.ts +2 -0
  26. package/dist/components/button/index.d.ts.map +1 -0
  27. package/dist/components/card/card.d.ts +12 -0
  28. package/dist/components/card/card.d.ts.map +1 -0
  29. package/dist/components/card/index.d.ts +2 -0
  30. package/dist/components/card/index.d.ts.map +1 -0
  31. package/dist/components/checkbox/checkbox.d.ts +8 -0
  32. package/dist/components/checkbox/checkbox.d.ts.map +1 -0
  33. package/dist/components/checkbox/index.d.ts +2 -0
  34. package/dist/components/checkbox/index.d.ts.map +1 -0
  35. package/dist/components/divider/divider.d.ts +8 -0
  36. package/dist/components/divider/divider.d.ts.map +1 -0
  37. package/dist/components/divider/index.d.ts +2 -0
  38. package/dist/components/divider/index.d.ts.map +1 -0
  39. package/dist/components/dropdown/dropdown.d.ts +10 -0
  40. package/dist/components/dropdown/dropdown.d.ts.map +1 -0
  41. package/dist/components/dropdown/index.d.ts +2 -0
  42. package/dist/components/dropdown/index.d.ts.map +1 -0
  43. package/dist/components/forms/form-description.d.ts +6 -0
  44. package/dist/components/forms/form-description.d.ts.map +1 -0
  45. package/dist/components/forms/form-field.d.ts +30 -0
  46. package/dist/components/forms/form-field.d.ts.map +1 -0
  47. package/dist/components/forms/form-item.d.ts +6 -0
  48. package/dist/components/forms/form-item.d.ts.map +1 -0
  49. package/dist/components/forms/form-label.d.ts +7 -0
  50. package/dist/components/forms/form-label.d.ts.map +1 -0
  51. package/dist/components/forms/form-message.d.ts +7 -0
  52. package/dist/components/forms/form-message.d.ts.map +1 -0
  53. package/dist/components/forms/form.d.ts +13 -0
  54. package/dist/components/forms/form.d.ts.map +1 -0
  55. package/dist/components/forms/index.d.ts +7 -0
  56. package/dist/components/forms/index.d.ts.map +1 -0
  57. package/dist/components/input/index.d.ts +2 -0
  58. package/dist/components/input/index.d.ts.map +1 -0
  59. package/dist/components/input/input.d.ts +8 -0
  60. package/dist/components/input/input.d.ts.map +1 -0
  61. package/dist/components/layout/container.d.ts +8 -0
  62. package/dist/components/layout/container.d.ts.map +1 -0
  63. package/dist/components/layout/grid.d.ts +12 -0
  64. package/dist/components/layout/grid.d.ts.map +1 -0
  65. package/dist/components/layout/index.d.ts +3 -0
  66. package/dist/components/layout/index.d.ts.map +1 -0
  67. package/dist/components/modal/index.d.ts +2 -0
  68. package/dist/components/modal/index.d.ts.map +1 -0
  69. package/dist/components/modal/modal.d.ts +13 -0
  70. package/dist/components/modal/modal.d.ts.map +1 -0
  71. package/dist/components/navbar/index.d.ts +2 -0
  72. package/dist/components/navbar/index.d.ts.map +1 -0
  73. package/dist/components/navbar/navbar.d.ts +10 -0
  74. package/dist/components/navbar/navbar.d.ts.map +1 -0
  75. package/dist/components/pagination/index.d.ts +2 -0
  76. package/dist/components/pagination/index.d.ts.map +1 -0
  77. package/dist/components/pagination/pagination.d.ts +15 -0
  78. package/dist/components/pagination/pagination.d.ts.map +1 -0
  79. package/dist/components/popover/index.d.ts +2 -0
  80. package/dist/components/popover/index.d.ts.map +1 -0
  81. package/dist/components/popover/popover.d.ts +7 -0
  82. package/dist/components/popover/popover.d.ts.map +1 -0
  83. package/dist/components/progress/index.d.ts +2 -0
  84. package/dist/components/progress/index.d.ts.map +1 -0
  85. package/dist/components/progress/progress.d.ts +9 -0
  86. package/dist/components/progress/progress.d.ts.map +1 -0
  87. package/dist/components/radio/index.d.ts +2 -0
  88. package/dist/components/radio/index.d.ts.map +1 -0
  89. package/dist/components/radio/radio.d.ts +12 -0
  90. package/dist/components/radio/radio.d.ts.map +1 -0
  91. package/dist/components/select/index.d.ts +2 -0
  92. package/dist/components/select/index.d.ts.map +1 -0
  93. package/dist/components/select/select.d.ts +15 -0
  94. package/dist/components/select/select.d.ts.map +1 -0
  95. package/dist/components/separator/index.d.ts +2 -0
  96. package/dist/components/separator/index.d.ts.map +1 -0
  97. package/dist/components/separator/separator.d.ts +8 -0
  98. package/dist/components/separator/separator.d.ts.map +1 -0
  99. package/dist/components/skeleton/index.d.ts +2 -0
  100. package/dist/components/skeleton/index.d.ts.map +1 -0
  101. package/dist/components/skeleton/skeleton.d.ts +9 -0
  102. package/dist/components/skeleton/skeleton.d.ts.map +1 -0
  103. package/dist/components/slider/index.d.ts +2 -0
  104. package/dist/components/slider/index.d.ts.map +1 -0
  105. package/dist/components/slider/slider.d.ts +8 -0
  106. package/dist/components/slider/slider.d.ts.map +1 -0
  107. package/dist/components/spinner/index.d.ts +2 -0
  108. package/dist/components/spinner/index.d.ts.map +1 -0
  109. package/dist/components/spinner/spinner.d.ts +8 -0
  110. package/dist/components/spinner/spinner.d.ts.map +1 -0
  111. package/dist/components/switch/index.d.ts +2 -0
  112. package/dist/components/switch/index.d.ts.map +1 -0
  113. package/dist/components/switch/switch.d.ts +8 -0
  114. package/dist/components/switch/switch.d.ts.map +1 -0
  115. package/dist/components/tabs/index.d.ts +2 -0
  116. package/dist/components/tabs/index.d.ts.map +1 -0
  117. package/dist/components/tabs/tabs.d.ts +14 -0
  118. package/dist/components/tabs/tabs.d.ts.map +1 -0
  119. package/dist/components/textarea/index.d.ts +2 -0
  120. package/dist/components/textarea/index.d.ts.map +1 -0
  121. package/dist/components/textarea/textarea.d.ts +8 -0
  122. package/dist/components/textarea/textarea.d.ts.map +1 -0
  123. package/dist/components/tooltip/index.d.ts +2 -0
  124. package/dist/components/tooltip/index.d.ts.map +1 -0
  125. package/dist/components/tooltip/tooltip.d.ts +8 -0
  126. package/dist/components/tooltip/tooltip.d.ts.map +1 -0
  127. package/dist/components/typography/index.d.ts +2 -0
  128. package/dist/components/typography/index.d.ts.map +1 -0
  129. package/dist/components/typography/typography.d.ts +8 -0
  130. package/dist/components/typography/typography.d.ts.map +1 -0
  131. package/dist/forms/validators.d.ts +15 -0
  132. package/dist/forms/validators.d.ts.map +1 -0
  133. package/dist/index.cjs +2 -0
  134. package/dist/index.cjs.map +1 -0
  135. package/dist/index.d.ts +37 -0
  136. package/dist/index.d.ts.map +1 -0
  137. package/dist/index.js +4031 -0
  138. package/dist/index.js.map +1 -0
  139. package/dist/styles/globals.css +1 -0
  140. package/dist/test/setup.d.ts +6 -0
  141. package/dist/test/setup.d.ts.map +1 -0
  142. package/dist/tokens/borders.d.ts +53 -0
  143. package/dist/tokens/borders.d.ts.map +1 -0
  144. package/dist/tokens/breakpoints.d.ts +55 -0
  145. package/dist/tokens/breakpoints.d.ts.map +1 -0
  146. package/dist/tokens/colors.d.ts +268 -0
  147. package/dist/tokens/colors.d.ts.map +1 -0
  148. package/dist/tokens/index.d.ts +270 -0
  149. package/dist/tokens/index.d.ts.map +1 -0
  150. package/dist/tokens/shadows.d.ts +20 -0
  151. package/dist/tokens/shadows.d.ts.map +1 -0
  152. package/dist/tokens/spacing.d.ts +29 -0
  153. package/dist/tokens/spacing.d.ts.map +1 -0
  154. package/dist/tokens/typography.d.ts +127 -0
  155. package/dist/tokens/typography.d.ts.map +1 -0
  156. package/dist/utils/cn.d.ts +7 -0
  157. package/dist/utils/cn.d.ts.map +1 -0
  158. package/package.json +106 -0
@@ -0,0 +1,270 @@
1
+ /**
2
+ * Orange Design System Design Tokens
3
+ * All design tokens extracted from Orange Boosted Bootstrap
4
+ */
5
+ export * from './colors';
6
+ export * from './spacing';
7
+ export * from './typography';
8
+ export * from './borders';
9
+ export * from './shadows';
10
+ export * from './breakpoints';
11
+ export declare const tokens: {
12
+ readonly colors: {
13
+ readonly functional: {
14
+ readonly green: "#228722";
15
+ readonly blue: "#4170d8";
16
+ readonly yellow: "#fc0";
17
+ readonly red: "#cd3c14";
18
+ };
19
+ readonly supporting: {
20
+ readonly blue: "#4bb4e6";
21
+ readonly yellow: "#ffd200";
22
+ readonly green: "#50be87";
23
+ readonly purple: "#a885d8";
24
+ readonly pink: "#ffb4e6";
25
+ readonly orange: "#ff7900";
26
+ };
27
+ readonly theme: {
28
+ readonly primary: "#f16e00";
29
+ readonly secondary: "#000";
30
+ readonly success: "#228722";
31
+ readonly info: "#4170d8";
32
+ readonly warning: "#fc0";
33
+ readonly danger: "#cd3c14";
34
+ readonly light: "#999";
35
+ readonly dark: "#000";
36
+ };
37
+ readonly gray: {
38
+ readonly 100: "#fafafa";
39
+ readonly 200: "#eee";
40
+ readonly 300: "#ddd";
41
+ readonly 400: "#ccc";
42
+ readonly 500: "#999";
43
+ readonly 600: "#666";
44
+ readonly 700: "#595959";
45
+ readonly 800: "#333";
46
+ readonly 900: "#141414";
47
+ readonly 950: "#141414";
48
+ };
49
+ readonly semantic: {
50
+ readonly white: "#fff";
51
+ readonly black: "#000";
52
+ readonly body: {
53
+ readonly color: "#000";
54
+ readonly bg: "#fff";
55
+ readonly secondaryColor: "#595959";
56
+ readonly secondaryBg: "#ddd";
57
+ readonly tertiaryColor: "#999";
58
+ readonly tertiaryBg: "#fafafa";
59
+ readonly emphasisColor: "#000";
60
+ };
61
+ readonly link: {
62
+ readonly color: "#000";
63
+ readonly hoverColor: "#f16e00";
64
+ };
65
+ readonly border: {
66
+ readonly color: "#000";
67
+ readonly colorSubtle: "#999";
68
+ readonly colorTranslucent: "rgba(0, 0, 0, 0.175)";
69
+ };
70
+ };
71
+ readonly orange: {
72
+ readonly 100: "#ff7900";
73
+ readonly 200: "#f16e00";
74
+ };
75
+ readonly white: {
76
+ readonly 100: "#fff";
77
+ };
78
+ readonly black: {
79
+ readonly 900: "#000";
80
+ };
81
+ readonly forest: {
82
+ readonly 100: "#6c6";
83
+ readonly 200: "#228722";
84
+ };
85
+ readonly fire: {
86
+ readonly 100: "#ff4d4d";
87
+ readonly 200: "#cd3c14";
88
+ };
89
+ readonly water: {
90
+ readonly 100: "#69f";
91
+ readonly 200: "#4170d8";
92
+ };
93
+ readonly sun: {
94
+ readonly 100: "#fc0";
95
+ readonly 200: "#8f7200";
96
+ };
97
+ readonly blue: {
98
+ readonly 100: "#b5e8f7";
99
+ readonly 200: "#80ceef";
100
+ readonly 300: "#4bb4e6";
101
+ readonly 400: "#3e9dd6";
102
+ readonly 500: "#237eca";
103
+ readonly 600: "#085ebd";
104
+ };
105
+ readonly green: {
106
+ readonly 100: "#b8ebd6";
107
+ readonly 200: "#84d5af";
108
+ readonly 300: "#50be87";
109
+ readonly 400: "#27a971";
110
+ readonly 500: "#198c51";
111
+ readonly 600: "#0a6e31";
112
+ };
113
+ readonly pink: {
114
+ readonly 100: "#ffe8f7";
115
+ readonly 200: "#ffceef";
116
+ readonly 300: "#ffb4e6";
117
+ readonly 400: "#ff8ad4";
118
+ readonly 500: "#d573bb";
119
+ readonly 600: "#bc4d9a";
120
+ };
121
+ readonly purple: {
122
+ readonly 100: "#d9c2f0";
123
+ readonly 200: "#c1a4e4";
124
+ readonly 300: "#a885d8";
125
+ readonly 400: "#9373bd";
126
+ readonly 500: "#6e4aa7";
127
+ readonly 600: "#492191";
128
+ };
129
+ readonly yellow: {
130
+ readonly 100: "#fff6b6";
131
+ readonly 200: "#ffe45b";
132
+ readonly 300: "#ffd200";
133
+ readonly 400: "#ffb400";
134
+ readonly 500: "#b98f11";
135
+ readonly 600: "#9d6e06";
136
+ };
137
+ };
138
+ readonly spacing: {
139
+ readonly targetSize: "2.75rem";
140
+ readonly gridGutter: "1.25rem";
141
+ readonly containerPadding: "1.25rem";
142
+ readonly 0: "0";
143
+ readonly 1: "0.3125rem";
144
+ readonly 2: "0.625rem";
145
+ readonly 3: "1.25rem";
146
+ readonly 4: "1.875rem";
147
+ readonly 5: "3.75rem";
148
+ };
149
+ readonly typography: {
150
+ readonly fontFamily: {
151
+ readonly sans: string;
152
+ readonly mono: string;
153
+ };
154
+ readonly fontSize: {
155
+ readonly root: null;
156
+ readonly base: "1rem";
157
+ readonly sm: "0.875rem";
158
+ readonly lg: "1.125rem";
159
+ readonly xlg: "1.25rem";
160
+ };
161
+ readonly heading: {
162
+ readonly h1: "2.125rem";
163
+ readonly h2: "1.875rem";
164
+ readonly h3: "1.5rem";
165
+ readonly h4: "1.25rem";
166
+ readonly h5: "1.125rem";
167
+ readonly h6: "1rem";
168
+ };
169
+ readonly display: {
170
+ readonly display1: "3.75rem";
171
+ readonly display2: "3.125rem";
172
+ readonly display3: "2.5rem";
173
+ readonly display4: "2.125rem";
174
+ };
175
+ readonly lineHeight: {
176
+ readonly base: "calc(18 / 16)";
177
+ readonly sm: "calc(16 / 14)";
178
+ readonly lg: "calc(30 / 16)";
179
+ readonly h1: "1";
180
+ readonly h2: "calc(32 / 30)";
181
+ readonly h3: "calc(26 / 24)";
182
+ readonly h4: "calc(22 / 20)";
183
+ readonly h5: "calc(20 / 18)";
184
+ readonly h6: "calc(18 / 16)";
185
+ readonly display: "1";
186
+ readonly lead: "1.5";
187
+ };
188
+ readonly letterSpacing: {
189
+ readonly base: "-0.00625rem";
190
+ readonly h1: "-0.0625rem";
191
+ readonly h2: "-0.05rem";
192
+ readonly mid: "-0.0375rem";
193
+ readonly h3: "-0.03125rem";
194
+ readonly h4: "-0.025rem";
195
+ readonly h5: "-0.0125rem";
196
+ readonly h6: "-0.00625rem";
197
+ readonly display1: "-0.125rem";
198
+ readonly display2: "-0.1rem";
199
+ readonly display3: "-0.0625rem";
200
+ readonly display4: "-0.0625rem";
201
+ readonly lead: "-0.025rem";
202
+ };
203
+ readonly fontWeight: {
204
+ readonly light: "300";
205
+ readonly normal: "400";
206
+ readonly medium: "500";
207
+ readonly semibold: "600";
208
+ readonly bold: "700";
209
+ };
210
+ };
211
+ readonly borders: {
212
+ readonly width: "0.125rem";
213
+ readonly widths: {
214
+ readonly 1: "0.0625rem";
215
+ readonly 2: "0.125rem";
216
+ readonly 3: "0.1875rem";
217
+ readonly 4: "0.25rem";
218
+ readonly 5: "0.3125rem";
219
+ };
220
+ readonly style: "solid";
221
+ readonly radius: {
222
+ readonly none: "0";
223
+ readonly sm: "0.25rem";
224
+ readonly base: "0.375rem";
225
+ readonly lg: "0.5rem";
226
+ readonly xl: "1rem";
227
+ readonly xxl: "2rem";
228
+ readonly pill: "50rem";
229
+ };
230
+ readonly color: {
231
+ readonly default: "#000";
232
+ readonly subtle: "#999";
233
+ readonly translucent: "rgba(0, 0, 0, 0.175)";
234
+ };
235
+ };
236
+ readonly shadows: {
237
+ readonly none: "none";
238
+ readonly sm: null;
239
+ readonly base: null;
240
+ readonly lg: null;
241
+ readonly inset: null;
242
+ };
243
+ readonly responsive: {
244
+ readonly breakpoints: {
245
+ readonly xs: "0";
246
+ readonly sm: "480px";
247
+ readonly md: "768px";
248
+ readonly lg: "1024px";
249
+ readonly xl: "1280px";
250
+ readonly xxl: "1440px";
251
+ };
252
+ readonly containerMaxWidths: {
253
+ readonly xs: "312px";
254
+ readonly sm: "468px";
255
+ readonly md: "744px";
256
+ readonly lg: "960px";
257
+ readonly xl: "1200px";
258
+ readonly xxl: "1320px";
259
+ };
260
+ readonly containerFluidMargins: {
261
+ readonly xs: "4px";
262
+ readonly sm: "6px";
263
+ readonly md: "12px";
264
+ readonly lg: "32px";
265
+ readonly xl: "40px";
266
+ readonly xxl: "60px";
267
+ };
268
+ };
269
+ };
270
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tokens/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAS9B,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOT,CAAC"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Orange Design System Shadow Tokens
3
+ * Extracted from Orange Boosted Bootstrap SCSS variables
4
+ * Note: Boosted uses null for box shadows (no shadows by default)
5
+ */
6
+ export declare const boxShadows: {
7
+ readonly none: "none";
8
+ readonly sm: null;
9
+ readonly base: null;
10
+ readonly lg: null;
11
+ readonly inset: null;
12
+ };
13
+ export declare const shadows: {
14
+ readonly none: "none";
15
+ readonly sm: null;
16
+ readonly base: null;
17
+ readonly lg: null;
18
+ readonly inset: null;
19
+ };
20
+ //# sourceMappingURL=shadows.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shadows.d.ts","sourceRoot":"","sources":["../../src/tokens/shadows.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,eAAO,MAAM,UAAU;;;;;;CAMb,CAAC;AAEX,eAAO,MAAM,OAAO;;;;;;CAAa,CAAC"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Orange Design System Spacing Tokens
3
+ * Extracted from Orange Boosted Bootstrap SCSS variables
4
+ * Base spacer: 1.25rem (20px)
5
+ */
6
+ export declare const spacer = "1.25rem";
7
+ export declare const spacers: {
8
+ readonly 0: "0";
9
+ readonly 1: "0.3125rem";
10
+ readonly 2: "0.625rem";
11
+ readonly 3: "1.25rem";
12
+ readonly 4: "1.875rem";
13
+ readonly 5: "3.75rem";
14
+ };
15
+ export declare const targetSize = "2.75rem";
16
+ export declare const gridGutterWidth = "1.25rem";
17
+ export declare const containerPaddingX = "1.25rem";
18
+ export declare const spacing: {
19
+ readonly targetSize: "2.75rem";
20
+ readonly gridGutter: "1.25rem";
21
+ readonly containerPadding: "1.25rem";
22
+ readonly 0: "0";
23
+ readonly 1: "0.3125rem";
24
+ readonly 2: "0.625rem";
25
+ readonly 3: "1.25rem";
26
+ readonly 4: "1.875rem";
27
+ readonly 5: "3.75rem";
28
+ };
29
+ //# sourceMappingURL=spacing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spacing.d.ts","sourceRoot":"","sources":["../../src/tokens/spacing.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,eAAO,MAAM,MAAM,YAAY,CAAC;AAEhC,eAAO,MAAM,OAAO;;;;;;;CAOV,CAAC;AAGX,eAAO,MAAM,UAAU,YAAY,CAAC;AAGpC,eAAO,MAAM,eAAe,YAAS,CAAC;AAGtC,eAAO,MAAM,iBAAiB,YAAkB,CAAC;AAGjD,eAAO,MAAM,OAAO;;;;;;;;;;CAKV,CAAC"}
@@ -0,0 +1,127 @@
1
+ /**
2
+ * Orange Design System Typography Tokens
3
+ * Extracted from Orange Boosted Bootstrap SCSS variables
4
+ */
5
+ export declare const fontFamilies: {
6
+ readonly sansSerif: string;
7
+ readonly monospace: string;
8
+ };
9
+ export declare const fontSizes: {
10
+ readonly root: null;
11
+ readonly base: "1rem";
12
+ readonly sm: "0.875rem";
13
+ readonly lg: "1.125rem";
14
+ readonly xlg: "1.25rem";
15
+ };
16
+ export declare const headingSizes: {
17
+ readonly h1: "2.125rem";
18
+ readonly h2: "1.875rem";
19
+ readonly h3: "1.5rem";
20
+ readonly h4: "1.25rem";
21
+ readonly h5: "1.125rem";
22
+ readonly h6: "1rem";
23
+ };
24
+ export declare const displaySizes: {
25
+ readonly display1: "3.75rem";
26
+ readonly display2: "3.125rem";
27
+ readonly display3: "2.5rem";
28
+ readonly display4: "2.125rem";
29
+ };
30
+ export declare const lineHeights: {
31
+ readonly base: "calc(18 / 16)";
32
+ readonly sm: "calc(16 / 14)";
33
+ readonly lg: "calc(30 / 16)";
34
+ readonly h1: "1";
35
+ readonly h2: "calc(32 / 30)";
36
+ readonly h3: "calc(26 / 24)";
37
+ readonly h4: "calc(22 / 20)";
38
+ readonly h5: "calc(20 / 18)";
39
+ readonly h6: "calc(18 / 16)";
40
+ readonly display: "1";
41
+ readonly lead: "1.5";
42
+ };
43
+ export declare const letterSpacing: {
44
+ readonly base: "-0.00625rem";
45
+ readonly h1: "-0.0625rem";
46
+ readonly h2: "-0.05rem";
47
+ readonly mid: "-0.0375rem";
48
+ readonly h3: "-0.03125rem";
49
+ readonly h4: "-0.025rem";
50
+ readonly h5: "-0.0125rem";
51
+ readonly h6: "-0.00625rem";
52
+ readonly display1: "-0.125rem";
53
+ readonly display2: "-0.1rem";
54
+ readonly display3: "-0.0625rem";
55
+ readonly display4: "-0.0625rem";
56
+ readonly lead: "-0.025rem";
57
+ };
58
+ export declare const fontWeights: {
59
+ readonly light: "300";
60
+ readonly normal: "400";
61
+ readonly medium: "500";
62
+ readonly semibold: "600";
63
+ readonly bold: "700";
64
+ };
65
+ export declare const typography: {
66
+ readonly fontFamily: {
67
+ readonly sans: string;
68
+ readonly mono: string;
69
+ };
70
+ readonly fontSize: {
71
+ readonly root: null;
72
+ readonly base: "1rem";
73
+ readonly sm: "0.875rem";
74
+ readonly lg: "1.125rem";
75
+ readonly xlg: "1.25rem";
76
+ };
77
+ readonly heading: {
78
+ readonly h1: "2.125rem";
79
+ readonly h2: "1.875rem";
80
+ readonly h3: "1.5rem";
81
+ readonly h4: "1.25rem";
82
+ readonly h5: "1.125rem";
83
+ readonly h6: "1rem";
84
+ };
85
+ readonly display: {
86
+ readonly display1: "3.75rem";
87
+ readonly display2: "3.125rem";
88
+ readonly display3: "2.5rem";
89
+ readonly display4: "2.125rem";
90
+ };
91
+ readonly lineHeight: {
92
+ readonly base: "calc(18 / 16)";
93
+ readonly sm: "calc(16 / 14)";
94
+ readonly lg: "calc(30 / 16)";
95
+ readonly h1: "1";
96
+ readonly h2: "calc(32 / 30)";
97
+ readonly h3: "calc(26 / 24)";
98
+ readonly h4: "calc(22 / 20)";
99
+ readonly h5: "calc(20 / 18)";
100
+ readonly h6: "calc(18 / 16)";
101
+ readonly display: "1";
102
+ readonly lead: "1.5";
103
+ };
104
+ readonly letterSpacing: {
105
+ readonly base: "-0.00625rem";
106
+ readonly h1: "-0.0625rem";
107
+ readonly h2: "-0.05rem";
108
+ readonly mid: "-0.0375rem";
109
+ readonly h3: "-0.03125rem";
110
+ readonly h4: "-0.025rem";
111
+ readonly h5: "-0.0125rem";
112
+ readonly h6: "-0.00625rem";
113
+ readonly display1: "-0.125rem";
114
+ readonly display2: "-0.1rem";
115
+ readonly display3: "-0.0625rem";
116
+ readonly display4: "-0.0625rem";
117
+ readonly lead: "-0.025rem";
118
+ };
119
+ readonly fontWeight: {
120
+ readonly light: "300";
121
+ readonly normal: "400";
122
+ readonly medium: "500";
123
+ readonly semibold: "600";
124
+ readonly bold: "700";
125
+ };
126
+ };
127
+ //# sourceMappingURL=typography.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../src/tokens/typography.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,eAAO,MAAM,YAAY;;;CAuBf,CAAC;AAGX,eAAO,MAAM,SAAS;;;;;;CAMZ,CAAC;AAGX,eAAO,MAAM,YAAY;;;;;;;CAOf,CAAC;AAGX,eAAO,MAAM,YAAY;;;;;CAKf,CAAC;AAMX,eAAO,MAAM,WAAW;;;;;;;;;;;;CAYd,CAAC;AAMX,eAAO,MAAM,aAAa;;;;;;;;;;;;;;CAchB,CAAC;AAGX,eAAO,MAAM,WAAW;;;;;;CAMd,CAAC;AAGX,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWb,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { type ClassValue } from 'clsx';
2
+ /**
3
+ * Utility function to merge Tailwind CSS classes
4
+ * Combines clsx and tailwind-merge for optimal class merging
5
+ */
6
+ export declare function cn(...inputs: ClassValue[]): string;
7
+ //# sourceMappingURL=cn.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cn.d.ts","sourceRoot":"","sources":["../../src/utils/cn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAQ,MAAM,MAAM,CAAC;AAG7C;;;GAGG;AACH,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC"}
package/package.json ADDED
@@ -0,0 +1,106 @@
1
+ {
2
+ "name": "orange-core-ui",
3
+ "version": "0.1.0",
4
+ "description": "Orange Core UI - React component library with Tailwind CSS",
5
+ "type": "module",
6
+ "main": "./dist/index.cjs",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js",
13
+ "require": "./dist/index.cjs"
14
+ },
15
+ "./styles": "./dist/styles/globals.css"
16
+ },
17
+ "files": [
18
+ "dist",
19
+ "README.md",
20
+ "LICENSE"
21
+ ],
22
+ "repository": {
23
+ "type": "git",
24
+ "url": "https://github.com/[your-org]/orange-core-ui.git"
25
+ },
26
+ "scripts": {
27
+ "build": "vite build && tsc --emitDeclarationOnly --outDir dist",
28
+ "dev": "vite build --watch",
29
+ "type-check": "tsc --noEmit",
30
+ "lint": "eslint . --ext .ts,.tsx",
31
+ "test": "vitest run",
32
+ "test:watch": "vitest",
33
+ "test:coverage": "vitest run --coverage",
34
+ "storybook": "storybook dev -p 6006",
35
+ "build-storybook": "storybook build",
36
+ "pack": "npm run build && npm pack --pack-destination .",
37
+ "prepublishOnly": "npm run build",
38
+ "publish:dry-run": "npm run build && npm pack --dry-run",
39
+ "publish:pack": "npm run build && npm pack"
40
+ },
41
+ "keywords": [
42
+ "react",
43
+ "components",
44
+ "ui",
45
+ "tailwind",
46
+ "orange",
47
+ "design-system"
48
+ ],
49
+ "author": "",
50
+ "license": "MIT",
51
+ "peerDependencies": {
52
+ "@hookform/resolvers": "^3.3.0",
53
+ "@radix-ui/react-accordion": "^1.1.0",
54
+ "@radix-ui/react-checkbox": "^1.0.0",
55
+ "@radix-ui/react-collapsible": "^1.0.0",
56
+ "@radix-ui/react-context-menu": "^2.1.0",
57
+ "@radix-ui/react-dialog": "^1.0.0",
58
+ "@radix-ui/react-hover-card": "^1.0.0",
59
+ "@radix-ui/react-popover": "^1.0.0",
60
+ "@radix-ui/react-progress": "^1.0.0",
61
+ "@radix-ui/react-radio-group": "^1.1.0",
62
+ "@radix-ui/react-scroll-area": "^1.0.0",
63
+ "@radix-ui/react-select": "^2.0.0",
64
+ "@radix-ui/react-separator": "^1.0.0",
65
+ "@radix-ui/react-slider": "^1.1.0",
66
+ "@radix-ui/react-switch": "^1.0.0",
67
+ "@radix-ui/react-tabs": "^1.0.0",
68
+ "@radix-ui/react-toast": "^1.1.0",
69
+ "@radix-ui/react-tooltip": "^1.0.0",
70
+ "react": "^19.0.0",
71
+ "react-dom": "^19.0.0",
72
+ "react-hook-form": "^7.0.0",
73
+ "zod": "^3.22.0"
74
+ },
75
+ "devDependencies": {
76
+ "@hookform/resolvers": "^3.3.0",
77
+ "@storybook/addon-a11y": "^7.6.7",
78
+ "@storybook/addon-essentials": "^8.6.14",
79
+ "@storybook/addon-interactions": "^7.6.7",
80
+ "@storybook/addon-links": "^7.6.7",
81
+ "@storybook/react": "^10.2.3",
82
+ "@storybook/react-vite": "^10.2.3",
83
+ "@storybook/test": "^7.6.7",
84
+ "@testing-library/jest-dom": "^6.1.5",
85
+ "@testing-library/react": "^15.0.0",
86
+ "@testing-library/user-event": "^14.5.1",
87
+ "@types/react": "^19.0.0",
88
+ "@types/react-dom": "^19.0.0",
89
+ "@vitejs/plugin-react": "^4.2.1",
90
+ "autoprefixer": "^10.4.17",
91
+ "clsx": "^2.1.0",
92
+ "jsdom": "^23.0.1",
93
+ "postcss": "^8.4.33",
94
+ "react": "^19.0.0",
95
+ "react-dom": "^19.0.0",
96
+ "react-hook-form": "^7.49.3",
97
+ "storybook": "^10.2.3",
98
+ "tailwind-merge": "^2.2.0",
99
+ "tailwindcss": "^3.4.1",
100
+ "typescript": "^5.3.3",
101
+ "vite": "^6.4.1",
102
+ "vite-plugin-dts": "^4.5.4",
103
+ "vitest": "^4.0.18",
104
+ "zod": "^3.22.4"
105
+ }
106
+ }