@cuemath/leap 3.1.7 → 3.1.8-aa0

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 (57) hide show
  1. package/dist/assets/illustrations/illustrations.js +1 -1
  2. package/dist/assets/illustrations/illustrations.js.map +1 -1
  3. package/dist/constants/country.js +994 -2
  4. package/dist/constants/country.js.map +1 -1
  5. package/dist/features/auth/account-selector/account-selector-styled.js +9 -0
  6. package/dist/features/auth/account-selector/account-selector-styled.js.map +1 -0
  7. package/dist/features/auth/account-selector/account-selector.js +60 -36
  8. package/dist/features/auth/account-selector/account-selector.js.map +1 -1
  9. package/dist/features/auth/comps/auth-page-layout/{auth-page-layout-styles.js → auth-page-layout-styled.js} +1 -1
  10. package/dist/features/auth/comps/auth-page-layout/{auth-page-layout-styles.js.map → auth-page-layout-styled.js.map} +1 -1
  11. package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js +20 -9
  12. package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js.map +1 -1
  13. package/dist/features/auth/comps/auth-static-panel/auth-static-panel.js +1 -1
  14. package/dist/features/auth/comps/auth-static-panel/auth-static-panel.js.map +1 -1
  15. package/dist/features/auth/forgot-password/forgot-password-styled.js +30 -4
  16. package/dist/features/auth/forgot-password/forgot-password-styled.js.map +1 -1
  17. package/dist/features/auth/forgot-password/otp-form/otp-form.js +27 -29
  18. package/dist/features/auth/forgot-password/otp-form/otp-form.js.map +1 -1
  19. package/dist/features/auth/forgot-password/reset-password-form/reset-password-form.js +22 -27
  20. package/dist/features/auth/forgot-password/reset-password-form/reset-password-form.js.map +1 -1
  21. package/dist/features/auth/forgot-password/user-identifier-form/user-identifier-form.js +25 -28
  22. package/dist/features/auth/forgot-password/user-identifier-form/user-identifier-form.js.map +1 -1
  23. package/dist/features/auth/login/identifier-otp-form/identifier-otp-form-styled.js +17 -4
  24. package/dist/features/auth/login/identifier-otp-form/identifier-otp-form-styled.js.map +1 -1
  25. package/dist/features/auth/login/identifier-otp-form/identifier-otp-form.js +88 -79
  26. package/dist/features/auth/login/identifier-otp-form/identifier-otp-form.js.map +1 -1
  27. package/dist/features/auth/login/login-styled.js +26 -0
  28. package/dist/features/auth/login/login-styled.js.map +1 -0
  29. package/dist/features/auth/login/social-account-not-found/social-account-not-found.js +27 -21
  30. package/dist/features/auth/login/social-account-not-found/social-account-not-found.js.map +1 -1
  31. package/dist/features/auth/login/social-login-methods/social-login-methods-styled.js +9 -0
  32. package/dist/features/auth/login/social-login-methods/social-login-methods-styled.js.map +1 -0
  33. package/dist/features/auth/login/social-login-methods/social-login-methods.js +43 -34
  34. package/dist/features/auth/login/social-login-methods/social-login-methods.js.map +1 -1
  35. package/dist/features/auth/login/username-password-form/username-password-form.js +68 -71
  36. package/dist/features/auth/login/username-password-form/username-password-form.js.map +1 -1
  37. package/dist/features/auth/signup/custom-input-field/country-selector/country-list-menu.js +1 -1
  38. package/dist/features/auth/signup/custom-input-field/country-selector/country-list-menu.js.map +1 -1
  39. package/dist/features/auth/signup/signup-constants.js +6 -998
  40. package/dist/features/auth/signup/signup-constants.js.map +1 -1
  41. package/dist/features/auth/user-list/user-item/user-item.js +33 -32
  42. package/dist/features/auth/user-list/user-item/user-item.js.map +1 -1
  43. package/dist/features/auth/user-list/user-list.js +60 -51
  44. package/dist/features/auth/user-list/user-list.js.map +1 -1
  45. package/dist/features/hooks/use-viewport/use-viewport.js +21 -0
  46. package/dist/features/hooks/use-viewport/use-viewport.js.map +1 -0
  47. package/dist/features/ui/buttons/button/button-styled.js +29 -29
  48. package/dist/features/ui/buttons/button/button-styled.js.map +1 -1
  49. package/dist/features/utils/media.js +16 -0
  50. package/dist/features/utils/media.js.map +1 -0
  51. package/dist/features/worksheet/worksheet/worksheet-question/subjective-feedback.js +60 -60
  52. package/dist/features/worksheet/worksheet/worksheet-question/subjective-feedback.js.map +1 -1
  53. package/dist/index.d.ts +22 -15
  54. package/dist/index.js +56 -52
  55. package/dist/index.js.map +1 -1
  56. package/dist/static/cuemath-app-qr-code.7205ee79.svg +1 -0
  57. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"signup-constants.js","sources":["../../../../src/features/auth/signup/signup-constants.ts"],"sourcesContent":["import type { ICountryOption, TAuthUserType } from './signup-types';\n\nconst baseImgUrl = `https://d138zd1ktt9iqe.cloudfront.net/static/website_2_0/images/country-flags`;\n\nexport const COUNTRY_CODE_MAP: ICountryOption[] = [\n {\n id: 'india',\n code: '91',\n label: '+91',\n value: 'India',\n icon: `${baseImgUrl}/india.png`,\n url: `${baseImgUrl}/india.png`,\n geoIPCountryCode: 'IN',\n },\n {\n id: 'united-states-of-america',\n code: '1',\n label: '+1',\n value: 'USA',\n icon: `${baseImgUrl}/united-states-of-america.png`,\n url: `${baseImgUrl}/united-states-of-america.png`,\n geoIPCountryCode: 'US',\n },\n {\n id: 'afghanistan',\n code: '93',\n label: '+93',\n value: 'Afghanistan',\n icon: `${baseImgUrl}/afghanistan.png`,\n url: `${baseImgUrl}/afghanistan.png`,\n geoIPCountryCode: 'AF',\n },\n {\n id: 'albania',\n code: '355',\n label: '+355',\n value: 'Albania',\n icon: `${baseImgUrl}/Albania.png`,\n url: `${baseImgUrl}/Albania.png`,\n geoIPCountryCode: 'AL',\n },\n {\n id: 'algeria',\n code: '213',\n label: '+213',\n value: 'Algeria',\n icon: `${baseImgUrl}/Algeria.png`,\n url: `${baseImgUrl}/Algeria.png`,\n geoIPCountryCode: 'DZ',\n },\n {\n id: 'american-samoa',\n code: '685',\n label: '+685',\n value: 'Samoa',\n icon: `${baseImgUrl}/american-samoa.png`,\n url: `${baseImgUrl}/american-samoa.png`,\n geoIPCountryCode: 'AS',\n },\n {\n id: 'anguilla',\n code: '1264',\n label: '+1264',\n value: 'Anguilla',\n icon: `${baseImgUrl}/Anguilla.png`,\n url: `${baseImgUrl}/Anguilla.png`,\n geoIPCountryCode: 'AI',\n },\n {\n id: 'antigua-and-barbuda',\n code: '1268',\n label: '+1268',\n value: 'Antigua and Barbuda',\n icon: `${baseImgUrl}/Antigua-and-Barbuda.png`,\n url: `${baseImgUrl}/Antigua-and-Barbuda.png`,\n geoIPCountryCode: 'AG',\n },\n {\n id: 'argentina',\n code: '54',\n label: '+54',\n value: 'Argentina',\n icon: `${baseImgUrl}/argentina.png`,\n url: `${baseImgUrl}/argentina.png`,\n geoIPCountryCode: 'AR',\n },\n {\n id: 'armenia',\n code: '374',\n label: '+374',\n value: 'Armenia',\n icon: `${baseImgUrl}/Armenia.png`,\n url: `${baseImgUrl}/Armenia.png`,\n geoIPCountryCode: 'AM',\n },\n {\n id: 'australia',\n code: '61',\n label: '+61',\n value: 'Australia',\n icon: `${baseImgUrl}/australia.png`,\n url: `${baseImgUrl}/australia.png`,\n geoIPCountryCode: 'AU',\n },\n {\n id: 'austria',\n code: '43',\n label: '+43',\n value: 'Austria',\n icon: `${baseImgUrl}/austria.png`,\n url: `${baseImgUrl}/austria.png`,\n geoIPCountryCode: 'AT',\n },\n {\n id: 'azerbaijan',\n code: '994',\n label: '+994',\n value: 'Azerbaijan',\n icon: `${baseImgUrl}/Azerbaijan.png`,\n url: `${baseImgUrl}/Azerbaijan.png`,\n geoIPCountryCode: 'AZ',\n },\n {\n id: 'bahrain',\n code: '973',\n label: '+973',\n value: 'Bahrain',\n icon: `${baseImgUrl}/bahrain.png`,\n url: `${baseImgUrl}/bahrain.png`,\n geoIPCountryCode: 'BH',\n },\n {\n id: 'bangladesh',\n code: '880',\n label: '+880',\n value: 'Bangladesh',\n icon: `${baseImgUrl}/bangladesh.png`,\n url: `${baseImgUrl}/bangladesh.png`,\n geoIPCountryCode: 'BD',\n },\n {\n id: 'belarus',\n code: '375',\n label: '+375',\n value: 'Belarus',\n icon: `${baseImgUrl}/Belarus.png`,\n url: `${baseImgUrl}/Belarus.png`,\n geoIPCountryCode: 'BY',\n },\n {\n id: 'belgium',\n code: '32',\n label: '+32',\n value: 'Belgium',\n icon: `${baseImgUrl}/belgium.png`,\n url: `${baseImgUrl}/belgium.png`,\n geoIPCountryCode: 'BE',\n },\n {\n id: 'bermuda',\n code: '1441',\n label: '+1441',\n value: 'Bermuda',\n icon: `${baseImgUrl}/bermuda.png`,\n url: `${baseImgUrl}/bermuda.png`,\n geoIPCountryCode: 'BM',\n },\n {\n id: 'bhutan',\n code: '975',\n label: '+975',\n value: 'Bhutan',\n icon: `${baseImgUrl}/bhutan.png`,\n url: `${baseImgUrl}/bhutan.png`,\n geoIPCountryCode: 'BT',\n },\n {\n id: 'bosnia-and-herzegovina',\n code: '387',\n label: '+387',\n value: 'Bosnia And Herzegovina',\n icon: `${baseImgUrl}/Bosnia-And-Herzegovina.png`,\n url: `${baseImgUrl}/Bosnia-And-Herzegovina.png`,\n geoIPCountryCode: 'BA',\n },\n {\n id: 'brazil',\n code: '55',\n label: '+55',\n value: 'Brazil',\n icon: `${baseImgUrl}/brazil.png`,\n url: `${baseImgUrl}/brazil.png`,\n geoIPCountryCode: 'BR',\n },\n {\n id: 'bulgaria',\n code: '359',\n label: '+359',\n value: 'Bulgaria',\n icon: `${baseImgUrl}/bulgaria.png`,\n url: `${baseImgUrl}/bulgaria.png`,\n geoIPCountryCode: 'BG',\n },\n {\n id: 'cambodia',\n code: '855',\n label: '+855',\n value: 'Cambodia',\n icon: `${baseImgUrl}/cambodia.png`,\n url: `${baseImgUrl}/cambodia.png`,\n geoIPCountryCode: 'KH',\n },\n {\n id: 'cameroon',\n code: '237',\n label: '+237',\n value: 'Cameroon',\n icon: `${baseImgUrl}/Cameroon.png`,\n url: `${baseImgUrl}/Cameroon.png`,\n geoIPCountryCode: 'CM',\n },\n {\n id: 'canada',\n code: '1',\n label: '+1',\n value: 'Canada',\n icon: `${baseImgUrl}/canada.png`,\n url: `${baseImgUrl}/canada.png`,\n geoIPCountryCode: 'CA',\n },\n {\n id: 'chile',\n code: '56',\n label: '+56',\n value: 'Chile',\n icon: `${baseImgUrl}/chile.png`,\n url: `${baseImgUrl}/chile.png`,\n geoIPCountryCode: 'CL',\n },\n {\n id: 'china',\n code: '86',\n label: '+86',\n value: 'China',\n icon: `${baseImgUrl}/china.png`,\n url: `${baseImgUrl}/china.png`,\n geoIPCountryCode: 'CN',\n },\n {\n id: 'colombia',\n code: '57',\n label: '+57',\n value: 'Colombia',\n icon: `${baseImgUrl}/colombia.png`,\n url: `${baseImgUrl}/colombia.png`,\n geoIPCountryCode: 'CO',\n },\n {\n id: 'congo',\n code: '243',\n label: '+243',\n value: 'Congo',\n icon: `${baseImgUrl}/Congo.png`,\n url: `${baseImgUrl}/Congo.png`,\n geoIPCountryCode: 'CD',\n },\n {\n id: 'cuba',\n code: '53',\n label: '+53',\n value: 'Cuba',\n icon: `${baseImgUrl}/cuba.png`,\n url: `${baseImgUrl}/cuba.png`,\n geoIPCountryCode: 'CU',\n },\n {\n id: 'czech-republic',\n code: '420',\n label: '+420',\n value: 'Czech Republic',\n icon: `${baseImgUrl}/czech-republic.png`,\n url: `${baseImgUrl}/czech-republic.png`,\n geoIPCountryCode: 'CZ',\n },\n {\n id: 'denmark',\n code: '45',\n label: '+45',\n value: 'Denmark',\n icon: `${baseImgUrl}/denmark.png`,\n url: `${baseImgUrl}/denmark.png`,\n geoIPCountryCode: 'DK',\n },\n {\n id: 'ecuador',\n code: '593',\n label: '+593',\n value: 'Ecuador',\n icon: `${baseImgUrl}/Ecuador.png`,\n url: `${baseImgUrl}/Ecuador.png`,\n geoIPCountryCode: 'EC',\n },\n {\n id: 'egypt',\n code: '20',\n label: '+20',\n value: 'Egypt',\n icon: `${baseImgUrl}/egypt.png`,\n url: `${baseImgUrl}/egypt.png`,\n geoIPCountryCode: 'EG',\n },\n {\n id: 'ethiopia',\n code: '251',\n label: '+251',\n value: 'Ethiopia',\n icon: `${baseImgUrl}/ethiopia.png`,\n url: `${baseImgUrl}/ethiopia.png`,\n geoIPCountryCode: 'ET',\n },\n {\n id: 'finland',\n code: '358',\n label: '+358',\n value: 'Finland',\n icon: `${baseImgUrl}/finland.png`,\n url: `${baseImgUrl}/finland.png`,\n geoIPCountryCode: 'FI',\n },\n {\n id: 'france',\n code: '33',\n label: '+33',\n value: 'France',\n icon: `${baseImgUrl}/france.png`,\n url: `${baseImgUrl}/france.png`,\n geoIPCountryCode: 'FR',\n },\n {\n id: 'gambia',\n code: '220',\n label: '+220',\n value: 'Gambia',\n icon: `${baseImgUrl}/Gambia.png`,\n url: `${baseImgUrl}/Gambia.png`,\n geoIPCountryCode: 'GM',\n },\n {\n id: 'germany',\n code: '49',\n label: '+49',\n value: 'Germany',\n icon: `${baseImgUrl}/germany.png`,\n url: `${baseImgUrl}/germany.png`,\n geoIPCountryCode: 'DE',\n },\n {\n id: 'ghana',\n code: '233',\n label: '+233',\n value: 'Ghana',\n icon: `${baseImgUrl}/ghana.png`,\n url: `${baseImgUrl}/ghana.png`,\n geoIPCountryCode: 'GH',\n },\n {\n id: 'hong-kong',\n code: '852',\n label: '+852',\n value: 'Hong Kong',\n icon: `${baseImgUrl}/hong-kong.png`,\n url: `${baseImgUrl}/hong-kong.png`,\n geoIPCountryCode: 'HK',\n },\n {\n id: 'hungary',\n code: '36',\n label: '+36',\n value: 'Hungary',\n icon: `${baseImgUrl}/hungary.png`,\n url: `${baseImgUrl}/hungary.png`,\n geoIPCountryCode: 'HU',\n },\n {\n id: 'iceland',\n code: '354',\n label: '+354',\n value: 'Iceland',\n icon: `${baseImgUrl}/iceland.png`,\n url: `${baseImgUrl}/iceland.png`,\n geoIPCountryCode: 'IS',\n },\n\n {\n id: 'indonesia',\n code: '62',\n label: '+62',\n value: 'Indonesia',\n icon: `${baseImgUrl}/indonesia.png`,\n url: `${baseImgUrl}/indonesia.png`,\n geoIPCountryCode: 'ID',\n },\n {\n id: 'iran',\n code: '98',\n label: '+98',\n value: 'Iran',\n icon: `${baseImgUrl}/Iran.png`,\n url: `${baseImgUrl}/Iran.png`,\n geoIPCountryCode: 'IR',\n },\n {\n id: 'iraq',\n code: '964',\n label: '+964',\n value: 'Iraq',\n icon: `${baseImgUrl}/iraq.png`,\n url: `${baseImgUrl}/iraq.png`,\n geoIPCountryCode: 'IQ',\n },\n {\n id: 'ireland',\n code: '353',\n label: '+353',\n value: 'Ireland',\n icon: `${baseImgUrl}/ireland.png`,\n url: `${baseImgUrl}/ireland.png`,\n geoIPCountryCode: 'IE',\n },\n {\n id: 'israel',\n code: '972',\n label: '+972',\n value: 'Israel',\n icon: `${baseImgUrl}/israel.png`,\n url: `${baseImgUrl}/israel.png`,\n geoIPCountryCode: 'IL',\n },\n {\n id: 'italy',\n code: '39',\n label: '+39',\n value: 'Italy',\n icon: `${baseImgUrl}/italy.png`,\n url: `${baseImgUrl}/italy.png`,\n geoIPCountryCode: 'IT',\n },\n {\n id: 'jamaica',\n code: '876',\n label: '+876',\n value: 'Jamaica',\n icon: `${baseImgUrl}/jamaica.png`,\n url: `${baseImgUrl}/jamaica.png`,\n geoIPCountryCode: 'JM',\n },\n {\n id: 'japan',\n code: '81',\n label: '+81',\n value: 'Japan',\n icon: `${baseImgUrl}/japan.png`,\n url: `${baseImgUrl}/japan.png`,\n geoIPCountryCode: 'JP',\n },\n {\n id: 'jordan',\n code: '962',\n label: '+962',\n value: 'Jordan',\n icon: `${baseImgUrl}/jordan.png`,\n url: `${baseImgUrl}/jordan.png`,\n geoIPCountryCode: 'JO',\n },\n {\n id: 'kazakhstan',\n code: '7',\n label: '+7',\n value: 'Kazakhstan',\n icon: `${baseImgUrl}/Kazakhstan.png`,\n url: `${baseImgUrl}/Kazakhstan.png`,\n geoIPCountryCode: 'KZ',\n },\n {\n id: 'kenya',\n code: '254',\n label: '+254',\n value: 'Kenya',\n icon: `${baseImgUrl}/kenya.png`,\n url: `${baseImgUrl}/kenya.png`,\n geoIPCountryCode: 'KE',\n },\n {\n id: 'kuwait',\n code: '965',\n label: '+965',\n value: 'Kuwait',\n icon: `${baseImgUrl}/kuwait.png`,\n url: `${baseImgUrl}/kuwait.png`,\n geoIPCountryCode: 'KW',\n },\n {\n id: 'kyrgyzstan',\n code: '996',\n label: '+996',\n value: 'Kyrgyzstan',\n icon: `${baseImgUrl}/Kyrgyzstan.png`,\n url: `${baseImgUrl}/Kyrgyzstan.png`,\n geoIPCountryCode: 'KG',\n },\n {\n id: 'lebanon',\n code: '961',\n label: '+961',\n value: 'Lebanon',\n icon: `${baseImgUrl}/lebanon.png`,\n url: `${baseImgUrl}/lebanon.png`,\n geoIPCountryCode: 'LB',\n },\n {\n id: 'lesotho',\n code: '266',\n label: '+266',\n value: 'Lesotho',\n icon: `${baseImgUrl}/Lesotho.png`,\n url: `${baseImgUrl}/Lesotho.png`,\n geoIPCountryCode: 'LS',\n },\n {\n id: 'liberia',\n code: '231',\n label: '+231',\n value: 'Liberia',\n icon: `${baseImgUrl}/Liberia.png`,\n url: `${baseImgUrl}/Liberia.png`,\n geoIPCountryCode: 'LR',\n },\n {\n id: 'libya',\n code: '218',\n label: '+218',\n value: 'Libya',\n icon: `${baseImgUrl}/Libya.png`,\n url: `${baseImgUrl}/Libya.png`,\n geoIPCountryCode: 'LY',\n },\n {\n id: 'lithuania',\n code: '370',\n label: '+370',\n value: 'Lithuania',\n icon: `${baseImgUrl}/lithuania.png`,\n url: `${baseImgUrl}/lithuania.png`,\n geoIPCountryCode: 'LT',\n },\n {\n id: 'malawi',\n code: '265',\n label: '+265',\n value: 'Malawi',\n icon: `${baseImgUrl}/Malawi.png`,\n url: `${baseImgUrl}/Malawi.png`,\n geoIPCountryCode: 'MW',\n },\n {\n id: 'malaysia',\n code: '60',\n label: '+60',\n value: 'Malaysia',\n icon: `${baseImgUrl}/malaysia.png`,\n url: `${baseImgUrl}/malaysia.png`,\n geoIPCountryCode: 'MY',\n },\n {\n id: 'mali',\n code: '223',\n label: '+223',\n value: 'Mali',\n icon: `${baseImgUrl}/Mali.png`,\n url: `${baseImgUrl}/Mali.png`,\n geoIPCountryCode: 'ML',\n },\n {\n id: 'mauritius',\n code: '230',\n label: '+230',\n value: 'Mauritius',\n icon: `${baseImgUrl}/Mauritius.png`,\n url: `${baseImgUrl}/Mauritius.png`,\n geoIPCountryCode: 'MU',\n },\n {\n id: 'mexico',\n code: '52',\n label: '+52',\n value: 'Mexico',\n icon: `${baseImgUrl}/mexico.png`,\n url: `${baseImgUrl}/mexico.png`,\n geoIPCountryCode: 'MX',\n },\n {\n id: 'mongolia',\n code: '976',\n label: '+976',\n value: 'Mongolia',\n icon: `${baseImgUrl}/Mongolia.png`,\n url: `${baseImgUrl}/Mongolia.png`,\n geoIPCountryCode: 'MN',\n },\n {\n id: 'morocco',\n code: '212',\n label: '+212',\n value: 'Morocco',\n icon: `${baseImgUrl}/morocco.png`,\n url: `${baseImgUrl}/morocco.png`,\n geoIPCountryCode: 'MA',\n },\n {\n id: 'myanmar',\n code: '95',\n label: '+95',\n value: 'Myanmar',\n icon: `${baseImgUrl}/myanmar.png`,\n url: `${baseImgUrl}/myanmar.png`,\n geoIPCountryCode: 'MM',\n },\n {\n id: 'namibia',\n code: '264',\n label: '+264',\n value: 'Namibia',\n icon: `${baseImgUrl}/Namibia.png`,\n url: `${baseImgUrl}/Namibia.png`,\n geoIPCountryCode: 'NA',\n },\n {\n id: 'nepal',\n code: '977',\n label: '+977',\n value: 'Nepal',\n icon: `${baseImgUrl}/nepal.png`,\n url: `${baseImgUrl}/nepal.png`,\n geoIPCountryCode: 'NP',\n },\n {\n id: 'netherlands',\n code: '31',\n label: '+31',\n value: 'Netherlands',\n icon: `${baseImgUrl}/netherlands.png`,\n url: `${baseImgUrl}/netherlands.png`,\n geoIPCountryCode: 'NL',\n },\n {\n id: 'new-zealand',\n code: '64',\n label: '+64',\n value: 'New Zealand',\n icon: `${baseImgUrl}/new-zealand.png`,\n url: `${baseImgUrl}/new-zealand.png`,\n geoIPCountryCode: 'NZ',\n },\n {\n id: 'niger',\n code: '227',\n label: '+227',\n value: 'Niger',\n icon: `${baseImgUrl}/Niger.png`,\n url: `${baseImgUrl}/Niger.png`,\n geoIPCountryCode: 'NE',\n },\n {\n id: 'nigeria',\n code: '234',\n label: '+234',\n value: 'Nigeria',\n icon: `${baseImgUrl}/nigeria.png`,\n url: `${baseImgUrl}/nigeria.png`,\n geoIPCountryCode: 'NG',\n },\n {\n id: 'northern-marianas-islands',\n code: '1670',\n label: '+1670',\n value: 'Northern Marianas Islands',\n icon: `${baseImgUrl}/northern-marianas-islands.png`,\n url: `${baseImgUrl}/northern-marianas-islands.png`,\n geoIPCountryCode: 'MP',\n },\n {\n id: 'norway',\n code: '47',\n label: '+47',\n value: 'Norway',\n icon: `${baseImgUrl}/norway.png`,\n url: `${baseImgUrl}/norway.png`,\n geoIPCountryCode: 'NO',\n },\n {\n id: 'oman',\n code: '968',\n label: '+968',\n value: 'Oman',\n icon: `${baseImgUrl}/oman.png`,\n url: `${baseImgUrl}/oman.png`,\n geoIPCountryCode: 'OM',\n },\n {\n id: 'papua-new-guinea',\n code: '675',\n label: '+675',\n value: 'Papua New Guinea',\n icon: `${baseImgUrl}/Papua-New-Guinea.png`,\n url: `${baseImgUrl}/Papua-New-Guinea.png`,\n geoIPCountryCode: 'PG',\n },\n {\n id: 'philippines',\n code: '63',\n label: '+63',\n value: 'Philippines',\n icon: `${baseImgUrl}/philippines.png`,\n url: `${baseImgUrl}/philippines.png`,\n geoIPCountryCode: 'PH',\n },\n {\n id: 'poland',\n code: '48',\n label: '+48',\n value: 'Poland',\n icon: `${baseImgUrl}/poland.png`,\n url: `${baseImgUrl}/poland.png`,\n geoIPCountryCode: 'PL',\n },\n {\n id: 'portugal',\n code: '351',\n label: '+351',\n value: 'Portugal',\n icon: `${baseImgUrl}/portugal.png`,\n url: `${baseImgUrl}/portugal.png`,\n geoIPCountryCode: 'PT',\n },\n {\n id: 'puerto-rico',\n code: '1939',\n label: '+1939',\n value: 'Puerto Rico',\n icon: `${baseImgUrl}/puerto-rico.png`,\n url: `${baseImgUrl}/puerto-rico.png`,\n geoIPCountryCode: 'PR',\n },\n {\n id: 'qatar',\n code: '974',\n label: '+974',\n value: 'Qatar',\n icon: `${baseImgUrl}/qatar.png`,\n url: `${baseImgUrl}/qatar.png`,\n geoIPCountryCode: 'QA',\n },\n {\n id: 'romania',\n code: '40',\n label: '+40',\n value: 'Romania',\n icon: `${baseImgUrl}/romania.png`,\n url: `${baseImgUrl}/romania.png`,\n geoIPCountryCode: 'RO',\n },\n {\n id: 'rwanda',\n code: '250',\n label: '+250',\n value: 'Rwanda',\n icon: `${baseImgUrl}/Rwanda.png`,\n url: `${baseImgUrl}/Rwanda.png`,\n geoIPCountryCode: 'RW',\n },\n {\n id: 'saudi-arabia',\n code: '966',\n label: '+966',\n value: 'Saudi Arabia',\n icon: `${baseImgUrl}/saudi-arabia.png`,\n url: `${baseImgUrl}/saudi-arabia.png`,\n geoIPCountryCode: 'SA',\n },\n {\n id: 'senegal',\n code: '221',\n label: '+221',\n value: 'Senegal',\n icon: `${baseImgUrl}/Senegal.png`,\n url: `${baseImgUrl}/Senegal.png`,\n geoIPCountryCode: 'SN',\n },\n {\n id: 'sierra-leone',\n code: '232',\n label: '+232',\n value: 'Sierra Leone',\n icon: `${baseImgUrl}/Sierra-leone.png`,\n url: `${baseImgUrl}/Sierra-leone.png`,\n geoIPCountryCode: 'SL',\n },\n {\n id: 'singapore',\n code: '65',\n label: '+65',\n value: 'Singapore',\n icon: `${baseImgUrl}/singapore.png`,\n url: `${baseImgUrl}/singapore.png`,\n geoIPCountryCode: 'SG',\n },\n {\n id: 'somalia',\n code: '252',\n label: '+252',\n value: 'Somalia',\n icon: `${baseImgUrl}/Somalia.png`,\n url: `${baseImgUrl}/Somalia.png`,\n geoIPCountryCode: 'SO',\n },\n {\n id: 'south Korea',\n code: '82',\n label: '+82',\n value: 'South Korea',\n icon: `${baseImgUrl}/south-korea.png`,\n url: `${baseImgUrl}/south-korea.png`,\n geoIPCountryCode: 'KR',\n },\n {\n id: 'south-africa',\n code: '27',\n label: '+27',\n value: 'South Africa',\n icon: `${baseImgUrl}/south-africa.png`,\n url: `${baseImgUrl}/south-africa.png`,\n geoIPCountryCode: 'ZA',\n },\n {\n id: 'spain',\n code: '34',\n label: '+34',\n value: 'Spain',\n icon: `${baseImgUrl}/spain.png`,\n url: `${baseImgUrl}/spain.png`,\n geoIPCountryCode: 'ES',\n },\n {\n id: 'sri-lanka',\n code: '94',\n label: '+94',\n value: 'Sri Lanka',\n icon: `${baseImgUrl}/sri-lanka.png`,\n url: `${baseImgUrl}/sri-lanka.png`,\n geoIPCountryCode: 'LK',\n },\n {\n id: 'sweden',\n code: '46',\n label: '+46',\n value: 'Sweden',\n icon: `${baseImgUrl}/sweden.png`,\n url: `${baseImgUrl}/sweden.png`,\n geoIPCountryCode: 'SE',\n },\n {\n id: 'switzerland',\n code: '41',\n label: '+41',\n value: 'Switzerland',\n icon: `${baseImgUrl}/Switzerland.png`,\n url: `${baseImgUrl}/Switzerland.png`,\n geoIPCountryCode: 'CH',\n },\n {\n id: 'syria',\n code: '963',\n label: '+963',\n value: 'Syria',\n icon: `${baseImgUrl}/Syria.png`,\n url: `${baseImgUrl}/Syria.png`,\n geoIPCountryCode: 'SY',\n },\n {\n id: 'tanzania',\n code: '255',\n label: '+255',\n value: 'Tanzania',\n icon: `${baseImgUrl}/tanzania.png`,\n url: `${baseImgUrl}/tanzania.png`,\n geoIPCountryCode: 'TZ',\n },\n {\n id: 'thailand',\n code: '66',\n label: '+66',\n value: 'Thailand',\n icon: `${baseImgUrl}/thailand.png`,\n url: `${baseImgUrl}/thailand.png`,\n geoIPCountryCode: 'TH',\n },\n {\n id: 'tunisia',\n code: '216',\n label: '+216',\n value: 'Tunisia',\n icon: `${baseImgUrl}/Tunisia.png`,\n url: `${baseImgUrl}/Tunisia.png`,\n geoIPCountryCode: 'TN',\n },\n {\n id: 'turkey',\n code: '90',\n label: '+90',\n value: 'Turkey',\n icon: `${baseImgUrl}/turkey.png`,\n url: `${baseImgUrl}/turkey.png`,\n geoIPCountryCode: 'TR',\n },\n {\n id: 'uganda',\n code: '256',\n label: '+256',\n value: 'Uganda',\n icon: `${baseImgUrl}/Uganda.png`,\n url: `${baseImgUrl}/Uganda.png`,\n geoIPCountryCode: 'UG',\n },\n {\n id: 'ukraine',\n code: '380',\n label: '+380',\n value: 'Ukraine',\n icon: `${baseImgUrl}/ukraine.png`,\n url: `${baseImgUrl}/ukraine.png`,\n geoIPCountryCode: 'UA',\n },\n {\n id: 'united-arab-emirates',\n code: '971',\n label: '+971',\n value: 'United Arab Emirates',\n icon: `${baseImgUrl}/united-arab-emirates.png`,\n url: `${baseImgUrl}/united-arab-emirates.png`,\n geoIPCountryCode: 'AE',\n },\n {\n id: 'united-kingdom',\n code: '44',\n label: '+44',\n value: 'United Kingdom',\n icon: `${baseImgUrl}/united-kingdom.png`,\n url: `${baseImgUrl}/united-kingdom.png`,\n geoIPCountryCode: 'GB',\n },\n {\n id: 'uzbekistan',\n code: '998',\n label: '+998',\n value: 'Uzbekistan',\n icon: `${baseImgUrl}/uzbekistan.png`,\n url: `${baseImgUrl}/uzbekistan.png`,\n geoIPCountryCode: 'UZ',\n },\n {\n id: 'vietnam',\n code: '84',\n label: '+84',\n value: 'Vietnam',\n icon: `${baseImgUrl}/vietnam.png`,\n url: `${baseImgUrl}/vietnam.png`,\n geoIPCountryCode: 'VN',\n },\n {\n id: 'yemen',\n code: '967',\n label: '+967',\n value: 'Yemen',\n icon: `${baseImgUrl}/Yemen.png`,\n url: `${baseImgUrl}/Yemen.png`,\n geoIPCountryCode: 'YE',\n },\n {\n id: 'zambia',\n code: '260',\n label: '+260',\n value: 'Zambia',\n icon: `${baseImgUrl}/zambia.png`,\n url: `${baseImgUrl}/zambia.png`,\n geoIPCountryCode: 'ZM',\n },\n];\n\nexport const STUDENT_GRADE_OPTIONS = [\n { label: 'Pre K', value: '-1' },\n { label: 'K', value: '0' },\n { label: '1', value: '1' },\n { label: '2', value: '2' },\n { label: '3', value: '3' },\n { label: '4', value: '4' },\n { label: '5', value: '5' },\n { label: '6', value: '6' },\n { label: '7', value: '7' },\n { label: '8', value: '8' },\n { label: '9', value: '9' },\n { label: '10', value: '10' },\n { label: '11', value: '11' },\n { label: '12', value: '12' },\n];\n\nexport const USER_TYPES: { id: TAuthUserType; label: string }[] = [\n {\n id: 'parent',\n label: 'Parent',\n },\n {\n id: 'student',\n label: 'Student',\n },\n];\n\nexport const AuthApiErrorCode = {\n USER_NOT_FOUND: 8000,\n INVALID_PASSWORD: 8001,\n MULTIPLE_USERS_FOUND: 8002,\n ACCESS_TOKEN_FAILURE: 8003,\n INVALID_ACCESS_TOKEN: 8004,\n INVALID_USERNAME_OR_USER_ALREADY_EXIST: 8005,\n SOCIAL_SIGNUP_EMAIL_MISSING: 8006,\n} as const;\n"],"names":["baseImgUrl","COUNTRY_CODE_MAP","STUDENT_GRADE_OPTIONS","USER_TYPES","AuthApiErrorCode"],"mappings":"AAEA,MAAMA,IAAa,iFAENC,IAAqC;AAAA,EAChD;AAAA,IACE,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,OAAO;AAAA,IACP,OAAO;AAAA,IACP,MAAM,GAAGD,CAAU;AAAA,IACnB,KAAK,GAAGA,CAAU;AAAA,IAClB,kBAAkB;AAAA,EACpB;AAAA,EACA;AAAA,IACE,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,OAAO;AAAA,IACP,OAAO;AAAA,IACP,MAAM,GAAGA,CAAU;AAAA,IACnB,KAAK,GAAGA,CAAU;AAAA,IAClB,kBAAkB;AAAA,EACpB;AAAA,EACA;AAAA,IACE,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,OAAO;AAAA,IACP,OAAO;AAAA,IACP,MAAM,GAAGA,CAAU;AAAA,IACnB,KAAK,GAAGA,CAAU;AAAA,IAClB,kBAAkB;AAAA,EACpB;AAAA,EACA;AAAA,IACE,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,OAAO;AAAA,IACP,OAAO;AAAA,IACP,MAAM,GAAGA,CAAU;AAAA,IACnB,KAAK,GAAGA,CAAU;AAAA,IAClB,kBAAkB;AAAA,EACpB;AAAA,EACA;AAAA,IACE,IAAI;AAAA,IACJ,MAAM;AAAA,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AAO,KAAK,OAAO,IAAI;AAAA,EACzB,EAAE,OAAO,KAAK,OAAO,IAAI;AAAA,EACzB,EAAE,OAAO,KAAK,OAAO,IAAI;AAAA,EACzB,EAAE,OAAO,KAAK,OAAO,IAAI;AAAA,EACzB,EAAE,OAAO,KAAK,OAAO,IAAI;AAAA,EACzB,EAAE,OAAO,KAAK,OAAO,IAAI;AAAA,EACzB,EAAE,OAAO,KAAK,OAAO,IAAI;AAAA,EACzB,EAAE,OAAO,KAAK,OAAO,IAAI;AAAA,EACzB,EAAE,OAAO,MAAM,OAAO,KAAK;AAAA,EAC3B,EAAE,OAAO,MAAM,OAAO,KAAK;AAAA,EAC3B,EAAE,OAAO,MAAM,OAAO,KAAK;AAC7B,GAEaC,IAAqD;AAAA,EAChE;AAAA,IACE,IAAI;AAAA,IACJ,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,IAAI;AAAA,IACJ,OAAO;AAAA,EACT;AACF,GAEaC,IAAmB;AAAA,EAC9B,gBAAgB;AAAA,EAChB,kBAAkB;AAAA,EAClB,sBAAsB;AAAA,EACtB,sBAAsB;AAAA,EACtB,sBAAsB;AAAA,EACtB,wCAAwC;AAAA,EACxC,6BAA6B;AAC/B;"}
