@syware/jlib 0.8.0 → 0.10.0

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 (291) hide show
  1. package/README.md +19 -3
  2. package/dist/all.js +6 -3
  3. package/dist/atoms/jl-app-icon.css.js +3 -0
  4. package/dist/atoms/jl-app-icon.js +1 -1
  5. package/dist/atoms/jl-avatar.css.js +3 -0
  6. package/dist/atoms/jl-avatar.js +1 -1
  7. package/dist/atoms/jl-badge.css.js +3 -0
  8. package/dist/atoms/jl-badge.js +1 -1
  9. package/dist/atoms/jl-button.css.js +3 -0
  10. package/dist/atoms/jl-button.js +1 -1
  11. package/dist/atoms/jl-checkbox.css.js +3 -0
  12. package/dist/atoms/jl-checkbox.js +1 -1
  13. package/dist/atoms/jl-chip.css.js +3 -0
  14. package/dist/atoms/jl-chip.d.ts +1 -0
  15. package/dist/atoms/jl-chip.js +5 -3
  16. package/dist/atoms/jl-divider.css.js +3 -0
  17. package/dist/atoms/jl-divider.js +1 -1
  18. package/dist/atoms/jl-icon.css.js +3 -0
  19. package/dist/atoms/jl-icon.js +1 -1
  20. package/dist/atoms/jl-input.css.js +3 -0
  21. package/dist/atoms/jl-input.d.ts +2 -0
  22. package/dist/atoms/jl-input.js +10 -4
  23. package/dist/atoms/jl-kbd.css.js +3 -0
  24. package/dist/atoms/jl-kbd.js +1 -1
  25. package/dist/atoms/jl-link.css.js +3 -0
  26. package/dist/atoms/jl-link.js +1 -1
  27. package/dist/atoms/jl-loading-bar.css.js +3 -0
  28. package/dist/atoms/jl-loading-bar.d.ts +38 -0
  29. package/dist/atoms/jl-loading-bar.js +121 -0
  30. package/dist/atoms/jl-progress-ring.css.js +3 -0
  31. package/dist/atoms/jl-progress-ring.js +1 -1
  32. package/dist/atoms/jl-progress.css.js +3 -0
  33. package/dist/atoms/jl-progress.js +1 -1
  34. package/dist/atoms/jl-rating.css.js +3 -0
  35. package/dist/atoms/jl-rating.d.ts +2 -0
  36. package/dist/atoms/jl-rating.js +14 -6
  37. package/dist/atoms/jl-select.css.js +3 -0
  38. package/dist/atoms/jl-select.js +1 -1
  39. package/dist/atoms/jl-skeleton.css.js +3 -0
  40. package/dist/atoms/jl-skeleton.js +1 -1
  41. package/dist/atoms/jl-slider.css.js +3 -0
  42. package/dist/atoms/jl-slider.js +1 -1
  43. package/dist/atoms/jl-spinner.css.js +3 -0
  44. package/dist/atoms/jl-spinner.d.ts +2 -0
  45. package/dist/atoms/jl-spinner.js +7 -3
  46. package/dist/atoms/jl-switch.css.js +3 -0
  47. package/dist/atoms/jl-switch.js +1 -1
  48. package/dist/atoms/jl-textarea.css.js +3 -0
  49. package/dist/atoms/jl-textarea.js +1 -1
  50. package/dist/base/jl-element.d.ts +8 -0
  51. package/dist/base/jl-element.js +5 -0
  52. package/dist/index.d.ts +5 -1
  53. package/dist/index.js +5 -2
  54. package/dist/lib/flow.js +23 -6
  55. package/dist/lib/texts-de.d.ts +111 -0
  56. package/dist/lib/texts-de.js +114 -0
  57. package/dist/lib/texts-fr.d.ts +111 -0
  58. package/dist/lib/texts-fr.js +114 -0
  59. package/dist/lib/texts.d.ts +180 -91
  60. package/dist/lib/texts.js +177 -9
  61. package/dist/molecules/jl-accordion-item.css.js +3 -0
  62. package/dist/molecules/jl-accordion-item.js +1 -1
  63. package/dist/molecules/jl-accordion.css.js +3 -0
  64. package/dist/molecules/jl-accordion.js +1 -1
  65. package/dist/molecules/jl-account-button.css.js +3 -0
  66. package/dist/molecules/jl-account-button.js +1 -1
  67. package/dist/molecules/jl-alert.css.js +3 -0
  68. package/dist/molecules/jl-alert.d.ts +1 -0
  69. package/dist/molecules/jl-alert.js +5 -3
  70. package/dist/molecules/jl-avatar-group.css.js +3 -0
  71. package/dist/molecules/jl-avatar-group.js +1 -1
  72. package/dist/molecules/jl-breadcrumb.css.js +3 -0
  73. package/dist/molecules/jl-breadcrumb.d.ts +2 -0
  74. package/dist/molecules/jl-breadcrumb.js +13 -7
  75. package/dist/molecules/jl-calendar.css.js +3 -0
  76. package/dist/molecules/jl-calendar.d.ts +1 -0
  77. package/dist/molecules/jl-calendar.js +8 -5
  78. package/dist/molecules/jl-card.css.js +3 -0
  79. package/dist/molecules/jl-card.js +1 -1
  80. package/dist/molecules/jl-chip-group.css.js +3 -0
  81. package/dist/molecules/jl-chip-group.d.ts +1 -0
  82. package/dist/molecules/jl-chip-group.js +5 -2
  83. package/dist/molecules/jl-code-block.css.js +3 -0
  84. package/dist/molecules/jl-code-block.js +2 -2
  85. package/dist/molecules/jl-combobox.css.js +3 -0
  86. package/dist/molecules/jl-combobox.d.ts +3 -1
  87. package/dist/molecules/jl-combobox.js +13 -8
  88. package/dist/molecules/jl-copy-button.css.js +3 -0
  89. package/dist/molecules/jl-copy-button.d.ts +1 -0
  90. package/dist/molecules/jl-copy-button.js +8 -6
  91. package/dist/molecules/jl-date-picker.css.js +3 -0
  92. package/dist/molecules/jl-date-picker.d.ts +1 -0
  93. package/dist/molecules/jl-date-picker.js +11 -8
  94. package/dist/molecules/jl-empty.css.js +3 -0
  95. package/dist/molecules/jl-empty.js +1 -1
  96. package/dist/molecules/jl-facts.css.js +3 -0
  97. package/dist/molecules/jl-facts.js +1 -1
  98. package/dist/molecules/jl-field.css.js +3 -0
  99. package/dist/molecules/jl-field.js +1 -1
  100. package/dist/molecules/jl-file-drop.css.js +3 -0
  101. package/dist/molecules/jl-file-drop.d.ts +1 -0
  102. package/dist/molecules/jl-file-drop.js +16 -7
  103. package/dist/molecules/jl-input-list.css.js +3 -0
  104. package/dist/molecules/jl-input-list.d.ts +3 -2
  105. package/dist/molecules/jl-input-list.js +11 -8
  106. package/dist/molecules/jl-list-item.css.js +3 -0
  107. package/dist/molecules/jl-list-item.js +1 -1
  108. package/dist/molecules/jl-load-more.css.js +3 -0
  109. package/dist/molecules/jl-load-more.d.ts +4 -2
  110. package/dist/molecules/jl-load-more.js +16 -9
  111. package/dist/molecules/jl-load-state.css.js +3 -0
  112. package/dist/molecules/jl-load-state.d.ts +13 -0
  113. package/dist/molecules/jl-load-state.js +63 -12
  114. package/dist/molecules/jl-menu.css.js +3 -0
  115. package/dist/molecules/jl-menu.js +1 -1
  116. package/dist/molecules/jl-number-input.css.js +3 -0
  117. package/dist/molecules/jl-number-input.d.ts +1 -0
  118. package/dist/molecules/jl-number-input.js +7 -4
  119. package/dist/molecules/jl-pagination.css.js +3 -0
  120. package/dist/molecules/jl-pagination.d.ts +2 -0
  121. package/dist/molecules/jl-pagination.js +18 -10
  122. package/dist/molecules/jl-popover.css.js +3 -0
  123. package/dist/molecules/jl-popover.js +1 -1
  124. package/dist/molecules/jl-radio-group.css.js +3 -0
  125. package/dist/molecules/jl-radio-group.d.ts +1 -0
  126. package/dist/molecules/jl-radio-group.js +5 -2
  127. package/dist/molecules/jl-search-button.css.js +3 -0
  128. package/dist/molecules/jl-search-button.d.ts +2 -1
  129. package/dist/molecules/jl-search-button.js +7 -5
  130. package/dist/molecules/jl-search.css.js +3 -0
  131. package/dist/molecules/jl-search.d.ts +2 -0
  132. package/dist/molecules/jl-search.js +10 -4
  133. package/dist/molecules/jl-segmented.css.js +3 -0
  134. package/dist/molecules/jl-segmented.js +1 -1
  135. package/dist/molecules/jl-stat.css.js +3 -0
  136. package/dist/molecules/jl-stat.js +1 -1
  137. package/dist/molecules/jl-steps.css.js +3 -0
  138. package/dist/molecules/jl-steps.d.ts +2 -0
  139. package/dist/molecules/jl-steps.js +10 -5
  140. package/dist/molecules/jl-tab-panel.css.js +3 -0
  141. package/dist/molecules/jl-tab-panel.js +1 -1
  142. package/dist/molecules/jl-tabs.css.js +3 -0
  143. package/dist/molecules/jl-tabs.js +1 -1
  144. package/dist/molecules/jl-tag-input.css.js +3 -0
  145. package/dist/molecules/jl-tag-input.d.ts +1 -0
  146. package/dist/molecules/jl-tag-input.js +9 -5
  147. package/dist/molecules/jl-timeline.css.js +3 -0
  148. package/dist/molecules/jl-timeline.js +1 -1
  149. package/dist/molecules/jl-toast.css.js +3 -0
  150. package/dist/molecules/jl-toast.d.ts +1 -0
  151. package/dist/molecules/jl-toast.js +5 -3
  152. package/dist/molecules/jl-tooltip.css.js +3 -0
  153. package/dist/molecules/jl-tooltip.js +1 -1
  154. package/dist/organisms/jl-command-palette.css.js +3 -0
  155. package/dist/organisms/jl-command-palette.d.ts +3 -1
  156. package/dist/organisms/jl-command-palette.js +23 -15
  157. package/dist/organisms/jl-confirm.css.js +3 -0
  158. package/dist/organisms/jl-confirm.d.ts +3 -0
  159. package/dist/organisms/jl-confirm.js +13 -12
  160. package/dist/organisms/jl-dialog.css.js +3 -0
  161. package/dist/organisms/jl-dialog.d.ts +1 -0
  162. package/dist/organisms/jl-dialog.js +5 -3
  163. package/dist/organisms/jl-drawer.css.js +3 -0
  164. package/dist/organisms/jl-drawer.d.ts +1 -0
  165. package/dist/organisms/jl-drawer.js +5 -3
  166. package/dist/organisms/jl-flow.css.js +3 -0
  167. package/dist/organisms/jl-flow.d.ts +2 -0
  168. package/dist/organisms/jl-flow.js +26 -17
  169. package/dist/organisms/jl-navbar.css.js +3 -0
  170. package/dist/organisms/jl-navbar.d.ts +3 -0
  171. package/dist/organisms/jl-navbar.js +17 -8
  172. package/dist/organisms/jl-page-header.css.js +3 -0
  173. package/dist/organisms/jl-page-header.js +1 -1
  174. package/dist/organisms/jl-page-outlet.css.js +3 -0
  175. package/dist/organisms/jl-page-outlet.d.ts +34 -0
  176. package/dist/organisms/jl-page-outlet.js +107 -0
  177. package/dist/organisms/jl-side-nav.css.js +3 -0
  178. package/dist/organisms/jl-side-nav.d.ts +4 -2
  179. package/dist/organisms/jl-side-nav.js +18 -12
  180. package/dist/organisms/jl-tab-bar.css.js +3 -0
  181. package/dist/organisms/jl-tab-bar.d.ts +1 -0
  182. package/dist/organisms/jl-tab-bar.js +6 -3
  183. package/dist/organisms/jl-table.css.js +3 -0
  184. package/dist/organisms/jl-table.d.ts +2 -1
  185. package/dist/organisms/jl-table.js +10 -7
  186. package/dist/organisms/jl-toaster.css.js +3 -0
  187. package/dist/organisms/jl-toaster.d.ts +2 -1
  188. package/dist/organisms/jl-toaster.js +13 -10
  189. package/dist/organisms/jl-tree.css.js +3 -0
  190. package/dist/organisms/jl-tree.d.ts +6 -4
  191. package/dist/organisms/jl-tree.js +22 -16
  192. package/dist/styles/base.css.js +3 -0
  193. package/dist/styles/control.css.js +3 -0
  194. package/dist/styles/floating.css.js +3 -0
  195. package/dist/styles/shared.js +4 -4
  196. package/dist/styles/tokens.css.js +3 -0
  197. package/dist/templates/jl-app-shell.css.js +3 -0
  198. package/dist/templates/jl-app-shell.d.ts +1 -0
  199. package/dist/templates/jl-app-shell.js +5 -3
  200. package/dist/templates/jl-auth-layout.css.js +3 -0
  201. package/dist/templates/jl-auth-layout.d.ts +4 -3
  202. package/dist/templates/jl-auth-layout.js +14 -12
  203. package/dist/templates/jl-page.css.js +3 -0
  204. package/dist/templates/jl-page.d.ts +1 -0
  205. package/dist/templates/jl-page.js +5 -2
  206. package/dist/templates/jl-split-view.css.js +3 -0
  207. package/dist/templates/jl-split-view.d.ts +1 -0
  208. package/dist/templates/jl-split-view.js +6 -5
  209. package/dist/templates/jl-stack.css.js +3 -0
  210. package/dist/templates/jl-stack.d.ts +17 -0
  211. package/dist/templates/jl-stack.js +36 -0
  212. package/dist/types/jl-stack.types.d.ts +2 -0
  213. package/dist/types/texts.types.d.ts +29 -4
  214. package/package.json +5 -4
  215. package/dist/atoms/jl-app-icon.css_raw.js +0 -3
  216. package/dist/atoms/jl-avatar.css_raw.js +0 -3
  217. package/dist/atoms/jl-badge.css_raw.js +0 -3
  218. package/dist/atoms/jl-button.css_raw.js +0 -3
  219. package/dist/atoms/jl-checkbox.css_raw.js +0 -3
  220. package/dist/atoms/jl-chip.css_raw.js +0 -3
  221. package/dist/atoms/jl-divider.css_raw.js +0 -3
  222. package/dist/atoms/jl-icon.css_raw.js +0 -3
  223. package/dist/atoms/jl-input.css_raw.js +0 -3
  224. package/dist/atoms/jl-kbd.css_raw.js +0 -3
  225. package/dist/atoms/jl-link.css_raw.js +0 -3
  226. package/dist/atoms/jl-progress-ring.css_raw.js +0 -3
  227. package/dist/atoms/jl-progress.css_raw.js +0 -3
  228. package/dist/atoms/jl-rating.css_raw.js +0 -3
  229. package/dist/atoms/jl-select.css_raw.js +0 -3
  230. package/dist/atoms/jl-skeleton.css_raw.js +0 -3
  231. package/dist/atoms/jl-slider.css_raw.js +0 -3
  232. package/dist/atoms/jl-spinner.css_raw.js +0 -3
  233. package/dist/atoms/jl-switch.css_raw.js +0 -3
  234. package/dist/atoms/jl-textarea.css_raw.js +0 -3
  235. package/dist/molecules/jl-accordion-item.css_raw.js +0 -3
  236. package/dist/molecules/jl-accordion.css_raw.js +0 -3
  237. package/dist/molecules/jl-account-button.css_raw.js +0 -3
  238. package/dist/molecules/jl-alert.css_raw.js +0 -3
  239. package/dist/molecules/jl-avatar-group.css_raw.js +0 -3
  240. package/dist/molecules/jl-breadcrumb.css_raw.js +0 -3
  241. package/dist/molecules/jl-calendar.css_raw.js +0 -3
  242. package/dist/molecules/jl-card.css_raw.js +0 -3
  243. package/dist/molecules/jl-chip-group.css_raw.js +0 -3
  244. package/dist/molecules/jl-code-block.css_raw.js +0 -3
  245. package/dist/molecules/jl-combobox.css_raw.js +0 -3
  246. package/dist/molecules/jl-copy-button.css_raw.js +0 -3
  247. package/dist/molecules/jl-date-picker.css_raw.js +0 -3
  248. package/dist/molecules/jl-empty.css_raw.js +0 -3
  249. package/dist/molecules/jl-facts.css_raw.js +0 -3
  250. package/dist/molecules/jl-field.css_raw.js +0 -3
  251. package/dist/molecules/jl-file-drop.css_raw.js +0 -3
  252. package/dist/molecules/jl-input-list.css_raw.js +0 -3
  253. package/dist/molecules/jl-list-item.css_raw.js +0 -3
  254. package/dist/molecules/jl-load-more.css_raw.js +0 -3
  255. package/dist/molecules/jl-load-state.css_raw.js +0 -3
  256. package/dist/molecules/jl-menu.css_raw.js +0 -3
  257. package/dist/molecules/jl-number-input.css_raw.js +0 -3
  258. package/dist/molecules/jl-pagination.css_raw.js +0 -3
  259. package/dist/molecules/jl-popover.css_raw.js +0 -3
  260. package/dist/molecules/jl-radio-group.css_raw.js +0 -3
  261. package/dist/molecules/jl-search-button.css_raw.js +0 -3
  262. package/dist/molecules/jl-search.css_raw.js +0 -3
  263. package/dist/molecules/jl-segmented.css_raw.js +0 -3
  264. package/dist/molecules/jl-stat.css_raw.js +0 -3
  265. package/dist/molecules/jl-steps.css_raw.js +0 -3
  266. package/dist/molecules/jl-tab-panel.css_raw.js +0 -3
  267. package/dist/molecules/jl-tabs.css_raw.js +0 -3
  268. package/dist/molecules/jl-tag-input.css_raw.js +0 -3
  269. package/dist/molecules/jl-timeline.css_raw.js +0 -3
  270. package/dist/molecules/jl-toast.css_raw.js +0 -3
  271. package/dist/molecules/jl-tooltip.css_raw.js +0 -3
  272. package/dist/organisms/jl-command-palette.css_raw.js +0 -3
  273. package/dist/organisms/jl-confirm.css_raw.js +0 -3
  274. package/dist/organisms/jl-dialog.css_raw.js +0 -3
  275. package/dist/organisms/jl-drawer.css_raw.js +0 -3
  276. package/dist/organisms/jl-flow.css_raw.js +0 -3
  277. package/dist/organisms/jl-navbar.css_raw.js +0 -3
  278. package/dist/organisms/jl-page-header.css_raw.js +0 -3
  279. package/dist/organisms/jl-side-nav.css_raw.js +0 -3
  280. package/dist/organisms/jl-tab-bar.css_raw.js +0 -3
  281. package/dist/organisms/jl-table.css_raw.js +0 -3
  282. package/dist/organisms/jl-toaster.css_raw.js +0 -3
  283. package/dist/organisms/jl-tree.css_raw.js +0 -3
  284. package/dist/styles/base.css_raw.js +0 -3
  285. package/dist/styles/control.css_raw.js +0 -3
  286. package/dist/styles/floating.css_raw.js +0 -3
  287. package/dist/styles/tokens.css_raw.js +0 -3
  288. package/dist/templates/jl-app-shell.css_raw.js +0 -3
  289. package/dist/templates/jl-auth-layout.css_raw.js +0 -3
  290. package/dist/templates/jl-page.css_raw.js +0 -3
  291. package/dist/templates/jl-split-view.css_raw.js +0 -3
