@pagamio/frontend-commons-lib 0.8.322 → 0.8.323

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.
@@ -1,5 +1,10 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import React from 'react';
3
3
  import { MultiSelect } from '../../../../components';
4
- const MultiSelectInputComponent = React.forwardRef(({ field, error, options, ...props }, ref) => (_jsxs(_Fragment, { children: [_jsx("label", { htmlFor: field.name, className: "block text-sm font-medium text-foreground", children: field.label }), _jsx(MultiSelect, { className: "w-full border-input pb-5 disabled:text-muted-foreground disabled:bg-muted disabled:cursor-not-allowed", options: (options ?? []), value: props.value, defaultValue: props.value, disabled: field.disabled, onChange: props.onChange, tagPosition: "bottom" }), error && _jsx("p", { className: "mt-2 text-sm text-red-500", children: error.message })] })));
4
+ const MultiSelectInputComponent = React.forwardRef(({ field, error, options, ...props }, ref) => (_jsxs(_Fragment, { children: [_jsx("label", { htmlFor: field.name, className: "block text-sm font-medium text-foreground", children: field.label }), _jsx(MultiSelect, { className: "w-full border-input disabled:text-muted-foreground disabled:bg-muted disabled:cursor-not-allowed", options: (options ?? []), value: props.value, defaultValue: props.value, disabled: field.disabled, onChange: props.onChange,
5
+ // Render selected tags inside the input itself rather than as a
6
+ // separate row below — matches how every other select-style input
7
+ // in the app surfaces selections, and stops the field from looking
8
+ // empty when items are already chosen.
9
+ tagPosition: "inside" }), error && _jsx("p", { className: "mt-2 text-sm text-red-500", children: error.message })] })));
5
10
  export default MultiSelectInputComponent;
package/lib/styles.css CHANGED
@@ -2942,9 +2942,6 @@ video {
2942
2942
  .pb-4 {
2943
2943
  padding-bottom: 1rem;
2944
2944
  }
2945
- .pb-5 {
2946
- padding-bottom: 1.25rem;
2947
- }
2948
2945
  .pl-10 {
2949
2946
  padding-left: 2.5rem;
2950
2947
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pagamio/frontend-commons-lib",
3
3
  "description": "Pagamio library for Frontend reusable components like the form engine and table container",
4
- "version": "0.8.322",
4
+ "version": "0.8.323",
5
5
  "publishConfig": {
6
6
  "access": "public",
7
7
  "provenance": false