@bridge-ui/vue 0.0.1-beta.5 → 0.0.1-beta.7

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.
Files changed (53) hide show
  1. package/dist/Components/List/List.vue.d.ts +0 -1
  2. package/dist/Components/List/List.vue_vue_type_script_setup_true_lang.js +2 -3
  3. package/dist/Components/List/composables/useList.d.ts +3 -9
  4. package/dist/Components/List/composables/useList.js +21 -25
  5. package/dist/Components/List/index.d.ts +1 -1
  6. package/dist/Components/List/list.types.d.ts +1 -8
  7. package/dist/Components/ListItem/ListItem.vue.d.ts +0 -1
  8. package/dist/Components/ListItem/ListItem.vue_vue_type_script_setup_true_lang.js +3 -6
  9. package/dist/Components/ListItem/composables/useListItem.d.ts +12 -18
  10. package/dist/Components/ListItem/composables/useListItem.js +97 -75
  11. package/dist/Components/ListItem/index.d.ts +1 -1
  12. package/dist/Components/ListItem/listItem.types.d.ts +7 -8
  13. package/dist/Components/ListSection/composables/useListSection.d.ts +1 -3
  14. package/dist/Components/ListSection/composables/useListSection.js +6 -5
  15. package/dist/Components/Listbox/Listbox.vue.d.ts +5 -2
  16. package/dist/Components/Listbox/Listbox.vue_vue_type_script_setup_true_lang.js +107 -56
  17. package/dist/Components/Listbox/composables/useListbox.d.ts +0 -5
  18. package/dist/Components/Listbox/composables/useListbox.js +10 -19
  19. package/dist/Components/Listbox/index.d.ts +2 -1
  20. package/dist/Components/Listbox/index.js +3 -2
  21. package/dist/Components/Listbox/listbox.types.d.ts +23 -6
  22. package/dist/Components/Listbox/listboxInjectionKey.d.ts +23 -0
  23. package/dist/Components/Listbox/listboxInjectionKey.js +4 -0
  24. package/dist/Components/Menu/Menu.vue.d.ts +2 -2
  25. package/dist/Components/Menu/composables/useMenu.d.ts +1 -3
  26. package/dist/Components/Menu/composables/useMenu.js +3 -3
  27. package/dist/Components/Modal/composables/useModal.d.ts +1 -1
  28. package/dist/Components/Progress/Progress.js +5 -0
  29. package/dist/Components/Progress/Progress.vue.d.ts +4 -0
  30. package/dist/Components/Progress/Progress.vue_vue_type_script_setup_true_lang.js +32 -0
  31. package/dist/Components/Progress/composables/useProgress.d.ts +29 -0
  32. package/dist/Components/Progress/composables/useProgress.js +75 -0
  33. package/dist/Components/Progress/index.d.ts +3 -0
  34. package/dist/Components/Progress/index.js +3 -0
  35. package/dist/Components/Progress/progress.types.d.ts +94 -0
  36. package/dist/Components/Select/Select.vue_vue_type_script_setup_true_lang.js +68 -57
  37. package/dist/Components/Select/SelectOption.vue_vue_type_script_setup_true_lang.js +2 -0
  38. package/dist/Components/Select/composables/useSelect.d.ts +5 -1
  39. package/dist/Components/Select/composables/useSelect.js +187 -154
  40. package/dist/Components/Select/select.types.d.ts +12 -5
  41. package/dist/Components/Spinner/Spinner.js +5 -0
  42. package/dist/Components/Spinner/Spinner.vue.d.ts +4 -0
  43. package/dist/Components/Spinner/Spinner.vue_vue_type_script_setup_true_lang.js +31 -0
  44. package/dist/Components/Spinner/composables/useSpinner.d.ts +58 -0
  45. package/dist/Components/Spinner/composables/useSpinner.js +97 -0
  46. package/dist/Components/Spinner/index.d.ts +3 -0
  47. package/dist/Components/Spinner/index.js +3 -0
  48. package/dist/Components/Spinner/spinner.types.d.ts +99 -0
  49. package/dist/augments.d.ts +12 -3
  50. package/dist/index.d.ts +6 -2
  51. package/dist/index.js +32 -28
  52. package/dist/theme.css +46 -3
  53. package/package.json +2 -2
