@kayord/ui 2.1.9 → 2.1.10

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.
Files changed (81) hide show
  1. package/dist/components/custom/combobox/Combobox.svelte.d.ts +1 -1
  2. package/dist/components/ui/accordion/accordion-root.svelte.d.ts +1 -1
  3. package/dist/components/ui/accordion/accordion.svelte.d.ts +1 -1
  4. package/dist/components/ui/audio-wave/audio-wave.svelte +58 -0
  5. package/dist/components/ui/audio-wave/audio-wave.svelte.d.ts +10 -0
  6. package/dist/components/ui/audio-wave/index.d.ts +2 -0
  7. package/dist/components/ui/audio-wave/index.js +2 -0
  8. package/dist/components/ui/calendar/calendar.svelte.d.ts +1 -1
  9. package/dist/components/ui/chip/chip-group.svelte +10 -0
  10. package/dist/components/ui/chip/chip-group.svelte.d.ts +8 -0
  11. package/dist/components/ui/chip/chip.svelte +132 -0
  12. package/dist/components/ui/chip/chip.svelte.d.ts +18 -0
  13. package/dist/components/ui/chip/index.d.ts +3 -0
  14. package/dist/components/ui/chip/index.js +3 -0
  15. package/dist/components/ui/color-picker/color-picker.svelte +474 -0
  16. package/dist/components/ui/color-picker/color-picker.svelte.d.ts +11 -0
  17. package/dist/components/ui/color-picker/index.d.ts +2 -0
  18. package/dist/components/ui/color-picker/index.js +2 -0
  19. package/dist/components/ui/command/command-dialog.svelte.d.ts +1 -1
  20. package/dist/components/ui/command/command-input.svelte.d.ts +1 -1
  21. package/dist/components/ui/command/command.svelte.d.ts +1 -1
  22. package/dist/components/ui/context-menu/context-menu-radio-group.svelte.d.ts +1 -1
  23. package/dist/components/ui/date-strip/ctx.d.ts +10 -0
  24. package/dist/components/ui/date-strip/ctx.js +8 -0
  25. package/dist/components/ui/date-strip/date-strip-item.svelte +52 -0
  26. package/dist/components/ui/date-strip/date-strip-item.svelte.d.ts +8 -0
  27. package/dist/components/ui/date-strip/date-strip.svelte +65 -0
  28. package/dist/components/ui/date-strip/date-strip.svelte.d.ts +15 -0
  29. package/dist/components/ui/date-strip/index.d.ts +3 -0
  30. package/dist/components/ui/date-strip/index.js +3 -0
  31. package/dist/components/ui/dropdown-menu/dropdown-menu-checkbox-group.svelte.d.ts +1 -1
  32. package/dist/components/ui/dropdown-menu/dropdown-menu-radio-group.svelte.d.ts +1 -1
  33. package/dist/components/ui/dynamic-select/ctx.d.ts +15 -0
  34. package/dist/components/ui/dynamic-select/ctx.js +8 -0
  35. package/dist/components/ui/dynamic-select/dynamic-select-content.svelte +42 -0
  36. package/dist/components/ui/dynamic-select/dynamic-select-content.svelte.d.ts +7 -0
  37. package/dist/components/ui/dynamic-select/dynamic-select-item.svelte +16 -0
  38. package/dist/components/ui/dynamic-select/dynamic-select-item.svelte.d.ts +8 -0
  39. package/dist/components/ui/dynamic-select/dynamic-select-trigger.svelte +20 -0
  40. package/dist/components/ui/dynamic-select/dynamic-select-trigger.svelte.d.ts +8 -0
  41. package/dist/components/ui/dynamic-select/dynamic-select.svelte +37 -0
  42. package/dist/components/ui/dynamic-select/dynamic-select.svelte.d.ts +9 -0
  43. package/dist/components/ui/dynamic-select/index.d.ts +18 -0
  44. package/dist/components/ui/dynamic-select/index.js +7 -0
  45. package/dist/components/ui/index.d.ts +7 -0
  46. package/dist/components/ui/index.js +8 -0
  47. package/dist/components/ui/input/input.svelte.d.ts +1 -1
  48. package/dist/components/ui/input-group/input-group-input.svelte.d.ts +2 -2
  49. package/dist/components/ui/input-group/input-group-textarea.svelte.d.ts +1 -1
  50. package/dist/components/ui/input-otp/input-otp.svelte.d.ts +1 -1
  51. package/dist/components/ui/menubar/menubar-radio-group.svelte.d.ts +1 -1
  52. package/dist/components/ui/native-select/native-select.svelte.d.ts +1 -1
  53. package/dist/components/ui/radio-group/radio-group.svelte.d.ts +1 -1
  54. package/dist/components/ui/range-calendar/range-calendar.svelte.d.ts +1 -1
  55. package/dist/components/ui/sidebar/sidebar-input.svelte.d.ts +2 -2
  56. package/dist/components/ui/slider/slider.svelte.d.ts +1 -1
  57. package/dist/components/ui/status-dot/index.d.ts +2 -0
  58. package/dist/components/ui/status-dot/index.js +2 -0
  59. package/dist/components/ui/status-dot/status-dot.svelte +56 -0
  60. package/dist/components/ui/status-dot/status-dot.svelte.d.ts +9 -0
  61. package/dist/components/ui/tabs/tabs.svelte.d.ts +1 -1
  62. package/dist/components/ui/textarea/textarea.svelte.d.ts +1 -1
  63. package/dist/components/ui/timeline/index.d.ts +8 -0
  64. package/dist/components/ui/timeline/index.js +8 -0
  65. package/dist/components/ui/timeline/timeline-content.svelte +16 -0
  66. package/dist/components/ui/timeline/timeline-content.svelte.d.ts +8 -0
  67. package/dist/components/ui/timeline/timeline-date.svelte +10 -0
  68. package/dist/components/ui/timeline/timeline-date.svelte.d.ts +8 -0
  69. package/dist/components/ui/timeline/timeline-description.svelte +10 -0
  70. package/dist/components/ui/timeline/timeline-description.svelte.d.ts +8 -0
  71. package/dist/components/ui/timeline/timeline-item.svelte +16 -0
  72. package/dist/components/ui/timeline/timeline-item.svelte.d.ts +8 -0
  73. package/dist/components/ui/timeline/timeline-separator.svelte +25 -0
  74. package/dist/components/ui/timeline/timeline-separator.svelte.d.ts +8 -0
  75. package/dist/components/ui/timeline/timeline-title.svelte +10 -0
  76. package/dist/components/ui/timeline/timeline-title.svelte.d.ts +8 -0
  77. package/dist/components/ui/timeline/timeline.svelte +17 -0
  78. package/dist/components/ui/timeline/timeline.svelte.d.ts +8 -0
  79. package/dist/components/ui/toggle-group/toggle-group-item.svelte.d.ts +1 -1
  80. package/dist/components/ui/toggle-group/toggle-group.svelte.d.ts +1 -1
  81. package/package.json +4 -3
