@genesislcap/rapid-design-system 15.29.0 → 15.30.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.
@@ -120,23 +120,23 @@ interface HTMLWCProps extends React.AriaAttributes {
120
120
  onInput?(e: Event): void;
121
121
  }
122
122
 
123
- export declare const Accordion: React.ForwardRefExoticComponent<
123
+ export declare const AccordionItem: React.ForwardRefExoticComponent<
124
124
  React.PropsWithChildren<
125
- Omit<PublicOf<AccordionWC>, 'children' | 'style'> &
125
+ Omit<PublicOf<AccordionItemWC>, 'children' | 'style'> &
126
126
  HTMLWCProps & {
127
127
  }
128
- > & React.RefAttributes<AccordionWC>
128
+ > & React.RefAttributes<AccordionItemWC>
129
129
  >;
130
- export type AccordionRef = AccordionWC;
130
+ export type AccordionItemRef = AccordionItemWC;
131
131
 
132
- export declare const AccordionItem: React.ForwardRefExoticComponent<
132
+ export declare const Accordion: React.ForwardRefExoticComponent<
133
133
  React.PropsWithChildren<
134
- Omit<PublicOf<AccordionItemWC>, 'children' | 'style'> &
134
+ Omit<PublicOf<AccordionWC>, 'children' | 'style'> &
135
135
  HTMLWCProps & {
136
136
  }
137
- > & React.RefAttributes<AccordionItemWC>
137
+ > & React.RefAttributes<AccordionWC>
138
138
  >;
139
- export type AccordionItemRef = AccordionItemWC;
139
+ export type AccordionRef = AccordionWC;
140
140
 
141
141
  export declare const ActionsMenu: React.ForwardRefExoticComponent<
142
142
  React.PropsWithChildren<
@@ -649,19 +649,6 @@ export declare const SchedulerTimezone: React.ForwardRefExoticComponent<
649
649
  >;
650
650
  export type SchedulerTimezoneRef = SchedulerTimezoneWC;
651
651
 
652
- export declare const SectionNavigator: React.ForwardRefExoticComponent<
653
- React.PropsWithChildren<
654
- Omit<PublicOf<SectionNavigatorWC>, 'children' | 'style'> &
655
- HTMLWCProps & {
656
- onSectionNavigatorSetState?: (event: CustomEvent<unknown>) => void;
657
- onSectionNavigatorSetStates?: (event: CustomEvent<unknown>) => void;
658
- onSectionNavigatorClearState?: (event: CustomEvent<unknown>) => void;
659
- onSectionNavigatorClearAllStates?: (event: CustomEvent<unknown>) => void;
660
- }
661
- > & React.RefAttributes<SectionNavigatorWC>
662
- >;
663
- export type SectionNavigatorRef = SectionNavigatorWC;
664
-
665
652
  export declare const SearchBarCombobox: React.ForwardRefExoticComponent<
666
653
  React.PropsWithChildren<
667
654
  Omit<PublicOf<SearchBarComboboxWC>, 'children' | 'style'> &
@@ -682,6 +669,19 @@ export declare const SearchBar: React.ForwardRefExoticComponent<
682
669
  >;
683
670
  export type SearchBarRef = SearchBarWC;
684
671
 
672
+ export declare const SectionNavigator: React.ForwardRefExoticComponent<
673
+ React.PropsWithChildren<
674
+ Omit<PublicOf<SectionNavigatorWC>, 'children' | 'style'> &
675
+ HTMLWCProps & {
676
+ onSectionNavigatorSetState?: (event: CustomEvent<unknown>) => void;
677
+ onSectionNavigatorSetStates?: (event: CustomEvent<unknown>) => void;
678
+ onSectionNavigatorClearState?: (event: CustomEvent<unknown>) => void;
679
+ onSectionNavigatorClearAllStates?: (event: CustomEvent<unknown>) => void;
680
+ }
681
+ > & React.RefAttributes<SectionNavigatorWC>
682
+ >;
683
+ export type SectionNavigatorRef = SectionNavigatorWC;
684
+
685
685
  export declare const SegmentedControl: React.ForwardRefExoticComponent<
686
686
  React.PropsWithChildren<
687
687
  Omit<PublicOf<SegmentedControlWC>, 'children' | 'style'> &
package/dist/react.cjs CHANGED
@@ -99,14 +99,14 @@ function _mergeRefs(...refs) {
99
99
  };
100
100
  }
101
101
 
