@genesislcap/rapid-design-system 15.4.0 → 15.4.1
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 +377 -377
- package/dist/dts/button/button.styles.d.ts +19 -0
- package/dist/dts/button/button.styles.d.ts.map +1 -1
- package/dist/dts/react.d.ts +12 -10
- package/dist/react.cjs +6 -6
- package/dist/react.mjs +5 -5
- package/package.json +20 -12
|
@@ -1,4 +1,23 @@
|
|
|
1
1
|
import { ElementStyles } from '@microsoft/fast-element';
|
|
2
2
|
import type { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
3
|
export declare const rapidButtonStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ElementStyles;
|
|
4
|
+
/**
|
|
5
|
+
* Every `appearance` value rapid-design-system actually styles.
|
|
6
|
+
*
|
|
7
|
+
* Derived from this file: the `appearanceBehavior(...)` registrations above plus the
|
|
8
|
+
* `:host([appearance='accent'])` rule — keep it in step with them.
|
|
9
|
+
*
|
|
10
|
+
* WHY IT IS DECLARED HERE RATHER THAN ON THE COMPONENT. `Button extends FoundationButton extends
|
|
11
|
+
* FASTButton`, and FAST declares `appearance: ButtonAppearance` = 'accent' | 'lightweight' |
|
|
12
|
+
* 'neutral' | 'outline' | 'stealth'. TypeScript requires a derived property to be assignable to the
|
|
13
|
+
* base's, so a subclass cannot widen it — `declare appearance: RapidButtonAppearance` gives TS2416
|
|
14
|
+
* and class/interface merging gives TS2415/TS2430. The React wrapper therefore surfaces this type
|
|
15
|
+
* through the `reactWrapperPropTypes` override in package.json (see ts-builder's
|
|
16
|
+
* react-wrapper-generator), which is the only boundary at which the public prop type can be
|
|
17
|
+
* corrected.
|
|
18
|
+
*
|
|
19
|
+
* The FAST-base values are retained so widening stays non-breaking for anything already compiling,
|
|
20
|
+
* but note `lightweight` / `outline` / `stealth` are NOT styled here and render as a plain button.
|
|
21
|
+
*/
|
|
22
|
+
export type RapidButtonAppearance = 'accent' | 'lightweight' | 'neutral' | 'outline' | 'stealth' | 'primary' | 'secondary' | 'tertiary' | 'danger' | 'success' | 'warning' | 'primary-outline' | 'secondary-outline' | 'neutral-outline' | 'link';
|
|
4
23
|
//# sourceMappingURL=button.styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.styles.d.ts","sourceRoot":"","sources":["../../../src/button/button.styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EACV,wBAAwB,EACxB,2BAA2B,EAC5B,MAAM,4BAA4B,CAAC;AAyUpC,eAAO,MAAM,iBAAiB,GAC5B,SAAS,wBAAwB,EACjC,YAAY,2BAA2B,KACtC,aAgBA,CAAC"}
|
|
1
|
+
{"version":3,"file":"button.styles.d.ts","sourceRoot":"","sources":["../../../src/button/button.styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EACV,wBAAwB,EACxB,2BAA2B,EAC5B,MAAM,4BAA4B,CAAC;AAyUpC,eAAO,MAAM,iBAAiB,GAC5B,SAAS,wBAAwB,EACjC,YAAY,2BAA2B,KACtC,aAgBA,CAAC;AAEJ;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,qBAAqB,GAE7B,QAAQ,GACR,aAAa,GACb,SAAS,GACT,SAAS,GACT,SAAS,GAET,SAAS,GACT,WAAW,GACX,UAAU,GACV,QAAQ,GACR,SAAS,GACT,SAAS,GAET,iBAAiB,GACjB,mBAAmB,GACnB,iBAAiB,GAEjB,MAAM,CAAC"}
|
package/dist/dts/react.d.ts
CHANGED
|
@@ -87,6 +87,7 @@ import type { TreeItem as TreeItemWC } from './tree-item/tree-item';
|
|
|
87
87
|
import type { TreeView as TreeViewWC } from './tree-view/tree-view';
|
|
88
88
|
import type { UrlInput as UrlInputWC } from './url-input/url-input';
|
|
89
89
|
import type { VerificationCodeInput as VerificationCodeInputWC } from './verification-code-input/verification-code-input';
|
|
90
|
+
import type { RapidButtonAppearance } from './button/button.styles';
|
|
90
91
|
import type { AddGroupEventDetail, AddRuleEventDetail, DelGroupEventDetail, DelRuleEventDetail, UpdateGroupEventDetail, UpdateRuleEventDetail } from '@genesislcap/expression-builder';
|
|
91
92
|
import type { ClearOptions, FileSelectedEventDetail, FilterChangedEventDetail, FilterClearedEventDetail, MultiselectOption, OpenChangeEventDetail, SelectedOption, StepClickEventDetail, ValidationError, ValidationFailureEventDetail, VerificationCodeInputEventDetail } from '@genesislcap/foundation-ui';
|
|
92
93
|
|
|
@@ -146,15 +147,6 @@ export declare const ActionsMenu: React.ForwardRefExoticComponent<
|
|
|
146
147
|
>;
|
|
147
148
|
export type ActionsMenuRef = ActionsMenuWC;
|
|
148
149
|
|
|
149
|
-
export declare const AiIndicator: React.ForwardRefExoticComponent<
|
|
150
|
-
React.PropsWithChildren<
|
|
151
|
-
Omit<PublicOf<AiIndicatorWC>, 'children' | 'style'> &
|
|
152
|
-
HTMLWCProps & {
|
|
153
|
-
}
|
|
154
|
-
> & React.RefAttributes<AiIndicatorWC>
|
|
155
|
-
>;
|
|
156
|
-
export type AiIndicatorRef = AiIndicatorWC;
|
|
157
|
-
|
|
158
150
|
export declare const AiCriteriaSearch: React.ForwardRefExoticComponent<
|
|
159
151
|
React.PropsWithChildren<
|
|
160
152
|
Omit<PublicOf<AiCriteriaSearchWC>, 'children' | 'style'> &
|
|
@@ -166,6 +158,15 @@ export declare const AiCriteriaSearch: React.ForwardRefExoticComponent<
|
|
|
166
158
|
>;
|
|
167
159
|
export type AiCriteriaSearchRef = AiCriteriaSearchWC;
|
|
168
160
|
|
|
161
|
+
export declare const AiIndicator: React.ForwardRefExoticComponent<
|
|
162
|
+
React.PropsWithChildren<
|
|
163
|
+
Omit<PublicOf<AiIndicatorWC>, 'children' | 'style'> &
|
|
164
|
+
HTMLWCProps & {
|
|
165
|
+
}
|
|
166
|
+
> & React.RefAttributes<AiIndicatorWC>
|
|
167
|
+
>;
|
|
168
|
+
export type AiIndicatorRef = AiIndicatorWC;
|
|
169
|
+
|
|
169
170
|
export declare const Anchor: React.ForwardRefExoticComponent<
|
|
170
171
|
React.PropsWithChildren<
|
|
171
172
|
Omit<PublicOf<AnchorWC>, 'children' | 'style'> &
|
|
@@ -233,8 +234,9 @@ export type BreadcrumbItemRef = BreadcrumbItemWC;
|
|
|
233
234
|
|
|
234
235
|
export declare const Button: React.ForwardRefExoticComponent<
|
|
235
236
|
React.PropsWithChildren<
|
|
236
|
-
Omit<PublicOf<ButtonWC>, 'children' | 'style'> &
|
|
237
|
+
Omit<PublicOf<ButtonWC>, 'children' | 'style' | 'appearance'> &
|
|
237
238
|
HTMLWCProps & {
|
|
239
|
+
appearance?: RapidButtonAppearance;
|
|
238
240
|
}
|
|
239
241
|
> & React.RefAttributes<ButtonWC>
|
|
240
242
|
>;
|
package/dist/react.cjs
CHANGED
|
@@ -114,11 +114,6 @@ const ActionsMenu = React.forwardRef(function ActionsMenu(props, ref) {
|
|
|
114
114
|
return React.createElement(customElements.getName(ActionsMenuWC) ?? '%%prefix%%-actions-menu', { ...rest, ref }, children);
|
|
115
115
|
});
|
|
116
116
|
|
|
117
|
-
const AiIndicator = React.forwardRef(function AiIndicator(props, ref) {
|
|
118
|
-
const { children, ...rest } = props;
|
|
119
|
-
return React.createElement(customElements.getName(AiIndicatorWC) ?? '%%prefix%%-ai-indicator', { ...rest, ref }, children);
|
|
120
|
-
});
|
|
121
|
-
|
|
122
117
|
const AiCriteriaSearch = React.forwardRef(function AiCriteriaSearch(props, ref) {
|
|
123
118
|
const { onCriteriaChanged, onValidationErrors, children, ...rest } = props;
|
|
124
119
|
const _innerRef = React.useRef(null);
|
|
@@ -141,6 +136,11 @@ const AiCriteriaSearch = React.forwardRef(function AiCriteriaSearch(props, ref)
|
|
|
141
136
|
return React.createElement(customElements.getName(AiCriteriaSearchWC) ?? '%%prefix%%-ai-criteria-search', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
142
137
|
});
|
|
143
138
|
|
|
139
|
+
const AiIndicator = React.forwardRef(function AiIndicator(props, ref) {
|
|
140
|
+
const { children, ...rest } = props;
|
|
141
|
+
return React.createElement(customElements.getName(AiIndicatorWC) ?? '%%prefix%%-ai-indicator', { ...rest, ref }, children);
|
|
142
|
+
});
|
|
143
|
+
|
|
144
144
|
const Anchor = React.forwardRef(function Anchor(props, ref) {
|
|
145
145
|
const { children, ...rest } = props;
|
|
146
146
|
return React.createElement(customElements.getName(AnchorWC) ?? '%%prefix%%-anchor', { ...rest, ref }, children);
|
|
@@ -1002,8 +1002,8 @@ module.exports = {
|
|
|
1002
1002
|
Accordion,
|
|
1003
1003
|
AccordionItem,
|
|
1004
1004
|
ActionsMenu,
|
|
1005
|
-
AiIndicator,
|
|
1006
1005
|
AiCriteriaSearch,
|
|
1006
|
+
AiIndicator,
|
|
1007
1007
|
Anchor,
|
|
1008
1008
|
AnchoredRegion,
|
|
1009
1009
|
Avatar,
|
package/dist/react.mjs
CHANGED
|
@@ -112,11 +112,6 @@ export const ActionsMenu = React.forwardRef(function ActionsMenu(props, ref) {
|
|
|
112
112
|
return React.createElement(customElements.getName(ActionsMenuWC) ?? '%%prefix%%-actions-menu', { ...rest, ref }, children);
|
|
113
113
|
});
|
|
114
114
|
|
|
115
|
-
export const AiIndicator = React.forwardRef(function AiIndicator(props, ref) {
|
|
116
|
-
const { children, ...rest } = props;
|
|
117
|
-
return React.createElement(customElements.getName(AiIndicatorWC) ?? '%%prefix%%-ai-indicator', { ...rest, ref }, children);
|
|
118
|
-
});
|
|
119
|
-
|
|
120
115
|
export const AiCriteriaSearch = React.forwardRef(function AiCriteriaSearch(props, ref) {
|
|
121
116
|
const { onCriteriaChanged, onValidationErrors, children, ...rest } = props;
|
|
122
117
|
const _innerRef = React.useRef(null);
|
|
@@ -139,6 +134,11 @@ export const AiCriteriaSearch = React.forwardRef(function AiCriteriaSearch(props
|
|
|
139
134
|
return React.createElement(customElements.getName(AiCriteriaSearchWC) ?? '%%prefix%%-ai-criteria-search', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
140
135
|
});
|
|
141
136
|
|
|
137
|
+
export const AiIndicator = React.forwardRef(function AiIndicator(props, ref) {
|
|
138
|
+
const { children, ...rest } = props;
|
|
139
|
+
return React.createElement(customElements.getName(AiIndicatorWC) ?? '%%prefix%%-ai-indicator', { ...rest, ref }, children);
|
|
140
|
+
});
|
|
141
|
+
|
|
142
142
|
export const Anchor = React.forwardRef(function Anchor(props, ref) {
|
|
143
143
|
const { children, ...rest } = props;
|
|
144
144
|
return React.createElement(customElements.getName(AnchorWC) ?? '%%prefix%%-anchor', { ...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": "15.4.
|
|
4
|
+
"version": "15.4.1",
|
|
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": "15.4.
|
|
42
|
-
"@genesislcap/genx": "15.4.
|
|
43
|
-
"@genesislcap/rollup-builder": "15.4.
|
|
44
|
-
"@genesislcap/ts-builder": "15.4.
|
|
45
|
-
"@genesislcap/uvu-playwright-builder": "15.4.
|
|
46
|
-
"@genesislcap/vite-builder": "15.4.
|
|
47
|
-
"@genesislcap/webpack-builder": "15.4.
|
|
41
|
+
"@genesislcap/foundation-testing": "15.4.1",
|
|
42
|
+
"@genesislcap/genx": "15.4.1",
|
|
43
|
+
"@genesislcap/rollup-builder": "15.4.1",
|
|
44
|
+
"@genesislcap/ts-builder": "15.4.1",
|
|
45
|
+
"@genesislcap/uvu-playwright-builder": "15.4.1",
|
|
46
|
+
"@genesislcap/vite-builder": "15.4.1",
|
|
47
|
+
"@genesislcap/webpack-builder": "15.4.1",
|
|
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": "15.4.
|
|
60
|
-
"@genesislcap/foundation-ui": "15.4.
|
|
61
|
-
"@genesislcap/foundation-utils": "15.4.
|
|
59
|
+
"@genesislcap/foundation-logger": "15.4.1",
|
|
60
|
+
"@genesislcap/foundation-ui": "15.4.1",
|
|
61
|
+
"@genesislcap/foundation-utils": "15.4.1",
|
|
62
62
|
"@microsoft/fast-colors": "5.3.1",
|
|
63
63
|
"@microsoft/fast-components": "2.30.6",
|
|
64
64
|
"@microsoft/fast-element": "1.14.0",
|
|
@@ -75,6 +75,14 @@
|
|
|
75
75
|
"access": "public"
|
|
76
76
|
},
|
|
77
77
|
"customElements": "dist/custom-elements.json",
|
|
78
|
+
"reactWrapperPropTypes": {
|
|
79
|
+
"Button": {
|
|
80
|
+
"appearance": {
|
|
81
|
+
"type": "RapidButtonAppearance",
|
|
82
|
+
"from": "./button/button.styles"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
78
86
|
"exports": {
|
|
79
87
|
".": {
|
|
80
88
|
"types": "./dist/dts/index.d.ts",
|
|
@@ -86,5 +94,5 @@
|
|
|
86
94
|
"require": "./dist/react.cjs"
|
|
87
95
|
}
|
|
88
96
|
},
|
|
89
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "984a77280362d69ba3eab6256dbb7fe03b8c76b3"
|
|
90
98
|
}
|