@next-degree/pickle-shared-js 0.6.48 → 0.6.50
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/components/jobPost/JobDescription.cjs +13 -4
- package/dist/components/jobPost/JobDescription.cjs.map +1 -1
- package/dist/components/jobPost/JobDescription.js +13 -4
- package/dist/components/jobPost/JobDescription.js.map +1 -1
- package/dist/components/jobPost/JobPost.cjs +13 -4
- package/dist/components/jobPost/JobPost.cjs.map +1 -1
- package/dist/components/jobPost/JobPost.d.cts +1 -1
- package/dist/components/jobPost/JobPost.d.ts +1 -1
- package/dist/components/jobPost/JobPost.js +13 -4
- package/dist/components/jobPost/JobPost.js.map +1 -1
- package/dist/components/primitives/command.d.cts +1 -1
- package/dist/components/primitives/command.d.ts +1 -1
- package/dist/components/ui/ReadMore.cjs +13 -4
- package/dist/components/ui/ReadMore.cjs.map +1 -1
- package/dist/components/ui/ReadMore.js +13 -4
- package/dist/components/ui/ReadMore.js.map +1 -1
- package/dist/components/ui/Select.cjs +5 -11
- package/dist/components/ui/Select.cjs.map +1 -1
- package/dist/components/ui/Select.js +5 -11
- package/dist/components/ui/Select.js.map +1 -1
- package/dist/components/ui/StepTabs.cjs +92 -0
- package/dist/components/ui/StepTabs.cjs.map +1 -0
- package/dist/components/ui/StepTabs.d.cts +13 -0
- package/dist/components/ui/StepTabs.d.ts +13 -0
- package/dist/components/ui/StepTabs.js +58 -0
- package/dist/components/ui/StepTabs.js.map +1 -0
- package/dist/{displayText-mYUVo6Ek.d.cts → displayText-BCQw5Qq-.d.cts} +2 -2
- package/dist/{displayText-DDf9iWyg.d.ts → displayText-Bqmpx1Va.d.ts} +2 -2
- package/dist/hooks/useDisplayText.d.cts +3 -3
- package/dist/hooks/useDisplayText.d.ts +3 -3
- package/dist/index.cjs +18 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +18 -15
- package/dist/index.js.map +1 -1
- package/dist/{job_posting_service_latest-Dn5s8beY.d.cts → job_posting_service_latest-C2z66hFK.d.cts} +177 -177
- package/dist/{job_posting_service_latest-Dn5s8beY.d.ts → job_posting_service_latest-C2z66hFK.d.ts} +177 -177
- package/dist/lib/locations.d.cts +2 -2
- package/dist/lib/locations.d.ts +2 -2
- package/dist/lib/mappings.d.cts +3 -3
- package/dist/lib/mappings.d.ts +3 -3
- package/dist/lib/salaryRange.d.cts +1 -1
- package/dist/lib/salaryRange.d.ts +1 -1
- package/dist/services/displayText.d.cts +3 -3
- package/dist/services/displayText.d.ts +3 -3
- package/dist/styles/globals.css +96 -6
- package/dist/styles/globals.css.map +1 -1
- package/dist/types/data/company_service_latest.d.cts +1 -1
- package/dist/types/data/company_service_latest.d.ts +1 -1
- package/dist/types/data/job_posting_service_latest.d.cts +1 -1
- package/dist/types/data/job_posting_service_latest.d.ts +1 -1
- package/dist/types/data/shared_pickle_output_latest.d.cts +1 -1
- package/dist/types/data/shared_pickle_output_latest.d.ts +1 -1
- package/package.json +5 -1
- package/dist/{company_service_latest-DelYl1hO.d.cts → company_service_latest-B7KhyYDc.d.cts} +174 -174
- package/dist/{company_service_latest-DelYl1hO.d.ts → company_service_latest-B7KhyYDc.d.ts} +174 -174
- package/dist/{shared_pickle_output_latest-DbAgINuf.d.cts → shared_pickle_output_latest-_L9GxVle.d.cts} +11 -11
- package/dist/{shared_pickle_output_latest-DbAgINuf.d.ts → shared_pickle_output_latest-_L9GxVle.d.ts} +11 -11
package/dist/index.d.cts
CHANGED
|
@@ -27,9 +27,9 @@ export { BackButton } from './components/buttons/BackButton.cjs';
|
|
|
27
27
|
export { WindowHistoryProvider } from './contexts/WindowHistoryProvider.cjs';
|
|
28
28
|
export { useDisplayText } from './hooks/useDisplayText.cjs';
|
|
29
29
|
export { useWindowHistory } from './hooks/useWindowHistory.cjs';
|
|
30
|
-
export { j as JobPostService } from './job_posting_service_latest-
|
|
31
|
-
export { c as CompanyService } from './company_service_latest-
|
|
32
|
-
export { s as SharedService } from './shared_pickle_output_latest-
|
|
30
|
+
export { j as JobPostService } from './job_posting_service_latest-C2z66hFK.cjs';
|
|
31
|
+
export { c as CompanyService } from './company_service_latest-B7KhyYDc.cjs';
|
|
32
|
+
export { s as SharedService } from './shared_pickle_output_latest-_L9GxVle.cjs';
|
|
33
33
|
import 'react';
|
|
34
34
|
import 'cva/types';
|
|
35
35
|
import 'react/jsx-runtime';
|
|
@@ -40,5 +40,5 @@ import '@googlemaps/google-maps-services-js';
|
|
|
40
40
|
import 'next/link';
|
|
41
41
|
import 'clsx';
|
|
42
42
|
import './lib/icons.cjs';
|
|
43
|
-
import './displayText-
|
|
43
|
+
import './displayText-BCQw5Qq-.cjs';
|
|
44
44
|
import 'zod';
|
package/dist/index.d.ts
CHANGED
|
@@ -27,9 +27,9 @@ export { BackButton } from './components/buttons/BackButton.js';
|
|
|
27
27
|
export { WindowHistoryProvider } from './contexts/WindowHistoryProvider.js';
|
|
28
28
|
export { useDisplayText } from './hooks/useDisplayText.js';
|
|
29
29
|
export { useWindowHistory } from './hooks/useWindowHistory.js';
|
|
30
|
-
export { j as JobPostService } from './job_posting_service_latest-
|
|
31
|
-
export { c as CompanyService } from './company_service_latest-
|
|
32
|
-
export { s as SharedService } from './shared_pickle_output_latest-
|
|
30
|
+
export { j as JobPostService } from './job_posting_service_latest-C2z66hFK.js';
|
|
31
|
+
export { c as CompanyService } from './company_service_latest-B7KhyYDc.js';
|
|
32
|
+
export { s as SharedService } from './shared_pickle_output_latest-_L9GxVle.js';
|
|
33
33
|
import 'react';
|
|
34
34
|
import 'cva/types';
|
|
35
35
|
import 'react/jsx-runtime';
|
|
@@ -40,5 +40,5 @@ import '@googlemaps/google-maps-services-js';
|
|
|
40
40
|
import 'next/link';
|
|
41
41
|
import 'clsx';
|
|
42
42
|
import './lib/icons.js';
|
|
43
|
-
import './displayText-
|
|
43
|
+
import './displayText-Bqmpx1Va.js';
|
|
44
44
|
import 'zod';
|
package/dist/index.js
CHANGED
|
@@ -138,18 +138,12 @@ var Select = forwardRef3(
|
|
|
138
138
|
}, [value]);
|
|
139
139
|
const toggleOpen = () => setOpen((prev) => !prev);
|
|
140
140
|
const closeOnEscape = (event) => event.key === "Escape" && setOpen(false);
|
|
141
|
+
const handleOnOpenChange = (isOpen) => (!multiselect || isOpen) && setOpen(isOpen);
|
|
141
142
|
const setValueOnEnter = (event, value2) => event.key === "Enter" && handleChange(value2);
|
|
143
|
+
const getLabel = () => selected.map((o) => options?.find((option) => option.value === o)?.title).join(", ");
|
|
142
144
|
const chipLabels = selected?.map((s) => options?.find(({ value: value2 }) => value2 === s)).filter(Boolean);
|
|
143
|
-
function handleLabels() {
|
|
144
|
-
if (multiselect) {
|
|
145
|
-
return selected.map((o) => options?.find((option) => option.value === o)?.title).join(", ");
|
|
146
|
-
}
|
|
147
|
-
return options?.find((option) => option.value === selected.join())?.title;
|
|
148
|
-
}
|
|
149
|
-
function handleOnOpenChange(isOpen) {
|
|
150
|
-
if (!multiselect || isOpen) setOpen(isOpen);
|
|
151
|
-
}
|
|
152
145
|
function handleChange(newValue) {
|
|
146
|
+
if (newValue === "" && !multiselect) return;
|
|
153
147
|
let newSelected = [];
|
|
154
148
|
setSelected((prev) => {
|
|
155
149
|
newSelected = prev.includes(newValue) ? prev.filter((item) => item !== newValue) : [...prev, newValue];
|
|
@@ -198,8 +192,8 @@ var Select = forwardRef3(
|
|
|
198
192
|
SelectPrimitive.Value,
|
|
199
193
|
{
|
|
200
194
|
placeholder: placeholder ?? "Select an option",
|
|
201
|
-
"aria-label":
|
|
202
|
-
children:
|
|
195
|
+
"aria-label": getLabel(),
|
|
196
|
+
children: getLabel()
|
|
203
197
|
}
|
|
204
198
|
) }),
|
|
205
199
|
/* @__PURE__ */ jsx6(
|
|
@@ -1606,10 +1600,19 @@ function ReadMore({ text, ...props }) {
|
|
|
1606
1600
|
const snippet = createReadMoreText(text, maxWords, isExpanded);
|
|
1607
1601
|
return /* @__PURE__ */ jsxs14("div", { ...props, children: [
|
|
1608
1602
|
/* @__PURE__ */ jsx25("div", { "data-testid": "read-more-text", className: "prose lg:prose-lg", children: /* @__PURE__ */ jsx25(Markdown, { children: snippet }) }),
|
|
1609
|
-
/* @__PURE__ */ jsx25(
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1603
|
+
/* @__PURE__ */ jsx25(
|
|
1604
|
+
Button,
|
|
1605
|
+
{
|
|
1606
|
+
type: "button",
|
|
1607
|
+
className: "mt-2 flex items-center justify-center",
|
|
1608
|
+
variant: "link",
|
|
1609
|
+
onClick: toggleText,
|
|
1610
|
+
children: /* @__PURE__ */ jsxs14("p", { className: "text-sm font-bold underline underline-offset-2", children: [
|
|
1611
|
+
"Read ",
|
|
1612
|
+
isExpanded ? "less" : "more"
|
|
1613
|
+
] })
|
|
1614
|
+
}
|
|
1615
|
+
)
|
|
1613
1616
|
] });
|
|
1614
1617
|
}
|
|
1615
1618
|
|