@mittwald/flow-react-components 0.1.0-alpha.202 → 0.1.0-alpha.204

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 (97) hide show
  1. package/dist/{Accordion-DX40QvjC.js → Accordion-BwP09Mph.js} +3 -3
  2. package/dist/Accordion.js +1 -1
  3. package/dist/{Action-B9iiMUXq.js → Action-DrXR84F6.js} +1 -1
  4. package/dist/Action.js +1 -1
  5. package/dist/ActionGroup.js +1 -1
  6. package/dist/Avatar.js +1 -1
  7. package/dist/Breadcrumb.js +2 -2
  8. package/dist/{Button-CVDWL-od.js → Button-DQtavSbo.js} +5 -5
  9. package/dist/Button.js +1 -1
  10. package/dist/{Checkbox-CuTjbpdr.js → Checkbox-DOCJ2AAS.js} +4 -4
  11. package/dist/Checkbox.js +1 -1
  12. package/dist/{CheckboxButton-gL30h9xG.js → CheckboxButton-CwMRngE4.js} +2 -2
  13. package/dist/CheckboxButton.js +1 -1
  14. package/dist/CheckboxGroup.js +3 -3
  15. package/dist/{Content-DTwZweqp.js → Content-YN32VD1q.js} +1 -1
  16. package/dist/Content.js +1 -1
  17. package/dist/ContextMenu.js +3 -3
  18. package/dist/{ContextMenuTrigger-CvljOFns.js → ContextMenuTrigger-BdJf5T8A.js} +3 -3
  19. package/dist/ContextualHelp.js +4 -4
  20. package/dist/CopyButton.js +5 -5
  21. package/dist/CounterBadge.js +1 -1
  22. package/dist/{FieldDescription-b0dVuLR9.js → FieldDescription-D5ScpnNK.js} +2 -2
  23. package/dist/FieldDescription.js +1 -1
  24. package/dist/{FieldError-Bevl1ofs.js → FieldError-CHN9uCb_.js} +3 -3
  25. package/dist/FieldError.js +1 -1
  26. package/dist/{Header-UWuteUuZ.js → Header-DUWPZjAq.js} +26 -14
  27. package/dist/Header.js +1 -1
  28. package/dist/{Heading-BzwQly28.js → Heading-BEC6iPfF.js} +1 -1
  29. package/dist/Heading.js +1 -1
  30. package/dist/{Icon-CUhvR1IT.js → Icon-DPoIVASu.js} +1 -1
  31. package/dist/Icon.js +1 -1
  32. package/dist/{IconCheck-Baz3lkPw.js → IconCheck-BGtj4cDU.js} +1 -1
  33. package/dist/{IconCheckboxEmpty-CsDSdQbR.js → IconCheckboxEmpty-C5_FpyLH.js} +1 -1
  34. package/dist/{IconCheckboxIndeterminate-CiRBKhOR.js → IconCheckboxIndeterminate-Cq9pCgrw.js} +1 -1
  35. package/dist/{IconChevronDown-0Qm5hGlw.js → IconChevronDown--OxZLX8L.js} +1 -1
  36. package/dist/{IconChevronRight-DV5yxS6Q.js → IconChevronRight-C9GdFYqH.js} +1 -1
  37. package/dist/{IconChevronUp-BMWrCjp3.js → IconChevronUp-CGNLwWiz.js} +1 -1
  38. package/dist/{IconClose-BHf4btna.js → IconClose-BFwPT_IX.js} +1 -1
  39. package/dist/{IconContextMenu-C9_95BDt.js → IconContextMenu-jwoVcLvd.js} +1 -1
  40. package/dist/{IconCopy-CWGdqxzm.js → IconCopy-mEoW_08H.js} +1 -1
  41. package/dist/{IconDanger-DFMRrq2m.js → IconDanger-DSrmGtfE.js} +1 -1
  42. package/dist/{IconInfo-BqmpjObo.js → IconInfo-p6ir3vIp.js} +1 -1
  43. package/dist/{IconPending-MprHiXiv.js → IconPending-DkOzavfh.js} +1 -1
  44. package/dist/{IconPlus-BWI6sp0-.js → IconPlus-DXEOuv0x.js} +1 -1
  45. package/dist/{IconRadioOn-CVwFv8s0.js → IconRadioOn-DPCSoNmA.js} +1 -1
  46. package/dist/{IconSearch-D6QHaNuF.js → IconSearch-C7VQTAqK.js} +1 -1
  47. package/dist/{IconSucceeded-DLE96uUC.js → IconSucceeded-B8qBpHF5.js} +1 -1
  48. package/dist/{IconWarning-DY_gujxC.js → IconWarning-wNdAHlh2.js} +1 -1
  49. package/dist/Icons.js +18 -18
  50. package/dist/Image.js +1 -1
  51. package/dist/Initials.js +1 -1
  52. package/dist/InlineAlert.js +2 -2
  53. package/dist/{Label-BD3Jzaap.js → Label-CguPeZH5.js} +1 -1
  54. package/dist/Label.js +1 -1
  55. package/dist/LayoutCard.js +1 -1
  56. package/dist/{Link-BvK-OJhM.js → Link-hmeJbIYC.js} +1 -1
  57. package/dist/Link.js +1 -1
  58. package/dist/List.js +244 -236
  59. package/dist/{LoadingSpinner-BwRfUBmo.js → LoadingSpinner-BLy_eWhM.js} +2 -2
  60. package/dist/LoadingSpinner.js +1 -1
  61. package/dist/{MenuItem-DaY0bRCQ.js → MenuItem-DcfYvfPJ.js} +5 -5
  62. package/dist/MenuItem.js +1 -1
  63. package/dist/Modal.js +6 -6
  64. package/dist/Navigation.js +2 -2
  65. package/dist/Notification.js +5 -5
  66. package/dist/NumberField.js +7 -7
  67. package/dist/{Popover-DiU0zzqO.js → Popover-D_KuyuoO.js} +1 -1
  68. package/dist/Popover.js +1 -1
  69. package/dist/RadioGroup.js +5 -5
  70. package/dist/{SearchField-Dbr_5Zy4.js → SearchField-DstUFmq4.js} +6 -6
  71. package/dist/SearchField.js +1 -1
  72. package/dist/Section.js +1 -1
  73. package/dist/Select.js +5 -5
  74. package/dist/Slider.js +4 -4
  75. package/dist/StatusBadge.js +3 -3
  76. package/dist/{StatusIcon-DYQ_4f2y.js → StatusIcon-CVl-Qd4U.js} +4 -4
  77. package/dist/StatusIcon.js +1 -1
  78. package/dist/Switch.js +5 -5
  79. package/dist/Tabs.js +7 -7
  80. package/dist/{Text-DQmfbsPC.js → Text-Sd5q3Yme.js} +1 -1
  81. package/dist/Text.js +1 -1
  82. package/dist/TextArea.js +2 -2
  83. package/dist/TextField.js +2 -2
  84. package/dist/{TextFieldBase-BcABoqwx.js → TextFieldBase-DA_aMt2G.js} +2 -2
  85. package/dist/{flowComponent-COVzhVCB.js → flowComponent-DHPUcYyM.js} +18 -16
  86. package/dist/react-hook-form.js +2 -2
  87. package/dist/types/components/List/List.d.ts +4 -2
  88. package/dist/types/components/List/model/List.d.ts +1 -1
  89. package/dist/types/components/List/model/ReactTable.d.ts +2 -2
  90. package/dist/types/components/List/model/search/Search.d.ts +1 -0
  91. package/dist/types/components/List/model/types.d.ts +4 -1
  92. package/dist/types/components/List/typedList.d.ts +11 -7
  93. package/dist/types/components/propTypes/index.d.ts +3 -1
  94. package/dist/types/lib/controller/overlay/context.d.ts +2 -0
  95. package/dist/types/lib/propsContext/propsContext.d.ts +4 -0
  96. package/dist/types/lib/slotContext/slotContext.d.ts +2 -0
  97. package/package.json +4 -4
