@number10/phaserjsx 4.3.0 → 4.5.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/README.md +9 -3
- package/dist/colors/color-presets.d.ts +1 -1
- package/dist/colors/color-presets.d.ts.map +1 -1
- package/dist/colors/color-types.d.ts +20 -8
- package/dist/colors/color-types.d.ts.map +1 -1
- package/dist/colors/color-utils.d.ts +29 -27
- package/dist/colors/color-utils.d.ts.map +1 -1
- package/dist/colors/index.d.ts +3 -3
- package/dist/colors/index.d.ts.map +1 -1
- package/dist/colors/preset-manager.d.ts.map +1 -1
- package/dist/colors/use-colors.d.ts +0 -4
- package/dist/colors/use-colors.d.ts.map +1 -1
- package/dist/components/backgroundImage.d.ts.map +1 -1
- package/dist/components/custom/ActivityIndicator.d.ts +43 -0
- package/dist/components/custom/ActivityIndicator.d.ts.map +1 -0
- package/dist/components/custom/Badge.d.ts.map +1 -1
- package/dist/components/custom/BottomSheet.d.ts +86 -0
- package/dist/components/custom/BottomSheet.d.ts.map +1 -0
- package/dist/components/custom/Button.d.ts +25 -2
- package/dist/components/custom/Button.d.ts.map +1 -1
- package/dist/components/custom/CharTextInput.d.ts +10 -0
- package/dist/components/custom/CharTextInput.d.ts.map +1 -1
- package/dist/components/custom/Checkbox.d.ts.map +1 -1
- package/dist/components/custom/ColorPicker.d.ts +72 -0
- package/dist/components/custom/ColorPicker.d.ts.map +1 -0
- package/dist/components/custom/Dropdown.d.ts +1 -1
- package/dist/components/custom/Dropdown.d.ts.map +1 -1
- package/dist/components/custom/Icon.d.ts.map +1 -1
- package/dist/components/custom/Icon.test.d.ts +2 -0
- package/dist/components/custom/Icon.test.d.ts.map +1 -0
- package/dist/components/custom/ListBox.d.ts +77 -0
- package/dist/components/custom/ListBox.d.ts.map +1 -0
- package/dist/components/custom/MenuButton.d.ts +40 -0
- package/dist/components/custom/MenuButton.d.ts.map +1 -0
- package/dist/components/custom/NumberInput.d.ts +143 -0
- package/dist/components/custom/NumberInput.d.ts.map +1 -0
- package/dist/components/custom/PalettePicker.d.ts +96 -0
- package/dist/components/custom/PalettePicker.d.ts.map +1 -0
- package/dist/components/custom/Popover.d.ts +9 -0
- package/dist/components/custom/Popover.d.ts.map +1 -1
- package/dist/components/custom/ProgressBar.d.ts.map +1 -1
- package/dist/components/custom/ProgressView.d.ts +47 -0
- package/dist/components/custom/ProgressView.d.ts.map +1 -0
- package/dist/components/custom/RadioButton.d.ts +8 -0
- package/dist/components/custom/RadioButton.d.ts.map +1 -1
- package/dist/components/custom/RadioGroup.d.ts +4 -0
- package/dist/components/custom/RadioGroup.d.ts.map +1 -1
- package/dist/components/custom/RatingBar.d.ts +48 -0
- package/dist/components/custom/RatingBar.d.ts.map +1 -0
- package/dist/components/custom/ScrollSlider.d.ts +7 -1
- package/dist/components/custom/ScrollSlider.d.ts.map +1 -1
- package/dist/components/custom/ScrollView.d.ts.map +1 -1
- package/dist/components/custom/SegmentedControl.d.ts +99 -0
- package/dist/components/custom/SegmentedControl.d.ts.map +1 -0
- package/dist/components/custom/Toast.d.ts +89 -0
- package/dist/components/custom/Toast.d.ts.map +1 -0
- package/dist/components/custom/Toggle.d.ts.map +1 -1
- package/dist/components/custom/Toolbar.d.ts +134 -0
- package/dist/components/custom/Toolbar.d.ts.map +1 -0
- package/dist/components/custom/WheelPicker.d.ts +63 -0
- package/dist/components/custom/WheelPicker.d.ts.map +1 -0
- package/dist/components/custom/index.cjs +39 -1
- package/dist/components/custom/index.d.ts +18 -5
- package/dist/components/custom/index.d.ts.map +1 -1
- package/dist/components/custom/index.js +2 -2
- package/dist/components/custom/useOverlayPresence.d.ts +9 -0
- package/dist/components/custom/useOverlayPresence.d.ts.map +1 -0
- package/dist/components/index.d.ts +16 -5
- package/dist/components/index.d.ts.map +1 -1
- package/dist/{custom-DMZASXll.js → custom-pRNJ0_kS.js} +17044 -27908
- package/dist/custom-pRNJ0_kS.js.map +1 -0
- package/dist/{custom-37gL0VZG.cjs → custom-rkdLsk0U.cjs} +17358 -27863
- package/dist/custom-rkdLsk0U.cjs.map +1 -0
- package/dist/design-tokens/component-size-presets.d.ts +52 -0
- package/dist/design-tokens/component-size-presets.d.ts.map +1 -0
- package/dist/design-tokens/index.d.ts +2 -0
- package/dist/design-tokens/index.d.ts.map +1 -1
- package/dist/dev-config.d.ts.map +1 -1
- package/dist/index.cjs +61 -254
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -242
- package/dist/index.js.map +1 -1
- package/dist/jsx-runtime.cjs +4 -1
- package/dist/jsx-runtime.cjs.map +1 -1
- package/dist/jsx-runtime.d.ts.map +1 -1
- package/dist/jsx-runtime.js +4 -1
- package/dist/jsx-runtime.js.map +1 -1
- package/dist/layout/utils/child-utils.d.ts.map +1 -1
- package/dist/layout/utils/dimension-calculator.d.ts.map +1 -1
- package/dist/scripts/generate-icon-loaders.js +27 -1
- package/dist/scripts/generate-icons.d.ts.map +1 -1
- package/dist/scripts/generate-icons.js +27 -1
- package/dist/theme-custom.d.ts +293 -8
- package/dist/theme-custom.d.ts.map +1 -1
- package/dist/theme-defaults.d.ts.map +1 -1
- package/dist/theme.d.ts +9 -0
- package/dist/theme.d.ts.map +1 -1
- package/dist/vdom.d.ts.map +1 -1
- package/package.json +1 -3
- package/dist/custom-37gL0VZG.cjs.map +0 -1
- package/dist/custom-DMZASXll.js.map +0 -1
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
import { VNodeLike } from '../../vdom';
|
|
2
2
|
/** Size variants for the scroll slider */
|
|
3
3
|
export type SliderSize = 'large' | 'medium' | 'small' | 'tiny' | 'micro' | 'nano' | undefined;
|
|
4
|
+
type ScrollSliderSizeTheme = {
|
|
5
|
+
borderWidth?: number;
|
|
6
|
+
size?: number;
|
|
7
|
+
};
|
|
4
8
|
/**
|
|
5
9
|
* Calculate slider dimensions based on size variant and theme
|
|
6
10
|
* @param size - Size variant
|
|
11
|
+
* @param theme - Optional resolved ScrollSlider theme values
|
|
7
12
|
* @returns Calculated dimensions
|
|
8
13
|
*/
|
|
9
|
-
export declare function calculateSliderSize(size: SliderSize): {
|
|
14
|
+
export declare function calculateSliderSize(size: SliderSize, theme?: ScrollSliderSizeTheme): {
|
|
10
15
|
border: number;
|
|
11
16
|
outer: number;
|
|
12
17
|
dimension: number;
|
|
@@ -38,4 +43,5 @@ export interface ScrollSliderProps {
|
|
|
38
43
|
* @returns JSX element
|
|
39
44
|
*/
|
|
40
45
|
export declare function ScrollSlider(props: ScrollSliderProps): VNodeLike;
|
|
46
|
+
export {};
|
|
41
47
|
//# sourceMappingURL=ScrollSlider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScrollSlider.d.ts","sourceRoot":"","sources":["../../../src/components/custom/ScrollSlider.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAI3C,0CAA0C;AAC1C,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAA;AAE7F
|
|
1
|
+
{"version":3,"file":"ScrollSlider.d.ts","sourceRoot":"","sources":["../../../src/components/custom/ScrollSlider.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAI3C,0CAA0C;AAC1C,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAA;AAE7F,KAAK,qBAAqB,GAAG;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,CAAA;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,CAAC,EAAE,qBAAqB;;;;EAmBlF;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,8BAA8B;IAC9B,SAAS,EAAE,UAAU,GAAG,YAAY,CAAA;IACpC,mDAAmD;IACnD,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB,wCAAwC;IACxC,cAAc,EAAE,MAAM,CAAA;IACtB,8BAA8B;IAC9B,YAAY,EAAE,MAAM,CAAA;IACpB,6BAA6B;IAC7B,WAAW,EAAE,MAAM,CAAA;IACnB,8EAA8E;IAC9E,QAAQ,EAAE,CAAC,cAAc,EAAE,MAAM,KAAK,IAAI,CAAA;IAC1C,mDAAmD;IACnD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,qEAAqE;IACrE,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;CAC3B;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAAG,SAAS,CAyMhE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScrollView.d.ts","sourceRoot":"","sources":["../../../src/components/custom/ScrollView.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,IAAI,CAAA;
|
|
1
|
+
{"version":3,"file":"ScrollView.d.ts","sourceRoot":"","sources":["../../../src/components/custom/ScrollView.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,IAAI,CAAA;AAKnC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAE3C,OAAO,EAAqC,KAAK,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAEnF;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,yCAAyC;IACzC,EAAE,EAAE,MAAM,CAAA;IACV,uCAAuC;IACvC,EAAE,EAAE,MAAM,CAAA;IACV,qBAAqB;IACrB,aAAa,EAAE,MAAM,CAAA;IACrB,sBAAsB;IACtB,cAAc,EAAE,MAAM,CAAA;IACtB,oBAAoB;IACpB,YAAY,EAAE,MAAM,CAAA;IACpB,qBAAqB;IACrB,aAAa,EAAE,M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AC,MAAM,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAA;CACjE;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,GAAG,SAAS,CAkrB5D"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { ViewProps } from '..';
|
|
2
|
+
import { PartialTheme, ViewTheme } from '../../theme-base';
|
|
3
|
+
import { ChildrenType } from '../../types';
|
|
4
|
+
import { VNodeLike } from '../../vdom';
|
|
5
|
+
export type SegmentedControlOrientation = 'horizontal' | 'vertical';
|
|
6
|
+
export type SegmentedControlSize = 'small' | 'medium' | 'large';
|
|
7
|
+
export type SegmentedControlVariant = 'solid' | 'soft' | 'outline';
|
|
8
|
+
export type SegmentedControlLabelPosition = 'left' | 'top' | 'none';
|
|
9
|
+
export interface SegmentedControlLabels {
|
|
10
|
+
/** Optional visible group label. */
|
|
11
|
+
group?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface SegmentedControlOption {
|
|
14
|
+
/** Unique option value. */
|
|
15
|
+
value: string;
|
|
16
|
+
/** Visible text for this segment. Falls back to value when no icon/children are provided. */
|
|
17
|
+
label?: string;
|
|
18
|
+
/** Optional leading icon or glyph content. */
|
|
19
|
+
icon?: ChildrenType;
|
|
20
|
+
/** Full custom segment content. Takes precedence over icon and label. */
|
|
21
|
+
children?: ChildrenType;
|
|
22
|
+
/** Disabled options cannot be selected. */
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
}
|
|
25
|
+
export interface SegmentedControlOptionRenderProps {
|
|
26
|
+
option: SegmentedControlOption;
|
|
27
|
+
selected: boolean;
|
|
28
|
+
disabled: boolean;
|
|
29
|
+
hovered: boolean;
|
|
30
|
+
index: number;
|
|
31
|
+
size: SegmentedControlSize;
|
|
32
|
+
variant: SegmentedControlVariant;
|
|
33
|
+
orientation: SegmentedControlOrientation;
|
|
34
|
+
textStyle?: Phaser.Types.GameObjects.Text.TextStyle;
|
|
35
|
+
iconSize?: number;
|
|
36
|
+
}
|
|
37
|
+
export interface SegmentedControlThemeSlot extends ViewTheme {
|
|
38
|
+
orientation?: SegmentedControlOrientation;
|
|
39
|
+
size?: SegmentedControlSize;
|
|
40
|
+
variant?: SegmentedControlVariant;
|
|
41
|
+
segmentWidth?: ViewTheme['width'];
|
|
42
|
+
segmentHeight?: ViewTheme['height'];
|
|
43
|
+
segmentGap?: number;
|
|
44
|
+
segmentPadding?: ViewTheme['padding'];
|
|
45
|
+
segmentCornerRadius?: ViewTheme['cornerRadius'];
|
|
46
|
+
segmentStyle?: ViewTheme;
|
|
47
|
+
segmentHoverStyle?: ViewTheme;
|
|
48
|
+
segmentSelectedStyle?: ViewTheme;
|
|
49
|
+
segmentDisabledStyle?: ViewTheme;
|
|
50
|
+
textStyle?: Phaser.Types.GameObjects.Text.TextStyle;
|
|
51
|
+
selectedTextStyle?: Phaser.Types.GameObjects.Text.TextStyle;
|
|
52
|
+
disabledTextStyle?: Phaser.Types.GameObjects.Text.TextStyle;
|
|
53
|
+
labelStyle?: Phaser.Types.GameObjects.Text.TextStyle;
|
|
54
|
+
iconGap?: number;
|
|
55
|
+
iconSize?: number;
|
|
56
|
+
disabledAlpha?: number;
|
|
57
|
+
labelPosition?: SegmentedControlLabelPosition;
|
|
58
|
+
labels?: SegmentedControlLabels;
|
|
59
|
+
}
|
|
60
|
+
export interface SegmentedControlProps extends Omit<ViewProps, 'children'> {
|
|
61
|
+
/** Available segments. */
|
|
62
|
+
options: SegmentedControlOption[];
|
|
63
|
+
/** Selected value in controlled mode. */
|
|
64
|
+
value?: string;
|
|
65
|
+
/** Initial selected value in uncontrolled mode. */
|
|
66
|
+
defaultValue?: string;
|
|
67
|
+
/** Called when a selectable segment is selected. */
|
|
68
|
+
onChange?: (value: string) => void;
|
|
69
|
+
/** Layout orientation. */
|
|
70
|
+
orientation?: SegmentedControlOrientation;
|
|
71
|
+
/** Size preset. */
|
|
72
|
+
size?: SegmentedControlSize;
|
|
73
|
+
/** Visual variant. */
|
|
74
|
+
variant?: SegmentedControlVariant;
|
|
75
|
+
/** Optional visible group label. Takes precedence over labels.group. */
|
|
76
|
+
label?: string;
|
|
77
|
+
/** Position of the optional visible group label. */
|
|
78
|
+
labelPosition?: SegmentedControlLabelPosition;
|
|
79
|
+
/** Localized labels. */
|
|
80
|
+
labels?: SegmentedControlLabels;
|
|
81
|
+
/** Disabled state for the whole control. */
|
|
82
|
+
disabled?: boolean;
|
|
83
|
+
/** Fixed segment width. */
|
|
84
|
+
segmentWidth?: ViewProps['width'];
|
|
85
|
+
/** Fixed segment height. */
|
|
86
|
+
segmentHeight?: ViewProps['height'];
|
|
87
|
+
/** Render custom segment content. */
|
|
88
|
+
renderOption?: (props: SegmentedControlOptionRenderProps) => ChildrenType;
|
|
89
|
+
/** Theme overrides. */
|
|
90
|
+
theme?: PartialTheme;
|
|
91
|
+
}
|
|
92
|
+
export declare function findSegmentedControlOption(options: SegmentedControlOption[], value: string | undefined): SegmentedControlOption | undefined;
|
|
93
|
+
export declare function resolveSegmentedControlValue(options: SegmentedControlOption[], value?: string, defaultValue?: string): string;
|
|
94
|
+
export declare function isSegmentedControlOptionSelectable(option: SegmentedControlOption, currentValue: string, disabled?: boolean): boolean;
|
|
95
|
+
/**
|
|
96
|
+
* SegmentedControl component
|
|
97
|
+
*/
|
|
98
|
+
export declare function SegmentedControl(props: SegmentedControlProps): VNodeLike;
|
|
99
|
+
//# sourceMappingURL=SegmentedControl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SegmentedControl.d.ts","sourceRoot":"","sources":["../../../src/components/custom/SegmentedControl.tsx"],"names":[],"mappings":"AAAA,6BAA6B;AAC7B;;;GAGG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,IAAI,CAAA;AAInC,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAC/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC/C,OA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|
|
3
|
+
import { VNodeLike } from '../../vdom';
|
|
4
|
+
import { ViewProps } from '../index';
|
|
5
|
+
export type ToastVariant = 'info' | 'success' | 'warning' | 'error';
|
|
6
|
+
export type NotificationStackPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'top' | 'bottom';
|
|
7
|
+
export interface ToastLabels {
|
|
8
|
+
close?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ToastVariantTheme extends ViewTheme {
|
|
11
|
+
accentColor?: number;
|
|
12
|
+
prefix?: ChildrenType;
|
|
13
|
+
titleStyle?: Phaser.Types.GameObjects.Text.TextStyle;
|
|
14
|
+
messageStyle?: Phaser.Types.GameObjects.Text.TextStyle;
|
|
15
|
+
}
|
|
16
|
+
export interface ToastThemeSlot extends ViewTheme {
|
|
17
|
+
variant?: ToastVariant;
|
|
18
|
+
width?: ViewProps['width'];
|
|
19
|
+
minHeight?: ViewProps['height'];
|
|
20
|
+
gap?: number;
|
|
21
|
+
contentGap?: number;
|
|
22
|
+
accentWidth?: number;
|
|
23
|
+
prefixWidth?: number;
|
|
24
|
+
titleStyle?: Phaser.Types.GameObjects.Text.TextStyle;
|
|
25
|
+
messageStyle?: Phaser.Types.GameObjects.Text.TextStyle;
|
|
26
|
+
closeButtonSize?: number;
|
|
27
|
+
closeTextStyle?: Phaser.Types.GameObjects.Text.TextStyle;
|
|
28
|
+
labels?: ToastLabels;
|
|
29
|
+
variants?: Partial<Record<ToastVariant, ToastVariantTheme>>;
|
|
30
|
+
}
|
|
31
|
+
export interface ToastItem {
|
|
32
|
+
id: string;
|
|
33
|
+
variant?: ToastVariant;
|
|
34
|
+
title?: string;
|
|
35
|
+
message?: string;
|
|
36
|
+
content?: ChildrenType;
|
|
37
|
+
prefix?: ChildrenType;
|
|
38
|
+
suffix?: ChildrenType;
|
|
39
|
+
action?: ChildrenType;
|
|
40
|
+
dismissible?: boolean;
|
|
41
|
+
duration?: number;
|
|
42
|
+
autoDismiss?: boolean;
|
|
43
|
+
}
|
|
44
|
+
export interface ToastProps extends Omit<ViewProps, 'children'> {
|
|
45
|
+
variant?: ToastVariant;
|
|
46
|
+
title?: string;
|
|
47
|
+
message?: string;
|
|
48
|
+
children?: ChildrenType;
|
|
49
|
+
prefix?: ChildrenType;
|
|
50
|
+
suffix?: ChildrenType;
|
|
51
|
+
action?: ChildrenType;
|
|
52
|
+
dismissible?: boolean;
|
|
53
|
+
onDismiss?: () => void;
|
|
54
|
+
labels?: ToastLabels;
|
|
55
|
+
theme?: PartialTheme;
|
|
56
|
+
}
|
|
57
|
+
export interface NotificationStackProps extends Omit<ViewProps, 'children'> {
|
|
58
|
+
items: ToastItem[];
|
|
59
|
+
position?: NotificationStackPosition;
|
|
60
|
+
width?: ViewProps['width'];
|
|
61
|
+
gap?: number;
|
|
62
|
+
offset?: number;
|
|
63
|
+
duration?: number;
|
|
64
|
+
depth?: number;
|
|
65
|
+
labels?: ToastLabels;
|
|
66
|
+
onDismiss?: (id: string) => void;
|
|
67
|
+
theme?: PartialTheme;
|
|
68
|
+
}
|
|
69
|
+
export interface NotificationStackAlignment {
|
|
70
|
+
justifyContent: NonNullable<ViewProps['justifyContent']>;
|
|
71
|
+
alignItems: NonNullable<ViewProps['alignItems']>;
|
|
72
|
+
}
|
|
73
|
+
export interface ToastContentWidthOptions {
|
|
74
|
+
width: ViewProps['width'];
|
|
75
|
+
padding: ViewProps['padding'];
|
|
76
|
+
gap: number;
|
|
77
|
+
accentWidth: number;
|
|
78
|
+
hasPrefix: boolean;
|
|
79
|
+
prefixWidth: number;
|
|
80
|
+
hasClose: boolean;
|
|
81
|
+
closeButtonSize: number;
|
|
82
|
+
minContentWidth?: number;
|
|
83
|
+
}
|
|
84
|
+
export declare function resolveNotificationStackAlignment(position: NotificationStackPosition): NotificationStackAlignment;
|
|
85
|
+
export declare function getToastAutoDismissDuration(item: ToastItem, fallbackDuration: number): number;
|
|
86
|
+
export declare function getToastContentWidth(options: ToastContentWidthOptions): number | undefined;
|
|
87
|
+
export declare function Toast(props: ToastProps): VNodeLike;
|
|
88
|
+
export declare function NotificationStack(props: NotificationStackProps): VNodeLike;
|
|
89
|
+
//# sourceMappingURL=Toast.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../src/components/custom/Toast.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAC/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAC3C,OAAO,EAAsB,KAAK,SAAS,EAAE,MAAM,UAAU,CAAA;AAI7D,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAA;AACnE,MAAM,MAAM,yBAAyB,GACjC,UAAU,GACV,WAAW,GACX,aAAa,GACb,cAAc,GACd,KAAK,GACL,QAAQ,CAAA;AAEZ,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,iBAAkB,SAAQ,SAAS;IAClD,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,SAAS,CAAA;IACpD,YAAY,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,SAAS,CAAA;CACvD;AAED,MAAM,WAAW,cAAe,SAAQ,SAAS;IAC/C,OAAO,CAAC,EAAE,YAAY,CAAA;IACtB,KAAK,CAAC,EAAE,SAAS,CAAC,OAAO,CAAC,CAAA;IAC1B,SAAS,CAAC,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAA;IAC/B,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,UAAU,CAAC,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.d.ts","sourceRoot":"","sources":["../../../src/components/custom/Toggle.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAqB3C;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,uCAAuC;IACvC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,yCAAyC;IACzC,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;IACrC,0BAA0B;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,wCAAwC;IACxC,aAAa,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAA;IACzC,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,2CAA2C;IAC3C,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,8BAA8B;IAC9B,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,sBAAsB;IACtB,KAAK,CAAC,EAAE,YAAY,CAAA;CACrB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,GAAG,SAAS,CAwRpD"}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { ViewProps } from '..';
|
|
2
|
+
import { PartialTheme, ViewTheme } from '../../theme-base';
|
|
3
|
+
import { ChildrenType } from '../../types';
|
|
4
|
+
import { VNodeLike } from '../../vdom';
|
|
5
|
+
import { ButtonProps } from '../index';
|
|
6
|
+
import { ButtonSize, ButtonVariant } from './Button';
|
|
7
|
+
import { ContextMenuItem } from './Popover';
|
|
8
|
+
export type ToolbarOrientation = 'horizontal' | 'vertical';
|
|
9
|
+
export type ToolbarDensity = 'compact' | 'normal';
|
|
10
|
+
export type ToolbarItemType = 'action' | 'toggle' | 'separator' | 'menu';
|
|
11
|
+
export interface ToolbarLabels {
|
|
12
|
+
overflow?: string;
|
|
13
|
+
menuIndicator?: string;
|
|
14
|
+
}
|
|
15
|
+
interface ToolbarBaseItem {
|
|
16
|
+
/** Unique item id. Required for action, toggle, and menu items. */
|
|
17
|
+
id?: string;
|
|
18
|
+
/** Item type. Omitted type defaults to action. */
|
|
19
|
+
type?: ToolbarItemType;
|
|
20
|
+
/** Visible or tooltip label. */
|
|
21
|
+
label?: string;
|
|
22
|
+
/** Optional icon/glyph content. */
|
|
23
|
+
icon?: ChildrenType;
|
|
24
|
+
/** Full custom button content. Takes precedence over icon and label. */
|
|
25
|
+
children?: ChildrenType;
|
|
26
|
+
/** Hide generated label text while keeping label available for tooltips. */
|
|
27
|
+
showLabel?: boolean;
|
|
28
|
+
/** Disabled item state. */
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
/** Tooltip text. Falls back to label when labels are hidden. */
|
|
31
|
+
tooltip?: string;
|
|
32
|
+
/** Item-specific button variant. */
|
|
33
|
+
buttonVariant?: ButtonVariant;
|
|
34
|
+
/** Item-specific button size. */
|
|
35
|
+
buttonSize?: ButtonSize;
|
|
36
|
+
/** Button prop overrides. */
|
|
37
|
+
buttonProps?: Omit<ButtonProps, 'children' | 'label' | 'onClick' | 'disabled'>;
|
|
38
|
+
/** Called before Toolbar onSelect. */
|
|
39
|
+
onSelect?: (id: string) => void;
|
|
40
|
+
}
|
|
41
|
+
export interface ToolbarActionItem extends ToolbarBaseItem {
|
|
42
|
+
type?: 'action';
|
|
43
|
+
id: string;
|
|
44
|
+
}
|
|
45
|
+
export interface ToolbarToggleItem extends ToolbarBaseItem {
|
|
46
|
+
type: 'toggle';
|
|
47
|
+
id: string;
|
|
48
|
+
/** Controlled pressed state for this toggle. */
|
|
49
|
+
pressed?: boolean;
|
|
50
|
+
/** Initial pressed state for uncontrolled toolbars. */
|
|
51
|
+
defaultPressed?: boolean;
|
|
52
|
+
/** Allow clicking an active toggle to clear it. */
|
|
53
|
+
allowDeselect?: boolean;
|
|
54
|
+
/** Called when the toggle pressed state changes. */
|
|
55
|
+
onToggle?: (pressed: boolean, id: string) => void;
|
|
56
|
+
}
|
|
57
|
+
export interface ToolbarMenuItem extends ToolbarBaseItem {
|
|
58
|
+
type: 'menu';
|
|
59
|
+
id: string;
|
|
60
|
+
/** Future-facing menu item payload; render with MenuButton when overlay behavior is needed. */
|
|
61
|
+
items?: ContextMenuItem[];
|
|
62
|
+
}
|
|
63
|
+
export interface ToolbarSeparatorItem {
|
|
64
|
+
type: 'separator';
|
|
65
|
+
id?: string;
|
|
66
|
+
length?: ViewProps['width'];
|
|
67
|
+
thickness?: number;
|
|
68
|
+
}
|
|
69
|
+
export type ToolbarItem = ToolbarActionItem | ToolbarToggleItem | ToolbarMenuItem | ToolbarSeparatorItem;
|
|
70
|
+
export interface ToolbarThemeSlot extends ViewTheme {
|
|
71
|
+
orientation?: ToolbarOrientation;
|
|
72
|
+
density?: ToolbarDensity;
|
|
73
|
+
itemWidth?: ViewTheme['width'];
|
|
74
|
+
itemHeight?: ViewTheme['height'];
|
|
75
|
+
compactItemWidth?: ViewTheme['width'];
|
|
76
|
+
compactItemHeight?: ViewTheme['height'];
|
|
77
|
+
itemGap?: number;
|
|
78
|
+
groupGap?: number;
|
|
79
|
+
buttonVariant?: ButtonVariant;
|
|
80
|
+
activeButtonVariant?: ButtonVariant;
|
|
81
|
+
menuButtonVariant?: ButtonVariant;
|
|
82
|
+
buttonSize?: ButtonSize;
|
|
83
|
+
compactButtonSize?: ButtonSize;
|
|
84
|
+
textStyle?: Phaser.Types.GameObjects.Text.TextStyle;
|
|
85
|
+
activeTextStyle?: Phaser.Types.GameObjects.Text.TextStyle;
|
|
86
|
+
disabledTextStyle?: Phaser.Types.GameObjects.Text.TextStyle;
|
|
87
|
+
menuIndicatorStyle?: Phaser.Types.GameObjects.Text.TextStyle;
|
|
88
|
+
iconSize?: number;
|
|
89
|
+
compactIconSize?: number;
|
|
90
|
+
separatorColor?: number;
|
|
91
|
+
separatorThickness?: number;
|
|
92
|
+
separatorLength?: ViewProps['width'];
|
|
93
|
+
disabledAlpha?: number;
|
|
94
|
+
labels?: ToolbarLabels;
|
|
95
|
+
}
|
|
96
|
+
export interface ToolbarProps extends Omit<ViewProps, 'children'> {
|
|
97
|
+
/** Toolbar items. */
|
|
98
|
+
items: ToolbarItem[];
|
|
99
|
+
/** Active tool id in controlled mode. */
|
|
100
|
+
activeId?: string;
|
|
101
|
+
/** Initial active tool id in uncontrolled mode. */
|
|
102
|
+
defaultActiveId?: string;
|
|
103
|
+
/** Called when an action, toggle, or menu trigger is selected. */
|
|
104
|
+
onSelect?: (id: string, item: Exclude<ToolbarItem, ToolbarSeparatorItem>) => void;
|
|
105
|
+
/** Called when a toggle item changes pressed state. */
|
|
106
|
+
onToggle?: (id: string, pressed: boolean, item: ToolbarToggleItem) => void;
|
|
107
|
+
/** Layout orientation. */
|
|
108
|
+
orientation?: ToolbarOrientation;
|
|
109
|
+
/** Density preset. */
|
|
110
|
+
density?: ToolbarDensity;
|
|
111
|
+
/** Hide generated labels for compact icon-only toolbars. */
|
|
112
|
+
showLabels?: boolean;
|
|
113
|
+
/** Disable the entire toolbar. */
|
|
114
|
+
disabled?: boolean;
|
|
115
|
+
/** Localized labels. */
|
|
116
|
+
labels?: ToolbarLabels;
|
|
117
|
+
/** Theme overrides. */
|
|
118
|
+
theme?: PartialTheme;
|
|
119
|
+
}
|
|
120
|
+
export declare function isToolbarSeparatorItem(item: ToolbarItem): item is ToolbarSeparatorItem;
|
|
121
|
+
export declare function isToolbarToggleItem(item: ToolbarItem): item is ToolbarToggleItem;
|
|
122
|
+
export declare function isToolbarMenuItem(item: ToolbarItem): item is ToolbarMenuItem;
|
|
123
|
+
export declare function getToolbarItemId(item: ToolbarItem, index: number): string;
|
|
124
|
+
export declare function resolveToolbarActiveId(items: ToolbarItem[], activeId?: string): string | undefined;
|
|
125
|
+
/**
|
|
126
|
+
* Toolbar component
|
|
127
|
+
*/
|
|
128
|
+
export declare function Toolbar(props: ToolbarProps): VNodeLike;
|
|
129
|
+
/**
|
|
130
|
+
* ToolButtonGroup is an alias for Toolbar when a button-group name fits the UI better.
|
|
131
|
+
*/
|
|
132
|
+
export declare function ToolButtonGroup(props: ToolbarProps): VNodeLike;
|
|
133
|
+
export {};
|
|
134
|
+
//# sourceMappingURL=Toolbar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toolbar.d.ts","sourceRoot":"","sources":["../../../src/components/custom/Toolbar.tsx"],"names":[],"mappings":"AAAA,6BAA6B;AAC7B;;;GAGG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,IAAI,CAAA;AAInC,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAC/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAC3C,OAAO,EAAsB,KAAK,WAAW,EAAE,MAAM,UAAU,CAAA;AAC/D,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAGzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AAEhD,MAAM,MAAM,kBAAkB,GAAG,YAAY,GAAG,UAAU,CAAA;AAC1D,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,QAAQ,CAAA;AACjD,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,QAAQ,GAAG,WAAW,GAAG,MAAM,CAAA;AAExE,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED,UAAU,eAAe;IACvB,mEAAmE;IACnE,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,kDAAkD;IAClD,IAAI,CAAC,EAAE,eAAe,CAAA;IACtB,gCAAgC;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F;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,IAAI,eAAe,CAE5E;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAEzE;AAED,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,WAAW,EAAE,EACpB,QAAQ,CAAC,EAAE,MAAM,GAChB,MAAM,GAAG,SAAS,CAKpB;AA8BD;;GAEG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,YAAY,GAAG,SAAS,CAiPtD;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,YAAY,GAAG,SAAS,CAE9D"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { PartialTheme, ViewTheme } from '../../theme-base';
|
|
2
|
+
import { ChildrenType } from '../../types';
|
|
3
|
+
import { VNodeLike } from '../../vdom';
|
|
4
|
+
import { ViewProps } from '../index';
|
|
5
|
+
export interface WheelPickerLabels {
|
|
6
|
+
empty?: string;
|
|
7
|
+
}
|
|
8
|
+
export type WheelPickerSize = 'small' | 'medium' | 'large';
|
|
9
|
+
export interface WheelPickerItem {
|
|
10
|
+
value: string;
|
|
11
|
+
label: string;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface WheelPickerItemRenderProps {
|
|
15
|
+
item: WheelPickerItem;
|
|
16
|
+
selected: boolean;
|
|
17
|
+
disabled: boolean;
|
|
18
|
+
index: number;
|
|
19
|
+
distanceFromCenter: number;
|
|
20
|
+
textStyle?: Phaser.Types.GameObjects.Text.TextStyle;
|
|
21
|
+
}
|
|
22
|
+
export interface WheelPickerThemeSlot extends ViewTheme {
|
|
23
|
+
size?: WheelPickerSize;
|
|
24
|
+
itemHeight?: number;
|
|
25
|
+
visibleItems?: number;
|
|
26
|
+
itemPadding?: ViewTheme['padding'];
|
|
27
|
+
textColor?: string;
|
|
28
|
+
textStyle?: Phaser.Types.GameObjects.Text.TextStyle;
|
|
29
|
+
selectedTextStyle?: Phaser.Types.GameObjects.Text.TextStyle;
|
|
30
|
+
disabledTextStyle?: Phaser.Types.GameObjects.Text.TextStyle;
|
|
31
|
+
overlayAlpha?: number;
|
|
32
|
+
disabledAlpha?: number;
|
|
33
|
+
labels?: WheelPickerLabels;
|
|
34
|
+
}
|
|
35
|
+
export interface WheelPickerProps extends Omit<ViewProps, 'children'> {
|
|
36
|
+
/** Available items. */
|
|
37
|
+
items: WheelPickerItem[];
|
|
38
|
+
/** Selected value in controlled mode. */
|
|
39
|
+
value?: string;
|
|
40
|
+
/** Initial selected value in uncontrolled mode. */
|
|
41
|
+
defaultValue?: string;
|
|
42
|
+
/** Called when the snapped item changes. */
|
|
43
|
+
onChange?: (value: string) => void;
|
|
44
|
+
/** Number of items visible at once (odd numbers look best: 3, 5, 7). */
|
|
45
|
+
visibleItems?: number;
|
|
46
|
+
/** Size preset controlling item height and text sizing. */
|
|
47
|
+
size?: WheelPickerSize;
|
|
48
|
+
/** Loop items infinitely. */
|
|
49
|
+
loop?: boolean;
|
|
50
|
+
/** Render custom item content. */
|
|
51
|
+
renderItem?: (props: WheelPickerItemRenderProps) => ChildrenType;
|
|
52
|
+
/** Localized labels. */
|
|
53
|
+
labels?: WheelPickerLabels;
|
|
54
|
+
/** Disabled state. */
|
|
55
|
+
disabled?: boolean;
|
|
56
|
+
/** Theme overrides. */
|
|
57
|
+
theme?: PartialTheme;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* WheelPicker — scrollable snap-to-center picker with fade edges.
|
|
61
|
+
*/
|
|
62
|
+
export declare function WheelPicker(props: WheelPickerProps): VNodeLike;
|
|
63
|
+
//# sourceMappingURL=WheelPicker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WheelPicker.d.ts","sourceRoot":"","sources":["../../../src/components/custom/WheelPicker.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAE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3D,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,MAAM,CAAC,EAAE,iBAAiB,CAAA;CAC3B;AAED,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC;IACnE,uBAAuB;IACvB,KAAK,EAAE,eAAe,EAAE,CAAA;IACxB,yCAAyC;IACzC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,mDAAmD;IACnD,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,wEAAwE;IACxE,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,2DAA2D;IAC3D,IAAI,CAAC,EAAE,eAAe,CAAA;IACtB,6BAA6B;IAC7B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,kCAAkC;IAClC,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,0BAA0B,KAAK,YAAY,CAAA;IAChE,wBAAwB;IACxB,MAAM,CAAC,EAAE,iBAAiB,CAAA;IAC1B,sBAAsB;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,uBAAuB;IACvB,KAAK,CAAC,EAAE,YAAY,CAAA;CACrB;AAoCD;;GAEG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,GAAG,SAAS,CAwN9D"}
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_custom = require("../../custom-
|
|
2
|
+
const require_custom = require("../../custom-rkdLsk0U.cjs");
|
|
3
3
|
exports.Accordion = require_custom.Accordion;
|
|
4
|
+
exports.ActivityIndicator = require_custom.ActivityIndicator;
|
|
4
5
|
exports.AlertDialog = require_custom.AlertDialog;
|
|
5
6
|
exports.Badge = require_custom.Badge;
|
|
7
|
+
exports.BottomSheet = require_custom.BottomSheet;
|
|
8
|
+
exports.BottomSheetDepth = require_custom.BottomSheetDepth;
|
|
9
|
+
exports.BottomSheetHandle = require_custom.BottomSheetHandle;
|
|
6
10
|
exports.Button = require_custom.Button;
|
|
7
11
|
exports.CharText = require_custom.CharText;
|
|
8
12
|
exports.CharTextInput = require_custom.CharTextInput;
|
|
9
13
|
exports.Checkbox = require_custom.Checkbox;
|
|
14
|
+
exports.ColorPicker = require_custom.ColorPicker;
|
|
10
15
|
exports.ContextMenu = require_custom.ContextMenu;
|
|
11
16
|
exports.DebugPanel = require_custom.DebugPanel;
|
|
12
17
|
exports.Dialog = require_custom.Dialog;
|
|
@@ -15,35 +20,68 @@ exports.Dropdown = require_custom.Dropdown;
|
|
|
15
20
|
exports.Icon = require_custom.Icon;
|
|
16
21
|
exports.Image = require_custom.Image;
|
|
17
22
|
exports.Joystick = require_custom.Joystick;
|
|
23
|
+
exports.ListBox = require_custom.ListBox;
|
|
24
|
+
exports.MenuButton = require_custom.MenuButton;
|
|
18
25
|
exports.Modal = require_custom.Modal;
|
|
19
26
|
exports.NineSlice = require_custom.NineSlice;
|
|
20
27
|
exports.NineSliceButton = require_custom.NineSliceButton;
|
|
28
|
+
exports.NotificationStack = require_custom.NotificationStack;
|
|
29
|
+
exports.NumberInput = require_custom.NumberInput;
|
|
30
|
+
exports.NumberInputIndicator = require_custom.NumberInputIndicator;
|
|
31
|
+
exports.PalettePicker = require_custom.PalettePicker;
|
|
21
32
|
exports.Particles = require_custom.Particles;
|
|
22
33
|
exports.Popover = require_custom.Popover;
|
|
23
34
|
exports.Portal = require_custom.Portal;
|
|
24
35
|
exports.ProgressBar = require_custom.ProgressBar;
|
|
36
|
+
exports.ProgressView = require_custom.ProgressView;
|
|
25
37
|
exports.RadioButton = require_custom.RadioButton;
|
|
26
38
|
exports.RadioGroup = require_custom.RadioGroup;
|
|
27
39
|
exports.RangeSlider = require_custom.RangeSlider;
|
|
40
|
+
exports.RatingBar = require_custom.RatingBar;
|
|
28
41
|
exports.RefOriginView = require_custom.RefOriginView;
|
|
29
42
|
exports.ScrollSlider = require_custom.ScrollSlider;
|
|
30
43
|
exports.ScrollView = require_custom.ScrollView;
|
|
44
|
+
exports.SegmentedControl = require_custom.SegmentedControl;
|
|
31
45
|
exports.Sidebar = require_custom.Sidebar;
|
|
32
46
|
exports.Slider = require_custom.Slider;
|
|
33
47
|
exports.Tab = require_custom.Tab;
|
|
34
48
|
exports.TabPanel = require_custom.TabPanel;
|
|
35
49
|
exports.Tabs = require_custom.Tabs;
|
|
36
50
|
exports.Tag = require_custom.Tag;
|
|
51
|
+
exports.Toast = require_custom.Toast;
|
|
37
52
|
exports.Toggle = require_custom.Toggle;
|
|
53
|
+
exports.ToolButtonGroup = require_custom.ToolButtonGroup;
|
|
54
|
+
exports.Toolbar = require_custom.Toolbar;
|
|
38
55
|
exports.TransformOriginView = require_custom.TransformOriginView;
|
|
56
|
+
exports.WheelPicker = require_custom.WheelPicker;
|
|
39
57
|
exports.WrapText = require_custom.WrapText;
|
|
40
58
|
exports.calculateOverlayPosition = require_custom.calculateOverlayPosition;
|
|
41
59
|
exports.calculateSliderSize = require_custom.calculateSliderSize;
|
|
60
|
+
exports.chunkPalettePickerColors = require_custom.chunkPalettePickerColors;
|
|
42
61
|
exports.clampProgressValue = require_custom.clampProgressValue;
|
|
43
62
|
exports.createIconComponent = require_custom.createIconComponent;
|
|
63
|
+
exports.findListBoxItem = require_custom.findListBoxItem;
|
|
64
|
+
exports.findSegmentedControlOption = require_custom.findSegmentedControlOption;
|
|
44
65
|
exports.formatBadgeCount = require_custom.formatBadgeCount;
|
|
45
66
|
exports.getBadgeSizeConfig = require_custom.getBadgeSizeConfig;
|
|
46
67
|
exports.getBadgeText = require_custom.getBadgeText;
|
|
68
|
+
exports.getNextNumberInputValue = require_custom.getNextNumberInputValue;
|
|
69
|
+
exports.getNumberInputPrecision = require_custom.getNumberInputPrecision;
|
|
70
|
+
exports.getPalettePickerContrastColor = require_custom.getPalettePickerContrastColor;
|
|
47
71
|
exports.getProgressRatio = require_custom.getProgressRatio;
|
|
72
|
+
exports.getToastAutoDismissDuration = require_custom.getToastAutoDismissDuration;
|
|
73
|
+
exports.getToolbarItemId = require_custom.getToolbarItemId;
|
|
74
|
+
exports.isSegmentedControlOptionSelectable = require_custom.isSegmentedControlOptionSelectable;
|
|
75
|
+
exports.isToolbarMenuItem = require_custom.isToolbarMenuItem;
|
|
76
|
+
exports.isToolbarSeparatorItem = require_custom.isToolbarSeparatorItem;
|
|
77
|
+
exports.isToolbarToggleItem = require_custom.isToolbarToggleItem;
|
|
78
|
+
exports.normalizeNumberInputValue = require_custom.normalizeNumberInputValue;
|
|
79
|
+
exports.normalizePalettePickerColor = require_custom.normalizePalettePickerColor;
|
|
80
|
+
exports.normalizePalettePickerColors = require_custom.normalizePalettePickerColors;
|
|
48
81
|
exports.resolveBadgeTextStyle = require_custom.resolveBadgeTextStyle;
|
|
82
|
+
exports.resolveListBoxValue = require_custom.resolveListBoxValue;
|
|
83
|
+
exports.resolveNotificationStackAlignment = require_custom.resolveNotificationStackAlignment;
|
|
84
|
+
exports.resolvePalettePickerValue = require_custom.resolvePalettePickerValue;
|
|
85
|
+
exports.resolveSegmentedControlValue = require_custom.resolveSegmentedControlValue;
|
|
86
|
+
exports.resolveToolbarActiveId = require_custom.resolveToolbarActiveId;
|
|
49
87
|
exports.useIconPreload = require_custom.useIconPreload;
|
|
@@ -3,35 +3,48 @@
|
|
|
3
3
|
* Higher-level components built on top of built-in primitives
|
|
4
4
|
*/
|
|
5
5
|
export { Accordion, type AccordionProps } from './Accordion';
|
|
6
|
+
export { ActivityIndicator, type ActivityIndicatorLabels, type ActivityIndicatorProps, type ActivityIndicatorSize, type ActivityIndicatorThemeSlot, type ActivityIndicatorVariant, } from './ActivityIndicator';
|
|
6
7
|
export { AlertDialog, type AlertDialogProps } from './AlertDialog';
|
|
7
|
-
export { Badge,
|
|
8
|
+
export { Badge, formatBadgeCount, getBadgeSizeConfig, getBadgeText, resolveBadgeTextStyle, Tag, type BadgeFormatOptions, type BadgeProps, type BadgeSize, type BadgeSizeConfig, type BadgeTextStyleOptions, type BadgeTone, type BadgeToneColors, type BadgeVariant, type TagProps, } from './Badge';
|
|
9
|
+
export { BottomSheet, BottomSheetDepth, BottomSheetHandle, type BottomSheetLabels, type BottomSheetProps, type BottomSheetThemeSlot, type HandleRenderProps, } from './BottomSheet';
|
|
8
10
|
export { Button, type ButtonProps } from './Button';
|
|
9
11
|
export { CharText, type CharTextAPI, type CharTextProps } from './CharText';
|
|
10
12
|
export { CharTextInput, type CharTextInputProps } from './CharTextInput';
|
|
11
13
|
export { Checkbox, type CheckboxIndicatorRenderProps, type CheckboxLabelPosition, type CheckboxProps, type CheckboxState, } from './Checkbox';
|
|
14
|
+
export { ColorPicker, type ColorPickerLabels, type ColorPickerProps, type ColorPickerState, type ColorPickerTone, } from './ColorPicker';
|
|
12
15
|
export { DebugPanel, type DebugMetricKey, type DebugPanelPreset, type DebugPanelProps, } from './DebugPanel';
|
|
13
16
|
export { Dialog, type DialogProps } from './Dialog';
|
|
14
17
|
export { Divider, type DividerProps } from './Divider';
|
|
15
18
|
export { Dropdown, type DropdownOption, type DropdownProps } from './Dropdown';
|
|
16
|
-
export {
|
|
19
|
+
export { createIconComponent, Icon, useIconPreload, type IconLoaderFn, type IconProps, } from './Icon';
|
|
17
20
|
export { Image, type ImageProps } from './Image';
|
|
18
21
|
export { Joystick, type JoystickProps, type JoystickTheme } from './Joystick';
|
|
22
|
+
export { findListBoxItem, ListBox, resolveListBoxValue, type ListBoxItem, type ListBoxItemRenderProps, type ListBoxLabels, type ListBoxProps, type ListBoxThemeSlot, } from './ListBox';
|
|
23
|
+
export { MenuButton, type MenuButtonProps, type MenuButtonTriggerRenderProps } from './MenuButton';
|
|
19
24
|
export { Modal, type ModalProps } from './Modal';
|
|
20
25
|
export { NineSlice, type NineSliceProps } from './NineSlice';
|
|
21
26
|
export { NineSliceButton, type NineSliceButtonProps } from './NineSliceButton';
|
|
27
|
+
export { getNextNumberInputValue, getNumberInputPrecision, normalizeNumberInputValue, NumberInput, NumberInputIndicator, type NumberInputButtonAction, type NumberInputButtonDirection, type NumberInputButtonPlacement, type NumberInputButtonRenderProps, type NumberInputIndicatorDirection, type NumberInputIndicatorProps, type NumberInputIndicatorVariant, type NumberInputLabelPosition, type NumberInputLabels, type NumberInputProps, type NumberInputValueOptions, type NumberInputValueRenderProps, } from './NumberInput';
|
|
28
|
+
export { chunkPalettePickerColors, getPalettePickerContrastColor, normalizePalettePickerColor, normalizePalettePickerColors, PalettePicker, resolvePalettePickerValue, type NormalizedPalettePickerOption, type PalettePickerColor, type PalettePickerLabels, type PalettePickerOption, type PalettePickerProps, type PalettePickerSwatchRenderProps, type PalettePickerThemeSlot, } from './PalettePicker';
|
|
22
29
|
export { Particles, type ParticlesProps } from './Particles';
|
|
30
|
+
export { calculateOverlayPosition, ContextMenu, Popover, type ContextMenuItem, type ContextMenuProps, type OverlayAnchorRect, type OverlayContentSize, type OverlayPosition, type OverlayPositionOptions, type PopoverPlacement, type PopoverProps, } from './Popover';
|
|
23
31
|
export { Portal, type PortalProps } from './Portal';
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
32
|
+
export { clampProgressValue, getProgressRatio, ProgressBar, type ProgressBarFormatProps, type ProgressBarLabelPosition, type ProgressBarOrientation, type ProgressBarProps, } from './ProgressBar';
|
|
33
|
+
export { ProgressView, type ProgressViewLabels, type ProgressViewProps, type ProgressViewThemeSlot, } from './ProgressView';
|
|
26
34
|
export { RadioButton, type RadioButtonProps } from './RadioButton';
|
|
27
35
|
export { RadioGroup, type RadioGroupProps } from './RadioGroup';
|
|
36
|
+
export { RatingBar, type RatingBarIconRenderProps, type RatingBarLabels, type RatingBarProps, type RatingBarSize, type RatingBarThemeSlot, } from './RatingBar';
|
|
28
37
|
export { RefOriginView, type RefOriginViewProps } from './RefOriginView';
|
|
29
|
-
export {
|
|
38
|
+
export { calculateSliderSize, ScrollSlider, type ScrollSliderProps, type SliderSize, } from './ScrollSlider';
|
|
30
39
|
export { ScrollView, type ScrollInfo, type ScrollViewProps } from './ScrollView';
|
|
40
|
+
export { findSegmentedControlOption, isSegmentedControlOptionSelectable, resolveSegmentedControlValue, SegmentedControl, type SegmentedControlLabelPosition, type SegmentedControlLabels, type SegmentedControlOption, type SegmentedControlOptionRenderProps, type SegmentedControlOrientation, type SegmentedControlProps, type SegmentedControlSize, type SegmentedControlThemeSlot, type SegmentedControlVariant, } from './SegmentedControl';
|
|
31
41
|
export { Sidebar, type SidebarNavItem, type SidebarProps, type SidebarSection, type SidebarSize, type SidebarVariant, } from './Sidebar';
|
|
32
42
|
export { RangeSlider, Slider, type RangeSliderProps, type SliderMark, type SliderProps, } from './Slider';
|
|
33
43
|
export { Tab, TabPanel, Tabs, type TabPanelProps, type TabProps, type TabsProps } from './Tabs';
|
|
44
|
+
export { getToastAutoDismissDuration, NotificationStack, resolveNotificationStackAlignment, Toast, type NotificationStackAlignment, type NotificationStackPosition, type NotificationStackProps, type ToastItem, type ToastLabels, type ToastProps, type ToastThemeSlot, type ToastVariant, type ToastVariantTheme, } from './Toast';
|
|
34
45
|
export { Toggle, type ToggleProps } from './Toggle';
|
|
46
|
+
export { getToolbarItemId, isToolbarMenuItem, isToolbarSeparatorItem, isToolbarToggleItem, resolveToolbarActiveId, Toolbar, ToolButtonGroup, type ToolbarActionItem, type ToolbarDensity, type ToolbarItem, type ToolbarItemType, type ToolbarLabels, type ToolbarMenuItem, type ToolbarOrientation, type ToolbarProps, type ToolbarSeparatorItem, type ToolbarThemeSlot, type ToolbarToggleItem, } from './Toolbar';
|
|
35
47
|
export { TransformOriginView, type TransformOriginViewProps } from './TransformOriginView';
|
|
48
|
+
export { WheelPicker, type WheelPickerItem, type WheelPickerItemRenderProps, type WheelPickerLabels, type WheelPickerProps, type WheelPickerSize, type WheelPickerThemeSlot, } from './WheelPicker';
|
|
36
49
|
export { WrapText, type WrapTextProps } from './WrapText';
|
|
37
50
|
//# sourceMappingURL=index.d.ts.map
|