@genesislcap/foundation-zero 14.489.0 → 14.489.1-alpha-519bcd2.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.
- package/dist/custom-elements.json +1112 -708
- package/dist/dts/base-components.d.ts +11 -0
- package/dist/dts/base-components.d.ts.map +1 -1
- package/dist/dts/index.d.ts +1 -0
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/pill/index.d.ts +4 -0
- package/dist/dts/pill/index.d.ts.map +1 -0
- package/dist/dts/pill/pill.d.ts +18 -0
- package/dist/dts/pill/pill.d.ts.map +1 -0
- package/dist/dts/pill/pill.styles.d.ts +3 -0
- package/dist/dts/pill/pill.styles.d.ts.map +1 -0
- package/dist/dts/pill/pill.template.d.ts +2 -0
- package/dist/dts/pill/pill.template.d.ts.map +1 -0
- package/dist/dts/react.d.ts +21 -9
- package/dist/esm/base-components.js +2 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/pill/index.js +3 -0
- package/dist/esm/pill/pill.js +10 -0
- package/dist/esm/pill/pill.styles.js +11 -0
- package/dist/esm/pill/pill.template.js +2 -0
- package/dist/react.cjs +30 -6
- package/dist/react.mjs +28 -5
- package/package.json +12 -12
|
@@ -216,6 +216,17 @@ export declare const baseComponents: {
|
|
|
216
216
|
}, typeof import("./notification-listener").NotificationListener>;
|
|
217
217
|
zeroNumberField: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<import("@microsoft/fast-foundation").FoundationElementDefinition>) => import("@microsoft/fast-foundation").FoundationElementRegistry<import("@microsoft/fast-foundation").FoundationElementDefinition, typeof import("./number-field").NumberField>;
|
|
218
218
|
zeroOptgroup: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<import("@microsoft/fast-foundation").FoundationElementDefinition>) => import("@microsoft/fast-foundation").FoundationElementRegistry<import("@microsoft/fast-foundation").FoundationElementDefinition, typeof import("./optgroup").Optgroup>;
|
|
219
|
+
zeroPill: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
|
|
220
|
+
baseName: string;
|
|
221
|
+
template: import("@microsoft/fast-element").ViewTemplate<import("@genesislcap/foundation-ui").Pill, any>;
|
|
222
|
+
styles: import("@microsoft/fast-element").ElementStyles;
|
|
223
|
+
shadowOptions: ShadowRootInit;
|
|
224
|
+
}>) => import("@microsoft/fast-foundation").FoundationElementRegistry<{
|
|
225
|
+
baseName: string;
|
|
226
|
+
template: import("@microsoft/fast-element").ViewTemplate<import("@genesislcap/foundation-ui").Pill, any>;
|
|
227
|
+
styles: import("@microsoft/fast-element").ElementStyles;
|
|
228
|
+
shadowOptions: ShadowRootInit;
|
|
229
|
+
}, typeof import("./pill").Pill>;
|
|
219
230
|
zeroProgress: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<import("@microsoft/fast-foundation").FoundationElementDefinition>) => import("@microsoft/fast-foundation").FoundationElementRegistry<import("@microsoft/fast-foundation").FoundationElementDefinition, typeof import("./progress").Progress>;
|
|
220
231
|
zeroProgressRing: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<import("@microsoft/fast-foundation").ProgressRingOptions>) => import("@microsoft/fast-foundation").FoundationElementRegistry<import("@microsoft/fast-foundation").ProgressRingOptions, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
|
221
232
|
zeroRadio: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<import("@microsoft/fast-foundation").FoundationElementDefinition>) => import("@microsoft/fast-foundation").FoundationElementRegistry<import("@microsoft/fast-foundation").FoundationElementDefinition, typeof import("./radio").Radio>;
|
|
@@ -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;
|
|
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"}
|
package/dist/dts/index.d.ts
CHANGED
package/dist/dts/index.d.ts.map
CHANGED
|
@@ -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,cAA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AAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/pill/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Pill as FoundationPill } from '@genesislcap/foundation-ui';
|
|
2
|
+
/**
|
|
3
|
+
* @tagname %%prefix%%-pill
|
|
4
|
+
*/
|
|
5
|
+
export declare class Pill extends FoundationPill {
|
|
6
|
+
}
|
|
7
|
+
export declare const zeroPill: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
|
|
8
|
+
baseName: string;
|
|
9
|
+
template: import("@microsoft/fast-element").ViewTemplate<FoundationPill, any>;
|
|
10
|
+
styles: import("@microsoft/fast-element").ElementStyles;
|
|
11
|
+
shadowOptions: ShadowRootInit;
|
|
12
|
+
}>) => import("@microsoft/fast-foundation").FoundationElementRegistry<{
|
|
13
|
+
baseName: string;
|
|
14
|
+
template: import("@microsoft/fast-element").ViewTemplate<FoundationPill, any>;
|
|
15
|
+
styles: import("@microsoft/fast-element").ElementStyles;
|
|
16
|
+
shadowOptions: ShadowRootInit;
|
|
17
|
+
}, typeof Pill>;
|
|
18
|
+
//# sourceMappingURL=pill.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pill.d.ts","sourceRoot":"","sources":["../../../src/pill/pill.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,IAAI,IAAI,cAAc,EACvB,MAAM,4BAA4B,CAAC;AAIpC;;GAEG;AACH,qBAAa,IAAK,SAAQ,cAAc;CAAG;AAE3C,eAAO,MAAM,QAAQ;;;;;;;;;;eAMnB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pill.styles.d.ts","sourceRoot":"","sources":["../../../src/pill/pill.styles.ts"],"names":[],"mappings":"AAMA,OAAO,EAAO,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE7D,eAAO,MAAM,cAAc,EAAE,aAO5B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pill.template.d.ts","sourceRoot":"","sources":["../../../src/pill/pill.template.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,gGAAyB,CAAC"}
|
package/dist/dts/react.d.ts
CHANGED
|
@@ -56,6 +56,7 @@ import type { Multiselect as MultiselectWC } from './multiselect/multiselect';
|
|
|
56
56
|
import type { NotificationListener as NotificationListenerWC } from './notification-listener/notification-listener';
|
|
57
57
|
import type { NumberField as NumberFieldWC } from './number-field/number-field';
|
|
58
58
|
import type { Optgroup as OptgroupWC } from './optgroup/optgroup';
|
|
59
|
+
import type { Pill as PillWC } from './pill/pill';
|
|
59
60
|
import type { ProgressRing as ProgressRingWC } from './progress-ring/progress-ring';
|
|
60
61
|
import type { Progress as ProgressWC } from './progress/progress';
|
|
61
62
|
import type { RadioGroup as RadioGroupWC } from './radio-group/radio-group';
|
|
@@ -545,6 +546,15 @@ export declare const GridLayoutItem: React.ForwardRefExoticComponent<
|
|
|
545
546
|
>;
|
|
546
547
|
export type GridLayoutItemRef = GridLayoutItemWC;
|
|
547
548
|
|
|
549
|
+
export declare const Icon: React.ForwardRefExoticComponent<
|
|
550
|
+
React.PropsWithChildren<
|
|
551
|
+
Omit<PublicOf<IconWC>, 'children' | 'style'> &
|
|
552
|
+
HTMLWCProps & {
|
|
553
|
+
}
|
|
554
|
+
> & React.RefAttributes<IconWC>
|
|
555
|
+
>;
|
|
556
|
+
export type IconRef = IconWC;
|
|
557
|
+
|
|
548
558
|
export declare const HorizontalScroll: React.ForwardRefExoticComponent<
|
|
549
559
|
React.PropsWithChildren<
|
|
550
560
|
Omit<PublicOf<HorizontalScrollWC>, 'children' | 'style'> &
|
|
@@ -556,15 +566,6 @@ export declare const HorizontalScroll: React.ForwardRefExoticComponent<
|
|
|
556
566
|
>;
|
|
557
567
|
export type HorizontalScrollRef = HorizontalScrollWC;
|
|
558
568
|
|
|
559
|
-
export declare const Icon: React.ForwardRefExoticComponent<
|
|
560
|
-
React.PropsWithChildren<
|
|
561
|
-
Omit<PublicOf<IconWC>, 'children' | 'style'> &
|
|
562
|
-
HTMLWCProps & {
|
|
563
|
-
}
|
|
564
|
-
> & React.RefAttributes<IconWC>
|
|
565
|
-
>;
|
|
566
|
-
export type IconRef = IconWC;
|
|
567
|
-
|
|
568
569
|
export declare const Listbox: React.ForwardRefExoticComponent<
|
|
569
570
|
React.PropsWithChildren<
|
|
570
571
|
Omit<PublicOf<ListboxWC>, 'children' | 'style'> &
|
|
@@ -650,6 +651,17 @@ export declare const Optgroup: React.ForwardRefExoticComponent<
|
|
|
650
651
|
>;
|
|
651
652
|
export type OptgroupRef = OptgroupWC;
|
|
652
653
|
|
|
654
|
+
export declare const Pill: React.ForwardRefExoticComponent<
|
|
655
|
+
React.PropsWithChildren<
|
|
656
|
+
Omit<PublicOf<PillWC>, 'children' | 'style'> &
|
|
657
|
+
HTMLWCProps & {
|
|
658
|
+
onRemove?: (event: CustomEvent<unknown>) => void;
|
|
659
|
+
onPillClick?: (event: CustomEvent<unknown>) => void;
|
|
660
|
+
}
|
|
661
|
+
> & React.RefAttributes<PillWC>
|
|
662
|
+
>;
|
|
663
|
+
export type PillRef = PillWC;
|
|
664
|
+
|
|
653
665
|
export declare const Progress: React.ForwardRefExoticComponent<
|
|
654
666
|
React.PropsWithChildren<
|
|
655
667
|
Omit<PublicOf<ProgressWC>, 'children' | 'style'> &
|
|
@@ -50,6 +50,7 @@ import { zeroNotificationListener } from './notification-listener';
|
|
|
50
50
|
import { zeroNumberField } from './number-field';
|
|
51
51
|
import { zeroOptgroup } from './optgroup';
|
|
52
52
|
import { zeroSystemHealthOverlay } from './overlays';
|
|
53
|
+
import { zeroPill } from './pill';
|
|
53
54
|
import { zeroProgress } from './progress';
|
|
54
55
|
import { zeroProgressRing } from './progress-ring';
|
|
55
56
|
import { zeroRadio } from './radio';
|
|
@@ -134,6 +135,7 @@ export const baseComponents = {
|
|
|
134
135
|
zeroNotificationListener,
|
|
135
136
|
zeroNumberField,
|
|
136
137
|
zeroOptgroup,
|
|
138
|
+
zeroPill,
|
|
137
139
|
zeroProgress,
|
|
138
140
|
zeroProgressRing,
|
|
139
141
|
zeroRadio,
|
package/dist/esm/index.js
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { defaultPillConfig, foundationPillShadowOptions, Pill as FoundationPill, } from '@genesislcap/foundation-ui';
|
|
2
|
+
import { zeroPillStyles as styles } from './pill.styles';
|
|
3
|
+
import { zeroPillTemplate as template } from './pill.template';
|
|
4
|
+
/**
|
|
5
|
+
* @tagname %%prefix%%-pill
|
|
6
|
+
*/
|
|
7
|
+
export class Pill extends FoundationPill {
|
|
8
|
+
}
|
|
9
|
+
export const zeroPill = Pill.compose(Object.assign({ baseName: 'pill', template,
|
|
10
|
+
styles, shadowOptions: foundationPillShadowOptions }, defaultPillConfig));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { pillStyles as foundationPillStyles } from '@genesislcap/foundation-ui';
|
|
2
|
+
import { neutralFillHover, neutralFillRest, neutralForegroundRest, } from '@microsoft/fast-components';
|
|
3
|
+
import { css } from '@microsoft/fast-element';
|
|
4
|
+
export const zeroPillStyles = css `
|
|
5
|
+
${foundationPillStyles}
|
|
6
|
+
:host {
|
|
7
|
+
--pill-fill: ${neutralFillRest};
|
|
8
|
+
--pill-fill-hover: ${neutralFillHover};
|
|
9
|
+
--pill-foreground: ${neutralForegroundRest};
|
|
10
|
+
}
|
|
11
|
+
`;
|
package/dist/react.cjs
CHANGED
|
@@ -58,6 +58,7 @@ const { Multiselect: MultiselectWC } = require('./esm/multiselect/multiselect.js
|
|
|
58
58
|
const { NotificationListener: NotificationListenerWC } = require('./esm/notification-listener/notification-listener.js');
|
|
59
59
|
const { NumberField: NumberFieldWC } = require('./esm/number-field/number-field.js');
|
|
60
60
|
const { Optgroup: OptgroupWC } = require('./esm/optgroup/optgroup.js');
|
|
61
|
+
const { Pill: PillWC } = require('./esm/pill/pill.js');
|
|
61
62
|
const { ProgressRing: ProgressRingWC } = require('./esm/progress-ring/progress-ring.js');
|
|
62
63
|
const { Progress: ProgressWC } = require('./esm/progress/progress.js');
|
|
63
64
|
const { RadioGroup: RadioGroupWC } = require('./esm/radio-group/radio-group.js');
|
|
@@ -602,6 +603,11 @@ const GridLayoutItem = React.forwardRef(function GridLayoutItem(props, ref) {
|
|
|
602
603
|
return React.createElement(customElements.getName(GridLayoutItemWC) ?? '%%prefix%%-grid-layout-item', { ...rest, ref }, children);
|
|
603
604
|
});
|
|
604
605
|
|
|
606
|
+
const Icon = React.forwardRef(function Icon(props, ref) {
|
|
607
|
+
const { children, ...rest } = props;
|
|
608
|
+
return React.createElement(customElements.getName(IconWC) ?? '%%prefix%%-icon', { ...rest, ref }, children);
|
|
609
|
+
});
|
|
610
|
+
|
|
605
611
|
const HorizontalScroll = React.forwardRef(function HorizontalScroll(props, ref) {
|
|
606
612
|
const { onScrollstart, onScrollend, children, ...rest } = props;
|
|
607
613
|
const _innerRef = React.useRef(null);
|
|
@@ -624,11 +630,6 @@ const HorizontalScroll = React.forwardRef(function HorizontalScroll(props, ref)
|
|
|
624
630
|
return React.createElement(customElements.getName(HorizontalScrollWC) ?? '%%prefix%%-horizontal-scroll', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
625
631
|
});
|
|
626
632
|
|
|
627
|
-
const Icon = React.forwardRef(function Icon(props, ref) {
|
|
628
|
-
const { children, ...rest } = props;
|
|
629
|
-
return React.createElement(customElements.getName(IconWC) ?? '%%prefix%%-icon', { ...rest, ref }, children);
|
|
630
|
-
});
|
|
631
|
-
|
|
632
633
|
const Listbox = React.forwardRef(function Listbox(props, ref) {
|
|
633
634
|
const { children, ...rest } = props;
|
|
634
635
|
return React.createElement(customElements.getName(ListboxWC) ?? '%%prefix%%-listbox', { ...rest, ref }, children);
|
|
@@ -708,6 +709,28 @@ const Optgroup = React.forwardRef(function Optgroup(props, ref) {
|
|
|
708
709
|
return React.createElement(customElements.getName(OptgroupWC) ?? '%%prefix%%-optgroup', { ...rest, ref }, children);
|
|
709
710
|
});
|
|
710
711
|
|
|
712
|
+
const Pill = React.forwardRef(function Pill(props, ref) {
|
|
713
|
+
const { onRemove, onPillClick, children, ...rest } = props;
|
|
714
|
+
const _innerRef = React.useRef(null);
|
|
715
|
+
const _onRemoveRef = React.useRef(onRemove);
|
|
716
|
+
_onRemoveRef.current = onRemove;
|
|
717
|
+
const _onPillClickRef = React.useRef(onPillClick);
|
|
718
|
+
_onPillClickRef.current = onPillClick;
|
|
719
|
+
React.useLayoutEffect(() => {
|
|
720
|
+
const el = _innerRef.current;
|
|
721
|
+
if (!el) return;
|
|
722
|
+
const _onRemoveFn = (e) => _onRemoveRef.current?.(e);
|
|
723
|
+
el.addEventListener('remove', _onRemoveFn);
|
|
724
|
+
const _onPillClickFn = (e) => _onPillClickRef.current?.(e);
|
|
725
|
+
el.addEventListener('pill-click', _onPillClickFn);
|
|
726
|
+
return () => {
|
|
727
|
+
el.removeEventListener('remove', _onRemoveFn);
|
|
728
|
+
el.removeEventListener('pill-click', _onPillClickFn);
|
|
729
|
+
};
|
|
730
|
+
}, []);
|
|
731
|
+
return React.createElement(customElements.getName(PillWC) ?? '%%prefix%%-pill', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
732
|
+
});
|
|
733
|
+
|
|
711
734
|
const Progress = React.forwardRef(function Progress(props, ref) {
|
|
712
735
|
const { children, ...rest } = props;
|
|
713
736
|
return React.createElement(customElements.getName(ProgressWC) ?? '%%prefix%%-progress', { ...rest, ref }, children);
|
|
@@ -1065,8 +1088,8 @@ module.exports = {
|
|
|
1065
1088
|
Flyout,
|
|
1066
1089
|
GridLayout,
|
|
1067
1090
|
GridLayoutItem,
|
|
1068
|
-
HorizontalScroll,
|
|
1069
1091
|
Icon,
|
|
1092
|
+
HorizontalScroll,
|
|
1070
1093
|
Listbox,
|
|
1071
1094
|
ListboxOption,
|
|
1072
1095
|
Menu,
|
|
@@ -1076,6 +1099,7 @@ module.exports = {
|
|
|
1076
1099
|
NotificationListener,
|
|
1077
1100
|
NumberField,
|
|
1078
1101
|
Optgroup,
|
|
1102
|
+
Pill,
|
|
1079
1103
|
Progress,
|
|
1080
1104
|
ProgressRing,
|
|
1081
1105
|
Radio,
|
package/dist/react.mjs
CHANGED
|
@@ -56,6 +56,7 @@ import { Multiselect as MultiselectWC } from './esm/multiselect/multiselect.js';
|
|
|
56
56
|
import { NotificationListener as NotificationListenerWC } from './esm/notification-listener/notification-listener.js';
|
|
57
57
|
import { NumberField as NumberFieldWC } from './esm/number-field/number-field.js';
|
|
58
58
|
import { Optgroup as OptgroupWC } from './esm/optgroup/optgroup.js';
|
|
59
|
+
import { Pill as PillWC } from './esm/pill/pill.js';
|
|
59
60
|
import { ProgressRing as ProgressRingWC } from './esm/progress-ring/progress-ring.js';
|
|
60
61
|
import { Progress as ProgressWC } from './esm/progress/progress.js';
|
|
61
62
|
import { RadioGroup as RadioGroupWC } from './esm/radio-group/radio-group.js';
|
|
@@ -600,6 +601,11 @@ export const GridLayoutItem = React.forwardRef(function GridLayoutItem(props, re
|
|
|
600
601
|
return React.createElement(customElements.getName(GridLayoutItemWC) ?? '%%prefix%%-grid-layout-item', { ...rest, ref }, children);
|
|
601
602
|
});
|
|
602
603
|
|
|
604
|
+
export const Icon = React.forwardRef(function Icon(props, ref) {
|
|
605
|
+
const { children, ...rest } = props;
|
|
606
|
+
return React.createElement(customElements.getName(IconWC) ?? '%%prefix%%-icon', { ...rest, ref }, children);
|
|
607
|
+
});
|
|
608
|
+
|
|
603
609
|
export const HorizontalScroll = React.forwardRef(function HorizontalScroll(props, ref) {
|
|
604
610
|
const { onScrollstart, onScrollend, children, ...rest } = props;
|
|
605
611
|
const _innerRef = React.useRef(null);
|
|
@@ -622,11 +628,6 @@ export const HorizontalScroll = React.forwardRef(function HorizontalScroll(props
|
|
|
622
628
|
return React.createElement(customElements.getName(HorizontalScrollWC) ?? '%%prefix%%-horizontal-scroll', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
623
629
|
});
|
|
624
630
|
|
|
625
|
-
export const Icon = React.forwardRef(function Icon(props, ref) {
|
|
626
|
-
const { children, ...rest } = props;
|
|
627
|
-
return React.createElement(customElements.getName(IconWC) ?? '%%prefix%%-icon', { ...rest, ref }, children);
|
|
628
|
-
});
|
|
629
|
-
|
|
630
631
|
export const Listbox = React.forwardRef(function Listbox(props, ref) {
|
|
631
632
|
const { children, ...rest } = props;
|
|
632
633
|
return React.createElement(customElements.getName(ListboxWC) ?? '%%prefix%%-listbox', { ...rest, ref }, children);
|
|
@@ -706,6 +707,28 @@ export const Optgroup = React.forwardRef(function Optgroup(props, ref) {
|
|
|
706
707
|
return React.createElement(customElements.getName(OptgroupWC) ?? '%%prefix%%-optgroup', { ...rest, ref }, children);
|
|
707
708
|
});
|
|
708
709
|
|
|
710
|
+
export const Pill = React.forwardRef(function Pill(props, ref) {
|
|
711
|
+
const { onRemove, onPillClick, children, ...rest } = props;
|
|
712
|
+
const _innerRef = React.useRef(null);
|
|
713
|
+
const _onRemoveRef = React.useRef(onRemove);
|
|
714
|
+
_onRemoveRef.current = onRemove;
|
|
715
|
+
const _onPillClickRef = React.useRef(onPillClick);
|
|
716
|
+
_onPillClickRef.current = onPillClick;
|
|
717
|
+
React.useLayoutEffect(() => {
|
|
718
|
+
const el = _innerRef.current;
|
|
719
|
+
if (!el) return;
|
|
720
|
+
const _onRemoveFn = (e) => _onRemoveRef.current?.(e);
|
|
721
|
+
el.addEventListener('remove', _onRemoveFn);
|
|
722
|
+
const _onPillClickFn = (e) => _onPillClickRef.current?.(e);
|
|
723
|
+
el.addEventListener('pill-click', _onPillClickFn);
|
|
724
|
+
return () => {
|
|
725
|
+
el.removeEventListener('remove', _onRemoveFn);
|
|
726
|
+
el.removeEventListener('pill-click', _onPillClickFn);
|
|
727
|
+
};
|
|
728
|
+
}, []);
|
|
729
|
+
return React.createElement(customElements.getName(PillWC) ?? '%%prefix%%-pill', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
730
|
+
});
|
|
731
|
+
|
|
709
732
|
export const Progress = React.forwardRef(function Progress(props, ref) {
|
|
710
733
|
const { children, ...rest } = props;
|
|
711
734
|
return React.createElement(customElements.getName(ProgressWC) ?? '%%prefix%%-progress', { ...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": "14.489.0",
|
|
4
|
+
"version": "14.489.1-alpha-519bcd2.0",
|
|
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.489.0",
|
|
77
|
-
"@genesislcap/rollup-builder": "14.489.0",
|
|
78
|
-
"@genesislcap/ts-builder": "14.489.0",
|
|
79
|
-
"@genesislcap/uvu-playwright-builder": "14.489.0",
|
|
80
|
-
"@genesislcap/vite-builder": "14.489.0",
|
|
81
|
-
"@genesislcap/webpack-builder": "14.489.0"
|
|
76
|
+
"@genesislcap/genx": "14.489.1-alpha-519bcd2.0",
|
|
77
|
+
"@genesislcap/rollup-builder": "14.489.1-alpha-519bcd2.0",
|
|
78
|
+
"@genesislcap/ts-builder": "14.489.1-alpha-519bcd2.0",
|
|
79
|
+
"@genesislcap/uvu-playwright-builder": "14.489.1-alpha-519bcd2.0",
|
|
80
|
+
"@genesislcap/vite-builder": "14.489.1-alpha-519bcd2.0",
|
|
81
|
+
"@genesislcap/webpack-builder": "14.489.1-alpha-519bcd2.0"
|
|
82
82
|
},
|
|
83
83
|
"dependencies": {
|
|
84
|
-
"@genesislcap/foundation-comms": "14.489.0",
|
|
85
|
-
"@genesislcap/foundation-logger": "14.489.0",
|
|
86
|
-
"@genesislcap/foundation-ui": "14.489.0",
|
|
87
|
-
"@genesislcap/foundation-utils": "14.489.0",
|
|
84
|
+
"@genesislcap/foundation-comms": "14.489.1-alpha-519bcd2.0",
|
|
85
|
+
"@genesislcap/foundation-logger": "14.489.1-alpha-519bcd2.0",
|
|
86
|
+
"@genesislcap/foundation-ui": "14.489.1-alpha-519bcd2.0",
|
|
87
|
+
"@genesislcap/foundation-utils": "14.489.1-alpha-519bcd2.0",
|
|
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": "
|
|
114
|
+
"gitHead": "3aaba760fec7b7e9bfebeffb78ecb2ec52a671d2"
|
|
115
115
|
}
|