@@ -1,9 +1,13 @@
1
+ import { ListProps } from './List';
2
+ import { ComponentType } from 'react';
3
+
4
+ export declare const TypedList: <T>() => ComponentType<ListProps<T>>;
1
5
  export declare const typedList: <T>() => {
2
- List: import('react').ForwardRefExoticComponent<import('./List').ListProps & import('react').RefAttributes<never>>;
6
+ List: ComponentType<ListProps<T>>;
3
7
  Filter: <const TProp extends import('./model/types').PropertyName<T>, TMatcherValue = import('./model/types').PropertyValue<T, TProp>>(props: Omit<import('./model/filter/types').FilterShape<T, TProp, TMatcherValue>, "type" | "renderItem"> & {
4
8
  children?: import('./model/types').PropertyValueRenderMethod<TMatcherValue> | undefined;
5
9
  }) => import('react').ReactNode;
6
- Search: import('react').ComponentType<Omit<import('./model/search/types').SearchShape<T>, "render" | "textFieldProps"> & {
10
+ Search: ComponentType<Omit<import('./model/search/types').SearchShape<T>, "render" | "textFieldProps"> & {
7
11
  children?: import('./model/search/types').SearchFieldRenderComponent;
8
12
  } & {
9
13
  className?: string | ((values: import('react-aria-components').SearchFieldRenderProps & {
@@ -11,20 +15,20 @@ export declare const typedList: <T>() => {
11
15
  }) => string) | undefined;
12
16
  autoFocus?: boolean | undefined;
13
17
  }>;
14
- Sorting: import('react').ComponentType<import('./model/sorting/types').SortingShape<T>>;
15
- Item: import('react').ComponentType<Omit<import('./model/item/ItemView').ItemViewShape<T>, "renderFn"> & {
18
+ Sorting: ComponentType<import('./model/sorting/types').SortingShape<T>>;
19
+ Item: ComponentType<Omit<import('./model/item/ItemView').ItemViewShape<T>, "renderFn"> & {
16
20
  children: import('.').RenderItemFn<T>;
17
21
  }>;
18
22
  ItemView: (props: {
19
23
  children?: import('react').ReactNode | undefined;
20
24
  } & import('../../lib/types/props').PropsWithClassName & import('../../lib/types/props').PropsWithContainerBreakpointSize) => import("react").JSX.Element;
21
- StaticData: import('react').ComponentType<{
25
+ StaticData: ComponentType<{
22
26
  data: readonly T[];
23
27
  }>;
24
- LoaderAsync: import('react').ComponentType<Omit<import('./model/loading/types').AsyncDataLoaderShape<T>, "asyncLoader"> & {
28
+ LoaderAsync: ComponentType<Omit<import('./model/loading/types').AsyncDataLoaderShape<T>, "asyncLoader"> & {
25
29
  children: import('./model/loading/types').AsyncDataLoader<T>;
26
30
  }>;
27
- LoaderAsyncResource: import('react').ComponentType<Omit<import('./model/loading/types').AsyncResourceFactoryDataLoaderShape<T>, "asyncResourceFactory"> & {
31
+ LoaderAsyncResource: ComponentType<Omit<import('./model/loading/types').AsyncResourceFactoryDataLoaderShape<T>, "asyncResourceFactory"> & {
28
32
  children: (options?: import('./model/loading/types').DataLoaderOptions<T> | undefined) => import('@mittwald/react-use-promise').AsyncResource<import('./model/loading/types').DataLoaderResult<T>>;
29
33
  }>;
30
34
  };
@@ -67,12 +67,14 @@ export interface FlowComponentPropsTypes {
67
67
  Label: LabelProps;
68
68
  LayoutCard: LayoutCardProps;
69
69
  Link: LinkProps;
70
- List: ListProps;
70
+ List: ListProps<never>;
71
71
  MenuItem: MenuItemProps;
72
72
  Modal: ModalProps;
73
+ ModalTrigger: OverlayTriggerProps;
73
74
  NumberField: NumberFieldProps;
74
75
  Option: OptionProps;
75
76
  Popover: PopoverProps;
77
+ PopoverTrigger: OverlayTriggerProps;
76
78
  Radio: RadioProps;
77
79
  RadioButton: RadioButtonProps;
78
80
  RadioGroup: RadioGroupProps;
@@ -33,9 +33,11 @@ export declare const overlayContext: import('react').Context<Partial<{
33
33
  List: OverlayController | undefined;
34
34
  MenuItem: OverlayController | undefined;
35
35
  Modal: OverlayController | undefined;
36
+ ModalTrigger: OverlayController | undefined;
36
37
  NumberField: OverlayController | undefined;
37
38
  Option: OverlayController | undefined;
38
39
  Popover: OverlayController | undefined;
40
+ PopoverTrigger: OverlayController | undefined;
39
41
  Radio: OverlayController | undefined;
40
42
  RadioButton: OverlayController | undefined;
41
43
  RadioGroup: OverlayController | undefined;
@@ -29,9 +29,11 @@ export declare const propsContext: import('react').Context<Partial<{
29
29
  List: import('./types').ComponentPropsContext<"List">;
30
30
  MenuItem: import('./types').ComponentPropsContext<"MenuItem">;
31
31
  Modal: import('./types').ComponentPropsContext<"Modal">;
32
+ ModalTrigger: import('./types').ComponentPropsContext<"ModalTrigger">;
32
33
  NumberField: import('./types').ComponentPropsContext<"NumberField">;
33
34
  Option: import('./types').ComponentPropsContext<"Option">;
34
35
  Popover: import('./types').ComponentPropsContext<"Popover">;
36
+ PopoverTrigger: import('./types').ComponentPropsContext<"PopoverTrigger">;
35
37
  Radio: import('./types').ComponentPropsContext<"Radio">;
36
38
  RadioButton: import('./types').ComponentPropsContext<"RadioButton">;
37
39
  RadioGroup: import('./types').ComponentPropsContext<"RadioGroup">;
@@ -76,9 +78,11 @@ export declare const PropsContextProvider: import('react').Provider<Partial<{
76
78
  List: import('./types').ComponentPropsContext<"List">;
77
79
  MenuItem: import('./types').ComponentPropsContext<"MenuItem">;
78
80
  Modal: import('./types').ComponentPropsContext<"Modal">;
81
+ ModalTrigger: import('./types').ComponentPropsContext<"ModalTrigger">;
79
82
  NumberField: import('./types').ComponentPropsContext<"NumberField">;
80
83
  Option: import('./types').ComponentPropsContext<"Option">;
81
84
  Popover: import('./types').ComponentPropsContext<"Popover">;
85
+ PopoverTrigger: import('./types').ComponentPropsContext<"PopoverTrigger">;
82
86
  Radio: import('./types').ComponentPropsContext<"Radio">;
83
87
  RadioButton: import('./types').ComponentPropsContext<"RadioButton">;
84
88
  RadioGroup: import('./types').ComponentPropsContext<"RadioGroup">;
@@ -29,9 +29,11 @@ export declare const slotContext: import('react').Context<Partial<{
29
29
  List: string;
30
30
  MenuItem: string;
31
31
  Modal: string;
32
+ ModalTrigger: string;
32
33
  NumberField: string;
33
34
  Option: string;
34
35
  Popover: string;
36
+ PopoverTrigger: string;
35
37
  Radio: string;
36
38
  RadioButton: string;
37
39
  RadioGroup: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mittwald/flow-react-components",
3
- "version": "0.1.0-alpha.202",
3
+ "version": "0.1.0-alpha.204",
4
4
  "type": "module",
5
5
  "description": "A React implementation of Flow, mittwald’s design system",
6
6
  "homepage": "https://mittwald.github.io/flow",
@@ -284,7 +284,7 @@
284
284
  "dependencies": {
285
285
  "@chakra-ui/live-region": "^2.1.0",
286
286
  "@internationalized/string-compiler": "^3.2.4",
287
- "@mittwald/react-tunnel": "^0.1.0-alpha.202",
287
+ "@mittwald/react-tunnel": "^0.1.0-alpha.204",
288
288
  "@mittwald/react-use-promise": "^2.3.13",
289
289
  "@react-aria/utils": "^3.25.1",
290
290
  "@react-types/shared": "^3.24.1",
@@ -310,7 +310,7 @@
310
310
  },
311
311
  "devDependencies": {
312
312
  "@faker-js/faker": "^8.4.1",
313
- "@mittwald/flow-design-tokens": "^0.1.0-alpha.202",
313
+ "@mittwald/flow-design-tokens": "^0.1.0-alpha.204",
314
314
  "@mittwald/react-use-promise": "^2.3.13",
315
315
  "@nx/storybook": "^19.5.6",
316
316
  "@storybook/addon-a11y": "^8.2.7",
@@ -388,5 +388,5 @@
388
388
  "optional": true
389
389
  }
390
390
  },
391
- "gitHead": "17652a2cdb4d40d8efcfbd13f0e43f597339a1fd"
391
+ "gitHead": "3d8e2516a876b466d461cc20b9ef923688d3d9e4"
392
392
  }