@genesislcap/foundation-zero 15.1.0 → 15.2.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 +1251 -300
- 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/react.d.ts +20 -9
- package/dist/dts/verification-code-input/index.d.ts +4 -0
- package/dist/dts/verification-code-input/index.d.ts.map +1 -0
- package/dist/dts/verification-code-input/verification-code-input.d.ts +20 -0
- package/dist/dts/verification-code-input/verification-code-input.d.ts.map +1 -0
- package/dist/dts/verification-code-input/verification-code-input.styles.d.ts +3 -0
- package/dist/dts/verification-code-input/verification-code-input.styles.d.ts.map +1 -0
- package/dist/dts/verification-code-input/verification-code-input.template.d.ts +2 -0
- package/dist/dts/verification-code-input/verification-code-input.template.d.ts.map +1 -0
- package/dist/esm/base-components.js +2 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/verification-code-input/index.js +3 -0
- package/dist/esm/verification-code-input/verification-code-input.js +12 -0
- package/dist/esm/verification-code-input/verification-code-input.styles.js +57 -0
- package/dist/esm/verification-code-input/verification-code-input.template.js +2 -0
- package/dist/react.cjs +24 -5
- package/dist/react.mjs +22 -4
- package/package.json +12 -12
|
@@ -339,6 +339,17 @@ export declare const baseComponents: {
|
|
|
339
339
|
zeroTreeItem: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<import("@microsoft/fast-foundation").TreeItemOptions>) => import("@microsoft/fast-foundation").FoundationElementRegistry<import("@microsoft/fast-foundation").TreeItemOptions, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
|
340
340
|
zeroTreeView: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<import("@microsoft/fast-foundation").FoundationElementDefinition>) => import("@microsoft/fast-foundation").FoundationElementRegistry<import("@microsoft/fast-foundation").FoundationElementDefinition, typeof import("./tree-view").TreeView>;
|
|
341
341
|
zeroUrlInput: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<import("@microsoft/fast-foundation").FoundationElementDefinition>) => import("@microsoft/fast-foundation").FoundationElementRegistry<import("@microsoft/fast-foundation").FoundationElementDefinition, typeof import("./url-input").UrlInput>;
|
|
342
|
+
zeroVerificationCodeInput: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
|
|
343
|
+
baseName: string;
|
|
344
|
+
template: import("@microsoft/fast-element").ViewTemplate<import("@genesislcap/foundation-ui").VerificationCodeInput, any>;
|
|
345
|
+
styles: import("@microsoft/fast-element").ElementStyles;
|
|
346
|
+
shadowOptions: ShadowRootInit;
|
|
347
|
+
}>) => import("@microsoft/fast-foundation").FoundationElementRegistry<{
|
|
348
|
+
baseName: string;
|
|
349
|
+
template: import("@microsoft/fast-element").ViewTemplate<import("@genesislcap/foundation-ui").VerificationCodeInput, any>;
|
|
350
|
+
styles: import("@microsoft/fast-element").ElementStyles;
|
|
351
|
+
shadowOptions: ShadowRootInit;
|
|
352
|
+
}, typeof import("./verification-code-input").VerificationCodeInput>;
|
|
342
353
|
zeroSectionNavigator: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<import("@microsoft/fast-foundation").FoundationElementDefinition>) => import("@microsoft/fast-foundation").FoundationElementRegistry<import("@microsoft/fast-foundation").FoundationElementDefinition, typeof import("./section-navigator").SectionNavigator>;
|
|
343
354
|
register(container?: Container, ...rest: any[]): void;
|
|
344
355
|
};
|
|
@@ -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":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AY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,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;AAC5B,cAAc,2BAA2B,CAAC"}
|
package/dist/dts/react.d.ts
CHANGED
|
@@ -91,8 +91,9 @@ import type { Tooltip as TooltipWC } from './tooltip/tooltip';
|
|
|
91
91
|
import type { TreeItem as TreeItemWC } from './tree-item/tree-item';
|
|
92
92
|
import type { TreeView as TreeViewWC } from './tree-view/tree-view';
|
|
93
93
|
import type { UrlInput as UrlInputWC } from './url-input/url-input';
|
|
94
|
+
import type { VerificationCodeInput as VerificationCodeInputWC } from './verification-code-input/verification-code-input';
|
|
94
95
|
import type { AddGroupEventDetail, AddRuleEventDetail, DelGroupEventDetail, DelRuleEventDetail, UpdateGroupEventDetail, UpdateRuleEventDetail } from '@genesislcap/expression-builder';
|
|
95
|
-
import type { ClearOptions, FileSelectedEventDetail, FilterChangedEventDetail, FilterClearedEventDetail, MultiselectOption, OpenChangeEventDetail, SelectedOption, StepClickEventDetail, ValidationError, ValidationFailureEventDetail } from '@genesislcap/foundation-ui';
|
|
96
|
+
import type { ClearOptions, FileSelectedEventDetail, FilterChangedEventDetail, FilterClearedEventDetail, MultiselectOption, OpenChangeEventDetail, SelectedOption, StepClickEventDetail, ValidationError, ValidationFailureEventDetail, VerificationCodeInputEventDetail } from '@genesislcap/foundation-ui';
|
|
96
97
|
|
|
97
98
|
/** @internal Maps a web component class to its public props only.
|
|
98
99
|
* keyof T skips private/protected members, so this avoids the TS error
|
|
@@ -123,23 +124,23 @@ interface HTMLWCProps extends React.AriaAttributes {
|
|
|
123
124
|
onInput?(e: Event): void;
|
|
124
125
|
}
|
|
125
126
|
|
|
126
|
-
export declare const
|
|
127
|
+
export declare const AccordionItem: React.ForwardRefExoticComponent<
|
|
127
128
|
React.PropsWithChildren<
|
|
128
|
-
Omit<PublicOf<
|
|
129
|
+
Omit<PublicOf<AccordionItemWC>, 'children' | 'style'> &
|
|
129
130
|
HTMLWCProps & {
|
|
130
131
|
}
|
|
131
|
-
> & React.RefAttributes<
|
|
132
|
+
> & React.RefAttributes<AccordionItemWC>
|
|
132
133
|
>;
|
|
133
|
-
export type
|
|
134
|
+
export type AccordionItemRef = AccordionItemWC;
|
|
134
135
|
|
|
135
|
-
export declare const
|
|
136
|
+
export declare const Accordion: React.ForwardRefExoticComponent<
|
|
136
137
|
React.PropsWithChildren<
|
|
137
|
-
Omit<PublicOf<
|
|
138
|
+
Omit<PublicOf<AccordionWC>, 'children' | 'style'> &
|
|
138
139
|
HTMLWCProps & {
|
|
139
140
|
}
|
|
140
|
-
> & React.RefAttributes<
|
|
141
|
+
> & React.RefAttributes<AccordionWC>
|
|
141
142
|
>;
|
|
142
|
-
export type
|
|
143
|
+
export type AccordionRef = AccordionWC;
|
|
143
144
|
|
|
144
145
|
export declare const ActionsMenu: React.ForwardRefExoticComponent<
|
|
145
146
|
React.PropsWithChildren<
|
|
@@ -984,4 +985,14 @@ export declare const UrlInput: React.ForwardRefExoticComponent<
|
|
|
984
985
|
>;
|
|
985
986
|
export type UrlInputRef = UrlInputWC;
|
|
986
987
|
|
|
988
|
+
export declare const VerificationCodeInput: React.ForwardRefExoticComponent<
|
|
989
|
+
React.PropsWithChildren<
|
|
990
|
+
Omit<PublicOf<VerificationCodeInputWC>, 'children' | 'style'> &
|
|
991
|
+
HTMLWCProps & {
|
|
992
|
+
onComplete?: (event: CustomEvent<VerificationCodeInputEventDetail>) => void;
|
|
993
|
+
}
|
|
994
|
+
> & React.RefAttributes<VerificationCodeInputWC>
|
|
995
|
+
>;
|
|
996
|
+
export type VerificationCodeInputRef = VerificationCodeInputWC;
|
|
997
|
+
|
|
987
998
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/verification-code-input/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { VerificationCodeInput as FoundationVerificationCodeInput } from '@genesislcap/foundation-ui';
|
|
2
|
+
/**
|
|
3
|
+
* @tagname %%prefix%%-verification-code-input
|
|
4
|
+
*/
|
|
5
|
+
export declare class VerificationCodeInput extends FoundationVerificationCodeInput {
|
|
6
|
+
}
|
|
7
|
+
export declare const defaultVerificationCodeInputConfig: {};
|
|
8
|
+
export declare const zeroVerificationCodeInputShadowOptions: ShadowRootInit;
|
|
9
|
+
export declare const zeroVerificationCodeInput: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
|
|
10
|
+
baseName: string;
|
|
11
|
+
template: import("@microsoft/fast-element").ViewTemplate<FoundationVerificationCodeInput, any>;
|
|
12
|
+
styles: import("@microsoft/fast-element").ElementStyles;
|
|
13
|
+
shadowOptions: ShadowRootInit;
|
|
14
|
+
}>) => import("@microsoft/fast-foundation").FoundationElementRegistry<{
|
|
15
|
+
baseName: string;
|
|
16
|
+
template: import("@microsoft/fast-element").ViewTemplate<FoundationVerificationCodeInput, any>;
|
|
17
|
+
styles: import("@microsoft/fast-element").ElementStyles;
|
|
18
|
+
shadowOptions: ShadowRootInit;
|
|
19
|
+
}, typeof VerificationCodeInput>;
|
|
20
|
+
//# sourceMappingURL=verification-code-input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verification-code-input.d.ts","sourceRoot":"","sources":["../../../src/verification-code-input/verification-code-input.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,IAAI,+BAA+B,EAGzD,MAAM,4BAA4B,CAAC;AAIpC;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,+BAA+B;CAAG;AAE7E,eAAO,MAAM,kCAAkC,IAAwC,CAAC;AAExF,eAAO,MAAM,sCAAsC,gBAA+C,CAAC;AAEnG,eAAO,MAAM,yBAAyB;;;;;;;;;;gCAMpC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verification-code-input.styles.d.ts","sourceRoot":"","sources":["../../../src/verification-code-input/verification-code-input.styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAU7D,eAAO,MAAM,2BAA2B,EAAE,aAqDzC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verification-code-input.template.d.ts","sourceRoot":"","sources":["../../../src/verification-code-input/verification-code-input.template.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,6BAA6B,iHAA0C,CAAC"}
|
|
@@ -84,6 +84,7 @@ import { zeroTooltip } from './tooltip';
|
|
|
84
84
|
import { zeroTreeItem } from './tree-item';
|
|
85
85
|
import { zeroTreeView } from './tree-view';
|
|
86
86
|
import { zeroUrlInput } from './url-input';
|
|
87
|
+
import { zeroVerificationCodeInput } from './verification-code-input';
|
|
87
88
|
export const baseComponents = {
|
|
88
89
|
zeroAccordion,
|
|
89
90
|
zeroAccordionItem,
|
|
@@ -170,6 +171,7 @@ export const baseComponents = {
|
|
|
170
171
|
zeroTreeItem,
|
|
171
172
|
zeroTreeView,
|
|
172
173
|
zeroUrlInput,
|
|
174
|
+
zeroVerificationCodeInput,
|
|
173
175
|
zeroSectionNavigator,
|
|
174
176
|
register(container, ...rest) {
|
|
175
177
|
if (!container) {
|
package/dist/esm/index.js
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { VerificationCodeInput as FoundationVerificationCodeInput, foundationVerificationCodeInputShadowOptions, defaultVerificationCodeInputConfig as foundationVerificationCodeInputConfig, } from '@genesislcap/foundation-ui';
|
|
2
|
+
import { verificationCodeInputStyles as styles } from './verification-code-input.styles';
|
|
3
|
+
import { verificationCodeInputTemplate as template } from './verification-code-input.template';
|
|
4
|
+
/**
|
|
5
|
+
* @tagname %%prefix%%-verification-code-input
|
|
6
|
+
*/
|
|
7
|
+
export class VerificationCodeInput extends FoundationVerificationCodeInput {
|
|
8
|
+
}
|
|
9
|
+
export const defaultVerificationCodeInputConfig = foundationVerificationCodeInputConfig;
|
|
10
|
+
export const zeroVerificationCodeInputShadowOptions = foundationVerificationCodeInputShadowOptions;
|
|
11
|
+
export const zeroVerificationCodeInput = VerificationCodeInput.compose(Object.assign({ baseName: 'verification-code-input', template,
|
|
12
|
+
styles, shadowOptions: zeroVerificationCodeInputShadowOptions }, defaultVerificationCodeInputConfig));
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { foundationVerificationCodeInputStyles } from '@genesislcap/foundation-ui';
|
|
2
|
+
import { css } from '@microsoft/fast-element';
|
|
3
|
+
import { PrimaryRapidColorHEX, defaultRapidActiveBGColor, defaultRapidBGColor, defaultRapidBorderUnfocusedColor, defaultRapidLabelColor, defaultRapidTextColor, } from '../_common';
|
|
4
|
+
export const verificationCodeInputStyles = css `
|
|
5
|
+
${foundationVerificationCodeInputStyles}
|
|
6
|
+
|
|
7
|
+
:host {
|
|
8
|
+
--primary-gradient-angle: -113.5deg;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.digit .control {
|
|
12
|
+
height: 100%;
|
|
13
|
+
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.digit .root {
|
|
17
|
+
border: calc(var(--stroke-width) * 1px) solid ${defaultRapidBorderUnfocusedColor};
|
|
18
|
+
background-color: ${defaultRapidBGColor};
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.digit:hover:not(.disabled) .root {
|
|
22
|
+
border-color: ${defaultRapidTextColor};
|
|
23
|
+
background: none;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.digit:focus-within:not(.disabled) .root {
|
|
27
|
+
background:
|
|
28
|
+
linear-gradient(
|
|
29
|
+
var(--primary-gradient-angle),
|
|
30
|
+
${PrimaryRapidColorHEX.blue} 0%,
|
|
31
|
+
${PrimaryRapidColorHEX.purple} 100%
|
|
32
|
+
)
|
|
33
|
+
top/100% 1px,
|
|
34
|
+
linear-gradient(
|
|
35
|
+
var(--primary-gradient-angle),
|
|
36
|
+
${PrimaryRapidColorHEX.blue} 0%,
|
|
37
|
+
${PrimaryRapidColorHEX.purple} 100%
|
|
38
|
+
)
|
|
39
|
+
bottom/100% 1px;
|
|
40
|
+
background-color: ${defaultRapidActiveBGColor};
|
|
41
|
+
background-origin: border-box;
|
|
42
|
+
background-repeat: no-repeat;
|
|
43
|
+
border: 1px solid transparent;
|
|
44
|
+
border-right-color: ${PrimaryRapidColorHEX.blue};
|
|
45
|
+
border-left-color: ${PrimaryRapidColorHEX.purple};
|
|
46
|
+
box-shadow: none;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.label {
|
|
50
|
+
color: ${defaultRapidLabelColor};
|
|
51
|
+
margin: calc(var(--design-unit) * 2px) 0;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.label-hidden {
|
|
55
|
+
margin: 0;
|
|
56
|
+
}
|
|
57
|
+
`;
|
package/dist/react.cjs
CHANGED
|
@@ -93,6 +93,7 @@ const { Tooltip: TooltipWC } = require('./esm/tooltip/tooltip.js');
|
|
|
93
93
|
const { TreeItem: TreeItemWC } = require('./esm/tree-item/tree-item.js');
|
|
94
94
|
const { TreeView: TreeViewWC } = require('./esm/tree-view/tree-view.js');
|
|
95
95
|
const { UrlInput: UrlInputWC } = require('./esm/url-input/url-input.js');
|
|
96
|
+
const { VerificationCodeInput: VerificationCodeInputWC } = require('./esm/verification-code-input/verification-code-input.js');
|
|
96
97
|
|
|
97
98
|
function _mergeRefs(...refs) {
|
|
98
99
|
return (value) => {
|
|
@@ -103,14 +104,14 @@ function _mergeRefs(...refs) {
|
|
|
103
104
|
};
|
|
104
105
|
}
|
|
105
106
|
|
|
106
|
-
const
|
|
107
|
+
const AccordionItem = React.forwardRef(function AccordionItem(props, ref) {
|
|
107
108
|
const { children, ...rest } = props;
|
|
108
|
-
return React.createElement(customElements.getName(
|
|
109
|
+
return React.createElement(customElements.getName(AccordionItemWC) ?? '%%prefix%%-card', { ...rest, ref }, children);
|
|
109
110
|
});
|
|
110
111
|
|
|
111
|
-
const
|
|
112
|
+
const Accordion = React.forwardRef(function Accordion(props, ref) {
|
|
112
113
|
const { children, ...rest } = props;
|
|
113
|
-
return React.createElement(customElements.getName(
|
|
114
|
+
return React.createElement(customElements.getName(AccordionWC) ?? '%%prefix%%-card', { ...rest, ref }, children);
|
|
114
115
|
});
|
|
115
116
|
|
|
116
117
|
const ActionsMenu = React.forwardRef(function ActionsMenu(props, ref) {
|
|
@@ -1044,9 +1045,26 @@ const UrlInput = React.forwardRef(function UrlInput(props, ref) {
|
|
|
1044
1045
|
return React.createElement(customElements.getName(UrlInputWC) ?? '%%prefix%%-url-input', { ...rest, ref }, children);
|
|
1045
1046
|
});
|
|
1046
1047
|
|
|
1048
|
+
const VerificationCodeInput = React.forwardRef(function VerificationCodeInput(props, ref) {
|
|
1049
|
+
const { onComplete, children, ...rest } = props;
|
|
1050
|
+
const _innerRef = React.useRef(null);
|
|
1051
|
+
const _onCompleteRef = React.useRef(onComplete);
|
|
1052
|
+
_onCompleteRef.current = onComplete;
|
|
1053
|
+
React.useLayoutEffect(() => {
|
|
1054
|
+
const el = _innerRef.current;
|
|
1055
|
+
if (!el) return;
|
|
1056
|
+
const _onCompleteFn = (e) => _onCompleteRef.current?.(e);
|
|
1057
|
+
el.addEventListener('complete', _onCompleteFn);
|
|
1058
|
+
return () => {
|
|
1059
|
+
el.removeEventListener('complete', _onCompleteFn);
|
|
1060
|
+
};
|
|
1061
|
+
}, []);
|
|
1062
|
+
return React.createElement(customElements.getName(VerificationCodeInputWC) ?? '%%prefix%%-verification-code-input', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
1063
|
+
});
|
|
1064
|
+
|
|
1047
1065
|
module.exports = {
|
|
1048
|
-
Accordion,
|
|
1049
1066
|
AccordionItem,
|
|
1067
|
+
Accordion,
|
|
1050
1068
|
ActionsMenu,
|
|
1051
1069
|
AiCriteriaSearch,
|
|
1052
1070
|
AiIndicator,
|
|
@@ -1134,4 +1152,5 @@ module.exports = {
|
|
|
1134
1152
|
TreeItem,
|
|
1135
1153
|
TreeView,
|
|
1136
1154
|
UrlInput,
|
|
1155
|
+
VerificationCodeInput,
|
|
1137
1156
|
};
|
package/dist/react.mjs
CHANGED
|
@@ -91,6 +91,7 @@ import { Tooltip as TooltipWC } from './esm/tooltip/tooltip.js';
|
|
|
91
91
|
import { TreeItem as TreeItemWC } from './esm/tree-item/tree-item.js';
|
|
92
92
|
import { TreeView as TreeViewWC } from './esm/tree-view/tree-view.js';
|
|
93
93
|
import { UrlInput as UrlInputWC } from './esm/url-input/url-input.js';
|
|
94
|
+
import { VerificationCodeInput as VerificationCodeInputWC } from './esm/verification-code-input/verification-code-input.js';
|
|
94
95
|
|
|
95
96
|
function _mergeRefs(...refs) {
|
|
96
97
|
return (value) => {
|
|
@@ -101,14 +102,14 @@ function _mergeRefs(...refs) {
|
|
|
101
102
|
};
|
|
102
103
|
}
|
|
103
104
|
|
|
104
|
-
export const
|
|
105
|
+
export const AccordionItem = React.forwardRef(function AccordionItem(props, ref) {
|
|
105
106
|
const { children, ...rest } = props;
|
|
106
|
-
return React.createElement(customElements.getName(
|
|
107
|
+
return React.createElement(customElements.getName(AccordionItemWC) ?? '%%prefix%%-card', { ...rest, ref }, children);
|
|
107
108
|
});
|
|
108
109
|
|
|
109
|
-
export const
|
|
110
|
+
export const Accordion = React.forwardRef(function Accordion(props, ref) {
|
|
110
111
|
const { children, ...rest } = props;
|
|
111
|
-
return React.createElement(customElements.getName(
|
|
112
|
+
return React.createElement(customElements.getName(AccordionWC) ?? '%%prefix%%-card', { ...rest, ref }, children);
|
|
112
113
|
});
|
|
113
114
|
|
|
114
115
|
export const ActionsMenu = React.forwardRef(function ActionsMenu(props, ref) {
|
|
@@ -1041,3 +1042,20 @@ export const UrlInput = React.forwardRef(function UrlInput(props, ref) {
|
|
|
1041
1042
|
const { children, ...rest } = props;
|
|
1042
1043
|
return React.createElement(customElements.getName(UrlInputWC) ?? '%%prefix%%-url-input', { ...rest, ref }, children);
|
|
1043
1044
|
});
|
|
1045
|
+
|
|
1046
|
+
export const VerificationCodeInput = React.forwardRef(function VerificationCodeInput(props, ref) {
|
|
1047
|
+
const { onComplete, children, ...rest } = props;
|
|
1048
|
+
const _innerRef = React.useRef(null);
|
|
1049
|
+
const _onCompleteRef = React.useRef(onComplete);
|
|
1050
|
+
_onCompleteRef.current = onComplete;
|
|
1051
|
+
React.useLayoutEffect(() => {
|
|
1052
|
+
const el = _innerRef.current;
|
|
1053
|
+
if (!el) return;
|
|
1054
|
+
const _onCompleteFn = (e) => _onCompleteRef.current?.(e);
|
|
1055
|
+
el.addEventListener('complete', _onCompleteFn);
|
|
1056
|
+
return () => {
|
|
1057
|
+
el.removeEventListener('complete', _onCompleteFn);
|
|
1058
|
+
};
|
|
1059
|
+
}, []);
|
|
1060
|
+
return React.createElement(customElements.getName(VerificationCodeInputWC) ?? '%%prefix%%-verification-code-input', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
1061
|
+
});
|
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": "15.1
|
|
4
|
+
"version": "15.2.1",
|
|
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": "15.1
|
|
77
|
-
"@genesislcap/rollup-builder": "15.1
|
|
78
|
-
"@genesislcap/ts-builder": "15.1
|
|
79
|
-
"@genesislcap/uvu-playwright-builder": "15.1
|
|
80
|
-
"@genesislcap/vite-builder": "15.1
|
|
81
|
-
"@genesislcap/webpack-builder": "15.1
|
|
76
|
+
"@genesislcap/genx": "15.2.1",
|
|
77
|
+
"@genesislcap/rollup-builder": "15.2.1",
|
|
78
|
+
"@genesislcap/ts-builder": "15.2.1",
|
|
79
|
+
"@genesislcap/uvu-playwright-builder": "15.2.1",
|
|
80
|
+
"@genesislcap/vite-builder": "15.2.1",
|
|
81
|
+
"@genesislcap/webpack-builder": "15.2.1"
|
|
82
82
|
},
|
|
83
83
|
"dependencies": {
|
|
84
|
-
"@genesislcap/foundation-comms": "15.1
|
|
85
|
-
"@genesislcap/foundation-logger": "15.1
|
|
86
|
-
"@genesislcap/foundation-ui": "15.1
|
|
87
|
-
"@genesislcap/foundation-utils": "15.1
|
|
84
|
+
"@genesislcap/foundation-comms": "15.2.1",
|
|
85
|
+
"@genesislcap/foundation-logger": "15.2.1",
|
|
86
|
+
"@genesislcap/foundation-ui": "15.2.1",
|
|
87
|
+
"@genesislcap/foundation-utils": "15.2.1",
|
|
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": "3917f3dc0bb5f4487bd30b37360fa0cddda92f0c"
|
|
115
115
|
}
|