@softwareone/spi-sv5-library 1.14.0 → 1.14.1

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 (126) hide show
  1. package/README.md +0 -5
  2. package/dist/Accordion/Accordion.svelte +2 -7
  3. package/dist/Accordion/Accordion.svelte.d.ts +2 -2
  4. package/dist/Announcement/Announcement.svelte +1 -1
  5. package/dist/Announcement/Announcement.svelte.d.ts +1 -1
  6. package/dist/Avatar/Avatar.svelte +2 -2
  7. package/dist/Avatar/Avatar.svelte.d.ts +2 -2
  8. package/dist/Button/Button.svelte +2 -2
  9. package/dist/Button/Button.svelte.d.ts +2 -2
  10. package/dist/Card/Card.svelte +2 -2
  11. package/dist/Card/Card.svelte.d.ts +2 -2
  12. package/dist/Chips/Chips.svelte +3 -3
  13. package/dist/Chips/Chips.svelte.d.ts +3 -3
  14. package/dist/Controls/AttachFile/AttachFile.svelte +1 -1
  15. package/dist/Controls/AttachFile/AttachFile.svelte.d.ts +1 -1
  16. package/dist/Controls/AttachFile/Warnings.svelte +2 -2
  17. package/dist/Controls/AttachFile/Warnings.svelte.d.ts +2 -2
  18. package/dist/Controls/Input/Input.svelte +3 -3
  19. package/dist/Controls/Input/Input.svelte.d.ts +3 -3
  20. package/dist/Controls/Label/Label.svelte +1 -1
  21. package/dist/Controls/Label/Label.svelte.d.ts +1 -1
  22. package/dist/Controls/RadioGroup/RadioGroup.svelte +4 -4
  23. package/dist/Controls/RadioGroup/RadioGroup.svelte.d.ts +4 -4
  24. package/dist/Controls/Select/Select.svelte +22 -10
  25. package/dist/Controls/Select/Select.svelte.d.ts +3 -3
  26. package/dist/Controls/TextArea/TextArea.svelte +3 -3
  27. package/dist/Controls/TextArea/TextArea.svelte.d.ts +3 -3
  28. package/dist/Controls/Toggle/Toggle.svelte +3 -3
  29. package/dist/Controls/Toggle/Toggle.svelte.d.ts +3 -3
  30. package/dist/DeleteConfirmation/DeleteConfirmation.svelte +2 -2
  31. package/dist/DeleteConfirmation/DeleteConfirmation.svelte.d.ts +2 -2
  32. package/dist/ErrorPage/ErrorPage.svelte +2 -2
  33. package/dist/ErrorPage/ErrorPage.svelte.d.ts +2 -2
  34. package/dist/Footer/Footer.svelte +3 -2
  35. package/dist/Footer/Footer.svelte.d.ts +2 -2
  36. package/dist/Header/Header.svelte +3 -3
  37. package/dist/Header/Header.svelte.d.ts +3 -3
  38. package/dist/HighlightPanel/HighlightPanel.svelte +2 -2
  39. package/dist/HighlightPanel/HighlightPanel.svelte.d.ts +2 -2
  40. package/dist/HighlightPanel/enums.d.ts +12 -0
  41. package/dist/HighlightPanel/{highlightPanelState.svelte.d.ts → types.d.ts} +1 -12
  42. package/dist/Home/Home.svelte +2 -2
  43. package/dist/Home/Home.svelte.d.ts +2 -2
  44. package/dist/Menu/Menu.svelte +3 -3
  45. package/dist/Menu/Menu.svelte.d.ts +3 -3
  46. package/dist/Menu/MenuItem.svelte +3 -3
  47. package/dist/Menu/MenuItem.svelte.d.ts +3 -3
  48. package/dist/Menu/Sidebar.svelte +1 -1
  49. package/dist/Menu/Sidebar.svelte.d.ts +1 -1
  50. package/dist/Menu/{MenuState.svelte.d.ts → types.d.ts} +0 -1
  51. package/dist/Menu/utils.d.ts +2 -0
  52. package/dist/Modal/Modal.svelte +1 -1
  53. package/dist/Modal/Modal.svelte.d.ts +1 -1
  54. package/dist/Modal/ModalContent.svelte +2 -2
  55. package/dist/Modal/ModalContent.svelte.d.ts +2 -2
  56. package/dist/Modal/ModalFooter.svelte +1 -1
  57. package/dist/Modal/ModalFooter.svelte.d.ts +1 -1
  58. package/dist/Modal/ModalHeader.svelte +1 -1
  59. package/dist/Modal/ModalHeader.svelte.d.ts +1 -1
  60. package/dist/Notification/Notification.svelte +10 -1
  61. package/dist/Notification/Notification.svelte.d.ts +8 -1
  62. package/dist/Processing/Processing.svelte +8 -2
  63. package/dist/Processing/Processing.svelte.d.ts +7 -2
  64. package/dist/ProgressPage/ProgressPage.svelte +3 -3
  65. package/dist/ProgressPage/ProgressPage.svelte.d.ts +3 -3
  66. package/dist/ProgressWizard/ProgressWizard.svelte +2 -2
  67. package/dist/ProgressWizard/ProgressWizard.svelte.d.ts +2 -2
  68. package/dist/ProgressWizard/context.d.ts +1 -1
  69. package/dist/ProgressWizard/{progressWizardState.svelte.d.ts → types.d.ts} +0 -1
  70. package/dist/ProgressWizard/utils.d.ts +2 -0
  71. package/dist/Spinner/Spinner.svelte +2 -2
  72. package/dist/Spinner/Spinner.svelte.d.ts +2 -2
  73. package/dist/Switcher/Switcher.svelte +2 -2
  74. package/dist/Switcher/Switcher.svelte.d.ts +2 -2
  75. package/dist/Table/AdvancedFilter.svelte +1 -1
  76. package/dist/Table/Header.svelte +1 -1
  77. package/dist/Table/Table.svelte +1 -1
  78. package/dist/Table/index.d.ts +1 -1
  79. package/dist/Table/index.js +1 -1
  80. package/dist/Tabs/Tabs.svelte +2 -2
  81. package/dist/Tabs/Tabs.svelte.d.ts +2 -2
  82. package/dist/Toast/Toast.svelte +3 -3
  83. package/dist/Toast/Toast.svelte.d.ts +2 -2
  84. package/dist/Toast/{toastState.svelte.d.ts → state.svelte.d.ts} +1 -6
  85. package/dist/Toast/types.d.ts +7 -0
  86. package/dist/Toast/types.js +1 -0
  87. package/dist/Tooltip/Tooltip.svelte +2 -2
  88. package/dist/Tooltip/Tooltip.svelte.d.ts +2 -2
  89. package/dist/Waffle/Waffle.svelte +1 -1
  90. package/dist/Waffle/Waffle.svelte.d.ts +1 -1
  91. package/dist/Waffle/types.js +1 -0
  92. package/dist/index.d.ts +27 -32
  93. package/dist/index.js +17 -19
  94. package/package.json +1 -1
  95. package/dist/Breadcrumbs/Breadcrumbs.svelte +0 -78
  96. package/dist/Breadcrumbs/Breadcrumbs.svelte.d.ts +0 -18
  97. package/dist/Breadcrumbs/breadcrumbsState.svelte.d.ts +0 -8
  98. package/dist/Breadcrumbs/breadcrumbsState.svelte.js +0 -24
  99. package/dist/Notification/notificationState.svelte.d.ts +0 -9
  100. package/dist/Processing/processingState.svelte.d.ts +0 -6
  101. /package/dist/Announcement/{AnnouncementState.svelte.d.ts → types.d.ts} +0 -0
  102. /package/dist/Announcement/{AnnouncementState.svelte.js → types.js} +0 -0
  103. /package/dist/Chips/{chipsState.svelte.d.ts → enums.d.ts} +0 -0
  104. /package/dist/Chips/{chipsState.svelte.js → enums.js} +0 -0
  105. /package/dist/Controls/Label/{labelState.svelte.d.ts → types.d.ts} +0 -0
  106. /package/dist/Controls/Label/{labelState.svelte.js → types.js} +0 -0
  107. /package/dist/Controls/RadioGroup/{radioGroupState.svelte.d.ts → types.d.ts} +0 -0
  108. /package/dist/Controls/RadioGroup/{radioGroupState.svelte.js → types.js} +0 -0
  109. /package/dist/Controls/Select/{selectState.svelte.d.ts → types.d.ts} +0 -0
  110. /package/dist/Controls/Select/{selectState.svelte.js → types.js} +0 -0
  111. /package/dist/HighlightPanel/{highlightPanelState.svelte.js → enums.js} +0 -0
  112. /package/dist/{Modal/modalState.svelte.js → HighlightPanel/types.js} +0 -0
  113. /package/dist/{Notification/notificationState.svelte.js → Menu/types.js} +0 -0
  114. /package/dist/Menu/{MenuState.svelte.js → utils.js} +0 -0
  115. /package/dist/Modal/{modalState.svelte.d.ts → types.d.ts} +0 -0
  116. /package/dist/{Processing/processingState.svelte.js → Modal/types.js} +0 -0
  117. /package/dist/{Switcher/switcherState.svelte.js → ProgressWizard/types.js} +0 -0
  118. /package/dist/ProgressWizard/{progressWizardState.svelte.js → utils.js} +0 -0
  119. /package/dist/Switcher/{switcherState.svelte.d.ts → types.d.ts} +0 -0
  120. /package/dist/{Waffle/waffleState.svelte.js → Switcher/types.js} +0 -0
  121. /package/dist/Table/{util.d.ts → utils.d.ts} +0 -0
  122. /package/dist/Table/{util.js → utils.js} +0 -0
  123. /package/dist/Tabs/{tabsState.svelte.d.ts → types.d.ts} +0 -0
  124. /package/dist/Tabs/{tabsState.svelte.js → types.js} +0 -0
  125. /package/dist/Toast/{toastState.svelte.js → state.svelte.js} +0 -0
  126. /package/dist/Waffle/{waffleState.svelte.d.ts → types.d.ts} +0 -0