package/README.md CHANGED
@@ -81,6 +81,21 @@ part of the page.
81
81
  }
82
82
  ```
83
83
 
84
+ ## Vibe coding
85
+
86
+ The repository is also a Claude Code plugin marketplace, with two plugins: `jlib` teaches Claude the components,
87
+ where their API is and the way an app is written on them; `syware-ux` adds how SyWare's apps behave, from the UX
88
+ patterns. In Claude Code:
89
+
90
+ ```
91
+ /plugin marketplace add bioleyl/jlib
92
+ /plugin install jlib@jlib
93
+ /plugin install syware-ux@jlib
94
+ ```
95
+
96
+ How an app's repository gives them to everyone working on it, and how to ask Claude well: the site's
97
+ [Vibe coding](https://bioleyl.github.io/jlib/vibe-coding) page. The plugins are in [plugins/](plugins).
98
+
84
99
  ## Development
85
100
 
86
101
  ```bash
@@ -92,8 +107,8 @@ npm run build # the library (dist/), the size report, the site (site/dist/)
92
107
  npm run size # what each component adds to a bundle
93
108
  ```
94
109
 
95
- `src/index.ts` and `src/all.ts` are generated from the component folders: run `npm run generate` after adding a
96
- component. Conventions for contributors are in [CLAUDE.md](CLAUDE.md).
110
+ `src/index.ts` and `src/all.ts` are generated from the component folders, and the plugins' lists of components and
111
+ patterns from their documentation pages: run `npm run generate` after adding a component or a pattern. Conventions for contributors are in [CLAUDE.md](CLAUDE.md).
97
112
 
98
113
  ## Releasing
99
114
 
@@ -105,7 +120,8 @@ npm version patch
105
120
  git push --follow-tags
106
121
  ```
