@widgetic/design-system 0.3.89 → 0.5.8
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/README.md +122 -690
- package/dist/components/CopyableHeader.svelte +11 -13
- package/dist/components/EmptyState.svelte +4 -2
- package/dist/components/EmptyState.svelte.d.ts +2 -1
- package/dist/components/GenerateLoader.svelte +50 -0
- package/dist/components/GenerateLoader.svelte.d.ts +21 -0
- package/dist/components/PasswordInput.svelte +5 -1
- package/dist/components/WScrollArea.svelte +3 -3
- package/dist/components/debug-grid/DebugGrid.svelte +1 -1
- package/dist/components/ic/browser/BrowserInputController.svelte +1 -1
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.js +2 -2
- package/dist/components/modals/BaseModal.svelte +1 -1
- package/dist/components/modals/BaseModal.svelte.d.ts +1 -1
- package/dist/components/modals/NewItemDialog.svelte +1 -1
- package/dist/components/modals/Portal.svelte +14 -15
- package/dist/components/modals/RenameDialog.svelte +7 -6
- package/dist/components/navigation/Breadcrumbs.svelte +65 -39
- package/dist/components/pdf/PDFViewer.svelte +10 -19
- package/dist/components/pdf/PDFViewer.svelte.d.ts +4 -4
- package/dist/components/search-input/SearchInput.svelte +3 -8
- package/dist/components/search-input/index.d.ts +3 -14
- package/dist/components/search-input/index.js +1 -2
- package/dist/components/search-input/index2.d.ts +14 -0
- package/dist/components/shad-editor/README.md +18 -0
- package/dist/components/shad-editor/colorpicker.svelte.d.ts +2 -2
- package/dist/components/shad-editor/custom/code-extended.svelte.d.ts +2 -2
- package/dist/components/shad-editor/custom/image-extended-component.svelte +1 -1
- package/dist/components/shad-editor/custom/image-extended-component.svelte.d.ts +2 -2
- package/dist/components/shad-editor/editor-toolbar.svelte.d.ts +2 -2
- package/dist/components/shad-editor/editor.css +8 -4
- package/dist/components/shad-editor/icons/block-quote.svelte.d.ts +2 -2
- package/dist/components/shad-editor/icons/bold.svelte.d.ts +2 -2
- package/dist/components/shad-editor/icons/buttle-list.svelte.d.ts +2 -2
- package/dist/components/shad-editor/icons/code.svelte.d.ts +2 -2
- package/dist/components/shad-editor/icons/highlighter.svelte.d.ts +2 -2
- package/dist/components/shad-editor/icons/image.svelte.d.ts +2 -2
- package/dist/components/shad-editor/icons/italic.svelte.d.ts +2 -2
- package/dist/components/shad-editor/icons/link.svelte.d.ts +2 -2
- package/dist/components/shad-editor/icons/ordered-list.svelte.d.ts +2 -2
- package/dist/components/shad-editor/icons/quickcolor.svelte.d.ts +2 -2
- package/dist/components/shad-editor/icons/redo.svelte.d.ts +2 -2
- package/dist/components/shad-editor/icons/search-replace.svelte.d.ts +2 -2
- package/dist/components/shad-editor/icons/strikethrough.svelte.d.ts +2 -2
- package/dist/components/shad-editor/icons/subscript.svelte.d.ts +2 -2
- package/dist/components/shad-editor/icons/superscript.svelte.d.ts +2 -2
- package/dist/components/shad-editor/icons/table.svelte +3 -3
- package/dist/components/shad-editor/icons/table.svelte.d.ts +2 -2
- package/dist/components/shad-editor/icons/task-list.svelte.d.ts +2 -2
- package/dist/components/shad-editor/icons/text.svelte +1 -1
- package/dist/components/shad-editor/icons/text.svelte.d.ts +2 -2
- package/dist/components/shad-editor/icons/textalign.svelte.d.ts +2 -2
- package/dist/components/shad-editor/icons/textcolor.svelte.d.ts +2 -2
- package/dist/components/shad-editor/icons/underline.svelte.d.ts +2 -2
- package/dist/components/shad-editor/icons/undo.svelte.d.ts +2 -2
- package/dist/components/shad-editor/onedark.css +3 -0
- package/dist/components/shad-editor/shad-editor.svelte +1 -1
- package/dist/components/shad-editor/shad-editor.svelte.d.ts +2 -2
- package/dist/components/toast/ToasterModal.svelte +15 -9
- package/dist/components/toast/ToasterModal.svelte.d.ts +2 -2
- package/dist/components/ui/accordion/accordion-content.svelte.d.ts +4 -3
- package/dist/components/ui/accordion/accordion-item.svelte.d.ts +4 -3
- package/dist/components/ui/accordion/accordion-trigger.svelte.d.ts +6 -3
- package/dist/components/ui/alert/index.d.ts +2 -2
- package/dist/components/ui/badge/badge.svelte +1 -1
- package/dist/components/ui/badge/badge.svelte.d.ts +8 -55
- package/dist/components/ui/breadcrumb/breadcrumb-ellipsis.svelte.d.ts +2 -2
- package/dist/components/ui/breadcrumb/breadcrumb-item.svelte.d.ts +2 -2
- package/dist/components/ui/breadcrumb/breadcrumb-link.svelte.d.ts +8 -3
- package/dist/components/ui/breadcrumb/breadcrumb-list.svelte.d.ts +2 -2
- package/dist/components/ui/breadcrumb/breadcrumb-page.svelte.d.ts +2 -2
- package/dist/components/ui/breadcrumb/breadcrumb-separator.svelte.d.ts +2 -2
- package/dist/components/ui/breadcrumb/breadcrumb.svelte.d.ts +2 -2
- package/dist/components/ui/button/button.svelte +1 -1
- package/dist/components/ui/calendar/calendar-cell.svelte.d.ts +2 -2
- package/dist/components/ui/calendar/calendar-day.svelte +4 -4
- package/dist/components/ui/calendar/calendar-day.svelte.d.ts +2 -2
- package/dist/components/ui/calendar/calendar-grid-body.svelte.d.ts +2 -2
- package/dist/components/ui/calendar/calendar-grid-head.svelte.d.ts +2 -2
- package/dist/components/ui/calendar/calendar-grid-row.svelte.d.ts +2 -2
- package/dist/components/ui/calendar/calendar-grid.svelte.d.ts +2 -2
- package/dist/components/ui/calendar/calendar-head-cell.svelte.d.ts +2 -2
- package/dist/components/ui/calendar/calendar-header.svelte.d.ts +2 -2
- package/dist/components/ui/calendar/calendar-heading.svelte.d.ts +2 -2
- package/dist/components/ui/calendar/calendar-months.svelte.d.ts +2 -2
- package/dist/components/ui/calendar/calendar-next-button.svelte.d.ts +2 -2
- package/dist/components/ui/calendar/calendar-prev-button.svelte.d.ts +2 -2
- package/dist/components/ui/calendar/calendar.svelte.d.ts +2 -2
- package/dist/components/ui/card/card-content.svelte.d.ts +2 -2
- package/dist/components/ui/card/card-description.svelte.d.ts +2 -2
- package/dist/components/ui/card/card-footer.svelte.d.ts +2 -2
- package/dist/components/ui/card/card-header.svelte.d.ts +2 -2
- package/dist/components/ui/card/card-title.svelte.d.ts +7 -3
- package/dist/components/ui/card/card.svelte +1 -1
- package/dist/components/ui/card/card.svelte.d.ts +2 -2
- package/dist/components/ui/checkbox/checkbox.svelte +1 -1
- package/dist/components/ui/checkbox/checkbox.svelte.d.ts +2 -2
- package/dist/components/ui/collapsible/index.d.ts +1 -12
- package/dist/components/ui/command/command-dialog.svelte +1 -1
- package/dist/components/ui/command/command-dialog.svelte.d.ts +11 -3
- package/dist/components/ui/command/command-empty.svelte.d.ts +2 -2
- package/dist/components/ui/command/command-group.svelte.d.ts +6 -3
- package/dist/components/ui/command/command-input.svelte +1 -1
- package/dist/components/ui/command/command-input.svelte.d.ts +2 -2
- package/dist/components/ui/command/command-item.svelte +1 -1
- package/dist/components/ui/command/command-item.svelte.d.ts +2 -2
- package/dist/components/ui/command/command-link-item.svelte +1 -1
- package/dist/components/ui/command/command-link-item.svelte.d.ts +2 -2
- package/dist/components/ui/command/command-list.svelte.d.ts +2 -2
- package/dist/components/ui/command/command-separator.svelte.d.ts +2 -2
- package/dist/components/ui/command/command-shortcut.svelte.d.ts +2 -2
- package/dist/components/ui/command/command.svelte.d.ts +2 -2
- package/dist/components/ui/dialog/dialog-content.svelte +1 -1
- package/dist/components/ui/dialog/dialog-content.svelte.d.ts +9 -3
- package/dist/components/ui/dialog/dialog-description.svelte.d.ts +2 -2
- package/dist/components/ui/dialog/dialog-footer.svelte.d.ts +2 -2
- package/dist/components/ui/dialog/dialog-header.svelte.d.ts +2 -2
- package/dist/components/ui/dialog/dialog-overlay.svelte.d.ts +2 -2
- package/dist/components/ui/dialog/dialog-title.svelte.d.ts +2 -2
- package/dist/components/ui/drawer/drawer-content.svelte.d.ts +6 -3
- package/dist/components/ui/drawer/drawer-description.svelte.d.ts +2 -2
- package/dist/components/ui/drawer/drawer-footer.svelte.d.ts +2 -2
- package/dist/components/ui/drawer/drawer-header.svelte.d.ts +2 -2
- package/dist/components/ui/drawer/drawer-nested.svelte.d.ts +2 -2
- package/dist/components/ui/drawer/drawer-overlay.svelte.d.ts +2 -2
- package/dist/components/ui/drawer/drawer-title.svelte.d.ts +2 -2
- package/dist/components/ui/drawer/drawer.svelte.d.ts +2 -2
- package/dist/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte.d.ts +8 -3
- package/dist/components/ui/dropdown-menu/dropdown-menu-content.svelte +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-content.svelte.d.ts +6 -3
- package/dist/components/ui/dropdown-menu/dropdown-menu-group-heading.svelte.d.ts +6 -3
- package/dist/components/ui/dropdown-menu/dropdown-menu-item.svelte +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-item.svelte.d.ts +6 -3
- package/dist/components/ui/dropdown-menu/dropdown-menu-label.svelte.d.ts +7 -3
- package/dist/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte.d.ts +2 -2
- package/dist/components/ui/dropdown-menu/dropdown-menu-separator.svelte.d.ts +2 -2
- package/dist/components/ui/dropdown-menu/dropdown-menu-shortcut.svelte.d.ts +2 -2
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte.d.ts +2 -2
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte.d.ts +6 -3
- package/dist/components/ui/dropdown-menu/index.d.ts +6 -14
- package/dist/components/ui/hover-card/hover-card-content.svelte +1 -1
- package/dist/components/ui/hover-card/hover-card-content.svelte.d.ts +6 -3
- package/dist/components/ui/input/input.svelte +1 -1
- package/dist/components/ui/input/input.svelte.d.ts +2 -2
- package/dist/components/ui/input-otp/input-otp-group.svelte.d.ts +2 -2
- package/dist/components/ui/input-otp/input-otp-separator.svelte.d.ts +2 -2
- package/dist/components/ui/input-otp/input-otp-slot.svelte.d.ts +2 -2
- package/dist/components/ui/input-otp/input-otp.svelte +1 -1
- package/dist/components/ui/input-otp/input-otp.svelte.d.ts +2 -2
- package/dist/components/ui/label/label.svelte.d.ts +2 -2
- package/dist/components/ui/popover/popover-content.svelte +1 -1
- package/dist/components/ui/popover/popover-content.svelte.d.ts +6 -3
- package/dist/components/ui/progress/progress.svelte.d.ts +2 -2
- package/dist/components/ui/radio-group/radio-group-item.svelte +1 -1
- package/dist/components/ui/radio-group/radio-group-item.svelte.d.ts +2 -2
- package/dist/components/ui/radio-group/radio-group.svelte.d.ts +2 -2
- package/dist/components/ui/range-calendar/range-calendar-cell.svelte.d.ts +2 -2
- package/dist/components/ui/range-calendar/range-calendar-day.svelte +6 -6
- package/dist/components/ui/range-calendar/range-calendar-day.svelte.d.ts +2 -2
- package/dist/components/ui/range-calendar/range-calendar-grid-row.svelte.d.ts +2 -2
- package/dist/components/ui/range-calendar/range-calendar-grid.svelte.d.ts +2 -2
- package/dist/components/ui/range-calendar/range-calendar-head-cell.svelte.d.ts +2 -2
- package/dist/components/ui/range-calendar/range-calendar-header.svelte.d.ts +2 -2
- package/dist/components/ui/range-calendar/range-calendar-heading.svelte.d.ts +2 -2
- package/dist/components/ui/range-calendar/range-calendar-months.svelte.d.ts +2 -2
- package/dist/components/ui/range-calendar/range-calendar-next-button.svelte.d.ts +2 -2
- package/dist/components/ui/range-calendar/range-calendar-prev-button.svelte.d.ts +2 -2
- package/dist/components/ui/range-calendar/range-calendar.svelte.d.ts +2 -2
- package/dist/components/ui/scroll-area/scroll-area-scrollbar.svelte.d.ts +2 -2
- package/dist/components/ui/scroll-area/scroll-area.svelte.d.ts +8 -3
- package/dist/components/ui/select/index.d.ts +1 -1
- package/dist/components/ui/select/select-content.svelte.d.ts +6 -3
- package/dist/components/ui/select/select-group-heading.svelte.d.ts +2 -2
- package/dist/components/ui/select/select-item.svelte +1 -1
- package/dist/components/ui/select/select-item.svelte.d.ts +2 -2
- package/dist/components/ui/select/select-scroll-down-button.svelte.d.ts +2 -2
- package/dist/components/ui/select/select-scroll-up-button.svelte.d.ts +2 -2
- package/dist/components/ui/select/select-separator.svelte.d.ts +2 -2
- package/dist/components/ui/select/select-trigger.svelte +1 -1
- package/dist/components/ui/select/select-trigger.svelte.d.ts +2 -2
- package/dist/components/ui/separator/separator.svelte.d.ts +2 -2
- package/dist/components/ui/slider/slider.svelte +1 -1
- package/dist/components/ui/slider/slider.svelte.d.ts +2 -2
- package/dist/components/ui/sonner/sonner.svelte.d.ts +5 -4
- package/dist/components/ui/switch/switch.svelte +1 -1
- package/dist/components/ui/switch/switch.svelte.d.ts +2 -2
- package/dist/components/ui/table/table-body.svelte.d.ts +2 -2
- package/dist/components/ui/table/table-caption.svelte.d.ts +2 -2
- package/dist/components/ui/table/table-cell.svelte.d.ts +2 -2
- package/dist/components/ui/table/table-footer.svelte.d.ts +2 -2
- package/dist/components/ui/table/table-head.svelte.d.ts +2 -2
- package/dist/components/ui/table/table-header.svelte.d.ts +2 -2
- package/dist/components/ui/table/table-row.svelte.d.ts +2 -2
- package/dist/components/ui/table/table.svelte.d.ts +2 -2
- package/dist/components/ui/tabs/tabs-content.svelte +1 -1
- package/dist/components/ui/tabs/tabs-content.svelte.d.ts +2 -2
- package/dist/components/ui/tabs/tabs-list.svelte.d.ts +2 -2
- package/dist/components/ui/tabs/tabs-trigger.svelte +1 -1
- package/dist/components/ui/tabs/tabs-trigger.svelte.d.ts +2 -2
- package/dist/components/ui/textarea/textarea.svelte +1 -1
- package/dist/components/ui/textarea/textarea.svelte.d.ts +2 -2
- package/dist/components/ui/toggle/toggle.svelte +1 -1
- package/dist/components/ui/toggle/toggle.svelte.d.ts +8 -78
- package/dist/components/ui/toggle-group/toggle-group-item.svelte.d.ts +2 -2
- package/dist/components/ui/toggle-group/toggle-group.svelte.d.ts +5 -6
- package/dist/components/ui/tooltip/index.d.ts +4 -4
- package/dist/components/ui/tooltip/tooltip-content.svelte.d.ts +2 -2
- package/dist/components/widget-system/Moveable.svelte +100 -23
- package/dist/components/widget-system/Moveable.svelte.d.ts +3 -1
- package/dist/icons/CheckerBoardBackground.svelte.d.ts +3 -3
- package/dist/icons/OpacitySliderArrows.svelte.d.ts +3 -3
- package/dist/icons/eye-off.svg +1 -0
- package/dist/icons/eye.svg +1 -0
- package/dist/shad-editor/index.d.ts +1 -0
- package/dist/shad-editor/index.js +1 -0
- package/dist/styles/fonts.css +59 -47
- package/dist/styles/global.css +119 -52
- package/package.json +164 -36
- package/tailwind.config.ts +13 -6
|
@@ -3,13 +3,13 @@ export type TableProps = WithElementRef<HTMLTableAttributes>;
|
|
|
3
3
|
import type { HTMLTableAttributes } from "svelte/elements";
|
|
4
4
|
import type { WithElementRef } from "bits-ui";
|
|
5
5
|
declare const __propDef: {
|
|
6
|
-
props:
|
|
6
|
+
props: TableProps;
|
|
7
7
|
events: {
|
|
8
8
|
[evt: string]: CustomEvent<any>;
|
|
9
9
|
};
|
|
10
10
|
slots: {};
|
|
11
11
|
};
|
|
12
|
-
type TableProps_ =
|
|
12
|
+
type TableProps_ = TableProps;
|
|
13
13
|
export type TableEvents = typeof __propDef.events;
|
|
14
14
|
export type TableSlots = typeof __propDef.slots;
|
|
15
15
|
export default class Table extends SvelteComponentTyped<TableProps_, TableEvents, TableSlots> {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
<TabsPrimitive.Content
|
|
18
18
|
bind:ref
|
|
19
19
|
class={cn(
|
|
20
|
-
"ring-offset-background focus-visible:ring-ring mt-2 focus-visible:outline-
|
|
20
|
+
"ring-offset-background focus-visible:ring-ring mt-2 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-offset-2",
|
|
21
21
|
className
|
|
22
22
|
)}
|
|
23
23
|
{...restProps}
|
|
@@ -2,13 +2,13 @@ import { SvelteComponentTyped } from "svelte";
|
|
|
2
2
|
import type { Tabs as TabsPrimitive } from "bits-ui";
|
|
3
3
|
export type TabsContentProps = TabsPrimitive.ContentProps;
|
|
4
4
|
declare const __propDef: {
|
|
5
|
-
props:
|
|
5
|
+
props: TabsContentProps;
|
|
6
6
|
events: {
|
|
7
7
|
[evt: string]: CustomEvent<any>;
|
|
8
8
|
};
|
|
9
9
|
slots: {};
|
|
10
10
|
};
|
|
11
|
-
type TabsContentProps_ =
|
|
11
|
+
type TabsContentProps_ = TabsContentProps;
|
|
12
12
|
export type TabsContentEvents = typeof __propDef.events;
|
|
13
13
|
export type TabsContentSlots = typeof __propDef.slots;
|
|
14
14
|
export default class TabsContent extends SvelteComponentTyped<TabsContentProps_, TabsContentEvents, TabsContentSlots> {
|
|
@@ -2,13 +2,13 @@ import { SvelteComponentTyped } from "svelte";
|
|
|
2
2
|
import type { Tabs as TabsPrimitive } from "bits-ui";
|
|
3
3
|
export type TabsListProps = TabsPrimitive.ListProps;
|
|
4
4
|
declare const __propDef: {
|
|
5
|
-
props:
|
|
5
|
+
props: TabsListProps;
|
|
6
6
|
events: {
|
|
7
7
|
[evt: string]: CustomEvent<any>;
|
|
8
8
|
};
|
|
9
9
|
slots: {};
|
|
10
10
|
};
|
|
11
|
-
type TabsListProps_ =
|
|
11
|
+
type TabsListProps_ = TabsListProps;
|
|
12
12
|
export type TabsListEvents = typeof __propDef.events;
|
|
13
13
|
export type TabsListSlots = typeof __propDef.slots;
|
|
14
14
|
export default class TabsList extends SvelteComponentTyped<TabsListProps_, TabsListEvents, TabsListSlots> {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
<TabsPrimitive.Trigger
|
|
18
18
|
bind:ref
|
|
19
19
|
class={cn(
|
|
20
|
-
"ring-offset-background focus-visible:ring-ring data-[state=active]:bg-background data-[state=active]:text-foreground inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium transition-all focus-visible:outline-
|
|
20
|
+
"ring-offset-background focus-visible:ring-ring data-[state=active]:bg-background data-[state=active]:text-foreground inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium transition-all focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-2xs",
|
|
21
21
|
className
|
|
22
22
|
)}
|
|
23
23
|
{...restProps}
|
|
@@ -2,13 +2,13 @@ import { SvelteComponentTyped } from "svelte";
|
|
|
2
2
|
import type { Tabs as TabsPrimitive } from "bits-ui";
|
|
3
3
|
export type TabsTriggerProps = TabsPrimitive.TriggerProps;
|
|
4
4
|
declare const __propDef: {
|
|
5
|
-
props:
|
|
5
|
+
props: TabsTriggerProps;
|
|
6
6
|
events: {
|
|
7
7
|
[evt: string]: CustomEvent<any>;
|
|
8
8
|
};
|
|
9
9
|
slots: {};
|
|
10
10
|
};
|
|
11
|
-
type TabsTriggerProps_ =
|
|
11
|
+
type TabsTriggerProps_ = TabsTriggerProps;
|
|
12
12
|
export type TabsTriggerEvents = typeof __propDef.events;
|
|
13
13
|
export type TabsTriggerSlots = typeof __propDef.slots;
|
|
14
14
|
export default class TabsTrigger extends SvelteComponentTyped<TabsTriggerProps_, TabsTriggerEvents, TabsTriggerSlots> {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
<textarea
|
|
20
20
|
bind:this={ref}
|
|
21
21
|
class={cn(
|
|
22
|
-
"border-input bg-background ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring flex min-h-[80px] w-full rounded-md border px-3 py-2 text-sm focus-visible:outline-
|
|
22
|
+
"border-input bg-background ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring flex min-h-[80px] w-full rounded-md border px-3 py-2 text-sm focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
23
23
|
className
|
|
24
24
|
)}
|
|
25
25
|
bind:value
|
|
@@ -3,13 +3,13 @@ export type TextareaProps = WithoutChildren<WithElementRef<HTMLTextareaAttribute
|
|
|
3
3
|
import type { WithElementRef, WithoutChildren } from "bits-ui";
|
|
4
4
|
import type { HTMLTextareaAttributes } from "svelte/elements";
|
|
5
5
|
declare const __propDef: {
|
|
6
|
-
props:
|
|
6
|
+
props: TextareaProps;
|
|
7
7
|
events: {
|
|
8
8
|
[evt: string]: CustomEvent<any>;
|
|
9
9
|
};
|
|
10
10
|
slots: {};
|
|
11
11
|
};
|
|
12
|
-
type TextareaProps_ =
|
|
12
|
+
type TextareaProps_ = TextareaProps;
|
|
13
13
|
export type TextareaEvents = typeof __propDef.events;
|
|
14
14
|
export type TextareaSlots = typeof __propDef.slots;
|
|
15
15
|
export default class Textarea extends SvelteComponentTyped<TextareaProps_, TextareaEvents, TextareaSlots> {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { type VariantProps, tv } from "tailwind-variants";
|
|
3
3
|
|
|
4
4
|
export const toggleVariants = tv({
|
|
5
|
-
base: "ring-offset-background hover:bg-muted hover:text-muted-foreground focus-visible:ring-ring data-[state=on]:bg-accent data-[state=on]:text-accent-foreground inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors focus-visible:outline-
|
|
5
|
+
base: "ring-offset-background hover:bg-muted hover:text-muted-foreground focus-visible:ring-ring data-[state=on]:bg-accent data-[state=on]:text-accent-foreground inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
6
6
|
variants: {
|
|
7
7
|
variant: {
|
|
8
8
|
default: "bg-transparent",
|
|
@@ -1,89 +1,19 @@
|
|
|
1
|
+
import { type VariantProps, tv } from "tailwind-variants";
|
|
2
|
+
import type { Toggle as TogglePrimitive } from "bits-ui";
|
|
1
3
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
outline: string;
|
|
7
|
-
};
|
|
8
|
-
size: {
|
|
9
|
-
default: string;
|
|
10
|
-
sm: string;
|
|
11
|
-
lg: string;
|
|
12
|
-
};
|
|
13
|
-
}, undefined, "ring-offset-background hover:bg-muted hover:text-muted-foreground focus-visible:ring-ring data-[state=on]:bg-accent data-[state=on]:text-accent-foreground inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", import("tailwind-variants/dist/config").TVConfig<{
|
|
14
|
-
variant: {
|
|
15
|
-
default: string;
|
|
16
|
-
outline: string;
|
|
17
|
-
};
|
|
18
|
-
size: {
|
|
19
|
-
default: string;
|
|
20
|
-
sm: string;
|
|
21
|
-
lg: string;
|
|
22
|
-
};
|
|
23
|
-
}, {
|
|
24
|
-
variant: {
|
|
25
|
-
default: string;
|
|
26
|
-
outline: string;
|
|
27
|
-
};
|
|
28
|
-
size: {
|
|
29
|
-
default: string;
|
|
30
|
-
sm: string;
|
|
31
|
-
lg: string;
|
|
32
|
-
};
|
|
33
|
-
}>, {
|
|
34
|
-
variant: {
|
|
35
|
-
default: string;
|
|
36
|
-
outline: string;
|
|
37
|
-
};
|
|
38
|
-
size: {
|
|
39
|
-
default: string;
|
|
40
|
-
sm: string;
|
|
41
|
-
lg: string;
|
|
42
|
-
};
|
|
43
|
-
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
44
|
-
variant: {
|
|
45
|
-
default: string;
|
|
46
|
-
outline: string;
|
|
47
|
-
};
|
|
48
|
-
size: {
|
|
49
|
-
default: string;
|
|
50
|
-
sm: string;
|
|
51
|
-
lg: string;
|
|
52
|
-
};
|
|
53
|
-
}, undefined, "ring-offset-background hover:bg-muted hover:text-muted-foreground focus-visible:ring-ring data-[state=on]:bg-accent data-[state=on]:text-accent-foreground inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", import("tailwind-variants/dist/config").TVConfig<{
|
|
54
|
-
variant: {
|
|
55
|
-
default: string;
|
|
56
|
-
outline: string;
|
|
57
|
-
};
|
|
58
|
-
size: {
|
|
59
|
-
default: string;
|
|
60
|
-
sm: string;
|
|
61
|
-
lg: string;
|
|
62
|
-
};
|
|
63
|
-
}, {
|
|
64
|
-
variant: {
|
|
65
|
-
default: string;
|
|
66
|
-
outline: string;
|
|
67
|
-
};
|
|
68
|
-
size: {
|
|
69
|
-
default: string;
|
|
70
|
-
sm: string;
|
|
71
|
-
lg: string;
|
|
72
|
-
};
|
|
73
|
-
}>, unknown, unknown, undefined>>;
|
|
74
|
-
export type ToggleVariant = VariantProps<typeof toggleVariants>["variant"];
|
|
75
|
-
export type ToggleSize = VariantProps<typeof toggleVariants>["size"];
|
|
76
|
-
export type ToggleVariants = VariantProps<typeof toggleVariants>;
|
|
4
|
+
export type ToggleProps = TogglePrimitive.RootProps & {
|
|
5
|
+
variant?: ToggleVariant;
|
|
6
|
+
size?: ToggleSize;
|
|
7
|
+
};
|
|
77
8
|
declare const __propDef: {
|
|
78
|
-
props:
|
|
9
|
+
props: ToggleProps;
|
|
79
10
|
events: {
|
|
80
11
|
[evt: string]: CustomEvent<any>;
|
|
81
12
|
};
|
|
82
13
|
slots: {};
|
|
83
14
|
};
|
|
84
|
-
export type ToggleProps = typeof __propDef.props;
|
|
85
15
|
export type ToggleEvents = typeof __propDef.events;
|
|
86
16
|
export type ToggleSlots = typeof __propDef.slots;
|
|
87
|
-
export default class
|
|
17
|
+
export default class extends SvelteComponentTyped<ToggleProps, typeof __propDef.events, typeof __propDef.slots> {
|
|
88
18
|
}
|
|
89
19
|
export {};
|
|
@@ -3,13 +3,13 @@ import type { ToggleGroup as ToggleGroupPrimitive } from "bits-ui";
|
|
|
3
3
|
export type ToggleGroupItemProps = ToggleGroupPrimitive.ItemProps & ToggleVariants;
|
|
4
4
|
import { type ToggleVariants } from "../toggle/index.js";
|
|
5
5
|
declare const __propDef: {
|
|
6
|
-
props:
|
|
6
|
+
props: ToggleGroupItemProps;
|
|
7
7
|
events: {
|
|
8
8
|
[evt: string]: CustomEvent<any>;
|
|
9
9
|
};
|
|
10
10
|
slots: {};
|
|
11
11
|
};
|
|
12
|
-
type ToggleGroupItemProps_ =
|
|
12
|
+
type ToggleGroupItemProps_ = ToggleGroupItemProps;
|
|
13
13
|
export type ToggleGroupItemEvents = typeof __propDef.events;
|
|
14
14
|
export type ToggleGroupItemSlots = typeof __propDef.slots;
|
|
15
15
|
export default class ToggleGroupItem extends SvelteComponentTyped<ToggleGroupItemProps_, ToggleGroupItemEvents, ToggleGroupItemSlots> {
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
+
import type { ToggleVariants } from "$lib/components/ui/toggle/index.js";
|
|
2
|
+
import type { ToggleGroup as ToggleGroupPrimitive } from "bits-ui";
|
|
1
3
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
|
|
3
|
-
export declare function setToggleGroupCtx(props: ToggleVariants): void;
|
|
4
|
-
export declare function getToggleGroupCtx(): ToggleVariants;
|
|
4
|
+
export type ToggleGroupProps = ToggleGroupPrimitive.RootProps & ToggleVariants;
|
|
5
5
|
declare const __propDef: {
|
|
6
|
-
props:
|
|
6
|
+
props: ToggleGroupProps;
|
|
7
7
|
events: {
|
|
8
8
|
[evt: string]: CustomEvent<any>;
|
|
9
9
|
};
|
|
10
10
|
slots: {};
|
|
11
11
|
};
|
|
12
|
-
export type ToggleGroupProps = typeof __propDef.props;
|
|
13
12
|
export type ToggleGroupEvents = typeof __propDef.events;
|
|
14
13
|
export type ToggleGroupSlots = typeof __propDef.slots;
|
|
15
|
-
export default class
|
|
14
|
+
export default class extends SvelteComponentTyped<ToggleGroupProps, typeof __propDef.events, typeof __propDef.slots> {
|
|
16
15
|
}
|
|
17
16
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Component } from "svelte";
|
|
2
2
|
import Content from "./tooltip-content.svelte";
|
|
3
|
-
declare const Root:
|
|
4
|
-
declare const Trigger:
|
|
5
|
-
declare const Provider:
|
|
3
|
+
declare const Root: Component<any>;
|
|
4
|
+
declare const Trigger: Component<any>;
|
|
5
|
+
declare const Provider: Component<any>;
|
|
6
6
|
export { Root, Trigger, Content, Provider, Root as Tooltip, Content as TooltipContent, Trigger as TooltipTrigger, Provider as TooltipProvider, };
|
|
@@ -2,13 +2,13 @@ import { SvelteComponentTyped } from "svelte";
|
|
|
2
2
|
import type { Tooltip as TooltipPrimitive } from "bits-ui";
|
|
3
3
|
export type TooltipContentProps = TooltipPrimitive.ContentProps;
|
|
4
4
|
declare const __propDef: {
|
|
5
|
-
props:
|
|
5
|
+
props: TooltipContentProps;
|
|
6
6
|
events: {
|
|
7
7
|
[evt: string]: CustomEvent<any>;
|
|
8
8
|
};
|
|
9
9
|
slots: {};
|
|
10
10
|
};
|
|
11
|
-
type TooltipContentProps_ =
|
|
11
|
+
type TooltipContentProps_ = TooltipContentProps;
|
|
12
12
|
export type TooltipContentEvents = typeof __propDef.events;
|
|
13
13
|
export type TooltipContentSlots = typeof __propDef.slots;
|
|
14
14
|
export default class TooltipContent extends SvelteComponentTyped<TooltipContentProps_, TooltipContentEvents, TooltipContentSlots> {
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { onMount, createEventDispatcher } from 'svelte';
|
|
3
3
|
|
|
4
|
-
//
|
|
4
|
+
// COMPONENT PROPS
|
|
5
|
+
// Class & Style
|
|
6
|
+
let className = '';
|
|
7
|
+
export { className as class };
|
|
8
|
+
export let style: string = "";
|
|
9
|
+
// Dimensions
|
|
5
10
|
export let width: string = "100%";
|
|
6
11
|
export let height: string = "100%";
|
|
7
12
|
export let minWidth: number = 50;
|
|
8
13
|
export let minHeight: number = 50;
|
|
9
14
|
export let enableResize: boolean = true;
|
|
10
|
-
export let
|
|
15
|
+
export let alwaysShowControls: boolean = false;
|
|
11
16
|
|
|
12
17
|
|
|
13
18
|
// Internal state
|
|
@@ -47,7 +52,11 @@
|
|
|
47
52
|
|
|
48
53
|
// Track key states
|
|
49
54
|
function handleKeyDown(e: KeyboardEvent) {
|
|
50
|
-
if (e.key === '
|
|
55
|
+
if ((isMac && e.key === 'Meta') || (!isMac && e.key === 'Control')) {
|
|
56
|
+
isCmdCtrlKeyDown = true;
|
|
57
|
+
updateContainerClasses();
|
|
58
|
+
console.log('[Moveable] Cmd/Ctrl key DOWN — drag mode enabled', { key: e.key, isMac });
|
|
59
|
+
} else if (e.key === ' ') { // Space key
|
|
51
60
|
isSpaceKeyDown = true;
|
|
52
61
|
updateContainerClasses();
|
|
53
62
|
// Prevent page scrolling when space is pressed
|
|
@@ -102,10 +111,23 @@
|
|
|
102
111
|
}
|
|
103
112
|
}
|
|
104
113
|
|
|
114
|
+
// Reclaim focus from iframes so Cmd/Ctrl keydown reaches document listeners
|
|
115
|
+
let lastFocusReclaim = 0;
|
|
116
|
+
function reclaimFocusFromIframe() {
|
|
117
|
+
if (document.activeElement?.tagName === 'IFRAME') {
|
|
118
|
+
const now = Date.now();
|
|
119
|
+
if (now - lastFocusReclaim > 200) {
|
|
120
|
+
lastFocusReclaim = now;
|
|
121
|
+
window.focus();
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
105
126
|
// Track hover state
|
|
106
127
|
function handleMouseEnter() {
|
|
107
128
|
if (isInitialized) {
|
|
108
129
|
isHovering = true;
|
|
130
|
+
reclaimFocusFromIframe();
|
|
109
131
|
}
|
|
110
132
|
}
|
|
111
133
|
|
|
@@ -115,7 +137,21 @@
|
|
|
115
137
|
}
|
|
116
138
|
}
|
|
117
139
|
|
|
140
|
+
function handleHoverMouseMove() {
|
|
141
|
+
reclaimFocusFromIframe();
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
|
|
118
145
|
onMount(() => {
|
|
146
|
+
// Detect if we're on a Mac (navigator.platform is deprecated, use userAgentData or fallback)
|
|
147
|
+
isMac = typeof navigator !== 'undefined' && (
|
|
148
|
+
// @ts-ignore — userAgentData is not yet in all TS typings
|
|
149
|
+
navigator.userAgentData?.platform === 'macOS' ||
|
|
150
|
+
navigator.platform?.toUpperCase().indexOf('MAC') >= 0 ||
|
|
151
|
+
/Mac|iPhone|iPad|iPod/.test(navigator.userAgent)
|
|
152
|
+
);
|
|
153
|
+
console.log('[Moveable] isMac detected:', isMac, 'platform:', navigator.platform);
|
|
154
|
+
|
|
119
155
|
// Initialize from props first if they are in px format
|
|
120
156
|
const initialWidth = parseSize(width);
|
|
121
157
|
const initialHeight = parseSize(height);
|
|
@@ -125,17 +161,17 @@
|
|
|
125
161
|
currentHeight = initialHeight;
|
|
126
162
|
}
|
|
127
163
|
|
|
128
|
-
// After
|
|
129
|
-
|
|
164
|
+
// After layout, get actual container dimensions and center
|
|
165
|
+
requestAnimationFrame(() => {
|
|
130
166
|
const rect = container.getBoundingClientRect();
|
|
131
167
|
|
|
132
|
-
// Only update if we couldn't parse from props
|
|
133
168
|
if (currentWidth === 0) currentWidth = rect.width;
|
|
134
169
|
if (currentHeight === 0) currentHeight = rect.height;
|
|
135
170
|
|
|
136
|
-
//
|
|
137
|
-
|
|
138
|
-
|
|
171
|
+
// Center in the canvas (hoverContainer's parent = editable-widget-container)
|
|
172
|
+
const boundsElement = hoverContainer?.parentElement;
|
|
173
|
+
if (boundsElement) {
|
|
174
|
+
const parentRect = boundsElement.getBoundingClientRect();
|
|
139
175
|
currentLeft = (parentRect.width - currentWidth) / 2;
|
|
140
176
|
currentTop = (parentRect.height - currentHeight) / 2;
|
|
141
177
|
} else {
|
|
@@ -143,10 +179,15 @@
|
|
|
143
179
|
currentTop = 0;
|
|
144
180
|
}
|
|
145
181
|
|
|
146
|
-
// console.log("Moveable component initialized", { currentWidth, currentHeight, currentLeft, currentTop });
|
|
147
|
-
// Set initialized to true only after component is fully set up
|
|
148
182
|
isInitialized = true;
|
|
149
|
-
}
|
|
183
|
+
});
|
|
184
|
+
|
|
185
|
+
// Native event listeners for hover (reliable across Svelte 4/5 compilation)
|
|
186
|
+
if (hoverContainer) {
|
|
187
|
+
hoverContainer.addEventListener('mouseenter', handleMouseEnter);
|
|
188
|
+
hoverContainer.addEventListener('mouseleave', handleMouseLeave);
|
|
189
|
+
hoverContainer.addEventListener('mousemove', handleHoverMouseMove);
|
|
190
|
+
}
|
|
150
191
|
|
|
151
192
|
// Add key event listeners
|
|
152
193
|
document.addEventListener('keydown', handleKeyDown);
|
|
@@ -160,13 +201,23 @@
|
|
|
160
201
|
document.removeEventListener('keydown', handleKeyDown);
|
|
161
202
|
document.removeEventListener('keyup', handleKeyUp);
|
|
162
203
|
window.removeEventListener('blur', cancelOperation);
|
|
204
|
+
if (hoverContainer) {
|
|
205
|
+
hoverContainer.removeEventListener('mouseenter', handleMouseEnter);
|
|
206
|
+
hoverContainer.removeEventListener('mouseleave', handleMouseLeave);
|
|
207
|
+
hoverContainer.removeEventListener('mousemove', handleHoverMouseMove);
|
|
208
|
+
}
|
|
163
209
|
};
|
|
164
210
|
});
|
|
165
211
|
|
|
166
212
|
// Handle mouse events for drag
|
|
167
213
|
function handleMouseDown(e: MouseEvent) {
|
|
168
|
-
|
|
169
|
-
|
|
214
|
+
console.log('[Moveable] mousedown on container', {
|
|
215
|
+
isCmdCtrlKeyDown, isSpaceKeyDown, isResizing,
|
|
216
|
+
target: (e.target as HTMLElement).className,
|
|
217
|
+
tagName: (e.target as HTMLElement).tagName
|
|
218
|
+
});
|
|
219
|
+
// Only allow dragging when Command/Control key or Space key is down
|
|
220
|
+
if (!(isCmdCtrlKeyDown || isSpaceKeyDown) || isResizing) return;
|
|
170
221
|
|
|
171
222
|
// Prevent starting a drag on resize handles
|
|
172
223
|
if ((e.target as HTMLElement).classList.contains('resize-handle')) {
|
|
@@ -422,12 +473,17 @@
|
|
|
422
473
|
}
|
|
423
474
|
</script>
|
|
424
475
|
|
|
476
|
+
<!-- Full-screen overlay during drag/resize to prevent iframe from swallowing mouseup -->
|
|
477
|
+
{#if isDragging || isResizing}
|
|
478
|
+
<div class="interaction-overlay"></div>
|
|
479
|
+
{/if}
|
|
480
|
+
|
|
425
481
|
<!-- Hover area container with padding -->
|
|
426
482
|
<!-- svelte-ignore a11y_no_static_element_interactions -->
|
|
427
483
|
<div
|
|
428
484
|
bind:this={hoverContainer}
|
|
429
|
-
class="hover-container
|
|
430
|
-
style="position: absolute; left: {currentLeft - 8}px; top: {currentTop - 8}px; width: {currentWidth + 16}px; height: {currentHeight + 16}px;"
|
|
485
|
+
class="{className ? className + ' ' : ''}moveable-root-ct hover-container"
|
|
486
|
+
style="{style ? style : ''}position: absolute; left: {currentLeft - 8}px; top: {currentTop - 8}px; width: {currentWidth + 16}px; height: {currentHeight + 16}px;"
|
|
431
487
|
on:mouseenter={handleMouseEnter}
|
|
432
488
|
on:mouseleave={handleMouseLeave}
|
|
433
489
|
>
|
|
@@ -435,12 +491,18 @@
|
|
|
435
491
|
<!-- svelte-ignore a11y_no_static_element_interactions -->
|
|
436
492
|
<div
|
|
437
493
|
bind:this={container}
|
|
438
|
-
class="moveable-container {isSpaceKeyDown ? 'drag-mode' : ''} {isShiftKeyDown && !isAltOptKeyDown ? 'proportional-mode' : ''} {isAltOptKeyDown && !isShiftKeyDown ? 'symmetrical-mode' : ''} {isShiftKeyDown && isAltOptKeyDown ? 'combined-mode' : ''} {isResizing ? 'resizing-mode' : ''}"
|
|
439
|
-
class:hovering={isHovering}
|
|
494
|
+
class="moveable-content-ct moveable-container {isCmdCtrlKeyDown || isSpaceKeyDown ? 'drag-mode' : ''} {isShiftKeyDown && !isAltOptKeyDown ? 'proportional-mode' : ''} {isAltOptKeyDown && !isShiftKeyDown ? 'symmetrical-mode' : ''} {isShiftKeyDown && isAltOptKeyDown ? 'combined-mode' : ''} {isResizing ? 'resizing-mode' : ''}"
|
|
495
|
+
class:hovering={isHovering || alwaysShowControls}
|
|
440
496
|
style="position: absolute; left: 8px; top: 8px; width: {currentWidth}px; height: {currentHeight}px;"
|
|
441
497
|
on:mousedown={handleMouseDown}
|
|
442
498
|
>
|
|
443
499
|
<slot></slot>
|
|
500
|
+
|
|
501
|
+
<!-- Drag overlay: real DOM element that sits above iframes to capture mouse events in drag mode -->
|
|
502
|
+
{#if isCmdCtrlKeyDown || isSpaceKeyDown}
|
|
503
|
+
<!-- svelte-ignore a11y_no_static_element_interactions -->
|
|
504
|
+
<div class="drag-overlay" on:mousedown={handleMouseDown}></div>
|
|
505
|
+
{/if}
|
|
444
506
|
|
|
445
507
|
{#if enableResize}
|
|
446
508
|
<!-- Resize handles for all corners -->
|
|
@@ -471,9 +533,9 @@
|
|
|
471
533
|
{/if}
|
|
472
534
|
|
|
473
535
|
<!-- Size information display -->
|
|
474
|
-
{#if (isResizing ||
|
|
536
|
+
{#if (alwaysShowControls || isHovering || isResizing || isDragging) && currentWidth > 0 && currentHeight > 0}
|
|
475
537
|
<div class="size-info">
|
|
476
|
-
{Math.round(currentWidth)} × {Math.round(currentHeight)}
|
|
538
|
+
{Math.round(currentWidth)}px × {Math.round(currentHeight)}px
|
|
477
539
|
</div>
|
|
478
540
|
{/if}
|
|
479
541
|
</div>
|
|
@@ -487,6 +549,14 @@
|
|
|
487
549
|
</div> -->
|
|
488
550
|
|
|
489
551
|
<style>
|
|
552
|
+
/* Full-screen overlay to capture mouse events during drag/resize (prevents iframe from eating mouseup) */
|
|
553
|
+
.interaction-overlay {
|
|
554
|
+
position: fixed;
|
|
555
|
+
inset: 0;
|
|
556
|
+
z-index: 9999;
|
|
557
|
+
cursor: move;
|
|
558
|
+
}
|
|
559
|
+
|
|
490
560
|
/* Color variables for mode styles */
|
|
491
561
|
:root {
|
|
492
562
|
/* Drag mode - Light Blue */
|
|
@@ -518,7 +588,7 @@
|
|
|
518
588
|
box-sizing: border-box;
|
|
519
589
|
cursor: default;
|
|
520
590
|
border: 1px solid transparent;
|
|
521
|
-
z-index: 1;
|
|
591
|
+
z-index: 1;
|
|
522
592
|
}
|
|
523
593
|
|
|
524
594
|
/* Move cursor only when hovering the container in drag mode */
|
|
@@ -542,7 +612,15 @@
|
|
|
542
612
|
background-color: rgba(33, 150, 243, 0.15);
|
|
543
613
|
background-color: color-mix(in srgb, var(--drag-color), transparent calc(100% - calc(var(--drag-opacity) * 100%)));
|
|
544
614
|
border-color: var(--drag-color);
|
|
545
|
-
pointer-events:
|
|
615
|
+
pointer-events: none;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
/* Real overlay that captures mouse events above iframes */
|
|
619
|
+
.drag-overlay {
|
|
620
|
+
position: absolute;
|
|
621
|
+
inset: 0;
|
|
622
|
+
z-index: 5;
|
|
623
|
+
cursor: move;
|
|
546
624
|
}
|
|
547
625
|
|
|
548
626
|
/* Make sure resize handles maintain their cursors even in drag mode */
|
|
@@ -681,7 +759,6 @@
|
|
|
681
759
|
border-radius: 4px;
|
|
682
760
|
font-size: 12px;
|
|
683
761
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
|
684
|
-
width: -moz-fit-content;
|
|
685
762
|
width: fit-content;
|
|
686
763
|
z-index: 200; /* Highest z-index for info tooltip */
|
|
687
764
|
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
|
+
class?: string;
|
|
5
|
+
style?: string;
|
|
4
6
|
width?: string;
|
|
5
7
|
height?: string;
|
|
6
8
|
minWidth?: number;
|
|
7
9
|
minHeight?: number;
|
|
8
10
|
enableResize?: boolean;
|
|
9
|
-
|
|
11
|
+
alwaysShowControls?: boolean;
|
|
10
12
|
getDimensions?: () => {
|
|
11
13
|
width: number;
|
|
12
14
|
height: number;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
export type CheckerBoardBackgroundProps = any;
|
|
2
3
|
declare const __propDef: {
|
|
3
|
-
props:
|
|
4
|
+
props: CheckerBoardBackgroundProps;
|
|
4
5
|
events: {
|
|
5
6
|
[evt: string]: CustomEvent<any>;
|
|
6
7
|
};
|
|
7
8
|
slots: {};
|
|
8
9
|
};
|
|
9
|
-
export type CheckerBoardBackgroundProps = typeof __propDef.props;
|
|
10
10
|
export type CheckerBoardBackgroundEvents = typeof __propDef.events;
|
|
11
11
|
export type CheckerBoardBackgroundSlots = typeof __propDef.slots;
|
|
12
|
-
export default class
|
|
12
|
+
export default class extends SvelteComponentTyped<CheckerBoardBackgroundProps, typeof __propDef.events, typeof __propDef.slots> {
|
|
13
13
|
}
|
|
14
14
|
export {};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
export type OpacitySliderArrowsProps = any;
|
|
2
3
|
declare const __propDef: {
|
|
3
|
-
props:
|
|
4
|
+
props: OpacitySliderArrowsProps;
|
|
4
5
|
events: {
|
|
5
6
|
[evt: string]: CustomEvent<any>;
|
|
6
7
|
};
|
|
7
8
|
slots: {};
|
|
8
9
|
};
|
|
9
|
-
export type OpacitySliderArrowsProps = typeof __propDef.props;
|
|
10
10
|
export type OpacitySliderArrowsEvents = typeof __propDef.events;
|
|
11
11
|
export type OpacitySliderArrowsSlots = typeof __propDef.slots;
|
|
12
|
-
export default class
|
|
12
|
+
export default class extends SvelteComponentTyped<OpacitySliderArrowsProps, typeof __propDef.events, typeof __propDef.slots> {
|
|
13
13
|
}
|
|
14
14
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-eye-off"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M10.585 10.587a2 2 0 0 0 2.829 2.828" /><path d="M16.681 16.673a8.717 8.717 0 0 1 -4.681 1.327c-3.6 0 -6.6 -2 -9 -6c1.272 -2.12 2.712 -3.678 4.32 -4.674m2.86 -1.146a9.055 9.055 0 0 1 1.82 -.18c3.6 0 6.6 2 9 6c-.666 1.11 -1.379 2.067 -2.138 2.87" /><path d="M3 3l18 18" /></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-eye"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0" /><path d="M21 12c-2.4 4 -5.4 6 -9 6c-3.6 0 -6.6 -2 -9 -6c2.4 -4 5.4 -6 9 -6c3.6 0 6.6 2 9 6" /></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ShadEditor, type TipTapEditor, type TipTapEditorLevel } from '../components/shad-editor';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ShadEditor } from '../components/shad-editor';
|