@flux-ui/components 3.0.0 → 3.1.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/dist/component/FluxBreadcrumb.vue.d.ts +15 -0
- package/dist/component/FluxBreadcrumbItem.vue.d.ts +23 -0
- package/dist/component/{FluxCheckbox.vue.d.ts → FluxFormCheckbox.vue.d.ts} +3 -0
- package/dist/component/FluxFormCheckboxGroup.vue.d.ts +26 -0
- package/dist/component/FluxFormField.vue.d.ts +1 -0
- package/dist/component/FluxFormNumberInput.vue.d.ts +26 -0
- package/dist/component/FluxFormRadio.vue.d.ts +18 -0
- package/dist/component/FluxFormRadioGroup.vue.d.ts +27 -0
- package/dist/component/FluxSkeleton.vue.d.ts +9 -0
- package/dist/component/index.d.ts +8 -1
- package/dist/composable/index.d.ts +2 -0
- package/dist/composable/useFormCheckboxGroupInjection.d.ts +2 -0
- package/dist/composable/useFormFieldInjection.d.ts +3 -2
- package/dist/composable/useFormRadioGroupInjection.d.ts +2 -0
- package/dist/data/di.d.ts +23 -0
- package/dist/index.css +1373 -1012
- package/dist/index.js +849 -355
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/component/FluxBreadcrumb.vue +24 -0
- package/src/component/FluxBreadcrumbItem.vue +72 -0
- package/src/component/FluxDataTable.vue +3 -3
- package/src/component/FluxFormCheckbox.vue +123 -0
- package/src/component/FluxFormCheckboxGroup.vue +57 -0
- package/src/component/FluxFormField.vue +23 -7
- package/src/component/FluxFormNumberInput.vue +180 -0
- package/src/component/FluxFormPinInput.vue +2 -2
- package/src/component/FluxFormRadio.vue +76 -0
- package/src/component/FluxFormRadioGroup.vue +53 -0
- package/src/component/FluxQuantitySelector.vue +4 -4
- package/src/component/FluxSkeleton.vue +46 -0
- package/src/component/FluxToggle.vue +4 -4
- package/src/component/index.ts +8 -1
- package/src/composable/index.ts +2 -0
- package/src/composable/useFormCheckboxGroupInjection.ts +6 -0
- package/src/composable/useFormFieldInjection.ts +7 -3
- package/src/composable/useFormRadioGroupInjection.ts +13 -0
- package/src/css/component/BorderBeam.module.scss +51 -22
- package/src/css/component/Breadcrumb.module.scss +86 -0
- package/src/css/component/Form.module.scss +251 -45
- package/src/css/component/SegmentedControl.module.scss +18 -18
- package/src/css/component/Skeleton.module.scss +67 -0
- package/src/data/di.ts +30 -0
- package/src/component/FluxCheckbox.vue +0 -87
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { VNode, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
readonly ariaLabel?: string;
|
|
4
|
+
};
|
|
5
|
+
type __VLS_Slots = {
|
|
6
|
+
default(): VNode[];
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_base: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
9
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
12
|
+
new (): {
|
|
13
|
+
$slots: S;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { FluxIconName, FluxTo } from '@flux-ui/types';
|
|
2
|
+
import { VNode, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
readonly href?: string;
|
|
5
|
+
readonly icon?: FluxIconName;
|
|
6
|
+
readonly label?: string;
|
|
7
|
+
readonly to?: FluxTo;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_Slots = {
|
|
10
|
+
default(): VNode[];
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_base: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
13
|
+
click: (args_0: MouseEvent) => any;
|
|
14
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
+
onClick?: (args_0: MouseEvent) => any;
|
|
16
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
17
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { FluxFormInputBaseProps } from '@flux-ui/types';
|
|
2
|
+
import { FluxFormCheckboxGroupValue } from '../data';
|
|
2
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
4
|
type __VLS_Props = Pick<FluxFormInputBaseProps, 'disabled' | 'error' | 'isReadonly'> & {
|
|
4
5
|
readonly label?: string;
|
|
6
|
+
readonly subLabel?: string;
|
|
7
|
+
readonly value?: FluxFormCheckboxGroupValue;
|
|
5
8
|
};
|
|
6
9
|
type __VLS_ModelProps = {
|
|
7
10
|
modelValue?: boolean | null;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { FluxFormInputBaseProps } from '@flux-ui/types';
|
|
2
|
+
import { VNode, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
import { FluxFormCheckboxGroupValue } from '../data';
|
|
4
|
+
type __VLS_Props = Pick<FluxFormInputBaseProps, 'disabled' | 'error' | 'isReadonly'> & {
|
|
5
|
+
readonly ariaLabel?: string;
|
|
6
|
+
readonly isInline?: boolean;
|
|
7
|
+
};
|
|
8
|
+
type __VLS_Slots = {
|
|
9
|
+
default(): VNode[];
|
|
10
|
+
};
|
|
11
|
+
type __VLS_ModelProps = {
|
|
12
|
+
modelValue?: FluxFormCheckboxGroupValue[];
|
|
13
|
+
};
|
|
14
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
15
|
+
declare const __VLS_base: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
16
|
+
"update:modelValue": (value: FluxFormCheckboxGroupValue[]) => any;
|
|
17
|
+
}, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
18
|
+
"onUpdate:modelValue"?: (value: FluxFormCheckboxGroupValue[]) => any;
|
|
19
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
20
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { FluxFormInputBaseProps } from '@flux-ui/types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
type __VLS_Props = FluxFormInputBaseProps & {
|
|
4
|
+
readonly max?: number;
|
|
5
|
+
readonly min?: number;
|
|
6
|
+
readonly step?: number;
|
|
7
|
+
};
|
|
8
|
+
declare function blur(): void;
|
|
9
|
+
declare function focus(): void;
|
|
10
|
+
type __VLS_ModelProps = {
|
|
11
|
+
modelValue?: number | null;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
14
|
+
declare const _default: DefineComponent<__VLS_PublicProps, {
|
|
15
|
+
blur: typeof blur;
|
|
16
|
+
focus: typeof focus;
|
|
17
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
18
|
+
blur: () => any;
|
|
19
|
+
focus: () => any;
|
|
20
|
+
"update:modelValue": (value: number) => any;
|
|
21
|
+
}, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
22
|
+
onBlur?: () => any;
|
|
23
|
+
onFocus?: () => any;
|
|
24
|
+
"onUpdate:modelValue"?: (value: number) => any;
|
|
25
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
26
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FluxFormRadioGroupValue } from '../data';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
readonly value: FluxFormRadioGroupValue;
|
|
5
|
+
readonly disabled?: boolean;
|
|
6
|
+
readonly label?: string;
|
|
7
|
+
};
|
|
8
|
+
type __VLS_Slots = {
|
|
9
|
+
default(): any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_base: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { FluxFormInputBaseProps } from '@flux-ui/types';
|
|
2
|
+
import { VNode, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
import { FluxFormRadioGroupValue } from '../data';
|
|
4
|
+
type __VLS_Props = Pick<FluxFormInputBaseProps, 'disabled' | 'error' | 'isReadonly'> & {
|
|
5
|
+
readonly ariaLabel?: string;
|
|
6
|
+
readonly isInline?: boolean;
|
|
7
|
+
readonly name?: string;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_Slots = {
|
|
10
|
+
default(): VNode[];
|
|
11
|
+
};
|
|
12
|
+
type __VLS_ModelProps = {
|
|
13
|
+
modelValue?: FluxFormRadioGroupValue;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
16
|
+
declare const __VLS_base: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
17
|
+
"update:modelValue": (value: FluxFormRadioGroupValue) => any;
|
|
18
|
+
}, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
19
|
+
"onUpdate:modelValue"?: (value: FluxFormRadioGroupValue) => any;
|
|
20
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
21
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
24
|
+
new (): {
|
|
25
|
+
$slots: S;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
readonly height?: string | number;
|
|
4
|
+
readonly is?: string;
|
|
5
|
+
readonly variant?: 'text' | 'circle' | 'rectangle' | 'rounded';
|
|
6
|
+
readonly width?: string | number;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
9
|
+
export default _default;
|
|
@@ -12,12 +12,13 @@ export { default as FluxBadgeStack } from './FluxBadgeStack.vue';
|
|
|
12
12
|
export { default as FluxBorderBeam } from './FluxBorderBeam.vue';
|
|
13
13
|
export { default as FluxBorderShine } from './FluxBorderShine.vue';
|
|
14
14
|
export { default as FluxBoxedIcon } from './FluxBoxedIcon.vue';
|
|
15
|
+
export { default as FluxBreadcrumb } from './FluxBreadcrumb.vue';
|
|
16
|
+
export { default as FluxBreadcrumbItem } from './FluxBreadcrumbItem.vue';
|
|
15
17
|
export { default as FluxButton } from './FluxButton.vue';
|
|
16
18
|
export { default as FluxButtonGroup } from './FluxButtonGroup.vue';
|
|
17
19
|
export { default as FluxButtonStack } from './FluxButtonStack.vue';
|
|
18
20
|
export { default as FluxCalendar } from './FluxCalendar.vue';
|
|
19
21
|
export { default as FluxCalendarItem } from './FluxCalendarItem.vue';
|
|
20
|
-
export { default as FluxCheckbox } from './FluxCheckbox.vue';
|
|
21
22
|
export { default as FluxChip } from './FluxChip.vue';
|
|
22
23
|
export { default as FluxClickablePane } from './FluxClickablePane.vue';
|
|
23
24
|
export { default as FluxCommandPalette } from './FluxCommandPalette.vue';
|
|
@@ -55,6 +56,8 @@ export { default as FluxFlyout } from './FluxFlyout.vue';
|
|
|
55
56
|
export { default as FluxFocalPointEditor } from './FluxFocalPointEditor.vue';
|
|
56
57
|
export { default as FluxFocalPointImage } from './FluxFocalPointImage.vue';
|
|
57
58
|
export { default as FluxForm } from './FluxForm.vue';
|
|
59
|
+
export { default as FluxFormCheckbox } from './FluxFormCheckbox.vue';
|
|
60
|
+
export { default as FluxFormCheckboxGroup } from './FluxFormCheckboxGroup.vue';
|
|
58
61
|
export { default as FluxFormColumn } from './FluxFormColumn.vue';
|
|
59
62
|
export { default as FluxFormDateInput } from './FluxFormDateInput.vue';
|
|
60
63
|
export { default as FluxFormDateRangeInput } from './FluxFormDateRangeInput.vue';
|
|
@@ -65,7 +68,10 @@ export { default as FluxFormGrid } from './FluxFormGrid.vue';
|
|
|
65
68
|
export { default as FluxFormInput } from './FluxFormInput.vue';
|
|
66
69
|
export { default as FluxFormInputAddition } from './FluxFormInputAddition.vue';
|
|
67
70
|
export { default as FluxFormInputGroup } from './FluxFormInputGroup.vue';
|
|
71
|
+
export { default as FluxFormNumberInput } from './FluxFormNumberInput.vue';
|
|
68
72
|
export { default as FluxFormPinInput } from './FluxFormPinInput.vue';
|
|
73
|
+
export { default as FluxFormRadio } from './FluxFormRadio.vue';
|
|
74
|
+
export { default as FluxFormRadioGroup } from './FluxFormRadioGroup.vue';
|
|
69
75
|
export { default as FluxFormRangeSlider } from './FluxFormRangeSlider.vue';
|
|
70
76
|
export { default as FluxFormRow } from './FluxFormRow.vue';
|
|
71
77
|
export { default as FluxFormSection } from './FluxFormSection.vue';
|
|
@@ -131,6 +137,7 @@ export { default as FluxSecondaryLinkButton } from './FluxSecondaryLinkButton.vu
|
|
|
131
137
|
export { default as FluxSegmentedControl } from './FluxSegmentedControl.vue';
|
|
132
138
|
export { default as FluxSegmentedControlItem } from './FluxSegmentedControlItem.vue';
|
|
133
139
|
export { default as FluxSeparator } from './FluxSeparator.vue';
|
|
140
|
+
export { default as FluxSkeleton } from './FluxSkeleton.vue';
|
|
134
141
|
export { default as FluxSlideOver } from './FluxSlideOver.vue';
|
|
135
142
|
export { default as FluxSnackbar } from './FluxSnackbar.vue';
|
|
136
143
|
export { default as FluxSnackbarProvider } from './FluxSnackbarProvider.vue';
|
|
@@ -6,7 +6,9 @@ export { default as useDisabledInjection } from './useDisabledInjection';
|
|
|
6
6
|
export { default as useExpandableGroupInjection } from './useExpandableGroupInjection';
|
|
7
7
|
export { default as useFilterInjection } from './useFilterInjection';
|
|
8
8
|
export { default as useFlyoutInjection } from './useFlyoutInjection';
|
|
9
|
+
export { default as useFormCheckboxGroupInjection } from './useFormCheckboxGroupInjection';
|
|
9
10
|
export { default as useFormFieldInjection } from './useFormFieldInjection';
|
|
11
|
+
export { default as useFormRadioGroupInjection } from './useFormRadioGroupInjection';
|
|
10
12
|
export { default as useKanbanInjection } from './useKanbanInjection';
|
|
11
13
|
export { default as useSegmentedControlInjection } from './useSegmentedControlInjection';
|
|
12
14
|
export { default as useTabBarInjection } from './useTabBarInjection';
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export default function (): {
|
|
2
|
+
id: string;
|
|
3
|
+
};
|
package/dist/data/di.d.ts
CHANGED
|
@@ -8,7 +8,9 @@ export declare const FluxKanbanInjectionKey: InjectionKey<FluxKanbanInjection>;
|
|
|
8
8
|
export declare const FluxExpandableGroupInjectionKey: InjectionKey<FluxExpandableGroupInjection>;
|
|
9
9
|
export declare const FluxFlyoutInjectionKey: InjectionKey<FluxFlyoutInjection>;
|
|
10
10
|
export declare const FluxFilterInjectionKey: InjectionKey<FluxFilterInjection>;
|
|
11
|
+
export declare const FluxFormCheckboxGroupInjectionKey: InjectionKey<FluxFormCheckboxGroupInjection>;
|
|
11
12
|
export declare const FluxFormFieldInjectionKey: InjectionKey<FluxFormFieldInjection>;
|
|
13
|
+
export declare const FluxFormRadioGroupInjectionKey: InjectionKey<FluxFormRadioGroupInjection>;
|
|
12
14
|
export declare const FluxSegmentedControlInjectionKey: InjectionKey<FluxSegmentedControlInjection>;
|
|
13
15
|
export declare const FluxSplitViewInjectionKey: InjectionKey<FluxSplitViewInjection>;
|
|
14
16
|
export declare const FluxTabBarInjectionKey: InjectionKey<FluxTabBarInjection>;
|
|
@@ -128,6 +130,18 @@ export type FluxFlyoutInjection = {
|
|
|
128
130
|
};
|
|
129
131
|
export type FluxFormFieldInjection = {
|
|
130
132
|
readonly id?: string;
|
|
133
|
+
readonly labelId?: string;
|
|
134
|
+
readonly isGroup?: boolean;
|
|
135
|
+
registerControl?(): string;
|
|
136
|
+
};
|
|
137
|
+
export type FluxFormCheckboxGroupValue = string | number | boolean;
|
|
138
|
+
export type FluxFormCheckboxGroupInjection = {
|
|
139
|
+
readonly modelValue: Ref<FluxFormCheckboxGroupValue[]>;
|
|
140
|
+
readonly disabled: Ref<boolean>;
|
|
141
|
+
readonly isReadonly: Ref<boolean>;
|
|
142
|
+
readonly error: Ref<string | null | undefined>;
|
|
143
|
+
has(value: FluxFormCheckboxGroupValue): boolean;
|
|
144
|
+
toggle(value: FluxFormCheckboxGroupValue): void;
|
|
131
145
|
};
|
|
132
146
|
export type FluxSplitViewPaneSpec = {
|
|
133
147
|
readonly id: number;
|
|
@@ -143,6 +157,15 @@ export type FluxSplitViewInjection = {
|
|
|
143
157
|
unregisterPane(id: number): void;
|
|
144
158
|
getPaneIndex(id: number): number;
|
|
145
159
|
};
|
|
160
|
+
export type FluxFormRadioGroupValue = string | number | boolean;
|
|
161
|
+
export type FluxFormRadioGroupInjection = {
|
|
162
|
+
readonly name: string;
|
|
163
|
+
readonly modelValue: Ref<FluxFormRadioGroupValue | undefined>;
|
|
164
|
+
readonly disabled: Ref<boolean>;
|
|
165
|
+
readonly isReadonly: Ref<boolean>;
|
|
166
|
+
readonly error: Ref<string | null | undefined>;
|
|
167
|
+
select(value: FluxFormRadioGroupValue): void;
|
|
168
|
+
};
|
|
146
169
|
export type FluxSegmentedControlValue = string | number;
|
|
147
170
|
export type FluxSegmentedControlInjection = {
|
|
148
171
|
readonly modelValue: Ref<FluxSegmentedControlValue | undefined>;
|