@nanahoshi/mona-ui 0.1.1 → 0.2.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.
- package/auto-complete/package.json +4 -0
- package/avatar/package.json +4 -0
- package/breadcrumb/package.json +4 -0
- package/button/package.json +4 -0
- package/button-group/package.json +4 -0
- package/calendar/package.json +4 -0
- package/check-box/package.json +4 -0
- package/chip/package.json +4 -0
- package/circular-progress-bar/package.json +4 -0
- package/color-gradient/package.json +4 -0
- package/color-palette/package.json +4 -0
- package/color-picker/package.json +4 -0
- package/combo-box/package.json +4 -0
- package/common/package.json +4 -0
- package/contextmenu/package.json +4 -0
- package/date-input/package.json +4 -0
- package/date-picker/package.json +4 -0
- package/datetime-picker/package.json +4 -0
- package/dialog/package.json +4 -0
- package/dropdown-button/package.json +4 -0
- package/dropdown-list/package.json +4 -0
- package/dropdowns/package.json +4 -0
- package/editor/package.json +4 -0
- package/expansion-panel/package.json +4 -0
- package/fesm2022/nanahoshi-mona-ui-auto-complete.mjs +38 -53
- package/fesm2022/nanahoshi-mona-ui-breadcrumb.mjs +19 -53
- package/fesm2022/nanahoshi-mona-ui-button-group.mjs +15 -26
- package/fesm2022/nanahoshi-mona-ui-button.mjs +67 -68
- package/fesm2022/nanahoshi-mona-ui-calendar.mjs +53 -149
- package/fesm2022/nanahoshi-mona-ui-check-box.mjs +48 -95
- package/fesm2022/nanahoshi-mona-ui-chip.mjs +35 -45
- package/fesm2022/nanahoshi-mona-ui-circular-progress-bar.mjs +9 -23
- package/fesm2022/nanahoshi-mona-ui-color-gradient.mjs +26 -77
- package/fesm2022/nanahoshi-mona-ui-color-palette.mjs +16 -38
- package/fesm2022/nanahoshi-mona-ui-color-picker.mjs +41 -46
- package/fesm2022/nanahoshi-mona-ui-combo-box.mjs +32 -52
- package/fesm2022/nanahoshi-mona-ui-date-input.mjs +9 -12
- package/fesm2022/nanahoshi-mona-ui-date-picker.mjs +40 -27
- package/fesm2022/nanahoshi-mona-ui-datetime-picker.mjs +51 -51
- package/fesm2022/nanahoshi-mona-ui-dialog.mjs +40 -153
- package/fesm2022/nanahoshi-mona-ui-dropdown-list.mjs +32 -53
- package/fesm2022/nanahoshi-mona-ui-dropdowns.mjs +7 -12
- package/fesm2022/nanahoshi-mona-ui-editor.mjs +59 -219
- package/fesm2022/nanahoshi-mona-ui-expansion-panel.mjs +24 -75
- package/fesm2022/nanahoshi-mona-ui-fieldset.mjs +11 -44
- package/fesm2022/nanahoshi-mona-ui-filter.mjs +11 -41
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-footer-cell.component-B2ETh-uI.mjs → nanahoshi-mona-ui-grid-grid-footer-cell.component-B6FBLtrr.mjs} +2 -2
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-footer-table-cell.directive-DZk18LJC.mjs → nanahoshi-mona-ui-grid-grid-footer-table-cell.directive-OJe4UYuw.mjs} +4 -8
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-list.component-C7WKhhig.mjs → nanahoshi-mona-ui-grid-grid-list.component-DCd8K6ng.mjs} +9 -16
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-toggle.component-BRiY0CDX.mjs → nanahoshi-mona-ui-grid-grid-toggle.component-Dl8Hlkhj.mjs} +15 -44
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-virtual-list.component-BrYpFMyF.mjs → nanahoshi-mona-ui-grid-grid-virtual-list.component-C5FRZlvv.mjs} +11 -20
- package/fesm2022/{nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-T9Bj98kl.mjs → nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-BRZUd8cE.mjs} +109 -393
- package/fesm2022/nanahoshi-mona-ui-grid.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-internal-indicator-icon.mjs +10 -28
- package/fesm2022/nanahoshi-mona-ui-internal-list.mjs +26 -56
- package/fesm2022/nanahoshi-mona-ui-internal-tree.mjs +31 -122
- package/fesm2022/nanahoshi-mona-ui-internal.mjs +29 -1
- package/fesm2022/nanahoshi-mona-ui-list-box.mjs +4 -26
- package/fesm2022/nanahoshi-mona-ui-list-view.mjs +5 -18
- package/fesm2022/nanahoshi-mona-ui-menubar.mjs +48 -154
- package/fesm2022/nanahoshi-mona-ui-multi-select.mjs +35 -62
- package/fesm2022/nanahoshi-mona-ui-notification.mjs +24 -108
- package/fesm2022/nanahoshi-mona-ui-numeric-text-box.mjs +37 -63
- package/fesm2022/nanahoshi-mona-ui-pager.mjs +21 -73
- package/fesm2022/nanahoshi-mona-ui-placeholder.mjs +8 -30
- package/fesm2022/nanahoshi-mona-ui-popover.mjs +29 -50
- package/fesm2022/nanahoshi-mona-ui-popup-menu.mjs +36 -108
- package/fesm2022/nanahoshi-mona-ui-progress-bar.mjs +19 -60
- package/fesm2022/nanahoshi-mona-ui-radio-button.mjs +47 -92
- package/fesm2022/nanahoshi-mona-ui-scroll-view.mjs +53 -144
- package/fesm2022/nanahoshi-mona-ui-slider.mjs +54 -110
- package/fesm2022/nanahoshi-mona-ui-split-button.mjs +7 -20
- package/fesm2022/nanahoshi-mona-ui-splitter.mjs +15 -50
- package/fesm2022/nanahoshi-mona-ui-stepper.mjs +28 -91
- package/fesm2022/nanahoshi-mona-ui-switch.mjs +37 -58
- package/fesm2022/nanahoshi-mona-ui-tabs.mjs +35 -107
- package/fesm2022/nanahoshi-mona-ui-text-area.mjs +22 -30
- package/fesm2022/nanahoshi-mona-ui-text-box.mjs +40 -61
- package/fesm2022/nanahoshi-mona-ui-theme.mjs +1111 -269
- package/fesm2022/nanahoshi-mona-ui-time-picker.mjs +41 -27
- package/fesm2022/nanahoshi-mona-ui-time-selector.mjs +35 -99
- package/fesm2022/nanahoshi-mona-ui-tooltip.mjs +13 -41
- package/fesm2022/nanahoshi-mona-ui-window.mjs +29 -108
- package/fieldset/package.json +4 -0
- package/filter/package.json +4 -0
- package/grid/package.json +4 -0
- package/internal/filter-input/package.json +4 -0
- package/internal/indicator-icon/package.json +4 -0
- package/internal/list/package.json +4 -0
- package/internal/package.json +4 -0
- package/internal/tree/package.json +4 -0
- package/list/package.json +4 -0
- package/list-box/package.json +4 -0
- package/list-view/package.json +4 -0
- package/menubar/package.json +4 -0
- package/multi-select/package.json +4 -0
- package/notification/package.json +4 -0
- package/numeric-text-box/package.json +4 -0
- package/package.json +2 -1
- package/pager/package.json +4 -0
- package/placeholder/package.json +4 -0
- package/popover/package.json +4 -0
- package/popup/package.json +4 -0
- package/popup-menu/package.json +4 -0
- package/progress-bar/package.json +4 -0
- package/query/package.json +4 -0
- package/radio-button/package.json +4 -0
- package/scroll-view/package.json +4 -0
- package/slider/package.json +4 -0
- package/split-button/package.json +4 -0
- package/splitter/package.json +4 -0
- package/stepper/package.json +4 -0
- package/switch/package.json +4 -0
- package/tabs/package.json +4 -0
- package/text-area/package.json +4 -0
- package/text-box/package.json +4 -0
- package/theme/package.json +4 -0
- package/time-picker/package.json +4 -0
- package/time-selector/package.json +4 -0
- package/tooltip/package.json +4 -0
- package/tree-view/package.json +4 -0
- package/types/nanahoshi-mona-ui-auto-complete.d.ts +6 -7
- package/types/nanahoshi-mona-ui-breadcrumb.d.ts +4 -6
- package/types/nanahoshi-mona-ui-button-group.d.ts +2 -3
- package/types/nanahoshi-mona-ui-button.d.ts +2 -3
- package/types/nanahoshi-mona-ui-calendar.d.ts +21 -22
- package/types/nanahoshi-mona-ui-check-box.d.ts +6 -9
- package/types/nanahoshi-mona-ui-chip.d.ts +2 -3
- package/types/nanahoshi-mona-ui-circular-progress-bar.d.ts +2 -4
- package/types/nanahoshi-mona-ui-color-gradient.d.ts +10 -11
- package/types/nanahoshi-mona-ui-color-palette.d.ts +4 -5
- package/types/nanahoshi-mona-ui-color-picker.d.ts +6 -5
- package/types/nanahoshi-mona-ui-combo-box.d.ts +6 -7
- package/types/nanahoshi-mona-ui-date-input.d.ts +2 -3
- package/types/nanahoshi-mona-ui-date-picker.d.ts +2 -3
- package/types/nanahoshi-mona-ui-dialog.d.ts +6 -7
- package/types/nanahoshi-mona-ui-dropdown-list.d.ts +6 -7
- package/types/nanahoshi-mona-ui-dropdowns.d.ts +2 -3
- package/types/nanahoshi-mona-ui-expansion-panel.d.ts +8 -10
- package/types/nanahoshi-mona-ui-fieldset.d.ts +6 -8
- package/types/nanahoshi-mona-ui-filter.d.ts +2 -3
- package/types/nanahoshi-mona-ui-grid.d.ts +14 -15
- package/types/nanahoshi-mona-ui-internal-indicator-icon.d.ts +0 -1
- package/types/nanahoshi-mona-ui-internal.d.ts +8 -1
- package/types/nanahoshi-mona-ui-list-box.d.ts +4 -5
- package/types/nanahoshi-mona-ui-list-view.d.ts +2 -3
- package/types/nanahoshi-mona-ui-menubar.d.ts +6 -7
- package/types/nanahoshi-mona-ui-multi-select.d.ts +8 -9
- package/types/nanahoshi-mona-ui-numeric-text-box.d.ts +2 -3
- package/types/nanahoshi-mona-ui-pager.d.ts +6 -7
- package/types/nanahoshi-mona-ui-placeholder.d.ts +4 -6
- package/types/nanahoshi-mona-ui-popover.d.ts +8 -9
- package/types/nanahoshi-mona-ui-popup-menu.d.ts +12 -13
- package/types/nanahoshi-mona-ui-progress-bar.d.ts +8 -9
- package/types/nanahoshi-mona-ui-radio-button.d.ts +8 -11
- package/types/nanahoshi-mona-ui-scroll-view.d.ts +18 -20
- package/types/nanahoshi-mona-ui-slider.d.ts +18 -18
- package/types/nanahoshi-mona-ui-split-button.d.ts +2 -3
- package/types/nanahoshi-mona-ui-splitter.d.ts +6 -8
- package/types/nanahoshi-mona-ui-stepper.d.ts +12 -13
- package/types/nanahoshi-mona-ui-switch.d.ts +6 -7
- package/types/nanahoshi-mona-ui-tabs.d.ts +14 -16
- package/types/nanahoshi-mona-ui-text-area.d.ts +2 -4
- package/types/nanahoshi-mona-ui-text-box.d.ts +4 -6
- package/types/nanahoshi-mona-ui-theme.d.ts +111 -12
- package/types/nanahoshi-mona-ui-time-picker.d.ts +2 -3
- package/types/nanahoshi-mona-ui-time-selector.d.ts +10 -11
- package/types/nanahoshi-mona-ui-tooltip.d.ts +4 -5
- package/types/nanahoshi-mona-ui-window.d.ts +16 -17
- package/window/package.json +4 -0
|
@@ -4,7 +4,6 @@ import { FormValueControl } from '@angular/forms/signals';
|
|
|
4
4
|
import { Orientation } from '@nanahoshi/mona-ui/common';
|
|
5
5
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
6
6
|
import { VariantInputs } from '@nanahoshi/mona-ui/internal';
|
|
7
|
-
import { ThemeStyle } from '@nanahoshi/mona-ui/theme';
|
|
8
7
|
import { VariantProps } from 'class-variance-authority';
|
|
9
8
|
|
|
10
9
|
declare class SliderTickDirective {
|
|
@@ -37,37 +36,38 @@ interface TickStyleArgs {
|
|
|
37
36
|
smallTickStep: number;
|
|
38
37
|
}
|
|
39
38
|
|
|
40
|
-
declare const sliderBaseThemeVariants: (
|
|
41
|
-
declare const sliderTrackThemeVariants: (
|
|
42
|
-
declare const sliderSelectionThemeVariants: (theme: ThemeStyle) => (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
43
|
-
declare const sliderTickListThemeVariants: (theme: ThemeStyle) => (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
44
|
-
declare const sliderTickThemeVariants: (theme: ThemeStyle) => (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
45
|
-
declare const sliderTickLabelListThemeVariants: (theme: ThemeStyle) => (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
46
|
-
declare const sliderTickLabelThemeVariants: (theme: ThemeStyle) => (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
47
|
-
declare const sliderHandleThemeVariants: (theme: ThemeStyle) => (props?: ({
|
|
39
|
+
declare const sliderBaseThemeVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
40
|
+
declare const sliderTrackThemeVariants: (props?: ({
|
|
48
41
|
rounded?: "full" | "large" | "medium" | "none" | "small" | null | undefined;
|
|
49
42
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
50
|
-
|
|
43
|
+
declare const sliderSelectionThemeVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
44
|
+
declare const sliderTickListThemeVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
45
|
+
declare const sliderTickThemeVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
46
|
+
declare const sliderTickLabelListThemeVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
47
|
+
declare const sliderTickLabelThemeVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
48
|
+
declare const sliderHandleThemeVariants: (props?: ({
|
|
49
|
+
rounded?: "full" | "large" | "medium" | "none" | "small" | null | undefined;
|
|
50
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
51
|
+
type SliderBaseVariantProps = VariantProps<typeof sliderBaseThemeVariants>;
|
|
51
52
|
type SliderBaseVariantInputs = VariantInputs<SliderBaseVariantProps>;
|
|
52
|
-
type SliderTrackVariantProps = VariantProps<
|
|
53
|
+
type SliderTrackVariantProps = VariantProps<typeof sliderTrackThemeVariants>;
|
|
53
54
|
type SliderTrackVariantInputs = VariantInputs<SliderTrackVariantProps>;
|
|
54
|
-
type SliderSelectionVariantProps = VariantProps<
|
|
55
|
+
type SliderSelectionVariantProps = VariantProps<typeof sliderSelectionThemeVariants>;
|
|
55
56
|
type SliderSelectionVariantInputs = VariantInputs<SliderSelectionVariantProps>;
|
|
56
|
-
type SliderTickListVariantProps = VariantProps<
|
|
57
|
+
type SliderTickListVariantProps = VariantProps<typeof sliderTickListThemeVariants>;
|
|
57
58
|
type SliderTickListVariantInputs = VariantInputs<SliderTickListVariantProps>;
|
|
58
|
-
type SliderTickVariantProps = VariantProps<
|
|
59
|
+
type SliderTickVariantProps = VariantProps<typeof sliderTickThemeVariants>;
|
|
59
60
|
type SliderTickVariantInputs = VariantInputs<SliderTickVariantProps>;
|
|
60
|
-
type SliderTickLabelListVariantProps = VariantProps<
|
|
61
|
+
type SliderTickLabelListVariantProps = VariantProps<typeof sliderTickLabelListThemeVariants>;
|
|
61
62
|
type SliderTickLabelListVariantInputs = VariantInputs<SliderTickLabelListVariantProps>;
|
|
62
|
-
type SliderTickLabelVariantProps = VariantProps<
|
|
63
|
+
type SliderTickLabelVariantProps = VariantProps<typeof sliderTickLabelThemeVariants>;
|
|
63
64
|
type SliderTickLabelVariantInputs = VariantInputs<SliderTickLabelVariantProps>;
|
|
64
|
-
type SliderHandleVariantProps = VariantProps<
|
|
65
|
+
type SliderHandleVariantProps = VariantProps<typeof sliderHandleThemeVariants>;
|
|
65
66
|
type SliderHandleVariantInputs = VariantInputs<SliderHandleVariantProps>;
|
|
66
67
|
type SliderVariantProps = SliderBaseVariantProps & SliderTrackVariantProps & SliderSelectionVariantProps & SliderTickListVariantProps & SliderTickVariantProps & SliderTickLabelListVariantProps & SliderTickLabelVariantProps & SliderHandleVariantProps;
|
|
67
68
|
type SliderVariantInputs = SliderBaseVariantInputs & SliderTrackVariantInputs & SliderSelectionVariantInputs & SliderTickListVariantInputs & SliderTickVariantInputs & SliderTickLabelListVariantInputs & SliderTickLabelVariantInputs & SliderHandleVariantInputs;
|
|
68
69
|
|
|
69
70
|
declare abstract class SliderBaseComponent implements SliderVariantInputs {
|
|
70
|
-
#private;
|
|
71
71
|
protected readonly destroyRef: DestroyRef;
|
|
72
72
|
protected readonly dragging: _angular_core.WritableSignal<boolean>;
|
|
73
73
|
protected readonly hostElementRef: ElementRef<HTMLDivElement>;
|
|
@@ -3,16 +3,15 @@ import { PopupMenuComponent, PopupMenuItemClickEvent, PopupMenuCheckboxItemCompo
|
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
4
|
import { ElementRef, TemplateRef } from '@angular/core';
|
|
5
5
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
6
|
-
import { ThemeStyle } from '@nanahoshi/mona-ui/theme';
|
|
7
6
|
import { VariantInputs } from '@nanahoshi/mona-ui/internal';
|
|
8
7
|
import { VariantProps } from 'class-variance-authority';
|
|
9
8
|
|
|
10
|
-
declare const splitButtonThemeVariants: (
|
|
9
|
+
declare const splitButtonThemeVariants: (props?: ({
|
|
11
10
|
look?: "default" | "error" | "ghost" | "info" | "outline" | "primary" | "secondary" | "success" | "warning" | null | undefined;
|
|
12
11
|
rounded?: "full" | "large" | "medium" | "none" | "small" | null | undefined;
|
|
13
12
|
size?: "large" | "medium" | "small" | null | undefined;
|
|
14
13
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
15
|
-
type SplitButtonVariantProps = VariantProps<
|
|
14
|
+
type SplitButtonVariantProps = VariantProps<typeof splitButtonThemeVariants>;
|
|
16
15
|
type SplitButtonVariantInputs = VariantInputs<SplitButtonVariantProps>;
|
|
17
16
|
|
|
18
17
|
declare class SplitButtonComponent implements SplitButtonVariantInputs {
|
|
@@ -2,24 +2,23 @@ import * as _angular_core from '@angular/core';
|
|
|
2
2
|
import { TemplateRef } from '@angular/core';
|
|
3
3
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
4
4
|
import { VariantProps } from 'class-variance-authority';
|
|
5
|
-
import { ThemeStyle } from '@nanahoshi/mona-ui/theme';
|
|
6
5
|
import { VariantInputs } from '@nanahoshi/mona-ui/internal';
|
|
7
6
|
|
|
8
|
-
declare const splitterBaseThemeVariants: (
|
|
7
|
+
declare const splitterBaseThemeVariants: (props?: ({
|
|
9
8
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
10
9
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
11
|
-
declare const splitterResizerThemeVariants: (
|
|
10
|
+
declare const splitterResizerThemeVariants: (props?: ({
|
|
12
11
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
13
12
|
resizing?: boolean | null | undefined;
|
|
14
13
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
15
|
-
declare const splitterResizerHandleThemeVariants: (
|
|
14
|
+
declare const splitterResizerHandleThemeVariants: (props?: ({
|
|
16
15
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
17
16
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
18
|
-
type SplitterBaseVariantProps = VariantProps<
|
|
17
|
+
type SplitterBaseVariantProps = VariantProps<typeof splitterBaseThemeVariants>;
|
|
19
18
|
type SplitterBaseVariantInput = VariantInputs<SplitterBaseVariantProps>;
|
|
20
|
-
type SplitterResizerVariantProps = VariantProps<
|
|
19
|
+
type SplitterResizerVariantProps = VariantProps<typeof splitterResizerThemeVariants>;
|
|
21
20
|
type SplitterResizerVariantInput = VariantInputs<SplitterResizerVariantProps>;
|
|
22
|
-
type SplitterResizerHandleVariantProps = VariantProps<
|
|
21
|
+
type SplitterResizerHandleVariantProps = VariantProps<typeof splitterResizerHandleThemeVariants>;
|
|
23
22
|
type SplitterResizerHandleVariantInput = VariantInputs<SplitterResizerHandleVariantProps>;
|
|
24
23
|
type SplitterVariantInput = SplitterBaseVariantInput & Omit<SplitterResizerVariantInput, "resizing"> & SplitterResizerHandleVariantInput;
|
|
25
24
|
|
|
@@ -55,7 +54,6 @@ declare class SplitterPaneComponent {
|
|
|
55
54
|
}
|
|
56
55
|
|
|
57
56
|
declare class SplitterComponent implements SplitterVariantInput {
|
|
58
|
-
#private;
|
|
59
57
|
protected readonly baseClass: _angular_core.Signal<string>;
|
|
60
58
|
protected readonly paneList: _angular_core.Signal<readonly SplitterPaneComponent[]>;
|
|
61
59
|
/**
|
|
@@ -3,7 +3,6 @@ import { Signal, TemplateRef } from '@angular/core';
|
|
|
3
3
|
import * as _mirei_ts_collections from '@mirei/ts-collections';
|
|
4
4
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
5
|
import { VariantInputs } from '@nanahoshi/mona-ui/internal';
|
|
6
|
-
import { ThemeStyle } from '@nanahoshi/mona-ui/theme';
|
|
7
6
|
import { VariantProps } from 'class-variance-authority';
|
|
8
7
|
|
|
9
8
|
interface StepOptions<T = unknown> {
|
|
@@ -62,37 +61,37 @@ declare class StepperStepTemplateDirective {
|
|
|
62
61
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<StepperStepTemplateDirective, "ng-template[monaStepperStepTemplate]", never, {}, {}, never, never, true, never>;
|
|
63
62
|
}
|
|
64
63
|
|
|
65
|
-
declare const stepperBaseThemeVariants: (
|
|
64
|
+
declare const stepperBaseThemeVariants: (props?: ({
|
|
66
65
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
67
66
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
68
|
-
declare const stepperStepListThemeVariants: (
|
|
67
|
+
declare const stepperStepListThemeVariants: (props?: ({
|
|
69
68
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
70
69
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
71
|
-
declare const stepperStepListItemThemeVariants: (
|
|
70
|
+
declare const stepperStepListItemThemeVariants: (props?: ({
|
|
72
71
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
73
72
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
74
|
-
declare const stepperStepIndicatorThemeVariants: (
|
|
73
|
+
declare const stepperStepIndicatorThemeVariants: (props?: ({
|
|
75
74
|
active?: boolean | null | undefined;
|
|
76
75
|
focused?: boolean | null | undefined;
|
|
77
76
|
rounded?: "small" | "medium" | "large" | "full" | "none" | null | undefined;
|
|
78
77
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
79
|
-
declare const stepperTrackThemeVariants: (
|
|
78
|
+
declare const stepperTrackThemeVariants: (props?: ({
|
|
80
79
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
81
80
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
82
|
-
declare const stepperTrackLineThemeVariants: (
|
|
81
|
+
declare const stepperTrackLineThemeVariants: (props?: ({
|
|
83
82
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
84
83
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
85
|
-
type StepperBaseVariantProps = VariantProps<
|
|
84
|
+
type StepperBaseVariantProps = VariantProps<typeof stepperBaseThemeVariants>;
|
|
86
85
|
type StepperBaseVariantInput = VariantInputs<StepperBaseVariantProps>;
|
|
87
|
-
type StepperStepListVariantProps = VariantProps<
|
|
86
|
+
type StepperStepListVariantProps = VariantProps<typeof stepperStepListThemeVariants>;
|
|
88
87
|
type StepperStepListVariantInput = VariantInputs<StepperStepListVariantProps>;
|
|
89
|
-
type StepperStepListItemVariantProps = VariantProps<
|
|
88
|
+
type StepperStepListItemVariantProps = VariantProps<typeof stepperStepListItemThemeVariants>;
|
|
90
89
|
type StepperStepListItemVariantInput = VariantInputs<StepperStepListItemVariantProps>;
|
|
91
|
-
type StepperStepIndicatorVariantProps = VariantProps<
|
|
90
|
+
type StepperStepIndicatorVariantProps = VariantProps<typeof stepperStepIndicatorThemeVariants>;
|
|
92
91
|
type StepperStepIndicatorVariantInput = VariantInputs<StepperStepIndicatorVariantProps>;
|
|
93
|
-
type StepperTrackVariantProps = VariantProps<
|
|
92
|
+
type StepperTrackVariantProps = VariantProps<typeof stepperTrackThemeVariants>;
|
|
94
93
|
type StepperTrackVariantInput = VariantInputs<StepperTrackVariantProps>;
|
|
95
|
-
type StepperTrackLineVariantProps = VariantProps<
|
|
94
|
+
type StepperTrackLineVariantProps = VariantProps<typeof stepperTrackLineThemeVariants>;
|
|
96
95
|
type StepperTrackLineVariantInput = VariantInputs<StepperTrackLineVariantProps>;
|
|
97
96
|
type StepperVariantInput = StepperBaseVariantInput & StepperStepListVariantInput & StepperStepListItemVariantInput & Omit<StepperStepIndicatorVariantInput, "active" | "focused"> & StepperTrackVariantInput & StepperTrackLineVariantInput;
|
|
98
97
|
|
|
@@ -3,23 +3,22 @@ import { TemplateRef } from '@angular/core';
|
|
|
3
3
|
import { FormCheckboxControl } from '@angular/forms/signals';
|
|
4
4
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
5
|
import { VariantInputs } from '@nanahoshi/mona-ui/internal';
|
|
6
|
-
import { ThemeStyle } from '@nanahoshi/mona-ui/theme';
|
|
7
6
|
import { VariantProps } from 'class-variance-authority';
|
|
8
7
|
|
|
9
|
-
declare const switchThemeVariants: (
|
|
8
|
+
declare const switchThemeVariants: (props?: ({
|
|
10
9
|
rounded?: "full" | "large" | "medium" | "none" | "small" | null | undefined;
|
|
11
10
|
size?: "large" | "medium" | "small" | null | undefined;
|
|
12
11
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
13
|
-
declare const switchHandleThemeVariants: (
|
|
12
|
+
declare const switchHandleThemeVariants: (props?: ({
|
|
14
13
|
rounded?: "full" | "large" | "medium" | "none" | "small" | null | undefined;
|
|
15
14
|
size?: "large" | "medium" | "small" | null | undefined;
|
|
16
15
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
17
|
-
declare const switchLabelThemeVariants: (
|
|
18
|
-
type SwitchBaseVariantProps = VariantProps<
|
|
16
|
+
declare const switchLabelThemeVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
17
|
+
type SwitchBaseVariantProps = VariantProps<typeof switchThemeVariants>;
|
|
19
18
|
type SwitchBaseVariantInput = VariantInputs<SwitchBaseVariantProps>;
|
|
20
|
-
type SwitchHandleVariantProps = VariantProps<
|
|
19
|
+
type SwitchHandleVariantProps = VariantProps<typeof switchHandleThemeVariants>;
|
|
21
20
|
type SwitchHandleVariantInput = VariantInputs<SwitchHandleVariantProps>;
|
|
22
|
-
type SwitchLabelVariantProps = VariantProps<
|
|
21
|
+
type SwitchLabelVariantProps = VariantProps<typeof switchLabelThemeVariants>;
|
|
23
22
|
type SwitchLabelVariantInput = VariantInputs<SwitchLabelVariantProps>;
|
|
24
23
|
type SwitchVariantProps = SwitchBaseVariantProps & SwitchHandleVariantProps & SwitchLabelVariantProps;
|
|
25
24
|
type SwitchVariantInputs = SwitchBaseVariantInput & SwitchHandleVariantInput & SwitchLabelVariantInput;
|
|
@@ -4,7 +4,6 @@ import { TemplateRef } from '@angular/core';
|
|
|
4
4
|
import { ImmutableSet } from '@mirei/ts-collections';
|
|
5
5
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
6
6
|
import { VariantInputs } from '@nanahoshi/mona-ui/internal';
|
|
7
|
-
import { ThemeStyle } from '@nanahoshi/mona-ui/theme';
|
|
8
7
|
import { VariantProps } from 'class-variance-authority';
|
|
9
8
|
|
|
10
9
|
declare class TabCloseEvent extends PreventableEvent {
|
|
@@ -41,41 +40,40 @@ interface TabItem {
|
|
|
41
40
|
titleTemplate?: TemplateRef<unknown>;
|
|
42
41
|
}
|
|
43
42
|
|
|
44
|
-
declare const tabListBaseThemeVariants: (
|
|
43
|
+
declare const tabListBaseThemeVariants: (props?: ({
|
|
45
44
|
rounded?: "small" | "medium" | "large" | "full" | "none" | null | undefined;
|
|
46
45
|
size?: "small" | "medium" | "large" | null | undefined;
|
|
47
46
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
48
|
-
declare const tabListListWrapperThemeVariants: (
|
|
49
|
-
declare const tabListListThemeVariants: (
|
|
50
|
-
declare const tabListListItemThemeVariants: (
|
|
47
|
+
declare const tabListListWrapperThemeVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
48
|
+
declare const tabListListThemeVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
49
|
+
declare const tabListListItemThemeVariants: (props?: ({
|
|
51
50
|
active?: boolean | null | undefined;
|
|
52
51
|
disabled?: boolean | null | undefined;
|
|
53
52
|
rounded?: "small" | "medium" | "large" | "full" | "none" | null | undefined;
|
|
54
53
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
55
|
-
declare const tabListScrollButtonThemeVariants: (
|
|
56
|
-
declare const tabContentThemeVariants: (
|
|
54
|
+
declare const tabListScrollButtonThemeVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
55
|
+
declare const tabContentThemeVariants: (props?: ({
|
|
57
56
|
rounded?: "small" | "medium" | "large" | "full" | "none" | null | undefined;
|
|
58
57
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
59
|
-
declare const tabsBaseThemeVariants: (
|
|
60
|
-
type TabListBaseVariantProps = VariantProps<
|
|
58
|
+
declare const tabsBaseThemeVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
59
|
+
type TabListBaseVariantProps = VariantProps<typeof tabListBaseThemeVariants>;
|
|
61
60
|
type TabListBaseVariantInput = VariantInputs<TabListBaseVariantProps>;
|
|
62
|
-
type TabListListWrapperVariantProps = VariantProps<
|
|
61
|
+
type TabListListWrapperVariantProps = VariantProps<typeof tabListListWrapperThemeVariants>;
|
|
63
62
|
type TabListListWrapperVariantInput = VariantInputs<TabListListWrapperVariantProps>;
|
|
64
|
-
type TabListListVariantProps = VariantProps<
|
|
63
|
+
type TabListListVariantProps = VariantProps<typeof tabListListThemeVariants>;
|
|
65
64
|
type TabListListVariantInput = VariantInputs<TabListListVariantProps>;
|
|
66
|
-
type TabListListItemVariantProps = VariantProps<
|
|
65
|
+
type TabListListItemVariantProps = VariantProps<typeof tabListListItemThemeVariants>;
|
|
67
66
|
type TabListListItemVariantInput = VariantInputs<TabListListItemVariantProps>;
|
|
68
|
-
type TabListScrollButtonVariantProps = VariantProps<
|
|
67
|
+
type TabListScrollButtonVariantProps = VariantProps<typeof tabListScrollButtonThemeVariants>;
|
|
69
68
|
type TabListScrollButtonVariantInput = VariantInputs<TabListScrollButtonVariantProps>;
|
|
70
|
-
type TabContentVariantProps = VariantProps<
|
|
69
|
+
type TabContentVariantProps = VariantProps<typeof tabContentThemeVariants>;
|
|
71
70
|
type TabContentVariantInput = VariantInputs<TabContentVariantProps>;
|
|
72
|
-
type TabsBaseVariantProps = VariantProps<
|
|
71
|
+
type TabsBaseVariantProps = VariantProps<typeof tabsBaseThemeVariants>;
|
|
73
72
|
type TabsBaseVariantInput = VariantInputs<TabsBaseVariantProps>;
|
|
74
73
|
type TabListVariantInput = TabListBaseVariantInput & TabListListWrapperVariantInput & TabListListVariantInput & Omit<TabListListItemVariantInput, "active" | "disabled"> & TabListScrollButtonVariantInput;
|
|
75
74
|
type TabsVariantInput = TabsBaseVariantInput & TabListVariantInput & TabContentVariantInput;
|
|
76
75
|
|
|
77
76
|
declare class TabsComponent implements TabsVariantInput {
|
|
78
|
-
#private;
|
|
79
77
|
private readonly tabListComponent;
|
|
80
78
|
private readonly tabs;
|
|
81
79
|
protected readonly baseClass: _angular_core.Signal<string>;
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
3
|
import { VariantInputs } from '@nanahoshi/mona-ui/internal';
|
|
4
|
-
import { ThemeStyle } from '@nanahoshi/mona-ui/theme';
|
|
5
4
|
import { VariantProps } from 'class-variance-authority';
|
|
6
5
|
|
|
7
|
-
declare const textAreaThemeVariants: (
|
|
6
|
+
declare const textAreaThemeVariants: (props?: ({
|
|
8
7
|
rounded?: "large" | "medium" | "none" | "small" | null | undefined;
|
|
9
8
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
10
|
-
type TextAreaVariantProps = VariantProps<
|
|
9
|
+
type TextAreaVariantProps = VariantProps<typeof textAreaThemeVariants>;
|
|
11
10
|
type TextAreaVariantInput = VariantInputs<TextAreaVariantProps>;
|
|
12
11
|
|
|
13
12
|
declare class TextAreaDirective implements TextAreaVariantInput {
|
|
14
|
-
#private;
|
|
15
13
|
protected readonly baseClass: _angular_core.Signal<string>;
|
|
16
14
|
protected readonly inputInvalid: _angular_core.Signal<boolean>;
|
|
17
15
|
/**
|
|
@@ -4,21 +4,20 @@ import { FormValueControl } from '@angular/forms/signals';
|
|
|
4
4
|
import { VariantInputs, AttributeConfig } from '@nanahoshi/mona-ui/internal';
|
|
5
5
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
6
6
|
import { VariantProps } from 'class-variance-authority';
|
|
7
|
-
import { ThemeStyle } from '@nanahoshi/mona-ui/theme';
|
|
8
7
|
|
|
9
8
|
type InputType = "email" | "password" | "text";
|
|
10
9
|
|
|
11
|
-
declare const textBoxThemeVariants: (
|
|
10
|
+
declare const textBoxThemeVariants: (props?: ({
|
|
12
11
|
rounded?: "full" | "large" | "medium" | "none" | "small" | null | undefined;
|
|
13
12
|
size?: "large" | "medium" | "small" | null | undefined;
|
|
14
13
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
15
|
-
declare const inputThemeVariants: (
|
|
14
|
+
declare const inputThemeVariants: (props?: ({
|
|
16
15
|
rounded?: "full" | "large" | "medium" | "none" | "small" | null | undefined;
|
|
17
16
|
size?: "large" | "medium" | "small" | null | undefined;
|
|
18
17
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
19
|
-
type TextBoxVariantProps = VariantProps<
|
|
18
|
+
type TextBoxVariantProps = VariantProps<typeof textBoxThemeVariants>;
|
|
20
19
|
type TextBoxVariantInput = VariantInputs<TextBoxVariantProps>;
|
|
21
|
-
type InputVariantProps = VariantProps<
|
|
20
|
+
type InputVariantProps = VariantProps<typeof inputThemeVariants>;
|
|
22
21
|
type InputVariantInput = VariantInputs<InputVariantProps>;
|
|
23
22
|
|
|
24
23
|
declare class TextBoxComponent implements TextBoxVariantInput, FormValueControl<string> {
|
|
@@ -129,7 +128,6 @@ declare class TextBoxComponent implements TextBoxVariantInput, FormValueControl<
|
|
|
129
128
|
}
|
|
130
129
|
|
|
131
130
|
declare class TextBoxDirective implements InputVariantInput {
|
|
132
|
-
#private;
|
|
133
131
|
protected readonly classes: _angular_core.Signal<string>;
|
|
134
132
|
/**
|
|
135
133
|
* @description Border-radius preset applied to the component.
|
|
@@ -1,23 +1,122 @@
|
|
|
1
|
+
import * as _nanahoshi_mona_ui_theme from '@nanahoshi/mona-ui/theme';
|
|
1
2
|
import * as _angular_core from '@angular/core';
|
|
3
|
+
import { EnvironmentProviders, InjectionToken } from '@angular/core';
|
|
2
4
|
|
|
3
|
-
type
|
|
5
|
+
type BuiltInThemeName = "anna" | "luna" | "mona";
|
|
6
|
+
type ThemeName = string;
|
|
4
7
|
type ThemeVariant = "light" | "dark";
|
|
5
|
-
|
|
8
|
+
interface ThemeSelection {
|
|
9
|
+
readonly name: ThemeName;
|
|
10
|
+
readonly variant: ThemeVariant;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
type ThemeColorVariable = `--color-${string}`;
|
|
14
|
+
type ThemeColors = Readonly<Record<ThemeColorVariable, string>>;
|
|
15
|
+
type ThemeShadowVariable = `--shadow-${string}`;
|
|
16
|
+
type ThemeShadows = Readonly<Record<ThemeShadowVariable, string>>;
|
|
17
|
+
type ThemeVariable = `--${string}`;
|
|
18
|
+
type ThemeVariables = Readonly<Record<ThemeVariable, string>>;
|
|
19
|
+
type ThemeMotionVariable = "--mona-motion-fast" | "--mona-motion-standard";
|
|
20
|
+
type ThemeMotion = Readonly<Record<ThemeMotionVariable, string>>;
|
|
21
|
+
type ThemeEffectLevel = "control" | "overlay" | "raised";
|
|
22
|
+
type ThemeEffectVariable = `--mona-effect-${ThemeEffectLevel}-background-color` | `--mona-effect-${ThemeEffectLevel}-fallback-background-color` | `--mona-effect-${ThemeEffectLevel}-background-image` | `--mona-effect-${ThemeEffectLevel}-backdrop-filter`;
|
|
23
|
+
type ThemeEffects = Readonly<Record<ThemeEffectVariable, string>>;
|
|
24
|
+
type ThemeShapeVariable = "--radius-sm" | "--radius-md" | "--radius-lg";
|
|
25
|
+
type ThemeShape = Readonly<Record<ThemeShapeVariable, string>>;
|
|
26
|
+
type ThemeComponentVariable = "--mona-calendar-background" | "--mona-calendar-shadow" | "--mona-list-background" | "--mona-list-disabled-background" | "--mona-list-group-background" | "--mona-list-group-border-width" | "--mona-list-group-font-weight" | "--mona-menubar-background" | "--mona-menubar-shadow" | "--mona-pager-background" | "--mona-slider-handle-border-color" | "--mona-tab-list-background" | "--mona-tab-content-background";
|
|
27
|
+
type ThemeComponents = Readonly<Record<ThemeComponentVariable, string>>;
|
|
28
|
+
interface ThemeProfile {
|
|
29
|
+
readonly colors: ThemeColors;
|
|
30
|
+
readonly components: ThemeComponents;
|
|
31
|
+
readonly custom?: ThemeVariables;
|
|
32
|
+
readonly effects: ThemeEffects;
|
|
33
|
+
readonly motion: ThemeMotion;
|
|
34
|
+
readonly shape: ThemeShape;
|
|
35
|
+
readonly shadows: ThemeShadows;
|
|
36
|
+
}
|
|
37
|
+
interface ThemeProfileOverrides {
|
|
38
|
+
readonly colors?: ThemeColors;
|
|
39
|
+
readonly components?: Partial<ThemeComponents>;
|
|
40
|
+
readonly custom?: ThemeVariables;
|
|
41
|
+
readonly effects?: Partial<ThemeEffects>;
|
|
42
|
+
readonly motion?: Partial<ThemeMotion>;
|
|
43
|
+
readonly shape?: Partial<ThemeShape>;
|
|
44
|
+
readonly shadows?: ThemeShadows;
|
|
45
|
+
}
|
|
46
|
+
type ThemeFamilyVariants = Readonly<{
|
|
47
|
+
readonly dark: ThemeProfile;
|
|
48
|
+
readonly light?: ThemeProfile;
|
|
49
|
+
} | {
|
|
50
|
+
readonly dark?: ThemeProfile;
|
|
51
|
+
readonly light: ThemeProfile;
|
|
52
|
+
}>;
|
|
53
|
+
interface ThemeFamilyRegistration {
|
|
54
|
+
readonly name: ThemeName;
|
|
55
|
+
readonly variants: ThemeFamilyVariants;
|
|
56
|
+
}
|
|
57
|
+
interface ThemeOverrideRegistration {
|
|
58
|
+
readonly common?: ThemeProfileOverrides;
|
|
59
|
+
readonly dark?: ThemeProfileOverrides;
|
|
60
|
+
readonly light?: ThemeProfileOverrides;
|
|
61
|
+
readonly theme: ThemeName;
|
|
62
|
+
}
|
|
63
|
+
interface ThemeOptions {
|
|
64
|
+
readonly initialTheme: ThemeSelection;
|
|
65
|
+
}
|
|
66
|
+
interface ThemeColorPaletteSeeds {
|
|
67
|
+
readonly error?: string;
|
|
68
|
+
readonly info?: string;
|
|
69
|
+
readonly primary: string;
|
|
70
|
+
readonly secondary?: string;
|
|
71
|
+
readonly success?: string;
|
|
72
|
+
readonly warning?: string;
|
|
73
|
+
}
|
|
74
|
+
type GeneratedThemeColorPalette = Readonly<Record<ThemeVariant, ThemeColors>>;
|
|
75
|
+
interface ThemeColorPaletteRegistration {
|
|
76
|
+
readonly seeds: ThemeColorPaletteSeeds;
|
|
77
|
+
readonly theme: ThemeName;
|
|
78
|
+
}
|
|
79
|
+
declare function flattenThemeProfile(profile: ThemeProfile): ThemeVariables;
|
|
6
80
|
|
|
7
81
|
declare class ThemeService {
|
|
8
82
|
#private;
|
|
9
|
-
|
|
10
|
-
readonly
|
|
11
|
-
readonly
|
|
83
|
+
/** The consumer-provided seeds for the active runtime color palette, or `null` when provider defaults are active. */
|
|
84
|
+
readonly colorPaletteSeeds: _angular_core.Signal<ThemeColorPaletteSeeds | null>;
|
|
85
|
+
readonly profile: _angular_core.Signal<ThemeProfile>;
|
|
86
|
+
readonly selection: _angular_core.Signal<ThemeSelection>;
|
|
87
|
+
readonly themeName: _angular_core.Signal<string>;
|
|
88
|
+
readonly themeVariant: _angular_core.Signal<_nanahoshi_mona_ui_theme.ThemeVariant>;
|
|
12
89
|
constructor();
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
90
|
+
/** Removes the runtime color palette and restores the registered profile and provider overrides. */
|
|
91
|
+
clearColorPalette(): void;
|
|
92
|
+
/**
|
|
93
|
+
* Applies a runtime-generated semantic color palette after all registered profile overrides.
|
|
94
|
+
* The palette remains active across theme and light/dark switches until cleared.
|
|
95
|
+
*/
|
|
96
|
+
setColorPalette(seeds: ThemeColorPaletteSeeds): void;
|
|
97
|
+
/** Updates only the runtime primary seed while retaining any other active runtime seeds. */
|
|
98
|
+
setPrimaryColor(primary: string): void;
|
|
99
|
+
setTheme(selection: ThemeSelection): void;
|
|
18
100
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ThemeService, never>;
|
|
19
101
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ThemeService>;
|
|
20
102
|
}
|
|
21
103
|
|
|
22
|
-
|
|
23
|
-
|
|
104
|
+
declare function provideThemeFamily(registration: ThemeFamilyRegistration): EnvironmentProviders;
|
|
105
|
+
declare function provideThemeOverrides(registration: ThemeOverrideRegistration): EnvironmentProviders;
|
|
106
|
+
declare function provideThemeOptions(options: ThemeOptions): EnvironmentProviders;
|
|
107
|
+
declare function provideThemeColorPalette(registration: ThemeColorPaletteRegistration): EnvironmentProviders;
|
|
108
|
+
|
|
109
|
+
interface ThemeStrategy {
|
|
110
|
+
resolve(selection: ThemeSelection): ThemeProfile;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
declare const THEME_STRATEGY: InjectionToken<ThemeStrategy>;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Generates accessible light and dark color-role overrides from consumer-provided CSS colors.
|
|
117
|
+
* Seed lightness is treated as source identity; the generated variants use fixed tonal anchors.
|
|
118
|
+
*/
|
|
119
|
+
declare function generateThemeColorPalette(seeds: ThemeColorPaletteSeeds): GeneratedThemeColorPalette;
|
|
120
|
+
|
|
121
|
+
export { THEME_STRATEGY, ThemeService, flattenThemeProfile, generateThemeColorPalette, provideThemeColorPalette, provideThemeFamily, provideThemeOptions, provideThemeOverrides };
|
|
122
|
+
export type { BuiltInThemeName, GeneratedThemeColorPalette, ThemeColorPaletteRegistration, ThemeColorPaletteSeeds, ThemeColorVariable, ThemeColors, ThemeComponentVariable, ThemeComponents, ThemeEffectLevel, ThemeEffectVariable, ThemeEffects, ThemeFamilyRegistration, ThemeFamilyVariants, ThemeMotion, ThemeMotionVariable, ThemeName, ThemeOptions, ThemeOverrideRegistration, ThemeProfile, ThemeProfileOverrides, ThemeSelection, ThemeShadowVariable, ThemeShadows, ThemeShape, ThemeShapeVariable, ThemeStrategy, ThemeVariable, ThemeVariables, ThemeVariant };
|
|
@@ -7,16 +7,15 @@ import { VariantInputs, AttributeConfig } from '@nanahoshi/mona-ui/internal';
|
|
|
7
7
|
import { ListSizeInputType } from '@nanahoshi/mona-ui/internal/list';
|
|
8
8
|
import { PopupCloseEvent } from '@nanahoshi/mona-ui/popup';
|
|
9
9
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
10
|
-
import { ThemeStyle } from '@nanahoshi/mona-ui/theme';
|
|
11
10
|
import { VariantProps } from 'class-variance-authority';
|
|
12
11
|
import * as i1 from '@nanahoshi/mona-ui/dropdowns';
|
|
13
12
|
|
|
14
|
-
declare const timePickerBaseThemeVariants: (
|
|
13
|
+
declare const timePickerBaseThemeVariants: (props?: ({
|
|
15
14
|
focused?: boolean | null | undefined;
|
|
16
15
|
rounded?: "full" | "large" | "medium" | "none" | "small" | null | undefined;
|
|
17
16
|
size?: "large" | "medium" | "small" | null | undefined;
|
|
18
17
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
19
|
-
type TimePickerBaseVariantProps = VariantProps<
|
|
18
|
+
type TimePickerBaseVariantProps = VariantProps<typeof timePickerBaseThemeVariants>;
|
|
20
19
|
type TimePickerBaseVariantInput = VariantInputs<TimePickerBaseVariantProps>;
|
|
21
20
|
type TimePickerVariantProps = TimePickerBaseVariantProps;
|
|
22
21
|
type TimePickerVariantInput = Omit<TimePickerBaseVariantInput, "focused">;
|
|
@@ -8,33 +8,32 @@ import { ElementRef } from '@angular/core';
|
|
|
8
8
|
import { FormValueControl } from '@angular/forms/signals';
|
|
9
9
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
10
10
|
import { VariantProps } from 'class-variance-authority';
|
|
11
|
-
import { ThemeStyle } from '@nanahoshi/mona-ui/theme';
|
|
12
11
|
import { VariantInputs } from '@nanahoshi/mona-ui/internal';
|
|
13
12
|
|
|
14
13
|
type TimeListType = "hours" | "minutes" | "seconds" | "meridiem";
|
|
15
14
|
|
|
16
|
-
declare const timeSelectorBaseThemeVariants: (
|
|
15
|
+
declare const timeSelectorBaseThemeVariants: (props?: ({
|
|
17
16
|
disabled?: boolean | null | undefined;
|
|
18
17
|
size?: "small" | "medium" | "large" | null | undefined;
|
|
19
18
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
20
|
-
declare const timeSelectorHeaderThemeVariants: (
|
|
21
|
-
declare const timeSelectorInfoContainerThemeVariants: (
|
|
22
|
-
declare const timeSelectorListThemeVariants: (
|
|
19
|
+
declare const timeSelectorHeaderThemeVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
20
|
+
declare const timeSelectorInfoContainerThemeVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
21
|
+
declare const timeSelectorListThemeVariants: (props?: ({
|
|
23
22
|
size?: "small" | "medium" | "large" | null | undefined;
|
|
24
23
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
25
|
-
declare const timeSelectorListItemThemeVariants: (
|
|
24
|
+
declare const timeSelectorListItemThemeVariants: (props?: ({
|
|
26
25
|
selected?: boolean | null | undefined;
|
|
27
26
|
size?: "small" | "medium" | "large" | null | undefined;
|
|
28
27
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
29
|
-
type TimeSelectorBaseVariantProps = VariantProps<
|
|
28
|
+
type TimeSelectorBaseVariantProps = VariantProps<typeof timeSelectorBaseThemeVariants>;
|
|
30
29
|
type TimeSelectorBaseVariantInput = VariantInputs<TimeSelectorBaseVariantProps>;
|
|
31
|
-
type TimeSelectorHeaderVariantProps = VariantProps<
|
|
30
|
+
type TimeSelectorHeaderVariantProps = VariantProps<typeof timeSelectorHeaderThemeVariants>;
|
|
32
31
|
type TimeSelectorHeaderVariantInput = VariantInputs<TimeSelectorHeaderVariantProps>;
|
|
33
|
-
type TimeSelectorInfoContainerVariantProps = VariantProps<
|
|
32
|
+
type TimeSelectorInfoContainerVariantProps = VariantProps<typeof timeSelectorInfoContainerThemeVariants>;
|
|
34
33
|
type TimeSelectorInfoContainerVariantInput = VariantInputs<TimeSelectorInfoContainerVariantProps>;
|
|
35
|
-
type TimeSelectorListVariantProps = VariantProps<
|
|
34
|
+
type TimeSelectorListVariantProps = VariantProps<typeof timeSelectorListThemeVariants>;
|
|
36
35
|
type TimeSelectorListVariantInput = VariantInputs<TimeSelectorListVariantProps>;
|
|
37
|
-
type TimeSelectorListItemVariantProps = VariantProps<
|
|
36
|
+
type TimeSelectorListItemVariantProps = VariantProps<typeof timeSelectorListItemThemeVariants>;
|
|
38
37
|
type TimeSelectorListItemVariantInput = VariantInputs<TimeSelectorListItemVariantProps>;
|
|
39
38
|
type TimeSelectorVariantProps = TimeSelectorBaseVariantProps & TimeSelectorHeaderVariantProps & TimeSelectorInfoContainerVariantProps & Omit<TimeSelectorListVariantProps, "size"> & Omit<TimeSelectorListItemVariantProps, "size">;
|
|
40
39
|
type TimeSelectorVariantInput = TimeSelectorBaseVariantInput & TimeSelectorHeaderVariantInput & TimeSelectorInfoContainerVariantInput & Omit<TimeSelectorListVariantInput, "size"> & Omit<TimeSelectorListItemVariantInput, "size" | "selected">;
|
|
@@ -4,16 +4,15 @@ import { Position } from '@nanahoshi/mona-ui/common';
|
|
|
4
4
|
import { PopupAnchor, PopupOffset, ConnectionPoint } from '@nanahoshi/mona-ui/popup';
|
|
5
5
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
6
6
|
import { VariantInputs } from '@nanahoshi/mona-ui/internal';
|
|
7
|
-
import { ThemeStyle } from '@nanahoshi/mona-ui/theme';
|
|
8
7
|
import { VariantProps } from 'class-variance-authority';
|
|
9
8
|
|
|
10
|
-
declare const tooltipBaseThemeVariants: (
|
|
9
|
+
declare const tooltipBaseThemeVariants: (props?: ({
|
|
11
10
|
rounded?: "full" | "large" | "medium" | "none" | "small" | null | undefined;
|
|
12
11
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
13
|
-
declare const tooltipArrowThemeVariants: (
|
|
14
|
-
type TooltipBaseVariantProps = VariantProps<
|
|
12
|
+
declare const tooltipArrowThemeVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
13
|
+
type TooltipBaseVariantProps = VariantProps<typeof tooltipBaseThemeVariants>;
|
|
15
14
|
type TooltipBaseVariantInputs = VariantInputs<TooltipBaseVariantProps>;
|
|
16
|
-
type TooltipArrowVariantsProps = VariantProps<
|
|
15
|
+
type TooltipArrowVariantsProps = VariantProps<typeof tooltipArrowThemeVariants>;
|
|
17
16
|
type TooltipArrowVariantsInputs = VariantInputs<TooltipArrowVariantsProps>;
|
|
18
17
|
type TooltipVariantInputs = TooltipBaseVariantInputs & TooltipArrowVariantsInputs;
|
|
19
18
|
|