{"version":3,"file":"web-dklFT_e5.mjs","names":["axis","web_default"],"sources":["../../../../../__A__/dev/singularity/.claude/worktrees/att-1794515063-e6dm4h/plugins/primitives/plugins/css/plugins/yield/web/internal/yield.ts","../../../../../__A__/dev/singularity/.claude/worktrees/att-1794515063-e6dm4h/plugins/primitives/plugins/css/plugins/yield/web/index.ts"],"sourcesContent":["/** Which axis the cell yields along (which `min-*-0` it emits). */\nexport type YieldAxis = \"x\" | \"y\";\n\n/**\n * The pure yield class — single source of truth, exported so `fillClasses` and\n * the pure test share one definition.\n *\n * A yielding cell answers ONE of the two space-sharing questions: it may fall\n * BELOW its own content width, so a ``/`FilePath` inside can ellipsize —\n * and it answers the other question with \"no\", so it never takes the row's\n * slack.\n *\n * CSS floors a flex item at its content size (`min-width: auto`), which is what\n * makes the override necessary at all; `flex-grow` stays `0` and `flex-shrink`\n * stays at its `1` default, which is what keeps the cell out of the competition\n * for slack.\n *\n * **Axis matters here, unlike `rigidClass()`/`growClass()`.** `min-width: 0` and\n * `min-height: 0` are two DIFFERENT properties and only one is right for a given\n * container, whereas `flex-shrink`/`flex-grow` are single properties that\n * already apply along whichever axis the container declared as main.\n */\nexport function yieldClass(axis: YieldAxis): string {\n return axis === \"y\" ? \"min-h-0\" : \"min-w-0\";\n}\n","import type { PluginDefinition } from \"@plugins/framework/plugins/web-sdk/core\";\n\nexport { yieldClass, type YieldAxis } from \"./internal/yield\";\n\nexport default {\n description:\n \"Yielding-cell layout primitive: yieldClass(axis) is the flex child that falls below its own content width (min-w-0) but never takes slack. The half of that gives, without the half that grows.\",\n contributions: [],\n} satisfies PluginDefinition;\n"],"mappings":";AAsBA,SAAgB,WAAW,GAAyB;CAClD,OAAOA,MAAS,MAAM,YAAY;AACpC;;ACpBA,IAAAC,IAAe;CACb,aACE;CACF,eAAe,CAAC;AAClB"}