foldkit-mixins-ui 0.1.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/LICENSE +21 -0
- package/README.md +63 -0
- package/dist/index.d.mts +454 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +623 -0
- package/dist/index.mjs.map +1 -0
- package/dist/rolldown-runtime-D7D4PA-g.mjs +13 -0
- package/package.json +47 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["resolve","resolve","resolve","resolve","resolve","resolve","resolve","resolve","resolve","resolve","resolve","resolve","resolve","resolve"],"sources":["../src/resolve.ts","../src/button.ts","../src/calendar.ts","../src/checkbox.ts","../src/dialog.ts","../src/disclosure.ts","../src/fieldset.ts","../src/input.ts","../src/popover.ts","../src/radioGroup.ts","../src/select.ts","../src/slider.ts","../src/switch.ts","../src/tabs.ts","../src/textarea.ts","../src/tooltip.ts"],"sourcesContent":["/**\n * Binds a `@foldkit/ui` component's published Slots and the Mixins attached to\n * it. The returned function takes the component's own attribute bundles (from\n * its `toView` callback) and returns them with Mixin contributions resolved by\n * the core resolver. Base attributes and `ChildAttribute`s are preserved\n * untouched; non-slot entries (`animatePanel`) pass through unchanged.\n */\nimport type { HtmlBuilder } from 'foldkit/html'\nimport { SlotView, type MixinValue, type SlotAttributes, type StaticMixin } from 'foldkit-mixins'\n\nexport type MixinList<Message> = ReadonlyArray<\n MixinValue<Message> | MixinValue<never> | StaticMixin<Message>\n>\n\nexport interface ResolveContext<Input, Message> {\n readonly input: Input\n readonly h: HtmlBuilder<Message>\n}\n\nexport type ResolvedSlots<Slots, Message> = {\n readonly [K in keyof Slots]: SlotAttributes<Message>\n}\n\nexport const resolveFor =\n <Slots, Input, Message>(\n slots: Slots,\n mixins: MixinList<Message>,\n context: ResolveContext<Input, Message>,\n ) =>\n <Base extends { readonly [K in keyof Slots]?: SlotAttributes<Message> }>(\n base: Base,\n ): Omit<Base, keyof Slots> & ResolvedSlots<Slots, Message> => {\n const builders = SlotView.buildersFor(slots, mixins, context)\n const out: Record<string, unknown> = Object.assign(Object.create(null), base)\n for (const name of Object.getOwnPropertyNames(slots as object)) {\n out[name] = builders[name as keyof Slots].attrs(base[name as keyof Slots])\n }\n return out as Omit<Base, keyof Slots> & ResolvedSlots<Slots, Message>\n }\n","import type { ButtonAttributes } from '@foldkit/ui/button'\nimport { Attr, Capability, Event, Slot, Slots } from 'foldkit-mixins'\nimport { resolveFor, type MixinList, type ResolveContext } from './resolve.js'\n\n/**\n * The button publishes one slot. `click` is owned by the base `OnClick` when\n * the button is interactive, so a Behavior that adds its own click handler is a\n * conflict rather than a second silent owner.\n */\nexport const ButtonSlots = Slots.define({\n button: Slot.make({\n capability: Capability.Interactive,\n events: [Event.Click],\n attributes: [Attr.Role, Attr.AriaDisabled, Attr.Disabled],\n }),\n})\n\nexport const resolve = <Input, Message>(\n attributes: ButtonAttributes<Message>,\n mixins: MixinList<Message>,\n context: ResolveContext<Input, Message>,\n) => resolveFor(ButtonSlots, mixins, context)(attributes)\n","import type {\n CalendarAttributes,\n ColumnHeader,\n DayCell,\n DaysModeAttributes,\n MonthCell,\n MonthsModeAttributes,\n Week,\n YearCell,\n YearsModeAttributes,\n} from '@foldkit/ui/calendar'\nimport { Attr, Capability, Event, Slot, Slots, SlotView, type SlotAttributes } from 'foldkit-mixins'\nimport type { MixinList, ResolveContext } from './resolve.js'\n\n/**\n * Calendar is a nested Submodel whose shape depends on `model.viewMode`. The\n * top-level groups (`root`, `grid`, the navigation buttons) and per-item groups\n * (`columnHeaders[]`, `weeks[].attributes`, the day/month/year cells and their\n * buttons) are each resolved with `SlotView.buildersFor`, so a contribution to\n * a cell slot applies to every cell while each cell's base keeps its own event\n * ownership (a disabled day omits `OnClick`).\n */\nexport const CalendarSlots = Slots.define({\n root: Slot.make({ capability: Capability.Container }),\n previousMonthButton: Slot.make({\n capability: Capability.Interactive,\n events: [Event.Click],\n attributes: [Attr.Role, Attr.Disabled, Attr.AriaDisabled],\n }),\n nextMonthButton: Slot.make({\n capability: Capability.Interactive,\n events: [Event.Click],\n attributes: [Attr.Role, Attr.Disabled, Attr.AriaDisabled],\n }),\n headingButton: Slot.make({\n capability: Capability.Interactive,\n events: [Event.Click],\n attributes: [Attr.Role],\n }),\n previousPageButton: Slot.make({\n capability: Capability.Interactive,\n events: [Event.Click],\n attributes: [Attr.Role, Attr.Disabled, Attr.AriaDisabled],\n }),\n nextPageButton: Slot.make({\n capability: Capability.Interactive,\n events: [Event.Click],\n attributes: [Attr.Role, Attr.Disabled, Attr.AriaDisabled],\n }),\n grid: Slot.make({\n capability: Capability.Container,\n events: [Event.Focus, Event.Blur],\n attributes: [Attr.Role],\n }),\n headerRow: Slot.make({ capability: Capability.Container, attributes: [Attr.Role] }),\n columnHeader: Slot.make({ capability: Capability.Container, attributes: [Attr.Role] }),\n weekRow: Slot.make({ capability: Capability.Container, attributes: [Attr.Role] }),\n dayCell: Slot.make({ capability: Capability.Container, attributes: [Attr.Role] }),\n dayButton: Slot.make({\n capability: Capability.Interactive,\n events: [Event.Click],\n attributes: [Attr.Role, Attr.Disabled, Attr.AriaDisabled],\n }),\n monthCell: Slot.make({ capability: Capability.Container, attributes: [Attr.Role] }),\n monthButton: Slot.make({\n capability: Capability.Interactive,\n events: [Event.Click],\n attributes: [Attr.Role, Attr.Disabled, Attr.AriaDisabled],\n }),\n yearCell: Slot.make({ capability: Capability.Container, attributes: [Attr.Role] }),\n yearButton: Slot.make({\n capability: Capability.Interactive,\n events: [Event.Click],\n attributes: [Attr.Role, Attr.Disabled, Attr.AriaDisabled],\n }),\n})\n\nexport type ResolvedColumnHeader<Message> = Omit<ColumnHeader, 'attributes'> & {\n readonly attributes: SlotAttributes<Message>\n}\nexport type ResolvedDayCell<Message> = Omit<DayCell, 'cellAttributes' | 'buttonAttributes'> & {\n readonly cellAttributes: SlotAttributes<Message>\n readonly buttonAttributes: SlotAttributes<Message>\n}\nexport type ResolvedWeek<Message> = Omit<Week, 'attributes' | 'cells'> & {\n readonly attributes: SlotAttributes<Message>\n readonly cells: ReadonlyArray<ResolvedDayCell<Message>>\n}\nexport type ResolvedMonthCell<Message> = Omit<MonthCell, 'cellAttributes' | 'buttonAttributes'> & {\n readonly cellAttributes: SlotAttributes<Message>\n readonly buttonAttributes: SlotAttributes<Message>\n}\nexport type ResolvedYearCell<Message> = Omit<YearCell, 'cellAttributes' | 'buttonAttributes'> & {\n readonly cellAttributes: SlotAttributes<Message>\n readonly buttonAttributes: SlotAttributes<Message>\n}\n\nexport interface ResolvedDays<Message> {\n readonly _tag: 'Days'\n readonly root: SlotAttributes<Message>\n readonly previousMonthButton: SlotAttributes<Message>\n readonly nextMonthButton: SlotAttributes<Message>\n readonly headingButton: SlotAttributes<Message>\n readonly heading: DaysModeAttributes['heading']\n readonly grid: SlotAttributes<Message>\n readonly headerRow: SlotAttributes<Message>\n readonly columnHeaders: ReadonlyArray<ResolvedColumnHeader<Message>>\n readonly weeks: ReadonlyArray<ResolvedWeek<Message>>\n}\nexport interface ResolvedMonths<Message> {\n readonly _tag: 'Months'\n readonly root: SlotAttributes<Message>\n readonly headingButton: SlotAttributes<Message>\n readonly heading: MonthsModeAttributes['heading']\n readonly grid: SlotAttributes<Message>\n readonly cells: ReadonlyArray<ResolvedMonthCell<Message>>\n}\nexport interface ResolvedYears<Message> {\n readonly _tag: 'Years'\n readonly root: SlotAttributes<Message>\n readonly previousPageButton: SlotAttributes<Message>\n readonly nextPageButton: SlotAttributes<Message>\n readonly heading: YearsModeAttributes['heading']\n readonly grid: SlotAttributes<Message>\n readonly cells: ReadonlyArray<ResolvedYearCell<Message>>\n}\nexport type ResolvedCalendar<Message> =\n ResolvedDays<Message> | ResolvedMonths<Message> | ResolvedYears<Message>\n\n/** Resolves every mode's nested groups, preserving the `_tag` and heading data. */\nexport const resolve = <Input, Message>(\n render: CalendarAttributes,\n mixins: MixinList<Message>,\n context: ResolveContext<Input, Message>,\n): ResolvedCalendar<Message> => {\n const builders = SlotView.buildersFor(CalendarSlots, mixins, context)\n const root = builders.root.attrs(render.root)\n const grid = builders.grid.attrs(render.grid)\n switch (render._tag) {\n case 'Days':\n return {\n _tag: 'Days',\n root,\n grid,\n heading: render.heading,\n previousMonthButton: builders.previousMonthButton.attrs(render.previousMonthButton),\n nextMonthButton: builders.nextMonthButton.attrs(render.nextMonthButton),\n headingButton: builders.headingButton.attrs(render.headingButton),\n headerRow: builders.headerRow.attrs(render.headerRow),\n columnHeaders: render.columnHeaders.map(column => ({\n ...column,\n attributes: builders.columnHeader.attrs(column.attributes),\n })),\n weeks: render.weeks.map(week => ({\n ...week,\n attributes: builders.weekRow.attrs(week.attributes),\n cells: week.cells.map(cell => ({\n ...cell,\n cellAttributes: builders.dayCell.attrs(cell.cellAttributes),\n buttonAttributes: builders.dayButton.attrs(cell.buttonAttributes),\n })),\n })),\n }\n case 'Months':\n return {\n _tag: 'Months',\n root,\n grid,\n heading: render.heading,\n headingButton: builders.headingButton.attrs(render.headingButton),\n cells: render.cells.map(cell => ({\n ...cell,\n cellAttributes: builders.monthCell.attrs(cell.cellAttributes),\n buttonAttributes: builders.monthButton.attrs(cell.buttonAttributes),\n })),\n }\n case 'Years':\n return {\n _tag: 'Years',\n root,\n grid,\n heading: render.heading,\n previousPageButton: builders.previousPageButton.attrs(render.previousPageButton),\n nextPageButton: builders.nextPageButton.attrs(render.nextPageButton),\n cells: render.cells.map(cell => ({\n ...cell,\n cellAttributes: builders.yearCell.attrs(cell.cellAttributes),\n buttonAttributes: builders.yearButton.attrs(cell.buttonAttributes),\n })),\n }\n }\n}\n","import type { CheckboxAttributes } from '@foldkit/ui/checkbox'\nimport { Attr, Capability, Event, Slot, Slots } from 'foldkit-mixins'\nimport { resolveFor, type MixinList, type ResolveContext } from './resolve.js'\n\n/**\n * Both the control and its label carry the base toggle handlers, so both own\n * `click`. `hiddenInput` exists only when a form `name` is configured; its base\n * bundle is then empty.\n */\nexport const CheckboxSlots = Slots.define({\n checkbox: Slot.make({\n capability: Capability.Interactive,\n events: [Event.Click],\n attributes: [Attr.Role, Attr.AriaDisabled, Attr.Disabled, Attr.Value],\n }),\n label: Slot.make({\n capability: Capability.Container,\n events: [Event.Click],\n }),\n description: Slot.make({ capability: Capability.Container }),\n hiddenInput: Slot.make({\n capability: Capability.Base,\n attributes: [Attr.Value],\n }),\n})\n\nexport const resolve = <Input, Message>(\n attributes: CheckboxAttributes<Message>,\n mixins: MixinList<Message>,\n context: ResolveContext<Input, Message>,\n) => resolveFor(CheckboxSlots, mixins, context)(attributes)\n","import type { RenderInfo } from '@foldkit/ui/dialog'\nimport { Attr, Capability, Event, Slot, Slots } from 'foldkit-mixins'\nimport { resolveFor, type MixinList, type ResolveContext } from './resolve.js'\n\n/**\n * Dialog is a Submodel: each published bundle is a `ChildAttribute` group that\n * carries the dialog boundary's dispatcher. The resolver treats those as opaque\n * and preserves their identity, so spreading a resolved bundle into the parent's\n * markup keeps routing through the dialog's `toParentMessage`.\n *\n * `dialog` owns `cancel` (the native Escape handler); `backdrop` and\n * `closeButton` own `click`. A Behavior adding its own handler to one of those\n * is a conflict, not a second silent owner.\n */\nexport const DialogSlots = Slots.define({\n dialog: Slot.make({\n capability: Capability.Container,\n events: [Event.Cancel],\n attributes: [Attr.AriaDescribedby],\n }),\n backdrop: Slot.make({ capability: Capability.Container, events: [Event.Click] }),\n panel: Slot.make({ capability: Capability.Container }),\n title: Slot.make({ capability: Capability.Container }),\n description: Slot.make({ capability: Capability.Container }),\n initialFocus: Slot.make({ capability: Capability.Focusable }),\n closeButton: Slot.make({\n capability: Capability.Interactive,\n events: [Event.Click],\n attributes: [Attr.Role, Attr.Disabled],\n }),\n})\n\n/** Resolves the dialog's render groups; `isVisible` passes through unchanged. */\nexport const resolve = <Input, Message>(\n render: RenderInfo,\n mixins: MixinList<Message>,\n context: ResolveContext<Input, Message>,\n) => resolveFor(DialogSlots, mixins, context)(render)\n","import type { DisclosureAttributes } from '@foldkit/ui/disclosure'\nimport { Attr, Capability, Event, Slot, Slots } from 'foldkit-mixins'\nimport { resolveFor, type MixinList, type ResolveContext } from './resolve.js'\n\nexport const DisclosureSlots = Slots.define({\n button: Slot.make({\n capability: Capability.Interactive,\n events: [Event.Click],\n attributes: [Attr.Role, Attr.AriaExpanded, Attr.AriaDisabled, Attr.Disabled],\n }),\n panel: Slot.make({ capability: Capability.Container }),\n})\n\n/** `animatePanel` is not an attribute bundle, so it passes through unchanged. */\nexport const resolve = <Input, Message>(\n attributes: DisclosureAttributes<Message>,\n mixins: MixinList<Message>,\n context: ResolveContext<Input, Message>,\n) => resolveFor(DisclosureSlots, mixins, context)(attributes)\n","import type { FieldsetAttributes } from '@foldkit/ui/fieldset'\nimport { Attr, Capability, Slot, Slots } from 'foldkit-mixins'\nimport { resolveFor, type MixinList, type ResolveContext } from './resolve.js'\n\nexport const FieldsetSlots = Slots.define({\n fieldset: Slot.make({\n capability: Capability.Container,\n attributes: [Attr.Disabled],\n }),\n legend: Slot.make({ capability: Capability.Container }),\n description: Slot.make({ capability: Capability.Container }),\n})\n\nexport const resolve = <Input, Message>(\n attributes: FieldsetAttributes<Message>,\n mixins: MixinList<Message>,\n context: ResolveContext<Input, Message>,\n) => resolveFor(FieldsetSlots, mixins, context)(attributes)\n","import type { InputAttributes } from '@foldkit/ui/input'\nimport { Attr, Capability, Event, Slot, Slots } from 'foldkit-mixins'\nimport { resolveFor, type MixinList, type ResolveContext } from './resolve.js'\n\nexport const InputSlots = Slots.define({\n input: Slot.make({\n capability: Capability.TextInput,\n events: [Event.Input, Event.Focus, Event.Blur],\n attributes: [Attr.AriaLabel, Attr.AriaInvalid, Attr.Disabled, Attr.Value],\n }),\n label: Slot.make({ capability: Capability.Container }),\n description: Slot.make({ capability: Capability.Container }),\n})\n\nexport const resolve = <Input, Message>(\n attributes: InputAttributes<Message>,\n mixins: MixinList<Message>,\n context: ResolveContext<Input, Message>,\n) => resolveFor(InputSlots, mixins, context)(attributes)\n","import type { RenderInfo } from '@foldkit/ui/popover'\nimport { Attr, Capability, Event, Slot, Slots } from 'foldkit-mixins'\nimport { resolveFor, type MixinList, type ResolveContext } from './resolve.js'\n\n/**\n * Popover is a Submodel; every bundle is a `ChildAttribute` group. `button`\n * owns `click` (and its pointer/keyboard handlers) while open; `panel` owns\n * `blur`; `backdrop` owns `click`. The panel and backdrop bundles also carry\n * the anchor and portal Mounts, preserved as opaque `ChildAttribute`s.\n */\nexport const PopoverSlots = Slots.define({\n button: Slot.make({\n capability: Capability.Interactive,\n events: [Event.Click],\n attributes: [Attr.Role, Attr.AriaExpanded, Attr.AriaDisabled, Attr.Disabled],\n }),\n panel: Slot.make({ capability: Capability.Container, events: [Event.Blur] }),\n backdrop: Slot.make({ capability: Capability.Container, events: [Event.Click] }),\n arrow: Slot.make({ capability: Capability.Container }),\n})\n\n/** Resolves the popover's render groups; `isVisible` passes through unchanged. */\nexport const resolve = <Input, Message>(\n render: RenderInfo,\n mixins: MixinList<Message>,\n context: ResolveContext<Input, Message>,\n) => resolveFor(PopoverSlots, mixins, context)(render)\n","import type { RenderInfo } from '@foldkit/ui/radioGroup'\nimport { Attr, Capability, Event, Slot, Slots, SlotView } from 'foldkit-mixins'\nimport type { MixinList, ResolveContext } from './resolve.js'\n\n/**\n * RadioGroup is a Submodel: each published bundle is a `ChildAttribute` group\n * that carries the boundary's dispatcher. The resolver treats those as opaque\n * and preserves their identity, so spreading a resolved bundle into the\n * parent's markup keeps routing through the radio group's `toParentMessage`.\n *\n * The base installs `OnClick` on an enabled, non-readonly option's `option`\n * bundle, so a Behavior adding its own click handler is a conflict rather than\n * a second silent owner.\n */\nexport const RadioGroupSlots = Slots.define({\n group: Slot.make({\n capability: Capability.Container,\n attributes: [Attr.Role],\n }),\n option: Slot.make({\n capability: Capability.Interactive,\n events: [Event.Click],\n attributes: [Attr.Role, Attr.AriaSelected, Attr.Disabled, Attr.AriaDisabled],\n }),\n label: Slot.make({ capability: Capability.Container }),\n description: Slot.make({ capability: Capability.Container }),\n hiddenInput: Slot.make({\n capability: Capability.Base,\n attributes: [Attr.Value],\n }),\n})\n\n/** Resolves every option's bundles alongside the group and hidden input. */\nexport const resolve = <Value extends string, Input, Message>(\n render: RenderInfo<Value>,\n mixins: MixinList<Message>,\n context: ResolveContext<Input, Message>,\n) => {\n const builders = SlotView.buildersFor(RadioGroupSlots, mixins, context)\n return {\n group: builders.group.attrs(render.group),\n options: render.options.map(option => ({\n ...option,\n option: builders.option.attrs(option.option),\n label: builders.label.attrs(option.label),\n description: builders.description.attrs(option.description),\n })),\n selectedValue: render.selectedValue,\n hiddenInput: builders.hiddenInput.attrs(render.hiddenInput),\n }\n}\n","import type { SelectAttributes } from '@foldkit/ui/select'\nimport { Attr, Capability, Event, Slot, Slots } from 'foldkit-mixins'\nimport { resolveFor, type MixinList, type ResolveContext } from './resolve.js'\n\n/**\n * The base bundle installs `OnChange` only when `onChange` is configured and\n * the control is enabled, so a Behavior that adds its own handler is a\n * conflict rather than a second silent owner.\n */\nexport const SelectSlots = Slots.define({\n select: Slot.make({\n capability: Capability.Interactive,\n events: [Event.Change],\n attributes: [Attr.AriaLabel, Attr.AriaInvalid, Attr.Disabled, Attr.Value],\n }),\n label: Slot.make({ capability: Capability.Container }),\n description: Slot.make({ capability: Capability.Container }),\n})\n\nexport const resolve = <Input, Message>(\n attributes: SelectAttributes<Message>,\n mixins: MixinList<Message>,\n context: ResolveContext<Input, Message>,\n) => resolveFor(SelectSlots, mixins, context)(attributes)\n","import type { SliderAttributes } from '@foldkit/ui/slider'\nimport { Attr, Capability, Event, Slot, Slots } from 'foldkit-mixins'\nimport { resolveFor, type MixinList, type ResolveContext } from './resolve.js'\n\n/**\n * Slider is a Submodel: each published bundle is a `ChildAttribute` group that\n * carries the boundary's dispatcher. The resolver treats those as opaque and\n * preserves their identity, so spreading a resolved bundle into the parent's\n * markup keeps routing through the slider's `toParentMessage`.\n *\n * The base installs the pointer handler on `track` and `thumb` only while the\n * slider is interactive. A Behavior adding one of those owns it in the same\n * window, so a second owner is a conflict rather than a silent takeover. Its\n * keyboard handler is `OnKeyDownPreventDefault`, a distinct tag from `KeyDown`,\n * so the thumb does not advertise `Event.KeyDown` (it would falsely imply a\n * conflict the resolver cannot see).\n */\nexport const SliderSlots = Slots.define({\n root: Slot.make({ capability: Capability.Container }),\n track: Slot.make({\n capability: Capability.Container,\n events: [Event.PointerDown],\n }),\n filledTrack: Slot.make({ capability: Capability.Base }),\n thumb: Slot.make({\n capability: Capability.Focusable,\n events: [Event.PointerDown],\n attributes: [Attr.Role],\n }),\n label: Slot.make({ capability: Capability.Container }),\n hiddenInput: Slot.make({\n capability: Capability.Base,\n attributes: [Attr.Value],\n }),\n})\n\n/** Resolves the slider's render groups; `value` and the rest pass through unchanged. */\nexport const resolve = <Input, Message>(\n render: SliderAttributes,\n mixins: MixinList<Message>,\n context: ResolveContext<Input, Message>,\n) => resolveFor(SliderSlots, mixins, context)(render)\n","import type { SwitchAttributes } from '@foldkit/ui/switch'\nimport { Attr, Capability, Event, Slot, Slots } from 'foldkit-mixins'\nimport { resolveFor, type MixinList, type ResolveContext } from './resolve.js'\n\n/** Mirrors the checkbox contract: both the control and its label own `click`. */\nexport const SwitchSlots = Slots.define({\n button: Slot.make({\n capability: Capability.Interactive,\n events: [Event.Click],\n attributes: [Attr.Role, Attr.AriaDisabled, Attr.Disabled, Attr.Value],\n }),\n label: Slot.make({\n capability: Capability.Container,\n events: [Event.Click],\n }),\n description: Slot.make({ capability: Capability.Container }),\n hiddenInput: Slot.make({\n capability: Capability.Base,\n attributes: [Attr.Value],\n }),\n})\n\nexport const resolve = <Input, Message>(\n attributes: SwitchAttributes<Message>,\n mixins: MixinList<Message>,\n context: ResolveContext<Input, Message>,\n) => resolveFor(SwitchSlots, mixins, context)(attributes)\n","import type { RenderInfo, TabInfo } from '@foldkit/ui/tabs'\nimport { Attr, Capability, Event, Slot, Slots, SlotView, type SlotAttributes } from 'foldkit-mixins'\nimport type { MixinList, ResolveContext } from './resolve.js'\n\n/**\n * Tabs is a nested Submodel: one `tablist` group plus a `tab`/`panel` pair per\n * item, so the resolver runs once per group and each base `ChildAttribute`\n * bundle passes through by identity.\n *\n * Enabled tabs own `click` through the base `OnClick`; a Behavior adding its\n * own click handler is a conflict rather than a second silent owner. Disabled\n * tabs publish no click, so the contract still lists it as allowed.\n */\nexport const TabsSlots = Slots.define({\n tablist: Slot.make({ capability: Capability.Container, attributes: [Attr.Role] }),\n tab: Slot.make({\n capability: Capability.Interactive,\n events: [Event.Click],\n attributes: [Attr.Role, Attr.AriaSelected, Attr.Disabled, Attr.AriaDisabled],\n }),\n panel: Slot.make({ capability: Capability.Container, attributes: [Attr.Role] }),\n})\n\nexport type ResolvedTab<Value extends string, Message> = Omit<TabInfo<Value>, 'tab' | 'panel'> & {\n readonly tab: SlotAttributes<Message>\n readonly panel: SlotAttributes<Message>\n}\n\nexport interface ResolvedTabs<Value extends string, Message> {\n readonly tablist: SlotAttributes<Message>\n readonly tabs: ReadonlyArray<ResolvedTab<Value, Message>>\n readonly activeIndex: number\n}\n\n/** Resolves the tabs' nested render groups, preserving `activeIndex`. */\nexport const resolve = <Value extends string, Input, Message>(\n render: RenderInfo<Value>,\n mixins: MixinList<Message>,\n context: ResolveContext<Input, Message>,\n): ResolvedTabs<Value, Message> => {\n const builders = SlotView.buildersFor(TabsSlots, mixins, context)\n return {\n tablist: builders.tablist.attrs(render.tablist),\n tabs: render.tabs.map(item => ({\n ...item,\n tab: builders.tab.attrs(item.tab),\n panel: builders.panel.attrs(item.panel),\n })),\n activeIndex: render.activeIndex,\n }\n}\n","import type { TextareaAttributes } from '@foldkit/ui/textarea'\nimport { Attr, Capability, Event, Slot, Slots } from 'foldkit-mixins'\nimport { resolveFor, type MixinList, type ResolveContext } from './resolve.js'\n\nexport const TextareaSlots = Slots.define({\n textarea: Slot.make({\n capability: Capability.TextInput,\n events: [Event.Input, Event.Focus, Event.Blur],\n attributes: [Attr.AriaLabel, Attr.AriaInvalid, Attr.Disabled, Attr.Value],\n }),\n label: Slot.make({ capability: Capability.Container }),\n description: Slot.make({ capability: Capability.Container }),\n})\n\nexport const resolve = <Input, Message>(\n attributes: TextareaAttributes<Message>,\n mixins: MixinList<Message>,\n context: ResolveContext<Input, Message>,\n) => resolveFor(TextareaSlots, mixins, context)(attributes)\n","import type { RenderInfo } from '@foldkit/ui/tooltip'\nimport { Attr, Capability, Event, Slot, Slots } from 'foldkit-mixins'\nimport { resolveFor, type MixinList, type ResolveContext } from './resolve.js'\n\n/**\n * Tooltip is a Submodel; both bundles are `ChildAttribute` groups. `trigger`\n * owns `focus`, `blur` and `pointerdown` (the hover/keyboard entry points);\n * `panel` carries the anchor Mount. `resolve` preserves each group by identity.\n */\nexport const TooltipSlots = Slots.define({\n trigger: Slot.make({\n capability: Capability.Interactive,\n events: [Event.Focus, Event.Blur, Event.PointerDown],\n attributes: [Attr.Role, Attr.AriaDisabled, Attr.Disabled],\n }),\n panel: Slot.make({ capability: Capability.Container, attributes: [Attr.Role] }),\n})\n\n/** Resolves the tooltip's render groups; `isVisible` passes through unchanged. */\nexport const resolve = <Input, Message>(\n render: RenderInfo,\n mixins: MixinList<Message>,\n context: ResolveContext<Input, Message>,\n) => resolveFor(TooltipSlots, mixins, context)(render)\n"],"mappings":";;;AAuBA,MAAa,cAET,OACA,QACA,aAGA,SAC4D;CAC5D,MAAM,WAAW,SAAS,YAAY,OAAO,QAAQ,OAAO;CAC5D,MAAM,MAA+B,OAAO,OAAO,OAAO,OAAO,IAAI,GAAG,IAAI;CAC5E,KAAK,MAAM,QAAQ,OAAO,oBAAoB,KAAe,GAC3D,IAAI,QAAQ,SAAS,KAAoB,CAAC,MAAM,KAAK,KAAoB;CAE3E,OAAO;AACT;;;;;;;;;;;;AC7BF,MAAa,cAAc,MAAM,OAAO,EACtC,QAAQ,KAAK,KAAK;CAChB,YAAY,WAAW;CACvB,QAAQ,CAAC,MAAM,KAAK;CACpB,YAAY;EAAC,KAAK;EAAM,KAAK;EAAc,KAAK;CAAQ;AAC1D,CA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AAW,YAAY,CAAC,KAAK,IAAI;CAAE,CAAC;AAChF,CAAC;;AAGD,MAAa,WACX,QACA,QACA,YACG,WAAW,cAAc,QAAQ,OAAO,CAAC,CAAC,MAAM"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __exportAll = (all, no_symbols) => {
|
|
4
|
+
let target = {};
|
|
5
|
+
for (var name in all) __defProp(target, name, {
|
|
6
|
+
get: all[name],
|
|
7
|
+
enumerable: true
|
|
8
|
+
});
|
|
9
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
10
|
+
return target;
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { __exportAll as t };
|
package/package.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "foldkit-mixins-ui",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Published slot contracts and mixin adapters for @foldkit/ui, built on foldkit-mixins.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"author": "Patrick Glenn <doeixd@gmail.com>",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/doeixd/foldkit-plus.git",
|
|
11
|
+
"directory": "packages/mixins-ui"
|
|
12
|
+
},
|
|
13
|
+
"homepage": "https://github.com/doeixd/foldkit-plus/tree/main/packages/mixins-ui#readme",
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/doeixd/foldkit-plus/issues"
|
|
16
|
+
},
|
|
17
|
+
"sideEffects": false,
|
|
18
|
+
"exports": {
|
|
19
|
+
".": {
|
|
20
|
+
"types": "./dist/index.d.mts",
|
|
21
|
+
"import": "./dist/index.mjs"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"files": [
|
|
25
|
+
"dist",
|
|
26
|
+
"README.md",
|
|
27
|
+
"LICENSE"
|
|
28
|
+
],
|
|
29
|
+
"peerDependencies": {
|
|
30
|
+
"@foldkit/ui": "^0.158.2",
|
|
31
|
+
"effect": "^4.0.0-rc.112",
|
|
32
|
+
"foldkit": "^0.158.2",
|
|
33
|
+
"foldkit-mixins": "^0.1.0"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@foldkit/ui": "0.158.2",
|
|
37
|
+
"effect": "4.0.0-rc.112",
|
|
38
|
+
"foldkit": "0.158.2",
|
|
39
|
+
"tsdown": "^0.23.0",
|
|
40
|
+
"typescript": "^5.7.2",
|
|
41
|
+
"foldkit-mixins": "0.1.0"
|
|
42
|
+
},
|
|
43
|
+
"scripts": {
|
|
44
|
+
"build": "tsdown",
|
|
45
|
+
"typecheck": "tsc -b"
|
|
46
|
+
}
|
|
47
|
+
}
|