@almadar/patterns 2.23.1 → 2.25.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/component-mapping.json +56 -1
- package/dist/event-contracts.json +1 -1
- package/dist/index.d.ts +7136 -5981
- package/dist/index.js +1112 -197
- package/dist/index.js.map +1 -1
- package/dist/patterns-registry.json +861 -1
- package/dist/registry.json +861 -1
- package/package.json +10 -8
package/dist/registry.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "1.0.0",
|
|
3
|
-
"exportedAt": "2026-05-
|
|
3
|
+
"exportedAt": "2026-05-10T00:51:00.079Z",
|
|
4
4
|
"patterns": {
|
|
5
5
|
"entity-table": {
|
|
6
6
|
"type": "entity-table",
|
|
@@ -15278,6 +15278,12 @@
|
|
|
15278
15278
|
],
|
|
15279
15279
|
"description": "Array of markers to display"
|
|
15280
15280
|
},
|
|
15281
|
+
"routes": {
|
|
15282
|
+
"types": [
|
|
15283
|
+
"array"
|
|
15284
|
+
],
|
|
15285
|
+
"description": "Routes (polylines with optional popups) drawn over the tile layer"
|
|
15286
|
+
},
|
|
15281
15287
|
"centerLat": {
|
|
15282
15288
|
"types": [
|
|
15283
15289
|
"number"
|
|
@@ -25809,6 +25815,860 @@
|
|
|
25809
25815
|
}
|
|
25810
25816
|
}
|
|
25811
25817
|
},
|
|
25818
|
+
"filter-pill": {
|
|
25819
|
+
"type": "filter-pill",
|
|
25820
|
+
"category": "filter",
|
|
25821
|
+
"description": "FilterPill component",
|
|
25822
|
+
"suggestedFor": [
|
|
25823
|
+
"filter",
|
|
25824
|
+
"pill",
|
|
25825
|
+
"filter pill"
|
|
25826
|
+
],
|
|
25827
|
+
"typicalSize": "small",
|
|
25828
|
+
"propsSchema": {
|
|
25829
|
+
"variant": {
|
|
25830
|
+
"types": [
|
|
25831
|
+
"string"
|
|
25832
|
+
],
|
|
25833
|
+
"description": "variant prop",
|
|
25834
|
+
"enumValues": [
|
|
25835
|
+
"default",
|
|
25836
|
+
"primary",
|
|
25837
|
+
"secondary",
|
|
25838
|
+
"success",
|
|
25839
|
+
"warning",
|
|
25840
|
+
"danger",
|
|
25841
|
+
"info",
|
|
25842
|
+
"neutral"
|
|
25843
|
+
]
|
|
25844
|
+
},
|
|
25845
|
+
"size": {
|
|
25846
|
+
"types": [
|
|
25847
|
+
"string"
|
|
25848
|
+
],
|
|
25849
|
+
"description": "size prop",
|
|
25850
|
+
"enumValues": [
|
|
25851
|
+
"sm",
|
|
25852
|
+
"md",
|
|
25853
|
+
"lg"
|
|
25854
|
+
]
|
|
25855
|
+
},
|
|
25856
|
+
"label": {
|
|
25857
|
+
"types": [
|
|
25858
|
+
"string",
|
|
25859
|
+
"number"
|
|
25860
|
+
],
|
|
25861
|
+
"description": "Pill label text (alternative to children for schema-driven rendering)."
|
|
25862
|
+
},
|
|
25863
|
+
"icon": {
|
|
25864
|
+
"types": [
|
|
25865
|
+
"node"
|
|
25866
|
+
],
|
|
25867
|
+
"description": "Optional icon name (Lucide icon string) or React node"
|
|
25868
|
+
},
|
|
25869
|
+
"onRemove": {
|
|
25870
|
+
"types": [
|
|
25871
|
+
"function"
|
|
25872
|
+
],
|
|
25873
|
+
"description": "Called when the user clicks the remove (×) button",
|
|
25874
|
+
"kind": "callback",
|
|
25875
|
+
"callbackArgs": []
|
|
25876
|
+
},
|
|
25877
|
+
"removable": {
|
|
25878
|
+
"types": [
|
|
25879
|
+
"boolean"
|
|
25880
|
+
],
|
|
25881
|
+
"description": "Disable the remove button (renders without × control)"
|
|
25882
|
+
},
|
|
25883
|
+
"onClick": {
|
|
25884
|
+
"types": [
|
|
25885
|
+
"function"
|
|
25886
|
+
],
|
|
25887
|
+
"description": "Click handler for the body of the pill (filter toggle)",
|
|
25888
|
+
"kind": "callback",
|
|
25889
|
+
"callbackArgs": []
|
|
25890
|
+
}
|
|
25891
|
+
}
|
|
25892
|
+
},
|
|
25893
|
+
"likert-scale": {
|
|
25894
|
+
"type": "likert-scale",
|
|
25895
|
+
"category": "component",
|
|
25896
|
+
"description": "LikertScale component",
|
|
25897
|
+
"suggestedFor": [
|
|
25898
|
+
"likert",
|
|
25899
|
+
"scale",
|
|
25900
|
+
"likert scale"
|
|
25901
|
+
],
|
|
25902
|
+
"typicalSize": "medium",
|
|
25903
|
+
"propsSchema": {
|
|
25904
|
+
"question": {
|
|
25905
|
+
"types": [
|
|
25906
|
+
"string"
|
|
25907
|
+
],
|
|
25908
|
+
"description": "Optional row prompt above the scale"
|
|
25909
|
+
},
|
|
25910
|
+
"options": {
|
|
25911
|
+
"types": [
|
|
25912
|
+
"array"
|
|
25913
|
+
],
|
|
25914
|
+
"description": "Scale points (defaults to a 5-point agree/disagree set)"
|
|
25915
|
+
},
|
|
25916
|
+
"value": {
|
|
25917
|
+
"types": [
|
|
25918
|
+
"number",
|
|
25919
|
+
"string"
|
|
25920
|
+
],
|
|
25921
|
+
"description": "Selected value (controlled)"
|
|
25922
|
+
},
|
|
25923
|
+
"onChange": {
|
|
25924
|
+
"types": [
|
|
25925
|
+
"function"
|
|
25926
|
+
],
|
|
25927
|
+
"description": "Change callback",
|
|
25928
|
+
"kind": "callback",
|
|
25929
|
+
"callbackArgs": [
|
|
25930
|
+
{
|
|
25931
|
+
"name": "value",
|
|
25932
|
+
"type": "number"
|
|
25933
|
+
}
|
|
25934
|
+
]
|
|
25935
|
+
},
|
|
25936
|
+
"disabled": {
|
|
25937
|
+
"types": [
|
|
25938
|
+
"boolean"
|
|
25939
|
+
],
|
|
25940
|
+
"description": "Disabled state"
|
|
25941
|
+
},
|
|
25942
|
+
"size": {
|
|
25943
|
+
"types": [
|
|
25944
|
+
"string"
|
|
25945
|
+
],
|
|
25946
|
+
"description": "Size variant",
|
|
25947
|
+
"enumValues": [
|
|
25948
|
+
"sm",
|
|
25949
|
+
"md",
|
|
25950
|
+
"lg"
|
|
25951
|
+
]
|
|
25952
|
+
},
|
|
25953
|
+
"variant": {
|
|
25954
|
+
"types": [
|
|
25955
|
+
"string"
|
|
25956
|
+
],
|
|
25957
|
+
"description": "Visual variant: classic radios or pill segmented buttons",
|
|
25958
|
+
"enumValues": [
|
|
25959
|
+
"radios",
|
|
25960
|
+
"buttons"
|
|
25961
|
+
]
|
|
25962
|
+
},
|
|
25963
|
+
"className": {
|
|
25964
|
+
"types": [
|
|
25965
|
+
"string"
|
|
25966
|
+
],
|
|
25967
|
+
"description": "Additional CSS classes"
|
|
25968
|
+
}
|
|
25969
|
+
}
|
|
25970
|
+
},
|
|
25971
|
+
"matrix-question": {
|
|
25972
|
+
"type": "matrix-question",
|
|
25973
|
+
"category": "component",
|
|
25974
|
+
"description": "MatrixQuestion component",
|
|
25975
|
+
"suggestedFor": [
|
|
25976
|
+
"matrix",
|
|
25977
|
+
"question",
|
|
25978
|
+
"matrix question"
|
|
25979
|
+
],
|
|
25980
|
+
"typicalSize": "medium",
|
|
25981
|
+
"propsSchema": {
|
|
25982
|
+
"title": {
|
|
25983
|
+
"types": [
|
|
25984
|
+
"string"
|
|
25985
|
+
],
|
|
25986
|
+
"description": "Optional title rendered above the matrix"
|
|
25987
|
+
},
|
|
25988
|
+
"rows": {
|
|
25989
|
+
"types": [
|
|
25990
|
+
"array"
|
|
25991
|
+
],
|
|
25992
|
+
"description": "Question rows",
|
|
25993
|
+
"required": true
|
|
25994
|
+
},
|
|
25995
|
+
"columns": {
|
|
25996
|
+
"types": [
|
|
25997
|
+
"array"
|
|
25998
|
+
],
|
|
25999
|
+
"description": "Column definitions; defaults to 5-point Likert"
|
|
26000
|
+
},
|
|
26001
|
+
"values": {
|
|
26002
|
+
"types": [
|
|
26003
|
+
"object"
|
|
26004
|
+
],
|
|
26005
|
+
"description": "Selected value per row, keyed by rowId"
|
|
26006
|
+
},
|
|
26007
|
+
"onChange": {
|
|
26008
|
+
"types": [
|
|
26009
|
+
"function"
|
|
26010
|
+
],
|
|
26011
|
+
"description": "Change handler invoked with rowId and selected column value",
|
|
26012
|
+
"kind": "callback",
|
|
26013
|
+
"callbackArgs": [
|
|
26014
|
+
{
|
|
26015
|
+
"name": "rowId",
|
|
26016
|
+
"type": "string"
|
|
26017
|
+
},
|
|
26018
|
+
{
|
|
26019
|
+
"name": "value",
|
|
26020
|
+
"type": "number"
|
|
26021
|
+
}
|
|
26022
|
+
]
|
|
26023
|
+
},
|
|
26024
|
+
"disabled": {
|
|
26025
|
+
"types": [
|
|
26026
|
+
"boolean"
|
|
26027
|
+
],
|
|
26028
|
+
"description": "Disable all inputs"
|
|
26029
|
+
},
|
|
26030
|
+
"size": {
|
|
26031
|
+
"types": [
|
|
26032
|
+
"string"
|
|
26033
|
+
],
|
|
26034
|
+
"description": "Visual size",
|
|
26035
|
+
"enumValues": [
|
|
26036
|
+
"sm",
|
|
26037
|
+
"md"
|
|
26038
|
+
]
|
|
26039
|
+
},
|
|
26040
|
+
"className": {
|
|
26041
|
+
"types": [
|
|
26042
|
+
"string"
|
|
26043
|
+
],
|
|
26044
|
+
"description": "Additional CSS classes"
|
|
26045
|
+
}
|
|
26046
|
+
}
|
|
26047
|
+
},
|
|
26048
|
+
"qr-scanner": {
|
|
26049
|
+
"type": "qr-scanner",
|
|
26050
|
+
"category": "component",
|
|
26051
|
+
"description": "QrScanner component",
|
|
26052
|
+
"suggestedFor": [
|
|
26053
|
+
"scanner",
|
|
26054
|
+
"qr scanner"
|
|
26055
|
+
],
|
|
26056
|
+
"typicalSize": "medium",
|
|
26057
|
+
"propsSchema": {
|
|
26058
|
+
"onScan": {
|
|
26059
|
+
"types": [
|
|
26060
|
+
"function"
|
|
26061
|
+
],
|
|
26062
|
+
"description": "onScan prop",
|
|
26063
|
+
"kind": "callback",
|
|
26064
|
+
"callbackArgs": [
|
|
26065
|
+
{
|
|
26066
|
+
"name": "result",
|
|
26067
|
+
"type": "object"
|
|
26068
|
+
}
|
|
26069
|
+
]
|
|
26070
|
+
},
|
|
26071
|
+
"onError": {
|
|
26072
|
+
"types": [
|
|
26073
|
+
"function"
|
|
26074
|
+
],
|
|
26075
|
+
"description": "onError prop",
|
|
26076
|
+
"kind": "callback",
|
|
26077
|
+
"callbackArgs": [
|
|
26078
|
+
{
|
|
26079
|
+
"name": "error",
|
|
26080
|
+
"type": "object"
|
|
26081
|
+
}
|
|
26082
|
+
]
|
|
26083
|
+
},
|
|
26084
|
+
"facingMode": {
|
|
26085
|
+
"types": [
|
|
26086
|
+
"string"
|
|
26087
|
+
],
|
|
26088
|
+
"description": "facingMode prop",
|
|
26089
|
+
"enumValues": [
|
|
26090
|
+
"environment",
|
|
26091
|
+
"user"
|
|
26092
|
+
]
|
|
26093
|
+
},
|
|
26094
|
+
"paused": {
|
|
26095
|
+
"types": [
|
|
26096
|
+
"boolean"
|
|
26097
|
+
],
|
|
26098
|
+
"description": "paused prop"
|
|
26099
|
+
},
|
|
26100
|
+
"showOverlay": {
|
|
26101
|
+
"types": [
|
|
26102
|
+
"boolean"
|
|
26103
|
+
],
|
|
26104
|
+
"description": "showOverlay prop"
|
|
26105
|
+
},
|
|
26106
|
+
"showCameraControls": {
|
|
26107
|
+
"types": [
|
|
26108
|
+
"boolean"
|
|
26109
|
+
],
|
|
26110
|
+
"description": "showCameraControls prop"
|
|
26111
|
+
},
|
|
26112
|
+
"fallback": {
|
|
26113
|
+
"types": [
|
|
26114
|
+
"node"
|
|
26115
|
+
],
|
|
26116
|
+
"description": "fallback prop"
|
|
26117
|
+
},
|
|
26118
|
+
"className": {
|
|
26119
|
+
"types": [
|
|
26120
|
+
"string"
|
|
26121
|
+
],
|
|
26122
|
+
"description": "className prop"
|
|
26123
|
+
}
|
|
26124
|
+
}
|
|
26125
|
+
},
|
|
26126
|
+
"vote-stack": {
|
|
26127
|
+
"type": "vote-stack",
|
|
26128
|
+
"category": "component",
|
|
26129
|
+
"description": "VoteStack component",
|
|
26130
|
+
"suggestedFor": [
|
|
26131
|
+
"vote",
|
|
26132
|
+
"stack",
|
|
26133
|
+
"vote stack"
|
|
26134
|
+
],
|
|
26135
|
+
"typicalSize": "medium",
|
|
26136
|
+
"propsSchema": {
|
|
26137
|
+
"count": {
|
|
26138
|
+
"types": [
|
|
26139
|
+
"number"
|
|
26140
|
+
],
|
|
26141
|
+
"description": "Current tally",
|
|
26142
|
+
"required": true
|
|
26143
|
+
},
|
|
26144
|
+
"userVote": {
|
|
26145
|
+
"types": [
|
|
26146
|
+
"string"
|
|
26147
|
+
],
|
|
26148
|
+
"description": "Current user's vote (null = no vote cast)",
|
|
26149
|
+
"enumValues": [
|
|
26150
|
+
"up",
|
|
26151
|
+
"down"
|
|
26152
|
+
]
|
|
26153
|
+
},
|
|
26154
|
+
"onVote": {
|
|
26155
|
+
"types": [
|
|
26156
|
+
"function"
|
|
26157
|
+
],
|
|
26158
|
+
"description": "Toggle handler. Clicking the same arrow clears (emits null).",
|
|
26159
|
+
"kind": "callback",
|
|
26160
|
+
"callbackArgs": [
|
|
26161
|
+
{
|
|
26162
|
+
"name": "next",
|
|
26163
|
+
"type": "string"
|
|
26164
|
+
}
|
|
26165
|
+
]
|
|
26166
|
+
},
|
|
26167
|
+
"disabled": {
|
|
26168
|
+
"types": [
|
|
26169
|
+
"boolean"
|
|
26170
|
+
],
|
|
26171
|
+
"description": "Disabled state"
|
|
26172
|
+
},
|
|
26173
|
+
"size": {
|
|
26174
|
+
"types": [
|
|
26175
|
+
"string"
|
|
26176
|
+
],
|
|
26177
|
+
"description": "Size variant",
|
|
26178
|
+
"enumValues": [
|
|
26179
|
+
"sm",
|
|
26180
|
+
"md",
|
|
26181
|
+
"lg"
|
|
26182
|
+
]
|
|
26183
|
+
},
|
|
26184
|
+
"variant": {
|
|
26185
|
+
"types": [
|
|
26186
|
+
"string"
|
|
26187
|
+
],
|
|
26188
|
+
"description": "Layout orientation. `vertical` = forum/Q&A column; `horizontal` = compact row.",
|
|
26189
|
+
"enumValues": [
|
|
26190
|
+
"vertical",
|
|
26191
|
+
"horizontal"
|
|
26192
|
+
]
|
|
26193
|
+
},
|
|
26194
|
+
"className": {
|
|
26195
|
+
"types": [
|
|
26196
|
+
"string"
|
|
26197
|
+
],
|
|
26198
|
+
"description": "Additional CSS classes"
|
|
26199
|
+
},
|
|
26200
|
+
"label": {
|
|
26201
|
+
"types": [
|
|
26202
|
+
"string"
|
|
26203
|
+
],
|
|
26204
|
+
"description": "Accessible label for the group"
|
|
26205
|
+
}
|
|
26206
|
+
}
|
|
26207
|
+
},
|
|
26208
|
+
"branching-logic-builder": {
|
|
26209
|
+
"type": "branching-logic-builder",
|
|
26210
|
+
"category": "display",
|
|
26211
|
+
"description": "BranchingLogicBuilder component",
|
|
26212
|
+
"suggestedFor": [
|
|
26213
|
+
"branching",
|
|
26214
|
+
"logic",
|
|
26215
|
+
"builder",
|
|
26216
|
+
"branching logic builder"
|
|
26217
|
+
],
|
|
26218
|
+
"typicalSize": "large",
|
|
26219
|
+
"propsSchema": {
|
|
26220
|
+
"questions": {
|
|
26221
|
+
"types": [
|
|
26222
|
+
"array"
|
|
26223
|
+
],
|
|
26224
|
+
"description": "questions prop",
|
|
26225
|
+
"required": true
|
|
26226
|
+
},
|
|
26227
|
+
"rules": {
|
|
26228
|
+
"types": [
|
|
26229
|
+
"array"
|
|
26230
|
+
],
|
|
26231
|
+
"description": "rules prop",
|
|
26232
|
+
"required": true
|
|
26233
|
+
},
|
|
26234
|
+
"onRulesChange": {
|
|
26235
|
+
"types": [
|
|
26236
|
+
"function"
|
|
26237
|
+
],
|
|
26238
|
+
"description": "onRulesChange prop",
|
|
26239
|
+
"kind": "callback",
|
|
26240
|
+
"callbackArgs": [
|
|
26241
|
+
{
|
|
26242
|
+
"name": "rules",
|
|
26243
|
+
"type": "array"
|
|
26244
|
+
}
|
|
26245
|
+
]
|
|
26246
|
+
},
|
|
26247
|
+
"readOnly": {
|
|
26248
|
+
"types": [
|
|
26249
|
+
"boolean"
|
|
26250
|
+
],
|
|
26251
|
+
"description": "readOnly prop"
|
|
26252
|
+
},
|
|
26253
|
+
"className": {
|
|
26254
|
+
"types": [
|
|
26255
|
+
"string"
|
|
26256
|
+
],
|
|
26257
|
+
"description": "className prop"
|
|
26258
|
+
}
|
|
26259
|
+
}
|
|
26260
|
+
},
|
|
26261
|
+
"reply-tree": {
|
|
26262
|
+
"type": "reply-tree",
|
|
26263
|
+
"category": "display",
|
|
26264
|
+
"description": "ReplyTree component",
|
|
26265
|
+
"suggestedFor": [
|
|
26266
|
+
"reply",
|
|
26267
|
+
"tree",
|
|
26268
|
+
"reply tree"
|
|
26269
|
+
],
|
|
26270
|
+
"typicalSize": "large",
|
|
26271
|
+
"propsSchema": {
|
|
26272
|
+
"nodes": {
|
|
26273
|
+
"types": [
|
|
26274
|
+
"array"
|
|
26275
|
+
],
|
|
26276
|
+
"description": "nodes prop",
|
|
26277
|
+
"required": true
|
|
26278
|
+
},
|
|
26279
|
+
"maxDepth": {
|
|
26280
|
+
"types": [
|
|
26281
|
+
"number"
|
|
26282
|
+
],
|
|
26283
|
+
"description": "maxDepth prop"
|
|
26284
|
+
},
|
|
26285
|
+
"onVote": {
|
|
26286
|
+
"types": [
|
|
26287
|
+
"function"
|
|
26288
|
+
],
|
|
26289
|
+
"description": "onVote prop",
|
|
26290
|
+
"kind": "callback",
|
|
26291
|
+
"callbackArgs": [
|
|
26292
|
+
{
|
|
26293
|
+
"name": "nodeId",
|
|
26294
|
+
"type": "string"
|
|
26295
|
+
},
|
|
26296
|
+
{
|
|
26297
|
+
"name": "vote",
|
|
26298
|
+
"type": "string"
|
|
26299
|
+
}
|
|
26300
|
+
]
|
|
26301
|
+
},
|
|
26302
|
+
"onReply": {
|
|
26303
|
+
"types": [
|
|
26304
|
+
"function"
|
|
26305
|
+
],
|
|
26306
|
+
"description": "onReply prop",
|
|
26307
|
+
"kind": "callback",
|
|
26308
|
+
"callbackArgs": [
|
|
26309
|
+
{
|
|
26310
|
+
"name": "parentNodeId",
|
|
26311
|
+
"type": "string"
|
|
26312
|
+
}
|
|
26313
|
+
]
|
|
26314
|
+
},
|
|
26315
|
+
"onFlag": {
|
|
26316
|
+
"types": [
|
|
26317
|
+
"function"
|
|
26318
|
+
],
|
|
26319
|
+
"description": "onFlag prop",
|
|
26320
|
+
"kind": "callback",
|
|
26321
|
+
"callbackArgs": [
|
|
26322
|
+
{
|
|
26323
|
+
"name": "nodeId",
|
|
26324
|
+
"type": "string"
|
|
26325
|
+
}
|
|
26326
|
+
]
|
|
26327
|
+
},
|
|
26328
|
+
"onContinueThread": {
|
|
26329
|
+
"types": [
|
|
26330
|
+
"function"
|
|
26331
|
+
],
|
|
26332
|
+
"description": "onContinueThread prop",
|
|
26333
|
+
"kind": "callback",
|
|
26334
|
+
"callbackArgs": [
|
|
26335
|
+
{
|
|
26336
|
+
"name": "nodeId",
|
|
26337
|
+
"type": "string"
|
|
26338
|
+
}
|
|
26339
|
+
]
|
|
26340
|
+
},
|
|
26341
|
+
"showActions": {
|
|
26342
|
+
"types": [
|
|
26343
|
+
"boolean"
|
|
26344
|
+
],
|
|
26345
|
+
"description": "showActions prop"
|
|
26346
|
+
},
|
|
26347
|
+
"className": {
|
|
26348
|
+
"types": [
|
|
26349
|
+
"string"
|
|
26350
|
+
],
|
|
26351
|
+
"description": "className prop"
|
|
26352
|
+
}
|
|
26353
|
+
}
|
|
26354
|
+
},
|
|
26355
|
+
"rich-block-editor": {
|
|
26356
|
+
"type": "rich-block-editor",
|
|
26357
|
+
"category": "display",
|
|
26358
|
+
"description": "RichBlockEditor component",
|
|
26359
|
+
"suggestedFor": [
|
|
26360
|
+
"rich",
|
|
26361
|
+
"block",
|
|
26362
|
+
"editor",
|
|
26363
|
+
"rich block editor"
|
|
26364
|
+
],
|
|
26365
|
+
"typicalSize": "large",
|
|
26366
|
+
"propsSchema": {
|
|
26367
|
+
"initialBlocks": {
|
|
26368
|
+
"types": [
|
|
26369
|
+
"array"
|
|
26370
|
+
],
|
|
26371
|
+
"description": "initialBlocks prop"
|
|
26372
|
+
},
|
|
26373
|
+
"onChange": {
|
|
26374
|
+
"types": [
|
|
26375
|
+
"function"
|
|
26376
|
+
],
|
|
26377
|
+
"description": "onChange prop",
|
|
26378
|
+
"kind": "callback",
|
|
26379
|
+
"callbackArgs": [
|
|
26380
|
+
{
|
|
26381
|
+
"name": "blocks",
|
|
26382
|
+
"type": "array"
|
|
26383
|
+
}
|
|
26384
|
+
]
|
|
26385
|
+
},
|
|
26386
|
+
"readOnly": {
|
|
26387
|
+
"types": [
|
|
26388
|
+
"boolean"
|
|
26389
|
+
],
|
|
26390
|
+
"description": "readOnly prop"
|
|
26391
|
+
},
|
|
26392
|
+
"placeholder": {
|
|
26393
|
+
"types": [
|
|
26394
|
+
"string"
|
|
26395
|
+
],
|
|
26396
|
+
"description": "placeholder prop"
|
|
26397
|
+
},
|
|
26398
|
+
"showToolbar": {
|
|
26399
|
+
"types": [
|
|
26400
|
+
"boolean"
|
|
26401
|
+
],
|
|
26402
|
+
"description": "showToolbar prop"
|
|
26403
|
+
},
|
|
26404
|
+
"className": {
|
|
26405
|
+
"types": [
|
|
26406
|
+
"string"
|
|
26407
|
+
],
|
|
26408
|
+
"description": "className prop"
|
|
26409
|
+
}
|
|
26410
|
+
}
|
|
26411
|
+
},
|
|
26412
|
+
"version-diff": {
|
|
26413
|
+
"type": "version-diff",
|
|
26414
|
+
"category": "display",
|
|
26415
|
+
"description": "VersionDiff component",
|
|
26416
|
+
"suggestedFor": [
|
|
26417
|
+
"version",
|
|
26418
|
+
"diff",
|
|
26419
|
+
"version diff"
|
|
26420
|
+
],
|
|
26421
|
+
"typicalSize": "large",
|
|
26422
|
+
"propsSchema": {
|
|
26423
|
+
"revisions": {
|
|
26424
|
+
"types": [
|
|
26425
|
+
"array"
|
|
26426
|
+
],
|
|
26427
|
+
"description": "All available revisions (at least 2).",
|
|
26428
|
+
"required": true
|
|
26429
|
+
},
|
|
26430
|
+
"beforeId": {
|
|
26431
|
+
"types": [
|
|
26432
|
+
"string"
|
|
26433
|
+
],
|
|
26434
|
+
"description": "Currently selected \"before\" revision id."
|
|
26435
|
+
},
|
|
26436
|
+
"afterId": {
|
|
26437
|
+
"types": [
|
|
26438
|
+
"string"
|
|
26439
|
+
],
|
|
26440
|
+
"description": "Currently selected \"after\" revision id."
|
|
26441
|
+
},
|
|
26442
|
+
"view": {
|
|
26443
|
+
"types": [
|
|
26444
|
+
"string"
|
|
26445
|
+
],
|
|
26446
|
+
"description": "Display mode.",
|
|
26447
|
+
"enumValues": [
|
|
26448
|
+
"side-by-side",
|
|
26449
|
+
"inline"
|
|
26450
|
+
]
|
|
26451
|
+
},
|
|
26452
|
+
"onSelectBefore": {
|
|
26453
|
+
"types": [
|
|
26454
|
+
"function"
|
|
26455
|
+
],
|
|
26456
|
+
"description": "Called when the user picks a different \"before\" revision.",
|
|
26457
|
+
"kind": "callback",
|
|
26458
|
+
"callbackArgs": [
|
|
26459
|
+
{
|
|
26460
|
+
"name": "id",
|
|
26461
|
+
"type": "string"
|
|
26462
|
+
}
|
|
26463
|
+
]
|
|
26464
|
+
},
|
|
26465
|
+
"onSelectAfter": {
|
|
26466
|
+
"types": [
|
|
26467
|
+
"function"
|
|
26468
|
+
],
|
|
26469
|
+
"description": "Called when the user picks a different \"after\" revision.",
|
|
26470
|
+
"kind": "callback",
|
|
26471
|
+
"callbackArgs": [
|
|
26472
|
+
{
|
|
26473
|
+
"name": "id",
|
|
26474
|
+
"type": "string"
|
|
26475
|
+
}
|
|
26476
|
+
]
|
|
26477
|
+
},
|
|
26478
|
+
"onRevert": {
|
|
26479
|
+
"types": [
|
|
26480
|
+
"function"
|
|
26481
|
+
],
|
|
26482
|
+
"description": "Called when the user clicks the revert button (passes the \"before\" id).",
|
|
26483
|
+
"kind": "callback",
|
|
26484
|
+
"callbackArgs": [
|
|
26485
|
+
{
|
|
26486
|
+
"name": "id",
|
|
26487
|
+
"type": "string"
|
|
26488
|
+
}
|
|
26489
|
+
]
|
|
26490
|
+
},
|
|
26491
|
+
"language": {
|
|
26492
|
+
"types": [
|
|
26493
|
+
"string"
|
|
26494
|
+
],
|
|
26495
|
+
"description": "Language label (informational)."
|
|
26496
|
+
},
|
|
26497
|
+
"className": {
|
|
26498
|
+
"types": [
|
|
26499
|
+
"string"
|
|
26500
|
+
],
|
|
26501
|
+
"description": "Additional CSS classes."
|
|
26502
|
+
}
|
|
26503
|
+
}
|
|
26504
|
+
},
|
|
26505
|
+
"option-constraint-group": {
|
|
26506
|
+
"type": "option-constraint-group",
|
|
26507
|
+
"category": "component",
|
|
26508
|
+
"description": "OptionConstraintGroup Molecule Component Generic constrained option selector (radio for \"single\", checkbox for \"multi\") with required/optional/multi constraints. Renders radio inputs for `single` constraint and checkboxes for `multi`. Reports validation errors inline when the current selection violates the constraint. **Atomic Design**: Composed using Typography atom and native form controls.",
|
|
26509
|
+
"suggestedFor": [
|
|
26510
|
+
"option",
|
|
26511
|
+
"constraint",
|
|
26512
|
+
"group",
|
|
26513
|
+
"option constraint group"
|
|
26514
|
+
],
|
|
26515
|
+
"typicalSize": "medium",
|
|
26516
|
+
"propsSchema": {
|
|
26517
|
+
"groupId": {
|
|
26518
|
+
"types": [
|
|
26519
|
+
"string"
|
|
26520
|
+
],
|
|
26521
|
+
"description": "groupId prop",
|
|
26522
|
+
"required": true
|
|
26523
|
+
},
|
|
26524
|
+
"title": {
|
|
26525
|
+
"types": [
|
|
26526
|
+
"string"
|
|
26527
|
+
],
|
|
26528
|
+
"description": "title prop",
|
|
26529
|
+
"required": true
|
|
26530
|
+
},
|
|
26531
|
+
"description": {
|
|
26532
|
+
"types": [
|
|
26533
|
+
"string"
|
|
26534
|
+
],
|
|
26535
|
+
"description": "description prop"
|
|
26536
|
+
},
|
|
26537
|
+
"options": {
|
|
26538
|
+
"types": [
|
|
26539
|
+
"array"
|
|
26540
|
+
],
|
|
26541
|
+
"description": "options prop",
|
|
26542
|
+
"required": true
|
|
26543
|
+
},
|
|
26544
|
+
"constraint": {
|
|
26545
|
+
"types": [
|
|
26546
|
+
"object"
|
|
26547
|
+
],
|
|
26548
|
+
"description": "constraint prop",
|
|
26549
|
+
"required": true
|
|
26550
|
+
},
|
|
26551
|
+
"selected": {
|
|
26552
|
+
"types": [
|
|
26553
|
+
"array"
|
|
26554
|
+
],
|
|
26555
|
+
"description": "selected prop"
|
|
26556
|
+
},
|
|
26557
|
+
"onChange": {
|
|
26558
|
+
"types": [
|
|
26559
|
+
"function"
|
|
26560
|
+
],
|
|
26561
|
+
"description": "onChange prop",
|
|
26562
|
+
"kind": "callback",
|
|
26563
|
+
"callbackArgs": [
|
|
26564
|
+
{
|
|
26565
|
+
"name": "selected",
|
|
26566
|
+
"type": "array"
|
|
26567
|
+
}
|
|
26568
|
+
]
|
|
26569
|
+
},
|
|
26570
|
+
"size": {
|
|
26571
|
+
"types": [
|
|
26572
|
+
"string"
|
|
26573
|
+
],
|
|
26574
|
+
"description": "size prop",
|
|
26575
|
+
"enumValues": [
|
|
26576
|
+
"sm",
|
|
26577
|
+
"md"
|
|
26578
|
+
]
|
|
26579
|
+
},
|
|
26580
|
+
"className": {
|
|
26581
|
+
"types": [
|
|
26582
|
+
"string"
|
|
26583
|
+
],
|
|
26584
|
+
"description": "className prop"
|
|
26585
|
+
}
|
|
26586
|
+
}
|
|
26587
|
+
},
|
|
26588
|
+
"positioned-canvas": {
|
|
26589
|
+
"type": "positioned-canvas",
|
|
26590
|
+
"category": "game",
|
|
26591
|
+
"description": "PositionedCanvas component",
|
|
26592
|
+
"suggestedFor": [
|
|
26593
|
+
"positioned",
|
|
26594
|
+
"canvas",
|
|
26595
|
+
"positioned canvas"
|
|
26596
|
+
],
|
|
26597
|
+
"typicalSize": "medium",
|
|
26598
|
+
"propsSchema": {
|
|
26599
|
+
"items": {
|
|
26600
|
+
"types": [
|
|
26601
|
+
"array"
|
|
26602
|
+
],
|
|
26603
|
+
"description": "items prop",
|
|
26604
|
+
"required": true
|
|
26605
|
+
},
|
|
26606
|
+
"width": {
|
|
26607
|
+
"types": [
|
|
26608
|
+
"number"
|
|
26609
|
+
],
|
|
26610
|
+
"description": "width prop"
|
|
26611
|
+
},
|
|
26612
|
+
"height": {
|
|
26613
|
+
"types": [
|
|
26614
|
+
"number"
|
|
26615
|
+
],
|
|
26616
|
+
"description": "height prop"
|
|
26617
|
+
},
|
|
26618
|
+
"selectedId": {
|
|
26619
|
+
"types": [
|
|
26620
|
+
"string"
|
|
26621
|
+
],
|
|
26622
|
+
"description": "selectedId prop"
|
|
26623
|
+
},
|
|
26624
|
+
"editable": {
|
|
26625
|
+
"types": [
|
|
26626
|
+
"boolean"
|
|
26627
|
+
],
|
|
26628
|
+
"description": "editable prop"
|
|
26629
|
+
},
|
|
26630
|
+
"onSelect": {
|
|
26631
|
+
"types": [
|
|
26632
|
+
"function"
|
|
26633
|
+
],
|
|
26634
|
+
"description": "onSelect prop",
|
|
26635
|
+
"kind": "callback",
|
|
26636
|
+
"callbackArgs": [
|
|
26637
|
+
{
|
|
26638
|
+
"name": "id",
|
|
26639
|
+
"type": "string"
|
|
26640
|
+
}
|
|
26641
|
+
]
|
|
26642
|
+
},
|
|
26643
|
+
"onMove": {
|
|
26644
|
+
"types": [
|
|
26645
|
+
"function"
|
|
26646
|
+
],
|
|
26647
|
+
"description": "onMove prop",
|
|
26648
|
+
"kind": "callback",
|
|
26649
|
+
"callbackArgs": [
|
|
26650
|
+
{
|
|
26651
|
+
"name": "id",
|
|
26652
|
+
"type": "string"
|
|
26653
|
+
},
|
|
26654
|
+
{
|
|
26655
|
+
"name": "x",
|
|
26656
|
+
"type": "number"
|
|
26657
|
+
},
|
|
26658
|
+
{
|
|
26659
|
+
"name": "y",
|
|
26660
|
+
"type": "number"
|
|
26661
|
+
}
|
|
26662
|
+
]
|
|
26663
|
+
},
|
|
26664
|
+
"className": {
|
|
26665
|
+
"types": [
|
|
26666
|
+
"string"
|
|
26667
|
+
],
|
|
26668
|
+
"description": "className prop"
|
|
26669
|
+
}
|
|
26670
|
+
}
|
|
26671
|
+
},
|
|
25812
26672
|
"heading": {
|
|
25813
26673
|
"type": "heading",
|
|
25814
26674
|
"category": "component",
|