@openedx/paragon 23.18.0 → 23.18.2
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/Badge/index.d.ts +15 -0
- package/dist/Badge/index.js +12 -19
- package/dist/Badge/index.js.map +1 -1
- package/dist/Breadcrumb/BreadcrumbLink.d.ts +13 -0
- package/dist/Breadcrumb/BreadcrumbLink.js +1 -14
- package/dist/Breadcrumb/BreadcrumbLink.js.map +1 -1
- package/dist/Breadcrumb/index.d.ts +30 -0
- package/dist/Breadcrumb/index.js +4 -40
- package/dist/Breadcrumb/index.js.map +1 -1
- package/dist/Card/CardCarousel/CardCarouselSubtitle.d.ts +11 -0
- package/dist/Card/CardCarousel/CardCarouselSubtitle.js +0 -13
- package/dist/Card/CardCarousel/CardCarouselSubtitle.js.map +1 -1
- package/dist/Card/CardCarousel/CardCarouselTitle.d.ts +8 -0
- package/dist/Card/CardCarousel/CardCarouselTitle.js +0 -10
- package/dist/Card/CardCarousel/CardCarouselTitle.js.map +1 -1
- package/dist/IconButton/index.d.ts +1 -1
- package/dist/IconButton/index.js.map +1 -1
- package/dist/IconButtonToggle/index.js +1 -1
- package/dist/IconButtonToggle/index.js.map +1 -1
- package/dist/SearchField/index.scss +5 -0
- package/dist/core.css +4 -0
- package/dist/core.css.map +1 -1
- package/dist/core.min.css +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/Badge/index.tsx +33 -0
- package/src/Breadcrumb/{BreadcrumbLink.jsx → BreadcrumbLink.tsx} +18 -17
- package/src/Breadcrumb/{index.jsx → index.tsx} +27 -40
- package/src/Card/CardCarousel/{CardCarouselSubtitle.jsx → CardCarouselSubtitle.tsx} +10 -16
- package/src/Card/CardCarousel/CardCarouselTitle.tsx +19 -0
- package/src/IconButton/index.tsx +1 -1
- package/src/IconButtonToggle/index.jsx +1 -1
- package/src/SearchField/index.scss +5 -0
- package/src/index.ts +2 -4
- package/src/Badge/index.jsx +0 -36
- package/src/Card/CardCarousel/CardCarouselTitle.jsx +0 -25
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ComponentWithAsProp } from '../utils/types/bootstrap';
|
|
3
|
+
declare const STYLE_VARIANTS: string[];
|
|
4
|
+
interface BadgeProps {
|
|
5
|
+
/** Specifies element type for this component */
|
|
6
|
+
as?: React.ElementType;
|
|
7
|
+
/** Visual style of the badge. The full type definition can be seen [here](https://github.com/openedx/paragon/blob/release-23.x/src/Badge/index.tsx) */
|
|
8
|
+
variant?: typeof STYLE_VARIANTS[number];
|
|
9
|
+
/** Add the `pill` modifier to make badges more rounded with some additional horizontal padding */
|
|
10
|
+
pill?: boolean;
|
|
11
|
+
/** Overrides underlying component base CSS class name */
|
|
12
|
+
bsPrefix?: string;
|
|
13
|
+
}
|
|
14
|
+
declare const Badge: ComponentWithAsProp<'span', BadgeProps>;
|
|
15
|
+
export default Badge;
|
package/dist/Badge/index.js
CHANGED
|
@@ -1,26 +1,19 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
2
|
import BaseBadge from 'react-bootstrap/Badge';
|
|
4
|
-
const
|
|
3
|
+
const STYLE_VARIANTS = ['primary', 'secondary', 'success', 'danger', 'warning', 'info', 'light', 'dark'];
|
|
4
|
+
const Badge = /*#__PURE__*/React.forwardRef(({
|
|
5
|
+
as = 'span',
|
|
6
|
+
variant = 'primary',
|
|
7
|
+
pill = false,
|
|
8
|
+
bsPrefix = 'badge',
|
|
9
|
+
...props
|
|
10
|
+
}, ref) => /*#__PURE__*/React.createElement(BaseBadge, {
|
|
11
|
+
as: as,
|
|
12
|
+
variant: variant,
|
|
13
|
+
pill: pill,
|
|
14
|
+
bsPrefix: bsPrefix,
|
|
5
15
|
...props,
|
|
6
16
|
ref: ref
|
|
7
17
|
}));
|
|
8
|
-
const STYLE_VARIANTS = ['primary', 'secondary', 'success', 'danger', 'warning', 'info', 'light', 'dark'];
|
|
9
|
-
Badge.propTypes = {
|
|
10
|
-
/** Specifies element type for this component */
|
|
11
|
-
as: PropTypes.elementType,
|
|
12
|
-
/** Visual style of the badge */
|
|
13
|
-
variant: PropTypes.oneOf(STYLE_VARIANTS),
|
|
14
|
-
/** Add the `pill` modifier to make badges more rounded with some additional horizontal padding */
|
|
15
|
-
pill: PropTypes.bool,
|
|
16
|
-
/** Overrides underlying component base CSS class name */
|
|
17
|
-
bsPrefix: PropTypes.string
|
|
18
|
-
};
|
|
19
|
-
Badge.defaultProps = {
|
|
20
|
-
as: 'span',
|
|
21
|
-
variant: 'primary',
|
|
22
|
-
pill: false,
|
|
23
|
-
bsPrefix: 'badge'
|
|
24
|
-
};
|
|
25
18
|
export default Badge;
|
|
26
19
|
//# sourceMappingURL=index.js.map
|
package/dist/Badge/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","BaseBadge","STYLE_VARIANTS","Badge","forwardRef","as","variant","pill","bsPrefix","props","ref","createElement"],"sources":["../../src/Badge/index.tsx"],"sourcesContent":["import React, { ForwardedRef } from 'react';\nimport BaseBadge from 'react-bootstrap/Badge';\nimport { ComponentWithAsProp } from '../utils/types/bootstrap';\n\nconst STYLE_VARIANTS = [\n 'primary',\n 'secondary',\n 'success',\n 'danger',\n 'warning',\n 'info',\n 'light',\n 'dark',\n];\n\ninterface BadgeProps {\n /** Specifies element type for this component */\n as?: React.ElementType;\n /** Visual style of the badge. The full type definition can be seen [here](https://github.com/openedx/paragon/blob/release-23.x/src/Badge/index.tsx) */\n variant?: typeof STYLE_VARIANTS[number];\n /** Add the `pill` modifier to make badges more rounded with some additional horizontal padding */\n pill?: boolean;\n /** Overrides underlying component base CSS class name */\n bsPrefix?: string;\n}\n\nconst Badge: ComponentWithAsProp<'span', BadgeProps> = React.forwardRef(({\n as = 'span', variant = 'primary', pill = false, bsPrefix = 'badge', ...props\n}: BadgeProps, ref: ForwardedRef<HTMLSpanElement>) => (\n <BaseBadge as={as} variant={variant} pill={pill} bsPrefix={bsPrefix} {...props} ref={ref} />\n));\n\nexport default Badge;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAwB,OAAO;AAC3C,OAAOC,SAAS,MAAM,uBAAuB;AAG7C,MAAMC,cAAc,GAAG,CACrB,SAAS,EACT,WAAW,EACX,SAAS,EACT,QAAQ,EACR,SAAS,EACT,MAAM,EACN,OAAO,EACP,MAAM,CACP;AAaD,MAAMC,KAA8C,gBAAGH,KAAK,CAACI,UAAU,CAAC,CAAC;EACvEC,EAAE,GAAG,MAAM;EAAEC,OAAO,GAAG,SAAS;EAAEC,IAAI,GAAG,KAAK;EAAEC,QAAQ,GAAG,OAAO;EAAE,GAAGC;AAC7D,CAAC,EAAEC,GAAkC,kBAC/CV,KAAA,CAAAW,aAAA,CAACV,SAAS;EAACI,EAAE,EAAEA,EAAG;EAACC,OAAO,EAAEA,OAAQ;EAACC,IAAI,EAAEA,IAAK;EAACC,QAAQ,EAAEA,QAAS;EAAA,GAAKC,KAAK;EAAEC,GAAG,EAAEA;AAAI,CAAE,CAC5F,CAAC;AAEF,eAAeP,KAAK","ignoreList":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface BreadcrumbLinkProps {
|
|
3
|
+
as: React.ElementType;
|
|
4
|
+
clickHandler?: (event: React.MouseEvent, link: any) => void;
|
|
5
|
+
linkProps: {
|
|
6
|
+
label: string;
|
|
7
|
+
url?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export default function BreadcrumbLink({ as, clickHandler, linkProps }: BreadcrumbLinkProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
13
|
+
export {};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
2
|
import classNames from 'classnames';
|
|
4
3
|
export default function BreadcrumbLink({
|
|
5
4
|
as,
|
|
6
|
-
clickHandler,
|
|
5
|
+
clickHandler = undefined,
|
|
7
6
|
linkProps
|
|
8
7
|
}) {
|
|
9
8
|
const {
|
|
@@ -27,16 +26,4 @@ export default function BreadcrumbLink({
|
|
|
27
26
|
className: classNames('link-muted', className)
|
|
28
27
|
}, label);
|
|
29
28
|
}
|
|
30
|
-
BreadcrumbLink.propTypes = {
|
|
31
|
-
as: PropTypes.elementType.isRequired,
|
|
32
|
-
clickHandler: PropTypes.func,
|
|
33
|
-
linkProps: PropTypes.shape({
|
|
34
|
-
label: PropTypes.string.isRequired,
|
|
35
|
-
url: PropTypes.string,
|
|
36
|
-
className: PropTypes.string
|
|
37
|
-
}).isRequired
|
|
38
|
-
};
|
|
39
|
-
BreadcrumbLink.defaultProps = {
|
|
40
|
-
clickHandler: undefined
|
|
41
|
-
};
|
|
42
29
|
//# sourceMappingURL=BreadcrumbLink.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BreadcrumbLink.js","names":["React","
|
|
1
|
+
{"version":3,"file":"BreadcrumbLink.js","names":["React","classNames","BreadcrumbLink","as","clickHandler","undefined","linkProps","label","url","className","props","addtlProps","console","warn","href","onClick","createElement"],"sources":["../../src/Breadcrumb/BreadcrumbLink.tsx"],"sourcesContent":["import React from 'react';\nimport classNames from 'classnames';\n\ninterface BreadcrumbLinkProps {\n as: React.ElementType;\n clickHandler?: (event: React.MouseEvent, link: any) => void;\n linkProps: {\n label: string;\n url?: string; // deprecated, use href instead when rendering as 'a'\n className?: string;\n [key: string]: any;\n };\n}\n\ninterface AdditionalProps {\n href?: string;\n onClick?: (event: React.MouseEvent, link: any) => void;\n}\n\nexport default function BreadcrumbLink({ as, clickHandler = undefined, linkProps }: BreadcrumbLinkProps) {\n const {\n label,\n url,\n className,\n ...props\n } = linkProps;\n const addtlProps: AdditionalProps = {};\n\n if (as === 'a' && url) {\n // eslint-disable-next-line no-console\n console.warn(\n '[Deprecated]: using \"url\" parameter to specify link\\'s destination in Breadcrumb component is '\n + 'deprecated. Please use \"href\" instead when rendering links as anchor tag.',\n );\n addtlProps.href = url;\n }\n\n if (clickHandler) {\n addtlProps.onClick = clickHandler;\n }\n\n return React.createElement(\n as,\n {\n ...props,\n ...addtlProps,\n className: classNames('link-muted', className),\n },\n label,\n );\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,UAAU,MAAM,YAAY;AAkBnC,eAAe,SAASC,cAAcA,CAAC;EAAEC,EAAE;EAAEC,YAAY,GAAGC,SAAS;EAAEC;AAA+B,CAAC,EAAE;EACvG,MAAM;IACJC,KAAK;IACLC,GAAG;IACHC,SAAS;IACT,GAAGC;EACL,CAAC,GAAGJ,SAAS;EACb,MAAMK,UAA2B,GAAG,CAAC,CAAC;EAEtC,IAAIR,EAAE,KAAK,GAAG,IAAIK,GAAG,EAAE;IACrB;IACAI,OAAO,CAACC,IAAI,CACV,gGAAgG,GAC9F,2EACJ,CAAC;IACDF,UAAU,CAACG,IAAI,GAAGN,GAAG;EACvB;EAEA,IAAIJ,YAAY,EAAE;IAChBO,UAAU,CAACI,OAAO,GAAGX,YAAY;EACnC;EAEA,oBAAOJ,KAAK,CAACgB,aAAa,CACxBb,EAAE,EACF;IACE,GAAGO,KAAK;IACR,GAAGC,UAAU;IACbF,SAAS,EAAER,UAAU,CAAC,YAAY,EAAEQ,SAAS;EAC/C,CAAC,EACDF,KACF,CAAC;AACH","ignoreList":[]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface BreadcrumbProps {
|
|
3
|
+
/** An array of objects describing links to be rendered. The contents of an object depend on the value of `linkAs`
|
|
4
|
+
* prop as these objects will get passed down as props to the underlying component defined by `linkAs` prop.
|
|
5
|
+
*/
|
|
6
|
+
links: Array<{
|
|
7
|
+
label: string;
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}>;
|
|
10
|
+
/** allows to add a label that is not a link to the end of the breadcrumb. */
|
|
11
|
+
activeLabel?: string;
|
|
12
|
+
/** label of the element */
|
|
13
|
+
ariaLabel?: string;
|
|
14
|
+
/** allows to add a custom element between the breadcrumb items.
|
|
15
|
+
* Defaults to `>` rendered using the `Icon` component. */
|
|
16
|
+
spacer?: React.ReactElement;
|
|
17
|
+
/** allows to add a custom function to be called `onClick` of a breadcrumb link.
|
|
18
|
+
* The use case for this is for adding custom analytics to the component. */
|
|
19
|
+
clickHandler?: (event: React.MouseEvent, link: any) => void;
|
|
20
|
+
/** The `Breadcrumbs` style variant to use. */
|
|
21
|
+
variant?: 'light' | 'dark';
|
|
22
|
+
/** The `Breadcrumbs` mobile variant view. */
|
|
23
|
+
isMobile?: boolean;
|
|
24
|
+
/** Specifies the base element to use when rendering links, you should generally use either plain 'a' or
|
|
25
|
+
* [react-router's Link](https://reactrouter.com/en/main/components/link).
|
|
26
|
+
*/
|
|
27
|
+
linkAs?: React.ElementType;
|
|
28
|
+
}
|
|
29
|
+
declare function Breadcrumb({ links, activeLabel, spacer, clickHandler, variant, isMobile, ariaLabel, linkAs, ...props }: BreadcrumbProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export default Breadcrumb;
|
package/dist/Breadcrumb/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
2
|
import classNames from 'classnames';
|
|
4
3
|
import BreadcrumbLink from './BreadcrumbLink';
|
|
5
4
|
import { ChevronRight } from '../../icons';
|
|
@@ -9,10 +8,10 @@ function Breadcrumb({
|
|
|
9
8
|
activeLabel,
|
|
10
9
|
spacer,
|
|
11
10
|
clickHandler,
|
|
12
|
-
variant,
|
|
13
|
-
isMobile,
|
|
14
|
-
ariaLabel,
|
|
15
|
-
linkAs,
|
|
11
|
+
variant = 'light',
|
|
12
|
+
isMobile = false,
|
|
13
|
+
ariaLabel = 'breadcrumb',
|
|
14
|
+
linkAs = 'a',
|
|
16
15
|
...props
|
|
17
16
|
}) {
|
|
18
17
|
const linkCount = links.length;
|
|
@@ -45,40 +44,5 @@ function Breadcrumb({
|
|
|
45
44
|
"aria-current": "page"
|
|
46
45
|
}, activeLabel)));
|
|
47
46
|
}
|
|
48
|
-
Breadcrumb.propTypes = {
|
|
49
|
-
/** An array of objects describing links to be rendered. The contents of an object depend on the value of `linkAs`
|
|
50
|
-
* prop as these objects will get passed down as props to the underlying component defined by `linkAs` prop.
|
|
51
|
-
*/
|
|
52
|
-
links: PropTypes.arrayOf(PropTypes.shape({
|
|
53
|
-
label: PropTypes.string
|
|
54
|
-
})).isRequired,
|
|
55
|
-
/** allows to add a label that is not a link to the end of the breadcrumb. */
|
|
56
|
-
activeLabel: PropTypes.string,
|
|
57
|
-
/** label of the element */
|
|
58
|
-
ariaLabel: PropTypes.string,
|
|
59
|
-
/** allows to add a custom element between the breadcrumb items.
|
|
60
|
-
* Defaults to `>` rendered using the `Icon` component. */
|
|
61
|
-
spacer: PropTypes.element,
|
|
62
|
-
/** allows to add a custom function to be called `onClick` of a breadcrumb link.
|
|
63
|
-
* The use case for this is for adding custom analytics to the component. */
|
|
64
|
-
clickHandler: PropTypes.func,
|
|
65
|
-
/** The `Breadcrumbs` style variant to use. */
|
|
66
|
-
variant: PropTypes.oneOf(['light', 'dark']),
|
|
67
|
-
/** The `Breadcrumbs` mobile variant view. */
|
|
68
|
-
isMobile: PropTypes.bool,
|
|
69
|
-
/** Specifies the base element to use when rendering links, you should generally use either plain 'a' or
|
|
70
|
-
* [react-router's Link](https://reactrouter.com/en/main/components/link).
|
|
71
|
-
*/
|
|
72
|
-
linkAs: PropTypes.elementType
|
|
73
|
-
};
|
|
74
|
-
Breadcrumb.defaultProps = {
|
|
75
|
-
activeLabel: undefined,
|
|
76
|
-
ariaLabel: 'breadcrumb',
|
|
77
|
-
spacer: undefined,
|
|
78
|
-
clickHandler: undefined,
|
|
79
|
-
variant: 'light',
|
|
80
|
-
isMobile: false,
|
|
81
|
-
linkAs: 'a'
|
|
82
|
-
};
|
|
83
47
|
export default Breadcrumb;
|
|
84
48
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","classNames","BreadcrumbLink","ChevronRight","Icon","Breadcrumb","links","activeLabel","spacer","clickHandler","variant","isMobile","ariaLabel","linkAs","props","linkCount","length","displayLinks","createElement","className","map","link","i","Fragment","key","label","as","linkProps","role","src","id"],"sources":["../../src/Breadcrumb/index.tsx"],"sourcesContent":["import React from 'react';\nimport classNames from 'classnames';\n\nimport BreadcrumbLink from './BreadcrumbLink';\nimport { ChevronRight } from '../../icons';\nimport Icon from '../Icon';\n\ninterface BreadcrumbProps {\n /** An array of objects describing links to be rendered. The contents of an object depend on the value of `linkAs`\n * prop as these objects will get passed down as props to the underlying component defined by `linkAs` prop.\n */\n links: Array<{ label: string, [key: string]: any }>;\n /** allows to add a label that is not a link to the end of the breadcrumb. */\n activeLabel?: string;\n /** label of the element */\n ariaLabel?: string;\n /** allows to add a custom element between the breadcrumb items.\n * Defaults to `>` rendered using the `Icon` component. */\n spacer?: React.ReactElement;\n /** allows to add a custom function to be called `onClick` of a breadcrumb link.\n * The use case for this is for adding custom analytics to the component. */\n clickHandler?: (event: React.MouseEvent, link: any) => void;\n /** The `Breadcrumbs` style variant to use. */\n variant?: 'light' | 'dark';\n /** The `Breadcrumbs` mobile variant view. */\n isMobile?: boolean;\n /** Specifies the base element to use when rendering links, you should generally use either plain 'a' or\n * [react-router's Link](https://reactrouter.com/en/main/components/link).\n */\n linkAs?: React.ElementType;\n}\n\nfunction Breadcrumb({\n links, activeLabel, spacer, clickHandler,\n variant = 'light', isMobile = false, ariaLabel = 'breadcrumb', linkAs = 'a', ...props\n}: BreadcrumbProps) {\n const linkCount = links.length;\n const displayLinks = isMobile ? [links[linkCount - 1]] : links;\n\n return (\n <nav\n aria-label={ariaLabel}\n className={classNames('pgn__breadcrumb', `pgn__breadcrumb-${variant}`)}\n {...props}\n >\n <ol className={classNames('list-inline', { 'is-mobile': isMobile })}>\n {displayLinks.map((link, i) => (\n <React.Fragment key={link.label}>\n <li className={classNames('list-inline-item')}>\n <BreadcrumbLink as={linkAs} clickHandler={clickHandler} linkProps={link} />\n </li>\n {(activeLabel || ((i + 1) < linkCount))\n && (\n <li className=\"list-inline-item\" role=\"presentation\">\n {spacer || <Icon src={ChevronRight} id={`spacer-${i}`} />}\n </li>\n )}\n </React.Fragment>\n ))}\n {!isMobile && activeLabel && <li className=\"list-inline-item active\" key=\"active\" aria-current=\"page\">{activeLabel}</li>}\n </ol>\n </nav>\n );\n}\n\nexport default Breadcrumb;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,UAAU,MAAM,YAAY;AAEnC,OAAOC,cAAc,MAAM,kBAAkB;AAC7C,SAASC,YAAY,QAAQ,aAAa;AAC1C,OAAOC,IAAI,MAAM,SAAS;AA2B1B,SAASC,UAAUA,CAAC;EAClBC,KAAK;EAAEC,WAAW;EAAEC,MAAM;EAAEC,YAAY;EACxCC,OAAO,GAAG,OAAO;EAAEC,QAAQ,GAAG,KAAK;EAAEC,SAAS,GAAG,YAAY;EAAEC,MAAM,GAAG,GAAG;EAAE,GAAGC;AACjE,CAAC,EAAE;EAClB,MAAMC,SAAS,GAAGT,KAAK,CAACU,MAAM;EAC9B,MAAMC,YAAY,GAAGN,QAAQ,GAAG,CAACL,KAAK,CAACS,SAAS,GAAG,CAAC,CAAC,CAAC,GAAGT,KAAK;EAE9D,oBACEN,KAAA,CAAAkB,aAAA;IACE,cAAYN,SAAU;IACtBO,SAAS,EAAElB,UAAU,CAAC,iBAAiB,EAAE,mBAAmBS,OAAO,EAAE,CAAE;IAAA,GACnEI;EAAK,gBAETd,KAAA,CAAAkB,aAAA;IAAIC,SAAS,EAAElB,UAAU,CAAC,aAAa,EAAE;MAAE,WAAW,EAAEU;IAAS,CAAC;EAAE,GACjEM,YAAY,CAACG,GAAG,CAAC,CAACC,IAAI,EAAEC,CAAC,kBACxBtB,KAAA,CAAAkB,aAAA,CAAClB,KAAK,CAACuB,QAAQ;IAACC,GAAG,EAAEH,IAAI,CAACI;EAAM,gBAC9BzB,KAAA,CAAAkB,aAAA;IAAIC,SAAS,EAAElB,UAAU,CAAC,kBAAkB;EAAE,gBAC5CD,KAAA,CAAAkB,aAAA,CAAChB,cAAc;IAACwB,EAAE,EAAEb,MAAO;IAACJ,YAAY,EAAEA,YAAa;IAACkB,SAAS,EAAEN;EAAK,CAAE,CACxE,CAAC,EACJ,CAACd,WAAW,IAAMe,CAAC,GAAG,CAAC,GAAIP,SAAU,kBAEpCf,KAAA,CAAAkB,aAAA;IAAIC,SAAS,EAAC,kBAAkB;IAACS,IAAI,EAAC;EAAc,GACjDpB,MAAM,iBAAIR,KAAA,CAAAkB,aAAA,CAACd,IAAI;IAACyB,GAAG,EAAE1B,YAAa;IAAC2B,EAAE,EAAE,UAAUR,CAAC;EAAG,CAAE,CACtD,CAEQ,CACjB,CAAC,EACD,CAACX,QAAQ,IAAIJ,WAAW,iBAAIP,KAAA,CAAAkB,aAAA;IAAIC,SAAS,EAAC,yBAAyB;IAACK,GAAG,EAAC,QAAQ;IAAC,gBAAa;EAAM,GAAEjB,WAAgB,CACrH,CACD,CAAC;AAEV;AAEA,eAAeF,UAAU","ignoreList":[]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface CardCarouselSubtitleProps {
|
|
3
|
+
/** Specifies contents of the component. */
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
/** Specifies the base element */
|
|
6
|
+
as?: React.ElementType;
|
|
7
|
+
/** A class name to append to the base element. */
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
declare function CardCarouselSubtitle({ children, as, className }: CardCarouselSubtitleProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default CardCarouselSubtitle;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
2
|
import classNames from 'classnames';
|
|
4
3
|
function CardCarouselSubtitle({
|
|
5
4
|
children,
|
|
@@ -11,17 +10,5 @@ function CardCarouselSubtitle({
|
|
|
11
10
|
className: classNames('pgn__card-carousel-subtitle', className)
|
|
12
11
|
}, children);
|
|
13
12
|
}
|
|
14
|
-
CardCarouselSubtitle.propTypes = {
|
|
15
|
-
/** Specifies contents of the component. */
|
|
16
|
-
children: PropTypes.node.isRequired,
|
|
17
|
-
/** Specifies the base element */
|
|
18
|
-
as: PropTypes.oneOfType([PropTypes.string, PropTypes.elementType]),
|
|
19
|
-
/** A class name to append to the base element. */
|
|
20
|
-
className: PropTypes.string
|
|
21
|
-
};
|
|
22
|
-
CardCarouselSubtitle.defaultProps = {
|
|
23
|
-
as: undefined,
|
|
24
|
-
className: undefined
|
|
25
|
-
};
|
|
26
13
|
export default CardCarouselSubtitle;
|
|
27
14
|
//# sourceMappingURL=CardCarouselSubtitle.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardCarouselSubtitle.js","names":["React","
|
|
1
|
+
{"version":3,"file":"CardCarouselSubtitle.js","names":["React","classNames","CardCarouselSubtitle","children","as","className","Component","createElement"],"sources":["../../../src/Card/CardCarousel/CardCarouselSubtitle.tsx"],"sourcesContent":["import React from 'react';\nimport classNames from 'classnames';\n\ninterface CardCarouselSubtitleProps {\n /** Specifies contents of the component. */\n children: React.ReactNode;\n /** Specifies the base element */\n as?: React.ElementType;\n /** A class name to append to the base element. */\n className?: string;\n}\n\nfunction CardCarouselSubtitle({ children, as, className }: CardCarouselSubtitleProps) {\n const Component = as || 'p';\n return (\n <Component className={classNames('pgn__card-carousel-subtitle', className)}>\n {children}\n </Component>\n );\n}\n\nexport default CardCarouselSubtitle;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,UAAU,MAAM,YAAY;AAWnC,SAASC,oBAAoBA,CAAC;EAAEC,QAAQ;EAAEC,EAAE;EAAEC;AAAqC,CAAC,EAAE;EACpF,MAAMC,SAAS,GAAGF,EAAE,IAAI,GAAG;EAC3B,oBACEJ,KAAA,CAAAO,aAAA,CAACD,SAAS;IAACD,SAAS,EAAEJ,UAAU,CAAC,6BAA6B,EAAEI,SAAS;EAAE,GACxEF,QACQ,CAAC;AAEhB;AAEA,eAAeD,oBAAoB","ignoreList":[]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface CardCarouselTitleProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
as?: React.ElementType;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
declare function CardCarouselTitle({ children, as, className }: CardCarouselTitleProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default CardCarouselTitle;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
2
|
import classNames from 'classnames';
|
|
4
3
|
function CardCarouselTitle({
|
|
5
4
|
children,
|
|
@@ -11,14 +10,5 @@ function CardCarouselTitle({
|
|
|
11
10
|
className: classNames('pgn__card-carousel-title', className)
|
|
12
11
|
}, children);
|
|
13
12
|
}
|
|
14
|
-
CardCarouselTitle.propTypes = {
|
|
15
|
-
children: PropTypes.node.isRequired,
|
|
16
|
-
as: PropTypes.oneOfType([PropTypes.string, PropTypes.elementType]),
|
|
17
|
-
className: PropTypes.string
|
|
18
|
-
};
|
|
19
|
-
CardCarouselTitle.defaultProps = {
|
|
20
|
-
as: undefined,
|
|
21
|
-
className: undefined
|
|
22
|
-
};
|
|
23
13
|
export default CardCarouselTitle;
|
|
24
14
|
//# sourceMappingURL=CardCarouselTitle.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardCarouselTitle.js","names":["React","
|
|
1
|
+
{"version":3,"file":"CardCarouselTitle.js","names":["React","classNames","CardCarouselTitle","children","as","className","Component","createElement"],"sources":["../../../src/Card/CardCarousel/CardCarouselTitle.tsx"],"sourcesContent":["import React from 'react';\nimport classNames from 'classnames';\n\ninterface CardCarouselTitleProps {\n children: React.ReactNode;\n as?: React.ElementType;\n className?: string;\n}\n\nfunction CardCarouselTitle({ children, as, className }: CardCarouselTitleProps) {\n const Component = as || 'h2';\n return (\n <Component className={classNames('pgn__card-carousel-title', className)}>\n {children}\n </Component>\n );\n}\n\nexport default CardCarouselTitle;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,UAAU,MAAM,YAAY;AAQnC,SAASC,iBAAiBA,CAAC;EAAEC,QAAQ;EAAEC,EAAE;EAAEC;AAAkC,CAAC,EAAE;EAC9E,MAAMC,SAAS,GAAGF,EAAE,IAAI,IAAI;EAC5B,oBACEJ,KAAA,CAAAO,aAAA,CAACD,SAAS;IAACD,SAAS,EAAEJ,UAAU,CAAC,0BAA0B,EAAEI,SAAS;EAAE,GACrEF,QACQ,CAAC;AAEhB;AAEA,eAAeD,iBAAiB","ignoreList":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type Placement } from 'react-bootstrap/Overlay';
|
|
3
|
-
interface Props extends React.
|
|
3
|
+
interface Props extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
4
|
/** Component that renders the icon, currently defaults to `Icon` */
|
|
5
5
|
iconAs?: React.ComponentType<any>;
|
|
6
6
|
/** Additional CSS class[es] to apply to this button */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","classNames","OverlayTrigger","Tooltip","Icon","IconButton","forwardRef","className","alt","invertColors","icon","src","iconClassNames","onClick","size","variant","iconAs","isActive","children","attrs","ref","invert","activeStyle","IconComponent","createElement","type","IconButtonWithTooltip","tooltipPlacement","tooltipContent","props","placement","overlay","id","undefined"],"sources":["../../src/IconButton/index.tsx"],"sourcesContent":["import React from 'react';\nimport classNames from 'classnames';\nimport { type Placement } from 'react-bootstrap/Overlay';\nimport { OverlayTrigger } from '../Overlay';\nimport Tooltip from '../Tooltip';\nimport Icon from '../Icon';\n\ninterface Props extends React.
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","classNames","OverlayTrigger","Tooltip","Icon","IconButton","forwardRef","className","alt","invertColors","icon","src","iconClassNames","onClick","size","variant","iconAs","isActive","children","attrs","ref","invert","activeStyle","IconComponent","createElement","type","IconButtonWithTooltip","tooltipPlacement","tooltipContent","props","placement","overlay","id","undefined"],"sources":["../../src/IconButton/index.tsx"],"sourcesContent":["import React from 'react';\nimport classNames from 'classnames';\nimport { type Placement } from 'react-bootstrap/Overlay';\nimport { OverlayTrigger } from '../Overlay';\nimport Tooltip from '../Tooltip';\nimport Icon from '../Icon';\n\ninterface Props extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n /** Component that renders the icon, currently defaults to `Icon` */\n iconAs?: React.ComponentType<any>,\n /** Additional CSS class[es] to apply to this button */\n className?: string;\n /** Alt text for your icon. For best practice, avoid using alt text to describe\n * the image in the `IconButton`. Instead, we recommend describing the function\n * of the button. */\n alt: string;\n /** Changes icon styles for dark background */\n invertColors?: boolean;\n /** An icon component to render. Example import of a Paragon icon component:\n * `import { Check } from '@openedx/paragon/icons';`\n * */\n // Note: React.ComponentType is what we want here. React.ElementType would allow some element type strings like \"div\",\n // but we only want to allow components like 'Add' (a specific icon component function/class)\n src?: React.ComponentType;\n /** Extra class names that will be added to the icon */\n iconClassNames?: string;\n /** Click handler for the button */\n onClick?: React.MouseEventHandler<HTMLButtonElement>;\n /** Whether to show the `IconButton` in an active state, whose styling is distinct from default state */\n isActive?: boolean;\n /** @deprecated Using FontAwesome icons is deprecated. Instead, pass iconAs={Icon} src={...} */\n icon?: { prefix?: string; iconName?: string, icon?: any[] },\n /** Type of button (uses Bootstrap options). */\n variant?: 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'light' | 'dark' | 'black' | 'brand';\n /** Size of button to render */\n size?: 'sm' | 'md' | 'inline';\n /** No children */\n children?: never;\n}\n\nconst IconButton = React.forwardRef(({\n className,\n alt,\n invertColors = false,\n icon,\n src,\n iconClassNames,\n onClick = () => {},\n size = 'md',\n variant = 'primary',\n iconAs = Icon,\n isActive = false,\n children, // unused, just here because we don't want it to be part of 'attrs'\n ...attrs\n} : Props, ref: React.ForwardedRef<HTMLButtonElement>) => {\n const invert = invertColors ? 'inverse-' : '';\n const activeStyle = isActive ? `${variant}-` : '';\n const IconComponent = iconAs;\n\n return (\n <button\n aria-label={alt}\n className={classNames(\n 'btn-icon',\n `btn-icon-${invert}${variant}`,\n `btn-icon-${size}`,\n {\n [`btn-icon-${invert}${activeStyle}active`]: isActive,\n },\n className,\n )}\n onClick={onClick}\n type=\"button\"\n ref={ref}\n {...attrs}\n >\n <span className=\"btn-icon__icon-container\">\n {IconComponent && (\n <IconComponent\n className={classNames('btn-icon__icon', iconClassNames)}\n icon={icon as any}\n src={src}\n />\n )}\n </span>\n </button>\n );\n});\n\ninterface PropsWithTooltip extends Props {\n /** Tooltip placement can be top, left, right etc, choose from https://popper.js.org/docs/v2/constructors/#options */\n tooltipPlacement?: Placement,\n /** Any content to pass to tooltip content area */\n tooltipContent: React.ReactNode,\n}\n\n/**\n * An icon button wrapped in overlaytrigger to display a tooltip.\n */\nfunction IconButtonWithTooltip({\n tooltipPlacement = 'top', tooltipContent, ...props\n}: PropsWithTooltip) {\n const invert = props.invertColors ? 'inverse-' : '';\n return (\n <OverlayTrigger\n placement={tooltipPlacement}\n overlay={(\n <Tooltip\n id={`iconbutton-tooltip-${tooltipPlacement}`}\n variant={invert ? 'light' : undefined}\n >\n {tooltipContent}\n </Tooltip>\n )}\n >\n <IconButton {...props} />\n </OverlayTrigger>\n );\n}\n\n(IconButton as any).IconButtonWithTooltip = IconButtonWithTooltip;\n\nexport default IconButton as typeof IconButton & {\n IconButtonWithTooltip: typeof IconButtonWithTooltip,\n};\nexport { IconButtonWithTooltip };\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,UAAU,MAAM,YAAY;AAEnC,SAASC,cAAc,QAAQ,YAAY;AAC3C,OAAOC,OAAO,MAAM,YAAY;AAChC,OAAOC,IAAI,MAAM,SAAS;AAmC1B,MAAMC,UAAU,gBAAGL,KAAK,CAACM,UAAU,CAAC,CAAC;EACnCC,SAAS;EACTC,GAAG;EACHC,YAAY,GAAG,KAAK;EACpBC,IAAI;EACJC,GAAG;EACHC,cAAc;EACdC,OAAO,GAAGA,CAAA,KAAM,CAAC,CAAC;EAClBC,IAAI,GAAG,IAAI;EACXC,OAAO,GAAG,SAAS;EACnBC,MAAM,GAAGZ,IAAI;EACba,QAAQ,GAAG,KAAK;EAChBC,QAAQ;EAAE;EACV,GAAGC;AACG,CAAC,EAAEC,GAA0C,KAAK;EACxD,MAAMC,MAAM,GAAGZ,YAAY,GAAG,UAAU,GAAG,EAAE;EAC7C,MAAMa,WAAW,GAAGL,QAAQ,GAAG,GAAGF,OAAO,GAAG,GAAG,EAAE;EACjD,MAAMQ,aAAa,GAAGP,MAAM;EAE5B,oBACEhB,KAAA,CAAAwB,aAAA;IACE,cAAYhB,GAAI;IAChBD,SAAS,EAAEN,UAAU,CACnB,UAAU,EACV,YAAYoB,MAAM,GAAGN,OAAO,EAAE,EAC9B,YAAYD,IAAI,EAAE,EAClB;MACE,CAAC,YAAYO,MAAM,GAAGC,WAAW,QAAQ,GAAGL;IAC9C,CAAC,EACDV,SACF,CAAE;IACFM,OAAO,EAAEA,OAAQ;IACjBY,IAAI,EAAC,QAAQ;IACbL,GAAG,EAAEA,GAAI;IAAA,GACLD;EAAK,gBAETnB,KAAA,CAAAwB,aAAA;IAAMjB,SAAS,EAAC;EAA0B,GACvCgB,aAAa,iBACZvB,KAAA,CAAAwB,aAAA,CAACD,aAAa;IACZhB,SAAS,EAAEN,UAAU,CAAC,gBAAgB,EAAEW,cAAc,CAAE;IACxDF,IAAI,EAAEA,IAAY;IAClBC,GAAG,EAAEA;EAAI,CACV,CAEC,CACA,CAAC;AAEb,CAAC,CAAC;AASF;AACA;AACA;AACA,SAASe,qBAAqBA,CAAC;EAC7BC,gBAAgB,GAAG,KAAK;EAAEC,cAAc;EAAE,GAAGC;AAC7B,CAAC,EAAE;EACnB,MAAMR,MAAM,GAAGQ,KAAK,CAACpB,YAAY,GAAG,UAAU,GAAG,EAAE;EACnD,oBACET,KAAA,CAAAwB,aAAA,CAACtB,cAAc;IACb4B,SAAS,EAAEH,gBAAiB;IAC5BI,OAAO,eACL/B,KAAA,CAAAwB,aAAA,CAACrB,OAAO;MACN6B,EAAE,EAAE,sBAAsBL,gBAAgB,EAAG;MAC7CZ,OAAO,EAAEM,MAAM,GAAG,OAAO,GAAGY;IAAU,GAErCL,cACM;EACT,gBAEF5B,KAAA,CAAAwB,aAAA,CAACnB,UAAU;IAAA,GAAKwB;EAAK,CAAG,CACV,CAAC;AAErB;AAECxB,UAAU,CAASqB,qBAAqB,GAAGA,qBAAqB;AAEjE,eAAerB,UAAU;AAGzB,SAASqB,qBAAqB","ignoreList":[]}
|
|
@@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
|
|
|
4
4
|
/**
|
|
5
5
|
*
|
|
6
6
|
* @param {object} args arguments
|
|
7
|
-
* @param {
|
|
7
|
+
* @param {string} args.activeValue the current value of the active/selected iconButton.
|
|
8
8
|
* if not provided, none of the iconButtons will initially be active
|
|
9
9
|
* @param {Function} args.onChange callback to call when toggle value changes.
|
|
10
10
|
* Receives value of the selected toggle button.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","useMemo","PropTypes","IconButtonToggle","activeValue","onChange","children","iconButtons","Children","map","iconButton","isActive","props","value","cloneElement","onClick","createElement","className","defaultProps","undefined","propTypes","string","func","node","isRequired"],"sources":["../../src/IconButtonToggle/index.jsx"],"sourcesContent":["import React, { useMemo } from 'react';\nimport PropTypes from 'prop-types';\n\n/**\n *\n * @param {object} args arguments\n * @param {
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","useMemo","PropTypes","IconButtonToggle","activeValue","onChange","children","iconButtons","Children","map","iconButton","isActive","props","value","cloneElement","onClick","createElement","className","defaultProps","undefined","propTypes","string","func","node","isRequired"],"sources":["../../src/IconButtonToggle/index.jsx"],"sourcesContent":["import React, { useMemo } from 'react';\nimport PropTypes from 'prop-types';\n\n/**\n *\n * @param {object} args arguments\n * @param {string} args.activeValue the current value of the active/selected iconButton.\n * if not provided, none of the iconButtons will initially be active\n * @param {Function} args.onChange callback to call when toggle value changes.\n * Receives value of the selected toggle button.\n * @param {Array<IconButton>} args.children children components expected to be IconButton\n * @returns {React.Component} A React component\n */\nfunction IconButtonToggle({ activeValue, onChange, children }) {\n const iconButtons = useMemo(\n () => React.Children.map(children, iconButton => {\n const isActive = iconButton.props.value === activeValue;\n return React.cloneElement(iconButton, {\n onClick: () => { onChange(iconButton.props.value); },\n isActive,\n 'aria-selected': isActive,\n 'data-testid': `icon-btn-val-${iconButton.props.value}`,\n });\n }),\n [children, activeValue, onChange],\n );\n return <div className=\"pgn__icon-button-toggle__container\">{iconButtons}</div>;\n}\n\nIconButtonToggle.defaultProps = {\n onChange: () => {},\n activeValue: undefined,\n};\n\nIconButtonToggle.propTypes = {\n /** value to use to check which button to set to active */\n activeValue: PropTypes.string,\n /** handler that is passed the currently active button's value when a button is selected */\n onChange: PropTypes.func,\n /** child nodes of type `IconButton` (or its subcomponents) to be rendered within toggle group */\n children: PropTypes.node.isRequired,\n};\n\nexport default IconButtonToggle;\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,OAAO,QAAQ,OAAO;AACtC,OAAOC,SAAS,MAAM,YAAY;;AAElC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,gBAAgBA,CAAC;EAAEC,WAAW;EAAEC,QAAQ;EAAEC;AAAS,CAAC,EAAE;EAC7D,MAAMC,WAAW,GAAGN,OAAO,CACzB,MAAMD,KAAK,CAACQ,QAAQ,CAACC,GAAG,CAACH,QAAQ,EAAEI,UAAU,IAAI;IAC/C,MAAMC,QAAQ,GAAGD,UAAU,CAACE,KAAK,CAACC,KAAK,KAAKT,WAAW;IACvD,oBAAOJ,KAAK,CAACc,YAAY,CAACJ,UAAU,EAAE;MACpCK,OAAO,EAAEA,CAAA,KAAM;QAAEV,QAAQ,CAACK,UAAU,CAACE,KAAK,CAACC,KAAK,CAAC;MAAE,CAAC;MACpDF,QAAQ;MACR,eAAe,EAAEA,QAAQ;MACzB,aAAa,EAAE,gBAAgBD,UAAU,CAACE,KAAK,CAACC,KAAK;IACvD,CAAC,CAAC;EACJ,CAAC,CAAC,EACF,CAACP,QAAQ,EAAEF,WAAW,EAAEC,QAAQ,CAClC,CAAC;EACD,oBAAOL,KAAA,CAAAgB,aAAA;IAAKC,SAAS,EAAC;EAAoC,GAAEV,WAAiB,CAAC;AAChF;AAEAJ,gBAAgB,CAACe,YAAY,GAAG;EAC9Bb,QAAQ,EAAEA,CAAA,KAAM,CAAC,CAAC;EAClBD,WAAW,EAAEe;AACf,CAAC;AAEDhB,gBAAgB,CAACiB,SAAS,GAAG;EAC3B;EACAhB,WAAW,EAAEF,SAAS,CAACmB,MAAM;EAC7B;EACAhB,QAAQ,EAAEH,SAAS,CAACoB,IAAI;EACxB;EACAhB,QAAQ,EAAEJ,SAAS,CAACqB,IAAI,CAACC;AAC3B,CAAC;AAED,eAAerB,gBAAgB","ignoreList":[]}
|
|
@@ -91,6 +91,10 @@
|
|
|
91
91
|
&.pgn__searchfield--external {
|
|
92
92
|
border: none;
|
|
93
93
|
|
|
94
|
+
.pgn__searchfield-form {
|
|
95
|
+
background-color: transparent;
|
|
96
|
+
}
|
|
97
|
+
|
|
94
98
|
&.has-focus {
|
|
95
99
|
box-shadow: none;
|
|
96
100
|
|
|
@@ -112,6 +116,7 @@
|
|
|
112
116
|
display: flex;
|
|
113
117
|
align-items: center;
|
|
114
118
|
width: 100%;
|
|
119
|
+
background-color: var(--pgn-color-search-field-form-bg);
|
|
115
120
|
border: var(--pgn-size-search-field-border-width-base) solid var(--pgn-color-search-field-border-base);
|
|
116
121
|
|
|
117
122
|
&:hover,
|
package/dist/core.css
CHANGED
|
@@ -15529,6 +15529,9 @@ select.form-control {
|
|
|
15529
15529
|
.pgn__searchfield.pgn__searchfield--external {
|
|
15530
15530
|
border: none;
|
|
15531
15531
|
}
|
|
15532
|
+
.pgn__searchfield.pgn__searchfield--external .pgn__searchfield-form {
|
|
15533
|
+
background-color: transparent;
|
|
15534
|
+
}
|
|
15532
15535
|
.pgn__searchfield.pgn__searchfield--external.has-focus {
|
|
15533
15536
|
box-shadow: none;
|
|
15534
15537
|
}
|
|
@@ -15546,6 +15549,7 @@ select.form-control {
|
|
|
15546
15549
|
display: flex;
|
|
15547
15550
|
align-items: center;
|
|
15548
15551
|
width: 100%;
|
|
15552
|
+
background-color: var(--pgn-color-search-field-form-bg);
|
|
15549
15553
|
border: var(--pgn-size-search-field-border-width-base) solid var(--pgn-color-search-field-border-base);
|
|
15550
15554
|
}
|
|
15551
15555
|
.pgn__searchfield .pgn__searchfield_wrapper:hover, .pgn__searchfield .pgn__searchfield_wrapper:active {
|