@tmlmobilidade/ui 20250401.2342.20 → 20250401.2349.29

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.
package/dist/index.d.ts CHANGED
@@ -399,6 +399,16 @@ interface PanesManagerProps {
399
399
  }
400
400
  declare function PanesManager({ panes }: PanesManagerProps): react_jsx_runtime.JSX.Element;
401
401
 
402
+ interface SectionProps {
403
+ alignItems?: 'center' | 'flex-end' | 'flex-start';
404
+ children: React.ReactNode;
405
+ flexDirection?: 'column' | 'row';
406
+ gap?: 'lg' | 'md' | 'sm' | null;
407
+ justifyContent?: 'center' | 'flex-end' | 'flex-start' | 'space-between';
408
+ padding?: 'lg' | 'md' | 'sm' | null;
409
+ }
410
+ declare function Section({ alignItems, children, flexDirection, gap, justifyContent, padding }: SectionProps): react_jsx_runtime.JSX.Element;
411
+
402
412
  declare function Sidebar(): react_jsx_runtime.JSX.Element;
403
413
 
404
414
  interface SidebarItemProps {
@@ -419,9 +429,8 @@ interface SurfaceProps {
419
429
  children: React.ReactNode;
420
430
  height?: 'auto' | 'full';
421
431
  overflow?: 'auto' | 'hidden' | 'scroll';
422
- padding?: 'lg' | 'md' | 'sm' | 'xl';
423
432
  }
424
- declare function Surface({ children, height, overflow, padding }: SurfaceProps): react_jsx_runtime.JSX.Element;
433
+ declare function Surface({ children, height, overflow }: SurfaceProps): react_jsx_runtime.JSX.Element;
425
434
 
426
435
  type MapStyle = 'map' | 'satellite';
427
436
  interface MapOptionsContextState {
@@ -682,5 +691,5 @@ declare const getBaseGeoJsonFeatureLineString: () => GeoJSON.Feature<GeoJSON.Lin
682
691
  */
683
692
  declare const getBaseGeoJsonFeatureCollection: () => GeoJSON.FeatureCollection<GeoJSON.LineString | GeoJSON.Point, GeoJSON.GeoJsonProperties>;
684
693
 
685
- export { AVAILABLE_THEMES, ActionIcon, AppProvider, AppWrapper, Badge, Button, CMIcon, CMLogo, Checkbox, Collapsible, ComboboxComponent as Combobox, ComponentWrapper, DataTable, DateTimePicker, DeleteActionIcon, Description, FileButton, Grid, Label, MapOptionsContextProvider, MapView, MapViewStyleActiveStops, MapViewStyleActiveStopsInteractiveLayerId, MapViewStyleActiveStopsPrimaryLayerId, MapViewStylePath, MapViewStylePathInteractiveLayerId, MapViewStylePathPrimaryLayerId, MapViewStyleStops, MapViewStyleStopsInteractiveLayerId, MapViewStyleStopsPrimaryLayerId, MapViewStyleVehicles, MapViewStyleVehiclesInteractiveLayerId, MapViewStyleVehiclesPrimaryLayerId, MeContextProvider, Menu, Pane, PanesManager, PasswordInput, SegmentedControl, Sidebar, SidebarContextProvider, SidebarItem, Slider, Spacer, Surface, Switch, TMLogo, TMLogoDark, TMLogoLight, Tag, Text, Component$1 as TextArea, Component as TextInput, ThemeContextProvider, ThemeDark, ThemeLight, ThemeSwitcher, Themer, Tooltip, centerMap, getBaseGeoJsonFeatureCollection, getBaseGeoJsonFeatureLineString, moveMap, useIsActiveDomain, useIsActivePage, useMapOptionsContext, useMeContext, useScreenSize, useSearchQuery, useSidebarContext, useThemeContext, useToast };
694
+ export { AVAILABLE_THEMES, ActionIcon, AppProvider, AppWrapper, Badge, Button, CMIcon, CMLogo, Checkbox, Collapsible, ComboboxComponent as Combobox, ComponentWrapper, DataTable, DateTimePicker, DeleteActionIcon, Description, FileButton, Grid, Label, MapOptionsContextProvider, MapView, MapViewStyleActiveStops, MapViewStyleActiveStopsInteractiveLayerId, MapViewStyleActiveStopsPrimaryLayerId, MapViewStylePath, MapViewStylePathInteractiveLayerId, MapViewStylePathPrimaryLayerId, MapViewStyleStops, MapViewStyleStopsInteractiveLayerId, MapViewStyleStopsPrimaryLayerId, MapViewStyleVehicles, MapViewStyleVehiclesInteractiveLayerId, MapViewStyleVehiclesPrimaryLayerId, MeContextProvider, Menu, Pane, PanesManager, PasswordInput, Section, SegmentedControl, Sidebar, SidebarContextProvider, SidebarItem, Slider, Spacer, Surface, Switch, TMLogo, TMLogoDark, TMLogoLight, Tag, Text, Component$1 as TextArea, Component as TextInput, ThemeContextProvider, ThemeDark, ThemeLight, ThemeSwitcher, Themer, Tooltip, centerMap, getBaseGeoJsonFeatureCollection, getBaseGeoJsonFeatureLineString, moveMap, useIsActiveDomain, useIsActivePage, useMapOptionsContext, useMeContext, useScreenSize, useSearchQuery, useSidebarContext, useThemeContext, useToast };
686
695
  export type { DataItem, DataTableColumn, DataTableProps, DataTableSearchProps, MapStyle, SidebarItemProps, ToastPromiseParams, ToastProps };
package/dist/index.js CHANGED
@@ -28,7 +28,7 @@ export { AppWrapper } from './src/components/layout/AppWrapper/index.js';
28
28
  export { Collapsible } from './src/components/layout/Collapsible/index.js';
29
29
  export { Pane } from './src/components/layout/Pane/index.js';
30
30
  export { PanesManager } from './src/components/layout/PanesManager/index.js';
31
- import './_virtual/jsx-runtime.js';
31
+ export { Section } from './src/components/layout/Section/index.js';
32
32
  export { Sidebar } from './src/components/layout/Sidebar/index.js';
33
33
  export { SidebarItem } from './src/components/layout/SidebarItem/index.js';
34
34
  export { Spacer } from './src/components/layout/Spacer/index.js';
@@ -0,0 +1,10 @@
1
+ import { j as jsxRuntimeExports } from '../../../../_virtual/jsx-runtime.js';
2
+ import styles from './styles.module.css.js';
3
+
4
+ /* * */
5
+ function Section({ alignItems = 'flex-start', children, flexDirection = 'column', gap, justifyContent = 'flex-start', padding = 'md' }) {
6
+ return (jsxRuntimeExports.jsx("div", { className: styles.root, "data-align-items": alignItems, "data-flex-direction": flexDirection, "data-gap": gap, "data-justify-content": justifyContent, "data-padding": padding, children: children }));
7
+ }
8
+
9
+ export { Section };
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../src/components/layout/Section/index.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;;AAeA;AAEM,SAAU,OAAO,CAAC,EAAE,UAAU,GAAG,YAAY,EAAE,QAAQ,EAAE,aAAa,GAAG,QAAQ,EAAE,GAAG,EAAE,cAAc,GAAG,YAAY,EAAE,OAAO,GAAG,IAAI,EAAgB,EAAA;IAC1J,QACCA,+BACC,SAAS,EAAE,MAAM,CAAC,IAAI,sBACJ,UAAU,EAAA,qBAAA,EACP,aAAa,EACxB,UAAA,EAAA,GAAG,0BACS,cAAc,EAAA,cAAA,EACtB,OAAO,EAEpB,QAAA,EAAA,QAAQ,EACJ,CAAA;AAER;;;;"}
@@ -0,0 +1,4 @@
1
+ var styles = {"root":"styles-module_root__9sh2n"};
2
+
3
+ export { styles as default };
4
+ //# sourceMappingURL=styles.module.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,8 +1,8 @@
1
1
  import { j as jsxRuntimeExports } from '../../../../_virtual/jsx-runtime.js';
2
2
  import styles from './styles.module.css.js';
3
3
 
4
- function Surface({ children, height = 'auto', overflow = 'hidden', padding }) {
5
- return (jsxRuntimeExports.jsx("div", { className: styles.root, "data-height": height, "data-overflow": overflow, "data-padding": padding, children: children }));
4
+ function Surface({ children, height = 'auto', overflow = 'hidden' }) {
5
+ return (jsxRuntimeExports.jsx("div", { className: styles.root, "data-height": height, "data-overflow": overflow, children: children }));
6
6
  }
7
7
 
8
8
  export { Surface };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../src/components/layout/Surface/index.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;;AAagB,SAAA,OAAO,CAAC,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,QAAQ,GAAG,QAAQ,EAAE,OAAO,EAAgB,EAAA;AAChG,IAAA,QACCA,qBAAK,CAAA,KAAA,EAAA,EAAA,SAAS,EAAE,MAAM,CAAC,IAAI,EAAA,aAAA,EAAe,MAAM,EAAA,eAAA,EAAiB,QAAQ,EAAgB,cAAA,EAAA,OAAO,YAC9F,QAAQ,EAAA,CACJ;AAER;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../../src/components/layout/Surface/index.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;;AAYgB,SAAA,OAAO,CAAC,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,QAAQ,GAAG,QAAQ,EAAgB,EAAA;AACvF,IAAA,QACCA,qBAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAE,MAAM,CAAC,IAAI,EAAe,aAAA,EAAA,MAAM,mBAAiB,QAAQ,EAAA,QAAA,EACvE,QAAQ,EAAA,CACJ;AAER;;;;"}
@@ -10020,7 +10020,7 @@ breakpoint-mobile {
10020
10020
  color: var(--color-system-border-100);
10021
10021
  }
10022
10022
  /* * */
10023
- /* SURFACE / ROOT */
10023
+ /* ROOT */
10024
10024
 
10025
10025
  .styles-module_root__Rhx1c {
10026
10026
  display: flex;
@@ -10059,25 +10059,6 @@ breakpoint-mobile {
10059
10059
  .styles-module_root__Rhx1c[data-overflow='scroll'] {
10060
10060
  overflow: scroll;
10061
10061
  }
10062
-
10063
- /* * */
10064
- /* PROPS / PADDING */
10065
-
10066
- .styles-module_root__Rhx1c[data-padding='sm'] {
10067
- padding: var(--size-spacing-sm);
10068
- }
10069
-
10070
- .styles-module_root__Rhx1c[data-padding='md'] {
10071
- padding: var(--size-spacing-md);
10072
- }
10073
-
10074
- .styles-module_root__Rhx1c[data-padding='lg'] {
10075
- padding: var(--size-spacing-lg);
10076
- }
10077
-
10078
- .styles-module_root__Rhx1c[data-padding='xl'] {
10079
- padding: var(--size-spacing-xl);
10080
- }
10081
10062
  /* * */
10082
10063
  /* HEADER */
10083
10064
 
package/dist/styles.css CHANGED
@@ -10075,7 +10075,7 @@ breakpoint-mobile {
10075
10075
  color: var(--color-system-border-100);
10076
10076
  }
10077
10077
  /* * */
10078
- /* SURFACE / ROOT */
10078
+ /* ROOT */
10079
10079
 
10080
10080
  .styles-module_root__Rhx1c {
10081
10081
  display: flex;
@@ -10114,25 +10114,6 @@ breakpoint-mobile {
10114
10114
  .styles-module_root__Rhx1c[data-overflow='scroll'] {
10115
10115
  overflow: scroll;
10116
10116
  }
10117
-
10118
- /* * */
10119
- /* PROPS / PADDING */
10120
-
10121
- .styles-module_root__Rhx1c[data-padding='sm'] {
10122
- padding: var(--size-spacing-sm);
10123
- }
10124
-
10125
- .styles-module_root__Rhx1c[data-padding='md'] {
10126
- padding: var(--size-spacing-md);
10127
- }
10128
-
10129
- .styles-module_root__Rhx1c[data-padding='lg'] {
10130
- padding: var(--size-spacing-lg);
10131
- }
10132
-
10133
- .styles-module_root__Rhx1c[data-padding='xl'] {
10134
- padding: var(--size-spacing-xl);
10135
- }
10136
10117
  /* * */
10137
10118
  /* HEADER */
10138
10119
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/ui",
3
- "version": "20250401.2342.20",
3
+ "version": "20250401.2349.29",
4
4
  "author": "",
5
5
  "license": "ISC",
6
6
  "publishConfig": {