ywana-core8 0.0.846 → 0.0.848

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ywana-core8",
3
- "version": "0.0.846",
3
+ "version": "0.0.848",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
package/src/css/html.css CHANGED
@@ -1,6 +1,24 @@
1
1
  html {
2
- font-size: 14px;
3
- font-family: "Assistant"
2
+ font-size: 11px;
3
+ font-family: "Inter" !important;
4
+ }
5
+
6
+ @media (min-width: 1000px) {
7
+ html {
8
+ font-size: 12px;
9
+ }
10
+ }
11
+
12
+ @media (min-width: 1600px) {
13
+ html {
14
+ font-size: 14px;
15
+ }
16
+ }
17
+
18
+ @media (min-width: 2200px) {
19
+ html {
20
+ font-size: 16px;
21
+ }
4
22
  }
5
23
 
6
24
  body {
@@ -17,7 +17,7 @@ export const TablePage2 = (props) => {
17
17
 
18
18
  const site = useContext(SiteContext)
19
19
  const { id = "table",
20
- icon, title, name,
20
+ icon, title, name, className,
21
21
  schema,
22
22
  url, field, host, params = "", // TableContext
23
23
  canQuery = false, urlQuery, user, // TableQueries
@@ -126,19 +126,19 @@ export const TablePage2 = (props) => {
126
126
 
127
127
  return (
128
128
  <Fragment>
129
- <Header className="table-page" title={<Text>{title}</Text>}>
129
+ <Header className={`table-page ${className}`} title={<Text>{title}</Text>}>
130
130
  {canAdd ? <Button icon="add" label="Añadir" action={add} raised /> : null}
131
131
  &nbsp;
132
132
  <Button icon="refresh" label="Reload" action={reload} />
133
133
  {renderActions()}
134
134
  </Header>
135
135
  {canQuery || canFilter ? (
136
- <menu className="table-page">
136
+ <menu className={`table-page ${className}`}>
137
137
  {canQuery ? <TableQueries schema={schema} url={url} user={user} /> : null}
138
138
  {canFilter ? <TableFilters schema={schema} onSave={canQuery ? saveQuery : null} /> : null}
139
139
  </menu>
140
140
  ) : null}
141
- <main key={id} className="table-page">
141
+ <main key={id} className={`table-page ${className}`}>
142
142
  <TableEditor icon={icon} title={name} schema={schema} delay={delay} editable={editable} tabbedBy={tabbedBy} groupBy={groupBy} filter={tableFilter} actions={tableActions} canDelete={canDelete} className={tableClassName} />
143
143
  {children ? <article>{children}</article> : null}
144
144
  </main>
@@ -86,6 +86,10 @@ input:read-only {
86
86
  border: 0px !important;
87
87
  }
88
88
 
89
+ input:-webkit-autofill ~ label {
90
+ top: .3rem;
91
+ }
92
+
89
93
  .textfield input[type="date"] ~ label {
90
94
  top: .3rem;
91
95
  font-size: .8rem;
@@ -43,6 +43,7 @@
43
43
  }
44
44
 
45
45
  .load-box {
46
+ width: 100%;
46
47
  color: var(--primary-color-text);
47
48
  background-color: var(--primary-color);
48
49
  display: flex;
@@ -77,6 +78,7 @@
77
78
  padding: 1rem;
78
79
  display: flex;
79
80
  flex-direction: column;
81
+ align-items: flex-end;
80
82
  }
81
83
 
82
84
  @keyframes fadeIn {
@@ -87,3 +89,14 @@
87
89
  opacity: 1;
88
90
  }
89
91
  }
92
+
93
+ .login-box .login-button {
94
+ animation: fadeIn 0.5s;
95
+ width: 100%;
96
+ }
97
+
98
+ .login-box .forgot-button {
99
+ text-align: right;
100
+ font-weight: 500;
101
+ max-width: 15rem;
102
+ }
@@ -12,7 +12,7 @@ export const LoginBox = ({
12
12
  passwordLabel = "Password",
13
13
  passwordValue = '',
14
14
  loginLabel = "Log In", onOK,
15
- forgotLabel = "Forgot Password ?", onForgot,
15
+ forgotLabel = "Forgot Password?", onForgot,
16
16
  message,
17
17
  loading
18
18
  }) => {
@@ -59,8 +59,8 @@ export const LoginBox = ({
59
59
  <TextField label={tx(passwordLabel)} value={password} onChange={changePassword} onEnter={ok} type="password" outlined />
60
60
  </main>
61
61
  <footer>
62
- { onForgot ? <Button label={tx(forgotLabel)} action={forgot} disabled={!canForgot()}/> : null }
63
- { loading ? <div className="load-box"><Icon icon="refresh" /></div> : <Button label={tx(loginLabel)} action={ok} disabled={!canOK()} raised /> }
62
+ { loading ? <div className="load-box"><Icon icon="refresh" /></div> : <Button label={tx(loginLabel)} action={ok} disabled={!canOK()} raised className="login-button" /> }
63
+ { onForgot ? <Button label={tx(forgotLabel)} action={forgot} disabled={!canForgot()} className="forgot-button"/> : null }
64
64
  { message ? <div className="message"><Text>{message}</Text></div> : null}
65
65
  </footer>
66
66
  </div>
@@ -5,7 +5,7 @@ const LoginBoxTest = (prop) => {
5
5
 
6
6
  return (
7
7
 
8
- <LoginBox />
8
+ <LoginBox onForgot />
9
9
 
10
10
  )
11
11
  }