@@ -0,0 +1,97 @@
1
+ import { mergePartBind as e, useBridgeUIComponent as t, useBridgeUIMergedRegistryClasses as n } from "../../../Utils/index.js";
2
+ import { computed as r, useAttrs as i } from "vue";
3
+ import { get as a, isNil as o } from "es-toolkit/compat";
4
+ import { DEFAULT_SPINNER_THICKNESS as s, SPINNER_VIEWBOX_SIZE as c, cn as l, getSpinnerCircleGeometry as u, mergeBridgeUILayeredClasses as d, splitComponentProps as f } from "@bridge-ui/core";
5
+ import { colorProps as p, sizeProps as m, variantProps as h } from "@bridge-ui/core/Components/Spinner";
6
+ //#region src/Components/Spinner/composables/useSpinner.ts
7
+ var g = [
8
+ "size",
9
+ "color",
10
+ "value",
11
+ "classes",
12
+ "variant",
13
+ "thickness",
14
+ "customProps",
15
+ "enableTrack",
16
+ "disableShrink"
17
+ ];
18
+ function _(e) {
19
+ return o(e) || Number.isNaN(e) ? 0 : Math.min(100, Math.max(0, e));
20
+ }
21
+ function v(o, v) {
22
+ let y = i(), b = r(() => f({
23
+ props: {
24
+ ...y,
25
+ ...o
26
+ },
27
+ bridgeKeys: g
28
+ })), { merged: x, entry: S } = t({
29
+ libDefaults: v,
30
+ componentName: "Spinner",
31
+ props: () => b.value.componentProps
32
+ }), C = n({
33
+ entry: S,
34
+ props: () => b.value.componentProps
35
+ }), w = r(() => x.value.customProps), T = r(() => a(d(p, S.value?.customProps?.color), x.value.color)), E = r(() => a(d(m, S.value?.customProps?.size), x.value.size)), D = r(() => a(d(h, S.value?.customProps?.variant), x.value.variant)), O = r(() => x.value.thickness ?? s), k = r(() => x.value.variant === "determinate"), A = r(() => x.value.variant === "indeterminate"), j = r(() => !!x.value.enableTrack), M = r(() => !!x.value.disableShrink), N = r(() => _(x.value.value)), P = r(() => u(O.value)), F = c / 2, I = r(() => e(w.value?.root, b.value.inheritedAttrs, {
36
+ role: "progressbar",
37
+ ...k.value ? {
38
+ "aria-valuemin": 0,
39
+ "aria-valuemax": 100,
40
+ "aria-valuenow": N.value
41
+ } : {},
42
+ class: l({
43
+ "inline-block": !0,
44
+ [E.value ?? ""]: !0,
45
+ [D.value ?? ""]: A.value,
46
+ [C.value.root ?? ""]: !0
47
+ })
48
+ }));
49
+ return {
50
+ merged: x,
51
+ svgBind: r(() => e(w.value?.svg, { viewBox: `0 0 ${c} ${c}` }, l({
52
+ "block size-full": !0,
53
+ [C.value.svg ?? ""]: !0
54
+ }))),
55
+ rootBind: I,
56
+ trackBind: r(() => j.value ? e(w.value?.track, {
57
+ cx: F,
58
+ cy: F,
59
+ fill: "none",
60
+ r: P.value.radius,
61
+ "stroke-width": O.value
62
+ }, l({
63
+ [T.value?.track ?? ""]: !0,
64
+ [C.value.track ?? ""]: !0
65
+ })) : null),
66
+ circleBind: r(() => {
67
+ let { radius: t, circumference: n } = P.value, r = k.value ? {
68
+ transformOrigin: "50% 50%",
69
+ transform: "rotate(-90deg)",
70
+ strokeDasharray: n,
71
+ transition: "stroke-dashoffset 200ms linear",
72
+ strokeDashoffset: (100 - N.value) / 100 * n
73
+ } : {}, i = A.value ? {
74
+ strokeDashoffset: 0,
75
+ strokeDasharray: M.value ? `${n * .8}px, ${n}px` : "80px, 200px"
76
+ } : {};
77
+ return e(w.value?.circle, {
78
+ r: t,
79
+ cx: F,
80
+ cy: F,
81
+ fill: "none",
82
+ "stroke-width": O.value,
83
+ style: {
84
+ ...r,
85
+ ...i
86
+ }
87
+ }, l({
88
+ [T.value?.circle ?? ""]: !0,
89
+ "animate-bridge-spinner-dash": A.value && !M.value,
90
+ [C.value.circle ?? ""]: !0
91
+ }));
92
+ }),
93
+ enableTrack: j
94
+ };
95
+ }
96
+ //#endregion
97
+ export { v as useSpinner };
@@ -0,0 +1,3 @@
1
+ export { useSpinner } from './composables/useSpinner';
2
+ export type { SpinnerClasses, SpinnerColorOverrides, SpinnerCustomProps, SpinnerOwnProps, SpinnerProps, SpinnerSizeOverrides, SpinnerVariantOverrides, } from './spinner.types';
3
+ export { default as Spinner } from './Spinner.vue';
@@ -0,0 +1,3 @@
1
+ import { useSpinner as e } from "./composables/useSpinner.js";
2
+ import t from "./Spinner.js";
3
+ export { t as Spinner, e as useSpinner };
@@ -0,0 +1,99 @@
1
+ import { HTMLAttributes, SVGAttributes } from 'vue';
2
+ import { MergeHtmlProps, MergeProps, SpinnerColor, SpinnerSize, SpinnerVariant } from '@bridge-ui/core';
3
+ export interface SpinnerSizeOverrides {}
4
+ export interface SpinnerColorOverrides {}
5
+ export interface SpinnerVariantOverrides {}
6
+ export interface SpinnerClasses {
7
+ /**
8
+ * The classes to apply to the progress circle.
9
+ */
10
+ circle?: string;
11
+ /**
12
+ * The classes to apply to the root.
13
+ */
14
+ root?: string;
15
+ /**
16
+ * The classes to apply to the svg element.
17
+ */
18
+ svg?: string;
19
+ /**
20
+ * The classes to apply to the track circle.
21
+ */
22
+ track?: string;
23
+ }
24
+ export interface SpinnerCustomProps {
25
+ /**
26
+ * Props forwarded to the progress circle.
27
+ */
28
+ circle?: SVGAttributes;
29
+ /**
30
+ * Props forwarded to the root element.
31
+ */
32
+ root?: HTMLAttributes;
33
+ /**
34
+ * Props forwarded to the svg element.
35
+ */
36
+ svg?: SVGAttributes;
37
+ /**
38
+ * Props forwarded to the track circle.
39
+ */
40
+ track?: SVGAttributes;
41
+ }
42
+ export interface SpinnerOwnProps {
43
+ /**
44
+ * The classes to apply to spinner parts.
45
+ *
46
+ * @default undefined
47
+ */
48
+ classes?: SpinnerClasses;
49
+ /**
50
+ * The color of the spinner.
51
+ *
52
+ * @default "primary"
53
+ */
54
+ color?: MergeProps<SpinnerColor, SpinnerColorOverrides>;
55
+ /**
56
+ * Extra props for internal parts (`root`, `svg`, `circle`, `track`).
57
+ * Root HTML attributes stay on the component top level.
58
+ *
59
+ * @default undefined
60
+ */
61
+ customProps?: SpinnerCustomProps;
62
+ /**
63
+ * Disables the indeterminate shrink animation on the circle.
64
+ *
65
+ * @default false
66
+ */
67
+ disableShrink?: boolean;
68
+ /**
69
+ * Renders a subtle track circle behind the progress arc.
70
+ *
71
+ * @default false
72
+ */
73
+ enableTrack?: boolean;
74
+ /**
75
+ * The size of the spinner.
76
+ *
77
+ * @default "md"
78
+ */
79
+ size?: MergeProps<SpinnerSize, SpinnerSizeOverrides>;
80
+ /**
81
+ * The stroke thickness of the circle.
82
+ *
83
+ * @default 3.6
84
+ */
85
+ thickness?: number;
86
+ /**
87
+ * Progress value from 0 to 100. Used by the `determinate` variant.
88
+ *
89
+ * @default undefined
90
+ */
91
+ value?: number;
92
+ /**
93
+ * Visual variant of the spinner.
94
+ *
95
+ * @default "indeterminate"
96
+ */
97
+ variant?: MergeProps<SpinnerVariant, SpinnerVariantOverrides>;
98
+ }
99
+ export type SpinnerProps = MergeHtmlProps<SpinnerOwnProps, HTMLAttributes>;
@@ -11,17 +11,19 @@ import { FormFieldClasses, FormFieldProps } from './Components/FormField';
11
11
  import { IconProps } from './Components/Icon';
