@khsura/sui 1.20.0 → 1.21.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.
Files changed (103) hide show
  1. package/@types/components/avatar/index.d.ts +2 -0
  2. package/@types/components/avatar/sAvatar.vue.d.ts +13 -0
  3. package/@types/components/avatar/sAvatarGroup.vue.d.ts +16 -0
  4. package/@types/components/form/index.d.ts +1 -0
  5. package/@types/components/form/sFormRow.vue.d.ts +1 -1
  6. package/@types/components/form/sNumberInput.vue.d.ts +29 -0
  7. package/@types/components/form/sSelect.vue.d.ts +8 -3
  8. package/@types/components/index.d.ts +5 -0
  9. package/@types/components/sAutocomplete.vue.d.ts +8 -1
  10. package/@types/components/sEmptyState.vue.d.ts +26 -0
  11. package/@types/components/sFileInput.vue.d.ts +35 -0
  12. package/@types/components/sPagination.vue.d.ts +21 -0
  13. package/@types/components/sSkeletonLoader.vue.d.ts +19 -0
  14. package/@types/components/toggleButtonGroup/sToggleButtonGroup.vue.d.ts +2 -0
  15. package/@types/configs/fileInput.d.ts +5 -0
  16. package/@types/configs/index.d.ts +2 -0
  17. package/@types/configs/provider.d.ts +1 -0
  18. package/@types/configs/skeletonLoader.d.ts +57 -0
  19. package/@types/constants/avatar.d.ts +3 -0
  20. package/@types/constants/fileInput.d.ts +31 -0
  21. package/@types/constants/index.d.ts +5 -0
  22. package/@types/constants/layout.d.ts +2 -0
  23. package/@types/constants/numberInput.d.ts +22 -0
  24. package/@types/constants/pagination.d.ts +20 -0
  25. package/@types/constants/skeletonLoader.d.ts +33 -0
  26. package/@types/constants/tabs.d.ts +6 -0
  27. package/@types/definitions/props/index.d.ts +7 -0
  28. package/@types/definitions/props/propsAutocomplete.d.ts +2 -0
  29. package/@types/definitions/props/propsAvatar.d.ts +13 -0
  30. package/@types/definitions/props/propsAvatarGroup.d.ts +8 -0
  31. package/@types/definitions/props/propsEmptyState.d.ts +17 -0
  32. package/@types/definitions/props/propsFileInput.d.ts +41 -0
  33. package/@types/definitions/props/propsNumberInput.d.ts +46 -0
  34. package/@types/definitions/props/propsPagination.d.ts +32 -0
  35. package/@types/definitions/props/propsRow.d.ts +1 -0
  36. package/@types/definitions/props/propsSelect.d.ts +2 -0
  37. package/@types/definitions/props/propsSkeletonLoader.d.ts +18 -0
  38. package/@types/definitions/props/propsTabs.d.ts +4 -0
  39. package/@types/helpers/fileInputRules.d.ts +18 -0
  40. package/@types/helpers/index.d.ts +1 -0
  41. package/@types/lib/escapeHtml.d.ts +2 -0
  42. package/@types/lib/flattenVNodes.d.ts +2 -0
  43. package/@types/lib/index.d.ts +3 -0
  44. package/@types/lib/numberInput.d.ts +23 -0
  45. package/@types/lib/revealInScroller.d.ts +14 -0
  46. package/@types/services/appBarService.d.ts +14 -0
  47. package/@types/services/core/layoutCoreService.d.ts +4 -0
  48. package/@types/services/index.d.ts +2 -0
  49. package/@types/services/layoutProviderService.d.ts +6 -0
  50. package/@types/services/layoutService.d.ts +4 -0
  51. package/@types/services/paginationService.d.ts +39 -0
  52. package/@types/services/skeletonLoaderService.d.ts +22 -0
  53. package/@types/services/tabsService.d.ts +6 -1
  54. package/@types/types/emits.d.ts +12 -0
  55. package/@types/types/fileInput.d.ts +28 -0
  56. package/@types/types/index.d.ts +4 -0
  57. package/@types/types/numberInput.d.ts +12 -0
  58. package/@types/types/pagination.d.ts +17 -0
  59. package/@types/types/skeletonLoader.d.ts +16 -0
  60. package/dist/s-ui.css +1 -1
  61. package/dist/s-ui.js +3966 -2856
  62. package/dist/s-ui.umd.cjs +1 -1
  63. package/dist/styles/components/avatar/_variables.scss +17 -0
  64. package/dist/styles/components/avatar/index.scss +1 -0
  65. package/dist/styles/components/index.scss +1 -0
  66. package/dist/sui-api.json +1208 -235
  67. package/package.json +3 -2
  68. package/sui-plugin/.claude-plugin/plugin.json +1 -1
  69. package/sui-plugin/skills/sui-component/SKILL.md +10 -3
  70. package/sui-plugin/skills/sui-component/references/autocomplete.md +51 -48
  71. package/sui-plugin/skills/sui-component/references/avatar-group.md +66 -0
  72. package/sui-plugin/skills/sui-component/references/avatar.md +76 -0
  73. package/sui-plugin/skills/sui-component/references/badge.md +4 -4
  74. package/sui-plugin/skills/sui-component/references/button.md +11 -11
  75. package/sui-plugin/skills/sui-component/references/calendar.md +1 -1
  76. package/sui-plugin/skills/sui-component/references/cards.md +9 -9
  77. package/sui-plugin/skills/sui-component/references/carousel.md +9 -9
  78. package/sui-plugin/skills/sui-component/references/chip.md +1 -1
  79. package/sui-plugin/skills/sui-component/references/date-picker.md +12 -12
  80. package/sui-plugin/skills/sui-component/references/dialog.md +8 -8
  81. package/sui-plugin/skills/sui-component/references/droppable.md +8 -8
  82. package/sui-plugin/skills/sui-component/references/empty-state.md +104 -0
  83. package/sui-plugin/skills/sui-component/references/file-input.md +106 -0
  84. package/sui-plugin/skills/sui-component/references/form.md +27 -25
  85. package/sui-plugin/skills/sui-component/references/image.md +8 -8
  86. package/sui-plugin/skills/sui-component/references/layout.md +47 -44
  87. package/sui-plugin/skills/sui-component/references/list.md +1 -1
  88. package/sui-plugin/skills/sui-component/references/menu.md +8 -8
  89. package/sui-plugin/skills/sui-component/references/number-input.md +102 -0
  90. package/sui-plugin/skills/sui-component/references/pagination.md +83 -0
  91. package/sui-plugin/skills/sui-component/references/progress.md +4 -4
  92. package/sui-plugin/skills/sui-component/references/sheet.md +8 -8
  93. package/sui-plugin/skills/sui-component/references/skeleton-loader.md +75 -0
  94. package/sui-plugin/skills/sui-component/references/slide-group.md +1 -1
  95. package/sui-plugin/skills/sui-component/references/snackbar.md +3 -3
  96. package/sui-plugin/skills/sui-component/references/split-view.md +2 -2
  97. package/sui-plugin/skills/sui-component/references/table.md +2 -1
  98. package/sui-plugin/skills/sui-component/references/tabs.md +18 -15
  99. package/sui-plugin/skills/sui-component/references/toggle-button-group.md +5 -4
  100. package/sui-plugin/skills/sui-component/references/toolbar.md +5 -5
  101. package/sui-plugin/skills/sui-component/references/tooltip.md +9 -9
  102. package/sui-plugin/skills/sui-component/references/window.md +1 -1
  103. package/sui-plugin/skills/sui-form/SKILL.md +6 -3
