@askrjs/themes 0.0.12 → 0.0.14
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 +3 -0
- package/THEMING.md +9 -0
- package/dist/components/_internal/block-layout.d.ts +1 -2
- package/dist/components/_internal/block-layout.js +0 -2
- package/dist/components/_internal/classes.js +0 -2
- package/dist/components/_internal/jsx.js +0 -2
- package/dist/components/_internal/merge-props.js +0 -2
- package/dist/components/_internal/pathname.js +0 -2
- package/dist/components/_internal/style.js +0 -2
- package/dist/components/alert/alert.d.ts +1 -2
- package/dist/components/alert/alert.js +0 -2
- package/dist/components/alert/alert.types.d.ts +1 -2
- package/dist/components/aside/aside.d.ts +1 -2
- package/dist/components/aside/aside.js +0 -2
- package/dist/components/aside/aside.types.d.ts +1 -2
- package/dist/components/aspect-ratio/aspect-ratio.d.ts +1 -2
- package/dist/components/aspect-ratio/aspect-ratio.js +0 -2
- package/dist/components/aspect-ratio/aspect-ratio.types.d.ts +1 -2
- package/dist/components/badge/badge.d.ts +1 -2
- package/dist/components/badge/badge.js +0 -2
- package/dist/components/badge/badge.types.d.ts +1 -2
- package/dist/components/block/block.d.ts +1 -2
- package/dist/components/block/block.js +0 -2
- package/dist/components/block/block.types.d.ts +1 -2
- package/dist/components/brand/brand.d.ts +1 -2
- package/dist/components/brand/brand.js +0 -2
- package/dist/components/brand/brand.types.d.ts +1 -2
- package/dist/components/button-group/button-group.d.ts +1 -2
- package/dist/components/button-group/button-group.js +0 -2
- package/dist/components/button-group/button-group.types.d.ts +1 -2
- package/dist/components/card/card.d.ts +1 -2
- package/dist/components/card/card.js +2 -4
- package/dist/components/card/card.js.map +1 -1
- package/dist/components/card/card.types.d.ts +4 -2
- package/dist/components/card/index.d.ts +2 -2
- package/dist/components/catalog.d.ts +1 -2
- package/dist/components/catalog.js +0 -2
- package/dist/components/close/close.d.ts +1 -2
- package/dist/components/close/close.js +0 -2
- package/dist/components/close/close.types.d.ts +1 -2
- package/dist/components/container/container.d.ts +1 -2
- package/dist/components/container/container.js +0 -2
- package/dist/components/container/container.types.d.ts +1 -2
- package/dist/components/empty-state/empty-state.d.ts +1 -2
- package/dist/components/empty-state/empty-state.js +0 -2
- package/dist/components/empty-state/empty-state.types.d.ts +1 -2
- package/dist/components/field/field.d.ts +1 -2
- package/dist/components/field/field.js +0 -2
- package/dist/components/field/field.types.d.ts +1 -2
- package/dist/components/footer/footer.d.ts +1 -2
- package/dist/components/footer/footer.js +0 -2
- package/dist/components/footer/footer.types.d.ts +1 -2
- package/dist/components/grid/grid.d.ts +1 -2
- package/dist/components/grid/grid.js +0 -2
- package/dist/components/grid/grid.types.d.ts +1 -2
- package/dist/components/header/header.d.ts +1 -2
- package/dist/components/header/header.js +0 -2
- package/dist/components/header/header.types.d.ts +1 -2
- package/dist/components/input-group/input-group.d.ts +1 -2
- package/dist/components/input-group/input-group.js +0 -2
- package/dist/components/input-group/input-group.types.d.ts +1 -2
- package/dist/components/main/main.d.ts +1 -2
- package/dist/components/main/main.js +0 -2
- package/dist/components/main/main.types.d.ts +1 -2
- package/dist/components/nav/nav.d.ts +1 -2
- package/dist/components/nav/nav.js +0 -2
- package/dist/components/nav/nav.types.d.ts +1 -2
- package/dist/components/navbar/navbar.d.ts +1 -2
- package/dist/components/navbar/navbar.js +0 -2
- package/dist/components/navbar/navbar.types.d.ts +1 -2
- package/dist/components/overlays/dropdown-content.d.ts +1 -2
- package/dist/components/overlays/dropdown-content.js +0 -2
- package/dist/components/page/page.d.ts +1 -2
- package/dist/components/page/page.js +0 -2
- package/dist/components/page/page.types.d.ts +1 -2
- package/dist/components/page-header/page-header.d.ts +1 -2
- package/dist/components/page-header/page-header.js +0 -2
- package/dist/components/page-header/page-header.types.d.ts +1 -2
- package/dist/components/section/section.d.ts +1 -2
- package/dist/components/section/section.js +0 -2
- package/dist/components/section/section.types.d.ts +1 -2
- package/dist/components/separator/separator.d.ts +1 -2
- package/dist/components/separator/separator.js +0 -2
- package/dist/components/separator/separator.types.d.ts +1 -2
- package/dist/components/sidebar/sidebar.d.ts +1 -2
- package/dist/components/sidebar/sidebar.js +0 -2
- package/dist/components/sidebar/sidebar.types.d.ts +1 -2
- package/dist/components/skeleton/skeleton.d.ts +1 -2
- package/dist/components/skeleton/skeleton.js +0 -2
- package/dist/components/skeleton/skeleton.types.d.ts +1 -2
- package/dist/components/spinner/spinner.d.ts +1 -2
- package/dist/components/spinner/spinner.js +0 -2
- package/dist/components/spinner/spinner.types.d.ts +1 -2
- package/dist/components/stat/stat.d.ts +1 -2
- package/dist/components/stat/stat.js +0 -2
- package/dist/components/stat/stat.types.d.ts +1 -2
- package/dist/components/text/text.d.ts +1 -2
- package/dist/components/text/text.js +0 -2
- package/dist/components/text/text.types.d.ts +1 -2
- package/dist/components/theme/theme.d.ts +1 -2
- package/dist/components/theme/theme.js +0 -2
- package/dist/components/toolbar/toolbar.d.ts +1 -2
- package/dist/components/toolbar/toolbar.js +0 -2
- package/dist/components/toolbar/toolbar.types.d.ts +1 -2
- package/dist/components.d.ts +2 -2
- package/dist/surfaces.d.ts +2 -2
- package/package.json +24 -8
- package/src/components/card/card.tsx +2 -2
- package/src/components/card/card.types.ts +3 -0
- package/src/components/card/index.ts +1 -0
- package/src/components/badge/badge.a11y.ts +0 -15
- package/src/components/block/block.a11y.ts +0 -11
- package/src/components/container/container.a11y.ts +0 -11
- package/src/components/header/header.a11y.ts +0 -11
- package/src/components/section/section.a11y.ts +0 -11
- package/src/components/separator/separator.a11y.ts +0 -15
- package/src/components/skeleton/skeleton.a11y.ts +0 -14
package/README.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# @askrjs/themes
|
|
2
2
|
|
|
3
|
+
[](https://github.com/askrjs/askr-themes/actions/workflows/ci.yml)
|
|
4
|
+
[](https://www.npmjs.com/package/@askrjs/themes)
|
|
5
|
+
|
|
3
6
|
CSS tokens and a shadcn-style styled component catalog for Askr apps.
|
|
4
7
|
|
|
5
8
|
`@askrjs/themes` is the visual companion to `@askrjs/ui` and
|
package/THEMING.md
CHANGED
|
@@ -37,6 +37,15 @@ Style override:
|
|
|
37
37
|
}
|
|
38
38
|
```
|
|
39
39
|
|
|
40
|
+
Card titles default to `h3`. Choose `titleAs` from the surrounding document
|
|
41
|
+
hierarchy; use `h1` when the card title is the page title, or the next logical
|
|
42
|
+
level beneath an existing heading:
|
|
43
|
+
|
|
44
|
+
```tsx
|
|
45
|
+
<CardTitle titleAs="h1">Sign in</CardTitle>
|
|
46
|
+
<CardTitle titleAs="h2">Live sessions</CardTitle>
|
|
47
|
+
```
|
|
48
|
+
|
|
40
49
|
Icon override:
|
|
41
50
|
|
|
42
51
|
```css
|
|
@@ -45,5 +45,4 @@ type BlockLayoutProps = {
|
|
|
45
45
|
hide?: ResponsiveValue<boolean>;
|
|
46
46
|
};
|
|
47
47
|
//#endregion
|
|
48
|
-
export { BlockAlign, BlockBackground, BlockDirection, BlockJustify, BlockLayoutProps, BlockMargin, BlockRadius, BlockRowFrom, BlockShadow, BlockSize, BlockSpace, BlockZIndex, LayoutBreakpoint, ResponsiveValue };
|
|
49
|
-
//# sourceMappingURL=block-layout.d.ts.map
|
|
48
|
+
export { BlockAlign, BlockBackground, BlockDirection, BlockJustify, BlockLayoutProps, BlockMargin, BlockRadius, BlockRowFrom, BlockShadow, BlockSize, BlockSpace, BlockZIndex, LayoutBreakpoint, ResponsiveValue };
|
|
@@ -3,5 +3,4 @@ import { AspectRatioAsChildProps, AspectRatioProps } from "./aspect-ratio.types.
|
|
|
3
3
|
declare function AspectRatio(props: AspectRatioProps): JSX.Element;
|
|
4
4
|
declare function AspectRatio(props: AspectRatioAsChildProps): JSX.Element;
|
|
5
5
|
//#endregion
|
|
6
|
-
export { AspectRatio };
|
|
7
|
-
//# sourceMappingURL=aspect-ratio.d.ts.map
|
|
6
|
+
export { AspectRatio };
|
|
@@ -16,5 +16,4 @@ type AspectRatioAsChildProps = AspectRatioOwnProps & {
|
|
|
16
16
|
ref?: Ref<unknown>;
|
|
17
17
|
};
|
|
18
18
|
//#endregion
|
|
19
|
-
export { AspectRatioAsChildProps, AspectRatioOwnProps, AspectRatioProps };
|
|
20
|
-
//# sourceMappingURL=aspect-ratio.types.d.ts.map
|
|
19
|
+
export { AspectRatioAsChildProps, AspectRatioOwnProps, AspectRatioProps };
|
|
@@ -3,5 +3,4 @@ import { BadgeAsChildProps, BadgeProps } from "./badge.types.js";
|
|
|
3
3
|
declare function Badge(props: BadgeProps): JSX.Element;
|
|
4
4
|
declare function Badge(props: BadgeAsChildProps): JSX.Element;
|
|
5
5
|
//#endregion
|
|
6
|
-
export { Badge };
|
|
7
|
-
//# sourceMappingURL=badge.d.ts.map
|
|
6
|
+
export { Badge };
|
|
@@ -16,5 +16,4 @@ type BadgeAsChildProps = BadgeOwnProps & {
|
|
|
16
16
|
ref?: Ref<unknown>;
|
|
17
17
|
};
|
|
18
18
|
//#endregion
|
|
19
|
-
export { BadgeAsChildProps, BadgeOwnProps, BadgeProps, BadgeVariant };
|
|
20
|
-
//# sourceMappingURL=badge.types.d.ts.map
|
|
19
|
+
export { BadgeAsChildProps, BadgeOwnProps, BadgeProps, BadgeVariant };
|
|
@@ -3,5 +3,4 @@ import { BlockAsChildProps, BlockNativeProps } from "./block.types.js";
|
|
|
3
3
|
declare function Block(props: BlockNativeProps): JSX.Element;
|
|
4
4
|
declare function Block(props: BlockAsChildProps): JSX.Element;
|
|
5
5
|
//#endregion
|
|
6
|
-
export { Block };
|
|
7
|
-
//# sourceMappingURL=block.d.ts.map
|
|
6
|
+
export { Block };
|
|
@@ -23,5 +23,4 @@ type BlockDivProps = BlockElementProps<"div">;
|
|
|
23
23
|
type BlockSpanProps = BlockElementProps<"span">;
|
|
24
24
|
type BlockProps = BlockNativeProps | BlockAsChildProps;
|
|
25
25
|
//#endregion
|
|
26
|
-
export { type BlockAlign, BlockAsChildProps, type BlockBackground, type BlockDirection, BlockDivProps, BlockElement, BlockElementProps, type BlockJustify, type BlockMargin, BlockNativeProps, BlockOwnProps, BlockProps, type BlockRadius, type ResponsiveValue as BlockResponsiveValue, type BlockRowFrom, type BlockShadow, type BlockSize, type BlockSpace, BlockSpanProps, type BlockZIndex };
|
|
27
|
-
//# sourceMappingURL=block.types.d.ts.map
|
|
26
|
+
export { type BlockAlign, BlockAsChildProps, type BlockBackground, type BlockDirection, BlockDivProps, BlockElement, BlockElementProps, type BlockJustify, type BlockMargin, BlockNativeProps, BlockOwnProps, BlockProps, type BlockRadius, type ResponsiveValue as BlockResponsiveValue, type BlockRowFrom, type BlockShadow, type BlockSize, type BlockSpace, BlockSpanProps, type BlockZIndex };
|
|
@@ -4,5 +4,4 @@ declare function Brand<TElement extends "div" | "a" | "span" = "div">(props: Bra
|
|
|
4
4
|
declare function BrandMark(props: BrandMarkProps): JSX.Element;
|
|
5
5
|
declare function BrandLabel(props: BrandLabelProps): JSX.Element;
|
|
6
6
|
//#endregion
|
|
7
|
-
export { Brand, BrandLabel, BrandMark };
|
|
8
|
-
//# sourceMappingURL=brand.d.ts.map
|
|
7
|
+
export { Brand, BrandLabel, BrandMark };
|
|
@@ -26,5 +26,4 @@ type BrandLabelProps = SpanProps & {
|
|
|
26
26
|
ref?: Ref<HTMLSpanElement>;
|
|
27
27
|
};
|
|
28
28
|
//#endregion
|
|
29
|
-
export { BrandAsChildProps, BrandElement, BrandLabelProps, BrandMarkProps, BrandNativeProps, BrandProps };
|
|
30
|
-
//# sourceMappingURL=brand.types.d.ts.map
|
|
29
|
+
export { BrandAsChildProps, BrandElement, BrandLabelProps, BrandMarkProps, BrandNativeProps, BrandProps };
|
|
@@ -2,5 +2,4 @@ import { ButtonGroupProps } from "./button-group.types.js";
|
|
|
2
2
|
//#region src/components/button-group/button-group.d.ts
|
|
3
3
|
declare function ButtonGroup(props: ButtonGroupProps): JSX.Element;
|
|
4
4
|
//#endregion
|
|
5
|
-
export { ButtonGroup };
|
|
6
|
-
//# sourceMappingURL=button-group.d.ts.map
|
|
5
|
+
export { ButtonGroup };
|
|
@@ -8,5 +8,4 @@ declare function CardContent(props: CardContentProps): JSX.Element;
|
|
|
8
8
|
declare function CardFooter(props: CardFooterProps): JSX.Element;
|
|
9
9
|
declare function CardAction(props: CardActionProps): JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
|
-
export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
|
|
12
|
-
//# sourceMappingURL=card.d.ts.map
|
|
11
|
+
export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
|
|
@@ -30,8 +30,8 @@ function CardHeader(props) {
|
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
32
|
function CardTitle(props) {
|
|
33
|
-
const { children, class: className, ref, ...rest } = props;
|
|
34
|
-
return /* @__PURE__ */ jsx(
|
|
33
|
+
const { children, class: className, ref, titleAs: TitleTag = "h3", ...rest } = props;
|
|
34
|
+
return /* @__PURE__ */ jsx(TitleTag, {
|
|
35
35
|
...mergeProps(rest, {
|
|
36
36
|
ref,
|
|
37
37
|
class: classes("card-title", className),
|
|
@@ -86,5 +86,3 @@ function CardAction(props) {
|
|
|
86
86
|
}
|
|
87
87
|
//#endregion
|
|
88
88
|
export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
|
|
89
|
-
|
|
90
|
-
//# sourceMappingURL=card.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.js","names":[],"sources":["../../../src/components/card/card.tsx"],"sourcesContent":["import { classes } from \"../_internal/classes\";\nimport { mergeProps } from \"../_internal/merge-props\";\nimport type {\n CardActionProps,\n CardContentProps,\n CardDescriptionProps,\n CardFooterProps,\n CardHeaderProps,\n CardProps,\n CardTitleProps,\n CardVariant,\n} from \"./card.types\";\n\nfunction normalizeVariant(variant: CardVariant | undefined) {\n return variant && variant !== \"default\" ? variant : undefined;\n}\n\nexport function Card(props: CardProps): JSX.Element {\n const { children, class: className, variant, ref, ...rest } = props;\n const normalizedVariant = normalizeVariant(variant);\n\n const finalProps = mergeProps(rest, {\n ref,\n class: classes(\"card\", normalizedVariant && `card-${normalizedVariant}`, className),\n \"data-slot\": \"card\",\n \"data-variant\": normalizedVariant,\n });\n\n return <div {...finalProps}>{children}</div>;\n}\n\nexport function CardHeader(props: CardHeaderProps): JSX.Element {\n const { children, class: className, ref, ...rest } = props;\n const finalProps = mergeProps(rest, {\n ref,\n class: classes(\"card-header\", className),\n \"data-slot\": \"card-header\",\n });\n\n return <div {...finalProps}>{children}</div>;\n}\n\nexport function CardTitle(props: CardTitleProps): JSX.Element {\n const { children, class: className, ref, ...rest } = props;\n const finalProps = mergeProps(rest, {\n ref,\n class: classes(\"card-title\", className),\n \"data-slot\": \"card-title\",\n });\n\n return <
|
|
1
|
+
{"version":3,"file":"card.js","names":[],"sources":["../../../src/components/card/card.tsx"],"sourcesContent":["import { classes } from \"../_internal/classes\";\nimport { mergeProps } from \"../_internal/merge-props\";\nimport type {\n CardActionProps,\n CardContentProps,\n CardDescriptionProps,\n CardFooterProps,\n CardHeaderProps,\n CardProps,\n CardTitleProps,\n CardVariant,\n} from \"./card.types\";\n\nfunction normalizeVariant(variant: CardVariant | undefined) {\n return variant && variant !== \"default\" ? variant : undefined;\n}\n\nexport function Card(props: CardProps): JSX.Element {\n const { children, class: className, variant, ref, ...rest } = props;\n const normalizedVariant = normalizeVariant(variant);\n\n const finalProps = mergeProps(rest, {\n ref,\n class: classes(\"card\", normalizedVariant && `card-${normalizedVariant}`, className),\n \"data-slot\": \"card\",\n \"data-variant\": normalizedVariant,\n });\n\n return <div {...finalProps}>{children}</div>;\n}\n\nexport function CardHeader(props: CardHeaderProps): JSX.Element {\n const { children, class: className, ref, ...rest } = props;\n const finalProps = mergeProps(rest, {\n ref,\n class: classes(\"card-header\", className),\n \"data-slot\": \"card-header\",\n });\n\n return <div {...finalProps}>{children}</div>;\n}\n\nexport function CardTitle(props: CardTitleProps): JSX.Element {\n const { children, class: className, ref, titleAs: TitleTag = \"h3\", ...rest } = props;\n const finalProps = mergeProps(rest, {\n ref,\n class: classes(\"card-title\", className),\n \"data-slot\": \"card-title\",\n });\n\n return <TitleTag {...finalProps}>{children}</TitleTag>;\n}\n\nexport function CardDescription(props: CardDescriptionProps): JSX.Element {\n const { children, class: className, ref, ...rest } = props;\n const finalProps = mergeProps(rest, {\n ref,\n class: classes(\"card-description\", className),\n \"data-slot\": \"card-description\",\n });\n\n return <p {...finalProps}>{children}</p>;\n}\n\nexport function CardContent(props: CardContentProps): JSX.Element {\n const { children, class: className, ref, ...rest } = props;\n const finalProps = mergeProps(rest, {\n ref,\n class: classes(\"card-content\", className),\n \"data-slot\": \"card-content\",\n });\n\n return <div {...finalProps}>{children}</div>;\n}\n\nexport function CardFooter(props: CardFooterProps): JSX.Element {\n const { children, class: className, ref, ...rest } = props;\n const finalProps = mergeProps(rest, {\n ref,\n class: classes(\"card-footer\", className),\n \"data-slot\": \"card-footer\",\n });\n\n return <div {...finalProps}>{children}</div>;\n}\n\nexport function CardAction(props: CardActionProps): JSX.Element {\n const { children, class: className, ref, ...rest } = props;\n const finalProps = mergeProps(rest, {\n ref,\n class: classes(\"card-action\", className),\n \"data-slot\": \"card-action\",\n });\n\n return <div {...finalProps}>{children}</div>;\n}\n"],"mappings":";;;;AAaA,SAAS,iBAAiB,SAAkC;CAC1D,OAAO,WAAW,YAAY,YAAY,UAAU,KAAA;AACtD;AAEA,SAAgB,KAAK,OAA+B;CAClD,MAAM,EAAE,UAAU,OAAO,WAAW,SAAS,KAAK,GAAG,SAAS;CAC9D,MAAM,oBAAoB,iBAAiB,OAAO;CASlD,OAAO,oBAAC,OAAD;EAAK,GAPO,WAAW,MAAM;GAClC;GACA,OAAO,QAAQ,QAAQ,qBAAqB,QAAQ,qBAAqB,SAAS;GAClF,aAAa;GACb,gBAAgB;EAClB,CAEyB;EAAI;CAAc,CAAA;AAC7C;AAEA,SAAgB,WAAW,OAAqC;CAC9D,MAAM,EAAE,UAAU,OAAO,WAAW,KAAK,GAAG,SAAS;CAOrD,OAAO,oBAAC,OAAD;EAAK,GANO,WAAW,MAAM;GAClC;GACA,OAAO,QAAQ,eAAe,SAAS;GACvC,aAAa;EACf,CAEyB;EAAI;CAAc,CAAA;AAC7C;AAEA,SAAgB,UAAU,OAAoC;CAC5D,MAAM,EAAE,UAAU,OAAO,WAAW,KAAK,SAAS,WAAW,MAAM,GAAG,SAAS;CAO/E,OAAO,oBAAC,UAAD;EAAU,GANE,WAAW,MAAM;GAClC;GACA,OAAO,QAAQ,cAAc,SAAS;GACtC,aAAa;EACf,CAE8B;EAAI;CAAmB,CAAA;AACvD;AAEA,SAAgB,gBAAgB,OAA0C;CACxE,MAAM,EAAE,UAAU,OAAO,WAAW,KAAK,GAAG,SAAS;CAOrD,OAAO,oBAAC,KAAD;EAAG,GANS,WAAW,MAAM;GAClC;GACA,OAAO,QAAQ,oBAAoB,SAAS;GAC5C,aAAa;EACf,CAEuB;EAAI;CAAY,CAAA;AACzC;AAEA,SAAgB,YAAY,OAAsC;CAChE,MAAM,EAAE,UAAU,OAAO,WAAW,KAAK,GAAG,SAAS;CAOrD,OAAO,oBAAC,OAAD;EAAK,GANO,WAAW,MAAM;GAClC;GACA,OAAO,QAAQ,gBAAgB,SAAS;GACxC,aAAa;EACf,CAEyB;EAAI;CAAc,CAAA;AAC7C;AAEA,SAAgB,WAAW,OAAqC;CAC9D,MAAM,EAAE,UAAU,OAAO,WAAW,KAAK,GAAG,SAAS;CAOrD,OAAO,oBAAC,OAAD;EAAK,GANO,WAAW,MAAM;GAClC;GACA,OAAO,QAAQ,eAAe,SAAS;GACvC,aAAa;EACf,CAEyB;EAAI;CAAc,CAAA;AAC7C;AAEA,SAAgB,WAAW,OAAqC;CAC9D,MAAM,EAAE,UAAU,OAAO,WAAW,KAAK,GAAG,SAAS;CAOrD,OAAO,oBAAC,OAAD;EAAK,GANO,WAAW,MAAM;GAClC;GACA,OAAO,QAAQ,eAAe,SAAS;GACvC,aAAa;EACf,CAEyB;EAAI;CAAc,CAAA;AAC7C"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Ref } from "@askrjs/askr/foundations/utilities";
|
|
2
2
|
//#region src/components/card/card.types.d.ts
|
|
3
3
|
type CardVariant = "default" | "raised";
|
|
4
|
+
type CardTitleHeadingTag = "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
4
5
|
type DivProps = Omit<JSX.IntrinsicElements["div"], "children" | "ref">;
|
|
5
6
|
type HeadingProps = Omit<JSX.IntrinsicElements["h3"], "children" | "ref">;
|
|
6
7
|
type ParagraphProps = Omit<JSX.IntrinsicElements["p"], "children" | "ref">;
|
|
@@ -15,6 +16,8 @@ type CardHeaderProps = DivProps & {
|
|
|
15
16
|
};
|
|
16
17
|
type CardTitleProps = HeadingProps & {
|
|
17
18
|
children?: unknown;
|
|
19
|
+
/** Choose the level that follows the surrounding document hierarchy. */
|
|
20
|
+
titleAs?: CardTitleHeadingTag;
|
|
18
21
|
ref?: Ref<HTMLHeadingElement>;
|
|
19
22
|
};
|
|
20
23
|
type CardDescriptionProps = ParagraphProps & {
|
|
@@ -34,5 +37,4 @@ type CardActionProps = DivProps & {
|
|
|
34
37
|
ref?: Ref<HTMLDivElement>;
|
|
35
38
|
};
|
|
36
39
|
//#endregion
|
|
37
|
-
export { CardActionProps, CardContentProps, CardDescriptionProps, CardFooterProps, CardHeaderProps, CardProps, CardTitleProps, CardVariant };
|
|
38
|
-
//# sourceMappingURL=card.types.d.ts.map
|
|
40
|
+
export { CardActionProps, CardContentProps, CardDescriptionProps, CardFooterProps, CardHeaderProps, CardProps, CardTitleHeadingTag, CardTitleProps, CardVariant };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { CardActionProps, CardContentProps, CardDescriptionProps, CardFooterProps, CardHeaderProps, CardProps, CardTitleProps, CardVariant } from "./card.types.js";
|
|
1
|
+
import { CardActionProps, CardContentProps, CardDescriptionProps, CardFooterProps, CardHeaderProps, CardProps, CardTitleHeadingTag, CardTitleProps, CardVariant } from "./card.types.js";
|
|
2
2
|
import { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "./card.js";
|
|
3
|
-
export { Card, CardAction, type CardActionProps, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps, type CardVariant };
|
|
3
|
+
export { Card, CardAction, type CardActionProps, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleHeadingTag, type CardTitleProps, type CardVariant };
|
|
@@ -151,5 +151,4 @@ declare function TypographyList(props: CatalogComponentProps): JSX.Element;
|
|
|
151
151
|
declare function TypographyLead(props: CatalogComponentProps): JSX.Element;
|
|
152
152
|
declare function TypographyMuted(props: CatalogComponentProps): JSX.Element;
|
|
153
153
|
//#endregion
|
|
154
|
-
export { AlertDescription, AlertTitle, Box, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Calendar, CalendarBody, CalendarCaption, CalendarCell, CalendarDay, CalendarGrid, CalendarHead, CalendarHeader, CalendarNav, CalendarNextButton, CalendarPreviousButton, CalendarRow, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, CatalogComponentProps, Combobox, ComboboxInput, ComboboxList, ComboboxOption, Command, CommandDialog, CommandEmpty, CommandGroup, CommandGroupHeading, CommandHeader, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DataTable, DatePicker, DatePickerInput, Direction, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, FieldContent, FieldDescription, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Inline, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemTitle, Kbd, NativeSelect, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, ResizableHandle, ResizablePanel, ResizablePanelGroup, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, Shell, ShellMain, ShellNav, Sonner, Stack, TabsContent, TabsList, TabsTrigger, Toaster, Typography, TypographyBlockquote, TypographyH1, TypographyH2, TypographyH3, TypographyH4, TypographyLead, TypographyList, TypographyMuted, TypographyP };
|
|
155
|
-
//# sourceMappingURL=catalog.d.ts.map
|
|
154
|
+
export { AlertDescription, AlertTitle, Box, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Calendar, CalendarBody, CalendarCaption, CalendarCell, CalendarDay, CalendarGrid, CalendarHead, CalendarHeader, CalendarNav, CalendarNextButton, CalendarPreviousButton, CalendarRow, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, CatalogComponentProps, Combobox, ComboboxInput, ComboboxList, ComboboxOption, Command, CommandDialog, CommandEmpty, CommandGroup, CommandGroupHeading, CommandHeader, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DataTable, DatePicker, DatePickerInput, Direction, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, FieldContent, FieldDescription, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Inline, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemTitle, Kbd, NativeSelect, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, ResizableHandle, ResizablePanel, ResizablePanelGroup, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, Shell, ShellMain, ShellNav, Sonner, Stack, TabsContent, TabsList, TabsTrigger, Toaster, Typography, TypographyBlockquote, TypographyH1, TypographyH2, TypographyH3, TypographyH4, TypographyLead, TypographyList, TypographyMuted, TypographyP };
|
|
@@ -720,5 +720,3 @@ function TypographyMuted(props) {
|
|
|
720
720
|
}
|
|
721
721
|
//#endregion
|
|
722
722
|
export { AlertDescription, AlertTitle, Box, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Calendar, CalendarBody, CalendarCaption, CalendarCell, CalendarDay, CalendarGrid, CalendarHead, CalendarHeader, CalendarNav, CalendarNextButton, CalendarPreviousButton, CalendarRow, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Combobox, ComboboxInput, ComboboxList, ComboboxOption, Command, CommandDialog, CommandEmpty, CommandGroup, CommandGroupHeading, CommandHeader, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DataTable, DatePicker, DatePickerInput, Direction, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, FieldContent, FieldDescription, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Inline, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemTitle, Kbd, NativeSelect, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, ResizableHandle, ResizablePanel, ResizablePanelGroup, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, Shell, ShellMain, ShellNav, Sonner, Stack, TabsContent, TabsList, TabsTrigger, Toaster, Typography, TypographyBlockquote, TypographyH1, TypographyH2, TypographyH3, TypographyH4, TypographyLead, TypographyList, TypographyMuted, TypographyP };
|
|
723
|
-
|
|
724
|
-
//# sourceMappingURL=catalog.js.map
|
|
@@ -2,5 +2,4 @@ import { ContainerProps } from "./container.types.js";
|
|
|
2
2
|
//#region src/components/container/container.d.ts
|
|
3
3
|
declare function Container(props: ContainerProps): JSX.Element;
|
|
4
4
|
//#endregion
|
|
5
|
-
export { Container };
|
|
6
|
-
//# sourceMappingURL=container.d.ts.map
|
|
5
|
+
export { Container };
|
|
@@ -2,5 +2,4 @@ import { EmptyStateProps } from "./empty-state.types.js";
|
|
|
2
2
|
//#region src/components/empty-state/empty-state.d.ts
|
|
3
3
|
declare function EmptyState(props: EmptyStateProps): JSX.Element;
|
|
4
4
|
//#endregion
|
|
5
|
-
export { EmptyState };
|
|
6
|
-
//# sourceMappingURL=empty-state.d.ts.map
|
|
5
|
+
export { EmptyState };
|
|
@@ -4,5 +4,4 @@ declare function Field(props: FieldProps): JSX.Element;
|
|
|
4
4
|
declare function FieldHint(props: FieldHintProps): JSX.Element;
|
|
5
5
|
declare function FieldError(props: FieldErrorProps): JSX.Element;
|
|
6
6
|
//#endregion
|
|
7
|
-
export { Field, FieldError, FieldHint };
|
|
8
|
-
//# sourceMappingURL=field.d.ts.map
|
|
7
|
+
export { Field, FieldError, FieldHint };
|
|
@@ -8,5 +8,4 @@ declare function FooterDescription(props: FooterDescriptionProps): JSX.Element;
|
|
|
8
8
|
declare function FooterLinks(props: FooterLinksProps): JSX.Element;
|
|
9
9
|
declare function FooterLink(props: FooterLinkProps): JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
|
-
export { Footer, FooterContent, FooterDescription, FooterLink, FooterLinks, FooterSection, FooterTitle };
|
|
12
|
-
//# sourceMappingURL=footer.d.ts.map
|
|
11
|
+
export { Footer, FooterContent, FooterDescription, FooterLink, FooterLinks, FooterSection, FooterTitle };
|
|
@@ -33,5 +33,4 @@ type FooterLinkProps = AnchorProps & {
|
|
|
33
33
|
ref?: Ref<HTMLAnchorElement>;
|
|
34
34
|
};
|
|
35
35
|
//#endregion
|
|
36
|
-
export { FooterContentProps, FooterDescriptionProps, FooterLinkProps, FooterLinksProps, FooterProps, FooterSectionProps, FooterTitleProps };
|
|
37
|
-
//# sourceMappingURL=footer.types.d.ts.map
|
|
36
|
+
export { FooterContentProps, FooterDescriptionProps, FooterLinkProps, FooterLinksProps, FooterProps, FooterSectionProps, FooterTitleProps };
|
|
@@ -2,5 +2,4 @@ import { GridElement, GridProps } from "./grid.types.js";
|
|
|
2
2
|
//#region src/components/grid/grid.d.ts
|
|
3
3
|
declare function Grid<TElement extends GridElement = "div">(props: GridProps<TElement>): JSX.Element;
|
|
4
4
|
//#endregion
|
|
5
|
-
export { Grid };
|
|
6
|
-
//# sourceMappingURL=grid.d.ts.map
|
|
5
|
+
export { Grid };
|
|
@@ -14,5 +14,4 @@ type GridProps<TElement extends GridElement = "div"> = GridIntrinsicProps<TEleme
|
|
|
14
14
|
ref?: Ref<HTMLElement>;
|
|
15
15
|
};
|
|
16
16
|
//#endregion
|
|
17
|
-
export { GridAlign, GridColumns, GridElement, GridProps };
|
|
18
|
-
//# sourceMappingURL=grid.types.d.ts.map
|
|
17
|
+
export { GridAlign, GridColumns, GridElement, GridProps };
|
|
@@ -4,5 +4,4 @@ declare function InputGroup(props: InputGroupProps): JSX.Element;
|
|
|
4
4
|
declare function InputGroupText(props: InputGroupTextProps): JSX.Element;
|
|
5
5
|
declare function InputGroupText(props: InputGroupTextAsChildProps): JSX.Element;
|
|
6
6
|
//#endregion
|
|
7
|
-
export { InputGroup, InputGroupText };
|
|
8
|
-
//# sourceMappingURL=input-group.d.ts.map
|
|
7
|
+
export { InputGroup, InputGroupText };
|
|
@@ -21,5 +21,4 @@ type InputGroupTextAsChildProps = SpanProps & {
|
|
|
21
21
|
ref?: Ref<unknown>;
|
|
22
22
|
};
|
|
23
23
|
//#endregion
|
|
24
|
-
export { InputGroupOrientation, InputGroupProps, InputGroupTextAsChildProps, InputGroupTextProps };
|
|
25
|
-
//# sourceMappingURL=input-group.types.d.ts.map
|
|
24
|
+
export { InputGroupOrientation, InputGroupProps, InputGroupTextAsChildProps, InputGroupTextProps };
|
|
@@ -10,5 +10,4 @@ declare function NavItem(props: NavItemProps): JSX.Element;
|
|
|
10
10
|
declare function NavItem(props: NavItemAsChildProps): JSX.Element;
|
|
11
11
|
declare function NavLink(props: NavLinkProps): JSX.Element;
|
|
12
12
|
//#endregion
|
|
13
|
-
export { NavItem, NavLink, Pill, Pills, Tab, Tabs };
|
|
14
|
-
//# sourceMappingURL=nav.d.ts.map
|
|
13
|
+
export { NavItem, NavLink, Pill, Pills, Tab, Tabs };
|
|
@@ -47,5 +47,4 @@ type NavLinkProps = LinkProps & NavLinkOwnProps;
|
|
|
47
47
|
type TabProps = LinkProps & NavLinkOwnProps;
|
|
48
48
|
type PillProps = LinkProps & NavLinkOwnProps;
|
|
49
49
|
//#endregion
|
|
50
|
-
export { NavItemAsChildProps, NavItemOwnProps, NavItemProps, NavLinkMatch, NavLinkOwnProps, NavLinkProps, PillProps, PillsAsChildProps, PillsOwnProps, PillsProps, TabProps, TabsAsChildProps, TabsOwnProps, TabsProps };
|
|
51
|
-
//# sourceMappingURL=nav.types.d.ts.map
|
|
50
|
+
export { NavItemAsChildProps, NavItemOwnProps, NavItemProps, NavLinkMatch, NavLinkOwnProps, NavLinkProps, PillProps, PillsAsChildProps, PillsOwnProps, PillsProps, TabProps, TabsAsChildProps, TabsOwnProps, TabsProps };
|
|
@@ -5,5 +5,4 @@ declare function NavBrand(props: NavBrandProps): JSX.Element;
|
|
|
5
5
|
declare function NavGroup(props: NavGroupProps): JSX.Element;
|
|
6
6
|
declare function NavDropdown(props: NavDropdownProps): JSX.Element;
|
|
7
7
|
//#endregion
|
|
8
|
-
export { NavBrand, NavDropdown, NavGroup, Navbar };
|
|
9
|
-
//# sourceMappingURL=navbar.d.ts.map
|
|
8
|
+
export { NavBrand, NavDropdown, NavGroup, Navbar };
|
|
@@ -19,5 +19,4 @@ type NavDropdownProps = Omit<DropdownProps, "children"> & Pick<DropdownContentOw
|
|
|
19
19
|
children?: unknown;
|
|
20
20
|
};
|
|
21
21
|
//#endregion
|
|
22
|
-
export { NavBrandProps, NavDropdownProps, NavGroupProps, NavbarCollapseBreakpoint, NavbarProps };
|
|
23
|
-
//# sourceMappingURL=navbar.types.d.ts.map
|
|
22
|
+
export { NavBrandProps, NavDropdownProps, NavGroupProps, NavbarCollapseBreakpoint, NavbarProps };
|