@hive-ui/core 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/alert.d.mts +1 -0
- package/dist/alert.mjs +2 -0
- package/dist/{components/anchor.mjs → anchor.mjs} +0 -1
- package/dist/animation-library.d.mts +1 -0
- package/dist/animation-library.mjs +2 -0
- package/dist/avatar.d.mts +1 -0
- package/dist/avatar.mjs +2 -0
- package/dist/badge.d.mts +1 -0
- package/dist/badge.mjs +2 -0
- package/dist/box.mjs +2 -0
- package/dist/{components/button.mjs → button.mjs} +0 -1
- package/dist/callout.d.mts +1 -0
- package/dist/callout.mjs +2 -0
- package/dist/card.mjs +2 -0
- package/dist/css-library.d.mts +1 -0
- package/dist/css-library.mjs +2 -0
- package/dist/date-picker.d.mts +1 -0
- package/dist/date-picker.mjs +2 -0
- package/dist/disclosure-primitive.d.mts +1 -0
- package/dist/disclosure-primitive.mjs +2 -0
- package/dist/{components/disclosure.mjs → disclosure.mjs} +0 -1
- package/dist/display-heading.d.mts +1 -0
- package/dist/display-heading.mjs +2 -0
- package/dist/form.d.mts +1 -0
- package/dist/form.mjs +2 -0
- package/dist/grid.mjs +2 -0
- package/dist/{components/heading.mjs → heading.mjs} +0 -1
- package/dist/help-text.d.mts +1 -0
- package/dist/help-text.mjs +2 -0
- package/dist/inline-code.d.mts +1 -0
- package/dist/inline-code.mjs +2 -0
- package/dist/inline-control-group.d.mts +1 -0
- package/dist/inline-control-group.mjs +2 -0
- package/dist/input-box.d.mts +1 -0
- package/dist/input-box.mjs +2 -0
- package/dist/input.d.mts +1 -0
- package/dist/input.mjs +2 -0
- package/dist/label.d.mts +1 -0
- package/dist/label.mjs +2 -0
- package/dist/list.d.mts +1 -0
- package/dist/list.mjs +2 -0
- package/dist/media-object.d.mts +1 -0
- package/dist/media-object.mjs +2 -0
- package/dist/modal-primitive.d.mts +1 -0
- package/dist/modal-primitive.mjs +2 -0
- package/dist/modal.d.mts +1 -0
- package/dist/modal.mjs +2 -0
- package/dist/paragraph.d.mts +1 -0
- package/dist/paragraph.mjs +2 -0
- package/dist/screen-reader-only.d.mts +1 -0
- package/dist/screen-reader-only.mjs +2 -0
- package/dist/select.d.mts +1 -0
- package/dist/select.mjs +2 -0
- package/dist/seperator.d.mts +1 -0
- package/dist/seperator.mjs +2 -0
- package/dist/sibling-box.d.mts +1 -0
- package/dist/sibling-box.mjs +2 -0
- package/dist/stack.mjs +2 -0
- package/dist/style-props.d.mts +1 -0
- package/dist/style-props.mjs +2 -0
- package/dist/switch.d.mts +1 -0
- package/dist/switch.mjs +2 -0
- package/dist/table.d.mts +1 -0
- package/dist/table.mjs +2 -0
- package/dist/text.mjs +2 -0
- package/dist/theme.mjs +2 -0
- package/dist/{components/topbar.mjs → topbar.mjs} +0 -1
- package/package.json +79 -28
- package/dist/_virtual/_rolldown/runtime.mjs +0 -27
- package/dist/components/card.mjs +0 -3
- package/dist/components/theme.mjs +0 -3
- package/dist/index.d.mts +0 -13
- package/dist/index.mjs +0 -25
- package/dist/node_modules/csstype/index.d.mts +0 -688
- package/dist/packages/media-object/dist/index.d.mts +0 -62
- package/dist/packages/media-object/dist/index.mjs +0 -41
- package/dist/packages/style-props/dist/index.d.mts +0 -37
- package/dist/primitives/box.mjs +0 -3
- package/dist/primitives/grid.mjs +0 -3
- package/dist/primitives/media-object.d.mts +0 -2
- package/dist/primitives/media-object.mjs +0 -2
- package/dist/primitives/stack.mjs +0 -3
- package/dist/primitives/text.mjs +0 -3
- /package/dist/{components/anchor.d.mts → anchor.d.mts} +0 -0
- /package/dist/{primitives/box.d.mts → box.d.mts} +0 -0
- /package/dist/{components/button.d.mts → button.d.mts} +0 -0
- /package/dist/{components/card.d.mts → card.d.mts} +0 -0
- /package/dist/{components/disclosure.d.mts → disclosure.d.mts} +0 -0
- /package/dist/{primitives/grid.d.mts → grid.d.mts} +0 -0
- /package/dist/{components/heading.d.mts → heading.d.mts} +0 -0
- /package/dist/{primitives/stack.d.mts → stack.d.mts} +0 -0
- /package/dist/{primitives/text.d.mts → text.d.mts} +0 -0
- /package/dist/{components/theme.d.mts → theme.d.mts} +0 -0
- /package/dist/{components/topbar.d.mts → topbar.d.mts} +0 -0
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { Space } from "../../style-props/dist/index.mjs";
|
|
2
|
-
import { BoxProps } from "@hive-ui/box";
|
|
3
|
-
import * as _$react from "react";
|
|
4
|
-
|
|
5
|
-
//#region ../media-object/dist/index.d.mts
|
|
6
|
-
//#region src/MediaObject.d.ts
|
|
7
|
-
type MediaObjectProps = Pick<BoxProps<"div">, "element" | "children" | "marginTop" | "marginBottom" | "marginY"> & {
|
|
8
|
-
/**
|
|
9
|
-
* Aligns the figure and body
|
|
10
|
-
*
|
|
11
|
-
* @type {('center' | 'top')}
|
|
12
|
-
* @memberof MediaObjectProps
|
|
13
|
-
*/
|
|
14
|
-
verticalAlign?: "center" | "top";
|
|
15
|
-
};
|
|
16
|
-
declare const MediaObject: _$react.ForwardRefExoticComponent<Pick<BoxProps<"div">, "children" | "element" | "marginBottom" | "marginTop" | "marginY"> & {
|
|
17
|
-
/**
|
|
18
|
-
* Aligns the figure and body
|
|
19
|
-
*
|
|
20
|
-
* @type {('center' | 'top')}
|
|
21
|
-
* @memberof MediaObjectProps
|
|
22
|
-
*/
|
|
23
|
-
verticalAlign?: "center" | "top";
|
|
24
|
-
} & _$react.RefAttributes<HTMLElement>>; //#endregion
|
|
25
|
-
//#region src/MediaFigure.d.ts
|
|
26
|
-
type MediaFigureProps = Pick<BoxProps<"div">, "element" | "children"> & {
|
|
27
|
-
/**
|
|
28
|
-
* Aligns the figure and body
|
|
29
|
-
*
|
|
30
|
-
* @type {('start' | 'end')}
|
|
31
|
-
* @memberof MediaFigureProps
|
|
32
|
-
*/
|
|
33
|
-
align?: "start" | "end";
|
|
34
|
-
/**
|
|
35
|
-
* Space between the figure and body
|
|
36
|
-
*
|
|
37
|
-
* @type {Space}
|
|
38
|
-
* @memberof MediaFigureProps
|
|
39
|
-
*/
|
|
40
|
-
spacing?: Space;
|
|
41
|
-
};
|
|
42
|
-
declare const MediaFigure: _$react.ForwardRefExoticComponent<Pick<BoxProps<"div">, "children" | "element"> & {
|
|
43
|
-
/**
|
|
44
|
-
* Aligns the figure and body
|
|
45
|
-
*
|
|
46
|
-
* @type {('start' | 'end')}
|
|
47
|
-
* @memberof MediaFigureProps
|
|
48
|
-
*/
|
|
49
|
-
align?: "start" | "end";
|
|
50
|
-
/**
|
|
51
|
-
* Space between the figure and body
|
|
52
|
-
*
|
|
53
|
-
* @type {Space}
|
|
54
|
-
* @memberof MediaFigureProps
|
|
55
|
-
*/
|
|
56
|
-
spacing?: Space;
|
|
57
|
-
} & _$react.RefAttributes<HTMLElement>>; //#endregion
|
|
58
|
-
//#region src/MediaBody.d.ts
|
|
59
|
-
type MediaBodyProps = Pick<BoxProps<"div">, "element" | "children">;
|
|
60
|
-
declare const MediaBody: _$react.ForwardRefExoticComponent<MediaBodyProps & _$react.RefAttributes<HTMLElement>>; //#endregion
|
|
61
|
-
//#endregion
|
|
62
|
-
export { MediaBody, type MediaBodyProps, MediaFigure, type MediaFigureProps, MediaObject, type MediaObjectProps };
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { Box } from "@hive-ui/box";
|
|
2
|
-
import { forwardRef } from "react";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
//#region ../media-object/dist/index.mjs
|
|
5
|
-
const MediaObject = forwardRef(({ element = "MEDIA_OBJECT", children, verticalAlign = "top", ...props }, ref) => {
|
|
6
|
-
return /* @__PURE__ */ jsx(Box, {
|
|
7
|
-
...props,
|
|
8
|
-
as: "div",
|
|
9
|
-
alignItems: verticalAlign === "top" ? "flex-start" : "center",
|
|
10
|
-
display: "flex",
|
|
11
|
-
element,
|
|
12
|
-
ref,
|
|
13
|
-
children
|
|
14
|
-
});
|
|
15
|
-
});
|
|
16
|
-
const MediaFigure = forwardRef(({ element = "MEDIA_FIGURE", children, align = "start", spacing = "space0", ...props }, ref) => {
|
|
17
|
-
return /* @__PURE__ */ jsx(Box, {
|
|
18
|
-
...props,
|
|
19
|
-
as: "div",
|
|
20
|
-
display: "flex",
|
|
21
|
-
flexShrink: 0,
|
|
22
|
-
marginLeft: align === "end" ? spacing : void 0,
|
|
23
|
-
marginRight: align === "start" ? spacing : void 0,
|
|
24
|
-
element,
|
|
25
|
-
ref,
|
|
26
|
-
children
|
|
27
|
-
});
|
|
28
|
-
});
|
|
29
|
-
const MediaBody = forwardRef(({ element = "MEDIA_BODY", children, ...props }, ref) => {
|
|
30
|
-
return /* @__PURE__ */ jsx(Box, {
|
|
31
|
-
...props,
|
|
32
|
-
as: "div",
|
|
33
|
-
flex: 1,
|
|
34
|
-
minWidth: "0px",
|
|
35
|
-
element,
|
|
36
|
-
ref,
|
|
37
|
-
children
|
|
38
|
-
});
|
|
39
|
-
});
|
|
40
|
-
//#endregion
|
|
41
|
-
export { MediaBody, MediaFigure, MediaObject };
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { Property } from "../../../node_modules/csstype/index.mjs";
|
|
2
|
-
|
|
3
|
-
//#region ../style-props/dist/index.d.mts
|
|
4
|
-
//#region src/shared.d.ts
|
|
5
|
-
type TLengthStyledSystem = string | number;
|
|
6
|
-
type Theme<TLength = TLengthStyledSystem> = {
|
|
7
|
-
breakpoints?: ObjectOrArray<string>;
|
|
8
|
-
mediaQueries?: {
|
|
9
|
-
[size: string]: string;
|
|
10
|
-
};
|
|
11
|
-
spaces?: ObjectOrArray<Property.Margin<number | string>>;
|
|
12
|
-
fontSizes?: ObjectOrArray<Property.FontSize<number>>;
|
|
13
|
-
colors?: ObjectOrArray<Property.Color>;
|
|
14
|
-
fonts?: ObjectOrArray<Property.FontFamily>;
|
|
15
|
-
fontWeights?: ObjectOrArray<Property.FontWeight>;
|
|
16
|
-
lineHeights?: ObjectOrArray<Property.LineHeight<TLength>>;
|
|
17
|
-
letterSpacings?: ObjectOrArray<Property.LetterSpacing<TLength>>;
|
|
18
|
-
sizes?: ObjectOrArray<Property.Height<TLength> | Property.Width<TLength>>;
|
|
19
|
-
borders?: ObjectOrArray<Property.Border<TLength>>;
|
|
20
|
-
borderStyles?: ObjectOrArray<Property.BorderStyle>;
|
|
21
|
-
borderWidths?: ObjectOrArray<Property.BorderWidth<TLength>>;
|
|
22
|
-
radii?: ObjectOrArray<Property.BorderRadius<TLength>>;
|
|
23
|
-
shadows?: ObjectOrArray<Property.BoxShadow>;
|
|
24
|
-
zIndices?: ObjectOrArray<Property.ZIndex>;
|
|
25
|
-
};
|
|
26
|
-
type ObjectOrArray<T, K extends keyof any = keyof any> = T[] | Record<K, T | Record<K, T> | T[]>;
|
|
27
|
-
type ThemeValue<K extends keyof ThemeType, ThemeType, TVal = any> = ThemeType[K] extends TVal[] ? number : ThemeType[K] extends Record<infer E, TVal> ? E : ThemeType[K] extends ObjectOrArray<infer F> ? F : never;
|
|
28
|
-
type RequiredTheme = Required<Theme>;
|
|
29
|
-
type ResponsiveValue<T, ThemeType extends Theme = RequiredTheme> = T | null | Array<T | null> | { [key in (ThemeValue<"breakpoints", ThemeType> & string) | number]?: T }; //#endregion
|
|
30
|
-
//#region src/background.d.ts
|
|
31
|
-
//#endregion
|
|
32
|
-
//#region src/space.d.ts
|
|
33
|
-
declare const SPACE_TOKENS: readonly ["space0", "space10", "space20", "space30", "space40", "space50", "space60", "space70", "space80", "space90", "space100", "space110", "space120", "space130", "space140", "space150", "space160", "space170", "space180", "space190", "space200", "space210", "space220", "space230", "space240", "space250", "space260", "space270", "space280", "space290", "space300", "space310", "spaceNegative10", "spaceNegative20", "spaceNegative30", "spaceNegative40", "spaceNegative50", "spaceNegative60", "spaceNegative70", "spaceNegative80", "spaceNegative90", "spaceNegative100", "spaceNegative110", "spaceNegative120", "spaceNegative130", "spaceNegative140", "spaceNegative150", "spaceNegative160", "spaceNegative170", "spaceNegative180", "spaceNegative190", "spaceNegative200"];
|
|
34
|
-
type SpaceOptions = (typeof SPACE_TOKENS)[number];
|
|
35
|
-
type Space = ResponsiveValue<SpaceOptions>;
|
|
36
|
-
//#endregion
|
|
37
|
-
export { Space };
|
package/dist/primitives/box.mjs
DELETED
package/dist/primitives/grid.mjs
DELETED
package/dist/primitives/text.mjs
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|