@apolitical/component-library 5.0.2-jc.0 → 5.0.3
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/form/components/rich-text-editor/components/toolbar/components/option/option.d.ts +3 -1
- package/general/link/link.d.ts +2 -2
- package/general/tooltip/index.d.ts +0 -1
- package/helpers/intl.d.ts +1 -1
- package/index.js +51 -51
- package/index.mjs +6519 -6590
- package/package.json +1 -1
- package/style.css +1 -1
- package/styles/variables/colors/theme/_general.scss +0 -1
- package/discussion/components/likes/likes-modal.d.ts +0 -25
- package/general/tooltip/tooltip-linkset.hook.d.ts +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { PropsWithChildren } from 'react';
|
|
2
2
|
import { BaseProps } from '../../../../../../../form/components/rich-text-editor/rich-text-editor.types';
|
|
3
|
-
declare const Option: ({ id, active, hasDivider, callback, className, children, ...props }: React.PropsWithChildren<{
|
|
3
|
+
declare const Option: ({ id, active, hasDivider, callback, className, children, "aria-pressed": ariaPressed, ...props }: React.PropsWithChildren<{
|
|
4
4
|
/** The id of the option */
|
|
5
5
|
id: string;
|
|
6
6
|
/** Whether the option is active */
|
|
@@ -11,5 +11,7 @@ declare const Option: ({ id, active, hasDivider, callback, className, children,
|
|
|
11
11
|
callback: () => void;
|
|
12
12
|
/** Additional classes */
|
|
13
13
|
className?: string | undefined;
|
|
14
|
+
/** Optional aria-pressed; this will always be added if it's not set. If it's set to null, we won't add it to the button */
|
|
15
|
+
'aria-pressed'?: boolean | null | undefined;
|
|
14
16
|
} & BaseProps>) => import("react/jsx-runtime").JSX.Element;
|
|
15
17
|
export default Option;
|
package/general/link/link.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
interface Props {
|
|
3
3
|
/** URL for link */
|
|
4
4
|
href?: string | undefined;
|
|
5
5
|
/** Content to rendered */
|
|
@@ -33,5 +33,5 @@ export interface ILinkProps {
|
|
|
33
33
|
/** Data attributes for the link */
|
|
34
34
|
'data-before'?: string;
|
|
35
35
|
}
|
|
36
|
-
declare const Link: ({ href, children, fallbackElement, className, onClick, gtmContext, gtmType, ...props }:
|
|
36
|
+
declare const Link: ({ href, children, fallbackElement, className, onClick, gtmContext, gtmType, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
37
37
|
export default Link;
|
package/helpers/intl.d.ts
CHANGED
|
@@ -154,7 +154,7 @@ export declare const checkIntlPathExists: (path: string, language?: {
|
|
|
154
154
|
discussion_form_explainer_question: string;
|
|
155
155
|
discussion_likes: string;
|
|
156
156
|
discussion_likes_short: string;
|
|
157
|
-
|
|
157
|
+
discussion_likes_more: string;
|
|
158
158
|
discussion_likes_like: string;
|
|
159
159
|
discussion_likes_unlike: string;
|
|
160
160
|
discussion_likes_show: string;
|