@djcali570/component-lib 0.1.2 → 0.1.3

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 CHANGED
@@ -230,6 +230,7 @@ onUpdate={(v) => dialogUpdated(v)}
230
230
 
231
231
 
232
232
  # Updates
233
+ #### 0.1.3 - Updated Time Picker to allow binding to timeText.
233
234
  #### 0.1.2 - Fixed some minor styling issues with Dialog component.
234
235
  #### 0.1.1 - Added Bottom Sheet component & Dialog component.
235
236
  #### 0.1.0 - Updated Accordion component to use snippets for title.
@@ -9,7 +9,7 @@
9
9
 
10
10
  let {
11
11
  colorScheme: partialColorScheme = {},
12
- timeText = '',
12
+ timeText = $bindable(),
13
13
  name = 'timePicker',
14
14
  title = 'Title',
15
15
  placeholder = '',
@@ -154,7 +154,7 @@
154
154
  }
155
155
 
156
156
  function updatePickerValues() {
157
- if (timeText === '') return;
157
+ if (!timeText) return;
158
158
 
159
159
  const hourVal = timeText.split(':')[0];
160
160
  const minVal = timeText.split(':')[1];
@@ -10,6 +10,6 @@ type $$ComponentProps = {
10
10
  radius?: 'right' | 'left' | 'full';
11
11
  onTimePicked?: (value: string) => void;
12
12
  };
13
- declare const TimePicker5: import("svelte").Component<$$ComponentProps, {}, "">;
13
+ declare const TimePicker5: import("svelte").Component<$$ComponentProps, {}, "timeText">;
14
14
  type TimePicker5 = ReturnType<typeof TimePicker5>;
15
15
  export default TimePicker5;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@djcali570/component-lib",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "files": [
5
5
  "dist",
6
6
  "!dist/**/*.test.*",