@tmlmobilidade/ui 20250826.1336.59 → 20250826.1511.18

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 (44) hide show
  1. package/dist/index.css +243 -0
  2. package/dist/index.css.map +1 -1
  3. package/dist/index.d.ts +72 -5
  4. package/dist/index.js +8 -1
  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/common/StopDisplay/index.js +14 -0
  23. package/dist/src/components/common/StopDisplay/index.js.map +1 -0
  24. package/dist/src/components/common/StopDisplay/styles.module.css.js +4 -0
  25. package/dist/src/components/common/StopDisplay/styles.module.css.js.map +1 -0
  26. package/dist/src/components/common/StopDisplayName/index.js +10 -0
  27. package/dist/src/components/common/StopDisplayName/index.js.map +1 -0
  28. package/dist/src/components/common/StopDisplayName/styles.module.css.js +4 -0
  29. package/dist/src/components/common/StopDisplayName/styles.module.css.js.map +1 -0
  30. package/dist/src/components/common/StopSelect/index.js +77 -0
  31. package/dist/src/components/common/StopSelect/index.js.map +1 -0
  32. package/dist/src/components/common/StopSelect/styles.module.css.js +4 -0
  33. package/dist/src/components/common/StopSelect/styles.module.css.js.map +1 -0
  34. package/dist/src/components/inputs/CoordinatesInput/index.js +3 -0
  35. package/dist/src/components/inputs/CoordinatesInput/index.js.map +1 -1
  36. package/dist/src/components/map/view/MapViewToolbar/index.js +3 -1
  37. package/dist/src/components/map/view/MapViewToolbar/index.js.map +1 -1
  38. package/dist/src/components/upload/FileUpload/index.js +3 -1
  39. package/dist/src/components/upload/FileUpload/index.js.map +1 -1
  40. package/dist/src/hooks/use-other-search.js +204 -0
  41. package/dist/src/hooks/use-other-search.js.map +1 -0
  42. package/dist/styles-no-reset.css +243 -0
  43. package/dist/styles.css +243 -0
  44. package/package.json +4 -2
package/dist/styles.css CHANGED
@@ -10770,6 +10770,249 @@ breakpoint-mobile {
10770
10770
  flex-wrap: wrap-reverse;
10771
10771
  }
10772
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
+
10931
+ /* * */
10932
+ /* CONTAINER */
10933
+
10934
+ .styles-module_container__qrLZH {
10935
+ display: flex;
10936
+ flex-direction: column;
10937
+ gap: var(--size-spacing-3);
10938
+ align-items: flex-start;
10939
+ justify-content: flex-start;
10940
+ }
10941
+ /* * */
10942
+ /* NAME */
10943
+
10944
+ .styles-module_name__SST-B {
10945
+ color: var(--color-system-text-100);
10946
+ }
10947
+
10948
+ .styles-module_name__SST-B.styles-module_md__-wokm {
10949
+ font-size: 16px;
10950
+ font-weight: var(--font-weight-bold);
10951
+ }
10952
+
10953
+ .styles-module_name__SST-B.styles-module_lg__5of8l {
10954
+ font-size: 20px;
10955
+ font-weight: var(--font-weight-bold);
10956
+ }
10957
+ /* * */
10958
+ /* COMBOBOX TARGET WRAPPER */
10959
+
10960
+ .styles-module_comboboxTargetWrapper__hRaRB {
10961
+ position: relative;
10962
+ width: 100%;
10963
+ height: auto;
10964
+ }
10965
+
10966
+ /* * */
10967
+ /* COMBOBOX TARGET INPUT */
10968
+
10969
+ .styles-module_comboboxTargetInput__XB2iL {
10970
+ width: 100%;
10971
+ height: auto;
10972
+ max-height: none;
10973
+ padding: 13px calc(var(--size-spacing-md) + 30px);
10974
+ padding-bottom: 12px;
10975
+ font-size: 18px;
10976
+ line-height: 1;
10977
+ color: var(--color-system-text-100);
10978
+ background-color: var(--color-system-background-100);
10979
+ border: 1px solid var(--color-system-border-200);
10980
+ border-radius: 5px;
10981
+ }
10982
+
10983
+ /* * */
10984
+ /* COMBOBOX TARGET SECTION */
10985
+
10986
+ .styles-module_comboboxTargetSection__zilqR {
10987
+ position: absolute;
10988
+ display: flex;
10989
+ width: auto;
10990
+ padding: var(--size-spacing-sm);
10991
+ color: var(--color-system-text-300);
10992
+ }
10993
+
10994
+ .styles-module_comboboxTargetSection__zilqR[data-position="left"] {
10995
+ left: 1px;
10996
+ }
10997
+
10998
+ .styles-module_comboboxTargetSection__zilqR[data-position="right"] {
10999
+ right: 1px;
11000
+ }
11001
+
11002
+ /* * */
11003
+ /* COMBOBOX OPTION */
11004
+
11005
+ .styles-module_comboboxOption__uyqLv {
11006
+ padding: 6px;
11007
+ }
11008
+
11009
+ /* * */
11010
+ /* SELECTED */
11011
+
11012
+ .styles-module_selected__ZOTd- {
11013
+ background-color: var(--color-system-background-200) !important;
11014
+ }
11015
+
10773
11016
  .styles-module_header__6dpaJ {
10774
11017
  position: sticky;
10775
11018
  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.1336.59",
4
+ "version": "20250826.1511.18",
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",