milk-lib 0.0.40 → 0.0.42

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.
@@ -132,6 +132,7 @@
132
132
  color: var(--disabled-color);
133
133
  background-color: var(--disabled-background-color);
134
134
  border-color: var(--disabled-border-color);
135
+ cursor: not-allowed;
135
136
  }
136
137
  .Button.block {
137
138
  width: 100%;
@@ -8,7 +8,8 @@
8
8
  options = [] as CheckboxGroupItem[],
9
9
  selectedValues = $bindable([] as string[]),
10
10
  name,
11
- maxHeight
11
+ maxHeight,
12
+ emptyText = 'No option for choice'
12
13
  }: CheckboxGroupProps = $props();
13
14
 
14
15
  const maxHeightValue = $derived.by(() => {
@@ -43,7 +44,7 @@
43
44
 
44
45
  >
45
46
  {#if options.length === 0}
46
- <li class="checkbox-placeholder">No option for choice</li>
47
+ <li class="checkbox-placeholder">{emptyText}</li>
47
48
  {:else}
48
49
  {#each options as option, index (option.kind === 'header' ? `header-${index}` : option.value)}
49
50
  <li>
@@ -20,4 +20,5 @@ export type CheckboxGroupProps = {
20
20
  selectedValues: string[];
21
21
  name: string;
22
22
  maxHeight?: number | string;
23
+ emptyText?: string;
23
24
  };
@@ -8,7 +8,6 @@
8
8
  onFocus,
9
9
  onBlur,
10
10
  onChange,
11
- onInput,
12
11
  onClick,
13
12
  placeholder,
14
13
  type = 'text',
@@ -98,8 +97,6 @@
98
97
  target.value = sanitizedValue;
99
98
  value = sanitizedValue;
100
99
  }
101
-
102
- onInput?.(event);
103
100
  };
104
101
 
105
102
  </script>
@@ -11,7 +11,7 @@ export interface ITextInputProps {
11
11
  onFocus?: FocusEventHandler<HTMLInputElement>;
12
12
  onBlur?: FocusEventHandler<HTMLInputElement>;
13
13
  onChange?: ChangeEventHandler<HTMLInputElement>;
14
- onInput?: ChangeEventHandler<HTMLInputElement>;
14
+ oninput?: ChangeEventHandler<HTMLInputElement>;
15
15
  onClick?: MouseEventHandler<HTMLInputElement>;
16
16
  placeholder?: string;
17
17
  type?: TextInputType;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "milk-lib",
3
3
  "license": "MIT",
4
- "version": "0.0.40",
4
+ "version": "0.0.42",
5
5
  "scripts": {
6
6
  "dev": "vite dev",
7
7
  "build": "vite build && npm run prepack",