@mittwald/flow-react-components 0.2.0-alpha.567 → 0.2.0-alpha.568

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 (177) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/assets/doc-properties.json +1910 -743
  3. package/dist/js/components/src/components/Autocomplete/Autocomplete.mjs +62 -50
  4. package/dist/js/components/src/components/Autocomplete/Autocomplete.mjs.map +1 -1
  5. package/dist/js/components/src/components/CartesianChart/CartesianChart.mjs +1 -0
  6. package/dist/js/components/src/components/CartesianChart/CartesianChart.mjs.map +1 -1
  7. package/dist/js/components/src/components/Checkbox/Checkbox.mjs +4 -11
  8. package/dist/js/components/src/components/Checkbox/Checkbox.mjs.map +1 -1
  9. package/dist/js/components/src/components/CheckboxButton/CheckboxButton.mjs +2 -19
  10. package/dist/js/components/src/components/CheckboxButton/CheckboxButton.mjs.map +1 -1
  11. package/dist/js/components/src/components/CheckboxGroup/CheckboxGroup.mjs +3 -3
  12. package/dist/js/components/src/components/CheckboxGroup/CheckboxGroup.mjs.map +1 -1
  13. package/dist/js/components/src/components/ComboBox/ComboBox.mjs +11 -37
  14. package/dist/js/components/src/components/ComboBox/ComboBox.mjs.map +1 -1
  15. package/dist/js/components/src/components/DateInput/DateInput.mjs +20 -0
  16. package/dist/js/components/src/components/DateInput/DateInput.mjs.map +1 -0
  17. package/dist/js/components/src/components/DatePicker/DatePicker.mjs +1 -6
  18. package/dist/js/components/src/components/DatePicker/DatePicker.mjs.map +1 -1
  19. package/dist/js/components/src/components/DatePicker/components/DateInput/DateInput.mjs +3 -2
  20. package/dist/js/components/src/components/DatePicker/components/DateInput/DateInput.mjs.map +1 -1
  21. package/dist/js/components/src/components/DateRangePicker/DateRangePicker.mjs +1 -6
  22. package/dist/js/components/src/components/DateRangePicker/DateRangePicker.mjs.map +1 -1
  23. package/dist/js/components/src/components/DateRangePicker/components/DateRangeInput/DateRangeInput.mjs +4 -3
  24. package/dist/js/components/src/components/DateRangePicker/components/DateRangeInput/DateRangeInput.mjs.map +1 -1
  25. package/dist/js/components/src/components/FileField/FileField.mjs +4 -10
  26. package/dist/js/components/src/components/FileField/FileField.mjs.map +1 -1
  27. package/dist/js/components/src/components/List/components/Header/components/ActiveFilters/ActiveFilters.mjs +1 -0
  28. package/dist/js/components/src/components/List/components/Header/components/ActiveFilters/ActiveFilters.mjs.map +1 -1
  29. package/dist/js/components/src/components/List/hooks/useAriaAnnounceSearchState.mjs +1 -0
  30. package/dist/js/components/src/components/List/hooks/useAriaAnnounceSearchState.mjs.map +1 -1
  31. package/dist/js/components/src/components/Markdown/Markdown.mjs.map +1 -1
  32. package/dist/js/components/src/components/MarkdownEditor/MarkdownEditor.mjs +19 -24
  33. package/dist/js/components/src/components/MarkdownEditor/MarkdownEditor.mjs.map +1 -1
  34. package/dist/js/components/src/components/MarkdownEditor/lib/modifyValueByMarkdownSyntax.mjs +2 -2
  35. package/dist/js/components/src/components/MarkdownEditor/lib/modifyValueByMarkdownSyntax.mjs.map +1 -1
  36. package/dist/js/components/src/components/MarkdownEditor/lib/modifyValueByType.mjs +1 -1
  37. package/dist/js/components/src/components/MarkdownEditor/lib/modifyValueByType.mjs.map +1 -1
  38. package/dist/js/components/src/components/Modal/components/OffCanvasSuspenseFallback/OffCanvasSuspenseFallback.mjs +1 -0
  39. package/dist/js/components/src/components/Modal/components/OffCanvasSuspenseFallback/OffCanvasSuspenseFallback.mjs.map +1 -1
  40. package/dist/js/components/src/components/NumberField/NumberField.mjs +4 -22
  41. package/dist/js/components/src/components/NumberField/NumberField.mjs.map +1 -1
  42. package/dist/js/components/src/components/Overlay/Overlay.mjs +1 -0
  43. package/dist/js/components/src/components/Overlay/Overlay.mjs.map +1 -1
  44. package/dist/js/components/src/components/Overlay/components/OverlaySuspenseFallback.mjs +1 -0
  45. package/dist/js/components/src/components/Overlay/components/OverlaySuspenseFallback.mjs.map +1 -1
  46. package/dist/js/components/src/components/PasswordCreationField/PasswordCreationField.mjs +8 -15
  47. package/dist/js/components/src/components/PasswordCreationField/PasswordCreationField.mjs.map +1 -1
  48. package/dist/js/components/src/components/Popover/Popover.mjs +1 -2
  49. package/dist/js/components/src/components/Popover/Popover.mjs.map +1 -1
  50. package/dist/js/components/src/components/SearchField/SearchField.mjs +6 -13
  51. package/dist/js/components/src/components/SearchField/SearchField.mjs.map +1 -1
  52. package/dist/js/components/src/components/SegmentedControl/SegmentedControl.mjs +3 -3
  53. package/dist/js/components/src/components/SegmentedControl/SegmentedControl.mjs.map +1 -1
  54. package/dist/js/components/src/components/Select/Select.mjs +5 -16
  55. package/dist/js/components/src/components/Select/Select.mjs.map +1 -1
  56. package/dist/js/components/src/components/Slider/Slider.mjs +2 -9
  57. package/dist/js/components/src/components/Slider/Slider.mjs.map +1 -1
  58. package/dist/js/components/src/components/Switch/Switch.mjs +6 -21
  59. package/dist/js/components/src/components/Switch/Switch.mjs.map +1 -1
  60. package/dist/js/components/src/components/TextArea/TextArea.mjs +13 -20
  61. package/dist/js/components/src/components/TextArea/TextArea.mjs.map +1 -1
  62. package/dist/js/components/src/components/TextField/TextField.mjs +4 -11
  63. package/dist/js/components/src/components/TextField/TextField.mjs.map +1 -1
  64. package/dist/js/components/src/components/TextFieldBase/TextFieldBase.mjs +9 -23
  65. package/dist/js/components/src/components/TextFieldBase/TextFieldBase.mjs.map +1 -1
  66. package/dist/js/components/src/components/TimeField/TimeField.mjs +3 -6
  67. package/dist/js/components/src/components/TimeField/TimeField.mjs.map +1 -1
  68. package/dist/js/components/src/components/Tooltip/Tooltip.mjs +1 -0
  69. package/dist/js/components/src/components/Tooltip/Tooltip.mjs.map +1 -1
  70. package/dist/js/components/src/integrations/react-hook-form/components/Field/Field.mjs +6 -7
  71. package/dist/js/components/src/integrations/react-hook-form/components/Field/Field.mjs.map +1 -1
  72. package/dist/js/components/src/integrations/react-hook-form/components/Form/Form.mjs +4 -6
  73. package/dist/js/components/src/integrations/react-hook-form/components/Form/Form.mjs.map +1 -1
  74. package/dist/js/components/src/integrations/react-hook-form/components/ResetButton/ResetButton.mjs +1 -3
  75. package/dist/js/components/src/integrations/react-hook-form/components/ResetButton/ResetButton.mjs.map +1 -1
  76. package/dist/js/components/src/integrations/react-hook-form/components/SubmitButton/SubmitButton.mjs +2 -2
  77. package/dist/js/components/src/lib/controller/overlay/OverlayController.mjs +6 -0
  78. package/dist/js/components/src/lib/controller/overlay/OverlayController.mjs.map +1 -1
  79. package/dist/js/components/src/lib/form/isFocused.mjs +8 -0
  80. package/dist/js/components/src/lib/form/isFocused.mjs.map +1 -0
  81. package/dist/js/components/src/lib/hooks/useFieldError.mjs +1 -0
  82. package/dist/js/components/src/lib/hooks/useFieldError.mjs.map +1 -1
  83. package/dist/js/components/src/lib/remote/eventHandlerContext.mjs +9 -0
  84. package/dist/js/components/src/lib/remote/eventHandlerContext.mjs.map +1 -0
  85. package/dist/js/components/src/lib/remote/useControlledHostValueProps.mjs +31 -0
  86. package/dist/js/components/src/lib/remote/useControlledHostValueProps.mjs.map +1 -0
  87. package/dist/js/components/src/lib/remote/useControlledRemoteValueProps.mjs +20 -0
  88. package/dist/js/components/src/lib/remote/useControlledRemoteValueProps.mjs.map +1 -0
  89. package/dist/js/default.mjs +2 -0
  90. package/dist/js/default.mjs.map +1 -1
  91. package/dist/js/flr-universal.mjs +1 -0
  92. package/dist/js/flr-universal.mjs.map +1 -1
  93. package/dist/types/components/Autocomplete/Autocomplete.d.ts +2 -2
  94. package/dist/types/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  95. package/dist/types/components/Checkbox/Checkbox.d.ts +3 -4
  96. package/dist/types/components/Checkbox/Checkbox.d.ts.map +1 -1
  97. package/dist/types/components/CheckboxButton/CheckboxButton.d.ts +2 -4
  98. package/dist/types/components/CheckboxButton/CheckboxButton.d.ts.map +1 -1
  99. package/dist/types/components/ComboBox/ComboBox.d.ts +3 -6
  100. package/dist/types/components/ComboBox/ComboBox.d.ts.map +1 -1
  101. package/dist/types/components/DateInput/DateInput.d.ts +8 -0
  102. package/dist/types/components/DateInput/DateInput.d.ts.map +1 -0
  103. package/dist/types/components/DateInput/index.d.ts +3 -0
  104. package/dist/types/components/DateInput/index.d.ts.map +1 -0
  105. package/dist/types/components/DatePicker/DatePicker.d.ts +2 -2
  106. package/dist/types/components/DatePicker/DatePicker.d.ts.map +1 -1
  107. package/dist/types/components/DatePicker/components/DateInput/DateInput.d.ts +2 -1
  108. package/dist/types/components/DatePicker/components/DateInput/DateInput.d.ts.map +1 -1
  109. package/dist/types/components/DateRangePicker/DateRangePicker.d.ts +2 -2
  110. package/dist/types/components/DateRangePicker/DateRangePicker.d.ts.map +1 -1
  111. package/dist/types/components/DateRangePicker/components/DateRangeInput/DateRangeInput.d.ts +2 -1
  112. package/dist/types/components/DateRangePicker/components/DateRangeInput/DateRangeInput.d.ts.map +1 -1
  113. package/dist/types/components/FileField/FileField.d.ts +1 -2
  114. package/dist/types/components/FileField/FileField.d.ts.map +1 -1
  115. package/dist/types/components/Header/Header.d.ts +1 -1
  116. package/dist/types/components/List/typedList.d.ts +2 -2
  117. package/dist/types/components/Markdown/Markdown.d.ts +2 -2
  118. package/dist/types/components/Markdown/Markdown.d.ts.map +1 -1
  119. package/dist/types/components/MarkdownEditor/MarkdownEditor.d.ts +3 -7
  120. package/dist/types/components/MarkdownEditor/MarkdownEditor.d.ts.map +1 -1
  121. package/dist/types/components/MarkdownEditor/lib/modifyValueByMarkdownSyntax.d.ts +2 -2
  122. package/dist/types/components/MarkdownEditor/lib/modifyValueByMarkdownSyntax.d.ts.map +1 -1
  123. package/dist/types/components/MarkdownEditor/lib/modifyValueByType.d.ts +1 -1
  124. package/dist/types/components/MarkdownEditor/lib/modifyValueByType.d.ts.map +1 -1
  125. package/dist/types/components/NumberField/NumberField.d.ts +3 -4
  126. package/dist/types/components/NumberField/NumberField.d.ts.map +1 -1
  127. package/dist/types/components/PasswordCreationField/PasswordCreationField.d.ts.map +1 -1
  128. package/dist/types/components/Popover/Popover.d.ts +1 -1
  129. package/dist/types/components/Popover/Popover.d.ts.map +1 -1
  130. package/dist/types/components/SearchField/SearchField.d.ts.map +1 -1
  131. package/dist/types/components/SegmentedControl/SegmentedControl.d.ts +3 -3
  132. package/dist/types/components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
  133. package/dist/types/components/Select/Select.d.ts +2 -5
  134. package/dist/types/components/Select/Select.d.ts.map +1 -1
  135. package/dist/types/components/Slider/Slider.d.ts +3 -3
  136. package/dist/types/components/Slider/Slider.d.ts.map +1 -1
  137. package/dist/types/components/Switch/Switch.d.ts +2 -2
  138. package/dist/types/components/Switch/Switch.d.ts.map +1 -1
  139. package/dist/types/components/TextArea/TextArea.d.ts.map +1 -1
  140. package/dist/types/components/TextField/TextField.d.ts.map +1 -1
  141. package/dist/types/components/TextFieldBase/TextFieldBase.d.ts.map +1 -1
  142. package/dist/types/components/TimeField/TimeField.d.ts +3 -3
  143. package/dist/types/components/TimeField/TimeField.d.ts.map +1 -1
  144. package/dist/types/index/default.d.ts +2 -0
  145. package/dist/types/index/default.d.ts.map +1 -1
  146. package/dist/types/integrations/react-hook-form/components/Field/Field.d.ts.map +1 -1
  147. package/dist/types/integrations/react-hook-form/components/Form/Form.d.ts +2 -2
  148. package/dist/types/integrations/react-hook-form/components/Form/Form.d.ts.map +1 -1
  149. package/dist/types/integrations/react-hook-form/components/ResetButton/ResetButton.d.ts +1 -1
  150. package/dist/types/integrations/react-hook-form/components/ResetButton/ResetButton.d.ts.map +1 -1
  151. package/dist/types/integrations/react-hook-form/components/SubmitButton/SubmitButton.d.ts +1 -1
  152. package/dist/types/lib/controller/overlay/OverlayController.d.ts.map +1 -1
  153. package/dist/types/lib/form/isFocused.d.ts +2 -0
  154. package/dist/types/lib/form/isFocused.d.ts.map +1 -0
  155. package/dist/types/lib/remote/eventHandlerContext.d.ts +11 -0
  156. package/dist/types/lib/remote/eventHandlerContext.d.ts.map +1 -0
  157. package/dist/types/lib/remote/types.d.ts +6 -0
  158. package/dist/types/lib/remote/types.d.ts.map +1 -0
  159. package/dist/types/lib/remote/useControlledHostValueProps.d.ts +18 -0
  160. package/dist/types/lib/remote/useControlledHostValueProps.d.ts.map +1 -0
  161. package/dist/types/lib/remote/useControlledRemoteValueProps.d.ts +11 -0
  162. package/dist/types/lib/remote/useControlledRemoteValueProps.d.ts.map +1 -0
  163. package/package.json +5 -4
  164. package/dist/js/components/src/lib/hooks/useManagedValue.mjs +0 -27
  165. package/dist/js/components/src/lib/hooks/useManagedValue.mjs.map +0 -1
  166. package/dist/js/components/src/lib/react/ReactAriaControlledValueFix.mjs +0 -65
  167. package/dist/js/components/src/lib/react/ReactAriaControlledValueFix.mjs.map +0 -1
  168. package/dist/js/components/src/lib/react/emitElementValueChange.mjs +0 -22
  169. package/dist/js/components/src/lib/react/emitElementValueChange.mjs.map +0 -1
  170. package/dist/types/lib/hooks/useManagedValue.d.ts +0 -13
  171. package/dist/types/lib/hooks/useManagedValue.d.ts.map +0 -1
  172. package/dist/types/lib/react/ReactAriaControlledValueFix.d.ts +0 -16
  173. package/dist/types/lib/react/ReactAriaControlledValueFix.d.ts.map +0 -1
  174. package/dist/types/lib/react/ReactAriaControlledValueFix.test.d.ts +0 -2
  175. package/dist/types/lib/react/ReactAriaControlledValueFix.test.d.ts.map +0 -1
  176. package/dist/types/lib/react/emitElementValueChange.d.ts +0 -6
  177. package/dist/types/lib/react/emitElementValueChange.d.ts.map +0 -1
