@invopop/popui 0.1.13 → 0.1.15
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/BaseTable.svelte +6 -8
- package/dist/BaseTableActions.svelte +2 -2
- package/dist/BaseTableCellContent.svelte +2 -2
- package/dist/BaseTableHeaderContent.svelte +2 -2
- 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 +2 -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 +9 -9
- package/dist/DrawerContext.svelte +112 -10
- package/dist/DrawerContextItem.svelte +19 -29
- package/dist/DrawerContextSeparator.svelte +1 -1
- package/dist/DrawerContextWorkspace.svelte +7 -7
- package/dist/DropdownSelect.svelte +40 -14
- package/dist/EmptyState.svelte +40 -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/FeedItem.svelte +8 -8
- package/dist/FeedItemDetail.svelte +23 -5
- 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/Notification.svelte +55 -24
- package/dist/ProfileAvatar.svelte +41 -14
- package/dist/SeparatorHorizontal.svelte +2 -2
- package/dist/ShortcutWrapper.svelte +14 -5
- package/dist/StatusLabel.svelte +4 -5
- package/dist/StepIconList.svelte +7 -9
- package/dist/TagBeta.svelte +26 -14
- package/dist/TagStatus.svelte +33 -48
- 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 +183 -24
- package/dist/button/button.svelte.d.ts +48 -26
- package/dist/index.d.ts +2 -7
- package/dist/index.js +2 -12
- 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/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 +1 -1
- package/dist/tailwind.theme.css +969 -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
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
{sideOffset}
|
|
21
21
|
{side}
|
|
22
22
|
class={cn(
|
|
23
|
-
'bg-
|
|
23
|
+
'bg-background-default-negative border border-border-inverse z-50 rounded-md px-2 py-1 text-sm font-medium text-foreground-inverse leading-5 tracking-tight shadow-md',
|
|
24
24
|
className
|
|
25
25
|
)}
|
|
26
26
|
>
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
{#snippet child({ props })}
|
|
30
30
|
<div
|
|
31
31
|
class={cn(
|
|
32
|
-
'bg-
|
|
32
|
+
'bg-background-default-negative z-50 size-2.5 rotate-45 rounded-[2px]',
|
|
33
33
|
'data-[side=top]:translate-x-1/2 data-[side=top]:translate-y-[calc(-50%_+_2px)]',
|
|
34
34
|
'data-[side=bottom]:-translate-x-1/2 data-[side=bottom]:-translate-y-[calc(-50%_+_1px)]',
|
|
35
35
|
'data-[side=right]:translate-x-[calc(50%_+_2px)] data-[side=right]:translate-y-1/2',
|
package/dist/types.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { IconSource } from '@steeze-ui/svelte-icon';
|
|
|
3
3
|
import type { Snippet } from 'svelte';
|
|
4
4
|
export type IconTheme = 'default' | 'solid' | 'mini';
|
|
5
5
|
export type IconPosition = 'right' | 'left';
|
|
6
|
-
export type ButtonVariant = 'default' | 'primary' | 'secondary' | '
|
|
6
|
+
export type ButtonVariant = 'default' | 'primary' | 'secondary' | 'danger' | 'dark' | 'outline' | 'ghost';
|
|
7
7
|
export type StatusType = 'grey' | 'green' | 'yellow' | 'red' | 'orange' | 'blue' | 'purple' | 'olive' | 'teal' | 'crimson' | 'blueViolet' | 'steelBlue' | 'empty';
|
|
8
8
|
export type AnyProp = string | number | object | boolean;
|
|
9
9
|
export type SidebarIcon = {
|
|
@@ -12,11 +12,18 @@ export type SidebarIcon = {
|
|
|
12
12
|
title: string;
|
|
13
13
|
iconTheme: IconTheme;
|
|
14
14
|
};
|
|
15
|
-
export type Status = 'success' | 'warning' | 'error';
|
|
15
|
+
export type Status = 'success' | 'warning' | 'error' | 'info' | 'neutral';
|
|
16
16
|
export type SelectOption = {
|
|
17
17
|
label: string;
|
|
18
18
|
value: AnyProp;
|
|
19
19
|
};
|
|
20
|
+
export type DrawerGroup = {
|
|
21
|
+
label: string;
|
|
22
|
+
slug: string;
|
|
23
|
+
emptyIcon?: IconSource;
|
|
24
|
+
emptyTitle?: string;
|
|
25
|
+
emptyDescription?: string;
|
|
26
|
+
};
|
|
20
27
|
export type DrawerOption = SelectOption & {
|
|
21
28
|
separator?: boolean;
|
|
22
29
|
destructive?: boolean;
|
|
@@ -29,6 +36,7 @@ export type DrawerOption = SelectOption & {
|
|
|
29
36
|
sandbox?: boolean;
|
|
30
37
|
iconClass?: string;
|
|
31
38
|
disabled?: boolean;
|
|
39
|
+
groupBy?: string;
|
|
32
40
|
};
|
|
33
41
|
export type Company = {
|
|
34
42
|
id: string;
|
|
@@ -102,7 +110,6 @@ export type TabItem = {
|
|
|
102
110
|
check?: boolean;
|
|
103
111
|
warning?: boolean;
|
|
104
112
|
};
|
|
105
|
-
export type EmptyStateIcon = 'invoices' | 'contacts' | 'parties' | 'products' | 'deliveries' | 'orders' | 'payments' | 'pdf' | 'file' | 'no-results' | 'no-results';
|
|
106
113
|
export type DataListItem = {
|
|
107
114
|
label: string;
|
|
108
115
|
value: string;
|
|
@@ -153,8 +160,7 @@ export interface BaseButtonProps {
|
|
|
153
160
|
type?: 'button' | 'submit' | 'reset' | null;
|
|
154
161
|
variant?: ButtonVariant;
|
|
155
162
|
disabled?: boolean;
|
|
156
|
-
|
|
157
|
-
big?: boolean;
|
|
163
|
+
size?: 'sm' | 'md' | 'lg';
|
|
158
164
|
dangerIcon?: boolean;
|
|
159
165
|
shortcut?: boolean;
|
|
160
166
|
fullwidth?: boolean;
|
|
@@ -169,14 +175,13 @@ export interface BaseCardProps {
|
|
|
169
175
|
title?: string;
|
|
170
176
|
description?: string;
|
|
171
177
|
type?: 'default' | 'soon' | 'beta';
|
|
172
|
-
enabled?: boolean;
|
|
173
178
|
footer?: Snippet;
|
|
174
179
|
[key: string]: any;
|
|
175
180
|
onclick?: (event: MouseEvent) => void;
|
|
176
181
|
}
|
|
177
182
|
export interface BaseCounterProps {
|
|
178
|
-
|
|
179
|
-
|
|
183
|
+
value: number;
|
|
184
|
+
theme?: 'light' | 'navigation' | 'accent';
|
|
180
185
|
}
|
|
181
186
|
export interface BaseDropdownProps {
|
|
182
187
|
isOpen?: boolean;
|
|
@@ -270,18 +275,23 @@ export interface BaseTableRowProps {
|
|
|
270
275
|
action: AnyProp;
|
|
271
276
|
}) => void;
|
|
272
277
|
}
|
|
278
|
+
export interface BreadcrumbProps {
|
|
279
|
+
breadcrumb: Breadcrumb;
|
|
280
|
+
isLast: boolean;
|
|
281
|
+
oncopied?: (label: string) => void;
|
|
282
|
+
}
|
|
273
283
|
export interface BreadcrumbsProps {
|
|
274
284
|
breadcrumbs?: Breadcrumb[];
|
|
275
285
|
oncopied?: (label: string) => void;
|
|
276
286
|
}
|
|
277
287
|
export interface ButtonFileProps {
|
|
278
|
-
icon?: IconSource;
|
|
279
288
|
name?: string;
|
|
280
289
|
disabled?: boolean;
|
|
281
290
|
date?: string;
|
|
282
|
-
|
|
291
|
+
fileType?: 'pdf' | 'xml' | 'png';
|
|
283
292
|
onPreview?: () => void;
|
|
284
293
|
onDownload?: () => void;
|
|
294
|
+
class?: string;
|
|
285
295
|
[key: string]: any;
|
|
286
296
|
}
|
|
287
297
|
export interface ButtonUuidCopyProps {
|
|
@@ -299,6 +309,7 @@ export interface CardCheckboxProps {
|
|
|
299
309
|
description?: string;
|
|
300
310
|
accentText?: string;
|
|
301
311
|
checked?: boolean;
|
|
312
|
+
disabled?: boolean;
|
|
302
313
|
icon?: IconSource | undefined;
|
|
303
314
|
hideRadio?: boolean;
|
|
304
315
|
footer?: Snippet;
|
|
@@ -317,10 +328,6 @@ export interface CompanySelectorProps {
|
|
|
317
328
|
onAdd?: () => void;
|
|
318
329
|
onSelect?: (company: Company | null) => void;
|
|
319
330
|
}
|
|
320
|
-
export interface CounterWorkflowProps {
|
|
321
|
-
content: number | string;
|
|
322
|
-
variant?: 'default' | 'transparent';
|
|
323
|
-
}
|
|
324
331
|
export interface DataListItemProps {
|
|
325
332
|
label?: string;
|
|
326
333
|
value?: string;
|
|
@@ -346,12 +353,12 @@ export interface DrawerContextProps {
|
|
|
346
353
|
onclick?: (value: AnyProp) => void;
|
|
347
354
|
onselect?: (selected: DrawerOption[]) => void;
|
|
348
355
|
children?: Snippet;
|
|
356
|
+
groups?: DrawerGroup[];
|
|
349
357
|
}
|
|
350
358
|
export interface DrawerContextItemProps {
|
|
351
359
|
multiple?: boolean;
|
|
352
360
|
item: DrawerOption;
|
|
353
361
|
scrollIfSelected?: boolean;
|
|
354
|
-
workspace?: boolean;
|
|
355
362
|
onclick?: (value: AnyProp) => void;
|
|
356
363
|
onchange?: (item: DrawerOption) => void;
|
|
357
364
|
}
|
|
@@ -371,19 +378,14 @@ export interface DropdownSelectProps {
|
|
|
371
378
|
widthClass?: string;
|
|
372
379
|
onSelect?: (value: AnyProp) => void;
|
|
373
380
|
}
|
|
374
|
-
export interface
|
|
375
|
-
icon?:
|
|
381
|
+
export interface EmptyStateProps {
|
|
382
|
+
icon?: Snippet;
|
|
383
|
+
iconSource?: IconSource;
|
|
376
384
|
title?: string;
|
|
377
385
|
description?: string;
|
|
378
386
|
check?: boolean;
|
|
379
387
|
children?: Snippet;
|
|
380
388
|
}
|
|
381
|
-
export interface EmptyStateIllustrationProps {
|
|
382
|
-
icon?: EmptyStateIcon | undefined;
|
|
383
|
-
title?: string;
|
|
384
|
-
description?: string;
|
|
385
|
-
children?: Snippet;
|
|
386
|
-
}
|
|
387
389
|
export interface FeedEventsProps {
|
|
388
390
|
events?: FeedEvent[];
|
|
389
391
|
}
|
|
@@ -422,10 +424,6 @@ export interface FeedViewerProps {
|
|
|
422
424
|
items?: FeedItemProps[];
|
|
423
425
|
onView?: (slug: string) => void;
|
|
424
426
|
}
|
|
425
|
-
export interface FormLayoutModalProps {
|
|
426
|
-
children?: Snippet;
|
|
427
|
-
footer?: Snippet;
|
|
428
|
-
}
|
|
429
427
|
export interface GlobalSearchProps {
|
|
430
428
|
collapsed?: boolean;
|
|
431
429
|
onOpen?: () => void;
|
|
@@ -449,8 +447,10 @@ export interface InputLabelProps {
|
|
|
449
447
|
}
|
|
450
448
|
export interface InputRadioProps {
|
|
451
449
|
checked?: boolean;
|
|
450
|
+
disabled?: boolean;
|
|
452
451
|
id?: any;
|
|
453
452
|
name?: string;
|
|
453
|
+
label?: string;
|
|
454
454
|
onchange?: (checked: boolean) => void;
|
|
455
455
|
[key: string]: any;
|
|
456
456
|
}
|
|
@@ -511,6 +511,7 @@ export interface InputToggleProps {
|
|
|
511
511
|
checked?: boolean;
|
|
512
512
|
label?: string;
|
|
513
513
|
onchange?: (checked: boolean) => void;
|
|
514
|
+
[key: string]: any;
|
|
514
515
|
}
|
|
515
516
|
export interface MenuItemProps {
|
|
516
517
|
label?: string;
|
|
@@ -535,29 +536,19 @@ export interface MenuItemCollapsibleProps {
|
|
|
535
536
|
children?: Snippet;
|
|
536
537
|
}
|
|
537
538
|
export interface NotificationProps {
|
|
538
|
-
|
|
539
|
+
title?: string;
|
|
540
|
+
description?: string;
|
|
539
541
|
type?: Status;
|
|
540
542
|
children?: Snippet;
|
|
543
|
+
[key: string]: any;
|
|
541
544
|
}
|
|
542
545
|
export interface ProfileAvatarProps {
|
|
543
546
|
name?: string;
|
|
544
|
-
|
|
545
|
-
large?: boolean;
|
|
547
|
+
variant?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
546
548
|
dark?: boolean;
|
|
547
549
|
picture?: string;
|
|
548
550
|
country?: string;
|
|
549
|
-
|
|
550
|
-
export interface ProfileSelectorProps {
|
|
551
|
-
name?: string;
|
|
552
|
-
orgName?: string;
|
|
553
|
-
picture?: string;
|
|
554
|
-
collapsed?: boolean;
|
|
555
|
-
isOpen?: boolean;
|
|
556
|
-
onclick?: (event: MouseEvent) => void;
|
|
557
|
-
}
|
|
558
|
-
export interface SectionLayoutProps {
|
|
559
|
-
title?: string;
|
|
560
|
-
children?: Snippet;
|
|
551
|
+
icon?: IconSource;
|
|
561
552
|
}
|
|
562
553
|
export interface StatusLabelProps {
|
|
563
554
|
status: FeedItemStatus;
|
|
@@ -565,6 +556,7 @@ export interface StatusLabelProps {
|
|
|
565
556
|
}
|
|
566
557
|
export interface StepIconListProps {
|
|
567
558
|
icons?: StepIcon[];
|
|
559
|
+
[key: string]: any;
|
|
568
560
|
}
|
|
569
561
|
export interface TagSearchProps {
|
|
570
562
|
label?: string;
|
|
@@ -586,6 +578,8 @@ export interface TitleSectionProps {
|
|
|
586
578
|
children?: Snippet;
|
|
587
579
|
}
|
|
588
580
|
export interface ShortcutWrapperProps {
|
|
581
|
+
size?: 'sm' | 'md';
|
|
582
|
+
theme?: 'light' | 'navigation';
|
|
589
583
|
children?: Snippet;
|
|
590
584
|
}
|
|
591
585
|
export interface UuidCopyProps {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@invopop/popui",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.15",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vite dev",
|
|
7
7
|
"dev:clean": "npm run clean && vite dev",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"types": "./dist/types.d.ts",
|
|
32
32
|
"default": "./dist/types.d.ts"
|
|
33
33
|
},
|
|
34
|
-
"./
|
|
34
|
+
"./tailwind.theme.css": "./dist/tailwind.theme.css",
|
|
35
35
|
"./package.json": "./dist/package.json"
|
|
36
36
|
},
|
|
37
37
|
"files": [
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import clsx from 'clsx'
|
|
3
|
-
import type { CounterWorkflowProps } from './types'
|
|
4
|
-
|
|
5
|
-
let { content, variant = 'default' }: CounterWorkflowProps = $props()
|
|
6
|
-
|
|
7
|
-
let styles = $derived(
|
|
8
|
-
clsx({
|
|
9
|
-
'bg-white rounded-md': variant === 'default',
|
|
10
|
-
rounded: variant === 'transparent'
|
|
11
|
-
})
|
|
12
|
-
)
|
|
13
|
-
</script>
|
|
14
|
-
|
|
15
|
-
<div
|
|
16
|
-
class="{styles} border border-neutral-200 inline-flex items-center justify-center p-[3px] text-neutral-500 text-sm font-medium h-5 min-w-[20px] tracking-wide tabular-nums slashed-zero lining-nums"
|
|
17
|
-
>
|
|
18
|
-
{content}
|
|
19
|
-
</div>
|
|
@@ -1,52 +0,0 @@
|
|
|
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()
|
|
13
|
-
</script>
|
|
14
|
-
|
|
15
|
-
<div
|
|
16
|
-
class="flex flex-col text-center items-center justify-center h-full font-sans gap-1"
|
|
17
|
-
aria-label={title}
|
|
18
|
-
>
|
|
19
|
-
{#if icon}
|
|
20
|
-
<div class="relative h-[120px] w-[352px] max-w-sm">
|
|
21
|
-
<IconEmpty />
|
|
22
|
-
<div class="absolute left-[50%] translate-x-[-50%] top-[50%] translate-y-[-50%]">
|
|
23
|
-
<Icon src={icon} class="h-12 w-12 text-workspace-accent" />
|
|
24
|
-
{#if check}
|
|
25
|
-
<svg
|
|
26
|
-
width="26"
|
|
27
|
-
height="26"
|
|
28
|
-
viewBox="0 0 26 26"
|
|
29
|
-
fill="none"
|
|
30
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
31
|
-
class="absolute top-[-16px] right-[-16px]"
|
|
32
|
-
>
|
|
33
|
-
<path
|
|
34
|
-
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"
|
|
35
|
-
fill="#169958"
|
|
36
|
-
/>
|
|
37
|
-
<circle cx="13" cy="13" r="10" stroke="white" stroke-opacity="0.4" stroke-width="0.6" />
|
|
38
|
-
<path
|
|
39
|
-
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"
|
|
40
|
-
fill="white"
|
|
41
|
-
/>
|
|
42
|
-
</svg>
|
|
43
|
-
{/if}
|
|
44
|
-
</div>
|
|
45
|
-
</div>
|
|
46
|
-
{/if}
|
|
47
|
-
<div class="space-y-0.5">
|
|
48
|
-
<h4 class="font-medium text-base text-neutral-800 tracking-tight">{title}</h4>
|
|
49
|
-
<p class="max-w-xs text-base text-neutral-500 tracking-normal">{description}</p>
|
|
50
|
-
<p>{@render children?.()}</p>
|
|
51
|
-
</div>
|
|
52
|
-
</div>
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { FormLayoutModalProps } from './types'
|
|
3
|
-
|
|
4
|
-
let { children, footer }: FormLayoutModalProps = $props()
|
|
5
|
-
</script>
|
|
6
|
-
|
|
7
|
-
<div class="flex flex-col max-w-lg w-128 py-8 px-6 gap-4">
|
|
8
|
-
{@render children?.()}
|
|
9
|
-
{#if footer}
|
|
10
|
-
<div class="mt-4 pt-4 flex items-center justify-end gap-x-6 border-t">
|
|
11
|
-
{@render footer?.()}
|
|
12
|
-
</div>
|
|
13
|
-
{/if}
|
|
14
|
-
</div>
|
|
@@ -1,41 +0,0 @@
|
|
|
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
|
-
)
|
|
25
|
-
</script>
|
|
26
|
-
|
|
27
|
-
<button
|
|
28
|
-
class="cursor-pointer {styles} text-white border border-transparent text-base flex items-center justify-between space-x-1 rounded text-left"
|
|
29
|
-
{onclick}
|
|
30
|
-
>
|
|
31
|
-
<span class="flex items-center justify-between w-full space-x-2">
|
|
32
|
-
<ProfileAvatar {name} {picture} dark large />
|
|
33
|
-
{#if !collapsed}
|
|
34
|
-
<div class="flex-1 flex flex-col">
|
|
35
|
-
<span class="tracking-normal font-medium truncate max-w-[136px]">{name}</span>
|
|
36
|
-
<span class="text-sm text-white-50 truncate max-w-[136px]">{orgName}</span>
|
|
37
|
-
</div>
|
|
38
|
-
<Icon src={ChevronUp} class="w-4 h-4 text-white-40" />
|
|
39
|
-
{/if}
|
|
40
|
-
</span>
|
|
41
|
-
</button>
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import TitleSection from './TitleSection.svelte'
|
|
3
|
-
import type { SectionLayoutProps } from './types'
|
|
4
|
-
|
|
5
|
-
let { title = '', children }: SectionLayoutProps = $props()
|
|
6
|
-
</script>
|
|
7
|
-
|
|
8
|
-
<div class="py-5">
|
|
9
|
-
<TitleSection {title} />
|
|
10
|
-
<div class="mt-3">
|
|
11
|
-
{@render children?.()}
|
|
12
|
-
</div>
|
|
13
|
-
</div>
|
package/dist/tw.theme.d.ts
DELETED
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
namespace extend {
|
|
3
|
-
namespace fontSize {
|
|
4
|
-
let xl: string[];
|
|
5
|
-
let lg: string[];
|
|
6
|
-
let base: string[];
|
|
7
|
-
let sm: string[];
|
|
8
|
-
}
|
|
9
|
-
let spacing: {
|
|
10
|
-
1.25: string;
|
|
11
|
-
18: string;
|
|
12
|
-
128: string;
|
|
13
|
-
};
|
|
14
|
-
let borderRadius: {
|
|
15
|
-
xl: string;
|
|
16
|
-
'2xl': string;
|
|
17
|
-
};
|
|
18
|
-
namespace minWidth {
|
|
19
|
-
let dropdown: string;
|
|
20
|
-
}
|
|
21
|
-
let colors: {
|
|
22
|
-
workspace: {
|
|
23
|
-
accent: {
|
|
24
|
-
DEFAULT: string;
|
|
25
|
-
50: string;
|
|
26
|
-
100: string;
|
|
27
|
-
200: string;
|
|
28
|
-
500: string;
|
|
29
|
-
600: string;
|
|
30
|
-
700: string;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
positive: {
|
|
34
|
-
50: string;
|
|
35
|
-
100: string;
|
|
36
|
-
200: string;
|
|
37
|
-
300: string;
|
|
38
|
-
400: string;
|
|
39
|
-
500: string;
|
|
40
|
-
};
|
|
41
|
-
danger: {
|
|
42
|
-
50: string;
|
|
43
|
-
100: string;
|
|
44
|
-
200: string;
|
|
45
|
-
300: string;
|
|
46
|
-
400: string;
|
|
47
|
-
500: string;
|
|
48
|
-
600: string;
|
|
49
|
-
700: string;
|
|
50
|
-
};
|
|
51
|
-
neutral: {
|
|
52
|
-
50: string;
|
|
53
|
-
100: string;
|
|
54
|
-
200: string;
|
|
55
|
-
300: string;
|
|
56
|
-
400: string;
|
|
57
|
-
500: string;
|
|
58
|
-
600: string;
|
|
59
|
-
700: string;
|
|
60
|
-
800: string;
|
|
61
|
-
};
|
|
62
|
-
sherwood: {
|
|
63
|
-
50: string;
|
|
64
|
-
100: string;
|
|
65
|
-
200: string;
|
|
66
|
-
300: string;
|
|
67
|
-
400: string;
|
|
68
|
-
500: string;
|
|
69
|
-
600: string;
|
|
70
|
-
700: string;
|
|
71
|
-
};
|
|
72
|
-
warning: {
|
|
73
|
-
50: string;
|
|
74
|
-
100: string;
|
|
75
|
-
200: string;
|
|
76
|
-
300: string;
|
|
77
|
-
400: string;
|
|
78
|
-
500: string;
|
|
79
|
-
};
|
|
80
|
-
white: {
|
|
81
|
-
DEFAULT: string;
|
|
82
|
-
5: string;
|
|
83
|
-
10: string;
|
|
84
|
-
20: string;
|
|
85
|
-
30: string;
|
|
86
|
-
40: string;
|
|
87
|
-
50: string;
|
|
88
|
-
60: string;
|
|
89
|
-
70: string;
|
|
90
|
-
80: string;
|
|
91
|
-
90: string;
|
|
92
|
-
};
|
|
93
|
-
yellow: {
|
|
94
|
-
50: string;
|
|
95
|
-
100: string;
|
|
96
|
-
200: string;
|
|
97
|
-
300: string;
|
|
98
|
-
400: string;
|
|
99
|
-
500: string;
|
|
100
|
-
600: string;
|
|
101
|
-
};
|
|
102
|
-
blue: {
|
|
103
|
-
50: string;
|
|
104
|
-
100: string;
|
|
105
|
-
200: string;
|
|
106
|
-
300: string;
|
|
107
|
-
400: string;
|
|
108
|
-
500: string;
|
|
109
|
-
};
|
|
110
|
-
red: {
|
|
111
|
-
50: string;
|
|
112
|
-
100: string;
|
|
113
|
-
500: string;
|
|
114
|
-
};
|
|
115
|
-
purple: {
|
|
116
|
-
50: string;
|
|
117
|
-
100: string;
|
|
118
|
-
200: string;
|
|
119
|
-
300: string;
|
|
120
|
-
400: string;
|
|
121
|
-
500: string;
|
|
122
|
-
};
|
|
123
|
-
banner: {
|
|
124
|
-
sandbox: string;
|
|
125
|
-
warning: string;
|
|
126
|
-
danger: string;
|
|
127
|
-
};
|
|
128
|
-
'blue-violet': {
|
|
129
|
-
100: string;
|
|
130
|
-
200: string;
|
|
131
|
-
500: string;
|
|
132
|
-
};
|
|
133
|
-
crimson: {
|
|
134
|
-
100: string;
|
|
135
|
-
200: string;
|
|
136
|
-
500: string;
|
|
137
|
-
};
|
|
138
|
-
'steel-blue': {
|
|
139
|
-
100: string;
|
|
140
|
-
200: string;
|
|
141
|
-
500: string;
|
|
142
|
-
};
|
|
143
|
-
olive: {
|
|
144
|
-
100: string;
|
|
145
|
-
200: string;
|
|
146
|
-
500: string;
|
|
147
|
-
};
|
|
148
|
-
teal: {
|
|
149
|
-
100: string;
|
|
150
|
-
200: string;
|
|
151
|
-
500: string;
|
|
152
|
-
};
|
|
153
|
-
};
|
|
154
|
-
namespace boxShadow {
|
|
155
|
-
let active: string;
|
|
156
|
-
let warning: string;
|
|
157
|
-
}
|
|
158
|
-
namespace letterSpacing {
|
|
159
|
-
let tightest: string;
|
|
160
|
-
let tighter: string;
|
|
161
|
-
let tight: string;
|
|
162
|
-
let normal: string;
|
|
163
|
-
let wide: string;
|
|
164
|
-
}
|
|
165
|
-
namespace fontFamily {
|
|
166
|
-
let sans: string[];
|
|
167
|
-
let mono: string[];
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
export default _default;
|