@odx/websites-react 1.2.32 → 1.2.33

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.
@@ -1,8 +1,12 @@
1
1
  import React from 'react';
2
+ import { LinkComponent, LinkComponentProps } from '../../../utils';
2
3
  export interface StudentsJob {
3
4
  title: string;
4
5
  link: React.ReactNode;
5
6
  }
7
+ export interface StudentsJobLinkProps extends LinkComponent, LinkComponentProps {
8
+ }
9
+ export declare const StudentsJobLink: ({ LinkComponent, href, ...props }: StudentsJobLinkProps) => import("react/jsx-runtime").JSX.Element;
6
10
  export interface StudentsJobListProps {
7
11
  jobs: StudentsJob[];
8
12
  visibleCount: number;
@@ -1 +1 @@
1
- {"version":3,"file":"studentsJobList.d.ts","sourceRoot":"","sources":["../../../../src/web/layout/studentsJobList/studentsJobList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;CACvB;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,WAAW,EAAE,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAClC;AAED,eAAO,MAAM,eAAe,GAAI,mDAK7B,oBAAoB,4CAiCtB,CAAC"}
1
+ {"version":3,"file":"studentsJobList.d.ts","sourceRoot":"","sources":["../../../../src/web/layout/studentsJobList/studentsJobList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAK,aAAa,EAAE,kBAAkB,EAAC,MAAM,gBAAgB,CAAC;AAIrE,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;CACvB;AAED,MAAM,WAAW,oBACf,SAAQ,aAAa,EAAE,kBAAkB;CAAG;AAE9C,eAAO,MAAM,eAAe,GAAI,mCAI7B,oBAAoB,4CAWtB,CAAC;AAEF,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,WAAW,EAAE,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAClC;AAED,eAAO,MAAM,eAAe,GAAI,mDAK7B,oBAAoB,4CAiCtB,CAAC"}
@@ -2,11 +2,16 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { FlexBox } from '../../../components/layout/flexBox/FlexBox';
3
3
  import { BodyText } from '../../../components/typography/bodyText/BodyText';
4
4
  import { cn } from '../../../utils';
5
+ import { Link } from '../../../components/actions/link';
6
+ import { IconCoreLinkExternal } from '../../../components/icon';
7
+ export const StudentsJobLink = ({ LinkComponent = 'a', href, ...props }) => {
8
+ return (_jsx(Link, { LinkComponent: LinkComponent, href: href, icon: _jsx(IconCoreLinkExternal, { size: 'md' }), iconRight: true, size: 'small', ...props }));
9
+ };
5
10
  export const StudentsJobList = ({ jobs, visibleCount, expanded = false, showMoreButton, }) => {
6
11
  const visibleJobs = jobs.slice(0, visibleCount);
7
12
  const hiddenJobs = jobs.slice(visibleCount);
8
13
  const hasMoreJobs = hiddenJobs.length > 0;
9
- const renderJobItem = (job, hidden) => (_jsx("li", { className: cn('bg-surface-secondary gap-1 py-4 px-4 rounded-md', hidden && 'hidden'), children: _jsxs("div", { className: " flex flex-col flex-nowrap gap-4 items-start md:flex-row", children: [_jsx(BodyText, { weight: 'bold', className: "min-w-0 flex-1", children: job.title }), _jsx("div", { className: "shrink-0", children: job.link })] }) }, job.title));
14
+ const renderJobItem = (job, hidden) => (_jsx("li", { className: cn('bg-surface-secondary gap-1 py-4 px-4 rounded-md', hidden && 'hidden'), children: _jsxs("div", { className: " flex flex-col flex-nowrap gap-4 items-start md:flex-row", children: [_jsx(BodyText, { weight: 'bold', variant: 'small', className: "min-w-0 flex-1", children: job.title }), _jsx("div", { className: "shrink-0", children: job.link })] }) }, job.title));
10
15
  return (_jsxs("ul", { className: "gap-2 flex flex-col", children: [visibleJobs.map(job => renderJobItem(job, false)), hiddenJobs.map(job => renderJobItem(job, !expanded)), hasMoreJobs && (_jsx(FlexBox, { direction: "row", wrap: false, justify: "center", children: showMoreButton }))] }));
11
16
  };
12
17
  //# sourceMappingURL=studentsJobList.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"studentsJobList.js","sourceRoot":"","sources":["../../../../src/web/layout/studentsJobList/studentsJobList.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,OAAO,EAAC,MAAM,4CAA4C,CAAC;AACnE,OAAO,EAAC,QAAQ,EAAC,MAAM,kDAAkD,CAAC;AAC1E,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAclC,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAC9B,IAAI,EACJ,YAAY,EACZ,QAAQ,GAAG,KAAK,EAChB,cAAc,GACO,EAAE,EAAE;IACzB,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,YAAY,CAAC,CAAC;IAChD,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;IAC5C,MAAM,WAAW,GAAG,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC;IAE1C,MAAM,aAAa,GAAG,CAAC,GAAgB,EAAE,MAAe,EAAE,EAAE,CAAC,CAC3D,aAEE,SAAS,EAAE,EAAE,CACX,iDAAiD,EACjD,MAAM,IAAI,QAAQ,CACnB,YAED,eAAK,SAAS,EAAC,0DAA0D,aACvE,KAAC,QAAQ,IAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAC,gBAAgB,YACjD,GAAG,CAAC,KAAK,GACD,EACX,cAAK,SAAS,EAAC,UAAU,YAAE,GAAG,CAAC,IAAI,GAAO,IACtC,IAXD,GAAG,CAAC,KAAK,CAYX,CACN,CAAC;IAEF,OAAO,CACL,cAAI,SAAS,EAAC,qBAAqB,aAChC,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,aAAa,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,EACjD,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,aAAa,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC,EACpD,WAAW,IAAI,CACd,KAAC,OAAO,IAAC,SAAS,EAAC,KAAK,EAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAC,QAAQ,YACnD,cAAc,GACP,CACX,IACE,CACN,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"studentsJobList.js","sourceRoot":"","sources":["../../../../src/web/layout/studentsJobList/studentsJobList.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,OAAO,EAAC,MAAM,4CAA4C,CAAC;AACnE,OAAO,EAAC,QAAQ,EAAC,MAAM,kDAAkD,CAAC;AAC1E,OAAO,EAAC,EAAE,EAAoC,MAAM,gBAAgB,CAAC;AACrE,OAAO,EAAC,IAAI,EAAC,MAAM,kCAAkC,CAAC;AACtD,OAAO,EAAC,oBAAoB,EAAC,MAAM,0BAA0B,CAAC;AAU9D,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAC9B,aAAa,GAAG,GAAG,EACnB,IAAI,EACJ,GAAG,KAAK,EACa,EAAE,EAAE;IACzB,OAAO,CACL,KAAC,IAAI,IACH,aAAa,EAAE,aAAa,EAC5B,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,KAAC,oBAAoB,IAAC,IAAI,EAAE,IAAI,GAAI,EAC1C,SAAS,EAAE,IAAI,EACf,IAAI,EAAE,OAAO,KACT,KAAK,GACT,CACH,CAAC;AACJ,CAAC,CAAC;AASF,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EA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
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "description": "ODX React component library for websites",
7
7
  "type": "module",