ds-one 0.2.0-alpha.3 → 0.2.5-alpha.10

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.
Files changed (271) hide show
  1. package/DS1/0-face/{2025-04-23-device.ts → device.ts} +10 -6
  2. package/DS1/{utils/language.ts → 0-face/i18n.ts} +236 -92
  3. package/DS1/0-face/preferences.ts +23 -0
  4. package/DS1/0-face/pricing.ts +57 -0
  5. package/DS1/1-root/fonts/Iosevka-Regular.woff2 +0 -0
  6. package/DS1/1-root/one.css +76 -107
  7. package/DS1/2-core/ds-banner.ts +3 -0
  8. package/DS1/2-core/ds-button.ts +13 -16
  9. package/DS1/2-core/ds-cycle.ts +84 -39
  10. package/DS1/2-core/{ds-year.ts → ds-date.ts} +5 -6
  11. package/DS1/2-core/ds-icon.ts +4 -4
  12. package/DS1/2-core/ds-input.ts +1 -0
  13. package/DS1/2-core/ds-text.ts +27 -3
  14. package/DS1/2-core/ds-tooltip.ts +9 -14
  15. package/DS1/3-unit/ds-list.ts +7 -0
  16. package/DS1/3-unit/ds-row.ts +4 -5
  17. package/DS1/3-unit/ds-table.ts +5 -6
  18. package/DS1/4-page/ds-grid.ts +9 -59
  19. package/DS1/4-page/ds-layout.ts +123 -18
  20. package/DS1/index.ts +39 -37
  21. package/LICENSE +1 -1
  22. package/README.md +43 -133
  23. package/dist/0-face/{2025-04-23-device.d.ts → device.d.ts} +1 -1
  24. package/dist/0-face/device.d.ts.map +1 -0
  25. package/dist/0-face/{2025-04-23-device.js → device.js} +7 -3
  26. package/dist/{utils/language.d.ts → 0-face/i18n.d.ts} +1 -3
  27. package/dist/0-face/i18n.d.ts.map +1 -0
  28. package/dist/{utils/language.js → 0-face/i18n.js} +178 -76
  29. package/dist/0-face/preferences.d.ts +9 -0
  30. package/dist/0-face/preferences.d.ts.map +1 -0
  31. package/dist/0-face/preferences.js +14 -0
  32. package/dist/0-face/pricing.d.ts +15 -0
  33. package/dist/0-face/pricing.d.ts.map +1 -0
  34. package/dist/0-face/pricing.js +46 -0
  35. package/dist/0-face/theme.d.ts.map +1 -0
  36. package/dist/2-core/ds-banner.d.ts +1 -0
  37. package/dist/2-core/ds-banner.d.ts.map +1 -0
  38. package/dist/2-core/ds-banner.js +2 -0
  39. package/dist/2-core/ds-button.d.ts +2 -7
  40. package/dist/2-core/ds-button.d.ts.map +1 -1
  41. package/dist/2-core/ds-button.js +12 -14
  42. package/dist/2-core/ds-cycle.d.ts +2 -0
  43. package/dist/2-core/ds-cycle.d.ts.map +1 -1
  44. package/dist/2-core/ds-cycle.js +80 -34
  45. package/dist/2-core/{ds-year.d.ts → ds-date.d.ts} +4 -4
  46. package/dist/2-core/ds-date.d.ts.map +1 -0
  47. package/dist/2-core/{ds-year.js → ds-date.js} +5 -5
  48. package/dist/2-core/ds-icon.js +4 -4
  49. package/dist/2-core/ds-input.d.ts +1 -0
  50. package/dist/2-core/ds-input.d.ts.map +1 -0
  51. package/dist/2-core/ds-input.js +1 -0
  52. package/dist/2-core/ds-text.d.ts +2 -0
  53. package/dist/2-core/ds-text.d.ts.map +1 -1
  54. package/dist/2-core/ds-text.js +26 -3
  55. package/dist/2-core/ds-tooltip.d.ts +1 -1
  56. package/dist/2-core/ds-tooltip.d.ts.map +1 -1
  57. package/dist/2-core/ds-tooltip.js +9 -13
  58. package/dist/3-unit/ds-list.d.ts.map +1 -1
  59. package/dist/3-unit/ds-list.js +3 -0
  60. package/dist/3-unit/{ds-doublenav.d.ts → ds-portfolio-doublenav.d.ts} +4 -4
  61. package/dist/3-unit/ds-portfolio-doublenav.d.ts.map +1 -0
  62. package/dist/3-unit/{ds-doublenav.js → ds-portfolio-doublenav.js} +4 -4
  63. package/dist/3-unit/{ds-panel.d.ts → ds-portfolio-panel.d.ts} +3 -3
  64. package/dist/3-unit/ds-portfolio-panel.d.ts.map +1 -0
  65. package/dist/3-unit/{ds-panel.js → ds-portfolio-panel.js} +3 -3
  66. package/dist/3-unit/{ds-singlenav.d.ts → ds-portfolio-singlenav.d.ts} +4 -4
  67. package/dist/3-unit/ds-portfolio-singlenav.d.ts.map +1 -0
  68. package/dist/3-unit/{ds-singlenav.js → ds-portfolio-singlenav.js} +7 -7
  69. package/dist/3-unit/ds-row.js +4 -4
  70. package/dist/3-unit/ds-table.d.ts.map +1 -1
  71. package/dist/3-unit/ds-table.js +5 -6
  72. package/dist/4-page/ds-grid.d.ts +0 -7
  73. package/dist/4-page/ds-grid.d.ts.map +1 -1
  74. package/dist/4-page/ds-grid.js +9 -54
  75. package/dist/4-page/ds-layout.d.ts +1 -1
  76. package/dist/4-page/ds-layout.d.ts.map +1 -1
  77. package/dist/4-page/ds-layout.js +126 -17
  78. package/dist/ds-one.bundle.js +2515 -4132
  79. package/dist/ds-one.bundle.js.map +4 -4
  80. package/dist/ds-one.bundle.min.js +245 -787
  81. package/dist/ds-one.bundle.min.js.map +4 -4
  82. package/dist/index.d.ts +16 -26
  83. package/dist/index.d.ts.map +1 -1
  84. package/dist/index.js +32 -34
  85. package/package.json +8 -9
  86. package/DS1/0-face/2025-04-23-language.ts +0 -4
  87. package/DS1/2-core/ds-article.ts +0 -454
  88. package/DS1/2-core/ds-attributes.ts +0 -155
  89. package/DS1/2-core/ds-downloadcv.ts +0 -146
  90. package/DS1/2-core/ds-header.ts +0 -82
  91. package/DS1/2-core/ds-home.ts +0 -168
  92. package/DS1/2-core/ds-link.ts +0 -121
  93. package/DS1/2-core/ds-markdown.ts +0 -252
  94. package/DS1/2-core/ds-price.ts +0 -108
  95. package/DS1/2-core/ds-squarecircle.ts +0 -155
  96. package/DS1/2-core/ds-title.ts +0 -139
  97. package/DS1/2-core/ds-viewtoggle.ts +0 -83
  98. package/DS1/3-unit/ds-doublenav.ts +0 -106
  99. package/DS1/3-unit/ds-panel.ts +0 -27
  100. package/DS1/3-unit/ds-singlenav.ts +0 -79
  101. package/DS1/utils/cdn-loader.ts +0 -208
  102. package/DS1/utils/keys.json +0 -41
  103. package/DS1/utils/pricing.ts +0 -24
  104. package/DS1/utils/scroll.ts +0 -184
  105. package/DS1/utils/settings.ts +0 -23
  106. package/DS1/utils/viewMode.ts +0 -55
  107. package/dist/0-face/2025-04-23-device.d.ts.map +0 -1
  108. package/dist/0-face/2025-04-23-language.d.ts +0 -1
  109. package/dist/0-face/2025-04-23-language.d.ts.map +0 -1
  110. package/dist/0-face/2025-04-23-language.js +0 -3
  111. package/dist/2-core/article-v1.d.ts +0 -129
  112. package/dist/2-core/article-v1.d.ts.map +0 -1
  113. package/dist/2-core/article-v1.js +0 -361
  114. package/dist/2-core/attributes-v1.d.ts +0 -47
  115. package/dist/2-core/attributes-v1.d.ts.map +0 -1
  116. package/dist/2-core/attributes-v1.js +0 -128
  117. package/dist/2-core/cycle-v1.d.ts +0 -66
  118. package/dist/2-core/cycle-v1.d.ts.map +0 -1
  119. package/dist/2-core/cycle-v1.js +0 -586
  120. package/dist/2-core/downloadcv-v1.d.ts +0 -58
  121. package/dist/2-core/downloadcv-v1.d.ts.map +0 -1
  122. package/dist/2-core/downloadcv-v1.js +0 -119
  123. package/dist/2-core/ds-article.d.ts +0 -129
  124. package/dist/2-core/ds-article.d.ts.map +0 -1
  125. package/dist/2-core/ds-article.js +0 -361
  126. package/dist/2-core/ds-attributes.d.ts +0 -47
  127. package/dist/2-core/ds-attributes.d.ts.map +0 -1
  128. package/dist/2-core/ds-attributes.js +0 -128
  129. package/dist/2-core/ds-button.figma.d.ts +0 -2
  130. package/dist/2-core/ds-button.figma.d.ts.map +0 -1
  131. package/dist/2-core/ds-button.figma.js +0 -6
  132. package/dist/2-core/ds-downloadcv.d.ts +0 -58
  133. package/dist/2-core/ds-downloadcv.d.ts.map +0 -1
  134. package/dist/2-core/ds-downloadcv.js +0 -119
  135. package/dist/2-core/ds-header.d.ts +0 -28
  136. package/dist/2-core/ds-header.d.ts.map +0 -1
  137. package/dist/2-core/ds-header.js +0 -66
  138. package/dist/2-core/ds-home.d.ts +0 -26
  139. package/dist/2-core/ds-home.d.ts.map +0 -1
  140. package/dist/2-core/ds-home.js +0 -148
  141. package/dist/2-core/ds-link.d.ts +0 -35
  142. package/dist/2-core/ds-link.d.ts.map +0 -1
  143. package/dist/2-core/ds-link.js +0 -85
  144. package/dist/2-core/ds-markdown.d.ts +0 -7
  145. package/dist/2-core/ds-markdown.d.ts.map +0 -1
  146. package/dist/2-core/ds-markdown.js +0 -240
  147. package/dist/2-core/ds-price.d.ts +0 -46
  148. package/dist/2-core/ds-price.d.ts.map +0 -1
  149. package/dist/2-core/ds-price.js +0 -72
  150. package/dist/2-core/ds-squarecircle.d.ts +0 -50
  151. package/dist/2-core/ds-squarecircle.d.ts.map +0 -1
  152. package/dist/2-core/ds-squarecircle.js +0 -133
  153. package/dist/2-core/ds-title.d.ts +0 -50
  154. package/dist/2-core/ds-title.d.ts.map +0 -1
  155. package/dist/2-core/ds-title.js +0 -103
  156. package/dist/2-core/ds-viewtoggle.d.ts +0 -27
  157. package/dist/2-core/ds-viewtoggle.d.ts.map +0 -1
  158. package/dist/2-core/ds-viewtoggle.js +0 -49
  159. package/dist/2-core/ds-year.d.ts.map +0 -1
  160. package/dist/2-core/header-v1.d.ts +0 -28
  161. package/dist/2-core/header-v1.d.ts.map +0 -1
  162. package/dist/2-core/header-v1.js +0 -66
  163. package/dist/2-core/home-v1.d.ts +0 -26
  164. package/dist/2-core/home-v1.d.ts.map +0 -1
  165. package/dist/2-core/home-v1.js +0 -148
  166. package/dist/2-core/icon-v1.d.ts +0 -28
  167. package/dist/2-core/icon-v1.d.ts.map +0 -1
  168. package/dist/2-core/icon-v1.js +0 -297
  169. package/dist/2-core/link-v1.d.ts +0 -35
  170. package/dist/2-core/link-v1.d.ts.map +0 -1
  171. package/dist/2-core/link-v1.js +0 -85
  172. package/dist/2-core/markdown-v1.d.ts +0 -7
  173. package/dist/2-core/markdown-v1.d.ts.map +0 -1
  174. package/dist/2-core/markdown-v1.js +0 -240
  175. package/dist/2-core/price-v1.d.ts +0 -46
  176. package/dist/2-core/price-v1.d.ts.map +0 -1
  177. package/dist/2-core/price-v1.js +0 -72
  178. package/dist/2-core/squarecircle-v1.d.ts +0 -50
  179. package/dist/2-core/squarecircle-v1.d.ts.map +0 -1
  180. package/dist/2-core/squarecircle-v1.js +0 -133
  181. package/dist/2-core/text-v1.d.ts +0 -48
  182. package/dist/2-core/text-v1.d.ts.map +0 -1
  183. package/dist/2-core/text-v1.js +0 -83
  184. package/dist/2-core/title-v1.d.ts +0 -50
  185. package/dist/2-core/title-v1.d.ts.map +0 -1
  186. package/dist/2-core/title-v1.js +0 -103
  187. package/dist/2-core/tooltip-v1.d.ts +0 -39
  188. package/dist/2-core/tooltip-v1.d.ts.map +0 -1
  189. package/dist/2-core/tooltip-v1.js +0 -145
  190. package/dist/2-core/viewtoggle-v1.d.ts +0 -27
  191. package/dist/2-core/viewtoggle-v1.d.ts.map +0 -1
  192. package/dist/2-core/viewtoggle-v1.js +0 -49
  193. package/dist/2-core/year-v1.d.ts +0 -16
  194. package/dist/2-core/year-v1.d.ts.map +0 -1
  195. package/dist/2-core/year-v1.js +0 -21
  196. package/dist/3-unit/ds-doublenav.d.ts.map +0 -1
  197. package/dist/3-unit/ds-panel.d.ts.map +0 -1
  198. package/dist/3-unit/ds-singlenav.d.ts.map +0 -1
  199. package/dist/utils/cdn-loader.d.ts +0 -19
  200. package/dist/utils/cdn-loader.d.ts.map +0 -1
  201. package/dist/utils/cdn-loader.js +0 -142
  202. package/dist/utils/keys.json +0 -41
  203. package/dist/utils/language.d.ts.map +0 -1
  204. package/dist/utils/pricing.d.ts +0 -8
  205. package/dist/utils/pricing.d.ts.map +0 -1
  206. package/dist/utils/pricing.js +0 -14
  207. package/dist/utils/scroll.d.ts +0 -34
  208. package/dist/utils/scroll.d.ts.map +0 -1
  209. package/dist/utils/scroll.js +0 -140
  210. package/dist/utils/settings.d.ts +0 -9
  211. package/dist/utils/settings.d.ts.map +0 -1
  212. package/dist/utils/settings.js +0 -14
  213. package/dist/utils/theme.d.ts.map +0 -1
  214. package/dist/utils/viewMode.d.ts +0 -14
  215. package/dist/utils/viewMode.d.ts.map +0 -1
  216. package/dist/utils/viewMode.js +0 -46
  217. /package/DS1/{utils → 0-face}/theme.ts +0 -0
  218. /package/DS1/{x Icon → x-icon}/1x.svg +0 -0
  219. /package/DS1/{x Icon → x-icon}/1xdots.svg +0 -0
  220. /package/DS1/{x Icon → x-icon}/1xgrid.svg +0 -0
  221. /package/DS1/{x Icon → x-icon}/1xlines.svg +0 -0
  222. /package/DS1/{x Icon → x-icon}/2x.svg +0 -0
  223. /package/DS1/{x Icon → x-icon}/2xdots.svg +0 -0
  224. /package/DS1/{x Icon → x-icon}/2xgrid.svg +0 -0
  225. /package/DS1/{x Icon → x-icon}/2xlines.svg +0 -0
  226. /package/DS1/{x Icon → x-icon}/big.svg +0 -0
  227. /package/DS1/{x Icon → x-icon}/blank.svg +0 -0
  228. /package/DS1/{x Icon → x-icon}/check.svg +0 -0
  229. /package/DS1/{x Icon → x-icon}/close.svg +0 -0
  230. /package/DS1/{x Icon → x-icon}/collapse.svg +0 -0
  231. /package/DS1/{x Icon → x-icon}/color.svg +0 -0
  232. /package/DS1/{x Icon → x-icon}/column.svg +0 -0
  233. /package/DS1/{x Icon → x-icon}/default.svg +0 -0
  234. /package/DS1/{x Icon → x-icon}/delete.svg +0 -0
  235. /package/DS1/{x Icon → x-icon}/do.svg +0 -0
  236. /package/DS1/{x Icon → x-icon}/down.svg +0 -0
  237. /package/DS1/{x Icon → x-icon}/duplicate.svg +0 -0
  238. /package/DS1/{x Icon → x-icon}/email.svg +0 -0
  239. /package/DS1/{x Icon → x-icon}/expand.svg +0 -0
  240. /package/DS1/{x Icon → x-icon}/gallery.svg +0 -0
  241. /package/DS1/{x Icon → x-icon}/group.svg +0 -0
  242. /package/DS1/{x Icon → x-icon}/head.svg +0 -0
  243. /package/DS1/{x Icon → x-icon}/icon.svg +0 -0
  244. /package/DS1/{x Icon → x-icon}/left.svg +0 -0
  245. /package/DS1/{x Icon → x-icon}/lock.svg +0 -0
  246. /package/DS1/{x Icon → x-icon}/mic.svg +0 -0
  247. /package/DS1/{x Icon → x-icon}/minimize.svg +0 -0
  248. /package/DS1/{x Icon → x-icon}/more.svg +0 -0
  249. /package/DS1/{x Icon → x-icon}/note.svg +0 -0
  250. /package/DS1/{x Icon → x-icon}/open.svg +0 -0
  251. /package/DS1/{x Icon → x-icon}/page.svg +0 -0
  252. /package/DS1/{x Icon → x-icon}/plus.svg +0 -0
  253. /package/DS1/{x Icon → x-icon}/rewind.svg +0 -0
  254. /package/DS1/{x Icon → x-icon}/right.svg +0 -0
  255. /package/DS1/{x Icon/row..svg → x-icon/row.svg} +0 -0
  256. /package/DS1/{x Icon → x-icon}/search.svg +0 -0
  257. /package/DS1/{x Icon → x-icon}/see.svg +0 -0
  258. /package/DS1/{x Icon → x-icon}/star.svg +0 -0
  259. /package/DS1/{x Icon → x-icon}/title.svg +0 -0
  260. /package/DS1/{x Icon → x-icon}/undo.svg +0 -0
  261. /package/DS1/{x Icon → x-icon}/ungroup.svg +0 -0
  262. /package/DS1/{x Icon → x-icon}/unhead.svg +0 -0
  263. /package/DS1/{x Icon → x-icon}/unicon.svg +0 -0
  264. /package/DS1/{x Icon → x-icon}/unlock.svg +0 -0
  265. /package/DS1/{x Icon → x-icon}/unmic.svg +0 -0
  266. /package/DS1/{x Icon → x-icon}/unsee.svg +0 -0
  267. /package/DS1/{x Icon → x-icon}/unstar.svg +0 -0
  268. /package/DS1/{x Icon → x-icon}/untitle.svg +0 -0
  269. /package/DS1/{x Icon → x-icon}/up.svg +0 -0
  270. /package/dist/{utils → 0-face}/theme.d.ts +0 -0
  271. /package/dist/{utils → 0-face}/theme.js +0 -0
