@tmlmobilidade/ui 20250826.1316.20 → 20250826.1437.53

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 (38) hide show
  1. package/dist/index.css +233 -0
  2. package/dist/index.css.map +1 -1
  3. package/dist/index.d.ts +48 -3
  4. package/dist/index.js +4 -0
  5. package/dist/index.js.map +1 -1
  6. package/dist/src/components/common/LineBadge/index.js +16 -0
  7. package/dist/src/components/common/LineBadge/index.js.map +1 -0
  8. package/dist/src/components/common/LineBadge/styles.module.css.js +4 -0
  9. package/dist/src/components/common/LineBadge/styles.module.css.js.map +1 -0
  10. package/dist/src/components/common/LineDisplay/index.js +21 -0
  11. package/dist/src/components/common/LineDisplay/index.js.map +1 -0
  12. package/dist/src/components/common/LineDisplay/styles.module.css.js +4 -0
  13. package/dist/src/components/common/LineDisplay/styles.module.css.js.map +1 -0
  14. package/dist/src/components/common/LineName/index.js +10 -0
  15. package/dist/src/components/common/LineName/index.js.map +1 -0
  16. package/dist/src/components/common/LineName/styles.module.css.js +4 -0
  17. package/dist/src/components/common/LineName/styles.module.css.js.map +1 -0
  18. package/dist/src/components/common/LineSelect/index.js +80 -0
  19. package/dist/src/components/common/LineSelect/index.js.map +1 -0
  20. package/dist/src/components/common/LineSelect/styles.module.css.js +4 -0
  21. package/dist/src/components/common/LineSelect/styles.module.css.js.map +1 -0
  22. package/dist/src/components/inputs/CoordinatesInput/index.js +2 -0
  23. package/dist/src/components/inputs/CoordinatesInput/index.js.map +1 -1
  24. package/dist/src/components/inputs/SearchInput/index.js +2 -2
  25. package/dist/src/components/inputs/SearchInput/index.js.map +1 -1
  26. package/dist/src/components/map/view/MapViewToolbar/index.js +2 -0
  27. package/dist/src/components/map/view/MapViewToolbar/index.js.map +1 -1
  28. package/dist/src/components/upload/FileUpload/index.js +2 -1
  29. package/dist/src/components/upload/FileUpload/index.js.map +1 -1
  30. package/dist/src/hooks/use-other-search.js +204 -0
  31. package/dist/src/hooks/use-other-search.js.map +1 -0
  32. package/dist/src/styles/mantine/TextInput-xl.module.css.js +4 -0
  33. package/dist/src/styles/mantine/TextInput-xl.module.css.js.map +1 -0
  34. package/dist/src/styles/theme.js +2 -0
  35. package/dist/src/styles/theme.js.map +1 -1
  36. package/dist/styles-no-reset.css +233 -0
  37. package/dist/styles.css +233 -0
  38. package/package.json +4 -2
package/dist/styles.css CHANGED
@@ -9859,6 +9859,81 @@ breakpoint-mobile {
9859
9859
  font-weight: var(--font-weight-medium);
9860
9860
  color: var(--color-system-text-200);
9861
9861
  }
