@uni-design-system/uni-core 0.0.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 (213) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +2 -0
  3. package/dist/cjs/components/button/button.component.d.ts +6 -0
  4. package/dist/cjs/components/button/button.component.js +17 -0
  5. package/dist/cjs/components/button/button.component.js.map +1 -0
  6. package/dist/cjs/components/card/card.component.d.ts +5 -0
  7. package/dist/cjs/components/card/card.component.js +11 -0
  8. package/dist/cjs/components/card/card.component.js.map +1 -0
  9. package/dist/cjs/core/backgrounds/background.model.d.ts +9 -0
  10. package/dist/cjs/core/backgrounds/background.model.js +3 -0
  11. package/dist/cjs/core/backgrounds/background.model.js.map +1 -0
  12. package/dist/cjs/core/backgrounds/background.types.d.ts +1 -0
  13. package/dist/cjs/core/backgrounds/background.types.js +3 -0
  14. package/dist/cjs/core/backgrounds/background.types.js.map +1 -0
  15. package/dist/cjs/core/backgrounds/index.d.ts +2 -0
  16. package/dist/cjs/core/backgrounds/index.js +19 -0
  17. package/dist/cjs/core/backgrounds/index.js.map +1 -0
  18. package/dist/cjs/core/border/border.types.d.ts +1 -0
  19. package/dist/cjs/core/border/border.types.js +3 -0
  20. package/dist/cjs/core/border/border.types.js.map +1 -0
  21. package/dist/cjs/core/color/color.helper.d.ts +4 -0
  22. package/dist/cjs/core/color/color.helper.js +17 -0
  23. package/dist/cjs/core/color/color.helper.js.map +1 -0
  24. package/dist/cjs/core/color/color.model.d.ts +22 -0
  25. package/dist/cjs/core/color/color.model.js +3 -0
  26. package/dist/cjs/core/color/color.model.js.map +1 -0
  27. package/dist/cjs/core/color/color.types.d.ts +11 -0
  28. package/dist/cjs/core/color/color.types.js +35 -0
  29. package/dist/cjs/core/color/color.types.js.map +1 -0
  30. package/dist/cjs/core/container/container.component.d.ts +5 -0
  31. package/dist/cjs/core/container/container.component.js +11 -0
  32. package/dist/cjs/core/container/container.component.js.map +1 -0
  33. package/dist/cjs/core/container/container.model.d.ts +40 -0
  34. package/dist/cjs/core/container/container.model.js +3 -0
  35. package/dist/cjs/core/container/container.model.js.map +1 -0
  36. package/dist/cjs/core/core.types.d.ts +9 -0
  37. package/dist/cjs/core/core.types.js +3 -0
  38. package/dist/cjs/core/core.types.js.map +1 -0
  39. package/dist/cjs/core/gradients/gradiennt.helper.d.ts +2 -0
  40. package/dist/cjs/core/gradients/gradiennt.helper.js +8 -0
  41. package/dist/cjs/core/gradients/gradiennt.helper.js.map +1 -0
  42. package/dist/cjs/core/gradients/gradient.model.d.ts +6 -0
  43. package/dist/cjs/core/gradients/gradient.model.js +3 -0
  44. package/dist/cjs/core/gradients/gradient.model.js.map +1 -0
  45. package/dist/cjs/core/gradients/gradient.types.d.ts +0 -0
  46. package/dist/cjs/core/gradients/gradient.types.js +2 -0
  47. package/dist/cjs/core/gradients/gradient.types.js.map +1 -0
  48. package/dist/cjs/core/iconography/icon.model.d.ts +7 -0
  49. package/dist/cjs/core/iconography/icon.model.js +3 -0
  50. package/dist/cjs/core/iconography/icon.model.js.map +1 -0
  51. package/dist/cjs/core/iconography/icon.types.d.ts +7 -0
  52. package/dist/cjs/core/iconography/icon.types.js +3 -0
  53. package/dist/cjs/core/iconography/icon.types.js.map +1 -0
  54. package/dist/cjs/core/index.d.ts +1 -0
  55. package/dist/cjs/core/index.js +18 -0
  56. package/dist/cjs/core/index.js.map +1 -0
  57. package/dist/cjs/core/layout/layout.types.d.ts +3 -0
  58. package/dist/cjs/core/layout/layout.types.js +5 -0
  59. package/dist/cjs/core/layout/layout.types.js.map +1 -0
  60. package/dist/cjs/core/masking/masking.model.d.ts +6 -0
  61. package/dist/cjs/core/masking/masking.model.js +3 -0
  62. package/dist/cjs/core/masking/masking.model.js.map +1 -0
  63. package/dist/cjs/core/masking/masking.types.d.ts +1 -0
  64. package/dist/cjs/core/masking/masking.types.js +3 -0
  65. package/dist/cjs/core/masking/masking.types.js.map +1 -0
  66. package/dist/cjs/core/shadow/shadow.types.d.ts +1 -0
  67. package/dist/cjs/core/shadow/shadow.types.js +3 -0
  68. package/dist/cjs/core/shadow/shadow.types.js.map +1 -0
  69. package/dist/cjs/core/theme/theme.context.d.ts +4 -0
  70. package/dist/cjs/core/theme/theme.context.js +12 -0
  71. package/dist/cjs/core/theme/theme.context.js.map +1 -0
  72. package/dist/cjs/core/theme/theme.hook.d.ts +2 -0
  73. package/dist/cjs/core/theme/theme.hook.js +19 -0
  74. package/dist/cjs/core/theme/theme.hook.js.map +1 -0
  75. package/dist/cjs/core/theme/theme.model.d.ts +10 -0
  76. package/dist/cjs/core/theme/theme.model.js +3 -0
  77. package/dist/cjs/core/theme/theme.model.js.map +1 -0
  78. package/dist/cjs/core/theme/theme.provider.d.ts +9 -0
  79. package/dist/cjs/core/theme/theme.provider.js +80 -0
  80. package/dist/cjs/core/theme/theme.provider.js.map +1 -0
  81. package/dist/cjs/core/theme/theme.records.d.ts +3 -0
  82. package/dist/cjs/core/theme/theme.records.js +12 -0
  83. package/dist/cjs/core/theme/theme.records.js.map +1 -0
  84. package/dist/cjs/core/theme/theme.types.d.ts +1 -0
  85. package/dist/cjs/core/theme/theme.types.js +3 -0
  86. package/dist/cjs/core/theme/theme.types.js.map +1 -0
  87. package/dist/cjs/core/theme/themes/dark.theme.d.ts +2 -0
  88. package/dist/cjs/core/theme/themes/dark.theme.js +9 -0
  89. package/dist/cjs/core/theme/themes/dark.theme.js.map +1 -0
  90. package/dist/cjs/core/theme/themes/light.theme.d.ts +2 -0
  91. package/dist/cjs/core/theme/themes/light.theme.js +15 -0
  92. package/dist/cjs/core/theme/themes/light.theme.js.map +1 -0
  93. package/dist/cjs/core/typography/typography.types.d.ts +5 -0
  94. package/dist/cjs/core/typography/typography.types.js +3 -0
  95. package/dist/cjs/core/typography/typography.types.js.map +1 -0
  96. package/dist/cjs/index.d.ts +1 -0
  97. package/dist/cjs/index.js +18 -0
  98. package/dist/cjs/index.js.map +1 -0
  99. package/dist/cjs/stories/Button.d.ts +27 -0
  100. package/dist/cjs/stories/Button.js +29 -0
  101. package/dist/cjs/stories/Button.js.map +1 -0
  102. package/dist/cjs/stories/Header.d.ts +12 -0
  103. package/dist/cjs/stories/Header.js +28 -0
  104. package/dist/cjs/stories/Header.js.map +1 -0
  105. package/dist/cjs/stories/Page.d.ts +3 -0
  106. package/dist/cjs/stories/Page.js +45 -0
  107. package/dist/cjs/stories/Page.js.map +1 -0
  108. package/dist/esm/components/button/button.component.d.ts +6 -0
  109. package/dist/esm/components/button/button.component.js +10 -0
  110. package/dist/esm/components/button/button.component.js.map +1 -0
  111. package/dist/esm/components/card/card.component.d.ts +5 -0
  112. package/dist/esm/components/card/card.component.js +5 -0
  113. package/dist/esm/components/card/card.component.js.map +1 -0
  114. package/dist/esm/core/backgrounds/background.model.d.ts +9 -0
  115. package/dist/esm/core/backgrounds/background.model.js +2 -0
  116. package/dist/esm/core/backgrounds/background.model.js.map +1 -0
  117. package/dist/esm/core/backgrounds/background.types.d.ts +1 -0
  118. package/dist/esm/core/backgrounds/background.types.js +2 -0
  119. package/dist/esm/core/backgrounds/background.types.js.map +1 -0
  120. package/dist/esm/core/backgrounds/index.d.ts +2 -0
  121. package/dist/esm/core/backgrounds/index.js +3 -0
  122. package/dist/esm/core/backgrounds/index.js.map +1 -0
  123. package/dist/esm/core/border/border.types.d.ts +1 -0
  124. package/dist/esm/core/border/border.types.js +2 -0
  125. package/dist/esm/core/border/border.types.js.map +1 -0
  126. package/dist/esm/core/color/color.helper.d.ts +4 -0
  127. package/dist/esm/core/color/color.helper.js +12 -0
  128. package/dist/esm/core/color/color.helper.js.map +1 -0
  129. package/dist/esm/core/color/color.model.d.ts +22 -0
  130. package/dist/esm/core/color/color.model.js +2 -0
  131. package/dist/esm/core/color/color.model.js.map +1 -0
  132. package/dist/esm/core/color/color.types.d.ts +11 -0
  133. package/dist/esm/core/color/color.types.js +32 -0
  134. package/dist/esm/core/color/color.types.js.map +1 -0
  135. package/dist/esm/core/container/container.component.d.ts +5 -0
  136. package/dist/esm/core/container/container.component.js +5 -0
  137. package/dist/esm/core/container/container.component.js.map +1 -0
  138. package/dist/esm/core/container/container.model.d.ts +40 -0
  139. package/dist/esm/core/container/container.model.js +2 -0
  140. package/dist/esm/core/container/container.model.js.map +1 -0
  141. package/dist/esm/core/core.types.d.ts +9 -0
  142. package/dist/esm/core/core.types.js +2 -0
  143. package/dist/esm/core/core.types.js.map +1 -0
  144. package/dist/esm/core/gradients/gradiennt.helper.d.ts +2 -0
  145. package/dist/esm/core/gradients/gradiennt.helper.js +4 -0
  146. package/dist/esm/core/gradients/gradiennt.helper.js.map +1 -0
  147. package/dist/esm/core/gradients/gradient.model.d.ts +6 -0
  148. package/dist/esm/core/gradients/gradient.model.js +2 -0
  149. package/dist/esm/core/gradients/gradient.model.js.map +1 -0
  150. package/dist/esm/core/gradients/gradient.types.d.ts +0 -0
  151. package/dist/esm/core/gradients/gradient.types.js +2 -0
  152. package/dist/esm/core/gradients/gradient.types.js.map +1 -0
  153. package/dist/esm/core/iconography/icon.model.d.ts +7 -0
  154. package/dist/esm/core/iconography/icon.model.js +2 -0
  155. package/dist/esm/core/iconography/icon.model.js.map +1 -0
  156. package/dist/esm/core/iconography/icon.types.d.ts +7 -0
  157. package/dist/esm/core/iconography/icon.types.js +2 -0
  158. package/dist/esm/core/iconography/icon.types.js.map +1 -0
  159. package/dist/esm/core/index.d.ts +1 -0
  160. package/dist/esm/core/index.js +2 -0
  161. package/dist/esm/core/index.js.map +1 -0
  162. package/dist/esm/core/layout/layout.types.d.ts +3 -0
  163. package/dist/esm/core/layout/layout.types.js +2 -0
  164. package/dist/esm/core/layout/layout.types.js.map +1 -0
  165. package/dist/esm/core/masking/masking.model.d.ts +6 -0
  166. package/dist/esm/core/masking/masking.model.js +2 -0
  167. package/dist/esm/core/masking/masking.model.js.map +1 -0
  168. package/dist/esm/core/masking/masking.types.d.ts +1 -0
  169. package/dist/esm/core/masking/masking.types.js +2 -0
  170. package/dist/esm/core/masking/masking.types.js.map +1 -0
  171. package/dist/esm/core/shadow/shadow.types.d.ts +1 -0
  172. package/dist/esm/core/shadow/shadow.types.js +2 -0
  173. package/dist/esm/core/shadow/shadow.types.js.map +1 -0
  174. package/dist/esm/core/theme/theme.context.d.ts +4 -0
  175. package/dist/esm/core/theme/theme.context.js +7 -0
  176. package/dist/esm/core/theme/theme.context.js.map +1 -0
  177. package/dist/esm/core/theme/theme.hook.d.ts +2 -0
  178. package/dist/esm/core/theme/theme.hook.js +13 -0
  179. package/dist/esm/core/theme/theme.hook.js.map +1 -0
  180. package/dist/esm/core/theme/theme.model.d.ts +10 -0
  181. package/dist/esm/core/theme/theme.model.js +2 -0
  182. package/dist/esm/core/theme/theme.model.js.map +1 -0
  183. package/dist/esm/core/theme/theme.provider.d.ts +9 -0
  184. package/dist/esm/core/theme/theme.provider.js +50 -0
  185. package/dist/esm/core/theme/theme.provider.js.map +1 -0
  186. package/dist/esm/core/theme/theme.records.d.ts +3 -0
  187. package/dist/esm/core/theme/theme.records.js +9 -0
  188. package/dist/esm/core/theme/theme.records.js.map +1 -0
  189. package/dist/esm/core/theme/theme.types.d.ts +1 -0
  190. package/dist/esm/core/theme/theme.types.js +2 -0
  191. package/dist/esm/core/theme/theme.types.js.map +1 -0
  192. package/dist/esm/core/theme/themes/dark.theme.d.ts +2 -0
  193. package/dist/esm/core/theme/themes/dark.theme.js +6 -0
  194. package/dist/esm/core/theme/themes/dark.theme.js.map +1 -0
  195. package/dist/esm/core/theme/themes/light.theme.d.ts +2 -0
  196. package/dist/esm/core/theme/themes/light.theme.js +12 -0
  197. package/dist/esm/core/theme/themes/light.theme.js.map +1 -0
  198. package/dist/esm/core/typography/typography.types.d.ts +5 -0
  199. package/dist/esm/core/typography/typography.types.js +2 -0
  200. package/dist/esm/core/typography/typography.types.js.map +1 -0
  201. package/dist/esm/index.d.ts +1 -0
  202. package/dist/esm/index.js +2 -0
  203. package/dist/esm/index.js.map +1 -0
  204. package/dist/esm/stories/Button.d.ts +27 -0
  205. package/dist/esm/stories/Button.js +22 -0
  206. package/dist/esm/stories/Button.js.map +1 -0
  207. package/dist/esm/stories/Header.d.ts +12 -0
  208. package/dist/esm/stories/Header.js +21 -0
  209. package/dist/esm/stories/Header.js.map +1 -0
  210. package/dist/esm/stories/Page.d.ts +3 -0
  211. package/dist/esm/stories/Page.js +38 -0
  212. package/dist/esm/stories/Page.js.map +1 -0
  213. package/package.json +56 -0