package/DS1/index.ts CHANGED
@@ -1,50 +1,52 @@
1
- // DS one - Main entry point for all components
2
- // Export all components for easy importing
1
+ /**
2
+ * DS one - Main entry point for all components
3
+ *
4
+ * This module initializes core utilities and exports all design system components
5
+ * organized by layer: 0-face (foundation), 2-core (components), 3-unit (composites), 4-page (layouts)
6
+ */
7
+
8
+ // ============================================================================
9
+ // Initialization (side-effect imports)
10
+ // ============================================================================
3
11
 
4
12
  // Initialize device detection (will auto-detect and log on load)
5
- import "./0-face/2025-04-23-device";
13
+ import "./0-face/device";
14
+
15
+ // Initialize language utilities (will auto-load external translations if available)
16
+ import "./0-face/i18n";
17
+
18
+ // ============================================================================
19
+ // 0-face: Foundation & Utilities
20
+ // ============================================================================
21
+
22
+ export * from "./0-face/device";
23
+ export * from "./0-face/i18n";
24
+ export * from "./0-face/preferences";
25
+ export * from "./0-face/pricing";
26
+ export * from "./0-face/theme";
6
27
 
7
- // Initialize CDN loader (will auto-load external translations if available)
8
- import "./utils/cdn-loader";
28
+ // ============================================================================
29
+ // 2-core: Core Components
30
+ // ============================================================================
9
31
 
