@invopop/popui 0.0.108 → 0.1.2
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 -25
- 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 +69 -56
- 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 -32
- 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 +32 -41
- 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
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { RangeCalendar as RangeCalendarPrimitive } from 'bits-ui'
|
|
3
|
+
import { cn, type WithoutChildrenOrChild } from '../utils.js'
|
|
4
|
+
import { Icon } from '@steeze-ui/svelte-icon'
|
|
5
|
+
import { ChevronDown } from '@invopop/ui-icons'
|
|
6
|
+
let {
|
|
7
|
+
ref = $bindable(null),
|
|
8
|
+
class: className,
|
|
9
|
+
value,
|
|
10
|
+
...restProps
|
|
11
|
+
}: WithoutChildrenOrChild<RangeCalendarPrimitive.YearSelectProps> = $props()
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<span
|
|
15
|
+
class={cn(
|
|
16
|
+
'has-focus:border-ring border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] relative flex rounded-md border',
|
|
17
|
+
className
|
|
18
|
+
)}
|
|
19
|
+
>
|
|
20
|
+
<RangeCalendarPrimitive.YearSelect bind:ref class="absolute inset-0 opacity-0" {...restProps}>
|
|
21
|
+
{#snippet child({ props, yearItems, selectedYearItem })}
|
|
22
|
+
<select {...props} {value}>
|
|
23
|
+
{#each yearItems as yearItem (yearItem.value)}
|
|
24
|
+
<option
|
|
25
|
+
value={yearItem.value}
|
|
26
|
+
selected={value !== undefined
|
|
27
|
+
? yearItem.value === value
|
|
28
|
+
: yearItem.value === selectedYearItem.value}
|
|
29
|
+
>
|
|
30
|
+
{yearItem.label}
|
|
31
|
+
</option>
|
|
32
|
+
{/each}
|
|
33
|
+
</select>
|
|
34
|
+
<span
|
|
35
|
+
class="[&>svg]:text-muted-foreground flex h-8 select-none items-center gap-1 rounded-md pl-2 pr-1 text-sm font-medium [&>svg]:size-3.5"
|
|
36
|
+
aria-hidden="true"
|
|
37
|
+
>
|
|
38
|
+
{yearItems.find((item) => item.value === value)?.label || selectedYearItem.label}
|
|
39
|
+
<Icon src={ChevronDown} class="size-4" />
|
|
40
|
+
</span>
|
|
41
|
+
{/snippet}
|
|
42
|
+
</RangeCalendarPrimitive.YearSelect>
|
|
43
|
+
</span>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { RangeCalendar as RangeCalendarPrimitive } from 'bits-ui';
|
|
2
|
+
declare const RangeCalendarYearSelect: import("svelte").Component<Omit<Omit<RangeCalendarPrimitive.YearSelectProps, "child">, "children">, {}, "ref">;
|
|
3
|
+
type RangeCalendarYearSelect = ReturnType<typeof RangeCalendarYearSelect>;
|
|
4
|
+
export default RangeCalendarYearSelect;
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { RangeCalendar as RangeCalendarPrimitive } from 'bits-ui'
|
|
3
|
+
import * as RangeCalendar from './index.js'
|
|
4
|
+
import { cn, type WithoutChildrenOrChild } from '../utils.js'
|
|
5
|
+
import type { ButtonVariant } from '../button/index'
|
|
6
|
+
import type { Snippet } from 'svelte'
|
|
7
|
+
import { isEqualMonth, type DateValue } from '@internationalized/date'
|
|
8
|
+
let {
|
|
9
|
+
ref = $bindable(null),
|
|
10
|
+
value = $bindable(),
|
|
11
|
+
placeholder = $bindable(),
|
|
12
|
+
weekdayFormat = 'short',
|
|
13
|
+
class: className,
|
|
14
|
+
buttonVariant = 'outline',
|
|
15
|
+
captionLayout = 'label',
|
|
16
|
+
locale = 'en-US',
|
|
17
|
+
months: monthsProp,
|
|
18
|
+
years,
|
|
19
|
+
monthFormat: monthFormatProp,
|
|
20
|
+
yearFormat = 'numeric',
|
|
21
|
+
day,
|
|
22
|
+
disableDaysOutsideMonth = false,
|
|
23
|
+
...restProps
|
|
24
|
+
}: WithoutChildrenOrChild<RangeCalendarPrimitive.RootProps> & {
|
|
25
|
+
buttonVariant?: ButtonVariant
|
|
26
|
+
captionLayout?: 'dropdown' | 'dropdown-months' | 'dropdown-years' | 'label'
|
|
27
|
+
months?: RangeCalendarPrimitive.MonthSelectProps['months']
|
|
28
|
+
years?: RangeCalendarPrimitive.YearSelectProps['years']
|
|
29
|
+
monthFormat?: RangeCalendarPrimitive.MonthSelectProps['monthFormat']
|
|
30
|
+
yearFormat?: RangeCalendarPrimitive.YearSelectProps['yearFormat']
|
|
31
|
+
day?: Snippet<[{ day: DateValue; outsideMonth: boolean }]>
|
|
32
|
+
} = $props()
|
|
33
|
+
const monthFormat = $derived.by(() => {
|
|
34
|
+
if (monthFormatProp) return monthFormatProp
|
|
35
|
+
if (captionLayout.startsWith('dropdown')) return 'short'
|
|
36
|
+
return 'long'
|
|
37
|
+
})
|
|
38
|
+
</script>
|
|
39
|
+
|
|
40
|
+
<RangeCalendarPrimitive.Root
|
|
41
|
+
bind:ref
|
|
42
|
+
bind:value
|
|
43
|
+
bind:placeholder
|
|
44
|
+
{weekdayFormat}
|
|
45
|
+
{disableDaysOutsideMonth}
|
|
46
|
+
class={cn(
|
|
47
|
+
'bg-white group/calendar px-3 pb-3 pt-2 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent',
|
|
48
|
+
className
|
|
49
|
+
)}
|
|
50
|
+
{locale}
|
|
51
|
+
{monthFormat}
|
|
52
|
+
{yearFormat}
|
|
53
|
+
{...restProps}
|
|
54
|
+
>
|
|
55
|
+
{#snippet children({ months, weekdays })}
|
|
56
|
+
<RangeCalendar.Months>
|
|
57
|
+
<RangeCalendar.Nav>
|
|
58
|
+
<RangeCalendar.PrevButton variant={buttonVariant} />
|
|
59
|
+
<RangeCalendar.NextButton variant={buttonVariant} />
|
|
60
|
+
</RangeCalendar.Nav>
|
|
61
|
+
{#each months as month, monthIndex (month)}
|
|
62
|
+
<RangeCalendar.Month>
|
|
63
|
+
<RangeCalendar.Header>
|
|
64
|
+
<RangeCalendar.Caption
|
|
65
|
+
{captionLayout}
|
|
66
|
+
months={monthsProp}
|
|
67
|
+
{monthFormat}
|
|
68
|
+
{years}
|
|
69
|
+
{yearFormat}
|
|
70
|
+
month={month.value}
|
|
71
|
+
bind:placeholder
|
|
72
|
+
{locale}
|
|
73
|
+
{monthIndex}
|
|
74
|
+
/>
|
|
75
|
+
</RangeCalendar.Header>
|
|
76
|
+
<RangeCalendar.Grid>
|
|
77
|
+
<RangeCalendar.GridHead>
|
|
78
|
+
<RangeCalendar.GridRow class="select-none">
|
|
79
|
+
{#each weekdays as weekday (weekday)}
|
|
80
|
+
<RangeCalendar.HeadCell>
|
|
81
|
+
{weekday.slice(0, 2)}
|
|
82
|
+
</RangeCalendar.HeadCell>
|
|
83
|
+
{/each}
|
|
84
|
+
</RangeCalendar.GridRow>
|
|
85
|
+
</RangeCalendar.GridHead>
|
|
86
|
+
<RangeCalendar.GridBody>
|
|
87
|
+
{#each month.weeks as weekDates (weekDates)}
|
|
88
|
+
<RangeCalendar.GridRow class="mt-2 w-full">
|
|
89
|
+
{#each weekDates as date (date)}
|
|
90
|
+
<RangeCalendar.Cell {date} month={month.value}>
|
|
91
|
+
{#if day}
|
|
92
|
+
{@render day({
|
|
93
|
+
day: date,
|
|
94
|
+
outsideMonth: !isEqualMonth(date, month.value)
|
|
95
|
+
})}
|
|
96
|
+
{:else}
|
|
97
|
+
<RangeCalendar.Day />
|
|
98
|
+
{/if}
|
|
99
|
+
</RangeCalendar.Cell>
|
|
100
|
+
{/each}
|
|
101
|
+
</RangeCalendar.GridRow>
|
|
102
|
+
{/each}
|
|
103
|
+
</RangeCalendar.GridBody>
|
|
104
|
+
</RangeCalendar.Grid>
|
|
105
|
+
</RangeCalendar.Month>
|
|
106
|
+
{/each}
|
|
107
|
+
</RangeCalendar.Months>
|
|
108
|
+
{/snippet}
|
|
109
|
+
</RangeCalendarPrimitive.Root>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { RangeCalendar as RangeCalendarPrimitive } from 'bits-ui';
|
|
2
|
+
import * as RangeCalendar from './index.js';
|
|
3
|
+
import { type WithoutChildrenOrChild } from '../utils.js';
|
|
4
|
+
import type { ButtonVariant } from '../button/index';
|
|
5
|
+
import type { Snippet } from 'svelte';
|
|
6
|
+
import { type DateValue } from '@internationalized/date';
|
|
7
|
+
type $$ComponentProps = WithoutChildrenOrChild<RangeCalendarPrimitive.RootProps> & {
|
|
8
|
+
buttonVariant?: ButtonVariant;
|
|
9
|
+
captionLayout?: 'dropdown' | 'dropdown-months' | 'dropdown-years' | 'label';
|
|
10
|
+
months?: RangeCalendarPrimitive.MonthSelectProps['months'];
|
|
11
|
+
years?: RangeCalendarPrimitive.YearSelectProps['years'];
|
|
12
|
+
monthFormat?: RangeCalendarPrimitive.MonthSelectProps['monthFormat'];
|
|
13
|
+
yearFormat?: RangeCalendarPrimitive.YearSelectProps['yearFormat'];
|
|
14
|
+
day?: Snippet<[{
|
|
15
|
+
day: DateValue;
|
|
16
|
+
outsideMonth: boolean;
|
|
17
|
+
}]>;
|
|
18
|
+
};
|
|
19
|
+
declare const RangeCalendar: import("svelte").Component<$$ComponentProps, {}, "value" | "placeholder" | "ref">;
|
|
20
|
+
type RangeCalendar = ReturnType<typeof RangeCalendar>;
|
|
21
|
+
export default RangeCalendar;
|
|
@@ -1,23 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
/** @typedef {typeof __propDef.slots} BgPatternSlots */
|
|
4
|
-
export default class BgPattern extends SvelteComponent<{
|
|
1
|
+
export default BgPattern;
|
|
2
|
+
type BgPattern = SvelteComponent<{
|
|
5
3
|
[x: string]: never;
|
|
6
4
|
}, {
|
|
7
5
|
[evt: string]: CustomEvent<any>;
|
|
8
|
-
}, {}> {
|
|
9
|
-
|
|
10
|
-
export type BgPatternProps = typeof __propDef.props;
|
|
11
|
-
export type BgPatternEvents = typeof __propDef.events;
|
|
12
|
-
export type BgPatternSlots = typeof __propDef.slots;
|
|
13
|
-
import { SvelteComponent } from "svelte";
|
|
14
|
-
declare const __propDef: {
|
|
15
|
-
props: {
|
|
16
|
-
[x: string]: never;
|
|
17
|
-
};
|
|
18
|
-
events: {
|
|
19
|
-
[evt: string]: CustomEvent<any>;
|
|
20
|
-
};
|
|
21
|
-
slots: {};
|
|
6
|
+
}, {}> & {
|
|
7
|
+
$$bindings?: string | undefined;
|
|
22
8
|
};
|
|
23
|
-
|
|
9
|
+
declare const BgPattern: $$__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,16 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
props: {
|
|
4
|
-
classes?: string | undefined;
|
|
5
|
-
};
|
|
6
|
-
events: {
|
|
7
|
-
[evt: string]: CustomEvent<any>;
|
|
8
|
-
};
|
|
9
|
-
slots: {};
|
|
10
|
-
};
|
|
11
|
-
export type IconContactProps = typeof __propDef.props;
|
|
12
|
-
export type IconContactEvents = typeof __propDef.events;
|
|
13
|
-
export type IconContactSlots = typeof __propDef.slots;
|
|
14
|
-
export default class IconContact extends SvelteComponent<IconContactProps, IconContactEvents, IconContactSlots> {
|
|
1
|
+
interface Props {
|
|
2
|
+
classes?: string;
|
|
15
3
|
}
|
|
16
|
-
|
|
4
|
+
declare const IconContact: import("svelte").Component<Props, {}, "">;
|
|
5
|
+
type IconContact = ReturnType<typeof IconContact>;
|
|
6
|
+
export default IconContact;
|
|
@@ -1,23 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
/** @typedef {typeof __propDef.slots} IconEmptySlots */
|
|
4
|
-
export default class IconEmpty extends SvelteComponent<{
|
|
1
|
+
export default IconEmpty;
|
|
2
|
+
type IconEmpty = SvelteComponent<{
|
|
5
3
|
[x: string]: never;
|
|
6
4
|
}, {
|
|
7
5
|
[evt: string]: CustomEvent<any>;
|
|
8
|
-
}, {}> {
|
|
9
|
-
|
|
10
|
-
export type IconEmptyProps = typeof __propDef.props;
|
|
11
|
-
export type IconEmptyEvents = typeof __propDef.events;
|
|
12
|
-
export type IconEmptySlots = typeof __propDef.slots;
|
|
13
|
-
import { SvelteComponent } from "svelte";
|
|
14
|
-
declare const __propDef: {
|
|
15
|
-
props: {
|
|
16
|
-
[x: string]: never;
|
|
17
|
-
};
|
|
18
|
-
events: {
|
|
19
|
-
[evt: string]: CustomEvent<any>;
|
|
20
|
-
};
|
|
21
|
-
slots: {};
|
|
6
|
+
}, {}> & {
|
|
7
|
+
$$bindings?: string | undefined;
|
|
22
8
|
};
|
|
23
|
-
|
|
9
|
+
declare const IconEmpty: $$__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
|
+
}
|
package/dist/svg/IconFile.svelte
CHANGED
|
@@ -1,16 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
props: {
|
|
4
|
-
classes?: string | undefined;
|
|
5
|
-
};
|
|
6
|
-
events: {
|
|
7
|
-
[evt: string]: CustomEvent<any>;
|
|
8
|
-
};
|
|
9
|
-
slots: {};
|
|
10
|
-
};
|
|
11
|
-
export type IconFileProps = typeof __propDef.props;
|
|
12
|
-
export type IconFileEvents = typeof __propDef.events;
|
|
13
|
-
export type IconFileSlots = typeof __propDef.slots;
|
|
14
|
-
export default class IconFile extends SvelteComponent<IconFileProps, IconFileEvents, IconFileSlots> {
|
|
1
|
+
interface Props {
|
|
2
|
+
classes?: string;
|
|
15
3
|
}
|
|
16
|
-
|
|
4
|
+
declare const IconFile: import("svelte").Component<Props, {}, "">;
|
|
5
|
+
type IconFile = ReturnType<typeof IconFile>;
|
|
6
|
+
export default IconFile;
|
|
@@ -1,16 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
props: {
|
|
4
|
-
classes?: string | undefined;
|
|
5
|
-
};
|
|
6
|
-
events: {
|
|
7
|
-
[evt: string]: CustomEvent<any>;
|
|
8
|
-
};
|
|
9
|
-
slots: {};
|
|
10
|
-
};
|
|
11
|
-
export type IconInvoiceProps = typeof __propDef.props;
|
|
12
|
-
export type IconInvoiceEvents = typeof __propDef.events;
|
|
13
|
-
export type IconInvoiceSlots = typeof __propDef.slots;
|
|
14
|
-
export default class IconInvoice extends SvelteComponent<IconInvoiceProps, IconInvoiceEvents, IconInvoiceSlots> {
|
|
1
|
+
interface Props {
|
|
2
|
+
classes?: string;
|
|
15
3
|
}
|
|
16
|
-
|
|
4
|
+
declare const IconInvoice: import("svelte").Component<Props, {}, "">;
|
|
5
|
+
type IconInvoice = ReturnType<typeof IconInvoice>;
|
|
6
|
+
export default IconInvoice;
|
|
@@ -1,16 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
props: {
|
|
4
|
-
classes?: string | undefined;
|
|
5
|
-
};
|
|
6
|
-
events: {
|
|
7
|
-
[evt: string]: CustomEvent<any>;
|
|
8
|
-
};
|
|
9
|
-
slots: {};
|
|
10
|
-
};
|
|
11
|
-
export type IconNoResultsProps = typeof __propDef.props;
|
|
12
|
-
export type IconNoResultsEvents = typeof __propDef.events;
|
|
13
|
-
export type IconNoResultsSlots = typeof __propDef.slots;
|
|
14
|
-
export default class IconNoResults extends SvelteComponent<IconNoResultsProps, IconNoResultsEvents, IconNoResultsSlots> {
|
|
1
|
+
interface Props {
|
|
2
|
+
classes?: string;
|
|
15
3
|
}
|
|
16
|
-
|
|
4
|
+
declare const IconNoResults: import("svelte").Component<Props, {}, "">;
|
|
5
|
+
type IconNoResults = ReturnType<typeof IconNoResults>;
|
|
6
|
+
export default IconNoResults;
|
package/dist/svg/IconPdf.svelte
CHANGED
|
@@ -1,16 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
props: {
|
|
4
|
-
classes?: string | undefined;
|
|
5
|
-
};
|
|
6
|
-
events: {
|
|
7
|
-
[evt: string]: CustomEvent<any>;
|
|
8
|
-
};
|
|
9
|
-
slots: {};
|
|
10
|
-
};
|
|
11
|
-
export type IconPdfProps = typeof __propDef.props;
|
|
12
|
-
export type IconPdfEvents = typeof __propDef.events;
|
|
13
|
-
export type IconPdfSlots = typeof __propDef.slots;
|
|
14
|
-
export default class IconPdf extends SvelteComponent<IconPdfProps, IconPdfEvents, IconPdfSlots> {
|
|
1
|
+
interface Props {
|
|
2
|
+
classes?: string;
|
|
15
3
|
}
|
|
16
|
-
|
|
4
|
+
declare const IconPdf: import("svelte").Component<Props, {}, "">;
|
|
5
|
+
type IconPdf = ReturnType<typeof IconPdf>;
|
|
6
|
+
export default IconPdf;
|
|
@@ -1,16 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
props: {
|
|
4
|
-
classes?: string | undefined;
|
|
5
|
-
};
|
|
6
|
-
events: {
|
|
7
|
-
[evt: string]: CustomEvent<any>;
|
|
8
|
-
};
|
|
9
|
-
slots: {};
|
|
10
|
-
};
|
|
11
|
-
export type IconProductProps = typeof __propDef.props;
|
|
12
|
-
export type IconProductEvents = typeof __propDef.events;
|
|
13
|
-
export type IconProductSlots = typeof __propDef.slots;
|
|
14
|
-
export default class IconProduct extends SvelteComponent<IconProductProps, IconProductEvents, IconProductSlots> {
|
|
1
|
+
interface Props {
|
|
2
|
+
classes?: string;
|
|
15
3
|
}
|
|
16
|
-
|
|
4
|
+
declare const IconProduct: import("svelte").Component<Props, {}, "">;
|
|
5
|
+
type IconProduct = ReturnType<typeof IconProduct>;
|
|
6
|
+
export default IconProduct;
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
<script
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { cn, type WithElementRef } from '../utils.js'
|
|
3
|
+
import type { HTMLAttributes } from 'svelte/elements'
|
|
4
|
+
let {
|
|
5
|
+
ref = $bindable(null),
|
|
6
|
+
class: className,
|
|
7
|
+
children
|
|
8
|
+
}: WithElementRef<HTMLAttributes<HTMLTableSectionElement>> = $props()
|
|
4
9
|
</script>
|
|
5
10
|
|
|
6
|
-
<tbody class={cn('[&_tr:hover]:bg-neutral-50', className)}
|
|
7
|
-
|
|
11
|
+
<tbody bind:this={ref} data-slot="table-body" class={cn('[&_tr:hover]:bg-neutral-50', className)}>
|
|
12
|
+
{@render children?.()}
|
|
8
13
|
</tbody>
|
|
@@ -1,17 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type WithElementRef } from '../utils.js';
|
|
2
2
|
import type { HTMLAttributes } from 'svelte/elements';
|
|
3
|
-
declare const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
[evt: string]: CustomEvent<any>;
|
|
7
|
-
};
|
|
8
|
-
slots: {
|
|
9
|
-
default: {};
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export type TableBodyProps = typeof __propDef.props;
|
|
13
|
-
export type TableBodyEvents = typeof __propDef.events;
|
|
14
|
-
export type TableBodySlots = typeof __propDef.slots;
|
|
15
|
-
export default class TableBody extends SvelteComponent<TableBodyProps, TableBodyEvents, TableBodySlots> {
|
|
16
|
-
}
|
|
17
|
-
export {};
|
|
3
|
+
declare const TableBody: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLTableSectionElement>>, {}, "ref">;
|
|
4
|
+
type TableBody = ReturnType<typeof TableBody>;
|
|
5
|
+
export default TableBody;
|
|
@@ -1,8 +1,17 @@
|
|
|
1
|
-
<script
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { cn, type WithElementRef } from '../utils.js'
|
|
3
|
+
import type { HTMLAttributes } from 'svelte/elements'
|
|
4
|
+
let {
|
|
5
|
+
ref = $bindable(null),
|
|
6
|
+
class: className,
|
|
7
|
+
children
|
|
8
|
+
}: WithElementRef<HTMLAttributes<HTMLElement>> = $props()
|
|
4
9
|
</script>
|
|
5
10
|
|
|
6
|
-
<caption
|
|
7
|
-
|
|
11
|
+
<caption
|
|
12
|
+
bind:this={ref}
|
|
13
|
+
data-slot="table-caption"
|
|
14
|
+
class={cn('text-muted-foreground mt-4 text-sm', className)}
|
|
15
|
+
>
|
|
16
|
+
{@render children?.()}
|
|
8
17
|
</caption>
|
|
@@ -1,17 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type WithElementRef } from '../utils.js';
|
|
2
2
|
import type { HTMLAttributes } from 'svelte/elements';
|
|
3
|
-
declare const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
[evt: string]: CustomEvent<any>;
|
|
7
|
-
};
|
|
8
|
-
slots: {
|
|
9
|
-
default: {};
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export type TableCaptionProps = typeof __propDef.props;
|
|
13
|
-
export type TableCaptionEvents = typeof __propDef.events;
|
|
14
|
-
export type TableCaptionSlots = typeof __propDef.slots;
|
|
15
|
-
export default class TableCaption extends SvelteComponent<TableCaptionProps, TableCaptionEvents, TableCaptionSlots> {
|
|
16
|
-
}
|
|
17
|
-
export {};
|
|
3
|
+
declare const TableCaption: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLElement>>, {}, "ref">;
|
|
4
|
+
type TableCaption = ReturnType<typeof TableCaption>;
|
|
5
|
+
export default TableCaption;
|
|
@@ -1,16 +1,25 @@
|
|
|
1
|
-
<script
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { createBubbler } from 'svelte/legacy'
|
|
3
|
+
import { cn, type WithElementRef } from '../utils.js'
|
|
4
|
+
import type { HTMLTdAttributes } from 'svelte/elements'
|
|
5
|
+
|
|
6
|
+
const bubble = createBubbler()
|
|
7
|
+
let {
|
|
8
|
+
ref = $bindable(null),
|
|
9
|
+
class: className,
|
|
10
|
+
children
|
|
11
|
+
}: WithElementRef<HTMLTdAttributes> = $props()
|
|
4
12
|
</script>
|
|
5
13
|
|
|
6
14
|
<td
|
|
15
|
+
bind:this={ref}
|
|
16
|
+
data-slot="table-cell"
|
|
7
17
|
class={cn(
|
|
8
18
|
'py-3 pl-3 pr-3 align-middle text-neutral-500 font-normal text-base [&:has([role=checkbox])]:pr-2 [&:has([role=menu])]:pl-1 relative',
|
|
9
19
|
className
|
|
10
20
|
)}
|
|
11
|
-
{
|
|
12
|
-
|
|
13
|
-
on:keydown
|
|
21
|
+
onclick={bubble('click')}
|
|
22
|
+
onkeydown={bubble('keydown')}
|
|
14
23
|
>
|
|
15
|
-
|
|
24
|
+
{@render children?.()}
|
|
16
25
|
</td>
|
|
@@ -1,20 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type WithElementRef } from '../utils.js';
|
|
2
2
|
import type { HTMLTdAttributes } from 'svelte/elements';
|
|
3
|
-
declare const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
click: MouseEvent;
|
|
7
|
-
keydown: KeyboardEvent;
|
|
8
|
-
} & {
|
|
9
|
-
[evt: string]: CustomEvent<any>;
|
|
10
|
-
};
|
|
11
|
-
slots: {
|
|
12
|
-
default: {};
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
export type TableCellProps = typeof __propDef.props;
|
|
16
|
-
export type TableCellEvents = typeof __propDef.events;
|
|
17
|
-
export type TableCellSlots = typeof __propDef.slots;
|
|
18
|
-
export default class TableCell extends SvelteComponent<TableCellProps, TableCellEvents, TableCellSlots> {
|
|
19
|
-
}
|
|
20
|
-
export {};
|
|
3
|
+
declare const TableCell: import("svelte").Component<WithElementRef<HTMLTdAttributes>, {}, "ref">;
|
|
4
|
+
type TableCell = ReturnType<typeof TableCell>;
|
|
5
|
+
export default TableCell;
|
|
@@ -1,8 +1,17 @@
|
|
|
1
|
-
<script
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { cn, type WithElementRef } from '../utils.js'
|
|
3
|
+
import type { HTMLAttributes } from 'svelte/elements'
|
|
4
|
+
let {
|
|
5
|
+
ref = $bindable(null),
|
|
6
|
+
class: className,
|
|
7
|
+
children
|
|
8
|
+
}: WithElementRef<HTMLAttributes<HTMLTableSectionElement>> = $props()
|
|
4
9
|
</script>
|
|
5
10
|
|
|
6
|
-
<tfoot
|
|
7
|
-
|
|
11
|
+
<tfoot
|
|
12
|
+
bind:this={ref}
|
|
13
|
+
data-slot="table-footer"
|
|
14
|
+
class={cn('bg-muted/50 text-primary-foreground font-medium', className)}
|
|
15
|
+
>
|
|
16
|
+
{@render children?.()}
|
|
8
17
|
</tfoot>
|