@hortiview/shared-components 2.28.0-alpha.fb31ea7e.1 → 2.28.1

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,7 +1,7 @@
1
- import { jsx as d } from "react/jsx-runtime";
2
- import { S as a } from "../../index.es-74LdeLp0.js";
3
- import { u as f } from "../../uniqueId-CJo-XRQb.js";
4
- import { useEffect as i } from "react";
1
+ import { jsx as l } from "react/jsx-runtime";
2
+ import { S as p } from "../../index.es-74LdeLp0.js";
3
+ import { u as d } from "../../uniqueId-CJo-XRQb.js";
4
+ import { useEffect as a } from "react";
5
5
  import "../../isEmpty-l2xQKl4x.js";
6
6
  import "../../react-tooltip.min-DKaGxvdz.js";
7
7
  import "../../orderBy-Ce85KqD6.js";
@@ -10,49 +10,45 @@ import "../SharedComponentsPermissionProvider/PermissionContext.js";
10
10
  import "react-dom";
11
11
  import "react-hook-form";
12
12
  import "../../get-CBFiuc3f.js";
13
- import { flattenObjectToString as S } from "../../services/UtilService.js";
13
+ import { flattenObjectToString as f } from "../../services/UtilService.js";
14
14
  import "../../omit-DUqu4lDk.js";
15
15
  import "../../isArray-olhCpv2e.js";
16
16
  import "../../types/Time.js";
17
17
  import "../../react.esm-B3AK8zW1.js";
18
- import '../../assets/Select.css';const $ = "_customPortal_1u11g_1", g = "_customSelect_1u11g_8", n = {
19
- customPortal: $,
18
+ import '../../assets/Select.css';const S = "_customPortal_1u11g_1", g = "_customSelect_1u11g_8", c = {
19
+ customPortal: S,
20
20
  customSelect: g
21
- }, k = ({
22
- menuMaxHeight: l = "15rem",
21
+ }, w = ({
22
+ menuMaxHeight: i = "15rem",
23
23
  portalClassName: o,
24
- "data-testid": c = "custom-select",
25
- className: s,
26
- hoisted: m,
27
- ...u
24
+ "data-testid": r = "custom-select",
25
+ className: n,
26
+ hoisted: e,
27
+ ...s
28
28
  }) => {
29
- const e = `custom-portal-${o ?? "default"}`, r = f("elementSelectForTestId-");
30
- return i(() => {
31
- if (m && !document.getElementById(e)) {
32
- const t = document.createElement("div");
33
- t.id = e, t.className = `${n.customPortal} ${o ?? ""}`, document.body.appendChild(t);
29
+ const t = `custom-portal-${o ?? "default"}`, u = d(r);
30
+ return a(() => {
31
+ if (e && !document.getElementById(t)) {
32
+ const m = document.createElement("div");
33
+ m.id = t, m.className = `${c.customPortal} ${o ?? ""}`, document.body.appendChild(m);
34
34
  }
35
- }, [m, e, o]), i(() => {
36
- const t = document.querySelectorAll(`#${r} input[role="combobox"]`);
37
- t && t.forEach((p) => {
38
- p.setAttribute("data-testid", c);
39
- });
40
- }, [c, r]), /* @__PURE__ */ d(
41
- a,
35
+ }, [e, t, o]), /* @__PURE__ */ l(
36
+ p,
42
37
  {
43
- menuMaxHeight: l,
44
- hoisted: m,
45
- id: r,
46
- portalContainer: document.getElementById(e) ? `#${e}` : void 0,
47
- className: `${n.customSelect} ${s ?? ""}`,
38
+ menuMaxHeight: i,
39
+ hoisted: e,
40
+ id: u,
41
+ "data-testid": r,
42
+ portalContainer: document.getElementById(t) ? `#${t}` : void 0,
43
+ className: `${c.customSelect} ${n ?? ""}`,
48
44
  filterConfig: {
49
45
  matchFrom: "any",
50
- stringify: S
46
+ stringify: f
51
47
  },
52
- ...u
48
+ ...s
53
49
  }
54
50
  );
55
51
  };
56
52
  export {
57
- k as Select
53
+ w as Select
58
54
  };
package/main.d.ts CHANGED
@@ -52,11 +52,13 @@ export { capitalizeFirstLetters, flattenObjectToString, getFormattedDateTime, ge
52
52
  export type { AllowedButtonProps } from './components/AllowedButton/AllowedButton';
53
53
  export type { AllowedIconButtonProps } from './components/AllowedIconButton/AllowedIconButton';
54
54
  export type { ActionProps } from './components/ContextMenu/ContextMenu';
55
+ export type { FormNumberProps } from './components/FormComponents/FormNumber/FormNumber';
55
56
  export type { FormSelectOption, FormSelectProps } from './components/FormComponents/FormSelect/FormSelect';
56
57
  export type { FormTextProps } from './components/FormComponents/FormText/FormText';
57
58
  export type { InfoCardProps } from './components/InfoCard/InfoCard';
58
59
  export type { FieldItem } from './components/InfoGroup/InfoGroup';
59
60
  export type { LoadingSpinnerProps } from './components/LoadingSpinner/Default/LoadingSpinner';
61
+ export type { OfflineViewProps } from './components/OfflineView/OfflineView';
60
62
  export { StepperStyle } from './components/Stepper/stepperStyles';
61
63
  export type { Step, StepperBaseProps, StepperButtonProps, StepperProps } from './components/Stepper/stepperTypes';
62
64
  export type { FilterData, FilterOption, FilterSelection } from './types/Filter';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hortiview/shared-components",
3
- "version": "2.28.0-alpha.fb31ea7e.1",
3
+ "version": "2.28.1",
4
4
  "description": "This is a shared component library. It should used in the HortiView platform and its modules.",
5
5
  "license": "GPL-3.0",
6
6
  "type": "module",