@bccampus/ui-components 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 (68) hide show
  1. package/README.md +69 -0
  2. package/components.json +22 -0
  3. package/dist/@bccampus-ui-components-0.1.0.tgz +0 -0
  4. package/dist/button.d.ts +16 -0
  5. package/dist/button.js +36 -0
  6. package/dist/caption.d.ts +13 -0
  7. package/dist/caption.js +27 -0
  8. package/dist/card.d.ts +40 -0
  9. package/dist/card.js +130 -0
  10. package/dist/horizontal-list.d.ts +9 -0
  11. package/dist/horizontal-list.js +145 -0
  12. package/dist/icon-generator.d.ts +50 -0
  13. package/dist/icon-generator.js +270 -0
  14. package/dist/index-DcqAdr0d.js +102 -0
  15. package/dist/jsx-runtime-BzflLqGi.js +282 -0
  16. package/dist/masked-image-generator.d.ts +57 -0
  17. package/dist/masked-image-generator.js +29 -0
  18. package/dist/mockServiceWorker.js +348 -0
  19. package/dist/tag.d.ts +16 -0
  20. package/dist/tag.js +32 -0
  21. package/dist/ui-components.d.ts +132 -0
  22. package/dist/ui-components.js +29 -0
  23. package/dist/utils-CRiPKpXj.js +2743 -0
  24. package/dist/utils.d.ts +5 -0
  25. package/dist/utils.js +4 -0
  26. package/eslint.config.js +31 -0
  27. package/index.html +13 -0
  28. package/package.json +85 -0
  29. package/public/mockServiceWorker.js +348 -0
  30. package/src/App.tsx +14 -0
  31. package/src/assets/icons/icon_01.svg +6 -0
  32. package/src/assets/icons/icon_02.svg +6 -0
  33. package/src/assets/icons/icon_03.svg +6 -0
  34. package/src/assets/icons/icon_04.svg +6 -0
  35. package/src/assets/icons/icon_05.svg +4 -0
  36. package/src/assets/icons/icon_06.svg +4 -0
  37. package/src/assets/images/bg_pattern_01.png +0 -0
  38. package/src/assets/images/bg_pattern_02.png +0 -0
  39. package/src/assets/images/bg_pattern_03.png +0 -0
  40. package/src/assets/images/bg_pattern_04.png +0 -0
  41. package/src/assets/images/image_01.jpg +0 -0
  42. package/src/assets/images/image_02.jpg +0 -0
  43. package/src/assets/images/image_03.webp +0 -0
  44. package/src/assets/images/image_04.png +0 -0
  45. package/src/assets/images/image_05.jpg +0 -0
  46. package/src/components/ui/button.tsx +47 -0
  47. package/src/components/ui/card.tsx +147 -0
  48. package/src/components/ui/horizontal-list.tsx +50 -0
  49. package/src/components/ui/icon-generator/generate-tiles.tsx +243 -0
  50. package/src/components/ui/icon-generator/icon-generator.tsx +51 -0
  51. package/src/components/ui/icon-generator/masked-image-generator.tsx +38 -0
  52. package/src/components/ui/icon-generator/types.ts +53 -0
  53. package/src/components/ui/index.ts +7 -0
  54. package/src/components/ui/tag.tsx +39 -0
  55. package/src/components/ui/typography/caption.tsx +32 -0
  56. package/src/lib/utils.ts +6 -0
  57. package/src/main.tsx +12 -0
  58. package/src/styles/all.css +4 -0
  59. package/src/styles/colors.css +106 -0
  60. package/src/styles/fonts.css +9 -0
  61. package/src/styles/index.css +7 -0
  62. package/src/styles/theme.css +126 -0
  63. package/src/styles/typography.css +479 -0
  64. package/src/vite-env.d.ts +1 -0
  65. package/tsconfig.app.json +38 -0
  66. package/tsconfig.json +19 -0
  67. package/tsconfig.node.json +25 -0
  68. package/vite.config.ts +44 -0
