@genesislcap/foundation-zero 14.490.0 → 14.491.0-FUI-2567.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.
@@ -328,6 +328,17 @@ export declare const baseComponents: {
328
328
  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>>;
329
329
  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>;
330
330
  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>;
331
+ zeroVerificationCodeInput: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
332
+ baseName: string;
333
+ template: import("@microsoft/fast-element").ViewTemplate<import("@genesislcap/foundation-ui").VerificationCodeInput, any>;
334
+ styles: import("@microsoft/fast-element").ElementStyles;
335
+ shadowOptions: ShadowRootInit;
336
+ }>) => import("@microsoft/fast-foundation").FoundationElementRegistry<{
337
+ baseName: string;
338
+ template: import("@microsoft/fast-element").ViewTemplate<import("@genesislcap/foundation-ui").VerificationCodeInput, any>;
339
+ styles: import("@microsoft/fast-element").ElementStyles;
340
+ shadowOptions: ShadowRootInit;
341
+ }, typeof import("./verification-code-input").VerificationCodeInput>;
331
342
  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>;
332
343
  register(container?: Container, ...rest: any[]): void;
333
344
  };
@@ -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;AAsF5D,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAsFJ,SAAS,WAAW,GAAG,EAAE;CAe/C,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"}
@@ -84,4 +84,5 @@ export * from './tooltip';
84
84
  export * from './tree-item';
85
85
  export * from './tree-view';
86
86
  export * from './url-input';
87
+ export * from './verification-code-input';
87
88
  //# sourceMappingURL=index.d.ts.map
@@ -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;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,2BAA2B,CAAC;AAC1C,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,0BAA0B,CAAC;AACzC,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AA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,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,2BAA2B,CAAC"}
@@ -90,6 +90,7 @@ import type { Tooltip as TooltipWC } from './tooltip/tooltip';
90
90
  import type { TreeItem as TreeItemWC } from './tree-item/tree-item';
91
91
  import type { TreeView as TreeViewWC } from './tree-view/tree-view';
92
92
  import type { UrlInput as UrlInputWC } from './url-input/url-input';
93
+ import type { VerificationCodeInput as VerificationCodeInputWC } from './verification-code-input/verification-code-input';
93
94
  import type { AddGroupEventDetail, AddRuleEventDetail, DelGroupEventDetail, DelRuleEventDetail, UpdateGroupEventDetail, UpdateRuleEventDetail } from '@genesislcap/expression-builder';
94
95
  import type { ClearOptions, FileSelectedEventDetail, FilterChangedEventDetail, FilterClearedEventDetail, MultiselectOption, OpenChangeEventDetail, SelectedOption, StepClickEventDetail, ValidationError, ValidationFailureEventDetail } from '@genesislcap/foundation-ui';
95
96
 
@@ -122,23 +123,23 @@ interface HTMLWCProps extends React.AriaAttributes {
122
123
  onInput?(e: Event): void;
123
124
  }
124
125
 
125
- export declare const AccordionItem: React.ForwardRefExoticComponent<
126
+ export declare const Accordion: React.ForwardRefExoticComponent<
126
127
  React.PropsWithChildren<
127
- Omit<PublicOf<AccordionItemWC>, 'children' | 'style'> &
128
+ Omit<PublicOf<AccordionWC>, 'children' | 'style'> &
128
129
  HTMLWCProps & {
129
130
  }
130
- > & React.RefAttributes<AccordionItemWC>
131
+ > & React.RefAttributes<AccordionWC>
131
132
  >;
132
- export type AccordionItemRef = AccordionItemWC;
133
+ export type AccordionRef = AccordionWC;
133
134
 
134
- export declare const Accordion: React.ForwardRefExoticComponent<
135
+ export declare const AccordionItem: React.ForwardRefExoticComponent<
135
136
  React.PropsWithChildren<
136
- Omit<PublicOf<AccordionWC>, 'children' | 'style'> &
137
+ Omit<PublicOf<AccordionItemWC>, 'children' | 'style'> &
137
138
  HTMLWCProps & {
138
139
  }