102
- const Accordion = React.forwardRef(function Accordion(props, ref) {
102
+ const AccordionItem = React.forwardRef(function AccordionItem(props, ref) {
103
103
  const { children, ...rest } = props;
104
- return React.createElement(customElements.getName(AccordionWC) ?? '%%prefix%%-accordion', { ...rest, ref }, children);
104
+ return React.createElement(customElements.getName(AccordionItemWC) ?? '%%prefix%%-accordion-item', { ...rest, ref }, children);
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%%-accordion-item', { ...rest, ref }, children);
109
+ return React.createElement(customElements.getName(AccordionWC) ?? '%%prefix%%-accordion', { ...rest, ref }, children);
110
110
  });
111
111
 
112
112
  const ActionsMenu = React.forwardRef(function ActionsMenu(props, ref) {
@@ -698,38 +698,6 @@ const SchedulerTimezone = React.forwardRef(function SchedulerTimezone(props, ref
698
698
  return React.createElement(customElements.getName(SchedulerTimezoneWC) ?? '%%prefix%%-scheduler-timezone', { ...rest, ref }, children);
699
699
  });
700
700
 
701
- const SectionNavigator = React.forwardRef(function SectionNavigator(props, ref) {
702
- const { onSectionNavigatorSetState, onSectionNavigatorSetStates, onSectionNavigatorClearState, onSectionNavigatorClearAllStates, children, ...rest } = props;
703
- const _innerRef = React.useRef(null);
704
- const _onSectionNavigatorSetStateRef = React.useRef(onSectionNavigatorSetState);
705
- _onSectionNavigatorSetStateRef.current = onSectionNavigatorSetState;
706
- const _onSectionNavigatorSetStatesRef = React.useRef(onSectionNavigatorSetStates);
707
- _onSectionNavigatorSetStatesRef.current = onSectionNavigatorSetStates;
708
- const _onSectionNavigatorClearStateRef = React.useRef(onSectionNavigatorClearState);
709
- _onSectionNavigatorClearStateRef.current = onSectionNavigatorClearState;
710
- const _onSectionNavigatorClearAllStatesRef = React.useRef(onSectionNavigatorClearAllStates);
711
- _onSectionNavigatorClearAllStatesRef.current = onSectionNavigatorClearAllStates;
712
- React.useLayoutEffect(() => {
713
- const el = _innerRef.current;
714
- if (!el) return;
715
- const _onSectionNavigatorSetStateFn = (e) => _onSectionNavigatorSetStateRef.current?.(e);
716
- el.addEventListener('section-navigator-set-state', _onSectionNavigatorSetStateFn);
717
- const _onSectionNavigatorSetStatesFn = (e) => _onSectionNavigatorSetStatesRef.current?.(e);
718
- el.addEventListener('section-navigator-set-states', _onSectionNavigatorSetStatesFn);
719
- const _onSectionNavigatorClearStateFn = (e) => _onSectionNavigatorClearStateRef.current?.(e);
720
- el.addEventListener('section-navigator-clear-state', _onSectionNavigatorClearStateFn);
721
- const _onSectionNavigatorClearAllStatesFn = (e) => _onSectionNavigatorClearAllStatesRef.current?.(e);
722
- el.addEventListener('section-navigator-clear-all-states', _onSectionNavigatorClearAllStatesFn);
723
- return () => {
724
- el.removeEventListener('section-navigator-set-state', _onSectionNavigatorSetStateFn);
725
- el.removeEventListener('section-navigator-set-states', _onSectionNavigatorSetStatesFn);
726
- el.removeEventListener('section-navigator-clear-state', _onSectionNavigatorClearStateFn);
727
- el.removeEventListener('section-navigator-clear-all-states', _onSectionNavigatorClearAllStatesFn);
728
- };
729
- }, []);
730
- return React.createElement(customElements.getName(SectionNavigatorWC) ?? '%%prefix%%-section-navigator', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
731
- });
732
-
733
701
  const SearchBarCombobox = React.forwardRef(function SearchBarCombobox(props, ref) {
734
702
  const { onOpenChange, children, ...rest } = props;
735
703
  const _innerRef = React.useRef(null);
@@ -764,6 +732,38 @@ const SearchBar = React.forwardRef(function SearchBar(props, ref) {
764
732
  return React.createElement(customElements.getName(SearchBarWC) ?? '%%prefix%%-search-bar', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
765
733
  });
766
734
 
735
+ const SectionNavigator = React.forwardRef(function SectionNavigator(props, ref) {
736
+ const { onSectionNavigatorSetState, onSectionNavigatorSetStates, onSectionNavigatorClearState, onSectionNavigatorClearAllStates, children, ...rest } = props;
737
+ const _innerRef = React.useRef(null);
738
+ const _onSectionNavigatorSetStateRef = React.useRef(onSectionNavigatorSetState);
739
+ _onSectionNavigatorSetStateRef.current = onSectionNavigatorSetState;
740
+ const _onSectionNavigatorSetStatesRef = React.useRef(onSectionNavigatorSetStates);
741
+ _onSectionNavigatorSetStatesRef.current = onSectionNavigatorSetStates;
742
+ const _onSectionNavigatorClearStateRef = React.useRef(onSectionNavigatorClearState);
743
+ _onSectionNavigatorClearStateRef.current = onSectionNavigatorClearState;
744
+ const _onSectionNavigatorClearAllStatesRef = React.useRef(onSectionNavigatorClearAllStates);
745
+ _onSectionNavigatorClearAllStatesRef.current = onSectionNavigatorClearAllStates;
746
+ React.useLayoutEffect(() => {
747
+ const el = _innerRef.current;
748
+ if (!el) return;
749
+ const _onSectionNavigatorSetStateFn = (e) => _onSectionNavigatorSetStateRef.current?.(e);
750
+ el.addEventListener('section-navigator-set-state', _onSectionNavigatorSetStateFn);
751
+ const _onSectionNavigatorSetStatesFn = (e) => _onSectionNavigatorSetStatesRef.current?.(e);
752
+ el.addEventListener('section-navigator-set-states', _onSectionNavigatorSetStatesFn);
753
+ const _onSectionNavigatorClearStateFn = (e) => _onSectionNavigatorClearStateRef.current?.(e);
754
+ el.addEventListener('section-navigator-clear-state', _onSectionNavigatorClearStateFn);
755
+ const _onSectionNavigatorClearAllStatesFn = (e) => _onSectionNavigatorClearAllStatesRef.current?.(e);
756
+ el.addEventListener('section-navigator-clear-all-states', _onSectionNavigatorClearAllStatesFn);
757
+ return () => {
758
+ el.removeEventListener('section-navigator-set-state', _onSectionNavigatorSetStateFn);
759
+ el.removeEventListener('section-navigator-set-states', _onSectionNavigatorSetStatesFn);
760
+ el.removeEventListener('section-navigator-clear-state', _onSectionNavigatorClearStateFn);
761
+ el.removeEventListener('section-navigator-clear-all-states', _onSectionNavigatorClearAllStatesFn);
762
+ };
763
+ }, []);
764
+ return React.createElement(customElements.getName(SectionNavigatorWC) ?? '%%prefix%%-section-navigator', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
765
+ });
766
+
767
767
  const SegmentedControl = React.forwardRef(function SegmentedControl(props, ref) {
768
768
  const { children, ...rest } = props;
769
769
  return React.createElement(customElements.getName(SegmentedControlWC) ?? '%%prefix%%-segmented-control', { ...rest, ref }, children);
@@ -999,8 +999,8 @@ const SystemHealthOverlay = React.forwardRef(function SystemHealthOverlay(props,
999
999
  });
1000
1000
 
1001
1001
  module.exports = {
1002
- Accordion,
1003
1002
  AccordionItem,
1003
+ Accordion,
1004
1004
  ActionsMenu,
1005
1005
  AiCriteriaSearch,
1006
1006
  AiIndicator,
@@ -1053,9 +1053,9 @@ module.exports = {
1053
1053
  Scheduler,
1054
1054
  SchedulerCronBuilder,
1055
1055
  SchedulerTimezone,
1056
- SectionNavigator,
1057
1056
  SearchBarCombobox,
1058
1057
  SearchBar,
1058
+ SectionNavigator,
1059
1059
  SegmentedControl,
1060
1060
  SegmentedItem,
1061
1061
  Select,
package/dist/react.mjs CHANGED
@@ -97,14 +97,14 @@ function _mergeRefs(...refs) {
97
97
  };
98
98
  }
99
99
 
100
- export const Accordion = React.forwardRef(function Accordion(props, ref) {
100
+ export const AccordionItem = React.forwardRef(function AccordionItem(props, ref) {
101
101
  const { children, ...rest } = props;
102
- return React.createElement(customElements.getName(AccordionWC) ?? '%%prefix%%-accordion', { ...rest, ref }, children);
102
+ return React.createElement(customElements.getName(AccordionItemWC) ?? '%%prefix%%-accordion-item', { ...rest, ref }, children);
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%%-accordion-item', { ...rest, ref }, children);
107
+ return React.createElement(customElements.getName(AccordionWC) ?? '%%prefix%%-accordion', { ...rest, ref }, children);
108
108
  });
109
109
 
110
110
  export const ActionsMenu = React.forwardRef(function ActionsMenu(props, ref) {
@@ -696,38 +696,6 @@ export const SchedulerTimezone = React.forwardRef(function SchedulerTimezone(pro
696
696
  return React.createElement(customElements.getName(SchedulerTimezoneWC) ?? '%%prefix%%-scheduler-timezone', { ...rest, ref }, children);
697
697
  });
698
698
 
699
- export const SectionNavigator = React.forwardRef(function SectionNavigator(props, ref) {
700
- const { onSectionNavigatorSetState, onSectionNavigatorSetStates, onSectionNavigatorClearState, onSectionNavigatorClearAllStates, children, ...rest } = props;
701
- const _innerRef = React.useRef(null);
702
- const _onSectionNavigatorSetStateRef = React.useRef(onSectionNavigatorSetState);
703
- _onSectionNavigatorSetStateRef.current = onSectionNavigatorSetState;
704
- const _onSectionNavigatorSetStatesRef = React.useRef(onSectionNavigatorSetStates);
705
- _onSectionNavigatorSetStatesRef.current = onSectionNavigatorSetStates;
706
- const _onSectionNavigatorClearStateRef = React.useRef(onSectionNavigatorClearState);
707
- _onSectionNavigatorClearStateRef.current = onSectionNavigatorClearState;
708
- const _onSectionNavigatorClearAllStatesRef = React.useRef(onSectionNavigatorClearAllStates);
709
- _onSectionNavigatorClearAllStatesRef.current = onSectionNavigatorClearAllStates;
710
- React.useLayoutEffect(() => {
711
- const el = _innerRef.current;
712
- if (!el) return;
713
- const _onSectionNavigatorSetStateFn = (e) => _onSectionNavigatorSetStateRef.current?.(e);
714
- el.addEventListener('section-navigator-set-state', _onSectionNavigatorSetStateFn);
715
- const _onSectionNavigatorSetStatesFn = (e) => _onSectionNavigatorSetStatesRef.current?.(e);
716
- el.addEventListener('section-navigator-set-states', _onSectionNavigatorSetStatesFn);
717
- const _onSectionNavigatorClearStateFn = (e) => _onSectionNavigatorClearStateRef.current?.(e);
718
- el.addEventListener('section-navigator-clear-state', _onSectionNavigatorClearStateFn);
719
- const _onSectionNavigatorClearAllStatesFn = (e) => _onSectionNavigatorClearAllStatesRef.current?.(e);
720
- el.addEventListener('section-navigator-clear-all-states', _onSectionNavigatorClearAllStatesFn);
721
- return () => {
722
- el.removeEventListener('section-navigator-set-state', _onSectionNavigatorSetStateFn);
723
- el.removeEventListener('section-navigator-set-states', _onSectionNavigatorSetStatesFn);
724
- el.removeEventListener('section-navigator-clear-state', _onSectionNavigatorClearStateFn);
725
- el.removeEventListener('section-navigator-clear-all-states', _onSectionNavigatorClearAllStatesFn);
726
- };
727
- }, []);
728
- return React.createElement(customElements.getName(SectionNavigatorWC) ?? '%%prefix%%-section-navigator', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
729
- });
730
-
731
699
  export const SearchBarCombobox = React.forwardRef(function SearchBarCombobox(props, ref) {
732
700
  const { onOpenChange, children, ...rest } = props;
733
701
  const _innerRef = React.useRef(null);
@@ -762,6 +730,38 @@ export const SearchBar = React.forwardRef(function SearchBar(props, ref) {
762
730
  return React.createElement(customElements.getName(SearchBarWC) ?? '%%prefix%%-search-bar', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
763
731
  });
764
732
 
733
+ export const SectionNavigator = React.forwardRef(function SectionNavigator(props, ref) {
734
+ const { onSectionNavigatorSetState, onSectionNavigatorSetStates, onSectionNavigatorClearState, onSectionNavigatorClearAllStates, children, ...rest } = props;
735
+ const _innerRef = React.useRef(null);
736
+ const _onSectionNavigatorSetStateRef = React.useRef(onSectionNavigatorSetState);
737
+ _onSectionNavigatorSetStateRef.current = onSectionNavigatorSetState;
738
+ const _onSectionNavigatorSetStatesRef = React.useRef(onSectionNavigatorSetStates);
739
+ _onSectionNavigatorSetStatesRef.current = onSectionNavigatorSetStates;
740
+ const _onSectionNavigatorClearStateRef = React.useRef(onSectionNavigatorClearState);
741
+ _onSectionNavigatorClearStateRef.current = onSectionNavigatorClearState;
742
+ const _onSectionNavigatorClearAllStatesRef = React.useRef(onSectionNavigatorClearAllStates);
743
+ _onSectionNavigatorClearAllStatesRef.current = onSectionNavigatorClearAllStates;
744
+ React.useLayoutEffect(() => {
745
+ const el = _innerRef.current;
746
+ if (!el) return;
747
+ const _onSectionNavigatorSetStateFn = (e) => _onSectionNavigatorSetStateRef.current?.(e);
748
+ el.addEventListener('section-navigator-set-state', _onSectionNavigatorSetStateFn);
749
+ const _onSectionNavigatorSetStatesFn = (e) => _onSectionNavigatorSetStatesRef.current?.(e);
750
+ el.addEventListener('section-navigator-set-states', _onSectionNavigatorSetStatesFn);
751
+ const _onSectionNavigatorClearStateFn = (e) => _onSectionNavigatorClearStateRef.current?.(e);
752
+ el.addEventListener('section-navigator-clear-state', _onSectionNavigatorClearStateFn);
753
+ const _onSectionNavigatorClearAllStatesFn = (e) => _onSectionNavigatorClearAllStatesRef.current?.(e);
754
+ el.addEventListener('section-navigator-clear-all-states', _onSectionNavigatorClearAllStatesFn);
755
+ return () => {
756
+ el.removeEventListener('section-navigator-set-state', _onSectionNavigatorSetStateFn);
757
+ el.removeEventListener('section-navigator-set-states', _onSectionNavigatorSetStatesFn);
758
+ el.removeEventListener('section-navigator-clear-state', _onSectionNavigatorClearStateFn);
759
+ el.removeEventListener('section-navigator-clear-all-states', _onSectionNavigatorClearAllStatesFn);
760
+ };
761
+ }, []);
762
+ return React.createElement(customElements.getName(SectionNavigatorWC) ?? '%%prefix%%-section-navigator', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
763
+ });
764
+
765
765
  export const SegmentedControl = React.forwardRef(function SegmentedControl(props, ref) {
766
766
  const { children, ...rest } = props;
767
767
  return React.createElement(customElements.getName(SegmentedControlWC) ?? '%%prefix%%-segmented-control', { ...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.29.0",
4
+ "version": "15.30.1",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -40,13 +40,13 @@
40
40
  },
41
41
  "devDependencies": {
42
42
  "@genesiscommunitysuccess/analyzer-import-alias-plugin": "^5.0.3",
43
- "@genesislcap/foundation-testing": "15.29.0",
44
- "@genesislcap/genx": "15.29.0",
45
- "@genesislcap/rollup-builder": "15.29.0",
46
- "@genesislcap/ts-builder": "15.29.0",
47
- "@genesislcap/uvu-playwright-builder": "15.29.0",
48
- "@genesislcap/vite-builder": "15.29.0",
49
- "@genesislcap/webpack-builder": "15.29.0",
43
+ "@genesislcap/foundation-testing": "15.30.1",
44
+ "@genesislcap/genx": "15.30.1",
45
+ "@genesislcap/rollup-builder": "15.30.1",
46
+ "@genesislcap/ts-builder": "15.30.1",
47
+ "@genesislcap/uvu-playwright-builder": "15.30.1",
48
+ "@genesislcap/vite-builder": "15.30.1",
49
+ "@genesislcap/webpack-builder": "15.30.1",
50
50
  "flexlayout-react": "0.10.8"
51
51
  },
52
52
  "peerDependencies": {
@@ -58,9 +58,9 @@
58
58
  }
59
59
  },
60
60
  "dependencies": {
61
- "@genesislcap/foundation-logger": "15.29.0",
62
- "@genesislcap/foundation-ui": "15.29.0",
63
- "@genesislcap/foundation-utils": "15.29.0",
61
+ "@genesislcap/foundation-logger": "15.30.1",
62
+ "@genesislcap/foundation-ui": "15.30.1",
63
+ "@genesislcap/foundation-utils": "15.30.1",
64
64
  "@microsoft/fast-colors": "5.3.1",
65
65
  "@microsoft/fast-components": "2.30.6",
66
66
  "@microsoft/fast-element": "1.14.0",