9862
+ .TextInput-xl-module_root__pLIg2,
9863
+ .TextInput-xl-module_wrapper__jNRc9 {
9864
+ --input-size: var(--font-size-xl);
9865
+ --input-height: var(--font-size-xl);
9866
+ min-width: 200px;
9867
+ overflow: visible;
9868
+ font-size: var(--font-size-xl);
9869
+ transition: width 300ms ease-in-out
9870
+ }
9871
+
9872
+ /* * */
9873
+ /* INPUT */
9874
+
9875
+ .TextInput-xl-module_input__pA6QL {
9876
+ padding: 0 var(--size-spacing-md);
9877
+ font-size: var(--font-size-xl);
9878
+ font-weight: var(--font-weight-semibold);
9879
+ line-height: 1;
9880
+ color: var(--color-system-text-100);
9881
+ background-color: var(--color-system-background-100);
9882
+ border: 2px solid var(--color-system-border-100);
9883
+ border-radius: 5px;
9884
+ transition: all 200ms ease-in-out;
9885
+ }
9886
+
9887
+ .TextInput-xl-module_input__pA6QL::placeholder {
9888
+ color: var(--color-system-text-300);
9889
+ }
9890
+
9891
+ .TextInput-xl-module_input__pA6QL:focus {
9892
+ background-color: var(--color-system-background-100);
9893
+ border-color: var(--color-primary);
9894
+ box-shadow: 0 1px 3px 0 rgb(0 0 0 / 10%);
9895
+ }
9896
+
9897
+ .TextInput-xl-module_wrapper__jNRc9[data-with-left-section="true"] .TextInput-xl-module_input__pA6QL {
9898
+ padding-left: calc(var(--size-spacing-sm) + 46px);
9899
+ }
9900
+
9901
+ .TextInput-xl-module_wrapper__jNRc9[data-with-right-section="true"] .TextInput-xl-module_input__pA6QL {
9902
+ padding-right: calc(var(--size-spacing-sm) + 46px);
9903
+ }
9904
+
9905
+
9906
+ /* * */
9907
+ /* SECTION */
9908
+
9909
+ .TextInput-xl-module_section__iulmc {
9910
+ color: var(--color-system-text-300);
9911
+ }
9912
+
9913
+
9914
+ /* * */
9915
+ /* LABEL */
9916
+
9917
+ .TextInput-xl-module_label__TbVY5 {
9918
+ padding: 0;
9919
+ margin: 0;
9920
+ font-size: var(--font-size-xl);
9921
+ font-weight: var(--font-weight-semibold);
9922
+ line-height: var(--font-line-height);
9923
+ color: var(--color-system-text-100);
9924
+ }
9925
+
9926
+ /* * */
9927
+ /* DESCRIPTION */
9928
+
9929
+ .TextInput-xl-module_description__pALYF {
9930
+ padding: 0;
9931
+ margin: 0;
9932
+ font-size: var(--font-size-md);
9933
+ font-weight: var(--font-weight-medium);
9934
+ line-height: var(--font-line-height);
9935
+ color: var(--color-system-text-200);
9936
+ }
9862
9937
  .TextInput-module_root__5xZUQ,
