@hortiview/shared-components 2.5.0 → 2.6.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## [2.6.1](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/compare/v2.6.0...v2.6.1) (2025-10-02)
2
+
3
+ ### Styles
4
+
5
+ * adjust title and subtitle ([3aab84c](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/3aab84c8bd07f6d01c21a5653ab609cd41de7e4f))
6
+
7
+ ## [2.6.0](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/compare/v2.5.0...v2.6.0) (2025-09-30)
8
+
9
+ ### Features
10
+
11
+ * export form select type ([f373eb3](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/f373eb3c837acc45da04fa3bc5ce277d9a3657d4))
12
+
1
13
  ## [2.5.0](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/compare/v2.4.0...v2.5.0) (2025-09-08)
2
14
 
3
15
  ### Features
@@ -0,0 +1,48 @@
1
+ import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
+ import { G as o } from "./index.es-CbBdaRO2.js";
3
+ import { Iconify as _ } from "./components/Iconify/Iconify.js";
4
+ import { b as m, d as y, T as h } from "./index.es--yyG47az.js";
5
+ import { B as A } from "./index.es-Bx1E5MPK.js";
6
+ import './assets/OfflineView.css';const T = "_gapAndTextAlign_10nts_1", v = "_container_10nts_6", x = "_bgWhite_10nts_12", G = "_bgGrey_10nts_17", W = "_subtitle_10nts_22", t = {
7
+ gapAndTextAlign: T,
8
+ container: v,
9
+ bgWhite: x,
10
+ bgGrey: G,
11
+ subtitle: W
12
+ }, j = ({
13
+ title: i = "You’re currently offline",
14
+ subtitle: n = "This feature is unavailable until you reconnect",
15
+ icon: l = "cloud_off",
16
+ size: c = "large",
17
+ variant: d = "basic",
18
+ "data-testid": g = "offline-view-container",
19
+ buttonLabel: a,
20
+ fullWidth: f = !1,
21
+ className: b,
22
+ onClick: p
23
+ }) => {
24
+ const s = c === "large", u = d === "filled";
25
+ return /* @__PURE__ */ r(
26
+ o,
27
+ {
28
+ className: `${b} ${t.container} ${u ? t.bgGrey : t.bgWhite}`,
29
+ gap: "standard",
30
+ direction: "vertical",
31
+ "data-testid": g,
32
+ secondaryAlign: "center",
33
+ fullWidth: f,
34
+ children: [
35
+ /* @__PURE__ */ r(o, { direction: "vertical", secondaryAlign: "center", className: t.gapAndTextAlign, children: [
36
+ /* @__PURE__ */ e(_, { icon: l, iconSize: s ? "xlarge" : "medium" }),
37
+ s ? /* @__PURE__ */ e(m, { level: 6, children: i }) : /* @__PURE__ */ e(y, { level: 1, bold: !0, children: i })
38
+ ] }),
39
+ n && /* @__PURE__ */ e(h, { className: t.subtitle, level: 2, children: n }),
40
+ a && /* @__PURE__ */ e(A, { "data-testid": "offline-view-action-button", label: a, onClick: p })
41
+ ]
42
+ }
43
+ );
44
+ };
45
+ export {
46
+ j as O,
47
+ t as s
48
+ };
@@ -1 +1 @@
1
- ._gap_18we6_1{gap:.125rem!important}._container_18we6_5{border-radius:.5rem;padding:2.5rem 2rem;width:auto}._bgWhite_18we6_11{background:var(--lmnt-theme-surface);color:var(--lmnt-theme-on-surface-active)}._bgGrey_18we6_16{background:var(--lmnt-theme-surface-variant);color:var(--lmnt-theme-on-surface-active)}._subtitle_18we6_21{color:var(--on-colors-on-surface-inactive-medium, #000000BA);font-weight:500}
1
+ ._gapAndTextAlign_10nts_1{gap:.125rem!important;text-align:center}._container_10nts_6{border-radius:.5rem;padding:2.5rem 2rem;width:auto}._bgWhite_10nts_12{background:var(--lmnt-theme-surface);color:var(--lmnt-theme-on-surface-active)}._bgGrey_10nts_17{background:var(--lmnt-theme-surface-variant);color:var(--lmnt-theme-on-surface-active)}._subtitle_10nts_22{color:var(--on-colors-on-surface-inactive-medium, #000000BA);font-weight:500;text-align:center}
@@ -6,7 +6,7 @@ import { EmptyView as N } from "../EmptyView/EmptyView.js";
6
6
  import { ListArea as A } from "../ListArea/ListArea.js";
7
7
  import { u as H } from "../../useBreakpoints-MzTZ0tCT.js";
8
8
  import { VerticalDivider as V } from "../VerticalDivider/VerticalDivider.js";
9
- import { O as j } from "../../OfflineView-HbuDPpQL.js";
9
+ import { O as j } from "../../OfflineView-BUSWAKez.js";
10
10
  import '../../assets/BaseView.css';const E = "_parentGroup_w7vsz_1", I = "_divider_w7vsz_5", $ = "_maxWidth_w7vsz_10", y = "_desktopList_w7vsz_14", F = "_mobileList_w7vsz_19", M = "_desktopDetail_w7vsz_23", O = "_mobileDetail_w7vsz_28", o = {
11
11
  parentGroup: E,
12
12
  divider: I,
@@ -3,7 +3,7 @@ import { I as _ } from "../../index.es-Kg9soDed.js";
3
3
  import { M as k, L as p, a as w } from "../../index.es-CPqaUyn3.js";
4
4
  import { useState as I, useCallback as a, useEffect as M } from "react";
5
5
  import { u as x } from "../../uniqueId-NU3-C36A.js";
6
- import { O as C } from "../../OfflineView-HbuDPpQL.js";
6
+ import { O as C } from "../../OfflineView-BUSWAKez.js";
7
7
  import '../../assets/ContextMenu.css';const v = "_menu_1xwk3_1", y = "_icon_1xwk3_5", V = "_listItem_1xwk3_9", g = "_offlineViewMargin_1xwk3_19", s = {
8
8
  menu: v,
9
9
  icon: y,
@@ -5,7 +5,7 @@ import { ExtendedSelectProps } from '../../Select/Select';
5
5
  /**
6
6
  * a generic FormSelector property type. the generic T represents the interface, which is used in the form, like {@link CreateOrganizationDto}
7
7
  */
8
- type FormSelectProps<T extends FieldValues> = Omit<SelectProps, 'className' | 'clearable' | 'disabled' | 'helperTextPersistent' | 'hidden' | 'hoisted' | 'label' | 'menuMaxHeight' | 'multi' | 'multiSelect' | 'options' | 'searchable' | 'textKey' | 'valid' | 'value' | 'valueKey' | 'variant'> & Pick<ExtendedSelectProps, 'portalClassName' | 'data-testid'> & {
8
+ export type FormSelectProps<T extends FieldValues> = Omit<SelectProps, 'className' | 'clearable' | 'disabled' | 'helperTextPersistent' | 'hidden' | 'hoisted' | 'label' | 'menuMaxHeight' | 'multi' | 'multiSelect' | 'options' | 'searchable' | 'textKey' | 'valid' | 'value' | 'valueKey' | 'variant'> & Pick<ExtendedSelectProps, 'portalClassName' | 'data-testid'> & {
9
9
  /** the name of the property in the form */
10
10
  propertyName: Path<T>;
11
11
  /** the label of the select */
@@ -63,4 +63,3 @@ export type FormSelectOption = {
63
63
  * @returns
64
64
  */
65
65
  export declare const FormSelect: <T extends FieldValues>({ propertyName, label, options, multi, disabled, hoisted, hidden, valueKey, textKey, clearable, searchable, noOptionsMessage, rules, menuPosition, ...props }: FormSelectProps<T>) => import("react/jsx-runtime").JSX.Element;
66
- export {};
@@ -23,7 +23,7 @@ import { a as hl } from "../../util-DA21pZXj.js";
23
23
  import "../../isEmpty-DsdC9UUD.js";
24
24
  import { u as ml } from "../../useBreakpoints-MzTZ0tCT.js";
25
25
  import "../../react-tooltip.min-DSY6KDqS.js";
26
- import { O as Fa } from "../../OfflineView-HbuDPpQL.js";
26
+ import { O as Fa } from "../../OfflineView-BUSWAKez.js";
27
27
  import "../../uniqueId-NU3-C36A.js";
28
28
  import "react-hook-form";
29
29
  import "../../get-B8c-T4F8.js";
@@ -11,7 +11,7 @@ import { A as Dt } from "../../animationframe-EMBh6XeO.js";
11
11
  import { P as It } from "../../index.es-D-ph6ImM.js";
12
12
  import { b as Nt } from "../../index.es--yyG47az.js";
13
13
  import { Iconify as Lt } from "../Iconify/Iconify.js";
14
- import { O as Ft } from "../../OfflineView-HbuDPpQL.js";
14
+ import { O as Ft } from "../../OfflineView-BUSWAKez.js";
15
15
  import '../../assets/Modal.css';/**
16
16
  * @license
17
17
  * Copyright 2016 Google Inc.
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
2
2
  import "../../index.es-CbBdaRO2.js";
3
3
  import "../Iconify/Iconify.js";
4
4
  import "../../index.es--yyG47az.js";
5
- import { O as f } from "../../OfflineView-HbuDPpQL.js";
5
+ import { O as f } from "../../OfflineView-BUSWAKez.js";
6
6
  import "../../index.es-Bx1E5MPK.js";
7
7
  export {
8
8
  f as OfflineView
@@ -1,6 +1,6 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import { a as n, s as t, f as u } from "../../react.esm-CX1WJ2Pp.js";
3
- import { s as r, O as i } from "../../OfflineView-HbuDPpQL.js";
3
+ import { s as r, O as i } from "../../OfflineView-BUSWAKez.js";
4
4
  import { d as B, t as l, g as e, a as c } from "../../vi.CjhMlMwf-CKxPQtd6.js";
5
5
  B("OfflineView", () => {
6
6
  l("should render OfflineView with title and subtitle", () => {
package/dist/main.d.ts CHANGED
@@ -42,17 +42,17 @@ export { FormToggle } from './components/FormComponents/FormToggle/FormToggle';
42
42
  export { AvailableCustomIcons } from './enums/AvailableCustomIcons';
43
43
  export { ThemeColor } from './enums/ThemeColor';
44
44
  export { useBreakpoints } from './hooks/useBreakpoints';
45
- export { capitalizeFirstLetters, getNumberAsLocaleString, trimLeadingAndTrailingSpaces } from './services/UtilService';
45
+ export { capitalizeFirstLetters, getNumberAsLocaleString, trimLeadingAndTrailingSpaces, } from './services/UtilService';
46
46
  export type { ActionProps } from './components/ContextMenu/ContextMenu';
47
- export type { FormSelectOption } from './components/FormComponents/FormSelect/FormSelect';
47
+ export type { FormSelectOption, FormSelectProps, } from './components/FormComponents/FormSelect/FormSelect';
48
48
  export type { FormTextProps } from './components/FormComponents/FormText/FormText';
49
49
  export type { HealthCheckFailedProps } from './components/HealthCheckFailed/HealthCheckFailed';
50
50
  export type { FieldItem } from './components/InfoGroup/InfoGroup';
51
51
  export type { LoadingSpinnerProps } from './components/LoadingSpinner/Default/LoadingSpinner';
52
- export type { Step, StepperBaseProps, StepperButtonProps, StepperProps } from './components/Stepper/stepperTypes';
52
+ export type { Step, StepperBaseProps, StepperButtonProps, StepperProps, } from './components/Stepper/stepperTypes';
53
53
  export type { FilterData, FilterOption, FilterSelection } from './types/Filter';
54
54
  export type { CellTemplate, CellTemplateProps, TableLayoutProps } from './types/GenericTable';
55
55
  export type { HashTab } from './types/HashTab';
56
56
  export type { BaseListElement, ListElement } from './types/ListElement';
57
- export { AVAILABLE_COUNTRY_KEYS, AVAILABLE_LOCALES, ENGLISH_LANGUAGE_ID, GERMAN_LANGUAGE_ID, LANGUAGE_CODES_MAPPER, LANGUAGE_ID_MAPPER, SPANISH_LANGUAGE_ID, TURKISH_LANGUAGE_ID } from './types/Languages';
57
+ export { AVAILABLE_COUNTRY_KEYS, AVAILABLE_LOCALES, ENGLISH_LANGUAGE_ID, GERMAN_LANGUAGE_ID, LANGUAGE_CODES_MAPPER, LANGUAGE_ID_MAPPER, SPANISH_LANGUAGE_ID, TURKISH_LANGUAGE_ID, } from './types/Languages';
58
58
  export type { AVAILABLE_LANGUAGE_CODES, LANGUAGE_COUNTRY_CODES } from './types/Languages';
package/dist/main.js CHANGED
@@ -21,7 +21,7 @@ import { ListArea as R } from "./components/ListArea/ListArea.js";
21
21
  import { LoadingSpinner as y } from "./components/LoadingSpinner/Default/LoadingSpinner.js";
22
22
  import { Modal as K } from "./components/Modal/Modal.js";
23
23
  import { ModulePadding as W } from "./components/ModulePadding/ModulePadding.js";
24
- import { O as j } from "./OfflineView-HbuDPpQL.js";
24
+ import { O as j } from "./OfflineView-BUSWAKez.js";
25
25
  import { OnboardingBanner as J } from "./components/OnboardingBanner/OnboardingBanner.js";
26
26
  import { OverflowTooltip as Z } from "./components/OverflowTooltip/OverflowTooltip.js";
27
27
  import { ScrollbarX as rr, ScrollbarY as or } from "./components/Scrollbar/Scrollbar.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hortiview/shared-components",
3
3
  "description": "This is a shared component library. It should used in the HortiView platform and its modules.",
4
- "version": "2.5.0",
4
+ "version": "2.6.1",
5
5
  "type": "module",
6
6
  "repository": "https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared",
7
7
  "author": "Falk Menge <falk.menge.ext@bayer.com>",
@@ -1,48 +0,0 @@
1
- import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
- import { G as s } from "./index.es-CbBdaRO2.js";
3
- import { Iconify as _ } from "./components/Iconify/Iconify.js";
4
- import { b as m, d as y, T as h } from "./index.es--yyG47az.js";
5
- import { B as v } from "./index.es-Bx1E5MPK.js";
6
- import './assets/OfflineView.css';const w = "_gap_18we6_1", G = "_container_18we6_5", T = "_bgWhite_18we6_11", x = "_bgGrey_18we6_16", W = "_subtitle_18we6_21", i = {
7
- gap: w,
8
- container: G,
9
- bgWhite: T,
10
- bgGrey: x,
11
- subtitle: W
12
- }, z = ({
13
- title: t = "You’re currently offline",
14
- subtitle: a = "This feature is unavailable until you reconnect",
15
- icon: l = "cloud_off",
16
- size: c = "large",
17
- variant: d = "basic",
18
- "data-testid": f = "offline-view-container",
19
- buttonLabel: n,
20
- fullWidth: g = !1,
21
- className: b,
22
- onClick: p
23
- }) => {
24
- const r = c === "large", u = d === "filled";
25
- return /* @__PURE__ */ o(
26
- s,
27
- {
28
- className: `${b} ${i.container} ${u ? i.bgGrey : i.bgWhite}`,
29
- gap: "standard",
30
- direction: "vertical",
31
- "data-testid": f,
32
- secondaryAlign: "center",
33
- fullWidth: g,
34
- children: [
35
- /* @__PURE__ */ o(s, { direction: "vertical", secondaryAlign: "center", className: i.gap, children: [
36
- /* @__PURE__ */ e(_, { icon: l, iconSize: r ? "xlarge" : "medium" }),
37
- r ? /* @__PURE__ */ e(m, { level: 6, children: t }) : /* @__PURE__ */ e(y, { level: 1, bold: !0, children: t })
38
- ] }),
39
- a && /* @__PURE__ */ e(h, { className: i.subtitle, level: 2, children: a }),
40
- n && /* @__PURE__ */ e(v, { "data-testid": "offline-view-action-button", label: n, onClick: p })
41
- ]
42
- }
43
- );
44
- };
45
- export {
46
- z as O,
47
- i as s
48
- };