@invopop/popui 0.0.104 → 0.1.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 (248) hide show
  1. package/dist/AlertDialog.svelte +84 -59
  2. package/dist/AlertDialog.svelte.d.ts +5 -29
  3. package/dist/BaseButton.svelte +106 -101
  4. package/dist/BaseButton.svelte.d.ts +4 -34
  5. package/dist/BaseCard.svelte +20 -12
  6. package/dist/BaseCard.svelte.d.ts +4 -26
  7. package/dist/BaseCounter.svelte +13 -9
  8. package/dist/BaseCounter.svelte.d.ts +4 -17
  9. package/dist/BaseDropdown.svelte +54 -38
  10. package/dist/BaseDropdown.svelte.d.ts +6 -26
  11. package/dist/BaseFlag.svelte +6 -4
  12. package/dist/BaseFlag.svelte.d.ts +4 -17
  13. package/dist/BaseTable.svelte +226 -188
  14. package/dist/BaseTable.svelte.d.ts +4 -39
  15. package/dist/BaseTableActions.svelte +43 -33
  16. package/dist/BaseTableActions.svelte.d.ts +6 -21
  17. package/dist/BaseTableCellContent.svelte +19 -13
  18. package/dist/BaseTableCellContent.svelte.d.ts +4 -24
  19. package/dist/BaseTableCheckbox.svelte +19 -12
  20. package/dist/BaseTableCheckbox.svelte.d.ts +4 -21
  21. package/dist/BaseTableHeaderContent.svelte +30 -22
  22. package/dist/BaseTableHeaderContent.svelte.d.ts +4 -21
  23. package/dist/BaseTableHeaderOrderBy.svelte +24 -0
  24. package/dist/BaseTableHeaderOrderBy.svelte.d.ts +4 -0
  25. package/dist/BaseTableRow.svelte +78 -60
  26. package/dist/BaseTableRow.svelte.d.ts +4 -32
  27. package/dist/Breadcrumbs.svelte +14 -10
  28. package/dist/Breadcrumbs.svelte.d.ts +4 -19
  29. package/dist/ButtonFile.svelte +40 -29
  30. package/dist/ButtonFile.svelte.d.ts +4 -26
  31. package/dist/ButtonUuidCopy.svelte +27 -20
  32. package/dist/ButtonUuidCopy.svelte.d.ts +4 -22
  33. package/dist/CardCheckbox.svelte +28 -19
  34. package/dist/CardCheckbox.svelte.d.ts +4 -28
  35. package/dist/CardRelation.svelte +9 -8
  36. package/dist/CardRelation.svelte.d.ts +4 -22
  37. package/dist/CompanySelector.svelte +49 -43
  38. package/dist/CompanySelector.svelte.d.ts +4 -22
  39. package/dist/CounterWorkflow.svelte +12 -8
  40. package/dist/CounterWorkflow.svelte.d.ts +4 -17
  41. package/dist/DataListItem.svelte +24 -14
  42. package/dist/DataListItem.svelte.d.ts +4 -22
  43. package/dist/DatePicker.svelte +186 -386
  44. package/dist/DatePicker.svelte.d.ts +4 -22
  45. package/dist/DrawerContext.svelte +33 -22
  46. package/dist/DrawerContext.svelte.d.ts +4 -24
  47. package/dist/DrawerContextItem.svelte +70 -57
  48. package/dist/DrawerContextItem.svelte.d.ts +4 -23
  49. package/dist/DrawerContextSeparator.svelte +1 -1
  50. package/dist/DrawerContextSeparator.svelte.d.ts +22 -19
  51. package/dist/DrawerContextWorkspace.svelte +31 -32
  52. package/dist/DrawerContextWorkspace.svelte.d.ts +4 -20
  53. package/dist/DropdownSelect.svelte +93 -81
  54. package/dist/DropdownSelect.svelte.d.ts +4 -27
  55. package/dist/EmptyStateIcon.svelte +13 -7
  56. package/dist/EmptyStateIcon.svelte.d.ts +4 -22
  57. package/dist/EmptyStateIllustration.svelte +41 -33
  58. package/dist/EmptyStateIllustration.svelte.d.ts +4 -21
  59. package/dist/FeedEvents.svelte +5 -2
  60. package/dist/FeedEvents.svelte.d.ts +4 -17
  61. package/dist/FeedIconEvent.svelte +5 -3
  62. package/dist/FeedIconEvent.svelte.d.ts +4 -19
  63. package/dist/FeedIconStatus.svelte +23 -18
  64. package/dist/FeedIconStatus.svelte.d.ts +4 -17
  65. package/dist/FeedItem.svelte +33 -28
  66. package/dist/FeedItem.svelte.d.ts +4 -30
  67. package/dist/FeedItemDetail.svelte +21 -13
  68. package/dist/FeedItemDetail.svelte.d.ts +4 -23
  69. package/dist/FeedViewer.svelte +6 -13
  70. package/dist/FeedViewer.svelte.d.ts +4 -21
  71. package/dist/FormLayoutModal.svelte +9 -3
  72. package/dist/FormLayoutModal.svelte.d.ts +4 -29
  73. package/dist/GlobalSearch.svelte +38 -31
  74. package/dist/GlobalSearch.svelte.d.ts +4 -18
  75. package/dist/InputCheckbox.svelte +23 -14
  76. package/dist/InputCheckbox.svelte.d.ts +4 -23
  77. package/dist/InputError.svelte +4 -1
  78. package/dist/InputError.svelte.d.ts +4 -16
  79. package/dist/InputLabel.svelte +5 -3
  80. package/dist/InputLabel.svelte.d.ts +4 -18
  81. package/dist/InputRadio.svelte +25 -19
  82. package/dist/InputRadio.svelte.d.ts +4 -21
  83. package/dist/InputSearch.svelte +66 -46
  84. package/dist/InputSearch.svelte.d.ts +9 -33
  85. package/dist/InputSelect.svelte +36 -33
  86. package/dist/InputSelect.svelte.d.ts +4 -31
  87. package/dist/InputText.svelte +64 -48
  88. package/dist/InputText.svelte.d.ts +4 -28
  89. package/dist/InputTextarea.svelte +38 -29
  90. package/dist/InputTextarea.svelte.d.ts +4 -25
  91. package/dist/InputToggle.svelte +29 -22
  92. package/dist/InputToggle.svelte.d.ts +4 -20
  93. package/dist/MenuItem.svelte +99 -87
  94. package/dist/MenuItem.svelte.d.ts +5 -29
  95. package/dist/MenuItemCollapsible.svelte +26 -18
  96. package/dist/MenuItemCollapsible.svelte.d.ts +4 -24
  97. package/dist/Notification.svelte +35 -31
  98. package/dist/Notification.svelte.d.ts +4 -20
  99. package/dist/ProfileAvatar.svelte +26 -19
  100. package/dist/ProfileAvatar.svelte.d.ts +4 -21
  101. package/dist/ProfileSelector.svelte +25 -17
  102. package/dist/ProfileSelector.svelte.d.ts +4 -22
  103. package/dist/SectionLayout.svelte +6 -3
  104. package/dist/SectionLayout.svelte.d.ts +4 -18
  105. package/dist/SeparatorHorizontal.svelte +1 -1
  106. package/dist/SeparatorHorizontal.svelte.d.ts +22 -19
  107. package/dist/ShortcutWrapper.svelte +7 -1
  108. package/dist/ShortcutWrapper.svelte.d.ts +4 -27
  109. package/dist/StatusLabel.svelte +16 -12
  110. package/dist/StatusLabel.svelte.d.ts +4 -18
  111. package/dist/StepIconList.svelte +44 -41
  112. package/dist/StepIconList.svelte.d.ts +4 -17
  113. package/dist/TagBeta.svelte.d.ts +22 -19
  114. package/dist/TagSearch.svelte +19 -20
  115. package/dist/TagSearch.svelte.d.ts +4 -22
  116. package/dist/TagStatus.svelte +42 -37
  117. package/dist/TagStatus.svelte.d.ts +4 -19
  118. package/dist/TitleMain.svelte +9 -2
  119. package/dist/TitleMain.svelte.d.ts +4 -18
  120. package/dist/TitleSection.svelte +9 -2
  121. package/dist/TitleSection.svelte.d.ts +4 -18
  122. package/dist/UuidCopy.svelte +61 -48
  123. package/dist/UuidCopy.svelte.d.ts +4 -26
  124. package/dist/alert-dialog/alert-dialog-action.svelte +15 -15
  125. package/dist/alert-dialog/alert-dialog-action.svelte.d.ts +5 -26
  126. package/dist/alert-dialog/alert-dialog-cancel.svelte +13 -10
  127. package/dist/alert-dialog/alert-dialog-cancel.svelte.d.ts +3 -22
  128. package/dist/alert-dialog/alert-dialog-content.svelte +19 -15
  129. package/dist/alert-dialog/alert-dialog-content.svelte.d.ts +6 -15
  130. package/dist/alert-dialog/alert-dialog-description.svelte +11 -6
  131. package/dist/alert-dialog/alert-dialog-description.svelte.d.ts +3 -16
  132. package/dist/alert-dialog/alert-dialog-footer.svelte +11 -5
  133. package/dist/alert-dialog/alert-dialog-footer.svelte.d.ts +4 -16
  134. package/dist/alert-dialog/alert-dialog-header.svelte +14 -5
  135. package/dist/alert-dialog/alert-dialog-header.svelte.d.ts +4 -16
  136. package/dist/alert-dialog/alert-dialog-overlay.svelte +10 -13
  137. package/dist/alert-dialog/alert-dialog-overlay.svelte.d.ts +3 -14
  138. package/dist/alert-dialog/alert-dialog-title.svelte +11 -8
  139. package/dist/alert-dialog/alert-dialog-title.svelte.d.ts +3 -16
  140. package/dist/alert-dialog/alert-dialog-trigger.svelte +6 -0
  141. package/dist/alert-dialog/alert-dialog-trigger.svelte.d.ts +4 -0
  142. package/dist/alert-dialog/index.d.ts +3 -4
  143. package/dist/alert-dialog/index.js +2 -2
  144. package/dist/button/button.svelte +76 -18
  145. package/dist/button/button.svelte.d.ts +62 -14
  146. package/dist/button/index.d.ts +2 -60
  147. package/dist/button/index.js +1 -26
  148. package/dist/helpers.d.ts +4 -1
  149. package/dist/helpers.js +35 -0
  150. package/dist/index.d.ts +1 -3
  151. package/dist/index.js +0 -4
  152. package/dist/range-calendar/index.d.ts +20 -0
  153. package/dist/range-calendar/index.js +22 -0
  154. package/dist/range-calendar/range-calendar-caption.svelte +71 -0
  155. package/dist/range-calendar/range-calendar-caption.svelte.d.ts +19 -0
  156. package/dist/range-calendar/range-calendar-cell.svelte +18 -0
  157. package/dist/range-calendar/range-calendar-cell.svelte.d.ts +4 -0
  158. package/dist/range-calendar/range-calendar-day.svelte +41 -0
  159. package/dist/range-calendar/range-calendar-day.svelte.d.ts +4 -0
  160. package/dist/range-calendar/range-calendar-grid-row.svelte +11 -0
  161. package/dist/range-calendar/range-calendar-grid-row.svelte.d.ts +4 -0
  162. package/dist/range-calendar/range-calendar-grid.svelte +15 -0
  163. package/dist/range-calendar/range-calendar-grid.svelte.d.ts +4 -0
  164. package/dist/range-calendar/range-calendar-head-cell.svelte +18 -0
  165. package/dist/range-calendar/range-calendar-head-cell.svelte.d.ts +4 -0
  166. package/dist/range-calendar/range-calendar-header.svelte +18 -0
  167. package/dist/range-calendar/range-calendar-header.svelte.d.ts +4 -0
  168. package/dist/range-calendar/range-calendar-heading.svelte +15 -0
  169. package/dist/range-calendar/range-calendar-heading.svelte.d.ts +4 -0
  170. package/dist/range-calendar/range-calendar-month-select.svelte +44 -0
  171. package/dist/range-calendar/range-calendar-month-select.svelte.d.ts +4 -0
  172. package/dist/range-calendar/range-calendar-month.svelte +14 -0
  173. package/dist/range-calendar/range-calendar-month.svelte.d.ts +5 -0
  174. package/dist/range-calendar/range-calendar-months.svelte +18 -0
  175. package/dist/range-calendar/range-calendar-months.svelte.d.ts +5 -0
  176. package/dist/range-calendar/range-calendar-nav.svelte +18 -0
  177. package/dist/range-calendar/range-calendar-nav.svelte.d.ts +5 -0
  178. package/dist/range-calendar/range-calendar-next-button.svelte +30 -0
  179. package/dist/range-calendar/range-calendar-next-button.svelte.d.ts +8 -0
  180. package/dist/range-calendar/range-calendar-prev-button.svelte +30 -0
  181. package/dist/range-calendar/range-calendar-prev-button.svelte.d.ts +8 -0
  182. package/dist/range-calendar/range-calendar-year-select.svelte +43 -0
  183. package/dist/range-calendar/range-calendar-year-select.svelte.d.ts +4 -0
  184. package/dist/range-calendar/range-calendar.svelte +109 -0
  185. package/dist/range-calendar/range-calendar.svelte.d.ts +21 -0
  186. package/dist/svg/BgPattern.svelte.d.ts +22 -19
  187. package/dist/svg/IconContact.svelte +6 -1
  188. package/dist/svg/IconContact.svelte.d.ts +5 -15
  189. package/dist/svg/IconEmpty.svelte.d.ts +22 -19
  190. package/dist/svg/IconFile.svelte +6 -1
  191. package/dist/svg/IconFile.svelte.d.ts +5 -15
  192. package/dist/svg/IconInvoice.svelte +6 -1
  193. package/dist/svg/IconInvoice.svelte.d.ts +5 -15
  194. package/dist/svg/IconNoResults.svelte +6 -1
  195. package/dist/svg/IconNoResults.svelte.d.ts +5 -15
  196. package/dist/svg/IconPdf.svelte +6 -1
  197. package/dist/svg/IconPdf.svelte.d.ts +5 -15
  198. package/dist/svg/IconProduct.svelte +6 -1
  199. package/dist/svg/IconProduct.svelte.d.ts +5 -15
  200. package/dist/table/table-body.svelte +10 -5
  201. package/dist/table/table-body.svelte.d.ts +4 -16
  202. package/dist/table/table-caption.svelte +14 -5
  203. package/dist/table/table-caption.svelte.d.ts +4 -16
  204. package/dist/table/table-cell.svelte +16 -7
  205. package/dist/table/table-cell.svelte.d.ts +4 -19
  206. package/dist/table/table-footer.svelte +14 -5
  207. package/dist/table/table-footer.svelte.d.ts +4 -16
  208. package/dist/table/table-head.svelte +11 -5
  209. package/dist/table/table-head.svelte.d.ts +4 -16
  210. package/dist/table/table-header.svelte +17 -8
  211. package/dist/table/table-header.svelte.d.ts +4 -19
  212. package/dist/table/table-row.svelte +22 -8
  213. package/dist/table/table-row.svelte.d.ts +4 -22
  214. package/dist/table/table.svelte +11 -6
  215. package/dist/table/table.svelte.d.ts +4 -16
  216. package/dist/tabs/tabs-content.svelte +13 -8
  217. package/dist/tabs/tabs-content.svelte.d.ts +3 -16
  218. package/dist/tabs/tabs-list.svelte +7 -6
  219. package/dist/tabs/tabs-list.svelte.d.ts +3 -16
  220. package/dist/tabs/tabs-trigger.svelte +13 -9
  221. package/dist/tabs/tabs-trigger.svelte.d.ts +3 -14
  222. package/dist/tabs/tabs.svelte +12 -7
  223. package/dist/tabs/tabs.svelte.d.ts +3 -16
  224. package/dist/tooltip/index.d.ts +5 -3
  225. package/dist/tooltip/index.js +5 -3
  226. package/dist/tooltip/tooltip-content.svelte +42 -23
  227. package/dist/tooltip/tooltip-content.svelte.d.ts +5 -15
  228. package/dist/tooltip/tooltip-trigger.svelte +8 -0
  229. package/dist/tooltip/tooltip-trigger.svelte.d.ts +4 -0
  230. package/dist/tw.theme.d.ts +2 -9
  231. package/dist/tw.theme.js +0 -5
  232. package/dist/types.d.ts +484 -25
  233. package/dist/utils.d.ts +10 -1
  234. package/package.json +30 -39
  235. package/README.md +0 -234
  236. package/dist/BaseTableHeaderSortBy.svelte +0 -22
  237. package/dist/BaseTableHeaderSortBy.svelte.d.ts +0 -20
  238. package/dist/ComboBox.svelte +0 -12
  239. package/dist/ComboBox.svelte.d.ts +0 -21
  240. package/dist/ComboBoxContent.svelte +0 -33
  241. package/dist/ComboBoxContent.svelte.d.ts +0 -20
  242. package/dist/ProgressBar.svelte +0 -6
  243. package/dist/ProgressBar.svelte.d.ts +0 -16
  244. package/dist/alert-dialog/alert-dialog-portal.svelte +0 -6
  245. package/dist/alert-dialog/alert-dialog-portal.svelte.d.ts +0 -17
  246. package/dist/popui.css +0 -1
  247. package/dist/wcdispatch.d.ts +0 -1
  248. package/dist/wcdispatch.js +0 -9
