@genesislcap/foundation-zero 14.500.0 → 14.500.1-alpha-beb5193.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/custom-elements.json +406 -1
- package/dist/dts/base-components.d.ts +11 -0
- package/dist/dts/base-components.d.ts.map +1 -1
- package/dist/dts/index.d.ts +1 -0
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/pill/index.d.ts +4 -0
- package/dist/dts/pill/index.d.ts.map +1 -0
- package/dist/dts/pill/pill.d.ts +18 -0
- package/dist/dts/pill/pill.d.ts.map +1 -0
- package/dist/dts/pill/pill.styles.d.ts +3 -0
- package/dist/dts/pill/pill.styles.d.ts.map +1 -0
- package/dist/dts/pill/pill.template.d.ts +2 -0
- package/dist/dts/pill/pill.template.d.ts.map +1 -0
- package/dist/dts/react.d.ts +12 -0
- package/dist/esm/base-components.js +2 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/pill/index.js +3 -0
- package/dist/esm/pill/pill.js +10 -0
- package/dist/esm/pill/pill.styles.js +11 -0
- package/dist/esm/pill/pill.template.js +2 -0
- package/dist/react.cjs +24 -0
- package/dist/react.mjs +23 -0
- package/package.json +12 -12
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"type": {
|
|
13
13
|
"text": "object"
|
|
14
14
|
},
|
|
15
|
-
"default": "{\n zeroAccordion,\n zeroAccordionItem,\n zeroAiCriteriaSearch,\n zeroAiIndicator,\n zeroActionsMenu,\n zeroAnchor,\n zeroAnchoredRegion,\n zeroAvatar,\n zeroBadge,\n zeroBanner,\n zeroBreadcrumb,\n zeroBreadcrumbItem,\n zeroButton,\n zeroCalendar,\n zeroCard,\n zeroCategorizedMultiselect,\n zeroCheckbox,\n zeroCombobox,\n zeroConnectionIndicator,\n zeroDataGrid,\n zeroDatePicker,\n zeroDesignSystemProvider,\n zeroDialog,\n zeroDisclosure,\n zeroDivider,\n zeroDropdownMenu,\n zeroEnvironmentIndicator,\n zeroErrorBanner,\n zeroErrorBoundary,\n zeroErrorDialog,\n zeroFileReader,\n zeroFileUpload,\n zeroFilter,\n zeroFilterBar,\n zeroFlexLayout,\n zeroFlipper,\n zeroFlyout,\n zeroGridLayout,\n zeroGridLayoutItem,\n zeroHorizontalScroll,\n zeroIcon,\n zeroListbox,\n zeroListboxOption,\n zeroMenu,\n zeroMenuItem,\n zeroModal,\n zeroMultiselect,\n zeroNotificationListener,\n zeroNumberField,\n zeroOptgroup,\n zeroProgress,\n zeroProgressRing,\n zeroRadio,\n zeroRadioGroup,\n zeroSchedulerCronBuilder,\n zeroSearchBar,\n zeroSearchBarCombobox,\n zeroSegmentedControl,\n zeroSegmentedItem,\n zeroSelect,\n zeroScheduler,\n zeroSchedulerTimezone,\n zeroSkeleton,\n zeroSlider,\n zeroSliderLabel,\n zeroSnackbar,\n zeroStackingIcons,\n zeroStatusPill,\n zeroStepper,\n zeroStepperTab,\n zeroStepperTabPanel,\n zeroSwitch,\n zeroSystemHealthOverlay,\n zeroTab,\n zeroTabPanel,\n zeroTabs,\n zeroTextArea,\n zeroTextField,\n zeroToast,\n zeroToolbar,\n zeroTooltip,\n zeroTreeItem,\n zeroTreeView,\n zeroUrlInput,\n zeroSectionNavigator,\n register(container?: Container, ...rest: any[]) {\n if (!container) {\n // preserve backward compatibility with code that loops through\n // the values of this object and calls them as funcs with no args\n return;\n }\n\n for (const key in this) {\n if (key === 'register') {\n continue;\n }\n\n this[key]().register(container, ...rest);\n }\n },\n}"
|
|
15
|
+
"default": "{\n zeroAccordion,\n zeroAccordionItem,\n zeroAiCriteriaSearch,\n zeroAiIndicator,\n zeroActionsMenu,\n zeroAnchor,\n zeroAnchoredRegion,\n zeroAvatar,\n zeroBadge,\n zeroBanner,\n zeroBreadcrumb,\n zeroBreadcrumbItem,\n zeroButton,\n zeroCalendar,\n zeroCard,\n zeroCategorizedMultiselect,\n zeroCheckbox,\n zeroCombobox,\n zeroConnectionIndicator,\n zeroDataGrid,\n zeroDatePicker,\n zeroDesignSystemProvider,\n zeroDialog,\n zeroDisclosure,\n zeroDivider,\n zeroDropdownMenu,\n zeroEnvironmentIndicator,\n zeroErrorBanner,\n zeroErrorBoundary,\n zeroErrorDialog,\n zeroFileReader,\n zeroFileUpload,\n zeroFilter,\n zeroFilterBar,\n zeroFlexLayout,\n zeroFlipper,\n zeroFlyout,\n zeroGridLayout,\n zeroGridLayoutItem,\n zeroHorizontalScroll,\n zeroIcon,\n zeroListbox,\n zeroListboxOption,\n zeroMenu,\n zeroMenuItem,\n zeroModal,\n zeroMultiselect,\n zeroNotificationListener,\n zeroNumberField,\n zeroOptgroup,\n zeroPill,\n zeroProgress,\n zeroProgressRing,\n zeroRadio,\n zeroRadioGroup,\n zeroSchedulerCronBuilder,\n zeroSearchBar,\n zeroSearchBarCombobox,\n zeroSegmentedControl,\n zeroSegmentedItem,\n zeroSelect,\n zeroScheduler,\n zeroSchedulerTimezone,\n zeroSkeleton,\n zeroSlider,\n zeroSliderLabel,\n zeroSnackbar,\n zeroStackingIcons,\n zeroStatusPill,\n zeroStepper,\n zeroStepperTab,\n zeroStepperTabPanel,\n zeroSwitch,\n zeroSystemHealthOverlay,\n zeroTab,\n zeroTabPanel,\n zeroTabs,\n zeroTextArea,\n zeroTextField,\n zeroToast,\n zeroToolbar,\n zeroTooltip,\n zeroTreeItem,\n zeroTreeView,\n zeroUrlInput,\n zeroSectionNavigator,\n register(container?: Container, ...rest: any[]) {\n if (!container) {\n // preserve backward compatibility with code that loops through\n // the values of this object and calls them as funcs with no args\n return;\n }\n\n for (const key in this) {\n if (key === 'register') {\n continue;\n }\n\n this[key]().register(container, ...rest);\n }\n },\n}"
|
|
16
16
|
}
|
|
17
17
|
],
|
|
18
18
|
"exports": [
|
|
@@ -460,6 +460,14 @@
|
|
|
460
460
|
"package": "./overlays"
|
|
461
461
|
}
|
|
462
462
|
},
|
|
463
|
+
{
|
|
464
|
+
"kind": "js",
|
|
465
|
+
"name": "*",
|
|
466
|
+
"declaration": {
|
|
467
|
+
"name": "*",
|
|
468
|
+
"package": "./pill"
|
|
469
|
+
}
|
|
470
|
+
},
|
|
463
471
|
{
|
|
464
472
|
"kind": "js",
|
|
465
473
|
"name": "*",
|
|
@@ -28943,6 +28951,403 @@
|
|
|
28943
28951
|
}
|
|
28944
28952
|
]
|
|
28945
28953
|
},
|
|
28954
|
+
{
|
|
28955
|
+
"kind": "javascript-module",
|
|
28956
|
+
"path": "src/pill/index.ts",
|
|
28957
|
+
"declarations": [],
|
|
28958
|
+
"exports": [
|
|
28959
|
+
{
|
|
28960
|
+
"kind": "js",
|
|
28961
|
+
"name": "*",
|
|
28962
|
+
"declaration": {
|
|
28963
|
+
"name": "*",
|
|
28964
|
+
"package": "./pill"
|
|
28965
|
+
}
|
|
28966
|
+
},
|
|
28967
|
+
{
|
|
28968
|
+
"kind": "js",
|
|
28969
|
+
"name": "*",
|
|
28970
|
+
"declaration": {
|
|
28971
|
+
"name": "*",
|
|
28972
|
+
"package": "./pill.styles"
|
|
28973
|
+
}
|
|
28974
|
+
},
|
|
28975
|
+
{
|
|
28976
|
+
"kind": "js",
|
|
28977
|
+
"name": "*",
|
|
28978
|
+
"declaration": {
|
|
28979
|
+
"name": "*",
|
|
28980
|
+
"package": "./pill.template"
|
|
28981
|
+
}
|
|
28982
|
+
}
|
|
28983
|
+
]
|
|
28984
|
+
},
|
|
28985
|
+
{
|
|
28986
|
+
"kind": "javascript-module",
|
|
28987
|
+
"path": "src/pill/pill.styles.ts",
|
|
28988
|
+
"declarations": [
|
|
28989
|
+
{
|
|
28990
|
+
"kind": "variable",
|
|
28991
|
+
"name": "zeroPillStyles",
|
|
28992
|
+
"type": {
|
|
28993
|
+
"text": "ElementStyles"
|
|
28994
|
+
},
|
|
28995
|
+
"default": "css`\n ${foundationPillStyles}\n :host {\n --pill-fill: ${neutralFillRest};\n --pill-fill-hover: ${neutralFillHover};\n --pill-foreground: ${neutralForegroundRest};\n }\n`"
|
|
28996
|
+
}
|
|
28997
|
+
],
|
|
28998
|
+
"exports": [
|
|
28999
|
+
{
|
|
29000
|
+
"kind": "js",
|
|
29001
|
+
"name": "zeroPillStyles",
|
|
29002
|
+
"declaration": {
|
|
29003
|
+
"name": "zeroPillStyles",
|
|
29004
|
+
"module": "src/pill/pill.styles.ts"
|
|
29005
|
+
}
|
|
29006
|
+
}
|
|
29007
|
+
]
|
|
29008
|
+
},
|
|
29009
|
+
{
|
|
29010
|
+
"kind": "javascript-module",
|
|
29011
|
+
"path": "src/pill/pill.template.ts",
|
|
29012
|
+
"declarations": [
|
|
29013
|
+
{
|
|
29014
|
+
"kind": "variable",
|
|
29015
|
+
"name": "zeroPillTemplate",
|
|
29016
|
+
"default": "foundationPillTemplate"
|
|
29017
|
+
}
|
|
29018
|
+
],
|
|
29019
|
+
"exports": [
|
|
29020
|
+
{
|
|
29021
|
+
"kind": "js",
|
|
29022
|
+
"name": "zeroPillTemplate",
|
|
29023
|
+
"declaration": {
|
|
29024
|
+
"name": "zeroPillTemplate",
|
|
29025
|
+
"module": "src/pill/pill.template.ts"
|
|
29026
|
+
}
|
|
29027
|
+
}
|
|
29028
|
+
]
|
|
29029
|
+
},
|
|
29030
|
+
{
|
|
29031
|
+
"kind": "javascript-module",
|
|
29032
|
+
"path": "src/pill/pill.ts",
|
|
29033
|
+
"declarations": [
|
|
29034
|
+
{
|
|
29035
|
+
"kind": "class",
|
|
29036
|
+
"description": "",
|
|
29037
|
+
"name": "Pill",
|
|
29038
|
+
"superclass": {
|
|
29039
|
+
"name": "FoundationPill",
|
|
29040
|
+
"package": "@genesislcap/foundation-ui"
|
|
29041
|
+
},
|
|
29042
|
+
"tagName": "%%prefix%%-pill",
|
|
29043
|
+
"customElement": true,
|
|
29044
|
+
"attributes": [
|
|
29045
|
+
{
|
|
29046
|
+
"name": "label",
|
|
29047
|
+
"type": {
|
|
29048
|
+
"text": "string"
|
|
29049
|
+
},
|
|
29050
|
+
"attribute": "label",
|
|
29051
|
+
"fieldName": "label",
|
|
29052
|
+
"description": "the name of the thing this pill represents, e.g. a filter field name",
|
|
29053
|
+
"inheritedFrom": {
|
|
29054
|
+
"name": "Pill",
|
|
29055
|
+
"module": "src/pill/pill.ts"
|
|
29056
|
+
}
|
|
29057
|
+
},
|
|
29058
|
+
{
|
|
29059
|
+
"name": "value",
|
|
29060
|
+
"type": {
|
|
29061
|
+
"text": "string"
|
|
29062
|
+
},
|
|
29063
|
+
"attribute": "value",
|
|
29064
|
+
"fieldName": "value",
|
|
29065
|
+
"description": "the current value shown alongside the label, e.g. \"Cpty Desk: EQUITIES\"",
|
|
29066
|
+
"inheritedFrom": {
|
|
29067
|
+
"name": "Pill",
|
|
29068
|
+
"module": "src/pill/pill.ts"
|
|
29069
|
+
}
|
|
29070
|
+
},
|
|
29071
|
+
{
|
|
29072
|
+
"name": "removable",
|
|
29073
|
+
"type": {
|
|
29074
|
+
"text": "boolean"
|
|
29075
|
+
},
|
|
29076
|
+
"default": "true",
|
|
29077
|
+
"fieldName": "removable",
|
|
29078
|
+
"description": "whether the \"x\" remove control is shown",
|
|
29079
|
+
"inheritedFrom": {
|
|
29080
|
+
"name": "Pill",
|
|
29081
|
+
"module": "src/pill/pill.ts"
|
|
29082
|
+
}
|
|
29083
|
+
},
|
|
29084
|
+
{
|
|
29085
|
+
"name": "disabled",
|
|
29086
|
+
"type": {
|
|
29087
|
+
"text": "boolean"
|
|
29088
|
+
},
|
|
29089
|
+
"default": "false",
|
|
29090
|
+
"fieldName": "disabled",
|
|
29091
|
+
"description": "disables both the pill body and the remove control",
|
|
29092
|
+
"inheritedFrom": {
|
|
29093
|
+
"name": "Pill",
|
|
29094
|
+
"module": "src/pill/pill.ts"
|
|
29095
|
+
}
|
|
29096
|
+
},
|
|
29097
|
+
{
|
|
29098
|
+
"type": {
|
|
29099
|
+
"text": "boolean"
|
|
29100
|
+
},
|
|
29101
|
+
"default": "true",
|
|
29102
|
+
"attribute": "removable",
|
|
29103
|
+
"fieldName": "removable",
|
|
29104
|
+
"inheritedFrom": {
|
|
29105
|
+
"name": "Pill",
|
|
29106
|
+
"module": "src/pill/pill.ts"
|
|
29107
|
+
}
|
|
29108
|
+
}
|
|
29109
|
+
],
|
|
29110
|
+
"members": [
|
|
29111
|
+
{
|
|
29112
|
+
"kind": "field",
|
|
29113
|
+
"name": "label",
|
|
29114
|
+
"type": {
|
|
29115
|
+
"text": "string"
|
|
29116
|
+
},
|
|
29117
|
+
"attribute": "label",
|
|
29118
|
+
"inheritedFrom": {
|
|
29119
|
+
"name": "Pill",
|
|
29120
|
+
"module": "src/pill/pill.ts"
|
|
29121
|
+
}
|
|
29122
|
+
},
|
|
29123
|
+
{
|
|
29124
|
+
"kind": "field",
|
|
29125
|
+
"name": "value",
|
|
29126
|
+
"type": {
|
|
29127
|
+
"text": "string"
|
|
29128
|
+
},
|
|
29129
|
+
"attribute": "value",
|
|
29130
|
+
"inheritedFrom": {
|
|
29131
|
+
"name": "Pill",
|
|
29132
|
+
"module": "src/pill/pill.ts"
|
|
29133
|
+
}
|
|
29134
|
+
},
|
|
29135
|
+
{
|
|
29136
|
+
"kind": "field",
|
|
29137
|
+
"name": "removable",
|
|
29138
|
+
"type": {
|
|
29139
|
+
"text": "boolean"
|
|
29140
|
+
},
|
|
29141
|
+
"default": "true",
|
|
29142
|
+
"attribute": "removable",
|
|
29143
|
+
"inheritedFrom": {
|
|
29144
|
+
"name": "Pill",
|
|
29145
|
+
"module": "src/pill/pill.ts"
|
|
29146
|
+
}
|
|
29147
|
+
},
|
|
29148
|
+
{
|
|
29149
|
+
"kind": "field",
|
|
29150
|
+
"name": "disabled",
|
|
29151
|
+
"type": {
|
|
29152
|
+
"text": "boolean"
|
|
29153
|
+
},
|
|
29154
|
+
"default": "false",
|
|
29155
|
+
"attribute": "disabled",
|
|
29156
|
+
"inheritedFrom": {
|
|
29157
|
+
"name": "Pill",
|
|
29158
|
+
"module": "src/pill/pill.ts"
|
|
29159
|
+
}
|
|
29160
|
+
},
|
|
29161
|
+
{
|
|
29162
|
+
"kind": "method",
|
|
29163
|
+
"name": "handleBodyClick",
|
|
29164
|
+
"return": {
|
|
29165
|
+
"type": {
|
|
29166
|
+
"text": "void"
|
|
29167
|
+
}
|
|
29168
|
+
},
|
|
29169
|
+
"inheritedFrom": {
|
|
29170
|
+
"name": "Pill",
|
|
29171
|
+
"module": "src/pill/pill.ts"
|
|
29172
|
+
}
|
|
29173
|
+
},
|
|
29174
|
+
{
|
|
29175
|
+
"kind": "method",
|
|
29176
|
+
"name": "handleRemoveClick",
|
|
29177
|
+
"return": {
|
|
29178
|
+
"type": {
|
|
29179
|
+
"text": "void"
|
|
29180
|
+
}
|
|
29181
|
+
},
|
|
29182
|
+
"parameters": [
|
|
29183
|
+
{
|
|
29184
|
+
"name": "event",
|
|
29185
|
+
"optional": true,
|
|
29186
|
+
"type": {
|
|
29187
|
+
"text": "Event"
|
|
29188
|
+
}
|
|
29189
|
+
}
|
|
29190
|
+
],
|
|
29191
|
+
"inheritedFrom": {
|
|
29192
|
+
"name": "Pill",
|
|
29193
|
+
"module": "src/pill/pill.ts"
|
|
29194
|
+
}
|
|
29195
|
+
},
|
|
29196
|
+
{
|
|
29197
|
+
"kind": "field",
|
|
29198
|
+
"name": "_presentation",
|
|
29199
|
+
"type": {
|
|
29200
|
+
"text": "ComponentPresentation | null | undefined"
|
|
29201
|
+
},
|
|
29202
|
+
"privacy": "private",
|
|
29203
|
+
"default": "void 0",
|
|
29204
|
+
"inheritedFrom": {
|
|
29205
|
+
"name": "FoundationElement",
|
|
29206
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
29207
|
+
}
|
|
29208
|
+
},
|
|
29209
|
+
{
|
|
29210
|
+
"kind": "field",
|
|
29211
|
+
"name": "$presentation",
|
|
29212
|
+
"type": {
|
|
29213
|
+
"text": "ComponentPresentation | null"
|
|
29214
|
+
},
|
|
29215
|
+
"privacy": "public",
|
|
29216
|
+
"description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
|
|
29217
|
+
"inheritedFrom": {
|
|
29218
|
+
"name": "FoundationElement",
|
|
29219
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
29220
|
+
}
|
|
29221
|
+
},
|
|
29222
|
+
{
|
|
29223
|
+
"kind": "field",
|
|
29224
|
+
"name": "template",
|
|
29225
|
+
"type": {
|
|
29226
|
+
"text": "ElementViewTemplate | void | null"
|
|
29227
|
+
},
|
|
29228
|
+
"privacy": "public",
|
|
29229
|
+
"description": "Sets the template of the element instance. When undefined,\nthe element will attempt to resolve the template from\nthe associated presentation or custom element definition.",
|
|
29230
|
+
"inheritedFrom": {
|
|
29231
|
+
"name": "FoundationElement",
|
|
29232
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
29233
|
+
}
|
|
29234
|
+
},
|
|
29235
|
+
{
|
|
29236
|
+
"kind": "method",
|
|
29237
|
+
"name": "templateChanged",
|
|
29238
|
+
"privacy": "protected",
|
|
29239
|
+
"return": {
|
|
29240
|
+
"type": {
|
|
29241
|
+
"text": "void"
|
|
29242
|
+
}
|
|
29243
|
+
},
|
|
29244
|
+
"inheritedFrom": {
|
|
29245
|
+
"name": "FoundationElement",
|
|
29246
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
29247
|
+
}
|
|
29248
|
+
},
|
|
29249
|
+
{
|
|
29250
|
+
"kind": "field",
|
|
29251
|
+
"name": "styles",
|
|
29252
|
+
"type": {
|
|
29253
|
+
"text": "ElementStyles | void | null"
|
|
29254
|
+
},
|
|
29255
|
+
"privacy": "public",
|
|
29256
|
+
"description": "Sets the default styles for the element instance. When undefined,\nthe element will attempt to resolve default styles from\nthe associated presentation or custom element definition.",
|
|
29257
|
+
"inheritedFrom": {
|
|
29258
|
+
"name": "FoundationElement",
|
|
29259
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
29260
|
+
}
|
|
29261
|
+
},
|
|
29262
|
+
{
|
|
29263
|
+
"kind": "method",
|
|
29264
|
+
"name": "stylesChanged",
|
|
29265
|
+
"privacy": "protected",
|
|
29266
|
+
"return": {
|
|
29267
|
+
"type": {
|
|
29268
|
+
"text": "void"
|
|
29269
|
+
}
|
|
29270
|
+
},
|
|
29271
|
+
"inheritedFrom": {
|
|
29272
|
+
"name": "FoundationElement",
|
|
29273
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
29274
|
+
}
|
|
29275
|
+
},
|
|
29276
|
+
{
|
|
29277
|
+
"kind": "method",
|
|
29278
|
+
"name": "compose",
|
|
29279
|
+
"privacy": "public",
|
|
29280
|
+
"static": true,
|
|
29281
|
+
"return": {
|
|
29282
|
+
"type": {
|
|
29283
|
+
"text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
|
|
29284
|
+
}
|
|
29285
|
+
},
|
|
29286
|
+
"parameters": [
|
|
29287
|
+
{
|
|
29288
|
+
"name": "this",
|
|
29289
|
+
"type": {
|
|
29290
|
+
"text": "K"
|
|
29291
|
+
}
|
|
29292
|
+
},
|
|
29293
|
+
{
|
|
29294
|
+
"name": "elementDefinition",
|
|
29295
|
+
"type": {
|
|
29296
|
+
"text": "T"
|
|
29297
|
+
},
|
|
29298
|
+
"description": "The definition of the element to create the registry\nfunction for."
|
|
29299
|
+
}
|
|
29300
|
+
],
|
|
29301
|
+
"description": "Defines an element registry function with a set of element definition defaults.",
|
|
29302
|
+
"inheritedFrom": {
|
|
29303
|
+
"name": "FoundationElement",
|
|
29304
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
29305
|
+
}
|
|
29306
|
+
}
|
|
29307
|
+
],
|
|
29308
|
+
"events": [
|
|
29309
|
+
{
|
|
29310
|
+
"description": "Fired when the remove control is activated.",
|
|
29311
|
+
"name": "remove",
|
|
29312
|
+
"inheritedFrom": {
|
|
29313
|
+
"name": "Pill",
|
|
29314
|
+
"module": "src/pill/pill.ts"
|
|
29315
|
+
}
|
|
29316
|
+
},
|
|
29317
|
+
{
|
|
29318
|
+
"description": "Fired when the pill body (excluding the remove control) is activated.",
|
|
29319
|
+
"name": "pill-click",
|
|
29320
|
+
"inheritedFrom": {
|
|
29321
|
+
"name": "Pill",
|
|
29322
|
+
"module": "src/pill/pill.ts"
|
|
29323
|
+
}
|
|
29324
|
+
}
|
|
29325
|
+
]
|
|
29326
|
+
},
|
|
29327
|
+
{
|
|
29328
|
+
"kind": "variable",
|
|
29329
|
+
"name": "zeroPill"
|
|
29330
|
+
}
|
|
29331
|
+
],
|
|
29332
|
+
"exports": [
|
|
29333
|
+
{
|
|
29334
|
+
"kind": "js",
|
|
29335
|
+
"name": "Pill",
|
|
29336
|
+
"declaration": {
|
|
29337
|
+
"name": "Pill",
|
|
29338
|
+
"module": "src/pill/pill.ts"
|
|
29339
|
+
}
|
|
29340
|
+
},
|
|
29341
|
+
{
|
|
29342
|
+
"kind": "js",
|
|
29343
|
+
"name": "zeroPill",
|
|
29344
|
+
"declaration": {
|
|
29345
|
+
"name": "zeroPill",
|
|
29346
|
+
"module": "src/pill/pill.ts"
|
|
29347
|
+
}
|
|
29348
|
+
}
|
|
29349
|
+
]
|
|
29350
|
+
},
|
|
28946
29351
|
{
|
|
28947
29352
|
"kind": "javascript-module",
|
|
28948
29353
|
"path": "src/progress/index.ts",
|
|
@@ -216,6 +216,17 @@ export declare const baseComponents: {
|
|
|
216
216
|
}, typeof import("./notification-listener").NotificationListener>;
|
|
217
217
|
zeroNumberField: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<import("@microsoft/fast-foundation").FoundationElementDefinition>) => import("@microsoft/fast-foundation").FoundationElementRegistry<import("@microsoft/fast-foundation").FoundationElementDefinition, typeof import("./number-field").NumberField>;
|
|
218
218
|
zeroOptgroup: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<import("@microsoft/fast-foundation").FoundationElementDefinition>) => import("@microsoft/fast-foundation").FoundationElementRegistry<import("@microsoft/fast-foundation").FoundationElementDefinition, typeof import("./optgroup").Optgroup>;
|
|
219
|
+
zeroPill: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
|
|
220
|
+
baseName: string;
|
|
221
|
+
template: import("@microsoft/fast-element").ViewTemplate<import("@genesislcap/foundation-ui").Pill, any>;
|
|
222
|
+
styles: import("@microsoft/fast-element").ElementStyles;
|
|
223
|
+
shadowOptions: ShadowRootInit;
|
|
224
|
+
}>) => import("@microsoft/fast-foundation").FoundationElementRegistry<{
|
|
225
|
+
baseName: string;
|
|
226
|
+
template: import("@microsoft/fast-element").ViewTemplate<import("@genesislcap/foundation-ui").Pill, any>;
|
|
227
|
+
styles: import("@microsoft/fast-element").ElementStyles;
|
|
228
|
+
shadowOptions: ShadowRootInit;
|
|
229
|
+
}, typeof import("./pill").Pill>;
|
|
219
230
|
zeroProgress: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<import("@microsoft/fast-foundation").FoundationElementDefinition>) => import("@microsoft/fast-foundation").FoundationElementRegistry<import("@microsoft/fast-foundation").FoundationElementDefinition, typeof import("./progress").Progress>;
|
|
220
231
|
zeroProgressRing: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<import("@microsoft/fast-foundation").ProgressRingOptions>) => import("@microsoft/fast-foundation").FoundationElementRegistry<import("@microsoft/fast-foundation").ProgressRingOptions, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
|
221
232
|
zeroRadio: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<import("@microsoft/fast-foundation").FoundationElementDefinition>) => import("@microsoft/fast-foundation").FoundationElementRegistry<import("@microsoft/fast-foundation").FoundationElementDefinition, typeof import("./radio").Radio>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-components.d.ts","sourceRoot":"","sources":["../../src/base-components.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"base-components.d.ts","sourceRoot":"","sources":["../../src/base-components.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAuF5D,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAuFJ,SAAS,WAAW,GAAG,EAAE;CAe/C,CAAC"}
|
package/dist/dts/index.d.ts
CHANGED
package/dist/dts/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9D,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,CAAC;AAE/C,eAAO,MAAM,wBAAwB,yDAAuD,CAAC;AAE7F,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;A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ACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/pill/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Pill as FoundationPill } from '@genesislcap/foundation-ui';
|
|
2
|
+
/**
|
|
3
|
+
* @tagname %%prefix%%-pill
|
|
4
|
+
*/
|
|
5
|
+
export declare class Pill extends FoundationPill {
|
|
6
|
+
}
|
|
7
|
+
export declare const zeroPill: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
|
|
8
|
+
baseName: string;
|
|
9
|
+
template: import("@microsoft/fast-element").ViewTemplate<FoundationPill, any>;
|
|
10
|
+
styles: import("@microsoft/fast-element").ElementStyles;
|
|
11
|
+
shadowOptions: ShadowRootInit;
|
|
12
|
+
}>) => import("@microsoft/fast-foundation").FoundationElementRegistry<{
|
|
13
|
+
baseName: string;
|
|
14
|
+
template: import("@microsoft/fast-element").ViewTemplate<FoundationPill, any>;
|
|
15
|
+
styles: import("@microsoft/fast-element").ElementStyles;
|
|
16
|
+
shadowOptions: ShadowRootInit;
|
|
17
|
+
}, typeof Pill>;
|
|
18
|
+
//# sourceMappingURL=pill.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pill.d.ts","sourceRoot":"","sources":["../../../src/pill/pill.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,IAAI,IAAI,cAAc,EACvB,MAAM,4BAA4B,CAAC;AAIpC;;GAEG;AACH,qBAAa,IAAK,SAAQ,cAAc;CAAG;AAE3C,eAAO,MAAM,QAAQ;;;;;;;;;;eAMnB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pill.styles.d.ts","sourceRoot":"","sources":["../../../src/pill/pill.styles.ts"],"names":[],"mappings":"AAMA,OAAO,EAAO,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE7D,eAAO,MAAM,cAAc,EAAE,aAO5B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pill.template.d.ts","sourceRoot":"","sources":["../../../src/pill/pill.template.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,gGAAyB,CAAC"}
|
package/dist/dts/react.d.ts
CHANGED
|
@@ -56,6 +56,7 @@ import type { Multiselect as MultiselectWC } from './multiselect/multiselect';
|
|
|
56
56
|
import type { NotificationListener as NotificationListenerWC } from './notification-listener/notification-listener';
|
|
57
57
|
import type { NumberField as NumberFieldWC } from './number-field/number-field';
|
|
58
58
|
import type { Optgroup as OptgroupWC } from './optgroup/optgroup';
|
|
59
|
+
import type { Pill as PillWC } from './pill/pill';
|
|
59
60
|
import type { ProgressRing as ProgressRingWC } from './progress-ring/progress-ring';
|
|
60
61
|
import type { Progress as ProgressWC } from './progress/progress';
|
|
61
62
|
import type { RadioGroup as RadioGroupWC } from './radio-group/radio-group';
|
|
@@ -650,6 +651,17 @@ export declare const Optgroup: React.ForwardRefExoticComponent<
|
|
|
650
651
|
>;
|
|
651
652
|
export type OptgroupRef = OptgroupWC;
|
|
652
653
|
|
|
654
|
+
export declare const Pill: React.ForwardRefExoticComponent<
|
|
655
|
+
React.PropsWithChildren<
|
|
656
|
+
Omit<PublicOf<PillWC>, 'children' | 'style'> &
|
|
657
|
+
HTMLWCProps & {
|
|
658
|
+
onRemove?: (event: CustomEvent<unknown>) => void;
|
|
659
|
+
onPillClick?: (event: CustomEvent<unknown>) => void;
|
|
660
|
+
}
|
|
661
|
+
> & React.RefAttributes<PillWC>
|
|
662
|
+
>;
|
|
663
|
+
export type PillRef = PillWC;
|
|
664
|
+
|
|
653
665
|
export declare const Progress: React.ForwardRefExoticComponent<
|
|
654
666
|
React.PropsWithChildren<
|
|
655
667
|
Omit<PublicOf<ProgressWC>, 'children' | 'style'> &
|
|
@@ -50,6 +50,7 @@ import { zeroNotificationListener } from './notification-listener';
|
|
|
50
50
|
import { zeroNumberField } from './number-field';
|
|
51
51
|
import { zeroOptgroup } from './optgroup';
|
|
52
52
|
import { zeroSystemHealthOverlay } from './overlays';
|
|
53
|
+
import { zeroPill } from './pill';
|
|
53
54
|
import { zeroProgress } from './progress';
|
|
54
55
|
import { zeroProgressRing } from './progress-ring';
|
|
55
56
|
import { zeroRadio } from './radio';
|
|
@@ -134,6 +135,7 @@ export const baseComponents = {
|
|
|
134
135
|
zeroNotificationListener,
|
|
135
136
|
zeroNumberField,
|
|
136
137
|
zeroOptgroup,
|
|
138
|
+
zeroPill,
|
|
137
139
|
zeroProgress,
|
|
138
140
|
zeroProgressRing,
|
|
139
141
|
zeroRadio,
|
package/dist/esm/index.js
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { defaultPillConfig, foundationPillShadowOptions, Pill as FoundationPill, } from '@genesislcap/foundation-ui';
|
|
2
|
+
import { zeroPillStyles as styles } from './pill.styles';
|
|
3
|
+
import { zeroPillTemplate as template } from './pill.template';
|
|
4
|
+
/**
|
|
5
|
+
* @tagname %%prefix%%-pill
|
|
6
|
+
*/
|
|
7
|
+
export class Pill extends FoundationPill {
|
|
8
|
+
}
|
|
9
|
+
export const zeroPill = Pill.compose(Object.assign({ baseName: 'pill', template,
|
|
10
|
+
styles, shadowOptions: foundationPillShadowOptions }, defaultPillConfig));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { pillStyles as foundationPillStyles } from '@genesislcap/foundation-ui';
|
|
2
|
+
import { neutralFillHover, neutralFillRest, neutralForegroundRest, } from '@microsoft/fast-components';
|
|
3
|
+
import { css } from '@microsoft/fast-element';
|
|
4
|
+
export const zeroPillStyles = css `
|
|
5
|
+
${foundationPillStyles}
|
|
6
|
+
:host {
|
|
7
|
+
--pill-fill: ${neutralFillRest};
|
|
8
|
+
--pill-fill-hover: ${neutralFillHover};
|
|
9
|
+
--pill-foreground: ${neutralForegroundRest};
|
|
10
|
+
}
|
|
11
|
+
`;
|
package/dist/react.cjs
CHANGED
|
@@ -58,6 +58,7 @@ const { Multiselect: MultiselectWC } = require('./esm/multiselect/multiselect.js
|
|
|
58
58
|
const { NotificationListener: NotificationListenerWC } = require('./esm/notification-listener/notification-listener.js');
|
|
59
59
|
const { NumberField: NumberFieldWC } = require('./esm/number-field/number-field.js');
|
|
60
60
|
const { Optgroup: OptgroupWC } = require('./esm/optgroup/optgroup.js');
|
|
61
|
+
const { Pill: PillWC } = require('./esm/pill/pill.js');
|
|
61
62
|
const { ProgressRing: ProgressRingWC } = require('./esm/progress-ring/progress-ring.js');
|
|
62
63
|
const { Progress: ProgressWC } = require('./esm/progress/progress.js');
|
|
63
64
|
const { RadioGroup: RadioGroupWC } = require('./esm/radio-group/radio-group.js');
|
|
@@ -708,6 +709,28 @@ const Optgroup = React.forwardRef(function Optgroup(props, ref) {
|
|
|
708
709
|
return React.createElement(customElements.getName(OptgroupWC) ?? '%%prefix%%-optgroup', { ...rest, ref }, children);
|
|
709
710
|
});
|
|
710
711
|
|
|
712
|
+
const Pill = React.forwardRef(function Pill(props, ref) {
|
|
713
|
+
const { onRemove, onPillClick, children, ...rest } = props;
|
|
714
|
+
const _innerRef = React.useRef(null);
|
|
715
|
+
const _onRemoveRef = React.useRef(onRemove);
|
|
716
|
+
_onRemoveRef.current = onRemove;
|
|
717
|
+
const _onPillClickRef = React.useRef(onPillClick);
|
|
718
|
+
_onPillClickRef.current = onPillClick;
|
|
719
|
+
React.useLayoutEffect(() => {
|
|
720
|
+
const el = _innerRef.current;
|
|
721
|
+
if (!el) return;
|
|
722
|
+
const _onRemoveFn = (e) => _onRemoveRef.current?.(e);
|
|
723
|
+
el.addEventListener('remove', _onRemoveFn);
|
|
724
|
+
const _onPillClickFn = (e) => _onPillClickRef.current?.(e);
|
|
725
|
+
el.addEventListener('pill-click', _onPillClickFn);
|
|
726
|
+
return () => {
|
|
727
|
+
el.removeEventListener('remove', _onRemoveFn);
|
|
728
|
+
el.removeEventListener('pill-click', _onPillClickFn);
|
|
729
|
+
};
|
|
730
|
+
}, []);
|
|
731
|
+
return React.createElement(customElements.getName(PillWC) ?? '%%prefix%%-pill', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
732
|
+
});
|
|
733
|
+
|
|
711
734
|
const Progress = React.forwardRef(function Progress(props, ref) {
|
|
712
735
|
const { children, ...rest } = props;
|
|
713
736
|
return React.createElement(customElements.getName(ProgressWC) ?? '%%prefix%%-progress', { ...rest, ref }, children);
|
|
@@ -1076,6 +1099,7 @@ module.exports = {
|
|
|
1076
1099
|
NotificationListener,
|
|
1077
1100
|
NumberField,
|
|
1078
1101
|
Optgroup,
|
|
1102
|
+
Pill,
|
|
1079
1103
|
Progress,
|
|
1080
1104
|
ProgressRing,
|
|
1081
1105
|
Radio,
|
package/dist/react.mjs
CHANGED
|
@@ -56,6 +56,7 @@ import { Multiselect as MultiselectWC } from './esm/multiselect/multiselect.js';
|
|
|
56
56
|
import { NotificationListener as NotificationListenerWC } from './esm/notification-listener/notification-listener.js';
|
|
57
57
|
import { NumberField as NumberFieldWC } from './esm/number-field/number-field.js';
|
|
58
58
|
import { Optgroup as OptgroupWC } from './esm/optgroup/optgroup.js';
|
|
59
|
+
import { Pill as PillWC } from './esm/pill/pill.js';
|
|
59
60
|
import { ProgressRing as ProgressRingWC } from './esm/progress-ring/progress-ring.js';
|
|
60
61
|
import { Progress as ProgressWC } from './esm/progress/progress.js';
|
|
61
62
|
import { RadioGroup as RadioGroupWC } from './esm/radio-group/radio-group.js';
|
|
@@ -706,6 +707,28 @@ export const Optgroup = React.forwardRef(function Optgroup(props, ref) {
|
|
|
706
707
|
return React.createElement(customElements.getName(OptgroupWC) ?? '%%prefix%%-optgroup', { ...rest, ref }, children);
|
|
707
708
|
});
|
|
708
709
|
|
|
710
|
+
export const Pill = React.forwardRef(function Pill(props, ref) {
|
|
711
|
+
const { onRemove, onPillClick, children, ...rest } = props;
|
|
712
|
+
const _innerRef = React.useRef(null);
|
|
713
|
+
const _onRemoveRef = React.useRef(onRemove);
|
|
714
|
+
_onRemoveRef.current = onRemove;
|
|
715
|
+
const _onPillClickRef = React.useRef(onPillClick);
|
|
716
|
+
_onPillClickRef.current = onPillClick;
|
|
717
|
+
React.useLayoutEffect(() => {
|
|
718
|
+
const el = _innerRef.current;
|
|
719
|
+
if (!el) return;
|
|
720
|
+
const _onRemoveFn = (e) => _onRemoveRef.current?.(e);
|
|
721
|
+
el.addEventListener('remove', _onRemoveFn);
|
|
722
|
+
const _onPillClickFn = (e) => _onPillClickRef.current?.(e);
|
|
723
|
+
el.addEventListener('pill-click', _onPillClickFn);
|
|
724
|
+
return () => {
|
|
725
|
+
el.removeEventListener('remove', _onRemoveFn);
|
|
726
|
+
el.removeEventListener('pill-click', _onPillClickFn);
|
|
727
|
+
};
|
|
728
|
+
}, []);
|
|
729
|
+
return React.createElement(customElements.getName(PillWC) ?? '%%prefix%%-pill', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
730
|
+
});
|
|
731
|
+
|
|
709
732
|
export const Progress = React.forwardRef(function Progress(props, ref) {
|
|
710
733
|
const { children, ...rest } = props;
|
|
711
734
|
return React.createElement(customElements.getName(ProgressWC) ?? '%%prefix%%-progress', { ...rest, ref }, children);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-zero",
|
|
3
3
|
"description": "Genesis Foundation Zero Design System",
|
|
4
|
-
"version": "14.500.0",
|
|
4
|
+
"version": "14.500.1-alpha-beb5193.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -73,18 +73,18 @@
|
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@genesiscommunitysuccess/analyzer-import-alias-plugin": "^5.0.3",
|
|
76
|
-
"@genesislcap/genx": "14.500.0",
|
|
77
|
-
"@genesislcap/rollup-builder": "14.500.0",
|
|
78
|
-
"@genesislcap/ts-builder": "14.500.0",
|
|
79
|
-
"@genesislcap/uvu-playwright-builder": "14.500.0",
|
|
80
|
-
"@genesislcap/vite-builder": "14.500.0",
|
|
81
|
-
"@genesislcap/webpack-builder": "14.500.0"
|
|
76
|
+
"@genesislcap/genx": "14.500.1-alpha-beb5193.0",
|
|
77
|
+
"@genesislcap/rollup-builder": "14.500.1-alpha-beb5193.0",
|
|
78
|
+
"@genesislcap/ts-builder": "14.500.1-alpha-beb5193.0",
|
|
79
|
+
"@genesislcap/uvu-playwright-builder": "14.500.1-alpha-beb5193.0",
|
|
80
|
+
"@genesislcap/vite-builder": "14.500.1-alpha-beb5193.0",
|
|
81
|
+
"@genesislcap/webpack-builder": "14.500.1-alpha-beb5193.0"
|
|
82
82
|
},
|
|
83
83
|
"dependencies": {
|
|
84
|
-
"@genesislcap/foundation-comms": "14.500.0",
|
|
85
|
-
"@genesislcap/foundation-logger": "14.500.0",
|
|
86
|
-
"@genesislcap/foundation-ui": "14.500.0",
|
|
87
|
-
"@genesislcap/foundation-utils": "14.500.0",
|
|
84
|
+
"@genesislcap/foundation-comms": "14.500.1-alpha-beb5193.0",
|
|
85
|
+
"@genesislcap/foundation-logger": "14.500.1-alpha-beb5193.0",
|
|
86
|
+
"@genesislcap/foundation-ui": "14.500.1-alpha-beb5193.0",
|
|
87
|
+
"@genesislcap/foundation-utils": "14.500.1-alpha-beb5193.0",
|
|
88
88
|
"@microsoft/fast-colors": "5.3.1",
|
|
89
89
|
"@microsoft/fast-components": "2.30.6",
|
|
90
90
|
"@microsoft/fast-element": "1.14.0",
|
|
@@ -111,5 +111,5 @@
|
|
|
111
111
|
"require": "./dist/react.cjs"
|
|
112
112
|
}
|
|
113
113
|
},
|
|
114
|
-
"gitHead": "
|
|
114
|
+
"gitHead": "f65527ba44a5821be4fdc88f6e4bdf1876b8ffb6"
|
|
115
115
|
}
|