@equinor/fusion-react-list 0.3.5 → 1.0.0

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.
@@ -1,6 +1,7 @@
1
+ import type { PropsWithChildren } from 'react';
1
2
  import { type ComponentProps } from '@equinor/fusion-react-utils';
2
3
  import { CheckListItemElement as HTMLCheckListItemCustomElement } from '@equinor/fusion-wc-list';
3
- type ElementProps = React.PropsWithChildren<Partial<Pick<HTMLCheckListItemCustomElement, 'left' | 'value' | 'group' | 'tabindex' | 'disabled' | 'twoline' | 'activated' | 'graphic' | 'hasMeta' | 'noninteractive' | 'selected' | 'text'>>>;
4
+ type ElementProps = PropsWithChildren<Partial<Pick<HTMLCheckListItemCustomElement, 'left' | 'value' | 'group' | 'tabindex' | 'disabled' | 'twoline' | 'activated' | 'graphic' | 'hasMeta' | 'noninteractive' | 'selected' | 'text'>>>;
4
5
  export declare const CheckListItem: import("@equinor/fusion-react-utils").WebComponent<HTMLCheckListItemCustomElement, ElementProps>;
5
6
  export type CheckListItemProps = ComponentProps<HTMLCheckListItemCustomElement, ElementProps>;
6
7
  export { HTMLCheckListItemCustomElement };
