@base-framework/ui 0.0.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/LICENSE +21 -0
- package/README.md +106 -0
- package/dist/aside-template-D0KANPjh.js +35 -0
- package/dist/atoms.es.js +39 -0
- package/dist/bside-template-CDbINL4X.js +15 -0
- package/dist/calendar-DR_svCOR.js +424 -0
- package/dist/confirmation-D1Y_SgzE.js +1526 -0
- package/dist/icon-B9QUT2NY.js +47 -0
- package/dist/icons.es.js +658 -0
- package/dist/index.es.js +154 -0
- package/dist/inputs-BF3C3KfF.js +204 -0
- package/dist/mobile-nav-wrapper-7Qul1-mt.js +578 -0
- package/dist/molecules.es.js +45 -0
- package/dist/organisms.es.js +55 -0
- package/dist/pages.es.js +12 -0
- package/dist/sidebar-menu-page-M8hr9onX.js +224 -0
- package/dist/style.css +1 -0
- package/dist/tab-C_dZb2qH.js +1425 -0
- package/dist/templates.es.js +10 -0
- package/dist/tooltip-DCszmsxe.js +324 -0
- package/dist/types/components/atoms/atoms.d.ts +15 -0
- package/dist/types/components/atoms/badges/badge.d.ts +8 -0
- package/dist/types/components/atoms/buttons/buttons.d.ts +17 -0
- package/dist/types/components/atoms/cards/card.d.ts +8 -0
- package/dist/types/components/atoms/form/fieldset.d.ts +9 -0
- package/dist/types/components/atoms/form/inputs/checkbox.d.ts +10 -0
- package/dist/types/components/atoms/form/inputs/input-classes.d.ts +30 -0
- package/dist/types/components/atoms/form/inputs/inputs.d.ts +113 -0
- package/dist/types/components/atoms/form/inputs/range-slider.d.ts +10 -0
- package/dist/types/components/atoms/form/legend.d.ts +9 -0
- package/dist/types/components/atoms/form/select.d.ts +8 -0
- package/dist/types/components/atoms/icon.d.ts +8 -0
- package/dist/types/components/atoms/progress/circle-graph.d.ts +7 -0
- package/dist/types/components/atoms/progress/progress-bar.d.ts +9 -0
- package/dist/types/components/atoms/progress/semi-circle-graph.d.ts +7 -0
- package/dist/types/components/atoms/skeleton.d.ts +2 -0
- package/dist/types/components/atoms/tooltip.d.ts +12 -0
- package/dist/types/components/atoms/veil.d.ts +26 -0
- package/dist/types/components/icons/icons.d.ts +10 -0
- package/dist/types/components/molecules/alert.d.ts +7 -0
- package/dist/types/components/molecules/avatars/avatar.d.ts +15 -0
- package/dist/types/components/molecules/avatars/static-status-indicator.d.ts +2 -0
- package/dist/types/components/molecules/avatars/status-indicator.d.ts +2 -0
- package/dist/types/components/molecules/avatars/statuses.d.ts +13 -0
- package/dist/types/components/molecules/breadcrumb/breadcrumb.d.ts +11 -0
- package/dist/types/components/molecules/breadcrumb/dots-indicator.d.ts +12 -0
- package/dist/types/components/molecules/combobox/combobox.d.ts +10 -0
- package/dist/types/components/molecules/counters/atoms.d.ts +3 -0
- package/dist/types/components/molecules/counters/counter.d.ts +11 -0
- package/dist/types/components/molecules/date-time/date-picker.d.ts +11 -0
- package/dist/types/components/molecules/date-time/time-frame.d.ts +1 -0
- package/dist/types/components/molecules/date-time/time-picker.d.ts +10 -0
- package/dist/types/components/molecules/delay-component.d.ts +18 -0
- package/dist/types/components/molecules/dialogs/confirmation.d.ts +27 -0
- package/dist/types/components/molecules/dialogs/dialog-container.d.ts +8 -0
- package/dist/types/components/molecules/dialogs/dialog.d.ts +78 -0
- package/dist/types/components/molecules/dropdowns/dropdown-item.d.ts +1 -0
- package/dist/types/components/molecules/dropdowns/dropdown-menu.d.ts +61 -0
- package/dist/types/components/molecules/dropdowns/dropdown.d.ts +1 -0
- package/dist/types/components/molecules/form/form-atoms.d.ts +40 -0
- package/dist/types/components/molecules/form/form-control.d.ts +10 -0
- package/dist/types/components/molecules/form/form-field.d.ts +10 -0
- package/dist/types/components/molecules/form/form.d.ts +14 -0
- package/dist/types/components/molecules/modals/atoms.d.ts +17 -0
- package/dist/types/components/molecules/modals/modal-container.d.ts +8 -0
- package/dist/types/components/molecules/modals/modal.d.ts +124 -0
- package/dist/types/components/molecules/molecules.d.ts +31 -0
- package/dist/types/components/molecules/notifications/notification-container.d.ts +31 -0
- package/dist/types/components/molecules/notifications/notification.d.ts +79 -0
- package/dist/types/components/molecules/popover.d.ts +57 -0
- package/dist/types/components/molecules/theme-toggle.d.ts +8 -0
- package/dist/types/components/molecules/toggle/toggle.d.ts +11 -0
- package/dist/types/components/organisms/button-group.d.ts +23 -0
- package/dist/types/components/organisms/calendar/calendar.d.ts +77 -0
- package/dist/types/components/organisms/calendar/month/calendar-cells.d.ts +1 -0
- package/dist/types/components/organisms/calendar/month/day-cell.d.ts +1 -0
- package/dist/types/components/organisms/calendar/month/day-header.d.ts +1 -0
- package/dist/types/components/organisms/calendar/month/month-calendar.d.ts +1 -0
- package/dist/types/components/organisms/calendar/month/navigation-button.d.ts +1 -0
- package/dist/types/components/organisms/calendar/utils.d.ts +3 -0
- package/dist/types/components/organisms/calendar/week/utils.d.ts +6 -0
- package/dist/types/components/organisms/calendar/week/week-calendar.d.ts +90 -0
- package/dist/types/components/organisms/calendar/week/week-cell.d.ts +1 -0
- package/dist/types/components/organisms/calendar/week/week-cells.d.ts +1 -0
- package/dist/types/components/organisms/calendar/week/week-header.d.ts +1 -0
- package/dist/types/components/organisms/lists/checkbox-col.d.ts +1 -0
- package/dist/types/components/organisms/lists/data-table-body.d.ts +5 -0
- package/dist/types/components/organisms/lists/data-table.d.ts +13 -0
- package/dist/types/components/organisms/lists/header-col.d.ts +2 -0
- package/dist/types/components/organisms/lists/table-header.d.ts +5 -0
- package/dist/types/components/organisms/lists/user-list.d.ts +15 -0
- package/dist/types/components/organisms/navigation/inline-navigation.d.ts +75 -0
- package/dist/types/components/organisms/navigation/main-link.d.ts +81 -0
- package/dist/types/components/organisms/navigation/mobile/nav-wrapper/mobile-nav-wrapper.d.ts +14 -0
- package/dist/types/components/organisms/navigation/mobile/nav-wrapper/navigation-popover.d.ts +36 -0
- package/dist/types/components/organisms/navigation/mobile/nav-wrapper/popup-header.d.ts +1 -0
- package/dist/types/components/organisms/navigation/mobile/nav-wrapper/title-header.d.ts +2 -0
- package/dist/types/components/organisms/navigation/nav-button-link.d.ts +44 -0
- package/dist/types/components/organisms/navigation/navigation-atoms.d.ts +8 -0
- package/dist/types/components/organisms/navigation/navigation-menu/navigation-menu.d.ts +58 -0
- package/dist/types/components/organisms/navigation/navigation.d.ts +58 -0
- package/dist/types/components/organisms/navigation/sidebar-menu/sidebar-menu.d.ts +2 -0
- package/dist/types/components/organisms/organisms.d.ts +38 -0
- package/dist/types/components/organisms/overlays/dockable-overlay.d.ts +38 -0
- package/dist/types/components/organisms/overlays/inline-overlay.d.ts +18 -0
- package/dist/types/components/organisms/overlays/overlay.d.ts +73 -0
- package/dist/types/components/organisms/panel.d.ts +22 -0
- package/dist/types/components/organisms/search/dropdown.d.ts +8 -0
- package/dist/types/components/organisms/search/search-dropdown.d.ts +10 -0
- package/dist/types/components/organisms/search/search-input.d.ts +7 -0
- package/dist/types/components/organisms/tabs/button-tab.d.ts +65 -0
- package/dist/types/components/organisms/tabs/tab-group.d.ts +48 -0
- package/dist/types/components/organisms/tabs/tab-navigation.d.ts +62 -0
- package/dist/types/components/organisms/tabs/tab.d.ts +35 -0
- package/dist/types/components/pages/basic-page.d.ts +19 -0
- package/dist/types/components/pages/blank-page.d.ts +17 -0
- package/dist/types/components/pages/center-page.d.ts +17 -0
- package/dist/types/components/pages/full-contain-page.d.ts +17 -0
- package/dist/types/components/pages/full-page.d.ts +25 -0
- package/dist/types/components/pages/fullscreen-page.d.ts +17 -0
- package/dist/types/components/pages/main-section.d.ts +8 -0
- package/dist/types/components/pages/page.d.ts +16 -0
- package/dist/types/components/pages/pages.d.ts +10 -0
- package/dist/types/components/pages/sidebar-menu-page.d.ts +70 -0
- package/dist/types/components/pages/templates/aside-template.d.ts +8 -0
- package/dist/types/components/pages/templates/bside-template.d.ts +8 -0
- package/dist/types/components/pages/templates/full-template.d.ts +8 -0
- package/dist/types/components/pages/templates/row.d.ts +8 -0
- package/dist/types/components/pages/templates/template-atoms.d.ts +16 -0
- package/dist/types/components/pages/templates/template.d.ts +8 -0
- package/dist/types/components/pages/templates/templates.d.ts +5 -0
- package/dist/types/ui.d.ts +6 -0
- package/dist/veil-B9GQfH0d.js +29 -0
- package/package.json +57 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Avatar
|
|
3
|
+
*
|
|
4
|
+
* Creates an avatar with optional image. If the image fails or is absent,
|
|
5
|
+
* shows fallback text/initials, with font size based on the avatar size.
|
|
6
|
+
*
|
|
7
|
+
* @param {object} props
|
|
8
|
+
* @prop {string|null} src
|
|
9
|
+
* @prop {string|null} alt
|
|
10
|
+
* @prop {string|null} fallbackText
|
|
11
|
+
* @prop {string|null} watcherFallback
|
|
12
|
+
* @prop {string} size
|
|
13
|
+
* @returns {object}
|
|
14
|
+
*/
|
|
15
|
+
export const Avatar: Function;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This will create a status object.
|
|
3
|
+
*
|
|
4
|
+
* @type {object} STATUSES
|
|
5
|
+
*/
|
|
6
|
+
export const STATUSES: object;
|
|
7
|
+
/**
|
|
8
|
+
* This will create a status class object.
|
|
9
|
+
*
|
|
10
|
+
* @type {object} STATUS_CLASS
|
|
11
|
+
*/
|
|
12
|
+
export const STATUS_CLASS: object;
|
|
13
|
+
export function getStatusClass(status?: string): string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Breadcrumb
|
|
3
|
+
*
|
|
4
|
+
* This will render a Breadcrumb component.
|
|
5
|
+
*
|
|
6
|
+
* @param {object} props
|
|
7
|
+
* @param {array} children
|
|
8
|
+
* @returns {ComponentConstructor}
|
|
9
|
+
*/
|
|
10
|
+
export const Breadcrumb: import("node_modules/@base-framework/base/dist/types/modules/component/jot.js").ComponentConstructor;
|
|
11
|
+
export default Breadcrumb;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DotsIndicator
|
|
3
|
+
*
|
|
4
|
+
* Renders a row of circular dots, one of which is "active."
|
|
5
|
+
*
|
|
6
|
+
* @param {object} props
|
|
7
|
+
* @returns {ComponentConstructor}
|
|
8
|
+
* @example
|
|
9
|
+
* new DotsIndicator({ count: 4, activeIndex: 0 })
|
|
10
|
+
*/
|
|
11
|
+
export const DotsIndicator: import("node_modules/@base-framework/base/dist/types/modules/component/jot").ComponentConstructor;
|
|
12
|
+
export default DotsIndicator;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Combobox
|
|
3
|
+
*
|
|
4
|
+
* This will render a combobox component.
|
|
5
|
+
*
|
|
6
|
+
* @param {object} props
|
|
7
|
+
* @param {array} children *
|
|
8
|
+
* @returns {ComponentConstructor}
|
|
9
|
+
*/
|
|
10
|
+
export const Combobox: import("node_modules/@base-framework/base/dist/types/modules/component/jot.js").ComponentConstructor;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Counter Atom
|
|
3
|
+
*
|
|
4
|
+
* This creates a counter component with an input for count and buttons to increment and decrement.
|
|
5
|
+
*
|
|
6
|
+
* @param {object} props
|
|
7
|
+
* @param {array} children
|
|
8
|
+
* @returns {ComponentConstructor}
|
|
9
|
+
*/
|
|
10
|
+
export const Counter: import("node_modules/@base-framework/base/dist/types/modules/component/jot.js").ComponentConstructor;
|
|
11
|
+
export default Counter;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DatePicker Atom
|
|
3
|
+
*
|
|
4
|
+
* This will create a date picker component.
|
|
5
|
+
*
|
|
6
|
+
* @param {object} props
|
|
7
|
+
* @param {array} children
|
|
8
|
+
* @returns {ComponentConstructor}
|
|
9
|
+
*/
|
|
10
|
+
export const DatePicker: import("node_modules/@base-framework/base/dist/types/modules/component/jot.js").ComponentConstructor;
|
|
11
|
+
export default DatePicker;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function TimeFrame({ dateTime, remoteTimeZone, filter }: object): object;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TimePicker Atom
|
|
3
|
+
*
|
|
4
|
+
* This will create a time picker component.
|
|
5
|
+
*
|
|
6
|
+
* @param {object} props
|
|
7
|
+
* @returns {ComponentConstructor}
|
|
8
|
+
*/
|
|
9
|
+
export const TimePicker: import("node_modules/@base-framework/base/dist/types/modules/component/jot.js").ComponentConstructor;
|
|
10
|
+
export default TimePicker;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DelayComponent
|
|
3
|
+
*
|
|
4
|
+
* A component that adds a delay before removing itself from the DOM.
|
|
5
|
+
*
|
|
6
|
+
* @property {string} removingClass - The class name to be added before destruction.
|
|
7
|
+
*
|
|
8
|
+
* @class
|
|
9
|
+
* @extends Component
|
|
10
|
+
*/
|
|
11
|
+
export class DelayComponent extends Component {
|
|
12
|
+
/**
|
|
13
|
+
* @member {string} removingClass
|
|
14
|
+
* @default ''
|
|
15
|
+
*/
|
|
16
|
+
removingClass: string;
|
|
17
|
+
}
|
|
18
|
+
import { Component } from "@base-framework/base";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Confirmation
|
|
3
|
+
*
|
|
4
|
+
* This will create a confirmation dialog component.
|
|
5
|
+
*
|
|
6
|
+
* @export
|
|
7
|
+
* @class Dialog
|
|
8
|
+
* @extends {Dialog}
|
|
9
|
+
*/
|
|
10
|
+
export class Confirmation extends Dialog {
|
|
11
|
+
/**
|
|
12
|
+
* @member {string} confirmTextLabel
|
|
13
|
+
*/
|
|
14
|
+
confirmTextLabel: any;
|
|
15
|
+
/**
|
|
16
|
+
* @member {function} confirmed
|
|
17
|
+
*/
|
|
18
|
+
confirmed: any;
|
|
19
|
+
/**
|
|
20
|
+
* This will confirm the action.
|
|
21
|
+
*
|
|
22
|
+
* @returns {void}
|
|
23
|
+
*/
|
|
24
|
+
confirm(): void;
|
|
25
|
+
}
|
|
26
|
+
export default Confirmation;
|
|
27
|
+
import { Dialog } from "./dialog.js";
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dialog
|
|
3
|
+
*
|
|
4
|
+
* This will create a dialog component.
|
|
5
|
+
*
|
|
6
|
+
* @export
|
|
7
|
+
* @class Dialog
|
|
8
|
+
* @extends {Component}
|
|
9
|
+
*/
|
|
10
|
+
export class Dialog extends Component {
|
|
11
|
+
/**
|
|
12
|
+
* @member {string} title
|
|
13
|
+
*/
|
|
14
|
+
title: any;
|
|
15
|
+
/**
|
|
16
|
+
* @member {string} description
|
|
17
|
+
*/
|
|
18
|
+
description: any;
|
|
19
|
+
/**
|
|
20
|
+
* @member {string} Type
|
|
21
|
+
* @default ''
|
|
22
|
+
* @values 'info', 'warning', 'destructive', 'success', 'default'
|
|
23
|
+
*/
|
|
24
|
+
type: string;
|
|
25
|
+
/**
|
|
26
|
+
* @member {string} icon
|
|
27
|
+
*/
|
|
28
|
+
icon: any;
|
|
29
|
+
/**
|
|
30
|
+
* @member {function|null} onClose
|
|
31
|
+
*/
|
|
32
|
+
onClose: any;
|
|
33
|
+
/**
|
|
34
|
+
* @member {boolean} hideFooter
|
|
35
|
+
*/
|
|
36
|
+
hideFooter: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* @member {Array|null} buttons
|
|
39
|
+
*/
|
|
40
|
+
buttons: any;
|
|
41
|
+
/**
|
|
42
|
+
* This will render the modal component.
|
|
43
|
+
*
|
|
44
|
+
* @returns {object}
|
|
45
|
+
*/
|
|
46
|
+
render(): object;
|
|
47
|
+
/**
|
|
48
|
+
* This will get the buttons for the modal.
|
|
49
|
+
*
|
|
50
|
+
* @returns {array}
|
|
51
|
+
*/
|
|
52
|
+
getButtons(): any[];
|
|
53
|
+
/**
|
|
54
|
+
* This will setup the states.
|
|
55
|
+
*
|
|
56
|
+
* @returns {object}
|
|
57
|
+
*/
|
|
58
|
+
setupStates(): object;
|
|
59
|
+
/**
|
|
60
|
+
* This will get the modal class.
|
|
61
|
+
*
|
|
62
|
+
* @returns {string}
|
|
63
|
+
*/
|
|
64
|
+
getMainClass(): string;
|
|
65
|
+
/**
|
|
66
|
+
* This will open the modal.
|
|
67
|
+
*
|
|
68
|
+
* @returns {void}
|
|
69
|
+
*/
|
|
70
|
+
open(): void;
|
|
71
|
+
/**
|
|
72
|
+
* This will close the modal.
|
|
73
|
+
*
|
|
74
|
+
* @returns {void}
|
|
75
|
+
*/
|
|
76
|
+
close(): void;
|
|
77
|
+
}
|
|
78
|
+
import { Component } from "@base-framework/base";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function DropdownItem(props: object, onClick: Function): object;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dropdown Component
|
|
3
|
+
*
|
|
4
|
+
* A generic dropdown component that allows for customizable items.
|
|
5
|
+
*
|
|
6
|
+
* @param {object} props
|
|
7
|
+
* @param {array} children - Dropdown button content
|
|
8
|
+
* @returns {object}
|
|
9
|
+
*/
|
|
10
|
+
export class DropdownMenu extends Component {
|
|
11
|
+
/**
|
|
12
|
+
* @member {string} label
|
|
13
|
+
*/
|
|
14
|
+
label: any;
|
|
15
|
+
/**
|
|
16
|
+
* @member {string} icon
|
|
17
|
+
* @default null
|
|
18
|
+
*/
|
|
19
|
+
icon: any;
|
|
20
|
+
/**
|
|
21
|
+
* @member {function} onSelect
|
|
22
|
+
*/
|
|
23
|
+
onSelect: any;
|
|
24
|
+
/**
|
|
25
|
+
* @member {array} groups
|
|
26
|
+
*/
|
|
27
|
+
groups: any[];
|
|
28
|
+
/**
|
|
29
|
+
* Initializes component data.
|
|
30
|
+
*
|
|
31
|
+
* @returns {Data}
|
|
32
|
+
*/
|
|
33
|
+
setData(): Data;
|
|
34
|
+
/**
|
|
35
|
+
* Initializes the component state.
|
|
36
|
+
*
|
|
37
|
+
* @returns {object}
|
|
38
|
+
*/
|
|
39
|
+
setupStates(): object;
|
|
40
|
+
/**
|
|
41
|
+
* Toggles the dropdown open state.
|
|
42
|
+
*
|
|
43
|
+
* @returns {void}
|
|
44
|
+
*/
|
|
45
|
+
toggleDropdown(): void;
|
|
46
|
+
/**
|
|
47
|
+
* Handles item selection within the dropdown.
|
|
48
|
+
*
|
|
49
|
+
* @param {object} item - The selected item object
|
|
50
|
+
* @returns {void}
|
|
51
|
+
*/
|
|
52
|
+
handleSelect(item: object): void;
|
|
53
|
+
/**
|
|
54
|
+
* Renders the Dropdown component.
|
|
55
|
+
*
|
|
56
|
+
* @returns {object}
|
|
57
|
+
*/
|
|
58
|
+
render(): object;
|
|
59
|
+
}
|
|
60
|
+
import { Component } from '@base-framework/base';
|
|
61
|
+
import { Data } from '@base-framework/base';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function Dropdown(onSelect: Function): object;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FormItem
|
|
3
|
+
*
|
|
4
|
+
* Groups form elements like label, control, description, and message.
|
|
5
|
+
*
|
|
6
|
+
* @param {object} props
|
|
7
|
+
* @param {array} children
|
|
8
|
+
* @returns {object}
|
|
9
|
+
*/
|
|
10
|
+
export const FormItem: Function;
|
|
11
|
+
/**
|
|
12
|
+
* FormLabel
|
|
13
|
+
*
|
|
14
|
+
* Accessible label for form inputs.
|
|
15
|
+
*
|
|
16
|
+
* @param {object} props
|
|
17
|
+
* @param {array} children
|
|
18
|
+
* @returns {object}
|
|
19
|
+
*/
|
|
20
|
+
export const FormLabel: Function;
|
|
21
|
+
/**
|
|
22
|
+
* FormDescription
|
|
23
|
+
*
|
|
24
|
+
* Provides additional information for form controls.
|
|
25
|
+
*
|
|
26
|
+
* @param {object} props
|
|
27
|
+
* @param {array} children
|
|
28
|
+
* @returns {object}
|
|
29
|
+
*/
|
|
30
|
+
export const FormDescription: Function;
|
|
31
|
+
/**
|
|
32
|
+
* FormMessage
|
|
33
|
+
*
|
|
34
|
+
* Displays validation error messages.
|
|
35
|
+
*
|
|
36
|
+
* @param {object} props
|
|
37
|
+
* @param {array} children
|
|
38
|
+
* @returns {object}
|
|
39
|
+
*/
|
|
40
|
+
export const FormMessage: Function;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FormField Component
|
|
3
|
+
*
|
|
4
|
+
* Handles controlled form fields with accessibility.
|
|
5
|
+
*
|
|
6
|
+
* @param {object} props
|
|
7
|
+
* @param {array} children
|
|
8
|
+
* @returns {ComponentConstructor}
|
|
9
|
+
*/
|
|
10
|
+
export const FormField: import("node_modules/@base-framework/base/dist/types/modules/component/jot.js").ComponentConstructor;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Form Component
|
|
3
|
+
*
|
|
4
|
+
* A wrapper around the form structure for accessibility and organization.
|
|
5
|
+
*
|
|
6
|
+
* @param {object} props
|
|
7
|
+
* @param {array} children
|
|
8
|
+
* @returns {object}
|
|
9
|
+
*/
|
|
10
|
+
export const Form: Function;
|
|
11
|
+
import { FormControl } from "./form-control.js";
|
|
12
|
+
import { FormField } from "./form-field.js";
|
|
13
|
+
import { FormItem } from "./form-atoms.js";
|
|
14
|
+
export { FormControl, FormField, FormItem };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This will create a modal detail body.
|
|
3
|
+
*
|
|
4
|
+
* @param {object} props - The properties of the component.
|
|
5
|
+
* @param {array} children - The children of the component.
|
|
6
|
+
* @returns {object}
|
|
7
|
+
*/
|
|
8
|
+
export const DetailBody: Function;
|
|
9
|
+
/**
|
|
10
|
+
* This will create a modal detail section.
|
|
11
|
+
*
|
|
12
|
+
* @param {object} props - The properties of the component.
|
|
13
|
+
* @param {array} children - The children of the component.
|
|
14
|
+
* @returns {object}
|
|
15
|
+
*/
|
|
16
|
+
export const DetailSection: Function;
|
|
17
|
+
export function SplitRow(label: string, value: string): object;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Modal
|
|
3
|
+
*
|
|
4
|
+
* This will create a modal component.
|
|
5
|
+
*
|
|
6
|
+
* @export
|
|
7
|
+
* @class Modal
|
|
8
|
+
* @extends {Component}
|
|
9
|
+
*/
|
|
10
|
+
export class Modal extends Component {
|
|
11
|
+
/**
|
|
12
|
+
* @member {string} title
|
|
13
|
+
*/
|
|
14
|
+
title: any;
|
|
15
|
+
/**
|
|
16
|
+
* @member {string} description
|
|
17
|
+
*/
|
|
18
|
+
description: any;
|
|
19
|
+
/**
|
|
20
|
+
* @member {string} size
|
|
21
|
+
* @default 'md'
|
|
22
|
+
* @values 'sm', 'md', 'lg', 'xl'
|
|
23
|
+
*/
|
|
24
|
+
size: string;
|
|
25
|
+
/**
|
|
26
|
+
* @member {string} type
|
|
27
|
+
* @default ''
|
|
28
|
+
* @values 'right', 'left'
|
|
29
|
+
* @description This will set the type of modal.
|
|
30
|
+
*/
|
|
31
|
+
type: string;
|
|
32
|
+
/**
|
|
33
|
+
* @member {boolean} hidePrimaryButton
|
|
34
|
+
* @default false
|
|
35
|
+
* @description This will hide the primary button.
|
|
36
|
+
* @values true, false
|
|
37
|
+
*/
|
|
38
|
+
hidePrimaryButton: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* @member {string} icon
|
|
41
|
+
*/
|
|
42
|
+
icon: any;
|
|
43
|
+
/**
|
|
44
|
+
* @member {function|nll} onSubmit
|
|
45
|
+
*/
|
|
46
|
+
onSubmit: any;
|
|
47
|
+
/**
|
|
48
|
+
* @member {function|null} onClose
|
|
49
|
+
*/
|
|
50
|
+
onClose: any;
|
|
51
|
+
/**
|
|
52
|
+
* @member {boolean} back
|
|
53
|
+
*/
|
|
54
|
+
back: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* This will render the modal component.
|
|
57
|
+
*
|
|
58
|
+
* @returns {object}
|
|
59
|
+
*/
|
|
60
|
+
render(): object;
|
|
61
|
+
/**
|
|
62
|
+
* This will setup the states.
|
|
63
|
+
*
|
|
64
|
+
* @returns {object}
|
|
65
|
+
*/
|
|
66
|
+
setupStates(): object;
|
|
67
|
+
/**
|
|
68
|
+
* This will get the header options.
|
|
69
|
+
*
|
|
70
|
+
* @returns {Array<object>}
|
|
71
|
+
*/
|
|
72
|
+
headerOptions(): Array<object>;
|
|
73
|
+
/**
|
|
74
|
+
* This will get the buttons for the modal.
|
|
75
|
+
*
|
|
76
|
+
* @returns {array}
|
|
77
|
+
*/
|
|
78
|
+
getButtons(): any[];
|
|
79
|
+
/**
|
|
80
|
+
* This will check if the click was outside the component.
|
|
81
|
+
*
|
|
82
|
+
* @param {object} element
|
|
83
|
+
* @returns {boolean}
|
|
84
|
+
*/
|
|
85
|
+
isOutsideClick(element: object): boolean;
|
|
86
|
+
/**
|
|
87
|
+
* This will get the size class.
|
|
88
|
+
*
|
|
89
|
+
* @returns {string}
|
|
90
|
+
*/
|
|
91
|
+
getSizeClass(): string;
|
|
92
|
+
/**
|
|
93
|
+
* This will get the type class.
|
|
94
|
+
*
|
|
95
|
+
* @returns {string}
|
|
96
|
+
*/
|
|
97
|
+
getTypeClass(): string;
|
|
98
|
+
/**
|
|
99
|
+
* This will get the modal class.
|
|
100
|
+
*
|
|
101
|
+
* @returns {string}
|
|
102
|
+
*/
|
|
103
|
+
getMainClass(): string;
|
|
104
|
+
/**
|
|
105
|
+
* This will override the set up to use the app shell.
|
|
106
|
+
*
|
|
107
|
+
* @param {object} container
|
|
108
|
+
*/
|
|
109
|
+
setContainer(container: object): void;
|
|
110
|
+
/**
|
|
111
|
+
* This will open the modal.
|
|
112
|
+
*
|
|
113
|
+
* @returns {void}
|
|
114
|
+
*/
|
|
115
|
+
open(): void;
|
|
116
|
+
/**
|
|
117
|
+
* This will show the modal.
|
|
118
|
+
*
|
|
119
|
+
* @protected
|
|
120
|
+
* @returns {void}
|
|
121
|
+
*/
|
|
122
|
+
protected showModal(): void;
|
|
123
|
+
}
|
|
124
|
+
import { Component } from "@base-framework/base";
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export * from "./alert.js";
|
|
2
|
+
export * from "./delay-component.js";
|
|
3
|
+
export * from "./dropdowns/dropdown-item.js";
|
|
4
|
+
export * from "./dropdowns/dropdown-menu.js";
|
|
5
|
+
export * from "./dropdowns/dropdown.js";
|
|
6
|
+
export * from "./form/form-atoms.js";
|
|
7
|
+
export * from "./form/form-control.js";
|
|
8
|
+
export * from "./form/form-field.js";
|
|
9
|
+
export * from "./form/form.js";
|
|
10
|
+
export * from "./modals/atoms.js";
|
|
11
|
+
export * from "./modals/modal.js";
|
|
12
|
+
export * from "./notifications/notification-container.js";
|
|
13
|
+
export * from "./notifications/notification.js";
|
|
14
|
+
export * from "./popover.js";
|
|
15
|
+
export * from "./theme-toggle.js";
|
|
16
|
+
export * from "./toggle/toggle.js";
|
|
17
|
+
export * from "./avatars/avatar.js";
|
|
18
|
+
export * from "./avatars/static-status-indicator.js";
|
|
19
|
+
export * from "./avatars/status-indicator.js";
|
|
20
|
+
export * from "./avatars/statuses.js";
|
|
21
|
+
export * from "./breadcrumb/breadcrumb.js";
|
|
22
|
+
export * from "./breadcrumb/dots-indicator.js";
|
|
23
|
+
export * from "./combobox/combobox.js";
|
|
24
|
+
export * from "./counters/atoms.js";
|
|
25
|
+
export * from "./counters/counter.js";
|
|
26
|
+
export * from "./date-time/date-picker.js";
|
|
27
|
+
export * from "./date-time/time-frame.js";
|
|
28
|
+
export * from "./date-time/time-picker.js";
|
|
29
|
+
export * from "./dialogs/confirmation.js";
|
|
30
|
+
export * from "./dialogs/dialog-container.js";
|
|
31
|
+
export * from "./dialogs/dialog.js";
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NotificationContainer
|
|
3
|
+
*
|
|
4
|
+
* A component that manages notifications.
|
|
5
|
+
*
|
|
6
|
+
* @class
|
|
7
|
+
*/
|
|
8
|
+
export class NotificationContainer extends Component {
|
|
9
|
+
/**
|
|
10
|
+
* This will render the component.
|
|
11
|
+
*
|
|
12
|
+
* @returns {object}
|
|
13
|
+
*/
|
|
14
|
+
render(): object;
|
|
15
|
+
/**
|
|
16
|
+
* This will add a notification.
|
|
17
|
+
*
|
|
18
|
+
* @param {object} props
|
|
19
|
+
* @returns {void}
|
|
20
|
+
*/
|
|
21
|
+
addNotice(props?: object): void;
|
|
22
|
+
/**
|
|
23
|
+
* This will remove a notification.
|
|
24
|
+
*
|
|
25
|
+
* @param {object} notice
|
|
26
|
+
* @returns {void}
|
|
27
|
+
*/
|
|
28
|
+
removeNotice(notice: object): void;
|
|
29
|
+
}
|
|
30
|
+
export default NotificationContainer;
|
|
31
|
+
import { Component } from "@base-framework/base";
|