@mediaradar/design-components 0.22.0 → 0.22.1
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/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
package/dist/index.cjs
CHANGED
|
@@ -786,7 +786,7 @@ function slug2(value) {
|
|
|
786
786
|
return value.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/(^-|-$)/g, "");
|
|
787
787
|
}
|
|
788
788
|
function DateRangeFilter({
|
|
789
|
-
caption = "Date
|
|
789
|
+
caption = "Date range",
|
|
790
790
|
defaultValue,
|
|
791
791
|
value: controlledValue,
|
|
792
792
|
range: controlledRange,
|
|
@@ -924,9 +924,9 @@ function DateRangeFilter({
|
|
|
924
924
|
)) }),
|
|
925
925
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex flex-col p-4", children: [
|
|
926
926
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex items-end gap-3", children: [
|
|
927
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Field, { label: "Start
|
|
927
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Field, { label: "Start date", value: start ? fmt(start) : "\u2014" }),
|
|
928
928
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "pb-2.5 text-text-tertiary", children: "\u2014" }),
|
|
929
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Field, { label: "End
|
|
929
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Field, { label: "End date", value: end ? fmt(end) : start ? fmt(start) : "\u2014" })
|
|
930
930
|
] }),
|
|
931
931
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "my-4 border-t border-border-default" }),
|
|
932
932
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "flex gap-8", children: [0, 1].map((offset) => {
|
|
@@ -3744,7 +3744,7 @@ function DateRangePicker({
|
|
|
3744
3744
|
p
|
|
3745
3745
|
)),
|
|
3746
3746
|
/* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "mt-1 border-t border-border-default px-3 pb-2 pt-2", children: [
|
|
3747
|
-
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "text-[13px] font-semibold text-text-primary", children: "Custom
|
|
3747
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "text-[13px] font-semibold text-text-primary", children: "Custom range" }),
|
|
3748
3748
|
/* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "mt-2 flex flex-col gap-2", children: [
|
|
3749
3749
|
/* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("label", { className: "flex items-center justify-between gap-2 text-[12px] text-text-secondary", children: [
|
|
3750
3750
|
"From",
|