@@ -0,0 +1,2 @@
1
+ export { default as SAvatar } from './sAvatar.vue';
2
+ export { default as SAvatarGroup } from './sAvatarGroup.vue';
@@ -0,0 +1,13 @@
1
+ import type { PropsAvatar } from '../../definitions';
2
+ type __VLS_Slots = {
3
+ default: () => void;
4
+ };
5
+ declare const __VLS_base: import("vue").DefineComponent<PropsAvatar, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PropsAvatar> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
9
+ type __VLS_WithSlots<T, S> = T & {
10
+ new (): {
11
+ $slots: S;
12
+ };
13
+ };
@@ -0,0 +1,16 @@
1
+ import type { PropsAvatarGroup } from '../../definitions';
2
+ type __VLS_Slots = {
3
+ default: () => void;
4
+ more: (props: {
5
+ count: number;
6
+ }) => void;
7
+ };
8
+ declare const __VLS_base: import("vue").DefineComponent<PropsAvatarGroup, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PropsAvatarGroup> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
10
+ declare const _default: typeof __VLS_export;
11
+ export default _default;
12
+ type __VLS_WithSlots<T, S> = T & {
13
+ new (): {
14
+ $slots: S;
15
+ };
16
+ };
@@ -4,5 +4,6 @@ export { default as SCheckbox } from './sCheckbox.vue';
4
4
  export { default as SForm } from './sForm.vue';
5
5
  export { default as SFormRow } from './sFormRow.vue';
6
6
  export { default as SInput } from './sInput.vue';
7
+ export { default as SNumberInput } from './sNumberInput.vue';
7
8
  export { default as SSelect } from './sSelect.vue';
8
9
  export { default as STextarea } from './sTextarea.vue';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Lines up text fields (`SInput`, `SSelect`, `SDatePickerInput`, `SAutocomplete`, `STextarea`) and the buttons
