@genesislcap/foundation-zero 14.447.0 → 14.447.1-canary.search-bar-4

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.
@@ -898,6 +898,37 @@
898
898
  }
899
899
  ]
900
900
  },
901
+ {
902
+ "kind": "javascript-module",
903
+ "path": "src/_config/index.ts",
904
+ "declarations": [],
905
+ "exports": [
906
+ {
907
+ "kind": "js",
908
+ "name": "*",
909
+ "declaration": {
910
+ "name": "*",
911
+ "package": "./styles"
912
+ }
913
+ },
914
+ {
915
+ "kind": "js",
916
+ "name": "*",
917
+ "declaration": {
918
+ "name": "*",
919
+ "package": "./tokens"
920
+ }
921
+ },
922
+ {
923
+ "kind": "js",
924
+ "name": "*",
925
+ "declaration": {
926
+ "name": "*",
927
+ "package": "./values"
928
+ }
929
+ }
930
+ ]
931
+ },
901
932
  {
902
933
  "kind": "javascript-module",
903
934
  "path": "src/accordion/accordion.styles.ts",
@@ -1379,37 +1410,6 @@
1379
1410
  }
1380
1411
  ]
1381
1412
  },
1382
- {
1383
- "kind": "javascript-module",
1384
- "path": "src/_config/index.ts",
1385
- "declarations": [],
1386
- "exports": [
1387
- {
1388
- "kind": "js",
1389
- "name": "*",
1390
- "declaration": {
1391
- "name": "*",
1392
- "package": "./styles"
1393
- }
1394
- },
1395
- {
1396
- "kind": "js",
1397
- "name": "*",
1398
- "declaration": {
1399
- "name": "*",
1400
- "package": "./tokens"
1401
- }
1402
- },
1403
- {
1404
- "kind": "js",
1405
- "name": "*",
1406
- "declaration": {
1407
- "name": "*",
1408
- "package": "./values"
1409
- }
1410
- }
1411
- ]
1412
- },
1413
1413
  {
1414
1414
  "kind": "javascript-module",
1415
1415
  "path": "src/accordion-item/accordion-item.styles.ts",
@@ -32131,19 +32131,11 @@
32131
32131
  "type": {
32132
32132
  "text": "Event"
32133
32133
  },
32134
- "description": "Fired when the combobox value changes",
32134
+ "description": "Fires a custom 'change' event when the value updates",
32135
32135
  "inheritedFrom": {
32136
32136
  "name": "Combobox",
32137
32137
  "module": "src/combobox/combobox.ts"
32138
32138
  }
32139
- },
32140
- {
32141
- "description": "Fired when the input is cleared by the user",
32142
- "name": "inputdeleted",
32143
- "inheritedFrom": {
32144
- "name": "SearchBarCombobox",
32145
- "module": "src/search-bar/search-bar-combobox.ts"
32146
- }
32147
32139
  }
32148
32140
  ]
32149
32141
  },
@@ -32325,6 +32317,19 @@
32325
32317
  "module": "src/search-bar/search-bar.ts"
32326
32318
  }
32327
32319
  },
32320
+ {
32321
+ "kind": "field",
32322
+ "name": "clearButton",
32323
+ "type": {
32324
+ "text": "boolean"
32325
+ },
32326
+ "default": "true",
32327
+ "attribute": "clear-button",
32328
+ "inheritedFrom": {
32329
+ "name": "SearchBar",
32330
+ "module": "src/search-bar/search-bar.ts"
32331
+ }
32332
+ },
32328
32333
  {
32329
32334
  "kind": "field",
32330
32335
  "name": "loading",
@@ -32375,6 +32380,7 @@
32375
32380
  "kind": "method",
32376
32381
  "name": "clear",
32377
32382
  "privacy": "public",
32383
+ "description": "Clears all search chips and the current input, and emits `selectionChange` with an empty array.",
32378
32384
  "inheritedFrom": {
32379
32385
  "name": "SearchBar",
32380
32386
  "module": "src/search-bar/search-bar.ts"
@@ -32389,6 +32395,32 @@
32389
32395
  "text": "void"
32390
32396
  }
32391
32397
  },
