formica-ui-lib 1.0.331 → 1.0.333
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/assets/fonts/Rockwell-bold.otf +0 -0
- package/dist/assets/fonts/Rockwell.otf +0 -0
- package/dist/componentProps/molecules/cards/documentinfocard/DocumentInfoCardProps.d.ts +1 -0
- package/dist/componentProps/organisms/collections/documentinfocollection/DocumentInfoCollectionProps.d.ts +1 -0
- package/dist/componentProps/templates/documentresultstemplate/DocumentResultsTemplateProps.d.ts +1 -0
- package/dist/index.cjs +2 -2
- package/dist/index.js +54 -52
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6825,20 +6825,20 @@ var Mo = {
|
|
|
6825
6825
|
children: r
|
|
6826
6826
|
}) : null]
|
|
6827
6827
|
});
|
|
6828
|
-
}, tc = ({ documentInfoCardItem: e, layoutVariant: t = "table",
|
|
6829
|
-
let { name:
|
|
6830
|
-
ariaLabel:
|
|
6831
|
-
onCardClick: () =>
|
|
6828
|
+
}, tc = ({ documentInfoCardItem: e, layoutVariant: t = "table", downloadLabelTemplate: n = "Download {name}", onDownloadClick: r, onRangeClick: i }) => {
|
|
6829
|
+
let { name: a, range: o, documentType: s, documentSubtype: c } = e, d = n.replace("{name}", a), f = /* @__PURE__ */ l(q, {
|
|
6830
|
+
ariaLabel: d,
|
|
6831
|
+
onCardClick: () => r({ documentInfoCardItem: e }),
|
|
6832
6832
|
className: "absolute inset-0 cursor-pointer border-0 bg-transparent p-0 text-left focus-visible:z-10 focus-visible:outline-2 focus-visible:outline-offset-[-2px] focus-visible:outline-primary",
|
|
6833
|
-
children: /* @__PURE__ */
|
|
6833
|
+
children: /* @__PURE__ */ l("span", {
|
|
6834
6834
|
className: "sr-only",
|
|
6835
|
-
children:
|
|
6835
|
+
children: d
|
|
6836
6836
|
})
|
|
6837
6837
|
});
|
|
6838
6838
|
return t === "compact" ? /* @__PURE__ */ u("article", {
|
|
6839
6839
|
className: "relative flex w-full items-center gap-4 border-b border-borderTertiary px-3 py-3 transition-colors hover:bg-multibarBackground/20",
|
|
6840
6840
|
children: [
|
|
6841
|
-
|
|
6841
|
+
f,
|
|
6842
6842
|
/* @__PURE__ */ u("div", {
|
|
6843
6843
|
className: "pointer-events-none flex min-w-0 flex-1 flex-col gap-1 md:flex-row md:items-center md:gap-6",
|
|
6844
6844
|
children: [/* @__PURE__ */ u("div", {
|
|
@@ -6846,26 +6846,26 @@ var Mo = {
|
|
|
6846
6846
|
children: [/* @__PURE__ */ l(v, {
|
|
6847
6847
|
variant: "free",
|
|
6848
6848
|
className: "text-sm font-medium text-primary",
|
|
6849
|
-
children:
|
|
6849
|
+
children: a
|
|
6850
6850
|
}), /* @__PURE__ */ u("div", {
|
|
6851
6851
|
className: "flex flex-wrap items-center gap-2 text-xs text-tertiary",
|
|
6852
6852
|
children: [
|
|
6853
|
-
|
|
6854
|
-
|
|
6853
|
+
s ? /* @__PURE__ */ l("span", { children: s }) : null,
|
|
6854
|
+
s && c ? /* @__PURE__ */ l("span", {
|
|
6855
6855
|
"aria-hidden": "true",
|
|
6856
6856
|
children: "•"
|
|
6857
6857
|
}) : null,
|
|
6858
|
-
|
|
6858
|
+
c ? /* @__PURE__ */ l("span", { children: c }) : null
|
|
6859
6859
|
]
|
|
6860
6860
|
})]
|
|
6861
|
-
}),
|
|
6861
|
+
}), o ? /* @__PURE__ */ l("div", {
|
|
6862
6862
|
className: "md:w-40 md:shrink-0",
|
|
6863
6863
|
children: /* @__PURE__ */ l(P, {
|
|
6864
6864
|
variant: "link",
|
|
6865
6865
|
intent: "accent",
|
|
6866
|
-
onClick: () =>
|
|
6866
|
+
onClick: () => i({ documentInfoCardItem: e }),
|
|
6867
6867
|
className: "pointer-events-auto relative z-20 p-0! text-left! text-sm",
|
|
6868
|
-
children:
|
|
6868
|
+
children: o
|
|
6869
6869
|
})
|
|
6870
6870
|
}) : null]
|
|
6871
6871
|
}),
|
|
@@ -6880,28 +6880,28 @@ var Mo = {
|
|
|
6880
6880
|
}) : /* @__PURE__ */ u("div", {
|
|
6881
6881
|
className: "relative w-full flex flex-row justify-between items-center py-5 border-b border-borderTertiary hover:bg-multibarBackground/20 transition-colors",
|
|
6882
6882
|
children: [
|
|
6883
|
-
|
|
6883
|
+
f,
|
|
6884
6884
|
/* @__PURE__ */ u("div", {
|
|
6885
6885
|
className: "pointer-events-none w-full flex flex-col md:flex-row justify-between items-start md:items-center gap-1 md:gap-4",
|
|
6886
6886
|
children: [
|
|
6887
6887
|
/* @__PURE__ */ l(v, {
|
|
6888
6888
|
className: "flex-2",
|
|
6889
|
-
children:
|
|
6889
|
+
children: a
|
|
6890
6890
|
}),
|
|
6891
6891
|
/* @__PURE__ */ l(P, {
|
|
6892
6892
|
variant: "link",
|
|
6893
6893
|
intent: "accent",
|
|
6894
|
-
onClick: () =>
|
|
6894
|
+
onClick: () => i({ documentInfoCardItem: e }),
|
|
6895
6895
|
className: "pointer-events-auto relative z-20 flex-1 justify-start! text-xs md:text-sm p-0! text-left!",
|
|
6896
|
-
children:
|
|
6896
|
+
children: o
|
|
6897
6897
|
}),
|
|
6898
6898
|
/* @__PURE__ */ l(v, {
|
|
6899
6899
|
className: "flex-1 text-xs md:text-sm",
|
|
6900
|
-
children:
|
|
6900
|
+
children: s
|
|
6901
6901
|
}),
|
|
6902
6902
|
/* @__PURE__ */ l(v, {
|
|
6903
6903
|
className: "flex-1 text-xs md:text-sm",
|
|
6904
|
-
children:
|
|
6904
|
+
children: c
|
|
6905
6905
|
})
|
|
6906
6906
|
]
|
|
6907
6907
|
}),
|
|
@@ -11025,7 +11025,7 @@ var Mo = {
|
|
|
11025
11025
|
variant: "free",
|
|
11026
11026
|
className: "text-sm text-primary",
|
|
11027
11027
|
children: t
|
|
11028
|
-
}), Mu = ({ layoutVariant: e = "table", documentTitleLabel: t = "Document Title", documentRangeLabel: n = "Range", documentTypeLabel: r = "Type", documentSubtypeLabel: i = "Subtype", emptyMessage: a = "No Documents Are Available",
|
|
11028
|
+
}), Mu = ({ layoutVariant: e = "table", documentTitleLabel: t = "Document Title", documentRangeLabel: n = "Range", documentTypeLabel: r = "Type", documentSubtypeLabel: i = "Subtype", emptyMessage: a = "No Documents Are Available", downloadLabelTemplate: o, documentInfoCards: s, onDownloadClick: c, onRangeClick: d }) => s.length === 0 ? /* @__PURE__ */ l(v, {
|
|
11029
11029
|
variant: "free",
|
|
11030
11030
|
className: "pt-6 text-center text-sm text-primary",
|
|
11031
11031
|
children: a
|
|
@@ -11053,11 +11053,12 @@ var Mo = {
|
|
|
11053
11053
|
children: i
|
|
11054
11054
|
})
|
|
11055
11055
|
]
|
|
11056
|
-
}) : null,
|
|
11056
|
+
}) : null, s.map((t) => /* @__PURE__ */ l(tc, {
|
|
11057
11057
|
documentInfoCardItem: t,
|
|
11058
11058
|
layoutVariant: e,
|
|
11059
|
-
|
|
11060
|
-
|
|
11059
|
+
downloadLabelTemplate: o,
|
|
11060
|
+
onDownloadClick: c,
|
|
11061
|
+
onRangeClick: d
|
|
11061
11062
|
}, t.id))]
|
|
11062
11063
|
})
|
|
11063
11064
|
}), Nu = {
|
|
@@ -18206,17 +18207,17 @@ var sd = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
18206
18207
|
...e,
|
|
18207
18208
|
checked: n
|
|
18208
18209
|
} : e)
|
|
18209
|
-
})), Qf = ({ title: t, resultsHeading: n = "Documents", description: r, documentInfoCollectionProps: i, filterSections: a, searchBarProps: o, filterPanelHeader: s = "Filters", appliedOptionsHeader: c = "Applied Filters",
|
|
18210
|
-
let [
|
|
18210
|
+
})), Qf = ({ title: t, resultsHeading: n = "Documents", description: r, documentInfoCollectionProps: i, filterSections: a, searchBarProps: o, filterPanelHeader: s = "Filters", appliedOptionsHeader: c = "Applied Filters", appliedOptionsEmptyLabel: d = "No filters selected", clearAllLabel: f = "Clear All", applyFiltersLabel: p = "Apply Filters", mobileFilterLabel: m = "Filters", onFilterChange: h, optInModalProps: g }) => {
|
|
18211
|
+
let [_, y] = e.useState(!1), b = e.useId(), x = a.flatMap((e) => e.options.filter((e) => e.checked).map((e) => ({
|
|
18211
18212
|
id: e.id,
|
|
18212
18213
|
label: e.label
|
|
18213
|
-
}))),
|
|
18214
|
+
}))), S = (e, t) => h?.(e, t), C = () => S(a.map((e) => ({
|
|
18214
18215
|
...e,
|
|
18215
18216
|
options: e.options.map((e) => ({
|
|
18216
18217
|
...e,
|
|
18217
18218
|
checked: !1
|
|
18218
18219
|
}))
|
|
18219
|
-
})), { action: "clear-all" }),
|
|
18220
|
+
})), { action: "clear-all" }), w = {
|
|
18220
18221
|
header: s,
|
|
18221
18222
|
headerIcon: "filter",
|
|
18222
18223
|
sections: a.map((e) => ({
|
|
@@ -18225,19 +18226,20 @@ var sd = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
18225
18226
|
})),
|
|
18226
18227
|
appliedOptions: {
|
|
18227
18228
|
header: c,
|
|
18228
|
-
|
|
18229
|
-
|
|
18230
|
-
|
|
18229
|
+
emptyStateLabel: d,
|
|
18230
|
+
clearAllLabel: f,
|
|
18231
|
+
optionsList: x,
|
|
18232
|
+
onRemoveOption: ({ id: e }) => S(Zf(a, e, !1), {
|
|
18231
18233
|
action: "remove",
|
|
18232
18234
|
optionId: e,
|
|
18233
18235
|
checked: !1
|
|
18234
18236
|
}),
|
|
18235
|
-
onRemoveAll:
|
|
18237
|
+
onRemoveAll: C
|
|
18236
18238
|
},
|
|
18237
|
-
resetLabel:
|
|
18238
|
-
applyFiltersLabel:
|
|
18239
|
-
onResetClick:
|
|
18240
|
-
onApplyFiltersClick: () =>
|
|
18239
|
+
resetLabel: f,
|
|
18240
|
+
applyFiltersLabel: p,
|
|
18241
|
+
onResetClick: C,
|
|
18242
|
+
onApplyFiltersClick: () => y(!1)
|
|
18241
18243
|
};
|
|
18242
18244
|
return /* @__PURE__ */ u(H, {
|
|
18243
18245
|
spacing: "paddedSection",
|
|
@@ -18258,7 +18260,7 @@ var sd = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
18258
18260
|
children: r
|
|
18259
18261
|
})]
|
|
18260
18262
|
}), /* @__PURE__ */ l("div", {
|
|
18261
|
-
className: `${
|
|
18263
|
+
className: `${_ ? "hidden" : "block"} mt-5 min-w-0 md:mt-0 md:flex md:flex-1 md:justify-end`,
|
|
18262
18264
|
children: /* @__PURE__ */ l(Ms, { searchBarProps: o })
|
|
18263
18265
|
})]
|
|
18264
18266
|
}),
|
|
@@ -18269,33 +18271,33 @@ var sd = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
18269
18271
|
className: "hidden md:block md:shrink-0",
|
|
18270
18272
|
"aria-label": s,
|
|
18271
18273
|
children: /* @__PURE__ */ l(Gu, {
|
|
18272
|
-
...
|
|
18273
|
-
onCheckboxChange: ({ id: e, checked: t }) =>
|
|
18274
|
+
...w,
|
|
18275
|
+
onCheckboxChange: ({ id: e, checked: t }) => S(Zf(a, e, t), {
|
|
18274
18276
|
action: "toggle",
|
|
18275
18277
|
optionId: e,
|
|
18276
18278
|
checked: t
|
|
18277
18279
|
})
|
|
18278
18280
|
})
|
|
18279
18281
|
}) : null,
|
|
18280
|
-
|
|
18281
|
-
id:
|
|
18282
|
+
_ && a.length > 0 ? /* @__PURE__ */ l("div", {
|
|
18283
|
+
id: b,
|
|
18282
18284
|
role: "dialog",
|
|
18283
18285
|
"aria-modal": "true",
|
|
18284
|
-
"aria-label":
|
|
18286
|
+
"aria-label": m,
|
|
18285
18287
|
className: "md:hidden",
|
|
18286
18288
|
children: /* @__PURE__ */ l(Gu, {
|
|
18287
|
-
...
|
|
18289
|
+
...w,
|
|
18288
18290
|
sections: a.map((e) => ({
|
|
18289
18291
|
...e,
|
|
18290
18292
|
type: "checkbox",
|
|
18291
18293
|
options: e.options.map((e) => ({
|
|
18292
18294
|
...e,
|
|
18293
|
-
id: `${
|
|
18295
|
+
id: `${b}-${e.id}`
|
|
18294
18296
|
}))
|
|
18295
18297
|
})),
|
|
18296
18298
|
onCheckboxChange: ({ id: e, checked: t }) => {
|
|
18297
|
-
let n = e.slice(
|
|
18298
|
-
|
|
18299
|
+
let n = e.slice(b.length + 1);
|
|
18300
|
+
S(Zf(a, n, t), {
|
|
18299
18301
|
action: "toggle",
|
|
18300
18302
|
optionId: n,
|
|
18301
18303
|
checked: t
|
|
@@ -18304,7 +18306,7 @@ var sd = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
18304
18306
|
})
|
|
18305
18307
|
}) : null,
|
|
18306
18308
|
/* @__PURE__ */ u("div", {
|
|
18307
|
-
className: `${
|
|
18309
|
+
className: `${_ ? "hidden" : "block"} min-w-0 flex-1 md:block`,
|
|
18308
18310
|
children: [
|
|
18309
18311
|
a.length > 0 ? /* @__PURE__ */ l("div", {
|
|
18310
18312
|
className: "mb-4 md:hidden",
|
|
@@ -18314,11 +18316,11 @@ var sd = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
18314
18316
|
iconName: "sliders",
|
|
18315
18317
|
iconType: "fa-solid",
|
|
18316
18318
|
iconPosition: "left",
|
|
18317
|
-
label:
|
|
18319
|
+
label: m,
|
|
18318
18320
|
size: "sm",
|
|
18319
|
-
"aria-expanded":
|
|
18320
|
-
"aria-controls":
|
|
18321
|
-
onClick: () =>
|
|
18321
|
+
"aria-expanded": _,
|
|
18322
|
+
"aria-controls": b,
|
|
18323
|
+
onClick: () => y(!0)
|
|
18322
18324
|
})
|
|
18323
18325
|
}) : null,
|
|
18324
18326
|
/* @__PURE__ */ l("div", {
|
|
@@ -18338,7 +18340,7 @@ var sd = (e, t = [], n = null) => t.map((t) => e[t]).filter((e) => !!e).map((e)
|
|
|
18338
18340
|
})
|
|
18339
18341
|
]
|
|
18340
18342
|
}),
|
|
18341
|
-
/* @__PURE__ */ l(Hc, { ...
|
|
18343
|
+
/* @__PURE__ */ l(Hc, { ...g })
|
|
18342
18344
|
]
|
|
18343
18345
|
});
|
|
18344
18346
|
};
|