107
122
 
108
- The tag stages the version on npm and creates the GitHub release; a maintainer then approves it with
123
+ Then a maintainer starts **Publish to npm** in the Actions tab for the tag (`gh workflow run publish.yml -f
124
+ tag=vX.Y.Z`): it stages the version on npm and creates the GitHub release, and they approve it with
109
125
  `npm stage approve`. Every step, pre-releases and what to do when something fails: [RELEASING.md](RELEASING.md).
110
126
  What changed in each version: [CHANGELOG.md](CHANGELOG.md).
111
127
 
package/dist/all.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { DEFAULT_TEXTS, JL_LANGUAGES, jlText, jlTexts } from "./lib/texts.js";
1
2
  import { BASE_STYLES, CONTROL_STYLES, FLOATING_STYLES, TOKEN_STYLES } from "./styles/shared.js";
2
3
  import { adoptTokens } from "./lib/tokens.js";
3
4
  import { JlElement } from "./base/jl-element.js";
@@ -10,7 +11,6 @@ import { hasIcon, iconElement, iconNames, registerIcons } from "./lib/icons.js";
10
11
  import { CONTROL_SIZES, TONES, TONE_ICONS, TONE_ICON_FILLED } from "./lib/options.js";
11
12
  import { cellOf } from "./lib/table.js";
12
13
  import { formatDuration, formatRelativeTime } from "./lib/time.js";
13
- import { DEFAULT_TEXTS, jlText, setTexts } from "./lib/texts.js";
14
14
  import { JlIcon } from "./atoms/jl-icon.js";
15
15
  import { JlAppIcon, setFavicon } from "./atoms/jl-app-icon.js";
16
16
  import { AVATAR_SHAPES, AVATAR_SIZES, AVATAR_STATUSES, JlAvatar } from "./atoms/jl-avatar.js";
@@ -23,6 +23,7 @@ import { DIVIDER_ALIGNS, JlDivider } from "./atoms/jl-divider.js";
23
23
  import { INPUT_TYPES, JlInput } from "./atoms/jl-input.js";
24
24
  import { JlKbd } from "./atoms/jl-kbd.js";
25
25
  import { JlLink, LINK_VARIANTS } from "./atoms/jl-link.js";
26
+ import { JlLoadingBar } from "./atoms/jl-loading-bar.js";
26
27
  import { JlProgress, PROGRESS_SIZES, PROGRESS_TONES } from "./atoms/jl-progress.js";
27
28
  import { JlProgressRing } from "./atoms/jl-progress-ring.js";
28
29
  import { JlRating } from "./atoms/jl-rating.js";
@@ -75,6 +76,7 @@ import { DRAWER_PLACEMENTS, DRAWER_SIZES, JlDrawer } from "./organisms/jl-drawer
75
76
  import { JlFlow } from "./organisms/jl-flow.js";
76
77
  import { JlNavbar } from "./organisms/jl-navbar.js";
77
78
  import { JlPageHeader } from "./organisms/jl-page-header.js";
79
+ import { JlPageOutlet } from "./organisms/jl-page-outlet.js";
78
80
  import { JlSideNav } from "./organisms/jl-side-nav.js";
79
81
  import { JlTabBar } from "./organisms/jl-tab-bar.js";
80
82
  import { JlTable, TABLE_EXPANSIONS, TABLE_SORT_DIRECTIONS } from "./organisms/jl-table.js";
@@ -84,7 +86,8 @@ import { JlAppShell } from "./templates/jl-app-shell.js";
84
86
  import { JlAuthLayout } from "./templates/jl-auth-layout.js";
85
87
  import { JlPage, PAGE_WIDTHS } from "./templates/jl-page.js";
86
88
  import { JlSplitView, SPLIT_ORIENTATIONS, SPLIT_PANES } from "./templates/jl-split-view.js";
89
+ import { JlStack, STACK_GAPS } from "./templates/jl-stack.js";
87
90
  // src/all.ts
88
91
  registerIcons(COMMON_ICONS);
