@searchspring/snap-preact-components 0.31.0 → 0.34.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/cjs/components/Atoms/Button/Button.stories.js +1 -1
- package/dist/cjs/components/Molecules/Checkbox/Checkbox.stories.js +2 -2
- package/dist/cjs/components/Molecules/ErrorHandler/ErrorHandler.d.ts +1 -1
- package/dist/cjs/components/Molecules/ErrorHandler/ErrorHandler.d.ts.map +1 -1
- package/dist/cjs/components/Molecules/ErrorHandler/ErrorHandler.stories.d.ts +0 -6
- package/dist/cjs/components/Molecules/ErrorHandler/ErrorHandler.stories.d.ts.map +1 -1
- package/dist/cjs/components/Molecules/ErrorHandler/ErrorHandler.stories.js +0 -2
- package/dist/cjs/components/Molecules/FacetHierarchyOptions/FacetHierarchyOptions.stories.d.ts +28 -0
- package/dist/cjs/components/Molecules/FacetHierarchyOptions/FacetHierarchyOptions.stories.d.ts.map +1 -1
- package/dist/cjs/components/Molecules/FacetHierarchyOptions/FacetHierarchyOptions.stories.js +18 -0
- package/dist/cjs/components/Molecules/Filter/Filter.stories.d.ts +0 -1
- package/dist/cjs/components/Molecules/Filter/Filter.stories.d.ts.map +1 -1
- package/dist/cjs/components/Molecules/Filter/Filter.stories.js +0 -1
- package/dist/cjs/components/Molecules/Result/Result.stories.js +2 -2
- package/dist/cjs/components/Molecules/Select/Select.d.ts.map +1 -1
- package/dist/cjs/components/Molecules/Select/Select.js +10 -22
- package/dist/cjs/components/Organisms/Autocomplete/Autocomplete.d.ts +1 -1
- package/dist/cjs/components/Organisms/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/dist/cjs/components/Organisms/Autocomplete/Autocomplete.js +8 -1
- package/dist/cjs/components/Organisms/Autocomplete/Autocomplete.stories.d.ts +30 -0
- package/dist/cjs/components/Organisms/Autocomplete/Autocomplete.stories.d.ts.map +1 -1
- package/dist/cjs/components/Organisms/Autocomplete/Autocomplete.stories.js +23 -0
- package/dist/cjs/components/Organisms/BranchOverride/BranchOverride.stories.js +1 -1
- package/dist/cjs/components/Organisms/Facet/Facet.stories.d.ts +28 -0
- package/dist/cjs/components/Organisms/Facet/Facet.stories.d.ts.map +1 -1
- package/dist/cjs/components/Organisms/Facet/Facet.stories.js +18 -0
- package/dist/cjs/components/Organisms/Facets/Facets.stories.d.ts +14 -0
- package/dist/cjs/components/Organisms/Facets/Facets.stories.d.ts.map +1 -1
- package/dist/cjs/components/Organisms/Facets/Facets.stories.js +9 -0
- package/dist/cjs/components/Organisms/FilterSummary/FilterSummary.stories.d.ts +11 -0
- package/dist/cjs/components/Organisms/FilterSummary/FilterSummary.stories.d.ts.map +1 -1
- package/dist/cjs/components/Organisms/FilterSummary/FilterSummary.stories.js +8 -0
- package/dist/esm/components/Atoms/Button/Button.stories.js +1 -1
- package/dist/esm/components/Molecules/Checkbox/Checkbox.stories.js +2 -2
- package/dist/esm/components/Molecules/ErrorHandler/ErrorHandler.d.ts +1 -1
- package/dist/esm/components/Molecules/ErrorHandler/ErrorHandler.d.ts.map +1 -1
- package/dist/esm/components/Molecules/ErrorHandler/ErrorHandler.stories.d.ts +0 -6
- package/dist/esm/components/Molecules/ErrorHandler/ErrorHandler.stories.d.ts.map +1 -1
- package/dist/esm/components/Molecules/ErrorHandler/ErrorHandler.stories.js +0 -2
- package/dist/esm/components/Molecules/FacetHierarchyOptions/FacetHierarchyOptions.stories.d.ts +28 -0
- package/dist/esm/components/Molecules/FacetHierarchyOptions/FacetHierarchyOptions.stories.d.ts.map +1 -1
- package/dist/esm/components/Molecules/FacetHierarchyOptions/FacetHierarchyOptions.stories.js +20 -0
- package/dist/esm/components/Molecules/Filter/Filter.stories.d.ts +0 -1
- package/dist/esm/components/Molecules/Filter/Filter.stories.d.ts.map +1 -1
- package/dist/esm/components/Molecules/Filter/Filter.stories.js +0 -1
- package/dist/esm/components/Molecules/Result/Result.stories.js +2 -2
- package/dist/esm/components/Molecules/Select/Select.d.ts.map +1 -1
- package/dist/esm/components/Molecules/Select/Select.js +4 -15
- package/dist/esm/components/Organisms/Autocomplete/Autocomplete.d.ts +1 -1
- package/dist/esm/components/Organisms/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/dist/esm/components/Organisms/Autocomplete/Autocomplete.js +8 -1
- package/dist/esm/components/Organisms/Autocomplete/Autocomplete.stories.d.ts +30 -0
- package/dist/esm/components/Organisms/Autocomplete/Autocomplete.stories.d.ts.map +1 -1
- package/dist/esm/components/Organisms/Autocomplete/Autocomplete.stories.js +26 -0
- package/dist/esm/components/Organisms/BranchOverride/BranchOverride.stories.js +1 -1
- package/dist/esm/components/Organisms/Facet/Facet.stories.d.ts +28 -0
- package/dist/esm/components/Organisms/Facet/Facet.stories.d.ts.map +1 -1
- package/dist/esm/components/Organisms/Facet/Facet.stories.js +20 -0
- package/dist/esm/components/Organisms/Facets/Facets.stories.d.ts +14 -0
- package/dist/esm/components/Organisms/Facets/Facets.stories.d.ts.map +1 -1
- package/dist/esm/components/Organisms/Facets/Facets.stories.js +10 -0
- package/dist/esm/components/Organisms/FilterSummary/FilterSummary.stories.d.ts +11 -0
- package/dist/esm/components/Organisms/FilterSummary/FilterSummary.stories.d.ts.map +1 -1
- package/dist/esm/components/Organisms/FilterSummary/FilterSummary.stories.js +9 -0
- package/package.json +13 -12
|
@@ -41,7 +41,7 @@ exports.default = {
|
|
|
41
41
|
},
|
|
42
42
|
},
|
|
43
43
|
argTypes: __assign({ checked: {
|
|
44
|
-
description: 'Checkbox is checked (managed state)',
|
|
44
|
+
description: 'Checkbox is checked (externally managed state)',
|
|
45
45
|
table: {
|
|
46
46
|
type: {
|
|
47
47
|
summary: 'boolean',
|
|
@@ -100,7 +100,7 @@ exports.default = {
|
|
|
100
100
|
},
|
|
101
101
|
control: { type: 'color' },
|
|
102
102
|
}, startChecked: {
|
|
103
|
-
description: 'Checkbox is checked initially(managed state)',
|
|
103
|
+
description: 'Checkbox is checked initially (internally managed state)',
|
|
104
104
|
table: {
|
|
105
105
|
type: {
|
|
106
106
|
summary: 'boolean',
|
|
@@ -7,7 +7,7 @@ export declare const ErrorHandler: ((properties: ErrorHandlerProps) => JSX.Eleme
|
|
|
7
7
|
};
|
|
8
8
|
export interface ErrorHandlerProps extends ComponentProps {
|
|
9
9
|
controller?: AbstractController;
|
|
10
|
-
error
|
|
10
|
+
error?: {
|
|
11
11
|
code?: number;
|
|
12
12
|
type: ErrorType;
|
|
13
13
|
message: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorHandler.d.ts","sourceRoot":"","sources":["../../../../../src/components/Molecules/ErrorHandler/ErrorHandler.tsx"],"names":[],"mappings":";AAYA,OAAO,EAAE,cAAc,EAAc,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAE1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAgExE,eAAO,MAAM,YAAY,gBAAyB,iBAAiB,KAAG,WAAW;;CAkG/E,CAAC;AAEH,MAAM,WAAW,iBAAkB,SAAQ,cAAc;IACxD,UAAU,CAAC,EAAE,kBAAkB,CAAC;IAChC,KAAK,EAAE;
|
|
1
|
+
{"version":3,"file":"ErrorHandler.d.ts","sourceRoot":"","sources":["../../../../../src/components/Molecules/ErrorHandler/ErrorHandler.tsx"],"names":[],"mappings":";AAYA,OAAO,EAAE,cAAc,EAAc,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAE1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAgExE,eAAO,MAAM,YAAY,gBAAyB,iBAAiB,KAAG,WAAW;;CAkG/E,CAAC;AAEH,MAAM,WAAW,iBAAkB,SAAQ,cAAc;IACxD,UAAU,CAAC,EAAE,kBAAkB,CAAC;IAChC,KAAK,CAAC,EAAE;QACP,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,SAAS,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,YAAY,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,KAAK,IAAI,CAAC;CACtE"}
|
|
@@ -67,9 +67,6 @@ declare const _default: {
|
|
|
67
67
|
};
|
|
68
68
|
controller: {
|
|
69
69
|
description: string;
|
|
70
|
-
type: {
|
|
71
|
-
required: boolean;
|
|
72
|
-
};
|
|
73
70
|
table: {
|
|
74
71
|
type: {
|
|
75
72
|
summary: string;
|
|
@@ -81,9 +78,6 @@ declare const _default: {
|
|
|
81
78
|
};
|
|
82
79
|
error: {
|
|
83
80
|
description: string;
|
|
84
|
-
type: {
|
|
85
|
-
required: boolean;
|
|
86
|
-
};
|
|
87
81
|
table: {
|
|
88
82
|
type: {
|
|
89
83
|
summary: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorHandler.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Molecules/ErrorHandler/ErrorHandler.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAY,CAAC,EAAE,MAAM,QAAQ,CAAC;AAGrC,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAE1D,OAAO,EAAgB,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;;;;;;;;;;;yBAkBvD,GAAG
|
|
1
|
+
{"version":3,"file":"ErrorHandler.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Molecules/ErrorHandler/ErrorHandler.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAY,CAAC,EAAE,MAAM,QAAQ,CAAC;AAGrC,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAE1D,OAAO,EAAgB,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;;;;;;;;;;;yBAkBvD,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAdb,wBAuDE;AAEF,eAAO,MAAM,OAAO;WAAU,iBAAiB;;;;;;;;;;;;CAA+B,CAAC;AAa/E,eAAO,MAAM,KAAK;WAAU,iBAAiB;;;;;;;;;;;;CAA+B,CAAC;AAa7E,eAAO,MAAM,IAAI;WAAU,iBAAiB;;;;;;;;;;;;CAA+B,CAAC;AAa5E,eAAO,MAAM,WAAW;WAAU,iBAAiB;;;;;;;CAA+B,CAAC"}
|
|
@@ -40,7 +40,6 @@ exports.default = {
|
|
|
40
40
|
],
|
|
41
41
|
argTypes: __assign({ controller: {
|
|
42
42
|
description: 'Controller reference',
|
|
43
|
-
type: { required: false },
|
|
44
43
|
table: {
|
|
45
44
|
type: {
|
|
46
45
|
summary: 'Controller object',
|
|
@@ -49,7 +48,6 @@ exports.default = {
|
|
|
49
48
|
control: { type: 'none' },
|
|
50
49
|
}, error: {
|
|
51
50
|
description: 'Error object containing message and type',
|
|
52
|
-
type: { required: false },
|
|
53
51
|
table: {
|
|
54
52
|
type: {
|
|
55
53
|
summary: 'Error object',
|
package/dist/cjs/components/Molecules/FacetHierarchyOptions/FacetHierarchyOptions.stories.d.ts
CHANGED
|
@@ -94,6 +94,34 @@ declare const _default: {
|
|
|
94
94
|
type: string;
|
|
95
95
|
};
|
|
96
96
|
};
|
|
97
|
+
previewOnFocus: {
|
|
98
|
+
description: string;
|
|
99
|
+
table: {
|
|
100
|
+
type: {
|
|
101
|
+
summary: string;
|
|
102
|
+
};
|
|
103
|
+
defaultValue: {
|
|
104
|
+
summary: boolean;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
control: {
|
|
108
|
+
type: string;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
valueProps: {
|
|
112
|
+
description: string;
|
|
113
|
+
table: {
|
|
114
|
+
type: {
|
|
115
|
+
summary: string;
|
|
116
|
+
};
|
|
117
|
+
defaultValue: {
|
|
118
|
+
summary: string;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
control: {
|
|
122
|
+
type: string;
|
|
123
|
+
};
|
|
124
|
+
};
|
|
97
125
|
onClick: {
|
|
98
126
|
description: string;
|
|
99
127
|
table: {
|
package/dist/cjs/components/Molecules/FacetHierarchyOptions/FacetHierarchyOptions.stories.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FacetHierarchyOptions.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Molecules/FacetHierarchyOptions/FacetHierarchyOptions.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAK3B,OAAO,EAAyB,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAK5F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;;;;;;;;;;;yBAgB5D,GAAG
|
|
1
|
+
{"version":3,"file":"FacetHierarchyOptions.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Molecules/FacetHierarchyOptions/FacetHierarchyOptions.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAK3B,OAAO,EAAyB,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAK5F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;;;;;;;;;;;yBAgB5D,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAdb,wBAyEE;AAaF,eAAO,MAAM,OAAO;WAAU,0BAA0B;;wBAAsD,gBAAgB;;;;;;CAE7H,CAAC"}
|
package/dist/cjs/components/Molecules/FacetHierarchyOptions/FacetHierarchyOptions.stories.js
CHANGED
|
@@ -92,6 +92,24 @@ exports.default = {
|
|
|
92
92
|
defaultValue: { summary: false },
|
|
93
93
|
},
|
|
94
94
|
control: { type: 'boolean' },
|
|
95
|
+
}, previewOnFocus: {
|
|
96
|
+
description: 'Invoke facet value preview upon focus',
|
|
97
|
+
table: {
|
|
98
|
+
type: {
|
|
99
|
+
summary: 'boolean',
|
|
100
|
+
},
|
|
101
|
+
defaultValue: { summary: false },
|
|
102
|
+
},
|
|
103
|
+
control: { type: 'boolean' },
|
|
104
|
+
}, valueProps: {
|
|
105
|
+
description: 'Object of facet value props',
|
|
106
|
+
table: {
|
|
107
|
+
type: {
|
|
108
|
+
summary: 'object',
|
|
109
|
+
},
|
|
110
|
+
defaultValue: { summary: '{}' },
|
|
111
|
+
},
|
|
112
|
+
control: { type: 'object' },
|
|
95
113
|
}, onClick: {
|
|
96
114
|
description: 'Facet option click event handler',
|
|
97
115
|
table: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Filter.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Molecules/Filter/Filter.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAI3B,OAAO,EAAU,WAAW,EAAE,MAAM,UAAU,CAAC;AAQ/C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC
|
|
1
|
+
{"version":3,"file":"Filter.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Molecules/Filter/Filter.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAI3B,OAAO,EAAU,WAAW,EAAE,MAAM,UAAU,CAAC;AAQ/C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtE,wBA8FE;AAgBF,eAAO,MAAM,OAAO;WAAU,WAAW;;wBAAsD,gBAAgB;;;;;;CAW9G,CAAC;AAWF,eAAO,MAAM,YAAY;WAAU,WAAW;;wBAAsD,gBAAgB;;;;;;;;;CAWnH,CAAC"}
|
|
@@ -74,11 +74,11 @@ exports.default = {
|
|
|
74
74
|
(0, preact_1.h)(Story, null))); },
|
|
75
75
|
],
|
|
76
76
|
argTypes: __assign({ result: {
|
|
77
|
-
description: 'Result store reference',
|
|
77
|
+
description: 'Result store Product reference',
|
|
78
78
|
type: { required: true },
|
|
79
79
|
table: {
|
|
80
80
|
type: {
|
|
81
|
-
summary: 'result store object',
|
|
81
|
+
summary: 'result store Product object',
|
|
82
82
|
},
|
|
83
83
|
},
|
|
84
84
|
control: { type: 'none' },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../../../src/components/Molecules/Select/Select.tsx"],"names":[],"mappings":";AAUA,OAAO,EAAE,cAAc,EAAc,MAAM,gBAAgB,CAAC;AAG5D,OAAO,EAAmB,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAwC7D,eAAO,MAAM,MAAM,gBAAyB,WAAW,KAAG,WAAW;;
|
|
1
|
+
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../../../src/components/Molecules/Select/Select.tsx"],"names":[],"mappings":";AAUA,OAAO,EAAE,cAAc,EAAc,MAAM,gBAAgB,CAAC;AAG5D,OAAO,EAAmB,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAwC7D,eAAO,MAAM,MAAM,gBAAyB,WAAW,KAAG,WAAW;;CAyMnE,CAAC;AAQH,oBAAY,MAAM,GAAG;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC,YAAY,EAAE,MAAM,GAAG,GAAG,CAAC;CAC5B,CAAC;AACF,MAAM,WAAW,WAAY,SAAQ,cAAc;IAClD,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;IAC9B,QAAQ,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC;IAC7B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,iBAAiB,CAAC,EAAE,MAAM,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC;IACzF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC;IACjC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC9B"}
|
|
@@ -76,17 +76,16 @@ var CSS = {
|
|
|
76
76
|
native: function () { return (0, react_1.css)({}); },
|
|
77
77
|
};
|
|
78
78
|
exports.Select = (0, mobx_react_lite_1.observer)(function (properties) {
|
|
79
|
-
var _a;
|
|
80
|
-
var _b, _c, _d, _e, _f, _g;
|
|
79
|
+
var _a, _b, _c, _d, _e, _f;
|
|
81
80
|
var globalTheme = (0, providers_1.useTheme)();
|
|
82
81
|
var theme = __assign(__assign({}, globalTheme), properties.theme);
|
|
83
82
|
var props = __assign(__assign(__assign({
|
|
84
83
|
// default props
|
|
85
|
-
iconOpen: 'angle-down', iconClose: 'angle-up', separator: ': ', startOpen: false }, (
|
|
84
|
+
iconOpen: 'angle-down', iconClose: 'angle-up', separator: ': ', startOpen: false }, (_a = globalTheme === null || globalTheme === void 0 ? void 0 : globalTheme.components) === null || _a === void 0 ? void 0 : _a.select), properties), (_c = (_b = properties.theme) === null || _b === void 0 ? void 0 : _b.components) === null || _c === void 0 ? void 0 : _c.select);
|
|
86
85
|
var backgroundColor = props.backgroundColor, borderColor = props.borderColor, color = props.color, clearSelection = props.clearSelection, disableClickOutside = props.disableClickOutside, disabled = props.disabled, hideLabelOnSelection = props.hideLabelOnSelection, iconColor = props.iconColor, iconClose = props.iconClose, iconOpen = props.iconOpen, label = props.label, native = props.native, onSelect = props.onSelect, selected = props.selected, separator = props.separator, startOpen = props.startOpen, stayOpenOnSelection = props.stayOpenOnSelection, disableStyles = props.disableStyles, className = props.className, style = props.style;
|
|
87
86
|
var options = props.options;
|
|
88
87
|
var subProps = {
|
|
89
|
-
dropdown: __assign(__assign(__assign({ className: 'ss__select__dropdown' }, (
|
|
88
|
+
dropdown: __assign(__assign(__assign({ className: 'ss__select__dropdown' }, (_d = globalTheme === null || globalTheme === void 0 ? void 0 : globalTheme.components) === null || _d === void 0 ? void 0 : _d.dropdown), (0, utilities_1.defined)({
|
|
90
89
|
disableStyles: disableStyles,
|
|
91
90
|
disabled: disabled,
|
|
92
91
|
})), {
|
|
@@ -94,7 +93,7 @@ exports.Select = (0, mobx_react_lite_1.observer)(function (properties) {
|
|
|
94
93
|
theme: props === null || props === void 0 ? void 0 : props.theme }),
|
|
95
94
|
button: __assign(__assign(__assign({
|
|
96
95
|
// default props
|
|
97
|
-
className: 'ss__select__dropdown__button' }, (
|
|
96
|
+
className: 'ss__select__dropdown__button' }, (_e = globalTheme === null || globalTheme === void 0 ? void 0 : globalTheme.components) === null || _e === void 0 ? void 0 : _e.button), (0, utilities_1.defined)({
|
|
98
97
|
disableStyles: disableStyles,
|
|
99
98
|
disabled: disabled,
|
|
100
99
|
color: color,
|
|
@@ -105,7 +104,7 @@ exports.Select = (0, mobx_react_lite_1.observer)(function (properties) {
|
|
|
105
104
|
theme: props === null || props === void 0 ? void 0 : props.theme }),
|
|
106
105
|
icon: __assign(__assign(__assign({
|
|
107
106
|
// default props
|
|
108
|
-
className: 'ss__select__dropdown__button__icon' }, (
|
|
107
|
+
className: 'ss__select__dropdown__button__icon' }, (_f = globalTheme === null || globalTheme === void 0 ? void 0 : globalTheme.components) === null || _f === void 0 ? void 0 : _f.icon), (0, utilities_1.defined)({
|
|
109
108
|
disableStyles: disableStyles,
|
|
110
109
|
color: iconColor || color,
|
|
111
110
|
size: '14px',
|
|
@@ -113,19 +112,10 @@ exports.Select = (0, mobx_react_lite_1.observer)(function (properties) {
|
|
|
113
112
|
// component theme overrides
|
|
114
113
|
theme: props === null || props === void 0 ? void 0 : props.theme }),
|
|
115
114
|
};
|
|
116
|
-
// only single selection support for now
|
|
117
|
-
var selection = selected;
|
|
118
|
-
var setSelection;
|
|
119
115
|
// open state
|
|
120
|
-
var
|
|
116
|
+
var _g = (0, hooks_1.useState)(Boolean(startOpen)), open = _g[0], setOpen = _g[1];
|
|
121
117
|
// selection state
|
|
122
|
-
var
|
|
123
|
-
if (stateful) {
|
|
124
|
-
_a = (0, hooks_1.useState)(undefined), selection = _a[0], setSelection = _a[1];
|
|
125
|
-
}
|
|
126
|
-
else {
|
|
127
|
-
selection = Array.isArray(selected) ? selected[0] : selection;
|
|
128
|
-
}
|
|
118
|
+
var _h = (0, hooks_1.useState)(selected), selection = _h[0], setSelection = _h[1];
|
|
129
119
|
if (selection && clearSelection) {
|
|
130
120
|
options = __spreadArray([
|
|
131
121
|
{
|
|
@@ -135,13 +125,10 @@ exports.Select = (0, mobx_react_lite_1.observer)(function (properties) {
|
|
|
135
125
|
], options, true);
|
|
136
126
|
}
|
|
137
127
|
var makeSelection = function (e, option) {
|
|
138
|
-
option = (option === null || option === void 0 ? void 0 : option.value) ? option : undefined;
|
|
139
128
|
if (option != selection) {
|
|
140
129
|
onSelect && onSelect(e, option);
|
|
141
130
|
}
|
|
142
|
-
|
|
143
|
-
setSelection(option);
|
|
144
|
-
}
|
|
131
|
+
setSelection(option);
|
|
145
132
|
!stayOpenOnSelection && setOpen(false);
|
|
146
133
|
};
|
|
147
134
|
var styling = {};
|
|
@@ -156,7 +143,8 @@ exports.Select = (0, mobx_react_lite_1.observer)(function (properties) {
|
|
|
156
143
|
else if (style) {
|
|
157
144
|
styling.css = [style];
|
|
158
145
|
}
|
|
159
|
-
|
|
146
|
+
// options can be an Array or ObservableArray - but should have length
|
|
147
|
+
return typeof options == 'object' && (options === null || options === void 0 ? void 0 : options.length) ? ((0, react_1.jsx)(providers_1.CacheProvider, null,
|
|
160
148
|
(0, react_1.jsx)("div", __assign({}, styling, { className: (0, classnames_1.default)('ss__select', { 'ss__select--disabled': disabled }, className) }), native ? ((0, react_1.jsx)(preact_1.Fragment, null,
|
|
161
149
|
label && !hideLabelOnSelection && ((0, react_1.jsx)("span", { className: "ss__select__label" },
|
|
162
150
|
label,
|
|
@@ -6,6 +6,7 @@ export declare const Autocomplete: ((properties: AutocompleteProps) => JSX.Eleme
|
|
|
6
6
|
};
|
|
7
7
|
export interface AutocompleteProps extends ComponentProps {
|
|
8
8
|
input: Element | string;
|
|
9
|
+
controller: AutocompleteController;
|
|
9
10
|
hideTerms?: boolean;
|
|
10
11
|
hideFacets?: boolean;
|
|
11
12
|
hideContent?: boolean;
|
|
@@ -25,7 +26,6 @@ export interface AutocompleteProps extends ComponentProps {
|
|
|
25
26
|
noResultsSlot?: JSX.Element;
|
|
26
27
|
linkSlot?: JSX.Element;
|
|
27
28
|
breakpoints?: BreakpointsProps;
|
|
28
|
-
controller: AutocompleteController;
|
|
29
29
|
width?: string;
|
|
30
30
|
onFacetOptionClick?: (e: React.MouseEvent<HTMLAnchorElement, MouseEvent>) => void;
|
|
31
31
|
onTermClick?: (e: React.MouseEvent<HTMLAnchorElement, MouseEvent>) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Autocomplete.d.ts","sourceRoot":"","sources":["../../../../../src/components/Organisms/Autocomplete/Autocomplete.tsx"],"names":[],"mappings":";AASA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAS5E,OAAO,EAAE,cAAc,EAAgB,gBAAgB,EAAc,MAAM,gBAAgB,CAAC;AAmJ5F,eAAO,MAAM,YAAY,gBAAyB,iBAAiB,KAAG,WAAW;;
|
|
1
|
+
{"version":3,"file":"Autocomplete.d.ts","sourceRoot":"","sources":["../../../../../src/components/Organisms/Autocomplete/Autocomplete.tsx"],"names":[],"mappings":";AASA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAS5E,OAAO,EAAE,cAAc,EAAgB,gBAAgB,EAAc,MAAM,gBAAgB,CAAC;AAmJ5F,eAAO,MAAM,YAAY,gBAAyB,iBAAiB,KAAG,WAAW;;CAkY/E,CAAC;AAkCH,MAAM,WAAW,iBAAkB,SAAQ,cAAc;IACxD,KAAK,EAAE,OAAO,GAAG,MAAM,CAAC;IACxB,UAAU,EAAE,sBAAsB,CAAC;IACnC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,SAAS,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IACxB,UAAU,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IACzB,WAAW,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAC1B,WAAW,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAC1B,aAAa,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAC5B,QAAQ,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IACvB,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kBAAkB,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,EAAE,UAAU,CAAC,KAAK,IAAI,CAAC;IAClF,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,EAAE,UAAU,CAAC,KAAK,IAAI,CAAC;CAC3E"}
|
|
@@ -272,7 +272,14 @@ exports.Autocomplete = (0, mobx_react_lite_1.observer)(function (properties) {
|
|
|
272
272
|
}, []);
|
|
273
273
|
}
|
|
274
274
|
var visible = Boolean(input === state.focusedInput) && (terms.length > 0 || (trending === null || trending === void 0 ? void 0 : trending.length) > 0 || state.input);
|
|
275
|
-
var showTrending =
|
|
275
|
+
var showTrending = false;
|
|
276
|
+
if (!results.length && !state.input && (trending === null || trending === void 0 ? void 0 : trending.length)) {
|
|
277
|
+
showTrending = true;
|
|
278
|
+
}
|
|
279
|
+
else if ((trending === null || trending === void 0 ? void 0 : trending.length) && !terms.length) {
|
|
280
|
+
// has results and trending -> show trending terms while term load
|
|
281
|
+
showTrending = true;
|
|
282
|
+
}
|
|
276
283
|
var facetsToShow = facets.length ? facets.filter(function (facet) { return facet.display !== types_1.FacetDisplay.SLIDER; }) : [];
|
|
277
284
|
var onlyTerms = (trending === null || trending === void 0 ? void 0 : trending.length) && !loaded;
|
|
278
285
|
var styling = {};
|
|
@@ -79,6 +79,20 @@ declare const _default: {
|
|
|
79
79
|
type: string;
|
|
80
80
|
};
|
|
81
81
|
};
|
|
82
|
+
input: {
|
|
83
|
+
description: string;
|
|
84
|
+
type: {
|
|
85
|
+
required: boolean;
|
|
86
|
+
};
|
|
87
|
+
table: {
|
|
88
|
+
type: {
|
|
89
|
+
summary: string;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
control: {
|
|
93
|
+
type: string;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
82
96
|
width: {
|
|
83
97
|
defaultValue: string;
|
|
84
98
|
description: string;
|
|
@@ -306,6 +320,22 @@ declare const _default: {
|
|
|
306
320
|
};
|
|
307
321
|
};
|
|
308
322
|
};
|
|
323
|
+
resultsSlot: {
|
|
324
|
+
description: string;
|
|
325
|
+
table: {
|
|
326
|
+
type: {
|
|
327
|
+
summary: string;
|
|
328
|
+
};
|
|
329
|
+
};
|
|
330
|
+
};
|
|
331
|
+
noResultsSlot: {
|
|
332
|
+
description: string;
|
|
333
|
+
table: {
|
|
334
|
+
type: {
|
|
335
|
+
summary: string;
|
|
336
|
+
};
|
|
337
|
+
};
|
|
338
|
+
};
|
|
309
339
|
breakpoints: {
|
|
310
340
|
description: string;
|
|
311
341
|
table: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Autocomplete.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Organisms/Autocomplete/Autocomplete.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,CAAC,EAAY,MAAM,QAAQ,CAAC;AAIrC,OAAO,EAAgB,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAIjE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;;;;;;;;;;;yBAgBlE,GAAG
|
|
1
|
+
{"version":3,"file":"Autocomplete.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Organisms/Autocomplete/Autocomplete.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,CAAC,EAAY,MAAM,QAAQ,CAAC;AAIrC,OAAO,EAAgB,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAIjE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;;;;;;;;;;;yBAgBlE,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAdb,wBAwRE;AAeF,eAAO,MAAM,OAAO;WAAU,iBAAiB;;wBAAsD,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;CAM1H,CAAC"}
|
|
@@ -89,6 +89,15 @@ exports.default = {
|
|
|
89
89
|
},
|
|
90
90
|
},
|
|
91
91
|
control: { type: 'none' },
|
|
92
|
+
}, input: {
|
|
93
|
+
description: 'input element reference',
|
|
94
|
+
type: { required: true },
|
|
95
|
+
table: {
|
|
96
|
+
type: {
|
|
97
|
+
summary: 'Element or String as CSS Selector',
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
control: { type: 'none' },
|
|
92
101
|
}, width: {
|
|
93
102
|
defaultValue: '100%',
|
|
94
103
|
description: 'Change width of the component',
|
|
@@ -247,6 +256,20 @@ exports.default = {
|
|
|
247
256
|
summary: 'component',
|
|
248
257
|
},
|
|
249
258
|
},
|
|
259
|
+
}, resultsSlot: {
|
|
260
|
+
description: 'Slot for custom results component & title.',
|
|
261
|
+
table: {
|
|
262
|
+
type: {
|
|
263
|
+
summary: 'component',
|
|
264
|
+
},
|
|
265
|
+
},
|
|
266
|
+
}, noResultsSlot: {
|
|
267
|
+
description: 'Slot for custom no-results component.',
|
|
268
|
+
table: {
|
|
269
|
+
type: {
|
|
270
|
+
summary: 'component',
|
|
271
|
+
},
|
|
272
|
+
},
|
|
250
273
|
}, breakpoints: {
|
|
251
274
|
description: 'Breakpoints options object',
|
|
252
275
|
table: {
|
|
@@ -273,6 +273,34 @@ declare const _default: {
|
|
|
273
273
|
};
|
|
274
274
|
};
|
|
275
275
|
};
|
|
276
|
+
previewOnFocus: {
|
|
277
|
+
description: string;
|
|
278
|
+
table: {
|
|
279
|
+
type: {
|
|
280
|
+
summary: string;
|
|
281
|
+
};
|
|
282
|
+
defaultValue: {
|
|
283
|
+
summary: boolean;
|
|
284
|
+
};
|
|
285
|
+
};
|
|
286
|
+
control: {
|
|
287
|
+
type: string;
|
|
288
|
+
};
|
|
289
|
+
};
|
|
290
|
+
valueProps: {
|
|
291
|
+
description: string;
|
|
292
|
+
table: {
|
|
293
|
+
type: {
|
|
294
|
+
summary: string;
|
|
295
|
+
};
|
|
296
|
+
defaultValue: {
|
|
297
|
+
summary: string;
|
|
298
|
+
};
|
|
299
|
+
};
|
|
300
|
+
control: {
|
|
301
|
+
type: string;
|
|
302
|
+
};
|
|
303
|
+
};
|
|
276
304
|
fields: {
|
|
277
305
|
defaultValue: {};
|
|
278
306
|
description: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Facet.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Organisms/Facet/Facet.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAK3B,OAAO,EAAS,UAAU,EAAE,MAAM,SAAS,CAAC;AAM5C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;;;;;;;;;;;yBAgB5D,GAAG
|
|
1
|
+
{"version":3,"file":"Facet.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Organisms/Facet/Facet.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAK3B,OAAO,EAAS,UAAU,EAAE,MAAM,SAAS,CAAC;AAM5C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;;;;;;;;;;;yBAgB5D,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAdb,wBA6NE;AAUF,eAAO,MAAM,IAAI;WAAU,UAAU;;wBAAsD,gBAAgB;;;;;;CAE1G,CAAC;AAiBF,eAAO,MAAM,MAAM;WAAU,UAAU;;wBAAsD,gBAAgB;;;;;;CAE5G,CAAC;AAiBF,eAAO,MAAM,OAAO;WAAU,UAAU;;wBAAsD,gBAAgB;;;;;;CAE7G,CAAC;AAiBF,eAAO,MAAM,IAAI;WAAU,UAAU;;wBAAsD,gBAAgB;;;;;;CAE1G,CAAC;AAiBF,eAAO,MAAM,SAAS;WAAU,UAAU;;wBAAsD,gBAAgB;;;;;;CAE/G,CAAC"}
|
|
@@ -234,6 +234,24 @@ exports.default = {
|
|
|
234
234
|
summary: 'component',
|
|
235
235
|
},
|
|
236
236
|
},
|
|
237
|
+
}, previewOnFocus: {
|
|
238
|
+
description: 'Invoke facet value preview upon focus',
|
|
239
|
+
table: {
|
|
240
|
+
type: {
|
|
241
|
+
summary: 'boolean',
|
|
242
|
+
},
|
|
243
|
+
defaultValue: { summary: false },
|
|
244
|
+
},
|
|
245
|
+
control: { type: 'boolean' },
|
|
246
|
+
}, valueProps: {
|
|
247
|
+
description: 'Object of facet value props',
|
|
248
|
+
table: {
|
|
249
|
+
type: {
|
|
250
|
+
summary: 'object',
|
|
251
|
+
},
|
|
252
|
+
defaultValue: { summary: '{}' },
|
|
253
|
+
},
|
|
254
|
+
control: { type: 'object' },
|
|
237
255
|
}, fields: {
|
|
238
256
|
defaultValue: {},
|
|
239
257
|
description: 'Change props per facet',
|
|
@@ -93,6 +93,20 @@ declare const _default: {
|
|
|
93
93
|
type: string;
|
|
94
94
|
};
|
|
95
95
|
};
|
|
96
|
+
controller: {
|
|
97
|
+
description: string;
|
|
98
|
+
type: {
|
|
99
|
+
required: boolean;
|
|
100
|
+
};
|
|
101
|
+
table: {
|
|
102
|
+
type: {
|
|
103
|
+
summary: string;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
control: {
|
|
107
|
+
type: string;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
96
110
|
};
|
|
97
111
|
};
|
|
98
112
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Facets.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Organisms/Facets/Facets.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAI3B,OAAO,EAAU,WAAW,EAAE,MAAM,UAAU,CAAC;AAK/C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;;;;;;;;;;;yBAgB5D,GAAG
|
|
1
|
+
{"version":3,"file":"Facets.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Organisms/Facets/Facets.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAI3B,OAAO,EAAU,WAAW,EAAE,MAAM,UAAU,CAAC;AAK/C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;;;;;;;;;;;yBAgB5D,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAdb,wBAqDE;AAIF,eAAO,MAAM,OAAO;WAAU,WAAW;;wBAAsD,gBAAgB;;;;;;CAE9G,CAAC"}
|
|
@@ -89,6 +89,15 @@ exports.default = {
|
|
|
89
89
|
},
|
|
90
90
|
},
|
|
91
91
|
control: { type: 'number' },
|
|
92
|
+
}, controller: {
|
|
93
|
+
description: 'Controller reference',
|
|
94
|
+
type: { required: false },
|
|
95
|
+
table: {
|
|
96
|
+
type: {
|
|
97
|
+
summary: 'Controller object',
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
control: { type: 'none' },
|
|
92
101
|
} }, utilities_1.componentArgs),
|
|
93
102
|
};
|
|
94
103
|
var snapInstance = snapify_1.Snapify.search({ id: 'Facets', globals: { siteId: '8uyt2m' } });
|
|
@@ -192,6 +192,17 @@ declare const _default: {
|
|
|
192
192
|
};
|
|
193
193
|
action: string;
|
|
194
194
|
};
|
|
195
|
+
controller: {
|
|
196
|
+
description: string;
|
|
197
|
+
table: {
|
|
198
|
+
type: {
|
|
199
|
+
summary: string;
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
control: {
|
|
203
|
+
type: string;
|
|
204
|
+
};
|
|
205
|
+
};
|
|
195
206
|
};
|
|
196
207
|
};
|
|
197
208
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilterSummary.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Organisms/FilterSummary/FilterSummary.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAK3B,OAAO,EAAiB,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAIpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC
|
|
1
|
+
{"version":3,"file":"FilterSummary.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Organisms/FilterSummary/FilterSummary.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAK3B,OAAO,EAAiB,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAIpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGtE,wBAqIE;AAqBF,eAAO,MAAM,OAAO;WAAU,kBAAkB;;wBAAsD,gBAAgB;;;;;;CAErH,CAAC;AAWF,eAAO,MAAM,YAAY;WAAU,kBAAkB;;wBAAsD,gBAAgB;;;;;;;;;CAE1H,CAAC;AAcF,eAAO,MAAM,WAAW;WAAU,kBAAkB;;wBAAsD,gBAAgB;;;;;;;;;CAEzH,CAAC"}
|
|
@@ -175,6 +175,14 @@ exports.default = {
|
|
|
175
175
|
},
|
|
176
176
|
},
|
|
177
177
|
action: 'onClearAllClick',
|
|
178
|
+
}, controller: {
|
|
179
|
+
description: 'Controller reference',
|
|
180
|
+
table: {
|
|
181
|
+
type: {
|
|
182
|
+
summary: 'Controller object',
|
|
183
|
+
},
|
|
184
|
+
},
|
|
185
|
+
control: { type: 'none' },
|
|
178
186
|
} }, utilities_1.componentArgs),
|
|
179
187
|
};
|
|
180
188
|
var snapInstance = snapify_1.Snapify.search({
|
|
@@ -16,7 +16,7 @@ export default {
|
|
|
16
16
|
},
|
|
17
17
|
argTypes: {
|
|
18
18
|
checked: {
|
|
19
|
-
description: 'Checkbox is checked (managed state)',
|
|
19
|
+
description: 'Checkbox is checked (externally managed state)',
|
|
20
20
|
table: {
|
|
21
21
|
type: {
|
|
22
22
|
summary: 'boolean',
|
|
@@ -81,7 +81,7 @@ export default {
|
|
|
81
81
|
control: { type: 'color' },
|
|
82
82
|
},
|
|
83
83
|
startChecked: {
|
|
84
|
-
description: 'Checkbox is checked initially(managed state)',
|
|
84
|
+
description: 'Checkbox is checked initially (internally managed state)',
|
|
85
85
|
table: {
|
|
86
86
|
type: {
|
|
87
87
|
summary: 'boolean',
|
|
@@ -7,7 +7,7 @@ export declare const ErrorHandler: ((properties: ErrorHandlerProps) => JSX.Eleme
|
|
|
7
7
|
};
|
|
8
8
|
export interface ErrorHandlerProps extends ComponentProps {
|
|
9
9
|
controller?: AbstractController;
|
|
10
|
-
error
|
|
10
|
+
error?: {
|
|
11
11
|
code?: number;
|
|
12
12
|
type: ErrorType;
|
|
13
13
|
message: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorHandler.d.ts","sourceRoot":"","sources":["../../../../../src/components/Molecules/ErrorHandler/ErrorHandler.tsx"],"names":[],"mappings":";AAYA,OAAO,EAAE,cAAc,EAAc,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAE1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAgExE,eAAO,MAAM,YAAY,gBAAyB,iBAAiB,KAAG,WAAW;;CAkG/E,CAAC;AAEH,MAAM,WAAW,iBAAkB,SAAQ,cAAc;IACxD,UAAU,CAAC,EAAE,kBAAkB,CAAC;IAChC,KAAK,EAAE;
|
|
1
|
+
{"version":3,"file":"ErrorHandler.d.ts","sourceRoot":"","sources":["../../../../../src/components/Molecules/ErrorHandler/ErrorHandler.tsx"],"names":[],"mappings":";AAYA,OAAO,EAAE,cAAc,EAAc,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAE1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAgExE,eAAO,MAAM,YAAY,gBAAyB,iBAAiB,KAAG,WAAW;;CAkG/E,CAAC;AAEH,MAAM,WAAW,iBAAkB,SAAQ,cAAc;IACxD,UAAU,CAAC,EAAE,kBAAkB,CAAC;IAChC,KAAK,CAAC,EAAE;QACP,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,SAAS,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,YAAY,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,KAAK,IAAI,CAAC;CACtE"}
|