@tmlmobilidade/ui 20250329.22.48 → 20250329.119.6
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.css.map +1 -1
- package/dist/index.d.ts +13 -14
- package/dist/index.js +1 -1
- package/dist/src/components/layout/Spacer/index.js +4 -8
- package/dist/src/components/layout/Spacer/index.js.map +1 -1
- package/dist/src/components/layout/Spacer/styles.module.css.js +1 -1
- package/dist/styles-no-reset.css +40 -42
- package/dist/styles.css +40 -42
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -78,8 +78,8 @@ interface MultipleProps extends BaseProps {
|
|
78
78
|
onChange?: (value: string[] | undefined) => void;
|
79
79
|
value?: string[] | undefined;
|
80
80
|
}
|
81
|
-
type Props$
|
82
|
-
declare function ComboboxComponent(props: Props$
|
81
|
+
type Props$8 = MultipleProps | SingleProps;
|
82
|
+
declare function ComboboxComponent(props: Props$8): react_jsx_runtime.JSX.Element;
|
83
83
|
|
84
84
|
interface ComponentWrapperProps {
|
85
85
|
children: ReactNode;
|
@@ -308,7 +308,7 @@ interface DataTableSearchProps<T> {
|
|
308
308
|
value?: string;
|
309
309
|
}
|
310
310
|
|
311
|
-
interface Props$
|
311
|
+
interface Props$7<T> {
|
312
312
|
/**
|
313
313
|
* The classnames to be applied to the table.
|
314
314
|
*/
|
@@ -355,7 +355,7 @@ interface Props$6<T> {
|
|
355
355
|
*/
|
356
356
|
title?: string;
|
357
357
|
}
|
358
|
-
declare function DataTable<T>({ records, ...props }: Props$
|
358
|
+
declare function DataTable<T>({ records, ...props }: Props$7<T>): react_jsx_runtime.JSX.Element;
|
359
359
|
|
360
360
|
interface AppWrapperProps {
|
361
361
|
children: React.ReactNode;
|
@@ -366,13 +366,13 @@ interface AppWrapperProps {
|
|
366
366
|
}
|
367
367
|
declare function AppWrapper({ children, icon }: AppWrapperProps): react_jsx_runtime.JSX.Element;
|
368
368
|
|
369
|
-
interface Props$
|
369
|
+
interface Props$6 extends React.HTMLAttributes<HTMLDivElement> {
|
370
370
|
columns?: 'a' | 'aab' | 'ab' | 'abb' | 'abc' | 'abcd';
|
371
371
|
gap?: 'lg' | 'md' | 'none' | 'sm' | 'xl' | 'xs';
|
372
372
|
hAlign?: 'center' | 'end' | 'start';
|
373
373
|
vAlign?: 'center' | 'end' | 'start';
|
374
374
|
}
|
375
|
-
declare function Grid({ children, className, columns, gap, hAlign, vAlign, ...props }: Props$
|
375
|
+
declare function Grid({ children, className, columns, gap, hAlign, vAlign, ...props }: Props$6): react_jsx_runtime.JSX.Element;
|
376
376
|
|
377
377
|
interface SectionProps {
|
378
378
|
children: React__default.ReactNode;
|
@@ -398,13 +398,6 @@ interface SurfaceProps$1 {
|
|
398
398
|
}
|
399
399
|
declare function SimpleSurface({ children, padding }: SurfaceProps$1): react_jsx_runtime.JSX.Element;
|
400
400
|
|
401
|
-
interface SpacerProps {
|
402
|
-
className?: string;
|
403
|
-
orientation: 'horizontal' | 'vertical';
|
404
|
-
size: '2xl' | '3xl' | '4xl' | 'lg' | 'md' | 'sm' | 'xl' | 'xs';
|
405
|
-
}
|
406
|
-
declare function Spacer({ className, orientation, size }: SpacerProps): react_jsx_runtime.JSX.Element;
|
407
|
-
|
408
401
|
interface SurfaceClassNames {
|
409
402
|
divider?: string;
|
410
403
|
root?: string;
|
@@ -424,6 +417,12 @@ interface SurfaceProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
424
417
|
}
|
425
418
|
declare function Surface({ alignItems, borderRadius, children, classNames, divider, flexDirection, gap, justifyContent, padding, variant, ...props }: SurfaceProps): react_jsx_runtime.JSX.Element;
|
426
419
|
|
420
|
+
interface Props$5 {
|
421
|
+
orientation: 'horizontal' | 'vertical';
|
422
|
+
size: 'full' | 'lg' | 'md' | 'sm';
|
423
|
+
}
|
424
|
+
declare function Spacer({ orientation, size }: Props$5): react_jsx_runtime.JSX.Element;
|
425
|
+
|
427
426
|
type MapStyle = 'map' | 'satellite';
|
428
427
|
interface MapOptionsContextState {
|
429
428
|
actions: {
|
@@ -684,4 +683,4 @@ declare const getBaseGeoJsonFeatureLineString: () => GeoJSON.Feature<GeoJSON.Lin
|
|
684
683
|
declare const getBaseGeoJsonFeatureCollection: () => GeoJSON.FeatureCollection<GeoJSON.LineString | GeoJSON.Point, GeoJSON.GeoJsonProperties>;
|
685
684
|
|
686
685
|
export { AVAILABLE_THEMES, ActionIcon, AppProvider, AppWrapper, Badge, Button, CMIcon, CMLogo, Checkbox, 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, PasswordInput, Section, SegmentedControl, Sidebar, SidebarContextProvider, SimpleSurface, 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 };
|
687
|
-
export type { DataItem, DataTableColumn, DataTableSearchProps, MapStyle, Props$
|
686
|
+
export type { DataItem, DataTableColumn, DataTableSearchProps, MapStyle, Props$7 as Props, SidebarItemProps, ToastPromiseParams, ToastProps };
|
package/dist/index.js
CHANGED
@@ -28,8 +28,8 @@ export { default as Grid } from './src/components/layout/Grid/index.js';
|
|
28
28
|
export { default as Section } from './src/components/layout/Section/index.js';
|
29
29
|
export { default as Sidebar } from './src/components/layout/Sidebar/index.js';
|
30
30
|
export { SimpleSurface } from './src/components/layout/SimpleSurface/index.js';
|
31
|
-
export { default as Spacer } from './src/components/layout/Spacer/index.js';
|
32
31
|
export { default as Surface } from './src/components/layout/Surface/index.js';
|
32
|
+
export { Spacer } from './src/components/layout/Spacer/index.js';
|
33
33
|
export { MapView } from './src/components/map/MapView/index.js';
|
34
34
|
export { MapViewStyleActiveStops, MapViewStyleActiveStopsInteractiveLayerId, MapViewStyleActiveStopsPrimaryLayerId } from './src/components/map/MapViewStyleActiveStops/index.js';
|
35
35
|
export { MapViewStylePath, MapViewStylePathInteractiveLayerId, MapViewStylePathPrimaryLayerId } from './src/components/map/MapViewStylePath/index.js';
|
@@ -1,15 +1,11 @@
|
|
1
1
|
'use client';
|
2
2
|
import { j as jsxRuntimeExports } from '../../../../_virtual/jsx-runtime.js';
|
3
|
-
import { cn } from '../../../lib/utils.js';
|
4
3
|
import styles from './styles.module.css.js';
|
5
4
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
return (jsxRuntimeExports.jsx("div", { className: cn(styles[sizeClass], styles[orientationClass], className), style: {
|
10
|
-
minHeight: orientation === 'horizontal' ? '100%' : undefined,
|
11
|
-
} }));
|
5
|
+
/* * */
|
6
|
+
function Spacer({ orientation = 'horizontal', size = 'full' }) {
|
7
|
+
return (jsxRuntimeExports.jsx("div", { className: styles.container, "data-orientation": orientation, "data-size": size }));
|
12
8
|
}
|
13
9
|
|
14
|
-
export { Spacer
|
10
|
+
export { Spacer };
|
15
11
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../src/components/layout/Spacer/index.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../src/components/layout/Spacer/index.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;;;AAaA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAEM,CAAU,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAC,CAAA,CAAE,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAA,CAAA;AAC1E,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CACCA,qBAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CACC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,EAAE,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,SAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EACT,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,WAAA,CAClB,CAAA,CAAA,CAAA,CAAA,CAAI,EAAA,CACd,CAAA;AAEJ;;"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
var styles = {
|
1
|
+
var styles = {};
|
2
2
|
|
3
3
|
export { styles as default };
|
4
4
|
//# sourceMappingURL=styles.module.css.js.map
|
package/dist/styles-no-reset.css
CHANGED
@@ -10073,48 +10073,6 @@ breakpoint-mobile {
|
|
10073
10073
|
.styles-module_root__gwoL6[data-padding='xl'] {
|
10074
10074
|
padding: var(--size-spacing-xl);
|
10075
10075
|
}
|
10076
|
-
.styles-module_sizexs__f81Qf {
|
10077
|
-
--spacer-size: var(--size-spacing-xs);
|
10078
|
-
}
|
10079
|
-
|
10080
|
-
.styles-module_sizesm__cOyRy {
|
10081
|
-
--spacer-size: var(--size-spacing-sm);
|
10082
|
-
}
|
10083
|
-
|
10084
|
-
.styles-module_sizemd__uYu-S {
|
10085
|
-
--spacer-size: var(--size-spacing-md);
|
10086
|
-
}
|
10087
|
-
|
10088
|
-
.styles-module_sizelg__CdAjx {
|
10089
|
-
--spacer-size: var(--size-spacing-lg);
|
10090
|
-
}
|
10091
|
-
|
10092
|
-
.styles-module_sizexl__tWmKz {
|
10093
|
-
--spacer-size: var(--size-spacing-xl);
|
10094
|
-
}
|
10095
|
-
|
10096
|
-
.styles-module_size2xl__Rtw-9 {
|
10097
|
-
--spacer-size: var(--size-spacing-2xl);
|
10098
|
-
}
|
10099
|
-
|
10100
|
-
.styles-module_size3xl__kvrLp {
|
10101
|
-
--spacer-size: var(--size-spacing-3xl);
|
10102
|
-
}
|
10103
|
-
|
10104
|
-
.styles-module_size4xl__aJHXX {
|
10105
|
-
--spacer-size: var(--size-spacing-4xl);
|
10106
|
-
}
|
10107
|
-
|
10108
|
-
.styles-module_orientationvertical__ktvLu {
|
10109
|
-
width: 100%;
|
10110
|
-
height: var(--spacer-size);
|
10111
|
-
}
|
10112
|
-
|
10113
|
-
.styles-module_orientationhorizontal__LyAb1 {
|
10114
|
-
width: var(--spacer-size);
|
10115
|
-
height: 100%;
|
10116
|
-
}
|
10117
|
-
|
10118
10076
|
.styles-module_root__Rhx1c {
|
10119
10077
|
display: flex;
|
10120
10078
|
flex-direction: column;
|
@@ -10205,6 +10163,46 @@ breakpoint-mobile {
|
|
10205
10163
|
/* * */
|
10206
10164
|
/* CONTAINER */
|
10207
10165
|
|
10166
|
+
.styles-module_element__Rcvmy {
|
10167
|
+
display: flex;
|
10168
|
+
background-color: blue;
|
10169
|
+
}
|
10170
|
+
|
10171
|
+
/* * */
|
10172
|
+
/* PROPS / SIZE */
|
10173
|
+
|
10174
|
+
.styles-module_element__Rcvmy[data-size="full"] {
|
10175
|
+
--spacer-size: var(--size-spacing-xs);
|
10176
|
+
}
|
10177
|
+
|
10178
|
+
.styles-module_element__Rcvmy[data-size="sm"] {
|
10179
|
+
--spacer-size: var(--size-spacing-sm);
|
10180
|
+
}
|
10181
|
+
|
10182
|
+
.styles-module_element__Rcvmy[data-size="md"] {
|
10183
|
+
--spacer-size: var(--size-spacing-md);
|
10184
|
+
}
|
10185
|
+
|
10186
|
+
.styles-module_element__Rcvmy[data-size="lg"] {
|
10187
|
+
--spacer-size: var(--size-spacing-lg);
|
10188
|
+
}
|
10189
|
+
|
10190
|
+
/* * */
|
10191
|
+
/* PROPS / ORIENTATION */
|
10192
|
+
|
10193
|
+
.styles-module_element__Rcvmy[data-orientation="vertical"] {
|
10194
|
+
width: 2px;
|
10195
|
+
height: var(--spacer-size);
|
10196
|
+
}
|
10197
|
+
|
10198
|
+
.styles-module_element__Rcvmy[data-orientation="horizontal"] {
|
10199
|
+
width: var(--spacer-size);
|
10200
|
+
height: 2px;
|
10201
|
+
}
|
10202
|
+
|
10203
|
+
/* * */
|
10204
|
+
/* CONTAINER */
|
10205
|
+
|
10208
10206
|
.styles-module_container__Rs2HW {
|
10209
10207
|
position: relative;
|
10210
10208
|
display: flex;
|
package/dist/styles.css
CHANGED
@@ -10128,48 +10128,6 @@ breakpoint-mobile {
|
|
10128
10128
|
.styles-module_root__gwoL6[data-padding='xl'] {
|
10129
10129
|
padding: var(--size-spacing-xl);
|
10130
10130
|
}
|
10131
|
-
.styles-module_sizexs__f81Qf {
|
10132
|
-
--spacer-size: var(--size-spacing-xs);
|
10133
|
-
}
|
10134
|
-
|
10135
|
-
.styles-module_sizesm__cOyRy {
|
10136
|
-
--spacer-size: var(--size-spacing-sm);
|
10137
|
-
}
|
10138
|
-
|
10139
|
-
.styles-module_sizemd__uYu-S {
|
10140
|
-
--spacer-size: var(--size-spacing-md);
|
10141
|
-
}
|
10142
|
-
|
10143
|
-
.styles-module_sizelg__CdAjx {
|
10144
|
-
--spacer-size: var(--size-spacing-lg);
|
10145
|
-
}
|
10146
|
-
|
10147
|
-
.styles-module_sizexl__tWmKz {
|
10148
|
-
--spacer-size: var(--size-spacing-xl);
|
10149
|
-
}
|
10150
|
-
|
10151
|
-
.styles-module_size2xl__Rtw-9 {
|
10152
|
-
--spacer-size: var(--size-spacing-2xl);
|
10153
|
-
}
|
10154
|
-
|
10155
|
-
.styles-module_size3xl__kvrLp {
|
10156
|
-
--spacer-size: var(--size-spacing-3xl);
|
10157
|
-
}
|
10158
|
-
|
10159
|
-
.styles-module_size4xl__aJHXX {
|
10160
|
-
--spacer-size: var(--size-spacing-4xl);
|
10161
|
-
}
|
10162
|
-
|
10163
|
-
.styles-module_orientationvertical__ktvLu {
|
10164
|
-
width: 100%;
|
10165
|
-
height: var(--spacer-size);
|
10166
|
-
}
|
10167
|
-
|
10168
|
-
.styles-module_orientationhorizontal__LyAb1 {
|
10169
|
-
width: var(--spacer-size);
|
10170
|
-
height: 100%;
|
10171
|
-
}
|
10172
|
-
|
10173
10131
|
.styles-module_root__Rhx1c {
|
10174
10132
|
display: flex;
|
10175
10133
|
flex-direction: column;
|
@@ -10260,6 +10218,46 @@ breakpoint-mobile {
|
|
10260
10218
|
/* * */
|
10261
10219
|
/* CONTAINER */
|
10262
10220
|
|
10221
|
+
.styles-module_element__Rcvmy {
|
10222
|
+
display: flex;
|
10223
|
+
background-color: blue;
|
10224
|
+
}
|
10225
|
+
|
10226
|
+
/* * */
|
10227
|
+
/* PROPS / SIZE */
|
10228
|
+
|
10229
|
+
.styles-module_element__Rcvmy[data-size="full"] {
|
10230
|
+
--spacer-size: var(--size-spacing-xs);
|
10231
|
+
}
|
10232
|
+
|
10233
|
+
.styles-module_element__Rcvmy[data-size="sm"] {
|
10234
|
+
--spacer-size: var(--size-spacing-sm);
|
10235
|
+
}
|
10236
|
+
|
10237
|
+
.styles-module_element__Rcvmy[data-size="md"] {
|
10238
|
+
--spacer-size: var(--size-spacing-md);
|
10239
|
+
}
|
10240
|
+
|
10241
|
+
.styles-module_element__Rcvmy[data-size="lg"] {
|
10242
|
+
--spacer-size: var(--size-spacing-lg);
|
10243
|
+
}
|
10244
|
+
|
10245
|
+
/* * */
|
10246
|
+
/* PROPS / ORIENTATION */
|
10247
|
+
|
10248
|
+
.styles-module_element__Rcvmy[data-orientation="vertical"] {
|
10249
|
+
width: 2px;
|
10250
|
+
height: var(--spacer-size);
|
10251
|
+
}
|
10252
|
+
|
10253
|
+
.styles-module_element__Rcvmy[data-orientation="horizontal"] {
|
10254
|
+
width: var(--spacer-size);
|
10255
|
+
height: 2px;
|
10256
|
+
}
|
10257
|
+
|
10258
|
+
/* * */
|
10259
|
+
/* CONTAINER */
|
10260
|
+
|
10263
10261
|
.styles-module_container__Rs2HW {
|
10264
10262
|
position: relative;
|
10265
10263
|
display: flex;
|