@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/index.js CHANGED
@@ -44996,7 +44996,8 @@ var DropdownItem = /*#__PURE__*/forwardRef(function DropdownItem(props, ref) {
44996
44996
  dataAttrs = props.dataAttrs,
44997
44997
  className = props.className,
44998
44998
  tabIndex = props.tabIndex,
44999
- disabled = props.disabled;
44999
+ disabled = props.disabled,
45000
+ customComponent = props.customComponent;
45000
45001
  var action = null;
45001
45002
  switch (variant) {
45002
45003
  case 'checkbox':
@@ -45028,7 +45029,7 @@ var DropdownItem = /*#__PURE__*/forwardRef(function DropdownItem(props, ref) {
45028
45029
  role: "option",
45029
45030
  "aria-selected": selected,
45030
45031
  onKeyDown: onKeyDown,
45031
- children: [action, /*#__PURE__*/jsx("span", {
45032
+ children: [action, customComponent !== null && customComponent !== void 0 ? customComponent : /*#__PURE__*/jsx("span", {
45032
45033
  "data-elem": "title",
45033
45034
  children: title
45034
45035
  })]
@@ -45040,14 +45041,16 @@ DropdownItem.propTypes = {
45040
45041
  variant: propTypesExports.oneOf(['default', 'checkbox', 'radio']),
45041
45042
  selected: propTypesExports.bool,
45042
45043
  // eslint-disable-next-line react/forbid-prop-types
45043
- dataAttrs: propTypesExports.object
45044
+ dataAttrs: propTypesExports.object,
45045
+ customComponent: propTypesExports.node
45044
45046
  };
45045
45047
  DropdownItem.defaultProps = {
45046
45048
  className: '',
45047
45049
  title: '',
45048
45050
  variant: 'default',
45049
45051
  dataAttrs: {},
45050
- selected: false
45052
+ selected: false,
45053
+ customComponent: null
45051
45054
  };
45052
45055
 
45053
45056
  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}";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@banyan_cloud/roots",
3
- "version": "1.0.142",
3
+ "version": "1.0.143",
4
4
  "description": "Design System Library which drives the Banyan Cloud products",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",