@openedx/paragon 22.6.0 → 22.7.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/Chip/ChipIcon.d.ts +11 -6
- package/dist/Chip/ChipIcon.js +0 -2
- package/dist/Chip/ChipIcon.js.map +1 -1
- package/dist/Chip/constants.d.ts +4 -0
- package/dist/Chip/constants.js +3 -2
- package/dist/Chip/constants.js.map +1 -0
- package/dist/Chip/index.d.ts +2 -1
- package/dist/Chip/index.js +0 -2
- package/dist/Chip/index.js.map +1 -1
- package/dist/ChipCarousel/index.js +0 -2
- package/dist/ChipCarousel/index.js.map +1 -1
- package/dist/IconButton/index.d.ts +344 -0
- package/dist/IconButton/index.js +17 -25
- package/dist/IconButton/index.js.map +1 -1
- package/dist/Menu/SelectMenu.js +9 -4
- package/dist/Menu/SelectMenu.js.map +1 -1
- package/dist/Modal/ModalPopup.js +7 -1
- package/dist/Modal/ModalPopup.js.map +1 -1
- package/dist/Overlay/index.d.ts +128 -0
- package/dist/Overlay/index.js +5 -0
- package/dist/Overlay/index.js.map +1 -1
- package/dist/Tooltip/index.d.ts +7 -0
- package/dist/Tooltip/index.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/package.json +1 -1
- package/src/Chip/{Chip.test.jsx → Chip.test.tsx} +5 -7
- package/src/Chip/ChipIcon.tsx +7 -7
- package/src/Chip/{constants.js → constants.ts} +1 -1
- package/src/Chip/index.tsx +1 -3
- package/src/ChipCarousel/index.tsx +0 -2
- package/src/IconButton/{IconButton.test.jsx → IconButton.test.tsx} +24 -3
- package/src/IconButton/__snapshots__/IconButton.test.tsx.snap +112 -0
- package/src/IconButton/{index.jsx → index.tsx} +62 -22
- package/src/Menu/SelectMenu.jsx +5 -0
- package/src/Menu/SelectMenu.test.jsx +6 -0
- package/src/Menu/select-menu.md +8 -0
- package/src/Modal/ModalPopup.jsx +9 -1
- package/src/Modal/tests/ModalPopupNoMock.test.jsx +29 -0
- package/src/Overlay/{index.jsx → index.tsx} +10 -6
- package/src/Tooltip/{index.jsx → index.tsx} +9 -3
- package/src/index.d.ts +3 -3
- package/src/index.js +3 -3
- package/src/IconButton/__snapshots__/IconButton.test.jsx.snap +0 -43
- /package/src/Chip/__snapshots__/{Chip.test.jsx.snap → Chip.test.tsx.snap} +0 -0
- /package/src/Tooltip/{Tooltip.test.jsx → Tooltip.test.tsx} +0 -0
package/src/index.js
CHANGED
|
@@ -10,6 +10,9 @@ export { default as Chip, CHIP_PGN_CLASS } from './Chip';
|
|
|
10
10
|
export { default as ChipCarousel } from './ChipCarousel';
|
|
11
11
|
export { default as Hyperlink, HYPER_LINK_EXTERNAL_LINK_ALT_TEXT, HYPER_LINK_EXTERNAL_LINK_TITLE } from './Hyperlink';
|
|
12
12
|
export { default as Icon } from './Icon';
|
|
13
|
+
export { default as IconButton, IconButtonWithTooltip } from './IconButton';
|
|
14
|
+
export { default as Overlay, OverlayTrigger } from './Overlay';
|
|
15
|
+
export { default as Tooltip } from './Tooltip';
|
|
13
16
|
|
|
14
17
|
// // // // // // // // // // // // // // // // // // // // // // // // // // //
|
|
15
18
|
// Things that don't have types
|
|
@@ -73,7 +76,6 @@ export {
|
|
|
73
76
|
FormAutosuggestOption,
|
|
74
77
|
InputGroup,
|
|
75
78
|
} from './Form';
|
|
76
|
-
export { default as IconButton, IconButtonWithTooltip } from './IconButton';
|
|
77
79
|
export { default as IconButtonToggle } from './IconButtonToggle';
|
|
78
80
|
export { default as Input } from './Input';
|
|
79
81
|
export { default as InputSelect } from './InputSelect';
|
|
@@ -106,7 +108,6 @@ export {
|
|
|
106
108
|
NavLink,
|
|
107
109
|
} from './Nav';
|
|
108
110
|
export { default as Navbar, NavbarBrand, NAVBAR_LABEL } from './Navbar';
|
|
109
|
-
export { default as Overlay, OverlayTrigger } from './Overlay';
|
|
110
111
|
export { default as PageBanner, PAGE_BANNER_DISMISS_ALT_TEXT } from './PageBanner';
|
|
111
112
|
export {
|
|
112
113
|
default as Pagination,
|
|
@@ -145,7 +146,6 @@ export {
|
|
|
145
146
|
} from './Tabs';
|
|
146
147
|
export { default as TextArea } from './TextArea';
|
|
147
148
|
export { default as Toast, TOAST_CLOSE_LABEL_TEXT, TOAST_DELAY } from './Toast';
|
|
148
|
-
export { default as Tooltip } from './Tooltip';
|
|
149
149
|
export { default as ValidationFormGroup } from './ValidationFormGroup';
|
|
150
150
|
export { default as TransitionReplace } from './TransitionReplace';
|
|
151
151
|
export { default as ValidationMessage } from './ValidationMessage';
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`<IconButton /> renders with required props 1`] = `
|
|
4
|
-
<button
|
|
5
|
-
aria-label="alternative"
|
|
6
|
-
className="btn-icon btn-icon-primary btn-icon-md"
|
|
7
|
-
onClick={[Function]}
|
|
8
|
-
type="button"
|
|
9
|
-
>
|
|
10
|
-
<span
|
|
11
|
-
className="btn-icon__icon-container"
|
|
12
|
-
>
|
|
13
|
-
<svg
|
|
14
|
-
aria-hidden="true"
|
|
15
|
-
className="svg-inline--fa fa-InfoOutlineIcon btn-icon__icon"
|
|
16
|
-
data-icon="InfoOutlineIcon"
|
|
17
|
-
data-prefix="pgn"
|
|
18
|
-
focusable="false"
|
|
19
|
-
role="img"
|
|
20
|
-
src={null}
|
|
21
|
-
style={{}}
|
|
22
|
-
viewBox="0 0 function SvgInfoOutline(props) {
|
|
23
|
-
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
24
|
-
width: 24,
|
|
25
|
-
height: 24,
|
|
26
|
-
viewBox: "0 0 24 24",
|
|
27
|
-
fill: "none",
|
|
28
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
29
|
-
}, props), /*#__PURE__*/React.createElement("path", {
|
|
30
|
-
d: "M11 7h2v2h-2V7Zm0 4h2v6h-2v-6Zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2Zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8Z",
|
|
31
|
-
fill: "currentColor"
|
|
32
|
-
}));
|
|
33
|
-
} undefined"
|
|
34
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
35
|
-
>
|
|
36
|
-
<path
|
|
37
|
-
fill="currentColor"
|
|
38
|
-
style={{}}
|
|
39
|
-
/>
|
|
40
|
-
</svg>
|
|
41
|
-
</span>
|
|
42
|
-
</button>
|
|
43
|
-
`;
|
|
File without changes
|
|
File without changes
|