@rocket.chat/fuselage 0.81.0 → 0.83.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Accordion/Accordion.d.ts +3 -0
- package/dist/components/Accordion/Accordion.d.ts.map +1 -1
- package/dist/components/AnimatedVisibility/AnimatedVisibility.d.ts.map +1 -1
- package/dist/components/AudioPlayer/AudioPlayer.d.ts +3 -0
- package/dist/components/AudioPlayer/AudioPlayer.d.ts.map +1 -1
- package/dist/components/AudioPlayer/AudioPlayerControls.d.ts +7 -0
- package/dist/components/AudioPlayer/AudioPlayerControls.d.ts.map +1 -1
- package/dist/components/AutoComplete/AutoComplete.d.ts +3 -0
- package/dist/components/AutoComplete/AutoComplete.d.ts.map +1 -1
- package/dist/components/Badge/Badge.d.ts +3 -0
- package/dist/components/Badge/Badge.d.ts.map +1 -1
- package/dist/components/Box/Box.d.ts +5 -2
- package/dist/components/Box/Box.d.ts.map +1 -1
- package/dist/components/Box/StylingBox.d.ts +6 -0
- package/dist/components/Box/StylingBox.d.ts.map +1 -1
- package/dist/components/Box/stylingProps.d.ts +0 -19
- package/dist/components/Box/stylingProps.d.ts.map +1 -1
- package/dist/components/Button/Button.d.ts +3 -0
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/index.d.ts +0 -1
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.d.ts +3 -0
- package/dist/components/ButtonGroup/ButtonGroup.d.ts.map +1 -1
- package/dist/components/Callout/Callout.d.ts +3 -0
- package/dist/components/Callout/Callout.d.ts.map +1 -1
- package/dist/components/Card/CardDivider.d.ts.map +1 -1
- package/dist/components/Chevron/Chevron.d.ts.map +1 -1
- package/dist/components/CodeSnippet/CodeSnippet.d.ts +7 -0
- package/dist/components/CodeSnippet/CodeSnippet.d.ts.map +1 -1
- package/dist/components/Contextualbar/Contextualbar.d.ts +4 -1
- package/dist/components/Contextualbar/Contextualbar.d.ts.map +1 -1
- package/dist/components/ContextualbarV2/Contextualbar.d.ts +4 -1
- package/dist/components/ContextualbarV2/Contextualbar.d.ts.map +1 -1
- package/dist/components/Dropdown/Dropdown.d.ts.map +1 -1
- package/dist/components/EmailInput/EmailInput.d.ts +3 -0
- package/dist/components/EmailInput/EmailInput.d.ts.map +1 -1
- package/dist/components/Field/Field.d.ts +3 -0
- package/dist/components/Field/Field.d.ts.map +1 -1
- package/dist/components/FieldGroup/FieldGroup.d.ts +3 -0
- package/dist/components/FieldGroup/FieldGroup.d.ts.map +1 -1
- package/dist/components/Flex/FlexContainer.d.ts.map +1 -1
- package/dist/components/Flex/FlexItem.d.ts.map +1 -1
- package/dist/components/Flex/index.d.ts +0 -6
- package/dist/components/Flex/index.d.ts.map +1 -1
- package/dist/components/Icon/Icon.d.ts.map +1 -1
- package/dist/components/InputBox/InputBox.d.ts +7 -2
- package/dist/components/InputBox/InputBox.d.ts.map +1 -1
- package/dist/components/InputBox/InputBoxAddon.d.ts +3 -0
- package/dist/components/InputBox/InputBoxAddon.d.ts.map +1 -1
- package/dist/components/Label/Label.d.ts +3 -0
- package/dist/components/Label/Label.d.ts.map +1 -1
- package/dist/components/Margins/Margins.d.ts +3 -0
- package/dist/components/Margins/Margins.d.ts.map +1 -1
- package/dist/components/Menu/Menu.d.ts +5 -2
- package/dist/components/Menu/Menu.d.ts.map +1 -1
- package/dist/components/Menu/MenuPopover.d.ts +2 -2
- package/dist/components/Menu/MenuPopover.d.ts.map +1 -1
- package/dist/components/Menu/stately/PartialNode.d.ts +2 -2
- package/dist/components/Menu/stately/PartialNode.d.ts.map +1 -1
- package/dist/components/MultiSelect/MultiSelect.d.ts +6 -2
- package/dist/components/MultiSelect/MultiSelect.d.ts.map +1 -1
- package/dist/components/MultiSelect/MultiSelectFiltered.d.ts.map +1 -1
- package/dist/components/MultiSelect/MultiSelectFilteredAnchor.d.ts +3 -16
- package/dist/components/MultiSelect/MultiSelectFilteredAnchor.d.ts.map +1 -1
- package/dist/components/MultiSelect/MultiSelectFilteredContext.d.ts +7 -0
- package/dist/components/MultiSelect/MultiSelectFilteredContext.d.ts.map +1 -0
- package/dist/components/NavBar/NavBarSection.d.ts.map +1 -1
- package/dist/components/NumberInput/NumberInput.d.ts +3 -0
- package/dist/components/NumberInput/NumberInput.d.ts.map +1 -1
- package/dist/components/Option/Option.d.ts +3 -0
- package/dist/components/Option/Option.d.ts.map +1 -1
- package/dist/components/Options/Options.d.ts +3 -0
- package/dist/components/Options/Options.d.ts.map +1 -1
- package/dist/components/OptionsPaginated/OptionsPaginated.d.ts +3 -0
- package/dist/components/OptionsPaginated/OptionsPaginated.d.ts.map +1 -1
- package/dist/components/PaginatedSelect/PaginatedMultiSelect.d.ts.map +1 -1
- package/dist/components/PaletteStyleTag/PaletteStyleTag.d.ts +19 -0
- package/dist/components/PaletteStyleTag/PaletteStyleTag.d.ts.map +1 -1
- package/dist/components/Popover/Popover.d.ts +2 -2
- package/dist/components/Popover/Popover.d.ts.map +1 -1
- package/dist/components/{Position → PositionAnimated}/Position.d.ts +2 -2
- package/dist/components/PositionAnimated/Position.d.ts.map +1 -0
- package/dist/components/PositionAnimated/PositionAnimated.d.ts +9 -3
- package/dist/components/PositionAnimated/PositionAnimated.d.ts.map +1 -1
- package/dist/components/ProgressBar/ProgressBar.d.ts +3 -0
- package/dist/components/ProgressBar/ProgressBar.d.ts.map +1 -1
- package/dist/components/Scrollable/Scrollable.d.ts +3 -0
- package/dist/components/Scrollable/Scrollable.d.ts.map +1 -1
- package/dist/components/SearchInput/SearchInput.d.ts +3 -0
- package/dist/components/SearchInput/SearchInput.d.ts.map +1 -1
- package/dist/components/Select/Listbox.d.ts +2 -2
- package/dist/components/Select/Listbox.d.ts.map +1 -1
- package/dist/components/Select/Select.d.ts +3 -0
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Select/SelectFiltered.d.ts +2 -2
- package/dist/components/Select/SelectFiltered.d.ts.map +1 -1
- package/dist/components/Select/SelectFilteredAnchor.d.ts +3 -13
- package/dist/components/Select/SelectFilteredAnchor.d.ts.map +1 -1
- package/dist/components/Select/SelectFilteredContext.d.ts +7 -0
- package/dist/components/Select/SelectFilteredContext.d.ts.map +1 -0
- package/dist/components/Select/SelectLegacy.d.ts +1 -1
- package/dist/components/Select/SelectLegacy.d.ts.map +1 -1
- package/dist/components/Sidebar/Item.d.ts +4 -14
- package/dist/components/Sidebar/Item.d.ts.map +1 -1
- package/dist/components/Sidebar/Section.d.ts +1 -3
- package/dist/components/Sidebar/Section.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.d.ts +1 -33
- package/dist/components/Sidebar/Sidebar.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarDivider.d.ts.map +1 -1
- package/dist/components/Sidebar/TopBar/TopBar.d.ts +3 -0
- package/dist/components/Sidebar/TopBar/TopBar.d.ts.map +1 -1
- package/dist/components/Sidebar/TopBar/TopBarWrapper.d.ts.map +1 -1
- package/dist/components/Sidebar/TopBar/index.d.ts +0 -15
- package/dist/components/Sidebar/TopBar/index.d.ts.map +1 -1
- package/dist/components/Sidebar/index.d.ts +1 -1
- package/dist/components/Sidebar/index.d.ts.map +1 -1
- package/dist/components/SidebarV2/helpers.d.ts.map +1 -1
- package/dist/components/Slider/Slider.d.ts +16 -0
- package/dist/components/Slider/Slider.d.ts.map +1 -1
- package/dist/components/StatusBullet/StatusBullet.d.ts +3 -0
- package/dist/components/StatusBullet/StatusBullet.d.ts.map +1 -1
- package/dist/components/Table/TableCell.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.d.ts +3 -4
- package/dist/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/components/Tag/Tag.d.ts +3 -0
- package/dist/components/Tag/Tag.d.ts.map +1 -1
- package/dist/components/TextAreaInput/TextAreaInput.d.ts +3 -0
- package/dist/components/TextAreaInput/TextAreaInput.d.ts.map +1 -1
- package/dist/components/TextInput/TextInput.d.ts +4 -5
- package/dist/components/TextInput/TextInput.d.ts.map +1 -1
- package/dist/components/Throbber/Throbber.d.ts +3 -0
- package/dist/components/Throbber/Throbber.d.ts.map +1 -1
- package/dist/components/ToastBar/ToastBar.d.ts +3 -0
- package/dist/components/ToastBar/ToastBar.d.ts.map +1 -1
- package/dist/components/index.d.ts +0 -3
- package/dist/components/index.d.ts.map +1 -1
- package/dist/fuselage.css +1 -1
- package/dist/fuselage.css.map +1 -1
- package/dist/fuselage.development.js +379 -406
- package/dist/fuselage.development.js.map +1 -1
- package/dist/fuselage.production.js +24 -24
- package/dist/helpers/composeClassNames.d.ts +32 -0
- package/dist/helpers/composeClassNames.d.ts.map +1 -1
- package/dist/helpers/exhaustiveCheck.d.ts +27 -0
- package/dist/helpers/exhaustiveCheck.d.ts.map +1 -1
- package/dist/styleTokens.d.ts +1 -0
- package/dist/styleTokens.d.ts.map +1 -1
- package/package.json +4 -4
- package/dist/components/Button/ActionButton.d.ts +0 -13
- package/dist/components/Button/ActionButton.d.ts.map +0 -1
- package/dist/components/Position/Position.d.ts.map +0 -1
- package/dist/components/Position/index.d.ts +0 -2
- package/dist/components/Position/index.d.ts.map +0 -1
- package/dist/components/SelectInput/SelectInput.d.ts +0 -5
- package/dist/components/SelectInput/SelectInput.d.ts.map +0 -1
- package/dist/components/SelectInput/SelectInputOption.d.ts +0 -6
- package/dist/components/SelectInput/SelectInputOption.d.ts.map +0 -1
- package/dist/components/SelectInput/SelectInputPlaceholder.d.ts +0 -6
- package/dist/components/SelectInput/SelectInputPlaceholder.d.ts.map +0 -1
- package/dist/components/SelectInput/index.d.ts +0 -3
- package/dist/components/SelectInput/index.d.ts.map +0 -1
- package/dist/components/TelephoneInput/TelephoneInput.d.ts +0 -5
- package/dist/components/TelephoneInput/TelephoneInput.d.ts.map +0 -1
- package/dist/components/TelephoneInput/index.d.ts +0 -2
- package/dist/components/TelephoneInput/index.d.ts.map +0 -1
|
@@ -2,17 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
if (process.env.NODE_ENV !== "production") {
|
|
4
4
|
(function() {
|
|
5
|
-
|
|
6
|
-
if(typeof exports === 'object' && typeof module === 'object')
|
|
7
|
-
module.exports = factory(require("@rocket.chat/css-in-js"), require("@rocket.chat/fuselage-hooks"), require("@rocket.chat/fuselage-tokens/colors.json"), require("@rocket.chat/fuselage-tokens/dist/badge.json"), require("@rocket.chat/fuselage-tokens/dist/button.json"), require("@rocket.chat/fuselage-tokens/dist/font.json"), require("@rocket.chat/fuselage-tokens/dist/shadow.json"), require("@rocket.chat/fuselage-tokens/dist/status.json"), require("@rocket.chat/fuselage-tokens/dist/statusBullet.json"), require("@rocket.chat/fuselage-tokens/dist/stroke.json"), require("@rocket.chat/fuselage-tokens/dist/surface.json"), require("@rocket.chat/fuselage-tokens/typography.json"), require("@rocket.chat/icons"), require("@rocket.chat/memo"), require("invariant"), require("react"), require("react-aria"), require("react-dom"), require("react-is"), require("react-keyed-flatten-children"), require("react-stately"), require("react-virtuoso"), require("react/jsx-runtime"));
|
|
8
|
-
else if(typeof define === 'function' && define.amd)
|
|
9
|
-
define("RocketChatFuselage", ["@rocket.chat/css-in-js", "@rocket.chat/fuselage-hooks", "@rocket.chat/fuselage-tokens/colors.json", "@rocket.chat/fuselage-tokens/dist/badge.json", "@rocket.chat/fuselage-tokens/dist/button.json", "@rocket.chat/fuselage-tokens/dist/font.json", "@rocket.chat/fuselage-tokens/dist/shadow.json", "@rocket.chat/fuselage-tokens/dist/status.json", "@rocket.chat/fuselage-tokens/dist/statusBullet.json", "@rocket.chat/fuselage-tokens/dist/stroke.json", "@rocket.chat/fuselage-tokens/dist/surface.json", "@rocket.chat/fuselage-tokens/typography.json", "@rocket.chat/icons", "@rocket.chat/memo", "invariant", "react", "react-aria", "react-dom", "react-is", "react-keyed-flatten-children", "react-stately", "react-virtuoso", "react/jsx-runtime"], factory);
|
|
10
|
-
else if(typeof exports === 'object')
|
|
11
|
-
exports["RocketChatFuselage"] = factory(require("@rocket.chat/css-in-js"), require("@rocket.chat/fuselage-hooks"), require("@rocket.chat/fuselage-tokens/colors.json"), require("@rocket.chat/fuselage-tokens/dist/badge.json"), require("@rocket.chat/fuselage-tokens/dist/button.json"), require("@rocket.chat/fuselage-tokens/dist/font.json"), require("@rocket.chat/fuselage-tokens/dist/shadow.json"), require("@rocket.chat/fuselage-tokens/dist/status.json"), require("@rocket.chat/fuselage-tokens/dist/statusBullet.json"), require("@rocket.chat/fuselage-tokens/dist/stroke.json"), require("@rocket.chat/fuselage-tokens/dist/surface.json"), require("@rocket.chat/fuselage-tokens/typography.json"), require("@rocket.chat/icons"), require("@rocket.chat/memo"), require("invariant"), require("react"), require("react-aria"), require("react-dom"), require("react-is"), require("react-keyed-flatten-children"), require("react-stately"), require("react-virtuoso"), require("react/jsx-runtime"));
|
|
12
|
-
else
|
|
13
|
-
root["RocketChatFuselage"] = factory(root["@rocket.chat/css-in-js"], root["@rocket.chat/fuselage-hooks"], root["@rocket.chat/fuselage-tokens/colors.json"], root["@rocket.chat/fuselage-tokens/dist/badge.json"], root["@rocket.chat/fuselage-tokens/dist/button.json"], root["@rocket.chat/fuselage-tokens/dist/font.json"], root["@rocket.chat/fuselage-tokens/dist/shadow.json"], root["@rocket.chat/fuselage-tokens/dist/status.json"], root["@rocket.chat/fuselage-tokens/dist/statusBullet.json"], root["@rocket.chat/fuselage-tokens/dist/stroke.json"], root["@rocket.chat/fuselage-tokens/dist/surface.json"], root["@rocket.chat/fuselage-tokens/typography.json"], root["@rocket.chat/icons"], root["@rocket.chat/memo"], root["invariant"], root["react"], root["react-aria"], root["react-dom"], root["react-is"], root["react-keyed-flatten-children"], root["react-stately"], root["react-virtuoso"], root["react/jsx-runtime"]);
|
|
14
|
-
})(self, (__WEBPACK_EXTERNAL_MODULE__rocket_chat_css_in_js__, __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_hooks__, __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_tokens_colors_json__, __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_tokens_dist_badge_json__, __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_tokens_dist_button_json__, __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_tokens_dist_font_json__, __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_tokens_dist_shadow_json__, __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_tokens_dist_status_json__, __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_tokens_dist_statusBullet_json__, __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_tokens_dist_stroke_json__, __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_tokens_dist_surface_json__, __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_tokens_typography_json__, __WEBPACK_EXTERNAL_MODULE__rocket_chat_icons__, __WEBPACK_EXTERNAL_MODULE__rocket_chat_memo__, __WEBPACK_EXTERNAL_MODULE_invariant__, __WEBPACK_EXTERNAL_MODULE_react__, __WEBPACK_EXTERNAL_MODULE_react_aria__, __WEBPACK_EXTERNAL_MODULE_react_dom__, __WEBPACK_EXTERNAL_MODULE_react_is__, __WEBPACK_EXTERNAL_MODULE_react_keyed_flatten_children__, __WEBPACK_EXTERNAL_MODULE_react_stately__, __WEBPACK_EXTERNAL_MODULE_react_virtuoso__, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__) => {
|
|
15
|
-
return /******/ (() => { // webpackBootstrap
|
|
5
|
+
/******/ (() => { // webpackBootstrap
|
|
16
6
|
/******/ "use strict";
|
|
17
7
|
/******/ var __webpack_modules__ = ({
|
|
18
8
|
|
|
@@ -289,6 +279,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
289
279
|
const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
|
|
290
280
|
const composeClassNames_1 = __webpack_require__(/*! ../../helpers/composeClassNames */ "./src/helpers/composeClassNames.ts");
|
|
291
281
|
const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
|
|
282
|
+
/**
|
|
283
|
+
* An `Accordion` allows users to toggle the display of sections of content.
|
|
284
|
+
*/
|
|
292
285
|
const Accordion = ({ children, ...props }) => ((0, jsx_runtime_1.jsx)(Box_1.StylingBox, { ...props, children: (0, jsx_runtime_1.jsx)("div", { className: (0, composeClassNames_1.cx)((0, composeClassNames_1.cxx)('rcx-box')('full', 'animated'), 'rcx-accordion'), children: children }) }));
|
|
293
286
|
exports["default"] = Accordion;
|
|
294
287
|
|
|
@@ -459,7 +452,7 @@ const AnimatedVisibility = (props) => {
|
|
|
459
452
|
if (visibility === AnimatedVisibility.HIDDEN) {
|
|
460
453
|
return null;
|
|
461
454
|
}
|
|
462
|
-
return ((0, jsx_runtime_1.jsx)(BoxTransforms_1.BoxTransforms.Provider, { children: props.children
|
|
455
|
+
return ((0, jsx_runtime_1.jsx)(BoxTransforms_1.BoxTransforms.Provider, { value: composedFn, children: props.children }));
|
|
463
456
|
};
|
|
464
457
|
AnimatedVisibility.HIDDEN = 'hidden';
|
|
465
458
|
AnimatedVisibility.VISIBLE = 'visible';
|
|
@@ -575,7 +568,7 @@ const AudioPlayer = ({ ref, src, type = 'audio/mpeg', maxPlaybackSpeed = 2, minP
|
|
|
575
568
|
handlePlaybackSpeed(1);
|
|
576
569
|
};
|
|
577
570
|
const { document: ownerDocument } = (0, contexts_1.useOwnerDocument)();
|
|
578
|
-
return ((0, jsx_runtime_1.jsxs)(__1.Box, { borderWidth: 'default',
|
|
571
|
+
return ((0, jsx_runtime_1.jsxs)(__1.Box, { borderWidth: 'default', backgroundColor: 'tint', borderColor: 'extra-light', paddingBlock: 12, paddingInlineEnd: 8, paddingInlineStart: 16, borderRadius: 'x4', width: '100%', maxWidth: 'x300', ref: containerRef, display: 'flex', alignItems: 'center', children: [(0, jsx_runtime_1.jsx)(AudioPlayerControls_1.default, { isPlaying: isPlaying, currentTime: currentTime, durationTime: durationTime, playbackSpeed: playbackSpeed, onTogglePlay: handlePlay, onSeek: (time) => {
|
|
579
572
|
if (audioRef.current) {
|
|
580
573
|
audioRef.current.currentTime = time;
|
|
581
574
|
}
|
|
@@ -620,9 +613,16 @@ const Slider_1 = __webpack_require__(/*! ../Slider */ "./src/components/Slider/i
|
|
|
620
613
|
const getMaskTime = (durationTime) => new Date(durationTime * 1000)
|
|
621
614
|
.toISOString()
|
|
622
615
|
.slice(durationTime > 60 * 60 ? 11 : 14, 19);
|
|
623
|
-
|
|
616
|
+
/**
|
|
617
|
+
* Presentational, fully controlled audio controls (play/pause, seek, elapsed
|
|
618
|
+
* time, playback speed and optional download). It owns no `<audio>` element and
|
|
619
|
+
* no playback state, so it can be driven by any source — a local element or a
|
|
620
|
+
* shared/persistent one. `AudioPlayer` wraps this with its own element for the
|
|
621
|
+
* common self-contained case.
|
|
622
|
+
*/
|
|
623
|
+
const AudioPlayerControls = ({ isPlaying, currentTime, durationTime, playbackSpeed, onTogglePlay, onSeek, onChangePlaybackSpeed, download = false, downloadHref, onDownload, playLabel = 'Play', pauseLabel = 'Pause', audioPlaybackRangeLabel = 'Audio Playback Range', changePlaybackSpeedLabel = 'Change Playback Speed', downloadAudioFileLabel = 'Download Audio File', }) => ((0, jsx_runtime_1.jsxs)(__1.Box, { display: 'flex', alignItems: 'center', width: 'full', children: [(0, jsx_runtime_1.jsx)(__1.IconButton, { primary: true, medium: true, onClick: onTogglePlay, "aria-label": isPlaying ? pauseLabel : playLabel, icon: isPlaying ? 'pause-shape-filled' : 'play-shape-filled' }), (0, jsx_runtime_1.jsxs)(__1.Margins, { inline: 8, children: [(0, jsx_runtime_1.jsx)(__1.Box, { fontScale: 'p2', color: 'secondary-info', children: isPlaying || currentTime > 0
|
|
624
624
|
? getMaskTime(currentTime)
|
|
625
|
-
: getMaskTime(durationTime) }), (0, jsx_runtime_1.jsx)(__1.Box, {
|
|
625
|
+
: getMaskTime(durationTime) }), (0, jsx_runtime_1.jsx)(__1.Box, { width: 'full', children: (0, jsx_runtime_1.jsx)(Slider_1.Slider, { "aria-label": audioPlaybackRangeLabel, showOutput: false, value: currentTime, maxValue: durationTime, onChange: (value) => onSeek(Array.isArray(value) ? value[0] : value) }) }), (0, jsx_runtime_1.jsxs)(__1.Button, { secondary: true, small: true, onClick: onChangePlaybackSpeed, "aria-label": changePlaybackSpeedLabel, children: [playbackSpeed, "x"] })] }), download && ((0, jsx_runtime_1.jsx)(__1.IconButton, { primary: true, medium: true, is: 'a', href: downloadHref, download: true, icon: 'download', "aria-label": downloadAudioFileLabel, onClick: onDownload }))] }));
|
|
626
626
|
exports["default"] = AudioPlayerControls;
|
|
627
627
|
|
|
628
628
|
|
|
@@ -683,12 +683,16 @@ const isSelectedValid = (value) => (selected) => {
|
|
|
683
683
|
? selected.value === value
|
|
684
684
|
: value.includes(selected.value);
|
|
685
685
|
};
|
|
686
|
+
/**
|
|
687
|
+
* An input for selection of options.
|
|
688
|
+
*/
|
|
686
689
|
function AutoComplete({ ref, value, filter, setFilter, options = [], renderItem, renderSelected: RenderSelected, onChange, renderEmpty, placeholder, error, disabled, multiple, onBlur: onBlurAction = () => { }, ...props }) {
|
|
687
690
|
const innerRef = (0, react_1.useRef)(null);
|
|
688
691
|
const mergedRefs = (0, fuselage_hooks_1.useMergedRefs)(ref, innerRef);
|
|
689
692
|
const { ref: containerRef, borderBoxSize } = (0, fuselage_hooks_1.useResizeObserver)();
|
|
690
693
|
const [selected, setSelected] = (0, react_1.useState)(() => getSelected(value, options) || []);
|
|
691
694
|
(0, react_1.useEffect)(() => {
|
|
695
|
+
// Validates if selected items are still valid after value changes
|
|
692
696
|
setSelected((selected) => {
|
|
693
697
|
return !selected.every(isSelectedValid(value))
|
|
694
698
|
? selected.filter(isSelectedValid(value))
|
|
@@ -732,7 +736,7 @@ function AutoComplete({ ref, value, filter, setFilter, options = [], renderItem,
|
|
|
732
736
|
(0, react_1.useEffect)(reset, [filter, reset]);
|
|
733
737
|
return ((0, jsx_runtime_1.jsxs)(Box_1.Box, { "rcx-autocomplete": true, ref: containerRef, onClick: (0, fuselage_hooks_1.useStableCallback)(() => innerRef.current?.focus()), flexGrow: 1, className: (0, react_1.useMemo)(() => [error && 'invalid', disabled && 'disabled'], [error, disabled]), children: [(0, jsx_runtime_1.jsx)(Box_1.Box, { display: 'flex', flexGrow: 1, alignItems: 'center', flexWrap: 'wrap', margin: 'neg-x4', role: 'group', children: (0, jsx_runtime_1.jsxs)(Margins_1.Margins, { all: 'x4', children: [(0, jsx_runtime_1.jsx)(InputBox_1.Input, { ref: mergedRefs, onChange: (0, fuselage_hooks_1.useStableCallback)((e) => setFilter?.(e.currentTarget.value)), onBlur: handleOnBlur, onFocus: show, onKeyDown: handleKeyDown, placeholder: optionsAreVisible === AnimatedVisibility_1.AnimatedVisibility.HIDDEN || !value
|
|
734
738
|
? placeholder
|
|
735
|
-
: undefined, order: 1, "rcx-input-box--undecorated": true, value: filter, disabled: disabled, ...props }), selected.map((itemSelected) => RenderSelected ? ((0, jsx_runtime_1.jsx)(RenderSelected, { selected: itemSelected, onRemove: handleRemove }, itemSelected.value)) : ((0, jsx_runtime_1.jsx)(Chip_1.Chip, { value: itemSelected.value, children: itemSelected.label
|
|
739
|
+
: undefined, order: 1, "rcx-input-box--undecorated": true, value: filter, disabled: disabled, ...props }), selected.map((itemSelected) => RenderSelected ? ((0, jsx_runtime_1.jsx)(RenderSelected, { selected: itemSelected, onRemove: handleRemove }, itemSelected.value)) : ((0, jsx_runtime_1.jsx)(Chip_1.Chip, { value: itemSelected.value, onClick: handleRemove, children: itemSelected.label }, itemSelected.value)))] }) }), (0, jsx_runtime_1.jsx)(Box_1.Box, { "rcx-autocomplete__addon": true, children: (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: optionsAreVisible === AnimatedVisibility_1.AnimatedVisibility.VISIBLE
|
|
736
740
|
? 'cross'
|
|
737
741
|
: 'magnifier', size: 'x20', color: 'default' }) }), (0, jsx_runtime_1.jsx)(PositionAnimated_1.PositionAnimated, { visible: optionsAreVisible, anchor: containerRef, children: (0, jsx_runtime_1.jsx)(Options_1.Options, { width: borderBoxSize.inlineSize, onSelect: handleSelect, renderItem: renderItem, renderEmpty: renderEmpty, cursor: cursor, value: value, options: memoizedOptions }) })] }));
|
|
738
742
|
}
|
|
@@ -864,6 +868,9 @@ Object.defineProperty(exports, "AvatarStack", ({ enumerable: true, get: function
|
|
|
864
868
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
865
869
|
const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
|
|
866
870
|
const prependClassName_1 = __webpack_require__(/*! ../../helpers/prependClassName */ "./src/helpers/prependClassName.ts");
|
|
871
|
+
/**
|
|
872
|
+
* Communicates notification’s amount and types.
|
|
873
|
+
*/
|
|
867
874
|
function Badge({ is: Tag = 'span', variant = 'secondary', small, className, disabled, ...props }) {
|
|
868
875
|
const modifiers = [variant, small && 'small', disabled && 'disabled']
|
|
869
876
|
.filter(Boolean)
|
|
@@ -984,7 +991,7 @@ function Box({ is = 'div', ...props }) {
|
|
|
984
991
|
const propsWithoutBoxOnlyProps = (0, useBoxOnlyProps_1.useBoxOnlyProps)(propsWithoutStylingProps);
|
|
985
992
|
const element = (0, react_1.createElement)(is, propsWithoutBoxOnlyProps);
|
|
986
993
|
if (transformFn) {
|
|
987
|
-
return (0, jsx_runtime_1.jsx)(BoxTransforms_1.BoxTransforms.Provider, {
|
|
994
|
+
return ((0, jsx_runtime_1.jsx)(BoxTransforms_1.BoxTransforms.Provider, { value: null, children: element }));
|
|
988
995
|
}
|
|
989
996
|
return element;
|
|
990
997
|
}
|
|
@@ -1035,6 +1042,12 @@ exports.StylingBox = void 0;
|
|
|
1035
1042
|
const react_1 = __webpack_require__(/*! react */ "react");
|
|
1036
1043
|
const useArrayLikeClassNameProp_1 = __webpack_require__(/*! ../../hooks/useArrayLikeClassNameProp */ "./src/hooks/useArrayLikeClassNameProp.ts");
|
|
1037
1044
|
const useStylingProps_1 = __webpack_require__(/*! ./useStylingProps */ "./src/components/Box/useStylingProps.ts");
|
|
1045
|
+
/**
|
|
1046
|
+
* Merges its `StylingProps` props into a `className` prop passed to a child element.
|
|
1047
|
+
*
|
|
1048
|
+
* This is intended to be used as a wrapper for components that accept styling props but don't need the weight of the
|
|
1049
|
+
* `Box` component prop handling internally.
|
|
1050
|
+
*/
|
|
1038
1051
|
const StylingBox = ({ children, ...props }) => {
|
|
1039
1052
|
const propsWithStringClassName = (0, useArrayLikeClassNameProp_1.useArrayLikeClassNameProp)(props);
|
|
1040
1053
|
propsWithStringClassName.className = [
|
|
@@ -1141,9 +1154,6 @@ const lineHeightProp = {
|
|
|
1141
1154
|
const letterSpacingProp = {
|
|
1142
1155
|
toCSSValue: (value) => value ? String((0, styleTokens_1.fontScale)(value)?.letterSpacing || value) : undefined,
|
|
1143
1156
|
};
|
|
1144
|
-
const aliasOf = (propName) => ({
|
|
1145
|
-
aliasOf: propName,
|
|
1146
|
-
});
|
|
1147
1157
|
exports.propDefs = {
|
|
1148
1158
|
border: stringProp,
|
|
1149
1159
|
borderBlock: stringProp,
|
|
@@ -1180,7 +1190,6 @@ exports.propDefs = {
|
|
|
1180
1190
|
borderEndEndRadius: borderRadiusProp,
|
|
1181
1191
|
color: fontColorProp,
|
|
1182
1192
|
backgroundColor: backgroundColorProp,
|
|
1183
|
-
bg: aliasOf('backgroundColor'),
|
|
1184
1193
|
opacity: numberOrStringProp,
|
|
1185
1194
|
alignItems: stringProp,
|
|
1186
1195
|
alignContent: stringProp,
|
|
@@ -1197,11 +1206,9 @@ exports.propDefs = {
|
|
|
1197
1206
|
gap: gapProp,
|
|
1198
1207
|
rowGap: gapProp,
|
|
1199
1208
|
columnGap: gapProp,
|
|
1200
|
-
w: aliasOf('width'),
|
|
1201
1209
|
width: sizeProp,
|
|
1202
1210
|
minWidth: sizeProp,
|
|
1203
1211
|
maxWidth: sizeProp,
|
|
1204
|
-
h: aliasOf('height'),
|
|
1205
1212
|
height: sizeProp,
|
|
1206
1213
|
minHeight: sizeProp,
|
|
1207
1214
|
maxHeight: sizeProp,
|
|
@@ -1220,33 +1227,19 @@ exports.propDefs = {
|
|
|
1220
1227
|
insetInline: insetProp,
|
|
1221
1228
|
insetInlineStart: insetProp,
|
|
1222
1229
|
insetInlineEnd: insetProp,
|
|
1223
|
-
m: aliasOf('margin'),
|
|
1224
1230
|
margin: marginProp,
|
|
1225
|
-
mb: aliasOf('marginBlock'),
|
|
1226
1231
|
marginBlock: marginProp,
|
|
1227
|
-
mbs: aliasOf('marginBlockStart'),
|
|
1228
1232
|
marginBlockStart: marginProp,
|
|
1229
|
-
mbe: aliasOf('marginBlockEnd'),
|
|
1230
1233
|
marginBlockEnd: marginProp,
|
|
1231
|
-
mi: aliasOf('marginInline'),
|
|
1232
1234
|
marginInline: marginProp,
|
|
1233
|
-
mis: aliasOf('marginInlineStart'),
|
|
1234
1235
|
marginInlineStart: marginProp,
|
|
1235
|
-
mie: aliasOf('marginInlineEnd'),
|
|
1236
1236
|
marginInlineEnd: marginProp,
|
|
1237
|
-
p: aliasOf('padding'),
|
|
1238
1237
|
padding: paddingProp,
|
|
1239
|
-
pb: aliasOf('paddingBlock'),
|
|
1240
1238
|
paddingBlock: paddingProp,
|
|
1241
|
-
pbs: aliasOf('paddingBlockStart'),
|
|
1242
1239
|
paddingBlockStart: paddingProp,
|
|
1243
|
-
pbe: aliasOf('paddingBlockEnd'),
|
|
1244
1240
|
paddingBlockEnd: paddingProp,
|
|
1245
|
-
pi: aliasOf('paddingInline'),
|
|
1246
1241
|
paddingInline: paddingProp,
|
|
1247
|
-
pis: aliasOf('paddingInlineStart'),
|
|
1248
1242
|
paddingInlineStart: paddingProp,
|
|
1249
|
-
pie: aliasOf('paddingInlineEnd'),
|
|
1250
1243
|
paddingInlineEnd: paddingProp,
|
|
1251
1244
|
fontFamily: fontFamilyProp,
|
|
1252
1245
|
fontSize: fontSizeProp,
|
|
@@ -1345,19 +1338,6 @@ exports.propDefs = {
|
|
|
1345
1338
|
},
|
|
1346
1339
|
};
|
|
1347
1340
|
const compiledPropDefs = new Map(Object.entries(exports.propDefs).map(([propName, propDef]) => {
|
|
1348
|
-
if ('aliasOf' in propDef) {
|
|
1349
|
-
const { aliasOf: effectivePropName } = propDef;
|
|
1350
|
-
return [
|
|
1351
|
-
propName,
|
|
1352
|
-
(value, stylingProps) => {
|
|
1353
|
-
if (stylingProps.has(effectivePropName)) {
|
|
1354
|
-
return;
|
|
1355
|
-
}
|
|
1356
|
-
const inject = compiledPropDefs.get(effectivePropName);
|
|
1357
|
-
inject?.(value, stylingProps);
|
|
1358
|
-
},
|
|
1359
|
-
];
|
|
1360
|
-
}
|
|
1361
1341
|
if ('toCSSValue' in propDef) {
|
|
1362
1342
|
const cssProperty = (0, fromCamelToKebab_1.fromCamelToKebab)(propName);
|
|
1363
1343
|
const { toCSSValue } = propDef;
|
|
@@ -1516,7 +1496,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
1516
1496
|
exports.BubbleItem = void 0;
|
|
1517
1497
|
const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
|
|
1518
1498
|
const Icon_1 = __webpack_require__(/*! ../Icon */ "./src/components/Icon/index.ts");
|
|
1519
|
-
const BubbleItem = ({ secondary, label, icon, ...props }) => ((0, jsx_runtime_1.jsxs)("span", { className: `rcx-bubble__item ${secondary ? 'rcx-bubble__item--secondary' : 'rcx-bubble__item--primary'}`, ...props, children: [icon && (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: icon, size: 'x16',
|
|
1499
|
+
const BubbleItem = ({ secondary, label, icon, ...props }) => ((0, jsx_runtime_1.jsxs)("span", { className: `rcx-bubble__item ${secondary ? 'rcx-bubble__item--secondary' : 'rcx-bubble__item--primary'}`, ...props, children: [icon && (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: icon, size: 'x16', marginInlineEnd: 8 }), label && (0, jsx_runtime_1.jsx)("span", { children: label })] }));
|
|
1520
1500
|
exports.BubbleItem = BubbleItem;
|
|
1521
1501
|
|
|
1522
1502
|
|
|
@@ -1538,34 +1518,6 @@ var Bubble_1 = __webpack_require__(/*! ./Bubble */ "./src/components/Bubble/Bubb
|
|
|
1538
1518
|
Object.defineProperty(exports, "Bubble", ({ enumerable: true, get: function () { return __importDefault(Bubble_1).default; } }));
|
|
1539
1519
|
|
|
1540
1520
|
|
|
1541
|
-
/***/ },
|
|
1542
|
-
|
|
1543
|
-
/***/ "./src/components/Button/ActionButton.tsx"
|
|
1544
|
-
/*!************************************************!*\
|
|
1545
|
-
!*** ./src/components/Button/ActionButton.tsx ***!
|
|
1546
|
-
\************************************************/
|
|
1547
|
-
(__unused_webpack_module, exports, __webpack_require__) {
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1551
|
-
const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
|
|
1552
|
-
const Icon_1 = __webpack_require__(/*! ../Icon */ "./src/components/Icon/index.ts");
|
|
1553
|
-
const _1 = __webpack_require__(/*! . */ "./src/components/Button/index.ts");
|
|
1554
|
-
const getSize = ({ tiny, mini, small }) => {
|
|
1555
|
-
if (mini) {
|
|
1556
|
-
return 'x16';
|
|
1557
|
-
}
|
|
1558
|
-
if (tiny || small) {
|
|
1559
|
-
return 'x20';
|
|
1560
|
-
}
|
|
1561
|
-
return 'x20';
|
|
1562
|
-
};
|
|
1563
|
-
function ActionButton({ icon, children, ...props }) {
|
|
1564
|
-
return ((0, jsx_runtime_1.jsxs)(_1.Button, { square: true, flexShrink: 0, ...props, children: [children, (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: icon, size: getSize(props) })] }));
|
|
1565
|
-
}
|
|
1566
|
-
exports["default"] = ActionButton;
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
1521
|
/***/ },
|
|
1570
1522
|
|
|
1571
1523
|
/***/ "./src/components/Button/Button.tsx"
|
|
@@ -1580,6 +1532,9 @@ const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-ru
|
|
|
1580
1532
|
const react_1 = __webpack_require__(/*! react */ "react");
|
|
1581
1533
|
const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
|
|
1582
1534
|
const Icon_1 = __webpack_require__(/*! ../Icon */ "./src/components/Icon/index.ts");
|
|
1535
|
+
/**
|
|
1536
|
+
* Indicates an actionable user action.
|
|
1537
|
+
*/
|
|
1583
1538
|
function Button({ ref, primary, secondary, danger, warning, success, external, icon, is = 'button', rel: _rel, tiny, mini, small, medium, large, square, loading, disabled, children, ...props }) {
|
|
1584
1539
|
const extraProps = (is === 'a' && {
|
|
1585
1540
|
rel: external ? 'noopener noreferrer' : undefined,
|
|
@@ -1605,7 +1560,7 @@ function Button({ ref, primary, secondary, danger, warning, success, external, i
|
|
|
1605
1560
|
}
|
|
1606
1561
|
return {};
|
|
1607
1562
|
}, [primary, secondary, danger, warning, success]);
|
|
1608
|
-
return ((0, jsx_runtime_1.jsx)(Box_1.Box, { is: is, type: 'button', "rcx-button": true, ...kindAndVariantProps, "rcx-button--small": small, "rcx-button--medium": medium, "rcx-button--large": large, "rcx-button--square": square, "rcx-button--tiny-square": tiny && square, "rcx-button--mini-square": mini && square, "rcx-button--small-square": small && square, "rcx-button--medium-square": medium && square, "rcx-button--large-square": large && square, "rcx-button--loading": loading, disabled: disabled || loading, ref: ref, ...extraProps, ...props, children: (0, jsx_runtime_1.jsxs)("span", { className: 'rcx-button--content', children: [icon && !loading && (0, jsx_runtime_1.jsx)(Icon_1.Icon, { size: 'x16', name: icon,
|
|
1563
|
+
return ((0, jsx_runtime_1.jsx)(Box_1.Box, { is: is, type: 'button', "rcx-button": true, ...kindAndVariantProps, "rcx-button--small": small, "rcx-button--medium": medium, "rcx-button--large": large, "rcx-button--square": square, "rcx-button--tiny-square": tiny && square, "rcx-button--mini-square": mini && square, "rcx-button--small-square": small && square, "rcx-button--medium-square": medium && square, "rcx-button--large-square": large && square, "rcx-button--loading": loading, disabled: disabled || loading, ref: ref, ...extraProps, ...props, children: (0, jsx_runtime_1.jsxs)("span", { className: 'rcx-button--content', children: [icon && !loading && ((0, jsx_runtime_1.jsx)(Icon_1.Icon, { size: 'x16', name: icon, marginInlineEnd: 4 })), loading && (0, jsx_runtime_1.jsx)(Icon_1.Icon, { size: 'x16', name: 'loading', marginInlineEnd: 4 }), children] }) }));
|
|
1609
1564
|
}
|
|
1610
1565
|
exports["default"] = Button;
|
|
1611
1566
|
|
|
@@ -1692,11 +1647,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
1692
1647
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
1693
1648
|
};
|
|
1694
1649
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1695
|
-
exports.IconButton = exports.
|
|
1650
|
+
exports.IconButton = exports.Button = void 0;
|
|
1696
1651
|
var Button_1 = __webpack_require__(/*! ./Button */ "./src/components/Button/Button.tsx");
|
|
1697
1652
|
Object.defineProperty(exports, "Button", ({ enumerable: true, get: function () { return __importDefault(Button_1).default; } }));
|
|
1698
|
-
var ActionButton_1 = __webpack_require__(/*! ./ActionButton */ "./src/components/Button/ActionButton.tsx");
|
|
1699
|
-
Object.defineProperty(exports, "ActionButton", ({ enumerable: true, get: function () { return __importDefault(ActionButton_1).default; } }));
|
|
1700
1653
|
var IconButton_1 = __webpack_require__(/*! ./IconButton */ "./src/components/Button/IconButton.tsx");
|
|
1701
1654
|
Object.defineProperty(exports, "IconButton", ({ enumerable: true, get: function () { return __importDefault(IconButton_1).default; } }));
|
|
1702
1655
|
|
|
@@ -1712,6 +1665,9 @@ Object.defineProperty(exports, "IconButton", ({ enumerable: true, get: function
|
|
|
1712
1665
|
|
|
1713
1666
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1714
1667
|
const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
|
|
1668
|
+
/**
|
|
1669
|
+
* A container for grouping buttons that semantically share a common action context.
|
|
1670
|
+
*/
|
|
1715
1671
|
function ButtonGroup({ align = 'start', children, stretch, vertical, wrap, small, large, className, ...props }) {
|
|
1716
1672
|
return ((0, jsx_runtime_1.jsx)("div", { className: [
|
|
1717
1673
|
'rcx-button-group',
|
|
@@ -1762,6 +1718,9 @@ const fuselage_hooks_1 = __webpack_require__(/*! @rocket.chat/fuselage-hooks */
|
|
|
1762
1718
|
const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
|
|
1763
1719
|
const Icon_1 = __webpack_require__(/*! ../Icon */ "./src/components/Icon/index.ts");
|
|
1764
1720
|
const WRAPPER_LIMIT_SIZE = 420;
|
|
1721
|
+
/**
|
|
1722
|
+
* The `Callout` is used to get the user's attention explaining something important in the content of the current page.
|
|
1723
|
+
*/
|
|
1765
1724
|
const Callout = ({ type, title, children, icon, className, actions, ...props }) => {
|
|
1766
1725
|
const { ref, borderBoxSize } = (0, fuselage_hooks_1.useResizeObserver)();
|
|
1767
1726
|
const isLarge = borderBoxSize.inlineSize && borderBoxSize.inlineSize >= WRAPPER_LIMIT_SIZE;
|
|
@@ -1952,7 +1911,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
1952
1911
|
const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
|
|
1953
1912
|
const react_1 = __webpack_require__(/*! react */ "react");
|
|
1954
1913
|
const Grid_1 = __webpack_require__(/*! ../Grid */ "./src/components/Grid/index.ts");
|
|
1955
|
-
const CardGrid = ({ children, breakpoints, ...props }) => ((0, jsx_runtime_1.jsx)(Grid_1.Grid, { "rcx-card-grid": true,
|
|
1914
|
+
const CardGrid = ({ children, breakpoints, ...props }) => ((0, jsx_runtime_1.jsx)(Grid_1.Grid, { "rcx-card-grid": true, margin: -8, ...props, children: react_1.Children.map(children, (child) => ((0, jsx_runtime_1.jsx)(Grid_1.GridItem, { "rcx-card-grid__item": true, padding: 8, ...breakpoints, children: child }))) }));
|
|
1956
1915
|
exports["default"] = CardGrid;
|
|
1957
1916
|
|
|
1958
1917
|
|
|
@@ -2079,7 +2038,7 @@ const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts")
|
|
|
2079
2038
|
const Icon_1 = __webpack_require__(/*! ../Icon */ "./src/components/Icon/index.ts");
|
|
2080
2039
|
function Chevron({ up, right, down, left, size, ...props }) {
|
|
2081
2040
|
const children = (0, react_1.useMemo)(() => (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: 'chevron-down', size: size }), [size]);
|
|
2082
|
-
return ((0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'span',
|
|
2041
|
+
return ((0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'span', "rcx-chevron": true, "rcx-chevron--up": up, "rcx-chevron--right": right, "rcx-chevron--down": down, "rcx-chevron--left": left, ...props, children: children }));
|
|
2083
2042
|
}
|
|
2084
2043
|
exports["default"] = Chevron;
|
|
2085
2044
|
|
|
@@ -2160,9 +2119,16 @@ const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-ru
|
|
|
2160
2119
|
const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
|
|
2161
2120
|
const Button_1 = __webpack_require__(/*! ../Button */ "./src/components/Button/index.ts");
|
|
2162
2121
|
const Skeleton_1 = __webpack_require__(/*! ../Skeleton */ "./src/components/Skeleton/index.ts");
|
|
2122
|
+
/**
|
|
2123
|
+
* The `CodeSnippet` is used to show code or commands and make easier to copy them.
|
|
2124
|
+
*
|
|
2125
|
+
* The default button text is `Copy` but you can use the `buttonText` prop to handle translations in your project.
|
|
2126
|
+
*
|
|
2127
|
+
* Please check the `useClipBoard` hook in `fuselage-hooks` package, to handle the copy behaviour.
|
|
2128
|
+
*/
|
|
2163
2129
|
const CodeSnippet = ({ children, onClick, buttonText = 'Copy', buttonDisabled = false, ...props }) => {
|
|
2164
2130
|
if (!children) {
|
|
2165
|
-
return ((0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'pre', "rcx-code-snippet": true, ...props, children: (0, jsx_runtime_1.jsx)(Skeleton_1.Skeleton, {
|
|
2131
|
+
return ((0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'pre', "rcx-code-snippet": true, ...props, children: (0, jsx_runtime_1.jsx)(Skeleton_1.Skeleton, { width: '100%', "aria-hidden": true, "aria-busy": true }) }));
|
|
2166
2132
|
}
|
|
2167
2133
|
return ((0, jsx_runtime_1.jsxs)(Box_1.Box, { is: 'pre', "rcx-code-snippet": true, ...props, children: [(0, jsx_runtime_1.jsx)(Box_1.Box, { role: 'code', "rcx-code-snippet__codebox": true, children: children }), onClick && children && ((0, jsx_runtime_1.jsx)(Box_1.Box, { children: (0, jsx_runtime_1.jsx)(Button_1.Button, { small: true, primary: true, onClick: onClick, disabled: buttonDisabled, children: buttonText }) }))] }));
|
|
2168
2134
|
};
|
|
@@ -2200,8 +2166,11 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
2200
2166
|
const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
|
|
2201
2167
|
const react_1 = __webpack_require__(/*! react */ "react");
|
|
2202
2168
|
const __1 = __webpack_require__(/*! .. */ "./src/components/index.ts");
|
|
2203
|
-
|
|
2204
|
-
|
|
2169
|
+
/**
|
|
2170
|
+
* The `Contextualbar` has the purpose to persist and input information about the scope of the related page.
|
|
2171
|
+
*/
|
|
2172
|
+
function Contextualbar({ width, position, backgroundColor = 'room', ...props }) {
|
|
2173
|
+
return ((0, jsx_runtime_1.jsx)(__1.Box, { "rcx-vertical-bar": true, backgroundColor: backgroundColor, color: 'default', display: 'flex', flexDirection: 'column', flexShrink: 0, width: width, borderInlineStartWidth: 'default', borderInlineStartColor: 'extra-light', borderInlineStartStyle: 'solid', height: 'full', position: position, insetInlineEnd: 'none', insetBlockStart: 'none', zIndex: 10, ...props }));
|
|
2205
2174
|
}
|
|
2206
2175
|
exports["default"] = (0, react_1.memo)(Contextualbar);
|
|
2207
2176
|
|
|
@@ -2313,7 +2282,7 @@ const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-ru
|
|
|
2313
2282
|
const react_1 = __webpack_require__(/*! react */ "react");
|
|
2314
2283
|
const __1 = __webpack_require__(/*! .. */ "./src/components/index.ts");
|
|
2315
2284
|
function ContextualbarFooter(props) {
|
|
2316
|
-
return (0, jsx_runtime_1.jsx)(__1.Box, {
|
|
2285
|
+
return (0, jsx_runtime_1.jsx)(__1.Box, { padding: 24, ...props });
|
|
2317
2286
|
}
|
|
2318
2287
|
exports["default"] = (0, react_1.memo)(ContextualbarFooter);
|
|
2319
2288
|
|
|
@@ -2332,7 +2301,7 @@ const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-ru
|
|
|
2332
2301
|
const react_1 = __webpack_require__(/*! react */ "react");
|
|
2333
2302
|
const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
|
|
2334
2303
|
const Margins_1 = __webpack_require__(/*! ../Margins */ "./src/components/Margins/index.ts");
|
|
2335
|
-
const ContextualbarHeader = ({ children, ...props }) => ((0, jsx_runtime_1.jsx)(Box_1.Box, { display: 'flex', alignItems: 'center', height: 'x56',
|
|
2304
|
+
const ContextualbarHeader = ({ children, ...props }) => ((0, jsx_runtime_1.jsx)(Box_1.Box, { display: 'flex', alignItems: 'center', height: 'x56', paddingInline: 24, borderBlockEndWidth: 'default', borderBlockColor: 'extra-light', flexShrink: 0, ...props, children: (0, jsx_runtime_1.jsx)(Box_1.Box, { marginInline: 'neg-x4', display: 'flex', alignItems: 'center', justifyContent: 'space-between', flexGrow: 1, height: '100%', overflow: 'hidden', children: (0, jsx_runtime_1.jsx)(Margins_1.Margins, { inline: 'x4', children: children }) }) }));
|
|
2336
2305
|
exports["default"] = (0, react_1.memo)(ContextualbarHeader);
|
|
2337
2306
|
|
|
2338
2307
|
|
|
@@ -2349,7 +2318,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
2349
2318
|
const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
|
|
2350
2319
|
const react_1 = __webpack_require__(/*! react */ "react");
|
|
2351
2320
|
const Icon_1 = __webpack_require__(/*! ../Icon */ "./src/components/Icon/index.ts");
|
|
2352
|
-
const ContextualbarIcon = (props) => ((0, jsx_runtime_1.jsx)(Icon_1.Icon, { ...props,
|
|
2321
|
+
const ContextualbarIcon = (props) => ((0, jsx_runtime_1.jsx)(Icon_1.Icon, { ...props, paddingInline: 2, size: 'x24' }));
|
|
2353
2322
|
exports["default"] = (0, react_1.memo)(ContextualbarIcon);
|
|
2354
2323
|
|
|
2355
2324
|
|
|
@@ -2367,7 +2336,7 @@ const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-ru
|
|
|
2367
2336
|
const react_1 = __webpack_require__(/*! react */ "react");
|
|
2368
2337
|
const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
|
|
2369
2338
|
function ContextualbarSection(props) {
|
|
2370
|
-
return ((0, jsx_runtime_1.jsx)(Box_1.Box, { "rcx-vertical-bar__section": true,
|
|
2339
|
+
return ((0, jsx_runtime_1.jsx)(Box_1.Box, { "rcx-vertical-bar__section": true, paddingInline: 24, paddingBlock: 16, display: 'flex', alignItems: 'center', flexGrow: 1, borderBlockEndWidth: 'default', borderBlockColor: 'extra-light', ...props }));
|
|
2371
2340
|
}
|
|
2372
2341
|
exports["default"] = (0, react_1.memo)(ContextualbarSection);
|
|
2373
2342
|
|
|
@@ -2391,7 +2360,7 @@ const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts")
|
|
|
2391
2360
|
const Skeleton_1 = __webpack_require__(/*! ../Skeleton */ "./src/components/Skeleton/index.ts");
|
|
2392
2361
|
const Contextualbar_1 = __importDefault(__webpack_require__(/*! ./Contextualbar */ "./src/components/Contextualbar/Contextualbar.tsx"));
|
|
2393
2362
|
const ContextualbarHeader_1 = __importDefault(__webpack_require__(/*! ./ContextualbarHeader */ "./src/components/Contextualbar/ContextualbarHeader.tsx"));
|
|
2394
|
-
const ContextualbarSkeleton = (props) => ((0, jsx_runtime_1.jsxs)(Contextualbar_1.default, { ...props, children: [(0, jsx_runtime_1.jsx)(ContextualbarHeader_1.default, { children: (0, jsx_runtime_1.jsx)(Skeleton_1.Skeleton, { width: '100%' }) }), (0, jsx_runtime_1.jsxs)(Box_1.Box, {
|
|
2363
|
+
const ContextualbarSkeleton = (props) => ((0, jsx_runtime_1.jsxs)(Contextualbar_1.default, { ...props, children: [(0, jsx_runtime_1.jsx)(ContextualbarHeader_1.default, { children: (0, jsx_runtime_1.jsx)(Skeleton_1.Skeleton, { width: '100%' }) }), (0, jsx_runtime_1.jsxs)(Box_1.Box, { padding: 24, children: [(0, jsx_runtime_1.jsx)(Skeleton_1.Skeleton, { marginBlockEnd: 4, width: '32px', height: '32px', variant: 'rect' }), Array(5)
|
|
2395
2364
|
.fill(5)
|
|
2396
2365
|
.map((_, index) => ((0, jsx_runtime_1.jsx)(Skeleton_1.Skeleton, {}, index)))] })] }));
|
|
2397
2366
|
exports["default"] = (0, react_1.memo)(ContextualbarSkeleton);
|
|
@@ -2467,8 +2436,11 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
2467
2436
|
const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
|
|
2468
2437
|
const react_1 = __webpack_require__(/*! react */ "react");
|
|
2469
2438
|
const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
|
|
2470
|
-
|
|
2471
|
-
|
|
2439
|
+
/**
|
|
2440
|
+
* The `Contextualbar` has the purpose to persist and input information about the scope of the related page.
|
|
2441
|
+
*/
|
|
2442
|
+
function Contextualbar({ width, position, backgroundColor = 'room', ...props }) {
|
|
2443
|
+
return ((0, jsx_runtime_1.jsx)(Box_1.Box, { "rcx-vertical-bar": true, backgroundColor: backgroundColor, color: 'default', display: 'flex', flexDirection: 'column', flexShrink: 0, width: width, borderInlineStartWidth: 'default', borderInlineStartColor: 'extra-light', borderInlineStartStyle: 'solid', height: 'full', position: position, insetInlineEnd: 'none', insetBlockStart: 'none', zIndex: 10, ...props }));
|
|
2472
2444
|
}
|
|
2473
2445
|
exports["default"] = (0, react_1.memo)(Contextualbar);
|
|
2474
2446
|
|
|
@@ -2580,7 +2552,7 @@ const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-ru
|
|
|
2580
2552
|
const react_1 = __webpack_require__(/*! react */ "react");
|
|
2581
2553
|
const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
|
|
2582
2554
|
function ContextualbarFooter(props) {
|
|
2583
|
-
return (0, jsx_runtime_1.jsx)(Box_1.Box, {
|
|
2555
|
+
return (0, jsx_runtime_1.jsx)(Box_1.Box, { paddingInline: 16, paddingBlock: 20, ...props });
|
|
2584
2556
|
}
|
|
2585
2557
|
exports["default"] = (0, react_1.memo)(ContextualbarFooter);
|
|
2586
2558
|
|
|
@@ -2599,7 +2571,7 @@ const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-ru
|
|
|
2599
2571
|
const css_in_js_1 = __webpack_require__(/*! @rocket.chat/css-in-js */ "@rocket.chat/css-in-js");
|
|
2600
2572
|
const react_1 = __webpack_require__(/*! react */ "react");
|
|
2601
2573
|
const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
|
|
2602
|
-
const ContextualbarHeader = ({ children, ...props }) => ((0, jsx_runtime_1.jsx)(Box_1.Box, { display: 'flex', alignItems: 'center', height: 'x44',
|
|
2574
|
+
const ContextualbarHeader = ({ children, ...props }) => ((0, jsx_runtime_1.jsx)(Box_1.Box, { display: 'flex', alignItems: 'center', height: 'x44', paddingInline: 16, borderBlockEndWidth: 'default', borderBlockColor: 'extra-light', flexShrink: 0, ...props, children: (0, jsx_runtime_1.jsx)(Box_1.Box, { display: 'flex', alignItems: 'center', justifyContent: 'space-between', flexGrow: 1, height: '100%', overflow: 'hidden', marginInline: -4, paddingInline: 4, className: (0, css_in_js_1.css) `
|
|
2603
2575
|
gap: 8px;
|
|
2604
2576
|
`, children: children }) }));
|
|
2605
2577
|
exports["default"] = (0, react_1.memo)(ContextualbarHeader);
|
|
@@ -2618,7 +2590,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
2618
2590
|
const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
|
|
2619
2591
|
const react_1 = __webpack_require__(/*! react */ "react");
|
|
2620
2592
|
const Icon_1 = __webpack_require__(/*! ../Icon */ "./src/components/Icon/index.ts");
|
|
2621
|
-
const ContextualbarIcon = (props) => ((0, jsx_runtime_1.jsx)(Icon_1.Icon, { ...props,
|
|
2593
|
+
const ContextualbarIcon = (props) => ((0, jsx_runtime_1.jsx)(Icon_1.Icon, { ...props, paddingInline: 2, size: 'x20' }));
|
|
2622
2594
|
exports["default"] = (0, react_1.memo)(ContextualbarIcon);
|
|
2623
2595
|
|
|
2624
2596
|
|
|
@@ -2636,7 +2608,7 @@ const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-ru
|
|
|
2636
2608
|
const react_1 = __webpack_require__(/*! react */ "react");
|
|
2637
2609
|
const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
|
|
2638
2610
|
function ContextualbarSection(props) {
|
|
2639
|
-
return ((0, jsx_runtime_1.jsx)(Box_1.Box, { "rcx-vertical-bar__section": true,
|
|
2611
|
+
return ((0, jsx_runtime_1.jsx)(Box_1.Box, { "rcx-vertical-bar__section": true, padding: 16, display: 'flex', alignItems: 'center', flexGrow: 1, borderBlockEndWidth: 'default', borderBlockColor: 'extra-light', ...props }));
|
|
2640
2612
|
}
|
|
2641
2613
|
exports["default"] = (0, react_1.memo)(ContextualbarSection);
|
|
2642
2614
|
|
|
@@ -2660,7 +2632,7 @@ const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts")
|
|
|
2660
2632
|
const Skeleton_1 = __webpack_require__(/*! ../Skeleton */ "./src/components/Skeleton/index.ts");
|
|
2661
2633
|
const Contextualbar_1 = __importDefault(__webpack_require__(/*! ./Contextualbar */ "./src/components/ContextualbarV2/Contextualbar.tsx"));
|
|
2662
2634
|
const ContextualbarHeader_1 = __importDefault(__webpack_require__(/*! ./ContextualbarHeader */ "./src/components/ContextualbarV2/ContextualbarHeader.tsx"));
|
|
2663
|
-
const ContextualbarSkeleton = (props) => ((0, jsx_runtime_1.jsxs)(Contextualbar_1.default, { ...props, children: [(0, jsx_runtime_1.jsx)(ContextualbarHeader_1.default, { children: (0, jsx_runtime_1.jsx)(Skeleton_1.Skeleton, { width: '100%' }) }), (0, jsx_runtime_1.jsxs)(Box_1.Box, {
|
|
2635
|
+
const ContextualbarSkeleton = (props) => ((0, jsx_runtime_1.jsxs)(Contextualbar_1.default, { ...props, children: [(0, jsx_runtime_1.jsx)(ContextualbarHeader_1.default, { children: (0, jsx_runtime_1.jsx)(Skeleton_1.Skeleton, { width: '100%' }) }), (0, jsx_runtime_1.jsxs)(Box_1.Box, { padding: 24, children: [(0, jsx_runtime_1.jsx)(Skeleton_1.Skeleton, { marginBlockEnd: 4, width: '32px', height: '32px', variant: 'rect' }), Array(5)
|
|
2664
2636
|
.fill(5)
|
|
2665
2637
|
.map((_, index) => ((0, jsx_runtime_1.jsx)(Skeleton_1.Skeleton, {}, index)))] })] }));
|
|
2666
2638
|
exports["default"] = (0, react_1.memo)(ContextualbarSkeleton);
|
|
@@ -2778,7 +2750,7 @@ const DropdownDesktopWrapper_1 = __webpack_require__(/*! ./DropdownDesktopWrappe
|
|
|
2778
2750
|
const DropdownMobile_1 = __webpack_require__(/*! ./DropdownMobile */ "./src/components/Dropdown/DropdownMobile.tsx");
|
|
2779
2751
|
function Dropdown({ ref, children, reference, placement = 'bottom-start', }) {
|
|
2780
2752
|
const notSmall = (0, fuselage_hooks_1.useMediaQuery)('(min-width: 500px)');
|
|
2781
|
-
return notSmall ? ((0, jsx_runtime_1.jsx)(DropdownDesktopWrapper_1.DropdownDesktopWrapper, { reference: reference,
|
|
2753
|
+
return notSmall ? ((0, jsx_runtime_1.jsx)(DropdownDesktopWrapper_1.DropdownDesktopWrapper, { reference: reference, placement: placement, ref: ref, children: children })) : ((0, jsx_runtime_1.jsx)(DropdownMobile_1.DropdownMobile, { ref: ref, children: children }));
|
|
2782
2754
|
}
|
|
2783
2755
|
exports["default"] = Dropdown;
|
|
2784
2756
|
|
|
@@ -2797,7 +2769,7 @@ exports.DropdownDesktop = DropdownDesktop;
|
|
|
2797
2769
|
const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
|
|
2798
2770
|
const __1 = __webpack_require__(/*! .. */ "./src/components/index.ts");
|
|
2799
2771
|
function DropdownDesktop({ children, style, ...props }) {
|
|
2800
|
-
return ((0, jsx_runtime_1.jsx)(__1.Tile, { style: style, elevation: '2',
|
|
2772
|
+
return ((0, jsx_runtime_1.jsx)(__1.Tile, { style: style, elevation: '2', paddingInline: '0', paddingBlock: '0', display: 'flex', flexDirection: 'column', overflow: 'auto', "data-testid": 'dropdown', ...props, children: (0, jsx_runtime_1.jsx)(__1.Box, { flexShrink: 1, paddingBlock: 12, children: style?.visibility === 'hidden' ? null : children }) }));
|
|
2801
2773
|
}
|
|
2802
2774
|
|
|
2803
2775
|
|
|
@@ -2837,7 +2809,7 @@ exports.DropdownMobile = DropdownMobile;
|
|
|
2837
2809
|
const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
|
|
2838
2810
|
const __1 = __webpack_require__(/*! .. */ "./src/components/index.ts");
|
|
2839
2811
|
function DropdownMobile({ children, ...props }) {
|
|
2840
|
-
return ((0, jsx_runtime_1.jsx)(__1.Tile, { elevation: '2',
|
|
2812
|
+
return ((0, jsx_runtime_1.jsx)(__1.Tile, { elevation: '2', paddingInline: '0', paddingBlock: '0', width: '100vw', maxHeight: '80%', position: 'fixed', display: 'flex', flexDirection: 'column', overflow: 'auto', style: { bottom: 0, left: 0 }, zIndex: 2, "data-testid": 'dropdown', ...props, children: (0, jsx_runtime_1.jsx)(__1.Box, { flexShrink: 1, paddingBlock: 16, children: children }) }));
|
|
2841
2813
|
}
|
|
2842
2814
|
|
|
2843
2815
|
|
|
@@ -2871,6 +2843,9 @@ Object.defineProperty(exports, "Dropdown", ({ enumerable: true, get: function ()
|
|
|
2871
2843
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2872
2844
|
const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
|
|
2873
2845
|
const InputBox_1 = __webpack_require__(/*! ../InputBox */ "./src/components/InputBox/index.ts");
|
|
2846
|
+
/**
|
|
2847
|
+
* An input for email addresses.
|
|
2848
|
+
*/
|
|
2874
2849
|
function EmailInput(props) {
|
|
2875
2850
|
return (0, jsx_runtime_1.jsx)(InputBox_1.InputBox, { type: 'email', ...props });
|
|
2876
2851
|
}
|
|
@@ -2910,6 +2885,9 @@ const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-ru
|
|
|
2910
2885
|
const react_1 = __webpack_require__(/*! react */ "react");
|
|
2911
2886
|
const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
|
|
2912
2887
|
exports.FieldContext = (0, react_1.createContext)(false);
|
|
2888
|
+
/**
|
|
2889
|
+
* A `Field` is a wrapper representing an entry in a form.
|
|
2890
|
+
*/
|
|
2913
2891
|
function Field(props) {
|
|
2914
2892
|
return ((0, jsx_runtime_1.jsx)(exports.FieldContext.Provider, { value: true, children: (0, jsx_runtime_1.jsx)(Box_1.Box, { "rcx-field": true, ...props }) }));
|
|
2915
2893
|
}
|
|
@@ -3158,6 +3136,9 @@ const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-ru
|
|
|
3158
3136
|
const appendClassName_1 = __webpack_require__(/*! ../../helpers/appendClassName */ "./src/helpers/appendClassName.ts");
|
|
3159
3137
|
const patchChildren_1 = __webpack_require__(/*! ../../helpers/patchChildren */ "./src/helpers/patchChildren.ts");
|
|
3160
3138
|
const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
|
|
3139
|
+
/**
|
|
3140
|
+
* A container for grouping fields that semantically share a common data context.
|
|
3141
|
+
*/
|
|
3161
3142
|
const FieldGroup = ({ children, ...props }) => ((0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'fieldset', "rcx-field-group": true, role: 'group', ...props, children: (0, patchChildren_1.patchChildren)(children, (childProps) => ({
|
|
3162
3143
|
className: (0, appendClassName_1.appendClassName)(childProps.className, 'rcx-field-group__item'),
|
|
3163
3144
|
})) }));
|
|
@@ -3226,7 +3207,7 @@ function FlexContainer({ inline = false, children, direction, wrap, alignItems,
|
|
|
3226
3207
|
}
|
|
3227
3208
|
return props;
|
|
3228
3209
|
}, [alignContent, alignItems, direction, inline, justifyContent, wrap]);
|
|
3229
|
-
return ((0, jsx_runtime_1.jsx)(BoxTransforms_1.BoxTransforms.Provider, {
|
|
3210
|
+
return ((0, jsx_runtime_1.jsx)(BoxTransforms_1.BoxTransforms.Provider, { value: (0, BoxTransforms_1.useComposedBoxTransform)(transformFn), children: children }));
|
|
3230
3211
|
}
|
|
3231
3212
|
exports["default"] = FlexContainer;
|
|
3232
3213
|
|
|
@@ -3266,7 +3247,7 @@ function FlexItem({ children, order, grow, shrink, basis, align, }) {
|
|
|
3266
3247
|
}
|
|
3267
3248
|
return props;
|
|
3268
3249
|
}, [align, basis, grow, order, shrink]);
|
|
3269
|
-
return ((0, jsx_runtime_1.jsx)(BoxTransforms_1.BoxTransforms.Provider, {
|
|
3250
|
+
return ((0, jsx_runtime_1.jsx)(BoxTransforms_1.BoxTransforms.Provider, { value: (0, BoxTransforms_1.useComposedBoxTransform)(transformFn), children: children }));
|
|
3270
3251
|
}
|
|
3271
3252
|
exports["default"] = FlexItem;
|
|
3272
3253
|
|
|
@@ -3284,17 +3265,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3284
3265
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
3285
3266
|
};
|
|
3286
3267
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3287
|
-
exports.
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
var
|
|
3291
|
-
Object.defineProperty(exports, "
|
|
3292
|
-
var FlexItem_2 = __webpack_require__(/*! ./FlexItem */ "./src/components/Flex/FlexItem.tsx");
|
|
3293
|
-
Object.defineProperty(exports, "FlexItem", ({ enumerable: true, get: function () { return __importDefault(FlexItem_2).default; } }));
|
|
3294
|
-
exports.Flex = {
|
|
3295
|
-
Container: FlexContainer_1.default,
|
|
3296
|
-
Item: FlexItem_1.default,
|
|
3297
|
-
};
|
|
3268
|
+
exports.FlexItem = exports.FlexContainer = void 0;
|
|
3269
|
+
var FlexContainer_1 = __webpack_require__(/*! ./FlexContainer */ "./src/components/Flex/FlexContainer.tsx");
|
|
3270
|
+
Object.defineProperty(exports, "FlexContainer", ({ enumerable: true, get: function () { return __importDefault(FlexContainer_1).default; } }));
|
|
3271
|
+
var FlexItem_1 = __webpack_require__(/*! ./FlexItem */ "./src/components/Flex/FlexItem.tsx");
|
|
3272
|
+
Object.defineProperty(exports, "FlexItem", ({ enumerable: true, get: function () { return __importDefault(FlexItem_1).default; } }));
|
|
3298
3273
|
|
|
3299
3274
|
|
|
3300
3275
|
/***/ },
|
|
@@ -3405,7 +3380,7 @@ const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-ru
|
|
|
3405
3380
|
const icons_1 = __importDefault(__webpack_require__(/*! @rocket.chat/icons */ "@rocket.chat/icons"));
|
|
3406
3381
|
const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
|
|
3407
3382
|
function Icon({ name, size, ...props }) {
|
|
3408
|
-
return ((0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'i', "rcx-icon": true, "rcx-icon--name": name,
|
|
3383
|
+
return ((0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'i', "rcx-icon": true, "rcx-icon--name": name, "aria-hidden": 'true', fontSize: size, ...props, children: icons_1.default[name] }));
|
|
3409
3384
|
}
|
|
3410
3385
|
exports["default"] = Icon;
|
|
3411
3386
|
|
|
@@ -3466,10 +3441,17 @@ const Icon_1 = __webpack_require__(/*! ../Icon */ "./src/components/Icon/index.t
|
|
|
3466
3441
|
const Input_1 = __importDefault(__webpack_require__(/*! ./Input */ "./src/components/InputBox/Input.tsx"));
|
|
3467
3442
|
const InputBoxAddon_1 = __importDefault(__webpack_require__(/*! ./InputBoxAddon */ "./src/components/InputBox/InputBoxAddon.tsx"));
|
|
3468
3443
|
const InputBoxWrapper_1 = __importDefault(__webpack_require__(/*! ./InputBoxWrapper */ "./src/components/InputBox/InputBoxWrapper.tsx"));
|
|
3469
|
-
|
|
3444
|
+
/**
|
|
3445
|
+
* A decorated input control with support for addons.
|
|
3446
|
+
*
|
|
3447
|
+
* Usually you'll perfer to use `-Input` (e.g. <LinkTo kind='Forms/TextInput' story='Default'>`TextInput`</LinkTo>)
|
|
3448
|
+
* components over this one because it works as a construction block for them.
|
|
3449
|
+
*/
|
|
3450
|
+
// eslint-disable-next-line complexity
|
|
3451
|
+
function InputBox({ ref, className, startAddon, endAddon, error, hidden, invisible, multiple, placeholderVisible, type = 'text', small, onChange, ...props }) {
|
|
3470
3452
|
const innerRef = (0, react_1.useRef)(null);
|
|
3471
3453
|
const mergedRef = (0, fuselage_hooks_1.useMergedRefs)(ref, innerRef);
|
|
3472
|
-
let defaultAddon = endAddon
|
|
3454
|
+
let defaultAddon = endAddon;
|
|
3473
3455
|
(0, react_1.useLayoutEffect)(() => {
|
|
3474
3456
|
if (innerRef.current && innerRef.current.setCustomValidity) {
|
|
3475
3457
|
innerRef.current.setCustomValidity(error || '');
|
|
@@ -3520,6 +3502,9 @@ exports["default"] = InputBox;
|
|
|
3520
3502
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3521
3503
|
const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
|
|
3522
3504
|
const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
|
|
3505
|
+
/**
|
|
3506
|
+
* An addon for the input box.
|
|
3507
|
+
*/
|
|
3523
3508
|
function InputBoxAddon(props) {
|
|
3524
3509
|
return (0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'span', "rcx-input-box__addon": true, ...props });
|
|
3525
3510
|
}
|
|
@@ -3596,10 +3581,13 @@ const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-ru
|
|
|
3596
3581
|
const react_1 = __webpack_require__(/*! react */ "react");
|
|
3597
3582
|
const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
|
|
3598
3583
|
const LabelContext = (0, react_1.createContext)(false);
|
|
3584
|
+
/**
|
|
3585
|
+
* A caption for an input component.
|
|
3586
|
+
*/
|
|
3599
3587
|
function Label({ disabled, is, required, children, ...props }) {
|
|
3600
3588
|
const isInsideLabel = (0, react_1.useContext)(LabelContext);
|
|
3601
3589
|
const component = is || (isInsideLabel && 'span') || 'label';
|
|
3602
|
-
return ((0, jsx_runtime_1.jsx)(LabelContext.Provider, { value: true, children: (0, jsx_runtime_1.jsxs)(Box_1.Box, { is: component, "rcx-label": true, "rcx-label--disabled": disabled, ...props, children: [children, required && ((0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'span', "rcx-label__required": true,
|
|
3590
|
+
return ((0, jsx_runtime_1.jsx)(LabelContext.Provider, { value: true, children: (0, jsx_runtime_1.jsxs)(Box_1.Box, { is: component, "rcx-label": true, "rcx-label--disabled": disabled, ...props, children: [children, required && ((0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'span', "rcx-label__required": true, marginInlineStart: 'x4', "aria-hidden": 'true', children: "*" }))] }) }));
|
|
3603
3591
|
}
|
|
3604
3592
|
exports["default"] = Label;
|
|
3605
3593
|
|
|
@@ -3618,7 +3606,7 @@ exports.LabelInfo = void 0;
|
|
|
3618
3606
|
const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
|
|
3619
3607
|
const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
|
|
3620
3608
|
const Icon_1 = __webpack_require__(/*! ../Icon */ "./src/components/Icon/index.ts");
|
|
3621
|
-
const LabelInfo = ({ title, id, ...props }) => ((0, jsx_runtime_1.jsxs)(Box_1.Box, { is: 'span',
|
|
3609
|
+
const LabelInfo = ({ title, id, ...props }) => ((0, jsx_runtime_1.jsxs)(Box_1.Box, { is: 'span', marginInline: 2, "rcx-label__info": true, children: [(0, jsx_runtime_1.jsx)("span", { hidden: true, id: id, children: title }), (0, jsx_runtime_1.jsx)(Icon_1.Icon, { ...props, name: 'info-circled', title: title })] }));
|
|
3622
3610
|
exports.LabelInfo = LabelInfo;
|
|
3623
3611
|
|
|
3624
3612
|
|
|
@@ -3658,6 +3646,9 @@ const patchChildren_1 = __webpack_require__(/*! ../../helpers/patchChildren */ "
|
|
|
3658
3646
|
const useStyle_1 = __webpack_require__(/*! ../../hooks/useStyle */ "./src/hooks/useStyle.ts");
|
|
3659
3647
|
const styleTokens_1 = __webpack_require__(/*! ../../styleTokens */ "./src/styleTokens.ts");
|
|
3660
3648
|
const BoxTransforms_1 = __webpack_require__(/*! ../Box/BoxTransforms */ "./src/components/Box/BoxTransforms.ts");
|
|
3649
|
+
/**
|
|
3650
|
+
* Add margins to the wrapped component.
|
|
3651
|
+
*/
|
|
3661
3652
|
const Margins = (props) => {
|
|
3662
3653
|
const { children, className, all, block, blockStart, blockEnd, inline, inlineStart, inlineEnd, } = props;
|
|
3663
3654
|
const transformFn = (0, react_1.useCallback)((props) => {
|
|
@@ -3719,7 +3710,7 @@ const Margins = (props) => {
|
|
|
3719
3710
|
const patchedChildren = (0, patchChildren_1.patchChildren)(children, (childProps) => ({
|
|
3720
3711
|
className: (0, appendClassName_1.appendClassName)(childProps.className, (0, appendClassName_1.appendClassName)(className, marginsClassName)),
|
|
3721
3712
|
}));
|
|
3722
|
-
return ((0, jsx_runtime_1.jsx)(BoxTransforms_1.BoxTransforms.Provider, {
|
|
3713
|
+
return ((0, jsx_runtime_1.jsx)(BoxTransforms_1.BoxTransforms.Provider, { value: (0, BoxTransforms_1.useComposedBoxTransform)(transformFn), children: patchedChildren }));
|
|
3723
3714
|
};
|
|
3724
3715
|
exports["default"] = Margins;
|
|
3725
3716
|
|
|
@@ -3842,6 +3833,8 @@ const MenuOption_1 = __importDefault(__webpack_require__(/*! ./MenuOption */ "./
|
|
|
3842
3833
|
function MenuItem({ item, state }) {
|
|
3843
3834
|
const ref = (0, react_1.useRef)(null);
|
|
3844
3835
|
const { menuItemProps: { onPointerUp, ...menuItemProps }, isFocused, isDisabled, } = (0, react_aria_1.useMenuItem)({ key: item.key }, state, ref);
|
|
3836
|
+
// There's an issue caused by conflicting event handlers. The popover opens on onPointerDown and the selection event for both, the menu (listbox), happens on onPointerUp.
|
|
3837
|
+
// As a workaround, we are overwriting `onPointerDown` event with `onPointerUp`
|
|
3845
3838
|
return ((0, jsx_runtime_1.jsxs)(MenuOption_1.default, { ...(0, react_aria_1.mergeProps)(menuItemProps, { onPointerDown: onPointerUp }), ref: ref, focus: isFocused, disabled: isDisabled, is: 'label', variant: item.value?.variant, children: [(0, jsx_runtime_1.jsx)("div", { className: 'rcx-option__wrapper', children: item.rendered }), item.value && item.value.description && ((0, jsx_runtime_1.jsx)(_1.MenuItemDescription, { children: item.value.description }))] }));
|
|
3846
3839
|
}
|
|
3847
3840
|
exports["default"] = MenuItem;
|
|
@@ -3933,7 +3926,8 @@ function MenuSection({ section, state, }) {
|
|
|
3933
3926
|
const { separatorProps } = (0, react_aria_1.useSeparator)({
|
|
3934
3927
|
elementType: 'span',
|
|
3935
3928
|
});
|
|
3936
|
-
|
|
3929
|
+
// If the section is not the first, add a separator element.
|
|
3930
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [section.key !== state.collection.getFirstKey() && ((0, jsx_runtime_1.jsx)(Divider_1.Divider, { ...separatorProps })), (0, jsx_runtime_1.jsxs)("div", { ...itemProps, children: [section.rendered && ((0, jsx_runtime_1.jsx)(Option_1.OptionTitle, { ...headingProps, children: section.rendered })), (0, jsx_runtime_1.jsx)(Box_1.Box, { ...groupProps, padding: '0', children: [...section.childNodes].map((node) => ((0, jsx_runtime_1.jsx)(MenuItem_1.default, { item: node, state: state }, node.key))) })] })] }));
|
|
3937
3931
|
}
|
|
3938
3932
|
exports["default"] = MenuSection;
|
|
3939
3933
|
|
|
@@ -3950,6 +3944,7 @@ exports["default"] = MenuSection;
|
|
|
3950
3944
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3951
3945
|
exports.getPlacement = void 0;
|
|
3952
3946
|
const getPlacement = (placement) => {
|
|
3947
|
+
// switch case for placement from usePosition placement to react-aria
|
|
3953
3948
|
switch (placement) {
|
|
3954
3949
|
case 'bottom':
|
|
3955
3950
|
return 'bottom';
|
|
@@ -5643,7 +5638,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
5643
5638
|
const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
|
|
5644
5639
|
const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
|
|
5645
5640
|
const Scrollable_1 = __webpack_require__(/*! ../Scrollable */ "./src/components/Scrollable/index.ts");
|
|
5646
|
-
const ModalContent = ({ children, onScrollContent, ...props }) => ((0, jsx_runtime_1.jsx)(Scrollable_1.Scrollable, { vertical: true, onScrollContent: onScrollContent, children: (0, jsx_runtime_1.jsx)(Box_1.Box, { "rcx-modal__content": true, children: (0, jsx_runtime_1.jsx)(Box_1.Box, { "rcx-modal__content-wrapper": true,
|
|
5641
|
+
const ModalContent = ({ children, onScrollContent, ...props }) => ((0, jsx_runtime_1.jsx)(Scrollable_1.Scrollable, { vertical: true, onScrollContent: onScrollContent, children: (0, jsx_runtime_1.jsx)(Box_1.Box, { "rcx-modal__content": true, children: (0, jsx_runtime_1.jsx)(Box_1.Box, { "rcx-modal__content-wrapper": true, marginInline: 24, ...props, children: children }) }) }));
|
|
5647
5642
|
exports["default"] = ModalContent;
|
|
5648
5643
|
|
|
5649
5644
|
|
|
@@ -5757,7 +5752,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
5757
5752
|
const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
|
|
5758
5753
|
const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
|
|
5759
5754
|
const Icon_1 = __webpack_require__(/*! ../Icon */ "./src/components/Icon/index.ts");
|
|
5760
|
-
const ModalIcon = ({ size = 'x20', name, alignItems = 'center', ...props }) => ((0, jsx_runtime_1.jsx)(Box_1.Box, { ...props, display: 'flex', alignItems: alignItems, children: (0, jsx_runtime_1.jsx)(Icon_1.Icon, {
|
|
5755
|
+
const ModalIcon = ({ size = 'x20', name, alignItems = 'center', ...props }) => ((0, jsx_runtime_1.jsx)(Box_1.Box, { ...props, display: 'flex', alignItems: alignItems, children: (0, jsx_runtime_1.jsx)(Icon_1.Icon, { marginBlock: 4, name: name, size: size }) }));
|
|
5761
5756
|
exports["default"] = ModalIcon;
|
|
5762
5757
|
|
|
5763
5758
|
|
|
@@ -5878,10 +5873,13 @@ const Icon_1 = __webpack_require__(/*! ../Icon */ "./src/components/Icon/index.t
|
|
|
5878
5873
|
const Margins_1 = __webpack_require__(/*! ../Margins */ "./src/components/Margins/index.ts");
|
|
5879
5874
|
const Option_1 = __webpack_require__(/*! ../Option */ "./src/components/Option/index.ts");
|
|
5880
5875
|
const Options_1 = __webpack_require__(/*! ../Options */ "./src/components/Options/index.ts");
|
|
5881
|
-
const
|
|
5876
|
+
const PositionAnimated_1 = __webpack_require__(/*! ../PositionAnimated */ "./src/components/PositionAnimated/index.ts");
|
|
5882
5877
|
const SelectAddon_1 = __importDefault(__webpack_require__(/*! ../Select/SelectAddon */ "./src/components/Select/SelectAddon.tsx"));
|
|
5883
5878
|
const MultiSelectAnchor_1 = __importDefault(__webpack_require__(/*! ./MultiSelectAnchor */ "./src/components/MultiSelect/MultiSelectAnchor.tsx"));
|
|
5884
5879
|
const SelectedOptions_1 = __webpack_require__(/*! ./SelectedOptions */ "./src/components/MultiSelect/SelectedOptions.tsx");
|
|
5880
|
+
/**
|
|
5881
|
+
* An input for selection of options.
|
|
5882
|
+
*/
|
|
5885
5883
|
function MultiSelect({ ref, value, filter, setFilter, options = [], error, disabled, anchor: Anchor = MultiSelectAnchor_1.default, onChange = () => { }, getLabel = ([, label] = ['', '']) => label, getValue = ([value]) => value, placeholder, renderOptions: _Options = Options_1.Options, renderItem, customEmpty, renderSelected: RenderSelected, addonIcon, ...props }) {
|
|
5886
5884
|
const [internalValue, setInternalValue] = (0, react_1.useState)(value || []);
|
|
5887
5885
|
(0, react_1.useEffect)(() => setInternalValue(value || []), [value]);
|
|
@@ -5939,7 +5937,7 @@ function MultiSelect({ ref, value, filter, setFilter, options = [], error, disab
|
|
|
5939
5937
|
}, children: getLabel(currentOption) }, String(value)));
|
|
5940
5938
|
})] }) }) }) }) }) }), (0, jsx_runtime_1.jsx)(Flex_1.FlexItem, { grow: 0, shrink: 0, children: (0, jsx_runtime_1.jsx)(Margins_1.Margins, { inline: 'x4', children: (0, jsx_runtime_1.jsx)(SelectAddon_1.default, { children: (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: visible === AnimatedVisibility_1.AnimatedVisibility.VISIBLE
|
|
5941
5939
|
? 'chevron-up'
|
|
5942
|
-
: addonIcon || 'chevron-down', size: 'x20' }) }) }) }), (0, jsx_runtime_1.jsx)(
|
|
5940
|
+
: addonIcon || 'chevron-down', size: 'x20' }) }) }) }), (0, jsx_runtime_1.jsx)(PositionAnimated_1.PositionAnimated, { visible: visible, anchor: containerRef, children: (0, jsx_runtime_1.jsx)(_Options, { width: borderBoxSize.inlineSize, onMouseDown: prevent_1.prevent, multiple: true, filter: filter, renderItem: renderItem || Option_1.CheckOption, id: listboxId, options: filteredOptions, onSelect: internalChanged, cursor: cursor, customEmpty: customEmpty }) })] }));
|
|
5943
5941
|
}
|
|
5944
5942
|
exports["default"] = MultiSelect;
|
|
5945
5943
|
|
|
@@ -5982,9 +5980,14 @@ const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-ru
|
|
|
5982
5980
|
const react_1 = __webpack_require__(/*! react */ "react");
|
|
5983
5981
|
const MultiSelect_1 = __importDefault(__webpack_require__(/*! ./MultiSelect */ "./src/components/MultiSelect/MultiSelect.tsx"));
|
|
5984
5982
|
const MultiSelectFilteredAnchor_1 = __importDefault(__webpack_require__(/*! ./MultiSelectFilteredAnchor */ "./src/components/MultiSelect/MultiSelectFilteredAnchor.tsx"));
|
|
5983
|
+
const MultiSelectFilteredContext_1 = __webpack_require__(/*! ./MultiSelectFilteredContext */ "./src/components/MultiSelect/MultiSelectFilteredContext.ts");
|
|
5985
5984
|
function MultiSelectFiltered({ options, placeholder, filter: propFilter, setFilter: propSetFilter, ...props }) {
|
|
5986
5985
|
const [filter, setFilter] = (0, react_1.useState)('');
|
|
5987
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
5986
|
+
return ((0, jsx_runtime_1.jsx)(MultiSelectFilteredContext_1.MultiSelectFilteredContext.Provider, { value: {
|
|
5987
|
+
placeholder,
|
|
5988
|
+
filter: propFilter || filter,
|
|
5989
|
+
setFilter: propSetFilter || setFilter,
|
|
5990
|
+
}, children: (0, jsx_runtime_1.jsx)(MultiSelect_1.default, { ...props, filter: propFilter || filter, setFilter: propSetFilter || setFilter, options: options, anchor: MultiSelectFilteredAnchor_1.default }) }));
|
|
5988
5991
|
}
|
|
5989
5992
|
exports["default"] = MultiSelectFiltered;
|
|
5990
5993
|
|
|
@@ -6000,14 +6003,32 @@ exports["default"] = MultiSelectFiltered;
|
|
|
6000
6003
|
|
|
6001
6004
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6002
6005
|
const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
|
|
6006
|
+
const react_1 = __webpack_require__(/*! react */ "react");
|
|
6003
6007
|
const Flex_1 = __webpack_require__(/*! ../Flex */ "./src/components/Flex/index.ts");
|
|
6004
6008
|
const InputBox_1 = __webpack_require__(/*! ../InputBox */ "./src/components/InputBox/index.ts");
|
|
6005
|
-
|
|
6006
|
-
|
|
6009
|
+
const MultiSelectFilteredContext_1 = __webpack_require__(/*! ./MultiSelectFilteredContext */ "./src/components/MultiSelect/MultiSelectFilteredContext.ts");
|
|
6010
|
+
function MultiSelectFilteredAnchor({ children: _children, ...props }) {
|
|
6011
|
+
const { placeholder, filter, setFilter } = (0, react_1.use)(MultiSelectFilteredContext_1.MultiSelectFilteredContext);
|
|
6012
|
+
return ((0, jsx_runtime_1.jsx)(Flex_1.FlexItem, { grow: 1, children: (0, jsx_runtime_1.jsx)(InputBox_1.Input, { placeholder: placeholder, value: filter, onInput: (e) => setFilter?.(e.currentTarget.value), ...props, "rcx-input-box--undecorated": true, order: 1, autoComplete: 'off' }) }));
|
|
6007
6013
|
}
|
|
6008
6014
|
exports["default"] = MultiSelectFilteredAnchor;
|
|
6009
6015
|
|
|
6010
6016
|
|
|
6017
|
+
/***/ },
|
|
6018
|
+
|
|
6019
|
+
/***/ "./src/components/MultiSelect/MultiSelectFilteredContext.ts"
|
|
6020
|
+
/*!******************************************************************!*\
|
|
6021
|
+
!*** ./src/components/MultiSelect/MultiSelectFilteredContext.ts ***!
|
|
6022
|
+
\******************************************************************/
|
|
6023
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
6024
|
+
|
|
6025
|
+
|
|
6026
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6027
|
+
exports.MultiSelectFilteredContext = void 0;
|
|
6028
|
+
const react_1 = __webpack_require__(/*! react */ "react");
|
|
6029
|
+
exports.MultiSelectFilteredContext = (0, react_1.createContext)({});
|
|
6030
|
+
|
|
6031
|
+
|
|
6011
6032
|
/***/ },
|
|
6012
6033
|
|
|
6013
6034
|
/***/ "./src/components/MultiSelect/SelectedOptions.tsx"
|
|
@@ -6134,17 +6155,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
6134
6155
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6135
6156
|
const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
|
|
6136
6157
|
const react_1 = __webpack_require__(/*! react */ "react");
|
|
6158
|
+
const react_is_1 = __webpack_require__(/*! react-is */ "react-is");
|
|
6159
|
+
const react_keyed_flatten_children_1 = __importDefault(__webpack_require__(/*! react-keyed-flatten-children */ "react-keyed-flatten-children"));
|
|
6137
6160
|
const NavBarDivider_1 = __importDefault(__webpack_require__(/*! ./NavBarDivider */ "./src/components/NavBar/NavBarDivider.tsx"));
|
|
6138
|
-
const NavBarGroup_1 = __importDefault(__webpack_require__(/*! ./NavBarGroup */ "./src/components/NavBar/NavBarGroup.tsx"));
|
|
6139
|
-
const isNavBarGroup = (child) => {
|
|
6140
|
-
if (!(0, react_1.isValidElement)(child))
|
|
6141
|
-
return false;
|
|
6142
|
-
const component = child.type;
|
|
6143
|
-
return component.name === NavBarGroup_1.default.name;
|
|
6144
|
-
};
|
|
6145
6161
|
const NavBarSection = ({ children, ...props }) => {
|
|
6146
|
-
const
|
|
6147
|
-
return ((0, jsx_runtime_1.jsx)("span", { className: 'rcx-navbar-section', ...props, children:
|
|
6162
|
+
const groups = (0, react_keyed_flatten_children_1.default)(children).filter(react_is_1.isElement);
|
|
6163
|
+
return ((0, jsx_runtime_1.jsx)("span", { className: 'rcx-navbar-section', ...props, children: groups.map((child, index) => ((0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [child, index < groups.length - 1 && (0, jsx_runtime_1.jsx)(NavBarDivider_1.default, {})] }, index))) }));
|
|
6148
6164
|
};
|
|
6149
6165
|
exports["default"] = NavBarSection;
|
|
6150
6166
|
|
|
@@ -6187,6 +6203,9 @@ Object.defineProperty(exports, "NavBarSection", ({ enumerable: true, get: functi
|
|
|
6187
6203
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6188
6204
|
const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
|
|
6189
6205
|
const InputBox_1 = __webpack_require__(/*! ../InputBox */ "./src/components/InputBox/index.ts");
|
|
6206
|
+
/**
|
|
6207
|
+
* An input for numbers.
|
|
6208
|
+
*/
|
|
6190
6209
|
function NumberInput(props) {
|
|
6191
6210
|
return (0, jsx_runtime_1.jsx)(InputBox_1.InputBox, { type: 'number', ...props });
|
|
6192
6211
|
}
|
|
@@ -6255,6 +6274,9 @@ const OptionAvatar_1 = __importDefault(__webpack_require__(/*! ./OptionAvatar */
|
|
|
6255
6274
|
const OptionColumn_1 = __importDefault(__webpack_require__(/*! ./OptionColumn */ "./src/components/Option/OptionColumn.tsx"));
|
|
6256
6275
|
const OptionContent_1 = __importDefault(__webpack_require__(/*! ./OptionContent */ "./src/components/Option/OptionContent.tsx"));
|
|
6257
6276
|
const OptionIcon_1 = __importDefault(__webpack_require__(/*! ./OptionIcon */ "./src/components/Option/OptionIcon.tsx"));
|
|
6277
|
+
/**
|
|
6278
|
+
* The generic `Option` item of options. Can be freely used or inside the `Options` as well.
|
|
6279
|
+
*/
|
|
6258
6280
|
function Option({ is: Tag = 'li', id, children, label, focus, selected, className, icon, gap, avatar, title, disabled, variant, onClick, description, ...props }) {
|
|
6259
6281
|
return ((0, react_1.createElement)(Tag, { ...props, key: id, id: id, "aria-selected": !!selected, "aria-disabled": !!disabled, title: title, onClick: (e) => {
|
|
6260
6282
|
if (disabled) {
|
|
@@ -6558,6 +6580,9 @@ const Option_1 = __webpack_require__(/*! ../Option */ "./src/components/Option/i
|
|
|
6558
6580
|
const Scrollable_1 = __webpack_require__(/*! ../Scrollable */ "./src/components/Scrollable/index.ts");
|
|
6559
6581
|
const Tile_1 = __webpack_require__(/*! ../Tile */ "./src/components/Tile/index.ts");
|
|
6560
6582
|
const OptionsEmpty_1 = __importDefault(__webpack_require__(/*! ./OptionsEmpty */ "./src/components/Options/OptionsEmpty.tsx"));
|
|
6583
|
+
/**
|
|
6584
|
+
* An input for selection of options.
|
|
6585
|
+
*/
|
|
6561
6586
|
function Options({ maxHeight = 'x144', multiple, renderEmpty: EmptyComponent = OptionsEmpty_1.default, options, cursor, renderItem: OptionComponent = Option_1.Option, onSelect, customEmpty, id, ...props }) {
|
|
6562
6587
|
const liRef = (0, react_1.useRef)(null);
|
|
6563
6588
|
(0, react_1.useLayoutEffect)(() => {
|
|
@@ -6727,7 +6752,7 @@ const useCursor = (initial, options, onChange) => {
|
|
|
6727
6752
|
e.preventDefault();
|
|
6728
6753
|
if (visibility === AnimatedVisibility_1.AnimatedVisibility.VISIBLE) {
|
|
6729
6754
|
e.persist();
|
|
6730
|
-
e.nativeEvent.stopImmediatePropagation();
|
|
6755
|
+
e.nativeEvent.stopImmediatePropagation(); // TODO
|
|
6731
6756
|
e.stopPropagation();
|
|
6732
6757
|
}
|
|
6733
6758
|
hide();
|
|
@@ -6739,7 +6764,7 @@ const useCursor = (initial, options, onChange) => {
|
|
|
6739
6764
|
hide();
|
|
6740
6765
|
if (visibility === AnimatedVisibility_1.AnimatedVisibility.VISIBLE) {
|
|
6741
6766
|
e.persist();
|
|
6742
|
-
e.nativeEvent.stopImmediatePropagation();
|
|
6767
|
+
e.nativeEvent.stopImmediatePropagation(); // TODO
|
|
6743
6768
|
e.stopPropagation();
|
|
6744
6769
|
return false;
|
|
6745
6770
|
}
|
|
@@ -6812,6 +6837,9 @@ exports.Empty = (0, react_2.memo)(() => (0, jsx_runtime_1.jsx)(Option_1.Option,
|
|
|
6812
6837
|
exports.CheckOption = (0, react_2.memo)(function CheckOption({ selected, children: label, ...options }) {
|
|
6813
6838
|
return ((0, jsx_runtime_1.jsx)(Option_1.Option, { label: label, selected: selected, ...options, children: (0, jsx_runtime_1.jsx)(CheckBox_1.CheckBox, { checked: selected }) }));
|
|
6814
6839
|
});
|
|
6840
|
+
/**
|
|
6841
|
+
* An input for selection of options.
|
|
6842
|
+
*/
|
|
6815
6843
|
function OptionsPaginated({ ref, withTitle, multiple, renderEmpty: EmptyComponent = exports.Empty, options, cursor, renderItem: OptionComponent = Option_1.Option, onSelect, endReached, ...props }) {
|
|
6816
6844
|
const OptionsComponentWithData = ({ index, data, }) => {
|
|
6817
6845
|
const { value, label, selected } = data;
|
|
@@ -6821,7 +6849,10 @@ function OptionsPaginated({ ref, withTitle, multiple, renderEmpty: EmptyComponen
|
|
|
6821
6849
|
return false;
|
|
6822
6850
|
}, key: value, value: value, selected: selected || (multiple !== true && undefined), focus: cursor === index || undefined }));
|
|
6823
6851
|
};
|
|
6824
|
-
return ((0, jsx_runtime_1.jsx)(Box_1.Box, { "rcx-options": true, ...props, ref: ref, children: (0, jsx_runtime_1.jsx)(Tile_1.Tile, { padding: 0, paddingBlock: 'x12', paddingInline: 0, elevation: '2', children: !options.length ? ((0, jsx_runtime_1.jsx)(EmptyComponent, {})) : ((0, jsx_runtime_1.jsx)(react_virtuoso_1.Virtuoso, { endReached: endReached, style: { height: '144px' }, totalCount: options.length, data: options,
|
|
6852
|
+
return ((0, jsx_runtime_1.jsx)(Box_1.Box, { "rcx-options": true, ...props, ref: ref, children: (0, jsx_runtime_1.jsx)(Tile_1.Tile, { padding: 0, paddingBlock: 'x12', paddingInline: 0, elevation: '2', children: !options.length ? ((0, jsx_runtime_1.jsx)(EmptyComponent, {})) : ((0, jsx_runtime_1.jsx)(react_virtuoso_1.Virtuoso, { endReached: endReached, style: { height: '144px' }, totalCount: options.length, data: options,
|
|
6853
|
+
// TODO Add a scroller element
|
|
6854
|
+
// components={{ Scroller: ScrollableContentWrapper }}
|
|
6855
|
+
itemContent: (index, data) => ((0, jsx_runtime_1.jsx)(OptionsComponentWithData, { index: index, data: data })) })) }) }));
|
|
6825
6856
|
}
|
|
6826
6857
|
const useVisible = (initialVisibility = AnimatedVisibility_1.AnimatedVisibility.HIDDEN) => {
|
|
6827
6858
|
const [visible, setVisible] = (0, fuselage_hooks_1.useDebouncedState)(initialVisibility, 10);
|
|
@@ -6885,7 +6916,7 @@ const Margins_1 = __webpack_require__(/*! ../Margins */ "./src/components/Margin
|
|
|
6885
6916
|
const Option_1 = __webpack_require__(/*! ../Option */ "./src/components/Option/index.ts");
|
|
6886
6917
|
const useVisible_1 = __webpack_require__(/*! ../Options/useVisible */ "./src/components/Options/useVisible.ts");
|
|
6887
6918
|
const OptionsPaginated_1 = __webpack_require__(/*! ../OptionsPaginated */ "./src/components/OptionsPaginated/index.ts");
|
|
6888
|
-
const
|
|
6919
|
+
const PositionAnimated_1 = __webpack_require__(/*! ../PositionAnimated */ "./src/components/PositionAnimated/index.ts");
|
|
6889
6920
|
const SelectAddon_1 = __importDefault(__webpack_require__(/*! ../Select/SelectAddon */ "./src/components/Select/SelectAddon.tsx"));
|
|
6890
6921
|
const SelectFocus_1 = __importDefault(__webpack_require__(/*! ../Select/SelectFocus */ "./src/components/Select/SelectFocus.tsx"));
|
|
6891
6922
|
const PaginatedMultiSelect = ({ withTitle, value, filter, options = [], error, disabled, anchor: Anchor = SelectFocus_1.default, onChange = () => { }, placeholder, renderOptions: OptionsComponent = OptionsPaginated_1.OptionsPaginated, renderItem = Option_1.Option, endReached, ...props }) => {
|
|
@@ -6930,9 +6961,9 @@ const PaginatedMultiSelect = ({ withTitle, value, filter, options = [], error, d
|
|
|
6930
6961
|
removeOption(value);
|
|
6931
6962
|
}, children: label }, value ?? index)))] }) }) }) }) }) }), (0, jsx_runtime_1.jsx)(Flex_1.FlexItem, { grow: 0, shrink: 0, children: (0, jsx_runtime_1.jsx)(Margins_1.Margins, { inline: 'x4', children: (0, jsx_runtime_1.jsx)(SelectAddon_1.default, { children: (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: visible === AnimatedVisibility_1.AnimatedVisibility.VISIBLE
|
|
6932
6963
|
? 'cross'
|
|
6933
|
-
: 'chevron-down', size: 'x20' }) }) }) }), (0, jsx_runtime_1.jsx)(
|
|
6934
|
-
|
|
6935
|
-
|
|
6964
|
+
: 'chevron-down', size: 'x20' }) }) }) }), (0, jsx_runtime_1.jsx)(PositionAnimated_1.PositionAnimated, { visible: visible, anchor: containerRef, children: (0, jsx_runtime_1.jsx)(OptionsComponent, { width: borderBoxSize.inlineSize, onMouseDown: prevent_1.prevent, multiple: true, filter: filter, role: 'listbox', options: options, cursor: -1, endReached: endReached, renderItem: renderItem, onSelect: ([value]) => {
|
|
6965
|
+
toggleOption(value);
|
|
6966
|
+
} }) })] }));
|
|
6936
6967
|
};
|
|
6937
6968
|
exports["default"] = PaginatedMultiSelect;
|
|
6938
6969
|
|
|
@@ -6998,7 +7029,7 @@ const PaginatedSelect = ({ value, withTitle, filter, setFilter: _setFilter, erro
|
|
|
6998
7029
|
const [visible, hide, show] = (0, useVisible_1.useVisible)();
|
|
6999
7030
|
const internalChangedByClick = (0, fuselage_hooks_1.useStableCallback)(([value]) => {
|
|
7000
7031
|
setInternalValue(value);
|
|
7001
|
-
onChange(value);
|
|
7032
|
+
onChange(value); // FIXME
|
|
7002
7033
|
hide();
|
|
7003
7034
|
});
|
|
7004
7035
|
const ref = (0, react_1.useRef)(null);
|
|
@@ -7017,7 +7048,7 @@ const PaginatedSelect = ({ value, withTitle, filter, setFilter: _setFilter, erro
|
|
|
7017
7048
|
return show();
|
|
7018
7049
|
}
|
|
7019
7050
|
});
|
|
7020
|
-
return ((0, jsx_runtime_1.jsxs)(Box_1.Box, { "rcx-select": true, disabled: disabled, ref: containerRef, onClick: handleClick, className: (0, react_1.useMemo)(() => [error && 'invalid', disabled && 'disabled'], [error, disabled]), ...props, children: [(0, jsx_runtime_1.jsxs)(PaginatedSelectWrapper_1.default, { display: 'flex',
|
|
7051
|
+
return ((0, jsx_runtime_1.jsxs)(Box_1.Box, { "rcx-select": true, disabled: disabled, ref: containerRef, onClick: handleClick, className: (0, react_1.useMemo)(() => [error && 'invalid', disabled && 'disabled'], [error, disabled]), ...props, children: [(0, jsx_runtime_1.jsxs)(PaginatedSelectWrapper_1.default, { display: 'flex', marginInline: 'neg-x4', "rcx-select__wrapper--hidden": !!visibleText, children: [visibleText && ((0, jsx_runtime_1.jsx)(Box_1.Box, { flexGrow: 1, is: 'span', marginInline: 4, "rcx-select__item": true, fontScale: 'p2m', color: valueLabel ? 'default' : 'hint', children: visibleText })), (0, jsx_runtime_1.jsx)(Anchor, { disabled: disabled, "rcx-input-box--undecorated": true, filter: filter, ref: ref, "aria-haspopup": 'listbox', onClick: show, onBlur: hide }), (0, jsx_runtime_1.jsx)(Margins_1.Margins, { inline: 'x4', children: (0, jsx_runtime_1.jsx)(SelectAddon_1.default, { children: (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: visible === AnimatedVisibility_1.AnimatedVisibility.VISIBLE
|
|
7021
7052
|
? 'chevron-up'
|
|
7022
7053
|
: 'chevron-down', size: 'x20' }) }) })] }), (0, jsx_runtime_1.jsx)(PositionAnimated_1.PositionAnimated, { visible: visible, anchor: containerRef, children: (0, jsx_runtime_1.jsx)(_Options, { withTitle: withTitle, width: borderBoxSize.inlineSize, role: 'listbox', filter: filter, options: options, onSelect: internalChangedByClick, endReached: endReached, onMouseDown: prevent_1.prevent, renderItem: renderItem }) })] }));
|
|
7023
7054
|
};
|
|
@@ -7039,7 +7070,7 @@ const react_1 = __webpack_require__(/*! react */ "react");
|
|
|
7039
7070
|
const InputBox_1 = __webpack_require__(/*! ../InputBox */ "./src/components/InputBox/index.ts");
|
|
7040
7071
|
const PaginatedSelect_1 = __webpack_require__(/*! ./PaginatedSelect */ "./src/components/PaginatedSelect/PaginatedSelect.tsx");
|
|
7041
7072
|
const PaginatedSelectFiltered = ({ filter, setFilter, options, placeholder, ...props }) => {
|
|
7042
|
-
const anchor = (0, react_1.useMemo)(() => ({ filter, onChange: _onChange, ...props }) => ((0, jsx_runtime_1.jsx)(InputBox_1.Input, {
|
|
7073
|
+
const anchor = (0, react_1.useMemo)(() => ({ filter, onChange: _onChange, ...props }) => ((0, jsx_runtime_1.jsx)(InputBox_1.Input, { marginInline: 4, flexGrow: 1, className: 'rcx-select__focus', placeholder: placeholder, value: filter, onChange: (e) => {
|
|
7043
7074
|
setFilter(e.currentTarget.value);
|
|
7044
7075
|
}, ...props, "rcx-input-box--undecorated": true })), [placeholder, setFilter]);
|
|
7045
7076
|
return ((0, jsx_runtime_1.jsx)(PaginatedSelect_1.PaginatedSelect, { placeholder: undefined, filter: filter, options: options, ...props, anchor: anchor }));
|
|
@@ -7109,14 +7140,18 @@ const Pagination = ({ count, current = 0, itemsPerPage = 25, itemsPerPageLabel =
|
|
|
7109
7140
|
const pages = Math.ceil(count / itemsPerPage);
|
|
7110
7141
|
const displayedPages = (0, react_1.useMemo)(() => {
|
|
7111
7142
|
if (pages <= 7) {
|
|
7143
|
+
// 0 1 2 3 4 5 6
|
|
7112
7144
|
return Array.from({ length: pages }, (_, i) => i);
|
|
7113
7145
|
}
|
|
7114
7146
|
if (currentPage < 5) {
|
|
7147
|
+
// 0 1 2 3 4 ... N
|
|
7115
7148
|
return [0, 1, 2, 3, 4, '⋯', pages - 1];
|
|
7116
7149
|
}
|
|
7117
7150
|
if (currentPage > pages - 5) {
|
|
7151
|
+
// 0 ... N-4 N-3 N-2 N-1 N
|
|
7118
7152
|
return [0, '⋯', pages - 5, pages - 4, pages - 3, pages - 2, pages - 1];
|
|
7119
7153
|
}
|
|
7154
|
+
// 0 ... x-1 x x-2 ... N
|
|
7120
7155
|
return [
|
|
7121
7156
|
0,
|
|
7122
7157
|
'⋯',
|
|
@@ -7183,6 +7218,13 @@ const themes = {
|
|
|
7183
7218
|
dark: themePalettes_1.dark,
|
|
7184
7219
|
'high-contrast': themePalettes_1.highContrast,
|
|
7185
7220
|
};
|
|
7221
|
+
/**
|
|
7222
|
+
* Style tag to handle the theme of the application.
|
|
7223
|
+
*
|
|
7224
|
+
* Import `PaletteStyleTag` and use it on the application informing the desired theme.
|
|
7225
|
+
*
|
|
7226
|
+
* Toggle the theme on Storybook's Control panel to see the color changes.
|
|
7227
|
+
*/
|
|
7186
7228
|
function PaletteStyleTag({ theme = 'light', tagId = 'main-palette', prefix = '--rcx-color', selector, palette, }) {
|
|
7187
7229
|
const themePalette = palette || (0, convertToCss_1.convertToCss)(themes[theme], prefix, selector);
|
|
7188
7230
|
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, react_dom_1.createPortal)(themePalette, (0, useCreateStyleContainer_1.useCreateStyleContainer)(tagId)) });
|
|
@@ -7741,10 +7783,10 @@ Object.defineProperty(exports, "Popover", ({ enumerable: true, get: function ()
|
|
|
7741
7783
|
|
|
7742
7784
|
/***/ },
|
|
7743
7785
|
|
|
7744
|
-
/***/ "./src/components/
|
|
7745
|
-
|
|
7746
|
-
!*** ./src/components/
|
|
7747
|
-
|
|
7786
|
+
/***/ "./src/components/PositionAnimated/Position.tsx"
|
|
7787
|
+
/*!******************************************************!*\
|
|
7788
|
+
!*** ./src/components/PositionAnimated/Position.tsx ***!
|
|
7789
|
+
\******************************************************/
|
|
7748
7790
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
7749
7791
|
|
|
7750
7792
|
|
|
@@ -7783,24 +7825,6 @@ const Position = ({ anchor, children, placement, margin, className: _className,
|
|
|
7783
7825
|
exports["default"] = Position;
|
|
7784
7826
|
|
|
7785
7827
|
|
|
7786
|
-
/***/ },
|
|
7787
|
-
|
|
7788
|
-
/***/ "./src/components/Position/index.ts"
|
|
7789
|
-
/*!******************************************!*\
|
|
7790
|
-
!*** ./src/components/Position/index.ts ***!
|
|
7791
|
-
\******************************************/
|
|
7792
|
-
(__unused_webpack_module, exports, __webpack_require__) {
|
|
7793
|
-
|
|
7794
|
-
|
|
7795
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7796
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
7797
|
-
};
|
|
7798
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
7799
|
-
exports.Position = void 0;
|
|
7800
|
-
var Position_1 = __webpack_require__(/*! ./Position */ "./src/components/Position/Position.tsx");
|
|
7801
|
-
Object.defineProperty(exports, "Position", ({ enumerable: true, get: function () { return __importDefault(Position_1).default; } }));
|
|
7802
|
-
|
|
7803
|
-
|
|
7804
7828
|
/***/ },
|
|
7805
7829
|
|
|
7806
7830
|
/***/ "./src/components/PositionAnimated/PositionAnimated.tsx"
|
|
@@ -7810,11 +7834,14 @@ Object.defineProperty(exports, "Position", ({ enumerable: true, get: function ()
|
|
|
7810
7834
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
7811
7835
|
|
|
7812
7836
|
|
|
7837
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7838
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
7839
|
+
};
|
|
7813
7840
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
7814
7841
|
const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
|
|
7815
7842
|
const AnimatedVisibility_1 = __webpack_require__(/*! ../AnimatedVisibility */ "./src/components/AnimatedVisibility/index.ts");
|
|
7816
|
-
const Position_1 = __webpack_require__(/*!
|
|
7817
|
-
const PositionAnimated = ({ width: _width, visible, children, ...props }) => ((0, jsx_runtime_1.jsx)(AnimatedVisibility_1.AnimatedVisibility, { visibility: visible, children: (0, jsx_runtime_1.jsx)(Position_1.
|
|
7843
|
+
const Position_1 = __importDefault(__webpack_require__(/*! ./Position */ "./src/components/PositionAnimated/Position.tsx"));
|
|
7844
|
+
const PositionAnimated = ({ width: _width, visible, children, ...props }) => ((0, jsx_runtime_1.jsx)(AnimatedVisibility_1.AnimatedVisibility, { visibility: visible, children: (0, jsx_runtime_1.jsx)(Position_1.default, { ...props, children: children }) }));
|
|
7818
7845
|
exports["default"] = PositionAnimated;
|
|
7819
7846
|
|
|
7820
7847
|
|
|
@@ -7867,8 +7894,11 @@ const getColor = (isLight, variant, error) => {
|
|
|
7867
7894
|
}
|
|
7868
7895
|
return isLight ? lightColors[variant] : colors[variant];
|
|
7869
7896
|
};
|
|
7897
|
+
/**
|
|
7898
|
+
* The `ProgressBar` is used to inform the user the progress of an operation.
|
|
7899
|
+
*/
|
|
7870
7900
|
function ProgressBar({ percentage, variant = 'info', error, animated, light = false, ...props }) {
|
|
7871
|
-
return ((0, jsx_runtime_1.jsx)(Box_1.Box, { "rcx-progress-bar": true, title: error || undefined, overflow: 'hidden', ...props, children: (0, jsx_runtime_1.jsx)(Box_1.Box, {
|
|
7901
|
+
return ((0, jsx_runtime_1.jsx)(Box_1.Box, { "rcx-progress-bar": true, title: error || undefined, overflow: 'hidden', ...props, children: (0, jsx_runtime_1.jsx)(Box_1.Box, { backgroundColor: getColor(light, variant, error), "rcx-progress-bar__fill--animated": animated, "rcx-progress-bar__fill": true, width: getWidth(percentage) }) }));
|
|
7872
7902
|
}
|
|
7873
7903
|
exports["default"] = ProgressBar;
|
|
7874
7904
|
|
|
@@ -7963,6 +7993,9 @@ const pollTouchingEdges = (element, touchingEdgesRef, onScrollContent) => {
|
|
|
7963
7993
|
onScrollContent?.(newTouchingEdges);
|
|
7964
7994
|
}
|
|
7965
7995
|
};
|
|
7996
|
+
/**
|
|
7997
|
+
* Add scroll capability to the wrapped component.
|
|
7998
|
+
*/
|
|
7966
7999
|
const Scrollable = ({ children, horizontal, vertical, smooth, onScrollContent, }) => {
|
|
7967
8000
|
const scrollTimeoutRef = (0, react_1.useRef)(undefined);
|
|
7968
8001
|
const touchingEdgesRef = (0, react_1.useRef)({});
|
|
@@ -8030,7 +8063,7 @@ const Scrollable = ({ children, horizontal, vertical, smooth, onScrollContent, }
|
|
|
8030
8063
|
}
|
|
8031
8064
|
return props;
|
|
8032
8065
|
}, [className, handleScroll, onScrollContent]);
|
|
8033
|
-
return ((0, jsx_runtime_1.jsx)(BoxTransforms_1.BoxTransforms.Provider, {
|
|
8066
|
+
return ((0, jsx_runtime_1.jsx)(BoxTransforms_1.BoxTransforms.Provider, { value: (0, BoxTransforms_1.useComposedBoxTransform)(transformFn), children: children }));
|
|
8034
8067
|
};
|
|
8035
8068
|
exports["default"] = Scrollable;
|
|
8036
8069
|
|
|
@@ -8065,6 +8098,9 @@ Object.defineProperty(exports, "Scrollable", ({ enumerable: true, get: function
|
|
|
8065
8098
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8066
8099
|
const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
|
|
8067
8100
|
const InputBox_1 = __webpack_require__(/*! ../InputBox */ "./src/components/InputBox/index.ts");
|
|
8101
|
+
/**
|
|
8102
|
+
* An input for search queries.
|
|
8103
|
+
*/
|
|
8068
8104
|
function SearchInput(props) {
|
|
8069
8105
|
return (0, jsx_runtime_1.jsx)(InputBox_1.InputBox, { type: 'search', ...props });
|
|
8070
8106
|
}
|
|
@@ -8139,6 +8175,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
8139
8175
|
const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
|
|
8140
8176
|
const react_stately_1 = __webpack_require__(/*! react-stately */ "react-stately");
|
|
8141
8177
|
const SelectAria_1 = __webpack_require__(/*! ./SelectAria */ "./src/components/Select/SelectAria.tsx");
|
|
8178
|
+
/**
|
|
8179
|
+
* An input for selection of options.
|
|
8180
|
+
*/
|
|
8142
8181
|
function Select({ options, ref, ...props }) {
|
|
8143
8182
|
return ((0, jsx_runtime_1.jsx)(SelectAria_1.SelectAria, { ref: ref, ...props, children: options.map((option) => ((0, jsx_runtime_1.jsx)(react_stately_1.Item, { title: option[1] ?? option[0], textValue: option[0], children: option[1] ?? option[0] }, option[0]))) }));
|
|
8144
8183
|
}
|
|
@@ -8220,11 +8259,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
8220
8259
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8221
8260
|
const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
|
|
8222
8261
|
const react_1 = __webpack_require__(/*! react */ "react");
|
|
8223
|
-
const _1 = __webpack_require__(/*! . */ "./src/components/Select/index.ts");
|
|
8224
8262
|
const SelectFilteredAnchor_1 = __importDefault(__webpack_require__(/*! ./SelectFilteredAnchor */ "./src/components/Select/SelectFilteredAnchor.tsx"));
|
|
8263
|
+
const SelectFilteredContext_1 = __webpack_require__(/*! ./SelectFilteredContext */ "./src/components/Select/SelectFilteredContext.ts");
|
|
8264
|
+
const SelectLegacy_1 = __importDefault(__webpack_require__(/*! ./SelectLegacy */ "./src/components/Select/SelectLegacy.tsx"));
|
|
8225
8265
|
function SelectFiltered({ options, placeholder, filter: propFilter, setFilter: propSetFilter, ...props }) {
|
|
8226
8266
|
const [filter, setFilter] = (0, react_1.useState)('');
|
|
8227
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
8267
|
+
return ((0, jsx_runtime_1.jsx)(SelectFilteredContext_1.SelectFilteredContext.Provider, { value: {
|
|
8268
|
+
placeholder,
|
|
8269
|
+
filter: propFilter || filter,
|
|
8270
|
+
setFilter: propSetFilter || setFilter,
|
|
8271
|
+
}, children: (0, jsx_runtime_1.jsx)(SelectLegacy_1.default, { placeholder: placeholder, filter: propFilter || filter, options: options, ...props, anchor: SelectFilteredAnchor_1.default }) }));
|
|
8228
8272
|
}
|
|
8229
8273
|
exports["default"] = SelectFiltered;
|
|
8230
8274
|
|
|
@@ -8240,13 +8284,31 @@ exports["default"] = SelectFiltered;
|
|
|
8240
8284
|
|
|
8241
8285
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8242
8286
|
const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
|
|
8287
|
+
const react_1 = __webpack_require__(/*! react */ "react");
|
|
8243
8288
|
const InputBox_1 = __webpack_require__(/*! ../InputBox */ "./src/components/InputBox/index.ts");
|
|
8244
|
-
|
|
8245
|
-
|
|
8289
|
+
const SelectFilteredContext_1 = __webpack_require__(/*! ./SelectFilteredContext */ "./src/components/Select/SelectFilteredContext.ts");
|
|
8290
|
+
function SelectFilteredAnchor({ children: _children, ...props }) {
|
|
8291
|
+
const { placeholder, filter, setFilter } = (0, react_1.use)(SelectFilteredContext_1.SelectFilteredContext);
|
|
8292
|
+
return ((0, jsx_runtime_1.jsx)(InputBox_1.Input, { marginInline: 4, flexGrow: 1, className: 'rcx-select__focus', placeholder: placeholder, value: filter, onInput: (e) => setFilter?.(e.currentTarget.value), ...props, "rcx-input-box--undecorated": true }));
|
|
8246
8293
|
}
|
|
8247
8294
|
exports["default"] = SelectFilteredAnchor;
|
|
8248
8295
|
|
|
8249
8296
|
|
|
8297
|
+
/***/ },
|
|
8298
|
+
|
|
8299
|
+
/***/ "./src/components/Select/SelectFilteredContext.ts"
|
|
8300
|
+
/*!********************************************************!*\
|
|
8301
|
+
!*** ./src/components/Select/SelectFilteredContext.ts ***!
|
|
8302
|
+
\********************************************************/
|
|
8303
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
8304
|
+
|
|
8305
|
+
|
|
8306
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8307
|
+
exports.SelectFilteredContext = void 0;
|
|
8308
|
+
const react_1 = __webpack_require__(/*! react */ "react");
|
|
8309
|
+
exports.SelectFilteredContext = (0, react_1.createContext)({});
|
|
8310
|
+
|
|
8311
|
+
|
|
8250
8312
|
/***/ },
|
|
8251
8313
|
|
|
8252
8314
|
/***/ "./src/components/Select/SelectFocus.tsx"
|
|
@@ -8300,11 +8362,11 @@ const useDidUpdate = (func, deps) => {
|
|
|
8300
8362
|
didMount.current = true;
|
|
8301
8363
|
}, deps || []);
|
|
8302
8364
|
};
|
|
8303
|
-
|
|
8365
|
+
function SelectLegacy({ ref, value, filter, error, disabled, options = [], anchor: Anchor = SelectFocus_1.default, onChange = () => { }, getValue = ([value] = ['', '']) => value, getLabel = ([, label] = ['', '']) => label, placeholder = '', renderItem, renderSelected: RenderSelected, renderOptions: _Options = Options_1.Options, addonIcon, customEmpty, ...props }) {
|
|
8304
8366
|
const [internalValue, setInternalValue] = (0, react_1.useState)(value || '');
|
|
8305
8367
|
const internalChangedByKeyboard = (0, fuselage_hooks_1.useStableCallback)(([value]) => {
|
|
8306
8368
|
setInternalValue(value);
|
|
8307
|
-
onChange(value);
|
|
8369
|
+
onChange(value); // FIXME
|
|
8308
8370
|
});
|
|
8309
8371
|
const option = options.find((option) => getValue(option) === internalValue);
|
|
8310
8372
|
const index = options.indexOf(option);
|
|
@@ -8324,7 +8386,7 @@ const SelectLegacy = function SelectLegacy({ ref, value, filter, error, disabled
|
|
|
8324
8386
|
const removeFocusClass = () => innerRef.current?.classList.remove('focus-visible');
|
|
8325
8387
|
const internalChangedByClick = (0, fuselage_hooks_1.useStableCallback)(([value]) => {
|
|
8326
8388
|
setInternalValue(value);
|
|
8327
|
-
onChange(value);
|
|
8389
|
+
onChange(value); // FIXME
|
|
8328
8390
|
removeFocusClass();
|
|
8329
8391
|
hide();
|
|
8330
8392
|
});
|
|
@@ -8343,11 +8405,11 @@ const SelectLegacy = function SelectLegacy({ ref, value, filter, error, disabled
|
|
|
8343
8405
|
innerRef.current?.focus();
|
|
8344
8406
|
return show();
|
|
8345
8407
|
});
|
|
8346
|
-
return ((0, jsx_runtime_1.jsxs)(Box_1.Box, { "rcx-select": true, disabled: disabled, ref: containerRef, onClick: handleClick, className: (0, react_1.useMemo)(() => [error && 'invalid', disabled && 'disabled'], [error, disabled]), ...props, children: [(0, jsx_runtime_1.jsxs)(Wrapper, { display: 'flex',
|
|
8347
|
-
(RenderSelected ? ((0, jsx_runtime_1.jsx)(RenderSelected, { role: 'option', value: getValue(option), label: valueLabel, onClick: internalChangedByClick }, getValue(option))) : ((0, jsx_runtime_1.jsx)(Box_1.Box, { flexGrow: 1, is: 'span',
|
|
8408
|
+
return ((0, jsx_runtime_1.jsxs)(Box_1.Box, { "rcx-select": true, disabled: disabled, ref: containerRef, onClick: handleClick, className: (0, react_1.useMemo)(() => [error && 'invalid', disabled && 'disabled'], [error, disabled]), ...props, children: [(0, jsx_runtime_1.jsxs)(Wrapper, { display: 'flex', marginInline: 'neg-x4', "rcx-select__wrapper--hidden": !!visibleText, children: [visibleText &&
|
|
8409
|
+
(RenderSelected ? ((0, jsx_runtime_1.jsx)(RenderSelected, { role: 'option', value: getValue(option), label: valueLabel, onClick: internalChangedByClick }, getValue(option))) : ((0, jsx_runtime_1.jsx)(Box_1.Box, { flexGrow: 1, is: 'span', marginInline: 4, "rcx-select__item": true, fontScale: 'p2', color: valueLabel ? 'default' : 'hint', children: visibleText }))), (0, jsx_runtime_1.jsx)(Anchor, { ref: anchorRef, disabled: disabled ?? false, onClick: show, onBlur: hide, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, children: !value ? option || placeholder : null }), (0, jsx_runtime_1.jsx)(Margins_1.Margins, { inline: 'x4', children: (0, jsx_runtime_1.jsx)(SelectAddon_1.default, { children: (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: visible === AnimatedVisibility_1.AnimatedVisibility.VISIBLE
|
|
8348
8410
|
? 'chevron-up'
|
|
8349
8411
|
: addonIcon || 'chevron-down', size: 'x20' }) }) })] }), (0, jsx_runtime_1.jsx)(PositionAnimated_1.PositionAnimated, { visible: visible, anchor: containerRef, children: (0, jsx_runtime_1.jsx)(_Options, { width: borderBoxSize.inlineSize, role: 'listbox', filter: filter, options: filteredOptions, onSelect: internalChangedByClick, renderItem: renderItem, cursor: cursor, customEmpty: customEmpty }) })] }));
|
|
8350
|
-
}
|
|
8412
|
+
}
|
|
8351
8413
|
exports["default"] = SelectLegacy;
|
|
8352
8414
|
|
|
8353
8415
|
|
|
@@ -8399,94 +8461,6 @@ var SelectFiltered_1 = __webpack_require__(/*! ./SelectFiltered */ "./src/compon
|
|
|
8399
8461
|
Object.defineProperty(exports, "SelectFiltered", ({ enumerable: true, get: function () { return __importDefault(SelectFiltered_1).default; } }));
|
|
8400
8462
|
|
|
8401
8463
|
|
|
8402
|
-
/***/ },
|
|
8403
|
-
|
|
8404
|
-
/***/ "./src/components/SelectInput/SelectInput.tsx"
|
|
8405
|
-
/*!****************************************************!*\
|
|
8406
|
-
!*** ./src/components/SelectInput/SelectInput.tsx ***!
|
|
8407
|
-
\****************************************************/
|
|
8408
|
-
(__unused_webpack_module, exports, __webpack_require__) {
|
|
8409
|
-
|
|
8410
|
-
|
|
8411
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8412
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8413
|
-
};
|
|
8414
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8415
|
-
const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
|
|
8416
|
-
const react_1 = __webpack_require__(/*! react */ "react");
|
|
8417
|
-
const Icon_1 = __webpack_require__(/*! ../Icon */ "./src/components/Icon/index.ts");
|
|
8418
|
-
const InputBox_1 = __webpack_require__(/*! ../InputBox */ "./src/components/InputBox/index.ts");
|
|
8419
|
-
const SelectInputPlaceholder_1 = __importDefault(__webpack_require__(/*! ./SelectInputPlaceholder */ "./src/components/SelectInput/SelectInputPlaceholder.tsx"));
|
|
8420
|
-
function SelectInput({ ref, children, multiple, placeholder, onChange, ...props }) {
|
|
8421
|
-
const [isPlaceholderVisible, setPlaceholderVisible] = (0, react_1.useState)(!props.value && !props.defaultValue);
|
|
8422
|
-
const handleChange = (0, react_1.useCallback)((event) => {
|
|
8423
|
-
setPlaceholderVisible(!event.currentTarget.value);
|
|
8424
|
-
onChange?.call(event.currentTarget, event);
|
|
8425
|
-
}, [onChange]);
|
|
8426
|
-
if (multiple) {
|
|
8427
|
-
return ((0, jsx_runtime_1.jsx)(InputBox_1.InputBox, { children: children, ...props, multiple: true, type: 'select', onChange: handleChange }));
|
|
8428
|
-
}
|
|
8429
|
-
return ((0, jsx_runtime_1.jsxs)(InputBox_1.InputBox, { placeholderVisible: isPlaceholderVisible ? !!placeholder : undefined, ref: ref, ...props, endAddon: (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: 'chevron-down', size: 'x20' }), type: 'select', onChange: handleChange, children: [placeholder && ((0, jsx_runtime_1.jsx)(SelectInputPlaceholder_1.default, { value: '', children: placeholder })), children] }));
|
|
8430
|
-
}
|
|
8431
|
-
exports["default"] = SelectInput;
|
|
8432
|
-
|
|
8433
|
-
|
|
8434
|
-
/***/ },
|
|
8435
|
-
|
|
8436
|
-
/***/ "./src/components/SelectInput/SelectInputOption.tsx"
|
|
8437
|
-
/*!**********************************************************!*\
|
|
8438
|
-
!*** ./src/components/SelectInput/SelectInputOption.tsx ***!
|
|
8439
|
-
\**********************************************************/
|
|
8440
|
-
(__unused_webpack_module, exports, __webpack_require__) {
|
|
8441
|
-
|
|
8442
|
-
|
|
8443
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8444
|
-
const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
|
|
8445
|
-
const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
|
|
8446
|
-
function SelectInputOption(props) {
|
|
8447
|
-
return (0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'option', "rcx-input-box__option": true, ...props });
|
|
8448
|
-
}
|
|
8449
|
-
exports["default"] = SelectInputOption;
|
|
8450
|
-
|
|
8451
|
-
|
|
8452
|
-
/***/ },
|
|
8453
|
-
|
|
8454
|
-
/***/ "./src/components/SelectInput/SelectInputPlaceholder.tsx"
|
|
8455
|
-
/*!***************************************************************!*\
|
|
8456
|
-
!*** ./src/components/SelectInput/SelectInputPlaceholder.tsx ***!
|
|
8457
|
-
\***************************************************************/
|
|
8458
|
-
(__unused_webpack_module, exports, __webpack_require__) {
|
|
8459
|
-
|
|
8460
|
-
|
|
8461
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8462
|
-
const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
|
|
8463
|
-
const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
|
|
8464
|
-
function SelectInputPlaceholder(props) {
|
|
8465
|
-
return (0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'option', "rcx-input-box__placeholder": true, ...props });
|
|
8466
|
-
}
|
|
8467
|
-
exports["default"] = SelectInputPlaceholder;
|
|
8468
|
-
|
|
8469
|
-
|
|
8470
|
-
/***/ },
|
|
8471
|
-
|
|
8472
|
-
/***/ "./src/components/SelectInput/index.ts"
|
|
8473
|
-
/*!*********************************************!*\
|
|
8474
|
-
!*** ./src/components/SelectInput/index.ts ***!
|
|
8475
|
-
\*********************************************/
|
|
8476
|
-
(__unused_webpack_module, exports, __webpack_require__) {
|
|
8477
|
-
|
|
8478
|
-
|
|
8479
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8480
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8481
|
-
};
|
|
8482
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8483
|
-
exports.SelectInputOption = exports.SelectInput = void 0;
|
|
8484
|
-
var SelectInput_1 = __webpack_require__(/*! ./SelectInput */ "./src/components/SelectInput/SelectInput.tsx");
|
|
8485
|
-
Object.defineProperty(exports, "SelectInput", ({ enumerable: true, get: function () { return __importDefault(SelectInput_1).default; } }));
|
|
8486
|
-
var SelectInputOption_1 = __webpack_require__(/*! ./SelectInputOption */ "./src/components/SelectInput/SelectInputOption.tsx");
|
|
8487
|
-
Object.defineProperty(exports, "SelectInputOption", ({ enumerable: true, get: function () { return __importDefault(SelectInputOption_1).default; } }));
|
|
8488
|
-
|
|
8489
|
-
|
|
8490
8464
|
/***/ },
|
|
8491
8465
|
|
|
8492
8466
|
/***/ "./src/components/Sidebar/Item.tsx"
|
|
@@ -8529,7 +8503,10 @@ exports.SidebarItemAvatar = SidebarItemAvatar;
|
|
|
8529
8503
|
exports.SidebarItemActions = SidebarActions_1.SidebarActions;
|
|
8530
8504
|
const SidebarItemAction = (props) => ((0, jsx_runtime_1.jsx)(SidebarActions_1.SidebarAction, { ...props }));
|
|
8531
8505
|
exports.SidebarItemAction = SidebarItemAction;
|
|
8532
|
-
|
|
8506
|
+
/**
|
|
8507
|
+
* Item component to be used inside Sidebar.
|
|
8508
|
+
*/
|
|
8509
|
+
const SidebarItem = ({ selected, highlighted, clickable, featured, is: Tag = 'div', children, ...props }) => ((0, jsx_runtime_1.jsx)(Tag, { className: [
|
|
8533
8510
|
'rc-box rcx-box--full rcx-sidebar-item',
|
|
8534
8511
|
highlighted && 'rcx-sidebar-item--highlighted',
|
|
8535
8512
|
(clickable || Tag === 'a') && 'rcx-sidebar-item--clickable',
|
|
@@ -8537,20 +8514,8 @@ exports.SidebarItem = Object.assign(({ selected, highlighted, clickable, feature
|
|
|
8537
8514
|
featured && 'rcx-sidebar-item--featured',
|
|
8538
8515
|
]
|
|
8539
8516
|
.filter(Boolean)
|
|
8540
|
-
.join(' '), ...props, children: (0, jsx_runtime_1.jsx)("div", { className: 'rcx-box rcx-box--full rcx-sidebar-item__wrapper', children: children }) }))
|
|
8541
|
-
|
|
8542
|
-
Container: exports.SidebarItemContainer,
|
|
8543
|
-
Content: exports.SidebarItemContent,
|
|
8544
|
-
Title: exports.SidebarItemTitle,
|
|
8545
|
-
Subtitle: exports.SidebarItemSubtitle,
|
|
8546
|
-
Time: exports.SidebarItemTime,
|
|
8547
|
-
Wrapper: exports.SidebarItemWrapper,
|
|
8548
|
-
Icon: exports.SidebarItemIcon,
|
|
8549
|
-
Avatar: exports.SidebarItemAvatar,
|
|
8550
|
-
Actions: exports.SidebarItemActions,
|
|
8551
|
-
Action: exports.SidebarItemAction,
|
|
8552
|
-
Badge: exports.SidebarItemBadge,
|
|
8553
|
-
});
|
|
8517
|
+
.join(' '), ...props, children: (0, jsx_runtime_1.jsx)("div", { className: 'rcx-box rcx-box--full rcx-sidebar-item__wrapper', children: children }) }));
|
|
8518
|
+
exports.SidebarItem = SidebarItem;
|
|
8554
8519
|
|
|
8555
8520
|
|
|
8556
8521
|
/***/ },
|
|
@@ -8567,9 +8532,8 @@ exports.SidebarSection = exports.SidebarSectionTitle = void 0;
|
|
|
8567
8532
|
const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
|
|
8568
8533
|
const SidebarSectionTitle = (props) => ((0, jsx_runtime_1.jsx)("div", { className: 'rcx-box rcx-box--full rcx-sidebar-title', ...props }));
|
|
8569
8534
|
exports.SidebarSectionTitle = SidebarSectionTitle;
|
|
8570
|
-
|
|
8571
|
-
|
|
8572
|
-
});
|
|
8535
|
+
const SidebarSection = (props) => ((0, jsx_runtime_1.jsx)("div", { className: 'rcx-box rcx-box--full rcx-sidebar-section', ...props }));
|
|
8536
|
+
exports.SidebarSection = SidebarSection;
|
|
8573
8537
|
|
|
8574
8538
|
|
|
8575
8539
|
/***/ },
|
|
@@ -8581,24 +8545,10 @@ exports.SidebarSection = Object.assign((props) => ((0, jsx_runtime_1.jsx)("div",
|
|
|
8581
8545
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
8582
8546
|
|
|
8583
8547
|
|
|
8584
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8585
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8586
|
-
};
|
|
8587
8548
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8588
8549
|
const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
|
|
8589
8550
|
const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
|
|
8590
|
-
const
|
|
8591
|
-
const Section_1 = __webpack_require__(/*! ./Section */ "./src/components/Sidebar/Section.tsx");
|
|
8592
|
-
const SidebarBanner_1 = __importDefault(__webpack_require__(/*! ./SidebarBanner */ "./src/components/Sidebar/SidebarBanner.tsx"));
|
|
8593
|
-
const SidebarDivider_1 = __importDefault(__webpack_require__(/*! ./SidebarDivider */ "./src/components/Sidebar/SidebarDivider.tsx"));
|
|
8594
|
-
const TopBar_1 = __importDefault(__webpack_require__(/*! ./TopBar */ "./src/components/Sidebar/TopBar/index.ts"));
|
|
8595
|
-
const Sidebar = Object.assign((props) => (0, jsx_runtime_1.jsx)(Box_1.Box, { "rcx-sidebar": true, ...props }), {
|
|
8596
|
-
TopBar: TopBar_1.default,
|
|
8597
|
-
Item: Item_1.SidebarItem,
|
|
8598
|
-
Section: Section_1.SidebarSection,
|
|
8599
|
-
Divider: SidebarDivider_1.default,
|
|
8600
|
-
Banner: SidebarBanner_1.default,
|
|
8601
|
-
});
|
|
8551
|
+
const Sidebar = (props) => (0, jsx_runtime_1.jsx)(Box_1.Box, { "rcx-sidebar": true, ...props });
|
|
8602
8552
|
exports["default"] = Sidebar;
|
|
8603
8553
|
|
|
8604
8554
|
|
|
@@ -8658,7 +8608,7 @@ exports["default"] = SidebarBanner;
|
|
|
8658
8608
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8659
8609
|
const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
|
|
8660
8610
|
const Divider_1 = __webpack_require__(/*! ../Divider */ "./src/components/Divider/index.ts");
|
|
8661
|
-
const SidebarDivider = () => (0, jsx_runtime_1.jsx)(Divider_1.Divider, { "rcx-sidebar--divider": true,
|
|
8611
|
+
const SidebarDivider = () => ((0, jsx_runtime_1.jsx)(Divider_1.Divider, { "rcx-sidebar--divider": true, marginBlockStart: -2, marginBlockEnd: 0 }));
|
|
8662
8612
|
exports["default"] = SidebarDivider;
|
|
8663
8613
|
|
|
8664
8614
|
|
|
@@ -8697,6 +8647,9 @@ exports.SidebarFooterHighlight = SidebarFooterHighlight;
|
|
|
8697
8647
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8698
8648
|
exports.TopBar = void 0;
|
|
8699
8649
|
const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
|
|
8650
|
+
/**
|
|
8651
|
+
* Sidebar TopBar and ToolBox.
|
|
8652
|
+
*/
|
|
8700
8653
|
const TopBar = ({ className, ...props }) => ((0, jsx_runtime_1.jsx)("div", { className: ['rc-box rc-box--full rcx-sidebar-topbar', className]
|
|
8701
8654
|
.filter(Boolean)
|
|
8702
8655
|
.join(' '), ...props }));
|
|
@@ -8864,31 +8817,9 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
8864
8817
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
8865
8818
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
8866
8819
|
};
|
|
8867
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8868
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8869
|
-
};
|
|
8870
8820
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8871
8821
|
exports.TopBarAvatar = void 0;
|
|
8872
|
-
|
|
8873
|
-
const TopBar_1 = __webpack_require__(/*! ./TopBar */ "./src/components/Sidebar/TopBar/TopBar.tsx");
|
|
8874
|
-
const TopBarAction_1 = __webpack_require__(/*! ./TopBarAction */ "./src/components/Sidebar/TopBar/TopBarAction.tsx");
|
|
8875
|
-
const TopBarActions_1 = __webpack_require__(/*! ./TopBarActions */ "./src/components/Sidebar/TopBar/TopBarActions.tsx");
|
|
8876
|
-
const TopBarSection_1 = __webpack_require__(/*! ./TopBarSection */ "./src/components/Sidebar/TopBar/TopBarSection.tsx");
|
|
8877
|
-
const TopBarTitle_1 = __webpack_require__(/*! ./TopBarTitle */ "./src/components/Sidebar/TopBar/TopBarTitle.tsx");
|
|
8878
|
-
const TopBarToolBox_1 = __webpack_require__(/*! ./TopBarToolBox */ "./src/components/Sidebar/TopBar/TopBarToolBox.tsx");
|
|
8879
|
-
const TopBarWrapper_1 = __webpack_require__(/*! ./TopBarWrapper */ "./src/components/Sidebar/TopBar/TopBarWrapper.tsx");
|
|
8880
|
-
const Avatar = { size: 'x24' };
|
|
8881
|
-
exports.TopBarAvatar = Avatar;
|
|
8882
|
-
exports["default"] = Object.assign(TopBar_1.TopBar, {
|
|
8883
|
-
Section: TopBarSection_1.TopBarSection,
|
|
8884
|
-
ToolBox: TopBarToolBox_1.TopBarToolBox,
|
|
8885
|
-
Wrapper: TopBarWrapper_1.TopBarWrapper,
|
|
8886
|
-
Avatar: exports.TopBarAvatar,
|
|
8887
|
-
Actions: TopBarActions_1.TopBarActions,
|
|
8888
|
-
Action: TopBarAction_1.TopBarAction,
|
|
8889
|
-
Divider: SidebarDivider_1.default,
|
|
8890
|
-
Title: TopBarTitle_1.TopBarTitle,
|
|
8891
|
-
});
|
|
8822
|
+
exports.TopBarAvatar = { size: 'x24' };
|
|
8892
8823
|
__exportStar(__webpack_require__(/*! ./TopBar */ "./src/components/Sidebar/TopBar/TopBar.tsx"), exports);
|
|
8893
8824
|
__exportStar(__webpack_require__(/*! ./TopBarV2 */ "./src/components/Sidebar/TopBar/TopBarV2.tsx"), exports);
|
|
8894
8825
|
__exportStar(__webpack_require__(/*! ./TopBarAction */ "./src/components/Sidebar/TopBar/TopBarAction.tsx"), exports);
|
|
@@ -8926,14 +8857,19 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
8926
8857
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8927
8858
|
};
|
|
8928
8859
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8929
|
-
exports.SidebarDivider = exports.SidebarBanner = exports.SidebarTopBar = exports.Sidebar = void 0;
|
|
8860
|
+
exports.SidebarDivider = exports.SidebarBanner = exports.SidebarTopBarToolBox = exports.SidebarTopBarAvatar = exports.SidebarTopBarActions = exports.SidebarTopBarAction = exports.SidebarTopBarTitle = exports.SidebarTopBar = exports.Sidebar = void 0;
|
|
8930
8861
|
var Sidebar_1 = __webpack_require__(/*! ./Sidebar */ "./src/components/Sidebar/Sidebar.tsx");
|
|
8931
8862
|
Object.defineProperty(exports, "Sidebar", ({ enumerable: true, get: function () { return __importDefault(Sidebar_1).default; } }));
|
|
8932
8863
|
__exportStar(__webpack_require__(/*! ./Item */ "./src/components/Sidebar/Item.tsx"), exports);
|
|
8933
8864
|
__exportStar(__webpack_require__(/*! ./Section */ "./src/components/Sidebar/Section.tsx"), exports);
|
|
8934
8865
|
__exportStar(__webpack_require__(/*! ./TopBar */ "./src/components/Sidebar/TopBar/index.ts"), exports);
|
|
8935
8866
|
var TopBar_1 = __webpack_require__(/*! ./TopBar */ "./src/components/Sidebar/TopBar/index.ts");
|
|
8936
|
-
Object.defineProperty(exports, "SidebarTopBar", ({ enumerable: true, get: function () { return
|
|
8867
|
+
Object.defineProperty(exports, "SidebarTopBar", ({ enumerable: true, get: function () { return TopBar_1.TopBar; } }));
|
|
8868
|
+
Object.defineProperty(exports, "SidebarTopBarTitle", ({ enumerable: true, get: function () { return TopBar_1.TopBarTitle; } }));
|
|
8869
|
+
Object.defineProperty(exports, "SidebarTopBarAction", ({ enumerable: true, get: function () { return TopBar_1.TopBarAction; } }));
|
|
8870
|
+
Object.defineProperty(exports, "SidebarTopBarActions", ({ enumerable: true, get: function () { return TopBar_1.TopBarActions; } }));
|
|
8871
|
+
Object.defineProperty(exports, "SidebarTopBarAvatar", ({ enumerable: true, get: function () { return TopBar_1.TopBarAvatar; } }));
|
|
8872
|
+
Object.defineProperty(exports, "SidebarTopBarToolBox", ({ enumerable: true, get: function () { return TopBar_1.TopBarToolBox; } }));
|
|
8937
8873
|
var SidebarBanner_1 = __webpack_require__(/*! ./SidebarBanner */ "./src/components/Sidebar/SidebarBanner.tsx");
|
|
8938
8874
|
Object.defineProperty(exports, "SidebarBanner", ({ enumerable: true, get: function () { return __importDefault(SidebarBanner_1).default; } }));
|
|
8939
8875
|
__exportStar(__webpack_require__(/*! ./SidebarFooter */ "./src/components/Sidebar/SidebarFooter.tsx"), exports);
|
|
@@ -9134,7 +9070,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
9134
9070
|
exports.SidebarDivider = void 0;
|
|
9135
9071
|
const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
|
|
9136
9072
|
const Divider_1 = __webpack_require__(/*! ../Divider */ "./src/components/Divider/index.ts");
|
|
9137
|
-
const SidebarDivider = () => ((0, jsx_runtime_1.jsx)(Divider_1.Divider, { "rcx-sidebar-v2--divider": true,
|
|
9073
|
+
const SidebarDivider = () => ((0, jsx_runtime_1.jsx)(Divider_1.Divider, { "rcx-sidebar-v2--divider": true, marginBlockStart: -2, marginBlockEnd: 0 }));
|
|
9138
9074
|
exports.SidebarDivider = SidebarDivider;
|
|
9139
9075
|
|
|
9140
9076
|
|
|
@@ -9774,7 +9710,7 @@ exports["default"] = Sidepanel;
|
|
|
9774
9710
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9775
9711
|
const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
|
|
9776
9712
|
const Divider_1 = __webpack_require__(/*! ../Divider */ "./src/components/Divider/index.ts");
|
|
9777
|
-
const SidepanelDivider = () => ((0, jsx_runtime_1.jsx)(Divider_1.Divider, { "rcx-sidepanel--divider": true,
|
|
9713
|
+
const SidepanelDivider = () => ((0, jsx_runtime_1.jsx)(Divider_1.Divider, { "rcx-sidepanel--divider": true, marginBlockStart: -2, marginBlockEnd: 0 }));
|
|
9778
9714
|
exports["default"] = SidepanelDivider;
|
|
9779
9715
|
|
|
9780
9716
|
|
|
@@ -9974,6 +9910,7 @@ const SliderThumb_1 = __webpack_require__(/*! ./SliderThumb */ "./src/components
|
|
|
9974
9910
|
const SliderTrack_1 = __webpack_require__(/*! ./SliderTrack */ "./src/components/Slider/SliderTrack.tsx");
|
|
9975
9911
|
function Slider({ ref, ...props }) {
|
|
9976
9912
|
const { label, formatOptions, showOutput = true, multiThumb, maxValue, minValue, } = props;
|
|
9913
|
+
// Get a defaultValue in the range for multiThumb
|
|
9977
9914
|
const getMultiThumbDefaultValue = () => {
|
|
9978
9915
|
if (multiThumb && !props.defaultValue) {
|
|
9979
9916
|
if (minValue && maxValue) {
|
|
@@ -10426,6 +10363,9 @@ const Disabled_1 = __importDefault(__webpack_require__(/*! ./icons/Disabled */ "
|
|
|
10426
10363
|
const Loading_1 = __importDefault(__webpack_require__(/*! ./icons/Loading */ "./src/components/StatusBullet/icons/Loading.tsx"));
|
|
10427
10364
|
const Offline_1 = __importDefault(__webpack_require__(/*! ./icons/Offline */ "./src/components/StatusBullet/icons/Offline.tsx"));
|
|
10428
10365
|
const Online_1 = __importDefault(__webpack_require__(/*! ./icons/Online */ "./src/components/StatusBullet/icons/Online.tsx"));
|
|
10366
|
+
/**
|
|
10367
|
+
* The `StatusBullet` is used to inform the user status.
|
|
10368
|
+
*/
|
|
10429
10369
|
const StatusBullet = ({ status = 'loading', ...props }) => {
|
|
10430
10370
|
switch (status) {
|
|
10431
10371
|
case 'online':
|
|
@@ -10603,7 +10543,7 @@ const TableCell = ({ align, clickable, children, ...props }) => {
|
|
|
10603
10543
|
const isInsideHead = (0, react_1.useContext)(TableHead_1.TableHeadContext);
|
|
10604
10544
|
const innerElement = children ??
|
|
10605
10545
|
(!isInsideHead ? ((0, jsx_runtime_1.jsx)(Box_1.Box, { display: 'inline-block', is: 'hr', width: 'x14', borderWidth: 1 })) : undefined);
|
|
10606
|
-
return ((0, jsx_runtime_1.jsx)(Box_1.Box, { is: isInsideHead ? 'th' : 'td', "rcx-table__cell": true, "rcx-table__cell--align": align, "rcx-table__cell--header": isInsideHead, "rcx-table__cell--clickable": clickable, children: innerElement
|
|
10546
|
+
return ((0, jsx_runtime_1.jsx)(Box_1.Box, { is: isInsideHead ? 'th' : 'td', "rcx-table__cell": true, "rcx-table__cell--align": align, "rcx-table__cell--header": isInsideHead, "rcx-table__cell--clickable": clickable, ...props, children: innerElement }));
|
|
10607
10547
|
};
|
|
10608
10548
|
exports["default"] = TableCell;
|
|
10609
10549
|
|
|
@@ -10671,7 +10611,7 @@ exports["default"] = TableRow;
|
|
|
10671
10611
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
10672
10612
|
const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
|
|
10673
10613
|
const Box_1 = __webpack_require__(/*! ../../Box */ "./src/components/Box/index.ts");
|
|
10674
|
-
const TableSelection = ({ children, text, ...props }) => ((0, jsx_runtime_1.jsxs)(Box_1.Box, { "rcx-table__selection": true, display: 'flex', alignItems: 'center', justifyContent: 'space-between',
|
|
10614
|
+
const TableSelection = ({ children, text, ...props }) => ((0, jsx_runtime_1.jsxs)(Box_1.Box, { "rcx-table__selection": true, display: 'flex', alignItems: 'center', justifyContent: 'space-between', paddingInline: 24, elevation: '2', ...props, children: [(0, jsx_runtime_1.jsx)(Box_1.Box, { fontScale: 'p2b', marginBlock: 16, flexShrink: 1, withTruncatedText: true, children: text }), children && ((0, jsx_runtime_1.jsx)(Box_1.Box, { marginInline: 'neg-x8', fontScale: 'p2m', flexShrink: 0, children: children }))] }));
|
|
10675
10615
|
exports["default"] = TableSelection;
|
|
10676
10616
|
|
|
10677
10617
|
|
|
@@ -10781,17 +10721,15 @@ __exportStar(__webpack_require__(/*! ./TableSelection */ "./src/components/Table
|
|
|
10781
10721
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
10782
10722
|
|
|
10783
10723
|
|
|
10784
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
10785
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10786
|
-
};
|
|
10787
10724
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
10788
10725
|
const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
|
|
10789
10726
|
const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
|
|
10790
|
-
|
|
10727
|
+
/**
|
|
10728
|
+
* Tabs is a component to navigate around the UI using buttons arranged together with the selected tab highlighted.
|
|
10729
|
+
*/
|
|
10791
10730
|
function Tabs({ children, divider = true, ...props }) {
|
|
10792
|
-
return ((0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'div', "rcx-tabs": true, "rcx-tabs--with-divider": divider, ...props, children: (0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'div', "rcx-tabs__scroll-box": true, children: (0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'div', "rcx-tabs__wrapper": true,
|
|
10731
|
+
return ((0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'div', "rcx-tabs": true, "rcx-tabs--with-divider": divider, ...props, children: (0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'div', "rcx-tabs__scroll-box": true, children: (0, jsx_runtime_1.jsx)(Box_1.Box, { is: 'div', "rcx-tabs__wrapper": true, role: 'tablist', children: children }) }) }));
|
|
10793
10732
|
}
|
|
10794
|
-
Tabs.Item = TabsItem_1.default;
|
|
10795
10733
|
exports["default"] = Tabs;
|
|
10796
10734
|
|
|
10797
10735
|
|
|
@@ -10846,6 +10784,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
10846
10784
|
const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
|
|
10847
10785
|
const prependClassName_1 = __webpack_require__(/*! ../../helpers/prependClassName */ "./src/helpers/prependClassName.ts");
|
|
10848
10786
|
const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
|
|
10787
|
+
/**
|
|
10788
|
+
* Used for mentions
|
|
10789
|
+
*/
|
|
10849
10790
|
const Tag = ({ large, medium, className, disabled, onClick, variant, children, icon, href, ...props }) => {
|
|
10850
10791
|
const modifiers = [
|
|
10851
10792
|
variant,
|
|
@@ -10881,42 +10822,6 @@ var Tag_1 = __webpack_require__(/*! ./Tag */ "./src/components/Tag/Tag.tsx");
|
|
|
10881
10822
|
Object.defineProperty(exports, "Tag", ({ enumerable: true, get: function () { return __importDefault(Tag_1).default; } }));
|
|
10882
10823
|
|
|
10883
10824
|
|
|
10884
|
-
/***/ },
|
|
10885
|
-
|
|
10886
|
-
/***/ "./src/components/TelephoneInput/TelephoneInput.tsx"
|
|
10887
|
-
/*!**********************************************************!*\
|
|
10888
|
-
!*** ./src/components/TelephoneInput/TelephoneInput.tsx ***!
|
|
10889
|
-
\**********************************************************/
|
|
10890
|
-
(__unused_webpack_module, exports, __webpack_require__) {
|
|
10891
|
-
|
|
10892
|
-
|
|
10893
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
10894
|
-
const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
|
|
10895
|
-
const InputBox_1 = __webpack_require__(/*! ../InputBox */ "./src/components/InputBox/index.ts");
|
|
10896
|
-
function TelephoneInput(props) {
|
|
10897
|
-
return (0, jsx_runtime_1.jsx)(InputBox_1.InputBox, { type: 'tel', ...props });
|
|
10898
|
-
}
|
|
10899
|
-
exports["default"] = TelephoneInput;
|
|
10900
|
-
|
|
10901
|
-
|
|
10902
|
-
/***/ },
|
|
10903
|
-
|
|
10904
|
-
/***/ "./src/components/TelephoneInput/index.ts"
|
|
10905
|
-
/*!************************************************!*\
|
|
10906
|
-
!*** ./src/components/TelephoneInput/index.ts ***!
|
|
10907
|
-
\************************************************/
|
|
10908
|
-
(__unused_webpack_module, exports, __webpack_require__) {
|
|
10909
|
-
|
|
10910
|
-
|
|
10911
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
10912
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10913
|
-
};
|
|
10914
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
10915
|
-
exports.TelephoneInput = void 0;
|
|
10916
|
-
var TelephoneInput_1 = __webpack_require__(/*! ./TelephoneInput */ "./src/components/TelephoneInput/TelephoneInput.tsx");
|
|
10917
|
-
Object.defineProperty(exports, "TelephoneInput", ({ enumerable: true, get: function () { return __importDefault(TelephoneInput_1).default; } }));
|
|
10918
|
-
|
|
10919
|
-
|
|
10920
10825
|
/***/ },
|
|
10921
10826
|
|
|
10922
10827
|
/***/ "./src/components/TextAreaInput/TextAreaInput.tsx"
|
|
@@ -10929,6 +10834,9 @@ Object.defineProperty(exports, "TelephoneInput", ({ enumerable: true, get: funct
|
|
|
10929
10834
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
10930
10835
|
const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
|
|
10931
10836
|
const InputBox_1 = __webpack_require__(/*! ../InputBox */ "./src/components/InputBox/index.ts");
|
|
10837
|
+
/**
|
|
10838
|
+
* An input for multi-line plain-text editing.
|
|
10839
|
+
*/
|
|
10932
10840
|
function TextAreaInput(props) {
|
|
10933
10841
|
return (0, jsx_runtime_1.jsx)(InputBox_1.InputBox, { type: 'textarea', ...props });
|
|
10934
10842
|
}
|
|
@@ -10965,6 +10873,9 @@ Object.defineProperty(exports, "TextAreaInput", ({ enumerable: true, get: functi
|
|
|
10965
10873
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
10966
10874
|
const jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
|
|
10967
10875
|
const InputBox_1 = __webpack_require__(/*! ../InputBox */ "./src/components/InputBox/index.ts");
|
|
10876
|
+
/**
|
|
10877
|
+
* An input for any kind of single-line text.
|
|
10878
|
+
*/
|
|
10968
10879
|
function TextInput(props) {
|
|
10969
10880
|
return (0, jsx_runtime_1.jsx)(InputBox_1.InputBox, { type: 'text', ...props });
|
|
10970
10881
|
}
|
|
@@ -11008,6 +10919,9 @@ function Circle({ disabled, circleCount, iteration, inheritColor, ...props }) {
|
|
|
11008
10919
|
animation-delay: ${iteration * 0.16}s;
|
|
11009
10920
|
`, "rcx-throbber__circle": true, "rcx-throbber__circle--disabled": disabled, "rcx-throbber__circle--inherit-color": inheritColor, ...props }));
|
|
11010
10921
|
}
|
|
10922
|
+
/**
|
|
10923
|
+
* Indicates content that has not loaded yet.
|
|
10924
|
+
*/
|
|
11011
10925
|
function Throbber({ disabled, size = 'x16', circleCount = 3, inheritColor, ...props }) {
|
|
11012
10926
|
return ((0, jsx_runtime_1.jsx)(Box_1.Box, { "rcx-throbber": true, ...props, children: Array.from({ length: circleCount || 3 }, (_, iteration) => ((0, jsx_runtime_1.jsx)(Circle, { circleCount: circleCount, iteration: iteration, disabled: !!disabled, size: size, inheritColor: !!inheritColor }, iteration))) }));
|
|
11013
10927
|
}
|
|
@@ -11084,6 +10998,9 @@ const react_1 = __webpack_require__(/*! react */ "react");
|
|
|
11084
10998
|
const Box_1 = __webpack_require__(/*! ../Box */ "./src/components/Box/index.ts");
|
|
11085
10999
|
const Button_1 = __webpack_require__(/*! ../Button */ "./src/components/Button/index.ts");
|
|
11086
11000
|
const Icon_1 = __webpack_require__(/*! ../Icon */ "./src/components/Icon/index.ts");
|
|
11001
|
+
/**
|
|
11002
|
+
* Shows alerts in a toast component.
|
|
11003
|
+
*/
|
|
11087
11004
|
function ToastBar({ children, className = '', variant = 'info', time = 5, isPaused, id, onClose, buttonLabel = 'Dismiss alert', ...props }) {
|
|
11088
11005
|
const iconName = (variant === 'success' && 'circle-check') ||
|
|
11089
11006
|
(variant === 'error' && 'ban') ||
|
|
@@ -11333,14 +11250,12 @@ __exportStar(__webpack_require__(/*! ./Pagination */ "./src/components/Paginatio
|
|
|
11333
11250
|
__exportStar(__webpack_require__(/*! ./PaletteStyleTag */ "./src/components/PaletteStyleTag/index.ts"), exports);
|
|
11334
11251
|
__exportStar(__webpack_require__(/*! ./PasswordInput */ "./src/components/PasswordInput/index.ts"), exports);
|
|
11335
11252
|
__exportStar(__webpack_require__(/*! ./Popover */ "./src/components/Popover/index.ts"), exports);
|
|
11336
|
-
__exportStar(__webpack_require__(/*! ./Position */ "./src/components/Position/index.ts"), exports);
|
|
11337
11253
|
__exportStar(__webpack_require__(/*! ./PositionAnimated */ "./src/components/PositionAnimated/index.ts"), exports);
|
|
11338
11254
|
__exportStar(__webpack_require__(/*! ./ProgressBar */ "./src/components/ProgressBar/index.ts"), exports);
|
|
11339
11255
|
__exportStar(__webpack_require__(/*! ./RadioButton */ "./src/components/RadioButton/index.ts"), exports);
|
|
11340
11256
|
__exportStar(__webpack_require__(/*! ./Scrollable */ "./src/components/Scrollable/index.ts"), exports);
|
|
11341
11257
|
__exportStar(__webpack_require__(/*! ./SearchInput */ "./src/components/SearchInput/index.ts"), exports);
|
|
11342
11258
|
__exportStar(__webpack_require__(/*! ./Select */ "./src/components/Select/index.ts"), exports);
|
|
11343
|
-
__exportStar(__webpack_require__(/*! ./SelectInput */ "./src/components/SelectInput/index.ts"), exports);
|
|
11344
11259
|
__exportStar(__webpack_require__(/*! ./Sidebar */ "./src/components/Sidebar/index.ts"), exports);
|
|
11345
11260
|
__exportStar(__webpack_require__(/*! ./SidebarV2 */ "./src/components/SidebarV2/index.ts"), exports);
|
|
11346
11261
|
__exportStar(__webpack_require__(/*! ./Sidepanel */ "./src/components/Sidepanel/index.ts"), exports);
|
|
@@ -11351,7 +11266,6 @@ __exportStar(__webpack_require__(/*! ./StatusBullet */ "./src/components/StatusB
|
|
|
11351
11266
|
__exportStar(__webpack_require__(/*! ./Table */ "./src/components/Table/index.ts"), exports);
|
|
11352
11267
|
__exportStar(__webpack_require__(/*! ./Tabs */ "./src/components/Tabs/index.ts"), exports);
|
|
11353
11268
|
__exportStar(__webpack_require__(/*! ./Tag */ "./src/components/Tag/index.ts"), exports);
|
|
11354
|
-
__exportStar(__webpack_require__(/*! ./TelephoneInput */ "./src/components/TelephoneInput/index.ts"), exports);
|
|
11355
11269
|
__exportStar(__webpack_require__(/*! ./TextAreaInput */ "./src/components/TextAreaInput/index.ts"), exports);
|
|
11356
11270
|
__exportStar(__webpack_require__(/*! ./TextInput */ "./src/components/TextInput/index.ts"), exports);
|
|
11357
11271
|
__exportStar(__webpack_require__(/*! ./Throbber */ "./src/components/Throbber/index.ts"), exports);
|
|
@@ -11544,6 +11458,24 @@ const composeClassNames = (prefix) => (...args) => {
|
|
|
11544
11458
|
return [prefix, classNames].filter(Boolean).join(' ');
|
|
11545
11459
|
};
|
|
11546
11460
|
exports.composeClassNames = composeClassNames;
|
|
11461
|
+
/**
|
|
11462
|
+
* Composes class names into a single string based on flags.
|
|
11463
|
+
*
|
|
11464
|
+
* Any falsy value passed as an argument will be ignored.
|
|
11465
|
+
*
|
|
11466
|
+
* If a string is passed, it will be used as a class name.
|
|
11467
|
+
*
|
|
11468
|
+
* If a dictionary object is passed, its keys will be used as class names and its values will be used as modifiers --
|
|
11469
|
+
* unless the value is a boolean, in which case the key will be used as a class name if the value is `true`.
|
|
11470
|
+
*
|
|
11471
|
+
* @example
|
|
11472
|
+
* ```ts
|
|
11473
|
+
* cx('a', false, 'b', null, { c: true, d: false, e: 'f', f: 1 }); // 'a b c e-f f-1'
|
|
11474
|
+
* ```
|
|
11475
|
+
*
|
|
11476
|
+
* @param args a sequence of falsy values, strings and dictionary objects containing the class names
|
|
11477
|
+
* @returns a space-separated string of class names
|
|
11478
|
+
*/
|
|
11547
11479
|
const cx = (...args) => args
|
|
11548
11480
|
.flatMap((arg) => {
|
|
11549
11481
|
if (!arg) {
|
|
@@ -11564,6 +11496,20 @@ const cx = (...args) => args
|
|
|
11564
11496
|
})
|
|
11565
11497
|
.join(' ');
|
|
11566
11498
|
exports.cx = cx;
|
|
11499
|
+
/**
|
|
11500
|
+
* Composes class name modifiers under a class name into a single class names' string based on flags.
|
|
11501
|
+
*
|
|
11502
|
+
* This function returns a function similar to `cx`, with the difference it handles the arguments as class name
|
|
11503
|
+
* modifiers (based on BEM CSS conventions). However, it's recommended to use `cxx` as a curried function.
|
|
11504
|
+
*
|
|
11505
|
+
* @example
|
|
11506
|
+
* ```ts
|
|
11507
|
+
* cxx('z')('a', false, 'b', null, { c: true, d: false, e: 'f', f: 1 }); // 'z z--a z--b z--c z--e-f z--f-1'
|
|
11508
|
+
* ```
|
|
11509
|
+
* @param className the class name
|
|
11510
|
+
* @param args a sequence of falsy values, strings and dictionary objects containing the modifiers
|
|
11511
|
+
* @returns a space-separated string of class names
|
|
11512
|
+
*/
|
|
11567
11513
|
const cxx = (className) => (...args) => {
|
|
11568
11514
|
const classNames = args.flatMap((arg) => {
|
|
11569
11515
|
if (!arg) {
|
|
@@ -11599,6 +11545,33 @@ exports.cxx = cxx;
|
|
|
11599
11545
|
|
|
11600
11546
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
11601
11547
|
exports.exhaustiveCheck = void 0;
|
|
11548
|
+
/**
|
|
11549
|
+
* Utility function to check exhaustiveness of a switch statement or if-else statements.
|
|
11550
|
+
*
|
|
11551
|
+
* In TypeScript, variables going through a sequence of conditionals, like cases in switch statements or if-else
|
|
11552
|
+
* statements, the variable type is incrementally narrowed as the conditionals are evaluated until it reaches the
|
|
11553
|
+
* `never` type, meaning all possible cases have been covered. This function is used to check, at compilation time, that
|
|
11554
|
+
* all possible cases have been covered (i.e. if the conditional checks were exhaustive) and should only be called in
|
|
11555
|
+
* unreachable blocks of code.
|
|
11556
|
+
*
|
|
11557
|
+
* @example
|
|
11558
|
+
* ```ts
|
|
11559
|
+
* declare const value: 'foo' | 'bar';
|
|
11560
|
+
* switch (value) {
|
|
11561
|
+
* case 'foo':
|
|
11562
|
+
* // ...
|
|
11563
|
+
* break;
|
|
11564
|
+
* case 'bar':
|
|
11565
|
+
* // ...
|
|
11566
|
+
* break;
|
|
11567
|
+
* default: // should be unreachable
|
|
11568
|
+
* exhaustiveCheck(value); // `value` type should be `never`, otherwise the compilation fails
|
|
11569
|
+
* }
|
|
11570
|
+
* ```
|
|
11571
|
+
*
|
|
11572
|
+
* @param _ the value which type should be `never`
|
|
11573
|
+
* @throws {Error} will always throw an error if it's reached
|
|
11574
|
+
*/
|
|
11602
11575
|
const exhaustiveCheck = (_) => {
|
|
11603
11576
|
throw new Error('Exhaustive check failed');
|
|
11604
11577
|
};
|
|
@@ -12043,6 +12016,7 @@ exports.fontColor = (0, memo_1.memoize)((value) => {
|
|
|
12043
12016
|
}
|
|
12044
12017
|
return (0, exports.color)(value);
|
|
12045
12018
|
});
|
|
12019
|
+
/** @deprecated **/
|
|
12046
12020
|
exports.color = (0, memo_1.memoize)((value) => {
|
|
12047
12021
|
if (typeof value !== 'string') {
|
|
12048
12022
|
return;
|
|
@@ -12148,7 +12122,7 @@ exports.fontScale = (0, memo_1.memoize)((value) => {
|
|
|
12148
12122
|
\*****************************************/
|
|
12149
12123
|
(module) {
|
|
12150
12124
|
|
|
12151
|
-
module.exports =
|
|
12125
|
+
module.exports = require("@rocket.chat/css-in-js");
|
|
12152
12126
|
|
|
12153
12127
|
/***/ },
|
|
12154
12128
|
|
|
@@ -12158,7 +12132,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__rocket_chat_css_in_js__;
|
|
|
12158
12132
|
\**********************************************/
|
|
12159
12133
|
(module) {
|
|
12160
12134
|
|
|
12161
|
-
module.exports =
|
|
12135
|
+
module.exports = require("@rocket.chat/fuselage-hooks");
|
|
12162
12136
|
|
|
12163
12137
|
/***/ },
|
|
12164
12138
|
|
|
@@ -12168,7 +12142,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_hooks__;
|
|
|
12168
12142
|
\***********************************************************/
|
|
12169
12143
|
(module) {
|
|
12170
12144
|
|
|
12171
|
-
module.exports =
|
|
12145
|
+
module.exports = require("@rocket.chat/fuselage-tokens/colors.json");
|
|
12172
12146
|
|
|
12173
12147
|
/***/ },
|
|
12174
12148
|
|
|
@@ -12178,7 +12152,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_tokens_colors_j
|
|
|
12178
12152
|
\***************************************************************/
|
|
12179
12153
|
(module) {
|
|
12180
12154
|
|
|
12181
|
-
module.exports =
|
|
12155
|
+
module.exports = require("@rocket.chat/fuselage-tokens/dist/badge.json");
|
|
12182
12156
|
|
|
12183
12157
|
/***/ },
|
|
12184
12158
|
|
|
@@ -12188,7 +12162,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_tokens_dist_bad
|
|
|
12188
12162
|
\****************************************************************/
|
|
12189
12163
|
(module) {
|
|
12190
12164
|
|
|
12191
|
-
module.exports =
|
|
12165
|
+
module.exports = require("@rocket.chat/fuselage-tokens/dist/button.json");
|
|
12192
12166
|
|
|
12193
12167
|
/***/ },
|
|
12194
12168
|
|
|
@@ -12198,7 +12172,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_tokens_dist_but
|
|
|
12198
12172
|
\**************************************************************/
|
|
12199
12173
|
(module) {
|
|
12200
12174
|
|
|
12201
|
-
module.exports =
|
|
12175
|
+
module.exports = require("@rocket.chat/fuselage-tokens/dist/font.json");
|
|
12202
12176
|
|
|
12203
12177
|
/***/ },
|
|
12204
12178
|
|
|
@@ -12208,7 +12182,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_tokens_dist_fon
|
|
|
12208
12182
|
\****************************************************************/
|
|
12209
12183
|
(module) {
|
|
12210
12184
|
|
|
12211
|
-
module.exports =
|
|
12185
|
+
module.exports = require("@rocket.chat/fuselage-tokens/dist/shadow.json");
|
|
12212
12186
|
|
|
12213
12187
|
/***/ },
|
|
12214
12188
|
|
|
@@ -12218,7 +12192,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_tokens_dist_sha
|
|
|
12218
12192
|
\****************************************************************/
|
|
12219
12193
|
(module) {
|
|
12220
12194
|
|
|
12221
|
-
module.exports =
|
|
12195
|
+
module.exports = require("@rocket.chat/fuselage-tokens/dist/status.json");
|
|
12222
12196
|
|
|
12223
12197
|
/***/ },
|
|
12224
12198
|
|
|
@@ -12228,7 +12202,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_tokens_dist_sta
|
|
|
12228
12202
|
\**********************************************************************/
|
|
12229
12203
|
(module) {
|
|
12230
12204
|
|
|
12231
|
-
module.exports =
|
|
12205
|
+
module.exports = require("@rocket.chat/fuselage-tokens/dist/statusBullet.json");
|
|
12232
12206
|
|
|
12233
12207
|
/***/ },
|
|
12234
12208
|
|
|
@@ -12238,7 +12212,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_tokens_dist_sta
|
|
|
12238
12212
|
\****************************************************************/
|
|
12239
12213
|
(module) {
|
|
12240
12214
|
|
|
12241
|
-
module.exports =
|
|
12215
|
+
module.exports = require("@rocket.chat/fuselage-tokens/dist/stroke.json");
|
|
12242
12216
|
|
|
12243
12217
|
/***/ },
|
|
12244
12218
|
|
|
@@ -12248,7 +12222,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_tokens_dist_str
|
|
|
12248
12222
|
\*****************************************************************/
|
|
12249
12223
|
(module) {
|
|
12250
12224
|
|
|
12251
|
-
module.exports =
|
|
12225
|
+
module.exports = require("@rocket.chat/fuselage-tokens/dist/surface.json");
|
|
12252
12226
|
|
|
12253
12227
|
/***/ },
|
|
12254
12228
|
|
|
@@ -12258,7 +12232,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_tokens_dist_sur
|
|
|
12258
12232
|
\***************************************************************/
|
|
12259
12233
|
(module) {
|
|
12260
12234
|
|
|
12261
|
-
module.exports =
|
|
12235
|
+
module.exports = require("@rocket.chat/fuselage-tokens/typography.json");
|
|
12262
12236
|
|
|
12263
12237
|
/***/ },
|
|
12264
12238
|
|
|
@@ -12268,7 +12242,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__rocket_chat_fuselage_tokens_typograp
|
|
|
12268
12242
|
\*************************************/
|
|
12269
12243
|
(module) {
|
|
12270
12244
|
|
|
12271
|
-
module.exports =
|
|
12245
|
+
module.exports = require("@rocket.chat/icons");
|
|
12272
12246
|
|
|
12273
12247
|
/***/ },
|
|
12274
12248
|
|
|
@@ -12278,7 +12252,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__rocket_chat_icons__;
|
|
|
12278
12252
|
\************************************/
|
|
12279
12253
|
(module) {
|
|
12280
12254
|
|
|
12281
|
-
module.exports =
|
|
12255
|
+
module.exports = require("@rocket.chat/memo");
|
|
12282
12256
|
|
|
12283
12257
|
/***/ },
|
|
12284
12258
|
|
|
@@ -12288,7 +12262,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__rocket_chat_memo__;
|
|
|
12288
12262
|
\****************************/
|
|
12289
12263
|
(module) {
|
|
12290
12264
|
|
|
12291
|
-
module.exports =
|
|
12265
|
+
module.exports = require("invariant");
|
|
12292
12266
|
|
|
12293
12267
|
/***/ },
|
|
12294
12268
|
|
|
@@ -12298,7 +12272,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE_invariant__;
|
|
|
12298
12272
|
\************************/
|
|
12299
12273
|
(module) {
|
|
12300
12274
|
|
|
12301
|
-
module.exports =
|
|
12275
|
+
module.exports = require("react");
|
|
12302
12276
|
|
|
12303
12277
|
/***/ },
|
|
12304
12278
|
|
|
@@ -12308,7 +12282,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE_react__;
|
|
|
12308
12282
|
\*****************************/
|
|
12309
12283
|
(module) {
|
|
12310
12284
|
|
|
12311
|
-
module.exports =
|
|
12285
|
+
module.exports = require("react-aria");
|
|
12312
12286
|
|
|
12313
12287
|
/***/ },
|
|
12314
12288
|
|
|
@@ -12318,7 +12292,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE_react_aria__;
|
|
|
12318
12292
|
\****************************/
|
|
12319
12293
|
(module) {
|
|
12320
12294
|
|
|
12321
|
-
module.exports =
|
|
12295
|
+
module.exports = require("react-dom");
|
|
12322
12296
|
|
|
12323
12297
|
/***/ },
|
|
12324
12298
|
|
|
@@ -12328,7 +12302,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE_react_dom__;
|
|
|
12328
12302
|
\***************************/
|
|
12329
12303
|
(module) {
|
|
12330
12304
|
|
|
12331
|
-
module.exports =
|
|
12305
|
+
module.exports = require("react-is");
|
|
12332
12306
|
|
|
12333
12307
|
/***/ },
|
|
12334
12308
|
|
|
@@ -12338,7 +12312,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE_react_is__;
|
|
|
12338
12312
|
\***********************************************/
|
|
12339
12313
|
(module) {
|
|
12340
12314
|
|
|
12341
|
-
module.exports =
|
|
12315
|
+
module.exports = require("react-keyed-flatten-children");
|
|
12342
12316
|
|
|
12343
12317
|
/***/ },
|
|
12344
12318
|
|
|
@@ -12348,7 +12322,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE_react_keyed_flatten_children__;
|
|
|
12348
12322
|
\********************************/
|
|
12349
12323
|
(module) {
|
|
12350
12324
|
|
|
12351
|
-
module.exports =
|
|
12325
|
+
module.exports = require("react-stately");
|
|
12352
12326
|
|
|
12353
12327
|
/***/ },
|
|
12354
12328
|
|
|
@@ -12358,7 +12332,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE_react_stately__;
|
|
|
12358
12332
|
\*********************************/
|
|
12359
12333
|
(module) {
|
|
12360
12334
|
|
|
12361
|
-
module.exports =
|
|
12335
|
+
module.exports = require("react-virtuoso");
|
|
12362
12336
|
|
|
12363
12337
|
/***/ },
|
|
12364
12338
|
|
|
@@ -12368,7 +12342,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE_react_virtuoso__;
|
|
|
12368
12342
|
\************************************/
|
|
12369
12343
|
(module) {
|
|
12370
12344
|
|
|
12371
|
-
module.exports =
|
|
12345
|
+
module.exports = require("react/jsx-runtime");
|
|
12372
12346
|
|
|
12373
12347
|
/***/ }
|
|
12374
12348
|
|
|
@@ -12422,11 +12396,10 @@ module.exports = __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__;
|
|
|
12422
12396
|
/******/ // Load entry module and return exports
|
|
12423
12397
|
/******/ // This entry module is referenced by other modules so it can't be inlined
|
|
12424
12398
|
/******/ var __webpack_exports__ = __webpack_require__("./src/index.ts");
|
|
12399
|
+
/******/ module.exports = __webpack_exports__;
|
|
12425
12400
|
/******/
|
|
12426
|
-
/******/ return __webpack_exports__;
|
|
12427
12401
|
/******/ })()
|
|
12428
12402
|
;
|
|
12429
|
-
});
|
|
12430
12403
|
})();
|
|
12431
12404
|
}
|
|
12432
12405
|
//# sourceMappingURL=fuselage.development.js.map
|