@@ -0,0 +1,3 @@
1
+ import DateStrip from "./date-strip.svelte";
2
+ import DateStripItem from "./date-strip-item.svelte";
3
+ export { DateStrip as Root, DateStripItem as Item };
@@ -0,0 +1,3 @@
1
+ import DateStrip from "./date-strip.svelte";
2
+ import DateStripItem from "./date-strip-item.svelte";
3
+ export { DateStrip as Root, DateStripItem as Item };
@@ -1,4 +1,4 @@
1
1
  import { DropdownMenu as DropdownMenuPrimitive } from "bits-ui";
2
- declare const DropdownMenuCheckboxGroup: import("svelte").Component<DropdownMenuPrimitive.CheckboxGroupProps, {}, "value" | "ref">;
2
+ declare const DropdownMenuCheckboxGroup: import("svelte").Component<DropdownMenuPrimitive.CheckboxGroupProps, {}, "ref" | "value">;
3
3
  type DropdownMenuCheckboxGroup = ReturnType<typeof DropdownMenuCheckboxGroup>;
4
4
  export default DropdownMenuCheckboxGroup;
@@ -1,4 +1,4 @@
1
1
  import { DropdownMenu as DropdownMenuPrimitive } from "bits-ui";
2
- declare const DropdownMenuRadioGroup: import("svelte").Component<DropdownMenuPrimitive.RadioGroupProps, {}, "value" | "ref">;
2
+ declare const DropdownMenuRadioGroup: import("svelte").Component<DropdownMenuPrimitive.RadioGroupProps, {}, "ref" | "value">;
3
3
  type DropdownMenuRadioGroup = ReturnType<typeof DropdownMenuRadioGroup>;
4
4
  export default DropdownMenuRadioGroup;
