@genesislcap/foundation-zero 15.58.2 → 15.59.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.
@@ -133,23 +133,23 @@ export declare const Accordion: React.ForwardRefExoticComponent<
133
133
  >;
134
134
  export type AccordionRef = AccordionWC;
135
135
 
136
- export declare const ActionsMenu: React.ForwardRefExoticComponent<
136
+ export declare const AccordionItem: React.ForwardRefExoticComponent<
137
137
  React.PropsWithChildren<
138
- Omit<PublicOf<ActionsMenuWC>, 'children' | 'style'> &
138
+ Omit<PublicOf<AccordionItemWC>, 'children' | 'style'> &
139
139
  HTMLWCProps & {
140
140
  }
141
- > & React.RefAttributes<ActionsMenuWC>
141
+ > & React.RefAttributes<AccordionItemWC>
142
142
  >;
143
- export type ActionsMenuRef = ActionsMenuWC;
143
+ export type AccordionItemRef = AccordionItemWC;
144
144
 
145
- export declare const AccordionItem: React.ForwardRefExoticComponent<
145
+ export declare const ActionsMenu: React.ForwardRefExoticComponent<
146
146
  React.PropsWithChildren<
147
- Omit<PublicOf<AccordionItemWC>, 'children' | 'style'> &
147
+ Omit<PublicOf<ActionsMenuWC>, 'children' | 'style'> &
148
148
  HTMLWCProps & {
149
149
  }
150
- > & React.RefAttributes<AccordionItemWC>
150
+ > & React.RefAttributes<ActionsMenuWC>
151
151
  >;
152
- export type AccordionItemRef = AccordionItemWC;
152
+ export type ActionsMenuRef = ActionsMenuWC;
153
153
 
154
154
  export declare const AiCriteriaSearch: React.ForwardRefExoticComponent<
155
155
  React.PropsWithChildren<
@@ -387,23 +387,23 @@ export declare const DropdownMenu: React.ForwardRefExoticComponent<
387
387
  >;
388
388
  export type DropdownMenuRef = DropdownMenuWC;
389
389
 
390
- export declare const EnvironmentIndicator: React.ForwardRefExoticComponent<
390
+ export declare const ErrorBanner: React.ForwardRefExoticComponent<
391
391
  React.PropsWithChildren<
392
- Omit<PublicOf<EnvironmentIndicatorWC>, 'children' | 'style'> &
392
+ Omit<PublicOf<ErrorBannerWC>, 'children' | 'style'> &
393
393
  HTMLWCProps & {
394
394
  }
395
- > & React.RefAttributes<EnvironmentIndicatorWC>
395
+ > & React.RefAttributes<ErrorBannerWC>
396
396
  >;
397
- export type EnvironmentIndicatorRef = EnvironmentIndicatorWC;
397
+ export type ErrorBannerRef = ErrorBannerWC;
398
398
 
399
- export declare const ErrorBanner: React.ForwardRefExoticComponent<
399
+ export declare const EnvironmentIndicator: React.ForwardRefExoticComponent<
400
400
  React.PropsWithChildren<
401
- Omit<PublicOf<ErrorBannerWC>, 'children' | 'style'> &
401
+ Omit<PublicOf<EnvironmentIndicatorWC>, 'children' | 'style'> &
402
402
  HTMLWCProps & {
403
403
  }
404
- > & React.RefAttributes<ErrorBannerWC>
404
+ > & React.RefAttributes<EnvironmentIndicatorWC>
405
405
  >;
406
- export type ErrorBannerRef = ErrorBannerWC;
406
+ export type EnvironmentIndicatorRef = EnvironmentIndicatorWC;
407
407
 
408
408
  export declare const ErrorBoundary: React.ForwardRefExoticComponent<
409
409
  React.PropsWithChildren<
@@ -468,6 +468,17 @@ export declare const ZeroValueExpressionBuilder: React.ForwardRefExoticComponent
468
468
  >;
469
469
  export type ZeroValueExpressionBuilderRef = ZeroValueExpressionBuilderWC;
470
470
 
471
+ export declare const Filter: React.ForwardRefExoticComponent<
472
+ React.PropsWithChildren<
473
+ Omit<PublicOf<FilterWC>, 'children' | 'style'> &
474
+ HTMLWCProps & {
475
+ onFilterChanged?: (event: CustomEvent<FilterChangedEventDetail>) => void;
476
+ onFilterCleared?: (event: CustomEvent<FilterClearedEventDetail>) => void;
477
+ }
478
+ > & React.RefAttributes<FilterWC>
479
+ >;
480
+ export type FilterRef = FilterWC;
481
+
471
482
  export declare const FileUpload: React.ForwardRefExoticComponent<