@@ -1,19 +1,27 @@
1
- <script>import { Icon } from "@steeze-ui/svelte-icon";
2
- import clsx from "clsx";
3
- export let collapsed = false;
4
- export let title = "";
5
- export let subtitle = "";
6
- export let active = false;
7
- export let bold = false;
8
- export let icon = void 0;
9
- $:
10
- styles = clsx(
11
- { "p-1": collapsed },
12
- { "space-x-2 w-full p-[7px]": !collapsed },
13
- { "border-white-30 bg-white-10": active },
14
- { "border-transparent hover:bg-white-5": !active },
15
- { "font-semibold": bold }
16
- );
1
+ <script lang="ts">
2
+ import { Icon } from '@steeze-ui/svelte-icon'
3
+ import clsx from 'clsx'
4
+ import type { MenuItemCollapsibleProps } from './types'
5
+
6
+ let {
7
+ collapsed = false,
8
+ title = '',
9
+ subtitle = '',
10
+ active = false,
11
+ bold = false,
12
+ icon = undefined,
13
+ children
14
+ }: MenuItemCollapsibleProps = $props()
15
+
16
+ let styles = $derived(
17
+ clsx(
18
+ { 'p-1': collapsed },
19
+ { 'space-x-2 w-full p-[7px]': !collapsed },
20
+ { 'border-white-30 bg-white-10': active },
21
+ { 'border-transparent hover:bg-white-5': !active },
22
+ { 'font-semibold': bold }
23
+ )
24
+ )
17
25
  </script>