@@ -0,0 +1,15 @@
1
+ type DynamicSelectContext = {
2
+ value: {
3
+ value: string;
4
+ };
5
+ open: {
6
+ value: boolean;
7
+ };
8
+ inputValue: {
9
+ value: string;
10
+ };
11
+ setValue: (v: string) => void;
12
+ };
13
+ export declare function setDynamicSelectContext(props: DynamicSelectContext): void;
14
+ export declare function getDynamicSelectContext(): DynamicSelectContext;
15
+ export {};
@@ -0,0 +1,8 @@
1
+ import { getContext, setContext } from "svelte";
2
+ const DYNAMIC_SELECT_KEY = Symbol("dynamic-select");
3
+ export function setDynamicSelectContext(props) {
4
+ setContext(DYNAMIC_SELECT_KEY, props);
5
+ }
6
+ export function getDynamicSelectContext() {
7
+ return getContext(DYNAMIC_SELECT_KEY);
8
+ }
@@ -0,0 +1,42 @@
1
+ <script lang="ts">
2
+ import * as Popover from "../popover";
3
+ import * as Command from "../command";
4
+ import { getDynamicSelectContext } from "./ctx";
5
+ import type { Snippet } from "svelte";
6
+
7
+ let { children }: { children: Snippet } = $props();
8
+ const ctx = getDynamicSelectContext();
9
+
10
+ let internalInput = $state("");
11
+
12
+ function handleKeyDown(e: KeyboardEvent) {
13
+ if (e.key === "Enter" && internalInput.trim() !== "") {
14
+ ctx.setValue(internalInput);
15
+ internalInput = "";
16
+ }
17
+ }
18
+ </script>
19
+
20
+ <Popover.Content
21
+ class="w-[var(--bits-popover-anchor-width)] min-w-[var(--bits-popover-anchor-width)] p-0"
22
+ align="start"
23
+ >
24
+ <Command.Root>
25
+ <Command.Input placeholder="Search or type custom..." bind:value={internalInput} onkeydown={handleKeyDown} />
26
+ <Command.List>
27
+ <Command.Empty>
28
+ {#if internalInput.trim() !== ""}
29
+ <button
30
+ class="hover:bg-accent hover:text-accent-foreground flex w-full cursor-pointer items-center px-2 py-1.5 text-sm outline-none"
31
+ onclick={() => ctx.setValue(internalInput)}
32
+ >
33
+ Add "{internalInput}"
34
+ </button>
35
+ {:else}
36
+ No results found.
37
+ {/if}
38
+ </Command.Empty>
39
+ {@render children()}
40
+ </Command.List>
41
+ </Command.Root>
42
+ </Popover.Content>
@@ -0,0 +1,7 @@
1
+ import type { Snippet } from "svelte";
2
+ type $$ComponentProps = {
3
+ children: Snippet;
4
+ };
5
+ declare const DynamicSelectContent: import("svelte").Component<$$ComponentProps, {}, "">;
6
+ type DynamicSelectContent = ReturnType<typeof DynamicSelectContent>;
7
+ export default DynamicSelectContent;
@@ -0,0 +1,16 @@
1
+ <script lang="ts">
2
+ import { cn } from "../../../utils";
3
+ import * as Command from "../command";
4
+ import { Check } from "lucide-svelte";
5
+ import { getDynamicSelectContext } from "./ctx";
6
+ import type { Snippet } from "svelte";
7
+
8
+ let { value, children }: { value: string; children: Snippet } = $props();
9
+ const ctx = getDynamicSelectContext();
10
+ const isSelected = $derived(ctx.value.value === value);
11
+ </script>
12
+
13
+ <Command.Item {value} onSelect={() => ctx.setValue(value)} class="flex cursor-pointer items-center justify-between">
14
+ {@render children()}
15
+ <Check class={cn("h-4 w-4", isSelected ? "opacity-100" : "opacity-0")} />
16
+ </Command.Item>
@@ -0,0 +1,8 @@
1
+ import type { Snippet } from "svelte";
2
+ type $$ComponentProps = {
3
+ value: string;
4
+ children: Snippet;
5
+ };
6
+ declare const DynamicSelectItem: import("svelte").Component<$$ComponentProps, {}, "">;
7
+ type DynamicSelectItem = ReturnType<typeof DynamicSelectItem>;
8
+ export default DynamicSelectItem;
@@ -0,0 +1,20 @@
1
+ <script lang="ts">
2
+ import { cn } from "../../../utils";
3
+ import * as Popover from "../popover";
4
+ import { buttonVariants } from "../button";
5
+ import { ChevronDown } from "lucide-svelte";
6
+ import { getDynamicSelectContext } from "./ctx";
7
+ import type { Snippet } from "svelte";
8
+
9
+ let { class: className, children }: { class?: string; children: Snippet } = $props();
10
+ const ctx = getDynamicSelectContext();
11
+ </script>
12
+
13
+ <Popover.Trigger class={cn(buttonVariants({ variant: "outline" }), "w-full justify-between font-normal", className)}>
14
+ {#if ctx.value.value}
15
+ {ctx.value.value}
16
+ {:else}
17
+ {@render children()}
18
+ {/if}
19
+ <ChevronDown class="ml-2 h-4 w-4 shrink-0 opacity-50" />
20
+ </Popover.Trigger>
@@ -0,0 +1,8 @@
1
+ import type { Snippet } from "svelte";
2
+ type $$ComponentProps = {
3
+ class?: string;
4
+ children: Snippet;
5
+ };
6
+ declare const DynamicSelectTrigger: import("svelte").Component<$$ComponentProps, {}, "">;
7
+ type DynamicSelectTrigger = ReturnType<typeof DynamicSelectTrigger>;
8
+ export default DynamicSelectTrigger;
@@ -0,0 +1,37 @@
1
+ <script lang="ts">
2
+ import * as Popover from "../popover";
3
+ import { setDynamicSelectContext } from "./ctx";
4
+ import type { Snippet } from "svelte";
5
+
6
+ let {
7
+ value = $bindable(""),
8
+ open = $bindable(false),
9
+ children,
10
+ }: {
11
+ value?: string;
12
+ open?: boolean;
13
+ children: Snippet;
14
+ } = $props();
15
+
16
+ let inputValue = $state("");
17
+
18
+ setDynamicSelectContext({
19
+ get value() {
20
+ return { value };
21
+ },
22
+ get open() {
23
+ return { value: open };
24
+ },
25
+ get inputValue() {
26
+ return { value: inputValue };
27
+ },
28
+ setValue: (v: string) => {
29
+ value = v;
30
+ open = false;
31
+ },
32
+ });
33
+ </script>
34
+
35
+ <Popover.Root bind:open>
36
+ {@render children()}
37
+ </Popover.Root>
@@ -0,0 +1,9 @@
1
+ import type { Snippet } from "svelte";
2
+ type $$ComponentProps = {
3
+ value?: string;
4
+ open?: boolean;
5
+ children: Snippet;
6
+ };
7
+ declare const DynamicSelect: import("svelte").Component<$$ComponentProps, {}, "value" | "open">;
8
+ type DynamicSelect = ReturnType<typeof DynamicSelect>;
9
+ export default DynamicSelect;
@@ -0,0 +1,18 @@
1
+ import Root from "./dynamic-select.svelte";
2
+ import Trigger from "./dynamic-select-trigger.svelte";
3
+ import Content from "./dynamic-select-content.svelte";
4
+ import Item from "./dynamic-select-item.svelte";
5
+ declare const Group: import("svelte").Component<Omit<{
6
+ value?: string;
7
+ forceMount?: boolean;
8
+ }, "child" | "children"> & {
9
+ child?: import("svelte").Snippet<[{
10
+ props: Record<string, unknown>;
11
+ }]> | undefined;
12
+ children?: import("svelte").Snippet<[]> | undefined;
13
+ style?: import("bits-ui").StyleProperties | string | null | undefined;
14
+ ref?: HTMLElement | null | undefined;
15
+ } & import("bits-ui").Without<import("bits-ui").BitsPrimitiveDivAttributes, import("bits-ui").CommandGroupPropsWithoutHTML> & {
16
+ heading?: string;
17
+ }, {}, "ref">;
18
+ export { Root, Trigger, Content, Item, Group };
@@ -0,0 +1,7 @@
1
+ import Root from "./dynamic-select.svelte";
2
+ import Trigger from "./dynamic-select-trigger.svelte";
3
+ import Content from "./dynamic-select-content.svelte";
4
+ import Item from "./dynamic-select-item.svelte";
5
+ import { CommandGroup } from "../command";
6
+ const Group = CommandGroup;
7
+ export { Root, Trigger, Content, Item, Group };
@@ -45,3 +45,10 @@ export { Textarea } from "./textarea/index.js";
45
45
  export { Toggle } from "./toggle/index.js";
46
46
  export * as ToggleGroup from "./toggle-group/index.js";
47
47
  export * as Tooltip from "./tooltip/index.js";
48
+ export * as Chip from "./chip";
49
+ export { Root as ColorPicker } from "./color-picker";
50
+ export * as DateStrip from "./date-strip";
51
+ export * as Timeline from "./timeline";
52
+ export * as DynamicSelect from "./dynamic-select";
53
+ export { AudioWave } from "./audio-wave";
54
+ export * as StatusDot from "./status-dot";
@@ -45,3 +45,11 @@ export { Textarea } from "./textarea/index.js";
45
45
  export { Toggle } from "./toggle/index.js";
46
46
  export * as ToggleGroup from "./toggle-group/index.js";
47
47
  export * as Tooltip from "./tooltip/index.js";
48
+ // More
49
+ export * as Chip from "./chip";
50
+ export { Root as ColorPicker } from "./color-picker";
51
+ export * as DateStrip from "./date-strip";
52
+ export * as Timeline from "./timeline";
53
+ export * as DynamicSelect from "./dynamic-select";
54
+ export { AudioWave } from "./audio-wave";
55
+ export * as StatusDot from "./status-dot";
@@ -8,6 +8,6 @@ type Props = WithElementRef<Omit<HTMLInputAttributes, "type"> & ({
8
8
  type?: InputType;
9
9
  files?: undefined;
10
10
  })>;
11
- declare const Input: import("svelte").Component<Props, {}, "value" | "ref" | "files">;
11
+ declare const Input: import("svelte").Component<Props, {}, "ref" | "value" | "files">;
12
12
  type Input = ReturnType<typeof Input>;
13
13
  export default Input;
@@ -2,10 +2,10 @@ declare const InputGroupInput: import("svelte").Component<(Omit<import("svelte/e
2
2
  type: "file";
3
3
  files?: FileList;
4
4
  } | {
5
- type?: "number" | "hidden" | "color" | "search" | "button" | "checkbox" | "radio" | (string & {}) | "text" | "tel" | "url" | "email" | "date" | "time" | "submit" | "reset" | "datetime-local" | "image" | "month" | "password" | "range" | "week";
5
+ type?: "number" | "submit" | "reset" | "button" | "search" | "checkbox" | "radio" | (string & {}) | "text" | "tel" | "url" | "email" | "hidden" | "color" | "date" | "time" | "datetime-local" | "image" | "month" | "password" | "range" | "week";
6
6
  files?: undefined;
7
7
  })) & {
8
8
  ref?: HTMLElement | null | undefined;
9
- }, {}, "value" | "ref">;
9
+ }, {}, "ref" | "value">;
10
10
  type InputGroupInput = ReturnType<typeof InputGroupInput>;