@@ -1,13 +1,9 @@
1
- import { default as React, RefObject } from 'react';
2
1
  import { MarkdownProps } from '../Markdown';
3
2
  import { TextAreaProps } from '../TextArea';
4
3
  export type MarkdownEditorMode = "editor" | "preview";
5
- export type MarkdownEditorProps = Omit<TextAreaProps, "ref"> & Pick<MarkdownProps, "headingOffset" | "ref"> & {
6
- inputRef?: RefObject<HTMLTextAreaElement | null>;
7
- };
4
+ export interface MarkdownEditorProps extends TextAreaProps, Pick<MarkdownProps, "headingOffset"> {
5
+ }
8
6
  /** @flr-generate all */
9
- export declare const MarkdownEditor: React.FunctionComponent<Omit<TextAreaProps, "ref"> & Pick<MarkdownProps, "ref" | "headingOffset"> & {
10
- inputRef?: RefObject<HTMLTextAreaElement | null>;
11
- } & React.RefAttributes<HTMLDivElement>>;
7
+ export declare const MarkdownEditor: import('react').FunctionComponent<MarkdownEditorProps & import('react').RefAttributes<HTMLTextAreaElement>>;
12
8
  export default MarkdownEditor;
13
9
  //# sourceMappingURL=MarkdownEditor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MarkdownEditor.d.ts","sourceRoot":"","sources":["../../../../src/components/MarkdownEditor/MarkdownEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAEZ,KAAK,SAAS,EAIf,MAAM,OAAO,CAAC;AAEf,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAiBrE,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEtD,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,aAAa,EAAE,KAAK,CAAC,GAC1D,IAAI,CAAC,aAAa,EAAE,eAAe,GAAG,KAAK,CAAC,GAAG;IAC7C,QAAQ,CAAC,EAAE,SAAS,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAAC;CAClD,CAAC;AAEJ,wBAAwB;AACxB,eAAO,MAAM,cAAc;eAJZ,SAAS,CAAC,mBAAmB,GAAG,IAAI,CAAC;wCAmJlD,CAAC;AAEH,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"MarkdownEditor.d.ts","sourceRoot":"","sources":["../../../../src/components/MarkdownEditor/MarkdownEditor.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAiBrE,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEtD,MAAM,WAAW,mBACf,SAAQ,aAAa,EACnB,IAAI,CAAC,aAAa,EAAE,eAAe,CAAC;CAAG;AAE3C,wBAAwB;AACxB,eAAO,MAAM,cAAc,6GAwIzB,CAAC;AAEH,eAAe,cAAc,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { RefObject } from 'react';
