@equinor/roma-framework 0.0.5-ALPHA.4 → 0.0.5

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/roma-framework",
3
- "version": "0.0.5-ALPHA.4",
3
+ "version": "0.0.5",
4
4
  "repository": "https://github.com/equinor/tops-roma",
5
5
  "types": "./index.d.ts",
6
6
  "private": false,
@@ -62759,10 +62759,10 @@ var __privateMethod = (obj, member, method) => {
62759
62759
  borderTop: shorthand(border2.top),
62760
62760
  borderLeft: shorthand(border2.left),
62761
62761
  borderRight: shorthand(border2.right),
62762
- borderBottomLeftRadius: border2 === null || border2 === void 0 ? void 0 : (_border$left = border2.left) === null || _border$left === void 0 ? void 0 : _border$left.radius,
62763
- borderTopLeftRadius: border2 === null || border2 === void 0 ? void 0 : (_border$left2 = border2.left) === null || _border$left2 === void 0 ? void 0 : _border$left2.radius,
62764
- borderBottomRightRadius: border2 === null || border2 === void 0 ? void 0 : (_border$right = border2.right) === null || _border$right === void 0 ? void 0 : _border$right.radius,
62765
- borderTopRightRadius: border2 === null || border2 === void 0 ? void 0 : (_border$right2 = border2.right) === null || _border$right2 === void 0 ? void 0 : _border$right2.radius
62762
+ borderBottomLeftRadius: border2 === null || border2 === void 0 || (_border$left = border2.left) === null || _border$left === void 0 ? void 0 : _border$left.radius,
62763
+ borderTopLeftRadius: border2 === null || border2 === void 0 || (_border$left2 = border2.left) === null || _border$left2 === void 0 ? void 0 : _border$left2.radius,
62764
+ borderBottomRightRadius: border2 === null || border2 === void 0 || (_border$right = border2.right) === null || _border$right === void 0 ? void 0 : _border$right.radius,
62765
+ borderTopRightRadius: border2 === null || border2 === void 0 || (_border$right2 = border2.right) === null || _border$right2 === void 0 ? void 0 : _border$right2.radius
62766
62766
  });
62767
62767
  default:
62768
62768
  return nt({});
@@ -62913,7 +62913,7 @@ var __privateMethod = (obj, member, method) => {
62913
62913
  var theme = _ref.theme;
62914
62914
  var states = theme.states, clickbound = theme.clickbound;
62915
62915
  var focus2 = states.focus, hover2 = states.hover, disabled2 = states.disabled;
62916
- return nt(["box-sizing:border-box;margin:0;padding:0;text-decoration:none;position:relative;cursor:pointer;display:inline-block;background:", ";height:", ";width:", ";svg{justify-self:center;}", " ", " ", " &::before{position:absolute;top:0;left:0;width:auto;min-height:auto;content:'';}&::after{position:absolute;top:-", ";left:-", ";width:", ";height:", ";content:'';}@media (hover:hover) and (pointer:fine){&:hover{background:", ";color:", ";", ";}}&:focus{outline:none;}&[data-focus-visible-added]:focus{", "}&:focus-visible{", "}&::-moz-focus-inner{border:0;}&:disabled,&[aria-disabled='true']{cursor:not-allowed;background:", ";", ";", ";@media (hover:hover) and (pointer:fine){&:hover{background:", ";}}}"], theme.background, theme.height, theme.width, spacingsTemplate(theme.spacings), bordersTemplate(theme.border), typographyTemplate(theme.typography), clickbound === null || clickbound === void 0 ? void 0 : (_clickbound$offset = clickbound.offset) === null || _clickbound$offset === void 0 ? void 0 : _clickbound$offset.top, clickbound === null || clickbound === void 0 ? void 0 : (_clickbound$offset2 = clickbound.offset) === null || _clickbound$offset2 === void 0 ? void 0 : _clickbound$offset2.left, clickbound === null || clickbound === void 0 ? void 0 : clickbound.width, clickbound === null || clickbound === void 0 ? void 0 : clickbound.height, hover2.background, (_hover$typography = hover2.typography) === null || _hover$typography === void 0 ? void 0 : _hover$typography.color, bordersTemplate(hover2 === null || hover2 === void 0 ? void 0 : hover2.border), outlineTemplate(focus2.outline), outlineTemplate(focus2.outline), disabled2.background, bordersTemplate(disabled2.border), typographyTemplate(disabled2.typography), disabled2.background);
62916
+ return nt(["box-sizing:border-box;margin:0;padding:0;text-decoration:none;position:relative;cursor:pointer;display:inline-block;background:", ";height:", ";width:", ";svg{justify-self:center;}", " ", " ", " &::before{position:absolute;top:0;left:0;width:auto;min-height:auto;content:'';}&::after{position:absolute;top:-", ";left:-", ";width:", ";height:", ";content:'';}@media (hover:hover) and (pointer:fine){&:hover{background:", ";color:", ";", ";}}&:focus{outline:none;}&[data-focus-visible-added]:focus{", "}&:focus-visible{", "}&::-moz-focus-inner{border:0;}&:disabled,&[aria-disabled='true']{cursor:not-allowed;background:", ";", ";", ";@media (hover:hover) and (pointer:fine){&:hover{background:", ";}}}"], theme.background, theme.height, theme.width, spacingsTemplate(theme.spacings), bordersTemplate(theme.border), typographyTemplate(theme.typography), clickbound === null || clickbound === void 0 || (_clickbound$offset = clickbound.offset) === null || _clickbound$offset === void 0 ? void 0 : _clickbound$offset.top, clickbound === null || clickbound === void 0 || (_clickbound$offset2 = clickbound.offset) === null || _clickbound$offset2 === void 0 ? void 0 : _clickbound$offset2.left, clickbound === null || clickbound === void 0 ? void 0 : clickbound.width, clickbound === null || clickbound === void 0 ? void 0 : clickbound.height, hover2.background, (_hover$typography = hover2.typography) === null || _hover$typography === void 0 ? void 0 : _hover$typography.color, bordersTemplate(hover2 === null || hover2 === void 0 ? void 0 : hover2.border), outlineTemplate(focus2.outline), outlineTemplate(focus2.outline), disabled2.background, bordersTemplate(disabled2.border), typographyTemplate(disabled2.typography), disabled2.background);
62917
62917
  });
