@factorialco/f0-react-native 0.25.0 → 0.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. package/lib/module/components/Activity/ActivityItem/index.js +1 -1
  2. package/lib/module/components/Avatars/BaseAvatar/index.js +1 -1
  3. package/lib/module/components/Avatars/DateAvatar/index.js +1 -1
  4. package/lib/module/components/Avatars/EmojiAvatar/index.js +1 -1
  5. package/lib/module/components/Avatars/FileAvatar/index.js +1 -1
  6. package/lib/module/components/Avatars/FileAvatar/utils.js +1 -1
  7. package/lib/module/components/Avatars/IconAvatar/index.js +1 -1
  8. package/lib/module/components/Avatars/ModuleAvatar/index.js +1 -1
  9. package/lib/module/components/Badge/index.js +1 -1
  10. package/lib/module/components/Button/index.js +1 -1
  11. package/lib/module/components/Counter/index.js +1 -1
  12. package/lib/module/components/ExampleComponent.js +1 -1
  13. package/lib/module/components/Icon/README.md +1 -1
  14. package/lib/module/components/Navigation/PageHeader/index.js +1 -1
  15. package/lib/module/components/OneChip/index.js +1 -1
  16. package/lib/module/components/OnePreset/index.js +1 -1
  17. package/lib/module/components/Tags/AlertTab/index.js +1 -1
  18. package/lib/module/components/Tags/BaseTag/index.js +1 -1
  19. package/lib/module/components/Tags/DotTag/index.js +1 -1
  20. package/lib/module/components/Tags/RawTag/index.js +1 -1
  21. package/lib/module/components/experimental/Lists/DataList/ItemContainer.js +1 -1
  22. package/lib/module/components/experimental/Lists/DataList/actions/CopyAction.js +1 -1
  23. package/lib/module/components/experimental/Lists/DataList/actions/GenericAction.js +1 -1
  24. package/lib/module/components/experimental/Lists/DataList/index.js +1 -1
  25. package/lib/module/components/experimental/Lists/DetailsItemsList/index.js +1 -1
  26. package/lib/module/components/exports.js +1 -1
  27. package/lib/module/components/exports.js.map +1 -1
  28. package/lib/module/components/primitives/F0Text/F0Text.js +2 -0
  29. package/lib/module/components/primitives/F0Text/F0Text.js.map +1 -0
  30. package/lib/module/components/primitives/F0Text/F0Text.md +297 -0
  31. package/lib/module/components/primitives/F0Text/F0Text.styles.js +2 -0
  32. package/lib/module/components/primitives/F0Text/F0Text.styles.js.map +1 -0
  33. package/lib/module/components/primitives/F0Text/F0Text.types.js +2 -0
  34. package/lib/module/components/primitives/F0Text/F0Text.types.js.map +1 -0
  35. package/lib/module/components/primitives/F0Text/index.js +2 -0
  36. package/lib/module/components/primitives/F0Text/index.js.map +1 -0
  37. package/lib/module/icons/app/QuestionCircle.js +1 -1
  38. package/lib/module/icons/app/QuestionCircle.js.map +1 -1
  39. package/lib/module/icons/app/index.js +1 -1
  40. package/lib/module/icons/app/index.js.map +1 -1
  41. package/lib/module/index.js +1 -1
  42. package/lib/module/index.js.map +1 -1
  43. package/lib/module/lib/utils.js +1 -1
  44. package/lib/module/lib/utils.js.map +1 -1
  45. package/lib/module/styles/theme.css +308 -237
  46. package/lib/module/styles/tokens/colors.js +1 -1
  47. package/lib/module/styles/tokens/colors.js.map +1 -1
  48. package/lib/module/ui/avatar.js +1 -1
  49. package/lib/typescript/components/OneChip/index.d.ts +2 -2
  50. package/lib/typescript/components/exports.d.ts +1 -0
  51. package/lib/typescript/components/exports.d.ts.map +1 -1
  52. package/lib/typescript/components/primitives/F0Text/F0Text.d.ts +8 -0
  53. package/lib/typescript/components/primitives/F0Text/F0Text.d.ts.map +1 -0
  54. package/lib/typescript/components/primitives/F0Text/F0Text.styles.d.ts +141 -0
  55. package/lib/typescript/components/primitives/F0Text/F0Text.styles.d.ts.map +1 -0
  56. package/lib/typescript/components/primitives/F0Text/F0Text.types.d.ts +86 -0
  57. package/lib/typescript/components/primitives/F0Text/F0Text.types.d.ts.map +1 -0
  58. package/lib/typescript/components/primitives/F0Text/index.d.ts +9 -0
  59. package/lib/typescript/components/primitives/F0Text/index.d.ts.map +1 -0
  60. package/lib/typescript/icons/app/index.d.ts +1 -1
  61. package/lib/typescript/icons/app/index.d.ts.map +1 -1
  62. package/lib/typescript/index.d.ts +1 -1
  63. package/lib/typescript/index.d.ts.map +1 -1
  64. package/lib/typescript/lib/utils.d.ts +9 -0
  65. package/lib/typescript/lib/utils.d.ts.map +1 -1
  66. package/lib/typescript/styles/tokens/colors.d.ts +2 -2
  67. package/package.json +2 -2
  68. package/src/components/Activity/ActivityItem/__snapshots__/index.spec.tsx.snap +3 -3
  69. package/src/components/Activity/ActivityItem/index.tsx +10 -10
  70. package/src/components/Avatars/BaseAvatar/index.tsx +1 -1
  71. package/src/components/Avatars/CompanyAvatar/__snapshots__/index.spec.tsx.snap +1 -1
  72. package/src/components/Avatars/DateAvatar/__snapshots__/index.spec.tsx.snap +3 -3
  73. package/src/components/Avatars/DateAvatar/index.tsx +3 -3
  74. package/src/components/Avatars/EmojiAvatar/__snapshots__/index.spec.tsx.snap +3 -3
  75. package/src/components/Avatars/EmojiAvatar/index.tsx +1 -1
  76. package/src/components/Avatars/FileAvatar/__snapshots__/index.spec.tsx.snap +26 -26
  77. package/src/components/Avatars/FileAvatar/index.tsx +2 -2
  78. package/src/components/Avatars/FileAvatar/utils.ts +13 -13
  79. package/src/components/Avatars/IconAvatar/__snapshots__/index.spec.tsx.snap +6 -6
  80. package/src/components/Avatars/IconAvatar/index.tsx +2 -2
  81. package/src/components/Avatars/ModuleAvatar/index.tsx +1 -1
  82. package/src/components/Avatars/PersonAvatar/__snapshots__/index.spec.tsx.snap +1 -1
  83. package/src/components/Avatars/TeamAvatar/__snapshots__/index.spec.tsx.snap +1 -1
  84. package/src/components/Badge/index.tsx +5 -5
  85. package/src/components/Button/__snapshots__/index.spec.tsx.snap +22 -22
  86. package/src/components/Button/index.tsx +22 -22
  87. package/src/components/Counter/__snapshots__/index.spec.tsx.snap +14 -14
  88. package/src/components/Counter/index.tsx +6 -6
  89. package/src/components/ExampleComponent.tsx +2 -2
  90. package/src/components/Icon/README.md +1 -1
  91. package/src/components/Navigation/PageHeader/__snapshots__/index.spec.tsx.snap +4 -4
  92. package/src/components/Navigation/PageHeader/index.tsx +1 -1
  93. package/src/components/OneChip/__snapshots__/index.spec.tsx.snap +11 -11
  94. package/src/components/OneChip/index.tsx +5 -5
  95. package/src/components/OnePreset/__snapshots__/index.spec.tsx.snap +8 -8
  96. package/src/components/OnePreset/index.tsx +3 -3
  97. package/src/components/Tags/AlertTab/__snapshots__/index.spec.tsx.snap +9 -9
  98. package/src/components/Tags/AlertTab/index.tsx +9 -9
  99. package/src/components/Tags/BaseTag/index.tsx +2 -2
  100. package/src/components/Tags/DotTag/__snapshots__/index.spec.tsx.snap +38 -38
  101. package/src/components/Tags/DotTag/index.tsx +1 -1
  102. package/src/components/Tags/RawTag/__snapshots__/index.spec.tsx.snap +6 -6
  103. package/src/components/Tags/RawTag/index.tsx +3 -3
  104. package/src/components/experimental/Lists/DataList/ItemContainer.tsx +2 -2
  105. package/src/components/experimental/Lists/DataList/actions/CopyAction.tsx +4 -4
  106. package/src/components/experimental/Lists/DataList/actions/GenericAction.tsx +3 -3
  107. package/src/components/experimental/Lists/DataList/index.tsx +1 -1
  108. package/src/components/experimental/Lists/DetailsItem/__snapshots__/index.spec.tsx.snap +26 -26
  109. package/src/components/experimental/Lists/DetailsItemsList/__snapshots__/index.spec.tsx.snap +26 -26
  110. package/src/components/experimental/Lists/DetailsItemsList/index.tsx +3 -3
  111. package/src/components/exports.ts +3 -0
  112. package/src/components/primitives/F0Text/F0Text.md +297 -0
  113. package/src/components/primitives/F0Text/F0Text.styles.ts +69 -0
  114. package/src/components/primitives/F0Text/F0Text.tsx +76 -0
  115. package/src/components/primitives/F0Text/F0Text.types.ts +133 -0
  116. package/src/components/primitives/F0Text/__tests__/__snapshots__/index.spec.tsx.snap +316 -0
  117. package/src/components/primitives/F0Text/__tests__/index.spec.tsx +227 -0
  118. package/src/components/primitives/F0Text/index.ts +22 -0
  119. package/src/icons/app/QuestionCircle.tsx +1 -1
  120. package/src/icons/app/index.ts +1 -1
  121. package/src/index.ts +1 -1
  122. package/src/lib/__tests__/utils.spec.ts +48 -0
  123. package/src/lib/utils.ts +19 -0
  124. package/src/styles/theme.css +308 -237
  125. package/src/styles/tokens/colors.ts +2 -2
  126. package/src/ui/avatar.tsx +1 -1
