@invopop/popui 0.0.102 → 0.0.104
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/DrawerContext.svelte +2 -8
- package/dist/DrawerContext.svelte.d.ts +3 -2
- package/dist/DrawerContextItem.svelte +5 -5
- package/dist/MenuItemCollapsible.svelte +1 -1
- package/dist/ProgressBar.svelte +6 -0
- package/dist/ProgressBar.svelte.d.ts +16 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -0
- package/dist/tw.theme.d.ts +9 -2
- package/dist/tw.theme.js +5 -0
- package/package.json +1 -1
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
<script>import DrawerContextItem from "./DrawerContextItem.svelte";
|
|
2
|
-
import InputSearch from "./InputSearch.svelte";
|
|
3
2
|
import { createEventDispatcher } from "svelte";
|
|
4
3
|
import DrawerContextSeparator from "./DrawerContextSeparator.svelte";
|
|
5
4
|
const dispatch = createEventDispatcher();
|
|
6
5
|
export let items = [];
|
|
7
6
|
export let multiple = false;
|
|
8
|
-
export let searchable = false;
|
|
9
7
|
export let widthClass = "w-60";
|
|
10
8
|
$:
|
|
11
9
|
selectedItems = items.filter((i) => i.selected);
|
|
@@ -22,13 +20,9 @@ function updateItem(event) {
|
|
|
22
20
|
</script>
|
|
23
21
|
|
|
24
22
|
<div
|
|
25
|
-
class="{widthClass} border border-neutral-200 py-1 rounded-
|
|
23
|
+
class="{widthClass} border border-neutral-200 py-1 rounded-2xl shadow-lg space-y-0.5 bg-white max-h-80 overflow-y-auto"
|
|
26
24
|
>
|
|
27
|
-
|
|
28
|
-
<div class="px-2 mt-2 mb-1">
|
|
29
|
-
<InputSearch placeholder="Search" />
|
|
30
|
-
</div>
|
|
31
|
-
{/if}
|
|
25
|
+
<slot />
|
|
32
26
|
<ul class="space-y-0.5 max-h-80 overflow-y-auto">
|
|
33
27
|
{#each items as item}
|
|
34
28
|
{#if item.separator}
|
|
@@ -4,7 +4,6 @@ declare const __propDef: {
|
|
|
4
4
|
props: {
|
|
5
5
|
items?: DrawerOption[] | undefined;
|
|
6
6
|
multiple?: boolean | undefined;
|
|
7
|
-
searchable?: boolean | undefined;
|
|
8
7
|
widthClass?: string | undefined;
|
|
9
8
|
};
|
|
10
9
|
events: {
|
|
@@ -13,7 +12,9 @@ declare const __propDef: {
|
|
|
13
12
|
} & {
|
|
14
13
|
[evt: string]: CustomEvent<any>;
|
|
15
14
|
};
|
|
16
|
-
slots: {
|
|
15
|
+
slots: {
|
|
16
|
+
default: {};
|
|
17
|
+
};
|
|
17
18
|
};
|
|
18
19
|
export type DrawerContextProps = typeof __propDef.props;
|
|
19
20
|
export type DrawerContextEvents = typeof __propDef.events;
|
|
@@ -77,9 +77,9 @@ onMount(() => {
|
|
|
77
77
|
{#if item.country}
|
|
78
78
|
<span class="flex space-x-1 items-center">
|
|
79
79
|
<BaseFlag country={item.country} width={10} />
|
|
80
|
-
<span class="text-sm text-neutral-500 tracking-normal"
|
|
81
|
-
|
|
82
|
-
>
|
|
80
|
+
<span class="text-sm text-neutral-500 tracking-normal">
|
|
81
|
+
{getCountryName(item.country)}
|
|
82
|
+
</span>
|
|
83
83
|
</span>
|
|
84
84
|
{/if}
|
|
85
85
|
</div>
|
|
@@ -91,9 +91,9 @@ onMount(() => {
|
|
|
91
91
|
}}
|
|
92
92
|
/>
|
|
93
93
|
{:else if item.selected}
|
|
94
|
-
<Icon src={Tick} class="w-5 h-5 text-workspace-accent
|
|
94
|
+
<Icon src={Tick} class="w-5 h-5 text-workspace-accent" />
|
|
95
95
|
{:else if item.rightIcon}
|
|
96
|
-
<Icon src={item.rightIcon} class="w-5 h-5 text-neutral-
|
|
96
|
+
<Icon src={item.rightIcon} class="w-5 h-5 text-neutral-400" />
|
|
97
97
|
{/if}
|
|
98
98
|
</div>
|
|
99
99
|
</button>
|
|
@@ -24,7 +24,7 @@ $:
|
|
|
24
24
|
<slot />
|
|
25
25
|
{#if !collapsed}
|
|
26
26
|
<div>
|
|
27
|
-
<div class="whitespace-nowrap max-w-[
|
|
27
|
+
<div class="whitespace-nowrap max-w-[118px] truncate tracking-tight">{title}</div>
|
|
28
28
|
{#if subtitle}
|
|
29
29
|
<div class="text-sm font-medium text-yellow-600">{subtitle}</div>
|
|
30
30
|
{/if}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
percentage?: number | undefined;
|
|
5
|
+
};
|
|
6
|
+
events: {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
};
|
|
9
|
+
slots: {};
|
|
10
|
+
};
|
|
11
|
+
export type ProgressBarProps = typeof __propDef.props;
|
|
12
|
+
export type ProgressBarEvents = typeof __propDef.events;
|
|
13
|
+
export type ProgressBarSlots = typeof __propDef.slots;
|
|
14
|
+
export default class ProgressBar extends SvelteComponent<ProgressBarProps, ProgressBarEvents, ProgressBarSlots> {
|
|
15
|
+
}
|
|
16
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ import MenuItemCollapsible from './MenuItemCollapsible.svelte';
|
|
|
44
44
|
import Notification from './Notification.svelte';
|
|
45
45
|
import ProfileAvatar from './ProfileAvatar.svelte';
|
|
46
46
|
import ProfileSelector from './ProfileSelector.svelte';
|
|
47
|
+
import ProgressBar from './ProgressBar.svelte';
|
|
47
48
|
import SectionLayout from './SectionLayout.svelte';
|
|
48
49
|
import SeparatorHorizontal from './SeparatorHorizontal.svelte';
|
|
49
50
|
import ShortcutWrapper from './ShortcutWrapper.svelte';
|
|
@@ -74,4 +75,4 @@ import twTheme from './tw.theme.js';
|
|
|
74
75
|
import { resolveIcon } from './helpers.js';
|
|
75
76
|
import { getCountryName } from './helpers.js';
|
|
76
77
|
import { getStatusType } from './helpers.js';
|
|
77
|
-
export { AlertDialog, BaseButton, BaseCard, BaseCounter, BaseDropdown, BaseFlag, BaseTable, BaseTableActions, BaseTableHeaderContent, Breadcrumbs, ButtonFile, ButtonUuidCopy, CardCheckbox, CardRelation, ComboBox, CompanySelector, CounterWorkflow, DataListItem, DatePicker, DrawerContext, DrawerContextItem, DrawerContextSeparator, DropdownSelect, EmptyStateIcon, EmptyStateIllustration, FeedEvents, FeedIconEvent, FeedIconStatus, FeedItem, FeedItemDetail, FeedViewer, GlobalSearch, InputCheckbox, InputError, InputLabel, InputRadio, InputSearch, InputSelect, InputText, InputTextarea, InputToggle, MenuItem, MenuItemCollapsible, Notification, ProfileAvatar, ProfileSelector, SectionLayout, SeparatorHorizontal, ShortcutWrapper, StatusLabel, StepIconList, Table, TableBody, TableCaption, TableFooter, TableHeader, TableRow, TableHead, TableCell, Tabs, TabsContent, TabsList, TabsTrigger, TagBeta, TagSearch, TagStatus, TitleMain, TitleSection, Tooltip, TooltipContent, TooltipTrigger, UuidCopy, twTheme, resolveIcon, getCountryName, getStatusType };
|
|
78
|
+
export { AlertDialog, BaseButton, BaseCard, BaseCounter, BaseDropdown, BaseFlag, BaseTable, BaseTableActions, BaseTableHeaderContent, Breadcrumbs, ButtonFile, ButtonUuidCopy, CardCheckbox, CardRelation, ComboBox, CompanySelector, CounterWorkflow, DataListItem, DatePicker, DrawerContext, DrawerContextItem, DrawerContextSeparator, DropdownSelect, EmptyStateIcon, EmptyStateIllustration, FeedEvents, FeedIconEvent, FeedIconStatus, FeedItem, FeedItemDetail, FeedViewer, GlobalSearch, InputCheckbox, InputError, InputLabel, InputRadio, InputSearch, InputSelect, InputText, InputTextarea, InputToggle, MenuItem, MenuItemCollapsible, Notification, ProfileAvatar, ProfileSelector, ProgressBar, SectionLayout, SeparatorHorizontal, ShortcutWrapper, StatusLabel, StepIconList, Table, TableBody, TableCaption, TableFooter, TableHeader, TableRow, TableHead, TableCell, Tabs, TabsContent, TabsList, TabsTrigger, TagBeta, TagSearch, TagStatus, TitleMain, TitleSection, Tooltip, TooltipContent, TooltipTrigger, UuidCopy, twTheme, resolveIcon, getCountryName, getStatusType };
|
package/dist/index.js
CHANGED
|
@@ -44,6 +44,7 @@ import MenuItemCollapsible from './MenuItemCollapsible.svelte'
|
|
|
44
44
|
import Notification from './Notification.svelte'
|
|
45
45
|
import ProfileAvatar from './ProfileAvatar.svelte'
|
|
46
46
|
import ProfileSelector from './ProfileSelector.svelte'
|
|
47
|
+
import ProgressBar from './ProgressBar.svelte'
|
|
47
48
|
import SectionLayout from './SectionLayout.svelte'
|
|
48
49
|
import SeparatorHorizontal from './SeparatorHorizontal.svelte'
|
|
49
50
|
import ShortcutWrapper from './ShortcutWrapper.svelte'
|
|
@@ -118,6 +119,7 @@ export {
|
|
|
118
119
|
Notification,
|
|
119
120
|
ProfileAvatar,
|
|
120
121
|
ProfileSelector,
|
|
122
|
+
ProgressBar,
|
|
121
123
|
SectionLayout,
|
|
122
124
|
SeparatorHorizontal,
|
|
123
125
|
ShortcutWrapper,
|
package/dist/tw.theme.d.ts
CHANGED
|
@@ -120,11 +120,18 @@ declare namespace _default {
|
|
|
120
120
|
400: string;
|
|
121
121
|
500: string;
|
|
122
122
|
};
|
|
123
|
+
namespace banner {
|
|
124
|
+
export let sandbox: string;
|
|
125
|
+
let warning_1: string;
|
|
126
|
+
export { warning_1 as warning };
|
|
127
|
+
let danger_1: string;
|
|
128
|
+
export { danger_1 as danger };
|
|
129
|
+
}
|
|
123
130
|
}
|
|
124
131
|
namespace boxShadow {
|
|
125
132
|
export let active: string;
|
|
126
|
-
let
|
|
127
|
-
export {
|
|
133
|
+
let warning_2: string;
|
|
134
|
+
export { warning_2 as warning };
|
|
128
135
|
}
|
|
129
136
|
namespace letterSpacing {
|
|
130
137
|
let tightest: string;
|
package/dist/tw.theme.js
CHANGED