@kwiz/fluentui 1.0.19 → 1.0.20

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kwiz/fluentui",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "description": "KWIZ common controls for FluentUI",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -21,8 +21,8 @@
21
21
  "test": "node --import tsx --test src",
22
22
  "link-local-kwiz": "npm link @kwiz/common",
23
23
  "__update-kwiz-packages": "npm install @kwiz/common@latest",
24
- "npm-v-patch": "npm version patch",
25
- "npm-v-major": "npm version major",
24
+ "npm-v-patch": "npm version patch && git push --tags",
25
+ "npm-v-major": "npm version major && git push --tags",
26
26
  "npm-publish": "npm publish --access public",
27
27
  "reset-repo": "git fetch origin && git reset --hard origin/main"
28
28
  },
@@ -20,7 +20,8 @@ interface IProps<dataType, keyType extends string = string> extends ForwardProps
20
20
  options?: { key: keyType, value: string, data?: dataType }[]) => void;
21
21
  }
22
22
 
23
- function $DropdownEX<keyType extends string = string, dataType = never>(props: IProps<dataType, keyType>, ref: React.ForwardedRef<HTMLButtonElement>) {
23
+ /** issue: figure out how to use forward ref with typed controls */
24
+ export function DropdownEXTypedNoForwardRef<keyType extends string = string, dataType = never>(props: IProps<dataType, keyType>, ref: React.ForwardedRef<HTMLButtonElement>) {
24
25
  const ctx = useKWIZFluentContext();
25
26
  const selected: keyType[] = Array.isArray(props.selected) ? props.selected : isNullOrUndefined(props.selected) ? [] : [props.selected];
26
27
 
@@ -49,4 +50,4 @@ function $DropdownEX<keyType extends string = string, dataType = never>(props: I
49
50
  );
50
51
  }
51
52
 
52
- export const DropdownEX = React.forwardRef($DropdownEX);
53
+ export const DropdownEX = React.forwardRef(DropdownEXTypedNoForwardRef);