@conveyorhq/arrow-ds 1.189.0 → 1.191.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/Checkbox/Checkbox.d.ts +2 -1
- package/public/components/Checkbox/Checkbox.js +10 -4
- package/public/components/Icon/Icon.d.ts +1 -0
- package/public/components/Icon/Icon.js +3 -1
- package/public/css/styles.css +55 -9
- package/public/css/styles.min.css +1 -1
- package/public/css/styles.min.css.map +1 -1
- package/src/components/Checkbox/Checkbox.stories.mdx +15 -2
- package/src/components/Checkbox/Checkbox.tsx +22 -13
- package/src/components/Checkbox/index.css +19 -4
- package/src/components/Checkbox/product.css +22 -7
- package/src/components/Icon/Icon.tsx +3 -0
package/package.json
CHANGED
|
@@ -6,6 +6,7 @@ export type CheckboxProps = Omit<InputProps, "checked"> & {
|
|
|
6
6
|
hideRequiredStyles?: boolean;
|
|
7
7
|
isRequired?: boolean;
|
|
8
8
|
checked?: boolean | "indeterminate";
|
|
9
|
+
color?: "brandGreen" | "blue";
|
|
9
10
|
};
|
|
10
11
|
export declare enum CheckboxState {
|
|
11
12
|
CHECKED = "checked",
|
|
@@ -13,6 +14,6 @@ export declare enum CheckboxState {
|
|
|
13
14
|
INDETERMINATE = "indeterminate"
|
|
14
15
|
}
|
|
15
16
|
export declare const Checkbox: {
|
|
16
|
-
({ checked, children, className, disabled, id: idProp, label, onBlur, onChange, onClick, onFocus, hideRequiredStyles, isRequired, tabIndex, theme: themeProp, ...rest }: CheckboxProps): React.JSX.Element;
|
|
17
|
+
({ checked, children, className, disabled, id: idProp, label, onBlur, onChange, onClick, onFocus, hideRequiredStyles, isRequired, tabIndex, theme: themeProp, color, ...rest }: CheckboxProps): React.JSX.Element;
|
|
17
18
|
Group: (props: StackProps) => React.JSX.Element;
|
|
18
19
|
};
|
|
@@ -50,7 +50,7 @@ var CheckboxState;
|
|
|
50
50
|
CheckboxState["UNCHECKED"] = "unchecked";
|
|
51
51
|
CheckboxState["INDETERMINATE"] = "indeterminate";
|
|
52
52
|
})(CheckboxState || (exports.CheckboxState = CheckboxState = {}));
|
|
53
|
-
const Checkbox = ({ checked, children, className, disabled = false, id: idProp, label, onBlur, onChange = () => { }, onClick, onFocus, hideRequiredStyles = true, isRequired = undefined, tabIndex, theme: themeProp, ...rest }) => {
|
|
53
|
+
const Checkbox = ({ checked, children, className, disabled = false, id: idProp, label, onBlur, onChange = () => { }, onClick, onFocus, hideRequiredStyles = true, isRequired = undefined, tabIndex, theme: themeProp, color = "brandGreen", ...rest }) => {
|
|
54
54
|
const { isRequired: isRequiredContext, theme: themeContext } = (0, react_1.useContext)(FormGroupContext_1.FormGroupContext);
|
|
55
55
|
const fallbackId = `checkbox-${(0, react_1.useId)()}`;
|
|
56
56
|
const id = (0, isUndefined_1.default)(idProp) ? fallbackId : idProp;
|
|
@@ -87,6 +87,12 @@ const Checkbox = ({ checked, children, className, disabled = false, id: idProp,
|
|
|
87
87
|
else if (checkedState === CheckboxState.UNCHECKED) {
|
|
88
88
|
updatedChecked = CheckboxState.CHECKED;
|
|
89
89
|
}
|
|
90
|
+
else if (checkedState === CheckboxState.INDETERMINATE) {
|
|
91
|
+
updatedChecked = CheckboxState.INDETERMINATE;
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
updatedChecked = CheckboxState.UNCHECKED;
|
|
95
|
+
}
|
|
90
96
|
setCheckedState(updatedChecked);
|
|
91
97
|
if (onChange) {
|
|
92
98
|
onChange(event);
|
|
@@ -103,10 +109,10 @@ const Checkbox = ({ checked, children, className, disabled = false, id: idProp,
|
|
|
103
109
|
};
|
|
104
110
|
const bareCheckbox = (react_1.default.createElement(Box_1.Box, { className: (0, bem_1.bem)(cn, { e: "BoxWrapper" }) },
|
|
105
111
|
react_1.default.createElement(Input_1.Input, { "aria-checked": ariaChecked(), checked: checkedState === CheckboxState.CHECKED, className: (0, bem_1.bem)(cn, { e: "Input" }), disabled: disabled, id: id, onChange: handleChange, type: "checkbox", onFocus: onFocus, onBlur: onBlur, onClick: label ? handleClick : undefined, tabIndex: tabIndex, ...rest }),
|
|
106
|
-
react_1.default.createElement(Box_1.Box, { className: (0, classnames_1.default)((0, bem_1.bem)(cn, { e: "Box" }), (0, bem_1.bem)(cn, { e: "Box", m: theme }), checked && (0, bem_1.bem)(cn, { e: "Box", m: "checked" })) }),
|
|
107
|
-
|
|
112
|
+
react_1.default.createElement(Box_1.Box, { className: (0, classnames_1.default)((0, bem_1.bem)(cn, { e: "Box" }), (0, bem_1.bem)(cn, { e: "Box", m: theme }), (0, bem_1.bem)(cn, { e: "Box", m: color }), checked && (0, bem_1.bem)(cn, { e: "Box", m: "checked" })) }),
|
|
113
|
+
react_1.default.createElement(Icon_1.Icon, { className: (0, classnames_1.default)((0, bem_1.bem)(cn, { e: "Check" }), (0, bem_1.bem)(cn, { e: "Check", m: theme }), checked && (0, bem_1.bem)(cn, { e: "Check", m: "checked" })), icon: checkedState === CheckboxState.INDETERMINATE
|
|
108
114
|
? Icon_1.ICON_TYPE.MINUS
|
|
109
|
-
: Icon_1.ICON_TYPE.CHECK })))
|
|
115
|
+
: Icon_1.ICON_TYPE.CHECK })));
|
|
110
116
|
const checkboxWithLabel = label || children ? (react_1.default.createElement(Label_1.Label, { className: (0, bem_1.bem)(cn, { e: "Label" }), isRequired: calculatedRequired && !hideRequiredStyles },
|
|
111
117
|
bareCheckbox,
|
|
112
118
|
react_1.default.createElement(Text_1.Text, { as: "span", className: (0, classnames_1.default)((0, bem_1.bem)(cn, { e: "LabelText" }), (0, bem_1.bem)(cn, { e: "LabelText", m: theme })) },
|
|
@@ -105,6 +105,7 @@ const faCrosshairs_1 = require("@fortawesome/free-solid-svg-icons/faCrosshairs")
|
|
|
105
105
|
const faCrown_1 = require("@fortawesome/free-solid-svg-icons/faCrown");
|
|
106
106
|
const faDoorClosed_1 = require("@fortawesome/free-solid-svg-icons/faDoorClosed");
|
|
107
107
|
const faDoorOpen_1 = require("@fortawesome/free-solid-svg-icons/faDoorOpen");
|
|
108
|
+
const faDownload_1 = require("@fortawesome/free-solid-svg-icons/faDownload");
|
|
108
109
|
const faDungeon_1 = require("@fortawesome/free-solid-svg-icons/faDungeon");
|
|
109
110
|
const faEdit_1 = require("@fortawesome/free-solid-svg-icons/faEdit");
|
|
110
111
|
const faEllipsisH_1 = require("@fortawesome/free-solid-svg-icons/faEllipsisH");
|
|
@@ -248,7 +249,7 @@ const utilities_1 = require("../../utilities");
|
|
|
248
249
|
const ShieldCheck_1 = require("./svg/ShieldCheck");
|
|
249
250
|
const BrandZendesk_1 = require("./svg/BrandZendesk");
|
|
250
251
|
const cn = (0, utilities_1.bemHOF)("Icon");
|
|
251
|
-
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, faClipboardCheck_1.faClipboardCheck, faClock_1.faClock, faClock_2.faClock, faClone_1.faClone, faCloudDownloadAlt_1.faCloudDownloadAlt, faCloudShowersHeavy_1.faCloudShowersHeavy, faCloudUploadAlt_1.faCloudUploadAlt, faCodeBranch_1.faCodeBranch, 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, faDoorOpen_1.faDoorOpen, faDungeon_1.faDungeon, 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, faFeatherAlt_1.faFeatherAlt, faFile_1.faFile, faFileAlt_1.faFileAlt, faFileAlt_2.faFileAlt, faFileExport_1.faFileExport, faFileImport_1.faFileImport, faFileSignature_1.faFileSignature, faFillDrip_1.faFillDrip, faFilter_1.faFilter, faFlag_1.faFlag, faFlask_1.faFlask, faFolder_1.faFolder, faFolderOpen_1.faFolderOpen, faForward_1.faForward, faGavel_1.faGavel, 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, faMoneyBill_1.faMoneyBill, 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, faTag_1.faTag, 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, faUniversalAccess_1.faUniversalAccess, faUnlink_1.faUnlink, faUnlock_1.faUnlock, faUser_2.faUser, faUserAstronaut_1.faUserAstronaut, faUserClock_1.faUserClock, faUserFriends_1.faUserFriends, faUserLock_1.faUserLock, faUserPlus_1.faUserPlus, faUser_1.faUser, faUsers_1.faUsers, faUserSecret_1.faUserSecret, faUserShield_1.faUserShield, faVial_1.faVial, faVideo_1.faVideo, faWrench_1.faWrench, faAward_1.faAward);
|
|
252
|
+
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, faClipboardCheck_1.faClipboardCheck, faClock_1.faClock, faClock_2.faClock, faClone_1.faClone, faCloudDownloadAlt_1.faCloudDownloadAlt, faCloudShowersHeavy_1.faCloudShowersHeavy, faCloudUploadAlt_1.faCloudUploadAlt, faCodeBranch_1.faCodeBranch, 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, faDoorOpen_1.faDoorOpen, faDownload_1.faDownload, faDungeon_1.faDungeon, 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, faFeatherAlt_1.faFeatherAlt, faFile_1.faFile, faFileAlt_1.faFileAlt, faFileAlt_2.faFileAlt, faFileExport_1.faFileExport, faFileImport_1.faFileImport, faFileSignature_1.faFileSignature, faFillDrip_1.faFillDrip, faFilter_1.faFilter, faFlag_1.faFlag, faFlask_1.faFlask, faFolder_1.faFolder, faFolderOpen_1.faFolderOpen, faForward_1.faForward, faGavel_1.faGavel, 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, faMoneyBill_1.faMoneyBill, 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, faTag_1.faTag, 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, faUniversalAccess_1.faUniversalAccess, faUnlink_1.faUnlink, faUnlock_1.faUnlock, faUser_2.faUser, faUserAstronaut_1.faUserAstronaut, faUserClock_1.faUserClock, faUserFriends_1.faUserFriends, faUserLock_1.faUserLock, faUserPlus_1.faUserPlus, faUser_1.faUser, faUsers_1.faUsers, faUserSecret_1.faUserSecret, faUserShield_1.faUserShield, faVial_1.faVial, faVideo_1.faVideo, faWrench_1.faWrench, faAward_1.faAward);
|
|
252
253
|
var CUSTOM_ICON_TYPE;
|
|
253
254
|
(function (CUSTOM_ICON_TYPE) {
|
|
254
255
|
CUSTOM_ICON_TYPE["ARROW_TO_BOTTOM"] = "arrow-to-bottom";
|
|
@@ -364,6 +365,7 @@ var ICON_TYPE;
|
|
|
364
365
|
ICON_TYPE["COPY"] = "copy";
|
|
365
366
|
ICON_TYPE["DOOR_CLOSED"] = "door-closed";
|
|
366
367
|
ICON_TYPE["DOOR_OPEN"] = "door-open";
|
|
368
|
+
ICON_TYPE["DOWNLOAD"] = "download";
|
|
367
369
|
ICON_TYPE["DUNGEON"] = "dungeon";
|
|
368
370
|
ICON_TYPE["EDIT"] = "edit";
|
|
369
371
|
ICON_TYPE["ELLIPSIS_H"] = "ellipsis-h";
|
package/public/css/styles.css
CHANGED
|
@@ -2244,15 +2244,26 @@ override built-in Image component classes */
|
|
|
2244
2244
|
border-color: rgb(134 163 181 / var(--tw-border-opacity));
|
|
2245
2245
|
--tw-bg-opacity: 1;
|
|
2246
2246
|
background-color: rgb(249 251 252 / var(--tw-bg-opacity));
|
|
2247
|
+
transition-duration: 150ms;
|
|
2248
|
+
|
|
2249
|
+
transition-property: background-color, border-color, opacity;
|
|
2247
2250
|
}
|
|
2248
2251
|
|
|
2249
|
-
.ads-Checkbox-Box--product.ads-Checkbox-Box--checked
|
|
2252
|
+
.ads-Checkbox-Box--product.ads-Checkbox-Box--checked,
|
|
2253
|
+
.ads-Checkbox-Box--product.ads-Checkbox-Box--checked.ads-Checkbox-Box--brandGreen {
|
|
2250
2254
|
--tw-border-opacity: 1;
|
|
2251
2255
|
border-color: rgb(51 198 159 / var(--tw-border-opacity));
|
|
2252
2256
|
--tw-bg-opacity: 1;
|
|
2253
2257
|
background-color: rgb(51 198 159 / var(--tw-bg-opacity));
|
|
2254
2258
|
}
|
|
2255
2259
|
|
|
2260
|
+
.ads-Checkbox-Box--product.ads-Checkbox-Box--checked.ads-Checkbox-Box--blue {
|
|
2261
|
+
--tw-border-opacity: 1;
|
|
2262
|
+
border-color: rgb(13 125 228 / var(--tw-border-opacity));
|
|
2263
|
+
--tw-bg-opacity: 1;
|
|
2264
|
+
background-color: rgb(13 125 228 / var(--tw-bg-opacity));
|
|
2265
|
+
}
|
|
2266
|
+
|
|
2256
2267
|
.ads-Checkbox-Check--product {
|
|
2257
2268
|
--tw-text-opacity: 1;
|
|
2258
2269
|
color: rgb(255 255 255 / var(--tw-text-opacity));
|
|
@@ -2268,13 +2279,21 @@ override built-in Image component classes */
|
|
|
2268
2279
|
.ads-Checkbox.is-disabled .ads-Checkbox-Box--product {
|
|
2269
2280
|
--tw-border-opacity: 1;
|
|
2270
2281
|
border-color: rgb(222 231 238 / var(--tw-border-opacity));
|
|
2282
|
+
transition-duration: 150ms;
|
|
2271
2283
|
}
|
|
2272
2284
|
|
|
2273
|
-
.ads-Checkbox.is-disabled .ads-Checkbox-Box--product.ads-Checkbox-Box--checked
|
|
2285
|
+
.ads-Checkbox.is-disabled .ads-Checkbox-Box--product.ads-Checkbox-Box--checked,
|
|
2286
|
+
.ads-Checkbox.is-disabled
|
|
2287
|
+
.ads-Checkbox-Box--product.ads-Checkbox-Box--checked.ads-Checkbox-Box--brandGreen {
|
|
2274
2288
|
--tw-border-opacity: 1;
|
|
2275
|
-
border-color: rgb(
|
|
2276
|
-
|
|
2277
|
-
|
|
2289
|
+
border-color: rgb(51 198 159 / var(--tw-border-opacity));
|
|
2290
|
+
opacity: 0.5;
|
|
2291
|
+
}
|
|
2292
|
+
|
|
2293
|
+
.ads-Checkbox.is-disabled
|
|
2294
|
+
.ads-Checkbox-Box--product.ads-Checkbox-Box--checked.ads-Checkbox-Box--blue {
|
|
2295
|
+
--tw-border-opacity: 1;
|
|
2296
|
+
border-color: rgb(13 125 228 / var(--tw-border-opacity));
|
|
2278
2297
|
opacity: 0.5;
|
|
2279
2298
|
}
|
|
2280
2299
|
|
|
@@ -2366,12 +2385,39 @@ override built-in Image component classes */
|
|
|
2366
2385
|
/* Checked */
|
|
2367
2386
|
|
|
2368
2387
|
.ads-Checkbox-Check {
|
|
2388
|
+
pointer-events: none;
|
|
2369
2389
|
position: absolute;
|
|
2390
|
+
top: 0;
|
|
2391
|
+
right: 0;
|
|
2392
|
+
bottom: 0;
|
|
2393
|
+
left: 0;
|
|
2394
|
+
display: flex;
|
|
2395
|
+
align-items: center;
|
|
2396
|
+
justify-content: center;
|
|
2370
2397
|
font-size: 12px;
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2398
|
+
opacity: 0;
|
|
2399
|
+
transition-duration: 150ms;
|
|
2400
|
+
|
|
2401
|
+
transition-property: opacity, -webkit-transform;
|
|
2402
|
+
|
|
2403
|
+
transition-property: opacity, transform;
|
|
2404
|
+
|
|
2405
|
+
transition-property: opacity, transform, -webkit-transform;
|
|
2406
|
+
-webkit-transform: scale(0.5);
|
|
2407
|
+
transform: scale(0.5);
|
|
2408
|
+
}
|
|
2409
|
+
|
|
2410
|
+
.ads-Checkbox-Check--checked {
|
|
2411
|
+
opacity: 1;
|
|
2412
|
+
transition-duration: 150ms;
|
|
2413
|
+
|
|
2414
|
+
transition-property: opacity, -webkit-transform;
|
|
2415
|
+
|
|
2416
|
+
transition-property: opacity, transform;
|
|
2417
|
+
|
|
2418
|
+
transition-property: opacity, transform, -webkit-transform;
|
|
2419
|
+
-webkit-transform: scale(1);
|
|
2420
|
+
transform: scale(1);
|
|
2375
2421
|
}
|
|
2376
2422
|
|
|
2377
2423
|
/* Focused */
|