@mittwald/flow-react-components 1.2.0-next.4 → 1.2.0-next.40
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/AGENTS.md +47 -0
- package/MIGRATION.md +212 -11
- package/dist/assets/component-index.json +1 -1
- package/dist/assets/doc-properties.json +1 -1
- package/dist/css/all-layered.css +1 -1
- package/dist/css/all.css +1 -1
- package/dist/js/_virtual/_10.locale.mjs +3 -9
- package/dist/js/_virtual/_11.locale.mjs +9 -3
- package/dist/js/_virtual/_12.locale.mjs +3 -9
- package/dist/js/_virtual/_4.locale.mjs +9 -3
- package/dist/js/_virtual/_5.locale.mjs +3 -21
- package/dist/js/_virtual/_6.locale.mjs +21 -3
- package/dist/js/_virtual/_7.locale.mjs +3 -3
- package/dist/js/_virtual/_8.locale.mjs +3 -3
- package/dist/js/_virtual/_9.locale.mjs +3 -3
- package/dist/js/default.mjs +8 -7
- package/dist/js/packages/components/src/components/Activity/Activity.mjs +16 -5
- package/dist/js/packages/components/src/components/Activity/Activity.mjs.map +1 -1
- package/dist/js/packages/components/src/components/Activity/context.mjs +20 -0
- package/dist/js/packages/components/src/components/Activity/context.mjs.map +1 -0
- package/dist/js/packages/components/src/components/AlertBadge/AlertBadge.mjs +1 -1
- package/dist/js/packages/components/src/components/Autocomplete/Autocomplete.mjs +3 -5
- package/dist/js/packages/components/src/components/Autocomplete/Autocomplete.mjs.map +1 -1
- package/dist/js/packages/components/src/components/Badge/Badge.mjs +21 -2
- package/dist/js/packages/components/src/components/Badge/Badge.mjs.map +1 -1
- package/dist/js/packages/components/src/components/Badge/Badge.module.mjs +3 -1
- package/dist/js/packages/components/src/components/Badge/Badge.module.mjs.map +1 -1
- package/dist/js/packages/components/src/components/Badge/components/ContextualHelpButton/ContextualHelpButton.mjs +25 -0
- package/dist/js/packages/components/src/components/Badge/components/ContextualHelpButton/ContextualHelpButton.mjs.map +1 -0
- package/dist/js/packages/components/src/components/Button/Button.mjs +8 -10
- package/dist/js/packages/components/src/components/Button/Button.mjs.map +1 -1
- package/dist/js/packages/components/src/components/Button/Button.module.mjs +5 -3
- package/dist/js/packages/components/src/components/Button/Button.module.mjs.map +1 -1
- package/dist/js/packages/components/src/components/Calendar/components/RangeCalendar/helpers/useCalendarDateRangePresets.mjs +1 -1
- package/dist/js/packages/components/src/components/CartesianChart/CartesianChart.mjs +34 -26
- package/dist/js/packages/components/src/components/CartesianChart/CartesianChart.mjs.map +1 -1
- package/dist/js/packages/components/src/components/CartesianChart/components/Bar/Bar.mjs +40 -0
- package/dist/js/packages/components/src/components/CartesianChart/components/Bar/Bar.mjs.map +1 -0
- package/dist/js/packages/components/src/components/CartesianChart/components/ChartTooltip/TooltipProgressBar.mjs +1 -1
- package/dist/js/packages/components/src/components/CartesianChart/components/XAxis/XAxis.mjs +13 -2
- package/dist/js/packages/components/src/components/CartesianChart/components/XAxis/XAxis.mjs.map +1 -1
- package/dist/js/packages/components/src/components/CartesianChart/components/YAxis/YAxis.mjs +12 -2
- package/dist/js/packages/components/src/components/CartesianChart/components/YAxis/YAxis.mjs.map +1 -1
- package/dist/js/packages/components/src/components/CartesianChart/context.mjs +11 -0
- package/dist/js/packages/components/src/components/CartesianChart/context.mjs.map +1 -0
- package/dist/js/packages/components/src/components/CartesianChart/types.mjs.map +1 -1
- package/dist/js/packages/components/src/components/CodeBlock/CodeBlock.mjs +1 -1
- package/dist/js/packages/components/src/components/ComboBox/ComboBox.mjs +3 -5
- package/dist/js/packages/components/src/components/ComboBox/ComboBox.mjs.map +1 -1
- package/dist/js/packages/components/src/components/ContextualHelp/components/ContextualHelpTrigger/ContextualHelpTrigger.mjs +1 -1
- package/dist/js/packages/components/src/components/CopyButton/CopyButton.mjs +1 -1
- package/dist/js/packages/components/src/components/DateRangePicker/components/DateRangeInput/DateRangeInput.module.mjs.map +1 -1
- package/dist/js/packages/components/src/components/FileCard/FileCard.mjs +1 -1
- package/dist/js/packages/components/src/components/Label/Label.mjs +1 -1
- package/dist/js/packages/components/src/components/LightBox/LightBox.mjs +1 -1
- package/dist/js/packages/components/src/components/Link/Link.mjs +1 -2
- package/dist/js/packages/components/src/components/Link/Link.mjs.map +1 -1
- package/dist/js/packages/components/src/components/Link/Link.module.mjs +2 -2
- package/dist/js/packages/components/src/components/Link/Link.module.mjs.map +1 -1
- package/dist/js/packages/components/src/components/List/components/Footer/components/ShowNextBatchButton/ShowNextBatchButton.mjs +1 -1
- package/dist/js/packages/components/src/components/List/components/Header/components/ActiveFilters/ActiveFilters.mjs +1 -1
- package/dist/js/packages/components/src/components/List/components/Header/components/AllFiltersModal/AllFiltersModal.mjs +1 -1
- package/dist/js/packages/components/src/components/List/components/Header/components/AllFiltersModal/FilterAccordionDateRange.mjs +1 -1
- package/dist/js/packages/components/src/components/List/components/Header/components/AllFiltersModal/FilterAccordionRadioGroup.mjs +1 -1
- package/dist/js/packages/components/src/components/List/components/Header/components/FilterContextMenu/DateRangeFilterPopover.mjs +1 -1
- package/dist/js/packages/components/src/components/List/components/Header/components/SortingContextMenu/SortingContextMenu.mjs +1 -1
- package/dist/js/packages/components/src/components/List/components/Header/components/ViewModeContextMenu/ViewModeContextMenu.mjs +1 -1
- package/dist/js/packages/components/src/components/List/components/Items/components/Item/Item.mjs +1 -1
- package/dist/js/packages/components/src/components/List/components/Items/components/Item/Item.mjs.map +1 -1
- package/dist/js/packages/components/src/components/List/components/Items/components/Item/Item.module.mjs +3 -1
- package/dist/js/packages/components/src/components/List/components/Items/components/Item/Item.module.mjs.map +1 -1
- package/dist/js/packages/components/src/components/List/components/Items/components/Item/components/AccordionButton.mjs +1 -1
- package/dist/js/packages/components/src/components/List/components/Items/components/Item/components/OptionsButton/OptionsButton.mjs +1 -1
- package/dist/js/packages/components/src/components/List/components/Items/views/GridListItem/GridListItem.mjs +13 -3
- package/dist/js/packages/components/src/components/List/components/Items/views/GridListItem/GridListItem.mjs.map +1 -1
- package/dist/js/packages/components/src/components/List/model/item/ItemView.mjs +7 -0
- package/dist/js/packages/components/src/components/List/model/item/ItemView.mjs.map +1 -1
- package/dist/js/packages/components/src/components/List/views/EmptyView/EmptyView.mjs +1 -1
- package/dist/js/packages/components/src/components/Markdown/Markdown.mjs +8 -1
- package/dist/js/packages/components/src/components/Markdown/Markdown.mjs.map +1 -1
- package/dist/js/packages/components/src/components/Markdown/Markdown.module.mjs.map +1 -1
- package/dist/js/packages/components/src/components/Modal/Modal.mjs +1 -1
- package/dist/js/packages/components/src/components/Modal/Modal.module.mjs.map +1 -1
- package/dist/js/packages/components/src/components/Navigation/Navigation.mjs +9 -0
- package/dist/js/packages/components/src/components/Navigation/Navigation.mjs.map +1 -1
- package/dist/js/packages/components/src/components/Navigation/Navigation.module.mjs.map +1 -1
- package/dist/js/packages/components/src/components/NotificationProvider/NotificationContainer/NotificationContainer.mjs +1 -0
- package/dist/js/packages/components/src/components/NotificationProvider/NotificationContainer/NotificationContainer.mjs.map +1 -1
- package/dist/js/packages/components/src/components/NotificationProvider/NotificationContainer/NotificationContainer.module.mjs.map +1 -1
- package/dist/js/packages/components/src/components/Option/Option.mjs +21 -4
- package/dist/js/packages/components/src/components/Option/Option.mjs.map +1 -1
- package/dist/js/packages/components/src/components/Option/optionsTunnel.mjs +36 -0
- package/dist/js/packages/components/src/components/Option/optionsTunnel.mjs.map +1 -0
- package/dist/js/packages/components/src/components/Overlay/components/OverlayContent.mjs +3 -0
- package/dist/js/packages/components/src/components/Overlay/components/OverlayContent.mjs.map +1 -1
- package/dist/js/packages/components/src/components/PasswordCreationField/components/ValidationResultButton/ValidationResultButton.mjs +1 -1
- package/dist/js/packages/components/src/components/PasswordCreationField/components/ValidationResultEntry/ValidationResultEntry.mjs +1 -1
- package/dist/js/packages/components/src/components/Popover/components/PopoverContent/PopoverContent.mjs +3 -0
- package/dist/js/packages/components/src/components/Popover/components/PopoverContent/PopoverContent.mjs.map +1 -1
- package/dist/js/packages/components/src/components/ProgressBar/components/ProgressBarValue.mjs +1 -1
- package/dist/js/packages/components/src/components/Select/Select.mjs +2 -4
- package/dist/js/packages/components/src/components/Select/Select.mjs.map +1 -1
- package/dist/js/packages/components/src/components/TabNavigation/TabNavigation.mjs +1 -1
- package/dist/js/packages/components/src/components/Tabs/Tabs.mjs +1 -1
- package/dist/js/packages/components/src/components/Tabs/Tabs.mjs.map +1 -1
- package/dist/js/packages/components/src/components/Tabs/components/FallbackTab/FallbackTab.mjs +1 -1
- package/dist/js/packages/components/src/components/Tabs/components/TabList/TabList.mjs.map +1 -1
- package/dist/js/packages/components/src/components/Tooltip/Tooltip.mjs +3 -0
- package/dist/js/packages/components/src/components/Tooltip/Tooltip.mjs.map +1 -1
- package/dist/js/packages/components/src/lib/componentFactory/flowComponent.mjs +1 -0
- package/dist/js/packages/components/src/lib/componentFactory/flowComponent.mjs.map +1 -1
- package/dist/js/packages/components/src/lib/react/remote.mjs +43 -3
- package/dist/js/packages/components/src/lib/react/remote.mjs.map +1 -1
- package/dist/js/packages/components/src/lib/types/props.mjs.map +1 -1
- package/dist/js/packages/components/src/views/ContextualHelpTriggerView.mjs +16 -0
- package/dist/js/packages/components/src/views/ContextualHelpTriggerView.mjs.map +1 -0
- package/dist/js/packages/design-tokens/dist/json-runtime/all-dark.mjs +6 -1
- package/dist/js/packages/design-tokens/dist/json-runtime/all-dark.mjs.map +1 -1
- package/dist/js/packages/design-tokens/dist/json-runtime/all-light.mjs +6 -1
- package/dist/js/packages/design-tokens/dist/json-runtime/all-light.mjs.map +1 -1
- package/dist/types/components/Activity/Activity.d.ts.map +1 -1
- package/dist/types/components/Activity/context.d.ts +12 -0
- package/dist/types/components/Activity/context.d.ts.map +1 -0
- package/dist/types/components/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/dist/types/components/Badge/Badge.d.ts.map +1 -1
- package/dist/types/components/Badge/components/ContextualHelpButton/ContextualHelpButton.d.ts +14 -0
- package/dist/types/components/Badge/components/ContextualHelpButton/ContextualHelpButton.d.ts.map +1 -0
- package/dist/types/components/Badge/components/ContextualHelpButton/index.d.ts +3 -0
- package/dist/types/components/Badge/components/ContextualHelpButton/index.d.ts.map +1 -0
- package/dist/types/components/Button/Button.d.ts.map +1 -1
- package/dist/types/components/CartesianChart/CartesianChart.d.ts +12 -1
- package/dist/types/components/CartesianChart/CartesianChart.d.ts.map +1 -1
- package/dist/types/components/CartesianChart/components/Bar/Bar.d.ts +19 -0
- package/dist/types/components/CartesianChart/components/Bar/Bar.d.ts.map +1 -0
- package/dist/types/components/CartesianChart/components/Bar/index.d.ts +3 -0
- package/dist/types/components/CartesianChart/components/Bar/index.d.ts.map +1 -0
- package/dist/types/components/CartesianChart/components/Bar/view.d.ts +8 -0
- package/dist/types/components/CartesianChart/components/Bar/view.d.ts.map +1 -0
- package/dist/types/components/CartesianChart/components/XAxis/XAxis.d.ts +10 -1
- package/dist/types/components/CartesianChart/components/XAxis/XAxis.d.ts.map +1 -1
- package/dist/types/components/CartesianChart/components/YAxis/YAxis.d.ts +10 -1
- package/dist/types/components/CartesianChart/components/YAxis/YAxis.d.ts.map +1 -1
- package/dist/types/components/CartesianChart/context.d.ts +8 -0
- package/dist/types/components/CartesianChart/context.d.ts.map +1 -0
- package/dist/types/components/CartesianChart/index.d.ts +1 -0
- package/dist/types/components/CartesianChart/index.d.ts.map +1 -1
- package/dist/types/components/CartesianChart/types.d.ts +6 -0
- package/dist/types/components/CartesianChart/types.d.ts.map +1 -1
- package/dist/types/components/ComboBox/ComboBox.d.ts.map +1 -1
- package/dist/types/components/Link/Link.d.ts.map +1 -1
- package/dist/types/components/List/components/Items/components/Item/Item.d.ts.map +1 -1
- package/dist/types/components/List/components/Items/views/GridListItem/GridListItem.d.ts.map +1 -1
- package/dist/types/components/List/model/item/ItemView.d.ts +5 -0
- package/dist/types/components/List/model/item/ItemView.d.ts.map +1 -1
- package/dist/types/components/Markdown/Markdown.d.ts.map +1 -1
- package/dist/types/components/Modal/components/ModalTrigger/ModalTrigger.d.ts +1 -0
- package/dist/types/components/Modal/components/ModalTrigger/ModalTrigger.d.ts.map +1 -1
- package/dist/types/components/Navigation/Navigation.d.ts.map +1 -1
- package/dist/types/components/Option/Option.d.ts +17 -0
- package/dist/types/components/Option/Option.d.ts.map +1 -1
- package/dist/types/components/Option/optionsTunnel.d.ts +22 -0
- package/dist/types/components/Option/optionsTunnel.d.ts.map +1 -0
- package/dist/types/components/Overlay/components/OverlayContent.d.ts.map +1 -1
- package/dist/types/components/Popover/components/PopoverContent/PopoverContent.d.ts.map +1 -1
- package/dist/types/components/Select/Select.d.ts.map +1 -1
- package/dist/types/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/types/components/Tabs/components/TabList/TabList.d.ts +1 -1
- package/dist/types/components/Tabs/components/TabList/TabList.d.ts.map +1 -1
- package/dist/types/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/types/lib/componentFactory/flowComponent.d.ts.map +1 -1
- package/dist/types/lib/react/remote.d.ts +31 -0
- package/dist/types/lib/react/remote.d.ts.map +1 -1
- package/dist/types/lib/theming/hooks/useDesignTokens.d.ts +6 -0
- package/dist/types/lib/theming/hooks/useDesignTokens.d.ts.map +1 -1
- package/dist/types/lib/types/props.d.ts.map +1 -1
- package/dist/types/views/BarView.d.ts +5 -0
- package/dist/types/views/BarView.d.ts.map +1 -0
- package/package.json +14 -10
- package/dist/types/components/AccentBox/stories/Default.stories.d.ts +0 -12
- package/dist/types/components/AccentBox/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/Accordion/stories/Default.stories.d.ts +0 -8
- package/dist/types/components/Accordion/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/Action/Action.browser.test.d.ts +0 -2
- package/dist/types/components/Action/Action.browser.test.d.ts.map +0 -1
- package/dist/types/components/Action/models/ActionExecutionBatch.browser.test.d.ts +0 -2
- package/dist/types/components/Action/models/ActionExecutionBatch.browser.test.d.ts.map +0 -1
- package/dist/types/components/Action/stories/Default.stories.d.ts +0 -17
- package/dist/types/components/Action/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/Action/stories/EdgeCases.stories.d.ts +0 -7
- package/dist/types/components/Action/stories/EdgeCases.stories.d.ts.map +0 -1
- package/dist/types/components/ActionGroup/stories/Default.stories.d.ts +0 -15
- package/dist/types/components/ActionGroup/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/Activity/Activity.browser.test.d.ts +0 -2
- package/dist/types/components/Activity/Activity.browser.test.d.ts.map +0 -1
- package/dist/types/components/Alert/stories/Default.stories.d.ts +0 -8
- package/dist/types/components/Alert/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/AlertBadge/stories/Default.stories.d.ts +0 -7
- package/dist/types/components/AlertBadge/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/AlertIcon/stories/Default.stories.d.ts +0 -7
- package/dist/types/components/AlertIcon/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/AlertText/stories/Default.stories.d.ts +0 -9
- package/dist/types/components/AlertText/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/Align/Align.browser.test.d.ts +0 -2
- package/dist/types/components/Align/Align.browser.test.d.ts.map +0 -1
- package/dist/types/components/Autocomplete/stories/Default.stories.d.ts +0 -9
- package/dist/types/components/Autocomplete/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/Avatar/Avatar.browser.test.d.ts +0 -2
- package/dist/types/components/Avatar/Avatar.browser.test.d.ts.map +0 -1
- package/dist/types/components/Avatar/stories/Default.stories.d.ts +0 -11
- package/dist/types/components/Avatar/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/AvatarStack/stories/Default.stories.d.ts +0 -9
- package/dist/types/components/AvatarStack/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/Badge/stories/Default.stories.d.ts +0 -10
- package/dist/types/components/Badge/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/BigNumber/stories/Default.stories.d.ts +0 -8
- package/dist/types/components/BigNumber/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/Breadcrumb/stories/Default.stories.d.ts +0 -7
- package/dist/types/components/Breadcrumb/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/Button/Button.browser.test.d.ts +0 -2
- package/dist/types/components/Button/Button.browser.test.d.ts.map +0 -1
- package/dist/types/components/Button/stories/Default.stories.d.ts +0 -10
- package/dist/types/components/Button/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/CartesianChart/stories/Default.stories.d.ts +0 -11
- package/dist/types/components/CartesianChart/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/Chat/stories/Default.stories.d.ts +0 -10
- package/dist/types/components/Chat/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/Checkbox/stories/Default.stories.d.ts +0 -8
- package/dist/types/components/Checkbox/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/CheckboxButton/stories/Default.stories.d.ts +0 -9
- package/dist/types/components/CheckboxButton/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/CheckboxGroup/stories/Default.stories.d.ts +0 -11
- package/dist/types/components/CheckboxGroup/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/CodeBlock/stories/Default.stories.d.ts +0 -9
- package/dist/types/components/CodeBlock/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/CodeEditor/CodeEditor.browser.test.d.ts +0 -2
- package/dist/types/components/CodeEditor/CodeEditor.browser.test.d.ts.map +0 -1
- package/dist/types/components/CodeEditor/stories/Default.stories.d.ts +0 -10
- package/dist/types/components/CodeEditor/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/Color/stories/Default.stories.d.ts +0 -8
- package/dist/types/components/Color/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/ColumnLayout/lib/getColumns.test.d.ts +0 -2
- package/dist/types/components/ColumnLayout/lib/getColumns.test.d.ts.map +0 -1
- package/dist/types/components/ColumnLayout/stories/Default.stories.d.ts +0 -9
- package/dist/types/components/ColumnLayout/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/Combine/stories/Default.stories.d.ts +0 -10
- package/dist/types/components/Combine/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/Combine/stories/InputButton.stories.d.ts +0 -12
- package/dist/types/components/Combine/stories/InputButton.stories.d.ts.map +0 -1
- package/dist/types/components/ComboBox/stories/Default.stories.d.ts +0 -14
- package/dist/types/components/ComboBox/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/ComboBox/stories/FileComboBox.stories.d.ts +0 -7
- package/dist/types/components/ComboBox/stories/FileComboBox.stories.d.ts.map +0 -1
- package/dist/types/components/ComponentDefaultsProvider/ComponentDefaultsProvider.test.d.ts +0 -2
- package/dist/types/components/ComponentDefaultsProvider/ComponentDefaultsProvider.test.d.ts.map +0 -1
- package/dist/types/components/ComponentUsageProvider/ComponentUsageProvider.browser.test.d.ts +0 -2
- package/dist/types/components/ComponentUsageProvider/ComponentUsageProvider.browser.test.d.ts.map +0 -1
- package/dist/types/components/Content/stories/Default.stories.d.ts +0 -7
- package/dist/types/components/Content/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/ContextMenu/ContextMenu.browser.test.d.ts +0 -2
- package/dist/types/components/ContextMenu/ContextMenu.browser.test.d.ts.map +0 -1
- package/dist/types/components/ContextMenu/stories/Default.stories.d.ts +0 -18
- package/dist/types/components/ContextMenu/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/ContextMenu/stories/EdgeCases.stories.d.ts +0 -8
- package/dist/types/components/ContextMenu/stories/EdgeCases.stories.d.ts.map +0 -1
- package/dist/types/components/ContextualHelp/ContextualHelp.browser.test.d.ts +0 -2
- package/dist/types/components/ContextualHelp/ContextualHelp.browser.test.d.ts.map +0 -1
- package/dist/types/components/ContextualHelp/stories/Default.stories.d.ts +0 -7
- package/dist/types/components/ContextualHelp/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/CopyButton/stories/Default.stories.d.ts +0 -7
- package/dist/types/components/CopyButton/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/CounterBadge/stories/Default.stories.d.ts +0 -10
- package/dist/types/components/CounterBadge/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/DatePicker/stories/Default.stories.d.ts +0 -10
- package/dist/types/components/DatePicker/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/DateRangePicker/stories/Default.stories.d.ts +0 -11
- package/dist/types/components/DateRangePicker/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/DeprecationWarningProvider/DeprecationWarningProvider.test.d.ts +0 -2
- package/dist/types/components/DeprecationWarningProvider/DeprecationWarningProvider.test.d.ts.map +0 -1
- package/dist/types/components/DonutChart/stories/Default.stories.d.ts +0 -10
- package/dist/types/components/DonutChart/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/EmulatedBoldText/stories/Default.stories.d.ts +0 -7
- package/dist/types/components/EmulatedBoldText/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/FileCard/stories/Default.stories.d.ts +0 -15
- package/dist/types/components/FileCard/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/FileCard/stories/EdgeCases.stories.d.ts +0 -8
- package/dist/types/components/FileCard/stories/EdgeCases.stories.d.ts.map +0 -1
- package/dist/types/components/FileCardList/stories/Default.stories.d.ts +0 -7
- package/dist/types/components/FileCardList/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/FileDropZone/stories/Default.stories.d.ts +0 -10
- package/dist/types/components/FileDropZone/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/FileField/FileField.browser.test.d.ts +0 -2
- package/dist/types/components/FileField/FileField.browser.test.d.ts.map +0 -1
- package/dist/types/components/FileField/stories/Default.stories.d.ts +0 -11
- package/dist/types/components/FileField/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/Flex/stories/Default.stories.d.ts +0 -7
- package/dist/types/components/Flex/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/Header/stories/Default.stories.d.ts +0 -7
- package/dist/types/components/Header/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/HeaderNavigation/stories/Default.stories.d.ts +0 -7
- package/dist/types/components/HeaderNavigation/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/Heading/stories/Default.stories.d.ts +0 -10
- package/dist/types/components/Heading/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/Icon/stories/Default.stories.d.ts +0 -11
- package/dist/types/components/Icon/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/IllustratedMessage/stories/Default.stories.d.ts +0 -9
- package/dist/types/components/IllustratedMessage/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/Image/stories/Default.stories.d.ts +0 -8
- package/dist/types/components/Image/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/ImageCropper/stories/Default.stories.d.ts +0 -9
- package/dist/types/components/ImageCropper/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/Initials/lib/getColorFromInitials.test.d.ts +0 -2
- package/dist/types/components/Initials/lib/getColorFromInitials.test.d.ts.map +0 -1
- package/dist/types/components/Initials/lib/getInitialsFromString.test.d.ts +0 -2
- package/dist/types/components/Initials/lib/getInitialsFromString.test.d.ts.map +0 -1
- package/dist/types/components/Initials/stories/Default.stories.d.ts +0 -9
- package/dist/types/components/Initials/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/InlineCode/stories/Default.stories.d.ts +0 -7
- package/dist/types/components/InlineCode/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/Kbd/stories/Default.stories.d.ts +0 -8
- package/dist/types/components/Kbd/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/Label/stories/Default.stories.d.ts +0 -9
- package/dist/types/components/Label/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/LabeledValue/stories/Default.stories.d.ts +0 -11
- package/dist/types/components/LabeledValue/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/LayoutCard/stories/Default.stories.d.ts +0 -9
- package/dist/types/components/LayoutCard/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/Legend/stories/Default.stories.d.ts +0 -7
- package/dist/types/components/Legend/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/LightBox/stories/Default.stories.d.ts +0 -12
- package/dist/types/components/LightBox/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/Link/Link.browser.test.d.ts +0 -2
- package/dist/types/components/Link/Link.browser.test.d.ts.map +0 -1
- package/dist/types/components/Link/stories/Default.stories.d.ts +0 -12
- package/dist/types/components/Link/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/List/List.browser.test.d.ts +0 -2
- package/dist/types/components/List/List.browser.test.d.ts.map +0 -1
- package/dist/types/components/List/stories/Default.stories.d.ts +0 -16
- package/dist/types/components/List/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/List/stories/EdgeCases.stories.d.ts +0 -8
- package/dist/types/components/List/stories/EdgeCases.stories.d.ts.map +0 -1
- package/dist/types/components/List/stories/ListItem.stories.d.ts +0 -11
- package/dist/types/components/List/stories/ListItem.stories.d.ts.map +0 -1
- package/dist/types/components/LoadingSpinner/stories/Default.stories.d.ts +0 -7
- package/dist/types/components/LoadingSpinner/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/Markdown/lib/getHeadingLevelWithOffset.test.d.ts +0 -2
- package/dist/types/components/Markdown/lib/getHeadingLevelWithOffset.test.d.ts.map +0 -1
- package/dist/types/components/Markdown/stories/Default.stories.d.ts +0 -8
- package/dist/types/components/Markdown/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/MarkdownEditor/MarkdownEditor.browser.test.d.ts +0 -2
- package/dist/types/components/MarkdownEditor/MarkdownEditor.browser.test.d.ts.map +0 -1
- package/dist/types/components/MarkdownEditor/lib/modifyValueByMarkdownSyntax.test.d.ts +0 -2
- package/dist/types/components/MarkdownEditor/lib/modifyValueByMarkdownSyntax.test.d.ts.map +0 -1
- package/dist/types/components/MarkdownEditor/lib/modifyValueByType.test.d.ts +0 -2
- package/dist/types/components/MarkdownEditor/lib/modifyValueByType.test.d.ts.map +0 -1
- package/dist/types/components/MarkdownEditor/stories/Default.stories.d.ts +0 -14
- package/dist/types/components/MarkdownEditor/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/Message/stories/Default.stories.d.ts +0 -10
- package/dist/types/components/Message/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/MessageThread/stories/Default.stories.d.ts +0 -7
- package/dist/types/components/MessageThread/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/Modal/Modal.browser.test.d.ts +0 -2
- package/dist/types/components/Modal/Modal.browser.test.d.ts.map +0 -1
- package/dist/types/components/Modal/stories/Default.stories.d.ts +0 -14
- package/dist/types/components/Modal/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/Modal/stories/EdgeCases.stories.d.ts +0 -7
- package/dist/types/components/Modal/stories/EdgeCases.stories.d.ts.map +0 -1
- package/dist/types/components/Navigation/stories/Default.stories.d.ts +0 -9
- package/dist/types/components/Navigation/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/Notification/stories/Default.stories.d.ts +0 -8
- package/dist/types/components/Notification/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/NotificationProvider/stories/Default.stories.d.ts +0 -11
- package/dist/types/components/NotificationProvider/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/NumberField/stories/Default.stories.d.ts +0 -12
- package/dist/types/components/NumberField/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/Overlay/Overlay.browser.test.d.ts +0 -2
- package/dist/types/components/Overlay/Overlay.browser.test.d.ts.map +0 -1
- package/dist/types/components/OverlayTrigger/OverlayTrigger.browser.test.d.ts +0 -2
- package/dist/types/components/OverlayTrigger/OverlayTrigger.browser.test.d.ts.map +0 -1
- package/dist/types/components/PasswordCreationField/PasswordCreationField.browser.test.d.ts +0 -1
- package/dist/types/components/PasswordCreationField/PasswordCreationField.browser.test.d.ts.map +0 -1
- package/dist/types/components/PasswordCreationField/stories/Default.stories.d.ts +0 -10
- package/dist/types/components/PasswordCreationField/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/Popover/stories/Default.stories.d.ts +0 -9
- package/dist/types/components/Popover/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/Popover/stories/EdgeCases.stories.d.ts +0 -7
- package/dist/types/components/Popover/stories/EdgeCases.stories.d.ts.map +0 -1
- package/dist/types/components/ProgressBar/stories/Default.stories.d.ts +0 -12
- package/dist/types/components/ProgressBar/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/RadioGroup/stories/Default.stories.d.ts +0 -13
- package/dist/types/components/RadioGroup/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/Rating/Rating.browser.test.d.ts +0 -2
- package/dist/types/components/Rating/Rating.browser.test.d.ts.map +0 -1
- package/dist/types/components/Rating/stories/Default.stories.d.ts +0 -12
- package/dist/types/components/Rating/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/SearchField/stories/Default.stories.d.ts +0 -10
- package/dist/types/components/SearchField/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/Section/stories/Default.stories.d.ts +0 -9
- package/dist/types/components/Section/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/Section/stories/EdgeCases.stories.d.ts +0 -12
- package/dist/types/components/Section/stories/EdgeCases.stories.d.ts.map +0 -1
- package/dist/types/components/SegmentedControl/stories/Default.stories.d.ts +0 -10
- package/dist/types/components/SegmentedControl/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/Select/stories/Default.stories.d.ts +0 -14
- package/dist/types/components/Select/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/Select/stories/EdgeCases.stories.d.ts +0 -8
- package/dist/types/components/Select/stories/EdgeCases.stories.d.ts.map +0 -1
- package/dist/types/components/Separator/stories/Default.stories.d.ts +0 -7
- package/dist/types/components/Separator/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/SettingsProvider/SettingsProvider.browser.test.d.ts +0 -2
- package/dist/types/components/SettingsProvider/SettingsProvider.browser.test.d.ts.map +0 -1
- package/dist/types/components/SettingsProvider/models/SettingsStore.test.d.ts +0 -2
- package/dist/types/components/SettingsProvider/models/SettingsStore.test.d.ts.map +0 -1
- package/dist/types/components/Skeleton/stories/Default.stories.d.ts +0 -9
- package/dist/types/components/Skeleton/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/SkeletonText/stories/Default.stories.d.ts +0 -10
- package/dist/types/components/SkeletonText/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/Slider/stories/Default.stories.d.ts +0 -9
- package/dist/types/components/Slider/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/Switch/stories/Default.stories.d.ts +0 -7
- package/dist/types/components/Switch/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/TabNavigation/TabNavigation.browser.test.d.ts +0 -2
- package/dist/types/components/TabNavigation/TabNavigation.browser.test.d.ts.map +0 -1
- package/dist/types/components/TabNavigation/lib/getVisibleItemCount.test.d.ts +0 -2
- package/dist/types/components/TabNavigation/lib/getVisibleItemCount.test.d.ts.map +0 -1
- package/dist/types/components/TabNavigation/stories/Default.stories.d.ts +0 -7
- package/dist/types/components/TabNavigation/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/Table/stories/Default.stories.d.ts +0 -11
- package/dist/types/components/Table/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/Tabs/Tabs.browser.test.d.ts +0 -2
- package/dist/types/components/Tabs/Tabs.browser.test.d.ts.map +0 -1
- package/dist/types/components/Tabs/stories/Default.stories.d.ts +0 -11
- package/dist/types/components/Tabs/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/Text/stories/Default.stories.d.ts +0 -7
- package/dist/types/components/Text/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/TextArea/TextArea.browser.test.d.ts +0 -2
- package/dist/types/components/TextArea/TextArea.browser.test.d.ts.map +0 -1
- package/dist/types/components/TextArea/stories/Default.stories.d.ts +0 -13
- package/dist/types/components/TextArea/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/TextField/TextField.browser.test.d.ts +0 -2
- package/dist/types/components/TextField/TextField.browser.test.d.ts.map +0 -1
- package/dist/types/components/TextField/stories/Default.stories.d.ts +0 -14
- package/dist/types/components/TextField/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/TimeField/stories/Default.stories.d.ts +0 -11
- package/dist/types/components/TimeField/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/Tooltip/stories/Default.stories.d.ts +0 -7
- package/dist/types/components/Tooltip/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/Tooltip/stories/EdgeCases.stories.d.ts +0 -7
- package/dist/types/components/Tooltip/stories/EdgeCases.stories.d.ts.map +0 -1
- package/dist/types/components/TranslationProvider/stories/Default.stories.d.ts +0 -9
- package/dist/types/components/TranslationProvider/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/components/Truncate/stories/Default.stories.d.ts +0 -11
- package/dist/types/components/Truncate/stories/Default.stories.d.ts.map +0 -1
- package/dist/types/integrations/react-hook-form/components/Field/Field.browser.test.d.ts +0 -2
- package/dist/types/integrations/react-hook-form/components/Field/Field.browser.test.d.ts.map +0 -1
- package/dist/types/integrations/react-hook-form/components/Field/lib/debounceValidate.test.d.ts +0 -2
- package/dist/types/integrations/react-hook-form/components/Field/lib/debounceValidate.test.d.ts.map +0 -1
- package/dist/types/integrations/react-hook-form/components/Field/stories/Autocomplete.stories.d.ts +0 -10
- package/dist/types/integrations/react-hook-form/components/Field/stories/Autocomplete.stories.d.ts.map +0 -1
- package/dist/types/integrations/react-hook-form/components/Field/stories/Checkbox.stories.d.ts +0 -9
- package/dist/types/integrations/react-hook-form/components/Field/stories/Checkbox.stories.d.ts.map +0 -1
- package/dist/types/integrations/react-hook-form/components/Field/stories/CheckboxButton.stories.d.ts +0 -9
- package/dist/types/integrations/react-hook-form/components/Field/stories/CheckboxButton.stories.d.ts.map +0 -1
- package/dist/types/integrations/react-hook-form/components/Field/stories/CheckboxGroup.stories.d.ts +0 -9
- package/dist/types/integrations/react-hook-form/components/Field/stories/CheckboxGroup.stories.d.ts.map +0 -1
- package/dist/types/integrations/react-hook-form/components/Field/stories/CodeEditor.stories.d.ts +0 -9
- package/dist/types/integrations/react-hook-form/components/Field/stories/CodeEditor.stories.d.ts.map +0 -1
- package/dist/types/integrations/react-hook-form/components/Field/stories/ComboBox.stories.d.ts +0 -9
- package/dist/types/integrations/react-hook-form/components/Field/stories/ComboBox.stories.d.ts.map +0 -1
- package/dist/types/integrations/react-hook-form/components/Field/stories/DatePicker.stories.d.ts +0 -9
- package/dist/types/integrations/react-hook-form/components/Field/stories/DatePicker.stories.d.ts.map +0 -1
- package/dist/types/integrations/react-hook-form/components/Field/stories/DateRangePicker.stories.d.ts +0 -9
- package/dist/types/integrations/react-hook-form/components/Field/stories/DateRangePicker.stories.d.ts.map +0 -1
- package/dist/types/integrations/react-hook-form/components/Field/stories/FileField.stories.d.ts +0 -9
- package/dist/types/integrations/react-hook-form/components/Field/stories/FileField.stories.d.ts.map +0 -1
- package/dist/types/integrations/react-hook-form/components/Field/stories/MarkdownEditor.stories.d.ts +0 -9
- package/dist/types/integrations/react-hook-form/components/Field/stories/MarkdownEditor.stories.d.ts.map +0 -1
- package/dist/types/integrations/react-hook-form/components/Field/stories/NumberField.stories.d.ts +0 -9
- package/dist/types/integrations/react-hook-form/components/Field/stories/NumberField.stories.d.ts.map +0 -1
- package/dist/types/integrations/react-hook-form/components/Field/stories/PasswordCreationField.stories.d.ts +0 -10
- package/dist/types/integrations/react-hook-form/components/Field/stories/PasswordCreationField.stories.d.ts.map +0 -1
- package/dist/types/integrations/react-hook-form/components/Field/stories/RadioGroup.stories.d.ts +0 -9
- package/dist/types/integrations/react-hook-form/components/Field/stories/RadioGroup.stories.d.ts.map +0 -1
- package/dist/types/integrations/react-hook-form/components/Field/stories/SearchField.stories.d.ts +0 -9
- package/dist/types/integrations/react-hook-form/components/Field/stories/SearchField.stories.d.ts.map +0 -1
- package/dist/types/integrations/react-hook-form/components/Field/stories/SegmentedControl.stories.d.ts +0 -9
- package/dist/types/integrations/react-hook-form/components/Field/stories/SegmentedControl.stories.d.ts.map +0 -1
- package/dist/types/integrations/react-hook-form/components/Field/stories/Select.stories.d.ts +0 -9
- package/dist/types/integrations/react-hook-form/components/Field/stories/Select.stories.d.ts.map +0 -1
- package/dist/types/integrations/react-hook-form/components/Field/stories/Slider.stories.d.ts +0 -9
- package/dist/types/integrations/react-hook-form/components/Field/stories/Slider.stories.d.ts.map +0 -1
- package/dist/types/integrations/react-hook-form/components/Field/stories/Switch.stories.d.ts +0 -9
- package/dist/types/integrations/react-hook-form/components/Field/stories/Switch.stories.d.ts.map +0 -1
- package/dist/types/integrations/react-hook-form/components/Field/stories/TextArea.stories.d.ts +0 -9
- package/dist/types/integrations/react-hook-form/components/Field/stories/TextArea.stories.d.ts.map +0 -1
- package/dist/types/integrations/react-hook-form/components/Field/stories/TextField.stories.d.ts +0 -10
- package/dist/types/integrations/react-hook-form/components/Field/stories/TextField.stories.d.ts.map +0 -1
- package/dist/types/integrations/react-hook-form/components/Field/stories/TimeField.stories.d.ts +0 -9
- package/dist/types/integrations/react-hook-form/components/Field/stories/TimeField.stories.d.ts.map +0 -1
- package/dist/types/integrations/react-hook-form/components/Form/Form.browser.test.d.ts +0 -2
- package/dist/types/integrations/react-hook-form/components/Form/Form.browser.test.d.ts.map +0 -1
- package/dist/types/integrations/react-hook-form/components/Form/stories/Form.stories.d.ts +0 -13
- package/dist/types/integrations/react-hook-form/components/Form/stories/Form.stories.d.ts.map +0 -1
- package/dist/types/integrations/react-hook-form/components/ResetButton/ResetButton.browser.test.d.ts +0 -2
- package/dist/types/integrations/react-hook-form/components/ResetButton/ResetButton.browser.test.d.ts.map +0 -1
- package/dist/types/integrations/react-hook-form/components/SubmitButton/SubmitButton.browser.test.d.ts +0 -2
- package/dist/types/integrations/react-hook-form/components/SubmitButton/SubmitButton.browser.test.d.ts.map +0 -1
- package/dist/types/lib/componentFactory/flowComponent.browser.test.d.ts +0 -2
- package/dist/types/lib/componentFactory/flowComponent.browser.test.d.ts.map +0 -1
- package/dist/types/lib/controller/overlay/useOverlayController.browser.test.d.ts +0 -2
- package/dist/types/lib/controller/overlay/useOverlayController.browser.test.d.ts.map +0 -1
- package/dist/types/lib/dom/createFrameResizeObserver.browser.test.d.ts +0 -2
- package/dist/types/lib/dom/createFrameResizeObserver.browser.test.d.ts.map +0 -1
- package/dist/types/lib/hooks/dom/useKeepBrowserExtensionsInteractive.browser.test.d.ts +0 -2
- package/dist/types/lib/hooks/dom/useKeepBrowserExtensionsInteractive.browser.test.d.ts.map +0 -1
- package/dist/types/lib/hooks/dom/useVirtualKeyboardVisible.test.d.ts +0 -2
- package/dist/types/lib/hooks/dom/useVirtualKeyboardVisible.test.d.ts.map +0 -1
- package/dist/types/lib/hooks/useProps.browser.test.d.ts +0 -2
- package/dist/types/lib/hooks/useProps.browser.test.d.ts.map +0 -1
- package/dist/types/lib/promises/callFunctionsInOrder.test.d.ts +0 -2
- package/dist/types/lib/promises/callFunctionsInOrder.test.d.ts.map +0 -1
- package/dist/types/lib/propsContext/dynamicProps/resolveDynamicProps.test.d.ts +0 -2
- package/dist/types/lib/propsContext/dynamicProps/resolveDynamicProps.test.d.ts.map +0 -1
- package/dist/types/lib/propsContext/mergePropsContext.test.d.ts +0 -2
- package/dist/types/lib/propsContext/mergePropsContext.test.d.ts.map +0 -1
- package/dist/types/lib/react/components/Render/Render.browser.test.d.ts +0 -2
- package/dist/types/lib/react/components/Render/Render.browser.test.d.ts.map +0 -1
- package/dist/types/lib/react/deepFindOfType.test.d.ts +0 -2
- package/dist/types/lib/react/deepFindOfType.test.d.ts.map +0 -1
- package/dist/types/styles/styles.browser.test.d.ts +0 -2
- package/dist/types/styles/styles.browser.test.d.ts.map +0 -1
- package/dist/types/tests/layered/CodeEditor.browser.test.d.ts +0 -2
- package/dist/types/tests/layered/CodeEditor.browser.test.d.ts.map +0 -1
- package/dist/types/tests/layered/Icon.browser.test.d.ts +0 -2
- package/dist/types/tests/layered/Icon.browser.test.d.ts.map +0 -1
- package/dist/types/tests/layered/ImageCropper.browser.test.d.ts +0 -2
- package/dist/types/tests/layered/ImageCropper.browser.test.d.ts.map +0 -1
|
@@ -3,12 +3,11 @@
|
|
|
3
3
|
import { PropsContextProvider } from "../../lib/propsContext/components/PropsContextProvider.mjs";
|
|
4
4
|
import { flowComponent } from "../../lib/componentFactory/flowComponent.mjs";
|
|
5
5
|
import Button_module_default from "./Button.module.mjs";
|
|
6
|
-
import {
|
|
6
|
+
import { containsTextChild } from "../../lib/react/remote.mjs";
|
|
7
7
|
import { useWarnDeprecation } from "../DeprecationWarningProvider/DeprecationWarningProvider.mjs";
|
|
8
8
|
import { IconFailed } from "../Icon/components/icons/IconFailed.mjs";
|
|
9
9
|
import { IconSucceeded } from "../Icon/components/icons/IconSucceeded.mjs";
|
|
10
10
|
import { Wrap } from "../Wrap/Wrap.mjs";
|
|
11
|
-
import { Text } from "../Text/Text.mjs";
|
|
12
11
|
import { LoadingSpinner } from "../LoadingSpinner/LoadingSpinner.mjs";
|
|
13
12
|
import { useAriaAnnounceActionState } from "../Action/lib/ariaLive.mjs";
|
|
14
13
|
import clsx from "clsx";
|
|
@@ -44,6 +43,11 @@ var Button = flowComponent("Button", (props) => {
|
|
|
44
43
|
const { color: colorFromProps = "primary", variant = "solid", children, className, size = "m", isPending, isSucceeded, isFailed, "aria-disabled": ariaDisabled, ref, slot: ignoredSlotProp, ariaSlot: slot, unstyled, isReadOnly, elementType, ...restProps } = props;
|
|
45
44
|
if (colorFromProps === "accent") warnDeprecation("The color 'accent' is deprecated and will be removed in a future release. Use 'success' instead.");
|
|
46
45
|
const color = colorFromProps === "accent" ? "success" : colorFromProps;
|
|
46
|
+
/**
|
|
47
|
+
* A string child renders no element the CSS could match, so the button itself
|
|
48
|
+
* carries the marker. An explicit `Text` child is matched by `:has(.text)`.
|
|
49
|
+
*/
|
|
50
|
+
const hasText = containsTextChild(children);
|
|
47
51
|
const rootClassName = unstyled ? className : clsx(
|
|
48
52
|
Button_module_default.button,
|
|
49
53
|
isPending && Button_module_default.isPending,
|
|
@@ -57,6 +61,7 @@ var Button = flowComponent("Button", (props) => {
|
|
|
57
61
|
* by now, so this Button will be visually disabled via CSS.
|
|
58
62
|
*/
|
|
59
63
|
ariaDisabled && Button_module_default.ariaDisabled,
|
|
64
|
+
hasText && Button_module_default.hasText,
|
|
60
65
|
className
|
|
61
66
|
);
|
|
62
67
|
useAriaAnnounceActionState(isPending ? "isPending" : isSucceeded ? "isSucceeded" : isFailed ? "isFailed" : "isIdle");
|
|
@@ -83,20 +88,13 @@ var Button = flowComponent("Button", (props) => {
|
|
|
83
88
|
size,
|
|
84
89
|
className: Button_module_default.stateIcon
|
|
85
90
|
}) : void 0;
|
|
86
|
-
const isStringContent = extractTextFromFirstChild(children) !== void 0;
|
|
87
91
|
const content = /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(PropsContextProvider, {
|
|
88
92
|
props: propsContext,
|
|
89
93
|
children: /* @__PURE__ */ jsx(Wrap, {
|
|
90
94
|
if: !unstyled,
|
|
91
95
|
children: /* @__PURE__ */ jsx("span", {
|
|
92
96
|
className: Button_module_default.content,
|
|
93
|
-
children
|
|
94
|
-
if: isStringContent,
|
|
95
|
-
children: /* @__PURE__ */ jsx(Text, {
|
|
96
|
-
className: Button_module_default.text,
|
|
97
|
-
children
|
|
98
|
-
})
|
|
99
|
-
})
|
|
97
|
+
children
|
|
100
98
|
})
|
|
101
99
|
})
|
|
102
100
|
}), stateIcon] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.mjs","names":[],"sources":["../../../../../../../src/components/Button/Button.tsx"],"sourcesContent":["import type { PropsWithChildren } from \"react\";\nimport styles from \"./Button.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 { IconFailed, IconSucceeded } from \"@/components/Icon/components/icons\";\nimport { Wrap } from \"@/components/Wrap\";\nimport
|
|
1
|
+
{"version":3,"file":"Button.mjs","names":[],"sources":["../../../../../../../src/components/Button/Button.tsx"],"sourcesContent":["import type { PropsWithChildren } from \"react\";\nimport styles from \"./Button.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 { IconFailed, IconSucceeded } from \"@/components/Icon/components/icons\";\nimport { Wrap } from \"@/components/Wrap\";\nimport type { FlowComponentProps } from \"@/lib/componentFactory/flowComponent\";\nimport { flowComponent } from \"@/lib/componentFactory/flowComponent\";\nimport LoadingSpinner from \"@/components/LoadingSpinner/LoadingSpinner\";\nimport { useAriaAnnounceActionState } from \"@/components/Action/lib/ariaLive\";\nimport { containsTextChild } from \"@/lib/react/remote\";\nimport type { AlphaColor } from \"@/lib/types/props\";\nimport { filterDOMProps } from \"@react-aria/utils\";\nimport { useWarnDeprecation } from \"@/components/DeprecationWarningProvider\";\n\nexport interface ButtonProps\n extends\n PropsWithChildren<Aria.ButtonProps>,\n FlowComponentProps<HTMLButtonElement> {\n /** Slot for button placement in action groups. */\n slot?: string;\n /**\n * The color of the button.\n *\n * @default \"primary\"\n * @deprecatedValues accent\n */\n color?:\n \"primary\" | \"success\" | \"secondary\" | \"danger\" | AlphaColor | \"accent\";\n /** The visual variant of the button. @default \"solid\" */\n variant?: \"plain\" | \"solid\" | \"soft\" | \"outline\";\n /** The size of the button. @default \"m\" */\n size?: \"m\" | \"s\";\n /** Disables button but keeps it focusable. */\n \"aria-disabled\"?: boolean;\n /** Whether the button is in a pending state. */\n isPending?: boolean;\n /** Whether the button is in a succeeded state. */\n isSucceeded?: boolean;\n /** Whether the button is in a failed state. */\n isFailed?: boolean;\n /** Whether the button is in a read only state. */\n isReadOnly?: boolean;\n /** @internal */\n unstyled?: boolean;\n /** @internal */\n ariaSlot?: string | null;\n /** @internal */\n elementType?: \"button\" | \"span\";\n}\n\nconst disablePendingProps = (props: ButtonProps) => {\n if (\n props.isPending ||\n props.isSucceeded ||\n props.isFailed ||\n props[\"aria-disabled\"] ||\n props.isReadOnly\n ) {\n props = { ...props };\n\n const mutedActionHandler = (e: unknown) => {\n if (e && typeof e === \"object\") {\n // stopPropagation is the default behavior in React Aria\n const isReactAriaEvent =\n \"continuePropagation\" in e &&\n typeof e.continuePropagation === \"function\";\n\n if (\n !isReactAriaEvent &&\n \"stopPropagation\" in e &&\n typeof e.stopPropagation === \"function\"\n ) {\n e.stopPropagation();\n }\n if (\"preventDefault\" in e && typeof e.preventDefault === \"function\") {\n e.preventDefault();\n }\n }\n\n return false;\n };\n\n props.onClick = mutedActionHandler;\n props.onPress = mutedActionHandler;\n props.onPressStart = mutedActionHandler;\n props.onPressEnd = mutedActionHandler;\n props.onPressChange = mutedActionHandler;\n props.onPressUp = mutedActionHandler;\n props.onKeyDown = mutedActionHandler;\n props.onKeyUp = mutedActionHandler;\n }\n\n return props;\n};\n\n/** @flr-generate all */\nexport const Button = flowComponent(\"Button\", (props) => {\n props = disablePendingProps(props);\n\n const warnDeprecation = useWarnDeprecation();\n\n const {\n color: colorFromProps = \"primary\",\n variant = \"solid\",\n children,\n className,\n size = \"m\",\n isPending,\n isSucceeded,\n isFailed,\n \"aria-disabled\": ariaDisabled,\n ref,\n slot: ignoredSlotProp,\n ariaSlot: slot,\n unstyled,\n isReadOnly,\n elementType,\n ...restProps\n } = props;\n\n if (colorFromProps === \"accent\") {\n warnDeprecation(\n \"The color 'accent' is deprecated and will be removed in a future release. Use 'success' instead.\",\n );\n }\n\n const color = colorFromProps === \"accent\" ? \"success\" : colorFromProps;\n\n /**\n * A string child renders no element the CSS could match, so the button itself\n * carries the marker. An explicit `Text` child is matched by `:has(.text)`.\n */\n const hasText = containsTextChild(children);\n\n const rootClassName = unstyled\n ? className\n : clsx(\n styles.button,\n isPending && styles.isPending,\n isSucceeded && styles.isSucceeded,\n isFailed && styles.isFailed,\n size === \"s\" && styles[\"size-s\"],\n styles[color],\n styles[variant],\n /**\n * Workaround warning: The Aria.Button does not support \"aria-disabled\"\n * by now, so this Button will be visually disabled via CSS.\n */\n ariaDisabled && styles.ariaDisabled,\n hasText && styles.hasText,\n className,\n );\n\n useAriaAnnounceActionState(\n isPending\n ? \"isPending\"\n : isSucceeded\n ? \"isSucceeded\"\n : isFailed\n ? \"isFailed\"\n : \"isIdle\",\n );\n\n const propsContext: PropsContext = {\n Icon: {\n className: styles.icon,\n \"aria-hidden\": true,\n size,\n },\n Text: {\n className: styles.text,\n },\n Avatar: {\n className: styles.avatar,\n },\n CounterBadge: {\n className: styles.counterBadge,\n },\n Image: {\n className: styles.image,\n },\n };\n\n const stateIcon = isSucceeded ? (\n <IconSucceeded size={size} className={styles.stateIcon} color=\"success\" />\n ) : isFailed ? (\n <IconFailed size={size} className={styles.stateIcon} color=\"danger\" />\n ) : isPending ? (\n <LoadingSpinner size={size} className={styles.stateIcon} />\n ) : undefined;\n\n const content = (\n <>\n <PropsContextProvider props={propsContext}>\n <Wrap if={!unstyled}>\n <span className={styles.content}>{children}</span>\n </Wrap>\n </PropsContextProvider>\n {stateIcon}\n </>\n );\n\n if (elementType === \"span\") {\n const spanProps = filterDOMProps(restProps, { global: true });\n\n return (\n <span\n {...spanProps}\n data-disabled={restProps.isDisabled || undefined}\n className={\n typeof rootClassName === \"string\" ? rootClassName : undefined\n }\n >\n {content}\n </span>\n );\n }\n\n return (\n <Aria.Button\n className={rootClassName}\n ref={ref}\n slot={slot}\n {...(isReadOnly === true ? { \"data-readonly\": true } : {})}\n {...restProps}\n >\n {content}\n </Aria.Button>\n );\n});\n\nexport default Button;\n"],"mappings":";;;;;;;;;;;;;;;;;AAqDA,IAAM,uBAAuB,UAAuB;CAClD,IACE,MAAM,aACN,MAAM,eACN,MAAM,YACN,MAAM,oBACN,MAAM,YACN;EACA,QAAQ,EAAE,GAAG,MAAM;EAEnB,MAAM,sBAAsB,MAAe;GACzC,IAAI,KAAK,OAAO,MAAM,UAAU;IAM9B,IACE,EAJA,yBAAyB,KACzB,OAAO,EAAE,wBAAwB,eAIjC,qBAAqB,KACrB,OAAO,EAAE,oBAAoB,YAE7B,EAAE,gBAAgB;IAEpB,IAAI,oBAAoB,KAAK,OAAO,EAAE,mBAAmB,YACvD,EAAE,eAAe;GAErB;GAEA,OAAO;EACT;EAEA,MAAM,UAAU;EAChB,MAAM,UAAU;EAChB,MAAM,eAAe;EACrB,MAAM,aAAa;EACnB,MAAM,gBAAgB;EACtB,MAAM,YAAY;EAClB,MAAM,YAAY;EAClB,MAAM,UAAU;CAClB;CAEA,OAAO;AACT;;AAGA,IAAa,SAAS,cAAc,WAAW,UAAU;CACvD,QAAQ,oBAAoB,KAAK;CAEjC,MAAM,kBAAkB,mBAAmB;CAE3C,MAAM,EACJ,OAAO,iBAAiB,WACxB,UAAU,SACV,UACA,WACA,OAAO,KACP,WACA,aACA,UACA,iBAAiB,cACjB,KACA,MAAM,iBACN,UAAU,MACV,UACA,YACA,aACA,GAAG,cACD;CAEJ,IAAI,mBAAmB,UACrB,gBACE,kGACF;CAGF,MAAM,QAAQ,mBAAmB,WAAW,YAAY;;;;;CAMxD,MAAM,UAAU,kBAAkB,QAAQ;CAE1C,MAAM,gBAAgB,WAClB,YACA;EACE,sBAAO;EACP,aAAa,sBAAO;EACpB,eAAe,sBAAO;EACtB,YAAY,sBAAO;EACnB,SAAS,OAAO,sBAAO;EACvB,sBAAO;EACP,sBAAO;;;;;EAKP,gBAAgB,sBAAO;EACvB,WAAW,sBAAO;EAClB;CACF;CAEJ,2BACE,YACI,cACA,cACE,gBACA,WACE,aACA,QACV;CAEA,MAAM,eAA6B;EACjC,MAAM;GACJ,WAAW,sBAAO;GAClB,eAAe;GACf;EACF;EACA,MAAM,EACJ,WAAW,sBAAO,KACpB;EACA,QAAQ,EACN,WAAW,sBAAO,OACpB;EACA,cAAc,EACZ,WAAW,sBAAO,aACpB;EACA,OAAO,EACL,WAAW,sBAAO,MACpB;CACF;CAEA,MAAM,YAAY,cAChB,oBAAC,eAAD;EAAqB;EAAM,WAAW,sBAAO;EAAW,OAAM;CAAW,CAAA,IACvE,WACF,oBAAC,YAAD;EAAkB;EAAM,WAAW,sBAAO;EAAW,OAAM;CAAU,CAAA,IACnE,YACF,oBAAC,gBAAD;EAAsB;EAAM,WAAW,sBAAO;CAAY,CAAA,IACxD,KAAA;CAEJ,MAAM,UACJ,qBAAA,UAAA,EAAA,UAAA,CACE,oBAAC,sBAAD;EAAsB,OAAO;EAC3B,UAAA,oBAAC,MAAD;GAAM,IAAI,CAAC;GACT,UAAA,oBAAC,QAAD;IAAM,WAAW,sBAAO;IAAU;GAAe,CAAA;EAC7C,CAAA;CACc,CAAA,GACrB,SACD,EAAA,CAAA;CAGJ,IAAI,gBAAgB,QAAQ;EAC1B,MAAM,YAAY,eAAe,WAAW,EAAE,QAAQ,KAAK,CAAC;EAE5D,OACE,oBAAC,QAAD;GACE,GAAI;GACJ,iBAAe,UAAU,cAAc,KAAA;GACvC,WACE,OAAO,kBAAkB,WAAW,gBAAgB,KAAA;GAGrD,UAAA;EACG,CAAA;CAEV;CAEA,OACE,oBAAC,KAAK,QAAN;EACE,WAAW;EACN;EACC;EACN,GAAK,eAAe,OAAO,EAAE,iBAAiB,KAAK,IAAI,CAAC;EACxD,GAAI;EAEH,UAAA;CACU,CAAA;AAEjB,CAAC"}
|
|
@@ -7,11 +7,11 @@ var content = "flow--button--content";
|
|
|
7
7
|
var stateIcon = "flow--button--state-icon";
|
|
8
8
|
var icon = "flow--button--icon";
|
|
9
9
|
var text = "flow--button--text";
|
|
10
|
+
var hasText = "flow--button--has-text";
|
|
10
11
|
var counterBadge = "flow--button--counter-badge";
|
|
11
12
|
var isPending = "flow--button--is-pending";
|
|
12
13
|
var isFailed = "flow--button--is-failed";
|
|
13
14
|
var isSucceeded = "flow--button--is-succeeded";
|
|
14
|
-
var plain = "flow--button--plain";
|
|
15
15
|
var primary = "flow--button--primary";
|
|
16
16
|
var solid = "flow--button--solid";
|
|
17
17
|
var ariaDisabled = "flow--button--aria-disabled";
|
|
@@ -20,6 +20,7 @@ var danger = "flow--button--danger";
|
|
|
20
20
|
var secondary = "flow--button--secondary";
|
|
21
21
|
var dark = "flow--button--dark";
|
|
22
22
|
var light = "flow--button--light";
|
|
23
|
+
var plain = "flow--button--plain";
|
|
23
24
|
var soft = "flow--button--soft";
|
|
24
25
|
var avatar = "flow--button--avatar";
|
|
25
26
|
var image = "flow--button--image";
|
|
@@ -30,11 +31,11 @@ var Button_module_default = {
|
|
|
30
31
|
stateIcon,
|
|
31
32
|
icon,
|
|
32
33
|
text,
|
|
34
|
+
hasText,
|
|
33
35
|
counterBadge,
|
|
34
36
|
isPending,
|
|
35
37
|
isFailed,
|
|
36
38
|
isSucceeded,
|
|
37
|
-
plain,
|
|
38
39
|
"size-s": "flow--button--size-s",
|
|
39
40
|
primary,
|
|
40
41
|
solid,
|
|
@@ -46,11 +47,12 @@ var Button_module_default = {
|
|
|
46
47
|
light,
|
|
47
48
|
"dark-static": "flow--button--dark-static",
|
|
48
49
|
"light-static": "flow--button--light-static",
|
|
50
|
+
plain,
|
|
49
51
|
soft,
|
|
50
52
|
avatar,
|
|
51
53
|
image
|
|
52
54
|
};
|
|
53
55
|
//#endregion
|
|
54
|
-
export { ariaDisabled, avatar, button, content, counterBadge, danger, dark, Button_module_default as default, icon, image, isFailed, isPending, isSucceeded, light, outline, plain, primary, secondary, soft, solid, stateIcon, success, text };
|
|
56
|
+
export { ariaDisabled, avatar, button, content, counterBadge, danger, dark, Button_module_default as default, hasText, icon, image, isFailed, isPending, isSucceeded, light, outline, plain, primary, secondary, soft, solid, stateIcon, success, text };
|
|
55
57
|
|
|
56
58
|
//# sourceMappingURL=Button.module.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.module.mjs","names":[],"sources":["../../../../../../../src/components/Button/Button.module.scss"],"sourcesContent":["@use \"@/styles/mixins/ellipsis\";\n@use \"@/styles/mixins/focus\";\n@use \"@/styles/mixins/avatarButton\";\n\n.button {\n position: relative;\n font-family: Inter, sans-serif;\n font-size: var(--font-size-text--m);\n font-weight: bold;\n line-height: var(--line-height);\n border: none;\n border-radius: var(--button--corner-radius);\n padding-block: var(--button--padding-y);\n padding-inline: var(--button--padding-x);\n transition-property: color, background-color;\n transition-duration: var(--transition--duration--default);\n max-width: 100%;\n display: grid;\n align-items: center;\n grid-template-areas: \"content\";\n width: fit-content;\n\n &:where(.outline) {\n border-width: var(--button--border-width);\n border-style: var(--button--border-style);\n padding-block: calc(var(--button--padding-y) - var(--button--border-width));\n padding-inline: calc(\n var(--button--padding-x) - var(--button--border-width)\n );\n }\n\n @include focus.focus;\n\n @extend .primary;\n @extend .solid;\n\n /* Elements */\n .content {\n display: flex;\n column-gap: var(--button--spacing);\n align-items: center;\n justify-content: center;\n }\n\n .content,\n .stateIcon {\n grid-area: content;\n }\n\n .stateIcon {\n justify-self: center;\n }\n\n &:where(:has(.icon):not(:has(.text))) {\n padding: var(--button--padding-icon-only);\n\n &:where(.outline) {\n padding: calc(\n var(--button--padding-icon-only) - var(--button--border-width)\n );\n }\n }\n\n
|
|
1
|
+
{"version":3,"file":"Button.module.mjs","names":[],"sources":["../../../../../../../src/components/Button/Button.module.scss"],"sourcesContent":["@use \"@/styles/mixins/ellipsis\";\n@use \"@/styles/mixins/focus\";\n@use \"@/styles/mixins/avatarButton\";\n\n.button {\n position: relative;\n font-family: Inter, sans-serif;\n font-size: var(--font-size-text--m);\n font-weight: bold;\n line-height: var(--line-height);\n border: none;\n border-radius: var(--button--corner-radius);\n padding-block: var(--button--padding-y);\n padding-inline: var(--button--padding-x);\n transition-property: color, background-color;\n transition-duration: var(--transition--duration--default);\n max-width: 100%;\n display: grid;\n align-items: center;\n grid-template-areas: \"content\";\n width: fit-content;\n\n &:where(.outline) {\n border-width: var(--button--border-width);\n border-style: var(--button--border-style);\n padding-block: calc(var(--button--padding-y) - var(--button--border-width));\n padding-inline: calc(\n var(--button--padding-x) - var(--button--border-width)\n );\n }\n\n @include focus.focus;\n\n @extend .primary;\n @extend .solid;\n\n /* Elements */\n .content {\n display: flex;\n column-gap: var(--button--spacing);\n align-items: center;\n justify-content: center;\n text-align: start;\n text-wrap-style: pretty;\n }\n\n .content,\n .stateIcon {\n grid-area: content;\n }\n\n .stateIcon {\n justify-self: center;\n }\n\n &:where(:has(.icon):not(:has(.text), .hasText)) {\n padding: var(--button--padding-icon-only);\n\n &:where(.outline) {\n padding: calc(\n var(--button--padding-icon-only) - var(--button--border-width)\n );\n }\n }\n\n .counterBadge {\n position: absolute;\n top: calc(var(--size-px--xxs) * -1);\n inset-inline-end: calc(var(--size-px--xxs) * -1);\n }\n\n /* States */\n\n &.isPending,\n &.isFailed,\n &.isSucceeded {\n .content {\n opacity: 0;\n }\n }\n\n &.isPending {\n .stateIcon {\n color: var(--button--pending-icon-color);\n }\n }\n\n /* Size */\n\n &:where(.size-s) {\n font-size: var(--button--font-size-s);\n line-height: var(--button--line-height-s);\n padding-block: var(--button--padding-s-y);\n padding-inline: var(--button--padding-s-x);\n column-gap: var(--button--spacing-s);\n border-radius: var(--button--corner-radius-s);\n\n &:where(.outline) {\n padding-block: calc(\n var(--button--padding-s-y) - var(--button--border-width)\n );\n padding-inline: calc(\n var(--button--padding-s-x) - var(--button--border-width)\n );\n }\n\n &:where(:has(.icon):not(:has(.text), .hasText)) {\n padding: var(--button--padding-s-icon-only);\n\n &:where(.outline) {\n padding: calc(\n var(--button--padding-s-icon-only) - var(--button--border-width)\n );\n }\n }\n\n .content {\n column-gap: var(--button--spacing-s);\n }\n }\n\n /* Variants */\n\n @mixin variant($color, $variant) {\n &:where(.#{$color}.#{$variant}) {\n background-color: var(\n --button--#{$color}-#{$variant}-background-color--default\n );\n color: var(--button--#{$color}-#{$variant}-content-color--default);\n\n &:hover:where(:not([data-readonly])) {\n background-color: var(\n --button--#{$color}-#{$variant}-background-color--hover\n );\n }\n\n &[data-pressed]:where(:not([data-readonly])) {\n background-color: var(\n --button--#{$color}-#{$variant}-background-color--pressed\n );\n }\n\n &[disabled],\n &[data-disabled],\n &.ariaDisabled,\n &.isPending,\n &.isFailed,\n &.isSucceeded {\n background-color: var(\n --button--#{$color}-#{$variant}-background-color--disabled\n );\n color: var(--button--#{$color}-#{$variant}-content-color--disabled);\n }\n }\n }\n\n @include variant(primary, solid);\n @include variant(success, solid);\n @include variant(danger, solid);\n @include variant(secondary, solid);\n @include variant(dark, solid);\n @include variant(light, solid);\n @include variant(dark-static, solid);\n @include variant(light-static, solid);\n @include variant(primary, plain);\n @include variant(success, plain);\n @include variant(danger, plain);\n @include variant(secondary, plain);\n @include variant(dark, plain);\n @include variant(light, plain);\n @include variant(dark-static, plain);\n @include variant(light-static, plain);\n @include variant(primary, soft);\n @include variant(success, soft);\n @include variant(danger, soft);\n @include variant(secondary, soft);\n @include variant(dark, soft);\n @include variant(light, soft);\n @include variant(dark-static, soft);\n @include variant(light-static, soft);\n @include variant(primary, outline);\n @include variant(success, outline);\n @include variant(danger, outline);\n @include variant(secondary, outline);\n @include variant(dark, outline);\n @include variant(light, outline);\n @include variant(dark-static, outline);\n @include variant(light-static, outline);\n\n /* Outline */\n\n @mixin outline($color, $variant) {\n &:where(.#{$color}.#{$variant}) {\n &.outline {\n border-color: var(\n --button--#{$color}-#{$variant}-border-color--default\n );\n\n &[disabled],\n &[data-disabled],\n &.ariaDisabled,\n &.isPending,\n &.isFailed {\n border-color: var(\n --button--#{$color}-#{$variant}-border-color--disabled\n );\n }\n }\n }\n }\n\n @include outline(primary, outline);\n @include outline(success, outline);\n @include outline(danger, outline);\n @include outline(secondary, outline);\n @include outline(dark, outline);\n @include outline(light, outline);\n @include outline(dark-static, outline);\n @include outline(light-static, outline);\n @include avatarButton.avatarButton();\n\n &:has(.image) {\n padding: 0;\n background: none;\n height: fit-content;\n\n &:hover:where(:not([data-readonly])) .image {\n background: var(--button--dark-plain-background-color--hover);\n filter: brightness(var(--image-button--brightness--hover));\n }\n\n &[data-pressed]:where(:not([data-readonly])) .image {\n background: var(--button--dark-plain-background-color--pressed);\n filter: brightness(var(--image-button--brightness--pressed));\n }\n\n .image {\n width: 100%;\n }\n }\n}\n"],"mappings":""}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
3
|
import { useLocalizedStringFormatter } from "../../../../TranslationProvider/useLocalizedStringFormatter.mjs";
|
|
4
|
-
import __locale_default from "../../../../../../../../_virtual/
|
|
4
|
+
import __locale_default from "../../../../../../../../_virtual/_6.locale.mjs";
|
|
5
5
|
import { useContext, useMemo } from "react";
|
|
6
6
|
import { RangeCalendarStateContext } from "react-aria-components";
|
|
7
7
|
import invariant from "invariant";
|
|
@@ -5,7 +5,9 @@ import { Wrap } from "../Wrap/Wrap.mjs";
|
|
|
5
5
|
import CartesianChart_module_default from "./CartesianChart.module.mjs";
|
|
6
6
|
import { useChartClipRect } from "./hooks/useChartClipRect.mjs";
|
|
7
7
|
import DivView from "../../views/DivView.mjs";
|
|
8
|
+
import { CartesianChartContextProvider } from "./context.mjs";
|
|
8
9
|
import { TypedArea } from "./components/Area/Area.mjs";
|
|
10
|
+
import { TypedBar } from "./components/Bar/Bar.mjs";
|
|
9
11
|
import { TypedXAxis } from "./components/XAxis/types.mjs";
|
|
10
12
|
import { TypedYAxis } from "./components/YAxis/types.mjs";
|
|
11
13
|
import { TypedChartGrid } from "./components/ChartGrid/ChartGrid.mjs";
|
|
@@ -19,7 +21,7 @@ import { ComposedChart, ResponsiveContainer } from "recharts";
|
|
|
19
21
|
//#region src/components/CartesianChart/CartesianChart.tsx
|
|
20
22
|
/** @flr-generate all */
|
|
21
23
|
var CartesianChart = (props) => {
|
|
22
|
-
const { children, data, className, height, flexGrow, emptyView, ...rest } = props;
|
|
24
|
+
const { children, data, className, height, flexGrow, emptyView, layout = "horizontal", ...rest } = props;
|
|
23
25
|
const warnDeprecation = useWarnDeprecation();
|
|
24
26
|
const { viewDimensions, ref: containerRef } = useChartClipRect();
|
|
25
27
|
const showEmptyView = !!((!data || data.length === 0) && emptyView);
|
|
@@ -30,32 +32,37 @@ var CartesianChart = (props) => {
|
|
|
30
32
|
if (!emptyView) return;
|
|
31
33
|
return null;
|
|
32
34
|
}, [emptyView]);
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
width: 1,
|
|
43
|
-
height: 1
|
|
35
|
+
const contextValue = useMemo(() => ({ layout }), [layout]);
|
|
36
|
+
return /* @__PURE__ */ jsx(CartesianChartContextProvider, {
|
|
37
|
+
value: contextValue,
|
|
38
|
+
children: /* @__PURE__ */ jsx(Wrap, {
|
|
39
|
+
if: height,
|
|
40
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
41
|
+
style: {
|
|
42
|
+
height,
|
|
43
|
+
flex: flexGrow ? 1 : void 0
|
|
44
44
|
},
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
45
|
+
children: /* @__PURE__ */ jsx(ResponsiveContainer, {
|
|
46
|
+
initialDimension: {
|
|
47
|
+
width: 1,
|
|
48
|
+
height: 1
|
|
49
|
+
},
|
|
50
|
+
width: height ? void 0 : "100%",
|
|
51
|
+
aspect: height ? void 0 : 3,
|
|
52
|
+
ref: containerRef,
|
|
53
|
+
children: /* @__PURE__ */ jsxs(ComposedChart, {
|
|
54
|
+
data,
|
|
55
|
+
className: rootClassName,
|
|
56
|
+
layout,
|
|
57
|
+
...rest,
|
|
58
|
+
children: [children, showEmptyView && viewDimensions && /* @__PURE__ */ jsx("foreignObject", {
|
|
59
|
+
...viewDimensions,
|
|
60
|
+
children: /* @__PURE__ */ jsx(DivView, {
|
|
61
|
+
className: CartesianChart_module_default.emptyViewContainer,
|
|
62
|
+
children: emptyElement
|
|
63
|
+
})
|
|
64
|
+
})]
|
|
65
|
+
})
|
|
59
66
|
})
|
|
60
67
|
})
|
|
61
68
|
})
|
|
@@ -64,6 +71,7 @@ var CartesianChart = (props) => {
|
|
|
64
71
|
var typedCartesianChart = () => ({
|
|
65
72
|
Chart: CartesianChart,
|
|
66
73
|
Area: TypedArea(),
|
|
74
|
+
Bar: TypedBar(),
|
|
67
75
|
XAxis: TypedXAxis(),
|
|
68
76
|
YAxis: TypedYAxis(),
|
|
69
77
|
Grid: TypedChartGrid(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CartesianChart.mjs","names":[],"sources":["../../../../../../../src/components/CartesianChart/CartesianChart.tsx"],"sourcesContent":["import { ComposedChart, ResponsiveContainer } from \"recharts\";\nimport {\n type ComponentProps,\n type ComponentType,\n type FC,\n isValidElement,\n type PropsWithChildren,\n type ReactNode,\n useMemo,\n} from \"react\";\nimport clsx from \"clsx\";\nimport styles from \"./CartesianChart.module.scss\";\nimport { useChartClipRect } from \"@/components/CartesianChart/hooks/useChartClipRect\";\nimport DivView from \"@/views/DivView\";\nimport Wrap from \"@/components/Wrap\";\nimport type {\n ChartDataValue,\n DataKeyProp,\n} from \"@/components/CartesianChart/types\";\nimport { TypedArea } from \"@/components/CartesianChart/components/Area\";\nimport { TypedXAxis } from \"@/components/CartesianChart/components/XAxis\";\nimport { TypedYAxis } from \"@/components/CartesianChart/components/YAxis\";\nimport { TypedChartGrid } from \"@/components/CartesianChart/components/ChartGrid\";\nimport { TypedChartLegend } from \"@/components/CartesianChart/components/ChartLegend\";\nimport { TypedChartTooltip } from \"@/components/CartesianChart/components/ChartTooltip\";\nimport { TypedLine } from \"@/components/CartesianChart/components/Line\";\nimport { useWarnDeprecation } from \"@/components/DeprecationWarningProvider\";\n\n/** @deprecated Use a ReactNode instead */\nexport interface CartesianChartEmptyViewProps {\n data?: ComponentProps<typeof ComposedChart>[\"data\"];\n}\n\nexport interface CartesianChartProps<TData = ChartDataValue>\n extends\n Pick<\n ComponentProps<typeof ComposedChart>,\n \"className\" | \"syncId\" | \"syncMethod\"\n >,\n PropsWithChildren {\n /** The data points rendered by the chart. */\n data?: TData[];\n\n /** The height of the chart. */\n height?: string;\n\n /** View that is provided when data is empty/undefined */\n emptyView?: ReactNode;\n\n /**\n * Allow the height controlling container to set flex-grow: 1. Can only be\n * used in combination with `height`\n */\n flexGrow?: boolean;\n}\n\n/** @flr-generate all */\nexport const CartesianChart: FC<CartesianChartProps> = (props) => {\n const {
|
|
1
|
+
{"version":3,"file":"CartesianChart.mjs","names":[],"sources":["../../../../../../../src/components/CartesianChart/CartesianChart.tsx"],"sourcesContent":["import { ComposedChart, ResponsiveContainer } from \"recharts\";\nimport {\n type ComponentProps,\n type ComponentType,\n type FC,\n isValidElement,\n type PropsWithChildren,\n type ReactNode,\n useMemo,\n} from \"react\";\nimport clsx from \"clsx\";\nimport styles from \"./CartesianChart.module.scss\";\nimport { useChartClipRect } from \"@/components/CartesianChart/hooks/useChartClipRect\";\nimport DivView from \"@/views/DivView\";\nimport Wrap from \"@/components/Wrap\";\nimport type {\n CartesianChartLayout,\n ChartDataValue,\n DataKeyProp,\n} from \"@/components/CartesianChart/types\";\nimport { CartesianChartContextProvider } from \"@/components/CartesianChart/context\";\nimport { TypedArea } from \"@/components/CartesianChart/components/Area\";\nimport { TypedBar } from \"@/components/CartesianChart/components/Bar\";\nimport { TypedXAxis } from \"@/components/CartesianChart/components/XAxis\";\nimport { TypedYAxis } from \"@/components/CartesianChart/components/YAxis\";\nimport { TypedChartGrid } from \"@/components/CartesianChart/components/ChartGrid\";\nimport { TypedChartLegend } from \"@/components/CartesianChart/components/ChartLegend\";\nimport { TypedChartTooltip } from \"@/components/CartesianChart/components/ChartTooltip\";\nimport { TypedLine } from \"@/components/CartesianChart/components/Line\";\nimport { useWarnDeprecation } from \"@/components/DeprecationWarningProvider\";\n\n/** @deprecated Use a ReactNode instead */\nexport interface CartesianChartEmptyViewProps {\n data?: ComponentProps<typeof ComposedChart>[\"data\"];\n}\n\nexport interface CartesianChartProps<TData = ChartDataValue>\n extends\n Pick<\n ComponentProps<typeof ComposedChart>,\n \"className\" | \"syncId\" | \"syncMethod\"\n >,\n PropsWithChildren {\n /** The data points rendered by the chart. */\n data?: TData[];\n\n /** The height of the chart. */\n height?: string;\n\n /**\n * The orientation of the axes and graphical items. `\"horizontal\"` puts the\n * category axis on the x-axis — bars grow upwards. `\"vertical\"` puts it on\n * the y-axis — bars grow to the side. `XAxis` and `YAxis` follow the layout\n * on their own; only the `dataKey` moves to whichever axis is the categorical\n * one.\n *\n * @default \"horizontal\"\n */\n layout?: CartesianChartLayout;\n\n /** View that is provided when data is empty/undefined */\n emptyView?: ReactNode;\n\n /**\n * Allow the height controlling container to set flex-grow: 1. Can only be\n * used in combination with `height`\n */\n flexGrow?: boolean;\n}\n\n/** @flr-generate all */\nexport const CartesianChart: FC<CartesianChartProps> = (props) => {\n const {\n children,\n data,\n className,\n height,\n flexGrow,\n emptyView,\n layout = \"horizontal\",\n ...rest\n } = props;\n const warnDeprecation = useWarnDeprecation();\n\n const { viewDimensions, ref: containerRef } = useChartClipRect();\n\n const showEmptyView = !!((!data || data.length === 0) && emptyView);\n const rootClassName = clsx(\n styles.cartesianChart,\n showEmptyView && styles.emptyView,\n className,\n );\n const usesDeprecatedEmptyView = !!emptyView && !isValidElement(emptyView);\n\n if (usesDeprecatedEmptyView) {\n warnDeprecation(\n \"CartesianChart: emptyView as a non-element is deprecated and will be removed in a future release. Please provide an element as emptyView.\",\n );\n }\n\n const emptyElement = useMemo(() => {\n if (isValidElement(emptyView)) {\n return emptyView;\n }\n\n if (!emptyView) {\n return;\n }\n\n return null;\n }, [emptyView]);\n\n const contextValue = useMemo(() => ({ layout }), [layout]);\n\n return (\n <CartesianChartContextProvider value={contextValue}>\n <Wrap if={height}>\n <div style={{ height, flex: flexGrow ? 1 : undefined }}>\n <ResponsiveContainer\n initialDimension={{\n // fix warning on initial render\n width: 1,\n height: 1,\n }}\n width={height ? undefined : \"100%\"}\n aspect={height ? undefined : 3}\n ref={containerRef}\n >\n <ComposedChart\n data={data}\n className={rootClassName}\n layout={layout}\n {...rest}\n >\n {children}\n {showEmptyView && viewDimensions && (\n <foreignObject {...viewDimensions}>\n <DivView className={styles.emptyViewContainer}>\n {emptyElement}\n </DivView>\n </foreignObject>\n )}\n </ComposedChart>\n </ResponsiveContainer>\n </div>\n </Wrap>\n </CartesianChartContextProvider>\n );\n};\n\nexport const typedCartesianChart = <\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n TData extends ChartDataValue<any> = ChartDataValue<any>,\n XAxisDataKey extends DataKeyProp<TData> = DataKeyProp<TData>,\n>() => ({\n Chart: CartesianChart as ComponentType<CartesianChartProps<TData>>,\n Area: TypedArea<TData>(),\n Bar: TypedBar<TData>(),\n XAxis: TypedXAxis<TData, XAxisDataKey>(),\n YAxis: TypedYAxis<TData>(),\n Grid: TypedChartGrid(),\n Legend: TypedChartLegend(),\n Tooltip: TypedChartTooltip<TData, XAxisDataKey>(),\n Line: TypedLine<TData>(),\n});\n\nexport default CartesianChart;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAuEA,IAAa,kBAA2C,UAAU;CAChE,MAAM,EACJ,UACA,MACA,WACA,QACA,UACA,WACA,SAAS,cACT,GAAG,SACD;CACJ,MAAM,kBAAkB,mBAAmB;CAE3C,MAAM,EAAE,gBAAgB,KAAK,iBAAiB,iBAAiB;CAE/D,MAAM,gBAAgB,CAAC,GAAG,CAAC,QAAQ,KAAK,WAAW,MAAM;CACzD,MAAM,gBAAgB,KACpB,8BAAO,gBACP,iBAAiB,8BAAO,WACxB,SACF;CAGA,IAFgC,CAAC,CAAC,aAAa,CAAC,eAAe,SAAS,GAGtE,gBACE,2IACF;CAGF,MAAM,eAAe,cAAc;EACjC,IAAI,eAAe,SAAS,GAC1B,OAAO;EAGT,IAAI,CAAC,WACH;EAGF,OAAO;CACT,GAAG,CAAC,SAAS,CAAC;CAEd,MAAM,eAAe,eAAe,EAAE,OAAO,IAAI,CAAC,MAAM,CAAC;CAEzD,OACE,oBAAC,+BAAD;EAA+B,OAAO;EACpC,UAAA,oBAAC,MAAD;GAAM,IAAI;GACR,UAAA,oBAAC,OAAD;IAAK,OAAO;KAAE;KAAQ,MAAM,WAAW,IAAI,KAAA;IAAU;IACnD,UAAA,oBAAC,qBAAD;KACE,kBAAkB;MAEhB,OAAO;MACP,QAAQ;KACV;KACA,OAAO,SAAS,KAAA,IAAY;KAC5B,QAAQ,SAAS,KAAA,IAAY;KAC7B,KAAK;KAEL,UAAA,qBAAC,eAAD;MACQ;MACN,WAAW;MACH;MACR,GAAI;MAJN,UAAA,CAMG,UACA,iBAAiB,kBAChB,oBAAC,iBAAD;OAAe,GAAI;OACjB,UAAA,oBAAC,SAAD;QAAS,WAAW,8BAAO;QACxB,UAAA;OACM,CAAA;MACI,CAAA,CAEJ;;IACI,CAAA;GAClB,CAAA;EACD,CAAA;CACuB,CAAA;AAEnC;AAEA,IAAa,6BAIL;CACN,OAAO;CACP,MAAM,UAAiB;CACvB,KAAK,SAAgB;CACrB,OAAO,WAAgC;CACvC,OAAO,WAAkB;CACzB,MAAM,eAAe;CACrB,QAAQ,iBAAiB;CACzB,SAAS,kBAAuC;CAChD,MAAM,UAAiB;AACzB"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import { useDesignTokens } from "../../../../lib/theming/hooks/useDesignTokens.mjs";
|
|
4
|
+
import { useCartesianChartContext } from "../../context.mjs";
|
|
5
|
+
import { isCategoricalColor } from "../../../../lib/tokens/isCategoricalColor.mjs";
|
|
6
|
+
import { isDataKeyWithLabel } from "../../types.mjs";
|
|
7
|
+
import "react";
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
|
+
import * as Recharts from "recharts";
|
|
10
|
+
//#region src/components/CartesianChart/components/Bar/Bar.tsx
|
|
11
|
+
/** @flr-generate all */
|
|
12
|
+
var Bar = (props) => {
|
|
13
|
+
const { color: colorFromProps = "sea-green", ...rest } = props;
|
|
14
|
+
const tokens = useDesignTokens();
|
|
15
|
+
const { layout } = useCartesianChartContext();
|
|
16
|
+
const color = isCategoricalColor(colorFromProps) ? `var(--color--categorical--${colorFromProps})` : colorFromProps;
|
|
17
|
+
const cornerRadius = parseInt(tokens.bar["corner-radius"].value);
|
|
18
|
+
const radius = props.stackId !== void 0 ? 0 : layout === "vertical" ? [
|
|
19
|
+
0,
|
|
20
|
+
cornerRadius,
|
|
21
|
+
cornerRadius,
|
|
22
|
+
0
|
|
23
|
+
] : [
|
|
24
|
+
cornerRadius,
|
|
25
|
+
cornerRadius,
|
|
26
|
+
0,
|
|
27
|
+
0
|
|
28
|
+
];
|
|
29
|
+
return /* @__PURE__ */ jsx(Recharts.Bar, {
|
|
30
|
+
name: isDataKeyWithLabel(props) ? props.dataKeyLabel : props.dataKey,
|
|
31
|
+
...rest,
|
|
32
|
+
fill: color,
|
|
33
|
+
radius
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
var TypedBar = () => Bar;
|
|
37
|
+
//#endregion
|
|
38
|
+
export { Bar, Bar as default, TypedBar };
|
|
39
|
+
|
|
40
|
+
//# sourceMappingURL=Bar.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Bar.mjs","names":[],"sources":["../../../../../../../../../src/components/CartesianChart/components/Bar/Bar.tsx"],"sourcesContent":["import { type ComponentType, type FC } from \"react\";\nimport * as Recharts from \"recharts\";\nimport type { CategoricalWithCustomColor } from \"@/lib/tokens/CategoricalColors\";\nimport { isCategoricalColor } from \"@/lib/tokens/isCategoricalColor\";\nimport {\n type ChartDataValue,\n type DataKeyProp,\n type DataKeyWithLabel,\n isDataKeyWithLabel,\n} from \"@/components/CartesianChart/types\";\nimport { useCartesianChartContext } from \"@/components/CartesianChart/context\";\nimport { useDesignTokens } from \"@/lib/theming\";\n\ntype BarBaseProps = Pick<\n Recharts.BarProps,\n | \"className\"\n | \"stackId\"\n | \"key\"\n | \"xAxisId\"\n | \"yAxisId\"\n | \"unit\"\n | \"barSize\"\n | \"maxBarSize\"\n | \"minPointSize\"\n> & {\n /** The color of the bar. @default \"sea-green\" */\n color?: CategoricalWithCustomColor;\n};\n\nexport interface BarPropsByDataKeyProp<\n TData extends ChartDataValue = ChartDataValue,\n> extends BarBaseProps {\n dataKey: DataKeyProp<TData>;\n}\n\nexport interface BarPropsByDataKey<\n TData extends ChartDataValue = ChartDataValue,\n>\n extends BarBaseProps, DataKeyWithLabel<TData> {}\n\nexport type BarProps<TData extends ChartDataValue = ChartDataValue> =\n BarPropsByDataKey<TData> | BarPropsByDataKeyProp<TData>;\n\n/** @flr-generate all */\nexport const Bar: FC<BarProps> = (props) => {\n const { color: colorFromProps = \"sea-green\", ...rest } = props;\n\n const tokens = useDesignTokens();\n const { layout } = useCartesianChartContext();\n\n const color = isCategoricalColor(colorFromProps)\n ? `var(--color--categorical--${colorFromProps})`\n : colorFromProps;\n\n const cornerRadius = parseInt(tokens.bar[\"corner-radius\"].value);\n const radius: Recharts.BarProps[\"radius\"] =\n props.stackId !== undefined\n ? 0\n : layout === \"vertical\"\n ? [0, cornerRadius, cornerRadius, 0]\n : [cornerRadius, cornerRadius, 0, 0];\n\n return (\n <Recharts.Bar\n name={isDataKeyWithLabel(props) ? props.dataKeyLabel : props.dataKey}\n {...rest}\n fill={color}\n radius={radius}\n />\n );\n};\n\nexport const TypedBar = <TData extends ChartDataValue = ChartDataValue>() =>\n Bar as ComponentType<BarPropsByDataKeyProp<TData>>;\n\nexport default Bar;\n"],"mappings":";;;;;;;;;;;AA4CA,IAAa,OAAqB,UAAU;CAC1C,MAAM,EAAE,OAAO,iBAAiB,aAAa,GAAG,SAAS;CAEzD,MAAM,SAAS,gBAAgB;CAC/B,MAAM,EAAE,WAAW,yBAAyB;CAE5C,MAAM,QAAQ,mBAAmB,cAAc,IAC3C,6BAA6B,eAAe,KAC5C;CAEJ,MAAM,eAAe,SAAS,OAAO,IAAI,gBAAgB,CAAC,KAAK;CAC/D,MAAM,SACJ,MAAM,YAAY,KAAA,IACd,IACA,WAAW,aACT;EAAC;EAAG;EAAc;EAAc;CAAC,IACjC;EAAC;EAAc;EAAc;EAAG;CAAC;CAEzC,OACE,oBAAC,SAAS,KAAV;EACE,MAAM,mBAAmB,KAAK,IAAI,MAAM,eAAe,MAAM;EAC7D,GAAI;EACJ,MAAM;EACE;CACT,CAAA;AAEL;AAEA,IAAa,iBACX"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { useLocalizedStringFormatter } from "../../../TranslationProvider/useLocalizedStringFormatter.mjs";
|
|
4
4
|
import { ProgressBar } from "../../../ProgressBar/ProgressBar.mjs";
|
|
5
5
|
import { Label } from "../../../Label/Label.mjs";
|
|
6
|
-
import __locale_default from "../../../../../../../_virtual/
|
|
6
|
+
import __locale_default from "../../../../../../../_virtual/_9.locale.mjs";
|
|
7
7
|
import ChartTooltip_module_default from "./ChartTooltip.module.mjs";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
import { usePromise } from "@mittwald/react-use-promise";
|
package/dist/js/packages/components/src/components/CartesianChart/components/XAxis/XAxis.mjs
CHANGED
|
@@ -5,11 +5,22 @@ import { TypedXAxis } from "./types.mjs";
|
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import * as Recharts from "recharts";
|
|
7
7
|
//#region src/components/CartesianChart/components/XAxis/XAxis.tsx
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* `tickFormatter` is deliberately not part of the remote surface. A function
|
|
10
|
+
* property crosses the boundary as a thread proxy whose call returns a Promise,
|
|
11
|
+
* and recharts concatenates the formatter's result straight into the tick label
|
|
12
|
+
* — so remotely every tick rendered `[object Promise]`. Dropping it from the
|
|
13
|
+
* remote surface leaves the raw value there; the prop keeps working locally.
|
|
14
|
+
*
|
|
15
|
+
* @flr-generate all
|
|
16
|
+
* @flr-ignore-props tickFormatter
|
|
17
|
+
*/
|
|
9
18
|
var XAxis = (props) => {
|
|
19
|
+
const { type = "auto", ...rest } = props;
|
|
10
20
|
const tokens = useDesignTokens();
|
|
11
21
|
return /* @__PURE__ */ jsx(Recharts.XAxis, {
|
|
12
|
-
...
|
|
22
|
+
...rest,
|
|
23
|
+
type,
|
|
13
24
|
fontSize: tokens.axis["font-size"].value,
|
|
14
25
|
tick: { fill: tokens.axis["color"].value },
|
|
15
26
|
tickMargin: parseInt(tokens.axis.spacing.value),
|
package/dist/js/packages/components/src/components/CartesianChart/components/XAxis/XAxis.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XAxis.mjs","names":[],"sources":["../../../../../../../../../src/components/CartesianChart/components/XAxis/XAxis.tsx"],"sourcesContent":["import type { FC } from \"react\";\nimport * as Recharts from \"recharts\";\nimport type {\n ChartDataValue,\n DataKey,\n DataKeyValue,\n} from \"@/components/CartesianChart/types\";\nimport { useDesignTokens } from \"@/lib/theming\";\n\nexport type XAxisProps<\n TData extends ChartDataValue = ChartDataValue,\n TDataKey extends DataKey<TData> = DataKey<TData>,\n TDataKeyValue = DataKeyValue<TData, TDataKey>,\n> = Pick<\n Recharts.XAxisProps,\n | \"className\"\n | \"orientation\"\n | \"allowDecimals\"\n | \"allowDataOverflow\"\n | \"interval\"\n | \"minTickGap\"\n | \"scale\"\n | \"type\"\n | \"domain\"\n | \"hide\"\n | \"unit\"\n> & {\n dataKey?: TDataKey;\n tickFormatter?: (value: TDataKeyValue, index: number) => string;\n};\n\n
|
|
1
|
+
{"version":3,"file":"XAxis.mjs","names":[],"sources":["../../../../../../../../../src/components/CartesianChart/components/XAxis/XAxis.tsx"],"sourcesContent":["import type { FC } from \"react\";\nimport * as Recharts from \"recharts\";\nimport type {\n ChartDataValue,\n DataKey,\n DataKeyValue,\n} from \"@/components/CartesianChart/types\";\nimport { useDesignTokens } from \"@/lib/theming\";\n\nexport type XAxisProps<\n TData extends ChartDataValue = ChartDataValue,\n TDataKey extends DataKey<TData> = DataKey<TData>,\n TDataKeyValue = DataKeyValue<TData, TDataKey>,\n> = Pick<\n Recharts.XAxisProps,\n | \"className\"\n | \"orientation\"\n | \"allowDecimals\"\n | \"allowDataOverflow\"\n | \"interval\"\n | \"minTickGap\"\n | \"scale\"\n | \"type\"\n | \"domain\"\n | \"hide\"\n | \"unit\"\n> & {\n dataKey?: TDataKey;\n tickFormatter?: (value: TDataKeyValue, index: number) => string;\n};\n\n/**\n * `tickFormatter` is deliberately not part of the remote surface. A function\n * property crosses the boundary as a thread proxy whose call returns a Promise,\n * and recharts concatenates the formatter's result straight into the tick label\n * — so remotely every tick rendered `[object Promise]`. Dropping it from the\n * remote surface leaves the raw value there; the prop keeps working locally.\n *\n * @flr-generate all\n * @flr-ignore-props tickFormatter\n */\nexport const XAxis: FC<XAxisProps> = (props) => {\n const { type = \"auto\", ...rest } = props;\n\n const tokens = useDesignTokens();\n\n return (\n <Recharts.XAxis\n {...rest}\n type={type}\n fontSize={tokens.axis[\"font-size\"].value}\n tick={{\n fill: tokens.axis[\"color\"].value,\n }}\n tickMargin={parseInt(tokens.axis.spacing.value)}\n tickSize={parseInt(tokens.axis[\"tick-size\"].value)}\n />\n );\n};\n\nexport { TypedXAxis } from \"./types\";\n\nexport default XAxis;\n"],"mappings":";;;;;;;;;;;;;;;;;AAyCA,IAAa,SAAyB,UAAU;CAC9C,MAAM,EAAE,OAAO,QAAQ,GAAG,SAAS;CAEnC,MAAM,SAAS,gBAAgB;CAE/B,OACE,oBAAC,SAAS,OAAV;EACE,GAAI;EACE;EACN,UAAU,OAAO,KAAK,YAAY,CAAC;EACnC,MAAM,EACJ,MAAM,OAAO,KAAK,QAAQ,CAAC,MAC7B;EACA,YAAY,SAAS,OAAO,KAAK,QAAQ,KAAK;EAC9C,UAAU,SAAS,OAAO,KAAK,YAAY,CAAC,KAAK;CAClD,CAAA;AAEL"}
|
package/dist/js/packages/components/src/components/CartesianChart/components/YAxis/YAxis.mjs
CHANGED
|
@@ -5,14 +5,24 @@ import { TypedYAxis } from "./types.mjs";
|
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import * as Recharts from "recharts";
|
|
7
7
|
//#region src/components/CartesianChart/components/YAxis/YAxis.tsx
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* `tickFormatter` is deliberately not part of the remote surface. A function
|
|
10
|
+
* property crosses the boundary as a thread proxy whose call returns a Promise,
|
|
11
|
+
* and recharts concatenates the formatter's result straight into the tick label
|
|
12
|
+
* — so remotely every tick rendered `[object Promise]`. Dropping it from the
|
|
13
|
+
* remote surface leaves the raw value there; the prop keeps working locally.
|
|
14
|
+
*
|
|
15
|
+
* @flr-generate all
|
|
16
|
+
* @flr-ignore-props tickFormatter
|
|
17
|
+
*/
|
|
9
18
|
var YAxis = (props) => {
|
|
10
|
-
const { domain, ...rest } = props;
|
|
19
|
+
const { domain, type = "auto", ...rest } = props;
|
|
11
20
|
const tokens = useDesignTokens();
|
|
12
21
|
return /* @__PURE__ */ jsx(Recharts.YAxis, {
|
|
13
22
|
...rest,
|
|
14
23
|
allowDataOverflow: true,
|
|
15
24
|
domain,
|
|
25
|
+
type,
|
|
16
26
|
fontSize: tokens.axis["font-size"].value,
|
|
17
27
|
tick: { fill: tokens.axis["color"].value },
|
|
18
28
|
tickMargin: parseInt(tokens.axis.spacing.value),
|
package/dist/js/packages/components/src/components/CartesianChart/components/YAxis/YAxis.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"YAxis.mjs","names":[],"sources":["../../../../../../../../../src/components/CartesianChart/components/YAxis/YAxis.tsx"],"sourcesContent":["import type { FC } from \"react\";\nimport * as Recharts from \"recharts\";\nimport type {\n ChartDataValue,\n DataKey,\n DataKeyValue,\n} from \"@/components/CartesianChart/types\";\nimport { useDesignTokens } from \"@/lib/theming\";\n\nexport type YAxisProps<\n TData extends ChartDataValue = ChartDataValue,\n TDataKey extends DataKey<TData> = DataKey<TData>,\n TDataMatch = DataKeyValue<TData, TDataKey>,\n> = Pick<\n Recharts.YAxisProps,\n | \"className\"\n | \"orientation\"\n | \"allowDecimals\"\n | \"interval\"\n | \"minTickGap\"\n | \"scale\"\n | \"type\"\n | \"domain\"\n | \"hide\"\n | \"unit\"\n> & {\n dataKey?: TDataKey;\n tickFormatter?: (value: TDataMatch, index: number) => string;\n};\n\n
|
|
1
|
+
{"version":3,"file":"YAxis.mjs","names":[],"sources":["../../../../../../../../../src/components/CartesianChart/components/YAxis/YAxis.tsx"],"sourcesContent":["import type { FC } from \"react\";\nimport * as Recharts from \"recharts\";\nimport type {\n ChartDataValue,\n DataKey,\n DataKeyValue,\n} from \"@/components/CartesianChart/types\";\nimport { useDesignTokens } from \"@/lib/theming\";\n\nexport type YAxisProps<\n TData extends ChartDataValue = ChartDataValue,\n TDataKey extends DataKey<TData> = DataKey<TData>,\n TDataMatch = DataKeyValue<TData, TDataKey>,\n> = Pick<\n Recharts.YAxisProps,\n | \"className\"\n | \"orientation\"\n | \"allowDecimals\"\n | \"interval\"\n | \"minTickGap\"\n | \"scale\"\n | \"type\"\n | \"domain\"\n | \"hide\"\n | \"unit\"\n> & {\n dataKey?: TDataKey;\n tickFormatter?: (value: TDataMatch, index: number) => string;\n};\n\n/**\n * `tickFormatter` is deliberately not part of the remote surface. A function\n * property crosses the boundary as a thread proxy whose call returns a Promise,\n * and recharts concatenates the formatter's result straight into the tick label\n * — so remotely every tick rendered `[object Promise]`. Dropping it from the\n * remote surface leaves the raw value there; the prop keeps working locally.\n *\n * @flr-generate all\n * @flr-ignore-props tickFormatter\n */\nexport const YAxis: FC<YAxisProps> = (props) => {\n const { domain, type = \"auto\", ...rest } = props;\n\n const tokens = useDesignTokens();\n\n return (\n <Recharts.YAxis\n {...rest}\n allowDataOverflow\n domain={domain}\n type={type}\n fontSize={tokens.axis[\"font-size\"].value}\n tick={{\n fill: tokens.axis[\"color\"].value,\n }}\n tickMargin={parseInt(tokens.axis.spacing.value)}\n tickSize={parseInt(tokens.axis[\"tick-size\"].value)}\n />\n );\n};\n\nexport { TypedYAxis } from \"./types\";\n\nexport default YAxis;\n"],"mappings":";;;;;;;;;;;;;;;;;AAwCA,IAAa,SAAyB,UAAU;CAC9C,MAAM,EAAE,QAAQ,OAAO,QAAQ,GAAG,SAAS;CAE3C,MAAM,SAAS,gBAAgB;CAE/B,OACE,oBAAC,SAAS,OAAV;EACE,GAAI;EACJ,mBAAA;EACQ;EACF;EACN,UAAU,OAAO,KAAK,YAAY,CAAC;EACnC,MAAM,EACJ,MAAM,OAAO,KAAK,QAAQ,CAAC,MAC7B;EACA,YAAY,SAAS,OAAO,KAAK,QAAQ,KAAK;EAC9C,UAAU,SAAS,OAAO,KAAK,YAAY,CAAC,KAAK;CAClD,CAAA;AAEL"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import { createContext, useContext } from "react";
|
|
4
|
+
//#region src/components/CartesianChart/context.ts
|
|
5
|
+
var cartesianChartContext = createContext({ layout: "horizontal" });
|
|
6
|
+
var useCartesianChartContext = () => useContext(cartesianChartContext);
|
|
7
|
+
var CartesianChartContextProvider = cartesianChartContext.Provider;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { CartesianChartContextProvider, useCartesianChartContext };
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=context.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.mjs","names":[],"sources":["../../../../../../../src/components/CartesianChart/context.ts"],"sourcesContent":["import { createContext, useContext } from \"react\";\nimport type { CartesianChartLayout } from \"@/components/CartesianChart/types\";\n\ninterface CartesianChartContext {\n layout: CartesianChartLayout;\n}\n\nconst cartesianChartContext = createContext<CartesianChartContext>({\n layout: \"horizontal\",\n});\n\nexport const useCartesianChartContext = (): CartesianChartContext =>\n useContext(cartesianChartContext);\n\nexport const CartesianChartContextProvider = cartesianChartContext.Provider;\n"],"mappings":";;;;AAOA,IAAM,wBAAwB,cAAqC,EACjE,QAAQ,aACV,CAAC;AAED,IAAa,iCACX,WAAW,qBAAqB;AAElC,IAAa,gCAAgC,sBAAsB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.mjs","names":[],"sources":["../../../../../../../src/components/CartesianChart/types.ts"],"sourcesContent":["export type ChartDataValue<TValue = unknown> = Record<string, TValue>;\n\nexport interface DataKeyWithLabel<TData extends ChartDataValue> {\n dataKey: DataKeyFn<TData>;\n dataKeyLabel: DataKeyProp<TData>;\n}\n\nexport type DataKeyFn<\n TData extends ChartDataValue = ChartDataValue,\n TValue = unknown,\n> = (data: TData) => TValue;\n\nexport type DataKeyProp<TData extends ChartDataValue = ChartDataValue> =\n keyof TData;\n\nexport type DataKey<\n TData extends ChartDataValue = ChartDataValue,\n TValue = unknown,\n> = DataKeyProp<TData> | DataKeyFn<TData, TValue>;\n\nexport type DataKeyValue<\n TData extends ChartDataValue,\n TDataKey extends DataKey<TData>,\n> = TDataKey extends (data: TData) => infer R\n ? R\n : TDataKey extends keyof TData\n ? TData[TDataKey]\n : never;\n\nexport const isDataKeyWithLabel = <TData extends ChartDataValue>(\n obj: unknown,\n): obj is DataKeyWithLabel<TData> => {\n return (\n typeof obj === \"object\" &&\n obj !== null &&\n \"dataKeyLabel\" in obj &&\n typeof obj.dataKeyLabel === \"string\"\n );\n};\n"],"mappings":";;;AA6BA,IAAa,sBACX,QACmC;CACnC,OACE,OAAO,QAAQ,YACf,QAAQ,QACR,kBAAkB,OAClB,OAAO,IAAI,iBAAiB;AAEhC"}
|
|
1
|
+
{"version":3,"file":"types.mjs","names":[],"sources":["../../../../../../../src/components/CartesianChart/types.ts"],"sourcesContent":["export type ChartDataValue<TValue = unknown> = Record<string, TValue>;\n\nexport interface DataKeyWithLabel<TData extends ChartDataValue> {\n dataKey: DataKeyFn<TData>;\n dataKeyLabel: DataKeyProp<TData>;\n}\n\nexport type DataKeyFn<\n TData extends ChartDataValue = ChartDataValue,\n TValue = unknown,\n> = (data: TData) => TValue;\n\nexport type DataKeyProp<TData extends ChartDataValue = ChartDataValue> =\n keyof TData;\n\nexport type DataKey<\n TData extends ChartDataValue = ChartDataValue,\n TValue = unknown,\n> = DataKeyProp<TData> | DataKeyFn<TData, TValue>;\n\nexport type DataKeyValue<\n TData extends ChartDataValue,\n TDataKey extends DataKey<TData>,\n> = TDataKey extends (data: TData) => infer R\n ? R\n : TDataKey extends keyof TData\n ? TData[TDataKey]\n : never;\n\nexport const isDataKeyWithLabel = <TData extends ChartDataValue>(\n obj: unknown,\n): obj is DataKeyWithLabel<TData> => {\n return (\n typeof obj === \"object\" &&\n obj !== null &&\n \"dataKeyLabel\" in obj &&\n typeof obj.dataKeyLabel === \"string\"\n );\n};\n\n/**\n * The orientation of the chart's axes and graphical items. `\"horizontal\"` puts\n * the category axis on the x-axis (bars grow upwards), `\"vertical\"` puts it on\n * the y-axis (bars grow to the side).\n */\nexport type CartesianChartLayout = \"horizontal\" | \"vertical\";\n"],"mappings":";;;AA6BA,IAAa,sBACX,QACmC;CACnC,OACE,OAAO,QAAQ,YACf,QAAQ,QACR,kBAAkB,OAClB,OAAO,IAAI,iBAAiB;AAEhC"}
|
|
@@ -4,7 +4,7 @@ import { useLocalizedStringFormatter } from "../TranslationProvider/useLocalized
|
|
|
4
4
|
import { Button } from "../Button/Button.mjs";
|
|
5
5
|
import CodeBlock_module_default from "./CodeBlock.module.mjs";
|
|
6
6
|
import { CodeEditor } from "../CodeEditor/CodeEditor.mjs";
|
|
7
|
-
import __locale_default from "../../../../../_virtual/
|
|
7
|
+
import __locale_default from "../../../../../_virtual/_11.locale.mjs";
|
|
8
8
|
import clsx from "clsx";
|
|
9
9
|
import { useId, useState } from "react";
|
|
10
10
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -7,10 +7,11 @@ import { useLocalizedStringFormatter } from "../TranslationProvider/useLocalized
|
|
|
7
7
|
import { Button } from "../Button/Button.mjs";
|
|
8
8
|
import { UiComponentTunnelExit } from "../UiComponentTunnel/UiComponentTunnelExit.mjs";
|
|
9
9
|
import { useOverlayController } from "../../lib/controller/overlay/useOverlayController.mjs";
|
|
10
|
+
import { getOptionsTunnelProps } from "../Option/optionsTunnel.mjs";
|
|
10
11
|
import { Options } from "../Options/Options.mjs";
|
|
11
12
|
import { useFieldComponent } from "../../lib/hooks/useFieldComponent.mjs";
|
|
12
13
|
import ComboBox_module_default from "./ComboBox.module.mjs";
|
|
13
|
-
import __locale_default from "../../../../../_virtual/
|
|
14
|
+
import __locale_default from "../../../../../_virtual/_12.locale.mjs";
|
|
14
15
|
import clsx from "clsx";
|
|
15
16
|
import "react";
|
|
16
17
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -23,10 +24,7 @@ var ComboBox = flowComponent("ComboBox", (props) => {
|
|
|
23
24
|
const stringFormatter = useLocalizedStringFormatter(__locale_default, "ComboBox");
|
|
24
25
|
const rootClassName = clsx(fieldProps.className, ComboBox_module_default.comboBox, className);
|
|
25
26
|
const propsContext = {
|
|
26
|
-
Option: { tunnel:
|
|
27
|
-
id: "options",
|
|
28
|
-
component: "ComboBox"
|
|
29
|
-
} },
|
|
27
|
+
Option: { tunnel: getOptionsTunnelProps("ComboBox") },
|
|
30
28
|
...fieldPropsContext
|
|
31
29
|
};
|
|
32
30
|
const handleSelectionChange = (key) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComboBox.mjs","names":[],"sources":["../../../../../../../src/components/ComboBox/ComboBox.tsx"],"sourcesContent":["import { type PropsWithChildren } from \"react\";\nimport type { Key } from \"react-aria-components\";\nimport * as Aria from \"react-aria-components\";\nimport { Button } from \"@/components/Button\";\nimport { IconChevronDown } from \"@/components/Icon/components/icons\";\nimport { Options } from \"@/components/Options\";\nimport type { PropsContext } from \"@/lib/propsContext\";\nimport { PropsContextProvider } from \"@/lib/propsContext\";\nimport clsx from \"clsx\";\nimport styles from \"./ComboBox.module.scss\";\nimport locales from \"./locales/*.locale.json\";\nimport { useLocalizedStringFormatter } from \"@/components/TranslationProvider/useLocalizedStringFormatter\";\nimport type { FlowComponentProps } from \"@/lib/componentFactory/flowComponent\";\nimport { flowComponent } from \"@/lib/componentFactory/flowComponent\";\nimport { useOverlayController } from \"@/lib/controller\";\nimport type { OptionsProps } from \"@/components/Options/Options\";\nimport { useFieldComponent } from \"@/lib/hooks/useFieldComponent\";\nimport { UiComponentTunnelExit } from \"@/components/UiComponentTunnel/UiComponentTunnelExit\";\n\nexport interface ComboBoxProps\n extends\n Omit<Aria.ComboBoxProps<never>, \"children\" | \"onChange\">,\n Pick<Aria.InputProps, \"placeholder\">,\n Pick<OptionsProps, \"renderEmptyState\">,\n PropsWithChildren,\n FlowComponentProps<HTMLInputElement> {\n /** Called with the key of the selected option whenever the selection changes. */\n onChange?: (value: string) => void;\n}\n\n/** @flr-generate all */\nexport const ComboBox = flowComponent(\"ComboBox\", (props) => {\n const {\n children,\n className,\n menuTrigger = \"focus\",\n onChange,\n onSelectionChange,\n placeholder,\n ref,\n renderEmptyState,\n ...rest\n } = props;\n\n const {\n FieldErrorView,\n FieldErrorCaptureContext,\n fieldProps,\n fieldPropsContext,\n } = useFieldComponent(props, \"ComboBox\");\n\n const stringFormatter = useLocalizedStringFormatter(locales, \"ComboBox\");\n\n const rootClassName = clsx(fieldProps.className, styles.comboBox, className);\n\n const propsContext: PropsContext = {\n Option: {\n tunnel:
|
|
1
|
+
{"version":3,"file":"ComboBox.mjs","names":[],"sources":["../../../../../../../src/components/ComboBox/ComboBox.tsx"],"sourcesContent":["import { type PropsWithChildren } from \"react\";\nimport type { Key } from \"react-aria-components\";\nimport * as Aria from \"react-aria-components\";\nimport { Button } from \"@/components/Button\";\nimport { IconChevronDown } from \"@/components/Icon/components/icons\";\nimport { Options } from \"@/components/Options\";\nimport type { PropsContext } from \"@/lib/propsContext\";\nimport { PropsContextProvider } from \"@/lib/propsContext\";\nimport clsx from \"clsx\";\nimport styles from \"./ComboBox.module.scss\";\nimport locales from \"./locales/*.locale.json\";\nimport { useLocalizedStringFormatter } from \"@/components/TranslationProvider/useLocalizedStringFormatter\";\nimport type { FlowComponentProps } from \"@/lib/componentFactory/flowComponent\";\nimport { flowComponent } from \"@/lib/componentFactory/flowComponent\";\nimport { getOptionsTunnelProps } from \"@/components/Option/optionsTunnel\";\nimport { useOverlayController } from \"@/lib/controller\";\nimport type { OptionsProps } from \"@/components/Options/Options\";\nimport { useFieldComponent } from \"@/lib/hooks/useFieldComponent\";\nimport { UiComponentTunnelExit } from \"@/components/UiComponentTunnel/UiComponentTunnelExit\";\n\nexport interface ComboBoxProps\n extends\n Omit<Aria.ComboBoxProps<never>, \"children\" | \"onChange\">,\n Pick<Aria.InputProps, \"placeholder\">,\n Pick<OptionsProps, \"renderEmptyState\">,\n PropsWithChildren,\n FlowComponentProps<HTMLInputElement> {\n /** Called with the key of the selected option whenever the selection changes. */\n onChange?: (value: string) => void;\n}\n\n/** @flr-generate all */\nexport const ComboBox = flowComponent(\"ComboBox\", (props) => {\n const {\n children,\n className,\n menuTrigger = \"focus\",\n onChange,\n onSelectionChange,\n placeholder,\n ref,\n renderEmptyState,\n ...rest\n } = props;\n\n const {\n FieldErrorView,\n FieldErrorCaptureContext,\n fieldProps,\n fieldPropsContext,\n } = useFieldComponent(props, \"ComboBox\");\n\n const stringFormatter = useLocalizedStringFormatter(locales, \"ComboBox\");\n\n const rootClassName = clsx(fieldProps.className, styles.comboBox, className);\n\n const propsContext: PropsContext = {\n Option: {\n tunnel: getOptionsTunnelProps(\"ComboBox\"),\n },\n ...fieldPropsContext,\n };\n\n const handleSelectionChange = (key: Key | null) => {\n if (key === null) {\n return;\n }\n onChange?.(String(key));\n onSelectionChange?.(key);\n };\n\n const controller = useOverlayController(\"ComboBox\", {\n reuseControllerFromContext: false,\n });\n\n return (\n <Aria.ComboBox\n {...fieldProps}\n menuTrigger={menuTrigger}\n className={rootClassName}\n {...rest}\n onSelectionChange={handleSelectionChange}\n onOpenChange={(isOpen) => {\n controller.setOpen(isOpen);\n }}\n >\n <PropsContextProvider props={propsContext}>\n <FieldErrorCaptureContext>\n <div className={styles.input}>\n <Aria.Input placeholder={placeholder} ref={ref} />\n <Button\n className={styles.toggle}\n aria-label={stringFormatter.format(\"showOptions\")}\n variant=\"plain\"\n color=\"secondary\"\n >\n <IconChevronDown />\n </Button>\n </div>\n\n {children}\n\n <Options\n controller={controller}\n onOpenChange={() => {\n // cut-off to avoid double controller state changes\n }}\n renderEmptyState={renderEmptyState}\n >\n <UiComponentTunnelExit id=\"options\" component=\"ComboBox\" />\n </Options>\n </FieldErrorCaptureContext>\n <FieldErrorView />\n </PropsContextProvider>\n </Aria.ComboBox>\n );\n});\n\nexport default ComboBox;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAgCA,IAAa,WAAW,cAAc,aAAa,UAAU;CAC3D,MAAM,EACJ,UACA,WACA,cAAc,SACd,UACA,mBACA,aACA,KACA,kBACA,GAAG,SACD;CAEJ,MAAM,EACJ,gBACA,0BACA,YACA,sBACE,kBAAkB,OAAO,UAAU;CAEvC,MAAM,kBAAkB,4BAA4B,kBAAS,UAAU;CAEvE,MAAM,gBAAgB,KAAK,WAAW,WAAW,wBAAO,UAAU,SAAS;CAE3E,MAAM,eAA6B;EACjC,QAAQ,EACN,QAAQ,sBAAsB,UAAU,EAC1C;EACA,GAAG;CACL;CAEA,MAAM,yBAAyB,QAAoB;EACjD,IAAI,QAAQ,MACV;EAEF,WAAW,OAAO,GAAG,CAAC;EACtB,oBAAoB,GAAG;CACzB;CAEA,MAAM,aAAa,qBAAqB,YAAY,EAClD,4BAA4B,MAC9B,CAAC;CAED,OACE,oBAAC,KAAK,UAAN;EACE,GAAI;EACS;EACb,WAAW;EACX,GAAI;EACJ,mBAAmB;EACnB,eAAe,WAAW;GACxB,WAAW,QAAQ,MAAM;EAC3B;EAEA,UAAA,qBAAC,sBAAD;GAAsB,OAAO;GAA7B,UAAA,CACE,qBAAC,0BAAD,EAAA,UAAA;IACE,qBAAC,OAAD;KAAK,WAAW,wBAAO;KAAvB,UAAA,CACE,oBAAC,KAAK,OAAN;MAAyB;MAAkB;KAAM,CAAA,GACjD,oBAAC,QAAD;MACE,WAAW,wBAAO;MAClB,cAAY,gBAAgB,OAAO,aAAa;MAChD,SAAQ;MACR,OAAM;MAEN,UAAA,oBAAC,iBAAD,CAAkB,CAAA;KACZ,CAAA,CACL;;IAEJ;IAED,oBAAC,SAAD;KACc;KACZ,oBAAoB,CAEpB;KACkB;KAElB,UAAA,oBAAC,uBAAD;MAAuB,IAAG;MAAU,WAAU;KAAY,CAAA;IACnD,CAAA;GACe,EAAA,CAAA,GAC1B,oBAAC,gBAAD,CAAiB,CAAA,CACG;;CACT,CAAA;AAEnB,CAAC"}
|
|
@@ -5,7 +5,7 @@ import { flowComponent } from "../../../../lib/componentFactory/flowComponent.mj
|
|
|
5
5
|
import { IconInfo } from "../../../Icon/components/icons/IconInfo.mjs";
|
|
6
6
|
import { useLocalizedStringFormatter } from "../../../TranslationProvider/useLocalizedStringFormatter.mjs";
|
|
7
7
|
import { OverlayTrigger } from "../../../OverlayTrigger/OverlayTrigger.mjs";
|
|
8
|
-
import __locale_default from "../../../../../../../_virtual/
|
|
8
|
+
import __locale_default from "../../../../../../../_virtual/_4.locale.mjs";
|
|
9
9
|
import { jsx } from "react/jsx-runtime";
|
|
10
10
|
import * as Aria from "react-aria-components";
|
|
11
11
|
//#region src/components/ContextualHelp/components/ContextualHelpTrigger/ContextualHelpTrigger.tsx
|
|
@@ -5,7 +5,7 @@ import { IconCopy } from "../Icon/components/icons/IconCopy.mjs";
|
|
|
5
5
|
import { useLocalizedStringFormatter } from "../TranslationProvider/useLocalizedStringFormatter.mjs";
|
|
6
6
|
import { Button } from "../Button/Button.mjs";
|
|
7
7
|
import { Action } from "../Action/Action.mjs";
|
|
8
|
-
import __locale_default from "../../../../../_virtual/
|
|
8
|
+
import __locale_default from "../../../../../_virtual/_10.locale.mjs";
|
|
9
9
|
import { TooltipTrigger } from "../Tooltip/components/TooltipTrigger/TooltipTrigger.mjs";
|
|
10
10
|
import { Tooltip } from "../Tooltip/Tooltip.mjs";
|
|
11
11
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateRangeInput.module.mjs","names":[],"sources":["../../../../../../../../../src/components/DateRangePicker/components/DateRangeInput/DateRangeInput.module.scss"],"sourcesContent":["@use \"@/styles/mixins/formControl\";\n\n.dateRangeInput {\n display: flex;\n justify-content: space-between;\n\n @include formControl.formControl();\n\n > div {\n display: flex;\n align-items: center;\n }\n\n :global(.react-aria-DateInput) {\n display: flex;\n }\n\n :global(.react-aria-DateSegment) {\n border-radius: var(--date-picker--date-segment-corner-radius);\n transition-property: background-color;\n transition-duration: var(--transition--duration--default);\n\n &:focus {\n background: var(--date-picker--date-segment-background-color--focused);\n outline: none;\n }\n }\n\n > span {\n display: flex;\n align-items: center;\n }\n\n :global(.react-aria-DateInput):first-of-type {\n padding-inline-end:
|
|
1
|
+
{"version":3,"file":"DateRangeInput.module.mjs","names":[],"sources":["../../../../../../../../../src/components/DateRangePicker/components/DateRangeInput/DateRangeInput.module.scss"],"sourcesContent":["@use \"@/styles/mixins/formControl\";\n\n.dateRangeInput {\n display: flex;\n justify-content: space-between;\n\n @include formControl.formControl();\n\n > div {\n display: flex;\n align-items: center;\n }\n\n :global(.react-aria-DateInput) {\n display: flex;\n }\n\n :global(.react-aria-DateSegment) {\n border-radius: var(--date-picker--date-segment-corner-radius);\n transition-property: background-color;\n transition-duration: var(--transition--duration--default);\n\n &:focus {\n background: var(--date-picker--date-segment-background-color--focused);\n outline: none;\n }\n }\n\n > span {\n display: flex;\n align-items: center;\n }\n\n :global(.react-aria-DateInput):first-of-type {\n padding-inline-end: var(--size-px--xxs);\n }\n\n :global(.react-aria-DateInput):last-of-type {\n padding-inline-start: var(--size-px--xxs);\n }\n\n :global(.flow--button) {\n margin-block: calc((var(--form-control--padding-y) - 1px) * -1);\n margin-inline-end: calc(var(--form-control--padding-x) * -1);\n padding: calc(\n var(--button--padding-icon-only) - var(--form-control--border-width)\n );\n outline-offset: calc(var(--size-px--xxxs) * -1);\n }\n\n [data-placeholder=\"true\"] ~ * {\n color: var(--form-control--placeholder-color--default);\n }\n\n [data-disabled=\"true\"] ~ * {\n color: var(--form-control--placeholder-color--disabled);\n }\n}\n"],"mappings":""}
|