@genesislcap/foundation-zero 14.65.2 → 14.66.0-select-search-poc.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.
- package/dist/custom-elements.json +179 -1
- package/dist/dts/base-components.d.ts +11 -0
- package/dist/dts/base-components.d.ts.map +1 -1
- package/dist/dts/select-search/index.d.ts +4 -0
- package/dist/dts/select-search/index.d.ts.map +1 -0
- package/dist/dts/select-search/select-search.d.ts +20 -0
- package/dist/dts/select-search/select-search.d.ts.map +1 -0
- package/dist/dts/select-search/select-search.stories.d.ts +5 -0
- package/dist/dts/select-search/select-search.stories.d.ts.map +1 -0
- package/dist/dts/select-search/select-search.styles.d.ts +2 -0
- package/dist/dts/select-search/select-search.styles.d.ts.map +1 -0
- package/dist/dts/select-search/select-search.template.d.ts +3 -0
- package/dist/dts/select-search/select-search.template.d.ts.map +1 -0
- package/dist/esm/base-components.js +2 -0
- package/dist/esm/select-search/index.js +3 -0
- package/dist/esm/select-search/select-search.js +12 -0
- package/dist/esm/select-search/select-search.stories.js +66 -0
- package/dist/esm/select-search/select-search.styles.js +61 -0
- package/dist/esm/select-search/select-search.template.js +5 -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 zeroCalendar,\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}"
|
|
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 zeroCalendar,\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 zeroSelectSearch,\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": [
|
|
@@ -9552,6 +9552,184 @@
|
|
|
9552
9552
|
}
|
|
9553
9553
|
]
|
|
9554
9554
|
},
|
|
9555
|
+
{
|
|
9556
|
+
"kind": "javascript-module",
|
|
9557
|
+
"path": "src/select-search/index.ts",
|
|
9558
|
+
"declarations": [],
|
|
9559
|
+
"exports": [
|
|
9560
|
+
{
|
|
9561
|
+
"kind": "js",
|
|
9562
|
+
"name": "*",
|
|
9563
|
+
"declaration": {
|
|
9564
|
+
"name": "*",
|
|
9565
|
+
"package": "./select-search"
|
|
9566
|
+
}
|
|
9567
|
+
},
|
|
9568
|
+
{
|
|
9569
|
+
"kind": "js",
|
|
9570
|
+
"name": "*",
|
|
9571
|
+
"declaration": {
|
|
9572
|
+
"name": "*",
|
|
9573
|
+
"package": "./select-search.styles"
|
|
9574
|
+
}
|
|
9575
|
+
},
|
|
9576
|
+
{
|
|
9577
|
+
"kind": "js",
|
|
9578
|
+
"name": "*",
|
|
9579
|
+
"declaration": {
|
|
9580
|
+
"name": "*",
|
|
9581
|
+
"package": "./select-search.template"
|
|
9582
|
+
}
|
|
9583
|
+
}
|
|
9584
|
+
]
|
|
9585
|
+
},
|
|
9586
|
+
{
|
|
9587
|
+
"kind": "javascript-module",
|
|
9588
|
+
"path": "src/select-search/select-search.stories.ts",
|
|
9589
|
+
"declarations": [
|
|
9590
|
+
{
|
|
9591
|
+
"kind": "variable",
|
|
9592
|
+
"name": "meta",
|
|
9593
|
+
"type": {
|
|
9594
|
+
"text": "Meta"
|
|
9595
|
+
},
|
|
9596
|
+
"default": "{\n title: 'Select Search',\n component: 'zero-select-search',\n}"
|
|
9597
|
+
},
|
|
9598
|
+
{
|
|
9599
|
+
"kind": "variable",
|
|
9600
|
+
"name": "Primary",
|
|
9601
|
+
"type": {
|
|
9602
|
+
"text": "StoryObj"
|
|
9603
|
+
},
|
|
9604
|
+
"default": "{\n render: ({ name, text, countries, search }) => html`\n <div style=\"min-height: 400px;\">\n <zero-select-search name=\"${name}\" .options=\"${countries}\" search=\"${search}\">\n ${text}\n </zero-select-search>\n </div>\n `,\n args: {\n name: 'Countries',\n text: 'Select Search',\n search: true,\n countries: [\n 'Afghanistan',\n 'Aland Islands',\n 'Albania',\n 'Algeria',\n 'American Samoa',\n 'Andorra',\n 'Angola',\n 'Anguilla',\n 'Antarctica',\n 'Antigua and Barbuda',\n 'Argentina',\n 'Armenia',\n 'Aruba',\n 'Australia',\n 'Austria',\n 'Azerbaijan',\n 'Bahamas',\n 'Bahrain',\n 'Bangladesh',\n 'Barbados',\n 'Belarus',\n 'Belgium',\n 'Belize',\n 'Benin',\n 'Bermuda',\n 'Bhutan',\n 'Bolivia',\n 'Bonaire, Sint Eustatius and Saba',\n 'Bosnia and Herzegovina',\n 'Botswana',\n 'Bouvet Island',\n 'Brazil',\n 'British Indian Ocean Territory',\n 'Brunei Darussalam',\n 'Bulgaria',\n 'Burkina Faso',\n 'Burundi',\n 'Cambodia',\n 'Cameroon',\n 'Canada',\n 'Cape Verde',\n 'Cayman Islands',\n 'Central African Republic',\n 'Chad',\n ],\n },\n}"
|
|
9605
|
+
}
|
|
9606
|
+
],
|
|
9607
|
+
"exports": [
|
|
9608
|
+
{
|
|
9609
|
+
"kind": "js",
|
|
9610
|
+
"name": "default",
|
|
9611
|
+
"declaration": {
|
|
9612
|
+
"name": "meta",
|
|
9613
|
+
"module": "src/select-search/select-search.stories.ts"
|
|
9614
|
+
}
|
|
9615
|
+
},
|
|
9616
|
+
{
|
|
9617
|
+
"kind": "js",
|
|
9618
|
+
"name": "Primary",
|
|
9619
|
+
"declaration": {
|
|
9620
|
+
"name": "Primary",
|
|
9621
|
+
"module": "src/select-search/select-search.stories.ts"
|
|
9622
|
+
}
|
|
9623
|
+
}
|
|
9624
|
+
]
|
|
9625
|
+
},
|
|
9626
|
+
{
|
|
9627
|
+
"kind": "javascript-module",
|
|
9628
|
+
"path": "src/select-search/select-search.styles.ts",
|
|
9629
|
+
"declarations": [
|
|
9630
|
+
{
|
|
9631
|
+
"kind": "variable",
|
|
9632
|
+
"name": "selectSearchStyles",
|
|
9633
|
+
"default": "css`\n ${foundationMultiselectStyles}\n\n :host {\n --primary-gradient-angle: -113.5deg;\n }\n\n #display-field {\n background: ${defaultRapidBGColor};\n }\n\n #display-field:focus {\n outline: none;\n background:\n linear-gradient(\n var(--primary-gradient-angle),\n ${PrimaryRapidColorHEX.blue} 0%,\n ${PrimaryRapidColorHEX.purple} 100%\n )\n top/100% 1px,\n linear-gradient(\n var(--primary-gradient-angle),\n ${PrimaryRapidColorHEX.blue} 0%,\n ${PrimaryRapidColorHEX.purple} 100%\n )\n bottom/100% 1px;\n background-origin: border-box;\n background-repeat: no-repeat;\n border: 1px solid transparent;\n border-right-color: ${PrimaryRapidColorHEX.blue};\n border-left-color: ${PrimaryRapidColorHEX.purple};\n }\n\n ::slotted(zero-checkbox),\n zero-checkbox {\n border-bottom: 1px solid rgb(46 48 52);\n padding: 5px 0 5px 5px;\n margin: 0;\n }\n\n ::slotted(zero-checkbox:hover),\n zero-checkbox:hover {\n background-color: rgb(45 47 51);\n cursor: pointer;\n }\n\n ::slotted(zero-checkbox)::part(label),\n zero-checkbox::part(label) {\n overflow-x: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .label {\n color: ${defaultRapidLabelColor};\n }\n`"
|
|
9634
|
+
}
|
|
9635
|
+
],
|
|
9636
|
+
"exports": [
|
|
9637
|
+
{
|
|
9638
|
+
"kind": "js",
|
|
9639
|
+
"name": "selectSearchStyles",
|
|
9640
|
+
"declaration": {
|
|
9641
|
+
"name": "selectSearchStyles",
|
|
9642
|
+
"module": "src/select-search/select-search.styles.ts"
|
|
9643
|
+
}
|
|
9644
|
+
}
|
|
9645
|
+
]
|
|
9646
|
+
},
|
|
9647
|
+
{
|
|
9648
|
+
"kind": "javascript-module",
|
|
9649
|
+
"path": "src/select-search/select-search.template.ts",
|
|
9650
|
+
"declarations": [
|
|
9651
|
+
{
|
|
9652
|
+
"kind": "variable",
|
|
9653
|
+
"name": "selectSearchTemplate",
|
|
9654
|
+
"default": "html<SelectSearch>`\n ${getPrefixedSelectSearch('zero')}\n`"
|
|
9655
|
+
}
|
|
9656
|
+
],
|
|
9657
|
+
"exports": [
|
|
9658
|
+
{
|
|
9659
|
+
"kind": "js",
|
|
9660
|
+
"name": "selectSearchTemplate",
|
|
9661
|
+
"declaration": {
|
|
9662
|
+
"name": "selectSearchTemplate",
|
|
9663
|
+
"module": "src/select-search/select-search.template.ts"
|
|
9664
|
+
}
|
|
9665
|
+
}
|
|
9666
|
+
]
|
|
9667
|
+
},
|
|
9668
|
+
{
|
|
9669
|
+
"kind": "javascript-module",
|
|
9670
|
+
"path": "src/select-search/select-search.ts",
|
|
9671
|
+
"declarations": [
|
|
9672
|
+
{
|
|
9673
|
+
"kind": "class",
|
|
9674
|
+
"description": "",
|
|
9675
|
+
"name": "SelectSearch",
|
|
9676
|
+
"superclass": {
|
|
9677
|
+
"name": "FoundationSelectSearch",
|
|
9678
|
+
"package": "@genesislcap/foundation-ui"
|
|
9679
|
+
},
|
|
9680
|
+
"tagName": "%%prefix%%-select-search",
|
|
9681
|
+
"customElement": true
|
|
9682
|
+
},
|
|
9683
|
+
{
|
|
9684
|
+
"kind": "variable",
|
|
9685
|
+
"name": "defaultSelectSearchConfig",
|
|
9686
|
+
"default": "foundationSelectSearchConfig"
|
|
9687
|
+
},
|
|
9688
|
+
{
|
|
9689
|
+
"kind": "variable",
|
|
9690
|
+
"name": "zeroSelectSearchShadowOptions",
|
|
9691
|
+
"default": "foundationMultiselectShadowOptions"
|
|
9692
|
+
},
|
|
9693
|
+
{
|
|
9694
|
+
"kind": "variable",
|
|
9695
|
+
"name": "zeroSelectSearch"
|
|
9696
|
+
}
|
|
9697
|
+
],
|
|
9698
|
+
"exports": [
|
|
9699
|
+
{
|
|
9700
|
+
"kind": "js",
|
|
9701
|
+
"name": "SelectSearch",
|
|
9702
|
+
"declaration": {
|
|
9703
|
+
"name": "SelectSearch",
|
|
9704
|
+
"module": "src/select-search/select-search.ts"
|
|
9705
|
+
}
|
|
9706
|
+
},
|
|
9707
|
+
{
|
|
9708
|
+
"kind": "js",
|
|
9709
|
+
"name": "defaultSelectSearchConfig",
|
|
9710
|
+
"declaration": {
|
|
9711
|
+
"name": "defaultSelectSearchConfig",
|
|
9712
|
+
"module": "src/select-search/select-search.ts"
|
|
9713
|
+
}
|
|
9714
|
+
},
|
|
9715
|
+
{
|
|
9716
|
+
"kind": "js",
|
|
9717
|
+
"name": "zeroSelectSearchShadowOptions",
|
|
9718
|
+
"declaration": {
|
|
9719
|
+
"name": "zeroSelectSearchShadowOptions",
|
|
9720
|
+
"module": "src/select-search/select-search.ts"
|
|
9721
|
+
}
|
|
9722
|
+
},
|
|
9723
|
+
{
|
|
9724
|
+
"kind": "js",
|
|
9725
|
+
"name": "zeroSelectSearch",
|
|
9726
|
+
"declaration": {
|
|
9727
|
+
"name": "zeroSelectSearch",
|
|
9728
|
+
"module": "src/select-search/select-search.ts"
|
|
9729
|
+
}
|
|
9730
|
+
}
|
|
9731
|
+
]
|
|
9732
|
+
},
|
|
9555
9733
|
{
|
|
9556
9734
|
"kind": "javascript-module",
|
|
9557
9735
|
"path": "src/skeleton/index.ts",
|
|
@@ -199,6 +199,17 @@ export declare const baseComponents: {
|
|
|
199
199
|
zeroSegmentedControl: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<import("@microsoft/fast-foundation").FoundationElementDefinition>) => import("@microsoft/fast-foundation").FoundationElementRegistry<import("@microsoft/fast-foundation").FoundationElementDefinition, typeof import("./segmented-control").SegmentedControl>;
|
|
200
200
|
zeroSegmentedItem: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<import("@microsoft/fast-foundation").RadioOptions>) => import("@microsoft/fast-foundation").FoundationElementRegistry<import("@microsoft/fast-foundation").RadioOptions, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
|
201
201
|
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>;
|
|
202
|
+
zeroSelectSearch: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
|
|
203
|
+
baseName: string;
|
|
204
|
+
template: import("@microsoft/fast-element").ViewTemplate<import("./select-search").SelectSearch, any>;
|
|
205
|
+
styles: import("@microsoft/fast-element").ElementStyles;
|
|
206
|
+
shadowOptions: ShadowRootInit;
|
|
207
|
+
}>) => import("@microsoft/fast-foundation").FoundationElementRegistry<{
|
|
208
|
+
baseName: string;
|
|
209
|
+
template: import("@microsoft/fast-element").ViewTemplate<import("./select-search").SelectSearch, any>;
|
|
210
|
+
styles: import("@microsoft/fast-element").ElementStyles;
|
|
211
|
+
shadowOptions: ShadowRootInit;
|
|
212
|
+
}, typeof import("./select-search").SelectSearch>;
|
|
202
213
|
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>;
|
|
203
214
|
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>;
|
|
204
215
|
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>;
|
|
@@ -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;AAsE5D,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAqEJ,SAAS,WAAW,GAAG,EAAE;CAe/C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/select-search/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SelectSearch as FoundationSelectSearch } from '@genesislcap/foundation-ui';
|
|
2
|
+
/**
|
|
3
|
+
* @tagname %%prefix%%-select-search
|
|
4
|
+
*/
|
|
5
|
+
export declare class SelectSearch extends FoundationSelectSearch {
|
|
6
|
+
}
|
|
7
|
+
export declare const defaultSelectSearchConfig: {};
|
|
8
|
+
export declare const zeroSelectSearchShadowOptions: ShadowRootInit;
|
|
9
|
+
export declare const zeroSelectSearch: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
|
|
10
|
+
baseName: string;
|
|
11
|
+
template: import("@microsoft/fast-element").ViewTemplate<SelectSearch, any>;
|
|
12
|
+
styles: import("@microsoft/fast-element").ElementStyles;
|
|
13
|
+
shadowOptions: ShadowRootInit;
|
|
14
|
+
}>) => import("@microsoft/fast-foundation").FoundationElementRegistry<{
|
|
15
|
+
baseName: string;
|
|
16
|
+
template: import("@microsoft/fast-element").ViewTemplate<SelectSearch, any>;
|
|
17
|
+
styles: import("@microsoft/fast-element").ElementStyles;
|
|
18
|
+
shadowOptions: ShadowRootInit;
|
|
19
|
+
}, typeof SelectSearch>;
|
|
20
|
+
//# sourceMappingURL=select-search.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select-search.d.ts","sourceRoot":"","sources":["../../../src/select-search/select-search.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,IAAI,sBAAsB,EAGvC,MAAM,4BAA4B,CAAC;AAIpC;;GAEG;AACH,qBAAa,YAAa,SAAQ,sBAAsB;CAAG;AAE3D,eAAO,MAAM,yBAAyB,IAA+B,CAAC;AAEtE,eAAO,MAAM,6BAA6B,gBAAqC,CAAC;AAEhF,eAAO,MAAM,gBAAgB;;;;;;;;;;uBAM3B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select-search.stories.d.ts","sourceRoot":"","sources":["../../../src/select-search/select-search.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,QA2DrB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select-search.styles.d.ts","sourceRoot":"","sources":["../../../src/select-search/select-search.styles.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,kBAAkB,iDAwD9B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select-search.template.d.ts","sourceRoot":"","sources":["../../../src/select-search/select-search.template.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,eAAO,MAAM,oBAAoB,mEAEhC,CAAC"}
|
|
@@ -50,6 +50,7 @@ import { zeroRadioGroup } from './radio-group';
|
|
|
50
50
|
import { zeroSegmentedControl } from './segmented-control';
|
|
51
51
|
import { zeroSegmentedItem } from './segmented-item';
|
|
52
52
|
import { zeroSelect } from './select';
|
|
53
|
+
import { zeroSelectSearch } from './select-search';
|
|
53
54
|
import { zeroSkeleton } from './skeleton';
|
|
54
55
|
import { zeroSlider } from './slider';
|
|
55
56
|
import { zeroSliderLabel } from './slider-label';
|
|
@@ -118,6 +119,7 @@ export const baseComponents = {
|
|
|
118
119
|
zeroSegmentedControl,
|
|
119
120
|
zeroSegmentedItem,
|
|
120
121
|
zeroSelect,
|
|
122
|
+
zeroSelectSearch,
|
|
121
123
|
zeroSkeleton,
|
|
122
124
|
zeroSlider,
|
|
123
125
|
zeroSliderLabel,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SelectSearch as FoundationSelectSearch, defaultSelectSearchConfig as foundationSelectSearchConfig, foundationMultiselectShadowOptions, } from '@genesislcap/foundation-ui';
|
|
2
|
+
import { selectSearchStyles as styles } from './select-search.styles';
|
|
3
|
+
import { selectSearchTemplate as template } from './select-search.template';
|
|
4
|
+
/**
|
|
5
|
+
* @tagname %%prefix%%-select-search
|
|
6
|
+
*/
|
|
7
|
+
export class SelectSearch extends FoundationSelectSearch {
|
|
8
|
+
}
|
|
9
|
+
export const defaultSelectSearchConfig = foundationSelectSearchConfig;
|
|
10
|
+
export const zeroSelectSearchShadowOptions = foundationMultiselectShadowOptions;
|
|
11
|
+
export const zeroSelectSearch = SelectSearch.compose(Object.assign({ baseName: 'select-search', template,
|
|
12
|
+
styles, shadowOptions: zeroSelectSearchShadowOptions }, defaultSelectSearchConfig));
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { html } from 'lit-html';
|
|
2
|
+
const meta = {
|
|
3
|
+
title: 'Select Search',
|
|
4
|
+
component: 'zero-select-search',
|
|
5
|
+
};
|
|
6
|
+
export default meta;
|
|
7
|
+
export const Primary = {
|
|
8
|
+
render: ({ name, text, countries, search }) => html `
|
|
9
|
+
<div style="min-height: 400px;">
|
|
10
|
+
<zero-select-search name="${name}" .options="${countries}" search="${search}">
|
|
11
|
+
${text}
|
|
12
|
+
</zero-select-search>
|
|
13
|
+
</div>
|
|
14
|
+
`,
|
|
15
|
+
args: {
|
|
16
|
+
name: 'Countries',
|
|
17
|
+
text: 'Select Search',
|
|
18
|
+
search: true,
|
|
19
|
+
countries: [
|
|
20
|
+
'Afghanistan',
|
|
21
|
+
'Aland Islands',
|
|
22
|
+
'Albania',
|
|
23
|
+
'Algeria',
|
|
24
|
+
'American Samoa',
|
|
25
|
+
'Andorra',
|
|
26
|
+
'Angola',
|
|
27
|
+
'Anguilla',
|
|
28
|
+
'Antarctica',
|
|
29
|
+
'Antigua and Barbuda',
|
|
30
|
+
'Argentina',
|
|
31
|
+
'Armenia',
|
|
32
|
+
'Aruba',
|
|
33
|
+
'Australia',
|
|
34
|
+
'Austria',
|
|
35
|
+
'Azerbaijan',
|
|
36
|
+
'Bahamas',
|
|
37
|
+
'Bahrain',
|
|
38
|
+
'Bangladesh',
|
|
39
|
+
'Barbados',
|
|
40
|
+
'Belarus',
|
|
41
|
+
'Belgium',
|
|
42
|
+
'Belize',
|
|
43
|
+
'Benin',
|
|
44
|
+
'Bermuda',
|
|
45
|
+
'Bhutan',
|
|
46
|
+
'Bolivia',
|
|
47
|
+
'Bonaire, Sint Eustatius and Saba',
|
|
48
|
+
'Bosnia and Herzegovina',
|
|
49
|
+
'Botswana',
|
|
50
|
+
'Bouvet Island',
|
|
51
|
+
'Brazil',
|
|
52
|
+
'British Indian Ocean Territory',
|
|
53
|
+
'Brunei Darussalam',
|
|
54
|
+
'Bulgaria',
|
|
55
|
+
'Burkina Faso',
|
|
56
|
+
'Burundi',
|
|
57
|
+
'Cambodia',
|
|
58
|
+
'Cameroon',
|
|
59
|
+
'Canada',
|
|
60
|
+
'Cape Verde',
|
|
61
|
+
'Cayman Islands',
|
|
62
|
+
'Central African Republic',
|
|
63
|
+
'Chad',
|
|
64
|
+
],
|
|
65
|
+
},
|
|
66
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { multiselectStyles as foundationMultiselectStyles } from '@genesislcap/foundation-ui';
|
|
2
|
+
import { css } from '@microsoft/fast-element';
|
|
3
|
+
import { defaultRapidBGColor, defaultRapidLabelColor } from '../_common';
|
|
4
|
+
import { PrimaryRapidColorHEX } from '../_common';
|
|
5
|
+
export const selectSearchStyles = css `
|
|
6
|
+
${foundationMultiselectStyles}
|
|
7
|
+
|
|
8
|
+
:host {
|
|
9
|
+
--primary-gradient-angle: -113.5deg;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
#display-field {
|
|
13
|
+
background: ${defaultRapidBGColor};
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
#display-field:focus {
|
|
17
|
+
outline: none;
|
|
18
|
+
background:
|
|
19
|
+
linear-gradient(
|
|
20
|
+
var(--primary-gradient-angle),
|
|
21
|
+
${PrimaryRapidColorHEX.blue} 0%,
|
|
22
|
+
${PrimaryRapidColorHEX.purple} 100%
|
|
23
|
+
)
|
|
24
|
+
top/100% 1px,
|
|
25
|
+
linear-gradient(
|
|
26
|
+
var(--primary-gradient-angle),
|
|
27
|
+
${PrimaryRapidColorHEX.blue} 0%,
|
|
28
|
+
${PrimaryRapidColorHEX.purple} 100%
|
|
29
|
+
)
|
|
30
|
+
bottom/100% 1px;
|
|
31
|
+
background-origin: border-box;
|
|
32
|
+
background-repeat: no-repeat;
|
|
33
|
+
border: 1px solid transparent;
|
|
34
|
+
border-right-color: ${PrimaryRapidColorHEX.blue};
|
|
35
|
+
border-left-color: ${PrimaryRapidColorHEX.purple};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
::slotted(zero-checkbox),
|
|
39
|
+
zero-checkbox {
|
|
40
|
+
border-bottom: 1px solid rgb(46 48 52);
|
|
41
|
+
padding: 5px 0 5px 5px;
|
|
42
|
+
margin: 0;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
::slotted(zero-checkbox:hover),
|
|
46
|
+
zero-checkbox:hover {
|
|
47
|
+
background-color: rgb(45 47 51);
|
|
48
|
+
cursor: pointer;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
::slotted(zero-checkbox)::part(label),
|
|
52
|
+
zero-checkbox::part(label) {
|
|
53
|
+
overflow-x: hidden;
|
|
54
|
+
text-overflow: ellipsis;
|
|
55
|
+
white-space: nowrap;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.label {
|
|
59
|
+
color: ${defaultRapidLabelColor};
|
|
60
|
+
}
|
|
61
|
+
`;
|
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.66.0-select-search-poc.1",
|
|
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.66.0-select-search-poc.1",
|
|
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.66.0-select-search-poc.1",
|
|
79
|
+
"@genesislcap/foundation-ui": "14.66.0-select-search-poc.1",
|
|
80
|
+
"@genesislcap/foundation-utils": "14.66.0-select-search-poc.1",
|
|
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": "635f27fccd9aa5f638135861b1b7c07faada70a9"
|
|
98
98
|
}
|