@conveyorhq/arrow-ds 1.154.0 → 1.156.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/README.md +1 -1
- package/package.json +2 -2
- package/public/components/Icon/Icon.d.ts +2 -0
- package/public/components/Icon/Icon.js +5 -1
- package/public/components/MenuRenderer/MenuRenderer.js +2 -2
- package/public/components/Popover/Popover.js +4 -4
- package/public/components/SelectNew/hooks/useSelectLayout.js +2 -2
- package/public/components/Table/FilterDropdown.js +4 -4
- package/public/index.d.ts +1 -1
- package/public/index.js +2 -2
- package/src/components/Icon/Icon.tsx +6 -0
- package/src/components/MenuRenderer/MenuRenderer.tsx +1 -1
- package/src/components/Popover/Popover.tsx +1 -1
- package/src/components/Select/SelectPopover.tsx +1 -1
- package/src/components/SelectNew/hooks/useSelectLayout.ts +1 -1
- package/src/components/Table/FilterDropdown.tsx +1 -1
- package/src/index.ts +1 -1
package/README.md
CHANGED
|
@@ -112,7 +112,7 @@ If you’d prefer to create a fork and run Storybook locally, there are instruct
|
|
|
112
112
|
|
|
113
113
|
## Publishing `@conveyorhq/arrow-ds` (npm)
|
|
114
114
|
|
|
115
|
-
New releases of Arrow Design System are triggered automatically by [semantic-release](https://github.com/semantic-release/semantic-release). It uses the commit messages to determine the type of changes in the codebase. Following formalized conventions for commit messages, semantic-release automatically determines the next semantic version number, generates a changelog and publishes the release.
|
|
115
|
+
New releases of Arrow Design System are triggered automatically by [semantic-release](https://github.com/semantic-release/semantic-release). It uses the commit messages to determine the type of changes in the codebase. Following formalized conventions for commit messages, semantic-release automatically determines the next semantic version number, generates a changelog and publishes the release. Release only happen if commit messages have relevant changes.
|
|
116
116
|
|
|
117
117
|
**Note**: No version number is committed to `package.json`. Instead, semantic-release adds it automatically before publishing to npm.
|
|
118
118
|
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@conveyorhq/arrow-ds",
|
|
3
3
|
"author": "Conveyor",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.156.0",
|
|
6
6
|
"description": "Arrow Design System",
|
|
7
7
|
"repository": "https://github.com/conveyor/arrow-ds",
|
|
8
8
|
"publishConfig": {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"react-hot-toast": "^2.4.1",
|
|
47
47
|
"react-markdown": "^4.3.1",
|
|
48
48
|
"react-merge-refs": "^1.1.0",
|
|
49
|
-
"react-popper
|
|
49
|
+
"react-popper": "^2.3.0",
|
|
50
50
|
"react-remove-scroll": "^2.2.0",
|
|
51
51
|
"react-select": "^4.0.2",
|
|
52
52
|
"react-spring": "^8.0.27",
|
|
@@ -81,6 +81,7 @@ export declare enum ICON_TYPE {
|
|
|
81
81
|
ELLIPSIS_H = "ellipsis-h",
|
|
82
82
|
ELLIPSIS_V = "ellipsis-v",
|
|
83
83
|
ENVELOPE = "envelope",
|
|
84
|
+
ENVELOPE_OPEN_TEXT = "envelope-open-text",
|
|
84
85
|
ERASER = "eraser",
|
|
85
86
|
EXCHANGE_ALT = "exchange-alt",
|
|
86
87
|
EXCLAMATION = "exclamation",
|
|
@@ -199,6 +200,7 @@ export declare enum ICON_TYPE {
|
|
|
199
200
|
VIAL = "vial",
|
|
200
201
|
WRENCH = "wrench",
|
|
201
202
|
PLUG = "plug",
|
|
203
|
+
MONEY_BILL_WAVE = "money-bill-wave",
|
|
202
204
|
MONEY_CHECK_ALT = "money-check-alt",
|
|
203
205
|
CLOUD_SHOWERS_HEAVY = "cloud-showers-heavy",
|
|
204
206
|
AWARD = "award"
|
|
@@ -105,6 +105,7 @@ const faEdit_1 = require("@fortawesome/free-solid-svg-icons/faEdit");
|
|
|
105
105
|
const faEllipsisH_1 = require("@fortawesome/free-solid-svg-icons/faEllipsisH");
|
|
106
106
|
const faEllipsisV_1 = require("@fortawesome/free-solid-svg-icons/faEllipsisV");
|
|
107
107
|
const faEnvelope_2 = require("@fortawesome/free-solid-svg-icons/faEnvelope");
|
|
108
|
+
const faEnvelopeOpenText_1 = require("@fortawesome/free-solid-svg-icons/faEnvelopeOpenText");
|
|
108
109
|
const faEraser_1 = require("@fortawesome/free-solid-svg-icons/faEraser");
|
|
109
110
|
const faExchangeAlt_1 = require("@fortawesome/free-solid-svg-icons/faExchangeAlt");
|
|
110
111
|
const faExclamation_1 = require("@fortawesome/free-solid-svg-icons/faExclamation");
|
|
@@ -155,6 +156,7 @@ const faMapMarkerAlt_1 = require("@fortawesome/free-solid-svg-icons/faMapMarkerA
|
|
|
155
156
|
const faMapSigns_1 = require("@fortawesome/free-solid-svg-icons/faMapSigns");
|
|
156
157
|
const faMeteor_1 = require("@fortawesome/free-solid-svg-icons/faMeteor");
|
|
157
158
|
const faMinus_1 = require("@fortawesome/free-solid-svg-icons/faMinus");
|
|
159
|
+
const faMoneyBillWave_1 = require("@fortawesome/free-solid-svg-icons/faMoneyBillWave");
|
|
158
160
|
const faMoneyCheckAlt_1 = require("@fortawesome/free-solid-svg-icons/faMoneyCheckAlt");
|
|
159
161
|
const faMousePointer_1 = require("@fortawesome/free-solid-svg-icons/faMousePointer");
|
|
160
162
|
const faPalette_1 = require("@fortawesome/free-solid-svg-icons/faPalette");
|
|
@@ -230,7 +232,7 @@ const types_1 = require("../../types");
|
|
|
230
232
|
const utilities_1 = require("../../utilities");
|
|
231
233
|
const ShieldCheck_1 = require("./svg/ShieldCheck");
|
|
232
234
|
const cn = (0, utilities_1.bemHOF)("Icon");
|
|
233
|
-
fontawesome_svg_core_1.library.add(faArchive_1.faArchive, faArrowDown_1.faArrowDown, faArrowLeft_1.faArrowLeft, faArrowRight_1.faArrowRight, faArrowsAlt_1.faArrowsAlt, faArrowUp_1.faArrowUp, faBackward_1.faBackward, faBalanceScale_1.faBalanceScale, faBan_1.faBan, faBandAid_1.faBandAid, faBars_1.faBars, faBatteryHalf_1.faBatteryHalf, faBed_1.faBed, faBell_1.faBell, faBell_2.faBell, faBellSlash_1.faBellSlash, faBellSlash_2.faBellSlash, faBiohazard_1.faBiohazard, faBirthdayCake_1.faBirthdayCake, faBolt_1.faBolt, faBook_1.faBook, faBroom_1.faBroom, faBug_1.faBug, faBullhorn_1.faBullhorn, faBullseye_1.faBullseye, faCalculator_1.faCalculator, faCalendar_1.faCalendar, faCamera_1.faCamera, faCaretDown_1.faCaretDown, faCaretLeft_1.faCaretLeft, faCaretRight_1.faCaretRight, faCaretUp_1.faCaretUp, faChartBar_1.faChartBar, faChartLine_1.faChartLine, faCheck_1.faCheck, faCheckCircle_2.faCheckCircle, faCheckCircle_1.faCheckCircle, faCheckSquare_1.faCheckSquare, faChevronDown_1.faChevronDown, faChevronLeft_1.faChevronLeft, faChevronRight_1.faChevronRight, faChevronUp_1.faChevronUp, faCircle_2.faCircle, faCircleNotch_1.faCircleNotch, faCircle_1.faCircle, faClipboard_1.faClipboard, faClock_1.faClock, faClock_2.faClock, faCloudDownloadAlt_1.faCloudDownloadAlt, faCloudShowersHeavy_1.faCloudShowersHeavy, faCloudUploadAlt_1.faCloudUploadAlt, faCog_1.faCog, faCoins_1.faCoins, faColumns_1.faColumns, faCommentAlt_1.faCommentAlt, faCompass_1.faCompass, faCompress_1.faCompress, faCompressArrowsAlt_1.faCompressArrowsAlt, faCopy_1.faCopy, faCrosshairs_1.faCrosshairs, faCrown_1.faCrown, faDoorClosed_1.faDoorClosed, faEdit_1.faEdit, faEllipsisH_1.faEllipsisH, faEllipsisV_1.faEllipsisV, faEnvelope_2.faEnvelope, faEnvelope_1.faEnvelope, faEraser_1.faEraser, faExchangeAlt_1.faExchangeAlt, faExclamation_1.faExclamation, faExclamationCircle_1.faExclamationCircle, faExclamationTriangle_1.faExclamationTriangle, faExpand_1.faExpand, faExpandArrowsAlt_1.faExpandArrowsAlt, faExternalLinkAlt_1.faExternalLinkAlt, faExternalLinkSquareAlt_1.faExternalLinkSquareAlt, faEye_1.faEye, faEyeSlash_1.faEyeSlash, faFastBackward_1.faFastBackward, faFastForward_1.faFastForward, faFile_1.faFile, faFileAlt_1.faFileAlt, faFileAlt_2.faFileAlt, faFileImport_1.faFileImport, faFileSignature_1.faFileSignature, faFillDrip_1.faFillDrip, faFilter_1.faFilter, faFlag_1.faFlag, faFolder_1.faFolder, faForward_1.faForward, faGlobeAmericas_1.faGlobeAmericas, faGlobeEurope_1.faGlobeEurope, faGripLines_1.faGripLines, faGripLinesVertical_1.faGripLinesVertical, faHandshake_1.faHandshake, faHashtag_1.faHashtag, faHeartBroken_1.faHeartBroken, faHighlighter_1.faHighlighter, faHistory_1.faHistory, faIdBadge_1.faIdBadge, faImage_1.faImage, faInfoCircle_1.faInfoCircle, faKey_1.faKey, faKeyboard_1.faKeyboard, faLaptop_1.faLaptop, faLayerGroup_1.faLayerGroup, faLevelUpAlt_1.faLevelUpAlt, faLifeRing_1.faLifeRing, faLink_1.faLink, faListOl_1.faListOl, faListUl_1.faListUl, faLock_1.faLock, faLongArrowAltRight_1.faLongArrowAltRight, faMagic_1.faMagic, faMapMarkerAlt_1.faMapMarkerAlt, faMapSigns_1.faMapSigns, faMeteor_1.faMeteor, faMinus_1.faMinus, faMoneyCheckAlt_1.faMoneyCheckAlt, faMousePointer_1.faMousePointer, faPalette_1.faPalette, faPaperclip_1.faPaperclip, faPaperPlane_1.faPaperPlane, faPaste_1.faPaste, faPause_1.faPause, faPen_1.faPen, faPencilRuler_1.faPencilRuler, faPlay_1.faPlay, faPlug_1.faPlug, faPlus_1.faPlus, faPlusCircle_1.faPlusCircle, faPooStorm_1.faPooStorm, faQuestion_1.faQuestion, faQuestionCircle_2.faQuestionCircle, faQuestionCircle_1.faQuestionCircle, faRandom_1.faRandom, faRedo_1.faRedo, faReply_1.faReply, faRobot_1.faRobot, faRocket_1.faRocket, faSave_1.faSave, faScroll_1.faScroll, faSearch_1.faSearch, faSearchPlus_1.faSearchPlus, faSeedling_1.faSeedling, faServer_1.faServer, faShare_1.faShare, faShareAlt_1.faShareAlt, faShieldAlt_1.faShieldAlt, faSignal_1.faSignal, faSignature_1.faSignature, faSignOutAlt_1.faSignOutAlt, faSitemap_1.faSitemap, faSkull_1.faSkull, faSlidersH_1.faSlidersH, faSort_1.faSort, faSortDown_1.faSortDown, faSortUp_1.faSortUp, faSpinner_1.faSpinner, faSquare_1.faSquare, faStamp_1.faStamp, faStar_1.faStar, faStar_2.faStar, faSuitcaseRolling_1.faSuitcaseRolling, faSync_1.faSync, faTable_1.faTable, faTasks_1.faTasks, faThLarge_1.faThLarge, faThumbsDown_1.faThumbsDown, faThumbsDown_2.faThumbsDown, faThumbsUp_1.faThumbsUp, faThumbsUp_2.faThumbsUp, faTicketAlt_1.faTicketAlt, faTimes_1.faTimes, faTimesCircle_1.faTimesCircle, faTimesCircle_2.faTimesCircle, faTools_1.faTools, faTrash_1.faTrash, faUndo_1.faUndo, faUnlink_1.faUnlink, faUnlock_1.faUnlock, faUser_2.faUser, faUserAstronaut_1.faUserAstronaut, faUserFriends_1.faUserFriends, faUserLock_1.faUserLock, faUserPlus_1.faUserPlus, faUser_1.faUser, faUsers_1.faUsers, faUserSecret_1.faUserSecret, faUserShield_1.faUserShield, faVial_1.faVial, faWrench_1.faWrench, faAward_1.faAward);
|
|
235
|
+
fontawesome_svg_core_1.library.add(faArchive_1.faArchive, faArrowDown_1.faArrowDown, faArrowLeft_1.faArrowLeft, faArrowRight_1.faArrowRight, faArrowsAlt_1.faArrowsAlt, faArrowUp_1.faArrowUp, faBackward_1.faBackward, faBalanceScale_1.faBalanceScale, faBan_1.faBan, faBandAid_1.faBandAid, faBars_1.faBars, faBatteryHalf_1.faBatteryHalf, faBed_1.faBed, faBell_1.faBell, faBell_2.faBell, faBellSlash_1.faBellSlash, faBellSlash_2.faBellSlash, faBiohazard_1.faBiohazard, faBirthdayCake_1.faBirthdayCake, faBolt_1.faBolt, faBook_1.faBook, faBroom_1.faBroom, faBug_1.faBug, faBullhorn_1.faBullhorn, faBullseye_1.faBullseye, faCalculator_1.faCalculator, faCalendar_1.faCalendar, faCamera_1.faCamera, faCaretDown_1.faCaretDown, faCaretLeft_1.faCaretLeft, faCaretRight_1.faCaretRight, faCaretUp_1.faCaretUp, faChartBar_1.faChartBar, faChartLine_1.faChartLine, faCheck_1.faCheck, faCheckCircle_2.faCheckCircle, faCheckCircle_1.faCheckCircle, faCheckSquare_1.faCheckSquare, faChevronDown_1.faChevronDown, faChevronLeft_1.faChevronLeft, faChevronRight_1.faChevronRight, faChevronUp_1.faChevronUp, faCircle_2.faCircle, faCircleNotch_1.faCircleNotch, faCircle_1.faCircle, faClipboard_1.faClipboard, faClock_1.faClock, faClock_2.faClock, faCloudDownloadAlt_1.faCloudDownloadAlt, faCloudShowersHeavy_1.faCloudShowersHeavy, faCloudUploadAlt_1.faCloudUploadAlt, faCog_1.faCog, faCoins_1.faCoins, faColumns_1.faColumns, faCommentAlt_1.faCommentAlt, faCompass_1.faCompass, faCompress_1.faCompress, faCompressArrowsAlt_1.faCompressArrowsAlt, faCopy_1.faCopy, faCrosshairs_1.faCrosshairs, faCrown_1.faCrown, faDoorClosed_1.faDoorClosed, faEdit_1.faEdit, faEllipsisH_1.faEllipsisH, faEllipsisV_1.faEllipsisV, faEnvelope_2.faEnvelope, faEnvelope_1.faEnvelope, faEnvelopeOpenText_1.faEnvelopeOpenText, faEraser_1.faEraser, faExchangeAlt_1.faExchangeAlt, faExclamation_1.faExclamation, faExclamationCircle_1.faExclamationCircle, faExclamationTriangle_1.faExclamationTriangle, faExpand_1.faExpand, faExpandArrowsAlt_1.faExpandArrowsAlt, faExternalLinkAlt_1.faExternalLinkAlt, faExternalLinkSquareAlt_1.faExternalLinkSquareAlt, faEye_1.faEye, faEyeSlash_1.faEyeSlash, faFastBackward_1.faFastBackward, faFastForward_1.faFastForward, faFile_1.faFile, faFileAlt_1.faFileAlt, faFileAlt_2.faFileAlt, faFileImport_1.faFileImport, faFileSignature_1.faFileSignature, faFillDrip_1.faFillDrip, faFilter_1.faFilter, faFlag_1.faFlag, faFolder_1.faFolder, faForward_1.faForward, faGlobeAmericas_1.faGlobeAmericas, faGlobeEurope_1.faGlobeEurope, faGripLines_1.faGripLines, faGripLinesVertical_1.faGripLinesVertical, faHandshake_1.faHandshake, faHashtag_1.faHashtag, faHeartBroken_1.faHeartBroken, faHighlighter_1.faHighlighter, faHistory_1.faHistory, faIdBadge_1.faIdBadge, faImage_1.faImage, faInfoCircle_1.faInfoCircle, faKey_1.faKey, faKeyboard_1.faKeyboard, faLaptop_1.faLaptop, faLayerGroup_1.faLayerGroup, faLevelUpAlt_1.faLevelUpAlt, faLifeRing_1.faLifeRing, faLink_1.faLink, faListOl_1.faListOl, faListUl_1.faListUl, faLock_1.faLock, faLongArrowAltRight_1.faLongArrowAltRight, faMagic_1.faMagic, faMapMarkerAlt_1.faMapMarkerAlt, faMapSigns_1.faMapSigns, faMeteor_1.faMeteor, faMinus_1.faMinus, faMoneyBillWave_1.faMoneyBillWave, faMoneyCheckAlt_1.faMoneyCheckAlt, faMousePointer_1.faMousePointer, faPalette_1.faPalette, faPaperclip_1.faPaperclip, faPaperPlane_1.faPaperPlane, faPaste_1.faPaste, faPause_1.faPause, faPen_1.faPen, faPencilRuler_1.faPencilRuler, faPlay_1.faPlay, faPlug_1.faPlug, faPlus_1.faPlus, faPlusCircle_1.faPlusCircle, faPooStorm_1.faPooStorm, faQuestion_1.faQuestion, faQuestionCircle_2.faQuestionCircle, faQuestionCircle_1.faQuestionCircle, faRandom_1.faRandom, faRedo_1.faRedo, faReply_1.faReply, faRobot_1.faRobot, faRocket_1.faRocket, faSave_1.faSave, faScroll_1.faScroll, faSearch_1.faSearch, faSearchPlus_1.faSearchPlus, faSeedling_1.faSeedling, faServer_1.faServer, faShare_1.faShare, faShareAlt_1.faShareAlt, faShieldAlt_1.faShieldAlt, faSignal_1.faSignal, faSignature_1.faSignature, faSignOutAlt_1.faSignOutAlt, faSitemap_1.faSitemap, faSkull_1.faSkull, faSlidersH_1.faSlidersH, faSort_1.faSort, faSortDown_1.faSortDown, faSortUp_1.faSortUp, faSpinner_1.faSpinner, faSquare_1.faSquare, faStamp_1.faStamp, faStar_1.faStar, faStar_2.faStar, faSuitcaseRolling_1.faSuitcaseRolling, faSync_1.faSync, faTable_1.faTable, faTasks_1.faTasks, faThLarge_1.faThLarge, faThumbsDown_1.faThumbsDown, faThumbsDown_2.faThumbsDown, faThumbsUp_1.faThumbsUp, faThumbsUp_2.faThumbsUp, faTicketAlt_1.faTicketAlt, faTimes_1.faTimes, faTimesCircle_1.faTimesCircle, faTimesCircle_2.faTimesCircle, faTools_1.faTools, faTrash_1.faTrash, faUndo_1.faUndo, faUnlink_1.faUnlink, faUnlock_1.faUnlock, faUser_2.faUser, faUserAstronaut_1.faUserAstronaut, faUserFriends_1.faUserFriends, faUserLock_1.faUserLock, faUserPlus_1.faUserPlus, faUser_1.faUser, faUsers_1.faUsers, faUserSecret_1.faUserSecret, faUserShield_1.faUserShield, faVial_1.faVial, faWrench_1.faWrench, faAward_1.faAward);
|
|
234
236
|
var CUSTOM_ICON_TYPE;
|
|
235
237
|
(function (CUSTOM_ICON_TYPE) {
|
|
236
238
|
CUSTOM_ICON_TYPE["ARROW_TO_BOTTOM"] = "arrow-to-bottom";
|
|
@@ -332,6 +334,7 @@ var ICON_TYPE;
|
|
|
332
334
|
ICON_TYPE["ELLIPSIS_H"] = "ellipsis-h";
|
|
333
335
|
ICON_TYPE["ELLIPSIS_V"] = "ellipsis-v";
|
|
334
336
|
ICON_TYPE["ENVELOPE"] = "envelope";
|
|
337
|
+
ICON_TYPE["ENVELOPE_OPEN_TEXT"] = "envelope-open-text";
|
|
335
338
|
ICON_TYPE["ERASER"] = "eraser";
|
|
336
339
|
ICON_TYPE["EXCHANGE_ALT"] = "exchange-alt";
|
|
337
340
|
ICON_TYPE["EXCLAMATION"] = "exclamation";
|
|
@@ -450,6 +453,7 @@ var ICON_TYPE;
|
|
|
450
453
|
ICON_TYPE["VIAL"] = "vial";
|
|
451
454
|
ICON_TYPE["WRENCH"] = "wrench";
|
|
452
455
|
ICON_TYPE["PLUG"] = "plug";
|
|
456
|
+
ICON_TYPE["MONEY_BILL_WAVE"] = "money-bill-wave";
|
|
453
457
|
ICON_TYPE["MONEY_CHECK_ALT"] = "money-check-alt";
|
|
454
458
|
ICON_TYPE["CLOUD_SHOWERS_HEAVY"] = "cloud-showers-heavy";
|
|
455
459
|
ICON_TYPE["AWARD"] = "award";
|
|
@@ -29,7 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.MenuRenderer = void 0;
|
|
30
30
|
const react_1 = __importStar(require("react"));
|
|
31
31
|
const react_focus_lock_1 = __importDefault(require("react-focus-lock"));
|
|
32
|
-
const
|
|
32
|
+
const react_popper_1 = require("react-popper");
|
|
33
33
|
const web_1 = require("@react-spring/web");
|
|
34
34
|
const d3_ease_1 = require("d3-ease");
|
|
35
35
|
const hooks_1 = require("../../hooks");
|
|
@@ -63,7 +63,7 @@ const MenuRenderer = ({ children, className, placement = "bottom-start", positio
|
|
|
63
63
|
const [minWidth, setMinWidth] = (0, react_1.useState)(0);
|
|
64
64
|
const [referenceElement, setReferenceElement] = (0, react_1.useState)(null);
|
|
65
65
|
const [popperElement, setPopperElement] = (0, react_1.useState)(null);
|
|
66
|
-
const { styles, attributes, update } = (0,
|
|
66
|
+
const { styles, attributes, update } = (0, react_popper_1.usePopper)(referenceElement, popperElement, {
|
|
67
67
|
placement,
|
|
68
68
|
modifiers: [...defaultPopperModifiers, ...popperModifiers],
|
|
69
69
|
strategy: position,
|
|
@@ -29,7 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.Popover = void 0;
|
|
30
30
|
const react_1 = __importStar(require("react"));
|
|
31
31
|
const classnames_1 = __importDefault(require("classnames"));
|
|
32
|
-
const
|
|
32
|
+
const react_popper_1 = require("react-popper");
|
|
33
33
|
const Box_1 = require("../Box");
|
|
34
34
|
const Portal_1 = require("../Portal");
|
|
35
35
|
const bem_1 = require("../../utilities/bem");
|
|
@@ -66,13 +66,13 @@ const Popover = ({ removePadding = false, ...props }) => {
|
|
|
66
66
|
},
|
|
67
67
|
];
|
|
68
68
|
const propModifiers = popperModifiers || [];
|
|
69
|
-
return (react_1.default.createElement(
|
|
70
|
-
isVisible && (react_1.default.createElement(
|
|
69
|
+
return (react_1.default.createElement(react_popper_1.Manager, null,
|
|
70
|
+
isVisible && (react_1.default.createElement(react_popper_1.Popper, { placement: placement, modifiers: [...defaultPopperModifiers, ...propModifiers], strategy: strategy }, ({ ref, style, placement: popperPlacement, arrowProps, update, }) => (react_1.default.createElement(InlinePopover, { ref: ref, style: {
|
|
71
71
|
...style,
|
|
72
72
|
...styleProp,
|
|
73
73
|
}, className: className, "data-placement": popperPlacement, hasPortal: true, removePadding: removePadding, ...rest },
|
|
74
74
|
react_1.default.createElement(ChildrenWithArrow, { popperPlacement: popperPlacement, arrowProps: arrowProps, update: update, showArrow: showArrow }, children))))),
|
|
75
|
-
react_1.default.createElement(
|
|
75
|
+
react_1.default.createElement(react_popper_1.Reference, null, ({ ref }) => (0, react_1.cloneElement)(referenceElement, {
|
|
76
76
|
ref,
|
|
77
77
|
}))));
|
|
78
78
|
}
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.useSelectLayout = void 0;
|
|
7
7
|
const classnames_1 = __importDefault(require("classnames"));
|
|
8
8
|
const react_1 = require("react");
|
|
9
|
-
const
|
|
9
|
+
const react_popper_1 = require("react-popper");
|
|
10
10
|
const types_1 = require("../../../types");
|
|
11
11
|
const utilities_1 = require("../../../utilities");
|
|
12
12
|
const FormGroupContext_1 = require("../../FormGroup/FormGroupContext");
|
|
@@ -58,7 +58,7 @@ function useSelectLayout({ isOpen, hasSearch, isDisabled, variantProp, getLabelP
|
|
|
58
58
|
const [callbackElement, setCallbackElement] = (0, react_1.useState)(null);
|
|
59
59
|
const isListRendered = callbackElement !== null;
|
|
60
60
|
const inputRef = (0, react_1.useRef)(null);
|
|
61
|
-
const { styles, attributes, update } = (0,
|
|
61
|
+
const { styles, attributes, update } = (0, react_popper_1.usePopper)(referenceElement, popperRef.current, {
|
|
62
62
|
placement: initialPlacement,
|
|
63
63
|
modifiers: popperModifiers,
|
|
64
64
|
});
|
|
@@ -30,7 +30,7 @@ exports.FilterDropdown = void 0;
|
|
|
30
30
|
const react_1 = __importStar(require("react"));
|
|
31
31
|
const classnames_1 = __importDefault(require("classnames"));
|
|
32
32
|
const react_focus_lock_1 = __importDefault(require("react-focus-lock"));
|
|
33
|
-
const
|
|
33
|
+
const react_popper_1 = require("react-popper");
|
|
34
34
|
const bem_1 = require("../../utilities/bem");
|
|
35
35
|
const hooks_1 = require("../../hooks");
|
|
36
36
|
const Icon_1 = require("../Icon");
|
|
@@ -93,9 +93,9 @@ const FilterDropdown = ({ isVisible = false, filterApplied = false, onSetVisible
|
|
|
93
93
|
const getButtonElement = (buttonElement) => {
|
|
94
94
|
buttonRef.current = buttonElement;
|
|
95
95
|
};
|
|
96
|
-
return (react_1.default.createElement(
|
|
96
|
+
return (react_1.default.createElement(react_popper_1.Manager, null,
|
|
97
97
|
isVisible && (react_1.default.createElement(Portal_1.Portal, null,
|
|
98
|
-
react_1.default.createElement(
|
|
98
|
+
react_1.default.createElement(react_popper_1.Popper, { placement: "bottom", innerRef: getPopperElement, modifiers: [
|
|
99
99
|
{
|
|
100
100
|
name: "offset",
|
|
101
101
|
options: {
|
|
@@ -103,6 +103,6 @@ const FilterDropdown = ({ isVisible = false, filterApplied = false, onSetVisible
|
|
|
103
103
|
},
|
|
104
104
|
},
|
|
105
105
|
] }, ({ ref, placement, style }) => (react_1.default.createElement(FilterMenu, { ref: ref, buttonRef: buttonRef, menuRef: menuRef, placement: placement, className: className, style: style, onSetVisible: onSetVisible, searchInputValue: searchInputValue, onFilterInputChange: onFilterInputChange, onFilterSelectAll: onFilterSelectAll, onFilterClear: onFilterClear, filterOptions: filterOptions, filterControl: filterControl, hideFilterSearch: hideFilterSearch }))))),
|
|
106
|
-
react_1.default.createElement(
|
|
106
|
+
react_1.default.createElement(react_popper_1.Reference, { innerRef: getButtonElement }, ({ ref }) => (react_1.default.createElement(FilterToggleButton, { ref: ref, onSetVisible: onSetVisible, isVisible: isVisible, filterApplied: filterApplied })))));
|
|
107
107
|
};
|
|
108
108
|
exports.FilterDropdown = FilterDropdown;
|
package/public/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import classNames from "classnames";
|
|
2
2
|
import FocusLock from "react-focus-lock";
|
|
3
3
|
import { RemoveScroll } from "react-remove-scroll";
|
|
4
|
-
import { usePopper } from "react-popper
|
|
4
|
+
import { usePopper } from "react-popper";
|
|
5
5
|
import { Toaster } from "react-hot-toast";
|
|
6
6
|
export * from "./components/Absolute";
|
|
7
7
|
export * from "./components/Accordion";
|
package/public/index.js
CHANGED
|
@@ -24,8 +24,8 @@ const react_focus_lock_1 = __importDefault(require("react-focus-lock"));
|
|
|
24
24
|
exports.FocusLock = react_focus_lock_1.default;
|
|
25
25
|
const react_remove_scroll_1 = require("react-remove-scroll");
|
|
26
26
|
Object.defineProperty(exports, "RemoveScroll", { enumerable: true, get: function () { return react_remove_scroll_1.RemoveScroll; } });
|
|
27
|
-
const
|
|
28
|
-
Object.defineProperty(exports, "usePopper", { enumerable: true, get: function () { return
|
|
27
|
+
const react_popper_1 = require("react-popper");
|
|
28
|
+
Object.defineProperty(exports, "usePopper", { enumerable: true, get: function () { return react_popper_1.usePopper; } });
|
|
29
29
|
const react_hot_toast_1 = require("react-hot-toast");
|
|
30
30
|
Object.defineProperty(exports, "Toaster", { enumerable: true, get: function () { return react_hot_toast_1.Toaster; } });
|
|
31
31
|
__exportStar(require("./components/Absolute"), exports);
|
|
@@ -80,6 +80,7 @@ import { faEdit } from "@fortawesome/free-solid-svg-icons/faEdit";
|
|
|
80
80
|
import { faEllipsisH } from "@fortawesome/free-solid-svg-icons/faEllipsisH";
|
|
81
81
|
import { faEllipsisV } from "@fortawesome/free-solid-svg-icons/faEllipsisV";
|
|
82
82
|
import { faEnvelope } from "@fortawesome/free-solid-svg-icons/faEnvelope";
|
|
83
|
+
import { faEnvelopeOpenText } from "@fortawesome/free-solid-svg-icons/faEnvelopeOpenText";
|
|
83
84
|
import { faEraser } from "@fortawesome/free-solid-svg-icons/faEraser";
|
|
84
85
|
import { faExchangeAlt } from "@fortawesome/free-solid-svg-icons/faExchangeAlt";
|
|
85
86
|
import { faExclamation } from "@fortawesome/free-solid-svg-icons/faExclamation";
|
|
@@ -130,6 +131,7 @@ import { faMapMarkerAlt } from "@fortawesome/free-solid-svg-icons/faMapMarkerAlt
|
|
|
130
131
|
import { faMapSigns } from "@fortawesome/free-solid-svg-icons/faMapSigns";
|
|
131
132
|
import { faMeteor } from "@fortawesome/free-solid-svg-icons/faMeteor";
|
|
132
133
|
import { faMinus } from "@fortawesome/free-solid-svg-icons/faMinus";
|
|
134
|
+
import { faMoneyBillWave } from "@fortawesome/free-solid-svg-icons/faMoneyBillWave";
|
|
133
135
|
import { faMoneyCheckAlt } from "@fortawesome/free-solid-svg-icons/faMoneyCheckAlt";
|
|
134
136
|
import { faMousePointer } from "@fortawesome/free-solid-svg-icons/faMousePointer";
|
|
135
137
|
import { faPalette } from "@fortawesome/free-solid-svg-icons/faPalette";
|
|
@@ -296,6 +298,7 @@ library.add(
|
|
|
296
298
|
faEllipsisV,
|
|
297
299
|
faEnvelope,
|
|
298
300
|
faEnvelopeRegular,
|
|
301
|
+
faEnvelopeOpenText,
|
|
299
302
|
faEraser,
|
|
300
303
|
faExchangeAlt,
|
|
301
304
|
faExclamation,
|
|
@@ -347,6 +350,7 @@ library.add(
|
|
|
347
350
|
faMapSigns,
|
|
348
351
|
faMeteor,
|
|
349
352
|
faMinus,
|
|
353
|
+
faMoneyBillWave,
|
|
350
354
|
faMoneyCheckAlt,
|
|
351
355
|
faMousePointer,
|
|
352
356
|
faPalette,
|
|
@@ -529,6 +533,7 @@ export enum ICON_TYPE {
|
|
|
529
533
|
ELLIPSIS_H = "ellipsis-h",
|
|
530
534
|
ELLIPSIS_V = "ellipsis-v",
|
|
531
535
|
ENVELOPE = "envelope",
|
|
536
|
+
ENVELOPE_OPEN_TEXT = "envelope-open-text",
|
|
532
537
|
ERASER = "eraser",
|
|
533
538
|
EXCHANGE_ALT = "exchange-alt",
|
|
534
539
|
EXCLAMATION = "exclamation",
|
|
@@ -647,6 +652,7 @@ export enum ICON_TYPE {
|
|
|
647
652
|
VIAL = "vial",
|
|
648
653
|
WRENCH = "wrench",
|
|
649
654
|
PLUG = "plug",
|
|
655
|
+
MONEY_BILL_WAVE = "money-bill-wave",
|
|
650
656
|
MONEY_CHECK_ALT = "money-check-alt",
|
|
651
657
|
CLOUD_SHOWERS_HEAVY = "cloud-showers-heavy",
|
|
652
658
|
AWARD = "award",
|
|
@@ -7,7 +7,7 @@ import React, {
|
|
|
7
7
|
useId,
|
|
8
8
|
} from "react";
|
|
9
9
|
import FocusLock from "react-focus-lock";
|
|
10
|
-
import { usePopper } from "react-popper
|
|
10
|
+
import { usePopper } from "react-popper";
|
|
11
11
|
import { animated, useTransition } from "@react-spring/web";
|
|
12
12
|
import { easeCubicInOut } from "d3-ease";
|
|
13
13
|
import { useKeyPress, useOutsideClick } from "../../hooks";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { CSSProperties, ReactNode, useMemo, useState } from "react";
|
|
2
2
|
import classNames from "classnames";
|
|
3
|
-
import { Modifier } from "react-popper
|
|
3
|
+
import { Modifier } from "react-popper";
|
|
4
4
|
import { MenuListComponentProps } from "react-select";
|
|
5
5
|
import FocusLock from "react-focus-lock";
|
|
6
6
|
import { tokens } from "../../style-dictionary/dist/tokens";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
useRef,
|
|
13
13
|
useState,
|
|
14
14
|
} from "react";
|
|
15
|
-
import { usePopper, Modifier } from "react-popper
|
|
15
|
+
import { usePopper, Modifier } from "react-popper";
|
|
16
16
|
import { PopperPlacement, STATUS_VARIANT } from "../../../types";
|
|
17
17
|
import { bemHOF } from "../../../utilities";
|
|
18
18
|
import { FormGroupContext } from "../../FormGroup/FormGroupContext";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
Manager as PopperManager,
|
|
15
15
|
Reference as PopperReference,
|
|
16
16
|
Popper,
|
|
17
|
-
} from "react-popper
|
|
17
|
+
} from "react-popper";
|
|
18
18
|
import { bem } from "../../utilities/bem";
|
|
19
19
|
import { useOutsideClick, useKeyPress } from "../../hooks";
|
|
20
20
|
import { Icon, ICON_TYPE } from "../Icon";
|
package/src/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import classNames from "classnames";
|
|
2
2
|
import FocusLock from "react-focus-lock";
|
|
3
3
|
import { RemoveScroll } from "react-remove-scroll";
|
|
4
|
-
import { usePopper } from "react-popper
|
|
4
|
+
import { usePopper } from "react-popper";
|
|
5
5
|
import { Toaster } from "react-hot-toast";
|
|
6
6
|
|
|
7
7
|
export * from "./components/Absolute";
|