139
- > & React.RefAttributes<AccordionWC>
140
+ > & React.RefAttributes<AccordionItemWC>
140
141
  >;
141
- export type AccordionRef = AccordionWC;
142
+ export type AccordionItemRef = AccordionItemWC;
142
143
 
143
144
  export declare const ActionsMenu: React.ForwardRefExoticComponent<
144
145
  React.PropsWithChildren<
@@ -972,4 +973,14 @@ export declare const UrlInput: React.ForwardRefExoticComponent<
972
973
  >;
973
974
  export type UrlInputRef = UrlInputWC;
974
975
 
976
+ export declare const VerificationCodeInput: React.ForwardRefExoticComponent<
977
+ React.PropsWithChildren<
978
+ Omit<PublicOf<VerificationCodeInputWC>, 'children' | 'style'> &
979
+ HTMLWCProps & {
980
+ onComplete?: (event: CustomEvent<unknown>) => void;
981
+ }
982
+ > & React.RefAttributes<VerificationCodeInputWC>
983
+ >;
984
+ export type VerificationCodeInputRef = VerificationCodeInputWC;
985
+
975
986
  export {};
@@ -0,0 +1,4 @@
1
+ export * from './verification-code-input';
2
+ export * from './verification-code-input.styles';
3
+ export * from './verification-code-input.template';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -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,3 @@
1
+ import { ElementStyles } from '@microsoft/fast-element';
2
+ export declare const verificationCodeInputStyles: ElementStyles;
3
+ //# sourceMappingURL=verification-code-input.styles.d.ts.map
@@ -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,2 @@
1
+ export declare const verificationCodeInputTemplate: import("@microsoft/fast-element").ViewTemplate<import("@genesislcap/foundation-ui").VerificationCodeInput, any>;
2
+ //# sourceMappingURL=verification-code-input.template.d.ts.map
@@ -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"}
@@ -83,6 +83,7 @@ import { zeroTooltip } from './tooltip';
83
83
  import { zeroTreeItem } from './tree-item';
84
84
  import { zeroTreeView } from './tree-view';
85
85
  import { zeroUrlInput } from './url-input';