10
- // Core components
11
32
  export * from "./2-core/ds-button";
12
- export * from "./2-core/ds-text";
13
- export * from "./2-core/ds-icon";
14
- export * from "./2-core/ds-link";
15
33
  export * from "./2-core/ds-cycle";
34
+ export * from "./2-core/ds-icon";
35
+ export * from "./2-core/ds-text";
16
36
  export * from "./2-core/ds-tooltip";
17
- export * from "./2-core/ds-price";
18
- export * from "./2-core/ds-markdown";
19
- export * from "./2-core/ds-home";
20
- export * from "./2-core/ds-year";
21
- export * from "./2-core/ds-title";
22
- export * from "./2-core/ds-header";
23
- export * from "./2-core/ds-attributes";
24
- export * from "./2-core/ds-downloadcv";
25
- export * from "./2-core/ds-article";
26
- export * from "./2-core/ds-viewtoggle";
27
- export * from "./2-core/ds-squarecircle";
28
-
29
- // Unit components
37
+ export * from "./2-core/ds-date";
38
+
39
+ // ============================================================================
40
+ // 3-unit: Composite Components
41
+ // ============================================================================
42
+
30
43
  export * from "./3-unit/ds-list";
31
- export * from "./3-unit/ds-panel";
32
44
  export * from "./3-unit/ds-row";