12
12
  import { LabelClasses, LabelProps } from './Components/Label';
13
13
  import { LinkClasses, LinkProps } from './Components/Link';
14
- import { ListClasses, ListProps } from './Components/List';
14
+ import { ListClasses } from './Components/List';
15
15
  import { ListItemClasses, ListItemProps } from './Components/ListItem';
16
16
  import { ListSectionClasses } from './Components/ListSection';
17
17
  import { MenuClasses, MenuProps } from './Components/Menu';
18
18
  import { ModalClasses, ModalProps } from './Components/Modal';
19
19
  import { NumberFieldClasses } from './Components/NumberField';
20
20
  import { PasswordFieldClasses } from './Components/PasswordField';
21
+ import { ProgressClasses, ProgressProps } from './Components/Progress';
21
22
  import { RadioClasses, RadioProps } from './Components/Radio';
22
23
  import { SelectClasses, SelectProps } from './Components/Select';
23
24
  import { SkeletonClasses, SkeletonProps } from './Components/Skeleton';
24
25
  import { SnackbarClasses, SnackbarProps } from './Components/Snackbar';
26
+ import { SpinnerClasses, SpinnerProps } from './Components/Spinner';
25
27
  import { SwitchClasses, SwitchProps } from './Components/Switch';
26
28
  import { TextareaClasses, TextareaProps } from './Components/Textarea';
