@invopop/popui 0.0.108 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AlertDialog.svelte +84 -59
- package/dist/AlertDialog.svelte.d.ts +5 -29
- package/dist/BaseButton.svelte +106 -101
- package/dist/BaseButton.svelte.d.ts +4 -34
- package/dist/BaseCard.svelte +20 -12
- package/dist/BaseCard.svelte.d.ts +4 -26
- package/dist/BaseCounter.svelte +13 -9
- package/dist/BaseCounter.svelte.d.ts +4 -17
- package/dist/BaseDropdown.svelte +54 -38
- package/dist/BaseDropdown.svelte.d.ts +6 -26
- package/dist/BaseFlag.svelte +6 -4
- package/dist/BaseFlag.svelte.d.ts +4 -17
- package/dist/BaseTable.svelte +226 -188
- package/dist/BaseTable.svelte.d.ts +4 -39
- package/dist/BaseTableActions.svelte +43 -33
- package/dist/BaseTableActions.svelte.d.ts +6 -21
- package/dist/BaseTableCellContent.svelte +19 -13
- package/dist/BaseTableCellContent.svelte.d.ts +4 -24
- package/dist/BaseTableCheckbox.svelte +19 -12
- package/dist/BaseTableCheckbox.svelte.d.ts +4 -21
- package/dist/BaseTableHeaderContent.svelte +30 -22
- package/dist/BaseTableHeaderContent.svelte.d.ts +4 -21
- package/dist/BaseTableHeaderOrderBy.svelte +24 -0
- package/dist/BaseTableHeaderOrderBy.svelte.d.ts +4 -0
- package/dist/BaseTableRow.svelte +78 -60
- package/dist/BaseTableRow.svelte.d.ts +4 -32
- package/dist/Breadcrumbs.svelte +14 -10
- package/dist/Breadcrumbs.svelte.d.ts +4 -19
- package/dist/ButtonFile.svelte +40 -29
- package/dist/ButtonFile.svelte.d.ts +4 -25
- package/dist/ButtonUuidCopy.svelte +27 -20
- package/dist/ButtonUuidCopy.svelte.d.ts +4 -22
- package/dist/CardCheckbox.svelte +28 -19
- package/dist/CardCheckbox.svelte.d.ts +4 -28
- package/dist/CardRelation.svelte +9 -8
- package/dist/CardRelation.svelte.d.ts +4 -22
- package/dist/CompanySelector.svelte +49 -43
- package/dist/CompanySelector.svelte.d.ts +4 -22
- package/dist/CounterWorkflow.svelte +12 -8
- package/dist/CounterWorkflow.svelte.d.ts +4 -17
- package/dist/DataListItem.svelte +24 -14
- package/dist/DataListItem.svelte.d.ts +4 -22
- package/dist/DatePicker.svelte +186 -386
- package/dist/DatePicker.svelte.d.ts +4 -22
- package/dist/DrawerContext.svelte +33 -22
- package/dist/DrawerContext.svelte.d.ts +4 -24
- package/dist/DrawerContextItem.svelte +69 -56
- package/dist/DrawerContextItem.svelte.d.ts +4 -23
- package/dist/DrawerContextSeparator.svelte +1 -1
- package/dist/DrawerContextSeparator.svelte.d.ts +22 -19
- package/dist/DrawerContextWorkspace.svelte +31 -32
- package/dist/DrawerContextWorkspace.svelte.d.ts +4 -20
- package/dist/DropdownSelect.svelte +93 -81
- package/dist/DropdownSelect.svelte.d.ts +4 -27
- package/dist/EmptyStateIcon.svelte +13 -7
- package/dist/EmptyStateIcon.svelte.d.ts +4 -22
- package/dist/EmptyStateIllustration.svelte +41 -33
- package/dist/EmptyStateIllustration.svelte.d.ts +4 -21
- package/dist/FeedEvents.svelte +5 -2
- package/dist/FeedEvents.svelte.d.ts +4 -17
- package/dist/FeedIconEvent.svelte +5 -3
- package/dist/FeedIconEvent.svelte.d.ts +4 -19
- package/dist/FeedIconStatus.svelte +23 -18
- package/dist/FeedIconStatus.svelte.d.ts +4 -17
- package/dist/FeedItem.svelte +33 -28
- package/dist/FeedItem.svelte.d.ts +4 -30
- package/dist/FeedItemDetail.svelte +21 -13
- package/dist/FeedItemDetail.svelte.d.ts +4 -23
- package/dist/FeedViewer.svelte +6 -13
- package/dist/FeedViewer.svelte.d.ts +4 -21
- package/dist/FormLayoutModal.svelte +9 -3
- package/dist/FormLayoutModal.svelte.d.ts +4 -29
- package/dist/GlobalSearch.svelte +38 -31
- package/dist/GlobalSearch.svelte.d.ts +4 -18
- package/dist/InputCheckbox.svelte +23 -14
- package/dist/InputCheckbox.svelte.d.ts +4 -23
- package/dist/InputError.svelte +4 -1
- package/dist/InputError.svelte.d.ts +4 -16
- package/dist/InputLabel.svelte +5 -3
- package/dist/InputLabel.svelte.d.ts +4 -18
- package/dist/InputRadio.svelte +25 -19
- package/dist/InputRadio.svelte.d.ts +4 -21
- package/dist/InputSearch.svelte +66 -46
- package/dist/InputSearch.svelte.d.ts +9 -32
- package/dist/InputSelect.svelte +36 -33
- package/dist/InputSelect.svelte.d.ts +4 -31
- package/dist/InputText.svelte +64 -48
- package/dist/InputText.svelte.d.ts +4 -28
- package/dist/InputTextarea.svelte +38 -29
- package/dist/InputTextarea.svelte.d.ts +4 -25
- package/dist/InputToggle.svelte +29 -22
- package/dist/InputToggle.svelte.d.ts +4 -20
- package/dist/MenuItem.svelte +99 -87
- package/dist/MenuItem.svelte.d.ts +5 -29
- package/dist/MenuItemCollapsible.svelte +26 -18
- package/dist/MenuItemCollapsible.svelte.d.ts +4 -24
- package/dist/Notification.svelte +35 -31
- package/dist/Notification.svelte.d.ts +4 -20
- package/dist/ProfileAvatar.svelte +26 -19
- package/dist/ProfileAvatar.svelte.d.ts +4 -21
- package/dist/ProfileSelector.svelte +25 -17
- package/dist/ProfileSelector.svelte.d.ts +4 -22
- package/dist/SectionLayout.svelte +6 -3
- package/dist/SectionLayout.svelte.d.ts +4 -18
- package/dist/SeparatorHorizontal.svelte +1 -1
- package/dist/SeparatorHorizontal.svelte.d.ts +22 -19
- package/dist/ShortcutWrapper.svelte +7 -1
- package/dist/ShortcutWrapper.svelte.d.ts +4 -27
- package/dist/StatusLabel.svelte +16 -12
- package/dist/StatusLabel.svelte.d.ts +4 -18
- package/dist/StepIconList.svelte +44 -41
- package/dist/StepIconList.svelte.d.ts +4 -17
- package/dist/TagBeta.svelte.d.ts +22 -19
- package/dist/TagSearch.svelte +19 -20
- package/dist/TagSearch.svelte.d.ts +4 -22
- package/dist/TagStatus.svelte +42 -37
- package/dist/TagStatus.svelte.d.ts +4 -19
- package/dist/TitleMain.svelte +9 -2
- package/dist/TitleMain.svelte.d.ts +4 -18
- package/dist/TitleSection.svelte +9 -2
- package/dist/TitleSection.svelte.d.ts +4 -18
- package/dist/UuidCopy.svelte +61 -48
- package/dist/UuidCopy.svelte.d.ts +4 -26
- package/dist/alert-dialog/alert-dialog-action.svelte +15 -15
- package/dist/alert-dialog/alert-dialog-action.svelte.d.ts +5 -26
- package/dist/alert-dialog/alert-dialog-cancel.svelte +13 -10
- package/dist/alert-dialog/alert-dialog-cancel.svelte.d.ts +3 -22
- package/dist/alert-dialog/alert-dialog-content.svelte +19 -15
- package/dist/alert-dialog/alert-dialog-content.svelte.d.ts +6 -15
- package/dist/alert-dialog/alert-dialog-description.svelte +11 -6
- package/dist/alert-dialog/alert-dialog-description.svelte.d.ts +3 -16
- package/dist/alert-dialog/alert-dialog-footer.svelte +11 -5
- package/dist/alert-dialog/alert-dialog-footer.svelte.d.ts +4 -16
- package/dist/alert-dialog/alert-dialog-header.svelte +14 -5
- package/dist/alert-dialog/alert-dialog-header.svelte.d.ts +4 -16
- package/dist/alert-dialog/alert-dialog-overlay.svelte +10 -13
- package/dist/alert-dialog/alert-dialog-overlay.svelte.d.ts +3 -14
- package/dist/alert-dialog/alert-dialog-title.svelte +11 -8
- package/dist/alert-dialog/alert-dialog-title.svelte.d.ts +3 -16
- package/dist/alert-dialog/alert-dialog-trigger.svelte +6 -0
- package/dist/alert-dialog/alert-dialog-trigger.svelte.d.ts +4 -0
- package/dist/alert-dialog/index.d.ts +3 -4
- package/dist/alert-dialog/index.js +2 -2
- package/dist/button/button.svelte +76 -18
- package/dist/button/button.svelte.d.ts +62 -14
- package/dist/button/index.d.ts +2 -60
- package/dist/button/index.js +1 -26
- package/dist/helpers.d.ts +4 -1
- package/dist/helpers.js +35 -0
- package/dist/index.d.ts +1 -3
- package/dist/index.js +0 -4
- package/dist/range-calendar/index.d.ts +20 -0
- package/dist/range-calendar/index.js +22 -0
- package/dist/range-calendar/range-calendar-caption.svelte +71 -0
- package/dist/range-calendar/range-calendar-caption.svelte.d.ts +19 -0
- package/dist/range-calendar/range-calendar-cell.svelte +18 -0
- package/dist/range-calendar/range-calendar-cell.svelte.d.ts +4 -0
- package/dist/range-calendar/range-calendar-day.svelte +41 -0
- package/dist/range-calendar/range-calendar-day.svelte.d.ts +4 -0
- package/dist/range-calendar/range-calendar-grid-row.svelte +11 -0
- package/dist/range-calendar/range-calendar-grid-row.svelte.d.ts +4 -0
- package/dist/range-calendar/range-calendar-grid.svelte +15 -0
- package/dist/range-calendar/range-calendar-grid.svelte.d.ts +4 -0
- package/dist/range-calendar/range-calendar-head-cell.svelte +18 -0
- package/dist/range-calendar/range-calendar-head-cell.svelte.d.ts +4 -0
- package/dist/range-calendar/range-calendar-header.svelte +18 -0
- package/dist/range-calendar/range-calendar-header.svelte.d.ts +4 -0
- package/dist/range-calendar/range-calendar-heading.svelte +15 -0
- package/dist/range-calendar/range-calendar-heading.svelte.d.ts +4 -0
- package/dist/range-calendar/range-calendar-month-select.svelte +44 -0
- package/dist/range-calendar/range-calendar-month-select.svelte.d.ts +4 -0
- package/dist/range-calendar/range-calendar-month.svelte +14 -0
- package/dist/range-calendar/range-calendar-month.svelte.d.ts +5 -0
- package/dist/range-calendar/range-calendar-months.svelte +18 -0
- package/dist/range-calendar/range-calendar-months.svelte.d.ts +5 -0
- package/dist/range-calendar/range-calendar-nav.svelte +18 -0
- package/dist/range-calendar/range-calendar-nav.svelte.d.ts +5 -0
- package/dist/range-calendar/range-calendar-next-button.svelte +30 -0
- package/dist/range-calendar/range-calendar-next-button.svelte.d.ts +8 -0
- package/dist/range-calendar/range-calendar-prev-button.svelte +30 -0
- package/dist/range-calendar/range-calendar-prev-button.svelte.d.ts +8 -0
- package/dist/range-calendar/range-calendar-year-select.svelte +43 -0
- package/dist/range-calendar/range-calendar-year-select.svelte.d.ts +4 -0
- package/dist/range-calendar/range-calendar.svelte +109 -0
- package/dist/range-calendar/range-calendar.svelte.d.ts +21 -0
- package/dist/svg/BgPattern.svelte.d.ts +22 -19
- package/dist/svg/IconContact.svelte +6 -1
- package/dist/svg/IconContact.svelte.d.ts +5 -15
- package/dist/svg/IconEmpty.svelte.d.ts +22 -19
- package/dist/svg/IconFile.svelte +6 -1
- package/dist/svg/IconFile.svelte.d.ts +5 -15
- package/dist/svg/IconInvoice.svelte +6 -1
- package/dist/svg/IconInvoice.svelte.d.ts +5 -15
- package/dist/svg/IconNoResults.svelte +6 -1
- package/dist/svg/IconNoResults.svelte.d.ts +5 -15
- package/dist/svg/IconPdf.svelte +6 -1
- package/dist/svg/IconPdf.svelte.d.ts +5 -15
- package/dist/svg/IconProduct.svelte +6 -1
- package/dist/svg/IconProduct.svelte.d.ts +5 -15
- package/dist/table/table-body.svelte +10 -5
- package/dist/table/table-body.svelte.d.ts +4 -16
- package/dist/table/table-caption.svelte +14 -5
- package/dist/table/table-caption.svelte.d.ts +4 -16
- package/dist/table/table-cell.svelte +16 -7
- package/dist/table/table-cell.svelte.d.ts +4 -19
- package/dist/table/table-footer.svelte +14 -5
- package/dist/table/table-footer.svelte.d.ts +4 -16
- package/dist/table/table-head.svelte +11 -5
- package/dist/table/table-head.svelte.d.ts +4 -16
- package/dist/table/table-header.svelte +17 -8
- package/dist/table/table-header.svelte.d.ts +4 -19
- package/dist/table/table-row.svelte +22 -8
- package/dist/table/table-row.svelte.d.ts +4 -22
- package/dist/table/table.svelte +11 -6
- package/dist/table/table.svelte.d.ts +4 -16
- package/dist/tabs/tabs-content.svelte +13 -8
- package/dist/tabs/tabs-content.svelte.d.ts +3 -16
- package/dist/tabs/tabs-list.svelte +7 -6
- package/dist/tabs/tabs-list.svelte.d.ts +3 -16
- package/dist/tabs/tabs-trigger.svelte +13 -9
- package/dist/tabs/tabs-trigger.svelte.d.ts +3 -14
- package/dist/tabs/tabs.svelte +12 -7
- package/dist/tabs/tabs.svelte.d.ts +3 -16
- package/dist/tooltip/index.d.ts +5 -3
- package/dist/tooltip/index.js +5 -3
- package/dist/tooltip/tooltip-content.svelte +42 -23
- package/dist/tooltip/tooltip-content.svelte.d.ts +5 -15
- package/dist/tooltip/tooltip-trigger.svelte +8 -0
- package/dist/tooltip/tooltip-trigger.svelte.d.ts +4 -0
- package/dist/tw.theme.d.ts +2 -9
- package/dist/tw.theme.js +0 -5
- package/dist/types.d.ts +484 -25
- package/dist/utils.d.ts +10 -1
- package/package.json +32 -41
- package/README.md +0 -234
- package/dist/BaseTableHeaderSortBy.svelte +0 -22
- package/dist/BaseTableHeaderSortBy.svelte.d.ts +0 -20
- package/dist/ComboBox.svelte +0 -12
- package/dist/ComboBox.svelte.d.ts +0 -21
- package/dist/ComboBoxContent.svelte +0 -33
- package/dist/ComboBoxContent.svelte.d.ts +0 -20
- package/dist/ProgressBar.svelte +0 -6
- package/dist/ProgressBar.svelte.d.ts +0 -16
- package/dist/alert-dialog/alert-dialog-portal.svelte +0 -6
- package/dist/alert-dialog/alert-dialog-portal.svelte.d.ts +0 -17
- package/dist/popui.css +0 -1
- package/dist/wcdispatch.d.ts +0 -1
- package/dist/wcdispatch.js +0 -9
|
@@ -1,19 +1,27 @@
|
|
|
1
|
-
<script
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
|
|
32
|
+
{@render children?.()}
|
|
25
33
|
{#if !collapsed}
|
|
26
34
|
<div>
|
|
27
|
-
<div class="whitespace-nowrap max-w-[
|
|
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 {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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;
|
package/dist/Notification.svelte
CHANGED
|
@@ -1,34 +1,38 @@
|
|
|
1
|
-
<script
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
-
|
|
43
|
+
{@render children?.()}
|
|
40
44
|
</div>
|
|
@@ -1,20 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
-
|
|
34
|
+
onerror={() => {
|
|
28
35
|
picture = ''
|
|
29
36
|
}}
|
|
30
37
|
/>
|
|
@@ -1,21 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const
|
|
3
|
-
|
|
4
|
-
|
|
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
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
|
|
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 {
|
|
2
|
-
declare const
|
|
3
|
-
|
|
4
|
-
|
|
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
|
|
2
|
-
|
|
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
|
-
|
|
11
|
+
{@render children?.()}
|
|
9
12
|
</div>
|
|
10
13
|
</div>
|
|
@@ -1,18 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const
|
|
3
|
-
|
|
4
|
-
|
|
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,23 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
|
|
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
|
-
|
|
11
|
+
{@render children?.()}
|
|
6
12
|
</div>
|
|
@@ -1,27 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export default
|
|
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;
|
package/dist/StatusLabel.svelte
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
|
-
<script
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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 {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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;
|
package/dist/StepIconList.svelte
CHANGED
|
@@ -1,45 +1,48 @@
|
|
|
1
|
-
<script
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
<
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
<
|
|
15
|
-
<
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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
|
-
|
|
25
|
-
|
|
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
|
-
|
|
28
|
-
|
|
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>
|