@kraft.stitch/angular 0.0.2 → 0.0.4-beta.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.
- package/.github/workflows/npm-publish.yml +41 -0
- package/README.md +97 -2
- package/ng-package.json +10 -0
- package/package.json +28 -19
- package/src/lib/Buttons/button/button.ts +152 -0
- package/src/lib/Buttons/button-group/button-group.ts +129 -0
- package/src/lib/Buttons/chips/chips.ts +131 -0
- package/src/lib/Buttons/fab/fab.ts +96 -0
- package/src/lib/Buttons/split-button/split-button.ts +111 -0
- package/src/lib/Calendars/datepicker/datepicker.ts +105 -0
- package/src/lib/Calendars/daterange/daterange.ts +112 -0
- package/src/lib/Calendars/timepicker/timepicker.ts +117 -0
- package/src/lib/Dropdowns/dropdown/dropdown.ts +121 -0
- package/src/lib/Dropdowns/listbox/listbox.ts +116 -0
- package/src/lib/Inputs/checkbox/checkbox.ts +126 -0
- package/src/lib/Inputs/colour-picker/colour-picker.ts +101 -0
- package/src/lib/Inputs/input/input.ts +139 -0
- package/src/lib/Inputs/otp-input/otp-input.ts +113 -0
- package/src/lib/Inputs/radio/radio.ts +115 -0
- package/src/lib/Inputs/rating/rating.ts +104 -0
- package/src/lib/Inputs/rolling-number/rolling-number.ts +136 -0
- package/src/lib/Inputs/slider/slider.ts +121 -0
- package/src/lib/Inputs/switch/switch.ts +100 -0
- package/src/lib/Inputs/textarea/textarea.ts +129 -0
- package/src/lib/Inputs/theme-switch/theme-switch.ts +61 -0
- package/src/lib/Inputs/uploader/uploader.ts +97 -0
- package/src/lib/Layout/avatar/avatar.ts +66 -0
- package/src/lib/Layout/card/card.ts +88 -0
- package/src/lib/Layout/code-view/code-view.ts +77 -0
- package/src/lib/Layout/dialog/dialog.ts +80 -0
- package/src/lib/Layout/not-found/not-found.ts +73 -0
- package/src/lib/Layout/sidebar/sidebar.ts +97 -0
- package/src/lib/Layout/table/table.ts +81 -0
- package/src/lib/Layout/tooltip/tooltip.ts +48 -0
- package/src/lib/Navigation/accordion/accordion.ts +80 -0
- package/src/lib/Navigation/breadcrumb/breadcrumb.ts +58 -0
- package/src/lib/Navigation/carousel/carousel.ts +70 -0
- package/src/lib/Navigation/context-menu/context-menu.ts +79 -0
- package/src/lib/Navigation/nav-bar/nav-bar.ts +72 -0
- package/src/lib/Navigation/pagination/pagination.ts +82 -0
- package/src/lib/Navigation/stepper/stepper.ts +77 -0
- package/src/lib/Navigation/tab/tab.ts +71 -0
- package/src/lib/Navigation/toolbar/toolbar.ts +60 -0
- package/src/lib/Navigation/top-nav-bar/top-nav-bar.ts +71 -0
- package/src/lib/Navigation/tree-view/tree-view.ts +75 -0
- package/src/lib/Notification/badge/badge.ts +55 -0
- package/src/lib/Notification/loader/loader.ts +41 -0
- package/src/lib/Notification/message/message.ts +60 -0
- package/src/lib/Notification/progress/progress.ts +65 -0
- package/src/lib/Notification/spinner/spinner.ts +50 -0
- package/src/lib/Notification/toast/toast.ts +56 -0
- package/src/public-api.ts +68 -0
- package/src/utils/theme-service.ts +11 -0
- package/tsconfig.json +23 -0
- package/fesm2022/kraft.stitch-angular.mjs +0 -2873
- package/fesm2022/kraft.stitch-angular.mjs.map +0 -1
- package/types/kraft.stitch-angular.d.ts +0 -2247
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public API surface of `@ks/wc-angular`.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
/* ================= Buttons ================= */
|
|
6
|
+
export * from './lib/Buttons/button/button';
|
|
7
|
+
export * from './lib/Buttons/button-group/button-group';
|
|
8
|
+
export * from './lib/Buttons/chips/chips';
|
|
9
|
+
export * from './lib/Buttons/fab/fab';
|
|
10
|
+
export * from './lib/Buttons/split-button/split-button';
|
|
11
|
+
|
|
12
|
+
/* ================= Calendars ================= */
|
|
13
|
+
export * from './lib/Calendars/datepicker/datepicker';
|
|
14
|
+
export * from './lib/Calendars/daterange/daterange';
|
|
15
|
+
export * from './lib/Calendars/timepicker/timepicker';
|
|
16
|
+
|
|
17
|
+
/* ================= Dropdowns ================= */
|
|
18
|
+
export * from './lib/Dropdowns/dropdown/dropdown';
|
|
19
|
+
export * from './lib/Dropdowns/listbox/listbox';
|
|
20
|
+
|
|
21
|
+
/* ================= Inputs ================= */
|
|
22
|
+
export * from './lib/Inputs/checkbox/checkbox';
|
|
23
|
+
export * from './lib/Inputs/colour-picker/colour-picker';
|
|
24
|
+
export * from './lib/Inputs/input/input';
|
|
25
|
+
export * from './lib/Inputs/otp-input/otp-input';
|
|
26
|
+
export * from './lib/Inputs/radio/radio';
|
|
27
|
+
export * from './lib/Inputs/rating/rating';
|
|
28
|
+
export * from './lib/Inputs/slider/slider';
|
|
29
|
+
export * from './lib/Inputs/switch/switch';
|
|
30
|
+
export * from './lib/Inputs/textarea/textarea';
|
|
31
|
+
export * from './lib/Inputs/theme-switch/theme-switch';
|
|
32
|
+
export * from './lib/Inputs/uploader/uploader';
|
|
33
|
+
export * from './lib/Inputs/rolling-number/rolling-number';
|
|
34
|
+
|
|
35
|
+
/* ================= Layout ================= */
|
|
36
|
+
export * from './lib/Layout/avatar/avatar';
|
|
37
|
+
export * from './lib/Layout/card/card';
|
|
38
|
+
export * from './lib/Layout/code-view/code-view';
|
|
39
|
+
export * from './lib/Layout/dialog/dialog';
|
|
40
|
+
export * from './lib/Layout/not-found/not-found';
|
|
41
|
+
export * from './lib/Layout/sidebar/sidebar';
|
|
42
|
+
export * from './lib/Layout/table/table';
|
|
43
|
+
export * from './lib/Layout/tooltip/tooltip';
|
|
44
|
+
|
|
45
|
+
/* ================= Navigation ================= */
|
|
46
|
+
export * from './lib/Navigation/accordion/accordion';
|
|
47
|
+
export * from './lib/Navigation/breadcrumb/breadcrumb';
|
|
48
|
+
export * from './lib/Navigation/carousel/carousel';
|
|
49
|
+
export * from './lib/Navigation/context-menu/context-menu';
|
|
50
|
+
export * from './lib/Navigation/nav-bar/nav-bar';
|
|
51
|
+
export * from './lib/Navigation/pagination/pagination';
|
|
52
|
+
export * from './lib/Navigation/stepper/stepper';
|
|
53
|
+
export * from './lib/Navigation/tab/tab';
|
|
54
|
+
export * from './lib/Navigation/toolbar/toolbar';
|
|
55
|
+
export * from './lib/Navigation/top-nav-bar/top-nav-bar';
|
|
56
|
+
export * from './lib/Navigation/tree-view/tree-view';
|
|
57
|
+
|
|
58
|
+
/* ================= Notification ================= */
|
|
59
|
+
export * from './lib/Notification/badge/badge';
|
|
60
|
+
export * from './lib/Notification/loader/loader';
|
|
61
|
+
export * from './lib/Notification/message/message';
|
|
62
|
+
export * from './lib/Notification/progress/progress';
|
|
63
|
+
export * from './lib/Notification/spinner/spinner';
|
|
64
|
+
export * from './lib/Notification/toast/toast';
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
/* ================= Theme service ================= */
|
|
68
|
+
export * from './utils/theme-service';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { provideAppInitializer } from "@angular/core";
|
|
2
|
+
import { ThemeMode, themeService } from "@kraft.stitch/core";
|
|
3
|
+
|
|
4
|
+
export function provideInBuildTheme(
|
|
5
|
+
themeName: string, startUpMode: ThemeMode
|
|
6
|
+
) {
|
|
7
|
+
return provideAppInitializer(() => {
|
|
8
|
+
themeService.applyInBuildTheme(themeName);
|
|
9
|
+
themeService.setMode(startUpMode);
|
|
10
|
+
});
|
|
11
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "es2022",
|
|
4
|
+
"module": "es2022",
|
|
5
|
+
"moduleResolution": "bundler",
|
|
6
|
+
"lib": [
|
|
7
|
+
"dom",
|
|
8
|
+
"es2022"
|
|
9
|
+
],
|
|
10
|
+
"declaration": true,
|
|
11
|
+
"experimentalDecorators": true,
|
|
12
|
+
"strict": true,
|
|
13
|
+
"skipLibCheck": true,
|
|
14
|
+
"useDefineForClassFields": false
|
|
15
|
+
},
|
|
16
|
+
"angularCompilerOptions": {
|
|
17
|
+
"enableIvy": true,
|
|
18
|
+
"strictTemplates": true
|
|
19
|
+
},
|
|
20
|
+
"exclude": [
|
|
21
|
+
"node_modules"
|
|
22
|
+
]
|
|
23
|
+
}
|