ui-ingredients 0.0.23 → 0.0.25

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. package/README.md +5 -5
  2. package/dist/date-picker/date-picker.d.ts +1 -0
  3. package/dist/date-picker/date-picker.js +1 -0
  4. package/dist/date-picker/index.d.ts +1 -0
  5. package/dist/date-picker/view-trigger.svelte +21 -0
  6. package/dist/date-picker/view-trigger.svelte.d.ts +18 -0
  7. package/dist/index.d.ts +3 -0
  8. package/dist/index.js +3 -0
  9. package/dist/progress/index.d.ts +1 -0
  10. package/dist/progress/progress.d.ts +1 -0
  11. package/dist/progress/progress.js +1 -0
  12. package/dist/progress/view.svelte +21 -0
  13. package/dist/progress/view.svelte.d.ts +18 -0
  14. package/dist/signature-pad/guide.svelte +2 -2
  15. package/dist/splitter/context.svelte.d.ts +3 -0
  16. package/dist/splitter/context.svelte.js +2 -0
  17. package/dist/splitter/create-splitter.svelte.d.ts +7 -0
  18. package/dist/splitter/create-splitter.svelte.js +17 -0
  19. package/dist/splitter/index.d.ts +4 -0
  20. package/dist/splitter/index.js +1 -0
  21. package/dist/splitter/panel.svelte +29 -0
  22. package/dist/splitter/panel.svelte.d.ts +18 -0
  23. package/dist/splitter/resize-trigger.svelte +41 -0
  24. package/dist/splitter/resize-trigger.svelte.d.ts +18 -0
  25. package/dist/splitter/root.svelte +44 -0
  26. package/dist/splitter/root.svelte.d.ts +18 -0
  27. package/dist/splitter/splitter.d.ts +4 -0
  28. package/dist/splitter/splitter.js +4 -0
  29. package/dist/time-picker/clear-trigger.svelte +20 -0
  30. package/dist/time-picker/clear-trigger.svelte.d.ts +18 -0
  31. package/dist/time-picker/column.svelte +21 -0
  32. package/dist/time-picker/column.svelte.d.ts +18 -0
  33. package/dist/time-picker/content.svelte +20 -0
  34. package/dist/time-picker/content.svelte.d.ts +18 -0
  35. package/dist/time-picker/context.svelte.d.ts +3 -0
  36. package/dist/time-picker/context.svelte.js +2 -0
  37. package/dist/time-picker/control.svelte +20 -0
  38. package/dist/time-picker/control.svelte.d.ts +18 -0
  39. package/dist/time-picker/create-time-picker.svelte.d.ts +8 -0
  40. package/dist/time-picker/create-time-picker.svelte.js +20 -0
  41. package/dist/time-picker/hour-cell.svelte +21 -0
  42. package/dist/time-picker/hour-cell.svelte.d.ts +18 -0
  43. package/dist/time-picker/index.d.ts +15 -0
  44. package/dist/time-picker/index.js +1 -0
  45. package/dist/time-picker/input.svelte +18 -0
  46. package/dist/time-picker/input.svelte.d.ts +18 -0
  47. package/dist/time-picker/label.svelte +20 -0
  48. package/dist/time-picker/label.svelte.d.ts +18 -0
  49. package/dist/time-picker/minute-cell.svelte +21 -0
  50. package/dist/time-picker/minute-cell.svelte.d.ts +18 -0
  51. package/dist/time-picker/period-cell.svelte +28 -0
  52. package/dist/time-picker/period-cell.svelte.d.ts +18 -0
  53. package/dist/time-picker/positioner.svelte +20 -0
  54. package/dist/time-picker/positioner.svelte.d.ts +18 -0
  55. package/dist/time-picker/root.svelte +70 -0
  56. package/dist/time-picker/root.svelte.d.ts +18 -0
  57. package/dist/time-picker/second-cell.svelte +21 -0
  58. package/dist/time-picker/second-cell.svelte.d.ts +18 -0
  59. package/dist/time-picker/spacer.svelte +20 -0
  60. package/dist/time-picker/spacer.svelte.d.ts +18 -0
  61. package/dist/time-picker/time-picker.d.ts +15 -0
  62. package/dist/time-picker/time-picker.js +15 -0
  63. package/dist/time-picker/trigger.svelte +20 -0
  64. package/dist/time-picker/trigger.svelte.d.ts +18 -0
  65. package/dist/tree-view/branch-content.svelte +21 -0
  66. package/dist/tree-view/branch-content.svelte.d.ts +18 -0
  67. package/dist/tree-view/branch-control.svelte +21 -0
  68. package/dist/tree-view/branch-control.svelte.d.ts +18 -0
  69. package/dist/tree-view/branch-indicator.svelte +21 -0
  70. package/dist/tree-view/branch-indicator.svelte.d.ts +18 -0
  71. package/dist/tree-view/branch-text.svelte +21 -0
  72. package/dist/tree-view/branch-text.svelte.d.ts +18 -0
  73. package/dist/tree-view/branch-trigger.svelte +21 -0
  74. package/dist/tree-view/branch-trigger.svelte.d.ts +18 -0
  75. package/dist/tree-view/branch.svelte +40 -0
  76. package/dist/tree-view/branch.svelte.d.ts +18 -0
  77. package/dist/tree-view/context.svelte.d.ts +6 -0
  78. package/dist/tree-view/context.svelte.js +4 -0
  79. package/dist/tree-view/create-tree-view.svelte.d.ts +7 -0
  80. package/dist/tree-view/create-tree-view.svelte.js +17 -0
  81. package/dist/tree-view/index.d.ts +13 -0
  82. package/dist/tree-view/index.js +1 -0
  83. package/dist/tree-view/item-indicator.svelte +21 -0
  84. package/dist/tree-view/item-indicator.svelte.d.ts +18 -0
  85. package/dist/tree-view/item-text.svelte +21 -0
  86. package/dist/tree-view/item-text.svelte.d.ts +18 -0
  87. package/dist/tree-view/item.svelte +39 -0
  88. package/dist/tree-view/item.svelte.d.ts +18 -0
  89. package/dist/tree-view/label.svelte +20 -0
  90. package/dist/tree-view/label.svelte.d.ts +18 -0
  91. package/dist/tree-view/root.svelte +54 -0
  92. package/dist/tree-view/root.svelte.d.ts +18 -0
  93. package/dist/tree-view/tree-view.d.ts +13 -0
  94. package/dist/tree-view/tree-view.js +13 -0
  95. package/dist/tree-view/tree.svelte +20 -0
  96. package/dist/tree-view/tree.svelte.d.ts +18 -0
  97. package/package.json +1 -1
  98. package/dist/time-picker/.gitkeep +0 -0
  99. package/dist/tree-view/.gitkeep +0 -0
