forked from bombastictranz/awesome
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
1 addition
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1337],{73026:function(e,t,r){var n=r(28165),i=r(52903),l={name:"11ojelr-List--rootStyle",styles:"list-style-type:none;margin:0px;margin-block-end:0px;margin-block-start:0px;padding:0px;padding-inline-start:0px;-webkit-margin-after:0px;-webkit-margin-before:0px;-webkit-padding-start:0px;label:List--rootStyle;"};function List(e){var t,r=e.items.map(function(t,r){return(0,i.tZ)("li",{children:e.itemRenderer(t,r)},e.getKey(t,r))});return(0,i.tZ)("ul",{css:[l,e.gap&&(t=e.gap,(0,n.iv)("display:grid;grid-gap:",t,"px;;label:List--rootWithGap;")),";label:List--List;"],id:e.id,children:r})}List.defaultProps={getKey:function(e,t){return t}},t.Z=List},92975:function(e,t,r){r.d(t,{Z:function(){return g}});var n=r(95235),i=r(2784),l=r(28165),o=r(99029),a=r(98628),s=r(26215),c=r(52522),u=r(52903);function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var b={name:"wdiybz-ListItem--clickableStyle",styles:"cursor:pointer;label:ListItem--clickableStyle;"},d=(0,l.iv)("background-color:",o.w.acidWash,";;label:ListItem--focusedStyle;"),p={name:"kjcw0u-ListItem--linkStyle",styles:"text-decoration:none;label:ListItem--linkStyle;"},y=(0,l.iv)("background-color:",o.w.acidWash,";;label:ListItem--selectedStyled;"),f=(0,c.uq)({mobile:(0,l.iv)("padding:15px;border:1px solid ",o.w.neutral400,";border-radius:5px;transition:",a.f.transitionValue,";;label:ListItem--mobile;"),tablet:{name:"gv1u4n-ListItem--tablet",styles:"padding:18px 22px;label:ListItem--tablet;"}}),m={name:"lmygmf-ListItem--mobile",styles:"padding:10px;label:ListItem--mobile;"};function ListItem(e){var t,r,n,a=(0,i.useState)(!1),g=a[0],k=a[1],L=e.isReadOnly?{}:{onBlur:function(){return k(!1)},onFocus:function(){return k(!0)},onMouseEnter:function(){return k(!0)},onMouseLeave:function(){return k(!1)}},w=!e.isReadOnly&&(e.onClick||e.onSelect)?{onClick:e.onClick,onKeyDown:(t=["Enter"," "],r=function(t){" "===t.key&&e.onSelect?e.onSelect():e.onClick&&e.onClick()},function(e){(Array.isArray(t)?t:[t]).some(function(t){return e.key===t})&&r(e)}),role:"button",tabIndex:0}:{},h=(0,u.tZ)("div",_objectSpread(_objectSpread(_objectSpread({css:[f,g&&d,e.isSelected&&y,(e.onClick||e.href)&&b,e.isZapAlert&&(n=!!e.isHiddenAlert,(0,c.uq)({mobile:m,tablet:(0,l.iv)("padding:10;background-color:",n?o.w.neutral500:"inherit",";border:1px solid ",n?o.w.neutral500:o.w.neutral400,";;label:ListItem--tablet;")})),";label:ListItem--item;"]},e.href?{}:w),e.href?{}:L),{},{children:e.children}));return e.href?(0,u.tZ)(s.r,_objectSpread(_objectSpread(_objectSpread({css:p,href:e.href,target:e.target},L),w),{},{children:h})):h}ListItem.defaultProps={isReadOnly:!1};var g=ListItem}}]); |