@fixefy/fixefy-ui-components 0.0.24 → 0.0.25

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,26 +1,25 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "Tag", {
6
- enumerable: true,
7
- get: function() {
8
- return Tag;
9
- }
10
- });
11
- const _ = require("@fixefy/fixefy-ui-utils/");
12
- const _material = require("@mui/material");
13
- const _tagstyles = require("./styles/tag.styles");
14
- const Tag = ({ name, count = 0 })=>/*#__PURE__*/ React.createElement(_material.Box, {
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { titleCase } from '@fixefy/fixefy-ui-utils/';
3
+ import { Box } from '@mui/material';
4
+ import { StyledCount, StyledLabel, StyledTag } from './styles/tag.styles';
5
+ export const Tag = ({ name, count = 0 })=>/*#__PURE__*/ _jsxs(Box, {
15
6
  display: "flex",
16
7
  alignItems: "center",
17
8
  justifyContent: "center",
18
9
  sx: {
19
10
  maxWidth: 'fit-content',
20
11
  mb: 1
21
- }
22
- }, /*#__PURE__*/ React.createElement(_tagstyles.StyledTag, {
23
- name: name
24
- }, /*#__PURE__*/ React.createElement(_tagstyles.StyledLabel, null, (0, _.titleCase)(name))), /*#__PURE__*/ React.createElement(_tagstyles.StyledCount, {
25
- name: name
26
- }, count));
12
+ },
13
+ children: [
14
+ /*#__PURE__*/ _jsx(StyledTag, {
15
+ name: name,
16
+ children: /*#__PURE__*/ _jsx(StyledLabel, {
17
+ children: titleCase(name)
18
+ })
19
+ }),
20
+ /*#__PURE__*/ _jsx(StyledCount, {
21
+ name: name,
22
+ children: count
23
+ })
24
+ ]
25
+ });
@@ -1,11 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "Tag", {
6
- enumerable: true,
7
- get: function() {
8
- return _Tag.Tag;
9
- }
10
- });
11
- const _Tag = require("./Tag");
1
+ export { Tag } from "./Tag";
@@ -1,29 +1,9 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- function _export(target, all) {
6
- for(var name in all)Object.defineProperty(target, name, {
7
- enumerable: true,
8
- get: all[name]
9
- });
10
- }
11
- _export(exports, {
12
- StyledCount: function() {
13
- return StyledCount;
14
- },
15
- StyledLabel: function() {
16
- return StyledLabel;
17
- },
18
- StyledTag: function() {
19
- return StyledTag;
20
- }
21
- });
22
- const _object_spread = require("@swc/helpers/_/_object_spread");
23
- const _object_spread_props = require("@swc/helpers/_/_object_spread_props");
24
- const _styles = require("@mui/material/styles");
25
- const _material = require("@mui/material");
26
- const StyledTag = (0, _styles.styled)(_material.Box)(({ theme, name })=>({
1
+ import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
2
+ import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props";
3
+ import { styled } from '@mui/material/styles';
4
+ import { Box, Typography } from '@mui/material';
5
+ //
6
+ export const StyledTag = styled(Box)(({ theme, name })=>({
27
7
  background: name === 'in_dispute' ? '#56CCF2' : name === '' ? '#BB6BD9' : theme.palette.reconcilation[name].background,
28
8
  borderRadius: 8,
29
9
  padding: '2px 8px',
@@ -32,11 +12,11 @@ const StyledTag = (0, _styles.styled)(_material.Box)(({ theme, name })=>({
32
12
  alignItems: 'center',
33
13
  width: 'fit-content'
34
14
  }));
35
- const StyledLabel = (0, _styles.styled)(_material.Typography)(({ theme })=>_object_spread_props._(_object_spread._({}, theme.typography.body1), {
15
+ export const StyledLabel = styled(Typography)(({ theme })=>_object_spread_props(_object_spread({}, theme.typography.body1), {
36
16
  lineHeight: '20px',
37
17
  color: theme.palette.common.white
38
18
  }));
39
- const StyledCount = (0, _styles.styled)(_material.Typography)(({ theme, name })=>_object_spread_props._(_object_spread._({}, theme.typography.subtitle2), {
19
+ export const StyledCount = styled(Typography)(({ theme, name })=>_object_spread_props(_object_spread({}, theme.typography.subtitle2), {
40
20
  lineHeight: '16px',
41
21
  fontWeight: 700,
42
22
  color: name === 'in_dispute' ? '#56CCF2' : name === '' ? '#BB6BD9' : theme.palette.reconcilation[name].background,
@@ -1,4 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
1
+ export { };
package/dist-cjs/index.js CHANGED
@@ -1,11 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "Tag", {
6
- enumerable: true,
7
- get: function() {
8
- return _.Tag;
9
- }
10
- });
11
- const _ = require("./Tag/");
1
+ export { Tag } from "./Tag/";
package/package.json CHANGED
@@ -66,5 +66,5 @@
66
66
  }
67
67
  },
68
68
  "types": "./dist-types/index.d.ts",
69
- "version": "0.0.24"
69
+ "version": "0.0.25"
70
70
  }