@ecopages/radiant-ui 0.1.0-beta.6 → 0.1.0-beta.8
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 +1 -1
- package/dist/components/ui/alert/alert.css +88 -50
- package/dist/components/ui/alert/alert.d.ts +43 -5
- package/dist/components/ui/alert/alert.script.d.ts +51 -4
- package/dist/components/ui/alert/index.d.ts +2 -2
- package/dist/components/ui/alert/index.js +1 -1
- package/dist/components/ui/alert/index.js.map +4 -4
- package/dist/components/ui/autocomplete/autocomplete.css +4 -4
- package/dist/components/ui/autocomplete/autocomplete.d.ts +15 -5
- package/dist/components/ui/autocomplete/autocomplete.script.d.ts +9 -0
- package/dist/components/ui/autocomplete/index.js +1 -1
- package/dist/components/ui/autocomplete/index.js.map +4 -4
- package/dist/components/ui/avatar/avatar.d.ts +15 -1
- package/dist/components/ui/avatar/index.js +1 -1
- package/dist/components/ui/avatar/index.js.map +4 -4
- package/dist/components/ui/breadcrumb/breadcrumb.d.ts +32 -6
- package/dist/components/ui/breadcrumb/index.js +1 -1
- package/dist/components/ui/breadcrumb/index.js.map +4 -4
- package/dist/{styles/components → components/ui/button}/button.css +45 -31
- package/dist/components/ui/button/button.d.ts +21 -4
- package/dist/components/ui/button-group/button-group.d.ts +7 -1
- package/dist/components/ui/button-group/index.js +1 -1
- package/dist/components/ui/button-group/index.js.map +4 -4
- package/dist/components/ui/calendar/calendar.css +7 -7
- package/dist/components/ui/calendar/calendar.d.ts +3 -2
- package/dist/components/ui/calendar/calendar.script.d.ts +39 -1
- package/dist/components/ui/calendar/index.js +1 -1
- package/dist/components/ui/calendar/index.js.map +4 -4
- package/dist/components/ui/carousel/carousel.d.ts +32 -6
- package/dist/components/ui/carousel/carousel.script.d.ts +44 -0
- package/dist/components/ui/carousel/index.js +1 -1
- package/dist/components/ui/carousel/index.js.map +4 -4
- package/dist/components/ui/checkbox/checkbox.css +1 -1
- package/dist/components/ui/checkbox/checkbox.d.ts +3 -2
- package/dist/components/ui/checkbox/checkbox.script.d.ts +4 -0
- package/dist/components/ui/checkbox/index.js +1 -1
- package/dist/components/ui/checkbox/index.js.map +4 -4
- package/dist/components/ui/chip/chip.d.ts +8 -0
- package/dist/components/ui/chip/index.js +1 -1
- package/dist/components/ui/chip/index.js.map +4 -4
- package/dist/components/ui/chip-list/chip-list.d.ts +10 -2
- package/dist/components/ui/chip-list/index.js +1 -1
- package/dist/components/ui/chip-list/index.js.map +4 -4
- package/dist/components/ui/combobox/combobox.css +39 -1
- package/dist/components/ui/combobox/combobox.d.ts +15 -5
- package/dist/components/ui/combobox/combobox.script.d.ts +13 -1
- package/dist/components/ui/combobox/index.js +1 -1
- package/dist/components/ui/combobox/index.js.map +4 -4
- package/dist/components/ui/cycle-toggle/cycle-toggle.css +15 -0
- package/dist/components/ui/cycle-toggle/cycle-toggle.d.ts +29 -0
- package/dist/components/ui/cycle-toggle/cycle-toggle.script.d.ts +61 -0
- package/dist/components/ui/cycle-toggle/index.d.ts +5 -0
- package/dist/components/ui/cycle-toggle/index.js +2 -0
- package/dist/components/ui/cycle-toggle/index.js.map +7 -0
- package/dist/components/ui/cycle-toggle/theme-preference-icons.d.ts +12 -0
- package/dist/components/ui/date-field/date-field.css +37 -0
- package/dist/components/ui/date-field/date-field.d.ts +22 -3
- package/dist/components/ui/date-field/date-field.script.d.ts +29 -5
- package/dist/components/ui/date-field/index.d.ts +1 -1
- package/dist/components/ui/date-field/index.js +1 -1
- package/dist/components/ui/date-field/index.js.map +4 -4
- package/dist/components/ui/date-range-picker/date-range-picker.css +37 -0
- package/dist/components/ui/date-range-picker/date-range-picker.d.ts +37 -4
- package/dist/components/ui/date-range-picker/date-range-picker.script.d.ts +31 -5
- package/dist/components/ui/date-range-picker/index.d.ts +1 -1
- package/dist/components/ui/date-range-picker/index.js +1 -1
- package/dist/components/ui/date-range-picker/index.js.map +4 -4
- package/dist/components/ui/dialog/dialog.css +1 -1
- package/dist/components/ui/dialog/dialog.d.ts +30 -5
- package/dist/components/ui/dialog/dialog.script.d.ts +3 -0
- package/dist/components/ui/dialog/index.js +1 -1
- package/dist/components/ui/dialog/index.js.map +4 -4
- package/dist/components/ui/disclosure/disclosure-group.css +1 -1
- package/dist/components/ui/disclosure/disclosure-group.script.d.ts +6 -0
- package/dist/components/ui/disclosure/disclosure.d.ts +26 -7
- package/dist/components/ui/disclosure/disclosure.script.d.ts +5 -0
- package/dist/components/ui/disclosure/index.js +1 -1
- package/dist/components/ui/disclosure/index.js.map +4 -4
- package/dist/components/ui/feed/feed.d.ts +37 -7
- package/dist/components/ui/feed/index.js +1 -1
- package/dist/components/ui/feed/index.js.map +4 -4
- package/dist/components/ui/field/field-description.d.ts +5 -1
- package/dist/components/ui/field/field-error.d.ts +5 -0
- package/dist/components/ui/field/field.d.ts +8 -1
- package/dist/components/ui/field/field.script.d.ts +35 -0
- package/dist/components/ui/field/index.js +1 -1
- package/dist/components/ui/field/index.js.map +4 -4
- package/dist/components/ui/form/control-protocol.d.ts +6 -0
- package/dist/components/ui/form/form.d.ts +2 -1
- package/dist/components/ui/form/form.script.d.ts +16 -1
- package/dist/components/ui/form/index.d.ts +1 -1
- package/dist/components/ui/form/index.js +1 -1
- package/dist/components/ui/form/index.js.map +4 -4
- package/dist/components/ui/grid/grid.d.ts +12 -2
- package/dist/components/ui/grid/grid.script.d.ts +14 -0
- package/dist/components/ui/grid/index.js +1 -1
- package/dist/components/ui/grid/index.js.map +4 -4
- package/dist/components/ui/heading/heading.d.ts +26 -4
- package/dist/components/ui/heading/index.js +1 -1
- package/dist/components/ui/heading/index.js.map +4 -4
- package/dist/components/ui/headline/headline.d.ts +9 -1
- package/dist/components/ui/headline/index.js +1 -1
- package/dist/components/ui/headline/index.js.map +4 -4
- package/dist/components/ui/input/index.d.ts +1 -1
- package/dist/components/ui/input/index.js +1 -1
- package/dist/components/ui/input/index.js.map +4 -4
- package/dist/components/ui/input/input.css +2 -7
- package/dist/components/ui/input/input.d.ts +7 -2
- package/dist/components/ui/label/index.js +1 -1
- package/dist/components/ui/label/index.js.map +4 -4
- package/dist/components/ui/label/label.d.ts +8 -1
- package/dist/components/ui/listbox/index.js +1 -1
- package/dist/components/ui/listbox/index.js.map +4 -4
- package/dist/components/ui/listbox/listbox.css +2 -5
- package/dist/components/ui/listbox/listbox.d.ts +7 -3
- package/dist/components/ui/listbox/listbox.script.d.ts +14 -1
- package/dist/components/ui/menu-button/index.d.ts +1 -1
- package/dist/components/ui/menu-button/index.js +1 -1
- package/dist/components/ui/menu-button/index.js.map +4 -4
- package/dist/components/ui/menu-button/menu-button.css +2 -2
- package/dist/components/ui/menu-button/menu-button.d.ts +27 -5
- package/dist/components/ui/menu-button/menu-button.script.d.ts +8 -3
- package/dist/components/ui/menubar/index.js +1 -1
- package/dist/components/ui/menubar/index.js.map +4 -4
- package/dist/components/ui/menubar/menubar.css +4 -4
- package/dist/components/ui/menubar/menubar.d.ts +14 -2
- package/dist/components/ui/menubar/menubar.script.d.ts +10 -1
- package/dist/components/ui/meter/index.js +1 -1
- package/dist/components/ui/meter/index.js.map +4 -4
- package/dist/components/ui/meter/meter.css +1 -1
- package/dist/components/ui/meter/meter.d.ts +7 -2
- package/dist/components/ui/meter/meter.script.d.ts +21 -0
- package/dist/components/ui/navigation-menu/index.js +1 -1
- package/dist/components/ui/navigation-menu/index.js.map +4 -4
- package/dist/components/ui/navigation-menu/navigation-menu.css +2 -2
- package/dist/components/ui/navigation-menu/navigation-menu.d.ts +3 -2
- package/dist/components/ui/navigation-menu/navigation-menu.script.d.ts +4 -0
- package/dist/components/ui/number-field/index.d.ts +1 -1
- package/dist/components/ui/number-field/index.js +1 -1
- package/dist/components/ui/number-field/index.js.map +4 -4
- package/dist/components/ui/number-field/number-field.css +18 -3
- package/dist/components/ui/number-field/number-field.d.ts +36 -8
- package/dist/components/ui/number-field/number-field.script.d.ts +28 -1
- package/dist/components/ui/popover/index.js +1 -1
- package/dist/components/ui/popover/index.js.map +4 -4
- package/dist/components/ui/popover/popover.d.ts +5 -4
- package/dist/components/ui/popover/popover.script.d.ts +4 -0
- package/dist/components/ui/radio-group/index.d.ts +1 -1
- package/dist/components/ui/radio-group/index.js +1 -1
- package/dist/components/ui/radio-group/index.js.map +4 -4
- package/dist/components/ui/radio-group/radio-group.d.ts +29 -4
- package/dist/components/ui/radio-group/radio-group.script.d.ts +14 -9
- package/dist/components/ui/select/index.js +1 -1
- package/dist/components/ui/select/index.js.map +4 -4
- package/dist/components/ui/select/select.css +48 -6
- package/dist/components/ui/select/select.d.ts +29 -8
- package/dist/components/ui/select/select.script.d.ts +7 -0
- package/dist/components/ui/sidebar/index.js +1 -1
- package/dist/components/ui/sidebar/index.js.map +4 -4
- package/dist/components/ui/sidebar/sidebar-trigger.script.d.ts +4 -0
- package/dist/components/ui/sidebar/sidebar.css +41 -24
- package/dist/components/ui/sidebar/sidebar.d.ts +68 -14
- package/dist/components/ui/sidebar/sidebar.docs.css +5 -2
- package/dist/components/ui/sidebar/sidebar.script.d.ts +21 -5
- package/dist/components/ui/slider/index.js +1 -1
- package/dist/components/ui/slider/index.js.map +4 -4
- package/dist/components/ui/slider/slider.d.ts +2 -1
- package/dist/components/ui/slider/slider.script.d.ts +29 -1
- package/dist/components/ui/switch/index.js +1 -1
- package/dist/components/ui/switch/index.js.map +4 -4
- package/dist/components/ui/switch/switch.css +3 -3
- package/dist/components/ui/switch/switch.d.ts +11 -2
- package/dist/components/ui/switch/switch.script.d.ts +5 -0
- package/dist/components/ui/tabs/index.js +1 -1
- package/dist/components/ui/tabs/index.js.map +4 -4
- package/dist/components/ui/tabs/tabs.css +9 -10
- package/dist/components/ui/tabs/tabs.d.ts +30 -9
- package/dist/components/ui/tag-group/index.js +1 -1
- package/dist/components/ui/tag-group/index.js.map +4 -4
- package/dist/components/ui/tag-group/tag-group.css +2 -11
- package/dist/components/ui/tag-group/tag-group.d.ts +18 -5
- package/dist/components/ui/tag-group/tag-group.script.d.ts +9 -2
- package/dist/components/ui/textarea/index.d.ts +1 -1
- package/dist/components/ui/textarea/index.js +1 -1
- package/dist/components/ui/textarea/index.js.map +4 -4
- package/dist/components/ui/textarea/textarea.d.ts +7 -2
- package/dist/components/ui/toast/index.d.ts +1 -1
- package/dist/components/ui/toast/index.js +1 -1
- package/dist/components/ui/toast/index.js.map +4 -4
- package/dist/components/ui/toast/stack-layout.d.ts +18 -0
- package/dist/components/ui/toast/toast-context.d.ts +10 -0
- package/dist/components/ui/toast/toast.css +30 -9
- package/dist/components/ui/toast/toast.d.ts +12 -2
- package/dist/components/ui/toast/toast.script.d.ts +60 -4
- package/dist/components/ui/toast/toaster.script.d.ts +71 -2
- package/dist/components/ui/toc/index.js +1 -1
- package/dist/components/ui/toc/index.js.map +4 -4
- package/dist/components/ui/toc/toc.css +3 -0
- package/dist/components/ui/toc/toc.d.ts +2 -1
- package/dist/components/ui/toc/toc.script.d.ts +15 -0
- package/dist/components/ui/toolbar/index.js +1 -1
- package/dist/components/ui/toolbar/index.js.map +4 -4
- package/dist/components/ui/toolbar/toolbar.d.ts +3 -2
- package/dist/components/ui/toolbar/toolbar.script.d.ts +8 -0
- package/dist/components/ui/tooltip/index.js +1 -1
- package/dist/components/ui/tooltip/index.js.map +4 -4
- package/dist/components/ui/tooltip/tooltip.d.ts +3 -2
- package/dist/components/ui/tooltip/tooltip.script.d.ts +3 -0
- package/dist/components/ui/tree/index.js +1 -1
- package/dist/components/ui/tree/index.js.map +4 -4
- package/dist/components/ui/tree/tree.d.ts +12 -2
- package/dist/components/ui/tree/tree.script.d.ts +18 -1
- package/dist/components/ui/treegrid/index.js +1 -1
- package/dist/components/ui/treegrid/index.js.map +4 -4
- package/dist/components/ui/treegrid/treegrid.d.ts +15 -2
- package/dist/components/ui/treegrid/treegrid.script.d.ts +22 -1
- package/dist/components/ui/window-splitter/index.js +1 -1
- package/dist/components/ui/window-splitter/index.js.map +4 -4
- package/dist/components/ui/window-splitter/window-splitter.css +1 -1
- package/dist/components/ui/window-splitter/window-splitter.d.ts +3 -2
- package/dist/components/ui/window-splitter/window-splitter.script.d.ts +22 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +4 -4
- package/dist/lib/cycle-value.d.ts +8 -0
- package/dist/lib/intl-number/range.d.ts +8 -0
- package/dist/styles/radiant-ui-core.css +110 -341
- package/dist/styles/radiant-ui.css +413 -377
- package/dist/styles/styles.css +839 -2731
- package/dist/styles/tailwind.css +626 -530
- package/dist/styles/tokens/colors/aurora.css +2 -2
- package/dist/styles/tokens/colors/basalt.css +2 -1
- package/dist/styles/tokens/colors/glacier.css +2 -1
- package/dist/styles/tokens/presets/colors/aurora.css +42 -14
- package/dist/styles/tokens/presets/colors/basalt.css +28 -0
- package/dist/styles/tokens/presets/colors/ember.css +28 -0
- package/dist/styles/tokens/presets/colors/glacier.css +28 -0
- package/dist/styles/tokens/semantic.css +22 -2
- package/dist/styles/tokens/spacing/compact.css +12 -12
- package/package.json +21 -8
- package/dist/components/ui/dialog/dialog-registry.test.d.ts +0 -1
- package/dist/components/ui/field/field-ssr-hydration.test.d.ts +0 -1
- package/dist/components/ui/form/form-field.test.d.ts +0 -4
- package/dist/components/ui/form/form-store.test.d.ts +0 -1
- package/dist/components/ui/shared/collection-navigation.test.d.ts +0 -1
- package/dist/components/ui/shared/floating-position.test.d.ts +0 -1
- package/dist/components/ui/shared/listbox-popover-behavior.test.d.ts +0 -1
- package/dist/components/ui/shared/popover-controller.test.d.ts +0 -1
- package/dist/components/ui/shared/portal.test.d.ts +0 -1
- package/dist/components/ui/sidebar/sidebar.ssr.test.d.ts +0 -2
- package/dist/components/ui/sidebar/sidebar.test.d.ts +0 -1
- package/dist/components/ui/toast/toast.test.d.ts +0 -2
- package/dist/components/ui/toc/toc-helpers.test.d.ts +0 -1
- package/dist/components/ui/toc/toc.ssr.test.d.ts +0 -1
- package/dist/components/ui/toc/toc.test.d.ts +0 -1
- package/dist/lib/intl-date/parts.test.d.ts +0 -1
- package/dist/lib/intl-date/segments.test.d.ts +0 -1
- package/dist/lib/intl-date/selection.test.d.ts +0 -1
- package/dist/lib/mask/date-mask.test.d.ts +0 -1
- package/dist/lib/mask/input-mask.test.d.ts +0 -1
- package/dist/lib/radiant-view.d.ts +0 -43
- package/dist/lib/text-filter.test.d.ts +0 -1
- package/dist/styles/tokens/presets/radius.css +0 -45
- package/dist/styles/tokens/presets/spacing.css +0 -57
package/README.md
CHANGED
|
@@ -68,7 +68,7 @@ Convenience bundle (default theme + core primitives):
|
|
|
68
68
|
import '@ecopages/radiant-ui/radiant-ui.css';
|
|
69
69
|
```
|
|
70
70
|
|
|
71
|
-
Design tokens and themes: see [`
|
|
71
|
+
Design tokens and themes: see [`DESIGN.md`](./DESIGN.md). Component authoring: [`AGENTS.md`](./AGENTS.md).
|
|
72
72
|
|
|
73
73
|
## Story map
|
|
74
74
|
|
|
@@ -5,30 +5,35 @@ rui-alert {
|
|
|
5
5
|
}
|
|
6
6
|
@layer components {
|
|
7
7
|
.rui-alert {
|
|
8
|
-
|
|
8
|
+
position: relative;
|
|
9
|
+
border-radius: var(--radius-container, var(--radius-container));
|
|
9
10
|
font-size: var(--text-sm, var(--text-sm));
|
|
10
11
|
line-height: var(--tw-leading, var(--text-sm--line-height, calc(1.25 / 0.875)));
|
|
11
|
-
--tw-shadow:
|
|
12
|
+
--tw-shadow: var(--shadow-control);
|
|
12
13
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
13
14
|
}
|
|
14
15
|
.rui-alert--inline {
|
|
15
16
|
display: flex;
|
|
16
|
-
align-items:
|
|
17
|
-
gap: var(--spacing-
|
|
18
|
-
padding-inline: var(--spacing-
|
|
19
|
-
padding-block: var(--spacing-
|
|
17
|
+
align-items: center;
|
|
18
|
+
gap: var(--spacing-inline, var(--space-inline));
|
|
19
|
+
padding-inline: var(--spacing-control-x, var(--space-control-x));
|
|
20
|
+
padding-block: var(--spacing-control-y, var(--space-control-y));
|
|
21
|
+
}
|
|
22
|
+
.rui-alert--inline.rui-alert--dismissible {
|
|
23
|
+
padding-right: calc(var(--spacing, 0.25rem) * 2.5);
|
|
20
24
|
}
|
|
21
25
|
.rui-alert__icon {
|
|
22
26
|
display: inline-flex;
|
|
23
27
|
flex-shrink: 0;
|
|
28
|
+
align-items: center;
|
|
29
|
+
justify-content: center;
|
|
24
30
|
}
|
|
25
31
|
.rui-alert--banner {
|
|
26
|
-
|
|
27
|
-
margin-top: var(--spacing-4, var(--space-4));
|
|
32
|
+
margin-top: var(--spacing-stack, var(--space-stack));
|
|
28
33
|
display: flex;
|
|
29
34
|
flex-direction: column;
|
|
30
|
-
padding-block: var(--spacing-
|
|
31
|
-
padding-right: var(--spacing-
|
|
35
|
+
padding-block: var(--spacing-control-y, var(--space-control-y));
|
|
36
|
+
padding-right: var(--spacing-control-x, var(--space-control-x));
|
|
32
37
|
padding-left: var(--spacing-6, var(--space-6));
|
|
33
38
|
&::before {
|
|
34
39
|
content: '';
|
|
@@ -42,6 +47,51 @@ rui-alert {
|
|
|
42
47
|
opacity: 50%;
|
|
43
48
|
}
|
|
44
49
|
}
|
|
50
|
+
.rui-alert--banner.rui-alert--dismissible {
|
|
51
|
+
padding-right: calc(var(--spacing, 0.25rem) * 11);
|
|
52
|
+
}
|
|
53
|
+
.rui-alert__close {
|
|
54
|
+
display: inline-flex;
|
|
55
|
+
width: calc(var(--spacing, 0.25rem) * 7);
|
|
56
|
+
height: calc(var(--spacing, 0.25rem) * 7);
|
|
57
|
+
flex-shrink: 0;
|
|
58
|
+
cursor: pointer;
|
|
59
|
+
align-items: center;
|
|
60
|
+
justify-content: center;
|
|
61
|
+
border-radius: var(--radius-control, var(--radius-control));
|
|
62
|
+
color: currentcolor;
|
|
63
|
+
opacity: 65%;
|
|
64
|
+
transition-property: opacity;
|
|
65
|
+
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(0.4, 0, 0.2, 1)));
|
|
66
|
+
transition-duration: var(--tw-duration, var(--default-transition-duration, 150ms));
|
|
67
|
+
&:hover {
|
|
68
|
+
@media (hover: hover) {
|
|
69
|
+
opacity: 100%;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
&:focus-visible {
|
|
73
|
+
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
74
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
75
|
+
}
|
|
76
|
+
&:focus-visible {
|
|
77
|
+
--tw-ring-color: currentcolor;
|
|
78
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
79
|
+
--tw-ring-color: color-mix(in oklab, currentcolor 35%, transparent);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
&:focus-visible {
|
|
83
|
+
--tw-outline-style: none;
|
|
84
|
+
outline-style: none;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
.rui-alert--inline .rui-alert__close {
|
|
88
|
+
margin-left: auto;
|
|
89
|
+
}
|
|
90
|
+
.rui-alert--banner .rui-alert__close {
|
|
91
|
+
position: absolute;
|
|
92
|
+
top: calc(var(--spacing, 0.25rem) * 2.5);
|
|
93
|
+
right: calc(var(--spacing, 0.25rem) * 2.5);
|
|
94
|
+
}
|
|
45
95
|
.rui-alert__title {
|
|
46
96
|
margin-bottom: 0px;
|
|
47
97
|
--tw-font-weight: var(--font-weight-bold, 700);
|
|
@@ -53,71 +103,59 @@ rui-alert {
|
|
|
53
103
|
.rui-alert--info {
|
|
54
104
|
border-style: var(--tw-border-style);
|
|
55
105
|
border-width: 1px;
|
|
56
|
-
border-color: var(--color-
|
|
57
|
-
|
|
58
|
-
|
|
106
|
+
border-color: var(--color-info, var(--info));
|
|
107
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
108
|
+
border-color: color-mix(in oklab, var(--color-info, var(--info)) 30%, transparent);
|
|
109
|
+
}
|
|
110
|
+
background-color: var(--color-info-container, var(--info-container));
|
|
111
|
+
color: var(--color-on-info-container, var(--on-info-container));
|
|
59
112
|
}
|
|
60
113
|
.rui-alert--info.rui-alert--banner::before {
|
|
61
|
-
background-color: var(--color-
|
|
114
|
+
background-color: var(--color-info, var(--info));
|
|
62
115
|
opacity: 100%;
|
|
63
116
|
}
|
|
64
|
-
.rui-alert--info.rui-alert--banner .rui-alert__title, .rui-alert--info.rui-alert--banner
|
|
65
|
-
.rui-alert__description p, .rui-alert--info.rui-alert--banner
|
|
66
|
-
.rui-alert__description span, .rui-alert--info.rui-alert--banner
|
|
67
|
-
.rui-alert__description a {
|
|
68
|
-
color: var(--color-blue-700, oklch(48.8% 0.243 264.376));
|
|
69
|
-
}
|
|
70
117
|
.rui-alert--success {
|
|
71
118
|
border-style: var(--tw-border-style);
|
|
72
119
|
border-width: 1px;
|
|
73
|
-
border-color: var(--color-
|
|
74
|
-
|
|
75
|
-
|
|
120
|
+
border-color: var(--color-success, var(--success));
|
|
121
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
122
|
+
border-color: color-mix(in oklab, var(--color-success, var(--success)) 30%, transparent);
|
|
123
|
+
}
|
|
124
|
+
background-color: var(--color-success-container, var(--success-container));
|
|
125
|
+
color: var(--color-on-success-container, var(--on-success-container));
|
|
76
126
|
}
|
|
77
127
|
.rui-alert--success.rui-alert--banner::before {
|
|
78
|
-
background-color: var(--color-
|
|
128
|
+
background-color: var(--color-success, var(--success));
|
|
79
129
|
opacity: 100%;
|
|
80
130
|
}
|
|
81
|
-
.rui-alert--success.rui-alert--banner .rui-alert__title, .rui-alert--success.rui-alert--banner
|
|
82
|
-
.rui-alert__description p, .rui-alert--success.rui-alert--banner
|
|
83
|
-
.rui-alert__description span, .rui-alert--success.rui-alert--banner
|
|
84
|
-
.rui-alert__description a {
|
|
85
|
-
color: var(--color-emerald-700, oklch(50.8% 0.118 165.612));
|
|
86
|
-
}
|
|
87
131
|
.rui-alert--warning {
|
|
88
132
|
border-style: var(--tw-border-style);
|
|
89
133
|
border-width: 1px;
|
|
90
|
-
border-color: var(--color-
|
|
91
|
-
|
|
92
|
-
|
|
134
|
+
border-color: var(--color-warning, var(--warning));
|
|
135
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
136
|
+
border-color: color-mix(in oklab, var(--color-warning, var(--warning)) 30%, transparent);
|
|
137
|
+
}
|
|
138
|
+
background-color: var(--color-warning-container, var(--warning-container));
|
|
139
|
+
color: var(--color-on-warning-container, var(--on-warning-container));
|
|
93
140
|
}
|
|
94
141
|
.rui-alert--warning.rui-alert--banner::before {
|
|
95
|
-
background-color: var(--color-
|
|
142
|
+
background-color: var(--color-warning, var(--warning));
|
|
96
143
|
opacity: 100%;
|
|
97
144
|
}
|
|
98
|
-
.rui-alert--warning.rui-alert--banner .rui-alert__title, .rui-alert--warning.rui-alert--banner
|
|
99
|
-
.rui-alert__description p, .rui-alert--warning.rui-alert--banner
|
|
100
|
-
.rui-alert__description span, .rui-alert--warning.rui-alert--banner
|
|
101
|
-
.rui-alert__description a {
|
|
102
|
-
color: var(--color-yellow-700, oklch(55.4% 0.135 66.442));
|
|
103
|
-
}
|
|
104
145
|
.rui-alert--error {
|
|
105
146
|
border-style: var(--tw-border-style);
|
|
106
147
|
border-width: 1px;
|
|
107
|
-
border-color: var(--color-
|
|
108
|
-
|
|
109
|
-
|
|
148
|
+
border-color: var(--color-error, var(--error));
|
|
149
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
150
|
+
border-color: color-mix(in oklab, var(--color-error, var(--error)) 30%, transparent);
|
|
151
|
+
}
|
|
152
|
+
background-color: var(--color-error-container, var(--error-container));
|
|
153
|
+
color: var(--color-on-error-container, var(--on-error-container));
|
|
110
154
|
}
|
|
111
155
|
.rui-alert--error.rui-alert--banner::before {
|
|
112
|
-
background-color: var(--color-
|
|
156
|
+
background-color: var(--color-error, var(--error));
|
|
113
157
|
opacity: 100%;
|
|
114
158
|
}
|
|
115
|
-
.rui-alert--error.rui-alert--banner .rui-alert__title, .rui-alert--error.rui-alert--banner
|
|
116
|
-
.rui-alert__description p, .rui-alert--error.rui-alert--banner
|
|
117
|
-
.rui-alert__description span, .rui-alert--error.rui-alert--banner
|
|
118
|
-
.rui-alert__description a {
|
|
119
|
-
color: var(--color-red-700, oklch(50.5% 0.213 27.518));
|
|
120
|
-
}
|
|
121
159
|
}
|
|
122
160
|
@property --tw-shadow {
|
|
123
161
|
syntax: "*";
|
|
@@ -1,16 +1,54 @@
|
|
|
1
1
|
import type { JsxHtmlPropsWithChildren } from '@ecopages/jsx';
|
|
2
2
|
import type { RuiAlertProps, RuiAlertVariant } from './alert.script';
|
|
3
|
+
/** Registers `<rui-alert>` when the JSX helpers are imported. */
|
|
4
|
+
import './alert.script';
|
|
3
5
|
export type RuiAlertIconProps = JsxHtmlPropsWithChildren<{
|
|
4
6
|
variant?: RuiAlertVariant;
|
|
5
7
|
}>;
|
|
6
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* Default variant icon for `layout="inline"`. Pass `children` to override.
|
|
10
|
+
*
|
|
11
|
+
* @cssclass rui-alert__icon - Icon wrapper (`inline` only).
|
|
12
|
+
*
|
|
13
|
+
* @remarks Default SVG is `aria-hidden="true"` — convey severity in adjacent
|
|
14
|
+
* text, not by icon alone.
|
|
15
|
+
*/
|
|
7
16
|
export declare function RuiAlertIcon({ variant, class: className, children, ...props }: RuiAlertIconProps): import("@ecopages/jsx").JsxRenderable;
|
|
8
17
|
export type RuiAlertTitleProps = JsxHtmlPropsWithChildren;
|
|
9
|
-
/**
|
|
18
|
+
/**
|
|
19
|
+
* Heading for `layout="banner"` alerts.
|
|
20
|
+
*
|
|
21
|
+
* @cssclass rui-alert__title - Banner headline.
|
|
22
|
+
*/
|
|
10
23
|
export declare function RuiAlertTitle({ children, class: className, ...props }: RuiAlertTitleProps): import("@ecopages/jsx").JsxRenderable;
|
|
11
24
|
export type RuiAlertDescriptionProps = JsxHtmlPropsWithChildren;
|
|
12
|
-
/**
|
|
25
|
+
/**
|
|
26
|
+
* Body copy for `layout="banner"` alerts.
|
|
27
|
+
*
|
|
28
|
+
* @cssclass rui-alert__description - Banner body.
|
|
29
|
+
*/
|
|
13
30
|
export declare function RuiAlertDescription({ children, class: className, ...props }: RuiAlertDescriptionProps): import("@ecopages/jsx").JsxRenderable;
|
|
14
|
-
export
|
|
31
|
+
export type RuiAlertComponentProps = JsxHtmlPropsWithChildren<RuiAlertProps & {
|
|
15
32
|
slot?: string;
|
|
16
|
-
}
|
|
33
|
+
}>;
|
|
34
|
+
/**
|
|
35
|
+
* Status alert with optional dismiss control.
|
|
36
|
+
*
|
|
37
|
+
* @remarks
|
|
38
|
+
* Importable JSX helper around `<rui-alert>`. Owns the `role="alert"` surface and
|
|
39
|
+
* BEM classes; the host owns dismiss (`rui-close` / `dismiss()`).
|
|
40
|
+
*
|
|
41
|
+
* Variant tones map to semantic theme roles (`info`, `success`, `warning`, `error`)
|
|
42
|
+
* via `.rui-alert--*` — not palette steps. See `alert.css` and DESIGN.md status roles.
|
|
43
|
+
*
|
|
44
|
+
* @cssclass rui-alert - Root surface (`role="alert"`).
|
|
45
|
+
* @cssclass rui-alert--info - Info tone (default).
|
|
46
|
+
* @cssclass rui-alert--success - Success tone.
|
|
47
|
+
* @cssclass rui-alert--warning - Warning tone.
|
|
48
|
+
* @cssclass rui-alert--error - Error tone.
|
|
49
|
+
* @cssclass rui-alert--inline - Compact row layout (icon + text).
|
|
50
|
+
* @cssclass rui-alert--banner - Full-width advisory with left accent rail.
|
|
51
|
+
* @cssclass rui-alert--dismissible - Layout adjustments for the dismiss control.
|
|
52
|
+
* @cssclass rui-alert__close - Dismiss button when `dismissible` is set.
|
|
53
|
+
*/
|
|
54
|
+
export declare function RuiAlert({ children, variant, layout, dismissible, closeLabel, class: className, ...props }: RuiAlertComponentProps): import("@ecopages/jsx").JsxRenderable;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { RadiantElement } from '@ecopages/radiant';
|
|
2
|
+
import type { EventEmitter } from '@ecopages/radiant/tools/event-emitter';
|
|
2
3
|
export type RuiAlertVariant = 'info' | 'success' | 'warning' | 'error';
|
|
3
4
|
export type RuiAlertLayout = 'inline' | 'banner';
|
|
4
5
|
export type RuiAlertProps = {
|
|
@@ -10,20 +11,66 @@ export type RuiAlertProps = {
|
|
|
10
11
|
* Default: `inline`.
|
|
11
12
|
*/
|
|
12
13
|
layout?: RuiAlertLayout;
|
|
14
|
+
/**
|
|
15
|
+
* When `true`, renders a dismiss control and allows `dismiss()`.
|
|
16
|
+
* Default: `false`.
|
|
17
|
+
*/
|
|
18
|
+
dismissible?: boolean;
|
|
19
|
+
/** Accessible name for the dismiss control. Default: `Dismiss`. */
|
|
20
|
+
closeLabel?: string;
|
|
21
|
+
};
|
|
22
|
+
export type RuiAlertCloseDetail = {
|
|
23
|
+
reason: 'dismiss';
|
|
24
|
+
};
|
|
25
|
+
type RuiAlertBindings = {
|
|
26
|
+
variant: RuiAlertVariant;
|
|
27
|
+
layout: RuiAlertLayout;
|
|
28
|
+
dismissible: boolean;
|
|
29
|
+
closeLabel: string;
|
|
13
30
|
};
|
|
14
31
|
/**
|
|
15
32
|
* `<rui-alert>` — a brief, important message that attracts attention
|
|
16
33
|
* without interrupting the user's task.
|
|
17
34
|
*
|
|
18
|
-
* Compose with `
|
|
19
|
-
* `RuiAlertDescription`
|
|
35
|
+
* Compose with the `RuiAlert` view (surface + optional dismiss control) and
|
|
36
|
+
* `RuiAlertIcon` / `RuiAlertTitle` / `RuiAlertDescription` as needed.
|
|
37
|
+
*
|
|
38
|
+
* Prefer injecting or revealing alerts at the moment they become relevant;
|
|
39
|
+
* static copy that is always present should not use `role="alert"`.
|
|
40
|
+
*
|
|
41
|
+
* @summary Status message host; optional dismiss removes the element.
|
|
20
42
|
*
|
|
21
43
|
* @see https://www.w3.org/WAI/ARIA/apg/patterns/alert/
|
|
22
44
|
*
|
|
23
45
|
* @element rui-alert
|
|
24
|
-
*
|
|
46
|
+
*
|
|
47
|
+
* @attr {('info'|'success'|'warning'|'error')} variant - Visual tone. Default: `info`.
|
|
48
|
+
* @attr {('inline'|'banner')} layout - Layout mode. Default: `inline`.
|
|
49
|
+
* @attr {boolean} dismissible - Show dismiss control (via the view). Default: `false`.
|
|
50
|
+
* @attr {string} close-label - Accessible name for dismiss. Default: `Dismiss`.
|
|
51
|
+
*
|
|
52
|
+
* @slot - Alert content. Prefer the `RuiAlert` view so the `role="alert"` surface
|
|
53
|
+
* and BEM classes stay in sync with `variant` / `layout` / `dismissible`.
|
|
54
|
+
*
|
|
55
|
+
* @fires rui-close - Emitted when the alert is dismissed; then the host is removed.
|
|
56
|
+
*
|
|
57
|
+
* @remarks
|
|
58
|
+
* Styling classes live on the JSX view helpers (`@cssclass`). This element owns
|
|
59
|
+
* dismiss behavior — default `render()` is a passthrough slot so prop updates do
|
|
60
|
+
* not rebuild the composed light-DOM surface.
|
|
61
|
+
*
|
|
62
|
+
* **Why a custom element?** Dismiss emits `rui-close` and removes the host from
|
|
63
|
+
* the DOM without re-projecting slot content. A presentational-only wrapper would
|
|
64
|
+
* need equivalent lifecycle wiring; the CE keeps that behavior self-contained.
|
|
25
65
|
*/
|
|
26
|
-
export declare class RuiAlert extends RadiantElement {
|
|
66
|
+
export declare class RuiAlert extends RadiantElement<RuiAlertBindings> {
|
|
27
67
|
variant: RuiAlertVariant;
|
|
28
68
|
layout: RuiAlertLayout;
|
|
69
|
+
dismissible: boolean;
|
|
70
|
+
closeLabel: string;
|
|
71
|
+
closeEvent: EventEmitter<RuiAlertCloseDetail>;
|
|
72
|
+
/** Dismiss the alert: emit `rui-close`, then remove the host from the DOM. */
|
|
73
|
+
dismiss(): void;
|
|
74
|
+
onCloseClick(event: Event): void;
|
|
29
75
|
}
|
|
76
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { RuiAlert as RuiAlertElement, type RuiAlertProps, type RuiAlertVariant, type RuiAlertLayout, } from './alert.script';
|
|
1
|
+
export { RuiAlert as RuiAlertElement, type RuiAlertCloseDetail, type RuiAlertProps, type RuiAlertVariant, type RuiAlertLayout, } from './alert.script';
|
|
2
2
|
export { RuiAlert, RuiAlertIcon, RuiAlertTitle, RuiAlertDescription } from './alert';
|
|
3
|
-
export type { RuiAlertIconProps, RuiAlertTitleProps, RuiAlertDescriptionProps } from './alert';
|
|
3
|
+
export type { RuiAlertComponentProps, RuiAlertIconProps, RuiAlertTitleProps, RuiAlertDescriptionProps } from './alert';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{RadiantElement as
|
|
1
|
+
import{RadiantElement as _t,bound as Rt,customElement as kt,event as St,onEvent as Dt,prop as B}from"@ecopages/radiant";var ot,st,lt,at,ut,ct,ft,dt,pt,ht,mt,vt;function xt(t,e,n,c,y,E){var p,s,L,O,D,V,R,U=Symbol.metadata||Symbol.for("Symbol.metadata"),W=Object.defineProperty,$=Object.create,X=[$(null),$(null)],Y=e.length;function C(r,h,f){return function(i,o){h&&(o=i,i=t);for(var m=0;m<r.length;m++)o=r[m].apply(i,f?[o]:[]);return f?o:i}}function g(r,h,f,i){if(typeof r!="function"&&(i||r!==void 0))throw new TypeError(h+" must "+(f||"be")+" a function"+(i?"":" or undefined"));return r}function Z(r,h,f,i,o,m,x,d,b,_,P){function K(a){if(!P(a))throw new TypeError("Attempted to access private element on non-instance")}var q=[].concat(h[0]),F=h[3],G=!x,k=o===1,N=o===3,tt=o===4,T=o===2;function M(a,A,it){return function(z,nt){return A&&(nt=z,z=r),it&&it(z),l[a].call(z,nt)}}if(!G){var l={},J=[],w=N?"get":tt||k?"set":"value";if(b?(_||k?l={get:bt(function(){return F(this)},i,"get"),set:function(a){h[4](this,a)}}:l[w]=F,_||bt(l[w],i,T?"":w)):_||(l=Object.getOwnPropertyDescriptor(r,i)),!_&&!b){if((s=X[+d][i])&&(s^o)!==7)throw Error("Decorating two elements with the same name ("+l[w].name+") is not supported yet");X[+d][i]=o<3?1:o}}for(var u=r,I=q.length-1;I>=0;I-=f?2:1){var et=g(q[I],"A decorator","be",!0),rt=f?q[I-1]:void 0,Q={},S={kind:["field","accessor","method","getter","setter","class"][o],name:i,metadata:p,addInitializer:function(a,A){if(a.v)throw new TypeError("attempted to call addInitializer after decoration was finished");g(A,"An initializer","be",!0),m.push(A)}.bind(null,Q)};if(G)s=et.call(rt,u,S),Q.v=1,g(s,"class decorators","return")&&(u=s);else if(S.static=d,S.private=b,s=S.access={has:b?P.bind():function(a){return i in a}},tt||(s.get=b?T?function(a){return K(a),l.value}:M("get",0,K):function(a){return a[i]}),T||N||(s.set=b?M("set",0,K):function(a,A){a[i]=A}),u=et.call(rt,k?{get:l.get,set:l.set}:l[w],S),Q.v=1,k){if(typeof u=="object"&&u)(s=g(u.get,"accessor.get"))&&(l.get=s),(s=g(u.set,"accessor.set"))&&(l.set=s),(s=g(u.init,"accessor.init"))&&J.unshift(s);else if(u!==void 0)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else g(u,(_?"field":"method")+" decorators","return")&&(_?J.unshift(u):l[w]=u)}return o<2&&x.push(C(J,d,1),C(m,d,0)),_||G||(b?k?x.splice(-1,0,M("get",d),M("set",d)):x.push(T?l[w]:g.call.bind(l[w])):W(r,i,l)),u}function H(r){return W(r,U,{configurable:!0,enumerable:!0,value:p})}return E!==void 0&&(p=E[U]),p=$(p??null),D=[],V=function(r){r&&D.push(C(r))},R=function(r,h){for(var f=0;f<n.length;f++){var i=n[f],o=i[1],m=7&o;if((8&o)==r&&!m==h){var x=i[2],d=!!i[3],b=16&o;Z(r?t:t.prototype,i,b,d?"#"+x:Et(x),m,m<2?[]:r?O=O||[]:L=L||[],D,!!r,d,h,r&&d?function(_){return jt(_)===t}:y)}}},R(8,0),R(0,0),R(8,1),R(0,1),V(L),V(O),s=D,Y||H(t),{e:s,get c(){var r=[];return Y&&[H(t=Z(t,[e],c,t.name,5,r)),C(r,1)]}}}function Et(t){var e=At(t,"string");return typeof e=="symbol"?e:e+""}function At(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var c=n.call(t,e||"default");if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function bt(t,e,n){typeof e=="symbol"&&(e=(e=e.description)?"["+e+"]":"");try{Object.defineProperty(t,"name",{configurable:!0,value:n?n+" "+e:e})}catch{}return t}function jt(t){if(Object(t)!==t)throw TypeError("right-hand side of 'in' should be an object, got "+(t!==null?typeof t:"null"));return t}var gt,yt=class extends _t{static{({e:[lt,at,ut,ct,ft,dt,pt,ht,mt,vt,ot],c:[gt,st]}=xt(this,[kt("rui-alert")],[[B({type:String,reflect:!0,defaultValue:"info"}),0,"variant"],[B({type:String,reflect:!0,defaultValue:"inline"}),0,"layout"],[B({type:Boolean,reflect:!0,defaultValue:!1}),0,"dismissible"],[B({type:String,attribute:"close-label",defaultValue:"Dismiss"}),0,"closeLabel"],[St({name:"rui-close",bubbles:!0,composed:!0}),0,"closeEvent"],[Rt,2,"dismiss"],[Dt({selector:"[data-alert-close]",type:"click"}),2,"onCloseClick"]],0,void 0,_t))}constructor(...e){super(...e),vt(this)}variant=(ot(this),lt(this));layout=(at(this),ut(this));dismissible=(ct(this),ft(this));closeLabel=(dt(this),pt(this));closeEvent=(ht(this),mt(this));dismiss(){this.isConnected&&(this.closeEvent.emit({reason:"dismiss"}),this.remove())}onCloseClick(e){e.stopPropagation(),this.dismissible&&this.dismiss()}static{st()}};import{jsx as v,jsxs as wt}from"@ecopages/jsx/jsx-runtime";function j(...t){return t.filter(Boolean).join(" ")}var Ct={info:["M12 16v-4","M12 8h.01","M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20z"],success:["M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20z","m9 12 2 2 4-4"],warning:["m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3","M12 9v4","M12 17h.01"],error:["M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20z","m15 9-6 6","m9 9 6 6"]};function Tt({variant:t="info",class:e,children:n,...c}){if(n!=null)return v("span",{...c,class:j("rui-alert__icon",e),children:n});let y=Ct[t],E=Array.isArray(y)?y:[y];return v("span",{...c,class:j("rui-alert__icon",e),"aria-hidden":"true",children:v("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:E.map(p=>v("path",{d:p}))})})}function Mt({children:t,class:e,...n}){return v("p",{...n,class:j("rui-alert__title",e),children:t})}function It({children:t,class:e,...n}){return v("div",{...n,class:j("rui-alert__description",e),children:t})}function zt({children:t,variant:e="info",layout:n="inline",dismissible:c=!1,closeLabel:y="Dismiss",class:E,...p}){return v("rui-alert",{...p,variant:e,layout:n,dismissible:c,"close-label":y,children:wt("div",{class:j("rui-alert",`rui-alert--${e}`,`rui-alert--${n}`,c&&"rui-alert--dismissible",E),role:"alert",children:[t,c?v("button",{type:"button",class:"rui-alert__close","data-alert-close":!0,"aria-label":y||"Dismiss",children:wt("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true",children:[v("path",{d:"M18 6 6 18"}),v("path",{d:"m6 6 12 12"})]})}):null]})})}export{zt as RuiAlert,It as RuiAlertDescription,gt as RuiAlertElement,Tt as RuiAlertIcon,Mt as RuiAlertTitle};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/components/ui/alert/alert.script.tsx", "../../../../src/components/ui/alert/alert.tsx", "../../../../src/lib/cx.ts"
|
|
4
|
-
"sourcesContent": ["let _initClass, _init_variant, _init_extra_variant, _init_layout, _init_extra_layout;\nfunction _applyDecs(e, t, n, r, o, i) { var a, c, u, s, f, l, p, d = Symbol.metadata || Symbol.for(\"Symbol.metadata\"), m = Object.defineProperty, h = Object.create, y = [h(null), h(null)], v = t.length; function g(t, n, r) { return function (o, i) { n && (i = o, o = e); for (var a = 0; a < t.length; a++) i = t[a].apply(o, r ? [i] : []); return r ? i : o; }; } function b(e, t, n, r) { if (\"function\" != typeof e && (r || void 0 !== e)) throw new TypeError(t + \" must \" + (n || \"be\") + \" a function\" + (r ? \"\" : \" or undefined\")); return e; } function applyDec(e, t, n, r, o, i, u, s, f, l, p) { function d(e) { if (!p(e)) throw new TypeError(\"Attempted to access private element on non-instance\"); } var h = [].concat(t[0]), v = t[3], w = !u, D = 1 === o, S = 3 === o, j = 4 === o, E = 2 === o; function I(t, n, r) { return function (o, i) { return n && (i = o, o = e), r && r(o), P[t].call(o, i); }; } if (!w) { var P = {}, k = [], F = S ? \"get\" : j || D ? \"set\" : \"value\"; if (f ? (l || D ? P = { get: _setFunctionName(function () { return v(this); }, r, \"get\"), set: function (e) { t[4](this, e); } } : P[F] = v, l || _setFunctionName(P[F], r, E ? \"\" : F)) : l || (P = Object.getOwnPropertyDescriptor(e, r)), !l && !f) { if ((c = y[+s][r]) && 7 !== (c ^ o)) throw Error(\"Decorating two elements with the same name (\" + P[F].name + \") is not supported yet\"); y[+s][r] = o < 3 ? 1 : o; } } for (var N = e, O = h.length - 1; O >= 0; O -= n ? 2 : 1) { var T = b(h[O], \"A decorator\", \"be\", !0), z = n ? h[O - 1] : void 0, A = {}, H = { kind: [\"field\", \"accessor\", \"method\", \"getter\", \"setter\", \"class\"][o], name: r, metadata: a, addInitializer: function (e, t) { if (e.v) throw new TypeError(\"attempted to call addInitializer after decoration was finished\"); b(t, \"An initializer\", \"be\", !0), i.push(t); }.bind(null, A) }; if (w) c = T.call(z, N, H), A.v = 1, b(c, \"class decorators\", \"return\") && (N = c);else if (H.static = s, H.private = f, c = H.access = { has: f ? p.bind() : function (e) { return r in e; } }, j || (c.get = f ? E ? function (e) { return d(e), P.value; } : I(\"get\", 0, d) : function (e) { return e[r]; }), E || S || (c.set = f ? I(\"set\", 0, d) : function (e, t) { e[r] = t; }), N = T.call(z, D ? { get: P.get, set: P.set } : P[F], H), A.v = 1, D) { if (\"object\" == typeof N && N) (c = b(N.get, \"accessor.get\")) && (P.get = c), (c = b(N.set, \"accessor.set\")) && (P.set = c), (c = b(N.init, \"accessor.init\")) && k.unshift(c);else if (void 0 !== N) throw new TypeError(\"accessor decorators must return an object with get, set, or init properties or undefined\"); } else b(N, (l ? \"field\" : \"method\") + \" decorators\", \"return\") && (l ? k.unshift(N) : P[F] = N); } return o < 2 && u.push(g(k, s, 1), g(i, s, 0)), l || w || (f ? D ? u.splice(-1, 0, I(\"get\", s), I(\"set\", s)) : u.push(E ? P[F] : b.call.bind(P[F])) : m(e, r, P)), N; } function w(e) { return m(e, d, { configurable: !0, enumerable: !0, value: a }); } return void 0 !== i && (a = i[d]), a = h(null == a ? null : a), f = [], l = function (e) { e && f.push(g(e)); }, p = function (t, r) { for (var i = 0; i < n.length; i++) { var a = n[i], c = a[1], l = 7 & c; if ((8 & c) == t && !l == r) { var p = a[2], d = !!a[3], m = 16 & c; applyDec(t ? e : e.prototype, a, m, d ? \"#\" + p : _toPropertyKey(p), l, l < 2 ? [] : t ? s = s || [] : u = u || [], f, !!t, d, r, t && d ? function (t) { return _checkInRHS(t) === e; } : o); } } }, p(8, 0), p(0, 0), p(8, 1), p(0, 1), l(u), l(s), c = f, v || w(e), { e: c, get c() { var n = []; return v && [w(e = applyDec(e, [t], r, e.name, 5, n)), g(n, 1)]; } }; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _setFunctionName(e, t, n) { \"symbol\" == typeof t && (t = (t = t.description) ? \"[\" + t + \"]\" : \"\"); try { Object.defineProperty(e, \"name\", { configurable: !0, value: n ? n + \" \" + t : t }); } catch (e) {} return e; }\nfunction _checkInRHS(e) { if (Object(e) !== e) throw TypeError(\"right-hand side of 'in' should be an object, got \" + (null !== e ? typeof e : \"null\")); return e; }\nimport { RadiantElement, customElement, prop } from \"@ecopages/radiant\";\nlet _RuiAlert;\nclass RuiAlert extends RadiantElement {\n static {\n ({\n e: [_init_variant, _init_extra_variant, _init_layout, _init_extra_layout],\n c: [_RuiAlert, _initClass]\n } = _applyDecs(this, [customElement(\"rui-alert\")], [[prop({\n type: String,\n reflect: true,\n defaultValue: \"info\"\n }), 0, \"variant\"], [prop({\n type: String,\n reflect: true,\n defaultValue: \"inline\"\n }), 0, \"layout\"]], 0, void 0, RadiantElement));\n }\n constructor(...args) {\n super(...args);\n _init_extra_layout(this);\n }\n variant = _init_variant(this);\n layout = (_init_extra_variant(this), _init_layout(this));\n static {\n _initClass();\n }\n}\nexport { _RuiAlert as RuiAlert };", "import { jsx } from \"@ecopages/jsx/jsx-runtime\";\nimport { cx } from \"@/lib/cx\";\nimport { defineRadiantView } from \"@/lib/radiant-view\";\nimport { RuiAlert as RuiAlertElement } from \"./alert.script\";\nconst ALERT_ICON_PATHS = {\n info: [\"M12 16v-4\", \"M12 8h.01\", \"M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20z\"],\n success: [\"M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20z\", \"m9 12 2 2 4-4\"],\n warning: [\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\", \"M12 9v4\", \"M12 17h.01\"],\n error: [\"M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20z\", \"m15 9-6 6\", \"m9 9 6 6\"]\n};\nexport function RuiAlertIcon({\n variant = \"info\",\n class: className,\n children,\n ...props\n}) {\n if (children != null) {\n return /* @__PURE__ */jsx(\"span\", {\n ...props,\n class: cx(\"rui-alert__icon\", className),\n children\n });\n }\n const paths = ALERT_ICON_PATHS[variant];\n const d = Array.isArray(paths) ? paths : [paths];\n return /* @__PURE__ */jsx(\"span\", {\n ...props,\n class: cx(\"rui-alert__icon\", className),\n \"aria-hidden\": \"true\",\n children: /* @__PURE__ */jsx(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: \"20\",\n height: \"20\",\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n stroke: \"currentColor\",\n \"stroke-width\": \"2\",\n \"stroke-linecap\": \"round\",\n \"stroke-linejoin\": \"round\",\n children: d.map(path => /* @__PURE__ */jsx(\"path\", {\n d: path\n }))\n })\n });\n}\nexport function RuiAlertTitle({\n children,\n class: className,\n ...props\n}) {\n return /* @__PURE__ */jsx(\"p\", {\n ...props,\n class: cx(\"rui-alert__title\", className),\n children\n });\n}\nexport function RuiAlertDescription({\n children,\n class: className,\n ...props\n}) {\n return /* @__PURE__ */jsx(\"div\", {\n ...props,\n class: cx(\"rui-alert__description\", className),\n children\n });\n}\nexport const RuiAlert = defineRadiantView(RuiAlertElement, ({\n variant = \"info\",\n layout = \"inline\",\n class: className,\n children,\n ...props\n}) => /* @__PURE__ */jsx(\"rui-alert\", {\n ...props,\n variant,\n layout,\n children: /* @__PURE__ */jsx(\"div\", {\n class: cx(\"rui-alert\", `rui-alert--${variant}`, `rui-alert--${layout}`, className),\n role: \"alert\",\n children\n })\n}), {\n stylesheets: [\"./alert.css\"]\n});", "export function cx(...parts) {\n return parts.filter(Boolean).join(\" \");\n}", "const RADIANT_VIEW_ELEMENT = /* @__PURE__ */Symbol.for(\"@ecopages/storybook-radiant.viewElement\");\nconst RADIANT_SCRIPT_MODULE = /* @__PURE__ */Symbol.for(\"@ecopages/storybook-radiant.scriptModule\");\nconst RADIANT_SCRIPT_EXPORT = /* @__PURE__ */Symbol.for(\"@ecopages/storybook-radiant.scriptExport\");\nconst RADIANT_VIEW_MODULE = /* @__PURE__ */Symbol.for(\"@ecopages/storybook-radiant.viewModule\");\nfunction linkViewToElement(view, element) {\n view[RADIANT_VIEW_ELEMENT] = element;\n const ssrModule = element[RADIANT_SCRIPT_MODULE];\n if (ssrModule) {\n view[RADIANT_SCRIPT_MODULE] = ssrModule;\n view[RADIANT_SCRIPT_EXPORT] = element[RADIANT_SCRIPT_EXPORT] ?? element.name;\n }\n}\nexport function defineRadiantView(element, render, _options) {\n const view = args => render(args);\n linkViewToElement(view, element);\n return view;\n}\nexport function attachRadiantStylesheets(target, _stylesheets, moduleUrl) {\n const view = target;\n view[RADIANT_VIEW_MODULE] = moduleUrl;\n return target;\n}\nexport function syncRadiantViewMetadata(view) {\n const element = view[RADIANT_VIEW_ELEMENT];\n if (element) {\n linkViewToElement(view, element);\n }\n}"],
|
|
5
|
-
"mappings": "AAMA,OAAS,kBAAAA,GAAgB,iBAAAC,GAAe,QAAAC,
|
|
6
|
-
"names": ["RadiantElement", "customElement", "prop", "_initClass", "_init_variant", "_init_extra_variant", "_init_layout", "_init_extra_layout", "
|
|
3
|
+
"sources": ["../../../../src/components/ui/alert/alert.script.tsx", "../../../../src/components/ui/alert/alert.tsx", "../../../../src/lib/cx.ts"],
|
|
4
|
+
"sourcesContent": ["let _initProto, _initClass, _init_variant, _init_extra_variant, _init_layout, _init_extra_layout, _init_dismissible, _init_extra_dismissible, _init_closeLabel, _init_extra_closeLabel, _init_closeEvent, _init_extra_closeEvent;\nfunction _applyDecs(e, t, n, r, o, i) { var a, c, u, s, f, l, p, d = Symbol.metadata || Symbol.for(\"Symbol.metadata\"), m = Object.defineProperty, h = Object.create, y = [h(null), h(null)], v = t.length; function g(t, n, r) { return function (o, i) { n && (i = o, o = e); for (var a = 0; a < t.length; a++) i = t[a].apply(o, r ? [i] : []); return r ? i : o; }; } function b(e, t, n, r) { if (\"function\" != typeof e && (r || void 0 !== e)) throw new TypeError(t + \" must \" + (n || \"be\") + \" a function\" + (r ? \"\" : \" or undefined\")); return e; } function applyDec(e, t, n, r, o, i, u, s, f, l, p) { function d(e) { if (!p(e)) throw new TypeError(\"Attempted to access private element on non-instance\"); } var h = [].concat(t[0]), v = t[3], w = !u, D = 1 === o, S = 3 === o, j = 4 === o, E = 2 === o; function I(t, n, r) { return function (o, i) { return n && (i = o, o = e), r && r(o), P[t].call(o, i); }; } if (!w) { var P = {}, k = [], F = S ? \"get\" : j || D ? \"set\" : \"value\"; if (f ? (l || D ? P = { get: _setFunctionName(function () { return v(this); }, r, \"get\"), set: function (e) { t[4](this, e); } } : P[F] = v, l || _setFunctionName(P[F], r, E ? \"\" : F)) : l || (P = Object.getOwnPropertyDescriptor(e, r)), !l && !f) { if ((c = y[+s][r]) && 7 !== (c ^ o)) throw Error(\"Decorating two elements with the same name (\" + P[F].name + \") is not supported yet\"); y[+s][r] = o < 3 ? 1 : o; } } for (var N = e, O = h.length - 1; O >= 0; O -= n ? 2 : 1) { var T = b(h[O], \"A decorator\", \"be\", !0), z = n ? h[O - 1] : void 0, A = {}, H = { kind: [\"field\", \"accessor\", \"method\", \"getter\", \"setter\", \"class\"][o], name: r, metadata: a, addInitializer: function (e, t) { if (e.v) throw new TypeError(\"attempted to call addInitializer after decoration was finished\"); b(t, \"An initializer\", \"be\", !0), i.push(t); }.bind(null, A) }; if (w) c = T.call(z, N, H), A.v = 1, b(c, \"class decorators\", \"return\") && (N = c);else if (H.static = s, H.private = f, c = H.access = { has: f ? p.bind() : function (e) { return r in e; } }, j || (c.get = f ? E ? function (e) { return d(e), P.value; } : I(\"get\", 0, d) : function (e) { return e[r]; }), E || S || (c.set = f ? I(\"set\", 0, d) : function (e, t) { e[r] = t; }), N = T.call(z, D ? { get: P.get, set: P.set } : P[F], H), A.v = 1, D) { if (\"object\" == typeof N && N) (c = b(N.get, \"accessor.get\")) && (P.get = c), (c = b(N.set, \"accessor.set\")) && (P.set = c), (c = b(N.init, \"accessor.init\")) && k.unshift(c);else if (void 0 !== N) throw new TypeError(\"accessor decorators must return an object with get, set, or init properties or undefined\"); } else b(N, (l ? \"field\" : \"method\") + \" decorators\", \"return\") && (l ? k.unshift(N) : P[F] = N); } return o < 2 && u.push(g(k, s, 1), g(i, s, 0)), l || w || (f ? D ? u.splice(-1, 0, I(\"get\", s), I(\"set\", s)) : u.push(E ? P[F] : b.call.bind(P[F])) : m(e, r, P)), N; } function w(e) { return m(e, d, { configurable: !0, enumerable: !0, value: a }); } return void 0 !== i && (a = i[d]), a = h(null == a ? null : a), f = [], l = function (e) { e && f.push(g(e)); }, p = function (t, r) { for (var i = 0; i < n.length; i++) { var a = n[i], c = a[1], l = 7 & c; if ((8 & c) == t && !l == r) { var p = a[2], d = !!a[3], m = 16 & c; applyDec(t ? e : e.prototype, a, m, d ? \"#\" + p : _toPropertyKey(p), l, l < 2 ? [] : t ? s = s || [] : u = u || [], f, !!t, d, r, t && d ? function (t) { return _checkInRHS(t) === e; } : o); } } }, p(8, 0), p(0, 0), p(8, 1), p(0, 1), l(u), l(s), c = f, v || w(e), { e: c, get c() { var n = []; return v && [w(e = applyDec(e, [t], r, e.name, 5, n)), g(n, 1)]; } }; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _setFunctionName(e, t, n) { \"symbol\" == typeof t && (t = (t = t.description) ? \"[\" + t + \"]\" : \"\"); try { Object.defineProperty(e, \"name\", { configurable: !0, value: n ? n + \" \" + t : t }); } catch (e) {} return e; }\nfunction _checkInRHS(e) { if (Object(e) !== e) throw TypeError(\"right-hand side of 'in' should be an object, got \" + (null !== e ? typeof e : \"null\")); return e; }\nimport { RadiantElement, bound, customElement, event, onEvent, prop } from \"@ecopages/radiant\";\nlet _RuiAlert;\nclass RuiAlert extends RadiantElement {\n static {\n ({\n e: [_init_variant, _init_extra_variant, _init_layout, _init_extra_layout, _init_dismissible, _init_extra_dismissible, _init_closeLabel, _init_extra_closeLabel, _init_closeEvent, _init_extra_closeEvent, _initProto],\n c: [_RuiAlert, _initClass]\n } = _applyDecs(this, [customElement(\"rui-alert\")], [[prop({\n type: String,\n reflect: true,\n defaultValue: \"info\"\n }), 0, \"variant\"], [prop({\n type: String,\n reflect: true,\n defaultValue: \"inline\"\n }), 0, \"layout\"], [prop({\n type: Boolean,\n reflect: true,\n defaultValue: false\n }), 0, \"dismissible\"], [prop({\n type: String,\n attribute: \"close-label\",\n defaultValue: \"Dismiss\"\n }), 0, \"closeLabel\"], [event({\n name: \"rui-close\",\n bubbles: true,\n composed: true\n }), 0, \"closeEvent\"], [bound, 2, \"dismiss\"], [onEvent({\n selector: \"[data-alert-close]\",\n type: \"click\"\n }), 2, \"onCloseClick\"]], 0, void 0, RadiantElement));\n }\n constructor(...args) {\n super(...args);\n _init_extra_closeEvent(this);\n }\n variant = (_initProto(this), _init_variant(this));\n layout = (_init_extra_variant(this), _init_layout(this));\n dismissible = (_init_extra_layout(this), _init_dismissible(this));\n closeLabel = (_init_extra_dismissible(this), _init_closeLabel(this));\n closeEvent = (_init_extra_closeLabel(this), _init_closeEvent(this));\n dismiss() {\n if (!this.isConnected) {\n return;\n }\n this.closeEvent.emit({\n reason: \"dismiss\"\n });\n this.remove();\n }\n onCloseClick(event2) {\n event2.stopPropagation();\n if (!this.dismissible) {\n return;\n }\n this.dismiss();\n }\n static {\n _initClass();\n }\n}\nexport { _RuiAlert as RuiAlert };", "import { jsx, jsxs } from \"@ecopages/jsx/jsx-runtime\";\nimport { cx } from \"@/lib/cx\";\nimport \"./alert.script\";\nconst ALERT_ICON_PATHS = {\n info: [\"M12 16v-4\", \"M12 8h.01\", \"M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20z\"],\n success: [\"M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20z\", \"m9 12 2 2 4-4\"],\n warning: [\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\", \"M12 9v4\", \"M12 17h.01\"],\n error: [\"M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20z\", \"m15 9-6 6\", \"m9 9 6 6\"]\n};\nexport function RuiAlertIcon({\n variant = \"info\",\n class: className,\n children,\n ...props\n}) {\n if (children != null) {\n return /* @__PURE__ */jsx(\"span\", {\n ...props,\n class: cx(\"rui-alert__icon\", className),\n children\n });\n }\n const paths = ALERT_ICON_PATHS[variant];\n const d = Array.isArray(paths) ? paths : [paths];\n return /* @__PURE__ */jsx(\"span\", {\n ...props,\n class: cx(\"rui-alert__icon\", className),\n \"aria-hidden\": \"true\",\n children: /* @__PURE__ */jsx(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: \"20\",\n height: \"20\",\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n stroke: \"currentColor\",\n \"stroke-width\": \"2\",\n \"stroke-linecap\": \"round\",\n \"stroke-linejoin\": \"round\",\n children: d.map(path => /* @__PURE__ */jsx(\"path\", {\n d: path\n }))\n })\n });\n}\nexport function RuiAlertTitle({\n children,\n class: className,\n ...props\n}) {\n return /* @__PURE__ */jsx(\"p\", {\n ...props,\n class: cx(\"rui-alert__title\", className),\n children\n });\n}\nexport function RuiAlertDescription({\n children,\n class: className,\n ...props\n}) {\n return /* @__PURE__ */jsx(\"div\", {\n ...props,\n class: cx(\"rui-alert__description\", className),\n children\n });\n}\nexport function RuiAlert({\n children,\n variant = \"info\",\n layout = \"inline\",\n dismissible = false,\n closeLabel = \"Dismiss\",\n class: className,\n ...props\n}) {\n return /* @__PURE__ */jsx(\"rui-alert\", {\n ...props,\n variant,\n layout,\n dismissible,\n \"close-label\": closeLabel,\n children: /* @__PURE__ */jsxs(\"div\", {\n class: cx(\"rui-alert\", `rui-alert--${variant}`, `rui-alert--${layout}`, dismissible && \"rui-alert--dismissible\", className),\n role: \"alert\",\n children: [children, dismissible ? /* @__PURE__ */jsx(\"button\", {\n type: \"button\",\n class: \"rui-alert__close\",\n \"data-alert-close\": true,\n \"aria-label\": closeLabel || \"Dismiss\",\n children: /* @__PURE__ */jsxs(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: \"16\",\n height: \"16\",\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n stroke: \"currentColor\",\n \"stroke-width\": \"2\",\n \"stroke-linecap\": \"round\",\n \"stroke-linejoin\": \"round\",\n \"aria-hidden\": \"true\",\n children: [/* @__PURE__ */jsx(\"path\", {\n d: \"M18 6 6 18\"\n }), /* @__PURE__ */jsx(\"path\", {\n d: \"m6 6 12 12\"\n })]\n })\n }) : null]\n })\n });\n}", "export function cx(...parts) {\n return parts.filter(Boolean).join(\" \");\n}"],
|
|
5
|
+
"mappings": "AAMA,OAAS,kBAAAA,GAAgB,SAAAC,GAAO,iBAAAC,GAAe,SAAAC,GAAO,WAAAC,GAAS,QAAAC,MAAY,oBAN3E,IAAIC,GAAYC,GAAYC,GAAeC,GAAqBC,GAAcC,GAAoBC,GAAmBC,GAAyBC,GAAkBC,GAAwBC,GAAkBC,GAC1M,SAASC,GAAWC,EAAGC,EAAG,EAAGC,EAAGC,EAAGC,EAAG,CAAE,IAAIC,EAAGC,EAAGC,EAAGC,EAAGC,EAAGC,EAAGC,EAAGC,EAAI,OAAO,UAAY,OAAO,IAAI,iBAAiB,EAAGC,EAAI,OAAO,eAAgBC,EAAI,OAAO,OAAQC,EAAI,CAACD,EAAE,IAAI,EAAGA,EAAE,IAAI,CAAC,EAAGE,EAAIf,EAAE,OAAQ,SAASgB,EAAEhB,EAAGiB,EAAGhB,EAAG,CAAE,OAAO,SAAUC,EAAGC,EAAG,CAAEc,IAAMd,EAAID,EAAGA,EAAIH,G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b,EACP,GAAGE,CACL,EAAG,CACD,OAAsBC,EAAI,YAAa,CACrC,GAAGD,EACH,QAAAH,EACA,OAAAY,EACA,YAAAC,EACA,cAAeC,EACf,SAAyBC,GAAK,MAAO,CACnC,MAAOV,EAAG,YAAa,cAAcL,CAAO,GAAI,cAAcY,CAAM,GAAIC,GAAe,yBAA0BZ,CAAS,EAC1H,KAAM,QACN,SAAU,CAACC,EAAUW,EAA6BT,EAAI,SAAU,CAC9D,KAAM,SACN,MAAO,mBACP,mBAAoB,GACpB,aAAcU,GAAc,UAC5B,SAAyBC,GAAK,MAAO,CACnC,MAAO,6BACP,MAAO,KACP,OAAQ,KACR,QAAS,YACT,KAAM,OACN,OAAQ,eACR,eAAgB,IAChB,iBAAkB,QAClB,kBAAmB,QACnB,cAAe,OACf,SAAU,CAAgBX,EAAI,OAAQ,CACpC,EAAG,YACL,CAAC,EAAkBA,EAAI,OAAQ,CAC7B,EAAG,YACL,CAAC,CAAC,CACJ,CAAC,CACH,CAAC,EAAI,IAAI,CACX,CAAC,CACH,CAAC,CACH",
|
|
6
|
+
"names": ["RadiantElement", "bound", "customElement", "event", "onEvent", "prop", "_initProto", "_initClass", "_init_variant", "_init_extra_variant", "_init_layout", "_init_extra_layout", "_init_dismissible", "_init_extra_dismissible", "_init_closeLabel", "_init_extra_closeLabel", "_init_closeEvent", "_init_extra_closeEvent", "_applyDecs", "e", "t", "r", "o", "i", "a", "c", "u", "s", "f", "l", "p", "d", "m", "h", "y", "v", "g", "n", "b", "applyDec", "w", "D", "S", "j", "E", "I", "P", "k", "F", "_setFunctionName", "N", "O", "T", "z", "A", "H", "_toPropertyKey", "_checkInRHS", "_toPrimitive", "_RuiAlert", "RuiAlert", "args", "event2", "jsx", "jsxs", "cx", "parts", "ALERT_ICON_PATHS", "RuiAlertIcon", "variant", "className", "children", "props", "jsx", "cx", "paths", "d", "path", "RuiAlertTitle", "RuiAlertDescription", "RuiAlert", "layout", "dismissible", "closeLabel", "jsxs"]
|
|
7
7
|
}
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
border-width: 1px;
|
|
14
14
|
border-color: var(--color-border, var(--border));
|
|
15
15
|
background-color: var(--color-background, var(--background));
|
|
16
|
-
padding-inline: var(--spacing-
|
|
17
|
-
padding-block: var(--spacing-
|
|
16
|
+
padding-inline: var(--spacing-control-x, var(--space-control-x));
|
|
17
|
+
padding-block: var(--spacing-control-y, var(--space-control-y));
|
|
18
18
|
font-size: var(--text-sm, var(--text-sm));
|
|
19
19
|
line-height: var(--tw-leading, var(--text-sm--line-height, calc(1.25 / 0.875)));
|
|
20
20
|
color: var(--color-on-background, var(--on-background));
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
overflow: auto;
|
|
33
33
|
}
|
|
34
34
|
.rui-autocomplete__empty {
|
|
35
|
-
padding-inline: var(--spacing-
|
|
36
|
-
padding-block: var(--spacing-
|
|
35
|
+
padding-inline: var(--spacing-control-x, var(--space-control-x));
|
|
36
|
+
padding-block: var(--spacing-control-y, var(--space-control-y));
|
|
37
37
|
font-size: var(--text-sm, var(--text-sm));
|
|
38
38
|
line-height: var(--tw-leading, var(--text-sm--line-height, calc(1.25 / 0.875)));
|
|
39
39
|
color: var(--color-on-surface, var(--on-surface));
|
|
@@ -1,21 +1,31 @@
|
|
|
1
1
|
import type { JsxHtmlProps, JsxHtmlPropsWithChildren } from '@ecopages/jsx';
|
|
2
2
|
import type { RuiAutocompleteProps } from './autocomplete.script';
|
|
3
|
+
import './autocomplete.script';
|
|
3
4
|
export type RuiAutocompleteInputProps = JsxHtmlProps<{
|
|
4
5
|
slot?: string;
|
|
5
6
|
placeholder?: string;
|
|
6
7
|
'aria-label'?: string;
|
|
7
8
|
disabled?: boolean;
|
|
8
9
|
}>;
|
|
9
|
-
/** Search field slotted into `RuiAutocomplete`. Also pairs with combobox inputs via `data-autocomplete-input`.
|
|
10
|
+
/** Search field slotted into `RuiAutocomplete`. Also pairs with combobox inputs via `data-autocomplete-input`.
|
|
11
|
+
*
|
|
12
|
+
* @cssclass rui-autocomplete__input - Bordered search input.
|
|
13
|
+
*/
|
|
10
14
|
export declare function RuiAutocompleteInput({ placeholder, slot, class: className, disabled, ...props }: RuiAutocompleteInputProps): import("@ecopages/jsx").JsxRenderable;
|
|
11
15
|
export type RuiAutocompleteCollectionProps = JsxHtmlPropsWithChildren<{
|
|
12
16
|
slot?: string;
|
|
13
17
|
}>;
|
|
14
|
-
/** Wrapper around the filterable collection inside `RuiAutocomplete`.
|
|
18
|
+
/** Wrapper around the filterable collection inside `RuiAutocomplete`.
|
|
19
|
+
*
|
|
20
|
+
* @cssclass rui-autocomplete__collection - Scrollable filterable region.
|
|
21
|
+
*/
|
|
15
22
|
export declare function RuiAutocompleteCollection({ children, class: className, ...props }: RuiAutocompleteCollectionProps): import("@ecopages/jsx").JsxRenderable;
|
|
16
23
|
export type RuiAutocompleteEmptyProps = JsxHtmlPropsWithChildren;
|
|
17
|
-
/** Shown when filtering yields no visible items.
|
|
24
|
+
/** Shown when filtering yields no visible items.
|
|
25
|
+
*
|
|
26
|
+
* @cssclass rui-autocomplete__empty - No-results state.
|
|
27
|
+
*/
|
|
18
28
|
export declare function RuiAutocompleteEmpty({ children, class: className, ...props }: RuiAutocompleteEmptyProps): import("@ecopages/jsx").JsxRenderable;
|
|
19
|
-
export declare
|
|
29
|
+
export declare function RuiAutocomplete({ children, ...props }: JsxHtmlPropsWithChildren<RuiAutocompleteProps & {
|
|
20
30
|
slot?: string;
|
|
21
|
-
}
|
|
31
|
+
}>): import("@ecopages/jsx").JsxRenderable;
|
|
@@ -17,7 +17,16 @@ export type RuiAutocompleteProps = {
|
|
|
17
17
|
* field. `rui-select` uses a dedicated search input inside the popup instead.
|
|
18
18
|
*
|
|
19
19
|
* @see https://react-aria.adobe.com/Autocomplete
|
|
20
|
+
*
|
|
20
21
|
* @element rui-autocomplete
|
|
22
|
+
*
|
|
23
|
+
* @attr {string} sensitivity - Filter sensitivity: `base` (case-insensitive contains), `case`, or `accent`. Default: `base`.
|
|
24
|
+
* @attr {string} input-value - Controlled filter query; when unset, reads from the slotted input. Default: `''`.
|
|
25
|
+
*
|
|
26
|
+
* @slot input - Search field (`RuiAutocompleteInput`).
|
|
27
|
+
* @slot - Filterable collection of `[role="option"]`, `[role="menuitem"]`, or `[data-tag]` items.
|
|
28
|
+
*
|
|
29
|
+
* @cssclass rui-autocomplete - Filter host.
|
|
21
30
|
*/
|
|
22
31
|
export declare class RuiAutocomplete extends RadiantElement {
|
|
23
32
|
sensitivity: TextFilterSensitivity;
|