@mittwald/flow-react-components 0.2.0-alpha.481 → 0.2.0-alpha.483
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.
- package/CHANGELOG.md +8 -0
- package/dist/assets/doc-properties.json +2953 -3043
- package/dist/css/all.css +1 -1
- package/dist/js/components/src/components/AccentBox/AccentBox.mjs +11 -6
- package/dist/js/components/src/components/AccentBox/AccentBox.mjs.map +1 -1
- package/dist/js/components/src/components/Accordion/Accordion.mjs +17 -25
- package/dist/js/components/src/components/Accordion/Accordion.mjs.map +1 -1
- package/dist/js/components/src/components/Action/Action.mjs +46 -38
- package/dist/js/components/src/components/Action/Action.mjs.map +1 -1
- package/dist/js/components/src/components/ActionGroup/ActionGroup.mjs +3 -5
- package/dist/js/components/src/components/ActionGroup/ActionGroup.mjs.map +1 -1
- package/dist/js/components/src/components/Alert/Alert.mjs +3 -4
- package/dist/js/components/src/components/Alert/Alert.mjs.map +1 -1
- package/dist/js/components/src/components/AlertBadge/AlertBadge.mjs +3 -5
- package/dist/js/components/src/components/AlertBadge/AlertBadge.mjs.map +1 -1
- package/dist/js/components/src/components/AlertIcon/AlertIcon.mjs +1 -2
- package/dist/js/components/src/components/AlertIcon/AlertIcon.mjs.map +1 -1
- package/dist/js/components/src/components/Align/Align.mjs +3 -3
- package/dist/js/components/src/components/Align/Align.mjs.map +1 -1
- package/dist/js/components/src/components/Autocomplete/Autocomplete.mjs +2 -3
- package/dist/js/components/src/components/Autocomplete/Autocomplete.mjs.map +1 -1
- package/dist/js/components/src/components/Avatar/Avatar.mjs +3 -4
- package/dist/js/components/src/components/Avatar/Avatar.mjs.map +1 -1
- package/dist/js/components/src/components/AvatarStack/AvatarStack.mjs +2 -3
- package/dist/js/components/src/components/AvatarStack/AvatarStack.mjs.map +1 -1
- package/dist/js/components/src/components/Badge/Badge.mjs +3 -3
- package/dist/js/components/src/components/Badge/Badge.mjs.map +1 -1
- package/dist/js/components/src/components/BigNumber/BigNumber.mjs +2 -4
- package/dist/js/components/src/components/BigNumber/BigNumber.mjs.map +1 -1
- package/dist/js/components/src/components/Breadcrumb/Breadcrumb.mjs +1 -3
- package/dist/js/components/src/components/Breadcrumb/Breadcrumb.mjs.map +1 -1
- package/dist/js/components/src/components/BrowserOnly/BrowserOnly.mjs +3 -2
- package/dist/js/components/src/components/BrowserOnly/BrowserOnly.mjs.map +1 -1
- package/dist/js/components/src/components/Button/Button.mjs +6 -6
- package/dist/js/components/src/components/Button/Button.mjs.map +1 -1
- package/dist/js/components/src/components/Chat/Chat.mjs +3 -5
- package/dist/js/components/src/components/Chat/Chat.mjs.map +1 -1
- package/dist/js/components/src/components/Checkbox/Checkbox.mjs +2 -3
- package/dist/js/components/src/components/Checkbox/Checkbox.mjs.map +1 -1
- package/dist/js/components/src/components/CheckboxButton/CheckboxButton.mjs +2 -5
- package/dist/js/components/src/components/CheckboxButton/CheckboxButton.mjs.map +1 -1
- package/dist/js/components/src/components/CheckboxGroup/CheckboxGroup.mjs +1 -3
- package/dist/js/components/src/components/CheckboxGroup/CheckboxGroup.mjs.map +1 -1
- package/dist/js/components/src/components/ColumnLayout/ColumnLayout.mjs +2 -12
- package/dist/js/components/src/components/ColumnLayout/ColumnLayout.mjs.map +1 -1
- package/dist/js/components/src/components/ComboBox/ComboBox.mjs +1 -1
- package/dist/js/components/src/components/ComboBox/ComboBox.mjs.map +1 -1
- package/dist/js/components/src/components/Content/Content.mjs +2 -11
- package/dist/js/components/src/components/Content/Content.mjs.map +1 -1
- package/dist/js/components/src/components/ContextMenu/ContextMenu.mjs +13 -21
- package/dist/js/components/src/components/ContextMenu/ContextMenu.mjs.map +1 -1
- package/dist/js/components/src/components/ContextMenu/components/ContextMenuSection/ContextMenuSection.mjs +2 -4
- package/dist/js/components/src/components/ContextMenu/components/ContextMenuSection/ContextMenuSection.mjs.map +1 -1
- package/dist/js/components/src/components/ContextMenu/components/ContextMenuTrigger/ContextMenuTrigger.mjs +2 -1
- package/dist/js/components/src/components/ContextMenu/components/ContextMenuTrigger/ContextMenuTrigger.mjs.map +1 -1
- package/dist/js/components/src/components/ContextualHelp/ContextualHelp.mjs +2 -3
- package/dist/js/components/src/components/ContextualHelp/ContextualHelp.mjs.map +1 -1
- package/dist/js/components/src/components/ContextualHelp/components/ContextualHelpTrigger/ContextualHelpTrigger.mjs +6 -5
- package/dist/js/components/src/components/ContextualHelp/components/ContextualHelpTrigger/ContextualHelpTrigger.mjs.map +1 -1
- package/dist/js/components/src/components/CopyButton/CopyButton.mjs +3 -4
- package/dist/js/components/src/components/CopyButton/CopyButton.mjs.map +1 -1
- package/dist/js/components/src/components/CountryOptions/CountryOptions.mjs +13 -19
- package/dist/js/components/src/components/CountryOptions/CountryOptions.mjs.map +1 -1
- package/dist/js/components/src/components/DatePicker/DatePicker.mjs +3 -3
- package/dist/js/components/src/components/DatePicker/DatePicker.mjs.map +1 -1
- package/dist/js/components/src/components/DateRangePicker/DateRangePicker.mjs +2 -3
- package/dist/js/components/src/components/DateRangePicker/DateRangePicker.mjs.map +1 -1
- package/dist/js/components/src/components/FieldDescription/FieldDescription.mjs +1 -3
- package/dist/js/components/src/components/FieldDescription/FieldDescription.mjs.map +1 -1
- package/dist/js/components/src/components/FieldError/FieldError.mjs +3 -4
- package/dist/js/components/src/components/FieldError/FieldError.mjs.map +1 -1
- package/dist/js/components/src/components/FileCard/FileCard.mjs +2 -4
- package/dist/js/components/src/components/FileCard/FileCard.mjs.map +1 -1
- package/dist/js/components/src/components/FileCardList/FileCardList.mjs +1 -3
- package/dist/js/components/src/components/FileCardList/FileCardList.mjs.map +1 -1
- package/dist/js/components/src/components/FileDropZone/FileDropZone.mjs +2 -3
- package/dist/js/components/src/components/FileDropZone/FileDropZone.mjs.map +1 -1
- package/dist/js/components/src/components/FileField/FileField.mjs +1 -3
- package/dist/js/components/src/components/FileField/FileField.mjs.map +1 -1
- package/dist/js/components/src/components/FileField/components/FileInput.mjs +2 -3
- package/dist/js/components/src/components/FileField/components/FileInput.mjs.map +1 -1
- package/dist/js/components/src/components/HeaderNavigation/HeaderNavigation.mjs +2 -4
- package/dist/js/components/src/components/HeaderNavigation/HeaderNavigation.mjs.map +1 -1
- package/dist/js/components/src/components/Heading/Heading.mjs +3 -5
- package/dist/js/components/src/components/Heading/Heading.mjs.map +1 -1
- package/dist/js/components/src/components/Icon/Icon.mjs +1 -3
- package/dist/js/components/src/components/Icon/Icon.mjs.map +1 -1
- package/dist/js/components/src/components/IllustratedMessage/IllustratedMessage.mjs +1 -3
- package/dist/js/components/src/components/IllustratedMessage/IllustratedMessage.mjs.map +1 -1
- package/dist/js/components/src/components/Image/Image.mjs +2 -3
- package/dist/js/components/src/components/Image/Image.mjs.map +1 -1
- package/dist/js/components/src/components/Initials/Initials.mjs +2 -3
- package/dist/js/components/src/components/Initials/Initials.mjs.map +1 -1
- package/dist/js/components/src/components/InlineCode/InlineCode.mjs +1 -3
- package/dist/js/components/src/components/InlineCode/InlineCode.mjs.map +1 -1
- package/dist/js/components/src/components/Label/Label.mjs +1 -2
- package/dist/js/components/src/components/Label/Label.mjs.map +1 -1
- package/dist/js/components/src/components/LabeledValue/LabeledValue.mjs +2 -4
- package/dist/js/components/src/components/LabeledValue/LabeledValue.mjs.map +1 -1
- package/dist/js/components/src/components/LayoutCard/LayoutCard.mjs +1 -3
- package/dist/js/components/src/components/LayoutCard/LayoutCard.mjs.map +1 -1
- package/dist/js/components/src/components/LightBox/LightBox.mjs +2 -2
- package/dist/js/components/src/components/Link/Link.mjs +3 -4
- package/dist/js/components/src/components/Link/Link.mjs.map +1 -1
- package/dist/js/components/src/components/List/List.mjs +1 -3
- package/dist/js/components/src/components/List/List.mjs.map +1 -1
- package/dist/js/components/src/components/List/components/Header/components/ActiveFilters/ActiveFilters.mjs +8 -1
- package/dist/js/components/src/components/List/components/Header/components/ActiveFilters/ActiveFilters.mjs.map +1 -1
- package/dist/js/components/src/components/List/components/Header/components/Filters/CombinedFilterMenu.mjs +6 -7
- package/dist/js/components/src/components/List/components/Header/components/Filters/CombinedFilterMenu.mjs.map +1 -1
- package/dist/js/components/src/components/List/components/Header/components/Filters/FilterMenu.mjs +4 -7
- package/dist/js/components/src/components/List/components/Header/components/Filters/FilterMenu.mjs.map +1 -1
- package/dist/js/components/src/components/List/components/Header/components/Filters/FilterMenuList.mjs +2 -1
- package/dist/js/components/src/components/List/components/Header/components/Filters/FilterMenuList.mjs.map +1 -1
- package/dist/js/components/src/components/List/components/Header/components/SearchField/SearchField.mjs +2 -1
- package/dist/js/components/src/components/List/components/Header/components/SearchField/SearchField.mjs.map +1 -1
- package/dist/js/components/src/components/List/components/Header/components/Settings/SettingsMenu.mjs +4 -7
- package/dist/js/components/src/components/List/components/Header/components/Settings/SettingsMenu.mjs.map +1 -1
- package/dist/js/components/src/components/List/components/Header/components/Settings/SortingMenu.mjs +5 -8
- package/dist/js/components/src/components/List/components/Header/components/Settings/SortingMenu.mjs.map +1 -1
- package/dist/js/components/src/components/List/components/Header/components/Settings/SortingMenuItem.mjs +2 -1
- package/dist/js/components/src/components/List/components/Header/components/Settings/SortingMenuItem.mjs.map +1 -1
- package/dist/js/components/src/components/List/components/Header/components/Settings/ViewModeMenu.mjs +6 -7
- package/dist/js/components/src/components/List/components/Header/components/Settings/ViewModeMenu.mjs.map +1 -1
- package/dist/js/components/src/components/List/components/Header/components/Settings/ViewModeMenuItem.mjs +2 -1
- package/dist/js/components/src/components/List/components/Header/components/Settings/ViewModeMenuItem.mjs.map +1 -1
- package/dist/js/components/src/components/List/components/Header/lib.mjs +2 -1
- package/dist/js/components/src/components/List/components/Header/lib.mjs.map +1 -1
- package/dist/js/components/src/components/List/components/Items/Items.mjs +2 -1
- package/dist/js/components/src/components/List/components/Items/Items.mjs.map +1 -1
- package/dist/js/components/src/components/List/components/Items/components/Item/components/AccordionButton.mjs +3 -0
- package/dist/js/components/src/components/List/components/Items/components/Item/components/AccordionButton.mjs.map +1 -1
- package/dist/js/components/src/components/List/components/Items/components/Item/hooks/useGridItemProps.mjs +3 -3
- package/dist/js/components/src/components/List/components/Items/components/Item/hooks/useGridItemProps.mjs.map +1 -1
- package/dist/js/components/src/components/List/components/ListItemView/ListItemView.mjs +7 -7
- package/dist/js/components/src/components/List/components/ListItemView/ListItemView.mjs.map +1 -1
- package/dist/js/components/src/components/List/components/ListItemView/components/ListItemViewContent/ListItemViewContent.mjs +13 -19
- package/dist/js/components/src/components/List/components/ListItemView/components/ListItemViewContent/ListItemViewContent.mjs.map +1 -1
- package/dist/js/components/src/components/List/components/Table/Table.mjs +2 -1
- package/dist/js/components/src/components/List/components/Table/Table.mjs.map +1 -1
- package/dist/js/components/src/components/List/hooks/useAriaAnnounceSearchState.mjs +5 -4
- package/dist/js/components/src/components/List/hooks/useAriaAnnounceSearchState.mjs.map +1 -1
- package/dist/js/components/src/components/MenuItem/components/MenuItemContent/MenuItemContent.mjs +2 -2
- package/dist/js/components/src/components/Message/Message.mjs +3 -2
- package/dist/js/components/src/components/Message/Message.mjs.map +1 -1
- package/dist/js/components/src/components/MessageThread/MessageThread.mjs +2 -4
- package/dist/js/components/src/components/MessageThread/MessageThread.mjs.map +1 -1
- package/dist/js/components/src/components/Modal/Modal.mjs +76 -79
- package/dist/js/components/src/components/Modal/Modal.mjs.map +1 -1
- package/dist/js/components/src/components/Navigation/Navigation.mjs +28 -19
- package/dist/js/components/src/components/Navigation/Navigation.mjs.map +1 -1
- package/dist/js/components/src/components/Navigation/components/NavigationGroup/NavigationGroup.mjs +9 -7
- package/dist/js/components/src/components/Navigation/components/NavigationGroup/NavigationGroup.mjs.map +1 -1
- package/dist/js/components/src/components/Notification/Notification.mjs +2 -2
- package/dist/js/components/src/components/Notification/Notification.mjs.map +1 -1
- package/dist/js/components/src/components/NumberField/NumberField.mjs +4 -5
- package/dist/js/components/src/components/NumberField/NumberField.mjs.map +1 -1
- package/dist/js/components/src/components/Options/Options.mjs +2 -1
- package/dist/js/components/src/components/Options/Options.mjs.map +1 -1
- package/dist/js/components/src/components/Overlay/Overlay.mjs +4 -3
- package/dist/js/components/src/components/Overlay/Overlay.mjs.map +1 -1
- package/dist/js/components/src/components/OverlayTrigger/OverlayTrigger.mjs +3 -4
- package/dist/js/components/src/components/OverlayTrigger/OverlayTrigger.mjs.map +1 -1
- package/dist/js/components/src/components/OverlayTrigger/components/MenuTrigger/MenuTrigger.mjs +4 -2
- package/dist/js/components/src/components/OverlayTrigger/components/MenuTrigger/MenuTrigger.mjs.map +1 -1
- package/dist/js/components/src/components/PasswordCreationField/PasswordCreationField.mjs +86 -82
- package/dist/js/components/src/components/PasswordCreationField/PasswordCreationField.mjs.map +1 -1
- package/dist/js/components/src/components/PasswordCreationField/components/PasswordGenerateButton/PasswordGenerateButton.mjs +1 -2
- package/dist/js/components/src/components/PasswordCreationField/components/PasswordGenerateButton/PasswordGenerateButton.mjs.map +1 -1
- package/dist/js/components/src/components/Popover/Popover.mjs +3 -2
- package/dist/js/components/src/components/Popover/Popover.mjs.map +1 -1
- package/dist/js/components/src/components/Popover/components/PopoverTrigger/PopoverTrigger.mjs +16 -12
- package/dist/js/components/src/components/Popover/components/PopoverTrigger/PopoverTrigger.mjs.map +1 -1
- package/dist/js/components/src/components/ProgressBar/ProgressBar.mjs +1 -3
- package/dist/js/components/src/components/ProgressBar/ProgressBar.mjs.map +1 -1
- package/dist/js/components/src/components/RadioGroup/RadioGroup.mjs +18 -28
- package/dist/js/components/src/components/RadioGroup/RadioGroup.mjs.map +1 -1
- package/dist/js/components/src/components/RadioGroup/components/Radio/Radio.mjs +3 -4
- package/dist/js/components/src/components/RadioGroup/components/Radio/Radio.mjs.map +1 -1
- package/dist/js/components/src/components/RadioGroup/components/RadioButton/RadioButton.mjs +2 -5
- package/dist/js/components/src/components/RadioGroup/components/RadioButton/RadioButton.mjs.map +1 -1
- package/dist/js/components/src/components/SearchField/SearchField.mjs +5 -6
- package/dist/js/components/src/components/SearchField/SearchField.mjs.map +1 -1
- package/dist/js/components/src/components/Section/Section.mjs +4 -5
- package/dist/js/components/src/components/Section/Section.mjs.map +1 -1
- package/dist/js/components/src/components/Section/components/SectionHeader/SectionHeader.mjs +1 -9
- package/dist/js/components/src/components/Section/components/SectionHeader/SectionHeader.mjs.map +1 -1
- package/dist/js/components/src/components/SegmentedControl/SegmentedControl.mjs +7 -17
- package/dist/js/components/src/components/SegmentedControl/SegmentedControl.mjs.map +1 -1
- package/dist/js/components/src/components/SegmentedControl/components/Segment/Segment.mjs +4 -5
- package/dist/js/components/src/components/SegmentedControl/components/Segment/Segment.mjs.map +1 -1
- package/dist/js/components/src/components/Select/Select.mjs +3 -3
- package/dist/js/components/src/components/Select/Select.mjs.map +1 -1
- package/dist/js/components/src/components/Slider/Slider.mjs +3 -3
- package/dist/js/components/src/components/Slider/Slider.mjs.map +1 -1
- package/dist/js/components/src/components/Switch/Switch.mjs +3 -4
- package/dist/js/components/src/components/Switch/Switch.mjs.map +1 -1
- package/dist/js/components/src/components/Table/components/TableColumn/TableColumn.mjs +1 -2
- package/dist/js/components/src/components/Table/components/TableColumn/TableColumn.mjs.map +1 -1
- package/dist/js/components/src/components/Tabs/components/Tab/Tab.mjs +1 -2
- package/dist/js/components/src/components/Tabs/components/Tab/Tab.mjs.map +1 -1
- package/dist/js/components/src/components/Tabs/components/TabList/TabList.mjs +4 -4
- package/dist/js/components/src/components/Tabs/components/TabList/TabList.mjs.map +1 -1
- package/dist/js/components/src/components/Text/Text.mjs +2 -12
- package/dist/js/components/src/components/Text/Text.mjs.map +1 -1
- package/dist/js/components/src/components/TextArea/TextArea.mjs +1 -2
- package/dist/js/components/src/components/TextArea/TextArea.mjs.map +1 -1
- package/dist/js/components/src/components/TextField/TextField.mjs +1 -2
- package/dist/js/components/src/components/TextField/TextField.mjs.map +1 -1
- package/dist/js/components/src/components/TextFieldBase/TextFieldBase.mjs +4 -5
- package/dist/js/components/src/components/TextFieldBase/TextFieldBase.mjs.map +1 -1
- package/dist/js/components/src/components/TimeField/TimeField.mjs +1 -3
- package/dist/js/components/src/components/TimeField/TimeField.mjs.map +1 -1
- package/dist/js/components/src/components/Tooltip/Tooltip.mjs +4 -4
- package/dist/js/components/src/components/Tooltip/Tooltip.mjs.map +1 -1
- package/dist/js/components/src/components/TunnelEntry/TunnelEntry.mjs.map +1 -1
- package/dist/js/components/src/components/propTypes/index.mjs +0 -1
- package/dist/js/components/src/components/propTypes/index.mjs.map +1 -1
- package/dist/js/components/src/integrations/react-hook-form/components/Field/Field.mjs +3 -5
- package/dist/js/components/src/integrations/react-hook-form/components/Field/Field.mjs.map +1 -1
- package/dist/js/components/src/integrations/react-hook-form/components/Form/Form.mjs +32 -36
- package/dist/js/components/src/integrations/react-hook-form/components/Form/Form.mjs.map +1 -1
- package/dist/js/components/src/lib/componentFactory/flowComponent.mjs +28 -1
- package/dist/js/components/src/lib/componentFactory/flowComponent.mjs.map +1 -1
- package/dist/js/components/src/lib/hooks/useProps.mjs +28 -19
- package/dist/js/components/src/lib/hooks/useProps.mjs.map +1 -1
- package/dist/js/components/src/lib/propsContext/components/ClearPropsContext.mjs +21 -0
- package/dist/js/components/src/lib/propsContext/components/ClearPropsContext.mjs.map +1 -0
- package/dist/js/components/src/lib/propsContext/components/ComponentPropsContextProvider.mjs +13 -0
- package/dist/js/components/src/lib/propsContext/components/ComponentPropsContextProvider.mjs.map +1 -0
- package/dist/js/components/src/lib/propsContext/components/PropsContextProvider.mjs +33 -0
- package/dist/js/components/src/lib/propsContext/components/PropsContextProvider.mjs.map +1 -0
- package/dist/js/components/src/lib/propsContext/dynamicProps/dynamic.mjs +3 -1
- package/dist/js/components/src/lib/propsContext/dynamicProps/dynamic.mjs.map +1 -1
- package/dist/js/components/src/lib/propsContext/dynamicProps/lib.mjs +10 -0
- package/dist/js/components/src/lib/propsContext/dynamicProps/lib.mjs.map +1 -0
- package/dist/js/components/src/lib/propsContext/dynamicProps/resolveDynamicProps.mjs +3 -2
- package/dist/js/components/src/lib/propsContext/dynamicProps/resolveDynamicProps.mjs.map +1 -1
- package/dist/js/components/src/lib/propsContext/dynamicProps/types.mjs +6 -0
- package/dist/js/components/src/lib/propsContext/dynamicProps/types.mjs.map +1 -0
- package/dist/js/components/src/lib/propsContext/inherit/PropsContextLevelProvider.mjs +17 -0
- package/dist/js/components/src/lib/propsContext/inherit/PropsContextLevelProvider.mjs.map +1 -0
- package/dist/js/components/src/lib/propsContext/inherit/lib.mjs +30 -0
- package/dist/js/components/src/lib/propsContext/inherit/lib.mjs.map +1 -0
- package/dist/js/components/src/lib/propsContext/inherit/propsContextLevel.mjs +13 -0
- package/dist/js/components/src/lib/propsContext/inherit/propsContextLevel.mjs.map +1 -0
- package/dist/js/components/src/lib/propsContext/inherit/types.mjs +6 -0
- package/dist/js/components/src/lib/propsContext/inherit/types.mjs.map +1 -0
- package/dist/js/components/src/lib/propsContext/mergePropsContext.mjs +41 -13
- package/dist/js/components/src/lib/propsContext/mergePropsContext.mjs.map +1 -1
- package/dist/js/components/src/lib/propsContext/nestedPropsContext/lib.mjs +22 -0
- package/dist/js/components/src/lib/propsContext/nestedPropsContext/lib.mjs.map +1 -0
- package/dist/js/components/src/lib/propsContext/nestedPropsContext/types.mjs +6 -0
- package/dist/js/components/src/lib/propsContext/nestedPropsContext/types.mjs.map +1 -0
- package/dist/js/components/src/lib/propsContext/propsContext.mjs +3 -2
- package/dist/js/components/src/lib/propsContext/propsContext.mjs.map +1 -1
- package/dist/js/components/src/views/ClearPropsContextView.mjs +14 -0
- package/dist/js/components/src/views/ClearPropsContextView.mjs.map +1 -0
- package/dist/js/components/src/views/ComponentPropsContextProviderView.mjs +14 -0
- package/dist/js/components/src/views/ComponentPropsContextProviderView.mjs.map +1 -0
- package/dist/js/components/src/views/ContextMenuView.mjs +18 -0
- package/dist/js/components/src/views/ContextMenuView.mjs.map +1 -0
- package/dist/js/components/src/views/DialogTriggerView.mjs +2 -1
- package/dist/js/components/src/views/DialogTriggerView.mjs.map +1 -1
- package/dist/js/components/src/views/ItemsGridListItemView.mjs +2 -1
- package/dist/js/components/src/views/ItemsGridListItemView.mjs.map +1 -1
- package/dist/js/components/src/views/ItemsGridListView.mjs +1 -0
- package/dist/js/components/src/views/ItemsGridListView.mjs.map +1 -1
- package/dist/js/components/src/views/ListEmptyViewView.mjs +1 -0
- package/dist/js/components/src/views/ListEmptyViewView.mjs.map +1 -1
- package/dist/js/components/src/views/ListItemViewContentView.mjs +2 -1
- package/dist/js/components/src/views/ListItemViewContentView.mjs.map +1 -1
- package/dist/js/components/src/views/MenuTriggerView.mjs +2 -1
- package/dist/js/components/src/views/MenuTriggerView.mjs.map +1 -1
- package/dist/js/components/src/views/OptionView.mjs +14 -0
- package/dist/js/components/src/views/OptionView.mjs.map +1 -0
- package/dist/js/components/src/views/OverlayContentView.mjs +7 -0
- package/dist/js/components/src/views/OverlayContentView.mjs.map +1 -1
- package/dist/js/components/src/views/TableBodyView.mjs +2 -1
- package/dist/js/components/src/views/TableBodyView.mjs.map +1 -1
- package/dist/js/components/src/views/TableCellView.mjs +2 -1
- package/dist/js/components/src/views/TableCellView.mjs.map +1 -1
- package/dist/js/components/src/views/TableHeaderView.mjs +2 -1
- package/dist/js/components/src/views/TableHeaderView.mjs.map +1 -1
- package/dist/js/components/src/views/TableRowView.mjs +2 -1
- package/dist/js/components/src/views/TableRowView.mjs.map +1 -1
- package/dist/js/components/src/views/TableView.mjs +2 -1
- package/dist/js/components/src/views/TableView.mjs.map +1 -1
- package/dist/js/components/src/views/TooltipTriggerView.mjs +7 -0
- package/dist/js/components/src/views/TooltipTriggerView.mjs.map +1 -1
- package/dist/js/default.mjs +11 -11
- package/dist/js/flr-universal.mjs +7 -6
- package/dist/js/flr-universal.mjs.map +1 -1
- package/dist/js/internal.mjs +1 -3
- package/dist/js/internal.mjs.map +1 -1
- package/dist/types/components/AccentBox/AccentBox.d.ts.map +1 -1
- package/dist/types/components/Accordion/Accordion.d.ts.map +1 -1
- package/dist/types/components/Action/Action.d.ts.map +1 -1
- package/dist/types/components/ActionGroup/ActionGroup.d.ts +2 -2
- package/dist/types/components/ActionGroup/ActionGroup.d.ts.map +1 -1
- package/dist/types/components/Alert/Alert.d.ts +1 -4
- package/dist/types/components/Alert/Alert.d.ts.map +1 -1
- package/dist/types/components/AlertBadge/AlertBadge.d.ts +3 -6
- package/dist/types/components/AlertBadge/AlertBadge.d.ts.map +1 -1
- package/dist/types/components/AlertIcon/AlertIcon.d.ts +1 -4
- package/dist/types/components/AlertIcon/AlertIcon.d.ts.map +1 -1
- package/dist/types/components/Align/Align.d.ts +3 -6
- package/dist/types/components/Align/Align.d.ts.map +1 -1
- package/dist/types/components/Avatar/Avatar.d.ts +1 -4
- package/dist/types/components/Avatar/Avatar.d.ts.map +1 -1
- package/dist/types/components/Badge/Badge.d.ts +3 -6
- package/dist/types/components/Badge/Badge.d.ts.map +1 -1
- package/dist/types/components/Breadcrumb/Breadcrumb.d.ts +1 -4
- package/dist/types/components/Breadcrumb/Breadcrumb.d.ts.map +1 -1
- package/dist/types/components/Button/Button.d.ts +3 -6
- package/dist/types/components/Button/Button.d.ts.map +1 -1
- package/dist/types/components/Checkbox/Checkbox.d.ts +1 -4
- package/dist/types/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/types/components/CheckboxButton/CheckboxButton.d.ts +2 -6
- package/dist/types/components/CheckboxButton/CheckboxButton.d.ts.map +1 -1
- package/dist/types/components/CheckboxGroup/CheckboxGroup.d.ts +1 -4
- package/dist/types/components/CheckboxGroup/CheckboxGroup.d.ts.map +1 -1
- package/dist/types/components/ClearPropsContext/ClearPropsContext.d.ts +1 -4
- package/dist/types/components/ClearPropsContext/ClearPropsContext.d.ts.map +1 -1
- package/dist/types/components/ClearPropsContext/index.d.ts +2 -3
- package/dist/types/components/ClearPropsContext/index.d.ts.map +1 -1
- package/dist/types/components/ClearPropsContext/view.d.ts +8 -0
- package/dist/types/components/ClearPropsContext/view.d.ts.map +1 -0
- package/dist/types/components/ColumnLayout/ColumnLayout.d.ts +3 -6
- package/dist/types/components/ColumnLayout/ColumnLayout.d.ts.map +1 -1
- package/dist/types/components/ComboBox/ComboBox.d.ts +1 -4
- package/dist/types/components/ComboBox/ComboBox.d.ts.map +1 -1
- package/dist/types/components/ComponentPropsContextProvider/ComponentPropsContextProvider.d.ts +2 -0
- package/dist/types/components/ComponentPropsContextProvider/ComponentPropsContextProvider.d.ts.map +1 -0
- package/dist/types/components/ComponentPropsContextProvider/index.d.ts +3 -0
- package/dist/types/components/ComponentPropsContextProvider/index.d.ts.map +1 -0
- package/dist/types/components/ComponentPropsContextProvider/view.d.ts +8 -0
- package/dist/types/components/ComponentPropsContextProvider/view.d.ts.map +1 -0
- package/dist/types/components/Content/Content.d.ts +3 -6
- package/dist/types/components/Content/Content.d.ts.map +1 -1
- package/dist/types/components/ContextMenu/ContextMenu.d.ts +1 -4
- package/dist/types/components/ContextMenu/ContextMenu.d.ts.map +1 -1
- package/dist/types/components/ContextMenu/components/ContextMenuTrigger/ContextMenuTrigger.d.ts.map +1 -1
- package/dist/types/components/ContextualHelp/ContextualHelp.d.ts +2 -6
- package/dist/types/components/ContextualHelp/ContextualHelp.d.ts.map +1 -1
- package/dist/types/components/ContextualHelp/components/ContextualHelpTrigger/ContextualHelpTrigger.d.ts.map +1 -1
- package/dist/types/components/CopyButton/CopyButton.d.ts +1 -4
- package/dist/types/components/CopyButton/CopyButton.d.ts.map +1 -1
- package/dist/types/components/CountryOptions/CountryOptions.d.ts +2 -3
- package/dist/types/components/CountryOptions/CountryOptions.d.ts.map +1 -1
- package/dist/types/components/CountryOptions/index.d.ts +0 -1
- package/dist/types/components/CountryOptions/index.d.ts.map +1 -1
- package/dist/types/components/DatePicker/DatePicker.d.ts +3 -6
- package/dist/types/components/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/types/components/DateRangePicker/DateRangePicker.d.ts +3 -6
- package/dist/types/components/DateRangePicker/DateRangePicker.d.ts.map +1 -1
- package/dist/types/components/FieldDescription/FieldDescription.d.ts +2 -6
- package/dist/types/components/FieldDescription/FieldDescription.d.ts.map +1 -1
- package/dist/types/components/FieldError/FieldError.d.ts +3 -6
- package/dist/types/components/FieldError/FieldError.d.ts.map +1 -1
- package/dist/types/components/FileCard/FileCard.d.ts +1 -2
- package/dist/types/components/FileCard/FileCard.d.ts.map +1 -1
- package/dist/types/components/FileCardList/FileCardList.d.ts +2 -6
- package/dist/types/components/FileCardList/FileCardList.d.ts.map +1 -1
- package/dist/types/components/FileDropZone/FileDropZone.d.ts.map +1 -1
- package/dist/types/components/FileField/FileField.d.ts +1 -4
- package/dist/types/components/FileField/FileField.d.ts.map +1 -1
- package/dist/types/components/HeaderNavigation/HeaderNavigation.d.ts +1 -4
- package/dist/types/components/HeaderNavigation/HeaderNavigation.d.ts.map +1 -1
- package/dist/types/components/Heading/Heading.d.ts +2 -6
- package/dist/types/components/Heading/Heading.d.ts.map +1 -1
- package/dist/types/components/Icon/Icon.d.ts +1 -4
- package/dist/types/components/Icon/Icon.d.ts.map +1 -1
- package/dist/types/components/IllustratedMessage/IllustratedMessage.d.ts +1 -4
- package/dist/types/components/IllustratedMessage/IllustratedMessage.d.ts.map +1 -1
- package/dist/types/components/Image/Image.d.ts +1 -4
- package/dist/types/components/Image/Image.d.ts.map +1 -1
- package/dist/types/components/Initials/Initials.d.ts +1 -4
- package/dist/types/components/Initials/Initials.d.ts.map +1 -1
- package/dist/types/components/InlineCode/InlineCode.d.ts +1 -4
- package/dist/types/components/InlineCode/InlineCode.d.ts.map +1 -1
- package/dist/types/components/Label/Label.d.ts +1 -4
- package/dist/types/components/Label/Label.d.ts.map +1 -1
- package/dist/types/components/LabeledValue/LabeledValue.d.ts +1 -4
- package/dist/types/components/LabeledValue/LabeledValue.d.ts.map +1 -1
- package/dist/types/components/LayoutCard/LayoutCard.d.ts +3 -6
- package/dist/types/components/LayoutCard/LayoutCard.d.ts.map +1 -1
- package/dist/types/components/Link/Link.d.ts +1 -4
- package/dist/types/components/Link/Link.d.ts.map +1 -1
- package/dist/types/components/List/components/Header/components/Filters/CombinedFilterMenu.d.ts.map +1 -1
- package/dist/types/components/List/components/Header/components/Filters/FilterMenu.d.ts.map +1 -1
- package/dist/types/components/List/components/Header/components/Settings/SettingsMenu.d.ts.map +1 -1
- package/dist/types/components/List/components/Header/components/Settings/ViewModeMenu.d.ts.map +1 -1
- package/dist/types/components/List/components/Items/components/Item/components/AccordionButton.d.ts.map +1 -1
- package/dist/types/components/List/components/Items/components/Item/hooks/useGridItemProps.d.ts +3 -3
- package/dist/types/components/List/components/Items/components/Item/hooks/useGridItemProps.d.ts.map +1 -1
- package/dist/types/components/List/components/ListItemView/ListItemView.d.ts.map +1 -1
- package/dist/types/components/List/components/ListItemView/components/ListItemViewContent/ListItemViewContent.d.ts.map +1 -1
- package/dist/types/components/List/stories/ListItem.stories.d.ts +1 -0
- package/dist/types/components/List/stories/ListItem.stories.d.ts.map +1 -1
- package/dist/types/components/Message/Message.d.ts +3 -6
- package/dist/types/components/Message/Message.d.ts.map +1 -1
- package/dist/types/components/MessageThread/MessageThread.d.ts +5 -8
- package/dist/types/components/MessageThread/MessageThread.d.ts.map +1 -1
- package/dist/types/components/Modal/Modal.d.ts +2 -2
- package/dist/types/components/Modal/Modal.d.ts.map +1 -1
- package/dist/types/components/Navigation/Navigation.d.ts +2 -2
- package/dist/types/components/Navigation/Navigation.d.ts.map +1 -1
- package/dist/types/components/Navigation/components/NavigationGroup/NavigationGroup.d.ts +2 -2
- package/dist/types/components/Navigation/components/NavigationGroup/NavigationGroup.d.ts.map +1 -1
- package/dist/types/components/Notification/Notification.d.ts +1 -4
- package/dist/types/components/Notification/Notification.d.ts.map +1 -1
- package/dist/types/components/NumberField/NumberField.d.ts +1 -4
- package/dist/types/components/NumberField/NumberField.d.ts.map +1 -1
- package/dist/types/components/Overlay/Overlay.d.ts.map +1 -1
- package/dist/types/components/OverlayTrigger/OverlayTrigger.d.ts.map +1 -1
- package/dist/types/components/OverlayTrigger/components/MenuTrigger/MenuTrigger.d.ts.map +1 -1
- package/dist/types/components/PasswordCreationField/PasswordCreationField.d.ts +3 -6
- package/dist/types/components/PasswordCreationField/PasswordCreationField.d.ts.map +1 -1
- package/dist/types/components/PasswordCreationField/components/PasswordGenerateButton/PasswordGenerateButton.d.ts +1 -2
- package/dist/types/components/PasswordCreationField/components/PasswordGenerateButton/PasswordGenerateButton.d.ts.map +1 -1
- package/dist/types/components/Popover/Popover.d.ts.map +1 -1
- package/dist/types/components/Popover/components/PopoverTrigger/PopoverTrigger.d.ts.map +1 -1
- package/dist/types/components/ProgressBar/ProgressBar.d.ts +3 -6
- package/dist/types/components/ProgressBar/ProgressBar.d.ts.map +1 -1
- package/dist/types/components/RadioGroup/RadioGroup.d.ts +2 -2
- package/dist/types/components/RadioGroup/RadioGroup.d.ts.map +1 -1
- package/dist/types/components/RadioGroup/components/Radio/Radio.d.ts +3 -6
- package/dist/types/components/RadioGroup/components/Radio/Radio.d.ts.map +1 -1
- package/dist/types/components/RadioGroup/components/RadioButton/RadioButton.d.ts +2 -6
- package/dist/types/components/RadioGroup/components/RadioButton/RadioButton.d.ts.map +1 -1
- package/dist/types/components/SearchField/SearchField.d.ts +3 -6
- package/dist/types/components/SearchField/SearchField.d.ts.map +1 -1
- package/dist/types/components/Section/Section.d.ts +2 -2
- package/dist/types/components/Section/Section.d.ts.map +1 -1
- package/dist/types/components/Section/components/SectionHeader/SectionHeader.d.ts.map +1 -1
- package/dist/types/components/Section/stories/Default.stories.d.ts.map +1 -1
- package/dist/types/components/SegmentedControl/SegmentedControl.d.ts +2 -2
- package/dist/types/components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/dist/types/components/SegmentedControl/components/Segment/Segment.d.ts +3 -6
- package/dist/types/components/SegmentedControl/components/Segment/Segment.d.ts.map +1 -1
- package/dist/types/components/Select/Select.d.ts +1 -4
- package/dist/types/components/Select/Select.d.ts.map +1 -1
- package/dist/types/components/Slider/Slider.d.ts +3 -6
- package/dist/types/components/Slider/Slider.d.ts.map +1 -1
- package/dist/types/components/Switch/Switch.d.ts +3 -6
- package/dist/types/components/Switch/Switch.d.ts.map +1 -1
- package/dist/types/components/Tabs/components/Tab/Tab.d.ts +1 -4
- package/dist/types/components/Tabs/components/Tab/Tab.d.ts.map +1 -1
- package/dist/types/components/Text/Text.d.ts +1 -4
- package/dist/types/components/Text/Text.d.ts.map +1 -1
- package/dist/types/components/TextArea/TextArea.d.ts +1 -4
- package/dist/types/components/TextArea/TextArea.d.ts.map +1 -1
- package/dist/types/components/TextField/TextField.d.ts +1 -4
- package/dist/types/components/TextField/TextField.d.ts.map +1 -1
- package/dist/types/components/TextFieldBase/TextFieldBase.d.ts.map +1 -1
- package/dist/types/components/TimeField/TimeField.d.ts +3 -6
- package/dist/types/components/TimeField/TimeField.d.ts.map +1 -1
- package/dist/types/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/types/components/TunnelEntry/TunnelEntry.d.ts +1 -4
- package/dist/types/components/TunnelEntry/TunnelEntry.d.ts.map +1 -1
- package/dist/types/components/propTypes/index.d.ts +1 -2
- package/dist/types/components/propTypes/index.d.ts.map +1 -1
- package/dist/types/components/public.d.ts +3 -1
- package/dist/types/components/public.d.ts.map +1 -1
- package/dist/types/index/flr-universal.d.ts +1 -1
- package/dist/types/index/flr-universal.d.ts.map +1 -1
- package/dist/types/integrations/react-hook-form/components/Form/Form.d.ts.map +1 -1
- package/dist/types/lib/componentFactory/flowComponent.d.ts +6 -1
- package/dist/types/lib/componentFactory/flowComponent.d.ts.map +1 -1
- package/dist/types/lib/hooks/useProps.d.ts.map +1 -1
- package/dist/types/lib/propsContext/components/ClearPropsContext.d.ts +6 -0
- package/dist/types/lib/propsContext/components/ClearPropsContext.d.ts.map +1 -0
- package/dist/types/lib/propsContext/components/ComponentPropsContextProvider.d.ts +13 -0
- package/dist/types/lib/propsContext/components/ComponentPropsContextProvider.d.ts.map +1 -0
- package/dist/types/lib/propsContext/{PropsContextProvider.d.ts → components/PropsContextProvider.d.ts} +4 -2
- package/dist/types/lib/propsContext/components/PropsContextProvider.d.ts.map +1 -0
- package/dist/types/lib/propsContext/dynamicProps/dynamic.d.ts +2 -2
- package/dist/types/lib/propsContext/dynamicProps/dynamic.d.ts.map +1 -1
- package/dist/types/lib/propsContext/dynamicProps/{isDynamicProp.d.ts → lib.d.ts} +1 -1
- package/dist/types/lib/propsContext/dynamicProps/lib.d.ts.map +1 -0
- package/dist/types/lib/propsContext/dynamicProps/resolveDynamicProps.d.ts.map +1 -1
- package/dist/types/lib/propsContext/dynamicProps/types.d.ts +3 -1
- package/dist/types/lib/propsContext/dynamicProps/types.d.ts.map +1 -1
- package/dist/types/lib/propsContext/index.d.ts +1 -2
- package/dist/types/lib/propsContext/index.d.ts.map +1 -1
- package/dist/types/lib/propsContext/inherit/PropsContextLevelProvider.d.ts +7 -0
- package/dist/types/lib/propsContext/inherit/PropsContextLevelProvider.d.ts.map +1 -0
- package/dist/types/lib/propsContext/inherit/lib.d.ts +6 -0
- package/dist/types/lib/propsContext/inherit/lib.d.ts.map +1 -0
- package/dist/types/lib/propsContext/inherit/propsContextLevel.d.ts +4 -0
- package/dist/types/lib/propsContext/inherit/propsContextLevel.d.ts.map +1 -0
- package/dist/types/lib/propsContext/inherit/types.d.ts +6 -0
- package/dist/types/lib/propsContext/inherit/types.d.ts.map +1 -0
- package/dist/types/lib/propsContext/mergePropsContext.d.ts +1 -1
- package/dist/types/lib/propsContext/mergePropsContext.d.ts.map +1 -1
- package/dist/types/lib/propsContext/nestedPropsContext/lib.d.ts +7 -0
- package/dist/types/lib/propsContext/nestedPropsContext/lib.d.ts.map +1 -0
- package/dist/types/lib/propsContext/nestedPropsContext/types.d.ts +3 -0
- package/dist/types/lib/propsContext/nestedPropsContext/types.d.ts.map +1 -0
- package/dist/types/lib/propsContext/propsContext.d.ts +6 -160
- package/dist/types/lib/propsContext/propsContext.d.ts.map +1 -1
- package/dist/types/lib/propsContext/types.d.ts +3 -1
- package/dist/types/lib/propsContext/types.d.ts.map +1 -1
- package/dist/types/lib/tokens/getCategoricalColorByIndex.d.ts +1 -1
- package/dist/types/views/ClearPropsContextView.d.ts +5 -0
- package/dist/types/views/ClearPropsContextView.d.ts.map +1 -0
- package/dist/types/views/ComponentPropsContextProviderView.d.ts +5 -0
- package/dist/types/views/ComponentPropsContextProviderView.d.ts.map +1 -0
- package/package.json +5 -5
- package/dist/js/components/src/components/ClearPropsContext/ClearPropsContext.mjs +0 -13
- package/dist/js/components/src/components/ClearPropsContext/ClearPropsContext.mjs.map +0 -1
- package/dist/js/components/src/components/ClearPropsContext/components/ClearPropsContextContent.mjs +0 -12
- package/dist/js/components/src/components/ClearPropsContext/components/ClearPropsContextContent.mjs.map +0 -1
- package/dist/js/components/src/lib/propsContext/PropsContextProvider.mjs +0 -32
- package/dist/js/components/src/lib/propsContext/PropsContextProvider.mjs.map +0 -1
- package/dist/js/components/src/lib/propsContext/dynamicProps/isDynamicProp.mjs +0 -8
- package/dist/js/components/src/lib/propsContext/dynamicProps/isDynamicProp.mjs.map +0 -1
- package/dist/js/components/src/lib/propsContext/nestedPropsContext/isPropsWithChildren.mjs +0 -8
- package/dist/js/components/src/lib/propsContext/nestedPropsContext/isPropsWithChildren.mjs.map +0 -1
- package/dist/js/components/src/lib/propsContext/nestedPropsContext/pickPropsContext.mjs +0 -9
- package/dist/js/components/src/lib/propsContext/nestedPropsContext/pickPropsContext.mjs.map +0 -1
- package/dist/js/components/src/lib/propsContext/nestedPropsContext/wrapChildrenWithNestedPropsContext.mjs +0 -28
- package/dist/js/components/src/lib/propsContext/nestedPropsContext/wrapChildrenWithNestedPropsContext.mjs.map +0 -1
- package/dist/js/components/src/views/ClearPropsContextContentView.mjs +0 -14
- package/dist/js/components/src/views/ClearPropsContextContentView.mjs.map +0 -1
- package/dist/types/components/ClearPropsContext/ClearPropsContext.test.d.ts +0 -2
- package/dist/types/components/ClearPropsContext/ClearPropsContext.test.d.ts.map +0 -1
- package/dist/types/components/ClearPropsContext/components/ClearPropsContextContent.d.ts +0 -6
- package/dist/types/components/ClearPropsContext/components/ClearPropsContextContent.d.ts.map +0 -1
- package/dist/types/components/ClearPropsContext/components/index.d.ts +0 -3
- package/dist/types/components/ClearPropsContext/components/index.d.ts.map +0 -1
- package/dist/types/components/ClearPropsContext/components/view.d.ts +0 -8
- package/dist/types/components/ClearPropsContext/components/view.d.ts.map +0 -1
- package/dist/types/components/CountryOptions/view.d.ts +0 -8
- package/dist/types/components/CountryOptions/view.d.ts.map +0 -1
- package/dist/types/lib/propsContext/PropsContextProvider.d.ts.map +0 -1
- package/dist/types/lib/propsContext/dynamicProps/isDynamicProp.d.ts.map +0 -1
- package/dist/types/lib/propsContext/nestedPropsContext/isPropsWithChildren.d.ts +0 -3
- package/dist/types/lib/propsContext/nestedPropsContext/isPropsWithChildren.d.ts.map +0 -1
- package/dist/types/lib/propsContext/nestedPropsContext/pickPropsContext.d.ts +0 -4
- package/dist/types/lib/propsContext/nestedPropsContext/pickPropsContext.d.ts.map +0 -1
- package/dist/types/lib/propsContext/nestedPropsContext/pickPropsContext.test.d.ts +0 -2
- package/dist/types/lib/propsContext/nestedPropsContext/pickPropsContext.test.d.ts.map +0 -1
- package/dist/types/lib/propsContext/nestedPropsContext/wrapChildrenWithNestedPropsContext.d.ts +0 -6
- package/dist/types/lib/propsContext/nestedPropsContext/wrapChildrenWithNestedPropsContext.d.ts.map +0 -1
- package/dist/types/views/ClearPropsContextContentView.d.ts +0 -5
- package/dist/types/views/ClearPropsContextContentView.d.ts.map +0 -1
- package/dist/types/views/CountryOptionsView.d.ts +0 -5
- package/dist/types/views/CountryOptionsView.d.ts.map +0 -1
package/dist/js/components/src/components/OverlayTrigger/components/MenuTrigger/MenuTrigger.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuTrigger.mjs","sources":["../../../../../../../../src/components/OverlayTrigger/components/MenuTrigger/MenuTrigger.tsx"],"sourcesContent":["import * as Aria from \"react-aria-components\";\nimport type { ComponentProps, FC } from \"react\";\nimport { flowComponent, type FlowComponentProps } from \"@/index/internal\";\n\nexport type MenuTriggerProps = ComponentProps<typeof Aria.MenuTrigger> &\n FlowComponentProps;\n\n/** @flr-generate all */\nexport const MenuTrigger: FC<MenuTriggerProps> = flowComponent(\n \"MenuTrigger\",\n (props) => {\n return <Aria.MenuTrigger {...props} />;\n },\n);\n\nexport default MenuTrigger;\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MenuTrigger.mjs","sources":["../../../../../../../../src/components/OverlayTrigger/components/MenuTrigger/MenuTrigger.tsx"],"sourcesContent":["import * as Aria from \"react-aria-components\";\nimport type { ComponentProps, FC } from \"react\";\nimport { flowComponent, type FlowComponentProps } from \"@/index/internal\";\n\nexport type MenuTriggerProps = ComponentProps<typeof Aria.MenuTrigger> &\n FlowComponentProps;\n\n/** @flr-generate all */\nexport const MenuTrigger: FC<MenuTriggerProps> = flowComponent(\n \"MenuTrigger\",\n (props) => {\n return <Aria.MenuTrigger {...props} />;\n },\n { type: \"provider\" },\n);\n\nexport default MenuTrigger;\n"],"names":[],"mappings":";;;;;;;;;;;AAQO,MAAM,WAAoC,GAAA,aAAA;AAAA,EAC/C,aAAA;AAAA,EACA,CAAC,KAAU,KAAA;AACT,IAAA,uBAAQ,GAAA,CAAA,IAAA,CAAK,WAAL,EAAA,EAAkB,GAAG,KAAO,EAAA,CAAA;AAAA,GACtC;AAAA,EACA,EAAE,MAAM,UAAW;AACrB;;;;"}
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
/* */
|
|
3
3
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
4
4
|
import { useState, useMemo, useDeferredValue } from 'react';
|
|
5
|
-
import { ClearPropsContext } from '../ClearPropsContext/ClearPropsContext.mjs';
|
|
6
|
-
import '../../lib/propsContext/propsContext.mjs';
|
|
7
5
|
import { dynamic } from '../../lib/propsContext/dynamicProps/dynamic.mjs';
|
|
8
|
-
import
|
|
6
|
+
import '../../lib/propsContext/propsContext.mjs';
|
|
7
|
+
import { PropsContextProvider } from '../../lib/propsContext/components/PropsContextProvider.mjs';
|
|
9
8
|
import { flowComponent } from '../../lib/componentFactory/flowComponent.mjs';
|
|
10
9
|
import styles from './PasswordCreationField.module.scss.mjs';
|
|
11
10
|
import * as Aria from 'react-aria-components';
|
|
@@ -191,88 +190,93 @@ const PasswordCreationField = flowComponent(
|
|
|
191
190
|
})
|
|
192
191
|
}
|
|
193
192
|
};
|
|
194
|
-
return /* @__PURE__ */ jsx(
|
|
195
|
-
|
|
193
|
+
return /* @__PURE__ */ jsx(
|
|
194
|
+
PropsContextProvider,
|
|
196
195
|
{
|
|
197
|
-
|
|
198
|
-
value,
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
196
|
+
props: propsContext,
|
|
197
|
+
dependencies: [isDisabled, isRequired, value, policyValidationResult],
|
|
198
|
+
children: /* @__PURE__ */ jsx(TunnelProvider, { children: /* @__PURE__ */ jsxs(
|
|
199
|
+
Aria.TextField,
|
|
200
|
+
{
|
|
201
|
+
...rest,
|
|
202
|
+
value,
|
|
203
|
+
type: isPasswordRevealed ? "text" : "password",
|
|
204
|
+
onChange: handleOnChange,
|
|
205
|
+
onPaste: onPasswordPasteHandler,
|
|
206
|
+
className: clsx(className, formFieldStyles.formField),
|
|
207
|
+
isDisabled,
|
|
208
|
+
isInvalid,
|
|
209
|
+
isRequired,
|
|
210
|
+
children: [
|
|
211
|
+
/* @__PURE__ */ jsx(TunnelExit, { id: "label" }),
|
|
212
|
+
/* @__PURE__ */ jsxs(
|
|
213
|
+
Aria.Group,
|
|
214
|
+
{
|
|
215
|
+
isDisabled,
|
|
216
|
+
className: clsx(styles.inputGroup),
|
|
217
|
+
children: [
|
|
218
|
+
/* @__PURE__ */ jsx(
|
|
219
|
+
ReactAriaControlledValueFix,
|
|
220
|
+
{
|
|
221
|
+
inputContext: Aria.InputContext,
|
|
222
|
+
props: { ...props, value },
|
|
223
|
+
children: /* @__PURE__ */ jsx(Aria.Input, { ref, className: styles.input })
|
|
224
|
+
}
|
|
225
|
+
),
|
|
226
|
+
/* @__PURE__ */ jsxs(Aria.Group, { className: styles.buttonContainer, children: [
|
|
227
|
+
/* @__PURE__ */ jsx(
|
|
228
|
+
TogglePasswordVisibilityButton,
|
|
229
|
+
{
|
|
230
|
+
className: styles.button,
|
|
231
|
+
isVisible: isPasswordRevealed,
|
|
232
|
+
isDisabled,
|
|
233
|
+
onPress: togglePasswordVisibilityHandler
|
|
234
|
+
}
|
|
235
|
+
),
|
|
236
|
+
/* @__PURE__ */ jsx(TunnelExit, { id: "button" })
|
|
237
|
+
] }),
|
|
238
|
+
/* @__PURE__ */ jsx(
|
|
239
|
+
ComplexityIndicator,
|
|
240
|
+
{
|
|
241
|
+
isEmptyValue,
|
|
242
|
+
isLoading,
|
|
243
|
+
policyValidationResult,
|
|
244
|
+
validationResultState: stateFromValidationResult
|
|
245
|
+
}
|
|
246
|
+
)
|
|
247
|
+
]
|
|
248
|
+
}
|
|
249
|
+
),
|
|
250
|
+
isValidFromValidationResult && /* @__PURE__ */ jsx(FieldDescription, { children: latestValidationErrorText }),
|
|
251
|
+
isInvalidFromValidationResult && policyValidationResult.isValid !== "indeterminate" && /* @__PURE__ */ jsx(FieldError, { children: latestValidationErrorText }),
|
|
252
|
+
/* @__PURE__ */ jsx(Wrap, { if: isInvalidFromValidationResult, children: /* @__PURE__ */ jsx(
|
|
253
|
+
FieldErrorContext.Provider,
|
|
254
|
+
{
|
|
255
|
+
value: {
|
|
256
|
+
isInvalid: false,
|
|
257
|
+
validationErrors: [],
|
|
258
|
+
validationDetails: {
|
|
259
|
+
customError: false,
|
|
260
|
+
valid: true,
|
|
261
|
+
typeMismatch: false,
|
|
262
|
+
stepMismatch: false,
|
|
263
|
+
valueMissing: false,
|
|
264
|
+
tooShort: false,
|
|
265
|
+
tooLong: false,
|
|
266
|
+
rangeUnderflow: false,
|
|
267
|
+
patternMismatch: false,
|
|
268
|
+
badInput: false,
|
|
269
|
+
rangeOverflow: false
|
|
230
270
|
}
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
isLoading,
|
|
239
|
-
policyValidationResult,
|
|
240
|
-
validationResultState: stateFromValidationResult
|
|
241
|
-
}
|
|
242
|
-
)
|
|
243
|
-
]
|
|
244
|
-
}
|
|
245
|
-
),
|
|
246
|
-
/* @__PURE__ */ jsxs(PropsContextProvider, { props: propsContext, children: [
|
|
247
|
-
isValidFromValidationResult && /* @__PURE__ */ jsx(FieldDescription, { children: latestValidationErrorText }),
|
|
248
|
-
isInvalidFromValidationResult && policyValidationResult.isValid !== "indeterminate" && /* @__PURE__ */ jsx(FieldError, { children: latestValidationErrorText }),
|
|
249
|
-
/* @__PURE__ */ jsx(Wrap, { if: isInvalidFromValidationResult, children: /* @__PURE__ */ jsx(
|
|
250
|
-
FieldErrorContext.Provider,
|
|
251
|
-
{
|
|
252
|
-
value: {
|
|
253
|
-
isInvalid: false,
|
|
254
|
-
validationErrors: [],
|
|
255
|
-
validationDetails: {
|
|
256
|
-
customError: false,
|
|
257
|
-
valid: true,
|
|
258
|
-
typeMismatch: false,
|
|
259
|
-
stepMismatch: false,
|
|
260
|
-
valueMissing: false,
|
|
261
|
-
tooShort: false,
|
|
262
|
-
tooLong: false,
|
|
263
|
-
rangeUnderflow: false,
|
|
264
|
-
patternMismatch: false,
|
|
265
|
-
badInput: false,
|
|
266
|
-
rangeOverflow: false
|
|
267
|
-
}
|
|
268
|
-
},
|
|
269
|
-
children
|
|
270
|
-
}
|
|
271
|
-
) })
|
|
272
|
-
] })
|
|
273
|
-
]
|
|
271
|
+
},
|
|
272
|
+
children
|
|
273
|
+
}
|
|
274
|
+
) })
|
|
275
|
+
]
|
|
276
|
+
}
|
|
277
|
+
) })
|
|
274
278
|
}
|
|
275
|
-
)
|
|
279
|
+
);
|
|
276
280
|
}
|
|
277
281
|
);
|
|
278
282
|
|
package/dist/js/components/src/components/PasswordCreationField/PasswordCreationField.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PasswordCreationField.mjs","sources":["../../../../../../src/components/PasswordCreationField/PasswordCreationField.tsx"],"sourcesContent":["import React, {\n type PropsWithChildren,\n useState,\n type ClipboardEvent,\n useDeferredValue,\n useMemo,\n} from \"react\";\nimport {\n ClearPropsContext,\n dynamic,\n type PropsContext,\n PropsContextProvider,\n} from \"@/lib/propsContext\";\nimport {\n flowComponent,\n type FlowComponentProps,\n} from \"@/lib/componentFactory/flowComponent\";\nimport styles from \"./PasswordCreationField.module.scss\";\nimport * as Aria from \"react-aria-components\";\nimport formFieldStyles from \"@/components/FormField/FormField.module.scss\";\nimport clsx from \"clsx\";\nimport { TunnelExit, TunnelProvider } from \"@mittwald/react-tunnel\";\nimport { type ActionFn } from \"@/components/Action\";\nimport getStateFromLatestPolicyValidationResult from \"@/components/PasswordCreationField/lib/getStateFromLatestPolicyValidationResult\";\nimport locales from \"./locales/*.locale.json\";\nimport generateValidationTranslation from \"@/components/PasswordCreationField/lib/generateValidationTranslation\";\nimport { FieldError } from \"@/components/FieldError\";\nimport FieldDescription from \"@/components/FieldDescription\";\nimport ComplexityIndicator from \"@/components/PasswordCreationField/components/ComplexityIndicator/ComplexityIndicator\";\nimport { generatePassword } from \"@/components/PasswordCreationField/worker/generatePassword\";\nimport TogglePasswordVisibilityButton from \"@/components/PasswordCreationField/components/TogglePasswordVisibilityButton/TogglePasswordVisibilityButton\";\nimport { FieldErrorContext } from \"react-aria-components\";\nimport { Wrap } from \"@/components/Wrap\";\nimport { ReactAriaControlledValueFix } from \"@/lib/react/ReactAriaControlledValueFix\";\nimport { ValidationResultButton } from \"@/components/PasswordCreationField/components/ValidationResultButton/ValidationResultButton\";\nimport { PasswordGenerateButton } from \"@/components/PasswordCreationField/components/PasswordGenerateButton/PasswordGenerateButton\";\nimport { useLocalizedContextStringFormatter } from \"@/components/TranslationProvider/useLocalizedContextStringFormatter\";\nimport type {\n PolicyValidationResult,\n PolicyGenericDeclaration,\n RuleValidationResult,\n} from \"@/integrations/@mittwald/password-tools-js\";\nimport {\n defaultPasswordCreationPolicy,\n Policy,\n} from \"@/integrations/@mittwald/password-tools-js\";\nimport { usePolicyValidationResult } from \"@/components/PasswordCreationField/lib/usePolicyValidationResult\";\nimport { useManagedValue } from \"@/lib/hooks/useManagedValue\";\n\nexport interface PasswordCreationFieldProps\n extends PropsWithChildren<\n Omit<Aria.TextFieldProps, \"children\" | \"value\" | \"defaultValue\"> &\n Partial<Pick<Aria.FieldErrorRenderProps, \"validationErrors\">>\n >,\n FlowComponentProps<HTMLInputElement> {\n value?: string;\n onValidationResult?: (result: { password: string; isValid: boolean }) => void;\n defaultValue?: string;\n placeholder?: string;\n validationPolicy?: PolicyGenericDeclaration;\n}\n\nexport interface ResolvedPolicyValidationResult\n extends Omit<PolicyValidationResult, \"isValid\"> {\n isValid: boolean | \"indeterminate\";\n ruleResults: RuleValidationResult[];\n}\n\n/**\n * @flr-generate all\n * @flr-clear-props-context\n */\nexport const PasswordCreationField = flowComponent(\n \"PasswordCreationField\",\n (props) => {\n const {\n children,\n className,\n ref,\n isDisabled,\n onValidationResult,\n isInvalid: invalidFromProps,\n validationPolicy:\n validationPolicyFromProps = defaultPasswordCreationPolicy,\n isRequired,\n ...rest\n } = props;\n\n const [isLoading, setIsLoading] = useState(false);\n const translate = useLocalizedContextStringFormatter(locales);\n const validationPolicy = useMemo(\n () => Policy.fromDeclaration(validationPolicyFromProps),\n [validationPolicyFromProps],\n );\n\n const { value, handleOnChange } = useManagedValue(props);\n const deferredValue = useDeferredValue(value);\n\n const [isPasswordRevealed, setIsPasswordRevealed] = useState(false);\n const initialPolicyValidationState: ResolvedPolicyValidationResult = {\n isValid: true,\n complexity: {\n min: validationPolicy.minComplexity,\n actual: 4,\n warning: null,\n },\n ruleResults: [],\n };\n\n const [policyValidationResult, setPolicyValidationResult] = useState(\n initialPolicyValidationState,\n );\n usePolicyValidationResult(\n validationPolicy,\n deferredValue,\n () => {\n if (isEmptyValue) {\n return;\n }\n\n setIsLoading(() => true);\n },\n ({ password, isValid, results }) => {\n if (isEmptyValue) {\n setPolicyValidationResult(() => ({\n ...results,\n isValid: true,\n }));\n return;\n }\n\n setIsLoading(() => false);\n setPolicyValidationResult(() => results);\n onValidationResult?.({ password, isValid });\n },\n );\n\n const isEmptyValue = !value;\n const stateFromValidationResult = getStateFromLatestPolicyValidationResult(\n isEmptyValue,\n policyValidationResult,\n );\n let latestValidationErrorText = undefined;\n if (stateFromValidationResult) {\n const [translationKey, translationValues] = generateValidationTranslation(\n stateFromValidationResult,\n );\n latestValidationErrorText = translate.format(\n translationKey,\n translationValues,\n );\n }\n\n const isValidFromValidationResult =\n !isEmptyValue && stateFromValidationResult?.isValid;\n const isInvalidFromValidationResult =\n !isEmptyValue && !stateFromValidationResult?.isValid;\n const isInvalid = invalidFromProps || isInvalidFromValidationResult;\n\n const setOptimisticPolicyValidationResult = (\n state: Partial<ResolvedPolicyValidationResult> = {},\n ) => {\n setIsLoading(() => false);\n setPolicyValidationResult(() => ({\n ...initialPolicyValidationState,\n ...state,\n isValid: true,\n }));\n };\n\n const onPasswordGenerateHandler: ActionFn = async () => {\n const generatedPassword = await generatePassword(validationPolicy);\n setOptimisticPolicyValidationResult();\n setIsPasswordRevealed(true);\n handleOnChange(generatedPassword);\n };\n\n const onPasswordPasteHandler = (event: ClipboardEvent) => {\n const pastedValue = event.clipboardData.getData(\"text\");\n if (pastedValue !== value) {\n setOptimisticPolicyValidationResult({\n isValid: \"indeterminate\",\n });\n }\n };\n\n const togglePasswordVisibilityHandler = () => {\n setIsPasswordRevealed((old) => !old);\n };\n\n const propsContext: PropsContext = {\n Button: {\n tunnelId: \"button\",\n size: \"m\",\n variant: \"plain\",\n color: \"secondary\",\n isDisabled: isDisabled,\n className: styles.button,\n },\n CopyButton: {\n tunnelId: \"button\",\n size: \"m\",\n variant: \"plain\",\n color: \"secondary\",\n isDisabled: isDisabled,\n className: styles.button,\n text: value,\n },\n Label: {\n className: formFieldStyles.label,\n tunnelId: \"label\",\n optional: !isRequired,\n isDisabled: isDisabled,\n children: dynamic((localProps) => {\n return (\n <>\n {localProps.children}\n <PasswordGenerateButton\n isDisabled={isDisabled}\n onGeneratePasswordAction={onPasswordGenerateHandler}\n />\n <ValidationResultButton\n isEmptyValue={isEmptyValue}\n isDisabled={isDisabled}\n policyValidationResult={policyValidationResult}\n />\n </>\n );\n }),\n },\n FieldDescription: {\n className: formFieldStyles.fieldDescription,\n },\n FieldError: {\n className: formFieldStyles.customFieldError,\n children: dynamic(() => {\n if (latestValidationErrorText) {\n return latestValidationErrorText;\n }\n }),\n },\n };\n\n return (\n <ClearPropsContext>\n <TunnelProvider>\n <Aria.TextField\n {...rest}\n value={value}\n type={isPasswordRevealed ? \"text\" : \"password\"}\n onChange={handleOnChange}\n onPaste={onPasswordPasteHandler}\n className={clsx(className, formFieldStyles.formField)}\n isDisabled={isDisabled}\n isInvalid={isInvalid}\n isRequired={isRequired}\n >\n <TunnelExit id=\"label\" />\n <Aria.Group\n isDisabled={isDisabled}\n className={clsx(styles.inputGroup)}\n >\n <ReactAriaControlledValueFix\n inputContext={Aria.InputContext}\n props={{ ...props, value }}\n >\n <Aria.Input ref={ref} className={styles.input} />\n </ReactAriaControlledValueFix>\n <Aria.Group className={styles.buttonContainer}>\n <TogglePasswordVisibilityButton\n className={styles.button}\n isVisible={isPasswordRevealed}\n isDisabled={isDisabled}\n onPress={togglePasswordVisibilityHandler}\n />\n <TunnelExit id=\"button\" />\n </Aria.Group>\n <ComplexityIndicator\n isEmptyValue={isEmptyValue}\n isLoading={isLoading}\n policyValidationResult={policyValidationResult}\n validationResultState={stateFromValidationResult}\n />\n </Aria.Group>\n <PropsContextProvider props={propsContext}>\n {isValidFromValidationResult && (\n <FieldDescription>{latestValidationErrorText}</FieldDescription>\n )}\n {isInvalidFromValidationResult &&\n policyValidationResult.isValid !== \"indeterminate\" && (\n <FieldError>{latestValidationErrorText}</FieldError>\n )}\n <Wrap if={isInvalidFromValidationResult}>\n <FieldErrorContext.Provider\n value={{\n isInvalid: false,\n validationErrors: [],\n validationDetails: {\n customError: false,\n valid: true,\n typeMismatch: false,\n stepMismatch: false,\n valueMissing: false,\n tooShort: false,\n tooLong: false,\n rangeUnderflow: false,\n patternMismatch: false,\n badInput: false,\n rangeOverflow: false,\n },\n }}\n >\n {children}\n </FieldErrorContext.Provider>\n </Wrap>\n </PropsContextProvider>\n </Aria.TextField>\n </TunnelProvider>\n </ClearPropsContext>\n );\n },\n);\n\nexport default PasswordCreationField;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwEO,MAAM,qBAAwB,GAAA,aAAA;AAAA,EACnC,uBAAA;AAAA,EACA,CAAC,KAAU,KAAA;AACT,IAAM,MAAA;AAAA,MACJ,QAAA;AAAA,MACA,SAAA;AAAA,MACA,GAAA;AAAA,MACA,UAAA;AAAA,MACA,kBAAA;AAAA,MACA,SAAW,EAAA,gBAAA;AAAA,MACX,kBACE,yBAA4B,GAAA,6BAAA;AAAA,MAC9B,UAAA;AAAA,MACA,GAAG;AAAA,KACD,GAAA,KAAA;AAEJ,IAAA,MAAM,CAAC,SAAA,EAAW,YAAY,CAAA,GAAI,SAAS,KAAK,CAAA;AAChD,IAAM,MAAA,SAAA,GAAY,mCAAmC,OAAO,CAAA;AAC5D,IAAA,MAAM,gBAAmB,GAAA,OAAA;AAAA,MACvB,MAAM,MAAO,CAAA,eAAA,CAAgB,yBAAyB,CAAA;AAAA,M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AAA,CAAA;AAAA;AAGN;;;;"}
|
|
1
|
+
{"version":3,"file":"PasswordCreationField.mjs","sources":["../../../../../../src/components/PasswordCreationField/PasswordCreationField.tsx"],"sourcesContent":["import {\n type PropsWithChildren,\n useState,\n type ClipboardEvent,\n useDeferredValue,\n useMemo,\n} from \"react\";\nimport {\n dynamic,\n type PropsContext,\n PropsContextProvider,\n} from \"@/lib/propsContext\";\nimport {\n flowComponent,\n type FlowComponentProps,\n} from \"@/lib/componentFactory/flowComponent\";\nimport styles from \"./PasswordCreationField.module.scss\";\nimport * as Aria from \"react-aria-components\";\nimport formFieldStyles from \"@/components/FormField/FormField.module.scss\";\nimport clsx from \"clsx\";\nimport { TunnelExit, TunnelProvider } from \"@mittwald/react-tunnel\";\nimport { type ActionFn } from \"@/components/Action\";\nimport getStateFromLatestPolicyValidationResult from \"@/components/PasswordCreationField/lib/getStateFromLatestPolicyValidationResult\";\nimport locales from \"./locales/*.locale.json\";\nimport generateValidationTranslation from \"@/components/PasswordCreationField/lib/generateValidationTranslation\";\nimport { FieldError } from \"@/components/FieldError\";\nimport FieldDescription from \"@/components/FieldDescription\";\nimport ComplexityIndicator from \"@/components/PasswordCreationField/components/ComplexityIndicator/ComplexityIndicator\";\nimport { generatePassword } from \"@/components/PasswordCreationField/worker/generatePassword\";\nimport TogglePasswordVisibilityButton from \"@/components/PasswordCreationField/components/TogglePasswordVisibilityButton/TogglePasswordVisibilityButton\";\nimport { FieldErrorContext } from \"react-aria-components\";\nimport { Wrap } from \"@/components/Wrap\";\nimport { ReactAriaControlledValueFix } from \"@/lib/react/ReactAriaControlledValueFix\";\nimport { ValidationResultButton } from \"@/components/PasswordCreationField/components/ValidationResultButton/ValidationResultButton\";\nimport { PasswordGenerateButton } from \"@/components/PasswordCreationField/components/PasswordGenerateButton/PasswordGenerateButton\";\nimport { useLocalizedContextStringFormatter } from \"@/components/TranslationProvider/useLocalizedContextStringFormatter\";\nimport type {\n PolicyValidationResult,\n PolicyGenericDeclaration,\n RuleValidationResult,\n} from \"@/integrations/@mittwald/password-tools-js\";\nimport {\n defaultPasswordCreationPolicy,\n Policy,\n} from \"@/integrations/@mittwald/password-tools-js\";\nimport { usePolicyValidationResult } from \"@/components/PasswordCreationField/lib/usePolicyValidationResult\";\nimport { useManagedValue } from \"@/lib/hooks/useManagedValue\";\n\nexport interface PasswordCreationFieldProps\n extends PropsWithChildren<\n Omit<Aria.TextFieldProps, \"children\" | \"value\" | \"defaultValue\"> &\n Partial<Pick<Aria.FieldErrorRenderProps, \"validationErrors\">>\n >,\n FlowComponentProps<HTMLInputElement> {\n value?: string;\n onValidationResult?: (result: { password: string; isValid: boolean }) => void;\n defaultValue?: string;\n placeholder?: string;\n validationPolicy?: PolicyGenericDeclaration;\n}\n\nexport interface ResolvedPolicyValidationResult\n extends Omit<PolicyValidationResult, \"isValid\"> {\n isValid: boolean | \"indeterminate\";\n ruleResults: RuleValidationResult[];\n}\n\n/** @flr-generate all */\nexport const PasswordCreationField = flowComponent(\n \"PasswordCreationField\",\n (props) => {\n const {\n children,\n className,\n ref,\n isDisabled,\n onValidationResult,\n isInvalid: invalidFromProps,\n validationPolicy:\n validationPolicyFromProps = defaultPasswordCreationPolicy,\n isRequired,\n ...rest\n } = props;\n\n const [isLoading, setIsLoading] = useState(false);\n const translate = useLocalizedContextStringFormatter(locales);\n const validationPolicy = useMemo(\n () => Policy.fromDeclaration(validationPolicyFromProps),\n [validationPolicyFromProps],\n );\n\n const { value, handleOnChange } = useManagedValue(props);\n const deferredValue = useDeferredValue(value);\n\n const [isPasswordRevealed, setIsPasswordRevealed] = useState(false);\n const initialPolicyValidationState: ResolvedPolicyValidationResult = {\n isValid: true,\n complexity: {\n min: validationPolicy.minComplexity,\n actual: 4,\n warning: null,\n },\n ruleResults: [],\n };\n\n const [policyValidationResult, setPolicyValidationResult] = useState(\n initialPolicyValidationState,\n );\n usePolicyValidationResult(\n validationPolicy,\n deferredValue,\n () => {\n if (isEmptyValue) {\n return;\n }\n\n setIsLoading(() => true);\n },\n ({ password, isValid, results }) => {\n if (isEmptyValue) {\n setPolicyValidationResult(() => ({\n ...results,\n isValid: true,\n }));\n return;\n }\n\n setIsLoading(() => false);\n setPolicyValidationResult(() => results);\n onValidationResult?.({ password, isValid });\n },\n );\n\n const isEmptyValue = !value;\n const stateFromValidationResult = getStateFromLatestPolicyValidationResult(\n isEmptyValue,\n policyValidationResult,\n );\n let latestValidationErrorText = undefined;\n if (stateFromValidationResult) {\n const [translationKey, translationValues] = generateValidationTranslation(\n stateFromValidationResult,\n );\n latestValidationErrorText = translate.format(\n translationKey,\n translationValues,\n );\n }\n\n const isValidFromValidationResult =\n !isEmptyValue && stateFromValidationResult?.isValid;\n const isInvalidFromValidationResult =\n !isEmptyValue && !stateFromValidationResult?.isValid;\n const isInvalid = invalidFromProps || isInvalidFromValidationResult;\n\n const setOptimisticPolicyValidationResult = (\n state: Partial<ResolvedPolicyValidationResult> = {},\n ) => {\n setIsLoading(() => false);\n setPolicyValidationResult(() => ({\n ...initialPolicyValidationState,\n ...state,\n isValid: true,\n }));\n };\n\n const onPasswordGenerateHandler: ActionFn = async () => {\n const generatedPassword = await generatePassword(validationPolicy);\n setOptimisticPolicyValidationResult();\n setIsPasswordRevealed(true);\n handleOnChange(generatedPassword);\n };\n\n const onPasswordPasteHandler = (event: ClipboardEvent) => {\n const pastedValue = event.clipboardData.getData(\"text\");\n if (pastedValue !== value) {\n setOptimisticPolicyValidationResult({\n isValid: \"indeterminate\",\n });\n }\n };\n\n const togglePasswordVisibilityHandler = () => {\n setIsPasswordRevealed((old) => !old);\n };\n\n const propsContext: PropsContext = {\n Button: {\n tunnelId: \"button\",\n size: \"m\",\n variant: \"plain\",\n color: \"secondary\",\n isDisabled: isDisabled,\n className: styles.button,\n },\n CopyButton: {\n tunnelId: \"button\",\n size: \"m\",\n variant: \"plain\",\n color: \"secondary\",\n isDisabled: isDisabled,\n className: styles.button,\n text: value,\n },\n Label: {\n className: formFieldStyles.label,\n tunnelId: \"label\",\n optional: !isRequired,\n isDisabled: isDisabled,\n children: dynamic((localProps) => {\n return (\n <>\n {localProps.children}\n <PasswordGenerateButton\n isDisabled={isDisabled}\n onGeneratePasswordAction={onPasswordGenerateHandler}\n />\n <ValidationResultButton\n isEmptyValue={isEmptyValue}\n isDisabled={isDisabled}\n policyValidationResult={policyValidationResult}\n />\n </>\n );\n }),\n },\n FieldDescription: {\n className: formFieldStyles.fieldDescription,\n },\n FieldError: {\n className: formFieldStyles.customFieldError,\n children: dynamic(() => {\n if (latestValidationErrorText) {\n return latestValidationErrorText;\n }\n }),\n },\n };\n\n return (\n <PropsContextProvider\n props={propsContext}\n dependencies={[isDisabled, isRequired, value, policyValidationResult]}\n >\n <TunnelProvider>\n <Aria.TextField\n {...rest}\n value={value}\n type={isPasswordRevealed ? \"text\" : \"password\"}\n onChange={handleOnChange}\n onPaste={onPasswordPasteHandler}\n className={clsx(className, formFieldStyles.formField)}\n isDisabled={isDisabled}\n isInvalid={isInvalid}\n isRequired={isRequired}\n >\n <TunnelExit id=\"label\" />\n <Aria.Group\n isDisabled={isDisabled}\n className={clsx(styles.inputGroup)}\n >\n <ReactAriaControlledValueFix\n inputContext={Aria.InputContext}\n props={{ ...props, value }}\n >\n <Aria.Input ref={ref} className={styles.input} />\n </ReactAriaControlledValueFix>\n <Aria.Group className={styles.buttonContainer}>\n <TogglePasswordVisibilityButton\n className={styles.button}\n isVisible={isPasswordRevealed}\n isDisabled={isDisabled}\n onPress={togglePasswordVisibilityHandler}\n />\n <TunnelExit id=\"button\" />\n </Aria.Group>\n <ComplexityIndicator\n isEmptyValue={isEmptyValue}\n isLoading={isLoading}\n policyValidationResult={policyValidationResult}\n validationResultState={stateFromValidationResult}\n />\n </Aria.Group>\n {isValidFromValidationResult && (\n <FieldDescription>{latestValidationErrorText}</FieldDescription>\n )}\n {isInvalidFromValidationResult &&\n policyValidationResult.isValid !== \"indeterminate\" && (\n <FieldError>{latestValidationErrorText}</FieldError>\n )}\n <Wrap if={isInvalidFromValidationResult}>\n <FieldErrorContext.Provider\n value={{\n isInvalid: false,\n validationErrors: [],\n validationDetails: {\n customError: false,\n valid: true,\n typeMismatch: false,\n stepMismatch: false,\n valueMissing: false,\n tooShort: false,\n tooLong: false,\n rangeUnderflow: false,\n patternMismatch: false,\n badInput: false,\n rangeOverflow: false,\n },\n }}\n >\n {children}\n </FieldErrorContext.Provider>\n </Wrap>\n </Aria.TextField>\n </TunnelProvider>\n </PropsContextProvider>\n );\n },\n);\n\nexport default PasswordCreationField;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoEO,MAAM,qBAAwB,GAAA,aAAA;AAAA,EACnC,uBAAA;AAAA,EACA,CAAC,KAAU,KAAA;AACT,IAAM,MAAA;AAAA,MACJ,QAAA;AAAA,MACA,SAAA;AAAA,MACA,GAAA;AAAA,MACA,UAAA;AAAA,MACA,kBAAA;AAAA,MACA,SAAW,EAAA,gBAAA;AAAA,MACX,kBACE,yBAA4B,GAAA,6BAAA;AAAA,MAC9B,UAAA;AAAA,MACA,GAAG;AAAA,KACD,GAAA,KAAA;AAEJ,IAAA,MAAM,CAAC,SAAA,EAAW,YAAY,CAAA,GAAI,SAAS,KAAK,CAAA;AAChD,IAAM,MAAA,SAAA,GAAY,mCAAmC,OAAO,CAAA;AAC5D,IAAA,MAAM,gBAAmB,GAAA,OAAA;AAAA,MACvB,MAAM,MAAO,CAAA,eAAA,CAAgB,yBAAyB,CAAA;AAAA,MACtD,CAAC,yBAAyB;AAAA,KAC5B;AAEA,IAAA,MAAM,EAAE,KAAA,EAAO,cAAe,EAAA,GAAI,gBAAgB,KAAK,CAAA;AACvD,IAAM,MAAA,aAAA,GAAgB,iBAAiB,KAAK,CAAA;AAE5C,IAAA,MAAM,CAAC,kBAAA,EAAoB,qBAAqB,CAAA,GAAI,SAAS,KAAK,CAAA;AAClE,IAAA,MAAM,4BAA+D,GAAA;AAAA,MACnE,OAAS,EAAA,IAAA;AAAA,MACT,UAAY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;AAAA,wBACA,sBAAA;AAAA,wBACA,qBAAuB,EAAA;AAAA;AAAA;AACzB;AAAA;AAAA,eACF;AAAA,cACC,2BAAA,oBACE,GAAA,CAAA,gBAAA,EAAA,EAAkB,QAA0B,EAAA,yBAAA,EAAA,CAAA;AAAA,cAE9C,iCACC,sBAAuB,CAAA,OAAA,KAAY,eACjC,oBAAA,GAAA,CAAC,cAAY,QAA0B,EAAA,yBAAA,EAAA,CAAA;AAAA,8BAE3C,GAAA,CAAC,IAAK,EAAA,EAAA,EAAA,EAAI,6BACR,EAAA,QAAA,kBAAA,GAAA;AAAA,gBAAC,iBAAkB,CAAA,QAAA;AAAA,gBAAlB;AAAA,kBACC,KAAO,EAAA;AAAA,oBACL,SAAW,EAAA,KAAA;AAAA,oBACX,kBAAkB,EAAC;AAAA,oBACnB,iBAAmB,EAAA;AAAA,sBACjB,WAAa,EAAA,KAAA;AAAA,sBACb,KAAO,EAAA,IAAA;AAAA,sBACP,YAAc,EAAA,KAAA;AAAA,sBACd,YAAc,EAAA,KAAA;AAAA,sBACd,YAAc,EAAA,KAAA;AAAA,sBACd,QAAU,EAAA,KAAA;AAAA,sBACV,OAAS,EAAA,KAAA;AAAA,sBACT,cAAgB,EAAA,KAAA;AAAA,sBAChB,eAAiB,EAAA,KAAA;AAAA,sBACjB,QAAU,EAAA,KAAA;AAAA,sBACV,aAAe,EAAA;AAAA;AACjB,mBACF;AAAA,kBAEC;AAAA;AAAA,eAEL,EAAA;AAAA;AAAA;AAAA,SAEJ,EAAA;AAAA;AAAA,KACF;AAAA;AAGN;;;;"}
|
|
@@ -8,14 +8,13 @@ import { Button } from '../../../Button/Button.mjs';
|
|
|
8
8
|
import { Action } from '../../../Action/Action.mjs';
|
|
9
9
|
|
|
10
10
|
const PasswordGenerateButton = (props) => {
|
|
11
|
-
const {
|
|
11
|
+
const { isDisabled, onGeneratePasswordAction } = props;
|
|
12
12
|
const translate = useLocalizedStringFormatter(locales);
|
|
13
13
|
return /* @__PURE__ */ jsx(Action, { action: onGeneratePasswordAction, showFeedback: false, children: /* @__PURE__ */ jsx(
|
|
14
14
|
Button,
|
|
15
15
|
{
|
|
16
16
|
"data-component": "generatePassword",
|
|
17
17
|
isDisabled,
|
|
18
|
-
className,
|
|
19
18
|
variant: "plain",
|
|
20
19
|
color: "dark",
|
|
21
20
|
children: translate.format("button.generate")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PasswordGenerateButton.mjs","sources":["../../../../../../../../src/components/PasswordCreationField/components/PasswordGenerateButton/PasswordGenerateButton.tsx"],"sourcesContent":["import { type FC } from \"react\";\nimport { useLocalizedStringFormatter } from \"react-aria\";\nimport locales from \"./../../locales/*.locale.json\";\nimport { Button } from \"@/components/Button\";\nimport
|
|
1
|
+
{"version":3,"file":"PasswordGenerateButton.mjs","sources":["../../../../../../../../src/components/PasswordCreationField/components/PasswordGenerateButton/PasswordGenerateButton.tsx"],"sourcesContent":["import { type FC } from \"react\";\nimport { useLocalizedStringFormatter } from \"react-aria\";\nimport locales from \"./../../locales/*.locale.json\";\nimport { Button } from \"@/components/Button\";\nimport { Action, type ActionFn } from \"@/components/Action\";\n\ninterface Props {\n isDisabled?: boolean;\n onGeneratePasswordAction?: ActionFn;\n}\n\nexport const PasswordGenerateButton: FC<Props> = (props) => {\n const { isDisabled, onGeneratePasswordAction } = props;\n const translate = useLocalizedStringFormatter(locales);\n\n return (\n <Action action={onGeneratePasswordAction} showFeedback={false}>\n <Button\n data-component=\"generatePassword\"\n isDisabled={isDisabled}\n variant=\"plain\"\n color=\"dark\"\n >\n {translate.format(\"button.generate\")}\n </Button>\n </Action>\n );\n};\n"],"names":[],"mappings":";;;;;;;AAWa,MAAA,sBAAA,GAAoC,CAAC,KAAU,KAAA;AAC1D,EAAM,MAAA,EAAE,UAAY,EAAA,wBAAA,EAA6B,GAAA,KAAA;AACjD,EAAM,MAAA,SAAA,GAAY,4BAA4B,OAAO,CAAA;AAErD,EAAA,uBACG,GAAA,CAAA,MAAA,EAAA,EAAO,MAAQ,EAAA,wBAAA,EAA0B,cAAc,KACtD,EAAA,QAAA,kBAAA,GAAA;AAAA,IAAC,MAAA;AAAA,IAAA;AAAA,MACC,gBAAe,EAAA,kBAAA;AAAA,MACf,UAAA;AAAA,MACA,OAAQ,EAAA,OAAA;AAAA,MACR,KAAM,EAAA,MAAA;AAAA,MAEL,QAAA,EAAA,SAAA,CAAU,OAAO,iBAAiB;AAAA;AAAA,GAEvC,EAAA,CAAA;AAEJ;;;;"}
|
|
@@ -9,6 +9,7 @@ import { flowComponent } from '../../lib/componentFactory/flowComponent.mjs';
|
|
|
9
9
|
import { OverlayContextProvider } from '../../lib/controller/overlay/OverlayContextProvider.mjs';
|
|
10
10
|
import styles from './Popover.module.scss.mjs';
|
|
11
11
|
import PopoverContentView from '../../views/PopoverContentView.mjs';
|
|
12
|
+
import ClearPropsContextView from '../../views/ClearPropsContextView.mjs';
|
|
12
13
|
|
|
13
14
|
const Popover = flowComponent("Popover", (props) => {
|
|
14
15
|
const {
|
|
@@ -26,7 +27,7 @@ const Popover = flowComponent("Popover", (props) => {
|
|
|
26
27
|
const controller = controllerFromProps ?? controllerFromContext;
|
|
27
28
|
const isOpen = controller.useIsOpen();
|
|
28
29
|
const rootClassName = clsx(styles.popover, className);
|
|
29
|
-
return /* @__PURE__ */ jsx(
|
|
30
|
+
return /* @__PURE__ */ jsx(ClearPropsContextView, { children: /* @__PURE__ */ jsx(
|
|
30
31
|
PopoverContentView,
|
|
31
32
|
{
|
|
32
33
|
...contentProps,
|
|
@@ -36,7 +37,7 @@ const Popover = flowComponent("Popover", (props) => {
|
|
|
36
37
|
ref,
|
|
37
38
|
children: /* @__PURE__ */ jsx(OverlayContextProvider, { type: "Popover", controller, children })
|
|
38
39
|
}
|
|
39
|
-
);
|
|
40
|
+
) });
|
|
40
41
|
});
|
|
41
42
|
|
|
42
43
|
export { Popover, Popover as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popover.mjs","sources":["../../../../../../src/components/Popover/Popover.tsx"],"sourcesContent":["import type { PropsWithChildren } from \"react\";\nimport type * as Aria from \"react-aria-components\";\nimport clsx from \"clsx\";\nimport { type OverlayController, useOverlayController } from \"@/lib/controller\";\nimport {\n flowComponent,\n type FlowComponentProps,\n} from \"@/lib/componentFactory/flowComponent\";\nimport OverlayContextProvider from \"@/lib/controller/overlay/OverlayContextProvider\";\nimport styles from \"./Popover.module.scss\";\nimport PopoverContentView from \"@/views/PopoverContentView\";\n\nexport interface PopoverProps\n extends PropsWithChildren<Omit<Aria.PopoverProps, \"children\">>,\n FlowComponentProps {\n /**\n * Whether the popover should display a tip, pointing towards the trigger\n * element.\n */\n withTip?: boolean;\n /** Whether the popover contains a dialog. */\n isDialogContent?: boolean;\n /** An overlay controller to control the popover state. */\n controller?: OverlayController;\n /** A fixed width for the popover. */\n width?: string | number;\n}\n\nexport const Popover = flowComponent(\"Popover\", (props) => {\n const {\n children,\n className,\n controller: controllerFromProps,\n defaultOpen = false,\n ref,\n ...contentProps\n } = props;\n\n const controllerFromContext = useOverlayController(\"Popover\", {\n reuseControllerFromContext: true,\n isDefaultOpen: defaultOpen,\n });\n\n const controller = controllerFromProps ?? controllerFromContext;\n const isOpen = controller.useIsOpen();\n\n const rootClassName = clsx(styles.popover, className);\n\n return (\n <PopoverContentView\n
|
|
1
|
+
{"version":3,"file":"Popover.mjs","sources":["../../../../../../src/components/Popover/Popover.tsx"],"sourcesContent":["import type { PropsWithChildren } from \"react\";\nimport type * as Aria from \"react-aria-components\";\nimport clsx from \"clsx\";\nimport { type OverlayController, useOverlayController } from \"@/lib/controller\";\nimport {\n flowComponent,\n type FlowComponentProps,\n} from \"@/lib/componentFactory/flowComponent\";\nimport OverlayContextProvider from \"@/lib/controller/overlay/OverlayContextProvider\";\nimport styles from \"./Popover.module.scss\";\nimport PopoverContentView from \"@/views/PopoverContentView\";\nimport ClearPropsContextView from \"@/views/ClearPropsContextView\";\n\nexport interface PopoverProps\n extends PropsWithChildren<Omit<Aria.PopoverProps, \"children\">>,\n FlowComponentProps {\n /**\n * Whether the popover should display a tip, pointing towards the trigger\n * element.\n */\n withTip?: boolean;\n /** Whether the popover contains a dialog. */\n isDialogContent?: boolean;\n /** An overlay controller to control the popover state. */\n controller?: OverlayController;\n /** A fixed width for the popover. */\n width?: string | number;\n}\n\nexport const Popover = flowComponent(\"Popover\", (props) => {\n const {\n children,\n className,\n controller: controllerFromProps,\n defaultOpen = false,\n ref,\n ...contentProps\n } = props;\n\n const controllerFromContext = useOverlayController(\"Popover\", {\n reuseControllerFromContext: true,\n isDefaultOpen: defaultOpen,\n });\n\n const controller = controllerFromProps ?? controllerFromContext;\n const isOpen = controller.useIsOpen();\n\n const rootClassName = clsx(styles.popover, className);\n\n return (\n <ClearPropsContextView>\n <PopoverContentView\n {...contentProps}\n className={rootClassName}\n isOpen={isOpen}\n onOpenChange={(isOpen) => controller.setOpen(isOpen)}\n ref={ref}\n >\n <OverlayContextProvider type=\"Popover\" controller={controller}>\n {children}\n </OverlayContextProvider>\n </PopoverContentView>\n </ClearPropsContextView>\n );\n});\n\nexport default Popover;\n"],"names":["isOpen"],"mappings":";;;;;;;;;;;AA6BO,MAAM,OAAU,GAAA,aAAA,CAAc,SAAW,EAAA,CAAC,KAAU,KAAA;AACzD,EAAM,MAAA;AAAA,IACJ,QAAA;AAAA,IACA,SAAA;AAAA,IACA,UAAY,EAAA,mBAAA;AAAA,IACZ,WAAc,GAAA,KAAA;AAAA,IACd,GAAA;AAAA,IACA,GAAG;AAAA,GACD,GAAA,KAAA;AAEJ,EAAM,MAAA,qBAAA,GAAwB,qBAAqB,SAAW,EAAA;AAAA,IAC5D,0BAA4B,EAAA,IAAA;AAAA,IAC5B,aAAe,EAAA;AAAA,GAChB,CAAA;AAED,EAAA,MAAM,aAAa,mBAAuB,IAAA,qBAAA;AAC1C,EAAM,MAAA,MAAA,GAAS,WAAW,SAAU,EAAA;AAEpC,EAAA,MAAM,aAAgB,GAAA,IAAA,CAAK,MAAO,CAAA,OAAA,EAAS,SAAS,CAAA;AAEpD,EAAA,2BACG,qBACC,EAAA,EAAA,QAAA,kBAAA,GAAA;AAAA,IAAC,kBAAA;AAAA,IAAA;AAAA,MACE,GAAG,YAAA;AAAA,MACJ,SAAW,EAAA,aAAA;AAAA,MACX,MAAA;AAAA,MACA,YAAc,EAAA,CAACA,OAAW,KAAA,UAAA,CAAW,QAAQA,OAAM,CAAA;AAAA,MACnD,GAAA;AAAA,MAEA,QAAC,kBAAA,GAAA,CAAA,sBAAA,EAAA,EAAuB,IAAK,EAAA,SAAA,EAAU,YACpC,QACH,EAAA;AAAA;AAAA,GAEJ,EAAA,CAAA;AAEJ,CAAC;;;;"}
|
package/dist/js/components/src/components/Popover/components/PopoverTrigger/PopoverTrigger.mjs
CHANGED
|
@@ -7,18 +7,22 @@ import { OverlayTrigger } from '../../../OverlayTrigger/OverlayTrigger.mjs';
|
|
|
7
7
|
import { flowComponent } from '../../../../lib/componentFactory/flowComponent.mjs';
|
|
8
8
|
import DialogTriggerView from '../../../../views/DialogTriggerView.mjs';
|
|
9
9
|
|
|
10
|
-
const PopoverTrigger = flowComponent(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
10
|
+
const PopoverTrigger = flowComponent(
|
|
11
|
+
"PopoverTrigger",
|
|
12
|
+
(props) => {
|
|
13
|
+
const { children, ...triggerProps } = props;
|
|
14
|
+
return /* @__PURE__ */ jsx(
|
|
15
|
+
OverlayTrigger,
|
|
16
|
+
{
|
|
17
|
+
overlayType: "Popover",
|
|
18
|
+
...triggerProps,
|
|
19
|
+
component: DialogTriggerView,
|
|
20
|
+
children
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
},
|
|
24
|
+
{ type: "provider" }
|
|
25
|
+
);
|
|
22
26
|
|
|
23
27
|
export { PopoverTrigger, PopoverTrigger as default };
|
|
24
28
|
//# sourceMappingURL=PopoverTrigger.mjs.map
|
package/dist/js/components/src/components/Popover/components/PopoverTrigger/PopoverTrigger.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopoverTrigger.mjs","sources":["../../../../../../../../src/components/Popover/components/PopoverTrigger/PopoverTrigger.tsx"],"sourcesContent":["import type { OverlayTriggerProps } from \"@/components/OverlayTrigger\";\nimport { OverlayTrigger } from \"@/components/OverlayTrigger\";\nimport { flowComponent } from \"@/lib/componentFactory/flowComponent\";\nimport DialogTriggerView from \"@/views/DialogTriggerView\";\n\nexport type PopoverTriggerProps = OverlayTriggerProps;\n\nexport const PopoverTrigger = flowComponent(\"PopoverTrigger\"
|
|
1
|
+
{"version":3,"file":"PopoverTrigger.mjs","sources":["../../../../../../../../src/components/Popover/components/PopoverTrigger/PopoverTrigger.tsx"],"sourcesContent":["import type { OverlayTriggerProps } from \"@/components/OverlayTrigger\";\nimport { OverlayTrigger } from \"@/components/OverlayTrigger\";\nimport { flowComponent } from \"@/lib/componentFactory/flowComponent\";\nimport DialogTriggerView from \"@/views/DialogTriggerView\";\n\nexport type PopoverTriggerProps = OverlayTriggerProps;\n\nexport const PopoverTrigger = flowComponent(\n \"PopoverTrigger\",\n (props) => {\n const { children, ...triggerProps } = props;\n return (\n <OverlayTrigger\n overlayType=\"Popover\"\n {...triggerProps}\n component={DialogTriggerView}\n >\n {children}\n </OverlayTrigger>\n );\n },\n { type: \"provider\" },\n);\n\nexport default PopoverTrigger;\n"],"names":[],"mappings":";;;;;;;AAOO,MAAM,cAAiB,GAAA,aAAA;AAAA,EAC5B,gBAAA;AAAA,EACA,CAAC,KAAU,KAAA;AACT,IAAA,MAAM,EAAE,QAAA,EAAU,GAAG,YAAA,EAAiB,GAAA,KAAA;AACtC,IACE,uBAAA,GAAA;AAAA,MAAC,cAAA;AAAA,MAAA;AAAA,QACC,WAAY,EAAA,SAAA;AAAA,QACX,GAAG,YAAA;AAAA,QACJ,SAAW,EAAA,iBAAA;AAAA,QAEV;AAAA;AAAA,KACH;AAAA,GAEJ;AAAA,EACA,EAAE,MAAM,UAAW;AACrB;;;;"}
|
|
@@ -2,12 +2,10 @@
|
|
|
2
2
|
/* */
|
|
3
3
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
4
4
|
import * as Aria from 'react-aria-components';
|
|
5
|
-
import 'react';
|
|
6
5
|
import styles from './ProgressBar.module.scss.mjs';
|
|
7
6
|
import clsx from 'clsx';
|
|
8
7
|
import '../../lib/propsContext/propsContext.mjs';
|
|
9
|
-
import '../../lib/
|
|
10
|
-
import { PropsContextProvider } from '../../lib/propsContext/PropsContextProvider.mjs';
|
|
8
|
+
import { PropsContextProvider } from '../../lib/propsContext/components/PropsContextProvider.mjs';
|
|
11
9
|
import { ProgressBarValue } from './components/ProgressBarValue.mjs';
|
|
12
10
|
import { ProgressBarBar } from './components/ProgressBarBar.mjs';
|
|
13
11
|
import { ProgressBarLegend } from './components/ProgressBarLegend.mjs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProgressBar.mjs","sources":["../../../../../../src/components/ProgressBar/ProgressBar.tsx"],"sourcesContent":["import * as Aria from \"react-aria-components\";\nimport type { PropsWithChildren } from \"react\";\nimport
|
|
1
|
+
{"version":3,"file":"ProgressBar.mjs","sources":["../../../../../../src/components/ProgressBar/ProgressBar.tsx"],"sourcesContent":["import * as Aria from \"react-aria-components\";\nimport type { PropsWithChildren } from \"react\";\nimport styles from \"./ProgressBar.module.scss\";\nimport clsx from \"clsx\";\nimport type { PropsWithStatus } from \"@/lib/types/props\";\nimport type { PropsContext } from \"@/lib/propsContext\";\nimport { PropsContextProvider } from \"@/lib/propsContext\";\nimport { ProgressBarValue } from \"@/components/ProgressBar/components/ProgressBarValue\";\nimport { ProgressBarBar } from \"@/components/ProgressBar/components/ProgressBarBar\";\nimport { ProgressBarLegend } from \"@/components/ProgressBar/components/ProgressBarLegend\";\nimport type { CategoricalColor } from \"@/lib/tokens/CategoricalColors\";\nimport {\n flowComponent,\n type FlowComponentProps,\n} from \"@/lib/componentFactory/flowComponent\";\n\nexport interface ProgressBarProps\n extends PropsWithChildren<Omit<Aria.ProgressBarProps, \"children\">>,\n PropsWithStatus,\n FlowComponentProps {\n /** Whether the max value should be displayed. */\n showMaxValue?: boolean;\n /** The size variant of the progress bar. @default \"m\" */\n size?: \"s\" | \"m\" | \"l\";\n /** Divides the fill of the progress bar into segments */\n segments?: {\n value: number;\n title: string;\n color?: CategoricalColor;\n valueText?: string;\n }[];\n /**\n * Whether the legend component is shown when segments are used. @default:\n * true\n */\n showLegend?: boolean;\n}\n\n/** @flr-generate all */\nexport const ProgressBar = flowComponent(\"ProgressBar\", (props) => {\n const {\n children,\n className,\n status = \"info\",\n showMaxValue,\n size = \"m\",\n segments,\n value,\n formatOptions,\n showLegend = true,\n maxValue,\n valueLabel,\n ...rest\n } = props;\n\n const rootClassName = clsx(\n className,\n styles.progressBar,\n styles[`size-${size}`],\n styles[status],\n );\n\n const propsContext: PropsContext = {\n Label: {\n className: styles.label,\n unstyled: true,\n },\n };\n\n const segmentsTotalValue = segments\n ? segments.map((s) => s.value).reduce((a, b) => a + b, 0)\n : undefined;\n\n return (\n <Aria.ProgressBar\n className={rootClassName}\n value={segmentsTotalValue ?? value}\n formatOptions={formatOptions}\n maxValue={maxValue}\n {...rest}\n >\n {({ percentage }) => (\n <PropsContextProvider props={propsContext}>\n {children}\n\n <ProgressBarValue\n showMaxValue={showMaxValue}\n maxValue={maxValue}\n formatOptions={formatOptions}\n value={segmentsTotalValue ?? value}\n valueLabel={valueLabel}\n />\n\n <ProgressBarBar\n percentage={percentage}\n segmentsTotalValue={segmentsTotalValue}\n segments={segments}\n />\n\n <ProgressBarLegend\n showLegend={showLegend}\n segments={segments}\n formatOptions={formatOptions}\n />\n </PropsContextProvider>\n )}\n </Aria.ProgressBar>\n );\n});\n\nexport default ProgressBar;\n"],"names":[],"mappings":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;AAAA,YACC,YAAA;AAAA,YACA,QAAA;AAAA,YACA,aAAA;AAAA,YACA,OAAO,kBAAsB,IAAA,KAAA;AAAA,YAC7B;AAAA;AAAA,SACF;AAAA,wBAEA,GAAA;AAAA,UAAC,cAAA;AAAA,UAAA;AAAA,YACC,UAAA;AAAA,YACA,kBAAA;AAAA,YACA;AAAA;AAAA,SACF;AAAA,wBAEA,GAAA;AAAA,UAAC,iBAAA;AAAA,UAAA;AAAA,YACC,UAAA;AAAA,YACA,QAAA;AAAA,YACA;AAAA;AAAA;AACF,OACF,EAAA;AAAA;AAAA,GAEJ;AAEJ,CAAC;;;;"}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
3
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
|
-
import 'react';
|
|
5
4
|
import styles from './RadioGroup.module.scss.mjs';
|
|
6
5
|
import * as Aria from 'react-aria-components';
|
|
7
6
|
import clsx from 'clsx';
|
|
8
7
|
import '../../lib/propsContext/propsContext.mjs';
|
|
9
|
-
import '../../lib/
|
|
10
|
-
import { PropsContextProvider } from '../../lib/propsContext/PropsContextProvider.mjs';
|
|
8
|
+
import { PropsContextProvider } from '../../lib/propsContext/components/PropsContextProvider.mjs';
|
|
11
9
|
import { FieldError } from '../FieldError/FieldError.mjs';
|
|
12
10
|
import { ColumnLayout } from '../ColumnLayout/ColumnLayout.mjs';
|
|
13
11
|
import { TunnelProvider, TunnelExit } from '@mittwald/react-tunnel';
|
|
@@ -41,31 +39,23 @@ const RadioGroup = flowComponent("RadioGroup", (props) => {
|
|
|
41
39
|
}
|
|
42
40
|
};
|
|
43
41
|
return /* @__PURE__ */ jsxs(Aria.RadioGroup, { ...rest, className: rootClassName, ref, children: [
|
|
44
|
-
/* @__PURE__ */ jsx(
|
|
45
|
-
|
|
46
|
-
{
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
children: /* @__PURE__ */ jsx(TunnelExit, { id: "radios" })
|
|
62
|
-
}
|
|
63
|
-
),
|
|
64
|
-
/* @__PURE__ */ jsx(TunnelExit, { id: "fieldDescription" }),
|
|
65
|
-
/* @__PURE__ */ jsx(TunnelExit, { id: "fieldError" })
|
|
66
|
-
]
|
|
67
|
-
}
|
|
68
|
-
) }),
|
|
42
|
+
/* @__PURE__ */ jsx(PropsContextProvider, { dependencies: ["radio"], props: propsContext, children: /* @__PURE__ */ jsxs(TunnelProvider, { children: [
|
|
43
|
+
children,
|
|
44
|
+
/* @__PURE__ */ jsx(ColumnLayout, { s, m, l, className: styles.radioGroup, children: /* @__PURE__ */ jsx(TunnelExit, { id: "radioButtons" }) }),
|
|
45
|
+
/* @__PURE__ */ jsx(
|
|
46
|
+
ColumnLayout,
|
|
47
|
+
{
|
|
48
|
+
s: s ?? [1],
|
|
49
|
+
m: m ?? [1],
|
|
50
|
+
l: l ?? [1],
|
|
51
|
+
rowGap: "s",
|
|
52
|
+
className: styles.radioGroup,
|
|
53
|
+
children: /* @__PURE__ */ jsx(TunnelExit, { id: "radios" })
|
|
54
|
+
}
|
|
55
|
+
),
|
|
56
|
+
/* @__PURE__ */ jsx(TunnelExit, { id: "fieldDescription" }),
|
|
57
|
+
/* @__PURE__ */ jsx(TunnelExit, { id: "fieldError" })
|
|
58
|
+
] }) }),
|
|
69
59
|
/* @__PURE__ */ jsx(FieldError, { className: formFieldStyles.fieldError })
|
|
70
60
|
] });
|
|
71
61
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioGroup.mjs","sources":["../../../../../../src/components/RadioGroup/RadioGroup.tsx"],"sourcesContent":["import type { PropsWithChildren } from \"react\";\nimport
|
|
1
|
+
{"version":3,"file":"RadioGroup.mjs","sources":["../../../../../../src/components/RadioGroup/RadioGroup.tsx"],"sourcesContent":["import type { PropsWithChildren } from \"react\";\nimport styles from \"./RadioGroup.module.scss\";\nimport * as Aria from \"react-aria-components\";\nimport clsx from \"clsx\";\nimport type { PropsContext } from \"@/lib/propsContext\";\nimport { PropsContextProvider } from \"@/lib/propsContext\";\nimport { FieldError } from \"@/components/FieldError\";\nimport type { ColumnLayoutProps } from \"@/components/ColumnLayout\";\nimport { ColumnLayout } from \"@/components/ColumnLayout\";\nimport { TunnelExit, TunnelProvider } from \"@mittwald/react-tunnel\";\nimport formFieldStyles from \"../FormField/FormField.module.scss\";\nimport type { FlowComponentProps } from \"@/lib/componentFactory/flowComponent\";\nimport { flowComponent } from \"@/lib/componentFactory/flowComponent\";\n\nexport interface RadioGroupProps\n extends PropsWithChildren<Omit<Aria.RadioGroupProps, \"children\">>,\n FlowComponentProps,\n Pick<ColumnLayoutProps, \"s\" | \"m\" | \"l\"> {}\n\n/** @flr-generate all */\nexport const RadioGroup = flowComponent(\"RadioGroup\", (props) => {\n const { children, className, s, m, l, ref, ...rest } = props;\n\n const rootClassName = clsx(\n formFieldStyles.formField,\n styles.radioGroupContainer,\n className,\n );\n\n const propsContext: PropsContext = {\n Label: {\n className: formFieldStyles.label,\n },\n FieldDescription: {\n className: formFieldStyles.fieldDescription,\n tunnelId: \"fieldDescription\",\n },\n FieldError: {\n className: formFieldStyles.customFieldError,\n tunnelId: \"fieldError\",\n },\n RadioButton: {\n tunnelId: \"radioButtons\",\n },\n Radio: {\n tunnelId: \"radios\",\n },\n };\n\n return (\n <Aria.RadioGroup {...rest} className={rootClassName} ref={ref}>\n <PropsContextProvider dependencies={[\"radio\"]} props={propsContext}>\n <TunnelProvider>\n {children}\n\n <ColumnLayout s={s} m={m} l={l} className={styles.radioGroup}>\n <TunnelExit id=\"radioButtons\" />\n </ColumnLayout>\n\n <ColumnLayout\n s={s ?? [1]}\n m={m ?? [1]}\n l={l ?? [1]}\n rowGap=\"s\"\n className={styles.radioGroup}\n >\n <TunnelExit id=\"radios\" />\n </ColumnLayout>\n\n <TunnelExit id=\"fieldDescription\" />\n <TunnelExit id=\"fieldError\" />\n </TunnelProvider>\n </PropsContextProvider>\n <FieldError className={formFieldStyles.fieldError} />\n </Aria.RadioGroup>\n );\n});\n\nexport default RadioGroup;\n"],"names":[],"mappings":";;;;;;;;;;;;AAoBO,MAAM,UAAa,GAAA,aAAA,CAAc,YAAc,EAAA,CAAC,KAAU,KAAA;AAC/D,EAAM,MAAA,EAAE,UAAU,SAAW,EAAA,CAAA,EAAG,GAAG,CAAG,EAAA,GAAA,EAAK,GAAG,IAAA,EAAS,GAAA,KAAA;AAEvD,EAAA,MAAM,aAAgB,GAAA,IAAA;AAAA,IACpB,eAAgB,CAAA,SAAA;AAAA,IAChB,MAAO,CAAA,mBAAA;AAAA,IACP;AAAA,GACF;AAEA,EAAA,MAAM,YAA6B,GAAA;AAAA,IACjC,KAAO,EAAA;AAAA,MACL,WAAW,eAAgB,CAAA;AAAA,KAC7B;AAAA,IACA,gBAAkB,EAAA;AAAA,MAChB,WAAW,eAAgB,CAAA,gBAAA;AAAA,MAC3B,QAAU,EAAA;AAAA,KACZ;AAAA,IACA,UAAY,EAAA;AAAA,MACV,WAAW,eAAgB,CAAA,gBAAA;AAAA,MAC3B,QAAU,EAAA;AAAA,KACZ;AAAA,IACA,WAAa,EAAA;AAAA,MACX,QAAU,EAAA;AAAA,KACZ;AAAA,IACA,KAAO,EAAA;AAAA,MACL,QAAU,EAAA;AAAA;AACZ,GACF;AAEA,EACE,uBAAA,IAAA,CAAC,KAAK,UAAL,EAAA,EAAiB,GAAG,IAAM,EAAA,SAAA,EAAW,eAAe,GACnD,EAAA,QAAA,EAAA;AAAA,oBAAC,GAAA,CAAA,oBAAA,EAAA,EAAqB,cAAc,CAAC,OAAO,GAAG,KAAO,EAAA,YAAA,EACpD,+BAAC,cACE,EAAA,EAAA,QAAA,EAAA;AAAA,MAAA,QAAA;AAAA,sBAEA,GAAA,CAAA,YAAA,EAAA,EAAa,CAAM,EAAA,CAAA,EAAM,CAAM,EAAA,SAAA,EAAW,MAAO,CAAA,UAAA,EAChD,QAAC,kBAAA,GAAA,CAAA,UAAA,EAAA,EAAW,EAAG,EAAA,cAAA,EAAe,CAChC,EAAA,CAAA;AAAA,sBAEA,GAAA;AAAA,QAAC,YAAA;AAAA,QAAA;AAAA,UACC,CAAA,EAAG,CAAK,IAAA,CAAC,CAAC,CAAA;AAAA,UACV,CAAA,EAAG,CAAK,IAAA,CAAC,CAAC,CAAA;AAAA,UACV,CAAA,EAAG,CAAK,IAAA,CAAC,CAAC,CAAA;AAAA,UACV,MAAO,EAAA,GAAA;AAAA,UACP,WAAW,MAAO,CAAA,UAAA;AAAA,UAElB,QAAA,kBAAA,GAAA,CAAC,UAAW,EAAA,EAAA,EAAA,EAAG,QAAS,EAAA;AAAA;AAAA,OAC1B;AAAA,sBAEA,GAAA,CAAC,UAAW,EAAA,EAAA,EAAA,EAAG,kBAAmB,EAAA,CAAA;AAAA,sBAClC,GAAA,CAAC,UAAW,EAAA,EAAA,EAAA,EAAG,YAAa,EAAA;AAAA,KAAA,EAC9B,CACF,EAAA,CAAA;AAAA,oBACC,GAAA,CAAA,UAAA,EAAA,EAAW,SAAW,EAAA,eAAA,CAAgB,UAAY,EAAA;AAAA,GACrD,EAAA,CAAA;AAEJ,CAAC;;;;"}
|
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
3
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
4
|
-
import 'react';
|
|
5
4
|
import styles from './Radio.module.scss.mjs';
|
|
6
5
|
import * as Aria from 'react-aria-components';
|
|
7
6
|
import clsx from 'clsx';
|
|
7
|
+
import 'react';
|
|
8
8
|
import '@tabler/icons-react';
|
|
9
9
|
import '../../../Icon/Icon.mjs';
|
|
10
10
|
import '../../../../lib/viewComponentContext/viewComponentContext.mjs';
|
|
11
11
|
import { IconRadioOff } from '../../../Icon/components/icons/IconRadioOff.mjs';
|
|
12
12
|
import { IconRadioOn } from '../../../Icon/components/icons/IconRadioOn.mjs';
|
|
13
13
|
import { flowComponent } from '../../../../lib/componentFactory/flowComponent.mjs';
|
|
14
|
-
import { ClearPropsContext } from '../../../ClearPropsContext/ClearPropsContext.mjs';
|
|
15
14
|
|
|
16
15
|
const Radio = flowComponent("Radio", (props) => {
|
|
17
16
|
const { children, className, ref, ...rest } = props;
|
|
18
17
|
const rootClassName = clsx(styles.radio, className);
|
|
19
|
-
return /* @__PURE__ */ jsx(
|
|
18
|
+
return /* @__PURE__ */ jsx(Aria.Radio, { ...rest, className: rootClassName, ref, children: ({ isSelected }) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
20
19
|
isSelected ? /* @__PURE__ */ jsx(IconRadioOn, { className: styles.icon }) : /* @__PURE__ */ jsx(IconRadioOff, { className: styles.icon }),
|
|
21
20
|
children
|
|
22
|
-
] }) })
|
|
21
|
+
] }) });
|
|
23
22
|
});
|
|
24
23
|
|
|
25
24
|
export { Radio, Radio as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Radio.mjs","sources":["../../../../../../../../src/components/RadioGroup/components/Radio/Radio.tsx"],"sourcesContent":["import type { PropsWithChildren } from \"react\";\nimport
|
|
1
|
+
{"version":3,"file":"Radio.mjs","sources":["../../../../../../../../src/components/RadioGroup/components/Radio/Radio.tsx"],"sourcesContent":["import type { PropsWithChildren } from \"react\";\nimport styles from \"./Radio.module.scss\";\nimport * as Aria from \"react-aria-components\";\nimport clsx from \"clsx\";\nimport { IconRadioOff, IconRadioOn } from \"@/components/Icon/components/icons\";\nimport type { FlowComponentProps } from \"@/lib/componentFactory/flowComponent\";\nimport { flowComponent } from \"@/lib/componentFactory/flowComponent\";\n\nexport interface RadioProps\n extends PropsWithChildren<Omit<Aria.RadioProps, \"children\">>,\n FlowComponentProps<HTMLLabelElement> {}\n\n/** @flr-generate all */\nexport const Radio = flowComponent(\"Radio\", (props) => {\n const { children, className, ref, ...rest } = props;\n\n const rootClassName = clsx(styles.radio, className);\n\n return (\n <Aria.Radio {...rest} className={rootClassName} ref={ref}>\n {({ isSelected }) => (\n <>\n {isSelected ? (\n <IconRadioOn className={styles.icon} />\n ) : (\n <IconRadioOff className={styles.icon} />\n )}\n {children}\n </>\n )}\n </Aria.Radio>\n );\n});\n\nexport default Radio;\n"],"names":[],"mappings":";;;;;;;;;;;;AAaO,MAAM,KAAQ,GAAA,aAAA,CAAc,OAAS,EAAA,CAAC,KAAU,KAAA;AACrD,EAAA,MAAM,EAAE,QAAU,EAAA,SAAA,EAAW,GAAK,EAAA,GAAG,MAAS,GAAA,KAAA;AAE9C,EAAA,MAAM,aAAgB,GAAA,IAAA,CAAK,MAAO,CAAA,KAAA,EAAO,SAAS,CAAA;AAElD,EAAA,uBACG,GAAA,CAAA,IAAA,CAAK,KAAL,EAAA,EAAY,GAAG,IAAA,EAAM,SAAW,EAAA,aAAA,EAAe,GAC7C,EAAA,QAAA,EAAA,CAAC,EAAE,UAAA,uBAEC,IAAA,CAAA,QAAA,EAAA,EAAA,QAAA,EAAA;AAAA,IACC,UAAA,mBAAA,GAAA,CAAC,WAAY,EAAA,EAAA,SAAA,EAAW,MAAO,CAAA,IAAA,EAAM,oBAEpC,GAAA,CAAA,YAAA,EAAA,EAAa,SAAW,EAAA,MAAA,CAAO,IAAM,EAAA,CAAA;AAAA,IAEvC;AAAA,GAAA,EACH,CAEJ,EAAA,CAAA;AAEJ,CAAC;;;;"}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
3
|
import { jsx } from 'react/jsx-runtime';
|
|
4
|
-
import 'react';
|
|
5
4
|
import styles from './RadioButton.module.scss.mjs';
|
|
6
5
|
import clsx from 'clsx';
|
|
7
|
-
import { ClearPropsContext } from '../../../ClearPropsContext/ClearPropsContext.mjs';
|
|
8
6
|
import '../../../../lib/propsContext/propsContext.mjs';
|
|
9
|
-
import { PropsContextProvider } from '../../../../lib/propsContext/PropsContextProvider.mjs';
|
|
7
|
+
import { PropsContextProvider } from '../../../../lib/propsContext/components/PropsContextProvider.mjs';
|
|
10
8
|
import '../../RadioGroup.mjs';
|
|
11
9
|
import { Radio } from '../Radio/Radio.mjs';
|
|
12
10
|
import { flowComponent } from '../../../../lib/componentFactory/flowComponent.mjs';
|
|
@@ -19,11 +17,10 @@ const RadioButton = flowComponent("RadioButton", (props) => {
|
|
|
19
17
|
className: styles.label
|
|
20
18
|
},
|
|
21
19
|
Content: {
|
|
22
|
-
clearPropsContext: true,
|
|
23
20
|
className: styles.content
|
|
24
21
|
}
|
|
25
22
|
};
|
|
26
|
-
return /* @__PURE__ */ jsx(
|
|
23
|
+
return /* @__PURE__ */ jsx(Radio, { ...rest, className: rootClassName, ref, children: /* @__PURE__ */ jsx(PropsContextProvider, { props: propsContext, children }) });
|
|
27
24
|
});
|
|
28
25
|
|
|
29
26
|
export { RadioButton, RadioButton as default };
|