@kolkrabbi/kol-component 0.370.0 → 0.371.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kolkrabbi/kol-component",
3
- "version": "0.370.0",
3
+ "version": "0.371.0",
4
4
  "description": "The core component library",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -45,7 +45,7 @@
45
45
  "react-dom": "^18.3.0 || ^19.0.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@kolkrabbi/kol-icons": "^0.70.1"
48
+ "@kolkrabbi/kol-icons": "^0.71.0"
49
49
  },
50
50
  "files": [
51
51
  "src",
package/src/index.js CHANGED
@@ -180,7 +180,7 @@ export { default as ContentCollection } from './organisms/ContentCollection.jsx'
180
180
  export { MenuItem, MenuRow, MenuDivider, MenuFlyout, MenuDropdownItem, MenuDropdownDivider, MenuDropdownNest } from './molecules/MenuItem.jsx'
181
181
  export { Menu, MenuTrigger, MenuPanel, MenuLabel, MenuFilter, MenuDatePicker, MenuMore } from './molecules/Menu.jsx'
182
182
  export { MenuList } from './molecules/MenuList.jsx'
183
- export { ModalProvider, useModal, Dialog } from './molecules/Modal.jsx'
183
+ export { ModalProvider, useModal, ModalDialog, ModalDialog as Dialog } from './molecules/Modal.jsx'
184
184
  export { default as ModalShell } from './molecules/ModalShell.jsx'
185
185
  /* the generator settings window's controls (plan-2026-11-05-float-editor W7.2) — `Dialog variant="settings"`'s rows */
186
186
  export {
@@ -323,13 +323,13 @@ export function useModal() {
323
323
  }
324
324
 
325
325
  /**
326
- * Dialog — Modal's shell holding any content (MetricDashboardUpstream, kol-website 2026-10-31 — metric's filter and
326
+ * ModalDialog (was `Dialog`, renamed 2026-11-12; `Dialog` stays a deprecated alias) — Modal's shell holding any content (MetricDashboardUpstream, kol-website 2026-10-31 — metric's filter and
327
327
  * segment dialogs). The same `.kol-overlay-scrim` + `.kol-modal` surface as the prompts above, with `children` in place
328
328
  * of a prompt — both draw their panel through `ModalShell` (W2.1, 2026-11-08). **z 150, not Modal's 1000**, so KOL's portalled floats (z 210+) open ABOVE it — a Dropdown or Combobox
329
329
  * inside a dialog has to show its list (a native `<dialog>` cannot: `showModal()` puts it in the top layer, over every
330
330
  * portal). Esc and a press on the scrim close it; Esc is left to an open float inside first.
331
331
  *
332
- * <Dialog open={open} onClose={() => setOpen(false)} title="Filter by page" width={560}>…</Dialog>
332
+ * <ModalDialog open={open} onClose={() => setOpen(false)} title="Filter by page" width={560}>…</ModalDialog>
333
333
  *
334
334
  * `variant="float"` (float-everything W6 rows 83 · 84 · 89, 2026-11-04 — kol-float--style 46:2655): the float window —
335
335
  * `kol-float-solid` on `--kol-float-window-r`, 24 in, 18 between its parts, the title drawn as `ModalHeader
@@ -358,7 +358,7 @@ export function useModal() {
358
358
  * @param {string} [section] · @param {Function} [onSection]
359
359
  * @param {ReactNode} [aside] · @param {ReactNode} [footer] · @param {number} [height=656]
360
360
  */
361
- export function Dialog({ open, onClose, title, width = 560, variant = 'lift', icon, onMinimise, blocking = true, container, kind, headerEnd, sections, section, onSection, aside, footer, height = 656, children }) {
361
+ export function ModalDialog({ open, onClose, title, width = 560, variant = 'lift', icon, onMinimise, blocking = true, container, kind, headerEnd, sections, section, onSection, aside, footer, height = 656, children }) {
362
362
  const look = variant === 'settings' ? 'settings' : modalVariant(variant, 'lift')
363
363
  const float = look === 'float'
364
364
  useEffect(() => {
@@ -212,7 +212,7 @@ const Slider = ({
212
212
  if (variant === 'dual') {
213
213
  const v1 = value ?? min
214
214
  const v2 = value2 ?? max
215
- /* an empty label is no label: `label1="" label2=""` (SettingsRange, GeneratorRail) drew an empty 16px row that pushed the rail low */
215
+ /* an empty label is no label: `label1="" label2=""` (SettingsRange, RailSettings) drew an empty 16px row that pushed the rail low */
216
216
  const showLabels = !!(label1 || label2)
217
217
  const ratio = max > min ? (playhead - min) / (max - min) : 0
218
218
  return row({ className: `control-slider gap-3 shadow-none ${className}`, style, children: <>