@emporix/component-library 1.6.0 → 1.6.2

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 (36) hide show
  1. package/dist/components/accordion/Accordion.d.ts +71 -0
  2. package/dist/components/accordion/Accordion.d.ts.map +1 -0
  3. package/dist/components/accordion/AccordionTab.d.ts +100 -0
  4. package/dist/components/accordion/AccordionTab.d.ts.map +1 -0
  5. package/dist/components/buttons/PrimaryButton.d.ts +29 -0
  6. package/dist/components/buttons/PrimaryButton.d.ts.map +1 -0
  7. package/dist/components/buttons/SecondaryButton.d.ts +25 -0
  8. package/dist/components/buttons/SecondaryButton.d.ts.map +1 -0
  9. package/dist/components/dropdown/Dropdown.d.ts +107 -0
  10. package/dist/components/dropdown/Dropdown.d.ts.map +1 -0
  11. package/dist/components/input/InputText.d.ts +41 -0
  12. package/dist/components/input/InputText.d.ts.map +1 -0
  13. package/dist/components/selectbutton/SelectButton.d.ts +63 -0
  14. package/dist/components/selectbutton/SelectButton.d.ts.map +1 -0
  15. package/dist/components/tabs/Tabs.d.ts +39 -0
  16. package/dist/components/tabs/Tabs.d.ts.map +1 -0
  17. package/dist/components/toast/ToastProvider.d.ts +14 -0
  18. package/dist/components/toast/ToastProvider.d.ts.map +1 -0
  19. package/dist/components/toast/ToastTemplate.d.ts +9 -0
  20. package/dist/components/toast/ToastTemplate.d.ts.map +1 -0
  21. package/dist/components/toast/index.d.ts +6 -0
  22. package/dist/components/toast/index.d.ts.map +1 -0
  23. package/dist/components/toast/types.d.ts +11 -0
  24. package/dist/components/toast/types.d.ts.map +1 -0
  25. package/dist/index.d.ts +29 -0
  26. package/dist/index.d.ts.map +1 -0
  27. package/dist/index.es.js +6036 -0
  28. package/dist/index.umd.js +553 -0
  29. package/dist/style.css +1 -0
  30. package/dist/styles.d.ts +4 -0
  31. package/package.json +1 -1
  32. package/dist/assets/InterVariable-CWi-zmRD.woff2 +0 -0
  33. package/dist/assets/InterVariable-Italic-d6KXgdvN.woff2 +0 -0
  34. package/dist/assets/index-BocYsU1f.js +0 -680
  35. package/dist/assets/index-gr3T7CQq.css +0 -1
  36. package/dist/index.html +0 -14