@@ -0,0 +1,4 @@
1
+ @import "./colors.css";
2
+ @import "./fonts.css";
3
+ @import "./theme.css";
4
+ @import "./typography.css";
@@ -0,0 +1,106 @@
1
+
2
+ @theme inline {
3
+ --color-brand-1-50: #e3f2ff;
4
+ --color-brand-1-100: #c6e4fe;
5
+ --color-brand-1-200: #9ed1fe;
6
+ --color-brand-1-300: #48b0fe;
7
+ --color-brand-1-400: #019ff8;
8
+ --color-brand-1-500: #057abf;
9
+ --color-brand-1-600: #035a90;
10
+ --color-brand-1-700: #174467;
11
+ --color-brand-1: #174467;
12
+ --color-brand-1-800: #02395e;
13
+ --color-brand-1-900: #012e4d;
14
+ --color-brand-1-950: #00243d;
15
+
16
+ --color-brand-1-50: oklch(0.96 0.03 245);
17
+ --color-brand-1-100: oklch(0.91 0.05 245);
18
+ --color-brand-1-200: oklch(0.84 0.09 245);
19
+ --color-brand-1-300: oklch(0.73 0.16 245);
20
+ --color-brand-1-400: oklch(0.68 0.2 245);
21
+ --color-brand-1-500: oklch(0.55 0.18 245);
22
+ --color-brand-1-600: oklch(0.45 0.15 245);
23
+ --color-brand-1-700: oklch(0.3741 0.0774 245);
24
+ --color-brand-1: oklch(0.3741 0.0774 245);
25
+ --color-brand-1-800: oklch(0.33 0.11 245);
26
+ --color-brand-1-900: oklch(0.29 0.09 245);
27
+ --color-brand-1-950: oklch(0.25 0.08 245);
28
+
29
+ --color-complement-1-50: #bdfcff;
30
+ --color-complement-1-100: #80cacd;
31
+ --color-complement-1-200: #03e2eb;
32
+ --color-complement-1-300: #0bbcc4;
33
+ --color-complement-1: #00949a;
34
+ --color-complement-1-400: #00949a;
35
+ --color-complement-1-500: #047e83;
36
+ --color-complement-1-600: #046368;
37
+ --color-complement-1-700: #015155;
38
+ --color-complement-1-800: #023d40;
39
+ --color-complement-1-900: #003134;
40
+ --color-complement-1-950: #012628;
41
+
42
+ --color-complement-1-50: oklch(0.95 0.07 200);
43
+ --color-complement-1-100: oklch(0.7918 0.0738 199.06);
44
+ --color-complement-1-200: oklch(0.81 0.18 200);
45
+ --color-complement-1-300: oklch(0.71 0.16 200);
46
+ --color-complement-1-400: oklch(0.6058 0.103 200);
47
+ --color-complement-1: oklch(0.6058 0.103 200);
48
+ --color-complement-1-500: oklch(0.5393 0.0909 200);
49
+ --color-complement-1-600: oklch(0.45 0.1 200);
50
+ --color-complement-1-700: oklch(0.39 0.09 200);
51
+ --color-complement-1-800: oklch(0.32 0.07 200);
52
+ --color-complement-1-900: oklch(0.28 0.06 200);
53
+ --color-complement-1-950: oklch(0.24 0.05 200);
54
+
55
+ --color-complement-2-50: #ffefdb;
56
+ --color-complement-2-100: #ffdcb0;
57
+ --color-complement-2-200: #ffc06b;
58
+ --color-complement-2-300: #fbb040;
59
+ --color-complement-2: #fbb040;
60
+ --color-complement-2-400: #cc8701;
61
+ --color-complement-2-500: #a06906;
62
+ --color-complement-2-600: #7b5004;
63
+ --color-complement-2-700: #664102;
64
+ --color-complement-2-800: #4d3002;
65
+ --color-complement-2-900: #3e2702;
66
+ --color-complement-2-950: #311d00;
67
+
68
+ --color-complement-2-50: oklch(0.96 0.04 73);
69
+ --color-complement-2-100: oklch(0.91 0.09 73);
70
+ --color-complement-2-200: oklch(0.85 0.16 73);
71
+ --color-complement-2-300: oklch(0.8104 0.1499 72.99); /* 1.84/10.78 */
72
+ --color-complement-2: oklch(0.8104 0.1499 72.99);
73
+ --color-complement-2-400: oklch(0.68 0.17 73);
74
+ --color-complement-2-500: oklch(0.57 0.14 73);
75
+ --color-complement-2-600: oklch(0.47 0.11 73);
76
+ --color-complement-2-700: oklch(0.41 0.1 73);
77
+ --color-complement-2-800: oklch(0.34 0.08 73);
78
+ --color-complement-2-900: oklch(0.29 0.07 73);
79
+ --color-complement-2-950: oklch(0.25 0.06 73);
80
+
81
+ --color-complement-3-50: #eaf1fe;
82
+ --color-complement-3-100: #d0e2ff;
83
+ --color-complement-3-200: #afceff;
84
+ --color-complement-3-300: #77abff;
85
+ --color-complement-3-400: #5394ff;
86
+ --color-complement-3-500: #026bfc;
87
+ --color-complement-3-600: #024fbf;
88
+ --color-complement-3: #024fbf;
89
+ --color-complement-3-700: #0143a3;
90
+ --color-complement-3-800: #01317d;
91
+ --color-complement-3-900: #002768;
92
+ --color-complement-3-950: #001e53;
93
+
94
+ --color-complement-3-50: oklch(0.96 0.02 260);
95
+ --color-complement-3-100: oklch(0.91 0.05 260);
96
+ --color-complement-3-200: oklch(0.84 0.08 260);
97
+ --color-complement-3-300: oklch(0.74 0.15 260);
98
+ --color-complement-3-400: oklch(0.67 0.18 260);
99
+ --color-complement-3-500: oklch(0.57 0.25 260);
100
+ --color-complement-3-600: oklch(0.47 0.24 260);
101
+ --color-complement-3: oklch(0.47 0.24 260);
102
+ --color-complement-3-700: oklch(0.42 0.21 260);
103
+ --color-complement-3-800: oklch(0.35 0.18 260);
104
+ --color-complement-3-900: oklch(0.3 0.15 260);
105
+ --color-complement-3-950: oklch(0.26 0.13 260);
106
+ }
@@ -0,0 +1,9 @@
1
+ @import "@fontsource-variable/inter-tight";
2
+ @import "@bcgov/bc-sans/css/BC_Sans.css";
3
+
4
+ @theme inline {
5
+ --font-sans: "BC Sans", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
6
+ "Noto Color Emoji";
7
+ --font-sans-accent: "Inter Tight Variable", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
8
+ "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
9
+ }
@@ -0,0 +1,7 @@
1
+ @import "tailwindcss";
2
+ @import "tw-animate-css";
3
+
4
+ @import "@/styles/colors.css";
5
+ @import "@/styles/fonts.css";
6
+ @import "@/styles/theme.css";
7
+ @import "@/styles/typography.css";
@@ -0,0 +1,126 @@
1
+ @custom-variant dark (&:is(.dark *));
2
+
3
+ @theme inline {
4
+ --radius-sm: calc(var(--radius) - 4px);
5
+ --radius-md: calc(var(--radius) - 2px);
6
+ --radius-lg: var(--radius);
7
+ --radius-xl: calc(var(--radius) + 4px);
8
+ --container-radius: var(--radius);
9
+ --color-background: var(--background);
10
+ --color-foreground: var(--foreground);
11
+ --color-card: var(--card);
12
+ --color-card-foreground: var(--card-foreground);
13
+ --color-popover: var(--popover);
14
+ --color-popover-foreground: var(--popover-foreground);
15
+ --color-primary: var(--primary);
16
+ --color-primary-foreground: var(--primary-foreground);
17
+ --color-secondary: var(--secondary);
18
+ --color-secondary-foreground: var(--secondary-foreground);
19
+ --color-muted: var(--muted);
20
+ --color-muted-foreground: var(--muted-foreground);
21
+ --color-accent: var(--accent);
22
+ --color-accent-foreground: var(--accent-foreground);
23
+ --color-destructive: var(--destructive);
24
+ --color-border: var(--border);
25
+ --color-input: var(--input);
26
+ --color-ring: var(--ring);
27
+ --color-chart-1: var(--chart-1);
28
+ --color-chart-2: var(--chart-2);
29
+ --color-chart-3: var(--chart-3);
30
+ --color-chart-4: var(--chart-4);
31
+ --color-chart-5: var(--chart-5);
32
+ --color-sidebar: var(--sidebar);
33
+ --color-sidebar-foreground: var(--sidebar-foreground);
34
+ --color-sidebar-primary: var(--sidebar-primary);
35
+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
36
+ --color-sidebar-accent: var(--sidebar-accent);
37
+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
38
+ --color-sidebar-border: var(--sidebar-border);
39
+ --color-sidebar-ring: var(--sidebar-ring);
40
+ }
41
+
42
+ :root {
43
+ --radius: 0.625rem;
44
+ --background: oklch(1 0 0);
45
+ --foreground: oklch(0.141 0.005 285.823);
46
+ --card: oklch(1 0 0);
47
+ --card-foreground: oklch(0.3741 0.0774 245.65);
48
+ --popover: oklch(1 0 0);
49
+ --popover-foreground: oklch(0.3741 0.0774 245.65);
50
+ --primary: oklch(0.3741 0.0774 245.65);
51
+ --primary-foreground: oklch(0.985 0 0);
52
+ --secondary: oklch(0.5393 0.0909 200);
53
+ --secondary-foreground: oklch(0.985 0 0);
54
+ --muted: oklch(0.967 0.001 286.375);
55
+ --muted-foreground: oklch(0.552 0.016 285.938);
56
+ --accent: oklch(0.967 0.001 286.375);
57
+ --accent-foreground: oklch(0.3741 0.0774 245.65);
58
+ --destructive: oklch(0.577 0.245 27.325);
59
+ --border: oklch(0.92 0.004 286.32);
60
+ --input: oklch(0.92 0.004 286.32);
61
+ --ring: var(--color-complement-1-200);
62
+ --chart-1: oklch(0.646 0.222 41.116);
63
+ --chart-2: oklch(0.6 0.118 184.704);
64
+ --chart-3: oklch(0.398 0.07 227.392);
65
+ --chart-4: oklch(0.828 0.189 84.429);
66
+ --chart-5: oklch(0.769 0.188 70.08);
67
+ --sidebar: oklch(0.985 0 0);
68
+ --sidebar-foreground: oklch(0.3741 0.0774 245.65);
69
+ --sidebar-primary: oklch(0.3741 0.0774 245.65);
70
+ --sidebar-primary-foreground: oklch(0.985 0 0);
71
+ --sidebar-accent: oklch(0.967 0.001 286.375);
72
+ --sidebar-accent-foreground: oklch(0.3741 0.0774 245.65);
73
+ --sidebar-border: oklch(0.92 0.004 286.32);
74
+ --sidebar-ring: oklch(0.5393 0.0909 199.73);
75
+ }
76
+
77
+ .dark {
78
+ --background: oklch(0.141 0.005 285.823);
79
+ --foreground: oklch(0.985 0 0);
80
+ --card: oklch(0.3741 0.0774 245.65);
81
+ --card-foreground: oklch(0.985 0 0);
82
+ --popover: oklch(0.3741 0.0774 245.65);
83
+ --popover-foreground: oklch(0.985 0 0);
84
+ --primary: oklch(0.985 0 0);
85
+ --primary-foreground: oklch(0.3741 0.0774 245.65);
86
+ --secondary: oklch(0.6058 0.103 199.86);
87
+ --secondary-foreground: oklch(0 0 0);
88
+ --muted: oklch(0.274 0.006 286.033);
89
+ --muted-foreground: oklch(0.705 0.015 286.067);
90
+ --accent: oklch(0.274 0.006 286.033);
91
+ --accent-foreground: oklch(0.985 0 0);
92
+ --destructive: oklch(0.704 0.191 22.216);
93
+ --border: oklch(1 0 0 / 10%);
94
+ --input: oklch(1 0 0 / 15%);
95
+ --ring: var(--color-complement-1-800);
96
+ --chart-1: oklch(0.488 0.243 264.376);
97
+ --chart-2: oklch(0.696 0.17 162.48);
98
+ --chart-3: oklch(0.769 0.188 70.08);
99
+ --chart-4: oklch(0.627 0.265 303.9);
100
+ --chart-5: oklch(0.645 0.246 16.439);
101
+ --sidebar: oklch(0.3741 0.0774 245.65);
102
+ --sidebar-foreground: oklch(0.985 0 0);
103
+ --sidebar-primary: oklch(0.3741 0.0774 245.65);
104
+ --sidebar-primary-foreground: oklch(0.985 0 0);
105
+ --sidebar-accent: oklch(0.274 0.006 286.033);
106
+ --sidebar-accent-foreground: oklch(0.985 0 0);
107
+ --sidebar-border: oklch(1 0 0 / 10%);
108
+ --sidebar-ring: oklch(0.6058 0.103 199.86);
109
+ }
110
+
111
+ @layer base {
112
+ * {
113
+ @apply border-border outline-ring/50;
114
+ }
115
+ body {
116
+ @apply bg-background text-foreground;
117
+ }
118
+ }
119
+
120
+ @utility scrollbar-hidden {
121
+ -ms-overflow-style: none;
122
+ scrollbar-width: none;
123
+ &::-webkit-scrollbar {
124
+ display: none;
125
+ }
126
+ }