@mirai/ui 1.0.183 → 1.0.185
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/README.md +3 -0
- package/build/components/Button/Button.js +5 -2
- package/build/components/Button/Button.js.map +1 -1
- package/build/components/Button/Button.module.css +1 -1
- package/build/components/Table/Table.ColumnFilter.js +23 -11
- package/build/components/Table/Table.ColumnFilter.js.map +1 -1
- package/build/components/Table/Table.Filter.js +2 -1
- package/build/components/Table/Table.Filter.js.map +1 -1
- package/build/components/Table/Table.Row.js +19 -10
- package/build/components/Table/Table.Row.js.map +1 -1
- package/build/components/Table/Table.js +15 -7
- package/build/components/Table/Table.js.map +1 -1
- package/build/components/Table/Table.module.css +7 -1
- package/build/components/Table/Table.stories.js +101 -56
- package/build/components/Table/Table.stories.js.map +1 -1
- package/build/components/Table/Table.stories.module.css +5 -1
- package/build/components/Table/__tests__/__snapshots__/Table.ColumnFilter.test.js.snap +29 -40
- package/build/components/Table/__tests__/__snapshots__/Table.test.js.snap +4804 -4772
- package/build/components/Table/helpers/index.js +11 -0
- package/build/components/Table/helpers/index.js.map +1 -1
- package/build/components/Table/helpers/isChecked.js +33 -0
- package/build/components/Table/helpers/isChecked.js.map +1 -0
- package/build/components/Table/helpers/select.js +7 -2
- package/build/components/Table/helpers/select.js.map +1 -1
- package/build/primitives/Layer/Layer.js +4 -2
- package/build/primitives/Layer/Layer.js.map +1 -1
- package/build/primitives/Layer/Layer.module.css +8 -1
- package/build/primitives/Layer/Layer.stories.js +1 -0
- package/build/primitives/Layer/Layer.stories.js.map +1 -1
- package/build/primitives/Layer/__tests__/__snapshots__/Layer.test.js.snap +22 -0
- package/build/theme/default.theme.css +1 -0
- package/package.json +1 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
@@ -13,9 +12,7 @@ var _ref;
|
|
|
13
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
13
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
15
14
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
16
|
-
function
|
|
17
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
18
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
15
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
19
16
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
20
17
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
21
18
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -23,6 +20,9 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
23
20
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
24
21
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) { ; } } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
25
22
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
23
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
24
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
25
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
26
26
|
var _default = {
|
|
27
27
|
title: 'Components'
|
|
28
28
|
};
|
|
@@ -37,6 +37,86 @@ var tags = function tags(value) {
|
|
|
37
37
|
}, language);
|
|
38
38
|
});
|
|
39
39
|
};
|
|
40
|
+
var handleSwitch = function handleSwitch(value, event) {
|
|
41
|
+
event.stopPropagation();
|
|
42
|
+
console.log('::switch::', value);
|
|
43
|
+
};
|
|
44
|
+
var dataSource = [{
|
|
45
|
+
username: 'jose',
|
|
46
|
+
email: 'jose@mirai.com',
|
|
47
|
+
active: true,
|
|
48
|
+
activeSwitch: /*#__PURE__*/_react.default.createElement(_.Switch, {
|
|
49
|
+
name: "active",
|
|
50
|
+
checked: true,
|
|
51
|
+
onChange: handleSwitch
|
|
52
|
+
}),
|
|
53
|
+
year: undefined,
|
|
54
|
+
languages: ['ES', 'EN'],
|
|
55
|
+
tags: tags(['ES', 'EN']),
|
|
56
|
+
action: null
|
|
57
|
+
}, {
|
|
58
|
+
username: 'mario/1',
|
|
59
|
+
email: 'mario.1@mirai.com',
|
|
60
|
+
active: true,
|
|
61
|
+
activeSwitch: /*#__PURE__*/_react.default.createElement(_.Switch, {
|
|
62
|
+
name: "active",
|
|
63
|
+
checked: true,
|
|
64
|
+
onChange: handleSwitch
|
|
65
|
+
}),
|
|
66
|
+
languages: ['ES'],
|
|
67
|
+
tags: null,
|
|
68
|
+
year: 2005
|
|
69
|
+
}, {
|
|
70
|
+
username: 'svet',
|
|
71
|
+
email: 'svet@mirai.com',
|
|
72
|
+
active: true,
|
|
73
|
+
activeSwitch: /*#__PURE__*/_react.default.createElement(_.Switch, {
|
|
74
|
+
name: "active",
|
|
75
|
+
checked: true,
|
|
76
|
+
onChange: handleSwitch
|
|
77
|
+
}),
|
|
78
|
+
tags: tags(['RU', 'ES', 'EN']),
|
|
79
|
+
languages: ['RU', 'ES', 'EN'],
|
|
80
|
+
year: 2021,
|
|
81
|
+
twitter: undefined,
|
|
82
|
+
action: /*#__PURE__*/_react.default.createElement(_.Button, {
|
|
83
|
+
small: true
|
|
84
|
+
}, "Click Me"),
|
|
85
|
+
actionTitle: 'Click Me'
|
|
86
|
+
}, (_ref = {
|
|
87
|
+
username: 'javi',
|
|
88
|
+
email: 'hi@soyjavi.com',
|
|
89
|
+
active: true,
|
|
90
|
+
activeSwitch: /*#__PURE__*/_react.default.createElement(_.Switch, {
|
|
91
|
+
name: "active",
|
|
92
|
+
checked: true,
|
|
93
|
+
onChange: handleSwitch
|
|
94
|
+
}),
|
|
95
|
+
tags: null,
|
|
96
|
+
languages: ['EU', 'ES', 'EN', 'TH']
|
|
97
|
+
}, _defineProperty(_ref, "tags", tags(['EU', 'ES', 'EN', 'TH'])), _defineProperty(_ref, "year", 2022), _defineProperty(_ref, "twitter", 'soyjavi'), _defineProperty(_ref, "bio", "Hi, I'm Javi. For as long as I can remember, I have always loved build software and helping people through it. I strive to design simple, clean, and beautiful products in the hope that they will make a difference in the world."), _ref), {
|
|
98
|
+
username: 'victor',
|
|
99
|
+
email: 'victor@mirai.com',
|
|
100
|
+
active: false,
|
|
101
|
+
activeSwitch: /*#__PURE__*/_react.default.createElement(_.Switch, {
|
|
102
|
+
name: "active",
|
|
103
|
+
onChange: handleSwitch
|
|
104
|
+
}),
|
|
105
|
+
languages: ['ES'],
|
|
106
|
+
tags: tags(['ES']),
|
|
107
|
+
year: 2021
|
|
108
|
+
}, {
|
|
109
|
+
username: 'mario/2',
|
|
110
|
+
email: 'mario.2@mirai.com',
|
|
111
|
+
active: false,
|
|
112
|
+
activeSwitch: /*#__PURE__*/_react.default.createElement(_.Switch, {
|
|
113
|
+
name: "active",
|
|
114
|
+
onChange: handleSwitch
|
|
115
|
+
}),
|
|
116
|
+
languages: ['ES'],
|
|
117
|
+
tags: tags(['ES']),
|
|
118
|
+
year: 2022
|
|
119
|
+
}];
|
|
40
120
|
var Story = function Story(props) {
|
|
41
121
|
var _useState = (0, _react.useState)(),
|
|
42
122
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -87,48 +167,6 @@ var Story = function Story(props) {
|
|
|
87
167
|
})));
|
|
88
168
|
};
|
|
89
169
|
exports.Story = Story;
|
|
90
|
-
var dataSource = [{
|
|
91
|
-
username: 'jose',
|
|
92
|
-
email: 'jose@mirai.com',
|
|
93
|
-
year: 1,
|
|
94
|
-
languages: ['ES', 'EN'],
|
|
95
|
-
tags: tags(['ES', 'EN']),
|
|
96
|
-
action: null
|
|
97
|
-
}, {
|
|
98
|
-
username: 'mario/1',
|
|
99
|
-
email: 'mario.1@mirai.com',
|
|
100
|
-
languages: ['ES'],
|
|
101
|
-
tags: null,
|
|
102
|
-
year: 2005
|
|
103
|
-
}, {
|
|
104
|
-
username: 'svet',
|
|
105
|
-
email: 'svet@mirai.com',
|
|
106
|
-
tags: tags(['RU', 'ES', 'EN']),
|
|
107
|
-
languages: ['RU', 'ES', 'EN'],
|
|
108
|
-
year: 2021,
|
|
109
|
-
twitter: undefined,
|
|
110
|
-
action: /*#__PURE__*/_react.default.createElement(_.Button, {
|
|
111
|
-
small: true
|
|
112
|
-
}, "Click Me"),
|
|
113
|
-
actionTitle: 'Click Me'
|
|
114
|
-
}, (_ref = {
|
|
115
|
-
username: 'javi',
|
|
116
|
-
email: 'hi@soyjavi.com',
|
|
117
|
-
tags: null,
|
|
118
|
-
languages: ['EU', 'ES', 'EN', 'TH']
|
|
119
|
-
}, _defineProperty(_ref, "tags", tags(['EU', 'ES', 'EN', 'TH'])), _defineProperty(_ref, "year", 2022), _defineProperty(_ref, "twitter", 'soyjavi'), _defineProperty(_ref, "bio", "Hi, I'm Javi. For as long as I can remember, I have always loved build software and helping people through it. I strive to design simple, clean, and beautiful products in the hope that they will make a difference in the world."), _ref), {
|
|
120
|
-
username: 'victor',
|
|
121
|
-
email: 'victor@mirai.com',
|
|
122
|
-
languages: ['ES'],
|
|
123
|
-
tags: tags(['ES']),
|
|
124
|
-
year: 2021
|
|
125
|
-
}, {
|
|
126
|
-
username: 'mario/2',
|
|
127
|
-
email: 'mario.2@mirai.com',
|
|
128
|
-
languages: ['ES'],
|
|
129
|
-
tags: tags(['ES']),
|
|
130
|
-
year: 2022
|
|
131
|
-
}];
|
|
132
170
|
Story.storyName = 'Table';
|
|
133
171
|
Story.args = {
|
|
134
172
|
dataSource: dataSource,
|
|
@@ -155,12 +193,22 @@ Story.args = {
|
|
|
155
193
|
},
|
|
156
194
|
schema: {
|
|
157
195
|
username: {
|
|
158
|
-
label: 'User Name'
|
|
159
|
-
type: 'text'
|
|
196
|
+
label: 'User Name'
|
|
160
197
|
},
|
|
161
198
|
email: {
|
|
162
199
|
label: 'Email'
|
|
163
200
|
},
|
|
201
|
+
active: {
|
|
202
|
+
label: 'Active',
|
|
203
|
+
type: 'boolean',
|
|
204
|
+
hidden: true
|
|
205
|
+
},
|
|
206
|
+
activeSwitch: {
|
|
207
|
+
label: 'Active',
|
|
208
|
+
type: 'component',
|
|
209
|
+
bind: 'active',
|
|
210
|
+
sort: false
|
|
211
|
+
},
|
|
164
212
|
tags: {
|
|
165
213
|
label: /*#__PURE__*/_react.default.createElement(_.View, {
|
|
166
214
|
row: true,
|
|
@@ -170,8 +218,8 @@ Story.args = {
|
|
|
170
218
|
bind: 'languages'
|
|
171
219
|
},
|
|
172
220
|
languages: {
|
|
173
|
-
label: 'Languages
|
|
174
|
-
|
|
221
|
+
label: 'Languages',
|
|
222
|
+
hidden: true
|
|
175
223
|
},
|
|
176
224
|
year: {
|
|
177
225
|
label: 'Year',
|
|
@@ -186,17 +234,14 @@ Story.args = {
|
|
|
186
234
|
action: {
|
|
187
235
|
label: 'Action',
|
|
188
236
|
type: 'component',
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
actionTitle: {
|
|
192
|
-
label: 'Action (hidden)',
|
|
193
|
-
type: 'hidden'
|
|
237
|
+
sort: false,
|
|
238
|
+
filter: false
|
|
194
239
|
}
|
|
195
240
|
},
|
|
196
241
|
search: '',
|
|
242
|
+
store: 'mirai',
|
|
197
243
|
// inherited properties
|
|
198
244
|
testId: 'test-story',
|
|
199
|
-
store: 'mirai',
|
|
200
245
|
style: {
|
|
201
246
|
background: 'green'
|
|
202
247
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.stories.js","names":["title","tags","value","map","language","style","tag","Story","props","useState","selected","setSelected","search","setSearch","useEffect","handleScroll","others","console","log","handlePress","handleSelect","table","dataSource","username","email","year","languages","action","twitter","undefined","actionTitle","storyName","args","filter","field","min","max","inline","l10n","actionCancel","actionSubmit","labelMax","labelMin","schema","label","type","bind","bio","testId","store","background","argTypes"],"sources":["../../../src/components/Table/Table.stories.jsx"],"sourcesContent":["import React, { useEffect, useState } from 'react';\n\nimport { Button, Icon, ICON, InputText, Text, View } from '../../';\nimport { Table } from './Table';\nimport style from './Table.stories.module.css';\n\nexport default { title: 'Components' };\n\nconst tags = (value) =>\n value.map((language) => (\n <Text key={language} bold tiny className={style.tag}>\n {language}\n </Text>\n ));\n\nexport const Story = (props) => {\n const [selected, setSelected] = useState();\n const [search, setSearch] = useState();\n\n useEffect(() => {\n setSearch(props.search);\n }, [props.search]);\n\n const handleScroll = (...others) => console.log('<Table>::onScroll', ...others);\n\n const handlePress = (...others) => console.log('<Table>::onPress', ...others);\n\n const handleSelect = (...others) => {\n console.log('<Table>::onSelect', ...others);\n setSelected(...others);\n };\n\n return (\n <>\n <InputText name=\"search\" placeholder=\"search...\" type=\"search\" value={search} onChange={setSearch} />\n\n <Table\n {...props}\n search={search}\n selected={selected}\n onPress={handlePress}\n onScroll={handleScroll}\n onSelect={handleSelect}\n className={style.table}\n />\n </>\n );\n};\n\nconst dataSource = [\n {\n username: 'jose',\n email: 'jose@mirai.com',\n year: 1,\n languages: ['ES', 'EN'],\n tags: tags(['ES', 'EN']),\n action: null,\n },\n {\n username: 'mario/1',\n email: 'mario.1@mirai.com',\n languages: ['ES'],\n tags: null,\n year: 2005,\n },\n {\n username: 'svet',\n email: 'svet@mirai.com',\n tags: tags(['RU', 'ES', 'EN']),\n languages: ['RU', 'ES', 'EN'],\n year: 2021,\n twitter: undefined,\n action: <Button small>Click Me</Button>,\n actionTitle: 'Click Me',\n },\n {\n username: 'javi',\n email: 'hi@soyjavi.com',\n tags: null,\n languages: ['EU', 'ES', 'EN', 'TH'],\n tags: tags(['EU', 'ES', 'EN', 'TH']),\n year: 2022,\n twitter: 'soyjavi',\n bio: \"Hi, I'm Javi. For as long as I can remember, I have always loved build software and helping people through it. I strive to design simple, clean, and beautiful products in the hope that they will make a difference in the world.\",\n },\n {\n username: 'victor',\n email: 'victor@mirai.com',\n languages: ['ES'],\n tags: tags(['ES']),\n year: 2021,\n },\n {\n username: 'mario/2',\n email: 'mario.2@mirai.com',\n languages: ['ES'],\n tags: tags(['ES']),\n year: 2022,\n },\n];\n\nStory.storyName = 'Table';\n\nStory.args = {\n dataSource,\n filter: [\n { field: 'email', value: '@mirai.com' },\n { field: 'nonExistent', value: '@mirai.com' },\n { field: 'email', value: '@soyjavi.com' },\n { field: 'year', min: 2020, max: 2023 },\n ],\n inline: true,\n l10n: {\n actionCancel: 'Cancel',\n actionSubmit: 'Submit',\n labelMax: 'Max',\n labelMin: 'Min',\n },\n schema: {\n username: { label: 'User Name', type: 'text' },\n email: {\n label: 'Email',\n },\n tags: {\n label: (\n <View row className={style.label}>\n <Text>🏷️</Text>\n Tags\n </View>\n ),\n type: 'component',\n bind: 'languages',\n },\n languages: { label: 'Languages (hidden)', type: 'hidden' },\n year: { label: 'Year', type: 'number' },\n twitter: { label: 'Twitter' },\n bio: { label: 'Biography' },\n action: { label: 'Action', type: 'component', bind: 'actionTitle' },\n actionTitle: { label: 'Action (hidden)', type: 'hidden' },\n },\n search: '',\n // inherited properties\n testId: 'test-story',\n store: 'mirai',\n style: {\n background: 'green',\n },\n};\n\nStory.argTypes = {};\n"],"mappings":";;;;;;;AAAA;AAEA;AACA;AACA;AAA+C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,eAEhC;EAAEA,KAAK,EAAE;AAAa,CAAC;AAAA;AAEtC,IAAMC,IAAI,GAAG,SAAPA,IAAI,CAAIC,KAAK;EAAA,OACjBA,KAAK,CAACC,GAAG,CAAC,UAACC,QAAQ;IAAA,oBACjB,6BAAC,MAAI;MAAC,GAAG,EAAEA,QAAS;MAAC,IAAI;MAAC,IAAI;MAAC,SAAS,EAAEC,2BAAK,CAACC;IAAI,GACjDF,QAAQ,CACJ;EAAA,CACR,CAAC;AAAA;AAEG,IAAMG,KAAK,GAAG,SAARA,KAAK,CAAIC,KAAK,EAAK;EAC9B,gBAAgC,IAAAC,eAAQ,GAAE;IAAA;IAAnCC,QAAQ;IAAEC,WAAW;EAC5B,iBAA4B,IAAAF,eAAQ,GAAE;IAAA;IAA/BG,MAAM;IAAEC,SAAS;EAExB,IAAAC,gBAAS,EAAC,YAAM;IACdD,SAAS,CAACL,KAAK,CAACI,MAAM,CAAC;EACzB,CAAC,EAAE,CAACJ,KAAK,CAACI,MAAM,CAAC,CAAC;EAElB,IAAMG,YAAY,GAAG,SAAfA,YAAY;IAAA;IAAA,kCAAOC,MAAM;MAANA,MAAM;IAAA;IAAA,OAAK,YAAAC,OAAO,EAACC,GAAG,kBAAC,mBAAmB,SAAKF,MAAM,EAAC;EAAA;EAE/E,IAAMG,WAAW,GAAG,SAAdA,WAAW;IAAA;IAAA,mCAAOH,MAAM;MAANA,MAAM;IAAA;IAAA,OAAK,aAAAC,OAAO,EAACC,GAAG,mBAAC,kBAAkB,SAAKF,MAAM,EAAC;E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JC,YAAY,EAAE,QAAQ;IACtBC,YAAY,EAAE,QAAQ;IACtBC,QAAQ,EAAE,KAAK;IACfC,QAAQ,EAAE;EACZ,CAAC;EACDC,MAAM,EAAE;IACNpB,QAAQ,EAAE;MAAEqB,KAAK,EAAE,WAAW;MAAEC,IAAI,EAAE;IAAO,CAAC;IAC9CrB,KAAK,EAAE;MACLoB,KAAK,EAAE;IACT,CAAC;IACD3C,IAAI,EAAE;MACJ2C,KAAK,eACH,6BAAC,MAAI;QAAC,GAAG;QAAC,SAAS,EAAEvC,2BAAK,CAACuC;MAAM,gBAC/B,6BAAC,MAAI,6BAAW,SAGnB;MACDC,IAAI,EAAE,WAAW;MACjBC,IAAI,EAAE;IACR,CAAC;IACDpB,SAAS,EAAE;MAAEkB,KAAK,EAAE,oBAAoB;MAAEC,IAAI,EAAE;IAAS,CAAC;IAC1DpB,IAAI,EAAE;MAAEmB,KAAK,EAAE,MAAM;MAAEC,IAAI,EAAE;IAAS,CAAC;IACvCjB,OAAO,EAAE;MAAEgB,KAAK,EAAE;IAAU,CAAC;IAC7BG,GAAG,EAAE;MAAEH,KAAK,EAAE;IAAY,CAAC;IAC3BjB,MAAM,EAAE;MAAEiB,KAAK,EAAE,QAAQ;MAAEC,IAAI,EAAE,WAAW;MAAEC,IAAI,EAAE;IAAc,CAAC;IACnEhB,WAAW,EAAE;MAAEc,KAAK,EAAE,iBAAiB;MAAEC,IAAI,EAAE;IAAS;EAC1D,CAAC;EACDjC,MAAM,EAAE,EAAE;EACV;EACAoC,MAAM,EAAE,YAAY;EACpBC,KAAK,EAAE,OAAO;EACd5C,KAAK,EAAE;IACL6C,UAAU,EAAE;EACd;AACF,CAAC;AAED3C,KAAK,CAAC4C,QAAQ,GAAG,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"Table.stories.js","names":["title","tags","value","map","language","style","tag","handleSwitch","event","stopPropagation","console","log","dataSource","username","email","active","activeSwitch","year","undefined","languages","action","twitter","actionTitle","Story","props","useState","selected","setSelected","search","setSearch","useEffect","handleScroll","others","handlePress","handleSelect","table","storyName","args","filter","field","min","max","inline","l10n","actionCancel","actionSubmit","labelMax","labelMin","schema","label","type","hidden","bind","sort","bio","store","testId","background","argTypes"],"sources":["../../../src/components/Table/Table.stories.jsx"],"sourcesContent":["import React, { useEffect, useState } from 'react';\n\nimport { Button, Icon, ICON, InputText, Switch, Text, View } from '../../';\nimport { Table } from './Table';\nimport style from './Table.stories.module.css';\n\nexport default { title: 'Components' };\n\nconst tags = (value) =>\n value.map((language) => (\n <Text key={language} bold tiny className={style.tag}>\n {language}\n </Text>\n ));\n\nconst handleSwitch = (value, event) => {\n event.stopPropagation();\n console.log('::switch::', value);\n};\n\nconst dataSource = [\n {\n username: 'jose',\n email: 'jose@mirai.com',\n active: true,\n activeSwitch: <Switch name=\"active\" checked onChange={handleSwitch} />,\n year: undefined,\n languages: ['ES', 'EN'],\n tags: tags(['ES', 'EN']),\n action: null,\n },\n {\n username: 'mario/1',\n email: 'mario.1@mirai.com',\n active: true,\n activeSwitch: <Switch name=\"active\" checked onChange={handleSwitch} />,\n languages: ['ES'],\n tags: null,\n year: 2005,\n },\n {\n username: 'svet',\n email: 'svet@mirai.com',\n active: true,\n activeSwitch: <Switch name=\"active\" checked onChange={handleSwitch} />,\n tags: tags(['RU', 'ES', 'EN']),\n languages: ['RU', 'ES', 'EN'],\n year: 2021,\n twitter: undefined,\n action: <Button small>Click Me</Button>,\n actionTitle: 'Click Me',\n },\n {\n username: 'javi',\n email: 'hi@soyjavi.com',\n active: true,\n activeSwitch: <Switch name=\"active\" checked onChange={handleSwitch} />,\n tags: null,\n languages: ['EU', 'ES', 'EN', 'TH'],\n tags: tags(['EU', 'ES', 'EN', 'TH']),\n year: 2022,\n twitter: 'soyjavi',\n bio: \"Hi, I'm Javi. For as long as I can remember, I have always loved build software and helping people through it. I strive to design simple, clean, and beautiful products in the hope that they will make a difference in the world.\",\n },\n {\n username: 'victor',\n email: 'victor@mirai.com',\n active: false,\n activeSwitch: <Switch name=\"active\" onChange={handleSwitch} />,\n languages: ['ES'],\n tags: tags(['ES']),\n year: 2021,\n },\n {\n username: 'mario/2',\n email: 'mario.2@mirai.com',\n active: false,\n activeSwitch: <Switch name=\"active\" onChange={handleSwitch} />,\n languages: ['ES'],\n tags: tags(['ES']),\n year: 2022,\n },\n];\n\nexport const Story = (props) => {\n const [selected, setSelected] = useState();\n const [search, setSearch] = useState();\n\n useEffect(() => {\n setSearch(props.search);\n }, [props.search]);\n\n const handleScroll = (...others) => console.log('<Table>::onScroll', ...others);\n\n const handlePress = (...others) => console.log('<Table>::onPress', ...others);\n\n const handleSelect = (...others) => {\n console.log('<Table>::onSelect', ...others);\n setSelected(...others);\n };\n\n return (\n <>\n <InputText name=\"search\" placeholder=\"search...\" type=\"search\" value={search} onChange={setSearch} />\n\n <Table\n {...props}\n search={search}\n selected={selected}\n onPress={handlePress}\n onScroll={handleScroll}\n onSelect={handleSelect}\n className={style.table}\n />\n </>\n );\n};\n\nStory.storyName = 'Table';\n\nStory.args = {\n dataSource,\n filter: [\n { field: 'email', value: '@mirai.com' },\n { field: 'nonExistent', value: '@mirai.com' },\n { field: 'email', value: '@soyjavi.com' },\n { field: 'year', min: 2020, max: 2023 },\n ],\n inline: true,\n l10n: {\n actionCancel: 'Cancel',\n actionSubmit: 'Submit',\n labelMax: 'Max',\n labelMin: 'Min',\n },\n schema: {\n username: { label: 'User Name' },\n email: { label: 'Email' },\n active: { label: 'Active', type: 'boolean', hidden: true },\n activeSwitch: { label: 'Active', type: 'component', bind: 'active', sort: false },\n tags: {\n label: (\n <View row className={style.label}>\n <Text>🏷️</Text>\n Tags\n </View>\n ),\n type: 'component',\n bind: 'languages',\n },\n languages: { label: 'Languages', hidden: true },\n year: { label: 'Year', type: 'number' },\n twitter: { label: 'Twitter' },\n bio: { label: 'Biography' },\n action: { label: 'Action', type: 'component', sort: false, filter: false },\n },\n search: '',\n store: 'mirai',\n // inherited properties\n testId: 'test-story',\n style: {\n background: 'green',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EAAE;IAAM,CAAC;IACjFpD,IAAI,EAAE;MACJgD,KAAK,eACH,6BAAC,MAAI;QAAC,GAAG;QAAC,SAAS,EAAE5C,2BAAK,CAAC4C;MAAM,gBAC/B,6BAAC,MAAI,6BAAW,SAGnB;MACDC,IAAI,EAAE,WAAW;MACjBE,IAAI,EAAE;IACR,CAAC;IACDjC,SAAS,EAAE;MAAE8B,KAAK,EAAE,WAAW;MAAEE,MAAM,EAAE;IAAK,CAAC;IAC/ClC,IAAI,EAAE;MAAEgC,KAAK,EAAE,MAAM;MAAEC,IAAI,EAAE;IAAS,CAAC;IACvC7B,OAAO,EAAE;MAAE4B,KAAK,EAAE;IAAU,CAAC;IAC7BK,GAAG,EAAE;MAAEL,KAAK,EAAE;IAAY,CAAC;IAC3B7B,MAAM,EAAE;MAAE6B,KAAK,EAAE,QAAQ;MAAEC,IAAI,EAAE,WAAW;MAAEG,IAAI,EAAE,KAAK;MAAEf,MAAM,EAAE;IAAM;EAC3E,CAAC;EACDV,MAAM,EAAE,EAAE;EACV2B,KAAK,EAAE,OAAO;EACd;EACAC,MAAM,EAAE,YAAY;EACpBnD,KAAK,EAAE;IACLoD,UAAU,EAAE;EACd;AACF,CAAC;AAEDlC,KAAK,CAACmC,QAAQ,GAAG,CAAC,CAAC"}
|
|
@@ -294,7 +294,7 @@ exports[`component:<Table>:<ColumnFilter> prop:schema type:number 1`] = `
|
|
|
294
294
|
<span
|
|
295
295
|
class="text bold small"
|
|
296
296
|
>
|
|
297
|
-
|
|
297
|
+
field
|
|
298
298
|
</span>
|
|
299
299
|
</div>
|
|
300
300
|
</div>
|
|
@@ -305,52 +305,41 @@ exports[`component:<Table>:<ColumnFilter> prop:schema type:number 1`] = `
|
|
|
305
305
|
class="view row wide content"
|
|
306
306
|
>
|
|
307
307
|
<div
|
|
308
|
-
class="view
|
|
308
|
+
class="view inputContainer input"
|
|
309
309
|
>
|
|
310
310
|
<div
|
|
311
|
-
class="view
|
|
311
|
+
class="view row inputBorder"
|
|
312
312
|
>
|
|
313
|
-
<
|
|
314
|
-
class="
|
|
313
|
+
<span
|
|
314
|
+
class="icon headline-3 icon left"
|
|
315
315
|
>
|
|
316
|
-
<
|
|
317
|
-
|
|
316
|
+
<svg
|
|
317
|
+
fill="currentColor"
|
|
318
|
+
height="1em"
|
|
319
|
+
stroke="currentColor"
|
|
320
|
+
stroke-width="0"
|
|
321
|
+
viewBox="0 0 24 24"
|
|
322
|
+
width="1em"
|
|
323
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
318
324
|
>
|
|
319
|
-
<
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
Min
|
|
323
|
-
</span>
|
|
324
|
-
<input
|
|
325
|
-
class="input input withLabel"
|
|
326
|
-
name="min"
|
|
327
|
-
type="number"
|
|
328
|
-
value=""
|
|
325
|
+
<path
|
|
326
|
+
d="M0 0h24v24H0V0z"
|
|
327
|
+
fill="none"
|
|
329
328
|
/>
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
>
|
|
329
|
+
<path
|
|
330
|
+
d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"
|
|
331
|
+
/>
|
|
332
|
+
</svg>
|
|
333
|
+
</span>
|
|
336
334
|
<div
|
|
337
|
-
class="view
|
|
335
|
+
class="view wide content"
|
|
338
336
|
>
|
|
339
|
-
<
|
|
340
|
-
class="
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
Max
|
|
346
|
-
</span>
|
|
347
|
-
<input
|
|
348
|
-
class="input input withLabel"
|
|
349
|
-
name="max"
|
|
350
|
-
type="number"
|
|
351
|
-
value=""
|
|
352
|
-
/>
|
|
353
|
-
</div>
|
|
337
|
+
<input
|
|
338
|
+
class="input input"
|
|
339
|
+
name="search"
|
|
340
|
+
type="search"
|
|
341
|
+
value=""
|
|
342
|
+
/>
|
|
354
343
|
</div>
|
|
355
344
|
</div>
|
|
356
345
|
</div>
|
|
@@ -429,7 +418,7 @@ exports[`component:<Table>:<ColumnFilter> prop:schema type:text 1`] = `
|
|
|
429
418
|
<span
|
|
430
419
|
class="text bold small"
|
|
431
420
|
>
|
|
432
|
-
|
|
421
|
+
field
|
|
433
422
|
</span>
|
|
434
423
|
</div>
|
|
435
424
|
</div>
|