@@ -1 +1 @@
1
- {"version":3,"file":"CheckListItem.d.ts","sourceRoot":"","sources":["../../src/components/CheckListItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAmB,MAAM,6BAA6B,CAAC;AACnF,OAAO,EACL,oBAAoB,IAAI,8BAA8B,EAEvD,MAAM,yBAAyB,CAAC;AAEjC,KAAK,YAAY,GAAG,KAAK,CAAC,iBAAiB,CACzC,OAAO,CACL,IAAI,CACF,8BAA8B,EAC5B,MAAM,GACN,OAAO,GACP,OAAO,GACP,UAAU,GACV,UAAU,GACV,SAAS,GACT,WAAW,GACX,SAAS,GACT,SAAS,GACT,gBAAgB,GAChB,UAAU,GACV,MAAM,CACT,CACF,CACF,CAAC;AAEF,eAAO,MAAM,aAAa,kGAGzB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC,8BAA8B,EAAE,YAAY,CAAC,CAAC;AAE9F,OAAO,EAAE,8BAA8B,EAAE,CAAC;AAE1C,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"CheckListItem.d.ts","sourceRoot":"","sources":["../../src/components/CheckListItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,EAAmB,KAAK,cAAc,EAAE,MAAM,6BAA6B,CAAC;AACnF,OAAO,EACL,oBAAoB,IAAI,8BAA8B,EAEvD,MAAM,yBAAyB,CAAC;AAEjC,KAAK,YAAY,GAAG,iBAAiB,CACnC,OAAO,CACL,IAAI,CACF,8BAA8B,EAC5B,MAAM,GACN,OAAO,GACP,OAAO,GACP,UAAU,GACV,UAAU,GACV,SAAS,GACT,WAAW,GACX,SAAS,GACT,SAAS,GACT,gBAAgB,GAChB,UAAU,GACV,MAAM,CACT,CACF,CACF,CAAC;AAEF,eAAO,MAAM,aAAa,kGAGzB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC,8BAA8B,EAAE,YAAY,CAAC,CAAC;AAE9F,OAAO,EAAE,8BAA8B,EAAE,CAAC;AAE1C,eAAe,aAAa,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"CheckListItem.js","sourceRoot":"","sources":["../../src/components/CheckListItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACnF,OAAO,EACL,oBAAoB,IAAI,8BAA8B,EACtD,gBAAgB,IAAI,GAAG,GACxB,MAAM,yBAAyB,CAAC;AAsBjC,MAAM,CAAC,MAAM,aAAa,GAAG,eAAe,CAC1C,8BAA8B,EAC9B,GAAG,CACJ,CAAC;AAIF,OAAO,EAAE,8BAA8B,EAAE,CAAC;AAE1C,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"CheckListItem.js","sourceRoot":"","sources":["../../src/components/CheckListItem.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAuB,MAAM,6BAA6B,CAAC;AACnF,OAAO,EACL,oBAAoB,IAAI,8BAA8B,EACtD,gBAAgB,IAAI,GAAG,GACxB,MAAM,yBAAyB,CAAC;AAsBjC,MAAM,CAAC,MAAM,aAAa,GAAG,eAAe,CAC1C,8BAA8B,EAC9B,GAAG,CACJ,CAAC;AAIF,OAAO,EAAE,8BAA8B,EAAE,CAAC;AAE1C,eAAe,aAAa,CAAC"}
@@ -1,6 +1,7 @@
1
+ import type { PropsWithChildren } from 'react';
1
2
  import { type ComponentProps } from '@equinor/fusion-react-utils';
2
3
  import HTMLListCustomElement from '@equinor/fusion-wc-list';
3
- type ElementProps = React.PropsWithChildren<Partial<Pick<HTMLListCustomElement, 'activatable' | 'multi' | 'emptyMessage' | 'wrapFocus' | 'itemRoles' | 'innerRole' | 'innerAriaLabel' | 'rootTabbable' | 'noninteractive'>>>;
4
+ type ElementProps = PropsWithChildren<Partial<Pick<HTMLListCustomElement, 'activatable' | 'multi' | 'emptyMessage' | 'wrapFocus' | 'itemRoles' | 'innerRole' | 'innerAriaLabel' | 'rootTabbable' | 'noninteractive'>>>;
4
5
  export declare const List: import("@equinor/fusion-react-utils").WebComponent<HTMLListCustomElement, ElementProps>;
5
6
  export type ListProps = ComponentProps<HTMLListCustomElement, ElementProps>;
6
7
  export { HTMLListCustomElement };
@@ -1 +1 @@
1
- {"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../src/components/List.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAmB,MAAM,6BAA6B,CAAC;AACnF,OAAO,qBAA8B,MAAM,yBAAyB,CAAC;AAErE,KAAK,YAAY,GAAG,KAAK,CAAC,iBAAiB,CACzC,OAAO,CACL,IAAI,CACF,qBAAqB,EACnB,aAAa,GACb,OAAO,GACP,cAAc,GACd,WAAW,GACX,WAAW,GACX,WAAW,GACX,gBAAgB,GAChB,cAAc,GACd,gBAAgB,CACnB,CACF,CACF,CAAC;AAEF,eAAO,MAAM,IAAI,yFAGhB,CAAC;AACF,MAAM,MAAM,SAAS,GAAG,cAAc,CAAC,qBAAqB,EAAE,YAAY,CAAC,CAAC;AAE5E,OAAO,EAAE,qBAAqB,EAAE,CAAC;AAEjC,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../src/components/List.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,EAAE,KAAK,cAAc,EAAmB,MAAM,6BAA6B,CAAC;AACnF,OAAO,qBAA8B,MAAM,yBAAyB,CAAC;AAErE,KAAK,YAAY,GAAG,iBAAiB,CACnC,OAAO,CACL,IAAI,CACF,qBAAqB,EACnB,aAAa,GACb,OAAO,GACP,cAAc,GACd,WAAW,GACX,WAAW,GACX,WAAW,GACX,gBAAgB,GAChB,cAAc,GACd,gBAAgB,CACnB,CACF,CACF,CAAC;AAEF,eAAO,MAAM,IAAI,yFAGhB,CAAC;AACF,MAAM,MAAM,SAAS,GAAG,cAAc,CAAC,qBAAqB,EAAE,YAAY,CAAC,CAAC;AAE5E,OAAO,EAAE,qBAAqB,EAAE,CAAC;AAEjC,eAAe,IAAI,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"List.js","sourceRoot":"","sources":["../../src/components/List.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACnF,OAAO,qBAAqB,EAAE,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAmBrE,MAAM,CAAC,MAAM,IAAI,GAAG,eAAe,CACjC,qBAAqB,EACrB,GAAG,CACJ,CAAC;AAGF,OAAO,EAAE,qBAAqB,EAAE,CAAC;AAEjC,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"List.js","sourceRoot":"","sources":["../../src/components/List.tsx"],"names":[],"mappings":"AACA,OAAO,EAAuB,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACnF,OAAO,qBAAqB,EAAE,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAmBrE,MAAM,CAAC,MAAM,IAAI,GAAG,eAAe,CACjC,qBAAqB,EACrB,GAAG,CACJ,CAAC;AAGF,OAAO,EAAE,qBAAqB,EAAE,CAAC;AAEjC,eAAe,IAAI,CAAC"}
@@ -1,6 +1,7 @@
1
+ import type { PropsWithChildren } from 'react';
1
2
  import { type ComponentProps } from '@equinor/fusion-react-utils';
2
3
  import { ListItemElement as HTMLListItemCustomElement } from '@equinor/fusion-wc-list';
3
- export type ElementProps = React.PropsWithChildren<Partial<Pick<HTMLListItemCustomElement, 'value' | 'group' | 'tabindex' | 'disabled' | 'twoline' | 'activated' | 'graphic' | 'hasMeta' | 'noninteractive' | 'selected' | 'text'>>>;
4
+ export type ElementProps = PropsWithChildren<Partial<Pick<HTMLListItemCustomElement, 'value' | 'group' | 'tabindex' | 'disabled' | 'twoline' | 'activated' | 'graphic' | 'hasMeta' | 'noninteractive' | 'selected' | 'text'>>>;
4
5
  export declare const ListItem: import("@equinor/fusion-react-utils").WebComponent<HTMLListItemCustomElement<unknown>, ElementProps>;
5
6
  export type ListItemProps = ComponentProps<HTMLListItemCustomElement, ElementProps>;
6
7
  export { HTMLListItemCustomElement };
@@ -1 +1 @@
1
- {"version":3,"file":"ListItem.d.ts","sourceRoot":"","sources":["../../src/components/ListItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAmB,MAAM,6BAA6B,CAAC;AACnF,OAAO,EACL,eAAe,IAAI,yBAAyB,EAE7C,MAAM,yBAAyB,CAAC;AAEjC,MAAM,MAAM,YAAY,GAAG,KAAK,CAAC,iBAAiB,CAChD,OAAO,CACL,IAAI,CACF,yBAAyB,EACvB,OAAO,GACP,OAAO,GACP,UAAU,GACV,UAAU,GACV,SAAS,GACT,WAAW,GACX,SAAS,GACT,SAAS,GACT,gBAAgB,GAChB,UAAU,GACV,MAAM,CACT,CACF,CACF,CAAC;AAEF,eAAO,MAAM,QAAQ,sGAGpB,CAAC;AACF,MAAM,MAAM,aAAa,GAAG,cAAc,CAAC,yBAAyB,EAAE,YAAY,CAAC,CAAC;AAEpF,OAAO,EAAE,yBAAyB,EAAE,CAAC;AAErC,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"ListItem.d.ts","sourceRoot":"","sources":["../../src/components/ListItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,EAAE,KAAK,cAAc,EAAmB,MAAM,6BAA6B,CAAC;AACnF,OAAO,EACL,eAAe,IAAI,yBAAyB,EAE7C,MAAM,yBAAyB,CAAC;AAEjC,MAAM,MAAM,YAAY,GAAG,iBAAiB,CAC1C,OAAO,CACL,IAAI,CACF,yBAAyB,EACvB,OAAO,GACP,OAAO,GACP,UAAU,GACV,UAAU,GACV,SAAS,GACT,WAAW,GACX,SAAS,GACT,SAAS,GACT,gBAAgB,GAChB,UAAU,GACV,MAAM,CACT,CACF,CACF,CAAC;AAEF,eAAO,MAAM,QAAQ,sGAGpB,CAAC;AACF,MAAM,MAAM,aAAa,GAAG,cAAc,CAAC,yBAAyB,EAAE,YAAY,CAAC,CAAC;AAEpF,OAAO,EAAE,yBAAyB,EAAE,CAAC;AAErC,eAAe,QAAQ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ListItem.js","sourceRoot":"","sources":["../../src/components/ListItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACnF,OAAO,EACL,eAAe,IAAI,yBAAyB,EAC5C,WAAW,IAAI,GAAG,GACnB,MAAM,yBAAyB,CAAC;AAqBjC,MAAM,CAAC,MAAM,QAAQ,GAAG,eAAe,CACrC,yBAAyB,EACzB,GAAG,CACJ,CAAC;AAGF,OAAO,EAAE,yBAAyB,EAAE,CAAC;AAErC,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"ListItem.js","sourceRoot":"","sources":["../../src/components/ListItem.tsx"],"names":[],"mappings":"AACA,OAAO,EAAuB,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACnF,OAAO,EACL,eAAe,IAAI,yBAAyB,EAC5C,WAAW,IAAI,GAAG,GACnB,MAAM,yBAAyB,CAAC;AAqBjC,MAAM,CAAC,MAAM,QAAQ,GAAG,eAAe,CACrC,yBAAyB,EACzB,GAAG,CACJ,CAAC;AAGF,OAAO,EAAE,yBAAyB,EAAE,CAAC;AAErC,eAAe,QAAQ,CAAC"}
@@ -1,6 +1,7 @@
1
+ import type { PropsWithChildren } from 'react';
1
2
  import { type ComponentProps } from '@equinor/fusion-react-utils';
2
3
  import { RadioListItemElement as HTMLRadioListItemCustomElement } from '@equinor/fusion-wc-list';
3
- type ElementProps = React.PropsWithChildren<Partial<Pick<HTMLRadioListItemCustomElement, 'left' | 'value' | 'group' | 'tabindex' | 'disabled' | 'twoline' | 'activated' | 'graphic' | 'hasMeta' | 'noninteractive' | 'selected' | 'text'>>>;
4
+ type ElementProps = PropsWithChildren<Partial<Pick<HTMLRadioListItemCustomElement, 'left' | 'value' | 'group' | 'tabindex' | 'disabled' | 'twoline' | 'activated' | 'graphic' | 'hasMeta' | 'noninteractive' | 'selected' | 'text'>>>;
4
5
  export declare const RadioListItem: import("@equinor/fusion-react-utils").WebComponent<HTMLRadioListItemCustomElement, ElementProps>;
5
6
  export type RadioListItemProps = ComponentProps<HTMLRadioListItemCustomElement, ElementProps>;
6
7
  export { HTMLRadioListItemCustomElement };
@@ -1 +1 @@
1
- {"version":3,"file":"RadioListItem.d.ts","sourceRoot":"","sources":["../../src/components/RadioListItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAmB,MAAM,6BAA6B,CAAC;AACnF,OAAO,EACL,oBAAoB,IAAI,8BAA8B,EAEvD,MAAM,yBAAyB,CAAC;AAEjC,KAAK,YAAY,GAAG,KAAK,CAAC,iBAAiB,CACzC,OAAO,CACL,IAAI,CACF,8BAA8B,EAC5B,MAAM,GACN,OAAO,GACP,OAAO,GACP,UAAU,GACV,UAAU,GACV,SAAS,GACT,WAAW,GACX,SAAS,GACT,SAAS,GACT,gBAAgB,GAChB,UAAU,GACV,MAAM,CACT,CACF,CACF,CAAC;AAEF,eAAO,MAAM,aAAa,kGAGzB,CAAC;AACF,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC,8BAA8B,EAAE,YAAY,CAAC,CAAC;AAE9F,OAAO,EAAE,8BAA8B,EAAE,CAAC;AAE1C,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"RadioListItem.d.ts","sourceRoot":"","sources":["../../src/components/RadioListItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,EAAE,KAAK,cAAc,EAAmB,MAAM,6BAA6B,CAAC;AACnF,OAAO,EACL,oBAAoB,IAAI,8BAA8B,EAEvD,MAAM,yBAAyB,CAAC;AAEjC,KAAK,YAAY,GAAG,iBAAiB,CACnC,OAAO,CACL,IAAI,CACF,8BAA8B,EAC5B,MAAM,GACN,OAAO,GACP,OAAO,GACP,UAAU,GACV,UAAU,GACV,SAAS,GACT,WAAW,GACX,SAAS,GACT,SAAS,GACT,gBAAgB,GAChB,UAAU,GACV,MAAM,CACT,CACF,CACF,CAAC;AAEF,eAAO,MAAM,aAAa,kGAGzB,CAAC;AACF,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC,8BAA8B,EAAE,YAAY,CAAC,CAAC;AAE9F,OAAO,EAAE,8BAA8B,EAAE,CAAC;AAE1C,eAAe,aAAa,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"RadioListItem.js","sourceRoot":"","sources":["../../src/components/RadioListItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACnF,OAAO,EACL,oBAAoB,IAAI,8BAA8B,EACtD,gBAAgB,IAAI,GAAG,GACxB,MAAM,yBAAyB,CAAC;AAsBjC,MAAM,CAAC,MAAM,aAAa,GAAG,eAAe,CAC1C,8BAA8B,EAC9B,GAAG,CACJ,CAAC;AAGF,OAAO,EAAE,8BAA8B,EAAE,CAAC;AAE1C,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"RadioListItem.js","sourceRoot":"","sources":["../../src/components/RadioListItem.tsx"],"names":[],"mappings":"AACA,OAAO,EAAuB,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACnF,OAAO,EACL,oBAAoB,IAAI,8BAA8B,EACtD,gBAAgB,IAAI,GAAG,GACxB,MAAM,yBAAyB,CAAC;AAsBjC,MAAM,CAAC,MAAM,aAAa,GAAG,eAAe,CAC1C,8BAA8B,EAC9B,GAAG,CACJ,CAAC;AAGF,OAAO,EAAE,8BAA8B,EAAE,CAAC;AAE1C,eAAe,aAAa,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/fusion-react-list",
3
- "version": "0.3.5",
3
+ "version": "1.0.0",
4
4
  "description": "React components for displaying a list",
5
5
  "keywords": [
6
6
  "list",
@@ -28,16 +28,19 @@
28
28
  "url": "https://github.com/equinor/fusion-react-components/issues"
29
29
  },
30
30
  "dependencies": {
31
- "@equinor/fusion-react-utils": "^2.1.0",
32
- "@equinor/fusion-wc-list": "^1.1.4"
31
+ "@equinor/fusion-wc-list": "^1.1.4",
32
+ "@equinor/fusion-react-utils": "^3.0.0"
33
33
  },
34
34
  "devDependencies": {
35
- "@types/react": "^18.2.24",
36
- "react": "^18.2.0"
35
+ "@types/react": "^19.2.2",
36
+ "react": "^19.2.0"
37
+ },
38
+ "peerDependencies": {
39
+ "react": "^18 || ^19"
37
40
  },
38
41
  "scripts": {
39
42
  "build": "tsc -b",
40
- "lint": "eslint --ext .ts,.tsx,.js src/",
41
- "lint:fix": "eslint --ext .ts,.tsx,.js src/ --fix"
43
+ "lint": "biome lint",
44
+ "format": "biome format"
42
45
  }
43
46
  }