@webority/mobile-ui 0.130.2 → 0.130.3
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/canvas-kit/kit.js +7877 -7827
- package/dist/canvas-kit/manifest.json +24 -4
- package/dist/canvas-kit/release.json +6 -6
- package/lib/commonjs/components/AppBar/AppBar.js +1 -1
- package/lib/commonjs/components/AppIcon/catalog.g.js +1 -1
- package/lib/commonjs/components/AppIcon/glyphs.g.js +1 -1
- package/lib/commonjs/components/AppIcon/variants.g.js +1 -1
- package/lib/commonjs/components/AuthedImage/AuthedImage.js +1 -1
- package/lib/commonjs/components/Composer/Composer.js +1 -1
- package/lib/commonjs/components/IconButton/IconButton.js +1 -1
- package/lib/commonjs/components/Markdown/Markdown.js +1 -1
- package/lib/commonjs/components/MessageBubble/MessageBubble.js +1 -1
- package/lib/commonjs/components/StatTile/StatTile.js +1 -1
- package/lib/module/components/AppBar/AppBar.js +1 -1
- package/lib/module/components/AppIcon/catalog.g.js +1 -1
- package/lib/module/components/AppIcon/glyphs.g.js +1 -1
- package/lib/module/components/AppIcon/variants.g.js +1 -1
- package/lib/module/components/AuthedImage/AuthedImage.js +1 -1
- package/lib/module/components/Composer/Composer.js +1 -1
- package/lib/module/components/IconButton/IconButton.js +1 -1
- package/lib/module/components/Markdown/Markdown.js +1 -1
- package/lib/module/components/MessageBubble/MessageBubble.js +1 -1
- package/lib/module/components/StatTile/StatTile.js +1 -1
- package/lib/typescript/commonjs/components/AppBar/AppBar.d.ts +4 -4
- package/lib/typescript/commonjs/components/AppIcon/catalog.g.d.ts +1 -1
- package/lib/typescript/commonjs/components/AppIcon/glyphs.g.d.ts +1 -0
- package/lib/typescript/commonjs/components/Composer/Composer.d.ts +2 -0
- package/lib/typescript/commonjs/components/IconButton/IconButton.d.ts +5 -1
- package/lib/typescript/commonjs/components/Markdown/Markdown.d.ts +5 -3
- package/lib/typescript/commonjs/components/StatTile/StatTile.d.ts +2 -2
- package/lib/typescript/module/components/AppBar/AppBar.d.ts +4 -4
- package/lib/typescript/module/components/AppIcon/catalog.g.d.ts +1 -1
- package/lib/typescript/module/components/AppIcon/glyphs.g.d.ts +1 -0
- package/lib/typescript/module/components/Composer/Composer.d.ts +2 -0
- package/lib/typescript/module/components/IconButton/IconButton.d.ts +5 -1
- package/lib/typescript/module/components/Markdown/Markdown.d.ts +5 -3
- package/lib/typescript/module/components/StatTile/StatTile.d.ts +2 -2
- package/package.json +7 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.DEFAULT_AUTHED_IMAGE_LABELS=exports.AuthedImage=void 0;var _expoImage=require("expo-image"),_react=require("react"),_reactNative=require("react-native"),_index=require("../../theme/index.js"),_corners=require("../../utils/corners.js"),_warnInvalidValue=require("../../utils/warnInvalidValue.js"),_index2=require("../Spinner/index.js"),_index3=require("../Text/index.js"),_authedImageCache=require("./authedImageCache.js"),_jsxRuntime=require("react/jsx-runtime");const DEFAULT_AUTHED_IMAGE_LABELS=exports.DEFAULT_AUTHED_IMAGE_LABELS=Object.freeze({loading:"Loading image",unavailable:"Image unavailable",unavailableNamed:e=>`${e}, image unavailable`}),CONTENT_FIT={cover:"cover",contain:"contain",stretch:"fill",center:"scale-down",repeat:"cover"},toError=e=>e instanceof Error?e:new Error(String(e)),AuthedImage=e=>{const{uri:t,headers:r,client:a,authenticated:i=!0,ttlMs:s=_authedImageCache.DEFAULT_TTL_MS,placeholder:n,fallback:o,onLoadStart:c,onLoadEnd:l,onError:u,cacheKey:d,testID:_,accessibilityLabel:h,style:m,resizeMode:g,fadeDuration:I,contentFit:b,transition:y,labels:x,cachePolicy:E="memory",...v}=e;(0,_warnInvalidValue.warnInvalidValue)("AuthedImage","resizeMode",g,Object.keys(CONTENT_FIT));const f=(0,_react.useMemo)(()=>({...DEFAULT_AUTHED_IMAGE_LABELS,...x}),[x]),j=(0,_index.useTheme)(),L=(0,_react.useMemo)(()=>buildStyles(j),[j]),[A,p]=(0,_react.useState)({status:"loading"}),C=(0,_react.useRef)({onLoadStart:c,onLoadEnd:l,onError:u});C.current={onLoadStart:c,onLoadEnd:l,onError:u};const T=JSON.stringify(r??{});return(0,_react.useEffect)(()=>{let e=!1,r=null;const finish=t=>{e||(p(t),C.current.onLoadEnd?.())};return(async()=>{if(!t){const t=new Error("[@webority/mobile-ui] AuthedImage was given an empty `uri`. Pass the image URL, or render nothing while the URL is still unknown.");return void(e||(p({status:"error"}),C.current.onError?.(t)))}p({status:"loading"}),C.current.onLoadStart?.();const n=(0,_authedImageCache.deriveCacheKey)(t,d),o=await(0,_authedImageCache.readEntry)(n);if(e)return;if(o&&(0,_authedImageCache.isFresh)(o.meta,s))return(0,_authedImageCache.touchEntry)(n),void finish({status:"ready",fileUri:o.fileUri});const c=(0,_authedImageCache.acquireFetch)(n,{uri:t,headers:JSON.parse(T),authenticated:i,client:a});r={key:n,entry:c};try{const e=await c.promise;finish({status:"ready",fileUri:e.fileUri})}catch(t){if(e)return;if(o&&!(0,_authedImageCache.isPermanentRefusal)(t))return void finish({status:"ready",fileUri:o.fileUri});if(o&&(await(0,_authedImageCache.removeEntry)(n),e))return;p({status:"error"}),C.current.onError?.(toError(t)),C.current.onLoadEnd?.()}})(),()=>{e=!0,r&&(0,_authedImageCache.releaseFetch)(r.key,r.entry)}},[t,d,s,i,a,T]),"loading"===A.status?void 0!==n?(0,_jsxRuntime.jsx)(_reactNative.View,{style:m,testID:_,children:n}):(0,_jsxRuntime.jsx)(_reactNative.View,{style:[L.placeholder,m],testID:_,children:(0,_jsxRuntime.jsx)(_reactNative.View,{style:L.stateFill,testID:_?`${_}-placeholder`:void 0,pointerEvents:"none",children:(0,_jsxRuntime.jsx)(_index2.Spinner,{size:"sm",accessibilityLabel:
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.DEFAULT_AUTHED_IMAGE_LABELS=exports.AuthedImage=void 0;var _expoImage=require("expo-image"),_react=require("react"),_reactNative=require("react-native"),_index=require("../../theme/index.js"),_corners=require("../../utils/corners.js"),_warnInvalidValue=require("../../utils/warnInvalidValue.js"),_index2=require("../Spinner/index.js"),_index3=require("../Text/index.js"),_authedImageCache=require("./authedImageCache.js"),_jsxRuntime=require("react/jsx-runtime");const DEFAULT_AUTHED_IMAGE_LABELS=exports.DEFAULT_AUTHED_IMAGE_LABELS=Object.freeze({loading:"Loading image",unavailable:"Image unavailable",unavailableNamed:e=>`${e}, image unavailable`}),CONTENT_FIT={cover:"cover",contain:"contain",stretch:"fill",center:"scale-down",repeat:"cover"},toError=e=>e instanceof Error?e:new Error(String(e)),AuthedImage=e=>{const{uri:t,headers:r,client:a,authenticated:i=!0,ttlMs:s=_authedImageCache.DEFAULT_TTL_MS,placeholder:n,fallback:o,onLoadStart:c,onLoadEnd:l,onError:u,cacheKey:d,testID:_,accessibilityLabel:h,style:m,resizeMode:g,fadeDuration:I,contentFit:b,transition:y,labels:x,cachePolicy:E="memory",...v}=e;(0,_warnInvalidValue.warnInvalidValue)("AuthedImage","resizeMode",g,Object.keys(CONTENT_FIT));const f=(0,_react.useMemo)(()=>({...DEFAULT_AUTHED_IMAGE_LABELS,...x}),[x]),j=(0,_index.useTheme)(),L=(0,_react.useMemo)(()=>buildStyles(j),[j]),[A,p]=(0,_react.useState)({status:"loading"}),C=(0,_react.useRef)({onLoadStart:c,onLoadEnd:l,onError:u});C.current={onLoadStart:c,onLoadEnd:l,onError:u};const T=JSON.stringify(r??{});return(0,_react.useEffect)(()=>{let e=!1,r=null;const finish=t=>{e||(p(t),C.current.onLoadEnd?.())};return(async()=>{if(!t){const t=new Error("[@webority/mobile-ui] AuthedImage was given an empty `uri`. Pass the image URL, or render nothing while the URL is still unknown.");return void(e||(p({status:"error"}),C.current.onError?.(t)))}p({status:"loading"}),C.current.onLoadStart?.();const n=(0,_authedImageCache.deriveCacheKey)(t,d),o=await(0,_authedImageCache.readEntry)(n);if(e)return;if(o&&(0,_authedImageCache.isFresh)(o.meta,s))return(0,_authedImageCache.touchEntry)(n),void finish({status:"ready",fileUri:o.fileUri});const c=(0,_authedImageCache.acquireFetch)(n,{uri:t,headers:JSON.parse(T),authenticated:i,client:a});r={key:n,entry:c};try{const e=await c.promise;finish({status:"ready",fileUri:e.fileUri})}catch(t){if(e)return;if(o&&!(0,_authedImageCache.isPermanentRefusal)(t))return void finish({status:"ready",fileUri:o.fileUri});if(o&&(await(0,_authedImageCache.removeEntry)(n),e))return;p({status:"error"}),C.current.onError?.(toError(t)),C.current.onLoadEnd?.()}})(),()=>{e=!0,r&&(0,_authedImageCache.releaseFetch)(r.key,r.entry)}},[t,d,s,i,a,T]),"loading"===A.status?void 0!==n?(0,_jsxRuntime.jsx)(_reactNative.View,{style:m,testID:_,children:n}):(0,_jsxRuntime.jsx)(_reactNative.View,{style:[L.placeholder,m],testID:_,children:(0,_jsxRuntime.jsx)(_reactNative.View,{style:L.stateFill,testID:_?`${_}-placeholder`:void 0,pointerEvents:"none",children:(0,_jsxRuntime.jsx)(_index2.Spinner,{size:"sm",accessibilityLabel:f.loading})})}):"error"===A.status?void 0!==o?(0,_jsxRuntime.jsx)(_reactNative.View,{style:m,testID:_,children:o}):(0,_jsxRuntime.jsx)(_reactNative.View,{style:[L.fallback,m],testID:_,children:(0,_jsxRuntime.jsx)(_reactNative.View,{accessible:!0,accessibilityRole:"image",accessibilityLabel:h?f.unavailableNamed(h):f.unavailable,testID:_?`${_}-fallback`:void 0,style:L.stateFill,children:(0,_jsxRuntime.jsx)(_index3.Text,{variant:"title",color:"tertiary",accessible:!1,children:"!"})})}):(0,_jsxRuntime.jsx)(_expoImage.Image,{...v,accessible:!0,accessibilityRole:"image",accessibilityLabel:h,testID:_,style:m,contentFit:b??(g?CONTENT_FIT[g]:void 0),transition:y??I,cachePolicy:E,source:{uri:A.fileUri}})};exports.AuthedImage=AuthedImage,AuthedImage.displayName="AuthedImage";const buildStyles=e=>_reactNative.StyleSheet.create({placeholder:{alignItems:"center",justifyContent:"center",backgroundColor:e.colors["bg-subtle"],borderRadius:e.radius.md,..._corners.smoothCorners},fallback:{alignItems:"center",justifyContent:"center",backgroundColor:e.colors["bg-subtle"],borderRadius:e.radius.md,..._corners.smoothCorners,borderWidth:e.size.border,borderColor:e.colors["border-subtle"],padding:e.space.sm},stateFill:{alignItems:"center",flex:1,justifyContent:"center"}});var _default=exports.default=AuthedImage;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.DEFAULT_COMPOSER_LABELS=exports.Composer=void 0;var _react=require("react"),_reactNative=require("react-native"),_reactNativeKeyboardController=require("react-native-keyboard-controller"),_reactNativeSafeAreaContext=require("react-native-safe-area-context"),_useControllableState=require("../../hooks/useControllableState.js"),_useReducedMotion=require("../../hooks/useReducedMotion.js"),_index=require("../../theme/index.js"),_corners=require("../../utils/corners.js"),_FieldBase=require("../FieldBase/FieldBase.js"),_index2=require("../IconButton/index.js"),_jsxRuntime=require("react/jsx-runtime");const DEFAULT_COMPOSER_LABELS=exports.DEFAULT_COMPOSER_LABELS=Object.freeze({send:"Send",message:"Message"}),MIN_BOX=44,RING_MS=900,RING_WIDTH=1.5,Composer=exports.Composer=(0,_react.forwardRef)(({onSend:e,value:t,onChangeText:a,placeholder:
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.DEFAULT_COMPOSER_LABELS=exports.Composer=void 0;var _react=require("react"),_reactNative=require("react-native"),_reactNativeKeyboardController=require("react-native-keyboard-controller"),_reactNativeSafeAreaContext=require("react-native-safe-area-context"),_useControllableState=require("../../hooks/useControllableState.js"),_useReducedMotion=require("../../hooks/useReducedMotion.js"),_index=require("../../theme/index.js"),_corners=require("../../utils/corners.js"),_FieldBase=require("../FieldBase/FieldBase.js"),_index2=require("../IconButton/index.js"),_jsxRuntime=require("react/jsx-runtime");const DEFAULT_COMPOSER_LABELS=exports.DEFAULT_COMPOSER_LABELS=Object.freeze({send:"Send",message:"Message"}),MIN_BOX=44,RING_MS=900,RING_WIDTH=1.5,Composer=exports.Composer=(0,_react.forwardRef)(({onSend:e,value:t,onChangeText:a,placeholder:i,accessibilityLabel:o,hint:r,labels:s,loading:n=!1,onStop:l,stopLabel:d="Stop",disabled:c=!1,canSend:u,ring:_=!1,sendReveal:b="always",maxLength:p,maxLines:m=5,leading:x,trailing:g,above:v,below:h,keyboardAware:S=!0,keyboardOffset:C,safeArea:f=!0,autoFocus:y,haptic:N,style:R,testID:j},A)=>{const L=(0,_index.useTheme)(),E=(0,_reactNativeSafeAreaContext.useSafeAreaInsets)(),O=(0,_react.useMemo)(()=>buildStyles(L),[L]),M=s?{...DEFAULT_COMPOSER_LABELS,...s}:DEFAULT_COMPOSER_LABELS,[w,D]=(0,_useControllableState.useControllableState)({value:t,defaultValue:"",onChange:a}),T=w.trim(),I=n&&void 0!==l,B=n||c||!(u??""!==T),F=f?E.bottom:0,q=C??F,k=(0,_FieldBase.resolveFieldTextStyle)(L,{disabled:c}),V=L.text.base.size,P=Math.round(V*L.leading.body),z=(44-P)/2,H=P*m+2*z,[U,W]=(0,_react.useState)(void 0),K=(0,_react.useCallback)(e=>{const t=e.nativeEvent.contentSize.height+2*z;W(Math.min(Math.max(t,44),H))},[z,H]),$=(0,_useReducedMotion.useReducedMotion)(),G=(0,_react.useRef)(new _reactNative.Animated.Value(0)).current;(0,_react.useEffect)(()=>{if(!_||$)return void G.setValue(_?1:0);const e=_reactNative.Animated.loop(_reactNative.Animated.sequence([_reactNative.Animated.timing(G,{toValue:1,duration:900,easing:_reactNative.Easing.inOut(_reactNative.Easing.ease),useNativeDriver:!1}),_reactNative.Animated.timing(G,{toValue:0,duration:900,easing:_reactNative.Easing.inOut(_reactNative.Easing.ease),useNativeDriver:!1})]));return e.start(),()=>e.stop()},[_,$,G]);const X=_?{borderWidth:1.5,borderColor:G.interpolate({inputRange:[0,1],outputRange:[L.colors["border-subtle"],L.colors.primary]})}:null,J="always"===b||n||""!==w||!0===u,Q=(0,_react.useCallback)(()=>{I?l?.():B||(D(""),e(T))},[I,l,B,D,e,T]),Y=(0,_jsxRuntime.jsxs)(_reactNative.View,{style:[O.bar,{paddingBottom:L.space.sm+F},R],testID:j,children:[v,(0,_jsxRuntime.jsxs)(_reactNative.View,{style:O.row,children:[x,(0,_jsxRuntime.jsx)(_reactNative.Animated.View,{style:[O.box,c?O.boxDisabled:null,X],testID:j?`${j}-box`:void 0,children:(0,_jsxRuntime.jsx)(_reactNative.TextInput,{ref:A,value:w,onChangeText:D,multiline:!0,maxLength:p,editable:!c,autoFocus:y,placeholder:i??M.message,placeholderTextColor:k.placeholderColor,selectionColor:L.colors["field-caret"],accessibilityLabel:o??i??M.message,accessibilityHint:r,accessibilityState:{disabled:c},"aria-disabled":c,onContentSizeChange:"web"===_reactNative.Platform.OS?K:void 0,style:[O.input,{color:k.color,...k.weightStyle,fontSize:V,lineHeight:P,paddingVertical:z,maxHeight:H,height:"web"===_reactNative.Platform.OS?U:void 0}],testID:j?`${j}-input`:void 0})}),g,J?(0,_jsxRuntime.jsx)(_index2.IconButton,{icon:I?"stop":"send",accessibilityLabel:I?d:M.send,variant:"solid",tone:"primary",disabled:I?c:B,loading:n&&!I,haptic:N,onPress:Q,testID:j?`${j}-send`:void 0}):null]}),h]});return S?(0,_jsxRuntime.jsx)(_reactNativeKeyboardController.KeyboardStickyView,{offset:{closed:0,opened:q},children:Y}):Y});Composer.displayName="Composer";const buildStyles=e=>_reactNative.StyleSheet.create({bar:{gap:e.space.xs,paddingHorizontal:e.space.md,paddingTop:e.space.sm,backgroundColor:e.colors.bg,borderTopWidth:_reactNative.StyleSheet.hairlineWidth,borderTopColor:e.colors["border-subtle"]},row:{flexDirection:"row",alignItems:"flex-end",gap:e.space.sm},box:{flex:1,minHeight:44,justifyContent:"center",backgroundColor:e.colors["field-bg"],borderRadius:e.radius.pill,..._corners.smoothCorners,paddingHorizontal:e.space.md},boxDisabled:{backgroundColor:e.colors["field-bg-disabled"]},input:{margin:e.space.none,paddingHorizontal:e.space.none,includeFontPadding:!1,textAlignVertical:"top"}});var _default=exports.default=Composer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.IconButton=void 0;var _react=require("react"),_reactNative=require("react-native"),_usePressAnimation=require("../../hooks/usePressAnimation.js"),_index=require("../../theme/index.js"),_index2=require("../../utils/index.js"),_color=require("../../utils/color.js"),_corners=require("../../utils/corners.js"),_hitSlop=require("../../utils/hitSlop.js"),_warnInvalidValue=require("../../utils/warnInvalidValue.js"),_slotIcon=require("../AppIcon/slotIcon.js"),_index3=require("../Spinner/index.js"),_jsxRuntime=require("react/jsx-runtime");const GLASS_RIM_WIDTH=1,HIT_SLOP=6,SOFT_FILL_OPACITY=.14,SIZE_MAP={sm:{diameter:32,icon:16},md:{diameter:40,icon:20},lg:{diameter:48,icon:24}},toneFor=(e,
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.IconButton=void 0;var _react=require("react"),_reactNative=require("react-native"),_usePressAnimation=require("../../hooks/usePressAnimation.js"),_index=require("../../theme/index.js"),_index2=require("../../utils/index.js"),_ariaState=require("../../utils/ariaState.js"),_color=require("../../utils/color.js"),_corners=require("../../utils/corners.js"),_hitSlop=require("../../utils/hitSlop.js"),_warnInvalidValue=require("../../utils/warnInvalidValue.js"),_slotIcon=require("../AppIcon/slotIcon.js"),_index3=require("../Spinner/index.js"),_jsxRuntime=require("react/jsx-runtime");const GLASS_RIM_WIDTH=1,HIT_SLOP=6,SOFT_FILL_OPACITY=.14,SIZE_MAP={sm:{diameter:32,icon:16},md:{diameter:40,icon:20},lg:{diameter:48,icon:24}},toneFor=(e,r)=>{switch(r){case"success":return{base:e.colors.success,outline:e.colors.success,on:e.colors["on-success"],fg:e.colors["success-text"]};case"warning":return{base:e.colors.warning,outline:e.colors.warning,on:e.colors["on-warning"],fg:e.colors["warning-text"]};case"danger":return{base:e.colors.danger,outline:e.colors.danger,on:e.colors["on-danger"],fg:e.colors["danger-text"]};case"info":return{base:e.colors.info,outline:e.colors.info,on:e.colors["on-info"],fg:e.colors["info-text"]};case"neutral":return{base:e.colors["bg-muted"],outline:e.colors.border,on:e.colors["text-body"],fg:e.colors["text-body"]};default:return{base:e.colors.primary,outline:e.colors.primary,on:e.colors["on-primary"],fg:e.colors.primary}}},IconButton=exports.IconButton=(0,_react.forwardRef)((e,r)=>{const{icon:o,iconVariant:s,onPress:t,accessibilityLabel:n,accessibilityHint:i,accessibilityState:a,tone:l="primary",variant:c="solid",size:d="md",shape:u="circle",active:b=!1,disabled:_=!1,loading:I=!1,haptic:m,style:g,testID:p}=e;(0,_warnInvalidValue.warnInvalidValue)("IconButton","tone",e.tone,["primary","success","warning","danger","info","neutral"]),(0,_warnInvalidValue.warnInvalidValue)("IconButton","variant",e.variant,["solid","soft","outline","ghost","glass"]),(0,_warnInvalidValue.warnInvalidValue)("IconButton","size",e.size,["sm","md","lg"]),(0,_warnInvalidValue.warnInvalidValue)("IconButton","shape",e.shape,["circle","rounded"]),(0,_warnInvalidValue.warnInvalidValue)("IconButton","iconVariant",e.iconVariant,["linear","bold","broken","bulk","outline","twotone"]);const x=(0,_index.useTheme)(),f=SIZE_MAP[d],y=_||I,{style:v,pressIn:w,pressOut:h}=(0,_usePressAnimation.usePressAnimation)({scaleTo:.92,enabled:!y}),{base:S,outline:j,on:V,fg:P}=toneFor(x,l),q=b?"solid":c,B=b||!0===a?.selected,A={...a,disabled:y,selected:B};let R="transparent",O="transparent",z=0,C=y?x.colors["text-disabled"]:P;"solid"===q?(R=y?x.colors["surface-disabled"]:S,C=y?x.colors["text-disabled"]:V):"soft"===q?R=y?x.colors["surface-disabled"]:(0,_color.tintOf)(S,.14,x.colors["bg-subtle"]):"outline"===q?(O=y?x.colors.border:j,z=x.size.border):"glass"===q&&(R=x.colors["glass-fill"],O=x.colors["glass-border"],z=1,C=y?x.colors["text-disabled"]:x.colors["on-glass"]);const H={color:C,size:f.icon,disabled:y},L="circle"===u?f.diameter/2:x.radius.md;return(0,_jsxRuntime.jsx)(_reactNative.Pressable,{ref:r,onPress:e=>{if(y)return;const r=(0,_index2.resolveHaptic)(m,"selection");r&&(0,_index2.triggerHaptic)(r),t?.(e)},onPressIn:w,onPressOut:h,disabled:y,accessibilityRole:"button",accessibilityLabel:n,accessibilityHint:i,accessibilityState:A,...(0,_ariaState.ariaFromState)(A),"aria-disabled":y,"aria-selected":B,hitSlop:6,...(0,_hitSlop.hitSlopMarker)(6),testID:p,style:({pressed:e})=>[styles.base,{width:f.diameter,height:f.diameter,borderRadius:L,..._corners.smoothCorners,backgroundColor:R,borderColor:O,borderWidth:z,opacity:e&&"solid"!==q?.7:1},g],children:(0,_jsxRuntime.jsx)(_reactNative.Animated.View,{style:[styles.content,v],children:I?(0,_jsxRuntime.jsx)(_index3.Spinner,{size:"sm",color:C}):(0,_slotIcon.renderSlotIcon)(o,H,s)})})});IconButton.displayName="IconButton";const styles=_reactNative.StyleSheet.create({base:{alignItems:"center",justifyContent:"center"},content:{alignItems:"center",justifyContent:"center"}});var _default=exports.default=IconButton;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Markdown=Markdown;var _markdownCore=require("@webority/markdown-core"),_react=require("react"),_reactNative=require("react-native"),_index=require("../../theme/index.js"),_corners=require("../../utils/corners.js"),_index2=require("../Skeleton/index.js"),_index3=require("../Text/index.js"),_jsxRuntime=require("react/jsx-runtime");const MONO=_reactNative.Platform.select({ios:"Menlo",android:"monospace",default:"monospace"}),HEADING_SCALE={1:"3xl",2:"2xl",3:"xl",4:"lg",5:"base",6:"sm"},createStyles=e=>_reactNative.StyleSheet.create({block:{marginBottom:e.space.sm},listRow:{flexDirection:"row",marginBottom:e.space.xs},marker:{width:e.space.lg},listText:{flex:1},quote:{borderLeftWidth:3,borderLeftColor:e.colors["border-subtle"],paddingLeft:e.space.sm,marginBottom:e.space.sm},quoteText:{color:e.colors["text-muted"],fontStyle:"italic"},code:{backgroundColor:e.colors["bg-subtle"],borderRadius:e.radius.sm,..._corners.smoothCorners,padding:e.space.sm,marginBottom:e.space.sm},codeText:{fontFamily:MONO},inlineCode:{fontFamily:MONO,backgroundColor:e.colors["bg-subtle"],color:e.colors["text-body"]},link:{color:e.colors.link,textDecorationLine:"underline"},citation:{color:e.colors.primary,fontWeight:e.weight.semibold},strong:{fontWeight:e.weight.bold},em:{fontStyle:"italic"},strike:{textDecorationLine:"line-through"},table:{borderWidth:_reactNative.StyleSheet.hairlineWidth,borderColor:e.colors.border},row:{flexDirection:"row"},headerRow:{backgroundColor:e.colors["bg-subtle"]},cell:{minWidth:96,maxWidth:220,padding:e.space.xs,borderRightWidth:_reactNative.StyleSheet.hairlineWidth,borderBottomWidth:_reactNative.StyleSheet.hairlineWidth,borderColor:e.colors.border},rule:{height:_reactNative.StyleSheet.hairlineWidth,backgroundColor:e.colors.border,marginVertical:e.space.md}}),withPositionKeys=e=>e.map((e,t)=>({key:t,value:e})),openHref=(e,t)=>{t?t(e):_reactNative.Linking.openURL(e).catch(()=>{})};function Inline({tokens:e,ctx:t}){const{styles:i}=t;return(0,_jsxRuntime.jsx)(_jsxRuntime.Fragment,{children:e.map(e=>{switch(e.type){case"text":return(0,_jsxRuntime.jsx)(_reactNative.Text,{children:e.text},e.key);case"code":return(0,_jsxRuntime.jsx)(_reactNative.Text,{style:i.inlineCode,children:e.text},e.key);case"strong":return(0,_jsxRuntime.jsx)(_reactNative.Text,{style:i.strong,children:(0,_jsxRuntime.jsx)(Inline,{tokens:e.children,ctx:t})},e.key);case"em":return(0,_jsxRuntime.jsx)(_reactNative.Text,{style:i.em,children:(0,_jsxRuntime.jsx)(Inline,{tokens:e.children,ctx:t})},e.key);case"strike":return(0,_jsxRuntime.jsx)(_reactNative.Text,{style:i.strike,children:(0,_jsxRuntime.jsx)(Inline,{tokens:e.children,ctx:t})},e.key);case"image":return(0,_jsxRuntime.jsxs)(_reactNative.Text,{children:["[",(0,_jsxRuntime.jsx)(Inline,{tokens:e.children,ctx:t}),"]"]},e.key);case"link":return renderLink(e.key,e.href,e.children,t);case"citation":return(0,_jsxRuntime.jsx)(_reactNative.Text,{style:i.citation,accessibilityRole:t.onOpenCitation?"button":void 0,accessibilityLabel:e.text,onPress:t.onOpenCitation?()=>t.onOpenCitation?.(e.text):void 0,children:e.text},e.key);default:return null}})})}function renderLink(e,t,i,n){const{styles:s,links:r,resolveLink:o,onAppLinkPress:a,onLinkPress:l,onPageLinkPress:c}=n,x=(0,_jsxRuntime.jsx)(Inline,{tokens:i,ctx:n}),d=(0,_markdownCore.linkTarget)(t,r,o);return null===d?(0,_jsxRuntime.jsx)(_reactNative.Text,{children:x},e):"page"===d.kind?c?(0,_jsxRuntime.jsx)(_reactNative.Text,{accessibilityRole:"link",style:s.link,onPress:()=>c(d.href),children:x},e):(0,_jsxRuntime.jsx)(_reactNative.Text,{children:x},e):"app"===d.kind?a?(0,_jsxRuntime.jsx)(_reactNative.Text,{accessibilityRole:"link",style:s.link,onPress:()=>a(d.target),children:x},e):(0,_jsxRuntime.jsx)(_reactNative.Text,{children:x},e):(0,_jsxRuntime.jsx)(_reactNative.Text,{accessibilityRole:"link",style:s.link,onPress:()=>openHref(d.href,l),children:x},e)}function RenderBlock({block:e,ctx:t}){const{theme:i,styles:n,textStyle:s,headings:r}=t;switch(e.type){case"heading":return(0,_jsxRuntime.jsx)(_index3.Text,{variant:"body",weight:"outline"===r?"semibold":"bold",size:"outline"===r?HEADING_SCALE[e.level]:void 0,accessibilityRole:"header",style:[n.block,s],children:(0,_jsxRuntime.jsx)(Inline,{tokens:(0,_markdownCore.parseInline)(e.text,{isCitation:t.isCitation}),ctx:t})});case"paragraph":return(0,_jsxRuntime.jsx)(_index3.Text,{variant:"body",style:[n.block,s],children:(0,_jsxRuntime.jsx)(Inline,{tokens:(0,_markdownCore.parseInline)(e.lines.join("\n"),{isCitation:t.isCitation}),ctx:t})});case"list":return(0,_jsxRuntime.jsx)(_reactNative.View,{children:withPositionKeys(e.items).map(({key:e,value:r})=>(0,_jsxRuntime.jsxs)(_reactNative.View,{style:[n.listRow,{marginLeft:r.depth*i.space.md}],children:[(0,_jsxRuntime.jsx)(_index3.Text,{variant:"body",style:[n.marker,s],children:r.ordered?`${r.number}.`:"•"}),(0,_jsxRuntime.jsx)(_index3.Text,{variant:"body",style:[n.listText,s],children:(0,_jsxRuntime.jsx)(Inline,{tokens:(0,_markdownCore.parseInline)(r.text,{isCitation:t.isCitation}),ctx:t})})]},e))});case"table":return(0,_jsxRuntime.jsx)(_reactNative.ScrollView,{horizontal:!0,showsHorizontalScrollIndicator:!1,style:n.block,children:(0,_jsxRuntime.jsx)(_reactNative.View,{style:n.table,children:withPositionKeys([e.header,...e.rows]).map(({key:i,value:r})=>(0,_jsxRuntime.jsx)(_reactNative.View,{style:[n.row,0===i&&n.headerRow],children:withPositionKeys(e.header).map(({key:e})=>(0,_jsxRuntime.jsx)(_reactNative.View,{style:n.cell,children:(0,_jsxRuntime.jsx)(_index3.Text,{variant:"bodySmall",weight:0===i?"semibold":void 0,style:s,children:(0,_jsxRuntime.jsx)(Inline,{tokens:(0,_markdownCore.parseInline)(r[e]??"",{isCitation:t.isCitation}),ctx:t})})},e))},i))})});case"code":return(0,_jsxRuntime.jsx)(_reactNative.ScrollView,{horizontal:!0,style:n.code,children:(0,_jsxRuntime.jsx)(_index3.Text,{variant:"body",size:"sm",selectable:!0,style:n.codeText,children:e.text})});case"quote":return(0,_jsxRuntime.jsx)(_reactNative.View,{style:n.quote,children:(0,_jsxRuntime.jsx)(_index3.Text,{variant:"body",style:[n.quoteText,s],children:(0,_jsxRuntime.jsx)(Inline,{tokens:(0,_markdownCore.parseInline)(e.lines.join("\n"),{isCitation:t.isCitation}),ctx:t})})});case"rule":return(0,_jsxRuntime.jsx)(_reactNative.View,{style:n.rule});default:return null}}const MarkdownSkeleton=({style:e,testID:t})=>{const i=(0,_index.useTheme)();return(0,_jsxRuntime.jsxs)(_reactNative.View,{style:e,testID:t,children:[(0,_jsxRuntime.jsx)(_index2.Skeleton,{shape:"text",width:"70%",height:20,style:{marginBottom:i.space.sm}}),(0,_jsxRuntime.jsx)(_index2.Skeleton,{shape:"text",width:"100%",height:14,style:{marginBottom:i.space.xs}}),(0,_jsxRuntime.jsx)(_index2.Skeleton,{shape:"text",width:"92%",height:14,style:{marginBottom:i.space.xs}}),(0,_jsxRuntime.jsx)(_index2.Skeleton,{shape:"text",width:"60%",height:14})]})};function Markdown({children:e,links:t="web",headings:i="outline",
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Markdown=Markdown;var _markdownCore=require("@webority/markdown-core"),_react=require("react"),_reactNative=require("react-native"),_index=require("../../theme/index.js"),_corners=require("../../utils/corners.js"),_index2=require("../Skeleton/index.js"),_index3=require("../Text/index.js"),_jsxRuntime=require("react/jsx-runtime");const MONO=_reactNative.Platform.select({ios:"Menlo",android:"monospace",default:"monospace"}),HEADING_SCALE={1:"3xl",2:"2xl",3:"xl",4:"lg",5:"base",6:"sm"},createStyles=e=>_reactNative.StyleSheet.create({block:{marginBottom:e.space.sm},listRow:{flexDirection:"row",marginBottom:e.space.xs},marker:{width:e.space.lg},listText:{flex:1},quote:{borderLeftWidth:3,borderLeftColor:e.colors["border-subtle"],paddingLeft:e.space.sm,marginBottom:e.space.sm},quoteText:{color:e.colors["text-muted"],fontStyle:"italic"},code:{backgroundColor:e.colors["bg-subtle"],borderRadius:e.radius.sm,..._corners.smoothCorners,padding:e.space.sm,marginBottom:e.space.sm},codeText:{fontFamily:MONO},inlineCode:{fontFamily:MONO,backgroundColor:e.colors["bg-subtle"],color:e.colors["text-body"]},link:{color:e.colors.link,textDecorationLine:"underline"},citation:{color:e.colors.primary,fontWeight:e.weight.semibold},strong:{fontWeight:e.weight.bold},em:{fontStyle:"italic"},strike:{textDecorationLine:"line-through"},table:{borderWidth:_reactNative.StyleSheet.hairlineWidth,borderColor:e.colors.border},row:{flexDirection:"row"},headerRow:{backgroundColor:e.colors["bg-subtle"]},cell:{minWidth:96,maxWidth:220,padding:e.space.xs,borderRightWidth:_reactNative.StyleSheet.hairlineWidth,borderBottomWidth:_reactNative.StyleSheet.hairlineWidth,borderColor:e.colors.border},rule:{height:_reactNative.StyleSheet.hairlineWidth,backgroundColor:e.colors.border,marginVertical:e.space.md}}),withPositionKeys=e=>e.map((e,t)=>({key:t,value:e})),openHref=(e,t)=>{t?t(e):_reactNative.Linking.openURL(e).catch(()=>{})};function Inline({tokens:e,ctx:t}){const{styles:i}=t;return(0,_jsxRuntime.jsx)(_jsxRuntime.Fragment,{children:e.map(e=>{switch(e.type){case"text":return t.figureText?(0,_jsxRuntime.jsx)(_reactNative.Text,{children:t.figureText(e.text).map((e,i)=>renderFigureRun(e,i,t.theme))},e.key):(0,_jsxRuntime.jsx)(_reactNative.Text,{children:e.text},e.key);case"code":return(0,_jsxRuntime.jsx)(_reactNative.Text,{style:i.inlineCode,children:e.text},e.key);case"strong":return(0,_jsxRuntime.jsx)(_reactNative.Text,{style:i.strong,children:(0,_jsxRuntime.jsx)(Inline,{tokens:e.children,ctx:t})},e.key);case"em":return(0,_jsxRuntime.jsx)(_reactNative.Text,{style:i.em,children:(0,_jsxRuntime.jsx)(Inline,{tokens:e.children,ctx:t})},e.key);case"strike":return(0,_jsxRuntime.jsx)(_reactNative.Text,{style:i.strike,children:(0,_jsxRuntime.jsx)(Inline,{tokens:e.children,ctx:t})},e.key);case"image":return(0,_jsxRuntime.jsxs)(_reactNative.Text,{children:["[",(0,_jsxRuntime.jsx)(Inline,{tokens:e.children,ctx:t}),"]"]},e.key);case"link":return renderLink(e.key,e.href,e.children,t);case"citation":return(0,_jsxRuntime.jsx)(_reactNative.Text,{style:i.citation,accessibilityRole:t.onOpenCitation?"button":void 0,accessibilityLabel:e.text,onPress:t.onOpenCitation?()=>t.onOpenCitation?.(e.text):void 0,children:e.text},e.key);default:return null}})})}function renderLink(e,t,i,n){const{styles:s,links:r,resolveLink:o,onAppLinkPress:a,onLinkPress:l,onPageLinkPress:c}=n,x=(0,_jsxRuntime.jsx)(Inline,{tokens:i,ctx:n}),d=(0,_markdownCore.linkTarget)(t,r,o);return null===d?(0,_jsxRuntime.jsx)(_reactNative.Text,{children:x},e):"page"===d.kind?c?(0,_jsxRuntime.jsx)(_reactNative.Text,{accessibilityRole:"link",style:s.link,onPress:()=>c(d.href),children:x},e):(0,_jsxRuntime.jsx)(_reactNative.Text,{children:x},e):"app"===d.kind?a?(0,_jsxRuntime.jsx)(_reactNative.Text,{accessibilityRole:"link",style:s.link,onPress:()=>a(d.target),children:x},e):(0,_jsxRuntime.jsx)(_reactNative.Text,{children:x},e):(0,_jsxRuntime.jsx)(_reactNative.Text,{accessibilityRole:"link",style:s.link,onPress:()=>openHref(d.href,l),children:x},e)}function renderFigureRun(e,t,i){if("text"===e.kind)return e.text;const n=i.text.base.size,s="sub"===e.kind?Math.round(.4*n):-Math.round(.45*n),r=Math.round(.75*n);return(0,_jsxRuntime.jsx)(_reactNative.View,{style:{transform:[{translateY:s}]},children:(0,_jsxRuntime.jsx)(_reactNative.Text,{style:{fontSize:r,lineHeight:r,includeFontPadding:!1,color:i.colors["text-body"]},children:e.text})},t)}function RenderBlock({block:e,ctx:t}){const{theme:i,styles:n,textStyle:s,headings:r}=t;switch(e.type){case"heading":return(0,_jsxRuntime.jsx)(_index3.Text,{variant:"body",weight:"outline"===r?"semibold":"bold",size:"outline"===r?HEADING_SCALE[e.level]:void 0,accessibilityRole:"header",style:[n.block,s],children:(0,_jsxRuntime.jsx)(Inline,{tokens:(0,_markdownCore.parseInline)(e.text,{isCitation:t.isCitation}),ctx:t})});case"paragraph":return(0,_jsxRuntime.jsx)(_index3.Text,{variant:"body",style:[n.block,s],children:(0,_jsxRuntime.jsx)(Inline,{tokens:(0,_markdownCore.parseInline)(e.lines.join("\n"),{isCitation:t.isCitation}),ctx:t})});case"list":return(0,_jsxRuntime.jsx)(_reactNative.View,{children:withPositionKeys(e.items).map(({key:e,value:r})=>(0,_jsxRuntime.jsxs)(_reactNative.View,{style:[n.listRow,{marginLeft:r.depth*i.space.md}],children:[(0,_jsxRuntime.jsx)(_index3.Text,{variant:"body",style:[n.marker,s],children:r.ordered?`${r.number}.`:"•"}),(0,_jsxRuntime.jsx)(_index3.Text,{variant:"body",style:[n.listText,s],children:(0,_jsxRuntime.jsx)(Inline,{tokens:(0,_markdownCore.parseInline)(r.text,{isCitation:t.isCitation}),ctx:t})})]},e))});case"table":return(0,_jsxRuntime.jsx)(_reactNative.ScrollView,{horizontal:!0,showsHorizontalScrollIndicator:!1,style:n.block,children:(0,_jsxRuntime.jsx)(_reactNative.View,{style:n.table,children:withPositionKeys([e.header,...e.rows]).map(({key:i,value:r})=>(0,_jsxRuntime.jsx)(_reactNative.View,{style:[n.row,0===i&&n.headerRow],children:withPositionKeys(e.header).map(({key:e})=>(0,_jsxRuntime.jsx)(_reactNative.View,{style:n.cell,children:(0,_jsxRuntime.jsx)(_index3.Text,{variant:"bodySmall",weight:0===i?"semibold":void 0,style:s,children:(0,_jsxRuntime.jsx)(Inline,{tokens:(0,_markdownCore.parseInline)(r[e]??"",{isCitation:t.isCitation}),ctx:t})})},e))},i))})});case"code":return(0,_jsxRuntime.jsx)(_reactNative.ScrollView,{horizontal:!0,style:n.code,children:(0,_jsxRuntime.jsx)(_index3.Text,{variant:"body",size:"sm",selectable:!0,style:n.codeText,children:e.text})});case"quote":return(0,_jsxRuntime.jsx)(_reactNative.View,{style:n.quote,children:(0,_jsxRuntime.jsx)(_index3.Text,{variant:"body",style:[n.quoteText,s],children:(0,_jsxRuntime.jsx)(Inline,{tokens:(0,_markdownCore.parseInline)(e.lines.join("\n"),{isCitation:t.isCitation}),ctx:t})})});case"rule":return(0,_jsxRuntime.jsx)(_reactNative.View,{style:n.rule});default:return null}}const MarkdownSkeleton=({style:e,testID:t})=>{const i=(0,_index.useTheme)();return(0,_jsxRuntime.jsxs)(_reactNative.View,{style:e,testID:t,children:[(0,_jsxRuntime.jsx)(_index2.Skeleton,{shape:"text",width:"70%",height:20,style:{marginBottom:i.space.sm}}),(0,_jsxRuntime.jsx)(_index2.Skeleton,{shape:"text",width:"100%",height:14,style:{marginBottom:i.space.xs}}),(0,_jsxRuntime.jsx)(_index2.Skeleton,{shape:"text",width:"92%",height:14,style:{marginBottom:i.space.xs}}),(0,_jsxRuntime.jsx)(_index2.Skeleton,{shape:"text",width:"60%",height:14})]})};function Markdown({children:e,links:t="web",headings:i="outline",figureText:n,resolveLink:s,isCitation:r,onOpenCitation:o,onAppLinkPress:a,onLinkPress:l,onPageLinkPress:c,loading:x=!1,style:d,textStyle:u,testID:m}){const h=(0,_index.useTheme)(),_=(0,_react.useMemo)(()=>createStyles(h),[h]),j=(0,_react.useMemo)(()=>(0,_markdownCore.parseMarkdown)(e??""),[e]);if(x)return(0,_jsxRuntime.jsx)(MarkdownSkeleton,{style:d,testID:m});if(0===j.length)return null;const k={theme:h,styles:_,links:t,headings:i,textStyle:u,figureText:n,resolveLink:s,isCitation:r,onOpenCitation:o,onAppLinkPress:a,onLinkPress:l,onPageLinkPress:c};return(0,_jsxRuntime.jsx)(_reactNative.View,{style:d,testID:m,children:j.map(e=>(0,_jsxRuntime.jsx)(RenderBlock,{block:e,ctx:k},e.key))})}Markdown.displayName="Markdown";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.MessageBubble=exports.DEFAULT_MESSAGE_BUBBLE_LABELS=void 0;var _markdownCore=require("@webority/markdown-core"),_mobileCore=require("@webority/mobile-core"),_react=require("react"),_reactNative=require("react-native"),_index=require("../../theme/index.js"),_announce=require("../../utils/announce.js"),_corners=require("../../utils/corners.js"),_warnInvalidValue=require("../../utils/warnInvalidValue.js"),_index2=require("../AppIcon/index.js"),_index3=require("../Button/index.js"),_index4=require("../Markdown/index.js"),_useContextMenu=require("../Menu/useContextMenu.js"),_index5=require("../Text/index.js"),_jsxRuntime=require("react/jsx-runtime");const DEFAULT_MESSAGE_BUBBLE_LABELS=exports.DEFAULT_MESSAGE_BUBBLE_LABELS=Object.freeze({you:"You",sending:"Sending",sent:"Sent",delivered:"Delivered",read:"Read",failed:"Not sent",retry:"Try again",copy:"Copy",replyTo:e=>e?`Reply to ${e}`:"Reply"}),MAX_WIDTH="85%",STATUS_ICON=14,statusIcon=e=>{switch(e){case"sending":return"clock";case"sent":return"check";case"failed":return"alert-circle";default:return"check-check"}},statusColour=(e,t)=>{switch(t){case"read":return e.colors["info-text"];case"failed":return e.colors["danger-text"];default:return e.colors["text-subtle"]}},MessageBubble=({side:e,text:t,children:s,markdown:r,groupPosition:n="single",author:i,time:a,status:o,replyTo:l,streaming:u=!1,error:c,onRetry:d,actions:x,onCopy:b,onLongPress:m,footer:_,labels:p,haptic:y,style:h,testID:g})=>{(0,_warnInvalidValue.warnInvalidValue)("MessageBubble","side",e,["mine","theirs"]),(0,_warnInvalidValue.warnInvalidValue)("MessageBubble","groupPosition",n,["single","first","middle","last"]),(0,_warnInvalidValue.warnInvalidValue)("MessageBubble","status",o,["sending","sent","delivered","read","failed"]);const f=(0,_index.useTheme)(),j=(0,_react.useMemo)(()=>buildStyles(f),[f]),v=p?{...DEFAULT_MESSAGE_BUBBLE_LABELS,...p}:DEFAULT_MESSAGE_BUBBLE_LABELS,B="mine"===e,L=!c&&(r??"theirs"===e),T="single"===n||"first"===n,R="single"===n||"last"===n,E=null==a?"":(0,_mobileCore.formatTime)(a),M=("failed"===o||Boolean(c))&&Boolean(d),S=B?v.you:i??"",w=(0,_react.useMemo)(()=>{const e=[];return b&&!x?.some(e=>"copy"===e.name)&&e.push({name:"copy",label:v.copy,onPress:()=>b(t)}),x&&e.push(...x),l?.onPress&&e.push({name:"openReply",label:v.replyTo(l.author),onPress:l.onPress}),M&&d&&e.push({name:"retry",label:v.retry,onPress:d}),e},[x,b,t,l,M,d,v]),A=(x?.length??0)>0||Boolean(b),I=(0,_react.useMemo)(()=>A?{items:w.map(({name:e,label:t,onPress:s})=>({key:e,label:t,onPress:s}))}:void 0,[A,w]),P=(0,_useContextMenu.useContextMenu)(I,{haptic:y,testID:g}),C=P.hostProps.onLongPress,k=!s||(x?.length??0)>0,q=o&&B?v[o]:"",D=(0,_react.useMemo)(()=>L&&null==s?(0,_markdownCore.markdownToPlainText)(t):t,[L,s,t]),V=[S,E,D,l?`${v.replyTo(l.author)}: ${l.text}`:"",q].filter(Boolean).join(", "),$=(0,_react.useRef)(u);(0,_react.useEffect)(()=>{$.current&&!u&&!c&&t&&(0,_announce.announce)(S?`${S}, ${D}`:D),$.current=u},[u,c,t,D,S]);const U=(0,_react.useRef)(c);(0,_react.useEffect)(()=>{c&&c!==U.current&&(0,_announce.announce)(c,{polite:!1}),U.current=c},[c]);const N=(0,_react.useCallback)(e=>{C?.(e),m?.()},[C,m]),F=(0,_react.useCallback)(e=>{w.find(t=>t.name===e.nativeEvent.actionName)?.onPress()},[w]),z=f.radius.xl,H=f.radius.sm,O=B?{borderTopRightRadius:T?z:H,borderBottomRightRadius:R?z:H}:{borderTopLeftRadius:T?z:H,borderBottomLeftRadius:R?z:H},G=s??(L?(0,_jsxRuntime.jsx)(_index4.Markdown,{children:t}):(0,_jsxRuntime.jsx)(_index5.Text,{variant:"body",children:t})),W=l?(0,_jsxRuntime.jsxs)(_reactNative.Pressable,{onPress:l.onPress,disabled:!l.onPress,accessibilityRole:l.onPress?"button":void 0,accessibilityLabel:`${v.replyTo(l.author)}: ${l.text}`,style:j.quote,children:[l.author?(0,_jsxRuntime.jsx)(_index5.Text,{variant:"caption",weight:"semibold",color:"link",numberOfLines:1,children:l.author}):null,(0,_jsxRuntime.jsx)(_index5.Text,{variant:"bodySmall",color:"secondary",numberOfLines:2,children:l.text})]}):null,X=[j.bubble,B?j.mine:j.theirs,O],Y=k?{accessible:!0,accessibilityLabel:V,accessibilityState:{busy:u},"aria-busy":u,accessibilityActions:w.map(({name:e,label:t})=>({name:e,label:t})),onAccessibilityAction:F}:{accessible:!1},J=A?(0,_jsxRuntime.jsxs)(_reactNative.Pressable,{ref:P.hostRef,...P.hostProps,onLongPress:N,delayLongPress:350,style:X,testID:g?`${g}-bubble`:void 0,...Y,children:[W,G]}):(0,_jsxRuntime.jsxs)(_reactNative.View,{style:X,testID:g?`${g}-bubble`:void 0,...Y,children:[W,G]}),K=R&&(""!==E||B&&o);return(0,_jsxRuntime.jsxs)(_reactNative.View,{style:[j.root,B?j.rootMine:j.rootTheirs,{marginTop:T?f.space.sm:f.space.xxs},h],testID:g,children:[!B&&T&&i?(0,_jsxRuntime.jsx)(_index5.Text,{variant:"caption",color:"secondary",style:j.author,numberOfLines:1,importantForAccessibility:k?"no-hide-descendants":"auto",accessibilityElementsHidden:k,children:i}):null,J,P.renderSurface(),K?(0,_jsxRuntime.jsxs)(_reactNative.View,{style:[j.meta,B?j.metaMine:null],importantForAccessibility:k?"no-hide-descendants":"auto",accessibilityElementsHidden:k,children:[E?(0,_jsxRuntime.jsx)(_index5.Text,{variant:"caption",color:"tertiary",children:E}):null,B&&o?(0,_jsxRuntime.jsx)(_index2.AppIcon,{name:statusIcon(o),size:14,color:statusColour(f,o),accessibilityLabel:v[o],testID:g?`${g}-status-${o}`:void 0}):null]}):null,c?(0,_jsxRuntime.jsx)(_index5.Text,{variant:"bodySmall",color:"danger",style:B?j.endText:null,children:c}):null,M?(0,_jsxRuntime.jsx)(_index3.Button,{label:v.retry,variant:"link",size:"sm",leftIcon:"refresh-cw",onPress:d,testID:g?`${g}-retry`:void 0}):null,_]})};exports.MessageBubble=MessageBubble;const buildStyles=e=>_reactNative.StyleSheet.create({root:{maxWidth:"85%",gap:e.space.xs},rootMine:{alignSelf:"flex-end",alignItems:"flex-end"},rootTheirs:{alignSelf:"flex-start",alignItems:"flex-start"},author:{paddingHorizontal:e.space.md},bubble:{borderRadius:e.radius.xl,..._corners.smoothCorners,paddingHorizontal:e.space.md,paddingVertical:e.space.sm,gap:e.space.xs},mine:{backgroundColor:e.colors["primary-soft"]},theirs:{backgroundColor:e.colors["bg-subtle"]},quote:{borderLeftWidth:3,borderLeftColor:e.colors.primary,paddingLeft:e.space.sm,paddingVertical:e.space.xs},meta:{flexDirection:"row",alignItems:"center",gap:e.space.xs,paddingHorizontal:e.space.xs},metaMine:{justifyContent:"flex-end"},endText:{textAlign:"right"}});var _default=exports.default=MessageBubble;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.MessageBubble=exports.DEFAULT_MESSAGE_BUBBLE_LABELS=void 0;var _markdownCore=require("@webority/markdown-core"),_mobileCore=require("@webority/mobile-core"),_react=require("react"),_reactNative=require("react-native"),_index=require("../../theme/index.js"),_announce=require("../../utils/announce.js"),_corners=require("../../utils/corners.js"),_warnInvalidValue=require("../../utils/warnInvalidValue.js"),_index2=require("../AppIcon/index.js"),_index3=require("../Button/index.js"),_index4=require("../Markdown/index.js"),_useContextMenu=require("../Menu/useContextMenu.js"),_index5=require("../Text/index.js"),_jsxRuntime=require("react/jsx-runtime");const DEFAULT_MESSAGE_BUBBLE_LABELS=exports.DEFAULT_MESSAGE_BUBBLE_LABELS=Object.freeze({you:"You",sending:"Sending",sent:"Sent",delivered:"Delivered",read:"Read",failed:"Not sent",retry:"Try again",copy:"Copy",replyTo:e=>e?`Reply to ${e}`:"Reply"}),MAX_WIDTH="85%",STATUS_ICON=14,statusIcon=e=>{switch(e){case"sending":return"clock";case"sent":return"check";case"failed":return"alert-circle";default:return"check-check"}},statusColour=(e,t)=>{switch(t){case"read":return e.colors["info-text"];case"failed":return e.colors["danger-text"];default:return e.colors["text-subtle"]}},MessageBubble=({side:e,text:t,children:s,markdown:r,groupPosition:n="single",author:i,time:a,status:o,replyTo:l,streaming:u=!1,error:c,onRetry:d,actions:x,onCopy:b,onLongPress:m,footer:_,labels:p,haptic:y,style:h,testID:g})=>{(0,_warnInvalidValue.warnInvalidValue)("MessageBubble","side",e,["mine","theirs"]),(0,_warnInvalidValue.warnInvalidValue)("MessageBubble","groupPosition",n,["single","first","middle","last"]),(0,_warnInvalidValue.warnInvalidValue)("MessageBubble","status",o,["sending","sent","delivered","read","failed"]);const f=(0,_index.useTheme)(),j=(0,_react.useMemo)(()=>buildStyles(f),[f]),v=p?{...DEFAULT_MESSAGE_BUBBLE_LABELS,...p}:DEFAULT_MESSAGE_BUBBLE_LABELS,B="mine"===e,L=!c&&(r??"theirs"===e),T="single"===n||"first"===n,R="single"===n||"last"===n,E=null==a?"":(0,_mobileCore.formatTime)(a),M=("failed"===o||Boolean(c))&&Boolean(d),S=B?v.you:i??"",w=(0,_react.useMemo)(()=>{const e=[];return b&&!x?.some(e=>"copy"===e.name)&&e.push({name:"copy",label:v.copy,onPress:()=>b(t)}),x&&e.push(...x),l?.onPress&&e.push({name:"openReply",label:v.replyTo(l.author),onPress:l.onPress}),M&&d&&e.push({name:"retry",label:v.retry,onPress:d}),e},[x,b,t,l,M,d,v]),A=(x?.length??0)>0||Boolean(b),I=(0,_react.useMemo)(()=>A?{items:w.map(({name:e,label:t,onPress:s})=>({key:e,label:t,onPress:s}))}:void 0,[A,w]),P=(0,_useContextMenu.useContextMenu)(I,{haptic:y,testID:g}),C=P.hostProps.onLongPress,k=!s||(x?.length??0)>0,q=o&&B?v[o]:"",D=(0,_react.useMemo)(()=>L&&null==s?(0,_markdownCore.markdownToPlainText)(t):t,[L,s,t]),V=[S,E,D,l?`${v.replyTo(l.author)}: ${l.text}`:"",q].filter(Boolean).join(", "),$=(0,_react.useRef)(u);(0,_react.useEffect)(()=>{$.current&&!u&&!c&&t&&(0,_announce.announce)(S?`${S}, ${D}`:D),$.current=u},[u,c,t,D,S]);const U=(0,_react.useRef)(c);(0,_react.useEffect)(()=>{c&&c!==U.current&&(0,_announce.announce)(c,{polite:!1}),U.current=c},[c]);const N=(0,_react.useCallback)(e=>{C?.(e),m?.()},[C,m]),F=(0,_react.useCallback)(e=>{w.find(t=>t.name===e.nativeEvent.actionName)?.onPress()},[w]),z=f.radius.xl,H=f.radius.sm,O=B?{borderTopRightRadius:T?z:H,borderBottomRightRadius:R?z:H}:{borderTopLeftRadius:T?z:H,borderBottomLeftRadius:R?z:H},G=s??(L?(0,_jsxRuntime.jsx)(_index4.Markdown,{children:t}):(0,_jsxRuntime.jsx)(_index5.Text,{variant:"body",children:t})),W=l?(0,_jsxRuntime.jsxs)(_reactNative.Pressable,{onPress:l.onPress,disabled:!l.onPress,accessibilityRole:l.onPress?"button":void 0,accessibilityLabel:`${v.replyTo(l.author)}: ${l.text}`,style:j.quote,children:[l.author?(0,_jsxRuntime.jsx)(_index5.Text,{variant:"caption",weight:"semibold",color:"link",numberOfLines:1,children:l.author}):null,(0,_jsxRuntime.jsx)(_index5.Text,{variant:"bodySmall",color:"secondary",numberOfLines:2,children:l.text})]}):null,X=[j.bubble,B?j.mine:j.theirs,O],Y=k?{accessible:!0,accessibilityLabel:V,accessibilityState:{busy:u},"aria-busy":u,accessibilityActions:w.map(({name:e,label:t})=>({name:e,label:t})),onAccessibilityAction:F}:{accessible:!1},J=A?(0,_jsxRuntime.jsxs)(_reactNative.Pressable,{ref:P.hostRef,...P.hostProps,onLongPress:N,delayLongPress:350,style:X,testID:g?`${g}-bubble`:void 0,...Y,children:[W,G]}):(0,_jsxRuntime.jsxs)(_reactNative.View,{style:X,testID:g?`${g}-bubble`:void 0,...Y,children:[W,G]}),K=R&&(""!==E||B&&o);return(0,_jsxRuntime.jsxs)(_reactNative.View,{style:[j.root,B?j.rootMine:j.rootTheirs,{marginTop:T?f.space.sm:f.space.xxs},h],accessibilityState:{busy:u},"aria-busy":u,testID:g,children:[!B&&T&&i?(0,_jsxRuntime.jsx)(_index5.Text,{variant:"caption",color:"secondary",style:j.author,numberOfLines:1,importantForAccessibility:k?"no-hide-descendants":"auto",accessibilityElementsHidden:k,children:i}):null,J,P.renderSurface(),K?(0,_jsxRuntime.jsxs)(_reactNative.View,{style:[j.meta,B?j.metaMine:null],importantForAccessibility:k?"no-hide-descendants":"auto",accessibilityElementsHidden:k,children:[E?(0,_jsxRuntime.jsx)(_index5.Text,{variant:"caption",color:"tertiary",children:E}):null,B&&o?(0,_jsxRuntime.jsx)(_index2.AppIcon,{name:statusIcon(o),size:14,color:statusColour(f,o),accessibilityLabel:v[o],testID:g?`${g}-status-${o}`:void 0}):null]}):null,c?(0,_jsxRuntime.jsx)(_index5.Text,{variant:"bodySmall",color:"danger",style:B?j.endText:null,children:c}):null,M?(0,_jsxRuntime.jsx)(_index3.Button,{label:v.retry,variant:"link",size:"sm",leftIcon:"refresh-cw",onPress:d,testID:g?`${g}-retry`:void 0}):null,_]})};exports.MessageBubble=MessageBubble;const buildStyles=e=>_reactNative.StyleSheet.create({root:{maxWidth:"85%",gap:e.space.xs},rootMine:{alignSelf:"flex-end",alignItems:"flex-end"},rootTheirs:{alignSelf:"flex-start",alignItems:"flex-start"},author:{paddingHorizontal:e.space.md},bubble:{borderRadius:e.radius.xl,..._corners.smoothCorners,paddingHorizontal:e.space.md,paddingVertical:e.space.sm,gap:e.space.xs},mine:{backgroundColor:e.colors["primary-soft"]},theirs:{backgroundColor:e.colors["bg-subtle"]},quote:{borderLeftWidth:3,borderLeftColor:e.colors.primary,paddingLeft:e.space.sm,paddingVertical:e.space.xs},meta:{flexDirection:"row",alignItems:"center",gap:e.space.xs,paddingHorizontal:e.space.xs},metaMine:{justifyContent:"flex-end"},endText:{textAlign:"right"}});var _default=exports.default=MessageBubble;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.StatTile=exports.DEFAULT_STAT_TILE_LABELS=void 0;var _mobileCore=require("@webority/mobile-core"),_react=require("react"),_reactNative=require("react-native"),_index=require("../../theme/index.js"),_warnInvalidValue=require("../../utils/warnInvalidValue.js"),_index2=require("../AppIcon/index.js"),_index3=require("../Card/index.js"),_index4=require("../IconBadge/index.js"),_index5=require("../Skeleton/index.js"),_index6=require("../Text/index.js"),_jsxRuntime=require("react/jsx-runtime");const DEFAULT_STAT_TILE_LABELS=exports.DEFAULT_STAT_TILE_LABELS=Object.freeze({trendUp:"up",trendDown:"down",trendFlat:"no change"}),isText=e=>"string"==typeof e||"number"==typeof e,TREND_ICON={up:"arrow-up",down:"arrow-down",flat:"minus"},TREND_SIGN={up:"+",down:"-",flat:""},percentText=e=>(0,_mobileCore.formatPercent)(Math.abs(e),{scale:"percent",maximumFractionDigits:1}),trendFigure=e=>"number"==typeof e.value?`${TREND_SIGN[e.direction]}${percentText(e.value)}`:e.value,trendSpoken=(e,t)=>{const n=[{up:t.trendUp,down:t.trendDown,flat:t.trendFlat}[e.direction]];return"flat"!==e.direction&&n.push("number"==typeof e.value?percentText(e.value):e.value),e.period&&n.push(e.period),n.join(" ")},StatTile=exports.StatTile=(0,_react.forwardRef)((e,t)=>{const{label:n,value:i,icon:r,iconVariant:a,tone:s="primary",caption:l,trend:o,sparkline:d,onPress:x,loading:c=!1,accessibilityLabel:u,labels:_,style:p,testID:m}=e,j=(0,_index.useTheme)();(0,_warnInvalidValue.warnInvalidValue)("StatTile","tone",e.tone,["primary","success","warning","danger","info","neutral"]),(0,_warnInvalidValue.warnInvalidValue)("StatTile","trend.direction",o?.direction,["up","down","flat"]),(0,_warnInvalidValue.warnInvalidValue)("StatTile","trend.goodWhen",o?.goodWhen,["up","down"]);const T=(0,_react.useMemo)(()=>({...DEFAULT_STAT_TILE_LABELS,..._}),[_]),v=o?`, ${trendSpoken(o,T)}`:"",h=u??(isText(i)?`${
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.StatTile=exports.DEFAULT_STAT_TILE_LABELS=void 0;var _mobileCore=require("@webority/mobile-core"),_react=require("react"),_reactNative=require("react-native"),_index=require("../../theme/index.js"),_warnInvalidValue=require("../../utils/warnInvalidValue.js"),_index2=require("../AppIcon/index.js"),_index3=require("../Card/index.js"),_index4=require("../IconBadge/index.js"),_index5=require("../Skeleton/index.js"),_index6=require("../Text/index.js"),_jsxRuntime=require("react/jsx-runtime");const DEFAULT_STAT_TILE_LABELS=exports.DEFAULT_STAT_TILE_LABELS=Object.freeze({trendUp:"up",trendDown:"down",trendFlat:"no change"}),isText=e=>"string"==typeof e||"number"==typeof e,TREND_ICON={up:"arrow-up",down:"arrow-down",flat:"minus"},TREND_SIGN={up:"+",down:"-",flat:""},percentText=e=>(0,_mobileCore.formatPercent)(Math.abs(e),{scale:"percent",maximumFractionDigits:1}),trendFigure=e=>"number"==typeof e.value?`${TREND_SIGN[e.direction]}${percentText(e.value)}`:e.value,trendSpoken=(e,t)=>{const n=[{up:t.trendUp,down:t.trendDown,flat:t.trendFlat}[e.direction]];return"flat"!==e.direction&&n.push("number"==typeof e.value?percentText(e.value):e.value),e.period&&n.push(e.period),n.join(" ")},StatTile=exports.StatTile=(0,_react.forwardRef)((e,t)=>{const{label:n,value:i,icon:r,iconVariant:a,tone:s="primary",caption:l,trend:o,sparkline:d,onPress:x,loading:c=!1,accessibilityLabel:u,labels:_,style:p,testID:m}=e,j=(0,_index.useTheme)();(0,_warnInvalidValue.warnInvalidValue)("StatTile","tone",e.tone,["primary","success","warning","danger","info","neutral"]),(0,_warnInvalidValue.warnInvalidValue)("StatTile","trend.direction",o?.direction,["up","down","flat"]),(0,_warnInvalidValue.warnInvalidValue)("StatTile","trend.goodWhen",o?.goodWhen,["up","down"]);const T=(0,_react.useMemo)(()=>({...DEFAULT_STAT_TILE_LABELS,..._}),[_]),v=o?`, ${trendSpoken(o,T)}`:"",h=isText(n)?`${n}, `:"",w=u??(isText(i)?`${h}${i}${v}`:void 0),y=!!o&&o.direction===(o.goodWhen??"up"),f=o&&"flat"!==o.direction?y?"success":"danger":"secondary",S="secondary"===f?j.colors["text-muted"]:j.colors[`${f}-text`];return c?(0,_jsxRuntime.jsx)(_index3.Card,{ref:t,variant:"outline",style:p,testID:m,children:(0,_jsxRuntime.jsxs)(_reactNative.View,{style:[styles.row,{columnGap:j.space.md}],children:[void 0===r?null:(0,_jsxRuntime.jsx)(_index5.Skeleton,{shape:"circle",width:40,height:40}),(0,_jsxRuntime.jsxs)(_reactNative.View,{style:styles.text,children:[(0,_jsxRuntime.jsx)(_index5.Skeleton,{shape:"text",width:"50%",height:12}),(0,_jsxRuntime.jsx)(_index5.Skeleton,{shape:"text",width:"35%",height:24,style:{marginTop:j.space.xs}})]})]})}):(0,_jsxRuntime.jsx)(_index3.Card,{ref:t,variant:"outline",onPress:x,accessibilityLabel:w,style:p,testID:m,children:(0,_jsxRuntime.jsxs)(_reactNative.View,{style:[styles.row,{columnGap:j.space.md}],children:[void 0===r?null:(0,_jsxRuntime.jsx)(_index4.IconBadge,{icon:r,iconVariant:a,tone:s}),(0,_jsxRuntime.jsxs)(_reactNative.View,{style:styles.text,children:[(0,_jsxRuntime.jsx)(_index6.Text,{variant:"caption",color:"secondary",numberOfLines:1,children:n}),isText(i)?(0,_jsxRuntime.jsx)(_index6.Text,{variant:"h3",numberOfLines:1,children:i}):i,o?(0,_jsxRuntime.jsxs)(_reactNative.View,{style:[styles.trend,{columnGap:j.space.xxs}],testID:m?`${m}-trend`:void 0,children:[(0,_jsxRuntime.jsx)(_index2.AppIcon,{name:TREND_ICON[o.direction],size:"xs",color:S}),(0,_jsxRuntime.jsxs)(_index6.Text,{variant:"caption",color:f,numberOfLines:2,style:styles.text,children:[trendFigure(o),o.period?(0,_jsxRuntime.jsx)(_index6.Text,{variant:"caption",color:"tertiary",children:` ${o.period}`}):null]})]}):null,null==l||""===l?null:isText(l)?(0,_jsxRuntime.jsx)(_index6.Text,{variant:"caption",color:"tertiary",numberOfLines:1,children:l}):l,null==d?null:(0,_jsxRuntime.jsx)(_reactNative.View,{style:{marginTop:j.space.sm},children:d})]})]})})});StatTile.displayName="StatTile";const styles=_reactNative.StyleSheet.create({row:{flexDirection:"row",alignItems:"center"},text:{flex:1,minWidth:0},trend:{flexDirection:"row",alignItems:"center"}});var _default=exports.default=StatTile;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{Fragment,forwardRef,useMemo}from"react";import{Animated,Pressable,StyleSheet,View}from"react-native";import{useSafeAreaInsets}from"react-native-safe-area-context";import{usePressAnimation}from"../../hooks/usePressAnimation.js";import{useTheme}from"../../theme/index.js";import{smoothCorners}from"../../utils/corners.js";import{resolveHaptic,triggerHaptic}from"../../utils/hapticUtils.js";import{warnInvalidValue}from"../../utils/warnInvalidValue.js";import{AppIcon}from"../AppIcon/AppIcon.js";import{Menu}from"../Menu/index.js";import{Text as ThemedText}from"../Text/Text.js";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";const ACTION_BUTTON_SIZE=44,DOT_OFFSET=10,DOT_SIZE=8,BADGE_OFFSET=4;export const DEFAULT_APP_BAR_LABELS=Object.freeze({back:"Back"});const variantSize=(e,t)=>{switch(t){case"compact":return{height:44,titleSize:e.text.lg.size,titleWeight:"semibold",
|
|
1
|
+
"use strict";import{Fragment,forwardRef,useCallback,useMemo,useState}from"react";import{Animated,Pressable,StyleSheet,View}from"react-native";import{useSafeAreaInsets}from"react-native-safe-area-context";import{usePressAnimation}from"../../hooks/usePressAnimation.js";import{useTheme}from"../../theme/index.js";import{smoothCorners}from"../../utils/corners.js";import{resolveHaptic,triggerHaptic}from"../../utils/hapticUtils.js";import{warnInvalidValue}from"../../utils/warnInvalidValue.js";import{AppIcon}from"../AppIcon/AppIcon.js";import{Menu}from"../Menu/index.js";import{Text as ThemedText}from"../Text/Text.js";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";const ACTION_BUTTON_SIZE=44,DOT_OFFSET=10,DOT_SIZE=8,BADGE_OFFSET=4;export const DEFAULT_APP_BAR_LABELS=Object.freeze({back:"Back"});const variantSize=(e,t)=>{switch(t){case"compact":return{height:44,titleSize:e.text.lg.size,titleWeight:"semibold",subtitleLines:1};case"large":return{height:56,titleSize:e.text["2xl"].size,titleWeight:"bold",subtitleLines:2};default:return{height:56,titleSize:e.text.lg.size,titleWeight:"semibold",subtitleLines:1}}},ActionButton=forwardRef(({action:e,side:t,badgeStyle:i,haptic:n,flush:o,onPress:l},s)=>{const r=useTheme(),{style:a,pressIn:c,pressOut:d}=usePressAnimation({enabled:!0}),p=useMemo(()=>buildActionStyles(r),[r]),u=e.badge,h=void 0!==u&&0!==u,g=void 0!==e.label;return _jsx(Animated.View,{style:a,children:_jsxs(Pressable,{ref:s,onPress:t=>{const i=resolveHaptic(n,"selection");i&&triggerHaptic(i),"onPress"in e&&e.onPress(),l?.(t)},onPressIn:c,onPressOut:d,accessibilityRole:"button",accessibilityLabel:e.accessibilityLabel??e.label,testID:e.testID,android_ripple:{color:r.colors["surface-pressed"],borderless:!g},style:({pressed:e})=>[g?p.textButton:p.actionButton,o?null:"left"===t?p.actionLeft:p.actionRight,e&&!g?p.actionPressed:null,e&&g?p.textPressed:null],children:[g?_jsx(ThemedText,{variant:"body",weight:"semibold",color:"link",numberOfLines:1,children:e.label}):_jsx(View,{style:p.iconWrap,children:e.icon}),h?_jsx(View,{style:[p.badge,i],pointerEvents:"none",children:_jsx(ThemedText,{variant:"caption",weight:"semibold",numberOfLines:1,style:p.badgeText,children:String(u)})}):null,e.dot?_jsx(View,{testID:e.testID?`${e.testID}-dot`:"appbar-action-dot",style:p.dot,pointerEvents:"none"}):null]})})}),COLLAPSE_RANGE=60,AppBar=forwardRef((e,t)=>{const{title:i,subtitle:n,titleAlignment:o="left",leftAction:l,rightActions:s,leading:r,trailing:a,onBack:c,gutter:d,titleVariant:p,titleOffset:u,height:h,divider:g,variant:m="default",transparent:x=!1,scrollY:b,style:f,containerStyle:y,titleStyle:A,subtitleStyle:S,badgeStyle:j,haptic:w,labels:_,testID:v}=e;warnInvalidValue("AppBar","variant",e.variant,["default","large","compact"]),warnInvalidValue("AppBar","titleAlignment",e.titleAlignment,["left","center"]);const I=useMemo(()=>({...DEFAULT_APP_BAR_LABELS,..._}),[_]),T=useTheme(),B=useSafeAreaInsets(),L=useMemo(()=>variantSize(T,m),[T,m]),R=useMemo(()=>buildStyles(T),[T]),C="large"===m,z=C&&void 0!==b,[V,O]=useState(40),P=useCallback(e=>O(e.nativeEvent.layout.height),[]),D=l??(c?{icon:_jsx(AppIcon,{name:"arrow-left",size:24,color:T.colors["text-body"]}),onPress:c,accessibilityLabel:I.back}:void 0),W=a?void 0:s?.[s.length-1],opticalInset=e=>void 0===e?0:void 0!==e.label?T.space.sm:Math.max((44-(e.glyphSize??24))/2,0),E=void 0===d?null:{paddingLeft:Math.max(d-opticalInset(D),0),paddingRight:Math.max(d-opticalInset(W),0)},H=void 0!==u,k=Boolean(D)||Boolean(r),M=H||!k&&"left"===o,F=g??!x,N=StyleSheet.hairlineWidth,$=useMemo(()=>b?{rootHeight:b.interpolate({inputRange:[0,60],outputRange:[B.top+L.height+V,B.top+L.height],extrapolate:"clamp"}),titleRowOpacity:b.interpolate({inputRange:[0,30],outputRange:[1,0],extrapolate:"clamp"}),compactTitleOpacity:b.interpolate({inputRange:[30,60],outputRange:[0,1],extrapolate:"clamp"}),borderOpacity:b.interpolate({inputRange:[0,60],outputRange:[0,1],extrapolate:"clamp"})}:null,[b,B.top,L.height,V]),U=i?p?_jsx(ThemedText,{variant:p,align:"center"===o?"center":"left",accessibilityRole:"header",numberOfLines:1,style:[R.titleVariant,A],children:i}):_jsx(Animated.Text,{accessibilityRole:"header",style:[R.title,{fontSize:L.titleSize,fontWeight:T.weight[L.titleWeight],textAlign:"center"===o?"center":"left"},A],numberOfLines:1,children:i}):null,G=z&&$&&i?_jsx(Animated.Text,{accessibilityElementsHidden:!0,importantForAccessibility:"no-hide-descendants",style:[R.title,{fontSize:T.text.lg.size,fontWeight:T.weight.semibold,textAlign:"center"===o?"center":"left",opacity:$.compactTitleOpacity}],numberOfLines:1,children:i}):null,Z=n?_jsx(Animated.Text,{style:[R.subtitle,{textAlign:"center"===o?"center":"left"},S],numberOfLines:L.subtitleLines,children:n}):null,Y=_jsxs(View,{style:[R.titleColumn,"center"===o?R.titleColumnCenter:null],children:[U,Z]}),q=z?Animated.View:View,J=z&&$?{height:$.rootHeight,overflow:"hidden"}:C&&void 0===h?null:{height:(h??L.height)+B.top};return _jsxs(q,{ref:t,testID:v,style:[R.root,{paddingTop:B.top,backgroundColor:x?"transparent":T.colors.surface},J,!z&&F?{borderBottomWidth:N,borderBottomColor:T.colors.border}:null,y,f],children:[z&&$&&F?_jsx(Animated.View,{pointerEvents:"none",style:[R.animatedBorder,{backgroundColor:T.colors.border,opacity:$.borderOpacity}]}):null,_jsxs(View,{testID:C&&v?`${v}-bar-row`:void 0,style:[R.row,C?{height:L.height}:{flex:1},E],children:[_jsxs(View,{testID:v?`${v}-leading-slot`:void 0,style:[R.sideSlot,M?R.sideSlotCompact:null],children:[D?_jsx(ActionButton,{action:D,side:"left",haptic:w,flush:H}):null,null!=r&&!1!==r?_jsx(View,{style:R.slotNode,children:r}):null]}),_jsx(View,{pointerEvents:"none",style:[R.center,"center"===o?R.centerAligned:R.centerLeft,H?{paddingLeft:k?u:T.space.none,paddingRight:T.space.none}:M?{paddingLeft:T.space.none}:null],children:C?G:Y}),_jsxs(View,{style:[R.sideSlot,R.sideSlotRight,H?R.sideSlotCompact:null],children:[s?.map((e,t)=>_jsx(Fragment,{children:"menu"in e?_jsx(Menu,{items:e.menu,title:e.menuTitle,haptic:w,trigger:_jsx(ActionButton,{action:e,side:"right",badgeStyle:j,haptic:w,flush:H})}):_jsx(ActionButton,{action:e,side:"right",badgeStyle:j,haptic:w,flush:H})},`appbar-right-${t}`)),null!=a&&!1!==a?_jsx(View,{style:R.slotNode,children:a}):null]})]}),C?_jsx(Animated.View,{testID:v?`${v}-title-row`:void 0,onLayout:z?P:void 0,pointerEvents:"none",style:[{paddingHorizontal:d??T.space.md,paddingBottom:T.space.sm},z&&$?{opacity:$.titleRowOpacity}:null],children:Y}):null]})});AppBar.displayName="AppBar";const buildStyles=e=>StyleSheet.create({root:{width:"100%"},row:{flexDirection:"row",alignItems:"center",paddingHorizontal:e.space.xs},sideSlot:{flexDirection:"row",alignItems:"center",minWidth:48},sideSlotRight:{justifyContent:"flex-end"},sideSlotCompact:{minWidth:0},slotNode:{flexDirection:"row",alignItems:"center"},center:{flex:1,minWidth:0,paddingHorizontal:e.space.xs},centerAligned:{alignItems:"center"},centerLeft:{alignItems:"flex-start"},titleColumn:{flexDirection:"column",maxWidth:"100%"},titleColumnCenter:{alignItems:"center"},title:{color:e.colors["text-body"]},titleVariant:{includeFontPadding:!1,textAlignVertical:"center"},subtitle:{marginTop:e.space.xxs,color:e.colors["text-subtle"],fontSize:e.text.sm.size,fontWeight:e.weight.normal},animatedBorder:{position:"absolute",left:0,right:0,bottom:0,height:StyleSheet.hairlineWidth}}),buildActionStyles=e=>StyleSheet.create({actionButton:{width:44,height:44,borderRadius:e.radius.pill,...smoothCorners,alignItems:"center",justifyContent:"center"},actionLeft:{marginRight:e.space.xs},actionRight:{marginLeft:e.space.xs},actionPressed:{backgroundColor:e.colors["surface-pressed"]},textButton:{minWidth:44,minHeight:44,paddingHorizontal:e.space.sm,alignItems:"center",justifyContent:"center"},textPressed:{opacity:.6},dot:{position:"absolute",top:10,right:10,width:8,height:8,borderRadius:e.radius.pill,backgroundColor:e.colors.danger},iconWrap:{alignItems:"center",justifyContent:"center"},badge:{position:"absolute",top:4,right:4,minWidth:16,height:16,paddingHorizontal:e.space.xs,borderRadius:e.radius.pill,...smoothCorners,backgroundColor:e.colors.danger,alignItems:"center",justifyContent:"center"},badgeText:{color:e.colors["on-danger"],fontSize:e.text.xs.size,fontWeight:e.weight.semibold,lineHeight:13}});export{AppBar};export default AppBar;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";export const ICON_NAMES=["aave","activity","add","add-circle","add-square","additem","airdrop","airplane","airplane-square","airpod","airpods","alarm","alert-circle","alert-triangle","align-bottom","align-horizontally","align-left","align-right","align-top","align-vertically","android","ankr","apple","aquarius","archive","archive-add","archive-book","archive-box","archive-minus","archive-slash","archive-tick","arrange-horizontal","arrange-horizontal-circle","arrange-horizontal-square","arrange-vertical","arrange-vertical-circle","arrange-vertical-square","arrow","arrow-circle-down","arrow-circle-down-2","arrow-circle-left","arrow-circle-left-2","arrow-circle-right","arrow-circle-right-2","arrow-circle-up","arrow-circle-up-2","arrow-down","arrow-down-2","arrow-down-3","arrow-down-up","arrow-forward","arrow-forward-square","arrow-left","arrow-left-2","arrow-left-3","arrow-right","arrow-right-2","arrow-right-3","arrow-rotate-left","arrow-rotate-right","arrow-square","arrow-square-down","arrow-square-left","arrow-square-right","arrow-square-up","arrow-swap-horizontal","arrow-swap-vertical","arrow-up","arrow-up-2","arrow-up-3","arrow-up-right","at","attach-circle","attach-square","audio-square","augur","autobrightness","autonio","avalanche","award","back","back-square","backward","backward-10-seconds","backward-15-seconds","backward-5-seconds","backward-item","badge-check","bag","bag-2","bag-cross","bag-cross-1","bag-happy","bag-tick","bag-tick-2","bag-timer","ban","bank","barcode","battery-charging","battery-disable","battery-empty","battery-empty-1","battery-full","be","bell","bezier","bill","binance-coin","binance-usd","bitcoin","bitcoin-card","bitcoin-convert","bitcoin-refresh","blend","blend-2","blogger","bluetooth","bluetooth-2","bluetooth-circle","bluetooth-rectangle","blur","bolt","book","book-1","book-saved","book-square","bookmark","bookmark-2","bootstrap","box","box-1","box-2","box-add","box-remove","box-seam","box-search","box-tick","box-time","briefcase","briefcase-cross","briefcase-tick","briefcase-timer","brifecase-cross","brifecase-tick","brifecase-timer","brodcast","broom","brush","brush-2","brush-3","brush-big","brush-square","bubble","bucket","bucket-circle","bucket-square","bug","building","building-2","building-3","building-4","buildings","buildings-2","buliding","bullseye","bus","buy-crypto","cake","calculator","calendar","calendar-1","calendar-2","calendar-add","calendar-check","calendar-circle","calendar-dots","calendar-edit","calendar-remove","calendar-search","calendar-tick","call","call-add","call-calling","call-incoming","call-minus","call-outgoing","call-received","call-remove","call-slash","camera","camera-slash","candle","candle-2","car","card","card-add","card-coin","card-edit","card-pos","card-receive","card-remove","card-remove-1","card-send","card-slash","card-tick","card-tick-1","cardano","cards","cash-stack","category","category-2","cd","celo","celsius","chainlink","chart","chart-1","chart-2","chart-21","chart-circle","chart-column","chart-fail","chart-square","chart-success","chat","chat-dots","check","check-check","check-circle","chemical-glass","chevron-down","chevron-left","chevron-right","chevron-up","chevrons-left","chevrons-right","chevrons-up-down","chrome","circle","circle-help","civic","clipboard","clipboard-check","clipboard-close","clipboard-export","clipboard-import","clipboard-text","clipboard-tick","clock","close-circle","close-square","cloud","cloud-add","cloud-change","cloud-connection","cloud-cross","cloud-drizzle","cloud-fog","cloud-lightning","cloud-minus","cloud-notif","cloud-plus","cloud-remove","cloud-snow","cloud-sunny","code","code-1","code-circle","coffee","coin","coin-1","coins","color-swatch","colorfilter","colors-square","command","command-square","comment","component","computing","contact","convert","convert-3-d-cube","convert-card","convertshape","convertshape-2","copy","copy-success","copyright","courthouse","cpu","cpu-charge","cpu-setting","creative-commons","credit-card","crop","crown","crown-1","cup","cursor","cut","dai","danger","dash","data","data-2","decred","dent","designtools","device-message","devices","diagram","diagram-3","diamonds","direct","direct-down","direct-inbox","direct-left","direct-normal","direct-notification","direct-right","direct-send","direct-up","directbox-default","directbox-notif","directbox-receive","directbox-send","discount-circle","discount-shape","discover","dislike","display","document","document-cloud","document-code","document-code-2","document-copy","document-download","document-favorite","document-filter","document-forward","document-like","document-previous","document-sketch","document-text","document-text-1","document-upload","dollar-circle","dollar-square","download","dribbble","driver","driver-2","driver-refresh","driving","drop","dropbox","edit","edit-2","educare","electricity","element","element-2","element-3","element-4","element-equal","element-plus","emercoin","emoji-happy","emoji-normal","emoji-sad","emoji-smile","empty-wallet","empty-wallet-add","empty-wallet-change","empty-wallet-remove","empty-wallet-tick","empty-wallet-time","enjin-coin","eos","eraser","eraser-square","ethereum","ethereum-classic","export","export-circle","export-curve","export-square","external-drive","external-link","eye","eye-off","eye-slash","facebook","factory","fatrows","favorite-chart","figma","figma-1","file-plus-2","file-text","files","filter","filter-add","filter-edit","filter-remove","filter-search","filter-square","filter-tick","finger-cricle","finger-scan","firstline","flag","flag-2","flame","flash","flash-circle","flash-slash","flashy","folder","folder-2","folder-add","folder-cloud","folder-connection","folder-cross","folder-favorite","folder-kanban","folder-minus","folder-open","folder-plus","forbidden","forbidden-2","format-circle","format-square","forward","forward-10-seconds","forward-15-seconds","forward-5-seconds","forward-item","framer","ftx-token","gallery","gallery-add","gallery-edit","gallery-export","gallery-favorite","gallery-import","gallery-remove","gallery-slash","gallery-tick","game","gameboy","gas-station","gauge","gemini","gemini-2","ghost","gift","github","glass","global","global-edit","global-refresh","global-search","globe","globe2","google","google-drive","google-play","gps","gps-slash","grammerly","graph","grid","grid-1","grid-2","grid-3","grid-4","grid-5","grid-6","grid-7","grid-8","grid-9","grid-edit","grid-eraser","grid-lock","hamberger-menu","hamburger-menu","hand","happyemoji","hard-hat","harmony","hashtag","hashtag-down","hashtag-square","hashtag-up","headphone","headphones","health","heart","heart-add","heart-circle","heart-edit","heart-remove","heart-search","heart-slash","heart-tick","hedera-hashgraph","hex","hierarchy","hierarchy-2","hierarchy-3","hierarchy-square","hierarchy-square-2","hierarchy-square-3","history","home","home-2","home-3","home-hashtag","home-trend-down","home-trend-up","home-wifi","hospital","house","house-2","html-3","html-5","huobi-token","i-24-support","i-3-d-cube-scan","i-3-d-rotate","i-3-d-square","i-3-dcube","i-3-square","icon","illustrator","image","import","import-circle","import-curve","import-square","inbox","info","info-circle","information","instagram","iost","java-script","js","judge","kanban","key","key-square","keyboard","keyboard-open","kyber-network","lamp","lamp-charge","lamp-on","lamp-slash","language-circle","language-square","layer","layout-dashboard","layout-grid","layout-maximize","level","lifebuoy","lightbulb","like","like-1","like-dislike","like-shapes","like-tag","link","link-1","link-2","link-21","link-circle","link-square","linkedin","list","litecoin","location","location-add","location-cross","location-discover","location-minus","location-slash","location-tick","lock","lock-1","lock-circle","lock-slash","log-out","login","login-curve","logout","logout-curve","lovely","magic-star","magicpen","mail","main-component","maker","man","map","map-1","map-pin","mask","mask-left","mask-right","math","maximize","maximize-1","maximize-2","maximize-3","maximize-4","maximize-circle","medal","medal-star","menu","menu-board","message","message-2","message-add","message-add-1","message-circle","message-edit","message-favorite","message-minus","message-notif","message-programming","message-question","message-remove","message-search","message-square","message-text","message-text-1","message-tick","message-time","messages","messages-1","messages-2","messages-3","messenger","microphone","microphone-2","microphone-slash","microphone-slash-1","microscope","microsoft","milk","mini-music-sqaure","minus","minus-circle","minus-cirlce","minus-square","mirror","mirroring-screen","mobile","mobile-programming","monero","money","money-2","money-3","money-4","money-add","money-archive","money-change","money-forbidden","money-receive","money-recive","money-remove","money-send","money-tick","money-time","moneys","monitor","monitor-mobbile","monitor-recorder","moon","more","more-2","more-circle","more-horizontal","more-square","mouse","mouse-circle","mouse-square","music","music-circle","music-dashboard","music-filter","music-library-2","music-play","music-playlist","music-square","music-square-add","music-square-remove","music-square-search","musicnote","nebulas","nem","nexo","next","note","note-1","note-add","note-favorite","note-remove","note-square","note-text","notepad","notepad-2","notification","notification-1","notification-bing","notification-circle","notification-favorite","notification-status","ocean-protocol","okb","okru","omega-circle","omega-square","ontology","paintbucket","palette","panel-left-close","panel-left-open","paperclip","paperclip-2","password-check","path-tool","path-tool-2","path-tool-square","pause","pause-circle","paypal","pen-add","pen-close","pen-remove","pen-tool","pen-tool-2","pencil","people","percentage-circle","percentage-square","personalcard","pet","pharagraphspacing","phone","photoshop","picture-frame","play","play-add","play-circle","play-cricle","play-remove","plug","plus","plus-circle","pointer","polkadot","polygon","polyswarm","presentation-chart","presention-chart","previous","printer","printer-slash","profile","profile-2-user","profile-add","profile-circle","profile-delete","profile-remove","profile-tick","programming-arrow","programming-arrows","python","quant","quote-down","quote-down-circle","quote-down-square","quote-up","quote-up-circle","quote-up-square","radar","radar-2","radio","ram","ram-2","rank","ranking","receipt","receipt-1","receipt-2","receipt-21","receipt-add","receipt-discount","receipt-disscount","receipt-edit","receipt-item","receipt-minus","receipt-search","receipt-square","receipt-text","receive","receive-square","receive-square-2","record","record-circle","recovery-convert","reddit","refresh","refresh-2","refresh-circle","refresh-cw","refresh-left-square","refresh-right-square","refresh-square","repeat","repeat-circle","repeate-music","repeate-one","reserve","robot","rotate-ccw","rotate-cw","rotate-left","rotate-right","route-square","routing","routing-2","row-horizontal","row-vertical","ruler","ruler-pen","safe-home","sagittarius","save-2","save-add","save-minus","save-remove","scan","scan-barcode","scanner","scanning","scissor","screenmirroring","scroll","search","search-favorite","search-favorite-1","search-normal","search-normal-1","search-status","search-status-1","search-zoom-in","search-zoom-in-1","search-zoom-out","search-zoom-out-1","security","security-card","security-safe","security-time","security-user","send","send-2","server","setting","setting-2","setting-3","setting-4","setting-5","settings","shapes","shapes-1","share","share-2","shield","shield-check","shield-cross","shield-lock","shield-plus","shield-search","shield-security","shield-slash","shield-tick","ship","shop","shop-add","shop-remove","shopping-bag","shopping-cart","shuffle","shutterstock","siacoin","sidebar-bottom","sidebar-left","sidebar-right","sidebar-top","signpost","simcard","simcard-1","simcard-2","size","slack","slash","slider","slider-horizontal","slider-horizontal-1","slider-vertical","slider-vertical-1","smallcaps","smart-car","smart-home","smileys","sms","sms-edit","sms-notification","sms-search","sms-star","sms-tracking","snapchat","snowflake","solana","sort","sound","sparkles","speaker","speedometer","spotify","stacks","star","star-1","star-slash","stars","status","status-up","stellar","sticker","stickynote","stop","stop-circle","story","strongbox","strongbox-2","subtitle","sun","sun-1","sun-fog","table-document","table-lamp","tag","tag-2","tag-cross","tag-right","tag-user","task","task-square","teacher","telephone","tenx","tether","text","text-block","text-bold","text-italic","text-underline","textalign-center","textalign-justifycenter","textalign-justifyleft","textalign-justifyright","textalign-left","textalign-right","the-graph","theta","thorchain","thumbs-up","tick-circle","tick-square","ticket","ticket-2","ticket-discount","ticket-expired","ticket-star","timer","timer-1","timer-pause","timer-start","toggle-off","toggle-off-circle","toggle-on","toggle-on-circle","trade","transaction-minus","translate","transmit","transmit-sqaure-2","transmit-square","trash","trash-2","tree","trello","trend-down","trend-up","trending-up","triangle","triangle-logo","trontron","truck","truck-fast","truck-remove","truck-tick","truck-time","trush-square","twitch","two-page","ui-8","unlimited","unlock","upload","usd-coin","user","user-add","user-check","user-cirlce-add","user-edit","user-minus","user-octagon","user-plus","user-remove","user-search","user-square","user-tag","user-tick","users","velas","verify","vibe","video","video-add","video-circle","video-horizontal","video-octagon","video-play","video-remove","video-slash","video-square","video-tick","video-time","video-vertical","voice-circle","voice-cricle","voice-square","volume","volume-cross","volume-high","volume-low","volume-low-1","volume-mute","volume-slash","volume-up","wallet","wallet-1","wallet-2","wallet-3","wallet-add","wallet-add-1","wallet-check","wallet-minus","wallet-money","wallet-remove","wallet-search","wallet2","wanchain","wanchain-1","wand-sparkles","warning-2","watch","watch-status","weight","weight-meter","whatsapp","wifi","wifi-square","wind","wind-2","windows","wing","woman","wrist-clock","x","x-circle","xd","xiaomi","xrp","youtube","zap","zel","zoom","zoom-in","zoom-out"];export const CATALOG_LOADERS={linear:{a:()=>require("./catalog/linear/a.g").SHARD,b:()=>require("./catalog/linear/b.g").SHARD,c:()=>require("./catalog/linear/c.g").SHARD,d:()=>require("./catalog/linear/d.g").SHARD,e:()=>require("./catalog/linear/e.g").SHARD,f:()=>require("./catalog/linear/f.g").SHARD,g:()=>require("./catalog/linear/g.g").SHARD,h:()=>require("./catalog/linear/h.g").SHARD,i:()=>require("./catalog/linear/i.g").SHARD,j:()=>require("./catalog/linear/j.g").SHARD,k:()=>require("./catalog/linear/k.g").SHARD,l:()=>require("./catalog/linear/l.g").SHARD,m:()=>require("./catalog/linear/m.g").SHARD,n:()=>require("./catalog/linear/n.g").SHARD,o:()=>require("./catalog/linear/o.g").SHARD,p:()=>require("./catalog/linear/p.g").SHARD,q:()=>require("./catalog/linear/q.g").SHARD,r:()=>require("./catalog/linear/r.g").SHARD,s:()=>require("./catalog/linear/s.g").SHARD,t:()=>require("./catalog/linear/t.g").SHARD,u:()=>require("./catalog/linear/u.g").SHARD,v:()=>require("./catalog/linear/v.g").SHARD,w:()=>require("./catalog/linear/w.g").SHARD,x:()=>require("./catalog/linear/x.g").SHARD,y:()=>require("./catalog/linear/y.g").SHARD,z:()=>require("./catalog/linear/z.g").SHARD},bold:{a:()=>require("./catalog/bold/a.g").SHARD,b:()=>require("./catalog/bold/b.g").SHARD,c:()=>require("./catalog/bold/c.g").SHARD,d:()=>require("./catalog/bold/d.g").SHARD,e:()=>require("./catalog/bold/e.g").SHARD,f:()=>require("./catalog/bold/f.g").SHARD,g:()=>require("./catalog/bold/g.g").SHARD,h:()=>require("./catalog/bold/h.g").SHARD,i:()=>require("./catalog/bold/i.g").SHARD,j:()=>require("./catalog/bold/j.g").SHARD,k:()=>require("./catalog/bold/k.g").SHARD,l:()=>require("./catalog/bold/l.g").SHARD,m:()=>require("./catalog/bold/m.g").SHARD,n:()=>require("./catalog/bold/n.g").SHARD,o:()=>require("./catalog/bold/o.g").SHARD,p:()=>require("./catalog/bold/p.g").SHARD,q:()=>require("./catalog/bold/q.g").SHARD,r:()=>require("./catalog/bold/r.g").SHARD,s:()=>require("./catalog/bold/s.g").SHARD,t:()=>require("./catalog/bold/t.g").SHARD,u:()=>require("./catalog/bold/u.g").SHARD,v:()=>require("./catalog/bold/v.g").SHARD,w:()=>require("./catalog/bold/w.g").SHARD,x:()=>require("./catalog/bold/x.g").SHARD,y:()=>require("./catalog/bold/y.g").SHARD,z:()=>require("./catalog/bold/z.g").SHARD},broken:{a:()=>require("./catalog/broken/a.g").SHARD,b:()=>require("./catalog/broken/b.g").SHARD,c:()=>require("./catalog/broken/c.g").SHARD,d:()=>require("./catalog/broken/d.g").SHARD,e:()=>require("./catalog/broken/e.g").SHARD,f:()=>require("./catalog/broken/f.g").SHARD,g:()=>require("./catalog/broken/g.g").SHARD,h:()=>require("./catalog/broken/h.g").SHARD,i:()=>require("./catalog/broken/i.g").SHARD,j:()=>require("./catalog/broken/j.g").SHARD,k:()=>require("./catalog/broken/k.g").SHARD,l:()=>require("./catalog/broken/l.g").SHARD,m:()=>require("./catalog/broken/m.g").SHARD,n:()=>require("./catalog/broken/n.g").SHARD,o:()=>require("./catalog/broken/o.g").SHARD,p:()=>require("./catalog/broken/p.g").SHARD,q:()=>require("./catalog/broken/q.g").SHARD,r:()=>require("./catalog/broken/r.g").SHARD,s:()=>require("./catalog/broken/s.g").SHARD,t:()=>require("./catalog/broken/t.g").SHARD,u:()=>require("./catalog/broken/u.g").SHARD,v:()=>require("./catalog/broken/v.g").SHARD,w:()=>require("./catalog/broken/w.g").SHARD,x:()=>require("./catalog/broken/x.g").SHARD,y:()=>require("./catalog/broken/y.g").SHARD,z:()=>require("./catalog/broken/z.g").SHARD},bulk:{a:()=>require("./catalog/bulk/a.g").SHARD,b:()=>require("./catalog/bulk/b.g").SHARD,c:()=>require("./catalog/bulk/c.g").SHARD,d:()=>require("./catalog/bulk/d.g").SHARD,e:()=>require("./catalog/bulk/e.g").SHARD,f:()=>require("./catalog/bulk/f.g").SHARD,g:()=>require("./catalog/bulk/g.g").SHARD,h:()=>require("./catalog/bulk/h.g").SHARD,i:()=>require("./catalog/bulk/i.g").SHARD,j:()=>require("./catalog/bulk/j.g").SHARD,k:()=>require("./catalog/bulk/k.g").SHARD,l:()=>require("./catalog/bulk/l.g").SHARD,m:()=>require("./catalog/bulk/m.g").SHARD,n:()=>require("./catalog/bulk/n.g").SHARD,o:()=>require("./catalog/bulk/o.g").SHARD,p:()=>require("./catalog/bulk/p.g").SHARD,q:()=>require("./catalog/bulk/q.g").SHARD,r:()=>require("./catalog/bulk/r.g").SHARD,s:()=>require("./catalog/bulk/s.g").SHARD,t:()=>require("./catalog/bulk/t.g").SHARD,u:()=>require("./catalog/bulk/u.g").SHARD,v:()=>require("./catalog/bulk/v.g").SHARD,w:()=>require("./catalog/bulk/w.g").SHARD,x:()=>require("./catalog/bulk/x.g").SHARD,y:()=>require("./catalog/bulk/y.g").SHARD,z:()=>require("./catalog/bulk/z.g").SHARD},outline:{a:()=>require("./catalog/outline/a.g").SHARD,b:()=>require("./catalog/outline/b.g").SHARD,c:()=>require("./catalog/outline/c.g").SHARD,d:()=>require("./catalog/outline/d.g").SHARD,e:()=>require("./catalog/outline/e.g").SHARD,f:()=>require("./catalog/outline/f.g").SHARD,g:()=>require("./catalog/outline/g.g").SHARD,h:()=>require("./catalog/outline/h.g").SHARD,i:()=>require("./catalog/outline/i.g").SHARD,j:()=>require("./catalog/outline/j.g").SHARD,k:()=>require("./catalog/outline/k.g").SHARD,l:()=>require("./catalog/outline/l.g").SHARD,m:()=>require("./catalog/outline/m.g").SHARD,n:()=>require("./catalog/outline/n.g").SHARD,o:()=>require("./catalog/outline/o.g").SHARD,p:()=>require("./catalog/outline/p.g").SHARD,q:()=>require("./catalog/outline/q.g").SHARD,r:()=>require("./catalog/outline/r.g").SHARD,s:()=>require("./catalog/outline/s.g").SHARD,t:()=>require("./catalog/outline/t.g").SHARD,u:()=>require("./catalog/outline/u.g").SHARD,v:()=>require("./catalog/outline/v.g").SHARD,w:()=>require("./catalog/outline/w.g").SHARD,x:()=>require("./catalog/outline/x.g").SHARD,y:()=>require("./catalog/outline/y.g").SHARD,z:()=>require("./catalog/outline/z.g").SHARD},twotone:{a:()=>require("./catalog/twotone/a.g").SHARD,b:()=>require("./catalog/twotone/b.g").SHARD,c:()=>require("./catalog/twotone/c.g").SHARD,d:()=>require("./catalog/twotone/d.g").SHARD,e:()=>require("./catalog/twotone/e.g").SHARD,f:()=>require("./catalog/twotone/f.g").SHARD,g:()=>require("./catalog/twotone/g.g").SHARD,h:()=>require("./catalog/twotone/h.g").SHARD,i:()=>require("./catalog/twotone/i.g").SHARD,j:()=>require("./catalog/twotone/j.g").SHARD,k:()=>require("./catalog/twotone/k.g").SHARD,l:()=>require("./catalog/twotone/l.g").SHARD,m:()=>require("./catalog/twotone/m.g").SHARD,n:()=>require("./catalog/twotone/n.g").SHARD,o:()=>require("./catalog/twotone/o.g").SHARD,p:()=>require("./catalog/twotone/p.g").SHARD,q:()=>require("./catalog/twotone/q.g").SHARD,r:()=>require("./catalog/twotone/r.g").SHARD,s:()=>require("./catalog/twotone/s.g").SHARD,t:()=>require("./catalog/twotone/t.g").SHARD,u:()=>require("./catalog/twotone/u.g").SHARD,v:()=>require("./catalog/twotone/v.g").SHARD,w:()=>require("./catalog/twotone/w.g").SHARD,x:()=>require("./catalog/twotone/x.g").SHARD,y:()=>require("./catalog/twotone/y.g").SHARD,z:()=>require("./catalog/twotone/z.g").SHARD}};
|
|
1
|
+
"use strict";export const ICON_NAMES=["aave","activity","add","add-circle","add-square","additem","airdrop","airplane","airplane-square","airpod","airpods","alarm","alert-circle","alert-triangle","align-bottom","align-horizontally","align-left","align-right","align-top","align-vertically","android","ankr","apple","aquarius","archive","archive-add","archive-book","archive-box","archive-minus","archive-slash","archive-tick","arrange-horizontal","arrange-horizontal-circle","arrange-horizontal-square","arrange-vertical","arrange-vertical-circle","arrange-vertical-square","arrow","arrow-circle-down","arrow-circle-down-2","arrow-circle-left","arrow-circle-left-2","arrow-circle-right","arrow-circle-right-2","arrow-circle-up","arrow-circle-up-2","arrow-down","arrow-down-2","arrow-down-3","arrow-down-up","arrow-forward","arrow-forward-square","arrow-left","arrow-left-2","arrow-left-3","arrow-right","arrow-right-2","arrow-right-3","arrow-rotate-left","arrow-rotate-right","arrow-square","arrow-square-down","arrow-square-left","arrow-square-right","arrow-square-up","arrow-swap-horizontal","arrow-swap-vertical","arrow-up","arrow-up-2","arrow-up-3","arrow-up-right","at","attach-circle","attach-square","audio-square","augur","autobrightness","autonio","avalanche","award","back","back-square","backward","backward-10-seconds","backward-15-seconds","backward-5-seconds","backward-item","badge-check","bag","bag-2","bag-cross","bag-cross-1","bag-happy","bag-tick","bag-tick-2","bag-timer","ban","bank","barcode","battery-charging","battery-disable","battery-empty","battery-empty-1","battery-full","be","bell","bezier","bill","binance-coin","binance-usd","bitcoin","bitcoin-card","bitcoin-convert","bitcoin-refresh","blend","blend-2","blogger","bluetooth","bluetooth-2","bluetooth-circle","bluetooth-rectangle","blur","bolt","book","book-1","book-saved","book-square","bookmark","bookmark-2","bootstrap","box","box-1","box-2","box-add","box-remove","box-seam","box-search","box-tick","box-time","briefcase","briefcase-cross","briefcase-tick","briefcase-timer","brifecase-cross","brifecase-tick","brifecase-timer","brodcast","broom","brush","brush-2","brush-3","brush-big","brush-square","bubble","bucket","bucket-circle","bucket-square","bug","building","building-2","building-3","building-4","buildings","buildings-2","buliding","bullseye","bus","buy-crypto","cake","calculator","calendar","calendar-1","calendar-2","calendar-add","calendar-check","calendar-circle","calendar-dots","calendar-edit","calendar-remove","calendar-search","calendar-tick","call","call-add","call-calling","call-incoming","call-minus","call-outgoing","call-received","call-remove","call-slash","camera","camera-slash","candle","candle-2","car","card","card-add","card-coin","card-edit","card-pos","card-receive","card-remove","card-remove-1","card-send","card-slash","card-tick","card-tick-1","cardano","cards","cash-stack","category","category-2","cd","celo","celsius","chainlink","chart","chart-1","chart-2","chart-21","chart-circle","chart-column","chart-fail","chart-square","chart-success","chat","chat-dots","check","check-check","check-circle","chemical-glass","chevron-down","chevron-left","chevron-right","chevron-up","chevrons-left","chevrons-right","chevrons-up-down","chrome","circle","circle-help","civic","clipboard","clipboard-check","clipboard-close","clipboard-export","clipboard-import","clipboard-text","clipboard-tick","clock","close-circle","close-square","cloud","cloud-add","cloud-change","cloud-connection","cloud-cross","cloud-drizzle","cloud-fog","cloud-lightning","cloud-minus","cloud-notif","cloud-plus","cloud-remove","cloud-snow","cloud-sunny","code","code-1","code-circle","coffee","coin","coin-1","coins","color-swatch","colorfilter","colors-square","command","command-square","comment","component","computing","contact","convert","convert-3-d-cube","convert-card","convertshape","convertshape-2","copy","copy-success","copyright","courthouse","cpu","cpu-charge","cpu-setting","creative-commons","credit-card","crop","crown","crown-1","cup","cursor","cut","dai","danger","dash","data","data-2","decred","dent","designtools","device-message","devices","diagram","diagram-3","diamonds","direct","direct-down","direct-inbox","direct-left","direct-normal","direct-notification","direct-right","direct-send","direct-up","directbox-default","directbox-notif","directbox-receive","directbox-send","discount-circle","discount-shape","discover","dislike","display","document","document-cloud","document-code","document-code-2","document-copy","document-download","document-favorite","document-filter","document-forward","document-like","document-previous","document-sketch","document-text","document-text-1","document-upload","dollar-circle","dollar-square","download","dribbble","driver","driver-2","driver-refresh","driving","drop","dropbox","edit","edit-2","educare","electricity","element","element-2","element-3","element-4","element-equal","element-plus","emercoin","emoji-happy","emoji-normal","emoji-sad","emoji-smile","empty-wallet","empty-wallet-add","empty-wallet-change","empty-wallet-remove","empty-wallet-tick","empty-wallet-time","enjin-coin","eos","eraser","eraser-square","ethereum","ethereum-classic","export","export-circle","export-curve","export-square","external-drive","external-link","eye","eye-off","eye-slash","facebook","factory","fatrows","favorite-chart","figma","figma-1","file-plus-2","file-text","files","filter","filter-add","filter-edit","filter-remove","filter-search","filter-square","filter-tick","finger-cricle","finger-scan","firstline","flag","flag-2","flame","flash","flash-circle","flash-slash","flashy","folder","folder-2","folder-add","folder-cloud","folder-connection","folder-cross","folder-favorite","folder-kanban","folder-minus","folder-open","folder-plus","forbidden","forbidden-2","format-circle","format-square","forward","forward-10-seconds","forward-15-seconds","forward-5-seconds","forward-item","framer","ftx-token","gallery","gallery-add","gallery-edit","gallery-export","gallery-favorite","gallery-import","gallery-remove","gallery-slash","gallery-tick","game","gameboy","gas-station","gauge","gemini","gemini-2","ghost","gift","github","glass","global","global-edit","global-refresh","global-search","globe","globe2","google","google-drive","google-play","gps","gps-slash","grammerly","graph","grid","grid-1","grid-2","grid-3","grid-4","grid-5","grid-6","grid-7","grid-8","grid-9","grid-edit","grid-eraser","grid-lock","hamberger-menu","hamburger-menu","hand","happyemoji","hard-hat","harmony","hashtag","hashtag-down","hashtag-square","hashtag-up","headphone","headphones","health","heart","heart-add","heart-circle","heart-edit","heart-remove","heart-search","heart-slash","heart-tick","hedera-hashgraph","hex","hierarchy","hierarchy-2","hierarchy-3","hierarchy-square","hierarchy-square-2","hierarchy-square-3","history","home","home-2","home-3","home-hashtag","home-trend-down","home-trend-up","home-wifi","hospital","house","house-2","html-3","html-5","huobi-token","i-24-support","i-3-d-cube-scan","i-3-d-rotate","i-3-d-square","i-3-dcube","i-3-square","icon","illustrator","image","import","import-circle","import-curve","import-square","inbox","info","info-circle","information","instagram","iost","java-script","js","judge","kanban","key","key-square","keyboard","keyboard-open","kyber-network","lamp","lamp-charge","lamp-on","lamp-slash","language-circle","language-square","layer","layout-dashboard","layout-grid","layout-maximize","level","lifebuoy","lightbulb","like","like-1","like-dislike","like-shapes","like-tag","link","link-1","link-2","link-21","link-circle","link-square","linkedin","list","litecoin","location","location-add","location-cross","location-discover","location-minus","location-slash","location-tick","lock","lock-1","lock-circle","lock-slash","log-out","login","login-curve","logout","logout-curve","lovely","magic-star","magicpen","mail","main-component","maker","man","map","map-1","map-pin","mask","mask-left","mask-right","math","maximize","maximize-1","maximize-2","maximize-3","maximize-4","maximize-circle","medal","medal-star","menu","menu-board","message","message-2","message-add","message-add-1","message-circle","message-edit","message-favorite","message-minus","message-notif","message-programming","message-question","message-remove","message-search","message-square","message-text","message-text-1","message-tick","message-time","messages","messages-1","messages-2","messages-3","messenger","microphone","microphone-2","microphone-slash","microphone-slash-1","microscope","microsoft","milk","mini-music-sqaure","minus","minus-circle","minus-cirlce","minus-square","mirror","mirroring-screen","mobile","mobile-programming","monero","money","money-2","money-3","money-4","money-add","money-archive","money-change","money-forbidden","money-receive","money-recive","money-remove","money-send","money-tick","money-time","moneys","monitor","monitor-mobbile","monitor-recorder","moon","more","more-2","more-circle","more-horizontal","more-square","mouse","mouse-circle","mouse-square","music","music-circle","music-dashboard","music-filter","music-library-2","music-play","music-playlist","music-square","music-square-add","music-square-remove","music-square-search","musicnote","nebulas","nem","nexo","next","note","note-1","note-add","note-favorite","note-remove","note-square","note-text","notepad","notepad-2","notification","notification-1","notification-bing","notification-circle","notification-favorite","notification-status","ocean-protocol","okb","okru","omega-circle","omega-square","ontology","paintbucket","palette","panel-left-close","panel-left-open","paperclip","paperclip-2","password-check","path-tool","path-tool-2","path-tool-square","pause","pause-circle","paypal","pen-add","pen-close","pen-remove","pen-tool","pen-tool-2","pencil","people","percentage-circle","percentage-square","personalcard","pet","pharagraphspacing","phone","photoshop","picture-frame","play","play-add","play-circle","play-cricle","play-remove","plug","plus","plus-circle","pointer","polkadot","polygon","polyswarm","presentation-chart","presention-chart","previous","printer","printer-slash","profile","profile-2-user","profile-add","profile-circle","profile-delete","profile-remove","profile-tick","programming-arrow","programming-arrows","python","quant","quote-down","quote-down-circle","quote-down-square","quote-up","quote-up-circle","quote-up-square","radar","radar-2","radio","ram","ram-2","rank","ranking","receipt","receipt-1","receipt-2","receipt-21","receipt-add","receipt-discount","receipt-disscount","receipt-edit","receipt-item","receipt-minus","receipt-search","receipt-square","receipt-text","receive","receive-square","receive-square-2","record","record-circle","recovery-convert","reddit","refresh","refresh-2","refresh-circle","refresh-cw","refresh-left-square","refresh-right-square","refresh-square","repeat","repeat-circle","repeate-music","repeate-one","reserve","robot","rotate-ccw","rotate-cw","rotate-left","rotate-right","route-square","routing","routing-2","row-horizontal","row-vertical","ruler","ruler-pen","safe-home","sagittarius","save-2","save-add","save-minus","save-remove","scan","scan-barcode","scanner","scanning","scissor","screenmirroring","scroll","search","search-favorite","search-favorite-1","search-normal","search-normal-1","search-status","search-status-1","search-zoom-in","search-zoom-in-1","search-zoom-out","search-zoom-out-1","security","security-card","security-safe","security-time","security-user","send","send-2","server","setting","setting-2","setting-3","setting-4","setting-5","settings","shapes","shapes-1","share","share-2","shield","shield-check","shield-cross","shield-lock","shield-plus","shield-search","shield-security","shield-slash","shield-tick","ship","shop","shop-add","shop-remove","shopping-bag","shopping-cart","shuffle","shutterstock","siacoin","sidebar-bottom","sidebar-left","sidebar-right","sidebar-top","signpost","simcard","simcard-1","simcard-2","size","slack","slash","slider","slider-horizontal","slider-horizontal-1","slider-vertical","slider-vertical-1","smallcaps","smart-car","smart-home","smileys","sms","sms-edit","sms-notification","sms-search","sms-star","sms-tracking","snapchat","snowflake","solana","sort","sound","sparkles","speaker","speedometer","spotify","stacks","star","star-1","star-slash","stars","status","status-up","stellar","sticker","stickynote","stop","stop-circle","story","strongbox","strongbox-2","subtitle","sun","sun-1","sun-fog","table-document","table-lamp","tag","tag-2","tag-cross","tag-right","tag-user","task","task-square","teacher","telephone","tenx","tether","text","text-block","text-bold","text-italic","text-underline","textalign-center","textalign-justifycenter","textalign-justifyleft","textalign-justifyright","textalign-left","textalign-right","the-graph","theta","thorchain","thumbs-down","thumbs-up","tick-circle","tick-square","ticket","ticket-2","ticket-discount","ticket-expired","ticket-star","timer","timer-1","timer-pause","timer-start","toggle-off","toggle-off-circle","toggle-on","toggle-on-circle","trade","transaction-minus","translate","transmit","transmit-sqaure-2","transmit-square","trash","trash-2","tree","trello","trend-down","trend-up","trending-up","triangle","triangle-logo","trontron","truck","truck-fast","truck-remove","truck-tick","truck-time","trush-square","twitch","two-page","ui-8","unlimited","unlock","upload","usd-coin","user","user-add","user-check","user-cirlce-add","user-edit","user-minus","user-octagon","user-plus","user-remove","user-search","user-square","user-tag","user-tick","users","velas","verify","vibe","video","video-add","video-circle","video-horizontal","video-octagon","video-play","video-remove","video-slash","video-square","video-tick","video-time","video-vertical","voice-circle","voice-cricle","voice-square","volume","volume-cross","volume-high","volume-low","volume-low-1","volume-mute","volume-slash","volume-up","wallet","wallet-1","wallet-2","wallet-3","wallet-add","wallet-add-1","wallet-check","wallet-minus","wallet-money","wallet-remove","wallet-search","wallet2","wanchain","wanchain-1","wand-sparkles","warning-2","watch","watch-status","weight","weight-meter","whatsapp","wifi","wifi-square","wind","wind-2","windows","wing","woman","wrist-clock","x","x-circle","xd","xiaomi","xrp","youtube","zap","zel","zoom","zoom-in","zoom-out"];export const CATALOG_LOADERS={linear:{a:()=>require("./catalog/linear/a.g").SHARD,b:()=>require("./catalog/linear/b.g").SHARD,c:()=>require("./catalog/linear/c.g").SHARD,d:()=>require("./catalog/linear/d.g").SHARD,e:()=>require("./catalog/linear/e.g").SHARD,f:()=>require("./catalog/linear/f.g").SHARD,g:()=>require("./catalog/linear/g.g").SHARD,h:()=>require("./catalog/linear/h.g").SHARD,i:()=>require("./catalog/linear/i.g").SHARD,j:()=>require("./catalog/linear/j.g").SHARD,k:()=>require("./catalog/linear/k.g").SHARD,l:()=>require("./catalog/linear/l.g").SHARD,m:()=>require("./catalog/linear/m.g").SHARD,n:()=>require("./catalog/linear/n.g").SHARD,o:()=>require("./catalog/linear/o.g").SHARD,p:()=>require("./catalog/linear/p.g").SHARD,q:()=>require("./catalog/linear/q.g").SHARD,r:()=>require("./catalog/linear/r.g").SHARD,s:()=>require("./catalog/linear/s.g").SHARD,t:()=>require("./catalog/linear/t.g").SHARD,u:()=>require("./catalog/linear/u.g").SHARD,v:()=>require("./catalog/linear/v.g").SHARD,w:()=>require("./catalog/linear/w.g").SHARD,x:()=>require("./catalog/linear/x.g").SHARD,y:()=>require("./catalog/linear/y.g").SHARD,z:()=>require("./catalog/linear/z.g").SHARD},bold:{a:()=>require("./catalog/bold/a.g").SHARD,b:()=>require("./catalog/bold/b.g").SHARD,c:()=>require("./catalog/bold/c.g").SHARD,d:()=>require("./catalog/bold/d.g").SHARD,e:()=>require("./catalog/bold/e.g").SHARD,f:()=>require("./catalog/bold/f.g").SHARD,g:()=>require("./catalog/bold/g.g").SHARD,h:()=>require("./catalog/bold/h.g").SHARD,i:()=>require("./catalog/bold/i.g").SHARD,j:()=>require("./catalog/bold/j.g").SHARD,k:()=>require("./catalog/bold/k.g").SHARD,l:()=>require("./catalog/bold/l.g").SHARD,m:()=>require("./catalog/bold/m.g").SHARD,n:()=>require("./catalog/bold/n.g").SHARD,o:()=>require("./catalog/bold/o.g").SHARD,p:()=>require("./catalog/bold/p.g").SHARD,q:()=>require("./catalog/bold/q.g").SHARD,r:()=>require("./catalog/bold/r.g").SHARD,s:()=>require("./catalog/bold/s.g").SHARD,t:()=>require("./catalog/bold/t.g").SHARD,u:()=>require("./catalog/bold/u.g").SHARD,v:()=>require("./catalog/bold/v.g").SHARD,w:()=>require("./catalog/bold/w.g").SHARD,x:()=>require("./catalog/bold/x.g").SHARD,y:()=>require("./catalog/bold/y.g").SHARD,z:()=>require("./catalog/bold/z.g").SHARD},broken:{a:()=>require("./catalog/broken/a.g").SHARD,b:()=>require("./catalog/broken/b.g").SHARD,c:()=>require("./catalog/broken/c.g").SHARD,d:()=>require("./catalog/broken/d.g").SHARD,e:()=>require("./catalog/broken/e.g").SHARD,f:()=>require("./catalog/broken/f.g").SHARD,g:()=>require("./catalog/broken/g.g").SHARD,h:()=>require("./catalog/broken/h.g").SHARD,i:()=>require("./catalog/broken/i.g").SHARD,j:()=>require("./catalog/broken/j.g").SHARD,k:()=>require("./catalog/broken/k.g").SHARD,l:()=>require("./catalog/broken/l.g").SHARD,m:()=>require("./catalog/broken/m.g").SHARD,n:()=>require("./catalog/broken/n.g").SHARD,o:()=>require("./catalog/broken/o.g").SHARD,p:()=>require("./catalog/broken/p.g").SHARD,q:()=>require("./catalog/broken/q.g").SHARD,r:()=>require("./catalog/broken/r.g").SHARD,s:()=>require("./catalog/broken/s.g").SHARD,t:()=>require("./catalog/broken/t.g").SHARD,u:()=>require("./catalog/broken/u.g").SHARD,v:()=>require("./catalog/broken/v.g").SHARD,w:()=>require("./catalog/broken/w.g").SHARD,x:()=>require("./catalog/broken/x.g").SHARD,y:()=>require("./catalog/broken/y.g").SHARD,z:()=>require("./catalog/broken/z.g").SHARD},bulk:{a:()=>require("./catalog/bulk/a.g").SHARD,b:()=>require("./catalog/bulk/b.g").SHARD,c:()=>require("./catalog/bulk/c.g").SHARD,d:()=>require("./catalog/bulk/d.g").SHARD,e:()=>require("./catalog/bulk/e.g").SHARD,f:()=>require("./catalog/bulk/f.g").SHARD,g:()=>require("./catalog/bulk/g.g").SHARD,h:()=>require("./catalog/bulk/h.g").SHARD,i:()=>require("./catalog/bulk/i.g").SHARD,j:()=>require("./catalog/bulk/j.g").SHARD,k:()=>require("./catalog/bulk/k.g").SHARD,l:()=>require("./catalog/bulk/l.g").SHARD,m:()=>require("./catalog/bulk/m.g").SHARD,n:()=>require("./catalog/bulk/n.g").SHARD,o:()=>require("./catalog/bulk/o.g").SHARD,p:()=>require("./catalog/bulk/p.g").SHARD,q:()=>require("./catalog/bulk/q.g").SHARD,r:()=>require("./catalog/bulk/r.g").SHARD,s:()=>require("./catalog/bulk/s.g").SHARD,t:()=>require("./catalog/bulk/t.g").SHARD,u:()=>require("./catalog/bulk/u.g").SHARD,v:()=>require("./catalog/bulk/v.g").SHARD,w:()=>require("./catalog/bulk/w.g").SHARD,x:()=>require("./catalog/bulk/x.g").SHARD,y:()=>require("./catalog/bulk/y.g").SHARD,z:()=>require("./catalog/bulk/z.g").SHARD},outline:{a:()=>require("./catalog/outline/a.g").SHARD,b:()=>require("./catalog/outline/b.g").SHARD,c:()=>require("./catalog/outline/c.g").SHARD,d:()=>require("./catalog/outline/d.g").SHARD,e:()=>require("./catalog/outline/e.g").SHARD,f:()=>require("./catalog/outline/f.g").SHARD,g:()=>require("./catalog/outline/g.g").SHARD,h:()=>require("./catalog/outline/h.g").SHARD,i:()=>require("./catalog/outline/i.g").SHARD,j:()=>require("./catalog/outline/j.g").SHARD,k:()=>require("./catalog/outline/k.g").SHARD,l:()=>require("./catalog/outline/l.g").SHARD,m:()=>require("./catalog/outline/m.g").SHARD,n:()=>require("./catalog/outline/n.g").SHARD,o:()=>require("./catalog/outline/o.g").SHARD,p:()=>require("./catalog/outline/p.g").SHARD,q:()=>require("./catalog/outline/q.g").SHARD,r:()=>require("./catalog/outline/r.g").SHARD,s:()=>require("./catalog/outline/s.g").SHARD,t:()=>require("./catalog/outline/t.g").SHARD,u:()=>require("./catalog/outline/u.g").SHARD,v:()=>require("./catalog/outline/v.g").SHARD,w:()=>require("./catalog/outline/w.g").SHARD,x:()=>require("./catalog/outline/x.g").SHARD,y:()=>require("./catalog/outline/y.g").SHARD,z:()=>require("./catalog/outline/z.g").SHARD},twotone:{a:()=>require("./catalog/twotone/a.g").SHARD,b:()=>require("./catalog/twotone/b.g").SHARD,c:()=>require("./catalog/twotone/c.g").SHARD,d:()=>require("./catalog/twotone/d.g").SHARD,e:()=>require("./catalog/twotone/e.g").SHARD,f:()=>require("./catalog/twotone/f.g").SHARD,g:()=>require("./catalog/twotone/g.g").SHARD,h:()=>require("./catalog/twotone/h.g").SHARD,i:()=>require("./catalog/twotone/i.g").SHARD,j:()=>require("./catalog/twotone/j.g").SHARD,k:()=>require("./catalog/twotone/k.g").SHARD,l:()=>require("./catalog/twotone/l.g").SHARD,m:()=>require("./catalog/twotone/m.g").SHARD,n:()=>require("./catalog/twotone/n.g").SHARD,o:()=>require("./catalog/twotone/o.g").SHARD,p:()=>require("./catalog/twotone/p.g").SHARD,q:()=>require("./catalog/twotone/q.g").SHARD,r:()=>require("./catalog/twotone/r.g").SHARD,s:()=>require("./catalog/twotone/s.g").SHARD,t:()=>require("./catalog/twotone/t.g").SHARD,u:()=>require("./catalog/twotone/u.g").SHARD,v:()=>require("./catalog/twotone/v.g").SHARD,w:()=>require("./catalog/twotone/w.g").SHARD,x:()=>require("./catalog/twotone/x.g").SHARD,y:()=>require("./catalog/twotone/y.g").SHARD,z:()=>require("./catalog/twotone/z.g").SHARD}};
|