@tmlmobilidade/ui 20250828.1342.43 → 20250828.1453.35
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 +89 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +26 -6
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/src/components/common/PillGroup/index.js +33 -0
- package/dist/src/components/common/PillGroup/index.js.map +1 -0
- package/dist/src/components/common/PillGroup/styles.module.css.js +4 -0
- package/dist/src/components/common/PillGroup/styles.module.css.js.map +1 -0
- package/dist/src/components/layout/Separator/index.js +10 -0
- package/dist/src/components/layout/Separator/index.js.map +1 -0
- package/dist/src/components/layout/Separator/styles.module.css.js +4 -0
- package/dist/src/components/layout/Separator/styles.module.css.js.map +1 -0
- package/dist/styles-no-reset.css +89 -0
- package/dist/styles.css +89 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -121,7 +121,7 @@ interface BadgeProps extends BadgeProps$1 {
|
|
121
121
|
}
|
122
122
|
declare function Badge({ children, className, disabled, filled, fullWidth, icon, onClick, size, type, variant, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
|
123
123
|
|
124
|
-
interface DataItem$
|
124
|
+
interface DataItem$2 {
|
125
125
|
icon?: React.ReactNode;
|
126
126
|
label: string;
|
127
127
|
value: string;
|
@@ -129,7 +129,7 @@ interface DataItem$1 {
|
|
129
129
|
interface BaseProps extends Omit<ComboboxProps, 'onChange' | 'value'> {
|
130
130
|
className?: string;
|
131
131
|
clearable?: boolean;
|
132
|
-
data: DataItem$
|
132
|
+
data: DataItem$2[] | string[];
|
133
133
|
description?: string;
|
134
134
|
error?: string;
|
135
135
|
fullWidth?: boolean;
|
@@ -202,7 +202,7 @@ declare namespace Menu {
|
|
202
202
|
var Label: (props: MenuLabelProps) => react_jsx_runtime.JSX.Element;
|
203
203
|
}
|
204
204
|
|
205
|
-
interface DataItem {
|
205
|
+
interface DataItem$1 {
|
206
206
|
icon?: React.ReactNode;
|
207
207
|
label: string;
|
208
208
|
value: string;
|
@@ -210,7 +210,7 @@ interface DataItem {
|
|
210
210
|
interface MultiSelectProps {
|
211
211
|
className?: string;
|
212
212
|
clearable?: boolean;
|
213
|
-
data: DataItem[];
|
213
|
+
data: DataItem$1[];
|
214
214
|
description?: string;
|
215
215
|
disabled?: boolean;
|
216
216
|
error?: string;
|
@@ -282,6 +282,20 @@ interface LineSelectProps {
|
|
282
282
|
}
|
283
283
|
declare function LineSelect({ data, label, loading, nothingFound, onSelectLineId, placeholder, selectedLineId, variant }: LineSelectProps): react_jsx_runtime.JSX.Element;
|
284
284
|
|
285
|
+
interface DataItem {
|
286
|
+
icon?: React.ReactNode;
|
287
|
+
label: string;
|
288
|
+
value: string;
|
289
|
+
}
|
290
|
+
interface PillGroupBaseProps {
|
291
|
+
data: DataItem[] | string[];
|
292
|
+
onChange?: (value: string[]) => void;
|
293
|
+
selected?: string[];
|
294
|
+
size?: 'lg' | 'md' | 'sm' | 'xl';
|
295
|
+
}
|
296
|
+
type PillGroupProps = PillGroupBaseProps;
|
297
|
+
declare function PillGroup({ data, onChange, selected, size }: PillGroupProps): react_jsx_runtime.JSX.Element;
|
298
|
+
|
285
299
|
type PopoverProps = PopoverProps$1;
|
286
300
|
type PopoverTargetProps = PopoverTargetProps$1;
|
287
301
|
type PopoverDropdownProps = PopoverDropdownProps$1;
|
@@ -598,6 +612,12 @@ interface SectionProps {
|
|
598
612
|
}
|
599
613
|
declare function Section({ alignItems, children, flexDirection, flexWrap, gap, justifyContent, padding }: SectionProps): react_jsx_runtime.JSX.Element;
|
600
614
|
|
615
|
+
interface SeparatorProps {
|
616
|
+
margin?: 'lg' | 'md' | 'none' | 'sm';
|
617
|
+
separatorType?: 'dashed' | 'solid';
|
618
|
+
}
|
619
|
+
declare function Separator({ margin, separatorType }: SeparatorProps): react_jsx_runtime.JSX.Element;
|
620
|
+
|
601
621
|
interface SpacerProps {
|
602
622
|
orientation?: 'horizontal' | 'vertical';
|
603
623
|
shrink?: boolean;
|
@@ -1069,5 +1089,5 @@ declare function AppProvider({ children }: PropsWithChildren): react_jsx_runtime
|
|
1069
1089
|
*/
|
1070
1090
|
declare function BaseProvider({ children }: PropsWithChildren): react_jsx_runtime.JSX.Element;
|
1071
1091
|
|
1072
|
-
export { AVAILABLE_MODES, AVAILABLE_THEMES, AlertCard, AlertMessage, AppProvider, AppWrapper, BackButton, Badge, BaseProvider, Button, CMIcon, CMLogo, Checkbox, Collapsible, ComboboxComponent as Combobox, ComponentWrapper, CoordinatesInput, DataTable, DatePicker, DateTimePicker, DeleteButton, Description, Divider, ErrorDisplay, FileButton, FileUpload, FilterMenu, FilterMenuTarget, FiltersBar, Grid, HasPermission, Indicator, Label, LineBadge, LineDisplay, LineName, LineSelect, Loader, LoadingOverlay, LockButton, MAP_STYLES, MAP_VIEWPORT, MapContextProvider, MapOverlayGeofences, MapOverlayMultipleStops, MapOverlayObservedPath, MapOverlayPins, MapOverlayScheduledPath, MapView, MapViewContextProvider, MeContextProvider, Menu, MultiSelect, NoDataLabel, NumberInput, Pane, PanesManager, PasswordInput, PillsInput, Popover, SearchInput, Section, SegmentedControl, Sidebar, SidebarContextProvider, Slider, Spacer, StopDisplay, StopDisplayName, StopSelect, Surface, Switch, TMLogo, TMLogoDark, TMLogoLight, Tag, TagGroup, Text, TextInput, Textarea, ThemeContextProvider, Toolbar, Tooltip, ValueDisplay, WhenDarkMode, WhenLightMode, WhenMode, accessorSearch, plainSearch, sidebarApps, useCssVariable, useCurrentUrl, useMapContext, useMapViewContext, useMeContext, useSearch, useSidebarContext, useThemeContext, useToast, useUserPreference };
|
1073
|
-
export type { ButtonProps, CheckboxGroupProps, CheckboxProps, DataItem$
|
1092
|
+
export { AVAILABLE_MODES, AVAILABLE_THEMES, AlertCard, AlertMessage, AppProvider, AppWrapper, BackButton, Badge, BaseProvider, Button, CMIcon, CMLogo, Checkbox, Collapsible, ComboboxComponent as Combobox, ComponentWrapper, CoordinatesInput, DataTable, DatePicker, DateTimePicker, DeleteButton, Description, Divider, ErrorDisplay, FileButton, FileUpload, FilterMenu, FilterMenuTarget, FiltersBar, Grid, HasPermission, Indicator, Label, LineBadge, LineDisplay, LineName, LineSelect, Loader, LoadingOverlay, LockButton, MAP_STYLES, MAP_VIEWPORT, MapContextProvider, MapOverlayGeofences, MapOverlayMultipleStops, MapOverlayObservedPath, MapOverlayPins, MapOverlayScheduledPath, MapView, MapViewContextProvider, MeContextProvider, Menu, MultiSelect, NoDataLabel, NumberInput, Pane, PanesManager, PasswordInput, PillGroup, PillsInput, Popover, SearchInput, Section, SegmentedControl, Separator, Sidebar, SidebarContextProvider, Slider, Spacer, StopDisplay, StopDisplayName, StopSelect, Surface, Switch, TMLogo, TMLogoDark, TMLogoLight, Tag, TagGroup, Text, TextInput, Textarea, ThemeContextProvider, Toolbar, Tooltip, ValueDisplay, WhenDarkMode, WhenLightMode, WhenMode, accessorSearch, plainSearch, sidebarApps, useCssVariable, useCurrentUrl, useMapContext, useMapViewContext, useMeContext, useSearch, useSidebarContext, useThemeContext, useToast, useUserPreference };
|
1093
|
+
export type { ButtonProps, CheckboxGroupProps, CheckboxProps, DataItem$2 as DataItem, DataTableColumn, DataTableProps, FileButtonProps, LabelProps, LineBadgeProps, LineDisplayProps, LineNameProps, LineSelectProps, LoaderProps, MapOverlayGeofencesPolygonDataProps, MapOverlayMultipleStopsDataProps, MapOverlayObservedPathLineDataProps, MapOverlayObservedPathPointsDataProps, MapOverlayPinsPointDataProps, MapOverlayScheduledPathLineDataProps, MapOverlayScheduledPathPointsDataProps, MapStyle, ModeType, NoDataLabelProps, NumberInputProps, PillsInputProps, PopoverDropdownProps, PopoverProps, PopoverTargetProps, SearchInputProps, SegmentedControlProps, SurfaceProps, TagGroupProps, TagProps, TextInputProps, TextProps, TextareaProps, ThemeType, ToastPromiseParams, ToastProps };
|
package/dist/index.js
CHANGED
@@ -18,6 +18,7 @@ export { LineBadge } from './src/components/common/LineBadge/index.js';
|
|
18
18
|
export { LineDisplay } from './src/components/common/LineDisplay/index.js';
|
19
19
|
export { LineName } from './src/components/common/LineName/index.js';
|
20
20
|
export { LineSelect } from './src/components/common/LineSelect/index.js';
|
21
|
+
export { PillGroup } from './src/components/common/PillGroup/index.js';
|
21
22
|
export { Popover } from './src/components/common/Popover/index.js';
|
22
23
|
export { SegmentedControl } from './src/components/common/SegmentedControl/index.js';
|
23
24
|
export { Slider } from './src/components/common/Slider/index.js';
|
@@ -52,6 +53,7 @@ export { Collapsible } from './src/components/layout/Collapsible/index.js';
|
|
52
53
|
export { Divider } from './src/components/layout/Divider/index.js';
|
53
54
|
export { Grid } from './src/components/layout/Grid/index.js';
|
54
55
|
export { Section } from './src/components/layout/Section/index.js';
|
56
|
+
export { Separator } from './src/components/layout/Separator/index.js';
|
55
57
|
export { Spacer } from './src/components/layout/Spacer/index.js';
|
56
58
|
export { Surface } from './src/components/layout/Surface/index.js';
|
57
59
|
export { Toolbar } from './src/components/layout/Toolbar/index.js';
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
'use client';
|
2
|
+
import { j as jsxRuntimeExports } from '../../../../_virtual/jsx-runtime.js';
|
3
|
+
import { Pill } from '@mantine/core';
|
4
|
+
import { IconCheck, IconX, IconPlus } from '@tabler/icons-react';
|
5
|
+
import { useMemo } from 'react';
|
6
|
+
import styles from './styles.module.css.js';
|
7
|
+
|
8
|
+
function PillGroup({ data, onChange, selected, size = 'md' }) {
|
9
|
+
//
|
10
|
+
const preparedData = useMemo(() => {
|
11
|
+
return data.map(item => (typeof item === 'string' ? { label: item, value: item } : item));
|
12
|
+
}, [data]);
|
13
|
+
//
|
14
|
+
// A. Render components
|
15
|
+
return (jsxRuntimeExports.jsx(Pill.Group, { children: preparedData.map(item => (jsxRuntimeExports.jsxs(Pill, { "data-size": size, classNames: {
|
16
|
+
label: styles.label,
|
17
|
+
root: styles.pill,
|
18
|
+
}, removeButtonProps: {
|
19
|
+
icon: selected?.includes(item.value) ? jsxRuntimeExports.jsx(IconX, { size: 16 }) : jsxRuntimeExports.jsx(IconPlus, { size: 16 }),
|
20
|
+
onClick: () => {
|
21
|
+
if (selected?.includes(item.value)) {
|
22
|
+
onChange?.(selected.filter(value => value !== item.value));
|
23
|
+
}
|
24
|
+
else {
|
25
|
+
onChange?.([...(selected ?? []), item.value]);
|
26
|
+
}
|
27
|
+
},
|
28
|
+
}, withRemoveButton: true, children: [selected?.includes(item.value) && jsxRuntimeExports.jsx(IconCheck, { size: 16 }), item.icon && jsxRuntimeExports.jsx("span", { style: { marginRight: '0.25rem' }, children: item.icon }), item.label] }, item.value))) }));
|
29
|
+
//
|
30
|
+
}
|
31
|
+
|
32
|
+
export { PillGroup };
|
33
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../src/components/common/PillGroup/index.tsx"],"sourcesContent":[null],"names":["_jsx","_jsxs"],"mappings":";;;;;;;AA2BM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAU,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAC,CAAA,CAAE,CAAA,CAAA,CAAA,CAAI,CAAA,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAE,CAAA,CAAA,CAAA,CAAI,CAAA,CAAA,CAAG,CAAA,CAAA,CAAA,CAAI,EAAkB,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,CAAIA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAA,CAAA,CAAK,CAAA,CAAE,CAAA,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAW,CAAA,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAA,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,IAAI,CAAC,CAAA,CAAA,CAAA,CAAI,CAAA,CAAA,CAAQ,CAAA,CACxE,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAA,CAAA,CAAA,CAAA,CArBN,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAsBT,CACP,CAAC,EAAA,CACU,CAAA;;AAIf;;"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"styles.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
'use client';
|
2
|
+
import { j as jsxRuntimeExports } from '../../../../_virtual/jsx-runtime.js';
|
3
|
+
import styles from './styles.module.css.js';
|
4
|
+
|
5
|
+
function Separator({ margin = 'none', separatorType = 'solid' }) {
|
6
|
+
return (jsxRuntimeExports.jsx("div", { className: styles.root, "data-margin": margin, "data-separator-type": separatorType }));
|
7
|
+
}
|
8
|
+
|
9
|
+
export { Separator };
|
10
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../src/components/layout/Separator/index.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAU,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAC,CAAA,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,CAAA,CAAA,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAA,CAAkB,CAAA,CAAA;AACrF,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CACCA,qBAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CACC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,EAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAC,IAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EACT,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,qBAAA,CAAA,CACE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,EAAA,CAEjC,CAAA;AAEJ;;"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"styles.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/styles-no-reset.css
CHANGED
@@ -934,6 +934,56 @@
|
|
934
934
|
background-color: var(--color-system-background-200) !important;
|
935
935
|
}
|
936
936
|
|
937
|
+
/* * */
|
938
|
+
/* PILL */
|
939
|
+
|
940
|
+
.styles-module_pill__yivEf {
|
941
|
+
display: flex;
|
942
|
+
gap: var(--size-spacing-xs);
|
943
|
+
align-items: center;
|
944
|
+
height: fit-content;
|
945
|
+
font-size: var(--font-size-sm);
|
946
|
+
font-weight: var(--font-weight-medium);
|
947
|
+
color: var(--color-system-text-100);
|
948
|
+
cursor: auto;
|
949
|
+
background-color: var(--color-system-background-200);
|
950
|
+
border-radius: var(--border-radius-xs);
|
951
|
+
box-shadow: 1px 2px 3px 1px rgb(0 0 0 / 15%);
|
952
|
+
|
953
|
+
& * {
|
954
|
+
user-select: none;
|
955
|
+
}
|
956
|
+
|
957
|
+
&[data-size='lg'] {
|
958
|
+
padding: var(--size-spacing-sm);
|
959
|
+
font-size: var(--font-size-lg);
|
960
|
+
}
|
961
|
+
|
962
|
+
&[data-size='md'] {
|
963
|
+
padding: var(--size-spacing-xs);
|
964
|
+
font-size: var(--font-size-md);
|
965
|
+
}
|
966
|
+
|
967
|
+
&[data-size='sm'] {
|
968
|
+
padding: var(--size-spacing-xs);
|
969
|
+
font-size: var(--font-size-sm);
|
970
|
+
}
|
971
|
+
|
972
|
+
&[data-size='xl'] {
|
973
|
+
padding: var(--size-spacing-md);
|
974
|
+
font-size: var(--font-size-xl);
|
975
|
+
}
|
976
|
+
}
|
977
|
+
|
978
|
+
/* * */
|
979
|
+
/* LABEL */
|
980
|
+
|
981
|
+
.styles-module_label__2CZDF {
|
982
|
+
display: flex;
|
983
|
+
gap: var(--size-spacing-xs);
|
984
|
+
align-items: center;
|
985
|
+
color: var(--color-system-text-100);
|
986
|
+
}
|
937
987
|
/* * */
|
938
988
|
/* CONTAINER */
|
939
989
|
|
@@ -2106,6 +2156,45 @@
|
|
2106
2156
|
/* * */
|
2107
2157
|
/* ROOT */
|
2108
2158
|
|
2159
|
+
.styles-module_root__xDysI {
|
2160
|
+
display: flex;
|
2161
|
+
align-items: center;
|
2162
|
+
justify-content: center;
|
2163
|
+
border-bottom: 1px solid var(--color-system-border-200);
|
2164
|
+
|
2165
|
+
|
2166
|
+
/* * */
|
2167
|
+
/* PROPS / SEPARATOR TYPE */
|
2168
|
+
&[data-separator-type="dashed"] {
|
2169
|
+
border-bottom: 1px dashed var(--color-system-border-100);
|
2170
|
+
}
|
2171
|
+
|
2172
|
+
&[data-separator-type="solid"] {
|
2173
|
+
border-bottom: 1px solid var(--color-system-border-100);
|
2174
|
+
}
|
2175
|
+
|
2176
|
+
/* * */
|
2177
|
+
/* PROPS / MARGIN */
|
2178
|
+
|
2179
|
+
&[data-margin="sm"] {
|
2180
|
+
margin: var(--size-spacing-sm);
|
2181
|
+
}
|
2182
|
+
|
2183
|
+
&[data-margin="md"] {
|
2184
|
+
margin: var(--size-spacing-md);
|
2185
|
+
}
|
2186
|
+
|
2187
|
+
&[data-margin="lg"] {
|
2188
|
+
margin: var(--size-spacing-lg);
|
2189
|
+
}
|
2190
|
+
|
2191
|
+
&[data-margin="none"] {
|
2192
|
+
margin: 0;
|
2193
|
+
}
|
2194
|
+
}
|
2195
|
+
/* * */
|
2196
|
+
/* ROOT */
|
2197
|
+
|
2109
2198
|
.styles-module_root__Rhx1c {
|
2110
2199
|
display: flex;
|
2111
2200
|
flex-direction: column;
|
package/dist/styles.css
CHANGED
@@ -993,6 +993,56 @@ figure {
|
|
993
993
|
background-color: var(--color-system-background-200) !important;
|
994
994
|
}
|
995
995
|
|
996
|
+
/* * */
|
997
|
+
/* PILL */
|
998
|
+
|
999
|
+
.styles-module_pill__yivEf {
|
1000
|
+
display: flex;
|
1001
|
+
gap: var(--size-spacing-xs);
|
1002
|
+
align-items: center;
|
1003
|
+
height: fit-content;
|
1004
|
+
font-size: var(--font-size-sm);
|
1005
|
+
font-weight: var(--font-weight-medium);
|
1006
|
+
color: var(--color-system-text-100);
|
1007
|
+
cursor: auto;
|
1008
|
+
background-color: var(--color-system-background-200);
|
1009
|
+
border-radius: var(--border-radius-xs);
|
1010
|
+
box-shadow: 1px 2px 3px 1px rgb(0 0 0 / 15%);
|
1011
|
+
|
1012
|
+
& * {
|
1013
|
+
user-select: none;
|
1014
|
+
}
|
1015
|
+
|
1016
|
+
&[data-size='lg'] {
|
1017
|
+
padding: var(--size-spacing-sm);
|
1018
|
+
font-size: var(--font-size-lg);
|
1019
|
+
}
|
1020
|
+
|
1021
|
+
&[data-size='md'] {
|
1022
|
+
padding: var(--size-spacing-xs);
|
1023
|
+
font-size: var(--font-size-md);
|
1024
|
+
}
|
1025
|
+
|
1026
|
+
&[data-size='sm'] {
|
1027
|
+
padding: var(--size-spacing-xs);
|
1028
|
+
font-size: var(--font-size-sm);
|
1029
|
+
}
|
1030
|
+
|
1031
|
+
&[data-size='xl'] {
|
1032
|
+
padding: var(--size-spacing-md);
|
1033
|
+
font-size: var(--font-size-xl);
|
1034
|
+
}
|
1035
|
+
}
|
1036
|
+
|
1037
|
+
/* * */
|
1038
|
+
/* LABEL */
|
1039
|
+
|
1040
|
+
.styles-module_label__2CZDF {
|
1041
|
+
display: flex;
|
1042
|
+
gap: var(--size-spacing-xs);
|
1043
|
+
align-items: center;
|
1044
|
+
color: var(--color-system-text-100);
|
1045
|
+
}
|
996
1046
|
/* * */
|
997
1047
|
/* CONTAINER */
|
998
1048
|
|
@@ -2165,6 +2215,45 @@ figure {
|
|
2165
2215
|
/* * */
|
2166
2216
|
/* ROOT */
|
2167
2217
|
|
2218
|
+
.styles-module_root__xDysI {
|
2219
|
+
display: flex;
|
2220
|
+
align-items: center;
|
2221
|
+
justify-content: center;
|
2222
|
+
border-bottom: 1px solid var(--color-system-border-200);
|
2223
|
+
|
2224
|
+
|
2225
|
+
/* * */
|
2226
|
+
/* PROPS / SEPARATOR TYPE */
|
2227
|
+
&[data-separator-type="dashed"] {
|
2228
|
+
border-bottom: 1px dashed var(--color-system-border-100);
|
2229
|
+
}
|
2230
|
+
|
2231
|
+
&[data-separator-type="solid"] {
|
2232
|
+
border-bottom: 1px solid var(--color-system-border-100);
|
2233
|
+
}
|
2234
|
+
|
2235
|
+
/* * */
|
2236
|
+
/* PROPS / MARGIN */
|
2237
|
+
|
2238
|
+
&[data-margin="sm"] {
|
2239
|
+
margin: var(--size-spacing-sm);
|
2240
|
+
}
|
2241
|
+
|
2242
|
+
&[data-margin="md"] {
|
2243
|
+
margin: var(--size-spacing-md);
|
2244
|
+
}
|
2245
|
+
|
2246
|
+
&[data-margin="lg"] {
|
2247
|
+
margin: var(--size-spacing-lg);
|
2248
|
+
}
|
2249
|
+
|
2250
|
+
&[data-margin="none"] {
|
2251
|
+
margin: 0;
|
2252
|
+
}
|
2253
|
+
}
|
2254
|
+
/* * */
|
2255
|
+
/* ROOT */
|
2256
|
+
|
2168
2257
|
.styles-module_root__Rhx1c {
|
2169
2258
|
display: flex;
|
2170
2259
|
flex-direction: column;
|
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": "20250828.
|
4
|
+
"version": "20250828.1453.35",
|
5
5
|
"author": "João de Vasconcelos & Jusi Monteiro",
|
6
6
|
"license": "AGPL-3.0-or-later",
|
7
7
|
"publishConfig": {
|