9863
9938
  .TextInput-module_wrapper__SJBeM {
9864
9939
  --input-size: 40px;
@@ -10695,6 +10770,164 @@ breakpoint-mobile {
10695
10770
  flex-wrap: wrap-reverse;
10696
10771
  }
10697
10772
 
10773
+ /* * */
10774
+ /* BADGE */
10775
+
10776
+ .styles-module_badge__-PqgE {
10777
+ position: relative;
10778
+ display: flex;
10779
+ align-items: center;
10780
+ justify-content: center;
10781
+ font-weight: var(--font-weight-bold);
10782
+ line-height: 1;
10783
+ color: var(--color-system-background-100);
10784
+ letter-spacing: 1px;
10785
+ background-color: var(--color-system-text-200);
10786
+ border-radius: 999px;
10787
+
10788
+ &[data-size='md'] {
10789
+ min-width: 65px;
10790
+ max-width: 65px;
10791
+ min-height: 26px;
10792
+ max-height: 26px;
10793
+ font-size: 16px;
10794
+ }
10795
+
10796
+ &[data-size='lg'] {
10797
+ min-width: 85px;
10798
+ max-width: 85px;
10799
+ min-height: 34px;
10800
+ max-height: 34px;
10801
+ font-size: 22px;
10802
+ }
10803
+ }
10804
+
10805
+
10806
+ /* * */
10807
+ /* ALERT ICON */
10808
+
10809
+ .styles-module_alertIcon__JtR4k {
10810
+ position: absolute;
10811
+ top: -10px;
10812
+ right: -10px;
10813
+ display: flex;
10814
+ align-items: center;
10815
+ justify-content: center;
10816
+ width: 20px;
10817
+ height: 20px;
10818
+ color: var(--color-status-info-text);
10819
+ background-color: var(--color-primary-white);
10820
+ border-radius: 999px;
10821
+ }
10822
+ /* * */
10823
+ /* NAME */
10824
+
10825
+ .styles-module_name__nmepm {
10826
+ display: -webkit-box;
10827
+ justify-content: flex-start;
10828
+ width: 100%;
10829
+ overflow: hidden;
10830
+ text-overflow: ellipsis;
10831
+ -webkit-line-clamp: 3;
10832
+ color: var(--color-system-text-100);
10833
+ -webkit-box-orient: vertical;
10834
+ }
10835
+
10836
+ /* * */
10837
+ /* SIZE */
10838
+
10839
+ .styles-module_name__nmepm[data-size='md'] {
10840
+ font-size: 15px;
10841
+ font-weight: var(--font-weight-semibold);
10842
+ }
10843
+
10844
+ .styles-module_name__nmepm[data-size='lg'] {
10845
+ font-size: 20px;
10846
+ font-weight: var(--font-weight-semibold);
10847
+ }
10848
+
10849
+ /* * */
10850
+ /* ALIGN */
10851
+
10852
+ .styles-module_name__nmepm[data-align='left'] {
10853
+ align-items: flex-start;
10854
+ text-align: left;
10855
+ }
10856
+
10857
+ .styles-module_name__nmepm[data-align='center'] {
10858
+ align-items: center;
10859
+ text-align: center;
10860
+ }
10861
+ /* * */
10862
+ /* CONTAINER */
10863
+
10864
+ .styles-module_container__A88zF {
10865
+ display: flex;
10866
+ flex-direction: row;
10867
+ gap: var(--size-spacing-sm);
10868
+ align-items: center;
10869
+ justify-content: flex-start;
10870
+ }
10871
+
10872
+ /* * */
10873
+ /* COMBOBOX TARGET WRAPPER */
10874
+
10875
+ .styles-module_comboboxTargetWrapper__MxB1r {
10876
+ position: relative;
10877
+ width: 100%;
10878
+ height: auto;
10879
+ }
10880
+
10881
+ /* * */
10882
+ /* COMBOBOX TARGET INPUT */
10883
+
10884
+ .styles-module_comboboxTargetInput__Qle1Y {
10885
+ width: 100%;
10886
+ height: auto;
10887
+ max-height: none;
10888
+ padding: 13px calc(var(--size-spacing-md) + 30px);
10889
+ padding-bottom: 12px;
10890
+ font-size: 18px;
10891
+ line-height: 1;
10892
+ color: var(--color-system-text-100);
10893
+ background-color: var(--color-system-background-100);
10894
+ border: 1px solid var(--color-system-border-200);
10895
+ border-radius: 5px;
10896
+ }
10897
+
10898
+ /* * */
10899
+ /* COMBOBOX TARGET SECTION */
10900
+
10901
+ .styles-module_comboboxTargetSection__Q9IFI {
10902
+ position: absolute;
10903
+ display: flex;
10904
+ width: auto;
10905
+ padding: var(--size-spacing-sm);
10906
+ color: var(--color-system-text-300);
10907
+ }
10908
+
10909
+ .styles-module_comboboxTargetSection__Q9IFI[data-position="left"] {
10910
+ left: 1px;
10911
+ }
10912
+
10913
+ .styles-module_comboboxTargetSection__Q9IFI[data-position="right"] {
10914
+ right: 1px;
10915
+ }
10916
+
10917
+ /* * */
10918
+ /* COMBOBOX OPTION */
10919
+
10920
+ .styles-module_comboboxOption__gQmRA {
10921
+ padding: 6px;
10922
+ }
10923
+
10924
+ /* * */
10925
+ /* SELECTED */
10926
+
10927
+ .styles-module_selected__AYGBH {
10928
+ background-color: var(--color-system-background-200) !important;
10929
+ }
10930
+
10698
10931
  .styles-module_header__6dpaJ {
10699
10932
  position: sticky;
10700
10933
  top: 0;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/ui",
3
3
  "description": "UI components for Transportes Metropolitanos de Lisboa (TML) web applications.",
4
- "version": "20250826.1316.20",
4
+ "version": "20250826.1437.53",
5
5
  "author": "João de Vasconcelos & Jusi Monteiro",
6
6
  "license": "AGPL-3.0-or-later",
7
7
  "publishConfig": {
@@ -42,6 +42,7 @@
42
42
  "path": false
43
43
  },
44
44
  "dependencies": {
45
+ "@carrismetropolitana/api-types": "^20250820.1130.53",
45
46
  "@mantine/core": "8.2.5",
46
47
  "@mantine/dates": "8.2.5",
47
48
  "@mantine/form": "8.2.5",
@@ -58,7 +59,8 @@
58
59
  "mantine-form-zod-resolver": "1.3.0",
59
60
  "maplibre-gl": "5.7.0",
60
61
  "react": "19.x",
61
- "react-viewport-list": "7.1.2"
62
+ "react-viewport-list": "7.1.2",
63
+ "ukkonen": "^2.2.0"
62
64
  },
63
65
  "devDependencies": {
64
66
  "@rollup/plugin-commonjs": "28.0.6",