siam-ui-utils 2.0.25 → 2.0.27

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/src/index.css ADDED
@@ -0,0 +1,74 @@
1
+ :root {
2
+ font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
3
+ line-height: 0.2;
4
+ font-weight: 400;
5
+
6
+ color-scheme: inherit;
7
+ color: rgba(255, 255, 255, 0.87);
8
+ background-color: #242424;
9
+
10
+ font-synthesis: none;
11
+ text-rendering: optimizeLegibility;
12
+ -webkit-font-smoothing: antialiased;
13
+ -moz-osx-font-smoothing: grayscale;
14
+ }
15
+
16
+ a {
17
+ font-weight: 500;
18
+ color: #646cff;
19
+ text-decoration: inherit;
20
+ }
21
+ a:hover {
22
+ color: #535bf2;
23
+ }
24
+
25
+ body {
26
+ margin: 0;
27
+ display: flex;
28
+ place-items: center;
29
+ min-width: 320px;
30
+ min-height: 100vh;
31
+ }
32
+
33
+ h1 {
34
+ font-size: 1.2em;
35
+ line-height: 1.1;
36
+ }
37
+
38
+ h2 {
39
+ font-size: 1.2em;
40
+ line-height: 1.1;
41
+ }
42
+
43
+
44
+ button {
45
+ border-radius: 8px;
46
+ border: 1px solid transparent;
47
+ padding: 0.6em 1.2em;
48
+ font-size: 1em;
49
+ font-weight: 500;
50
+ font-family: inherit;
51
+ background-color: grey;
52
+ cursor: pointer;
53
+ transition: border-color 0.25s;
54
+ }
55
+ button:hover {
56
+ border-color: #646cff;
57
+ }
58
+ button:focus,
59
+ button:focus-visible {
60
+ outline: 4px auto -webkit-focus-ring-color;
61
+ }
62
+
63
+ @media (prefers-color-scheme: light) {
64
+ :root {
65
+ color: #213547;
66
+ background-color: #ffffff;
67
+ }
68
+ a:hover {
69
+ color: #747bff;
70
+ }
71
+ button {
72
+ background-color: #f9f9f9;
73
+ }
74
+ }
package/src/main.jsx CHANGED
@@ -1,7 +1,7 @@
1
1
  import { createRoot } from 'react-dom/client';
2
2
  import './assets/css/vendor/bootstrap.min.css';
3
3
  import './assets/css/vendor/bootstrap.rtl.only.min.css';
4
-
4
+ import './assets/css/sass/themes/gogo.light.redruby.scss';
5
5
  import App from './App';
6
6
 
7
7
  createRoot(document.getElementById('root')).render(<App />);
package/vite.config.ts CHANGED
@@ -1,11 +1,19 @@
1
1
  import react from "@vitejs/plugin-react";
2
2
  import { defineConfig } from "vitest/config";
3
- import eslint from 'vite-plugin-eslint';
4
3
  import commonjs from 'vite-plugin-commonjs'
5
4
 
6
5
  export default defineConfig({
7
- plugins: [react(), eslint(), commonjs()],
8
- test: {
9
- globals: true,
6
+ plugins: [react(), commonjs()],
7
+ server: {
8
+ port: 5173,
9
+ open: true,
10
+ hmr: true
11
+ },
12
+ css: {
13
+ preprocessorOptions: {
14
+ scss: {
15
+ silenceDeprecations: ['legacy-js-api'],
16
+ },
17
+ },
10
18
  },
11
19
  });
package/.eslintrc.json DELETED
@@ -1,25 +0,0 @@
1
- {
2
- "extends": [
3
- "eslint:recommended",
4
- "plugin:react/recommended",
5
- "plugin:react-hooks/recommended"
6
- ],
7
- "plugins": [
8
- "react",
9
- "react-hooks"
10
- ],
11
- "parserOptions": {
12
- "ecmaVersion": 2020,
13
- "sourceType": "module",
14
- "ecmaFeatures": {
15
- "jsx": true
16
- }
17
- },
18
- "env": {
19
- "browser": true,
20
- "es2020": true
21
- },
22
- "rules": {
23
- "react/react-in-jsx-scope": "off"
24
- }
25
- }