@ndla/primitives 1.0.59-alpha.0 → 1.0.61-alpha.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.
@@ -104,6 +104,12 @@
104
104
  "backgroundColor]___[value:surface.brand.3.subtle",
105
105
  "borderColor]___[value:surface.brand.3.strong",
106
106
  "backgroundColor]___[value:surface.infoSubtle",
107
+ "backgroundColor]___[value:surface.dangerSubtle",
108
+ "borderColor]___[value:surface.danger",
109
+ "backgroundColor]___[value:surface.successSubtle",
110
+ "borderColor]___[value:surface.success",
111
+ "backgroundColor]___[value:surface.warningSubtle",
112
+ "borderColor]___[value:surface.warning",
107
113
  "borderInlineStart]___[value:4px solid",
108
114
  "borderColor]___[value:stroke.subtle",
109
115
  "background]___[value:surface.brand.1.subtle",
package/dist/styles.css CHANGED
@@ -1159,6 +1159,30 @@
1159
1159
  background-color: var(--colors-surface-info-subtle);
1160
1160
  }
1161
1161
 
1162
+ .bg-c_surface\.dangerSubtle {
1163
+ background-color: var(--colors-surface-danger-subtle);
1164
+ }
1165
+
1166
+ .bd-c_surface\.danger {
1167
+ border-color: var(--colors-surface-danger);
1168
+ }
1169
+
1170
+ .bg-c_surface\.successSubtle {
1171
+ background-color: var(--colors-surface-success-subtle);
1172
+ }
1173
+
1174
+ .bd-c_surface\.success {
1175
+ border-color: var(--colors-surface-success);
1176
+ }
1177
+
1178
+ .bg-c_surface\.warningSubtle {
1179
+ background-color: var(--colors-surface-warning-subtle);
1180
+ }
1181
+
1182
+ .bd-c_surface\.warning {
1183
+ border-color: var(--colors-surface-warning);
1184
+ }
1185
+
1162
1186
  .bd-c_stroke\.subtle {
1163
1187
  border-color: var(--colors-stroke-subtle);
1164
1188
  }
package/es/Badge.js CHANGED
@@ -40,6 +40,18 @@ const badgeRecipe = cva({
40
40
  neutral: {
41
41
  backgroundColor: "surface.infoSubtle",
42
42
  borderColor: "stroke.default"
43
+ },
44
+ danger: {
45
+ backgroundColor: "surface.dangerSubtle",
46
+ borderColor: "surface.danger"
47
+ },
48
+ success: {
49
+ backgroundColor: "surface.successSubtle",
50
+ borderColor: "surface.success"
51
+ },
52
+ warning: {
53
+ backgroundColor: "surface.warningSubtle",
54
+ borderColor: "surface.warning"
43
55
  }
44
56
  }
45
57
  }
@@ -6,7 +6,7 @@
6
6
  *
7
7
  */
8
8
  import { Accordion } from "@ark-ui/react";
