@genesislcap/foundation-zero 14.63.1 → 14.64.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 +174 -2
- package/dist/dts/base-components.d.ts +1 -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/slider/slider.stories.d.ts +1 -0
- package/dist/dts/slider/slider.stories.d.ts.map +1 -1
- package/dist/dts/slider-label/index.d.ts +4 -0
- package/dist/dts/slider-label/index.d.ts.map +1 -0
- package/dist/dts/slider-label/slider-label.d.ts +8 -0
- package/dist/dts/slider-label/slider-label.d.ts.map +1 -0
- package/dist/dts/slider-label/slider-label.styles.d.ts +4 -0
- package/dist/dts/slider-label/slider-label.styles.d.ts.map +1 -0
- package/dist/dts/slider-label/slider-label.template.d.ts +5 -0
- package/dist/dts/slider-label/slider-label.template.d.ts.map +1 -0
- package/dist/esm/base-components.js +2 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/slider/slider.stories.js +15 -1
- package/dist/esm/slider-label/index.js +3 -0
- package/dist/esm/slider-label/slider-label.js +10 -0
- package/dist/esm/slider-label/slider-label.styles.js +14 -0
- package/dist/esm/slider-label/slider-label.template.js +2 -0
- package/package.json +6 -6
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"type": {
|
|
13
13
|
"text": "object"
|
|
14
14
|
},
|
|
15
|
-
"default": "{\n zeroAccordion,\n zeroAccordionItem,\n zeroActionsMenu,\n zeroAnchor,\n zeroAnchoredRegion,\n zeroAvatar,\n zeroBadge,\n zeroBanner,\n zeroBreadcrumbItem,\n zeroBreadcrumb,\n zeroButton,\n zeroCard,\n zeroCheckbox,\n zeroCombobox,\n zeroConnectionIndicator,\n zeroDataGrid,\n zeroDesignSystemProvider,\n zeroDialog,\n zeroDatePicker,\n zeroDisclosure,\n zeroDivider,\n zeroDropdownMenu,\n zeroErrorBoundary,\n zeroNotificationListener,\n zeroErrorBanner,\n zeroErrorDialog,\n zeroFileUpload,\n zeroFilter,\n zeroFilterBar,\n zeroFlexLayout,\n zeroFlipper,\n zeroFlyout,\n zeroGridLayout,\n zeroGridLayoutItem,\n zeroHorizontalScroll,\n zeroIcon,\n zeroListbox,\n zeroListboxOption,\n zeroMenu,\n zeroMenuItem,\n zeroModal,\n zeroMultiselect,\n zeroNumberField,\n zeroProgress,\n zeroProgressRing,\n zeroRadio,\n zeroRadioGroup,\n zeroSegmentedControl,\n zeroSegmentedItem,\n zeroSelect,\n zeroSkeleton,\n zeroSlider,\n zeroSnackbar,\n zeroSwitch,\n zeroTab,\n zeroTabPanel,\n zeroTabs,\n zeroTextArea,\n zeroTextField,\n zeroToast,\n zeroToolbar,\n zeroTooltip,\n zeroTreeItem,\n zeroTreeView,\n zeroUrlInput,\n register(container?: Container, ...rest: any[]) {\n if (!container) {\n // preserve backward compatibility with code that loops through\n // the values of this object and calls them as funcs with no args\n return;\n }\n\n for (const key in this) {\n if (key === 'register') {\n continue;\n }\n\n this[key]().register(container, ...rest);\n }\n },\n}"
|
|
15
|
+
"default": "{\n zeroAccordion,\n zeroAccordionItem,\n zeroActionsMenu,\n zeroAnchor,\n zeroAnchoredRegion,\n zeroAvatar,\n zeroBadge,\n zeroBanner,\n zeroBreadcrumbItem,\n zeroBreadcrumb,\n zeroButton,\n zeroCard,\n zeroCheckbox,\n zeroCombobox,\n zeroConnectionIndicator,\n zeroDataGrid,\n zeroDesignSystemProvider,\n zeroDialog,\n zeroDatePicker,\n zeroDisclosure,\n zeroDivider,\n zeroDropdownMenu,\n zeroErrorBoundary,\n zeroNotificationListener,\n zeroErrorBanner,\n zeroErrorDialog,\n zeroFileUpload,\n zeroFilter,\n zeroFilterBar,\n zeroFlexLayout,\n zeroFlipper,\n zeroFlyout,\n zeroGridLayout,\n zeroGridLayoutItem,\n zeroHorizontalScroll,\n zeroIcon,\n zeroListbox,\n zeroListboxOption,\n zeroMenu,\n zeroMenuItem,\n zeroModal,\n zeroMultiselect,\n zeroNumberField,\n zeroProgress,\n zeroProgressRing,\n zeroRadio,\n zeroRadioGroup,\n zeroSegmentedControl,\n zeroSegmentedItem,\n zeroSelect,\n zeroSkeleton,\n zeroSlider,\n zeroSliderLabel,\n zeroSnackbar,\n zeroSwitch,\n zeroTab,\n zeroTabPanel,\n zeroTabs,\n zeroTextArea,\n zeroTextField,\n zeroToast,\n zeroToolbar,\n zeroTooltip,\n zeroTreeItem,\n zeroTreeView,\n zeroUrlInput,\n register(container?: Container, ...rest: any[]) {\n if (!container) {\n // preserve backward compatibility with code that loops through\n // the values of this object and calls them as funcs with no args\n return;\n }\n\n for (const key in this) {\n if (key === 'register') {\n continue;\n }\n\n this[key]().register(container, ...rest);\n }\n },\n}"
|
|
16
16
|
}
|
|
17
17
|
],
|
|
18
18
|
"exports": [
|
|
@@ -490,6 +490,14 @@
|
|
|
490
490
|
"package": "./slider"
|
|
491
491
|
}
|
|
492
492
|
},
|
|
493
|
+
{
|
|
494
|
+
"kind": "js",
|
|
495
|
+
"name": "*",
|
|
496
|
+
"declaration": {
|
|
497
|
+
"name": "*",
|
|
498
|
+
"package": "./slider-label"
|
|
499
|
+
}
|
|
500
|
+
},
|
|
493
501
|
{
|
|
494
502
|
"kind": "js",
|
|
495
503
|
"name": "*",
|
|
@@ -9599,7 +9607,15 @@
|
|
|
9599
9607
|
"type": {
|
|
9600
9608
|
"text": "StoryObj"
|
|
9601
9609
|
},
|
|
9602
|
-
"default": "{\n render: () => html`\n <div style=\"min-height: 300px
|
|
9610
|
+
"default": "{\n render: () => html`\n <div style=\"min-height: 300px; width: 100%;\">\n <h6>Vertical</h6>\n <zero-slider min=\"0\" max=\"100\" step=\"10\" value=\"70\" orientation=\"vertical\"></zero-slider>\n <h6>Horizontal</h6>\n <zero-slider min=\"0\" max=\"100\" step=\"10\" value=\"70\"></zero-slider>\n </div>\n `,\n}"
|
|
9611
|
+
},
|
|
9612
|
+
{
|
|
9613
|
+
"kind": "variable",
|
|
9614
|
+
"name": "WithLabels",
|
|
9615
|
+
"type": {
|
|
9616
|
+
"text": "StoryObj"
|
|
9617
|
+
},
|
|
9618
|
+
"default": "{\n render: () => html`\n <div style=\"min-height: 300px; width: 100%; margin: 20px;\">\n <zero-slider min=\"0\" max=\"100\" step=\"10\" value=\"70\">\n <zero-slider-label position=\"0\">0%</zero-slider-label>\n <zero-slider-label position=\"10\">10%</zero-slider-label>\n <zero-slider-label position=\"90\">90%</zero-slider-label>\n <zero-slider-label position=\"100\">100%</zero-slider-label>\n </zero-slider>\n </div>\n `,\n}"
|
|
9603
9619
|
}
|
|
9604
9620
|
],
|
|
9605
9621
|
"exports": [
|
|
@@ -9618,6 +9634,14 @@
|
|
|
9618
9634
|
"name": "Primary",
|
|
9619
9635
|
"module": "src/slider/slider.stories.ts"
|
|
9620
9636
|
}
|
|
9637
|
+
},
|
|
9638
|
+
{
|
|
9639
|
+
"kind": "js",
|
|
9640
|
+
"name": "WithLabels",
|
|
9641
|
+
"declaration": {
|
|
9642
|
+
"name": "WithLabels",
|
|
9643
|
+
"module": "src/slider/slider.stories.ts"
|
|
9644
|
+
}
|
|
9621
9645
|
}
|
|
9622
9646
|
]
|
|
9623
9647
|
},
|
|
@@ -9738,6 +9762,154 @@
|
|
|
9738
9762
|
}
|
|
9739
9763
|
]
|
|
9740
9764
|
},
|
|
9765
|
+
{
|
|
9766
|
+
"kind": "javascript-module",
|
|
9767
|
+
"path": "src/slider-label/index.ts",
|
|
9768
|
+
"declarations": [],
|
|
9769
|
+
"exports": [
|
|
9770
|
+
{
|
|
9771
|
+
"kind": "js",
|
|
9772
|
+
"name": "*",
|
|
9773
|
+
"declaration": {
|
|
9774
|
+
"name": "*",
|
|
9775
|
+
"package": "./slider-label"
|
|
9776
|
+
}
|
|
9777
|
+
},
|
|
9778
|
+
{
|
|
9779
|
+
"kind": "js",
|
|
9780
|
+
"name": "*",
|
|
9781
|
+
"declaration": {
|
|
9782
|
+
"name": "*",
|
|
9783
|
+
"package": "./slider-label.styles"
|
|
9784
|
+
}
|
|
9785
|
+
},
|
|
9786
|
+
{
|
|
9787
|
+
"kind": "js",
|
|
9788
|
+
"name": "*",
|
|
9789
|
+
"declaration": {
|
|
9790
|
+
"name": "*",
|
|
9791
|
+
"package": "./slider-label.template"
|
|
9792
|
+
}
|
|
9793
|
+
}
|
|
9794
|
+
]
|
|
9795
|
+
},
|
|
9796
|
+
{
|
|
9797
|
+
"kind": "javascript-module",
|
|
9798
|
+
"path": "src/slider-label/slider-label.styles.ts",
|
|
9799
|
+
"declarations": [
|
|
9800
|
+
{
|
|
9801
|
+
"kind": "function",
|
|
9802
|
+
"name": "zeroSliderLabelStyles",
|
|
9803
|
+
"return": {
|
|
9804
|
+
"type": {
|
|
9805
|
+
"text": "ElementStyles"
|
|
9806
|
+
}
|
|
9807
|
+
},
|
|
9808
|
+
"parameters": [
|
|
9809
|
+
{
|
|
9810
|
+
"name": "context",
|
|
9811
|
+
"type": {
|
|
9812
|
+
"text": "ElementDefinitionContext"
|
|
9813
|
+
}
|
|
9814
|
+
},
|
|
9815
|
+
{
|
|
9816
|
+
"name": "definition",
|
|
9817
|
+
"type": {
|
|
9818
|
+
"text": "FoundationElementDefinition"
|
|
9819
|
+
}
|
|
9820
|
+
}
|
|
9821
|
+
]
|
|
9822
|
+
}
|
|
9823
|
+
],
|
|
9824
|
+
"exports": [
|
|
9825
|
+
{
|
|
9826
|
+
"kind": "js",
|
|
9827
|
+
"name": "zeroSliderLabelStyles",
|
|
9828
|
+
"declaration": {
|
|
9829
|
+
"name": "zeroSliderLabelStyles",
|
|
9830
|
+
"module": "src/slider-label/slider-label.styles.ts"
|
|
9831
|
+
}
|
|
9832
|
+
}
|
|
9833
|
+
]
|
|
9834
|
+
},
|
|
9835
|
+
{
|
|
9836
|
+
"kind": "javascript-module",
|
|
9837
|
+
"path": "src/slider-label/slider-label.template.ts",
|
|
9838
|
+
"declarations": [
|
|
9839
|
+
{
|
|
9840
|
+
"kind": "function",
|
|
9841
|
+
"name": "zeroSliderLabelTemplate",
|
|
9842
|
+
"return": {
|
|
9843
|
+
"type": {
|
|
9844
|
+
"text": "ViewTemplate<SliderLabel>"
|
|
9845
|
+
}
|
|
9846
|
+
},
|
|
9847
|
+
"parameters": [
|
|
9848
|
+
{
|
|
9849
|
+
"name": "context",
|
|
9850
|
+
"type": {
|
|
9851
|
+
"text": "ElementDefinitionContext"
|
|
9852
|
+
}
|
|
9853
|
+
},
|
|
9854
|
+
{
|
|
9855
|
+
"name": "definition",
|
|
9856
|
+
"type": {
|
|
9857
|
+
"text": "FoundationElementDefinition"
|
|
9858
|
+
}
|
|
9859
|
+
}
|
|
9860
|
+
]
|
|
9861
|
+
}
|
|
9862
|
+
],
|
|
9863
|
+
"exports": [
|
|
9864
|
+
{
|
|
9865
|
+
"kind": "js",
|
|
9866
|
+
"name": "zeroSliderLabelTemplate",
|
|
9867
|
+
"declaration": {
|
|
9868
|
+
"name": "zeroSliderLabelTemplate",
|
|
9869
|
+
"module": "src/slider-label/slider-label.template.ts"
|
|
9870
|
+
}
|
|
9871
|
+
}
|
|
9872
|
+
]
|
|
9873
|
+
},
|
|
9874
|
+
{
|
|
9875
|
+
"kind": "javascript-module",
|
|
9876
|
+
"path": "src/slider-label/slider-label.ts",
|
|
9877
|
+
"declarations": [
|
|
9878
|
+
{
|
|
9879
|
+
"kind": "class",
|
|
9880
|
+
"description": "",
|
|
9881
|
+
"name": "SliderLabel",
|
|
9882
|
+
"superclass": {
|
|
9883
|
+
"name": "FoundationSliderLabel",
|
|
9884
|
+
"package": "@genesislcap/foundation-ui"
|
|
9885
|
+
},
|
|
9886
|
+
"tagName": "%%prefix%%-slider-label",
|
|
9887
|
+
"customElement": true
|
|
9888
|
+
},
|
|
9889
|
+
{
|
|
9890
|
+
"kind": "variable",
|
|
9891
|
+
"name": "zeroSliderLabel"
|
|
9892
|
+
}
|
|
9893
|
+
],
|
|
9894
|
+
"exports": [
|
|
9895
|
+
{
|
|
9896
|
+
"kind": "js",
|
|
9897
|
+
"name": "SliderLabel",
|
|
9898
|
+
"declaration": {
|
|
9899
|
+
"name": "SliderLabel",
|
|
9900
|
+
"module": "src/slider-label/slider-label.ts"
|
|
9901
|
+
}
|
|
9902
|
+
},
|
|
9903
|
+
{
|
|
9904
|
+
"kind": "js",
|
|
9905
|
+
"name": "zeroSliderLabel",
|
|
9906
|
+
"declaration": {
|
|
9907
|
+
"name": "zeroSliderLabel",
|
|
9908
|
+
"module": "src/slider-label/slider-label.ts"
|
|
9909
|
+
}
|
|
9910
|
+
}
|
|
9911
|
+
]
|
|
9912
|
+
},
|
|
9741
9913
|
{
|
|
9742
9914
|
"kind": "javascript-module",
|
|
9743
9915
|
"path": "src/snackbar/index.ts",
|
|
@@ -200,6 +200,7 @@ export declare const baseComponents: {
|
|
|
200
200
|
zeroSelect: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<import("@microsoft/fast-foundation").FoundationElementDefinition>) => import("@microsoft/fast-foundation").FoundationElementRegistry<import("@microsoft/fast-foundation").FoundationElementDefinition, typeof import("./select").Select>;
|
|
201
201
|
zeroSkeleton: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<import("@microsoft/fast-foundation").FoundationElementDefinition>) => import("@microsoft/fast-foundation").FoundationElementRegistry<import("@microsoft/fast-foundation").FoundationElementDefinition, typeof import("./skeleton").Skeleton>;
|
|
202
202
|
zeroSlider: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<import("@microsoft/fast-foundation").FoundationElementDefinition>) => import("@microsoft/fast-foundation").FoundationElementRegistry<import("@microsoft/fast-foundation").FoundationElementDefinition, typeof import("./slider").Slider>;
|
|
203
|
+
zeroSliderLabel: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<import("@microsoft/fast-foundation").FoundationElementDefinition>) => import("@microsoft/fast-foundation").FoundationElementRegistry<import("@microsoft/fast-foundation").FoundationElementDefinition, typeof import("./slider-label").SliderLabel>;
|
|
203
204
|
zeroSnackbar: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
|
|
204
205
|
baseName: string;
|
|
205
206
|
shadowOptions: ShadowRootInit;
|
|
@@ -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;AAoE5D,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAmEJ,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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E,QAAA,MAAM,IAAI,EAAE,IAGX,CAAC;AACF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"slider.stories.d.ts","sourceRoot":"","sources":["../../../src/slider/slider.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAGhE,QAAA,MAAM,IAAI,EAAE,IAGX,CAAC;AACF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,EAAE,QASrB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,QAWxB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/slider-label/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SliderLabel as FoundationSliderLabel } from '@genesislcap/foundation-ui';
|
|
2
|
+
/**
|
|
3
|
+
* @tagname %%prefix%%-slider-label
|
|
4
|
+
*/
|
|
5
|
+
export declare class SliderLabel extends FoundationSliderLabel {
|
|
6
|
+
}
|
|
7
|
+
export declare const zeroSliderLabel: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<import("@microsoft/fast-foundation").FoundationElementDefinition>) => import("@microsoft/fast-foundation").FoundationElementRegistry<import("@microsoft/fast-foundation").FoundationElementDefinition, typeof SliderLabel>;
|
|
8
|
+
//# sourceMappingURL=slider-label.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slider-label.d.ts","sourceRoot":"","sources":["../../../src/slider-label/slider-label.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,WAAW,IAAI,qBAAqB,EACrC,MAAM,4BAA4B,CAAC;AAIpC;;GAEG;AACH,qBAAa,WAAY,SAAQ,qBAAqB;CAAG;AAEzD,eAAO,MAAM,eAAe,2TAM1B,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ElementStyles } from '@microsoft/fast-element';
|
|
2
|
+
import type { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
+
export declare const zeroSliderLabelStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ElementStyles;
|
|
4
|
+
//# sourceMappingURL=slider-label.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slider-label.styles.d.ts","sourceRoot":"","sources":["../../../src/slider-label/slider-label.styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EACV,wBAAwB,EACxB,2BAA2B,EAC5B,MAAM,4BAA4B,CAAC;AAEpC,eAAO,MAAM,qBAAqB,YACvB,wBAAwB,cACrB,2BAA2B,KACtC,aAWF,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ViewTemplate } from '@microsoft/fast-element';
|
|
2
|
+
import type { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
+
import type { SliderLabel } from './slider-label';
|
|
4
|
+
export declare const zeroSliderLabelTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<SliderLabel>;
|
|
5
|
+
//# sourceMappingURL=slider-label.template.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slider-label.template.d.ts","sourceRoot":"","sources":["../../../src/slider-label/slider-label.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EACV,wBAAwB,EACxB,2BAA2B,EAC5B,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,eAAO,MAAM,uBAAuB,YACzB,wBAAwB,cACrB,2BAA2B,KACtC,aAAa,WAAW,CAAuD,CAAC"}
|
|
@@ -51,6 +51,7 @@ import { zeroSegmentedItem } from './segmented-item';
|
|
|
51
51
|
import { zeroSelect } from './select';
|
|
52
52
|
import { zeroSkeleton } from './skeleton';
|
|
53
53
|
import { zeroSlider } from './slider';
|
|
54
|
+
import { zeroSliderLabel } from './slider-label';
|
|
54
55
|
import { zeroSnackbar } from './snackbar';
|
|
55
56
|
import { zeroSwitch } from './switch';
|
|
56
57
|
import { zeroTab } from './tab';
|
|
@@ -117,6 +118,7 @@ export const baseComponents = {
|
|
|
117
118
|
zeroSelect,
|
|
118
119
|
zeroSkeleton,
|
|
119
120
|
zeroSlider,
|
|
121
|
+
zeroSliderLabel,
|
|
120
122
|
zeroSnackbar,
|
|
121
123
|
zeroSwitch,
|
|
122
124
|
zeroTab,
|
package/dist/esm/index.js
CHANGED
|
@@ -6,9 +6,23 @@ const meta = {
|
|
|
6
6
|
export default meta;
|
|
7
7
|
export const Primary = {
|
|
8
8
|
render: () => html `
|
|
9
|
-
<div style="min-height: 300px;">
|
|
9
|
+
<div style="min-height: 300px; width: 100%;">
|
|
10
|
+
<h6>Vertical</h6>
|
|
10
11
|
<zero-slider min="0" max="100" step="10" value="70" orientation="vertical"></zero-slider>
|
|
12
|
+
<h6>Horizontal</h6>
|
|
11
13
|
<zero-slider min="0" max="100" step="10" value="70"></zero-slider>
|
|
12
14
|
</div>
|
|
13
15
|
`,
|
|
14
16
|
};
|
|
17
|
+
export const WithLabels = {
|
|
18
|
+
render: () => html `
|
|
19
|
+
<div style="min-height: 300px; width: 100%; margin: 20px;">
|
|
20
|
+
<zero-slider min="0" max="100" step="10" value="70">
|
|
21
|
+
<zero-slider-label position="0">0%</zero-slider-label>
|
|
22
|
+
<zero-slider-label position="10">10%</zero-slider-label>
|
|
23
|
+
<zero-slider-label position="90">90%</zero-slider-label>
|
|
24
|
+
<zero-slider-label position="100">100%</zero-slider-label>
|
|
25
|
+
</zero-slider>
|
|
26
|
+
</div>
|
|
27
|
+
`,
|
|
28
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { defaultSliderLabelConfig, foundationSliderLabelShadowOptions, SliderLabel as FoundationSliderLabel, } from '@genesislcap/foundation-ui';
|
|
2
|
+
import { zeroSliderLabelStyles as styles } from './slider-label.styles';
|
|
3
|
+
import { zeroSliderLabelTemplate as template } from './slider-label.template';
|
|
4
|
+
/**
|
|
5
|
+
* @tagname %%prefix%%-slider-label
|
|
6
|
+
*/
|
|
7
|
+
export class SliderLabel extends FoundationSliderLabel {
|
|
8
|
+
}
|
|
9
|
+
export const zeroSliderLabel = SliderLabel.compose(Object.assign({ baseName: 'slider-label', template,
|
|
10
|
+
styles, shadowOptions: foundationSliderLabelShadowOptions }, defaultSliderLabelConfig));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { foundationSliderLabelStyles } from '@genesislcap/foundation-ui';
|
|
2
|
+
import { css } from '@microsoft/fast-element';
|
|
3
|
+
export const zeroSliderLabelStyles = (context, definition) => css `
|
|
4
|
+
${foundationSliderLabelStyles(context, definition)}
|
|
5
|
+
.label {
|
|
6
|
+
padding: 6px 8px;
|
|
7
|
+
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
8
|
+
border: calc(var(--stroke-width) * 1px) solid #2e3339;
|
|
9
|
+
background-color: #c9c9c9;
|
|
10
|
+
color: #161616;
|
|
11
|
+
text-align: center;
|
|
12
|
+
font-size: var(--type-ramp-minus-1-font-size, 12px);
|
|
13
|
+
}
|
|
14
|
+
`;
|
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.64.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"storybook": "storybook dev -p 6006"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@genesislcap/genx": "14.
|
|
65
|
+
"@genesislcap/genx": "14.64.0",
|
|
66
66
|
"@storybook/addon-essentials": "^7.1.0",
|
|
67
67
|
"@storybook/addon-links": "^7.1.0",
|
|
68
68
|
"@storybook/addons": "^7.1.0",
|
|
@@ -75,9 +75,9 @@
|
|
|
75
75
|
"storybook": "^7.1.0"
|
|
76
76
|
},
|
|
77
77
|
"dependencies": {
|
|
78
|
-
"@genesislcap/foundation-comms": "14.
|
|
79
|
-
"@genesislcap/foundation-ui": "14.
|
|
80
|
-
"@genesislcap/foundation-utils": "14.
|
|
78
|
+
"@genesislcap/foundation-comms": "14.64.0",
|
|
79
|
+
"@genesislcap/foundation-ui": "14.64.0",
|
|
80
|
+
"@genesislcap/foundation-utils": "14.64.0",
|
|
81
81
|
"@microsoft/fast-colors": "^5.1.4",
|
|
82
82
|
"@microsoft/fast-components": "^2.21.3",
|
|
83
83
|
"@microsoft/fast-element": "^1.7.0",
|
|
@@ -94,5 +94,5 @@
|
|
|
94
94
|
"access": "public"
|
|
95
95
|
},
|
|
96
96
|
"customElements": "dist/custom-elements.json",
|
|
97
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "b9342cf385809ba4b2ad9bc592ae9dffe9360ce4"
|
|
98
98
|
}
|