11
11
  export default InputGroupInput;
@@ -1,3 +1,3 @@
1
- declare const InputGroupTextarea: import("svelte").Component<Omit<import("../../../utils.js").WithElementRef<import("svelte/elements").HTMLTextareaAttributes>, "children">, {}, "value" | "ref">;
1
+ declare const InputGroupTextarea: import("svelte").Component<Omit<import("../../../utils.js").WithElementRef<import("svelte/elements").HTMLTextareaAttributes>, "children">, {}, "ref" | "value">;
2
2
  type InputGroupTextarea = ReturnType<typeof InputGroupTextarea>;
3
3
  export default InputGroupTextarea;
@@ -1,4 +1,4 @@
1
1
  import { PinInput as InputOTPPrimitive } from "bits-ui";
2
- declare const InputOtp: import("svelte").Component<InputOTPPrimitive.RootProps, {}, "value" | "ref">;
2
+ declare const InputOtp: import("svelte").Component<InputOTPPrimitive.RootProps, {}, "ref" | "value">;
3
3
  type InputOtp = ReturnType<typeof InputOtp>;
4
4
  export default InputOtp;
@@ -1,4 +1,4 @@
1
1
  import { Menubar as MenubarPrimitive } from "bits-ui";
2
- declare const MenubarRadioGroup: import("svelte").Component<MenubarPrimitive.RadioGroupProps, {}, "value" | "ref">;
2
+ declare const MenubarRadioGroup: import("svelte").Component<MenubarPrimitive.RadioGroupProps, {}, "ref" | "value">;
3
3
  type MenubarRadioGroup = ReturnType<typeof MenubarRadioGroup>;
