ds-one 0.1.11-alpha.1 → 0.1.11-alpha.3
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/DS1/1-root/fonts/GT-America-Compressed-Regular.woff2 +0 -0
- package/DS1/1-root/one.css +7 -0
- package/DS1/2-core/{text-v1.ts → ds-text.ts} +4 -4
- package/DS1/2-core/home-v1.ts +2 -2
- package/DS1/3-unit/doublenav-v1.ts +2 -2
- package/DS1/3-unit/singlenav-v1.ts +1 -1
- package/DS1/4-page/ds-grid.ts +5 -4
- package/DS1/4-page/ds-layout.ts +1 -20
- package/DS1/index.ts +1 -1
- package/README.md +5 -5
- package/dist/2-core/ds-text.d.ts +48 -0
- package/dist/2-core/ds-text.d.ts.map +1 -0
- package/dist/2-core/ds-text.js +83 -0
- package/dist/2-core/home-v1.js +2 -2
- package/dist/3-unit/doublenav-v1.js +2 -2
- package/dist/3-unit/singlenav-v1.js +1 -1
- package/dist/4-page/ds-grid.d.ts.map +1 -1
- package/dist/4-page/ds-grid.js +5 -4
- package/dist/4-page/ds-layout.d.ts.map +1 -1
- package/dist/4-page/ds-layout.js +1 -20
- package/dist/ds-one.bundle.js +14 -32
- package/dist/ds-one.bundle.js.map +3 -3
- package/dist/ds-one.bundle.min.js +17 -35
- package/dist/ds-one.bundle.min.js.map +3 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
Binary file
|
package/DS1/1-root/one.css
CHANGED
|
@@ -35,6 +35,7 @@ input {
|
|
|
35
35
|
/* ezo-type */
|
|
36
36
|
--typeface: "GT-America-Standard-Regular";
|
|
37
37
|
--typeface-medium: "GT-America-Standard-Medium";
|
|
38
|
+
--typeface-compressed: "GT-America-Compressed-Regular";
|
|
38
39
|
--typeface-japanese: "Noto Sans JP";
|
|
39
40
|
--typeface-mono: "Iosevka";
|
|
40
41
|
--type-size-default: calc(14px * var(--scaling-factor));
|
|
@@ -149,6 +150,12 @@ html {
|
|
|
149
150
|
font-display: swap;
|
|
150
151
|
}
|
|
151
152
|
|
|
153
|
+
@font-face {
|
|
154
|
+
font-family: GT-America-Compressed-Regular;
|
|
155
|
+
src: url("./fonts/GT-America-Compressed-Regular.woff2") format("woff2");
|
|
156
|
+
font-display: swap;
|
|
157
|
+
}
|
|
158
|
+
|
|
152
159
|
.matrix__board {
|
|
153
160
|
position: relative;
|
|
154
161
|
top: calc(21.5px * var(--scaling-factor));
|
|
@@ -4,7 +4,7 @@ import { getText } from "../utils/language";
|
|
|
4
4
|
/**
|
|
5
5
|
* A component for displaying text from translations
|
|
6
6
|
*
|
|
7
|
-
* @element text
|
|
7
|
+
* @element ds-text
|
|
8
8
|
* @prop {string} key - The translation key to use
|
|
9
9
|
* @prop {string} defaultValue - Default value if translation is not found
|
|
10
10
|
* @prop {string} fallback - Optional fallback text if translation is not found (deprecated, use defaultValue)
|
|
@@ -35,7 +35,7 @@ export class Text extends LitElement {
|
|
|
35
35
|
// Create bound event handlers for proper cleanup
|
|
36
36
|
this.boundHandlers = {
|
|
37
37
|
languageChanged: (() => {
|
|
38
|
-
console.log("Language changed event received in text
|
|
38
|
+
console.log("Language changed event received in ds-text");
|
|
39
39
|
this._loadText();
|
|
40
40
|
}) as EventListener,
|
|
41
41
|
};
|
|
@@ -112,10 +112,10 @@ export class Text extends LitElement {
|
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
customElements.define("text
|
|
115
|
+
customElements.define("ds-text", Text);
|
|
116
116
|
|
|
117
117
|
declare global {
|
|
118
118
|
interface HTMLElementTagNameMap {
|
|
119
|
-
"text
|
|
119
|
+
"ds-text": Text;
|
|
120
120
|
}
|
|
121
121
|
}
|
package/DS1/2-core/home-v1.ts
CHANGED
|
@@ -86,7 +86,7 @@ export class Home extends LitElement {
|
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
/* Inner text spacing without affecting the 80px outer width */
|
|
89
|
-
.home > text
|
|
89
|
+
.home > ds-text {
|
|
90
90
|
padding: 0 calc(var(--1) * 0.15 * var(--scaling-factor));
|
|
91
91
|
box-sizing: border-box;
|
|
92
92
|
height: 100%;
|
|
@@ -152,7 +152,7 @@ export class Home extends LitElement {
|
|
|
152
152
|
@click="${this._navigateHome}"
|
|
153
153
|
@keydown="${this._onKeyDown}"
|
|
154
154
|
>
|
|
155
|
-
<text
|
|
155
|
+
<ds-text key="home"></ds-text>
|
|
156
156
|
</div>
|
|
157
157
|
`;
|
|
158
158
|
}
|
|
@@ -80,14 +80,14 @@ export class DoubleNav extends LitElement {
|
|
|
80
80
|
? html`
|
|
81
81
|
<a href="${this.previous}" class="nav-previous">
|
|
82
82
|
<icon-v1 type="left"></icon-v1>
|
|
83
|
-
<text
|
|
83
|
+
<ds-text>${this.previousText || "Previous"}</ds-text>
|
|
84
84
|
</a>
|
|
85
85
|
`
|
|
86
86
|
: html`<div></div>`}
|
|
87
87
|
${this.next
|
|
88
88
|
? html`
|
|
89
89
|
<a href="${this.next}" class="nav-next">
|
|
90
|
-
<text
|
|
90
|
+
<ds-text>${this.nextText || "Next"}</ds-text>
|
|
91
91
|
<icon-v1 type="right"></icon-v1>
|
|
92
92
|
</a>
|
|
93
93
|
`
|
package/DS1/4-page/ds-grid.ts
CHANGED
|
@@ -22,7 +22,7 @@ export class Grid extends LitElement {
|
|
|
22
22
|
margin-top: 0.5px !important;
|
|
23
23
|
margin-left: 0.5px !important;
|
|
24
24
|
display: grid;
|
|
25
|
-
width:
|
|
25
|
+
width: 1440px;
|
|
26
26
|
height: 100%;
|
|
27
27
|
grid-template-columns: repeat(auto-fill, 19px);
|
|
28
28
|
grid-template-rows: repeat(auto-fill, 19px);
|
|
@@ -32,7 +32,7 @@ export class Grid extends LitElement {
|
|
|
32
32
|
column-rule: 1px solid
|
|
33
33
|
light-dark(rgba(0, 0, 0, 0.03), rgba(238, 238, 238, 0.022));
|
|
34
34
|
outline: 1px solid light-dark(rgba(0, 0, 0, 0.15), #100101e7);
|
|
35
|
-
position:
|
|
35
|
+
position: fixed;
|
|
36
36
|
top: 0;
|
|
37
37
|
left: 50%;
|
|
38
38
|
transform: translateX(-50%);
|
|
@@ -51,8 +51,9 @@ export class Grid extends LitElement {
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
:host([align="right"]) {
|
|
54
|
-
left:
|
|
55
|
-
|
|
54
|
+
left: auto;
|
|
55
|
+
right: 0;
|
|
56
|
+
transform: none;
|
|
56
57
|
}
|
|
57
58
|
`;
|
|
58
59
|
|
package/DS1/4-page/ds-layout.ts
CHANGED
|
@@ -39,7 +39,7 @@ export class Layout extends LitElement {
|
|
|
39
39
|
". footer ."
|
|
40
40
|
". . .";
|
|
41
41
|
min-height: 600px;
|
|
42
|
-
background-color: rgba(
|
|
42
|
+
background-color: rgba(165, 165, 165, 0.03);
|
|
43
43
|
position: relative;
|
|
44
44
|
width: 100%;
|
|
45
45
|
max-width: 640px;
|
|
@@ -75,10 +75,6 @@ export class Layout extends LitElement {
|
|
|
75
75
|
justify-self: end;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
:host([mode="debug"]) {
|
|
79
|
-
background-color: rgba(200, 114, 114, 0.1);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
78
|
.debug-overlay {
|
|
83
79
|
position: absolute;
|
|
84
80
|
margin-left: -1px;
|
|
@@ -127,7 +123,6 @@ export class Layout extends LitElement {
|
|
|
127
123
|
font-size: 10px;
|
|
128
124
|
font-weight: var(--type-weight-default);
|
|
129
125
|
font-family: var(--typeface);
|
|
130
|
-
background-color: var(--slate);
|
|
131
126
|
color: var(--black);
|
|
132
127
|
border: 1px solid red;
|
|
133
128
|
opacity: 1;
|
|
@@ -135,53 +130,39 @@ export class Layout extends LitElement {
|
|
|
135
130
|
|
|
136
131
|
.debug-square {
|
|
137
132
|
grid-area: square;
|
|
138
|
-
background-color: rgba(255, 0, 0, 0.2);
|
|
139
133
|
}
|
|
140
134
|
|
|
141
135
|
.debug-title {
|
|
142
136
|
grid-area: title;
|
|
143
|
-
background-color: rgba(0, 255, 0, 0.2);
|
|
144
137
|
}
|
|
145
138
|
|
|
146
139
|
.debug-header {
|
|
147
140
|
grid-area: header;
|
|
148
|
-
background-color: rgba(0, 0, 255, 0.2);
|
|
149
141
|
border-color: #0000ff;
|
|
150
142
|
}
|
|
151
143
|
|
|
152
144
|
.debug-projects {
|
|
153
145
|
grid-area: projects;
|
|
154
|
-
background-color: rgba(255, 255, 0, 0.2);
|
|
155
146
|
border-color: #ffff00;
|
|
156
147
|
}
|
|
157
148
|
|
|
158
149
|
.debug-bio {
|
|
159
150
|
grid-area: bio;
|
|
160
|
-
background-color: rgba(255, 0, 255, 0.2);
|
|
161
151
|
border-color: #ff00ff;
|
|
162
152
|
}
|
|
163
153
|
|
|
164
154
|
.debug-nav {
|
|
165
155
|
grid-area: nav;
|
|
166
|
-
background-color: rgba(0, 255, 255, 0.2);
|
|
167
156
|
border-color: #00ffff;
|
|
168
157
|
}
|
|
169
158
|
|
|
170
159
|
.debug-footer {
|
|
171
160
|
grid-area: footer;
|
|
172
|
-
background-color: rgba(255, 165, 0, 0.2);
|
|
173
161
|
border-color: #ffa500;
|
|
174
162
|
}
|
|
175
163
|
|
|
176
|
-
.debug-header {
|
|
177
|
-
grid-area: header;
|
|
178
|
-
background-color: rgba(0, 0, 255, 0.2);
|
|
179
|
-
border-color: #0000ff;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
164
|
.debug-content {
|
|
183
165
|
grid-area: content;
|
|
184
|
-
background-color: rgba(21, 169, 21, 0.57);
|
|
185
166
|
border-color: rgba(71, 231, 71, 0.63);
|
|
186
167
|
}
|
|
187
168
|
`;
|
package/DS1/index.ts
CHANGED
|
@@ -6,7 +6,7 @@ import "./utils/cdn-loader";
|
|
|
6
6
|
|
|
7
7
|
// Core components
|
|
8
8
|
export * from "./2-core/ds-button";
|
|
9
|
-
export * from "./2-core/text
|
|
9
|
+
export * from "./2-core/ds-text";
|
|
10
10
|
export * from "./2-core/icon-v1";
|
|
11
11
|
export * from "./2-core/link-v1";
|
|
12
12
|
export * from "./2-core/cycle-v1";
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ Build modern UIs with web components!
|
|
|
6
6
|
|
|
7
7
|
[](https://badge.fury.io/js/ds-one)
|
|
8
8
|
[](https://opensource.org/licenses/MIT)
|
|
9
|
-
[](https://github.com/Jo4712/ds-one)
|
|
10
10
|
|
|
11
11
|
**DS one** is a modern design system that provides a comprehensive set of reusable UI components built with Web Components. Think "Material Design meets Web Standards"—a simple, accessible component library that works with any framework or vanilla JavaScript.
|
|
12
12
|
|
|
@@ -27,7 +27,7 @@ npm install ds-one@alpha
|
|
|
27
27
|
yarn add ds-one@alpha
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
**Note**: Currently published as alpha version `0.1.11-alpha.
|
|
30
|
+
**Note**: Currently published as alpha version `0.1.11-alpha.3`. Use `@alpha` tag to install.
|
|
31
31
|
|
|
32
32
|
### Basic Usage
|
|
33
33
|
|
|
@@ -45,12 +45,12 @@ yarn add ds-one@alpha
|
|
|
45
45
|
></script>
|
|
46
46
|
<script
|
|
47
47
|
type="module"
|
|
48
|
-
src="node_modules/design-system-one/2 Core/text
|
|
48
|
+
src="node_modules/design-system-one/2 Core/ds-text.ts"
|
|
49
49
|
></script>
|
|
50
50
|
</head>
|
|
51
51
|
<body>
|
|
52
52
|
<ds-button variant="primary" key="welcomeButton">Get Started</ds-button>
|
|
53
|
-
<text
|
|
53
|
+
<ds-text variant="heading" key="mainHeading">Welcome to DS one</ds-text>
|
|
54
54
|
</body>
|
|
55
55
|
</html>
|
|
56
56
|
```
|
|
@@ -96,7 +96,7 @@ Try DS one in your browser: **[dsone.dev](https://dsone.dev)** (documentation sl
|
|
|
96
96
|
|
|
97
97
|
### Completed Features
|
|
98
98
|
|
|
99
|
-
- ✅ Core component library (ds-button, text
|
|
99
|
+
- ✅ Core component library (ds-button, ds-text, icon-v1, etc.)
|
|
100
100
|
- ✅ Theming system with accent color support
|
|
101
101
|
- ✅ Internationalization with language keys
|
|
102
102
|
- ✅ Responsive design with mobile scaling
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
/**
|
|
3
|
+
* A component for displaying text from translations
|
|
4
|
+
*
|
|
5
|
+
* @element ds-text
|
|
6
|
+
* @prop {string} key - The translation key to use
|
|
7
|
+
* @prop {string} defaultValue - Default value if translation is not found
|
|
8
|
+
* @prop {string} fallback - Optional fallback text if translation is not found (deprecated, use defaultValue)
|
|
9
|
+
*/
|
|
10
|
+
export declare class Text extends LitElement {
|
|
11
|
+
static get properties(): {
|
|
12
|
+
key: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
reflect: boolean;
|
|
15
|
+
};
|
|
16
|
+
defaultValue: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
reflect: boolean;
|
|
19
|
+
attribute: string;
|
|
20
|
+
};
|
|
21
|
+
fallback: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
reflect: boolean;
|
|
24
|
+
};
|
|
25
|
+
_text: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
state: boolean;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
key: string;
|
|
31
|
+
defaultValue: string;
|
|
32
|
+
fallback: string;
|
|
33
|
+
_text: string;
|
|
34
|
+
private boundHandlers;
|
|
35
|
+
constructor();
|
|
36
|
+
static styles: import("lit").CSSResult;
|
|
37
|
+
connectedCallback(): void;
|
|
38
|
+
disconnectedCallback(): void;
|
|
39
|
+
updated(changedProperties: Map<string, unknown>): void;
|
|
40
|
+
_loadText(): void;
|
|
41
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
42
|
+
}
|
|
43
|
+
declare global {
|
|
44
|
+
interface HTMLElementTagNameMap {
|
|
45
|
+
"ds-text": Text;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=ds-text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ds-text.d.ts","sourceRoot":"","sources":["../../DS1/2-core/ds-text.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAG5C;;;;;;;GAOG;AACH,qBAAa,IAAK,SAAQ,UAAU;IAClC,MAAM,KAAK,UAAU;;;;;;;;;;;;;;;;;;MAOpB;IAEO,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,aAAa,CAAqC;;IAkB1D,MAAM,CAAC,MAAM,0BAQX;IAEF,iBAAiB;IAoBjB,oBAAoB;IAYpB,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC;IAQ/C,SAAS;IAgBT,MAAM;CAGP;AAID,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,SAAS,EAAE,IAAI,CAAC;KACjB;CACF"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { LitElement, html, css } from "lit";
|
|
2
|
+
import { getText } from "../utils/language";
|
|
3
|
+
/**
|
|
4
|
+
* A component for displaying text from translations
|
|
5
|
+
*
|
|
6
|
+
* @element ds-text
|
|
7
|
+
* @prop {string} key - The translation key to use
|
|
8
|
+
* @prop {string} defaultValue - Default value if translation is not found
|
|
9
|
+
* @prop {string} fallback - Optional fallback text if translation is not found (deprecated, use defaultValue)
|
|
10
|
+
*/
|
|
11
|
+
export class Text extends LitElement {
|
|
12
|
+
static get properties() {
|
|
13
|
+
return {
|
|
14
|
+
key: { type: String, reflect: true },
|
|
15
|
+
defaultValue: { type: String, reflect: true, attribute: "default-value" },
|
|
16
|
+
fallback: { type: String, reflect: true }, // Kept for backward compatibility
|
|
17
|
+
_text: { type: String, state: true },
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
constructor() {
|
|
21
|
+
super();
|
|
22
|
+
this.key = "";
|
|
23
|
+
this.defaultValue = "";
|
|
24
|
+
this.fallback = "";
|
|
25
|
+
this._text = "";
|
|
26
|
+
// Create bound event handlers for proper cleanup
|
|
27
|
+
this.boundHandlers = {
|
|
28
|
+
languageChanged: (() => {
|
|
29
|
+
console.log("Language changed event received in ds-text");
|
|
30
|
+
this._loadText();
|
|
31
|
+
}),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
connectedCallback() {
|
|
35
|
+
super.connectedCallback();
|
|
36
|
+
this._loadText();
|
|
37
|
+
// Listen for language changes
|
|
38
|
+
window.addEventListener("language-changed", this.boundHandlers.languageChanged);
|
|
39
|
+
// Also listen for translations loaded event
|
|
40
|
+
window.addEventListener("translations-loaded", this.boundHandlers.languageChanged);
|
|
41
|
+
// Listen for language changes via events instead of signals
|
|
42
|
+
// The currentLanguage signal changes will trigger the language-changed event
|
|
43
|
+
}
|
|
44
|
+
disconnectedCallback() {
|
|
45
|
+
super.disconnectedCallback();
|
|
46
|
+
window.removeEventListener("language-changed", this.boundHandlers.languageChanged);
|
|
47
|
+
window.removeEventListener("translations-loaded", this.boundHandlers.languageChanged);
|
|
48
|
+
}
|
|
49
|
+
updated(changedProperties) {
|
|
50
|
+
super.updated(changedProperties);
|
|
51
|
+
if (changedProperties.has("key") || changedProperties.has("defaultValue")) {
|
|
52
|
+
this._loadText();
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
_loadText() {
|
|
56
|
+
if (!this.key) {
|
|
57
|
+
this._text = this.defaultValue || this.fallback || "";
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
try {
|
|
61
|
+
const text = getText(this.key);
|
|
62
|
+
this._text = text || this.defaultValue || this.fallback || this.key;
|
|
63
|
+
}
|
|
64
|
+
catch (error) {
|
|
65
|
+
console.error("Error loading text for key:", this.key, error);
|
|
66
|
+
this._text = this.defaultValue || this.fallback || this.key;
|
|
67
|
+
}
|
|
68
|
+
this.requestUpdate();
|
|
69
|
+
}
|
|
70
|
+
render() {
|
|
71
|
+
return html `<span>${this._text || this.defaultValue || this.key}</span>`;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
Text.styles = css `
|
|
75
|
+
:host {
|
|
76
|
+
display: inline;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.loading {
|
|
80
|
+
opacity: 0.6;
|
|
81
|
+
}
|
|
82
|
+
`;
|
|
83
|
+
customElements.define("ds-text", Text);
|
package/dist/2-core/home-v1.js
CHANGED
|
@@ -63,7 +63,7 @@ export class Home extends LitElement {
|
|
|
63
63
|
@click="${this._navigateHome}"
|
|
64
64
|
@keydown="${this._onKeyDown}"
|
|
65
65
|
>
|
|
66
|
-
<text
|
|
66
|
+
<ds-text key="home"></ds-text>
|
|
67
67
|
</div>
|
|
68
68
|
`;
|
|
69
69
|
}
|
|
@@ -107,7 +107,7 @@ Home.styles = css `
|
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
/* Inner text spacing without affecting the 80px outer width */
|
|
110
|
-
.home > text
|
|
110
|
+
.home > ds-text {
|
|
111
111
|
padding: 0 calc(var(--1) * 0.15 * var(--scaling-factor));
|
|
112
112
|
box-sizing: border-box;
|
|
113
113
|
height: 100%;
|
|
@@ -33,14 +33,14 @@ export class DoubleNav extends LitElement {
|
|
|
33
33
|
? html `
|
|
34
34
|
<a href="${this.previous}" class="nav-previous">
|
|
35
35
|
<icon-v1 type="left"></icon-v1>
|
|
36
|
-
<text
|
|
36
|
+
<ds-text>${this.previousText || "Previous"}</ds-text>
|
|
37
37
|
</a>
|
|
38
38
|
`
|
|
39
39
|
: html `<div></div>`}
|
|
40
40
|
${this.next
|
|
41
41
|
? html `
|
|
42
42
|
<a href="${this.next}" class="nav-next">
|
|
43
|
-
<text
|
|
43
|
+
<ds-text>${this.nextText || "Next"}</ds-text>
|
|
44
44
|
<icon-v1 type="right"></icon-v1>
|
|
45
45
|
</a>
|
|
46
46
|
`
|
|
@@ -22,7 +22,7 @@ export class SingleNav extends LitElement {
|
|
|
22
22
|
const href = this.to || navConfig.href;
|
|
23
23
|
return html `
|
|
24
24
|
<a href="${href}">
|
|
25
|
-
<text
|
|
25
|
+
<ds-text key="${navConfig.key}"></ds-text>
|
|
26
26
|
<icon-v1 type="right"></icon-v1>
|
|
27
27
|
</a>
|
|
28
28
|
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ds-grid.d.ts","sourceRoot":"","sources":["../../DS1/4-page/ds-grid.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAE5C,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,UAAU,GAAG,IAAI,CAAC;KAC5D;IACD,IAAI,cAAc,EAAE,qBAAqB,CAAC;CAC3C;AAED,qBAAa,IAAK,SAAQ,UAAU;IAClC,MAAM,CAAC,UAAU;;;;MAEf;IAEF,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"ds-grid.d.ts","sourceRoot":"","sources":["../../DS1/4-page/ds-grid.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAE5C,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,UAAU,GAAG,IAAI,CAAC;KAC5D;IACD,IAAI,cAAc,EAAE,qBAAqB,CAAC;CAC3C;AAED,qBAAa,IAAK,SAAQ,UAAU;IAClC,MAAM,CAAC,UAAU;;;;MAEf;IAEF,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,MAAM,CAAC,MAAM,0BAsCX;IAEF,MAAM;CAGP;AAID,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,SAAS,EAAE,IAAI,CAAC;KACjB;CACF"}
|
package/dist/4-page/ds-grid.js
CHANGED
|
@@ -14,7 +14,7 @@ Grid.styles = css `
|
|
|
14
14
|
margin-top: 0.5px !important;
|
|
15
15
|
margin-left: 0.5px !important;
|
|
16
16
|
display: grid;
|
|
17
|
-
width:
|
|
17
|
+
width: 1440px;
|
|
18
18
|
height: 100%;
|
|
19
19
|
grid-template-columns: repeat(auto-fill, 19px);
|
|
20
20
|
grid-template-rows: repeat(auto-fill, 19px);
|
|
@@ -24,7 +24,7 @@ Grid.styles = css `
|
|
|
24
24
|
column-rule: 1px solid
|
|
25
25
|
light-dark(rgba(0, 0, 0, 0.03), rgba(238, 238, 238, 0.022));
|
|
26
26
|
outline: 1px solid light-dark(rgba(0, 0, 0, 0.15), #100101e7);
|
|
27
|
-
position:
|
|
27
|
+
position: fixed;
|
|
28
28
|
top: 0;
|
|
29
29
|
left: 50%;
|
|
30
30
|
transform: translateX(-50%);
|
|
@@ -43,8 +43,9 @@ Grid.styles = css `
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
:host([align="right"]) {
|
|
46
|
-
left:
|
|
47
|
-
|
|
46
|
+
left: auto;
|
|
47
|
+
right: 0;
|
|
48
|
+
transform: none;
|
|
48
49
|
}
|
|
49
50
|
`;
|
|
50
51
|
customElements.define("ds-grid", Grid);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ds-layout.d.ts","sourceRoot":"","sources":["../../DS1/4-page/ds-layout.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAE5C,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,UAAU,GAAG,IAAI,CAAC;KAC5D;IACD,IAAI,cAAc,EAAE,qBAAqB,CAAC;CAC3C;AAED,qBAAa,MAAO,SAAQ,UAAU;IACpC,MAAM,CAAC,UAAU;;;;;;;;;;MAIf;IAEF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"ds-layout.d.ts","sourceRoot":"","sources":["../../DS1/4-page/ds-layout.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAE5C,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,UAAU,GAAG,IAAI,CAAC;KAC5D;IACD,IAAI,cAAc,EAAE,qBAAqB,CAAC;CAC3C;AAED,qBAAa,MAAO,SAAQ,UAAU;IACpC,MAAM,CAAC,UAAU;;;;;;;;;;MAIf;IAEF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB,MAAM,CAAC,MAAM,0BAgJX;IAEF,MAAM;CA6BP;AAID,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,MAAM,CAAC;KACrB;CACF"}
|
package/dist/4-page/ds-layout.js
CHANGED
|
@@ -54,7 +54,7 @@ Layout.styles = css `
|
|
|
54
54
|
". footer ."
|
|
55
55
|
". . .";
|
|
56
56
|
min-height: 600px;
|
|
57
|
-
background-color: rgba(
|
|
57
|
+
background-color: rgba(165, 165, 165, 0.03);
|
|
58
58
|
position: relative;
|
|
59
59
|
width: 100%;
|
|
60
60
|
max-width: 640px;
|
|
@@ -90,10 +90,6 @@ Layout.styles = css `
|
|
|
90
90
|
justify-self: end;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
:host([mode="debug"]) {
|
|
94
|
-
background-color: rgba(200, 114, 114, 0.1);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
93
|
.debug-overlay {
|
|
98
94
|
position: absolute;
|
|
99
95
|
margin-left: -1px;
|
|
@@ -142,7 +138,6 @@ Layout.styles = css `
|
|
|
142
138
|
font-size: 10px;
|
|
143
139
|
font-weight: var(--type-weight-default);
|
|
144
140
|
font-family: var(--typeface);
|
|
145
|
-
background-color: var(--slate);
|
|
146
141
|
color: var(--black);
|
|
147
142
|
border: 1px solid red;
|
|
148
143
|
opacity: 1;
|
|
@@ -150,53 +145,39 @@ Layout.styles = css `
|
|
|
150
145
|
|
|
151
146
|
.debug-square {
|
|
152
147
|
grid-area: square;
|
|
153
|
-
background-color: rgba(255, 0, 0, 0.2);
|
|
154
148
|
}
|
|
155
149
|
|
|
156
150
|
.debug-title {
|
|
157
151
|
grid-area: title;
|
|
158
|
-
background-color: rgba(0, 255, 0, 0.2);
|
|
159
152
|
}
|
|
160
153
|
|
|
161
154
|
.debug-header {
|
|
162
155
|
grid-area: header;
|
|
163
|
-
background-color: rgba(0, 0, 255, 0.2);
|
|
164
156
|
border-color: #0000ff;
|
|
165
157
|
}
|
|
166
158
|
|
|
167
159
|
.debug-projects {
|
|
168
160
|
grid-area: projects;
|
|
169
|
-
background-color: rgba(255, 255, 0, 0.2);
|
|
170
161
|
border-color: #ffff00;
|
|
171
162
|
}
|
|
172
163
|
|
|
173
164
|
.debug-bio {
|
|
174
165
|
grid-area: bio;
|
|
175
|
-
background-color: rgba(255, 0, 255, 0.2);
|
|
176
166
|
border-color: #ff00ff;
|
|
177
167
|
}
|
|
178
168
|
|
|
179
169
|
.debug-nav {
|
|
180
170
|
grid-area: nav;
|
|
181
|
-
background-color: rgba(0, 255, 255, 0.2);
|
|
182
171
|
border-color: #00ffff;
|
|
183
172
|
}
|
|
184
173
|
|
|
185
174
|
.debug-footer {
|
|
186
175
|
grid-area: footer;
|
|
187
|
-
background-color: rgba(255, 165, 0, 0.2);
|
|
188
176
|
border-color: #ffa500;
|
|
189
177
|
}
|
|
190
178
|
|
|
191
|
-
.debug-header {
|
|
192
|
-
grid-area: header;
|
|
193
|
-
background-color: rgba(0, 0, 255, 0.2);
|
|
194
|
-
border-color: #0000ff;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
179
|
.debug-content {
|
|
198
180
|
grid-area: content;
|
|
199
|
-
background-color: rgba(21, 169, 21, 0.57);
|
|
200
181
|
border-color: rgba(71, 231, 71, 0.63);
|
|
201
182
|
}
|
|
202
183
|
`;
|