kiban-design-system 1.0.260-alpha.0 → 1.0.263-alpha.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/dist/index.js CHANGED
@@ -18239,10 +18239,10 @@ const Item$3 = ({ label, isDisabled, icon, onClick, isActive: isActiveProp, subN
18239
18239
  return isActiveProp;
18240
18240
  }, [location, isExact, isActiveProp, url]);
18241
18241
  useEffect(() => {
18242
- if (isActiveProp && subNavigationItems) {
18242
+ if (isActive && subNavigationItems) {
18243
18243
  setCurrentTierItems === null || setCurrentTierItems === void 0 ? void 0 : setCurrentTierItems(subNavigationItems || [], label);
18244
18244
  }
18245
- }, [isActiveProp]);
18245
+ }, [isActive]);
18246
18246
  const labelMarkup = label ? (jsx(motion.span, Object.assign({ layout: true, animate: {
18247
18247
  opacity: isCollapsed ? 0 : 1,
18248
18248
  }, transition: {
@@ -18280,8 +18280,8 @@ const Section$1 = ({ items, fill, title, isCollapsed: isCollapsedProp, areSubNav
18280
18280
  opacity: isCollapsed ? 0 : 1,
18281
18281
  }, layout: true }, { children: title }), void 0) }), void 0)) : null;
18282
18282
  const renderItem = (item, index) => {
18283
- const { label, isDisabled, icon, onClick, isActive, subNavigationItems, truncateText, anchorProps, } = item;
18284
- return (jsx(Item$3, { label: label, isDisabled: isDisabled, icon: icon, onClick: onClick, isActive: isActive, subNavigationItems: subNavigationItems, truncateText: truncateText, anchorProps: anchorProps, isCollapsed: isCollapsed, isSubNavigation: areSubNavigationItems }, `alpha-side-menu-item-${index}`));
18283
+ const { label, isDisabled, icon, onClick, isActive, subNavigationItems, truncateText, anchorProps, url, isExact, } = item;
18284
+ return (jsx(Item$3, { label: label, isDisabled: isDisabled, icon: icon, onClick: onClick, isActive: isActive, subNavigationItems: subNavigationItems, truncateText: truncateText, anchorProps: anchorProps, isCollapsed: isCollapsed, isSubNavigation: areSubNavigationItems, url: url, isExact: isExact }, `alpha-side-menu-item-${index}`));
18285
18285
  };
18286
18286
  const itemsMarkup = items && items.length > 0 ? (jsx("ul", Object.assign({ className: `${COMPONENT_NAME$o}__Items` }, { children: items.map(renderItem) }), void 0)) : null;
18287
18287
  const classNames = cssClassName(COMPONENT_NAME$o, fill && 'isFill');
@@ -36506,7 +36506,7 @@ FormLayout.Group = Group;
36506
36506
  * @param {ReactNode} FrameProps.sideMenu - Component to display as menu, left side
36507
36507
  * @param {ReactNode} FrameProps.content - Component to display as content
36508
36508
  */
36509
- const Frame = ({ header, navigation, children }) => (jsxs("div", Object.assign({ className: 'Frame' }, { children: [header && jsx("div", Object.assign({ className: 'Frame__Header' }, { children: header }), void 0), navigation && jsx("div", Object.assign({ className: 'Frame__Navigation' }, { children: navigation }), void 0), jsx("div", Object.assign({ className: 'Frame__Content' }, { children: children }), void 0)] }), void 0));
36509
+ const Frame = ({ header, navigation, children }) => (jsxs("div", Object.assign({ className: 'Frame' }, { children: [header && jsx("div", Object.assign({ className: 'Frame__Header' }, { children: header }), void 0), jsxs("div", Object.assign({ className: 'Frame__Container' }, { children: [navigation && jsx("div", Object.assign({ className: 'Frame__Navigation' }, { children: navigation }), void 0), jsx("div", Object.assign({ className: 'Frame__Content' }, { children: children }), void 0)] }), void 0)] }), void 0));
36510
36510
 
