@ndla/primitives 1.0.97-alpha.0 → 1.0.99-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.
- package/dist/panda.buildinfo.json +1 -1
- package/lib/Combobox.d.ts +1 -1
- package/lib/DatePicker.d.ts +1 -1
- package/lib/Dialog.d.ts +3 -3
- package/lib/FileUpload.d.ts +2 -2
- package/lib/Popover.d.ts +1 -1
- package/lib/Tooltip.d.ts +1 -1
- package/package.json +7 -7
package/lib/Combobox.d.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { Combobox } from "@ark-ui/react";
|
|
9
9
|
import type { RecipeVariantProps, StyledProps } from "@ndla/styled-system/types";
|
|
10
10
|
import { type TextProps } from "./Text";
|
|
11
|
-
declare const comboboxRecipe: import("@ndla/styled-system/types").SlotRecipeRuntimeFn<"root" | "item" | "itemIndicator" | "content" | "input" | "label" | "list" | "control" | "
|
|
11
|
+
declare const comboboxRecipe: import("@ndla/styled-system/types").SlotRecipeRuntimeFn<"root" | "item" | "itemIndicator" | "content" | "input" | "label" | "list" | "control" | "trigger" | "positioner" | "clearTrigger" | "itemGroup" | "itemGroupLabel" | "itemText" | "empty", {
|
|
12
12
|
context: {
|
|
13
13
|
standalone: {
|
|
14
14
|
content: {
|
package/lib/DatePicker.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export interface DatePickerRootProps extends DatePicker.RootProps, StyledProps {
|
|
|
12
12
|
translations: DatePicker.RootProps["translations"];
|
|
13
13
|
locale: DatePicker.RootProps["locale"];
|
|
14
14
|
}
|
|
15
|
-
export declare const DatePickerRoot: import("@ndla/styled-system/jsx").StyleContextProvider<import("react").ForwardRefExoticComponent<DatePicker.RootProps & import("react").RefAttributes<HTMLDivElement>>, import("@ndla/styled-system/types").SlotRecipeRuntimeFn<"root" | "content" | "table" | "input" | "label" | "view" | "control" | "
|
|
15
|
+
export declare const DatePickerRoot: import("@ndla/styled-system/jsx").StyleContextProvider<import("react").ForwardRefExoticComponent<DatePicker.RootProps & import("react").RefAttributes<HTMLDivElement>>, import("@ndla/styled-system/types").SlotRecipeRuntimeFn<"root" | "content" | "table" | "input" | "label" | "view" | "control" | "trigger" | "positioner" | "clearTrigger" | "monthSelect" | "nextTrigger" | "presetTrigger" | "prevTrigger" | "rangeText" | "tableBody" | "tableCell" | "tableCellTrigger" | "tableHead" | "tableHeader" | "tableRow" | "viewControl" | "viewTrigger" | "yearSelect", import("@ndla/styled-system/types").SlotRecipeVariantRecord<"root" | "content" | "table" | "input" | "label" | "view" | "control" | "trigger" | "positioner" | "clearTrigger" | "monthSelect" | "nextTrigger" | "presetTrigger" | "prevTrigger" | "rangeText" | "tableBody" | "tableCell" | "tableCellTrigger" | "tableHead" | "tableHeader" | "tableRow" | "viewControl" | "viewTrigger" | "yearSelect">>>;
|
|
16
16
|
export declare const DatePickerClearTrigger: import("@ndla/styled-system/jsx").StyleContextConsumer<import("react").ForwardRefExoticComponent<DatePicker.ClearTriggerProps & import("react").RefAttributes<HTMLButtonElement>>>;
|
|
17
17
|
interface DatePickerContentProps extends DatePicker.ContentProps, StyledProps {
|
|
18
18
|
}
|
package/lib/Dialog.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { Dialog } from "@ark-ui/react";
|
|
|
9
9
|
import { type RecipeVariantProps } from "@ndla/styled-system/css";
|
|
10
10
|
import type { StyledProps } from "@ndla/styled-system/types";
|
|
11
11
|
import { type TextProps } from "./Text";
|
|
12
|
-
declare const dialogRecipe: import("@ndla/styled-system/types").SlotRecipeRuntimeFn<"content" | "title" | "
|
|
12
|
+
declare const dialogRecipe: import("@ndla/styled-system/types").SlotRecipeRuntimeFn<"content" | "title" | "trigger" | "positioner" | "backdrop" | "description" | "closeTrigger", {
|
|
13
13
|
context: {
|
|
14
14
|
dialog: {
|
|
15
15
|
positioner: {
|
|
@@ -113,7 +113,7 @@ declare const dialogRecipe: import("@ndla/styled-system/types").SlotRecipeRuntim
|
|
|
113
113
|
export type DialogVariantProps = NonNullable<RecipeVariantProps<typeof dialogRecipe>>;
|
|
114
114
|
export interface DialogRootProps extends Dialog.RootProps, DialogVariantProps {
|
|
115
115
|
}
|
|
116
|
-
export declare const InternalDialogRoot: import("@ndla/styled-system/jsx").
|
|
116
|
+
export declare const InternalDialogRoot: import("@ndla/styled-system/jsx").StyleContextRootProvider<(props: Dialog.RootProps) => import("react/jsx-runtime").JSX.Element, import("@ndla/styled-system/types").SlotRecipeRuntimeFn<"content" | "title" | "trigger" | "positioner" | "backdrop" | "description" | "closeTrigger", {
|
|
117
117
|
context: {
|
|
118
118
|
dialog: {
|
|
119
119
|
positioner: {
|
|
@@ -232,7 +232,7 @@ export declare const DialogCloseTrigger: import("@ndla/styled-system/jsx").Style
|
|
|
232
232
|
export declare const DialogHeader: import("@ndla/styled-system/types").StyledComponent<"div", {}>;
|
|
233
233
|
export declare const DialogBody: import("@ndla/styled-system/types").StyledComponent<"div", {}>;
|
|
234
234
|
export declare const DialogFooter: import("@ndla/styled-system/types").StyledComponent<"div", {}>;
|
|
235
|
-
export declare const DialogRootProvider: import("@ndla/styled-system/jsx").
|
|
235
|
+
export declare const DialogRootProvider: import("@ndla/styled-system/jsx").StyleContextRootProvider<(props: Dialog.RootProviderProps) => import("react/jsx-runtime").JSX.Element, import("@ndla/styled-system/types").SlotRecipeRuntimeFn<"content" | "title" | "trigger" | "positioner" | "backdrop" | "description" | "closeTrigger", {
|
|
236
236
|
context: {
|
|
237
237
|
dialog: {
|
|
238
238
|
positioner: {
|
package/lib/FileUpload.d.ts
CHANGED
|
@@ -9,13 +9,13 @@ import { FileUpload } from "@ark-ui/react";
|
|
|
9
9
|
import { type RecipeVariantProps } from "@ndla/styled-system/css";
|
|
10
10
|
import type { StyledProps } from "@ndla/styled-system/types";
|
|
11
11
|
import { type TextProps } from "./Text";
|
|
12
|
-
declare const fileUploadRecipe: import("@ndla/styled-system/types").SlotRecipeRuntimeFn<"root" | "item" | "label" | "
|
|
12
|
+
declare const fileUploadRecipe: import("@ndla/styled-system/types").SlotRecipeRuntimeFn<"root" | "item" | "label" | "trigger" | "clearTrigger" | "itemGroup" | "dropzone" | "itemDeleteTrigger" | "itemName" | "itemPreview" | "itemPreviewImage" | "itemSizeText", import("@ndla/styled-system/types").SlotRecipeVariantRecord<"root" | "item" | "label" | "trigger" | "clearTrigger" | "itemGroup" | "dropzone" | "itemDeleteTrigger" | "itemName" | "itemPreview" | "itemPreviewImage" | "itemSizeText">>;
|
|
13
13
|
export type FileUploadVariantProps = NonNullable<RecipeVariantProps<typeof fileUploadRecipe>>;
|
|
14
14
|
export interface FileUploadRootProps extends FileUpload.RootProps, FileUploadVariantProps {
|
|
15
15
|
}
|
|
16
16
|
export declare const FileUploadHiddenInput: import("react").ForwardRefExoticComponent<FileUpload.HiddenInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
17
17
|
export declare const FileUploadContext: (props: FileUpload.ContextProps) => import("react").ReactNode;
|
|
18
|
-
export declare const FileUploadRoot: import("@ndla/styled-system/jsx").StyleContextProvider<import("react").ForwardRefExoticComponent<FileUpload.RootProps & import("react").RefAttributes<HTMLDivElement>>, import("@ndla/styled-system/types").SlotRecipeRuntimeFn<"root" | "item" | "label" | "
|
|
18
|
+
export declare const FileUploadRoot: import("@ndla/styled-system/jsx").StyleContextProvider<import("react").ForwardRefExoticComponent<FileUpload.RootProps & import("react").RefAttributes<HTMLDivElement>>, import("@ndla/styled-system/types").SlotRecipeRuntimeFn<"root" | "item" | "label" | "trigger" | "clearTrigger" | "itemGroup" | "dropzone" | "itemDeleteTrigger" | "itemName" | "itemPreview" | "itemPreviewImage" | "itemSizeText", import("@ndla/styled-system/types").SlotRecipeVariantRecord<"root" | "item" | "label" | "trigger" | "clearTrigger" | "itemGroup" | "dropzone" | "itemDeleteTrigger" | "itemName" | "itemPreview" | "itemPreviewImage" | "itemSizeText">>>;
|
|
19
19
|
export declare const FileUploadDropzone: import("@ndla/styled-system/jsx").StyleContextConsumer<import("react").ForwardRefExoticComponent<FileUpload.DropzoneProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
20
20
|
export declare const FileUploadTrigger: import("@ndla/styled-system/jsx").StyleContextConsumer<import("react").ForwardRefExoticComponent<FileUpload.TriggerProps & import("react").RefAttributes<HTMLButtonElement>>>;
|
|
21
21
|
export declare const FileUploadItemGroup: import("@ndla/styled-system/jsx").StyleContextConsumer<import("react").ForwardRefExoticComponent<FileUpload.ItemGroupProps & import("react").RefAttributes<HTMLUListElement>>>;
|
package/lib/Popover.d.ts
CHANGED
|
@@ -28,6 +28,6 @@ interface PopoverTitleProps extends Omit<Popover.TitleProps, "color">, TextProps
|
|
|
28
28
|
}
|
|
29
29
|
export declare const PopoverTitle: ({ textStyle, children, ...rest }: PopoverTitleProps) => import("react/jsx-runtime").JSX.Element;
|
|
30
30
|
export declare const PopoverTrigger: import("@ndla/styled-system/jsx").StyleContextConsumer<import("react").ForwardRefExoticComponent<Popover.TriggerProps & import("react").RefAttributes<HTMLButtonElement>>>;
|
|
31
|
-
export declare const PopoverRootProvider: import("@ndla/styled-system/jsx").
|
|
31
|
+
export declare const PopoverRootProvider: import("@ndla/styled-system/jsx").StyleContextRootProvider<(props: Popover.RootProviderProps) => import("react/jsx-runtime").JSX.Element, import("@ndla/styled-system/types").SlotRecipeRuntimeFn<"content" | "title" | "anchor" | "indicator" | "trigger" | "positioner" | "description" | "closeTrigger" | "arrow" | "arrowTip", import("@ndla/styled-system/types").SlotRecipeVariantRecord<"content" | "title" | "anchor" | "indicator" | "trigger" | "positioner" | "description" | "closeTrigger" | "arrow" | "arrowTip">>>;
|
|
32
32
|
export declare const usePopover: (props?: import("@ark-ui/react").UsePopoverProps) => import("@ark-ui/react").UsePopoverReturn;
|
|
33
33
|
export {};
|
package/lib/Tooltip.d.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { Tooltip } from "@ark-ui/react";
|
|
9
9
|
import type { StyledProps } from "@ndla/styled-system/types";
|
|
10
10
|
export type TooltipRootProps = Tooltip.RootProps;
|
|
11
|
-
export declare const TooltipRoot: import("@ndla/styled-system/jsx").
|
|
11
|
+
export declare const TooltipRoot: import("@ndla/styled-system/jsx").StyleContextRootProvider<(props: Tooltip.RootProps) => import("react/jsx-runtime").JSX.Element, import("@ndla/styled-system/types").SlotRecipeRuntimeFn<"content" | "trigger" | "positioner" | "arrow" | "arrowTip", import("@ndla/styled-system/types").SlotRecipeVariantRecord<"content" | "trigger" | "positioner" | "arrow" | "arrowTip">>>;
|
|
12
12
|
export declare const TooltipArrow: import("@ndla/styled-system/jsx").StyleContextConsumer<import("react").ForwardRefExoticComponent<Tooltip.ArrowProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
13
13
|
export declare const TooltipArrowTip: import("@ndla/styled-system/jsx").StyleContextConsumer<import("react").ForwardRefExoticComponent<Tooltip.ArrowTipProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
14
14
|
export declare const TooltipContentStandalone: import("@ndla/styled-system/jsx").StyleContextConsumer<import("react").ForwardRefExoticComponent<Tooltip.ContentProps & import("react").RefAttributes<HTMLDivElement>>>;
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ndla/primitives",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
5
|
-
"description": "Primitive components for NDLA",
|
|
4
|
+
"version": "1.0.99-alpha.0",
|
|
5
|
+
"description": "Primitive components for NDLA.",
|
|
6
6
|
"license": "GPL-3.0",
|
|
7
7
|
"exports": {
|
|
8
8
|
"types": "./lib/index.d.ts",
|
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
"lib"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@ark-ui/react": "^5.
|
|
36
|
-
"@ndla/styled-system": "
|
|
35
|
+
"@ark-ui/react": "^5.25.0",
|
|
36
|
+
"@ndla/styled-system": "^0.0.39",
|
|
37
37
|
"@ndla/util": "^5.0.12-alpha.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@ndla/preset-panda": "^0.0.
|
|
41
|
-
"@pandacss/dev": "^1.3.
|
|
40
|
+
"@ndla/preset-panda": "^0.0.60",
|
|
41
|
+
"@pandacss/dev": "^1.3.1"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"react": ">= 18",
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"publishConfig": {
|
|
48
48
|
"access": "public"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "1c974c9234fe76368bdb7c418a67de46dd159fdb"
|
|
51
51
|
}
|