@redsift/products 11.6.0-muiv5-alpha.4 → 11.6.0-muiv5-alpha.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/{components/radar-button → _internal}/RadarButton.d.ts +1 -1
  2. package/{components/radar-button → _internal}/RadarButton.js +2 -2
  3. package/_internal/RadarButton.js.map +1 -0
  4. package/{components/radar-item → _internal}/RadarItem.d.ts +1 -1
  5. package/{components/radar-item → _internal}/RadarItem.js +2 -2
  6. package/_internal/RadarItem.js.map +1 -0
  7. package/_internal/RadarSimpleDialog.d.ts +104 -0
  8. package/_internal/RadarSimpleDialog.js +8810 -0
  9. package/_internal/RadarSimpleDialog.js.map +1 -0
  10. package/{components/radar-menu-button/RadarMenuButton.d.ts → _internal/RadarSimpleMenuButton.d.ts} +11 -2
  11. package/{components/radar-menu-button/RadarMenuButton.js → _internal/RadarSimpleMenuButton.js} +39 -3
  12. package/_internal/RadarSimpleMenuButton.js.map +1 -0
  13. package/{_virtual → _internal}/_rollupPluginBabelHelpers.js +1 -1
  14. package/_internal/radar-button.d.ts +2 -0
  15. package/_internal/radar-button.js +2 -0
  16. package/_internal/radar-button.js.map +1 -0
  17. package/_internal/radar-dialog.d.ts +38 -0
  18. package/_internal/radar-dialog.js +2 -0
  19. package/_internal/radar-dialog.js.map +1 -0
  20. package/_internal/radar-item.d.ts +3 -0
  21. package/_internal/radar-item.js +2 -0
  22. package/_internal/radar-item.js.map +1 -0
  23. package/_internal/radar-menu-button.d.ts +4 -0
  24. package/_internal/radar-menu-button.js +2 -0
  25. package/_internal/radar-menu-button.js.map +1 -0
  26. package/{components/radar/index.d.ts → _internal/radar.d.ts} +1 -6
  27. package/_internal/radar.js +23 -0
  28. package/_internal/radar.js.map +1 -0
  29. package/index.d.ts +8 -5
  30. package/index.js +4 -5
  31. package/index.js.map +1 -1
  32. package/package.json +5 -5
  33. package/_virtual/jsx-runtime.js +0 -4
  34. package/_virtual/jsx-runtime.js.map +0 -1
  35. package/_virtual/react-jsx-runtime.development.js +0 -4
  36. package/_virtual/react-jsx-runtime.development.js.map +0 -1
  37. package/_virtual/react-jsx-runtime.production.min.js +0 -4
  38. package/_virtual/react-jsx-runtime.production.min.js.map +0 -1
  39. package/components/radar/index.js +0 -25
  40. package/components/radar/index.js.map +0 -1
  41. package/components/radar-button/RadarButton.js.map +0 -1
  42. package/components/radar-dialog/PulsedRadarImage.js +0 -437
  43. package/components/radar-dialog/PulsedRadarImage.js.map +0 -1
  44. package/components/radar-dialog/RadarDialog.js +0 -146
  45. package/components/radar-dialog/RadarDialog.js.map +0 -1
  46. package/components/radar-dialog/RadarSimpleDialog.d.ts +0 -15
  47. package/components/radar-dialog/RadarSimpleDialog.js +0 -23
  48. package/components/radar-dialog/RadarSimpleDialog.js.map +0 -1
  49. package/components/radar-dialog/ScatterGrid.js +0 -1548
  50. package/components/radar-dialog/ScatterGrid.js.map +0 -1
  51. package/components/radar-item/RadarItem.js.map +0 -1
  52. package/components/radar-menu-button/RadarMenuButton.js.map +0 -1
  53. package/components/radar-menu-button/RadarSimpleMenuButton.d.ts +0 -13
  54. package/components/radar-menu-button/RadarSimpleMenuButton.js +0 -42
  55. package/components/radar-menu-button/RadarSimpleMenuButton.js.map +0 -1
  56. package/packages/popovers/src/components/dialog/Dialog.js +0 -56
  57. package/packages/popovers/src/components/dialog/Dialog.js.map +0 -1
  58. package/packages/popovers/src/components/dialog/context.js +0 -6
  59. package/packages/popovers/src/components/dialog/context.js.map +0 -1
  60. package/packages/popovers/src/components/dialog/types.js +0 -20
  61. package/packages/popovers/src/components/dialog/types.js.map +0 -1
  62. package/packages/popovers/src/components/dialog/useDialog.js +0 -95
  63. package/packages/popovers/src/components/dialog/useDialog.js.map +0 -1
  64. package/packages/popovers/src/components/dialog/useDialogContext.js +0 -13
  65. package/packages/popovers/src/components/dialog/useDialogContext.js.map +0 -1
  66. package/packages/popovers/src/components/dialog-content/DialogContent.js +0 -97
  67. package/packages/popovers/src/components/dialog-content/DialogContent.js.map +0 -1
  68. package/packages/popovers/src/components/dialog-content/intl/en-US.json.js +0 -7
  69. package/packages/popovers/src/components/dialog-content/intl/en-US.json.js.map +0 -1
  70. package/packages/popovers/src/components/dialog-content/intl/fr-FR.json.js +0 -7
  71. package/packages/popovers/src/components/dialog-content/intl/fr-FR.json.js.map +0 -1
  72. package/packages/popovers/src/components/dialog-content/intl/index.js +0 -10
  73. package/packages/popovers/src/components/dialog-content/intl/index.js.map +0 -1
  74. package/packages/popovers/src/components/dialog-content/styles.js +0 -77
  75. package/packages/popovers/src/components/dialog-content/styles.js.map +0 -1
  76. package/packages/popovers/src/components/dialog-content-actions/DialogContentActions.js +0 -38
  77. package/packages/popovers/src/components/dialog-content-actions/DialogContentActions.js.map +0 -1
  78. package/packages/popovers/src/components/dialog-content-actions/styles.js +0 -20
  79. package/packages/popovers/src/components/dialog-content-actions/styles.js.map +0 -1
  80. package/packages/popovers/src/components/dialog-content-body/DialogContentBody.js +0 -49
  81. package/packages/popovers/src/components/dialog-content-body/DialogContentBody.js.map +0 -1
  82. package/packages/popovers/src/components/dialog-content-body/styles.js +0 -65
  83. package/packages/popovers/src/components/dialog-content-body/styles.js.map +0 -1
  84. package/packages/popovers/src/components/dialog-content-header/DialogContentHeader.js +0 -86
  85. package/packages/popovers/src/components/dialog-content-header/DialogContentHeader.js.map +0 -1
  86. package/packages/popovers/src/components/dialog-content-header/styles.js +0 -31
  87. package/packages/popovers/src/components/dialog-content-header/styles.js.map +0 -1
  88. package/packages/popovers/src/components/dialog-trigger/DialogTrigger.js +0 -47
  89. package/packages/popovers/src/components/dialog-trigger/DialogTrigger.js.map +0 -1
  90. package/popovers/src/components/dialog/types.d.ts +0 -50
  91. package/popovers/src/components/dialog-content/types.d.ts +0 -12
  92. package/popovers/src/components/dialog-content-body/types.d.ts +0 -12
  93. package/popovers/src/components/dialog-content-header/types.d.ts +0 -27
  94. package/popovers/src/components/dialog-trigger/types.d.ts +0 -10
  95. /package/{_virtual → _internal}/_rollupPluginBabelHelpers.js.map +0 -0