472
483
  React.PropsWithChildren<
473
484
  Omit<PublicOf<FileUploadWC>, 'children' | 'style'> &
@@ -481,17 +492,6 @@ export declare const FileUpload: React.ForwardRefExoticComponent<
481
492
  >;
482
493
  export type FileUploadRef = FileUploadWC;
483
494
 
484
- export declare const Filter: React.ForwardRefExoticComponent<
485
- React.PropsWithChildren<
486
- Omit<PublicOf<FilterWC>, 'children' | 'style'> &
487
- HTMLWCProps & {
488
- onFilterChanged?: (event: CustomEvent<FilterChangedEventDetail>) => void;
489
- onFilterCleared?: (event: CustomEvent<FilterClearedEventDetail>) => void;
490
- }
491
- > & React.RefAttributes<FilterWC>
492
- >;
493
- export type FilterRef = FilterWC;
494
-
495
495
  export declare const FilterBar: React.ForwardRefExoticComponent<
496
496
  React.PropsWithChildren<
497
497
  Omit<PublicOf<FilterBarWC>, 'children' | 'style'> &
package/dist/react.cjs CHANGED
@@ -109,14 +109,14 @@ const Accordion = React.forwardRef(function Accordion(props, ref) {
109
109
  return React.createElement(customElements.getName(AccordionWC) ?? '%%prefix%%-card', { ...rest, ref }, children);
110
110
  });
111
111
 
