@tmlmobilidade/ui 20250128.1145.52 → 20250128.1220.14
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 +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/src/components/common/Combobox/index.d.ts +1 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/src/components/common/Combobox/index.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/styles.css +2 -2
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -940,7 +940,7 @@ function Component({ multiple = false, searchable = false, autoComplete = false,
|
|
|
940
940
|
setSearch(value?.toString() || '');
|
|
941
941
|
}, rightSection: renderClearButton(), rightSectionPointerEvents: value === null ? 'none' : 'all', children: value || jsxRuntimeExports.jsx(core.Input.Placeholder, { className: styles$i.placeholder, children: "Pick value" }) })) }));
|
|
942
942
|
};
|
|
943
|
-
return (jsxRuntimeExports.jsxs("div", { className: cn(styles$i.wrapper, fullWidth
|
|
943
|
+
return (jsxRuntimeExports.jsxs("div", { className: cn(styles$i.wrapper, props.className), style: { width: fullWidth ? '100%' : undefined }, children: [label && jsxRuntimeExports.jsx("label", { className: styles$i.label, children: label }), description && jsxRuntimeExports.jsx("p", { className: styles$i.description, children: description }), jsxRuntimeExports.jsxs(core.Combobox, { store: combobox, onOptionSubmit: updateValue, withinPortal: false, ...props, children: [renderInput(), jsxRuntimeExports.jsx(core.Combobox.Dropdown, { className: styles$i.dropdownWrapper, children: jsxRuntimeExports.jsx(core.Combobox.Options, { children: renderOptions().length > 0 ? (renderOptions()) : (jsxRuntimeExports.jsx(core.Combobox.Empty, { children: "Nothing found..." })) }) })] })] }));
|
|
944
944
|
}
|
|
945
945
|
|
|
946
946
|
var styles$h = {"button":"styles-module_button__fQIgs","fontxs":"styles-module_fontxs__c61kh","fontsm":"styles-module_fontsm__zi0bq","fontbase":"styles-module_fontbase__Uzeoy","fontlg":"styles-module_fontlg__TfMwu","fontxl":"styles-module_fontxl__4IxFS","tag":"styles-module_tag__HOLQE","pill":"styles-module_pill__VAXc-","fullWidth":"styles-module_fullWidth__zWbR4","primary":"styles-module_primary__HWgQU","secondary":"styles-module_secondary__UOKnw","muted":"styles-module_muted__fA0Fl","disabled":"styles-module_disabled__EKMKd","danger":"styles-module_danger__gZERs","info":"styles-module_info__b-gyN","success":"styles-module_success__mRhfk","warning":"styles-module_warning__G977Z","active":"styles-module_active__5pkXl"};
|
|
@@ -1030,7 +1030,7 @@ function Text({ children, size = 'base', weight = 'medium', lineHeight = 'base',
|
|
|
1030
1030
|
var styles$a = {"input":"styles-module_input__7GH-0","wrapper":"styles-module_wrapper__676-W","variantWhite":"styles-module_variantWhite__XpqzN","section":"styles-module_section__2Dh7a","sizeSm":"styles-module_sizeSm__cmzmj","label":"styles-module_label__yQwLG","description":"styles-module_description__9hShz"};
|
|
1031
1031
|
|
|
1032
1032
|
function DateTimePicker({ leftSection = jsxRuntimeExports.jsx(iconsReact.IconCalendar, { size: 20 }), ...props }) {
|
|
1033
|
-
return jsxRuntimeExports.jsx(dates.DateTimePicker, {
|
|
1033
|
+
return jsxRuntimeExports.jsx(dates.DateTimePicker, { style: { width: props.fullWidth ? '100%' : undefined }, classNames: { ...styles$a, ...props.classNames }, ...props, leftSection: leftSection });
|
|
1034
1034
|
}
|
|
1035
1035
|
|
|
1036
1036
|
var TextInputOverride = {"input":"text-input-module_input__9C3ID","wrapper":"text-input-module_wrapper__jrJs0","variantWhite":"text-input-module_variantWhite__M5THF","section":"text-input-module_section__uYM8p","sizeSm":"text-input-module_sizeSm__9YY9u","label":"text-input-module_label__sLogM","description":"text-input-module_description__hPkID"};
|