flowbite-angular 1.3.0 → 20.0.2
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/README.md +30 -39
- package/accordion/index.d.ts +569 -16
- package/alert/index.d.ts +602 -4
- package/badge/index.d.ts +636 -4
- package/breadcrumb/index.d.ts +452 -8
- package/button/index.d.ts +335 -4
- package/button-group/README.md +4 -0
- package/button-group/index.d.ts +85 -0
- package/{core → card}/README.md +2 -2
- package/card/index.d.ts +640 -0
- package/{accordion → clipboard}/README.md +2 -2
- package/clipboard/index.d.ts +103 -0
- package/dropdown/index.d.ts +536 -16
- package/fesm2022/flowbite-angular-accordion.mjs +339 -479
- package/fesm2022/flowbite-angular-accordion.mjs.map +1 -1
- package/fesm2022/flowbite-angular-alert.mjs +308 -240
- package/fesm2022/flowbite-angular-alert.mjs.map +1 -1
- package/fesm2022/flowbite-angular-badge.mjs +332 -238
- package/fesm2022/flowbite-angular-badge.mjs.map +1 -1
- package/fesm2022/flowbite-angular-breadcrumb.mjs +262 -191
- package/fesm2022/flowbite-angular-breadcrumb.mjs.map +1 -1
- package/fesm2022/flowbite-angular-button-group.mjs +86 -0
- package/fesm2022/flowbite-angular-button-group.mjs.map +1 -0
- package/fesm2022/flowbite-angular-button.mjs +189 -270
- package/fesm2022/flowbite-angular-button.mjs.map +1 -1
- package/fesm2022/flowbite-angular-card.mjs +344 -0
- package/fesm2022/flowbite-angular-card.mjs.map +1 -0
- package/fesm2022/flowbite-angular-clipboard.mjs +174 -0
- package/fesm2022/flowbite-angular-clipboard.mjs.map +1 -0
- package/fesm2022/flowbite-angular-dropdown.mjs +272 -459
- package/fesm2022/flowbite-angular-dropdown.mjs.map +1 -1
- package/fesm2022/flowbite-angular-form.mjs +444 -0
- package/fesm2022/flowbite-angular-form.mjs.map +1 -0
- package/fesm2022/flowbite-angular-icon-brand.mjs +71 -0
- package/fesm2022/flowbite-angular-icon-brand.mjs.map +1 -0
- package/fesm2022/flowbite-angular-icon-outline-arrows.mjs +51 -0
- package/fesm2022/flowbite-angular-icon-outline-arrows.mjs.map +1 -0
- package/fesm2022/flowbite-angular-icon-outline-e-commerce.mjs +23 -0
- package/fesm2022/flowbite-angular-icon-outline-e-commerce.mjs.map +1 -0
- package/fesm2022/flowbite-angular-icon-outline-emoji.mjs +13 -0
- package/fesm2022/flowbite-angular-icon-outline-emoji.mjs.map +1 -0
- package/fesm2022/flowbite-angular-icon-outline-files-folders.mjs +42 -0
- package/fesm2022/flowbite-angular-icon-outline-files-folders.mjs.map +1 -0
- package/fesm2022/flowbite-angular-icon-outline-general.mjs +145 -0
- package/fesm2022/flowbite-angular-icon-outline-general.mjs.map +1 -0
- package/fesm2022/flowbite-angular-icon-outline-media.mjs +25 -0
- package/fesm2022/flowbite-angular-icon-outline-media.mjs.map +1 -0
- package/fesm2022/flowbite-angular-icon-outline-text.mjs +20 -0
- package/fesm2022/flowbite-angular-icon-outline-text.mjs.map +1 -0
- package/fesm2022/flowbite-angular-icon-outline-user.mjs +17 -0
- package/fesm2022/flowbite-angular-icon-outline-user.mjs.map +1 -0
- package/fesm2022/flowbite-angular-icon-outline-weather.mjs +9 -0
- package/fesm2022/flowbite-angular-icon-outline-weather.mjs.map +1 -0
- package/fesm2022/flowbite-angular-icon-outline.mjs +6 -0
- package/fesm2022/flowbite-angular-icon-outline.mjs.map +1 -0
- package/fesm2022/flowbite-angular-icon-solid-arrows.mjs +17 -0
- package/fesm2022/flowbite-angular-icon-solid-arrows.mjs.map +1 -0
- package/fesm2022/flowbite-angular-icon-solid-brands.mjs +33 -0
- package/fesm2022/flowbite-angular-icon-solid-brands.mjs.map +1 -0
- package/fesm2022/flowbite-angular-icon-solid-e-commerce.mjs +21 -0
- package/fesm2022/flowbite-angular-icon-solid-e-commerce.mjs.map +1 -0
- package/fesm2022/flowbite-angular-icon-solid-emoji.mjs +13 -0
- package/fesm2022/flowbite-angular-icon-solid-emoji.mjs.map +1 -0
- package/fesm2022/flowbite-angular-icon-solid-files-folder.mjs +42 -0
- package/fesm2022/flowbite-angular-icon-solid-files-folder.mjs.map +1 -0
- package/fesm2022/flowbite-angular-icon-solid-general.mjs +123 -0
- package/fesm2022/flowbite-angular-icon-solid-general.mjs.map +1 -0
- package/fesm2022/flowbite-angular-icon-solid-media.mjs +24 -0
- package/fesm2022/flowbite-angular-icon-solid-media.mjs.map +1 -0
- package/fesm2022/flowbite-angular-icon-solid-text.mjs +11 -0
- package/fesm2022/flowbite-angular-icon-solid-text.mjs.map +1 -0
- package/fesm2022/flowbite-angular-icon-solid-user.mjs +17 -0
- package/fesm2022/flowbite-angular-icon-solid-user.mjs.map +1 -0
- package/fesm2022/flowbite-angular-icon-solid-weather.mjs +9 -0
- package/fesm2022/flowbite-angular-icon-solid-weather.mjs.map +1 -0
- package/fesm2022/flowbite-angular-icon-solid.mjs +6 -0
- package/fesm2022/flowbite-angular-icon-solid.mjs.map +1 -0
- package/fesm2022/flowbite-angular-icon.mjs +318 -219
- package/fesm2022/flowbite-angular-icon.mjs.map +1 -1
- package/fesm2022/flowbite-angular-indicator.mjs +119 -231
- package/fesm2022/flowbite-angular-indicator.mjs.map +1 -1
- package/fesm2022/flowbite-angular-modal.mjs +337 -486
- package/fesm2022/flowbite-angular-modal.mjs.map +1 -1
- package/fesm2022/flowbite-angular-navbar.mjs +600 -604
- package/fesm2022/flowbite-angular-navbar.mjs.map +1 -1
- package/fesm2022/flowbite-angular-pagination.mjs +994 -0
- package/fesm2022/flowbite-angular-pagination.mjs.map +1 -0
- package/fesm2022/flowbite-angular-sidebar.mjs +400 -776
- package/fesm2022/flowbite-angular-sidebar.mjs.map +1 -1
- package/fesm2022/flowbite-angular-tab.mjs +465 -0
- package/fesm2022/flowbite-angular-tab.mjs.map +1 -0
- package/fesm2022/flowbite-angular-theme-toggle.mjs +263 -0
- package/fesm2022/flowbite-angular-theme-toggle.mjs.map +1 -0
- package/fesm2022/flowbite-angular-tooltip.mjs +117 -0
- package/fesm2022/flowbite-angular-tooltip.mjs.map +1 -0
- package/fesm2022/flowbite-angular.mjs +53 -66
- package/fesm2022/flowbite-angular.mjs.map +1 -1
- package/flowbite-angular.css +2 -0
- package/{alert → form}/README.md +2 -2
- package/form/index.d.ts +684 -0
- package/{breadcrumb → icon/brand}/README.md +2 -2
- package/icon/brand/index.d.ts +66 -0
- package/icon/index.d.ts +322 -5
- package/icon/outline/README.md +4 -0
- package/icon/outline/arrows/index.d.ts +46 -0
- package/icon/outline/e-commerce/index.d.ts +18 -0
- package/icon/outline/emoji/index.d.ts +8 -0
- package/icon/outline/files-folders/index.d.ts +37 -0
- package/icon/outline/general/index.d.ts +140 -0
- package/icon/outline/index.d.ts +2 -0
- package/icon/outline/media/index.d.ts +20 -0
- package/icon/outline/text/index.d.ts +15 -0
- package/icon/outline/user/index.d.ts +12 -0
- package/icon/outline/weather/index.d.ts +4 -0
- package/icon/solid/README.md +4 -0
- package/icon/solid/arrows/index.d.ts +12 -0
- package/icon/solid/brands/index.d.ts +28 -0
- package/icon/solid/e-commerce/index.d.ts +16 -0
- package/icon/solid/emoji/index.d.ts +8 -0
- package/icon/solid/files-folder/index.d.ts +37 -0
- package/icon/solid/general/index.d.ts +118 -0
- package/icon/solid/index.d.ts +2 -0
- package/icon/solid/media/index.d.ts +19 -0
- package/icon/solid/text/index.d.ts +6 -0
- package/icon/solid/user/index.d.ts +12 -0
- package/icon/solid/weather/index.d.ts +4 -0
- package/index.d.ts +126 -3
- package/indicator/index.d.ts +242 -4
- package/modal/index.d.ts +458 -16
- package/navbar/index.d.ts +1467 -24
- package/package.json +133 -38
- package/pagination/README.md +4 -0
- package/pagination/index.d.ts +1135 -0
- package/sidebar/index.d.ts +880 -24
- package/styles/flowbite-angular.css +8 -0
- package/styles/part/animation.css +0 -0
- package/styles/part/color.css +125 -0
- package/styles/part/font-size.css +67 -0
- package/styles/part/rounded.css +11 -0
- package/styles/part/shadow.css +9 -0
- package/styles/part/spacing.css +38 -0
- package/{badge → tab}/README.md +2 -2
- package/tab/index.d.ts +791 -0
- package/theme-toggle/README.md +4 -0
- package/theme-toggle/index.d.ts +342 -0
- package/{button → tooltip}/README.md +2 -2
- package/tooltip/index.d.ts +158 -0
- package/accordion/accordion-content.component.d.ts +0 -69
- package/accordion/accordion-content.theme.d.ts +0 -28
- package/accordion/accordion-content.theme.service.d.ts +0 -19
- package/accordion/accordion-panel.component.d.ts +0 -67
- package/accordion/accordion-panel.theme.d.ts +0 -23
- package/accordion/accordion-panel.theme.service.d.ts +0 -20
- package/accordion/accordion-title.component.d.ts +0 -106
- package/accordion/accordion-title.theme.d.ts +0 -35
- package/accordion/accordion-title.theme.service.d.ts +0 -19
- package/accordion/accordion.component.d.ts +0 -61
- package/accordion/accordion.theme.d.ts +0 -29
- package/accordion/accordion.theme.service.d.ts +0 -19
- package/alert/alert.component.d.ts +0 -150
- package/alert/alert.theme.d.ts +0 -39
- package/alert/alert.theme.service.d.ts +0 -19
- package/badge/badge.component.d.ts +0 -196
- package/badge/badge.theme.d.ts +0 -53
- package/badge/badge.theme.service.d.ts +0 -19
- package/base-component.directive.d.ts +0 -51
- package/breadcrumb/breadcrumb-item.component.d.ts +0 -84
- package/breadcrumb/breadcrumb-item.theme.d.ts +0 -33
- package/breadcrumb/breadcrumb-item.theme.service.d.ts +0 -19
- package/breadcrumb/breadcrumb.component.d.ts +0 -43
- package/breadcrumb/breadcrumb.theme.d.ts +0 -29
- package/breadcrumb/breadcrumb.theme.service.d.ts +0 -19
- package/button/button.component.d.ts +0 -250
- package/button/button.theme.d.ts +0 -79
- package/button/button.theme.service.d.ts +0 -19
- package/core/flowbite.theme.init.d.ts +0 -9
- package/core/index.d.ts +0 -1
- package/dark-theme-toggle/README.md +0 -4
- package/dark-theme-toggle/dark-theme-toggle.component.d.ts +0 -51
- package/dark-theme-toggle/dark-theme-toggle.theme.d.ts +0 -23
- package/dark-theme-toggle/dark-theme-toggle.theme.service.d.ts +0 -19
- package/dark-theme-toggle/index.d.ts +0 -3
- package/dropdown/README.md +0 -4
- package/dropdown/dropdown-divider.component.d.ts +0 -36
- package/dropdown/dropdown-divider.theme.d.ts +0 -23
- package/dropdown/dropdown-divider.theme.service.d.ts +0 -19
- package/dropdown/dropdown-header.component.d.ts +0 -42
- package/dropdown/dropdown-header.theme.d.ts +0 -28
- package/dropdown/dropdown-header.theme.service.d.ts +0 -19
- package/dropdown/dropdown-item.component.d.ts +0 -36
- package/dropdown/dropdown-item.theme.d.ts +0 -23
- package/dropdown/dropdown-item.theme.service.d.ts +0 -19
- package/dropdown/dropdown.component.d.ts +0 -136
- package/dropdown/dropdown.theme.d.ts +0 -56
- package/dropdown/dropdown.theme.service.d.ts +0 -19
- package/fesm2022/flowbite-angular-core.mjs +0 -322
- package/fesm2022/flowbite-angular-core.mjs.map +0 -1
- package/fesm2022/flowbite-angular-dark-theme-toggle.mjs +0 -139
- package/fesm2022/flowbite-angular-dark-theme-toggle.mjs.map +0 -1
- package/fesm2022/flowbite-angular-router-link-active.mjs +0 -68
- package/fesm2022/flowbite-angular-router-link-active.mjs.map +0 -1
- package/fesm2022/flowbite-angular-router-link.mjs +0 -73
- package/fesm2022/flowbite-angular-router-link.mjs.map +0 -1
- package/fesm2022/flowbite-angular-sanitize-html.mjs +0 -39
- package/fesm2022/flowbite-angular-sanitize-html.mjs.map +0 -1
- package/fesm2022/flowbite-angular-scroll-top.mjs +0 -193
- package/fesm2022/flowbite-angular-scroll-top.mjs.map +0 -1
- package/fesm2022/flowbite-angular-theme.mjs +0 -78
- package/fesm2022/flowbite-angular-theme.mjs.map +0 -1
- package/fesm2022/flowbite-angular-utils.mjs +0 -210
- package/fesm2022/flowbite-angular-utils.mjs.map +0 -1
- package/flowbite.theme.service.d.ts +0 -12
- package/icon/icon-registry.d.ts +0 -45
- package/icon/icon.component.d.ts +0 -22
- package/icon/trusted-types.d.ts +0 -15
- package/indicator/indicators.component.d.ts +0 -224
- package/indicator/indicators.theme.d.ts +0 -59
- package/indicator/indicators.theme.service.d.ts +0 -19
- package/modal/modal-body.component.d.ts +0 -36
- package/modal/modal-body.theme.d.ts +0 -23
- package/modal/modal-body.theme.service.d.ts +0 -19
- package/modal/modal-footer.component.d.ts +0 -36
- package/modal/modal-footer.theme.d.ts +0 -23
- package/modal/modal-footer.theme.service.d.ts +0 -19
- package/modal/modal-header.component.d.ts +0 -60
- package/modal/modal-header.theme.d.ts +0 -32
- package/modal/modal-header.theme.service.d.ts +0 -19
- package/modal/modal.component.d.ts +0 -146
- package/modal/modal.theme.d.ts +0 -35
- package/modal/modal.theme.service.d.ts +0 -19
- package/navbar/navbar-brand.component.d.ts +0 -36
- package/navbar/navbar-brand.theme.d.ts +0 -23
- package/navbar/navbar-brand.theme.service.d.ts +0 -19
- package/navbar/navbar-content.component.d.ts +0 -50
- package/navbar/navbar-content.theme.d.ts +0 -28
- package/navbar/navbar-content.theme.service.d.ts +0 -19
- package/navbar/navbar-icon-button.component.d.ts +0 -59
- package/navbar/navbar-icon-button.theme.d.ts +0 -26
- package/navbar/navbar-icon-button.theme.service.d.ts +0 -19
- package/navbar/navbar-item.component.d.ts +0 -67
- package/navbar/navbar-item.theme.d.ts +0 -26
- package/navbar/navbar-item.theme.service.d.ts +0 -19
- package/navbar/navbar-toggle.component.d.ts +0 -51
- package/navbar/navbar-toggle.theme.d.ts +0 -23
- package/navbar/navbar-toggle.theme.service.d.ts +0 -19
- package/navbar/navbar.component.d.ts +0 -121
- package/navbar/navbar.theme.d.ts +0 -21
- package/navbar/navbar.theme.service.d.ts +0 -19
- package/router-link/README.md +0 -4
- package/router-link/flowbite-router-link.directive.d.ts +0 -28
- package/router-link/index.d.ts +0 -1
- package/router-link-active/README.md +0 -4
- package/router-link-active/flowbite-router-link-active.directive.d.ts +0 -37
- package/router-link-active/index.d.ts +0 -1
- package/sanitize-html/README.md +0 -4
- package/sanitize-html/index.d.ts +0 -1
- package/sanitize-html/sanitize-html.pipe.d.ts +0 -20
- package/scroll-top/README.md +0 -4
- package/scroll-top/index.d.ts +0 -4
- package/scroll-top/scroll-top.component.d.ts +0 -114
- package/scroll-top/scroll-top.theme.d.ts +0 -39
- package/scroll-top/scroll-top.theme.service.d.ts +0 -19
- package/sidebar/sidebar-item-group.component.d.ts +0 -100
- package/sidebar/sidebar-item-group.theme.d.ts +0 -31
- package/sidebar/sidebar-item-group.theme.service.d.ts +0 -19
- package/sidebar/sidebar-item.component.d.ts +0 -101
- package/sidebar/sidebar-item.theme.d.ts +0 -33
- package/sidebar/sidebar-item.theme.service.d.ts +0 -19
- package/sidebar/sidebar-menu.component.d.ts +0 -93
- package/sidebar/sidebar-menu.theme.d.ts +0 -30
- package/sidebar/sidebar-menu.theme.service.d.ts +0 -19
- package/sidebar/sidebar-page-content.component.d.ts +0 -46
- package/sidebar/sidebar-page-content.theme.d.ts +0 -27
- package/sidebar/sidebar-page-content.theme.service.d.ts +0 -19
- package/sidebar/sidebar-toggle.component.d.ts +0 -95
- package/sidebar/sidebar-toggle.theme.d.ts +0 -34
- package/sidebar/sidebar-toggle.theme.service.d.ts +0 -19
- package/sidebar/sidebar.component.d.ts +0 -84
- package/sidebar/sidebar.theme.d.ts +0 -22
- package/sidebar/sidebar.theme.service.d.ts +0 -19
- package/tailwind.config.js +0 -303
- package/theme/README.md +0 -4
- package/theme/flowbite-theme.directive.d.ts +0 -36
- package/theme/index.d.ts +0 -1
- package/type-definitions/colors/flowbite.colors.d.ts +0 -19
- package/type-definitions/colors/flowbite.gradient-colors.d.ts +0 -11
- package/type-definitions/colors/flowbite.gradient-duo-tone-colors.d.ts +0 -12
- package/type-definitions/colors/index.d.ts +0 -3
- package/type-definitions/flowbite.boolean.d.ts +0 -14
- package/type-definitions/flowbite.class.d.ts +0 -6
- package/type-definitions/flowbite.combination.d.ts +0 -8
- package/type-definitions/flowbite.content-positions.d.ts +0 -6
- package/type-definitions/flowbite.deep-partial.d.ts +0 -6
- package/type-definitions/flowbite.heading-levels.d.ts +0 -4
- package/type-definitions/flowbite.positions.d.ts +0 -14
- package/type-definitions/flowbite.router-link-parameter.d.ts +0 -5
- package/type-definitions/flowbite.sizes.d.ts +0 -10
- package/type-definitions/flowbite.themes.d.ts +0 -4
- package/type-definitions/index.d.ts +0 -12
- package/utils/README.md +0 -4
- package/utils/icon.list.d.ts +0 -7
- package/utils/id.generator.d.ts +0 -59
- package/utils/index.d.ts +0 -8
- package/utils/theme/clone-deep.d.ts +0 -7
- package/utils/theme/create-class.d.ts +0 -7
- package/utils/theme/create-theme.d.ts +0 -7
- package/utils/theme/is-object.d.ts +0 -7
- package/utils/theme/merge-theme.d.ts +0 -8
- package/utils/theme/to-string.d.ts +0 -7
package/button/index.d.ts
CHANGED
|
@@ -1,4 +1,335 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import * as ng_primitives_state from 'ng-primitives/state';
|
|
2
|
+
import * as _angular_core from '@angular/core';
|
|
3
|
+
import { InjectionToken, Provider } from '@angular/core';
|
|
4
|
+
import * as flowbite_angular_button from 'flowbite-angular/button';
|
|
5
|
+
import { FlowbiteSizes, FlowbiteColors, ColorToTheme, FlowbiteBoolean, DeepPartial } from 'flowbite-angular';
|
|
6
|
+
import * as i1 from 'ng-primitives/button';
|
|
7
|
+
import * as i2 from 'ng-primitives/interactions';
|
|
8
|
+
|
|
9
|
+
interface FlowbiteBaseButtonSizes extends Pick<FlowbiteSizes, 'xs' | 'sm' | 'md' | 'lg' | 'xl'> {
|
|
10
|
+
[key: string]: string;
|
|
11
|
+
}
|
|
12
|
+
interface FlowbiteBaseButtonColors extends Pick<FlowbiteColors, 'default' | 'info' | 'failure' | 'success' | 'warning' | 'primary'> {
|
|
13
|
+
[key: string]: ColorToTheme;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
interface FlowbiteButtonTheme {
|
|
17
|
+
host: FlowbiteButtonHostTheme;
|
|
18
|
+
}
|
|
19
|
+
interface FlowbiteButtonHostTheme {
|
|
20
|
+
base: string;
|
|
21
|
+
transition: string;
|
|
22
|
+
focus: string;
|
|
23
|
+
disabled: string;
|
|
24
|
+
size: FlowbiteBaseButtonSizes;
|
|
25
|
+
pill: FlowbiteBoolean;
|
|
26
|
+
color: FlowbiteBaseButtonColors;
|
|
27
|
+
colorOutline: FlowbiteBaseButtonColors;
|
|
28
|
+
}
|
|
29
|
+
declare const flowbiteButtonTheme: FlowbiteButtonTheme;
|
|
30
|
+
|
|
31
|
+
interface FlowbiteButtonConfig {
|
|
32
|
+
/**
|
|
33
|
+
* The default theme of button.
|
|
34
|
+
*/
|
|
35
|
+
baseTheme: FlowbiteButtonTheme;
|
|
36
|
+
/**
|
|
37
|
+
* The custom theme of button.
|
|
38
|
+
*/
|
|
39
|
+
customTheme: DeepPartial<FlowbiteButtonTheme>;
|
|
40
|
+
}
|
|
41
|
+
declare const defaultFlowbiteButtonConfig: FlowbiteButtonConfig;
|
|
42
|
+
declare const FlowbiteButtonConfigToken: InjectionToken<FlowbiteButtonConfig>;
|
|
43
|
+
/**
|
|
44
|
+
* Provide the default Button configuration
|
|
45
|
+
* @param config The Button configuration
|
|
46
|
+
* @returns The provider
|
|
47
|
+
*/
|
|
48
|
+
declare const provideFlowbiteButtonConfig: (config: Partial<FlowbiteButtonConfig>) => Provider[];
|
|
49
|
+
/**
|
|
50
|
+
* Inject the Button configuration
|
|
51
|
+
* @see {@link defaultFlowbiteButtonConfig}
|
|
52
|
+
* @returns The configuration
|
|
53
|
+
*/
|
|
54
|
+
declare const injectFlowbiteButtonConfig: () => FlowbiteButtonConfig;
|
|
55
|
+
|
|
56
|
+
interface FlowbiteBaseButtonConfig {
|
|
57
|
+
/**
|
|
58
|
+
* The default color of button.
|
|
59
|
+
*/
|
|
60
|
+
color: keyof FlowbiteBaseButtonColors;
|
|
61
|
+
/**
|
|
62
|
+
* The default size of button.
|
|
63
|
+
*/
|
|
64
|
+
size: keyof FlowbiteBaseButtonSizes;
|
|
65
|
+
/**
|
|
66
|
+
* Whether the button is pill.
|
|
67
|
+
*/
|
|
68
|
+
pill: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Whether the button is outline.
|
|
71
|
+
*/
|
|
72
|
+
outline: boolean;
|
|
73
|
+
}
|
|
74
|
+
declare const defaultFlowbiteBaseButtonConfig: FlowbiteBaseButtonConfig;
|
|
75
|
+
declare const FlowbiteBaseButtonConfigToken: InjectionToken<FlowbiteBaseButtonConfig>;
|
|
76
|
+
/**
|
|
77
|
+
* Provide the default BaseButton configuration
|
|
78
|
+
* @param config The BaseButton configuration
|
|
79
|
+
* @returns The provider
|
|
80
|
+
*/
|
|
81
|
+
declare const provideFlowbiteBaseButtonConfig: (config: Partial<FlowbiteBaseButtonConfig>) => Provider[];
|
|
82
|
+
/**
|
|
83
|
+
* Inject the BaseButton configuration
|
|
84
|
+
* @see {@link defaultFlowbiteBaseButtonConfig}
|
|
85
|
+
* @returns The configuration
|
|
86
|
+
*/
|
|
87
|
+
declare const injectFlowbiteBaseButtonConfig: () => FlowbiteBaseButtonConfig;
|
|
88
|
+
|
|
89
|
+
declare class BaseButton {
|
|
90
|
+
readonly config: FlowbiteBaseButtonConfig;
|
|
91
|
+
/**
|
|
92
|
+
* @see {@link injectFlowbiteBaseButtonConfig}
|
|
93
|
+
*/
|
|
94
|
+
readonly color: _angular_core.InputSignal<keyof FlowbiteBaseButtonColors>;
|
|
95
|
+
/**
|
|
96
|
+
* @see {@link injectFlowbiteBaseButtonConfig}
|
|
97
|
+
*/
|
|
98
|
+
readonly size: _angular_core.InputSignal<keyof FlowbiteBaseButtonSizes>;
|
|
99
|
+
/**
|
|
100
|
+
* @see {@link injectFlowbiteBaseButtonConfig}
|
|
101
|
+
*/
|
|
102
|
+
readonly pill: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
103
|
+
/**
|
|
104
|
+
* @see {@link injectFlowbiteBaseButtonConfig}
|
|
105
|
+
*/
|
|
106
|
+
readonly outline: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
107
|
+
/**
|
|
108
|
+
* @internal
|
|
109
|
+
*/
|
|
110
|
+
readonly state: ng_primitives_state.CreatedState<BaseButton>;
|
|
111
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BaseButton, never>;
|
|
112
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BaseButton, never, never, { "color": { "alias": "color"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "pill": { "alias": "pill"; "required": false; "isSignal": true; }; "outline": { "alias": "outline"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
declare class Button {
|
|
116
|
+
readonly config: FlowbiteButtonConfig;
|
|
117
|
+
readonly baseButtonState: _angular_core.Signal<ng_primitives_state.State<{
|
|
118
|
+
readonly config: flowbite_angular_button.FlowbiteBaseButtonConfig;
|
|
119
|
+
readonly color: _angular_core.InputSignal<keyof flowbite_angular_button.FlowbiteBaseButtonColors>;
|
|
120
|
+
readonly size: _angular_core.InputSignal<keyof flowbite_angular_button.FlowbiteBaseButtonSizes>;
|
|
121
|
+
readonly pill: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
122
|
+
readonly outline: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
123
|
+
readonly state: ng_primitives_state.CreatedState<BaseButton>;
|
|
124
|
+
}>>;
|
|
125
|
+
/**
|
|
126
|
+
* @see {@link injectFlowbiteButtonConfig}
|
|
127
|
+
*/
|
|
128
|
+
readonly customTheme: _angular_core.InputSignal<{
|
|
129
|
+
host?: {
|
|
130
|
+
base?: string | undefined;
|
|
131
|
+
transition?: string | undefined;
|
|
132
|
+
focus?: string | undefined;
|
|
133
|
+
disabled?: string | undefined;
|
|
134
|
+
size?: {
|
|
135
|
+
[x: string]: string | undefined;
|
|
136
|
+
xs?: string | undefined;
|
|
137
|
+
sm?: string | undefined;
|
|
138
|
+
md?: string | undefined;
|
|
139
|
+
lg?: string | undefined;
|
|
140
|
+
xl?: string | undefined;
|
|
141
|
+
} | undefined;
|
|
142
|
+
pill?: {
|
|
143
|
+
off?: string | undefined;
|
|
144
|
+
on?: string | undefined;
|
|
145
|
+
} | undefined;
|
|
146
|
+
color?: {
|
|
147
|
+
[x: string]: {
|
|
148
|
+
light?: string | undefined;
|
|
149
|
+
dark?: string | undefined;
|
|
150
|
+
} | undefined;
|
|
151
|
+
default?: {
|
|
152
|
+
light?: string | undefined;
|
|
153
|
+
dark?: string | undefined;
|
|
154
|
+
} | undefined;
|
|
155
|
+
info?: {
|
|
156
|
+
light?: string | undefined;
|
|
157
|
+
dark?: string | undefined;
|
|
158
|
+
} | undefined;
|
|
159
|
+
failure?: {
|
|
160
|
+
light?: string | undefined;
|
|
161
|
+
dark?: string | undefined;
|
|
162
|
+
} | undefined;
|
|
163
|
+
success?: {
|
|
164
|
+
light?: string | undefined;
|
|
165
|
+
dark?: string | undefined;
|
|
166
|
+
} | undefined;
|
|
167
|
+
warning?: {
|
|
168
|
+
light?: string | undefined;
|
|
169
|
+
dark?: string | undefined;
|
|
170
|
+
} | undefined;
|
|
171
|
+
primary?: {
|
|
172
|
+
light?: string | undefined;
|
|
173
|
+
dark?: string | undefined;
|
|
174
|
+
} | undefined;
|
|
175
|
+
} | undefined;
|
|
176
|
+
colorOutline?: {
|
|
177
|
+
[x: string]: {
|
|
178
|
+
light?: string | undefined;
|
|
179
|
+
dark?: string | undefined;
|
|
180
|
+
} | undefined;
|
|
181
|
+
default?: {
|
|
182
|
+
light?: string | undefined;
|
|
183
|
+
dark?: string | undefined;
|
|
184
|
+
} | undefined;
|
|
185
|
+
info?: {
|
|
186
|
+
light?: string | undefined;
|
|
187
|
+
dark?: string | undefined;
|
|
188
|
+
} | undefined;
|
|
189
|
+
failure?: {
|
|
190
|
+
light?: string | undefined;
|
|
191
|
+
dark?: string | undefined;
|
|
192
|
+
} | undefined;
|
|
193
|
+
success?: {
|
|
194
|
+
light?: string | undefined;
|
|
195
|
+
dark?: string | undefined;
|
|
196
|
+
} | undefined;
|
|
197
|
+
warning?: {
|
|
198
|
+
light?: string | undefined;
|
|
199
|
+
dark?: string | undefined;
|
|
200
|
+
} | undefined;
|
|
201
|
+
primary?: {
|
|
202
|
+
light?: string | undefined;
|
|
203
|
+
dark?: string | undefined;
|
|
204
|
+
} | undefined;
|
|
205
|
+
} | undefined;
|
|
206
|
+
} | undefined;
|
|
207
|
+
}>;
|
|
208
|
+
/**
|
|
209
|
+
* @internal
|
|
210
|
+
*/
|
|
211
|
+
readonly state: ng_primitives_state.CreatedState<Button>;
|
|
212
|
+
readonly theme: _angular_core.Signal<{
|
|
213
|
+
host: {
|
|
214
|
+
root: string;
|
|
215
|
+
};
|
|
216
|
+
}>;
|
|
217
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Button, never>;
|
|
218
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<Button, " button[flowbiteButton], a[flowbiteButton] ", ["flowbiteButton"], { "customTheme": { "alias": "customTheme"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.NgpButton; inputs: { "disabled": "disabled"; }; outputs: {}; }, { directive: typeof i2.NgpFocus; inputs: { "ngpFocusDisabled": "focusDisabled"; }; outputs: { "ngpFocus": "ngpFocus"; }; }, { directive: typeof BaseButton; inputs: { "color": "color"; "size": "size"; "pill": "pill"; "outline": "outline"; }; outputs: {}; }]>;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
declare const FlowbiteButtonStateToken: _angular_core.InjectionToken<Button>;
|
|
222
|
+
declare const provideFlowbiteButtonState: (options?: ng_primitives_state.CreateStateProviderOptions) => _angular_core.FactoryProvider;
|
|
223
|
+
declare const injectFlowbiteButtonState: <U = {
|
|
224
|
+
readonly config: flowbite_angular_button.FlowbiteButtonConfig;
|
|
225
|
+
readonly baseButtonState: _angular_core.Signal<ng_primitives_state.State<{
|
|
226
|
+
readonly config: /*elided*/ any;
|
|
227
|
+
readonly color: /*elided*/ any;
|
|
228
|
+
readonly size: /*elided*/ any;
|
|
229
|
+
readonly pill: /*elided*/ any;
|
|
230
|
+
readonly outline: /*elided*/ any;
|
|
231
|
+
readonly state: /*elided*/ any;
|
|
232
|
+
}>>;
|
|
233
|
+
readonly customTheme: _angular_core.InputSignal<{
|
|
234
|
+
host?: {
|
|
235
|
+
base?: string | undefined;
|
|
236
|
+
transition?: string | undefined;
|
|
237
|
+
focus?: string | undefined;
|
|
238
|
+
disabled?: string | undefined;
|
|
239
|
+
size?: {
|
|
240
|
+
[x: string]: string | undefined;
|
|
241
|
+
xs?: string | undefined;
|
|
242
|
+
sm?: string | undefined;
|
|
243
|
+
md?: string | undefined;
|
|
244
|
+
lg?: string | undefined;
|
|
245
|
+
xl?: string | undefined;
|
|
246
|
+
} | undefined;
|
|
247
|
+
pill?: {
|
|
248
|
+
off?: string | undefined;
|
|
249
|
+
on?: string | undefined;
|
|
250
|
+
} | undefined;
|
|
251
|
+
color?: {
|
|
252
|
+
[x: string]: {
|
|
253
|
+
light?: string | undefined;
|
|
254
|
+
dark?: string | undefined;
|
|
255
|
+
} | undefined;
|
|
256
|
+
default?: {
|
|
257
|
+
light?: string | undefined;
|
|
258
|
+
dark?: string | undefined;
|
|
259
|
+
} | undefined;
|
|
260
|
+
info?: {
|
|
261
|
+
light?: string | undefined;
|
|
262
|
+
dark?: string | undefined;
|
|
263
|
+
} | undefined;
|
|
264
|
+
failure?: {
|
|
265
|
+
light?: string | undefined;
|
|
266
|
+
dark?: string | undefined;
|
|
267
|
+
} | undefined;
|
|
268
|
+
success?: {
|
|
269
|
+
light?: string | undefined;
|
|
270
|
+
dark?: string | undefined;
|
|
271
|
+
} | undefined;
|
|
272
|
+
warning?: {
|
|
273
|
+
light?: string | undefined;
|
|
274
|
+
dark?: string | undefined;
|
|
275
|
+
} | undefined;
|
|
276
|
+
primary?: {
|
|
277
|
+
light?: string | undefined;
|
|
278
|
+
dark?: string | undefined;
|
|
279
|
+
} | undefined;
|
|
280
|
+
} | undefined;
|
|
281
|
+
colorOutline?: {
|
|
282
|
+
[x: string]: {
|
|
283
|
+
light?: string | undefined;
|
|
284
|
+
dark?: string | undefined;
|
|
285
|
+
} | undefined;
|
|
286
|
+
default?: {
|
|
287
|
+
light?: string | undefined;
|
|
288
|
+
dark?: string | undefined;
|
|
289
|
+
} | undefined;
|
|
290
|
+
info?: {
|
|
291
|
+
light?: string | undefined;
|
|
292
|
+
dark?: string | undefined;
|
|
293
|
+
} | undefined;
|
|
294
|
+
failure?: {
|
|
295
|
+
light?: string | undefined;
|
|
296
|
+
dark?: string | undefined;
|
|
297
|
+
} | undefined;
|
|
298
|
+
success?: {
|
|
299
|
+
light?: string | undefined;
|
|
300
|
+
dark?: string | undefined;
|
|
301
|
+
} | undefined;
|
|
302
|
+
warning?: {
|
|
303
|
+
light?: string | undefined;
|
|
304
|
+
dark?: string | undefined;
|
|
305
|
+
} | undefined;
|
|
306
|
+
primary?: {
|
|
307
|
+
light?: string | undefined;
|
|
308
|
+
dark?: string | undefined;
|
|
309
|
+
} | undefined;
|
|
310
|
+
} | undefined;
|
|
311
|
+
} | undefined;
|
|
312
|
+
}>;
|
|
313
|
+
readonly state: ng_primitives_state.CreatedState<Button>;
|
|
314
|
+
readonly theme: _angular_core.Signal<{
|
|
315
|
+
host: {
|
|
316
|
+
root: string;
|
|
317
|
+
};
|
|
318
|
+
}>;
|
|
319
|
+
}>(injectOptions?: _angular_core.InjectOptions) => _angular_core.Signal<ng_primitives_state.State<U>>;
|
|
320
|
+
declare const flowbiteButtonState: <U>(state: U) => ng_primitives_state.CreatedState<U>;
|
|
321
|
+
|
|
322
|
+
declare const FlowbiteBaseButtonStateToken: _angular_core.InjectionToken<BaseButton>;
|
|
323
|
+
declare const provideFlowbiteBaseButtonState: (options?: ng_primitives_state.CreateStateProviderOptions) => _angular_core.FactoryProvider;
|
|
324
|
+
declare const injectFlowbiteBaseButtonState: <U = {
|
|
325
|
+
readonly config: flowbite_angular_button.FlowbiteBaseButtonConfig;
|
|
326
|
+
readonly color: _angular_core.InputSignal<keyof flowbite_angular_button.FlowbiteBaseButtonColors>;
|
|
327
|
+
readonly size: _angular_core.InputSignal<keyof flowbite_angular_button.FlowbiteBaseButtonSizes>;
|
|
328
|
+
readonly pill: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
329
|
+
readonly outline: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
330
|
+
readonly state: ng_primitives_state.CreatedState<BaseButton>;
|
|
331
|
+
}>(injectOptions?: _angular_core.InjectOptions) => _angular_core.Signal<ng_primitives_state.State<U>>;
|
|
332
|
+
declare const flowbiteBaseButtonState: <U>(state: U) => ng_primitives_state.CreatedState<U>;
|
|
333
|
+
|
|
334
|
+
export { BaseButton, Button, FlowbiteBaseButtonConfigToken, FlowbiteBaseButtonStateToken, FlowbiteButtonConfigToken, FlowbiteButtonStateToken, defaultFlowbiteBaseButtonConfig, defaultFlowbiteButtonConfig, flowbiteBaseButtonState, flowbiteButtonState, flowbiteButtonTheme, injectFlowbiteBaseButtonConfig, injectFlowbiteBaseButtonState, injectFlowbiteButtonConfig, injectFlowbiteButtonState, provideFlowbiteBaseButtonConfig, provideFlowbiteBaseButtonState, provideFlowbiteButtonConfig, provideFlowbiteButtonState };
|
|
335
|
+
export type { FlowbiteBaseButtonColors, FlowbiteBaseButtonConfig, FlowbiteBaseButtonSizes, FlowbiteButtonConfig, FlowbiteButtonHostTheme, FlowbiteButtonTheme };
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import * as ng_primitives_state from 'ng-primitives/state';
|
|
2
|
+
import * as _angular_core from '@angular/core';
|
|
3
|
+
import { InjectionToken, Provider } from '@angular/core';
|
|
4
|
+
import { DeepPartial } from 'flowbite-angular';
|
|
5
|
+
import * as flowbite_angular_button_group from 'flowbite-angular/button-group';
|
|
6
|
+
|
|
7
|
+
interface FlowbiteButtonGroupTheme {
|
|
8
|
+
host: FlowbiteButtonGroupHostTheme;
|
|
9
|
+
}
|
|
10
|
+
interface FlowbiteButtonGroupHostTheme {
|
|
11
|
+
base: string;
|
|
12
|
+
transition: string;
|
|
13
|
+
}
|
|
14
|
+
declare const flowbiteButtonGroupTheme: FlowbiteButtonGroupTheme;
|
|
15
|
+
|
|
16
|
+
interface FlowbiteButtonGroupConfig {
|
|
17
|
+
/**
|
|
18
|
+
* The default theme of button-group
|
|
19
|
+
*/
|
|
20
|
+
baseTheme: FlowbiteButtonGroupTheme;
|
|
21
|
+
/**
|
|
22
|
+
* The custom theme of button-group
|
|
23
|
+
*/
|
|
24
|
+
customTheme: DeepPartial<FlowbiteButtonGroupTheme>;
|
|
25
|
+
}
|
|
26
|
+
declare const defaultFlowbiteButtonGroupConfig: FlowbiteButtonGroupConfig;
|
|
27
|
+
declare const FlowbiteButtonGroupConfigToken: InjectionToken<FlowbiteButtonGroupConfig>;
|
|
28
|
+
/**
|
|
29
|
+
* Provide the default ButtonGroup configuration
|
|
30
|
+
* @param config The ButtonGroup configuration
|
|
31
|
+
* @returns The provider
|
|
32
|
+
*/
|
|
33
|
+
declare const provideFlowbiteButtonGroupConfig: (config: Partial<FlowbiteButtonGroupConfig>) => Provider[];
|
|
34
|
+
/**
|
|
35
|
+
* Inject the ButtonGroup configuration
|
|
36
|
+
* @see {@link defaultFlowbiteButtonGroupConfig}
|
|
37
|
+
* @returns The configuration
|
|
38
|
+
*/
|
|
39
|
+
declare const injectFlowbiteButtonGroupConfig: () => FlowbiteButtonGroupConfig;
|
|
40
|
+
|
|
41
|
+
declare class ButtonGroup {
|
|
42
|
+
readonly config: FlowbiteButtonGroupConfig;
|
|
43
|
+
/**
|
|
44
|
+
* @see {@link injectFlowbiteButtonGroupConfig}
|
|
45
|
+
*/
|
|
46
|
+
readonly customTheme: _angular_core.InputSignal<{
|
|
47
|
+
host?: {
|
|
48
|
+
base?: string | undefined;
|
|
49
|
+
transition?: string | undefined;
|
|
50
|
+
} | undefined;
|
|
51
|
+
}>;
|
|
52
|
+
readonly theme: _angular_core.Signal<{
|
|
53
|
+
host: {
|
|
54
|
+
root: string;
|
|
55
|
+
};
|
|
56
|
+
}>;
|
|
57
|
+
/**
|
|
58
|
+
* @internal
|
|
59
|
+
*/
|
|
60
|
+
readonly state: ng_primitives_state.CreatedState<ButtonGroup>;
|
|
61
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ButtonGroup, never>;
|
|
62
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ButtonGroup, " div[flowbiteButtonGroup] ", ["flowbiteButtonGroup"], { "customTheme": { "alias": "customTheme"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
declare const FlowbiteButtonGroupStateToken: _angular_core.InjectionToken<ButtonGroup>;
|
|
66
|
+
declare const provideFlowbiteButtonGroupState: (options?: ng_primitives_state.CreateStateProviderOptions) => _angular_core.FactoryProvider;
|
|
67
|
+
declare const injectFlowbiteButtonGroupState: <U = {
|
|
68
|
+
readonly config: flowbite_angular_button_group.FlowbiteButtonGroupConfig;
|
|
69
|
+
readonly customTheme: _angular_core.InputSignal<{
|
|
70
|
+
host?: {
|
|
71
|
+
base?: string | undefined;
|
|
72
|
+
transition?: string | undefined;
|
|
73
|
+
} | undefined;
|
|
74
|
+
}>;
|
|
75
|
+
readonly theme: _angular_core.Signal<{
|
|
76
|
+
host: {
|
|
77
|
+
root: string;
|
|
78
|
+
};
|
|
79
|
+
}>;
|
|
80
|
+
readonly state: ng_primitives_state.CreatedState<ButtonGroup>;
|
|
81
|
+
}>(injectOptions?: _angular_core.InjectOptions) => _angular_core.Signal<ng_primitives_state.State<U>>;
|
|
82
|
+
declare const flowbiteButtonGroupState: <U>(state: U) => ng_primitives_state.CreatedState<U>;
|
|
83
|
+
|
|
84
|
+
export { ButtonGroup, FlowbiteButtonGroupConfigToken, FlowbiteButtonGroupStateToken, defaultFlowbiteButtonGroupConfig, flowbiteButtonGroupState, flowbiteButtonGroupTheme, injectFlowbiteButtonGroupConfig, injectFlowbiteButtonGroupState, provideFlowbiteButtonGroupConfig, provideFlowbiteButtonGroupState };
|
|
85
|
+
export type { FlowbiteButtonGroupConfig, FlowbiteButtonGroupHostTheme, FlowbiteButtonGroupTheme };
|
package/{core → card}/README.md
RENAMED