4
4
  export default MenubarRadioGroup;
@@ -1,5 +1,5 @@
1
1
  import { type WithElementRef } from "../../../utils.js";
2
2
  import type { HTMLSelectAttributes } from "svelte/elements";
3
- declare const NativeSelect: import("svelte").Component<WithElementRef<HTMLSelectAttributes>, {}, "value" | "ref">;
3
+ declare const NativeSelect: import("svelte").Component<WithElementRef<HTMLSelectAttributes>, {}, "ref" | "value">;
4
4
  type NativeSelect = ReturnType<typeof NativeSelect>;
5
5
  export default NativeSelect;
@@ -1,4 +1,4 @@
1
1
  import { RadioGroup as RadioGroupPrimitive } from "bits-ui";
2
- declare const RadioGroup: import("svelte").Component<RadioGroupPrimitive.RootProps, {}, "value" | "ref">;
2
+ declare const RadioGroup: import("svelte").Component<RadioGroupPrimitive.RootProps, {}, "ref" | "value">;
3
3
  type RadioGroup = ReturnType<typeof RadioGroup>;
4
4
  export default RadioGroup;
@@ -16,6 +16,6 @@ type $$ComponentProps = WithoutChildrenOrChild<RangeCalendarPrimitive.RootProps>
16
16
  outsideMonth: boolean;