@@ -1,2 +1,2 @@
1
- import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import{useState}from"react";import{View,Text,Pressable}from"react-native";import{IconAvatar}from"../../Avatars/exports";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";export var ActivityItem=function ActivityItem(_ref){var id=_ref.id,date=_ref.date,title=_ref.title,description=_ref.description,icon=_ref.icon,category=_ref.category,_ref$isUnread=_ref.isUnread,isUnread=_ref$isUnread===void 0?false:_ref$isUnread,_onPress=_ref.onPress;var _useState=useState(false),_useState2=_slicedToArray(_useState,2),isPressed=_useState2[0],setIsPressed=_useState2[1];return _jsxs(Pressable,{className:`flex w-full flex-row gap-2 rounded-lg p-2 pr-3 ${isPressed?"bg-f1-background-hover":""}`,onPressIn:function onPressIn(){return setIsPressed(false);},onPressOut:function onPressOut(){return setIsPressed(false);},onPress:function onPress(){return _onPress(id);},accessibilityLabel:"activity-item",children:[icon&&_jsx(View,{accessibilityLabel:"activity-icon-container",children:_jsx(IconAvatar,{icon:icon,size:"md"})}),_jsxs(View,{className:"flex-1",children:[_jsx(Text,{className:"line-clamp-1 text-lg font-medium text-f1-foreground",children:title}),_jsx(Text,{className:"line-clamp-2 text-lg text-f1-foreground-secondary",children:description}),_jsx(View,{className:"mt-1.5 flex flex-row",children:_jsx(Text,{className:"text-md text-f1-foreground-secondary",children:`${category} · ${date}`})})]}),_jsx(View,{className:"ml-1",children:isUnread&&_jsx(View,{accessibilityLabel:"unread-indicator",className:"mt-1.5 h-2 w-2 rounded-full bg-f1-icon-accent"})})]});};export var ActivityItemSkeleton=function ActivityItemSkeleton(){return _jsxs(View,{accessibilityLabel:"activity-skeleton",className:"flex w-full flex-row gap-2 rounded-lg p-2 pr-3",children:[_jsx(View,{className:"h-10 w-10 rounded-lg bg-f1-background-secondary"}),_jsxs(View,{className:"flex-1",children:[_jsx(View,{className:"mb-1 h-5 w-3/4 rounded-sm bg-f1-background-secondary"}),_jsx(View,{className:"mb-1 h-5 w-full rounded-sm bg-f1-background-secondary"}),_jsx(View,{className:"mb-1.5 h-5 w-2/3 rounded-sm bg-f1-background-secondary"}),_jsx(View,{className:"h-5 w-1/2 rounded-sm bg-f1-background-secondary"})]}),_jsx(View,{className:"ml-1 w-2"})]});};
1
+ import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import{useState}from"react";import{View,Text,Pressable}from"react-native";import{IconAvatar}from"../../Avatars/exports";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";export var ActivityItem=function ActivityItem(_ref){var id=_ref.id,date=_ref.date,title=_ref.title,description=_ref.description,icon=_ref.icon,category=_ref.category,_ref$isUnread=_ref.isUnread,isUnread=_ref$isUnread===void 0?false:_ref$isUnread,_onPress=_ref.onPress;var _useState=useState(false),_useState2=_slicedToArray(_useState,2),isPressed=_useState2[0],setIsPressed=_useState2[1];return _jsxs(Pressable,{className:`flex w-full flex-row gap-2 rounded-lg p-2 pr-3 ${isPressed?"bg-f0-background-hover":""}`,onPressIn:function onPressIn(){return setIsPressed(false);},onPressOut:function onPressOut(){return setIsPressed(false);},onPress:function onPress(){return _onPress(id);},accessibilityLabel:"activity-item",children:[icon&&_jsx(View,{accessibilityLabel:"activity-icon-container",children:_jsx(IconAvatar,{icon:icon,size:"md"})}),_jsxs(View,{className:"flex-1",children:[_jsx(Text,{className:"line-clamp-1 text-lg font-medium text-f0-foreground",children:title}),_jsx(Text,{className:"line-clamp-2 text-lg text-f0-foreground-secondary",children:description}),_jsx(View,{className:"mt-1.5 flex flex-row",children:_jsx(Text,{className:"text-md text-f0-foreground-secondary",children:`${category} · ${date}`})})]}),_jsx(View,{className:"ml-1",children:isUnread&&_jsx(View,{accessibilityLabel:"unread-indicator",className:"mt-1.5 h-2 w-2 rounded-full bg-f0-icon-accent"})})]});};export var ActivityItemSkeleton=function ActivityItemSkeleton(){return _jsxs(View,{accessibilityLabel:"activity-skeleton",className:"flex w-full flex-row gap-2 rounded-lg p-2 pr-3",children:[_jsx(View,{className:"h-10 w-10 rounded-lg bg-f0-background-secondary"}),_jsxs(View,{className:"flex-1",children:[_jsx(View,{className:"mb-1 h-5 w-3/4 rounded-sm bg-f0-background-secondary"}),_jsx(View,{className:"mb-1 h-5 w-full rounded-sm bg-f0-background-secondary"}),_jsx(View,{className:"mb-1.5 h-5 w-2/3 rounded-sm bg-f0-background-secondary"}),_jsx(View,{className:"h-5 w-1/2 rounded-sm bg-f0-background-secondary"})]}),_jsx(View,{className:"ml-1 w-2"})]});};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import{useMemo}from"react";import{View}from"react-native";import{Avatar as AvatarComponent,AvatarFallback,AvatarImage}from"../../../ui/avatar";import{Badge}from"../../Badge";import{ModuleAvatar}from"../ModuleAvatar";import{getAvatarColor,getInitials}from"./utils";import{jsx as _jsx,Fragment as _Fragment,jsxs as _jsxs}from"react/jsx-runtime";var getAvatarSize=function getAvatarSize(size){var sizeMap={xlarge:"lg",large:"md",small:"sm"};return size&&sizeMap[size]?sizeMap[size]:sizeMap.small;};var getBadgeSize=function getBadgeSize(size){var sizeMap={xlarge:"lg",large:"md",small:"sm"};return size&&sizeMap[size]?sizeMap[size]:sizeMap.small;};export var BaseAvatar=function BaseAvatar(_ref){var src=_ref.src,name=_ref.name,size=_ref.size,_ref$type=_ref.type,type=_ref$type===void 0?"base":_ref$type,_ref$color=_ref.color,color=_ref$color===void 0?"random":_ref$color,ariaLabel=_ref["aria-label"],ariaLabelledby=_ref["aria-labelledby"],badge=_ref.badge;var initials=getInitials(name,size);var avatarColor=color==="random"?getAvatarColor(Array.isArray(name)?name.join(""):name):color;var hasAria=Boolean(ariaLabel||ariaLabelledby);var badgeSize=getBadgeSize(size);var moduleAvatarSize=getAvatarSize(size);var badgeContent=useMemo(function(){return badge?_jsxs(_Fragment,{children:[badge.type==="module"&&_jsx(ModuleAvatar,{module:badge.module,size:moduleAvatarSize}),badge.type!=="module"&&_jsx(Badge,{type:badge.type,icon:badge.icon,size:badgeSize})]}):null;},[badge,badgeSize,moduleAvatarSize]);return _jsxs(View,{className:`inline-flex ${badge&&badge.type==="module"?"p-[3px]":""}`,children:[_jsx(View,{className:"h-fit w-fit",children:_jsx(AvatarComponent,{size:size,type:type,color:avatarColor,role:"img","aria-hidden":!hasAria,"aria-label":ariaLabel,"aria-labelledby":ariaLabelledby,"data-a11y-color-contrast-ignore":true,className:src?"bg-f1-background dark:bg-f1-background-inverse-secondary":"",children:src?_jsx(AvatarImage,{src:src,alt:initials}):_jsx(AvatarFallback,{size:size,"data-a11y-color-contrast-ignore":true,children:initials})})}),badge&&_jsx(View,{className:"absolute -right-0.5 -bottom-0.5",children:badgeContent})]});};BaseAvatar.displayName="BaseAvatar";
1
+ import{useMemo}from"react";import{View}from"react-native";import{Avatar as AvatarComponent,AvatarFallback,AvatarImage}from"../../../ui/avatar";import{Badge}from"../../Badge";import{ModuleAvatar}from"../ModuleAvatar";import{getAvatarColor,getInitials}from"./utils";import{jsx as _jsx,Fragment as _Fragment,jsxs as _jsxs}from"react/jsx-runtime";var getAvatarSize=function getAvatarSize(size){var sizeMap={xlarge:"lg",large:"md",small:"sm"};return size&&sizeMap[size]?sizeMap[size]:sizeMap.small;};var getBadgeSize=function getBadgeSize(size){var sizeMap={xlarge:"lg",large:"md",small:"sm"};return size&&sizeMap[size]?sizeMap[size]:sizeMap.small;};export var BaseAvatar=function BaseAvatar(_ref){var src=_ref.src,name=_ref.name,size=_ref.size,_ref$type=_ref.type,type=_ref$type===void 0?"base":_ref$type,_ref$color=_ref.color,color=_ref$color===void 0?"random":_ref$color,ariaLabel=_ref["aria-label"],ariaLabelledby=_ref["aria-labelledby"],badge=_ref.badge;var initials=getInitials(name,size);var avatarColor=color==="random"?getAvatarColor(Array.isArray(name)?name.join(""):name):color;var hasAria=Boolean(ariaLabel||ariaLabelledby);var badgeSize=getBadgeSize(size);var moduleAvatarSize=getAvatarSize(size);var badgeContent=useMemo(function(){return badge?_jsxs(_Fragment,{children:[badge.type==="module"&&_jsx(ModuleAvatar,{module:badge.module,size:moduleAvatarSize}),badge.type!=="module"&&_jsx(Badge,{type:badge.type,icon:badge.icon,size:badgeSize})]}):null;},[badge,badgeSize,moduleAvatarSize]);return _jsxs(View,{className:`inline-flex ${badge&&badge.type==="module"?"p-[3px]":""}`,children:[_jsx(View,{className:"h-fit w-fit",children:_jsx(AvatarComponent,{size:size,type:type,color:avatarColor,role:"img","aria-hidden":!hasAria,"aria-label":ariaLabel,"aria-labelledby":ariaLabelledby,"data-a11y-color-contrast-ignore":true,className:src?"bg-f0-background dark:bg-f0-background-inverse-secondary":"",children:src?_jsx(AvatarImage,{src:src,alt:initials}):_jsx(AvatarFallback,{size:size,"data-a11y-color-contrast-ignore":true,children:initials})})}),badge&&_jsx(View,{className:"absolute -right-0.5 -bottom-0.5",children:badgeContent})]});};BaseAvatar.displayName="BaseAvatar";
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import{View,Text}from"react-native";import{getAbbreviateMonth,getDayOfMonth}from"../../../lib/date";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";export var DateAvatar=function DateAvatar(_ref){var date=_ref.date;var dateDay=getDayOfMonth(date);var month=getAbbreviateMonth(date);return _jsxs(View,{className:"flex h-10 w-10 flex-col items-center justify-center rounded border border-solid border-f1-border-secondary bg-f1-background-inverse-secondary",children:[_jsx(Text,{className:"pt-0.5 text-xs leading-3 font-semibold text-f1-special-highlight uppercase dark:text-f1-foreground-inverse-secondary",children:month}),_jsx(Text,{className:"flex items-center justify-center text-lg leading-tight font-medium text-f1-foreground",children:dateDay})]});};
1
+ import{View,Text}from"react-native";import{getAbbreviateMonth,getDayOfMonth}from"../../../lib/date";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";export var DateAvatar=function DateAvatar(_ref){var date=_ref.date;var dateDay=getDayOfMonth(date);var month=getAbbreviateMonth(date);return _jsxs(View,{className:"flex h-10 w-10 flex-col items-center justify-center rounded border border-solid border-f0-border-secondary bg-f0-background-inverse-secondary",children:[_jsx(Text,{className:"pt-0.5 text-xs leading-3 font-semibold text-f0-special-highlight uppercase dark:text-f0-foreground-inverse-secondary",children:month}),_jsx(Text,{className:"flex items-center justify-center text-lg leading-tight font-medium text-f0-foreground",children:dateDay})]});};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import{View}from"react-native";import{EmojiImage}from"../../../lib/emojis";import{cn}from"../../../lib/utils";import{jsx as _jsx}from"react/jsx-runtime";var sizes={sm:"w-6 h-6 rounded-sm",md:"w-9 h-9 rounded-md",lg:"w-10 h-10 rounded-lg"};var emojiSize={sm:{icon:"w-4 h-4",text:"text-xs"},md:{icon:"w-5 h-5",text:"text-sm"},lg:{icon:"w-6 h-6",text:"text-md"}};export var EmojiAvatar=function EmojiAvatar(_ref){var emoji=_ref.emoji,_ref$size=_ref.size,size=_ref$size===void 0?"md":_ref$size,className=_ref.className;return _jsx(View,{className:cn(className,sizes[size],"flex aspect-square items-center justify-center border border-solid border-f1-border-secondary bg-f1-background dark:bg-f1-background-inverse-secondary"),children:_jsx(EmojiImage,{emoji:emoji,size:emojiSize[size]})});};EmojiAvatar.displayName="EmojiAvatar";
1
+ import{View}from"react-native";import{EmojiImage}from"../../../lib/emojis";import{cn}from"../../../lib/utils";import{jsx as _jsx}from"react/jsx-runtime";var sizes={sm:"w-6 h-6 rounded-sm",md:"w-9 h-9 rounded-md",lg:"w-10 h-10 rounded-lg"};var emojiSize={sm:{icon:"w-4 h-4",text:"text-xs"},md:{icon:"w-5 h-5",text:"text-sm"},lg:{icon:"w-6 h-6",text:"text-md"}};export var EmojiAvatar=function EmojiAvatar(_ref){var emoji=_ref.emoji,_ref$size=_ref.size,size=_ref$size===void 0?"md":_ref$size,className=_ref.className;return _jsx(View,{className:cn(className,sizes[size],"flex aspect-square items-center justify-center border border-solid border-f0-border-secondary bg-f0-background dark:bg-f0-background-inverse-secondary"),children:_jsx(EmojiImage,{emoji:emoji,size:emojiSize[size]})});};EmojiAvatar.displayName="EmojiAvatar";
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["file","className","size","badge"];import{useMemo}from"react";import{Text}from"react-native";import{View}from"react-native";import{cn}from"../../../lib/utils";import{Avatar}from"../../../ui/avatar";import{Badge}from"../../Badge";import{getInitials}from"../BaseAvatar/utils";import{ModuleAvatar}from"../ModuleAvatar";import{getFileTypeInfo}from"./utils";import{jsx as _jsx,Fragment as _Fragment,jsxs as _jsxs}from"react/jsx-runtime";var textSizes={xsmall:"text-xs",small:"text-xs",medium:"text-sm",large:"text-md",xlarge:"text-2xl"};var getAvatarSize=function getAvatarSize(size){var sizeMap={xlarge:"lg",large:"md",small:"sm"};return size&&sizeMap[size]?sizeMap[size]:sizeMap.small;};var getBadgeSize=function getBadgeSize(size){var sizeMap={xlarge:"lg",large:"md",small:"sm"};return size&&sizeMap[size]?sizeMap[size]:sizeMap.small;};export var FileAvatar=function FileAvatar(_ref){var file=_ref.file,className=_ref.className,_ref$size=_ref.size,size=_ref$size===void 0?"medium":_ref$size,badge=_ref.badge,props=_objectWithoutProperties(_ref,_excluded);var _getFileTypeInfo=getFileTypeInfo(file),fileType=_getFileTypeInfo.type,fileColor=_getFileTypeInfo.color;var initials=getInitials(fileType,size,true);var badgeSize=getBadgeSize(size);var moduleAvatarSize=getAvatarSize(size);var badgeContent=useMemo(function(){return badge?_jsxs(_Fragment,{children:[badge.type==="module"&&_jsx(ModuleAvatar,{module:badge.module,size:moduleAvatarSize}),badge.type!=="module"&&_jsx(Badge,{type:badge.type,icon:badge.icon,size:badgeSize})]}):null;},[badge,badgeSize,moduleAvatarSize]);return _jsxs(View,{className:`inline-flex ${badge&&badge.type==="module"?"p-[3px]":""}`,children:[_jsx(View,{className:"h-fit w-fit",children:_jsx(Avatar,Object.assign({size:size,className:cn("border border-solid border-f1-border-secondary bg-f1-background",className)},props,{children:_jsx(Text,{className:cn("font-semibold text-f1-foreground-inverse/90",textSizes[size],fileColor),children:initials})}))}),badge&&_jsx(View,{className:"absolute -right-0.5 -bottom-0.5",children:badgeContent})]});};FileAvatar.displayName="FileAvatar";
1
+ import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["file","className","size","badge"];import{useMemo}from"react";import{Text}from"react-native";import{View}from"react-native";import{cn}from"../../../lib/utils";import{Avatar}from"../../../ui/avatar";import{Badge}from"../../Badge";import{getInitials}from"../BaseAvatar/utils";import{ModuleAvatar}from"../ModuleAvatar";import{getFileTypeInfo}from"./utils";import{jsx as _jsx,Fragment as _Fragment,jsxs as _jsxs}from"react/jsx-runtime";var textSizes={xsmall:"text-xs",small:"text-xs",medium:"text-sm",large:"text-md",xlarge:"text-2xl"};var getAvatarSize=function getAvatarSize(size){var sizeMap={xlarge:"lg",large:"md",small:"sm"};return size&&sizeMap[size]?sizeMap[size]:sizeMap.small;};var getBadgeSize=function getBadgeSize(size){var sizeMap={xlarge:"lg",large:"md",small:"sm"};return size&&sizeMap[size]?sizeMap[size]:sizeMap.small;};export var FileAvatar=function FileAvatar(_ref){var file=_ref.file,className=_ref.className,_ref$size=_ref.size,size=_ref$size===void 0?"medium":_ref$size,badge=_ref.badge,props=_objectWithoutProperties(_ref,_excluded);var _getFileTypeInfo=getFileTypeInfo(file),fileType=_getFileTypeInfo.type,fileColor=_getFileTypeInfo.color;var initials=getInitials(fileType,size,true);var badgeSize=getBadgeSize(size);var moduleAvatarSize=getAvatarSize(size);var badgeContent=useMemo(function(){return badge?_jsxs(_Fragment,{children:[badge.type==="module"&&_jsx(ModuleAvatar,{module:badge.module,size:moduleAvatarSize}),badge.type!=="module"&&_jsx(Badge,{type:badge.type,icon:badge.icon,size:badgeSize})]}):null;},[badge,badgeSize,moduleAvatarSize]);return _jsxs(View,{className:`inline-flex ${badge&&badge.type==="module"?"p-[3px]":""}`,children:[_jsx(View,{className:"h-fit w-fit",children:_jsx(Avatar,Object.assign({size:size,className:cn("border border-solid border-f0-border-secondary bg-f0-background",className)},props,{children:_jsx(Text,{className:cn("font-semibold text-f0-foreground-inverse/90",textSizes[size],fileColor),children:initials})}))}),badge&&_jsx(View,{className:"absolute -right-0.5 -bottom-0.5",children:badgeContent})]});};FileAvatar.displayName="FileAvatar";
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- var FILE_TYPE_MAP={pdf:{type:"PDF",color:"text-f1-foreground-accent"},image:{type:"IMG",color:"text-f1-foreground-info"},doc:{type:"DOC",color:"text-f1-foreground-info"},excel:{type:"XLS",color:"text-f1-foreground-positive"},ppt:{type:"PPT",color:"text-f1-foreground-warning"},txt:{type:"TXT",color:"text-f1-foreground-secondary"},video:{type:"VID",color:"text-f1-foreground-info"},audio:{type:"AUD",color:"text-f1-foreground-accent"},archive:{type:"ZIP",color:"text-f1-foreground-warning"},csv:{type:"CSV",color:"text-f1-foreground-positive"},html:{type:"HTML",color:"text-f1-foreground-accent"},markdown:{type:"MD",color:"text-f1-foreground-secondary"},default:{type:"FILE",color:"text-f1-foreground"}};var MIME_MATCH_MAP={pdf:"pdf",image:"image",word:"doc",excel:"excel",powerpoint:"ppt",text:"txt",video:"video",audio:"audio",archive:"archive",csv:"csv",html:"html",markdown:"markdown",zip:"archive",rar:"archive",tar:"archive",gz:"archive","7z":"archive"};var EXTENSION_MAP={pdf:"pdf",jpg:"image",jpeg:"image",png:"image",gif:"image",svg:"image",doc:"doc",docx:"doc",xls:"excel",xlsx:"excel",csv:"csv",ppt:"ppt",pptx:"ppt",txt:"txt",mp4:"video",mov:"video",mkv:"video",avi:"video",webm:"video",mp3:"audio",wav:"audio",flac:"audio",ogg:"audio",zip:"archive",rar:"archive",tar:"archive",gz:"archive","7z":"archive",html:"html",htm:"html",md:"markdown",markdown:"markdown"};var getFileTypeInfo=function getFileTypeInfo(file){var _file$type$toLowerCas,_file$type;var mimeType=(_file$type$toLowerCas=(_file$type=file.type)==null?void 0:_file$type.toLowerCase())!=null?_file$type$toLowerCas:"";var matchedMimeKey=Object.keys(MIME_MATCH_MAP).find(function(key){return mimeType.includes(key);});if(matchedMimeKey){return FILE_TYPE_MAP[MIME_MATCH_MAP[matchedMimeKey]];}var extension=file.name.toLowerCase().split(".").pop();if(extension&&EXTENSION_MAP[extension]){return FILE_TYPE_MAP[EXTENSION_MAP[extension]];}return FILE_TYPE_MAP.default;};export{getFileTypeInfo};
1
+ var FILE_TYPE_MAP={pdf:{type:"PDF",color:"text-f0-foreground-accent"},image:{type:"IMG",color:"text-f0-foreground-info"},doc:{type:"DOC",color:"text-f0-foreground-info"},excel:{type:"XLS",color:"text-f0-foreground-positive"},ppt:{type:"PPT",color:"text-f0-foreground-warning"},txt:{type:"TXT",color:"text-f0-foreground-secondary"},video:{type:"VID",color:"text-f0-foreground-info"},audio:{type:"AUD",color:"text-f0-foreground-accent"},archive:{type:"ZIP",color:"text-f0-foreground-warning"},csv:{type:"CSV",color:"text-f0-foreground-positive"},html:{type:"HTML",color:"text-f0-foreground-accent"},markdown:{type:"MD",color:"text-f0-foreground-secondary"},default:{type:"FILE",color:"text-f0-foreground"}};var MIME_MATCH_MAP={pdf:"pdf",image:"image",word:"doc",excel:"excel",powerpoint:"ppt",text:"txt",video:"video",audio:"audio",archive:"archive",csv:"csv",html:"html",markdown:"markdown",zip:"archive",rar:"archive",tar:"archive",gz:"archive","7z":"archive"};var EXTENSION_MAP={pdf:"pdf",jpg:"image",jpeg:"image",png:"image",gif:"image",svg:"image",doc:"doc",docx:"doc",xls:"excel",xlsx:"excel",csv:"csv",ppt:"ppt",pptx:"ppt",txt:"txt",mp4:"video",mov:"video",mkv:"video",avi:"video",webm:"video",mp3:"audio",wav:"audio",flac:"audio",ogg:"audio",zip:"archive",rar:"archive",tar:"archive",gz:"archive","7z":"archive",html:"html",htm:"html",md:"markdown",markdown:"markdown"};var getFileTypeInfo=function getFileTypeInfo(file){var _file$type$toLowerCas,_file$type;var mimeType=(_file$type$toLowerCas=(_file$type=file.type)==null?void 0:_file$type.toLowerCase())!=null?_file$type$toLowerCas:"";var matchedMimeKey=Object.keys(MIME_MATCH_MAP).find(function(key){return mimeType.includes(key);});if(matchedMimeKey){return FILE_TYPE_MAP[MIME_MATCH_MAP[matchedMimeKey]];}var extension=file.name.toLowerCase().split(".").pop();if(extension&&EXTENSION_MAP[extension]){return FILE_TYPE_MAP[EXTENSION_MAP[extension]];}return FILE_TYPE_MAP.default;};export{getFileTypeInfo};
2
2
  //# sourceMappingURL=utils.js.map
