@invopop/popui 0.0.103 → 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.
- 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 -26
- 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 +67 -54
- 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 -33
- 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 +30 -39
- 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,27 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
props: {
|
|
6
|
-
value?: AnyProp | undefined;
|
|
7
|
-
icon?: IconSource | string | undefined;
|
|
8
|
-
iconTheme?: IconTheme | undefined;
|
|
9
|
-
options?: DrawerOption[] | undefined;
|
|
10
|
-
placeholder?: string | undefined;
|
|
11
|
-
multiple?: boolean | undefined;
|
|
12
|
-
fullWidth?: boolean | undefined;
|
|
13
|
-
widthClass?: string | undefined;
|
|
14
|
-
};
|
|
15
|
-
events: {
|
|
16
|
-
selected: CustomEvent<any>;
|
|
17
|
-
} & {
|
|
18
|
-
[evt: string]: CustomEvent<any>;
|
|
19
|
-
};
|
|
20
|
-
slots: {};
|
|
21
|
-
};
|
|
22
|
-
export type DropdownSelectProps = typeof __propDef.props;
|
|
23
|
-
export type DropdownSelectEvents = typeof __propDef.events;
|
|
24
|
-
export type DropdownSelectSlots = typeof __propDef.slots;
|
|
25
|
-
export default class DropdownSelect extends SvelteComponent<DropdownSelectProps, DropdownSelectEvents, DropdownSelectSlots> {
|
|
26
|
-
}
|
|
27
|
-
export {};
|
|
1
|
+
import type { DropdownSelectProps } from './types.ts';
|
|
2
|
+
declare const DropdownSelect: import("svelte").Component<DropdownSelectProps, {}, "value">;
|
|
3
|
+
type DropdownSelect = ReturnType<typeof DropdownSelect>;
|
|
4
|
+
export default DropdownSelect;
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
<script
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import IconEmpty from './svg/IconEmpty.svelte'
|
|
3
|
+
import { Icon } from '@steeze-ui/svelte-icon'
|
|
4
|
+
import type { EmptyStateIconProps } from './types'
|
|
5
|
+
|
|
6
|
+
let {
|
|
7
|
+
icon = undefined,
|
|
8
|
+
title = '',
|
|
9
|
+
description = '',
|
|
10
|
+
check = false,
|
|
11
|
+
children
|
|
12
|
+
}: EmptyStateIconProps = $props()
|
|
7
13
|
</script>
|
|
8
14
|
|
|
9
15
|
<div
|
|
@@ -41,6 +47,6 @@ export let check = false;
|
|
|
41
47
|
<div class="space-y-0.5">
|
|
42
48
|
<h4 class="font-medium text-base text-neutral-800 tracking-tight">{title}</h4>
|
|
43
49
|
<p class="max-w-xs text-base text-neutral-500 tracking-normal">{description}</p>
|
|
44
|
-
<p
|
|
50
|
+
<p>{@render children?.()}</p>
|
|
45
51
|
</div>
|
|
46
52
|
</div>
|
|
@@ -1,22 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
icon?: IconSource | undefined;
|
|
6
|
-
title?: string | undefined;
|
|
7
|
-
description?: string | undefined;
|
|
8
|
-
check?: boolean | undefined;
|
|
9
|
-
};
|
|
10
|
-
events: {
|
|
11
|
-
[evt: string]: CustomEvent<any>;
|
|
12
|
-
};
|
|
13
|
-
slots: {
|
|
14
|
-
default: {};
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
export type EmptyStateIconProps = typeof __propDef.props;
|
|
18
|
-
export type EmptyStateIconEvents = typeof __propDef.events;
|
|
19
|
-
export type EmptyStateIconSlots = typeof __propDef.slots;
|
|
20
|
-
export default class EmptyStateIcon extends SvelteComponent<EmptyStateIconProps, EmptyStateIconEvents, EmptyStateIconSlots> {
|
|
21
|
-
}
|
|
22
|
-
export {};
|
|
1
|
+
import type { EmptyStateIconProps } from './types';
|
|
2
|
+
declare const EmptyStateIcon: import("svelte").Component<EmptyStateIconProps, {}, "">;
|
|
3
|
+
type EmptyStateIcon = ReturnType<typeof EmptyStateIcon>;
|
|
4
|
+
export default EmptyStateIcon;
|
|
@@ -1,28 +1,36 @@
|
|
|
1
|
-
<script
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { EmptyStateIcon, EmptyStateIllustrationProps } from './types.js'
|
|
3
|
+
import BgPattern from './svg/BgPattern.svelte'
|
|
4
|
+
import IconContact from './svg/IconContact.svelte'
|
|
5
|
+
import IconInvoice from './svg/IconInvoice.svelte'
|
|
6
|
+
import IconProduct from './svg/IconProduct.svelte'
|
|
7
|
+
import IconFile from './svg/IconFile.svelte'
|
|
8
|
+
import IconPdf from './svg/IconPdf.svelte'
|
|
9
|
+
import IconNoResults from './svg/IconNoResults.svelte'
|
|
10
|
+
import type { SvelteComponent } from 'svelte'
|
|
11
|
+
|
|
12
|
+
let {
|
|
13
|
+
icon = undefined,
|
|
14
|
+
title = '',
|
|
15
|
+
description = '',
|
|
16
|
+
children
|
|
17
|
+
}: EmptyStateIllustrationProps = $props()
|
|
18
|
+
|
|
19
|
+
function getComponent(icon: EmptyStateIcon | undefined) {
|
|
20
|
+
if (!icon) return undefined
|
|
21
|
+
|
|
22
|
+
const icons: Record<EmptyStateIcon, unknown> = {
|
|
23
|
+
invoices: IconInvoice,
|
|
24
|
+
contacts: IconContact,
|
|
25
|
+
products: IconProduct,
|
|
26
|
+
file: IconFile,
|
|
27
|
+
pdf: IconPdf,
|
|
28
|
+
'no-results': IconNoResults
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
return icons[icon] as typeof SvelteComponent
|
|
32
|
+
}
|
|
33
|
+
let iconComponent = $derived(getComponent(icon))
|
|
26
34
|
</script>
|
|
27
35
|
|
|
28
36
|
<div
|
|
@@ -30,29 +38,29 @@ function getComponent(icon2) {
|
|
|
30
38
|
aria-label={title}
|
|
31
39
|
>
|
|
32
40
|
{#if iconComponent}
|
|
41
|
+
{@const SvelteComponent_1 = iconComponent}
|
|
42
|
+
{@const SvelteComponent_2 = iconComponent}
|
|
43
|
+
{@const SvelteComponent_3 = iconComponent}
|
|
33
44
|
<div class="relative h-[120px] w-full max-w-sm">
|
|
34
45
|
<div class="absolute top-0 left-0">
|
|
35
46
|
<BgPattern />
|
|
36
47
|
</div>
|
|
37
|
-
<
|
|
38
|
-
this={iconComponent}
|
|
48
|
+
<SvelteComponent_1
|
|
39
49
|
classes="text-neutral-400/40 absolute left-[50%] translate-x-[-50%] top-[50%] translate-y-[-50%] -ml-[40px] rotate-[-8deg] mt-0.5 z-20 w-[86px] h-[104px]"
|
|
40
50
|
/>
|
|
41
|
-
<
|
|
42
|
-
this={iconComponent}
|
|
51
|
+
<SvelteComponent_2
|
|
43
52
|
classes="{icon === 'no-results'
|
|
44
53
|
? 'text-neutral-400'
|
|
45
54
|
: 'text-workspace-accent'} absolute left-[50%] translate-x-[-50%] top-[50%] translate-y-[-50%] z-30 w-[97px] h-[117px]"
|
|
46
55
|
/>
|
|
47
|
-
<
|
|
48
|
-
this={iconComponent}
|
|
56
|
+
<SvelteComponent_3
|
|
49
57
|
classes="text-neutral-400/40 absolute left-[50%] translate-x-[-50%] top-[50%] translate-y-[-50%] ml-[40px] rotate-[8deg] mt-0.5 z-20 w-[86px] h-[104px]"
|
|
50
58
|
/>
|
|
51
59
|
</div>
|
|
52
60
|
{/if}
|
|
53
61
|
<div class="space-y-0.5">
|
|
54
|
-
<h4 class="font-medium text-
|
|
62
|
+
<h4 class="font-medium text-neutral-800 text-base tracking-tight">{title}</h4>
|
|
55
63
|
<p class="max-w-xs text-base text-neutral-500 tracking-normal">{description}</p>
|
|
56
|
-
<p
|
|
64
|
+
<p>{@render children?.()}</p>
|
|
57
65
|
</div>
|
|
58
66
|
</div>
|
|
@@ -1,21 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
icon?: EmptyStateIcon | undefined;
|
|
6
|
-
title?: string | undefined;
|
|
7
|
-
description?: string | undefined;
|
|
8
|
-
};
|
|
9
|
-
events: {
|
|
10
|
-
[evt: string]: CustomEvent<any>;
|
|
11
|
-
};
|
|
12
|
-
slots: {
|
|
13
|
-
default: {};
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
export type EmptyStateIllustrationProps = typeof __propDef.props;
|
|
17
|
-
export type EmptyStateIllustrationEvents = typeof __propDef.events;
|
|
18
|
-
export type EmptyStateIllustrationSlots = typeof __propDef.slots;
|
|
19
|
-
export default class EmptyStateIllustration extends SvelteComponent<EmptyStateIllustrationProps, EmptyStateIllustrationEvents, EmptyStateIllustrationSlots> {
|
|
20
|
-
}
|
|
21
|
-
export {};
|
|
1
|
+
import type { EmptyStateIllustrationProps } from './types.js';
|
|
2
|
+
declare const EmptyStateIllustration: import("svelte").Component<EmptyStateIllustrationProps, {}, "">;
|
|
3
|
+
type EmptyStateIllustration = ReturnType<typeof EmptyStateIllustration>;
|
|
4
|
+
export default EmptyStateIllustration;
|
package/dist/FeedEvents.svelte
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
<script
|
|
2
|
-
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import TagStatus from './TagStatus.svelte'
|
|
3
|
+
import type { FeedEventsProps } from './types.js'
|
|
4
|
+
|
|
5
|
+
let { events = [] }: FeedEventsProps = $props()
|
|
3
6
|
</script>
|
|
4
7
|
|
|
5
8
|
<div class="border border-neutral-100 bg-neutral-50 rounded">
|
|
@@ -1,17 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
events?: FeedEvent[] | undefined;
|
|
6
|
-
};
|
|
7
|
-
events: {
|
|
8
|
-
[evt: string]: CustomEvent<any>;
|
|
9
|
-
};
|
|
10
|
-
slots: {};
|
|
11
|
-
};
|
|
12
|
-
export type FeedEventsProps = typeof __propDef.props;
|
|
13
|
-
export type FeedEventsEvents = typeof __propDef.events;
|
|
14
|
-
export type FeedEventsSlots = typeof __propDef.slots;
|
|
15
|
-
export default class FeedEvents extends SvelteComponent<FeedEventsProps, FeedEventsEvents, FeedEventsSlots> {
|
|
16
|
-
}
|
|
17
|
-
export {};
|
|
1
|
+
import type { FeedEventsProps } from './types.js';
|
|
2
|
+
declare const FeedEvents: import("svelte").Component<FeedEventsProps, {}, "">;
|
|
3
|
+
type FeedEvents = ReturnType<typeof FeedEvents>;
|
|
4
|
+
export default FeedEvents;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
<script
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { Icon } from '@steeze-ui/svelte-icon'
|
|
3
|
+
import type { FeedIconEventProps } from './types.js'
|
|
4
|
+
|
|
5
|
+
let { icon = undefined, iconTheme = 'default' }: FeedIconEventProps = $props()
|
|
4
6
|
</script>
|
|
5
7
|
|
|
6
8
|
<div class="relative py-0.5 mt-2">
|
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
props: {
|
|
6
|
-
icon?: IconSource | undefined;
|
|
7
|
-
iconTheme?: IconTheme | undefined;
|
|
8
|
-
};
|
|
9
|
-
events: {
|
|
10
|
-
[evt: string]: CustomEvent<any>;
|
|
11
|
-
};
|
|
12
|
-
slots: {};
|
|
13
|
-
};
|
|
14
|
-
export type FeedIconEventProps = typeof __propDef.props;
|
|
15
|
-
export type FeedIconEventEvents = typeof __propDef.events;
|
|
16
|
-
export type FeedIconEventSlots = typeof __propDef.slots;
|
|
17
|
-
export default class FeedIconEvent extends SvelteComponent<FeedIconEventProps, FeedIconEventEvents, FeedIconEventSlots> {
|
|
18
|
-
}
|
|
19
|
-
export {};
|
|
1
|
+
import type { FeedIconEventProps } from './types.js';
|
|
2
|
+
declare const FeedIconEvent: import("svelte").Component<FeedIconEventProps, {}, "">;
|
|
3
|
+
type FeedIconEvent = ReturnType<typeof FeedIconEvent>;
|
|
4
|
+
export default FeedIconEvent;
|
|
@@ -1,20 +1,25 @@
|
|
|
1
|
-
<script
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { Icon } from '@steeze-ui/svelte-icon'
|
|
3
|
+
import type { FeddIconStatusProps, FeedItemStatus } from './types.ts'
|
|
4
|
+
import { Alert, Failure, Queue, Running, Success, CheckBadge, Skip } from '@invopop/ui-icons'
|
|
5
|
+
import type { IconSource } from '@steeze-ui/heroicons'
|
|
6
|
+
|
|
7
|
+
let { status }: FeddIconStatusProps = $props()
|
|
8
|
+
|
|
9
|
+
function getIconStatus(status: FeedItemStatus): IconSource | undefined {
|
|
10
|
+
const icons: Record<FeedItemStatus, IconSource> = {
|
|
11
|
+
failure: Failure,
|
|
12
|
+
success: Success,
|
|
13
|
+
run: Running,
|
|
14
|
+
queued: Queue,
|
|
15
|
+
alert: Alert,
|
|
16
|
+
skip: Skip,
|
|
17
|
+
signed: CheckBadge
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
return icons[status]
|
|
21
|
+
}
|
|
22
|
+
let iconStatus = $derived(getIconStatus(status))
|
|
18
23
|
</script>
|
|
19
24
|
|
|
20
25
|
{#if iconStatus}
|
|
@@ -22,5 +27,5 @@ function getIconStatus(status2) {
|
|
|
22
27
|
<Icon src={iconStatus} class="h-4 w-4 flex-shrink-0" />
|
|
23
28
|
</div>
|
|
24
29
|
{:else}
|
|
25
|
-
<div class="w-4 h-4 flex-shrink-0 bg-neutral-200 rounded-full"
|
|
30
|
+
<div class="w-4 h-4 flex-shrink-0 bg-neutral-200 rounded-full"></div>
|
|
26
31
|
{/if}
|
|
@@ -1,17 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
status: FeedItemStatus;
|
|
6
|
-
};
|
|
7
|
-
events: {
|
|
8
|
-
[evt: string]: CustomEvent<any>;
|
|
9
|
-
};
|
|
10
|
-
slots: {};
|
|
11
|
-
};
|
|
12
|
-
export type FeedIconStatusProps = typeof __propDef.props;
|
|
13
|
-
export type FeedIconStatusEvents = typeof __propDef.events;
|
|
14
|
-
export type FeedIconStatusSlots = typeof __propDef.slots;
|
|
15
|
-
export default class FeedIconStatus extends SvelteComponent<FeedIconStatusProps, FeedIconStatusEvents, FeedIconStatusSlots> {
|
|
16
|
-
}
|
|
17
|
-
export {};
|
|
1
|
+
import type { FeddIconStatusProps } from './types.ts';
|
|
2
|
+
declare const FeedIconStatus: import("svelte").Component<FeddIconStatusProps, {}, "">;
|
|
3
|
+
type FeedIconStatus = ReturnType<typeof FeedIconStatus>;
|
|
4
|
+
export default FeedIconStatus;
|
package/dist/FeedItem.svelte
CHANGED
|
@@ -1,33 +1,38 @@
|
|
|
1
|
-
<script
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { FeedItemProps } from './types.ts'
|
|
3
|
+
import FeedIconEvent from './FeedIconEvent.svelte'
|
|
4
|
+
import FeedIconStatus from './FeedIconStatus.svelte'
|
|
5
|
+
import BaseButton from './BaseButton.svelte'
|
|
6
|
+
import ProfileAvatar from './ProfileAvatar.svelte'
|
|
7
|
+
|
|
8
|
+
let {
|
|
9
|
+
status = undefined,
|
|
10
|
+
icon = undefined,
|
|
11
|
+
title = '',
|
|
12
|
+
date = undefined,
|
|
13
|
+
hasNext = false,
|
|
14
|
+
slug = '',
|
|
15
|
+
viewable = false,
|
|
16
|
+
viewableText = 'View',
|
|
17
|
+
user = undefined,
|
|
18
|
+
type = '',
|
|
19
|
+
extraText = '',
|
|
20
|
+
onView
|
|
21
|
+
}: FeedItemProps = $props()
|
|
22
|
+
|
|
23
|
+
const dateOptions = {
|
|
24
|
+
year: 'numeric',
|
|
25
|
+
month: 'short',
|
|
26
|
+
day: 'numeric',
|
|
27
|
+
hour: '2-digit',
|
|
28
|
+
minute: '2-digit',
|
|
29
|
+
hour12: false
|
|
30
|
+
} as Intl.DateTimeFormatOptions
|
|
26
31
|
</script>
|
|
27
32
|
|
|
28
33
|
<div id={`feed-item-${slug}`} class="relative text-left w-full min-w-[344px]">
|
|
29
34
|
{#if hasNext && icon}
|
|
30
|
-
<span class="absolute bottom-[-20px] left-2 border-l border-neutral-100 w-px h-[58px]"
|
|
35
|
+
<span class="absolute bottom-[-20px] left-2 border-l border-neutral-100 w-px h-[58px]"></span>
|
|
31
36
|
{/if}
|
|
32
37
|
<div class="flex items-start justify-between space-x-2 py-3">
|
|
33
38
|
<div class="relative">
|
|
@@ -76,8 +81,8 @@ const dateOptions = {
|
|
|
76
81
|
<BaseButton
|
|
77
82
|
small
|
|
78
83
|
variant="secondary"
|
|
79
|
-
|
|
80
|
-
|
|
84
|
+
onclick={() => {
|
|
85
|
+
onView?.(type)
|
|
81
86
|
}}
|
|
82
87
|
>
|
|
83
88
|
{viewableText}
|
|
@@ -1,30 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
props: {
|
|
6
|
-
status?: FeedItemStatus | undefined;
|
|
7
|
-
icon?: IconSource | undefined;
|
|
8
|
-
title?: string | undefined;
|
|
9
|
-
date?: Date | undefined;
|
|
10
|
-
hasNext?: boolean | undefined;
|
|
11
|
-
slug?: string | undefined;
|
|
12
|
-
viewable?: boolean | undefined;
|
|
13
|
-
viewableText?: string | undefined;
|
|
14
|
-
user?: FeedItemUser | undefined;
|
|
15
|
-
type?: string | undefined;
|
|
16
|
-
extraText?: string | undefined;
|
|
17
|
-
};
|
|
18
|
-
events: {
|
|
19
|
-
view: CustomEvent<any>;
|
|
20
|
-
} & {
|
|
21
|
-
[evt: string]: CustomEvent<any>;
|
|
22
|
-
};
|
|
23
|
-
slots: {};
|
|
24
|
-
};
|
|
25
|
-
export type FeedItemProps = typeof __propDef.props;
|
|
26
|
-
export type FeedItemEvents = typeof __propDef.events;
|
|
27
|
-
export type FeedItemSlots = typeof __propDef.slots;
|
|
28
|
-
export default class FeedItem extends SvelteComponent<FeedItemProps, FeedItemEvents, FeedItemSlots> {
|
|
29
|
-
}
|
|
30
|
-
export {};
|
|
1
|
+
import type { FeedItemProps } from './types.ts';
|
|
2
|
+
declare const FeedItem: import("svelte").Component<FeedItemProps, {}, "">;
|
|
3
|
+
type FeedItem = ReturnType<typeof FeedItem>;
|
|
4
|
+
export default FeedItem;
|
|
@@ -1,14 +1,21 @@
|
|
|
1
|
-
<script
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { FeedItemDetailProps } from './types.ts'
|
|
3
|
+
import FeedIconStatus from './FeedIconStatus.svelte'
|
|
4
|
+
import UuidCopy from './UuidCopy.svelte'
|
|
5
|
+
import FeedEvents from './FeedEvents.svelte'
|
|
6
|
+
import { slide } from 'svelte/transition'
|
|
7
|
+
import SeparatorHorizontal from './SeparatorHorizontal.svelte'
|
|
8
|
+
|
|
9
|
+
let {
|
|
10
|
+
status = undefined,
|
|
11
|
+
title = '',
|
|
12
|
+
uuid = '',
|
|
13
|
+
events = [],
|
|
14
|
+
idLabel = 'ID:',
|
|
15
|
+
onCopied
|
|
16
|
+
}: FeedItemDetailProps = $props()
|
|
17
|
+
|
|
18
|
+
let open = $state(false)
|
|
12
19
|
</script>
|
|
13
20
|
|
|
14
21
|
<div class="w-full rounded-lg border border-neutral-100">
|
|
@@ -22,7 +29,7 @@ let open = false;
|
|
|
22
29
|
<div class="pl-3 py-1 pr-2.5 flex items-center space-x-0.5">
|
|
23
30
|
<span class="text-sm text-neutral-500 whitespace-nowrap">{idLabel}</span>
|
|
24
31
|
{#if uuid}
|
|
25
|
-
<UuidCopy {uuid} full small
|
|
32
|
+
<UuidCopy {uuid} full small {onCopied} />
|
|
26
33
|
{/if}
|
|
27
34
|
</div>
|
|
28
35
|
{#if events.length}
|
|
@@ -30,7 +37,8 @@ let open = false;
|
|
|
30
37
|
<div class="px-3 py-2 text-sm text-neutral-500 flex items-center justify-between">
|
|
31
38
|
<span>Logs</span>
|
|
32
39
|
<button
|
|
33
|
-
|
|
40
|
+
aria-label="Toggle details"
|
|
41
|
+
onclick={() => {
|
|
34
42
|
open = !open
|
|
35
43
|
}}
|
|
36
44
|
>
|
|
@@ -1,23 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
status?: FeedItemStatus | undefined;
|
|
6
|
-
title?: string | undefined;
|
|
7
|
-
uuid?: string | undefined;
|
|
8
|
-
events?: FeedEvent[] | undefined;
|
|
9
|
-
idLabel?: string | undefined;
|
|
10
|
-
};
|
|
11
|
-
events: {
|
|
12
|
-
copied: CustomEvent<any>;
|
|
13
|
-
} & {
|
|
14
|
-
[evt: string]: CustomEvent<any>;
|
|
15
|
-
};
|
|
16
|
-
slots: {};
|
|
17
|
-
};
|
|
18
|
-
export type FeedItemDetailProps = typeof __propDef.props;
|
|
19
|
-
export type FeedItemDetailEvents = typeof __propDef.events;
|
|
20
|
-
export type FeedItemDetailSlots = typeof __propDef.slots;
|
|
21
|
-
export default class FeedItemDetail extends SvelteComponent<FeedItemDetailProps, FeedItemDetailEvents, FeedItemDetailSlots> {
|
|
22
|
-
}
|
|
23
|
-
export {};
|
|
1
|
+
import type { FeedItemDetailProps } from './types.ts';
|
|
2
|
+
declare const FeedItemDetail: import("svelte").Component<FeedItemDetailProps, {}, "">;
|
|
3
|
+
type FeedItemDetail = ReturnType<typeof FeedItemDetail>;
|
|
4
|
+
export default FeedItemDetail;
|
package/dist/FeedViewer.svelte
CHANGED
|
@@ -1,19 +1,12 @@
|
|
|
1
|
-
<script
|
|
2
|
-
import FeedItem from
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import FeedItem from './FeedItem.svelte'
|
|
3
|
+
import type { FeedViewerProps } from './types.js'
|
|
4
|
+
|
|
5
|
+
let { items = [], onView }: FeedViewerProps = $props()
|
|
5
6
|
</script>
|
|
6
7
|
|
|
7
8
|
<div>
|
|
8
9
|
{#each items as item, i (i)}
|
|
9
|
-
<FeedItem
|
|
10
|
-
{...item}
|
|
11
|
-
hasNext={i < items.length - 1}
|
|
12
|
-
on:open
|
|
13
|
-
on:copied
|
|
14
|
-
on:view={() => {
|
|
15
|
-
dispatch('view', item)
|
|
16
|
-
}}
|
|
17
|
-
/>
|
|
10
|
+
<FeedItem {...item} hasNext={i < items.length - 1} {onView} />
|
|
18
11
|
{/each}
|
|
19
12
|
</div>
|
|
@@ -1,21 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
items?: FeedItemProps[] | undefined;
|
|
6
|
-
};
|
|
7
|
-
events: {
|
|
8
|
-
open: CustomEvent<any>;
|
|
9
|
-
copied: CustomEvent<any>;
|
|
10
|
-
view: CustomEvent<any>;
|
|
11
|
-
} & {
|
|
12
|
-
[evt: string]: CustomEvent<any>;
|
|
13
|
-
};
|
|
14
|
-
slots: {};
|
|
15
|
-
};
|
|
16
|
-
export type FeedViewerProps = typeof __propDef.props;
|
|
17
|
-
export type FeedViewerEvents = typeof __propDef.events;
|
|
18
|
-
export type FeedViewerSlots = typeof __propDef.slots;
|
|
19
|
-
export default class FeedViewer extends SvelteComponent<FeedViewerProps, FeedViewerEvents, FeedViewerSlots> {
|
|
20
|
-
}
|
|
21
|
-
export {};
|
|
1
|
+
import type { FeedViewerProps } from './types.js';
|
|
2
|
+
declare const FeedViewer: import("svelte").Component<FeedViewerProps, {}, "">;
|
|
3
|
+
type FeedViewer = ReturnType<typeof FeedViewer>;
|
|
4
|
+
export default FeedViewer;
|
|
@@ -1,8 +1,14 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { FormLayoutModalProps } from './types'
|
|
3
|
+
|
|
4
|
+
let { children, footer }: FormLayoutModalProps = $props()
|
|
5
|
+
</script>
|
|
6
|
+
|
|
1
7
|
<div class="flex flex-col max-w-lg w-128 py-8 px-6 gap-4">
|
|
2
|
-
|
|
3
|
-
{#if
|
|
8
|
+
{@render children?.()}
|
|
9
|
+
{#if footer}
|
|
4
10
|
<div class="mt-4 pt-4 flex items-center justify-end gap-x-6 border-t">
|
|
5
|
-
|
|
11
|
+
{@render footer?.()}
|
|
6
12
|
</div>
|
|
7
13
|
{/if}
|
|
8
14
|
</div>
|