@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,224 @@
|
|
|
1
|
+
var o = Object.defineProperty;
|
|
2
|
+
var x = (e, t, a) => t in e ? o(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
|
|
3
|
+
var s = (e, t, a) => x(e, typeof t != "symbol" ? t + "" : t, a);
|
|
4
|
+
import { Div as l, Header as u, H1 as h, P as f } from "@base-framework/atoms";
|
|
5
|
+
import { F as r, A as p } from "./aside-template-D0KANPjh.js";
|
|
6
|
+
import { Component as m, Atom as c } from "@base-framework/base";
|
|
7
|
+
import { c as g, e as P } from "./mobile-nav-wrapper-7Qul1-mt.js";
|
|
8
|
+
class d extends m {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
/**
|
|
12
|
+
* @member {string} class
|
|
13
|
+
*/
|
|
14
|
+
s(this, "class", "");
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
class i extends d {
|
|
18
|
+
/**
|
|
19
|
+
* This will be called every time the route
|
|
20
|
+
* is activated.
|
|
21
|
+
*
|
|
22
|
+
* @param {object} params
|
|
23
|
+
*/
|
|
24
|
+
update(t) {
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
class M extends i {
|
|
28
|
+
/**
|
|
29
|
+
* This will render the page.
|
|
30
|
+
*
|
|
31
|
+
* @returns {object}
|
|
32
|
+
*/
|
|
33
|
+
render() {
|
|
34
|
+
return r([
|
|
35
|
+
l({ class: "flex flex-auto flex-col pt-[80px] sm:pt-0" }, this.children)
|
|
36
|
+
]);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
class v extends i {
|
|
40
|
+
/**
|
|
41
|
+
* This will render the page.
|
|
42
|
+
*
|
|
43
|
+
* @returns {object}
|
|
44
|
+
*/
|
|
45
|
+
render() {
|
|
46
|
+
return r([
|
|
47
|
+
l({ class: "contained px-4 flex flex-auto flex-col" }, this.children)
|
|
48
|
+
]);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
const n = c((e, t) => (e.class = "basic-page pt-[80px] sm:pt-0 flex flex-auto flex-col " + (e.class || ""), {
|
|
52
|
+
tag: "section",
|
|
53
|
+
...e,
|
|
54
|
+
children: t
|
|
55
|
+
}));
|
|
56
|
+
class y extends i {
|
|
57
|
+
/**
|
|
58
|
+
* This will render the page.
|
|
59
|
+
*
|
|
60
|
+
* @returns {object}
|
|
61
|
+
*/
|
|
62
|
+
render() {
|
|
63
|
+
return n([
|
|
64
|
+
r([
|
|
65
|
+
l({ class: "contained px-4 flex flex-auto flex-col" }, this.children)
|
|
66
|
+
])
|
|
67
|
+
]);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
const b = c(({ title: e, description: t }) => u({ class: "sm:py-8 px-6 md:px-5 flex flex-col" }, [
|
|
71
|
+
h({ class: "scroll-m-20 text-3xl font-bold tracking-tight" }, e),
|
|
72
|
+
t && f({ class: "text-base text-muted-foreground py-2 max-w-[700px]" }, t)
|
|
73
|
+
]));
|
|
74
|
+
class C extends i {
|
|
75
|
+
constructor() {
|
|
76
|
+
super(...arguments);
|
|
77
|
+
/**
|
|
78
|
+
* @member {string} title
|
|
79
|
+
*/
|
|
80
|
+
s(this, "title", "");
|
|
81
|
+
/**
|
|
82
|
+
* @member {string} description
|
|
83
|
+
*/
|
|
84
|
+
s(this, "description", "");
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* This will render the page.
|
|
88
|
+
*
|
|
89
|
+
* @returns {object}
|
|
90
|
+
*/
|
|
91
|
+
render() {
|
|
92
|
+
return n([
|
|
93
|
+
b({
|
|
94
|
+
title: this.title,
|
|
95
|
+
description: this.description
|
|
96
|
+
}),
|
|
97
|
+
r(this.children)
|
|
98
|
+
]);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
class N extends d {
|
|
102
|
+
/**
|
|
103
|
+
* This will render the page.
|
|
104
|
+
*
|
|
105
|
+
* @returns {object}
|
|
106
|
+
*/
|
|
107
|
+
render() {
|
|
108
|
+
const t = this.class ?? "";
|
|
109
|
+
return l({ class: `flex flex-col flex-auto ${t}` }, this.children);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
class A extends i {
|
|
113
|
+
constructor() {
|
|
114
|
+
super(...arguments);
|
|
115
|
+
/**
|
|
116
|
+
* @member {array} routes
|
|
117
|
+
*/
|
|
118
|
+
s(this, "routes", []);
|
|
119
|
+
/**
|
|
120
|
+
* @member {array} switch
|
|
121
|
+
*/
|
|
122
|
+
s(this, "switch", []);
|
|
123
|
+
/**
|
|
124
|
+
* @member {array} links
|
|
125
|
+
*/
|
|
126
|
+
s(this, "links", []);
|
|
127
|
+
/**
|
|
128
|
+
* @member {string} title
|
|
129
|
+
*/
|
|
130
|
+
s(this, "title", "");
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* This will render the page.
|
|
134
|
+
*
|
|
135
|
+
* @returns {object}
|
|
136
|
+
*/
|
|
137
|
+
render() {
|
|
138
|
+
return n(
|
|
139
|
+
{
|
|
140
|
+
route: this.addRoutes()
|
|
141
|
+
},
|
|
142
|
+
[
|
|
143
|
+
p({
|
|
144
|
+
left: this.addSidebar(),
|
|
145
|
+
right: this.addBody()
|
|
146
|
+
})
|
|
147
|
+
]
|
|
148
|
+
);
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* This will add the routes.
|
|
152
|
+
*
|
|
153
|
+
* @returns {array}
|
|
154
|
+
*/
|
|
155
|
+
addRoutes() {
|
|
156
|
+
return this.routes || [];
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* This will add the sidebar of the page.
|
|
160
|
+
*
|
|
161
|
+
* @returns {object}
|
|
162
|
+
*/
|
|
163
|
+
addSidebar() {
|
|
164
|
+
return l({ class: "flex flex-auto flex-col" }, this.addNavigation());
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* This will add the body of the page.
|
|
168
|
+
*
|
|
169
|
+
* @returns {object}
|
|
170
|
+
*/
|
|
171
|
+
addBody() {
|
|
172
|
+
return l({ class: "flex flex-auto flex-col" }, [
|
|
173
|
+
{
|
|
174
|
+
class: "contained",
|
|
175
|
+
switch: this.addSwitch()
|
|
176
|
+
}
|
|
177
|
+
]);
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* This will add the switch of the page.
|
|
181
|
+
*
|
|
182
|
+
* @returns {array}
|
|
183
|
+
*/
|
|
184
|
+
addSwitch() {
|
|
185
|
+
return this.switch || [];
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* This will add the navigation of the page.
|
|
189
|
+
*
|
|
190
|
+
* @returns {object}
|
|
191
|
+
*/
|
|
192
|
+
addNavigation() {
|
|
193
|
+
const a = this.getLinks();
|
|
194
|
+
return [
|
|
195
|
+
g(
|
|
196
|
+
{
|
|
197
|
+
title: this.title,
|
|
198
|
+
options: a,
|
|
199
|
+
class: "hidden lg:block"
|
|
200
|
+
}
|
|
201
|
+
),
|
|
202
|
+
P({ title: this.title, options: a })
|
|
203
|
+
];
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* This will get the links.
|
|
207
|
+
*
|
|
208
|
+
* @returns {array}
|
|
209
|
+
*/
|
|
210
|
+
getLinks() {
|
|
211
|
+
return this.links || [];
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
export {
|
|
215
|
+
i as B,
|
|
216
|
+
v as C,
|
|
217
|
+
y as F,
|
|
218
|
+
n as M,
|
|
219
|
+
d as P,
|
|
220
|
+
A as S,
|
|
221
|
+
M as a,
|
|
222
|
+
C as b,
|
|
223
|
+
N as c
|
|
224
|
+
};
|
package/dist/style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.modal{animation:popIn .2s;max-height:100vh;padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom);@apply shadow-xl md:rounded-md rounded-md;}.modal:after{content:"";position:fixed;top:0;left:0;right:0;bottom:0;z-index:-1}.modal.sm{max-width:425px;max-height:350px;@apply shadow-xl md:rounded-md rounded-md border;}.modal.sm .modal-body{max-height:300px}.modal.lg,.modal.xl{top:0;bottom:0;max-height:100vh}.modal .modal-header{padding-top:calc(1rem + env(safe-area-inset-top));top:calc(-0px - env(safe-area-inset-top))}.modal .modal-footer{padding-bottom:calc(1rem + env(safe-area-inset-bottom));bottom:calc(-0px - env(safe-area-inset-bottom))}@media (min-width: 1024px){.modal.md{max-height:80vh;padding:0}.modal header button.icon{@apply hidden;}}.modal.right,.modal.left{top:0;bottom:0;max-height:100vh;border-radius:0}.modal.right.md,.modal.left.md{@apply max-w-[640px];}.modal.right{margin-right:0;animation-name:pullRightIn}.modal.left{margin-left:0;animation-name:pullLeftIn}
|