@genesislcap/foundation-zero 14.493.1-alpha-8ff3328.0 → 14.494.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 +2388 -2792
- package/dist/dts/base-components.d.ts +0 -11
- package/dist/dts/base-components.d.ts.map +1 -1
- package/dist/dts/index.d.ts +0 -1
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/react.d.ts +8 -20
- package/dist/esm/base-components.js +0 -2
- package/dist/esm/index.js +0 -1
- package/dist/react.cjs +5 -29
- package/dist/react.mjs +4 -27
- package/package.json +12 -12
- package/dist/dts/pill/index.d.ts +0 -4
- package/dist/dts/pill/index.d.ts.map +0 -1
- package/dist/dts/pill/pill.d.ts +0 -18
- package/dist/dts/pill/pill.d.ts.map +0 -1
- package/dist/dts/pill/pill.styles.d.ts +0 -3
- package/dist/dts/pill/pill.styles.d.ts.map +0 -1
- package/dist/dts/pill/pill.template.d.ts +0 -2
- package/dist/dts/pill/pill.template.d.ts.map +0 -1
- package/dist/esm/pill/index.js +0 -3
- package/dist/esm/pill/pill.js +0 -10
- package/dist/esm/pill/pill.styles.js +0 -11
- package/dist/esm/pill/pill.template.js +0 -2
|
@@ -216,17 +216,6 @@ 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>;
|
|
230
219
|
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>;
|
|
231
220
|
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>>;
|
|
232
221
|
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;AAsF5D,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAsFJ,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,cAAc,CAAC;AAC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cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,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"}
|
package/dist/dts/react.d.ts
CHANGED
|
@@ -56,7 +56,6 @@ 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';
|
|
60
59
|
import type { ProgressRing as ProgressRingWC } from './progress-ring/progress-ring';
|
|
61
60
|
import type { Progress as ProgressWC } from './progress/progress';
|
|
62
61
|
import type { RadioGroup as RadioGroupWC } from './radio-group/radio-group';
|
|
@@ -386,23 +385,23 @@ export declare const DropdownMenu: React.ForwardRefExoticComponent<
|
|
|
386
385
|
>;
|
|
387
386
|
export type DropdownMenuRef = DropdownMenuWC;
|
|
388
387
|
|
|
389
|
-
export declare const
|
|
388
|
+
export declare const ErrorBanner: React.ForwardRefExoticComponent<
|
|
390
389
|
React.PropsWithChildren<
|
|
391
|
-
Omit<PublicOf<
|
|
390
|
+
Omit<PublicOf<ErrorBannerWC>, 'children' | 'style'> &
|
|
392
391
|
HTMLWCProps & {
|
|
393
392
|
}
|
|
394
|
-
> & React.RefAttributes<
|
|
393
|
+
> & React.RefAttributes<ErrorBannerWC>
|
|
395
394
|
>;
|
|
396
|
-
export type
|
|
395
|
+
export type ErrorBannerRef = ErrorBannerWC;
|
|
397
396
|
|
|
398
|
-
export declare const
|
|
397
|
+
export declare const EnvironmentIndicator: React.ForwardRefExoticComponent<
|
|
399
398
|
React.PropsWithChildren<
|
|
400
|
-
Omit<PublicOf<
|
|
399
|
+
Omit<PublicOf<EnvironmentIndicatorWC>, 'children' | 'style'> &
|
|
401
400
|
HTMLWCProps & {
|
|
402
401
|
}
|
|
403
|
-
> & React.RefAttributes<
|
|
402
|
+
> & React.RefAttributes<EnvironmentIndicatorWC>
|
|
404
403
|
>;
|
|
405
|
-
export type
|
|
404
|
+
export type EnvironmentIndicatorRef = EnvironmentIndicatorWC;
|
|
406
405
|
|
|
407
406
|
export declare const ErrorBoundary: React.ForwardRefExoticComponent<
|
|
408
407
|
React.PropsWithChildren<
|
|
@@ -651,17 +650,6 @@ export declare const Optgroup: React.ForwardRefExoticComponent<
|
|
|
651
650
|
>;
|
|
652
651
|
export type OptgroupRef = OptgroupWC;
|
|
653
652
|
|
|
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
|
-
|
|
665
653
|
export declare const Progress: React.ForwardRefExoticComponent<
|
|
666
654
|
React.PropsWithChildren<
|
|
667
655
|
Omit<PublicOf<ProgressWC>, 'children' | 'style'> &
|
|
@@ -50,7 +50,6 @@ 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';
|
|
54
53
|
import { zeroProgress } from './progress';
|
|
55
54
|
import { zeroProgressRing } from './progress-ring';
|
|
56
55
|
import { zeroRadio } from './radio';
|
|
@@ -135,7 +134,6 @@ export const baseComponents = {
|
|
|
135
134
|
zeroNotificationListener,
|
|
136
135
|
zeroNumberField,
|
|
137
136
|
zeroOptgroup,
|
|
138
|
-
zeroPill,
|
|
139
137
|
zeroProgress,
|
|
140
138
|
zeroProgressRing,
|
|
141
139
|
zeroRadio,
|
package/dist/esm/index.js
CHANGED
package/dist/react.cjs
CHANGED
|
@@ -58,7 +58,6 @@ 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');
|
|
62
61
|
const { ProgressRing: ProgressRingWC } = require('./esm/progress-ring/progress-ring.js');
|
|
63
62
|
const { Progress: ProgressWC } = require('./esm/progress/progress.js');
|
|
64
63
|
const { RadioGroup: RadioGroupWC } = require('./esm/radio-group/radio-group.js');
|
|
@@ -361,14 +360,14 @@ const DropdownMenu = React.forwardRef(function DropdownMenu(props, ref) {
|
|
|
361
360
|
return React.createElement(customElements.getName(DropdownMenuWC) ?? '%%prefix%%-dropdown-menu', { ...rest, ref }, children);
|
|
362
361
|
});
|
|
363
362
|
|
|
364
|
-
const
|
|
363
|
+
const ErrorBanner = React.forwardRef(function ErrorBanner(props, ref) {
|
|
365
364
|
const { children, ...rest } = props;
|
|
366
|
-
return React.createElement(customElements.getName(
|
|
365
|
+
return React.createElement(customElements.getName(ErrorBannerWC) ?? '%%prefix%%-error-banner', { ...rest, ref }, children);
|
|
367
366
|
});
|
|
368
367
|
|
|
369
|
-
const
|
|
368
|
+
const EnvironmentIndicator = React.forwardRef(function EnvironmentIndicator(props, ref) {
|
|
370
369
|
const { children, ...rest } = props;
|
|
371
|
-
return React.createElement(customElements.getName(
|
|
370
|
+
return React.createElement(customElements.getName(EnvironmentIndicatorWC) ?? '%%prefix%%-environment-indicator', { ...rest, ref }, children);
|
|
372
371
|
});
|
|
373
372
|
|
|
374
373
|
const ErrorBoundary = React.forwardRef(function ErrorBoundary(props, ref) {
|
|
@@ -709,28 +708,6 @@ const Optgroup = React.forwardRef(function Optgroup(props, ref) {
|
|
|
709
708
|
return React.createElement(customElements.getName(OptgroupWC) ?? '%%prefix%%-optgroup', { ...rest, ref }, children);
|
|
710
709
|
});
|
|
711
710
|
|
|
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
|
-
|
|
734
711
|
const Progress = React.forwardRef(function Progress(props, ref) {
|
|
735
712
|
const { children, ...rest } = props;
|
|
736
713
|
return React.createElement(customElements.getName(ProgressWC) ?? '%%prefix%%-progress', { ...rest, ref }, children);
|
|
@@ -1073,8 +1050,8 @@ module.exports = {
|
|
|
1073
1050
|
Disclosure,
|
|
1074
1051
|
Divider,
|
|
1075
1052
|
DropdownMenu,
|
|
1076
|
-
EnvironmentIndicator,
|
|
1077
1053
|
ErrorBanner,
|
|
1054
|
+
EnvironmentIndicator,
|
|
1078
1055
|
ErrorBoundary,
|
|
1079
1056
|
ErrorDialog,
|
|
1080
1057
|
ZeroExpressionBuilder,
|
|
@@ -1099,7 +1076,6 @@ module.exports = {
|
|
|
1099
1076
|
NotificationListener,
|
|
1100
1077
|
NumberField,
|
|
1101
1078
|
Optgroup,
|
|
1102
|
-
Pill,
|
|
1103
1079
|
Progress,
|
|
1104
1080
|
ProgressRing,
|
|
1105
1081
|
Radio,
|
package/dist/react.mjs
CHANGED
|
@@ -56,7 +56,6 @@ 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';
|
|
60
59
|
import { ProgressRing as ProgressRingWC } from './esm/progress-ring/progress-ring.js';
|
|
61
60
|
import { Progress as ProgressWC } from './esm/progress/progress.js';
|
|
62
61
|
import { RadioGroup as RadioGroupWC } from './esm/radio-group/radio-group.js';
|
|
@@ -359,14 +358,14 @@ export const DropdownMenu = React.forwardRef(function DropdownMenu(props, ref) {
|
|
|
359
358
|
return React.createElement(customElements.getName(DropdownMenuWC) ?? '%%prefix%%-dropdown-menu', { ...rest, ref }, children);
|
|
360
359
|
});
|
|
361
360
|
|
|
362
|
-
export const
|
|
361
|
+
export const ErrorBanner = React.forwardRef(function ErrorBanner(props, ref) {
|
|
363
362
|
const { children, ...rest } = props;
|
|
364
|
-
return React.createElement(customElements.getName(
|
|
363
|
+
return React.createElement(customElements.getName(ErrorBannerWC) ?? '%%prefix%%-error-banner', { ...rest, ref }, children);
|
|
365
364
|
});
|
|
366
365
|
|
|
367
|
-
export const
|
|
366
|
+
export const EnvironmentIndicator = React.forwardRef(function EnvironmentIndicator(props, ref) {
|
|
368
367
|
const { children, ...rest } = props;
|
|
369
|
-
return React.createElement(customElements.getName(
|
|
368
|
+
return React.createElement(customElements.getName(EnvironmentIndicatorWC) ?? '%%prefix%%-environment-indicator', { ...rest, ref }, children);
|
|
370
369
|
});
|
|
371
370
|
|
|
372
371
|
export const ErrorBoundary = React.forwardRef(function ErrorBoundary(props, ref) {
|
|
@@ -707,28 +706,6 @@ export const Optgroup = React.forwardRef(function Optgroup(props, ref) {
|
|
|
707
706
|
return React.createElement(customElements.getName(OptgroupWC) ?? '%%prefix%%-optgroup', { ...rest, ref }, children);
|
|
708
707
|
});
|
|
709
708
|
|
|
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
|
-
|
|
732
709
|
export const Progress = React.forwardRef(function Progress(props, ref) {
|
|
733
710
|
const { children, ...rest } = props;
|
|
734
711
|
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.
|
|
4
|
+
"version": "14.494.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.
|
|
77
|
-
"@genesislcap/rollup-builder": "14.
|
|
78
|
-
"@genesislcap/ts-builder": "14.
|
|
79
|
-
"@genesislcap/uvu-playwright-builder": "14.
|
|
80
|
-
"@genesislcap/vite-builder": "14.
|
|
81
|
-
"@genesislcap/webpack-builder": "14.
|
|
76
|
+
"@genesislcap/genx": "14.494.0",
|
|
77
|
+
"@genesislcap/rollup-builder": "14.494.0",
|
|
78
|
+
"@genesislcap/ts-builder": "14.494.0",
|
|
79
|
+
"@genesislcap/uvu-playwright-builder": "14.494.0",
|
|
80
|
+
"@genesislcap/vite-builder": "14.494.0",
|
|
81
|
+
"@genesislcap/webpack-builder": "14.494.0"
|
|
82
82
|
},
|
|
83
83
|
"dependencies": {
|
|
84
|
-
"@genesislcap/foundation-comms": "14.
|
|
85
|
-
"@genesislcap/foundation-logger": "14.
|
|
86
|
-
"@genesislcap/foundation-ui": "14.
|
|
87
|
-
"@genesislcap/foundation-utils": "14.
|
|
84
|
+
"@genesislcap/foundation-comms": "14.494.0",
|
|
85
|
+
"@genesislcap/foundation-logger": "14.494.0",
|
|
86
|
+
"@genesislcap/foundation-ui": "14.494.0",
|
|
87
|
+
"@genesislcap/foundation-utils": "14.494.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": "df845b67dcc681aa3775bdc87b9d91b404791868"
|
|
115
115
|
}
|
package/dist/dts/pill/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
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"}
|
package/dist/dts/pill/pill.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
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/esm/pill/index.js
DELETED
package/dist/esm/pill/pill.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
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));
|
|
@@ -1,11 +0,0 @@
|
|
|
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
|
-
`;
|