89
- define(JlAccordion, JlAccordionItem, JlAccountButton, JlAlert, JlAppIcon, JlAppShell, JlAuthLayout, JlAvatar, JlAvatarGroup, JlBadge, JlBreadcrumb, JlButton, JlCalendar, JlCard, JlCheckbox, JlChip, JlChipGroup, JlCodeBlock, JlCombobox, JlCommandPalette, JlConfirm, JlCopyButton, JlDatePicker, JlDialog, JlDivider, JlDrawer, JlEmpty, JlFacts, JlField, JlFileDrop, JlFlow, JlIcon, JlInput, JlInputList, JlKbd, JlLink, JlListItem, JlLoadMore, JlLoadState, JlMenu, JlNavbar, JlNumberInput, JlPage, JlPageHeader, JlPagination, JlPopover, JlProgress, JlProgressRing, JlRadioGroup, JlRating, JlSearch, JlSearchButton, JlSegmented, JlSelect, JlSideNav, JlSkeleton, JlSlider, JlSpinner, JlSplitView, JlStat, JlSteps, JlSwitch, JlTabBar, JlTable, JlTabPanel, JlTabs, JlTagInput, JlTextarea, JlTimeline, JlToast, JlToaster, JlTooltip, JlTree);
90
- export { ACCORDION_VARIANTS, AVATAR_SHAPES, AVATAR_SIZES, AVATAR_STATUSES, BASE_STYLES, BUTTON_TYPES, BUTTON_VARIANTS, CARD_PADDINGS, CHIP_SIZES, CODE_LANGUAGES, COMMON_ICONS, CONFIRM_TONES, CONTROL_SIZES, CONTROL_STYLES, DEFAULT_TEXTS, DIALOG_SIZES, DIVIDER_ALIGNS, DRAWER_PLACEMENTS, DRAWER_SIZES, EMPTY_SIZES, FACTS_ORIENTATIONS, FIELD_ORIENTATIONS, FLOATING_STYLES, INPUT_TYPES, JlAccordion, JlAccordionItem, JlAccountButton, JlAlert, JlAppIcon, JlAppShell, JlAuthLayout, JlAvatar, JlAvatarGroup, JlBadge, JlBreadcrumb, JlButton, JlCalendar, JlCard, JlCheckbox, JlChip, JlChipGroup, JlCodeBlock, JlCombobox, JlCommandPalette, JlConfirm, JlCopyButton, JlDatePicker, JlDialog, JlDivider, JlDrawer, JlElement, JlEmpty, JlFacts, JlField, JlFileDrop, JlFlow, JlFormControl, JlIcon, JlInput, JlInputList, JlKbd, JlLink, JlListItem, JlLoadMore, JlLoadState, JlMenu, JlNavbar, JlNumberInput, JlPage, JlPageHeader, JlPagination, JlPopover, JlProgress, JlProgressRing, JlRadioGroup, JlRating, JlSearch, JlSearchButton, JlSegmented, JlSelect, JlSideNav, JlSkeleton, JlSlider, JlSpinner, JlSplitView, JlStat, JlSteps, JlSwitch, JlTabBar, JlTabPanel, JlTable, JlTabs, JlTagInput, JlTextarea, JlTimeline, JlToast, JlToaster, JlTooltip, JlTree, LINK_VARIANTS, LOAD_SKELETONS, LOAD_STATES, PAGE_WIDTHS, PLACEMENTS, PROGRESS_SIZES, PROGRESS_TONES, RADIO_GROUP_ORIENTATIONS, RADIO_GROUP_VARIANTS, SKELETON_SHAPES, SPLIT_ORIENTATIONS, SPLIT_PANES, STAT_TRENDS, STEPS_ORIENTATIONS, SWITCH_SIZES, TABLE_EXPANSIONS, TABLE_SORT_DIRECTIONS, TAB_VARIANTS, TOASTER_PLACEMENTS, TOAST_TONES, TOKEN_STYLES, TONES, TONE_ICONS, TONE_ICON_FILLED, adoptTokens, cellOf, clampedNumber, computePosition, confirmDialog, define, download, downloadTexts, followAnchor, formatDuration, formatRelativeTime, guardLeave, hasIcon, iconElement, iconNames, jlText, jsonOf, oneOf, placeFloating, registerIcons, setFavicon, setTexts, toast };
92
+ define(JlAccordion, JlAccordionItem, JlAccountButton, JlAlert, JlAppIcon, JlAppShell, JlAuthLayout, JlAvatar, JlAvatarGroup, JlBadge, JlBreadcrumb, JlButton, JlCalendar, JlCard, JlCheckbox, JlChip, JlChipGroup, JlCodeBlock, JlCombobox, JlCommandPalette, JlConfirm, JlCopyButton, JlDatePicker, JlDialog, JlDivider, JlDrawer, JlEmpty, JlFacts, JlField, JlFileDrop, JlFlow, JlIcon, JlInput, JlInputList, JlKbd, JlLink, JlListItem, JlLoadingBar, JlLoadMore, JlLoadState, JlMenu, JlNavbar, JlNumberInput, JlPage, JlPageHeader, JlPageOutlet, JlPagination, JlPopover, JlProgress, JlProgressRing, JlRadioGroup, JlRating, JlSearch, JlSearchButton, JlSegmented, JlSelect, JlSideNav, JlSkeleton, JlSlider, JlSpinner, JlSplitView, JlStack, JlStat, JlSteps, JlSwitch, JlTabBar, JlTable, JlTabPanel, JlTabs, JlTagInput, JlTextarea, JlTimeline, JlToast, JlToaster, JlTooltip, JlTree);
93
+ export { ACCORDION_VARIANTS, AVATAR_SHAPES, AVATAR_SIZES, AVATAR_STATUSES, BASE_STYLES, BUTTON_TYPES, BUTTON_VARIANTS, CARD_PADDINGS, CHIP_SIZES, CODE_LANGUAGES, COMMON_ICONS, CONFIRM_TONES, CONTROL_SIZES, CONTROL_STYLES, DEFAULT_TEXTS, DIALOG_SIZES, DIVIDER_ALIGNS, DRAWER_PLACEMENTS, DRAWER_SIZES, EMPTY_SIZES, FACTS_ORIENTATIONS, FIELD_ORIENTATIONS, FLOATING_STYLES, INPUT_TYPES, JL_LANGUAGES, JlAccordion, JlAccordionItem, JlAccountButton, JlAlert, JlAppIcon, JlAppShell, JlAuthLayout, JlAvatar, JlAvatarGroup, JlBadge, JlBreadcrumb, JlButton, JlCalendar, JlCard, JlCheckbox, JlChip, JlChipGroup, JlCodeBlock, JlCombobox, JlCommandPalette, JlConfirm, JlCopyButton, JlDatePicker, JlDialog, JlDivider, JlDrawer, JlElement, JlEmpty, JlFacts, JlField, JlFileDrop, JlFlow, JlFormControl, JlIcon, JlInput, JlInputList, JlKbd, JlLink, JlListItem, JlLoadMore, JlLoadState, JlLoadingBar, JlMenu, JlNavbar, JlNumberInput, JlPage, JlPageHeader, JlPageOutlet, JlPagination, JlPopover, JlProgress, JlProgressRing, JlRadioGroup, JlRating, JlSearch, JlSearchButton, JlSegmented, JlSelect, JlSideNav, JlSkeleton, JlSlider, JlSpinner, JlSplitView, JlStack, JlStat, JlSteps, JlSwitch, JlTabBar, JlTabPanel, JlTable, JlTabs, JlTagInput, JlTextarea, JlTimeline, JlToast, JlToaster, JlTooltip, JlTree, LINK_VARIANTS, LOAD_SKELETONS, LOAD_STATES, PAGE_WIDTHS, PLACEMENTS, PROGRESS_SIZES, PROGRESS_TONES, RADIO_GROUP_ORIENTATIONS, RADIO_GROUP_VARIANTS, SKELETON_SHAPES, SPLIT_ORIENTATIONS, SPLIT_PANES, STACK_GAPS, STAT_TRENDS, STEPS_ORIENTATIONS, SWITCH_SIZES, TABLE_EXPANSIONS, TABLE_SORT_DIRECTIONS, TAB_VARIANTS, TOASTER_PLACEMENTS, TOAST_TONES, TOKEN_STYLES, TONES, TONE_ICONS, TONE_ICON_FILLED, adoptTokens, cellOf, clampedNumber, computePosition, confirmDialog, define, download, downloadTexts, followAnchor, formatDuration, formatRelativeTime, guardLeave, hasIcon, iconElement, iconNames, jlText, jlTexts, jsonOf, oneOf, placeFloating, registerIcons, setFavicon, toast };
@@ -0,0 +1,3 @@
1
+ // src/atoms/jl-app-icon.css?inline
2
+ var jl_app_icon_default = ":host{vertical-align:middle;flex:none;display:inline-flex}.tile{width:var(--size,28px);height:var(--size,28px);border-radius:var(--corner,7px);background:var(--jl-brand);color:var(--jl-on-brand);justify-content:center;align-items:center;display:inline-flex}";
3
+ export { jl_app_icon_default as default };
@@ -4,7 +4,7 @@ import { JlElement } from "../base/jl-element.js";
4
4
  import { clampedNumber } from "../lib/attributes.js";
5
5
  import { iconNode } from "../lib/icons.js";
6
6
  import { CORNER_SHARE, GLYPH_SHARE, appIconSvg } from "../lib/app-icon.js";
7
- import jl_app_icon_default from "./jl-app-icon.css_raw.js";
7
+ import jl_app_icon_default from "./jl-app-icon.css.js";
8
8
  import { JlIcon } from "./jl-icon.js";
9
9
  import { css } from "@jadis/core";
10
10
  import { jsx } from "@jadis/core/jsx-runtime";
@@ -0,0 +1,3 @@
1
+ // src/atoms/jl-avatar.css?inline
2
+ var jl_avatar_default = ":host{vertical-align:middle;--size:32px;--ring:0px;--ring-color:var(--jl-surface);--fg:var(--jl-text-2);--bg:var(--jl-surface-3);flex:none;display:inline-flex}:host([size=sm]){--size:24px}:host([size=lg]){--size:40px}:host([size=xl]){--size:56px}:host([tone=accent]){--fg:var(--jl-accent);--bg:var(--jl-accent-soft)}:host([tone=ok]){--fg:var(--jl-ok);--bg:var(--jl-ok-soft)}:host([tone=warn]){--fg:var(--jl-warn);--bg:var(--jl-warn-soft)}:host([tone=danger]){--fg:var(--jl-danger);--bg:var(--jl-danger-soft)}.avatar{width:var(--size);height:var(--size);display:inline-flex;position:relative}.face{background:var(--bg);width:100%;height:100%;color:var(--fg);font-size:calc(var(--size) * .38);letter-spacing:.01em;white-space:nowrap;box-shadow:0 0 0 var(--ring) var(--ring-color);-webkit-user-select:none;user-select:none;border-radius:50%;justify-content:center;align-items:center;font-weight:700;line-height:1;display:inline-flex;overflow:hidden}:host([shape=square]) .face{border-radius:calc(var(--size) * .25)}:host([has-image]) .face{background:var(--jl-surface-3)}img{object-fit:cover;width:100%;height:100%}.status{width:max(7px, calc(var(--size) * .26));height:max(7px, calc(var(--size) * .26));background:var(--jl-faint);box-shadow:0 0 0 2px var(--ring-color);border-radius:50%;position:absolute;bottom:0;right:0}:host([shape=square]) .status{bottom:-2px;right:-2px}:host([status=online]) .status{background:var(--jl-ok)}:host([status=busy]) .status{background:var(--jl-danger)}:host([status=away]) .status{background:var(--jl-warn)}";
3
+ export { jl_avatar_default as default };
@@ -6,7 +6,7 @@ import { JlIcon } from "./jl-icon.js";
6
6
  import { initialsOf, pickStable } from "../lib/avatar.js";
