@availity/mui-chip 0.2.13 → 0.2.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/CHANGELOG.md +7 -0
- package/dist/index.d.mts +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +24 -2
- package/dist/index.mjs +22 -1
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/lib/Chip.stories.tsx +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [0.2.14](https://github.com/Availity/element/compare/@availity/mui-chip@0.2.13...@availity/mui-chip@0.2.14) (2024-05-17)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **mui-chip:** export statuschip ([7c1ee4c](https://github.com/Availity/element/commit/7c1ee4cc58577f029da336d039236e94c6d2f447))
|
|
11
|
+
|
|
5
12
|
## [0.2.13](https://github.com/Availity/element/compare/@availity/mui-chip@0.2.12...@availity/mui-chip@0.2.13) (2024-04-19)
|
|
6
13
|
|
|
7
14
|
### Dependency Updates
|
package/dist/index.d.mts
CHANGED
|
@@ -3,4 +3,11 @@ import { ChipProps as ChipProps$1 } from '@mui/material/Chip';
|
|
|
3
3
|
type ChipProps = Omit<ChipProps$1, 'children' | 'color' | 'variant' | 'skipFocusWhenDisabled' | 'disabled' | 'size' | 'icon' | 'clickable' | 'color'>;
|
|
4
4
|
declare const Chip: (props: ChipProps) => JSX.Element;
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
type StatusChipProps = {
|
|
7
|
+
/** The color of the component.
|
|
8
|
+
* @default default */
|
|
9
|
+
color?: 'default' | 'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning';
|
|
10
|
+
} & Omit<ChipProps$1, 'avatar' | 'children' | 'color' | 'variant' | 'skipFocusWhenDisabled' | 'disabled' | 'size' | 'icon' | 'clickable' | 'deleteIcon' | 'onDelete'>;
|
|
11
|
+
declare const StatusChip: ({ color, ...rest }: StatusChipProps) => JSX.Element;
|
|
12
|
+
|
|
13
|
+
export { Chip, type ChipProps, StatusChip, type StatusChipProps };
|
package/dist/index.d.ts
CHANGED
|
@@ -3,4 +3,11 @@ import { ChipProps as ChipProps$1 } from '@mui/material/Chip';
|
|
|
3
3
|
type ChipProps = Omit<ChipProps$1, 'children' | 'color' | 'variant' | 'skipFocusWhenDisabled' | 'disabled' | 'size' | 'icon' | 'clickable' | 'color'>;
|
|
4
4
|
declare const Chip: (props: ChipProps) => JSX.Element;
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
type StatusChipProps = {
|
|
7
|
+
/** The color of the component.
|
|
8
|
+
* @default default */
|
|
9
|
+
color?: 'default' | 'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning';
|
|
10
|
+
} & Omit<ChipProps$1, 'avatar' | 'children' | 'color' | 'variant' | 'skipFocusWhenDisabled' | 'disabled' | 'size' | 'icon' | 'clickable' | 'deleteIcon' | 'onDelete'>;
|
|
11
|
+
declare const StatusChip: ({ color, ...rest }: StatusChipProps) => JSX.Element;
|
|
12
|
+
|
|
13
|
+
export { Chip, type ChipProps, StatusChip, type StatusChipProps };
|
package/dist/index.js
CHANGED
|
@@ -22,6 +22,18 @@ var __spreadValues = (a, b) => {
|
|
|
22
22
|
return a;
|
|
23
23
|
};
|
|
24
24
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
25
|
+
var __objRest = (source, exclude) => {
|
|
26
|
+
var target = {};
|
|
27
|
+
for (var prop in source)
|
|
28
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
29
|
+
target[prop] = source[prop];
|
|
30
|
+
if (source != null && __getOwnPropSymbols)
|
|
31
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
32
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
33
|
+
target[prop] = source[prop];
|
|
34
|
+
}
|
|
35
|
+
return target;
|
|
36
|
+
};
|
|
25
37
|
var __export = (target, all) => {
|
|
26
38
|
for (var name in all)
|
|
27
39
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -47,7 +59,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
47
59
|
// src/index.ts
|
|
48
60
|
var src_exports = {};
|
|
49
61
|
__export(src_exports, {
|
|
50
|
-
Chip: () => Chip
|
|
62
|
+
Chip: () => Chip,
|
|
63
|
+
StatusChip: () => StatusChip
|
|
51
64
|
});
|
|
52
65
|
module.exports = __toCommonJS(src_exports);
|
|
53
66
|
|
|
@@ -57,7 +70,16 @@ var import_jsx_runtime = require("react/jsx-runtime");
|
|
|
57
70
|
var Chip = (props) => {
|
|
58
71
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Chip.default, __spreadProps(__spreadValues({}, props), { color: "default", size: "medium" }));
|
|
59
72
|
};
|
|
73
|
+
|
|
74
|
+
// src/lib/StatusChip.tsx
|
|
75
|
+
var import_Chip2 = __toESM(require("@mui/material/Chip"));
|
|
76
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
77
|
+
var StatusChip = (_a) => {
|
|
78
|
+
var _b = _a, { color = "default" } = _b, rest = __objRest(_b, ["color"]);
|
|
79
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_Chip2.default, __spreadProps(__spreadValues({ color }, rest), { size: "small" }));
|
|
80
|
+
};
|
|
60
81
|
// Annotate the CommonJS export names for ESM import in node:
|
|
61
82
|
0 && (module.exports = {
|
|
62
|
-
Chip
|
|
83
|
+
Chip,
|
|
84
|
+
StatusChip
|
|
63
85
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -17,6 +17,18 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
var __objRest = (source, exclude) => {
|
|
21
|
+
var target = {};
|
|
22
|
+
for (var prop in source)
|
|
23
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
+
target[prop] = source[prop];
|
|
25
|
+
if (source != null && __getOwnPropSymbols)
|
|
26
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
+
target[prop] = source[prop];
|
|
29
|
+
}
|
|
30
|
+
return target;
|
|
31
|
+
};
|
|
20
32
|
|
|
21
33
|
// src/lib/Chip.tsx
|
|
22
34
|
import { default as MuiChip } from "@mui/material/Chip";
|
|
@@ -24,6 +36,15 @@ import { jsx } from "react/jsx-runtime";
|
|
|
24
36
|
var Chip = (props) => {
|
|
25
37
|
return /* @__PURE__ */ jsx(MuiChip, __spreadProps(__spreadValues({}, props), { color: "default", size: "medium" }));
|
|
26
38
|
};
|
|
39
|
+
|
|
40
|
+
// src/lib/StatusChip.tsx
|
|
41
|
+
import { default as MuiChip2 } from "@mui/material/Chip";
|
|
42
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
43
|
+
var StatusChip = (_a) => {
|
|
44
|
+
var _b = _a, { color = "default" } = _b, rest = __objRest(_b, ["color"]);
|
|
45
|
+
return /* @__PURE__ */ jsx2(MuiChip2, __spreadProps(__spreadValues({ color }, rest), { size: "small" }));
|
|
46
|
+
};
|
|
27
47
|
export {
|
|
28
|
-
Chip
|
|
48
|
+
Chip,
|
|
49
|
+
StatusChip
|
|
29
50
|
};
|
package/package.json
CHANGED
package/src/index.ts
CHANGED