@tmlmobilidade/ui 20250411.1732.38 → 20250421.1224.31

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
@@ -3,7 +3,7 @@ import * as React$1 from 'react';
3
3
  import React__default, { PropsWithChildren, ReactNode } from 'react';
4
4
  import { BadgeProps as BadgeProps$1, CheckboxProps as CheckboxProps$1, ComboboxProps, ButtonProps as ButtonProps$1, MenuProps as MenuProps$1, MenuTargetProps as MenuTargetProps$1, MenuDropdownProps as MenuDropdownProps$1, MenuItemProps as MenuItemProps$1, MenuDividerProps as MenuDividerProps$1, MenuLabelProps as MenuLabelProps$1, SegmentedControlProps as SegmentedControlProps$1, TextareaProps, TextInputProps as TextInputProps$1, TooltipProps as TooltipProps$1, PasswordInputProps, SliderProps as SliderProps$1, SwitchProps as SwitchProps$1, TextProps as TextProps$1, AccordionStylesNames } from '@mantine/core';
5
5
  export { RenderTreeNodePayload, Tree, TreeNodeData, getTreeExpandedState, useTree } from '@mantine/core';
6
- import { DateTimePickerProps as DateTimePickerProps$1 } from '@mantine/dates';
6
+ import { DatePickerInputProps, DateTimePickerProps as DateTimePickerProps$1 } from '@mantine/dates';
7
7
  import { Permission, User } from '@tmlmobilidade/types';
8
8
  import { MapRef, MapLayerMouseEvent, ViewStateChangeEvent } from 'react-map-gl/maplibre';
9
9
  import { NotificationData } from '@mantine/notifications';
@@ -70,6 +70,19 @@ interface ComponentWrapperProps {
70
70
  }
71
71
  declare function ComponentWrapper({ children, className }: ComponentWrapperProps): react_jsx_runtime.JSX.Element;
72
72
 
