@genesislcap/foundation-zero 15.15.2-FUI-2564.1 → 15.15.2-FUI-2603.8

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.
@@ -124,23 +124,23 @@ interface HTMLWCProps extends React.AriaAttributes {
124
124
  onInput?(e: Event): void;
125
125
  }
126
126
 
127
- export declare const AccordionItem: React.ForwardRefExoticComponent<
127
+ export declare const Accordion: React.ForwardRefExoticComponent<
128
128
  React.PropsWithChildren<
129
- Omit<PublicOf<AccordionItemWC>, 'children' | 'style'> &
129
+ Omit<PublicOf<AccordionWC>, 'children' | 'style'> &
130
130
  HTMLWCProps & {
131
131
  }
132
- > & React.RefAttributes<AccordionItemWC>
132
+ > & React.RefAttributes<AccordionWC>
133
133
  >;
134
- export type AccordionItemRef = AccordionItemWC;
134
+ export type AccordionRef = AccordionWC;
135
135
 
136
- export declare const Accordion: React.ForwardRefExoticComponent<
136
+ export declare const AccordionItem: React.ForwardRefExoticComponent<
137
137
  React.PropsWithChildren<
138
- Omit<PublicOf<AccordionWC>, 'children' | 'style'> &
138
+ Omit<PublicOf<AccordionItemWC>, 'children' | 'style'> &
139
139
  HTMLWCProps & {
140
140
  }
141
- > & React.RefAttributes<AccordionWC>
141
+ > & React.RefAttributes<AccordionItemWC>
142
142
  >;
143
- export type AccordionRef = AccordionWC;
143
+ export type AccordionItemRef = AccordionItemWC;
144
144
 
145
145
  export declare const ActionsMenu: React.ForwardRefExoticComponent<
146
146
  React.PropsWithChildren<
@@ -151,6 +151,15 @@ export declare const ActionsMenu: React.ForwardRefExoticComponent<
151
151
  >;
152
152
  export type ActionsMenuRef = ActionsMenuWC;
153
153
 
154
+ export declare const AiIndicator: React.ForwardRefExoticComponent<
155
+ React.PropsWithChildren<
156
+ Omit<PublicOf<AiIndicatorWC>, 'children' | 'style'> &
157
+ HTMLWCProps & {
158
+ }
159
+ > & React.RefAttributes<AiIndicatorWC>
160
+ >;
161
+ export type AiIndicatorRef = AiIndicatorWC;
162
+
154
163
  export declare const AiCriteriaSearch: React.ForwardRefExoticComponent<
155
164
  React.PropsWithChildren<
156
165
  Omit<PublicOf<AiCriteriaSearchWC>, 'children' | 'style'> &
@@ -162,15 +171,6 @@ export declare const AiCriteriaSearch: React.ForwardRefExoticComponent<
162
171
  >;
163
172
  export type AiCriteriaSearchRef = AiCriteriaSearchWC;
164
173
 
165
- export declare const AiIndicator: React.ForwardRefExoticComponent<
166
- React.PropsWithChildren<
167
- Omit<PublicOf<AiIndicatorWC>, 'children' | 'style'> &
168
- HTMLWCProps & {
169
- }
170
- > & React.RefAttributes<AiIndicatorWC>
171
- >;
172
- export type AiIndicatorRef = AiIndicatorWC;
173
-
174
174
  export declare const Anchor: React.ForwardRefExoticComponent<
175
175
  React.PropsWithChildren<
176
176
  Omit<PublicOf<AnchorWC>, 'children' | 'style'> &
@@ -558,14 +558,14 @@ export declare const HorizontalScroll: React.ForwardRefExoticComponent<
558
558
  >;
559
559
  export type HorizontalScrollRef = HorizontalScrollWC;
560
560
 
561
- export declare const Icon: React.ForwardRefExoticComponent<
561
+ export declare const ListboxOption: React.ForwardRefExoticComponent<
562
562
  React.PropsWithChildren<
