@genesislcap/rapid-design-system 14.500.0 → 14.501.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 designSystemProvider,\n rapidAccordion,\n rapidAccordionItem,\n rapidAiCriteriaSearch,\n rapidAiIndicator,\n rapidActionsMenu,\n rapidAnchor,\n rapidSectionNavigator,\n rapidAnchoredRegion,\n rapidAvatar,\n rapidBadge,\n rapidBanner,\n rapidBreadcrumb,\n rapidBreadcrumbItem,\n rapidButton,\n rapidCalendar,\n rapidCard,\n rapidCategorizedMultiselect,\n rapidCheckbox,\n rapidCombobox,\n rapidConnectionIndicator,\n rapidDataGrid,\n rapidDataGridCell,\n rapidDataGridRow,\n rapidDatePicker,\n rapidDialog,\n rapidDisclosure,\n rapidDivider,\n rapidDropdownMenu,\n rapidEnvironmentIndicator,\n rapidErrorBoundary,\n rapidFileReader,\n rapidFileUpload,\n rapidFilter,\n rapidFilterBar,\n rapidFlexLayout,\n rapidFlipper,\n rapidFlyout,\n rapidGridLayout,\n rapidGridLayoutItem,\n rapidHorizontalScroll,\n rapidIcon,\n rapidListbox,\n rapidListboxOption,\n rapidMenu,\n rapidMenuItem,\n rapidModal,\n rapidMultiselect,\n rapidNotificationListener,\n rapidNumberField,\n rapidOptgroup,\n rapidProgress,\n rapidProgressRing,\n rapidRadio,\n rapidRadioGroup,\n rapidScheduler,\n rapidSchedulerCronBuilder,\n rapidSchedulerTimezone,\n rapidSearchBar,\n rapidSearchBarCombobox,\n rapidSegmentedControl,\n rapidSegmentedItem,\n rapidSelect,\n rapidSkeleton,\n rapidSlider,\n rapidSliderLabel,\n rapidSnackbar,\n rapidStackingIcons,\n rapidStatusPill,\n rapidStepper,\n rapidStepperTab,\n rapidStepperTabPanel,\n rapidSwitch,\n rapidSystemHealthOverlay,\n rapidTab,\n rapidTabPanel,\n rapidTabs,\n rapidTextArea,\n rapidTextField,\n rapidToast,\n rapidToolbar,\n rapidTooltip,\n rapidTreeItem,\n rapidTreeView,\n rapidUrlInput,\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 designSystemProvider,\n rapidAccordion,\n rapidAccordionItem,\n rapidAiCriteriaSearch,\n rapidAiIndicator,\n rapidActionsMenu,\n rapidAnchor,\n rapidSectionNavigator,\n rapidAnchoredRegion,\n rapidAvatar,\n rapidBadge,\n rapidBanner,\n rapidBreadcrumb,\n rapidBreadcrumbItem,\n rapidButton,\n rapidCalendar,\n rapidCard,\n rapidCategorizedMultiselect,\n rapidCheckbox,\n rapidCombobox,\n rapidConnectionIndicator,\n rapidDataGrid,\n rapidDataGridCell,\n rapidDataGridRow,\n rapidDatePicker,\n rapidDialog,\n rapidDisclosure,\n rapidDivider,\n rapidDropdownMenu,\n rapidEnvironmentIndicator,\n rapidErrorBoundary,\n rapidFileReader,\n rapidFileUpload,\n rapidFilter,\n rapidFilterBar,\n rapidFlexLayout,\n rapidFlipper,\n rapidFlyout,\n rapidGridLayout,\n rapidGridLayoutItem,\n rapidHorizontalScroll,\n rapidIcon,\n rapidListbox,\n rapidListboxOption,\n rapidMenu,\n rapidMenuItem,\n rapidModal,\n rapidMultiselect,\n rapidNotificationListener,\n rapidNumberField,\n rapidOptgroup,\n rapidPill,\n rapidProgress,\n rapidProgressRing,\n rapidRadio,\n rapidRadioGroup,\n rapidScheduler,\n rapidSchedulerCronBuilder,\n rapidSchedulerTimezone,\n rapidSearchBar,\n rapidSearchBarCombobox,\n rapidSegmentedControl,\n rapidSegmentedItem,\n rapidSelect,\n rapidSkeleton,\n rapidSlider,\n rapidSliderLabel,\n rapidSnackbar,\n rapidStackingIcons,\n rapidStatusPill,\n rapidStepper,\n rapidStepperTab,\n rapidStepperTabPanel,\n rapidSwitch,\n rapidSystemHealthOverlay,\n rapidTab,\n rapidTabPanel,\n rapidTabs,\n rapidTextArea,\n rapidTextField,\n rapidToast,\n rapidToolbar,\n rapidTooltip,\n rapidTreeItem,\n rapidTreeView,\n rapidUrlInput,\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": [
|
|
@@ -476,6 +476,14 @@
|
|
|
476
476
|
"package": "./number-field"
|
|
477
477
|
}
|
|
478
478
|
},
|
|
479
|
+
{
|
|
480
|
+
"kind": "js",
|
|
481
|
+
"name": "*",
|
|
482
|
+
"declaration": {
|
|
483
|
+
"name": "*",
|
|
484
|
+
"package": "./pill"
|
|
485
|
+
}
|
|
486
|
+
},
|
|
479
487
|
{
|
|
480
488
|
"kind": "js",
|
|
481
489
|
"name": "*",
|
|
@@ -25825,6 +25833,403 @@
|
|
|
25825
25833
|
}
|
|
25826
25834
|
]
|
|
25827
25835
|
},
|
|
25836
|
+
{
|
|
25837
|
+
"kind": "javascript-module",
|
|
25838
|
+
"path": "src/pill/index.ts",
|
|
25839
|
+
"declarations": [],
|
|
25840
|
+
"exports": [
|
|
25841
|
+
{
|
|
25842
|
+
"kind": "js",
|
|
25843
|
+
"name": "*",
|
|
25844
|
+
"declaration": {
|
|
25845
|
+
"name": "*",
|
|
25846
|
+
"package": "./pill"
|
|
25847
|
+
}
|
|
25848
|
+
},
|
|
25849
|
+
{
|
|
25850
|
+
"kind": "js",
|
|
25851
|
+
"name": "*",
|
|
25852
|
+
"declaration": {
|
|
25853
|
+
"name": "*",
|
|
25854
|
+
"package": "./pill.styles"
|
|
25855
|
+
}
|
|
25856
|
+
},
|
|
25857
|
+
{
|
|
25858
|
+
"kind": "js",
|
|
25859
|
+
"name": "*",
|
|
25860
|
+
"declaration": {
|
|
25861
|
+
"name": "*",
|
|
25862
|
+
"package": "./pill.template"
|
|
25863
|
+
}
|
|
25864
|
+
}
|
|
25865
|
+
]
|
|
25866
|
+
},
|
|
25867
|
+
{
|
|
25868
|
+
"kind": "javascript-module",
|
|
25869
|
+
"path": "src/pill/pill.styles.ts",
|
|
25870
|
+
"declarations": [
|
|
25871
|
+
{
|
|
25872
|
+
"kind": "variable",
|
|
25873
|
+
"name": "rapidPillStyles",
|
|
25874
|
+
"type": {
|
|
25875
|
+
"text": "ElementStyles"
|
|
25876
|
+
},
|
|
25877
|
+
"default": "css`\n ${foundationPillStyles}\n :host {\n --pill-fill: ${neutralFillRest};\n --pill-fill-hover: ${neutralFillHover};\n --pill-foreground: ${neutralForegroundRest};\n }\n`"
|
|
25878
|
+
}
|
|
25879
|
+
],
|
|
25880
|
+
"exports": [
|
|
25881
|
+
{
|
|
25882
|
+
"kind": "js",
|
|
25883
|
+
"name": "rapidPillStyles",
|
|
25884
|
+
"declaration": {
|
|
25885
|
+
"name": "rapidPillStyles",
|
|
25886
|
+
"module": "src/pill/pill.styles.ts"
|
|
25887
|
+
}
|
|
25888
|
+
}
|
|
25889
|
+
]
|
|
25890
|
+
},
|
|
25891
|
+
{
|
|
25892
|
+
"kind": "javascript-module",
|
|
25893
|
+
"path": "src/pill/pill.template.ts",
|
|
25894
|
+
"declarations": [
|
|
25895
|
+
{
|
|
25896
|
+
"kind": "variable",
|
|
25897
|
+
"name": "rapidPillTemplate",
|
|
25898
|
+
"default": "foundationPillTemplate"
|
|
25899
|
+
}
|
|
25900
|
+
],
|
|
25901
|
+
"exports": [
|
|
25902
|
+
{
|
|
25903
|
+
"kind": "js",
|
|
25904
|
+
"name": "rapidPillTemplate",
|
|
25905
|
+
"declaration": {
|
|
25906
|
+
"name": "rapidPillTemplate",
|
|
25907
|
+
"module": "src/pill/pill.template.ts"
|
|
25908
|
+
}
|
|
25909
|
+
}
|
|
25910
|
+
]
|
|
25911
|
+
},
|
|
25912
|
+
{
|
|
25913
|
+
"kind": "javascript-module",
|
|
25914
|
+
"path": "src/pill/pill.ts",
|
|
25915
|
+
"declarations": [
|
|
25916
|
+
{
|
|
25917
|
+
"kind": "class",
|
|
25918
|
+
"description": "",
|
|
25919
|
+
"name": "Pill",
|
|
25920
|
+
"superclass": {
|
|
25921
|
+
"name": "FoundationPill",
|
|
25922
|
+
"package": "@genesislcap/foundation-ui"
|
|
25923
|
+
},
|
|
25924
|
+
"tagName": "%%prefix%%-pill",
|
|
25925
|
+
"customElement": true,
|
|
25926
|
+
"attributes": [
|
|
25927
|
+
{
|
|
25928
|
+
"name": "label",
|
|
25929
|
+
"type": {
|
|
25930
|
+
"text": "string"
|
|
25931
|
+
},
|
|
25932
|
+
"attribute": "label",
|
|
25933
|
+
"fieldName": "label",
|
|
25934
|
+
"description": "the name of the thing this pill represents, e.g. a filter field name",
|
|
25935
|
+
"inheritedFrom": {
|
|
25936
|
+
"name": "Pill",
|
|
25937
|
+
"module": "src/pill/pill.ts"
|
|
25938
|
+
}
|
|
25939
|
+
},
|
|
25940
|
+
{
|
|
25941
|
+
"name": "value",
|
|
25942
|
+
"type": {
|
|
25943
|
+
"text": "string"
|
|
25944
|
+
},
|
|
25945
|
+
"attribute": "value",
|
|
25946
|
+
"fieldName": "value",
|
|
25947
|
+
"description": "the current value shown alongside the label, e.g. \"Cpty Desk: EQUITIES\"",
|
|
25948
|
+
"inheritedFrom": {
|
|
25949
|
+
"name": "Pill",
|
|
25950
|
+
"module": "src/pill/pill.ts"
|
|
25951
|
+
}
|
|
25952
|
+
},
|
|
25953
|
+
{
|
|
25954
|
+
"name": "removable",
|
|
25955
|
+
"type": {
|
|
25956
|
+
"text": "boolean"
|
|
25957
|
+
},
|
|
25958
|
+
"default": "true",
|
|
25959
|
+
"fieldName": "removable",
|
|
25960
|
+
"description": "whether the \"x\" remove control is shown",
|
|
25961
|
+
"inheritedFrom": {
|
|
25962
|
+
"name": "Pill",
|
|
25963
|
+
"module": "src/pill/pill.ts"
|
|
25964
|
+
}
|
|
25965
|
+
},
|
|
25966
|
+
{
|
|
25967
|
+
"name": "disabled",
|
|
25968
|
+
"type": {
|
|
25969
|
+
"text": "boolean"
|
|
25970
|
+
},
|
|
25971
|
+
"default": "false",
|
|
25972
|
+
"fieldName": "disabled",
|
|
25973
|
+
"description": "disables both the pill body and the remove control",
|
|
25974
|
+
"inheritedFrom": {
|
|
25975
|
+
"name": "Pill",
|
|
25976
|
+
"module": "src/pill/pill.ts"
|
|
25977
|
+
}
|
|
25978
|
+
},
|
|
25979
|
+
{
|
|
25980
|
+
"type": {
|
|
25981
|
+
"text": "boolean"
|
|
25982
|
+
},
|
|
25983
|
+
"default": "true",
|
|
25984
|
+
"attribute": "removable",
|
|
25985
|
+
"fieldName": "removable",
|
|
25986
|
+
"inheritedFrom": {
|
|
25987
|
+
"name": "Pill",
|
|
25988
|
+
"module": "src/pill/pill.ts"
|
|
25989
|
+
}
|
|
25990
|
+
}
|
|
25991
|
+
],
|
|
25992
|
+
"members": [
|
|
25993
|
+
{
|
|
25994
|
+
"kind": "field",
|
|
25995
|
+
"name": "label",
|
|
25996
|
+
"type": {
|
|
25997
|
+
"text": "string"
|
|
25998
|
+
},
|
|
25999
|
+
"attribute": "label",
|
|
26000
|
+
"inheritedFrom": {
|
|
26001
|
+
"name": "Pill",
|
|
26002
|
+
"module": "src/pill/pill.ts"
|
|
26003
|
+
}
|
|
26004
|
+
},
|
|
26005
|
+
{
|
|
26006
|
+
"kind": "field",
|
|
26007
|
+
"name": "value",
|
|
26008
|
+
"type": {
|
|
26009
|
+
"text": "string"
|
|
26010
|
+
},
|
|
26011
|
+
"attribute": "value",
|
|
26012
|
+
"inheritedFrom": {
|
|
26013
|
+
"name": "Pill",
|
|
26014
|
+
"module": "src/pill/pill.ts"
|
|
26015
|
+
}
|
|
26016
|
+
},
|
|
26017
|
+
{
|
|
26018
|
+
"kind": "field",
|
|
26019
|
+
"name": "removable",
|
|
26020
|
+
"type": {
|
|
26021
|
+
"text": "boolean"
|
|
26022
|
+
},
|
|
26023
|
+
"default": "true",
|
|
26024
|
+
"attribute": "removable",
|
|
26025
|
+
"inheritedFrom": {
|
|
26026
|
+
"name": "Pill",
|
|
26027
|
+
"module": "src/pill/pill.ts"
|
|
26028
|
+
}
|
|
26029
|
+
},
|
|
26030
|
+
{
|
|
26031
|
+
"kind": "field",
|
|
26032
|
+
"name": "disabled",
|
|
26033
|
+
"type": {
|
|
26034
|
+
"text": "boolean"
|
|
26035
|
+
},
|
|
26036
|
+
"default": "false",
|
|
26037
|
+
"attribute": "disabled",
|
|
26038
|
+
"inheritedFrom": {
|
|
26039
|
+
"name": "Pill",
|
|
26040
|
+
"module": "src/pill/pill.ts"
|
|
26041
|
+
}
|
|
26042
|
+
},
|
|
26043
|
+
{
|
|
26044
|
+
"kind": "method",
|
|
26045
|
+
"name": "handleBodyClick",
|
|
26046
|
+
"return": {
|
|
26047
|
+
"type": {
|
|
26048
|
+
"text": "void"
|
|
26049
|
+
}
|
|
26050
|
+
},
|
|
26051
|
+
"inheritedFrom": {
|
|
26052
|
+
"name": "Pill",
|
|
26053
|
+
"module": "src/pill/pill.ts"
|
|
26054
|
+
}
|
|
26055
|
+
},
|
|
26056
|
+
{
|
|
26057
|
+
"kind": "method",
|
|
26058
|
+
"name": "handleRemoveClick",
|
|
26059
|
+
"return": {
|
|
26060
|
+
"type": {
|
|
26061
|
+
"text": "void"
|
|
26062
|
+
}
|
|
26063
|
+
},
|
|
26064
|
+
"parameters": [
|
|
26065
|
+
{
|
|
26066
|
+
"name": "event",
|
|
26067
|
+
"optional": true,
|
|
26068
|
+
"type": {
|
|
26069
|
+
"text": "Event"
|
|
26070
|
+
}
|
|
26071
|
+
}
|
|
26072
|
+
],
|
|
26073
|
+
"inheritedFrom": {
|
|
26074
|
+
"name": "Pill",
|
|
26075
|
+
"module": "src/pill/pill.ts"
|
|
26076
|
+
}
|
|
26077
|
+
},
|
|
26078
|
+
{
|
|
26079
|
+
"kind": "field",
|
|
26080
|
+
"name": "_presentation",
|
|
26081
|
+
"type": {
|
|
26082
|
+
"text": "ComponentPresentation | null | undefined"
|
|
26083
|
+
},
|
|
26084
|
+
"privacy": "private",
|
|
26085
|
+
"default": "void 0",
|
|
26086
|
+
"inheritedFrom": {
|
|
26087
|
+
"name": "FoundationElement",
|
|
26088
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
26089
|
+
}
|
|
26090
|
+
},
|
|
26091
|
+
{
|
|
26092
|
+
"kind": "field",
|
|
26093
|
+
"name": "$presentation",
|
|
26094
|
+
"type": {
|
|
26095
|
+
"text": "ComponentPresentation | null"
|
|
26096
|
+
},
|
|
26097
|
+
"privacy": "public",
|
|
26098
|
+
"description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
|
|
26099
|
+
"inheritedFrom": {
|
|
26100
|
+
"name": "FoundationElement",
|
|
26101
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
26102
|
+
}
|
|
26103
|
+
},
|
|
26104
|
+
{
|
|
26105
|
+
"kind": "field",
|
|
26106
|
+
"name": "template",
|
|
26107
|
+
"type": {
|
|
26108
|
+
"text": "ElementViewTemplate | void | null"
|
|
26109
|
+
},
|
|
26110
|
+
"privacy": "public",
|
|
26111
|
+
"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.",
|
|
26112
|
+
"inheritedFrom": {
|
|
26113
|
+
"name": "FoundationElement",
|
|
26114
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
26115
|
+
}
|
|
26116
|
+
},
|
|
26117
|
+
{
|
|
26118
|
+
"kind": "method",
|
|
26119
|
+
"name": "templateChanged",
|
|
26120
|
+
"privacy": "protected",
|
|
26121
|
+
"return": {
|
|
26122
|
+
"type": {
|
|
26123
|
+
"text": "void"
|
|
26124
|
+
}
|
|
26125
|
+
},
|
|
26126
|
+
"inheritedFrom": {
|
|
26127
|
+
"name": "FoundationElement",
|
|
26128
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
26129
|
+
}
|
|
26130
|
+
},
|
|
26131
|
+
{
|
|
26132
|
+
"kind": "field",
|
|
26133
|
+
"name": "styles",
|
|
26134
|
+
"type": {
|
|
26135
|
+
"text": "ElementStyles | void | null"
|
|
26136
|
+
},
|
|
26137
|
+
"privacy": "public",
|
|
26138
|
+
"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.",
|
|
26139
|
+
"inheritedFrom": {
|
|
26140
|
+
"name": "FoundationElement",
|
|
26141
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
26142
|
+
}
|
|
26143
|
+
},
|
|
26144
|
+
{
|
|
26145
|
+
"kind": "method",
|
|
26146
|
+
"name": "stylesChanged",
|
|
26147
|
+
"privacy": "protected",
|
|
26148
|
+
"return": {
|
|
26149
|
+
"type": {
|
|
26150
|
+
"text": "void"
|
|
26151
|
+
}
|
|
26152
|
+
},
|
|
26153
|
+
"inheritedFrom": {
|
|
26154
|
+
"name": "FoundationElement",
|
|
26155
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
26156
|
+
}
|
|
26157
|
+
},
|
|
26158
|
+
{
|
|
26159
|
+
"kind": "method",
|
|
26160
|
+
"name": "compose",
|
|
26161
|
+
"privacy": "public",
|
|
26162
|
+
"static": true,
|
|
26163
|
+
"return": {
|
|
26164
|
+
"type": {
|
|
26165
|
+
"text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
|
|
26166
|
+
}
|
|
26167
|
+
},
|
|
26168
|
+
"parameters": [
|
|
26169
|
+
{
|
|
26170
|
+
"name": "this",
|
|
26171
|
+
"type": {
|
|
26172
|
+
"text": "K"
|
|
26173
|
+
}
|
|
26174
|
+
},
|
|
26175
|
+
{
|
|
26176
|
+
"name": "elementDefinition",
|
|
26177
|
+
"type": {
|
|
26178
|
+
"text": "T"
|
|
26179
|
+
},
|
|
26180
|
+
"description": "The definition of the element to create the registry\nfunction for."
|
|
26181
|
+
}
|
|
26182
|
+
],
|
|
26183
|
+
"description": "Defines an element registry function with a set of element definition defaults.",
|
|
26184
|
+
"inheritedFrom": {
|
|
26185
|
+
"name": "FoundationElement",
|
|
26186
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
26187
|
+
}
|
|
26188
|
+
}
|
|
26189
|
+
],
|
|
26190
|
+
"events": [
|
|
26191
|
+
{
|
|
26192
|
+
"description": "Fired when the remove control is activated.",
|
|
26193
|
+
"name": "remove",
|
|
26194
|
+
"inheritedFrom": {
|
|
26195
|
+
"name": "Pill",
|
|
26196
|
+
"module": "src/pill/pill.ts"
|
|
26197
|
+
}
|
|
26198
|
+
},
|
|
26199
|
+
{
|
|
26200
|
+
"description": "Fired when the pill body (excluding the remove control) is activated.",
|
|
26201
|
+
"name": "pill-click",
|
|
26202
|
+
"inheritedFrom": {
|
|
26203
|
+
"name": "Pill",
|
|
26204
|
+
"module": "src/pill/pill.ts"
|
|
26205
|
+
}
|
|
26206
|
+
}
|
|
26207
|
+
]
|
|
26208
|
+
},
|
|
26209
|
+
{
|
|
26210
|
+
"kind": "variable",
|
|
26211
|
+
"name": "rapidPill"
|
|
26212
|
+
}
|
|
26213
|
+
],
|
|
26214
|
+
"exports": [
|
|
26215
|
+
{
|
|
26216
|
+
"kind": "js",
|
|
26217
|
+
"name": "Pill",
|
|
26218
|
+
"declaration": {
|
|
26219
|
+
"name": "Pill",
|
|
26220
|
+
"module": "src/pill/pill.ts"
|
|
26221
|
+
}
|
|
26222
|
+
},
|
|
26223
|
+
{
|
|
26224
|
+
"kind": "js",
|
|
26225
|
+
"name": "rapidPill",
|
|
26226
|
+
"declaration": {
|
|
26227
|
+
"name": "rapidPill",
|
|
26228
|
+
"module": "src/pill/pill.ts"
|
|
26229
|
+
}
|
|
26230
|
+
}
|
|
26231
|
+
]
|
|
26232
|
+
},
|
|
25828
26233
|
{
|
|
25829
26234
|
"kind": "javascript-module",
|
|
25830
26235
|
"path": "src/progress/index.ts",
|
|
@@ -171,6 +171,17 @@ export declare const baseComponents: {
|
|
|
171
171
|
}, typeof import("./notification-listener").NotificationListener>;
|
|
172
172
|
rapidNumberField: (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>;
|
|
173
173
|
rapidOptgroup: (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>;
|
|
174
|
+
rapidPill: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
|
|
175
|
+
baseName: string;
|
|
176
|
+
template: import("@microsoft/fast-element").ViewTemplate<import("@genesislcap/foundation-ui").Pill, any>;
|
|
177
|
+
styles: import("@microsoft/fast-element").ElementStyles;
|
|
178
|
+
shadowOptions: ShadowRootInit;
|
|
179
|
+
}>) => import("@microsoft/fast-foundation").FoundationElementRegistry<{
|
|
180
|
+
baseName: string;
|
|
181
|
+
template: import("@microsoft/fast-element").ViewTemplate<import("@genesislcap/foundation-ui").Pill, any>;
|
|
182
|
+
styles: import("@microsoft/fast-element").ElementStyles;
|
|
183
|
+
shadowOptions: ShadowRootInit;
|
|
184
|
+
}, typeof import("./pill").Pill>;
|
|
174
185
|
rapidProgress: (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>;
|
|
175
186
|
rapidProgressRing: (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>>;
|
|
176
187
|
rapidRadio: (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":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"base-components.d.ts","sourceRoot":"","sources":["../../src/base-components.ts"],"names":[],"mappings":"AAAA,OAAO,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cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,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 rapidPill: (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,SAAS;;;;;;;;;;eAMpB,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,eAAe,EAAE,aAO7B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pill.template.d.ts","sourceRoot":"","sources":["../../../src/pill/pill.template.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,gGAAyB,CAAC"}
|
package/dist/dts/react.d.ts
CHANGED
|
@@ -50,6 +50,7 @@ import type { NotificationListener as NotificationListenerWC } from './notificat
|
|
|
50
50
|
import type { NumberField as NumberFieldWC } from './number-field/number-field';
|
|
51
51
|
import type { Optgroup as OptgroupWC } from './optgroup/optgroup';
|
|
52
52
|
import type { SystemHealthOverlay as SystemHealthOverlayWC } from './overlays/system-health/system-health-overlay';
|
|
53
|
+
import type { Pill as PillWC } from './pill/pill';
|
|
53
54
|
import type { ProgressRing as ProgressRingWC } from './progress-ring/progress-ring';
|
|
54
55
|
import type { Progress as ProgressWC } from './progress/progress';
|
|
55
56
|
import type { RadioGroup as RadioGroupWC } from './radio-group/radio-group';
|
|
@@ -562,6 +563,17 @@ export declare const Optgroup: React.ForwardRefExoticComponent<
|
|
|
562
563
|
>;
|
|
563
564
|
export type OptgroupRef = OptgroupWC;
|
|
564
565
|
|
|
566
|
+
export declare const Pill: React.ForwardRefExoticComponent<
|
|
567
|
+
React.PropsWithChildren<
|
|
568
|
+
Omit<PublicOf<PillWC>, 'children' | 'style'> &
|
|
569
|
+
HTMLWCProps & {
|
|
570
|
+
onRemove?: (event: CustomEvent<unknown>) => void;
|
|
571
|
+
onPillClick?: (event: CustomEvent<unknown>) => void;
|
|
572
|
+
}
|
|
573
|
+
> & React.RefAttributes<PillWC>
|
|
574
|
+
>;
|
|
575
|
+
export type PillRef = PillWC;
|
|
576
|
+
|
|
565
577
|
export declare const Progress: React.ForwardRefExoticComponent<
|
|
566
578
|
React.PropsWithChildren<
|
|
567
579
|
Omit<PublicOf<ProgressWC>, 'children' | 'style'> &
|
|
@@ -49,6 +49,7 @@ import { rapidNotificationListener } from './notification-listener';
|
|
|
49
49
|
import { rapidNumberField } from './number-field';
|
|
50
50
|
import { rapidOptgroup } from './optgroup';
|
|
51
51
|
import { rapidSystemHealthOverlay } from './overlays';
|
|
52
|
+
import { rapidPill } from './pill';
|
|
52
53
|
import { rapidProgress } from './progress';
|
|
53
54
|
import { rapidProgressRing } from './progress-ring';
|
|
54
55
|
import { rapidRadio } from './radio';
|
|
@@ -134,6 +135,7 @@ export const baseComponents = {
|
|
|
134
135
|
rapidNotificationListener,
|
|
135
136
|
rapidNumberField,
|
|
136
137
|
rapidOptgroup,
|
|
138
|
+
rapidPill,
|
|
137
139
|
rapidProgress,
|
|
138
140
|
rapidProgressRing,
|
|
139
141
|
rapidRadio,
|
package/dist/esm/index.js
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { defaultPillConfig, foundationPillShadowOptions, Pill as FoundationPill, } from '@genesislcap/foundation-ui';
|
|
2
|
+
import { rapidPillStyles as styles } from './pill.styles';
|
|
3
|
+
import { rapidPillTemplate as template } from './pill.template';
|
|
4
|
+
/**
|
|
5
|
+
* @tagname %%prefix%%-pill
|
|
6
|
+
*/
|
|
7
|
+
export class Pill extends FoundationPill {
|
|
8
|
+
}
|
|
9
|
+
export const rapidPill = 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 rapidPillStyles = 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
|
@@ -52,6 +52,7 @@ const { NotificationListener: NotificationListenerWC } = require('./esm/notifica
|
|
|
52
52
|
const { NumberField: NumberFieldWC } = require('./esm/number-field/number-field.js');
|
|
53
53
|
const { Optgroup: OptgroupWC } = require('./esm/optgroup/optgroup.js');
|
|
54
54
|
const { SystemHealthOverlay: SystemHealthOverlayWC } = require('./esm/overlays/system-health/system-health-overlay.js');
|
|
55
|
+
const { Pill: PillWC } = require('./esm/pill/pill.js');
|
|
55
56
|
const { ProgressRing: ProgressRingWC } = require('./esm/progress-ring/progress-ring.js');
|
|
56
57
|
const { Progress: ProgressWC } = require('./esm/progress/progress.js');
|
|
57
58
|
const { RadioGroup: RadioGroupWC } = require('./esm/radio-group/radio-group.js');
|
|
@@ -634,6 +635,28 @@ const Optgroup = React.forwardRef(function Optgroup(props, ref) {
|
|
|
634
635
|
return React.createElement(customElements.getName(OptgroupWC) ?? '%%prefix%%-optgroup', { ...rest, ref }, children);
|
|
635
636
|
});
|
|
636
637
|
|
|
638
|
+
const Pill = React.forwardRef(function Pill(props, ref) {
|
|
639
|
+
const { onRemove, onPillClick, children, ...rest } = props;
|
|
640
|
+
const _innerRef = React.useRef(null);
|
|
641
|
+
const _onRemoveRef = React.useRef(onRemove);
|
|
642
|
+
_onRemoveRef.current = onRemove;
|
|
643
|
+
const _onPillClickRef = React.useRef(onPillClick);
|
|
644
|
+
_onPillClickRef.current = onPillClick;
|
|
645
|
+
React.useLayoutEffect(() => {
|
|
646
|
+
const el = _innerRef.current;
|
|
647
|
+
if (!el) return;
|
|
648
|
+
const _onRemoveFn = (e) => _onRemoveRef.current?.(e);
|
|
649
|
+
el.addEventListener('remove', _onRemoveFn);
|
|
650
|
+
const _onPillClickFn = (e) => _onPillClickRef.current?.(e);
|
|
651
|
+
el.addEventListener('pill-click', _onPillClickFn);
|
|
652
|
+
return () => {
|
|
653
|
+
el.removeEventListener('remove', _onRemoveFn);
|
|
654
|
+
el.removeEventListener('pill-click', _onPillClickFn);
|
|
655
|
+
};
|
|
656
|
+
}, []);
|
|
657
|
+
return React.createElement(customElements.getName(PillWC) ?? '%%prefix%%-pill', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
658
|
+
});
|
|
659
|
+
|
|
637
660
|
const Progress = React.forwardRef(function Progress(props, ref) {
|
|
638
661
|
const { children, ...rest } = props;
|
|
639
662
|
return React.createElement(customElements.getName(ProgressWC) ?? '%%prefix%%-progress', { ...rest, ref }, children);
|
|
@@ -1003,6 +1026,7 @@ module.exports = {
|
|
|
1003
1026
|
NotificationListener,
|
|
1004
1027
|
NumberField,
|
|
1005
1028
|
Optgroup,
|
|
1029
|
+
Pill,
|
|
1006
1030
|
Progress,
|
|
1007
1031
|
ProgressRing,
|
|
1008
1032
|
Radio,
|
package/dist/react.mjs
CHANGED
|
@@ -50,6 +50,7 @@ import { NotificationListener as NotificationListenerWC } from './esm/notificati
|
|
|
50
50
|
import { NumberField as NumberFieldWC } from './esm/number-field/number-field.js';
|
|
51
51
|
import { Optgroup as OptgroupWC } from './esm/optgroup/optgroup.js';
|
|
52
52
|
import { SystemHealthOverlay as SystemHealthOverlayWC } from './esm/overlays/system-health/system-health-overlay.js';
|
|
53
|
+
import { Pill as PillWC } from './esm/pill/pill.js';
|
|
53
54
|
import { ProgressRing as ProgressRingWC } from './esm/progress-ring/progress-ring.js';
|
|
54
55
|
import { Progress as ProgressWC } from './esm/progress/progress.js';
|
|
55
56
|
import { RadioGroup as RadioGroupWC } from './esm/radio-group/radio-group.js';
|
|
@@ -632,6 +633,28 @@ export const Optgroup = React.forwardRef(function Optgroup(props, ref) {
|
|
|
632
633
|
return React.createElement(customElements.getName(OptgroupWC) ?? '%%prefix%%-optgroup', { ...rest, ref }, children);
|
|
633
634
|
});
|
|
634
635
|
|
|
636
|
+
export const Pill = React.forwardRef(function Pill(props, ref) {
|
|
637
|
+
const { onRemove, onPillClick, children, ...rest } = props;
|
|
638
|
+
const _innerRef = React.useRef(null);
|
|
639
|
+
const _onRemoveRef = React.useRef(onRemove);
|
|
640
|
+
_onRemoveRef.current = onRemove;
|
|
641
|
+
const _onPillClickRef = React.useRef(onPillClick);
|
|
642
|
+
_onPillClickRef.current = onPillClick;
|
|
643
|
+
React.useLayoutEffect(() => {
|
|
644
|
+
const el = _innerRef.current;
|
|
645
|
+
if (!el) return;
|
|
646
|
+
const _onRemoveFn = (e) => _onRemoveRef.current?.(e);
|
|
647
|
+
el.addEventListener('remove', _onRemoveFn);
|
|
648
|
+
const _onPillClickFn = (e) => _onPillClickRef.current?.(e);
|
|
649
|
+
el.addEventListener('pill-click', _onPillClickFn);
|
|
650
|
+
return () => {
|
|
651
|
+
el.removeEventListener('remove', _onRemoveFn);
|
|
652
|
+
el.removeEventListener('pill-click', _onPillClickFn);
|
|
653
|
+
};
|
|
654
|
+
}, []);
|
|
655
|
+
return React.createElement(customElements.getName(PillWC) ?? '%%prefix%%-pill', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
656
|
+
});
|
|
657
|
+
|
|
635
658
|
export const Progress = React.forwardRef(function Progress(props, ref) {
|
|
636
659
|
const { children, ...rest } = props;
|
|
637
660
|
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/rapid-design-system",
|
|
3
3
|
"description": "Rapid Design System",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.501.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -38,13 +38,13 @@
|
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@genesiscommunitysuccess/analyzer-import-alias-plugin": "^5.0.3",
|
|
41
|
-
"@genesislcap/foundation-testing": "14.
|
|
42
|
-
"@genesislcap/genx": "14.
|
|
43
|
-
"@genesislcap/rollup-builder": "14.
|
|
44
|
-
"@genesislcap/ts-builder": "14.
|
|
45
|
-
"@genesislcap/uvu-playwright-builder": "14.
|
|
46
|
-
"@genesislcap/vite-builder": "14.
|
|
47
|
-
"@genesislcap/webpack-builder": "14.
|
|
41
|
+
"@genesislcap/foundation-testing": "14.501.0",
|
|
42
|
+
"@genesislcap/genx": "14.501.0",
|
|
43
|
+
"@genesislcap/rollup-builder": "14.501.0",
|
|
44
|
+
"@genesislcap/ts-builder": "14.501.0",
|
|
45
|
+
"@genesislcap/uvu-playwright-builder": "14.501.0",
|
|
46
|
+
"@genesislcap/vite-builder": "14.501.0",
|
|
47
|
+
"@genesislcap/webpack-builder": "14.501.0",
|
|
48
48
|
"flexlayout-react": "^0.8.19"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@genesislcap/foundation-logger": "14.
|
|
60
|
-
"@genesislcap/foundation-ui": "14.
|
|
61
|
-
"@genesislcap/foundation-utils": "14.
|
|
59
|
+
"@genesislcap/foundation-logger": "14.501.0",
|
|
60
|
+
"@genesislcap/foundation-ui": "14.501.0",
|
|
61
|
+
"@genesislcap/foundation-utils": "14.501.0",
|
|
62
62
|
"@microsoft/fast-colors": "5.3.1",
|
|
63
63
|
"@microsoft/fast-components": "2.30.6",
|
|
64
64
|
"@microsoft/fast-element": "1.14.0",
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"require": "./dist/react.cjs"
|
|
87
87
|
}
|
|
88
88
|
},
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "4fccf90855cbd10b0289566a75a95120a2be4384"
|
|
90
90
|
}
|