@@ -0,0 +1,71 @@
1
+ import { default as React } from 'react';
2
+ export interface AccordionTabOpenEvent {
3
+ index: number;
4
+ originalEvent: React.SyntheticEvent;
5
+ }
6
+ export interface AccordionTabCloseEvent {
7
+ index: number;
8
+ originalEvent: React.SyntheticEvent;
9
+ }
10
+ export interface AccordionTabChangeEvent {
11
+ index: number[];
12
+ originalEvent: React.SyntheticEvent;
13
+ }
14
+ export interface AccordionProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> {
15
+ /**
16
+ * Active index (single mode: number | null, multiple mode: number[]).
17
+ * When provided, Accordion becomes controlled.
18
+ */
19
+ activeIndex?: number | number[] | null;
20
+ /**
21
+ * Whether multiple tabs can be expanded simultaneously.
22
+ */
23
+ multiple?: boolean;
24
+ /**
25
+ * Icon shown when a tab is collapsed.
26
+ */
27
+ expandIcon?: React.ReactNode;
28
+ /**
29
+ * Icon shown when a tab is expanded.
30
+ */
31
+ collapseIcon?: React.ReactNode;
32
+ /**
33
+ * Callback invoked when expanded tab indexes change.
34
+ */
35
+ onTabChange?: (e: AccordionTabChangeEvent) => void;
36
+ /**
37
+ * Callback invoked when a tab is opened.
38
+ */
39
+ onTabOpen?: (e: AccordionTabOpenEvent) => void;
40
+ /**
41
+ * Callback invoked when a tab is closed.
42
+ */
43
+ onTabClose?: (e: AccordionTabCloseEvent) => void;
44
+ /**
45
+ * Accordion transition configuration.
46
+ * Accepted for API compatibility; the implementation uses a basic CSS transition.
47
+ */
48
+ transitionOptions?: unknown;
49
+ /**
50
+ * PrimeReact pass-through props. Accepted for type compatibility (ignored in runtime).
51
+ */
52
+ pt?: unknown;
53
+ /**
54
+ * PrimeReact pass-through options. Accepted for type compatibility (ignored in runtime).
55
+ */
56
+ ptOptions?: unknown;
57
+ /**
58
+ * When enabled, removes component related styles (if supported).
59
+ * Accepted for type compatibility (ignored in runtime).
60
+ */
61
+ unstyled?: boolean;
62
+ /**
63
+ * Accordion tabs.
64
+ */
65
+ children?: React.ReactNode;
66
+ }
67
+ export declare const Accordion: {
68
+ ({ activeIndex, multiple, expandIcon, collapseIcon, onTabChange, onTabOpen, onTabClose, className, transitionOptions: transitionOptionsProp, pt: _pt, ptOptions: _ptOptions, unstyled: _unstyled, children, ...props }: AccordionProps): import("react/jsx-runtime").JSX.Element;
69
+ displayName: string;
70
+ };
71
+ //# sourceMappingURL=Accordion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../../src/components/accordion/Accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmC,MAAM,OAAO,CAAA;AASvD,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,KAAK,CAAC,cAAc,CAAA;CACpC;AAED,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,KAAK,CAAC,cAAc,CAAA;CACpC;AAED,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,aAAa,EAAE,KAAK,CAAC,cAAc,CAAA;CACpC;AAED,MAAM,WAAW,cAAe,SAAQ,IAAI,CAC1C,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EACpC,UAAU,CACX;IACC;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,IAAI,CAAA;IAEtC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAE5B;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAE9B;;OAEG;IACH,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,uBAAuB,KAAK,IAAI,CAAA;IAElD;;OAEG;IACH,SAAS,CAAC,EAAE,CAAC,CAAC,EAAE,qBAAqB,KAAK,IAAI,CAAA;IAE9C;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,CAAC,EAAE,sBAAsB,KAAK,IAAI,CAAA;IAEhD;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAE3B;;OAEG;IACH,EAAE,CAAC,EAAE,OAAO,CAAA;IAEZ;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAaD,eAAO,MAAM,SAAS;4NAenB,cAAc;;CAuLhB,CAAA"}
@@ -0,0 +1,100 @@
1
+ import { default as React } from 'react';
2
+ export interface AccordionTabHeaderTemplateParams {
3
+ /**
4
+ * Index of this tab in the Accordion
5
+ */
6
+ index: number;
7
+ /**
8
+ * Whether this tab is currently expanded
9
+ */
10
+ selected: boolean;
11
+ /**
12
+ * Whether this tab is disabled
13
+ */
14
+ disabled: boolean;
15
+ /**
16
+ * Total number of tabs in the Accordion
17
+ */
18
+ count: number;
19
+ /**
20
+ * Is this the first tab in the Accordion
21
+ */
22
+ first: boolean;
23
+ /**
24
+ * Is this the last tab in the Accordion
25
+ */
26
+ last: boolean;
27
+ }
28
+ export type AccordionTabHeaderTemplate = (params: AccordionTabHeaderTemplateParams) => React.ReactNode;
29
+ export interface AccordionTabProps {
30
+ /**
31
+ * Header content for the tab.
32
+ */
33
+ header?: React.ReactNode;
34
+ /**
35
+ * Header template renderer.
36
+ */
37
+ headerTemplate?: AccordionTabHeaderTemplate;
38
+ /**
39
+ * Whether this tab is disabled (cannot be toggled).
40
+ */
41
+ disabled?: boolean;
42
+ /**
43
+ * Content rendered when the tab is expanded.
44
+ */
45
+ children?: React.ReactNode;
46
+ /**
47
+ * Style class of the tab header and content.
48
+ */
49
+ className?: string;
50
+ /**
51
+ * Style class of the tab header.
52
+ */
53
+ headerClassName?: string;
54
+ /**
55
+ * Inline styles of the tab header.
56
+ */
57
+ headerStyle?: React.CSSProperties;
58
+ /**
59
+ * Style class of the tab content.
60
+ */
61
+ contentClassName?: string;
62
+ /**
63
+ * Inline styles of the tab content.
64
+ */
65
+ contentStyle?: React.CSSProperties;
66
+ /**
67
+ * Inline style of the tab header and content.
68
+ */
69
+ style?: React.CSSProperties;
70
+ /**
71
+ * Allows customizing the tab header tab index.
72
+ */
73
+ tabIndex?: number;
74
+ /**
75
+ * Extra header props (for accessibility attributes etc).
76
+ */
77
+ headerProps?: React.ButtonHTMLAttributes<HTMLButtonElement> & React.AriaAttributes;
78
+ /**
79
+ * PrimeReact pass-through props. Accepted for API compatibility (ignored in runtime).
80
+ */
81
+ pt?: unknown;
82
+ /**
83
+ * PrimeReact pass-through options. Accepted for API compatibility (ignored in runtime).
84
+ */
85
+ ptOptions?: unknown;
86
+ /**
87
+ * When enabled, removes component related styles. Accepted for API compatibility (ignored in runtime).
88
+ */
89
+ unstyled?: boolean;
90
+ }
91
+ /**
92
+ * Helper component used inside `Accordion`.
93
+ *
94
+ * Rendering is handled by `Accordion` (this component returns `null`).
95
+ */
96
+ export declare const AccordionTab: {
97
+ (_props: AccordionTabProps): null;
98
+ displayName: string;
99
+ };
100
+ //# sourceMappingURL=AccordionTab.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AccordionTab.d.ts","sourceRoot":"","sources":["../../../src/components/accordion/AccordionTab.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,WAAW,gCAAgC;IAC/C;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAA;IACjB;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAA;IACjB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,KAAK,EAAE,OAAO,CAAA;IACd;;OAEG;IACH,IAAI,EAAE,OAAO,CAAA;CACd;AAED,MAAM,MAAM,0BAA0B,GAAG,CACvC,MAAM,EAAE,gCAAgC,KACrC,KAAK,CAAC,SAAS,CAAA;AAEpB,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACxB;;OAEG;IACH,cAAc,CAAC,EAAE,0BAA0B,CAAA;IAC3C;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAE1B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;IACjC;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;IAElC;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;IAE3B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,GACzD,KAAK,CAAC,cAAc,CAAA;IAEtB;;OAEG;IACH,EAAE,CAAC,EAAE,OAAO,CAAA;IACZ;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED;;;;GAIG;AACH,eAAO,MAAM,YAAY;aAAY,iBAAiB;;CAAS,CAAA"}
@@ -0,0 +1,29 @@
1
+ import { default as React } from 'react';
2
+ export interface PrimaryButtonProps {
3
+ /**
4
+ * The content of the button
5
+ */
6
+ children: React.ReactNode;
7
+ /**
8
+ * Whether the button is disabled
9
+ */
10
+ disabled?: boolean;
11
+ /**
12
+ * Whether the button is loading
13
+ */
14
+ loading?: boolean;
15
+ /**
16
+ * Click handler
17
+ */
18
+ onClick?: () => void;
19
+ /**
20
+ * Additional CSS class name
21
+ */
22
+ className?: string;
23
+ /**
24
+ * Test ID for testing
25
+ */
26
+ 'data-testid'?: string;
27
+ }
28
+ export declare const PrimaryButton: ({ children, disabled, loading, onClick, className, "data-testid": testId, ...props }: PrimaryButtonProps) => import("react/jsx-runtime").JSX.Element;
29
+ //# sourceMappingURL=PrimaryButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PrimaryButton.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/PrimaryButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED,eAAO,MAAM,aAAa,GAAI,sFAQ3B,kBAAkB,4CAsBpB,CAAA"}
@@ -0,0 +1,25 @@
1
+ import { default as React } from 'react';
2
+ export interface SecondaryButtonProps {
3
+ /**
4
+ * The content of the button
5
+ */
6
+ children: React.ReactNode;
7
+ /**
8
+ * Whether the button is disabled
9
+ */
10
+ disabled?: boolean;
11
+ /**
12
+ * Click handler
13
+ */
14
+ onClick?: () => void;
15
+ /**
16
+ * Additional CSS class name
17
+ */
18
+ className?: string;
19
+ /**
20
+ * Test ID for testing
21
+ */
22
+ 'data-testid'?: string;
23
+ }
24
+ export declare const SecondaryButton: ({ children, disabled, onClick, className, "data-testid": testId, ...props }: SecondaryButtonProps) => import("react/jsx-runtime").JSX.Element;
25
+ //# sourceMappingURL=SecondaryButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SecondaryButton.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/SecondaryButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED,eAAO,MAAM,eAAe,GAAI,6EAO7B,oBAAoB,4CAqBtB,CAAA"}
@@ -0,0 +1,107 @@
1
+ import { default as React } from 'react';
2
+ export interface DropdownOption {
3
+ label?: string;
4
+ value?: string;
5
+ [key: string]: unknown;
6
+ }
7
+ export interface DropdownChangeEvent {
8
+ value: DropdownOption['value'] | null;
9
+ originalEvent: React.SyntheticEvent;
10
+ }
11
+ export interface DropdownEditEndEvent {
12
+ /** Trimmed value that was in the input when Enter was pressed */
13
+ value: string;
14
+ /** Selected option value if a matching option was found and selected; null otherwise */
15
+ selectedValue: DropdownOption['value'] | null;
16
+ originalEvent: React.KeyboardEvent;
17
+ }
18
+ export interface DropdownProps<T = DropdownOption> {
19
+ /**
20
+ * Selected value (controlled). Must match optionValue of the selected option.
21
+ */
22
+ value?: unknown;
23
+ /**
24
+ * Callback when selection changes
25
+ */
26
+ onChange?: (e: DropdownChangeEvent) => void;
27
+ /**
28
+ * Array of options
29
+ */
30
+ options: T[];
31
+ /**
32
+ * Property name for the option label (default: "label")
33
+ */
34
+ optionLabel?: keyof T | string;
35
+ /**
36
+ * Property name for the option value (default: "value")
37
+ */
38
+ optionValue?: keyof T | string;
39
+ /**
40
+ * Name of the property in the option object that indicates whether the option is disabled.
41
+ * When set (e.g. optionDisabled="disabled"), options with a truthy value for that key
42
+ * are disabled and cannot be selected. Matches PrimeReact Dropdown optionDisabled API.
43
+ * @see https://primereact.org/dropdown/#api.Dropdown.props.optionDisabled
44
+ */
45
+ optionDisabled?: keyof T | string;
46
+ /**
47
+ * Placeholder when no value selected
48
+ */
49
+ placeholder?: string;
50
+ /**
51
+ * Enable filter (search) in the overlay
52
+ */
53
+ filter?: boolean;
54
+ /**
55
+ * When true, the trigger is an editable input: user can type to filter options
56
+ * and select from the list. Matches PrimeReact Dropdown editable behavior.
57
+ * @see https://primereact.org/dropdown/#editable
58
+ */
59
+ editable?: boolean;
60
+ /**
61
+ * Called when the user ends editing by pressing Enter in the editable input.
62
+ * Fires with the trimmed input value and the selected option value (if a match was found).
63
+ */
64
+ onEditEnd?: (e: DropdownEditEndEvent) => void;
65
+ /**
66
+ * Whether the dropdown is disabled
67
+ */
68
+ disabled?: boolean;
69
+ /**
70
+ * Whether the field is required (shows asterisk on label)
71
+ */
72
+ required?: boolean;
73
+ /**
74
+ * Label text displayed above the input
75
+ */
76
+ label?: React.ReactNode;
77
+ /**
78
+ * Input element id for label association
79
+ */
80
+ inputId?: string;
81
+ /**
82
+ * Additional CSS class name for the root
83
+ */
84
+ className?: string;
85
+ /**
86
+ * Additional CSS class name for the overlay panel
87
+ */
88
+ panelClassName?: string;
89
+ /**
90
+ * Template for the selected value displayed in the trigger.
91
+ * Receives the selected option object or null when no value is selected.
92
+ * @see https://primereact.org/dropdown/#template
93
+ */
94
+ valueTemplate?: (option: T | null) => React.ReactNode;
95
+ /**
96
+ * Template for each option in the dropdown list.
97
+ * Receives the option object.
98
+ * @see https://primereact.org/dropdown/#template
99
+ */
100
+ itemTemplate?: (option: T) => React.ReactNode;
101
+ /**
102
+ * Test ID for testing
103
+ */
104
+ 'data-testid'?: string;
105
+ }
106
+ export declare const Dropdown: <T extends Record<string, unknown>>({ value, onChange, onEditEnd, options, optionLabel, optionValue, optionDisabled, placeholder, filter, editable, disabled, required, label, inputId, className, panelClassName, valueTemplate, itemTemplate, "data-testid": testId, }: DropdownProps<T>) => import("react/jsx-runtime").JSX.Element;
107
+ //# sourceMappingURL=Dropdown.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/Dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsD,MAAM,OAAO,CAAA;AAI1E,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CACvB;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAA;IACrC,aAAa,EAAE,KAAK,CAAC,cAAc,CAAA;CACpC;AAED,MAAM,WAAW,oBAAoB;IACnC,iEAAiE;IACjE,KAAK,EAAE,MAAM,CAAA;IACb,wFAAwF;IACxF,aAAa,EAAE,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAA;IAC7C,aAAa,EAAE,KAAK,CAAC,aAAa,CAAA;CACnC;AAED,MAAM,WAAW,aAAa,CAAC,CAAC,GAAG,cAAc;IAC/C;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,mBAAmB,KAAK,IAAI,CAAA;IAC3C;;OAEG;IACH,OAAO,EAAE,CAAC,EAAE,CAAA;IACZ;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,GAAG,MAAM,CAAA;IAC9B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,GAAG,MAAM,CAAA;IAC9B;;;;;OAKG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,GAAG,MAAM,CAAA;IACjC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;;OAGG;IACH,SAAS,CAAC,EAAE,CAAC,CAAC,EAAE,oBAAoB,KAAK,IAAI,CAAA;IAC7C;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACvB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB;;;;OAIG;IACH,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,GAAG,IAAI,KAAK,KAAK,CAAC,SAAS,CAAA;IACrD;;;;OAIG;IACH,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,KAAK,CAAC,SAAS,CAAA;IAC7C;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AA4BD,eAAO,MAAM,QAAQ,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,sOAoBzD,aAAa,CAAC,CAAC,CAAC,4CAkYlB,CAAA"}
@@ -0,0 +1,41 @@
1
+ import { default as React } from 'react';
2
+ export interface InputTextProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'className'> {
3
+ /**
4
+ * Label text displayed above the input
5
+ */
6
+ label?: React.ReactNode;
7
+ /**
8
+ * When set, an info icon is shown next to the label with this string as tooltip
9
+ */
10
+ tooltip?: string;
11
+ /**
12
+ * Whether the field is required (shows asterisk on label)
13
+ */
14
+ required?: boolean;
15
+ /**
16
+ * Input element id for label association
17
+ */
18
+ inputId?: string;
19
+ /**
20
+ * When true, renders a &lt;textarea&gt; instead of &lt;input&gt;
21
+ */
22
+ textarea?: boolean;
23
+ /**
24
+ * Number of visible rows (textarea only). Defaults to 3 when textarea is true.
25
+ */
26
+ rows?: number;
27
+ /**
28
+ * Error text displayed below the input
29
+ */
30
+ error?: React.ReactNode;
31
+ /**
32
+ * Additional CSS class name for the root
33
+ */
34
+ className?: string;
35
+ /**
36
+ * Test ID for testing
37
+ */
38
+ 'data-testid'?: string;
39
+ }
40
+ export declare const InputText: ({ label, tooltip, required, inputId: inputIdProp, textarea, rows: rowsProp, error, className, "data-testid": testId, disabled, ...rest }: InputTextProps) => import("react/jsx-runtime").JSX.Element;
41
+ //# sourceMappingURL=InputText.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InputText.d.ts","sourceRoot":"","sources":["../../../src/components/input/InputText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgB,MAAM,OAAO,CAAA;AAIpC,MAAM,WAAW,cAAe,SAAQ,IAAI,CAC1C,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAC3C,MAAM,GAAG,WAAW,CACrB;IACC;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACvB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACvB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED,eAAO,MAAM,SAAS,GAAI,0IAYvB,cAAc,4CAmFhB,CAAA"}
@@ -0,0 +1,63 @@
1
+ import { default as React } from 'react';
2
+ export interface SelectButtonOption {
3
+ label?: string;
4
+ value?: string;
5
+ [key: string]: unknown;
6
+ }
7
+ export interface SelectButtonChangeEvent {
8
+ value: SelectButtonOption['value'] | SelectButtonOption['value'][] | null;
9
+ originalEvent: React.SyntheticEvent;
10
+ }
11
+ export interface SelectButtonProps<T = SelectButtonOption> {
12
+ /**
13
+ * Selected value (controlled). Single value or array when multiple.
14
+ */
15
+ value?: unknown;
16
+ /**
17
+ * Callback when selection changes
18
+ */
19
+ onChange?: (e: SelectButtonChangeEvent) => void;
20
+ /**
21
+ * Array of options
22
+ */
23
+ options: T[];
24
+ /**
25
+ * Property name for the option label (default: "label")
26
+ */
27
+ optionLabel?: keyof T | string;
28
+ /**
29
+ * Property name for the option value (default: "value")
30
+ */
31
+ optionValue?: keyof T | string;
32
+ /**
33
+ * Name of the property that indicates whether an option is disabled.
34
+ * @see https://primereact.org/selectbutton/
35
+ */
36
+ optionDisabled?: keyof T | string;
37
+ /**
38
+ * When true, allows multiple selection (value is an array).
39
+ */
40
+ multiple?: boolean;
41
+ /**
42
+ * Template for each option. Receives the option object.
43
+ */
44
+ itemTemplate?: (option: T) => React.ReactNode;
45
+ /**
46
+ * Whether the component is disabled
47
+ */
48
+ disabled?: boolean;
49
+ /**
50
+ * Invalid state for validation styling
51
+ */
52
+ invalid?: boolean;
53
+ /**
54
+ * Additional CSS class name for the root
55
+ */
56
+ className?: string;
57
+ /**
58
+ * Test ID for testing
59
+ */
60
+ 'data-testid'?: string;
61
+ }
62
+ export declare const SelectButton: <T extends Record<string, unknown>>({ value, onChange, options, optionLabel, optionValue, optionDisabled, multiple, itemTemplate, disabled, invalid, className, "data-testid": testId, }: SelectButtonProps<T>) => import("react/jsx-runtime").JSX.Element;
63
+ //# sourceMappingURL=SelectButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectButton.d.ts","sourceRoot":"","sources":["../../../src/components/selectbutton/SelectButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,MAAM,WAAW,kBAAkB;IACjC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CACvB;AAED,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,kBAAkB,CAAC,OAAO,CAAC,GAAG,kBAAkB,CAAC,OAAO,CAAC,EAAE,GAAG,IAAI,CAAA;IACzE,aAAa,EAAE,KAAK,CAAC,cAAc,CAAA;CACpC;AAED,MAAM,WAAW,iBAAiB,CAAC,CAAC,GAAG,kBAAkB;IACvD;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,uBAAuB,KAAK,IAAI,CAAA;IAC/C;;OAEG;IACH,OAAO,EAAE,CAAC,EAAE,CAAA;IACZ;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,GAAG,MAAM,CAAA;IAC9B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,GAAG,MAAM,CAAA;IAC9B;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,GAAG,MAAM,CAAA;IACjC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,KAAK,CAAC,SAAS,CAAA;IAC7C;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AA4BD,eAAO,MAAM,YAAY,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,sJAa7D,iBAAiB,CAAC,CAAC,CAAC,4CAyFtB,CAAA"}
@@ -0,0 +1,39 @@
1
+ import { ReactNode } from 'react';
2
+ export interface TabItem {
3
+ /**
4
+ * Unique identifier for the tab
5
+ */
6
+ id: string;
7
+ /**
8
+ * Display label for the tab
9
+ */
10
+ label: string;
11
+ /**
12
+ * Content to display when tab is active
13
+ */
14
+ content: ReactNode;
15
+ }
16
+ export interface TabsProps {
17
+ /**
18
+ * Array of tab items to display
19
+ */
20
+ tabs: TabItem[];
21
+ /**
22
+ * ID of the currently active tab
23
+ */
24
+ activeTabId: string;
25
+ /**
26
+ * Callback function when tab is changed
27
+ */
28
+ onTabChange: (tabId: string) => void;
29
+ /**
30
+ * Additional CSS class name
31
+ */
32
+ className?: string;
33
+ /**
34
+ * Test ID for testing
35
+ */
36
+ 'data-testid'?: string;
37
+ }
38
+ export declare const Tabs: ({ tabs, activeTabId, onTabChange, className, "data-testid": testId, ...props }: TabsProps) => import("react/jsx-runtime").JSX.Element;
39
+ //# sourceMappingURL=Tabs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/components/tabs/Tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGjC,MAAM,WAAW,OAAO;IACtB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,OAAO,EAAE,SAAS,CAAA;CACnB;AAED,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,IAAI,EAAE,OAAO,EAAE,CAAA;IACf;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;IACnB;;OAEG;IACH,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACpC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED,eAAO,MAAM,IAAI,GAAI,gFAOlB,SAAS,4CAsCX,CAAA"}
@@ -0,0 +1,14 @@
1
+ import { ReactNode } from 'react';
2
+ import { ToastErrorMessage, ToastSeverity } from './types';
3
+ export interface ToastProviderProps {
4
+ children: ReactNode;
5
+ }
6
+ interface ToastContextValue {
7
+ showSuccess: (title: string, message?: string | JSX.Element, life?: number) => void;
8
+ showError: (title: string, message?: ToastErrorMessage, life?: number) => void;
9
+ showToast: (title: string, message: string | JSX.Element, severity: ToastSeverity) => void;
10
+ }
11
+ export declare const useToast: () => ToastContextValue;
12
+ export declare const ToastProvider: (props: ToastProviderProps) => import("react/jsx-runtime").JSX.Element;
13
+ export {};
14
+ //# sourceMappingURL=ToastProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ToastProvider.d.ts","sourceRoot":"","sources":["../../../src/components/toast/ToastProvider.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,SAAS,EAIV,MAAM,OAAO,CAAA;AAGd,OAAO,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAK/D,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,SAAS,CAAA;CACpB;AAID,UAAU,iBAAiB;IACzB,WAAW,EAAE,CACX,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC,OAAO,EAC9B,IAAI,CAAC,EAAE,MAAM,KACV,IAAI,CAAA;IACT,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,iBAAiB,EAAE,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IAC9E,SAAS,EAAE,CACT,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,GAAG,GAAG,CAAC,OAAO,EAC7B,QAAQ,EAAE,aAAa,KACpB,IAAI,CAAA;CACV;AAQD,eAAO,MAAM,QAAQ,yBAAiC,CAAA;AAEtD,eAAO,MAAM,aAAa,GAAI,OAAO,kBAAkB,4CAqGtD,CAAA"}
@@ -0,0 +1,9 @@
1
+ import { ReactNode } from 'react';
2
+ import { ToastSeverity } from './types';
3
+ export interface ToastTemplateProps {
4
+ title: string;
5
+ message?: string | ReactNode;
6
+ type?: ToastSeverity;
7
+ }
8
+ export declare const ToastTemplate: (props: ToastTemplateProps) => import("react/jsx-runtime").JSX.Element;
9
+ //# sourceMappingURL=ToastTemplate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ToastTemplate.d.ts","sourceRoot":"","sources":["../../../src/components/toast/ToastTemplate.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAS5C,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,IAAI,CAAC,EAAE,aAAa,CAAA;CACrB;AAED,eAAO,MAAM,aAAa,GAAI,OAAO,kBAAkB,4CA2BtD,CAAA"}
@@ -0,0 +1,6 @@
1
+ export { ToastProvider, useToast } from './ToastProvider';
2
+ export type { ToastProviderProps } from './ToastProvider';
3
+ export { ToastTemplate } from './ToastTemplate';
4
+ export type { ToastTemplateProps } from './ToastTemplate';
5
+ export type { ToastErrorItem, ToastErrorMessage, ToastSeverity } from './types';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/toast/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AACzD,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AACzD,YAAY,EAAE,cAAc,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA"}
@@ -0,0 +1,11 @@
1
+ import { ToastMessageOptions } from 'primereact/toast';
2
+ import { ReactNode } from 'react';
3
+ /** PrimeReact toast severity (aligned with `ToastMessageOptions`) */
4
+ export type ToastSeverity = NonNullable<ToastMessageOptions['severity']>;
5
+ /** API / form error shape often passed to `showError` */
6
+ export interface ToastErrorItem {
7
+ message: string;
8
+ field?: string;
9
+ }
10
+ export type ToastErrorMessage = string | string[] | ToastErrorItem[] | ReactNode | undefined;
11
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/toast/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjC,qEAAqE;AACrE,MAAM,MAAM,aAAa,GAAG,WAAW,CAAC,mBAAmB,CAAC,UAAU,CAAC,CAAC,CAAA;AAExE,yDAAyD;AACzD,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,MAAM,MAAM,iBAAiB,GACzB,MAAM,GACN,MAAM,EAAE,GACR,cAAc,EAAE,GAChB,SAAS,GACT,SAAS,CAAA"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Emporix Component Library
3
+ *
4
+ * For components to render with correct layout and styles in your app,
5
+ * import the library styles once (e.g. in your root entry or App):
6
+ *
7
+ * import '@emporix/component-library/styles'
8
+ *
9
+ * Or in CSS: @import '@emporix/component-library/styles';
10
+ */
11
+ export { PrimaryButton } from './components/buttons/PrimaryButton';
12
+ export type { PrimaryButtonProps } from './components/buttons/PrimaryButton';
13
+ export { SecondaryButton } from './components/buttons/SecondaryButton';
14
+ export type { SecondaryButtonProps } from './components/buttons/SecondaryButton';
15
+ export { Tabs } from './components/tabs/Tabs';
16
+ export type { TabsProps, TabItem } from './components/tabs/Tabs';
17
+ export { Dropdown } from './components/dropdown/Dropdown';
18
+ export type { DropdownProps, DropdownOption, DropdownChangeEvent, DropdownEditEndEvent, } from './components/dropdown/Dropdown';
19
+ export { InputText } from './components/input/InputText';
20
+ export type { InputTextProps } from './components/input/InputText';
21
+ export { Accordion } from './components/accordion/Accordion';
22
+ export type { AccordionProps, AccordionTabCloseEvent, AccordionTabOpenEvent, AccordionTabChangeEvent, } from './components/accordion/Accordion';
23
+ export { AccordionTab } from './components/accordion/AccordionTab';
24
+ export type { AccordionTabProps } from './components/accordion/AccordionTab';
25
+ export { SelectButton } from './components/selectbutton/SelectButton';
26
+ export type { SelectButtonProps, SelectButtonOption, SelectButtonChangeEvent, } from './components/selectbutton/SelectButton';
27
+ export { ToastProvider, useToast, ToastTemplate } from './components/toast';
28
+ export type { ToastProviderProps, ToastTemplateProps, ToastErrorItem, ToastErrorMessage, ToastSeverity, } from './components/toast';
29
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAA;AAClE,YAAY,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAA;AAE5E,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAA;AACtE,YAAY,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAA;AAEhF,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAA;AAC7C,YAAY,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AAEhE,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAA;AACzD,YAAY,EACV,aAAa,EACb,cAAc,EACd,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,gCAAgC,CAAA;AAEvC,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAA;AACxD,YAAY,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAElE,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAA;AAC5D,YAAY,EACV,cAAc,EACd,sBAAsB,EACtB,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,kCAAkC,CAAA;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAA;AAClE,YAAY,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAA;AAE5E,OAAO,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAA;AACrE,YAAY,EACV,iBAAiB,EACjB,kBAAkB,EAClB,uBAAuB,GACxB,MAAM,wCAAwC,CAAA;AAE/C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAC3E,YAAY,EACV,kBAAkB,EAClB,kBAAkB,EAClB,cAAc,EACd,iBAAiB,EACjB,aAAa,GACd,MAAM,oBAAoB,CAAA;AAG3B,OAAO,qBAAqB,CAAA"}