@bigbinary/neeto-molecules 1.1.45 → 1.1.47

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/Taxonomy.js CHANGED
@@ -1294,6 +1294,47 @@ function _extends() {
1294
1294
  return _extends.apply(this, arguments);
1295
1295
  }
1296
1296
 
1297
+ function _typeof(obj) {
1298
+ "@babel/helpers - typeof";
1299
+
1300
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
1301
+ return typeof obj;
1302
+ } : function (obj) {
1303
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
1304
+ }, _typeof(obj);
1305
+ }
1306
+
1307
+ function _toPrimitive(input, hint) {
1308
+ if (_typeof(input) !== "object" || input === null) return input;
1309
+ var prim = input[Symbol.toPrimitive];
1310
+ if (prim !== undefined) {
1311
+ var res = prim.call(input, hint || "default");
1312
+ if (_typeof(res) !== "object") return res;
1313
+ throw new TypeError("@@toPrimitive must return a primitive value.");
1314
+ }
1315
+ return (hint === "string" ? String : Number)(input);
1316
+ }
1317
+
1318
+ function _toPropertyKey(arg) {
1319
+ var key = _toPrimitive(arg, "string");
1320
+ return _typeof(key) === "symbol" ? key : String(key);
1321
+ }
1322
+
1323
+ function _defineProperty(obj, key, value) {
1324
+ key = _toPropertyKey(key);
1325
+ if (key in obj) {
1326
+ Object.defineProperty(obj, key, {
1327
+ value: value,
1328
+ enumerable: true,
1329
+ configurable: true,
1330
+ writable: true
1331
+ });
1332
+ } else {
1333
+ obj[key] = value;
1334
+ }
1335
+ return obj;
1336
+ }
1337
+
1297
1338
  var css$1 = ":root{--neeto-molecules-main-header-height:98px;--neeto-molecules-main-header-with-breadcrumbs-height:170px}.neeto-molecules-header{align-items:flex-start!important;background:rgb(var(--neeto-ui-white));display:flex;flex-direction:row;justify-content:space-between;min-height:98px;min-height:var(--neeto-molecules-main-header-height);padding:40px 0 24px!important;width:100%}.neeto-molecules-header .neeto-molecules-header__toggle-menubar-btn{margin-right:8px}.neeto-molecules-header .neeto-molecules-header__left{align-items:flex-start!important;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start}.neeto-molecules-header .neeto-molecules-header__left-data-wrap{display:flex;flex-wrap:wrap}.neeto-molecules-header .neeto-molecules-header__page-title{align-items:center;display:flex;flex-direction:row;gap:12px;margin-top:-16px;width:100%}.neeto-molecules-header .neeto-molecules-header__page-title h2{font-size:40px;line-height:var(--neeto-ui-leading-tight)}.neeto-molecules-header .neeto-molecules-header__breadcrumbs-wrap{display:flex;margin:0 0 40px}.neeto-molecules-header .neeto-molecules-header__breadcrumb{align-items:center;display:flex;flex-direction:row;justify-content:flex-start;line-height:1}.neeto-molecules-header .neeto-molecules-header__breadcrumb a{text-decoration:none;transition:all .3s ease-in-out}.neeto-molecules-header .neeto-molecules-header__breadcrumb a:focus-visible{border-radius:var(--neeto-ui-rounded-sm);outline:3px solid rgba(var(--neeto-ui-primary-500),50%)}.neeto-molecules-header .neeto-molecules-header__breadcrumb-separator{font-size:12px;line-height:16px;margin:0 12px!important}.neeto-molecules-header .neeto-molecules-header__right{align-items:center;display:flex;flex-direction:row;justify-content:flex-end}.neeto-molecules-header--has-breadcrumbs{min-height:170px;min-height:var(--neeto-molecules-main-header-with-breadcrumbs-height)}.neeto-molecules-header--has-breadcrumbs .neeto-molecules-header__page-title{margin-top:0}.neeto-molecules-header--nano,.neeto-molecules-header--small{flex-shrink:0;min-height:0}.neeto-molecules-header--nano .neeto-molecules-header__breadcrumbs-wrap,.neeto-molecules-header--small .neeto-molecules-header__breadcrumbs-wrap{margin:0 0 16px}.neeto-molecules-header--small .neeto-molecules-header__page-title{margin-top:-4px}.neeto-molecules-header--small .neeto-molecules-header__page-title h2{font-size:32px}.neeto-molecules-header--nano .neeto-molecules-header__page-title{margin-top:0}.neeto-molecules-header--nano .neeto-molecules-header__page-title h2{font-size:24px}";
