@hortiview/shared-components 0.0.1 → 0.0.4470

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.
Files changed (30) hide show
  1. package/dist/ListAreaService-BPp_O2BH.js +67 -0
  2. package/dist/assets/BaseView.css +1 -1
  3. package/dist/assets/BasicHeading.css +1 -1
  4. package/dist/assets/BlockView.css +1 -1
  5. package/dist/assets/HashTabView.css +1 -1
  6. package/dist/assets/Iconify.css +1 -1
  7. package/dist/assets/ListAreaService.css +1 -1
  8. package/dist/assets/SearchBar.css +1 -1
  9. package/dist/assets/VerticalDivider.css +1 -1
  10. package/dist/components/BaseView/BaseView.js +8 -8
  11. package/dist/components/BaseView/BaseView.test.js +1 -1
  12. package/dist/components/BasicHeading/BasicHeading.js +27 -27
  13. package/dist/components/BasicHeading/BasicHeading.test.js +1 -1
  14. package/dist/components/BlockView/BlockView.js +21 -21
  15. package/dist/components/BlockView/BlockView.test.js +1 -1
  16. package/dist/components/EmptyView/EmptyView.test.js +1 -1
  17. package/dist/components/HashTabView/HashTabView.js +31 -31
  18. package/dist/components/HashTabView/HashTabView.test.js +1 -1
  19. package/dist/components/Iconify/Iconify.js +1 -1
  20. package/dist/components/Iconify/Iconify.test.js +1 -1
  21. package/dist/components/ListArea/ListArea.js +1 -1
  22. package/dist/components/ListArea/ListArea.test.js +2 -2
  23. package/dist/components/ListArea/ListAreaService.js +1 -1
  24. package/dist/components/SearchBar/SearchBar.js +9 -9
  25. package/dist/components/SearchBar/SearchBar.test.js +1 -1
  26. package/dist/components/VerticalDivider/VerticalDivider.js +1 -1
  27. package/dist/components/VerticalDivider/VerticalDivider.test.js +1 -1
  28. package/dist/{vi.JYQecGiw-D8gb8QJV.js → vi.JYQecGiw-8gz0k16C.js} +2306 -2313
  29. package/package.json +61 -61
  30. package/dist/ListAreaService-D16C1IfO.js +0 -67