563
- Omit<PublicOf<IconWC>, 'children' | 'style'> &
563
+ Omit<PublicOf<ListboxOptionWC>, 'children' | 'style'> &
564
564
  HTMLWCProps & {
565
565
  }
566
- > & React.RefAttributes<IconWC>
566
+ > & React.RefAttributes<ListboxOptionWC>
567
567
  >;
568
- export type IconRef = IconWC;
568
+ export type ListboxOptionRef = ListboxOptionWC;
569
569
 
570
570
  export declare const Listbox: React.ForwardRefExoticComponent<
571
571
  React.PropsWithChildren<
@@ -576,15 +576,6 @@ export declare const Listbox: React.ForwardRefExoticComponent<
576
576
  >;
577
577
  export type ListboxRef = ListboxWC;
578
578
 
579
- export declare const ListboxOption: React.ForwardRefExoticComponent<
580
- React.PropsWithChildren<
581
- Omit<PublicOf<ListboxOptionWC>, 'children' | 'style'> &
582
- HTMLWCProps & {
583
- }
584
- > & React.RefAttributes<ListboxOptionWC>
585
- >;
586
- export type ListboxOptionRef = ListboxOptionWC;
587
-
588
579
  export declare const Menu: React.ForwardRefExoticComponent<
589
580
  React.PropsWithChildren<
590
581
  Omit<PublicOf<MenuWC>, 'children' | 'style'> &
@@ -625,6 +616,15 @@ export declare const Multiselect: React.ForwardRefExoticComponent<
625
616
  >;
626
617
  export type MultiselectRef = MultiselectWC;
627
618
 
619
+ export declare const Icon: React.ForwardRefExoticComponent<
620
+ React.PropsWithChildren<
621
+ Omit<PublicOf<IconWC>, 'children' | 'style'> &
622
+ HTMLWCProps & {
623
+ }
624
+ > & React.RefAttributes<IconWC>
625
+ >;
626
+ export type IconRef = IconWC;
627
+
628
628
  export declare const NotificationListener: React.ForwardRefExoticComponent<
629
629
  React.PropsWithChildren<
630
630
  Omit<PublicOf<NotificationListenerWC>, 'children' | 'style'> &