7
7
  import { setOrRemove } from "../lib/dom.js";
8
8
  import { hasSlotted } from "../lib/slots.js";
9
- import jl_avatar_default from "./jl-avatar.css_raw.js";
9
+ import jl_avatar_default from "./jl-avatar.css.js";
10
10
  import { css } from "@jadis/core";
11
11
  import { User } from "lucide";
12
12
  import { jsx, jsxs } from "@jadis/core/jsx-runtime";
@@ -0,0 +1,3 @@
1
+ // src/atoms/jl-badge.css?inline
2
+ var jl_badge_default = ":host{vertical-align:middle;--fg:var(--jl-text-2);--bg:var(--jl-surface-3);display:inline-flex}:host([tone=accent]){--fg:var(--jl-accent);--bg:var(--jl-accent-soft)}:host([tone=ok]){--fg:var(--jl-ok);--bg:var(--jl-ok-soft)}:host([tone=warn]){--fg:var(--jl-warn);--bg:var(--jl-warn-soft)}:host([tone=danger]){--fg:var(--jl-danger);--bg:var(--jl-danger-soft)}:host([tone=info]){--fg:var(--jl-info);--bg:var(--jl-info-soft)}.badge{border-radius:var(--jl-radius-pill);background:var(--bg);height:22px;color:var(--fg);font-size:var(--jl-font-xs);white-space:nowrap;align-items:center;gap:5px;padding:0 8px;font-weight:600;line-height:1;display:inline-flex}:host([solid]) .badge{background:var(--fg);color:var(--jl-surface)}:host([tone=neutral][solid]) .badge{background:var(--jl-text)}.label:empty{display:none}.dot{width:6px;height:6px;box-shadow:0 0 0 3px color-mix(in srgb, currentColor 18%, transparent);background:currentColor;border-radius:50%}";
3
+ export { jl_badge_default as default };
@@ -4,7 +4,7 @@ import { oneOf } from "../lib/attributes.js";
4
4
  import { TONES } from "../lib/options.js";
5
5
  import { JlIcon } from "./jl-icon.js";
6
6
  import { setOrRemove } from "../lib/dom.js";
7
- import jl_badge_default from "./jl-badge.css_raw.js";
7
+ import jl_badge_default from "./jl-badge.css.js";
8
8
  import { css } from "@jadis/core";
9
9
  import { jsx, jsxs } from "@jadis/core/jsx-runtime";
10
10
  // src/atoms/jl-badge.tsx
@@ -0,0 +1,3 @@
1
+ // src/atoms/jl-button.css?inline
2
+ var jl_button_default = ":host{vertical-align:middle;--height:var(--jl-control-md);--pad:14px;--font-size:var(--jl-font-md);--radius:var(--jl-radius-sm);display:inline-flex}:host([size=sm]){--height:var(--jl-control-sm);--pad:11px;--font-size:var(--jl-font-xs)}:host([size=lg]){--height:var(--jl-control-lg);--pad:18px;--font-size:15px;--radius:var(--jl-radius)}:host([block]){display:flex}.content{display:contents}.base{height:var(--height);padding:0 var(--pad);border:1px solid var(--jl-line-strong);border-radius:var(--radius);background:var(--jl-surface);color:var(--jl-text);font-size:var(--font-size);white-space:nowrap;cursor:pointer;transition:background var(--jl-fast) var(--jl-ease), border-color var(--jl-fast) var(--jl-ease), color var(--jl-fast) var(--jl-ease);flex:1;justify-content:center;align-items:center;gap:8px;font-weight:600;line-height:1;text-decoration:none;display:inline-flex}:host([icon-only]) .base{width:var(--height);padding:0}.base:hover{background:var(--jl-surface-2)}.base:active{background:var(--jl-surface-3)}:host([variant=primary]) .base{background:var(--jl-accent);color:var(--jl-on-accent);border-color:#0000}:host([variant=primary]) .base:hover{background:var(--jl-accent-strong)}:host([variant=ghost]) .base{color:var(--jl-accent);background:0 0;border-color:#0000}:host([variant=ghost]) .base:hover{background:var(--jl-accent-soft)}:host([variant=danger]) .base{background:var(--jl-danger);color:var(--jl-on-danger);border-color:#0000}:host([variant=danger]) .base:hover{background:color-mix(in srgb, var(--jl-danger) 86%, var(--jl-text))}:host([loading]) .base{cursor:progress}.base:disabled,.base[aria-disabled=true]{cursor:not-allowed;opacity:.5}";
3
+ export { jl_button_default as default };
@@ -4,7 +4,7 @@ import { oneOf } from "../lib/attributes.js";
4
4
  import { CONTROL_SIZES } from "../lib/options.js";
5
5
  import { JlIcon } from "./jl-icon.js";
6
6
  import { setOrRemove } from "../lib/dom.js";
7
- import jl_button_default from "./jl-button.css_raw.js";
7
+ import jl_button_default from "./jl-button.css.js";
8
8
  import { JlSpinner } from "./jl-spinner.js";
9
9
  import { css } from "@jadis/core";
10
10
  import { Fragment, jsx, jsxs } from "@jadis/core/jsx-runtime";
@@ -0,0 +1,3 @@
1
+ // src/atoms/jl-checkbox.css?inline
2
+ var jl_checkbox_default = ":host{vertical-align:middle;--box:18px;display:inline-flex}.wrap{color:var(--jl-text);font-size:var(--jl-font-md);cursor:pointer;align-items:flex-start;gap:10px;line-height:20px;display:inline-flex}.box{width:var(--box);height:var(--box);flex:none;margin-top:1px;display:inline-flex;position:relative}.native{border:1px solid var(--jl-line-strong);border-radius:var(--jl-radius-xs);background:var(--jl-surface);width:100%;height:100%;cursor:inherit;appearance:none;transition:background var(--jl-fast) var(--jl-ease), border-color var(--jl-fast) var(--jl-ease), box-shadow var(--jl-fast) var(--jl-ease);margin:0;position:absolute;inset:0}.wrap:hover .native:not(:disabled){border-color:color-mix(in srgb, var(--jl-line-strong) 60%, var(--jl-text) 18%)}.native:checked,.native:indeterminate{border-color:var(--jl-accent);background:var(--jl-accent)}.wrap:hover .native:checked:not(:disabled),.wrap:hover .native:indeterminate:not(:disabled){border-color:var(--jl-accent-strong);background:var(--jl-accent-strong)}.mark{color:var(--jl-on-accent);pointer-events:none;justify-content:center;align-items:center;display:none;position:absolute;inset:0}.native:checked:not(:indeterminate)~.check,.native:indeterminate~.dash{display:flex}.text{align-self:baseline;gap:2px;display:grid}.description{color:var(--jl-muted);font-size:var(--jl-font-sm);line-height:18px}:host([disabled]) .wrap,:host(:disabled) .wrap{cursor:not-allowed;opacity:.5}:host([disabled]) .native:not(:checked,:indeterminate),:host(:disabled) .native:not(:checked,:indeterminate){background:var(--jl-surface-2)}";
3
+ export { jl_checkbox_default as default };
@@ -2,7 +2,7 @@ import { BASE_STYLES } from "../styles/shared.js";
2
2
  import { JlFormControl } from "../base/jl-form-control.js";
3
3
  import { registerIcons } from "../lib/icons.js";
4
4
  import { JlIcon } from "./jl-icon.js";
5
- import jl_checkbox_default from "./jl-checkbox.css_raw.js";
5
+ import jl_checkbox_default from "./jl-checkbox.css.js";
6
6
  import { css } from "@jadis/core";
7
7
  import { Check, Minus } from "lucide";
8
8
  import { jsx, jsxs } from "@jadis/core/jsx-runtime";
@@ -0,0 +1,3 @@
1
+ // src/atoms/jl-chip.css?inline
2
+ var jl_chip_default = ":host{vertical-align:middle;--height:28px;--pad:10px;--font-size:var(--jl-font-sm);--dismiss:20px;max-width:100%;display:inline-flex}:host([size=sm]){--height:24px;--pad:8px;--font-size:var(--jl-font-xs);--dismiss:18px}.chip{min-width:0;height:var(--height);border:1px solid var(--jl-line-strong);border-radius:var(--jl-radius-pill);background:var(--jl-surface);color:var(--jl-text-2);font-size:var(--font-size);white-space:nowrap;transition:background var(--jl-fast) var(--jl-ease), border-color var(--jl-fast) var(--jl-ease), color var(--jl-fast) var(--jl-ease);align-items:center;font-weight:600;line-height:1;display:inline-flex}.main{min-width:0;height:100%;padding:0 var(--pad);border-radius:inherit;align-items:center;gap:6px;display:inline-flex}.label{text-overflow:ellipsis;line-height:1.4;overflow:hidden}.label:empty{display:none}:host([removable]) .main{padding-right:4px}:host([selectable]) .main{cursor:pointer}:host([selectable]:not([disabled])) .chip:hover{background:var(--jl-surface-2)}:host([selected]) .chip,:host([selected][selectable]:not([disabled])) .chip:hover{border-color:var(--jl-accent-line);background:var(--jl-accent-soft);color:var(--jl-accent)}.main:focus-visible{box-shadow:none}.chip:has(.main:focus-visible){box-shadow:var(--jl-focus-ring)}.dismiss{width:var(--dismiss);height:var(--dismiss);color:var(--jl-muted);cursor:pointer;background:0 0;border:0;border-radius:50%;flex:none;justify-content:center;align-items:center;margin-right:3px;padding:0;display:inline-flex}.dismiss:hover{background:var(--jl-surface-3);color:var(--jl-text)}:host([selected]) .dismiss{color:var(--jl-accent)}:host([selected]) .dismiss:hover{background:color-mix(in srgb, var(--jl-accent) 14%, transparent);color:var(--jl-accent-strong)}:host([disabled]) .chip{opacity:.5}:host([disabled]) .main,:host([disabled]) .dismiss{cursor:not-allowed}:host([disabled]) .dismiss:hover{background:0 0}";
3
+ export { jl_chip_default as default };
@@ -54,6 +54,7 @@ export declare class JlChip extends JlElement {
54
54
  private renderInteraction;
55
55
  /** The chip's icon; a selected filter without one shows a check. */
56
56
  private renderIcon;
57
+ protected drawTexts(): void;
57
58
  private renderLabel;
58
59
  private renderSize;
59
60
  }
