@syware/jlib 0.9.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.
- package/README.md +17 -2
- package/dist/all.js +5 -2
- package/dist/atoms/jl-app-icon.css.js +3 -0
- package/dist/atoms/jl-app-icon.js +1 -1
- package/dist/atoms/jl-avatar.css.js +3 -0
- package/dist/atoms/jl-avatar.js +1 -1
- package/dist/atoms/jl-badge.css.js +3 -0
- package/dist/atoms/jl-badge.js +1 -1
- package/dist/atoms/jl-button.css.js +3 -0
- package/dist/atoms/jl-button.js +1 -1
- package/dist/atoms/jl-checkbox.css.js +3 -0
- package/dist/atoms/jl-checkbox.js +1 -1
- package/dist/atoms/jl-chip.css.js +3 -0
- package/dist/atoms/jl-chip.js +1 -1
- package/dist/atoms/jl-divider.css.js +3 -0
- package/dist/atoms/jl-divider.js +1 -1
- package/dist/atoms/jl-icon.css.js +3 -0
- package/dist/atoms/jl-icon.js +1 -1
- package/dist/atoms/jl-input.css.js +3 -0
- package/dist/atoms/jl-input.js +1 -1
- package/dist/atoms/jl-kbd.css.js +3 -0
- package/dist/atoms/jl-kbd.js +1 -1
- package/dist/atoms/jl-link.css.js +3 -0
- package/dist/atoms/jl-link.js +1 -1
- package/dist/atoms/jl-loading-bar.css.js +3 -0
- package/dist/atoms/jl-loading-bar.d.ts +38 -0
- package/dist/atoms/jl-loading-bar.js +121 -0
- package/dist/atoms/jl-progress-ring.css.js +3 -0
- package/dist/atoms/jl-progress-ring.js +1 -1
- package/dist/atoms/jl-progress.css.js +3 -0
- package/dist/atoms/jl-progress.js +1 -1
- package/dist/atoms/jl-rating.css.js +3 -0
- package/dist/atoms/jl-rating.js +1 -1
- package/dist/atoms/jl-select.css.js +3 -0
- package/dist/atoms/jl-select.js +1 -1
- package/dist/atoms/jl-skeleton.css.js +3 -0
- package/dist/atoms/jl-skeleton.js +1 -1
- package/dist/atoms/jl-slider.css.js +3 -0
- package/dist/atoms/jl-slider.js +1 -1
- package/dist/atoms/jl-spinner.css.js +3 -0
- package/dist/atoms/jl-spinner.js +1 -1
- package/dist/atoms/jl-switch.css.js +3 -0
- package/dist/atoms/jl-switch.js +1 -1
- package/dist/atoms/jl-textarea.css.js +3 -0
- package/dist/atoms/jl-textarea.js +1 -1
- package/dist/base/jl-element.d.ts +2 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -1
- package/dist/lib/flow.js +23 -6
- package/dist/lib/texts-de.d.ts +3 -0
- package/dist/lib/texts-de.js +3 -0
- package/dist/lib/texts-fr.d.ts +3 -0
- package/dist/lib/texts-fr.js +3 -0
- package/dist/lib/texts.d.ts +3 -0
- package/dist/lib/texts.js +3 -0
- package/dist/molecules/jl-accordion-item.css.js +3 -0
- package/dist/molecules/jl-accordion-item.js +1 -1
- package/dist/molecules/jl-accordion.css.js +3 -0
- package/dist/molecules/jl-accordion.js +1 -1
- package/dist/molecules/jl-account-button.css.js +3 -0
- package/dist/molecules/jl-account-button.js +1 -1
- package/dist/molecules/jl-alert.css.js +3 -0
- package/dist/molecules/jl-alert.js +1 -1
- package/dist/molecules/jl-avatar-group.css.js +3 -0
- package/dist/molecules/jl-avatar-group.js +1 -1
- package/dist/molecules/jl-breadcrumb.css.js +3 -0
- package/dist/molecules/jl-breadcrumb.js +1 -1
- package/dist/molecules/jl-calendar.css.js +3 -0
- package/dist/molecules/jl-calendar.js +1 -1
- package/dist/molecules/jl-card.css.js +3 -0
- package/dist/molecules/jl-card.js +1 -1
- package/dist/molecules/jl-chip-group.css.js +3 -0
- package/dist/molecules/jl-chip-group.js +1 -1
- package/dist/molecules/jl-code-block.css.js +3 -0
- package/dist/molecules/jl-code-block.js +1 -1
- package/dist/molecules/jl-combobox.css.js +3 -0
- package/dist/molecules/jl-combobox.js +1 -1
- package/dist/molecules/jl-copy-button.css.js +3 -0
- package/dist/molecules/jl-copy-button.js +1 -1
- package/dist/molecules/jl-date-picker.css.js +3 -0
- package/dist/molecules/jl-date-picker.js +1 -1
- package/dist/molecules/jl-empty.css.js +3 -0
- package/dist/molecules/jl-empty.js +1 -1
- package/dist/molecules/jl-facts.css.js +3 -0
- package/dist/molecules/jl-facts.js +1 -1
- package/dist/molecules/jl-field.css.js +3 -0
- package/dist/molecules/jl-field.js +1 -1
- package/dist/molecules/jl-file-drop.css.js +3 -0
- package/dist/molecules/jl-file-drop.js +1 -1
- package/dist/molecules/jl-input-list.css.js +3 -0
- package/dist/molecules/jl-input-list.js +1 -1
- package/dist/molecules/jl-list-item.css.js +3 -0
- package/dist/molecules/jl-list-item.js +1 -1
- package/dist/molecules/jl-load-more.css.js +3 -0
- package/dist/molecules/jl-load-more.js +1 -1
- package/dist/molecules/jl-load-state.css.js +3 -0
- package/dist/molecules/jl-load-state.d.ts +9 -0
- package/dist/molecules/jl-load-state.js +50 -3
- package/dist/molecules/jl-menu.css.js +3 -0
- package/dist/molecules/jl-menu.js +1 -1
- package/dist/molecules/jl-number-input.css.js +3 -0
- package/dist/molecules/jl-number-input.js +1 -1
- package/dist/molecules/jl-pagination.css.js +3 -0
- package/dist/molecules/jl-pagination.js +1 -1
- package/dist/molecules/jl-popover.css.js +3 -0
- package/dist/molecules/jl-popover.js +1 -1
- package/dist/molecules/jl-radio-group.css.js +3 -0
- package/dist/molecules/jl-radio-group.js +1 -1
- package/dist/molecules/jl-search-button.css.js +3 -0
- package/dist/molecules/jl-search-button.js +1 -1
- package/dist/molecules/jl-search.css.js +3 -0
- package/dist/molecules/jl-search.js +1 -1
- package/dist/molecules/jl-segmented.css.js +3 -0
- package/dist/molecules/jl-segmented.js +1 -1
- package/dist/molecules/jl-stat.css.js +3 -0
- package/dist/molecules/jl-stat.js +1 -1
- package/dist/molecules/jl-steps.css.js +3 -0
- package/dist/molecules/jl-steps.js +1 -1
- package/dist/molecules/jl-tab-panel.css.js +3 -0
- package/dist/molecules/jl-tab-panel.js +1 -1
- package/dist/molecules/jl-tabs.css.js +3 -0
- package/dist/molecules/jl-tabs.js +1 -1
- package/dist/molecules/jl-tag-input.css.js +3 -0
- package/dist/molecules/jl-tag-input.js +1 -1
- package/dist/molecules/jl-timeline.css.js +3 -0
- package/dist/molecules/jl-timeline.js +1 -1
- package/dist/molecules/jl-toast.css.js +3 -0
- package/dist/molecules/jl-toast.js +1 -1
- package/dist/molecules/jl-tooltip.css.js +3 -0
- package/dist/molecules/jl-tooltip.js +1 -1
- package/dist/organisms/jl-command-palette.css.js +3 -0
- package/dist/organisms/jl-command-palette.js +10 -4
- package/dist/organisms/jl-confirm.css.js +3 -0
- package/dist/organisms/jl-confirm.js +1 -1
- package/dist/organisms/jl-dialog.css.js +3 -0
- package/dist/organisms/jl-dialog.js +1 -1
- package/dist/organisms/jl-drawer.css.js +3 -0
- package/dist/organisms/jl-drawer.js +1 -1
- package/dist/organisms/jl-flow.css.js +3 -0
- package/dist/organisms/jl-flow.js +1 -1
- package/dist/organisms/jl-navbar.css.js +3 -0
- package/dist/organisms/jl-navbar.js +1 -1
- package/dist/organisms/jl-page-header.css.js +3 -0
- package/dist/organisms/jl-page-header.js +1 -1
- package/dist/organisms/jl-page-outlet.css.js +3 -0
- package/dist/organisms/jl-page-outlet.d.ts +34 -0
- package/dist/organisms/jl-page-outlet.js +107 -0
- package/dist/organisms/jl-side-nav.css.js +3 -0
- package/dist/organisms/jl-side-nav.js +1 -1
- package/dist/organisms/jl-tab-bar.css.js +3 -0
- package/dist/organisms/jl-tab-bar.js +1 -1
- package/dist/organisms/jl-table.css.js +3 -0
- package/dist/organisms/jl-table.js +1 -1
- package/dist/organisms/jl-toaster.css.js +3 -0
- package/dist/organisms/jl-toaster.js +1 -1
- package/dist/organisms/jl-tree.css.js +3 -0
- package/dist/organisms/jl-tree.js +1 -1
- package/dist/styles/base.css.js +3 -0
- package/dist/styles/control.css.js +3 -0
- package/dist/styles/floating.css.js +3 -0
- package/dist/styles/shared.js +4 -4
- package/dist/styles/tokens.css.js +3 -0
- package/dist/templates/jl-app-shell.css.js +3 -0
- package/dist/templates/jl-app-shell.js +1 -1
- package/dist/templates/jl-auth-layout.css.js +3 -0
- package/dist/templates/jl-auth-layout.js +1 -1
- package/dist/templates/jl-page.css.js +3 -0
- package/dist/templates/jl-page.js +1 -1
- package/dist/templates/jl-split-view.css.js +3 -0
- package/dist/templates/jl-split-view.js +1 -1
- package/dist/templates/jl-stack.css.js +3 -0
- package/dist/templates/jl-stack.d.ts +17 -0
- package/dist/templates/jl-stack.js +36 -0
- package/dist/types/jl-stack.types.d.ts +2 -0
- package/package.json +5 -4
- package/dist/atoms/jl-app-icon.css_raw.js +0 -3
- package/dist/atoms/jl-avatar.css_raw.js +0 -3
- package/dist/atoms/jl-badge.css_raw.js +0 -3
- package/dist/atoms/jl-button.css_raw.js +0 -3
- package/dist/atoms/jl-checkbox.css_raw.js +0 -3
- package/dist/atoms/jl-chip.css_raw.js +0 -3
- package/dist/atoms/jl-divider.css_raw.js +0 -3
- package/dist/atoms/jl-icon.css_raw.js +0 -3
- package/dist/atoms/jl-input.css_raw.js +0 -3
- package/dist/atoms/jl-kbd.css_raw.js +0 -3
- package/dist/atoms/jl-link.css_raw.js +0 -3
- package/dist/atoms/jl-progress-ring.css_raw.js +0 -3
- package/dist/atoms/jl-progress.css_raw.js +0 -3
- package/dist/atoms/jl-rating.css_raw.js +0 -3
- package/dist/atoms/jl-select.css_raw.js +0 -3
- package/dist/atoms/jl-skeleton.css_raw.js +0 -3
- package/dist/atoms/jl-slider.css_raw.js +0 -3
- package/dist/atoms/jl-spinner.css_raw.js +0 -3
- package/dist/atoms/jl-switch.css_raw.js +0 -3
- package/dist/atoms/jl-textarea.css_raw.js +0 -3
- package/dist/molecules/jl-accordion-item.css_raw.js +0 -3
- package/dist/molecules/jl-accordion.css_raw.js +0 -3
- package/dist/molecules/jl-account-button.css_raw.js +0 -3
- package/dist/molecules/jl-alert.css_raw.js +0 -3
- package/dist/molecules/jl-avatar-group.css_raw.js +0 -3
- package/dist/molecules/jl-breadcrumb.css_raw.js +0 -3
- package/dist/molecules/jl-calendar.css_raw.js +0 -3
- package/dist/molecules/jl-card.css_raw.js +0 -3
- package/dist/molecules/jl-chip-group.css_raw.js +0 -3
- package/dist/molecules/jl-code-block.css_raw.js +0 -3
- package/dist/molecules/jl-combobox.css_raw.js +0 -3
- package/dist/molecules/jl-copy-button.css_raw.js +0 -3
- package/dist/molecules/jl-date-picker.css_raw.js +0 -3
- package/dist/molecules/jl-empty.css_raw.js +0 -3
- package/dist/molecules/jl-facts.css_raw.js +0 -3
- package/dist/molecules/jl-field.css_raw.js +0 -3
- package/dist/molecules/jl-file-drop.css_raw.js +0 -3
- package/dist/molecules/jl-input-list.css_raw.js +0 -3
- package/dist/molecules/jl-list-item.css_raw.js +0 -3
- package/dist/molecules/jl-load-more.css_raw.js +0 -3
- package/dist/molecules/jl-load-state.css_raw.js +0 -3
- package/dist/molecules/jl-menu.css_raw.js +0 -3
- package/dist/molecules/jl-number-input.css_raw.js +0 -3
- package/dist/molecules/jl-pagination.css_raw.js +0 -3
- package/dist/molecules/jl-popover.css_raw.js +0 -3
- package/dist/molecules/jl-radio-group.css_raw.js +0 -3
- package/dist/molecules/jl-search-button.css_raw.js +0 -3
- package/dist/molecules/jl-search.css_raw.js +0 -3
- package/dist/molecules/jl-segmented.css_raw.js +0 -3
- package/dist/molecules/jl-stat.css_raw.js +0 -3
- package/dist/molecules/jl-steps.css_raw.js +0 -3
- package/dist/molecules/jl-tab-panel.css_raw.js +0 -3
- package/dist/molecules/jl-tabs.css_raw.js +0 -3
- package/dist/molecules/jl-tag-input.css_raw.js +0 -3
- package/dist/molecules/jl-timeline.css_raw.js +0 -3
- package/dist/molecules/jl-toast.css_raw.js +0 -3
- package/dist/molecules/jl-tooltip.css_raw.js +0 -3
- package/dist/organisms/jl-command-palette.css_raw.js +0 -3
- package/dist/organisms/jl-confirm.css_raw.js +0 -3
- package/dist/organisms/jl-dialog.css_raw.js +0 -3
- package/dist/organisms/jl-drawer.css_raw.js +0 -3
- package/dist/organisms/jl-flow.css_raw.js +0 -3
- package/dist/organisms/jl-navbar.css_raw.js +0 -3
- package/dist/organisms/jl-page-header.css_raw.js +0 -3
- package/dist/organisms/jl-side-nav.css_raw.js +0 -3
- package/dist/organisms/jl-tab-bar.css_raw.js +0 -3
- package/dist/organisms/jl-table.css_raw.js +0 -3
- package/dist/organisms/jl-toaster.css_raw.js +0 -3
- package/dist/organisms/jl-tree.css_raw.js +0 -3
- package/dist/styles/base.css_raw.js +0 -3
- package/dist/styles/control.css_raw.js +0 -3
- package/dist/styles/floating.css_raw.js +0 -3
- package/dist/styles/tokens.css_raw.js +0 -3
- package/dist/templates/jl-app-shell.css_raw.js +0 -3
- package/dist/templates/jl-auth-layout.css_raw.js +0 -3
- package/dist/templates/jl-page.css_raw.js +0 -3
- 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
|
|
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
|
|
package/dist/all.js
CHANGED
|
@@ -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, 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, 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, jlTexts, jsonOf, oneOf, placeFloating, registerIcons, setFavicon, 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.
|
|
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 };
|
package/dist/atoms/jl-avatar.js
CHANGED
|
@@ -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.
|
|
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 };
|
package/dist/atoms/jl-badge.js
CHANGED
|
@@ -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.
|
|
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 };
|
package/dist/atoms/jl-button.js
CHANGED
|
@@ -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.
|
|
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.
|
|
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 };
|
package/dist/atoms/jl-chip.js
CHANGED
|
@@ -5,7 +5,7 @@ import { oneOf } from "../lib/attributes.js";
|
|
|
5
5
|
import { registerIcons } from "../lib/icons.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.
|
|
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";
|
|
@@ -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 };
|
package/dist/atoms/jl-divider.js
CHANGED
|
@@ -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.
|
|
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 };
|
package/dist/atoms/jl-icon.js
CHANGED
|
@@ -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.
|
|
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 };
|
package/dist/atoms/jl-input.js
CHANGED
|
@@ -6,7 +6,7 @@ import { registerIcons } from "../lib/icons.js";
|
|
|
6
6
|
import { CONTROL_SIZES } from "../lib/options.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.
|
|
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";
|
|
@@ -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 };
|
package/dist/atoms/jl-kbd.js
CHANGED
|
@@ -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.
|
|
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 };
|
package/dist/atoms/jl-link.js
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
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 };
|
package/dist/atoms/jl-rating.js
CHANGED
|
@@ -5,7 +5,7 @@ import { clampedNumber, oneOf } from "../lib/attributes.js";
|
|
|
5
5
|
import { iconElement, registerIcons } from "../lib/icons.js";
|
|
6
6
|
import { CONTROL_SIZES } from "../lib/options.js";
|
|
7
7
|
import { ratingAfterChoice, ratingAfterKey } from "../lib/rating.js";
|
|
8
|
-
import jl_rating_default from "./jl-rating.
|
|
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";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// src/atoms/jl-select.css?inline
|
|
2
|
+
var jl_select_default = ":host{display:block}.control{padding:0;position:relative}.native{border-radius:inherit;text-overflow:ellipsis;cursor:pointer;appearance:none;padding:0 36px 0 12px}.native:disabled{cursor:not-allowed}:host([placeholder-shown]) .native{color:var(--jl-faint)}option,optgroup{background:var(--jl-surface);color:var(--jl-text)}.chevron{color:var(--jl-muted);pointer-events:none;transition:transform var(--jl-fast) var(--jl-ease);position:absolute;right:12px}.native:open+.chevron{transform:rotate(180deg)}:host([disabled]) .chevron{color:var(--jl-faint)}@media (hover:hover) and (pointer:fine){@supports (appearance:base-select){.control{anchor-name:--frame}.native{appearance:base-select}.native::picker(select){appearance:base-select}.native{-webkit-line-clamp:1;padding-block:calc((var(--height,var(--jl-control-md)) - 2px - 1lh) / 2);overflow-clip-margin:content-box;-webkit-box-orient:vertical;display:-webkit-box;overflow:clip}.native::picker-icon{display:none}.native::picker(select){position-anchor:--frame;position-try-order:normal;box-sizing:border-box;min-inline-size:anchor-size(self-inline);border:1px solid var(--jl-line);border-radius:var(--jl-radius);background:var(--jl-surface);max-block-size:274px;color:var(--jl-text);box-shadow:var(--jl-shadow-lg);animation:jl-float-in var(--jl-fast) var(--jl-ease);margin-block:6px;padding:4px}optgroup{color:var(--jl-muted);font-size:var(--jl-font-xs);text-indent:calc(10px - .5em);padding-block-start:8px;font-weight:600}optgroup>option:first-of-type{margin-block-start:4px}option{box-sizing:border-box;border-radius:var(--jl-radius-xs);min-block-size:34px;font-size:var(--jl-font-md);text-indent:0;cursor:pointer;gap:10px;padding:6px 10px;font-weight:400;line-height:1.35}option:enabled:is(:hover,:focus-visible){background:var(--jl-surface-3);box-shadow:none}option:checked{font-weight:600}option:disabled{color:var(--jl-faint);cursor:not-allowed}option::checkmark{background:var(--jl-accent);content:\"\";order:1;width:14px;height:14px;margin-inline-start:auto;-webkit-mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E\") 50%/contain no-repeat;mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E\") 50%/contain no-repeat}}}";
|
|
3
|
+
export { jl_select_default as default };
|
package/dist/atoms/jl-select.js
CHANGED
|
@@ -6,7 +6,7 @@ import { CONTROL_SIZES } from "../lib/options.js";
|
|
|
6
6
|
import { JlIcon } from "./jl-icon.js";
|
|
7
7
|
import { setOrRemove } from "../lib/dom.js";
|
|
8
8
|
import { groupOptions } from "../lib/option-groups.js";
|
|
9
|
-
import jl_select_default from "./jl-select.
|
|
9
|
+
import jl_select_default from "./jl-select.css.js";
|
|
10
10
|
import { css } from "@jadis/core";
|
|
11
11
|
import { ChevronDown } from "lucide";
|
|
12
12
|
import { jsx, jsxs } from "@jadis/core/jsx-runtime";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// src/atoms/jl-skeleton.css?inline
|
|
2
|
+
var jl_skeleton_default = ":host{--base:var(--jl-surface-3);--shine:var(--jl-surface-2);display:block}:host([shape=circle]){vertical-align:middle;display:inline-block}.bones{width:var(--width,100%);gap:.55em;display:grid}.bone{height:var(--height,.8em);border-radius:var(--jl-radius-xs);background:linear-gradient(90deg, var(--base) 30%, var(--shine) 50%, var(--base) 70%) 0 0 / 300% 100%;animation:1.8s ease-in-out infinite shimmer;display:block}.bone:last-child:not(:first-child){width:60%}:host([shape=rect]) .bone{height:var(--height,96px);border-radius:var(--jl-radius)}:host([shape=circle]) .bones{width:var(--width,40px)}:host([shape=circle]) .bone{width:100%;height:var(--height,auto);aspect-ratio:1;border-radius:50%}@keyframes shimmer{0%{background-position:100% 0}to{background-position:0 0}}@media (prefers-reduced-motion:reduce){.bone{animation:none}}";
|
|
3
|
+
export { jl_skeleton_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 { clampedNumber, oneOf } from "../lib/attributes.js";
|
|
4
4
|
import { cssLength } from "../lib/css-length.js";
|
|
5
|
-
import jl_skeleton_default from "./jl-skeleton.
|
|
5
|
+
import jl_skeleton_default from "./jl-skeleton.css.js";
|
|
6
6
|
import { css } from "@jadis/core";
|
|
7
7
|
import { jsx } from "@jadis/core/jsx-runtime";
|
|
8
8
|
// src/atoms/jl-skeleton.tsx
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// src/atoms/jl-slider.css?inline
|
|
2
|
+
var jl_slider_default = ":host{--thumb:16px;--track:4px;--fill:var(--jl-accent);--rest:var(--jl-line-strong);display:block}.slider{align-items:flex-start;gap:12px;display:flex}.track-area{flex:1;min-width:0;position:relative}.native{--stop:calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--fraction,0));cursor:pointer;appearance:none;background:0 0;width:100%;height:20px;margin:0;display:block}.native:focus-visible{box-shadow:none}.native::-webkit-slider-runnable-track{height:var(--track);border-radius:var(--jl-radius-pill);background:linear-gradient(to right, var(--fill) var(--stop), var(--rest) var(--stop))}.native::-moz-range-track{height:var(--track);border-radius:var(--jl-radius-pill);background:linear-gradient(to right, var(--fill) var(--stop), var(--rest) var(--stop))}.native::-webkit-slider-thumb{width:var(--thumb);height:var(--thumb);margin-top:calc((var(--track) - var(--thumb)) / 2);border:2px solid var(--fill);background:var(--jl-surface);appearance:none;transition:box-shadow var(--jl-fast) var(--jl-ease), transform var(--jl-fast) var(--jl-ease);border-radius:50%}.native::-moz-range-thumb{box-sizing:border-box;width:var(--thumb);height:var(--thumb);border:2px solid var(--fill);background:var(--jl-surface);border-radius:50%}.native:hover::-webkit-slider-thumb{transform:scale(1.1)}.native:focus-visible::-webkit-slider-thumb{box-shadow:var(--jl-focus-ring)}.native:focus-visible::-moz-range-thumb{box-shadow:var(--jl-focus-ring)}:host([disabled]),:host(:disabled){--fill:var(--jl-faint)}:host([disabled]) .native,:host(:disabled) .native{cursor:not-allowed;opacity:.6}:host([disabled]) .native:hover::-webkit-slider-thumb{transform:none}:host(:disabled) .native:hover::-webkit-slider-thumb{transform:none}.output{min-width:3ch;color:var(--jl-text);font-family:var(--jl-font-mono);font-size:var(--jl-font-sm);font-variant-numeric:tabular-nums;text-align:right;line-height:20px}.marks{height:8px;margin-top:2px;position:relative}:host([has-labels]) .marks{height:26px}.mark{top:0;left:calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--at));justify-items:center;gap:2px;display:grid;position:absolute;transform:translate(-50%)}.tick{background:var(--jl-line-strong);width:1px;height:6px}.mark-label{color:var(--jl-muted);font-size:var(--jl-font-xs);white-space:nowrap;line-height:16px}.mark[data-edge=start] .mark-label{transform:translateX(calc(50% - var(--thumb) / 2))}.mark[data-edge=end] .mark-label{transform:translateX(calc(var(--thumb) / 2 - 50%))}";
|
|
3
|
+
export { jl_slider_default as default };
|
package/dist/atoms/jl-slider.js
CHANGED
|
@@ -3,7 +3,7 @@ import { JlFormControl } from "../base/jl-form-control.js";
|
|
|
3
3
|
import { jsonOf } from "../lib/attributes.js";
|
|
4
4
|
import { setOrRemove } from "../lib/dom.js";
|
|
5
5
|
import { fractionOf, marksOf, parseNumber } from "../lib/numeric.js";
|
|
6
|
-
import jl_slider_default from "./jl-slider.
|
|
6
|
+
import jl_slider_default from "./jl-slider.css.js";
|
|
7
7
|
import { css } from "@jadis/core";
|
|
8
8
|
import { jsx, jsxs } from "@jadis/core/jsx-runtime";
|
|
9
9
|
// src/atoms/jl-slider.tsx
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// src/atoms/jl-spinner.css?inline
|
|
2
|
+
var jl_spinner_default = ":host{--size:16px;flex:none;display:inline-flex}.ring{width:var(--size);height:var(--size);border:2px solid color-mix(in srgb, currentColor 22%, transparent);border-top-color:currentColor;border-radius:50%;animation:.7s linear infinite spin}@keyframes spin{to{transform:rotate(1turn)}}@media (prefers-reduced-motion:reduce){.ring{animation-duration:1.6s!important;animation-iteration-count:infinite!important}}";
|
|
3
|
+
export { jl_spinner_default as default };
|
package/dist/atoms/jl-spinner.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jlText } from "../lib/texts.js";
|
|
2
2
|
import { BASE_STYLES } from "../styles/shared.js";
|
|
3
3
|
import { JlElement } from "../base/jl-element.js";
|
|
4
|
-
import jl_spinner_default from "./jl-spinner.
|
|
4
|
+
import jl_spinner_default from "./jl-spinner.css.js";
|
|
5
5
|
import { css } from "@jadis/core";
|
|
6
6
|
import { jsx } from "@jadis/core/jsx-runtime";
|
|
7
7
|
// src/atoms/jl-spinner.tsx
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// src/atoms/jl-switch.css?inline
|
|
2
|
+
var jl_switch_default = ":host{vertical-align:middle;--track-width:36px;--track-height:20px;--thumb:14px;display:inline-flex}:host([size=sm]){--track-width:28px;--track-height:16px;--thumb:10px}.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}:host([size=sm]) .wrap{font-size:var(--jl-font-sm)}.track{width:var(--track-width);height:var(--track-height);margin-top:calc((20px - var(--track-height)) / 2);flex:none;display:inline-flex;position:relative}.native{border:1px solid var(--jl-line-strong);border-radius:var(--jl-radius-pill);background:var(--jl-surface-3);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{border-color:var(--jl-accent);background:var(--jl-accent)}.wrap:hover .native:checked:not(:disabled){border-color:var(--jl-accent-strong);background:var(--jl-accent-strong)}.thumb{top:calc((var(--track-height) - var(--thumb)) / 2);left:calc((var(--track-height) - var(--thumb)) / 2);width:var(--thumb);height:var(--thumb);background:var(--jl-muted);pointer-events:none;transition:transform var(--jl-fast) var(--jl-ease), background var(--jl-fast) var(--jl-ease);border-radius:50%;position:absolute}.native:checked+.thumb{background:var(--jl-on-accent);transform:translateX(calc(var(--track-width) - var(--track-height)))}.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}";
|
|
3
|
+
export { jl_switch_default as default };
|
package/dist/atoms/jl-switch.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BASE_STYLES } from "../styles/shared.js";
|
|
2
2
|
import { JlFormControl } from "../base/jl-form-control.js";
|
|
3
3
|
import { oneOf } from "../lib/attributes.js";
|
|
4
|
-
import jl_switch_default from "./jl-switch.
|
|
4
|
+
import jl_switch_default from "./jl-switch.css.js";
|
|
5
5
|
import { css } from "@jadis/core";
|
|
6
6
|
import { jsx, jsxs } from "@jadis/core/jsx-runtime";
|
|
7
7
|
// src/atoms/jl-switch.tsx
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// src/atoms/jl-textarea.css?inline
|
|
2
|
+
var jl_textarea_default = ":host{display:block}.field{gap:6px;display:grid}.control{align-items:stretch;padding:0}.native{height:auto;min-height:calc(var(--jl-control-md) - 2px);border-radius:inherit;resize:vertical;padding:8px 12px;display:block}:host([autosize]) .native{resize:none;overflow-y:hidden}:host([readonly]) .control{background:var(--jl-surface-2)}.counter{color:var(--jl-muted);font-family:var(--jl-font-mono);font-size:var(--jl-font-xs);font-variant-numeric:tabular-nums;justify-self:end;line-height:16px}.counter[data-full]{color:var(--jl-warn)}";
|
|
3
|
+
export { jl_textarea_default as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BASE_STYLES, CONTROL_STYLES } from "../styles/shared.js";
|
|
2
2
|
import { JlFormControl } from "../base/jl-form-control.js";
|
|
3
3
|
import { setOrRemove } from "../lib/dom.js";
|
|
4
|
-
import jl_textarea_default from "./jl-textarea.
|
|
4
|
+
import jl_textarea_default from "./jl-textarea.css.js";
|
|
5
5
|
import { css } from "@jadis/core";
|
|
6
6
|
import { jsx, jsxs } from "@jadis/core/jsx-runtime";
|
|
7
7
|
// src/atoms/jl-textarea.tsx
|
|
@@ -8,6 +8,8 @@ export declare abstract class JlElement extends Jadis {
|
|
|
8
8
|
/**
|
|
9
9
|
* Writes jlib's texts the component shows, with `jlText`. A component that has some defines it: it is called at
|
|
10
10
|
* every connection, once the template exists and before the browser paints, then at each change of jlib's language.
|
|
11
|
+
* An app's component extending `JlElement` writes its own texts in a method of another name (`writeTexts`): one it
|
|
12
|
+
* calls `drawTexts` would also be called by jlib, on jlib's language changes.
|
|
11
13
|
*/
|
|
12
14
|
protected drawTexts?(): void;
|
|
13
15
|
/** Defines the element, and gives the document the design tokens the first time. */
|