@invopop/popui 0.1.14 → 0.1.16
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 +25 -103
- package/dist/BaseCard.svelte +35 -30
- package/dist/BaseCounter.svelte +11 -8
- package/dist/BaseDropdown.svelte +3 -3
- package/dist/BaseTable.svelte +8 -12
- package/dist/BaseTableActions.svelte +4 -6
- package/dist/BaseTableCellContent.svelte +4 -6
- package/dist/BaseTableCheckbox.svelte +8 -10
- package/dist/BaseTableHeaderContent.svelte +4 -4
- package/dist/BaseTableRow.svelte +12 -10
- package/dist/Breadcrumb.svelte +40 -0
- package/dist/Breadcrumb.svelte.d.ts +4 -0
- package/dist/Breadcrumbs.svelte +5 -30
- package/dist/ButtonFile.svelte +35 -30
- package/dist/ButtonUuidCopy.svelte +3 -2
- package/dist/CardCheckbox.svelte +25 -21
- package/dist/CardRelation.svelte +12 -16
- package/dist/CompanySelector.svelte +35 -7
- package/dist/DataListItem.svelte +14 -10
- package/dist/DatePicker.svelte +14 -12
- package/dist/DrawerContext.svelte +111 -8
- package/dist/DrawerContextItem.svelte +18 -30
- package/dist/DrawerContextSeparator.svelte +1 -1
- package/dist/DrawerContextWorkspace.svelte +7 -7
- package/dist/DropdownSelect.svelte +38 -16
- package/dist/EmptyState.svelte +42 -0
- package/dist/EmptyState.svelte.d.ts +4 -0
- package/dist/EmptyStateIllustration.svelte.d.ts +0 -1
- package/dist/FeedEvents.svelte +9 -5
- package/dist/FeedIconEvent.svelte +1 -1
- package/dist/FeedIconStatus.svelte +1 -1
- package/dist/FeedItem.svelte +8 -8
- package/dist/FeedItemDetail.svelte +15 -6
- package/dist/GlobalSearch.svelte +13 -12
- package/dist/InputCheckbox.svelte +2 -5
- package/dist/InputError.svelte +4 -9
- package/dist/InputLabel.svelte +3 -1
- package/dist/InputRadio.svelte +26 -11
- package/dist/InputSearch.svelte +8 -8
- package/dist/InputSelect.svelte +32 -31
- package/dist/InputText.svelte +32 -24
- package/dist/InputTextarea.svelte +25 -19
- package/dist/InputToggle.svelte +24 -18
- package/dist/MenuItem.svelte +9 -8
- package/dist/MenuItemCollapsible.svelte +4 -4
- package/dist/Notification.svelte +59 -24
- package/dist/ProfileAvatar.svelte +43 -14
- package/dist/SeparatorHorizontal.svelte +2 -2
- package/dist/ShortcutWrapper.svelte +14 -5
- package/dist/StatusLabel.svelte +4 -5
- package/dist/StepIconList.svelte +11 -9
- package/dist/TagBeta.svelte +26 -14
- package/dist/TagStatus.svelte +37 -49
- package/dist/TitleMain.svelte +1 -1
- package/dist/TitleSection.svelte +1 -1
- package/dist/UuidCopy.svelte +4 -4
- package/dist/alert-dialog/alert-dialog-action.svelte +5 -3
- package/dist/alert-dialog/alert-dialog-cancel.svelte +4 -2
- package/dist/alert-dialog/alert-dialog-content.svelte +1 -1
- package/dist/alert-dialog/alert-dialog-description.svelte +1 -1
- package/dist/alert-dialog/alert-dialog-footer.svelte +1 -1
- package/dist/alert-dialog/alert-dialog-header.svelte +1 -1
- package/dist/alert-dialog/alert-dialog-title.svelte +1 -1
- package/dist/button/button.svelte +198 -24
- package/dist/button/button.svelte.d.ts +48 -26
- package/dist/index.d.ts +5 -10
- package/dist/index.js +3 -13
- package/dist/range-calendar/range-calendar-cell.svelte +1 -1
- package/dist/range-calendar/range-calendar-day.svelte +10 -8
- package/dist/range-calendar/range-calendar-head-cell.svelte +1 -1
- package/dist/range-calendar/range-calendar-next-button.svelte +3 -3
- package/dist/range-calendar/range-calendar-prev-button.svelte +3 -3
- package/dist/range-calendar/range-calendar.svelte +1 -1
- package/dist/sonner/sonner.svelte +7 -9
- package/dist/svg/CheckBadge.svelte +18 -0
- package/dist/svg/CheckBadge.svelte.d.ts +26 -0
- package/dist/svg/IconEmpty.svelte +78 -106
- package/dist/table/table-body.svelte +1 -1
- package/dist/table/table-cell.svelte +1 -1
- package/dist/table/table-footer.svelte +1 -1
- package/dist/table/table-head.svelte +1 -1
- package/dist/table/table-header.svelte +1 -1
- package/dist/table/table-row.svelte +1 -1
- package/dist/tabs/tabs-list.svelte +8 -2
- package/dist/tabs/tabs-list.svelte.d.ts +4 -1
- package/dist/tabs/tabs-trigger.svelte +5 -3
- package/dist/tabs/tabs-trigger.svelte.d.ts +4 -1
- package/dist/tailwind.theme.css +981 -0
- package/dist/tooltip/tooltip-content.svelte +2 -2
- package/dist/types.d.ts +36 -42
- package/package.json +2 -2
- package/dist/CounterWorkflow.svelte +0 -19
- package/dist/CounterWorkflow.svelte.d.ts +0 -4
- package/dist/EmptyStateIcon.svelte +0 -52
- package/dist/EmptyStateIcon.svelte.d.ts +0 -4
- package/dist/FormLayoutModal.svelte +0 -14
- package/dist/FormLayoutModal.svelte.d.ts +0 -4
- package/dist/ProfileSelector.svelte +0 -41
- package/dist/ProfileSelector.svelte.d.ts +0 -4
- package/dist/SectionLayout.svelte +0 -13
- package/dist/SectionLayout.svelte.d.ts +0 -4
- package/dist/tw.theme.d.ts +0 -171
- package/dist/tw.theme.js +0 -188
package/dist/index.d.ts
CHANGED
|
@@ -13,15 +13,13 @@ import ButtonUuidCopy from './ButtonUuidCopy.svelte';
|
|
|
13
13
|
import CardCheckbox from './CardCheckbox.svelte';
|
|
14
14
|
import CardRelation from './CardRelation.svelte';
|
|
15
15
|
import CompanySelector from './CompanySelector.svelte';
|
|
16
|
-
import CounterWorkflow from './CounterWorkflow.svelte';
|
|
17
16
|
import DataListItem from './DataListItem.svelte';
|
|
18
17
|
import DatePicker from './DatePicker.svelte';
|
|
19
18
|
import DrawerContext from './DrawerContext.svelte';
|
|
20
19
|
import DrawerContextItem from './DrawerContextItem.svelte';
|
|
21
20
|
import DrawerContextSeparator from './DrawerContextSeparator.svelte';
|
|
22
21
|
import DropdownSelect from './DropdownSelect.svelte';
|
|
23
|
-
import
|
|
24
|
-
import EmptyStateIllustration from './EmptyStateIllustration.svelte';
|
|
22
|
+
import EmptyState from './EmptyState.svelte';
|
|
25
23
|
import FeedEvents from './FeedEvents.svelte';
|
|
26
24
|
import FeedIconEvent from './FeedIconEvent.svelte';
|
|
27
25
|
import FeedIconStatus from './FeedIconStatus.svelte';
|
|
@@ -42,9 +40,7 @@ import MenuItem from './MenuItem.svelte';
|
|
|
42
40
|
import MenuItemCollapsible from './MenuItemCollapsible.svelte';
|
|
43
41
|
import Notification from './Notification.svelte';
|
|
44
42
|
import ProfileAvatar from './ProfileAvatar.svelte';
|
|
45
|
-
import ProfileSelector from './ProfileSelector.svelte';
|
|
46
43
|
import ProgressBar from './ProgressBar.svelte';
|
|
47
|
-
import SectionLayout from './SectionLayout.svelte';
|
|
48
44
|
import SeparatorHorizontal from './SeparatorHorizontal.svelte';
|
|
49
45
|
import ShortcutWrapper from './ShortcutWrapper.svelte';
|
|
50
46
|
import StatusLabel from './StatusLabel.svelte';
|
|
@@ -71,8 +67,7 @@ import { Tooltip } from './tooltip';
|
|
|
71
67
|
import { TooltipContent } from './tooltip';
|
|
72
68
|
import { TooltipTrigger } from './tooltip';
|
|
73
69
|
import UuidCopy from './UuidCopy.svelte';
|
|
74
|
-
import
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
|
|
78
|
-
export { AlertDialog, BaseButton, BaseCard, BaseCounter, BaseDropdown, BaseFlag, BaseTable, BaseTableActions, BaseTableHeaderContent, Breadcrumbs, ButtonFile, ButtonUuidCopy, CardCheckbox, CardRelation, 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, Toaster, Tooltip, TooltipContent, TooltipTrigger, UuidCopy, twTheme, resolveIcon, getCountryName, getStatusType };
|
|
70
|
+
import { resolveIcon } from './helpers.ts';
|
|
71
|
+
import { getCountryName } from './helpers.ts';
|
|
72
|
+
import { getStatusType } from './helpers.ts';
|
|
73
|
+
export { AlertDialog, BaseButton, BaseCard, BaseCounter, BaseDropdown, BaseFlag, BaseTable, BaseTableActions, BaseTableHeaderContent, Breadcrumbs, ButtonFile, ButtonUuidCopy, CardCheckbox, CardRelation, CompanySelector, DataListItem, DatePicker, DrawerContext, DrawerContextItem, DrawerContextSeparator, DropdownSelect, EmptyState, FeedEvents, FeedIconEvent, FeedIconStatus, FeedItem, FeedItemDetail, FeedViewer, GlobalSearch, InputCheckbox, InputError, InputLabel, InputRadio, InputSearch, InputSelect, InputText, InputTextarea, InputToggle, MenuItem, MenuItemCollapsible, Notification, ProfileAvatar, ProgressBar, SeparatorHorizontal, ShortcutWrapper, StatusLabel, StepIconList, Table, TableBody, TableCaption, TableFooter, TableHeader, TableRow, TableHead, TableCell, Tabs, TabsContent, TabsList, TabsTrigger, TagBeta, TagSearch, TagStatus, TitleMain, TitleSection, Toaster, Tooltip, TooltipContent, TooltipTrigger, UuidCopy, resolveIcon, getCountryName, getStatusType };
|
package/dist/index.js
CHANGED
|
@@ -13,15 +13,13 @@ import ButtonUuidCopy from './ButtonUuidCopy.svelte'
|
|
|
13
13
|
import CardCheckbox from './CardCheckbox.svelte'
|
|
14
14
|
import CardRelation from './CardRelation.svelte'
|
|
15
15
|
import CompanySelector from './CompanySelector.svelte'
|
|
16
|
-
import CounterWorkflow from './CounterWorkflow.svelte'
|
|
17
16
|
import DataListItem from './DataListItem.svelte'
|
|
18
17
|
import DatePicker from './DatePicker.svelte'
|
|
19
18
|
import DrawerContext from './DrawerContext.svelte'
|
|
20
19
|
import DrawerContextItem from './DrawerContextItem.svelte'
|
|
21
20
|
import DrawerContextSeparator from './DrawerContextSeparator.svelte'
|
|
22
21
|
import DropdownSelect from './DropdownSelect.svelte'
|
|
23
|
-
import
|
|
24
|
-
import EmptyStateIllustration from './EmptyStateIllustration.svelte'
|
|
22
|
+
import EmptyState from './EmptyState.svelte'
|
|
25
23
|
import FeedEvents from './FeedEvents.svelte'
|
|
26
24
|
import FeedIconEvent from './FeedIconEvent.svelte'
|
|
27
25
|
import FeedIconStatus from './FeedIconStatus.svelte'
|
|
@@ -42,9 +40,7 @@ import MenuItem from './MenuItem.svelte'
|
|
|
42
40
|
import MenuItemCollapsible from './MenuItemCollapsible.svelte'
|
|
43
41
|
import Notification from './Notification.svelte'
|
|
44
42
|
import ProfileAvatar from './ProfileAvatar.svelte'
|
|
45
|
-
import ProfileSelector from './ProfileSelector.svelte'
|
|
46
43
|
import ProgressBar from './ProgressBar.svelte'
|
|
47
|
-
import SectionLayout from './SectionLayout.svelte'
|
|
48
44
|
import SeparatorHorizontal from './SeparatorHorizontal.svelte'
|
|
49
45
|
import ShortcutWrapper from './ShortcutWrapper.svelte'
|
|
50
46
|
import StatusLabel from './StatusLabel.svelte'
|
|
@@ -68,8 +64,7 @@ import TitleSection from './TitleSection.svelte'
|
|
|
68
64
|
import { Toaster } from './sonner'
|
|
69
65
|
import { Tooltip, TooltipContent, TooltipTrigger } from './tooltip'
|
|
70
66
|
import UuidCopy from './UuidCopy.svelte'
|
|
71
|
-
import
|
|
72
|
-
import { resolveIcon, getCountryName, getStatusType } from './helpers.js'
|
|
67
|
+
import { resolveIcon, getCountryName, getStatusType } from './helpers.ts'
|
|
73
68
|
|
|
74
69
|
export {
|
|
75
70
|
AlertDialog,
|
|
@@ -87,15 +82,13 @@ export {
|
|
|
87
82
|
CardCheckbox,
|
|
88
83
|
CardRelation,
|
|
89
84
|
CompanySelector,
|
|
90
|
-
CounterWorkflow,
|
|
91
85
|
DataListItem,
|
|
92
86
|
DatePicker,
|
|
93
87
|
DrawerContext,
|
|
94
88
|
DrawerContextItem,
|
|
95
89
|
DrawerContextSeparator,
|
|
96
90
|
DropdownSelect,
|
|
97
|
-
|
|
98
|
-
EmptyStateIllustration,
|
|
91
|
+
EmptyState,
|
|
99
92
|
FeedEvents,
|
|
100
93
|
FeedIconEvent,
|
|
101
94
|
FeedIconStatus,
|
|
@@ -116,9 +109,7 @@ export {
|
|
|
116
109
|
MenuItemCollapsible,
|
|
117
110
|
Notification,
|
|
118
111
|
ProfileAvatar,
|
|
119
|
-
ProfileSelector,
|
|
120
112
|
ProgressBar,
|
|
121
|
-
SectionLayout,
|
|
122
113
|
SeparatorHorizontal,
|
|
123
114
|
ShortcutWrapper,
|
|
124
115
|
StatusLabel,
|
|
@@ -145,7 +136,6 @@ export {
|
|
|
145
136
|
TooltipContent,
|
|
146
137
|
TooltipTrigger,
|
|
147
138
|
UuidCopy,
|
|
148
|
-
twTheme,
|
|
149
139
|
resolveIcon,
|
|
150
140
|
getCountryName,
|
|
151
141
|
getStatusType
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<RangeCalendarPrimitive.Cell
|
|
12
12
|
bind:ref
|
|
13
13
|
class={cn(
|
|
14
|
-
'size-(--cell-size) [&:has([data-range-middle])]:bg-
|
|
14
|
+
'size-(--cell-size) [&:has([data-range-middle]:not([data-outside-month]))]:bg-background-default-secondary [&:has([data-selected]:not([data-outside-month]))]:bg-background-default-secondary relative p-0 text-center text-sm focus-within:z-20 data-[range-middle]:rounded-r-md [&:first-child[data-selected]_[data-bits-day]]:rounded-l-md [&:has([data-range-end])]:rounded-r-md [&:has([data-range-middle])]:rounded-none first:[&:has([data-range-middle])]:rounded-l-md last:[&:has([data-range-middle])]:rounded-r-md [&:has([data-range-start])]:rounded-l-md [&:last-child[data-selected]_[data-bits-day]]:rounded-r-md',
|
|
15
15
|
className
|
|
16
16
|
)}
|
|
17
17
|
{...restProps}
|
|
@@ -13,23 +13,25 @@
|
|
|
13
13
|
bind:ref
|
|
14
14
|
class={cn(
|
|
15
15
|
buttonVariants({ variant: 'ghost' }),
|
|
16
|
-
'size-(--cell-size) flex select-none flex-col items-center justify-center gap-1 whitespace-nowrap p-0 font-
|
|
16
|
+
'size-(--cell-size) flex select-none flex-col items-center justify-center gap-1 whitespace-nowrap p-0 font-medium leading-none rounded-lg',
|
|
17
17
|
// today
|
|
18
|
-
'[&[data-today]:not([data-selected]):not([data-outside-month])]:border-b [&[data-today]:not([data-selected]):not([data-outside-month])]:border-
|
|
18
|
+
'[&[data-today]:not([data-selected]):not([data-outside-month])]:border-b [&[data-today]:not([data-selected]):not([data-outside-month])]:border-background-accent [&[data-today]:not([data-selected]):not([data-outside-month])]:rounded-none',
|
|
19
19
|
// range Start
|
|
20
|
-
'data-[range-start]:bg-
|
|
20
|
+
'data-[range-start]:bg-background-accent data-[range-start]:text-white data-[range-start]:font-semibold data-[range-start]:shadow-[0px_0px_0px_2px_rgba(22,153,88,0.12)]',
|
|
21
21
|
// range middle
|
|
22
|
-
'data-[range-middle]:rounded-none data-[range-middle]:bg-
|
|
22
|
+
'data-[range-middle]:rounded-none data-[range-middle]:bg-background-default-secondary',
|
|
23
23
|
// range End
|
|
24
|
-
'data-[range-end]:bg-
|
|
25
|
-
// Outside months
|
|
26
|
-
'[&[data-outside-month]]
|
|
24
|
+
'data-[range-end]:bg-background-accent data-[range-end]:text-white data-[range-end]:font-semibold data-[range-end]:shadow-[0px_0px_0px_2px_rgba(22,153,88,0.12)]',
|
|
25
|
+
// Outside months - must come after range styles to override
|
|
26
|
+
'[&[data-outside-month]]:!text-transparent [&[data-outside-month]]:!bg-transparent [&[data-outside-month]]:!shadow-none [&[data-outside-month]:not([data-selected])]:pointer-events-none',
|
|
27
27
|
// Disabled
|
|
28
|
-
'data-[disabled]:text-
|
|
28
|
+
'data-[disabled]:text-foreground-default-tertiary data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
|
|
29
29
|
// Unavailable
|
|
30
30
|
'data-[unavailable]:line-through',
|
|
31
31
|
// focus
|
|
32
32
|
'focus:border-ring focus:ring-ring/50 focus:relative',
|
|
33
|
+
// Default text color
|
|
34
|
+
'text-foreground-default-primary',
|
|
33
35
|
// inner spans
|
|
34
36
|
'[&>span]:text-xs [&>span]:opacity-70',
|
|
35
37
|
className
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<RangeCalendarPrimitive.HeadCell
|
|
12
12
|
bind:ref
|
|
13
13
|
class={cn(
|
|
14
|
-
'text-
|
|
14
|
+
'text-foreground-default-tertiary w-(--cell-size) h-(--cell-size) text-xs font-normal border-b border-border flex items-center justify-center',
|
|
15
15
|
className
|
|
16
16
|
)}
|
|
17
17
|
{...restProps}
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
</script>
|
|
17
17
|
|
|
18
18
|
{#snippet Fallback()}
|
|
19
|
-
<Icon src={ChevronRight} class="size-4" />
|
|
19
|
+
<Icon src={ChevronRight} class="size-4 shrink-0" />
|
|
20
20
|
{/snippet}
|
|
21
21
|
<RangeCalendarPrimitive.NextButton
|
|
22
22
|
bind:ref
|
|
23
23
|
class={cn(
|
|
24
|
-
buttonVariants({ variant, size: '
|
|
25
|
-
'select-none disabled:opacity-50 rtl:rotate-180',
|
|
24
|
+
buttonVariants({ variant, size: 'sm' }),
|
|
25
|
+
'size-6 group select-none disabled:opacity-50 rtl:rotate-180',
|
|
26
26
|
className
|
|
27
27
|
)}
|
|
28
28
|
children={children || Fallback}
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
</script>
|
|
17
17
|
|
|
18
18
|
{#snippet Fallback()}
|
|
19
|
-
<Icon src={ChevronLeft} class="size-4" />
|
|
19
|
+
<Icon src={ChevronLeft} class="size-4 shrink-0" />
|
|
20
20
|
{/snippet}
|
|
21
21
|
<RangeCalendarPrimitive.PrevButton
|
|
22
22
|
bind:ref
|
|
23
23
|
class={cn(
|
|
24
|
-
buttonVariants({ variant, size: '
|
|
25
|
-
'select-none disabled:opacity-50 rtl:rotate-180',
|
|
24
|
+
buttonVariants({ variant, size: 'sm' }),
|
|
25
|
+
'size-6 group select-none disabled:opacity-50 rtl:rotate-180',
|
|
26
26
|
className
|
|
27
27
|
)}
|
|
28
28
|
children={children || Fallback}
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
{weekdayFormat}
|
|
45
45
|
{disableDaysOutsideMonth}
|
|
46
46
|
class={cn(
|
|
47
|
-
'bg-white group/calendar px-3 pb-
|
|
47
|
+
'bg-white group/calendar px-3 pb-2 pt-1 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent',
|
|
48
48
|
className
|
|
49
49
|
)}
|
|
50
50
|
{locale}
|
|
@@ -14,28 +14,26 @@
|
|
|
14
14
|
unstyled: true,
|
|
15
15
|
classes: {
|
|
16
16
|
toast:
|
|
17
|
-
'group toast bg-
|
|
18
|
-
title: 'font-medium text-
|
|
19
|
-
description: 'font-normal text-
|
|
17
|
+
'group toast bg-background-default-negative border-0 rounded-lg text-foreground-inverse flex gap-2 items-start pl-3 pr-2 py-2 w-[336px] [&>[data-content]]:flex-1',
|
|
18
|
+
title: 'font-medium text-base text-foreground-inverse',
|
|
19
|
+
description: 'font-normal text-base text-foreground-inverse-secondary',
|
|
20
20
|
actionButton:
|
|
21
|
-
'bg-
|
|
22
|
-
cancelButton:
|
|
23
|
-
'bg-white/10 rounded px-2 py-1 text-xs font-medium text-white leading-4 hover:bg-white/15 transition-colors',
|
|
21
|
+
'bg-background-selected-inverse rounded px-2 py-1 text-xs font-medium text-foreground-inverse hover:bg-background-selected-inverse-hover transition-colors',
|
|
24
22
|
closeButton: 'hidden'
|
|
25
23
|
}
|
|
26
24
|
}}
|
|
27
25
|
{...restProps}
|
|
28
26
|
>
|
|
29
27
|
{#snippet successIcon()}
|
|
30
|
-
<Icon src={Success} class="
|
|
28
|
+
<Icon src={Success} class="size-4 mt-0.5" />
|
|
31
29
|
{/snippet}
|
|
32
30
|
|
|
33
31
|
{#snippet errorIcon()}
|
|
34
|
-
<Icon src={Failure} class="
|
|
32
|
+
<Icon src={Failure} class="size-4 mt-0.5" />
|
|
35
33
|
{/snippet}
|
|
36
34
|
|
|
37
35
|
{#snippet infoIcon()}
|
|
38
|
-
<Icon src={Info} class="
|
|
36
|
+
<Icon src={Info} class="size-4 mt-0.5 text-icon-inverse" />
|
|
39
37
|
{/snippet}
|
|
40
38
|
</Sonner>
|
|
41
39
|
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<svg
|
|
2
|
+
width="26"
|
|
3
|
+
height="26"
|
|
4
|
+
viewBox="0 0 26 26"
|
|
5
|
+
fill="none"
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
class="absolute top-[-16px] right-[-16px]"
|
|
8
|
+
>
|
|
9
|
+
<path
|
|
10
|
+
d="M13 1C6.3835 1 1 6.3835 1 13C1 19.6165 6.3835 25 13 25C19.6165 25 25 19.6165 25 13C25 6.3835 19.6165 1 13 1Z"
|
|
11
|
+
fill="#169958"
|
|
12
|
+
/>
|
|
13
|
+
<circle cx="13" cy="13" r="10" stroke="white" stroke-opacity="0.4" stroke-width="0.6" />
|
|
14
|
+
<path
|
|
15
|
+
d="M18.1078 9.82205C15.7021 11.6837 13.6627 14.2538 12.0477 17.4584C11.8808 17.7912 11.5495 17.9999 11.1884 17.9999C10.83 18.004 10.4922 17.7885 10.3253 17.4517C9.58119 15.9471 8.7491 14.7239 7.78243 13.7123C7.40457 13.3176 7.40586 12.6764 7.78632 12.2831C8.16418 11.8898 8.78016 11.8898 9.15932 12.2871C9.90083 13.063 10.5699 13.9413 11.182 14.9435C12.7853 12.1888 14.7199 9.92443 16.9509 8.19887C17.3805 7.8675 17.9888 7.9591 18.3084 8.40766C18.628 8.85488 18.5387 9.48934 18.1078 9.82205Z"
|
|
16
|
+
fill="white"
|
|
17
|
+
/>
|
|
18
|
+
</svg>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export default CheckBadge;
|
|
2
|
+
type CheckBadge = SvelteComponent<{
|
|
3
|
+
[x: string]: never;
|
|
4
|
+
}, {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
}, {}> & {
|
|
7
|
+
$$bindings?: string | undefined;
|
|
8
|
+
};
|
|
9
|
+
declare const CheckBadge: $$__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,143 +1,115 @@
|
|
|
1
|
-
<svg
|
|
2
|
-
fill="none"
|
|
3
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1
|
+
<svg
|
|
2
|
+
fill="none"
|
|
3
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
4
4
|
viewBox="0 0 352 120"
|
|
5
|
+
class="text-foreground-accent"
|
|
5
6
|
>
|
|
6
7
|
<g clip-path="url(#a99)">
|
|
7
|
-
<mask
|
|
8
|
-
id="b98"
|
|
9
|
-
style="mask-type:alpha"
|
|
10
|
-
maskUnits="userSpaceOnUse"
|
|
11
|
-
x="0"
|
|
12
|
-
y="-1"
|
|
13
|
-
width="353"
|
|
8
|
+
<mask
|
|
9
|
+
id="b98"
|
|
10
|
+
style="mask-type:alpha"
|
|
11
|
+
maskUnits="userSpaceOnUse"
|
|
12
|
+
x="0"
|
|
13
|
+
y="-1"
|
|
14
|
+
width="353"
|
|
14
15
|
height="121"
|
|
15
16
|
>
|
|
16
|
-
<path
|
|
17
|
-
d="M0-1h353v121H0V-1Zm78 47a6 6 0 0 1 6-6h30a6 6 0 0 1 6 6v30a6 6 0 0 1-6 6H84a6 6 0 0 1-6-6V46Zm167-6a6 6 0 0 0-6 6v30a6 6 0 0 0 6 6h30a6 6 0 0 0 6-6V46a6 6 0 0 0-6-6h-30Z"
|
|
18
|
-
fill-rule="evenodd"
|
|
17
|
+
<path
|
|
18
|
+
d="M0-1h353v121H0V-1Zm78 47a6 6 0 0 1 6-6h30a6 6 0 0 1 6 6v30a6 6 0 0 1-6 6H84a6 6 0 0 1-6-6V46Zm167-6a6 6 0 0 0-6 6v30a6 6 0 0 0 6 6h30a6 6 0 0 0 6-6V46a6 6 0 0 0-6-6h-30Z"
|
|
19
|
+
fill-rule="evenodd"
|
|
19
20
|
clip-rule="evenodd"
|
|
20
21
|
fill="#D9D9D9"
|
|
21
22
|
/>
|
|
22
23
|
</mask>
|
|
23
24
|
<g mask="url(#b98)">
|
|
24
|
-
<path
|
|
25
|
-
d="M35.6 12.4H.4m35.2 0v-48.6m0 48.6 17.5 24.4M.4 61l-35.1-48.6H.4M.4 61v48.5M.3 61h70.2M.3 109.5h-35l35 48.6h35m-35-48.6h35m-35 0 35 48.6m70.4 0 17.5 24.5v-48.8m-17.5 24.3H70.5m35.2 0-17.5-24.3m17.5 24.3v-48.6m17.5 24.3 17.6 24.3H176l-35.2-48.6m-17.6 24.3-17.5-24.3m35.1 0H176m-35.2 0-35-48.5m35 48.5h-35.1m70.3 0 35 48.6h35.2M176 109.5h70.3m-70.3 0L140.8 61h-35"
|
|
26
|
-
stroke="url(#c97)"
|
|
25
|
+
<path
|
|
26
|
+
d="M35.6 12.4H.4m35.2 0v-48.6m0 48.6 17.5 24.4M.4 61l-35.1-48.6H.4M.4 61v48.5M.3 61h70.2M.3 109.5h-35l35 48.6h35m-35-48.6h35m-35 0 35 48.6m70.4 0 17.5 24.5v-48.8m-17.5 24.3H70.5m35.2 0-17.5-24.3m17.5 24.3v-48.6m17.5 24.3 17.6 24.3H176l-35.2-48.6m-17.6 24.3-17.5-24.3m35.1 0H176m-35.2 0-35-48.5m35 48.5h-35.1m70.3 0 35 48.6h35.2M176 109.5h70.3m-70.3 0L140.8 61h-35"
|
|
27
|
+
stroke="url(#c97)"
|
|
27
28
|
stroke-width=".6"
|
|
28
29
|
/>
|
|
29
30
|
</g>
|
|
30
31
|
<g filter="url(#d96)">
|
|
31
|
-
<rect
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
y="28"
|
|
42
|
-
width="64"
|
|
43
|
-
height="64"
|
|
44
|
-
rx="12"
|
|
45
|
-
/>
|
|
46
|
-
<rect
|
|
47
|
-
x="144.4"
|
|
48
|
-
y="28.4"
|
|
49
|
-
width="63.2"
|
|
50
|
-
height="63.2"
|
|
51
|
-
rx="11.6"
|
|
52
|
-
stroke="var(--workspace-accent-color, #169958)"
|
|
53
|
-
stroke-opacity=".6"
|
|
32
|
+
<rect x="144" y="28" width="64" height="64" rx="12" fill="white" />
|
|
33
|
+
<rect x="144" y="28" width="64" height="64" rx="12" />
|
|
34
|
+
<rect
|
|
35
|
+
x="144.4"
|
|
36
|
+
y="28.4"
|
|
37
|
+
width="63.2"
|
|
38
|
+
height="63.2"
|
|
39
|
+
rx="11.6"
|
|
40
|
+
stroke="currentColor"
|
|
41
|
+
stroke-opacity=".6"
|
|
54
42
|
stroke-width="1"
|
|
55
43
|
/>
|
|
56
|
-
<rect
|
|
57
|
-
x="148.3"
|
|
58
|
-
y="32.3"
|
|
59
|
-
width="55.4"
|
|
60
|
-
height="55.4"
|
|
61
|
-
rx="7.7"
|
|
62
|
-
stroke="
|
|
63
|
-
stroke-opacity=".4"
|
|
44
|
+
<rect
|
|
45
|
+
x="148.3"
|
|
46
|
+
y="32.3"
|
|
47
|
+
width="55.4"
|
|
48
|
+
height="55.4"
|
|
49
|
+
rx="7.7"
|
|
50
|
+
stroke="currentColor"
|
|
51
|
+
stroke-opacity=".4"
|
|
64
52
|
stroke-width=".6"
|
|
65
53
|
/>
|
|
66
54
|
</g>
|
|
67
|
-
<rect
|
|
68
|
-
x="238.3"
|
|
69
|
-
y="39.3"
|
|
70
|
-
width="43.3"
|
|
71
|
-
height="43.3"
|
|
72
|
-
rx="7.7"
|
|
73
|
-
stroke="#030712"
|
|
74
|
-
stroke-opacity=".1"
|
|
75
|
-
stroke-width=".7"
|
|
55
|
+
<rect
|
|
56
|
+
x="238.3"
|
|
57
|
+
y="39.3"
|
|
58
|
+
width="43.3"
|
|
59
|
+
height="43.3"
|
|
60
|
+
rx="7.7"
|
|
61
|
+
stroke="#030712"
|
|
62
|
+
stroke-opacity=".1"
|
|
63
|
+
stroke-width=".7"
|
|
76
64
|
stroke-dasharray="2 3"
|
|
77
65
|
/>
|
|
78
|
-
<rect
|
|
79
|
-
x="80"
|
|
80
|
-
y="42"
|
|
81
|
-
width="38.1"
|
|
82
|
-
height="38.1"
|
|
83
|
-
rx="5.3"
|
|
84
|
-
stroke="#030712"
|
|
85
|
-
stroke-opacity=".1"
|
|
66
|
+
<rect
|
|
67
|
+
x="80"
|
|
68
|
+
y="42"
|
|
69
|
+
width="38.1"
|
|
70
|
+
height="38.1"
|
|
71
|
+
rx="5.3"
|
|
72
|
+
stroke="#030712"
|
|
73
|
+
stroke-opacity=".1"
|
|
86
74
|
stroke-width=".4"
|
|
87
75
|
/>
|
|
88
76
|
</g>
|
|
89
77
|
<defs>
|
|
90
|
-
<radialGradient
|
|
91
|
-
id="c97"
|
|
92
|
-
cx="0"
|
|
93
|
-
cy="0"
|
|
94
|
-
r="1"
|
|
95
|
-
gradientUnits="userSpaceOnUse"
|
|
78
|
+
<radialGradient
|
|
79
|
+
id="c97"
|
|
80
|
+
cx="0"
|
|
81
|
+
cy="0"
|
|
82
|
+
r="1"
|
|
83
|
+
gradientUnits="userSpaceOnUse"
|
|
96
84
|
gradientTransform="matrix(.06967 120.59998 -345.06394 .19934 176 62)"
|
|
97
85
|
>
|
|
98
|
-
<stop
|
|
99
|
-
|
|
100
|
-
stop-opacity=".6"
|
|
101
|
-
/>
|
|
102
|
-
<stop
|
|
103
|
-
offset=".5"
|
|
104
|
-
stop-color="#D1D5DB"
|
|
105
|
-
stop-opacity="0"
|
|
106
|
-
/>
|
|
86
|
+
<stop stop-color="#D1D5DB" stop-opacity=".6" />
|
|
87
|
+
<stop offset=".5" stop-color="#D1D5DB" stop-opacity="0" />
|
|
107
88
|
</radialGradient>
|
|
108
89
|
<clipPath id="a99">
|
|
109
|
-
<path
|
|
110
|
-
fill="#fff"
|
|
111
|
-
d="M0 0h352v120H0z"
|
|
112
|
-
/>
|
|
90
|
+
<path fill="#fff" d="M0 0h352v120H0z" />
|
|
113
91
|
</clipPath>
|
|
114
|
-
<filter
|
|
115
|
-
id="d96"
|
|
116
|
-
x="124"
|
|
117
|
-
y="8"
|
|
118
|
-
width="104"
|
|
119
|
-
height="106"
|
|
120
|
-
filterUnits="userSpaceOnUse"
|
|
92
|
+
<filter
|
|
93
|
+
id="d96"
|
|
94
|
+
x="124"
|
|
95
|
+
y="8"
|
|
96
|
+
width="104"
|
|
97
|
+
height="106"
|
|
98
|
+
filterUnits="userSpaceOnUse"
|
|
121
99
|
color-interpolation-filters="sRGB"
|
|
122
100
|
>
|
|
123
|
-
<feFlood
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
<feColorMatrix
|
|
128
|
-
in="SourceAlpha"
|
|
129
|
-
values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
101
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix" />
|
|
102
|
+
<feColorMatrix
|
|
103
|
+
in="SourceAlpha"
|
|
104
|
+
values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
130
105
|
result="hardAlpha"
|
|
131
106
|
/>
|
|
132
|
-
<feOffset dy="2"/>
|
|
133
|
-
<feGaussianBlur stdDeviation="10"/>
|
|
134
|
-
<feComposite
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
/>
|
|
138
|
-
<feColorMatrix values="0 0 0 0 0.0392157 0 0 0 0 0.0392157 0 0 0 0 0.0392157 0 0 0 0.04 0"/>
|
|
139
|
-
<feBlend in2="BackgroundImageFix" result="effect1_dropShadow_280_210"/>
|
|
140
|
-
<feBlend in="SourceGraphic" in2="effect1_dropShadow_280_210" result="shape"/>
|
|
107
|
+
<feOffset dy="2" />
|
|
108
|
+
<feGaussianBlur stdDeviation="10" />
|
|
109
|
+
<feComposite in2="hardAlpha" operator="out" />
|
|
110
|
+
<feColorMatrix values="0 0 0 0 0.0392157 0 0 0 0 0.0392157 0 0 0 0 0.0392157 0 0 0 0.04 0" />
|
|
111
|
+
<feBlend in2="BackgroundImageFix" result="effect1_dropShadow_280_210" />
|
|
112
|
+
<feBlend in="SourceGraphic" in2="effect1_dropShadow_280_210" result="shape" />
|
|
141
113
|
</filter>
|
|
142
114
|
</defs>
|
|
143
115
|
</svg>
|
|
@@ -8,6 +8,6 @@
|
|
|
8
8
|
}: WithElementRef<HTMLAttributes<HTMLTableSectionElement>> = $props()
|
|
9
9
|
</script>
|
|
10
10
|
|
|
11
|
-
<tbody bind:this={ref} data-slot="table-body" class={cn('[&_tr:hover]:bg-neutral-
|
|
11
|
+
<tbody bind:this={ref} data-slot="table-body" class={cn('[&_tr:hover]:bg-neutral-5', className)}>
|
|
12
12
|
{@render children?.()}
|
|
13
13
|
</tbody>
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
bind:this={ref}
|
|
16
16
|
data-slot="table-cell"
|
|
17
17
|
class={cn(
|
|
18
|
-
'py-3 pl-3 pr-3 align-middle text-
|
|
18
|
+
'py-3 pl-3 pr-3 align-middle text-foreground font-normal text-base [&:has([role=menu])]:pl-1 relative z-1',
|
|
19
19
|
className
|
|
20
20
|
)}
|
|
21
21
|
onclick={bubble('click')}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
bind:this={ref}
|
|
13
13
|
data-slot="table-head"
|
|
14
14
|
class={cn(
|
|
15
|
-
'text-
|
|
15
|
+
'text-foreground-default-secondary text-base font-normal text-left align-middle [&:has([role=checkbox])]:pr-0 px-3',
|
|
16
16
|
className
|
|
17
17
|
)}
|
|
18
18
|
>
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<thead
|
|
16
16
|
bind:this={ref}
|
|
17
17
|
data-slot="table-header"
|
|
18
|
-
class={cn('[&_tr]:border-b [&_tr]:border-
|
|
18
|
+
class={cn('[&_tr]:border-b [&_tr]:border-border bg-white', className)}
|
|
19
19
|
onclick={bubble('click')}
|
|
20
20
|
onkeydown={bubble('keydown')}
|
|
21
21
|
>
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
bind:this={ref}
|
|
19
19
|
data-slot="table-row"
|
|
20
20
|
class={cn(
|
|
21
|
-
'data-[state=selected]:bg-neutral-
|
|
21
|
+
'data-[state=selected]:bg-neutral-5 data-[state=checked]:bg-workspace-accent-50 transition-colors border-b border-border h-10',
|
|
22
22
|
className
|
|
23
23
|
)}
|
|
24
24
|
{oncontextmenu}
|
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { Tabs as TabsPrimitive } from 'bits-ui'
|
|
3
3
|
import { cn } from '../utils.js'
|
|
4
|
-
let {
|
|
4
|
+
let {
|
|
5
|
+
ref = $bindable(null),
|
|
6
|
+
class: className,
|
|
7
|
+
children,
|
|
8
|
+
variant
|
|
9
|
+
}: TabsPrimitive.ListProps & { variant?: 'md' | 'lg' } = $props()
|
|
5
10
|
</script>
|
|
6
11
|
|
|
7
12
|
<TabsPrimitive.List
|
|
8
13
|
bind:ref
|
|
9
14
|
data-slot="tabs-list"
|
|
10
15
|
class={cn(
|
|
11
|
-
'bg-
|
|
16
|
+
'bg-background-default-tertiary text-base text-foreground inline-flex items-center justify-center p-0.5 w-full',
|
|
17
|
+
variant === 'lg' ? 'rounded-lg h-8' : 'rounded-md h-7',
|
|
12
18
|
className
|
|
13
19
|
)}
|
|
14
20
|
>
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { Tabs as TabsPrimitive } from 'bits-ui';
|
|
2
|
-
|
|
2
|
+
type $$ComponentProps = TabsPrimitive.ListProps & {
|
|
3
|
+
variant?: 'md' | 'lg';
|
|
4
|
+
};
|
|
5
|
+
declare const TabsList: import("svelte").Component<$$ComponentProps, {}, "ref">;
|
|
3
6
|
type TabsList = ReturnType<typeof TabsList>;
|
|
4
7
|
export default TabsList;
|
|
@@ -5,8 +5,9 @@
|
|
|
5
5
|
ref = $bindable(null),
|
|
6
6
|
class: className,
|
|
7
7
|
children,
|
|
8
|
-
value
|
|
9
|
-
|
|
8
|
+
value,
|
|
9
|
+
variant
|
|
10
|
+
}: TabsPrimitive.TriggerProps & { variant?: 'md' | 'lg' } = $props()
|
|
10
11
|
</script>
|
|
11
12
|
|
|
12
13
|
<TabsPrimitive.Trigger
|
|
@@ -14,7 +15,8 @@
|
|
|
14
15
|
{value}
|
|
15
16
|
data-slot="tabs-trigger"
|
|
16
17
|
class={cn(
|
|
17
|
-
'data-[state=active]:bg-white inline-flex items-center justify-center whitespace-nowrap
|
|
18
|
+
'data-[state=active]:bg-white inline-flex items-center justify-center whitespace-nowrap px-3 py-0.5 text-base font-medium transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm w-full cursor-pointer h-full',
|
|
19
|
+
variant === 'lg' ? 'rounded-md' : 'rounded',
|
|
18
20
|
className
|
|
19
21
|
)}
|
|
20
22
|
>
|