@@ -1,13 +0,0 @@
1
- import React__default from 'react';
2
- import { DialogContext } from './context.js';
3
-
4
- const useDialogContext = () => {
5
- const context = React__default.useContext(DialogContext);
6
- if (context == null) {
7
- throw new Error('Dialog components must be wrapped in <Dialog />');
8
- }
9
- return context;
10
- };
11
-
12
- export { useDialogContext };
13
- //# sourceMappingURL=useDialogContext.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useDialogContext.js","sources":["../../../../../../../popovers/src/components/dialog/useDialogContext.tsx"],"sourcesContent":["import React from 'react';\nimport { DialogContext } from './context';\n\nexport const useDialogContext = () => {\n const context = React.useContext(DialogContext);\n\n if (context == null) {\n throw new Error('Dialog components must be wrapped in <Dialog />');\n }\n\n return context;\n};\n"],"names":["useDialogContext","context","React","useContext","DialogContext","Error"],"mappings":";;;AAGaA,MAAAA,gBAAgB,GAAGA,MAAM;AACpC,EAAA,MAAMC,OAAO,GAAGC,cAAK,CAACC,UAAU,CAACC,aAAa,CAAC,CAAA;EAE/C,IAAIH,OAAO,IAAI,IAAI,EAAE;AACnB,IAAA,MAAM,IAAII,KAAK,CAAC,iDAAiD,CAAC,CAAA;AACpE,GAAA;AAEA,EAAA,OAAOJ,OAAO,CAAA;AAChB;;;;"}
@@ -1,97 +0,0 @@
1
- import { objectWithoutProperties as _objectWithoutProperties, extends as _extends, objectSpread2 as _objectSpread2 } from '../../../../../_virtual/_rollupPluginBabelHelpers.js';
2
- import React__default, { forwardRef, useContext } from 'react';
3
- import classNames from 'classnames';
4
- import { useTransitionStyles, useMergeRefs, FloatingPortal, FloatingFocusManager } from '../../../../../node_modules/@floating-ui/react/dist/floating-ui.react.mjs.js';
5
- import { mdiClose } from '@redsift/icons';
6
- import { AppContainerContext, useTheme, useMessageFormatter, partitionComponents, isComponent, IconButton } from '@redsift/design-system';
7
- import intlMessages from './intl/index.js';
8
- import { StyledFloatingOverlay, StyledDialogContent } from './styles.js';
9
- import { DialogContentHeader } from '../dialog-content-header/DialogContentHeader.js';
10
- import { DialogContentBody } from '../dialog-content-body/DialogContentBody.js';
11
- import { DialogContentActions } from '../dialog-content-actions/DialogContentActions.js';
12
- import { useDialogContext } from '../dialog/useDialogContext.js';
13
-
14
- const _excluded = ["children", "className", "style", "theme"];
15
- const COMPONENT_NAME = 'DialogContent';
16
- const CLASSNAME = 'redsift-dialog-content';
17
-
18
- /**
19
- * The DialogContent component.
20
- */
21
- const BaseDialogContent = /*#__PURE__*/forwardRef((props, ref) => {
22
- const {
23
- children,
24
- className,
25
- style,
26
- theme: propsTheme
27
- } = props,
28
- forwardedProps = _objectWithoutProperties(props, _excluded);
29
- const appContainerState = useContext(AppContainerContext);
30
- const {
31
- context: floatingContext,
32
- getFloatingProps,
33
- refs,
34
- labelId,
35
- descriptionId,
36
- handleOpen,
37
- hasCloseButton,
38
- initialFocus: propsInitialFocus,
39
- width,
40
- minWidth,
41
- maxWidth,
42
- headerRef,
43
- bodyRef,
44
- actionsRef
45
- } = useDialogContext();
46
- const theme = useTheme(propsTheme);
47
- const {
48
- isMounted,
49
- styles
50
- } = useTransitionStyles(floatingContext);
51
- const dialogRef = useMergeRefs([refs.setFloating, ref]);
52
- const format = useMessageFormatter(intlMessages);
53
- const [[header], [body], [actions]] = partitionComponents(React__default.Children.toArray(children), [isComponent('DialogContentHeader'), isComponent('DialogContentBody'), isComponent('DialogContentActions')]);
54
- const initialFocus = propsInitialFocus === 'header' ? headerRef : propsInitialFocus === 'body' ? bodyRef : propsInitialFocus === 'actions' ? actionsRef : propsInitialFocus ? propsInitialFocus : undefined;
55
- return /*#__PURE__*/React__default.createElement(FloatingPortal, {
56
- root: appContainerState === null || appContainerState === void 0 ? void 0 : appContainerState.appContainerRef.current
57
- }, isMounted && /*#__PURE__*/React__default.createElement(StyledFloatingOverlay, {
58
- lockScroll: true,
59
- style: styles
60
- }, /*#__PURE__*/React__default.createElement(FloatingFocusManager, {
61
- context: floatingContext,
62
- initialFocus: initialFocus ? initialFocus : undefined
63
- }, /*#__PURE__*/React__default.createElement(StyledDialogContent, _extends({
64
- $theme: theme,
65
- className: classNames(DialogContent.className, className)
66
- }, forwardedProps, {
67
- ref: dialogRef,
68
- "aria-labelledby": labelId,
69
- "aria-describedby": descriptionId
70
- }, getFloatingProps(props), {
71
- style: _objectSpread2(_objectSpread2({}, styles), style),
72
- $width: width,
73
- $minWidth: minWidth,
74
- $maxWidth: maxWidth
75
- }), !header && !body && !actions ? /*#__PURE__*/React__default.createElement(DialogContentBody, null, children) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, header || hasCloseButton ? /*#__PURE__*/React__default.createElement("div", {
76
- className: `${BaseDialogContent.className}__header`
77
- }, header, hasCloseButton ? /*#__PURE__*/React__default.createElement(IconButton, {
78
- theme: theme,
79
- "aria-label": format('close'),
80
- className: `${BaseDialogContent.className}-header__icon-button`,
81
- color: "grey",
82
- icon: mdiClose,
83
- onClick: () => handleOpen(false)
84
- }) : null) : null, body || actions ? /*#__PURE__*/React__default.createElement("div", {
85
- className: `${BaseDialogContent.className}__content`
86
- }, body, actions) : null)))));
87
- });
88
- BaseDialogContent.className = CLASSNAME;
89
- BaseDialogContent.displayName = COMPONENT_NAME;
90
- const DialogContent = Object.assign(BaseDialogContent, {
91
- Header: DialogContentHeader,
92
- Body: DialogContentBody,
93
- Actions: DialogContentActions
94
- });
95
-
96
- export { BaseDialogContent, DialogContent };
97
- //# sourceMappingURL=DialogContent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DialogContent.js","sources":["../../../../../../../popovers/src/components/dialog-content/DialogContent.tsx"],"sourcesContent":["import React, { forwardRef, useContext } from 'react';\nimport classNames from 'classnames';\nimport { useMergeRefs, FloatingPortal, FloatingFocusManager, useTransitionStyles } from '@floating-ui/react';\nimport { mdiClose } from '@redsift/icons';\n\nimport { AppContainerContext, useMessageFormatter } from '@redsift/design-system';\nimport intlMessages from './intl';\n\nimport { Comp, IconButton, isComponent, partitionComponents, useTheme } from '@redsift/design-system';\nimport { DialogContentProps } from './types';\nimport { useDialogContext } from '../dialog';\nimport { StyledDialogContent, StyledFloatingOverlay } from './styles';\nimport { DialogContentActions } from '../dialog-content-actions';\nimport { DialogContentBody } from '../dialog-content-body';\nimport { DialogContentHeader } from '../dialog-content-header';\n\nconst COMPONENT_NAME = 'DialogContent';\nconst CLASSNAME = 'redsift-dialog-content';\n\n/**\n * The DialogContent component.\n */\nexport const BaseDialogContent: Comp<DialogContentProps, HTMLDivElement> = forwardRef((props, ref) => {\n const { children, className, style, theme: propsTheme, ...forwardedProps } = props;\n const appContainerState = useContext(AppContainerContext);\n const {\n context: floatingContext,\n getFloatingProps,\n refs,\n labelId,\n descriptionId,\n handleOpen,\n hasCloseButton,\n initialFocus: propsInitialFocus,\n width,\n minWidth,\n maxWidth,\n headerRef,\n bodyRef,\n actionsRef,\n } = useDialogContext();\n const theme = useTheme(propsTheme);\n const { isMounted, styles } = useTransitionStyles(floatingContext);\n const dialogRef = useMergeRefs([refs.setFloating, ref]);\n\n const format = useMessageFormatter(intlMessages);\n\n const [[header], [body], [actions]] = partitionComponents(React.Children.toArray(children), [\n isComponent('DialogContentHeader'),\n isComponent('DialogContentBody'),\n isComponent('DialogContentActions'),\n ]);\n\n const initialFocus: number | React.MutableRefObject<HTMLElement | null> | undefined =\n propsInitialFocus === 'header'\n ? headerRef\n : propsInitialFocus === 'body'\n ? bodyRef\n : propsInitialFocus === 'actions'\n ? actionsRef\n : propsInitialFocus\n ? propsInitialFocus\n : undefined;\n\n return (\n <FloatingPortal root={appContainerState?.appContainerRef.current}>\n {isMounted && (\n <StyledFloatingOverlay lockScroll style={styles}>\n <FloatingFocusManager context={floatingContext} initialFocus={initialFocus ? initialFocus : undefined}>\n <StyledDialogContent\n $theme={theme!}\n className={classNames(DialogContent.className, className)}\n {...forwardedProps}\n ref={dialogRef}\n aria-labelledby={labelId}\n aria-describedby={descriptionId}\n {...getFloatingProps(props)}\n style={{ ...styles, ...style }}\n $width={width}\n $minWidth={minWidth}\n $maxWidth={maxWidth}\n >\n {!header && !body && !actions ? (\n <DialogContentBody>{children}</DialogContentBody>\n ) : (\n <>\n {header || hasCloseButton ? (\n <div className={`${BaseDialogContent.className}__header`}>\n {header}\n\n {hasCloseButton ? (\n <IconButton\n theme={theme}\n aria-label={format('close')}\n className={`${BaseDialogContent.className}-header__icon-button`}\n color=\"grey\"\n icon={mdiClose}\n onClick={() => handleOpen(false)}\n />\n ) : null}\n </div>\n ) : null}\n {body || actions ? (\n <div className={`${BaseDialogContent.className}__content`}>\n {body}\n {actions}\n </div>\n ) : null}\n </>\n )}\n </StyledDialogContent>\n </FloatingFocusManager>\n </StyledFloatingOverlay>\n )}\n </FloatingPortal>\n );\n});\nBaseDialogContent.className = CLASSNAME;\nBaseDialogContent.displayName = COMPONENT_NAME;\n\nexport const DialogContent = Object.assign(BaseDialogContent, {\n Header: DialogContentHeader,\n Body: DialogContentBody,\n Actions: DialogContentActions,\n});\n"],"names":["COMPONENT_NAME","CLASSNAME","BaseDialogContent","forwardRef","props","ref","children","className","style","theme","propsTheme","forwardedProps","_objectWithoutProperties","_excluded","appContainerState","useContext","AppContainerContext","context","floatingContext","getFloatingProps","refs","labelId","descriptionId","handleOpen","hasCloseButton","initialFocus","propsInitialFocus","width","minWidth","maxWidth","headerRef","bodyRef","actionsRef","useDialogContext","useTheme","isMounted","styles","useTransitionStyles","dialogRef","useMergeRefs","setFloating","format","useMessageFormatter","intlMessages","header","body","actions","partitionComponents","React","Children","toArray","isComponent","undefined","createElement","FloatingPortal","root","appContainerRef","current","StyledFloatingOverlay","lockScroll","FloatingFocusManager","StyledDialogContent","_extends","$theme","classNames","DialogContent","_objectSpread","$width","$minWidth","$maxWidth","DialogContentBody","Fragment","IconButton","color","icon","mdiClose","onClick","displayName","Object","assign","Header","DialogContentHeader","Body","Actions","DialogContentActions"],"mappings":";;;;;;;;;;;;;;AAgBA,MAAMA,cAAc,GAAG,eAAe,CAAA;AACtC,MAAMC,SAAS,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AAE;AAC5D8E,EAAAA,MAAM,EAAEC,mBAAmB;AAC3BC,EAAAA,IAAI,EAAEZ,iBAAiB;AACvBa,EAAAA,OAAO,EAAEC,oBAAAA;AACX,CAAC;;;;"}
@@ -1,7 +0,0 @@
1
- var close = "Close";
2
- var enUS = {
3
- close: close
4
- };
5
-
6
- export { close, enUS as default };
7
- //# sourceMappingURL=en-US.json.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"en-US.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
@@ -1,7 +0,0 @@
1
- var close = "Fermer";
2
- var frFR = {
3
- close: close
4
- };
5
-
6
- export { close, frFR as default };
7
- //# sourceMappingURL=fr-FR.json.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fr-FR.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
@@ -1,10 +0,0 @@
1
- import enUS from './en-US.json.js';
2
- import frFR from './fr-FR.json.js';
3
-
4
- var intlMessages = {
5
- 'en-US': enUS,
6
- 'fr-FR': frFR
7
- };
8
-
9
- export { intlMessages as default };
10
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../../../popovers/src/components/dialog-content/intl/index.ts"],"sourcesContent":["import enUS from './en-US.json';\nimport frFR from './fr-FR.json';\n\nexport default {\n 'en-US': enUS,\n 'fr-FR': frFR,\n};\n"],"names":["enUS","frFR"],"mappings":";;;AAGA,mBAAe;AACb,EAAA,OAAO,EAAEA,IAAI;AACb,EAAA,OAAO,EAAEC,IAAAA;AACX,CAAC;;;;"}
@@ -1,77 +0,0 @@
1
- import { FloatingOverlay } from '../../../../../node_modules/@floating-ui/react/dist/floating-ui.react.mjs.js';
2
- import styled, { css } from 'styled-components';
3
- import { baseContainer, Theme } from '@redsift/design-system';
4
-
5
- /**
6
- * Component style.
7
- */
8
- const StyledDialogContent = styled.div`
9
- ${baseContainer}
10
- ${_ref => {
11
- let {
12
- $theme
13
- } = _ref;
14
- return css`
15
- color: var(--redsift-color-neutral-${$theme === Theme.dark ? 'white' : 'x-dark-grey'});
16
- background-color: var(--redsift-color-neutral-${$theme === Theme.dark ? 'black' : 'white'});
17
- `;
18
- }}
19
-
20
- border-radius: 4px;
21
- box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2);
22
- display: flex;
23
- filter: drop-shadow(0px 4px 5px rgba(0, 0, 0, 0.14)) drop-shadow(0px 1px 10px rgba(0, 0, 0, 0.12));
24
- flex-direction: column;
25
- font-family: var(--redsift-typography-dialog-font-family);
26
- font-size: var(--redsift-typography-dialog-font-size);
27
- font-weight: var(--redsift-typography-dialog-font-weight);
28
- line-height: var(--redsift-typography-dialog-line-height);
29
- margin: 32px;
30
- max-width: calc(100vw - 48px);
31
- padding: 24px;
32
- width: 540px;
33
- z-index: var(--redsift-layout-z-index-dialog);
34
-
35
- ${_ref2 => {
36
- let {
37
- $width,
38
- $maxWidth,
39
- $minWidth
40
- } = _ref2;
41
- return css`
42
- ${$width !== undefined ? `width: ${$width};` : ''}
43
- ${$maxWidth !== undefined ? `min-width: ${$maxWidth};` : ''}
44
- ${$minWidth !== undefined ? `max-width: ${$minWidth};` : ''}
45
- `;
46
- }}
47
-
48
- &:focus-visible {
49
- outline: none;
50
- }
51
-
52
- .redsift-dialog-content__header {
53
- align-items: flex-start;
54
- display: flex;
55
- justify-content: space-between;
56
- }
57
-
58
- .redsift-card-header__icon-button {
59
- margin-top: 8px;
60
- margin-left: auto;
61
- margin-right: 8px;
62
-
63
- [dir='rtl'] & {
64
- margin-left: 8px;
65
- margin-right: auto;
66
- }
67
- }
68
- `;
69
- const StyledFloatingOverlay = styled(FloatingOverlay)`
70
- background: rgba(0, 0, 0, 0.8);
71
- display: grid;
72
- place-items: center;
73
- z-index: var(--redsift-layout-z-index-overlay);
74
- `;
75
-
76
- export { StyledDialogContent, StyledFloatingOverlay };
77
- //# sourceMappingURL=styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"styles.js","sources":["../../../../../../../popovers/src/components/dialog-content/styles.ts"],"sourcesContent":["import { FloatingOverlay } from '@floating-ui/react';\nimport styled, { css } from 'styled-components';\nimport { StyledDialogContentProps } from './types';\nimport { Theme, baseContainer } from '@redsift/design-system';\n\n/**\n * Component style.\n */\nexport const StyledDialogContent = styled.div<StyledDialogContentProps>`\n ${baseContainer}\n ${({ $theme }) => css`\n color: var(--redsift-color-neutral-${$theme === Theme.dark ? 'white' : 'x-dark-grey'});\n background-color: var(--redsift-color-neutral-${$theme === Theme.dark ? 'black' : 'white'});\n `}\n\n border-radius: 4px;\n box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2);\n display: flex;\n filter: drop-shadow(0px 4px 5px rgba(0, 0, 0, 0.14)) drop-shadow(0px 1px 10px rgba(0, 0, 0, 0.12));\n flex-direction: column;\n font-family: var(--redsift-typography-dialog-font-family);\n font-size: var(--redsift-typography-dialog-font-size);\n font-weight: var(--redsift-typography-dialog-font-weight);\n line-height: var(--redsift-typography-dialog-line-height);\n margin: 32px;\n max-width: calc(100vw - 48px);\n padding: 24px;\n width: 540px;\n z-index: var(--redsift-layout-z-index-dialog);\n\n ${({ $width, $maxWidth, $minWidth }) => css`\n ${$width !== undefined ? `width: ${$width};` : ''}\n ${$maxWidth !== undefined ? `min-width: ${$maxWidth};` : ''}\n ${$minWidth !== undefined ? `max-width: ${$minWidth};` : ''}\n `}\n\n &:focus-visible {\n outline: none;\n }\n\n .redsift-dialog-content__header {\n align-items: flex-start;\n display: flex;\n justify-content: space-between;\n }\n\n .redsift-card-header__icon-button {\n margin-top: 8px;\n margin-left: auto;\n margin-right: 8px;\n\n [dir='rtl'] & {\n margin-left: 8px;\n margin-right: auto;\n }\n }\n`;\n\nexport const StyledFloatingOverlay = styled(FloatingOverlay)`\n background: rgba(0, 0, 0, 0.8);\n display: grid;\n place-items: center;\n z-index: var(--redsift-layout-z-index-overlay);\n`;\n"],"names":["StyledDialogContent","styled","div","baseContainer","_ref","$theme","css","Theme","dark","_ref2","$width","$maxWidth","$minWidth","undefined","StyledFloatingOverlay","FloatingOverlay"],"mappings":";;;;AAKA;AACA;AACA;AACaA,MAAAA,mBAAmB,GAAGC,MAAM,CAACC,GAA8B,CAAA;AACxE,EAAA,EAAIC,aAAc,CAAA;AAClB,EAAA,EAAIC,IAAA,IAAA;EAAA,IAAC;AAAEC,IAAAA,MAAAA;AAAO,GAAC,GAAAD,IAAA,CAAA;AAAA,EAAA,OAAKE,GAAI,CAAA;AACxB,uCAAyCD,EAAAA,MAAM,KAAKE,KAAK,CAACC,IAAI,GAAG,OAAO,GAAG,aAAc,CAAA;AACzF,kDAAoDH,EAAAA,MAAM,KAAKE,KAAK,CAACC,IAAI,GAAG,OAAO,GAAG,OAAQ,CAAA;AAC9F,EAAG,CAAA,CAAA;AAAA,CAAC,CAAA;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAA,EAAIC,KAAA,IAAA;EAAA,IAAC;IAAEC,MAAM;IAAEC,SAAS;AAAEC,IAAAA,SAAAA;AAAU,GAAC,GAAAH,KAAA,CAAA;AAAA,EAAA,OAAKH,GAAI,CAAA;AAC9C,IAAMI,EAAAA,MAAM,KAAKG,SAAS,GAAI,UAASH,MAAO,CAAA,CAAA,CAAE,GAAG,EAAG,CAAA;AACtD,IAAMC,EAAAA,SAAS,KAAKE,SAAS,GAAI,cAAaF,SAAU,CAAA,CAAA,CAAE,GAAG,EAAG,CAAA;AAChE,IAAMC,EAAAA,SAAS,KAAKC,SAAS,GAAI,cAAaD,SAAU,CAAA,CAAA,CAAE,GAAG,EAAG,CAAA;AAChE,EAAG,CAAA,CAAA;AAAA,CAAC,CAAA;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;MAEYE,qBAAqB,GAAGb,MAAM,CAACc,eAAe,CAAE,CAAA;AAC7D;AACA;AACA;AACA;AACA;;;;"}
@@ -1,38 +0,0 @@
1
- import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../../../../_virtual/_rollupPluginBabelHelpers.js';
2
- import React__default, { forwardRef } from 'react';
3
- import classNames from 'classnames';
4
- import { useMergeRefs } from '../../../../../node_modules/@floating-ui/react/dist/floating-ui.react.mjs.js';
5
- import { StyledDialogContentActions } from './styles.js';
6
- import { useDialogContext } from '../dialog/useDialogContext.js';
7
-
8
- const _excluded = ["children", "className", "flexDirection"];
9
- const COMPONENT_NAME = 'DialogContentActions';
10
- const CLASSNAME = 'redsift-dialog-content-actions';
11
-
12
- /**
13
- * The DialogContentActions component.
14
- */
15
- const DialogContentActions = /*#__PURE__*/forwardRef((props, ref) => {
16
- const {
17
- children,
18
- className,
19
- flexDirection = 'row'
20
- } = props,
21
- forwardedProps = _objectWithoutProperties(props, _excluded);
22
- const {
23
- actionsRef,
24
- initialFocus
25
- } = useDialogContext();
26
- return /*#__PURE__*/React__default.createElement(StyledDialogContentActions, _extends({
27
- flexDirection: flexDirection
28
- }, forwardedProps, {
29
- className: classNames(DialogContentActions.className, className),
30
- ref: useMergeRefs([ref, actionsRef]),
31
- tabIndex: initialFocus === 'actions' ? -1 : undefined
32
- }), children);
33
- });
34
- DialogContentActions.className = CLASSNAME;
35
- DialogContentActions.displayName = COMPONENT_NAME;
36
-
37
- export { DialogContentActions };
38
- //# sourceMappingURL=DialogContentActions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DialogContentActions.js","sources":["../../../../../../../popovers/src/components/dialog-content-actions/DialogContentActions.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport classNames from 'classnames';\nimport { useMergeRefs } from '@floating-ui/react';\n\nimport { Comp } from '@redsift/design-system';\nimport { StyledDialogContentActions } from './styles';\nimport { DialogContentActionsProps } from './types';\nimport { useDialogContext } from '../dialog';\n\nconst COMPONENT_NAME = 'DialogContentActions';\nconst CLASSNAME = 'redsift-dialog-content-actions';\n\n/**\n * The DialogContentActions component.\n */\nexport const DialogContentActions: Comp<DialogContentActionsProps, HTMLDivElement> = forwardRef((props, ref) => {\n const { children, className, flexDirection = 'row', ...forwardedProps } = props;\n\n const { actionsRef, initialFocus } = useDialogContext();\n\n return (\n <StyledDialogContentActions\n flexDirection={flexDirection}\n {...forwardedProps}\n className={classNames(DialogContentActions.className, className)}\n ref={useMergeRefs([ref, actionsRef])}\n tabIndex={initialFocus === 'actions' ? -1 : undefined}\n >\n {children}\n </StyledDialogContentActions>\n );\n});\nDialogContentActions.className = CLASSNAME;\nDialogContentActions.displayName = COMPONENT_NAME;\n"],"names":["COMPONENT_NAME","CLASSNAME","DialogContentActions","forwardRef","props","ref","children","className","flexDirection","forwardedProps","_objectWithoutProperties","_excluded","actionsRef","initialFocus","useDialogContext","React","createElement","StyledDialogContentActions","_extends","classNames","useMergeRefs","tabIndex","undefined","displayName"],"mappings":";;;;;;;;AASA,MAAMA,cAAc,GAAG,sBAAsB,CAAA;AAC7C,MAAMC,SAAS,GAAG,gCAAgC,CAAA;;AAElD;AACA;AACA;AACO,MAAMC,oBAAqE,gBAAGC,UAAU,CAAC,CAACC,KAAK,EAAEC,GAAG,KAAK;EAC9G,MAAM;MAAEC,QAAQ;MAAEC,SAAS;AAAEC,MAAAA,aAAa,GAAG,KAAA;AAAyB,KAAC,GAAGJ,KAAK;AAAxBK,IAAAA,cAAc,GAAAC,wBAAA,CAAKN,KAAK,EAAAO,SAAA,CAAA,CAAA;EAE/E,MAAM;IAAEC,UAAU;AAAEC,IAAAA,YAAAA;GAAc,GAAGC,gBAAgB,EAAE,CAAA;AAEvD,EAAA,oBACEC,cAAA,CAAAC,aAAA,CAACC,0BAA0B,EAAAC,QAAA,CAAA;AACzBV,IAAAA,aAAa,EAAEA,aAAAA;AAAc,GAAA,EACzBC,cAAc,EAAA;IAClBF,SAAS,EAAEY,UAAU,CAACjB,oBAAoB,CAACK,SAAS,EAAEA,SAAS,CAAE;IACjEF,GAAG,EAAEe,YAAY,CAAC,CAACf,GAAG,EAAEO,UAAU,CAAC,CAAE;AACrCS,IAAAA,QAAQ,EAAER,YAAY,KAAK,SAAS,GAAG,CAAC,CAAC,GAAGS,SAAAA;AAAU,GAAA,CAAA,EAErDhB,QACyB,CAAC,CAAA;AAEjC,CAAC,EAAC;AACFJ,oBAAoB,CAACK,SAAS,GAAGN,SAAS,CAAA;AAC1CC,oBAAoB,CAACqB,WAAW,GAAGvB,cAAc;;;;"}
@@ -1,20 +0,0 @@
1
- import styled from 'styled-components';
2
- import { baseContainer } from '@redsift/design-system';
3
-
4
- /**
5
- * Component style.
6
- */
7
- const StyledDialogContentActions = styled.div`
8
- display: flex;
9
- ${baseContainer}
10
-
11
- margin-top: 8px;
12
- margin-bottom: 8px;
13
-
14
- &:focus-visible {
15
- outline: none;
16
- }
17
- `;
18
-
19
- export { StyledDialogContentActions };
20
- //# sourceMappingURL=styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"styles.js","sources":["../../../../../../../popovers/src/components/dialog-content-actions/styles.ts"],"sourcesContent":["import styled from 'styled-components';\nimport { baseContainer } from '@redsift/design-system';\nimport { StyledDialogContentActionsProps } from './types';\n\n/**\n * Component style.\n */\nexport const StyledDialogContentActions = styled.div<StyledDialogContentActionsProps>`\n display: flex;\n ${baseContainer}\n\n margin-top: 8px;\n margin-bottom: 8px;\n\n &:focus-visible {\n outline: none;\n }\n`;\n"],"names":["StyledDialogContentActions","styled","div","baseContainer"],"mappings":";;;AAIA;AACA;AACA;AACaA,MAAAA,0BAA0B,GAAGC,MAAM,CAACC,GAAqC,CAAA;AACtF;AACA,EAAA,EAAIC,aAAc,CAAA;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;"}
@@ -1,49 +0,0 @@
1
- import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../../../../_virtual/_rollupPluginBabelHelpers.js';
2
- import React__default, { forwardRef } from 'react';
3
- import classNames from 'classnames';
4
- import { useMergeRefs } from '../../../../../node_modules/@floating-ui/react/dist/floating-ui.react.mjs.js';
5
- import { useBoundingClientRect } from '@redsift/design-system';
6
- import { StyledDialogContentBody } from './styles.js';
7
- import { useDialogContext } from '../dialog/useDialogContext.js';
8
-
9
- const _excluded = ["children", "className"];
10
- const COMPONENT_NAME = 'DialogContentBody';
11
- const CLASSNAME = 'redsift-dialog-content-body';
12
-
13
- /**
14
- * The DialogContentBody component.
15
- */
16
- const DialogContentBody = /*#__PURE__*/forwardRef((props, ref) => {
17
- const {
18
- children,
19
- className
20
- } = props,
21
- forwardedProps = _objectWithoutProperties(props, _excluded);
22
- const {
23
- actionsRef,
24
- bodyRef,
25
- hasCloseButton,
26
- headerRef,
27
- initialFocus
28
- } = useDialogContext();
29
- const {
30
- height: headerHeight = 0
31
- } = useBoundingClientRect(headerRef, [children, headerRef]);
32
- const {
33
- height: actionsHeight = 0
34
- } = useBoundingClientRect(actionsRef, [children, actionsRef]);
35
-
36
- /* istanbul ignore next */
37
- return /*#__PURE__*/React__default.createElement(StyledDialogContentBody, _extends({}, forwardedProps, {
38
- className: classNames(DialogContentBody.className, className),
39
- ref: useMergeRefs([ref, bodyRef]),
40
- tabIndex: initialFocus === 'body' ? -1 : undefined,
41
- $marginTop: Math.max(headerHeight, hasCloseButton ? 40 : 0) + 32,
42
- $marginBottom: (actionsHeight === 0 ? 0 : actionsHeight + 16) + 32
43
- }), children);
44
- });
45
- DialogContentBody.className = CLASSNAME;
46
- DialogContentBody.displayName = COMPONENT_NAME;
47
-
48
- export { DialogContentBody };
49
- //# sourceMappingURL=DialogContentBody.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DialogContentBody.js","sources":["../../../../../../../popovers/src/components/dialog-content-body/DialogContentBody.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport classNames from 'classnames';\nimport { useMergeRefs } from '@floating-ui/react';\n\nimport { Comp, useBoundingClientRect } from '@redsift/design-system';\nimport { StyledDialogContentBody } from './styles';\nimport { DialogContentBodyProps } from './types';\nimport { useDialogContext } from '../dialog';\n\nconst COMPONENT_NAME = 'DialogContentBody';\nconst CLASSNAME = 'redsift-dialog-content-body';\n\n/**\n * The DialogContentBody component.\n */\nexport const DialogContentBody: Comp<DialogContentBodyProps, HTMLDivElement> = forwardRef((props, ref) => {\n const { children, className, ...forwardedProps } = props;\n\n const { actionsRef, bodyRef, hasCloseButton, headerRef, initialFocus } = useDialogContext();\n\n const { height: headerHeight = 0 } = useBoundingClientRect(headerRef as any, [children, headerRef]);\n const { height: actionsHeight = 0 } = useBoundingClientRect(actionsRef as any, [children, actionsRef]);\n\n /* istanbul ignore next */\n return (\n <StyledDialogContentBody\n {...forwardedProps}\n className={classNames(DialogContentBody.className, className)}\n ref={useMergeRefs([ref, bodyRef])}\n tabIndex={initialFocus === 'body' ? -1 : undefined}\n $marginTop={Math.max(headerHeight, hasCloseButton ? 40 : 0) + 32}\n $marginBottom={(actionsHeight === 0 ? 0 : actionsHeight + 16) + 32}\n >\n {children}\n </StyledDialogContentBody>\n );\n});\nDialogContentBody.className = CLASSNAME;\nDialogContentBody.displayName = COMPONENT_NAME;\n"],"names":["COMPONENT_NAME","CLASSNAME","DialogContentBody","forwardRef","props","ref","children","className","forwardedProps","_objectWithoutProperties","_excluded","actionsRef","bodyRef","hasCloseButton","headerRef","initialFocus","useDialogContext","height","headerHeight","useBoundingClientRect","actionsHeight","React","createElement","StyledDialogContentBody","_extends","classNames","useMergeRefs","tabIndex","undefined","$marginTop","Math","max","$marginBottom","displayName"],"mappings":";;;;;;;;;AASA,MAAMA,cAAc,GAAG,mBAAmB,CAAA;AAC1C,MAAMC,SAAS,GAAG,6BAA6B,CAAA;;AAE/C;AACA;AACA;AACO,MAAMC,iBAA+D,gBAAGC,UAAU,CAAC,CAACC,KAAK,EAAEC,GAAG,KAAK;EACxG,MAAM;MAAEC,QAAQ;AAAEC,MAAAA,SAAAA;AAA6B,KAAC,GAAGH,KAAK;AAAxBI,IAAAA,cAAc,GAAAC,wBAAA,CAAKL,KAAK,EAAAM,SAAA,CAAA,CAAA;EAExD,MAAM;IAAEC,UAAU;IAAEC,OAAO;IAAEC,cAAc;IAAEC,SAAS;AAAEC,IAAAA,YAAAA;GAAc,GAAGC,gBAAgB,EAAE,CAAA;EAE3F,MAAM;IAAEC,MAAM,EAAEC,YAAY,GAAG,CAAA;GAAG,GAAGC,qBAAqB,CAACL,SAAS,EAAS,CAACR,QAAQ,EAAEQ,SAAS,CAAC,CAAC,CAAA;EACnG,MAAM;IAAEG,MAAM,EAAEG,aAAa,GAAG,CAAA;GAAG,GAAGD,qBAAqB,CAACR,UAAU,EAAS,CAACL,QAAQ,EAAEK,UAAU,CAAC,CAAC,CAAA;;AAEtG;EACA,oBACEU,cAAA,CAAAC,aAAA,CAACC,uBAAuB,EAAAC,QAAA,KAClBhB,cAAc,EAAA;IAClBD,SAAS,EAAEkB,UAAU,CAACvB,iBAAiB,CAACK,SAAS,EAAEA,SAAS,CAAE;IAC9DF,GAAG,EAAEqB,YAAY,CAAC,CAACrB,GAAG,EAAEO,OAAO,CAAC,CAAE;IAClCe,QAAQ,EAAEZ,YAAY,KAAK,MAAM,GAAG,CAAC,CAAC,GAAGa,SAAU;AACnDC,IAAAA,UAAU,EAAEC,IAAI,CAACC,GAAG,CAACb,YAAY,EAAEL,cAAc,GAAG,EAAE,GAAG,CAAC,CAAC,GAAG,EAAG;IACjEmB,aAAa,EAAE,CAACZ,aAAa,KAAK,CAAC,GAAG,CAAC,GAAGA,aAAa,GAAG,EAAE,IAAI,EAAA;AAAG,GAAA,CAAA,EAElEd,QACsB,CAAC,CAAA;AAE9B,CAAC,EAAC;AACFJ,iBAAiB,CAACK,SAAS,GAAGN,SAAS,CAAA;AACvCC,iBAAiB,CAAC+B,WAAW,GAAGjC,cAAc;;;;"}
@@ -1,65 +0,0 @@
1
- import styled, { css } from 'styled-components';
2
- import { baseContainer } from '@redsift/design-system';
3
-
4
- /**
5
- * Component style.
6
- */
7
- const StyledDialogContentBody = styled.div`
8
- ${baseContainer}
9
-
10
- overflow-y: auto;
11
- ${_ref => {
12
- let {
13
- $marginTop,
14
- $marginBottom
15
- } = _ref;
16
- return css`
17
- max-height: calc(100vh - ${$marginTop + $marginBottom}px);
18
- `;
19
- }}
20
-
21
- font-family: var(--redsift-typography-body-font-family);
22
- font-size: var(--redsift-typography-body-font-size);
23
- font-weight: var(--redsift-typography-body-font-weight);
24
- line-height: var(--redsift-typography-body-line-height);
25
- padding: 0 24px;
26
- margin: 16px -24px;
27
-
28
- &:focus-visible {
29
- outline: none;
30
- }
31
-
32
- scrollbar-color: var(--redsift-color-neutral-mid-grey) transparent;
33
- scrollbar-width: thin;
34
-
35
- &::-webkit-scrollbar {
36
- block-size: 9px;
37
- inline-size: 9px;
38
- }
39
-
40
- &::-webkit-scrollbar-thumb {
41
- background-clip: padding-box;
42
- background-color: var(--redsift-color-neutral-mid-grey);
43
- border-radius: 0px;
44
- border-left: 2px solid transparent;
45
- border-right: 2px solid transparent;
46
- }
47
-
48
- &::-webkit-scrollbar-track {
49
- background-color: transparent;
50
- }
51
-
52
- &::-webkit-scrollbar-thumb:horizontal,
53
- &::-webkit-scrollbar-thumb:vertical {
54
- &:hover {
55
- background-color: var(--redsift-color-neutral-x-dark-grey);
56
- }
57
- }
58
-
59
- &::-webkit-scrollbar-corner {
60
- visibility: hidden;
61
- }
62
- `;
63
-
64
- export { StyledDialogContentBody };
65
- //# sourceMappingURL=styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"styles.js","sources":["../../../../../../../popovers/src/components/dialog-content-body/styles.ts"],"sourcesContent":["import styled, { css } from 'styled-components';\nimport { baseContainer } from '@redsift/design-system';\nimport { StyledDialogContentBodyProps } from './types';\n\n/**\n * Component style.\n */\nexport const StyledDialogContentBody = styled.div<StyledDialogContentBodyProps>`\n ${baseContainer}\n\n overflow-y: auto;\n ${({ $marginTop, $marginBottom }) => css`\n max-height: calc(100vh - ${$marginTop + $marginBottom}px);\n `}\n\n font-family: var(--redsift-typography-body-font-family);\n font-size: var(--redsift-typography-body-font-size);\n font-weight: var(--redsift-typography-body-font-weight);\n line-height: var(--redsift-typography-body-line-height);\n padding: 0 24px;\n margin: 16px -24px;\n\n &:focus-visible {\n outline: none;\n }\n\n scrollbar-color: var(--redsift-color-neutral-mid-grey) transparent;\n scrollbar-width: thin;\n\n &::-webkit-scrollbar {\n block-size: 9px;\n inline-size: 9px;\n }\n\n &::-webkit-scrollbar-thumb {\n background-clip: padding-box;\n background-color: var(--redsift-color-neutral-mid-grey);\n border-radius: 0px;\n border-left: 2px solid transparent;\n border-right: 2px solid transparent;\n }\n\n &::-webkit-scrollbar-track {\n background-color: transparent;\n }\n\n &::-webkit-scrollbar-thumb:horizontal,\n &::-webkit-scrollbar-thumb:vertical {\n &:hover {\n background-color: var(--redsift-color-neutral-x-dark-grey);\n }\n }\n\n &::-webkit-scrollbar-corner {\n visibility: hidden;\n }\n`;\n"],"names":["StyledDialogContentBody","styled","div","baseContainer","_ref","$marginTop","$marginBottom","css"],"mappings":";;;AAIA;AACA;AACA;AACaA,MAAAA,uBAAuB,GAAGC,MAAM,CAACC,GAAkC,CAAA;AAChF,EAAA,EAAIC,aAAc,CAAA;AAClB;AACA;AACA,EAAA,EAAIC,IAAA,IAAA;EAAA,IAAC;IAAEC,UAAU;AAAEC,IAAAA,aAAAA;AAAc,GAAC,GAAAF,IAAA,CAAA;AAAA,EAAA,OAAKG,GAAI,CAAA;AAC3C,6BAA+BF,EAAAA,UAAU,GAAGC,aAAc,CAAA;AAC1D,EAAG,CAAA,CAAA;AAAA,CAAC,CAAA;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;"}
@@ -1,86 +0,0 @@
1
- import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../../../../_virtual/_rollupPluginBabelHelpers.js';
2
- import React__default, { forwardRef } from 'react';
3
- import classNames from 'classnames';
4
- import { useMergeRefs } from '../../../../../node_modules/@floating-ui/react/dist/floating-ui.react.mjs.js';
5
- import { useId, Skeleton, Heading, Icon } from '@redsift/design-system';
6
- import { StyledDialogContentHeader } from './styles.js';
7
- import { useDialogContext } from '../dialog/useDialogContext.js';
8
-
9
- const _excluded = ["children", "className", "header", "headingProps", "icon", "iconProps", "isLoading", "subheader", "theme"];
10
- const COMPONENT_NAME = 'DialogContentHeader';
11
- const CLASSNAME = 'redsift-dialog-content-header';
12
-
13
- /**
14
- * The DialogContentHeader component.
15
- */
16
- const DialogContentHeader = /*#__PURE__*/forwardRef((props, ref) => {
17
- const {
18
- children,
19
- className,
20
- header,
21
- headingProps,
22
- icon,
23
- iconProps,
24
- isLoading,
25
- subheader,
26
- theme
27
- } = props,
28
- forwardedProps = _objectWithoutProperties(props, _excluded);
29
- const {
30
- setLabelId,
31
- setDescriptionId,
32
- headerRef,
33
- initialFocus
34
- } = useDialogContext();
35
- const [labelId] = useId();
36
- const [descriptionId] = useId();
37
-
38
- // Only sets `aria-labelledby` on the Dialog root element
39
- // if this component is mounted inside it.
40
- React__default.useLayoutEffect(() => {
41
- setLabelId(labelId);
42
- return () => setLabelId(undefined);
43
- }, [labelId, setLabelId]);
44
-
45
- // Only sets `aria-describedby` on the Dialog root element
46
- // if this component is mounted inside it.
47
- React__default.useLayoutEffect(() => {
48
- setDescriptionId(descriptionId);
49
- return () => setDescriptionId(undefined);
50
- }, [descriptionId, setDescriptionId]);
51
- return /*#__PURE__*/React__default.createElement(StyledDialogContentHeader, _extends({}, forwardedProps, {
52
- className: classNames(DialogContentHeader.className, className),
53
- ref: useMergeRefs([ref, headerRef]),
54
- tabIndex: initialFocus === 'header' ? -1 : undefined
55
- }), subheader ? /*#__PURE__*/React__default.createElement(Skeleton.Text, {
56
- theme: theme,
57
- variant: "body",
58
- isLoaded: !isLoading
59
- }, /*#__PURE__*/React__default.createElement("div", {
60
- className: `${DialogContentHeader.className}__subheader`
61
- }, subheader)) : null, header ? /*#__PURE__*/React__default.createElement(Skeleton.Text, {
62
- theme: theme,
63
- variant: (headingProps === null || headingProps === void 0 ? void 0 : headingProps.variant) || 'h2',
64
- isLoaded: !isLoading,
65
- marginTop: "10px",
66
- marginBottom: "10px"
67
- }, /*#__PURE__*/React__default.createElement(Heading, _extends({
68
- theme: theme,
69
- as: "h2",
70
- color: "black",
71
- className: `${DialogContentHeader.className}__header`,
72
- variant: "h2"
73
- }, headingProps), icon ? /*#__PURE__*/React__default.createElement(Icon, _extends({
74
- theme: theme,
75
- icon: icon,
76
- "aria-hidden": "true",
77
- size: "large"
78
- }, iconProps)) : null, header)) : null, children ? /*#__PURE__*/React__default.createElement("div", {
79
- id: descriptionId
80
- }, children) : null);
81
- });
82
- DialogContentHeader.className = CLASSNAME;
83
- DialogContentHeader.displayName = COMPONENT_NAME;
84
-
85
- export { DialogContentHeader };
86
- //# sourceMappingURL=DialogContentHeader.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DialogContentHeader.js","sources":["../../../../../../../popovers/src/components/dialog-content-header/DialogContentHeader.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport classNames from 'classnames';\nimport { useMergeRefs } from '@floating-ui/react';\n\nimport { Icon, Heading, Comp, useId, Skeleton } from '@redsift/design-system';\nimport { StyledDialogContentHeader } from './styles';\nimport { DialogContentHeaderProps } from './types';\nimport { useDialogContext } from '../dialog';\n\nconst COMPONENT_NAME = 'DialogContentHeader';\nconst CLASSNAME = 'redsift-dialog-content-header';\n\n/**\n * The DialogContentHeader component.\n */\nexport const DialogContentHeader: Comp<DialogContentHeaderProps, HTMLDivElement> = forwardRef((props, ref) => {\n const { children, className, header, headingProps, icon, iconProps, isLoading, subheader, theme, ...forwardedProps } =\n props;\n\n const { setLabelId, setDescriptionId, headerRef, initialFocus } = useDialogContext();\n const [labelId] = useId();\n const [descriptionId] = useId();\n\n // Only sets `aria-labelledby` on the Dialog root element\n // if this component is mounted inside it.\n React.useLayoutEffect(() => {\n setLabelId(labelId);\n return () => setLabelId(undefined);\n }, [labelId, setLabelId]);\n\n // Only sets `aria-describedby` on the Dialog root element\n // if this component is mounted inside it.\n React.useLayoutEffect(() => {\n setDescriptionId(descriptionId);\n return () => setDescriptionId(undefined);\n }, [descriptionId, setDescriptionId]);\n\n return (\n <StyledDialogContentHeader\n {...forwardedProps}\n className={classNames(DialogContentHeader.className, className)}\n ref={useMergeRefs([ref, headerRef])}\n tabIndex={initialFocus === 'header' ? -1 : undefined}\n >\n {subheader ? (\n <Skeleton.Text theme={theme} variant=\"body\" isLoaded={!isLoading}>\n <div className={`${DialogContentHeader.className}__subheader`}>{subheader}</div>\n </Skeleton.Text>\n ) : null}\n {header ? (\n <Skeleton.Text\n theme={theme}\n variant={headingProps?.variant || 'h2'}\n isLoaded={!isLoading}\n marginTop=\"10px\"\n marginBottom=\"10px\"\n >\n <Heading\n theme={theme}\n as=\"h2\"\n color=\"black\"\n className={`${DialogContentHeader.className}__header`}\n variant=\"h2\"\n {...headingProps}\n >\n {icon ? <Icon theme={theme} icon={icon} aria-hidden=\"true\" size=\"large\" {...iconProps} /> : null}\n {header}\n </Heading>\n </Skeleton.Text>\n ) : null}\n {children ? <div id={descriptionId}>{children}</div> : null}\n </StyledDialogContentHeader>\n );\n});\nDialogContentHeader.className = CLASSNAME;\nDialogContentHeader.displayName = COMPONENT_NAME;\n"],"names":["COMPONENT_NAME","CLASSNAME","DialogContentHeader","forwardRef","props","ref","children","className","header","headingProps","icon","iconProps","isLoading","subheader","theme","forwardedProps","_objectWithoutProperties","_excluded","setLabelId","setDescriptionId","headerRef","initialFocus","useDialogContext","labelId","useId","descriptionId","React","useLayoutEffect","undefined","createElement","StyledDialogContentHeader","_extends","classNames","useMergeRefs","tabIndex","Skeleton","Text","variant","isLoaded","marginTop","marginBottom","Heading","as","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QAAA,CAAA;AAACjB,IAAAA,KAAK,EAAEA,KAAM;AAACJ,IAAAA,IAAI,EAAEA,IAAK;AAAC,IAAA,aAAA,EAAY,MAAM;AAACmC,IAAAA,IAAI,EAAC,OAAA;AAAO,GAAA,EAAKlC,SAAS,CAAG,CAAC,GAAG,IAAI,EAC/FH,MACM,CACI,CAAC,GACd,IAAI,EACPF,QAAQ,gBAAGoB,cAAA,CAAAG,aAAA,CAAA,KAAA,EAAA;AAAKiB,IAAAA,EAAE,EAAErB,aAAAA;AAAc,GAAA,EAAEnB,QAAc,CAAC,GAAG,IAC9B,CAAC,CAAA;AAEhC,CAAC,EAAC;AACFJ,mBAAmB,CAACK,SAAS,GAAGN,SAAS,CAAA;AACzCC,mBAAmB,CAAC6C,WAAW,GAAG/C,cAAc;;;;"}
@@ -1,31 +0,0 @@
1
- import styled from 'styled-components';
2
- import { baseStyling, baseFlexbox } from '@redsift/design-system';
3
-
4
- /**
5
- * Component style.
6
- */
7
- const StyledDialogContentHeader = styled.div`
8
- display: flex;
9
- flex-direction: column;
10
- width: 100%;
11
- ${baseStyling}
12
- ${baseFlexbox}
13
-
14
- .redsift-dialog-content-header__header {
15
- align-items: center;
16
- display: flex;
17
- gap: 8px;
18
- padding: 10px 0px;
19
- margin: 0px;
20
- }
21
-
22
- .redsift-dialog-content-header__subheader {
23
- font-family: var(--redsift-typography-body-font-family);
24
- font-size: var(--redsift-typography-body-font-size);
25
- font-weight: var(--redsift-typography-body-font-weight);
26
- line-height: var(--redsift-typography-body-line-height);
27
- }
28
- `;
29
-
30
- export { StyledDialogContentHeader };
31
- //# sourceMappingURL=styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"styles.js","sources":["../../../../../../../popovers/src/components/dialog-content-header/styles.ts"],"sourcesContent":["import styled from 'styled-components';\nimport { StyledDialogContentHeaderProps } from './types';\nimport { baseFlexbox, baseStyling } from '@redsift/design-system';\n\n/**\n * Component style.\n */\nexport const StyledDialogContentHeader = styled.div<StyledDialogContentHeaderProps>`\n display: flex;\n flex-direction: column;\n width: 100%;\n ${baseStyling}\n ${baseFlexbox}\n\n .redsift-dialog-content-header__header {\n align-items: center;\n display: flex;\n gap: 8px;\n padding: 10px 0px;\n margin: 0px;\n }\n\n .redsift-dialog-content-header__subheader {\n font-family: var(--redsift-typography-body-font-family);\n font-size: var(--redsift-typography-body-font-size);\n font-weight: var(--redsift-typography-body-font-weight);\n line-height: var(--redsift-typography-body-line-height);\n }\n`;\n"],"names":["StyledDialogContentHeader","styled","div","baseStyling","baseFlexbox"],"mappings":";;;AAIA;AACA;AACA;AACaA,MAAAA,yBAAyB,GAAGC,MAAM,CAACC,GAAoC,CAAA;AACpF;AACA;AACA;AACA,EAAA,EAAIC,WAAY,CAAA;AAChB,EAAA,EAAIC,WAAY,CAAA;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;"}