rechtspilot-ui 1.2.7 → 1.3.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 (163) hide show
  1. package/README.md +51 -7
  2. package/dist/chunks-native.cjs +1 -1
  3. package/dist/chunks-native.js +671 -427
  4. package/dist/chunks.cjs +1 -1
  5. package/dist/chunks.js +613 -381
  6. package/dist/icons.cjs +1 -1
  7. package/dist/icons.d.ts +20 -2
  8. package/dist/icons.es.js +2 -2
  9. package/dist/icons.native.cjs +1 -1
  10. package/dist/icons.native.es.js +2 -2
  11. package/dist/index.cjs +155 -155
  12. package/dist/index.es.js +1386 -1329
  13. package/dist/index.native.cjs +1 -57
  14. package/dist/index.native.es.js +81 -189
  15. package/dist/native/components/Autocomplete/Autocomplete.d.ts +19 -0
  16. package/dist/native/components/Button/Button.d.ts +10 -0
  17. package/dist/native/components/Button/Button.native.d.ts +12 -0
  18. package/dist/native/components/DatePicker/DatePicker.d.ts +9 -0
  19. package/dist/native/components/Dialog/Dialog.d.ts +7 -0
  20. package/dist/native/components/Dialog/DialogContent.d.ts +10 -0
  21. package/dist/native/components/Dialog/DialogDetails.d.ts +5 -0
  22. package/dist/native/components/Dialog/DialogHeader.d.ts +7 -0
  23. package/dist/native/components/Dialog/variants/DialogAlert.d.ts +14 -0
  24. package/dist/native/components/Dialog/variants/DialogSuccess.d.ts +7 -0
  25. package/dist/native/components/Dialog/variants/PilotWink.d.ts +1 -0
  26. package/dist/native/components/Divider/Divider.d.ts +3 -0
  27. package/dist/native/components/FormTitle/FormTitle.d.ts +5 -0
  28. package/dist/native/components/Helper/Helper.d.ts +6 -0
  29. package/dist/native/components/IconButton/IconButton.d.ts +8 -0
  30. package/dist/native/components/Input/FormatInputSelect.d.ts +7 -0
  31. package/dist/native/components/Input/Input.d.ts +22 -0
  32. package/dist/native/components/Input/Input.native.d.ts +16 -0
  33. package/dist/native/components/Input/InputTooltip.d.ts +6 -0
  34. package/dist/native/components/Letter/Letter.d.ts +64 -0
  35. package/dist/native/components/Letter/letter.styles.d.ts +12 -0
  36. package/dist/native/components/Loading/Loading.d.ts +6 -0
  37. package/dist/native/components/Message/LoadingMessage.d.ts +1 -0
  38. package/dist/native/components/Message/Message.d.ts +7 -0
  39. package/dist/native/components/MessageOption/MessageOption.d.ts +5 -0
  40. package/dist/native/components/PhonePicker/PhonePicker.d.ts +10 -0
  41. package/dist/native/components/Select/Select.d.ts +17 -0
  42. package/dist/native/components/Skeleton/Skeleton.d.ts +6 -0
  43. package/dist/native/components/Spinner/Spinner.d.ts +6 -0
  44. package/dist/native/components/Spinner/Spinner.native.d.ts +9 -0
  45. package/dist/native/components/StatusIndicator/StatusIndicator.d.ts +9 -0
  46. package/dist/native/components/StatusIndicator/StepBadge.d.ts +13 -0
  47. package/dist/native/components/Toaster/Toaster.d.ts +1 -0
  48. package/dist/native/components/Tooltip/Tooltip.d.ts +7 -0
  49. package/dist/native/hooks/mobile.d.ts +2 -0
  50. package/dist/native/hooks/toast.d.ts +46 -0
  51. package/dist/native/icons/ArrowUp.d.ts +2 -0
  52. package/dist/native/icons/Attach.d.ts +2 -0
  53. package/dist/native/icons/Badge.d.ts +2 -0
  54. package/dist/native/icons/Calendar.d.ts +2 -0
  55. package/dist/native/icons/Check.d.ts +2 -0
  56. package/dist/native/icons/CheckCircle.d.ts +2 -0
  57. package/dist/native/icons/Chevron.d.ts +6 -0
  58. package/dist/native/icons/Clock.d.ts +2 -0
  59. package/dist/native/icons/Close.d.ts +2 -0
  60. package/dist/native/icons/Cloud.d.ts +2 -0
  61. package/dist/native/icons/Compose.d.ts +2 -0
  62. package/dist/native/icons/Copy.d.ts +2 -0
  63. package/dist/native/icons/Data.d.ts +2 -0
  64. package/dist/native/icons/DoubleChevron.d.ts +6 -0
  65. package/dist/native/icons/Download.d.ts +2 -0
  66. package/dist/native/icons/Edit.d.ts +2 -0
  67. package/dist/native/icons/Ellipses.d.ts +2 -0
  68. package/dist/native/icons/Email.d.ts +2 -0
  69. package/dist/native/icons/Enter.d.ts +2 -0
  70. package/dist/native/icons/ErrorCircle.d.ts +2 -0
  71. package/dist/native/icons/Fax.d.ts +2 -0
  72. package/dist/native/icons/FileDownload.d.ts +2 -0
  73. package/dist/native/icons/GenerateDoc.d.ts +2 -0
  74. package/dist/native/icons/GenerateSignature.d.ts +2 -0
  75. package/dist/native/icons/Home.d.ts +2 -0
  76. package/dist/native/icons/Info.d.ts +2 -0
  77. package/dist/native/icons/Login.d.ts +2 -0
  78. package/dist/native/icons/Logo.d.ts +5 -0
  79. package/dist/native/icons/LogoOutlined.d.ts +2 -0
  80. package/dist/native/icons/Menu.d.ts +2 -0
  81. package/dist/native/icons/Message.d.ts +2 -0
  82. package/dist/native/icons/NoSignature.d.ts +2 -0
  83. package/dist/native/icons/Peek.d.ts +2 -0
  84. package/dist/native/icons/Pilot.d.ts +2 -0
  85. package/dist/native/icons/PostHorn.d.ts +2 -0
  86. package/dist/native/icons/Radar.d.ts +2 -0
  87. package/dist/native/icons/Retry.d.ts +2 -0
  88. package/dist/native/icons/Rotate.d.ts +2 -0
  89. package/dist/native/icons/Send.d.ts +2 -0
  90. package/dist/native/icons/Signature.d.ts +2 -0
  91. package/dist/native/icons/Sparkles.d.ts +2 -0
  92. package/dist/native/icons/Summary.d.ts +2 -0
  93. package/dist/native/icons/User.d.ts +2 -0
  94. package/dist/native/icons/UserCircle.d.ts +2 -0
  95. package/dist/native/icons/Window.d.ts +2 -0
  96. package/dist/native/icons/index.d.ts +45 -0
  97. package/dist/native/icons/index.native.d.ts +45 -0
  98. package/dist/native/icons/native/ArrowUp.native.d.ts +2 -0
  99. package/dist/native/icons/native/Attach.native.d.ts +2 -0
  100. package/dist/native/icons/native/Badge.native.d.ts +2 -0
  101. package/dist/native/icons/native/Calendar.native.d.ts +2 -0
  102. package/dist/native/icons/native/Check.native.d.ts +2 -0
  103. package/dist/native/icons/native/CheckCircle.native.d.ts +2 -0
  104. package/dist/native/icons/native/Chevron.native.d.ts +6 -0
  105. package/dist/native/icons/native/Clock.native.d.ts +2 -0
  106. package/dist/native/icons/native/Close.native.d.ts +2 -0
  107. package/dist/native/icons/native/Cloud.native.d.ts +2 -0
  108. package/dist/native/icons/native/Compose.native.d.ts +2 -0
  109. package/dist/native/icons/native/Copy.native.d.ts +2 -0
  110. package/dist/native/icons/native/Data.native.d.ts +2 -0
  111. package/dist/native/icons/native/DoubleChevron.native.d.ts +6 -0
  112. package/dist/native/icons/native/Download.native.d.ts +2 -0
  113. package/dist/native/icons/native/Edit.native.d.ts +2 -0
  114. package/dist/native/icons/native/Ellipses.native.d.ts +2 -0
  115. package/dist/native/icons/native/Email.native.d.ts +2 -0
  116. package/dist/native/icons/native/Enter.native.d.ts +2 -0
  117. package/dist/native/icons/native/ErrorCircle.native.d.ts +2 -0
  118. package/dist/native/icons/native/Fax.native.d.ts +2 -0
  119. package/dist/native/icons/native/FileDownload.native.d.ts +2 -0
  120. package/dist/native/icons/native/GenerateDoc.native.d.ts +2 -0
  121. package/dist/native/icons/native/GenerateSignature.native.d.ts +2 -0
  122. package/dist/native/icons/native/Home.native.d.ts +2 -0
  123. package/dist/native/icons/native/Info.native.d.ts +2 -0
  124. package/dist/native/icons/native/Login.native.d.ts +2 -0
  125. package/dist/native/icons/native/Logo.native.d.ts +5 -0
  126. package/dist/native/icons/native/LogoOutlined.native.d.ts +2 -0
  127. package/dist/native/icons/native/Menu.native.d.ts +2 -0
  128. package/dist/native/icons/native/Message.native.d.ts +2 -0
  129. package/dist/native/icons/native/NoSignature.native.d.ts +2 -0
  130. package/dist/native/icons/native/Peek.native.d.ts +2 -0
  131. package/dist/native/icons/native/Pilot.native.d.ts +2 -0
  132. package/dist/native/icons/native/PostHorn.native.d.ts +2 -0
  133. package/dist/native/icons/native/Radar.native.d.ts +2 -0
  134. package/dist/native/icons/native/Retry.native.d.ts +2 -0
  135. package/dist/native/icons/native/Rotate.native.d.ts +2 -0
  136. package/dist/native/icons/native/Send.native.d.ts +2 -0
  137. package/dist/native/icons/native/Signature.native.d.ts +2 -0
  138. package/dist/native/icons/native/Sparkles.native.d.ts +2 -0
  139. package/dist/native/icons/native/Summary.native.d.ts +2 -0
  140. package/dist/native/icons/native/User.native.d.ts +2 -0
  141. package/dist/native/icons/native/UserCircle.native.d.ts +2 -0
  142. package/dist/native/icons/native/Window.native.d.ts +2 -0
  143. package/dist/native/icons/toast/Error.d.ts +1 -0
  144. package/dist/native/icons/toast/Info.d.ts +1 -0
  145. package/dist/native/icons/toast/Success.d.ts +1 -0
  146. package/dist/native/icons/toast/Warning.d.ts +1 -0
  147. package/dist/native/index.d.ts +26 -0
  148. package/dist/native/index.native.d.ts +7 -0
  149. package/dist/native/lib/native-types.d.ts +5 -0
  150. package/dist/native/lib/theme.d.ts +105 -0
  151. package/dist/native/lib/types.d.ts +4 -0
  152. package/dist/native/lib/ui/breadcrumb.d.ts +19 -0
  153. package/dist/native/lib/ui/command.d.ts +80 -0
  154. package/dist/native/lib/ui/dialog.d.ts +19 -0
  155. package/dist/native/lib/ui/popover.d.ts +6 -0
  156. package/dist/native/lib/ui/select.d.ts +13 -0
  157. package/dist/native/lib/ui/skeleton.d.ts +6 -0
  158. package/dist/native/lib/ui/toast.d.ts +15 -0
  159. package/dist/native/lib/utils.d.ts +3 -0
  160. package/icons/index.d.ts +4 -2
  161. package/package.json +18 -3
  162. package/dist/icons.native.d.ts +0 -1
  163. package/dist/index.native.d.ts +0 -1