112
- const ActionsMenu = React.forwardRef(function ActionsMenu(props, ref) {
112
+ const AccordionItem = React.forwardRef(function AccordionItem(props, ref) {
113
113
  const { children, ...rest } = props;
114
- return React.createElement(customElements.getName(ActionsMenuWC) ?? '%%prefix%%-actions-menu', { ...rest, ref }, children);
114
+ return React.createElement(customElements.getName(AccordionItemWC) ?? '%%prefix%%-card', { ...rest, ref }, children);
115
115
  });
116
116
 
117
- const AccordionItem = React.forwardRef(function AccordionItem(props, ref) {
117
+ const ActionsMenu = React.forwardRef(function ActionsMenu(props, ref) {
118
118
  const { children, ...rest } = props;
119
- return React.createElement(customElements.getName(AccordionItemWC) ?? '%%prefix%%-card', { ...rest, ref }, children);
119
+ return React.createElement(customElements.getName(ActionsMenuWC) ?? '%%prefix%%-actions-menu', { ...rest, ref }, children);
120
120
  });
121
121
 
122
122
  const AiCriteriaSearch = React.forwardRef(function AiCriteriaSearch(props, ref) {
@@ -362,14 +362,14 @@ const DropdownMenu = React.forwardRef(function DropdownMenu(props, ref) {
362
362
  return React.createElement(customElements.getName(DropdownMenuWC) ?? '%%prefix%%-dropdown-menu', { ...rest, ref }, children);
363
363
  });
364
364
 
365
- const EnvironmentIndicator = React.forwardRef(function EnvironmentIndicator(props, ref) {
365
+ const ErrorBanner = React.forwardRef(function ErrorBanner(props, ref) {
366
366
  const { children, ...rest } = props;
367
- return React.createElement(customElements.getName(EnvironmentIndicatorWC) ?? '%%prefix%%-environment-indicator', { ...rest, ref }, children);
367
+ return React.createElement(customElements.getName(ErrorBannerWC) ?? '%%prefix%%-error-banner', { ...rest, ref }, children);
368
368
  });
369
369
 
370
- const ErrorBanner = React.forwardRef(function ErrorBanner(props, ref) {
370
+ const EnvironmentIndicator = React.forwardRef(function EnvironmentIndicator(props, ref) {
371
371
  const { children, ...rest } = props;
372
- return React.createElement(customElements.getName(ErrorBannerWC) ?? '%%prefix%%-error-banner', { ...rest, ref }, children);
372
+ return React.createElement(customElements.getName(EnvironmentIndicatorWC) ?? '%%prefix%%-environment-indicator', { ...rest, ref }, children);
373
373
  });
374
374
 
375
375
  const ErrorBoundary = React.forwardRef(function ErrorBoundary(props, ref) {
@@ -508,6 +508,28 @@ const ZeroValueExpressionBuilder = React.forwardRef(function ZeroValueExpression
508
508
  return React.createElement(customElements.getName(ZeroValueExpressionBuilderWC) ?? 'zero-value-expression-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
509
509
  });
510
510
 
511
+ const Filter = React.forwardRef(function Filter(props, ref) {
512
+ const { onFilterChanged, onFilterCleared, children, ...rest } = props;
513
+ const _innerRef = React.useRef(null);
514
+ const _onFilterChangedRef = React.useRef(onFilterChanged);
515
+ _onFilterChangedRef.current = onFilterChanged;
516
+ const _onFilterClearedRef = React.useRef(onFilterCleared);
517
+ _onFilterClearedRef.current = onFilterCleared;
518
+ React.useLayoutEffect(() => {
519
+ const el = _innerRef.current;
520
+ if (!el) return;
521
+ const _onFilterChangedFn = (e) => _onFilterChangedRef.current?.(e);
522
+ el.addEventListener('filter-changed', _onFilterChangedFn);
523
+ const _onFilterClearedFn = (e) => _onFilterClearedRef.current?.(e);
524
+ el.addEventListener('filter-cleared', _onFilterClearedFn);
525
+ return () => {
526
+ el.removeEventListener('filter-changed', _onFilterChangedFn);
527
+ el.removeEventListener('filter-cleared', _onFilterClearedFn);
528
+ };
529
+ }, []);
530
+ return React.createElement(customElements.getName(FilterWC) ?? '%%prefix%%-filter', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
531
+ });
532
+
511
533
  const FileUpload = React.forwardRef(function FileUpload(props, ref) {
512
534
  const { onFileSelected, onSuccess, onErrorOut, onClear, children, ...rest } = props;
513
535
  const _innerRef = React.useRef(null);
@@ -540,28 +562,6 @@ const FileUpload = React.forwardRef(function FileUpload(props, ref) {
540
562
  return React.createElement(customElements.getName(FileUploadWC) ?? '%%prefix%%-file-upload', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
541
563
  });
542
564
 
543
- const Filter = React.forwardRef(function Filter(props, ref) {
544
- const { onFilterChanged, onFilterCleared, children, ...rest } = props;
545
- const _innerRef = React.useRef(null);
546
- const _onFilterChangedRef = React.useRef(onFilterChanged);
547
- _onFilterChangedRef.current = onFilterChanged;
548
- const _onFilterClearedRef = React.useRef(onFilterCleared);
549
- _onFilterClearedRef.current = onFilterCleared;
550
- React.useLayoutEffect(() => {
551
- const el = _innerRef.current;
552
- if (!el) return;
553
- const _onFilterChangedFn = (e) => _onFilterChangedRef.current?.(e);
554
- el.addEventListener('filter-changed', _onFilterChangedFn);
555
- const _onFilterClearedFn = (e) => _onFilterClearedRef.current?.(e);
556
- el.addEventListener('filter-cleared', _onFilterClearedFn);
557
- return () => {
558
- el.removeEventListener('filter-changed', _onFilterChangedFn);
559
- el.removeEventListener('filter-cleared', _onFilterClearedFn);
560
- };
561
- }, []);
562
- return React.createElement(customElements.getName(FilterWC) ?? '%%prefix%%-filter', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
563
- });
564
-
565
565
  const FilterBar = React.forwardRef(function FilterBar(props, ref) {
566
566
  const { children, ...rest } = props;
567
567
  return React.createElement(customElements.getName(FilterBarWC) ?? '%%prefix%%-filter-bar', { ...rest, ref }, children);
@@ -1064,8 +1064,8 @@ const VerificationCodeInput = React.forwardRef(function VerificationCodeInput(pr
1064
1064
 
1065
1065
  module.exports = {
1066
1066
  Accordion,
1067
- ActionsMenu,
1068
1067
  AccordionItem,
1068
+ ActionsMenu,
1069
1069
  AiCriteriaSearch,
1070
1070
  AiIndicator,
1071
1071
  Anchor,
@@ -1091,15 +1091,15 @@ module.exports = {
1091
1091
  Disclosure,
1092
1092
  Divider,
1093
1093
  DropdownMenu,
1094
- EnvironmentIndicator,
1095
1094
  ErrorBanner,
1095
+ EnvironmentIndicator,
1096
1096
  ErrorBoundary,
1097
1097
  ErrorDialog,
1098
1098
  ZeroExpressionBuilder,
1099
1099
  ZeroRuleExpressionBuilder,
1100
1100
  ZeroValueExpressionBuilder,
1101
- FileUpload,
1102
1101
  Filter,
1102
+ FileUpload,
1103
1103
  FilterBar,
1104
1104
  FlexLayout,
1105
1105
  Flipper,
package/dist/react.mjs CHANGED
@@ -107,14 +107,14 @@ export const Accordion = React.forwardRef(function Accordion(props, ref) {
107
107
  return React.createElement(customElements.getName(AccordionWC) ?? '%%prefix%%-card', { ...rest, ref }, children);
108
108
  });
109
109
 
110
- export const ActionsMenu = React.forwardRef(function ActionsMenu(props, ref) {
110
+ export const AccordionItem = React.forwardRef(function AccordionItem(props, ref) {
111
111
  const { children, ...rest } = props;
112
- return React.createElement(customElements.getName(ActionsMenuWC) ?? '%%prefix%%-actions-menu', { ...rest, ref }, children);
112
+ return React.createElement(customElements.getName(AccordionItemWC) ?? '%%prefix%%-card', { ...rest, ref }, children);
113
113
  });
114
114
 
115
- export const AccordionItem = React.forwardRef(function AccordionItem(props, ref) {
115
+ export const ActionsMenu = React.forwardRef(function ActionsMenu(props, ref) {
116
116
  const { children, ...rest } = props;
117
- return React.createElement(customElements.getName(AccordionItemWC) ?? '%%prefix%%-card', { ...rest, ref }, children);
117
+ return React.createElement(customElements.getName(ActionsMenuWC) ?? '%%prefix%%-actions-menu', { ...rest, ref }, children);
118
118
  });
119
119
 
120
120
  export const AiCriteriaSearch = React.forwardRef(function AiCriteriaSearch(props, ref) {
@@ -360,14 +360,14 @@ export const DropdownMenu = React.forwardRef(function DropdownMenu(props, ref) {
360
360
  return React.createElement(customElements.getName(DropdownMenuWC) ?? '%%prefix%%-dropdown-menu', { ...rest, ref }, children);
361
361
  });
362
362
 
363
- export const EnvironmentIndicator = React.forwardRef(function EnvironmentIndicator(props, ref) {
363
+ export const ErrorBanner = React.forwardRef(function ErrorBanner(props, ref) {
364
364
  const { children, ...rest } = props;
365
- return React.createElement(customElements.getName(EnvironmentIndicatorWC) ?? '%%prefix%%-environment-indicator', { ...rest, ref }, children);
365
+ return React.createElement(customElements.getName(ErrorBannerWC) ?? '%%prefix%%-error-banner', { ...rest, ref }, children);
366
366
  });
367
367
 
368
- export const ErrorBanner = React.forwardRef(function ErrorBanner(props, ref) {
368
+ export const EnvironmentIndicator = React.forwardRef(function EnvironmentIndicator(props, ref) {
369
369
  const { children, ...rest } = props;
370
- return React.createElement(customElements.getName(ErrorBannerWC) ?? '%%prefix%%-error-banner', { ...rest, ref }, children);
370
+ return React.createElement(customElements.getName(EnvironmentIndicatorWC) ?? '%%prefix%%-environment-indicator', { ...rest, ref }, children);
371
371
  });
372
372
 
373
373
  export const ErrorBoundary = React.forwardRef(function ErrorBoundary(props, ref) {
@@ -506,6 +506,28 @@ export const ZeroValueExpressionBuilder = React.forwardRef(function ZeroValueExp
506
506
  return React.createElement(customElements.getName(ZeroValueExpressionBuilderWC) ?? 'zero-value-expression-builder', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
507
507
  });
508
508
 
509
+ export const Filter = React.forwardRef(function Filter(props, ref) {
510
+ const { onFilterChanged, onFilterCleared, children, ...rest } = props;
511
+ const _innerRef = React.useRef(null);
512
+ const _onFilterChangedRef = React.useRef(onFilterChanged);
513
+ _onFilterChangedRef.current = onFilterChanged;
514
+ const _onFilterClearedRef = React.useRef(onFilterCleared);
515
+ _onFilterClearedRef.current = onFilterCleared;
516
+ React.useLayoutEffect(() => {
517
+ const el = _innerRef.current;
518
+ if (!el) return;
519
+ const _onFilterChangedFn = (e) => _onFilterChangedRef.current?.(e);
520
+ el.addEventListener('filter-changed', _onFilterChangedFn);
521
+ const _onFilterClearedFn = (e) => _onFilterClearedRef.current?.(e);
522
+ el.addEventListener('filter-cleared', _onFilterClearedFn);
523
+ return () => {
524
+ el.removeEventListener('filter-changed', _onFilterChangedFn);
525
+ el.removeEventListener('filter-cleared', _onFilterClearedFn);
526
+ };
527
+ }, []);
528
+ return React.createElement(customElements.getName(FilterWC) ?? '%%prefix%%-filter', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
529
+ });
530
+
509
531
  export const FileUpload = React.forwardRef(function FileUpload(props, ref) {
510
532
  const { onFileSelected, onSuccess, onErrorOut, onClear, children, ...rest } = props;
511
533
  const _innerRef = React.useRef(null);
@@ -538,28 +560,6 @@ export const FileUpload = React.forwardRef(function FileUpload(props, ref) {
538
560
  return React.createElement(customElements.getName(FileUploadWC) ?? '%%prefix%%-file-upload', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
539
561
  });
540
562
 
541
- export const Filter = React.forwardRef(function Filter(props, ref) {
542
- const { onFilterChanged, onFilterCleared, children, ...rest } = props;
543
- const _innerRef = React.useRef(null);
544
- const _onFilterChangedRef = React.useRef(onFilterChanged);
545
- _onFilterChangedRef.current = onFilterChanged;
546
- const _onFilterClearedRef = React.useRef(onFilterCleared);
547
- _onFilterClearedRef.current = onFilterCleared;
548
- React.useLayoutEffect(() => {
549
- const el = _innerRef.current;
550
- if (!el) return;
551
- const _onFilterChangedFn = (e) => _onFilterChangedRef.current?.(e);
552
- el.addEventListener('filter-changed', _onFilterChangedFn);
553
- const _onFilterClearedFn = (e) => _onFilterClearedRef.current?.(e);
554
- el.addEventListener('filter-cleared', _onFilterClearedFn);
555
- return () => {
556
- el.removeEventListener('filter-changed', _onFilterChangedFn);
557
- el.removeEventListener('filter-cleared', _onFilterClearedFn);
558
- };
559
- }, []);
560
- return React.createElement(customElements.getName(FilterWC) ?? '%%prefix%%-filter', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
561
- });
562
-
563
563
  export const FilterBar = React.forwardRef(function FilterBar(props, ref) {
564
564
  const { children, ...rest } = props;
565
565
  return React.createElement(customElements.getName(FilterBarWC) ?? '%%prefix%%-filter-bar', { ...rest, ref }, children);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-zero",
3
3
  "description": "Genesis Foundation Zero Design System",
4
- "version": "15.58.2",
4
+ "version": "15.59.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -70,17 +70,17 @@
70
70
  },
71
71
  "devDependencies": {
72
72
  "@genesiscommunitysuccess/analyzer-import-alias-plugin": "^5.0.3",
73
- "@genesislcap/genx": "15.58.2",
74
- "@genesislcap/ts-builder": "15.58.2",
75
- "@genesislcap/uvu-playwright-builder": "15.58.2",
76
- "@genesislcap/vite-builder": "15.58.2",
77
- "@genesislcap/webpack-builder": "15.58.2"
73
+ "@genesislcap/genx": "15.59.0",
74
+ "@genesislcap/ts-builder": "15.59.0",
75
+ "@genesislcap/uvu-playwright-builder": "15.59.0",
76
+ "@genesislcap/vite-builder": "15.59.0",
77
+ "@genesislcap/webpack-builder": "15.59.0"
78
78
  },
79
79
  "dependencies": {
80
- "@genesislcap/foundation-comms": "15.58.2",
81
- "@genesislcap/foundation-logger": "15.58.2",
82
- "@genesislcap/foundation-ui": "15.58.2",
83
- "@genesislcap/foundation-utils": "15.58.2",
80
+ "@genesislcap/foundation-comms": "15.59.0",
81
+ "@genesislcap/foundation-logger": "15.59.0",
82
+ "@genesislcap/foundation-ui": "15.59.0",
83
+ "@genesislcap/foundation-utils": "15.59.0",
84
84
  "@microsoft/fast-colors": "5.3.1",
85
85
  "@microsoft/fast-components": "2.30.6",
86
86
  "@microsoft/fast-element": "1.14.0",