package/package.json CHANGED
@@ -1,61 +1,61 @@
1
- {
2
- "name": "@hortiview/shared-components",
3
- "description": "This is a shared component library. It should used in the HortiView platform and its modules.",
4
- "version": "0.0.1",
5
- "type": "module",
6
- "main": "dist/main.js",
7
- "types": "dist/main.d.ts",
8
- "files": [
9
- "dist"
10
- ],
11
- "sideEffects": [
12
- "**/*.css"
13
- ],
14
- "publishConfig": {
15
- "registry": "https://registry.npmjs.org/"
16
- },
17
- "scripts": {
18
- "dev": "vite",
19
- "build": "tsc --p ./tsconfig-build.json && vite build",
20
- "test": "vitest",
21
- "test:ci": "vitest run --coverage",
22
- "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
23
- "preview": "vite preview"
24
- },
25
- "peerDependencies": {
26
- "@element/react-components": "^5.41.0",
27
- "@element/themes": "^5.41.0",
28
- "lodash": "^4.17.21",
29
- "react": "^18.2.0",
30
- "react-dom": "^18.2.0"
31
- },
32
- "devDependencies": {
33
- "@element/react-components": "^5.41.0",
34
- "@element/themes": "^5.41.0",
35
- "@testing-library/jest-dom": "^6.4.2",
36
- "@testing-library/react": "^14.2.1",
37
- "@types/lodash": "^4.17.0",
38
- "@types/node": "^20.11.26",
39
- "@types/react": "^18.2.64",
40
- "@types/react-dom": "^18.2.21",
41
- "@types/testing-library__jest-dom": "^6.0.0",
42
- "@typescript-eslint/eslint-plugin": "^7.1.1",
43
- "@typescript-eslint/parser": "^7.1.1",
44
- "@vitejs/plugin-react": "^4.2.1",
45
- "@vitest/coverage-v8": "^1.4.0",
46
- "eslint": "^8.57.0",
47
- "eslint-plugin-react-hooks": "^4.6.0",
48
- "eslint-plugin-react-refresh": "^0.4.5",
49
- "glob": "^10.3.10",
50
- "jsdom": "^24.0.0",
51
- "lodash": "^4.17.21",
52
- "react": "^18.2.0",
53
- "react-dom": "^18.2.0",
54
- "typescript": "^5.2.2",
55
- "vite": "^5.1.6",
56
- "vite-plugin-dts": "^3.7.3",
57
- "vite-plugin-lib-inject-css": "^2.0.0",
58
- "vite-plugin-svgr": "^4.2.0",
59
- "vitest": "^1.4.0"
60
- }
61
- }
1
+ {
2
+ "name": "@hortiview/shared-components",
3
+ "description": "This is a shared component library. It should used in the HortiView platform and its modules.",
4
+ "version": "0.0.4470",
5
+ "type": "module",
6
+ "main": "dist/main.js",
7
+ "types": "dist/main.d.ts",
8
+ "files": [
9
+ "dist"
10
+ ],
11
+ "sideEffects": [
12
+ "**/*.css"
13
+ ],
14
+ "publishConfig": {
15
+ "registry": "https://registry.npmjs.org/"
16
+ },
17
+ "scripts": {
18
+ "dev": "vite",
19
+ "build": "tsc --p ./tsconfig-build.json && vite build",
20
+ "test": "vitest",
21
+ "test:ci": "vitest run --coverage",
22
+ "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
23
+ "preview": "vite preview"
24
+ },
25
+ "peerDependencies": {
26
+ "@element/react-components": "^5.41.0",
27
+ "@element/themes": "^5.41.0",
28
+ "lodash": "^4.17.21",
29
+ "react": "^18.2.0",
30
+ "react-dom": "^18.2.0"
31
+ },
32
+ "devDependencies": {
33
+ "@element/react-components": "^5.41.0",
34
+ "@element/themes": "^5.41.0",
35
+ "@testing-library/jest-dom": "^6.4.2",
36
+ "@testing-library/react": "^14.2.1",
37
+ "@types/lodash": "^4.17.0",
38
+ "@types/node": "^20.11.26",
39
+ "@types/react": "^18.2.64",
40
+ "@types/react-dom": "^18.2.21",
41
+ "@types/testing-library__jest-dom": "^6.0.0",
42
+ "@typescript-eslint/eslint-plugin": "^7.1.1",
43
+ "@typescript-eslint/parser": "^7.1.1",
44
+ "@vitejs/plugin-react": "^4.2.1",
45
+ "@vitest/coverage-v8": "^1.4.0",
46
+ "eslint": "^8.57.0",
47
+ "eslint-plugin-react-hooks": "^4.6.0",
48
+ "eslint-plugin-react-refresh": "^0.4.5",
49
+ "glob": "^10.3.10",
50
+ "jsdom": "^24.0.0",
51
+ "lodash": "^4.17.21",
52
+ "react": "^18.2.0",
53
+ "react-dom": "^18.2.0",
54
+ "typescript": "^5.2.2",
55
+ "vite": "^5.1.6",
56
+ "vite-plugin-dts": "^3.7.3",
57
+ "vite-plugin-lib-inject-css": "^2.0.0",
58
+ "vite-plugin-svgr": "^4.2.0",
59
+ "vitest": "^1.4.0"
60
+ }
61
+ }
@@ -1,67 +0,0 @@
1
- import "./assets/ListAreaService.css";
2
- import { jsx as a } from "react/jsx-runtime";
3
- import { TypoButton as B, TypoSubtitle as b, TypoBody as L, Icon as C } from "@element/react-components";
4
- import { Iconify as x } from "./components/Iconify/Iconify.js";
5
- import { AvailableCustomIcons as E } from "./enums/AvailableCustomIcons.js";
6
- const N = "_fullWidth_tiknm_1", W = "_mainElevation_tiknm_9", $ = "_searchbar_tiknm_21", j = "_roundedBottom_tiknm_37", S = "_list_tiknm_47", w = "_listItem_tiknm_95", A = "_trailingIcon_tiknm_103", G = "_groupedListItem_tiknm_127", _ = {
7
- fullWidth: N,
8
- mainElevation: W,
9
- searchbar: $,
10
- roundedBottom: j,
11
- list: S,
12
- listItem: w,
13
- trailingIcon: A,
14
- groupedListItem: G
15
- }, J = (o, e, n, r) => {
16
- const s = o.reduce((i, m) => {
17
- const { groupName: t, ...c } = m;
18
- return !t || typeof t != "string" || (i[t] || (i[t] = {
19
- groupName: /* @__PURE__ */ a(B, { children: t }),
20
- id: t,
21
- items: []
22
- }), i[t].items = [
23
- ...i[t].items,
24
- g(c, e, n, !0, r)
25
- ]), i;
26
- }, {});
27
- return Object.values(s);
28
- }, K = (o, e, n, r) => o.map((s) => g(s, e, n, !1, r)), g = (o, e, n, r, s) => {
29
- const {
30
- title: i,
31
- subTitle: m,
32
- route: t,
33
- value: c,
34
- noNavigation: d,
35
- disabled: I,
36
- icon: v,
37
- iconType: p,
38
- trailingIcon: y,
39
- trailingIconType: f,
40
- actionButton: k,
41
- onClick: h,
42
- customTitle: u
43
- } = o, l = e === t;
44
- return {
45
- select: l,
46
- primaryText: u ?? /* @__PURE__ */ a(b, { level: 1, bold: l, themeColor: l ? "primary" : void 0, children: i }),
47
- secondaryText: m && !u ? /* @__PURE__ */ a(L, { level: 2, themeColor: l ? "primary" : void 0, children: m }) : void 0,
48
- trailingBlock: k ?? y ?? /* @__PURE__ */ a(C, { icon: "arrow_right" }),
49
- leadingBlock: O(v),
50
- nonInteractive: I,
51
- value: c,
52
- componentProps: {
53
- leadingBlockType: p ?? "icon",
54
- trailingBlockType: f ?? "icon",
55
- className: `${p === "avatar" ? "" : _.listItem} ${n} ${r ? _.groupedListItem : ""}`,
56
- onClick: (P, T) => h?.(T),
57
- tag: d ? void 0 : s ?? "a",
58
- to: d ? void 0 : t
59
- }
60
- };
61
- }, O = (o) => typeof o == "string" && o in E ? /* @__PURE__ */ a(x, { icon: o }) : o;
62
- export {
63
- K as a,
64
- J as g,
65
- g as m,
66
- _ as s
67
- };