@wireweave/core 2.0.2 → 2.1.0-beta.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/dist/index.cjs +9 -0
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +9 -0
- package/dist/parser.d.cts +1 -1
- package/dist/parser.d.ts +1 -1
- package/dist/renderer.cjs +9 -0
- package/dist/renderer.d.cts +1 -1
- package/dist/renderer.d.ts +1 -1
- package/dist/renderer.js +9 -0
- package/dist/{types-BSKtr--J.d.cts → types--qrZlQMM.d.cts} +2 -0
- package/dist/{types-BSKtr--J.d.ts → types--qrZlQMM.d.ts} +2 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -7956,6 +7956,13 @@ function generateLayoutClasses(prefix) {
|
|
|
7956
7956
|
overflow-x: hidden;
|
|
7957
7957
|
}
|
|
7958
7958
|
|
|
7959
|
+
/* Scrollable col content */
|
|
7960
|
+
.${prefix}-col.${prefix}-scroll {
|
|
7961
|
+
overflow-y: auto;
|
|
7962
|
+
overflow-x: hidden;
|
|
7963
|
+
min-height: 0;
|
|
7964
|
+
}
|
|
7965
|
+
|
|
7959
7966
|
/* Col containing scrollable main needs min-height: 0 for scroll to work */
|
|
7960
7967
|
.${prefix}-col:has(> .${prefix}-main.${prefix}-scroll) {
|
|
7961
7968
|
min-height: 0;
|
|
@@ -8351,6 +8358,8 @@ function renderCol(node, ctx) {
|
|
|
8351
8358
|
node.md ? `${ctx.prefix}-col-md-${node.md}` : void 0,
|
|
8352
8359
|
node.lg ? `${ctx.prefix}-col-lg-${node.lg}` : void 0,
|
|
8353
8360
|
node.xl ? `${ctx.prefix}-col-xl-${node.xl}` : void 0,
|
|
8361
|
+
// Scroll support
|
|
8362
|
+
node.scroll ? `${ctx.prefix}-scroll` : void 0,
|
|
8354
8363
|
...ctx.getCommonClasses(node)
|
|
8355
8364
|
]);
|
|
8356
8365
|
const styles = ctx.buildColStyles(node);
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as AnyNode, a as AccordionNode, b as AlertNode, c as AvatarNode, B as BadgeNode, d as BreadcrumbNode, e as ButtonNode, C as CardNode, f as CheckboxNode, g as ColNode, h as ContainerComponentNode, i as ContainerNode, D as DataNode, j as DisplayNode, k as DividerComponentNode, l as DrawerNode, m as DropdownNode, F as FeedbackNode, n as FooterNode, G as GridNode, H as HeaderNode, I as IconNode, o as ImageNode, p as InputComponentNode, q as InputNode, L as LayoutNode, r as LeafNode, s as LinkNode, t as ListNode, M as MainNode, u as ModalNode, N as NavNode, v as NavigationNode, w as NodeType, O as OverlayNode, P as PageNode, x as PlaceholderNode, y as PopoverNode, z as ProgressNode, R as RadioNode, E as RowNode, S as SectionNode, J as SelectNode, K as SidebarNode, Q as SliderNode, T as SpinnerNode, U as SwitchNode, V as TableNode, W as TabsNode, X as TextContentNode, Y as TextNode, Z as TextareaNode, _ as TitleNode, $ as ToastNode, a0 as TooltipNode, a1 as WireframeDocument } from './types
|
|
2
|
-
export { a2 as AlertVariant, a3 as AlignValue, a4 as AvatarSize, a5 as BadgeSize, a6 as BadgeVariant, a7 as BaseNode, a8 as BreadcrumbItem, a9 as ButtonSize, aa as ButtonVariant, ab as CommonProps, ac as DirectionValue, ad as DividerNode, ae as DrawerPosition, af as DropdownItemNode, ag as FlexProps, ah as GridProps, ai as HeightValue, aj as IconSize, ak as InputType, al as InteractiveProps, am as JustifyValue, an as ListItemNode, ao as NavBlockItem, ap as NavChild, aq as NavDivider, ar as NavGroupNode, as as NavItem, at as Position, au as PositionProps, av as SelectOption, aw as ShadowValue, ax as SizeProps, ay as SourceLocation, az as SpacingProps, aA as SpacingValue, aB as SpinnerSize, aC as TabNode, aD as TextAlign, aE as TextSize, aF as TextSizeToken, aG as TextWeight, aH as TitleLevel, aI as ToastPosition, aJ as TooltipPosition, aK as ValueWithUnit, aL as WidthValue } from './types
|
|
1
|
+
import { A as AnyNode, a as AccordionNode, b as AlertNode, c as AvatarNode, B as BadgeNode, d as BreadcrumbNode, e as ButtonNode, C as CardNode, f as CheckboxNode, g as ColNode, h as ContainerComponentNode, i as ContainerNode, D as DataNode, j as DisplayNode, k as DividerComponentNode, l as DrawerNode, m as DropdownNode, F as FeedbackNode, n as FooterNode, G as GridNode, H as HeaderNode, I as IconNode, o as ImageNode, p as InputComponentNode, q as InputNode, L as LayoutNode, r as LeafNode, s as LinkNode, t as ListNode, M as MainNode, u as ModalNode, N as NavNode, v as NavigationNode, w as NodeType, O as OverlayNode, P as PageNode, x as PlaceholderNode, y as PopoverNode, z as ProgressNode, R as RadioNode, E as RowNode, S as SectionNode, J as SelectNode, K as SidebarNode, Q as SliderNode, T as SpinnerNode, U as SwitchNode, V as TableNode, W as TabsNode, X as TextContentNode, Y as TextNode, Z as TextareaNode, _ as TitleNode, $ as ToastNode, a0 as TooltipNode, a1 as WireframeDocument } from './types--qrZlQMM.cjs';
|
|
2
|
+
export { a2 as AlertVariant, a3 as AlignValue, a4 as AvatarSize, a5 as BadgeSize, a6 as BadgeVariant, a7 as BaseNode, a8 as BreadcrumbItem, a9 as ButtonSize, aa as ButtonVariant, ab as CommonProps, ac as DirectionValue, ad as DividerNode, ae as DrawerPosition, af as DropdownItemNode, ag as FlexProps, ah as GridProps, ai as HeightValue, aj as IconSize, ak as InputType, al as InteractiveProps, am as JustifyValue, an as ListItemNode, ao as NavBlockItem, ap as NavChild, aq as NavDivider, ar as NavGroupNode, as as NavItem, at as Position, au as PositionProps, av as SelectOption, aw as ShadowValue, ax as SizeProps, ay as SourceLocation, az as SpacingProps, aA as SpacingValue, aB as SpinnerSize, aC as TabNode, aD as TextAlign, aE as TextSize, aF as TextSizeToken, aG as TextWeight, aH as TitleLevel, aI as ToastPosition, aJ as TooltipPosition, aK as ValueWithUnit, aL as WidthValue } from './types--qrZlQMM.cjs';
|
|
3
3
|
export { ExpectedToken, ParseError, ParseErrorInfo, ParseOptions, ParseResult, getErrors, isValid, parse, tryParse } from './parser.cjs';
|
|
4
4
|
export { HtmlRenderer, IconData, IconElement, RenderContext, RenderOptions, RenderResult, SvgRenderOptions, SvgRenderResult, ThemeColors, ThemeConfig, createHtmlRenderer, darkTheme, defaultTheme, generateComponentStyles, generateStyles, getIconData, getTheme, lucideIcons, render, renderIconSvg, renderToHtml, renderToSvg } from './renderer.cjs';
|
|
5
5
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as AnyNode, a as AccordionNode, b as AlertNode, c as AvatarNode, B as BadgeNode, d as BreadcrumbNode, e as ButtonNode, C as CardNode, f as CheckboxNode, g as ColNode, h as ContainerComponentNode, i as ContainerNode, D as DataNode, j as DisplayNode, k as DividerComponentNode, l as DrawerNode, m as DropdownNode, F as FeedbackNode, n as FooterNode, G as GridNode, H as HeaderNode, I as IconNode, o as ImageNode, p as InputComponentNode, q as InputNode, L as LayoutNode, r as LeafNode, s as LinkNode, t as ListNode, M as MainNode, u as ModalNode, N as NavNode, v as NavigationNode, w as NodeType, O as OverlayNode, P as PageNode, x as PlaceholderNode, y as PopoverNode, z as ProgressNode, R as RadioNode, E as RowNode, S as SectionNode, J as SelectNode, K as SidebarNode, Q as SliderNode, T as SpinnerNode, U as SwitchNode, V as TableNode, W as TabsNode, X as TextContentNode, Y as TextNode, Z as TextareaNode, _ as TitleNode, $ as ToastNode, a0 as TooltipNode, a1 as WireframeDocument } from './types
|
|
2
|
-
export { a2 as AlertVariant, a3 as AlignValue, a4 as AvatarSize, a5 as BadgeSize, a6 as BadgeVariant, a7 as BaseNode, a8 as BreadcrumbItem, a9 as ButtonSize, aa as ButtonVariant, ab as CommonProps, ac as DirectionValue, ad as DividerNode, ae as DrawerPosition, af as DropdownItemNode, ag as FlexProps, ah as GridProps, ai as HeightValue, aj as IconSize, ak as InputType, al as InteractiveProps, am as JustifyValue, an as ListItemNode, ao as NavBlockItem, ap as NavChild, aq as NavDivider, ar as NavGroupNode, as as NavItem, at as Position, au as PositionProps, av as SelectOption, aw as ShadowValue, ax as SizeProps, ay as SourceLocation, az as SpacingProps, aA as SpacingValue, aB as SpinnerSize, aC as TabNode, aD as TextAlign, aE as TextSize, aF as TextSizeToken, aG as TextWeight, aH as TitleLevel, aI as ToastPosition, aJ as TooltipPosition, aK as ValueWithUnit, aL as WidthValue } from './types
|
|
1
|
+
import { A as AnyNode, a as AccordionNode, b as AlertNode, c as AvatarNode, B as BadgeNode, d as BreadcrumbNode, e as ButtonNode, C as CardNode, f as CheckboxNode, g as ColNode, h as ContainerComponentNode, i as ContainerNode, D as DataNode, j as DisplayNode, k as DividerComponentNode, l as DrawerNode, m as DropdownNode, F as FeedbackNode, n as FooterNode, G as GridNode, H as HeaderNode, I as IconNode, o as ImageNode, p as InputComponentNode, q as InputNode, L as LayoutNode, r as LeafNode, s as LinkNode, t as ListNode, M as MainNode, u as ModalNode, N as NavNode, v as NavigationNode, w as NodeType, O as OverlayNode, P as PageNode, x as PlaceholderNode, y as PopoverNode, z as ProgressNode, R as RadioNode, E as RowNode, S as SectionNode, J as SelectNode, K as SidebarNode, Q as SliderNode, T as SpinnerNode, U as SwitchNode, V as TableNode, W as TabsNode, X as TextContentNode, Y as TextNode, Z as TextareaNode, _ as TitleNode, $ as ToastNode, a0 as TooltipNode, a1 as WireframeDocument } from './types--qrZlQMM.js';
|
|
2
|
+
export { a2 as AlertVariant, a3 as AlignValue, a4 as AvatarSize, a5 as BadgeSize, a6 as BadgeVariant, a7 as BaseNode, a8 as BreadcrumbItem, a9 as ButtonSize, aa as ButtonVariant, ab as CommonProps, ac as DirectionValue, ad as DividerNode, ae as DrawerPosition, af as DropdownItemNode, ag as FlexProps, ah as GridProps, ai as HeightValue, aj as IconSize, ak as InputType, al as InteractiveProps, am as JustifyValue, an as ListItemNode, ao as NavBlockItem, ap as NavChild, aq as NavDivider, ar as NavGroupNode, as as NavItem, at as Position, au as PositionProps, av as SelectOption, aw as ShadowValue, ax as SizeProps, ay as SourceLocation, az as SpacingProps, aA as SpacingValue, aB as SpinnerSize, aC as TabNode, aD as TextAlign, aE as TextSize, aF as TextSizeToken, aG as TextWeight, aH as TitleLevel, aI as ToastPosition, aJ as TooltipPosition, aK as ValueWithUnit, aL as WidthValue } from './types--qrZlQMM.js';
|
|
3
3
|
export { ExpectedToken, ParseError, ParseErrorInfo, ParseOptions, ParseResult, getErrors, isValid, parse, tryParse } from './parser.js';
|
|
4
4
|
export { HtmlRenderer, IconData, IconElement, RenderContext, RenderOptions, RenderResult, SvgRenderOptions, SvgRenderResult, ThemeColors, ThemeConfig, createHtmlRenderer, darkTheme, defaultTheme, generateComponentStyles, generateStyles, getIconData, getTheme, lucideIcons, render, renderIconSvg, renderToHtml, renderToSvg } from './renderer.js';
|
|
5
5
|
|
package/dist/index.js
CHANGED
|
@@ -7816,6 +7816,13 @@ function generateLayoutClasses(prefix) {
|
|
|
7816
7816
|
overflow-x: hidden;
|
|
7817
7817
|
}
|
|
7818
7818
|
|
|
7819
|
+
/* Scrollable col content */
|
|
7820
|
+
.${prefix}-col.${prefix}-scroll {
|
|
7821
|
+
overflow-y: auto;
|
|
7822
|
+
overflow-x: hidden;
|
|
7823
|
+
min-height: 0;
|
|
7824
|
+
}
|
|
7825
|
+
|
|
7819
7826
|
/* Col containing scrollable main needs min-height: 0 for scroll to work */
|
|
7820
7827
|
.${prefix}-col:has(> .${prefix}-main.${prefix}-scroll) {
|
|
7821
7828
|
min-height: 0;
|
|
@@ -8211,6 +8218,8 @@ function renderCol(node, ctx) {
|
|
|
8211
8218
|
node.md ? `${ctx.prefix}-col-md-${node.md}` : void 0,
|
|
8212
8219
|
node.lg ? `${ctx.prefix}-col-lg-${node.lg}` : void 0,
|
|
8213
8220
|
node.xl ? `${ctx.prefix}-col-xl-${node.xl}` : void 0,
|
|
8221
|
+
// Scroll support
|
|
8222
|
+
node.scroll ? `${ctx.prefix}-scroll` : void 0,
|
|
8214
8223
|
...ctx.getCommonClasses(node)
|
|
8215
8224
|
]);
|
|
8216
8225
|
const styles = ctx.buildColStyles(node);
|
package/dist/parser.d.cts
CHANGED
package/dist/parser.d.ts
CHANGED
package/dist/renderer.cjs
CHANGED
|
@@ -1636,6 +1636,13 @@ function generateLayoutClasses(prefix) {
|
|
|
1636
1636
|
overflow-x: hidden;
|
|
1637
1637
|
}
|
|
1638
1638
|
|
|
1639
|
+
/* Scrollable col content */
|
|
1640
|
+
.${prefix}-col.${prefix}-scroll {
|
|
1641
|
+
overflow-y: auto;
|
|
1642
|
+
overflow-x: hidden;
|
|
1643
|
+
min-height: 0;
|
|
1644
|
+
}
|
|
1645
|
+
|
|
1639
1646
|
/* Col containing scrollable main needs min-height: 0 for scroll to work */
|
|
1640
1647
|
.${prefix}-col:has(> .${prefix}-main.${prefix}-scroll) {
|
|
1641
1648
|
min-height: 0;
|
|
@@ -2002,6 +2009,8 @@ function renderCol(node, ctx) {
|
|
|
2002
2009
|
node.md ? `${ctx.prefix}-col-md-${node.md}` : void 0,
|
|
2003
2010
|
node.lg ? `${ctx.prefix}-col-lg-${node.lg}` : void 0,
|
|
2004
2011
|
node.xl ? `${ctx.prefix}-col-xl-${node.xl}` : void 0,
|
|
2012
|
+
// Scroll support
|
|
2013
|
+
node.scroll ? `${ctx.prefix}-scroll` : void 0,
|
|
2005
2014
|
...ctx.getCommonClasses(node)
|
|
2006
2015
|
]);
|
|
2007
2016
|
const styles = ctx.buildColStyles(node);
|
package/dist/renderer.d.cts
CHANGED
package/dist/renderer.d.ts
CHANGED
package/dist/renderer.js
CHANGED
|
@@ -1598,6 +1598,13 @@ function generateLayoutClasses(prefix) {
|
|
|
1598
1598
|
overflow-x: hidden;
|
|
1599
1599
|
}
|
|
1600
1600
|
|
|
1601
|
+
/* Scrollable col content */
|
|
1602
|
+
.${prefix}-col.${prefix}-scroll {
|
|
1603
|
+
overflow-y: auto;
|
|
1604
|
+
overflow-x: hidden;
|
|
1605
|
+
min-height: 0;
|
|
1606
|
+
}
|
|
1607
|
+
|
|
1601
1608
|
/* Col containing scrollable main needs min-height: 0 for scroll to work */
|
|
1602
1609
|
.${prefix}-col:has(> .${prefix}-main.${prefix}-scroll) {
|
|
1603
1610
|
min-height: 0;
|
|
@@ -1964,6 +1971,8 @@ function renderCol(node, ctx) {
|
|
|
1964
1971
|
node.md ? `${ctx.prefix}-col-md-${node.md}` : void 0,
|
|
1965
1972
|
node.lg ? `${ctx.prefix}-col-lg-${node.lg}` : void 0,
|
|
1966
1973
|
node.xl ? `${ctx.prefix}-col-xl-${node.xl}` : void 0,
|
|
1974
|
+
// Scroll support
|
|
1975
|
+
node.scroll ? `${ctx.prefix}-scroll` : void 0,
|
|
1967
1976
|
...ctx.getCommonClasses(node)
|
|
1968
1977
|
]);
|
|
1969
1978
|
const styles = ctx.buildColStyles(node);
|
|
@@ -156,6 +156,8 @@ interface ColNode extends BaseNode, CommonProps {
|
|
|
156
156
|
xl?: number;
|
|
157
157
|
/** Column order in flex container */
|
|
158
158
|
order?: number;
|
|
159
|
+
/** Enable vertical scrolling */
|
|
160
|
+
scroll?: boolean;
|
|
159
161
|
children: AnyNode[];
|
|
160
162
|
}
|
|
161
163
|
type ShadowValue = 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
@@ -156,6 +156,8 @@ interface ColNode extends BaseNode, CommonProps {
|
|
|
156
156
|
xl?: number;
|
|
157
157
|
/** Column order in flex container */
|
|
158
158
|
order?: number;
|
|
159
|
+
/** Enable vertical scrolling */
|
|
160
|
+
scroll?: boolean;
|
|
159
161
|
children: AnyNode[];
|
|
160
162
|
}
|
|
161
163
|
type ShadowValue = 'none' | 'sm' | 'md' | 'lg' | 'xl';
|