18
26
 
19
27
  <span
@@ -21,10 +29,10 @@ $:
21
29
  class="{styles} text-white text-base flex items-center justify-between border rounded"
22
30
  >
23
31
  <span class:space-x-2={!collapsed} class="flex items-center">
24
- <slot />
32
+ {@render children?.()}
25
33
  {#if !collapsed}
26
34
  <div>
27
- <div class="whitespace-nowrap max-w-[118px] truncate tracking-tight">{title}</div>
35
+ <div class="whitespace-nowrap max-w-[140px] truncate tracking-tight">{title}</div>
28
36
  {#if subtitle}
29
37
  <div class="text-sm font-medium text-yellow-600">{subtitle}</div>
30
38
  {/if}
@@ -1,24 +1,4 @@
1
- import { SvelteComponent } from "svelte";
2
- import { type IconSource } from '@steeze-ui/svelte-icon';
3
- declare const __propDef: {
4
- props: {
5
- collapsed?: boolean | undefined;
6
- title?: string | undefined;
7
- subtitle?: string | undefined;
8
- active?: boolean | undefined;
9
- bold?: boolean | undefined;
10
- icon?: IconSource | undefined;
11
- };
12
- events: {
13
- [evt: string]: CustomEvent<any>;
14
- };
15
- slots: {
16
- default: {};
17
- };
18
- };
19
- export type MenuItemCollapsibleProps = typeof __propDef.props;
20
- export type MenuItemCollapsibleEvents = typeof __propDef.events;
21
- export type MenuItemCollapsibleSlots = typeof __propDef.slots;
22
- export default class MenuItemCollapsible extends SvelteComponent<MenuItemCollapsibleProps, MenuItemCollapsibleEvents, MenuItemCollapsibleSlots> {
23
- }
24
- export {};
1
+ import type { MenuItemCollapsibleProps } from './types';
2
+ declare const MenuItemCollapsible: import("svelte").Component<MenuItemCollapsibleProps, {}, "">;
3
+ type MenuItemCollapsible = ReturnType<typeof MenuItemCollapsible>;
4
+ export default MenuItemCollapsible;
@@ -1,34 +1,38 @@
1
- <script>import clsx from "clsx";
2
- import { Alert, Failure, Success } from "@invopop/ui-icons";
3
- import { Icon } from "@steeze-ui/svelte-icon";
4
- export let message = "";
5
- export let type = "success";
6
- $:
7
- icon = getIcon(type);
8
- $:
9
- styles = clsx(
10
- { "bg-positive-50": type === "success" },
11
- { "bg-danger-50": type === "error" },
12
- { "bg-yellow-50": type === "warning" }
13
- );
14
- $:
15
- textStyles = clsx(
16
- { "text-positive-500": type === "success" },
17
- { "text-danger-500": type === "error" },
18
- { "text-yellow-500": type === "warning" }
19
- );
20
- function getIcon(type2) {
21
- switch (type2) {
22
- case "success":
23
- return Success;
24
- case "error":
25
- return Failure;
26
- case "warning":
27
- return Alert;
28
- default:
29
- return null;
1
+ <script lang="ts">
2
+ import clsx from 'clsx'
3
+ import { Alert, Failure, Success } from '@invopop/ui-icons'
4
+ import { Icon } from '@steeze-ui/svelte-icon'
5
+ import type { NotificationProps, Status } from './types'
6
+
7
+ let { message = '', type = 'success', children }: NotificationProps = $props()
8
+
9
+ function getIcon(type: Status) {
10
+ switch (type) {
11
+ case 'success':
12
+ return Success
13
+ case 'error':
14
+ return Failure
15
+ case 'warning':
16
+ return Alert
17
+ default:
18
+ return null
19
+ }
30
20
  }
31
- }
21
+ let icon = $derived(getIcon(type))
22
+ let styles = $derived(
23
+ clsx(
24
+ { 'bg-positive-50': type === 'success' },
25
+ { 'bg-danger-50': type === 'error' },
26
+ { 'bg-yellow-50': type === 'warning' }
27
+ )
28
+ )
29
+ let textStyles = $derived(
30
+ clsx(
31
+ { 'text-positive-500': type === 'success' },
32
+ { 'text-danger-500': type === 'error' },
33
+ { 'text-yellow-500': type === 'warning' }
34
+ )
35
+ )
32
36
  </script>
33
37
 
34
38
  <div class="{styles} pl-3 pr-2 py-2 text-base font-medium rounded-lg flex items-center space-x-1">
@@ -36,5 +40,5 @@ function getIcon(type2) {
36
40
  <Icon src={icon} class="h-4 w-4" />
37
41
  {/if}
38
42
  <span class="{textStyles} flex-1">{message}</span>
39
- <slot />
43
+ {@render children?.()}
40
44
  </div>
@@ -1,20 +1,4 @@
1
- import { SvelteComponent } from "svelte";
2
- import type { Status } from './types';
3
- declare const __propDef: {
4
- props: {
5
- message?: string | undefined;
6
- type?: Status | undefined;
7
- };
8
- events: {
9
- [evt: string]: CustomEvent<any>;
10
- };
11
- slots: {
12
- default: {};
13
- };
14
- };
15
- export type NotificationProps = typeof __propDef.props;
16
- export type NotificationEvents = typeof __propDef.events;
17
- export type NotificationSlots = typeof __propDef.slots;
18
- export default class Notification extends SvelteComponent<NotificationProps, NotificationEvents, NotificationSlots> {
19
- }
20
- export {};
1
+ import type { NotificationProps } from './types';
2
+ declare const Notification: import("svelte").Component<NotificationProps, {}, "">;
3
+ type Notification = ReturnType<typeof Notification>;
4
+ export default Notification;
@@ -1,21 +1,28 @@
1
- <script>import clsx from "clsx";
2
- import BaseFlag from "./BaseFlag.svelte";
3
- export let name = "";
4
- export let small = false;
5
- export let large = false;
6
- export let dark = false;
7
- export let picture = "";
8
- export let country = "";
9
- $:
10
- avatarStyles = clsx(
11
- { "text-sm": !large },
12
- { "h-4 w-4": small },
13
- { "h-5 w-5": !large && !small },
14
- { "h-8 w-8": large },
15
- { "bg-neutral-50 border-neutral-100 text-neutral-500": !dark },
16
- { "bg-white-5 border-white-10 text-white-70": dark },
17
- { border: !picture }
18
- );
1
+ <script lang="ts">
2
+ import clsx from 'clsx'
3
+ import BaseFlag from './BaseFlag.svelte'
4
+ import type { ProfileAvatarProps } from './types'
5
+
6
+ let {
7
+ name = '',
8
+ small = false,
9
+ large = false,
10
+ dark = false,
11
+ picture = $bindable(''),
12
+ country = ''
13
+ }: ProfileAvatarProps = $props()
14
+
15
+ let avatarStyles = $derived(
16
+ clsx(
17
+ { 'text-sm': !large },
18
+ { 'h-4 w-4': small },
19
+ { 'h-5 w-5': !large && !small },
20
+ { 'h-8 w-8': large },
21
+ { 'bg-neutral-50 border-neutral-100 text-neutral-500': !dark },
22
+ { 'bg-white-5 border-white-10 text-white-70': dark },
23
+ { border: !picture }
24
+ )
25
+ )
19
26
  </script>
20
27
 
21
28
  <div class="{avatarStyles} rounded flex items-center justify-center font-semibold relative">
@@ -24,7 +31,7 @@ $:
24
31
  class="h-full w-full rounded object-cover"
25
32
  src={picture}
26
33
  alt={name}
27
- on:error={() => {
34
+ onerror={() => {
28
35
  picture = ''
29
36
  }}
30
37
  />
@@ -1,21 +1,4 @@
1
- import { SvelteComponent } from "svelte";
2
- declare const __propDef: {
3
- props: {
4
- name?: string | undefined;
5
- small?: boolean | undefined;
6
- large?: boolean | undefined;
7
- dark?: boolean | undefined;
8
- picture?: string | undefined;
9
- country?: string | undefined;
10
- };
11
- events: {
12
- [evt: string]: CustomEvent<any>;
13
- };
14
- slots: {};
15
- };
16
- export type ProfileAvatarProps = typeof __propDef.props;
17
- export type ProfileAvatarEvents = typeof __propDef.events;
18
- export type ProfileAvatarSlots = typeof __propDef.slots;
19
- export default class ProfileAvatar extends SvelteComponent<ProfileAvatarProps, ProfileAvatarEvents, ProfileAvatarSlots> {
20
- }
21
- export {};
1
+ import type { ProfileAvatarProps } from './types';
2
+ declare const ProfileAvatar: import("svelte").Component<ProfileAvatarProps, {}, "picture">;
3
+ type ProfileAvatar = ReturnType<typeof ProfileAvatar>;
4
+ export default ProfileAvatar;
@@ -1,24 +1,32 @@
1
- <script>import clsx from "clsx";
2
- import ProfileAvatar from "./ProfileAvatar.svelte";
3
- import { Icon } from "@steeze-ui/svelte-icon";
4
- import { ChevronUp } from "@invopop/ui-icons";
5
- export let name = "";
6
- export let orgName = "";
7
- export let picture = "";
8
- export let collapsed = false;
9
- export let isOpen = false;
10
- $:
11
- styles = clsx(
12
- { "p-[5px]": collapsed },
13
- { "w-full pl-1.5 pr-2 py-[7px]": !collapsed },
14
- { "border-white-30 bg-white-10": isOpen },
15
- { "border-transparent hover:bg-white-5": !isOpen }
16
- );
1
+ <script lang="ts">
2
+ import clsx from 'clsx'
3
+ import ProfileAvatar from './ProfileAvatar.svelte'
4
+ import { Icon } from '@steeze-ui/svelte-icon'
5
+ import { ChevronUp } from '@invopop/ui-icons'
6
+ import type { ProfileSelectorProps } from './types'
7
+
8
+ let {
9
+ name = '',
10
+ orgName = '',
11
+ picture = '',
12
+ collapsed = false,
13
+ isOpen = false,
14
+ onclick
15
+ }: ProfileSelectorProps = $props()
16
+
17
+ let styles = $derived(
18
+ clsx(
19
+ { 'p-[5px]': collapsed },
20
+ { 'w-full pl-1.5 pr-2 py-[7px]': !collapsed },
21
+ { 'border-white-30 bg-white-10': isOpen },
22
+ { 'border-transparent hover:bg-white-5': !isOpen }
23
+ )
24
+ )
17
25
  </script>
18
26
 
19
27
  <button
20
28
  class="{styles} text-white border border-transparent text-base flex items-center justify-between space-x-1 rounded text-left"
21
- on:click
29
+ {onclick}
22
30
  >
23
31
  <span class="flex items-center justify-between w-full space-x-2">
24
32
  <ProfileAvatar {name} {picture} dark large />
@@ -1,22 +1,4 @@
1
- import { SvelteComponent } from "svelte";
2
- declare const __propDef: {
3
- props: {
4
- name?: string | undefined;
5
- orgName?: string | undefined;
6
- picture?: string | undefined;
7
- collapsed?: boolean | undefined;
8
- isOpen?: boolean | undefined;
9
- };
10
- events: {
11
- click: MouseEvent;
12
- } & {
13
- [evt: string]: CustomEvent<any>;
14
- };
15
- slots: {};
16
- };
17
- export type ProfileSelectorProps = typeof __propDef.props;
18
- export type ProfileSelectorEvents = typeof __propDef.events;
19
- export type ProfileSelectorSlots = typeof __propDef.slots;
20
- export default class ProfileSelector extends SvelteComponent<ProfileSelectorProps, ProfileSelectorEvents, ProfileSelectorSlots> {
21
- }
22
- export {};
1
+ import type { ProfileSelectorProps } from './types';
2
+ declare const ProfileSelector: import("svelte").Component<ProfileSelectorProps, {}, "">;
3
+ type ProfileSelector = ReturnType<typeof ProfileSelector>;
4
+ export default ProfileSelector;
@@ -1,10 +1,13 @@
1
- <script>import TitleSection from "./TitleSection.svelte";
2
- export let title = "";
1
+ <script lang="ts">
2
+ import TitleSection from './TitleSection.svelte'
3
+ import type { SectionLayoutProps } from './types'
4
+
5
+ let { title = '', children }: SectionLayoutProps = $props()
3
6
  </script>
4
7
 
5
8
  <div class="py-5">
6
9
  <TitleSection {title} />
7
10
  <div class="mt-3">
8
- <slot />
11
+ {@render children?.()}
9
12
  </div>
10
13
  </div>
@@ -1,18 +1,4 @@
1
- import { SvelteComponent } from "svelte";
2
- declare const __propDef: {
3
- props: {
4
- title?: string | undefined;
5
- };
6
- events: {
7
- [evt: string]: CustomEvent<any>;
8
- };
9
- slots: {
10
- default: {};
11
- };
12
- };
13
- export type SectionLayoutProps = typeof __propDef.props;
14
- export type SectionLayoutEvents = typeof __propDef.events;
15
- export type SectionLayoutSlots = typeof __propDef.slots;
16
- export default class SectionLayout extends SvelteComponent<SectionLayoutProps, SectionLayoutEvents, SectionLayoutSlots> {
17
- }
18
- export {};
1
+ import type { SectionLayoutProps } from './types';
2
+ declare const SectionLayout: import("svelte").Component<SectionLayoutProps, {}, "">;
3
+ type SectionLayout = ReturnType<typeof SectionLayout>;
4
+ export default SectionLayout;
@@ -1,4 +1,4 @@
1
- <div class="border-b border-transparent hr-separator" />
1
+ <div class="border-b border-transparent hr-separator"></div>
2
2
 
3
3
  <style>
4
4
  .hr-separator {
@@ -1,23 +1,26 @@
1
- /** @typedef {typeof __propDef.props} SeparatorHorizontalProps */
2
- /** @typedef {typeof __propDef.events} SeparatorHorizontalEvents */
3
- /** @typedef {typeof __propDef.slots} SeparatorHorizontalSlots */
4
- export default class SeparatorHorizontal extends SvelteComponent<{
1
+ export default SeparatorHorizontal;
2
+ type SeparatorHorizontal = SvelteComponent<{
5
3
  [x: string]: never;
6
4
  }, {
7
5
  [evt: string]: CustomEvent<any>;
8
- }, {}> {
9
- }
10
- export type SeparatorHorizontalProps = typeof __propDef.props;
11
- export type SeparatorHorizontalEvents = typeof __propDef.events;
12
- export type SeparatorHorizontalSlots = typeof __propDef.slots;
13
- import { SvelteComponent } from "svelte";
14
- declare const __propDef: {
15
- props: {
16
- [x: string]: never;
17
- };
18
- events: {
19
- [evt: string]: CustomEvent<any>;
20
- };
21
- slots: {};
6
+ }, {}> & {
7
+ $$bindings?: string | undefined;
22
8
  };
23
- export {};
9
+ declare const SeparatorHorizontal: $$__sveltets_2_IsomorphicComponent<{
10
+ [x: string]: never;
11
+ }, {
12
+ [evt: string]: CustomEvent<any>;
13
+ }, {}, {}, string>;
14
+ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
15
+ new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
16
+ $$bindings?: Bindings;
17
+ } & Exports;
18
+ (internal: unknown, props: {
19
+ $$events?: Events;
20
+ $$slots?: Slots;
21
+ }): Exports & {
22
+ $set?: any;
23
+ $on?: any;
24
+ };
25
+ z_$$bindings?: Bindings;
26
+ }
@@ -1,6 +1,12 @@
1
+ <script lang="ts">
2
+ import type { ShortcutWrapperProps } from './types'
3
+
4
+ let { children }: ShortcutWrapperProps = $props()
5
+ </script>
6
+
1
7
  <div
2
8
  class="h-4 w-4 bg-white-5 rounded border border-white-20 inline-flex items-center justify-center"
3
9
  style="box-shadow: 0px 1px 0px rgba(255, 255, 255, 0.25);"
4
10
  >
5
- <slot />
11
+ {@render children?.()}
6
12
  </div>
@@ -1,27 +1,4 @@
1
- /** @typedef {typeof __propDef.props} ShortcutWrapperProps */
2
- /** @typedef {typeof __propDef.events} ShortcutWrapperEvents */
3
- /** @typedef {typeof __propDef.slots} ShortcutWrapperSlots */
4
- export default class ShortcutWrapper extends SvelteComponent<{
5
- [x: string]: never;
6
- }, {
7
- [evt: string]: CustomEvent<any>;
8
- }, {
9
- default: {};
10
- }> {
11
- }
12
- export type ShortcutWrapperProps = typeof __propDef.props;
13
- export type ShortcutWrapperEvents = typeof __propDef.events;
14
- export type ShortcutWrapperSlots = typeof __propDef.slots;
15
- import { SvelteComponent } from "svelte";
16
- declare const __propDef: {
17
- props: {
18
- [x: string]: never;
19
- };
20
- events: {
21
- [evt: string]: CustomEvent<any>;
22
- };
23
- slots: {
24
- default: {};
25
- };
26
- };
27
- export {};
1
+ import type { ShortcutWrapperProps } from './types';
2
+ declare const ShortcutWrapper: import("svelte").Component<ShortcutWrapperProps, {}, "">;
3
+ type ShortcutWrapper = ReturnType<typeof ShortcutWrapper>;
4
+ export default ShortcutWrapper;
@@ -1,15 +1,19 @@
1
- <script>import clsx from "clsx";
2
- import FeedIconStatus from "./FeedIconStatus.svelte";
3
- export let status;
4
- export let label = "";
5
- $:
6
- styles = clsx({
7
- "text-positive-500": status === "success",
8
- "text-neutral-500": status === "queued",
9
- "text-warning-500": status === "alert",
10
- "text-danger-500": status === "failure",
11
- "text-yellow-500": status === "run"
12
- });
1
+ <script lang="ts">
2
+ import clsx from 'clsx'
3
+ import FeedIconStatus from './FeedIconStatus.svelte'
4
+ import type { StatusLabelProps } from './types.js'
5
+
6
+ let { status, label = '' }: StatusLabelProps = $props()
7
+
8
+ let styles = $derived(
9
+ clsx({
10
+ 'text-positive-500': status === 'success',
11
+ 'text-neutral-500': status === 'queued',
12
+ 'text-warning-500': status === 'alert',
13
+ 'text-danger-500': status === 'failure',
14
+ 'text-yellow-500': status === 'run'
15
+ })
16
+ )
13
17
  </script>
14
18
 
15
19
  <div class="flex items-center space-x-1">
@@ -1,18 +1,4 @@
1
- import { SvelteComponent } from "svelte";
2
- import type { FeedItemStatus } from './types.js';
3
- declare const __propDef: {
4
- props: {
5
- status: FeedItemStatus;
6
- label?: string | undefined;
7
- };
8
- events: {
9
- [evt: string]: CustomEvent<any>;
10
- };
11
- slots: {};
12
- };
13
- export type StatusLabelProps = typeof __propDef.props;
14
- export type StatusLabelEvents = typeof __propDef.events;
15
- export type StatusLabelSlots = typeof __propDef.slots;
16
- export default class StatusLabel extends SvelteComponent<StatusLabelProps, StatusLabelEvents, StatusLabelSlots> {
17
- }
18
- export {};
1
+ import type { StatusLabelProps } from './types.js';
2
+ declare const StatusLabel: import("svelte").Component<StatusLabelProps, {}, "">;
3
+ type StatusLabel = ReturnType<typeof StatusLabel>;
4
+ export default StatusLabel;
@@ -1,45 +1,48 @@
1
- <script>import { Tooltip, TooltipContent, TooltipTrigger } from "./tooltip";
2
- export let icons = [];
3
- $:
4
- maxItems = icons.length > 6 ? 5 : 6;
5
- $:
6
- mainIcons = icons.slice(0, maxItems);
7
- $:
8
- restIcons = icons.slice(maxItems, icons.length);
1
+ <script lang="ts">
2
+ import { Tooltip, TooltipContent, TooltipTrigger, TooltipProvider } from './tooltip'
3
+ import type { StepIconListProps } from './types.js'
4
+
5
+ let { icons = [] }: StepIconListProps = $props()
6
+
7
+ let maxItems = $derived(icons.length > 6 ? 5 : 6)
8
+ let mainIcons = $derived(icons.slice(0, maxItems))
9
+ let restIcons = $derived(icons.slice(maxItems, icons.length))
9
10
  </script>
10
11
 
11
- <div class="flex flex-col space-y-2 sm:flex-row sm:space-y-0 items-center">
12
- {#each mainIcons as icon, i (i)}
13
- <Tooltip>
14
- <TooltipTrigger class="flex-shrink-0">
15
- <div
16
- class="p-1.5 border rounded-md border-neutral-200 flex items-center space-x-1 bg-white text-neutral-800"
17
- >
18
- <img src={icon.url} alt={icon.name} class="w-4 h-4" />
19
- </div>
20
- </TooltipTrigger>
21
- <TooltipContent>{icon.name}</TooltipContent>
22
- </Tooltip>
12
+ <TooltipProvider>
13
+ <div class="flex flex-col space-y-2 sm:flex-row sm:space-y-0 items-center">
14
+ {#each mainIcons as icon, i (i)}
15
+ <Tooltip>
16
+ <TooltipTrigger class="flex-shrink-0">
17
+ <div
18
+ class="p-1.5 border rounded-md border-neutral-200 flex items-center space-x-1 bg-white text-neutral-800"
19
+ >
20
+ <img src={icon.url} alt={icon.name} class="w-4 h-4" />
21
+ </div>
22
+ </TooltipTrigger>
23
+ <TooltipContent>{icon.name}</TooltipContent>
24
+ </Tooltip>
23
25
 
24
- {#if i < mainIcons.length - 1}
25
- <div class="hidden sm:block h-px w-3 border border-neutral-200 mx-px flex-shrink-0" />
26
+ {#if i < mainIcons.length - 1}
27
+ <div class="hidden sm:block h-px w-3 border border-neutral-200 mx-px flex-shrink-0"></div>
28
+ {/if}
29
+ {/each}
30
+ {#if restIcons.length}
31
+ <div class="hidden sm:block h-px w-3 border border-neutral-200 mx-px flex-shrink-0"></div>
32
+ <Tooltip>
33
+ <TooltipTrigger class="flex-shrink-0">
34
+ <div
35
+ class="flex items-center justify-center text-neutral-500 font-medium text-base h-7 w-7"
36
+ >
37
+ +{restIcons.length}
38
+ </div>
39
+ </TooltipTrigger>
40
+ <TooltipContent>
41
+ {#each restIcons as restIcon}
42
+ <div>{restIcon.name}</div>
43
+ {/each}
44
+ </TooltipContent>
45
+ </Tooltip>
26
46
  {/if}
27
- {/each}
28
- {#if restIcons.length}
29
- <div class="hidden sm:block h-px w-3 border border-neutral-200 mx-px flex-shrink-0" />
30
- <Tooltip>
31
- <TooltipTrigger class="flex-shrink-0">
32
- <div
33
- class="flex items-center justify-center text-neutral-500 font-medium text-base h-7 w-7"
34
- >
35
- +{restIcons.length}
36
- </div>
37
- </TooltipTrigger>
38
- <TooltipContent>
39
- {#each restIcons as restIcon}
40
- <div>{restIcon.name}</div>
41
- {/each}
42
- </TooltipContent>
43
- </Tooltip>
44
- {/if}
45
- </div>
47
+ </div>
48
+ </TooltipProvider>