@rimelight/ui 0.0.57 → 0.0.58
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/package.json +3 -3
- package/src/components/avatar/avatar.theme.ts +58 -1
- package/src/components/avatar/avatar.ts +21 -1
- package/src/components/avatar-group/RLAAvatarGroup.astro +37 -161
- package/src/components/avatar-group/RLSAvatarGroup.tsx +37 -121
- package/src/components/breadcrumb/RLABreadcrumb.astro +59 -196
- package/src/components/breadcrumb/RLSBreadcrumb.tsx +57 -120
- package/src/components/card/RLSCard.tsx +1 -2
- package/src/components/card/RLVCard.vue +1 -2
- package/src/components/carousel/RLACarousel.astro +2 -1
- package/src/components/carousel/RLSCarousel.tsx +3 -11
- package/src/components/chart/RLAChart.astro +211 -219
- package/src/components/dashboard-navbar/RLADashboardNavbar.astro +1 -1
- package/src/components/dashboard-navbar/RLSDashboardNavbar.tsx +1 -15
- package/src/components/dashboard-panel/RLADashboardPanel.astro +1 -1
- package/src/components/dashboard-panel/RLSDashboardPanel.tsx +1 -6
- package/src/components/dashboard-search/RLADashboardSearch.astro +1 -1
- package/src/components/head/UIHead.astro +0 -11
- package/src/components/image/RLAImage.astro +15 -20
- package/src/components/image/RLSImage.tsx +5 -12
- package/src/components/image/image.theme.ts +4 -4
- package/src/components/input-rating/RLAInputRating.astro +19 -14
- package/src/components/input-rating/RLSInputRating.tsx +39 -32
- package/src/components/input-tags/RLAInputTags.astro +27 -137
- package/src/components/layout-grid/RLALayoutGrid.astro +4 -4
- package/src/components/logo/RLALogo.astro +0 -16
- package/src/components/logo/RLSLogo.tsx +1 -8
- package/src/components/marquee/RLAMarquee.astro +55 -62
- package/src/components/page-section/RLAPageSection.astro +2 -2
- package/src/components/progress/RLAProgress.astro +39 -38
- package/src/components/progress/RLSProgress.tsx +16 -5
- package/src/components/progress/progress.theme.ts +1 -1
- package/src/components/scroll-area/RLAScrollArea.astro +4 -5
- package/src/components/scroll-area/RLSScrollArea.tsx +5 -6
- package/src/components/splitter/RLASplitter.astro +217 -230
- package/src/components/splitter/RLSSplitter.tsx +2 -6
- package/src/components/steps/RLASteps.astro +110 -110
- package/src/components/sticky-surface/RLAStickySurface.astro +49 -67
- package/src/components/table/RLATable.astro +16 -46
- package/src/components/tabs/RLATabs.astro +352 -385
- package/src/components/textarea/RLATextarea.astro +1 -2
- package/src/components/theme-selector/RLAThemeSelector.astro +6 -6
- package/src/components/tooltip/RLATooltip.astro +7 -11
|
@@ -33,7 +33,7 @@ const classes = textareaTheme({
|
|
|
33
33
|
back to the min-height defined in textarea.theme.ts.
|
|
34
34
|
-->
|
|
35
35
|
<textarea
|
|
36
|
-
class={classes.textarea}
|
|
36
|
+
class:list={[classes.textarea, autoGrow && "[field-sizing:content] min-h-unset"]}
|
|
37
37
|
data-slot="textarea"
|
|
38
38
|
placeholder={placeholder}
|
|
39
39
|
disabled={disabled}
|
|
@@ -41,7 +41,6 @@ const classes = textareaTheme({
|
|
|
41
41
|
name={name}
|
|
42
42
|
required={required}
|
|
43
43
|
rows={autoGrow ? undefined : rows}
|
|
44
|
-
style={autoGrow ? "field-sizing: content; min-height: unset;" : undefined}
|
|
45
44
|
{...rest}
|
|
46
45
|
>{value}</textarea>
|
|
47
46
|
</div>
|
|
@@ -34,9 +34,9 @@ const items = [
|
|
|
34
34
|
class={classes.select}
|
|
35
35
|
>
|
|
36
36
|
<span slot="leading" class="flex items-center">
|
|
37
|
-
<RLAIcon name="i-lucide-laptop" class="rla-theme-icon-system size-4
|
|
38
|
-
<RLAIcon name="i-rl-sun" class="rla-theme-icon-light size-4
|
|
39
|
-
<RLAIcon name="i-rl-moon" class="rla-theme-icon-dark size-4
|
|
37
|
+
<RLAIcon name="i-lucide-laptop" class="rla-theme-icon-system size-4 block" />
|
|
38
|
+
<RLAIcon name="i-rl-sun" class="rla-theme-icon-light size-4 hidden" />
|
|
39
|
+
<RLAIcon name="i-rl-moon" class="rla-theme-icon-dark size-4 hidden" />
|
|
40
40
|
</span>
|
|
41
41
|
</RLASelect>
|
|
42
42
|
</div>
|
|
@@ -72,9 +72,9 @@ const items = [
|
|
|
72
72
|
const sysIcons = this.querySelectorAll('.rla-theme-icon-system');
|
|
73
73
|
const lightIcons = this.querySelectorAll('.rla-theme-icon-light');
|
|
74
74
|
const darkIcons = this.querySelectorAll('.rla-theme-icon-dark');
|
|
75
|
-
sysIcons.forEach(el =>
|
|
76
|
-
lightIcons.forEach(el =>
|
|
77
|
-
darkIcons.forEach(el =>
|
|
75
|
+
sysIcons.forEach(el => el.classList.toggle('hidden', next !== 'system'));
|
|
76
|
+
lightIcons.forEach(el => el.classList.toggle('hidden', next !== 'light'));
|
|
77
|
+
darkIcons.forEach(el => el.classList.toggle('hidden', next !== 'dark'));
|
|
78
78
|
|
|
79
79
|
const resolved = next === 'system'
|
|
80
80
|
? window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light'
|
|
@@ -12,23 +12,20 @@ const {
|
|
|
12
12
|
|
|
13
13
|
const classes = tooltipTheme(Astro.props)
|
|
14
14
|
|
|
15
|
-
const anchorName = `--rla-tt-${Math.random().toString(36).substring(2, 9)}`
|
|
16
15
|
---
|
|
17
16
|
<div class={classes.root} data-slot="tooltip-container" data-placement={placement} {...rest}>
|
|
18
17
|
<div
|
|
19
|
-
class={classes.trigger}
|
|
18
|
+
class:list={[classes.trigger, "rla-tt-trigger"]}
|
|
20
19
|
data-slot="trigger"
|
|
21
20
|
tabindex="0"
|
|
22
|
-
style={`anchor-name: ${anchorName}`}
|
|
23
21
|
>
|
|
24
22
|
<slot />
|
|
25
23
|
</div>
|
|
26
24
|
|
|
27
25
|
<div
|
|
28
|
-
class={classes.content}
|
|
26
|
+
class:list={[classes.content, "rla-tt-content"]}
|
|
29
27
|
data-slot="content"
|
|
30
28
|
role="tooltip"
|
|
31
|
-
style={`position-anchor: ${anchorName}`}
|
|
32
29
|
>
|
|
33
30
|
<slot name="content">
|
|
34
31
|
{content}
|
|
@@ -44,15 +41,14 @@ const anchorName = `--rla-tt-${Math.random().toString(36).substring(2, 9)}`
|
|
|
44
41
|
* fall back to the existing absolute + translate-based placement
|
|
45
42
|
* defined in tooltip.theme.ts. No JavaScript needed in either path.
|
|
46
43
|
*/
|
|
44
|
+
.rla-tt-trigger {
|
|
45
|
+
anchor-name: --rla-tooltip-anchor;
|
|
46
|
+
}
|
|
47
|
+
|
|
47
48
|
@supports (anchor-name: --x) {
|
|
48
49
|
[data-slot="tooltip-container"] [data-slot="content"] {
|
|
49
|
-
/*
|
|
50
|
-
* Switch from the theme's translate-based absolute positioning
|
|
51
|
-
* to anchor-relative positioning so the browser handles overflow
|
|
52
|
-
* and viewport clipping automatically.
|
|
53
|
-
*/
|
|
54
50
|
position: absolute;
|
|
55
|
-
position-anchor:
|
|
51
|
+
position-anchor: --rla-tooltip-anchor;
|
|
56
52
|
|
|
57
53
|
/* Reset theme's translate hacks — anchor() handles the math */
|
|
58
54
|
transform: none !important;
|