@bexis2/bexis2-core-ui 0.4.88 → 0.4.89
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 +3 -1
- package/dist/TableView.svelte.d.ts +2 -0
- package/dist/components/CodeEditor/CodeEditor.svelte.d.ts +4 -1
- package/dist/components/Facets/Facets.svelte.d.ts +2 -0
- package/dist/components/Facets/ShowMore.svelte.d.ts +2 -0
- package/dist/components/File/FileIcon.svelte.d.ts +2 -0
- package/dist/components/File/FileInfo.svelte.d.ts +2 -0
- package/dist/components/File/FileUploader.svelte.d.ts +2 -0
- package/dist/components/ListView.svelte.d.ts +2 -0
- package/dist/components/Table/ColumnsMenu.svelte.d.ts +2 -0
- package/dist/components/Table/Table.svelte.d.ts +2 -0
- package/dist/components/Table/TableContent.svelte.d.ts +2 -0
- package/dist/components/Table/TableFilter.svelte.d.ts +2 -0
- package/dist/components/Table/TableFilterServer.svelte.d.ts +2 -0
- package/dist/components/Table/TablePagination.svelte.d.ts +2 -0
- package/dist/components/Table/TablePaginationServer.svelte.d.ts +2 -0
- package/dist/components/form/Checkbox.svelte.d.ts +2 -0
- package/dist/components/form/CheckboxKvPList.svelte.d.ts +2 -0
- package/dist/components/form/CheckboxList.svelte.d.ts +2 -0
- package/dist/components/form/DateInput.svelte.d.ts +2 -0
- package/dist/components/form/DatePickerInput.svelte +48 -0
- package/dist/components/form/DatePickerInput.svelte.d.ts +34 -0
- package/dist/components/form/Dropdown.svelte.d.ts +2 -0
- package/dist/components/form/DropdownKvP.svelte.d.ts +2 -0
- package/dist/components/form/InputContainer.svelte.d.ts +2 -0
- package/dist/components/form/MultiSelect.svelte.d.ts +2 -0
- package/dist/components/form/NumberInput.svelte.d.ts +2 -0
- package/dist/components/form/TextArea.svelte.d.ts +2 -0
- package/dist/components/form/TextInput.svelte.d.ts +2 -0
- package/dist/components/page/Alert.svelte.d.ts +2 -0
- package/dist/components/page/BackToTop.svelte.d.ts +2 -0
- package/dist/components/page/Docs.svelte.d.ts +2 -0
- package/dist/components/page/ErrorMessage.svelte.d.ts +2 -0
- package/dist/components/page/Footer.svelte.d.ts +2 -0
- package/dist/components/page/GoToTop.svelte.d.ts +2 -0
- package/dist/components/page/Header.svelte.d.ts +2 -0
- package/dist/components/page/HelpPopUp.svelte.d.ts +2 -0
- package/dist/components/page/Notification.svelte.d.ts +2 -0
- package/dist/components/page/Page.svelte.d.ts +2 -0
- package/dist/components/page/Spinner.svelte.d.ts +2 -0
- package/dist/components/page/TablePlaceholder.svelte.d.ts +2 -0
- package/dist/components/page/breadcrumb/Breadcrumb.svelte.d.ts +2 -0
- package/dist/components/page/menu/Menu.svelte +3 -0
- package/dist/components/page/menu/Menu.svelte.d.ts +2 -0
- package/dist/components/page/menu/MenuAccountBar.svelte.d.ts +2 -0
- package/dist/components/page/menu/MenuBar.svelte.d.ts +2 -0
- package/dist/components/page/menu/MenuItem.svelte.d.ts +2 -0
- package/dist/components/page/menu/MenuSublist.svelte.d.ts +2 -0
- package/dist/components/page/menu/SettingsBar.svelte.d.ts +2 -0
- package/dist/components/toggle/Toggle.svelte.d.ts +3 -1
- package/dist/css/themes/theme-bexis2.css_old +100 -0
- package/dist/services/Api.d.ts +5 -5
- package/dist/themes/theme-bexis2 copy.d.ts +2 -0
- package/dist/themes/theme-bexis2 copy.js +112 -0
- package/package.json +2 -1
- package/src/lib/components/form/DatePickerInput.svelte +53 -0
- package/src/lib/components/page/menu/Menu.svelte +6 -0
- package/src/lib/css/themes/theme-bexis2.css_old +100 -0
- package/src/lib/themes/theme-bexis2 copy.ts +114 -0
package/README.md
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
|
+
import type { ThemeSpec } from 'svelte-codemirror-editor';
|
|
2
3
|
declare const __propDef: {
|
|
3
4
|
props: {
|
|
4
5
|
id: string;
|
|
@@ -10,7 +11,7 @@ declare const __propDef: {
|
|
|
10
11
|
toggle?: boolean;
|
|
11
12
|
actions?: boolean;
|
|
12
13
|
isValid?: boolean;
|
|
13
|
-
styles?:
|
|
14
|
+
styles?: ThemeSpec;
|
|
14
15
|
};
|
|
15
16
|
events: {
|
|
16
17
|
cancel: CustomEvent<any>;
|
|
@@ -23,6 +24,8 @@ declare const __propDef: {
|
|
|
23
24
|
id: string;
|
|
24
25
|
};
|
|
25
26
|
};
|
|
27
|
+
exports?: {} | undefined;
|
|
28
|
+
bindings?: string | undefined;
|
|
26
29
|
};
|
|
27
30
|
export type CodeEditorProps = typeof __propDef.props;
|
|
28
31
|
export type CodeEditorEvents = typeof __propDef.events;
|
|
@@ -10,6 +10,8 @@ declare const __propDef: {
|
|
|
10
10
|
[evt: string]: CustomEvent<any>;
|
|
11
11
|
};
|
|
12
12
|
slots: {};
|
|
13
|
+
exports?: {} | undefined;
|
|
14
|
+
bindings?: string | undefined;
|
|
13
15
|
};
|
|
14
16
|
export type ShowMoreProps = typeof __propDef.props;
|
|
15
17
|
export type ShowMoreEvents = typeof __propDef.events;
|
|
@@ -19,6 +19,8 @@ declare const __propDef: {
|
|
|
19
19
|
[evt: string]: CustomEvent<any>;
|
|
20
20
|
};
|
|
21
21
|
slots: {};
|
|
22
|
+
exports?: {} | undefined;
|
|
23
|
+
bindings?: string | undefined;
|
|
22
24
|
};
|
|
23
25
|
export type FileUploaderProps = typeof __propDef.props;
|
|
24
26
|
export type FileUploaderEvents = typeof __propDef.events;
|
|
@@ -12,6 +12,8 @@ declare const __propDef: {
|
|
|
12
12
|
[evt: string]: CustomEvent<any>;
|
|
13
13
|
};
|
|
14
14
|
slots: {};
|
|
15
|
+
exports?: {} | undefined;
|
|
16
|
+
bindings?: string | undefined;
|
|
15
17
|
};
|
|
16
18
|
export type ColumnsMenuProps = typeof __propDef.props;
|
|
17
19
|
export type ColumnsMenuEvents = typeof __propDef.events;
|
|
@@ -10,6 +10,8 @@ declare const __propDef: {
|
|
|
10
10
|
[evt: string]: CustomEvent<any>;
|
|
11
11
|
};
|
|
12
12
|
slots: {};
|
|
13
|
+
exports?: {} | undefined;
|
|
14
|
+
bindings?: string | undefined;
|
|
13
15
|
};
|
|
14
16
|
export type TableContentProps = typeof __propDef.props;
|
|
15
17
|
export type TableContentEvents = typeof __propDef.events;
|
|
@@ -14,6 +14,8 @@ declare const __propDef: {
|
|
|
14
14
|
[evt: string]: CustomEvent<any>;
|
|
15
15
|
};
|
|
16
16
|
slots: {};
|
|
17
|
+
exports?: {} | undefined;
|
|
18
|
+
bindings?: string | undefined;
|
|
17
19
|
};
|
|
18
20
|
export type TableFilterProps = typeof __propDef.props;
|
|
19
21
|
export type TableFilterEvents = typeof __propDef.events;
|
|
@@ -15,6 +15,8 @@ declare const __propDef: {
|
|
|
15
15
|
[evt: string]: CustomEvent<any>;
|
|
16
16
|
};
|
|
17
17
|
slots: {};
|
|
18
|
+
exports?: {} | undefined;
|
|
19
|
+
bindings?: string | undefined;
|
|
18
20
|
};
|
|
19
21
|
export type TableFilterServerProps = typeof __propDef.props;
|
|
20
22
|
export type TableFilterServerEvents = typeof __propDef.events;
|
|
@@ -10,6 +10,8 @@ declare const __propDef: {
|
|
|
10
10
|
[evt: string]: CustomEvent<any>;
|
|
11
11
|
};
|
|
12
12
|
slots: {};
|
|
13
|
+
exports?: {} | undefined;
|
|
14
|
+
bindings?: string | undefined;
|
|
13
15
|
};
|
|
14
16
|
export type TablePaginationProps = typeof __propDef.props;
|
|
15
17
|
export type TablePaginationEvents = typeof __propDef.events;
|
|
@@ -12,6 +12,8 @@ declare const __propDef: {
|
|
|
12
12
|
[evt: string]: CustomEvent<any>;
|
|
13
13
|
};
|
|
14
14
|
slots: {};
|
|
15
|
+
exports?: {} | undefined;
|
|
16
|
+
bindings?: string | undefined;
|
|
15
17
|
};
|
|
16
18
|
export type TablePaginationServerProps = typeof __propDef.props;
|
|
17
19
|
export type TablePaginationServerEvents = typeof __propDef.events;
|
|
@@ -17,6 +17,8 @@ declare const __propDef: {
|
|
|
17
17
|
[evt: string]: CustomEvent<any>;
|
|
18
18
|
};
|
|
19
19
|
slots: {};
|
|
20
|
+
exports?: {} | undefined;
|
|
21
|
+
bindings?: string | undefined;
|
|
20
22
|
};
|
|
21
23
|
export type CheckboxProps = typeof __propDef.props;
|
|
22
24
|
export type CheckboxEvents = typeof __propDef.events;
|
|
@@ -15,6 +15,8 @@ declare const __propDef: {
|
|
|
15
15
|
[evt: string]: CustomEvent<any>;
|
|
16
16
|
};
|
|
17
17
|
slots: {};
|
|
18
|
+
exports?: {} | undefined;
|
|
19
|
+
bindings?: string | undefined;
|
|
18
20
|
};
|
|
19
21
|
export type CheckboxKvPListProps = typeof __propDef.props;
|
|
20
22
|
export type CheckboxKvPListEvents = typeof __propDef.events;
|
|
@@ -13,6 +13,8 @@ declare const __propDef: {
|
|
|
13
13
|
[evt: string]: CustomEvent<any>;
|
|
14
14
|
};
|
|
15
15
|
slots: {};
|
|
16
|
+
exports?: {} | undefined;
|
|
17
|
+
bindings?: string | undefined;
|
|
16
18
|
};
|
|
17
19
|
export type CheckboxListProps = typeof __propDef.props;
|
|
18
20
|
export type CheckboxListEvents = typeof __propDef.events;
|
|
@@ -19,6 +19,8 @@ declare const __propDef: {
|
|
|
19
19
|
[evt: string]: CustomEvent<any>;
|
|
20
20
|
};
|
|
21
21
|
slots: {};
|
|
22
|
+
exports?: {} | undefined;
|
|
23
|
+
bindings?: string | undefined;
|
|
22
24
|
};
|
|
23
25
|
export type DateInputProps = typeof __propDef.props;
|
|
24
26
|
export type DateInputEvents = typeof __propDef.events;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
<script>import InputContainer from "./InputContainer.svelte";
|
|
2
|
+
import SveltyPicker from "svelty-picker";
|
|
3
|
+
export let id = "";
|
|
4
|
+
export let label = "";
|
|
5
|
+
export let value = "";
|
|
6
|
+
export let valid = false;
|
|
7
|
+
export let invalid = false;
|
|
8
|
+
export let required = false;
|
|
9
|
+
export let feedback = [""];
|
|
10
|
+
export let placeholder = "";
|
|
11
|
+
export let help = false;
|
|
12
|
+
export let disabled = false;
|
|
13
|
+
export let description = "";
|
|
14
|
+
export let showDescription = false;
|
|
15
|
+
export let mode = "date";
|
|
16
|
+
export let initialDate = "";
|
|
17
|
+
export let format = "yyyy-mm-dd";
|
|
18
|
+
export let displayFormat = "yyyy-mm-dd";
|
|
19
|
+
export let onChangeHandler = () => {
|
|
20
|
+
};
|
|
21
|
+
let width = "w-32";
|
|
22
|
+
if (mode !== "date" && mode !== "time" && mode !== "datetime") {
|
|
23
|
+
throw new Error(`Invalid mode: ${mode}. Valid modes are 'date', 'time', and 'datetime'.`);
|
|
24
|
+
}
|
|
25
|
+
if (mode === "datetime" && (format === "yyyy-mm-dd" || displayFormat === "yyyy-mm-dd")) {
|
|
26
|
+
throw new Error(
|
|
27
|
+
`Invalid format for datetime mode. Please use a format that includes both date and time.`
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
if (mode === "datetime") {
|
|
31
|
+
width = "w-64";
|
|
32
|
+
}
|
|
33
|
+
</script>
|
|
34
|
+
|
|
35
|
+
<InputContainer {id} {label} {feedback} {required} {help} {description} {showDescription}>
|
|
36
|
+
<SveltyPicker
|
|
37
|
+
{mode}
|
|
38
|
+
name={label}
|
|
39
|
+
{format}
|
|
40
|
+
{displayFormat}
|
|
41
|
+
{initialDate}
|
|
42
|
+
bind:value
|
|
43
|
+
inputClasses="input variant-form-material dark:bg-zinc-700 bg-zinc-50 placeholder:text-gray-400 {width}"
|
|
44
|
+
on:change={onChangeHandler}
|
|
45
|
+
{disabled}
|
|
46
|
+
{placeholder}
|
|
47
|
+
/>
|
|
48
|
+
</InputContainer>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
id?: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
value?: string;
|
|
7
|
+
valid?: boolean;
|
|
8
|
+
invalid?: boolean;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
feedback?: string[];
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
help?: boolean;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
description?: string;
|
|
15
|
+
showDescription?: boolean;
|
|
16
|
+
mode?: "date" | "time" | "datetime";
|
|
17
|
+
initialDate?: string;
|
|
18
|
+
format?: string;
|
|
19
|
+
displayFormat?: string;
|
|
20
|
+
onChangeHandler?: (event: CustomEvent) => void;
|
|
21
|
+
};
|
|
22
|
+
events: {
|
|
23
|
+
[evt: string]: CustomEvent<any>;
|
|
24
|
+
};
|
|
25
|
+
slots: {};
|
|
26
|
+
exports?: {} | undefined;
|
|
27
|
+
bindings?: string | undefined;
|
|
28
|
+
};
|
|
29
|
+
export type DatePickerInputProps = typeof __propDef.props;
|
|
30
|
+
export type DatePickerInputEvents = typeof __propDef.events;
|
|
31
|
+
export type DatePickerInputSlots = typeof __propDef.slots;
|
|
32
|
+
export default class DatePickerInput extends SvelteComponent<DatePickerInputProps, DatePickerInputEvents, DatePickerInputSlots> {
|
|
33
|
+
}
|
|
34
|
+
export {};
|
|
@@ -23,6 +23,8 @@ declare const __propDef: {
|
|
|
23
23
|
[evt: string]: CustomEvent<any>;
|
|
24
24
|
};
|
|
25
25
|
slots: {};
|
|
26
|
+
exports?: {} | undefined;
|
|
27
|
+
bindings?: string | undefined;
|
|
26
28
|
};
|
|
27
29
|
export type NumberInputProps = typeof __propDef.props;
|
|
28
30
|
export type NumberInputEvents = typeof __propDef.events;
|
|
@@ -21,6 +21,8 @@ declare const __propDef: {
|
|
|
21
21
|
[evt: string]: CustomEvent<any>;
|
|
22
22
|
};
|
|
23
23
|
slots: {};
|
|
24
|
+
exports?: {} | undefined;
|
|
25
|
+
bindings?: string | undefined;
|
|
24
26
|
};
|
|
25
27
|
export type TextAreaProps = typeof __propDef.props;
|
|
26
28
|
export type TextAreaEvents = typeof __propDef.events;
|
|
@@ -21,6 +21,8 @@ declare const __propDef: {
|
|
|
21
21
|
[evt: string]: CustomEvent<any>;
|
|
22
22
|
};
|
|
23
23
|
slots: {};
|
|
24
|
+
exports?: {} | undefined;
|
|
25
|
+
bindings?: string | undefined;
|
|
24
26
|
};
|
|
25
27
|
export type TextInputProps = typeof __propDef.props;
|
|
26
28
|
export type TextInputEvents = typeof __propDef.events;
|
|
@@ -7,6 +7,8 @@ declare const __propDef: {
|
|
|
7
7
|
[evt: string]: CustomEvent<any>;
|
|
8
8
|
};
|
|
9
9
|
slots: {};
|
|
10
|
+
exports?: {} | undefined;
|
|
11
|
+
bindings?: string | undefined;
|
|
10
12
|
};
|
|
11
13
|
export type ErrorMessageProps = typeof __propDef.props;
|
|
12
14
|
export type ErrorMessageEvents = typeof __propDef.events;
|
|
@@ -10,6 +10,8 @@ declare const __propDef: {
|
|
|
10
10
|
[evt: string]: CustomEvent<any>;
|
|
11
11
|
};
|
|
12
12
|
slots: {};
|
|
13
|
+
exports?: {} | undefined;
|
|
14
|
+
bindings?: string | undefined;
|
|
13
15
|
};
|
|
14
16
|
export type SpinnerProps = typeof __propDef.props;
|
|
15
17
|
export type SpinnerEvents = typeof __propDef.events;
|
|
@@ -8,6 +8,8 @@ declare const __propDef: {
|
|
|
8
8
|
[evt: string]: CustomEvent<any>;
|
|
9
9
|
};
|
|
10
10
|
slots: {};
|
|
11
|
+
exports?: {} | undefined;
|
|
12
|
+
bindings?: string | undefined;
|
|
11
13
|
};
|
|
12
14
|
export type TablePlaceholderProps = typeof __propDef.props;
|
|
13
15
|
export type TablePlaceholderEvents = typeof __propDef.events;
|
|
@@ -15,6 +15,7 @@ onMount(async () => {
|
|
|
15
15
|
const storedFontSize = localStorage.getItem("fontSize");
|
|
16
16
|
if (storedFontSize) {
|
|
17
17
|
document.documentElement.style.fontSize = storedFontSize;
|
|
18
|
+
document.documentElement.style.setProperty("--font-size", storedFontSize);
|
|
18
19
|
}
|
|
19
20
|
});
|
|
20
21
|
let hamburger = true;
|
|
@@ -22,11 +23,13 @@ const theme = writable("light");
|
|
|
22
23
|
function increaseFontSize() {
|
|
23
24
|
const currentFontSize = parseFloat(getComputedStyle(document.documentElement).fontSize);
|
|
24
25
|
document.documentElement.style.fontSize = currentFontSize + 1 + "px";
|
|
26
|
+
document.documentElement.style.setProperty("--font-size", document.documentElement.style.fontSize);
|
|
25
27
|
localStorage.setItem("fontSize", document.documentElement.style.fontSize);
|
|
26
28
|
}
|
|
27
29
|
function decreaseFontSize() {
|
|
28
30
|
const currentFontSize = parseFloat(getComputedStyle(document.documentElement).fontSize);
|
|
29
31
|
document.documentElement.style.fontSize = currentFontSize - 1 + "px";
|
|
32
|
+
document.documentElement.style.setProperty("--font-size", document.documentElement.style.fontSize);
|
|
30
33
|
localStorage.setItem("fontSize", document.documentElement.style.fontSize);
|
|
31
34
|
}
|
|
32
35
|
function toggleDarkMode() {
|
|
@@ -8,6 +8,8 @@ declare const __propDef: {
|
|
|
8
8
|
[evt: string]: CustomEvent<any>;
|
|
9
9
|
};
|
|
10
10
|
slots: {};
|
|
11
|
+
exports?: {} | undefined;
|
|
12
|
+
bindings?: string | undefined;
|
|
11
13
|
};
|
|
12
14
|
export type MenuAccountBarProps = typeof __propDef.props;
|
|
13
15
|
export type MenuAccountBarEvents = typeof __propDef.events;
|
|
@@ -8,6 +8,8 @@ declare const __propDef: {
|
|
|
8
8
|
[evt: string]: CustomEvent<any>;
|
|
9
9
|
};
|
|
10
10
|
slots: {};
|
|
11
|
+
exports?: {} | undefined;
|
|
12
|
+
bindings?: string | undefined;
|
|
11
13
|
};
|
|
12
14
|
export type MenuSublistProps = typeof __propDef.props;
|
|
13
15
|
export type MenuSublistEvents = typeof __propDef.events;
|
|
@@ -8,6 +8,8 @@ declare const __propDef: {
|
|
|
8
8
|
[evt: string]: CustomEvent<any>;
|
|
9
9
|
};
|
|
10
10
|
slots: {};
|
|
11
|
+
exports?: {} | undefined;
|
|
12
|
+
bindings?: string | undefined;
|
|
11
13
|
};
|
|
12
14
|
export type SettingsBarProps = typeof __propDef.props;
|
|
13
15
|
export type SettingsBarEvents = typeof __propDef.events;
|
|
@@ -14,7 +14,7 @@ declare const __propDef: {
|
|
|
14
14
|
rounded?: CssClasses | undefined;
|
|
15
15
|
};
|
|
16
16
|
events: {
|
|
17
|
-
click:
|
|
17
|
+
click: PointerEvent;
|
|
18
18
|
keydown: KeyboardEvent;
|
|
19
19
|
keyup: KeyboardEvent;
|
|
20
20
|
keypress: KeyboardEvent;
|
|
@@ -22,6 +22,8 @@ declare const __propDef: {
|
|
|
22
22
|
[evt: string]: CustomEvent<any>;
|
|
23
23
|
};
|
|
24
24
|
slots: {};
|
|
25
|
+
exports?: undefined;
|
|
26
|
+
bindings?: undefined;
|
|
25
27
|
};
|
|
26
28
|
export type ToggleProps = typeof __propDef.props;
|
|
27
29
|
export type ToggleEvents = typeof __propDef.events;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
[data-theme='bexis2theme'] {
|
|
2
|
+
/* =~= Theme Properties =~= */
|
|
3
|
+
--base-font-family: system-ui;
|
|
4
|
+
--base-font-color: var(--color-surface-900);
|
|
5
|
+
--base-font-color-dark: 255 255 255;
|
|
6
|
+
/*--theme-rounded-base: 4px;
|
|
7
|
+
--theme-rounded-container: 4px;
|
|
8
|
+
--theme-border-base: 1px;*/
|
|
9
|
+
--radius-base: 4px;
|
|
10
|
+
--radius-container: 4px;
|
|
11
|
+
--default-border-width: 1px;
|
|
12
|
+
--default-divide-width: 1px;
|
|
13
|
+
--default-ring-width: 1px;
|
|
14
|
+
/* =~= Theme On-X Colors =~= */
|
|
15
|
+
--on-primary: 255 255 255;
|
|
16
|
+
--on-secondary: 255 255 255;
|
|
17
|
+
--on-tertiary: 0 0 0;
|
|
18
|
+
--on-success: 255 255 255;
|
|
19
|
+
--on-warning: 255 255 255;
|
|
20
|
+
--on-error: 255 255 255;
|
|
21
|
+
--on-surface: 0 0 0;
|
|
22
|
+
/* =~= Theme Colors =~= */
|
|
23
|
+
/* primary | #45b2a1 */
|
|
24
|
+
--color-primary-50: #e3f3f1;
|
|
25
|
+
--color-primary-100: #daf0ec;
|
|
26
|
+
--color-primary-200: #d1ece8;
|
|
27
|
+
--color-primary-300: #b5e0d9;
|
|
28
|
+
--color-primary-400: #7dc9bd;
|
|
29
|
+
--color-primary-500: #45b2a1;
|
|
30
|
+
--color-primary-600: #3ea091;
|
|
31
|
+
--color-primary-700: #348679;
|
|
32
|
+
--color-primary-800: #296b61;
|
|
33
|
+
--color-primary-900: #22574f;
|
|
34
|
+
/* secondary | #ff9700 */
|
|
35
|
+
--color-secondary-50: #ffefd9;
|
|
36
|
+
--color-secondary-100: #ffeacc;
|
|
37
|
+
--color-secondary-200: #ffe5bf;
|
|
38
|
+
--color-secondary-300: #ffd599;
|
|
39
|
+
--color-secondary-400: #ffb64d;
|
|
40
|
+
--color-secondary-500: #ff9700;
|
|
41
|
+
--color-secondary-600: #e68800;
|
|
42
|
+
--color-secondary-700: #bf7100;
|
|
43
|
+
--color-secondary-800: #995b00;
|
|
44
|
+
--color-secondary-900: #7d4a00;
|
|
45
|
+
/* tertiary | #bee1da */
|
|
46
|
+
--color-tertiary-50: #f5fbf9;
|
|
47
|
+
--color-tertiary-100: #f2f9f8;
|
|
48
|
+
--color-tertiary-200: #eff8f6;
|
|
49
|
+
--color-tertiary-300: #e5f3f0;
|
|
50
|
+
--color-tertiary-400: #d2eae5;
|
|
51
|
+
--color-tertiary-500: #bee1da;
|
|
52
|
+
--color-tertiary-600: #abcbc4;
|
|
53
|
+
--color-tertiary-700: #8fa9a4;
|
|
54
|
+
--color-tertiary-800: #728783;
|
|
55
|
+
--color-tertiary-900: #5d6e6b;
|
|
56
|
+
/* success | #4BB543 */
|
|
57
|
+
--color-success-50: #e4f4e3;
|
|
58
|
+
--color-success-100: #dbf0d9;
|
|
59
|
+
--color-success-200: #d2edd0;
|
|
60
|
+
--color-success-300: #b7e1b4;
|
|
61
|
+
--color-success-400: #81cb7b;
|
|
62
|
+
--color-success-500: #4bb543;
|
|
63
|
+
--color-success-600: #44a33c;
|
|
64
|
+
--color-success-700: #388832;
|
|
65
|
+
--color-success-800: #2d6d28;
|
|
66
|
+
--color-success-900: #255921;
|
|
67
|
+
/* warning | #EAB308 */
|
|
68
|
+
--color-warning-50: #fcf4da;
|
|
69
|
+
--color-warning-100: #fbf0ce;
|
|
70
|
+
--color-warning-200: #faecc1;
|
|
71
|
+
--color-warning-300: #f7e19c;
|
|
72
|
+
--color-warning-400: #f0ca52;
|
|
73
|
+
--color-warning-500: #eab308;
|
|
74
|
+
--color-warning-600: #d3a107;
|
|
75
|
+
--color-warning-700: #b08606;
|
|
76
|
+
--color-warning-800: #8c6b05;
|
|
77
|
+
--color-warning-900: #735804;
|
|
78
|
+
/* error | #FF0000 */
|
|
79
|
+
--color-error-50: #ffd9d9;
|
|
80
|
+
--color-error-100: #ffcccc;
|
|
81
|
+
--color-error-200: #ffbfbf;
|
|
82
|
+
--color-error-300: #ff9999;
|
|
83
|
+
--color-error-400: #ff4d4d;
|
|
84
|
+
--color-error-500: #ff0000;
|
|
85
|
+
--color-error-600: #e60000;
|
|
86
|
+
--color-error-700: #bf0000;
|
|
87
|
+
--color-error-800: #990000;
|
|
88
|
+
--color-error-900: #7d0000;
|
|
89
|
+
/* surface | #c7c7c7 */
|
|
90
|
+
--color-surface-50: #f7f7f7;
|
|
91
|
+
--color-surface-100: #f4f4f4;
|
|
92
|
+
--color-surface-200: #f1f1f1;
|
|
93
|
+
--color-surface-300: #e9e9e9;
|
|
94
|
+
--color-surface-400: #d8d8d8;
|
|
95
|
+
--color-surface-500: #c7c7c7;
|
|
96
|
+
--color-surface-600: #b3b3b3;
|
|
97
|
+
--color-surface-700: #959595;
|
|
98
|
+
--color-surface-800: #777777;
|
|
99
|
+
--color-surface-900: #626262;
|
|
100
|
+
}
|
package/dist/services/Api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const Api: {
|
|
2
|
-
get: (url: any, request?: string, headers?: {}, config?: {}) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
3
|
-
delete: (url: any, request: any, headers?: {}, config?: {}) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
4
|
-
post: (url: any, request: any, headers?: {}, config?: {}) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
5
|
-
put: (url: any, request: any, headers?: {}, config?: {}) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
6
|
-
patch: (url: any, request: any, headers?: {}, config?: {}) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
2
|
+
get: (url: any, request?: string, headers?: {}, config?: {}) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
3
|
+
delete: (url: any, request: any, headers?: {}, config?: {}) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
4
|
+
post: (url: any, request: any, headers?: {}, config?: {}) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
5
|
+
put: (url: any, request: any, headers?: {}, config?: {}) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
6
|
+
patch: (url: any, request: any, headers?: {}, config?: {}) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
7
7
|
};
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
export const bexis2theme = {
|
|
2
|
+
name: 'bexis2theme',
|
|
3
|
+
properties: {
|
|
4
|
+
// =~= Theme Properties =~=
|
|
5
|
+
'--theme-font-family-base': `system-ui`,
|
|
6
|
+
'--theme-font-family-heading': `system-ui`,
|
|
7
|
+
'--theme-font-color-base': 'var(--color-surface-900)',
|
|
8
|
+
'--theme-font-color-dark': '#ffffff',
|
|
9
|
+
'--theme-rounded-base': '4px',
|
|
10
|
+
'--theme-rounded-container': '4px',
|
|
11
|
+
'--theme-border-base': '1px',
|
|
12
|
+
// =~= Theme On-X Colors =~=
|
|
13
|
+
'--on-primary': '255 255 255',
|
|
14
|
+
'--on-secondary': '255 255 255',
|
|
15
|
+
'--on-tertiary': '0 0 0',
|
|
16
|
+
'--on-success': '255 255 255',
|
|
17
|
+
'--on-warning': '255 255 255',
|
|
18
|
+
'--on-error': '255 255 255',
|
|
19
|
+
'--on-surface': '255 255 255',
|
|
20
|
+
// =~= Theme Colors =~=
|
|
21
|
+
// primary | #45b2a1
|
|
22
|
+
'--color-primary-50': '#e3f3f1',
|
|
23
|
+
'--color-primary-100': '#daf0ec',
|
|
24
|
+
'--color-primary-200': '#d1ece8',
|
|
25
|
+
'--color-primary-300': '#b5e0d9',
|
|
26
|
+
'--color-primary-400': '#7dc9bd',
|
|
27
|
+
'--color-primary-500': '#45b2a1',
|
|
28
|
+
'--color-primary-600': '#3ea091',
|
|
29
|
+
'--color-primary-700': '#348679',
|
|
30
|
+
'--color-primary-800': '#296b61',
|
|
31
|
+
'--color-primary-900': '#22574f',
|
|
32
|
+
// secondary | #ff9700
|
|
33
|
+
'--color-secondary-50': '#ffefd9',
|
|
34
|
+
'--color-secondary-100': '#ffeacc',
|
|
35
|
+
'--color-secondary-200': '#ffe5bf',
|
|
36
|
+
'--color-secondary-300': '#ffd599',
|
|
37
|
+
'--color-secondary-400': '#ffb64d',
|
|
38
|
+
'--color-secondary-500': '#ff9700',
|
|
39
|
+
'--color-secondary-600': '#e68800',
|
|
40
|
+
'--color-secondary-700': '#bf7100',
|
|
41
|
+
'--color-secondary-800': '#995b00',
|
|
42
|
+
'--color-secondary-900': '#7d4a00',
|
|
43
|
+
// tertiary | #bee1da
|
|
44
|
+
'--color-tertiary-50': '#f5fbf9',
|
|
45
|
+
'--color-tertiary-100': '#f2f9f8',
|
|
46
|
+
'--color-tertiary-200': '#eff8f6',
|
|
47
|
+
'--color-tertiary-300': '#e5f3f0',
|
|
48
|
+
'--color-tertiary-400': '#d2eae5',
|
|
49
|
+
'--color-tertiary-500': '#bee1da',
|
|
50
|
+
'--color-tertiary-600': '#abcbc4',
|
|
51
|
+
'--color-tertiary-700': '#8fa9a4',
|
|
52
|
+
'--color-tertiary-800': '#728783',
|
|
53
|
+
'--color-tertiary-900': '#5d6e6b',
|
|
54
|
+
// success | #4BB543
|
|
55
|
+
'--color-success-50': '#e4f4e3',
|
|
56
|
+
'--color-success-100': '#dbf0d9',
|
|
57
|
+
'--color-success-200': '#d2edd0',
|
|
58
|
+
'--color-success-300': '#b7e1b4',
|
|
59
|
+
'--color-success-400': '#81cb7b',
|
|
60
|
+
'--color-success-500': '#4bb543',
|
|
61
|
+
'--color-success-600': '#44a33c',
|
|
62
|
+
'--color-success-700': '#388832',
|
|
63
|
+
'--color-success-800': '#2d6d28',
|
|
64
|
+
'--color-success-900': '#255921',
|
|
65
|
+
// warning | #EAB308
|
|
66
|
+
'--color-warning-50': '#fcf4da',
|
|
67
|
+
'--color-warning-100': '#fbf0ce',
|
|
68
|
+
'--color-warning-200': '#faecc1',
|
|
69
|
+
'--color-warning-300': '#f7e19c',
|
|
70
|
+
'--color-warning-400': '#f0ca52',
|
|
71
|
+
'--color-warning-500': '#eab308',
|
|
72
|
+
'--color-warning-600': '#d3a107',
|
|
73
|
+
'--color-warning-700': '#b08606',
|
|
74
|
+
'--color-warning-800': '#8c6b05',
|
|
75
|
+
'--color-warning-900': '#735804',
|
|
76
|
+
// error | #FF0000
|
|
77
|
+
'--color-error-50': '#ffd9d9',
|
|
78
|
+
'--color-error-100': '#ffcccc',
|
|
79
|
+
'--color-error-200': '#ffbfbf',
|
|
80
|
+
'--color-error-300': '#ff9999',
|
|
81
|
+
'--color-error-400': '#ff4d4d',
|
|
82
|
+
'--color-error-500': '#ff0000',
|
|
83
|
+
'--color-error-600': '#e60000',
|
|
84
|
+
'--color-error-700': '#bf0000',
|
|
85
|
+
'--color-error-800': '#990000',
|
|
86
|
+
'--color-error-900': '#7d0000',
|
|
87
|
+
// surface | #c7c7c7
|
|
88
|
+
'--color-surface-50': '#f7f7f7',
|
|
89
|
+
'--color-surface-100': '#f4f4f4',
|
|
90
|
+
'--color-surface-200': '#f1f1f1',
|
|
91
|
+
'--color-surface-300': '#e9e9e9',
|
|
92
|
+
'--color-surface-400': '#d8d8d8',
|
|
93
|
+
'--color-surface-500': '#c7c7c7',
|
|
94
|
+
'--color-surface-600': '#b3b3b3',
|
|
95
|
+
'--color-surface-700': '#959595',
|
|
96
|
+
'--color-surface-800': '#777777',
|
|
97
|
+
'--color-surface-900': '#626262'
|
|
98
|
+
},
|
|
99
|
+
properties_dark: {
|
|
100
|
+
// surface | #2e2e2e
|
|
101
|
+
'--color-surface-50': '#e0e0e0',
|
|
102
|
+
'--color-surface-100': '#d5d5d5',
|
|
103
|
+
'--color-surface-200': '#cbcbcb',
|
|
104
|
+
'--color-surface-300': '#ababab',
|
|
105
|
+
'--color-surface-400': '#6d6d6d',
|
|
106
|
+
'--color-surface-500': '#2e2e2e',
|
|
107
|
+
'--color-surface-600': '#292929',
|
|
108
|
+
'--color-surface-700': '#232323',
|
|
109
|
+
'--color-surface-800': '#1c1c1c',
|
|
110
|
+
'--color-surface-900': '#171717'
|
|
111
|
+
}
|
|
112
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bexis2/bexis2-core-ui",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.89",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte).",
|
|
6
6
|
"keywords": [
|
|
@@ -81,6 +81,7 @@
|
|
|
81
81
|
"svelte-fa": "^4.0.2",
|
|
82
82
|
"svelte-file-dropzone": "^2.0.7",
|
|
83
83
|
"svelte-headless-table": "^0.18.2",
|
|
84
|
+
"svelty-picker": "^5.2.12",
|
|
84
85
|
"svelte-select": "5.8.3",
|
|
85
86
|
"vest": "^5.4.0"
|
|
86
87
|
},
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import InputContainer from './InputContainer.svelte';
|
|
3
|
+
import SveltyPicker from 'svelty-picker';
|
|
4
|
+
|
|
5
|
+
export let id: string = '';
|
|
6
|
+
export let label: string = '';
|
|
7
|
+
export let value: string = '';
|
|
8
|
+
export let valid: boolean = false;
|
|
9
|
+
export let invalid: boolean = false;
|
|
10
|
+
export let required: boolean = false;
|
|
11
|
+
export let feedback: string[] = [''];
|
|
12
|
+
export let placeholder: string = '';
|
|
13
|
+
export let help: boolean = false;
|
|
14
|
+
export let disabled: boolean = false;
|
|
15
|
+
export let description: string = '';
|
|
16
|
+
export let showDescription: boolean = false;
|
|
17
|
+
export let mode: 'date' | 'time' | 'datetime' = 'date';
|
|
18
|
+
export let initialDate: string = '';
|
|
19
|
+
export let format: string = 'yyyy-mm-dd';
|
|
20
|
+
export let displayFormat: string = 'yyyy-mm-dd';
|
|
21
|
+
export let onChangeHandler: (event: CustomEvent) => void = () => {};
|
|
22
|
+
|
|
23
|
+
let width = 'w-32';
|
|
24
|
+
|
|
25
|
+
if (mode !== 'date' && mode !== 'time' && mode !== 'datetime') {
|
|
26
|
+
throw new Error(`Invalid mode: ${mode}. Valid modes are 'date', 'time', and 'datetime'.`);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
if (mode === 'datetime' && (format === 'yyyy-mm-dd' || displayFormat === 'yyyy-mm-dd')) {
|
|
30
|
+
throw new Error(
|
|
31
|
+
`Invalid format for datetime mode. Please use a format that includes both date and time.`
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
if (mode === 'datetime') {
|
|
36
|
+
width = 'w-64';
|
|
37
|
+
}
|
|
38
|
+
</script>
|
|
39
|
+
|
|
40
|
+
<InputContainer {id} {label} {feedback} {required} {help} {description} {showDescription}>
|
|
41
|
+
<SveltyPicker
|
|
42
|
+
{mode}
|
|
43
|
+
name={label}
|
|
44
|
+
{format}
|
|
45
|
+
{displayFormat}
|
|
46
|
+
{initialDate}
|
|
47
|
+
bind:value
|
|
48
|
+
inputClasses="input variant-form-material dark:bg-zinc-700 bg-zinc-50 placeholder:text-gray-400 {width}"
|
|
49
|
+
on:change={onChangeHandler}
|
|
50
|
+
{disabled}
|
|
51
|
+
{placeholder}
|
|
52
|
+
/>
|
|
53
|
+
</InputContainer>
|
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
const storedFontSize = localStorage.getItem('fontSize');
|
|
21
21
|
if (storedFontSize) {
|
|
22
22
|
document.documentElement.style.fontSize = storedFontSize;
|
|
23
|
+
// set CSS variable --font-size to the new font size
|
|
24
|
+
document.documentElement.style.setProperty('--font-size', storedFontSize);
|
|
23
25
|
}
|
|
24
26
|
});
|
|
25
27
|
|
|
@@ -30,12 +32,16 @@
|
|
|
30
32
|
function increaseFontSize() {
|
|
31
33
|
const currentFontSize = parseFloat(getComputedStyle(document.documentElement).fontSize);
|
|
32
34
|
document.documentElement.style.fontSize = currentFontSize + 1 + 'px';
|
|
35
|
+
// set CSS variable --font-size to the new font size
|
|
36
|
+
document.documentElement.style.setProperty('--font-size', document.documentElement.style.fontSize);
|
|
33
37
|
localStorage.setItem('fontSize', document.documentElement.style.fontSize);
|
|
34
38
|
}
|
|
35
39
|
// function to decrease the current font size by 1 step
|
|
36
40
|
function decreaseFontSize() {
|
|
37
41
|
const currentFontSize = parseFloat(getComputedStyle(document.documentElement).fontSize);
|
|
38
42
|
document.documentElement.style.fontSize = currentFontSize - 1 + 'px';
|
|
43
|
+
// set CSS variable --font-size to the new font size
|
|
44
|
+
document.documentElement.style.setProperty('--font-size', document.documentElement.style.fontSize);
|
|
39
45
|
localStorage.setItem('fontSize', document.documentElement.style.fontSize);
|
|
40
46
|
}
|
|
41
47
|
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
[data-theme='bexis2theme'] {
|
|
2
|
+
/* =~= Theme Properties =~= */
|
|
3
|
+
--base-font-family: system-ui;
|
|
4
|
+
--base-font-color: var(--color-surface-900);
|
|
5
|
+
--base-font-color-dark: 255 255 255;
|
|
6
|
+
/*--theme-rounded-base: 4px;
|
|
7
|
+
--theme-rounded-container: 4px;
|
|
8
|
+
--theme-border-base: 1px;*/
|
|
9
|
+
--radius-base: 4px;
|
|
10
|
+
--radius-container: 4px;
|
|
11
|
+
--default-border-width: 1px;
|
|
12
|
+
--default-divide-width: 1px;
|
|
13
|
+
--default-ring-width: 1px;
|
|
14
|
+
/* =~= Theme On-X Colors =~= */
|
|
15
|
+
--on-primary: 255 255 255;
|
|
16
|
+
--on-secondary: 255 255 255;
|
|
17
|
+
--on-tertiary: 0 0 0;
|
|
18
|
+
--on-success: 255 255 255;
|
|
19
|
+
--on-warning: 255 255 255;
|
|
20
|
+
--on-error: 255 255 255;
|
|
21
|
+
--on-surface: 0 0 0;
|
|
22
|
+
/* =~= Theme Colors =~= */
|
|
23
|
+
/* primary | #45b2a1 */
|
|
24
|
+
--color-primary-50: #e3f3f1;
|
|
25
|
+
--color-primary-100: #daf0ec;
|
|
26
|
+
--color-primary-200: #d1ece8;
|
|
27
|
+
--color-primary-300: #b5e0d9;
|
|
28
|
+
--color-primary-400: #7dc9bd;
|
|
29
|
+
--color-primary-500: #45b2a1;
|
|
30
|
+
--color-primary-600: #3ea091;
|
|
31
|
+
--color-primary-700: #348679;
|
|
32
|
+
--color-primary-800: #296b61;
|
|
33
|
+
--color-primary-900: #22574f;
|
|
34
|
+
/* secondary | #ff9700 */
|
|
35
|
+
--color-secondary-50: #ffefd9;
|
|
36
|
+
--color-secondary-100: #ffeacc;
|
|
37
|
+
--color-secondary-200: #ffe5bf;
|
|
38
|
+
--color-secondary-300: #ffd599;
|
|
39
|
+
--color-secondary-400: #ffb64d;
|
|
40
|
+
--color-secondary-500: #ff9700;
|
|
41
|
+
--color-secondary-600: #e68800;
|
|
42
|
+
--color-secondary-700: #bf7100;
|
|
43
|
+
--color-secondary-800: #995b00;
|
|
44
|
+
--color-secondary-900: #7d4a00;
|
|
45
|
+
/* tertiary | #bee1da */
|
|
46
|
+
--color-tertiary-50: #f5fbf9;
|
|
47
|
+
--color-tertiary-100: #f2f9f8;
|
|
48
|
+
--color-tertiary-200: #eff8f6;
|
|
49
|
+
--color-tertiary-300: #e5f3f0;
|
|
50
|
+
--color-tertiary-400: #d2eae5;
|
|
51
|
+
--color-tertiary-500: #bee1da;
|
|
52
|
+
--color-tertiary-600: #abcbc4;
|
|
53
|
+
--color-tertiary-700: #8fa9a4;
|
|
54
|
+
--color-tertiary-800: #728783;
|
|
55
|
+
--color-tertiary-900: #5d6e6b;
|
|
56
|
+
/* success | #4BB543 */
|
|
57
|
+
--color-success-50: #e4f4e3;
|
|
58
|
+
--color-success-100: #dbf0d9;
|
|
59
|
+
--color-success-200: #d2edd0;
|
|
60
|
+
--color-success-300: #b7e1b4;
|
|
61
|
+
--color-success-400: #81cb7b;
|
|
62
|
+
--color-success-500: #4bb543;
|
|
63
|
+
--color-success-600: #44a33c;
|
|
64
|
+
--color-success-700: #388832;
|
|
65
|
+
--color-success-800: #2d6d28;
|
|
66
|
+
--color-success-900: #255921;
|
|
67
|
+
/* warning | #EAB308 */
|
|
68
|
+
--color-warning-50: #fcf4da;
|
|
69
|
+
--color-warning-100: #fbf0ce;
|
|
70
|
+
--color-warning-200: #faecc1;
|
|
71
|
+
--color-warning-300: #f7e19c;
|
|
72
|
+
--color-warning-400: #f0ca52;
|
|
73
|
+
--color-warning-500: #eab308;
|
|
74
|
+
--color-warning-600: #d3a107;
|
|
75
|
+
--color-warning-700: #b08606;
|
|
76
|
+
--color-warning-800: #8c6b05;
|
|
77
|
+
--color-warning-900: #735804;
|
|
78
|
+
/* error | #FF0000 */
|
|
79
|
+
--color-error-50: #ffd9d9;
|
|
80
|
+
--color-error-100: #ffcccc;
|
|
81
|
+
--color-error-200: #ffbfbf;
|
|
82
|
+
--color-error-300: #ff9999;
|
|
83
|
+
--color-error-400: #ff4d4d;
|
|
84
|
+
--color-error-500: #ff0000;
|
|
85
|
+
--color-error-600: #e60000;
|
|
86
|
+
--color-error-700: #bf0000;
|
|
87
|
+
--color-error-800: #990000;
|
|
88
|
+
--color-error-900: #7d0000;
|
|
89
|
+
/* surface | #c7c7c7 */
|
|
90
|
+
--color-surface-50: #f7f7f7;
|
|
91
|
+
--color-surface-100: #f4f4f4;
|
|
92
|
+
--color-surface-200: #f1f1f1;
|
|
93
|
+
--color-surface-300: #e9e9e9;
|
|
94
|
+
--color-surface-400: #d8d8d8;
|
|
95
|
+
--color-surface-500: #c7c7c7;
|
|
96
|
+
--color-surface-600: #b3b3b3;
|
|
97
|
+
--color-surface-700: #959595;
|
|
98
|
+
--color-surface-800: #777777;
|
|
99
|
+
--color-surface-900: #626262;
|
|
100
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import type { CustomThemeConfig } from '@skeletonlabs/tw-plugin';
|
|
2
|
+
|
|
3
|
+
export const bexis2theme: CustomThemeConfig = {
|
|
4
|
+
name: 'bexis2theme',
|
|
5
|
+
properties: {
|
|
6
|
+
// =~= Theme Properties =~=
|
|
7
|
+
'--theme-font-family-base': `system-ui`,
|
|
8
|
+
'--theme-font-family-heading': `system-ui`,
|
|
9
|
+
'--theme-font-color-base': 'var(--color-surface-900)',
|
|
10
|
+
'--theme-font-color-dark': '#ffffff',
|
|
11
|
+
'--theme-rounded-base': '4px',
|
|
12
|
+
'--theme-rounded-container': '4px',
|
|
13
|
+
'--theme-border-base': '1px',
|
|
14
|
+
// =~= Theme On-X Colors =~=
|
|
15
|
+
'--on-primary': '255 255 255',
|
|
16
|
+
'--on-secondary': '255 255 255',
|
|
17
|
+
'--on-tertiary': '0 0 0',
|
|
18
|
+
'--on-success': '255 255 255',
|
|
19
|
+
'--on-warning': '255 255 255',
|
|
20
|
+
'--on-error': '255 255 255',
|
|
21
|
+
'--on-surface': '255 255 255',
|
|
22
|
+
// =~= Theme Colors =~=
|
|
23
|
+
// primary | #45b2a1
|
|
24
|
+
'--color-primary-50': '#e3f3f1',
|
|
25
|
+
'--color-primary-100': '#daf0ec',
|
|
26
|
+
'--color-primary-200': '#d1ece8',
|
|
27
|
+
'--color-primary-300': '#b5e0d9',
|
|
28
|
+
'--color-primary-400': '#7dc9bd',
|
|
29
|
+
'--color-primary-500': '#45b2a1',
|
|
30
|
+
'--color-primary-600': '#3ea091',
|
|
31
|
+
'--color-primary-700': '#348679',
|
|
32
|
+
'--color-primary-800': '#296b61',
|
|
33
|
+
'--color-primary-900': '#22574f',
|
|
34
|
+
// secondary | #ff9700
|
|
35
|
+
'--color-secondary-50': '#ffefd9',
|
|
36
|
+
'--color-secondary-100': '#ffeacc',
|
|
37
|
+
'--color-secondary-200': '#ffe5bf',
|
|
38
|
+
'--color-secondary-300': '#ffd599',
|
|
39
|
+
'--color-secondary-400': '#ffb64d',
|
|
40
|
+
'--color-secondary-500': '#ff9700',
|
|
41
|
+
'--color-secondary-600': '#e68800',
|
|
42
|
+
'--color-secondary-700': '#bf7100',
|
|
43
|
+
'--color-secondary-800': '#995b00',
|
|
44
|
+
'--color-secondary-900': '#7d4a00',
|
|
45
|
+
// tertiary | #bee1da
|
|
46
|
+
'--color-tertiary-50': '#f5fbf9',
|
|
47
|
+
'--color-tertiary-100': '#f2f9f8',
|
|
48
|
+
'--color-tertiary-200': '#eff8f6',
|
|
49
|
+
'--color-tertiary-300': '#e5f3f0',
|
|
50
|
+
'--color-tertiary-400': '#d2eae5',
|
|
51
|
+
'--color-tertiary-500': '#bee1da',
|
|
52
|
+
'--color-tertiary-600': '#abcbc4',
|
|
53
|
+
'--color-tertiary-700': '#8fa9a4',
|
|
54
|
+
'--color-tertiary-800': '#728783',
|
|
55
|
+
'--color-tertiary-900': '#5d6e6b',
|
|
56
|
+
// success | #4BB543
|
|
57
|
+
'--color-success-50': '#e4f4e3',
|
|
58
|
+
'--color-success-100': '#dbf0d9',
|
|
59
|
+
'--color-success-200': '#d2edd0',
|
|
60
|
+
'--color-success-300': '#b7e1b4',
|
|
61
|
+
'--color-success-400': '#81cb7b',
|
|
62
|
+
'--color-success-500': '#4bb543',
|
|
63
|
+
'--color-success-600': '#44a33c',
|
|
64
|
+
'--color-success-700': '#388832',
|
|
65
|
+
'--color-success-800': '#2d6d28',
|
|
66
|
+
'--color-success-900': '#255921',
|
|
67
|
+
// warning | #EAB308
|
|
68
|
+
'--color-warning-50': '#fcf4da',
|
|
69
|
+
'--color-warning-100': '#fbf0ce',
|
|
70
|
+
'--color-warning-200': '#faecc1',
|
|
71
|
+
'--color-warning-300': '#f7e19c',
|
|
72
|
+
'--color-warning-400': '#f0ca52',
|
|
73
|
+
'--color-warning-500': '#eab308',
|
|
74
|
+
'--color-warning-600': '#d3a107',
|
|
75
|
+
'--color-warning-700': '#b08606',
|
|
76
|
+
'--color-warning-800': '#8c6b05',
|
|
77
|
+
'--color-warning-900': '#735804',
|
|
78
|
+
// error | #FF0000
|
|
79
|
+
'--color-error-50': '#ffd9d9',
|
|
80
|
+
'--color-error-100': '#ffcccc',
|
|
81
|
+
'--color-error-200': '#ffbfbf',
|
|
82
|
+
'--color-error-300': '#ff9999',
|
|
83
|
+
'--color-error-400': '#ff4d4d',
|
|
84
|
+
'--color-error-500': '#ff0000',
|
|
85
|
+
'--color-error-600': '#e60000',
|
|
86
|
+
'--color-error-700': '#bf0000',
|
|
87
|
+
'--color-error-800': '#990000',
|
|
88
|
+
'--color-error-900': '#7d0000',
|
|
89
|
+
// surface | #c7c7c7
|
|
90
|
+
'--color-surface-50': '#f7f7f7',
|
|
91
|
+
'--color-surface-100': '#f4f4f4',
|
|
92
|
+
'--color-surface-200': '#f1f1f1',
|
|
93
|
+
'--color-surface-300': '#e9e9e9',
|
|
94
|
+
'--color-surface-400': '#d8d8d8',
|
|
95
|
+
'--color-surface-500': '#c7c7c7',
|
|
96
|
+
'--color-surface-600': '#b3b3b3',
|
|
97
|
+
'--color-surface-700': '#959595',
|
|
98
|
+
'--color-surface-800': '#777777',
|
|
99
|
+
'--color-surface-900': '#626262'
|
|
100
|
+
},
|
|
101
|
+
properties_dark: {
|
|
102
|
+
// surface | #2e2e2e
|
|
103
|
+
'--color-surface-50': '#e0e0e0',
|
|
104
|
+
'--color-surface-100': '#d5d5d5',
|
|
105
|
+
'--color-surface-200': '#cbcbcb',
|
|
106
|
+
'--color-surface-300': '#ababab',
|
|
107
|
+
'--color-surface-400': '#6d6d6d',
|
|
108
|
+
'--color-surface-500': '#2e2e2e',
|
|
109
|
+
'--color-surface-600': '#292929',
|
|
110
|
+
'--color-surface-700': '#232323',
|
|
111
|
+
'--color-surface-800': '#1c1c1c',
|
|
112
|
+
'--color-surface-900': '#171717'
|
|
113
|
+
}
|
|
114
|
+
};
|