ywana-core8 0.0.847 → 0.0.849

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.847",
3
+ "version": "0.0.849",
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>
@@ -480,11 +480,11 @@ export const TableEditor = (props) => {
480
480
  children: <DataTable {...table} onRowSelection={select} editable={editable} onCheckAll={check} className={className} />
481
481
  })
482
482
  })
483
-
483
+
484
484
  return (
485
485
  <Fragment>
486
486
  <Header icon={icon} title={<Text>{title}</Text>}>
487
- {groupBy ? <DropDown id="groupBy" label="Agrupar Por" value={groupBy} options={buildGroupOptions(schema)} onChange={changeGroup} /> : null}
487
+ {groupBy ? <DropDown id="groupBy" label={<Text>Group By</Text>} value={groupBy} options={buildGroupOptions(schema)} onChange={changeGroup} /> : null}
488
488
  {tabbedBy ? <Tabs fillRight={true} fillLeft={false}>
489
489
  {tabs.map(tab => <Tab id={tab.value} label={tab.label} />)}
490
490
  </Tabs> : ''}
package/src/site/site.js CHANGED
@@ -147,9 +147,9 @@ const SiteNotifications = () => {
147
147
  * Site Header
148
148
  */
149
149
  const SiteHeader = (props) => {
150
- const { icon = "equalizer", title } = props
150
+ const { icon = "equalizer", iconSrc, title } = props
151
151
  return (
152
- <Header icon={icon} title={title} />
152
+ <Header icon={icon} iconSrc={iconSrc} title={title} />
153
153
  )
154
154
  }
155
155