27
29
  declare module "@bridge-ui/core" {
@@ -78,11 +80,10 @@ declare module "@bridge-ui/core" {
78
80
  }
79
81
  interface ListConfigOverrides {
80
82
  classes: ListClasses;
81
- defaultProps: Partial<Pick<ListProps, "padding">>;
82
83
  }
83
84
  interface ListItemConfigOverrides {
84
85
  classes: ListItemClasses;
85
- defaultProps: Partial<Pick<ListItemProps, "role" | "align" | "selectedIcon">>;
86
+ defaultProps: Partial<Pick<ListItemProps, "role" | "selectedIcon">>;
86
87
  }
87
88
  interface ListSectionConfigOverrides {
88
89
  classes: ListSectionClasses;
@@ -101,6 +102,10 @@ declare module "@bridge-ui/core" {
101
102
  interface PasswordFieldConfigOverrides {
102
103
  classes: PasswordFieldClasses;
103
104
  }
105
+ interface ProgressConfigOverrides {
106
+ classes: ProgressClasses;
107
+ defaultProps: Partial<Pick<ProgressProps, "size" | "color" | "rounded" | "variant">>;
108
+ }
104
109
  interface RadioConfigOverrides {
105
110
  classes: RadioClasses;
106
111
  defaultProps: Partial<Pick<RadioProps, "size" | "color" | "rounded">>;
@@ -117,6 +122,10 @@ declare module "@bridge-ui/core" {
117
122
  classes: SkeletonClasses;
118
123
  defaultProps: Partial<Pick<SkeletonProps, "rounded">>;
119
124
  }
125
+ interface SpinnerConfigOverrides {
126
+ classes: SpinnerClasses;
127
+ defaultProps: Partial<Pick<SpinnerProps, "size" | "color" | "variant" | "thickness" | "enableTrack" | "disableShrink">>;
128
+ }
120
129
  interface SwitchConfigOverrides {
121
130
  classes: SwitchClasses;
122
131
  defaultProps: Partial<Pick<SwitchProps, "size" | "color" | "rounded">>;
package/dist/index.d.ts CHANGED
@@ -25,11 +25,11 @@ export type { LabelClasses, LabelOwnProps, LabelProps, LabelSizeOverrides, } fro
25
25
  export { Link, useLink } from './Components/Link';
26
26
  export type { LinkClasses, LinkColorOverrides, LinkCustomProps, LinkOwnProps, LinkProps, LinkSizeOverrides, LinkSlots, LinkUnderlineOverrides, } from './Components/Link';
27
27
  export { List, useList } from './Components/List';
28
- export type { ListClasses, ListContextValue, ListCustomProps, ListOwnProps, ListPaddingOverrides, ListProps, } from './Components/List';
28
+ export type { ListClasses, ListContextValue, ListCustomProps, ListOwnProps, ListProps, } from './Components/List';
29
29
  export { Listbox, findFirstEnabledOptionIndex, findLastEnabledOptionIndex, getListboxActiveDescendantId, getListboxOptionId, moveListboxHighlight, useListbox, useListboxNavigation, } from './Components/Listbox';
30
30
  export type { ListboxClasses, ListboxColorOverrides, ListboxCustomProps, ListboxEmits, ListboxOption, ListboxOwnProps, ListboxProps, ListboxSlots, ListboxValue, } from './Components/Listbox';
31
31
  export { ListItem } from './Components/ListItem';
32
- export type { ListItemAlignOverrides, ListItemClasses, ListItemCustomProps, ListItemOwnProps, ListItemProps, ListItemSlots, } from './Components/ListItem';
32
+ export type { ListItemClasses, ListItemCustomProps, ListItemOwnProps, ListItemProps, ListItemSlots, } from './Components/ListItem';
33
33
  export { ListSection } from './Components/ListSection';
34
34
  export type { ListSectionClasses, ListSectionCustomProps, ListSectionOwnProps, ListSectionProps, ListSectionSlots, } from './Components/ListSection';
35
35
  export { Menu, useMenu } from './Components/Menu';
@@ -40,6 +40,8 @@ export { NumberField, useNumberField } from './Components/NumberField';
40
40
  export type { NumberFieldClasses, NumberFieldCustomProps, NumberFieldOwnProps, NumberFieldProps, NumberFieldSlots, } from './Components/NumberField';
41
41
  export { PasswordField, usePasswordField } from './Components/PasswordField';
42
42
  export type { PasswordFieldClasses, PasswordFieldCustomProps, PasswordFieldOwnProps, PasswordFieldProps, PasswordFieldSlots, } from './Components/PasswordField';
43
+ export { Progress, useProgress } from './Components/Progress';
44
+ export type { ProgressClasses, ProgressColorOverrides, ProgressCustomProps, ProgressOwnProps, ProgressProps, ProgressRoundedOverrides, ProgressSizeOverrides, ProgressVariantOverrides, } from './Components/Progress';
43
45
  export { Radio, useRadio } from './Components/Radio';
44
46
  export type { RadioClasses, RadioColorOverrides, RadioCustomProps, RadioOwnProps, RadioProps, RadioRoundedOverrides, RadioSizeOverrides, RadioSlots, } from './Components/Radio';
45
47
  export { Select, SelectOption } from './Components/Select';
@@ -48,6 +50,8 @@ export { Skeleton, useSkeleton } from './Components/Skeleton';
48
50
  export type { SkeletonClasses, SkeletonOwnProps, SkeletonProps, SkeletonRoundedOverrides, } from './Components/Skeleton';
49
51
  export { Snackbar, useSnackbar } from './Components/Snackbar';
50
52
  export type { SnackbarClasses, SnackbarColorOverrides, SnackbarCustomProps, SnackbarEmits, SnackbarOwnProps, SnackbarPaddingOverrides, SnackbarProps, SnackbarSlots, SnackbarTransitionOverrides, } from './Components/Snackbar';
53
+ export { Spinner, useSpinner } from './Components/Spinner';
54
+ export type { SpinnerClasses, SpinnerColorOverrides, SpinnerCustomProps, SpinnerOwnProps, SpinnerProps, SpinnerSizeOverrides, SpinnerVariantOverrides, } from './Components/Spinner';
51
55
  export { Switch, useSwitch } from './Components/Switch';
52
56
  export type { SwitchClasses, SwitchColorOverrides, SwitchCustomProps, SwitchOwnProps, SwitchProps, SwitchRoundedOverrides, SwitchSizeOverrides, SwitchSlots, } from './Components/Switch';
53
57
  export { Textarea, useTextarea } from './Components/Textarea';
package/dist/index.js CHANGED
@@ -29,31 +29,35 @@ import O from "./Components/List/List.js";
29
29
  import { useListbox as k } from "./Components/Listbox/composables/useListbox.js";
30
30
  import { findFirstEnabledOptionIndex as A, findLastEnabledOptionIndex as j, getListboxActiveDescendantId as M, getListboxOptionId as N, moveListboxHighlight as P, useListboxNavigation as F } from "./Components/Listbox/composables/useListboxNavigation.js";
31
31
  import I from "./Components/ListItem/ListItem.js";
32
- import { useMenu as L } from "./Components/Menu/composables/useMenu.js";
33
- import R from "./Components/Menu/Menu.js";
34
- import z from "./Components/Listbox/Listbox.js";
35
- import B from "./Components/ListSection/ListSection.js";
36
- import { useModal as V } from "./Components/Modal/composables/useModal.js";
37
- import H from "./Components/Modal/Modal.js";
38
- import { useNumberField as U } from "./Components/NumberField/composables/useNumberField.js";
39
- import W from "./Components/NumberField/NumberField.js";
40
- import { usePasswordField as G } from "./Components/PasswordField/composables/usePasswordField.js";
41
- import K from "./Components/PasswordField/PasswordField.js";
42
- import { useRadio as q } from "./Components/Radio/composables/useRadio.js";
43
- import J from "./Components/Radio/Radio.js";
44
- import Y from "./Components/Select/Select.js";
45
- import X from "./Components/Select/SelectOption.js";
46
- import { useSkeleton as Z } from "./Components/Skeleton/composables/useSkeleton.js";
47
- import Q from "./Components/Skeleton/Skeleton.js";
48
- import { useSnackbar as $ } from "./Components/Snackbar/composables/useSnackbar.js";
49
- import ee from "./Components/Snackbar/Snackbar.js";
50
- import { useSwitch as te } from "./Components/Switch/composables/useSwitch.js";
51
- import ne from "./Components/Switch/Switch.js";
52
- import { useTextarea as re } from "./Components/Textarea/composables/useTextarea.js";
53
- import ie from "./Components/Textarea/Textarea.js";
54
- import { useTextField as ae } from "./Components/TextField/composables/useTextField.js";
55
- import oe from "./Components/TextField/TextField.js";
56
- import se from "./Provider/BridgeUIProvider.js";
57
- import { createBridgeUI as ce } from "./Provider/createBridgeUI.js";
58
- import { BRIDGE_UI_DEFAULT_GLOBAL as le, cn as ue, mergeBridgeUIComponents as de, mergeBridgeUIGlobal as fe, resolveBridgeUIOptions as pe } from "@bridge-ui/core";
59
- export { a as Alert, o as Avatar, le as BRIDGE_UI_DEFAULT_GLOBAL, c as Badge, se as BridgeUIProvider, u as Button, f as Card, g as Checkbox, v as Chip, b as Divider, m as FormControl, S as FormField, i as Icon, w as Label, E as Link, O as List, I as ListItem, B as ListSection, z as Listbox, R as Menu, H as Modal, W as NumberField, K as PasswordField, J as Radio, Y as Select, X as SelectOption, Q as Skeleton, ee as Snackbar, ne as Switch, oe as TextField, ie as Textarea, ue as cn, ce as createBridgeUI, A as findFirstEnabledOptionIndex, j as findLastEnabledOptionIndex, M as getListboxActiveDescendantId, N as getListboxOptionId, de as mergeBridgeUIComponents, fe as mergeBridgeUIGlobal, P as moveListboxHighlight, pe as resolveBridgeUIOptions, r as useAlert, s as useBadge, e as useBridgeUI, t as useBridgeUIComponent, n as useBridgeUIMergedRegistryClasses, l as useButton, d as useCard, h as useCheckbox, _ as useChip, y as useDivider, p as useFormControl, x as useFormField, C as useLabel, T as useLink, D as useList, k as useListbox, F as useListboxNavigation, L as useMenu, V as useModal, U as useNumberField, G as usePasswordField, q as useRadio, Z as useSkeleton, $ as useSnackbar, te as useSwitch, ae as useTextField, re as useTextarea };
32
+ import L from "./Components/ListSection/ListSection.js";
33
+ import { useMenu as R } from "./Components/Menu/composables/useMenu.js";
34
+ import z from "./Components/Menu/Menu.js";
35
+ import { useProgress as B } from "./Components/Progress/composables/useProgress.js";
36
+ import V from "./Components/Progress/Progress.js";
37
+ import H from "./Components/Listbox/Listbox.js";
38
+ import { useModal as U } from "./Components/Modal/composables/useModal.js";
39
+ import W from "./Components/Modal/Modal.js";
40
+ import { useNumberField as G } from "./Components/NumberField/composables/useNumberField.js";
41
+ import K from "./Components/NumberField/NumberField.js";
42
+ import { usePasswordField as q } from "./Components/PasswordField/composables/usePasswordField.js";
43
+ import J from "./Components/PasswordField/PasswordField.js";
44
+ import { useRadio as Y } from "./Components/Radio/composables/useRadio.js";
45
+ import X from "./Components/Radio/Radio.js";
46
+ import Z from "./Components/Select/Select.js";
47
+ import Q from "./Components/Select/SelectOption.js";
48
+ import { useSkeleton as $ } from "./Components/Skeleton/composables/useSkeleton.js";
49
+ import ee from "./Components/Skeleton/Skeleton.js";
50
+ import { useSnackbar as te } from "./Components/Snackbar/composables/useSnackbar.js";
51
+ import ne from "./Components/Snackbar/Snackbar.js";
52
+ import { useSpinner as re } from "./Components/Spinner/composables/useSpinner.js";
53
+ import ie from "./Components/Spinner/Spinner.js";
54
+ import { useSwitch as ae } from "./Components/Switch/composables/useSwitch.js";
55
+ import oe from "./Components/Switch/Switch.js";
56
+ import { useTextarea as se } from "./Components/Textarea/composables/useTextarea.js";
57
+ import ce from "./Components/Textarea/Textarea.js";
58
+ import { useTextField as le } from "./Components/TextField/composables/useTextField.js";
59
+ import ue from "./Components/TextField/TextField.js";
60
+ import de from "./Provider/BridgeUIProvider.js";
61
+ import { createBridgeUI as fe } from "./Provider/createBridgeUI.js";
62
+ import { BRIDGE_UI_DEFAULT_GLOBAL as pe, cn as me, mergeBridgeUIComponents as he, mergeBridgeUIGlobal as ge, resolveBridgeUIOptions as _e } from "@bridge-ui/core";
63
+ export { a as Alert, o as Avatar, pe as BRIDGE_UI_DEFAULT_GLOBAL, c as Badge, de as BridgeUIProvider, u as Button, f as Card, g as Checkbox, v as Chip, b as Divider, m as FormControl, S as FormField, i as Icon, w as Label, E as Link, O as List, I as ListItem, L as ListSection, H as Listbox, z as Menu, W as Modal, K as NumberField, J as PasswordField, V as Progress, X as Radio, Z as Select, Q as SelectOption, ee as Skeleton, ne as Snackbar, ie as Spinner, oe as Switch, ue as TextField, ce as Textarea, me as cn, fe as createBridgeUI, A as findFirstEnabledOptionIndex, j as findLastEnabledOptionIndex, M as getListboxActiveDescendantId, N as getListboxOptionId, he as mergeBridgeUIComponents, ge as mergeBridgeUIGlobal, P as moveListboxHighlight, _e as resolveBridgeUIOptions, r as useAlert, s as useBadge, e as useBridgeUI, t as useBridgeUIComponent, n as useBridgeUIMergedRegistryClasses, l as useButton, d as useCard, h as useCheckbox, _ as useChip, y as useDivider, p as useFormControl, x as useFormField, C as useLabel, T as useLink, D as useList, k as useListbox, F as useListboxNavigation, R as useMenu, U as useModal, G as useNumberField, q as usePasswordField, B as useProgress, Y as useRadio, $ as useSkeleton, te as useSnackbar, re as useSpinner, ae as useSwitch, le as useTextField, se as useTextarea };
package/dist/theme.css CHANGED
@@ -98,12 +98,18 @@
98
98
  --color-info-900: var(--color-blue-900);
99
99
  --color-info-950: var(--color-blue-950);
100
100
 
101
- /* Listbox indeterminate loading bar */
102
- --animate-bridge-listbox-indeterminate: bridge-listbox-indeterminate 1.4s
101
+ /* Progress linear bar animations */
102
+ --animate-bridge-progress-indeterminate: bridge-progress-indeterminate 1.4s
103
103
  ease-in-out infinite;
104
+ --animate-bridge-progress-query: bridge-progress-query 1.4s ease-in-out
105
+ infinite;
106
+
107
+ /* Spinner circular animations */
108
+ --animate-bridge-spinner-rotate: bridge-spinner-rotate 1.4s linear infinite;
109
+ --animate-bridge-spinner-dash: bridge-spinner-dash 1.4s ease-in-out infinite;
104
110
  }
105
111
 
106
- @keyframes bridge-listbox-indeterminate {
112
+ @keyframes bridge-progress-indeterminate {
107
113
  0% {
108
114
  transform: translateX(-100%);
109
115
  }
@@ -113,6 +119,43 @@
113
119
  }
114
120
  }
115
121
 
122
+ @keyframes bridge-progress-query {
123
+ 0% {
124
+ transform: translateX(400%);
125
+ }
126
+
127
+ 100% {
128
+ transform: translateX(-100%);
129
+ }
130
+ }
131
+
132
+ @keyframes bridge-spinner-rotate {
133
+ 0% {
134
+ transform: rotate(0deg);
135
+ }
136
+
137
+ 100% {
138
+ transform: rotate(360deg);
139
+ }
140
+ }
141
+
142
+ @keyframes bridge-spinner-dash {
143
+ 0% {
144
+ stroke-dasharray: 1px, 200px;
145
+ stroke-dashoffset: 0;
146
+ }
147
+
148
+ 50% {
149
+ stroke-dasharray: 100px, 200px;
150
+ stroke-dashoffset: -15px;
151
+ }
152
+
153
+ 100% {
154
+ stroke-dasharray: 1px, 200px;
155
+ stroke-dashoffset: -126px;
156
+ }
157
+ }
158
+
116
159
  /**
117
160
  * FormField slot adornments (`bridge-start-adornment` / `bridge-end-adornment`).
118
161
  * Parent `.group/field` sets `data-bridge-rounded` from FormField `rounded`.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "license": "MIT",
4
- "version": "0.0.1-beta.5",
4
+ "version": "0.0.1-beta.7",
5
5
  "author": "BridgeUI",
6
6
  "sideEffects": false,
7
7
  "name": "@bridge-ui/vue",
@@ -60,7 +60,7 @@
60
60
  "dist"
61
61
  ],
62
62
  "peerDependencies": {
63
- "@bridge-ui/core": "^0.0.1-beta.5",
63
+ "@bridge-ui/core": "^0.0.1-beta.7",
64
64
  "@lucide/vue": ">=1.0.0",
65
65
  "vue": "^3.4.0"
66
66
  },