@emporix/component-library 2.1.2 → 2.3.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.
- package/README.md +116 -0
- package/dist/components/backbutton/BackButton.d.ts +27 -0
- package/dist/components/backbutton/BackButton.d.ts.map +1 -0
- package/dist/components/backbutton/index.d.ts +3 -0
- package/dist/components/backbutton/index.d.ts.map +1 -0
- package/dist/components/confirmbox/ConfirmBox.d.ts +56 -0
- package/dist/components/confirmbox/ConfirmBox.d.ts.map +1 -0
- package/dist/components/confirmbox/index.d.ts +3 -0
- package/dist/components/confirmbox/index.d.ts.map +1 -0
- package/dist/components/datevalue/DateValue.d.ts +39 -0
- package/dist/components/datevalue/DateValue.d.ts.map +1 -0
- package/dist/components/datevalue/index.d.ts +3 -0
- package/dist/components/datevalue/index.d.ts.map +1 -0
- package/dist/components/sectionbox/SectionBox.d.ts +65 -0
- package/dist/components/sectionbox/SectionBox.d.ts.map +1 -0
- package/dist/components/sectionbox/index.d.ts +3 -0
- package/dist/components/sectionbox/index.d.ts.map +1 -0
- package/dist/components/sectionbox/textToTitleCase.d.ts +10 -0
- package/dist/components/sectionbox/textToTitleCase.d.ts.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +3015 -2835
- package/dist/index.umd.js +37 -37
- package/dist/style.css +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -369,6 +369,94 @@ function ConfirmDialogExample() {
|
|
|
369
369
|
|
|
370
370
|
Requires only `@emporix/component-library/styles` (PrimeReact theme CSS is bundled).
|
|
371
371
|
|
|
372
|
+
### BackButton
|
|
373
|
+
|
|
374
|
+
Compact icon-only back button for page and header navigation. It stays context-free: pass the click handler and any translated aria label from the app.
|
|
375
|
+
|
|
376
|
+
```tsx
|
|
377
|
+
import { BackButton } from '@emporix/component-library'
|
|
378
|
+
|
|
379
|
+
<BackButton onClick={() => navigate('/users')} />
|
|
380
|
+
<BackButton
|
|
381
|
+
onClick={() => navigate('/customer-groups')}
|
|
382
|
+
ariaLabel='Back to customer groups'
|
|
383
|
+
/>
|
|
384
|
+
```
|
|
385
|
+
|
|
386
|
+
#### Props
|
|
387
|
+
|
|
388
|
+
| Prop | Type | Default | Description |
|
|
389
|
+
| ----------- | ---------- | --------------- | ----------------------------------- |
|
|
390
|
+
| onClick | () => void | - | Click handler |
|
|
391
|
+
| className | string | - | Additional CSS class |
|
|
392
|
+
| disabled | boolean | `false` | Whether the button is disabled |
|
|
393
|
+
| ariaLabel | string | `'Back'` | Accessible label for screen readers |
|
|
394
|
+
| data-testid | string | `'back-button'` | Test ID for testing |
|
|
395
|
+
|
|
396
|
+
### ConfirmBox
|
|
397
|
+
|
|
398
|
+
Reusable confirmation dialog shell built on top of CL `Dialog`, `PrimaryButton`, and `SecondaryButton`. It stays context-free: pass already translated labels from the app.
|
|
399
|
+
|
|
400
|
+
```tsx
|
|
401
|
+
import { ConfirmBox } from '@emporix/component-library'
|
|
402
|
+
;<ConfirmBox
|
|
403
|
+
visible={visible}
|
|
404
|
+
onAccept={handleDelete}
|
|
405
|
+
onReject={() => setVisible(false)}
|
|
406
|
+
title='Delete group'
|
|
407
|
+
message='This action cannot be undone.'
|
|
408
|
+
acceptLabel='Delete'
|
|
409
|
+
rejectLabel='Cancel'
|
|
410
|
+
/>
|
|
411
|
+
```
|
|
412
|
+
|
|
413
|
+
#### Props
|
|
414
|
+
|
|
415
|
+
| Prop | Type | Default | Description |
|
|
416
|
+
| ----------- | ------------- | -------- | --------------------------------------------- |
|
|
417
|
+
| visible | boolean | - | Whether the confirm dialog is visible |
|
|
418
|
+
| onAccept | () => void | - | Called when the primary action is triggered |
|
|
419
|
+
| onReject | () => void | - | Called when the dialog is dismissed |
|
|
420
|
+
| loading | boolean | `false` | Disables actions and shows loading on accept |
|
|
421
|
+
| title | ReactNode | - | Dialog title area |
|
|
422
|
+
| message | ReactNode | - | Main dialog message |
|
|
423
|
+
| acceptLabel | ReactNode | `Yes` | Accept button label |
|
|
424
|
+
| rejectLabel | ReactNode | `Cancel` | Reject button label |
|
|
425
|
+
| children | ReactNode | - | Optional extra body content below the message |
|
|
426
|
+
| className | string | - | Additional CSS class on the dialog root |
|
|
427
|
+
| style | CSSProperties | - | Inline styles on the dialog root |
|
|
428
|
+
| data-testid | string | - | Test ID on the dialog root |
|
|
429
|
+
|
|
430
|
+
### DateValue
|
|
431
|
+
|
|
432
|
+
Locale-aware date/time display helper for audit logs, tables, and detail views. The app provides the locale explicitly so the component stays context-free.
|
|
433
|
+
|
|
434
|
+
```tsx
|
|
435
|
+
import { DateValue } from '@emporix/component-library'
|
|
436
|
+
|
|
437
|
+
<DateValue date='2026-07-28T10:15:00.000Z' locale='en-GB' />
|
|
438
|
+
<DateValue
|
|
439
|
+
date='2026-07-28T10:15:00.000Z'
|
|
440
|
+
locale='en-GB'
|
|
441
|
+
showTime
|
|
442
|
+
hour12={false}
|
|
443
|
+
timeZone='UTC'
|
|
444
|
+
/>
|
|
445
|
+
```
|
|
446
|
+
|
|
447
|
+
#### Props
|
|
448
|
+
|
|
449
|
+
| Prop | Type | Default | Description |
|
|
450
|
+
| ----------- | ----------------------------- | -------------- | ----------------------------------------------- |
|
|
451
|
+
| date | `Date \| string \| undefined` | - | Date value to format |
|
|
452
|
+
| locale | string | `en` | Locale used for date/time formatting |
|
|
453
|
+
| showTime | boolean | `false` | Renders a secondary time value next to the date |
|
|
454
|
+
| nullText | string | `--` | Fallback text when the date is missing/invalid |
|
|
455
|
+
| timeZone | string | - | Optional `Intl.DateTimeFormat` time zone |
|
|
456
|
+
| hour12 | boolean | locale default | Controls 12-hour vs 24-hour time formatting |
|
|
457
|
+
| className | string | - | Additional CSS class on the root |
|
|
458
|
+
| data-testid | string | - | Test ID on the root |
|
|
459
|
+
|
|
372
460
|
### DataTable
|
|
373
461
|
|
|
374
462
|
Encapsulated data table built on [PrimeReact DataTable](https://primereact.org/datatable/). Styles are scoped via CSS modules. Pass `columns`, optional controlled `pagination`, selection, `rowActions`, and an `emptyTemplate` for empty results.
|
|
@@ -825,6 +913,34 @@ import { Message } from '@emporix/component-library'
|
|
|
825
913
|
| className | string | - | Additional CSS class on the root element |
|
|
826
914
|
| data-testid | string | - | Test ID for testing |
|
|
827
915
|
|
|
916
|
+
### SectionBox
|
|
917
|
+
|
|
918
|
+
Bordered content section with an optional title and actions. Pattern A (no PrimeReact dependency). Common layout primitive for grouping form fields or detail content.
|
|
919
|
+
|
|
920
|
+
```tsx
|
|
921
|
+
import { SectionBox } from '@emporix/component-library'
|
|
922
|
+
;<SectionBox name='orderDetails' actions={<PrimaryButton>Add</PrimaryButton>}>
|
|
923
|
+
<p>Section content goes here.</p>
|
|
924
|
+
</SectionBox>
|
|
925
|
+
```
|
|
926
|
+
|
|
927
|
+
`name` is rendered through a title-case transform (e.g. `orderDetails` renders as `Order Details`); pass already-formatted text if you don't want that transform applied. `SectionTitle` (the title/actions row) is also exported standalone for use outside of `SectionBox`.
|
|
928
|
+
|
|
929
|
+
#### Props
|
|
930
|
+
|
|
931
|
+
| Prop | Type | Default | Description |
|
|
932
|
+
| ---------------- | ------------- | ------- | ------------------------------------------------ |
|
|
933
|
+
| children | ReactNode | - | Content rendered inside the bordered box |
|
|
934
|
+
| name | string | - | Optional title, rendered via `SectionTitle` |
|
|
935
|
+
| actions | ReactNode | - | Optional actions rendered alongside the title |
|
|
936
|
+
| sectionStyles | CSSProperties | - | Inline styles applied to the inner bordered box |
|
|
937
|
+
| sectionClassName | string | - | Additional CSS class applied to the inner box |
|
|
938
|
+
| className | string | - | Additional CSS class applied to the root wrapper |
|
|
939
|
+
| style | CSSProperties | - | Inline styles applied to the root wrapper |
|
|
940
|
+
| data-testid | string | - | Test ID for testing |
|
|
941
|
+
|
|
942
|
+
`SectionTitle` accepts `name`, `actions`, `className`, and `data-testid`.
|
|
943
|
+
|
|
828
944
|
### ProgressSpinner
|
|
829
945
|
|
|
830
946
|
Indeterminate loading spinner for overlays and blocking states. Pattern A (no PrimeReact dependency). API inspired by [PrimeReact ProgressSpinner](https://primereact.org/progressspinner/).
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface BackButtonProps {
|
|
2
|
+
/**
|
|
3
|
+
* Click handler.
|
|
4
|
+
*/
|
|
5
|
+
onClick: () => void;
|
|
6
|
+
/**
|
|
7
|
+
* Additional CSS class name.
|
|
8
|
+
*/
|
|
9
|
+
className?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Whether the button is disabled.
|
|
12
|
+
* @default false
|
|
13
|
+
*/
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Accessible label announced by screen readers.
|
|
17
|
+
* @default 'Back'
|
|
18
|
+
*/
|
|
19
|
+
ariaLabel?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Test ID for testing.
|
|
22
|
+
* @default 'back-button'
|
|
23
|
+
*/
|
|
24
|
+
'data-testid'?: string;
|
|
25
|
+
}
|
|
26
|
+
export declare const BackButton: ({ onClick, className, disabled, ariaLabel, "data-testid": testId, }: BackButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
//# sourceMappingURL=BackButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BackButton.d.ts","sourceRoot":"","sources":["../../../src/components/backbutton/BackButton.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED,eAAO,MAAM,UAAU,GAAI,qEAMxB,eAAe,4CAajB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/backbutton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
export interface ConfirmBoxProps {
|
|
3
|
+
/**
|
|
4
|
+
* Whether the confirm dialog is visible.
|
|
5
|
+
*/
|
|
6
|
+
visible: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Called when the primary confirm action is triggered.
|
|
9
|
+
*/
|
|
10
|
+
onAccept: () => void;
|
|
11
|
+
/**
|
|
12
|
+
* Called when the dialog is dismissed.
|
|
13
|
+
*/
|
|
14
|
+
onReject: () => void;
|
|
15
|
+
/**
|
|
16
|
+
* When true, disables actions and shows a loading state on the accept button.
|
|
17
|
+
* @default false
|
|
18
|
+
*/
|
|
19
|
+
loading?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Dialog title area.
|
|
22
|
+
*/
|
|
23
|
+
title: ReactNode;
|
|
24
|
+
/**
|
|
25
|
+
* Main dialog message shown above `children`.
|
|
26
|
+
*/
|
|
27
|
+
message: ReactNode;
|
|
28
|
+
/**
|
|
29
|
+
* Label for the accept action.
|
|
30
|
+
* @default 'Yes'
|
|
31
|
+
*/
|
|
32
|
+
acceptLabel?: ReactNode;
|
|
33
|
+
/**
|
|
34
|
+
* Label for the reject action.
|
|
35
|
+
* @default 'Cancel'
|
|
36
|
+
*/
|
|
37
|
+
rejectLabel?: ReactNode;
|
|
38
|
+
/**
|
|
39
|
+
* Optional extra body content rendered below `message`.
|
|
40
|
+
*/
|
|
41
|
+
children?: ReactNode;
|
|
42
|
+
/**
|
|
43
|
+
* Additional class name on the dialog root.
|
|
44
|
+
*/
|
|
45
|
+
className?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Inline styles on the dialog root.
|
|
48
|
+
*/
|
|
49
|
+
style?: CSSProperties;
|
|
50
|
+
/**
|
|
51
|
+
* Test ID for the dialog root.
|
|
52
|
+
*/
|
|
53
|
+
'data-testid'?: string;
|
|
54
|
+
}
|
|
55
|
+
export declare const ConfirmBox: ({ visible, onAccept, onReject, loading, title, message, acceptLabel, rejectLabel, children, className, style, "data-testid": testId, }: ConfirmBoxProps) => import("react/jsx-runtime").JSX.Element;
|
|
56
|
+
//# sourceMappingURL=ConfirmBox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConfirmBox.d.ts","sourceRoot":"","sources":["../../../src/components/confirmbox/ConfirmBox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAMrD,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,OAAO,EAAE,OAAO,CAAA;IAChB;;OAEG;IACH,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB;;OAEG;IACH,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;OAEG;IACH,KAAK,EAAE,SAAS,CAAA;IAChB;;OAEG;IACH,OAAO,EAAE,SAAS,CAAA;IAClB;;;OAGG;IACH,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB;;;OAGG;IACH,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB;;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,eAAO,MAAM,UAAU,GAAI,wIAaxB,eAAe,4CAsBjB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/confirmbox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export interface DateValueProps {
|
|
2
|
+
/**
|
|
3
|
+
* Date value to format.
|
|
4
|
+
*/
|
|
5
|
+
date: Date | string | undefined;
|
|
6
|
+
/**
|
|
7
|
+
* Locale used for date/time formatting.
|
|
8
|
+
* @default 'en'
|
|
9
|
+
*/
|
|
10
|
+
locale?: string;
|
|
11
|
+
/**
|
|
12
|
+
* When true, renders a secondary time value next to the date.
|
|
13
|
+
* @default false
|
|
14
|
+
*/
|
|
15
|
+
showTime?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Fallback text shown when `date` is missing or invalid.
|
|
18
|
+
* @default '--'
|
|
19
|
+
*/
|
|
20
|
+
nullText?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Optional time zone passed to `Intl.DateTimeFormat`.
|
|
23
|
+
*/
|
|
24
|
+
timeZone?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Controls 12-hour vs 24-hour time formatting when `showTime` is enabled.
|
|
27
|
+
*/
|
|
28
|
+
hour12?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Additional CSS class name for the root.
|
|
31
|
+
*/
|
|
32
|
+
className?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Test ID for testing.
|
|
35
|
+
*/
|
|
36
|
+
'data-testid'?: string;
|
|
37
|
+
}
|
|
38
|
+
export declare const DateValue: ({ date, locale, showTime, nullText, timeZone, hour12, className, "data-testid": testId, }: DateValueProps) => import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
//# sourceMappingURL=DateValue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DateValue.d.ts","sourceRoot":"","sources":["../../../src/components/datevalue/DateValue.tsx"],"names":[],"mappings":"AAKA,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,IAAI,EAAE,IAAI,GAAG,MAAM,GAAG,SAAS,CAAA;IAC/B;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AA8DD,eAAO,MAAM,SAAS,GAAI,2FASvB,cAAc,4CAyBhB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/datevalue/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA"}
|
|
@@ -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 @@
|
|
|
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"}
|
package/dist/index.d.ts
CHANGED
|
@@ -20,6 +20,10 @@ export { InputText } from './components/input/InputText';
|
|
|
20
20
|
export type { InputTextProps } from './components/input/InputText';
|
|
21
21
|
export { FieldLabel } from './components/fieldlabel';
|
|
22
22
|
export type { FieldLabelProps } from './components/fieldlabel';
|
|
23
|
+
export { DateValue } from './components/datevalue';
|
|
24
|
+
export type { DateValueProps } from './components/datevalue';
|
|
25
|
+
export { BackButton } from './components/backbutton';
|
|
26
|
+
export type { BackButtonProps } from './components/backbutton';
|
|
23
27
|
export { LocalizedInput } from './components/localizedinput';
|
|
24
28
|
export type { LocalizedInputProps, LocalizedLanguage, LocalizedValue, } from './components/localizedinput';
|
|
25
29
|
export { Checkbox } from './components/checkbox';
|
|
@@ -38,12 +42,16 @@ export { Tooltip } from './components/tooltip/Tooltip';
|
|
|
38
42
|
export type { TooltipProps, TooltipPosition, TooltipEventMode, } from './components/tooltip/Tooltip';
|
|
39
43
|
export { Dialog } from './components/dialog';
|
|
40
44
|
export type { DialogProps } from './components/dialog';
|
|
45
|
+
export { ConfirmBox } from './components/confirmbox';
|
|
46
|
+
export type { ConfirmBoxProps } from './components/confirmbox';
|
|
41
47
|
export { ToastProvider, useToast, ToastTemplate } from './components/toast';
|
|
42
48
|
export type { ToastProviderProps, ToastTemplateProps, ToastErrorItem, ToastErrorMessage, ToastSeverity, } from './components/toast';
|
|
43
49
|
export { Menu } from './components/menu';
|
|
44
50
|
export type { MenuProps, MenuItem, MenuRef } from './components/menu';
|
|
45
51
|
export { Message } from './components/message/Message';
|
|
46
52
|
export type { MessageProps, MessageSeverity, } from './components/message/Message';
|
|
53
|
+
export { SectionBox, SectionTitle } from './components/sectionbox';
|
|
54
|
+
export type { SectionBoxProps, SectionTitleProps, } from './components/sectionbox';
|
|
47
55
|
export { DataTable, DataTableEmptyState, DEFAULT_DATA_TABLE_EMPTY_MESSAGE, useDataTablePagination, FilterMatchMode, } from './components/datatable';
|
|
48
56
|
export type { DataTableProps, DataTablePaginationState, DataTableColumnProps, DataTableFilters, DataTableFilterMeta, DataTableFilterMetaData, DataTableFilterMetaOperator, DataTableFilterConstraint, DataTableFilterEvent, DataTableSortEvent, DataTablePageEvent, DataTableSortOrder, DataTableColumnFilterElementOptions, } from './components/datatable';
|
|
49
57
|
export { DEFAULT_DATA_TABLE_PAGINATION } from './components/datatable';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +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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