36511
36511
  const KibanCloud = ({ size }) => (jsxs("svg", Object.assign({ className: `Logo Logo--${size}`, viewBox: '0 0 384 48', fill: 'none' }, { children: [jsxs("g", Object.assign({ clipPath: 'url(#clip0_47_16047)' }, { children: [jsxs("g", Object.assign({ clipPath: 'url(#clip1_47_16047)' }, { children: [jsx("path", { d: 'M48 48.3363V0.337029L47.6361 0.358307C41.5229 0.715759 35.7795 3.40131 31.5881 7.86215C27.3971 12.3226 25.0768 18.2186 25.1046 24.3367C25.0768 30.4548 27.3971 36.3508 31.5881 40.8112C35.7795 45.272 41.5229 47.9576 47.6361 48.315L48 48.3363Z', fill: '#0047FF' }, void 0), jsx("path", { d: 'M0 23.2516V0.337029H29.4276L29.4221 0.423215C29.0332 6.47079 26.4067 12.1575 22.0534 16.377C17.7002 20.5965 11.9316 23.0469 5.87019 23.2514L5.85842 23.2516H0Z', fill: '#0000CC' }, void 0), jsx("path", { d: 'M29.4201 48.3374C29.0246 42.301 26.3995 36.626 22.0534 32.4135C17.7002 28.194 11.9316 25.7436 5.87019 25.5391L5.85842 25.5389H0V48.3374H29.4201Z', fill: '#0000CC' }, void 0)] }), void 0), jsxs("g", Object.assign({ clipPath: 'url(#clip2_47_16047)' }, { children: [jsx("path", { d: 'M68.1528 0H59.52V47.4651H68.1528V0Z', fill: 'black' }, void 0), jsx("path", { fillRule: 'evenodd', clipRule: 'evenodd', d: 'M116.427 47.4651V43.5771C118.119 46.2583 121.981 48 126.183 48C136.418 48 142.451 40.896 142.451 30.576C142.451 20.256 136.418 13.152 126.322 13.152C122.051 13.152 118.39 14.8937 116.427 17.4377V0H107.885V47.4651H116.427ZM124.963 20.4274C130.385 20.4274 133.977 24.4457 133.977 30.5486V30.576C133.977 36.672 130.448 40.6971 124.963 40.6971C119.478 40.6971 115.886 36.6788 115.886 30.576C115.886 24.4731 119.541 20.4274 124.963 20.4274Z', fill: 'black' }, void 0), jsx("path", { d: 'M102.656 0.0137492H94.1206V8.45489H102.656V0.0137492Z', fill: 'black' }, void 0), jsx("path", { d: 'M102.67 13.6868H94.1276V47.4651H102.67V13.6868Z', fill: 'black' }, void 0), jsx("path", { fillRule: 'evenodd', clipRule: 'evenodd', d: 'M178.694 47.4652H170.152V43.5772C168.46 46.2583 164.667 48 160.396 48C150.161 48 144.115 40.896 144.115 30.576C144.115 20.256 150.147 13.152 160.243 13.152C164.514 13.152 168.176 14.8938 170.138 17.4377V13.7143H178.681L178.694 47.4652ZM170.693 30.576C170.693 24.4732 167.101 20.4549 161.616 20.4549C156.131 20.4549 152.602 24.4732 152.602 30.576C152.602 36.6789 156.194 40.6972 161.616 40.6972C167.038 40.6972 170.693 36.672 170.693 30.576Z', fill: 'black' }, void 0), jsx("path", { d: 'M192.465 13.7143H183.923V47.4651H192.445V32.6537C192.445 25.0766 195.489 20.6537 200.71 20.6537C204.711 20.6537 207.214 23.4034 207.214 27.36V47.4651H215.784V25.3714C215.784 17.9794 210.764 13.1794 203.303 13.1794C201.164 13.1415 199.049 13.6375 197.155 14.6215C195.261 15.6054 193.648 17.0457 192.465 18.8091V13.7143Z', fill: 'black' }, void 0), jsx("path", { d: 'M92.1167 13.6731L76.4459 29.0057L94.1206 47.4651H82.2982L68.1598 31.9131V26.544L81.0847 13.6731H92.1167Z', fill: 'black' }, void 0)] }), void 0)] }), void 0), jsx("g", Object.assign({ clipPath: 'url(#clip3_47_16047)' }, { children: jsxs("g", Object.assign({ opacity: '0.6' }, { children: [jsx("path", { d: 'M241.623 48C238.422 48 235.537 47.2787 232.967 45.836C230.442 44.3483 228.436 42.2971 226.948 39.6823C225.506 37.0224 224.784 33.9343 224.784 30.4179C224.784 26.9015 225.506 23.8359 226.948 21.2211C228.436 18.5612 230.442 16.51 232.967 15.0673C235.537 13.5796 238.422 12.8358 241.623 12.8358C245.59 12.8358 248.926 13.8727 251.631 15.9465C254.381 18.0202 256.117 20.7928 256.838 24.2641H251.022C250.571 22.1904 249.467 20.5899 247.709 19.4629C245.951 18.2907 243.899 17.7047 241.555 17.7047C239.662 17.7047 237.881 18.178 236.213 19.1248C234.545 20.0715 233.192 21.4916 232.155 23.385C231.118 25.2785 230.6 27.6228 230.6 30.4179C230.6 33.213 231.118 35.5573 232.155 37.4507C233.192 39.3442 234.545 40.7868 236.213 41.7786C237.881 42.7254 239.662 43.1987 241.555 43.1987C243.899 43.1987 245.951 42.6352 247.709 41.5081C249.467 40.336 250.571 38.6905 251.022 36.5716H256.838C256.162 39.9528 254.449 42.7028 251.699 44.8217C248.949 46.9406 245.59 48 241.623 48Z', fill: 'black' }, void 0), jsx("path", { d: 'M262.742 47.1885V0H268.423V47.1885H262.742Z', fill: 'black' }, void 0), jsx("path", { d: 'M290.987 48C287.831 48 284.991 47.2787 282.467 45.836C279.942 44.3934 277.936 42.3647 276.448 39.7499C275.006 37.0901 274.284 33.9794 274.284 30.4179C274.284 26.8564 275.028 23.7682 276.516 21.1535C278.004 18.4936 280.01 16.4424 282.534 14.9997C285.104 13.5571 287.967 12.8358 291.123 12.8358C294.278 12.8358 297.118 13.5571 299.643 14.9997C302.168 16.4424 304.151 18.4936 305.594 21.1535C307.082 23.7682 307.826 26.8564 307.826 30.4179C307.826 33.9794 307.082 37.0901 305.594 39.7499C304.106 42.3647 302.078 44.3934 299.508 45.836C296.983 47.2787 294.143 48 290.987 48ZM290.987 43.1311C292.926 43.1311 294.729 42.6577 296.397 41.711C298.065 40.7643 299.418 39.3442 300.455 37.4507C301.491 35.5573 302.01 33.213 302.01 30.4179C302.01 27.6228 301.491 25.2785 300.455 23.385C299.463 21.4916 298.133 20.0715 296.465 19.1248C294.797 18.178 293.016 17.7047 291.123 17.7047C289.184 17.7047 287.381 18.178 285.713 19.1248C284.045 20.0715 282.692 21.4916 281.655 23.385C280.618 25.2785 280.1 27.6228 280.1 30.4179C280.1 33.213 280.618 35.5573 281.655 37.4507C282.692 39.3442 284.022 40.7643 285.645 41.711C287.313 42.6577 289.094 43.1311 290.987 43.1311Z', fill: 'black' }, void 0), jsx("path", { d: 'M325.935 48C321.968 48 318.812 46.8053 316.468 44.416C314.123 41.9815 312.951 38.2622 312.951 33.2581V13.6473H318.632V32.6495C318.632 39.6372 321.494 43.1311 327.22 43.1311C330.15 43.1311 332.562 42.0942 334.455 40.0204C336.394 37.9016 337.363 34.9036 337.363 31.0265V13.6473H343.044V47.1885H337.904L337.499 41.17C336.462 43.2889 334.906 44.9569 332.832 46.1742C330.804 47.3914 328.505 48 325.935 48Z', fill: 'black' }, void 0), jsx("path", { d: 'M365.58 48C362.244 48 359.314 47.2336 356.789 45.7008C354.31 44.168 352.371 42.0717 350.974 39.4118C349.621 36.752 348.945 33.7314 348.945 30.3503C348.945 26.9691 349.644 23.9711 351.041 21.3563C352.439 18.6965 354.377 16.6227 356.857 15.135C359.336 13.6022 362.267 12.8358 365.648 12.8358C368.398 12.8358 370.832 13.3993 372.951 14.5264C375.07 15.6534 376.716 17.2313 377.888 19.26V0H383.568V47.1885H378.429L377.888 41.6434C376.806 43.2664 375.25 44.7315 373.222 46.0389C371.193 47.3463 368.646 48 365.58 48ZM366.189 43.0635C368.443 43.0635 370.427 42.545 372.14 41.5081C373.898 40.4262 375.25 38.9384 376.197 37.045C377.189 35.1515 377.685 32.9425 377.685 30.4179C377.685 27.8933 377.189 25.6842 376.197 23.7908C375.25 21.8973 373.898 20.4321 372.14 19.3953C370.427 18.3133 368.443 17.7723 366.189 17.7723C363.98 17.7723 361.996 18.3133 360.238 19.3953C358.525 20.4321 357.172 21.8973 356.181 23.7908C355.234 25.6842 354.76 27.8933 354.76 30.4179C354.76 32.9425 355.234 35.1515 356.181 37.045C357.172 38.9384 358.525 40.4262 360.238 41.5081C361.996 42.545 363.98 43.0635 366.189 43.0635Z', fill: 'black' }, void 0)] }), void 0) }), void 0), jsxs("defs", { children: [jsx("clipPath", Object.assign({ id: 'clip0_47_16047' }, { children: jsx("rect", { width: '215.784', height: '48', fill: 'white' }, void 0) }), void 0), jsx("clipPath", Object.assign({ id: 'clip1_47_16047' }, { children: jsx("rect", { width: '48', height: '48', fill: 'white' }, void 0) }), void 0), jsx("clipPath", Object.assign({ id: 'clip2_47_16047' }, { children: jsx("rect", { width: '156.264', height: '48', fill: 'white', transform: 'translate(59.52)' }, void 0) }), void 0), jsx("clipPath", Object.assign({ id: 'clip3_47_16047' }, { children: jsx("rect", { width: '158.784', height: '48', fill: 'white', transform: 'translate(224.784)' }, void 0) }), void 0)] }, void 0)] }), void 0));
36512
36512
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kiban-design-system",
3
- "version": "1.0.260-alpha.0",
3
+ "version": "1.0.263-alpha.0",
4
4
  "description": "",
5
5
  "author": "Kiban",
6
6
  "license": "",