2
- export declare const scrollToCursor: (value: string, textarea: HTMLTextAreaElement) => void;
3
- export declare const modifyValueByMarkdownSyntax: (value: string, textAreaRef: RefObject<HTMLTextAreaElement | null>) => {
2
+ export declare const scrollToCursor: (value: string | undefined, textarea: HTMLTextAreaElement) => void;
3
+ export declare const modifyValueByMarkdownSyntax: (value: string | undefined, textAreaRef: RefObject<HTMLTextAreaElement | null>) => {
4
4
  readonly newValue: string;
5
5
  readonly newSelectionStart: number;
6
6
  readonly newSelectionEnd: number;
@@ -1 +1 @@
1
- {"version":3,"file":"modifyValueByMarkdownSyntax.d.ts","sourceRoot":"","sources":["../../../../../src/components/MarkdownEditor/lib/modifyValueByMarkdownSyntax.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,eAAO,MAAM,cAAc,GACzB,OAAO,MAAM,EACb,UAAU,mBAAmB,SAS9B,CAAC;AAEF,eAAO,MAAM,2BAA2B,GACtC,OAAO,MAAM,EACb,aAAa,SAAS,CAAC,mBAAmB,GAAG,IAAI,CAAC;;;;aAqDnD,CAAC"}
1
+ {"version":3,"file":"modifyValueByMarkdownSyntax.d.ts","sourceRoot":"","sources":["../../../../../src/components/MarkdownEditor/lib/modifyValueByMarkdownSyntax.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,eAAO,MAAM,cAAc,GAAI,yBAAU,EAAE,UAAU,mBAAmB,SAQvE,CAAC;AAEF,eAAO,MAAM,2BAA2B,GACtC,yBAAU,EACV,aAAa,SAAS,CAAC,mBAAmB,GAAG,IAAI,CAAC;;;;aAqDnD,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { RefObject } from 'react';
2
2
  export type InsertType = "bold" | "italic" | "strikeThrough" | "quote" | "code" | "link" | "unorderedList" | "orderedList";
3
- export declare const modifyValueByType: (markdown: string, type: InsertType, textAreaRef: RefObject<HTMLTextAreaElement | null>) => {
3
+ export declare const modifyValueByType: (markdown: string | undefined, type: InsertType, textAreaRef: RefObject<HTMLTextAreaElement | null>) => {
4
4
  readonly newValue: string;
5
5
  readonly newSelectionStart: null;
6
6
  readonly newSelectionEnd: null;
@@ -1 +1 @@
1
- {"version":3,"file":"modifyValueByType.d.ts","sourceRoot":"","sources":["../../../../../src/components/MarkdownEditor/lib/modifyValueByType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,UAAU,GAClB,MAAM,GACN,QAAQ,GACR,eAAe,GACf,OAAO,GACP,MAAM,GACN,MAAM,GACN,eAAe,GACf,aAAa,CAAC;AA0BlB,eAAO,MAAM,iBAAiB,GAC5B,UAAU,MAAM,EAChB,MAAM,UAAU,EAChB,aAAa,SAAS,CAAC,mBAAmB,GAAG,IAAI,CAAC;;;;;;;;CAoLnD,CAAC"}
1
+ {"version":3,"file":"modifyValueByType.d.ts","sourceRoot":"","sources":["../../../../../src/components/MarkdownEditor/lib/modifyValueByType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,UAAU,GAClB,MAAM,GACN,QAAQ,GACR,eAAe,GACf,OAAO,GACP,MAAM,GACN,MAAM,GACN,eAAe,GACf,aAAa,CAAC;AA0BlB,eAAO,MAAM,iBAAiB,GAC5B,4BAAa,EACb,MAAM,UAAU,EAChB,aAAa,SAAS,CAAC,mBAAmB,GAAG,IAAI,CAAC;;;;;;;;CAoLnD,CAAC"}
@@ -1,10 +1,9 @@
1
- import { default as React, PropsWithChildren, RefObject } from 'react';
1
+ import { PropsWithChildren } from 'react';
2
2
  import { FlowComponentProps } from '../../lib/componentFactory/flowComponent';
3
3
  import * as Aria from "react-aria-components";
4
- export interface NumberFieldProps extends PropsWithChildren<Omit<Aria.NumberFieldProps, "children">>, FlowComponentProps {
5
- inputRef?: RefObject<HTMLInputElement | null>;
4
+ export interface NumberFieldProps extends PropsWithChildren<Omit<Aria.NumberFieldProps, "children">>, FlowComponentProps<HTMLInputElement> {
6
5
  }
7
6
  /** @flr-generate all */
8
- export declare const NumberField: React.FunctionComponent<NumberFieldProps & React.RefAttributes<HTMLDivElement>>;
7
+ export declare const NumberField: import('react').FunctionComponent<NumberFieldProps & import('react').RefAttributes<HTMLInputElement>>;
9
8
  export default NumberField;
10
9
  //# sourceMappingURL=NumberField.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NumberField.d.ts","sourceRoot":"","sources":["../../../../src/components/NumberField/NumberField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACtE,OAAO,KAAK,IAAI,MAAM,uBAAuB,CAAC;AAY9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAO/E,MAAM,WAAW,gBACf,SAAQ,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC,CAAC,EAChE,kBAAkB;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC;CAC/C;AAED,wBAAwB;AACxB,eAAO,MAAM,WAAW,iFAqEtB,CAAC;AAEH,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"NumberField.d.ts","sourceRoot":"","sources":["../../../../src/components/NumberField/NumberField.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,KAAK,IAAI,MAAM,uBAAuB,CAAC;AAY9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAK/E,MAAM,WAAW,gBACf,SAAQ,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC,CAAC,EAChE,kBAAkB,CAAC,gBAAgB,CAAC;CAAG;AAE3C,wBAAwB;AACxB,eAAO,MAAM,WAAW,uGAqDtB,CAAC;AAEH,eAAe,WAAW,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"PasswordCreationField.d.ts","sourceRoot":"","sources":["../../../../src/components/PasswordCreationField/PasswordCreationField.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,iBAAiB,EAKvB,MAAM,OAAO,CAAC;AAMf,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,sCAAsC,CAAC;AAE9C,OAAO,KAAK,IAAI,MAAM,uBAAuB,CAAC;AAe9C,OAAO,KAAK,EACV,sBAAsB,EACtB,wBAAwB,EACxB,oBAAoB,EACrB,MAAM,4CAA4C,CAAC;AAUpD,MAAM,WAAW,0BACf,SAAQ,iBAAiB,CACrB,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE,UAAU,GAAG,OAAO,GAAG,cAAc,CAAC,GAC9D,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,qBAAqB,EAAE,kBAAkB,CAAC,CAAC,CAChE,EACD,kBAAkB,CAAC,gBAAgB,CAAC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kBAAkB,CAAC,EAAE,CAAC,MAAM,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI,CAAC;IAC9E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,wBAAwB,CAAC;CAC7C;AAED,MAAM,WAAW,8BACf,SAAQ,IAAI,CAAC,sBAAsB,EAAE,SAAS,CAAC;IAC/C,OAAO,EAAE,OAAO,GAAG,eAAe,CAAC;IACnC,WAAW,EAAE,oBAAoB,EAAE,CAAC;CACrC;AAED,wBAAwB;AACxB,eAAO,MAAM,qBAAqB,iHAqOjC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
1
+ {"version":3,"file":"PasswordCreationField.d.ts","sourceRoot":"","sources":["../../../../src/components/PasswordCreationField/PasswordCreationField.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,iBAAiB,EAKvB,MAAM,OAAO,CAAC;AAMf,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,sCAAsC,CAAC;AAE9C,OAAO,KAAK,IAAI,MAAM,uBAAuB,CAAC;AAc9C,OAAO,KAAK,EACV,sBAAsB,EACtB,wBAAwB,EACxB,oBAAoB,EACrB,MAAM,4CAA4C,CAAC;AAUpD,MAAM,WAAW,0BACf,SAAQ,iBAAiB,CACrB,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE,UAAU,GAAG,OAAO,GAAG,cAAc,CAAC,GAC9D,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,qBAAqB,EAAE,kBAAkB,CAAC,CAAC,CAChE,EACD,kBAAkB,CAAC,gBAAgB,CAAC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kBAAkB,CAAC,EAAE,CAAC,MAAM,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI,CAAC;IAC9E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,wBAAwB,CAAC;CAC7C;AAED,MAAM,WAAW,8BACf,SAAQ,IAAI,CAAC,sBAAsB,EAAE,SAAS,CAAC;IAC/C,OAAO,EAAE,OAAO,GAAG,eAAe,CAAC;IACnC,WAAW,EAAE,oBAAoB,EAAE,CAAC;CACrC;AAED,wBAAwB;AACxB,eAAO,MAAM,qBAAqB,iHAiOjC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
@@ -2,7 +2,7 @@ import { PropsWithChildren } from 'react';
2
2
  import { OverlayController } from '../../lib/controller';
3
3
  import { FlowComponentProps } from '../../lib/componentFactory/flowComponent';
4
4
  import type * as Aria from "react-aria-components";
5
- export interface PopoverProps extends PropsWithChildren<Omit<Aria.PopoverProps, "children">>, FlowComponentProps {
5
+ export interface PopoverProps extends PropsWithChildren<Omit<Aria.PopoverProps, "children" | "ref">>, FlowComponentProps<HTMLDivElement> {
6
6
  /**
7
7
  * Whether the popover should display a tip, pointing towards the trigger
8
8
  * element.
@@ -1 +1 @@
1
- {"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../../src/components/Popover/Popover.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,KAAK,KAAK,IAAI,MAAM,uBAAuB,CAAC;AAEnD,OAAO,EAAE,KAAK,iBAAiB,EAAwB,MAAM,kBAAkB,CAAC;AAChF,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,sCAAsC,CAAC;AAM9C,MAAM,WAAW,YACf,SAAQ,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC,EAC5D,kBAAkB;IACpB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,6CAA6C;IAC7C,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,0DAA0D;IAC1D,UAAU,CAAC,EAAE,iBAAiB,CAAC;IAC/B,qCAAqC;IACrC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB;AAED,eAAO,MAAM,OAAO,iGA0ClB,CAAC;AAEH,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../../src/components/Popover/Popover.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,KAAK,KAAK,IAAI,MAAM,uBAAuB,CAAC;AAEnD,OAAO,EAAE,KAAK,iBAAiB,EAAwB,MAAM,kBAAkB,CAAC;AAChF,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,sCAAsC,CAAC;AAM9C,MAAM,WAAW,YACf,SAAQ,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,UAAU,GAAG,KAAK,CAAC,CAAC,EACpE,kBAAkB,CAAC,cAAc,CAAC;IACpC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,6CAA6C;IAC7C,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,0DAA0D;IAC1D,UAAU,CAAC,EAAE,iBAAiB,CAAC;IAC/B,qCAAqC;IACrC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB;AAED,eAAO,MAAM,OAAO,iGAwClB,CAAC;AAEH,eAAe,OAAO,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"SearchField.d.ts","sourceRoot":"","sources":["../../../../src/components/SearchField/SearchField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,KAAK,IAAI,MAAM,uBAAuB,CAAC;AAK9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAS/E,MAAM,WAAW,gBACf,SAAQ,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC,CAAC,EAChE,kBAAkB,CAAC,gBAAgB,CAAC;CAAG;AAE3C,wBAAwB;AACxB,eAAO,MAAM,WAAW,uGAoDtB,CAAC;AAEH,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"SearchField.d.ts","sourceRoot":"","sources":["../../../../src/components/SearchField/SearchField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,KAAK,IAAI,MAAM,uBAAuB,CAAC;AAK9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAS/E,MAAM,WAAW,gBACf,SAAQ,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC,CAAC,EAChE,kBAAkB,CAAC,gBAAgB,CAAC;CAAG;AAE3C,wBAAwB;AACxB,eAAO,MAAM,WAAW,uGAgDtB,CAAC;AAEH,eAAe,WAAW,CAAC"}
@@ -1,10 +1,10 @@
1
1
  import { FlowComponentProps } from '../../lib/componentFactory/flowComponent';
2
2
  import { PropsWithContainerBreakpointSize } from '../../lib/types/props';
3
- import { default as React, PropsWithChildren } from 'react';
3
+ import { PropsWithChildren } from 'react';
4
4
  import * as Aria from "react-aria-components";
5
- export interface SegmentedControlProps extends PropsWithChildren<Omit<Aria.RadioGroupProps, "children">>, FlowComponentProps, PropsWithContainerBreakpointSize {
5
+ export interface SegmentedControlProps extends PropsWithChildren<Omit<Aria.RadioGroupProps, "children" | "ref">>, FlowComponentProps<HTMLDivElement>, PropsWithContainerBreakpointSize {
6
6
  }
7
7
  /** @flr-generate all */
8
- export declare const SegmentedControl: React.FunctionComponent<SegmentedControlProps & React.RefAttributes<HTMLDivElement>>;
8
+ export declare const SegmentedControl: import('react').FunctionComponent<SegmentedControlProps & import('react').RefAttributes<HTMLDivElement>>;
9
9
  export default SegmentedControl;
10
10
  //# sourceMappingURL=SegmentedControl.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SegmentedControl.d.ts","sourceRoot":"","sources":["../../../../src/components/SegmentedControl/SegmentedControl.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,mBAAmB,CAAC;AAC1E,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,KAAK,IAAI,MAAM,uBAAuB,CAAC;AAY9C,MAAM,WAAW,qBACf,SAAQ,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC,EAC/D,kBAAkB,EAClB,gCAAgC;CAAG;AAEvC,wBAAwB;AACxB,eAAO,MAAM,gBAAgB,sFAuD3B,CAAC;AAEH,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"SegmentedControl.d.ts","sourceRoot":"","sources":["../../../../src/components/SegmentedControl/SegmentedControl.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,mBAAmB,CAAC;AAC1E,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,KAAK,IAAI,MAAM,uBAAuB,CAAC;AAY9C,MAAM,WAAW,qBACf,SAAQ,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE,UAAU,GAAG,KAAK,CAAC,CAAC,EACvE,kBAAkB,CAAC,cAAc,CAAC,EAClC,gCAAgC;CAAG;AAEvC,wBAAwB;AACxB,eAAO,MAAM,gBAAgB,0GAuD3B,CAAC;AAEH,eAAe,gBAAgB,CAAC"}
@@ -2,17 +2,14 @@ import { PropsWithChildren } from 'react';
2
2
  import { Key } from 'react-aria-components';
3
3
  import { FlowComponentProps } from '../../lib/componentFactory/flowComponent';
4
4
  import { PropsWithClassName } from '../../lib/types/props';
5
- import { OverlayController } from '../../lib/controller';
6
5
  import * as Aria from "react-aria-components";
7
- export interface SelectProps extends PropsWithChildren<Omit<Aria.SelectProps, "children" | "className">>, FlowComponentProps, PropsWithClassName {
6
+ export interface SelectProps extends PropsWithChildren<Omit<Aria.SelectProps, "children" | "className" | "ref">>, FlowComponentProps<HTMLButtonElement>, PropsWithClassName {
8
7
  /** Handler that is called when the selected value changes. */
9
8
  onChange?: (value: Key | null) => void;
10
- /** An overlay controller to control the select option popover state. */
11
- controller?: OverlayController;
12
9
  /** Whether the component is read only. */
13
10
  isReadOnly?: boolean;
14
11
  }
15
12
  /** @flr-generate all */
16
- export declare const Select: import('react').FunctionComponent<SelectProps & import('react').RefAttributes<HTMLDivElement>>;
13
+ export declare const Select: import('react').FunctionComponent<SelectProps & import('react').RefAttributes<HTMLButtonElement>>;
17
14
  export default Select;
18
15
  //# sourceMappingURL=Select.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAAU,MAAM,OAAO,CAAC;AACvD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,KAAK,IAAI,MAAM,uBAAuB,CAAC;AAO9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAI/E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,KAAK,iBAAiB,EAAwB,MAAM,kBAAkB,CAAC;AAKhF,MAAM,WAAW,WACf,SAAQ,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,UAAU,GAAG,WAAW,CAAC,CAAC,EACzE,kBAAkB,EAClB,kBAAkB;IACpB,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,GAAG,IAAI,KAAK,IAAI,CAAC;IACvC,wEAAwE;IACxE,UAAU,CAAC,EAAE,iBAAiB,CAAC;IAC/B,0CAA0C;IAC1C,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,wBAAwB;AACxB,eAAO,MAAM,MAAM,gGAoFjB,CAAC;AAEH,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,KAAK,IAAI,MAAM,uBAAuB,CAAC;AAO9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAI/E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAI5D,MAAM,WAAW,WACf,SAAQ,iBAAiB,CACrB,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,UAAU,GAAG,WAAW,GAAG,KAAK,CAAC,CACzD,EACD,kBAAkB,CAAC,iBAAiB,CAAC,EACrC,kBAAkB;IACpB,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,GAAG,IAAI,KAAK,IAAI,CAAC;IACvC,0CAA0C;IAC1C,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,wBAAwB;AACxB,eAAO,MAAM,MAAM,mGAwEjB,CAAC;AAEH,eAAe,MAAM,CAAC"}
@@ -1,13 +1,13 @@
1
- import { PropsWithChildren, default as React } from 'react';
1
+ import { PropsWithChildren } from 'react';
2
2
  import { FlowComponentProps } from '../../lib/componentFactory/flowComponent';
3
3
  import * as Aria from "react-aria-components";
4
- export interface SliderProps extends FlowComponentProps, PropsWithChildren<Aria.SliderProps>, Pick<Aria.SliderThumbProps, "inputRef" | "name"> {
4
+ export interface SliderProps extends FlowComponentProps<HTMLInputElement>, PropsWithChildren<Aria.SliderProps>, Pick<Aria.SliderThumbProps, "name"> {
5
5
  showInitialMarker?: boolean;
6
6
  /** Whether the component is read only. */
7
7
  isReadOnly?: boolean;
8
8
  isInvalid?: boolean;
9
9
  }
10
10
  /** @flr-generate all */
11
- export declare const Slider: React.FunctionComponent<SliderProps & React.RefAttributes<HTMLDivElement>>;
11
+ export declare const Slider: import('react').FunctionComponent<SliderProps & import('react').RefAttributes<HTMLInputElement>>;
12
12
  export default Slider;
13
13
  //# sourceMappingURL=Slider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../../src/components/Slider/Slider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAE/E,OAAO,KAAK,IAAI,MAAM,uBAAuB,CAAC;AAc9C,MAAM,WAAW,WACf,SAAQ,kBAAkB,EACxB,iBAAiB,CAAC,IAAI,CAAC,WAAW,CAAC,EACnC,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,UAAU,GAAG,MAAM,CAAC;IAClD,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,0CAA0C;IAC1C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,wBAAwB;AACxB,eAAO,MAAM,MAAM,4EAsHjB,CAAC;AAEH,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../../src/components/Slider/Slider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAE/E,OAAO,KAAK,IAAI,MAAM,uBAAuB,CAAC;AAa9C,MAAM,WAAW,WACf,SAAQ,kBAAkB,CAAC,gBAAgB,CAAC,EAC1C,iBAAiB,CAAC,IAAI,CAAC,WAAW,CAAC,EACnC,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,MAAM,CAAC;IACrC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,0CAA0C;IAC1C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,wBAAwB;AACxB,eAAO,MAAM,MAAM,kGA+GjB,CAAC;AAEH,eAAe,MAAM,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { PropsWithChildren } from 'react';
2
2
  import { FlowComponentProps } from '../../lib/componentFactory/flowComponent';
3
3
  import * as Aria from "react-aria-components";
4
- export interface SwitchProps extends PropsWithChildren<Omit<Aria.SwitchProps, "children">>, FlowComponentProps<HTMLLabelElement> {
4
+ export interface SwitchProps extends PropsWithChildren<Omit<Aria.SwitchProps, "children" | "inputRef">>, FlowComponentProps<HTMLInputElement> {
5
5
  /**
6
6
  * Whether the label should appear before or after the switch. @default
7
7
  * "trailing"
@@ -9,6 +9,6 @@ export interface SwitchProps extends PropsWithChildren<Omit<Aria.SwitchProps, "c
9
9
  labelPosition?: "leading" | "trailing";
10
10
  }
11
11
  /** @flr-generate all */
12
- export declare const Switch: import('react').FunctionComponent<SwitchProps & import('react').RefAttributes<HTMLLabelElement>>;
12
+ export declare const Switch: import('react').FunctionComponent<SwitchProps & import('react').RefAttributes<HTMLInputElement>>;
13
13
  export default Switch;
14
14
  //# sourceMappingURL=Switch.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../../src/components/Switch/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,KAAK,IAAI,MAAM,uBAAuB,CAAC;AAI9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAQ/E,MAAM,WAAW,WACf,SAAQ,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC,EAC3D,kBAAkB,CAAC,gBAAgB,CAAC;IACtC;;;OAGG;IACH,aAAa,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC;CACxC;AAED,wBAAwB;AACxB,eAAO,MAAM,MAAM,kGA8DjB,CAAC;AAEH,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../../src/components/Switch/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,KAAK,IAAI,MAAM,uBAAuB,CAAC;AAI9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAO/E,MAAM,WAAW,WACf,SAAQ,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,UAAU,GAAG,UAAU,CAAC,CAAC,EACxE,kBAAkB,CAAC,gBAAgB,CAAC;IACtC;;;OAGG;IACH,aAAa,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC;CACxC;AAED,wBAAwB;AACxB,eAAO,MAAM,MAAM,kGAmDjB,CAAC;AAEH,eAAe,MAAM,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../../src/components/TextArea/TextArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,uBAAuB,CAAC;AAC9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAGrE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAS/E,MAAM,WAAW,aACf,SAAQ,IAAI,CACR,kBAAkB,EAClB,gBAAgB,GAAG,0BAA0B,GAAG,OAAO,GAAG,KAAK,CAChE,EACD,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM,GAAG,aAAa,CAAC,EAChE,kBAAkB,CAAC,mBAAmB,CAAC;IACzC;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,oEAAoE;IACpE,WAAW,CAAC,EAAE,OAAO,GAAG,YAAY,GAAG,UAAU,CAAC;IAElD,6CAA6C;IAC7C,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,6CAA6C;IAC7C,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,wBAAwB;AACxB,eAAO,MAAM,QAAQ,uGAoInB,CAAC;AAEH,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../../src/components/TextArea/TextArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,uBAAuB,CAAC;AAC9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAGrE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAS/E,MAAM,WAAW,aACf,SAAQ,IAAI,CACR,kBAAkB,EAClB,gBAAgB,GAAG,0BAA0B,GAAG,OAAO,GAAG,KAAK,CAChE,EACD,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM,GAAG,aAAa,CAAC,EAChE,kBAAkB,CAAC,mBAAmB,CAAC;IACzC;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,oEAAoE;IACpE,WAAW,CAAC,EAAE,OAAO,GAAG,YAAY,GAAG,UAAU,CAAC;IAElD,6CAA6C;IAC7C,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,6CAA6C;IAC7C,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,wBAAwB;AACxB,eAAO,MAAM,QAAQ,uGA+HnB,CAAC;AAEH,eAAe,QAAQ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../../../src/components/TextField/TextField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAE/E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAQ5D,MAAM,WAAW,cACf,SAAQ,IAAI,CACR,kBAAkB,EAClB,gBAAgB,GAAG,0BAA0B,GAAG,OAAO,GAAG,WAAW,CACtE,EACD,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,aAAa,GAAG,MAAM,CAAC,EAC7C,kBAAkB,EAClB,kBAAkB,CAAC,gBAAgB,CAAC;CAGvC;AAED,wBAAwB;AACxB,eAAO,MAAM,SAAS,qGAyCpB,CAAC;AAEH,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../../../src/components/TextField/TextField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAE/E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAK5D,MAAM,WAAW,cACf,SAAQ,IAAI,CACR,kBAAkB,EAClB,gBAAgB,GAAG,0BAA0B,GAAG,OAAO,GAAG,WAAW,CACtE,EACD,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,aAAa,GAAG,MAAM,CAAC,EAC7C,kBAAkB,EAClB,kBAAkB,CAAC,gBAAgB,CAAC;CAAG;AAE3C,wBAAwB;AACxB,eAAO,MAAM,SAAS,qGAiCpB,CAAC;AAEH,eAAe,SAAS,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TextFieldBase.d.ts","sourceRoot":"","sources":["../../../../src/components/TextFieldBase/TextFieldBase.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAExE,OAAO,KAAK,IAAI,MAAM,uBAAuB,CAAC;AAI9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAGvE,MAAM,WAAW,kBACf,SAAQ,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC,EAC9D,IAAI,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,EAAE,KAAK,CAAC,EACjD,IAAI,CAAC,iBAAiB,EAAE,gBAAgB,GAAG,0BAA0B,CAAC;IACxE,wBAAwB;IACxB,KAAK,EAAE,SAAS,CAAC;IACjB,kFAAkF;IAClF,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CA+DhD,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"TextFieldBase.d.ts","sourceRoot":"","sources":["../../../../src/components/TextFieldBase/TextFieldBase.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAExE,OAAO,KAAK,IAAI,MAAM,uBAAuB,CAAC;AAI9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAGvE,MAAM,WAAW,kBACf,SAAQ,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC,EAC9D,IAAI,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,EAAE,KAAK,CAAC,EACjD,IAAI,CAAC,iBAAiB,EAAE,gBAAgB,GAAG,0BAA0B,CAAC;IACxE,wBAAwB;IACxB,KAAK,EAAE,SAAS,CAAC;IACjB,kFAAkF;IAClF,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAgDhD,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1,9 +1,9 @@
1
- import { default as React, PropsWithChildren } from 'react';
1
+ import { PropsWithChildren } from 'react';
2
2
  import { FlowComponentProps } from '../../lib/componentFactory/flowComponent';
3
3
  import * as Aria from "react-aria-components";
4
- export interface TimeFieldProps<T extends Aria.TimeValue = Aria.TimeValue> extends PropsWithChildren<Omit<Aria.TimeFieldProps<T>, "children">>, FlowComponentProps<HTMLInputElement> {
4
+ export interface TimeFieldProps<T extends Aria.TimeValue = Aria.TimeValue> extends PropsWithChildren<Omit<Aria.TimeFieldProps<T>, "children">>, FlowComponentProps<HTMLSpanElement> {
5
5
  }
6
6
  /** @flr-generate all */
7
- export declare const TimeField: React.FunctionComponent<TimeFieldProps<Aria.TimeValue> & React.RefAttributes<HTMLInputElement>>;
7
+ export declare const TimeField: import('react').FunctionComponent<TimeFieldProps<Aria.TimeValue> & import('react').RefAttributes<HTMLSpanElement>>;
8
8
  export default TimeField;
9
9
  //# sourceMappingURL=TimeField.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TimeField.d.ts","sourceRoot":"","sources":["../../../../src/components/TimeField/TimeField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,KAAK,IAAI,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,sCAAsC,CAAC;AAM9C,MAAM,WAAW,cAAc,CAAC,CAAC,SAAS,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CACvE,SAAQ,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,EACjE,kBAAkB,CAAC,gBAAgB,CAAC;CAAG;AAE3C,wBAAwB;AACxB,eAAO,MAAM,SAAS,iGA0BpB,CAAC;AAEH,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"TimeField.d.ts","sourceRoot":"","sources":["../../../../src/components/TimeField/TimeField.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,KAAK,IAAI,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,sCAAsC,CAAC;AAM9C,MAAM,WAAW,cAAc,CAAC,CAAC,SAAS,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CACvE,SAAQ,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,EACjE,kBAAkB,CAAC,eAAe,CAAC;CAAG;AAE1C,wBAAwB;AACxB,eAAO,MAAM,SAAS,oHAqBpB,CAAC;AAEH,eAAe,SAAS,CAAC"}
@@ -2,4 +2,6 @@ export * from '../components/public';
2
2
  export * from '../lib/controller/public';
3
3
  export * from '../lib/hooks/public';
4
4
  export * from '../lib/propsContext/index';
5
+ export * from '../lib/remote/eventHandlerContext';
6
+ export { useControlledRemoteValueProps } from '../lib/remote/useControlledRemoteValueProps';
5
7
  //# sourceMappingURL=default.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../src/index/default.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC"}
1
+ {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../src/index/default.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,kCAAkC,CAAC;AACjD,OAAO,EAAE,6BAA6B,EAAE,MAAM,4CAA4C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Field.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/react-hook-form/components/Field/Field.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,WAAW,EAEhB,KAAK,aAAa,EAEnB,MAAM,iBAAiB,CAAC;AAOzB,MAAM,WAAW,UAAU,CAAC,CAAC,SAAS,WAAW,CAC/C,SAAQ,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,EACxC,iBAAiB;CAAG;AAExB,wBAAgB,KAAK,CAAC,CAAC,SAAS,WAAW,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,2CA4IhE;AAED,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,WAAW,EAC9C,aAAa,aAAa,CAAC,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,KAC1D,OAAO,KAAK,CAAC,CAAC,CAAU,CAAC;AAE5B,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"Field.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/react-hook-form/components/Field/Field.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,WAAW,EAEhB,KAAK,aAAa,EAEnB,MAAM,iBAAiB,CAAC;AAOzB,MAAM,WAAW,UAAU,CAAC,CAAC,SAAS,WAAW,CAC/C,SAAQ,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,EACxC,iBAAiB;CAAG;AAExB,wBAAgB,KAAK,CAAC,CAAC,SAAS,WAAW,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,2CA2IhE;AAED,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,WAAW,EAC9C,aAAa,aAAa,CAAC,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,KAC1D,OAAO,KAAK,CAAC,CAAC,CAAU,CAAC;AAE5B,eAAe,KAAK,CAAC"}
@@ -1,10 +1,10 @@
1
- import { ComponentProps, FC, FormEventHandler, PropsWithChildren, RefObject } from 'react';
1
+ import { ComponentProps, FC, FormEventHandler, PropsWithChildren, Ref } from 'react';
2
2
  import { FieldValues, SubmitHandler, UseFormReturn } from 'react-hook-form';
3
3
  export type FormOnSubmitHandler<F extends FieldValues> = SubmitHandler<F>;
4
4
  type FormComponentType = FC<PropsWithChildren<{
5
5
  id: string;
6
6
  onSubmit?: FormEventHandler | FormOnSubmitHandler<never>;
7
- ref?: RefObject<HTMLFormElement | null>;
7
+ ref?: Ref<HTMLFormElement>;
8
8
  }>>;
9
9
  export interface FormProps<F extends FieldValues> extends Omit<ComponentProps<"form">, "onSubmit">, PropsWithChildren {
10
10
  form: UseFormReturn<F>;
@@ -1 +1 @@
1
- {"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/react-hook-form/components/Form/Form.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,EAAE,EAEP,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,SAAS,EAKf,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EACV,WAAW,EACX,aAAa,EACb,aAAa,EACd,MAAM,iBAAiB,CAAC;AAKzB,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,WAAW,IAAI,aAAa,CAAC,CAAC,CAAC,CAAC;AAE1E,KAAK,iBAAiB,GAAG,EAAE,CACzB,iBAAiB,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,gBAAgB,GAAG,mBAAmB,CAAC,KAAK,CAAC,CAAC;IACzD,GAAG,CAAC,EAAE,SAAS,CAAC,eAAe,GAAG,IAAI,CAAC,CAAC;CACzC,CAAC,CACH,CAAC;AAEF,MAAM,WAAW,SAAS,CAAC,CAAC,SAAS,WAAW,CAC9C,SAAQ,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,UAAU,CAAC,EAC9C,iBAAiB;IACnB,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;IACvB,QAAQ,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAC;IACjC,aAAa,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,iBAAiB,EAAE,KAAK,CAAC,CAAC,CAAC;IACnD,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAID,wBAAgB,IAAI,CAAC,CAAC,SAAS,WAAW,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,2CAuE9D;AAED,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/react-hook-form/components/Form/Form.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,EAAE,EAEP,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,GAAG,EAKT,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EACV,WAAW,EACX,aAAa,EACb,aAAa,EACd,MAAM,iBAAiB,CAAC;AAIzB,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,WAAW,IAAI,aAAa,CAAC,CAAC,CAAC,CAAC;AAE1E,KAAK,iBAAiB,GAAG,EAAE,CACzB,iBAAiB,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,gBAAgB,GAAG,mBAAmB,CAAC,KAAK,CAAC,CAAC;IACzD,GAAG,CAAC,EAAE,GAAG,CAAC,eAAe,CAAC,CAAC;CAC5B,CAAC,CACH,CAAC;AAEF,MAAM,WAAW,SAAS,CAAC,CAAC,SAAS,WAAW,CAC9C,SAAQ,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,UAAU,CAAC,EAC9C,iBAAiB;IACnB,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;IACvB,QAAQ,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAC;IACjC,aAAa,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,iBAAiB,EAAE,KAAK,CAAC,CAAC,CAAC;IACnD,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAID,wBAAgB,IAAI,CAAC,CAAC,SAAS,WAAW,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,2CAsE9D;AAED,eAAe,IAAI,CAAC"}
@@ -3,7 +3,7 @@ import { FC } from 'react';
3
3
  export type ResetButtonProps = Omit<ButtonProps, "isFailed" | "isSucceeded" | "isPending" | "isReadOnly" | "type"> & {
4
4
  buttonComponent?: FC<Omit<ButtonProps, "ref">>;
5
5
  };
6
- export declare const ResetButton: import('react').FunctionComponent<Omit<ButtonProps, "isReadOnly" | "type" | "isFailed" | "isSucceeded" | "isPending"> & {
6
+ export declare const ResetButton: import('react').FunctionComponent<Omit<ButtonProps, "isFailed" | "isSucceeded" | "isPending" | "isReadOnly" | "type"> & {
7
7
  buttonComponent?: FC<Omit<ButtonProps, "ref">>;
8
8
  } & import('react').RefAttributes<HTMLButtonElement>>;
9
9
  export default ResetButton;
@@ -1 +1 @@
1
- {"version":3,"file":"ResetButton.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/react-hook-form/components/ResetButton/ResetButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAG/D,OAAO,EAAE,KAAK,EAAE,EAAW,MAAM,OAAO,CAAC;AAEzC,MAAM,MAAM,gBAAgB,GAAG,IAAI,CACjC,WAAW,EACX,UAAU,GAAG,aAAa,GAAG,WAAW,GAAG,YAAY,GAAG,MAAM,CACjE,GAAG;IACF,eAAe,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC,CAAC;CAChD,CAAC;AAEF,eAAO,MAAM,WAAW;sBAHJ,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;qDA8B9C,CAAC;AAEH,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"ResetButton.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/react-hook-form/components/ResetButton/ResetButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAG/D,OAAO,EAAE,KAAK,EAAE,EAAW,MAAM,OAAO,CAAC;AAEzC,MAAM,MAAM,gBAAgB,GAAG,IAAI,CACjC,WAAW,EACX,UAAU,GAAG,aAAa,GAAG,WAAW,GAAG,YAAY,GAAG,MAAM,CACjE,GAAG;IACF,eAAe,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC,CAAC;CAChD,CAAC;AAEF,eAAO,MAAM,WAAW;sBAHJ,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;qDA6B9C,CAAC;AAEH,eAAe,WAAW,CAAC"}
@@ -3,7 +3,7 @@ import { FC } from 'react';
3
3
  export type SubmitButtonProps = Omit<ButtonProps, "isFailed" | "isSucceeded" | "isPending" | "isReadOnly" | "type"> & {
4
4
  buttonComponent?: FC<Omit<ButtonProps, "ref">>;
5
5
  };
6
- export declare const SubmitButton: import('react').FunctionComponent<Omit<ButtonProps, "isReadOnly" | "type" | "isFailed" | "isSucceeded" | "isPending"> & {
6
+ export declare const SubmitButton: import('react').FunctionComponent<Omit<ButtonProps, "isFailed" | "isSucceeded" | "isPending" | "isReadOnly" | "type"> & {
7
7
  buttonComponent?: FC<Omit<ButtonProps, "ref">>;
8
8
  } & import('react').RefAttributes<HTMLButtonElement>>;
9
9
  export default SubmitButton;
@@ -1 +1 @@
1
- {"version":3,"file":"OverlayController.d.ts","sourceRoot":"","sources":["../../../../../src/lib/controller/overlay/OverlayController.ts"],"names":[],"mappings":"AAIA,KAAK,gBAAgB,GAAG,MAAM,IAAI,CAAC;AACnC,KAAK,UAAU,GAAG,MAAM,IAAI,CAAC;AAE7B,MAAM,WAAW,wBAAwB;IACvC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,OAAO,CAAC,EAAE,gBAAgB,CAAC;CAC5B;AAED,qBAAa,iBAAiB;IACrB,MAAM,UAAS;IACtB,OAAO,CAAC,cAAc,CAA+B;IACrD,OAAO,CAAC,eAAe,CAA+B;gBAEnC,OAAO,CAAC,EAAE,wBAAwB;WAkBvC,MAAM,CAAC,OAAO,CAAC,EAAE,wBAAwB,GAAG,iBAAiB;IAIpE,SAAS,CAAC,OAAO,EAAE,gBAAgB,GAAG,UAAU;IAOhD,UAAU,CAAC,OAAO,EAAE,gBAAgB,GAAG,UAAU;IAOxD,OAAO,CAAC,cAAc;IAItB,OAAO,CAAC,aAAa;IAId,IAAI,IAAI,IAAI;IAKZ,KAAK,IAAI,IAAI;IAKb,MAAM,IAAI,IAAI;IAUd,OAAO,CAAC,EAAE,EAAE,OAAO,GAAG,IAAI;IAU1B,SAAS,IAAI,OAAO;CAG5B"}
1
+ {"version":3,"file":"OverlayController.d.ts","sourceRoot":"","sources":["../../../../../src/lib/controller/overlay/OverlayController.ts"],"names":[],"mappings":"AAIA,KAAK,gBAAgB,GAAG,MAAM,IAAI,CAAC;AACnC,KAAK,UAAU,GAAG,MAAM,IAAI,CAAC;AAE7B,MAAM,WAAW,wBAAwB;IACvC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,OAAO,CAAC,EAAE,gBAAgB,CAAC;CAC5B;AAED,qBAAa,iBAAiB;IACrB,MAAM,UAAS;IACtB,OAAO,CAAC,cAAc,CAA+B;IACrD,OAAO,CAAC,eAAe,CAA+B;gBAEnC,OAAO,CAAC,EAAE,wBAAwB;WAkBvC,MAAM,CAAC,OAAO,CAAC,EAAE,wBAAwB,GAAG,iBAAiB;IAIpE,SAAS,CAAC,OAAO,EAAE,gBAAgB,GAAG,UAAU;IAOhD,UAAU,CAAC,OAAO,EAAE,gBAAgB,GAAG,UAAU;IAOxD,OAAO,CAAC,cAAc;IAItB,OAAO,CAAC,aAAa;IAId,IAAI,IAAI,IAAI;IAQZ,KAAK,IAAI,IAAI;IAQb,MAAM,IAAI,IAAI;IAUd,OAAO,CAAC,EAAE,EAAE,OAAO,GAAG,IAAI;IAU1B,SAAS,IAAI,OAAO;CAG5B"}
@@ -0,0 +1,2 @@
1
+ export declare const isFocused: (element: HTMLElement | null) => boolean;
2
+ //# sourceMappingURL=isFocused.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isFocused.d.ts","sourceRoot":"","sources":["../../../../src/lib/form/isFocused.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,GAAI,SAAS,WAAW,GAAG,IAAI,YAEpD,CAAC"}
@@ -0,0 +1,11 @@
1
+ export interface EventHandlerContext {
2
+ remoteEvent?: {
3
+ type: string;
4
+ };
5
+ [key: string]: unknown;
6
+ }
7
+ export declare const eventHandlerContext: import('context').CtxCascadeApi<EventHandlerContext>;
8
+ export declare const getRemoteEvent: () => {
9
+ type: string;
10
+ } | undefined;
11
+ //# sourceMappingURL=eventHandlerContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eventHandlerContext.d.ts","sourceRoot":"","sources":["../../../../src/lib/remote/eventHandlerContext.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,mBAAmB;IAClC,WAAW,CAAC,EAAE;QACZ,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,mBAAmB,sDAAuC,CAAC;AAExE,eAAO,MAAM,cAAc;UAPjB,MAAM;aAO0D,CAAC"}
@@ -0,0 +1,6 @@
1
+ export type FieldProps<T, P> = {
2
+ value?: T;
3
+ defaultValue?: T;
4
+ onChange?: (value: T) => void;
5
+ } & P;
6
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/remote/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,CAAC,CAAC,EAAE,CAAC,IAAI;IAC7B,KAAK,CAAC,EAAE,CAAC,CAAC;IACV,YAAY,CAAC,EAAE,CAAC,CAAC;IACjB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;CAC/B,GAAG,CAAC,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { FieldProps } from './types';
2
+ /**
3
+ * Returns props with controlled value handling for remote components. It works
4
+ * by omitting values resulting from a remotely executed event handler. These
5
+ * values are marked by the `controlledRemoteValueMarker`.
6
+ *
7
+ * This hook is noly necessary for text inputs. If not use the controlled input
8
+ * value may be corrupted by interleaved host inputs and remote events.
9
+ */
10
+ export declare const useControlledHostValueProps: <T, P>(props: FieldProps<T, P>) => {
11
+ value?: T | undefined;
12
+ defaultValue?: T | undefined;
13
+ onChange?: ((value: T) => void) | undefined;
14
+ } & P & {
15
+ value: T | undefined;
16
+ onChange: (v: any) => void;
17
+ };
18
+ //# sourceMappingURL=useControlledHostValueProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useControlledHostValueProps.d.ts","sourceRoot":"","sources":["../../../../src/lib/remote/useControlledHostValueProps.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD;;;;;;;GAOG;AACH,eAAO,MAAM,2BAA2B,GAAI,CAAC,EAAE,CAAC,EAAE,OAAO,UAAU,CAAC,CAAC,EAAE,CAAC,CAAC;;;;;;kBAmBlD,GAAG;CAUzB,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { FieldProps } from './types';
2
+ export declare const controlledRemoteValueMarker = "___flowControlledRemoteValue___";
3
+ export declare const useControlledRemoteValueProps: <T, P>(props: FieldProps<T, P>) => {
4
+ value?: T | undefined;
5
+ defaultValue?: T | undefined;
6
+ onChange?: ((value: T) => void) | undefined;
7
+ } & P & {
8
+ onChange: (value: T) => void;
9
+ value: string | T | undefined;
10
+ };
11
+ //# sourceMappingURL=useControlledRemoteValueProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useControlledRemoteValueProps.d.ts","sourceRoot":"","sources":["../../../../src/lib/remote/useControlledRemoteValueProps.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAIrD,eAAO,MAAM,2BAA2B,oCAAoC,CAAC;AAE7E,eAAO,MAAM,6BAA6B,GAAI,CAAC,EAAE,CAAC,EAChD,OAAO,UAAU,CAAC,CAAC,EAAE,CAAC,CAAC;;;;;sBAIE,CAAC;;CAY3B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mittwald/flow-react-components",
3
- "version": "0.2.0-alpha.567",
3
+ "version": "0.2.0-alpha.568",
4
4
  "type": "module",
5
5
  "description": "A React implementation of Flow, mittwald’s design system",
6
6
  "homepage": "https://mittwald.github.io/flow",
@@ -58,7 +58,7 @@
58
58
  "dependencies": {
59
59
  "@internationalized/string-compiler": "^3.2.6",
60
60
  "@mittwald/password-tools-js": "3.0.0-alpha.18",
61
- "@mittwald/react-tunnel": "0.2.0-alpha.567",
61
+ "@mittwald/react-tunnel": "0.2.0-alpha.568",
62
62
  "@mittwald/react-use-promise": "^4.2.2",
63
63
  "@react-aria/form": "^3.1.2",
64
64
  "@react-aria/live-announcer": "^3.4.4",
@@ -74,6 +74,7 @@
74
74
  "@types/react-dom": "^19.2.2",
75
75
  "@types/react-syntax-highlighter": "^15.5.13",
76
76
  "clsx": "^2.1.1",
77
+ "context": "^3.0.33",
77
78
  "copy-to-clipboard": "^3.3.3",
78
79
  "dot-prop": "^10.1.0",
79
80
  "framer-motion": "^12.23.24",
@@ -102,7 +103,7 @@
102
103
  "@faker-js/faker": "^10.1.0",
103
104
  "@internationalized/date": "^3.10.0",
104
105
  "@mittwald/flow-core": "",
105
- "@mittwald/flow-design-tokens": "0.2.0-alpha.567",
106
+ "@mittwald/flow-design-tokens": "0.2.0-alpha.568",
106
107
  "@mittwald/react-use-promise": "^4.2.2",
107
108
  "@mittwald/remote-dom-react": "1.2.2-mittwald.10",
108
109
  "@mittwald/typescript-config": "",
@@ -175,5 +176,5 @@
175
176
  "optional": true
176
177
  }
177
178
  },
178
- "gitHead": "fbba37c897566ad19b962ea79d6de74b921aa21a"
179
+ "gitHead": "704f128615aeefb0f5be23ae3f9e748e009b34dd"
179
180
  }
@@ -1,27 +0,0 @@
1
- "use client"
2
- /* */
3
- import { useState } from 'react';
4
-
5
- const useManagedValue = (props, onChange = props.onChange, managedValuePropName = {
6
- value: "value",
7
- defaultValue: "defaultValue"
8
- }) => {
9
- const valueFromProps = props[managedValuePropName.value];
10
- const defaultValueFromProps = props[managedValuePropName.defaultValue];
11
- const isControlled = typeof valueFromProps !== "undefined";
12
- const hasDefaultValue = typeof defaultValueFromProps !== "undefined";
13
- const [internalValue, setInternalValue] = useState(
14
- hasDefaultValue ? defaultValueFromProps : valueFromProps
15
- );
16
- const value = isControlled ? valueFromProps : internalValue;
17
- const handleOnChange = (value2) => {
18
- onChange?.(value2);
19
- if (!isControlled) {
20
- setInternalValue(() => value2);
21
- }
22
- };
23
- return { value, handleOnChange };
24
- };
25
-
26
- export { useManagedValue };
27
- //# sourceMappingURL=useManagedValue.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useManagedValue.mjs","sources":["../../../../../../src/lib/hooks/useManagedValue.ts"],"sourcesContent":["import { useState } from \"react\";\n\ninterface ManagedValuePropNames<K extends string> {\n value: K;\n defaultValue: K;\n}\n\ntype PossibleValueProps<P> = Extract<\n keyof Omit<P, \"onChange\">,\n string | boolean\n>;\n\nexport const useManagedValue = <\n P extends object,\n V = unknown,\n PDV extends PossibleValueProps<P> = PossibleValueProps<P>,\n>(\n props: P & { onChange?: (value: V) => void },\n onChange = props.onChange,\n managedValuePropName: ManagedValuePropNames<PDV> = {\n value: \"value\" as PDV,\n defaultValue: \"defaultValue\" as PDV,\n },\n) => {\n const valueFromProps = props[managedValuePropName.value] as V;\n const defaultValueFromProps = props[managedValuePropName.defaultValue] as V;\n\n const isControlled = typeof valueFromProps !== \"undefined\";\n const hasDefaultValue = typeof defaultValueFromProps !== \"undefined\";\n\n const [internalValue, setInternalValue] = useState(\n hasDefaultValue ? defaultValueFromProps : valueFromProps,\n );\n const value = isControlled ? valueFromProps : internalValue;\n\n const handleOnChange = (value: V) => {\n onChange?.(value);\n\n if (!isControlled) {\n setInternalValue(() => value);\n }\n };\n\n return { value, handleOnChange } as const;\n};\n"],"names":["value"],"mappings":";;AAYO,MAAM,kBAAkB,CAK7B,KAAA,EACA,QAAA,GAAW,KAAA,CAAM,UACjB,oBAAA,GAAmD;AAAA,EACjD,KAAA,EAAO,OAAA;AAAA,EACP,YAAA,EAAc;AAChB,CAAA,KACG;AACH,EAAA,MAAM,cAAA,GAAiB,KAAA,CAAM,oBAAA,CAAqB,KAAK,CAAA;AACvD,EAAA,MAAM,qBAAA,GAAwB,KAAA,CAAM,oBAAA,CAAqB,YAAY,CAAA;AAErE,EAAA,MAAM,YAAA,GAAe,OAAO,cAAA,KAAmB,WAAA;AAC/C,EAAA,MAAM,eAAA,GAAkB,OAAO,qBAAA,KAA0B,WAAA;AAEzD,EAAA,MAAM,CAAC,aAAA,EAAe,gBAAgB,CAAA,GAAI,QAAA;AAAA,IACxC,kBAAkB,qBAAA,GAAwB;AAAA,GAC5C;AACA,EAAA,MAAM,KAAA,GAAQ,eAAe,cAAA,GAAiB,aAAA;AAE9C,EAAA,MAAM,cAAA,GAAiB,CAACA,MAAAA,KAAa;AACnC,IAAA,QAAA,GAAWA,MAAK,CAAA;AAEhB,IAAA,IAAI,CAAC,YAAA,EAAc;AACjB,MAAA,gBAAA,CAAiB,MAAMA,MAAK,CAAA;AAAA,IAC9B;AAAA,EACF,CAAA;AAEA,EAAA,OAAO,EAAE,OAAO,cAAA,EAAe;AACjC;;;;"}
@@ -1,65 +0,0 @@
1
- "use client"
2
- /* */
3
- import { jsx } from 'react/jsx-runtime';
4
- import * as Aria from 'react-aria-components';
5
- import { Children, isValidElement, useRef, useDeferredValue, useEffect, useLayoutEffect } from 'react';
6
- import { emitElementValueChange } from './emitElementValueChange.mjs';
7
-
8
- const ReactAriaControlledValueFix = (props) => {
9
- const { inputContext: context, children } = props;
10
- const child = Children.only(children);
11
- if (!isValidElement(child)) {
12
- throw new Error("Expected valid element");
13
- }
14
- const { ref, inputRef, ...inputProps } = child.props;
15
- const [contextProps, contextRef] = Aria.useContextProps(
16
- inputProps,
17
- inputRef ?? ref,
18
- context
19
- );
20
- const elementRef = contextRef.current;
21
- const isInFocus = useRef(false);
22
- const isValidElementType = elementRef && (elementRef instanceof HTMLInputElement || elementRef instanceof HTMLTextAreaElement);
23
- const deferredValueFromContext = useDeferredValue(
24
- String(contextProps.value ?? "")
25
- );
26
- useEffect(() => {
27
- if (!isValidElementType || !elementRef) {
28
- return;
29
- }
30
- emitElementValueChange(elementRef, deferredValueFromContext);
31
- const onFocus = (event) => {
32
- isInFocus.current = !!event?.isTrusted;
33
- };
34
- const onBlur = () => {
35
- isInFocus.current = false;
36
- };
37
- elementRef.addEventListener("focus", onFocus);
38
- elementRef.addEventListener("blur", onBlur);
39
- return () => {
40
- elementRef.removeEventListener("focus", onFocus);
41
- elementRef.removeEventListener("blur", onBlur);
42
- };
43
- }, [elementRef]);
44
- useLayoutEffect(() => {
45
- if (!isValidElementType || isInFocus.current) {
46
- return;
47
- }
48
- emitElementValueChange(elementRef, deferredValueFromContext);
49
- if (elementRef) {
50
- const { selectionStart, selectionEnd } = elementRef;
51
- elementRef.focus();
52
- elementRef.selectionStart = selectionStart;
53
- elementRef.selectionEnd = selectionEnd;
54
- }
55
- }, [deferredValueFromContext]);
56
- const uncontrolledContextProps = {
57
- ...contextProps,
58
- value: void 0,
59
- ref: contextRef
60
- };
61
- return /* @__PURE__ */ jsx(Aria.Provider, { values: [[context, uncontrolledContextProps]], children: child });
62
- };
63
-
64
- export { ReactAriaControlledValueFix };
65
- //# sourceMappingURL=ReactAriaControlledValueFix.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReactAriaControlledValueFix.mjs","sources":["../../../../../../src/lib/react/ReactAriaControlledValueFix.tsx"],"sourcesContent":["import * as Aria from \"react-aria-components\";\nimport {\n Children,\n isValidElement,\n type Context,\n type FC,\n type ForwardedRef,\n type PropsWithChildren,\n useDeferredValue,\n useLayoutEffect,\n useEffect,\n useRef,\n} from \"react\";\nimport { emitElementValueChange } from \"@/lib/react/emitElementValueChange\";\n\nexport interface ReactAriaControlledValueFixProps extends PropsWithChildren {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n inputContext: Context<any>;\n props: unknown;\n}\n\ninterface ChildProps {\n [key: string]: unknown;\n ref: ForwardedRef<Element>;\n inputRef: ForwardedRef<Element>;\n}\n\n/**\n * React Aria (accidentally?!) enforces controlled inputs by always setting the\n * value prop on Inputs and TextAreas with its context props API. This component\n * also uses this API to only unset the value prop. Furthermore setting an input\n * value is finally done by directly on the DOM element.\n *\n * https://github.com/adobe/react-spectrum/blob/main/packages/%40react-aria/textfield/src/useTextField.ts#L182\n * https://github.com/adobe/react-spectrum/blob/main/packages/%40react-aria/numberfield/src/useNumberField.ts#L206\n */\nexport const ReactAriaControlledValueFix: FC<\n ReactAriaControlledValueFixProps\n> = (props) => {\n const { inputContext: context, children } = props;\n\n const child = Children.only(children);\n if (!isValidElement<ChildProps>(child)) {\n throw new Error(\"Expected valid element\");\n }\n\n const { ref, inputRef, ...inputProps } = child.props;\n const [contextProps, contextRef] = Aria.useContextProps(\n inputProps,\n inputRef ?? ref,\n context,\n );\n\n const elementRef = contextRef.current;\n const isInFocus = useRef(false);\n\n const isValidElementType =\n elementRef &&\n (elementRef instanceof HTMLInputElement ||\n elementRef instanceof HTMLTextAreaElement);\n\n const deferredValueFromContext = useDeferredValue(\n String(contextProps.value ?? \"\"),\n );\n\n useEffect(() => {\n if (!isValidElementType || !elementRef) {\n return;\n }\n\n // sync the last known value when element reference is available\n emitElementValueChange(elementRef, deferredValueFromContext);\n\n const onFocus = (event: Event) => {\n isInFocus.current = !!event?.isTrusted;\n };\n const onBlur = () => {\n isInFocus.current = false;\n };\n\n elementRef.addEventListener(\"focus\", onFocus);\n elementRef.addEventListener(\"blur\", onBlur);\n\n return () => {\n elementRef.removeEventListener(\"focus\", onFocus);\n elementRef.removeEventListener(\"blur\", onBlur);\n };\n }, [elementRef]);\n\n useLayoutEffect(() => {\n if (!isValidElementType || isInFocus.current) {\n return;\n }\n\n emitElementValueChange(elementRef, deferredValueFromContext);\n if (elementRef) {\n const { selectionStart, selectionEnd } = elementRef;\n elementRef.focus();\n elementRef.selectionStart = selectionStart;\n elementRef.selectionEnd = selectionEnd;\n }\n }, [deferredValueFromContext]);\n\n const uncontrolledContextProps = {\n ...contextProps,\n value: undefined,\n ref: contextRef,\n };\n\n return (\n <Aria.Provider values={[[context, uncontrolledContextProps]]}>\n {child}\n </Aria.Provider>\n );\n};\n"],"names":[],"mappings":";;;;;AAoCO,MAAM,2BAAA,GAET,CAAC,KAAA,KAAU;AACb,EAAA,MAAM,EAAE,YAAA,EAAc,OAAA,EAAS,QAAA,EAAS,GAAI,KAAA;AAE5C,EAAA,MAAM,KAAA,GAAQ,QAAA,CAAS,IAAA,CAAK,QAAQ,CAAA;AACpC,EAAA,IAAI,CAAC,cAAA,CAA2B,KAAK,CAAA,EAAG;AACtC,IAAA,MAAM,IAAI,MAAM,wBAAwB,CAAA;AAAA,EAC1C;AAEA,EAAA,MAAM,EAAE,GAAA,EAAK,QAAA,EAAU,GAAG,UAAA,KAAe,KAAA,CAAM,KAAA;AAC/C,EAAA,MAAM,CAAC,YAAA,EAAc,UAAU,CAAA,GAAI,IAAA,CAAK,eAAA;AAAA,IACtC,UAAA;AAAA,IACA,QAAA,IAAY,GAAA;AAAA,IACZ;AAAA,GACF;AAEA,EAAA,MAAM,aAAa,UAAA,CAAW,OAAA;AAC9B,EAAA,MAAM,SAAA,GAAY,OAAO,KAAK,CAAA;AAE9B,EAAA,MAAM,kBAAA,GACJ,UAAA,KACC,UAAA,YAAsB,gBAAA,IACrB,UAAA,YAAsB,mBAAA,CAAA;AAE1B,EAAA,MAAM,wBAAA,GAA2B,gBAAA;AAAA,IAC/B,MAAA,CAAO,YAAA,CAAa,KAAA,IAAS,EAAE;AAAA,GACjC;AAEA,EAAA,SAAA,CAAU,MAAM;AACd,IAAA,IAAI,CAAC,kBAAA,IAAsB,CAAC,UAAA,EAAY;AACtC,MAAA;AAAA,IACF;AAGA,IAAA,sBAAA,CAAuB,YAAY,wBAAwB,CAAA;AAE3D,IAAA,MAAM,OAAA,GAAU,CAAC,KAAA,KAAiB;AAChC,MAAA,SAAA,CAAU,OAAA,GAAU,CAAC,CAAC,KAAA,EAAO,SAAA;AAAA,IAC/B,CAAA;AACA,IAAA,MAAM,SAAS,MAAM;AACnB,MAAA,SAAA,CAAU,OAAA,GAAU,KAAA;AAAA,IACtB,CAAA;AAEA,IAAA,UAAA,CAAW,gBAAA,CAAiB,SAAS,OAAO,CAAA;AAC5C,IAAA,UAAA,CAAW,gBAAA,CAAiB,QAAQ,MAAM,CAAA;AAE1C,IAAA,OAAO,MAAM;AACX,MAAA,UAAA,CAAW,mBAAA,CAAoB,SAAS,OAAO,CAAA;AAC/C,MAAA,UAAA,CAAW,mBAAA,CAAoB,QAAQ,MAAM,CAAA;AAAA,IAC/C,CAAA;AAAA,EACF,CAAA,EAAG,CAAC,UAAU,CAAC,CAAA;AAEf,EAAA,eAAA,CAAgB,MAAM;AACpB,IAAA,IAAI,CAAC,kBAAA,IAAsB,SAAA,CAAU,OAAA,EAAS;AAC5C,MAAA;AAAA,IACF;AAEA,IAAA,sBAAA,CAAuB,YAAY,wBAAwB,CAAA;AAC3D,IAAA,IAAI,UAAA,EAAY;AACd,MAAA,MAAM,EAAE,cAAA,EAAgB,YAAA,EAAa,GAAI,UAAA;AACzC,MAAA,UAAA,CAAW,KAAA,EAAM;AACjB,MAAA,UAAA,CAAW,cAAA,GAAiB,cAAA;AAC5B,MAAA,UAAA,CAAW,YAAA,GAAe,YAAA;AAAA,IAC5B;AAAA,EACF,CAAA,EAAG,CAAC,wBAAwB,CAAC,CAAA;AAE7B,EAAA,MAAM,wBAAA,GAA2B;AAAA,IAC/B,GAAG,YAAA;AAAA,IACH,KAAA,EAAO,MAAA;AAAA,IACP,GAAA,EAAK;AAAA,GACP;AAEA,EAAA,uBACE,GAAA,CAAC,IAAA,CAAK,QAAA,EAAL,EAAc,MAAA,EAAQ,CAAC,CAAC,OAAA,EAAS,wBAAwB,CAAC,CAAA,EACxD,QAAA,EAAA,KAAA,EACH,CAAA;AAEJ;;;;"}
@@ -1,22 +0,0 @@
1
- "use client"
2
- /* */
3
- const emitElementValueChange = (element, value, event = new Event("change", { bubbles: true })) => {
4
- try {
5
- const nativeInputValueSetter = Object.getOwnPropertyDescriptor(
6
- Object.getPrototypeOf(element),
7
- "value"
8
- )?.set;
9
- nativeInputValueSetter?.call(element, value);
10
- element.dispatchEvent(event);
11
- } catch (ignoredError) {
12
- if ("value" in element) {
13
- element.value = value;
14
- element.dispatchEvent(event);
15
- } else {
16
- throw Error("could not emit value update for element");
17
- }
18
- }
19
- };
20
-
21
- export { emitElementValueChange };
22
- //# sourceMappingURL=emitElementValueChange.mjs.map