73
+ interface DatePickerProps extends Omit<DatePickerInputProps, 'type'> {
74
+ /**
75
+ * Full width of the input.
76
+ */
77
+ fullWidth?: boolean;
78
+ /**
79
+ * Left section of the input.
80
+ * @default <IconCalendar size={20} />
81
+ */
82
+ leftSection?: React.ReactNode;
83
+ }
84
+ declare function DatePicker({ leftSection, ...props }: DatePickerProps): react_jsx_runtime.JSX.Element;
85
+
73
86
  interface DateTimePickerProps extends DateTimePickerProps$1 {
74
87
  /**
75
88
  * Full width of the input.
@@ -734,5 +747,5 @@ declare const getBaseGeoJsonFeatureLineString: () => GeoJSON.Feature<GeoJSON.Lin
734
747
  */
735
748
  declare const getBaseGeoJsonFeatureCollection: () => GeoJSON.FeatureCollection<GeoJSON.LineString | GeoJSON.Point, GeoJSON.GeoJsonProperties>;
736
749
 
737
- export { AVAILABLE_THEMES, ActionIcon, AppProvider, AppWrapper, Badge, Button, CMIcon, CMLogo, Checkbox, Collapsible, ComboboxComponent as Combobox, ComponentWrapper, DataTable, DateTimePicker, DeleteActionIcon, Description, Divider, FileButton, Grid, Label, Loader, LoadingOverlay, 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 };
750
+ export { AVAILABLE_THEMES, ActionIcon, AppProvider, AppWrapper, Badge, Button, CMIcon, CMLogo, Checkbox, Collapsible, ComboboxComponent as Combobox, ComponentWrapper, DataTable, DatePicker, DateTimePicker, DeleteActionIcon, Description, Divider, FileButton, Grid, Label, Loader, LoadingOverlay, 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 };
738
751
  export type { ButtonProps, DataItem, DataTableColumn, DataTableProps, DataTableSearchProps, LabelProps, LoaderProps, MapStyle, SidebarItemProps, TagProps, TextProps, ThemeType, ToastPromiseParams, ToastProps };
package/dist/index.js CHANGED
@@ -4,6 +4,7 @@ export { default as Badge } from './src/components/common/Badge/index.js';
4
4
  export { default as Checkbox } from './src/components/common/Checkbox/index.js';
5
5
  export { default as Combobox } from './src/components/common/Combobox/index.js';
6
6
  export { default as ComponentWrapper } from './src/components/common/ComponentWrapper/index.js';
7
+ export { default as DatePicker } from './src/components/common/DatePicker/index.js';
7
8
  export { default as DateTimePicker } from './src/components/common/DateTimePicker/index.js';
8
9
  export { default as DeleteActionIcon } from './src/components/common/DeleteActionIcon/index.js';
9
10
  export { default as Description } from './src/components/common/Description/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,12 @@
1
+ 'use client';
2
+ import { j as jsxRuntimeExports } from '../../../../_virtual/jsx-runtime.js';
3
+ import { DatePickerInput } from '@mantine/dates';
4
+ import { IconCalendar } from '@tabler/icons-react';
5
+ import styles from './styles.module.css.js';
6
+
7
+ function DatePicker({ leftSection = jsxRuntimeExports.jsx(IconCalendar, { size: 20 }), ...props }) {
8
+ return (jsxRuntimeExports.jsx(DatePickerInput, { classNames: { ...styles, ...props.classNames }, leftSection: leftSection, style: { width: props.fullWidth ? '100%' : undefined }, type: "default", ...props }));
9
+ }
10
+
11
+ export { DatePicker as default };
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../src/components/common/DatePicker/index.tsx"],"sourcesContent":[null],"names":["_jsx","MantineDatePickerInput"],"mappings":";;;;;;AAwBc,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAU,UAAU,CAAC,CAAA,CAClC,WAAW,CAAGA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAA,CAAC,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAC,CAAI,CAAA,CAAA,CAAA,CAAA,CAAE,EAAE,GAAI,EACxC,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,EACS,CAAA,CAAA;IACjB,QACCA,sBAACC,eAAsB,CAAA,CAAA,CAAA,CACtB,UAAU,CAAE,CAAA,CAAA,CAAE,GAAG,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,GAAG,CAAK,CAAA,CAAA,CAAA,CAAA,CAAC,UAAU,CAAE,CAAA,CAAA,CAC9C,WAAW,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAW,EACxB,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,EAAE,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,KAAK,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,GAAG,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,SAAS,CAAE,CAAA,CAAA,CACtD,IAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,EACV,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,EACR,CAAA,CAAA;AAEJ;;"}
@@ -0,0 +1,4 @@
1
+ var styles = {"input":"styles-module_input__6Vb-T","wrapper":"styles-module_wrapper__nPKBy","variantWhite":"styles-module_variantWhite__qqkxa","section":"styles-module_section__EPtjl","sizeSm":"styles-module_sizeSm__L4t8C","label":"styles-module_label__nI50N","description":"styles-module_description__X7kWv"};
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":";;;;"}
@@ -9634,6 +9634,81 @@ breakpoint-mobile {
9634
9634
  /* * */
9635
9635
  /* INPUT */
9636
9636
 
9637
+ .styles-module_input__6Vb-T {
9638
+ height: auto;
9639
+ max-height: none;
9640
+ padding: 10px 15px;
9641
+ font-size: var(--font-size-sm);
9642
+ font-weight: var(--font-weight-medium);
9643
+ line-height: 1;
9644
+ background-color: var(--color-system-background-100);
9645
+ border: 2px solid var(--color-system-text-300);
9646
+ border-radius: var(--border-radius-sm);
9647
+ }
9648
+
9649
+ .styles-module_input__6Vb-T::placeholder {
9650
+ color: var(--color-system-text-300);
9651
+ }
9652
+
9653
+ .styles-module_wrapper__nPKBy[data-with-left-section="true"] .styles-module_input__6Vb-T {
9654
+ padding-left: calc(var(--size-spacing-sm) + 30px);
9655
+ }
9656
+
9657
+ .styles-module_wrapper__nPKBy[data-with-right-section="true"] .styles-module_input__6Vb-T {
9658
+ padding-right: calc(var(--size-spacing-sm) + 30px);
9659
+ }
9660
+
9661
+ .styles-module_input__6Vb-T.styles-module_variantWhite__qqkxa {
9662
+ color: var(--color-primary-black);
9663
+ background-color: var(--color-primary-white);
9664
+ border-color: #bebec8;
9665
+ }
9666
+
9667
+ /* * */
9668
+ /* SECTION */
9669
+
9670
+ .styles-module_section__EPtjl {
9671
+ display: flex;
9672
+ width: auto;
9673
+ padding: var(--size-spacing-sm);
9674
+ color: var(--color-system-text-300);
9675
+ }
9676
+
9677
+ .styles-module_section__EPtjl[data-position="left"] {
9678
+ pointer-events: none;
9679
+ }
9680
+
9681
+ .styles-module_section__EPtjl.styles-module_variantWhite__qqkxa {
9682
+ color: var(--color-system-text-300);
9683
+ }
9684
+
9685
+ .styles-module_sizeSm__L4t8C{
9686
+ font-size: 1px;
9687
+ line-height: var(font-line-height);
9688
+ }
9689
+
9690
+ /* * */
9691
+ /* LABEL */
9692
+
9693
+ .styles-module_label__nI50N {
9694
+ font-size: var(--font-size-sm);
9695
+ font-weight: var(--font-weight-medium);
9696
+ color: var(--color-system-text-100);
9697
+ }
9698
+
9699
+ /* * */
9700
+ /* DESCRIPTION */
9701
+
9702
+ .styles-module_description__X7kWv {
9703
+ margin-top: var(--size-spacing-xs);
9704
+ margin-bottom: var(--size-spacing-xs);
9705
+ font-size: var(--font-size-sm);
9706
+ font-weight: var(--font-weight-medium);
9707
+ color: var(--color-system-text-200);
9708
+ }
9709
+ /* * */
9710
+ /* INPUT */
9711
+
9637
9712
  .styles-module_input__7GH-0 {
9638
9713
  height: auto;
9639
9714
  max-height: none;
package/dist/styles.css CHANGED
@@ -9689,6 +9689,81 @@ breakpoint-mobile {
9689
9689
  /* * */
9690
9690
  /* INPUT */
9691
9691
 
9692
+ .styles-module_input__6Vb-T {
9693
+ height: auto;
9694
+ max-height: none;
9695
+ padding: 10px 15px;
9696
+ font-size: var(--font-size-sm);
9697
+ font-weight: var(--font-weight-medium);
9698
+ line-height: 1;
9699
+ background-color: var(--color-system-background-100);
9700
+ border: 2px solid var(--color-system-text-300);
9701
+ border-radius: var(--border-radius-sm);
9702
+ }
9703
+
9704
+ .styles-module_input__6Vb-T::placeholder {
9705
+ color: var(--color-system-text-300);
9706
+ }
9707
+
9708
+ .styles-module_wrapper__nPKBy[data-with-left-section="true"] .styles-module_input__6Vb-T {
9709
+ padding-left: calc(var(--size-spacing-sm) + 30px);
9710
+ }
9711
+
9712
+ .styles-module_wrapper__nPKBy[data-with-right-section="true"] .styles-module_input__6Vb-T {
9713
+ padding-right: calc(var(--size-spacing-sm) + 30px);
9714
+ }
9715
+
9716
+ .styles-module_input__6Vb-T.styles-module_variantWhite__qqkxa {
9717
+ color: var(--color-primary-black);
9718
+ background-color: var(--color-primary-white);
9719
+ border-color: #bebec8;
9720
+ }
9721
+
9722
+ /* * */
9723
+ /* SECTION */
9724
+
9725
+ .styles-module_section__EPtjl {
9726
+ display: flex;
9727
+ width: auto;
9728
+ padding: var(--size-spacing-sm);
9729
+ color: var(--color-system-text-300);
9730
+ }
9731
+
9732
+ .styles-module_section__EPtjl[data-position="left"] {
9733
+ pointer-events: none;
9734
+ }
9735
+
9736
+ .styles-module_section__EPtjl.styles-module_variantWhite__qqkxa {
9737
+ color: var(--color-system-text-300);
9738
+ }
9739
+
9740
+ .styles-module_sizeSm__L4t8C{
9741
+ font-size: 1px;
9742
+ line-height: var(font-line-height);
9743
+ }
9744
+
9745
+ /* * */
9746
+ /* LABEL */
9747
+
9748
+ .styles-module_label__nI50N {
9749
+ font-size: var(--font-size-sm);
9750
+ font-weight: var(--font-weight-medium);
9751
+ color: var(--color-system-text-100);
9752
+ }
9753
+
9754
+ /* * */
9755
+ /* DESCRIPTION */
9756
+
9757
+ .styles-module_description__X7kWv {
9758
+ margin-top: var(--size-spacing-xs);
9759
+ margin-bottom: var(--size-spacing-xs);
9760
+ font-size: var(--font-size-sm);
9761
+ font-weight: var(--font-weight-medium);
9762
+ color: var(--color-system-text-200);
9763
+ }
9764
+ /* * */
9765
+ /* INPUT */
9766
+
9692
9767
  .styles-module_input__7GH-0 {
9693
9768
  height: auto;
9694
9769
  max-height: none;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/ui",
3
- "version": "20250411.1732.38",
3
+ "version": "20250421.1224.31",
4
4
  "author": "",
5
5
  "license": "ISC",
6
6
  "publishConfig": {
@@ -50,7 +50,7 @@
50
50
  "@tmlmobilidade/utils": "*",
51
51
  "clsx": "2.1.1",
52
52
  "luxon": "3.6.1",
53
- "maplibre-gl": "5.3.0",
53
+ "maplibre-gl": "5.3.1",
54
54
  "react-map-gl": "8.0.3",
55
55
  "react-viewport-list": "7.1.2"
56
56
  },
@@ -62,14 +62,14 @@
62
62
  "@turf/turf": "7.2.0",
63
63
  "@types/geojson": "7946.0.16",
64
64
  "@types/luxon": "3.6.2",
65
- "@types/node": "22.14.0",
66
- "@types/react": "19.1.1",
65
+ "@types/node": "22.14.1",
66
+ "@types/react": "19.1.2",
67
67
  "@types/react-dom": "19.1.2",
68
68
  "nodemon": "3.1.9",
69
69
  "postcss": "8.5.3",
70
70
  "react": "19.1.0",
71
71
  "react-dom": "19.1.0",
72
- "rollup": "4.39.0",
72
+ "rollup": "4.40.0",
73
73
  "rollup-plugin-dts": "6.2.1",
74
74
  "rollup-plugin-postcss": "4.0.2",
75
75
  "rollup-plugin-tsconfig-paths": "1.5.2",