@tmlmobilidade/ui 20250131.2255.24 → 20250205.56.0
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/cjs/index.js +5 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/src/components/common/Button/index.d.ts +2 -1
- package/dist/esm/index.js +5 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/src/components/common/Button/index.d.ts +2 -1
- package/dist/index.d.ts +2 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -779,7 +779,7 @@ function getValueAtPath(obj, path) {
|
|
|
779
779
|
}
|
|
780
780
|
|
|
781
781
|
/* * */
|
|
782
|
-
function Component$3({ className, icon, children, onClick, target, type = 'button', variant = 'primary', disabled, textTransform = 'none', ...props }) {
|
|
782
|
+
function Component$3({ className, icon, href, children, onClick, target, type = 'button', variant = 'primary', disabled, textTransform = 'none', ...props }) {
|
|
783
783
|
//
|
|
784
784
|
const btnClass = cn(className, styles$l.button, !disabled && {
|
|
785
785
|
[styles$l.danger]: variant === 'danger',
|
|
@@ -791,7 +791,7 @@ function Component$3({ className, icon, children, onClick, target, type = 'butto
|
|
|
791
791
|
[styles$l.warning]: variant === 'warning',
|
|
792
792
|
[styles$l.active]: variant === 'active',
|
|
793
793
|
}, disabled && styles$l.disabled);
|
|
794
|
-
return (jsxRuntimeExports.jsx(core.Button, { className: btnClass, leftSection: icon && icon, onClick: onClick, type: type, variant: variant, disabled: disabled, classNames: { label: styles$l.buttonLabel, ...props.classNames }, ...props, style: { textTransform: textTransform }, children: children }));
|
|
794
|
+
return (jsxRuntimeExports.jsx(core.Button, { className: btnClass, leftSection: icon && icon, onClick: onClick, type: type, component: href ? 'a' : 'button', href: href, variant: variant, disabled: disabled, classNames: { label: styles$l.buttonLabel, ...props.classNames }, ...props, style: { textTransform: textTransform }, children: children }));
|
|
795
795
|
//
|
|
796
796
|
}
|
|
797
797
|
|
|
@@ -858,7 +858,7 @@ function Component({ classNames, ...props }) {
|
|
|
858
858
|
return jsxRuntimeExports.jsx(core.Textarea, { classNames: classNames, ...props });
|
|
859
859
|
}
|
|
860
860
|
|
|
861
|
-
var styles$i = {"wrapper":"styles-module_wrapper__7zsRX","input":"styles-module_input__kZP4l","placeholder":"styles-module_placeholder__uazW4","pillInputWrapper":"styles-module_pillInputWrapper__rtJzo","
|
|
861
|
+
var styles$i = {"wrapper":"styles-module_wrapper__7zsRX","input":"styles-module_input__kZP4l","placeholder":"styles-module_placeholder__uazW4","pillInputWrapper":"styles-module_pillInputWrapper__rtJzo","icon":"styles-module_icon__jXQ8R","pillClearButton":"styles-module_pillClearButton__RYrwJ","pill":"styles-module_pill__eWbVa","label":"styles-module_label__tB0Ce","description":"styles-module_description__KHjxV","error":"styles-module_error__fOsRf","dropdownWrapper":"styles-module_dropdownWrapper__guQYa"};
|
|
862
862
|
|
|
863
863
|
function parseComboboxItem(item) {
|
|
864
864
|
if (typeof item === 'string') {
|
|
@@ -1517,7 +1517,7 @@ function DataTableRow({ columns, record, onRowClick, onRowDoubleClick, onRowCont
|
|
|
1517
1517
|
: String(getValueAtPath(record, column.accessor)) }, colIndex))) }));
|
|
1518
1518
|
}
|
|
1519
1519
|
|
|
1520
|
-
var styles$1 = {"root":"styles-module_root__2WSxN","title":"styles-module_title__qCJZG"
|
|
1520
|
+
var styles$1 = {"root":"styles-module_root__2WSxN","title":"styles-module_title__qCJZG"};
|
|
1521
1521
|
|
|
1522
1522
|
function DataTableTitle({ search, title }) {
|
|
1523
1523
|
//
|
|
@@ -1535,7 +1535,7 @@ function DataTableTitle({ search, title }) {
|
|
|
1535
1535
|
return (jsxRuntimeExports.jsxs("div", { className: styles$1.root, children: [jsxRuntimeExports.jsx("div", { className: styles$1.title, children: title && title }), search && !search.hidden && (jsxRuntimeExports.jsx("div", { className: styles$1.filters, children: jsxRuntimeExports.jsx(Component$2, { onChange: handleSearchChange, placeholder: search.placeholder, value: searchQuery }) }))] }));
|
|
1536
1536
|
}
|
|
1537
1537
|
|
|
1538
|
-
var styles = {"root":"styles-module_root__AStX6","tableWrapper":"styles-module_tableWrapper__ByR84","table":"styles-module_table__IKm6A"
|
|
1538
|
+
var styles = {"root":"styles-module_root__AStX6","tableWrapper":"styles-module_tableWrapper__ByR84","table":"styles-module_table__IKm6A"};
|
|
1539
1539
|
|
|
1540
1540
|
function DataTable({ records, ...props }) {
|
|
1541
1541
|
return (jsxRuntimeExports.jsx(DataTableProvider, { initialRecords: records, searchAccessors: props.search?.accessors ?? [], children: jsxRuntimeExports.jsx(DataTableContent, { ...props }) }));
|