1298
1339
  n(css$1,{});
1299
1340
 
@@ -1330,15 +1371,24 @@ var SIZES = {
1330
1371
  small: "small",
1331
1372
  large: "large"
1332
1373
  };
1374
+ var DROPDOWN_BUTTON_SIZES = {
1375
+ nano: "small",
1376
+ small: "medium",
1377
+ large: "large"
1378
+ };
1333
1379
 
1334
1380
  var Dropdown = function Dropdown(props) {
1335
1381
  return /*#__PURE__*/React.createElement(Dropdown$1, _extends({
1336
- buttonStyle: "text",
1382
+ buttonSize: DROPDOWN_BUTTON_SIZES[props.size],
1383
+ buttonStyle: "secondary",
1337
1384
  icon: MenuHorizontal,
1338
- position: "bottom-end"
1385
+ position: "bottom-start",
1386
+ strategy: "fixed"
1339
1387
  }, props));
1340
1388
  };
1341
1389
 
1390
+ function ownKeys$4(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1391
+ function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$4(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$4(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1342
1392
  var Header = function Header(_ref) {
1343
1393
  var title = _ref.title,
1344
1394
  searchProps = _ref.searchProps,
@@ -1375,54 +1425,17 @@ var Header = function Header(_ref) {
1375
1425
  lineHeight: "tight",
1376
1426
  style: "h2",
1377
1427
  weight: "semibold"
1378
- }, title), renderDropdown(Dropdown)))), /*#__PURE__*/React.createElement("div", {
1428
+ }, title), renderDropdown(function (props) {
1429
+ return /*#__PURE__*/React.createElement(Dropdown, _objectSpread$4({
1430
+ size: size
1431
+ }, props));
1432
+ })))), /*#__PURE__*/React.createElement("div", {
1379
1433
  className: "neeto-ui-gap-3 neeto-molecules-header__right"
1380
1434
  }, searchProps && /*#__PURE__*/React.createElement(Search, _extends({
1381
1435
  className: classnames(["neeto-molecules-header__search-input", searchProps.className])
1382
1436
  }, searchProps)), actionBlock));
1383
1437
  };
1384
1438
 
1385
- function _typeof(obj) {
1386
- "@babel/helpers - typeof";
1387
-
1388
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
1389
- return typeof obj;
1390
- } : function (obj) {
1391
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
1392
- }, _typeof(obj);
1393
- }
1394
-
1395
- function _toPrimitive(input, hint) {
1396
- if (_typeof(input) !== "object" || input === null) return input;
1397
- var prim = input[Symbol.toPrimitive];
1398
- if (prim !== undefined) {
1399
- var res = prim.call(input, hint || "default");
1400
- if (_typeof(res) !== "object") return res;
1401
- throw new TypeError("@@toPrimitive must return a primitive value.");
1402
- }
1403
- return (hint === "string" ? String : Number)(input);
1404
- }
1405
-
1406
- function _toPropertyKey(arg) {
1407
- var key = _toPrimitive(arg, "string");
1408
- return _typeof(key) === "symbol" ? key : String(key);
1409
- }
1410
-
1411
- function _defineProperty(obj, key, value) {
1412
- key = _toPropertyKey(key);
1413
- if (key in obj) {
1414
- Object.defineProperty(obj, key, {
1415
- value: value,
1416
- enumerable: true,
1417
- configurable: true,
1418
- writable: true
1419
- });
1420
- } else {
1421
- obj[key] = value;
1422
- }
1423
- return obj;
1424
- }
1425
-
1426
1439
  function _objectWithoutPropertiesLoose(source, excluded) {
1427
1440
  if (source == null) return {};
1428
1441
  var target = {};