@ox0/ui 0.1.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/accordion.d.ts +49 -0
- package/dist/components/accordion.d.ts.map +1 -0
- package/dist/components/accordion.test.d.ts +2 -0
- package/dist/components/accordion.test.d.ts.map +1 -0
- package/dist/components/badge.d.ts +31 -0
- package/dist/components/badge.d.ts.map +1 -0
- package/dist/components/banner.d.ts +22 -0
- package/dist/components/banner.d.ts.map +1 -0
- package/dist/components/box.d.ts +12 -0
- package/dist/components/box.d.ts.map +1 -0
- package/dist/components/button-group.d.ts +13 -0
- package/dist/components/button-group.d.ts.map +1 -0
- package/dist/components/button.d.ts +58 -0
- package/dist/components/button.d.ts.map +1 -0
- package/dist/components/caption.d.ts +14 -0
- package/dist/components/caption.d.ts.map +1 -0
- package/dist/components/card.d.ts +23 -0
- package/dist/components/card.d.ts.map +1 -0
- package/dist/components/checkbox.d.ts +12 -0
- package/dist/components/checkbox.d.ts.map +1 -0
- package/dist/components/code-block.d.ts +8 -0
- package/dist/components/code-block.d.ts.map +1 -0
- package/dist/components/code.d.ts +6 -0
- package/dist/components/code.d.ts.map +1 -0
- package/dist/components/dialog.d.ts +8 -0
- package/dist/components/dialog.d.ts.map +1 -0
- package/dist/components/disclosure-triangle.d.ts +7 -0
- package/dist/components/disclosure-triangle.d.ts.map +1 -0
- package/dist/components/divider.d.ts +9 -0
- package/dist/components/divider.d.ts.map +1 -0
- package/dist/components/heading.d.ts +11 -0
- package/dist/components/heading.d.ts.map +1 -0
- package/dist/components/icon-button.d.ts +19 -0
- package/dist/components/icon-button.d.ts.map +1 -0
- package/dist/components/icon-label.d.ts +23 -0
- package/dist/components/icon-label.d.ts.map +1 -0
- package/dist/components/keyboard.d.ts +6 -0
- package/dist/components/keyboard.d.ts.map +1 -0
- package/dist/components/label.d.ts +16 -0
- package/dist/components/label.d.ts.map +1 -0
- package/dist/components/link.d.ts +47 -0
- package/dist/components/link.d.ts.map +1 -0
- package/dist/components/link.test.d.ts +2 -0
- package/dist/components/link.test.d.ts.map +1 -0
- package/dist/components/numeric.d.ts +13 -0
- package/dist/components/numeric.d.ts.map +1 -0
- package/dist/components/popover.d.ts +19 -0
- package/dist/components/popover.d.ts.map +1 -0
- package/dist/components/select.d.ts +20 -0
- package/dist/components/select.d.ts.map +1 -0
- package/dist/components/spinner.d.ts +21 -0
- package/dist/components/spinner.d.ts.map +1 -0
- package/dist/components/surface.d.ts +25 -0
- package/dist/components/surface.d.ts.map +1 -0
- package/dist/components/switch.d.ts +12 -0
- package/dist/components/switch.d.ts.map +1 -0
- package/dist/components/text-area.d.ts +15 -0
- package/dist/components/text-area.d.ts.map +1 -0
- package/dist/components/text-field.d.ts +11 -0
- package/dist/components/text-field.d.ts.map +1 -0
- package/dist/components/text.d.ts +43 -0
- package/dist/components/text.d.ts.map +1 -0
- package/dist/components/toast.d.ts +28 -0
- package/dist/components/toast.d.ts.map +1 -0
- package/dist/components/tooltip-manager.d.ts +15 -0
- package/dist/components/tooltip-manager.d.ts.map +1 -0
- package/dist/components/tooltip.d.ts +17 -0
- package/dist/components/tooltip.d.ts.map +1 -0
- package/dist/index.d.ts +38 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2235 -163
- package/dist/layout/grid.d.ts +29 -0
- package/dist/layout/grid.d.ts.map +1 -0
- package/dist/layout/inline.d.ts +19 -0
- package/dist/layout/inline.d.ts.map +1 -0
- package/dist/layout/split.d.ts +12 -0
- package/dist/layout/split.d.ts.map +1 -0
- package/dist/layout/stack.d.ts +15 -0
- package/dist/layout/stack.d.ts.map +1 -0
- package/dist/mixins/aria.d.ts +14 -0
- package/dist/mixins/aria.d.ts.map +1 -0
- package/dist/mixins/borders.d.ts +27 -0
- package/dist/mixins/borders.d.ts.map +1 -0
- package/dist/mixins/flex-item.d.ts +30 -0
- package/dist/mixins/flex-item.d.ts.map +1 -0
- package/dist/mixins/grid-item.d.ts +14 -0
- package/dist/mixins/grid-item.d.ts.map +1 -0
- package/dist/mixins/index.d.ts +9 -0
- package/dist/mixins/index.d.ts.map +1 -0
- package/dist/mixins/placement.d.ts +20 -0
- package/dist/mixins/placement.d.ts.map +1 -0
- package/dist/mixins/sizing.d.ts +30 -0
- package/dist/mixins/sizing.d.ts.map +1 -0
- package/dist/mixins/spacing.d.ts +27 -0
- package/dist/mixins/spacing.d.ts.map +1 -0
- package/dist/mixins/surface.d.ts +16 -0
- package/dist/mixins/surface.d.ts.map +1 -0
- package/dist/providers/ox0-provider.d.ts +47 -0
- package/dist/providers/ox0-provider.d.ts.map +1 -0
- package/dist/providers/router-context.d.ts +6 -0
- package/dist/providers/router-context.d.ts.map +1 -0
- package/package.json +9 -5
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type ElementType, type PropsWithChildren } from "react";
|
|
2
|
+
import type { SpacingProps } from "../mixins/spacing";
|
|
3
|
+
export interface GridProps extends PropsWithChildren, SpacingProps {
|
|
4
|
+
/**
|
|
5
|
+
* CSS `grid-template-columns` value.
|
|
6
|
+
* - number: `3` → `"repeat(3, 1fr)"`
|
|
7
|
+
* - string[]: `["200px", "1fr"]` → `"200px 1fr"`
|
|
8
|
+
* - string: passed through as-is
|
|
9
|
+
* @default "repeat(auto-fit, minmax(12rem, 1fr))"
|
|
10
|
+
*/
|
|
11
|
+
readonly columns?: number | string | string[];
|
|
12
|
+
/**
|
|
13
|
+
* CSS `grid-template-rows` value.
|
|
14
|
+
* - number: `2` → `"repeat(2, 1fr)"`
|
|
15
|
+
* - string[]: `["auto", "1fr", "auto"]` → `"auto 1fr auto"`
|
|
16
|
+
* - string: passed through as-is
|
|
17
|
+
*/
|
|
18
|
+
readonly rows?: number | string | string[];
|
|
19
|
+
/**
|
|
20
|
+
* Named grid areas as a 2-D array. Each inner array is a row of area names.
|
|
21
|
+
* `[["header", "header"], ["nav", "main"]]` →
|
|
22
|
+
* `grid-template-areas: "header header" "nav main"`
|
|
23
|
+
*/
|
|
24
|
+
readonly areas?: string[][];
|
|
25
|
+
/** HTML element to render. @default "div" */
|
|
26
|
+
readonly as?: ElementType;
|
|
27
|
+
}
|
|
28
|
+
export declare const Grid: import("react").ForwardRefExoticComponent<GridProps & import("react").RefAttributes<HTMLElement>>;
|
|
29
|
+
//# sourceMappingURL=grid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../../src/layout/grid.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,WAAW,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAG5E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,MAAM,WAAW,SAAU,SAAQ,iBAAiB,EAAE,YAAY;IAChE;;;;;;OAMG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,CAAA;IAC7C;;;;;OAKG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,CAAA;IAC1C;;;;OAIG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,EAAE,CAAA;IAC3B,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,CAAC,EAAE,WAAW,CAAA;CAC1B;AAQD,eAAO,MAAM,IAAI,mGAgDf,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type ElementType, type PropsWithChildren } from "react";
|
|
2
|
+
import type { GridItemProps } from "../mixins/grid-item";
|
|
3
|
+
import type { SpacingProps } from "../mixins/spacing";
|
|
4
|
+
/** Cross-axis alignment for Inline children. @default "center" */
|
|
5
|
+
export type InlineAlign = "start" | "center" | "end" | "stretch" | "baseline";
|
|
6
|
+
/** Main-axis distribution for Inline children. @default "start" */
|
|
7
|
+
export type InlineJustify = "start" | "center" | "end" | "between" | "around";
|
|
8
|
+
export interface InlineProps extends PropsWithChildren, SpacingProps, GridItemProps {
|
|
9
|
+
/** Cross-axis alignment of children. @default "center" */
|
|
10
|
+
readonly align?: InlineAlign;
|
|
11
|
+
/** Main-axis distribution of children. @default "start" */
|
|
12
|
+
readonly justify?: InlineJustify;
|
|
13
|
+
/** Whether children wrap onto multiple lines. @default true */
|
|
14
|
+
readonly wrap?: boolean;
|
|
15
|
+
/** HTML element to render. @default "div" */
|
|
16
|
+
readonly as?: ElementType;
|
|
17
|
+
}
|
|
18
|
+
export declare const Inline: import("react").ForwardRefExoticComponent<InlineProps & import("react").RefAttributes<HTMLElement>>;
|
|
19
|
+
//# sourceMappingURL=inline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inline.d.ts","sourceRoot":"","sources":["../../src/layout/inline.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,WAAW,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAG5E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAExD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,kEAAkE;AAClE,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,GAAG,UAAU,CAAA;AAE7E,mEAAmE;AACnE,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,GAAG,QAAQ,CAAA;AAE7E,MAAM,WAAW,WAAY,SAAQ,iBAAiB,EAAE,YAAY,EAAE,aAAa;IACjF,0DAA0D;IAC1D,QAAQ,CAAC,KAAK,CAAC,EAAE,WAAW,CAAA;IAC5B,2DAA2D;IAC3D,QAAQ,CAAC,OAAO,CAAC,EAAE,aAAa,CAAA;IAChC,+DAA+D;IAC/D,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAA;IACvB,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,CAAC,EAAE,WAAW,CAAA;CAC1B;AAkBD,eAAO,MAAM,MAAM,qGA8CjB,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type ElementType, type PropsWithChildren } from "react";
|
|
2
|
+
import type { SpacingProps } from "../mixins/spacing";
|
|
3
|
+
/** Cross-axis alignment for Split children. @default "center" */
|
|
4
|
+
export type SplitAlign = "start" | "center" | "end" | "stretch" | "baseline";
|
|
5
|
+
export interface SplitProps extends PropsWithChildren, SpacingProps {
|
|
6
|
+
/** Cross-axis alignment of children. @default "center" */
|
|
7
|
+
readonly align?: SplitAlign;
|
|
8
|
+
/** HTML element to render. @default "div" */
|
|
9
|
+
readonly as?: ElementType;
|
|
10
|
+
}
|
|
11
|
+
export declare const Split: import("react").ForwardRefExoticComponent<SplitProps & import("react").RefAttributes<HTMLElement>>;
|
|
12
|
+
//# sourceMappingURL=split.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"split.d.ts","sourceRoot":"","sources":["../../src/layout/split.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,WAAW,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAG5E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,iEAAiE;AACjE,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,GAAG,UAAU,CAAA;AAE5E,MAAM,WAAW,UAAW,SAAQ,iBAAiB,EAAE,YAAY;IACjE,0DAA0D;IAC1D,QAAQ,CAAC,KAAK,CAAC,EAAE,UAAU,CAAA;IAC3B,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,CAAC,EAAE,WAAW,CAAA;CAC1B;AAUD,eAAO,MAAM,KAAK,oGAwChB,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type ElementType, type PropsWithChildren } from "react";
|
|
2
|
+
import type { BordersProps } from "../mixins/borders";
|
|
3
|
+
import type { GridItemProps } from "../mixins/grid-item";
|
|
4
|
+
import type { SpacingProps } from "../mixins/spacing";
|
|
5
|
+
import type { SurfaceStyleProps } from "../mixins/surface";
|
|
6
|
+
/** Cross-axis alignment for Stack children. @default "stretch" */
|
|
7
|
+
export type StackAlign = "start" | "center" | "end" | "stretch";
|
|
8
|
+
export interface StackProps extends PropsWithChildren, SpacingProps, BordersProps, SurfaceStyleProps, GridItemProps {
|
|
9
|
+
/** Cross-axis alignment of children. @default "stretch" */
|
|
10
|
+
readonly align?: StackAlign;
|
|
11
|
+
/** HTML element to render. @default "div" */
|
|
12
|
+
readonly as?: ElementType;
|
|
13
|
+
}
|
|
14
|
+
export declare const Stack: import("react").ForwardRefExoticComponent<StackProps & import("react").RefAttributes<HTMLElement>>;
|
|
15
|
+
//# sourceMappingURL=stack.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stack.d.ts","sourceRoot":"","sources":["../../src/layout/stack.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,WAAW,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAG5E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAExD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAE1D,kEAAkE;AAClE,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,CAAA;AAE/D,MAAM,WAAW,UACf,SAAQ,iBAAiB,EAAE,YAAY,EAAE,YAAY,EAAE,iBAAiB,EAAE,aAAa;IACvF,2DAA2D;IAC3D,QAAQ,CAAC,KAAK,CAAC,EAAE,UAAU,CAAA;IAC3B,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,CAAC,EAAE,WAAW,CAAA;CAC1B;AASD,eAAO,MAAM,KAAK,oGA+DhB,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** Accessibility props shared by display and interactive components. */
|
|
2
|
+
export type AriaMixin = {
|
|
3
|
+
/** DOM element id — also used by aria-labelledby / aria-describedby on other elements. */
|
|
4
|
+
readonly id?: string;
|
|
5
|
+
/** Accessible name when no visible label is present. */
|
|
6
|
+
readonly "aria-label"?: string;
|
|
7
|
+
/** References element(s) that label this element. */
|
|
8
|
+
readonly "aria-labelledby"?: string;
|
|
9
|
+
/** References element(s) that describe this element. */
|
|
10
|
+
readonly "aria-describedby"?: string;
|
|
11
|
+
/** References element(s) providing an extended description. */
|
|
12
|
+
readonly "aria-details"?: string;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=aria.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aria.d.ts","sourceRoot":"","sources":["../../src/mixins/aria.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,MAAM,MAAM,SAAS,GAAG;IACtB,0FAA0F;IAC1F,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAA;IACpB,wDAAwD;IACxD,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAA;IAC9B,qDAAqD;IACrD,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAA;IACnC,wDAAwD;IACxD,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,CAAA;IACpC,+DAA+D;IAC/D,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAA;CACjC,CAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type CSSProperties } from "react";
|
|
2
|
+
/** Border radius token. Maps to `--ox0-radius-*` CSS custom properties. */
|
|
3
|
+
export type RadiusToken = "none" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "full";
|
|
4
|
+
/** Box shadow token. Maps to `--ox0-shadow-*` CSS custom properties. */
|
|
5
|
+
export type ShadowToken = "none" | "xs" | "sm" | "md" | "lg" | "xl";
|
|
6
|
+
/** Shared border and shadow props. */
|
|
7
|
+
export type BordersProps = {
|
|
8
|
+
/** Corner rounding. */
|
|
9
|
+
readonly borderRadius?: RadiusToken;
|
|
10
|
+
/** Box shadow depth. */
|
|
11
|
+
readonly shadow?: ShadowToken;
|
|
12
|
+
/** Border on all sides. Pass `true` to use the default subtle border. */
|
|
13
|
+
readonly border?: boolean;
|
|
14
|
+
/** Border on the top side only. */
|
|
15
|
+
readonly borderTop?: boolean;
|
|
16
|
+
/** Border on the right side only. */
|
|
17
|
+
readonly borderRight?: boolean;
|
|
18
|
+
/** Border on the bottom side only. */
|
|
19
|
+
readonly borderBottom?: boolean;
|
|
20
|
+
/** Border on the left side only. */
|
|
21
|
+
readonly borderLeft?: boolean;
|
|
22
|
+
};
|
|
23
|
+
/** Resolves BordersProps to a partial CSSProperties object. */
|
|
24
|
+
export declare const useBorders: (props: BordersProps) => {
|
|
25
|
+
style: CSSProperties;
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=borders.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"borders.d.ts","sourceRoot":"","sources":["../../src/mixins/borders.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAW,MAAM,OAAO,CAAA;AAEnD,2EAA2E;AAC3E,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG,MAAM,CAAA;AAEpF,wEAAwE;AACxE,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAEnE,sCAAsC;AACtC,MAAM,MAAM,YAAY,GAAG;IACzB,uBAAuB;IACvB,QAAQ,CAAC,YAAY,CAAC,EAAE,WAAW,CAAA;IACnC,wBAAwB;IACxB,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAA;IAC7B,yEAAyE;IACzE,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAA;IACzB,mCAAmC;IACnC,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAA;IAC5B,qCAAqC;IACrC,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAA;IAC9B,sCAAsC;IACtC,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,CAAA;IAC/B,oCAAoC;IACpC,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAA;CAC9B,CAAA;AAsBD,+DAA+D;AAC/D,eAAO,MAAM,UAAU,GAAI,OAAO,YAAY,KAAG;IAAE,KAAK,EAAE,aAAa,CAAA;CAmCtE,CAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type CSSProperties } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Self-alignment within a flex or grid container.
|
|
4
|
+
* Use on items inside `<Stack>` or `<Inline>` to override the container's alignment.
|
|
5
|
+
*/
|
|
6
|
+
export type AlignSelfToken = "auto" | "start" | "center" | "end" | "stretch" | "baseline";
|
|
7
|
+
/**
|
|
8
|
+
* Shared flex-item props. Compose into components that are intended to live
|
|
9
|
+
* inside a flex container (`<Stack>`, `<Inline>`).
|
|
10
|
+
*/
|
|
11
|
+
export type FlexItemProps = {
|
|
12
|
+
/**
|
|
13
|
+
* Flex shorthand. `true` → `"1 1 0%"` (grows and shrinks equally).
|
|
14
|
+
* A number sets the grow factor directly: `2` → `"2 1 0%"`.
|
|
15
|
+
*/
|
|
16
|
+
readonly flex?: boolean | number;
|
|
17
|
+
/** Flex grow factor. */
|
|
18
|
+
readonly flexGrow?: number;
|
|
19
|
+
/** Flex shrink factor. */
|
|
20
|
+
readonly flexShrink?: number;
|
|
21
|
+
/** Flex basis value, e.g. `"auto"`, `"200px"`, `"30%"`. */
|
|
22
|
+
readonly flexBasis?: string;
|
|
23
|
+
/** Self-alignment within the parent flex/grid container. */
|
|
24
|
+
readonly alignSelf?: AlignSelfToken;
|
|
25
|
+
};
|
|
26
|
+
/** Resolves FlexItemProps to a partial CSSProperties object. */
|
|
27
|
+
export declare const useFlexItem: (props: FlexItemProps) => {
|
|
28
|
+
style: CSSProperties;
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=flex-item.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flex-item.d.ts","sourceRoot":"","sources":["../../src/mixins/flex-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAW,MAAM,OAAO,CAAA;AAEnD;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,GAAG,UAAU,CAAA;AAEzF;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B;;;OAGG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IAChC,wBAAwB;IACxB,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;IAC1B,0BAA0B;IAC1B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAA;IAC5B,2DAA2D;IAC3D,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,4DAA4D;IAC5D,QAAQ,CAAC,SAAS,CAAC,EAAE,cAAc,CAAA;CACpC,CAAA;AAWD,gEAAgE;AAChE,eAAO,MAAM,WAAW,GAAI,OAAO,aAAa,KAAG;IAAE,KAAK,EAAE,aAAa,CAAA;CAexE,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type CSSProperties } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Grid-item props. Compose into components that are intended to live
|
|
4
|
+
* inside a `<Grid>` with named areas.
|
|
5
|
+
*/
|
|
6
|
+
export type GridItemProps = {
|
|
7
|
+
/** Maps this element to a named grid area defined on the parent `<Grid areas>`. */
|
|
8
|
+
readonly gridArea?: string;
|
|
9
|
+
};
|
|
10
|
+
/** Resolves GridItemProps to a partial CSSProperties object. */
|
|
11
|
+
export declare const useGridItem: (props: GridItemProps) => {
|
|
12
|
+
style: CSSProperties;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=grid-item.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grid-item.d.ts","sourceRoot":"","sources":["../../src/mixins/grid-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAW,MAAM,OAAO,CAAA;AAEnD;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,mFAAmF;IACnF,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAC3B,CAAA;AAED,gEAAgE;AAChE,eAAO,MAAM,WAAW,GAAI,OAAO,aAAa,KAAG;IAAE,KAAK,EAAE,aAAa,CAAA;CAMxE,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from "./aria";
|
|
2
|
+
export * from "./borders";
|
|
3
|
+
export * from "./flex-item";
|
|
4
|
+
export * from "./grid-item";
|
|
5
|
+
export * from "./placement";
|
|
6
|
+
export * from "./sizing";
|
|
7
|
+
export * from "./spacing";
|
|
8
|
+
export * from "./surface";
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mixins/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,WAAW,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type CSSProperties } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Shared grid placement props. Compose into components that are intended to
|
|
4
|
+
* live as items inside a `<Grid>`.
|
|
5
|
+
*/
|
|
6
|
+
export type PlacementProps = {
|
|
7
|
+
/** Named grid area or `grid-area` shorthand (e.g. `"header"` or `"1 / 1 / 2 / 3"`). */
|
|
8
|
+
readonly gridArea?: string;
|
|
9
|
+
/** Grid column placement (e.g. `"span 2"` or `"1 / 3"`). */
|
|
10
|
+
readonly gridColumn?: string;
|
|
11
|
+
/** Grid row placement (e.g. `"span 2"` or `"1 / 3"`). */
|
|
12
|
+
readonly gridRow?: string;
|
|
13
|
+
/** Explicit ordering within flex/grid. */
|
|
14
|
+
readonly order?: number;
|
|
15
|
+
};
|
|
16
|
+
/** Resolves PlacementProps to a partial CSSProperties object. */
|
|
17
|
+
export declare const usePlacement: (props: PlacementProps) => {
|
|
18
|
+
style: CSSProperties;
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=placement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"placement.d.ts","sourceRoot":"","sources":["../../src/mixins/placement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAW,MAAM,OAAO,CAAA;AAEnD;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,uFAAuF;IACvF,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;IAC1B,4DAA4D;IAC5D,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAA;IAC5B,yDAAyD;IACzD,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,0CAA0C;IAC1C,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CACxB,CAAA;AAED,iEAAiE;AACjE,eAAO,MAAM,YAAY,GAAI,OAAO,cAAc,KAAG;IAAE,KAAK,EAAE,aAAa,CAAA;CAW1E,CAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type CSSProperties } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Named max-width token. Maps to `--ox0-maxw-*` CSS custom properties.
|
|
4
|
+
* Prefer tokens over raw values so layouts stay on the design grid.
|
|
5
|
+
*/
|
|
6
|
+
export type MaxWidthToken = "xs" | "sm" | "md" | "lg" | "xl" | "content" | "prose" | "full";
|
|
7
|
+
/** Raw width/height value — a number (px) or a CSS string. */
|
|
8
|
+
export type SizingValue = number | string;
|
|
9
|
+
/** Shared sizing props for constraining element dimensions. */
|
|
10
|
+
export type SizingProps = {
|
|
11
|
+
/** Element width. Number is treated as px. */
|
|
12
|
+
readonly width?: SizingValue;
|
|
13
|
+
/** Minimum width. Number is treated as px. */
|
|
14
|
+
readonly minWidth?: SizingValue;
|
|
15
|
+
/** Maximum width — named token or raw value. */
|
|
16
|
+
readonly maxWidth?: MaxWidthToken | SizingValue;
|
|
17
|
+
/** Element height. Number is treated as px. */
|
|
18
|
+
readonly height?: SizingValue;
|
|
19
|
+
/** Minimum height. Number is treated as px. */
|
|
20
|
+
readonly minHeight?: SizingValue;
|
|
21
|
+
/** Maximum height. Number is treated as px. */
|
|
22
|
+
readonly maxHeight?: SizingValue;
|
|
23
|
+
/** Aspect ratio, e.g. `"16 / 9"` or `"1"`. */
|
|
24
|
+
readonly aspectRatio?: string;
|
|
25
|
+
};
|
|
26
|
+
/** Resolves SizingProps to a partial CSSProperties object. */
|
|
27
|
+
export declare const useSizing: (props: SizingProps) => {
|
|
28
|
+
style: CSSProperties;
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=sizing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sizing.d.ts","sourceRoot":"","sources":["../../src/mixins/sizing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAW,MAAM,OAAO,CAAA;AAEnD;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAA;AAE3F,8DAA8D;AAC9D,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,MAAM,CAAA;AAEzC,+DAA+D;AAC/D,MAAM,MAAM,WAAW,GAAG;IACxB,8CAA8C;IAC9C,QAAQ,CAAC,KAAK,CAAC,EAAE,WAAW,CAAA;IAC5B,8CAA8C;IAC9C,QAAQ,CAAC,QAAQ,CAAC,EAAE,WAAW,CAAA;IAC/B,gDAAgD;IAChD,QAAQ,CAAC,QAAQ,CAAC,EAAE,aAAa,GAAG,WAAW,CAAA;IAC/C,+CAA+C;IAC/C,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAA;IAC7B,+CAA+C;IAC/C,QAAQ,CAAC,SAAS,CAAC,EAAE,WAAW,CAAA;IAChC,+CAA+C;IAC/C,QAAQ,CAAC,SAAS,CAAC,EAAE,WAAW,CAAA;IAChC,8CAA8C;IAC9C,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAC9B,CAAA;AA4BD,8DAA8D;AAC9D,eAAO,MAAM,SAAS,GAAI,OAAO,WAAW,KAAG;IAAE,KAAK,EAAE,aAAa,CAAA;CA6BpE,CAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type CSSProperties } from "react";
|
|
2
|
+
/** Design token for spacing scale. Maps to `--ox0-space-*` CSS custom properties. */
|
|
3
|
+
export type SpacingToken = "none" | "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl";
|
|
4
|
+
/** Shared spacing props. Accepted by Stack, Inline, Grid, and Split. */
|
|
5
|
+
export type SpacingProps = {
|
|
6
|
+
/** Gap between direct children. */
|
|
7
|
+
readonly gap?: SpacingToken;
|
|
8
|
+
/** Padding on all sides. */
|
|
9
|
+
readonly padding?: SpacingToken;
|
|
10
|
+
/** Horizontal padding (left + right). Overrides `padding`. */
|
|
11
|
+
readonly paddingX?: SpacingToken;
|
|
12
|
+
/** Vertical padding (top + bottom). Overrides `padding`. */
|
|
13
|
+
readonly paddingY?: SpacingToken;
|
|
14
|
+
/** Top padding. Overrides `paddingY` and `padding`. */
|
|
15
|
+
readonly paddingTop?: SpacingToken;
|
|
16
|
+
/** Right padding. Overrides `paddingX` and `padding`. */
|
|
17
|
+
readonly paddingRight?: SpacingToken;
|
|
18
|
+
/** Bottom padding. Overrides `paddingY` and `padding`. */
|
|
19
|
+
readonly paddingBottom?: SpacingToken;
|
|
20
|
+
/** Left padding. Overrides `paddingX` and `padding`. */
|
|
21
|
+
readonly paddingLeft?: SpacingToken;
|
|
22
|
+
};
|
|
23
|
+
/** Resolves SpacingProps to a partial CSSProperties object. */
|
|
24
|
+
export declare const useSpacing: (props: SpacingProps) => {
|
|
25
|
+
style: CSSProperties;
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=spacing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spacing.d.ts","sourceRoot":"","sources":["../../src/mixins/spacing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAW,MAAM,OAAO,CAAA;AAEnD,qFAAqF;AACrF,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAA;AAEpG,wEAAwE;AACxE,MAAM,MAAM,YAAY,GAAG;IACzB,mCAAmC;IACnC,QAAQ,CAAC,GAAG,CAAC,EAAE,YAAY,CAAA;IAC3B,4BAA4B;IAC5B,QAAQ,CAAC,OAAO,CAAC,EAAE,YAAY,CAAA;IAC/B,8DAA8D;IAC9D,QAAQ,CAAC,QAAQ,CAAC,EAAE,YAAY,CAAA;IAChC,4DAA4D;IAC5D,QAAQ,CAAC,QAAQ,CAAC,EAAE,YAAY,CAAA;IAChC,uDAAuD;IACvD,QAAQ,CAAC,UAAU,CAAC,EAAE,YAAY,CAAA;IAClC,yDAAyD;IACzD,QAAQ,CAAC,YAAY,CAAC,EAAE,YAAY,CAAA;IACpC,0DAA0D;IAC1D,QAAQ,CAAC,aAAa,CAAC,EAAE,YAAY,CAAA;IACrC,wDAAwD;IACxD,QAAQ,CAAC,WAAW,CAAC,EAAE,YAAY,CAAA;CACpC,CAAA;AAwBD,+DAA+D;AAC/D,eAAO,MAAM,UAAU,GAAI,OAAO,YAAY,KAAG;IAAE,KAAK,EAAE,aAAa,CAAA;CA0BtE,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type CSSProperties } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Background surface token. Maps to semantic `--ox0-color-*` CSS custom properties
|
|
4
|
+
* that adapt to theme and mode (light/dark).
|
|
5
|
+
*/
|
|
6
|
+
export type SurfaceToken = "transparent" | "canvas" | "surface" | "surface-raised" | "surface-sunken" | "accent-subtle" | "success-subtle" | "warning-subtle" | "danger-subtle" | "info-subtle";
|
|
7
|
+
/** Shared surface (background) props. */
|
|
8
|
+
export type SurfaceStyleProps = {
|
|
9
|
+
/** Background surface token. Adapts to current theme and light/dark mode. */
|
|
10
|
+
readonly surface?: SurfaceToken;
|
|
11
|
+
};
|
|
12
|
+
/** Resolves SurfaceStyleProps to a partial CSSProperties object. */
|
|
13
|
+
export declare const useSurface: (props: SurfaceStyleProps) => {
|
|
14
|
+
style: CSSProperties;
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=surface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"surface.d.ts","sourceRoot":"","sources":["../../src/mixins/surface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAW,MAAM,OAAO,CAAA;AAEnD;;;GAGG;AACH,MAAM,MAAM,YAAY,GACpB,aAAa,GACb,QAAQ,GACR,SAAS,GACT,gBAAgB,GAChB,gBAAgB,GAChB,eAAe,GACf,gBAAgB,GAChB,gBAAgB,GAChB,eAAe,GACf,aAAa,CAAA;AAEjB,yCAAyC;AACzC,MAAM,MAAM,iBAAiB,GAAG;IAC9B,6EAA6E;IAC7E,QAAQ,CAAC,OAAO,CAAC,EAAE,YAAY,CAAA;CAChC,CAAA;AAeD,oEAAoE;AACpE,eAAO,MAAM,UAAU,GAAI,OAAO,iBAAiB,KAAG;IAAE,KAAK,EAAE,aAAa,CAAA;CAM3E,CAAA"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { ColorScheme, DensityName, ThemeName, ThemeTokens } from "@ox0/tokens";
|
|
2
|
+
import type { PropsWithChildren } from "react";
|
|
3
|
+
import { type TextStyles } from "../components/text";
|
|
4
|
+
import "@ox0/tokens/styles.css";
|
|
5
|
+
export interface Ox0ProviderProps extends PropsWithChildren {
|
|
6
|
+
readonly locale?: string;
|
|
7
|
+
readonly messages?: Record<string, string>;
|
|
8
|
+
/**
|
|
9
|
+
* Neutral color theme. Sets `data-theme` on the wrapper so the correct
|
|
10
|
+
* theme CSS file applies. Leave unset to inherit from a parent or from
|
|
11
|
+
* `data-theme` on `<html>` (set via `getThemeScript()` for persistence).
|
|
12
|
+
*/
|
|
13
|
+
readonly neutralTheme?: ThemeName;
|
|
14
|
+
/**
|
|
15
|
+
* Controls which color scheme is applied.
|
|
16
|
+
* - `"system"` (default): follows `prefers-color-scheme`
|
|
17
|
+
* - `"light"`: always light
|
|
18
|
+
* - `"dark"`: always dark
|
|
19
|
+
*/
|
|
20
|
+
readonly colorScheme?: ColorScheme;
|
|
21
|
+
/**
|
|
22
|
+
* Component-level token overrides. Applied as inline CSS vars — use for
|
|
23
|
+
* accent color, per-scope theming, etc. For app-level theme persistence
|
|
24
|
+
* use `getThemeScript()` to avoid flash.
|
|
25
|
+
*/
|
|
26
|
+
readonly tokenOverrides?: ThemeTokens;
|
|
27
|
+
/**
|
|
28
|
+
* Typography style overrides per Text variant. Applied as inline CSS vars —
|
|
29
|
+
* use to restyle heading sizes, drop label uppercase, etc. for a specific
|
|
30
|
+
* product. Cascades to all Text usage within this provider.
|
|
31
|
+
*/
|
|
32
|
+
readonly textStyles?: TextStyles;
|
|
33
|
+
/**
|
|
34
|
+
* Spacing density. Overrides `--ox0-space-*` tokens via `data-density` on
|
|
35
|
+
* the wrapper — cascades to all children that reference space tokens.
|
|
36
|
+
* "comfortable" (default) leaves the base scale unchanged.
|
|
37
|
+
*/
|
|
38
|
+
readonly density?: DensityName;
|
|
39
|
+
/**
|
|
40
|
+
* Soft-navigation handler. When provided, internal `<Link>` clicks call this
|
|
41
|
+
* instead of triggering a full page load. Pass your router's navigate function
|
|
42
|
+
* (e.g. `useNavigate()` from wouter/react-router).
|
|
43
|
+
*/
|
|
44
|
+
readonly navigate?: (href: string) => void;
|
|
45
|
+
}
|
|
46
|
+
export declare function Ox0Provider({ children, colorScheme, density, locale, messages, navigate, neutralTheme, textStyles, tokenOverrides, }: Ox0ProviderProps): import("react").JSX.Element;
|
|
47
|
+
//# sourceMappingURL=ox0-provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ox0-provider.d.ts","sourceRoot":"","sources":["../../src/providers/ox0-provider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAEnF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAE9C,OAAO,EAAE,KAAK,UAAU,EAAoB,MAAM,oBAAoB,CAAA;AAKtE,OAAO,wBAAwB,CAAA;AAE/B,MAAM,WAAW,gBAAiB,SAAQ,iBAAiB;IACzD,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC1C;;;;OAIG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,SAAS,CAAA;IACjC;;;;;OAKG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,WAAW,CAAA;IAClC;;;;OAIG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,WAAW,CAAA;IACrC;;;;OAIG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,UAAU,CAAA;IAChC;;;;OAIG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,WAAW,CAAA;IAC9B;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;CAC3C;AAED,wBAAgB,WAAW,CAAC,EAC1B,QAAQ,EACR,WAAW,EACX,OAAO,EACP,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,UAAU,EACV,cAAc,GACf,EAAE,gBAAgB,+BAwBlB"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export interface RouterContextValue {
|
|
2
|
+
navigate: (href: string) => void;
|
|
3
|
+
}
|
|
4
|
+
export declare const RouterContext: import("react").Context<RouterContextValue | null>;
|
|
5
|
+
export declare function useRouter(): RouterContextValue | null;
|
|
6
|
+
//# sourceMappingURL=router-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"router-context.d.ts","sourceRoot":"","sources":["../../src/providers/router-context.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;CACjC;AAED,eAAO,MAAM,aAAa,oDAAiD,CAAA;AAE3E,wBAAgB,SAAS,IAAI,kBAAkB,GAAG,IAAI,CAErD"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ox0/ui",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
7
7
|
"type": "module",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
|
+
"source": "./src/index.ts",
|
|
10
11
|
"import": "./dist/index.js",
|
|
11
12
|
"types": "./dist/index.d.ts"
|
|
12
13
|
}
|
|
@@ -15,13 +16,16 @@
|
|
|
15
16
|
"access": "public"
|
|
16
17
|
},
|
|
17
18
|
"dependencies": {
|
|
18
|
-
"react": "^
|
|
19
|
-
"@ox0/hooks": "0.1.0",
|
|
19
|
+
"@floating-ui/react": "^0.27.19",
|
|
20
20
|
"@ox0/i18n": "0.1.0",
|
|
21
|
-
"@ox0/tokens": "0.
|
|
21
|
+
"@ox0/tokens": "0.2.0",
|
|
22
|
+
"@ox0/hooks": "0.2.0"
|
|
23
|
+
},
|
|
24
|
+
"peerDependencies": {
|
|
25
|
+
"react": "^19.0.0"
|
|
22
26
|
},
|
|
23
27
|
"scripts": {
|
|
24
|
-
"build": "rslib build -c ../../rslib.config.ts",
|
|
28
|
+
"build": "rslib build -c ../../rslib.config.ts && tsc --build --force tsconfig.build.json",
|
|
25
29
|
"typecheck": "tsc -p tsconfig.json",
|
|
26
30
|
"lint": "oxlint .",
|
|
27
31
|
"test": "vitest run"
|