@conveyorhq/arrow-ds 1.148.0 → 1.150.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/package.json +1 -1
- package/public/components/Drawer/Drawer.d.ts +7 -1
- package/public/components/Drawer/Drawer.js +7 -7
- package/public/components/Icon/Icon.d.ts +2 -0
- package/public/components/Icon/Icon.js +5 -1
- package/public/components/Table/Table.d.ts +2 -1
- package/public/components/Table/Table.js +2 -2
- package/public/components/TopBar/TopBar.d.ts +2 -1
- package/public/components/TopBar/TopBar.js +3 -3
- package/public/css/styles.css +31 -9
- package/public/css/styles.min.css +1 -1
- package/public/css/styles.min.css.map +1 -1
- package/src/components/Drawer/Drawer.tsx +64 -18
- package/src/components/Icon/Icon.tsx +6 -0
- package/src/components/Table/Table.tsx +7 -0
- package/src/components/Table/index.css +22 -1
- package/src/components/TopBar/TopBar.tsx +17 -2
- package/src/components/TopBar/index.css +0 -8
package/package.json
CHANGED
|
@@ -8,16 +8,22 @@ type ScrollableSlotRenderFunction = (props: {
|
|
|
8
8
|
}) => React.ReactNode;
|
|
9
9
|
export interface WithDrawerProps {
|
|
10
10
|
drawerSlot: React.ReactNode;
|
|
11
|
+
drawerSlotClassName?: string;
|
|
11
12
|
onClose: () => void;
|
|
12
13
|
isOpen?: boolean;
|
|
13
14
|
fixedSlotTop?: React.ReactNode;
|
|
15
|
+
fixedSlotTopClassName?: string;
|
|
14
16
|
fixedSlotBottom?: React.ReactNode;
|
|
17
|
+
fixedSlotBottomClassName?: string;
|
|
15
18
|
scrollableSlot?: ScrollableSlotRenderFunction | React.ReactNode;
|
|
19
|
+
scrollableSlotClassName?: string;
|
|
16
20
|
drawerSide?: "left" | "right";
|
|
17
21
|
noAnimation?: boolean;
|
|
18
22
|
drawerWidth?: number;
|
|
23
|
+
className?: string;
|
|
24
|
+
contentClassName?: string;
|
|
19
25
|
}
|
|
20
|
-
export declare const WithDrawer: ({ drawerSlot, onClose, isOpen, fixedSlotTop, fixedSlotBottom, scrollableSlot, drawerSide, noAnimation, drawerWidth, }: WithDrawerProps) => React.JSX.Element;
|
|
26
|
+
export declare const WithDrawer: ({ drawerSlot, drawerSlotClassName, onClose, isOpen, fixedSlotTop, fixedSlotTopClassName, fixedSlotBottom, fixedSlotBottomClassName, scrollableSlot, scrollableSlotClassName, drawerSide, noAnimation, drawerWidth, className, contentClassName, }: WithDrawerProps) => React.JSX.Element;
|
|
21
27
|
export interface DrawerProps extends BoxProps {
|
|
22
28
|
headingSlot: React.ReactNode;
|
|
23
29
|
footerSlot?: React.ReactNode;
|
|
@@ -47,7 +47,7 @@ const calculateTransformValue = (isOpen, drawerOnRight, drawerWidth) => {
|
|
|
47
47
|
}
|
|
48
48
|
return drawerOnRight ? translateZero : translateNegWidth;
|
|
49
49
|
};
|
|
50
|
-
const WithDrawer = ({ drawerSlot, onClose, isOpen = false, fixedSlotTop, fixedSlotBottom, scrollableSlot, drawerSide = "left", noAnimation = false, drawerWidth = DEFAULT_DRAWER_WIDTH, }) => {
|
|
50
|
+
const WithDrawer = ({ drawerSlot, drawerSlotClassName, onClose, isOpen = false, fixedSlotTop, fixedSlotTopClassName, fixedSlotBottom, fixedSlotBottomClassName, scrollableSlot, scrollableSlotClassName, drawerSide = "left", noAnimation = false, drawerWidth = DEFAULT_DRAWER_WIDTH, className, contentClassName, }) => {
|
|
51
51
|
const drawerOnRight = drawerSide === "right";
|
|
52
52
|
const [isClosedAtRest, setIsClosedAtRest] = (0, react_1.useState)(false);
|
|
53
53
|
const [isAnimationComplete, setIsAnimationComplete] = (0, react_1.useState)(false);
|
|
@@ -96,22 +96,22 @@ const WithDrawer = ({ drawerSlot, onClose, isOpen = false, fixedSlotTop, fixedSl
|
|
|
96
96
|
} },
|
|
97
97
|
react_1.default.createElement(Box_1.Box, { className: (0, classnames_1.default)(cn(), {
|
|
98
98
|
[cn({ m: "isOpen" })]: isOpen,
|
|
99
|
-
}) },
|
|
100
|
-
react_1.default.createElement(web_1.animated.div, { className: (0, classnames_1.default)(cn({ e: "wrapper" }), { drawerOnRight }), style: wrapperCombinedStyle }, drawerSlot),
|
|
99
|
+
}, className) },
|
|
100
|
+
react_1.default.createElement(web_1.animated.div, { className: (0, classnames_1.default)(cn({ e: "wrapper" }), { drawerOnRight }, drawerSlotClassName), style: wrapperCombinedStyle }, drawerSlot),
|
|
101
101
|
react_1.default.createElement(Flex_1.Flex, { className: (0, classnames_1.default)(cn({ e: "onScreenContent" }), {
|
|
102
102
|
drawerOnRight,
|
|
103
|
-
}) },
|
|
104
|
-
fixedSlotTop && (react_1.default.createElement(web_1.animated.div, { style: { paddingLeft, paddingRight }, className: cn({ e: "fixedSlot" }) }, fixedSlotTop)),
|
|
103
|
+
}, contentClassName) },
|
|
104
|
+
fixedSlotTop && (react_1.default.createElement(web_1.animated.div, { style: { paddingLeft, paddingRight }, className: (0, classnames_1.default)(cn({ e: "fixedSlot" }), fixedSlotTopClassName) }, fixedSlotTop)),
|
|
105
105
|
scrollableSlot && (react_1.default.createElement(web_1.animated.div, { style: {
|
|
106
106
|
transform: transformReverse,
|
|
107
107
|
width: scrollableSlotPaddingToInterpolate.interpolate((w) => `calc(100% - ${w}px)`),
|
|
108
|
-
}, className: cn({ e: "scrollableSlot" }) }, typeof scrollableSlot === "function"
|
|
108
|
+
}, className: (0, classnames_1.default)(cn({ e: "scrollableSlot" }), scrollableSlotClassName) }, typeof scrollableSlot === "function"
|
|
109
109
|
? scrollableSlot({
|
|
110
110
|
isOpen,
|
|
111
111
|
isAnimationComplete,
|
|
112
112
|
})
|
|
113
113
|
: scrollableSlot)),
|
|
114
|
-
fixedSlotBottom && (react_1.default.createElement(web_1.animated.div, { style: { paddingLeft, paddingRight }, className: cn({ e: "fixedSlot" }) }, fixedSlotBottom))))));
|
|
114
|
+
fixedSlotBottom && (react_1.default.createElement(web_1.animated.div, { style: { paddingLeft, paddingRight }, className: (0, classnames_1.default)(cn({ e: "fixedSlot" }), fixedSlotBottomClassName) }, fixedSlotBottom))))));
|
|
115
115
|
};
|
|
116
116
|
exports.WithDrawer = WithDrawer;
|
|
117
117
|
const DrawerContent = ({ children, className, ...rest }) => {
|
|
@@ -40,6 +40,7 @@ export declare enum ICON_TYPE {
|
|
|
40
40
|
BIRTHDAY_CAKE = "birthday-cake",
|
|
41
41
|
BOLT = "bolt",
|
|
42
42
|
BOOK = "book",
|
|
43
|
+
BROOM = "broom",
|
|
43
44
|
BUG = "bug",
|
|
44
45
|
BULLHORN = "bullhorn",
|
|
45
46
|
CALENDAR = "calendar",
|
|
@@ -161,6 +162,7 @@ export declare enum ICON_TYPE {
|
|
|
161
162
|
SIGNAL = "signal",
|
|
162
163
|
SIGNATURE = "signature",
|
|
163
164
|
SITEMAP = "sitemap",
|
|
165
|
+
SKULL = "skull",
|
|
164
166
|
SLIDERS_H = "sliders-h",
|
|
165
167
|
SORT = "sort",
|
|
166
168
|
SORT_DOWN = "sort-down",
|
|
@@ -64,6 +64,7 @@ const faBiohazard_1 = require("@fortawesome/free-solid-svg-icons/faBiohazard");
|
|
|
64
64
|
const faBirthdayCake_1 = require("@fortawesome/free-solid-svg-icons/faBirthdayCake");
|
|
65
65
|
const faBolt_1 = require("@fortawesome/free-solid-svg-icons/faBolt");
|
|
66
66
|
const faBook_1 = require("@fortawesome/free-solid-svg-icons/faBook");
|
|
67
|
+
const faBroom_1 = require("@fortawesome/free-solid-svg-icons/faBroom");
|
|
67
68
|
const faBug_1 = require("@fortawesome/free-solid-svg-icons/faBug");
|
|
68
69
|
const faBullhorn_1 = require("@fortawesome/free-solid-svg-icons/faBullhorn");
|
|
69
70
|
const faCalculator_1 = require("@fortawesome/free-solid-svg-icons/faCalculator");
|
|
@@ -186,6 +187,7 @@ const faSignal_1 = require("@fortawesome/free-solid-svg-icons/faSignal");
|
|
|
186
187
|
const faSignature_1 = require("@fortawesome/free-solid-svg-icons/faSignature");
|
|
187
188
|
const faSignOutAlt_1 = require("@fortawesome/free-solid-svg-icons/faSignOutAlt");
|
|
188
189
|
const faSitemap_1 = require("@fortawesome/free-solid-svg-icons/faSitemap");
|
|
190
|
+
const faSkull_1 = require("@fortawesome/free-solid-svg-icons/faSkull");
|
|
189
191
|
const faSlidersH_1 = require("@fortawesome/free-solid-svg-icons/faSlidersH");
|
|
190
192
|
const faSort_1 = require("@fortawesome/free-solid-svg-icons/faSort");
|
|
191
193
|
const faSortDown_1 = require("@fortawesome/free-solid-svg-icons/faSortDown");
|
|
@@ -226,7 +228,7 @@ const types_1 = require("../../types");
|
|
|
226
228
|
const utilities_1 = require("../../utilities");
|
|
227
229
|
const ShieldCheck_1 = require("./svg/ShieldCheck");
|
|
228
230
|
const cn = (0, utilities_1.bemHOF)("Icon");
|
|
229
|
-
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, faBug_1.faBug, faBullhorn_1.faBullhorn, 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, 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, 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);
|
|
231
|
+
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, 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, 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);
|
|
230
232
|
var CUSTOM_ICON_TYPE;
|
|
231
233
|
(function (CUSTOM_ICON_TYPE) {
|
|
232
234
|
CUSTOM_ICON_TYPE["ARROW_TO_BOTTOM"] = "arrow-to-bottom";
|
|
@@ -287,6 +289,7 @@ var ICON_TYPE;
|
|
|
287
289
|
ICON_TYPE["BIRTHDAY_CAKE"] = "birthday-cake";
|
|
288
290
|
ICON_TYPE["BOLT"] = "bolt";
|
|
289
291
|
ICON_TYPE["BOOK"] = "book";
|
|
292
|
+
ICON_TYPE["BROOM"] = "broom";
|
|
290
293
|
ICON_TYPE["BUG"] = "bug";
|
|
291
294
|
ICON_TYPE["BULLHORN"] = "bullhorn";
|
|
292
295
|
ICON_TYPE["CALENDAR"] = "calendar";
|
|
@@ -408,6 +411,7 @@ var ICON_TYPE;
|
|
|
408
411
|
ICON_TYPE["SIGNAL"] = "signal";
|
|
409
412
|
ICON_TYPE["SIGNATURE"] = "signature";
|
|
410
413
|
ICON_TYPE["SITEMAP"] = "sitemap";
|
|
414
|
+
ICON_TYPE["SKULL"] = "skull";
|
|
411
415
|
ICON_TYPE["SLIDERS_H"] = "sliders-h";
|
|
412
416
|
ICON_TYPE["SORT"] = "sort";
|
|
413
417
|
ICON_TYPE["SORT_DOWN"] = "sort-down";
|
|
@@ -13,11 +13,12 @@ interface TableProps extends React.HTMLProps<HTMLTableElement> {
|
|
|
13
13
|
stickyColumn?: boolean;
|
|
14
14
|
hasBatchActions?: boolean;
|
|
15
15
|
spaceRows?: boolean;
|
|
16
|
+
shrinkFirstColumnPadding?: boolean;
|
|
16
17
|
enableGridSizing?: boolean;
|
|
17
18
|
gridSizing?: string | string[];
|
|
18
19
|
}
|
|
19
20
|
declare const Table: {
|
|
20
|
-
({ children, className, onSort, outerBorder, sortColumnId, sortDirection, affixHeader, removeSpacerColumn, noResults, renderInModal, enableHorizontalScroll, stickyColumn, hasBatchActions, spaceRows, style, enableGridSizing, gridSizing, ...rest }: TableProps): React.JSX.Element;
|
|
21
|
+
({ children, className, onSort, outerBorder, sortColumnId, sortDirection, affixHeader, removeSpacerColumn, noResults, renderInModal, enableHorizontalScroll, stickyColumn, hasBatchActions, spaceRows, shrinkFirstColumnPadding, style, enableGridSizing, gridSizing, ...rest }: TableProps): React.JSX.Element;
|
|
21
22
|
Body: ({ className, children, ...rest }: React.HTMLProps<HTMLTableSectionElement>) => React.JSX.Element;
|
|
22
23
|
Row: ({ className, children, selected, ...rest }: import("./TableRow").TableRowProps) => React.JSX.Element;
|
|
23
24
|
Cell: React.FunctionComponent<import("./TableCell").TableCellProps>;
|
|
@@ -39,9 +39,9 @@ Object.defineProperty(exports, "SORT_DIRECTION", { enumerable: true, get: functi
|
|
|
39
39
|
const bem_1 = require("../../utilities/bem");
|
|
40
40
|
const cn = "Table";
|
|
41
41
|
const wrapperCn = "TableWrapper";
|
|
42
|
-
const Table = ({ children, className, onSort = () => { }, outerBorder = false, sortColumnId, sortDirection, affixHeader = false, removeSpacerColumn = false, noResults = false, renderInModal = false, enableHorizontalScroll = false, stickyColumn = false, hasBatchActions = false, spaceRows = false, style, enableGridSizing = false, gridSizing, ...rest }) => {
|
|
42
|
+
const Table = ({ children, className, onSort = () => { }, outerBorder = false, sortColumnId, sortDirection, affixHeader = false, removeSpacerColumn = false, noResults = false, renderInModal = false, enableHorizontalScroll = false, stickyColumn = false, hasBatchActions = false, spaceRows = false, shrinkFirstColumnPadding = false, style, enableGridSizing = false, gridSizing, ...rest }) => {
|
|
43
43
|
const wrapperClasses = (0, classnames_1.default)((0, bem_1.bem)(wrapperCn), enableHorizontalScroll && (0, bem_1.bem)(wrapperCn, { m: "enable-hscroll" }), spaceRows && (0, bem_1.bem)(wrapperCn, { m: "space-rows" }));
|
|
44
|
-
const classes = (0, classnames_1.default)((0, bem_1.bem)(cn), removeSpacerColumn && (0, bem_1.bem)(cn, { m: "remove-spacer" }), outerBorder && (0, bem_1.bem)(cn, { m: "outer-border" }), affixHeader && (0, bem_1.bem)(cn, { m: "affix-header" }), noResults && (0, bem_1.bem)(cn, { m: "no-results" }), stickyColumn && (0, bem_1.bem)(cn, { m: "sticky-column" }), hasBatchActions && (0, bem_1.bem)(cn, { m: "batch-actions" }), spaceRows && (0, bem_1.bem)(cn, { m: "space-rows" }), enableGridSizing && gridSizing && (0, bem_1.bem)(cn, { m: "grid-sizing" }), className);
|
|
44
|
+
const classes = (0, classnames_1.default)((0, bem_1.bem)(cn), removeSpacerColumn && (0, bem_1.bem)(cn, { m: "remove-spacer" }), outerBorder && (0, bem_1.bem)(cn, { m: "outer-border" }), affixHeader && (0, bem_1.bem)(cn, { m: "affix-header" }), noResults && (0, bem_1.bem)(cn, { m: "no-results" }), stickyColumn && (0, bem_1.bem)(cn, { m: "sticky-column" }), hasBatchActions && (0, bem_1.bem)(cn, { m: "batch-actions" }), spaceRows && (0, bem_1.bem)(cn, { m: "space-rows" }), enableGridSizing && gridSizing && (0, bem_1.bem)(cn, { m: "grid-sizing" }), shrinkFirstColumnPadding && (0, bem_1.bem)(cn, { m: "shrink-first-column" }), className);
|
|
45
45
|
return (react_1.default.createElement(TableContext_1.default.Provider, { value: {
|
|
46
46
|
handleSort: onSort,
|
|
47
47
|
sortDirection,
|
|
@@ -4,9 +4,10 @@ export interface TopBarProps extends BoxProps {
|
|
|
4
4
|
leftSlot: ReactNode;
|
|
5
5
|
middleSlot?: ReactNode;
|
|
6
6
|
rightSlot?: ReactNode;
|
|
7
|
+
removePadding?: boolean;
|
|
7
8
|
}
|
|
8
9
|
declare const TopBar: {
|
|
9
|
-
({ leftSlot, middleSlot, rightSlot, className, ...rest }: TopBarProps): React.JSX.Element;
|
|
10
|
+
({ leftSlot, middleSlot, rightSlot, removePadding, className, ...rest }: TopBarProps): React.JSX.Element;
|
|
10
11
|
SubNav: (props: BoxProps) => React.JSX.Element;
|
|
11
12
|
SubNavItem: (props: import("./TopBarSubNavItem").SubNavItemProps) => React.JSX.Element;
|
|
12
13
|
Breadcrumbs: (props: import("./TopBarBreadcrumbs").BreadcrumbsProps) => React.JSX.Element;
|
|
@@ -12,11 +12,11 @@ const TopBarSubNavItem_1 = require("./TopBarSubNavItem");
|
|
|
12
12
|
const TopBarSubNav_1 = require("./TopBarSubNav");
|
|
13
13
|
const TopBarBreadcrumbs_1 = require("./TopBarBreadcrumbs");
|
|
14
14
|
const b = (0, bem_1.bemHOF)("TopBar");
|
|
15
|
-
const TopBar = ({ leftSlot, middleSlot, rightSlot, className, ...rest }) => {
|
|
15
|
+
const TopBar = ({ leftSlot, middleSlot, rightSlot, removePadding = false, className, ...rest }) => {
|
|
16
16
|
return (react_1.default.createElement(Flex_1.Flex, { className: (0, classnames_1.default)(b(), className), ...rest },
|
|
17
|
-
react_1.default.createElement(Flex_1.Flex, { className: b({ e: "left-slot" }) }, leftSlot),
|
|
17
|
+
react_1.default.createElement(Flex_1.Flex, { className: (0, classnames_1.default)(b({ e: "left-slot" }), !removePadding && "pl-8") }, leftSlot),
|
|
18
18
|
middleSlot && (react_1.default.createElement(Flex_1.Flex, { className: b({ e: "middle-slot" }) }, middleSlot)),
|
|
19
|
-
rightSlot && react_1.default.createElement(Flex_1.Flex, { className: b({ e: "right-slot" }) }, rightSlot)));
|
|
19
|
+
rightSlot && (react_1.default.createElement(Flex_1.Flex, { className: (0, classnames_1.default)(b({ e: "right-slot" }), !removePadding && "pr-8") }, rightSlot))));
|
|
20
20
|
};
|
|
21
21
|
exports.TopBar = TopBar;
|
|
22
22
|
TopBar.SubNav = TopBarSubNav_1.TopBarSubNav;
|
package/public/css/styles.css
CHANGED
|
@@ -7260,10 +7260,16 @@ override built-in Image component classes */
|
|
|
7260
7260
|
position: -webkit-sticky;
|
|
7261
7261
|
position: sticky;
|
|
7262
7262
|
z-index: 10;
|
|
7263
|
-
|
|
7264
7263
|
left: 56px;
|
|
7265
7264
|
}
|
|
7266
7265
|
|
|
7266
|
+
.ads-Table.ads-Table--sticky-column.ads-Table--batch-actions.ads-Table--shrink-first-column
|
|
7267
|
+
.ads-TableCell:nth-of-type(2),
|
|
7268
|
+
.ads-Table.ads-Table--sticky-column.ads-Table--batch-actions.ads-Table--shrink-first-column
|
|
7269
|
+
.ads-TableHeaderCell:nth-of-type(2) {
|
|
7270
|
+
left: 32px;
|
|
7271
|
+
}
|
|
7272
|
+
|
|
7267
7273
|
.ads-TableCell:first-of-type:not(:only-child),
|
|
7268
7274
|
.ads-TableHeaderCell:first-of-type,
|
|
7269
7275
|
.ads-Table.ads-Table--batch-actions .ads-TableCell:first-of-type,
|
|
@@ -7271,6 +7277,15 @@ override built-in Image component classes */
|
|
|
7271
7277
|
padding-left: 32px;
|
|
7272
7278
|
}
|
|
7273
7279
|
|
|
7280
|
+
.ads-Table--shrink-first-column .ads-TableCell:first-of-type:not(:only-child),
|
|
7281
|
+
.ads-Table--shrink-first-column .ads-TableHeaderCell:first-of-type,
|
|
7282
|
+
.ads-Table.ads-Table--batch-actions.ads-Table--shrink-first-column
|
|
7283
|
+
.ads-TableCell:first-of-type,
|
|
7284
|
+
.ads-Table.ads-Table--batch-actions.ads-Table--shrink-first-column
|
|
7285
|
+
.ads-TableHeaderCell:first-of-type {
|
|
7286
|
+
padding-left: 8px;
|
|
7287
|
+
}
|
|
7288
|
+
|
|
7274
7289
|
.ads-Table.ads-Table--sticky-column .ads-TableCell:first-of-type,
|
|
7275
7290
|
.ads-Table.ads-Table--sticky-column.ads-Table--batch-actions
|
|
7276
7291
|
.ads-TableCell:nth-of-type(2) {
|
|
@@ -7281,6 +7296,13 @@ override built-in Image component classes */
|
|
|
7281
7296
|
.ads-Table.ads-Table--sticky-column.ads-Table--batch-actions
|
|
7282
7297
|
.ads-TableHeaderCell:nth-of-type(2) {
|
|
7283
7298
|
box-shadow: 1px 0 0 #dee7ee, 3px -1px 0 rgb(234, 237, 239);
|
|
7299
|
+
}
|
|
7300
|
+
|
|
7301
|
+
.ads-Table.ads-Table--sticky-column .ads-TableHeaderCell:first-of-type,
|
|
7302
|
+
.ads-Table.ads-Table--sticky-column.ads-Table--batch-actions
|
|
7303
|
+
.ads-TableHeaderCell:nth-of-type(2),
|
|
7304
|
+
.ads-Table.ads-Table--sticky-column.ads-Table--batch-actions.ads-Table--shrink-first-column
|
|
7305
|
+
.ads-TableHeaderCell:nth-of-type(2) {
|
|
7284
7306
|
z-index: 20;
|
|
7285
7307
|
}
|
|
7286
7308
|
|
|
@@ -7954,14 +7976,6 @@ override built-in Image component classes */
|
|
|
7954
7976
|
align-items: center;
|
|
7955
7977
|
}
|
|
7956
7978
|
|
|
7957
|
-
.ads-TopBar-left-slot {
|
|
7958
|
-
padding-left: 32px;
|
|
7959
|
-
}
|
|
7960
|
-
|
|
7961
|
-
.ads-TopBar-right-slot {
|
|
7962
|
-
padding-right: 32px;
|
|
7963
|
-
}
|
|
7964
|
-
|
|
7965
7979
|
.ads-TopBar-subnav {
|
|
7966
7980
|
height: 100%;
|
|
7967
7981
|
align-items: flex-end;
|
|
@@ -8631,6 +8645,14 @@ override built-in Image component classes */
|
|
|
8631
8645
|
padding-top: 12px;
|
|
8632
8646
|
}
|
|
8633
8647
|
|
|
8648
|
+
.pl-8 {
|
|
8649
|
+
padding-left: 32px;
|
|
8650
|
+
}
|
|
8651
|
+
|
|
8652
|
+
.pr-8 {
|
|
8653
|
+
padding-right: 32px;
|
|
8654
|
+
}
|
|
8655
|
+
|
|
8634
8656
|
.pb-1 {
|
|
8635
8657
|
padding-bottom: 4px;
|
|
8636
8658
|
}
|