@banyan_cloud/roots 1.0.142 → 1.0.143
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/cjs/index.js +7 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +7 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/index.js +7 -4
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -45016,7 +45016,8 @@ var DropdownItem = /*#__PURE__*/React.forwardRef(function DropdownItem(props, re
|
|
|
45016
45016
|
dataAttrs = props.dataAttrs,
|
|
45017
45017
|
className = props.className,
|
|
45018
45018
|
tabIndex = props.tabIndex,
|
|
45019
|
-
disabled = props.disabled
|
|
45019
|
+
disabled = props.disabled,
|
|
45020
|
+
customComponent = props.customComponent;
|
|
45020
45021
|
var action = null;
|
|
45021
45022
|
switch (variant) {
|
|
45022
45023
|
case 'checkbox':
|
|
@@ -45048,7 +45049,7 @@ var DropdownItem = /*#__PURE__*/React.forwardRef(function DropdownItem(props, re
|
|
|
45048
45049
|
role: "option",
|
|
45049
45050
|
"aria-selected": selected,
|
|
45050
45051
|
onKeyDown: onKeyDown,
|
|
45051
|
-
children: [action, /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
45052
|
+
children: [action, customComponent !== null && customComponent !== void 0 ? customComponent : /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
45052
45053
|
"data-elem": "title",
|
|
45053
45054
|
children: title
|
|
45054
45055
|
})]
|
|
@@ -45060,14 +45061,16 @@ DropdownItem.propTypes = {
|
|
|
45060
45061
|
variant: propTypesExports.oneOf(['default', 'checkbox', 'radio']),
|
|
45061
45062
|
selected: propTypesExports.bool,
|
|
45062
45063
|
// eslint-disable-next-line react/forbid-prop-types
|
|
45063
|
-
dataAttrs: propTypesExports.object
|
|
45064
|
+
dataAttrs: propTypesExports.object,
|
|
45065
|
+
customComponent: propTypesExports.node
|
|
45064
45066
|
};
|
|
45065
45067
|
DropdownItem.defaultProps = {
|
|
45066
45068
|
className: '',
|
|
45067
45069
|
title: '',
|
|
45068
45070
|
variant: 'default',
|
|
45069
45071
|
dataAttrs: {},
|
|
45070
|
-
selected: false
|
|
45072
|
+
selected: false,
|
|
45073
|
+
customComponent: null
|
|
45071
45074
|
};
|
|
45072
45075
|
|
|
45073
45076
|
var css$Q = ".Switch_module_root__c9616649 {\n cursor: pointer;\n gap: 0.625rem;\n position: relative;\n height: 1.5rem;\n}\n.Switch_module_root__c9616649.Switch_module_disabled__c9616649 {\n cursor: default;\n}\n.Switch_module_root__c9616649.Switch_module_positionLeft__c9616649 {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n}\n.Switch_module_root__c9616649.Switch_module_positionRight__c9616649 {\n display: flex;\n flex-direction: row-reverse;\n justify-content: flex-end;\n align-items: center;\n}\n.Switch_module_root__c9616649 input[type=checkbox] {\n opacity: 0;\n z-index: 1;\n position: absolute;\n width: 1px;\n height: 1px;\n}\n.Switch_module_root__c9616649 .Switch_module_pill__c9616649 {\n position: relative;\n width: 3rem;\n height: 100%;\n cursor: pointer;\n background-color: var(--grey5);\n transition: 0.4s;\n border-radius: 0.75rem;\n}\n.Switch_module_root__c9616649 .Switch_module_pill__c9616649:before {\n position: absolute;\n content: \"\";\n height: 1.25rem;\n width: 1.25rem;\n left: 0.125rem;\n bottom: 0.125rem;\n background-color: white;\n transition: 0.4s;\n border-radius: 50%;\n}\n.Switch_module_root__c9616649 input:checked + .Switch_module_pill__c9616649 {\n background-color: var(--highlight);\n}\n.Switch_module_root__c9616649 input:checked + .Switch_module_pill__c9616649:before {\n transform: translateX(1.5rem);\n}\n.Switch_module_root__c9616649 input:focus + .Switch_module_pill__c9616649::before {\n box-shadow: 0px 0px 0px 8px rgba(15, 98, 254, 0.125);\n}\n.Switch_module_root__c9616649 [data-elem=label] {\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}";
|