@@ -1,57 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./chunks-native.cjs`);let t=require(`react`);t=e.z(t,1);let n=require(`react-native`),r=require(`react/jsx-runtime`),i=require(`styled-components`);var a=({size:i=20,color:a=e.L.primary[600],style:o})=>{let s=t.default.useRef(new n.Animated.Value(0)).current;t.default.useEffect(()=>{let e=()=>{s.setValue(0),n.Animated.timing(s,{toValue:1,duration:1e3,easing:n.Easing.linear,useNativeDriver:!0}).start(()=>e())};e()},[s]);let c=s.interpolate({inputRange:[0,1],outputRange:[`0deg`,`360deg`]});return(0,r.jsx)(n.View,{style:[{width:i,height:i},o],children:(0,r.jsx)(n.Animated.View,{style:{width:i,height:i,borderRadius:i/2,borderWidth:2,borderColor:`transparent`,borderTopColor:a,transform:[{rotate:c}]}})})},o=t=>{let n={alignItems:`center`,borderRadius:12,borderWidth:1,flexDirection:`row`,height:48,justifyContent:`center`,paddingHorizontal:16},r={fontSize:15,fontWeight:`500`,textAlign:`center`};switch(t){case`primary`:return{container:{...n,backgroundColor:e.L.primary[500],borderColor:e.L.neutral[`800-A16`]},text:{...r,color:e.L.primary[900]}};case`secondary`:return{container:{...n,backgroundColor:e.L.primary[900],borderColor:e.L.neutral[`800-A16`]},text:{...r,color:e.L.white}};case`tertiary`:return{container:{...n,backgroundColor:e.L.neutral[`800-A04`],borderColor:e.L.neutral[`800-A08`]},text:{...r,color:e.L.primary[900]}};case`destructive`:return{container:{...n,backgroundColor:e.L.fg.accent.error,borderColor:e.L.fg.accent.error},text:{...r,color:e.L.white}};case`destructiveSubtle`:return{container:{...n,backgroundColor:e.L.cream,borderColor:e.L.palePeach},text:{...r,color:e.L.fg.accent.error}}}};function s({variant:t=`primary`,fullWidth:i=!1,children:s,loading:c=!1,disabled:l=!1,onPress:u,...d}){let f=o(t);return(0,r.jsxs)(n.TouchableOpacity,{style:n.StyleSheet.flatten([f.container,i&&{width:`100%`},(l||c)&&{opacity:.4}]),onPress:u,disabled:l||c,activeOpacity:.7,...d,children:[typeof s==`string`?(0,r.jsx)(n.Text,{style:f.text,children:s}):s,c&&(0,r.jsx)(a,{size:16,color:t===`secondary`?e.L.primary[600]:t===`destructiveSubtle`?e.L.fg.accent.error:e.L.white})]})}var c=n.StyleSheet.create({container:{marginBottom:8},fieldContainer:{height:49,paddingHorizontal:12,borderRadius:12,flexDirection:`row`,alignItems:`center`,backgroundColor:e.L.bg.secondary,borderWidth:2,borderColor:e.L.bg.tertiary},fieldContainerError:{borderColor:e.L.fg.accent.error},fieldContainerFocused:{borderColor:e.L.fg.base},fieldContainerFocusedError:{borderColor:e.L.fg.accent.error},formGroup:{position:`relative`,paddingVertical:14,width:`100%`,height:`100%`,justifyContent:`center`},input:{width:`100%`,paddingTop:4,backgroundColor:`transparent`,fontSize:15,fontWeight:`500`,color:e.L.primary[900],paddingBottom:0},label:{position:`absolute`,left:0,fontSize:15,fontWeight:`500`,color:e.L.fg.tertiary},labelFloating:{top:2,fontSize:12,color:e.L.fg.secondary},labelNormal:{top:`50%`,transform:[{translateY:-7.5}]},helper:{marginTop:4,fontSize:12,paddingHorizontal:4},helperError:{color:e.L.fg.accent.error},helperNormal:{color:e.L.fg.secondary}});function l({label:i,value:a=``,onChange:o,error:s,helperText:l,placeholder:u,secureTextEntry:d=!1,keyboardType:f=`default`,autoCapitalize:p=`sentences`,editable:m=!0,multiline:h=!1,numberOfLines:g=1,..._}){let[v,y]=(0,t.useState)(!1),b=a.length>0,x=v||b,S=[c.fieldContainer,s&&c.fieldContainerError,v&&!s&&c.fieldContainerFocused,v&&s&&c.fieldContainerFocusedError],C=[c.label,x?c.labelFloating:c.labelNormal],w=n.StyleSheet.flatten([c.input,h&&{height:g*20,textAlignVertical:`top`}]);return(0,r.jsxs)(n.View,{style:c.container,children:[(0,r.jsx)(n.View,{style:S,children:(0,r.jsxs)(n.View,{style:c.formGroup,children:[(0,r.jsx)(n.TextInput,{style:w,value:a,onChangeText:o,onFocus:()=>y(!0),onBlur:()=>y(!1),placeholder:x?u:``,placeholderTextColor:e.L.fg.tertiary,secureTextEntry:d,keyboardType:f,autoCapitalize:p,editable:m,multiline:h,numberOfLines:g,..._}),(0,r.jsx)(n.Text,{style:C,children:i})]})}),(s||l)&&(0,r.jsx)(n.Text,{style:[c.helper,s?c.helperError:c.helperNormal],children:s||l})]})}var u=i.keyframes`
2
- 0% {
3
- transform: translateY(-150%);
4
- opacity: 0;
5
- }
6
- 25%,
7
- 50%,
8
- 75% {
9
- transform: translateY(0);
10
- opacity: 1;
11
- }
12
- 100% {
13
- transform: translateY(150%);
14
- opacity: 0;
15
- }
16
- `,d=i.styled.div`
17
- display: inline-flex;
18
- align-items: center;
19
- justify-content: space-between;
20
- width: ${({$size:e})=>e};
21
- height: calc(${({$size:e})=>e} / 4);
22
-
23
- span {
24
- width: calc(${({$size:e})=>e} / 4);
25
- height: calc(${({$size:e})=>e} / 4);
26
- border-radius: 50%;
27
- background-color: ${({$color:e})=>e};
28
- animation: ${u} 1s infinite linear;
29
- }
30
-
31
- span:nth-child(1) {
32
- animation-delay: 0s;
33
- }
34
- span:nth-child(2) {
35
- animation-delay: 0.1s;
36
- }
37
- span:nth-child(3) {
38
- animation-delay: 0.2s;
39
- }
40
- `;function f({size:t=`4rem`,color:n=e.L.fg.primary}){return(0,r.jsxs)(d,{$size:t,$color:n,children:[(0,r.jsx)(`span`,{}),(0,r.jsx)(`span`,{}),(0,r.jsx)(`span`,{})]})}var p=i.styled.svg`
41
- animation: spin 1s linear infinite;
42
-
43
- @keyframes spin {
44
- 0% {
45
- transform: rotate(0deg);
46
- }
47
-
48
- 100% {
49
- transform: rotate(360deg);
50
- }
51
- }
52
- `;function m({variant:t=`primary`,dark:n}){return(0,r.jsxs)(p,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,r.jsx)(`circle`,{cx:`12`,cy:`12`,r:`8`,stroke:n?e.L.neutral[`0-A8`]:e.L.neutral[`800-A8`],strokeOpacity:`0.08`,strokeWidth:`3`}),(0,r.jsx)(`path`,{d:`M12 4C16.4183 4 20 7.58172 20 12C20 14.1304 19.1672 16.0663 17.8095 17.5`,stroke:(()=>{switch(t){case`secondary`:return e.L.fg.secondary;case`error`:return e.L.fg.accent.error;default:return n?e.L.white:e.L.fg.primary}})(),strokeWidth:`3`,strokeLinecap:`round`})]})}var h=i.styled.div`
53
- height: 0.063rem;
54
- width: 100%;
55
- background-color: ${e.L.border.default};
56
- margin: 0.75rem 0;
57
- `;function g({...e}){return(0,r.jsx)(h,{...e})}var _=()=>{let[e,n]=(0,t.useState)(window.innerWidth<=768),r=(0,t.useRef)(window.innerWidth);return(0,t.useEffect)(()=>{let e=()=>{let e=window.innerWidth;e<=768&&r.current>768?n(!0):e>768&&r.current<=768&&n(!1),r.current=e};return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]),e},v=1,y=1e6,b=0;function x(){return b=(b+1)%(2**53-1),b.toString()}var S=new Map,C=e=>{if(S.has(e))return;let t=setTimeout(()=>{S.delete(e),D({type:`REMOVE_TOAST`,toastId:e})},y);S.set(e,t)},w=(e,t)=>{switch(t.type){case`ADD_TOAST`:return{...e,toasts:[t.toast,...e.toasts].slice(0,v)};case`UPDATE_TOAST`:return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case`DISMISS_TOAST`:{let{toastId:n}=t;return n?C(n):e.toasts.forEach(e=>{C(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===n||n===void 0?{...e,open:!1}:e)}}case`REMOVE_TOAST`:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},T=[],E={toasts:[]};function D(e){E=w(E,e),T.forEach(e=>{e(E)})}function O({...e}){let t=x(),n=e=>D({type:`UPDATE_TOAST`,toast:{...e,id:t}}),r=()=>D({type:`DISMISS_TOAST`,toastId:t});return D({type:`ADD_TOAST`,toast:{...e,id:t,open:!0,onOpenChange:e=>{e||r()}}}),{id:t,dismiss:r,update:n}}function k(){let[e,n]=t.useState(E);return t.useEffect(()=>(T.push(n),()=>{let e=T.indexOf(n);e>-1&&T.splice(e,1)}),[e]),{...e,toast:O,dismiss:e=>D({type:`DISMISS_TOAST`,toastId:e})}}exports.Button=s,exports.Divider=g,exports.Input=l,exports.Loading=f,exports.Spinner=m,exports.colors=e.L,Object.defineProperty(exports,`icons`,{enumerable:!0,get:function(){return e.t}}),exports.typography=e.R,exports.useIsMobile=_,exports.useToast=k;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./chunks-native.cjs`);let t=require(`react`);t=e.Y(t,1);let n=require(`react-native`),r=require(`react/jsx-runtime`);var i=({size:i=20,color:a=e.q.primary[600],style:o})=>{let s=t.default.useRef(new n.Animated.Value(0)).current;t.default.useEffect(()=>{let e=()=>{s.setValue(0),n.Animated.timing(s,{toValue:1,duration:1e3,easing:n.Easing.linear,useNativeDriver:!0}).start(()=>e())};e()},[s]);let c=s.interpolate({inputRange:[0,1],outputRange:[`0deg`,`360deg`]});return(0,r.jsx)(n.View,{style:[{width:i,height:i},o],children:(0,r.jsx)(n.Animated.View,{style:{width:i,height:i,borderRadius:i/2,borderWidth:2,borderColor:`transparent`,borderTopColor:a,transform:[{rotate:c}]}})})},a=t=>{let n={alignItems:`center`,borderRadius:12,borderWidth:1,flexDirection:`row`,height:48,justifyContent:`center`,paddingHorizontal:16},r={fontSize:15,fontWeight:`500`,textAlign:`center`};switch(t){case`primary`:return{container:{...n,backgroundColor:e.q.primary[500],borderColor:e.q.neutral[`800-A16`]},text:{...r,color:e.q.primary[900]}};case`secondary`:return{container:{...n,backgroundColor:e.q.primary[900],borderColor:e.q.neutral[`800-A16`]},text:{...r,color:e.q.white}};case`tertiary`:return{container:{...n,backgroundColor:e.q.neutral[`800-A04`],borderColor:e.q.neutral[`800-A08`]},text:{...r,color:e.q.primary[900]}};case`destructive`:return{container:{...n,backgroundColor:e.q.fg.accent.error,borderColor:e.q.fg.accent.error},text:{...r,color:e.q.white}};case`destructiveSubtle`:return{container:{...n,backgroundColor:e.q.cream,borderColor:e.q.palePeach},text:{...r,color:e.q.fg.accent.error}}}};function o({variant:t=`primary`,fullWidth:o=!1,children:s,loading:c=!1,disabled:l=!1,onPress:u,...d}){let f=a(t);return(0,r.jsxs)(n.TouchableOpacity,{style:n.StyleSheet.flatten([f.container,o&&{width:`100%`},(l||c)&&{opacity:.4}]),onPress:u,disabled:l||c,activeOpacity:.7,...d,children:[typeof s==`string`?(0,r.jsx)(n.Text,{style:f.text,children:s}):s,c&&(0,r.jsx)(i,{size:16,color:t===`secondary`?e.q.primary[600]:t===`destructiveSubtle`?e.q.fg.accent.error:e.q.white})]})}var s=n.StyleSheet.create({container:{marginBottom:8},fieldContainer:{height:49,paddingHorizontal:12,borderRadius:12,flexDirection:`row`,alignItems:`center`,backgroundColor:e.q.bg.secondary,borderWidth:2,borderColor:e.q.bg.tertiary},fieldContainerError:{borderColor:e.q.fg.accent.error},fieldContainerFocused:{borderColor:e.q.fg.base},fieldContainerFocusedError:{borderColor:e.q.fg.accent.error},formGroup:{position:`relative`,paddingVertical:14,width:`100%`,height:`100%`,justifyContent:`center`},input:{width:`100%`,paddingTop:4,backgroundColor:`transparent`,fontSize:15,fontWeight:`500`,color:e.q.primary[900],paddingBottom:0},label:{position:`absolute`,left:0,fontSize:15,fontWeight:`500`,color:e.q.fg.tertiary},labelFloating:{top:2,fontSize:12,color:e.q.fg.secondary},labelNormal:{top:`50%`,transform:[{translateY:-7.5}]},helper:{marginTop:4,fontSize:12,paddingHorizontal:4},helperError:{color:e.q.fg.accent.error},helperNormal:{color:e.q.fg.secondary}});function c({label:i,value:a=``,onChange:o,error:c,helperText:l,placeholder:u,secureTextEntry:d=!1,keyboardType:f=`default`,autoCapitalize:p=`sentences`,editable:m=!0,multiline:h=!1,numberOfLines:g=1,..._}){let[v,y]=(0,t.useState)(!1),b=a.length>0,x=v||b,S=[s.fieldContainer,c&&s.fieldContainerError,v&&!c&&s.fieldContainerFocused,v&&c&&s.fieldContainerFocusedError],C=[s.label,x?s.labelFloating:s.labelNormal],w=n.StyleSheet.flatten([s.input,h&&{height:g*20,textAlignVertical:`top`}]);return(0,r.jsxs)(n.View,{style:s.container,children:[(0,r.jsx)(n.View,{style:S,children:(0,r.jsxs)(n.View,{style:s.formGroup,children:[(0,r.jsx)(n.TextInput,{style:w,value:a,onChangeText:o,onFocus:()=>y(!0),onBlur:()=>y(!1),placeholder:x?u:``,placeholderTextColor:e.q.fg.tertiary,secureTextEntry:d,keyboardType:f,autoCapitalize:p,editable:m,multiline:h,numberOfLines:g,..._}),(0,r.jsx)(n.Text,{style:C,children:i})]})}),(c||l)&&(0,r.jsx)(n.Text,{style:[s.helper,c?s.helperError:s.helperNormal],children:c||l})]})}var l=()=>{let[e,n]=(0,t.useState)(window.innerWidth<=768),r=(0,t.useRef)(window.innerWidth);return(0,t.useEffect)(()=>{let e=()=>{let e=window.innerWidth;e<=768&&r.current>768?n(!0):e>768&&r.current<=768&&n(!1),r.current=e};return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]),e},u=1,d=1e6,f=0;function p(){return f=(f+1)%(2**53-1),f.toString()}var m=new Map,h=e=>{if(m.has(e))return;let t=setTimeout(()=>{m.delete(e),y({type:`REMOVE_TOAST`,toastId:e})},d);m.set(e,t)},g=(e,t)=>{switch(t.type){case`ADD_TOAST`:return{...e,toasts:[t.toast,...e.toasts].slice(0,u)};case`UPDATE_TOAST`:return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case`DISMISS_TOAST`:{let{toastId:n}=t;return n?h(n):e.toasts.forEach(e=>{h(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===n||n===void 0?{...e,open:!1}:e)}}case`REMOVE_TOAST`:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},_=[],v={toasts:[]};function y(e){v=g(v,e),_.forEach(e=>{e(v)})}function b({...e}){let t=p(),n=e=>y({type:`UPDATE_TOAST`,toast:{...e,id:t}}),r=()=>y({type:`DISMISS_TOAST`,toastId:t});return y({type:`ADD_TOAST`,toast:{...e,id:t,open:!0,onOpenChange:e=>{e||r()}}}),{id:t,dismiss:r,update:n}}function x(){let[e,n]=t.useState(v);return t.useEffect(()=>(_.push(n),()=>{let e=_.indexOf(n);e>-1&&_.splice(e,1)}),[e]),{...e,toast:b,dismiss:e=>y({type:`DISMISS_TOAST`,toastId:e})}}exports.Button=o,exports.Input=c,exports.Spinner=i,exports.colors=e.q,Object.defineProperty(exports,`icons`,{enumerable:!0,get:function(){return e.t}}),exports.typography=e.J,exports.useIsMobile=l,exports.useToast=x;
@@ -1,11 +1,10 @@
1
- import { L as e, R as t, t as n } from "./chunks-native.js";
1
+ import { J as e, q as t, t as n } from "./chunks-native.js";
2
2
  import * as r from "react";
3
3
  import i, { useEffect as a, useRef as o, useState as s } from "react";
4
4
  import { Animated as c, Easing as l, StyleSheet as u, Text as d, TextInput as f, TouchableOpacity as p, View as m } from "react-native";
5
5
  import { jsx as h, jsxs as g } from "react/jsx-runtime";
6
- import { keyframes as _, styled as v } from "styled-components";
7
6
  //#region src/components/Spinner/Spinner.native.tsx
8
- var y = ({ size: t = 20, color: n = e.primary[600], style: r }) => {
7
+ var _ = ({ size: e = 20, color: n = t.primary[600], style: r }) => {
9
8
  let a = i.useRef(new c.Value(0)).current;
10
9
  i.useEffect(() => {
11
10
  let e = () => {
@@ -24,20 +23,20 @@ var y = ({ size: t = 20, color: n = e.primary[600], style: r }) => {
24
23
  });
25
24
  return /* @__PURE__ */ h(m, {
26
25
  style: [{
27
- width: t,
28
- height: t
26
+ width: e,
27
+ height: e
29
28
  }, r],
30
29
  children: /* @__PURE__ */ h(c.View, { style: {
31
- width: t,
32
- height: t,
33
- borderRadius: t / 2,
30
+ width: e,
31
+ height: e,
32
+ borderRadius: e / 2,
34
33
  borderWidth: 2,
35
34
  borderColor: "transparent",
36
35
  borderTopColor: n,
37
36
  transform: [{ rotate: o }]
38
37
  } })
39
38
  });
40
- }, b = (t) => {
39
+ }, v = (e) => {
41
40
  let n = {
42
41
  alignItems: "center",
43
42
  borderRadius: 12,
@@ -51,66 +50,66 @@ var y = ({ size: t = 20, color: n = e.primary[600], style: r }) => {
51
50
  fontWeight: "500",
52
51
  textAlign: "center"
53
52
  };
54
- switch (t) {
53
+ switch (e) {
55
54
  case "primary": return {
56
55
  container: {
57
56
  ...n,
58
- backgroundColor: e.primary[500],
59
- borderColor: e.neutral["800-A16"]
57
+ backgroundColor: t.primary[500],
58
+ borderColor: t.neutral["800-A16"]
60
59
  },
61
60
  text: {
62
61
  ...r,
63
- color: e.primary[900]
62
+ color: t.primary[900]
64
63
  }
65
64
  };
66
65
  case "secondary": return {
67
66
  container: {
68
67
  ...n,
69
- backgroundColor: e.primary[900],
70
- borderColor: e.neutral["800-A16"]
68
+ backgroundColor: t.primary[900],
69
+ borderColor: t.neutral["800-A16"]
71
70
  },
72
71
  text: {
73
72
  ...r,
74
- color: e.white
73
+ color: t.white
75
74
  }
76
75
  };
77
76
  case "tertiary": return {
78
77
  container: {
79
78
  ...n,
80
- backgroundColor: e.neutral["800-A04"],
81
- borderColor: e.neutral["800-A08"]
79
+ backgroundColor: t.neutral["800-A04"],
80
+ borderColor: t.neutral["800-A08"]
82
81
  },
83
82
  text: {
84
83
  ...r,
85
- color: e.primary[900]
84
+ color: t.primary[900]
86
85
  }
87
86
  };
88
87
  case "destructive": return {
89
88
  container: {
90
89
  ...n,
91
- backgroundColor: e.fg.accent.error,
92
- borderColor: e.fg.accent.error
90
+ backgroundColor: t.fg.accent.error,
91
+ borderColor: t.fg.accent.error
93
92
  },
94
93
  text: {
95
94
  ...r,
96
- color: e.white
95
+ color: t.white
97
96
  }
98
97
  };
99
98
  case "destructiveSubtle": return {
100
99
  container: {
101
100
  ...n,
102
- backgroundColor: e.cream,
103
- borderColor: e.palePeach
101
+ backgroundColor: t.cream,
102
+ borderColor: t.palePeach
104
103
  },
105
104
  text: {
106
105
  ...r,
107
- color: e.fg.accent.error
106
+ color: t.fg.accent.error
108
107
  }
109
108
  };
110
109
  }
111
110
  };
112
- function x({ variant: t = "primary", fullWidth: n = !1, children: r, loading: i = !1, disabled: a = !1, onPress: o, ...s }) {
113
- let c = b(t);
111
+ function y({ variant: e = "primary", fullWidth: n = !1, children: r, loading: i = !1, disabled: a = !1, onPress: o, ...s }) {
112
+ let c = v(e);
114
113
  return /* @__PURE__ */ g(p, {
115
114
  style: u.flatten([
116
115
  c.container,
@@ -124,15 +123,15 @@ function x({ variant: t = "primary", fullWidth: n = !1, children: r, loading: i
124
123
  children: [typeof r == "string" ? /* @__PURE__ */ h(d, {
125
124
  style: c.text,
126
125
  children: r
127
- }) : r, i && /* @__PURE__ */ h(y, {
126
+ }) : r, i && /* @__PURE__ */ h(_, {
128
127
  size: 16,
129
- color: t === "secondary" ? e.primary[600] : t === "destructiveSubtle" ? e.fg.accent.error : e.white
128
+ color: e === "secondary" ? t.primary[600] : e === "destructiveSubtle" ? t.fg.accent.error : t.white
130
129
  })]
131
130
  });
132
131
  }
133
132
  //#endregion
134
133
  //#region src/components/Input/Input.native.tsx
135
- var S = u.create({
134
+ var b = u.create({
136
135
  container: { marginBottom: 8 },
137
136
  fieldContainer: {
138
137
  height: 49,
@@ -140,13 +139,13 @@ var S = u.create({
140
139
  borderRadius: 12,
141
140
  flexDirection: "row",
142
141
  alignItems: "center",
143
- backgroundColor: e.bg.secondary,
142
+ backgroundColor: t.bg.secondary,
144
143
  borderWidth: 2,
145
- borderColor: e.bg.tertiary
144
+ borderColor: t.bg.tertiary
146
145
  },
147
- fieldContainerError: { borderColor: e.fg.accent.error },
148
- fieldContainerFocused: { borderColor: e.fg.base },
149
- fieldContainerFocusedError: { borderColor: e.fg.accent.error },
146
+ fieldContainerError: { borderColor: t.fg.accent.error },
147
+ fieldContainerFocused: { borderColor: t.fg.base },
148
+ fieldContainerFocusedError: { borderColor: t.fg.accent.error },
150
149
  formGroup: {
151
150
  position: "relative",
152
151
  paddingVertical: 14,
@@ -160,7 +159,7 @@ var S = u.create({
160
159
  backgroundColor: "transparent",
161
160
  fontSize: 15,
162
161
  fontWeight: "500",
163
- color: e.primary[900],
162
+ color: t.primary[900],
164
163
  paddingBottom: 0
165
164
  },
166
165
  label: {
@@ -168,12 +167,12 @@ var S = u.create({
168
167
  left: 0,
169
168
  fontSize: 15,
170
169
  fontWeight: "500",
171
- color: e.fg.tertiary
170
+ color: t.fg.tertiary
172
171
  },
173
172
  labelFloating: {
174
173
  top: 2,
175
174
  fontSize: 12,
176
- color: e.fg.secondary
175
+ color: t.fg.secondary
177
176
  },
178
177
  labelNormal: {
179
178
  top: "50%",
@@ -184,25 +183,25 @@ var S = u.create({
184
183
  fontSize: 12,
185
184
  paddingHorizontal: 4
186
185
  },
187
- helperError: { color: e.fg.accent.error },
188
- helperNormal: { color: e.fg.secondary }
186
+ helperError: { color: t.fg.accent.error },
187
+ helperNormal: { color: t.fg.secondary }
189
188
  });
190
- function C({ label: t, value: n = "", onChange: r, error: i, helperText: a, placeholder: o, secureTextEntry: c = !1, keyboardType: l = "default", autoCapitalize: p = "sentences", editable: _ = !0, multiline: v = !1, numberOfLines: y = 1, ...b }) {
191
- let [x, C] = s(!1), w = n.length > 0, T = x || w, E = [
192
- S.fieldContainer,
193
- i && S.fieldContainerError,
194
- x && !i && S.fieldContainerFocused,
195
- x && i && S.fieldContainerFocusedError
196
- ], D = [S.label, T ? S.labelFloating : S.labelNormal], O = u.flatten([S.input, v && {
189
+ function x({ label: e, value: n = "", onChange: r, error: i, helperText: a, placeholder: o, secureTextEntry: c = !1, keyboardType: l = "default", autoCapitalize: p = "sentences", editable: _ = !0, multiline: v = !1, numberOfLines: y = 1, ...x }) {
190
+ let [S, C] = s(!1), w = n.length > 0, T = S || w, E = [
191
+ b.fieldContainer,
192
+ i && b.fieldContainerError,
193
+ S && !i && b.fieldContainerFocused,
194
+ S && i && b.fieldContainerFocusedError
195
+ ], D = [b.label, T ? b.labelFloating : b.labelNormal], O = u.flatten([b.input, v && {
197
196
  height: y * 20,
198
197
  textAlignVertical: "top"
199
198
  }]);
200
199
  return /* @__PURE__ */ g(m, {
201
- style: S.container,
200
+ style: b.container,
202
201
  children: [/* @__PURE__ */ h(m, {
203
202
  style: E,
204
203
  children: /* @__PURE__ */ g(m, {
205
- style: S.formGroup,
204
+ style: b.formGroup,
206
205
  children: [/* @__PURE__ */ h(f, {
207
206
  style: O,
208
207
  value: n,
@@ -210,135 +209,28 @@ function C({ label: t, value: n = "", onChange: r, error: i, helperText: a, plac
210
209
  onFocus: () => C(!0),
211
210
  onBlur: () => C(!1),
212
211
  placeholder: T ? o : "",
213
- placeholderTextColor: e.fg.tertiary,
212
+ placeholderTextColor: t.fg.tertiary,
214
213
  secureTextEntry: c,
215
214
  keyboardType: l,
216
215
  autoCapitalize: p,
217
216
  editable: _,
218
217
  multiline: v,
219
218
  numberOfLines: y,
220
- ...b
219
+ ...x
221
220
  }), /* @__PURE__ */ h(d, {
222
221
  style: D,
223
- children: t
222
+ children: e
224
223
  })]
225
224
  })
226
225
  }), (i || a) && /* @__PURE__ */ h(d, {
227
- style: [S.helper, i ? S.helperError : S.helperNormal],
226
+ style: [b.helper, i ? b.helperError : b.helperNormal],
228
227
  children: i || a
229
228
  })]
230
229
  });
231
230
  }
232
231
  //#endregion
233
- //#region src/components/Loading/Loading.tsx
234
- var w = _`
235
- 0% {
236
- transform: translateY(-150%);
237
- opacity: 0;
238
- }
239
- 25%,
240
- 50%,
241
- 75% {
242
- transform: translateY(0);
243
- opacity: 1;
244
- }
245
- 100% {
246
- transform: translateY(150%);
247
- opacity: 0;
248
- }
249
- `, T = v.div`
250
- display: inline-flex;
251
- align-items: center;
252
- justify-content: space-between;
253
- width: ${({ $size: e }) => e};
254
- height: calc(${({ $size: e }) => e} / 4);
255
-
256
- span {
257
- width: calc(${({ $size: e }) => e} / 4);
258
- height: calc(${({ $size: e }) => e} / 4);
259
- border-radius: 50%;
260
- background-color: ${({ $color: e }) => e};
261
- animation: ${w} 1s infinite linear;
262
- }
263
-
264
- span:nth-child(1) {
265
- animation-delay: 0s;
266
- }
267
- span:nth-child(2) {
268
- animation-delay: 0.1s;
269
- }
270
- span:nth-child(3) {
271
- animation-delay: 0.2s;
272
- }
273
- `;
274
- function E({ size: t = "4rem", color: n = e.fg.primary }) {
275
- return /* @__PURE__ */ g(T, {
276
- $size: t,
277
- $color: n,
278
- children: [
279
- /* @__PURE__ */ h("span", {}),
280
- /* @__PURE__ */ h("span", {}),
281
- /* @__PURE__ */ h("span", {})
282
- ]
283
- });
284
- }
285
- //#endregion
286
- //#region src/components/Spinner/Spinner.tsx
287
- var D = v.svg`
288
- animation: spin 1s linear infinite;
289
-
290
- @keyframes spin {
291
- 0% {
292
- transform: rotate(0deg);
293
- }
294
-
295
- 100% {
296
- transform: rotate(360deg);
297
- }
298
- }
299
- `;
300
- function O({ variant: t = "primary", dark: n }) {
301
- return /* @__PURE__ */ g(D, {
302
- width: "24",
303
- height: "24",
304
- viewBox: "0 0 24 24",
305
- fill: "none",
306
- xmlns: "http://www.w3.org/2000/svg",
307
- children: [/* @__PURE__ */ h("circle", {
308
- cx: "12",
309
- cy: "12",
310
- r: "8",
311
- stroke: n ? e.neutral["0-A8"] : e.neutral["800-A8"],
312
- strokeOpacity: "0.08",
313
- strokeWidth: "3"
314
- }), /* @__PURE__ */ h("path", {
315
- d: "M12 4C16.4183 4 20 7.58172 20 12C20 14.1304 19.1672 16.0663 17.8095 17.5",
316
- stroke: (() => {
317
- switch (t) {
318
- case "secondary": return e.fg.secondary;
319
- case "error": return e.fg.accent.error;
320
- default: return n ? e.white : e.fg.primary;
321
- }
322
- })(),
323
- strokeWidth: "3",
324
- strokeLinecap: "round"
325
- })]
326
- });
327
- }
328
- //#endregion
329
- //#region src/components/Divider/Divider.tsx
330
- var k = v.div`
331
- height: 0.063rem;
332
- width: 100%;
333
- background-color: ${e.border.default};
334
- margin: 0.75rem 0;
335
- `;
336
- function A({ ...e }) {
337
- return /* @__PURE__ */ h(k, { ...e });
338
- }
339
- //#endregion
340
232
  //#region src/hooks/mobile.ts
341
- var j = () => {
233
+ var S = () => {
342
234
  let [e, t] = s(window.innerWidth <= 768), n = o(window.innerWidth);
343
235
  return a(() => {
344
236
  let e = () => {
@@ -347,24 +239,24 @@ var j = () => {
347
239
  };
348
240
  return window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
349
241
  }, []), e;
350
- }, M = 1, N = 1e6, P = 0;
351
- function F() {
352
- return P = (P + 1) % (2 ** 53 - 1), P.toString();
242
+ }, C = 1, w = 1e6, T = 0;
243
+ function E() {
244
+ return T = (T + 1) % (2 ** 53 - 1), T.toString();
353
245
  }
354
- var I = /* @__PURE__ */ new Map(), L = (e) => {
355
- if (I.has(e)) return;
246
+ var D = /* @__PURE__ */ new Map(), O = (e) => {
247
+ if (D.has(e)) return;
356
248
  let t = setTimeout(() => {
357
- I.delete(e), V({
249
+ D.delete(e), M({
358
250
  type: "REMOVE_TOAST",
359
251
  toastId: e
360
252
  });
361
- }, N);
362
- I.set(e, t);
363
- }, R = (e, t) => {
253
+ }, w);
254
+ D.set(e, t);
255
+ }, k = (e, t) => {
364
256
  switch (t.type) {
365
257
  case "ADD_TOAST": return {
366
258
  ...e,
367
- toasts: [t.toast, ...e.toasts].slice(0, M)
259
+ toasts: [t.toast, ...e.toasts].slice(0, C)
368
260
  };
369
261
  case "UPDATE_TOAST": return {
370
262
  ...e,
@@ -375,8 +267,8 @@ var I = /* @__PURE__ */ new Map(), L = (e) => {
375
267
  };
376
268
  case "DISMISS_TOAST": {
377
269
  let { toastId: n } = t;
378
- return n ? L(n) : e.toasts.forEach((e) => {
379
- L(e.id);
270
+ return n ? O(n) : e.toasts.forEach((e) => {
271
+ O(e.id);
380
272
  }), {
381
273
  ...e,
382
274
  toasts: e.toasts.map((e) => e.id === n || n === void 0 ? {
@@ -393,24 +285,24 @@ var I = /* @__PURE__ */ new Map(), L = (e) => {
393
285
  toasts: e.toasts.filter((e) => e.id !== t.toastId)
394
286
  };
395
287
  }
396
- }, z = [], B = { toasts: [] };
397
- function V(e) {
398
- B = R(B, e), z.forEach((e) => {
399
- e(B);
288
+ }, A = [], j = { toasts: [] };
289
+ function M(e) {
290
+ j = k(j, e), A.forEach((e) => {
291
+ e(j);
400
292
  });
401
293
  }
402
- function H({ ...e }) {
403
- let t = F(), n = (e) => V({
294
+ function N({ ...e }) {
295
+ let t = E(), n = (e) => M({
404
296
  type: "UPDATE_TOAST",
405
297
  toast: {
406
298
  ...e,
407
299
  id: t
408
300
  }
409
- }), r = () => V({
301
+ }), r = () => M({
410
302
  type: "DISMISS_TOAST",
411
303
  toastId: t
412
304
  });
413
- return V({
305
+ return M({
414
306
  type: "ADD_TOAST",
415
307
  toast: {
416
308
  ...e,
@@ -426,19 +318,19 @@ function H({ ...e }) {
426
318
  update: n
427
319
  };
428
320
  }
429
- function U() {
430
- let [e, t] = r.useState(B);
431
- return r.useEffect(() => (z.push(t), () => {
432
- let e = z.indexOf(t);
433
- e > -1 && z.splice(e, 1);
321
+ function P() {
322
+ let [e, t] = r.useState(j);
323
+ return r.useEffect(() => (A.push(t), () => {
324
+ let e = A.indexOf(t);
325
+ e > -1 && A.splice(e, 1);
434
326
  }), [e]), {
435
327
  ...e,
436
- toast: H,
437
- dismiss: (e) => V({
328
+ toast: N,
329
+ dismiss: (e) => M({
438
330
  type: "DISMISS_TOAST",
439
331
  toastId: e
440
332
  })
441
333
  };
442
334
  }
443
335
  //#endregion
444
- export { x as Button, A as Divider, C as Input, E as Loading, O as Spinner, e as colors, n as icons, t as typography, j as useIsMobile, U as useToast };
336
+ export { y as Button, x as Input, _ as Spinner, t as colors, n as icons, e as typography, S as useIsMobile, P as useToast };
@@ -0,0 +1,19 @@
1
+ type OptionItem = {
2
+ value: string;
3
+ label: string;
4
+ };
5
+ type Props = {
6
+ selectedValue: string;
7
+ setSelectedValue: (value: string) => void;
8
+ value: string;
9
+ onChange: (value: string) => void;
10
+ options: OptionItem[] | undefined;
11
+ isLoading: boolean;
12
+ isError: boolean;
13
+ label: string;
14
+ errorText?: string;
15
+ emptyText?: string;
16
+ allowCustomValue?: boolean;
17
+ };
18
+ export default function Autocomplete({ selectedValue, setSelectedValue, value, onChange, options, isLoading, isError, label, errorText, emptyText, allowCustomValue, ...props }: Props): import("react/jsx-runtime").JSX.Element;
19
+ export {};
@@ -0,0 +1,10 @@
1
+ type ButtonVariant = 'primary' | 'secondary' | 'tertiary' | 'destructive' | 'destructiveSubtle';
2
+ export type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {
3
+ variant?: ButtonVariant;
4
+ fullWidth?: boolean;
5
+ size?: 'medium' | 'large';
6
+ loading?: boolean;
7
+ children?: React.ReactNode;
8
+ };
9
+ export default function Button({ variant, fullWidth, size, children, loading, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -0,0 +1,12 @@
1
+ import { default as React } from 'react';
2
+ type ButtonVariant = 'primary' | 'secondary' | 'tertiary' | 'destructive' | 'destructiveSubtle';
3
+ export type ButtonProps = {
4
+ variant?: ButtonVariant;
5
+ fullWidth?: boolean;
6
+ loading?: boolean;
7
+ disabled?: boolean;
8
+ children?: React.ReactNode;
9
+ onPress?: () => void;
10
+ };
11
+ export default function Button({ variant, fullWidth, children, loading, disabled, onPress, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
12
+ export {};
@@ -0,0 +1,9 @@
1
+ export type DatePickerProps = {
2
+ label: string;
3
+ value?: string;
4
+ onChange: (e: string) => void;
5
+ error?: string;
6
+ helperText?: string;
7
+ time?: boolean;
8
+ };
9
+ export default function DatePicker({ label, value, onChange, error, helperText, time, ...props }: DatePickerProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ type DialogProps = {
2
+ open?: boolean;
3
+ toggleDialog?: () => void;
4
+ children?: React.ReactNode;
5
+ };
6
+ export default function Dialog({ open, toggleDialog, children, ...props }: DialogProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,10 @@
1
+ import * as DialogPrimitive from '@radix-ui/react-dialog';
2
+ type DialogContentProps = {
3
+ children?: React.ReactNode;
4
+ width?: string;
5
+ height?: string;
6
+ background?: string;
7
+ fullScreen?: boolean;
8
+ };
9
+ declare const DialogContent: import('react').ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & DialogContentProps & import('react').RefAttributes<HTMLDivElement>>;
10
+ export default DialogContent;
@@ -0,0 +1,5 @@
1
+ type DialogDetailsProps = {
2
+ children: React.ReactNode;
3
+ };
4
+ export default function DialogDetails({ children, ...props }: DialogDetailsProps & React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
5
+ export {};
@@ -0,0 +1,7 @@
1
+ type DialogHeaderProps = {
2
+ onGoBack?: () => void;
3
+ onClose?: () => void;
4
+ title?: string;
5
+ };
6
+ export default function DialogHeader({ onGoBack, onClose, title, ...props }: DialogHeaderProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,14 @@
1
+ type DialogAlertProps = {
2
+ title: string;
3
+ description?: string;
4
+ closeLabel: string;
5
+ onClose: () => void;
6
+ loading?: boolean;
7
+ confirm?: {
8
+ label: string;
9
+ onConfirm: () => void;
10
+ destructive?: boolean;
11
+ };
12
+ };
13
+ declare const DialogAlert: import('react').ForwardRefExoticComponent<DialogAlertProps & import('react').RefAttributes<HTMLDivElement>>;
14
+ export default DialogAlert;
@@ -0,0 +1,7 @@
1
+ type DialogSuccessProps = {
2
+ description: string;
3
+ actionLabel: string;
4
+ onAction: () => void;
5
+ };
6
+ declare const DialogSuccess: import('react').ForwardRefExoticComponent<DialogSuccessProps & import('react').RefAttributes<HTMLDivElement>>;
7
+ export default DialogSuccess;
@@ -0,0 +1 @@
1
+ export default function PilotWink(): import("react/jsx-runtime").JSX.Element;