@koide-labs/ui 0.1.0 → 0.1.2
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/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 +40 -40
- package/dist/components/alert-dialog/alert-dialog.js +9 -9
- package/dist/components/anchor/anchor.js +5 -5
- package/dist/components/avatar/avatar.js +26 -26
- package/dist/components/badge/badge.js +13 -13
- package/dist/components/button/button.js +13 -13
- package/dist/components/checkbox/checkbox.js +1 -1
- package/dist/components/code/code.js +48 -48
- package/dist/components/collapse/collapse.js +14 -14
- package/dist/components/command/command.js +121 -121
- package/dist/components/context-menu/context-menu.js +6 -6
- package/dist/components/dialog/dialog.js +1 -1
- package/dist/components/heading/heading.js +6 -6
- package/dist/components/icon/icon.js +12 -12
- package/dist/components/icon-button/icon-button.js +26 -26
- package/dist/components/inline-code/inline-code.js +2 -2
- package/dist/components/input/input.js +1 -1
- package/dist/components/meter/meter.js +40 -40
- package/dist/components/multiline-input/multiline-input.js +1 -1
- package/dist/components/number-input/number-input.js +7 -7
- package/dist/components/password-input/password-input.js +2 -2
- package/dist/components/pill/pill.js +11 -11
- package/dist/components/popover/popover.js +21 -21
- package/dist/components/preview-card/preview-card.js +2 -2
- package/dist/components/radio-group/radio-group.js +54 -54
- package/dist/components/search-bar/search-bar.js +8 -8
- package/dist/components/select/select.js +75 -75
- package/dist/components/separator/index.js +1 -1
- package/dist/components/separator/separator.js +1 -1
- package/dist/components/slider/slider.js +128 -128
- package/dist/components/spinner/spinner.js +4 -4
- package/dist/components/stacked-avatars/stacked-avatars.js +35 -35
- package/dist/components/status-banner/status-banner.js +22 -22
- package/dist/components/surface/surface.js +14 -14
- package/dist/components/switch/switch.js +28 -28
- package/dist/components/tabs/tabs.js +132 -132
- package/dist/components/text/text.js +15 -15
- package/dist/components/timestamp/timestamp.js +73 -73
- package/dist/components/toaster/toaster.js +165 -165
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooltip/tooltip.js +1 -1
- 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-DsbQRp-d.js → dialog.module-Pi1eHwli.js} +13 -13
- package/dist/heading.css +1 -1
- package/dist/icon-button.css +1 -1
- package/dist/icon.css +1 -1
- package/dist/index.js +2 -2
- package/dist/inline-code.css +1 -1
- package/dist/input.css +1 -1
- package/dist/input.module-zw1dlr1_.js +8 -0
- package/dist/integrations/react-markdown/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/search-bar.css +1 -1
- package/dist/select.css +1 -1
- package/dist/{separator-fh_wDZNf.js → separator-wNYojB9q.js} +8 -8
- 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-oCp-elli.js → tooltip-DZkByWDR.js} +63 -63
- package/dist/tooltip.css +1 -1
- package/dist/view.css +1 -1
- package/dist/view.module-DlwuNdUj.js +6 -0
- package/dist/view2.css +1 -1
- package/package.json +1 -1
- package/dist/input.module-CtE19OH8.js +0 -8
- package/dist/view.module-Dj7wj0kk.js +0 -6
package/dist/accordion.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer
|
|
1
|
+
@layer ui-component{._accordion_fr915_2{border-bottom:1px solid var(--surface-interactive-border)}._accordion__header_fr915_6{display:flex}._accordion__trigger-icon_fr915_10{transform:rotate(-45deg);transition:transform var(--transition-duration-snappy) var(--transition-timing-function-snappy)}._accordion__trigger_fr915_10{flex-grow:1;flex-shrink:1;flex-direction:row;justify-content:space-between;align-items:center;border-radius:0!important;padding:var(--space-8) var(--space-12);line-height:1}._accordion__trigger_fr915_10[data-panel-open] ._accordion__trigger-icon_fr915_10{transform:rotate(0)}._accordion__panel_fr915_31{transition:height var(--transition-duration-chill) var(--transition-timing-function-chill);height:var(--accordion-panel-height);overflow:hidden}._accordion__panel_fr915_31[data-starting-style],._accordion__panel_fr915_31[data-ending-style]{height:0}._accordion__panel-content_fr915_43{padding:var(--space-12)}}
|
package/dist/alert-dialog.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer
|
|
1
|
+
@layer ui-component{._alert-dialog__actions_11yi2_2{flex-direction:row;justify-content:end;gap:var(--space-8)}}
|
package/dist/anchor.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer
|
|
1
|
+
@layer ui-component{._anchor_1r8mk_2{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_1r8mk_2:visited{color:var(--primary-stronger)}}
|
package/dist/avatar.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer
|
|
1
|
+
@layer ui-component{._avatar_o3fws_2{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_o3fws_16{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}._avatar__fallback_o3fws_22{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_o3fws_35{--avatar-size: var(--space-24)}._avatar_size_md_o3fws_39{--avatar-size: var(--space-32)}._avatar_size_lg_o3fws_43{--avatar-size: var(--space-40)}._avatar_size_xl_o3fws_47{--avatar-size: var(--space-48)}._avatar_size_2xl_o3fws_51{--avatar-size: var(--space-56)}._avatar_size_3xl_o3fws_55{--avatar-size: var(--space-64)}}
|
package/dist/badge.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer
|
|
1
|
+
@layer ui-component{._badge_198pt_2{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_198pt_17{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_198pt_17:hover{transition:background-position .6s var(--transition-timing-function-chill);background-position:right}}
|
package/dist/button.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer
|
|
1
|
+
@layer ui-component{._button_nag0o_2{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_nag0o_15{--button-padding-inline: var(--space-12);--button-height: var(--space-28)}._button_height_md_nag0o_20{--button-padding-inline: var(--space-16);--button-height: var(--space-32)}._button_height_lg_nag0o_25{--button-padding-inline: var(--space-20);--button-height: var(--space-40)}._button_height_xl_nag0o_30{--button-padding-inline: var(--space-24);--button-height: var(--space-48)}._button_height_2xl_nag0o_35{--button-padding-inline: var(--space-28);--button-height: var(--space-56)}._button_height_3xl_nag0o_40{--button-padding-inline: var(--space-32);--button-height: var(--space-64)}}
|
package/dist/checkbox.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer
|
|
1
|
+
@layer ui-component{._checkbox__label_1pchx_2{display:flex;flex-direction:row;align-items:center;gap:var(--space-8)}._checkbox_1pchx_2{display:flex;justify-content:center;align-items:center;border-radius:var(--border-radius-4);width:20px;height:20px}._checkbox_1pchx_2[data-checked]{background:var(--view-colorway-dimmer)}._checkbox_1pchx_2[data-checked]:not([disabled],[data-disabled]){background:var(--view-colorway-default)}._checkbox_1pchx_2[data-checked]:not([disabled],[data-disabled]):hover{border-color:var(--view-colorway-stronger)}._checkbox__indicator_1pchx_30{pointer-events:none;color:var(--white)}._checkbox__indicator_1pchx_30[data-unchecked]{display:none}}
|
package/dist/code.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer
|
|
1
|
+
@layer ui-component{._code__root_1bx1u_2{border-radius:var(--border-radius-default);overflow:hidden}._code_1bx1u_2{border-radius:var(--border-radius-default);padding:var(--space-8);overflow-x:auto}._code_title_1bx1u_13{border-top-left-radius:0}._code__value_1bx1u_17{font-size:var(--font-size-default);font-family:var(--font-family-code)}._code__title_1bx1u_22{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
|
-
@layer
|
|
1
|
+
@layer ui-atom{._collapse_10nze_2{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_10nze_13{opacity:1;height:var(--collapse-height)}._collapse_hidden_10nze_18{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
|
-
@layer
|
|
1
|
+
@layer ui-component{._command_1t4ah_2{--command-padding: var(--space-6);border:none;padding:0}._command_1t4ah_2 [data-framework-close]{top:var(--space-4);right:var(--space-4)}._command__empty_1t4ah_15{padding:var(--space-28) var(--space-16);padding-top:calc(var(--space-28) + var(--command-padding));text-align:center}._command__input-root_1t4ah_21{position:relative;height:var(--space-32)}._command__input_1t4ah_21{flex-grow:1;flex-shrink:1;border-bottom-right-radius:0!important;border-bottom-left-radius:0!important;background-color:transparent;padding:var(--space-4) var(--space-32);width:100%;height:100%;line-height:var(--line-height-input)}._command__input_1t4ah_21::-moz-placeholder{color:var(--foreground-dimmest)}._command__input_1t4ah_21::placeholder{color:var(--foreground-dimmest)}._command__input_1t4ah_21:not([disabled],[data-disabled]){cursor:text}._command__input-icon_1t4ah_46{position:absolute;top:var(--space-8);left:var(--space-8)}._command__list_1t4ah_52{border:1px solid var(--surface-interactive-border);border-top:0;border-bottom-right-radius:var(--border-radius-default)!important;border-bottom-left-radius:var(--border-radius-default)!important;padding-bottom:var(--command-padding);max-height:var(--space-256);overflow:hidden auto}._command__group_1t4ah_62{padding-top:var(--space-6)}._command__group_1t4ah_62 [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_1t4ah_75{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_1t4ah_75[data-selected=true]{background-color:var(--interactive-background)}._command__shortcut_1t4ah_88{margin-left:auto;letter-spacing:.1em}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as k, jsxs as ne } from "react/jsx-runtime";
|
|
2
2
|
import { c as Ce } from "../../clsx-OuTLNxxd.js";
|
|
3
3
|
import { textify as te } from "../../-utils.js";
|
|
4
4
|
import { Surface as Ne } from "../surface/surface.js";
|
|
@@ -7,7 +7,7 @@ import { Icon as Oe } from "../icon/icon.js";
|
|
|
7
7
|
import * as r from "react";
|
|
8
8
|
import { u as ae } from "../../useControlled-Du4sJyMj.js";
|
|
9
9
|
import { u as L } from "../../useStableCallback-DKZHlUAT.js";
|
|
10
|
-
import { u as
|
|
10
|
+
import { u as T } from "../../useIsoLayoutEffect-CIDbvm3Q.js";
|
|
11
11
|
import { w as K } from "../../warn-CKtX8MLJ.js";
|
|
12
12
|
import { C as Ee, u as xe } from "../../useCompositeListItem-CZp9WTnF.js";
|
|
13
13
|
import { u as ve } from "../../DirectionContext-C2o_MF_i.js";
|
|
@@ -20,9 +20,9 @@ import { u as Ie } from "../../useTransitionStatus-CmMyUh74.js";
|
|
|
20
20
|
import { i as ie } from "../../isElementDisabled-Cbd8W9kH.js";
|
|
21
21
|
import { b as de, e as ue, 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
|
-
import { s as
|
|
24
|
-
import { u as
|
|
25
|
-
import { u as
|
|
23
|
+
import { s as Fe } from "../../event-B89-Ng5h.js";
|
|
24
|
+
import { u as Te } from "../../useOnMount-VRW6CK2u.js";
|
|
25
|
+
import { u as ke, A as F } from "../../useAnimationFrame-DvK1s63A.js";
|
|
26
26
|
import '../../accordion.css';const G = /* @__PURE__ */ r.createContext(void 0);
|
|
27
27
|
process.env.NODE_ENV !== "production" && (G.displayName = "AccordionRootContext");
|
|
28
28
|
function Y() {
|
|
@@ -48,7 +48,7 @@ const He = {
|
|
|
48
48
|
defaultValue: f,
|
|
49
49
|
...O
|
|
50
50
|
} = o, E = ve();
|
|
51
|
-
process.env.NODE_ENV !== "production" &&
|
|
51
|
+
process.env.NODE_ENV !== "production" && T(() => {
|
|
52
52
|
m && v === !1 && K("The `keepMounted={false}` prop on a Accordion.Root will be ignored when using `hiddenUntilFound` since it requires Panels to remain mounted when closed.");
|
|
53
53
|
}, [m, v]);
|
|
54
54
|
const S = r.useMemo(() => {
|
|
@@ -103,9 +103,9 @@ const He = {
|
|
|
103
103
|
}, O],
|
|
104
104
|
stateAttributesMapping: He
|
|
105
105
|
});
|
|
106
|
-
return /* @__PURE__ */
|
|
106
|
+
return /* @__PURE__ */ k(G.Provider, {
|
|
107
107
|
value: M,
|
|
108
|
-
children: /* @__PURE__ */
|
|
108
|
+
children: /* @__PURE__ */ k(Ee, {
|
|
109
109
|
elementsRef: y,
|
|
110
110
|
children: P
|
|
111
111
|
})
|
|
@@ -140,7 +140,7 @@ function Ue(n) {
|
|
|
140
140
|
const D = g.current;
|
|
141
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" && (!d && t && N(!0), !C && t && R(!0))), v(t), p.current === "none" && C && !t && R(!1);
|
|
142
142
|
});
|
|
143
|
-
return
|
|
143
|
+
return T(() => {
|
|
144
144
|
c && p.current === "none" && !x && !m && R(!1);
|
|
145
145
|
}, [c, x, m, o, R]), r.useMemo(() => ({
|
|
146
146
|
abortControllerRef: P,
|
|
@@ -266,9 +266,9 @@ const Z = {
|
|
|
266
266
|
props: C,
|
|
267
267
|
stateAttributesMapping: Z
|
|
268
268
|
});
|
|
269
|
-
return /* @__PURE__ */
|
|
269
|
+
return /* @__PURE__ */ k(J.Provider, {
|
|
270
270
|
value: M,
|
|
271
|
-
children: /* @__PURE__ */
|
|
271
|
+
children: /* @__PURE__ */ k(Q.Provider, {
|
|
272
272
|
value: g,
|
|
273
273
|
children: e
|
|
274
274
|
})
|
|
@@ -335,7 +335,7 @@ const _e = /* @__PURE__ */ r.forwardRef(function(o, i) {
|
|
|
335
335
|
setTriggerId: M,
|
|
336
336
|
triggerId: P
|
|
337
337
|
} = X();
|
|
338
|
-
|
|
338
|
+
T(() => (c && M(c), () => {
|
|
339
339
|
M(void 0);
|
|
340
340
|
}), [c, M]);
|
|
341
341
|
const p = r.useMemo(() => ({
|
|
@@ -347,7 +347,7 @@ const _e = /* @__PURE__ */ r.forwardRef(function(o, i) {
|
|
|
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
353
|
const u = e.indexOf(g.target);
|
|
@@ -412,7 +412,7 @@ function Ye(n) {
|
|
|
412
412
|
transitionDimensionRef: A,
|
|
413
413
|
visible: y,
|
|
414
414
|
width: b
|
|
415
|
-
} = n, _ = r.useRef(!1), l = r.useRef(null), x = r.useRef(h), M = r.useRef(h), P =
|
|
415
|
+
} = n, _ = r.useRef(!1), l = r.useRef(null), x = r.useRef(h), M = r.useRef(h), P = ke(), p = r.useMemo(() => i.current === "css-animation" ? !y : !h && !C, [h, C, y, i]), V = L((e) => {
|
|
416
416
|
if (!e)
|
|
417
417
|
return;
|
|
418
418
|
if (i.current == null || A.current == null) {
|
|
@@ -426,17 +426,17 @@ function Ye(n) {
|
|
|
426
426
|
width: e.scrollWidth
|
|
427
427
|
}), M.current && e.style.setProperty("transition-duration", "0s"));
|
|
428
428
|
let a = -1, s = -1;
|
|
429
|
-
return a =
|
|
430
|
-
M.current = !1, s =
|
|
429
|
+
return a = F.request(() => {
|
|
430
|
+
M.current = !1, s = F.request(() => {
|
|
431
431
|
setTimeout(() => {
|
|
432
432
|
e.style.removeProperty("transition-duration");
|
|
433
433
|
});
|
|
434
434
|
});
|
|
435
435
|
}), () => {
|
|
436
|
-
|
|
436
|
+
F.cancel(a), F.cancel(s);
|
|
437
437
|
};
|
|
438
438
|
}), g = ce(I, d, V);
|
|
439
|
-
return
|
|
439
|
+
return T(() => {
|
|
440
440
|
if (i.current !== "css-transition")
|
|
441
441
|
return;
|
|
442
442
|
const e = d.current;
|
|
@@ -455,7 +455,7 @@ function Ye(n) {
|
|
|
455
455
|
}), !M.current && !m && e.setAttribute(W.startingStyle, ""), f({
|
|
456
456
|
height: e.scrollHeight,
|
|
457
457
|
width: e.scrollWidth
|
|
458
|
-
}), a =
|
|
458
|
+
}), a = F.request(() => {
|
|
459
459
|
Object.entries(s).forEach(([t, u]) => {
|
|
460
460
|
u === "" ? e.style.removeProperty(t) : e.style.setProperty(t, u);
|
|
461
461
|
});
|
|
@@ -487,9 +487,9 @@ function Ye(n) {
|
|
|
487
487
|
};
|
|
488
488
|
}
|
|
489
489
|
return () => {
|
|
490
|
-
|
|
490
|
+
F.cancel(a);
|
|
491
491
|
};
|
|
492
|
-
}, [o, i, P, c, m, C, h, d, N, f, O]),
|
|
492
|
+
}, [o, i, P, c, m, C, h, d, N, f, O]), T(() => {
|
|
493
493
|
if (i.current !== "css-animation")
|
|
494
494
|
return;
|
|
495
495
|
const e = d.current;
|
|
@@ -499,12 +499,12 @@ function Ye(n) {
|
|
|
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, d, N, f, O, S, y]),
|
|
503
|
-
const e =
|
|
502
|
+
}, [o, i, h, d, N, f, O, S, y]), Te(() => {
|
|
503
|
+
const e = F.request(() => {
|
|
504
504
|
x.current = !1;
|
|
505
505
|
});
|
|
506
|
-
return () =>
|
|
507
|
-
}),
|
|
506
|
+
return () => F.cancel(e);
|
|
507
|
+
}), T(() => {
|
|
508
508
|
if (!c)
|
|
509
509
|
return;
|
|
510
510
|
const e = d.current;
|
|
@@ -514,16 +514,16 @@ function Ye(n) {
|
|
|
514
514
|
return h && _.current && (e.style.transitionDuration = "0s", f({
|
|
515
515
|
height: e.scrollHeight,
|
|
516
516
|
width: e.scrollWidth
|
|
517
|
-
}), a =
|
|
518
|
-
_.current = !1, s =
|
|
517
|
+
}), a = F.request(() => {
|
|
518
|
+
_.current = !1, s = F.request(() => {
|
|
519
519
|
setTimeout(() => {
|
|
520
520
|
e.style.removeProperty("transition-duration");
|
|
521
521
|
});
|
|
522
522
|
});
|
|
523
523
|
})), () => {
|
|
524
|
-
|
|
524
|
+
F.cancel(a), F.cancel(s);
|
|
525
525
|
};
|
|
526
|
-
}, [c, h, d, f]),
|
|
526
|
+
}, [c, h, d, f]), T(() => {
|
|
527
527
|
const e = d.current;
|
|
528
528
|
e && c && p && (e.setAttribute("hidden", "until-found"), i.current === "css-transition" && e.setAttribute(W.startingStyle, ""));
|
|
529
529
|
}, [c, p, i, d]), r.useEffect(function() {
|
|
@@ -580,16 +580,16 @@ const ye = /* @__PURE__ */ r.forwardRef(function(o, i) {
|
|
|
580
580
|
setPanelIdState: a,
|
|
581
581
|
transitionStatus: s
|
|
582
582
|
} = he(), t = w ?? R, u = c ?? h;
|
|
583
|
-
process.env.NODE_ENV !== "production" &&
|
|
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
|
-
}, [t, c]),
|
|
585
|
+
}, [t, c]), T(() => {
|
|
586
586
|
if (m)
|
|
587
587
|
return a(m), () => {
|
|
588
588
|
a(void 0);
|
|
589
589
|
};
|
|
590
|
-
}, [m, a]),
|
|
590
|
+
}, [m, a]), T(() => {
|
|
591
591
|
l(t);
|
|
592
|
-
}, [l, t]),
|
|
592
|
+
}, [l, t]), T(() => {
|
|
593
593
|
x(u);
|
|
594
594
|
}, [x, u]), Pe({
|
|
595
595
|
open: S && s === "idle",
|
|
@@ -645,13 +645,13 @@ const ye = /* @__PURE__ */ r.forwardRef(function(o, i) {
|
|
|
645
645
|
return u || t || !u && O ? Re : null;
|
|
646
646
|
});
|
|
647
647
|
process.env.NODE_ENV !== "production" && (ye.displayName = "AccordionPanel");
|
|
648
|
-
const Je = "
|
|
648
|
+
const Je = "_accordion_fr915_2", Qe = "_accordion__header_fr915_6", Xe = "_accordion__trigger_fr915_10", Ze = "_accordion__panel_fr915_31", U = {
|
|
649
649
|
accordion: Je,
|
|
650
650
|
accordion__header: Qe,
|
|
651
|
-
"accordion__trigger-icon": "_accordion__trigger-
|
|
651
|
+
"accordion__trigger-icon": "_accordion__trigger-icon_fr915_10",
|
|
652
652
|
accordion__trigger: Xe,
|
|
653
653
|
accordion__panel: Ze,
|
|
654
|
-
"accordion__panel-content": "_accordion__panel-
|
|
654
|
+
"accordion__panel-content": "_accordion__panel-content_fr915_43"
|
|
655
655
|
};
|
|
656
656
|
function en({
|
|
657
657
|
header: n,
|
|
@@ -660,7 +660,7 @@ function en({
|
|
|
660
660
|
...I
|
|
661
661
|
}) {
|
|
662
662
|
return /* @__PURE__ */ ne(ge, { className: U.accordion, ...I, children: [
|
|
663
|
-
/* @__PURE__ */
|
|
663
|
+
/* @__PURE__ */ k(be, { className: U.accordion__header, children: /* @__PURE__ */ k(
|
|
664
664
|
Ne,
|
|
665
665
|
{
|
|
666
666
|
elevated: !0,
|
|
@@ -668,7 +668,7 @@ function en({
|
|
|
668
668
|
oe,
|
|
669
669
|
{
|
|
670
670
|
interactive: "list-item",
|
|
671
|
-
render: /* @__PURE__ */
|
|
671
|
+
render: /* @__PURE__ */ k(
|
|
672
672
|
_e,
|
|
673
673
|
{
|
|
674
674
|
className: Ce(U.accordion__trigger, i)
|
|
@@ -676,7 +676,7 @@ function en({
|
|
|
676
676
|
),
|
|
677
677
|
children: [
|
|
678
678
|
te(n),
|
|
679
|
-
/* @__PURE__ */
|
|
679
|
+
/* @__PURE__ */ k(
|
|
680
680
|
Oe,
|
|
681
681
|
{
|
|
682
682
|
name: "close-line",
|
|
@@ -688,7 +688,7 @@ function en({
|
|
|
688
688
|
)
|
|
689
689
|
}
|
|
690
690
|
) }),
|
|
691
|
-
/* @__PURE__ */
|
|
691
|
+
/* @__PURE__ */ k(ye, { className: U.accordion__panel, children: /* @__PURE__ */ k(oe, { className: U["accordion__panel-content"], children: te(o, {
|
|
692
692
|
multiline: !0
|
|
693
693
|
}) }) })
|
|
694
694
|
] });
|
|
@@ -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
3
|
import { t as h } from "../../transitions.module-D9mMAtfI.js";
|
|
4
|
-
import { u as
|
|
4
|
+
import { u as R, D as v, 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-Pi1eHwli.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 = R(), g = !!d, e = $(() => f?.store ?? new v({
|
|
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 y = V.useMemo(() => ({
|
|
38
38
|
store: e
|
|
39
39
|
}), [e]);
|
|
40
40
|
return /* @__PURE__ */ o(T.Provider, {
|
|
41
|
-
value:
|
|
41
|
+
value: y,
|
|
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_11yi2_2"
|
|
49
49
|
};
|
|
50
50
|
function W({
|
|
51
51
|
title: t,
|
|
@@ -63,7 +63,7 @@ function W({
|
|
|
63
63
|
s ? /* @__PURE__ */ o(b, { render: s }) : null,
|
|
64
64
|
/* @__PURE__ */ u(O, { children: [
|
|
65
65
|
/* @__PURE__ */ o(
|
|
66
|
-
|
|
66
|
+
N,
|
|
67
67
|
{
|
|
68
68
|
className: _(
|
|
69
69
|
n.dialog__backdrop,
|
|
@@ -72,7 +72,7 @@ function W({
|
|
|
72
72
|
}
|
|
73
73
|
),
|
|
74
74
|
/* @__PURE__ */ o(
|
|
75
|
-
|
|
75
|
+
S,
|
|
76
76
|
{
|
|
77
77
|
className: _(
|
|
78
78
|
n.dialog__popup,
|
|
@@ -90,13 +90,13 @@ function W({
|
|
|
90
90
|
),
|
|
91
91
|
children: [
|
|
92
92
|
t || r ? /* @__PURE__ */ u(C, { className: n.dialog__header, children: [
|
|
93
|
-
t ? /* @__PURE__ */ o(D, { render: /* @__PURE__ */ o(
|
|
93
|
+
t ? /* @__PURE__ */ o(D, { render: /* @__PURE__ */ o(k, {}), size: "2xl", children: t }) : null,
|
|
94
94
|
r ? /* @__PURE__ */ o(
|
|
95
95
|
D,
|
|
96
96
|
{
|
|
97
97
|
multiline: !0,
|
|
98
98
|
color: "dimmer",
|
|
99
|
-
render: /* @__PURE__ */ o(
|
|
99
|
+
render: /* @__PURE__ */ o(w, {}),
|
|
100
100
|
children: r
|
|
101
101
|
}
|
|
102
102
|
) : null
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { u as n } from "../../useRender-C3vlzS3t.js";
|
|
2
2
|
import { m as a } from "../../useRenderElement-DngNDu_P.js";
|
|
3
|
-
import '../../anchor.css';const t = "
|
|
3
|
+
import '../../anchor.css';const t = "_anchor_1r8mk_2", s = {
|
|
4
4
|
anchor: t
|
|
5
5
|
};
|
|
6
|
-
function
|
|
6
|
+
function p({ external: r, render: e, ...o }) {
|
|
7
7
|
return n({
|
|
8
8
|
defaultTagName: "a",
|
|
9
|
-
render:
|
|
9
|
+
render: e,
|
|
10
10
|
props: a(o, {
|
|
11
11
|
className: s.anchor,
|
|
12
|
-
...
|
|
12
|
+
...r ? {
|
|
13
13
|
target: "_blank",
|
|
14
14
|
rel: "noreferrer"
|
|
15
15
|
} : {}
|
|
@@ -17,5 +17,5 @@ function h({ external: e, render: r, ...o }) {
|
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
19
|
export {
|
|
20
|
-
|
|
20
|
+
p as Anchor
|
|
21
21
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
1
|
+
import { jsx as f, jsxs as E } from "react/jsx-runtime";
|
|
2
|
+
import { c as L } from "../../clsx-OuTLNxxd.js";
|
|
3
3
|
import * as o from "react";
|
|
4
|
-
import { u as
|
|
5
|
-
import { f as
|
|
6
|
-
import { u as
|
|
4
|
+
import { u as v, N as R } from "../../useRenderElement-DngNDu_P.js";
|
|
5
|
+
import { f as h } from "../../formatErrorMessage-BqPuTBN-.js";
|
|
6
|
+
import { u as k } from "../../useStableCallback-DKZHlUAT.js";
|
|
7
7
|
import { u as N } from "../../useIsoLayoutEffect-CIDbvm3Q.js";
|
|
8
|
-
import { u as
|
|
8
|
+
import { u as C } from "../../useTimeout-BNni6aw5.js";
|
|
9
9
|
import '../../avatar.css';const g = /* @__PURE__ */ o.createContext(void 0);
|
|
10
10
|
process.env.NODE_ENV !== "production" && (g.displayName = "AvatarRootContext");
|
|
11
11
|
function b() {
|
|
12
12
|
const e = o.useContext(g);
|
|
13
13
|
if (e === void 0)
|
|
14
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: AvatarRootContext is missing. Avatar parts must be placed within <Avatar.Root>." :
|
|
14
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: AvatarRootContext is missing. Avatar parts must be placed within <Avatar.Root>." : h(13));
|
|
15
15
|
return e;
|
|
16
16
|
}
|
|
17
17
|
const p = {
|
|
@@ -26,26 +26,26 @@ const p = {
|
|
|
26
26
|
}), [t]), u = o.useMemo(() => ({
|
|
27
27
|
imageLoadingStatus: t,
|
|
28
28
|
setImageLoadingStatus: c
|
|
29
|
-
}), [t, c]), n =
|
|
29
|
+
}), [t, c]), n = v("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__ */ f(g.Provider, {
|
|
36
36
|
value: u,
|
|
37
37
|
children: n
|
|
38
38
|
});
|
|
39
39
|
});
|
|
40
40
|
process.env.NODE_ENV !== "production" && (z.displayName = "AvatarRoot");
|
|
41
|
-
function
|
|
41
|
+
function M(e, {
|
|
42
42
|
referrerPolicy: a,
|
|
43
43
|
crossOrigin: s
|
|
44
44
|
}) {
|
|
45
45
|
const [l, i] = o.useState("idle");
|
|
46
46
|
return N(() => {
|
|
47
47
|
if (!e)
|
|
48
|
-
return i("error"),
|
|
48
|
+
return i("error"), R;
|
|
49
49
|
let r = !0;
|
|
50
50
|
const t = new window.Image(), c = (_) => () => {
|
|
51
51
|
r && i(_);
|
|
@@ -55,7 +55,7 @@ function w(e, {
|
|
|
55
55
|
};
|
|
56
56
|
}, [e, s, a]), l;
|
|
57
57
|
}
|
|
58
|
-
const
|
|
58
|
+
const w = /* @__PURE__ */ o.forwardRef(function(a, s) {
|
|
59
59
|
const {
|
|
60
60
|
className: l,
|
|
61
61
|
render: i,
|
|
@@ -63,10 +63,10 @@ const S = /* @__PURE__ */ o.forwardRef(function(a, s) {
|
|
|
63
63
|
referrerPolicy: t,
|
|
64
64
|
crossOrigin: c,
|
|
65
65
|
..._
|
|
66
|
-
} = a, u = b(), n =
|
|
66
|
+
} = a, u = b(), n = M(a.src, {
|
|
67
67
|
referrerPolicy: t,
|
|
68
68
|
crossOrigin: c
|
|
69
|
-
}), d =
|
|
69
|
+
}), d = k((x) => {
|
|
70
70
|
r?.(x), u.setImageLoadingStatus(x);
|
|
71
71
|
});
|
|
72
72
|
N(() => {
|
|
@@ -75,7 +75,7 @@ const S = /* @__PURE__ */ o.forwardRef(function(a, s) {
|
|
|
75
75
|
const A = o.useMemo(() => ({
|
|
76
76
|
imageLoadingStatus: n
|
|
77
77
|
}), [n]);
|
|
78
|
-
return
|
|
78
|
+
return v("img", a, {
|
|
79
79
|
state: A,
|
|
80
80
|
ref: s,
|
|
81
81
|
props: _,
|
|
@@ -83,8 +83,8 @@ const S = /* @__PURE__ */ o.forwardRef(function(a, s) {
|
|
|
83
83
|
enabled: n === "loaded"
|
|
84
84
|
});
|
|
85
85
|
});
|
|
86
|
-
process.env.NODE_ENV !== "production" && (
|
|
87
|
-
const
|
|
86
|
+
process.env.NODE_ENV !== "production" && (w.displayName = "AvatarImage");
|
|
87
|
+
const S = /* @__PURE__ */ o.forwardRef(function(a, s) {
|
|
88
88
|
const {
|
|
89
89
|
className: l,
|
|
90
90
|
render: i,
|
|
@@ -92,12 +92,12 @@ const E = /* @__PURE__ */ o.forwardRef(function(a, s) {
|
|
|
92
92
|
...t
|
|
93
93
|
} = a, {
|
|
94
94
|
imageLoadingStatus: c
|
|
95
|
-
} = b(), [_, u] = o.useState(r === void 0), n =
|
|
95
|
+
} = b(), [_, u] = o.useState(r === void 0), n = C();
|
|
96
96
|
o.useEffect(() => (r !== void 0 && n.start(r, () => u(!0)), n.clear), [n, r]);
|
|
97
97
|
const d = o.useMemo(() => ({
|
|
98
98
|
imageLoadingStatus: c
|
|
99
99
|
}), [c]);
|
|
100
|
-
return
|
|
100
|
+
return v("span", a, {
|
|
101
101
|
state: d,
|
|
102
102
|
ref: s,
|
|
103
103
|
props: t,
|
|
@@ -105,8 +105,8 @@ const E = /* @__PURE__ */ o.forwardRef(function(a, s) {
|
|
|
105
105
|
enabled: c !== "loaded" && _
|
|
106
106
|
});
|
|
107
107
|
});
|
|
108
|
-
process.env.NODE_ENV !== "production" && (
|
|
109
|
-
const y = "
|
|
108
|
+
process.env.NODE_ENV !== "production" && (S.displayName = "AvatarFallback");
|
|
109
|
+
const y = "_avatar_o3fws_2", I = "_avatar__image_o3fws_16", O = "_avatar__fallback_o3fws_22", D = "_avatar_size_sm_o3fws_35", V = "_avatar_size_md_o3fws_39", F = "_avatar_size_lg_o3fws_43", P = "_avatar_size_xl_o3fws_47", j = "_avatar_size_2xl_o3fws_51", U = "_avatar_size_3xl_o3fws_55", m = {
|
|
110
110
|
avatar: y,
|
|
111
111
|
avatar__image: I,
|
|
112
112
|
avatar__fallback: O,
|
|
@@ -126,24 +126,24 @@ function W({
|
|
|
126
126
|
...r
|
|
127
127
|
}) {
|
|
128
128
|
const t = B(a, s);
|
|
129
|
-
return /* @__PURE__ */
|
|
129
|
+
return /* @__PURE__ */ E(
|
|
130
130
|
z,
|
|
131
131
|
{
|
|
132
|
-
className:
|
|
132
|
+
className: L(
|
|
133
133
|
m.avatar,
|
|
134
134
|
m[`avatar_size_${l}`],
|
|
135
135
|
i
|
|
136
136
|
),
|
|
137
137
|
...r,
|
|
138
138
|
children: [
|
|
139
|
-
e ? /* @__PURE__ */
|
|
140
|
-
|
|
139
|
+
e ? /* @__PURE__ */ f(
|
|
140
|
+
w,
|
|
141
141
|
{
|
|
142
142
|
src: e,
|
|
143
143
|
className: m.avatar__image
|
|
144
144
|
}
|
|
145
145
|
) : null,
|
|
146
|
-
/* @__PURE__ */
|
|
146
|
+
/* @__PURE__ */ f(S, { className: m.avatar__fallback, children: t })
|
|
147
147
|
]
|
|
148
148
|
}
|
|
149
149
|
);
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
1
|
+
import { jsx as e, jsxs as c, 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-DZkByWDR.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
7
|
import { u as x } from "../../useRender-C3vlzS3t.js";
|
|
8
8
|
import { m as y } from "../../useRenderElement-DngNDu_P.js";
|
|
9
|
-
import '../../badge.css';const T = "
|
|
9
|
+
import '../../badge.css';const T = "_badge_198pt_2", j = "_badge_shiny_198pt_17", t = {
|
|
10
10
|
badge: T,
|
|
11
11
|
badge_shiny: j
|
|
12
12
|
};
|
|
13
13
|
function V({
|
|
14
14
|
icon: r,
|
|
15
|
-
name:
|
|
15
|
+
name: m,
|
|
16
16
|
color: n,
|
|
17
|
-
shiny:
|
|
17
|
+
shiny: i,
|
|
18
18
|
tagline: o,
|
|
19
|
-
render:
|
|
19
|
+
render: a,
|
|
20
20
|
className: d,
|
|
21
21
|
...l
|
|
22
22
|
}) {
|
|
23
|
-
const
|
|
23
|
+
const p = x({
|
|
24
24
|
defaultTagName: "span",
|
|
25
|
-
render:
|
|
25
|
+
render: a,
|
|
26
26
|
props: y(l, {
|
|
27
27
|
className: f(
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
t.badge,
|
|
29
|
+
i && t.badge_shiny,
|
|
30
30
|
d
|
|
31
31
|
),
|
|
32
|
-
children: /* @__PURE__ */
|
|
32
|
+
children: /* @__PURE__ */ c(g, { children: [
|
|
33
33
|
r ? /* @__PURE__ */ e(u, { name: r }) : null,
|
|
34
|
-
|
|
34
|
+
m
|
|
35
35
|
] })
|
|
36
36
|
})
|
|
37
|
-
}), s = /* @__PURE__ */ e(h, { color: n, children:
|
|
37
|
+
}), s = /* @__PURE__ */ e(h, { color: n, children: p });
|
|
38
38
|
return o ? /* @__PURE__ */ e(_, { trigger: s, children: /* @__PURE__ */ e(b, { size: "sm", multiline: !0, children: o }) }) : s;
|
|
39
39
|
}
|
|
40
40
|
export {
|