@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.d.cts
CHANGED
|
@@ -439,7 +439,7 @@ declare function CheckBoxBox({ checked, indeterminate, disabled, className }: Ch
|
|
|
439
439
|
* moved into the panel, so it is reached by tabbing.
|
|
440
440
|
* @usage
|
|
441
441
|
* ```tsx
|
|
442
|
-
* <DateRangeFilter caption="Date
|
|
442
|
+
* <DateRangeFilter caption="Date range" defaultValue="Rolling 6 months" onChange={setRange} />
|
|
443
443
|
* <DateRangeFilter caption="Dates" showDates shortDates placement="right" />
|
|
444
444
|
* <DateRangeFilter presetSet="creativeIntel" defaultValue="Last 7 days" onChange={setRange} />
|
|
445
445
|
* <DateRangeFilter presetSet="creativeIntel" value={preset} range={[start, end]} onChange={setPreset} onRangeChange={(s, e) => setRange({ start: s, end: e })} />
|
|
@@ -1749,7 +1749,7 @@ interface ChipContentProps {
|
|
|
1749
1749
|
* @usage
|
|
1750
1750
|
* ```tsx
|
|
1751
1751
|
* <button className={chipTriggerClass("box")}>
|
|
1752
|
-
* <ChipContent caption="Media
|
|
1752
|
+
* <ChipContent caption="Media type" value="All" />
|
|
1753
1753
|
* </button>
|
|
1754
1754
|
* ```
|
|
1755
1755
|
*/
|
|
@@ -2161,7 +2161,7 @@ interface MultiSelectGroup {
|
|
|
2161
2161
|
* @pattern MultiSelectFilter
|
|
2162
2162
|
* @description Quick-access multi-select chip — mirrors the DateRangeFilter
|
|
2163
2163
|
* button shape (two-line caption + value with a chevron) and opens a
|
|
2164
|
-
* searchable checkbox popover. Used for the page-level Media
|
|
2164
|
+
* searchable checkbox popover. Used for the page-level Media type /
|
|
2165
2165
|
* Advertiser filters that share state with the filter tray.
|
|
2166
2166
|
* @tokens border-border-strong, rounded-control, rounded-card, border-border-default, bg-surface, shadow-overlay, text-text-primary, text-text-secondary, text-text-tertiary, text-text-link, border-border-interactive, bg-brand-primaryAction, bg-input, hover:bg-subtle, hover:text-text-primary, placeholder:text-text-tertiary, text-brand-onprimary, focus-within:outline-border-focus
|
|
2167
2167
|
* @dependencies lucide-react
|
package/dist/index.d.ts
CHANGED
|
@@ -439,7 +439,7 @@ declare function CheckBoxBox({ checked, indeterminate, disabled, className }: Ch
|
|
|
439
439
|
* moved into the panel, so it is reached by tabbing.
|
|
440
440
|
* @usage
|
|
441
441
|
* ```tsx
|
|
442
|
-
* <DateRangeFilter caption="Date
|
|
442
|
+
* <DateRangeFilter caption="Date range" defaultValue="Rolling 6 months" onChange={setRange} />
|
|
443
443
|
* <DateRangeFilter caption="Dates" showDates shortDates placement="right" />
|
|
444
444
|
* <DateRangeFilter presetSet="creativeIntel" defaultValue="Last 7 days" onChange={setRange} />
|
|
445
445
|
* <DateRangeFilter presetSet="creativeIntel" value={preset} range={[start, end]} onChange={setPreset} onRangeChange={(s, e) => setRange({ start: s, end: e })} />
|
|
@@ -1749,7 +1749,7 @@ interface ChipContentProps {
|
|
|
1749
1749
|
* @usage
|
|
1750
1750
|
* ```tsx
|
|
1751
1751
|
* <button className={chipTriggerClass("box")}>
|
|
1752
|
-
* <ChipContent caption="Media
|
|
1752
|
+
* <ChipContent caption="Media type" value="All" />
|
|
1753
1753
|
* </button>
|
|
1754
1754
|
* ```
|
|
1755
1755
|
*/
|
|
@@ -2161,7 +2161,7 @@ interface MultiSelectGroup {
|
|
|
2161
2161
|
* @pattern MultiSelectFilter
|
|
2162
2162
|
* @description Quick-access multi-select chip — mirrors the DateRangeFilter
|
|
2163
2163
|
* button shape (two-line caption + value with a chevron) and opens a
|
|
2164
|
-
* searchable checkbox popover. Used for the page-level Media
|
|
2164
|
+
* searchable checkbox popover. Used for the page-level Media type /
|
|
2165
2165
|
* Advertiser filters that share state with the filter tray.
|
|
2166
2166
|
* @tokens border-border-strong, rounded-control, rounded-card, border-border-default, bg-surface, shadow-overlay, text-text-primary, text-text-secondary, text-text-tertiary, text-text-link, border-border-interactive, bg-brand-primaryAction, bg-input, hover:bg-subtle, hover:text-text-primary, placeholder:text-text-tertiary, text-brand-onprimary, focus-within:outline-border-focus
|
|
2167
2167
|
* @dependencies lucide-react
|
package/dist/index.js
CHANGED
|
@@ -702,7 +702,7 @@ function slug2(value) {
|
|
|
702
702
|
return value.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/(^-|-$)/g, "");
|
|
703
703
|
}
|
|
704
704
|
function DateRangeFilter({
|
|
705
|
-
caption = "Date
|
|
705
|
+
caption = "Date range",
|
|
706
706
|
defaultValue,
|
|
707
707
|
value: controlledValue,
|
|
708
708
|
range: controlledRange,
|
|
@@ -840,9 +840,9 @@ function DateRangeFilter({
|
|
|
840
840
|
)) }),
|
|
841
841
|
/* @__PURE__ */ jsxs6("div", { className: "flex flex-col p-4", children: [
|
|
842
842
|
/* @__PURE__ */ jsxs6("div", { className: "flex items-end gap-3", children: [
|
|
843
|
-
/* @__PURE__ */ jsx7(Field, { label: "Start
|
|
843
|
+
/* @__PURE__ */ jsx7(Field, { label: "Start date", value: start ? fmt(start) : "\u2014" }),
|
|
844
844
|
/* @__PURE__ */ jsx7("span", { className: "pb-2.5 text-text-tertiary", children: "\u2014" }),
|
|
845
|
-
/* @__PURE__ */ jsx7(Field, { label: "End
|
|
845
|
+
/* @__PURE__ */ jsx7(Field, { label: "End date", value: end ? fmt(end) : start ? fmt(start) : "\u2014" })
|
|
846
846
|
] }),
|
|
847
847
|
/* @__PURE__ */ jsx7("div", { className: "my-4 border-t border-border-default" }),
|
|
848
848
|
/* @__PURE__ */ jsx7("div", { className: "flex gap-8", children: [0, 1].map((offset) => {
|
|
@@ -3660,7 +3660,7 @@ function DateRangePicker({
|
|
|
3660
3660
|
p
|
|
3661
3661
|
)),
|
|
3662
3662
|
/* @__PURE__ */ jsxs33("div", { className: "mt-1 border-t border-border-default px-3 pb-2 pt-2", children: [
|
|
3663
|
-
/* @__PURE__ */ jsx37("div", { className: "text-[13px] font-semibold text-text-primary", children: "Custom
|
|
3663
|
+
/* @__PURE__ */ jsx37("div", { className: "text-[13px] font-semibold text-text-primary", children: "Custom range" }),
|
|
3664
3664
|
/* @__PURE__ */ jsxs33("div", { className: "mt-2 flex flex-col gap-2", children: [
|
|
3665
3665
|
/* @__PURE__ */ jsxs33("label", { className: "flex items-center justify-between gap-2 text-[12px] text-text-secondary", children: [
|
|
3666
3666
|
"From",
|