9
- import { JsxStyleProps, RecipeVariantProps } from "@ndla/styled-system/types";
9
+ import type { JsxStyleProps, RecipeVariantProps } from "@ndla/styled-system/types";
10
10
  declare const accordionRecipe: import("@ndla/styled-system/types").SlotRecipeRuntimeFn<"root" | "item" | "itemTrigger" | "itemContent" | "itemIndicator", {
11
11
  variant: {
12
12
  clean: {};
@@ -5,8 +5,8 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { HTMLArkProps } from "@ark-ui/react";
9
- import { JsxStyleProps, RecipeVariantProps } from "@ndla/styled-system/types";
8
+ import { type HTMLArkProps } from "@ark-ui/react";
9
+ import type { JsxStyleProps, RecipeVariantProps } from "@ndla/styled-system/types";
10
10
  declare const orderedListRecipe: import("@ndla/styled-system/types").RecipeRuntimeFn<{
11
11
  variant: {
12
12
  numbers: {
package/lib/Badge.d.ts CHANGED
@@ -6,8 +6,8 @@
6
6
  *
7
7
  */
8
8
  import { type HTMLArkProps } from "@ark-ui/react";
9
- import { RecipeVariantProps } from "@ndla/styled-system/css";
10
- import { JsxStyleProps } from "@ndla/styled-system/types";
9
+ import { type RecipeVariantProps } from "@ndla/styled-system/css";
10
+ import type { JsxStyleProps } from "@ndla/styled-system/types";
11
11
  declare const badgeRecipe: import("@ndla/styled-system/types").RecipeRuntimeFn<{
12
12
  colorTheme: {
13
13
  brand1: {
@@ -26,6 +26,18 @@ declare const badgeRecipe: import("@ndla/styled-system/types").RecipeRuntimeFn<{
26
26
  backgroundColor: "surface.infoSubtle";
27
27
  borderColor: "stroke.default";
28
28
  };
29
+ danger: {
30
+ backgroundColor: "surface.dangerSubtle";
31
+ borderColor: "surface.danger";
32
+ };
33
+ success: {
34
+ backgroundColor: "surface.successSubtle";
35
+ borderColor: "surface.success";
36
+ };
37
+ warning: {
38
+ backgroundColor: "surface.warningSubtle";
39
+ borderColor: "surface.warning";
40
+ };
29
41
  };
30
42
  }>;
31
43
  export type BadgeVariantProps = RecipeVariantProps<typeof badgeRecipe>;
@@ -34,6 +46,6 @@ export type BadgeProps = HTMLArkProps<"div"> & JsxStyleProps & BadgeVariantProps
34
46
  export declare const Badge: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react").PolymorphicProps & {
35
47
  consumeCss?: boolean;
36
48
  } & import("@ndla/styled-system/types").WithCss & {
37
- colorTheme?: "neutral" | "brand1" | "brand2" | "brand3" | undefined;
49
+ colorTheme?: "neutral" | "brand1" | "brand2" | "brand3" | "danger" | "success" | "warning" | undefined;
38
50
  } & import("react").RefAttributes<HTMLDivElement>>;
39
51
  export {};
package/lib/Badge.js CHANGED
@@ -46,6 +46,18 @@ const badgeRecipe = (0, _css.cva)({
46
46
  neutral: {
47
47
  backgroundColor: "surface.infoSubtle",
48
48
  borderColor: "stroke.default"
49
+ },
50
+ danger: {
51
+ backgroundColor: "surface.dangerSubtle",
52
+ borderColor: "surface.danger"
53
+ },
54
+ success: {
55
+ backgroundColor: "surface.successSubtle",
56
+ borderColor: "surface.success"
57
+ },
58
+ warning: {
59
+ backgroundColor: "surface.warningSubtle",
60
+ borderColor: "surface.warning"
49
61
  }
50
62
  }
51
63
  }
@@ -5,9 +5,9 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { HTMLArkProps } from "@ark-ui/react";
9
- import { RecipeVariantProps } from "@ndla/styled-system/css";
10
- import { JsxStyleProps } from "@ndla/styled-system/types";
8
+ import { type HTMLArkProps } from "@ark-ui/react";
9
+ import { type RecipeVariantProps } from "@ndla/styled-system/css";
10
+ import type { JsxStyleProps } from "@ndla/styled-system/types";
11
11
  declare const blockQuoteRecipe: import("@ndla/styled-system/types").RecipeRuntimeFn<{
12
12
  variant: {
13
13
  neutral: {
package/lib/Button.d.ts CHANGED
@@ -5,10 +5,10 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { ReactNode } from "react";
9
- import { HTMLArkProps } from "@ark-ui/react";
10
- import { RecipeVariantProps } from "@ndla/styled-system/css";
11
- import { JsxStyleProps, RecipeVariant } from "@ndla/styled-system/types";
8
+ import { type ReactNode } from "react";
9
+ import { type HTMLArkProps } from "@ark-ui/react";
10
+ import { type RecipeVariantProps } from "@ndla/styled-system/css";
11
+ import type { JsxStyleProps, RecipeVariant } from "@ndla/styled-system/types";
12
12
  export declare const buttonBaseRecipe: import("@ndla/styled-system/types").RecipeRuntimeFn<{
13
13
  variant: {
14
14
  primary: {
package/lib/Checkbox.d.ts CHANGED
@@ -6,8 +6,8 @@
6
6
  *
7
7
  */
8
8
  import { Checkbox } from "@ark-ui/react";
9
- import { JsxStyleProps, RecipeVariantProps } from "@ndla/styled-system/types";
10
- import { TextProps } from "./Text";
9
+ import type { JsxStyleProps, RecipeVariantProps } from "@ndla/styled-system/types";
10
+ import { type TextProps } from "./Text";
11
11
  declare const checkboxRecipe: import("@ndla/styled-system/types").SlotRecipeRuntimeFn<"label" | "group" | "root" | "indicator" | "control", {
12
12
  variant: {
13
13
  checkbox: {
package/lib/Combobox.d.ts CHANGED
@@ -6,8 +6,8 @@
6
6
  *
7
7
  */
8
8
  import { Combobox } from "@ark-ui/react";
9
- import { JsxStyleProps, RecipeVariantProps } from "@ndla/styled-system/types";
10
- import { TextProps } from "./Text";
9
+ import type { JsxStyleProps, RecipeVariantProps } from "@ndla/styled-system/types";
10
+ import { type TextProps } from "./Text";
11
11
  declare const comboboxRecipe: import("@ndla/styled-system/types").SlotRecipeRuntimeFn<"input" | "label" | "content" | "list" | "root" | "item" | "itemIndicator" | "control" | "clearTrigger" | "itemGroup" | "itemGroupLabel" | "itemText" | "positioner" | "trigger", {
12
12
  context: {
13
13
  standalone: {
package/lib/Dialog.d.ts CHANGED
@@ -6,9 +6,9 @@
6
6
  *
7
7
  */
8
8
  import { Dialog } from "@ark-ui/react";
9
- import { RecipeVariantProps } from "@ndla/styled-system/css";
10
- import { JsxStyleProps } from "@ndla/styled-system/types";
11
- import { TextProps } from "./Text";
9
+ import { type RecipeVariantProps } from "@ndla/styled-system/css";
10
+ import type { JsxStyleProps } from "@ndla/styled-system/types";
11
+ import { type TextProps } from "./Text";
12
12
  declare const dialogRecipe: import("@ndla/styled-system/types").SlotRecipeRuntimeFn<"title" | "content" | "description" | "positioner" | "trigger" | "backdrop" | "closeTrigger", {
13
13
  context: {
14
14
  dialog: {
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { TextProps } from "../Text";
8
+ import { type TextProps } from "../Text";
9
9
  export declare const ErrorMessageRoot: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & import("@ark-ui/react").PolymorphicProps & {
10
10
  consumeCss?: boolean;
11
11
  } & import("@ndla/styled-system/types").WithCss & import("react").RefAttributes<HTMLElement>>;
@@ -5,8 +5,8 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { HTMLArkProps } from "@ark-ui/react";
9
- import { JsxStyleProps } from "@ndla/styled-system/types";
8
+ import { type HTMLArkProps } from "@ark-ui/react";
9
+ import type { JsxStyleProps } from "@ndla/styled-system/types";
10
10
  export type ExpandableBoxProps = HTMLArkProps<"details"> & JsxStyleProps;
11
11
  export declare const ExpandableBox: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").DetailsHTMLAttributes<HTMLDetailsElement>, HTMLDetailsElement>, "ref"> & import("@ark-ui/react").PolymorphicProps & {
12
12
  consumeCss?: boolean;
package/lib/Figure.d.ts CHANGED
@@ -5,9 +5,9 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { HTMLArkProps } from "@ark-ui/react";
9
- import { RecipeVariantProps } from "@ndla/styled-system/css";
10
- import { JsxStyleProps, RecipeVariant } from "@ndla/styled-system/types";
8
+ import { type HTMLArkProps } from "@ark-ui/react";
9
+ import { type RecipeVariantProps } from "@ndla/styled-system/css";
10
+ import type { JsxStyleProps, RecipeVariant } from "@ndla/styled-system/types";
11
11
  declare const figureRecipe: import("@ndla/styled-system/types").RecipeRuntimeFn<{
12
12
  size: {
13
13
  full: {
@@ -6,8 +6,8 @@
6
6
  *
7
7
  */
8
8
  import { FileUpload } from "@ark-ui/react";
9
- import { RecipeVariantProps } from "@ndla/styled-system/css";
10
- import { TextProps } from "./Text";
9
+ import { type RecipeVariantProps } from "@ndla/styled-system/css";
10
+ import { type TextProps } from "./Text";
11
11
  declare const fileUploadRecipe: import("@ndla/styled-system/types").SlotRecipeRuntimeFn<"label" | "root" | "item" | "clearTrigger" | "itemGroup" | "trigger" | "dropzone" | "itemDeleteTrigger" | "itemName" | "itemPreview" | "itemPreviewImage" | "itemSizeText", import("@ndla/styled-system/types").SlotRecipeVariantRecord<"label" | "root" | "item" | "clearTrigger" | "itemGroup" | "trigger" | "dropzone" | "itemDeleteTrigger" | "itemName" | "itemPreview" | "itemPreviewImage" | "itemSizeText">>;
12
12
  export type FileUploadVariantProps = RecipeVariantProps<typeof fileUploadRecipe>;
13
13
  export type FileUploadRootProps = FileUpload.RootProps & FileUploadVariantProps;
@@ -5,8 +5,8 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { HTMLArkProps } from "@ark-ui/react";
9
- import { JsxStyleProps, RecipeVariantProps } from "@ndla/styled-system/types";
8
+ import { type HTMLArkProps } from "@ark-ui/react";
9
+ import type { JsxStyleProps, RecipeVariantProps } from "@ndla/styled-system/types";
10
10
  declare const framedContentRecipe: import("@ndla/styled-system/types").RecipeRuntimeFn<{
11
11
  colorTheme: {
12
12
  neutral: {
package/lib/Hero.d.ts CHANGED
@@ -7,7 +7,7 @@
7
7
  */
8
8
  import { type HTMLArkProps } from "@ark-ui/react";
9
9
  import { type RecipeVariantProps } from "@ndla/styled-system/css";
10
- import { type JsxStyleProps } from "@ndla/styled-system/types";
10
+ import type { JsxStyleProps } from "@ndla/styled-system/types";
11
11
  declare const heroRecipe: import("@ndla/styled-system/types").SlotRecipeRuntimeFn<"background" | "content" | "root", {
12
12
  absolute: {
13
13
  true: {
package/lib/Image.d.ts CHANGED
@@ -5,8 +5,8 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { ComponentPropsWithRef, ReactNode } from "react";
9
- import { JsxStyleProps, StyledVariantProps } from "@ndla/styled-system/types";
8
+ import { type ComponentPropsWithRef, type ReactNode } from "react";
9
+ import type { JsxStyleProps, StyledVariantProps } from "@ndla/styled-system/types";
10
10
  export interface ImageCrop {
11
11
  startX: number;
12
12
  startY: number;
package/lib/Input.d.ts CHANGED
@@ -5,8 +5,8 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { HTMLArkProps } from "@ark-ui/react";
9
- import { JsxStyleProps, type RecipeVariantProps } from "@ndla/styled-system/types";
8
+ import { type HTMLArkProps } from "@ark-ui/react";
9
+ import type { JsxStyleProps, RecipeVariantProps } from "@ndla/styled-system/types";
10
10
  export declare const InputContainer: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react").PolymorphicProps & {
11
11
  consumeCss?: boolean;
12
12
  } & import("@ndla/styled-system/types").WithCss & import("react").RefAttributes<HTMLDivElement>>;
package/lib/Label.d.ts CHANGED
@@ -5,9 +5,9 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { Fieldset, HTMLArkProps } from "@ark-ui/react";
9
- import { JsxStyleProps } from "@ndla/styled-system/types";
10
- import { TextProps } from "./Text";
8
+ import { Fieldset, type HTMLArkProps } from "@ark-ui/react";
9
+ import type { JsxStyleProps } from "@ndla/styled-system/types";
10
+ import { type TextProps } from "./Text";
11
11
  export type LegendProps = HTMLArkProps<"legend"> & JsxStyleProps & TextProps;
12
12
  export declare const Legend: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLLegendElement>, HTMLLegendElement>, "ref"> & import("@ark-ui/react").PolymorphicProps & {
13
13
  consumeCss?: boolean;
@@ -5,9 +5,9 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { HTMLArkProps } from "@ark-ui/react";
9
- import { JsxStyleProps, RecipeVariantProps } from "@ndla/styled-system/types";
10
- import { PageContentVariantProps } from "./PageContent";
8
+ import { type HTMLArkProps } from "@ark-ui/react";
9
+ import type { JsxStyleProps, RecipeVariantProps } from "@ndla/styled-system/types";
10
+ import { type PageContentVariantProps } from "./PageContent";
11
11
  declare const pageContainerRecipe: import("@ndla/styled-system/types").RecipeRuntimeFn<{
12
12
  padding: {
13
13
  none: {};
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { RecipeVariantProps } from "@ndla/styled-system/types";
8
+ import type { RecipeVariantProps } from "@ndla/styled-system/types";
9
9
  declare const pageRecipe: import("@ndla/styled-system/types").RecipeRuntimeFn<{
10
10
  variant: {
11
11
  content: {
package/lib/Menu.d.ts CHANGED
@@ -6,8 +6,8 @@
6
6
  *
7
7
  */
8
8
  import { Menu } from "@ark-ui/react";
9
- import { JsxStyleProps, RecipeVariantProps } from "@ndla/styled-system/types";
10
- import { TextProps } from "./Text";
9
+ import type { JsxStyleProps, RecipeVariantProps } from "@ndla/styled-system/types";
10
+ import { type TextProps } from "./Text";
11
11
  declare const itemCva: import("@ndla/styled-system/types").RecipeRuntimeFn<{
12
12
  variant: {
13
13
  action: {
@@ -5,8 +5,8 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { HTMLArkProps } from "@ark-ui/react";
9
- import { JsxStyleProps, RecipeVariantProps } from "@ndla/styled-system/types";
8
+ import { type HTMLArkProps } from "@ark-ui/react";
9
+ import type { JsxStyleProps, RecipeVariantProps } from "@ndla/styled-system/types";
10
10
  declare const messageBoxRecipe: import("@ndla/styled-system/types").RecipeRuntimeFn<{
11
11
  variant: {
12
12
  info: {
@@ -32,6 +32,6 @@ export type MessageBoxProps = HTMLArkProps<"div"> & JsxStyleProps & MessageBoxVa
32
32
  export declare const MessageBox: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react").PolymorphicProps & {
33
33
  consumeCss?: boolean;
34
34
  } & import("@ndla/styled-system/types").WithCss & {
35
- variant?: "error" | "success" | "info" | "warning" | undefined;
35
+ variant?: "error" | "success" | "warning" | "info" | undefined;
36
36
  } & import("react").RefAttributes<HTMLDivElement>>;
37
37
  export {};
package/lib/NdlaLogo.d.ts CHANGED
@@ -5,9 +5,9 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { ComponentPropsWithoutRef } from "react";
9
- import { ColorToken } from "@ndla/styled-system/tokens";
10
- import { JsxStyleProps } from "@ndla/styled-system/types";
8
+ import { type ComponentPropsWithoutRef } from "react";
9
+ import type { ColorToken } from "@ndla/styled-system/tokens";
10
+ import type { JsxStyleProps } from "@ndla/styled-system/types";
11
11
  export type LogoProps = ComponentPropsWithoutRef<"svg"> & {
12
12
  color?: ColorToken;
13
13
  } & JsxStyleProps;
@@ -6,7 +6,7 @@
6
6
  *
7
7
  */
8
8
  import { Pagination } from "@ark-ui/react";
9
- import { JsxStyleProps } from "@ndla/styled-system/types";
9
+ import type { JsxStyleProps } from "@ndla/styled-system/types";
10
10
  interface RootProps extends Pagination.RootProps {
11
11
  translations: Pagination.RootProps["translations"];
12
12
  }
package/lib/Popover.d.ts CHANGED
@@ -6,8 +6,8 @@
6
6
  *
7
7
  */
8
8
  import { Popover } from "@ark-ui/react";
9
- import { JsxStyleProps } from "@ndla/styled-system/types";
10
- import { TextProps } from "./Text";
9
+ import type { JsxStyleProps } from "@ndla/styled-system/types";
10
+ import { type TextProps } from "./Text";
11
11
  export type PopoverRootProps = Popover.RootProps;
12
12
  export declare const PopoverRoot: ({ lazyMount, unmountOnExit, ...props }: PopoverRootProps) => import("react/jsx-runtime").JSX.Element;
13
13
  export declare const PopoverAnchor: import("react").ForwardRefExoticComponent<Popover.AnchorProps & {
@@ -6,8 +6,8 @@
6
6
  *
7
7
  */
8
8
  import { RadioGroup } from "@ark-ui/react";
9
- import { JsxStyleProps } from "@ndla/styled-system/types";
10
- import { TextProps } from "./Text";
9
+ import type { JsxStyleProps } from "@ndla/styled-system/types";
10
+ import { type TextProps } from "./Text";
11
11
  export interface RadioGroupRootProps extends RadioGroup.RootProps, JsxStyleProps {
12
12
  }
13
13
  export declare const RadioGroupRoot: import("react").ForwardRefExoticComponent<RadioGroupRootProps & import("react").RefAttributes<HTMLDivElement>>;
package/lib/Select.d.ts CHANGED
@@ -6,8 +6,8 @@
6
6
  *
7
7
  */
8
8
  import { Select } from "@ark-ui/react";
9
- import { JsxStyleProps } from "@ndla/styled-system/types";
10
- import { TextProps } from "./Text";
9
+ import type { JsxStyleProps } from "@ndla/styled-system/types";
10
+ import { type TextProps } from "./Text";
11
11
  export type SelectRootProps<T extends Select.CollectionItem> = Select.RootProps<T> & JsxStyleProps;
12
12
  export declare const SelectRoot: <T extends unknown>({ lazyMount, unmountOnExit, ...props }: SelectRootProps<T>) => import("react/jsx-runtime").JSX.Element;
13
13
  export declare const SelectClearTrigger: import("react").ForwardRefExoticComponent<Select.ClearTriggerProps & {
package/lib/Skeleton.d.ts CHANGED
@@ -5,8 +5,8 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { HTMLArkProps } from "@ark-ui/react";
9
- import { JsxStyleProps } from "@ndla/styled-system/types";
8
+ import { type HTMLArkProps } from "@ark-ui/react";
9
+ import type { JsxStyleProps } from "@ndla/styled-system/types";
10
10
  export declare const Skeleton: import("@ndla/styled-system/types").StyledComponent<import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
11
11
  ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
12
12
  } & import("@ark-ui/react").PolymorphicProps>, {}>;
package/lib/Slider.d.ts CHANGED
@@ -6,8 +6,8 @@
6
6
  *
7
7
  */
8
8
  import { Slider } from "@ark-ui/react";
9
- import { JsxStyleProps } from "@ndla/styled-system/types";
10
- import { TextProps } from "./Text";
9
+ import type { JsxStyleProps } from "@ndla/styled-system/types";
10
+ import { type TextProps } from "./Text";
11
11
  export type SliderRootProps = Slider.RootProps & JsxStyleProps;
12
12
  export declare const SliderRoot: import("react").ForwardRefExoticComponent<Slider.RootProps & {
13
13
  consumeCss?: boolean;
package/lib/Spinner.d.ts CHANGED
@@ -5,9 +5,9 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { HTMLArkProps } from "@ark-ui/react";
9
- import { RecipeVariantProps } from "@ndla/styled-system/css";
10
- import { JsxStyleProps } from "@ndla/styled-system/types";
8
+ import { type HTMLArkProps } from "@ark-ui/react";
9
+ import { type RecipeVariantProps } from "@ndla/styled-system/css";
10
+ import type { JsxStyleProps } from "@ndla/styled-system/types";
11
11
  export declare const spinnerRecipe: import("@ndla/styled-system/types").RecipeRuntimeFn<{
12
12
  size: {
13
13
  small: {
package/lib/Switch.d.ts CHANGED
@@ -6,9 +6,9 @@
6
6
  *
7
7
  */
8
8
  import { Switch } from "@ark-ui/react";
9
- import { RecipeVariantProps } from "@ndla/styled-system/css";
10
- import { JsxStyleProps } from "@ndla/styled-system/types";
11
- import { TextProps } from "./Text";
9
+ import { type RecipeVariantProps } from "@ndla/styled-system/css";
10
+ import type { JsxStyleProps } from "@ndla/styled-system/types";
11
+ import { type TextProps } from "./Text";
12
12
  declare const switchRecipe: import("@ndla/styled-system/types").SlotRecipeRuntimeFn<"label" | "root" | "control" | "thumb", import("@ndla/styled-system/types").SlotRecipeVariantRecord<"label" | "root" | "control" | "thumb">>;
13
13
  export type SwitchVariantProps = RecipeVariantProps<typeof switchRecipe>;
14
14
  export type SwitchRootProps = Switch.RootProps & JsxStyleProps & SwitchVariantProps;
package/lib/Table.d.ts CHANGED
@@ -5,8 +5,8 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { HTMLArkProps } from "@ark-ui/react";
9
- import { JsxStyleProps } from "@ndla/styled-system/types";
8
+ import { type HTMLArkProps } from "@ark-ui/react";
9
+ import type { JsxStyleProps } from "@ndla/styled-system/types";
10
10
  export type TableProps = HTMLArkProps<"table"> & JsxStyleProps;
11
11
  export declare const Table: import("@ndla/styled-system/types").StyledComponent<import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, "ref"> & {
12
12
  ref?: ((instance: HTMLTableElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLTableElement> | null | undefined;
package/lib/Tabs.d.ts CHANGED
@@ -6,8 +6,8 @@
6
6
  *
7
7
  */
8
8
  import { Tabs } from "@ark-ui/react";
9
- import { RecipeVariantProps } from "@ndla/styled-system/css";
10
- import { JsxStyleProps } from "@ndla/styled-system/types";
9
+ import { type RecipeVariantProps } from "@ndla/styled-system/css";
10
+ import type { JsxStyleProps } from "@ndla/styled-system/types";
11
11
  declare const tabsRecipe: import("@ndla/styled-system/types").SlotRecipeRuntimeFn<"content" | "list" | "root" | "indicator" | "trigger", {
12
12
  variant: {
13
13
  line: {
@@ -6,8 +6,8 @@
6
6
  *
7
7
  */
8
8
  import { TagsInput } from "@ark-ui/react";
9
- import { JsxStyleProps } from "@ndla/styled-system/types";
10
- import { TextProps } from "./Text";
9
+ import type { JsxStyleProps } from "@ndla/styled-system/types";
10
+ import { type TextProps } from "./Text";
11
11
  interface RootProps extends TagsInput.RootProps {
12
12
  translations: TagsInput.RootProps["translations"];
13
13
  }
package/lib/Text.d.ts CHANGED
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { ColorToken, FontWeightToken } from "@ndla/styled-system/tokens";
8
+ import type { ColorToken, FontWeightToken } from "@ndla/styled-system/tokens";
9
9
  import type { UtilityValues } from "@ndla/styled-system/types";
10
10
  export interface TextProps {
11
11
  textStyle?: UtilityValues["textStyle"];
package/lib/Toast.d.ts CHANGED
@@ -6,8 +6,8 @@
6
6
  *
7
7
  */
8
8
  import { Toast } from "@ark-ui/react";
9
- import { JsxStyleProps, RecipeVariantProps } from "@ndla/styled-system/types";
10
- import { TextProps } from "./Text";
9
+ import type { JsxStyleProps, RecipeVariantProps } from "@ndla/styled-system/types";
10
+ import { type TextProps } from "./Text";
11
11
  declare const toastRecipe: import("@ndla/styled-system/types").SlotRecipeRuntimeFn<"title" | "description" | "group" | "root" | "closeTrigger" | "actionTrigger", {
12
12
  variant: {
13
13
  light: {
@@ -6,8 +6,8 @@
6
6
  *
7
7
  */
8
8
  import { ToggleGroup } from "@ark-ui/react";
9
- import { RecipeVariantProps } from "@ndla/styled-system/css";
10
- import { JsxStyleProps } from "@ndla/styled-system/types";
9
+ import { type RecipeVariantProps } from "@ndla/styled-system/css";
10
+ import type { JsxStyleProps } from "@ndla/styled-system/types";
11
11
  declare const toggleGroupRecipe: import("@ndla/styled-system/types").SlotRecipeRuntimeFn<"root" | "item", import("@ndla/styled-system/types").SlotRecipeVariantRecord<"root" | "item">>;
12
12
  export type ToggleGroupVariantProps = RecipeVariantProps<typeof toggleGroupRecipe>;
13
13
  export type ToggleGroupRootProps = ToggleGroup.RootProps & JsxStyleProps & ToggleGroupVariantProps;
@@ -6,8 +6,8 @@
6
6
  *
7
7
  */
8
8
  import { TreeView } from "@ark-ui/react";
9
- import { JsxStyleProps } from "@ndla/styled-system/types";
10
- import { TextProps } from "../Text";
9
+ import type { JsxStyleProps } from "@ndla/styled-system/types";
10
+ import { type TextProps } from "../Text";
11
11
  export type TreeRootProps = TreeView.RootProps & JsxStyleProps;
12
12
  export declare const TreeRoot: import("react").ForwardRefExoticComponent<TreeView.RootProps & {
13
13
  consumeCss?: boolean;
@@ -6,7 +6,7 @@
6
6
  *
7
7
  */
8
8
  import { type ElementType, type ForwardRefExoticComponent, type PropsWithoutRef, type RefAttributes } from "react";
9
- import { WithCss } from "@ndla/styled-system/types";
9
+ import type { WithCss } from "@ndla/styled-system/types";
10
10
  type Props = Record<string, unknown>;
11
11
  type Recipe = {
12
12
  (props?: Props): Props;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ndla/primitives",
3
- "version": "1.0.59-alpha.0",
3
+ "version": "1.0.61-alpha.0",
4
4
  "description": "Primitive components for NDLA.",
5
5
  "license": "GPL-3.0",
6
6
  "main": "lib/index.js",
@@ -30,10 +30,10 @@
30
30
  "dependencies": {
31
31
  "@ark-ui/react": "^4.1.2",
32
32
  "@ndla/styled-system": "^0.0.29",
33
- "@ndla/util": "^5.0.1-alpha.0"
33
+ "@ndla/util": "^5.0.2-alpha.0"
34
34
  },
35
35
  "devDependencies": {
36
- "@ndla/preset-panda": "^0.0.47",
36
+ "@ndla/preset-panda": "^0.0.48",
37
37
  "@pandacss/dev": "^0.48.0"
38
38
  },
39
39
  "peerDependencies": {
@@ -43,5 +43,5 @@
43
43
  "publishConfig": {
44
44
  "access": "public"
45
45
  },
46
- "gitHead": "8929fb445477b02e740a9a21fd2d3ef08287d99c"
46
+ "gitHead": "bb87f73d8b8c67d7a39a3e10cc06ed55325798e4"
47
47
  }