@momentum-design/components 0.121.7 → 0.121.8
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/custom-elements.json +157 -157
- package/dist/react/index.d.ts +1 -1
- package/dist/react/index.js +1 -1
- package/package.json +1 -1
|
@@ -50909,6 +50909,163 @@
|
|
|
50909
50909
|
}
|
|
50910
50910
|
]
|
|
50911
50911
|
},
|
|
50912
|
+
{
|
|
50913
|
+
"kind": "javascript-module",
|
|
50914
|
+
"path": "components/virtualizedlist/virtualizedlist.component.js",
|
|
50915
|
+
"declarations": [
|
|
50916
|
+
{
|
|
50917
|
+
"kind": "class",
|
|
50918
|
+
"description": "`mdc-virtualizedlist` component for creating custom virtualized lists.\nIMPORTANT: This component does not create it's own list/list items.\nUse the setlistdata callback prop to update client state in order to\nPass list/listitems as a child of this component, which this will virtuailze\nThis implementation handles dynamic lists as well as fixed sized lists.\nPlease refer to [Tanstack Virtual Docs](https://tanstack.com/virtual/latest) for more in depth documentation.",
|
|
50919
|
+
"name": "VirtualizedList",
|
|
50920
|
+
"cssParts": [
|
|
50921
|
+
{
|
|
50922
|
+
"description": "The container of the virtualized list.",
|
|
50923
|
+
"name": "container"
|
|
50924
|
+
},
|
|
50925
|
+
{
|
|
50926
|
+
"description": "The scrollable area of the virtualized list.",
|
|
50927
|
+
"name": "scroll"
|
|
50928
|
+
}
|
|
50929
|
+
],
|
|
50930
|
+
"slots": [
|
|
50931
|
+
{
|
|
50932
|
+
"description": "Client side List with nested list items.",
|
|
50933
|
+
"name": ""
|
|
50934
|
+
}
|
|
50935
|
+
],
|
|
50936
|
+
"members": [
|
|
50937
|
+
{
|
|
50938
|
+
"kind": "field",
|
|
50939
|
+
"name": "virtualizerProps",
|
|
50940
|
+
"type": {
|
|
50941
|
+
"text": "VirtualizerProps"
|
|
50942
|
+
},
|
|
50943
|
+
"description": "Object that sets and updates the virtualizer with any relevant props.\nThere are two required object props in order to get virtualization to work properly.\ncount - The length of your list that you are virtualizing.\nAs your list grows/shrinks, this component must be updated with the appropriate value\n(Same with any other updated prop).\nestimateSize - A function that returns the estimated size of your items.\nIf your list is fixed, this will just be the size of your items.\nIf your list is dynamic, try to return approximate the size of each item.\n\nA full list of possible props can be in\n[Tanstack Virtualizer API Docs](https://tanstack.com/virtual/latest/docs/api/virtualizer)",
|
|
50944
|
+
"attribute": "virtualizerprops"
|
|
50945
|
+
},
|
|
50946
|
+
{
|
|
50947
|
+
"kind": "field",
|
|
50948
|
+
"name": "setlistdata",
|
|
50949
|
+
"type": {
|
|
50950
|
+
"text": "(({ virtualItems, measureElement, listStyle }: SetListDataProps) => void) | null"
|
|
50951
|
+
},
|
|
50952
|
+
"description": "Callback that gets envoked when updates to the virtualizer interally occur.\nThis must be implemented in such a way that this function will trigger update to parent.\n\nvirtualItems - Array that will be what the client displays on screen. Use this to render\na List of your choosing with these items nested inside as your ListItems.\nmeasureElement - Ref to pass to each ListItem rendered client side.\nEach ListItem should also be be passed key and a data-index (which can be found on the virtualItem).\nlistStyle - This should be passed as the style attribute to your List.",
|
|
50953
|
+
"default": "null",
|
|
50954
|
+
"attribute": "setlistdata"
|
|
50955
|
+
},
|
|
50956
|
+
{
|
|
50957
|
+
"kind": "field",
|
|
50958
|
+
"name": "scrollElementRef",
|
|
50959
|
+
"type": {
|
|
50960
|
+
"text": "Ref<HTMLDivElement>"
|
|
50961
|
+
},
|
|
50962
|
+
"privacy": "public"
|
|
50963
|
+
},
|
|
50964
|
+
{
|
|
50965
|
+
"kind": "field",
|
|
50966
|
+
"name": "virtualizer",
|
|
50967
|
+
"type": {
|
|
50968
|
+
"text": "Virtualizer<Element, Element> | null"
|
|
50969
|
+
},
|
|
50970
|
+
"privacy": "public",
|
|
50971
|
+
"default": "null"
|
|
50972
|
+
},
|
|
50973
|
+
{
|
|
50974
|
+
"kind": "field",
|
|
50975
|
+
"name": "virtualItems",
|
|
50976
|
+
"type": {
|
|
50977
|
+
"text": "Array<VirtualItem>"
|
|
50978
|
+
},
|
|
50979
|
+
"privacy": "public",
|
|
50980
|
+
"default": "[]"
|
|
50981
|
+
},
|
|
50982
|
+
{
|
|
50983
|
+
"kind": "method",
|
|
50984
|
+
"name": "handleScroll",
|
|
50985
|
+
"privacy": "private",
|
|
50986
|
+
"return": {
|
|
50987
|
+
"type": {
|
|
50988
|
+
"text": "void"
|
|
50989
|
+
}
|
|
50990
|
+
},
|
|
50991
|
+
"parameters": [
|
|
50992
|
+
{
|
|
50993
|
+
"name": "event",
|
|
50994
|
+
"type": {
|
|
50995
|
+
"text": "Event"
|
|
50996
|
+
}
|
|
50997
|
+
}
|
|
50998
|
+
],
|
|
50999
|
+
"description": "Refires the scroll event from the internal scroll container to the host element"
|
|
51000
|
+
},
|
|
51001
|
+
{
|
|
51002
|
+
"kind": "field",
|
|
51003
|
+
"name": "virtualizerController",
|
|
51004
|
+
"type": {
|
|
51005
|
+
"text": "null"
|
|
51006
|
+
},
|
|
51007
|
+
"default": "null"
|
|
51008
|
+
},
|
|
51009
|
+
{
|
|
51010
|
+
"kind": "field",
|
|
51011
|
+
"name": "onscroll",
|
|
51012
|
+
"type": {
|
|
51013
|
+
"text": "null"
|
|
51014
|
+
},
|
|
51015
|
+
"default": "null"
|
|
51016
|
+
}
|
|
51017
|
+
],
|
|
51018
|
+
"events": [
|
|
51019
|
+
{
|
|
51020
|
+
"type": {
|
|
51021
|
+
"text": "EventConstructor"
|
|
51022
|
+
}
|
|
51023
|
+
},
|
|
51024
|
+
{
|
|
51025
|
+
"description": "(React: onScroll) Event that gets called when user scrolls inside of list.",
|
|
51026
|
+
"name": "scroll",
|
|
51027
|
+
"reactName": "onScroll"
|
|
51028
|
+
}
|
|
51029
|
+
],
|
|
51030
|
+
"attributes": [
|
|
51031
|
+
{
|
|
51032
|
+
"name": "virtualizerprops",
|
|
51033
|
+
"type": {
|
|
51034
|
+
"text": "VirtualizerProps"
|
|
51035
|
+
},
|
|
51036
|
+
"description": "Object that sets and updates the virtualizer with any relevant props.\nThere are two required object props in order to get virtualization to work properly.\ncount - The length of your list that you are virtualizing.\nAs your list grows/shrinks, this component must be updated with the appropriate value\n(Same with any other updated prop).\nestimateSize - A function that returns the estimated size of your items.\nIf your list is fixed, this will just be the size of your items.\nIf your list is dynamic, try to return approximate the size of each item.\n\nA full list of possible props can be in\n[Tanstack Virtualizer API Docs](https://tanstack.com/virtual/latest/docs/api/virtualizer)",
|
|
51037
|
+
"fieldName": "virtualizerProps"
|
|
51038
|
+
},
|
|
51039
|
+
{
|
|
51040
|
+
"name": "setlistdata",
|
|
51041
|
+
"type": {
|
|
51042
|
+
"text": "(({ virtualItems, measureElement, listStyle }: SetListDataProps) => void) | null"
|
|
51043
|
+
},
|
|
51044
|
+
"description": "Callback that gets envoked when updates to the virtualizer interally occur.\nThis must be implemented in such a way that this function will trigger update to parent.\n\nvirtualItems - Array that will be what the client displays on screen. Use this to render\na List of your choosing with these items nested inside as your ListItems.\nmeasureElement - Ref to pass to each ListItem rendered client side.\nEach ListItem should also be be passed key and a data-index (which can be found on the virtualItem).\nlistStyle - This should be passed as the style attribute to your List.",
|
|
51045
|
+
"default": "null",
|
|
51046
|
+
"fieldName": "setlistdata"
|
|
51047
|
+
}
|
|
51048
|
+
],
|
|
51049
|
+
"superclass": {
|
|
51050
|
+
"name": "Component",
|
|
51051
|
+
"module": "/src/models"
|
|
51052
|
+
},
|
|
51053
|
+
"tagName": "mdc-virtualizedlist",
|
|
51054
|
+
"jsDoc": "/**\n * `mdc-virtualizedlist` component for creating custom virtualized lists.\n * IMPORTANT: This component does not create it's own list/list items.\n * Use the setlistdata callback prop to update client state in order to\n * Pass list/listitems as a child of this component, which this will virtuailze\n * This implementation handles dynamic lists as well as fixed sized lists.\n * Please refer to [Tanstack Virtual Docs](https://tanstack.com/virtual/latest) for more in depth documentation.\n *\n * @tagname mdc-virtualizedlist\n *\n * @event scroll - (React: onScroll) Event that gets called when user scrolls inside of list.\n *\n * @slot - Client side List with nested list items.\n *\n * @csspart container - The container of the virtualized list.\n * @csspart scroll - The scrollable area of the virtualized list.\n */",
|
|
51055
|
+
"customElement": true
|
|
51056
|
+
}
|
|
51057
|
+
],
|
|
51058
|
+
"exports": [
|
|
51059
|
+
{
|
|
51060
|
+
"kind": "js",
|
|
51061
|
+
"name": "default",
|
|
51062
|
+
"declaration": {
|
|
51063
|
+
"name": "VirtualizedList",
|
|
51064
|
+
"module": "components/virtualizedlist/virtualizedlist.component.js"
|
|
51065
|
+
}
|
|
51066
|
+
}
|
|
51067
|
+
]
|
|
51068
|
+
},
|
|
50912
51069
|
{
|
|
50913
51070
|
"kind": "javascript-module",
|
|
50914
51071
|
"path": "components/typewriter/typewriter.component.js",
|
|
@@ -51249,163 +51406,6 @@
|
|
|
51249
51406
|
}
|
|
51250
51407
|
]
|
|
51251
51408
|
},
|
|
51252
|
-
{
|
|
51253
|
-
"kind": "javascript-module",
|
|
51254
|
-
"path": "components/virtualizedlist/virtualizedlist.component.js",
|
|
51255
|
-
"declarations": [
|
|
51256
|
-
{
|
|
51257
|
-
"kind": "class",
|
|
51258
|
-
"description": "`mdc-virtualizedlist` component for creating custom virtualized lists.\nIMPORTANT: This component does not create it's own list/list items.\nUse the setlistdata callback prop to update client state in order to\nPass list/listitems as a child of this component, which this will virtuailze\nThis implementation handles dynamic lists as well as fixed sized lists.\nPlease refer to [Tanstack Virtual Docs](https://tanstack.com/virtual/latest) for more in depth documentation.",
|
|
51259
|
-
"name": "VirtualizedList",
|
|
51260
|
-
"cssParts": [
|
|
51261
|
-
{
|
|
51262
|
-
"description": "The container of the virtualized list.",
|
|
51263
|
-
"name": "container"
|
|
51264
|
-
},
|
|
51265
|
-
{
|
|
51266
|
-
"description": "The scrollable area of the virtualized list.",
|
|
51267
|
-
"name": "scroll"
|
|
51268
|
-
}
|
|
51269
|
-
],
|
|
51270
|
-
"slots": [
|
|
51271
|
-
{
|
|
51272
|
-
"description": "Client side List with nested list items.",
|
|
51273
|
-
"name": ""
|
|
51274
|
-
}
|
|
51275
|
-
],
|
|
51276
|
-
"members": [
|
|
51277
|
-
{
|
|
51278
|
-
"kind": "field",
|
|
51279
|
-
"name": "virtualizerProps",
|
|
51280
|
-
"type": {
|
|
51281
|
-
"text": "VirtualizerProps"
|
|
51282
|
-
},
|
|
51283
|
-
"description": "Object that sets and updates the virtualizer with any relevant props.\nThere are two required object props in order to get virtualization to work properly.\ncount - The length of your list that you are virtualizing.\nAs your list grows/shrinks, this component must be updated with the appropriate value\n(Same with any other updated prop).\nestimateSize - A function that returns the estimated size of your items.\nIf your list is fixed, this will just be the size of your items.\nIf your list is dynamic, try to return approximate the size of each item.\n\nA full list of possible props can be in\n[Tanstack Virtualizer API Docs](https://tanstack.com/virtual/latest/docs/api/virtualizer)",
|
|
51284
|
-
"attribute": "virtualizerprops"
|
|
51285
|
-
},
|
|
51286
|
-
{
|
|
51287
|
-
"kind": "field",
|
|
51288
|
-
"name": "setlistdata",
|
|
51289
|
-
"type": {
|
|
51290
|
-
"text": "(({ virtualItems, measureElement, listStyle }: SetListDataProps) => void) | null"
|
|
51291
|
-
},
|
|
51292
|
-
"description": "Callback that gets envoked when updates to the virtualizer interally occur.\nThis must be implemented in such a way that this function will trigger update to parent.\n\nvirtualItems - Array that will be what the client displays on screen. Use this to render\na List of your choosing with these items nested inside as your ListItems.\nmeasureElement - Ref to pass to each ListItem rendered client side.\nEach ListItem should also be be passed key and a data-index (which can be found on the virtualItem).\nlistStyle - This should be passed as the style attribute to your List.",
|
|
51293
|
-
"default": "null",
|
|
51294
|
-
"attribute": "setlistdata"
|
|
51295
|
-
},
|
|
51296
|
-
{
|
|
51297
|
-
"kind": "field",
|
|
51298
|
-
"name": "scrollElementRef",
|
|
51299
|
-
"type": {
|
|
51300
|
-
"text": "Ref<HTMLDivElement>"
|
|
51301
|
-
},
|
|
51302
|
-
"privacy": "public"
|
|
51303
|
-
},
|
|
51304
|
-
{
|
|
51305
|
-
"kind": "field",
|
|
51306
|
-
"name": "virtualizer",
|
|
51307
|
-
"type": {
|
|
51308
|
-
"text": "Virtualizer<Element, Element> | null"
|
|
51309
|
-
},
|
|
51310
|
-
"privacy": "public",
|
|
51311
|
-
"default": "null"
|
|
51312
|
-
},
|
|
51313
|
-
{
|
|
51314
|
-
"kind": "field",
|
|
51315
|
-
"name": "virtualItems",
|
|
51316
|
-
"type": {
|
|
51317
|
-
"text": "Array<VirtualItem>"
|
|
51318
|
-
},
|
|
51319
|
-
"privacy": "public",
|
|
51320
|
-
"default": "[]"
|
|
51321
|
-
},
|
|
51322
|
-
{
|
|
51323
|
-
"kind": "method",
|
|
51324
|
-
"name": "handleScroll",
|
|
51325
|
-
"privacy": "private",
|
|
51326
|
-
"return": {
|
|
51327
|
-
"type": {
|
|
51328
|
-
"text": "void"
|
|
51329
|
-
}
|
|
51330
|
-
},
|
|
51331
|
-
"parameters": [
|
|
51332
|
-
{
|
|
51333
|
-
"name": "event",
|
|
51334
|
-
"type": {
|
|
51335
|
-
"text": "Event"
|
|
51336
|
-
}
|
|
51337
|
-
}
|
|
51338
|
-
],
|
|
51339
|
-
"description": "Refires the scroll event from the internal scroll container to the host element"
|
|
51340
|
-
},
|
|
51341
|
-
{
|
|
51342
|
-
"kind": "field",
|
|
51343
|
-
"name": "virtualizerController",
|
|
51344
|
-
"type": {
|
|
51345
|
-
"text": "null"
|
|
51346
|
-
},
|
|
51347
|
-
"default": "null"
|
|
51348
|
-
},
|
|
51349
|
-
{
|
|
51350
|
-
"kind": "field",
|
|
51351
|
-
"name": "onscroll",
|
|
51352
|
-
"type": {
|
|
51353
|
-
"text": "null"
|
|
51354
|
-
},
|
|
51355
|
-
"default": "null"
|
|
51356
|
-
}
|
|
51357
|
-
],
|
|
51358
|
-
"events": [
|
|
51359
|
-
{
|
|
51360
|
-
"type": {
|
|
51361
|
-
"text": "EventConstructor"
|
|
51362
|
-
}
|
|
51363
|
-
},
|
|
51364
|
-
{
|
|
51365
|
-
"description": "(React: onScroll) Event that gets called when user scrolls inside of list.",
|
|
51366
|
-
"name": "scroll",
|
|
51367
|
-
"reactName": "onScroll"
|
|
51368
|
-
}
|
|
51369
|
-
],
|
|
51370
|
-
"attributes": [
|
|
51371
|
-
{
|
|
51372
|
-
"name": "virtualizerprops",
|
|
51373
|
-
"type": {
|
|
51374
|
-
"text": "VirtualizerProps"
|
|
51375
|
-
},
|
|
51376
|
-
"description": "Object that sets and updates the virtualizer with any relevant props.\nThere are two required object props in order to get virtualization to work properly.\ncount - The length of your list that you are virtualizing.\nAs your list grows/shrinks, this component must be updated with the appropriate value\n(Same with any other updated prop).\nestimateSize - A function that returns the estimated size of your items.\nIf your list is fixed, this will just be the size of your items.\nIf your list is dynamic, try to return approximate the size of each item.\n\nA full list of possible props can be in\n[Tanstack Virtualizer API Docs](https://tanstack.com/virtual/latest/docs/api/virtualizer)",
|
|
51377
|
-
"fieldName": "virtualizerProps"
|
|
51378
|
-
},
|
|
51379
|
-
{
|
|
51380
|
-
"name": "setlistdata",
|
|
51381
|
-
"type": {
|
|
51382
|
-
"text": "(({ virtualItems, measureElement, listStyle }: SetListDataProps) => void) | null"
|
|
51383
|
-
},
|
|
51384
|
-
"description": "Callback that gets envoked when updates to the virtualizer interally occur.\nThis must be implemented in such a way that this function will trigger update to parent.\n\nvirtualItems - Array that will be what the client displays on screen. Use this to render\na List of your choosing with these items nested inside as your ListItems.\nmeasureElement - Ref to pass to each ListItem rendered client side.\nEach ListItem should also be be passed key and a data-index (which can be found on the virtualItem).\nlistStyle - This should be passed as the style attribute to your List.",
|
|
51385
|
-
"default": "null",
|
|
51386
|
-
"fieldName": "setlistdata"
|
|
51387
|
-
}
|
|
51388
|
-
],
|
|
51389
|
-
"superclass": {
|
|
51390
|
-
"name": "Component",
|
|
51391
|
-
"module": "/src/models"
|
|
51392
|
-
},
|
|
51393
|
-
"tagName": "mdc-virtualizedlist",
|
|
51394
|
-
"jsDoc": "/**\n * `mdc-virtualizedlist` component for creating custom virtualized lists.\n * IMPORTANT: This component does not create it's own list/list items.\n * Use the setlistdata callback prop to update client state in order to\n * Pass list/listitems as a child of this component, which this will virtuailze\n * This implementation handles dynamic lists as well as fixed sized lists.\n * Please refer to [Tanstack Virtual Docs](https://tanstack.com/virtual/latest) for more in depth documentation.\n *\n * @tagname mdc-virtualizedlist\n *\n * @event scroll - (React: onScroll) Event that gets called when user scrolls inside of list.\n *\n * @slot - Client side List with nested list items.\n *\n * @csspart container - The container of the virtualized list.\n * @csspart scroll - The scrollable area of the virtualized list.\n */",
|
|
51395
|
-
"customElement": true
|
|
51396
|
-
}
|
|
51397
|
-
],
|
|
51398
|
-
"exports": [
|
|
51399
|
-
{
|
|
51400
|
-
"kind": "js",
|
|
51401
|
-
"name": "default",
|
|
51402
|
-
"declaration": {
|
|
51403
|
-
"name": "VirtualizedList",
|
|
51404
|
-
"module": "components/virtualizedlist/virtualizedlist.component.js"
|
|
51405
|
-
}
|
|
51406
|
-
}
|
|
51407
|
-
]
|
|
51408
|
-
},
|
|
51409
51409
|
{
|
|
51410
51410
|
"kind": "javascript-module",
|
|
51411
51411
|
"path": "utils/mixins/AutoFocusOnMountMixin.js",
|
package/dist/react/index.d.ts
CHANGED
|
@@ -83,5 +83,5 @@ export { default as Toast } from './toast';
|
|
|
83
83
|
export { default as Toggle } from './toggle';
|
|
84
84
|
export { default as ToggleTip } from './toggletip';
|
|
85
85
|
export { default as Tooltip } from './tooltip';
|
|
86
|
-
export { default as Typewriter } from './typewriter';
|
|
87
86
|
export { default as VirtualizedList } from './virtualizedlist';
|
|
87
|
+
export { default as Typewriter } from './typewriter';
|
package/dist/react/index.js
CHANGED
|
@@ -83,5 +83,5 @@ export { default as Toast } from './toast';
|
|
|
83
83
|
export { default as Toggle } from './toggle';
|
|
84
84
|
export { default as ToggleTip } from './toggletip';
|
|
85
85
|
export { default as Tooltip } from './tooltip';
|
|
86
|
-
export { default as Typewriter } from './typewriter';
|
|
87
86
|
export { default as VirtualizedList } from './virtualizedlist';
|
|
87
|
+
export { default as Typewriter } from './typewriter';
|