@koide-labs/ui 0.1.2 → 0.1.4
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/dist/{InternalBackdrop-BSMKU-hc.js → InternalBackdrop-DDLgWc7D.js} +1 -1
- package/dist/accordion.css +1 -1
- package/dist/alert-dialog.css +1 -1
- package/dist/anchor.css +1 -1
- package/dist/avatar.css +1 -1
- package/dist/badge.css +1 -1
- package/dist/button.css +1 -1
- package/dist/checkbox.css +1 -1
- package/dist/code.css +1 -1
- package/dist/collapse.css +1 -1
- package/dist/command.css +1 -1
- package/dist/components/accordion/accordion.js +54 -54
- package/dist/components/alert-dialog/alert-dialog.js +6 -6
- package/dist/components/anchor/anchor.js +7 -7
- package/dist/components/avatar/avatar.js +13 -13
- package/dist/components/badge/badge.js +17 -17
- package/dist/components/button/button.js +12 -12
- package/dist/components/checkbox/checkbox.js +15 -15
- package/dist/components/code/code.js +32 -32
- package/dist/components/collapse/collapse.js +5 -5
- package/dist/components/command/command.js +4 -4
- package/dist/components/context-menu/context-menu.js +13 -13
- package/dist/components/dialog/dialog.js +2 -2
- package/dist/components/heading/heading.js +9 -9
- package/dist/components/icon/icon.js +7 -7
- package/dist/components/icon-button/icon-button.js +24 -24
- package/dist/components/inline-code/inline-code.js +7 -7
- package/dist/components/input/input.js +1 -1
- package/dist/components/meter/meter.js +10 -10
- package/dist/components/multiline-input/multiline-input.js +1 -1
- package/dist/components/number-input/number-input.js +60 -60
- package/dist/components/password-input/password-input.js +6 -6
- package/dist/components/pill/pill.js +15 -15
- package/dist/components/popover/popover.js +31 -31
- package/dist/components/preview-card/preview-card.js +5 -5
- package/dist/components/radio-group/radio-group.js +109 -109
- package/dist/components/search-bar/search-bar.js +10 -10
- package/dist/components/select/select.js +8 -8
- package/dist/components/separator/index.js +1 -1
- package/dist/components/separator/separator.js +1 -1
- package/dist/components/slider/slider.js +114 -114
- package/dist/components/spinner/spinner.js +4 -4
- package/dist/components/stacked-avatars/stacked-avatars.js +37 -37
- package/dist/components/status-banner/status-banner.js +22 -22
- package/dist/components/surface/surface.js +17 -17
- package/dist/components/switch/switch.js +28 -28
- package/dist/components/tabs/tabs.js +116 -116
- package/dist/components/text/text.js +16 -16
- package/dist/components/timestamp/timestamp.js +2 -2
- package/dist/components/toaster/toaster.js +145 -145
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooltip/tooltip.js +2 -2
- package/dist/components/view/view.js +40 -40
- package/dist/context-menu.css +1 -1
- package/dist/dialog.css +1 -1
- package/dist/{dialog.module-Pi1eHwli.js → dialog.module-CRiRBcbM.js} +66 -66
- package/dist/{getDisabledMountTransitionStyles-E2x-_lte.js → getDisabledMountTransitionStyles-CyEI2117.js} +1 -1
- package/dist/heading.css +1 -1
- package/dist/icon-button.css +1 -1
- package/dist/icon.css +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +2 -2
- package/dist/index2.css +1 -1
- package/dist/inline-code.css +1 -1
- package/dist/input.css +1 -1
- package/dist/input.module-CYcyDtrO.js +8 -0
- package/dist/integrations/react-markdown/index.js +26 -26
- package/dist/integrations/twemoji/index.js +1 -1
- package/dist/meter.css +1 -1
- package/dist/number-input.css +1 -1
- package/dist/password-input.css +1 -1
- package/dist/pill.css +1 -1
- package/dist/popover.css +1 -1
- package/dist/preview-card.css +1 -1
- package/dist/radio-group.css +1 -1
- package/dist/{safePolygon-DnkzOIur.js → safePolygon-lAEp2rci.js} +1 -1
- package/dist/search-bar.css +1 -1
- package/dist/select.css +1 -1
- package/dist/{separator-wNYojB9q.js → separator-Or-BDQYZ.js} +13 -13
- package/dist/separator.css +1 -1
- package/dist/slider.css +1 -1
- package/dist/spinner.css +1 -1
- package/dist/stacked-avatars.css +1 -1
- package/dist/status-banner.css +1 -1
- package/dist/styles/core.css +1 -1
- package/dist/surface.css +1 -1
- package/dist/switch.css +1 -1
- package/dist/tabs.css +1 -1
- package/dist/text.css +1 -1
- package/dist/timestamp.css +1 -1
- package/dist/toaster.css +1 -1
- package/dist/{tooltip-DZkByWDR.js → tooltip-JPnUwFFR.js} +6 -6
- package/dist/tooltip.css +1 -1
- package/dist/transitions.css +1 -1
- package/dist/{transitions.module-D9mMAtfI.js → transitions.module-SSNmQfsR.js} +43 -43
- package/dist/{useRole-BD3OL1rr.js → useRole-D1k7CnHQ.js} +1 -1
- package/dist/{useSyncedFloatingRootContext-BB1vwkV-.js → useSyncedFloatingRootContext-CaohymZI.js} +1 -1
- package/dist/{useTypeahead-BiL5IAVb.js → useTypeahead-CSZtonjF.js} +2 -2
- package/dist/view.css +1 -1
- package/dist/view.module-j3ylJCCE.js +6 -0
- package/dist/view2.css +1 -1
- package/package.json +2 -1
- package/dist/components/dialog/dialog.types.js +0 -1
- package/dist/components/icon/icon.types.js +0 -1
- package/dist/components/surface/surface.types.js +0 -1
- package/dist/components/view/view.types.js +0 -1
- package/dist/input.module-zw1dlr1_.js +0 -8
- package/dist/view.module-DlwuNdUj.js +0 -6
|
@@ -12,7 +12,7 @@ import { u as Q } from "./useStableCallback-DKZHlUAT.js";
|
|
|
12
12
|
import { v as vt } from "./visuallyHidden-CpJ-mhai.js";
|
|
13
13
|
import { t as yt, o as Et, c as ie, f as kt, a as pe } from "./createBaseUIEventDetails-CCSfZ2vM.js";
|
|
14
14
|
import { e as G, i as We, g as Ve, d as U, f as I, h as re, j as Tt } from "./element-u5WgOZX1.js";
|
|
15
|
-
import { a as wt, b as Ge, g as Ye } from "./transitions.module-
|
|
15
|
+
import { a as wt, b as Ge, g as Ye } from "./transitions.module-SSNmQfsR.js";
|
|
16
16
|
import { r as X } from "./useOpenChangeComplete-BHd-N7Ig.js";
|
|
17
17
|
import { jsxs as Rt, jsx as ve } from "react/jsx-runtime";
|
|
18
18
|
import { i as Ct, a as xt, s as St, b as qe, c as Ot } from "./event-B89-Ng5h.js";
|
package/dist/accordion.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
._accordion_11u60_3:not(#\#):not(#\#):not(#\#){border-bottom:1px solid var(--surface-interactive-border)}._accordion__header_11u60_7:not(#\#):not(#\#):not(#\#){display:flex}._accordion__trigger-icon_11u60_11:not(#\#):not(#\#):not(#\#){transform:rotate(-45deg);transition:transform var(--transition-duration-snappy) var(--transition-timing-function-snappy)}._accordion__trigger_11u60_11:not(#\#){border-radius:0!important}._accordion__trigger_11u60_11:not(#\#):not(#\#):not(#\#){flex-grow:1;flex-shrink:1;flex-direction:row;justify-content:space-between;align-items:center;padding:var(--space-8) var(--space-12);line-height:1}._accordion__trigger_11u60_11[data-panel-open]:not(#\#):not(#\#):not(#\#) ._accordion__trigger-icon_11u60_11{transform:rotate(0)}._accordion__panel_11u60_32:not(#\#):not(#\#):not(#\#){transition:height var(--transition-duration-chill) var(--transition-timing-function-chill);height:var(--accordion-panel-height);overflow:hidden}._accordion__panel_11u60_32[data-starting-style]:not(#\#):not(#\#):not(#\#),._accordion__panel_11u60_32[data-ending-style]:not(#\#):not(#\#):not(#\#){height:0}._accordion__panel-content_11u60_44:not(#\#):not(#\#):not(#\#){padding:var(--space-12)}
|
package/dist/alert-dialog.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
._alert-dialog__actions_1ppon_3:not(#\#):not(#\#):not(#\#){flex-direction:row;justify-content:end;gap:var(--space-8)}
|
package/dist/anchor.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
._anchor_1mbt9_3:not(#\#):not(#\#):not(#\#){cursor:pointer;color:var(--primary-stronger);font-weight:var(--font-weight-regular);font-size:var(--font-size-default);line-height:var(--line-height-default);text-decoration:underline}._anchor_1mbt9_3:visited:not(#\#):not(#\#):not(#\#){color:var(--primary-stronger)}
|
package/dist/avatar.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
._avatar_l5yco_3:not(#\#):not(#\#):not(#\#){display:flex;position:relative;flex-shrink:0;border-width:1px;border-style:solid;border-color:var(--outline-dimmest);border-radius:var(--border-radius-round);background-color:var(--background-highest);width:var(--avatar-size);height:var(--avatar-size);overflow:hidden}._avatar__image_l5yco_17:not(#\#):not(#\#):not(#\#){width:100%;height:100%;-o-object-fit:cover;object-fit:cover}._avatar__fallback_l5yco_23:not(#\#):not(#\#):not(#\#){display:flex;flex:1 1 0%;justify-content:center;align-items:center;border-radius:var(--border-radius-round);width:100%;height:100%;color:var(--foreground-dimmest);font-size:calc(var(--avatar-size) / 2.5)}._avatar_size_sm_l5yco_36:not(#\#):not(#\#):not(#\#){--avatar-size: var(--space-24)}._avatar_size_md_l5yco_40:not(#\#):not(#\#):not(#\#){--avatar-size: var(--space-32)}._avatar_size_lg_l5yco_44:not(#\#):not(#\#):not(#\#){--avatar-size: var(--space-40)}._avatar_size_xl_l5yco_48:not(#\#):not(#\#):not(#\#){--avatar-size: var(--space-48)}._avatar_size_2xl_l5yco_52:not(#\#):not(#\#):not(#\#){--avatar-size: var(--space-56)}._avatar_size_3xl_l5yco_56:not(#\#):not(#\#):not(#\#){--avatar-size: var(--space-64)}
|
package/dist/badge.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
._badge_1m3yi_3:not(#\#):not(#\#):not(#\#){display:inline-flex;align-items:center;gap:var(--space-4);cursor:default;border-radius:var(--border-radius-16);background-color:var(--view-colorway-dimmer);padding:var(--space-4) var(--space-8);height:var(--space-24);color:var(--view-colorway-strongest);font-size:var(--font-size-small);line-height:1;white-space:nowrap}._badge_shiny_1m3yi_18:not(#\#):not(#\#):not(#\#){display:inline-flex;flex-direction:row;align-items:center;transition:none;background-image:radial-gradient(circle at top left,var(--view-colorway-dimmest) 34%,var(--view-colorway-dimmer) 50%,var(--view-colorway-dimmest) 66%);background-position:left;background-size:300% 100%}._badge_shiny_1m3yi_18:hover:not(#\#):not(#\#):not(#\#){transition:background-position .6s var(--transition-timing-function-chill);background-position:right}
|
package/dist/button.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
._button_17tw0_3:not(#\#):not(#\#):not(#\#){display:flex;flex-direction:row;justify-content:center;align-items:center;gap:var(--space-8);box-sizing:border-box;border-radius:var(--border-radius-default);padding-inline:var(--button-padding-inline);height:var(--button-height);white-space:nowrap}._button_height_sm_17tw0_16:not(#\#):not(#\#):not(#\#){--button-padding-inline: var(--space-12);--button-height: var(--space-28)}._button_height_md_17tw0_21:not(#\#):not(#\#):not(#\#){--button-padding-inline: var(--space-16);--button-height: var(--space-32)}._button_height_lg_17tw0_26:not(#\#):not(#\#):not(#\#){--button-padding-inline: var(--space-20);--button-height: var(--space-40)}._button_height_xl_17tw0_31:not(#\#):not(#\#):not(#\#){--button-padding-inline: var(--space-24);--button-height: var(--space-48)}._button_height_2xl_17tw0_36:not(#\#):not(#\#):not(#\#){--button-padding-inline: var(--space-28);--button-height: var(--space-56)}._button_height_3xl_17tw0_41:not(#\#):not(#\#):not(#\#){--button-padding-inline: var(--space-32);--button-height: var(--space-64)}
|
package/dist/checkbox.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
._checkbox__label_1o5lj_3:not(#\#):not(#\#):not(#\#){display:flex;flex-direction:row;align-items:center;gap:var(--space-8)}._checkbox_1o5lj_3:not(#\#):not(#\#):not(#\#){display:flex;justify-content:center;align-items:center;border-radius:var(--border-radius-4);width:20px;height:20px}._checkbox_1o5lj_3[data-checked]:not(#\#):not(#\#):not(#\#){background:var(--view-colorway-dimmer)}._checkbox_1o5lj_3[data-checked]:not([disabled],[data-disabled]):not(#\#):not(#\#):not(#\#){background:var(--view-colorway-default)}._checkbox_1o5lj_3[data-checked]:not([disabled],[data-disabled]):hover:not(#\#):not(#\#):not(#\#){border-color:var(--view-colorway-stronger)}._checkbox__indicator_1o5lj_31:not(#\#):not(#\#):not(#\#){pointer-events:none;color:var(--white)}._checkbox__indicator_1o5lj_31[data-unchecked]:not(#\#):not(#\#):not(#\#){display:none}
|
package/dist/code.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
._code__root_1w9hs_3:not(#\#):not(#\#):not(#\#){border-radius:var(--border-radius-default);overflow:hidden}._code_1w9hs_3:not(#\#):not(#\#):not(#\#){border-radius:var(--border-radius-default);padding:var(--space-8);overflow-x:auto}._code_title_1w9hs_14:not(#\#):not(#\#):not(#\#){border-top-left-radius:0}._code__value_1w9hs_18:not(#\#):not(#\#):not(#\#){font-size:var(--font-size-default);font-family:var(--font-family-code)}._code__title_1w9hs_23:not(#\#):not(#\#):not(#\#){border-top-right-radius:var(--border-radius-default);border-top-left-radius:var(--border-radius-default);padding:var(--space-4) var(--space-8);width:-moz-fit-content;width:fit-content}
|
package/dist/collapse.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
._collapse_k1eaa_3:not(#\#):not(#\#){opacity:0;transition:height var(--transition-duration-chill) var(--transition-timing-function-chill),opacity var(--transition-duration-chill) var(--transition-timing-function-chill);height:0;overflow-y:hidden}._collapse_expand_k1eaa_14:not(#\#):not(#\#){opacity:1;height:var(--collapse-height)}._collapse_hidden_k1eaa_19:not(#\#):not(#\#){position:fixed;top:0;left:0;visibility:hidden;opacity:0;z-index:0;height:-moz-fit-content;height:fit-content;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}
|
package/dist/command.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
._command_1svrl_3:not(#\#):not(#\#):not(#\#){--command-padding: var(--space-6);border:none;padding:0}._command_1svrl_3:not(#\#):not(#\#):not(#\#) [data-framework-close]{top:var(--space-4);right:var(--space-4)}._command__empty_1svrl_16:not(#\#):not(#\#):not(#\#){padding:var(--space-28) var(--space-16);padding-top:calc(var(--space-28) + var(--command-padding));text-align:center}._command__input-root_1svrl_22:not(#\#):not(#\#):not(#\#){position:relative;height:var(--space-32)}._command__input_1svrl_22:not(#\#){border-bottom-right-radius:0!important;border-bottom-left-radius:0!important}._command__input_1svrl_22:not(#\#):not(#\#):not(#\#){flex-grow:1;flex-shrink:1;background-color:transparent;padding:var(--space-4) var(--space-32);width:100%;height:100%;line-height:var(--line-height-input)}._command__input_1svrl_22:not(#\#):not(#\#):not(#\#)::-moz-placeholder{color:var(--foreground-dimmest)}._command__input_1svrl_22:not(#\#):not(#\#):not(#\#)::placeholder{color:var(--foreground-dimmest)}._command__input_1svrl_22:not([disabled],[data-disabled]):not(#\#):not(#\#):not(#\#){cursor:text}._command__input-icon_1svrl_47:not(#\#):not(#\#):not(#\#){position:absolute;top:var(--space-8);left:var(--space-8)}._command__list_1svrl_53:not(#\#){border-bottom-right-radius:var(--border-radius-default)!important;border-bottom-left-radius:var(--border-radius-default)!important}._command__list_1svrl_53:not(#\#):not(#\#):not(#\#){border:1px solid var(--surface-interactive-border);border-top:0;padding-bottom:var(--command-padding);max-height:var(--space-256);overflow:hidden auto}._command__group_1svrl_63:not(#\#):not(#\#):not(#\#){padding-top:var(--space-6)}._command__group_1svrl_63:not(#\#):not(#\#):not(#\#) [cmdk-group-heading]{border:1px solid transparent;padding:0 var(--space-12) var(--space-2) var(--space-12);color:var(--foreground-dimmer);font-size:var(--font-size-small);line-height:var(--line-height-small)}._command__item_1svrl_76:not(#\#):not(#\#):not(#\#){flex-direction:row;align-items:center;gap:var(--space-8);padding:var(--space-4) var(--space-12);height:var(--space-32);-webkit-user-select:none;-moz-user-select:none;user-select:none}._command__item_1svrl_76[data-selected=true]:not(#\#):not(#\#):not(#\#){background-color:var(--interactive-background)}._command__shortcut_1svrl_89:not(#\#):not(#\#):not(#\#){margin-left:auto;letter-spacing:.1em}
|
|
@@ -18,7 +18,7 @@ import { u as q } from "../../useBaseUiId-B7WyxtIE.js";
|
|
|
18
18
|
import { a as Se, T as re, t as Me, u as Pe } from "../../useOpenChangeComplete-BHd-N7Ig.js";
|
|
19
19
|
import { u as Ie } from "../../useTransitionStatus-CmMyUh74.js";
|
|
20
20
|
import { i as ie } from "../../isElementDisabled-Cbd8W9kH.js";
|
|
21
|
-
import { b as
|
|
21
|
+
import { b as ue, e as de, c as fe, d as pe, H as we, E as De } from "../../composite-BwEK5cWH.js";
|
|
22
22
|
import { u as Ve } from "../../useButton-d3_JgBNr.js";
|
|
23
23
|
import { s as Fe } from "../../event-B89-Ng5h.js";
|
|
24
24
|
import { u as Te } from "../../useOnMount-VRW6CK2u.js";
|
|
@@ -43,7 +43,7 @@ const He = {
|
|
|
43
43
|
loopFocus: C = !0,
|
|
44
44
|
onValueChange: R,
|
|
45
45
|
multiple: h = !1,
|
|
46
|
-
orientation:
|
|
46
|
+
orientation: u = "vertical",
|
|
47
47
|
value: N,
|
|
48
48
|
defaultValue: f,
|
|
49
49
|
...O
|
|
@@ -82,8 +82,8 @@ const He = {
|
|
|
82
82
|
}), x = r.useMemo(() => ({
|
|
83
83
|
value: b,
|
|
84
84
|
disabled: c,
|
|
85
|
-
orientation:
|
|
86
|
-
}), [b, c,
|
|
85
|
+
orientation: u
|
|
86
|
+
}), [b, c, u]), M = r.useMemo(() => ({
|
|
87
87
|
accordionItemRefs: y,
|
|
88
88
|
direction: E,
|
|
89
89
|
disabled: c,
|
|
@@ -91,10 +91,10 @@ const He = {
|
|
|
91
91
|
hiddenUntilFound: m ?? !1,
|
|
92
92
|
keepMounted: v ?? !1,
|
|
93
93
|
loopFocus: C,
|
|
94
|
-
orientation:
|
|
94
|
+
orientation: u,
|
|
95
95
|
state: x,
|
|
96
96
|
value: b
|
|
97
|
-
}), [E, c, l, m, v, C,
|
|
97
|
+
}), [E, c, l, m, v, C, u, x, b]), P = B("div", o, {
|
|
98
98
|
state: x,
|
|
99
99
|
ref: i,
|
|
100
100
|
props: [{
|
|
@@ -127,18 +127,18 @@ function Ue(n) {
|
|
|
127
127
|
mounted: C,
|
|
128
128
|
setMounted: R,
|
|
129
129
|
transitionStatus: h
|
|
130
|
-
} = Ie(m, !0, !0), [
|
|
130
|
+
} = Ie(m, !0, !0), [u, N] = r.useState(m), [{
|
|
131
131
|
height: f,
|
|
132
132
|
width: O
|
|
133
133
|
}, E] = r.useState({
|
|
134
134
|
height: void 0,
|
|
135
135
|
width: void 0
|
|
136
136
|
}), S = q(), [A, y] = r.useState(), b = A ?? S, [_, l] = r.useState(!1), [x, M] = r.useState(!1), P = r.useRef(null), p = r.useRef(null), V = r.useRef(null), g = r.useRef(null), e = Se(g, !1), a = L((s) => {
|
|
137
|
-
const t = !m,
|
|
138
|
-
if (I(t,
|
|
137
|
+
const t = !m, d = $(Ae, s.nativeEvent);
|
|
138
|
+
if (I(t, d), d.isCanceled)
|
|
139
139
|
return;
|
|
140
140
|
const D = g.current;
|
|
141
|
-
p.current === "css-animation" && D != null && D.style.removeProperty("animation-name"), !_ && !x && (p.current != null && p.current !== "css-animation" && !C && t && R(!0), p.current === "css-animation" && (!
|
|
141
|
+
p.current === "css-animation" && D != null && D.style.removeProperty("animation-name"), !_ && !x && (p.current != null && p.current !== "css-animation" && !C && t && R(!0), p.current === "css-animation" && (!u && t && N(!0), !C && t && R(!0))), v(t), p.current === "none" && C && !t && R(!1);
|
|
142
142
|
});
|
|
143
143
|
return T(() => {
|
|
144
144
|
c && p.current === "none" && !x && !m && R(!1);
|
|
@@ -162,9 +162,9 @@ function Ue(n) {
|
|
|
162
162
|
setVisible: N,
|
|
163
163
|
transitionDimensionRef: V,
|
|
164
164
|
transitionStatus: h,
|
|
165
|
-
visible:
|
|
165
|
+
visible: u,
|
|
166
166
|
width: O
|
|
167
|
-
}), [P, p, w, a, f, C, m, b, g, e, E, l, M, R, v, N, V, h,
|
|
167
|
+
}), [P, p, w, a, f, C, m, b, g, e, E, l, M, R, v, N, V, h, u, O]);
|
|
168
168
|
}
|
|
169
169
|
const J = /* @__PURE__ */ r.createContext(void 0);
|
|
170
170
|
process.env.NODE_ENV !== "production" && (J.displayName = "CollapsibleRootContext");
|
|
@@ -223,7 +223,7 @@ const Z = {
|
|
|
223
223
|
} = o, {
|
|
224
224
|
ref: R,
|
|
225
225
|
index: h
|
|
226
|
-
} = xe(),
|
|
226
|
+
} = xe(), u = ce(i, R), {
|
|
227
227
|
disabled: N,
|
|
228
228
|
handleValueChange: f,
|
|
229
229
|
state: O,
|
|
@@ -262,7 +262,7 @@ const Z = {
|
|
|
262
262
|
triggerId: p
|
|
263
263
|
}), [b, P, V, p]), e = B("div", o, {
|
|
264
264
|
state: P,
|
|
265
|
-
ref:
|
|
265
|
+
ref: u,
|
|
266
266
|
props: C,
|
|
267
267
|
stateAttributesMapping: Z
|
|
268
268
|
});
|
|
@@ -291,7 +291,7 @@ const be = /* @__PURE__ */ r.forwardRef(function(o, i) {
|
|
|
291
291
|
});
|
|
292
292
|
});
|
|
293
293
|
process.env.NODE_ENV !== "production" && (be.displayName = "AccordionHeader");
|
|
294
|
-
const ze = /* @__PURE__ */ new Set([
|
|
294
|
+
const ze = /* @__PURE__ */ new Set([ue, de, fe, pe, we, De]);
|
|
295
295
|
function $e(n) {
|
|
296
296
|
const {
|
|
297
297
|
current: o
|
|
@@ -316,7 +316,7 @@ const _e = /* @__PURE__ */ r.forwardRef(function(o, i) {
|
|
|
316
316
|
} = o, {
|
|
317
317
|
panelId: R,
|
|
318
318
|
open: h,
|
|
319
|
-
handleTrigger:
|
|
319
|
+
handleTrigger: u,
|
|
320
320
|
disabled: N
|
|
321
321
|
} = he(), f = I ?? N, {
|
|
322
322
|
getButtonProps: O,
|
|
@@ -343,25 +343,25 @@ const _e = /* @__PURE__ */ r.forwardRef(function(o, i) {
|
|
|
343
343
|
"aria-expanded": h,
|
|
344
344
|
disabled: f,
|
|
345
345
|
id: P,
|
|
346
|
-
onClick:
|
|
346
|
+
onClick: u,
|
|
347
347
|
onKeyDown(g) {
|
|
348
348
|
if (!ze.has(g.key))
|
|
349
349
|
return;
|
|
350
350
|
Fe(g);
|
|
351
351
|
const e = $e(S), s = e.length - 1;
|
|
352
352
|
let t = -1;
|
|
353
|
-
const
|
|
353
|
+
const d = e.indexOf(g.target);
|
|
354
354
|
function D() {
|
|
355
|
-
y ? t =
|
|
355
|
+
y ? t = d + 1 > s ? 0 : d + 1 : t = Math.min(d + 1, s);
|
|
356
356
|
}
|
|
357
357
|
function H() {
|
|
358
|
-
y ? t =
|
|
358
|
+
y ? t = d === 0 ? s : d - 1 : t = d - 1;
|
|
359
359
|
}
|
|
360
360
|
switch (g.key) {
|
|
361
|
-
case
|
|
361
|
+
case ue:
|
|
362
362
|
l || D();
|
|
363
363
|
break;
|
|
364
|
-
case
|
|
364
|
+
case de:
|
|
365
365
|
l || H();
|
|
366
366
|
break;
|
|
367
367
|
case fe:
|
|
@@ -379,7 +379,7 @@ const _e = /* @__PURE__ */ r.forwardRef(function(o, i) {
|
|
|
379
379
|
}
|
|
380
380
|
t > -1 && e[t].focus();
|
|
381
381
|
}
|
|
382
|
-
}), [S, f,
|
|
382
|
+
}), [S, f, u, P, l, _, y, h, R]);
|
|
383
383
|
return B("button", o, {
|
|
384
384
|
state: x,
|
|
385
385
|
ref: [i, E],
|
|
@@ -403,7 +403,7 @@ function Ye(n) {
|
|
|
403
403
|
mounted: C,
|
|
404
404
|
onOpenChange: R,
|
|
405
405
|
open: h,
|
|
406
|
-
panelRef:
|
|
406
|
+
panelRef: u,
|
|
407
407
|
runOnceAnimationsFinish: N,
|
|
408
408
|
setDimensions: f,
|
|
409
409
|
setMounted: O,
|
|
@@ -416,8 +416,8 @@ function Ye(n) {
|
|
|
416
416
|
if (!e)
|
|
417
417
|
return;
|
|
418
418
|
if (i.current == null || A.current == null) {
|
|
419
|
-
const t = getComputedStyle(e),
|
|
420
|
-
|
|
419
|
+
const t = getComputedStyle(e), d = t.animationName !== "none" && t.animationName !== "", D = t.transitionDuration !== "0s" && t.transitionDuration !== "";
|
|
420
|
+
d && D ? process.env.NODE_ENV !== "production" && K("CSS transitions and CSS animations both detected on Collapsible or Accordion panel.", "Only one of either animation type should be used.") : t.animationName === "none" && t.transitionDuration !== "0s" ? i.current = "css-transition" : t.animationName !== "none" && t.transitionDuration === "0s" ? i.current = "css-animation" : i.current = "none", e.getAttribute(Ge.orientation) === "horizontal" || t.transitionProperty.indexOf("width") > -1 ? A.current = "width" : A.current = "height";
|
|
421
421
|
}
|
|
422
422
|
if (i.current !== "css-transition")
|
|
423
423
|
return;
|
|
@@ -435,11 +435,11 @@ function Ye(n) {
|
|
|
435
435
|
}), () => {
|
|
436
436
|
F.cancel(a), F.cancel(s);
|
|
437
437
|
};
|
|
438
|
-
}), g = ce(I,
|
|
438
|
+
}), g = ce(I, u, V);
|
|
439
439
|
return T(() => {
|
|
440
440
|
if (i.current !== "css-transition")
|
|
441
441
|
return;
|
|
442
|
-
const e =
|
|
442
|
+
const e = u.current;
|
|
443
443
|
if (!e)
|
|
444
444
|
return;
|
|
445
445
|
let a = -1;
|
|
@@ -456,8 +456,8 @@ function Ye(n) {
|
|
|
456
456
|
height: e.scrollHeight,
|
|
457
457
|
width: e.scrollWidth
|
|
458
458
|
}), a = F.request(() => {
|
|
459
|
-
Object.entries(s).forEach(([t,
|
|
460
|
-
|
|
459
|
+
Object.entries(s).forEach(([t, d]) => {
|
|
460
|
+
d === "" ? e.style.removeProperty(t) : e.style.setProperty(t, d);
|
|
461
461
|
});
|
|
462
462
|
});
|
|
463
463
|
} else {
|
|
@@ -470,36 +470,36 @@ function Ye(n) {
|
|
|
470
470
|
const s = new AbortController();
|
|
471
471
|
o.current = s;
|
|
472
472
|
const t = s.signal;
|
|
473
|
-
let
|
|
473
|
+
let d = null;
|
|
474
474
|
const D = W.endingStyle;
|
|
475
|
-
return
|
|
476
|
-
H.some((j) => j.type === "attributes" && j.attributeName === D) && (
|
|
475
|
+
return d = new MutationObserver((H) => {
|
|
476
|
+
H.some((j) => j.type === "attributes" && j.attributeName === D) && (d?.disconnect(), d = null, N(() => {
|
|
477
477
|
f({
|
|
478
478
|
height: 0,
|
|
479
479
|
width: 0
|
|
480
480
|
}), e.style.removeProperty("content-visibility"), O(!1), o.current === s && (o.current = null);
|
|
481
481
|
}, t));
|
|
482
|
-
}),
|
|
482
|
+
}), d.observe(e, {
|
|
483
483
|
attributes: !0,
|
|
484
484
|
attributeFilter: [D]
|
|
485
485
|
}), () => {
|
|
486
|
-
|
|
486
|
+
d?.disconnect(), P.cancel(), o.current === s && (s.abort(), o.current = null);
|
|
487
487
|
};
|
|
488
488
|
}
|
|
489
489
|
return () => {
|
|
490
490
|
F.cancel(a);
|
|
491
491
|
};
|
|
492
|
-
}, [o, i, P, c, m, C, h,
|
|
492
|
+
}, [o, i, P, c, m, C, h, u, N, f, O]), T(() => {
|
|
493
493
|
if (i.current !== "css-animation")
|
|
494
494
|
return;
|
|
495
|
-
const e =
|
|
495
|
+
const e = u.current;
|
|
496
496
|
e && (l.current = e.style.animationName || l.current, e.style.setProperty("animation-name", "none"), f({
|
|
497
497
|
height: e.scrollHeight,
|
|
498
498
|
width: e.scrollWidth
|
|
499
499
|
}), !x.current && !_.current && e.style.removeProperty("animation-name"), h ? (o.current != null && (o.current.abort(), o.current = null), O(!0), S(!0)) : (o.current = new AbortController(), N(() => {
|
|
500
500
|
O(!1), S(!1), o.current = null;
|
|
501
501
|
}, o.current.signal)));
|
|
502
|
-
}, [o, i, h,
|
|
502
|
+
}, [o, i, h, u, N, f, O, S, y]), Te(() => {
|
|
503
503
|
const e = F.request(() => {
|
|
504
504
|
x.current = !1;
|
|
505
505
|
});
|
|
@@ -507,7 +507,7 @@ function Ye(n) {
|
|
|
507
507
|
}), T(() => {
|
|
508
508
|
if (!c)
|
|
509
509
|
return;
|
|
510
|
-
const e =
|
|
510
|
+
const e = u.current;
|
|
511
511
|
if (!e)
|
|
512
512
|
return;
|
|
513
513
|
let a = -1, s = -1;
|
|
@@ -523,11 +523,11 @@ function Ye(n) {
|
|
|
523
523
|
})), () => {
|
|
524
524
|
F.cancel(a), F.cancel(s);
|
|
525
525
|
};
|
|
526
|
-
}, [c, h,
|
|
527
|
-
const e =
|
|
526
|
+
}, [c, h, u, f]), T(() => {
|
|
527
|
+
const e = u.current;
|
|
528
528
|
e && c && p && (e.setAttribute("hidden", "until-found"), i.current === "css-transition" && e.setAttribute(W.startingStyle, ""));
|
|
529
|
-
}, [c, p, i,
|
|
530
|
-
const a =
|
|
529
|
+
}, [c, p, i, u]), r.useEffect(function() {
|
|
530
|
+
const a = u.current;
|
|
531
531
|
if (!a)
|
|
532
532
|
return;
|
|
533
533
|
function s(t) {
|
|
@@ -536,7 +536,7 @@ function Ye(n) {
|
|
|
536
536
|
return a.addEventListener("beforematch", s), () => {
|
|
537
537
|
a.removeEventListener("beforematch", s);
|
|
538
538
|
};
|
|
539
|
-
}, [R,
|
|
539
|
+
}, [R, u, E]), r.useMemo(() => ({
|
|
540
540
|
props: {
|
|
541
541
|
hidden: p,
|
|
542
542
|
id: v,
|
|
@@ -559,7 +559,7 @@ const ye = /* @__PURE__ */ r.forwardRef(function(o, i) {
|
|
|
559
559
|
hiddenUntilFound: R,
|
|
560
560
|
keepMounted: h
|
|
561
561
|
} = Y(), {
|
|
562
|
-
abortControllerRef:
|
|
562
|
+
abortControllerRef: u,
|
|
563
563
|
animationTypeRef: N,
|
|
564
564
|
height: f,
|
|
565
565
|
mounted: O,
|
|
@@ -579,7 +579,7 @@ const ye = /* @__PURE__ */ r.forwardRef(function(o, i) {
|
|
|
579
579
|
width: e,
|
|
580
580
|
setPanelIdState: a,
|
|
581
581
|
transitionStatus: s
|
|
582
|
-
} = he(), t = w ?? R,
|
|
582
|
+
} = he(), t = w ?? R, d = c ?? h;
|
|
583
583
|
process.env.NODE_ENV !== "production" && T(() => {
|
|
584
584
|
c === !1 && t && K("The `keepMounted={false}` prop on a Accordion.Panel will be ignored when using `contextHiddenUntilFound` on the Panel or the Root since it requires the panel to remain mounted when closed.");
|
|
585
585
|
}, [t, c]), T(() => {
|
|
@@ -590,8 +590,8 @@ const ye = /* @__PURE__ */ r.forwardRef(function(o, i) {
|
|
|
590
590
|
}, [m, a]), T(() => {
|
|
591
591
|
l(t);
|
|
592
592
|
}, [l, t]), T(() => {
|
|
593
|
-
x(
|
|
594
|
-
}, [x,
|
|
593
|
+
x(d);
|
|
594
|
+
}, [x, d]), Pe({
|
|
595
595
|
open: S && s === "idle",
|
|
596
596
|
ref: y,
|
|
597
597
|
onComplete() {
|
|
@@ -604,13 +604,13 @@ const ye = /* @__PURE__ */ r.forwardRef(function(o, i) {
|
|
|
604
604
|
const {
|
|
605
605
|
props: D
|
|
606
606
|
} = Ye({
|
|
607
|
-
abortControllerRef:
|
|
607
|
+
abortControllerRef: u,
|
|
608
608
|
animationTypeRef: N,
|
|
609
609
|
externalRef: i,
|
|
610
610
|
height: f,
|
|
611
611
|
hiddenUntilFound: t,
|
|
612
612
|
id: m ?? A,
|
|
613
|
-
keepMounted:
|
|
613
|
+
keepMounted: d,
|
|
614
614
|
mounted: O,
|
|
615
615
|
onOpenChange: E,
|
|
616
616
|
open: S,
|
|
@@ -642,16 +642,16 @@ const ye = /* @__PURE__ */ r.forwardRef(function(o, i) {
|
|
|
642
642
|
}, C],
|
|
643
643
|
stateAttributesMapping: Z
|
|
644
644
|
});
|
|
645
|
-
return
|
|
645
|
+
return d || t || !d && O ? Re : null;
|
|
646
646
|
});
|
|
647
647
|
process.env.NODE_ENV !== "production" && (ye.displayName = "AccordionPanel");
|
|
648
|
-
const Je = "
|
|
648
|
+
const Je = "_accordion_11u60_3", Qe = "_accordion__header_11u60_7", Xe = "_accordion__trigger_11u60_11", Ze = "_accordion__panel_11u60_32", U = {
|
|
649
649
|
accordion: Je,
|
|
650
650
|
accordion__header: Qe,
|
|
651
|
-
"accordion__trigger-icon": "_accordion__trigger-
|
|
651
|
+
"accordion__trigger-icon": "_accordion__trigger-icon_11u60_11",
|
|
652
652
|
accordion__trigger: Xe,
|
|
653
653
|
accordion__panel: Ze,
|
|
654
|
-
"accordion__panel-content": "_accordion__panel-
|
|
654
|
+
"accordion__panel-content": "_accordion__panel-content_11u60_44"
|
|
655
655
|
};
|
|
656
656
|
function en({
|
|
657
657
|
header: n,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as o, jsxs as u } from "react/jsx-runtime";
|
|
2
2
|
import { c as _ } from "../../clsx-OuTLNxxd.js";
|
|
3
|
-
import { t as h } from "../../transitions.module-
|
|
4
|
-
import { u as
|
|
3
|
+
import { t as h } from "../../transitions.module-SSNmQfsR.js";
|
|
4
|
+
import { u as v, D as y, a as I, b as T, c as b, d as O, e as N, s as n, f as S, g as k, h as w, i as A } from "../../dialog.module-CRiRBcbM.js";
|
|
5
5
|
import { Surface as B } from "../surface/surface.js";
|
|
6
6
|
import { View as C } from "../view/view.js";
|
|
7
7
|
import { Text as D } from "../text/text.js";
|
|
@@ -19,7 +19,7 @@ import '../../alert-dialog.css';function z(t) {
|
|
|
19
19
|
handle: f,
|
|
20
20
|
triggerId: l,
|
|
21
21
|
defaultTriggerId: c = null
|
|
22
|
-
} = t, d =
|
|
22
|
+
} = t, d = v(), g = !!d, e = $(() => f?.store ?? new y({
|
|
23
23
|
open: i ?? a,
|
|
24
24
|
activeTriggerId: l !== void 0 ? l : c,
|
|
25
25
|
modal: !0,
|
|
@@ -34,18 +34,18 @@ import '../../alert-dialog.css';function z(t) {
|
|
|
34
34
|
actionsRef: m,
|
|
35
35
|
parentContext: d?.store.context
|
|
36
36
|
});
|
|
37
|
-
const
|
|
37
|
+
const R = V.useMemo(() => ({
|
|
38
38
|
store: e
|
|
39
39
|
}), [e]);
|
|
40
40
|
return /* @__PURE__ */ o(T.Provider, {
|
|
41
|
-
value:
|
|
41
|
+
value: R,
|
|
42
42
|
children: typeof r == "function" ? r({
|
|
43
43
|
payload: P
|
|
44
44
|
}) : r
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
47
|
const M = {
|
|
48
|
-
"alert-dialog__actions": "_alert-
|
|
48
|
+
"alert-dialog__actions": "_alert-dialog__actions_1ppon_3"
|
|
49
49
|
};
|
|
50
50
|
function W({
|
|
51
51
|
title: t,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { u as n } from "../../useRender-C3vlzS3t.js";
|
|
2
|
-
import { m as
|
|
3
|
-
import '../../anchor.css';const
|
|
4
|
-
anchor:
|
|
2
|
+
import { m as t } from "../../useRenderElement-DngNDu_P.js";
|
|
3
|
+
import '../../anchor.css';const a = "_anchor_1mbt9_3", s = {
|
|
4
|
+
anchor: a
|
|
5
5
|
};
|
|
6
|
-
function p({ external:
|
|
6
|
+
function p({ external: e, render: r, ...o }) {
|
|
7
7
|
return n({
|
|
8
8
|
defaultTagName: "a",
|
|
9
|
-
render:
|
|
10
|
-
props:
|
|
9
|
+
render: r,
|
|
10
|
+
props: t(o, {
|
|
11
11
|
className: s.anchor,
|
|
12
|
-
...
|
|
12
|
+
...e ? {
|
|
13
13
|
target: "_blank",
|
|
14
14
|
rel: "noreferrer"
|
|
15
15
|
} : {}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as v, jsxs as E } from "react/jsx-runtime";
|
|
2
2
|
import { c as L } from "../../clsx-OuTLNxxd.js";
|
|
3
3
|
import * as o from "react";
|
|
4
|
-
import { u as
|
|
4
|
+
import { u as f, N as R } from "../../useRenderElement-DngNDu_P.js";
|
|
5
5
|
import { f as h } from "../../formatErrorMessage-BqPuTBN-.js";
|
|
6
6
|
import { u as k } from "../../useStableCallback-DKZHlUAT.js";
|
|
7
7
|
import { u as N } from "../../useIsoLayoutEffect-CIDbvm3Q.js";
|
|
@@ -26,13 +26,13 @@ const p = {
|
|
|
26
26
|
}), [t]), u = o.useMemo(() => ({
|
|
27
27
|
imageLoadingStatus: t,
|
|
28
28
|
setImageLoadingStatus: c
|
|
29
|
-
}), [t, c]), n =
|
|
29
|
+
}), [t, c]), n = f("span", a, {
|
|
30
30
|
state: _,
|
|
31
31
|
ref: s,
|
|
32
32
|
props: r,
|
|
33
33
|
stateAttributesMapping: p
|
|
34
34
|
});
|
|
35
|
-
return /* @__PURE__ */
|
|
35
|
+
return /* @__PURE__ */ v(g.Provider, {
|
|
36
36
|
value: u,
|
|
37
37
|
children: n
|
|
38
38
|
});
|
|
@@ -55,7 +55,7 @@ function M(e, {
|
|
|
55
55
|
};
|
|
56
56
|
}, [e, s, a]), l;
|
|
57
57
|
}
|
|
58
|
-
const
|
|
58
|
+
const y = /* @__PURE__ */ o.forwardRef(function(a, s) {
|
|
59
59
|
const {
|
|
60
60
|
className: l,
|
|
61
61
|
render: i,
|
|
@@ -75,7 +75,7 @@ const w = /* @__PURE__ */ o.forwardRef(function(a, s) {
|
|
|
75
75
|
const A = o.useMemo(() => ({
|
|
76
76
|
imageLoadingStatus: n
|
|
77
77
|
}), [n]);
|
|
78
|
-
return
|
|
78
|
+
return f("img", a, {
|
|
79
79
|
state: A,
|
|
80
80
|
ref: s,
|
|
81
81
|
props: _,
|
|
@@ -83,7 +83,7 @@ const w = /* @__PURE__ */ o.forwardRef(function(a, s) {
|
|
|
83
83
|
enabled: n === "loaded"
|
|
84
84
|
});
|
|
85
85
|
});
|
|
86
|
-
process.env.NODE_ENV !== "production" && (
|
|
86
|
+
process.env.NODE_ENV !== "production" && (y.displayName = "AvatarImage");
|
|
87
87
|
const S = /* @__PURE__ */ o.forwardRef(function(a, s) {
|
|
88
88
|
const {
|
|
89
89
|
className: l,
|
|
@@ -97,7 +97,7 @@ const S = /* @__PURE__ */ o.forwardRef(function(a, s) {
|
|
|
97
97
|
const d = o.useMemo(() => ({
|
|
98
98
|
imageLoadingStatus: c
|
|
99
99
|
}), [c]);
|
|
100
|
-
return
|
|
100
|
+
return f("span", a, {
|
|
101
101
|
state: d,
|
|
102
102
|
ref: s,
|
|
103
103
|
props: t,
|
|
@@ -106,8 +106,8 @@ const S = /* @__PURE__ */ o.forwardRef(function(a, s) {
|
|
|
106
106
|
});
|
|
107
107
|
});
|
|
108
108
|
process.env.NODE_ENV !== "production" && (S.displayName = "AvatarFallback");
|
|
109
|
-
const
|
|
110
|
-
avatar:
|
|
109
|
+
const w = "_avatar_l5yco_3", I = "_avatar__image_l5yco_17", O = "_avatar__fallback_l5yco_23", D = "_avatar_size_sm_l5yco_36", V = "_avatar_size_md_l5yco_40", F = "_avatar_size_lg_l5yco_44", P = "_avatar_size_xl_l5yco_48", j = "_avatar_size_2xl_l5yco_52", U = "_avatar_size_3xl_l5yco_56", m = {
|
|
110
|
+
avatar: w,
|
|
111
111
|
avatar__image: I,
|
|
112
112
|
avatar__fallback: O,
|
|
113
113
|
avatar_size_sm: D,
|
|
@@ -136,14 +136,14 @@ function W({
|
|
|
136
136
|
),
|
|
137
137
|
...r,
|
|
138
138
|
children: [
|
|
139
|
-
e ? /* @__PURE__ */
|
|
140
|
-
|
|
139
|
+
e ? /* @__PURE__ */ v(
|
|
140
|
+
y,
|
|
141
141
|
{
|
|
142
142
|
src: e,
|
|
143
143
|
className: m.avatar__image
|
|
144
144
|
}
|
|
145
145
|
) : null,
|
|
146
|
-
/* @__PURE__ */
|
|
146
|
+
/* @__PURE__ */ v(S, { className: m.avatar__fallback, children: t })
|
|
147
147
|
]
|
|
148
148
|
}
|
|
149
149
|
);
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
1
|
+
import { jsx as e, jsxs as p, Fragment as g } from "react/jsx-runtime";
|
|
2
2
|
import { c as f } from "../../clsx-OuTLNxxd.js";
|
|
3
|
-
import { T as _ } from "../../tooltip-
|
|
3
|
+
import { T as _ } from "../../tooltip-JPnUwFFR.js";
|
|
4
4
|
import { Text as b } from "../text/text.js";
|
|
5
5
|
import { View as h } from "../view/view.js";
|
|
6
6
|
import { Icon as u } from "../icon/icon.js";
|
|
7
|
-
import { u as
|
|
8
|
-
import { m as
|
|
9
|
-
import '../../badge.css';const T = "
|
|
7
|
+
import { u as y } from "../../useRender-C3vlzS3t.js";
|
|
8
|
+
import { m as x } from "../../useRenderElement-DngNDu_P.js";
|
|
9
|
+
import '../../badge.css';const T = "_badge_1m3yi_3", j = "_badge_shiny_1m3yi_18", s = {
|
|
10
10
|
badge: T,
|
|
11
11
|
badge_shiny: j
|
|
12
12
|
};
|
|
13
13
|
function V({
|
|
14
14
|
icon: r,
|
|
15
|
-
name:
|
|
16
|
-
color:
|
|
17
|
-
shiny:
|
|
18
|
-
tagline:
|
|
15
|
+
name: i,
|
|
16
|
+
color: t,
|
|
17
|
+
shiny: n,
|
|
18
|
+
tagline: m,
|
|
19
19
|
render: a,
|
|
20
20
|
className: d,
|
|
21
21
|
...l
|
|
22
22
|
}) {
|
|
23
|
-
const
|
|
23
|
+
const c = y({
|
|
24
24
|
defaultTagName: "span",
|
|
25
25
|
render: a,
|
|
26
|
-
props:
|
|
26
|
+
props: x(l, {
|
|
27
27
|
className: f(
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
s.badge,
|
|
29
|
+
n && s.badge_shiny,
|
|
30
30
|
d
|
|
31
31
|
),
|
|
32
|
-
children: /* @__PURE__ */
|
|
32
|
+
children: /* @__PURE__ */ p(g, { children: [
|
|
33
33
|
r ? /* @__PURE__ */ e(u, { name: r }) : null,
|
|
34
|
-
|
|
34
|
+
i
|
|
35
35
|
] })
|
|
36
36
|
})
|
|
37
|
-
}),
|
|
38
|
-
return
|
|
37
|
+
}), o = /* @__PURE__ */ e(h, { color: t, children: c });
|
|
38
|
+
return m ? /* @__PURE__ */ e(_, { trigger: o, children: /* @__PURE__ */ e(b, { size: "sm", multiline: !0, children: m }) }) : o;
|
|
39
39
|
}
|
|
40
40
|
export {
|
|
41
41
|
V as Badge
|