@@ -0,0 +1,2 @@
1
+ export * from './background.model';
2
+ export * from './background.types';
@@ -0,0 +1,3 @@
1
+ export * from './background.model';
2
+ export * from './background.types';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/core/backgrounds/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1 @@
1
+ export declare type BorderWidth = 'thick' | 'default' | 'thin' | 'none';
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=border.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"border.types.js","sourceRoot":"","sources":["../../../../src/core/border/border.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { IColor } from './color.model';
2
+ import { colorRoles } from './color.types';
3
+ export declare function hslColor(c: IColor): string;
4
+ export declare function roleColor(r: colorRoles): string;
@@ -0,0 +1,12 @@
1
+ import { roleHues } from './color.types';
2
+ export function hslColor(c) {
3
+ return `hsl(${c.hue}, ${c.saturation}, ${c.lightness}, ${c.alpha})`;
4
+ }
5
+ export function roleColor(r) {
6
+ const hue = roleHues[r].default;
7
+ const role = r;
8
+ const alpha = 1;
9
+ const category = 'jewel';
10
+ return hslColor({ role, category, hue, alpha });
11
+ }
12
+ //# sourceMappingURL=color.helper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"color.helper.js","sourceRoot":"","sources":["../../../../src/core/color/color.helper.ts"],"names":[],"mappings":"AACA,OAAO,EAA+B,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEtE,MAAM,UAAU,QAAQ,CAAC,CAAS;IAChC,OAAO,OAAO,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,UAAU,KAAK,CAAC,CAAC,SAAS,KAAK,CAAC,CAAC,KAAK,GAAG,CAAC;AACtE,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,CAAa;IAErC,MAAM,GAAG,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;IAChC,MAAM,IAAI,GAAe,CAAC,CAAC;IAC3B,MAAM,KAAK,GAAG,CAAC,CAAC;IAChB,MAAM,QAAQ,GAAoB,OAAO,CAAC;IAE1C,OAAO,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,CAAC;AAClD,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { colorCategories, colorRoles, colorSchemes, colorStyles } from './color.types';
2
+ export interface IColor {
3
+ scheme?: colorSchemes;
4
+ style?: colorStyles;
5
+ role?: colorRoles;
6
+ category?: colorCategories;
7
+ GradientPosition?: IGradientPosition;
8
+ saturationRange?: IRange;
9
+ brightnessRangeMap?: IRange;
10
+ hue: number | undefined;
11
+ saturation?: number;
12
+ lightness?: number;
13
+ alpha: number;
14
+ }
15
+ export interface IGradientPosition {
16
+ value: string;
17
+ }
18
+ export interface IRange {
19
+ low: number;
20
+ high: number;
21
+ default?: number;
22
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=color.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"color.model.js","sourceRoot":"","sources":["../../../../src/core/color/color.model.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ import { IRange } from './color.model';
2
+ export declare type colorStyles = 'solid' | 'transparent' | 'gradient';
3
+ export declare type colorSchemes = 'monochromatic' | 'analogous' | 'complimentary' | 'splitComplimentary' | 'triadic';
4
+ export declare type colorCategories = 'jewel' | 'pastel' | 'earth' | 'neutral' | 'florescent' | 'shades';
5
+ export declare const saturationRanges: Record<colorCategories, IRange>;
6
+ export declare const lightnessRanges: Record<colorCategories, IRange>;
7
+ export declare type utilColorRoles = 'warn' | 'alert' | 'success' | 'info';
8
+ export declare type colorRoles = 'primary' | 'secondary' | 'tertiary' | 'inverse' | 'ghost';
9
+ export declare const roleHues: Record<colorRoles, IRange>;
10
+ export declare const utilHues: Record<utilColorRoles, IRange>;
11
+ export declare type ColorToken = 'primary';
@@ -0,0 +1,32 @@
1
+ // https://designerup.co/blog/ui-design-choosing-color-palettes/
2
+ // https://designerup.co/blog/practical-guide-to-perfect-ui-color-palettes/
3
+ export const saturationRanges = {
4
+ jewel: { low: 73, high: 83 },
5
+ pastel: { low: 14, high: 21 },
6
+ earth: { low: 36, high: 41 },
7
+ neutral: { low: 1, high: 10 },
8
+ florescent: { low: 63, high: 100 },
9
+ shades: { low: 0, high: 0 },
10
+ };
11
+ export const lightnessRanges = {
12
+ jewel: { low: 56, high: 76 },
13
+ pastel: { low: 89, high: 96 },
14
+ earth: { low: 36, high: 77 },
15
+ neutral: { low: 70, high: 99 },
16
+ florescent: { low: 82, high: 100 },
17
+ shades: { low: 0, high: 100 }
18
+ };
19
+ export const roleHues = {
20
+ primary: { low: 73, high: 83, default: 0 },
21
+ secondary: { low: 14, high: 21, default: 0 },
22
+ tertiary: { low: 36, high: 41, default: 0 },
23
+ inverse: { low: 63, high: 100, default: 0 },
24
+ ghost: { low: 0, high: 0, default: 0 },
25
+ };
26
+ export const utilHues = {
27
+ warn: { low: 320, high: 20, default: 0 },
28
+ alert: { low: 40, high: 70, default: 60 },
29
+ success: { low: 90, high: 150, default: 120 },
30
+ info: { low: 200, high: 260, default: 240 }, // blue
31
+ };
32
+ //# sourceMappingURL=color.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"color.types.js","sourceRoot":"","sources":["../../../../src/core/color/color.types.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,2EAA2E;AAsB3E,MAAM,CAAC,MAAM,gBAAgB,GAAoC;IAC/D,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;IAC5B,MAAM,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;IAC7B,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;IAC5B,OAAO,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;IAC7B,UAAU,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE;IAClC,MAAM,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE;CAC5B,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAoC;IAC9D,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;IAC5B,MAAM,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;IAC7B,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;IAC5B,OAAO,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;IAC9B,UAAU,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE;IAClC,MAAM,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE;CAC9B,CAAC;AAqBF,MAAM,CAAC,MAAM,QAAQ,GAA+B;IAClD,OAAO,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE;IAC1C,SAAS,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE;IAC5C,QAAQ,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE;IAC3C,OAAO,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC,EAAE;IAC3C,KAAK,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE;CACvC,CAAA;AAED,MAAM,CAAC,MAAM,QAAQ,GAAmC;IACtD,IAAI,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE;IACxC,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IACzC,OAAO,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE;IAC7C,IAAI,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,EAAE,OAAO;CACrD,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { ReactNode } from 'react';
2
+ export interface ContainerProps {
3
+ children: ReactNode;
4
+ }
5
+ export default function Container({ children }: ContainerProps): JSX.Element;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export default function Container({ children }) {
3
+ return (React.createElement("div", null, children));
4
+ }
5
+ //# sourceMappingURL=container.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"container.component.js","sourceRoot":"","sources":["../../../../src/core/container/container.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAMzC,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAAE,QAAQ,EAAkB;IAE5D,OAAO,CACL,iCACG,QAAQ,CACL,CACP,CAAA;AACH,CAAC"}
@@ -0,0 +1,40 @@
1
+ import { BackgroundType } from '../backgrounds/background.types';
2
+ import { BorderWidth } from '../border/border.types';
3
+ import { ColorToken } from '../color/color.types';
4
+ import { Apply, HorizontalAlign, RadiusApply, Size } from '../core.types';
5
+ import { ShadowStyle } from '../shadow/shadow.types';
6
+ export interface ContainerProps {
7
+ maxWidth?: number;
8
+ align?: HorizontalAlign;
9
+ backgroundType?: BackgroundType;
10
+ shadowStyle?: ShadowStyle;
11
+ backgroundColor?: ColorToken;
12
+ textColor?: ColorToken;
13
+ blur?: {
14
+ amount?: number;
15
+ };
16
+ border?: {
17
+ apply?: Apply;
18
+ applyAsSeparator?: boolean;
19
+ color?: ColorToken;
20
+ thickness?: BorderWidth;
21
+ };
22
+ radius?: {
23
+ size?: Size;
24
+ apply?: RadiusApply;
25
+ };
26
+ gradient?: {
27
+ degree?: number;
28
+ colors?: string[];
29
+ };
30
+ imageConfig?: {
31
+ src?: string;
32
+ };
33
+ margin?: {
34
+ horizontal?: Record<Size, number>;
35
+ bottom?: Record<Size, number>;
36
+ top?: Record<Size, number>;
37
+ };
38
+ Spacings?: Record<Size, number>;
39
+ TopSpacings?: Record<Size, number>;
40
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=container.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"container.model.js","sourceRoot":"","sources":["../../../../src/core/container/container.model.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ export declare type Role = 'primary' | 'secondary' | 'tertiary' | 'ghost' | 'error' | 'warn' | 'link';
2
+ export declare type SupportRole = 'info' | 'warn' | 'success' | 'error';
3
+ export declare type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
4
+ export declare type HorizontalBinary = 'left' | 'right';
5
+ export declare type HorizontalAlign = HorizontalBinary | 'center';
6
+ export declare type VerticalBinary = 'top' | 'bottom';
7
+ export declare type VerticalAlign = VerticalBinary | 'middle';
8
+ export declare type Apply = HorizontalBinary | VerticalBinary | 'vertical' | 'horizontal' | 'all';
9
+ export declare type RadiusApply = 'left' | 'right' | 'top' | 'bottom' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight' | 'all' | 'none';
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=core.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"core.types.js","sourceRoot":"","sources":["../../../src/core/core.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import { IGradient } from './gradient.model';
2
+ export declare function gradient(config: IGradient): string;
@@ -0,0 +1,4 @@
1
+ export function gradient(config) {
2
+ return ``;
3
+ }
4
+ //# sourceMappingURL=gradiennt.helper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gradiennt.helper.js","sourceRoot":"","sources":["../../../../src/core/gradients/gradiennt.helper.ts"],"names":[],"mappings":"AAIA,MAAM,UAAU,QAAQ,CAAC,MAAiB;IACxC,OAAO,EAAE,CAAC;AACZ,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { IColor } from '../color/color.model';
2
+ export interface IGradient {
3
+ defaultColor: IColor;
4
+ degee: number;
5
+ colors: Record<string, IColor>;
6
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=gradient.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gradient.model.js","sourceRoot":"","sources":["../../../../src/core/gradients/gradient.model.ts"],"names":[],"mappings":""}
File without changes
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=gradient.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gradient.types.js","sourceRoot":"","sources":["../../../../src/core/gradients/gradient.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import { IColor } from '../color/color.model';
2
+ import { IMasking } from '../masking/masking.model';
3
+ export interface Icon {
4
+ background: IColor;
5
+ foreground: IColor;
6
+ mask: IMasking;
7
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=icon.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon.model.js","sourceRoot":"","sources":["../../../../src/core/iconography/icon.model.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ export declare type color = 'white' | 'black' | 'red' | 'blue' | 'green';
2
+ export declare type style = 'solid' | 'outline' | 'gradient';
3
+ export declare type display = 'logo' | 'alert' | 'warn' | 'disabled' | 'trash' | 'user' | 'back' | 'next' | 'unlock' | 'view' | 'hide';
4
+ export declare type actionable = 'add' | 'create' | 'copy' | 'edit' | 'disable' | 'save' | 'pin' | 'fav' | 'tag' | 'update' | 'archive' | 'delete' | 'lock' | 'unlock' | 'view' | 'hide';
5
+ export declare type behavior = 'open' | 'expand' | 'collapse';
6
+ export declare type messaging = 'alert' | 'info' | 'success' | 'warn' | 'warning';
7
+ export declare type usage = 'logo' | 'alert' | 'chat' | 'down' | 'favorite' | 'info' | 'location' | 'lock' | 'message' | 'profile' | 'question' | 'remove' | 'schedule' | 'search' | 'send' | 'settings' | 'share' | 'unlock' | 'up';
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=icon.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon.types.js","sourceRoot":"","sources":["../../../../src/core/iconography/icon.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export * from './backgrounds';
@@ -0,0 +1,2 @@
1
+ export * from './backgrounds';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Size } from '../core.types';
2
+ export declare type elements = 'margin' | 'border' | 'padding';
3
+ export declare const spacings: Record<Size, number>;
@@ -0,0 +1,2 @@
1
+ export const spacings = { xs: 5, sm: 8, md: 13, lg: 21, xl: 34 };
2
+ //# sourceMappingURL=layout.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout.types.js","sourceRoot":"","sources":["../../../../src/core/layout/layout.types.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,QAAQ,GAAyB,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { IColor } from '../color/color.model';
2
+ import { MaskingShape } from './masking.types';
3
+ export interface IMasking {
4
+ background: IColor;
5
+ shape: MaskingShape;
6
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=masking.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"masking.model.js","sourceRoot":"","sources":["../../../../src/core/masking/masking.model.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export declare type MaskingShape = 'square' | 'circle' | 'squircle' | 'rounded';
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=masking.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"masking.types.js","sourceRoot":"","sources":["../../../../src/core/masking/masking.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export declare type ShadowStyle = 'Flat' | 'Raised' | 'Focussed' | 'Pressed' | 'Modal' | 'Navigation' | 'Drawer';
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=shadow.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shadow.types.js","sourceRoot":"","sources":["../../../../src/core/shadow/shadow.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ThemeProps } from './theme.model';
3
+ declare const ThemeContext: React.Context<ThemeProps>;
4
+ export default ThemeContext;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ const ThemeContext = React.createContext({});
3
+ if (process.env.NODE_ENV !== 'production') {
4
+ ThemeContext.displayName = 'ThemeContext';
5
+ }
6
+ export default ThemeContext;
7
+ //# sourceMappingURL=theme.context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.context.js","sourceRoot":"","sources":["../../../../src/core/theme/theme.context.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,YAAY,GAAG,KAAK,CAAC,aAAa,CAAa,EAAE,CAAC,CAAC;AAEzD,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,EAAE;IACzC,YAAY,CAAC,WAAW,GAAG,cAAc,CAAC;CAC3C;AAED,eAAe,YAAY,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { ThemeModel } from './theme.model';
2
+ export default function useTheme(): ThemeModel;
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import ThemeContext from './theme.context';
3
+ import { LightTheme } from './themes/light.theme';
4
+ export default function useTheme() {
5
+ const themeProps = React.useContext(ThemeContext);
6
+ const theme = themeProps && themeProps.themes && themeProps.themeId && themeProps.themes[themeProps.themeId];
7
+ if (process.env.NODE_ENV !== 'production') {
8
+ // eslint-disable-next-line react-hooks/rules-of-hooks
9
+ React.useDebugValue(theme);
10
+ }
11
+ return theme || LightTheme;
12
+ }
13
+ //# sourceMappingURL=theme.hook.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.hook.js","sourceRoot":"","sources":["../../../../src/core/theme/theme.hook.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAE3C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,MAAM,CAAC,OAAO,UAAU,QAAQ;IAE9B,MAAM,UAAU,GAAG,KAAK,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;IAElD,MAAM,KAAK,GAAG,UAAU,IAAI,UAAU,CAAC,MAAM,IAAI,UAAU,CAAC,OAAO,IAAI,UAAU,CAAC,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;IAE7G,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,EAAE;QACzC,sDAAsD;QACtD,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;KAC5B;IAED,OAAO,KAAK,IAAI,UAAU,CAAC;AAC7B,CAAC"}
@@ -0,0 +1,10 @@
1
+ export interface ThemeProps {
2
+ themeId?: string;
3
+ themes?: Record<string, ThemeModel>;
4
+ setTheme?: any;
5
+ }
6
+ export interface ThemeModel {
7
+ name: string;
8
+ id: string;
9
+ colors: Record<string, string>;
10
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=theme.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.model.js","sourceRoot":"","sources":["../../../../src/core/theme/theme.model.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { ThemeModel } from './theme.model';
3
+ interface ThemeProviderProps {
4
+ themeId: string;
5
+ themes: Record<string, ThemeModel>;
6
+ children?: React.ReactChild;
7
+ }
8
+ export declare const ThemeProvider: ({ children, themeId, themes }: ThemeProviderProps) => JSX.Element;
9
+ export {};
@@ -0,0 +1,50 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import React, { useState, useEffect } from 'react';
11
+ import { DefaultThemeId } from './theme.records';
12
+ import ThemeContext from './theme.context';
13
+ const STORAGE_KEY = 'THEME_ID';
14
+ export const ThemeProvider = ({ children, themeId, themes }) => {
15
+ const [_themeId, setThemeId] = useState(themeId);
16
+ useEffect(() => {
17
+ (() => __awaiter(void 0, void 0, void 0, function* () {
18
+ const id = localStorage.getItem(STORAGE_KEY);
19
+ if (id) {
20
+ setThemeId(id);
21
+ }
22
+ else {
23
+ setThemeId(DefaultThemeId);
24
+ }
25
+ }))();
26
+ }, []);
27
+ return (React.createElement(ThemeContext.Provider, { value: { themeId, themes } }, _themeId ? children : null));
28
+ };
29
+ /*export function withTheme(Component: ({children, theme, themes }: (any & ThemeProps)) => JSX.Element) {
30
+
31
+ return (props: JSX.IntrinsicAttributes) => {
32
+ const { themeId, setThemeId } = useContext(ThemeContext);
33
+
34
+ const getTheme = (themeId: string) => themes[themeId];
35
+ const setTheme = (themeId: string) => {
36
+ localStorage.setItem(STORAGE_KEY, themeId);
37
+ setThemeId(themeId);
38
+ };
39
+
40
+ return (
41
+ <Component
42
+ {...props}
43
+ themes={Themes}
44
+ theme={getTheme(themeId)}
45
+ setTheme={setTheme}
46
+ />
47
+ );
48
+ };
49
+ }*/
50
+ //# sourceMappingURL=theme.provider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.provider.js","sourceRoot":"","sources":["../../../../src/core/theme/theme.provider.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAEhD,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAE3C,MAAM,WAAW,GAAG,UAAU,CAAC;AAQ/B,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAsB,EAAE,EAAE;IAEjF,MAAM,CAAC,QAAQ,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAS,OAAO,CAAC,CAAC;IAEzD,SAAS,CAAC,GAAG,EAAE;QACb,CAAC,GAAS,EAAE;YACV,MAAM,EAAE,GAAG,YAAY,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;YAC7C,IAAI,EAAE,EAAE;gBACN,UAAU,CAAC,EAAE,CAAC,CAAC;aAChB;iBAAM;gBACL,UAAU,CAAC,cAAc,CAAC,CAAC;aAC5B;QACH,CAAC,CAAA,CAAC,EAAE,CAAC;IACP,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACL,oBAAC,YAAY,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAC,OAAO,EAAE,MAAM,EAAC,IAC5C,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CACL,CACzB,CAAC;AACJ,CAAC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG"}
@@ -0,0 +1,3 @@
1
+ import { ThemeModel } from './theme.model';
2
+ export declare const BuiltInThemes: Record<string, ThemeModel>;
3
+ export declare const DefaultThemeId: string;
@@ -0,0 +1,9 @@
1
+ import { DarkTheme } from './themes/dark.theme';
2
+ import { LightTheme } from './themes/light.theme';
3
+ export const BuiltInThemes = {
4
+ LightTheme,
5
+ DarkTheme
6
+ };
7
+ // First Theme is default.
8
+ export const DefaultThemeId = Object.keys(BuiltInThemes)[0];
9
+ //# sourceMappingURL=theme.records.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.records.js","sourceRoot":"","sources":["../../../../src/core/theme/theme.records.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,MAAM,CAAC,MAAM,aAAa,GAA+B;IACvD,UAAU;IACV,SAAS;CACV,CAAA;AAED,0BAA0B;AAC1B,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export declare type themes = 'uni' | 'carbon' | 'material' | 'bootstrap';
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=theme.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.types.js","sourceRoot":"","sources":["../../../../src/core/theme/theme.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import { ThemeModel } from '../theme.model';
2
+ export declare const DarkTheme: ThemeModel;
@@ -0,0 +1,6 @@
1
+ export const DarkTheme = {
2
+ id: 'DarkTheme',
3
+ name: 'Dark Theme',
4
+ colors: {}
5
+ };
6
+ //# sourceMappingURL=dark.theme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dark.theme.js","sourceRoot":"","sources":["../../../../../src/core/theme/themes/dark.theme.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,SAAS,GAAe;IACnC,EAAE,EAAE,WAAW;IACf,IAAI,EAAE,YAAY;IAClB,MAAM,EAAE,EAEP;CACF,CAAA"}
@@ -0,0 +1,2 @@
1
+ import { ThemeModel } from '../theme.model';
2
+ export declare const LightTheme: ThemeModel;
@@ -0,0 +1,12 @@
1
+ export const LightTheme = {
2
+ id: 'LightTheme',
3
+ name: 'Light Theme',
4
+ colors: {
5
+ primary: '#35A7FF',
6
+ secondary: '#38618C',
7
+ error: '#FFE74C',
8
+ warn: '#FF5964',
9
+ background: '#FFFFFF'
10
+ }
11
+ };
12
+ //# sourceMappingURL=light.theme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"light.theme.js","sourceRoot":"","sources":["../../../../../src/core/theme/themes/light.theme.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,UAAU,GAAe;IACpC,EAAE,EAAE,YAAY;IAChB,IAAI,EAAE,aAAa;IACnB,MAAM,EAAE;QACN,OAAO,EAAE,SAAS;QAClB,SAAS,EAAE,SAAS;QACpB,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,SAAS;QACf,UAAU,EAAE,SAAS;KACtB;CACF,CAAA"}
@@ -0,0 +1,5 @@
1
+ export declare type classes = 'sanserif' | 'serif' | 'slab' | 'script' | 'display' | 'monospace';
2
+ export declare type families = 'Open-Sans' | 'Times-New-Roman' | 'Noto-Serif-Display';
3
+ export declare type styles = 'thin' | 'light' | 'regular' | 'medium' | 'bold' | 'semi-bold' | 'black';
4
+ export declare type placement = 'overline' | 'title' | 'underline' | 'body' | 'label' | 'note' | 'footer';
5
+ export declare type alignment = 'left' | 'right' | 'center';
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=typography.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typography.types.js","sourceRoot":"","sources":["../../../../src/core/typography/typography.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export * from './core';
@@ -0,0 +1,2 @@
1
+ export * from './core';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
@@ -0,0 +1,27 @@
1
+ import './button.css';
2
+ export interface ButtonProps {
3
+ /**
4
+ * Is this the principal call to action on the page?
5
+ */
6
+ primary?: boolean;
7
+ /**
8
+ * What background color to use
9
+ */
10
+ backgroundColor?: string;
11
+ /**
12
+ * How large should the button be?
13
+ */
14
+ size?: 'small' | 'medium' | 'large';
15
+ /**
16
+ * Button contents
17
+ */
18
+ label: string;
19
+ /**
20
+ * Optional click handler
21
+ */
22
+ onClick?: () => void;
23
+ }
24
+ /**
25
+ * Primary UI component for user interaction
26
+ */
27
+ export declare const Button: ({ primary, size, backgroundColor, label, ...props }: ButtonProps) => JSX.Element;