@useblu/ocean-react 1.73.0 → 1.74.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/CHANGELOG.md +6 -0
- package/Chips/Chips.d.ts +2 -0
- package/Chips/Chips.d.ts.map +1 -1
- package/index.es.js +7 -3
- package/index.es.js.map +1 -1
- package/index.js +7 -3
- package/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [1.74.0](https://github.com/ocean-ds/ocean-web/compare/v1.73.0...v1.74.0) (2025-01-17)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- include events for buttons when multichoice ([#1127](https://github.com/ocean-ds/ocean-web/issues/1127)) ([7eb5aed](https://github.com/ocean-ds/ocean-web/commit/7eb5aed6299ce8c13166c51e40a361b66cda84c6))
|
|
11
|
+
|
|
6
12
|
# [1.73.0](https://github.com/ocean-ds/ocean-web/compare/v1.72.0...v1.73.0) (2024-12-26)
|
|
7
13
|
|
|
8
14
|
### Features
|
package/Chips/Chips.d.ts
CHANGED
|
@@ -18,6 +18,8 @@ interface IChips {
|
|
|
18
18
|
onClick?: () => void;
|
|
19
19
|
onChange?: (value: ChipValue[] | ChipValue) => void;
|
|
20
20
|
onClose?: () => void;
|
|
21
|
+
onConfirm?: (value: ChipValue[] | ChipValue) => void;
|
|
22
|
+
onClean?: () => void;
|
|
21
23
|
}
|
|
22
24
|
declare const Chips: React.FunctionComponent<IChips>;
|
|
23
25
|
export default Chips;
|
package/Chips/Chips.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chips.d.ts","sourceRoot":"","sources":["../../src/Chips/Chips.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAA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,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,CAAC;IACxC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,GAAG,SAAS,KAAK,IAAI,CAAC;IACpD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,GAAG,SAAS,KAAK,IAAI,CAAC;IACrD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,QAAA,MAAM,KAAK,EAAE,KAAK,CAAC,iBAAiB,CAAC,MAAM,CAgK1C,CAAC;AAIF,eAAe,KAAK,CAAC"}
|
package/index.es.js
CHANGED
|
@@ -48218,7 +48218,7 @@ var Options = function (_a) {
|
|
|
48218
48218
|
};
|
|
48219
48219
|
|
|
48220
48220
|
var Chips = function (_a) {
|
|
48221
|
-
var label = _a.label, icon = _a.icon, disabled = _a.disabled, defaultValue = _a.defaultValue, _b = _a.options, options = _b === void 0 ? [] : _b, _c = _a.multiChoice, multiChoice = _c === void 0 ? false : _c, _d = _a.clearLabel, clearLabel = _d === void 0 ? 'Limpar' : _d, _e = _a.filterLabel, filterLabel = _e === void 0 ? 'Filtrar' : _e, initialCounter = _a.initialCounter, actived = _a.actived, selectedValue = _a.selectedValue, onClick = _a.onClick, onChange = _a.onChange, onClose = _a.onClose;
|
|
48221
|
+
var label = _a.label, icon = _a.icon, disabled = _a.disabled, defaultValue = _a.defaultValue, _b = _a.options, options = _b === void 0 ? [] : _b, _c = _a.multiChoice, multiChoice = _c === void 0 ? false : _c, _d = _a.clearLabel, clearLabel = _d === void 0 ? 'Limpar' : _d, _e = _a.filterLabel, filterLabel = _e === void 0 ? 'Filtrar' : _e, initialCounter = _a.initialCounter, actived = _a.actived, selectedValue = _a.selectedValue, onClick = _a.onClick, onChange = _a.onChange, onClose = _a.onClose, onConfirm = _a.onConfirm, onClean = _a.onClean;
|
|
48222
48222
|
var wrapperRef = useRef(null);
|
|
48223
48223
|
var _f = e.useState(0), counter = _f[0], setCounter = _f[1];
|
|
48224
48224
|
var _g = e.useState(false), selectionIsOpen = _g[0], setSelectionIsOpen = _g[1];
|
|
@@ -48289,13 +48289,17 @@ var Chips = function (_a) {
|
|
|
48289
48289
|
setSelectedOptions([]);
|
|
48290
48290
|
setCounter(0);
|
|
48291
48291
|
setSelectionIsOpen(false);
|
|
48292
|
-
if (onClose)
|
|
48293
|
-
onClose();
|
|
48294
48292
|
if (onChange)
|
|
48295
48293
|
onChange([]);
|
|
48294
|
+
if (onClean)
|
|
48295
|
+
onClean();
|
|
48296
|
+
if (onClose)
|
|
48297
|
+
onClose();
|
|
48296
48298
|
};
|
|
48297
48299
|
var filterOptions = function () {
|
|
48298
48300
|
setSelectionIsOpen(false);
|
|
48301
|
+
if (onConfirm)
|
|
48302
|
+
onConfirm(selectedOptions);
|
|
48299
48303
|
if (onClose)
|
|
48300
48304
|
onClose();
|
|
48301
48305
|
};
|