2
+ * Lines up text fields (`SInput`, `SNumberInput`, `SSelect`, `SDatePickerInput`, `SAutocomplete`, `STextarea`) and the buttons
3
3
  * next to them in one wrapping row. Each button's top and bottom match the field box, not the field's label or
4
4
  * its error line, with or without a label and while an error shows.
5
5
  */
@@ -0,0 +1,29 @@
1
+ import type { PropsNumberInput } from '../../definitions';
2
+ type __VLS_Props = PropsNumberInput;
3
+ type __VLS_ModelProps = {
4
+ modelValue?: number | null;
5
+ };
6
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
7
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
8
+ validate: (value?: number | null | undefined) => Promise<boolean>;
9
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
+ change: (args_0: number | null) => any;
11
+ blur: (args_0: FocusEvent) => any;
12
+ focus: (args_0: FocusEvent) => any;
13
+ keydown: (args_0: KeyboardEvent) => any;
14
+ "update:error": (args_0: boolean) => any;
15
+ "update:errors": (args_0: string[]) => any;
16
+ "update:dirty": (args_0: boolean) => any;
17
+ "update:modelValue": (value: number | null) => any;
18
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
19
+ onChange?: ((args_0: number | null) => any) | undefined;
20
+ onBlur?: ((args_0: FocusEvent) => any) | undefined;
21
+ onFocus?: ((args_0: FocusEvent) => any) | undefined;
22
+ onKeydown?: ((args_0: KeyboardEvent) => any) | undefined;
23
+ "onUpdate:error"?: ((args_0: boolean) => any) | undefined;
24
+ "onUpdate:errors"?: ((args_0: string[]) => any) | undefined;
25
+ "onUpdate:dirty"?: ((args_0: boolean) => any) | undefined;
26
+ "onUpdate:modelValue"?: ((value: number | null) => any) | undefined;
27
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
28
+ declare const _default: typeof __VLS_export;
29
+ export default _default;
@@ -1,3 +1,4 @@
1
+ import { type VNode } from 'vue';
1
2
  import { type SelectItem } from '../../types';
2
3
  declare const __VLS_export: <T extends string | number = string | number>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
4
  props: import("vue").PublicProps & __VLS_PrettifyLocal<({
@@ -10,6 +11,7 @@ declare const __VLS_export: <T extends string | number = string | number>(__VLS_
10
11
  grow?: boolean;
11
12
  text?: boolean;
12
13
  divided?: boolean;
14
+ noDataText?: string | undefined;
13
15
  } & import("../../definitions").PropsBorder & {
14
16
  closeOnContentClick?: boolean;
15
17
  closeOnScroll?: boolean;
@@ -43,15 +45,18 @@ declare const __VLS_export: <T extends string | number = string | number>(__VLS_
43
45
  expose: (exposed: {}) => void;
44
46
  attrs: any;
45
47
  slots: {
48
+ /** Replaces the selected item's text in the field. */
46
49
  activator?: (props: {
47
50
  item: SelectItem | null;
48
51
  value: boolean | undefined;
49
- }) => any;
50
- } & {
52
+ }) => VNode[];
53
+ /** Replaces the chevron icon. */
51
54
  dropdownIcon?: (props: {
52
55
  color: string | undefined;
53
56
  value: boolean | undefined;
54
- }) => any;
57
+ }) => VNode[];
58
+ /** Replaces `noDataText` when `items` is empty, such as an `SEmptyState`. */
59
+ noData?: () => VNode[];
55
60
  };
56
61
  emit: (((evt: "change", args_0: T | null) => void) & ((evt: "update:error", args_0: boolean) => void) & ((evt: "update:errors", args_0: string[]) => void) & ((evt: "update:dirty", args_0: boolean) => void)) & (((event: "update:modelValue", value: T | null | undefined) => void) & ((event: "update:menu", value: boolean | undefined) => void));
