@emporix/component-library 2.2.0 → 2.4.0

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.
@@ -0,0 +1,65 @@
1
+ import { CSSProperties, ReactNode } from 'react';
2
+ export interface SectionTitleProps {
3
+ /**
4
+ * Title text. Rendered through a title-case transform (e.g. `orderDetails`
5
+ * renders as `Order Details`).
6
+ */
7
+ name?: string;
8
+ /**
9
+ * Actions rendered alongside the title (e.g. a button).
10
+ */
11
+ actions?: ReactNode;
12
+ /**
13
+ * Additional CSS class name.
14
+ */
15
+ className?: string;
16
+ /**
17
+ * Test ID for testing.
18
+ */
19
+ 'data-testid'?: string;
20
+ }
21
+ /**
22
+ * Section heading row: a title (title-cased) with optional trailing actions.
23
+ * Used standalone or automatically by `SectionBox` when `name`/`actions` are set.
24
+ */
25
+ export declare const SectionTitle: ({ name, actions, className, "data-testid": testId, }: SectionTitleProps) => import("react/jsx-runtime").JSX.Element;
26
+ export interface SectionBoxProps {
27
+ /**
28
+ * Content rendered inside the bordered box.
29
+ */
30
+ children: ReactNode;
31
+ /**
32
+ * Optional title, rendered via `SectionTitle` above the box.
33
+ */
34
+ name?: string;
35
+ /**
36
+ * Optional actions rendered alongside the title.
37
+ */
38
+ actions?: ReactNode;
39
+ /**
40
+ * Inline styles applied to the inner bordered box.
41
+ */
42
+ sectionStyles?: CSSProperties;
43
+ /**
44
+ * Additional CSS class name applied to the inner bordered box.
45
+ */
46
+ sectionClassName?: string;
47
+ /**
48
+ * Additional CSS class name applied to the root wrapper.
49
+ */
50
+ className?: string;
51
+ /**
52
+ * Inline styles applied to the root wrapper.
53
+ */
54
+ style?: CSSProperties;
55
+ /**
56
+ * Test ID for testing.
57
+ */
58
+ 'data-testid'?: string;
59
+ }
60
+ /**
61
+ * Bordered content section with an optional title/actions header.
62
+ * Common layout primitive for grouping form fields or detail content.
63
+ */
64
+ export declare const SectionBox: ({ children, name, actions, sectionStyles, sectionClassName, className, style, "data-testid": testId, }: SectionBoxProps) => import("react/jsx-runtime").JSX.Element;
65
+ //# sourceMappingURL=SectionBox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SectionBox.d.ts","sourceRoot":"","sources":["../../../src/components/sectionbox/SectionBox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAIrD,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED;;;GAGG;AACH,eAAO,MAAM,YAAY,GAAI,sDAK1B,iBAAiB,4CAWnB,CAAA;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAA;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB;;OAEG;IACH,aAAa,CAAC,EAAE,aAAa,CAAA;IAC7B;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED;;;GAGG;AACH,eAAO,MAAM,UAAU,GAAI,wGASxB,eAAe,4CAsBjB,CAAA"}
@@ -0,0 +1,3 @@
1
+ export { SectionBox, SectionTitle } from './SectionBox';
2
+ export type { SectionBoxProps, SectionTitleProps } from './SectionBox';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/sectionbox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AACvD,YAAY,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Converts arbitrary text (including camelCase / snake-ish identifiers) into
3
+ * title case, e.g. `orderDetails` -> `Order Details`.
4
+ *
5
+ * Ported as-is from management-dashboard's `helpers/utils.ts` so migrated
6
+ * consumers see no visual change. This is a pure text-casing transform, not
7
+ * a translation — no i18n involved.
8
+ */
9
+ export declare const textToTitleCase: (input: string | undefined) => string;
10
+ //# sourceMappingURL=textToTitleCase.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"textToTitleCase.d.ts","sourceRoot":"","sources":["../../../src/components/sectionbox/textToTitleCase.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,GAAI,OAAO,MAAM,GAAG,SAAS,KAAG,MAsB3D,CAAA"}