@flowstack-ui/brick 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -2
- package/dist/agents/accordion.json +80 -0
- package/dist/agents/accordion.md +48 -0
- package/dist/agents/app-bar.json +20 -3
- package/dist/agents/app-bar.md +7 -2
- package/dist/agents/appearance.json +84 -0
- package/dist/agents/appearance.md +48 -0
- package/dist/agents/badge.json +64 -0
- package/dist/agents/badge.md +41 -0
- package/dist/agents/card.json +5 -0
- package/dist/agents/card.md +1 -0
- package/dist/agents/carousel.json +131 -0
- package/dist/agents/carousel.md +64 -0
- package/dist/agents/collapsible.json +81 -0
- package/dist/agents/collapsible.md +49 -0
- package/dist/agents/container.json +10 -4
- package/dist/agents/container.md +4 -2
- package/dist/agents/divider.json +11 -5
- package/dist/agents/divider.md +5 -3
- package/dist/agents/drawer.json +34 -4
- package/dist/agents/drawer.md +10 -2
- package/dist/agents/frame.json +74 -0
- package/dist/agents/frame.md +47 -0
- package/dist/agents/grid.json +18 -0
- package/dist/agents/grid.md +4 -0
- package/dist/agents/icon.json +98 -0
- package/dist/agents/icon.md +51 -0
- package/dist/agents/image.json +18 -2
- package/dist/agents/image.md +5 -1
- package/dist/agents/interface-composition.json +153 -6
- package/dist/agents/interface-composition.md +42 -6
- package/dist/agents/layer-selection.json +13 -1
- package/dist/agents/layer-selection.md +4 -0
- package/dist/agents/list.json +80 -0
- package/dist/agents/list.md +48 -0
- package/dist/agents/manifest.json +61 -1
- package/dist/agents/nav-list.json +16 -5
- package/dist/agents/nav-list.md +6 -3
- package/dist/agents/navigation-menu.json +15 -1
- package/dist/agents/navigation-menu.md +4 -1
- package/dist/agents/scroll-area.json +8 -3
- package/dist/agents/scroll-area.md +4 -3
- package/dist/agents/section.json +65 -0
- package/dist/agents/section.md +42 -0
- package/dist/agents/stack.json +29 -5
- package/dist/agents/stack.md +14 -4
- package/dist/agents/surface.json +42 -4
- package/dist/agents/surface.md +13 -2
- package/dist/agents/tabs.json +17 -2
- package/dist/agents/tabs.md +8 -1
- package/dist/agents/text.json +19 -4
- package/dist/agents/text.md +6 -3
- package/dist/agents/z-stack.json +66 -0
- package/dist/agents/z-stack.md +41 -0
- package/dist/appearance.d.ts +2 -0
- package/dist/appearance.d.ts.map +1 -0
- package/dist/appearance.js +2 -0
- package/dist/appearance.js.map +1 -0
- package/dist/carousel.d.ts +3 -0
- package/dist/carousel.d.ts.map +1 -0
- package/dist/carousel.js +3 -0
- package/dist/carousel.js.map +1 -0
- package/dist/components/_responsive-value/ResponsiveValue.d.ts +9 -0
- package/dist/components/_responsive-value/ResponsiveValue.d.ts.map +1 -0
- package/dist/components/_responsive-value/ResponsiveValue.js +22 -0
- package/dist/components/_responsive-value/ResponsiveValue.js.map +1 -0
- package/dist/components/alert-dialog/AlertDialog.d.ts +7 -0
- package/dist/components/alert-dialog/AlertDialog.d.ts.map +1 -1
- package/dist/components/alert-dialog/AlertDialog.js +2 -2
- package/dist/components/alert-dialog/AlertDialog.js.map +1 -1
- package/dist/components/alert-dialog/index.d.ts +1 -1
- package/dist/components/alert-dialog/index.d.ts.map +1 -1
- package/dist/components/alert-dialog/index.js.map +1 -1
- package/dist/components/appearance/Appearance.d.ts +14 -0
- package/dist/components/appearance/Appearance.d.ts.map +1 -0
- package/dist/components/appearance/Appearance.js +39 -0
- package/dist/components/appearance/Appearance.js.map +1 -0
- package/dist/components/appearance/index.d.ts +2 -0
- package/dist/components/appearance/index.d.ts.map +1 -0
- package/dist/components/appearance/index.js +2 -0
- package/dist/components/appearance/index.js.map +1 -0
- package/dist/components/card/Card.d.ts +1 -0
- package/dist/components/card/Card.d.ts.map +1 -1
- package/dist/components/card/Card.js +2 -1
- package/dist/components/card/Card.js.map +1 -1
- package/dist/components/carousel/Carousel.d.ts +80 -0
- package/dist/components/carousel/Carousel.d.ts.map +1 -0
- package/dist/components/carousel/Carousel.js +90 -0
- package/dist/components/carousel/Carousel.js.map +1 -0
- package/dist/components/carousel/index.d.ts +2 -0
- package/dist/components/carousel/index.d.ts.map +1 -0
- package/dist/components/carousel/index.js +2 -0
- package/dist/components/carousel/index.js.map +1 -0
- package/dist/components/dialog/Dialog.d.ts +7 -0
- package/dist/components/dialog/Dialog.d.ts.map +1 -1
- package/dist/components/dialog/Dialog.js +2 -2
- package/dist/components/dialog/Dialog.js.map +1 -1
- package/dist/components/dialog/index.d.ts +1 -1
- package/dist/components/dialog/index.d.ts.map +1 -1
- package/dist/components/dialog/index.js.map +1 -1
- package/dist/components/divider/Divider.js +2 -2
- package/dist/components/divider/Divider.js.map +1 -1
- package/dist/components/drawer/Drawer.d.ts +8 -1
- package/dist/components/drawer/Drawer.d.ts.map +1 -1
- package/dist/components/drawer/Drawer.js +3 -2
- package/dist/components/drawer/Drawer.js.map +1 -1
- package/dist/components/drawer/index.d.ts +1 -1
- package/dist/components/drawer/index.d.ts.map +1 -1
- package/dist/components/drawer/index.js.map +1 -1
- package/dist/components/frame/Frame.d.ts +28 -0
- package/dist/components/frame/Frame.d.ts.map +1 -0
- package/dist/components/frame/Frame.js +84 -0
- package/dist/components/frame/Frame.js.map +1 -0
- package/dist/components/frame/index.d.ts +2 -0
- package/dist/components/frame/index.d.ts.map +1 -0
- package/dist/components/frame/index.js +2 -0
- package/dist/components/frame/index.js.map +1 -0
- package/dist/components/grid/Grid.d.ts +28 -11
- package/dist/components/grid/Grid.d.ts.map +1 -1
- package/dist/components/grid/Grid.js +77 -14
- package/dist/components/grid/Grid.js.map +1 -1
- package/dist/components/grid/index.d.ts +1 -1
- package/dist/components/grid/index.d.ts.map +1 -1
- package/dist/components/grid/index.js.map +1 -1
- package/dist/components/image/Image.d.ts +4 -0
- package/dist/components/image/Image.d.ts.map +1 -1
- package/dist/components/image/Image.js +4 -4
- package/dist/components/image/Image.js.map +1 -1
- package/dist/components/image/index.d.ts +1 -1
- package/dist/components/image/index.d.ts.map +1 -1
- package/dist/components/image/index.js +1 -1
- package/dist/components/image/index.js.map +1 -1
- package/dist/components/navigation-menu/NavigationMenu.d.ts +6 -3
- package/dist/components/navigation-menu/NavigationMenu.d.ts.map +1 -1
- package/dist/components/navigation-menu/NavigationMenu.js +2 -2
- package/dist/components/navigation-menu/NavigationMenu.js.map +1 -1
- package/dist/components/navigation-menu/index.d.ts +1 -1
- package/dist/components/navigation-menu/index.d.ts.map +1 -1
- package/dist/components/navigation-menu/index.js.map +1 -1
- package/dist/components/section/Section.d.ts +18 -0
- package/dist/components/section/Section.d.ts.map +1 -0
- package/dist/components/section/Section.js +29 -0
- package/dist/components/section/Section.js.map +1 -0
- package/dist/components/section/index.d.ts +2 -0
- package/dist/components/section/index.d.ts.map +1 -0
- package/dist/components/section/index.js +2 -0
- package/dist/components/section/index.js.map +1 -0
- package/dist/components/stack/Stack.d.ts +33 -8
- package/dist/components/stack/Stack.d.ts.map +1 -1
- package/dist/components/stack/Stack.js +71 -14
- package/dist/components/stack/Stack.js.map +1 -1
- package/dist/components/stack/index.d.ts +1 -1
- package/dist/components/stack/index.d.ts.map +1 -1
- package/dist/components/stack/index.js.map +1 -1
- package/dist/components/surface/Surface.d.ts +41 -3
- package/dist/components/surface/Surface.d.ts.map +1 -1
- package/dist/components/surface/Surface.js +79 -6
- package/dist/components/surface/Surface.js.map +1 -1
- package/dist/components/surface/index.d.ts +1 -1
- package/dist/components/surface/index.d.ts.map +1 -1
- package/dist/components/surface/index.js +1 -1
- package/dist/components/surface/index.js.map +1 -1
- package/dist/components/tabs/Tabs.d.ts +27 -6
- package/dist/components/tabs/Tabs.d.ts.map +1 -1
- package/dist/components/tabs/Tabs.js +10 -6
- package/dist/components/tabs/Tabs.js.map +1 -1
- package/dist/components/tabs/index.d.ts +1 -1
- package/dist/components/tabs/index.d.ts.map +1 -1
- package/dist/components/tabs/index.js.map +1 -1
- package/dist/components/text/Text.d.ts +1 -1
- package/dist/components/text/Text.d.ts.map +1 -1
- package/dist/components/text/Text.js.map +1 -1
- package/dist/components/z-stack/ZStack.d.ts +43 -0
- package/dist/components/z-stack/ZStack.d.ts.map +1 -0
- package/dist/components/z-stack/ZStack.js +70 -0
- package/dist/components/z-stack/ZStack.js.map +1 -0
- package/dist/components/z-stack/index.d.ts +2 -0
- package/dist/components/z-stack/index.d.ts.map +1 -0
- package/dist/components/z-stack/index.js +2 -0
- package/dist/components/z-stack/index.js.map +1 -0
- package/dist/drawer.d.ts +1 -0
- package/dist/drawer.d.ts.map +1 -1
- package/dist/drawer.js +1 -0
- package/dist/drawer.js.map +1 -1
- package/dist/frame.d.ts +2 -0
- package/dist/frame.d.ts.map +1 -0
- package/dist/frame.js +2 -0
- package/dist/frame.js.map +1 -0
- package/dist/grid.d.ts +1 -1
- package/dist/grid.d.ts.map +1 -1
- package/dist/grid.js.map +1 -1
- package/dist/image.d.ts +1 -1
- package/dist/image.d.ts.map +1 -1
- package/dist/image.js +1 -1
- package/dist/image.js.map +1 -1
- package/dist/index.d.ts +12 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -3
- package/dist/index.js.map +1 -1
- package/dist/section.d.ts +2 -0
- package/dist/section.d.ts.map +1 -0
- package/dist/section.js +2 -0
- package/dist/section.js.map +1 -0
- package/dist/stack.d.ts +1 -1
- package/dist/stack.d.ts.map +1 -1
- package/dist/stack.js.map +1 -1
- package/dist/styles/accordion.css +1 -1
- package/dist/styles/accordion.css.map +1 -1
- package/dist/styles/alert-dialog.css +1 -1
- package/dist/styles/alert-dialog.css.map +1 -1
- package/dist/styles/app-bar.css +1 -1
- package/dist/styles/app-bar.css.map +1 -1
- package/dist/styles/appearance.css +2 -0
- package/dist/styles/appearance.css.map +1 -0
- package/dist/styles/aspect-ratio.css +1 -1
- package/dist/styles/aspect-ratio.css.map +1 -1
- package/dist/styles/avatar.css +1 -1
- package/dist/styles/avatar.css.map +1 -1
- package/dist/styles/badge.css +1 -1
- package/dist/styles/badge.css.map +1 -1
- package/dist/styles/bottom-navigation.css +1 -1
- package/dist/styles/bottom-navigation.css.map +1 -1
- package/dist/styles/breadcrumb.css +1 -1
- package/dist/styles/breadcrumb.css.map +1 -1
- package/dist/styles/button.css +1 -1
- package/dist/styles/button.css.map +1 -1
- package/dist/styles/card.css +1 -1
- package/dist/styles/card.css.map +1 -1
- package/dist/styles/carousel.css +2 -0
- package/dist/styles/carousel.css.map +1 -0
- package/dist/styles/checkbox-group.css +1 -1
- package/dist/styles/checkbox-group.css.map +1 -1
- package/dist/styles/checkbox.css +1 -1
- package/dist/styles/checkbox.css.map +1 -1
- package/dist/styles/chip.css +1 -1
- package/dist/styles/chip.css.map +1 -1
- package/dist/styles/code-block.css +1 -1
- package/dist/styles/code-block.css.map +1 -1
- package/dist/styles/code.css +1 -1
- package/dist/styles/code.css.map +1 -1
- package/dist/styles/collapsible.css +1 -1
- package/dist/styles/collapsible.css.map +1 -1
- package/dist/styles/combobox.css +1 -1
- package/dist/styles/combobox.css.map +1 -1
- package/dist/styles/container.css +1 -1
- package/dist/styles/container.css.map +1 -1
- package/dist/styles/context-menu.css +1 -1
- package/dist/styles/context-menu.css.map +1 -1
- package/dist/styles/core.css +1 -1
- package/dist/styles/core.css.map +1 -1
- package/dist/styles/data-grid.css +1 -1
- package/dist/styles/data-grid.css.map +1 -1
- package/dist/styles/dialog.css +1 -1
- package/dist/styles/dialog.css.map +1 -1
- package/dist/styles/divider.css +1 -1
- package/dist/styles/divider.css.map +1 -1
- package/dist/styles/drawer.css +1 -1
- package/dist/styles/drawer.css.map +1 -1
- package/dist/styles/dropdown-menu.css +1 -1
- package/dist/styles/dropdown-menu.css.map +1 -1
- package/dist/styles/feed.css +1 -1
- package/dist/styles/feed.css.map +1 -1
- package/dist/styles/field.css +1 -1
- package/dist/styles/field.css.map +1 -1
- package/dist/styles/fieldset.css +1 -1
- package/dist/styles/fieldset.css.map +1 -1
- package/dist/styles/file-upload.css +1 -1
- package/dist/styles/file-upload.css.map +1 -1
- package/dist/styles/form.css +1 -1
- package/dist/styles/form.css.map +1 -1
- package/dist/styles/frame.css +2 -0
- package/dist/styles/frame.css.map +1 -0
- package/dist/styles/grid.css +1 -1
- package/dist/styles/grid.css.map +1 -1
- package/dist/styles/hide.css +1 -1
- package/dist/styles/hide.css.map +1 -1
- package/dist/styles/hover-card.css +1 -1
- package/dist/styles/hover-card.css.map +1 -1
- package/dist/styles/icon-button.css +1 -1
- package/dist/styles/icon-button.css.map +1 -1
- package/dist/styles/icon.css +1 -1
- package/dist/styles/icon.css.map +1 -1
- package/dist/styles/image.css +1 -1
- package/dist/styles/image.css.map +1 -1
- package/dist/styles/input.css +1 -1
- package/dist/styles/input.css.map +1 -1
- package/dist/styles/link.css +1 -1
- package/dist/styles/link.css.map +1 -1
- package/dist/styles/list.css +1 -1
- package/dist/styles/list.css.map +1 -1
- package/dist/styles/menubar.css +1 -1
- package/dist/styles/menubar.css.map +1 -1
- package/dist/styles/multi-select.css +1 -1
- package/dist/styles/multi-select.css.map +1 -1
- package/dist/styles/nav-list.css +1 -1
- package/dist/styles/nav-list.css.map +1 -1
- package/dist/styles/navigation-menu.css +1 -1
- package/dist/styles/navigation-menu.css.map +1 -1
- package/dist/styles/number-input.css +1 -1
- package/dist/styles/number-input.css.map +1 -1
- package/dist/styles/otp-field.css +1 -1
- package/dist/styles/otp-field.css.map +1 -1
- package/dist/styles/pagination.css +1 -1
- package/dist/styles/pagination.css.map +1 -1
- package/dist/styles/password-toggle-field.css +1 -1
- package/dist/styles/password-toggle-field.css.map +1 -1
- package/dist/styles/popover.css +1 -1
- package/dist/styles/popover.css.map +1 -1
- package/dist/styles/progress-circle.css +1 -1
- package/dist/styles/progress-circle.css.map +1 -1
- package/dist/styles/progress.css +1 -1
- package/dist/styles/progress.css.map +1 -1
- package/dist/styles/radio-group.css +1 -1
- package/dist/styles/radio-group.css.map +1 -1
- package/dist/styles/rating.css +1 -1
- package/dist/styles/rating.css.map +1 -1
- package/dist/styles/scroll-area.css +1 -1
- package/dist/styles/scroll-area.css.map +1 -1
- package/dist/styles/section.css +2 -0
- package/dist/styles/section.css.map +1 -0
- package/dist/styles/select.css +1 -1
- package/dist/styles/select.css.map +1 -1
- package/dist/styles/show.css +1 -1
- package/dist/styles/show.css.map +1 -1
- package/dist/styles/sidebar.css +1 -1
- package/dist/styles/sidebar.css.map +1 -1
- package/dist/styles/skeleton.css +1 -1
- package/dist/styles/skeleton.css.map +1 -1
- package/dist/styles/skip-link.css +1 -1
- package/dist/styles/skip-link.css.map +1 -1
- package/dist/styles/slider.css +1 -1
- package/dist/styles/slider.css.map +1 -1
- package/dist/styles/stack.css +1 -1
- package/dist/styles/stack.css.map +1 -1
- package/dist/styles/surface.css +1 -1
- package/dist/styles/surface.css.map +1 -1
- package/dist/styles/swipeable-item.css +1 -1
- package/dist/styles/swipeable-item.css.map +1 -1
- package/dist/styles/switch.css +1 -1
- package/dist/styles/switch.css.map +1 -1
- package/dist/styles/table.css +1 -1
- package/dist/styles/table.css.map +1 -1
- package/dist/styles/tabs.css +1 -1
- package/dist/styles/tabs.css.map +1 -1
- package/dist/styles/text.css +1 -1
- package/dist/styles/text.css.map +1 -1
- package/dist/styles/textarea.css +1 -1
- package/dist/styles/textarea.css.map +1 -1
- package/dist/styles/toast.css +1 -1
- package/dist/styles/toast.css.map +1 -1
- package/dist/styles/toggle-group.css +1 -1
- package/dist/styles/toggle-group.css.map +1 -1
- package/dist/styles/toggle.css +1 -1
- package/dist/styles/toggle.css.map +1 -1
- package/dist/styles/toolbar.css +1 -1
- package/dist/styles/toolbar.css.map +1 -1
- package/dist/styles/tooltip.css +1 -1
- package/dist/styles/tooltip.css.map +1 -1
- package/dist/styles/tree-grid.css +1 -1
- package/dist/styles/tree-grid.css.map +1 -1
- package/dist/styles/tree.css +1 -1
- package/dist/styles/tree.css.map +1 -1
- package/dist/styles/visually-hidden.css +1 -1
- package/dist/styles/visually-hidden.css.map +1 -1
- package/dist/styles/z-stack.css +2 -0
- package/dist/styles/z-stack.css.map +1 -0
- package/dist/styles.css +1 -1
- package/dist/styles.css.map +1 -1
- package/dist/surface.d.ts +1 -1
- package/dist/surface.d.ts.map +1 -1
- package/dist/surface.js +1 -1
- package/dist/surface.js.map +1 -1
- package/dist/tokens.css +1 -1
- package/dist/tokens.css.map +1 -1
- package/dist/z-stack.d.ts +2 -0
- package/dist/z-stack.d.ts.map +1 -0
- package/dist/z-stack.js +2 -0
- package/dist/z-stack.js.map +1 -0
- package/docs/guides/appearance-and-tokens.md +91 -1
- package/package.json +22 -2
|
@@ -1,9 +1,47 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Children, cloneElement, createElement, forwardRef, Fragment, } from "react";
|
|
2
3
|
function mergeClassName(className) {
|
|
3
4
|
return className ? `brick-surface ${className}` : "brick-surface";
|
|
4
5
|
}
|
|
5
|
-
function
|
|
6
|
-
return
|
|
6
|
+
function composeRefs(...refs) {
|
|
7
|
+
return (value) => {
|
|
8
|
+
for (const ref of refs) {
|
|
9
|
+
if (typeof ref === "function")
|
|
10
|
+
ref(value);
|
|
11
|
+
else if (ref)
|
|
12
|
+
ref.current = value;
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
function mergeComposedProps(original, override) {
|
|
17
|
+
const merged = { ...original, ...override };
|
|
18
|
+
for (const [key, value] of Object.entries(override)) {
|
|
19
|
+
const current = original[key];
|
|
20
|
+
if (key.startsWith("on") &&
|
|
21
|
+
typeof current === "function" &&
|
|
22
|
+
typeof value === "function") {
|
|
23
|
+
merged[key] = (...args) => {
|
|
24
|
+
value(...args);
|
|
25
|
+
current(...args);
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
else if (key === "className" &&
|
|
29
|
+
typeof current === "string" &&
|
|
30
|
+
typeof value === "string") {
|
|
31
|
+
merged[key] = `${current} ${value}`;
|
|
32
|
+
}
|
|
33
|
+
else if (key === "style" &&
|
|
34
|
+
current &&
|
|
35
|
+
value &&
|
|
36
|
+
typeof current === "object" &&
|
|
37
|
+
typeof value === "object") {
|
|
38
|
+
merged[key] = { ...current, ...value };
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return merged;
|
|
42
|
+
}
|
|
43
|
+
function SurfaceImpl({ as = "div", asChild = false, bordered = false, children, className, elevation = "none", inset = "none", level = "base", radius = "surface", slot = "surface", ...props }, ref) {
|
|
44
|
+
const rootProps = {
|
|
7
45
|
...props,
|
|
8
46
|
className: mergeClassName(className),
|
|
9
47
|
"data-bordered": bordered ? "" : undefined,
|
|
@@ -13,8 +51,43 @@ function SurfaceImpl({ as = "div", bordered = false, children, className, elevat
|
|
|
13
51
|
"data-radius": radius,
|
|
14
52
|
"data-slot": slot,
|
|
15
53
|
ref,
|
|
16
|
-
}
|
|
54
|
+
};
|
|
55
|
+
if (asChild) {
|
|
56
|
+
const child = Children.only(children);
|
|
57
|
+
if (child.type === Fragment) {
|
|
58
|
+
throw new Error("Surface with asChild requires one DOM or component host; a Fragment cannot receive Surface paint.");
|
|
59
|
+
}
|
|
60
|
+
const childRef = ("ref" in child.props
|
|
61
|
+
? child.props.ref
|
|
62
|
+
: child.ref);
|
|
63
|
+
return cloneElement(child, mergeComposedProps(child.props, {
|
|
64
|
+
...rootProps,
|
|
65
|
+
ref: childRef || ref ? composeRefs(childRef, ref) : undefined,
|
|
66
|
+
}));
|
|
67
|
+
}
|
|
68
|
+
return createElement(as, rootProps, children);
|
|
69
|
+
}
|
|
70
|
+
function mergePartClassName(base, className) {
|
|
71
|
+
return className ? `${base} ${className}` : base;
|
|
17
72
|
}
|
|
18
|
-
export const
|
|
19
|
-
|
|
73
|
+
export const SurfaceRoot = forwardRef(SurfaceImpl);
|
|
74
|
+
export const SurfaceMedia = forwardRef(function SurfaceMedia({ children, className, slot = "surface-media", style, ...props }, ref) {
|
|
75
|
+
return (_jsx("div", { ...props, "aria-hidden": "true", className: mergePartClassName("brick-surface__media", className), "data-slot": slot, ref: ref, style: style, children: children }));
|
|
76
|
+
});
|
|
77
|
+
export const SurfaceScrim = forwardRef(function SurfaceScrim({ className, direction = "uniform", slot = "surface-scrim", strength = "medium", style, ...props }, ref) {
|
|
78
|
+
return (_jsx("div", { ...props, "aria-hidden": "true", className: mergePartClassName("brick-surface__scrim", className), "data-direction": direction, "data-slot": slot, "data-strength": strength, ref: ref, style: style }));
|
|
79
|
+
});
|
|
80
|
+
export const SurfaceContent = forwardRef(function SurfaceContent({ children, className, slot = "surface-content", style, ...props }, ref) {
|
|
81
|
+
return (_jsx("div", { ...props, className: mergePartClassName("brick-surface__content", className), "data-slot": slot, ref: ref, style: style, children: children }));
|
|
82
|
+
});
|
|
83
|
+
SurfaceRoot.displayName = "Surface.Root";
|
|
84
|
+
SurfaceMedia.displayName = "Surface.Media";
|
|
85
|
+
SurfaceScrim.displayName = "Surface.Scrim";
|
|
86
|
+
SurfaceContent.displayName = "Surface.Content";
|
|
87
|
+
export const Surface = Object.assign(SurfaceRoot, {
|
|
88
|
+
Root: SurfaceRoot,
|
|
89
|
+
Media: SurfaceMedia,
|
|
90
|
+
Scrim: SurfaceScrim,
|
|
91
|
+
Content: SurfaceContent,
|
|
92
|
+
});
|
|
20
93
|
//# sourceMappingURL=Surface.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Surface.js","sourceRoot":"","sources":["../../../src/components/surface/Surface.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,UAAU,
|
|
1
|
+
{"version":3,"file":"Surface.js","sourceRoot":"","sources":["../../../src/components/surface/Surface.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,aAAa,EACb,UAAU,EACV,QAAQ,GAOT,MAAM,OAAO,CAAC;AAyEf,SAAS,cAAc,CAAC,SAA6B;IACnD,OAAO,SAAS,CAAC,CAAC,CAAC,iBAAiB,SAAS,EAAE,CAAC,CAAC,CAAC,eAAe,CAAC;AACpE,CAAC;AAED,SAAS,WAAW,CAAI,GAAG,IAA+B;IACxD,OAAO,CAAC,KAAe,EAAE,EAAE;QACzB,K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,EAClE,GAAG;IAEH,OAAO,CACL,iBACM,KAAK,EACT,SAAS,EAAE,kBAAkB,CAAC,wBAAwB,EAAE,SAAS,CAAC,eACvD,IAAI,EACf,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,YAEX,QAAQ,GACL,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,WAAW,CAAC,WAAW,GAAG,cAAc,CAAC;AACzC,YAAY,CAAC,WAAW,GAAG,eAAe,CAAC;AAC3C,YAAY,CAAC,WAAW,GAAG,eAAe,CAAC;AAC3C,cAAc,CAAC,WAAW,GAAG,iBAAiB,CAAC;AAE/C,MAAM,CAAC,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,WAAW,EAAE;IAChD,IAAI,EAAE,WAAW;IACjB,KAAK,EAAE,YAAY;IACnB,KAAK,EAAE,YAAY;IACnB,OAAO,EAAE,cAAc;CACxB,CAAC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Surface, type SurfaceElement, type SurfaceElevation, type SurfaceInset, type SurfaceLevel, type SurfaceProps, type SurfaceRadius, } from "./Surface.js";
|
|
1
|
+
export { Surface, SurfaceContent, SurfaceMedia, SurfaceRoot, SurfaceScrim, type SurfaceContentProps, type SurfaceElement, type SurfaceElevation, type SurfaceInset, type SurfaceLevel, type SurfaceMediaProps, type SurfaceProps, type SurfaceRadius, type SurfaceScrimDirection, type SurfaceScrimProps, type SurfaceScrimStrength, } from "./Surface.js";
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/surface/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,aAAa,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/surface/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,cAAc,EACd,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,GAC1B,MAAM,cAAc,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Surface, } from "./Surface.js";
|
|
1
|
+
export { Surface, SurfaceContent, SurfaceMedia, SurfaceRoot, SurfaceScrim, } from "./Surface.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/surface/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/surface/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,cAAc,EACd,YAAY,EACZ,WAAW,EACX,YAAY,GAYb,MAAM,cAAc,CAAC"}
|
|
@@ -1,25 +1,46 @@
|
|
|
1
|
+
import { type ResponsiveValue } from "../_responsive-value/ResponsiveValue.js";
|
|
1
2
|
import { type TabsContentProps as AtomTabsContentProps, type TabsIndicatorProps as AtomTabsIndicatorProps, type TabsListProps as AtomTabsListProps, type TabsRootProps as AtomTabsRootProps, type TabsTriggerProps as AtomTabsTriggerProps } from "@flowstack-ui/atom/tabs";
|
|
2
3
|
export type TabsSize = "sm" | "md" | "lg";
|
|
3
4
|
export type TabsVariant = "line" | "solid" | "soft" | "enclosed";
|
|
5
|
+
export type TabsContentInset = "none" | "sm" | "md" | "lg";
|
|
6
|
+
export type TabsLayout = "auto" | "stacked" | "side";
|
|
7
|
+
export type TabsListColumns = 1 | 2 | 3 | 4;
|
|
8
|
+
export type TabsListRadius = "default" | "none";
|
|
9
|
+
export type TabsTriggerRadius = "default" | "none";
|
|
4
10
|
export interface TabsRootProps extends AtomTabsRootProps {
|
|
5
11
|
size?: TabsSize;
|
|
6
12
|
variant?: TabsVariant;
|
|
7
13
|
fullWidth?: boolean;
|
|
14
|
+
layout?: ResponsiveValue<TabsLayout>;
|
|
8
15
|
}
|
|
9
|
-
export type TabsListProps = AtomTabsListProps
|
|
16
|
+
export type TabsListProps = AtomTabsListProps & {
|
|
17
|
+
columns?: ResponsiveValue<TabsListColumns>;
|
|
18
|
+
radius?: TabsListRadius;
|
|
19
|
+
triggerRadius?: TabsTriggerRadius;
|
|
20
|
+
};
|
|
10
21
|
export type TabsTriggerProps = AtomTabsTriggerProps;
|
|
11
|
-
export
|
|
22
|
+
export interface TabsContentProps extends AtomTabsContentProps {
|
|
23
|
+
inset?: TabsContentInset;
|
|
24
|
+
}
|
|
12
25
|
export type TabsIndicatorProps = AtomTabsIndicatorProps;
|
|
13
26
|
export declare const TabsRoot: import("react").ForwardRefExoticComponent<TabsRootProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
14
|
-
export declare const TabsList: import("react").ForwardRefExoticComponent<AtomTabsListProps &
|
|
27
|
+
export declare const TabsList: import("react").ForwardRefExoticComponent<AtomTabsListProps & {
|
|
28
|
+
columns?: ResponsiveValue<TabsListColumns>;
|
|
29
|
+
radius?: TabsListRadius;
|
|
30
|
+
triggerRadius?: TabsTriggerRadius;
|
|
31
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
15
32
|
export declare const TabsTrigger: import("react").ForwardRefExoticComponent<AtomTabsTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
16
|
-
export declare const TabsContent: import("react").ForwardRefExoticComponent<
|
|
33
|
+
export declare const TabsContent: import("react").ForwardRefExoticComponent<TabsContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
17
34
|
export declare function TabsIndicator({ className, "data-slot": slot, ...props }: TabsIndicatorProps): import("react").JSX.Element;
|
|
18
35
|
export declare const Tabs: Readonly<{
|
|
19
36
|
Root: import("react").ForwardRefExoticComponent<TabsRootProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
20
|
-
List: import("react").ForwardRefExoticComponent<AtomTabsListProps &
|
|
37
|
+
List: import("react").ForwardRefExoticComponent<AtomTabsListProps & {
|
|
38
|
+
columns?: ResponsiveValue<TabsListColumns>;
|
|
39
|
+
radius?: TabsListRadius;
|
|
40
|
+
triggerRadius?: TabsTriggerRadius;
|
|
41
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
21
42
|
Trigger: import("react").ForwardRefExoticComponent<AtomTabsTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
22
|
-
Content: import("react").ForwardRefExoticComponent<
|
|
43
|
+
Content: import("react").ForwardRefExoticComponent<TabsContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
23
44
|
Indicator: typeof TabsIndicator;
|
|
24
45
|
}>;
|
|
25
46
|
//# sourceMappingURL=Tabs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/components/tabs/Tabs.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,gBAAgB,IAAI,oBAAoB,EAC7C,KAAK,kBAAkB,IAAI,sBAAsB,EACjD,KAAK,aAAa,IAAI,iBAAiB,EACvC,KAAK,aAAa,IAAI,iBAAiB,EACvC,KAAK,gBAAgB,IAAI,oBAAoB,EAC9C,MAAM,yBAAyB,CAAC;AAEjC,MAAM,MAAM,QAAQ,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAC1C,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/components/tabs/Tabs.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,gBAAiB,SAAQ,oBAAoB;IAC5D,KAAK,CAAC,EAAE,gBAAgB,CAAC;CAC1B;AACD,MAAM,MAAM,kBAAkB,GAAG,sBAAsB,CAAC;AAMxD,eAAO,MAAM,QAAQ,0GAOpB,CAAC;AAEF,eAAO,MAAM,QAAQ;cAvBT,eAAe,CAAC,eAAe,CAAC;aACjC,cAAc;oBACP,iBAAiB;kDA4BlC,CAAC;AAEF,eAAO,MAAM,WAAW,oHAIvB,CAAC;AAEF,eAAO,MAAM,WAAW,6GAIvB,CAAC;AAEF,wBAAgB,aAAa,CAAC,EAAE,SAAS,EAAE,WAAW,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,+BAE3F;AAOD,eAAO,MAAM,IAAI;;;kBArDL,eAAe,CAAC,eAAe,CAAC;iBACjC,cAAc;wBACP,iBAAiB;;;;;EAmDwG,CAAC"}
|
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
+
import { responsiveDataAttributes } from "../_responsive-value/ResponsiveValue.js";
|
|
3
4
|
import { Tabs as AtomTabs, } from "@flowstack-ui/atom/tabs";
|
|
4
5
|
function classes(base, className) {
|
|
5
6
|
return className ? `${base} ${className}` : base;
|
|
6
7
|
}
|
|
7
|
-
export const TabsRoot = forwardRef(function TabsRoot({ className, fullWidth = false, size = "md", variant = "line", "data-slot": slot, ...props }, ref) {
|
|
8
|
-
return _jsx(AtomTabs.Root, { ...props, className: classes("brick-tabs", className), "data-full-width": fullWidth ? "" : undefined, "data-size": size, "data-slot": slot ?? "tabs-root", "data-variant": variant, ref: ref });
|
|
8
|
+
export const TabsRoot = forwardRef(function TabsRoot({ className, fullWidth = false, layout = "auto", size = "md", variant = "line", "data-slot": slot, ...props }, ref) {
|
|
9
|
+
return _jsx(AtomTabs.Root, { ...props, ...responsiveDataAttributes("data-layout", layout, { defaultValue: "auto" }), className: classes("brick-tabs", className), "data-full-width": fullWidth ? "" : undefined, "data-size": size, "data-slot": slot ?? "tabs-root", "data-variant": variant, ref: ref });
|
|
9
10
|
});
|
|
10
|
-
export const TabsList = forwardRef(function TabsList({ className, "data-slot": slot, ...props }, ref) {
|
|
11
|
-
|
|
11
|
+
export const TabsList = forwardRef(function TabsList({ className, columns, radius = "default", triggerRadius, "data-slot": slot, ...props }, ref) {
|
|
12
|
+
const columnAttributes = columns === undefined
|
|
13
|
+
? {}
|
|
14
|
+
: responsiveDataAttributes("data-columns", columns, { alwaysInitial: true });
|
|
15
|
+
return _jsx(AtomTabs.List, { ...props, ...columnAttributes, className: classes("brick-tabs-list", className), "data-radius": radius, "data-slot": slot ?? "tabs-list", "data-trigger-radius": triggerRadius, ref: ref });
|
|
12
16
|
});
|
|
13
17
|
export const TabsTrigger = forwardRef(function TabsTrigger({ className, "data-slot": slot, ...props }, ref) {
|
|
14
18
|
return _jsx(AtomTabs.Trigger, { ...props, className: classes("brick-tabs-trigger", className), "data-slot": slot ?? "tabs-trigger", ref: ref });
|
|
15
19
|
});
|
|
16
|
-
export const TabsContent = forwardRef(function TabsContent({ className, "data-slot": slot, ...props }, ref) {
|
|
17
|
-
return _jsx(AtomTabs.Content, { ...props, className: classes("brick-tabs-content", className), "data-slot": slot ?? "tabs-content", ref: ref });
|
|
20
|
+
export const TabsContent = forwardRef(function TabsContent({ className, inset, "data-slot": slot, ...props }, ref) {
|
|
21
|
+
return _jsx(AtomTabs.Content, { ...props, className: classes("brick-tabs-content", className), "data-inset": inset, "data-slot": slot ?? "tabs-content", ref: ref });
|
|
18
22
|
});
|
|
19
23
|
export function TabsIndicator({ className, "data-slot": slot, ...props }) {
|
|
20
24
|
return _jsx(AtomTabs.Indicator, { ...props, className: classes("brick-tabs-indicator", className), "data-slot": slot ?? "tabs-indicator" });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.js","sourceRoot":"","sources":["../../../src/components/tabs/Tabs.tsx"],"names":[],"mappings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G,KAAK,EAAsB;IAC1F,OAAO,KAAC,QAAQ,CAAC,SAAS,OAAK,KAAK,EAAE,SAAS,EAAE,OAAO,CAAC,sBAAsB,EAAE,SAAS,CAAC,eAAa,IAAI,IAAI,gBAAgB,GAAI,CAAC;AACvI,CAAC;AAED,QAAQ,CAAC,WAAW,GAAG,WAAW,CAAC;AACnC,QAAQ,CAAC,WAAW,GAAG,WAAW,CAAC;AACnC,WAAW,CAAC,WAAW,GAAG,cAAc,CAAC;AACzC,WAAW,CAAC,WAAW,GAAG,cAAc,CAAC;AAEzC,MAAM,CAAC,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,aAAa,EAAE,CAAC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Tabs, TabsContent, TabsIndicator, TabsList, TabsRoot, TabsTrigger, type TabsContentProps, type TabsIndicatorProps, type TabsListProps, type TabsRootProps, type TabsSize, type TabsTriggerProps, type TabsVariant, } from "./Tabs.js";
|
|
1
|
+
export { Tabs, TabsContent, TabsIndicator, TabsList, TabsRoot, TabsTrigger, type TabsContentInset, type TabsContentProps, type TabsIndicatorProps, type TabsLayout, type TabsListColumns, type TabsListRadius, type TabsListProps, type TabsRootProps, type TabsSize, type TabsTriggerProps, type TabsTriggerRadius, type TabsVariant, } from "./Tabs.js";
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/tabs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EACJ,WAAW,EACX,aAAa,EACb,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,QAAQ,EACb,KAAK,gBAAgB,EACrB,KAAK,WAAW,GACjB,MAAM,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/tabs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EACJ,WAAW,EACX,aAAa,EACb,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,UAAU,EACf,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,QAAQ,EACb,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,WAAW,GACjB,MAAM,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/tabs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EACJ,WAAW,EACX,aAAa,EACb,QAAQ,EACR,QAAQ,EACR,WAAW,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/tabs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EACJ,WAAW,EACX,aAAa,EACb,QAAQ,EACR,QAAQ,EACR,WAAW,GAaZ,MAAM,WAAW,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type CSSProperties, type HTMLAttributes, type ReactNode } from "react";
|
|
2
2
|
export type TextElement = "span" | "p" | "div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
3
|
-
export type TextVariant = "display" | "title-lg" | "title-md" | "title-sm" | "body-lg" | "body-md" | "body-sm" | "caption";
|
|
3
|
+
export type TextVariant = "display" | "title-lg" | "title-md" | "title-sm" | "body-lg" | "body-md" | "body-sm" | "caption" | "eyebrow";
|
|
4
4
|
export type TextTone = "inherit" | "primary" | "secondary" | "muted" | "accent" | "info" | "success" | "warning" | "danger";
|
|
5
5
|
export type TextWeight = "inherit" | "regular" | "medium" | "semibold";
|
|
6
6
|
export type TextAlign = "start" | "center" | "end";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../src/components/text/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAEf,MAAM,MAAM,WAAW,GACnB,MAAM,GACN,GAAG,GACH,KAAK,GACL,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,CAAC;AAET,MAAM,MAAM,WAAW,GACnB,SAAS,GACT,UAAU,GACV,UAAU,GACV,UAAU,GACV,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,CAAC;AAEd,MAAM,MAAM,QAAQ,GAChB,SAAS,GACT,SAAS,GACT,WAAW,GACX,OAAO,GACP,QAAQ,GACR,MAAM,GACN,SAAS,GACT,SAAS,GACT,QAAQ,CAAC;AAEb,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,UAAU,CAAC;AACvE,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;AACnD,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAAC;AAChE,MAAM,MAAM,aAAa,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAE9C,KAAK,eAAe,GAAG,IAAI,CACzB,cAAc,CAAC,WAAW,CAAC,EAC3B,UAAU,GAAG,WAAW,GAAG,OAAO,GAAG,OAAO,CAC7C,CAAC;AAEF,KAAK,iBAAiB,GAClB;IACE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,KAAK,CAAC;C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,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;AACnD,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAAC;AAChE,MAAM,MAAM,aAAa,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAE9C,KAAK,eAAe,GAAG,IAAI,CACzB,cAAc,CAAC,WAAW,CAAC,EAC3B,UAAU,GAAG,WAAW,GAAG,OAAO,GAAG,OAAO,CAC7C,CAAC;AAEF,KAAK,iBAAiB,GAClB;IACE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,KAAK,CAAC;CACnB,GACD;IACE,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,SAAS,CAAC,EAAE,aAAa,CAAC;CAC3B,CAAC;AAEN,MAAM,MAAM,SAAS,GAAG,eAAe,GACrC,iBAAiB,GAAG;IAClB,EAAE,CAAC,EAAE,WAAW,CAAC;IACjB,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAMJ,eAAO,MAAM,IAAI,mGAkCf,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.js","sourceRoot":"","sources":["../../../src/components/text/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,UAAU,GAIX,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Text.js","sourceRoot":"","sources":["../../../src/components/text/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,UAAU,GAIX,MAAM,OAAO,CAAC;AAqEf,SAAS,cAAc,CAAC,SAA6B;IACnD,OAAO,SAAS,CAAC,CAAC,CAAC,cAAc,SAAS,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC;AAC9D,CAAC;AAED,MAAM,CAAC,MAAM,IAAI,GAAG,UAAU,CAAyB,SAAS,IAAI,CAClE,EACE,EAAE,GAAG,MAAM,EACX,OAAO,GAAG,SAAS,EACnB,IAAI,GAAG,SAAS,EAChB,MAAM,EACN,KAAK,EACL,IAAI,GAAG,MAAM,EACb,QAAQ,GAAG,KAAK,EAChB,SAAS,EACT,SAAS,EACT,IAAI,GAAG,MAAM,EACb,QAAQ,EACR,GAAG,KAAK,EACT,EACD,GAAG;IAEH,OAAO,aAAa,CAClB,EAAE,EACF;QACE,GAAG,KAAK;QACR,SAAS,EAAE,cAAc,CAAC,SAAS,CAAC;QACpC,YAAY,EAAE,KAAK;QACnB,iBAAiB,EAAE,SAAS;QAC5B,WAAW,EAAE,IAAI;QACjB,WAAW,EAAE,IAAI;QACjB,eAAe,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS;QAC1C,cAAc,EAAE,OAAO;QACvB,aAAa,EAAE,MAAM;QACrB,WAAW,EAAE,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS;QAC/C,GAAG;KACJ,EACD,QAAQ,CACT,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { type CSSProperties, type HTMLAttributes, type ReactElement, type ReactNode } from "react";
|
|
2
|
+
import { type ResponsiveValue } from "../_responsive-value/ResponsiveValue.js";
|
|
3
|
+
export type { ResponsiveValue };
|
|
4
|
+
export type ZStackElement = "div" | "span" | "section" | "article" | "nav" | "header" | "footer" | "main" | "aside" | "ul" | "ol" | "li";
|
|
5
|
+
export type ZStackItemElement = "div" | "span" | "section" | "article" | "header" | "footer" | "aside" | "li";
|
|
6
|
+
export type ZStackAlign = "stretch" | "start" | "center" | "end";
|
|
7
|
+
export type ZStackJustify = "stretch" | "start" | "center" | "end";
|
|
8
|
+
export type ZStackItemAlign = "auto" | ZStackAlign;
|
|
9
|
+
export type ZStackItemJustify = "auto" | ZStackJustify;
|
|
10
|
+
type NativeProps = Omit<HTMLAttributes<HTMLElement>, "children" | "className" | "style">;
|
|
11
|
+
export interface ZStackRootProps extends NativeProps {
|
|
12
|
+
as?: ZStackElement;
|
|
13
|
+
children?: ReactNode;
|
|
14
|
+
align?: ResponsiveValue<ZStackAlign>;
|
|
15
|
+
justify?: ResponsiveValue<ZStackJustify>;
|
|
16
|
+
className?: string;
|
|
17
|
+
style?: CSSProperties;
|
|
18
|
+
slot?: string;
|
|
19
|
+
}
|
|
20
|
+
type ZStackItemHostProps = {
|
|
21
|
+
as?: ZStackItemElement;
|
|
22
|
+
asChild?: false;
|
|
23
|
+
children?: ReactNode;
|
|
24
|
+
} | {
|
|
25
|
+
as?: never;
|
|
26
|
+
asChild: true;
|
|
27
|
+
children: ReactElement;
|
|
28
|
+
};
|
|
29
|
+
export type ZStackItemProps = NativeProps & ZStackItemHostProps & {
|
|
30
|
+
align?: ResponsiveValue<ZStackItemAlign>;
|
|
31
|
+
justify?: ResponsiveValue<ZStackItemJustify>;
|
|
32
|
+
className?: string;
|
|
33
|
+
style?: CSSProperties;
|
|
34
|
+
slot?: string;
|
|
35
|
+
};
|
|
36
|
+
declare const ZStackRoot: import("react").ForwardRefExoticComponent<ZStackRootProps & import("react").RefAttributes<HTMLElement>>;
|
|
37
|
+
declare const ZStackItem: import("react").ForwardRefExoticComponent<ZStackItemProps & import("react").RefAttributes<HTMLElement>>;
|
|
38
|
+
export declare const ZStack: Readonly<{
|
|
39
|
+
Root: import("react").ForwardRefExoticComponent<ZStackRootProps & import("react").RefAttributes<HTMLElement>>;
|
|
40
|
+
Item: import("react").ForwardRefExoticComponent<ZStackItemProps & import("react").RefAttributes<HTMLElement>>;
|
|
41
|
+
}>;
|
|
42
|
+
export { ZStackRoot, ZStackItem };
|
|
43
|
+
//# sourceMappingURL=ZStack.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ZStack.d.ts","sourceRoot":"","sources":["../../../src/components/z-stack/ZStack.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,aAAa,EAElB,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,SAAS,EAEf,MAAM,OAAO,CAAC;AACf,OAAO,EAEL,KAAK,eAAe,EACrB,MAAM,yCAAyC,CAAC;AAEjD,YAAY,EAAE,eAAe,EAAE,CAAC;AAEhC,MAAM,MAAM,aAAa,GACrB,KAAK,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,KAAK,GAAG,QAAQ,GACzD,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AACrD,MAAM,MAAM,iBAAiB,GACzB,KAAK,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAC5D,OAAO,GAAG,IAAI,CAAC;AACnB,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;AACjE,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;AACnE,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,WAAW,CAAC;AACnD,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,aAAa,CAAC;AAEvD,KAAK,WAAW,GAAG,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,UAAU,GAAG,WAAW,GAAG,OAAO,CAAC,CAAC;AAEzF,MAAM,WAAW,eAAgB,SAAQ,WAAW;IAClD,EAAE,CAAC,EAAE,aAAa,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,eAAe,CAAC,WAAW,CAAC,CAAC;IACrC,OAAO,CAAC,EAAE,eAAe,CAAC,aAAa,CAAC,CAAC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,KAAK,mBAAmB,GACpB;IAAE,EAAE,CAAC,EAAE,iBAAiB,CAAC;IAAC,OAAO,CAAC,EAAE,KAAK,CAAC;IAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;CAAE,GACjE;IAAE,EAAE,CAAC,EAAE,KAAK,CAAC;IAAC,OAAO,EAAE,IAAI,CAAC;IAAC,QAAQ,EAAE,YAAY,CAAA;CAAE,CAAC;AAE1D,MAAM,MAAM,eAAe,GAAG,WAAW,GAAG,mBAAmB,GAAG;IAChE,KAAK,CAAC,EAAE,eAAe,CAAC,eAAe,CAAC,CAAC;IACzC,OAAO,CAAC,EAAE,eAAe,CAAC,iBAAiB,CAAC,CAAC;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAwEF,QAAA,MAAM,UAAU,yGAA2D,CAAC;AAE5E,QAAA,MAAM,UAAU,yGAA2D,CAAC;AAG5E,eAAO,MAAM,MAAM;;;EAAwD,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { Children, cloneElement, createElement, forwardRef, } from "react";
|
|
2
|
+
import { responsiveDataAttributes, } from "../_responsive-value/ResponsiveValue.js";
|
|
3
|
+
function classes(base, className) {
|
|
4
|
+
return className ? `${base} ${className}` : base;
|
|
5
|
+
}
|
|
6
|
+
function composeRefs(...refs) {
|
|
7
|
+
return (value) => {
|
|
8
|
+
for (const ref of refs) {
|
|
9
|
+
if (typeof ref === "function")
|
|
10
|
+
ref(value);
|
|
11
|
+
else if (ref)
|
|
12
|
+
ref.current = value;
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
function mergeComposedProps(original, override) {
|
|
17
|
+
const merged = { ...original, ...override };
|
|
18
|
+
for (const [key, value] of Object.entries(override)) {
|
|
19
|
+
const current = original[key];
|
|
20
|
+
if (key.startsWith("on") && typeof current === "function" && typeof value === "function") {
|
|
21
|
+
merged[key] = (...args) => { value(...args); current(...args); };
|
|
22
|
+
}
|
|
23
|
+
else if (key === "className" && typeof current === "string" && typeof value === "string") {
|
|
24
|
+
merged[key] = `${current} ${value}`;
|
|
25
|
+
}
|
|
26
|
+
else if (key === "style" && current && value && typeof current === "object" && typeof value === "object") {
|
|
27
|
+
merged[key] = { ...current, ...value };
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return merged;
|
|
31
|
+
}
|
|
32
|
+
function ZStackRootImpl({ as = "div", align = "stretch", justify = "stretch", className, slot = "z-stack", children, ...props }, ref) {
|
|
33
|
+
return createElement(as, {
|
|
34
|
+
...props,
|
|
35
|
+
...responsiveDataAttributes("data-align", align, { defaultValue: "stretch" }),
|
|
36
|
+
...responsiveDataAttributes("data-justify", justify, { defaultValue: "stretch" }),
|
|
37
|
+
className: classes("brick-z-stack", className),
|
|
38
|
+
"data-slot": slot,
|
|
39
|
+
ref,
|
|
40
|
+
}, children);
|
|
41
|
+
}
|
|
42
|
+
function ZStackItemImpl({ as = "div", asChild = false, align = "auto", justify = "auto", className, slot = "z-stack-item", style, children, ...props }, ref) {
|
|
43
|
+
const itemProps = {
|
|
44
|
+
...props,
|
|
45
|
+
...responsiveDataAttributes("data-align", align, { defaultValue: "auto" }),
|
|
46
|
+
...responsiveDataAttributes("data-justify", justify, { defaultValue: "auto" }),
|
|
47
|
+
className: classes("brick-z-stack-item", className),
|
|
48
|
+
"data-slot": slot,
|
|
49
|
+
ref,
|
|
50
|
+
style,
|
|
51
|
+
};
|
|
52
|
+
if (asChild) {
|
|
53
|
+
const child = Children.only(children);
|
|
54
|
+
const childRef = ("ref" in child.props
|
|
55
|
+
? child.props.ref
|
|
56
|
+
: child.ref);
|
|
57
|
+
return cloneElement(child, mergeComposedProps(child.props, {
|
|
58
|
+
...itemProps,
|
|
59
|
+
ref: childRef || ref ? composeRefs(childRef, ref) : undefined,
|
|
60
|
+
}));
|
|
61
|
+
}
|
|
62
|
+
return createElement(as, itemProps, children);
|
|
63
|
+
}
|
|
64
|
+
const ZStackRoot = forwardRef(ZStackRootImpl);
|
|
65
|
+
ZStackRoot.displayName = "ZStack.Root";
|
|
66
|
+
const ZStackItem = forwardRef(ZStackItemImpl);
|
|
67
|
+
ZStackItem.displayName = "ZStack.Item";
|
|
68
|
+
export const ZStack = Object.freeze({ Root: ZStackRoot, Item: ZStackItem });
|
|
69
|
+
export { ZStackRoot, ZStackItem };
|
|
70
|
+
//# sourceMappingURL=ZStack.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ZStack.js","sourceRoot":"","sources":["../../../src/components/z-stack/ZStack.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,aAAa,EACb,UAAU,GAOX,MAAM,OAAO,CAAC;AACf,OAAO,EACL,wBAAwB,GAEzB,MAAM,yCAAyC,CAAC;AAuCjD,SAAS,OAAO,CAAC,IAAY,EAAE,SAAkB;IAC/C,OAAO,SAAS,CAAC,CAAC,CAAC,GAAG,IAAI,IAAI,SAAS,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;AACnD,CAAC;AAED,SAAS,WAAW,CAAI,GAAG,IAA+B;IACxD,OAAO,CAAC,KAAe,EAAE,EAAE;QACzB,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;YACvB,IAAI,OAAO,GAAG,KAAK,UAAU;gBAAE,GAAG,CAAC,K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C,GAAG;YACjB,CAAC,CAAE,KAAmD,CAAC,GAAG,CAC7B,CAAC;QAClC,OAAO,YAAY,CAAC,KAAK,EAAE,kBAAkB,CAAC,KAAK,CAAC,KAAK,EAAE;YACzD,GAAG,SAAS;YACZ,GAAG,EAAE,QAAQ,IAAI,GAAG,CAAC,CAAC,CAAC,WAAW,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS;SAC9D,CAAC,CAAC,CAAC;IACN,CAAC;IACD,OAAO,aAAa,CAAC,EAAE,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;AAChD,CAAC;AAED,MAAM,UAAU,GAAG,UAAU,CAA+B,cAAc,CAAC,CAAC;AAC5E,UAAU,CAAC,WAAW,GAAG,aAAa,CAAC;AACvC,MAAM,UAAU,GAAG,UAAU,CAA+B,cAAc,CAAC,CAAC;AAC5E,UAAU,CAAC,WAAW,GAAG,aAAa,CAAC;AAEvC,MAAM,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { ZStack, ZStackItem, ZStackRoot, type ZStackAlign, type ZStackElement, type ZStackItemAlign, type ZStackItemElement, type ZStackItemJustify, type ZStackItemProps, type ZStackJustify, type ZStackRootProps, type ResponsiveValue, } from "./ZStack.js";
|
|
2
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/z-stack/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,UAAU,EACV,UAAU,EACV,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,eAAe,GACrB,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/z-stack/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,UAAU,EACV,UAAU,GAUX,MAAM,aAAa,CAAC"}
|
package/dist/drawer.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export * from "./components/drawer/index.js";
|
|
2
|
+
export { DrawerRoot as Root, DrawerTrigger as Trigger, DrawerPortal as Portal, DrawerOverlay as Overlay, DrawerContent as Content, DrawerHeader as Header, DrawerTitle as Title, DrawerDescription as Description, DrawerBody as Body, DrawerFooter as Footer, DrawerClose as Close, DrawerBranch as Branch, } from "./components/drawer/Drawer.js";
|
|
2
3
|
//# sourceMappingURL=drawer.d.ts.map
|
package/dist/drawer.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../src/drawer.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC"}
|
|
1
|
+
{"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../src/drawer.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAE7C,OAAO,EACL,UAAU,IAAI,IAAI,EAClB,aAAa,IAAI,OAAO,EACxB,YAAY,IAAI,MAAM,EACtB,aAAa,IAAI,OAAO,EACxB,aAAa,IAAI,OAAO,EACxB,YAAY,IAAI,MAAM,EACtB,WAAW,IAAI,KAAK,EACpB,iBAAiB,IAAI,WAAW,EAChC,UAAU,IAAI,IAAI,EAClB,YAAY,IAAI,MAAM,EACtB,WAAW,IAAI,KAAK,EACpB,YAAY,IAAI,MAAM,GACvB,MAAM,+BAA+B,CAAC"}
|
package/dist/drawer.js
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export * from "./components/drawer/index.js";
|
|
2
|
+
export { DrawerRoot as Root, DrawerTrigger as Trigger, DrawerPortal as Portal, DrawerOverlay as Overlay, DrawerContent as Content, DrawerHeader as Header, DrawerTitle as Title, DrawerDescription as Description, DrawerBody as Body, DrawerFooter as Footer, DrawerClose as Close, DrawerBranch as Branch, } from "./components/drawer/Drawer.js";
|
|
2
3
|
//# sourceMappingURL=drawer.js.map
|
package/dist/drawer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawer.js","sourceRoot":"","sources":["../src/drawer.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC"}
|
|
1
|
+
{"version":3,"file":"drawer.js","sourceRoot":"","sources":["../src/drawer.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAE7C,OAAO,EACL,UAAU,IAAI,IAAI,EAClB,aAAa,IAAI,OAAO,EACxB,YAAY,IAAI,MAAM,EACtB,aAAa,IAAI,OAAO,EACxB,aAAa,IAAI,OAAO,EACxB,YAAY,IAAI,MAAM,EACtB,WAAW,IAAI,KAAK,EACpB,iBAAiB,IAAI,WAAW,EAChC,UAAU,IAAI,IAAI,EAClB,YAAY,IAAI,MAAM,EACtB,WAAW,IAAI,KAAK,EACpB,YAAY,IAAI,MAAM,GACvB,MAAM,+BAA+B,CAAC"}
|
package/dist/frame.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frame.d.ts","sourceRoot":"","sources":["../src/frame.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,eAAe,GACrB,MAAM,6BAA6B,CAAC"}
|
package/dist/frame.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frame.js","sourceRoot":"","sources":["../src/frame.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,GAKN,MAAM,6BAA6B,CAAC"}
|
package/dist/grid.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Grid, type GridAlign, type GridColumnSpan, type GridColumns, type GridGap, type GridItemElement, type GridItemProps, type GridJustify, type GridLine, type GridMinItemSize, type GridRootElement, type GridRootProps, type GridSelfAlign, type GridSelfJustify, type GridSpan, } from "./components/grid/index.js";
|
|
1
|
+
export { Grid, type GridAlign, type GridColumnSpan, type GridColumns, type GridGap, type GridItemElement, type GridItemProps, type GridJustify, type GridLine, type GridMinItemSize, type GridRootElement, type GridRootProps, type GridSelfAlign, type GridSelfJustify, type GridSpan, type ResponsiveValue, } from "./components/grid/index.js";
|
|
2
2
|
//# sourceMappingURL=grid.d.ts.map
|
package/dist/grid.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../src/grid.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EACJ,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,OAAO,EACZ,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,QAAQ,EACb,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,QAAQ,
|
|
1
|
+
{"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../src/grid.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EACJ,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,OAAO,EACZ,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,QAAQ,EACb,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,QAAQ,EACb,KAAK,eAAe,GACrB,MAAM,4BAA4B,CAAC"}
|
package/dist/grid.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid.js","sourceRoot":"","sources":["../src/grid.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,
|
|
1
|
+
{"version":3,"file":"grid.js","sourceRoot":"","sources":["../src/grid.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,GAgBL,MAAM,4BAA4B,CAAC"}
|
package/dist/image.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Image, type ImageContentProps, type ImageFallbackProps, type ImageFit, type ImageFrame, type ImagePosition, type ImageRadius, type ImageRootProps, } from "./components/image/index.js";
|
|
1
|
+
export { Image, ImageContent, ImageFallback, ImageRoot, type ImageContentProps, type ImageFallbackProps, type ImageFit, type ImageFrame, type ImagePosition, type ImageRadius, type ImageRootProps, } from "./components/image/index.js";
|
|
2
2
|
//# sourceMappingURL=image.d.ts.map
|
package/dist/image.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../src/image.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,EACL,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,QAAQ,EACb,KAAK,UAAU,EACf,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,cAAc,GACpB,MAAM,6BAA6B,CAAC"}
|
|
1
|
+
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../src/image.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,EACL,YAAY,EACZ,aAAa,EACb,SAAS,EACT,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,QAAQ,EACb,KAAK,UAAU,EACf,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,cAAc,GACpB,MAAM,6BAA6B,CAAC"}
|
package/dist/image.js
CHANGED
package/dist/image.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image.js","sourceRoot":"","sources":["../src/image.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EACL,KAAK,
|
|
1
|
+
{"version":3,"file":"image.js","sourceRoot":"","sources":["../src/image.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EACL,KAAK,EACL,YAAY,EACZ,aAAa,EACb,SAAS,GAQV,MAAM,6BAA6B,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
|
+
export { Appearance, type AppearanceProps, type AppearanceValue, } from "./components/appearance/index.js";
|
|
1
2
|
export { Button, type ButtonProps, type ButtonShape, type ButtonSize, type ButtonTone, type ButtonVariant, } from "./components/button/index.js";
|
|
3
|
+
export { Carousel, CarouselControls, CarouselNavigation, CarouselNext, CarouselPicker, CarouselPickerItem, CarouselPrevious, CarouselRoot, CarouselRotationControl, CarouselSlide, CarouselTrack, CarouselViewport, type CarouselControlPlacement, type CarouselControlsProps, type CarouselNavigationProps, type CarouselNextProps, type CarouselPickerItemProps, type CarouselPickerProps, type CarouselPreviousProps, type CarouselRootProps, type CarouselRadius, type CarouselRotationControlProps, type CarouselSize, type CarouselSlideProps, type CarouselTrackProps, type CarouselViewportProps, } from "./components/carousel/index.js";
|
|
2
4
|
export { IconButton, type IconButtonProps, type IconButtonShape, type IconButtonSize, type IconButtonTone, type IconButtonVariant, } from "./components/icon-button/index.js";
|
|
3
5
|
export { Icon, type IconProps, type IconSize, type IconTone, } from "./components/icon/index.js";
|
|
4
|
-
export { Image, type ImageContentProps, type ImageFallbackProps, type ImageFit, type ImageFrame, type ImagePosition, type ImageRadius, type ImageRootProps, } from "./components/image/index.js";
|
|
6
|
+
export { Image, ImageContent, ImageFallback, ImageRoot, type ImageContentProps, type ImageFallbackProps, type ImageFit, type ImageFrame, type ImagePosition, type ImageRadius, type ImageRootProps, } from "./components/image/index.js";
|
|
5
7
|
export { AspectRatio, AspectRatioRoot, type AspectRatioOverflow, type AspectRatioRadius, type AspectRatioRootProps, type AspectRatioVariant, } from "./components/aspect-ratio/index.js";
|
|
6
8
|
export { AppBar, AppBarCenter, AppBarEnd, AppBarRoot, AppBarStart, AppBarToolbar, type AppBarRootProps, type AppBarSectionProps, type AppBarTone, type AppBarToolbarProps, type AppBarVariant, } from "./components/app-bar/index.js";
|
|
7
9
|
export { Card, type CardActionProps, type CardContentProps, type CardDescriptionProps, type CardFooterProps, type CardHeaderProps, type CardRootElement, type CardRootProps, type CardSize, type CardTitleElement, type CardTitleProps, type CardVariant, } from "./components/card/index.js";
|
|
8
|
-
export { Dialog, type DialogSize } from "./components/dialog/index.js";
|
|
9
|
-
export { AlertDialog, type AlertDialogSize, } from "./components/alert-dialog/index.js";
|
|
10
|
-
export { Drawer, type DrawerPlacement, type DrawerSize, } from "./components/drawer/index.js";
|
|
10
|
+
export { Dialog, type DialogFooterJustify, type DialogSize, } from "./components/dialog/index.js";
|
|
11
|
+
export { AlertDialog, type AlertDialogFooterJustify, type AlertDialogSize, } from "./components/alert-dialog/index.js";
|
|
12
|
+
export { Drawer, type DrawerFooterJustify, type DrawerPlacement, type DrawerSize, } from "./components/drawer/index.js";
|
|
11
13
|
export { Badge, NotificationBadge, type BadgeProps, type BadgeShape, type BadgeSize, type BadgeTone, type BadgeVariant, type NotificationBadgeOverlap, type NotificationBadgePlacement, type NotificationBadgeProps, type NotificationBadgeSize, } from "./components/badge/index.js";
|
|
12
14
|
export { Chip, ChipLabel, ChipRemoveTrigger, ChipRoot, type ChipLabelProps, type ChipRemoveTriggerProps, type ChipRootProps, type ChipShape, type ChipSize, type ChipTone, type ChipVariant, } from "./components/chip/index.js";
|
|
13
15
|
export { Avatar, type AvatarProps, type AvatarShape, type AvatarSize, type AvatarStatus, } from "./components/avatar/index.js";
|
|
@@ -22,7 +24,7 @@ export { Fieldset, type FieldsetDescriptionProps, type FieldsetErrorProps, type
|
|
|
22
24
|
export { Checkbox, type CheckboxProps, type CheckboxSize, } from "./components/checkbox/index.js";
|
|
23
25
|
export { CheckboxGroup, type CheckboxGroupItemDescriptionProps, type CheckboxGroupItemLabelProps, type CheckboxGroupItemProps, type CheckboxGroupParentProps, type CheckboxGroupRootProps, } from "./components/checkbox-group/index.js";
|
|
24
26
|
export { RadioGroup, RadioGroupItem, RadioGroupRoot, type RadioGroupItemProps, type RadioGroupRootProps, type RadioGroupSize, } from "./components/radio-group/index.js";
|
|
25
|
-
export { Tabs, TabsContent, TabsIndicator, TabsList, TabsRoot, TabsTrigger, type TabsContentProps, type TabsIndicatorProps, type TabsListProps, type TabsRootProps, type TabsSize, type TabsTriggerProps, type TabsVariant, } from "./components/tabs/index.js";
|
|
27
|
+
export { Tabs, TabsContent, TabsIndicator, TabsList, TabsRoot, TabsTrigger, type TabsContentInset, type TabsContentProps, type TabsIndicatorProps, type TabsLayout, type TabsListColumns, type TabsListRadius, type TabsListProps, type TabsRootProps, type TabsSize, type TabsTriggerProps, type TabsTriggerRadius, type TabsVariant, } from "./components/tabs/index.js";
|
|
26
28
|
export { DropdownMenu, DropdownMenuArrow, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuDescription, DropdownMenuGroup, DropdownMenuItem, DropdownMenuItemIndicator, DropdownMenuItemLabel, DropdownMenuLabel, DropdownMenuLeading, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuRoot, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type DropdownMenuArrowProps, type DropdownMenuCheckboxItemProps, type DropdownMenuContentProps, type DropdownMenuDescriptionProps, type DropdownMenuGroupProps, type DropdownMenuItemIndicatorProps, type DropdownMenuItemLabelProps, type DropdownMenuItemProps, type DropdownMenuItemTone, type DropdownMenuLabelProps, type DropdownMenuLeadingProps, type DropdownMenuPortalProps, type DropdownMenuRadioGroupProps, type DropdownMenuRadioItemProps, type DropdownMenuRootProps, type DropdownMenuSeparatorProps, type DropdownMenuShortcutProps, type DropdownMenuSize, type DropdownMenuSubContentProps, type DropdownMenuSubProps, type DropdownMenuSubTriggerProps, type DropdownMenuTriggerProps, } from "./components/dropdown-menu/index.js";
|
|
27
29
|
export * from "./components/context-menu/index.js";
|
|
28
30
|
export * from "./components/menubar/index.js";
|
|
@@ -49,10 +51,13 @@ export * from "./components/combobox/index.js";
|
|
|
49
51
|
export { Text, type TextAlign, type TextElement, type TextLineClamp, type TextProps, type TextTone, type TextVariant, type TextWeight, type TextWrap, } from "./components/text/index.js";
|
|
50
52
|
export { Link, type LinkProps, type LinkRenderProp, type LinkSize, type LinkTone, type LinkVariant, } from "./components/link/index.js";
|
|
51
53
|
export { List, type ListContentProps, type ListDensity, type ListDescriptionProps, type ListItemProps, type ListLeadingProps, type ListMarker, type ListRootProps, type ListSize, type ListTitleProps, type ListTrailingProps, type ListVariant, } from "./components/list/index.js";
|
|
52
|
-
export { HStack, Stack, VStack, type HStackProps, type StackAlign, type StackDirection, type StackElement, type StackGap, type StackJustify, type StackProps, type VStackProps, } from "./components/stack/index.js";
|
|
54
|
+
export { HStack, Stack, VStack, type HStackProps, type ResponsiveValue, type StackAlign, type StackBreakpoint, type StackDirection, type StackElement, type StackGap, type StackItemAlign, type StackItemElement, type StackItemFlex, type StackItemProps, type StackJustify, type StackProps, type VStackProps, } from "./components/stack/index.js";
|
|
55
|
+
export { ZStack, ZStackItem, ZStackRoot, type ZStackAlign, type ZStackElement, type ZStackItemAlign, type ZStackItemElement, type ZStackItemJustify, type ZStackItemProps, type ZStackJustify, type ZStackRootProps, } from "./components/z-stack/index.js";
|
|
53
56
|
export { Grid, type GridAlign, type GridColumnSpan, type GridColumns, type GridGap, type GridItemElement, type GridItemProps, type GridJustify, type GridLine, type GridMinItemSize, type GridRootElement, type GridRootProps, type GridSelfAlign, type GridSelfJustify, type GridSpan, } from "./components/grid/index.js";
|
|
54
57
|
export { Container, type ContainerElement, type ContainerGutter, type ContainerMeasure, type ContainerProps, } from "./components/container/index.js";
|
|
55
|
-
export {
|
|
58
|
+
export { Section, type SectionElement, type SectionProps, type SectionSpacing, } from "./components/section/index.js";
|
|
59
|
+
export { Frame, type FrameElement, type FrameLength, type FrameProps, } from "./components/frame/index.js";
|
|
60
|
+
export { Surface, SurfaceContent, SurfaceMedia, SurfaceRoot, SurfaceScrim, type SurfaceContentProps, type SurfaceElement, type SurfaceElevation, type SurfaceInset, type SurfaceLevel, type SurfaceMediaProps, type SurfaceProps, type SurfaceRadius, type SurfaceScrimDirection, type SurfaceScrimProps, type SurfaceScrimStrength, } from "./components/surface/index.js";
|
|
56
61
|
export { Divider, type DividerComposedProps, type DividerElement, type DividerInset, type DividerLabelAlign, type DividerLabelProps, type DividerLineProps, type DividerOrientation, type DividerProps, type DividerThickness, type DividerVariant, } from "./components/divider/index.js";
|
|
57
62
|
export { ScrollArea, ScrollAreaRoot, ScrollAreaViewport, type ScrollAreaOrientation, type ScrollAreaRootElement, type ScrollAreaRootProps, type ScrollAreaScrollbarGutter, type ScrollAreaScrollbarVisibility, type ScrollAreaViewportElement, type ScrollAreaViewportProps, } from "./components/scroll-area/index.js";
|
|
58
63
|
export { Code, type CodeProps, type CodeSize, type CodeTone, type CodeVariant, } from "./components/code/index.js";
|