@bexis2/bexis2-core-ui 0.4.83 → 0.4.85

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.
Files changed (62) hide show
  1. package/README.md +13 -0
  2. package/dist/TableView.svelte.d.ts +2 -0
  3. package/dist/components/CodeEditor/CodeEditor.svelte.d.ts +4 -1
  4. package/dist/components/Facets/Facets.svelte.d.ts +2 -0
  5. package/dist/components/Facets/ShowMore.svelte.d.ts +2 -0
  6. package/dist/components/File/FileIcon.svelte.d.ts +2 -0
  7. package/dist/components/File/FileInfo.svelte.d.ts +2 -0
  8. package/dist/components/File/FileUploader.svelte.d.ts +2 -0
  9. package/dist/components/ListView.svelte.d.ts +2 -0
  10. package/dist/components/Table/ColumnsMenu.svelte.d.ts +2 -0
  11. package/dist/components/Table/Table.svelte.d.ts +2 -0
  12. package/dist/components/Table/TableContent.svelte.d.ts +2 -0
  13. package/dist/components/Table/TableFilter.svelte.d.ts +2 -0
  14. package/dist/components/Table/TableFilterServer.svelte.d.ts +2 -0
  15. package/dist/components/Table/TablePagination.svelte.d.ts +2 -0
  16. package/dist/components/Table/TablePaginationServer.svelte.d.ts +2 -0
  17. package/dist/components/form/Checkbox.svelte.d.ts +2 -0
  18. package/dist/components/form/CheckboxKvPList.svelte.d.ts +2 -0
  19. package/dist/components/form/CheckboxList.svelte.d.ts +2 -0
  20. package/dist/components/form/DateInput.svelte.d.ts +2 -0
  21. package/dist/components/form/Dropdown.svelte.d.ts +2 -0
  22. package/dist/components/form/DropdownKvP.svelte.d.ts +2 -0
  23. package/dist/components/form/InputContainer.svelte +1 -1
  24. package/dist/components/form/InputContainer.svelte.d.ts +2 -0
  25. package/dist/components/form/MultiSelect.svelte.d.ts +2 -0
  26. package/dist/components/form/NumberInput.svelte.d.ts +2 -0
  27. package/dist/components/form/TextArea.svelte.d.ts +2 -0
  28. package/dist/components/form/TextInput.svelte.d.ts +2 -0
  29. package/dist/components/page/Alert.svelte.d.ts +2 -0
  30. package/dist/components/page/BackToTop.svelte.d.ts +2 -0
  31. package/dist/components/page/Docs.svelte.d.ts +2 -0
  32. package/dist/components/page/ErrorMessage.svelte.d.ts +2 -0
  33. package/dist/components/page/Footer.svelte.d.ts +2 -0
  34. package/dist/components/page/GoToTop.svelte.d.ts +2 -0
  35. package/dist/components/page/Header.svelte.d.ts +2 -0
  36. package/dist/components/page/HelpPopUp.svelte.d.ts +2 -0
  37. package/dist/components/page/Notification.svelte.d.ts +2 -0
  38. package/dist/components/page/Page.svelte.d.ts +2 -0
  39. package/dist/components/page/Spinner.svelte.d.ts +2 -0
  40. package/dist/components/page/TablePlaceholder.svelte.d.ts +2 -0
  41. package/dist/components/page/breadcrumb/Breadcrumb.svelte.d.ts +2 -0
  42. package/dist/components/page/menu/Menu.svelte +92 -3
  43. package/dist/components/page/menu/Menu.svelte.d.ts +2 -0
  44. package/dist/components/page/menu/MenuAccountBar.svelte.d.ts +2 -0
  45. package/dist/components/page/menu/MenuBar.svelte.d.ts +2 -0
  46. package/dist/components/page/menu/MenuItem.svelte.d.ts +2 -0
  47. package/dist/components/page/menu/MenuSublist.svelte +1 -1
  48. package/dist/components/page/menu/MenuSublist.svelte.d.ts +2 -0
  49. package/dist/components/page/menu/SettingsBar.svelte.d.ts +2 -0
  50. package/dist/components/toggle/Toggle.svelte.d.ts +3 -1
  51. package/dist/css/core.ui.postcss +23 -5
  52. package/dist/css/themes/theme-bexis2.css_old +100 -0
  53. package/dist/services/Api.d.ts +5 -5
  54. package/dist/themes/theme-bexis2 copy.d.ts +2 -0
  55. package/dist/themes/theme-bexis2 copy.js +112 -0
  56. package/package.json +1 -1
  57. package/src/lib/components/form/InputContainer.svelte +1 -1
  58. package/src/lib/components/page/menu/Menu.svelte +101 -6
  59. package/src/lib/components/page/menu/MenuSublist.svelte +1 -1
  60. package/src/lib/css/core.ui.postcss +23 -5
  61. package/src/lib/css/themes/theme-bexis2.css_old +100 -0
  62. package/src/lib/themes/theme-bexis2 copy.ts +114 -0