@@ -1 +1 @@
1
- {"version":3,"file":"tab.styles.d.ts","sourceRoot":"","sources":["../../../src/tab/tab.styles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAO,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EACV,wBAAwB,EACxB,2BAA2B,EAC5B,MAAM,4BAA4B,CAAC;AAGpC,eAAO,MAAM,aAAa,GACxB,SAAS,wBAAwB,EACjC,YAAY,2BAA2B,KACtC,aAwDF,CAAC"}
1
+ {"version":3,"file":"tab.styles.d.ts","sourceRoot":"","sources":["../../../src/tab/tab.styles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAO,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EACV,wBAAwB,EACxB,2BAA2B,EAC5B,MAAM,4BAA4B,CAAC;AAGpC,eAAO,MAAM,aAAa,GACxB,SAAS,wBAAwB,EACjC,YAAY,2BAA2B,KACtC,aAuBF,CAAC"}
@@ -1,4 +1,4 @@
1
- import { alertFlashPhaseProperty, foundationTabStyles } from '@genesislcap/foundation-ui';
1
+ import { foundationTabStyles } from '@genesislcap/foundation-ui';
2
2
  import { neutralLayer2, neutralLayer4 } from '@microsoft/fast-components';
3
3
  import { css } from '@microsoft/fast-element';
4
4
  import { ColorHEX } from '../_common';
@@ -25,37 +25,4 @@ export const zeroTabStyles = (context, definition) => css `
25
25
  margin-right: 0;
26
26
  background-color: var(--zero-card-fill-color);
27
27
  }
28
-
29
- /*
30
- * Sustained alert, sampling the flash phase the platform animates on the document. Every
31
- * alerting surface reads that one value, so tabs and grid rows brighten and fade together
32
- * however long ago each of them started alerting.
33
- *
34
- * Mixing towards transparent and currentColor lets the tab fade back to its own resting
35
- * colours, so selected and unselected tabs each return to the right background.
36
- *
37
- * !important because a :host rule loses to any app stylesheet that colours tabs from the light
38
- * DOM, and an alert nobody can see is worse than no alert.
39
- */
40
- :host([alert]) {
41
- background-color: color-mix(
42
- in srgb,
43
- var(--tab-alert-color, ${ColorHEX.error}) calc(var(${alertFlashPhaseProperty}, 0) * 100%),
44
- transparent
45
- ) !important;
46
- color: color-mix(
47
- in srgb,
48
- contrast-color(var(--tab-alert-color, ${ColorHEX.error}))
49
- calc(var(${alertFlashPhaseProperty}, 0) * 100%),
50
- currentColor
51
- ) !important;
52
- }
53
-
54
- /* Reduced motion stops the clock, leaving the phase at 0, so paint a steady alert instead. */
55
- @media (prefers-reduced-motion: reduce) {
56
- :host([alert]) {
57
- background-color: var(--tab-alert-color, ${ColorHEX.error}) !important;
58
- color: contrast-color(var(--tab-alert-color, ${ColorHEX.error})) !important;
59
- }
60
- }
61
28
  `;
package/dist/react.cjs CHANGED
@@ -104,14 +104,14 @@ function _mergeRefs(...refs) {
104
104
  };
105
105
  }
106
106
 
107
- const AccordionItem = React.forwardRef(function AccordionItem(props, ref) {
107
+ const Accordion = React.forwardRef(function Accordion(props, ref) {
108
108
  const { children, ...rest } = props;
109
- return React.createElement(customElements.getName(AccordionItemWC) ?? '%%prefix%%-card', { ...rest, ref }, children);
109
+ return React.createElement(customElements.getName(AccordionWC) ?? '%%prefix%%-card', { ...rest, ref }, children);
110
110
  });
111
111
 
112
- const Accordion = React.forwardRef(function Accordion(props, ref) {
112
+ const AccordionItem = React.forwardRef(function AccordionItem(props, ref) {
113
113
  const { children, ...rest } = props;
114
- return React.createElement(customElements.getName(AccordionWC) ?? '%%prefix%%-card', { ...rest, ref }, children);
114
+ return React.createElement(customElements.getName(AccordionItemWC) ?? '%%prefix%%-card', { ...rest, ref }, children);
115
115
  });
116
116
 
117
117
  const ActionsMenu = React.forwardRef(function ActionsMenu(props, ref) {
@@ -119,6 +119,11 @@ const ActionsMenu = React.forwardRef(function ActionsMenu(props, ref) {
119
119
  return React.createElement(customElements.getName(ActionsMenuWC) ?? '%%prefix%%-actions-menu', { ...rest, ref }, children);
120
120
  });
121
121
 
122
+ const AiIndicator = React.forwardRef(function AiIndicator(props, ref) {
123
+ const { children, ...rest } = props;
124
+ return React.createElement(customElements.getName(AiIndicatorWC) ?? '%%prefix%%-ai-indicator', { ...rest, ref }, children);
125
+ });
126
+
122
127
  const AiCriteriaSearch = React.forwardRef(function AiCriteriaSearch(props, ref) {
123
128
  const { onCriteriaChanged, onValidationErrors, children, ...rest } = props;
124
129
  const _innerRef = React.useRef(null);
@@ -141,11 +146,6 @@ const AiCriteriaSearch = React.forwardRef(function AiCriteriaSearch(props, ref)
141
146
  return React.createElement(customElements.getName(AiCriteriaSearchWC) ?? '%%prefix%%-ai-criteria-search', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
142
147
  });
143
148
 
144
- const AiIndicator = React.forwardRef(function AiIndicator(props, ref) {
145
- const { children, ...rest } = props;
146
- return React.createElement(customElements.getName(AiIndicatorWC) ?? '%%prefix%%-ai-indicator', { ...rest, ref }, children);
147
- });
148
-
149
149
  const Anchor = React.forwardRef(function Anchor(props, ref) {
150
150
  const { children, ...rest } = props;
151
151
  return React.createElement(customElements.getName(AnchorWC) ?? '%%prefix%%-anchor', { ...rest, ref }, children);
@@ -626,9 +626,9 @@ const HorizontalScroll = React.forwardRef(function HorizontalScroll(props, ref)
626
626
  return React.createElement(customElements.getName(HorizontalScrollWC) ?? '%%prefix%%-horizontal-scroll', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
627
627
  });
628
628
 
629
- const Icon = React.forwardRef(function Icon(props, ref) {
629
+ const ListboxOption = React.forwardRef(function ListboxOption(props, ref) {
630
630
  const { children, ...rest } = props;
631
- return React.createElement(customElements.getName(IconWC) ?? '%%prefix%%-icon', { ...rest, ref }, children);
631
+ return React.createElement(customElements.getName(ListboxOptionWC) ?? '%%prefix%%-option', { ...rest, ref }, children);
632
632
  });
633
633
 
634
634
  const Listbox = React.forwardRef(function Listbox(props, ref) {
@@ -636,11 +636,6 @@ const Listbox = React.forwardRef(function Listbox(props, ref) {
636
636
  return React.createElement(customElements.getName(ListboxWC) ?? '%%prefix%%-listbox', { ...rest, ref }, children);
637
637
  });
638
638
 
639
- const ListboxOption = React.forwardRef(function ListboxOption(props, ref) {
640
- const { children, ...rest } = props;
641
- return React.createElement(customElements.getName(ListboxOptionWC) ?? '%%prefix%%-option', { ...rest, ref }, children);
642
- });
643
-
644
639
  const Menu = React.forwardRef(function Menu(props, ref) {
645
640
  const { children, ...rest } = props;
646
641
  return React.createElement(customElements.getName(MenuWC) ?? '%%prefix%%-menu', { ...rest, ref }, children);
@@ -695,6 +690,11 @@ const Multiselect = React.forwardRef(function Multiselect(props, ref) {
695
690
  return React.createElement(customElements.getName(MultiselectWC) ?? '%%prefix%%-multiselect', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
696
691
  });
697
692
 
693
+ const Icon = React.forwardRef(function Icon(props, ref) {
694
+ const { children, ...rest } = props;
695
+ return React.createElement(customElements.getName(IconWC) ?? '%%prefix%%-icon', { ...rest, ref }, children);
696
+ });
697
+
698
698
  const NotificationListener = React.forwardRef(function NotificationListener(props, ref) {
699
699
  const { children, ...rest } = props;
700
700
  return React.createElement(customElements.getName(NotificationListenerWC) ?? '%%prefix%%-notification-listener', { ...rest, ref }, children);
@@ -1063,11 +1063,11 @@ const VerificationCodeInput = React.forwardRef(function VerificationCodeInput(pr
1063
1063
  });
1064
1064
 
1065
1065
  module.exports = {
1066
- AccordionItem,
1067
1066
  Accordion,
1067
+ AccordionItem,
1068
1068
  ActionsMenu,
1069
- AiCriteriaSearch,
1070
1069
  AiIndicator,
1070
+ AiCriteriaSearch,
1071
1071
  Anchor,
1072
1072
  AnchoredRegion,
1073
1073
  Avatar,
@@ -1107,13 +1107,13 @@ module.exports = {
1107
1107
  GridLayout,
1108
1108
  GridLayoutItem,
1109
1109
  HorizontalScroll,
1110
- Icon,
1111
- Listbox,
1112
1110
  ListboxOption,
1111
+ Listbox,
1113
1112
  Menu,
1114
1113
  MenuItem,
1115
1114
  Modal,
1116
1115
  Multiselect,
1116
+ Icon,
1117
1117
  NotificationListener,
1118
1118
  NumberField,
1119
1119
  Optgroup,
package/dist/react.mjs CHANGED
@@ -102,14 +102,14 @@ function _mergeRefs(...refs) {
102
102
  };
103
103
  }
104
104
 
105
- export const AccordionItem = React.forwardRef(function AccordionItem(props, ref) {
105
+ export const Accordion = React.forwardRef(function Accordion(props, ref) {
106
106
  const { children, ...rest } = props;
107
- return React.createElement(customElements.getName(AccordionItemWC) ?? '%%prefix%%-card', { ...rest, ref }, children);
107
+ return React.createElement(customElements.getName(AccordionWC) ?? '%%prefix%%-card', { ...rest, ref }, children);
108
108
  });
109
109
 
110
- export const Accordion = React.forwardRef(function Accordion(props, ref) {
110
+ export const AccordionItem = React.forwardRef(function AccordionItem(props, ref) {
111
111
  const { children, ...rest } = props;
112
- return React.createElement(customElements.getName(AccordionWC) ?? '%%prefix%%-card', { ...rest, ref }, children);
112
+ return React.createElement(customElements.getName(AccordionItemWC) ?? '%%prefix%%-card', { ...rest, ref }, children);
113
113
  });
114
114
 
115
115
  export const ActionsMenu = React.forwardRef(function ActionsMenu(props, ref) {
@@ -117,6 +117,11 @@ export const ActionsMenu = React.forwardRef(function ActionsMenu(props, ref) {
117
117
  return React.createElement(customElements.getName(ActionsMenuWC) ?? '%%prefix%%-actions-menu', { ...rest, ref }, children);
118
118
  });
119
119
 
120
+ export const AiIndicator = React.forwardRef(function AiIndicator(props, ref) {
121
+ const { children, ...rest } = props;
122
+ return React.createElement(customElements.getName(AiIndicatorWC) ?? '%%prefix%%-ai-indicator', { ...rest, ref }, children);
123
+ });
124
+
120
125
  export const AiCriteriaSearch = React.forwardRef(function AiCriteriaSearch(props, ref) {
121
126
  const { onCriteriaChanged, onValidationErrors, children, ...rest } = props;
122
127
  const _innerRef = React.useRef(null);
@@ -139,11 +144,6 @@ export const AiCriteriaSearch = React.forwardRef(function AiCriteriaSearch(props
139
144
  return React.createElement(customElements.getName(AiCriteriaSearchWC) ?? '%%prefix%%-ai-criteria-search', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
140
145
  });
141
146
 
142
- export const AiIndicator = React.forwardRef(function AiIndicator(props, ref) {
143
- const { children, ...rest } = props;
144
- return React.createElement(customElements.getName(AiIndicatorWC) ?? '%%prefix%%-ai-indicator', { ...rest, ref }, children);
145
- });
146
-
147
147
  export const Anchor = React.forwardRef(function Anchor(props, ref) {
148
148
  const { children, ...rest } = props;
149
149
  return React.createElement(customElements.getName(AnchorWC) ?? '%%prefix%%-anchor', { ...rest, ref }, children);
@@ -624,9 +624,9 @@ export const HorizontalScroll = React.forwardRef(function HorizontalScroll(props
624
624
  return React.createElement(customElements.getName(HorizontalScrollWC) ?? '%%prefix%%-horizontal-scroll', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
625
625
  });
626
626
 
627
- export const Icon = React.forwardRef(function Icon(props, ref) {
627
+ export const ListboxOption = React.forwardRef(function ListboxOption(props, ref) {
628
628
  const { children, ...rest } = props;
629
- return React.createElement(customElements.getName(IconWC) ?? '%%prefix%%-icon', { ...rest, ref }, children);
629
+ return React.createElement(customElements.getName(ListboxOptionWC) ?? '%%prefix%%-option', { ...rest, ref }, children);
630
630
  });
631
631
 
632
632
  export const Listbox = React.forwardRef(function Listbox(props, ref) {
@@ -634,11 +634,6 @@ export const Listbox = React.forwardRef(function Listbox(props, ref) {
634
634
  return React.createElement(customElements.getName(ListboxWC) ?? '%%prefix%%-listbox', { ...rest, ref }, children);
635
635
  });
636
636
 
637
- export const ListboxOption = React.forwardRef(function ListboxOption(props, ref) {
638
- const { children, ...rest } = props;
639
- return React.createElement(customElements.getName(ListboxOptionWC) ?? '%%prefix%%-option', { ...rest, ref }, children);
640
- });
641
-
642
637
  export const Menu = React.forwardRef(function Menu(props, ref) {
643
638
  const { children, ...rest } = props;
644
639
  return React.createElement(customElements.getName(MenuWC) ?? '%%prefix%%-menu', { ...rest, ref }, children);
@@ -693,6 +688,11 @@ export const Multiselect = React.forwardRef(function Multiselect(props, ref) {
693
688
  return React.createElement(customElements.getName(MultiselectWC) ?? '%%prefix%%-multiselect', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
694
689
  });
695
690
 
691
+ export const Icon = React.forwardRef(function Icon(props, ref) {
692
+ const { children, ...rest } = props;
693
+ return React.createElement(customElements.getName(IconWC) ?? '%%prefix%%-icon', { ...rest, ref }, children);
694
+ });
695
+
696
696
  export const NotificationListener = React.forwardRef(function NotificationListener(props, ref) {
697
697
  const { children, ...rest } = props;
698
698
  return React.createElement(customElements.getName(NotificationListenerWC) ?? '%%prefix%%-notification-listener', { ...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.15.2-FUI-2564.1",
4
+ "version": "15.15.2-FUI-2603.8",
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.15.2-FUI-2564.1",
77
- "@genesislcap/rollup-builder": "15.15.2-FUI-2564.1",
78
- "@genesislcap/ts-builder": "15.15.2-FUI-2564.1",
79
- "@genesislcap/uvu-playwright-builder": "15.15.2-FUI-2564.1",
80
- "@genesislcap/vite-builder": "15.15.2-FUI-2564.1",
81
- "@genesislcap/webpack-builder": "15.15.2-FUI-2564.1"
76
+ "@genesislcap/genx": "15.15.2-FUI-2603.8",
77
+ "@genesislcap/rollup-builder": "15.15.2-FUI-2603.8",
78
+ "@genesislcap/ts-builder": "15.15.2-FUI-2603.8",
79
+ "@genesislcap/uvu-playwright-builder": "15.15.2-FUI-2603.8",
80
+ "@genesislcap/vite-builder": "15.15.2-FUI-2603.8",
81
+ "@genesislcap/webpack-builder": "15.15.2-FUI-2603.8"
82
82
  },
83
83
  "dependencies": {
84
- "@genesislcap/foundation-comms": "15.15.2-FUI-2564.1",
85
- "@genesislcap/foundation-logger": "15.15.2-FUI-2564.1",
86
- "@genesislcap/foundation-ui": "15.15.2-FUI-2564.1",
87
- "@genesislcap/foundation-utils": "15.15.2-FUI-2564.1",
84
+ "@genesislcap/foundation-comms": "15.15.2-FUI-2603.8",
85
+ "@genesislcap/foundation-logger": "15.15.2-FUI-2603.8",
86
+ "@genesislcap/foundation-ui": "15.15.2-FUI-2603.8",
87
+ "@genesislcap/foundation-utils": "15.15.2-FUI-2603.8",
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": "138fa84429b2d2ee038d23c3b91f3fe695737201"
114
+ "gitHead": "5a031de5ddf30696a674da64f8a7f832b7f4fc21"
115
115
  }