@@ -0,0 +1,20 @@
1
+ import { getEnvironmentContext } from '../environment-provider/context.svelte.js';
2
+ import { getLocaleContext } from '../locale-provider/context.svelte.js';
3
+ import { createUniqueId } from '../utils.svelte.js';
4
+ import { normalizeProps, reflect, useMachine } from '@zag-js/svelte';
5
+ import * as timePicker from '@zag-js/time-picker';
6
+ export function createTimePicker(props) {
7
+ const locale = getLocaleContext();
8
+ const environment = getEnvironmentContext();
9
+ const [state, send] = useMachine(timePicker.machine({
10
+ ...props,
11
+ id: props.id ?? createUniqueId(),
12
+ dir: locale?.dir,
13
+ open: props.defaultOpen,
14
+ locale: props.locale ?? locale?.locale,
15
+ getRootNode: environment?.getRootNode,
16
+ 'open.controlled': props.defaultOpen != null,
17
+ }));
18
+ const api = $derived(reflect(() => timePicker.connect(state, send, normalizeProps)));
19
+ return api;
20
+ }
@@ -0,0 +1,21 @@
1
+ <script lang="ts" module>
2
+ import type {Assign, HtmlProps} from '../types.js';
3
+ import type {CellProps} from '@zag-js/time-picker';
4
+
5
+ export interface TimePickerHourCellProps extends Assign<HtmlProps<'div'>, CellProps> {}
6
+ </script>
7
+
8
+ <script lang="ts">
9
+ import {mergeProps} from '@zag-js/svelte';
10
+ import {timePickerContext} from './context.svelte.js';
11
+
12
+ let {value, children, ...props}: TimePickerHourCellProps = $props();
13
+
14
+ let timePicker = timePickerContext.get();
15
+
16
+ let attrs = $derived(mergeProps(props, timePicker.getHourCellProps({value})));
17
+ </script>
18
+
19
+ <div {...attrs}>
20
+ {@render children?.()}
21
+ </div>
@@ -0,0 +1,18 @@
1
+ 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> {
2
+ new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
3
+ $$bindings?: Bindings;
4
+ } & Exports;
5
+ (internal: unknown, props: Props & {
6
+ $$events?: Events;
7
+ $$slots?: Slots;
8
+ }): Exports & {
9
+ $set?: any;
10
+ $on?: any;
11
+ };
12
+ z_$$bindings?: Bindings;
13
+ }
14
+ declare const HourCell: $$__sveltets_2_IsomorphicComponent<TimePickerHourCellProps, {
15
+ [evt: string]: CustomEvent<any>;
16
+ }, {}, {}, "">;
17
+ type HourCell = InstanceType<typeof HourCell>;
18
+ export default HourCell;
@@ -0,0 +1,15 @@
1
+ export * as TimePicker from './time-picker.js';
2
+ export type { TimePickerClearTriggerProps } from './clear-trigger.svelte';
3
+ export type { TimePickerColumnProps } from './column.svelte';
4
+ export type { TimePickerContentProps } from './content.svelte';
5
+ export type { TimePickerControlProps } from './control.svelte';
6
+ export type { TimePickerHourCellProps } from './hour-cell.svelte';
7
+ export type { TimePickerInputProps } from './input.svelte';
8
+ export type { TimePickerLabelProps } from './label.svelte';
9
+ export type { TimePickerMinuteCellProps } from './minute-cell.svelte';
10
+ export type { TimePickerPeriodCellProps } from './period-cell.svelte';
11
+ export type { TimePickerPositionerProps } from './positioner.svelte';
12
+ export type { TimePickerProps } from './root.svelte';
13
+ export type { TimePickerSecondCellProps } from './second-cell.svelte';
14
+ export type { TimePickerSpacerProps } from './spacer.svelte';
15
+ export type { TimePickerTriggerProps } from './trigger.svelte';
@@ -0,0 +1 @@
1
+ export * as TimePicker from './time-picker.js';
@@ -0,0 +1,18 @@
1
+ <script lang="ts" module>
2
+ import type {HtmlProps} from '../types.js';
3
+
4
+ export interface TimePickerInputProps extends HtmlProps<'input'> {}
5
+ </script>
6
+
7
+ <script lang="ts">
8
+ import {mergeProps} from '@zag-js/svelte';
9
+ import {timePickerContext} from './context.svelte.js';
10
+
11
+ let {children, ...props}: TimePickerInputProps = $props();
12
+
13
+ let timePicker = timePickerContext.get();
14
+
15
+ let attrs = $derived(mergeProps(props, timePicker.getInputProps()));
16
+ </script>
17
+
18
+ <input {...attrs} />
@@ -0,0 +1,18 @@
1
+ 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> {
2
+ new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
3
+ $$bindings?: Bindings;
4
+ } & Exports;
5
+ (internal: unknown, props: Props & {
6
+ $$events?: Events;
7
+ $$slots?: Slots;
8
+ }): Exports & {
9
+ $set?: any;
10
+ $on?: any;
11
+ };
12
+ z_$$bindings?: Bindings;
13
+ }
14
+ declare const Input: $$__sveltets_2_IsomorphicComponent<TimePickerInputProps, {
15
+ [evt: string]: CustomEvent<any>;
16
+ }, {}, {}, "">;
17
+ type Input = InstanceType<typeof Input>;
18
+ export default Input;
@@ -0,0 +1,20 @@
1
+ <script lang="ts" module>
2
+ import type {HtmlProps} from '../types.js';
3
+
4
+ export interface TimePickerLabelProps extends HtmlProps<'label'> {}
5
+ </script>
6
+
7
+ <script lang="ts">
8
+ import {mergeProps} from '@zag-js/svelte';
9
+ import {timePickerContext} from './context.svelte.js';
10
+
11
+ let {children, ...props}: TimePickerLabelProps = $props();
12
+
13
+ let timePicker = timePickerContext.get();
14
+
15
+ let attrs = $derived(mergeProps(props, timePicker.getLabelProps()));
16
+ </script>
17
+
18
+ <label {...attrs}>
19
+ {@render children?.()}
20
+ </label>
@@ -0,0 +1,18 @@
1
+ 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> {
2
+ new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
3
+ $$bindings?: Bindings;
4
+ } & Exports;
5
+ (internal: unknown, props: Props & {
6
+ $$events?: Events;
7
+ $$slots?: Slots;
8
+ }): Exports & {
9
+ $set?: any;
10
+ $on?: any;
11
+ };
12
+ z_$$bindings?: Bindings;
13
+ }
14
+ declare const Label: $$__sveltets_2_IsomorphicComponent<TimePickerLabelProps, {
15
+ [evt: string]: CustomEvent<any>;
16
+ }, {}, {}, "">;
17
+ type Label = InstanceType<typeof Label>;
18
+ export default Label;
@@ -0,0 +1,21 @@
1
+ <script lang="ts" module>
2
+ import type {Assign, HtmlProps} from '../types.js';
3
+ import type {CellProps} from '@zag-js/time-picker';
4
+
5
+ export interface TimePickerMinuteCellProps extends Assign<HtmlProps<'div'>, CellProps> {}
6
+ </script>
7
+
8
+ <script lang="ts">
9
+ import {mergeProps} from '@zag-js/svelte';
10
+ import {timePickerContext} from './context.svelte.js';
11
+
12
+ let {value, children, ...props}: TimePickerMinuteCellProps = $props();
13
+
14
+ let timePicker = timePickerContext.get();
15
+
16
+ let attrs = $derived(mergeProps(props, timePicker.getMinuteCellProps({value})));
17
+ </script>
18
+
19
+ <div {...attrs}>
20
+ {@render children?.()}
21
+ </div>
@@ -0,0 +1,18 @@
1
+ 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> {
2
+ new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
3
+ $$bindings?: Bindings;
4
+ } & Exports;
5
+ (internal: unknown, props: Props & {
6
+ $$events?: Events;
7
+ $$slots?: Slots;
8
+ }): Exports & {
9
+ $set?: any;
10
+ $on?: any;
11
+ };
12
+ z_$$bindings?: Bindings;
13
+ }
14
+ declare const MinuteCell: $$__sveltets_2_IsomorphicComponent<TimePickerMinuteCellProps, {
15
+ [evt: string]: CustomEvent<any>;
16
+ }, {}, {}, "">;
17
+ type MinuteCell = InstanceType<typeof MinuteCell>;
18
+ export default MinuteCell;
@@ -0,0 +1,28 @@
1
+ <script lang="ts" module>
2
+ import type {Assign, HtmlProps} from '../types.js';
3
+ import type {PeriodCellProps} from '@zag-js/time-picker';
4
+
5
+ export interface TimePickerPeriodCellProps extends Assign<HtmlProps<'div'>, PeriodCellProps> {}
6
+ </script>
7
+
8
+ <script lang="ts">
9
+ import {mergeProps} from '@zag-js/svelte';
10
+ import {timePickerContext} from './context.svelte.js';
11
+
12
+ let {value, children, ...props}: TimePickerPeriodCellProps = $props();
13
+
14
+ let timePicker = timePickerContext.get();
15
+
16
+ let attrs = $derived(
17
+ mergeProps(
18
+ props,
19
+ timePicker.getPeriodCellProps({
20
+ value,
21
+ }),
22
+ ),
23
+ );
24
+ </script>
25
+
26
+ <div {...attrs}>
27
+ {@render children?.()}
28
+ </div>
@@ -0,0 +1,18 @@
1
+ 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> {
2
+ new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
3
+ $$bindings?: Bindings;
4
+ } & Exports;
5
+ (internal: unknown, props: Props & {
6
+ $$events?: Events;
7
+ $$slots?: Slots;
8
+ }): Exports & {
9
+ $set?: any;
10
+ $on?: any;
11
+ };
12
+ z_$$bindings?: Bindings;
13
+ }
14
+ declare const PeriodCell: $$__sveltets_2_IsomorphicComponent<TimePickerPeriodCellProps, {
15
+ [evt: string]: CustomEvent<any>;
16
+ }, {}, {}, "">;
17
+ type PeriodCell = InstanceType<typeof PeriodCell>;
18
+ export default PeriodCell;
@@ -0,0 +1,20 @@
1
+ <script lang="ts" module>
2
+ import type {HtmlProps} from '../types.js';
3
+
4
+ export interface TimePickerPositionerProps extends HtmlProps<'div'> {}
5
+ </script>
6
+
7
+ <script lang="ts">
8
+ import {mergeProps} from '@zag-js/svelte';
9
+ import {timePickerContext} from './context.svelte.js';
10
+
11
+ let {children, ...props}: TimePickerPositionerProps = $props();
12
+
13
+ let timePicker = timePickerContext.get();
14
+
15
+ let attrs = $derived(mergeProps(props, timePicker.getPositionerProps()));
16
+ </script>
17
+
18
+ <div {...attrs}>
19
+ {@render children?.()}
20
+ </div>
@@ -0,0 +1,18 @@
1
+ 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> {
2
+ new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
3
+ $$bindings?: Bindings;
4
+ } & Exports;
5
+ (internal: unknown, props: Props & {
6
+ $$events?: Events;
7
+ $$slots?: Slots;
8
+ }): Exports & {
9
+ $set?: any;
10
+ $on?: any;
11
+ };
12
+ z_$$bindings?: Bindings;
13
+ }
14
+ declare const Positioner: $$__sveltets_2_IsomorphicComponent<TimePickerPositionerProps, {
15
+ [evt: string]: CustomEvent<any>;
16
+ }, {}, {}, "">;
17
+ type Positioner = InstanceType<typeof Positioner>;
18
+ export default Positioner;
@@ -0,0 +1,70 @@
1
+ <script lang="ts" module>
2
+ import type {Assign, HtmlProps} from '../types.js';
3
+ import type {Snippet} from 'svelte';
4
+ import type {CreateTimePickerProps, CreateTimePickerReturn} from './create-time-picker.svelte.js';
5
+
6
+ export interface TimePickerProps
7
+ extends Assign<Omit<HtmlProps<'div'>, 'children'>, CreateTimePickerProps> {
8
+ children?: Snippet<[timePicker: CreateTimePickerReturn]>;
9
+ }
10
+ </script>
11
+
12
+ <script lang="ts">
13
+ import {mergeProps} from '@zag-js/svelte';
14
+ import {timePickerContext} from './context.svelte.js';
15
+ import {createTimePicker} from './create-time-picker.svelte.js';
16
+
17
+ let {
18
+ id,
19
+ ids,
20
+ min,
21
+ max,
22
+ name,
23
+ open,
24
+ steps,
25
+ value,
26
+ locale,
27
+ readOnly,
28
+ disabled,
29
+ defaultOpen,
30
+ placeholder,
31
+ positioning,
32
+ allowSeconds,
33
+ disableLayer,
34
+ onOpenChange,
35
+ onValueChange,
36
+ onFocusChange,
37
+ children,
38
+ ...props
39
+ }: TimePickerProps = $props();
40
+
41
+ let timePicker = createTimePicker({
42
+ id,
43
+ ids,
44
+ min,
45
+ max,
46
+ name,
47
+ open,
48
+ steps,
49
+ value,
50
+ locale,
51
+ readOnly,
52
+ disabled,
53
+ defaultOpen,
54
+ placeholder,
55
+ positioning,
56
+ allowSeconds,
57
+ disableLayer,
58
+ onOpenChange,
59
+ onValueChange,
60
+ onFocusChange,
61
+ });
62
+
63
+ let attrs = $derived(mergeProps(props, timePicker.getRootProps()));
64
+
65
+ timePickerContext.set(timePicker);
66
+ </script>
67
+
68
+ <div {...attrs}>
69
+ {@render children?.(timePicker)}
70
+ </div>
@@ -0,0 +1,18 @@
1
+ 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> {
2
+ new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
3
+ $$bindings?: Bindings;
4
+ } & Exports;
5
+ (internal: unknown, props: Props & {
6
+ $$events?: Events;
7
+ $$slots?: Slots;
8
+ }): Exports & {
9
+ $set?: any;
10
+ $on?: any;
11
+ };
12
+ z_$$bindings?: Bindings;
13
+ }
14
+ declare const Root: $$__sveltets_2_IsomorphicComponent<TimePickerProps, {
15
+ [evt: string]: CustomEvent<any>;
16
+ }, {}, {}, "">;
17
+ type Root = InstanceType<typeof Root>;
18
+ export default Root;
@@ -0,0 +1,21 @@
1
+ <script lang="ts" module>
2
+ import type {Assign, HtmlProps} from '../types.js';
3
+ import type {CellProps} from '@zag-js/time-picker';
4
+
5
+ export interface TimePickerSecondCellProps extends Assign<HtmlProps<'div'>, CellProps> {}
6
+ </script>
7
+
8
+ <script lang="ts">
9
+ import {mergeProps} from '@zag-js/svelte';
10
+ import {timePickerContext} from './context.svelte.js';
11
+
12
+ let {value, children, ...props}: TimePickerSecondCellProps = $props();
13
+
14
+ let timePicker = timePickerContext.get();
15
+
16
+ let attrs = $derived(mergeProps(props, timePicker.getSecondCellProps({value})));
17
+ </script>
18
+
19
+ <div {...attrs}>
20
+ {@render children?.()}
21
+ </div>
@@ -0,0 +1,18 @@
1
+ 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> {
2
+ new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
3
+ $$bindings?: Bindings;
4
+ } & Exports;
5
+ (internal: unknown, props: Props & {
6
+ $$events?: Events;
7
+ $$slots?: Slots;
8
+ }): Exports & {
9
+ $set?: any;
10
+ $on?: any;
11
+ };
12
+ z_$$bindings?: Bindings;
13
+ }
14
+ declare const SecondCell: $$__sveltets_2_IsomorphicComponent<TimePickerSecondCellProps, {
15
+ [evt: string]: CustomEvent<any>;
16
+ }, {}, {}, "">;
17
+ type SecondCell = InstanceType<typeof SecondCell>;
18
+ export default SecondCell;
@@ -0,0 +1,20 @@
1
+ <script lang="ts" module>
2
+ import type {HtmlProps} from '../types.js';
3
+
4
+ export interface TimePickerSpacerProps extends HtmlProps<'div'> {}
5
+ </script>
6
+
7
+ <script lang="ts">
8
+ import {mergeProps} from '@zag-js/svelte';
9
+ import {timePickerContext} from './context.svelte.js';
10
+
11
+ let {children, ...props}: TimePickerSpacerProps = $props();
12
+
13
+ let timePicker = timePickerContext.get();
14
+
15
+ let attrs = $derived(mergeProps(props, timePicker.getSpacerProps()));
16
+ </script>
17
+
18
+ <div {...attrs}>
19
+ {@render children?.()}
20
+ </div>
@@ -0,0 +1,18 @@
1
+ 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> {
2
+ new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
3
+ $$bindings?: Bindings;
4
+ } & Exports;
5
+ (internal: unknown, props: Props & {
6
+ $$events?: Events;
7
+ $$slots?: Slots;
8
+ }): Exports & {
9
+ $set?: any;
10
+ $on?: any;
11
+ };
12
+ z_$$bindings?: Bindings;
13
+ }
14
+ declare const Spacer: $$__sveltets_2_IsomorphicComponent<TimePickerSpacerProps, {
15
+ [evt: string]: CustomEvent<any>;
16
+ }, {}, {}, "">;
17
+ type Spacer = InstanceType<typeof Spacer>;
18
+ export default Spacer;
@@ -0,0 +1,15 @@
1
+ export { anatomy, parse } from '@zag-js/time-picker';
2
+ export { default as ClearTrigger } from './clear-trigger.svelte';
3
+ export { default as Column } from './column.svelte';
4
+ export { default as Content } from './content.svelte';
5
+ export { default as Control } from './control.svelte';
6
+ export { default as HourCell } from './hour-cell.svelte';
7
+ export { default as Input } from './input.svelte';
8
+ export { default as Label } from './label.svelte';
9
+ export { default as MinuteCell } from './minute-cell.svelte';
10
+ export { default as PeriodCell } from './period-cell.svelte';
11
+ export { default as Positioner } from './positioner.svelte';
12
+ export { default as Root } from './root.svelte';
13
+ export { default as SecondCell } from './second-cell.svelte';
14
+ export { default as Spacer } from './spacer.svelte';
15
+ export { default as Trigger } from './trigger.svelte';
@@ -0,0 +1,15 @@
1
+ export { anatomy, parse } from '@zag-js/time-picker';
2
+ export { default as ClearTrigger } from './clear-trigger.svelte';
3
+ export { default as Column } from './column.svelte';
4
+ export { default as Content } from './content.svelte';
5
+ export { default as Control } from './control.svelte';
6
+ export { default as HourCell } from './hour-cell.svelte';
7
+ export { default as Input } from './input.svelte';
8
+ export { default as Label } from './label.svelte';
9
+ export { default as MinuteCell } from './minute-cell.svelte';
10
+ export { default as PeriodCell } from './period-cell.svelte';
11
+ export { default as Positioner } from './positioner.svelte';
12
+ export { default as Root } from './root.svelte';
13
+ export { default as SecondCell } from './second-cell.svelte';
14
+ export { default as Spacer } from './spacer.svelte';
15
+ export { default as Trigger } from './trigger.svelte';
@@ -0,0 +1,20 @@
1
+ <script lang="ts" module>
2
+ import type {HtmlProps} from '../types.js';
3
+
4
+ export interface TimePickerTriggerProps extends HtmlProps<'button'> {}
5
+ </script>
6
+
7
+ <script lang="ts">
8
+ import {mergeProps} from '@zag-js/svelte';
9
+ import {timePickerContext} from './context.svelte.js';
10
+
11
+ let {children, ...props}: TimePickerTriggerProps = $props();
12
+
13
+ let timePicker = timePickerContext.get();
14
+
15
+ let attrs = $derived(mergeProps(props, timePicker.getTriggerProps()));
16
+ </script>
17
+
18
+ <button type="button" {...attrs}>
19
+ {@render children?.()}
20
+ </button>
@@ -0,0 +1,18 @@
1
+ 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> {
2
+ new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
3
+ $$bindings?: Bindings;
4
+ } & Exports;
5
+ (internal: unknown, props: Props & {
6
+ $$events?: Events;
7
+ $$slots?: Slots;
8
+ }): Exports & {
9
+ $set?: any;
10
+ $on?: any;
11
+ };
12
+ z_$$bindings?: Bindings;
13
+ }
14
+ declare const Trigger: $$__sveltets_2_IsomorphicComponent<TimePickerTriggerProps, {
15
+ [evt: string]: CustomEvent<any>;
16
+ }, {}, {}, "">;
17
+ type Trigger = InstanceType<typeof Trigger>;
18
+ export default Trigger;
@@ -0,0 +1,21 @@
1
+ <script lang="ts" module>
2
+ import type {HtmlProps} from '../types.js';
3
+
4
+ export interface TreeViewBranchContentProps extends HtmlProps<'div'> {}
5
+ </script>
6
+
7
+ <script lang="ts">
8
+ import {mergeProps} from '@zag-js/svelte';
9
+ import {treeViewBranchPropsContext, treeViewContext} from './context.svelte.js';
10
+
11
+ let {children, ...props}: TreeViewBranchContentProps = $props();
12
+
13
+ let treeView = treeViewContext.get();
14
+ let branchProps = treeViewBranchPropsContext.get();
15
+
16
+ let attrs = $derived(mergeProps(props, treeView.getBranchContentProps(branchProps)));
17
+ </script>
18
+
19
+ <div {...attrs}>
20
+ {@render children?.()}
21
+ </div>
@@ -0,0 +1,18 @@
1
+ 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> {
2
+ new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
3
+ $$bindings?: Bindings;
4
+ } & Exports;
5
+ (internal: unknown, props: Props & {
6
+ $$events?: Events;
7
+ $$slots?: Slots;
8
+ }): Exports & {
9
+ $set?: any;
10
+ $on?: any;
11
+ };
12
+ z_$$bindings?: Bindings;
13
+ }
14
+ declare const BranchContent: $$__sveltets_2_IsomorphicComponent<TreeViewBranchContentProps, {
15
+ [evt: string]: CustomEvent<any>;
16
+ }, {}, {}, "">;
17
+ type BranchContent = InstanceType<typeof BranchContent>;
18
+ export default BranchContent;
@@ -0,0 +1,21 @@
1
+ <script lang="ts" module>
2
+ import type {HtmlProps} from '../types.js';
3
+
4
+ export interface TreeViewBranchControlProps extends HtmlProps<'div'> {}
5
+ </script>
6
+
7
+ <script lang="ts">
8
+ import {mergeProps} from '@zag-js/svelte';
9
+ import {treeViewBranchPropsContext, treeViewContext} from './context.svelte.js';
10
+
11
+ let {children, ...props}: TreeViewBranchControlProps = $props();
12
+
13
+ let treeView = treeViewContext.get();
14
+ let branchProps = treeViewBranchPropsContext.get();
15
+
16
+ let attrs = $derived(mergeProps(props, treeView.getBranchControlProps(branchProps)));
17
+ </script>
18
+
19
+ <div {...attrs}>
20
+ {@render children?.()}
21
+ </div>
@@ -0,0 +1,18 @@
1
+ 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> {
2
+ new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
3
+ $$bindings?: Bindings;
4
+ } & Exports;
5
+ (internal: unknown, props: Props & {
6
+ $$events?: Events;
7
+ $$slots?: Slots;
8
+ }): Exports & {
9
+ $set?: any;
10
+ $on?: any;
11
+ };
12
+ z_$$bindings?: Bindings;
13
+ }
14
+ declare const BranchControl: $$__sveltets_2_IsomorphicComponent<TreeViewBranchControlProps, {
15
+ [evt: string]: CustomEvent<any>;
16
+ }, {}, {}, "">;
17
+ type BranchControl = InstanceType<typeof BranchControl>;
18
+ export default BranchControl;
@@ -0,0 +1,21 @@
1
+ <script lang="ts" module>
2
+ import type {HtmlProps} from '../types.js';
3
+
4
+ export interface TreeViewBranchIndicatorProps extends HtmlProps<'span'> {}
5
+ </script>
6
+
7
+ <script lang="ts">
8
+ import {mergeProps} from '@zag-js/svelte';
9
+ import {treeViewBranchPropsContext, treeViewContext} from './context.svelte.js';
10
+
11
+ let {children, ...props}: TreeViewBranchIndicatorProps = $props();
12
+
13
+ let treeView = treeViewContext.get();
14
+ let branchProps = treeViewBranchPropsContext.get();
15
+
16
+ let attrs = $derived(mergeProps(props, treeView.getBranchIndicatorProps(branchProps)));
17
+ </script>
18
+
19
+ <span {...attrs}>
20
+ {@render children?.()}
21
+ </span>