@@ -1,7 +1,16 @@
1
+ @tailwind base;
2
+ @tailwind components;
3
+ @tailwind utilities;
4
+ @tailwind variants;
5
+
1
6
  /*place global styles here */
2
7
  html,
3
8
  body {
4
- @apply h-full;
9
+ @apply h-full bg-white text-sm leading-tight;
10
+ }
11
+
12
+ [type='text']:focus {
13
+ --tw-ring-color: #00000;
5
14
  }
6
15
 
7
16
  h1 {
@@ -12,11 +21,20 @@ h2 {
12
21
  @apply text-primary-500;
13
22
  }
14
23
 
24
+ input {
25
+ @apply pb-1 pt-1
26
+ }
15
27
 
16
- :root {
17
- --background: rgb(var(--color-surface-200));
28
+ .svelte-select,
29
+ .svelte-select-list {
30
+ @apply dark:!bg-zinc-700 border dark:!border-zinc-500;
18
31
  }
19
32
 
20
- [type='text']:focus {
21
- --tw-ring-color: #00000;
33
+ .multi-item {
34
+ @apply dark:!bg-zinc-500 dark:!outline-zinc-400;
22
35
  }
36
+
37
+ .list-item .item.hover:not(.active):not(.list-group-title) {
38
+ @apply dark:!text-black;
39
+ }
40
+
@@ -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
+ }
@@ -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,2 @@
1
+ import type { CustomThemeConfig } from '@skeletonlabs/tw-plugin';
2
+ export declare const bexis2theme: CustomThemeConfig;
@@ -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.83",
3
+ "version": "0.4.85",
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": [
@@ -44,7 +44,7 @@ let showDescription: boolean = false;
44
44
  <div class="card text-sm text-gray-500 p-2 mb-2">{@html description}</div>
45
45
  {/if}
46
46
  <slot />
47
- <div class="">
47
+ <div class="min-h-5">
48
48
  <span class="text-xs text-error-600 ">
49
49
  {#if feedback}
50
50
  <ul>
@@ -1,24 +1,53 @@
1
1
  <script lang="ts">
2
2
  import { onMount } from 'svelte';
3
+ import { writable } from 'svelte/store';
3
4
  import { getMenuItems } from './MenuDataCaller';
4
- import { menuStore } from "../../../stores/pageStores";
5
+ import { menuStore } from '../../../stores/pageStores';
5
6
 
6
7
  import MenuBar from './MenuBar.svelte';
7
8
  import MenuAccountBar from './MenuAccountBar.svelte';
8
9
  import SettingsBar from './SettingsBar.svelte';
9
10
  import Fa from 'svelte-fa';
10
- import { faBars } from '@fortawesome/free-solid-svg-icons';
11
+ import { faBars, faPlus, faMinus } from '@fortawesome/free-solid-svg-icons';
11
12
  import { Accordion } from '@skeletonlabs/skeleton';
12
13
 
13
14
  onMount(async () => {
14
15
  let m = await getMenuItems();
15
16
  menuStore.set(m);
16
17
 
17
- console.log("🚀 ~ onMount ~ menuStore:", $menuStore);
18
-
18
+ console.log('🚀 ~ onMount ~ menuStore:', $menuStore);
19
19
  });
20
20
 
21
21
  let hamburger = true;
22
+ const theme = writable('light');
23
+
24
+ // function to increase the current font size by 1 step
25
+ function increaseFontSize() {
26
+ const currentFontSize = parseFloat(getComputedStyle(document.documentElement).fontSize);
27
+ document.documentElement.style.fontSize = currentFontSize + 1 + 'px';
28
+ }
29
+ // function to decrease the current font size by 1 step
30
+ function decreaseFontSize() {
31
+ const currentFontSize = parseFloat(getComputedStyle(document.documentElement).fontSize);
32
+ document.documentElement.style.fontSize = currentFontSize - 1 + 'px';
33
+ }
34
+
35
+ // function to toggle dark mode
36
+ function toggleDarkMode() {
37
+ if ($theme === 'dark') {
38
+ theme.set('light');
39
+ document.documentElement.classList.remove('dark');
40
+ } else {
41
+ theme.set('dark');
42
+ document.documentElement.classList.add('dark');
43
+ }
44
+ }
45
+
46
+ let showMode = false; // set to false to hide the dark mode toggle button
47
+ // only show dark mode button in dev mode
48
+ if (import.meta.env.DEV) {
49
+ showMode = true;
50
+ }
22
51
  </script>
23
52
 
24
53
  {#if $menuStore !== undefined}
@@ -55,8 +84,74 @@
55
84
  <div class="grid w-full sm:flex gap-2 justify-auto sm:justify-end">
56
85
  <MenuAccountBar menuBar={$menuStore.AccountBar} />
57
86
  <MenuBar menuBar={$menuStore.LaunchBar} />
58
- <SettingsBar menuBar={$menuStore.Settings} />
59
- <!-- </div> -->
87
+ <!-- Add change font size buttons -->
88
+ <button
89
+ class="btn btn-ghost pl-1 pr-1"
90
+ on:click={decreaseFontSize}
91
+ title="Decrease font size"
92
+ >
93
+ <span class="capitalize text-lg whitespace-nowrap hover:text-secondary-500">A-</span>
94
+ </button>
95
+ <button
96
+ class="btn btn-ghost pl-1 pr-1"
97
+ on:click={increaseFontSize}
98
+ title="Increase font size"
99
+ >
100
+ <span class="capitalize text-lg whitespace-nowrap hover:text-secondary-500">A+</span>
101
+ </button>
102
+
103
+ <button
104
+ class="btn btn-ghost pl-1 pr-1"
105
+ on:click={toggleDarkMode}
106
+ title="Toggle dark mode"
107
+ >
108
+ {#if showMode}
109
+ {#if $theme === 'dark'}
110
+ <!-- sun icon (white via currentColor) -->
111
+ <svg
112
+ xmlns="http://www.w3.org/2000/svg"
113
+ width="18"
114
+ height="18"
115
+ viewBox="0 0 24 24"
116
+ fill="none"
117
+ aria-hidden="true"
118
+ focusable="false"
119
+ class="inline-block"
120
+ >
121
+ <g
122
+ stroke="currentColor"
123
+ stroke-width="1.6"
124
+ stroke-linecap="round"
125
+ stroke-linejoin="round"
126
+ fill="none"
127
+ >
128
+ <circle cx="12" cy="12" r="4" stroke="currentColor" fill="currentColor" />
129
+ <path
130
+ d="M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.41-1.41M17.66 6.34l1.41-1.41"
131
+ stroke="currentColor"
132
+ />
133
+ </g>
134
+ </svg>
135
+ {:else}
136
+ <!-- moon icon (white via currentColor) -->
137
+ <svg
138
+ xmlns="http://www.w3.org/2000/svg"
139
+ width="18"
140
+ height="18"
141
+ viewBox="0 0 24 24"
142
+ fill="currentColor"
143
+ aria-hidden="true"
144
+ focusable="false"
145
+ class="inline-block"
146
+ >
147
+ <path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z" fill="currentColor" />
148
+ </svg>
149
+ {/if}
150
+ {/if}
151
+ </button>
152
+ <SettingsBar menuBar={$menuStore.Settings} />
153
+ <!-- </div> -->
154
+
60
155
  </div>
61
156
  </div>
62
157
  </Accordion>
@@ -79,7 +79,7 @@
79
79
  value={item.Title}
80
80
 
81
81
  >
82
- <a id={"menu-"+item.Title.replaceAll(' ', '-')} href={item.Url} target="{item.Target}" on:click|preventDefault={()=>clickFn(item)}>{item.Title}</a>
82
+ <a id={"menu-"+item.Title.replaceAll(' ', '-')} href={item.Url} target="{item.Target}" class="w-full block" on:click|preventDefault={()=>clickFn(item)}>{item.Title}</a>
83
83
 
84
84
  </ListBoxItem>
85
85
 
@@ -1,7 +1,16 @@
1
+ @tailwind base;
2
+ @tailwind components;
3
+ @tailwind utilities;
4
+ @tailwind variants;
5
+
1
6
  /*place global styles here */
2
7
  html,
3
8
  body {
4
- @apply h-full;
9
+ @apply h-full bg-white text-sm leading-tight;
10
+ }
11
+
12
+ [type='text']:focus {
13
+ --tw-ring-color: #00000;
5
14
  }
6
15
 
7
16
  h1 {
@@ -12,11 +21,20 @@ h2 {
12
21
  @apply text-primary-500;
13
22
  }
14
23
 
24
+ input {
25
+ @apply pb-1 pt-1
26
+ }
15
27
 
16
- :root {
17
- --background: rgb(var(--color-surface-200));
28
+ .svelte-select,
29
+ .svelte-select-list {
30
+ @apply dark:!bg-zinc-700 border dark:!border-zinc-500;
18
31
  }
19
32
 
20
- [type='text']:focus {
21
- --tw-ring-color: #00000;
33
+ .multi-item {
34
+ @apply dark:!bg-zinc-500 dark:!outline-zinc-400;
22
35
  }
36
+
37
+ .list-item .item.hover:not(.active):not(.list-group-title) {
38
+ @apply dark:!text-black;
39
+ }
40
+
@@ -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
+ }