@base-framework/ui 1.0.1727 → 1.0.2001
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/copilot.md +80 -0
- package/dist/aside-template-sUm-F2f0.js +44 -0
- package/dist/atoms.es.js +31 -30
- package/dist/{bside-template-Du2m3rsE.js → bside-template-do_hXebn.js} +1 -1
- package/dist/{buttons-Cm9etaEG.js → buttons-CHEs54Wl.js} +23 -24
- package/dist/{confirmation-BxmDhBjv.js → empty-state-BfT4MKkN.js} +721 -335
- package/dist/form-group-CJzpq9Us.js +29 -0
- package/dist/format-BLolnx9j.js +122 -0
- package/dist/icons.es.js +4 -1
- package/dist/image-scaler-1G-JzJVG.js +530 -0
- package/dist/index.es.js +170 -151
- package/dist/inputs-9udyzkHR.js +210 -0
- package/dist/{mobile-nav-wrapper-Dj67Pb8l.js → mobile-nav-wrapper-Dm9DinRD.js} +2 -2
- package/dist/molecules.es.js +46 -39
- package/dist/organisms.es.js +55 -49
- package/dist/pages.es.js +1 -1
- package/dist/range-calendar-BMWSJTE0.js +833 -0
- package/dist/{sidebar-menu-page-BVryQj2Z.js → sidebar-menu-page-D4WMgz5U.js} +6 -6
- package/dist/{signature-panel-xXbYWejE.js → signature-panel-Bq-usDxi.js} +598 -252
- package/dist/templates.es.js +2 -2
- package/dist/{tooltip-CESEqMCU.js → tooltip-PupzYM1r.js} +27 -34
- package/dist/types/components/atoms/atoms.d.ts +1 -0
- package/dist/types/components/atoms/form/form-group.d.ts +12 -0
- package/dist/types/components/atoms/form/inputs/input-classes.d.ts +2 -2
- package/dist/types/components/atoms/form/inputs/inputs.d.ts +0 -7
- package/dist/types/components/molecules/date-time/date-range-picker.d.ts +10 -0
- package/dist/types/components/molecules/empty/empty-state.d.ts +9 -0
- package/dist/types/components/molecules/files/attachment/attachment-input.d.ts +9 -0
- package/dist/types/components/molecules/files/attachment/attachment.d.ts +10 -0
- package/dist/types/components/molecules/files/attachment/orientation.d.ts +1 -0
- package/dist/types/components/molecules/files/attachment/type.d.ts +1 -0
- package/dist/types/components/molecules/form/form-card.d.ts +31 -0
- package/dist/types/components/molecules/image/image-uploader.d.ts +9 -0
- package/dist/types/components/molecules/image/logo-uploader.d.ts +9 -0
- package/dist/types/components/molecules/molecules.d.ts +5 -0
- package/dist/types/components/molecules/notifications/notification.d.ts +3 -3
- package/dist/types/components/organisms/calendar/calendar.d.ts +6 -0
- package/dist/types/components/organisms/calendar/month/calendar-header.d.ts +7 -0
- package/dist/types/components/organisms/calendar/month-selector.d.ts +5 -0
- package/dist/types/components/organisms/calendar/range/calendar-header.d.ts +7 -0
- package/dist/types/components/organisms/calendar/range/day-header.d.ts +1 -0
- package/dist/types/components/organisms/calendar/range/days-of-week-header.d.ts +1 -0
- package/dist/types/components/organisms/calendar/range/month-calendar.d.ts +17 -0
- package/dist/types/components/organisms/calendar/range/month-selector.d.ts +5 -0
- package/dist/types/components/organisms/calendar/range/navigation-button.d.ts +1 -0
- package/dist/types/components/organisms/calendar/range/range-calendar.d.ts +72 -0
- package/dist/types/components/organisms/calendar/range/range-day-cell.d.ts +10 -0
- package/dist/types/components/organisms/calendar/range/range-days-grid.d.ts +6 -0
- package/dist/types/components/organisms/calendar/range/range-toggle.d.ts +7 -0
- package/dist/types/components/organisms/calendar/range/year-selector.d.ts +4 -0
- package/dist/types/components/organisms/calendar/year-selector.d.ts +5 -0
- package/dist/types/components/organisms/lists/data-table-body.d.ts +1 -1
- package/dist/types/components/organisms/lists/data-table.d.ts +7 -0
- package/dist/types/components/organisms/lists/dynamic-data-table.d.ts +2 -0
- package/dist/types/components/organisms/lists/dynamic-table.d.ts +2 -0
- package/dist/types/components/organisms/lists/scrollable-data-table.d.ts +2 -0
- package/dist/types/components/organisms/lists/scrollable-table.d.ts +2 -0
- package/dist/types/components/organisms/lists/skeleton-examples.d.ts +12 -0
- package/dist/types/components/organisms/lists/skeleton-table-row.d.ts +6 -0
- package/dist/types/components/organisms/organisms.d.ts +6 -0
- package/dist/types/components/organisms/tabs/button-tab.d.ts +2 -2
- package/dist/types/components/organisms/tabs/tab-group.d.ts +3 -3
- package/dist/types/components/organisms/tabs/tab-navigation.d.ts +2 -2
- package/dist/types/components/organisms/tabs/tab.d.ts +2 -2
- package/dist/types/components/organisms/tabs/underlined-button-tab.d.ts +60 -0
- package/dist/types/components/organisms/tabs/underlined-tab-group.d.ts +48 -0
- package/dist/types/components/organisms/tabs/underlined-tab-navigation.d.ts +63 -0
- package/dist/types/components/organisms/tabs/underlined-tab.d.ts +36 -0
- package/dist/types/demo.d.ts +0 -0
- package/dist/types/ui.d.ts +1 -0
- package/dist/types/utils/format/format.d.ts +78 -0
- package/dist/types/utils/utils.d.ts +2 -0
- package/dist/utils.es.js +7 -1
- package/dist/veil-CqnAmj-D.js +20 -0
- package/package.json +85 -85
- package/dist/aside-template-McEj_Gxc.js +0 -35
- package/dist/calendar-DQXME-2u.js +0 -440
- package/dist/inputs-Dmu4Z-7-.js +0 -209
- package/dist/veil-D4dRxILB.js +0 -21
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @class
|
|
7
7
|
*/
|
|
8
|
-
export class ButtonTab extends
|
|
8
|
+
export class ButtonTab extends Veil {
|
|
9
9
|
/**
|
|
10
10
|
* This will set the options.
|
|
11
11
|
* @member {array} options
|
|
@@ -63,4 +63,4 @@ export class ButtonTab extends Component {
|
|
|
63
63
|
setupStates(): object;
|
|
64
64
|
}
|
|
65
65
|
export default ButtonTab;
|
|
66
|
-
import {
|
|
66
|
+
import { Veil } from "../../../components/atoms/veil.js";
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* This will create a tab group.
|
|
5
5
|
*
|
|
6
6
|
* @class
|
|
7
|
-
* @extends
|
|
7
|
+
* @extends Veil
|
|
8
8
|
*/
|
|
9
|
-
export class TabGroup extends
|
|
9
|
+
export class TabGroup extends Veil {
|
|
10
10
|
/**
|
|
11
11
|
* This will set the options.
|
|
12
12
|
* @member {array} options
|
|
@@ -45,4 +45,4 @@ export class TabGroup extends Component {
|
|
|
45
45
|
setupStates(): object;
|
|
46
46
|
}
|
|
47
47
|
export default TabGroup;
|
|
48
|
-
import {
|
|
48
|
+
import { Veil } from '../../../components/atoms/veil.js';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @class
|
|
7
7
|
*/
|
|
8
|
-
export class TabNavigation extends
|
|
8
|
+
export class TabNavigation extends Veil {
|
|
9
9
|
/**
|
|
10
10
|
* This will set the options.
|
|
11
11
|
* @member {array} options
|
|
@@ -60,4 +60,4 @@ export class TabNavigation extends Component {
|
|
|
60
60
|
addLink({ label: text, href, exact }: object): object;
|
|
61
61
|
}
|
|
62
62
|
export default TabNavigation;
|
|
63
|
-
import {
|
|
63
|
+
import { Veil } from "../../../components/atoms/veil.js";
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @class
|
|
8
8
|
*/
|
|
9
|
-
export class Tab extends
|
|
9
|
+
export class Tab extends Veil {
|
|
10
10
|
/**
|
|
11
11
|
* This will set the options.
|
|
12
12
|
* @member {array} options
|
|
@@ -33,4 +33,4 @@ export class Tab extends Component {
|
|
|
33
33
|
addGroup(): any[];
|
|
34
34
|
}
|
|
35
35
|
export default Tab;
|
|
36
|
-
import {
|
|
36
|
+
import { Veil } from "../../../components/atoms/veil.js";
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UnderlinedButtonTab
|
|
3
|
+
*
|
|
4
|
+
* This will create an underlined button tab component with content switching.
|
|
5
|
+
*
|
|
6
|
+
* @class
|
|
7
|
+
*/
|
|
8
|
+
export class UnderlinedButtonTab extends Veil {
|
|
9
|
+
/**
|
|
10
|
+
* This will set the options.
|
|
11
|
+
* @member {array} options
|
|
12
|
+
* @default []
|
|
13
|
+
*/
|
|
14
|
+
options: any[];
|
|
15
|
+
/**
|
|
16
|
+
* This will set the class.
|
|
17
|
+
* @member {string} class
|
|
18
|
+
* @default ''
|
|
19
|
+
*/
|
|
20
|
+
class: string;
|
|
21
|
+
/**
|
|
22
|
+
* This will set the select call back.
|
|
23
|
+
* @member {function} callBack
|
|
24
|
+
*/
|
|
25
|
+
onSelect: any;
|
|
26
|
+
/**
|
|
27
|
+
* This will render the component.
|
|
28
|
+
*
|
|
29
|
+
* @returns {object}
|
|
30
|
+
*/
|
|
31
|
+
render(): object;
|
|
32
|
+
/**
|
|
33
|
+
* This will get the first value.
|
|
34
|
+
*
|
|
35
|
+
* @returns {*}
|
|
36
|
+
*/
|
|
37
|
+
getFirstValue(): any;
|
|
38
|
+
/**
|
|
39
|
+
* This will select an option.
|
|
40
|
+
*
|
|
41
|
+
* @param {*} value
|
|
42
|
+
* @returns {void}
|
|
43
|
+
*/
|
|
44
|
+
select(value: any): void;
|
|
45
|
+
/**
|
|
46
|
+
* This will update the content.
|
|
47
|
+
*
|
|
48
|
+
* @param {*} value
|
|
49
|
+
* @returns {object}
|
|
50
|
+
*/
|
|
51
|
+
updateContent(value: any): object;
|
|
52
|
+
/**
|
|
53
|
+
* This will setup the states.
|
|
54
|
+
*
|
|
55
|
+
* @returns {object}
|
|
56
|
+
*/
|
|
57
|
+
setupStates(): object;
|
|
58
|
+
}
|
|
59
|
+
export default UnderlinedButtonTab;
|
|
60
|
+
import { Veil } from '../../../components/atoms/veil.js';
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UnderlinedTabGroup
|
|
3
|
+
*
|
|
4
|
+
* This will create an underlined tab group with bottom border indicators.
|
|
5
|
+
*
|
|
6
|
+
* @class
|
|
7
|
+
* @extends Veil
|
|
8
|
+
*/
|
|
9
|
+
export class UnderlinedTabGroup extends Veil {
|
|
10
|
+
/**
|
|
11
|
+
* This will set the options.
|
|
12
|
+
* @member {array} options
|
|
13
|
+
* @default []
|
|
14
|
+
*/
|
|
15
|
+
options: any[];
|
|
16
|
+
/**
|
|
17
|
+
* This will set the class.
|
|
18
|
+
* @member {string} class
|
|
19
|
+
* @default ''
|
|
20
|
+
*/
|
|
21
|
+
class: string;
|
|
22
|
+
/**
|
|
23
|
+
* This will set the select call back.
|
|
24
|
+
* @member {function} callBack
|
|
25
|
+
*/
|
|
26
|
+
onSelect: any;
|
|
27
|
+
/**
|
|
28
|
+
* This will render the component.
|
|
29
|
+
*
|
|
30
|
+
* @returns {object}
|
|
31
|
+
*/
|
|
32
|
+
render(): object;
|
|
33
|
+
/**
|
|
34
|
+
* This will select an option.
|
|
35
|
+
*
|
|
36
|
+
* @param {*} value
|
|
37
|
+
* @returns {void}
|
|
38
|
+
*/
|
|
39
|
+
select(value: any): void;
|
|
40
|
+
/**
|
|
41
|
+
* This will setup the states.
|
|
42
|
+
*
|
|
43
|
+
* @returns {object}
|
|
44
|
+
*/
|
|
45
|
+
setupStates(): object;
|
|
46
|
+
}
|
|
47
|
+
export default UnderlinedTabGroup;
|
|
48
|
+
import { Veil } from '../../../components/atoms/veil.js';
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UnderlinedTabNavigation
|
|
3
|
+
*
|
|
4
|
+
* This will create an underlined tab navigation component with active bottom border.
|
|
5
|
+
*
|
|
6
|
+
* @class
|
|
7
|
+
*/
|
|
8
|
+
export class UnderlinedTabNavigation extends Veil {
|
|
9
|
+
/**
|
|
10
|
+
* This will set the options.
|
|
11
|
+
* @member {array} options
|
|
12
|
+
* @default []
|
|
13
|
+
*/
|
|
14
|
+
options: any[];
|
|
15
|
+
/**
|
|
16
|
+
* This will set the class.
|
|
17
|
+
* @member {string} class
|
|
18
|
+
* @default ''
|
|
19
|
+
*/
|
|
20
|
+
class: string;
|
|
21
|
+
/**
|
|
22
|
+
* This will set the select call back.
|
|
23
|
+
* @member {function} callBack
|
|
24
|
+
*/
|
|
25
|
+
onSelect: any;
|
|
26
|
+
links: any[];
|
|
27
|
+
/**
|
|
28
|
+
* This will render the component.
|
|
29
|
+
*
|
|
30
|
+
* @returns {object}
|
|
31
|
+
*/
|
|
32
|
+
render(): object;
|
|
33
|
+
/**
|
|
34
|
+
* This will update the links.
|
|
35
|
+
*
|
|
36
|
+
* @param {string} value
|
|
37
|
+
* @returns {void}
|
|
38
|
+
*/
|
|
39
|
+
updateLinks(value: string): void;
|
|
40
|
+
/**
|
|
41
|
+
* This will deactivate all links.
|
|
42
|
+
*
|
|
43
|
+
* @returns {void}
|
|
44
|
+
*/
|
|
45
|
+
deactivateAllLinks(): void;
|
|
46
|
+
/**
|
|
47
|
+
* This will update the link.
|
|
48
|
+
*
|
|
49
|
+
* @param {object} link
|
|
50
|
+
* @param {boolean} selected
|
|
51
|
+
* @returns {void}
|
|
52
|
+
*/
|
|
53
|
+
updateLink(link: object, selected: boolean): void;
|
|
54
|
+
/**
|
|
55
|
+
* This will add a link.
|
|
56
|
+
*
|
|
57
|
+
* @param {object} option
|
|
58
|
+
* @returns {object}
|
|
59
|
+
*/
|
|
60
|
+
addLink({ label: text, href, exact }: object): object;
|
|
61
|
+
}
|
|
62
|
+
export default UnderlinedTabNavigation;
|
|
63
|
+
import { Veil } from '../../../components/atoms/veil.js';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UnderlinedTab
|
|
3
|
+
*
|
|
4
|
+
* This will create an underlined tab component that can route
|
|
5
|
+
* to tab panels with an active bottom border indicator.
|
|
6
|
+
*
|
|
7
|
+
* @class
|
|
8
|
+
*/
|
|
9
|
+
export class UnderlinedTab extends Veil {
|
|
10
|
+
/**
|
|
11
|
+
* This will set the options.
|
|
12
|
+
* @member {array} options
|
|
13
|
+
* @default []
|
|
14
|
+
*/
|
|
15
|
+
options: any[];
|
|
16
|
+
/**
|
|
17
|
+
* This will set the class.
|
|
18
|
+
* @member {string} class
|
|
19
|
+
* @default ''
|
|
20
|
+
*/
|
|
21
|
+
class: string;
|
|
22
|
+
/**
|
|
23
|
+
* This will render the component.
|
|
24
|
+
*
|
|
25
|
+
* @returns {object}
|
|
26
|
+
*/
|
|
27
|
+
render(): object;
|
|
28
|
+
/**
|
|
29
|
+
* This will add the group.
|
|
30
|
+
*
|
|
31
|
+
* @returns {array}
|
|
32
|
+
*/
|
|
33
|
+
addGroup(): any[];
|
|
34
|
+
}
|
|
35
|
+
export default UnderlinedTab;
|
|
36
|
+
import { Veil } from '../../../components/atoms/veil.js';
|
|
File without changes
|
package/dist/types/ui.d.ts
CHANGED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
export function createWatcherCallback(watcher: string | object | any[], callBack: Function): any[] | object;
|
|
2
|
+
export namespace Format {
|
|
3
|
+
/**
|
|
4
|
+
* Formats a number with commas.
|
|
5
|
+
*
|
|
6
|
+
* @param {string|number|object|array} watcher
|
|
7
|
+
* @param {string|null} defaultValue - Value if original is null or undefined.
|
|
8
|
+
* @returns {object|array}
|
|
9
|
+
*/
|
|
10
|
+
export function number(watcher: string | number | object | any[], defaultValue?: string | null): object | any[];
|
|
11
|
+
/**
|
|
12
|
+
* Formats a boolean value as a yes/no string.
|
|
13
|
+
*
|
|
14
|
+
* @param {string|number|object|array} watcher
|
|
15
|
+
* @param {string} yes - Text for true values.
|
|
16
|
+
* @param {string} no - Text for false values.
|
|
17
|
+
* @returns {object|array}
|
|
18
|
+
*/
|
|
19
|
+
export function yesno(watcher: string | number | object | any[], yes?: string, no?: string): object | any[];
|
|
20
|
+
/**
|
|
21
|
+
* Formats a value as money with two decimals.
|
|
22
|
+
*
|
|
23
|
+
* @param {string|number|object|array} watcher
|
|
24
|
+
* @param {string} currency - Currency symbol.
|
|
25
|
+
* @param {*} defaultValue - Value if original is invalid.
|
|
26
|
+
* @returns {object|array}
|
|
27
|
+
*/
|
|
28
|
+
export function money(watcher: string | number | object | any[], currency?: string, defaultValue?: any): object | any[];
|
|
29
|
+
/**
|
|
30
|
+
* Formats a value as a US phone number (10 digits).
|
|
31
|
+
*
|
|
32
|
+
* @param {string|object|array} watcher
|
|
33
|
+
* @param {*} defaultValue - Value if original is invalid.
|
|
34
|
+
* @returns {object|array}
|
|
35
|
+
*/
|
|
36
|
+
export function phone(watcher: string | object | any[], defaultValue?: any): object | any[];
|
|
37
|
+
/**
|
|
38
|
+
* Formats a value as an integer (rounds down).
|
|
39
|
+
*
|
|
40
|
+
* @param {string|number|object|array} watcher
|
|
41
|
+
* @param {*} defaultValue - Value if original is invalid.
|
|
42
|
+
* @returns {object|array}
|
|
43
|
+
*/
|
|
44
|
+
export function integer(watcher: string | number | object | any[], defaultValue?: any): object | any[];
|
|
45
|
+
/**
|
|
46
|
+
* Formats a date value to a standard date format.
|
|
47
|
+
*
|
|
48
|
+
* @param {string|number|object|array} watcher
|
|
49
|
+
* @param {*} defaultValue - Value if original is invalid.
|
|
50
|
+
* @returns {object|array}
|
|
51
|
+
*/
|
|
52
|
+
export function date(watcher: string | number | object | any[], defaultValue?: any): object | any[];
|
|
53
|
+
/**
|
|
54
|
+
* Formats a date and time value to a standard date and time format.
|
|
55
|
+
*
|
|
56
|
+
* @param {string|number|object|array} watcher
|
|
57
|
+
* @param {*} defaultValue - Value if original is invalid.
|
|
58
|
+
* @returns {object|array}
|
|
59
|
+
*/
|
|
60
|
+
export function dateTime(watcher: string | number | object | any[], defaultValue?: any): object | any[];
|
|
61
|
+
/**
|
|
62
|
+
* Formats a time value to a standard time format.
|
|
63
|
+
*
|
|
64
|
+
* @param {string|number|object|array} watcher
|
|
65
|
+
* @param {*} defaultValue - Value if original is invalid.
|
|
66
|
+
* @returns {object|array}
|
|
67
|
+
*/
|
|
68
|
+
export function time(watcher: string | number | object | any[], defaultValue?: any): object | any[];
|
|
69
|
+
/**
|
|
70
|
+
* Formats a value with a default value if null or undefined.
|
|
71
|
+
*
|
|
72
|
+
* @param {string|number|object|array} watcher
|
|
73
|
+
* @param {string|null} defaultValue - Value if original is null or undefined.
|
|
74
|
+
* @returns {object|array}
|
|
75
|
+
*/
|
|
76
|
+
function _default(watcher: string | number | object | any[], defaultValue?: string | null): object | any[];
|
|
77
|
+
export { _default as default };
|
|
78
|
+
}
|
package/dist/utils.es.js
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Jot as n, Component as a } from "@base-framework/base";
|
|
2
|
+
class s extends a {
|
|
3
|
+
/**
|
|
4
|
+
* This will set the component context.
|
|
5
|
+
*
|
|
6
|
+
* @param {object|null} context
|
|
7
|
+
* @returns {object|null}
|
|
8
|
+
*/
|
|
9
|
+
setContext(o) {
|
|
10
|
+
if (this.data)
|
|
11
|
+
return null;
|
|
12
|
+
const e = this?.parent?.data ?? this?.parent?.context?.data ?? this?.parent?.state ?? null;
|
|
13
|
+
return e ? { data: e } : null;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
const i = (t) => n(t, s);
|
|
17
|
+
export {
|
|
18
|
+
s as V,
|
|
19
|
+
i as a
|
|
20
|
+
};
|
package/package.json
CHANGED
|
@@ -1,85 +1,85 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@base-framework/ui",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "This is a UI package that adds components and atoms that use Tailwind CSS and a theme based on Shadcn.",
|
|
5
|
-
"main": "./dist/index.es.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"dev": "vite",
|
|
8
|
-
"build": "vite build && tsc",
|
|
9
|
-
"preview": "vite preview"
|
|
10
|
-
},
|
|
11
|
-
"type": "module",
|
|
12
|
-
"keywords": [
|
|
13
|
-
"JavaScript",
|
|
14
|
-
"Framework",
|
|
15
|
-
"Base",
|
|
16
|
-
"ES6",
|
|
17
|
-
"UI"
|
|
18
|
-
],
|
|
19
|
-
"author": "Chris Durfee",
|
|
20
|
-
"license": "ISC",
|
|
21
|
-
"repository": {
|
|
22
|
-
"type": "git",
|
|
23
|
-
"url": "git+https://github.com/chrisdurfee/ui.git"
|
|
24
|
-
},
|
|
25
|
-
"bugs": {
|
|
26
|
-
"url": "https://github.com/chrisdurfee/ui/issues"
|
|
27
|
-
},
|
|
28
|
-
"devDependencies": {
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"@base-framework/
|
|
36
|
-
"@
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
"
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
"
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
"
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
"
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
"
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
"
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
"
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
"
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
},
|
|
84
|
-
"homepage": "https://github.com/chrisdurfee/organisms#readme"
|
|
85
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@base-framework/ui",
|
|
3
|
+
"version": "1.0.2001",
|
|
4
|
+
"description": "This is a UI package that adds components and atoms that use Tailwind CSS and a theme based on Shadcn.",
|
|
5
|
+
"main": "./dist/index.es.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"dev": "vite",
|
|
8
|
+
"build": "vite build && tsc",
|
|
9
|
+
"preview": "vite preview"
|
|
10
|
+
},
|
|
11
|
+
"type": "module",
|
|
12
|
+
"keywords": [
|
|
13
|
+
"JavaScript",
|
|
14
|
+
"Framework",
|
|
15
|
+
"Base",
|
|
16
|
+
"ES6",
|
|
17
|
+
"UI"
|
|
18
|
+
],
|
|
19
|
+
"author": "Chris Durfee",
|
|
20
|
+
"license": "ISC",
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "git+https://github.com/chrisdurfee/ui.git"
|
|
24
|
+
},
|
|
25
|
+
"bugs": {
|
|
26
|
+
"url": "https://github.com/chrisdurfee/ui/issues"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"esbuild": "^0.25.0",
|
|
30
|
+
"tailwindcss": "^4.1.12"
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@base-framework/atoms": "^1.0.41",
|
|
34
|
+
"@base-framework/base": "^3.0.295",
|
|
35
|
+
"@base-framework/organisms": "^1.0.69",
|
|
36
|
+
"@tailwindcss/vite": "^4.1.12",
|
|
37
|
+
"d3": "^7.9.0",
|
|
38
|
+
"typescript": "^5.7.3",
|
|
39
|
+
"vite": "^7.1.0"
|
|
40
|
+
},
|
|
41
|
+
"types": "./dist/types/**/*.d.ts",
|
|
42
|
+
"files": [
|
|
43
|
+
"package.json",
|
|
44
|
+
"readme.md",
|
|
45
|
+
"copilot.md",
|
|
46
|
+
"dist"
|
|
47
|
+
],
|
|
48
|
+
"exports": {
|
|
49
|
+
"./package.json": "./package.json",
|
|
50
|
+
".": {
|
|
51
|
+
"import": "./dist/index.es.js",
|
|
52
|
+
"require": "./dist/index.cjs"
|
|
53
|
+
},
|
|
54
|
+
"./atoms": {
|
|
55
|
+
"import": "./dist/atoms.es.js",
|
|
56
|
+
"require": "./dist/atoms.cjs"
|
|
57
|
+
},
|
|
58
|
+
"./icons": {
|
|
59
|
+
"import": "./dist/icons.es.js",
|
|
60
|
+
"require": "./dist/icons.cjs"
|
|
61
|
+
},
|
|
62
|
+
"./molecules": {
|
|
63
|
+
"import": "./dist/molecules.es.js",
|
|
64
|
+
"require": "./dist/molecules.cjs"
|
|
65
|
+
},
|
|
66
|
+
"./organisms": {
|
|
67
|
+
"import": "./dist/organisms.es.js",
|
|
68
|
+
"require": "./dist/organisms.cjs"
|
|
69
|
+
},
|
|
70
|
+
"./utils": {
|
|
71
|
+
"import": "./dist/utils.es.js",
|
|
72
|
+
"require": "./dist/utils.cjs"
|
|
73
|
+
},
|
|
74
|
+
"./pages": {
|
|
75
|
+
"import": "./dist/pages.es.js",
|
|
76
|
+
"require": "./dist/pages.cjs"
|
|
77
|
+
},
|
|
78
|
+
"./templates": {
|
|
79
|
+
"import": "./dist/templates.es.js",
|
|
80
|
+
"require": "./dist/templates.cjs"
|
|
81
|
+
},
|
|
82
|
+
"./copilot.md": "./copilot.md"
|
|
83
|
+
},
|
|
84
|
+
"homepage": "https://github.com/chrisdurfee/organisms#readme"
|
|
85
|
+
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { Atom as a } from "@base-framework/base";
|
|
2
|
-
import { Header as c, H1 as f } from "@base-framework/atoms";
|
|
3
|
-
const o = a((l, e) => ({
|
|
4
|
-
tag: "section",
|
|
5
|
-
...l,
|
|
6
|
-
children: e
|
|
7
|
-
})), r = a((l, e) => o({
|
|
8
|
-
class: "body full-container flex flex-auto flex-col " + l.class,
|
|
9
|
-
...l
|
|
10
|
-
}, e)), s = a((l, e) => (l.class = "row flex flex-auto flex-col lg:flex-row " + (l.class || ""), {
|
|
11
|
-
...l,
|
|
12
|
-
children: e
|
|
13
|
-
})), u = a((l, e) => c([
|
|
14
|
-
f({ watch: l.watch }, l.text)
|
|
15
|
-
], e)), t = a((l, e) => (l.class = "col flex flex-auto flex-col " + (l.class || ""), {
|
|
16
|
-
...l,
|
|
17
|
-
children: e
|
|
18
|
-
})), m = a((l, e) => o({ class: "body aside-container flex flex-auto flex-col max-w-[100vw] h-full" }, [
|
|
19
|
-
s({ class: "flex flex-auto flex-col lg:flex-row" }, [
|
|
20
|
-
t({ class: "drawer control flex flex-none md:flex-auto w-full md:max-w-[320px]" }, [
|
|
21
|
-
l.left
|
|
22
|
-
]),
|
|
23
|
-
t({ class: "flex flex-grow flex-col" }, [
|
|
24
|
-
l.right
|
|
25
|
-
])
|
|
26
|
-
])
|
|
27
|
-
]));
|
|
28
|
-
export {
|
|
29
|
-
m as A,
|
|
30
|
-
r as F,
|
|
31
|
-
t as M,
|
|
32
|
-
s as R,
|
|
33
|
-
u as T,
|
|
34
|
-
o as a
|
|
35
|
-
};
|