@placeholderco/placeholder-ui 2.6.0 → 2.6.1

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.
@@ -8,7 +8,7 @@
8
8
  required?: boolean;
9
9
  /** CSS classes for the container element */
10
10
  containerClass?: string;
11
- /** Selected time value in HH:mm format (bindable) */
11
+ /** Selected time value in HH:mm:ss format (bindable). Accepts HH:mm or HH:mm:ss on input; always emits HH:mm:ss. */
12
12
  value?: string | undefined;
13
13
  /** Use rounded time increments */
14
14
  rounded?: boolean;
@@ -19,7 +19,7 @@
19
19
  /** Currently selected date (for date-time combinations) */
20
20
  selectedDate?: string | undefined;
21
21
  /** Callback when selected time changes */
22
- onchange?: (date: string | undefined) => void;
22
+ onchange?: (time: string | undefined) => void;
23
23
  }
24
24
  </script>
25
25
 
@@ -151,7 +151,7 @@
151
151
  value = timeString;
152
152
  return;
153
153
  }
154
- value = dayjs().format('HH:mm');
154
+ value = dayjs().format('HH:mm:ss');
155
155
  };
156
156
 
157
157
  if (value === undefined) {
@@ -7,7 +7,7 @@ export interface TimePickerProps {
7
7
  required?: boolean;
8
8
  /** CSS classes for the container element */
9
9
  containerClass?: string;
10
- /** Selected time value in HH:mm format (bindable) */
10
+ /** Selected time value in HH:mm:ss format (bindable). Accepts HH:mm or HH:mm:ss on input; always emits HH:mm:ss. */
11
11
  value?: string | undefined;
12
12
  /** Use rounded time increments */
13
13
  rounded?: boolean;
@@ -18,7 +18,7 @@ export interface TimePickerProps {
18
18
  /** Currently selected date (for date-time combinations) */
19
19
  selectedDate?: string | undefined;
20
20
  /** Callback when selected time changes */
21
- onchange?: (date: string | undefined) => void;
21
+ onchange?: (time: string | undefined) => void;
22
22
  }
23
23
  declare const TimePicker: import("svelte").Component<TimePickerProps, {}, "value">;
24
24
  type TimePicker = ReturnType<typeof TimePicker>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@placeholderco/placeholder-ui",
3
- "version": "2.6.0",
3
+ "version": "2.6.1",
4
4
  "description": "A modern, customizable Svelte 5 UI component library with comprehensive theming support. Re-brand it with a single config object.",
5
5
  "license": "MIT",
6
6
  "author": "Placeholderco",