17
17
  }]>;
18
18
  };
19
- declare const RangeCalendar: import("svelte").Component<$$ComponentProps, {}, "value" | "placeholder" | "ref">;
19
+ declare const RangeCalendar: import("svelte").Component<$$ComponentProps, {}, "ref" | "value" | "placeholder">;
20
20
  type RangeCalendar = ReturnType<typeof RangeCalendar>;
21
21
  export default RangeCalendar;
@@ -2,10 +2,10 @@ declare const SidebarInput: import("svelte").Component<(Omit<import("svelte/elem
2
2
  type: "file";
3
3
  files?: FileList;
4
4
  } | {
5
- type?: "number" | "hidden" | "color" | "search" | "button" | "checkbox" | "radio" | (string & {}) | "text" | "tel" | "url" | "email" | "date" | "time" | "submit" | "reset" | "datetime-local" | "image" | "month" | "password" | "range" | "week";
5
+ type?: "number" | "submit" | "reset" | "button" | "search" | "checkbox" | "radio" | (string & {}) | "text" | "tel" | "url" | "email" | "hidden" | "color" | "date" | "time" | "datetime-local" | "image" | "month" | "password" | "range" | "week";
6
6
  files?: undefined;
7
7
  })) & {
8
8
  ref?: HTMLElement | null | undefined;
9
- }, {}, "value" | "ref">;
9
+ }, {}, "ref" | "value">;
10
10
  type SidebarInput = ReturnType<typeof SidebarInput>;
11
11
  export default SidebarInput;
@@ -1,5 +1,5 @@
1
1
  import { Slider as SliderPrimitive } from "bits-ui";
2
2
  import { type WithoutChildrenOrChild } from "../../../utils.js";
3
- declare const Slider: import("svelte").Component<WithoutChildrenOrChild<SliderPrimitive.RootProps>, {}, "value" | "ref">;
3
+ declare const Slider: import("svelte").Component<WithoutChildrenOrChild<SliderPrimitive.RootProps>, {}, "ref" | "value">;
4
4
  type Slider = ReturnType<typeof Slider>;
5
5
  export default Slider;
