ds-one 0.2.5-alpha.1 → 0.2.5-alpha.11
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/0-face/device.ts +10 -6
- package/DS1/0-face/i18n.ts +39 -90
- package/DS1/1-root/fonts/Iosevka-Regular.woff2 +0 -0
- package/DS1/1-root/one.css +76 -107
- package/DS1/2-core/ds-banner.ts +3 -0
- package/DS1/2-core/ds-button.ts +12 -15
- package/DS1/2-core/ds-cycle.ts +67 -21
- package/DS1/2-core/ds-date.ts +1 -2
- package/DS1/2-core/ds-icon.ts +4 -4
- package/DS1/2-core/ds-text.ts +27 -3
- package/DS1/2-core/ds-tooltip.ts +6 -12
- package/DS1/3-unit/ds-list.ts +7 -0
- package/DS1/3-unit/ds-row.ts +4 -5
- package/DS1/3-unit/ds-table.ts +5 -6
- package/DS1/4-page/ds-grid.ts +9 -59
- package/DS1/4-page/ds-layout.ts +123 -18
- package/LICENSE +1 -1
- package/README.md +43 -133
- package/dist/0-face/device.d.ts.map +1 -1
- package/dist/0-face/device.js +7 -3
- package/dist/0-face/i18n.d.ts +0 -2
- package/dist/0-face/i18n.d.ts.map +1 -1
- package/dist/0-face/i18n.js +37 -74
- package/dist/2-core/ds-banner.d.ts +1 -0
- package/dist/2-core/ds-banner.d.ts.map +1 -0
- package/dist/2-core/ds-banner.js +2 -0
- package/dist/2-core/ds-button.d.ts +2 -7
- package/dist/2-core/ds-button.d.ts.map +1 -1
- package/dist/2-core/ds-button.js +11 -13
- package/dist/2-core/ds-cycle.d.ts +2 -0
- package/dist/2-core/ds-cycle.d.ts.map +1 -1
- package/dist/2-core/ds-cycle.js +65 -19
- package/dist/2-core/ds-date.js +1 -1
- package/dist/2-core/ds-icon.js +4 -4
- package/dist/2-core/ds-text.d.ts +2 -0
- package/dist/2-core/ds-text.d.ts.map +1 -1
- package/dist/2-core/ds-text.js +26 -3
- package/dist/2-core/ds-tooltip.d.ts +1 -1
- package/dist/2-core/ds-tooltip.d.ts.map +1 -1
- package/dist/2-core/ds-tooltip.js +6 -12
- package/dist/3-unit/ds-list.d.ts.map +1 -1
- package/dist/3-unit/ds-list.js +3 -0
- package/dist/3-unit/ds-portfolio-panel.d.ts.map +1 -1
- package/dist/3-unit/ds-portfolio-singlenav.js +3 -3
- package/dist/3-unit/ds-row.js +4 -4
- package/dist/3-unit/ds-table.d.ts.map +1 -1
- package/dist/3-unit/ds-table.js +5 -6
- package/dist/4-page/ds-grid.d.ts +0 -7
- package/dist/4-page/ds-grid.d.ts.map +1 -1
- package/dist/4-page/ds-grid.js +9 -54
- package/dist/4-page/ds-layout.d.ts +1 -1
- package/dist/4-page/ds-layout.d.ts.map +1 -1
- package/dist/4-page/ds-layout.js +126 -17
- package/dist/ds-one.bundle.js +347 -265
- package/dist/ds-one.bundle.js.map +4 -4
- package/dist/ds-one.bundle.min.js +204 -80
- package/dist/ds-one.bundle.min.js.map +4 -4
- package/package.json +7 -8
- package/DS1/3-unit/doublenav-v1.ts +0 -105
- package/DS1/3-unit/ds-portfolio-doublenav.ts +0 -105
- package/DS1/3-unit/ds-portfolio-panel.ts +0 -27
- package/DS1/3-unit/ds-portfolio-singlenav.ts +0 -79
- package/DS1/3-unit/list-v1.ts +0 -24
- package/DS1/3-unit/panel-v1.ts +0 -26
- package/DS1/3-unit/row-v1.ts +0 -52
- package/DS1/3-unit/singlenav-v1.ts +0 -78
- /package/DS1/x-icon/{row..svg → row.svg} +0 -0
package/DS1/4-page/ds-layout.ts
CHANGED
|
@@ -17,13 +17,18 @@ export class Layout extends LitElement {
|
|
|
17
17
|
debug: { type: Boolean },
|
|
18
18
|
};
|
|
19
19
|
|
|
20
|
-
mode
|
|
20
|
+
mode: string = "portfolio";
|
|
21
21
|
align?: string;
|
|
22
22
|
debug?: boolean;
|
|
23
23
|
|
|
24
24
|
static styles = css`
|
|
25
25
|
:host {
|
|
26
26
|
display: grid;
|
|
27
|
+
position: relative;
|
|
28
|
+
width: 100%;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
:host([mode="portfolio"]) {
|
|
27
32
|
grid-template-columns: 120px 480px 40px;
|
|
28
33
|
grid-template-rows: 120px 120px 60px 180px 60px 120px 60px 20px 120px 120px;
|
|
29
34
|
grid-template-areas:
|
|
@@ -40,8 +45,6 @@ export class Layout extends LitElement {
|
|
|
40
45
|
". . .";
|
|
41
46
|
min-height: 600px;
|
|
42
47
|
background-color: rgba(165, 165, 165, 0.03);
|
|
43
|
-
position: relative;
|
|
44
|
-
width: 100%;
|
|
45
48
|
max-width: 640px;
|
|
46
49
|
margin: 0 auto;
|
|
47
50
|
}
|
|
@@ -75,6 +78,29 @@ export class Layout extends LitElement {
|
|
|
75
78
|
justify-self: end;
|
|
76
79
|
}
|
|
77
80
|
|
|
81
|
+
/* App mode - Base */
|
|
82
|
+
:host([mode="app"]) {
|
|
83
|
+
grid-template-columns: 1fr;
|
|
84
|
+
grid-template-rows: calc(var(--1) * var(--sf)) 20px 1fr auto;
|
|
85
|
+
grid-template-areas:
|
|
86
|
+
"banner"
|
|
87
|
+
"main"
|
|
88
|
+
"footer";
|
|
89
|
+
min-height: 100vh;
|
|
90
|
+
background-color: transparent;
|
|
91
|
+
width: 100%;
|
|
92
|
+
margin: 0 auto;
|
|
93
|
+
gap: 0;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* App mode - with scaling factor */
|
|
97
|
+
:host([mode="app"]) {
|
|
98
|
+
max-width: calc(400px * var(--sf, 1));
|
|
99
|
+
padding: calc(60px * var(--sf, 1)) calc(28px * var(--sf, 1))
|
|
100
|
+
calc(9.751px * var(--sf, 1));
|
|
101
|
+
gap: calc(28px * var(--sf, 1));
|
|
102
|
+
}
|
|
103
|
+
|
|
78
104
|
.debug-overlay {
|
|
79
105
|
position: absolute;
|
|
80
106
|
margin-left: -1px;
|
|
@@ -87,6 +113,9 @@ export class Layout extends LitElement {
|
|
|
87
113
|
display: grid;
|
|
88
114
|
font-size: 18px;
|
|
89
115
|
font-weight: bold;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
:host([mode="portfolio"]) .debug-overlay {
|
|
90
119
|
grid-template-columns: 120px 480px;
|
|
91
120
|
grid-template-rows: 120px 120px 60px 180px 60px 120px 60px 20px 120px 120px;
|
|
92
121
|
grid-template-areas:
|
|
@@ -122,7 +151,7 @@ export class Layout extends LitElement {
|
|
|
122
151
|
justify-content: center;
|
|
123
152
|
font-size: 10px;
|
|
124
153
|
font-weight: var(--type-weight-default);
|
|
125
|
-
font-family: var(--typeface);
|
|
154
|
+
font-family: var(--typeface-regular);
|
|
126
155
|
color: var(--black);
|
|
127
156
|
border: 1px solid red;
|
|
128
157
|
opacity: 1;
|
|
@@ -158,39 +187,115 @@ export class Layout extends LitElement {
|
|
|
158
187
|
|
|
159
188
|
.debug-footer {
|
|
160
189
|
grid-area: footer;
|
|
161
|
-
border-color:
|
|
190
|
+
border-color: rgb(24, 147, 73);
|
|
191
|
+
background-color: rgba(127, 123, 11, 0.1);
|
|
162
192
|
}
|
|
163
193
|
|
|
164
194
|
.debug-content {
|
|
165
195
|
grid-area: content;
|
|
166
196
|
border-color: rgba(71, 231, 71, 0.63);
|
|
167
197
|
}
|
|
198
|
+
|
|
199
|
+
:host([mode="app"]) .debug-overlay {
|
|
200
|
+
grid-template-columns: 1fr;
|
|
201
|
+
grid-template-rows:
|
|
202
|
+
calc(var(--1) * var(--sf))
|
|
203
|
+
calc(var(--2) * var(--sf))
|
|
204
|
+
calc(var(--4) * var(--sf))
|
|
205
|
+
calc(var(--1) * var(--sf));
|
|
206
|
+
grid-template-areas:
|
|
207
|
+
"banner"
|
|
208
|
+
"header"
|
|
209
|
+
"main"
|
|
210
|
+
"footer";
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.debug-banner {
|
|
214
|
+
grid-area: banner;
|
|
215
|
+
border-color: #daed09;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.debug-header {
|
|
219
|
+
grid-area: header;
|
|
220
|
+
border-color: #0000ff;
|
|
221
|
+
background-color: rgba(127, 123, 11, 0.5);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.debug-main {
|
|
225
|
+
grid-area: main;
|
|
226
|
+
border-color: #0000ff;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.debug-footer-app {
|
|
230
|
+
grid-area: footer;
|
|
231
|
+
border-color: #ffa500;
|
|
232
|
+
}
|
|
168
233
|
`;
|
|
169
234
|
|
|
170
235
|
render() {
|
|
171
236
|
const isDebug = this.debug || this.mode === "debug";
|
|
237
|
+
const isPortfolio = this.mode === "portfolio";
|
|
172
238
|
const isCompany = this.mode === "company";
|
|
239
|
+
const isApp = this.mode === "app";
|
|
173
240
|
|
|
174
241
|
return html`
|
|
175
242
|
<slot></slot>
|
|
176
243
|
${isDebug
|
|
177
244
|
? html`
|
|
178
245
|
<div class="debug-overlay">
|
|
179
|
-
${
|
|
246
|
+
${isApp
|
|
180
247
|
? html`
|
|
181
|
-
<div class="debug-area debug-
|
|
182
|
-
|
|
183
|
-
|
|
248
|
+
<div class="debug-area debug-banner">
|
|
249
|
+
<ds-text key="banner">banner</ds-text>
|
|
250
|
+
</div>
|
|
251
|
+
<div class="debug-area debug-header">
|
|
252
|
+
<ds-text key="header">header</ds-text>
|
|
253
|
+
</div>
|
|
254
|
+
|
|
255
|
+
<div class="debug-area debug-main">
|
|
256
|
+
<ds-text key="main">main</ds-text>
|
|
257
|
+
</div>
|
|
258
|
+
<div class="debug-area debug-footer-app">
|
|
259
|
+
<ds-text key="footer">footer</ds-text>
|
|
260
|
+
</div>
|
|
184
261
|
`
|
|
185
|
-
:
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
262
|
+
: isCompany
|
|
263
|
+
? html`
|
|
264
|
+
<div class="debug-area debug-header">
|
|
265
|
+
<ds-text key="header">header</ds-text>
|
|
266
|
+
</div>
|
|
267
|
+
<div class="debug-area debug-content">
|
|
268
|
+
<ds-text key="content">content</ds-text>
|
|
269
|
+
</div>
|
|
270
|
+
<div class="debug-area debug-footer">
|
|
271
|
+
<ds-text key="footer">footer</ds-text>
|
|
272
|
+
</div>
|
|
273
|
+
`
|
|
274
|
+
: isPortfolio
|
|
275
|
+
? html`
|
|
276
|
+
<div class="debug-area debug-square">
|
|
277
|
+
<ds-text key="square">square</ds-text>
|
|
278
|
+
</div>
|
|
279
|
+
<div class="debug-area debug-title">
|
|
280
|
+
<ds-text key="title">title</ds-text>
|
|
281
|
+
</div>
|
|
282
|
+
<div class="debug-area debug-header">
|
|
283
|
+
<ds-text key="header">header</ds-text>
|
|
284
|
+
</div>
|
|
285
|
+
<div class="debug-area debug-projects">
|
|
286
|
+
<ds-text key="projects">projects</ds-text>
|
|
287
|
+
</div>
|
|
288
|
+
<div class="debug-area debug-bio">
|
|
289
|
+
<ds-text key="bio">bio</ds-text>
|
|
290
|
+
</div>
|
|
291
|
+
<div class="debug-area debug-nav">
|
|
292
|
+
<ds-text key="nav">nav</ds-text>
|
|
293
|
+
</div>
|
|
294
|
+
<div class="debug-area debug-footer">
|
|
295
|
+
<ds-text key="footer">footer</ds-text>
|
|
296
|
+
</div>
|
|
297
|
+
`
|
|
298
|
+
: ""}
|
|
194
299
|
</div>
|
|
195
300
|
`
|
|
196
301
|
: ""}
|
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,19 +1,12 @@
|
|
|
1
|
-
# DS one
|
|
1
|
+
# DS one (0.2.5-alpha.11)
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A plug and play design system
|
|
4
4
|
|
|
5
|
-
> A component-based design system built with
|
|
5
|
+
> A component-based design system built with Lit that provides reusable UI components with built-in theming, internationalization, and accessibility features.
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
[](https://opensource.org/licenses/MIT)
|
|
7
|
+
**DS one** is a comprehensive modern design system that provides a set of reusable UI components built with Web Components via Lit. Available via CDN or npm.
|
|
9
8
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
**📦 Now available on NPM!** Install with `bun add ds-one@alpha` and start building today.
|
|
13
|
-
|
|
14
|
-
## 🚀 Quick Start
|
|
15
|
-
|
|
16
|
-
### Install
|
|
9
|
+
## Installation
|
|
17
10
|
|
|
18
11
|
```bash
|
|
19
12
|
# Using bun (recommended)
|
|
@@ -24,171 +17,92 @@ npm install ds-one@alpha
|
|
|
24
17
|
|
|
25
18
|
# Using yarn
|
|
26
19
|
yarn add ds-one@alpha
|
|
20
|
+
|
|
27
21
|
```
|
|
28
22
|
|
|
29
|
-
**Note**: Currently published as alpha version `0.2.
|
|
23
|
+
**Note**: Currently published as alpha version `0.2.5-alpha.11`
|
|
24
|
+
|
|
25
|
+
## Quick Start
|
|
30
26
|
|
|
31
|
-
###
|
|
27
|
+
### CDN Usage
|
|
32
28
|
|
|
33
29
|
```html
|
|
34
30
|
<!DOCTYPE html>
|
|
35
31
|
<html>
|
|
36
32
|
<head>
|
|
37
|
-
<!--
|
|
33
|
+
<!-- CSS -->
|
|
38
34
|
<link
|
|
39
35
|
rel="stylesheet"
|
|
40
36
|
href="https://cdn.jsdelivr.net/npm/ds-one@alpha/DS1/1-root/one.css"
|
|
41
37
|
/>
|
|
42
|
-
<!--
|
|
38
|
+
<!-- Bundle -->
|
|
43
39
|
<script type="module">
|
|
44
40
|
import "https://cdn.jsdelivr.net/npm/ds-one@alpha/dist/ds-one.bundle.min.js";
|
|
45
41
|
</script>
|
|
46
42
|
</head>
|
|
47
43
|
<body>
|
|
48
|
-
<ds-button variant="primary"
|
|
49
|
-
<ds-text key="welcome"
|
|
44
|
+
<ds-button variant="primary" key="getStarted"></ds-button>
|
|
45
|
+
<ds-text key="welcome"></ds-text>
|
|
50
46
|
</body>
|
|
51
47
|
</html>
|
|
52
48
|
```
|
|
53
49
|
|
|
54
|
-
###
|
|
50
|
+
### NPM Usage
|
|
55
51
|
|
|
56
|
-
|
|
52
|
+
```tsx
|
|
53
|
+
import "ds-one/styles";
|
|
54
|
+
import "ds-one";
|
|
55
|
+
```
|
|
57
56
|
|
|
58
|
-
##
|
|
57
|
+
## Documentation
|
|
59
58
|
|
|
60
|
-
|
|
59
|
+
See the full documentation for DS one at: [**dsone.dev**](https://dsone.dev/)
|
|
61
60
|
|
|
62
|
-
|
|
63
|
-
- **TypeScript support**: Full type definitions and IntelliSense
|
|
64
|
-
- **Accessibility**: ARIA support and keyboard navigation built-in
|
|
65
|
-
- **Responsive design**: Mobile-first with scaling factors
|
|
66
|
-
- **Theme system**: CSS custom properties for easy customization
|
|
61
|
+
## Features
|
|
67
62
|
|
|
68
63
|
### Internationalization
|
|
69
64
|
|
|
70
|
-
- **Language keys**:
|
|
71
|
-
- **
|
|
72
|
-
- **Fallback support**: Graceful degradation when translations missing
|
|
73
|
-
- **Multi-language**: Built-in language switching
|
|
74
|
-
|
|
75
|
-
### Developer Experience
|
|
76
|
-
|
|
77
|
-
- **Zero dependencies**: Pure Web Components, no framework required
|
|
78
|
-
- **Fast loading**: Optimized bundle size and tree-shaking
|
|
79
|
-
- **Hot reload**: Live updates in development
|
|
80
|
-
- **Comprehensive testing**: Full test coverage
|
|
65
|
+
- **Language keys**: Add a `translations.json` to your project and everything is translatable with the cycle type language button
|
|
66
|
+
- **Multi-language**: Automatically switches language based on browser language settings
|
|
81
67
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
- **[Component Reference](./docs/components.md)** - Complete component API documentation
|
|
85
|
-
- **[Theming Guide](./docs/theming.md)** - Customization and accent colors
|
|
86
|
-
- **[Internationalization](./docs/i18n.md)** - Language keys and Notion CMS setup
|
|
87
|
-
- **[Examples](./docs/examples.md)** - Usage examples and patterns
|
|
88
|
-
|
|
89
|
-
## Current Status: v0.2.0-alpha.3
|
|
68
|
+
### Core Components
|
|
90
69
|
|
|
91
|
-
|
|
70
|
+
- **Web Components**: Built with Lit for maximum compatibility
|
|
71
|
+
- **Responsive design**: Mobile-first approach with scaling factor
|
|
72
|
+
- **Theme system**: CSS custom properties for easy customization
|
|
92
73
|
|
|
93
74
|
### Completed Features
|
|
94
75
|
|
|
95
76
|
- ✅ Core component library (ds-button, ds-text, ds-icon, etc.)
|
|
96
|
-
- ✅ Theming system with accent
|
|
77
|
+
- ✅ Theming system with accent colors
|
|
97
78
|
- ✅ Internationalization with language keys
|
|
98
79
|
- ✅ Responsive design with mobile scaling
|
|
99
|
-
- ✅ TypeScript definitions and type safety
|
|
100
|
-
- ✅ Accessibility features and ARIA support
|
|
101
80
|
- ✅ CDN delivery via jsDelivr
|
|
102
81
|
- ✅ NPM package published
|
|
103
82
|
|
|
104
83
|
### In Progress
|
|
105
84
|
|
|
106
|
-
- 🚧
|
|
107
|
-
- 🚧
|
|
108
|
-
- 🚧 Component testing suite
|
|
109
|
-
- 🚧 Documentation site refinement
|
|
110
|
-
- 🚧 Additional component variants and states
|
|
111
|
-
|
|
112
|
-
### Planned for Beta
|
|
113
|
-
|
|
114
|
-
- 📋 Stable API and naming conventions
|
|
115
|
-
- 📋 Comprehensive documentation with examples
|
|
116
|
-
- 📋 Form components (input, select, checkbox, etc.)
|
|
117
|
-
- 📋 Navigation components
|
|
118
|
-
- 📋 Animation system
|
|
119
|
-
- 📋 Design tokens documentation
|
|
85
|
+
- 🚧 Documentation site
|
|
86
|
+
- 🚧 Additional component variants and states defined in Figma
|
|
120
87
|
|
|
121
88
|
## Architecture
|
|
122
89
|
|
|
123
90
|
```
|
|
124
91
|
DS one/
|
|
92
|
+
├── dist/ # Built files for NPM
|
|
125
93
|
├── DS1/
|
|
126
|
-
│ ├── 0-face/ #
|
|
94
|
+
│ ├── 0-face/ # Utilities for device detection, internationalization,
|
|
95
|
+
│ │ # localStorage preferences, pricing and theme
|
|
127
96
|
│ ├── 1-root/ # Core styles, fonts, and design tokens
|
|
128
|
-
│
|
|
129
|
-
│ ├──
|
|
130
|
-
│
|
|
131
|
-
│ ├──
|
|
97
|
+
│ │ # (everything as CSS variables)
|
|
98
|
+
│ ├── 2-core/ # Core components (banner, buttons, text, cycle,
|
|
99
|
+
│ │ # date, icon, input, tooltip)
|
|
100
|
+
│ ├── 3-unit/ # Composite components (list, row, table)
|
|
101
|
+
│ ├── 4-page/ # Page-level components for layout (layout, grid)
|
|
132
102
|
│ └── x-icon/ # SVG icon library
|
|
133
|
-
├── dist/ # Built files for NPM
|
|
134
103
|
├── examples/ # HTML examples
|
|
135
104
|
└── docs/ # Documentation
|
|
136
|
-
```
|
|
137
105
|
|
|
138
|
-
## Roadmap
|
|
139
|
-
|
|
140
|
-
### v0.2.0-beta (Target: Q2 2025)
|
|
141
|
-
|
|
142
|
-
- [ ] Finalize component naming (ds-\* prefix for all components)
|
|
143
|
-
- [ ] Complete core component set
|
|
144
|
-
- [ ] Enhanced theming system
|
|
145
|
-
- [ ] Component testing suite
|
|
146
|
-
- [ ] Comprehensive documentation
|
|
147
|
-
|
|
148
|
-
### v0.5.0 (Target: Q3 2025)
|
|
149
|
-
|
|
150
|
-
- [ ] Advanced components (forms, navigation, data display)
|
|
151
|
-
- [ ] Animation system
|
|
152
|
-
- [ ] Design tokens
|
|
153
|
-
- [ ] Figma integration
|
|
154
|
-
|
|
155
|
-
### v1.0.0 (Production - Target: Q4 2025)
|
|
156
|
-
|
|
157
|
-
- [ ] Complete feature set
|
|
158
|
-
- [ ] Production-ready tooling
|
|
159
|
-
- [ ] Long-term API stability
|
|
160
|
-
- [ ] Performance optimizations
|
|
161
|
-
|
|
162
|
-
### Development Setup
|
|
163
|
-
|
|
164
|
-
```bash
|
|
165
|
-
# Clone the repository
|
|
166
|
-
git clone https://github.com/0001-labs/ds-one.git
|
|
167
|
-
cd ds-one
|
|
168
|
-
|
|
169
|
-
# Install dependencies
|
|
170
|
-
bun install
|
|
171
|
-
|
|
172
|
-
# Run tests
|
|
173
|
-
bun test
|
|
174
|
-
|
|
175
|
-
# Start development server
|
|
176
|
-
bun run dev
|
|
177
|
-
|
|
178
|
-
# Build components
|
|
179
|
-
bun run build
|
|
180
|
-
```
|
|
181
|
-
|
|
182
|
-
### Release Process
|
|
183
|
-
|
|
184
|
-
```bash
|
|
185
|
-
# Create a new alpha release (recommended for now)
|
|
186
|
-
bun run release:pre:alpha # Bumps alpha version (e.g., 0.2.0-alpha.3 → 0.2.0-alpha.3)
|
|
187
|
-
|
|
188
|
-
# Other release commands (for future use)
|
|
189
|
-
bun run release:patch # For patch releases
|
|
190
|
-
bun run release:minor # For minor releases
|
|
191
|
-
bun run release:major # For major releases
|
|
192
106
|
```
|
|
193
107
|
|
|
194
108
|
## License
|
|
@@ -197,11 +111,7 @@ MIT © [DS one](https://github.com/0001-labs/ds-one)
|
|
|
197
111
|
|
|
198
112
|
## 🔗 Links
|
|
199
113
|
|
|
200
|
-
- **
|
|
201
|
-
- **
|
|
202
|
-
- **
|
|
203
|
-
- **
|
|
204
|
-
|
|
205
|
-
---
|
|
206
|
-
|
|
207
|
-
**DS one** - _Build modern UIs with web components that work everywhere._
|
|
114
|
+
- [**Website**](https://dsone.dev/) - Official website
|
|
115
|
+
- [**GitHub**](https://github.com/0001-labs/ds-one) - Source code and issues
|
|
116
|
+
- [**NPM Package**](https://www.npmjs.com/package/ds-one) - Install with `@alpha` tag
|
|
117
|
+
- [**CDN**](https://cdn.jsdelivr.net/npm/ds-one@alpha/) - Direct browser usage
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device.d.ts","sourceRoot":"","sources":["../../DS1/0-face/device.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEzD,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,cAAc,EAAE,OAAO,CAAC;IACxB,UAAU,EAAE,UAAU,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,IAAI,OAAO,CA0B5C;AAED;;GAEG;AACH,wBAAgB,aAAa,IAAI,UAAU,CA6B1C;AAED;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,UAAU,
|
|
1
|
+
{"version":3,"file":"device.d.ts","sourceRoot":"","sources":["../../DS1/0-face/device.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEzD,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,cAAc,EAAE,OAAO,CAAC;IACxB,UAAU,EAAE,UAAU,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,IAAI,OAAO,CA0B5C;AAED;;GAEG;AACH,wBAAgB,aAAa,IAAI,UAAU,CA6B1C;AAED;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,UAAU,CAkDhD"}
|
package/dist/0-face/device.js
CHANGED
|
@@ -61,14 +61,18 @@ export function initDeviceDetection() {
|
|
|
61
61
|
const designWidth = 280;
|
|
62
62
|
const actualWidth = deviceInfo.screenWidth;
|
|
63
63
|
const scalingFactor = actualWidth / designWidth;
|
|
64
|
-
// Set CSS custom property for scaling
|
|
65
|
-
document.documentElement.style.setProperty("--
|
|
64
|
+
// Set CSS custom property for scaling on html element
|
|
65
|
+
document.documentElement.style.setProperty("--sf", scalingFactor.toFixed(3));
|
|
66
|
+
// Also set --sf for backwards compatibility
|
|
67
|
+
document.documentElement.style.setProperty("--sf", scalingFactor.toFixed(3));
|
|
66
68
|
console.log(`[DS one] Mobile device detected - ${deviceInfo.deviceType} (${deviceInfo.screenWidth}x${deviceInfo.screenHeight}), scaling factor: ${scalingFactor.toFixed(2)}`);
|
|
67
69
|
}
|
|
68
70
|
else {
|
|
69
71
|
// Desktop - no scaling
|
|
70
72
|
if (typeof document !== "undefined") {
|
|
71
|
-
document.documentElement.style.setProperty("--
|
|
73
|
+
document.documentElement.style.setProperty("--sf", "1");
|
|
74
|
+
// Also set --sf for backwards compatibility
|
|
75
|
+
document.documentElement.style.setProperty("--sf", "1");
|
|
72
76
|
}
|
|
73
77
|
console.log(`[DS one] Desktop device detected (${deviceInfo.screenWidth}x${deviceInfo.screenHeight})`);
|
|
74
78
|
}
|
package/dist/0-face/i18n.d.ts
CHANGED
|
@@ -19,8 +19,6 @@ export declare const currentLanguage: {
|
|
|
19
19
|
export declare function translate(key: string): string;
|
|
20
20
|
export declare function hasTranslation(key: string, language?: LanguageCode): boolean;
|
|
21
21
|
export declare function getText(key: string): string;
|
|
22
|
-
export declare function getNotionText(key: string, language?: LanguageCode): Promise<string | null>;
|
|
23
|
-
export declare function setNotionText(key: string, value: string, language?: LanguageCode): void;
|
|
24
22
|
export declare function getAvailableLanguages(): Promise<LanguageCode[]>;
|
|
25
23
|
export declare function getAvailableLanguagesSync(): LanguageCode[];
|
|
26
24
|
export declare function loadTranslations(language: LanguageCode, translations: TranslationData): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../DS1/0-face/i18n.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC;AAGlC,KAAK,eAAe,GAAG;IACrB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB,CAAC;AAyDF,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,mBAAmB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;QACtD,wBAAwB,CAAC,EAAE,MAAM,CAAC;KACnC;CACF;
|
|
1
|
+
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../DS1/0-face/i18n.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC;AAGlC,KAAK,eAAe,GAAG;IACrB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB,CAAC;AAyDF,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,mBAAmB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;QACtD,wBAAwB,CAAC,EAAE,MAAM,CAAC;KACnC;CACF;AA+RD,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,YAAY,EAClB,OAAO,GAAE;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAO,GAChC,MAAM,CA6CR;AAqDD,wBAAgB,kBAAkB,IAAI,YAAY,CAwBjD;AAWD,eAAO,MAAM,eAAe;;gBAGL,YAAY;CAWlC,CAAC;AAuDF,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAiB7C;AAED,wBAAgB,cAAc,CAC5B,GAAG,EAAE,MAAM,EACX,QAAQ,GAAE,YAAoC,GAC7C,OAAO,CAmBT;AAGD,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE3C;AAGD,wBAAgB,qBAAqB,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC,CAS/D;AAGD,wBAAgB,yBAAyB,IAAI,YAAY,EAAE,CAO1D;AAGD,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,YAAY,EACtB,YAAY,EAAE,eAAe,GAC5B,IAAI,CAON;AAGD,wBAAgB,WAAW,CAAC,QAAQ,EAAE,YAAY,GAAG,IAAI,CAgBxD"}
|