@@ -1,11 +1,11 @@
1
+ import { jlText } from "../lib/texts.js";
1
2
  import { BASE_STYLES } from "../styles/shared.js";
2
3
  import { JlElement } from "../base/jl-element.js";
3
4
  import { oneOf } from "../lib/attributes.js";
4
5
  import { registerIcons } from "../lib/icons.js";
5
- import { jlText } from "../lib/texts.js";
6
6
  import { JlIcon } from "./jl-icon.js";
7
7
  import { isActivationKey } from "../lib/surface.js";
8
- import jl_chip_default from "./jl-chip.css_raw.js";
8
+ import jl_chip_default from "./jl-chip.css.js";
9
9
  import { css } from "@jadis/core";
10
10
  import { Check, X } from "lucide";
11
11
  import { jsx, jsxs } from "@jadis/core/jsx-runtime";
@@ -92,7 +92,6 @@ var JlChip = class extends JlElement {
92
92
  }), /* @__PURE__ */ jsx("button", {
93
93
  class: "dismiss",
94
94
  type: "button",
95
- "aria-label": jlText("remove"),
96
95
  hidden: true,
97
96
  children: /* @__PURE__ */ jsx(JlIcon, { name: "x" })
98
97
  })]
@@ -150,6 +149,9 @@ var JlChip = class extends JlElement {
150
149
  this._refs.icon.name.set(name);
151
150
  this._refs.icon.hidden = name === "";
152
151
  }
