bromcom-ui-next 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 (169) hide show
  1. package/LICENSE +21 -0
  2. package/dist/bromcom-ui/bromcom-ui.css +1 -0
  3. package/dist/bromcom-ui/bromcom-ui.esm.js +2 -0
  4. package/dist/bromcom-ui/bromcom-ui.esm.js.map +1 -0
  5. package/dist/bromcom-ui/global/global.js +40 -0
  6. package/dist/bromcom-ui/index.esm.js +2 -0
  7. package/dist/bromcom-ui/index.esm.js.map +1 -0
  8. package/dist/bromcom-ui/p-27c997d8.js +3 -0
  9. package/dist/bromcom-ui/p-27c997d8.js.map +1 -0
  10. package/dist/bromcom-ui/p-341d46a8.entry.js +2 -0
  11. package/dist/bromcom-ui/p-341d46a8.entry.js.map +1 -0
  12. package/dist/bromcom-ui/p-40643b53.js +2 -0
  13. package/dist/bromcom-ui/p-40643b53.js.map +1 -0
  14. package/dist/bromcom-ui/p-5fcf77f9.js +2 -0
  15. package/dist/bromcom-ui/p-5fcf77f9.js.map +1 -0
  16. package/dist/bromcom-ui/p-997f314c.entry.js +2 -0
  17. package/dist/bromcom-ui/p-997f314c.entry.js.map +1 -0
  18. package/dist/bromcom-ui/p-b36f4f44.js +7 -0
  19. package/dist/bromcom-ui/p-b36f4f44.js.map +1 -0
  20. package/dist/bromcom-ui/p-dcb9df00.entry.js +2 -0
  21. package/dist/bromcom-ui/p-dcb9df00.entry.js.map +1 -0
  22. package/dist/bromcom-ui/p-f0c61f8c.entry.js +2 -0
  23. package/dist/bromcom-ui/p-f0c61f8c.entry.js.map +1 -0
  24. package/dist/cjs/app-globals-e8faea0d.js +43 -0
  25. package/dist/cjs/app-globals-e8faea0d.js.map +1 -0
  26. package/dist/cjs/bcm-accordion_4.cjs.entry.js +623 -0
  27. package/dist/cjs/bcm-accordion_4.cjs.entry.js.map +1 -0
  28. package/dist/cjs/bcm-alert.cjs.entry.js +99 -0
  29. package/dist/cjs/bcm-alert.cjs.entry.js.map +1 -0
  30. package/dist/cjs/bcm-avatar.cjs.entry.js +89 -0
  31. package/dist/cjs/bcm-avatar.cjs.entry.js.map +1 -0
  32. package/dist/cjs/bcm-text.cjs.entry.js +119 -0
  33. package/dist/cjs/bcm-text.cjs.entry.js.map +1 -0
  34. package/dist/cjs/bromcom-ui.cjs.js +27 -0
  35. package/dist/cjs/bromcom-ui.cjs.js.map +1 -0
  36. package/dist/cjs/index-310db2a6.js +2584 -0
  37. package/dist/cjs/index-310db2a6.js.map +1 -0
  38. package/dist/cjs/index-638f2d15.js +1441 -0
  39. package/dist/cjs/index-638f2d15.js.map +1 -0
  40. package/dist/cjs/index-a4eea4bb.js +84 -0
  41. package/dist/cjs/index-a4eea4bb.js.map +1 -0
  42. package/dist/cjs/index.cjs.js +4 -0
  43. package/dist/cjs/index.cjs.js.map +1 -0
  44. package/dist/cjs/loader.cjs.js +17 -0
  45. package/dist/cjs/loader.cjs.js.map +1 -0
  46. package/dist/collection/collection-manifest.json +18 -0
  47. package/dist/collection/components/accordion/accordion.component.js +399 -0
  48. package/dist/collection/components/accordion/accordion.component.js.map +1 -0
  49. package/dist/collection/components/accordion/accordion.css +1 -0
  50. package/dist/collection/components/accordion/types.js +2 -0
  51. package/dist/collection/components/accordion/types.js.map +1 -0
  52. package/dist/collection/components/accordion-group/accordion-group.component.js +269 -0
  53. package/dist/collection/components/accordion-group/accordion-group.component.js.map +1 -0
  54. package/dist/collection/components/accordion-group/accordion-group.css +1 -0
  55. package/dist/collection/components/accordion-group/types.js +2 -0
  56. package/dist/collection/components/accordion-group/types.js.map +1 -0
  57. package/dist/collection/components/alert/alert.component.js +241 -0
  58. package/dist/collection/components/alert/alert.component.js.map +1 -0
  59. package/dist/collection/components/alert/alert.css +1 -0
  60. package/dist/collection/components/alert/types.js +2 -0
  61. package/dist/collection/components/alert/types.js.map +1 -0
  62. package/dist/collection/components/avatar/avatar.component.js +290 -0
  63. package/dist/collection/components/avatar/avatar.component.js.map +1 -0
  64. package/dist/collection/components/avatar/avatar.css +1 -0
  65. package/dist/collection/components/avatar/types.js +2 -0
  66. package/dist/collection/components/avatar/types.js.map +1 -0
  67. package/dist/collection/components/button/button.component.js +628 -0
  68. package/dist/collection/components/button/button.component.js.map +1 -0
  69. package/dist/collection/components/button/button.css +1 -0
  70. package/dist/collection/components/button/types.js +142 -0
  71. package/dist/collection/components/button/types.js.map +1 -0
  72. package/dist/collection/components/chip/chip.component.js +308 -0
  73. package/dist/collection/components/chip/chip.component.js.map +1 -0
  74. package/dist/collection/components/chip/chip.css +1 -0
  75. package/dist/collection/components/chip/types.js +7 -0
  76. package/dist/collection/components/chip/types.js.map +1 -0
  77. package/dist/collection/components/text/text.component.js +176 -0
  78. package/dist/collection/components/text/text.component.js.map +1 -0
  79. package/dist/collection/components/text/text.css +1 -0
  80. package/dist/collection/components/text/text.types.js +2 -0
  81. package/dist/collection/components/text/text.types.js.map +1 -0
  82. package/dist/collection/components/text/text.utils.js +18 -0
  83. package/dist/collection/components/text/text.utils.js.map +1 -0
  84. package/dist/collection/global/global.js +40 -0
  85. package/dist/collection/index.js +2 -0
  86. package/dist/collection/index.js.map +1 -0
  87. package/dist/collection/styles/theme-variables.js +355 -0
  88. package/dist/collection/styles/theme-variables.js.map +1 -0
  89. package/dist/components/bcm-accordion-group.d.ts +11 -0
  90. package/dist/components/bcm-accordion-group.js +113 -0
  91. package/dist/components/bcm-accordion-group.js.map +1 -0
  92. package/dist/components/bcm-accordion.d.ts +11 -0
  93. package/dist/components/bcm-accordion.js +152 -0
  94. package/dist/components/bcm-accordion.js.map +1 -0
  95. package/dist/components/bcm-alert.d.ts +11 -0
  96. package/dist/components/bcm-alert.js +120 -0
  97. package/dist/components/bcm-alert.js.map +1 -0
  98. package/dist/components/bcm-avatar.d.ts +11 -0
  99. package/dist/components/bcm-avatar.js +115 -0
  100. package/dist/components/bcm-avatar.js.map +1 -0
  101. package/dist/components/bcm-button.d.ts +11 -0
  102. package/dist/components/bcm-button.js +334 -0
  103. package/dist/components/bcm-button.js.map +1 -0
  104. package/dist/components/bcm-chip.d.ts +11 -0
  105. package/dist/components/bcm-chip.js +152 -0
  106. package/dist/components/bcm-chip.js.map +1 -0
  107. package/dist/components/bcm-text.d.ts +11 -0
  108. package/dist/components/bcm-text.js +138 -0
  109. package/dist/components/bcm-text.js.map +1 -0
  110. package/dist/components/index.d.ts +33 -0
  111. package/dist/components/index.js +38 -0
  112. package/dist/components/index.js.map +1 -0
  113. package/dist/components/p-0adcc84f.js +1222 -0
  114. package/dist/components/p-0adcc84f.js.map +1 -0
  115. package/dist/components/p-5fcf77f9.js +2582 -0
  116. package/dist/components/p-5fcf77f9.js.map +1 -0
  117. package/dist/components/p-b36f4f44.js +82 -0
  118. package/dist/components/p-b36f4f44.js.map +1 -0
  119. package/dist/esm/app-globals-f781c325.js +41 -0
  120. package/dist/esm/app-globals-f781c325.js.map +1 -0
  121. package/dist/esm/bcm-accordion_4.entry.js +616 -0
  122. package/dist/esm/bcm-accordion_4.entry.js.map +1 -0
  123. package/dist/esm/bcm-alert.entry.js +95 -0
  124. package/dist/esm/bcm-alert.entry.js.map +1 -0
  125. package/dist/esm/bcm-avatar.entry.js +85 -0
  126. package/dist/esm/bcm-avatar.entry.js.map +1 -0
  127. package/dist/esm/bcm-text.entry.js +115 -0
  128. package/dist/esm/bcm-text.entry.js.map +1 -0
  129. package/dist/esm/bromcom-ui.js +22 -0
  130. package/dist/esm/bromcom-ui.js.map +1 -0
  131. package/dist/esm/index-ce2fac11.js +1412 -0
  132. package/dist/esm/index-ce2fac11.js.map +1 -0
  133. package/dist/esm/index-f0e9d579.js +82 -0
  134. package/dist/esm/index-f0e9d579.js.map +1 -0
  135. package/dist/esm/index-f3b17e60.js +2582 -0
  136. package/dist/esm/index-f3b17e60.js.map +1 -0
  137. package/dist/esm/index.js +3 -0
  138. package/dist/esm/index.js.map +1 -0
  139. package/dist/esm/loader.js +13 -0
  140. package/dist/esm/loader.js.map +1 -0
  141. package/dist/index.cjs.js +1 -0
  142. package/dist/index.js +1 -0
  143. package/dist/types/components/accordion/accordion.component.d.ts +137 -0
  144. package/dist/types/components/accordion/types.d.ts +16 -0
  145. package/dist/types/components/accordion-group/accordion-group.component.d.ts +95 -0
  146. package/dist/types/components/accordion-group/types.d.ts +13 -0
  147. package/dist/types/components/alert/alert.component.d.ts +28 -0
  148. package/dist/types/components/alert/types.d.ts +3 -0
  149. package/dist/types/components/avatar/avatar.component.d.ts +24 -0
  150. package/dist/types/components/avatar/types.d.ts +3 -0
  151. package/dist/types/components/button/button.component.d.ts +52 -0
  152. package/dist/types/components/button/types.d.ts +15 -0
  153. package/dist/types/components/chip/chip.component.d.ts +48 -0
  154. package/dist/types/components/chip/types.d.ts +9 -0
  155. package/dist/types/components/text/text.component.d.ts +12 -0
  156. package/dist/types/components/text/text.types.d.ts +3 -0
  157. package/dist/types/components/text/text.utils.d.ts +2 -0
  158. package/dist/types/components.d.ts +1116 -0
  159. package/dist/types/index.d.ts +10 -0
  160. package/dist/types/stencil-public-runtime.d.ts +1680 -0
  161. package/dist/types/styles/theme-variables.d.ts +384 -0
  162. package/loader/cdn.js +1 -0
  163. package/loader/index.cjs.js +1 -0
  164. package/loader/index.d.ts +24 -0
  165. package/loader/index.es2017.js +1 -0
  166. package/loader/index.js +2 -0
  167. package/loader/package.json +11 -0
  168. package/package.json +49 -0
  169. package/readme.md +170 -0