33
- export * from "./3-unit/ds-singlenav";
34
- export * from "./3-unit/ds-doublenav";
35
45
  export * from "./3-unit/ds-table";
36
46
 
37
- // Page components
47
+ // ============================================================================
48
+ // 4-page: Layout Components
49
+ // ============================================================================
50
+
38
51
  export * from "./4-page/ds-grid";
39
52
  export * from "./4-page/ds-layout";
40
-
41
- // Utilities
42
- export * from "./utils/language";
43
- export * from "./utils/theme";
44
- export * from "./utils/viewMode";
45
- export * from "./utils/settings";
46
- export * from "./utils/pricing";
47
- export * from "./utils/scroll";
48
-
49
- // Device detection
50
- export * from "./0-face/2025-04-23-device";
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025 Jo4712
3
+ Copyright (c) 2025 0001
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,19 +1,12 @@
1
- # DS one
1
+ # DS one (0.2.5-alpha.10)
2
2
 
3
- Build modern UIs with web components!
3
+ A plug and play design system
4
4
 
5
- > A component-based design system built with TypeScript and LitElement that provides reusable UI components with built-in theming, internationalization, and accessibility features.
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
- [![npm version](https://img.shields.io/npm/v/ds-one/alpha.svg)](https://www.npmjs.com/package/ds-one)
8
- [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](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
- **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.
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.0-alpha.3`. Use `@alpha` tag to install.
23
+ **Note**: Currently published as alpha version `0.2.5-alpha.10`
24
+
25
+ ## Quick Start
30
26
 
31
- ### Basic Usage (CDN)
27
+ ### CDN Usage
32
28
 
33
29
  ```html
34
30
  <!DOCTYPE html>
35
31
  <html>
36
32
  <head>
37
- <!-- Load DS one CSS -->
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
- <!-- Load DS one components -->
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">Get Started</ds-button>
49
- <ds-text key="welcome">Welcome to DS one</ds-text>
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
- ### Online demo
50
+ ### NPM Usage
55
51
 
56
- Try DS one in your browser: **[dsone.dev](https://dsone.dev)** (documentation slugs to be decided)
52
+ ```tsx
53
+ import "ds-one/styles";
54
+ import "ds-one";
55
+ ```
57
56
 
58
- ## ✨ Features
57
+ ## Documentation
59
58
 
60
- ### Core Components
59
+ See the full documentation for DS one at: [**dsone.dev**](https://dsone.dev/)
61
60
 
62
- - **Web Components**: Built with LitElement for maximum compatibility
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**: All text via camelCase keys for full i18n
71
- - **Notion CMS integration**: Dynamic content management
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
- ## Documentation
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
- **⚠️ Alpha Release**: This is an early alpha version. The API may change as we refine the components and architecture.
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 color support
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
- - 🚧 Component naming standardization (ds-\* prefix)
107
- - 🚧 Enhanced theming documentation
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/ # Device and language detection
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
- ├── 2-core/ # Core components (buttons, text, etc.)
129
- │ ├── 3-unit/ # Composite components
130
- ├── 4-page/ # Page-level components
131
- │ ├── x-utils/ # Shared utilities (language, theme, etc.)
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
- - **[Website](https://dsone.dev)** - Official website (slugs to be decided)
201
- - **[GitHub](https://github.com/0001-labs/ds-one)** - Source code and issues
202
- - **[NPM Package](https://www.npmjs.com/package/ds-one)** - Install with `@alpha` tag
203
- - **[CDN](https://cdn.jsdelivr.net/npm/ds-one@alpha/)** - Direct browser usage
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
@@ -22,4 +22,4 @@ export declare function getDeviceInfo(): DeviceInfo;
22
22
  * Initialize device detection and log to console
23
23
  */
24
24
  export declare function initDeviceDetection(): DeviceInfo;
25
- //# sourceMappingURL=2025-04-23-device.d.ts.map
25
+ //# sourceMappingURL=device.d.ts.map
@@ -0,0 +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,CAkDhD"}
@@ -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("--scaling-factor-mobile", scalingFactor.toFixed(3));
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("--scaling-factor-mobile", "1");
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
  }
@@ -19,11 +19,9 @@ 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;
27
25
  export declare function setLanguage(language: LanguageCode): void;
28
26
  export {};
29
- //# sourceMappingURL=language.d.ts.map
27
+ //# sourceMappingURL=i18n.d.ts.map
@@ -0,0 +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;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"}