62918
62918
  var Button$2 = /* @__PURE__ */ reactExports.forwardRef(function Button2(_ref2, ref) {
62919
62919
  var _ref2$color = _ref2.color, color = _ref2$color === void 0 ? "primary" : _ref2$color, _ref2$variant = _ref2.variant, variant = _ref2$variant === void 0 ? "contained" : _ref2$variant, children = _ref2.children, _ref2$disabled = _ref2.disabled, disabled2 = _ref2$disabled === void 0 ? false : _ref2$disabled, href = _ref2.href, _ref2$tabIndex = _ref2.tabIndex, tabIndex = _ref2$tabIndex === void 0 ? 0 : _ref2$tabIndex, _ref2$fullWidth = _ref2.fullWidth, fullWidth = _ref2$fullWidth === void 0 ? false : _ref2$fullWidth, other = _objectWithoutProperties(_ref2, _excluded$t);
@@ -66228,7 +66228,7 @@ var __privateMethod = (obj, member, method) => {
66228
66228
  variant: isSelected ? "contained" : "outlined",
66229
66229
  onClick: function onClick(e2) {
66230
66230
  var _childElement$props, _childElement$props$o;
66231
- (_childElement$props = childElement.props) === null || _childElement$props === void 0 ? void 0 : (_childElement$props$o = _childElement$props.onClick) === null || _childElement$props$o === void 0 ? void 0 : _childElement$props$o.call(_childElement$props, e2);
66231
+ (_childElement$props = childElement.props) === null || _childElement$props === void 0 || (_childElement$props$o = _childElement$props.onClick) === null || _childElement$props$o === void 0 || _childElement$props$o.call(_childElement$props, e2);
66232
66232
  var updatedSelection = [index2];
66233
66233
  if (multiple) {
66234
66234
  updatedSelection = pickedIndexes.includes(index2) ? pickedIndexes.filter(function(i2) {
@@ -67532,7 +67532,7 @@ var __privateMethod = (obj, member, method) => {
67532
67532
  isOpen: open
67533
67533
  });
67534
67534
  });
67535
- onToggle === null || onToggle === void 0 ? void 0 : onToggle(open);
67535
+ onToggle === null || onToggle === void 0 || onToggle(open);
67536
67536
  }, [onToggle]);
67537
67537
  var setOnToggle = function setOnToggle2(onToggle2) {
67538
67538
  setState(function(prevState) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/roma-framework",
3
- "version": "0.0.5-ALPHA.4",
3
+ "version": "0.0.5",
4
4
  "repository": "https://github.com/equinor/tops-roma",
5
5
  "types": "./index.d.ts",
6
6
  "private": false,
@@ -2486,10 +2486,10 @@ var bordersTemplate = function bordersTemplate2(border2) {
2486
2486
  borderTop: shorthand(border2.top),
2487
2487
  borderLeft: shorthand(border2.left),
2488
2488
  borderRight: shorthand(border2.right),
2489
- borderBottomLeftRadius: border2 === null || border2 === void 0 ? void 0 : (_border$left = border2.left) === null || _border$left === void 0 ? void 0 : _border$left.radius,
2490
- borderTopLeftRadius: border2 === null || border2 === void 0 ? void 0 : (_border$left2 = border2.left) === null || _border$left2 === void 0 ? void 0 : _border$left2.radius,
2491
- borderBottomRightRadius: border2 === null || border2 === void 0 ? void 0 : (_border$right = border2.right) === null || _border$right === void 0 ? void 0 : _border$right.radius,
2492
- borderTopRightRadius: border2 === null || border2 === void 0 ? void 0 : (_border$right2 = border2.right) === null || _border$right2 === void 0 ? void 0 : _border$right2.radius
2489
+ borderBottomLeftRadius: border2 === null || border2 === void 0 || (_border$left = border2.left) === null || _border$left === void 0 ? void 0 : _border$left.radius,
2490
+ borderTopLeftRadius: border2 === null || border2 === void 0 || (_border$left2 = border2.left) === null || _border$left2 === void 0 ? void 0 : _border$left2.radius,
2491
+ borderBottomRightRadius: border2 === null || border2 === void 0 || (_border$right = border2.right) === null || _border$right === void 0 ? void 0 : _border$right.radius,
2492
+ borderTopRightRadius: border2 === null || border2 === void 0 || (_border$right2 = border2.right) === null || _border$right2 === void 0 ? void 0 : _border$right2.radius
2493
2493
  });
2494
2494
  default:
2495
2495
  return nt({});