86
+ import { zeroVerificationCodeInput } from './verification-code-input';
86
87
  export const baseComponents = {
87
88
  zeroAccordion,
88
89
  zeroAccordionItem,
@@ -168,6 +169,7 @@ export const baseComponents = {
168
169
  zeroTreeItem,
169
170
  zeroTreeView,
170
171
  zeroUrlInput,
172
+ zeroVerificationCodeInput,
171
173
  zeroSectionNavigator,
172
174
  register(container, ...rest) {
173
175
  if (!container) {
package/dist/esm/index.js CHANGED
@@ -84,3 +84,4 @@ export * from './tooltip';
84
84
  export * from './tree-item';
85
85
  export * from './tree-view';
86
86
  export * from './url-input';
87
+ export * from './verification-code-input';
@@ -0,0 +1,3 @@
1
+ export * from './verification-code-input';
2
+ export * from './verification-code-input.styles';
3
+ export * from './verification-code-input.template';
@@ -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
+ `;
@@ -0,0 +1,2 @@
1
+ import { foundationVerificationCodeInputTemplate } from '@genesislcap/foundation-ui';
2
+ export const verificationCodeInputTemplate = foundationVerificationCodeInputTemplate;
package/dist/react.cjs CHANGED
@@ -92,6 +92,7 @@ const { Tooltip: TooltipWC } = require('./esm/tooltip/tooltip.js');
92
92
  const { TreeItem: TreeItemWC } = require('./esm/tree-item/tree-item.js');
93
93
  const { TreeView: TreeViewWC } = require('./esm/tree-view/tree-view.js');
94
94
  const { UrlInput: UrlInputWC } = require('./esm/url-input/url-input.js');
95
+ const { VerificationCodeInput: VerificationCodeInputWC } = require('./esm/verification-code-input/verification-code-input.js');
95
96
 
96
97
  function _mergeRefs(...refs) {
97
98
  return (value) => {
@@ -102,14 +103,14 @@ function _mergeRefs(...refs) {
102
103
  };
103
104
  }
104
105
 
105
- const AccordionItem = React.forwardRef(function AccordionItem(props, ref) {
106
+ const Accordion = React.forwardRef(function Accordion(props, ref) {
106
107
  const { children, ...rest } = props;
107
- return React.createElement(customElements.getName(AccordionItemWC) ?? '%%prefix%%-card', { ...rest, ref }, children);
108
+ return React.createElement(customElements.getName(AccordionWC) ?? '%%prefix%%-card', { ...rest, ref }, children);
108
109
  });
109
110
 
110
- const Accordion = React.forwardRef(function Accordion(props, ref) {
111
+ const AccordionItem = React.forwardRef(function AccordionItem(props, ref) {
111
112
  const { children, ...rest } = props;
112
- return React.createElement(customElements.getName(AccordionWC) ?? '%%prefix%%-card', { ...rest, ref }, children);
113
+ return React.createElement(customElements.getName(AccordionItemWC) ?? '%%prefix%%-card', { ...rest, ref }, children);
113
114
  });
114
115
 
115
116
  const ActionsMenu = React.forwardRef(function ActionsMenu(props, ref) {
@@ -1021,9 +1022,26 @@ const UrlInput = React.forwardRef(function UrlInput(props, ref) {
1021
1022
  return React.createElement(customElements.getName(UrlInputWC) ?? '%%prefix%%-url-input', { ...rest, ref }, children);
1022
1023
  });
1023
1024
 
1025
+ const VerificationCodeInput = React.forwardRef(function VerificationCodeInput(props, ref) {
1026
+ const { onComplete, children, ...rest } = props;
1027
+ const _innerRef = React.useRef(null);
1028
+ const _onCompleteRef = React.useRef(onComplete);
1029
+ _onCompleteRef.current = onComplete;
1030
+ React.useLayoutEffect(() => {
1031
+ const el = _innerRef.current;
1032
+ if (!el) return;
1033
+ const _onCompleteFn = (e) => _onCompleteRef.current?.(e);
1034
+ el.addEventListener('complete', _onCompleteFn);
1035
+ return () => {
1036
+ el.removeEventListener('complete', _onCompleteFn);
1037
+ };
1038
+ }, []);
1039
+ return React.createElement(customElements.getName(VerificationCodeInputWC) ?? '%%prefix%%-verification-code-input', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
1040
+ });
1041
+
1024
1042
  module.exports = {
1025
- AccordionItem,
1026
1043
  Accordion,
1044
+ AccordionItem,
1027
1045
  ActionsMenu,
1028
1046
  AiCriteriaSearch,
1029
1047
  AiIndicator,
@@ -1110,4 +1128,5 @@ module.exports = {
1110
1128
  TreeItem,
1111
1129
  TreeView,
1112
1130
  UrlInput,
1131
+ VerificationCodeInput,
1113
1132
  };
package/dist/react.mjs CHANGED
@@ -90,6 +90,7 @@ import { Tooltip as TooltipWC } from './esm/tooltip/tooltip.js';
90
90
  import { TreeItem as TreeItemWC } from './esm/tree-item/tree-item.js';
91
91
  import { TreeView as TreeViewWC } from './esm/tree-view/tree-view.js';
92
92
  import { UrlInput as UrlInputWC } from './esm/url-input/url-input.js';
93
+ import { VerificationCodeInput as VerificationCodeInputWC } from './esm/verification-code-input/verification-code-input.js';
93
94
 
94
95
  function _mergeRefs(...refs) {
95
96
  return (value) => {
@@ -100,14 +101,14 @@ function _mergeRefs(...refs) {
100
101
  };
101
102
  }
102
103
 
103
- export const AccordionItem = React.forwardRef(function AccordionItem(props, ref) {
104
+ export const Accordion = React.forwardRef(function Accordion(props, ref) {
104
105
  const { children, ...rest } = props;
105
- return React.createElement(customElements.getName(AccordionItemWC) ?? '%%prefix%%-card', { ...rest, ref }, children);
106
+ return React.createElement(customElements.getName(AccordionWC) ?? '%%prefix%%-card', { ...rest, ref }, children);
106
107
  });
107
108
 
108
- export const Accordion = React.forwardRef(function Accordion(props, ref) {
109
+ export const AccordionItem = React.forwardRef(function AccordionItem(props, ref) {
109
110
  const { children, ...rest } = props;
110
- return React.createElement(customElements.getName(AccordionWC) ?? '%%prefix%%-card', { ...rest, ref }, children);
111
+ return React.createElement(customElements.getName(AccordionItemWC) ?? '%%prefix%%-card', { ...rest, ref }, children);
111
112
  });
112
113
 
113
114
  export const ActionsMenu = React.forwardRef(function ActionsMenu(props, ref) {
@@ -1018,3 +1019,20 @@ export const UrlInput = React.forwardRef(function UrlInput(props, ref) {
1018
1019
  const { children, ...rest } = props;
1019
1020
  return React.createElement(customElements.getName(UrlInputWC) ?? '%%prefix%%-url-input', { ...rest, ref }, children);
1020
1021
  });
1022
+
1023
+ export const VerificationCodeInput = React.forwardRef(function VerificationCodeInput(props, ref) {
1024
+ const { onComplete, children, ...rest } = props;
1025
+ const _innerRef = React.useRef(null);
1026
+ const _onCompleteRef = React.useRef(onComplete);
1027
+ _onCompleteRef.current = onComplete;
1028
+ React.useLayoutEffect(() => {
1029
+ const el = _innerRef.current;
1030
+ if (!el) return;
1031
+ const _onCompleteFn = (e) => _onCompleteRef.current?.(e);
1032
+ el.addEventListener('complete', _onCompleteFn);
1033
+ return () => {
1034
+ el.removeEventListener('complete', _onCompleteFn);
1035
+ };
1036
+ }, []);
1037
+ return React.createElement(customElements.getName(VerificationCodeInputWC) ?? '%%prefix%%-verification-code-input', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
1038
+ });
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.490.0",
4
+ "version": "14.491.0-FUI-2567.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": "14.490.0",
77
- "@genesislcap/rollup-builder": "14.490.0",
78
- "@genesislcap/ts-builder": "14.490.0",
79
- "@genesislcap/uvu-playwright-builder": "14.490.0",
80
- "@genesislcap/vite-builder": "14.490.0",
81
- "@genesislcap/webpack-builder": "14.490.0"
76
+ "@genesislcap/genx": "14.491.0-FUI-2567.1",
77
+ "@genesislcap/rollup-builder": "14.491.0-FUI-2567.1",
78
+ "@genesislcap/ts-builder": "14.491.0-FUI-2567.1",
79
+ "@genesislcap/uvu-playwright-builder": "14.491.0-FUI-2567.1",
80
+ "@genesislcap/vite-builder": "14.491.0-FUI-2567.1",
81
+ "@genesislcap/webpack-builder": "14.491.0-FUI-2567.1"
82
82
  },
83
83
  "dependencies": {
84
- "@genesislcap/foundation-comms": "14.490.0",
85
- "@genesislcap/foundation-logger": "14.490.0",
86
- "@genesislcap/foundation-ui": "14.490.0",
87
- "@genesislcap/foundation-utils": "14.490.0",
84
+ "@genesislcap/foundation-comms": "14.491.0-FUI-2567.1",
85
+ "@genesislcap/foundation-logger": "14.491.0-FUI-2567.1",
86
+ "@genesislcap/foundation-ui": "14.491.0-FUI-2567.1",
87
+ "@genesislcap/foundation-utils": "14.491.0-FUI-2567.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": "2c5e250d11742abd582e39a370b003ef8d04a5fb"
114
+ "gitHead": "35adb206a99accc5a788fd8f1e1161e16b19351e"
115
115
  }