@ndla/ui 56.0.107-alpha.0 → 56.0.109-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/es/CampaignBlock/CampaignBlock.js +0 -1
- package/lib/CampaignBlock/CampaignBlock.js +0 -1
- package/lib/TagSelector/TagSelector.d.ts +1 -1
- package/lib/i18n/useComponentTranslations.d.ts +2 -2
- package/package.json +5 -5
- package/src/AudioPlayer/Controls.tsx +1 -1
- package/src/CampaignBlock/CampaignBlock.tsx +1 -6
|
@@ -134,7 +134,6 @@ const LinkButton = _ref => {
|
|
|
134
134
|
} = _ref;
|
|
135
135
|
if (url) return /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledSafeLinkButton, {
|
|
136
136
|
to: (0, _relativeUrl.getPossiblyRelativeUrl)(url, path),
|
|
137
|
-
target: "_blank",
|
|
138
137
|
variant: "secondary",
|
|
139
138
|
rel: "noopener noreferrer",
|
|
140
139
|
children: children
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { type CollectionItem } from "@ark-ui/react";
|
|
9
9
|
import { type ComboboxControlProps, type ComboboxInputProps, type ComboboxRootProps, type TagsInputControlProps, type TagsInputInputProps, type TagsInputRootProps } from "@ndla/primitives";
|
|
10
10
|
export type TagSelectorRootProps<T extends CollectionItem> = ComboboxRootProps<T> & TagsInputRootProps;
|
|
11
|
-
export declare const TagSelectorRoot: <T extends
|
|
11
|
+
export declare const TagSelectorRoot: <T extends CollectionItem>({ allowCustomValue, multiple, selectionBehavior, editable, addOnPaste, onValueChange, children, value, translations, ...rest }: TagSelectorRootProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
export type TagSelectorControlProps = ComboboxControlProps & TagsInputControlProps;
|
|
13
13
|
export declare const TagSelectorLabel: ({ textStyle, fontWeight, ...props }: import("@ndla/primitives").ComboboxLabelProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
export declare const TagSelectorItemInput: import("react").ForwardRefExoticComponent<import("@ark-ui/react").TagsInputItemInputProps & {
|
|
@@ -12,8 +12,8 @@ type DeepPartial<T> = {
|
|
|
12
12
|
[K in keyof T]?: T[K] extends object ? DeepPartial<T[K]> : T[K];
|
|
13
13
|
};
|
|
14
14
|
export declare const useTagsInputTranslations: (translations?: Partial<TagsInputRootProps["translations"]>) => TagsInputRootProps["translations"];
|
|
15
|
-
export declare const useComboboxTranslations: <T extends
|
|
16
|
-
export declare const useTagSelectorTranslations: <T extends
|
|
15
|
+
export declare const useComboboxTranslations: <T extends CollectionItem>(translations?: Partial<ComboboxRootProps<T>["translations"]>) => ComboboxRootProps<T>["translations"];
|
|
16
|
+
export declare const useTagSelectorTranslations: <T extends CollectionItem>(translations?: Partial<TagSelectorRootProps<T>["translations"]>) => TagSelectorRootProps<T>["translations"];
|
|
17
17
|
export declare const usePaginationTranslations: (translations?: Partial<PaginationRootProps["translations"]>) => PaginationRootProps["translations"];
|
|
18
18
|
interface AudioSearchTranslations {
|
|
19
19
|
searchPlaceholder: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ndla/ui",
|
|
3
|
-
"version": "56.0.
|
|
3
|
+
"version": "56.0.109-alpha.0",
|
|
4
4
|
"description": "UI component library for NDLA",
|
|
5
5
|
"license": "GPL-3.0",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"@ndla/core": "^5.0.3",
|
|
36
36
|
"@ndla/icons": "^8.0.52-alpha.0",
|
|
37
37
|
"@ndla/licenses": "^9.0.1",
|
|
38
|
-
"@ndla/primitives": "^1.0.
|
|
39
|
-
"@ndla/safelink": "^7.0.
|
|
38
|
+
"@ndla/primitives": "^1.0.83-alpha.0",
|
|
39
|
+
"@ndla/safelink": "^7.0.84-alpha.0",
|
|
40
40
|
"@ndla/styled-system": "^0.0.32",
|
|
41
41
|
"@ndla/util": "^5.0.6-alpha.0",
|
|
42
42
|
"html-react-parser": "^5.1.19"
|
|
@@ -51,11 +51,11 @@
|
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@ndla/preset-panda": "^0.0.51",
|
|
53
53
|
"@ndla/types-backend": "^1.0.1",
|
|
54
|
-
"@ndla/types-embed": "^5.0.
|
|
54
|
+
"@ndla/types-embed": "^5.0.11-alpha.0",
|
|
55
55
|
"@pandacss/dev": "^0.52.0"
|
|
56
56
|
},
|
|
57
57
|
"publishConfig": {
|
|
58
58
|
"access": "public"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "0495950a3a24defc5d51cdbf14c2d989e9996f82"
|
|
61
61
|
}
|
|
@@ -157,12 +157,7 @@ const StyledSafeLinkButton = styled(SafeLinkButton, {
|
|
|
157
157
|
const LinkButton = ({ url, children, path }: LinkButtonProps) => {
|
|
158
158
|
if (url)
|
|
159
159
|
return (
|
|
160
|
-
<StyledSafeLinkButton
|
|
161
|
-
to={getPossiblyRelativeUrl(url, path)}
|
|
162
|
-
target="_blank"
|
|
163
|
-
variant="secondary"
|
|
164
|
-
rel="noopener noreferrer"
|
|
165
|
-
>
|
|
160
|
+
<StyledSafeLinkButton to={getPossiblyRelativeUrl(url, path)} variant="secondary" rel="noopener noreferrer">
|
|
166
161
|
{children}
|
|
167
162
|
</StyledSafeLinkButton>
|
|
168
163
|
);
|