@latty-ds/web 0.6.0 → 0.7.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/custom-elements.json +892 -892
- package/dist/components/list/index.js +9 -1
- package/dist/index.cjs +9 -1
- package/dist/index.js +9 -1
- package/dist/manifest.json +81 -81
- package/package.json +3 -3
|
@@ -169,6 +169,14 @@ var listItemStyles = css2`
|
|
|
169
169
|
gap: var(--lt-spacing-2);
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
+
/* Keep the slotted content as a single flex item so rich inline markup
|
|
173
|
+
(strong, code, multiple text runs) flows as normal prose instead of each
|
|
174
|
+
node becoming its own shrunk flex item. min-width: 0 lets it wrap. */
|
|
175
|
+
.content {
|
|
176
|
+
flex: 1 1 auto;
|
|
177
|
+
min-width: 0;
|
|
178
|
+
}
|
|
179
|
+
|
|
172
180
|
lt-icon {
|
|
173
181
|
flex-shrink: 0;
|
|
174
182
|
color: var(--lt-color-neutral-500);
|
|
@@ -192,7 +200,7 @@ var ListItem = class extends ThemeableElement {
|
|
|
192
200
|
return html`
|
|
193
201
|
<div class="inner">
|
|
194
202
|
${this.iconStart ? html`<lt-icon class="icon-start" name=${this.iconStart}></lt-icon>` : nothing}
|
|
195
|
-
<slot></slot>
|
|
203
|
+
<span class="content"><slot></slot></span>
|
|
196
204
|
${this.iconEnd ? html`<lt-icon class="icon-end" name=${this.iconEnd}></lt-icon>` : nothing}
|
|
197
205
|
</div>
|
|
198
206
|
`;
|
package/dist/index.cjs
CHANGED
|
@@ -3593,6 +3593,14 @@ var listItemStyles = i`
|
|
|
3593
3593
|
gap: var(--lt-spacing-2);
|
|
3594
3594
|
}
|
|
3595
3595
|
|
|
3596
|
+
/* Keep the slotted content as a single flex item so rich inline markup
|
|
3597
|
+
(strong, code, multiple text runs) flows as normal prose instead of each
|
|
3598
|
+
node becoming its own shrunk flex item. min-width: 0 lets it wrap. */
|
|
3599
|
+
.content {
|
|
3600
|
+
flex: 1 1 auto;
|
|
3601
|
+
min-width: 0;
|
|
3602
|
+
}
|
|
3603
|
+
|
|
3596
3604
|
lt-icon {
|
|
3597
3605
|
flex-shrink: 0;
|
|
3598
3606
|
color: var(--lt-color-neutral-500);
|
|
@@ -3616,7 +3624,7 @@ var ListItem = class extends ThemeableElement {
|
|
|
3616
3624
|
return T`
|
|
3617
3625
|
<div class="inner">
|
|
3618
3626
|
${this.iconStart ? T`<lt-icon class="icon-start" name=${this.iconStart}></lt-icon>` : A}
|
|
3619
|
-
<slot></slot>
|
|
3627
|
+
<span class="content"><slot></slot></span>
|
|
3620
3628
|
${this.iconEnd ? T`<lt-icon class="icon-end" name=${this.iconEnd}></lt-icon>` : A}
|
|
3621
3629
|
</div>
|
|
3622
3630
|
`;
|
package/dist/index.js
CHANGED
|
@@ -2280,6 +2280,14 @@ var listItemStyles = css12`
|
|
|
2280
2280
|
gap: var(--lt-spacing-2);
|
|
2281
2281
|
}
|
|
2282
2282
|
|
|
2283
|
+
/* Keep the slotted content as a single flex item so rich inline markup
|
|
2284
|
+
(strong, code, multiple text runs) flows as normal prose instead of each
|
|
2285
|
+
node becoming its own shrunk flex item. min-width: 0 lets it wrap. */
|
|
2286
|
+
.content {
|
|
2287
|
+
flex: 1 1 auto;
|
|
2288
|
+
min-width: 0;
|
|
2289
|
+
}
|
|
2290
|
+
|
|
2283
2291
|
lt-icon {
|
|
2284
2292
|
flex-shrink: 0;
|
|
2285
2293
|
color: var(--lt-color-neutral-500);
|
|
@@ -2303,7 +2311,7 @@ var ListItem = class extends ThemeableElement {
|
|
|
2303
2311
|
return html10`
|
|
2304
2312
|
<div class="inner">
|
|
2305
2313
|
${this.iconStart ? html10`<lt-icon class="icon-start" name=${this.iconStart}></lt-icon>` : nothing3}
|
|
2306
|
-
<slot></slot>
|
|
2314
|
+
<span class="content"><slot></slot></span>
|
|
2307
2315
|
${this.iconEnd ? html10`<lt-icon class="icon-end" name=${this.iconEnd}></lt-icon>` : nothing3}
|
|
2308
2316
|
</div>
|
|
2309
2317
|
`;
|
package/dist/manifest.json
CHANGED
|
@@ -1533,6 +1533,56 @@
|
|
|
1533
1533
|
}
|
|
1534
1534
|
]
|
|
1535
1535
|
},
|
|
1536
|
+
"lt-radio-group": {
|
|
1537
|
+
"members": [
|
|
1538
|
+
{
|
|
1539
|
+
"name": "label",
|
|
1540
|
+
"description": "Label for the radio group.",
|
|
1541
|
+
"type": "text",
|
|
1542
|
+
"default": ""
|
|
1543
|
+
},
|
|
1544
|
+
{
|
|
1545
|
+
"name": "name",
|
|
1546
|
+
"description": "Name attribute applied to all radio buttons in the group.\nEnsures only one radio can be selected at a time.",
|
|
1547
|
+
"type": "text",
|
|
1548
|
+
"default": ""
|
|
1549
|
+
},
|
|
1550
|
+
{
|
|
1551
|
+
"name": "value",
|
|
1552
|
+
"description": "Currently selected value in the group.",
|
|
1553
|
+
"type": "text",
|
|
1554
|
+
"default": ""
|
|
1555
|
+
},
|
|
1556
|
+
{
|
|
1557
|
+
"name": "orientation",
|
|
1558
|
+
"description": "Layout orientation of the radio buttons.",
|
|
1559
|
+
"type": "select",
|
|
1560
|
+
"options": [
|
|
1561
|
+
"vertical",
|
|
1562
|
+
"horizontal"
|
|
1563
|
+
],
|
|
1564
|
+
"default": "vertical"
|
|
1565
|
+
},
|
|
1566
|
+
{
|
|
1567
|
+
"name": "helper-text",
|
|
1568
|
+
"description": "Helper text displayed below the radio group.",
|
|
1569
|
+
"type": "text",
|
|
1570
|
+
"default": ""
|
|
1571
|
+
},
|
|
1572
|
+
{
|
|
1573
|
+
"name": "error",
|
|
1574
|
+
"description": "Whether the radio group is in an error state.",
|
|
1575
|
+
"type": "boolean",
|
|
1576
|
+
"default": false
|
|
1577
|
+
},
|
|
1578
|
+
{
|
|
1579
|
+
"name": "required",
|
|
1580
|
+
"description": "Whether selection is required.",
|
|
1581
|
+
"type": "boolean",
|
|
1582
|
+
"default": false
|
|
1583
|
+
}
|
|
1584
|
+
]
|
|
1585
|
+
},
|
|
1536
1586
|
"lt-radio": {
|
|
1537
1587
|
"members": [
|
|
1538
1588
|
{
|
|
@@ -1607,56 +1657,6 @@
|
|
|
1607
1657
|
}
|
|
1608
1658
|
]
|
|
1609
1659
|
},
|
|
1610
|
-
"lt-radio-group": {
|
|
1611
|
-
"members": [
|
|
1612
|
-
{
|
|
1613
|
-
"name": "label",
|
|
1614
|
-
"description": "Label for the radio group.",
|
|
1615
|
-
"type": "text",
|
|
1616
|
-
"default": ""
|
|
1617
|
-
},
|
|
1618
|
-
{
|
|
1619
|
-
"name": "name",
|
|
1620
|
-
"description": "Name attribute applied to all radio buttons in the group.\nEnsures only one radio can be selected at a time.",
|
|
1621
|
-
"type": "text",
|
|
1622
|
-
"default": ""
|
|
1623
|
-
},
|
|
1624
|
-
{
|
|
1625
|
-
"name": "value",
|
|
1626
|
-
"description": "Currently selected value in the group.",
|
|
1627
|
-
"type": "text",
|
|
1628
|
-
"default": ""
|
|
1629
|
-
},
|
|
1630
|
-
{
|
|
1631
|
-
"name": "orientation",
|
|
1632
|
-
"description": "Layout orientation of the radio buttons.",
|
|
1633
|
-
"type": "select",
|
|
1634
|
-
"options": [
|
|
1635
|
-
"vertical",
|
|
1636
|
-
"horizontal"
|
|
1637
|
-
],
|
|
1638
|
-
"default": "vertical"
|
|
1639
|
-
},
|
|
1640
|
-
{
|
|
1641
|
-
"name": "helper-text",
|
|
1642
|
-
"description": "Helper text displayed below the radio group.",
|
|
1643
|
-
"type": "text",
|
|
1644
|
-
"default": ""
|
|
1645
|
-
},
|
|
1646
|
-
{
|
|
1647
|
-
"name": "error",
|
|
1648
|
-
"description": "Whether the radio group is in an error state.",
|
|
1649
|
-
"type": "boolean",
|
|
1650
|
-
"default": false
|
|
1651
|
-
},
|
|
1652
|
-
{
|
|
1653
|
-
"name": "required",
|
|
1654
|
-
"description": "Whether selection is required.",
|
|
1655
|
-
"type": "boolean",
|
|
1656
|
-
"default": false
|
|
1657
|
-
}
|
|
1658
|
-
]
|
|
1659
|
-
},
|
|
1660
1660
|
"lt-select": {
|
|
1661
1661
|
"members": [
|
|
1662
1662
|
{
|
|
@@ -2050,6 +2050,37 @@
|
|
|
2050
2050
|
}
|
|
2051
2051
|
]
|
|
2052
2052
|
},
|
|
2053
|
+
"lt-tab-group": {
|
|
2054
|
+
"members": [
|
|
2055
|
+
{
|
|
2056
|
+
"name": "value",
|
|
2057
|
+
"description": "Currently selected tab value.",
|
|
2058
|
+
"type": "text",
|
|
2059
|
+
"default": ""
|
|
2060
|
+
},
|
|
2061
|
+
{
|
|
2062
|
+
"name": "appearance",
|
|
2063
|
+
"description": "Visual appearance of the tab group.",
|
|
2064
|
+
"type": "select",
|
|
2065
|
+
"options": [
|
|
2066
|
+
"default",
|
|
2067
|
+
"pills"
|
|
2068
|
+
],
|
|
2069
|
+
"default": "default"
|
|
2070
|
+
},
|
|
2071
|
+
{
|
|
2072
|
+
"name": "size",
|
|
2073
|
+
"description": "Size of the tabs.",
|
|
2074
|
+
"type": "select",
|
|
2075
|
+
"options": [
|
|
2076
|
+
"sm",
|
|
2077
|
+
"md",
|
|
2078
|
+
"lg"
|
|
2079
|
+
],
|
|
2080
|
+
"default": "md"
|
|
2081
|
+
}
|
|
2082
|
+
]
|
|
2083
|
+
},
|
|
2053
2084
|
"lt-tab-panel": {
|
|
2054
2085
|
"members": [
|
|
2055
2086
|
{
|
|
@@ -2111,37 +2142,6 @@
|
|
|
2111
2142
|
}
|
|
2112
2143
|
]
|
|
2113
2144
|
},
|
|
2114
|
-
"lt-tab-group": {
|
|
2115
|
-
"members": [
|
|
2116
|
-
{
|
|
2117
|
-
"name": "value",
|
|
2118
|
-
"description": "Currently selected tab value.",
|
|
2119
|
-
"type": "text",
|
|
2120
|
-
"default": ""
|
|
2121
|
-
},
|
|
2122
|
-
{
|
|
2123
|
-
"name": "appearance",
|
|
2124
|
-
"description": "Visual appearance of the tab group.",
|
|
2125
|
-
"type": "select",
|
|
2126
|
-
"options": [
|
|
2127
|
-
"default",
|
|
2128
|
-
"pills"
|
|
2129
|
-
],
|
|
2130
|
-
"default": "default"
|
|
2131
|
-
},
|
|
2132
|
-
{
|
|
2133
|
-
"name": "size",
|
|
2134
|
-
"description": "Size of the tabs.",
|
|
2135
|
-
"type": "select",
|
|
2136
|
-
"options": [
|
|
2137
|
-
"sm",
|
|
2138
|
-
"md",
|
|
2139
|
-
"lg"
|
|
2140
|
-
],
|
|
2141
|
-
"default": "md"
|
|
2142
|
-
}
|
|
2143
|
-
]
|
|
2144
|
-
},
|
|
2145
2145
|
"lt-table": {
|
|
2146
2146
|
"members": [
|
|
2147
2147
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@latty-ds/web",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Web Components for the Latty design system — framework-agnostic UI components built with Lit",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -224,8 +224,8 @@
|
|
|
224
224
|
},
|
|
225
225
|
"dependencies": {
|
|
226
226
|
"@floating-ui/dom": "^1.7.6",
|
|
227
|
-
"@latty-ds/icons": "0.
|
|
227
|
+
"@latty-ds/icons": "0.7.0"
|
|
228
228
|
},
|
|
229
229
|
"customElements": "custom-elements.json",
|
|
230
|
-
"gitHead": "
|
|
230
|
+
"gitHead": "40d5903d30b50455ed244d5f0fd75fbd84934c46"
|
|
231
231
|
}
|