@kashifd/jwero-components 0.5.71 → 0.5.74
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/README.md +6 -26
- package/dist/index.es.js +22 -14
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,30 +1,10 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @kashifd/jwero-components
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A component library designed to streamline UI development for platform applications. It includes customizable components that are easy to use and integrate into React projects.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## Installation
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
|
|
7
|
+
To install the library, run the following command:
|
|
9
8
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
|
|
13
|
-
|
|
14
|
-
- Configure the top-level `parserOptions` property like this:
|
|
15
|
-
|
|
16
|
-
```js
|
|
17
|
-
export default {
|
|
18
|
-
// other rules...
|
|
19
|
-
parserOptions: {
|
|
20
|
-
ecmaVersion: 'latest',
|
|
21
|
-
sourceType: 'module',
|
|
22
|
-
project: ['./tsconfig.json', './tsconfig.node.json'],
|
|
23
|
-
tsconfigRootDir: __dirname,
|
|
24
|
-
},
|
|
25
|
-
}
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
- Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked`
|
|
29
|
-
- Optionally add `plugin:@typescript-eslint/stylistic-type-checked`
|
|
30
|
-
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list
|
|
9
|
+
```bash
|
|
10
|
+
npm install @kashifd/jwero-components
|
package/dist/index.es.js
CHANGED
|
@@ -48615,11 +48615,12 @@ const nW = ({
|
|
|
48615
48615
|
imageSx: d,
|
|
48616
48616
|
textBoxSx: g,
|
|
48617
48617
|
searchQuery: m,
|
|
48618
|
-
buttonAdditionalProps: b
|
|
48618
|
+
buttonAdditionalProps: b,
|
|
48619
|
+
showButton: w = !0
|
|
48619
48620
|
}) => {
|
|
48620
|
-
const
|
|
48621
|
-
let
|
|
48622
|
-
return e === "search" && (
|
|
48621
|
+
const T = Lr();
|
|
48622
|
+
let D = t, P = n, E = a;
|
|
48623
|
+
return e === "search" && (D = t || eV, P = n || "No results found", E = a || `We could not find any results for ${m ? `"${m}"` : "your searched text"}`), e === "data" && (D = t || Z8, P = n || "No data found", E = a || "There is no data present, please add data."), /* @__PURE__ */ k.jsxs(
|
|
48623
48624
|
nt,
|
|
48624
48625
|
{
|
|
48625
48626
|
alignItems: "center",
|
|
@@ -48630,11 +48631,11 @@ const nW = ({
|
|
|
48630
48631
|
Zv,
|
|
48631
48632
|
{
|
|
48632
48633
|
component: "img",
|
|
48633
|
-
src:
|
|
48634
|
+
src: D,
|
|
48634
48635
|
alt: "comment-img",
|
|
48635
48636
|
loading: "lazy",
|
|
48636
|
-
onError: (
|
|
48637
|
-
|
|
48637
|
+
onError: (I) => {
|
|
48638
|
+
I.target.src = J8;
|
|
48638
48639
|
},
|
|
48639
48640
|
sx: {
|
|
48640
48641
|
height: "8.25rem",
|
|
@@ -48656,15 +48657,15 @@ const nW = ({
|
|
|
48656
48657
|
...g
|
|
48657
48658
|
},
|
|
48658
48659
|
children: [
|
|
48659
|
-
/* @__PURE__ */ k.jsx(Ct, { variant: "xxlSemibold", children:
|
|
48660
|
+
/* @__PURE__ */ k.jsx(Ct, { variant: "xxlSemibold", children: P }),
|
|
48660
48661
|
/* @__PURE__ */ k.jsx(
|
|
48661
48662
|
Ct,
|
|
48662
48663
|
{
|
|
48663
48664
|
variant: "xlRegular",
|
|
48664
48665
|
sx: {
|
|
48665
|
-
color:
|
|
48666
|
+
color: T.colors.text_tertiary
|
|
48666
48667
|
},
|
|
48667
|
-
children:
|
|
48668
|
+
children: E
|
|
48668
48669
|
}
|
|
48669
48670
|
)
|
|
48670
48671
|
]
|
|
@@ -48676,10 +48677,17 @@ const nW = ({
|
|
|
48676
48677
|
variant: s == null ? void 0 : s.variant,
|
|
48677
48678
|
title: s == null ? void 0 : s.title,
|
|
48678
48679
|
onClick: s == null ? void 0 : s.onClick,
|
|
48679
|
-
iconProps: {
|
|
48680
|
-
position: "
|
|
48681
|
-
icon: /* @__PURE__ */ k.jsx(
|
|
48682
|
-
|
|
48680
|
+
iconProps: w ? {
|
|
48681
|
+
position: "start",
|
|
48682
|
+
icon: /* @__PURE__ */ k.jsx(
|
|
48683
|
+
c0,
|
|
48684
|
+
{
|
|
48685
|
+
sx: {
|
|
48686
|
+
color: (s == null ? void 0 : s.variant) === "outlined" ? "#000" : "#fff"
|
|
48687
|
+
}
|
|
48688
|
+
}
|
|
48689
|
+
)
|
|
48690
|
+
} : void 0,
|
|
48683
48691
|
...b
|
|
48684
48692
|
}
|
|
48685
48693
|
)
|