@invopop/popui 0.0.91 → 0.0.93
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/BaseButton.svelte +1 -1
- package/dist/Notification.svelte +10 -4
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -0
- package/package.json +1 -1
package/dist/BaseButton.svelte
CHANGED
|
@@ -47,7 +47,7 @@ $:
|
|
|
47
47
|
{ "py-1.5": big && $$slots.default },
|
|
48
48
|
{ "py-1": !big && $$slots.default },
|
|
49
49
|
{ "text-white": ["primary", "danger", "dark", "warning"].includes(variant) },
|
|
50
|
-
{ "text-neutral-800": ["default", "secondary"].includes(variant) },
|
|
50
|
+
{ "text-neutral-800": ["default", "secondary", "outline"].includes(variant) },
|
|
51
51
|
{ "border border-white-10 hover:border-white-20 active:border-white-40": variant === "dark" },
|
|
52
52
|
{
|
|
53
53
|
"border border-neutral-200 hover:bg-neutral-100 active:border-neutral-300 active:bg-neutral-200": variant === "default"
|
package/dist/Notification.svelte
CHANGED
|
@@ -7,9 +7,15 @@ $:
|
|
|
7
7
|
icon = getIcon(type);
|
|
8
8
|
$:
|
|
9
9
|
styles = clsx(
|
|
10
|
-
{ "
|
|
11
|
-
{ "
|
|
12
|
-
{ "
|
|
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" }
|
|
13
19
|
);
|
|
14
20
|
function getIcon(type2) {
|
|
15
21
|
switch (type2) {
|
|
@@ -29,6 +35,6 @@ function getIcon(type2) {
|
|
|
29
35
|
{#if icon}
|
|
30
36
|
<Icon src={icon} class="h-4 w-4" />
|
|
31
37
|
{/if}
|
|
32
|
-
<span class="flex-1">{message}</span>
|
|
38
|
+
<span class="{textStyles} flex-1">{message}</span>
|
|
33
39
|
<slot />
|
|
34
40
|
</div>
|
package/dist/index.d.ts
CHANGED
|
@@ -40,6 +40,7 @@ import InputTextarea from './InputTextarea.svelte';
|
|
|
40
40
|
import InputToggle from './InputToggle.svelte';
|
|
41
41
|
import MenuItem from './MenuItem.svelte';
|
|
42
42
|
import MenuItemCollapsible from './MenuItemCollapsible.svelte';
|
|
43
|
+
import Notification from './Notification.svelte';
|
|
43
44
|
import ProfileAvatar from './ProfileAvatar.svelte';
|
|
44
45
|
import ProfileSelector from './ProfileSelector.svelte';
|
|
45
46
|
import SectionLayout from './SectionLayout.svelte';
|
|
@@ -72,4 +73,4 @@ import twTheme from './tw.theme.js';
|
|
|
72
73
|
import { resolveIcon } from './helpers.js';
|
|
73
74
|
import { getCountryName } from './helpers.js';
|
|
74
75
|
import { getStatusType } from './helpers.js';
|
|
75
|
-
export { AlertDialog, BaseButton, BaseCard, BaseCounter, BaseDropdown, BaseFlag, BaseTable, BaseTableActions, BaseTableHeaderContent, Breadcrumbs, ButtonFile, ButtonUuidCopy, CardCheckbox, CardRelation, ComboBox, CompanySelector, CounterWorkflow, DataListItem, DatePicker, DrawerContext, DrawerContextItem, DropdownSelect, EmptyStateIcon, EmptyStateIllustration, FeedEvents, FeedIconEvent, FeedIconStatus, FeedItem, FeedItemDetail, FeedViewer, GlobalSearch, InputCheckbox, InputError, InputLabel, InputRadio, InputSearch, InputSelect, InputText, InputTextarea, InputToggle, MenuItem, MenuItemCollapsible, 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 };
|
|
76
|
+
export { AlertDialog, BaseButton, BaseCard, BaseCounter, BaseDropdown, BaseFlag, BaseTable, BaseTableActions, BaseTableHeaderContent, Breadcrumbs, ButtonFile, ButtonUuidCopy, CardCheckbox, CardRelation, ComboBox, CompanySelector, CounterWorkflow, DataListItem, DatePicker, DrawerContext, DrawerContextItem, 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 };
|
package/dist/index.js
CHANGED
|
@@ -40,6 +40,7 @@ import InputTextarea from './InputTextarea.svelte'
|
|
|
40
40
|
import InputToggle from './InputToggle.svelte'
|
|
41
41
|
import MenuItem from './MenuItem.svelte'
|
|
42
42
|
import MenuItemCollapsible from './MenuItemCollapsible.svelte'
|
|
43
|
+
import Notification from './Notification.svelte'
|
|
43
44
|
import ProfileAvatar from './ProfileAvatar.svelte'
|
|
44
45
|
import ProfileSelector from './ProfileSelector.svelte'
|
|
45
46
|
import SectionLayout from './SectionLayout.svelte'
|
|
@@ -112,6 +113,7 @@ export {
|
|
|
112
113
|
InputToggle,
|
|
113
114
|
MenuItem,
|
|
114
115
|
MenuItemCollapsible,
|
|
116
|
+
Notification,
|
|
115
117
|
ProfileAvatar,
|
|
116
118
|
ProfileSelector,
|
|
117
119
|
SectionLayout,
|