@lumx/vue 4.11.0-next.6 → 4.11.0-next.7

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.
@@ -0,0 +1,30 @@
1
+ import { SelectionChipGroupProps as UIProps } from '@lumx/core/js/components/Chip/SelectionChipGroup';
2
+ import { VueToJSXProps } from '../../utils/VueToJSX';
3
+ /**
4
+ * Props omit 'ref' (handled internally).
5
+ * inputRef is added here for Vue (ref to an associated input element for backspace focus handling).
6
+ */
7
+ export type SelectionChipGroupProps = VueToJSXProps<UIProps<any>> & {
8
+ /** Ref to the associated input element (for focus restoration on backspace) */
9
+ inputRef?: HTMLInputElement | null;
10
+ };
11
+ export declare const emitSchema: {
12
+ change: (_newValue?: any[]) => boolean;
13
+ };
14
+ /**
15
+ * SelectionChipGroup component.
16
+ *
17
+ * @param props Component props.
18
+ * @return Vue element.
19
+ */
20
+ declare const SelectionChipGroup: import('vue').DefineSetupFnComponent<SelectionChipGroupProps, {
21
+ change: (_newValue?: any[]) => boolean;
22
+ }, {}, Omit<UIProps<any>, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
23
+ class?: string;
24
+ } & {
25
+ /** Ref to the associated input element (for focus restoration on backspace) */
26
+ inputRef?: HTMLInputElement | null;
27
+ } & {
28
+ onChange?: ((_newValue?: any[] | undefined) => any) | undefined;
29
+ }, import('vue').PublicProps>;
30
+ export default SelectionChipGroup;
@@ -0,0 +1,66 @@
1
+ declare const _default: {
2
+ component: any;
3
+ args: {
4
+ value: {
5
+ id: string;
6
+ name: string;
7
+ }[];
8
+ getOptionId: string;
9
+ getOptionName: string;
10
+ label: string;
11
+ chipRemoveLabel: string;
12
+ };
13
+ decorators: ((story: any, context: any) => any)[];
14
+ title: string;
15
+ };
16
+ export default _default;
17
+ export declare const Default: {};
18
+ export declare const Disabled: {
19
+ args: {
20
+ isDisabled: boolean;
21
+ };
22
+ };
23
+ export declare const IndividuallyDisabled: {
24
+ args: {
25
+ getChipProps: (option: {
26
+ id: string;
27
+ name: string;
28
+ }) => {
29
+ isDisabled: boolean;
30
+ };
31
+ };
32
+ };
33
+ export declare const Empty: {
34
+ args: {
35
+ value: never[];
36
+ };
37
+ };
38
+ export declare const ConstrainedSpace: {
39
+ decorators: ((story: any, context: any) => any)[];
40
+ args: {
41
+ value: ({
42
+ id: string;
43
+ name: string;
44
+ } | {
45
+ name: string;
46
+ })[];
47
+ };
48
+ };
49
+ /** Selection chip group with custom chip render */
50
+ export declare const CustomRender: {
51
+ render: () => {
52
+ components: {
53
+ StoryCustomRender: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
54
+ };
55
+ template: string;
56
+ };
57
+ };
58
+ /** Selection chip group inside a TextField chips slot with inputRef for keyboard navigation */
59
+ export declare const InTextField: {
60
+ render: () => {
61
+ components: {
62
+ StoryInTextField: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
63
+ };
64
+ template: string;
65
+ };
66
+ };
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -1,2 +1,3 @@
1
1
  export { default as Chip, type ChipProps } from './Chip';
2
2
  export { default as ChipGroup, type ChipGroupProps } from './ChipGroup';
3
+ export { default as SelectionChipGroup, type SelectionChipGroupProps } from './SelectionChipGroup';