57
62
  }>) => import("vue").VNode & {
@@ -1,3 +1,4 @@
1
+ export * from './avatar';
1
2
  export * from './badge';
2
3
  export * from './calendar';
3
4
  export * from './cards';
@@ -25,11 +26,15 @@ export { default as SChip } from './sChip.vue';
25
26
  export { default as SDialog } from './sDialog.vue';
26
27
  export { default as SDivider } from './sDivider.vue';
27
28
  export { default as SDroppable } from './sDroppable.vue';
29
+ export { default as SEmptyState } from './sEmptyState.vue';
30
+ export { default as SFileInput } from './sFileInput.vue';
28
31
  export { default as SIcon } from './sIcon.vue';
29
32
  export { default as SImage } from './sImage.vue';
30
33
  export { default as SOverlay } from './sOverlay.vue';
31
34
  export { default as SMenu } from './sMenu.vue';
35
+ export { default as SPagination } from './sPagination.vue';
32
36
  export { default as SSheet } from './sSheet.vue';
37
+ export { default as SSkeletonLoader } from './sSkeletonLoader.vue';
33
38
  export { default as SSnackbar } from './sSnackbar.vue';
34
39
  export { default as SSubheader } from './sSubheader.vue';
35
40
  export { default as SSwitch } from './sSwitch.vue';
@@ -1,3 +1,4 @@
1
+ import { type VNode } from 'vue';
1
2
  import type { AutocompleteModelType } from '../types/autocomplete';
2
3
  declare const __VLS_export: <T extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
4
  props: import("vue").PublicProps & __VLS_PrettifyLocal<({
@@ -12,6 +13,7 @@ declare const __VLS_export: <T extends boolean = false>(__VLS_props: NonNullable
12
13
  filter?: (item: import("../index.ts").SelectItem, queryText: string) => boolean;
13
14
  filterMode?: "start" | "contains" | "exact" | "none" | undefined;
14
15
  debounce?: number;
16
+ noDataText?: string | undefined;
15
17
  multiple?: T | undefined;
16
18
  chips?: boolean;
17
19
  closableChips?: boolean;
@@ -46,7 +48,12 @@ declare const __VLS_export: <T extends boolean = false>(__VLS_props: NonNullable
46
48
  } ? P : {});
47
49
  expose: (exposed: {}) => void;
48
50
  attrs: any;
49
- slots: {};
51
+ slots: {
52
+ /** Replaces `noDataText` when no option is left, such as an `SEmptyState`. Receives the typed `query`. */
53
+ noData?: (props: {
54
+ query: string;
55
+ }) => VNode[];
56
+ };
50
57
  emit: (((evt: "searchItem", args_0: string) => void) & ((evt: "createItem", args_0: import("../index.ts").SelectItem) => void)) & ((event: "update:modelValue", value: AutocompleteModelType<T> | null | undefined) => void);
51
58
  }>) => import("vue").VNode & {
52
59
  __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
@@ -0,0 +1,26 @@
1
+ import type { PropsEmptyState } from '../definitions';
2
+ type __VLS_Slots = {
3
+ /** Replaces the icon or image, such as an illustration component. Keep it decorative. */
4
+ media?: () => unknown;
5
+ /** Replaces the `title` text. */
6
+ title?: () => unknown;
7
+ /** Replaces the `text` sentence. */
8
+ text?: () => unknown;
9
+ /** Extra content between the text and the actions. */
10
+ default?: () => unknown;
11
+ /** Replaces the built-in action button, such as two SButtons or a link. */
12
+ actions?: () => unknown;
13
+ };
14
+ declare const __VLS_base: import("vue").DefineComponent<PropsEmptyState, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
+ action: (event: Event) => any;
16
+ }, string, import("vue").PublicProps, Readonly<PropsEmptyState> & Readonly<{
17
+ onAction?: ((event: Event) => any) | undefined;
18
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
20
+ declare const _default: typeof __VLS_export;
21
+ export default _default;
22
+ type __VLS_WithSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -0,0 +1,35 @@
1
+ import type { PropsFileInput } from '../definitions';
2
+ type __VLS_Props = PropsFileInput;
3
+ type __VLS_ModelProps = {
4
+ modelValue?: File[] | null;
5
+ };
6
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
7
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
8
+ validate: (value?: File[] | null | undefined) => Promise<boolean>;
9
+ clear: () => Promise<void>;
10
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
+ change: (args_0: File[] | null) => any;
12
+ clear: () => any;
13
+ "update:error": (args_0: boolean) => any;
14
+ "update:errors": (args_0: string[]) => any;
15
+ "update:dirty": (args_0: boolean) => any;
16
+ "update:modelValue": (value: File[] | null | undefined) => any;
17
+ reject: (args_0: File[]) => any;
18
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
19
+ onChange?: ((args_0: File[] | null) => any) | undefined;
20
+ onClear?: (() => any) | undefined;
21
+ "onUpdate:error"?: ((args_0: boolean) => any) | undefined;
22
+ "onUpdate:errors"?: ((args_0: string[]) => any) | undefined;
23
+ "onUpdate:dirty"?: ((args_0: boolean) => any) | undefined;
24
+ "onUpdate:modelValue"?: ((value: File[] | null | undefined) => any) | undefined;
25
+ onReject?: ((args_0: File[]) => any) | undefined;
26
+ }>, {
27
+ display: "names" | "chips" | "count";
28
+ clearAriaLabel: string;
29
+ loadingAriaLabel: string;
30
+ variant: "input" | "dropzone";
31
+ countText: string;
32
+ dropText: string;
33
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
34
+ declare const _default: typeof __VLS_export;
35
+ export default _default;
@@ -0,0 +1,21 @@
1
+ import type { PropsPagination } from '../definitions';
2
+ declare const __VLS_export: import("vue").DefineComponent<PropsPagination, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
3
+ "update:modelValue": (value: number) => any;
4
+ }, string, import("vue").PublicProps, Readonly<PropsPagination> & Readonly<{
5
+ "onUpdate:modelValue"?: ((value: number) => any) | undefined;
6
+ }>, {
7
+ disabled: boolean | null;
8
+ color: string;
9
+ modelValue: number;
10
+ compact: boolean;
11
+ ariaLabel: string;
12
+ prevAriaLabel: string;
13
+ nextAriaLabel: string;
14
+ totalVisible: number;
15
+ showFirstLastPage: boolean;
16
+ pageAriaLabel: string;
17
+ firstAriaLabel: string;
18
+ lastAriaLabel: string;
19
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
+ declare const _default: typeof __VLS_export;
21
+ export default _default;
@@ -0,0 +1,19 @@
1
+ import type { PropsSkeletonLoader } from '../definitions';
2
+ type __VLS_Slots = {
3
+ /** The real content, shown once `loading` is `false`. */
4
+ default?: () => void;
5
+ };
6
+ declare const __VLS_base: import("vue").DefineComponent<PropsSkeletonLoader, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PropsSkeletonLoader> & Readonly<{}>, {
7
+ type: string;
8
+ loading: boolean;
9
+ loadingText: string;
10
+ boilerplate: boolean;
11
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
13
+ declare const _default: typeof __VLS_export;
14
+ export default _default;
15
+ type __VLS_WithSlots<T, S> = T & {
16
+ new (): {
17
+ $slots: S;
18
+ };
19
+ };
@@ -17,6 +17,8 @@ declare const __VLS_export: <T extends GroupItemValue = GroupItemValue>(__VLS_pr
17
17
  attrs: any;
18
18
  slots: {
19
19
  default?: (props: {}) => any;
20
+ } & {
21
+ overlay?: (props: {}) => any;
20
22
  };
21
23
  emit: (event: "update:modelValue", value: T[] | null) => void;
22
24
  }>) => import("vue").VNode & {
@@ -0,0 +1,5 @@
1
+ /** SFileInput's icon for each variant when the `icon` prop is not set. */
2
+ export declare const fileInputDefaultIcons: {
3
+ input: string;
4
+ dropzone: string;
5
+ };
@@ -9,3 +9,5 @@ export * from './toolbar';
9
9
  export * from './transitions';
10
10
  export * from './i18n.ts';
11
11
  export * from './provider';
12
+ export * from './skeletonLoader';
13
+ export * from './fileInput';
@@ -40,4 +40,5 @@ export declare const ProviderPropsName: {
40
40
  dialog: InjectionKey<props.PropsDialog>;
41
41
  listProps: InjectionKey<props.PropsList>;
42
42
  listItemProps: InjectionKey<props.PropsListItem>;
43
+ avatarGroupProps: InjectionKey<props.PropsAvatarGroup>;
43
44
  };
@@ -0,0 +1,57 @@
1
+ import { SkeletonLoaderPreset } from '../constants';
2
+ import { type SkeletonLoaderPresetType } from '../types';
3
+ /**
4
+ * What each SSkeletonLoader preset is made of. A preset with no parts is a single bone; the others are groups the
5
+ * component lays out (a card stacks its parts, a table row puts its cells side by side).
6
+ */
7
+ export declare const skeletonLoaderPresetParts: {
8
+ text: never[];
9
+ heading: never[];
10
+ avatar: never[];
11
+ button: never[];
12
+ image: never[];
13
+ card: ({
14
+ preset: SkeletonLoaderPreset.image;
15
+ count: number;
16
+ } | {
17
+ preset: SkeletonLoaderPreset.heading;
18
+ count: number;
19
+ } | {
20
+ preset: SkeletonLoaderPreset.text;
21
+ count: number;
22
+ })[];
23
+ "list-item": {
24
+ preset: SkeletonLoaderPreset.text;
25
+ count: number;
26
+ }[];
27
+ "list-item-avatar": ({
28
+ preset: SkeletonLoaderPreset.avatar;
29
+ count: number;
30
+ } | {
31
+ preset: SkeletonLoaderPreset.text;
32
+ count: number;
33
+ })[];
34
+ "table-row": {
35
+ preset: SkeletonLoaderPreset.text;
36
+ count: number;
37
+ }[];
38
+ table: {
39
+ preset: SkeletonLoaderPreset.tableRow;
40
+ count: number;
41
+ }[];
42
+ };
43
+ /** The camelCase BEM element each preset draws: `list-item-avatar` → `.s_skeletonLoader__listItemAvatar`. */
44
+ export declare const skeletonLoaderPresetElements: {
45
+ text: string;
46
+ heading: string;
47
+ avatar: string;
48
+ button: string;
49
+ image: string;
50
+ card: string;
51
+ "list-item": string;
52
+ "list-item-avatar": string;
53
+ "table-row": string;
54
+ table: string;
55
+ };
56
+ /** Every preset name, in the order the docs list them. */
57
+ export declare const skeletonLoaderPresets: SkeletonLoaderPresetType[];
@@ -0,0 +1,3 @@
1
+ export declare const AVATAR_DEFAULT_ICON = "mdi-account";
2
+ export declare const AVATAR_GROUP_MORE_LABEL = "{count} more";
3
+ export declare const AVATAR_GROUP_COUNT_PLACEHOLDER = "{count}";
@@ -0,0 +1,31 @@
1
+ /** How SFileInput shows the files it holds. */
2
+ export declare enum FileInputDisplay {
3
+ /** The file names, comma-separated and truncated with an ellipsis. */
4
+ names = "names",
5
+ /** One chip per file. */
6
+ chips = "chips",
7
+ /** The number of files, such as `3 files`; a single file still shows its name. */
8
+ count = "count"
9
+ }
10
+ /** The look of SFileInput. */
11
+ export declare enum FileInputVariant {
12
+ /** A text-field box, like SInput. */
13
+ input = "input",
14
+ /** A large dashed area that also takes files dragged onto it. */
15
+ dropzone = "dropzone"
16
+ }
17
+ /** Bytes in one kilobyte, megabyte step and so on: file sizes use binary units, as file managers do. */
18
+ export declare const fileSizeUnitStep = 1024;
19
+ export declare const fileSizeUnits: string[];
20
+ /** Decimals shown for a size of 1 KB or more: `1.5 MB`. */
21
+ export declare const fileSizeFractionDigits = 1;
22
+ /** Separates the entries of an `accept` string: `.csv,.xlsx,image/*`. */
23
+ export declare const fileAcceptSeparator = ",";
24
+ /** The suffix of an `accept` entry that matches a whole MIME family: `image/*`. */
25
+ export declare const fileAcceptWildcardSuffix = "/*";
26
+ /** Starts an `accept` entry that is a file extension: `.csv`. */
27
+ export declare const fileAcceptExtensionPrefix = ".";
28
+ /** Separates the selected file names in the `names` display. */
29
+ export declare const fileInputNameSeparator = ", ";
30
+ /** The loading spinner's diameter in pixels, the size SAutocomplete's spinner uses. */
31
+ export declare const fileInputLoaderSize = 20;
@@ -21,3 +21,8 @@ export * from './navigationDrawer';
21
21
  export * from './keyboard';
22
22
  export * from './listbox';
23
23
  export * from './tabs';
24
+ export * from './avatar';
25
+ export * from './pagination';
26
+ export * from './numberInput';
27
+ export * from './skeletonLoader';
28
+ export * from './fileInput';
@@ -7,4 +7,6 @@ export declare const defaultLayoutSizes: {
7
7
  appBarPosition: Position;
8
8
  appBarHeight: number;
9
9
  footerHeight: number;
10
+ hasLeftSafeArea: boolean;
11
+ hasRightSafeArea: boolean;
10
12
  };
@@ -0,0 +1,22 @@
1
+ /** How SNumberInput lays out its increment and decrement buttons. */
2
+ export declare const numberInputControlVariants: readonly ["stacked", "split"];
3
+ /** Layout of the controls when `controlVariant` is not set: both buttons stacked at the end of the field. */
4
+ export declare const numberInputDefaultControlVariant = "stacked";
5
+ /** Amount one increment, decrement or arrow key adds or removes when `step` is not set. */
6
+ export declare const numberInputDefaultStep = 1;
7
+ /** Decimal places kept when `precision` is not set: whole numbers only. */
8
+ export declare const numberInputDefaultPrecision = 0;
9
+ /** Default accessible name of the increment button. */
10
+ export declare const numberInputIncrementLabel = "Increase";
11
+ /** Default accessible name of the decrement button. */
12
+ export declare const numberInputDecrementLabel = "Decrease";
13
+ /** Icon of the increment button. */
14
+ export declare const numberInputIncrementIcon = "mdi-plus";
15
+ /** Icon of the decrement button. */
16
+ export declare const numberInputDecrementIcon = "mdi-minus";
17
+ /** Icon of the increment button when the buttons are stacked. */
18
+ export declare const numberInputStackedIncrementIcon = "mdi-chevron-up";
19
+ /** Icon of the decrement button when the buttons are stacked. */
20
+ export declare const numberInputStackedDecrementIcon = "mdi-chevron-down";
21
+ /** Most decimal places `Number.prototype.toFixed` accepts. */
22
+ export declare const numberInputMaxPrecision = 100;
@@ -0,0 +1,20 @@
1
+ /** Marker for a gap in the page list that SPagination draws as "…". */
2
+ export declare const paginationEllipsis = "ellipsis";
3
+ /** Page slots (pages and ellipses together) SPagination shows when `totalVisible` is not set. */
4
+ export declare const paginationDefaultTotalVisible = 7;
5
+ /** Most page slots SPagination shows in compact mode. */
6
+ export declare const paginationCompactMaxVisible = 5;
7
+ /** Fewest slots that fit "first, …, current, …, last". Below it the list is a plain window of pages. */
8
+ export declare const paginationMinEllipsisSlots = 5;
9
+ /** Fewest pages an ellipsis may stand for. Hiding a single page behind "…" saves no space. */
10
+ export declare const paginationMinHiddenPages = 2;
11
+ /** Previous and next buttons, always shown. */
12
+ export declare const paginationStepButtonCount = 2;
13
+ /** First, previous, next and last buttons. */
14
+ export declare const paginationAllButtonCount = 4;
15
+ /** Page shown when no `modelValue` is given. */
16
+ export declare const paginationFirstPage = 1;
17
+ /** Rows per page STablePagination uses when `itemsPerPage` is not set. */
18
+ export declare const tablePaginationDefaultItemsPerPage = 10;
19
+ /** A page item inside SPagination, used to measure how many fit. */
20
+ export declare const paginationSlotSelector = ".s_pagination__slot";
@@ -0,0 +1,33 @@
1
+ /** The presets SSkeletonLoader's `type` string is made of. */
2
+ export declare enum SkeletonLoaderPreset {
3
+ text = "text",
4
+ heading = "heading",
5
+ avatar = "avatar",
6
+ button = "button",
7
+ image = "image",
8
+ card = "card",
9
+ listItem = "list-item",
10
+ listItemAvatar = "list-item-avatar",
11
+ tableRow = "table-row",
12
+ table = "table"
13
+ }
14
+ /** Separates the presets in a `type` string: `'avatar, text'`. */
15
+ export declare const skeletonLoaderTypeSeparator = ",";
16
+ /** Separates a preset from its repeat count: `'text@3'`. */
17
+ export declare const skeletonLoaderRepeatSeparator = "@";
18
+ /** Times a preset is drawn when the `type` string gives no `@N`, or an invalid one. */
19
+ export declare const skeletonLoaderDefaultRepeat = 1;
20
+ /** Most times one preset is drawn, so a typo such as `text@1000` cannot flood the DOM. */
21
+ export declare const skeletonLoaderMaxRepeat = 50;
22
+ /** `type` drawn when the prop resolves to nothing (for example a component default of `undefined`). */
23
+ export declare const skeletonLoaderDefaultType = "text";
24
+ /** Text lines in a `card` preset, under its heading. */
25
+ export declare const skeletonLoaderCardTextLines = 2;
26
+ /** Text lines beside the avatar of a `list-item-avatar` preset. */
27
+ export declare const skeletonLoaderListItemAvatarTextLines = 2;
28
+ /** Cells in a `table-row` preset. */
29
+ export declare const skeletonLoaderTableColumns = 4;
30
+ /** Rows in a `table` preset. */
31
+ export declare const skeletonLoaderTableRows = 5;
32
+ /** Levels SSkeletonLoader's template draws (table → row → cell). A preset must not nest deeper. */
33
+ export declare const skeletonLoaderMaxDepth = 3;
@@ -2,3 +2,9 @@
2
2
  export declare const tabsScrollerSelector = ".s_toggleButtonGroup__content";
3
3
  /** The selected tab inside STabs. */
4
4
  export declare const tabsSelectedTabSelector = ".s_toggleButton--selected";
5
+ /** Sub-pixel slack, in pixels, before STabs counts its row of tabs as scrolled away from an edge. */
6
+ export declare const tabsScrollEdgeTolerance = 1;
7
+ /** Media query under which the STabs scroll arrows (`showArrows`) jump instead of scrolling smoothly. */
8
+ export declare const tabsReducedMotionQuery = "(prefers-reduced-motion: reduce)";
9
+ /** Share of the visible width that one click on an STabs scroll arrow scrolls by. */
10
+ export declare const tabsScrollStepRatio = 0.8;
@@ -3,6 +3,8 @@ export * from './propsAlert';
3
3
  export * from './propsApp';
4
4
  export * from './propsAppBar';
5
5
  export * from './propsAutocomplete';
6
+ export * from './propsAvatar';
7
+ export * from './propsAvatarGroup';
6
8
  export * from './propsBadge';
7
9
  export * from './propsBottomNavigation';
8
10
  export * from './propsBreadcrumbs';
@@ -24,7 +26,9 @@ export * from './propsDatePickerItemTitle';
24
26
  export * from './propsDialog';
25
27
  export * from './propsDivider';
26
28
  export * from './propsDroppable';
29
+ export * from './propsEmptyState';
27
30
  export * from './propsExpansionPanels';
31
+ export * from './propsFileInput';
28
32
  export * from './propsFooter';
29
33
  export * from './propsFormInput';
30
34
  export * from './propsIcon';
@@ -39,7 +43,9 @@ export * from './propsListMediaItem';
39
43
  export * from './propsMain';
40
44
  export * from './propsMenu';
41
45
  export * from './propsNavigationDrawer';
46
+ export * from './propsNumberInput';
42
47
  export * from './propsOverlay';
48
+ export * from './propsPagination';
43
49
  export * from './propsProgressCircular';
44
50
  export * from './propsProgressLinear';
45
51
  export * from './propsRadioGroup';
@@ -51,6 +57,7 @@ export * from './propsSingleGroup';
51
57
  export * from './propsSingleGroupItem';
52
58
  export * from './propsSizePreset';
53
59
  export * from './propsSizeUnion';
60
+ export * from './propsSkeletonLoader';
54
61
  export * from './propsSlideGroup';
55
62
  export * from './propsSnackbar';
56
63
  export * from './propsSplitView';
@@ -20,6 +20,8 @@ export type PropsAutocomplete<T extends boolean = false> = {
20
20
  /** @description by default, the filter mode is 'contains' */
21
21
  filterMode?: 'start' | 'contains' | 'exact' | 'none' | undefined;
22
22
  debounce?: number;
23
+ /** Message shown in the open menu when no item matches the query (and there is no "Add" option). Without it (and without the `noData` slot) the menu stays blank. Put an `SEmptyState` in the `noData` slot for an icon or an action. */
24
+ noDataText?: string | undefined;
23
25
  multiple?: T;
24
26
  chips?: boolean;
25
27
  closableChips?: boolean;
@@ -0,0 +1,13 @@
1
+ import { type PropsBorder, type PropsColor } from './core';
2
+ import { type PropsSizeUnion } from './propsSizeUnion';
3
+ import { type MaterialDesignIcon } from '../../types';
4
+ export type PropsAvatar = {
5
+ /** Image URL. When it is missing or fails to load, the avatar shows `text`, then `icon`. Do not put an `<img>` in the slot. */
6
+ image?: string | undefined;
7
+ /** Accessible name of the avatar, usually the person's name. Used as the image `alt` and as the `aria-label`. Leave it empty for a decorative avatar. */
8
+ alt?: string | undefined;
9
+ /** Initials shown when there is no image or it fails to load. Keep it to 1–3 characters, such as `JD`, not a full name. */
10
+ text?: string | undefined;
11
+ /** Material Design icon shown when there is neither an image nor text. Defaults to `mdi-account`. */
12
+ icon?: MaterialDesignIcon | undefined;
13
+ } & PropsColor & PropsSizeUnion & Pick<PropsBorder, 'borderRadius' | 'outlined'>;
@@ -0,0 +1,8 @@
1
+ import { type PropsColor } from './core';
2
+ import { type PropsSizeUnion } from './propsSizeUnion';
3
+ export type PropsAvatarGroup = {
4
+ /** The most avatars shown. The rest collapse into one "+N" avatar. Shows every avatar when unset. */
5
+ max?: number | undefined;
6
+ /** Accessible name of the "+N" avatar. `{count}` is replaced with the number of hidden avatars. Defaults to `{count} more`. */
7
+ moreLabel?: string | undefined;
8
+ } & PropsColor & PropsSizeUnion;
@@ -0,0 +1,17 @@
1
+ import { type PropsComponentTheme } from './core';
2
+ import { type PropsSizePreset } from './propsSizePreset';
3
+ import { type MaterialDesignIcon } from '../../types';
4
+ export type PropsEmptyState = {
5
+ /** Material Design icon shown above the title, such as `mdi-inbox-outline`. Ignored when `image` is set. Decorative: hidden from screen readers. */
6
+ icon?: MaterialDesignIcon | undefined;
7
+ /** Illustration URL shown above the title. Wins over `icon`. Decorative (`alt=""`): put the meaning in `title` and `text`. */
8
+ image?: string | undefined;
9
+ /** Short headline, such as `No orders yet`. Rendered as text, not as a heading element. */
10
+ title?: string | undefined;
11
+ /** Supporting sentence under the title that says why it is empty or what to do next. */
12
+ text?: string | undefined;
13
+ /** Label of the built-in action button. The button is shown only when this is set; clicking it emits `action`. */
14
+ actionText?: string | undefined;
15
+ /** Colour of the icon only (preset name or CSS colour), not a background: an empty state has no background of its own. */
16
+ color?: string | null | undefined;
17
+ } & PropsComponentTheme & PropsSizePreset;