@@ -1,2 +1,2 @@
1
- import{View}from"react-native";import{cn}from"../../../lib/utils";import{Icon}from"../../Icon";import{jsx as _jsx}from"react/jsx-runtime";var sizes={sm:"h-6 w-6 rounded-sm",md:"h-9 w-9 rounded-md",lg:"h-10 w-10 rounded-lg"};export var IconAvatar=function IconAvatar(_ref){var icon=_ref.icon,_ref$size=_ref.size,size=_ref$size===void 0?"md":_ref$size,className=_ref.className;return _jsx(View,{className:cn("flex aspect-square items-center justify-center border border-solid border-f1-border-secondary",sizes[size],className),children:_jsx(Icon,{icon:icon,size:size,className:"text-f1-foreground-secondary"})});};IconAvatar.displayName="IconAvatar";
1
+ import{View}from"react-native";import{cn}from"../../../lib/utils";import{Icon}from"../../Icon";import{jsx as _jsx}from"react/jsx-runtime";var sizes={sm:"h-6 w-6 rounded-sm",md:"h-9 w-9 rounded-md",lg:"h-10 w-10 rounded-lg"};export var IconAvatar=function IconAvatar(_ref){var icon=_ref.icon,_ref$size=_ref.size,size=_ref$size===void 0?"md":_ref$size,className=_ref.className;return _jsx(View,{className:cn("flex aspect-square items-center justify-center border border-solid border-f0-border-secondary",sizes[size],className),children:_jsx(Icon,{icon:icon,size:size,className:"text-f0-foreground-secondary"})});};IconAvatar.displayName="IconAvatar";
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["size"];import{View}from"react-native";import Svg,{Defs,LinearGradient,Stop,Path}from"react-native-svg";import{tv}from"tailwind-variants";import{applyIconInterop}from"../../Icon";import{modules}from"./modules";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";var moduleAvatarVariants=tv({base:"relative flex shrink-0 items-center justify-center",variants:{size:{sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8",xl:"h-10 w-10"}},defaultVariants:{size:"md"}});var iconContainerVariants=tv({base:"absolute inset-0 items-center justify-center z-10",variants:{size:{sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8",xl:"h-10 w-10"}},defaultVariants:{size:"md"}});var iconSizeVariants=tv({base:"relative text-f1-foreground-inverse drop-shadow",variants:{size:{sm:"h-[14px] w-[14px]",md:"h-[18px] w-[18px]",lg:"h-6 w-6",xl:"h-8 w-8"}},defaultVariants:{size:"md"}});var squirclePath="M50,0 C43,0 36,0 30,1 23,2 17,5 12,9 5,16 1,25 0,36 0,43 0,57 0,64 1,75 5,84 12,91 17,95 23,98 30,99 36,100 43,100 50,100 57,100 64,100 70,99 77,98 83,95 88,91 95,84 99,75 100,64 100,57 100,43 100,36 99,25 95,16 88,9 83,5 77,2 70,1 64,0 57,0 50,0";export var ModuleAvatar=function ModuleAvatar(_ref){var _ref$size=_ref.size,size=_ref$size===void 0?"md":_ref$size,props=_objectWithoutProperties(_ref,_excluded);var IconComponent="icon"in props?applyIconInterop(props.icon):applyIconInterop(modules[props.module]);var code=Math.random().toString(36).substring(2,15);var gradientId=`gradient-${code}`;return _jsxs(View,{className:moduleAvatarVariants({size:size}),accessibilityRole:"image",children:[_jsxs(Svg,{viewBox:"0 0 100 100",className:"absolute h-full w-full",preserveAspectRatio:"none",children:[_jsx(Defs,{children:_jsxs(LinearGradient,{id:gradientId,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[_jsx(Stop,{offset:"0%",stopColor:"#FF355E"}),_jsx(Stop,{offset:"44%",stopColor:"#FF355E"}),_jsx(Stop,{offset:"100%",stopColor:"#D62D4F"})]})}),_jsx(Path,{d:squirclePath,fill:`url(#${gradientId})`,stroke:"white",strokeWidth:10,transform:"scale(0.95) translate(2.5 2.5)"})]}),_jsx(View,{className:iconContainerVariants({size:size}),children:_jsx(IconComponent,{className:iconSizeVariants({size:size})})})]});};ModuleAvatar.displayName="IconAvatar";
1
+ import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["size"];import{View}from"react-native";import Svg,{Defs,LinearGradient,Stop,Path}from"react-native-svg";import{tv}from"tailwind-variants";import{applyIconInterop}from"../../Icon";import{modules}from"./modules";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";var moduleAvatarVariants=tv({base:"relative flex shrink-0 items-center justify-center",variants:{size:{sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8",xl:"h-10 w-10"}},defaultVariants:{size:"md"}});var iconContainerVariants=tv({base:"absolute inset-0 items-center justify-center z-10",variants:{size:{sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8",xl:"h-10 w-10"}},defaultVariants:{size:"md"}});var iconSizeVariants=tv({base:"relative text-f0-foreground-inverse drop-shadow",variants:{size:{sm:"h-[14px] w-[14px]",md:"h-[18px] w-[18px]",lg:"h-6 w-6",xl:"h-8 w-8"}},defaultVariants:{size:"md"}});var squirclePath="M50,0 C43,0 36,0 30,1 23,2 17,5 12,9 5,16 1,25 0,36 0,43 0,57 0,64 1,75 5,84 12,91 17,95 23,98 30,99 36,100 43,100 50,100 57,100 64,100 70,99 77,98 83,95 88,91 95,84 99,75 100,64 100,57 100,43 100,36 99,25 95,16 88,9 83,5 77,2 70,1 64,0 57,0 50,0";export var ModuleAvatar=function ModuleAvatar(_ref){var _ref$size=_ref.size,size=_ref$size===void 0?"md":_ref$size,props=_objectWithoutProperties(_ref,_excluded);var IconComponent="icon"in props?applyIconInterop(props.icon):applyIconInterop(modules[props.module]);var code=Math.random().toString(36).substring(2,15);var gradientId=`gradient-${code}`;return _jsxs(View,{className:moduleAvatarVariants({size:size}),accessibilityRole:"image",children:[_jsxs(Svg,{viewBox:"0 0 100 100",className:"absolute h-full w-full",preserveAspectRatio:"none",children:[_jsx(Defs,{children:_jsxs(LinearGradient,{id:gradientId,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[_jsx(Stop,{offset:"0%",stopColor:"#FF355E"}),_jsx(Stop,{offset:"44%",stopColor:"#FF355E"}),_jsx(Stop,{offset:"100%",stopColor:"#D62D4F"})]})}),_jsx(Path,{d:squirclePath,fill:`url(#${gradientId})`,stroke:"white",strokeWidth:10,transform:"scale(0.95) translate(2.5 2.5)"})]}),_jsx(View,{className:iconContainerVariants({size:size}),children:_jsx(IconComponent,{className:iconSizeVariants({size:size})})})]});};ModuleAvatar.displayName="IconAvatar";
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import{tv}from"tailwind-variants";import{Icon}from"../Icon";import{jsx as _jsx}from"react/jsx-runtime";var badgeVariants=tv({base:"flex shrink-0 items-center justify-center rounded-full",variants:{type:{neutral:"bg-transparent text-f1-icon",highlight:"text-f1-special-highlight",positive:"bg-f1-background-positive-bold text-f1-foreground-inverse",critical:"bg-f1-icon-critical text-f1-foreground-inverse",warning:"bg-f1-background-warning-bold text-f1-foreground-inverse"},size:{xs:"h-2.5 w-2.5",sm:"h-3 w-3",md:"h-5 w-5",lg:"h-6 w-6"}},defaultVariants:{type:"neutral",size:"md"}});var iconSizes={xs:"xs",sm:"xs",md:"sm",lg:"md"};export var Badge=function Badge(_ref){var type=_ref.type,_ref$size=_ref.size,size=_ref$size===void 0?"md":_ref$size,icon=_ref.icon;return _jsx(Icon,{className:badgeVariants({type:type,size:size}),icon:icon,size:iconSizes[size]});};
1
+ import{tv}from"tailwind-variants";import{Icon}from"../Icon";import{jsx as _jsx}from"react/jsx-runtime";var badgeVariants=tv({base:"flex shrink-0 items-center justify-center rounded-full",variants:{type:{neutral:"bg-transparent text-f0-icon",highlight:"text-f0-special-highlight",positive:"bg-f0-background-positive-bold text-f0-foreground-inverse",critical:"bg-f0-icon-critical text-f0-foreground-inverse",warning:"bg-f0-background-warning-bold text-f0-foreground-inverse"},size:{xs:"h-2.5 w-2.5",sm:"h-3 w-3",md:"h-5 w-5",lg:"h-6 w-6"}},defaultVariants:{type:"neutral",size:"md"}});var iconSizes={xs:"xs",sm:"xs",md:"sm",lg:"md"};export var Badge=function Badge(_ref){var type=_ref.type,_ref$size=_ref.size,size=_ref$size===void 0?"md":_ref$size,icon=_ref.icon;return _jsx(Icon,{className:badgeVariants({type:type,size:size}),icon:icon,size:iconSizes[size]});};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import _asyncToGenerator from"@babel/runtime/helpers/asyncToGenerator";import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import React,{forwardRef,useState}from"react";import{Pressable,Text,View}from"react-native";import{tv}from"tailwind-variants";import{cn}from"../../lib/utils";import{Icon}from"../Icon";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";export var variants=["default","outline","critical","neutral","ghost","promote"];export var sizes=["sm","md","lg"];var buttonVariants=tv({base:"flex-row items-center justify-center rounded border-none grow-0",variants:{variant:{default:"bg-f1-background-accent-bold",outline:"bg-f1-background-inverse-secondary border border-f1-border",neutral:"bg-f1-background-secondary",critical:"bg-f1-background-secondary border border-f1-border",ghost:"bg-transparent",promote:"bg-f1-background-promote border border-f1-border-promote"},size:{sm:"h-6 rounded-sm",md:"h-8 rounded",lg:"h-10 rounded-md"},disabled:{true:"opacity-50",false:""},round:{true:"aspect-square p-0",false:"gap-1 px-2 sm:px-3 lg:px-4"}},defaultVariants:{variant:"default",size:"md",disabled:false,round:false}});var pressedVariants=tv({base:"",variants:{variant:{default:"bg-f1-background-accent-bold-hover",outline:"bg-f1-background-tertiary border-opacity-70",neutral:"bg-f1-background-secondary-hover",critical:"bg-f1-background-critical-bold border-transparent",ghost:"bg-f1-background-secondary-hover",promote:"bg-f1-background-promote-hover"}},defaultVariants:{variant:"default"}});var getIconColor=function getIconColor(variant,isPressed){switch(variant){case"default":return"text-f1-icon-inverse";case"critical":return isPressed?"text-f1-icon-inverse":"text-f1-icon-critical-bold";default:return"text-f1-icon";}};var getIconOnlyColor=function getIconOnlyColor(variant,isPressed){switch(variant){case"critical":return isPressed?"text-f1-icon-inverse":"text-f1-icon-critical-bold";case"default":return"text-f1-icon-inverse";case"outline":case"neutral":case"ghost":case"promote":default:return"text-f1-icon-bold";}};var getTextColorClass=function getTextColorClass(variant,isPressed){if(isPressed&&variant==="critical"){return"text-f1-foreground-inverse";}switch(variant){case"default":return"text-f1-foreground-inverse";case"critical":return"text-f1-foreground-critical";default:return"text-f1-foreground";}};export var Button=forwardRef(function Button(_ref,ref){var label=_ref.label,onPress=_ref.onPress,_ref$disabled=_ref.disabled,disabled=_ref$disabled===void 0?false:_ref$disabled,_ref$loading=_ref.loading,loading=_ref$loading===void 0?false:_ref$loading,icon=_ref.icon,emoji=_ref.emoji,_ref$hideLabel=_ref.hideLabel,hideLabel=_ref$hideLabel===void 0?false:_ref$hideLabel,_ref$variant=_ref.variant,variant=_ref$variant===void 0?"default":_ref$variant,_ref$size=_ref.size,size=_ref$size===void 0?"md":_ref$size,_ref$round=_ref.round,round=_ref$round===void 0?false:_ref$round,className=_ref.className,accessibilityHint=_ref.accessibilityHint,_ref$showBadge=_ref.showBadge,showBadge=_ref$showBadge===void 0?false:_ref$showBadge,_ref$fullWidth=_ref.fullWidth,fullWidth=_ref$fullWidth===void 0?false:_ref$fullWidth;var _useState=useState(false),_useState2=_slicedToArray(_useState,2),isLoading=_useState2[0],setIsLoading=_useState2[1];var _useState3=useState(false),_useState4=_slicedToArray(_useState3,2),isPressed=_useState4[0],setIsPressed=_useState4[1];var handlePress=function(){var _ref2=_asyncToGenerator(function*(){if(!onPress||disabled||loading||isLoading)return;var result=onPress();if(result instanceof Promise){setIsLoading(true);try{yield result;}finally{setIsLoading(false);}}});return function handlePress(){return _ref2.apply(this,arguments);};}();var isDisabled=disabled||loading||isLoading;var accessibilityLabel=`${label}${isDisabled?", disabled":""}${loading||isLoading?", loading":""}`;var shouldShowPressed=isPressed&&!isDisabled;return _jsxs(View,{className:`flex ${fullWidth?"flex-1":"item-start"}`,children:[_jsxs(Pressable,{ref:ref,disabled:isDisabled,onPressIn:function onPressIn(){return setIsPressed(true);},onPressOut:function onPressOut(){return setIsPressed(false);},onPress:handlePress,className:cn(buttonVariants({variant:variant,size:size,disabled:isDisabled,round:hideLabel&&round}),shouldShowPressed&&pressedVariants({variant:variant}),className),accessibilityLabel:accessibilityLabel,accessibilityRole:"button",accessibilityState:{disabled:isDisabled,busy:loading||isLoading},accessibilityHint:accessibilityHint,children:[icon&&_jsx(Icon,{icon:icon,size:size==="sm"?"sm":"md",className:cn(hideLabel&&round?undefined:"-ml-0.5",hideLabel&&round?getIconOnlyColor(variant,shouldShowPressed):getIconColor(variant,shouldShowPressed))}),emoji&&_jsx(Text,{className:cn("text-base font-medium",getTextColorClass(variant,shouldShowPressed)),children:emoji}),!hideLabel&&_jsx(Text,{className:cn("text-base font-medium",getTextColorClass(variant,shouldShowPressed)),children:label})]}),showBadge&&variant==="outline"&&_jsx(View,{accessibilityLabel:"Notification Badge",className:"absolute top-1.5 right-1.5 h-1.5 w-1.5 rounded-full bg-f1-icon-accent"})]});});
1
+ import _asyncToGenerator from"@babel/runtime/helpers/asyncToGenerator";import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import React,{forwardRef,useState}from"react";import{Pressable,Text,View}from"react-native";import{tv}from"tailwind-variants";import{cn}from"../../lib/utils";import{Icon}from"../Icon";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";export var variants=["default","outline","critical","neutral","ghost","promote"];export var sizes=["sm","md","lg"];var buttonVariants=tv({base:"flex-row items-center justify-center rounded border-none grow-0",variants:{variant:{default:"bg-f0-background-accent-bold",outline:"bg-f0-background-inverse-secondary border border-f0-border",neutral:"bg-f0-background-secondary",critical:"bg-f0-background-secondary border border-f0-border",ghost:"bg-transparent",promote:"bg-f0-background-promote border border-f0-border-promote"},size:{sm:"h-6 rounded-sm",md:"h-8 rounded",lg:"h-10 rounded-md"},disabled:{true:"opacity-50",false:""},round:{true:"aspect-square p-0",false:"gap-1 px-2 sm:px-3 lg:px-4"}},defaultVariants:{variant:"default",size:"md",disabled:false,round:false}});var pressedVariants=tv({base:"",variants:{variant:{default:"bg-f0-background-accent-bold-hover",outline:"bg-f0-background-tertiary border-opacity-70",neutral:"bg-f0-background-secondary-hover",critical:"bg-f0-background-critical-bold border-transparent",ghost:"bg-f0-background-secondary-hover",promote:"bg-f0-background-promote-hover"}},defaultVariants:{variant:"default"}});var getIconColor=function getIconColor(variant,isPressed){switch(variant){case"default":return"text-f0-icon-inverse";case"critical":return isPressed?"text-f0-icon-inverse":"text-f0-icon-critical-bold";default:return"text-f0-icon";}};var getIconOnlyColor=function getIconOnlyColor(variant,isPressed){switch(variant){case"critical":return isPressed?"text-f0-icon-inverse":"text-f0-icon-critical-bold";case"default":return"text-f0-icon-inverse";case"outline":case"neutral":case"ghost":case"promote":default:return"text-f0-icon-bold";}};var getTextColorClass=function getTextColorClass(variant,isPressed){if(isPressed&&variant==="critical"){return"text-f0-foreground-inverse";}switch(variant){case"default":return"text-f0-foreground-inverse";case"critical":return"text-f0-foreground-critical";default:return"text-f0-foreground";}};export var Button=forwardRef(function Button(_ref,ref){var label=_ref.label,onPress=_ref.onPress,_ref$disabled=_ref.disabled,disabled=_ref$disabled===void 0?false:_ref$disabled,_ref$loading=_ref.loading,loading=_ref$loading===void 0?false:_ref$loading,icon=_ref.icon,emoji=_ref.emoji,_ref$hideLabel=_ref.hideLabel,hideLabel=_ref$hideLabel===void 0?false:_ref$hideLabel,_ref$variant=_ref.variant,variant=_ref$variant===void 0?"default":_ref$variant,_ref$size=_ref.size,size=_ref$size===void 0?"md":_ref$size,_ref$round=_ref.round,round=_ref$round===void 0?false:_ref$round,className=_ref.className,accessibilityHint=_ref.accessibilityHint,_ref$showBadge=_ref.showBadge,showBadge=_ref$showBadge===void 0?false:_ref$showBadge,_ref$fullWidth=_ref.fullWidth,fullWidth=_ref$fullWidth===void 0?false:_ref$fullWidth;var _useState=useState(false),_useState2=_slicedToArray(_useState,2),isLoading=_useState2[0],setIsLoading=_useState2[1];var _useState3=useState(false),_useState4=_slicedToArray(_useState3,2),isPressed=_useState4[0],setIsPressed=_useState4[1];var handlePress=function(){var _ref2=_asyncToGenerator(function*(){if(!onPress||disabled||loading||isLoading)return;var result=onPress();if(result instanceof Promise){setIsLoading(true);try{yield result;}finally{setIsLoading(false);}}});return function handlePress(){return _ref2.apply(this,arguments);};}();var isDisabled=disabled||loading||isLoading;var accessibilityLabel=`${label}${isDisabled?", disabled":""}${loading||isLoading?", loading":""}`;var shouldShowPressed=isPressed&&!isDisabled;return _jsxs(View,{className:`flex ${fullWidth?"flex-1":"item-start"}`,children:[_jsxs(Pressable,{ref:ref,disabled:isDisabled,onPressIn:function onPressIn(){return setIsPressed(true);},onPressOut:function onPressOut(){return setIsPressed(false);},onPress:handlePress,className:cn(buttonVariants({variant:variant,size:size,disabled:isDisabled,round:hideLabel&&round}),shouldShowPressed&&pressedVariants({variant:variant}),className),accessibilityLabel:accessibilityLabel,accessibilityRole:"button",accessibilityState:{disabled:isDisabled,busy:loading||isLoading},accessibilityHint:accessibilityHint,children:[icon&&_jsx(Icon,{icon:icon,size:size==="sm"?"sm":"md",className:cn(hideLabel&&round?undefined:"-ml-0.5",hideLabel&&round?getIconOnlyColor(variant,shouldShowPressed):getIconColor(variant,shouldShowPressed))}),emoji&&_jsx(Text,{className:cn("text-base font-medium",getTextColorClass(variant,shouldShowPressed)),children:emoji}),!hideLabel&&_jsx(Text,{className:cn("text-base font-medium",getTextColorClass(variant,shouldShowPressed)),children:label})]}),showBadge&&variant==="outline"&&_jsx(View,{accessibilityLabel:"Notification Badge",className:"absolute top-1.5 right-1.5 h-1.5 w-1.5 rounded-full bg-f0-icon-accent"})]});});
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import{Text,View}from"react-native";import{tv}from"tailwind-variants";import{cn}from"../../lib/utils";import{jsx as _jsx}from"react/jsx-runtime";var counterContainerVariants=tv({base:"flex items-center justify-center rounded-xs grow-0 px-0.5",variants:{size:{md:"min-w-5 h-5",sm:"min-w-4 h-4"},type:{default:"bg-f1-background-secondary border border-f1-border",selected:"bg-f1-background-selected-bold outline-f1-border-selected",bold:"bg-f1-background-accent-bold"}},defaultVariants:{size:"md",type:"default"}});var counterTextVariants=tv({base:"text-center text-sm font-medium tabular-nums whitespace-nowrap",variants:{size:{md:"",sm:"leading-none py-0.5"},type:{default:"text-f1-foreground",selected:"text-f1-foreground-inverse",bold:"text-f1-foreground-inverse"}},defaultVariants:{type:"default"}});export function Counter(_ref){var size=_ref.size,type=_ref.type,value=_ref.value,maxValue=_ref.maxValue;var displayValue=maxValue&&value>maxValue?`+${maxValue}`:value;return _jsx(View,{className:"flex items-start",children:_jsx(View,{className:cn(counterContainerVariants({size:size,type:type})),children:_jsx(Text,{className:cn(counterTextVariants({type:type,size:size})),children:displayValue})})});}
1
+ import{Text,View}from"react-native";import{tv}from"tailwind-variants";import{cn}from"../../lib/utils";import{jsx as _jsx}from"react/jsx-runtime";var counterContainerVariants=tv({base:"flex items-center justify-center rounded-xs grow-0 px-0.5",variants:{size:{md:"min-w-5 h-5",sm:"min-w-4 h-4"},type:{default:"bg-f0-background-secondary border border-f0-border",selected:"bg-f0-background-selected-bold outline-f0-border-selected",bold:"bg-f0-background-accent-bold"}},defaultVariants:{size:"md",type:"default"}});var counterTextVariants=tv({base:"text-center text-sm font-medium tabular-nums whitespace-nowrap",variants:{size:{md:"",sm:"leading-none py-0.5"},type:{default:"text-f0-foreground",selected:"text-f0-foreground-inverse",bold:"text-f0-foreground-inverse"}},defaultVariants:{type:"default"}});export function Counter(_ref){var size=_ref.size,type=_ref.type,value=_ref.value,maxValue=_ref.maxValue;var displayValue=maxValue&&value>maxValue?`+${maxValue}`:value;return _jsx(View,{className:"flex items-start",children:_jsx(View,{className:cn(counterContainerVariants({size:size,type:type})),children:_jsx(Text,{className:cn(counterTextVariants({type:type,size:size})),children:displayValue})})});}
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import React from"react";import{Text,View}from"react-native";import{jsx as _jsx}from"react/jsx-runtime";export var ExampleComponent=function ExampleComponent(_ref){var _ref$text=_ref.text,text=_ref$text===void 0?"Hello World":_ref$text;return _jsx(View,{className:"rounded-lg bg-f1-background p-4",children:_jsx(Text,{className:"text-base font-medium text-f1-foreground",children:text})});};
1
+ import React from"react";import{Text,View}from"react-native";import{jsx as _jsx}from"react/jsx-runtime";export var ExampleComponent=function ExampleComponent(_ref){var _ref$text=_ref.text,text=_ref$text===void 0?"Hello World":_ref$text;return _jsx(View,{className:"rounded-lg bg-f0-background p-4",children:_jsx(Text,{className:"text-base font-medium text-f0-foreground",children:text})});};
2
2
  //# sourceMappingURL=ExampleComponent.js.map
@@ -32,7 +32,7 @@ The Icon component is designed to work with UniWind, allowing you to style icons
32
32
 
33
33
  ```tsx
34
34
  // Style using Tailwind CSS classes
35
- <Icon icon={AppIcons.Archive} className="text-f1-icon-secondary" />
35
+ <Icon icon={AppIcons.Archive} className="text-f0-icon-secondary" />
36
36
  ```
37
37
 
38
38
  ## Available Icons
@@ -1,2 +1,2 @@
1
- import{memo,createElement as _createElement}from"react";import{Text,View}from"react-native";import{AppIcons}from"../../..";import{Button}from"../../Button";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";var NotificationsAction=function NotificationsAction(_ref){var label=_ref.label,onPress=_ref.onPress,showBadge=_ref.showBadge;return _jsx(Button,{variant:"outline",icon:AppIcons.Bell,label:label,hideLabel:true,onPress:onPress,showBadge:showBadge,size:"md",round:true});};export var PageHeader=memo(function(_ref2){var title=_ref2.title,actions=_ref2.actions;return _jsxs(View,{className:"flex-row items-center justify-between px-5 py-3",children:[_jsx(Text,{className:"text-3xl font-semibold text-f1-foreground",children:title}),_jsx(View,{className:"flex-row gap-2",children:actions==null?void 0:actions.map(function(action){switch(action.type){case"notifications":return _createElement(NotificationsAction,Object.assign({},action,{key:action.label}));default:return null;}})})]});});PageHeader.displayName="PageHeader";
1
+ import{memo,createElement as _createElement}from"react";import{Text,View}from"react-native";import{AppIcons}from"../../..";import{Button}from"../../Button";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";var NotificationsAction=function NotificationsAction(_ref){var label=_ref.label,onPress=_ref.onPress,showBadge=_ref.showBadge;return _jsx(Button,{variant:"outline",icon:AppIcons.Bell,label:label,hideLabel:true,onPress:onPress,showBadge:showBadge,size:"md",round:true});};export var PageHeader=memo(function(_ref2){var title=_ref2.title,actions=_ref2.actions;return _jsxs(View,{className:"flex-row items-center justify-between px-5 py-3",children:[_jsx(Text,{className:"text-3xl font-semibold text-f0-foreground",children:title}),_jsx(View,{className:"flex-row gap-2",children:actions==null?void 0:actions.map(function(action){switch(action.type){case"notifications":return _createElement(NotificationsAction,Object.assign({},action,{key:action.label}));default:return null;}})})]});});PageHeader.displayName="PageHeader";
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import{View,Text,Pressable}from"react-native";import{tv}from"tailwind-variants";import{CrossedCircle}from"../../icons/app";import{cn}from"../../lib/utils";import{Icon}from"../Icon";import{PressableFeedback}from"../PressableFeedback";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";export var chipContainerVariants=tv({base:"flex items-center gap-1 rounded-full border border-solid border-f1-border px-2 py-0.5 grow-0",variants:{variant:{default:"",selected:"border-f1-border-selected bg-f1-background-selected-secondary"}},defaultVariants:{variant:"default"}});export var chipTextVariants=tv({base:"font-medium",variants:{variant:{default:"text-f1-foreground",selected:"text-f1-foreground-selected"}},defaultVariants:{variant:"default"}});export var OneChip=function OneChip(_ref){var label=_ref.label,variant=_ref.variant,onClick=_ref.onClick,onClose=_ref.onClose,icon=_ref.icon;return _jsx(View,{className:"flex items-start",children:_jsx(PressableFeedback,{className:cn(chipContainerVariants({variant:variant}),onClose&&"pr-1.5",icon&&"pl-1.5"),onPress:onClick,variant:"both",accessibilityRole:"button",accessibilityLabel:"Action",children:_jsxs(View,{className:"flex flex-row items-center gap-0.5",children:[icon&&_jsx(Icon,{icon:icon,size:"sm",className:chipTextVariants({variant:variant})}),_jsx(Text,{className:chipTextVariants({variant:variant}),children:label}),onClose&&_jsx(Pressable,{onPress:function onPress(e){e.stopPropagation();onClose();},className:"-m-1 flex h-6 w-6 cursor-pointer items-center justify-center rounded-full [&_svg]:text-f1-icon-secondary",accessibilityRole:"button",accessibilityLabel:"Close",children:_jsx(Icon,{icon:CrossedCircle,className:chipTextVariants({variant:variant}),size:"sm"})})]})})});};
1
+ import{View,Text,Pressable}from"react-native";import{tv}from"tailwind-variants";import{CrossedCircle}from"../../icons/app";import{cn}from"../../lib/utils";import{Icon}from"../Icon";import{PressableFeedback}from"../PressableFeedback";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";export var chipContainerVariants=tv({base:"flex items-center gap-1 rounded-full border border-solid border-f0-border px-2 py-0.5 grow-0",variants:{variant:{default:"",selected:"border-f0-border-selected bg-f0-background-selected-secondary"}},defaultVariants:{variant:"default"}});export var chipTextVariants=tv({base:"font-medium",variants:{variant:{default:"text-f0-foreground",selected:"text-f0-foreground-selected"}},defaultVariants:{variant:"default"}});export var OneChip=function OneChip(_ref){var label=_ref.label,variant=_ref.variant,onClick=_ref.onClick,onClose=_ref.onClose,icon=_ref.icon;return _jsx(View,{className:"flex items-start",children:_jsx(PressableFeedback,{className:cn(chipContainerVariants({variant:variant}),onClose&&"pr-1.5",icon&&"pl-1.5"),onPress:onClick,variant:"both",accessibilityRole:"button",accessibilityLabel:"Action",children:_jsxs(View,{className:"flex flex-row items-center gap-0.5",children:[icon&&_jsx(Icon,{icon:icon,size:"sm",className:chipTextVariants({variant:variant})}),_jsx(Text,{className:chipTextVariants({variant:variant}),children:label}),onClose&&_jsx(Pressable,{onPress:function onPress(e){e.stopPropagation();onClose();},className:"-m-1 flex h-6 w-6 cursor-pointer items-center justify-center rounded-full [&_svg]:text-f0-icon-secondary",accessibilityRole:"button",accessibilityLabel:"Close",children:_jsx(Icon,{icon:CrossedCircle,className:chipTextVariants({variant:variant}),size:"sm"})})]})})});};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import{Text,View}from"react-native";import{cn}from"../../lib/utils";import{Counter}from"../Counter";import{PressableFeedback}from"../PressableFeedback";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";export var OnePreset=function OnePreset(_ref){var label=_ref.label,number=_ref.number,onClick=_ref.onClick,selected=_ref.selected;return _jsx(View,{className:"flex items-start",children:_jsxs(PressableFeedback,{onPress:onClick,variant:"both",className:cn("flex grow-0 flex-row items-center gap-2 rounded border px-2.5 py-1.5 font-medium",number!==undefined&&number!==null&&"pr-1.5",selected?"border-f1-border-selected bg-f1-background-selected-secondary text-f1-foreground-selected":"border-f1-border text-f1-foreground"),children:[_jsx(Text,{className:cn("whitespace-nowrap",selected?"text-f1-foreground-selected":"text-f1-foreground"),children:label}),number!==undefined&&number!==null&&_jsx(Counter,{value:number,type:selected?"selected":"default"})]})});};
1
+ import{Text,View}from"react-native";import{cn}from"../../lib/utils";import{Counter}from"../Counter";import{PressableFeedback}from"../PressableFeedback";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";export var OnePreset=function OnePreset(_ref){var label=_ref.label,number=_ref.number,onClick=_ref.onClick,selected=_ref.selected;return _jsx(View,{className:"flex items-start",children:_jsxs(PressableFeedback,{onPress:onClick,variant:"both",className:cn("flex grow-0 flex-row items-center gap-2 rounded border px-2.5 py-1.5 font-medium",number!==undefined&&number!==null&&"pr-1.5",selected?"border-f0-border-selected bg-f0-background-selected-secondary text-f0-foreground-selected":"border-f0-border text-f0-foreground"),children:[_jsx(Text,{className:cn("whitespace-nowrap",selected?"text-f0-foreground-selected":"text-f0-foreground"),children:label}),number!==undefined&&number!==null&&_jsx(Counter,{value:number,type:selected?"selected":"default"})]})});};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import{AlertCircle,InfoCircle,Warning}from"../../../icons/app";import{useTextFormatEnforcer}from"../../../lib/text";import{cn}from"../../../lib/utils";import{Icon}from"../../Icon";import{BaseTag}from"../BaseTag";import{jsx as _jsx}from"react/jsx-runtime";var iconMap={info:InfoCircle,warning:Warning,critical:AlertCircle};export var AlertTag=function AlertTag(_ref){var text=_ref.text,level=_ref.level;useTextFormatEnforcer(text,{disallowEmpty:true});return _jsx(BaseTag,{classNameText:cn({info:"text-f1-foreground-info",warning:"text-f1-foreground-warning",critical:"text-f1-foreground-critical"}[level]),classNameContainer:cn("pl-0.5",{info:"bg-f1-background-info text-f1-foreground-info",warning:"bg-f1-background-warning text-f1-foreground-warning",critical:"bg-f1-background-critical text-f1-foreground-critical"}[level]),left:_jsx(Icon,{icon:iconMap[level],className:cn({info:"text-f1-foreground-info",warning:"text-f1-foreground-warning",critical:"text-f1-foreground-critical"}[level]),size:"md","aria-hidden":true}),text:text});};AlertTag.displayName="AlertTag";
1
+ import{AlertCircle,InfoCircle,Warning}from"../../../icons/app";import{useTextFormatEnforcer}from"../../../lib/text";import{cn}from"../../../lib/utils";import{Icon}from"../../Icon";import{BaseTag}from"../BaseTag";import{jsx as _jsx}from"react/jsx-runtime";var iconMap={info:InfoCircle,warning:Warning,critical:AlertCircle};export var AlertTag=function AlertTag(_ref){var text=_ref.text,level=_ref.level;useTextFormatEnforcer(text,{disallowEmpty:true});return _jsx(BaseTag,{classNameText:cn({info:"text-f0-foreground-info",warning:"text-f0-foreground-warning",critical:"text-f0-foreground-critical"}[level]),classNameContainer:cn("pl-0.5",{info:"bg-f0-background-info text-f0-foreground-info",warning:"bg-f0-background-warning text-f0-foreground-warning",critical:"bg-f0-background-critical text-f0-foreground-critical"}[level]),left:_jsx(Icon,{icon:iconMap[level],className:cn({info:"text-f0-foreground-info",warning:"text-f0-foreground-warning",critical:"text-f0-foreground-critical"}[level]),size:"md","aria-hidden":true}),text:text});};AlertTag.displayName="AlertTag";
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import{Text,View}from"react-native";import{cn}from"../../../lib/utils";import{PressableFeedback}from"../../PressableFeedback";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";export var BaseTag=function BaseTag(_ref){var left=_ref.left,text=_ref.text,right=_ref.right,additionalAccesibleText=_ref.additionalAccesibleText,onClick=_ref.onClick,classNameContainer=_ref.classNameContainer,classNameText=_ref.classNameText;return _jsx(View,{className:"flex items-start",children:_jsxs(PressableFeedback,{className:cn("flex flex-row items-center justify-start gap-0.5 rounded-full py-0.5 pr-2",onClick&&"cursor-pointer",!text&&"aspect-square w-6 items-center justify-center p-1",!left?"pl-2":"pl-1",classNameContainer),onPress:onClick,variant:onClick?"both":"none",disabled:!onClick,children:[left,!!text&&_jsx(Text,{className:cn("line-clamp-1 text-base font-medium text-f1-foreground",classNameText),children:text}),additionalAccesibleText&&_jsx(Text,{className:"sr-only text-base font-medium text-f1-foreground",children:additionalAccesibleText}),right]})});};BaseTag.displayName="BaseTag";
1
+ import{Text,View}from"react-native";import{cn}from"../../../lib/utils";import{PressableFeedback}from"../../PressableFeedback";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";export var BaseTag=function BaseTag(_ref){var left=_ref.left,text=_ref.text,right=_ref.right,additionalAccesibleText=_ref.additionalAccesibleText,onClick=_ref.onClick,classNameContainer=_ref.classNameContainer,classNameText=_ref.classNameText;return _jsx(View,{className:"flex items-start",children:_jsxs(PressableFeedback,{className:cn("flex flex-row items-center justify-start gap-0.5 rounded-full py-0.5 pr-2",onClick&&"cursor-pointer",!text&&"aspect-square w-6 items-center justify-center p-1",!left?"pl-2":"pl-1",classNameContainer),onPress:onClick,variant:onClick?"both":"none",disabled:!onClick,children:[left,!!text&&_jsx(Text,{className:cn("line-clamp-1 text-base font-medium text-f0-foreground",classNameText),children:text}),additionalAccesibleText&&_jsx(Text,{className:"sr-only text-base font-medium text-f0-foreground",children:additionalAccesibleText}),right]})});};BaseTag.displayName="BaseTag";
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["text"];import{View}from"react-native";import{useTextFormatEnforcer}from"../../../lib/text";import{baseColors}from"../../../styles";import{BaseTag}from"../BaseTag";import{jsx as _jsx}from"react/jsx-runtime";export var dotTagColors=Object.keys(baseColors);export var DotTag=function DotTag(_ref){var text=_ref.text,props=_objectWithoutProperties(_ref,_excluded);useTextFormatEnforcer(text,{disallowEmpty:true});var backgroundColor="color"in props&&props.color?`hsl(${baseColors[props.color][50]})`:"customColor"in props&&props.customColor;if(!backgroundColor)return null;return _jsx(BaseTag,{classNameContainer:"border border-solid border-f1-border-secondary",left:_jsx(View,{className:"m-1 aspect-square w-2 rounded-full",style:{backgroundColor:backgroundColor},"aria-hidden":true}),text:text});};DotTag.displayName="DotTag";
1
+ import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["text"];import{View}from"react-native";import{useTextFormatEnforcer}from"../../../lib/text";import{baseColors}from"../../../styles";import{BaseTag}from"../BaseTag";import{jsx as _jsx}from"react/jsx-runtime";export var dotTagColors=Object.keys(baseColors);export var DotTag=function DotTag(_ref){var text=_ref.text,props=_objectWithoutProperties(_ref,_excluded);useTextFormatEnforcer(text,{disallowEmpty:true});var backgroundColor="color"in props&&props.color?`hsl(${baseColors[props.color][50]})`:"customColor"in props&&props.customColor;if(!backgroundColor)return null;return _jsx(BaseTag,{classNameContainer:"border border-solid border-f0-border-secondary",left:_jsx(View,{className:"m-1 aspect-square w-2 rounded-full",style:{backgroundColor:backgroundColor},"aria-hidden":true}),text:text});};DotTag.displayName="DotTag";
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import{useTextFormatEnforcer}from"../../../lib/text";import{cn}from"../../../lib/utils";import{Icon}from"../../Icon";import{BaseTag}from"../BaseTag";import{jsx as _jsx}from"react/jsx-runtime";export var RawTag=function RawTag(_ref){var text=_ref.text,additionalAccesibleText=_ref.additionalAccesibleText,icon=_ref.icon,noBorder=_ref.noBorder,className=_ref.className;useTextFormatEnforcer(text,{disallowEmpty:true});return _jsx(BaseTag,{classNameContainer:cn(!noBorder&&"border border-solid border-f1-border-secondary",className),classNameText:"text-f1-foreground",left:icon?_jsx(Icon,{icon:icon,size:"sm",className:"text-f1-icon","aria-hidden":true}):null,text:text,additionalAccesibleText:additionalAccesibleText});};RawTag.displayName="RawTag";
1
+ import{useTextFormatEnforcer}from"../../../lib/text";import{cn}from"../../../lib/utils";import{Icon}from"../../Icon";import{BaseTag}from"../BaseTag";import{jsx as _jsx}from"react/jsx-runtime";export var RawTag=function RawTag(_ref){var text=_ref.text,additionalAccesibleText=_ref.additionalAccesibleText,icon=_ref.icon,noBorder=_ref.noBorder,className=_ref.className;useTextFormatEnforcer(text,{disallowEmpty:true});return _jsx(BaseTag,{classNameContainer:cn(!noBorder&&"border border-solid border-f0-border-secondary",className),classNameText:"text-f0-foreground",left:icon?_jsx(Icon,{icon:icon,size:"sm",className:"text-f0-icon","aria-hidden":true}):null,text:text,additionalAccesibleText:additionalAccesibleText});};RawTag.displayName="RawTag";
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["children","action"];import{View,Text}from"react-native";import{cn}from"../../../../lib/utils";import{Icon}from"../../../Icon";import{CopyAction}from"./actions/CopyAction";import{GenericAction}from"./actions/GenericAction";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";export var ItemContainer=function ItemContainer(props){var text=props.text,LeftIcon=props.leftIcon,className=props.className,_props$action=props.action,action=_props$action===void 0?{type:"noop"}:_props$action;return _jsx(View,{className:"flex rounded font-medium text-f1-foreground *:flex-1",children:_jsxs(Action,{action:action,className:cn("flex flex-row items-center gap-1.5 p-1.5",className),children:[LeftIcon&&(typeof LeftIcon==="function"?LeftIcon({}):_jsx(Icon,{icon:LeftIcon,size:"md"})),_jsx(Text,{className:"line-clamp-5 text-left text-f1-foreground",children:text})]})});};var Action=function Action(_ref){var children=_ref.children,action=_ref.action,props=_objectWithoutProperties(_ref,_excluded);var type=action.type;switch(type){case"copy":return _jsx(CopyAction,Object.assign({},action,props,{children:children}));case"generic":return _jsx(GenericAction,Object.assign({},action,props,{children:children}));case"noop":return _jsx(View,Object.assign({},props,{children:children}));default:{var _exhaustiveCheck=type;return _exhaustiveCheck;}}};
1
+ import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["children","action"];import{View,Text}from"react-native";import{cn}from"../../../../lib/utils";import{Icon}from"../../../Icon";import{CopyAction}from"./actions/CopyAction";import{GenericAction}from"./actions/GenericAction";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";export var ItemContainer=function ItemContainer(props){var text=props.text,LeftIcon=props.leftIcon,className=props.className,_props$action=props.action,action=_props$action===void 0?{type:"noop"}:_props$action;return _jsx(View,{className:"flex rounded font-medium text-f0-foreground *:flex-1",children:_jsxs(Action,{action:action,className:cn("flex flex-row items-center gap-1.5 p-1.5",className),children:[LeftIcon&&(typeof LeftIcon==="function"?LeftIcon({}):_jsx(Icon,{icon:LeftIcon,size:"md"})),_jsx(Text,{className:"line-clamp-5 text-left text-f0-foreground",children:text})]})});};var Action=function Action(_ref){var children=_ref.children,action=_ref.action,props=_objectWithoutProperties(_ref,_excluded);var type=action.type;switch(type){case"copy":return _jsx(CopyAction,Object.assign({},action,props,{children:children}));case"generic":return _jsx(GenericAction,Object.assign({},action,props,{children:children}));case"noop":return _jsx(View,Object.assign({},props,{children:children}));default:{var _exhaustiveCheck=type;return _exhaustiveCheck;}}};
2
2
  //# sourceMappingURL=ItemContainer.js.map
@@ -1,2 +1,2 @@
1
- import _asyncToGenerator from"@babel/runtime/helpers/asyncToGenerator";import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import*as Clipboard from"expo-clipboard";import{useEffect,useState}from"react";import{Pressable,View}from"react-native";import{CheckCircle,LayersFront}from"../../../../../icons/app";import{cn}from"../../../../../lib/utils";import{Icon}from"../../../../Icon";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";var COPIED_SHOWN_MS=750;export var CopyAction=function CopyAction(_ref){var text=_ref.text,children=_ref.children;var _useState=useState(false),_useState2=_slicedToArray(_useState,2),copied=_useState2[0],setCopied=_useState2[1];useEffect(function(){if(copied){var timer=setTimeout(function(){return setCopied(false);},COPIED_SHOWN_MS);return function(){return clearTimeout(timer);};}},[copied]);var copyHandler=function(){var _ref2=_asyncToGenerator(function*(){try{if(text){yield Clipboard.setStringAsync(text);setCopied(true);}}catch(error){void error;}});return function copyHandler(){return _ref2.apply(this,arguments);};}();return _jsxs(Pressable,{"aria-label":copied?"Copied!":`Copy ${text}`,className:cn("group flex flex-row justify-between gap-1.5 rounded p-1.5","transition-colors duration-300 active:bg-f1-background-secondary-hover",copied?"bg-f1-background-positive":undefined),onPress:copyHandler,children:[_jsx(View,{className:"flex flex-row items-center gap-1.5",children:children}),_jsxs(View,{className:"flex",children:[!copied&&_jsx(Icon,{icon:LayersFront,size:"md","aria-hidden":true,className:cn("col-start-1 col-end-2 row-start-1 row-end-2 text-f1-icon-bold")}),copied&&_jsx(Icon,{icon:CheckCircle,size:"md","aria-hidden":true,className:cn("col-start-1 col-end-2 row-start-1 row-end-2","text-f1-icon-positive")})]})]});};
1
+ import _asyncToGenerator from"@babel/runtime/helpers/asyncToGenerator";import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import*as Clipboard from"expo-clipboard";import{useEffect,useState}from"react";import{Pressable,View}from"react-native";import{CheckCircle,LayersFront}from"../../../../../icons/app";import{cn}from"../../../../../lib/utils";import{Icon}from"../../../../Icon";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";var COPIED_SHOWN_MS=750;export var CopyAction=function CopyAction(_ref){var text=_ref.text,children=_ref.children;var _useState=useState(false),_useState2=_slicedToArray(_useState,2),copied=_useState2[0],setCopied=_useState2[1];useEffect(function(){if(copied){var timer=setTimeout(function(){return setCopied(false);},COPIED_SHOWN_MS);return function(){return clearTimeout(timer);};}},[copied]);var copyHandler=function(){var _ref2=_asyncToGenerator(function*(){try{if(text){yield Clipboard.setStringAsync(text);setCopied(true);}}catch(error){void error;}});return function copyHandler(){return _ref2.apply(this,arguments);};}();return _jsxs(Pressable,{"aria-label":copied?"Copied!":`Copy ${text}`,className:cn("group flex flex-row justify-between gap-1.5 rounded p-1.5","transition-colors duration-300 active:bg-f0-background-secondary-hover",copied?"bg-f0-background-positive":undefined),onPress:copyHandler,children:[_jsx(View,{className:"flex flex-row items-center gap-1.5",children:children}),_jsxs(View,{className:"flex",children:[!copied&&_jsx(Icon,{icon:LayersFront,size:"md","aria-hidden":true,className:cn("col-start-1 col-end-2 row-start-1 row-end-2 text-f0-icon-bold")}),copied&&_jsx(Icon,{icon:CheckCircle,size:"md","aria-hidden":true,className:cn("col-start-1 col-end-2 row-start-1 row-end-2","text-f0-icon-positive")})]})]});};
2
2
  //# sourceMappingURL=CopyAction.js.map
@@ -1,2 +1,2 @@
1
- import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["children","className"];import{memo}from"react";import{Pressable,View}from"react-native";import{ChevronRight}from"../../../../../icons/app";import{cn}from"../../../../../lib/utils";import{Icon}from"../../../../Icon";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";export var GenericAction=memo(function(_ref){var children=_ref.children,className=_ref.className,props=_objectWithoutProperties(_ref,_excluded);return _jsxs(Pressable,Object.assign({onPress:props.handlePress},props,{className:cn("group flex items-center justify-between gap-1.5 rounded p-1.5 text-f1-foreground text-inherit","no-underline hover:bg-f1-background-hover focus-visible:outline focus-visible:outline-2 focus-visible:outline-f1-border-selected-bold active:bg-f1-background-secondary-hover",className),children:[_jsx(View,{className:"flex flex-row items-center gap-1.5",children:children}),_jsx(Icon,{"aria-hidden":true,icon:ChevronRight,size:"md",className:"text-f1-foreground"})]}));});GenericAction.displayName="GenericAction";
1
+ import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["children","className"];import{memo}from"react";import{Pressable,View}from"react-native";import{ChevronRight}from"../../../../../icons/app";import{cn}from"../../../../../lib/utils";import{Icon}from"../../../../Icon";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";export var GenericAction=memo(function(_ref){var children=_ref.children,className=_ref.className,props=_objectWithoutProperties(_ref,_excluded);return _jsxs(Pressable,Object.assign({onPress:props.handlePress},props,{className:cn("group flex items-center justify-between gap-1.5 rounded p-1.5 text-f0-foreground text-inherit","no-underline hover:bg-f0-background-hover focus-visible:outline focus-visible:outline-2 focus-visible:outline-f0-border-selected-bold active:bg-f0-background-secondary-hover",className),children:[_jsx(View,{className:"flex flex-row items-center gap-1.5",children:children}),_jsx(Icon,{"aria-hidden":true,icon:ChevronRight,size:"md",className:"text-f0-foreground"})]}));});GenericAction.displayName="GenericAction";
2
2
  //# sourceMappingURL=GenericAction.js.map
@@ -1,2 +1,2 @@
1
- import _objectDestructuringEmpty from"@babel/runtime/helpers/objectDestructuringEmpty";import{View,Text}from"react-native";import{cn}from"../../../../lib/utils";import{CompanyAvatar}from"../../../Avatars/CompanyAvatar";import{PersonAvatar}from"../../../Avatars/PersonAvatar";import{TeamAvatar}from"../../../Avatars/TeamAvatar";import{DotTag}from"../../../Tags/DotTag";import{ItemContainer}from"./ItemContainer";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";var _DataList=function _DataList(_ref){var children=_ref.children,label=_ref.label,_ref$isHorizontalItem=_ref.isHorizontalItem,isHorizontalItem=_ref$isHorizontalItem===void 0?false:_ref$isHorizontalItem,_ref$tableView=_ref.tableView,tableView=_ref$tableView===void 0?false:_ref$tableView;return _jsxs(View,{className:cn(isHorizontalItem?"flex min-h-12 flex-shrink flex-row":"max-w-72 min-w-32",tableView?"px-[8px] pt-[14px] pb-[10px]":""),children:[!!label&&_jsx(Text,{className:cn("px-1.5 text-f1-foreground-secondary",isHorizontalItem?"mt-1.5 w-36 shrink-0":""),children:label}),_jsx(View,{className:"flex flex-shrink justify-center gap-0.5",children:children})]});};var Item=function Item(_ref2){var text=_ref2.text,icon=_ref2.icon,action=_ref2.action;return _jsx(ItemContainer,{text:text,leftIcon:icon,action:getInternalAction(action,text)});};var PersonItem=function PersonItem(_ref3){var action=_ref3.action,avatarUrl=_ref3.avatarUrl,firstName=_ref3.firstName,lastName=_ref3.lastName;var fullName=`${firstName} ${lastName}`;return _jsx(ItemContainer,{leftIcon:function leftIcon(){return _jsx(PersonAvatar,{size:"xsmall",src:avatarUrl,firstName:firstName,lastName:lastName});},text:fullName,action:getInternalAction(action,fullName)});};var CompanyItem=function CompanyItem(_ref4){var avatarUrl=_ref4.avatarUrl,name=_ref4.name,action=_ref4.action;return _jsx(ItemContainer,{leftIcon:function leftIcon(){return _jsx(CompanyAvatar,{name:name,size:"xsmall",src:avatarUrl});},text:name,action:getInternalAction(action,name)});};var TeamItem=function TeamItem(_ref5){var action=_ref5.action,name=_ref5.name;return _jsx(ItemContainer,{leftIcon:function leftIcon(){return _jsx(TeamAvatar,{name:name,size:"xsmall"});},text:name,action:getInternalAction(action,name)});};var DotTagItem=function DotTagItem(_ref6){var props=Object.assign({},(_objectDestructuringEmpty(_ref6),_ref6));return _jsx(View,{className:"flex items-start pt-1",children:_jsx(DotTag,Object.assign({},props))});};var getInternalAction=function getInternalAction(action,defaultCopyText){if(action&&action.type==="copy"){var _action$text;return{type:"copy",text:(_action$text=action.text)!=null?_action$text:defaultCopyText};}return action;};export var DataList=Object.assign(_DataList,{Item:Item,CompanyItem:CompanyItem,PersonItem:PersonItem,TeamItem:TeamItem,DotTagItem:DotTagItem});
1
+ import _objectDestructuringEmpty from"@babel/runtime/helpers/objectDestructuringEmpty";import{View,Text}from"react-native";import{cn}from"../../../../lib/utils";import{CompanyAvatar}from"../../../Avatars/CompanyAvatar";import{PersonAvatar}from"../../../Avatars/PersonAvatar";import{TeamAvatar}from"../../../Avatars/TeamAvatar";import{DotTag}from"../../../Tags/DotTag";import{ItemContainer}from"./ItemContainer";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";var _DataList=function _DataList(_ref){var children=_ref.children,label=_ref.label,_ref$isHorizontalItem=_ref.isHorizontalItem,isHorizontalItem=_ref$isHorizontalItem===void 0?false:_ref$isHorizontalItem,_ref$tableView=_ref.tableView,tableView=_ref$tableView===void 0?false:_ref$tableView;return _jsxs(View,{className:cn(isHorizontalItem?"flex min-h-12 flex-shrink flex-row":"max-w-72 min-w-32",tableView?"px-[8px] pt-[14px] pb-[10px]":""),children:[!!label&&_jsx(Text,{className:cn("px-1.5 text-f0-foreground-secondary",isHorizontalItem?"mt-1.5 w-36 shrink-0":""),children:label}),_jsx(View,{className:"flex flex-shrink justify-center gap-0.5",children:children})]});};var Item=function Item(_ref2){var text=_ref2.text,icon=_ref2.icon,action=_ref2.action;return _jsx(ItemContainer,{text:text,leftIcon:icon,action:getInternalAction(action,text)});};var PersonItem=function PersonItem(_ref3){var action=_ref3.action,avatarUrl=_ref3.avatarUrl,firstName=_ref3.firstName,lastName=_ref3.lastName;var fullName=`${firstName} ${lastName}`;return _jsx(ItemContainer,{leftIcon:function leftIcon(){return _jsx(PersonAvatar,{size:"xsmall",src:avatarUrl,firstName:firstName,lastName:lastName});},text:fullName,action:getInternalAction(action,fullName)});};var CompanyItem=function CompanyItem(_ref4){var avatarUrl=_ref4.avatarUrl,name=_ref4.name,action=_ref4.action;return _jsx(ItemContainer,{leftIcon:function leftIcon(){return _jsx(CompanyAvatar,{name:name,size:"xsmall",src:avatarUrl});},text:name,action:getInternalAction(action,name)});};var TeamItem=function TeamItem(_ref5){var action=_ref5.action,name=_ref5.name;return _jsx(ItemContainer,{leftIcon:function leftIcon(){return _jsx(TeamAvatar,{name:name,size:"xsmall"});},text:name,action:getInternalAction(action,name)});};var DotTagItem=function DotTagItem(_ref6){var props=Object.assign({},(_objectDestructuringEmpty(_ref6),_ref6));return _jsx(View,{className:"flex items-start pt-1",children:_jsx(DotTag,Object.assign({},props))});};var getInternalAction=function getInternalAction(action,defaultCopyText){if(action&&action.type==="copy"){var _action$text;return{type:"copy",text:(_action$text=action.text)!=null?_action$text:defaultCopyText};}return action;};export var DataList=Object.assign(_DataList,{Item:Item,CompanyItem:CompanyItem,PersonItem:PersonItem,TeamItem:TeamItem,DotTagItem:DotTagItem});
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import React from"react";import{Text,View}from"react-native";import{cn}from"../../../../lib/utils";import{DetailsItem}from"../DetailsItem";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";export var DetailsItemsList=function DetailsItemList(_ref){var title=_ref.title,_ref$tableView=_ref.tableView,tableView=_ref$tableView===void 0?false:_ref$tableView,_ref$isHorizontalItem=_ref.isHorizontalItem,isHorizontalItem=_ref$isHorizontalItem===void 0?false:_ref$isHorizontalItem,details=_ref.details;return _jsxs(View,{className:"flex gap-4",children:[!!title&&_jsx(Text,{className:"mb-1 pl-1.5 text-sm font-semibold text-f1-foreground-secondary",children:title.toLocaleUpperCase()}),_jsx(View,{className:cn("flex",tableView?"rounded-[16px] border border-solid border-f1-border-secondary":"gap-3"),children:details==null?void 0:details.map(function(item,index){return _jsxs(React.Fragment,{children:[_jsx(DetailsItem,{title:item.title,content:item.content,spacingAtTheBottom:item.spacingAtTheBottom,tableView:tableView,isHorizontalItem:isHorizontalItem},item.title),tableView&&index!==details.length-1&&_jsx(View,{className:"h-[1px] w-full bg-f1-border-secondary"})]},item.title);})})]});};
1
+ import React from"react";import{Text,View}from"react-native";import{cn}from"../../../../lib/utils";import{DetailsItem}from"../DetailsItem";import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";export var DetailsItemsList=function DetailsItemList(_ref){var title=_ref.title,_ref$tableView=_ref.tableView,tableView=_ref$tableView===void 0?false:_ref$tableView,_ref$isHorizontalItem=_ref.isHorizontalItem,isHorizontalItem=_ref$isHorizontalItem===void 0?false:_ref$isHorizontalItem,details=_ref.details;return _jsxs(View,{className:"flex gap-4",children:[!!title&&_jsx(Text,{className:"mb-1 pl-1.5 text-sm font-semibold text-f0-foreground-secondary",children:title.toLocaleUpperCase()}),_jsx(View,{className:cn("flex",tableView?"rounded-[16px] border border-solid border-f0-border-secondary":"gap-3"),children:details==null?void 0:details.map(function(item,index){return _jsxs(React.Fragment,{children:[_jsx(DetailsItem,{title:item.title,content:item.content,spacingAtTheBottom:item.spacingAtTheBottom,tableView:tableView,isHorizontalItem:isHorizontalItem},item.title),tableView&&index!==details.length-1&&_jsx(View,{className:"h-[1px] w-full bg-f0-border-secondary"})]},item.title);})})]});};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- export*from"./Activity/ActivityItem";export*from"./Avatars/exports";export*from"./Badge";export*from"./Button";export*from"./Counter";export*from"./ExampleComponent";export*from"./Icon";export*from"./Navigation/PageHeader";export*from"./OneChip";export*from"./OnePreset";export*from"./PressableFeedback";export*from"./Tags/exports";export*from"./experimental/Lists/DataList";export*from"./experimental/Lists/DetailsItem";export*from"./experimental/Lists/DetailsItemsList";
1
+ export*from"./Activity/ActivityItem";export*from"./Avatars/exports";export*from"./Badge";export*from"./Button";export*from"./Counter";export*from"./ExampleComponent";export*from"./Icon";export*from"./Navigation/PageHeader";export*from"./OneChip";export*from"./OnePreset";export*from"./PressableFeedback";export*from"./Tags/exports";export*from"./experimental/Lists/DataList";export*from"./experimental/Lists/DetailsItem";export*from"./experimental/Lists/DetailsItemsList";export*from"./primitives/F0Text";
2
2
  //# sourceMappingURL=exports.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../src","sources":["components/exports.ts"],"mappings":"AACA,WAAc,yBAAyB,CACvC,WAAc,mBAAmB,CACjC,WAAc,SAAS,CACvB,WAAc,UAAU,CACxB,WAAc,WAAW,CACzB,WAAc,oBAAoB,CAClC,WAAc,QAAQ,CACtB,WAAc,yBAAyB,CACvC,WAAc,WAAW,CACzB,WAAc,aAAa,CAC3B,WAAc,qBAAqB,CACnC,WAAc,gBAAgB,CAC9B,WAAc,+BAA+B,CAC7C,WAAc,kCAAkC,CAChD,WAAc,uCAAuC","ignoreList":[]}
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["components/exports.ts"],"mappings":"AACA,WAAc,yBAAyB,CACvC,WAAc,mBAAmB,CACjC,WAAc,SAAS,CACvB,WAAc,UAAU,CACxB,WAAc,WAAW,CACzB,WAAc,oBAAoB,CAClC,WAAc,QAAQ,CACtB,WAAc,yBAAyB,CACvC,WAAc,WAAW,CACzB,WAAc,aAAa,CAC3B,WAAc,qBAAqB,CACnC,WAAc,gBAAgB,CAC9B,WAAc,+BAA+B,CAC7C,WAAc,kCAAkC,CAChD,WAAc,uCAAuC,CAGrD,WAAc,qBAAqB","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["variant","color","align","decoration","transform","children","numberOfLines"];import React from"react";import{Text as RNText}from"react-native";import{omitProps}from"../../../lib/utils";import{textVariants}from"./F0Text.styles";import{F0_TEXT_BANNED_PROPS}from"./F0Text.types";import{jsx as _jsx}from"react/jsx-runtime";var F0TextComponent=React.forwardRef(function(_ref,ref){var _ref$variant=_ref.variant,variant=_ref$variant===void 0?"body-sm-default":_ref$variant,_ref$color=_ref.color,color=_ref$color===void 0?"default":_ref$color,_ref$align=_ref.align,align=_ref$align===void 0?"left":_ref$align,_ref$decoration=_ref.decoration,decoration=_ref$decoration===void 0?"none":_ref$decoration,_ref$transform=_ref.transform,transform=_ref$transform===void 0?"none":_ref$transform,children=_ref.children,numberOfLines=_ref.numberOfLines,rest=_objectWithoutProperties(_ref,_excluded);var textClassName=React.useMemo(function(){return textVariants({variant:variant,color:color,align:align,decoration:decoration,transform:transform});},[variant,color,align,decoration,transform]);return _jsx(RNText,Object.assign({ref:ref},omitProps(rest,F0_TEXT_BANNED_PROPS),{className:textClassName,numberOfLines:numberOfLines,ellipsizeMode:numberOfLines?"tail":undefined,children:children}));});F0TextComponent.displayName="F0Text";export var F0Text=React.memo(F0TextComponent);export{TYPOGRAPHY_VARIANTS,TEXT_COLORS,TEXT_ALIGN,TEXT_DECORATIONS,TEXT_TRANSFORMS}from"./F0Text.types";
2
+ //# sourceMappingURL=F0Text.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","Text","RNText","omitProps","textVariants","F0_TEXT_BANNED_PROPS","jsx","_jsx","F0TextComponent","forwardRef","_ref","ref","_ref$variant","variant","_ref$color","color","_ref$align","align","_ref$decoration","decoration","_ref$transform","transform","children","numberOfLines","rest","_objectWithoutProperties","_excluded","textClassName","useMemo","Object","assign","className","ellipsizeMode","undefined","displayName","F0Text","memo","TYPOGRAPHY_VARIANTS","TEXT_COLORS","TEXT_ALIGN","TEXT_DECORATIONS","TEXT_TRANSFORMS"],"sourceRoot":"../../../../../src","sources":["components/primitives/F0Text/F0Text.tsx"],"mappings":"mLAAA,MAAO,CAAAA,KAAK,KAAM,OAAO,CACzB,OAASC,IAAI,GAAI,CAAAC,MAAM,KAAQ,cAAc,CAE7C,OAASC,SAAS,KAAQ,oBAAoB,CAE9C,OAASC,YAAY,KAAQ,iBAAiB,CAC9C,OAASC,oBAAoB,KAA0B,gBAAgB,QAAAC,GAAA,IAAAC,IAAA,yBAUvE,GAAM,CAAAC,eAAe,CAAGR,KAAK,CAACS,UAAU,CACtC,SAAAC,IAAA,CAWEC,GAAG,CACA,KAAAC,YAAA,CAAAF,IAAA,CAVDG,OAAO,CAAPA,OAAO,CAAAD,YAAA,UAAG,iBAAiB,CAAAA,YAAA,CAAAE,UAAA,CAAAJ,IAAA,CAC3BK,KAAK,CAALA,KAAK,CAAAD,UAAA,UAAG,SAAS,CAAAA,UAAA,CAAAE,UAAA,CAAAN,IAAA,CACjBO,KAAK,CAALA,KAAK,CAAAD,UAAA,UAAG,MAAM,CAAAA,UAAA,CAAAE,eAAA,CAAAR,IAAA,CACdS,UAAU,CAAVA,UAAU,CAAAD,eAAA,UAAG,MAAM,CAAAA,eAAA,CAAAE,cAAA,CAAAV,IAAA,CACnBW,SAAS,CAATA,SAAS,CAAAD,cAAA,UAAG,MAAM,CAAAA,cAAA,CAClBE,QAAQ,CAAAZ,IAAA,CAARY,QAAQ,CACRC,aAAa,CAAAb,IAAA,CAAba,aAAa,CACVC,IAAI,CAAAC,wBAAA,CAAAf,IAAA,CAAAgB,SAAA,EAIT,GAAM,CAAAC,aAAa,CAAG3B,KAAK,CAAC4B,OAAO,CACjC,iBACE,CAAAxB,YAAY,CAAC,CACXS,OAAO,CAAPA,OAAO,CACPE,KAAK,CAALA,KAAK,CACLE,KAAK,CAALA,KAAK,CACLE,UAAU,CAAVA,UAAU,CACVE,SAAS,CAATA,SACF,CAAC,CAAC,GACJ,CAACR,OAAO,CAAEE,KAAK,CAAEE,KAAK,CAAEE,UAAU,CAAEE,SAAS,CAC/C,CAAC,CAED,MACE,CAAAd,IAAA,CAACL,MAAM,CAAA2B,MAAA,CAAAC,MAAA,EACLnB,GAAG,CAAEA,GAAI,EACLR,SAAS,CAACqB,IAAI,CAAEnB,oBAAoB,CAAC,EACzC0B,SAAS,CAAEJ,aAAc,CACzBJ,aAAa,CAAEA,aAAc,CAC7BS,aAAa,CAAET,aAAa,CAAG,MAAM,CAAGU,SAAU,CAAAX,QAAA,CAEjDA,QAAQ,EACH,CAAC,CAEb,CACF,CAAC,CAEDd,eAAe,CAAC0B,WAAW,CAAG,QAAQ,CAEtC,MAAO,IAAM,CAAAC,MAAM,CAAGnC,KAAK,CAACoC,IAAI,CAAC5B,eAAe,CAAC,CAIjD,OACE6B,mBAAmB,CACnBC,WAAW,CACXC,UAAU,CACVC,gBAAgB,CAChBC,eAAe,KACV,gBAAgB","ignoreList":[]}