@camp2gether/c2g-ui 0.0.7

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 (56) hide show
  1. package/README.md +95 -0
  2. package/charts/index.d.ts +199 -0
  3. package/fesm2022/camp2gether-c2g-ui-beach-animation-ipi3OoKW.mjs +54156 -0
  4. package/fesm2022/camp2gether-c2g-ui-beach-animation-ipi3OoKW.mjs.map +1 -0
  5. package/fesm2022/camp2gether-c2g-ui-camping-animation-DY6XWXyF.mjs +35807 -0
  6. package/fesm2022/camp2gether-c2g-ui-camping-animation-DY6XWXyF.mjs.map +1 -0
  7. package/fesm2022/camp2gether-c2g-ui-car-animation-DnDp7WfG.mjs +45189 -0
  8. package/fesm2022/camp2gether-c2g-ui-car-animation-DnDp7WfG.mjs.map +1 -0
  9. package/fesm2022/camp2gether-c2g-ui-car-driving-landscape-animation-CawNeMKD.mjs +43833 -0
  10. package/fesm2022/camp2gether-c2g-ui-car-driving-landscape-animation-CawNeMKD.mjs.map +1 -0
  11. package/fesm2022/camp2gether-c2g-ui-cat-love-animation-ewC7fZyY.mjs +30789 -0
  12. package/fesm2022/camp2gether-c2g-ui-cat-love-animation-ewC7fZyY.mjs.map +1 -0
  13. package/fesm2022/camp2gether-c2g-ui-charts.mjs +404 -0
  14. package/fesm2022/camp2gether-c2g-ui-charts.mjs.map +1 -0
  15. package/fesm2022/camp2gether-c2g-ui-checklist-animation-DqUkcLqI.mjs +19868 -0
  16. package/fesm2022/camp2gether-c2g-ui-checklist-animation-DqUkcLqI.mjs.map +1 -0
  17. package/fesm2022/camp2gether-c2g-ui-coffee-time-animation-DQilaE0A.mjs +6816 -0
  18. package/fesm2022/camp2gether-c2g-ui-coffee-time-animation-DQilaE0A.mjs.map +1 -0
  19. package/fesm2022/camp2gether-c2g-ui-error-404-pdjg-EHb.mjs +49742 -0
  20. package/fesm2022/camp2gether-c2g-ui-error-404-pdjg-EHb.mjs.map +1 -0
  21. package/fesm2022/camp2gether-c2g-ui-fishing-animation-DwE3IF-V.mjs +38941 -0
  22. package/fesm2022/camp2gether-c2g-ui-fishing-animation-DwE3IF-V.mjs.map +1 -0
  23. package/fesm2022/camp2gether-c2g-ui-layout.mjs +768 -0
  24. package/fesm2022/camp2gether-c2g-ui-layout.mjs.map +1 -0
  25. package/fesm2022/camp2gether-c2g-ui-maps.mjs +223 -0
  26. package/fesm2022/camp2gether-c2g-ui-maps.mjs.map +1 -0
  27. package/fesm2022/camp2gether-c2g-ui-mountain-search-animation-TebM1gS4.mjs +69245 -0
  28. package/fesm2022/camp2gether-c2g-ui-mountain-search-animation-TebM1gS4.mjs.map +1 -0
  29. package/fesm2022/camp2gether-c2g-ui-planning-animation-D8QSsZk6.mjs +28330 -0
  30. package/fesm2022/camp2gether-c2g-ui-planning-animation-D8QSsZk6.mjs.map +1 -0
  31. package/fesm2022/camp2gether-c2g-ui-presets.mjs +2855 -0
  32. package/fesm2022/camp2gether-c2g-ui-presets.mjs.map +1 -0
  33. package/fesm2022/camp2gether-c2g-ui-share-animation-qgqs-k59.mjs +59129 -0
  34. package/fesm2022/camp2gether-c2g-ui-share-animation-qgqs-k59.mjs.map +1 -0
  35. package/fesm2022/camp2gether-c2g-ui-summer-camp-animation-DPzirVNH.mjs +89317 -0
  36. package/fesm2022/camp2gether-c2g-ui-summer-camp-animation-DPzirVNH.mjs.map +1 -0
  37. package/fesm2022/camp2gether-c2g-ui-theme.mjs +479 -0
  38. package/fesm2022/camp2gether-c2g-ui-theme.mjs.map +1 -0
  39. package/fesm2022/camp2gether-c2g-ui-thinking-animation--X3er_pf.mjs +27929 -0
  40. package/fesm2022/camp2gether-c2g-ui-thinking-animation--X3er_pf.mjs.map +1 -0
  41. package/fesm2022/camp2gether-c2g-ui-walking-avocado-animation-CQMU2C9-.mjs +4064 -0
  42. package/fesm2022/camp2gether-c2g-ui-walking-avocado-animation-CQMU2C9-.mjs.map +1 -0
  43. package/fesm2022/camp2gether-c2g-ui-walking-orange-animation-CTJniCsF.mjs +3113 -0
  44. package/fesm2022/camp2gether-c2g-ui-walking-orange-animation-CTJniCsF.mjs.map +1 -0
  45. package/fesm2022/camp2gether-c2g-ui-weather-partly-cloudy-animation-Cnw3W4cS.mjs +1731 -0
  46. package/fesm2022/camp2gether-c2g-ui-weather-partly-cloudy-animation-Cnw3W4cS.mjs.map +1 -0
  47. package/fesm2022/camp2gether-c2g-ui.mjs +2099 -0
  48. package/fesm2022/camp2gether-c2g-ui.mjs.map +1 -0
  49. package/index.d.ts +578 -0
  50. package/layout/index.d.ts +443 -0
  51. package/maps/index.d.ts +62 -0
  52. package/package.json +51 -0
  53. package/presets/index.d.ts +1437 -0
  54. package/src/lib/styles/design-tokens.css +153 -0
  55. package/src/lib/styles/themes.scss +346 -0
  56. package/theme/index.d.ts +63 -0