@@ -0,0 +1,384 @@
1
+ export declare const themeVariables: {
2
+ fontSize: {
3
+ 'size-1': (string | {
4
+ lineHeight: string;
5
+ })[];
6
+ 'size-2': (string | {
7
+ lineHeight: string;
8
+ })[];
9
+ 'size-3': (string | {
10
+ lineHeight: string;
11
+ })[];
12
+ 'size-4': (string | {
13
+ lineHeight: string;
14
+ })[];
15
+ 'size-5': (string | {
16
+ lineHeight: string;
17
+ })[];
18
+ 'size-6': (string | {
19
+ lineHeight: string;
20
+ })[];
21
+ 'size-7': (string | {
22
+ lineHeight: string;
23
+ })[];
24
+ 'size-8': (string | {
25
+ lineHeight: string;
26
+ })[];
27
+ 'size-9': (string | {
28
+ lineHeight: string;
29
+ })[];
30
+ 'size-10': (string | {
31
+ lineHeight: string;
32
+ })[];
33
+ 'size-11': (string | {
34
+ lineHeight: string;
35
+ })[];
36
+ 'size-12': (string | {
37
+ lineHeight: string;
38
+ })[];
39
+ 'size-13': (string | {
40
+ lineHeight: string;
41
+ })[];
42
+ 'size-14': (string | {
43
+ lineHeight: string;
44
+ })[];
45
+ 'size-inherit': (string | {
46
+ lineHeight: string;
47
+ })[];
48
+ };
49
+ textColor: {
50
+ DEFAULT: string;
51
+ base: string;
52
+ header: string;
53
+ label: string;
54
+ helper: string;
55
+ placeholder: string;
56
+ caption: string;
57
+ iconDefault: string;
58
+ iconDark: string;
59
+ primary: string;
60
+ info: string;
61
+ success: string;
62
+ warning: string;
63
+ error: string;
64
+ disabled: string;
65
+ visited: string;
66
+ palette: {
67
+ slate: string;
68
+ gray: string;
69
+ zinc: string;
70
+ neutral: string;
71
+ stone: string;
72
+ red: string;
73
+ orange: string;
74
+ amber: string;
75
+ yellow: string;
76
+ lime: string;
77
+ green: string;
78
+ emerald: string;
79
+ teal: string;
80
+ cyan: string;
81
+ sky: string;
82
+ blue: string;
83
+ indigo: string;
84
+ violet: string;
85
+ purple: string;
86
+ fuchsia: string;
87
+ pink: string;
88
+ rose: string;
89
+ };
90
+ };
91
+ v4ColorPalette: {
92
+ inherit: string;
93
+ current: string;
94
+ transparent: string;
95
+ black: string;
96
+ white: string;
97
+ slate: {
98
+ '50': string;
99
+ '100': string;
100
+ '200': string;
101
+ '300': string;
102
+ '400': string;
103
+ '500': string;
104
+ '600': string;
105
+ '700': string;
106
+ '800': string;
107
+ '900': string;
108
+ '950': string;
109
+ };
110
+ gray: {
111
+ '50': string;
112
+ '100': string;
113
+ '200': string;
114
+ '300': string;
115
+ '400': string;
116
+ '500': string;
117
+ '600': string;
118
+ '700': string;
119
+ '800': string;
120
+ '900': string;
121
+ '950': string;
122
+ };
123
+ zinc: {
124
+ '50': string;
125
+ '100': string;
126
+ '200': string;
127
+ '300': string;
128
+ '400': string;
129
+ '500': string;
130
+ '600': string;
131
+ '700': string;
132
+ '800': string;
133
+ '900': string;
134
+ '950': string;
135
+ };
136
+ neutral: {
137
+ '50': string;
138
+ '100': string;
139
+ '200': string;
140
+ '300': string;
141
+ '400': string;
142
+ '500': string;
143
+ '600': string;
144
+ '700': string;
145
+ '800': string;
146
+ '900': string;
147
+ '950': string;
148
+ };
149
+ stone: {
150
+ '50': string;
151
+ '100': string;
152
+ '200': string;
153
+ '300': string;
154
+ '400': string;
155
+ '500': string;
156
+ '600': string;
157
+ '700': string;
158
+ '800': string;
159
+ '900': string;
160
+ '950': string;
161
+ };
162
+ red: {
163
+ '50': string;
164
+ '100': string;
165
+ '200': string;
166
+ '300': string;
167
+ '400': string;
168
+ '500': string;
169
+ '600': string;
170
+ '700': string;
171
+ '800': string;
172
+ '900': string;
173
+ '950': string;
174
+ };
175
+ orange: {
176
+ '50': string;
177
+ '100': string;
178
+ '200': string;
179
+ '300': string;
180
+ '400': string;
181
+ '500': string;
182
+ '600': string;
183
+ '700': string;
184
+ '800': string;
185
+ '900': string;
186
+ '950': string;
187
+ };
188
+ amber: {
189
+ '50': string;
190
+ '100': string;
191
+ '200': string;
192
+ '300': string;
193
+ '400': string;
194
+ '500': string;
195
+ '600': string;
196
+ '700': string;
197
+ '800': string;
198
+ '900': string;
199
+ '950': string;
200
+ };
201
+ yellow: {
202
+ '50': string;
203
+ '100': string;
204
+ '200': string;
205
+ '300': string;
206
+ '400': string;
207
+ '500': string;
208
+ '600': string;
209
+ '700': string;
210
+ '800': string;
211
+ '900': string;
212
+ '950': string;
213
+ };
214
+ lime: {
215
+ '50': string;
216
+ '100': string;
217
+ '200': string;
218
+ '300': string;
219
+ '400': string;
220
+ '500': string;
221
+ '600': string;
222
+ '700': string;
223
+ '800': string;
224
+ '900': string;
225
+ '950': string;
226
+ };
227
+ green: {
228
+ '50': string;
229
+ '100': string;
230
+ '200': string;
231
+ '300': string;
232
+ '400': string;
233
+ '500': string;
234
+ '600': string;
235
+ '700': string;
236
+ '800': string;
237
+ '900': string;
238
+ '950': string;
239
+ };
240
+ emerald: {
241
+ '50': string;
242
+ '100': string;
243
+ '200': string;
244
+ '300': string;
245
+ '400': string;
246
+ '500': string;
247
+ '600': string;
248
+ '700': string;
249
+ '800': string;
250
+ '900': string;
251
+ '950': string;
252
+ };
253
+ teal: {
254
+ '50': string;
255
+ '100': string;
256
+ '200': string;
257
+ '300': string;
258
+ '400': string;
259
+ '500': string;
260
+ '600': string;
261
+ '700': string;
262
+ '800': string;
263
+ '900': string;
264
+ '950': string;
265
+ };
266
+ cyan: {
267
+ '50': string;
268
+ '100': string;
269
+ '200': string;
270
+ '300': string;
271
+ '400': string;
272
+ '500': string;
273
+ '600': string;
274
+ '700': string;
275
+ '800': string;
276
+ '900': string;
277
+ '950': string;
278
+ };
279
+ sky: {
280
+ '50': string;
281
+ '100': string;
282
+ '200': string;
283
+ '300': string;
284
+ '400': string;
285
+ '500': string;
286
+ '600': string;
287
+ '700': string;
288
+ '800': string;
289
+ '900': string;
290
+ '950': string;
291
+ };
292
+ blue: {
293
+ '50': string;
294
+ '100': string;
295
+ '200': string;
296
+ '300': string;
297
+ '400': string;
298
+ '500': string;
299
+ '600': string;
300
+ '700': string;
301
+ '800': string;
302
+ '900': string;
303
+ '950': string;
304
+ };
305
+ indigo: {
306
+ '50': string;
307
+ '100': string;
308
+ '200': string;
309
+ '300': string;
310
+ '400': string;
311
+ '500': string;
312
+ '600': string;
313
+ '700': string;
314
+ '800': string;
315
+ '900': string;
316
+ '950': string;
317
+ };
318
+ violet: {
319
+ '50': string;
320
+ '100': string;
321
+ '200': string;
322
+ '300': string;
323
+ '400': string;
324
+ '500': string;
325
+ '600': string;
326
+ '700': string;
327
+ '800': string;
328
+ '900': string;
329
+ '950': string;
330
+ };
331
+ purple: {
332
+ '50': string;
333
+ '100': string;
334
+ '200': string;
335
+ '300': string;
336
+ '400': string;
337
+ '500': string;
338
+ '600': string;
339
+ '700': string;
340
+ '800': string;
341
+ '900': string;
342
+ '950': string;
343
+ };
344
+ fuchsia: {
345
+ '50': string;
346
+ '100': string;
347
+ '200': string;
348
+ '300': string;
349
+ '400': string;
350
+ '500': string;
351
+ '600': string;
352
+ '700': string;
353
+ '800': string;
354
+ '900': string;
355
+ '950': string;
356
+ };
357
+ pink: {
358
+ '50': string;
359
+ '100': string;
360
+ '200': string;
361
+ '300': string;
362
+ '400': string;
363
+ '500': string;
364
+ '600': string;
365
+ '700': string;
366
+ '800': string;
367
+ '900': string;
368
+ '950': string;
369
+ };
370
+ rose: {
371
+ '50': string;
372
+ '100': string;
373
+ '200': string;
374
+ '300': string;
375
+ '400': string;
376
+ '500': string;
377
+ '600': string;
378
+ '700': string;
379
+ '800': string;
380
+ '900': string;
381
+ '950': string;
382
+ };
383
+ };
384
+ };
package/loader/cdn.js ADDED
@@ -0,0 +1 @@
1
+ module.exports = require('../dist/cjs/loader.cjs.js');
@@ -0,0 +1 @@
1
+ module.exports = require('../dist/cjs/loader.cjs.js');
@@ -0,0 +1,24 @@
1
+ export * from '../dist/types/components';
2
+ export interface CustomElementsDefineOptions {
3
+ exclude?: string[];
4
+ resourcesUrl?: string;
5
+ syncQueue?: boolean;
6
+ jmp?: (c: Function) => any;
7
+ raf?: (c: FrameRequestCallback) => number;
8
+ ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
9
+ rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
10
+ }
11
+ export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): void;
12
+ /**
13
+ * @deprecated
14
+ */
15
+ export declare function applyPolyfills(): Promise<void>;
16
+
17
+ /**
18
+ * Used to specify a nonce value that corresponds with an application's CSP.
19
+ * When set, the nonce will be added to all dynamically created script and style tags at runtime.
20
+ * Alternatively, the nonce value can be set on a meta tag in the DOM head
21
+ * (<meta name="csp-nonce" content="{ nonce value here }" />) which
22
+ * will result in the same behavior.
23
+ */
24
+ export declare function setNonce(nonce: string): void;
@@ -0,0 +1 @@
1
+ export * from '../dist/esm/loader.js';
@@ -0,0 +1,2 @@
1
+ (function(){if("undefined"!==typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var a=HTMLElement;window.HTMLElement=function(){return Reflect.construct(a,[],this.constructor)};HTMLElement.prototype=a.prototype;HTMLElement.prototype.constructor=HTMLElement;Object.setPrototypeOf(HTMLElement,a)}})();
2
+ export * from '../dist/esm/loader.js';
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "bromcom-ui-loader",
3
+ "private": true,
4
+ "typings": "./index.d.ts",
5
+ "module": "./index.js",
6
+ "main": "./index.cjs.js",
7
+ "jsnext:main": "./index.es2017.js",
8
+ "es2015": "./index.es2017.js",
9
+ "es2017": "./index.es2017.js",
10
+ "unpkg": "./cdn.js"
11
+ }
package/package.json ADDED
@@ -0,0 +1,49 @@
1
+ {
2
+ "name": "bromcom-ui-next",
3
+ "version": "0.1.0",
4
+ "description": "A modern UI component library built with StencilJS and Tailwind CSS for Bromcom applications",
5
+ "private": false,
6
+ "author": "Bromcom Computers Plc",
7
+ "keywords": [
8
+ "bromcom",
9
+ "ui-components",
10
+ "web-components",
11
+ "stencil",
12
+ "tailwind"
13
+ ],
14
+ "main": "dist/index.cjs.js",
15
+ "module": "dist/index.js",
16
+ "types": "dist/types/index.d.ts",
17
+ "collection": "dist/collection/collection-manifest.json",
18
+ "collection:main": "dist/collection/index.js",
19
+ "unpkg": "dist/bromcom-ui/bromcom-ui.esm.js",
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "https://github.com/muratpolatozkan/bromcom-ui-next.git"
23
+ },
24
+ "files": [
25
+ "dist/",
26
+ "loader/"
27
+ ],
28
+ "scripts": {
29
+ "build": "stencil build",
30
+ "start": "stencil build --dev --watch --serve",
31
+ "test": "stencil test --spec --e2e",
32
+ "test.watch": "stencil test --spec --e2e --watchAll",
33
+ "generate": "stencil generate"
34
+ },
35
+ "devDependencies": {
36
+ "@stencil/core": "^4.7.0",
37
+ "@stencil/sass": "^3.0.12",
38
+ "@types/jest": "^29.5.6",
39
+ "@types/node": "^16.18.11",
40
+ "classnames": "^2.5.1",
41
+ "jest": "^29.7.0",
42
+ "jest-cli": "^29.7.0",
43
+ "puppeteer": "^21.9.0",
44
+ "stencil-tailwind-plugin": "^1.8.0",
45
+ "tailwind-variants": "^0.3.1",
46
+ "tailwindcss": "^3.4.17"
47
+ },
48
+ "license": "MIT"
49
+ }
package/readme.md ADDED
@@ -0,0 +1,170 @@
1
+ # Bromcom UI Component Library
2
+
3
+ A modern, customizable UI component library built with StencilJS and TailwindCSS.
4
+
5
+ ## Project Structure
6
+
7
+ ```
8
+ bromcom-ui-next/
9
+ ├── src/
10
+ │ ├── components/ # UI Components
11
+ │ ├── styles/ # Global styles and theme variables
12
+ │ ├── global/ # Global utilities and configurations
13
+ │ └── z_demos/ # Component demos and examples
14
+ └── dist/ # Built files
15
+ ```
16
+
17
+ ## Development Guidelines
18
+
19
+ ### Component Structure
20
+
21
+ Each component should follow this structure:
22
+
23
+ ```
24
+ components/
25
+ └── button/
26
+ ├── button.component.tsx # Component implementation
27
+ ├── button.types.ts # TypeScript interfaces and types
28
+ ├── button.css # Component-specific styles
29
+ ├── button.usage.md # Usage documentation
30
+ └── readme.md # Auto-generated documentation
31
+ ```
32
+
33
+ ### Style Guidelines
34
+
35
+ - Use TailwindCSS for styling
36
+ - Follow BEM-like naming convention with `bcm-` prefix
37
+ - Use CSS variables for theming support
38
+ - Follow the defined color palette and typography system
39
+
40
+ ## Installation
41
+
42
+ ### Via CDN
43
+
44
+ Add the following to your HTML file:
45
+
46
+ ```html
47
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bromcom-ui@latest/dist/bromcom-ui/bromcom-ui.css" />
48
+ <script type="module" src="https://cdn.jsdelivr.net/npm/bromcom-ui@latest/dist/bromcom-ui/bromcom-ui.esm.js"></script>
49
+ ```
50
+
51
+ ### Via NPM
52
+
53
+ ```bash
54
+ npm install bromcom-ui@latest
55
+ ```
56
+
57
+ For a specific version:
58
+
59
+ ```bash
60
+ npm install bromcom-ui@x.x.x
61
+ ```
62
+
63
+ ## Usage
64
+
65
+ ### In a Standard Web Project
66
+
67
+ 1. Include the library via CDN or local files:
68
+
69
+ ```html
70
+ <!DOCTYPE html>
71
+ <html>
72
+ <head>
73
+ <link rel="stylesheet" href="path/to/bromcom-ui.css" />
74
+ <script type="module" src="path/to/bromcom-ui.esm.js"></script>
75
+ </head>
76
+ <body>
77
+ <bcm-button>Click Me</bcm-button>
78
+ </body>
79
+ </html>
80
+ ```
81
+
82
+ ### In an Angular Project
83
+
84
+ 1. Install the package:
85
+
86
+ ```bash
87
+ npm install bromcom-ui@latest
88
+ ```
89
+
90
+ 2. Add the CSS to your `angular.json`:
91
+
92
+ ```json
93
+ {
94
+ "styles": ["node_modules/bromcom-ui/dist/bromcom-ui/bromcom-ui.css"]
95
+ }
96
+ ```
97
+
98
+ 3. Configure your module:
99
+
100
+ ```typescript
101
+ import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
102
+ import { defineCustomElements } from 'bromcom-ui/loader';
103
+
104
+ defineCustomElements();
105
+
106
+ @NgModule({
107
+ // ...other configurations
108
+ schemas: [CUSTOM_ELEMENTS_SCHEMA],
109
+ })
110
+ export class AppModule {}
111
+ ```
112
+
113
+ 4. Use components in your templates:
114
+
115
+ ```html
116
+ <bcm-button kind="primary">Click Me</bcm-button>
117
+ ```
118
+
119
+ ## Component Documentation
120
+
121
+ Each component includes:
122
+
123
+ - Property documentation
124
+ - Usage examples
125
+ - Type definitions
126
+ - CSS customization options
127
+
128
+ Example usage documentation can be found in the component's `.usage.md` file.
129
+
130
+ ## Theme Customization
131
+
132
+ The library uses CSS variables for theming. Override these variables to customize the appearance:
133
+
134
+ ```css
135
+ :root {
136
+ --bcm-ui-color-primary: #your-color;
137
+ --bcm-ui-font-family: your-font;
138
+ }
139
+ ```
140
+
141
+ ## Contributing
142
+
143
+ 1. Fork the repository
144
+ 2. Create a feature branch
145
+ 3. Follow the style guidelines
146
+ 4. Submit a pull request
147
+
148
+ ## Building
149
+
150
+ ```bash
151
+ # Install dependencies
152
+ npm install
153
+
154
+ # Start development server
155
+ npm start
156
+
157
+ # Build for production
158
+ npm run build
159
+ ```
160
+
161
+ ## Support
162
+
163
+ For questions or issues, contact the UI team:
164
+
165
+ - Murat Özkan (murat.ozkan@bromcom.com)
166
+ - Ramazan Yıldırım (ramazan.yildirim@bromcom.com)
167
+
168
+ ## License
169
+
170
+ Copyright © 2025 Bromcom Computers Plc