@mediaradar/design-components 0.5.0 → 0.5.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 +7 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -259,6 +259,11 @@ declare function DateRangeFilter({ caption, defaultValue, value: controlledValue
|
|
|
259
259
|
* border-border-interactive, focus-visible:outline-border-focus,
|
|
260
260
|
* hover:text-text-primary, placeholder:text-text-tertiary, rounded-card,
|
|
261
261
|
* rounded-full, shadow-overlay, text-brand-primaryAction, text-text-secondary
|
|
262
|
+
* @variant default - Default. Plain keyword input, no match-type control.
|
|
263
|
+
* @variant filterable - Adds an attached match-type dropdown sharing one
|
|
264
|
+
* bordered control, mirroring the legacy Creative Intel search + match-type
|
|
265
|
+
* modal (Any Word/Exact Match/Contextual/Ad Code), including the Or/And
|
|
266
|
+
* sub-choice nested under Any Word.
|
|
262
267
|
* @dependencies lucide-react
|
|
263
268
|
* @behavior The match-type dropdown ('filterable' variant) closes on Escape
|
|
264
269
|
* and outside click. Each mode row is a real `radio` role, with a nested
|
package/dist/index.d.ts
CHANGED
|
@@ -259,6 +259,11 @@ declare function DateRangeFilter({ caption, defaultValue, value: controlledValue
|
|
|
259
259
|
* border-border-interactive, focus-visible:outline-border-focus,
|
|
260
260
|
* hover:text-text-primary, placeholder:text-text-tertiary, rounded-card,
|
|
261
261
|
* rounded-full, shadow-overlay, text-brand-primaryAction, text-text-secondary
|
|
262
|
+
* @variant default - Default. Plain keyword input, no match-type control.
|
|
263
|
+
* @variant filterable - Adds an attached match-type dropdown sharing one
|
|
264
|
+
* bordered control, mirroring the legacy Creative Intel search + match-type
|
|
265
|
+
* modal (Any Word/Exact Match/Contextual/Ad Code), including the Or/And
|
|
266
|
+
* sub-choice nested under Any Word.
|
|
262
267
|
* @dependencies lucide-react
|
|
263
268
|
* @behavior The match-type dropdown ('filterable' variant) closes on Escape
|
|
264
269
|
* and outside click. Each mode row is a real `radio` role, with a nested
|
package/dist/index.js
CHANGED
|
@@ -411,7 +411,13 @@ function CheckBox({ checked, indeterminate, onChange, ariaLabel, disabled, testI
|
|
|
411
411
|
"flex h-[18px] w-[18px] shrink-0 items-center justify-center rounded-[5px] border transition-colors",
|
|
412
412
|
"focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-border-focus",
|
|
413
413
|
on ? "border-transparent bg-brand-primaryAction text-white" : "border-border-interactive bg-input hover:border-brand-primaryAction",
|
|
414
|
-
|
|
414
|
+
// Cancels the unchecked hover-border preview when disabled -- without
|
|
415
|
+
// this, a disabled box still visually previews the "you can click
|
|
416
|
+
// this" affordance on hover even though the click does nothing.
|
|
417
|
+
// Found empirically reconciling this against insights-studio-
|
|
418
|
+
// prototype's own (more complete) local CheckBox during its
|
|
419
|
+
// migration -- that version already had this guard.
|
|
420
|
+
disabled && "cursor-not-allowed opacity-50 hover:border-border-interactive"
|
|
415
421
|
].filter(Boolean).join(" "),
|
|
416
422
|
children: indeterminate ? /* @__PURE__ */ jsx4(Minus, { size: 13, strokeWidth: 3 }) : checked ? /* @__PURE__ */ jsx4(Check2, { size: 13, strokeWidth: 3 }) : null
|
|
417
423
|
}
|