@@ -3,13 +3,13 @@
3
3
 
4
4
  import { Avatar, Chips, ColumnType, ImageType, type HighlightPanelColumn } from '../index.js';
5
5
 
6
- interface HighlightPanelProps {
6
+ interface Props {
7
7
  columns: HighlightPanelColumn[];
8
8
  buttonSection?: Snippet;
9
9
  distributionType?: 'flex' | 'flex-column' | 'grid';
10
10
  }
11
11
 
12
- let { columns, distributionType = 'flex', buttonSection }: HighlightPanelProps = $props();
12
+ let { columns, distributionType = 'flex', buttonSection }: Props = $props();
13
13
  </script>
14
14
 
15
15
  <div class="highlight-panel">
@@ -1,10 +1,10 @@
1
1
  import type { Snippet } from 'svelte';
2
2
  import { type HighlightPanelColumn } from '../index.js';
3
- interface HighlightPanelProps {
3
+ interface Props {
4
4
  columns: HighlightPanelColumn[];
5
5
  buttonSection?: Snippet;
6
6
  distributionType?: 'flex' | 'flex-column' | 'grid';
7
7
  }
8
- declare const HighlightPanel: import("svelte").Component<HighlightPanelProps, {}, "">;
8
+ declare const HighlightPanel: import("svelte").Component<Props, {}, "">;
9
9
  type HighlightPanel = ReturnType<typeof HighlightPanel>;
10
10
  export default HighlightPanel;
@@ -0,0 +1,12 @@
1
+ export declare enum ImageType {
2
+ Default = "image",
3
+ Avatar = "avatar",
4
+ Material = "material"
5
+ }
6
+ export declare enum ColumnType {
7
+ Text = "text",
8
+ Link = "link",
9
+ Image = "image",
10
+ Status = "status",
11
+ Custom = "custom"
12
+ }
@@ -1,17 +1,6 @@
1
1
  import type { Snippet } from 'svelte';
2
2
  import type { ChipType } from '../index.js';
3
- export declare enum ImageType {
4
- Default = "image",
5
- Avatar = "avatar",
6
- Material = "material"
7
- }
8
- export declare enum ColumnType {
9
- Text = "text",
10
- Link = "link",
11
- Image = "image",
12
- Status = "status",
13
- Custom = "custom"
14
- }
3
+ import type { ColumnType, ImageType } from './enums.js';
15
4
  type BaseColumn = {
16
5
  label: string;
17
6
  value: string;
@@ -1,12 +1,12 @@
1
1
  <script lang="ts">
2
2
  import type { HomeItem } from '../index.js';
3
3
 
4
- interface HomeProps {
4
+ interface Props {
5
5
  title: string;
6
6
  homeItems: HomeItem[];
7
7
  }
8
8
 
9
- let { title, homeItems }: HomeProps = $props();
9
+ let { title, homeItems }: Props = $props();
10
10
  </script>
11
11
 
12
12
  <h1 class="home-title">
@@ -1,8 +1,8 @@
1
1
  import type { HomeItem } from '../index.js';
2
- interface HomeProps {
2
+ interface Props {
3
3
  title: string;
4
4
  homeItems: HomeItem[];
5
5
  }
6
- declare const Home: import("svelte").Component<HomeProps, {}, "">;
6
+ declare const Home: import("svelte").Component<Props, {}, "">;
7
7
  type Home = ReturnType<typeof Home>;
8
8
  export default Home;
@@ -3,14 +3,14 @@
3
3
  import { fade } from 'svelte/transition';
4
4
 
5
5
  import MainMenuItem from './MenuItem.svelte';
6
- import type { MenuItem } from './MenuState.svelte.js';
6
+ import type { MenuItem } from './types.js';
7
7
 
8
- interface MenuProps {
8
+ interface Props {
9
9
  menuItems: MenuItem[];
10
10
  showMenu: boolean;
11
11
  }
12
12
 
13
- let { menuItems, showMenu = $bindable(false) }: MenuProps = $props();
13
+ let { menuItems, showMenu = $bindable(false) }: Props = $props();
14
14
 
15
15
  let activeItem = $state('');
16
16
 
@@ -1,8 +1,8 @@
1
- import type { MenuItem } from './MenuState.svelte.js';
2
- interface MenuProps {
1
+ import type { MenuItem } from './types.js';
2
+ interface Props {
3
3
  menuItems: MenuItem[];
4
4
  showMenu: boolean;
5
5
  }
6
- declare const Menu: import("svelte").Component<MenuProps, {}, "showMenu">;
6
+ declare const Menu: import("svelte").Component<Props, {}, "showMenu">;
7
7
  type Menu = ReturnType<typeof Menu>;
8
8
  export default Menu;
@@ -1,15 +1,15 @@
1
1
  <script lang="ts">
2
2
  import { Tooltip } from '../index.js';
3
- import type { MenuItem } from './MenuState.svelte.js';
3
+ import type { MenuItem } from './types.js';
4
4
 
5
- interface MenuItemProps {
5
+ interface Props {
6
6
  item: MenuItem;
7
7
  isCollapsed: boolean;
8
8
  onClick?: (item: MenuItem) => void;
9
9
  activeItem: boolean;
10
10
  }
11
11
 
12
- let { item, isCollapsed = false, onClick, activeItem }: MenuItemProps = $props();
12
+ let { item, isCollapsed = false, onClick, activeItem }: Props = $props();
13
13
  </script>
14
14
 
15
15
  <li>
@@ -1,10 +1,10 @@
1
- import type { MenuItem } from './MenuState.svelte.js';
2
- interface MenuItemProps {
1
+ import type { MenuItem } from './types.js';
2
+ interface Props {
3
3
  item: MenuItem;
4
4
  isCollapsed: boolean;
5
5
  onClick?: (item: MenuItem) => void;
6
6
  activeItem: boolean;
7
7
  }
8
- declare const MenuItem: import("svelte").Component<MenuItemProps, {}, "">;
8
+ declare const MenuItem: import("svelte").Component<Props, {}, "">;
9
9
  type MenuItem = ReturnType<typeof MenuItem>;
10
10
  export default MenuItem;
@@ -3,7 +3,7 @@
3
3
  import { fade } from 'svelte/transition';
4
4
 
5
5
  import SidebarMenuItem from './MenuItem.svelte';
6
- import type { MenuItem, SubMenuItem } from './MenuState.svelte.js';
6
+ import type { MenuItem, SubMenuItem } from './types.js';
7
7
 
8
8
  interface Props {
9
9
  subMenuItems: SubMenuItem[];
@@ -1,4 +1,4 @@
1
- import type { SubMenuItem } from './MenuState.svelte.js';
1
+ import type { SubMenuItem } from './types.js';
2
2
  interface Props {
3
3
  subMenuItems: SubMenuItem[];
4
4
  }
@@ -19,5 +19,4 @@ export interface SubMenuItem {
19
19
  category: string;
20
20
  menuItems: MenuItem[];
21
21
  }
22
- export declare const getSubMenuItemsFromMenu: (items: MainMenu[], url: string, excludedRoutes?: string[]) => SubMenuItem[];
23
22
  export {};
@@ -0,0 +1,2 @@
1
+ import type { MainMenu, SubMenuItem } from './types.js';
2
+ export declare const getSubMenuItemsFromMenu: (items: MainMenu[], url: string, excludedRoutes?: string[]) => SubMenuItem[];
@@ -4,7 +4,7 @@
4
4
  import ModalContent from './ModalContent.svelte';
5
5
  import ModalFooter from './ModalFooter.svelte';
6
6
  import ModalHeader from './ModalHeader.svelte';
7
- import type { ModalProps } from './modalState.svelte.js';
7
+ import type { ModalProps } from './types.js';
8
8
 
9
9
  let {
10
10
  // eslint-disable-next-line no-useless-assignment
@@ -1,4 +1,4 @@
1
- import type { ModalProps } from './modalState.svelte.js';
1
+ import type { ModalProps } from './types.js';
2
2
  declare const Modal: import("svelte").Component<ModalProps, {}, "showModal">;
3
3
  type Modal = ReturnType<typeof Modal>;
4
4
  export default Modal;
@@ -1,12 +1,12 @@
1
1
  <script lang="ts">
2
2
  import type { Snippet } from 'svelte';
3
3
 
4
- interface ModalContentProps {
4
+ interface Props {
5
5
  content?: Snippet;
6
6
  disablePadding?: boolean;
7
7
  }
8
8
 
9
- let { content, disablePadding = false }: ModalContentProps = $props();
9
+ let { content, disablePadding = false }: Props = $props();
10
10
  </script>
11
11
 
12
12
  <div class="modal-content" class:padding={!disablePadding}>
@@ -1,8 +1,8 @@
1
1
  import type { Snippet } from 'svelte';
2
- interface ModalContentProps {
2
+ interface Props {
3
3
  content?: Snippet;
4
4
  disablePadding?: boolean;
5
5
  }
6
- declare const ModalContent: import("svelte").Component<ModalContentProps, {}, "">;
6
+ declare const ModalContent: import("svelte").Component<Props, {}, "">;
7
7
  type ModalContent = ReturnType<typeof ModalContent>;
8
8
  export default ModalContent;
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import Button from '../Button/Button.svelte';
3
- import type { ModalFooterProps } from './modalState.svelte.js';
3
+ import type { ModalFooterProps } from './types.js';
4
4
 
5
5
  let { footer, onclose }: ModalFooterProps & { onclose: VoidFunction } = $props();
6
6
  </script>
@@ -1,4 +1,4 @@
1
- import type { ModalFooterProps } from './modalState.svelte.js';
1
+ import type { ModalFooterProps } from './types.js';
2
2
  type $$ComponentProps = ModalFooterProps & {
3
3
  onclose: VoidFunction;
4
4
  };
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import type { ModalHeaderProps } from './modalState.svelte.js';
2
+ import type { ModalHeaderProps } from './types.js';
3
3
 
4
4
  let {
5
5
  title = '',
@@ -1,4 +1,4 @@
1
- import type { ModalHeaderProps } from './modalState.svelte.js';
1
+ import type { ModalHeaderProps } from './types.js';
2
2
  type $$ComponentProps = ModalHeaderProps & {
3
3
  onclose: VoidFunction;
4
4
  };
@@ -1,5 +1,14 @@
1
1
  <script lang="ts">
2
- import type { NotificationProps } from './notificationState.svelte';
2
+ import type { Snippet } from 'svelte';
3
+
4
+ type NotificationType = 'info' | 'success' | 'warning' | 'danger' | 'neutral';
5
+
6
+ interface NotificationProps {
7
+ title?: string;
8
+ type: NotificationType;
9
+ disableBorder?: boolean;
10
+ content: Snippet;
11
+ }
3
12
 
4
13
  let { title, disableBorder = false, content, type }: NotificationProps = $props();
5
14
  </script>
@@ -1,4 +1,11 @@
1
- import type { NotificationProps } from './notificationState.svelte';
1
+ import type { Snippet } from 'svelte';
2
+ type NotificationType = 'info' | 'success' | 'warning' | 'danger' | 'neutral';
3
+ interface NotificationProps {
4
+ title?: string;
5
+ type: NotificationType;
6
+ disableBorder?: boolean;
7
+ content: Snippet;
8
+ }
2
9
  declare const Notification: import("svelte").Component<NotificationProps, {}, "">;
3
10
  type Notification = ReturnType<typeof Notification>;
4
11
  export default Notification;
@@ -1,13 +1,19 @@
1
1
  <script lang="ts">
2
2
  import Modal from '../Modal/Modal.svelte';
3
- import type { ProcessingProps } from './processingState.svelte.js';
3
+
4
+ interface Props {
5
+ title?: string;
6
+ text?: string;
7
+ show?: boolean;
8
+ asModal?: boolean;
9
+ }
4
10
 
5
11
  let {
6
12
  title = 'Processing your request',
7
13
  text = '',
8
14
  show = $bindable(true),
9
15
  asModal = false
10
- }: ProcessingProps = $props();
16
+ }: Props = $props();
11
17
  </script>
12
18
 
13
19
  {#snippet processingContent()}
@@ -1,4 +1,9 @@
1
- import type { ProcessingProps } from './processingState.svelte.js';
2
- declare const Processing: import("svelte").Component<ProcessingProps, {}, "show">;
1
+ interface Props {
2
+ title?: string;
3
+ text?: string;
4
+ show?: boolean;
5
+ asModal?: boolean;
6
+ }
7
+ declare const Processing: import("svelte").Component<Props, {}, "show">;
3
8
  type Processing = ReturnType<typeof Processing>;
4
9
  export default Processing;
@@ -1,14 +1,14 @@
1
1
  <script lang="ts">
2
2
  import { Button } from '../index.js';
3
3
 
4
- type ProgressPageProps = {
4
+ interface Props {
5
5
  iconName: string;
6
6
  title: string;
7
7
  description?: string;
8
8
  documentationUrl?: string;
9
9
  onclick?: VoidFunction;
10
10
  buttonText?: string;
11
- };
11
+ }
12
12
 
13
13
  let {
14
14
  iconName,
@@ -17,7 +17,7 @@
17
17
  documentationUrl = '',
18
18
  onclick,
19
19
  buttonText = 'Save'
20
- }: ProgressPageProps = $props();
20
+ }: Props = $props();
21
21
  </script>
22
22
 
23
23
  <article class="progress-page">
@@ -1,11 +1,11 @@
1
- type ProgressPageProps = {
1
+ interface Props {
2
2
  iconName: string;
3
3
  title: string;
4
4
  description?: string;
5
5
  documentationUrl?: string;
6
6
  onclick?: VoidFunction;
7
7
  buttonText?: string;
8
- };
9
- declare const ProgressPage: import("svelte").Component<ProgressPageProps, {}, "">;
8
+ }
9
+ declare const ProgressPage: import("svelte").Component<Props, {}, "">;
10
10
  type ProgressPage = ReturnType<typeof ProgressPage>;
11
11
  export default ProgressPage;
@@ -3,7 +3,7 @@
3
3
 
4
4
  import { Button, ErrorPage, type ProgressWizardStep } from '../index.js';
5
5
 
6
- interface ProgressWizardProps {
6
+ interface Props {
7
7
  steps: ProgressWizardStep[];
8
8
  currentStep: number;
9
9
  readonly?: boolean;
@@ -21,7 +21,7 @@
21
21
  content,
22
22
  additionalButtons,
23
23
  oncancel
24
- }: ProgressWizardProps = $props();
24
+ }: Props = $props();
25
25
 
26
26
  const allStepsDisabled = $derived<boolean>(steps.every((step) => step.disabled));
27
27
  const firstActiveStep = $derived<number>(steps.findIndex((step) => !step.disabled) + 1);
@@ -1,6 +1,6 @@
1
1
  import { type Snippet } from 'svelte';
2
2
  import { type ProgressWizardStep } from '../index.js';
3
- interface ProgressWizardProps {
3
+ interface Props {
4
4
  steps: ProgressWizardStep[];
5
5
  currentStep: number;
6
6
  readonly?: boolean;
@@ -9,6 +9,6 @@ interface ProgressWizardProps {
9
9
  additionalButtons: Snippet<[lastActiveStep: number]>;
10
10
  oncancel: VoidFunction;
11
11
  }
12
- declare const ProgressWizard: import("svelte").Component<ProgressWizardProps, {}, "currentStep">;
12
+ declare const ProgressWizard: import("svelte").Component<Props, {}, "currentStep">;
13
13
  type ProgressWizard = ReturnType<typeof ProgressWizard>;
14
14
  export default ProgressWizard;
@@ -1,5 +1,5 @@
1
1
  import { type Writable } from 'svelte/store';
2
- import type { ProgressWizardStep } from './progressWizardState.svelte.js';
2
+ import type { ProgressWizardStep } from './types.js';
3
3
  export declare const setProgressWizardStepsContext: (steps: ProgressWizardStep[]) => Writable<{
4
4
  title: string;
5
5
  description?: string;
@@ -4,4 +4,3 @@ export type ProgressWizardStep = {
4
4
  isValid: boolean;
5
5
  disabled: boolean;
6
6
  };
7
- export declare const setStepValidity: (steps: ProgressWizardStep[], title: string, isValid: boolean) => void;
@@ -0,0 +1,2 @@
1
+ import type { ProgressWizardStep } from './types.js';
2
+ export declare const setStepValidity: (steps: ProgressWizardStep[], title: string, isValid: boolean) => void;
@@ -1,11 +1,11 @@
1
1
  <script lang="ts">
2
- interface SpinnerProps {
2
+ interface Props {
3
3
  show: boolean;
4
4
  size?: 'sm' | 'md' | 'lg';
5
5
  isFixedPosition?: boolean;
6
6
  }
7
7
 
8
- let { show = $bindable(false), size = 'lg', isFixedPosition = false }: SpinnerProps = $props();
8
+ let { show = $bindable(false), size = 'lg', isFixedPosition = false }: Props = $props();
9
9
 
10
10
  const pixelSizes: Record<string, number> = {
11
11
  sm: 16,
@@ -1,8 +1,8 @@
1
- interface SpinnerProps {
1
+ interface Props {
2
2
  show: boolean;
3
3
  size?: 'sm' | 'md' | 'lg';
4
4
  isFixedPosition?: boolean;
5
5
  }
6
- declare const Spinner: import("svelte").Component<SpinnerProps, {}, "show">;
6
+ declare const Spinner: import("svelte").Component<Props, {}, "show">;
7
7
  type Spinner = ReturnType<typeof Spinner>;
8
8
  export default Spinner;
@@ -1,12 +1,12 @@
1
1
  <script lang="ts">
2
2
  import { type SwitcherOption } from '../index.js';
3
3
 
4
- interface SwitcherProps {
4
+ interface Props {
5
5
  options: string[] | SwitcherOption[];
6
6
  value?: string | null;
7
7
  }
8
8
 
9
- let { options, value = $bindable() }: SwitcherProps = $props();
9
+ let { options, value = $bindable() }: Props = $props();
10
10
 
11
11
  const isStringArray = (items: string[] | SwitcherOption[]): items is string[] =>
12
12
  typeof items[0] === 'string';
@@ -1,8 +1,8 @@
1
1
  import { type SwitcherOption } from '../index.js';
2
- interface SwitcherProps {
2
+ interface Props {
3
3
  options: string[] | SwitcherOption[];
4
4
  value?: string | null;
5
5
  }
6
- declare const Switcher: import("svelte").Component<SwitcherProps, {}, "value">;
6
+ declare const Switcher: import("svelte").Component<Props, {}, "value">;
7
7
  type Switcher = ReturnType<typeof Switcher>;
8
8
  export default Switcher;
@@ -5,7 +5,7 @@
5
5
  import type { Column } from './adapter/index.js';
6
6
  import { Operation } from './consts.js';
7
7
  import { type Filter } from './types.js';
8
- import { sanitizeFilters } from './util.js';
8
+ import { sanitizeFilters } from './utils.js';
9
9
 
10
10
  interface Props {
11
11
  columns: Column<T, unknown>[];
@@ -3,7 +3,7 @@
3
3
 
4
4
  import { Search } from '../index.js';
5
5
  import { FlexRender, type HeaderGroup, type RowData } from './adapter/index.js';
6
- import { sanitizeFilters } from './util.js';
6
+ import { sanitizeFilters } from './utils.js';
7
7
 
8
8
  interface Props {
9
9
  headerGroups: HeaderGroup<T>[];
@@ -31,7 +31,7 @@
31
31
  import Header from './Header.svelte';
32
32
  import Skeleton from './Skeleton.svelte';
33
33
  import { type Filter, type Pagination } from './types.js';
34
- import { createCheckedColumn, getPage, getPageLimit } from './util.js';
34
+ import { createCheckedColumn, getPage, getPageLimit } from './utils.js';
35
35
 
36
36
  interface Props {
37
37
  columns: ColumnDef<T, any>[];
@@ -5,4 +5,4 @@ export { ColumnFormat, type ExcelSetting } from './excel-setting.js';
5
5
  export * from './excel.js';
6
6
  export { default as Table } from './Table.svelte';
7
7
  export type { Action, Pagination, Filter } from './types.js';
8
- export { createActionsColumn, createStaticTable, getPage, getPageLimit, sanitizeFilters } from './util.js';
8
+ export { createActionsColumn, createStaticTable, getPage, getPageLimit, sanitizeFilters } from './utils.js';
@@ -4,4 +4,4 @@ export * from './context.js';
4
4
  export { ColumnFormat } from './excel-setting.js';
5
5
  export * from './excel.js';
6
6
  export { default as Table } from './Table.svelte';
7
- export { createActionsColumn, createStaticTable, getPage, getPageLimit, sanitizeFilters } from './util.js';
7
+ export { createActionsColumn, createStaticTable, getPage, getPageLimit, sanitizeFilters } from './utils.js';
@@ -3,14 +3,14 @@
3
3
 
4
4
  import type { Tab } from '../index.js';
5
5
 
6
- interface TabsProps {
6
+ interface Props {
7
7
  tabs: Tab[];
8
8
  activeTab?: number;
9
9
  children?: Snippet;
10
10
  onchange?: (index: number) => void;
11
11
  }
12
12
 
13
- let { tabs = [], activeTab = 0, children, onchange }: TabsProps = $props();
13
+ let { tabs = [], activeTab = 0, children, onchange }: Props = $props();
14
14
 
15
15
  const handleClick = (index: number) => (): void => {
16
16
  activeTab = index;
@@ -1,11 +1,11 @@
1
1
  import type { Snippet } from 'svelte';
2
2
  import type { Tab } from '../index.js';
3
- interface TabsProps {
3
+ interface Props {
4
4
  tabs: Tab[];
5
5
  activeTab?: number;
6
6
  children?: Snippet;
7
7
  onchange?: (index: number) => void;
8
8
  }
9
- declare const Tabs: import("svelte").Component<TabsProps, {}, "">;
9
+ declare const Tabs: import("svelte").Component<Props, {}, "">;
10
10
  type Tabs = ReturnType<typeof Tabs>;
11
11
  export default Tabs;
@@ -2,13 +2,13 @@
2
2
  import { linear } from 'svelte/easing';
3
3
  import { fly, type FlyParams } from 'svelte/transition';
4
4
 
5
- import { deleteToastById, getToast } from './toastState.svelte.js';
5
+ import { deleteToastById, getToast } from './state.svelte.js';
6
6
 
7
- interface ToastProps {
7
+ interface Props {
8
8
  duration?: number;
9
9
  }
10
10
 
11
- let { duration }: ToastProps = $props();
11
+ let { duration }: Props = $props();
12
12
 
13
13
  const TRANSITION_DURATION = 100;
14
14
  const VERTICAL_DISTANCE = 8;
@@ -1,6 +1,6 @@
1
- interface ToastProps {
1
+ interface Props {
2
2
  duration?: number;
3
3
  }
4
- declare const Toast: import("svelte").Component<ToastProps, {}, "">;
4
+ declare const Toast: import("svelte").Component<Props, {}, "">;
5
5
  type Toast = ReturnType<typeof Toast>;
6
6
  export default Toast;
@@ -1,9 +1,4 @@
1
- type ToastType = 'info' | 'success' | 'warning' | 'danger' | 'neutral';
2
- export interface Toast {
3
- type: ToastType;
4
- message: string;
5
- link?: string;
6
- }
1
+ import type { Toast } from './types.js';
7
2
  interface ToastState extends Toast {
8
3
  id: string;
9
4
  }
@@ -0,0 +1,7 @@
1
+ type ToastType = 'info' | 'success' | 'warning' | 'danger' | 'neutral';
2
+ export interface Toast {
3
+ type: ToastType;
4
+ message: string;
5
+ link?: string;
6
+ }
7
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -7,7 +7,7 @@
7
7
  type Position = 'top' | 'bottom' | 'left' | 'right';
8
8
  type Width = 'xs' | 'sm' | 'md';
9
9
 
10
- interface TooltipProps {
10
+ interface Props {
11
11
  content: string;
12
12
  position?: Position;
13
13
  width?: Width;
@@ -21,7 +21,7 @@
21
21
  width = 'xs',
22
22
  class: customClass = '',
23
23
  children
24
- }: TooltipProps = $props();
24
+ }: Props = $props();
25
25
 
26
26
  let isVisible = $state(false);
27
27