32398
+ "description": "Alias for SearchBar.clear.",
32399
+ "inheritedFrom": {
32400
+ "name": "SearchBar",
32401
+ "module": "src/search-bar/search-bar.ts"
32402
+ }
32403
+ },
32404
+ {
32405
+ "kind": "method",
32406
+ "name": "selectedOptionsChanged",
32407
+ "inheritedFrom": {
32408
+ "name": "SearchBar",
32409
+ "module": "src/search-bar/search-bar.ts"
32410
+ }
32411
+ },
32412
+ {
32413
+ "kind": "method",
32414
+ "name": "optionsChanged",
32415
+ "inheritedFrom": {
32416
+ "name": "SearchBar",
32417
+ "module": "src/search-bar/search-bar.ts"
32418
+ }
32419
+ },
32420
+ {
32421
+ "kind": "method",
32422
+ "name": "applySearchInputLock",
32423
+ "privacy": "private",
32392
32424
  "inheritedFrom": {
32393
32425
  "name": "SearchBar",
32394
32426
  "module": "src/search-bar/search-bar.ts"
@@ -32632,6 +32664,20 @@
32632
32664
  "tagName": "%%prefix%%-search-bar",
32633
32665
  "customElement": true,
32634
32666
  "attributes": [
32667
+ {
32668
+ "name": "clear-button",
32669
+ "type": {
32670
+ "text": "boolean"
32671
+ },
32672
+ "default": "true",
32673
+ "attribute": "clear-button",
32674
+ "fieldName": "clearButton",
32675
+ "description": "when true, shows the end clear control when there are chips or typed text. When false, use {@link SearchBar.clear} or {@link SearchBar.clearSearch} to reset programmatically.",
32676
+ "inheritedFrom": {
32677
+ "name": "SearchBar",
32678
+ "module": "src/search-bar/search-bar.ts"
32679
+ }
32680
+ },
32635
32681
  {
32636
32682
  "name": "appearance",
32637
32683
  "type": {
@@ -665,7 +665,6 @@ export declare const SearchBarCombobox: React.ForwardRefExoticComponent<
665
665
  React.PropsWithChildren<
666
666
  Omit<PublicOf<SearchBarComboboxWC>, 'children' | 'style'> &
667
667
  HTMLWCProps & {
668
- onInputdeleted?: (event: CustomEvent<unknown>) => void;
669
668
  }
670
669
  > & React.RefAttributes<SearchBarComboboxWC>
671
670
  >;
package/dist/react.cjs CHANGED
@@ -591,20 +591,8 @@ const SchedulerTimezone = React.forwardRef(function SchedulerTimezone(props, ref
591
591
  });
592
592
 
593
593
  const SearchBarCombobox = React.forwardRef(function SearchBarCombobox(props, ref) {
594
- const { onInputdeleted, children, ...rest } = props;
595
- const _innerRef = React.useRef(null);
596
- const _onInputdeletedRef = React.useRef(onInputdeleted);
597
- _onInputdeletedRef.current = onInputdeleted;
598
- React.useLayoutEffect(() => {
599
- const el = _innerRef.current;
600
- if (!el) return;
601
- const _onInputdeletedFn = (e) => _onInputdeletedRef.current?.(e);
602
- el.addEventListener('inputdeleted', _onInputdeletedFn);
603
- return () => {
604
- el.removeEventListener('inputdeleted', _onInputdeletedFn);
605
- };
606
- }, []);
607
- return React.createElement(customElements.getName(SearchBarComboboxWC) ?? '%%prefix%%-search-bar-combobox', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
594
+ const { children, ...rest } = props;
595
+ return React.createElement(customElements.getName(SearchBarComboboxWC) ?? '%%prefix%%-search-bar-combobox', { ...rest, ref }, children);
608
596
  });
609
597
 
610
598
  const SearchBar = React.forwardRef(function SearchBar(props, ref) {
package/dist/react.mjs CHANGED
@@ -589,20 +589,8 @@ export const SchedulerTimezone = React.forwardRef(function SchedulerTimezone(pro
589
589
  });
590
590
 
591
591
  export const SearchBarCombobox = React.forwardRef(function SearchBarCombobox(props, ref) {
592
- const { onInputdeleted, children, ...rest } = props;
593
- const _innerRef = React.useRef(null);
594
- const _onInputdeletedRef = React.useRef(onInputdeleted);
595
- _onInputdeletedRef.current = onInputdeleted;
596
- React.useLayoutEffect(() => {
597
- const el = _innerRef.current;
598
- if (!el) return;
599
- const _onInputdeletedFn = (e) => _onInputdeletedRef.current?.(e);
600
- el.addEventListener('inputdeleted', _onInputdeletedFn);
601
- return () => {
602
- el.removeEventListener('inputdeleted', _onInputdeletedFn);
603
- };
604
- }, []);
605
- return React.createElement(customElements.getName(SearchBarComboboxWC) ?? '%%prefix%%-search-bar-combobox', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
592
+ const { children, ...rest } = props;
593
+ return React.createElement(customElements.getName(SearchBarComboboxWC) ?? '%%prefix%%-search-bar-combobox', { ...rest, ref }, children);
606
594
  });
607
595
 
608
596
  export const SearchBar = React.forwardRef(function SearchBar(props, ref) {
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.447.0",
4
+ "version": "14.447.1-canary.search-bar-4",
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.447.0",
77
- "@genesislcap/rollup-builder": "14.447.0",
78
- "@genesislcap/ts-builder": "14.447.0",
79
- "@genesislcap/uvu-playwright-builder": "14.447.0",
80
- "@genesislcap/vite-builder": "14.447.0",
81
- "@genesislcap/webpack-builder": "14.447.0"
76
+ "@genesislcap/genx": "14.447.1-canary.search-bar-4",
77
+ "@genesislcap/rollup-builder": "14.447.1-canary.search-bar-4",
78
+ "@genesislcap/ts-builder": "14.447.1-canary.search-bar-4",
79
+ "@genesislcap/uvu-playwright-builder": "14.447.1-canary.search-bar-4",
80
+ "@genesislcap/vite-builder": "14.447.1-canary.search-bar-4",
81
+ "@genesislcap/webpack-builder": "14.447.1-canary.search-bar-4"
82
82
  },
83
83
  "dependencies": {
84
- "@genesislcap/foundation-comms": "14.447.0",
85
- "@genesislcap/foundation-logger": "14.447.0",
86
- "@genesislcap/foundation-ui": "14.447.0",
87
- "@genesislcap/foundation-utils": "14.447.0",
84
+ "@genesislcap/foundation-comms": "14.447.1-canary.search-bar-4",
85
+ "@genesislcap/foundation-logger": "14.447.1-canary.search-bar-4",
86
+ "@genesislcap/foundation-ui": "14.447.1-canary.search-bar-4",
87
+ "@genesislcap/foundation-utils": "14.447.1-canary.search-bar-4",
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": "71ee8a3b6d2cd6acf2b0fb27782c5d82b51b9dca"
114
+ "gitHead": "dd207beff03c73a4aaadcae5f836b5cef9df6d2a"
115
115
  }