package/README.md ADDED
@@ -0,0 +1,95 @@
1
+ # C2gUi
2
+
3
+ This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 20.3.0.
4
+
5
+ ## Code scaffolding
6
+
7
+ Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
8
+
9
+ ```bash
10
+ ng generate component component-name
11
+ ```
12
+
13
+ For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
14
+
15
+ ```bash
16
+ ng generate --help
17
+ ```
18
+
19
+ ## Building
20
+
21
+ To build the library, run:
22
+
23
+ ```bash
24
+ ng build c2g-ui
25
+ ```
26
+
27
+ This command will compile your project, and the build artifacts will be placed in the `dist/` directory.
28
+
29
+ ### Publishing the Library
30
+
31
+ Use the repo release flow instead of publishing by hand:
32
+
33
+ ```bash
34
+ npm run release:check
35
+ ```
36
+
37
+ This validates the package contract, enforces Storybook coverage for every component, builds the library, and builds Storybook.
38
+
39
+ To publish the current library package to GitHub Packages, run:
40
+
41
+ ```bash
42
+ GITHUB_TOKEN=<token> npm run release
43
+ ```
44
+
45
+ The release flow publishes `@humbeldore/c2g-ui` from `dist/c2g-ui`.
46
+
47
+ If you need the underlying manual steps, they are:
48
+
49
+ 1. Navigate to the `dist` directory:
50
+ ```bash
51
+ cd dist/c2g-ui
52
+ ```
53
+
54
+ 2. Run the `npm publish` command to publish your library to the npm registry:
55
+ ```bash
56
+ npm publish
57
+ ```
58
+
59
+ ## Running unit tests
60
+
61
+ To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command:
62
+
63
+ ```bash
64
+ ng test
65
+ ```
66
+
67
+ ## Running end-to-end tests
68
+
69
+ For end-to-end (e2e) testing, run:
70
+
71
+ ```bash
72
+ ng e2e
73
+ ```
74
+
75
+ Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
76
+
77
+ ## Storybook Quality Gates
78
+
79
+ All Wave 1 and future components must meet the criteria defined in:
80
+
81
+ **[STORYBOOK_QUALITY_GATES.md](./STORYBOOK_QUALITY_GATES.md)**
82
+
83
+ This document covers:
84
+ - Required story variants per component type
85
+ - Requirement that every component ships with at least one Storybook story before release
86
+ - Angular 20 signal-based API conventions
87
+ - Accessibility (A11y) checklist
88
+ - Visual consistency and design token rules
89
+ - i18n requirements
90
+ - Branch and delivery policy
91
+ - Copy-paste DoD checklist for new component tickets
92
+
93
+ ## Additional Resources
94
+
95
+ For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
@@ -0,0 +1,199 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { Provider } from '@angular/core';
3
+ import { EChartsOption } from 'echarts';
4
+
5
+ declare const C2G_CHARTS_VERSION = "0.1.0";
6
+
7
+ declare const C2G_ECHARTS_THEME_NAME = "c2g";
8
+ declare const C2G_ECHARTS_THEME: {
9
+ color: string[];
10
+ backgroundColor: string;
11
+ textStyle: {
12
+ fontFamily: string;
13
+ color: string;
14
+ };
15
+ title: {
16
+ textStyle: {
17
+ color: string;
18
+ fontFamily: string;
19
+ fontWeight: string;
20
+ };
21
+ subtextStyle: {
22
+ color: string;
23
+ };
24
+ };
25
+ line: {
26
+ itemStyle: {
27
+ borderWidth: number;
28
+ };
29
+ lineStyle: {
30
+ width: number;
31
+ };
32
+ symbolSize: number;
33
+ symbol: string;
34
+ smooth: boolean;
35
+ };
36
+ bar: {
37
+ itemStyle: {
38
+ barBorderRadius: number[];
39
+ };
40
+ };
41
+ categoryAxis: {
42
+ axisLine: {
43
+ lineStyle: {
44
+ color: string;
45
+ };
46
+ };
47
+ axisTick: {
48
+ lineStyle: {
49
+ color: string;
50
+ };
51
+ };
52
+ axisLabel: {
53
+ color: string;
54
+ };
55
+ splitLine: {
56
+ lineStyle: {
57
+ color: string;
58
+ };
59
+ };
60
+ };
61
+ valueAxis: {
62
+ axisLine: {
63
+ lineStyle: {
64
+ color: string;
65
+ };
66
+ };
67
+ axisTick: {
68
+ lineStyle: {
69
+ color: string;
70
+ };
71
+ };
72
+ axisLabel: {
73
+ color: string;
74
+ };
75
+ splitLine: {
76
+ lineStyle: {
77
+ color: string;
78
+ type: string;
79
+ };
80
+ };
81
+ };
82
+ tooltip: {
83
+ backgroundColor: string;
84
+ borderColor: string;
85
+ borderWidth: number;
86
+ textStyle: {
87
+ color: string;
88
+ };
89
+ extraCssText: string;
90
+ };
91
+ legend: {
92
+ textStyle: {
93
+ color: string;
94
+ };
95
+ };
96
+ grid: {
97
+ borderColor: string;
98
+ };
99
+ };
100
+
101
+ declare function provideC2gCharts(): Provider[];
102
+
103
+ interface C2gChartSeries {
104
+ name: string;
105
+ data: number[];
106
+ color?: string;
107
+ smooth?: boolean;
108
+ area?: boolean;
109
+ dashed?: boolean;
110
+ }
111
+ interface C2gYAxis {
112
+ label?: string;
113
+ min?: number;
114
+ max?: number;
115
+ unit?: string;
116
+ }
117
+ interface C2gBarChartData {
118
+ categories: string[];
119
+ series: C2gChartSeries[];
120
+ unit?: string;
121
+ }
122
+ interface C2gTooltipContext {
123
+ categoryIndex: number;
124
+ category: string;
125
+ seriesValues: {
126
+ name: string;
127
+ value: number;
128
+ color: string;
129
+ }[];
130
+ }
131
+ interface C2gLineChartData {
132
+ categories: string[];
133
+ series: C2gChartSeries[];
134
+ yAxis?: C2gYAxis;
135
+ smooth?: boolean;
136
+ area?: boolean;
137
+ zoom?: boolean;
138
+ tooltipWidget?: (ctx: C2gTooltipContext) => string;
139
+ }
140
+
141
+ declare class BarChartComponent {
142
+ readonly theme = "c2g";
143
+ readonly data: _angular_core.InputSignal<C2gBarChartData>;
144
+ readonly title: _angular_core.InputSignal<string>;
145
+ readonly height: _angular_core.InputSignal<string>;
146
+ readonly stacked: _angular_core.InputSignal<boolean>;
147
+ readonly chartOptions: _angular_core.Signal<EChartsOption>;
148
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<BarChartComponent, never>;
149
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<BarChartComponent, "c2g-bar-chart", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "stacked": { "alias": "stacked"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
150
+ }
151
+
152
+ declare class LineChartComponent {
153
+ readonly theme = "c2g";
154
+ readonly data: _angular_core.InputSignal<C2gLineChartData>;
155
+ readonly title: _angular_core.InputSignal<string>;
156
+ readonly height: _angular_core.InputSignal<string>;
157
+ readonly chartOptions: _angular_core.Signal<EChartsOption>;
158
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<LineChartComponent, never>;
159
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<LineChartComponent, "c2g-line-chart", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
160
+ }
161
+
162
+ interface C2gGaugeSegment {
163
+ min: number;
164
+ max: number;
165
+ color: string;
166
+ }
167
+ interface C2gGaugeChartData {
168
+ value: number;
169
+ min?: number;
170
+ max?: number;
171
+ label?: string;
172
+ unit?: string;
173
+ segments?: C2gGaugeSegment[];
174
+ showDetail?: boolean;
175
+ }
176
+
177
+ declare class GaugeChartComponent {
178
+ readonly data: _angular_core.InputSignal<C2gGaugeChartData>;
179
+ readonly height: _angular_core.InputSignal<string>;
180
+ readonly theme = "c2g";
181
+ readonly chartOptions: _angular_core.Signal<EChartsOption>;
182
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<GaugeChartComponent, never>;
183
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<GaugeChartComponent, "c2g-gauge-chart", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
184
+ }
185
+
186
+ interface WeatherTooltipEntry {
187
+ icon: string;
188
+ description: string;
189
+ rain?: number;
190
+ wind?: number;
191
+ }
192
+ interface WeatherTooltipConfig {
193
+ entries: WeatherTooltipEntry[];
194
+ unit?: string;
195
+ }
196
+ declare function createWeatherTooltip(config: WeatherTooltipConfig): (ctx: C2gTooltipContext) => string;
197
+
198
+ export { BarChartComponent, C2G_CHARTS_VERSION, C2G_ECHARTS_THEME, C2G_ECHARTS_THEME_NAME, GaugeChartComponent, LineChartComponent, createWeatherTooltip, provideC2gCharts };
199
+ export type { C2gBarChartData, C2gChartSeries, C2gGaugeChartData, C2gGaugeSegment, C2gLineChartData, C2gTooltipContext, C2gYAxis, WeatherTooltipConfig, WeatherTooltipEntry };