1
+ {"version":3,"file":"signup-constants.js","sources":["../../../../src/features/auth/signup/signup-constants.ts"],"sourcesContent":["import type { TAuthUserType } from './signup-types';\n\nexport const STUDENT_GRADE_OPTIONS = [\n { label: 'Pre K', value: '-1' },\n { label: 'K', value: '0' },\n { label: '1', value: '1' },\n { label: '2', value: '2' },\n { label: '3', value: '3' },\n { label: '4', value: '4' },\n { label: '5', value: '5' },\n { label: '6', value: '6' },\n { label: '7', value: '7' },\n { label: '8', value: '8' },\n { label: '9', value: '9' },\n { label: '10', value: '10' },\n { label: '11', value: '11' },\n { label: '12', value: '12' },\n];\n\nexport const USER_TYPES: { id: TAuthUserType; label: string }[] = [\n {\n id: 'parent',\n label: 'Parent',\n },\n {\n id: 'student',\n label: 'Student',\n },\n];\n\nexport const AuthApiErrorCode = {\n USER_NOT_FOUND: 8000,\n INVALID_PASSWORD: 8001,\n MULTIPLE_USERS_FOUND: 8002,\n ACCESS_TOKEN_FAILURE: 8003,\n INVALID_ACCESS_TOKEN: 8004,\n INVALID_USERNAME_OR_USER_ALREADY_EXIST: 8005,\n SOCIAL_SIGNUP_EMAIL_MISSING: 8006,\n} as const;\n"],"names":["STUDENT_GRADE_OPTIONS","USER_TYPES","AuthApiErrorCode"],"mappings":"AAEO,MAAMA,IAAwB;AAAA,EACnC,EAAE,OAAO,SAAS,OAAO,KAAK;AAAA,EAC9B,EAAE,OAAO,KAAK,OAAO,IAAI;AAAA,EACzB,EAAE,OAAO,KAAK,OAAO,IAAI;AAAA,EACzB,EAAE,OAAO,KAAK,OAAO,IAAI;AAAA,EACzB,EAAE,OAAO,KAAK,OAAO,IAAI;AAAA,EACzB,EAAE,OAAO,KAAK,OAAO,IAAI;AAAA,EACzB,EAAE,OAAO,KAAK,OAAO,IAAI;AAAA,EACzB,EAAE,OAAO,KAAK,OAAO,IAAI;AAAA,EACzB,EAAE,OAAO,KAAK,OAAO,IAAI;AAAA,EACzB,EAAE,OAAO,KAAK,OAAO,IAAI;AAAA,EACzB,EAAE,OAAO,KAAK,OAAO,IAAI;AAAA,EACzB,EAAE,OAAO,MAAM,OAAO,KAAK;AAAA,EAC3B,EAAE,OAAO,MAAM,OAAO,KAAK;AAAA,EAC3B,EAAE,OAAO,MAAM,OAAO,KAAK;AAC7B,GAEaC,IAAqD;AAAA,EAChE;AAAA,IACE,IAAI;AAAA,IACJ,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,IAAI;AAAA,IACJ,OAAO;AAAA,EACT;AACF,GAEaC,IAAmB;AAAA,EAC9B,gBAAgB;AAAA,EAChB,kBAAkB;AAAA,EAClB,sBAAsB;AAAA,EACtB,sBAAsB;AAAA,EACtB,sBAAsB;AAAA,EACtB,wCAAwC;AAAA,EACxC,6BAA6B;AAC/B;"}
@@ -1,49 +1,50 @@
1
- import { jsxs as h, jsx as t } from "react/jsx-runtime";
2
- import { memo as g, useCallback as u } from "react";
3
- import A from "../../../ui/avatar/avatar.js";
4
- import C from "../../../ui/separator/separator.js";
5
- import I from "../../../ui/text/text.js";
6
- import { AVATAR_CONFIGURATIONS as m } from "../user-list-constants.js";
7
- import { UserItemCard as d } from "./user-item-styled.js";
8
- const k = ({
1
+ import { jsxs as g, jsx as t } from "react/jsx-runtime";
2
+ import { memo as u, useCallback as C } from "react";
3
+ import A from "../../../hooks/use-viewport/use-viewport.js";
4
+ import I from "../../../ui/avatar/avatar.js";
5
+ import b from "../../../ui/separator/separator.js";
6
+ import d from "../../../ui/text/text.js";
7
+ import { AVATAR_CONFIGURATIONS as a } from "../user-list-constants.js";
8
+ import { UserItemCard as k } from "./user-item-styled.js";
9
+ const T = ({
9
10
  id: r,
10
- phone: n,
11
- username: s,
11
+ phone: s,
12
+ username: n,
12
13
  avatar: i,
13
- index: e,
14
+ index: o,
14
15
  isLastItem: c,
15
- onSelect: o,
16
- avatarSize: l,
17
- maxColumns: $,
18
- cardSize: a
16
+ onSelect: e,
17
+ avatarSize: p,
18
+ maxColumns: l,
19
+ cardSize: m
19
20
  }) => {
20
- const p = u(() => {
21
- o(r);
22
- }, [r, o]), f = i ?? m[e % m.length];
23
- return /* @__PURE__ */ h(
24
- d,
21
+ const { isCompact: $ } = A(), f = C(() => {
22
+ e(r);
23
+ }, [r, e]), h = i ?? a[o % a.length];
24
+ return /* @__PURE__ */ g(
25
+ k,
25
26
  {
26
- onClick: p,
27
- maxColumns: $,
28
- $gutterX: 2,
29
- $gapX: 2.81,
30
- $width: a,
31
- $height: a,
27
+ onClick: f,
28
+ maxColumns: l,
29
+ $gutterX: 1.5,
30
+ $gapX: 1.5,
31
+ $width: m,
32
+ $height: m,
32
33
  $alignItems: "center",
33
34
  $justifyContent: "center",
34
- index: e,
35
+ index: o,
35
36
  isLastItem: c,
36
37
  $background: "BLACK_1",
37
38
  children: [
38
- /* @__PURE__ */ t(A, { size: l, avatar: f }),
39
- /* @__PURE__ */ t(C, { heightX: 0.5 }),
40
- /* @__PURE__ */ t(I, { $color: "WHITE", $renderAs: "ab2", $align: "center", children: s || n })
39
+ /* @__PURE__ */ t(I, { size: p, avatar: h }),
40
+ /* @__PURE__ */ t(b, { heightX: 0.5 }),
41
+ /* @__PURE__ */ t(d, { $color: "WHITE", $renderAs: $ ? "ab3" : "ab2", $align: "center", children: n || s })
41
42
  ]
42
43
  },
43
44
  r
44
45
  );
45
- }, N = g(k);
46
+ }, R = u(T);
46
47
  export {
47
- N as default
48
+ R as default
48
49
  };
49
50
  //# sourceMappingURL=user-item.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"user-item.js","sources":["../../../../../src/features/auth/user-list/user-item/user-item.tsx"],"sourcesContent":["import type { IUserItemProps } from './user-item-types';\n\nimport { useCallback, type FC, memo } from 'react';\n\nimport Avatar from '../../../ui/avatar/avatar';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport { AVATAR_CONFIGURATIONS } from '../user-list-constants';\nimport * as Styled from './user-item-styled';\n\nconst UserItem: FC<IUserItemProps> = ({\n id,\n phone,\n username,\n avatar,\n index,\n isLastItem,\n onSelect,\n avatarSize,\n maxColumns,\n cardSize,\n}) => {\n const handleClick = useCallback(() => {\n onSelect(id);\n }, [id, onSelect]);\n\n const avatarSource = avatar ?? AVATAR_CONFIGURATIONS[index % AVATAR_CONFIGURATIONS.length];\n\n return (\n <Styled.UserItemCard\n key={id}\n onClick={handleClick}\n maxColumns={maxColumns}\n $gutterX={2}\n $gapX={2.81}\n $width={cardSize}\n $height={cardSize}\n $alignItems=\"center\"\n $justifyContent=\"center\"\n index={index}\n isLastItem={isLastItem}\n $background=\"BLACK_1\"\n >\n <Avatar size={avatarSize} avatar={avatarSource} />\n <Separator heightX={0.5} />\n <Text $color=\"WHITE\" $renderAs=\"ab2\" $align=\"center\">\n {username || phone}\n </Text>\n </Styled.UserItemCard>\n );\n};\n\nexport default memo(UserItem);\n"],"names":["UserItem","id","phone","username","avatar","index","isLastItem","onSelect","avatarSize","maxColumns","cardSize","handleClick","useCallback","avatarSource","AVATAR_CONFIGURATIONS","jsxs","Styled.UserItemCard","jsx","Avatar","Separator","Text","UserItem$1","memo"],"mappings":";;;;;;;AAUA,MAAMA,IAA+B,CAAC;AAAA,EACpC,IAAAC;AAAA,EACA,OAAAC;AAAA,EACA,UAAAC;AAAA,EACA,QAAAC;AAAA,EACA,OAAAC;AAAA,EACA,YAAAC;AAAA,EACA,UAAAC;AAAA,EACA,YAAAC;AAAA,EACA,YAAAC;AAAA,EACA,UAAAC;AACF,MAAM;AACE,QAAAC,IAAcC,EAAY,MAAM;AACpC,IAAAL,EAASN,CAAE;AAAA,EAAA,GACV,CAACA,GAAIM,CAAQ,CAAC,GAEXM,IAAeT,KAAUU,EAAsBT,IAAQS,EAAsB,MAAM;AAGvF,SAAA,gBAAAC;AAAA,IAACC;AAAAA,IAAA;AAAA,MAEC,SAASL;AAAA,MACT,YAAAF;AAAA,MACA,UAAU;AAAA,MACV,OAAO;AAAA,MACP,QAAQC;AAAA,MACR,SAASA;AAAA,MACT,aAAY;AAAA,MACZ,iBAAgB;AAAA,MAChB,OAAAL;AAAA,MACA,YAAAC;AAAA,MACA,aAAY;AAAA,MAEZ,UAAA;AAAA,QAAA,gBAAAW,EAACC,GAAO,EAAA,MAAMV,GAAY,QAAQK,GAAc;AAAA,QAChD,gBAAAI,EAACE,GAAU,EAAA,SAAS,IAAK,CAAA;AAAA,QACzB,gBAAAF,EAACG,KAAK,QAAO,SAAQ,WAAU,OAAM,QAAO,UACzC,UAAAjB,KAAYD,EACf,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,IAjBKD;AAAA,EAAA;AAoBX,GAEeoB,IAAAC,EAAKtB,CAAQ;"}
1
+ {"version":3,"file":"user-item.js","sources":["../../../../../src/features/auth/user-list/user-item/user-item.tsx"],"sourcesContent":["import type { IUserItemProps } from './user-item-types';\n\nimport { useCallback, type FC, memo } from 'react';\n\nimport useViewport from '../../../hooks/use-viewport/use-viewport';\nimport Avatar from '../../../ui/avatar/avatar';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport { AVATAR_CONFIGURATIONS } from '../user-list-constants';\nimport * as Styled from './user-item-styled';\n\nconst UserItem: FC<IUserItemProps> = ({\n id,\n phone,\n username,\n avatar,\n index,\n isLastItem,\n onSelect,\n avatarSize,\n maxColumns,\n cardSize,\n}) => {\n const { isCompact } = useViewport();\n const handleClick = useCallback(() => {\n onSelect(id);\n }, [id, onSelect]);\n\n const avatarSource = avatar ?? AVATAR_CONFIGURATIONS[index % AVATAR_CONFIGURATIONS.length];\n\n return (\n <Styled.UserItemCard\n key={id}\n onClick={handleClick}\n maxColumns={maxColumns}\n $gutterX={1.5}\n $gapX={1.5}\n $width={cardSize}\n $height={cardSize}\n $alignItems=\"center\"\n $justifyContent=\"center\"\n index={index}\n isLastItem={isLastItem}\n $background=\"BLACK_1\"\n >\n <Avatar size={avatarSize} avatar={avatarSource} />\n <Separator heightX={0.5} />\n <Text $color=\"WHITE\" $renderAs={isCompact ? 'ab3' : 'ab2'} $align=\"center\">\n {username || phone}\n </Text>\n </Styled.UserItemCard>\n );\n};\n\nexport default memo(UserItem);\n"],"names":["UserItem","id","phone","username","avatar","index","isLastItem","onSelect","avatarSize","maxColumns","cardSize","isCompact","useViewport","handleClick","useCallback","avatarSource","AVATAR_CONFIGURATIONS","jsxs","Styled.UserItemCard","jsx","Avatar","Separator","Text","UserItem$1","memo"],"mappings":";;;;;;;;AAWA,MAAMA,IAA+B,CAAC;AAAA,EACpC,IAAAC;AAAA,EACA,OAAAC;AAAA,EACA,UAAAC;AAAA,EACA,QAAAC;AAAA,EACA,OAAAC;AAAA,EACA,YAAAC;AAAA,EACA,UAAAC;AAAA,EACA,YAAAC;AAAA,EACA,YAAAC;AAAA,EACA,UAAAC;AACF,MAAM;AACE,QAAA,EAAE,WAAAC,MAAcC,KAChBC,IAAcC,EAAY,MAAM;AACpC,IAAAP,EAASN,CAAE;AAAA,EAAA,GACV,CAACA,GAAIM,CAAQ,CAAC,GAEXQ,IAAeX,KAAUY,EAAsBX,IAAQW,EAAsB,MAAM;AAGvF,SAAA,gBAAAC;AAAA,IAACC;AAAAA,IAAA;AAAA,MAEC,SAASL;AAAA,MACT,YAAAJ;AAAA,MACA,UAAU;AAAA,MACV,OAAO;AAAA,MACP,QAAQC;AAAA,MACR,SAASA;AAAA,MACT,aAAY;AAAA,MACZ,iBAAgB;AAAA,MAChB,OAAAL;AAAA,MACA,YAAAC;AAAA,MACA,aAAY;AAAA,MAEZ,UAAA;AAAA,QAAA,gBAAAa,EAACC,GAAO,EAAA,MAAMZ,GAAY,QAAQO,GAAc;AAAA,QAChD,gBAAAI,EAACE,GAAU,EAAA,SAAS,IAAK,CAAA;AAAA,QACzB,gBAAAF,EAACG,GAAK,EAAA,QAAO,SAAQ,WAAWX,IAAY,QAAQ,OAAO,QAAO,UAC/D,UAAAR,KAAYD,EACf,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,IAjBKD;AAAA,EAAA;AAoBX,GAEesB,IAAAC,EAAKxB,CAAQ;"}
@@ -1,56 +1,65 @@
1
- import { jsxs as f, jsx as r } from "react/jsx-runtime";
1
+ import { jsxs as $, jsx as r } from "react/jsx-runtime";
2
2
  import { memo as g } from "react";
3
- import d from "../../../assets/line-icons/icons/plus.js";
4
- import u from "../../ui/layout/flex-view.js";
5
- import I from "./user-item/user-item.js";
6
- import { UserListWrapper as L, AddAccountButton as U } from "./user-list-styled.js";
7
- const j = ({
8
- users: i,
9
- onSelect: h,
10
- showAddButton: s = !1,
11
- onAddNew: c,
12
- maxColumns: e = 5,
13
- cardSize: t = 200,
14
- avatarSize: a = 80
3
+ import x from "../../../assets/line-icons/icons/plus.js";
4
+ import I from "../../hooks/use-viewport/use-viewport.js";
5
+ import L from "../../ui/layout/flex-view.js";
6
+ import w from "./user-item/user-item.js";
7
+ import { UserListWrapper as U, AddAccountButton as j } from "./user-list-styled.js";
8
+ const v = ({
9
+ users: s,
10
+ onSelect: c,
11
+ showAddButton: i = !1,
12
+ onAddNew: l,
13
+ maxColumns: p = 5,
14
+ cardSize: u = 200,
15
+ avatarSize: h = 80
15
16
  }) => {
16
- const o = i.length + (s ? 1 : 0);
17
- return /* @__PURE__ */ f(L, { itemCount: o, maxColumns: e, cardWidth: t, children: [
18
- i.map(({ id: m, username: p, user_avatar: l, phone: $ }, n) => /* @__PURE__ */ r(
19
- I,
20
- {
21
- id: m,
22
- onSelect: h,
23
- cardSize: t,
24
- index: n,
25
- maxColumns: e,
26
- avatarSize: a,
27
- avatar: l,
28
- phone: $,
29
- username: p,
30
- isLastItem: n === o - 1
31
- },
32
- m
33
- )),
34
- s && /* @__PURE__ */ r(
35
- U,
36
- {
37
- isLastItem: !0,
38
- index: o,
39
- maxColumns: e,
40
- $gutterX: 5,
41
- $gapX: 5,
42
- $background: "BLACK_3",
43
- $width: t,
44
- $height: t,
45
- $alignItems: "center",
46
- $justifyContent: "center",
47
- onClick: c,
48
- children: /* @__PURE__ */ r(u, { $width: 40, $height: 40, children: /* @__PURE__ */ r(d, { color: "WHITE", width: 40, height: 40 }) })
49
- }
50
- )
51
- ] });
52
- }, X = g(j);
17
+ const e = s.length + (i ? 1 : 0), { isCompact: m } = I(), o = m ? 2 : p, t = m ? 180 : u;
18
+ return /* @__PURE__ */ $(
19
+ U,
20
+ {
21
+ itemCount: e,
22
+ maxColumns: o,
23
+ cardWidth: t,
24
+ children: [
25
+ s.map(({ id: n, username: d, user_avatar: C, phone: f }, a) => /* @__PURE__ */ r(
26
+ w,
27
+ {
28
+ id: n,
29
+ onSelect: c,
30
+ cardSize: t,
31
+ index: a,
32
+ maxColumns: o,
33
+ avatarSize: h,
34
+ avatar: C,
35
+ phone: f,
36
+ username: d,
37
+ isLastItem: a === e - 1
38
+ },
39
+ n
40
+ )),
41
+ i && /* @__PURE__ */ r(
42
+ j,
43
+ {
44
+ isLastItem: !0,
45
+ index: e,
46
+ maxColumns: o,
47
+ $gutterX: 5,
48
+ $gapX: 5,
49
+ $background: "BLACK_3",
50
+ $width: t,
51
+ $height: t,
52
+ $alignItems: "center",
53
+ $justifyContent: "center",
54
+ onClick: l,
55
+ children: /* @__PURE__ */ r(L, { $width: 40, $height: 40, children: /* @__PURE__ */ r(x, { color: "WHITE", width: 40, height: 40 }) })
56
+ }
57
+ )
58
+ ]
59
+ }
60
+ );
61
+ }, _ = g(v);
53
62
  export {
54
- X as default
63
+ _ as default
55
64
  };
56
65
  //# sourceMappingURL=user-list.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"user-list.js","sources":["../../../../src/features/auth/user-list/user-list.tsx"],"sourcesContent":["import type { IUserListProps } from './user-list-types';\n\nimport { type FC, memo } from 'react';\n\nimport PlusIcon from '../../../assets/line-icons/icons/plus';\nimport FlexView from '../../ui/layout/flex-view';\nimport UserItem from './user-item/user-item';\nimport * as Styled from './user-list-styled';\n\nconst UserList: FC<IUserListProps> = ({\n users,\n onSelect,\n showAddButton = false,\n onAddNew,\n maxColumns = 5,\n cardSize = 200,\n avatarSize = 80,\n}) => {\n const totalCards = users.length + (showAddButton ? 1 : 0);\n\n return (\n <Styled.UserListWrapper itemCount={totalCards} maxColumns={maxColumns} cardWidth={cardSize}>\n {users.map(({ id, username, user_avatar: avatar, phone }, index) => (\n <UserItem\n key={id}\n id={id}\n onSelect={onSelect}\n cardSize={cardSize}\n index={index}\n maxColumns={maxColumns}\n avatarSize={avatarSize}\n avatar={avatar}\n phone={phone}\n username={username}\n isLastItem={index === totalCards - 1}\n />\n ))}\n\n {showAddButton && (\n <Styled.AddAccountButton\n isLastItem\n index={totalCards}\n maxColumns={maxColumns}\n $gutterX={5}\n $gapX={5}\n $background=\"BLACK_3\"\n $width={cardSize}\n $height={cardSize}\n $alignItems=\"center\"\n $justifyContent=\"center\"\n onClick={onAddNew}\n >\n <FlexView $width={40} $height={40}>\n <PlusIcon color=\"WHITE\" width={40} height={40} />\n </FlexView>\n </Styled.AddAccountButton>\n )}\n </Styled.UserListWrapper>\n );\n};\n\nexport default memo(UserList);\n"],"names":["UserList","users","onSelect","showAddButton","onAddNew","maxColumns","cardSize","avatarSize","totalCards","jsxs","Styled.UserListWrapper","id","username","avatar","phone","index","jsx","UserItem","Styled.AddAccountButton","FlexView","PlusIcon","UserList$1","memo"],"mappings":";;;;;;AASA,MAAMA,IAA+B,CAAC;AAAA,EACpC,OAAAC;AAAA,EACA,UAAAC;AAAA,EACA,eAAAC,IAAgB;AAAA,EAChB,UAAAC;AAAA,EACA,YAAAC,IAAa;AAAA,EACb,UAAAC,IAAW;AAAA,EACX,YAAAC,IAAa;AACf,MAAM;AACJ,QAAMC,IAAaP,EAAM,UAAUE,IAAgB,IAAI;AAGrD,SAAA,gBAAAM,EAACC,GAAA,EAAuB,WAAWF,GAAY,YAAAH,GAAwB,WAAWC,GAC/E,UAAA;AAAA,IAAML,EAAA,IAAI,CAAC,EAAE,IAAAU,GAAI,UAAAC,GAAU,aAAaC,GAAQ,OAAAC,KAASC,MACxD,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QAEC,IAAAN;AAAA,QACA,UAAAT;AAAA,QACA,UAAAI;AAAA,QACA,OAAAS;AAAA,QACA,YAAAV;AAAA,QACA,YAAAE;AAAA,QACA,QAAAM;AAAA,QACA,OAAAC;AAAA,QACA,UAAAF;AAAA,QACA,YAAYG,MAAUP,IAAa;AAAA,MAAA;AAAA,MAV9BG;AAAA,IAAA,CAYR;AAAA,IAEAR,KACC,gBAAAa;AAAA,MAACE;AAAAA,MAAA;AAAA,QACC,YAAU;AAAA,QACV,OAAOV;AAAA,QACP,YAAAH;AAAA,QACA,UAAU;AAAA,QACV,OAAO;AAAA,QACP,aAAY;AAAA,QACZ,QAAQC;AAAA,QACR,SAASA;AAAA,QACT,aAAY;AAAA,QACZ,iBAAgB;AAAA,QAChB,SAASF;AAAA,QAET,UAAC,gBAAAY,EAAAG,GAAA,EAAS,QAAQ,IAAI,SAAS,IAC7B,UAAA,gBAAAH,EAACI,GAAS,EAAA,OAAM,SAAQ,OAAO,IAAI,QAAQ,GAAI,CAAA,GACjD;AAAA,MAAA;AAAA,IACF;AAAA,EAEJ,EAAA,CAAA;AAEJ,GAEeC,IAAAC,EAAKtB,CAAQ;"}
1
+ {"version":3,"file":"user-list.js","sources":["../../../../src/features/auth/user-list/user-list.tsx"],"sourcesContent":["import type { IUserListProps } from './user-list-types';\n\nimport { type FC, memo } from 'react';\n\nimport PlusIcon from '../../../assets/line-icons/icons/plus';\nimport useViewport from '../../hooks/use-viewport/use-viewport';\nimport FlexView from '../../ui/layout/flex-view';\nimport UserItem from './user-item/user-item';\nimport * as Styled from './user-list-styled';\n\nconst UserList: FC<IUserListProps> = ({\n users,\n onSelect,\n showAddButton = false,\n onAddNew,\n maxColumns = 5,\n cardSize = 200,\n avatarSize = 80,\n}) => {\n const totalCards = users.length + (showAddButton ? 1 : 0);\n const { isCompact } = useViewport();\n\n const responsiveColumnNos = isCompact ? 2 : maxColumns;\n const responsiveCardSize = isCompact ? 180 : cardSize;\n\n return (\n <Styled.UserListWrapper\n itemCount={totalCards}\n maxColumns={responsiveColumnNos}\n cardWidth={responsiveCardSize}\n >\n {users.map(({ id, username, user_avatar: avatar, phone }, index) => (\n <UserItem\n key={id}\n id={id}\n onSelect={onSelect}\n cardSize={responsiveCardSize}\n index={index}\n maxColumns={responsiveColumnNos}\n avatarSize={avatarSize}\n avatar={avatar}\n phone={phone}\n username={username}\n isLastItem={index === totalCards - 1}\n />\n ))}\n\n {showAddButton && (\n <Styled.AddAccountButton\n isLastItem\n index={totalCards}\n maxColumns={responsiveColumnNos}\n $gutterX={5}\n $gapX={5}\n $background=\"BLACK_3\"\n $width={responsiveCardSize}\n $height={responsiveCardSize}\n $alignItems=\"center\"\n $justifyContent=\"center\"\n onClick={onAddNew}\n >\n <FlexView $width={40} $height={40}>\n <PlusIcon color=\"WHITE\" width={40} height={40} />\n </FlexView>\n </Styled.AddAccountButton>\n )}\n </Styled.UserListWrapper>\n );\n};\n\nexport default memo(UserList);\n"],"names":["UserList","users","onSelect","showAddButton","onAddNew","maxColumns","cardSize","avatarSize","totalCards","isCompact","useViewport","responsiveColumnNos","responsiveCardSize","jsxs","Styled.UserListWrapper","id","username","avatar","phone","index","jsx","UserItem","Styled.AddAccountButton","FlexView","PlusIcon","UserList$1","memo"],"mappings":";;;;;;;AAUA,MAAMA,IAA+B,CAAC;AAAA,EACpC,OAAAC;AAAA,EACA,UAAAC;AAAA,EACA,eAAAC,IAAgB;AAAA,EAChB,UAAAC;AAAA,EACA,YAAAC,IAAa;AAAA,EACb,UAAAC,IAAW;AAAA,EACX,YAAAC,IAAa;AACf,MAAM;AACJ,QAAMC,IAAaP,EAAM,UAAUE,IAAgB,IAAI,IACjD,EAAE,WAAAM,MAAcC,KAEhBC,IAAsBF,IAAY,IAAIJ,GACtCO,IAAqBH,IAAY,MAAMH;AAG3C,SAAA,gBAAAO;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,WAAWN;AAAA,MACX,YAAYG;AAAA,MACZ,WAAWC;AAAA,MAEV,UAAA;AAAA,QAAMX,EAAA,IAAI,CAAC,EAAE,IAAAc,GAAI,UAAAC,GAAU,aAAaC,GAAQ,OAAAC,KAASC,MACxD,gBAAAC;AAAA,UAACC;AAAA,UAAA;AAAA,YAEC,IAAAN;AAAA,YACA,UAAAb;AAAA,YACA,UAAUU;AAAA,YACV,OAAAO;AAAA,YACA,YAAYR;AAAA,YACZ,YAAAJ;AAAA,YACA,QAAAU;AAAA,YACA,OAAAC;AAAA,YACA,UAAAF;AAAA,YACA,YAAYG,MAAUX,IAAa;AAAA,UAAA;AAAA,UAV9BO;AAAA,QAAA,CAYR;AAAA,QAEAZ,KACC,gBAAAiB;AAAA,UAACE;AAAAA,UAAA;AAAA,YACC,YAAU;AAAA,YACV,OAAOd;AAAA,YACP,YAAYG;AAAA,YACZ,UAAU;AAAA,YACV,OAAO;AAAA,YACP,aAAY;AAAA,YACZ,QAAQC;AAAA,YACR,SAASA;AAAA,YACT,aAAY;AAAA,YACZ,iBAAgB;AAAA,YAChB,SAASR;AAAA,YAET,UAAC,gBAAAgB,EAAAG,GAAA,EAAS,QAAQ,IAAI,SAAS,IAC7B,UAAA,gBAAAH,EAACI,GAAS,EAAA,OAAM,SAAQ,OAAO,IAAI,QAAQ,GAAI,CAAA,GACjD;AAAA,UAAA;AAAA,QACF;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAIR,GAEeC,IAAAC,EAAK1B,CAAQ;"}
@@ -0,0 +1,21 @@
1
+ import { useState as n, useEffect as r } from "react";
2
+ import { getDeviceType as c } from "../../utils/media.js";
3
+ const d = () => {
4
+ const [s, o] = n(() => window.innerWidth);
5
+ r(() => {
6
+ function i() {
7
+ o(window.innerWidth);
8
+ }
9
+ return window.addEventListener("resize", i), () => window.removeEventListener("resize", i);
10
+ }, []);
11
+ const e = c(s), t = e === "mobile";
12
+ return {
13
+ isMobile: t,
14
+ isCompact: t || e === "tablet",
15
+ isDesktop: e === "desktop" || e === "large" || e === "xl"
16
+ };
17
+ }, f = d;
18
+ export {
19
+ f as default
20
+ };
21
+ //# sourceMappingURL=use-viewport.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-viewport.js","sources":["../../../../src/features/hooks/use-viewport/use-viewport.ts"],"sourcesContent":["import type { IUseViewportReturn } from './use-viewport-types';\n\nimport { useEffect, useState } from 'react';\n\nimport { getDeviceType } from '../../utils/media';\n\nconst useViewport = (): IUseViewportReturn => {\n const [width, setWidth] = useState(() => window.innerWidth);\n\n useEffect(() => {\n function handleResize() {\n setWidth(window.innerWidth);\n }\n\n window.addEventListener('resize', handleResize);\n\n return () => window.removeEventListener('resize', handleResize);\n }, []);\n\n const deviceType = getDeviceType(width);\n const isMobile = deviceType === 'mobile';\n const isTablet = deviceType === 'tablet';\n const isDesktop = deviceType === 'desktop';\n const isLarge = deviceType === 'large';\n const isXL = deviceType === 'xl';\n\n return {\n isMobile: isMobile,\n isCompact: isMobile || isTablet,\n isDesktop: isDesktop || isLarge || isXL,\n };\n};\n\nexport default useViewport;\n"],"names":["useViewport","width","setWidth","useState","useEffect","handleResize","deviceType","getDeviceType","isMobile","useViewport$1"],"mappings":";;AAMA,MAAMA,IAAc,MAA0B;AAC5C,QAAM,CAACC,GAAOC,CAAQ,IAAIC,EAAS,MAAM,OAAO,UAAU;AAE1D,EAAAC,EAAU,MAAM;AACd,aAASC,IAAe;AACtB,MAAAH,EAAS,OAAO,UAAU;AAAA,IAC5B;AAEO,kBAAA,iBAAiB,UAAUG,CAAY,GAEvC,MAAM,OAAO,oBAAoB,UAAUA,CAAY;AAAA,EAChE,GAAG,CAAE,CAAA;AAEC,QAAAC,IAAaC,EAAcN,CAAK,GAChCO,IAAWF,MAAe;AAMzB,SAAA;AAAA,IACL,UAAAE;AAAA,IACA,WAAWA,KAPIF,MAAe;AAAA,IAQ9B,WAPgBA,MAAe,aACjBA,MAAe,WAClBA,MAAe;AAAA,EAKS;AAEvC,GAEAG,IAAeT;"}
@@ -1,16 +1,16 @@
1
1
  import u from "styled-components";
2
2
  import x from "../../text/text.js";
3
- const d = u.button(
4
- ({ theme: c, $width: e, $widthX: i, $alignSelf: o, $justifyContent: t, $renderAs: a, $size: n, $shape: $ }) => {
5
- const { button: b, colors: r, layout: p } = c, { backgroundColorName: s, borderColorName: l } = b.variants[a], { height: v, paddingHorizontal: g, borderWidth: h } = b.sizes[n];
3
+ const s = u.button(
4
+ ({ theme: c, $width: t, $widthX: i, $alignSelf: o, $justifyContent: e, $renderAs: a, $size: n, $shape: $ }) => {
5
+ const { button: b, colors: r, layout: p } = c, { backgroundColorName: d, borderColorName: l } = b.variants[a], { height: v, paddingHorizontal: g, borderWidth: h } = b.sizes[n];
6
6
  return `
7
7
  position: relative;
8
8
  display: flex;
9
- justify-content: ${t};
9
+ justify-content: ${e};
10
10
  align-items: center;
11
11
  ${o ? `align-self: ${o};` : ""}
12
12
 
13
- width: ${e ? `${e}px` : "auto"};
13
+ width: ${t ? `${t}` : "auto"}${typeof t == "number" ? "px" : ""};
14
14
  ${i ? `width: ${i * p.gutter}px;` : ""}
15
15
  height: ${v}px;
16
16
  padding: 0 ${g}px;
@@ -19,56 +19,56 @@ const d = u.button(
19
19
  border-radius: ${$ === "curved" ? v / 2 : 0}px;
20
20
  outline: none;
21
21
 
22
- background-color: ${r[s.inactive]};
22
+ background-color: ${r[d.inactive]};
23
23
  border-color: ${r[l.inactive]};
24
24
 
25
25
  transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
26
26
  cursor: pointer;
27
27
 
28
28
  &:hover {
29
- background-color: ${r[s.active]};
29
+ background-color: ${r[d.active]};
30
30
  border-color: ${r[l.active]};
31
31
  }
32
32
 
33
33
  &:active {
34
- background: ${r[s.inactive]};
34
+ background: ${r[d.inactive]};
35
35
  border-color: ${r[l.inactive]};
36
36
  }
37
37
 
38
38
  &[data-busy="true"] {
39
39
  cursor: wait;
40
- background-color: ${r[s.active]};
40
+ background-color: ${r[d.active]};
41
41
  border-color: ${r[l.active]};
42
42
  }
43
43
 
44
44
  &:disabled {
45
- background-color: ${r[s.disabled]};
45
+ background-color: ${r[d.disabled]};
46
46
  border-color: ${r[l.disabled]};
47
47
  cursor: not-allowed;
48
48
  }
49
49
  `;
50
50
  }
51
- ), k = u(x)(({ theme: c, $buttonRenderAs: e }) => {
52
- const { button: i, colors: o } = c, { colorName: t } = i.variants[e];
51
+ ), f = u(x)(({ theme: c, $buttonRenderAs: t }) => {
52
+ const { button: i, colors: o } = c, { colorName: e } = i.variants[t];
53
53
  return `
54
- color: ${o[t.inactive]};
54
+ color: ${o[e.inactive]};
55
55
  transition: color 0.2s ease-in-out;
56
56
 
57
- ${d}:hover & {
58
- color: ${o[t.active]};
57
+ ${s}:hover & {
58
+ color: ${o[e.active]};
59
59
  }
60
60
 
61
- ${d}:active & {
62
- color: ${o[t.inactive]};
61
+ ${s}:active & {
62
+ color: ${o[e.inactive]};
63
63
  }
64
64
 
65
- ${d}:disabled & {
66
- color: ${o[t.disabled]};
65
+ ${s}:disabled & {
66
+ color: ${o[e.disabled]};
67
67
  opacity: 0.5;
68
68
  }
69
69
  `;
70
- }), f = u.div(({ theme: c, $buttonRenderAs: e, $size: i, $iconPosition: o }) => {
71
- const { button: t, colors: a } = c, { colorName: n } = t.variants[e], { iconSize: $, iconPadding: b } = t.sizes[i];
70
+ }), k = u.div(({ theme: c, $buttonRenderAs: t, $size: i, $iconPosition: o }) => {
71
+ const { button: e, colors: a } = c, { colorName: n } = e.variants[t], { iconSize: $, iconPadding: b } = e.sizes[i];
72
72
  return `
73
73
  ${o === "left" ? "padding-right" : "padding-left"}: ${b}px;
74
74
  order: ${o === "left" ? -1 : 1};
@@ -80,31 +80,31 @@ const d = u.button(
80
80
  color: ${a[n.inactive]};
81
81
  transition: color 0.2s ease-in-out;
82
82
 
83
- ${d}:hover & {
83
+ ${s}:hover & {
84
84
  color: ${a[n.active]};
85
85
  }
86
86
 
87
- ${d}:active & {
87
+ ${s}:active & {
88
88
  color: ${a[n.inactive]};
89
89
  }
90
90
 
91
- ${d}:disabled & {
91
+ ${s}:disabled & {
92
92
  color: ${a[n.disabled]};
93
93
  opacity: 0.5;
94
94
  }
95
95
  }
96
96
  `;
97
- }), z = u.img(({ theme: c, $size: e }) => {
98
- const { button: i } = c, { loaderSize: o } = i.sizes[e];
97
+ }), z = u.img(({ theme: c, $size: t }) => {
98
+ const { button: i } = c, { loaderSize: o } = i.sizes[t];
99
99
  return `
100
100
  width: ${o}px;
101
101
  height: ${o}px;
102
102
  `;
103
103
  });
104
104
  export {
105
- d as Button,
106
- f as Icon,
107
- k as Label,
105
+ s as Button,
106
+ k as Icon,
107
+ f as Label,
108
108
  z as Loader
109
109
  };
110
110
  //# sourceMappingURL=button-styled.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"button-styled.js","sources":["../../../../../src/features/ui/buttons/button/button-styled.tsx"],"sourcesContent":["import type { IButtonProps } from './button-types';\n\nimport styled from 'styled-components';\n\nimport Text from '../../text/text';\n\ninterface IStyledButtonProps {\n $width: IButtonProps['width'];\n $widthX: IButtonProps['widthX'];\n $alignSelf: IButtonProps['alignSelf'];\n $renderAs: IButtonProps['renderAs'];\n $size: Required<IButtonProps>['size'];\n $shape: Required<IButtonProps>['shape'];\n $justifyContent: IButtonProps['justifyContent'];\n}\n\nconst Button = styled.button<IStyledButtonProps>(\n ({ theme, $width, $widthX, $alignSelf, $justifyContent, $renderAs, $size, $shape }) => {\n const { button, colors, layout } = theme;\n const { backgroundColorName, borderColorName } = button.variants[$renderAs];\n const { height, paddingHorizontal, borderWidth } = button.sizes[$size];\n\n return `\n position: relative;\n display: flex;\n justify-content: ${$justifyContent};\n align-items: center;\n ${$alignSelf ? `align-self: ${$alignSelf};` : ''}\n \n width: ${$width ? `${$width}px` : 'auto'};\n ${$widthX ? `width: ${$widthX * layout.gutter}px;` : ''}\n height: ${height}px;\n padding: 0 ${paddingHorizontal}px;\n border-width: ${borderWidth}px;\n border-style: solid;\n border-radius: ${$shape === 'curved' ? height / 2 : 0}px;\n outline: none;\n\n background-color: ${colors[backgroundColorName.inactive]};\n border-color: ${colors[borderColorName.inactive]};\n \n transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;\n cursor: pointer;\n\n &:hover {\n background-color: ${colors[backgroundColorName.active]};\n border-color: ${colors[borderColorName.active]};\n }\n\n &:active {\n background: ${colors[backgroundColorName.inactive]};\n border-color: ${colors[borderColorName.inactive]};\n }\n\n &[data-busy=\"true\"] {\n cursor: wait;\n background-color: ${colors[backgroundColorName.active]};\n border-color: ${colors[borderColorName.active]};\n }\n\n &:disabled {\n background-color: ${colors[backgroundColorName.disabled]};\n border-color: ${colors[borderColorName.disabled]};\n cursor: not-allowed;\n }\n `;\n },\n);\n\ninterface IStyledTextProps {\n $buttonRenderAs: IButtonProps['renderAs'];\n}\n\nconst Label = styled(Text)<IStyledTextProps>(({ theme, $buttonRenderAs }) => {\n const { button, colors } = theme;\n const { colorName } = button.variants[$buttonRenderAs];\n\n return `\n color: ${colors[colorName.inactive]};\n transition: color 0.2s ease-in-out;\n\n ${Button}:hover & {\n color: ${colors[colorName.active]};\n }\n \n ${Button}:active & {\n color: ${colors[colorName.inactive]};\n }\n\n ${Button}:disabled & {\n color: ${colors[colorName.disabled]};\n opacity: 0.5;\n }\n `;\n});\n\ninterface IStyledIconProps {\n $size: NonNullable<IButtonProps['size']>;\n $iconPosition: NonNullable<IButtonProps['iconPosition']>;\n $buttonRenderAs: IButtonProps['renderAs'];\n}\n\nconst Icon = styled.div<IStyledIconProps>(({ theme, $buttonRenderAs, $size, $iconPosition }) => {\n const { button, colors } = theme;\n const { colorName } = button.variants[$buttonRenderAs];\n const { iconSize, iconPadding } = button.sizes[$size];\n\n return `\n ${$iconPosition === 'left' ? 'padding-right' : 'padding-left'}: ${iconPadding}px;\n order: ${$iconPosition === 'left' ? -1 : 1};\n \n & svg {\n display: block;\n width: ${iconSize}px;\n height: ${iconSize}px;\n color: ${colors[colorName.inactive]};\n transition: color 0.2s ease-in-out;\n\n ${Button}:hover & {\n color: ${colors[colorName.active]};\n }\n\n ${Button}:active & {\n color: ${colors[colorName.inactive]};\n }\n\n ${Button}:disabled & {\n color: ${colors[colorName.disabled]};\n opacity: 0.5;\n }\n }\n `;\n});\n\ninterface IStyledLoaderProps {\n $size: Required<IButtonProps>['size'];\n}\n\nconst Loader = styled.img<IStyledLoaderProps>(({ theme, $size }) => {\n const { button } = theme;\n const { loaderSize } = button.sizes[$size];\n\n return `\n width: ${loaderSize}px;\n height: ${loaderSize}px;\n `;\n});\n\nexport { Button, Label, Icon, Loader };\n"],"names":["Button","styled","theme","$width","$widthX","$alignSelf","$justifyContent","$renderAs","$size","$shape","button","colors","layout","backgroundColorName","borderColorName","height","paddingHorizontal","borderWidth","Label","Text","$buttonRenderAs","colorName","Icon","$iconPosition","iconSize","iconPadding","Loader","loaderSize"],"mappings":";;AAgBA,MAAMA,IAAS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AAC,GAMKK,IAASzB,EAAO,IAAwB,CAAC,EAAE,OAAAC,GAAO,OAAAM,QAAY;AAC5D,QAAA,EAAE,QAAAE,EAAW,IAAAR,GACb,EAAE,YAAAyB,EAAe,IAAAjB,EAAO,MAAMF,CAAK;AAElC,SAAA;AAAA,aACImB,CAAU;AAAA,cACTA,CAAU;AAAA;AAExB,CAAC;"}
1
+ {"version":3,"file":"button-styled.js","sources":["../../../../../src/features/ui/buttons/button/button-styled.tsx"],"sourcesContent":["import type { IButtonProps } from './button-types';\n\nimport styled from 'styled-components';\n\nimport Text from '../../text/text';\n\ninterface IStyledButtonProps {\n $width: IButtonProps['width'];\n $widthX: IButtonProps['widthX'];\n $alignSelf: IButtonProps['alignSelf'];\n $renderAs: IButtonProps['renderAs'];\n $size: Required<IButtonProps>['size'];\n $shape: Required<IButtonProps>['shape'];\n $justifyContent: IButtonProps['justifyContent'];\n}\n\nconst Button = styled.button<IStyledButtonProps>(\n ({ theme, $width, $widthX, $alignSelf, $justifyContent, $renderAs, $size, $shape }) => {\n const { button, colors, layout } = theme;\n const { backgroundColorName, borderColorName } = button.variants[$renderAs];\n const { height, paddingHorizontal, borderWidth } = button.sizes[$size];\n\n return `\n position: relative;\n display: flex;\n justify-content: ${$justifyContent};\n align-items: center;\n ${$alignSelf ? `align-self: ${$alignSelf};` : ''}\n \n width: ${$width ? `${$width}` : 'auto'}${typeof $width === 'number' ? 'px' : ''};\n ${$widthX ? `width: ${$widthX * layout.gutter}px;` : ''}\n height: ${height}px;\n padding: 0 ${paddingHorizontal}px;\n border-width: ${borderWidth}px;\n border-style: solid;\n border-radius: ${$shape === 'curved' ? height / 2 : 0}px;\n outline: none;\n\n background-color: ${colors[backgroundColorName.inactive]};\n border-color: ${colors[borderColorName.inactive]};\n \n transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;\n cursor: pointer;\n\n &:hover {\n background-color: ${colors[backgroundColorName.active]};\n border-color: ${colors[borderColorName.active]};\n }\n\n &:active {\n background: ${colors[backgroundColorName.inactive]};\n border-color: ${colors[borderColorName.inactive]};\n }\n\n &[data-busy=\"true\"] {\n cursor: wait;\n background-color: ${colors[backgroundColorName.active]};\n border-color: ${colors[borderColorName.active]};\n }\n\n &:disabled {\n background-color: ${colors[backgroundColorName.disabled]};\n border-color: ${colors[borderColorName.disabled]};\n cursor: not-allowed;\n }\n `;\n },\n);\n\ninterface IStyledTextProps {\n $buttonRenderAs: IButtonProps['renderAs'];\n}\n\nconst Label = styled(Text)<IStyledTextProps>(({ theme, $buttonRenderAs }) => {\n const { button, colors } = theme;\n const { colorName } = button.variants[$buttonRenderAs];\n\n return `\n color: ${colors[colorName.inactive]};\n transition: color 0.2s ease-in-out;\n\n ${Button}:hover & {\n color: ${colors[colorName.active]};\n }\n \n ${Button}:active & {\n color: ${colors[colorName.inactive]};\n }\n\n ${Button}:disabled & {\n color: ${colors[colorName.disabled]};\n opacity: 0.5;\n }\n `;\n});\n\ninterface IStyledIconProps {\n $size: NonNullable<IButtonProps['size']>;\n $iconPosition: NonNullable<IButtonProps['iconPosition']>;\n $buttonRenderAs: IButtonProps['renderAs'];\n}\n\nconst Icon = styled.div<IStyledIconProps>(({ theme, $buttonRenderAs, $size, $iconPosition }) => {\n const { button, colors } = theme;\n const { colorName } = button.variants[$buttonRenderAs];\n const { iconSize, iconPadding } = button.sizes[$size];\n\n return `\n ${$iconPosition === 'left' ? 'padding-right' : 'padding-left'}: ${iconPadding}px;\n order: ${$iconPosition === 'left' ? -1 : 1};\n \n & svg {\n display: block;\n width: ${iconSize}px;\n height: ${iconSize}px;\n color: ${colors[colorName.inactive]};\n transition: color 0.2s ease-in-out;\n\n ${Button}:hover & {\n color: ${colors[colorName.active]};\n }\n\n ${Button}:active & {\n color: ${colors[colorName.inactive]};\n }\n\n ${Button}:disabled & {\n color: ${colors[colorName.disabled]};\n opacity: 0.5;\n }\n }\n `;\n});\n\ninterface IStyledLoaderProps {\n $size: Required<IButtonProps>['size'];\n}\n\nconst Loader = styled.img<IStyledLoaderProps>(({ theme, $size }) => {\n const { button } = theme;\n const { loaderSize } = button.sizes[$size];\n\n return `\n width: ${loaderSize}px;\n height: ${loaderSize}px;\n `;\n});\n\nexport { Button, Label, Icon, Loader };\n"],"names":["Button","styled","theme","$width","$widthX","$alignSelf","$justifyContent","$renderAs","$size","$shape","button","colors","layout","backgroundColorName","borderColorName","height","paddingHorizontal","borderWidth","Label","Text","$buttonRenderAs","colorName","Icon","$iconPosition","iconSize","iconPadding","Loader","loaderSize"],"mappings":";;AAgBA,MAAMA,IAASC,EAAO;AAAA,EACpB,CAAC,EAAE,OAAAC,GAAO,QAAAC,GAAQ,SAAAC,GAAS,YAAAC,GAAY,iBAAAC,GAAiB,WAAAC,GAAW,OAAAC,GAAO,QAAAC,QAAa;AACrF,UAAM,EAAE,QAAAC,GAAQ,QAAAC,GAAQ,QAAAC,EAAA,IAAWV,GAC7B,EAAE,qBAAAW,GAAqB,iBAAAC,EAAA,IAAoBJ,EAAO,SAASH,CAAS,GACpE,EAAE,QAAAQ,GAAQ,mBAAAC,GAAmB,aAAAC,EAAgB,IAAAP,EAAO,MAAMF,CAAK;AAE9D,WAAA;AAAA;AAAA;AAAA,yBAGcF,CAAe;AAAA;AAAA,QAEhCD,IAAa,eAAeA,CAAU,MAAM,EAAE;AAAA;AAAA,eAEvCF,IAAS,GAAGA,CAAM,KAAK,MAAM,GAAG,OAAOA,KAAW,WAAW,OAAO,EAAE;AAAA,QAC7EC,IAAU,UAAUA,IAAUQ,EAAO,MAAM,QAAQ,EAAE;AAAA,gBAC7CG,CAAM;AAAA,mBACHC,CAAiB;AAAA,sBACdC,CAAW;AAAA;AAAA,uBAEVR,MAAW,WAAWM,IAAS,IAAI,CAAC;AAAA;AAAA;AAAA,0BAGjCJ,EAAOE,EAAoB,QAAQ,CAAC;AAAA,sBACxCF,EAAOG,EAAgB,QAAQ,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAM1BH,EAAOE,EAAoB,MAAM,CA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MAAkB,SAAS,KAAK,CAAC;AAAA;AAAA;AAAA;AAAA,iBAI/BC,CAAQ;AAAA,kBACPA,CAAQ;AAAA,iBACTb,EAAOU,EAAU,QAAQ,CAAC;AAAA;AAAA;AAAA,UAGjCrB,CAAM;AAAA,mBACGW,EAAOU,EAAU,MAAM,CAAC;AAAA;AAAA;AAAA,UAGjCrB,CAAM;AAAA,mBACGW,EAAOU,EAAU,QAAQ,CAAC;AAAA;AAAA;AAAA,UAGnCrB,CAAM;AAAA,mBACGW,EAAOU,EAAU,QAAQ,CAAC;AAAA;AAAA;AAAA;AAAA;AAK7C,CAAC,GAMKK,IAASzB,EAAO,IAAwB,CAAC,EAAE,OAAAC,GAAO,OAAAM,QAAY;AAC5D,QAAA,EAAE,QAAAE,EAAW,IAAAR,GACb,EAAE,YAAAyB,EAAe,IAAAjB,EAAO,MAAMF,CAAK;AAElC,SAAA;AAAA,aACImB,CAAU;AAAA,cACTA,CAAU;AAAA;AAExB,CAAC;"}
@@ -0,0 +1,16 @@
1
+ const e = {
2
+ mobile: 480,
3
+ tablet: 760,
4
+ desktop: 920,
5
+ large: 1200,
6
+ xl: 1424
7
+ }, l = (r) => r < e.mobile || r >= e.mobile && r < e.tablet ? "mobile" : r >= e.tablet && r < e.desktop ? "tablet" : r >= e.desktop && r < e.large ? "desktop" : r >= e.large && r < e.xl ? "large" : (r >= e.xl, "xl"), t = {
8
+ minDesktop: `@media (min-width: ${e.desktop}px)`,
9
+ minLarge: `@media (min-width: ${e.large}px)`
10
+ };
11
+ export {
12
+ e as BREAKPOINTS,
13
+ l as getDeviceType,
14
+ t as media
15
+ };
16
+ //# sourceMappingURL=media.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"media.js","sources":["../../../src/features/utils/media.ts"],"sourcesContent":["export const BREAKPOINTS = {\n mobile: 480,\n tablet: 760,\n desktop: 920,\n large: 1200,\n xl: 1424,\n};\nexport type TDeviceType = 'mobile' | 'tablet' | 'desktop' | 'large' | 'xl';\n\nexport const getDeviceType = (width: number): TDeviceType => {\n if (width < BREAKPOINTS.mobile) return 'mobile';\n\n if (width >= BREAKPOINTS.mobile && width < BREAKPOINTS.tablet) return 'mobile';\n\n if (width >= BREAKPOINTS.tablet && width < BREAKPOINTS.desktop) return 'tablet';\n\n if (width >= BREAKPOINTS.desktop && width < BREAKPOINTS.large) return 'desktop';\n\n if (width >= BREAKPOINTS.large && width < BREAKPOINTS.xl) return 'large';\n\n if (width >= BREAKPOINTS.xl) return 'xl';\n\n return 'xl';\n};\n\nexport const media = {\n minDesktop: `@media (min-width: ${BREAKPOINTS.desktop}px)`,\n minLarge: `@media (min-width: ${BREAKPOINTS.large}px)`,\n};\n"],"names":["BREAKPOINTS","getDeviceType","width","media"],"mappings":"AAAO,MAAMA,IAAc;AAAA,EACzB,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,OAAO;AAAA,EACP,IAAI;AACN,GAGaC,IAAgB,CAACC,MACxBA,IAAQF,EAAY,UAEpBE,KAASF,EAAY,UAAUE,IAAQF,EAAY,SAAe,WAElEE,KAASF,EAAY,UAAUE,IAAQF,EAAY,UAAgB,WAEnEE,KAASF,EAAY,WAAWE,IAAQF,EAAY,QAAc,YAElEE,KAASF,EAAY,SAASE,IAAQF,EAAY,KAAW,WAE7DE,KAASF,EAAY,IAAW,OAKzBG,IAAQ;AAAA,EACnB,YAAY,sBAAsBH,EAAY,OAAO;AAAA,EACrD,UAAU,sBAAsBA,EAAY,KAAK;AACnD;"}