beez-ui 0.10.0 → 2.0.0
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/CHANGELOG.md +40 -1
- package/README.md +63 -16
- package/THIRD_PARTY_NOTICES.md +31 -0
- package/assets/fonts/ibmplexmono-LICENSE.txt +93 -93
- package/assets/fonts/{poppins-LICENSE.txt → inter-LICENSE.txt} +2 -2
- package/assets/fonts/inter-latin-variable.woff2 +0 -0
- package/dist/components/account-menu.d.ts +5 -2
- package/dist/components/account-menu.js +150 -145
- package/dist/components/alert-dialog.d.ts +4 -2
- package/dist/components/alert-dialog.js +78 -66
- package/dist/components/animated-collapse.js +106 -36
- package/dist/components/button-interaction.d.ts +23 -0
- package/dist/components/button-interaction.js +22 -0
- package/dist/components/button-label.d.ts +8 -0
- package/dist/components/button-label.js +322 -0
- package/dist/components/button.d.ts +23 -10
- package/dist/components/button.js +111 -64
- package/dist/components/calendar.d.ts +2 -2
- package/dist/components/calendar.js +4 -4
- package/dist/components/carousel.d.ts +3 -3
- package/dist/components/carousel.js +3 -3
- package/dist/components/control-button.d.ts +16 -0
- package/dist/components/control-button.js +215 -0
- package/dist/components/data-table.js +7 -7
- package/dist/components/dialog.js +3 -2
- package/dist/components/dropdown-menu.js +1 -1
- package/dist/components/file-upload.js +5 -5
- package/dist/components/filter-presets-bar.js +6 -6
- package/dist/components/filter-query-bar.js +2 -2
- package/dist/components/input-group.d.ts +2 -2
- package/dist/components/input-group.js +2 -2
- package/dist/components/pagination.d.ts +2 -2
- package/dist/components/pagination.js +2 -2
- package/dist/components/reaction-button.js +2 -2
- package/dist/components/rich-link-editor.js +7 -7
- package/dist/components/rich-text-content.js +1 -1
- package/dist/components/sheet.js +2 -2
- package/dist/components/sidebar-panel-context.d.ts +17 -0
- package/dist/components/sidebar-panel-context.js +14 -0
- package/dist/components/sidebar.d.ts +40 -3
- package/dist/components/sidebar.js +259 -103
- package/dist/components/typing-animation.js +1 -1
- package/dist/constants/button.d.ts +16 -0
- package/dist/constants/button.js +16 -0
- package/dist/hooks/use-sidebar-persistence.d.ts +1 -1
- package/dist/hooks/use-sidebar-persistence.js +2 -2
- package/dist/motion/arc-press.d.ts +6 -0
- package/dist/motion/arc-press.js +59 -0
- package/dist/motion/arc-tokens.d.ts +32 -0
- package/dist/motion/arc-tokens.js +42 -0
- package/dist/providers/beez-ui-provider.d.ts +1 -1
- package/dist/providers/beez-ui-provider.js +6 -1
- package/dist/styles.css +1 -1
- package/fonts.css +5 -5
- package/package.json +3 -2
- package/styles.css +4 -4
- package/theme.css +248 -87
- package/assets/fonts/poppins-latin-600.woff2 +0 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Motion presets adapted from Arc (https://uiarc.dev), Copyright (c) 2026 Elia Kuratli, MIT License.
|
|
3
|
+
* The full license text ships in THIRD_PARTY_NOTICES.md. Internal: only Arc-derived components use these.
|
|
4
|
+
*/
|
|
5
|
+
/** Durations in seconds, from an instant color answer to a considered layout change. */
|
|
6
|
+
export const ARC_DURATION = {
|
|
7
|
+
instant: .12,
|
|
8
|
+
fast: .16,
|
|
9
|
+
standard: .24
|
|
10
|
+
};
|
|
11
|
+
/** Cubic-bezier curves for entrances and color or opacity tweens. */
|
|
12
|
+
export const ARC_EASE = {
|
|
13
|
+
enter: [
|
|
14
|
+
.16,
|
|
15
|
+
1,
|
|
16
|
+
.3,
|
|
17
|
+
1
|
|
18
|
+
],
|
|
19
|
+
standard: [
|
|
20
|
+
.22,
|
|
21
|
+
1,
|
|
22
|
+
.36,
|
|
23
|
+
1
|
|
24
|
+
]
|
|
25
|
+
};
|
|
26
|
+
/** Presses, toggles and small indicators: settles fast with a hint of life. */
|
|
27
|
+
export const ARC_SPRING_SNAPPY = {
|
|
28
|
+
type: "spring",
|
|
29
|
+
visualDuration: .26,
|
|
30
|
+
bounce: .12
|
|
31
|
+
};
|
|
32
|
+
/** Shape morphs and width changes that follow new content. */
|
|
33
|
+
export const ARC_SPRING_MORPH = {
|
|
34
|
+
type: "spring",
|
|
35
|
+
visualDuration: .42,
|
|
36
|
+
bounce: .16
|
|
37
|
+
};
|
|
38
|
+
/** Blur radii in pixels for brief content crossfades. */
|
|
39
|
+
export const ARC_BLUR = {
|
|
40
|
+
subtle: 2,
|
|
41
|
+
soft: 4
|
|
42
|
+
};
|
|
@@ -18,7 +18,7 @@ export interface BeezUIComponents {
|
|
|
18
18
|
export interface BeezUIProviderProps {
|
|
19
19
|
children: ReactNode;
|
|
20
20
|
components?: BeezUIComponents;
|
|
21
|
-
/** Shares light/dark/system behavior
|
|
21
|
+
/** Shares light/dark/system behavior; the theme is written as a class and as Arc's `data-theme` attribute. */
|
|
22
22
|
themeOptions?: Omit<ThemeProviderProps, "children" | "attribute">;
|
|
23
23
|
}
|
|
24
24
|
/** Merges nested overrides while preserving stable adapter identities. */
|
|
@@ -6,6 +6,11 @@ import { MotionConfig } from "motion/react";
|
|
|
6
6
|
import { ThemeProvider } from "next-themes";
|
|
7
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
8
|
/**
|
|
9
|
+
* Arc's foundation selects dark tokens with `data-theme`; the class keeps Tailwind's `dark` variant and
|
|
10
|
+
* consumer styles written for it.
|
|
11
|
+
*/
|
|
12
|
+
const THEME_ATTRIBUTES = ["class", "data-theme"];
|
|
13
|
+
/**
|
|
9
14
|
* next-themes renders an inline script that applies the stored theme before hydration. It only
|
|
10
15
|
* runs when it arrives in server HTML; a script created by a client render never executes, and
|
|
11
16
|
* React 19 warns about it. Client-only renders mark it as a data block, which React accepts.
|
|
@@ -69,7 +74,7 @@ export function BeezUIProvider(t0) {
|
|
|
69
74
|
let t5;
|
|
70
75
|
if ($[9] !== scriptProps || $[10] !== t4 || $[11] !== themeOptions) {
|
|
71
76
|
t5 = /* @__PURE__ */ _jsx(ThemeProvider, {
|
|
72
|
-
attribute:
|
|
77
|
+
attribute: THEME_ATTRIBUTES,
|
|
73
78
|
...themeOptions,
|
|
74
79
|
scriptProps,
|
|
75
80
|
children: t4
|