@vielzeug/codex 26.11.4 → 26.11.5
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/data/catalog.json +47 -45
- package/data/llms-full.txt +5 -5
- package/data/llms.txt +1 -1
- package/data/manifest.json +1 -1
- package/data/packages/assay.json +2 -1
- package/data/packages/necromancer.json +5 -1
- package/data/packages/refine.json +2 -2
- package/data/refine.json +752 -312
- package/data/search.json +5 -5
- package/package.json +2 -2
package/data/refine.json
CHANGED
|
@@ -1012,6 +1012,24 @@
|
|
|
1012
1012
|
],
|
|
1013
1013
|
"description": "Parses a boolean HTML attribute value into `true | false | undefined`, where\n`undefined` means \"attribute absent\": the signal controlled components (`open`)\nuse to distinguish uncontrolled from controlled mode.\n\nThe grammar is the standard attribute one: presence with no value (`open`) or\nthe literal `\"true\"` is true; anything else, including `\"false\"`, is false.\nEvery controlled overlay (dialog, drawer, menu, popover, tooltip,\ncommand-palette) parses its `open` prop with this exact contract."
|
|
1014
1014
|
},
|
|
1015
|
+
{
|
|
1016
|
+
"kind": "function",
|
|
1017
|
+
"name": "parseDetents",
|
|
1018
|
+
"return": {
|
|
1019
|
+
"type": {
|
|
1020
|
+
"text": "readonly number[] | undefined"
|
|
1021
|
+
}
|
|
1022
|
+
},
|
|
1023
|
+
"parameters": [
|
|
1024
|
+
{
|
|
1025
|
+
"name": "value",
|
|
1026
|
+
"type": {
|
|
1027
|
+
"text": "string | null"
|
|
1028
|
+
}
|
|
1029
|
+
}
|
|
1030
|
+
],
|
|
1031
|
+
"description": "Parses a comma-separated list of detent fractions into a sorted, deduplicated\narray of numbers in the open interval (0, 1): `detents=\"0.5,0.75\"`. A detent\nfraction is the share of the panel that stays on-screen when a dragged panel\ncomes to rest there (`0.5` = half-open). Entries outside (0, 1) are dropped;\nan absent or fully-invalid attribute yields `undefined` (\"no detents\"), which\nkeeps the component two-state (fully open / fully closed)."
|
|
1032
|
+
},
|
|
1015
1033
|
{
|
|
1016
1034
|
"kind": "function",
|
|
1017
1035
|
"name": "createDropdownPositioner",
|
|
@@ -1565,6 +1583,43 @@
|
|
|
1565
1583
|
],
|
|
1566
1584
|
"description": "The container width to test against a breakpoint, falling back to the element itself."
|
|
1567
1585
|
},
|
|
1586
|
+
{
|
|
1587
|
+
"kind": "variable",
|
|
1588
|
+
"name": "FLING_PROJECTION_SECONDS",
|
|
1589
|
+
"type": {
|
|
1590
|
+
"text": "number"
|
|
1591
|
+
},
|
|
1592
|
+
"default": "0.25",
|
|
1593
|
+
"description": "Fling projection: how far a released gesture would travel if its release\nvelocity carried on.\n\nApple's sheet and card gestures are velocity-sensitive: a short, fast flick\ndismisses just as surely as a long slow drag that crosses the threshold. A\nfixed distance threshold alone misses the flick entirely. Projecting the\nrelease position forward by the distance the current velocity would cover in\n`seconds` folds the flick into the same comparison the component already\nmakes, so one threshold serves both gestures.\n\nA quarter-second is the sweet spot: long enough that a deliberate flick\n(~1500 px/s) projects ~375px and clears any panel threshold, short enough\nthat a slow drag reads as itself. Components pair this with\n`@vielzeug/necromancer`'s `spring()`, seeded with the same release velocity,\nso the projection decides *where* the panel settles and the spring reproduces\nthe momentum that put it there."
|
|
1594
|
+
},
|
|
1595
|
+
{
|
|
1596
|
+
"kind": "function",
|
|
1597
|
+
"name": "projectFling",
|
|
1598
|
+
"return": {
|
|
1599
|
+
"type": {
|
|
1600
|
+
"text": "number"
|
|
1601
|
+
}
|
|
1602
|
+
},
|
|
1603
|
+
"parameters": [
|
|
1604
|
+
{
|
|
1605
|
+
"name": "position",
|
|
1606
|
+
"type": {
|
|
1607
|
+
"text": "number"
|
|
1608
|
+
}
|
|
1609
|
+
},
|
|
1610
|
+
{
|
|
1611
|
+
"name": "velocity",
|
|
1612
|
+
"type": {
|
|
1613
|
+
"text": "number"
|
|
1614
|
+
}
|
|
1615
|
+
},
|
|
1616
|
+
{
|
|
1617
|
+
"name": "seconds",
|
|
1618
|
+
"default": "FLING_PROJECTION_SECONDS"
|
|
1619
|
+
}
|
|
1620
|
+
],
|
|
1621
|
+
"description": "Project a released position forward along the direction of `velocity`\n(px/s), as if it had continued for FLING_PROJECTION_SECONDS."
|
|
1622
|
+
},
|
|
1568
1623
|
{
|
|
1569
1624
|
"kind": "function",
|
|
1570
1625
|
"name": "motionReduced",
|
|
@@ -4852,6 +4907,152 @@
|
|
|
4852
4907
|
}
|
|
4853
4908
|
]
|
|
4854
4909
|
},
|
|
4910
|
+
{
|
|
4911
|
+
"kind": "variable",
|
|
4912
|
+
"name": "TEXT_TAG",
|
|
4913
|
+
"type": {
|
|
4914
|
+
"text": "'ore-text'"
|
|
4915
|
+
},
|
|
4916
|
+
"default": "'ore-text'",
|
|
4917
|
+
"description": "A typography component with semantic variants and responsive sizing."
|
|
4918
|
+
},
|
|
4919
|
+
{
|
|
4920
|
+
"kind": "class",
|
|
4921
|
+
"name": "OreTextElement",
|
|
4922
|
+
"tagName": "ore-text",
|
|
4923
|
+
"customElement": true,
|
|
4924
|
+
"description": "A typography component with semantic variants and responsive sizing.",
|
|
4925
|
+
"summary": "",
|
|
4926
|
+
"attributes": [
|
|
4927
|
+
{
|
|
4928
|
+
"name": "variant",
|
|
4929
|
+
"type": {
|
|
4930
|
+
"text": "'body' | 'heading' | 'label' | 'caption' | 'overline' | 'code'"
|
|
4931
|
+
},
|
|
4932
|
+
"description": "Text variant: 'body' | 'heading' | 'label' | 'caption' | 'overline' | 'code'"
|
|
4933
|
+
},
|
|
4934
|
+
{
|
|
4935
|
+
"name": "size",
|
|
4936
|
+
"type": {
|
|
4937
|
+
"text": "'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl'"
|
|
4938
|
+
},
|
|
4939
|
+
"description": "Font size: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl'. Maps to --text-* tokens for body variants and --heading-* tokens for the heading variant."
|
|
4940
|
+
},
|
|
4941
|
+
{
|
|
4942
|
+
"name": "weight",
|
|
4943
|
+
"type": {
|
|
4944
|
+
"text": "'normal' | 'medium' | 'semibold' | 'bold'"
|
|
4945
|
+
},
|
|
4946
|
+
"description": "Font weight: 'normal' | 'medium' | 'semibold' | 'bold'"
|
|
4947
|
+
},
|
|
4948
|
+
{
|
|
4949
|
+
"name": "color",
|
|
4950
|
+
"type": {
|
|
4951
|
+
"text": "'primary' | 'secondary' | 'info' | 'success' | 'warning' | 'error' | 'heading' | 'body' | 'muted' | 'tertiary' | 'disabled' | 'contrast'"
|
|
4952
|
+
},
|
|
4953
|
+
"description": "Text color: 'primary' | 'secondary' | 'info' | 'success' | 'warning' | 'error' | 'heading' | 'body' | 'muted' | 'tertiary' | 'disabled' | 'contrast'"
|
|
4954
|
+
},
|
|
4955
|
+
{
|
|
4956
|
+
"name": "align",
|
|
4957
|
+
"type": {
|
|
4958
|
+
"text": "'left' | 'center' | 'right' | 'justify'"
|
|
4959
|
+
},
|
|
4960
|
+
"description": "Text alignment: 'left' | 'center' | 'right' | 'justify'"
|
|
4961
|
+
},
|
|
4962
|
+
{
|
|
4963
|
+
"name": "truncate",
|
|
4964
|
+
"type": {
|
|
4965
|
+
"text": "boolean"
|
|
4966
|
+
},
|
|
4967
|
+
"description": "Truncate text with ellipsis when it overflows (single-line)"
|
|
4968
|
+
},
|
|
4969
|
+
{
|
|
4970
|
+
"name": "lines",
|
|
4971
|
+
"type": {
|
|
4972
|
+
"text": "number"
|
|
4973
|
+
},
|
|
4974
|
+
"description": "Clamp to N lines with ellipsis (multi-line truncation)"
|
|
4975
|
+
},
|
|
4976
|
+
{
|
|
4977
|
+
"name": "expandable",
|
|
4978
|
+
"type": {
|
|
4979
|
+
"text": "boolean"
|
|
4980
|
+
},
|
|
4981
|
+
"description": "Reveal clipped text on click/tap (pairs with `truncate` or `lines`)"
|
|
4982
|
+
},
|
|
4983
|
+
{
|
|
4984
|
+
"name": "expanded",
|
|
4985
|
+
"type": {
|
|
4986
|
+
"text": "boolean"
|
|
4987
|
+
},
|
|
4988
|
+
"description": "Controlled expanded state for an `expandable` text"
|
|
4989
|
+
},
|
|
4990
|
+
{
|
|
4991
|
+
"name": "default-expanded",
|
|
4992
|
+
"type": {
|
|
4993
|
+
"text": "boolean"
|
|
4994
|
+
},
|
|
4995
|
+
"description": "Initial uncontrolled expanded state"
|
|
4996
|
+
},
|
|
4997
|
+
{
|
|
4998
|
+
"name": "italic",
|
|
4999
|
+
"type": {
|
|
5000
|
+
"text": "boolean"
|
|
5001
|
+
},
|
|
5002
|
+
"description": "Italic text style"
|
|
5003
|
+
},
|
|
5004
|
+
{
|
|
5005
|
+
"name": "as",
|
|
5006
|
+
"type": {
|
|
5007
|
+
"text": "'span' | 'p' | 'div' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'label' | 'code'"
|
|
5008
|
+
},
|
|
5009
|
+
"description": "Semantic HTML element: 'span' | 'p' | 'div' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'label' | 'code'"
|
|
5010
|
+
}
|
|
5011
|
+
],
|
|
5012
|
+
"events": [
|
|
5013
|
+
{
|
|
5014
|
+
"name": "expand-change",
|
|
5015
|
+
"description": "Fired when an `expandable` text is toggled. detail: { expanded: boolean }",
|
|
5016
|
+
"type": {
|
|
5017
|
+
"text": "CustomEvent"
|
|
5018
|
+
}
|
|
5019
|
+
}
|
|
5020
|
+
],
|
|
5021
|
+
"slots": [
|
|
5022
|
+
{
|
|
5023
|
+
"name": "",
|
|
5024
|
+
"description": "Text content"
|
|
5025
|
+
}
|
|
5026
|
+
],
|
|
5027
|
+
"cssProperties": [
|
|
5028
|
+
{
|
|
5029
|
+
"name": "--text-size",
|
|
5030
|
+
"description": "Font size"
|
|
5031
|
+
},
|
|
5032
|
+
{
|
|
5033
|
+
"name": "--text-weight",
|
|
5034
|
+
"description": "Font weight"
|
|
5035
|
+
},
|
|
5036
|
+
{
|
|
5037
|
+
"name": "--text-color",
|
|
5038
|
+
"description": "Text color"
|
|
5039
|
+
},
|
|
5040
|
+
{
|
|
5041
|
+
"name": "--text-line-height",
|
|
5042
|
+
"description": "Line height"
|
|
5043
|
+
},
|
|
5044
|
+
{
|
|
5045
|
+
"name": "--text-letter-spacing",
|
|
5046
|
+
"description": "Letter spacing"
|
|
5047
|
+
}
|
|
5048
|
+
],
|
|
5049
|
+
"demos": [
|
|
5050
|
+
{
|
|
5051
|
+
"url": "",
|
|
5052
|
+
"description": "```html\n<ore-text variant=\"heading\" size=\"2xl\" weight=\"bold\">Welcome</ore-text>\n<ore-text as=\"h2\" variant=\"heading\" size=\"xl\">Section title</ore-text>\n<ore-text color=\"primary\" weight=\"semibold\">Important notice</ore-text>\n<ore-text variant=\"code\">npm install</ore-text>\n<ore-text lines=\"2\">Long paragraph that clamps at two lines…</ore-text>\n<!-- Clamp and let the reader expand -->\n<ore-text lines=\"2\" expandable>Long paragraph, tap to read the rest…</ore-text>\n```"
|
|
5053
|
+
}
|
|
5054
|
+
]
|
|
5055
|
+
},
|
|
4855
5056
|
{
|
|
4856
5057
|
"kind": "variable",
|
|
4857
5058
|
"name": "ALERT_TAG",
|
|
@@ -5041,333 +5242,75 @@
|
|
|
5041
5242
|
},
|
|
5042
5243
|
{
|
|
5043
5244
|
"kind": "variable",
|
|
5044
|
-
"name": "
|
|
5245
|
+
"name": "BADGE_TAG",
|
|
5045
5246
|
"type": {
|
|
5046
|
-
"text": "'ore-
|
|
5247
|
+
"text": "'ore-badge'"
|
|
5047
5248
|
},
|
|
5048
|
-
"default": "'ore-
|
|
5049
|
-
"description": "A
|
|
5249
|
+
"default": "'ore-badge'",
|
|
5250
|
+
"description": "A compact badge/chip for counts, statuses, and labels.\nSupports numeric counts with overflow, dot mode, and icon slots."
|
|
5050
5251
|
},
|
|
5051
5252
|
{
|
|
5052
5253
|
"kind": "class",
|
|
5053
|
-
"name": "
|
|
5054
|
-
"tagName": "ore-
|
|
5254
|
+
"name": "OreBadgeElement",
|
|
5255
|
+
"tagName": "ore-badge",
|
|
5055
5256
|
"customElement": true,
|
|
5056
|
-
"description": "A
|
|
5257
|
+
"description": "A compact badge/chip for counts, statuses, and labels.\nSupports numeric counts with overflow, dot mode, and icon slots.",
|
|
5057
5258
|
"summary": "",
|
|
5058
5259
|
"attributes": [
|
|
5059
5260
|
{
|
|
5060
|
-
"name": "
|
|
5261
|
+
"name": "color",
|
|
5061
5262
|
"type": {
|
|
5062
|
-
"text": "'
|
|
5263
|
+
"text": "'primary' | 'secondary' | 'info' | 'success' | 'warning' | 'error'"
|
|
5063
5264
|
},
|
|
5064
|
-
"description": "
|
|
5265
|
+
"description": "Theme color: 'primary' | 'secondary' | 'info' | 'success' | 'warning' | 'error'"
|
|
5065
5266
|
},
|
|
5066
5267
|
{
|
|
5067
|
-
"name": "
|
|
5268
|
+
"name": "variant",
|
|
5068
5269
|
"type": {
|
|
5069
|
-
"text": "'
|
|
5270
|
+
"text": "'solid' | 'flat' | 'bordered' | 'outline' | 'frost'"
|
|
5070
5271
|
},
|
|
5071
|
-
"description": "
|
|
5272
|
+
"description": "Visual variant: 'solid' | 'flat' | 'bordered' | 'outline' | 'frost'"
|
|
5072
5273
|
},
|
|
5073
5274
|
{
|
|
5074
|
-
"name": "
|
|
5275
|
+
"name": "size",
|
|
5075
5276
|
"type": {
|
|
5076
|
-
"text": "'
|
|
5277
|
+
"text": "'xs' | 'sm' | 'md' | 'lg'"
|
|
5077
5278
|
},
|
|
5078
|
-
"description": "
|
|
5279
|
+
"description": "Component size: 'xs' | 'sm' | 'md' | 'lg'"
|
|
5079
5280
|
},
|
|
5080
5281
|
{
|
|
5081
|
-
"name": "
|
|
5282
|
+
"name": "count",
|
|
5082
5283
|
"type": {
|
|
5083
|
-
"text": "
|
|
5284
|
+
"text": "number"
|
|
5084
5285
|
},
|
|
5085
|
-
"description": "
|
|
5286
|
+
"description": "Numeric count to display"
|
|
5086
5287
|
},
|
|
5087
5288
|
{
|
|
5088
|
-
"name": "
|
|
5289
|
+
"name": "max",
|
|
5089
5290
|
"type": {
|
|
5090
|
-
"text": "
|
|
5291
|
+
"text": "number"
|
|
5091
5292
|
},
|
|
5092
|
-
"description": "
|
|
5293
|
+
"description": "Max count before showing \"<max>+\""
|
|
5093
5294
|
},
|
|
5094
5295
|
{
|
|
5095
|
-
"name": "
|
|
5296
|
+
"name": "dot",
|
|
5096
5297
|
"type": {
|
|
5097
5298
|
"text": "boolean"
|
|
5098
5299
|
},
|
|
5099
|
-
"description": "
|
|
5300
|
+
"description": "Render as a dot indicator (no text)"
|
|
5100
5301
|
},
|
|
5101
5302
|
{
|
|
5102
|
-
"name": "
|
|
5303
|
+
"name": "rounded",
|
|
5103
5304
|
"type": {
|
|
5104
|
-
"text": "
|
|
5305
|
+
"text": "'none' | 'sm' | 'md' | 'lg' | 'full'"
|
|
5105
5306
|
},
|
|
5106
|
-
"description": "
|
|
5107
|
-
}
|
|
5307
|
+
"description": "Border radius: 'none' | 'sm' | 'md' | 'lg' | 'full' etc."
|
|
5308
|
+
}
|
|
5309
|
+
],
|
|
5310
|
+
"slots": [
|
|
5108
5311
|
{
|
|
5109
|
-
"name": "
|
|
5110
|
-
"
|
|
5111
|
-
"text": "boolean"
|
|
5112
|
-
},
|
|
5113
|
-
"description": "Reveal clipped text on click/tap (pairs with `truncate` or `lines`)"
|
|
5114
|
-
},
|
|
5115
|
-
{
|
|
5116
|
-
"name": "expanded",
|
|
5117
|
-
"type": {
|
|
5118
|
-
"text": "boolean"
|
|
5119
|
-
},
|
|
5120
|
-
"description": "Controlled expanded state for an `expandable` text"
|
|
5121
|
-
},
|
|
5122
|
-
{
|
|
5123
|
-
"name": "default-expanded",
|
|
5124
|
-
"type": {
|
|
5125
|
-
"text": "boolean"
|
|
5126
|
-
},
|
|
5127
|
-
"description": "Initial uncontrolled expanded state"
|
|
5128
|
-
},
|
|
5129
|
-
{
|
|
5130
|
-
"name": "italic",
|
|
5131
|
-
"type": {
|
|
5132
|
-
"text": "boolean"
|
|
5133
|
-
},
|
|
5134
|
-
"description": "Italic text style"
|
|
5135
|
-
},
|
|
5136
|
-
{
|
|
5137
|
-
"name": "as",
|
|
5138
|
-
"type": {
|
|
5139
|
-
"text": "'span' | 'p' | 'div' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'label' | 'code'"
|
|
5140
|
-
},
|
|
5141
|
-
"description": "Semantic HTML element: 'span' | 'p' | 'div' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'label' | 'code'"
|
|
5142
|
-
}
|
|
5143
|
-
],
|
|
5144
|
-
"events": [
|
|
5145
|
-
{
|
|
5146
|
-
"name": "expand-change",
|
|
5147
|
-
"description": "Fired when an `expandable` text is toggled. detail: { expanded: boolean }",
|
|
5148
|
-
"type": {
|
|
5149
|
-
"text": "CustomEvent"
|
|
5150
|
-
}
|
|
5151
|
-
}
|
|
5152
|
-
],
|
|
5153
|
-
"slots": [
|
|
5154
|
-
{
|
|
5155
|
-
"name": "",
|
|
5156
|
-
"description": "Text content"
|
|
5157
|
-
}
|
|
5158
|
-
],
|
|
5159
|
-
"cssProperties": [
|
|
5160
|
-
{
|
|
5161
|
-
"name": "--text-size",
|
|
5162
|
-
"description": "Font size"
|
|
5163
|
-
},
|
|
5164
|
-
{
|
|
5165
|
-
"name": "--text-weight",
|
|
5166
|
-
"description": "Font weight"
|
|
5167
|
-
},
|
|
5168
|
-
{
|
|
5169
|
-
"name": "--text-color",
|
|
5170
|
-
"description": "Text color"
|
|
5171
|
-
},
|
|
5172
|
-
{
|
|
5173
|
-
"name": "--text-line-height",
|
|
5174
|
-
"description": "Line height"
|
|
5175
|
-
},
|
|
5176
|
-
{
|
|
5177
|
-
"name": "--text-letter-spacing",
|
|
5178
|
-
"description": "Letter spacing"
|
|
5179
|
-
}
|
|
5180
|
-
],
|
|
5181
|
-
"demos": [
|
|
5182
|
-
{
|
|
5183
|
-
"url": "",
|
|
5184
|
-
"description": "```html\n<ore-text variant=\"heading\" size=\"2xl\" weight=\"bold\">Welcome</ore-text>\n<ore-text as=\"h2\" variant=\"heading\" size=\"xl\">Section title</ore-text>\n<ore-text color=\"primary\" weight=\"semibold\">Important notice</ore-text>\n<ore-text variant=\"code\">npm install</ore-text>\n<ore-text lines=\"2\">Long paragraph that clamps at two lines…</ore-text>\n<!-- Clamp and let the reader expand -->\n<ore-text lines=\"2\" expandable>Long paragraph, tap to read the rest…</ore-text>\n```"
|
|
5185
|
-
}
|
|
5186
|
-
]
|
|
5187
|
-
},
|
|
5188
|
-
{
|
|
5189
|
-
"kind": "variable",
|
|
5190
|
-
"name": "ASYNC_TAG",
|
|
5191
|
-
"type": {
|
|
5192
|
-
"text": "'ore-async'"
|
|
5193
|
-
},
|
|
5194
|
-
"default": "'ore-async'",
|
|
5195
|
-
"description": "A container for handling asynchronous states (loading, empty, error, success).\nSimplifies data fetching UI by providing consistent fallbacks."
|
|
5196
|
-
},
|
|
5197
|
-
{
|
|
5198
|
-
"kind": "class",
|
|
5199
|
-
"name": "OreAsyncElement",
|
|
5200
|
-
"tagName": "ore-async",
|
|
5201
|
-
"customElement": true,
|
|
5202
|
-
"description": "A container for handling asynchronous states (loading, empty, error, success).\nSimplifies data fetching UI by providing consistent fallbacks.",
|
|
5203
|
-
"summary": "",
|
|
5204
|
-
"attributes": [
|
|
5205
|
-
{
|
|
5206
|
-
"name": "status",
|
|
5207
|
-
"type": {
|
|
5208
|
-
"text": "'idle' | 'loading' | 'empty' | 'error' | 'success'"
|
|
5209
|
-
},
|
|
5210
|
-
"description": "current state: 'idle' | 'loading' | 'empty' | 'error' | 'success' (default: 'success')",
|
|
5211
|
-
"default": "'success'"
|
|
5212
|
-
},
|
|
5213
|
-
{
|
|
5214
|
-
"name": "retryable",
|
|
5215
|
-
"type": {
|
|
5216
|
-
"text": "boolean"
|
|
5217
|
-
},
|
|
5218
|
-
"description": "show retry button in error state (default: false)",
|
|
5219
|
-
"default": "false"
|
|
5220
|
-
},
|
|
5221
|
-
{
|
|
5222
|
-
"name": "empty-label",
|
|
5223
|
-
"type": {
|
|
5224
|
-
"text": "string"
|
|
5225
|
-
},
|
|
5226
|
-
"description": "title for empty state (default: 'No content yet')",
|
|
5227
|
-
"default": "'No content yet'"
|
|
5228
|
-
},
|
|
5229
|
-
{
|
|
5230
|
-
"name": "empty-description",
|
|
5231
|
-
"type": {
|
|
5232
|
-
"text": "string"
|
|
5233
|
-
},
|
|
5234
|
-
"description": "optional text for empty state"
|
|
5235
|
-
},
|
|
5236
|
-
{
|
|
5237
|
-
"name": "error-label",
|
|
5238
|
-
"type": {
|
|
5239
|
-
"text": "string"
|
|
5240
|
-
},
|
|
5241
|
-
"description": "title for error state (default: 'Something went wrong')",
|
|
5242
|
-
"default": "'Something went wrong'"
|
|
5243
|
-
},
|
|
5244
|
-
{
|
|
5245
|
-
"name": "error-description",
|
|
5246
|
-
"type": {
|
|
5247
|
-
"text": "string"
|
|
5248
|
-
},
|
|
5249
|
-
"description": "optional text for error state"
|
|
5250
|
-
}
|
|
5251
|
-
],
|
|
5252
|
-
"events": [
|
|
5253
|
-
{
|
|
5254
|
-
"name": "retry",
|
|
5255
|
-
"description": "Emitted when the retry button is clicked (no detail payload)",
|
|
5256
|
-
"type": {
|
|
5257
|
-
"text": "CustomEvent"
|
|
5258
|
-
}
|
|
5259
|
-
}
|
|
5260
|
-
],
|
|
5261
|
-
"slots": [
|
|
5262
|
-
{
|
|
5263
|
-
"name": "",
|
|
5264
|
-
"description": "default content shown in 'success' state"
|
|
5265
|
-
},
|
|
5266
|
-
{
|
|
5267
|
-
"name": "loading",
|
|
5268
|
-
"description": "custom loading UI (overrides default skeletons)"
|
|
5269
|
-
},
|
|
5270
|
-
{
|
|
5271
|
-
"name": "empty",
|
|
5272
|
-
"description": "custom empty UI (overrides default icon/label)"
|
|
5273
|
-
},
|
|
5274
|
-
{
|
|
5275
|
-
"name": "error",
|
|
5276
|
-
"description": "custom error UI (overrides default icon/label)"
|
|
5277
|
-
}
|
|
5278
|
-
],
|
|
5279
|
-
"cssProperties": [
|
|
5280
|
-
{
|
|
5281
|
-
"name": "--async-color",
|
|
5282
|
-
"description": "Text/icon color used by default async state content"
|
|
5283
|
-
},
|
|
5284
|
-
{
|
|
5285
|
-
"name": "--async-gap",
|
|
5286
|
-
"description": "Vertical spacing between icon, title, description, and actions"
|
|
5287
|
-
},
|
|
5288
|
-
{
|
|
5289
|
-
"name": "--async-icon-size",
|
|
5290
|
-
"description": "Icon size for built-in loading/empty/error visuals"
|
|
5291
|
-
}
|
|
5292
|
-
],
|
|
5293
|
-
"demos": [
|
|
5294
|
-
{
|
|
5295
|
-
"url": "",
|
|
5296
|
-
"description": "```html\n<!-- Success state: default slot is shown -->\n<ore-async status=\"success\">\n <ul><li>Item one</li><li>Item two</li></ul>\n</ore-async>\n<!-- Loading state: shows skeleton placeholders -->\n<ore-async status=\"loading\"></ore-async>\n<!-- Empty state with custom message -->\n<ore-async status=\"empty\" empty-label=\"No results\" empty-description=\"Try adjusting your filters.\"></ore-async>\n<!-- Error state with retry button -->\n<ore-async status=\"error\" retryable error-label=\"Failed to load\" error-description=\"Check your connection.\"></ore-async>\n```"
|
|
5297
|
-
}
|
|
5298
|
-
]
|
|
5299
|
-
},
|
|
5300
|
-
{
|
|
5301
|
-
"kind": "variable",
|
|
5302
|
-
"name": "BADGE_TAG",
|
|
5303
|
-
"type": {
|
|
5304
|
-
"text": "'ore-badge'"
|
|
5305
|
-
},
|
|
5306
|
-
"default": "'ore-badge'",
|
|
5307
|
-
"description": "A compact badge/chip for counts, statuses, and labels.\nSupports numeric counts with overflow, dot mode, and icon slots."
|
|
5308
|
-
},
|
|
5309
|
-
{
|
|
5310
|
-
"kind": "class",
|
|
5311
|
-
"name": "OreBadgeElement",
|
|
5312
|
-
"tagName": "ore-badge",
|
|
5313
|
-
"customElement": true,
|
|
5314
|
-
"description": "A compact badge/chip for counts, statuses, and labels.\nSupports numeric counts with overflow, dot mode, and icon slots.",
|
|
5315
|
-
"summary": "",
|
|
5316
|
-
"attributes": [
|
|
5317
|
-
{
|
|
5318
|
-
"name": "color",
|
|
5319
|
-
"type": {
|
|
5320
|
-
"text": "'primary' | 'secondary' | 'info' | 'success' | 'warning' | 'error'"
|
|
5321
|
-
},
|
|
5322
|
-
"description": "Theme color: 'primary' | 'secondary' | 'info' | 'success' | 'warning' | 'error'"
|
|
5323
|
-
},
|
|
5324
|
-
{
|
|
5325
|
-
"name": "variant",
|
|
5326
|
-
"type": {
|
|
5327
|
-
"text": "'solid' | 'flat' | 'bordered' | 'outline' | 'frost'"
|
|
5328
|
-
},
|
|
5329
|
-
"description": "Visual variant: 'solid' | 'flat' | 'bordered' | 'outline' | 'frost'"
|
|
5330
|
-
},
|
|
5331
|
-
{
|
|
5332
|
-
"name": "size",
|
|
5333
|
-
"type": {
|
|
5334
|
-
"text": "'xs' | 'sm' | 'md' | 'lg'"
|
|
5335
|
-
},
|
|
5336
|
-
"description": "Component size: 'xs' | 'sm' | 'md' | 'lg'"
|
|
5337
|
-
},
|
|
5338
|
-
{
|
|
5339
|
-
"name": "count",
|
|
5340
|
-
"type": {
|
|
5341
|
-
"text": "number"
|
|
5342
|
-
},
|
|
5343
|
-
"description": "Numeric count to display"
|
|
5344
|
-
},
|
|
5345
|
-
{
|
|
5346
|
-
"name": "max",
|
|
5347
|
-
"type": {
|
|
5348
|
-
"text": "number"
|
|
5349
|
-
},
|
|
5350
|
-
"description": "Max count before showing \"<max>+\""
|
|
5351
|
-
},
|
|
5352
|
-
{
|
|
5353
|
-
"name": "dot",
|
|
5354
|
-
"type": {
|
|
5355
|
-
"text": "boolean"
|
|
5356
|
-
},
|
|
5357
|
-
"description": "Render as a dot indicator (no text)"
|
|
5358
|
-
},
|
|
5359
|
-
{
|
|
5360
|
-
"name": "rounded",
|
|
5361
|
-
"type": {
|
|
5362
|
-
"text": "'none' | 'sm' | 'md' | 'lg' | 'full'"
|
|
5363
|
-
},
|
|
5364
|
-
"description": "Border radius: 'none' | 'sm' | 'md' | 'lg' | 'full' etc."
|
|
5365
|
-
}
|
|
5366
|
-
],
|
|
5367
|
-
"slots": [
|
|
5368
|
-
{
|
|
5369
|
-
"name": "",
|
|
5370
|
-
"description": "Badge label text"
|
|
5312
|
+
"name": "",
|
|
5313
|
+
"description": "Badge label text"
|
|
5371
5314
|
},
|
|
5372
5315
|
{
|
|
5373
5316
|
"name": "icon",
|
|
@@ -5999,6 +5942,85 @@
|
|
|
5999
5942
|
}
|
|
6000
5943
|
]
|
|
6001
5944
|
},
|
|
5945
|
+
{
|
|
5946
|
+
"kind": "variable",
|
|
5947
|
+
"name": "PULL_TO_REFRESH_TAG",
|
|
5948
|
+
"type": {
|
|
5949
|
+
"text": "'ore-pull-to-refresh'"
|
|
5950
|
+
},
|
|
5951
|
+
"default": "'ore-pull-to-refresh'",
|
|
5952
|
+
"description": "A pull-to-refresh scroll container: drag the (already scrolled-to-top)\ncontent down past the threshold and release to trigger a refresh. A\nspring-physics indicator tracks the finger, rubber-bands past the threshold,\ncarries the release momentum, and holds at the refresh position until the\nconsumer calls `refreshed()`.\n\nThe component owns the gesture and the motion; the consumer owns the data.\nListen for `refresh`, load, then call `refreshed()` on the element when the\nload resolves."
|
|
5953
|
+
},
|
|
5954
|
+
{
|
|
5955
|
+
"kind": "class",
|
|
5956
|
+
"name": "OrePullToRefreshElement",
|
|
5957
|
+
"tagName": "ore-pull-to-refresh",
|
|
5958
|
+
"customElement": true,
|
|
5959
|
+
"description": "A pull-to-refresh scroll container: drag the (already scrolled-to-top)\ncontent down past the threshold and release to trigger a refresh. A\nspring-physics indicator tracks the finger, rubber-bands past the threshold,\ncarries the release momentum, and holds at the refresh position until the\nconsumer calls `refreshed()`.\nThe component owns the gesture and the motion; the consumer owns the data.\nListen for `refresh`, load, then call `refreshed()` on the element when the\nload resolves.",
|
|
5960
|
+
"summary": "",
|
|
5961
|
+
"attributes": [
|
|
5962
|
+
{
|
|
5963
|
+
"name": "threshold",
|
|
5964
|
+
"type": {
|
|
5965
|
+
"text": "number"
|
|
5966
|
+
},
|
|
5967
|
+
"description": "Pull distance in px before release commits (default: 64)",
|
|
5968
|
+
"default": "64"
|
|
5969
|
+
},
|
|
5970
|
+
{
|
|
5971
|
+
"name": "disabled",
|
|
5972
|
+
"type": {
|
|
5973
|
+
"text": "boolean"
|
|
5974
|
+
},
|
|
5975
|
+
"description": "Disable the pull gesture"
|
|
5976
|
+
}
|
|
5977
|
+
],
|
|
5978
|
+
"events": [
|
|
5979
|
+
{
|
|
5980
|
+
"name": "refresh",
|
|
5981
|
+
"description": "Emitted when a pull commits. Call `refreshed()` when the load finishes.",
|
|
5982
|
+
"type": {
|
|
5983
|
+
"text": "CustomEvent"
|
|
5984
|
+
}
|
|
5985
|
+
}
|
|
5986
|
+
],
|
|
5987
|
+
"slots": [
|
|
5988
|
+
{
|
|
5989
|
+
"name": "",
|
|
5990
|
+
"description": "The scrollable content."
|
|
5991
|
+
}
|
|
5992
|
+
],
|
|
5993
|
+
"cssParts": [
|
|
5994
|
+
{
|
|
5995
|
+
"name": "indicator",
|
|
5996
|
+
"description": "The indicator region holding the spinner."
|
|
5997
|
+
},
|
|
5998
|
+
{
|
|
5999
|
+
"name": "spinner",
|
|
6000
|
+
"description": "The spinner element."
|
|
6001
|
+
},
|
|
6002
|
+
{
|
|
6003
|
+
"name": "content",
|
|
6004
|
+
"description": "The dragged content wrapper."
|
|
6005
|
+
}
|
|
6006
|
+
],
|
|
6007
|
+
"cssProperties": [
|
|
6008
|
+
{
|
|
6009
|
+
"name": "--pull-to-refresh-spinner-size",
|
|
6010
|
+
"description": "Spinner diameter (default: 24px)"
|
|
6011
|
+
},
|
|
6012
|
+
{
|
|
6013
|
+
"name": "--pull-to-refresh-spinner-color",
|
|
6014
|
+
"description": "Spinner color (defaults to the primary color)"
|
|
6015
|
+
}
|
|
6016
|
+
],
|
|
6017
|
+
"demos": [
|
|
6018
|
+
{
|
|
6019
|
+
"url": "",
|
|
6020
|
+
"description": "```html\n<ore-pull-to-refresh id=\"feed\">\n <ul>...</ul>\n</ore-pull-to-refresh>\n<script>\n feed.addEventListener('refresh', async () => {\n await reloadFeed();\n feed.refreshed();\n });\n</script>\n```"
|
|
6021
|
+
}
|
|
6022
|
+
]
|
|
6023
|
+
},
|
|
6002
6024
|
{
|
|
6003
6025
|
"kind": "variable",
|
|
6004
6026
|
"name": "SKELETON_TAG",
|
|
@@ -6101,34 +6123,154 @@
|
|
|
6101
6123
|
"description": "Circle fallback size"
|
|
6102
6124
|
},
|
|
6103
6125
|
{
|
|
6104
|
-
"name": "--skeleton-width",
|
|
6105
|
-
"description": "Width (default: 100%)"
|
|
6126
|
+
"name": "--skeleton-width",
|
|
6127
|
+
"description": "Width (default: 100%)"
|
|
6128
|
+
},
|
|
6129
|
+
{
|
|
6130
|
+
"name": "--skeleton-height",
|
|
6131
|
+
"description": "Height (default: var(--size-4))"
|
|
6132
|
+
},
|
|
6133
|
+
{
|
|
6134
|
+
"name": "--skeleton-line-gap",
|
|
6135
|
+
"description": "Vertical gap between text lines"
|
|
6136
|
+
},
|
|
6137
|
+
{
|
|
6138
|
+
"name": "--skeleton-last-line-width",
|
|
6139
|
+
"description": "Width of the final text line"
|
|
6140
|
+
},
|
|
6141
|
+
{
|
|
6142
|
+
"name": "--skeleton-duration",
|
|
6143
|
+
"description": "Shimmer animation duration"
|
|
6144
|
+
},
|
|
6145
|
+
{
|
|
6146
|
+
"name": "--skeleton-stripe-size",
|
|
6147
|
+
"description": "Width of each diagonal stripe (default: 6px)"
|
|
6148
|
+
}
|
|
6149
|
+
],
|
|
6150
|
+
"demos": [
|
|
6151
|
+
{
|
|
6152
|
+
"url": "",
|
|
6153
|
+
"description": "```html\n<!-- Paragraph lines -->\n<ore-skeleton variant=\"text\" lines=\"3\" width=\"100%\"></ore-skeleton>\n<!-- Avatar -->\n<ore-skeleton variant=\"circle\" size=\"md\"></ore-skeleton>\n<!-- Card image -->\n<ore-skeleton width=\"100%\" height=\"10rem\"></ore-skeleton>\n```"
|
|
6154
|
+
}
|
|
6155
|
+
]
|
|
6156
|
+
},
|
|
6157
|
+
{
|
|
6158
|
+
"kind": "variable",
|
|
6159
|
+
"name": "STATE_TAG",
|
|
6160
|
+
"type": {
|
|
6161
|
+
"text": "'ore-state'"
|
|
6162
|
+
},
|
|
6163
|
+
"default": "'ore-state'",
|
|
6164
|
+
"description": "A state container for asynchronous content: one element covers the whole\nlifecycle (idle, loading, empty, error, success) so a data view never\nhand-rolls four separate fallbacks. The default slot shows on `success`;\nevery other state has a built-in visual that a named slot can replace.\n\nEmpty and error render as full placeholders rather than bare labels: an\nillustration, a title, a description, and an action row. Both are\ncustomizable without replacing the whole placeholder: the `illustration`\nslot swaps the icon and the `actions` slot supplies recovery controls\n(retry, browse, create). `retryable` fills the action row with a built-in\nretry button when no actions are slotted."
|
|
6165
|
+
},
|
|
6166
|
+
{
|
|
6167
|
+
"kind": "class",
|
|
6168
|
+
"name": "OreStateElement",
|
|
6169
|
+
"tagName": "ore-state",
|
|
6170
|
+
"customElement": true,
|
|
6171
|
+
"description": "A state container for asynchronous content: one element covers the whole\nlifecycle (idle, loading, empty, error, success) so a data view never\nhand-rolls four separate fallbacks. The default slot shows on `success`;\nevery other state has a built-in visual that a named slot can replace.\nEmpty and error render as full placeholders rather than bare labels: an\nillustration, a title, a description, and an action row. Both are\ncustomizable without replacing the whole placeholder: the `illustration`\nslot swaps the icon and the `actions` slot supplies recovery controls\n(retry, browse, create). `retryable` fills the action row with a built-in\nretry button when no actions are slotted.",
|
|
6172
|
+
"summary": "",
|
|
6173
|
+
"attributes": [
|
|
6174
|
+
{
|
|
6175
|
+
"name": "status",
|
|
6176
|
+
"type": {
|
|
6177
|
+
"text": "'idle' | 'loading' | 'empty' | 'error' | 'success'"
|
|
6178
|
+
},
|
|
6179
|
+
"description": "current state: 'idle' | 'loading' | 'empty' | 'error' | 'success' (default: 'success')",
|
|
6180
|
+
"default": "'success'"
|
|
6181
|
+
},
|
|
6182
|
+
{
|
|
6183
|
+
"name": "retryable",
|
|
6184
|
+
"type": {
|
|
6185
|
+
"text": "boolean"
|
|
6186
|
+
},
|
|
6187
|
+
"description": "show a retry button when the error state has no slotted actions (default: false)",
|
|
6188
|
+
"default": "false"
|
|
6189
|
+
},
|
|
6190
|
+
{
|
|
6191
|
+
"name": "empty-label",
|
|
6192
|
+
"type": {
|
|
6193
|
+
"text": "string"
|
|
6194
|
+
},
|
|
6195
|
+
"description": "title for empty state (default: 'No content yet')",
|
|
6196
|
+
"default": "'No content yet'"
|
|
6197
|
+
},
|
|
6198
|
+
{
|
|
6199
|
+
"name": "empty-description",
|
|
6200
|
+
"type": {
|
|
6201
|
+
"text": "string"
|
|
6202
|
+
},
|
|
6203
|
+
"description": "optional text for empty state"
|
|
6204
|
+
},
|
|
6205
|
+
{
|
|
6206
|
+
"name": "error-label",
|
|
6207
|
+
"type": {
|
|
6208
|
+
"text": "string"
|
|
6209
|
+
},
|
|
6210
|
+
"description": "title for error state (default: 'Something went wrong')",
|
|
6211
|
+
"default": "'Something went wrong'"
|
|
6212
|
+
},
|
|
6213
|
+
{
|
|
6214
|
+
"name": "error-description",
|
|
6215
|
+
"type": {
|
|
6216
|
+
"text": "string"
|
|
6217
|
+
},
|
|
6218
|
+
"description": "optional text for error state"
|
|
6219
|
+
}
|
|
6220
|
+
],
|
|
6221
|
+
"events": [
|
|
6222
|
+
{
|
|
6223
|
+
"name": "retry",
|
|
6224
|
+
"description": "Emitted when the retry button is clicked (no detail payload)",
|
|
6225
|
+
"type": {
|
|
6226
|
+
"text": "CustomEvent"
|
|
6227
|
+
}
|
|
6228
|
+
}
|
|
6229
|
+
],
|
|
6230
|
+
"slots": [
|
|
6231
|
+
{
|
|
6232
|
+
"name": "",
|
|
6233
|
+
"description": "default content shown in 'success' state"
|
|
6234
|
+
},
|
|
6235
|
+
{
|
|
6236
|
+
"name": "loading",
|
|
6237
|
+
"description": "custom loading UI (overrides default skeletons)"
|
|
6238
|
+
},
|
|
6239
|
+
{
|
|
6240
|
+
"name": "empty",
|
|
6241
|
+
"description": "custom empty UI (overrides the built-in empty placeholder)"
|
|
6106
6242
|
},
|
|
6107
6243
|
{
|
|
6108
|
-
"name": "
|
|
6109
|
-
"description": "
|
|
6244
|
+
"name": "error",
|
|
6245
|
+
"description": "custom error UI (overrides the built-in error placeholder)"
|
|
6110
6246
|
},
|
|
6111
6247
|
{
|
|
6112
|
-
"name": "
|
|
6113
|
-
"description": "
|
|
6248
|
+
"name": "illustration",
|
|
6249
|
+
"description": "artwork for the built-in empty/error placeholder (replaces its default icon)"
|
|
6114
6250
|
},
|
|
6115
6251
|
{
|
|
6116
|
-
"name": "
|
|
6117
|
-
"description": "
|
|
6252
|
+
"name": "actions",
|
|
6253
|
+
"description": "recovery controls for the built-in empty/error placeholder (rendered below its text)"
|
|
6254
|
+
}
|
|
6255
|
+
],
|
|
6256
|
+
"cssProperties": [
|
|
6257
|
+
{
|
|
6258
|
+
"name": "--state-color",
|
|
6259
|
+
"description": "Text/icon color used by default state content"
|
|
6118
6260
|
},
|
|
6119
6261
|
{
|
|
6120
|
-
"name": "--
|
|
6121
|
-
"description": "
|
|
6262
|
+
"name": "--state-gap",
|
|
6263
|
+
"description": "Vertical spacing between icon, title, description, and actions"
|
|
6122
6264
|
},
|
|
6123
6265
|
{
|
|
6124
|
-
"name": "--
|
|
6125
|
-
"description": "
|
|
6266
|
+
"name": "--state-icon-size",
|
|
6267
|
+
"description": "Icon size for built-in loading/empty/error visuals"
|
|
6126
6268
|
}
|
|
6127
6269
|
],
|
|
6128
6270
|
"demos": [
|
|
6129
6271
|
{
|
|
6130
6272
|
"url": "",
|
|
6131
|
-
"description": "```html\n<!--
|
|
6273
|
+
"description": "```html\n<!-- Success state: default slot is shown -->\n<ore-state status=\"success\">\n <ul><li>Item one</li><li>Item two</li></ul>\n</ore-state>\n<!-- Loading state: shows skeleton placeholders -->\n<ore-state status=\"loading\"></ore-state>\n<!-- Empty state with a recovery action -->\n<ore-state status=\"empty\" empty-label=\"No results\" empty-description=\"Try adjusting your filters.\">\n <ore-button slot=\"actions\" variant=\"secondary\">Clear filters</ore-button>\n</ore-state>\n<!-- Error state with the built-in retry button -->\n<ore-state status=\"error\" retryable error-label=\"Failed to load\" error-description=\"Check your connection.\"></ore-state>\n```"
|
|
6132
6274
|
}
|
|
6133
6275
|
]
|
|
6134
6276
|
},
|
|
@@ -6477,6 +6619,13 @@
|
|
|
6477
6619
|
"text": "boolean"
|
|
6478
6620
|
},
|
|
6479
6621
|
"description": "Full height button (100% of container)"
|
|
6622
|
+
},
|
|
6623
|
+
{
|
|
6624
|
+
"name": "value",
|
|
6625
|
+
"type": {
|
|
6626
|
+
"text": "string"
|
|
6627
|
+
},
|
|
6628
|
+
"description": "Button value; inside a segmented `ore-button-group` it identifies this button as one selectable option"
|
|
6480
6629
|
}
|
|
6481
6630
|
],
|
|
6482
6631
|
"events": [
|
|
@@ -6561,6 +6710,18 @@
|
|
|
6561
6710
|
"name": "--button-frost-active-border-color",
|
|
6562
6711
|
"description": "Border color when pressed (frost variant)"
|
|
6563
6712
|
},
|
|
6713
|
+
{
|
|
6714
|
+
"name": "--button-selected-bg",
|
|
6715
|
+
"description": "Background of a selected segment in a segmented `ore-button-group` (defaults to the color family's base)"
|
|
6716
|
+
},
|
|
6717
|
+
{
|
|
6718
|
+
"name": "--button-selected-color",
|
|
6719
|
+
"description": "Text color of a selected segment in a segmented `ore-button-group` (defaults to the color family's contrast)"
|
|
6720
|
+
},
|
|
6721
|
+
{
|
|
6722
|
+
"name": "--button-selected-border-color",
|
|
6723
|
+
"description": "Border color of a selected segment in a segmented `ore-button-group` (defaults to the color family's base)"
|
|
6724
|
+
},
|
|
6564
6725
|
{
|
|
6565
6726
|
"name": "--button-shadow",
|
|
6566
6727
|
"description": "Resting shadow for an elevated button (default: the color family's halo)"
|
|
@@ -6587,16 +6748,130 @@
|
|
|
6587
6748
|
"type": {
|
|
6588
6749
|
"text": "'ore-button-group'"
|
|
6589
6750
|
},
|
|
6590
|
-
"default": "'ore-button-group'"
|
|
6751
|
+
"default": "'ore-button-group'",
|
|
6752
|
+
"description": "A container for grouping related buttons.\nChild `ore-button` components automatically inherit the group's color, size, and variant.\n\nWith a `value`, the group becomes a segmented control (the web equivalent of\nApple's HIG Segmented Control): child buttons carry `value`, the group owns the\nsingle selection, and the container takes `role=\"radiogroup\"` while each valued\nbutton becomes a `radio` (`aria-checked` plus a roving tabindex, both bound by\n`ore-button` itself from the group's context). Arrow keys move and select (HIG:\na segmented control always has a selection, so arrowing commits it), Home/End\njump to the ends, and `change` reports the new value. A button without `value`\nstays a plain action inside the group and is skipped by the selection. Without\n`value` the group remains a plain container: no roles, no selection."
|
|
6591
6753
|
},
|
|
6592
6754
|
{
|
|
6593
6755
|
"kind": "class",
|
|
6594
6756
|
"name": "OreButtonGroupElement",
|
|
6595
6757
|
"tagName": "ore-button-group",
|
|
6596
6758
|
"customElement": true,
|
|
6597
|
-
"description": "",
|
|
6759
|
+
"description": "A container for grouping related buttons.\nChild `ore-button` components automatically inherit the group's color, size, and variant.\nWith a `value`, the group becomes a segmented control (the web equivalent of\nApple's HIG Segmented Control): child buttons carry `value`, the group owns the\nsingle selection, and the container takes `role=\"radiogroup\"` while each valued\nbutton becomes a `radio` (`aria-checked` plus a roving tabindex, both bound by\n`ore-button` itself from the group's context). Arrow keys move and select (HIG:\na segmented control always has a selection, so arrowing commits it), Home/End\njump to the ends, and `change` reports the new value. A button without `value`\nstays a plain action inside the group and is skipped by the selection. Without\n`value` the group remains a plain container: no roles, no selection.",
|
|
6598
6760
|
"summary": "",
|
|
6599
|
-
"
|
|
6761
|
+
"attributes": [
|
|
6762
|
+
{
|
|
6763
|
+
"name": "attached",
|
|
6764
|
+
"type": {
|
|
6765
|
+
"text": "boolean"
|
|
6766
|
+
},
|
|
6767
|
+
"description": "Join buttons together into a unit"
|
|
6768
|
+
},
|
|
6769
|
+
{
|
|
6770
|
+
"name": "color",
|
|
6771
|
+
"type": {
|
|
6772
|
+
"text": "'primary' | 'secondary' | 'info' | 'success' | 'warning' | 'error'"
|
|
6773
|
+
},
|
|
6774
|
+
"description": "Shared color tint: 'primary' | 'secondary' | 'info' | 'success' | 'warning' | 'error'"
|
|
6775
|
+
},
|
|
6776
|
+
{
|
|
6777
|
+
"name": "fullwidth",
|
|
6778
|
+
"type": {
|
|
6779
|
+
"text": "boolean"
|
|
6780
|
+
},
|
|
6781
|
+
"description": "Group spans full width"
|
|
6782
|
+
},
|
|
6783
|
+
{
|
|
6784
|
+
"name": "label",
|
|
6785
|
+
"type": {
|
|
6786
|
+
"text": "string"
|
|
6787
|
+
},
|
|
6788
|
+
"description": "Accessible label"
|
|
6789
|
+
},
|
|
6790
|
+
{
|
|
6791
|
+
"name": "orientation",
|
|
6792
|
+
"type": {
|
|
6793
|
+
"text": "'horizontal' | 'vertical'"
|
|
6794
|
+
},
|
|
6795
|
+
"description": "'horizontal' | 'vertical'"
|
|
6796
|
+
},
|
|
6797
|
+
{
|
|
6798
|
+
"name": "rounded",
|
|
6799
|
+
"type": {
|
|
6800
|
+
"text": "'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | 'full'"
|
|
6801
|
+
},
|
|
6802
|
+
"description": "Corner radius: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | 'full' (bare attribute defaults to 'full')"
|
|
6803
|
+
},
|
|
6804
|
+
{
|
|
6805
|
+
"name": "size",
|
|
6806
|
+
"type": {
|
|
6807
|
+
"text": "'sm' | 'md' | 'lg'"
|
|
6808
|
+
},
|
|
6809
|
+
"description": "Shared size: 'sm' | 'md' | 'lg'"
|
|
6810
|
+
},
|
|
6811
|
+
{
|
|
6812
|
+
"name": "value",
|
|
6813
|
+
"type": {
|
|
6814
|
+
"text": "string"
|
|
6815
|
+
},
|
|
6816
|
+
"description": "Value of the currently selected button (enables segmented selection)"
|
|
6817
|
+
},
|
|
6818
|
+
{
|
|
6819
|
+
"name": "variant",
|
|
6820
|
+
"type": {
|
|
6821
|
+
"text": "'solid' | 'flat' | 'bordered' | 'outline' | 'ghost' | 'frost'"
|
|
6822
|
+
},
|
|
6823
|
+
"description": "Shared visual variant: 'solid' | 'flat' | 'bordered' | 'outline' | 'ghost' | 'frost'"
|
|
6824
|
+
}
|
|
6825
|
+
],
|
|
6826
|
+
"events": [
|
|
6827
|
+
{
|
|
6828
|
+
"name": "change",
|
|
6829
|
+
"description": "Emitted when the selected button changes. detail: { values: string[], labels: string[], originalEvent?: Event }",
|
|
6830
|
+
"type": {
|
|
6831
|
+
"text": "CustomEvent"
|
|
6832
|
+
}
|
|
6833
|
+
}
|
|
6834
|
+
],
|
|
6835
|
+
"slots": [
|
|
6836
|
+
{
|
|
6837
|
+
"name": "",
|
|
6838
|
+
"description": "Place ore-button elements here"
|
|
6839
|
+
}
|
|
6840
|
+
],
|
|
6841
|
+
"cssParts": [
|
|
6842
|
+
{
|
|
6843
|
+
"name": "group",
|
|
6844
|
+
"description": "Group container."
|
|
6845
|
+
}
|
|
6846
|
+
],
|
|
6847
|
+
"cssProperties": [
|
|
6848
|
+
{
|
|
6849
|
+
"name": "--group-gap",
|
|
6850
|
+
"description": "Gap between buttons (non-attached mode)"
|
|
6851
|
+
},
|
|
6852
|
+
{
|
|
6853
|
+
"name": "--group-radius",
|
|
6854
|
+
"description": "Border radius of the group container, defaults to the `rounded` attribute's token"
|
|
6855
|
+
},
|
|
6856
|
+
{
|
|
6857
|
+
"name": "--button-radius",
|
|
6858
|
+
"description": "Passed through to child buttons to control corner radius"
|
|
6859
|
+
},
|
|
6860
|
+
{
|
|
6861
|
+
"name": "--button-border-start",
|
|
6862
|
+
"description": "Passed through to suppress start borders in attached mode"
|
|
6863
|
+
},
|
|
6864
|
+
{
|
|
6865
|
+
"name": "--button-border-top",
|
|
6866
|
+
"description": "Passed through to suppress top borders in vertical attached mode"
|
|
6867
|
+
}
|
|
6868
|
+
],
|
|
6869
|
+
"demos": [
|
|
6870
|
+
{
|
|
6871
|
+
"url": "",
|
|
6872
|
+
"description": "```html\n<ore-button-group attached rounded=\"full\">\n <ore-button variant=\"solid\" color=\"primary\">Save</ore-button>\n <ore-button variant=\"solid\" color=\"primary\">Save & Continue</ore-button>\n</ore-button-group>\n<ore-button-group attached value=\"list\" label=\"View mode\" color=\"primary\">\n <ore-button value=\"list\">List</ore-button>\n <ore-button value=\"grid\">Grid</ore-button>\n</ore-button-group>\n<ore-button-group orientation=\"vertical\" size=\"sm\">\n <ore-button>Top</ore-button>\n <ore-button>Middle</ore-button>\n <ore-button>Bottom</ore-button>\n</ore-button-group>\n```"
|
|
6873
|
+
}
|
|
6874
|
+
]
|
|
6600
6875
|
},
|
|
6601
6876
|
{
|
|
6602
6877
|
"kind": "variable",
|
|
@@ -7066,6 +7341,121 @@
|
|
|
7066
7341
|
}
|
|
7067
7342
|
]
|
|
7068
7343
|
},
|
|
7344
|
+
{
|
|
7345
|
+
"kind": "variable",
|
|
7346
|
+
"name": "COLOR_PICKER_TAG",
|
|
7347
|
+
"type": {
|
|
7348
|
+
"text": "'ore-color-picker'"
|
|
7349
|
+
},
|
|
7350
|
+
"default": "'ore-color-picker'",
|
|
7351
|
+
"description": "A palette of color swatches that allows users to pick a single color, like a\nproduct paint configurator. Renders as a radiogroup: arrow keys move through\nthe swatches, and selection is form-associated."
|
|
7352
|
+
},
|
|
7353
|
+
{
|
|
7354
|
+
"kind": "class",
|
|
7355
|
+
"name": "OreColorPickerElement",
|
|
7356
|
+
"tagName": "ore-color-picker",
|
|
7357
|
+
"customElement": true,
|
|
7358
|
+
"description": "A palette of color swatches that allows users to pick a single color, like a\nproduct paint configurator. Renders as a radiogroup: arrow keys move through\nthe swatches, and selection is form-associated.",
|
|
7359
|
+
"summary": "",
|
|
7360
|
+
"attributes": [
|
|
7361
|
+
{
|
|
7362
|
+
"name": "value",
|
|
7363
|
+
"type": {
|
|
7364
|
+
"text": "string"
|
|
7365
|
+
},
|
|
7366
|
+
"description": "Value of the selected option"
|
|
7367
|
+
},
|
|
7368
|
+
{
|
|
7369
|
+
"name": "label",
|
|
7370
|
+
"type": {
|
|
7371
|
+
"text": "string"
|
|
7372
|
+
},
|
|
7373
|
+
"description": "Group label (also the accessible name)"
|
|
7374
|
+
},
|
|
7375
|
+
{
|
|
7376
|
+
"name": "name",
|
|
7377
|
+
"type": {
|
|
7378
|
+
"text": "string"
|
|
7379
|
+
},
|
|
7380
|
+
"description": "Form field name"
|
|
7381
|
+
},
|
|
7382
|
+
{
|
|
7383
|
+
"name": "disabled",
|
|
7384
|
+
"type": {
|
|
7385
|
+
"text": "boolean"
|
|
7386
|
+
},
|
|
7387
|
+
"description": "Disabled state"
|
|
7388
|
+
},
|
|
7389
|
+
{
|
|
7390
|
+
"name": "size",
|
|
7391
|
+
"type": {
|
|
7392
|
+
"text": "'sm' | 'md' | 'lg'"
|
|
7393
|
+
},
|
|
7394
|
+
"description": "'sm' | 'md' | 'lg'"
|
|
7395
|
+
},
|
|
7396
|
+
{
|
|
7397
|
+
"name": "helper",
|
|
7398
|
+
"type": {
|
|
7399
|
+
"text": "string"
|
|
7400
|
+
},
|
|
7401
|
+
"description": "Helper text below the swatches"
|
|
7402
|
+
},
|
|
7403
|
+
{
|
|
7404
|
+
"name": "error",
|
|
7405
|
+
"type": {
|
|
7406
|
+
"text": "string"
|
|
7407
|
+
},
|
|
7408
|
+
"description": "Error message below the swatches"
|
|
7409
|
+
}
|
|
7410
|
+
],
|
|
7411
|
+
"events": [
|
|
7412
|
+
{
|
|
7413
|
+
"name": "change",
|
|
7414
|
+
"description": "Emitted when a color is selected. detail: { values: string[], labels: string[], originalEvent?: Event }",
|
|
7415
|
+
"type": {
|
|
7416
|
+
"text": "CustomEvent"
|
|
7417
|
+
}
|
|
7418
|
+
}
|
|
7419
|
+
],
|
|
7420
|
+
"cssParts": [
|
|
7421
|
+
{
|
|
7422
|
+
"name": "swatches",
|
|
7423
|
+
"description": "Swatch container."
|
|
7424
|
+
},
|
|
7425
|
+
{
|
|
7426
|
+
"name": "swatch",
|
|
7427
|
+
"description": "Swatch button element."
|
|
7428
|
+
},
|
|
7429
|
+
{
|
|
7430
|
+
"name": "legend",
|
|
7431
|
+
"description": "Group label."
|
|
7432
|
+
},
|
|
7433
|
+
{
|
|
7434
|
+
"name": "helper-text",
|
|
7435
|
+
"description": "The helper/error text element."
|
|
7436
|
+
}
|
|
7437
|
+
],
|
|
7438
|
+
"cssProperties": [
|
|
7439
|
+
{
|
|
7440
|
+
"name": "--color-picker-swatch-size",
|
|
7441
|
+
"description": "Swatch diameter (defaults to the size preset)"
|
|
7442
|
+
},
|
|
7443
|
+
{
|
|
7444
|
+
"name": "--color-picker-swatch-radius",
|
|
7445
|
+
"description": "Swatch corner radius (defaults to a circle)"
|
|
7446
|
+
},
|
|
7447
|
+
{
|
|
7448
|
+
"name": "--color-picker-gap",
|
|
7449
|
+
"description": "Gap between swatches"
|
|
7450
|
+
}
|
|
7451
|
+
],
|
|
7452
|
+
"demos": [
|
|
7453
|
+
{
|
|
7454
|
+
"url": "",
|
|
7455
|
+
"description": "```html\n<ore-color-picker\n label=\"Paint\"\n value=\"midnight\"\n options='[{ \"value\": \"midnight\", \"color\": \"#19202b\", \"label\": \"Midnight Black\" }, { \"value\": \"pearl\", \"color\": \"#f2efe9\", \"label\": \"Pearl White\" }]'>\n</ore-color-picker>\n```"
|
|
7456
|
+
}
|
|
7457
|
+
]
|
|
7458
|
+
},
|
|
7069
7459
|
{
|
|
7070
7460
|
"kind": "function",
|
|
7071
7461
|
"name": "parseSlottedOptions",
|
|
@@ -8424,6 +8814,14 @@
|
|
|
8424
8814
|
"name": "spinner",
|
|
8425
8815
|
"description": "The inline loading spinner shown inside the field while `loading`"
|
|
8426
8816
|
},
|
|
8817
|
+
{
|
|
8818
|
+
"name": "pwd-toggle",
|
|
8819
|
+
"description": "The password visibility toggle, shown only when `type=\"password\"`; it reveals the value as text while pressed (`aria-pressed`) and returns focus to the field"
|
|
8820
|
+
},
|
|
8821
|
+
{
|
|
8822
|
+
"name": "clear",
|
|
8823
|
+
"description": "The clear button, shown when `clearable` and the field has a value"
|
|
8824
|
+
},
|
|
8427
8825
|
{
|
|
8428
8826
|
"name": "helper",
|
|
8429
8827
|
"description": "The helper text element"
|
|
@@ -12389,9 +12787,9 @@
|
|
|
12389
12787
|
{
|
|
12390
12788
|
"name": "backdrop",
|
|
12391
12789
|
"type": {
|
|
12392
|
-
"text": "'blur' | 'transparent'"
|
|
12790
|
+
"text": "'opaque' | 'blur' | 'transparent'"
|
|
12393
12791
|
},
|
|
12394
|
-
"description": "Backdrop style:
|
|
12792
|
+
"description": "Backdrop style: none (default, click-to-close only) | 'opaque' | 'blur' | 'transparent'"
|
|
12395
12793
|
},
|
|
12396
12794
|
{
|
|
12397
12795
|
"name": "close-on-select",
|
|
@@ -12449,7 +12847,7 @@
|
|
|
12449
12847
|
"cssParts": [
|
|
12450
12848
|
{
|
|
12451
12849
|
"name": "drawer-backdrop",
|
|
12452
|
-
"description": "Backdrop
|
|
12850
|
+
"description": "Backdrop behind the open drawer (click closes it; dimming is opt-in via `backdrop`)."
|
|
12453
12851
|
},
|
|
12454
12852
|
{
|
|
12455
12853
|
"name": "drawer-close-btn",
|
|
@@ -12535,7 +12933,7 @@
|
|
|
12535
12933
|
},
|
|
12536
12934
|
{
|
|
12537
12935
|
"name": "--sidebar-drawer-backdrop-bg",
|
|
12538
|
-
"description": "Backdrop color behind the open drawer (default: var(--overlay-veil))"
|
|
12936
|
+
"description": "Backdrop color behind the open drawer (default: transparent; the dimming modes use var(--overlay-veil))"
|
|
12539
12937
|
},
|
|
12540
12938
|
{
|
|
12541
12939
|
"name": "--sidebar-drawer-shadow",
|
|
@@ -14516,6 +14914,13 @@
|
|
|
14516
14914
|
},
|
|
14517
14915
|
"description": "'sm' | 'lg' | 'full'"
|
|
14518
14916
|
},
|
|
14917
|
+
{
|
|
14918
|
+
"name": "detents",
|
|
14919
|
+
"type": {
|
|
14920
|
+
"text": "string"
|
|
14921
|
+
},
|
|
14922
|
+
"description": "Comma-separated drag snap points as fractions of panel size ('0.5,0.75'); bottom/top placement only"
|
|
14923
|
+
},
|
|
14519
14924
|
{
|
|
14520
14925
|
"name": "title",
|
|
14521
14926
|
"type": {
|
|
@@ -14655,6 +15060,14 @@
|
|
|
14655
15060
|
},
|
|
14656
15061
|
"default": "['grid', 'list']"
|
|
14657
15062
|
},
|
|
15063
|
+
{
|
|
15064
|
+
"kind": "variable",
|
|
15065
|
+
"name": "MENU_TRIGGERS",
|
|
15066
|
+
"type": {
|
|
15067
|
+
"text": "['click', 'contextmenu']"
|
|
15068
|
+
},
|
|
15069
|
+
"default": "['click', 'contextmenu']"
|
|
15070
|
+
},
|
|
14658
15071
|
{
|
|
14659
15072
|
"kind": "variable",
|
|
14660
15073
|
"name": "MENU_CTX",
|
|
@@ -14749,6 +15162,13 @@
|
|
|
14749
15162
|
"text": "'sm' | 'md' | 'lg'"
|
|
14750
15163
|
},
|
|
14751
15164
|
"description": "Size: 'sm' | 'md' | 'lg'"
|
|
15165
|
+
},
|
|
15166
|
+
{
|
|
15167
|
+
"name": "trigger",
|
|
15168
|
+
"type": {
|
|
15169
|
+
"text": "string"
|
|
15170
|
+
},
|
|
15171
|
+
"description": "How the menu opens: 'click' (default) | 'contextmenu' (right-click or long-press opens at the pointer; left-click does nothing)"
|
|
14752
15172
|
}
|
|
14753
15173
|
],
|
|
14754
15174
|
"events": [
|
|
@@ -14825,6 +15245,14 @@
|
|
|
14825
15245
|
{
|
|
14826
15246
|
"url": "",
|
|
14827
15247
|
"description": "```html\n<ore-menu>\n <button slot=\"trigger\">Actions</button>\n <ore-menu-item value=\"edit\">Edit</ore-menu-item>\n <ore-menu-item value=\"delete\">Delete</ore-menu-item>\n</ore-menu>\n```"
|
|
15248
|
+
},
|
|
15249
|
+
{
|
|
15250
|
+
"url": "",
|
|
15251
|
+
"description": "```html\n<ore-menu trigger=\"contextmenu\">\n <p slot=\"trigger\">Right-click this text</p>\n <ore-menu-item value=\"copy\">Copy</ore-menu-item>\n <ore-menu-item value=\"paste\">Paste</ore-menu-item>\n</ore-menu>\n```"
|
|
15252
|
+
},
|
|
15253
|
+
{
|
|
15254
|
+
"url": "",
|
|
15255
|
+
"description": "```html\n<!-- Nested submenu: items slotted into `submenu` fly out on hover, ArrowRight, or Enter -->\n<ore-menu>\n <button slot=\"trigger\">File</button>\n <ore-menu-item value=\"new\">New</ore-menu-item>\n <ore-menu-item>\n Open recent\n <ore-menu-item slot=\"submenu\" value=\"recent-1\">report.pdf</ore-menu-item>\n <ore-menu-item slot=\"submenu\" value=\"recent-2\">notes.md</ore-menu-item>\n </ore-menu-item>\n</ore-menu>\n```"
|
|
14828
15256
|
}
|
|
14829
15257
|
]
|
|
14830
15258
|
},
|
|
@@ -14835,14 +15263,14 @@
|
|
|
14835
15263
|
"text": "'ore-menu-item'"
|
|
14836
15264
|
},
|
|
14837
15265
|
"default": "'ore-menu-item'",
|
|
14838
|
-
"description": "A selectable action item used inside `<ore-menu
|
|
15266
|
+
"description": "A selectable action item used inside `<ore-menu>`.\n\nContent slotted into `submenu` turns the item into a submenu trigger: it grows a trailing\nchevron, reports `aria-haspopup=\"menu\"` / `aria-expanded`, and flies out a nested menu panel on\nhover, ArrowRight, Enter, Space, or a click. A trigger is never selectable — it emits no `select`\nand carries no value — and its children stay out of the parent menu's arrow navigation, so the\nparent's rows always match what the pointer sees. Escape and ArrowLeft close the flyout and hand\nfocus back to the trigger; selecting a child closes the whole chain. Submenus nest to any depth."
|
|
14839
15267
|
},
|
|
14840
15268
|
{
|
|
14841
15269
|
"kind": "class",
|
|
14842
15270
|
"name": "OreMenuItemElement",
|
|
14843
15271
|
"tagName": "ore-menu-item",
|
|
14844
15272
|
"customElement": true,
|
|
14845
|
-
"description": "A selectable action item used inside `<ore-menu
|
|
15273
|
+
"description": "A selectable action item used inside `<ore-menu>`.\nContent slotted into `submenu` turns the item into a submenu trigger: it grows a trailing\nchevron, reports `aria-haspopup=\"menu\"` / `aria-expanded`, and flies out a nested menu panel on\nhover, ArrowRight, Enter, Space, or a click. A trigger is never selectable — it emits no `select`\nand carries no value — and its children stay out of the parent menu's arrow navigation, so the\nparent's rows always match what the pointer sees. Escape and ArrowLeft close the flyout and hand\nfocus back to the trigger; selecting a child closes the whole chain. Submenus nest to any depth.",
|
|
14846
15274
|
"summary": "",
|
|
14847
15275
|
"attributes": [
|
|
14848
15276
|
{
|
|
@@ -14882,6 +15310,10 @@
|
|
|
14882
15310
|
{
|
|
14883
15311
|
"name": "icon",
|
|
14884
15312
|
"description": "Optional leading icon content"
|
|
15313
|
+
},
|
|
15314
|
+
{
|
|
15315
|
+
"name": "submenu",
|
|
15316
|
+
"description": "Nested menu items that turn this item into a submenu trigger"
|
|
14885
15317
|
}
|
|
14886
15318
|
],
|
|
14887
15319
|
"cssParts": [
|
|
@@ -14896,6 +15328,10 @@
|
|
|
14896
15328
|
{
|
|
14897
15329
|
"name": "icon-slot",
|
|
14898
15330
|
"description": "Leading icon slot container."
|
|
15331
|
+
},
|
|
15332
|
+
{
|
|
15333
|
+
"name": "submenu",
|
|
15334
|
+
"description": "Floating submenu panel (present only meaningful when the `submenu` slot is filled)."
|
|
14899
15335
|
}
|
|
14900
15336
|
],
|
|
14901
15337
|
"cssProperties": [
|
|
@@ -14928,6 +15364,10 @@
|
|
|
14928
15364
|
{
|
|
14929
15365
|
"url": "",
|
|
14930
15366
|
"description": "```html\n<ore-menu-item value=\"edit\">Edit</ore-menu-item>\n<ore-menu-item value=\"delete\" disabled>Delete</ore-menu-item>\n<ore-menu-item type=\"checkbox\" value=\"wrap\" checked>Word wrap</ore-menu-item>\n<ore-menu-item type=\"radio\" value=\"left\">Align left</ore-menu-item>\n```"
|
|
15367
|
+
},
|
|
15368
|
+
{
|
|
15369
|
+
"url": "",
|
|
15370
|
+
"description": "```html\n<!-- Submenu trigger: the label is the row, `submenu` holds the flyout's items -->\n<ore-menu-item>\n Share\n <ore-menu-item slot=\"submenu\" value=\"mail\">Email</ore-menu-item>\n <ore-menu-item slot=\"submenu\" value=\"link\">Copy link</ore-menu-item>\n</ore-menu-item>\n```"
|
|
14931
15371
|
}
|
|
14932
15372
|
]
|
|
14933
15373
|
},
|