@@ -0,0 +1,2 @@
1
+ import StatusDot from "./status-dot.svelte";
2
+ export { StatusDot as Root };
@@ -0,0 +1,2 @@
1
+ import StatusDot from "./status-dot.svelte";
2
+ export { StatusDot as Root };
@@ -0,0 +1,56 @@
1
+ <script lang="ts">
2
+ import { cn } from "../../../utils";
3
+ import { tv, type VariantProps } from "tailwind-variants";
4
+
5
+ const dotVariants = tv({
6
+ base: "rounded-full",
7
+ variants: {
8
+ variant: {
9
+ default: "bg-primary text-primary",
10
+ success: "bg-emerald-500 text-emerald-500",
11
+ warning: "bg-amber-500 text-amber-500",
12
+ error: "bg-rose-500 text-rose-500",
13
+ info: "bg-sky-500 text-sky-500",
14
+ muted: "bg-muted-foreground/50 text-muted-foreground/50",
15
+ },
16
+ size: {
17
+ sm: "h-2 w-2",
18
+ md: "h-3 w-3",
19
+ lg: "h-4 w-4",
20
+ },
21
+ },
22
+ defaultVariants: {
23
+ variant: "default",
24
+ size: "md",
25
+ },
26
+ });
27
+
28
+ type Variant = VariantProps<typeof dotVariants>["variant"];
29
+ type Size = VariantProps<typeof dotVariants>["size"];
30
+
31
+ let {
32
+ class: className,
33
+ variant = "default",
34
+ size = "md",
35
+ pulse = false,
36
+ ...rest
37
+ }: {
38
+ class?: string;
39
+ variant?: Variant;
40
+ size?: Size;
41
+ pulse?: boolean;
42
+ [key: string]: any;
43
+ } = $props();
44
+ </script>
45
+
46
+ <span class={cn("relative flex items-center justify-center", dotVariants({ size }), className)} {...rest}>
47
+ {#if pulse}
48
+ <span
49
+ class={cn(
50
+ "absolute inline-flex h-full w-full animate-ping rounded-full opacity-75",
51
+ dotVariants({ variant, size: undefined })
52
+ )}
53
+ ></span>
54
+ {/if}
55
+ <span class={cn("relative inline-flex rounded-full", dotVariants({ variant, size }))}></span>
56
+ </span>
@@ -0,0 +1,9 @@
1
+ declare const StatusDot: import("svelte").Component<{
2
+ [key: string]: any;
3
+ class?: string;
4
+ variant?: "default" | "error" | "muted" | "success" | "warning" | "info" | undefined;
5
+ size?: "sm" | "lg" | "md" | undefined;
6
+ pulse?: boolean;
7
+ }, {}, "">;
8
+ type StatusDot = ReturnType<typeof StatusDot>;
9
+ export default StatusDot;
@@ -1,4 +1,4 @@
1
1
  import { Tabs as TabsPrimitive } from "bits-ui";
2
- declare const Tabs: import("svelte").Component<TabsPrimitive.RootProps, {}, "value" | "ref">;
2
+ declare const Tabs: import("svelte").Component<TabsPrimitive.RootProps, {}, "ref" | "value">;
3
3
  type Tabs = ReturnType<typeof Tabs>;
4
4
  export default Tabs;
@@ -1,5 +1,5 @@
1
1
  import { type WithElementRef } from "../../../utils.js";
2
2
  import type { HTMLTextareaAttributes } from "svelte/elements";
3
- declare const Textarea: import("svelte").Component<Omit<WithElementRef<HTMLTextareaAttributes>, "children">, {}, "value" | "ref">;
3
+ declare const Textarea: import("svelte").Component<Omit<WithElementRef<HTMLTextareaAttributes>, "children">, {}, "ref" | "value">;
4
4
  type Textarea = ReturnType<typeof Textarea>;
5
5
  export default Textarea;
@@ -0,0 +1,8 @@
1
+ import Root from "./timeline.svelte";
2
+ import Item from "./timeline-item.svelte";
3
+ import Separator from "./timeline-separator.svelte";
4
+ import Content from "./timeline-content.svelte";
5
+ import Title from "./timeline-title.svelte";
6
+ import Date from "./timeline-date.svelte";
7
+ import Description from "./timeline-description.svelte";
8
+ export { Root, Item, Separator, Content, Title, Date, Description };
@@ -0,0 +1,8 @@
1
+ import Root from "./timeline.svelte";
2
+ import Item from "./timeline-item.svelte";
3
+ import Separator from "./timeline-separator.svelte";
4
+ import Content from "./timeline-content.svelte";
5
+ import Title from "./timeline-title.svelte";
6
+ import Date from "./timeline-date.svelte";
7
+ import Description from "./timeline-description.svelte";
8
+ export { Root, Item, Separator, Content, Title, Date, Description };
@@ -0,0 +1,16 @@
1
+ <script lang="ts">
2
+ import { cn } from "../../../utils";
3
+ import type { Snippet } from "svelte";
4
+
5
+ let {
6
+ class: className,
7
+ children,
8
+ }: {
9
+ class?: string;
10
+ children: Snippet;
11
+ } = $props();
12
+ </script>
13
+
14
+ <div class={cn("ml-4 flex flex-1 flex-col gap-1 pt-0.5", className)}>
15
+ {@render children()}
16
+ </div>
@@ -0,0 +1,8 @@
1
+ import type { Snippet } from "svelte";
2
+ type $$ComponentProps = {
3
+ class?: string;
4
+ children: Snippet;
5
+ };
6
+ declare const TimelineContent: import("svelte").Component<$$ComponentProps, {}, "">;
7
+ type TimelineContent = ReturnType<typeof TimelineContent>;
8
+ export default TimelineContent;
@@ -0,0 +1,10 @@
1
+ <script lang="ts">
2
+ import { cn } from "../../../utils";
3
+ import type { Snippet } from "svelte";
4
+
5
+ let { class: className, children }: { class?: string; children: Snippet } = $props();
6
+ </script>
7
+
8
+ <p class={cn("text-muted-foreground mb-0.5 text-xs", className)}>
9
+ {@render children()}
10
+ </p>
@@ -0,0 +1,8 @@
1
+ import type { Snippet } from "svelte";
2
+ type $$ComponentProps = {
3
+ class?: string;
4
+ children: Snippet;
5
+ };
6
+ declare const TimelineDate: import("svelte").Component<$$ComponentProps, {}, "">;
7
+ type TimelineDate = ReturnType<typeof TimelineDate>;
8
+ export default TimelineDate;
@@ -0,0 +1,10 @@
1
+ <script lang="ts">
2
+ import { cn } from "../../../utils";
3
+ import type { Snippet } from "svelte";
4
+
5
+ let { class: className, children }: { class?: string; children: Snippet } = $props();
6
+ </script>
7
+
8
+ <p class={cn("text-muted-foreground mt-1 text-sm", className)}>
9
+ {@render children()}
10
+ </p>
@@ -0,0 +1,8 @@
1
+ import type { Snippet } from "svelte";
2
+ type $$ComponentProps = {
3
+ class?: string;
4
+ children: Snippet;
5
+ };
6
+ declare const TimelineDescription: import("svelte").Component<$$ComponentProps, {}, "">;
7
+ type TimelineDescription = ReturnType<typeof TimelineDescription>;
8
+ export default TimelineDescription;
@@ -0,0 +1,16 @@
1
+ <script lang="ts">
2
+ import { cn } from "../../../utils";
3
+ import type { Snippet } from "svelte";
4
+
5
+ let {
6
+ class: className,
7
+ children,
8
+ }: {
9
+ class?: string;
10
+ children: Snippet;
11
+ } = $props();
12
+ </script>
13
+
14
+ <div class={cn("group relative flex items-start pb-8 last:pb-0", className)}>
15
+ {@render children()}
16
+ </div>
@@ -0,0 +1,8 @@
1
+ import type { Snippet } from "svelte";
2
+ type $$ComponentProps = {
3
+ class?: string;
4
+ children: Snippet;
5
+ };
6
+ declare const TimelineItem: import("svelte").Component<$$ComponentProps, {}, "">;
7
+ type TimelineItem = ReturnType<typeof TimelineItem>;
8
+ export default TimelineItem;
@@ -0,0 +1,25 @@
1
+ <script lang="ts">
2
+ import { cn } from "../../../utils";
3
+ import type { Snippet } from "svelte";
4
+
5
+ let {
6
+ class: className,
7
+ children,
8
+ }: {
9
+ class?: string;
10
+ children?: Snippet;
11
+ } = $props();
12
+ </script>
13
+
14
+ <div
15
+ class={cn(
16
+ "bg-background relative z-10 flex h-6 w-6 shrink-0 items-center justify-center rounded-full border shadow-sm",
17
+ className
18
+ )}
19
+ >
20
+ {#if children}
21
+ {@render children()}
22
+ {:else}
23
+ <div class="bg-primary h-1.5 w-1.5 rounded-full" />
24
+ {/if}
25
+ </div>
@@ -0,0 +1,8 @@
1
+ import type { Snippet } from "svelte";
2
+ type $$ComponentProps = {
3
+ class?: string;
4
+ children?: Snippet;
5
+ };
6
+ declare const TimelineSeparator: import("svelte").Component<$$ComponentProps, {}, "">;
7
+ type TimelineSeparator = ReturnType<typeof TimelineSeparator>;
8
+ export default TimelineSeparator;
@@ -0,0 +1,10 @@
1
+ <script lang="ts">
2
+ import { cn } from "../../../utils";
3
+ import type { Snippet } from "svelte";
4
+
5
+ let { class: className, children }: { class?: string; children: Snippet } = $props();
6
+ </script>
7
+
8
+ <h3 class={cn("text-sm leading-none font-semibold tracking-tight", className)}>
9
+ {@render children()}
10
+ </h3>
@@ -0,0 +1,8 @@
1
+ import type { Snippet } from "svelte";
2
+ type $$ComponentProps = {
3
+ class?: string;
4
+ children: Snippet;
5
+ };
6
+ declare const TimelineTitle: import("svelte").Component<$$ComponentProps, {}, "">;
7
+ type TimelineTitle = ReturnType<typeof TimelineTitle>;
8
+ export default TimelineTitle;