native-document 1.0.229 → 1.0.230
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 +1 -1
- package/src/components/icon/icon-getters.js +21 -0
- package/src/components/icon/icons.js +22 -0
- package/src/components/icon/types/Icon.d.ts +21 -0
- package/src/components/list/types/List.d.ts +2 -1
- package/src/components/list/types/ListItem.d.ts +2 -1
- package/src/ui/components/icon/material/MaterialIconRender.js +3 -3
- package/src/ui/components/icon/material/material.css +7 -0
- package/src/ui/components/icon/material/material.map.js +24 -1
- package/src/ui/components/icon/phosphor/phosphor.map.js +23 -0
- package/src/ui/components/icon/tabler/tabler.map.js +23 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "native-document",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.230",
|
|
4
4
|
"description": "A reactive JavaScript framework that preserves native DOM simplicity without sacrificing modern features",
|
|
5
5
|
"author": "AfroCodeur <https://github.com/afrocodeur>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -139,4 +139,25 @@ export const ICON_GETTERS = {
|
|
|
139
139
|
dislike: ICONS.ICON_DISLIKE,
|
|
140
140
|
safety: ICONS.ICON_SAFETY,
|
|
141
141
|
key: ICONS.ICON_KEY,
|
|
142
|
+
venue: ICONS.ICON_VENUE,
|
|
143
|
+
stadium: ICONS.ICON_STADIUM,
|
|
144
|
+
conferenceCenter: ICONS.ICON_CONFERENCE_CENTER,
|
|
145
|
+
hotel: ICONS.ICON_HOTEL,
|
|
146
|
+
restaurant: ICONS.ICON_RESTAURANT,
|
|
147
|
+
rooftop: ICONS.ICON_ROOFTOP,
|
|
148
|
+
beach: ICONS.ICON_BEACH,
|
|
149
|
+
garden: ICONS.ICON_GARDEN,
|
|
150
|
+
theater: ICONS.ICON_THEATER,
|
|
151
|
+
cinema: ICONS.ICON_CINEMA,
|
|
152
|
+
museum: ICONS.ICON_MUSEUM,
|
|
153
|
+
coworking: ICONS.ICON_COWORKING,
|
|
154
|
+
airport: ICONS.ICON_AIRPORT,
|
|
155
|
+
station: ICONS.ICON_STATION,
|
|
156
|
+
port: ICONS.ICON_PORT,
|
|
157
|
+
sportsGround: ICONS.ICON_SPORTS_GROUND,
|
|
158
|
+
university: ICONS.ICON_UNIVERSITY,
|
|
159
|
+
church: ICONS.ICON_CHURCH,
|
|
160
|
+
government: ICONS.ICON_GOVERNMENT,
|
|
161
|
+
mapPin: ICONS.ICON_MAP_PIN,
|
|
162
|
+
locationOn: ICONS.ICON_MAP_PIN,
|
|
142
163
|
};
|
|
@@ -150,6 +150,7 @@ export const ICON_ROBOT = 'robot';
|
|
|
150
150
|
|
|
151
151
|
// -- Location -----------------------------------------------------------------
|
|
152
152
|
export const ICON_MAP = 'map';
|
|
153
|
+
export const ICON_MAP_PIN = 'mapMin';
|
|
153
154
|
export const ICON_COMPASS = 'compass';
|
|
154
155
|
export const ICON_GLOBAL = 'global';
|
|
155
156
|
export const ICON_LOCATION = 'location';
|
|
@@ -169,3 +170,24 @@ export const ICON_LIKE = 'like';
|
|
|
169
170
|
export const ICON_DISLIKE = 'dislike';
|
|
170
171
|
export const ICON_SAFETY = 'safety';
|
|
171
172
|
export const ICON_KEY = 'key';
|
|
173
|
+
|
|
174
|
+
// -- Place types --------------------------------------------------------------
|
|
175
|
+
export const ICON_VENUE = 'venue';
|
|
176
|
+
export const ICON_STADIUM = 'stadium';
|
|
177
|
+
export const ICON_CONFERENCE_CENTER = 'conferenceCenter';
|
|
178
|
+
export const ICON_HOTEL = 'hotel';
|
|
179
|
+
export const ICON_RESTAURANT = 'restaurant';
|
|
180
|
+
export const ICON_ROOFTOP = 'rooftop';
|
|
181
|
+
export const ICON_BEACH = 'beach';
|
|
182
|
+
export const ICON_GARDEN = 'garden';
|
|
183
|
+
export const ICON_THEATER = 'theater';
|
|
184
|
+
export const ICON_CINEMA = 'cinema';
|
|
185
|
+
export const ICON_MUSEUM = 'museum';
|
|
186
|
+
export const ICON_COWORKING = 'coworking';
|
|
187
|
+
export const ICON_AIRPORT = 'airport';
|
|
188
|
+
export const ICON_STATION = 'station';
|
|
189
|
+
export const ICON_PORT = 'port';
|
|
190
|
+
export const ICON_SPORTS_GROUND = 'sportsGround';
|
|
191
|
+
export const ICON_UNIVERSITY = 'university';
|
|
192
|
+
export const ICON_CHURCH = 'church';
|
|
193
|
+
export const ICON_GOVERNMENT = 'government';
|
|
@@ -188,4 +188,25 @@ export declare namespace Icon {
|
|
|
188
188
|
const video: IconInstance;
|
|
189
189
|
const wallet: IconInstance;
|
|
190
190
|
const warning: IconInstance;
|
|
191
|
+
const venue: IconInstance;
|
|
192
|
+
const stadium: IconInstance;
|
|
193
|
+
const conferenceCenter: IconInstance;
|
|
194
|
+
const hotel: IconInstance;
|
|
195
|
+
const restaurant: IconInstance;
|
|
196
|
+
const rooftop: IconInstance;
|
|
197
|
+
const beach: IconInstance;
|
|
198
|
+
const garden: IconInstance;
|
|
199
|
+
const theater: IconInstance;
|
|
200
|
+
const cinema: IconInstance;
|
|
201
|
+
const museum: IconInstance;
|
|
202
|
+
const coworking: IconInstance;
|
|
203
|
+
const airport: IconInstance;
|
|
204
|
+
const station: IconInstance;
|
|
205
|
+
const port: IconInstance;
|
|
206
|
+
const sportsGround: IconInstance;
|
|
207
|
+
const university: IconInstance;
|
|
208
|
+
const church: IconInstance;
|
|
209
|
+
const government: IconInstance;
|
|
210
|
+
const mapPin: IconInstance;
|
|
211
|
+
const locationOn: IconInstance;
|
|
191
212
|
}
|
|
@@ -4,6 +4,7 @@ import type { GlobalAttributes } from '../../../../types/globals';
|
|
|
4
4
|
import type { ListItemInterface } from './ListItem';
|
|
5
5
|
import type { ListGroupInterface } from './ListGroup';
|
|
6
6
|
import type { ListDividerInterface } from './ListDivider';
|
|
7
|
+
import {BaseComponent} from "../../BaseComponent";
|
|
7
8
|
|
|
8
9
|
export type ListDescription = {
|
|
9
10
|
selectable: ObservableItem<boolean>;
|
|
@@ -19,7 +20,7 @@ export type ListDescription = {
|
|
|
19
20
|
props: GlobalAttributes;
|
|
20
21
|
};
|
|
21
22
|
|
|
22
|
-
export interface ListInterface {
|
|
23
|
+
export interface ListInterface extends BaseComponent {
|
|
23
24
|
$description: ListDescription;
|
|
24
25
|
|
|
25
26
|
// HasListItem
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ValidChild } from '../../../../types/elements';
|
|
2
2
|
import type { ObservableItem } from '../../../../types/observable';
|
|
3
3
|
import type { GlobalAttributes } from '../../../../types/globals';
|
|
4
|
+
import {BaseComponent} from "../../BaseComponent";
|
|
4
5
|
|
|
5
6
|
export type ListItemDescription = {
|
|
6
7
|
label: ValidChild | null;
|
|
@@ -20,7 +21,7 @@ export type ListItemDescription = {
|
|
|
20
21
|
props: GlobalAttributes;
|
|
21
22
|
};
|
|
22
23
|
|
|
23
|
-
export interface ListItemInterface {
|
|
24
|
+
export interface ListItemInterface extends Omit<BaseComponent, 'onClick' | 'visibility'> {
|
|
24
25
|
$description: ListItemDescription;
|
|
25
26
|
$parent: unknown;
|
|
26
27
|
|
|
@@ -49,9 +49,9 @@ export default function MaterialIconRender($desc) {
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
if($desc.size?.__$Observable) {
|
|
52
|
-
style
|
|
53
|
-
const px = typeof size === 'number' ? size : (SIZES[size] ??
|
|
54
|
-
return `${px}px
|
|
52
|
+
style['--material-icons-size'] = $desc.size.transform((size) => {
|
|
53
|
+
const px = typeof size === 'number' ? size : (SIZES[size] ?? null);
|
|
54
|
+
return px ? `${px}px` : false;
|
|
55
55
|
});
|
|
56
56
|
} else {
|
|
57
57
|
const px = typeof $desc.size === 'number' ? $desc.size : (SIZES[$desc.size] ?? SIZES.medium);
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--material-icons-size: 16px;
|
|
3
|
+
}
|
|
1
4
|
/*
|
|
2
5
|
* Google Material Icons webfont
|
|
3
6
|
* Install : npm install material-icons
|
|
@@ -13,3 +16,7 @@
|
|
|
13
16
|
/* @import 'material-icons/iconfont/round.css'; */
|
|
14
17
|
/* @import 'material-icons/iconfont/sharp.css'; */
|
|
15
18
|
/* @import 'material-icons/iconfont/two-tone.css'; */
|
|
19
|
+
|
|
20
|
+
.material-icons {
|
|
21
|
+
font-size: var(--material-icons-size) !important;
|
|
22
|
+
}
|
|
@@ -167,4 +167,27 @@ export default {
|
|
|
167
167
|
dislike: 'thumb_down',
|
|
168
168
|
safety: 'verified_user',
|
|
169
169
|
key: 'key',
|
|
170
|
-
|
|
170
|
+
|
|
171
|
+
// Place types
|
|
172
|
+
venue: 'event_venue',
|
|
173
|
+
stadium: 'stadium',
|
|
174
|
+
conferenceCenter: 'meeting_room',
|
|
175
|
+
hotel: 'hotel',
|
|
176
|
+
restaurant: 'restaurant',
|
|
177
|
+
rooftop: 'local_bar',
|
|
178
|
+
beach: 'beach_access',
|
|
179
|
+
garden: 'park',
|
|
180
|
+
theater: 'theaters',
|
|
181
|
+
cinema: 'movie',
|
|
182
|
+
museum: 'museum',
|
|
183
|
+
coworking: 'work',
|
|
184
|
+
airport: 'local_airport',
|
|
185
|
+
station: 'train',
|
|
186
|
+
port: 'anchor',
|
|
187
|
+
sportsGround: 'sports_soccer',
|
|
188
|
+
university: 'school',
|
|
189
|
+
church: 'church',
|
|
190
|
+
government: 'account_balance',
|
|
191
|
+
mapPin: 'location_on',
|
|
192
|
+
locationOn: 'location_on',
|
|
193
|
+
};
|
|
@@ -162,4 +162,27 @@ export default {
|
|
|
162
162
|
dislike: 'thumbs-down',
|
|
163
163
|
safety: 'shield-check',
|
|
164
164
|
key: 'key',
|
|
165
|
+
|
|
166
|
+
// Place types
|
|
167
|
+
venue: 'buildings',
|
|
168
|
+
stadium: 'stadium',
|
|
169
|
+
conferenceCenter: 'presentation-chart',
|
|
170
|
+
hotel: 'bed',
|
|
171
|
+
restaurant: 'fork-knife',
|
|
172
|
+
rooftop: 'building-office',
|
|
173
|
+
beach: 'umbrella',
|
|
174
|
+
garden: 'tree',
|
|
175
|
+
theater: 'mask-happy',
|
|
176
|
+
cinema: 'film-slate',
|
|
177
|
+
museum: 'columns',
|
|
178
|
+
coworking: 'chair',
|
|
179
|
+
airport: 'airplane',
|
|
180
|
+
station: 'train',
|
|
181
|
+
port: 'anchor',
|
|
182
|
+
sportsGround: 'soccer-ball',
|
|
183
|
+
university: 'graduation-cap',
|
|
184
|
+
church: 'church',
|
|
185
|
+
government: 'bank',
|
|
186
|
+
mapPin: 'map-pin',
|
|
187
|
+
locationOn: 'map-pin',
|
|
165
188
|
};
|
|
@@ -162,4 +162,27 @@ export default {
|
|
|
162
162
|
dislike: 'thumb-down',
|
|
163
163
|
safety: 'shield-check',
|
|
164
164
|
key: 'key',
|
|
165
|
+
|
|
166
|
+
// Place types
|
|
167
|
+
venue: 'building',
|
|
168
|
+
stadium: 'stadium',
|
|
169
|
+
conferenceCenter: 'building-community',
|
|
170
|
+
hotel: 'building-hotel',
|
|
171
|
+
restaurant: 'tools-kitchen-2',
|
|
172
|
+
rooftop: 'building-skyscraper',
|
|
173
|
+
beach: 'wave-saw-tool',
|
|
174
|
+
garden: 'plant-2',
|
|
175
|
+
theater: 'masks-theater',
|
|
176
|
+
cinema: 'movie',
|
|
177
|
+
museum: 'building-monument',
|
|
178
|
+
coworking: 'armchair',
|
|
179
|
+
airport: 'plane',
|
|
180
|
+
station: 'bus-stop',
|
|
181
|
+
port: 'anchor',
|
|
182
|
+
sportsGround: 'ball-football',
|
|
183
|
+
university: 'school',
|
|
184
|
+
church: 'building-church',
|
|
185
|
+
government: 'building-bank',
|
|
186
|
+
mapPin: 'map-pin',
|
|
187
|
+
locationOn: 'map-pin',
|
|
165
188
|
};
|