@phila/phila-ui-core 1.0.17 → 1.0.20

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 (2) hide show
  1. package/dist/types.d.ts +10 -2
  2. package/package.json +2 -2
package/dist/types.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { ComponentInternalInstance, ComputedRef, App, Ref, SetupContext } from 'vue';
2
+ import { default as PhilaUICore } from './src/main.ts';
2
3
  import { RandomID } from './src/inputs/helperFns.ts';
3
4
 
4
5
  export interface ResponsiveState {
@@ -13,7 +14,12 @@ export interface ResponsiveHelpers {
13
14
  responsiveState: ResponsiveState;
14
15
  updateResponsiveState: (window: Window) => void;
15
16
  }
16
- export type HTMLInputValue = string | number;
17
+ export interface InputOptionObject {
18
+ value: string;
19
+ disabled?: boolean;
20
+ [key: string]: HTMLInputValue | undefined;
21
+ }
22
+ export type HTMLInputValue = string | boolean | number;
17
23
  export type InputOptions = Record<string, HTMLInputValue>;
18
24
  export type InputOptionsGroup = Record<string, string[]>;
19
25
  export type Mask = typeof String | typeof Number | typeof Date | typeof RegExp | Record<"mask", typeof String | typeof Number | typeof Date | typeof RegExp>;
@@ -33,7 +39,8 @@ export interface InputProps {
33
39
  id?: string;
34
40
  errors?: InputErrors;
35
41
  optgroup?: boolean;
36
- options?: HTMLInputValue[] | InputOptions | InputOptions[] | InputOptionsGroup;
42
+ disableableOptions?: boolean;
43
+ options?: HTMLInputValue[] | InputOptions | InputOptions[] | InputOptionsGroup | InputOptionObject[];
37
44
  name?: string;
38
45
  textKey?: string;
39
46
  valueKey?: string;
@@ -95,3 +102,4 @@ export type PhilaUICoreInterface = {
95
102
  formHelpers: FormHelpersInterface;
96
103
  install: (app: App) => void;
97
104
  };
105
+ export default PhilaUICore;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phila/phila-ui-core",
3
- "version": "1.0.17",
3
+ "version": "1.0.20",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "files": [
@@ -41,5 +41,5 @@
41
41
  "registry": "https://registry.npmjs.com/",
42
42
  "access": "public"
43
43
  },
44
- "gitHead": "ca708d7c878cba1b8bc2be57ad3615b7111e395d"
44
+ "gitHead": "0753944e8c658257a32d11df1bf602e7a57e5652"
45
45
  }