152
+ drawTexts() {
153
+ this.renderLabel();
154
+ }
153
155
  renderLabel() {
154
156
  const label = this.label.get();
155
157
  this._refs.label.textContent = label;
@@ -0,0 +1,3 @@
1
+ // src/atoms/jl-divider.css?inline
2
+ var jl_divider_default = ":host{--color:var(--jl-line);--thickness:1px;--gap:12px;display:block}:host([vertical]){vertical-align:middle;align-self:stretch;min-height:1em;display:inline-flex}.divider{align-items:center;gap:var(--gap);width:100%;display:flex}:host([vertical]) .divider{flex-direction:column;width:auto;height:auto}.line{height:var(--thickness);background:var(--color);flex:1}:host([vertical]) .line{width:var(--thickness);height:auto;min-height:4px}:host(:not([labelled])) .after,:host([labelled][align=start]) .before,:host([labelled][align=end]) .after{display:none}.label{max-width:80%;color:var(--jl-muted);font-size:var(--jl-font-xs);text-align:center;flex:none;font-weight:600;line-height:1.4}:host([vertical]) .label{writing-mode:horizontal-tb;max-width:none}";
3
+ export { jl_divider_default as default };
@@ -2,7 +2,7 @@ import { BASE_STYLES } from "../styles/shared.js";
2
2
  import { JlElement } from "../base/jl-element.js";
3
3
  import { oneOf } from "../lib/attributes.js";
4
4
  import { setOrRemove } from "../lib/dom.js";
5
- import jl_divider_default from "./jl-divider.css_raw.js";
5
+ import jl_divider_default from "./jl-divider.css.js";
6
6
  import { css } from "@jadis/core";
7
7
  import { jsx, jsxs } from "@jadis/core/jsx-runtime";
8
8
  // src/atoms/jl-divider.tsx
@@ -0,0 +1,3 @@
1
+ // src/atoms/jl-icon.css?inline
2
+ var jl_icon_default = ":host{--cutout:var(--jl-surface);vertical-align:middle;flex:none;line-height:0;display:inline-flex}.icon{display:inline-flex}:host([filled]) svg>:first-child{fill:currentColor}:host([filled]) svg>:not(:first-child){stroke:var(--cutout)}";
3
+ export { jl_icon_default as default };
@@ -1,7 +1,7 @@
1
1
  import { BASE_STYLES } from "../styles/shared.js";
2
2
  import { JlElement } from "../base/jl-element.js";
3
3
  import { iconElement } from "../lib/icons.js";
4
- import jl_icon_default from "./jl-icon.css_raw.js";
4
+ import jl_icon_default from "./jl-icon.css.js";
5
5
  import { css } from "@jadis/core";
6
6
  import { jsx } from "@jadis/core/jsx-runtime";
7
7
  // src/atoms/jl-icon.tsx
@@ -0,0 +1,3 @@
1
+ // src/atoms/jl-input.css?inline
2
+ var jl_input_default = ":host{display:block}:host([readonly]) .control{background:var(--jl-surface-2)}::slotted([slot=start]),::slotted([slot=end]){color:var(--jl-muted);font-size:var(--jl-font-sm);flex:none}.native::-webkit-search-cancel-button{appearance:none}.native::-webkit-inner-spin-button{appearance:none}.native[type=date],.native[type=time],.native[type=datetime-local],.native[type=month],.native[type=week]{font-family:var(--jl-font-mono);font-size:var(--jl-font-sm)}";
3
+ export { jl_input_default as default };
@@ -106,7 +106,9 @@ export declare class JlInput extends JlFormControl {
106
106
  /** The browser calls it for a disabled fieldset and for the element's own disabled attribute, even before render. */
107
107
  protected setDisabledByForm(disabled: boolean): void;
108
108
  private clearValue;
109
+ protected drawTexts(): void;
109
110
  private toggleReveal;
111
+ private renderRevealLabel;
110
112
  private renderValue;
111
113
  private renderType;
112
114
  private renderDisabled;
@@ -1,12 +1,12 @@
1
+ import { jlText } from "../lib/texts.js";
1
2
  import { BASE_STYLES, CONTROL_STYLES } from "../styles/shared.js";
2
3
  import { JlFormControl } from "../base/jl-form-control.js";
3
4
  import { oneOf } from "../lib/attributes.js";
4
5
  import { registerIcons } from "../lib/icons.js";
5
6
  import { CONTROL_SIZES } from "../lib/options.js";
6
- import { jlText } from "../lib/texts.js";
7
7
  import { JlIcon } from "./jl-icon.js";
8
8
  import { setOrRemove } from "../lib/dom.js";
9
- import jl_input_default from "./jl-input.css_raw.js";
9
+ import jl_input_default from "./jl-input.css.js";
10
10
  import { css } from "@jadis/core";
11
11
  import { Eye, EyeOff, X } from "lucide";
12
12
  import { jsx, jsxs } from "@jadis/core/jsx-runtime";
@@ -108,7 +108,6 @@ var JlInput = class extends JlFormControl {
108
108
  /* @__PURE__ */ jsx("button", {
109
109
  class: "action clear",
110
110
  type: "button",
111
- "aria-label": jlText("clear"),
112
111
  tabIndex: -1,
113
112
  hidden: true,
114
113
  children: /* @__PURE__ */ jsx(JlIcon, {
@@ -119,7 +118,6 @@ var JlInput = class extends JlFormControl {
119
118
  /* @__PURE__ */ jsx("button", {
120
119
  class: "action reveal",
121
120
  type: "button",
122
- "aria-label": jlText("showPassword"),
123
121
  hidden: true,
124
122
  children: /* @__PURE__ */ jsx(JlIcon, {
125
123
  name: "eye",
@@ -159,11 +157,19 @@ var JlInput = class extends JlFormControl {
159
157
  this.events.emit("change", "");
160
158
  this.focus();
161
159
  }
160
+ drawTexts() {
161
+ this._refs.clear.setAttribute("aria-label", jlText("clear"));
162
+ this.renderRevealLabel();
163
+ }
162
164
  toggleReveal() {
163
165
  const native = this._refs.native;
164
166
  const revealed = native.type === PASSWORD;
165
167
  native.type = revealed ? REVEALED : PASSWORD;
166
168
  this._refs.revealIcon.name.set(revealed ? "eye-off" : "eye");
169
+ this.renderRevealLabel();
170
+ }
171
+ renderRevealLabel() {
172
+ const revealed = this._refs.native.type === REVEALED;
167
173
  this._refs.reveal.setAttribute("aria-label", revealed ? jlText("hidePassword") : jlText("showPassword"));
168
174
  }
169
175
  renderValue(value) {
@@ -0,0 +1,3 @@
1
+ // src/atoms/jl-kbd.css?inline
2
+ var jl_kbd_default = ":host{vertical-align:middle;display:inline-flex}.keys,.caps{align-items:center;gap:3px;display:inline-flex}.key{border:1px solid var(--jl-line-strong);border-radius:var(--jl-radius-xs);background:var(--jl-surface-2);min-width:20px;height:20px;color:var(--jl-text-2);font-family:var(--jl-font-sans);white-space:nowrap;border-bottom-width:2px;justify-content:center;align-items:center;padding:0 5px;font-size:11px;font-weight:600;line-height:1;display:inline-flex}";
3
+ export { jl_kbd_default as default };
@@ -1,7 +1,7 @@
1
1
  import { BASE_STYLES } from "../styles/shared.js";
2
2
  import { JlElement } from "../base/jl-element.js";
3
3
  import { keycapsOf, spokenKeys } from "../lib/keycaps.js";
4
- import jl_kbd_default from "./jl-kbd.css_raw.js";
4
+ import jl_kbd_default from "./jl-kbd.css.js";
5
5
  import { css } from "@jadis/core";
6
6
  import { jsx, jsxs } from "@jadis/core/jsx-runtime";
7
7
  // src/atoms/jl-kbd.tsx
@@ -0,0 +1,3 @@
1
+ // src/atoms/jl-link.css?inline
2
+ var jl_link_default = ":host{--color:var(--jl-accent);--hover:var(--jl-accent-strong);--underline:color-mix(in srgb, var(--jl-accent) 40%, transparent);display:inline}:host([variant=muted]){--color:var(--jl-muted);--hover:var(--jl-text);--underline:transparent}:host([variant=quiet]){--underline:transparent}a{color:var(--color);text-decoration:underline;-webkit-text-decoration-color:var(--underline);text-decoration-color:var(--underline);text-underline-offset:.2em;cursor:pointer;transition:color var(--jl-fast) var(--jl-ease), text-decoration-color var(--jl-fast) var(--jl-ease);border-radius:3px;font-weight:600;text-decoration-thickness:1px}a:hover{color:var(--hover);text-decoration-color:currentColor}a:not([href]){cursor:default}jl-icon{vertical-align:-.1em;margin-left:.2em}";
3
+ export { jl_link_default as default };
@@ -4,7 +4,7 @@ import { oneOf } from "../lib/attributes.js";
4
4
  import { registerIcons } from "../lib/icons.js";
5
5
  import { JlIcon } from "./jl-icon.js";
6
6
  import { setOrRemove } from "../lib/dom.js";
7
- import jl_link_default from "./jl-link.css_raw.js";
7
+ import jl_link_default from "./jl-link.css.js";
8
8
  import { css } from "@jadis/core";
9
9
  import { ExternalLink } from "lucide";
10
10
  import { jsx, jsxs } from "@jadis/core/jsx-runtime";
@@ -0,0 +1,3 @@
1
+ // src/atoms/jl-loading-bar.css?inline
2
+ var jl_loading_bar_default = ":host{height:var(--height);pointer-events:none;--height:3px;--color:var(--jl-accent);display:block}.track{height:100%;overflow:hidden}.bar{background:var(--color);transform-origin:0;height:100%;transform:scaleX(0)}:host(:dir(rtl)) .bar{transform-origin:100%}";
3
+ export { jl_loading_bar_default as default };
@@ -0,0 +1,38 @@
1
+ import { JlElement } from '../base/jl-element';
2
+ /**
3
+ * A thin line that says something is on its way, such as the next page: hidden for a moment, so a quick wait shows
4
+ * nothing, then growing from the start, fast then slower, never reaching the end while the wait lasts. When it ends,
5
+ * the line runs to the end and fades. Set `active` while waiting.
6
+ */
7
+ export declare class JlLoadingBar extends JlElement {
8
+ static readonly selector = "jl-loading-bar";
9
+ /** Whether something is on its way: the line shows after `delay`, and finishes when it turns false. */
10
+ readonly active: Readonly<Readonly<{
11
+ get(): boolean;
12
+ set(setter: boolean | ((prevState: boolean) => boolean)): void;
13
+ }>>;
14
+ /** Milliseconds before the line shows. */
15
+ readonly delay: Readonly<Readonly<{
16
+ get(): number;
17
+ set(setter: number | ((prevState: number) => number)): void;
18
+ }>>;
19
+ /** What screen readers hear while the line shows; jlib's own when empty. */
20
+ readonly label: Readonly<Readonly<{
21
+ get(): string;
22
+ set(setter: string | ((prevState: string) => string)): void;
23
+ }>>;
24
+ private readonly _run;
25
+ private readonly _refs;
26
+ templateHtml(): Node;
27
+ templateCss(): string;
28
+ protected drawTexts(): void;
29
+ onDisconnect(): void;
30
+ /** Shows the line after its delay, unless the wait ends first. */
31
+ private start;
32
+ private grow;
33
+ /** Runs the line to the end from where it is, then fades it; a line still waiting for its delay never shows. */
34
+ private finish;
35
+ private play;
36
+ /** Hides the line, back at its start. */
37
+ private reset;
38
+ }
@@ -0,0 +1,121 @@
1
+ import { jlText } from "../lib/texts.js";
2
+ import { BASE_STYLES } from "../styles/shared.js";
3
+ import { JlElement } from "../base/jl-element.js";
4
+ import { clampedNumber } from "../lib/attributes.js";
5
+ import jl_loading_bar_default from "./jl-loading-bar.css.js";
6
+ import { css } from "@jadis/core";
7
+ import { jsx } from "@jadis/core/jsx-runtime";
8
+ // src/atoms/jl-loading-bar.tsx
9
+ var DEFAULT_DELAY_MS = 150;
10
+ var MAX_DELAY_MS = 5e3;
11
+ var GROW_MS = 2e4;
12
+ var GROW_KEYFRAMES = [
13
+ { transform: "scaleX(0)" },
14
+ {
15
+ offset: .02,
16
+ transform: "scaleX(0.3)"
17
+ },
18
+ {
19
+ offset: .1,
20
+ transform: "scaleX(0.55)"
21
+ },
22
+ {
23
+ offset: .35,
24
+ transform: "scaleX(0.75)"
25
+ },
26
+ { transform: "scaleX(0.9)" }
27
+ ];
28
+ var FINISH_MS = 200;
29
+ var FADE_MS = 300;
30
+ var REDUCED_MOTION = "(prefers-reduced-motion: reduce)";
31
+ /** How long a step of the bar lasts: none when people asked for less motion, the bar then shown still. */
32
+ var lasting = (milliseconds) => window.matchMedia(REDUCED_MOTION).matches ? 0 : milliseconds;
33
+ /**
34
+ * A thin line that says something is on its way, such as the next page: hidden for a moment, so a quick wait shows
35
+ * nothing, then growing from the start, fast then slower, never reaching the end while the wait lasts. When it ends,
36
+ * the line runs to the end and fades. Set `active` while waiting.
37
+ */
38
+ var JlLoadingBar = class extends JlElement {
39
+ static selector = "jl-loading-bar";
40
+ /** Whether something is on its way: the line shows after `delay`, and finishes when it turns false. */
41
+ active = this.useChange(false, (value) => value ? this.start() : this.finish(), { attribute: "active" });
42
+ /** Milliseconds before the line shows. */
43
+ delay = this.useChange(DEFAULT_DELAY_MS, () => void 0, {
44
+ attribute: "delay",
45
+ parse: clampedNumber(DEFAULT_DELAY_MS, 0, MAX_DELAY_MS)
46
+ });
47
+ /** What screen readers hear while the line shows; jlib's own when empty. */
48
+ label = this.useChange("", () => this.drawTexts(), { attribute: "label" });
49
+ _run = { animations: [] };
50
+ _refs = this.useRefs((ref) => ({
51
+ bar: ref(".bar"),
52
+ track: ref(".track")
53
+ }));
54
+ templateHtml() {
55
+ return /* @__PURE__ */ jsx("div", {
56
+ class: "track",
57
+ role: "progressbar",
58
+ attrs: { part: "base" },
59
+ hidden: true,
60
+ children: /* @__PURE__ */ jsx("div", { class: "bar" })
61
+ });
62
+ }
63
+ templateCss() {
64
+ return css`${BASE_STYLES}${jl_loading_bar_default}`;
65
+ }
66
+ drawTexts() {
67
+ this._refs.track.setAttribute("aria-label", this.label.get() || jlText("loading"));
68
+ }
69
+ onDisconnect() {
70
+ clearTimeout(this._run.timer);
71
+ this.reset();
72
+ }
73
+ /** Shows the line after its delay, unless the wait ends first. */
74
+ start() {
75
+ clearTimeout(this._run.timer);
76
+ this._run.timer = setTimeout(() => this.grow(), this.delay.get());
77
+ }
78
+ grow() {
79
+ this.reset();
80
+ this._refs.track.hidden = false;
81
+ this.play(this._refs.bar.animate(GROW_KEYFRAMES, {
82
+ duration: lasting(GROW_MS),
83
+ fill: "forwards"
84
+ }));
85
+ }
86
+ /** Runs the line to the end from where it is, then fades it; a line still waiting for its delay never shows. */
87
+ finish() {
88
+ clearTimeout(this._run.timer);
89
+ const { bar, track } = this._refs;
90
+ if (track.hidden) return;
91
+ for (const animation of this._run.animations) {
92
+ animation.commitStyles();
93
+ animation.cancel();
94
+ }
95
+ this._run.animations = [];
96
+ this.play(bar.animate([{ transform: "scaleX(1)" }], {
97
+ duration: lasting(FINISH_MS),
98
+ fill: "forwards"
99
+ }));
100
+ const fade = track.animate([{ opacity: 1 }, { opacity: 0 }], {
101
+ delay: lasting(FINISH_MS),
102
+ duration: lasting(FADE_MS),
103
+ fill: "forwards"
104
+ });
105
+ fade.onfinish = () => this.reset();
106
+ this.play(fade);
107
+ }
108
+ play(animation) {
109
+ this._run.animations.push(animation);
110
+ }
111
+ /** Hides the line, back at its start. */
112
+ reset() {
113
+ for (const animation of this._run.animations) animation.cancel();
114
+ this._run.animations = [];
115
+ this._refs.bar.style.removeProperty("transform");
116
+ this._refs.track.style.removeProperty("opacity");
117
+ this._refs.track.hidden = true;
118
+ }
119
+ };
120
+ JlLoadingBar.register();
121
+ export { JlLoadingBar };
@@ -0,0 +1,3 @@
1
+ // src/atoms/jl-progress-ring.css?inline
2
+ var jl_progress_ring_default = ":host{vertical-align:middle;--size:40px;--done:0;--color:var(--jl-accent);--track:var(--jl-surface-3);flex:none;display:inline-flex}:host([tone=ok]){--color:var(--jl-ok)}:host([tone=warn]){--color:var(--jl-warn)}:host([tone=danger]){--color:var(--jl-danger)}.ring{width:var(--size);height:var(--size);justify-content:center;align-items:center;display:inline-flex;position:relative}.svg{width:100%;height:100%;position:absolute;inset:0;transform:rotate(-90deg)}.track{stroke:var(--track)}.arc{stroke:var(--color);stroke-dasharray:100;stroke-dashoffset:calc(100 - var(--done));stroke-linecap:round;transition:stroke-dashoffset var(--jl-slow) var(--jl-ease)}:host([empty]) .arc{visibility:hidden}:host([indeterminate]) .arc{stroke-dashoffset:72px;transition:none}:host([indeterminate]) .svg{animation:.9s linear infinite turn}.percent{color:var(--jl-text);font-size:calc(var(--size) * .24);font-variant-numeric:tabular-nums;font-weight:700;line-height:1;position:relative}@keyframes turn{0%{transform:rotate(-90deg)}to{transform:rotate(270deg)}}@media (prefers-reduced-motion:reduce){:host([indeterminate]) .svg{animation:none}}";
3
+ export { jl_progress_ring_default as default };
@@ -4,7 +4,7 @@ import { oneOf } from "../lib/attributes.js";
4
4
  import { svgElement } from "../lib/dom.js";
5
5
  import { optionalNumber, percentLabel, percentOf, progressRatio, ringGeometry } from "../lib/progress.js";
6
6
  import { PROGRESS_TONES } from "./jl-progress.js";
7
- import jl_progress_ring_default from "./jl-progress-ring.css_raw.js";
7
+ import jl_progress_ring_default from "./jl-progress-ring.css.js";
8
8
  import { css } from "@jadis/core";
9
9
  import { jsx } from "@jadis/core/jsx-runtime";
10
10
  // src/atoms/jl-progress-ring.tsx
@@ -0,0 +1,3 @@
1
+ // src/atoms/jl-progress.css?inline
2
+ var jl_progress_default = ":host{--height:8px;--color:var(--jl-accent);display:block}:host([size=sm]){--height:4px}:host([tone=ok]){--color:var(--jl-ok)}:host([tone=warn]){--color:var(--jl-warn)}:host([tone=danger]){--color:var(--jl-danger)}.header{font-size:var(--jl-font-sm);align-items:baseline;gap:12px;margin-bottom:8px;line-height:1.4;display:flex}.label{min-width:0;color:var(--jl-text-2);flex:1;font-weight:600}.percent{color:var(--jl-muted);font-variant-numeric:tabular-nums;margin-left:auto}.track{height:var(--height);border-radius:var(--jl-radius-pill);background:var(--jl-surface-3);position:relative;overflow:hidden}.bar{border-radius:inherit;background:var(--color);width:0;height:100%;transition:width var(--jl-slow) var(--jl-ease)}:host([indeterminate]) .bar{width:40%;animation:travel 1.3s var(--jl-ease) infinite;position:absolute;inset:0 auto 0 0}@keyframes travel{0%{transform:translate(-100%)}to{transform:translate(250%)}}@media (prefers-reduced-motion:reduce){:host([indeterminate]) .bar{opacity:.35;width:100%;animation:none}}";
3
+ export { jl_progress_default as default };
@@ -2,7 +2,7 @@ import { BASE_STYLES } from "../styles/shared.js";
2
2
  import { JlElement } from "../base/jl-element.js";
3
3
  import { oneOf } from "../lib/attributes.js";
4
4
  import { optionalNumber, percentLabel, percentOf, progressRatio } from "../lib/progress.js";
5
- import jl_progress_default from "./jl-progress.css_raw.js";
5
+ import jl_progress_default from "./jl-progress.css.js";
6
6
  import { css } from "@jadis/core";
7
7
  import { jsx, jsxs } from "@jadis/core/jsx-runtime";
8
8
  // src/atoms/jl-progress.tsx
@@ -0,0 +1,3 @@
1
+ // src/atoms/jl-rating.css?inline
2
+ var jl_rating_default = ":host{vertical-align:middle;--color:var(--jl-accent);--empty:var(--jl-faint);display:inline-flex}.rating{border-radius:var(--jl-radius-xs);cursor:pointer;padding:2px;display:inline-flex}.icons{gap:2px;display:inline-flex}.icon{color:var(--empty);transition:color var(--jl-fast) var(--jl-ease), transform var(--jl-fast) var(--jl-ease);display:inline-flex}.icon svg{fill:#0000;transition:fill var(--jl-fast) var(--jl-ease)}.icon.on{color:var(--color)}.icon.on svg{fill:currentColor}:host([previewing]) .icon.on{color:color-mix(in srgb, var(--color) 55%, transparent)}:host(:not([readonly]):not([disabled])) .icon:hover{transform:scale(1.12)}:host([invalid]) .icon:not(.on){color:var(--jl-danger)}:host([readonly]) .rating{cursor:default}:host([disabled]) .rating{cursor:not-allowed;opacity:.5}";
3
+ export { jl_rating_default as default };
@@ -66,6 +66,8 @@ export declare class JlRating extends JlFormControl {
66
66
  /** The value as the scale shows it: never past its end. */
67
67
  private current;
68
68
  private commit;
69
+ protected drawTexts(): void;
70
+ private renderLabel;
69
71
  private renderIcons;
70
72
  private renderValue;
71
73
  private renderValidity;
@@ -1,11 +1,11 @@
1
+ import { jlText } from "../lib/texts.js";
1
2
  import { BASE_STYLES } from "../styles/shared.js";
2
3
  import { JlFormControl } from "../base/jl-form-control.js";
3
4
  import { clampedNumber, oneOf } from "../lib/attributes.js";
4
5
  import { iconElement, registerIcons } from "../lib/icons.js";
5
6
  import { CONTROL_SIZES } from "../lib/options.js";
6
- import { jlText } from "../lib/texts.js";
7
7
  import { ratingAfterChoice, ratingAfterKey } from "../lib/rating.js";
8
- import jl_rating_default from "./jl-rating.css_raw.js";
8
+ import jl_rating_default from "./jl-rating.css.js";
9
9
  import { css } from "@jadis/core";
10
10
  import { Star } from "lucide";
11
11
  import { jsx } from "@jadis/core/jsx-runtime";
@@ -49,9 +49,7 @@ var JlRating = class extends JlFormControl {
49
49
  parse: oneOf(CONTROL_SIZES, "md")
50
50
  });
51
51
  /** The name screen readers give the scale. */
52
- label = this.useChange(jlText("rating"), (value) => {
53
- this._refs.slider.setAttribute("aria-label", value === "" ? jlText("rating") : value);
54
- }, { attribute: "label" });
52
+ label = this.useChange("", () => this.renderLabel(), { attribute: "label" });
55
53
  required = this.useChange(false, (value) => {
56
54
  this._refs.slider.toggleAttribute("aria-required", value);
57
55
  this.renderValidity();
@@ -139,6 +137,13 @@ var JlRating = class extends JlFormControl {
139
137
  this.value.set(value);
140
138
  this.events.emit("change", value);
141
139
  }
140
+ drawTexts() {
141
+ this.renderLabel();
142
+ this.renderValue();
143
+ }
144
+ renderLabel() {
145
+ this._refs.slider.setAttribute("aria-label", this.label.get() || jlText("rating"));
146
+ }
142
147
  renderIcons() {
143
148
  const name = this.icon.get() === "" ? "star" : this.icon.get();
144
149
  const size = ICON_SIZES[this.size.get()];
@@ -160,7 +165,10 @@ var JlRating = class extends JlFormControl {
160
165
  const slider = this._refs.slider;
161
166
  slider.setAttribute("aria-valuenow", String(value));
162
167
  slider.setAttribute("aria-valuemax", String(max));
163
- slider.setAttribute("aria-valuetext", value === 0 ? "No rating" : `${value} of ${max}`);
168
+ slider.setAttribute("aria-valuetext", value === 0 ? jlText("noRating") : jlText("ratingOf", {
169
+ max,
170
+ value
171
+ }));
164
172
  this.internals.setFormValue(String(value));
165
173
  this.renderValidity();
166
174
  }