@mirai/ui 1.0.62 → 1.0.63
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/build/components/Button/Button.stories.js +4 -2
- package/build/components/Button/Button.stories.js.map +1 -1
- package/build/components/Calendar/Calendar.stories.js +2 -2
- package/build/components/Calendar/Calendar.stories.js.map +1 -1
- package/build/components/Form/Form.stories.js +4 -2
- package/build/components/Form/Form.stories.js.map +1 -1
- package/build/components/InputDate/InputDate.stories.js +4 -2
- package/build/components/InputDate/InputDate.stories.js.map +1 -1
- package/build/components/InputNumber/InputNumber.stories.js +4 -2
- package/build/components/InputNumber/InputNumber.stories.js.map +1 -1
- package/build/components/InputOption/InputOption.stories.js +4 -2
- package/build/components/InputOption/InputOption.stories.js.map +1 -1
- package/build/components/InputSelect/InputSelect.stories.js +4 -2
- package/build/components/InputSelect/InputSelect.stories.js.map +1 -1
- package/build/components/InputText/InputText.stories.js +4 -2
- package/build/components/InputText/InputText.stories.js.map +1 -1
- package/build/components/Menu/Menu.js +3 -2
- package/build/components/Menu/Menu.js.map +1 -1
- package/build/components/Menu/Menu.stories.js +6 -4
- package/build/components/Menu/Menu.stories.js.map +1 -1
- package/build/components/Menu/__tests__/__snapshots__/Menu.test.jsx.snap +1 -0
- package/build/components/Modal/Modal.stories.js +4 -2
- package/build/components/Modal/Modal.stories.js.map +1 -1
- package/build/components/Notification/Notification.stories.js +4 -2
- package/build/components/Notification/Notification.stories.js.map +1 -1
- package/build/components/Table/Table.stories.js +4 -2
- package/build/components/Table/Table.stories.js.map +1 -1
- package/build/components/Tooltip/Tooltip.stories.js +4 -2
- package/build/components/Tooltip/Tooltip.stories.js.map +1 -1
- package/build/primitives/Checkbox/Checkbox.stories.js +4 -2
- package/build/primitives/Checkbox/Checkbox.stories.js.map +1 -1
- package/build/primitives/Icon/Icon.stories.js +4 -2
- package/build/primitives/Icon/Icon.stories.js.map +1 -1
- package/build/primitives/Input/Input.stories.js +4 -2
- package/build/primitives/Input/Input.stories.js.map +1 -1
- package/build/primitives/Layer/Layer.stories.js +4 -2
- package/build/primitives/Layer/Layer.stories.js.map +1 -1
- package/build/primitives/Pressable/Pressable.stories.js +4 -2
- package/build/primitives/Pressable/Pressable.stories.js.map +1 -1
- package/build/primitives/Radio/Radio.stories.js +4 -2
- package/build/primitives/Radio/Radio.stories.js.map +1 -1
- package/build/primitives/ScrollView/ScrollView.stories.js +4 -2
- package/build/primitives/ScrollView/ScrollView.stories.js.map +1 -1
- package/build/primitives/Select/Select.stories.js +4 -2
- package/build/primitives/Select/Select.stories.js.map +1 -1
- package/build/primitives/Switch/Switch.stories.js +4 -2
- package/build/primitives/Switch/Switch.stories.js.map +1 -1
- package/build/primitives/Text/Text.stories.js +4 -2
- package/build/primitives/Text/Text.stories.js.map +1 -1
- package/build/primitives/View/View.stories.js +4 -2
- package/build/primitives/View/View.stories.js.map +1 -1
- package/build/theme/theme.stories.js +2 -0
- package/build/theme/theme.stories.js.map +1 -0
- package/package.json +1 -1
|
@@ -15,6 +15,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
15
15
|
|
|
16
16
|
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; }
|
|
17
17
|
|
|
18
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
19
|
+
|
|
18
20
|
var _default = {
|
|
19
21
|
title: 'Components'
|
|
20
22
|
};
|
|
@@ -26,7 +28,7 @@ var Story = function Story(props) {
|
|
|
26
28
|
|
|
27
29
|
exports.Story = Story;
|
|
28
30
|
Story.storyName = 'Button';
|
|
29
|
-
Story.args = {
|
|
31
|
+
Story.args = _defineProperty({
|
|
30
32
|
busy: false,
|
|
31
33
|
children: 'children',
|
|
32
34
|
disabled: false,
|
|
@@ -37,7 +39,7 @@ Story.args = {
|
|
|
37
39
|
squared: false,
|
|
38
40
|
tag: 'button',
|
|
39
41
|
wide: false
|
|
40
|
-
};
|
|
42
|
+
}, 'data-testid', 'test-story');
|
|
41
43
|
Story.argTypes = {
|
|
42
44
|
onEnter: {
|
|
43
45
|
action: 'onEnter'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.stories.js","names":["title","Story","props","storyName","args","busy","children","disabled","large","rounded","secondary","small","squared","tag","wide","argTypes","onEnter","action","onLeave","onPress"],"sources":["../../../src/components/Button/Button.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Button } from './Button';\n\nexport default { title: 'Components' };\n\nexport const Story = (props) => <Button {...props} />;\n\nStory.storyName = 'Button';\n\nStory.args = {\n busy: false,\n children: 'children',\n disabled: false,\n large: false,\n rounded: false,\n secondary: false,\n small: false,\n squared: false,\n tag: 'button',\n wide: false,\n};\n\nStory.argTypes = {\n onEnter: { action: 'onEnter' },\n onLeave: { action: 'onLeave' },\n onPress: { action: 'onPress' },\n};\n"],"mappings":";;;;;;;;;AAAA;;AAEA
|
|
1
|
+
{"version":3,"file":"Button.stories.js","names":["title","Story","props","storyName","args","busy","children","disabled","large","rounded","secondary","small","squared","tag","wide","argTypes","onEnter","action","onLeave","onPress"],"sources":["../../../src/components/Button/Button.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Button } from './Button';\n\nexport default { title: 'Components' };\n\nexport const Story = (props) => <Button {...props} />;\n\nStory.storyName = 'Button';\n\nStory.args = {\n busy: false,\n children: 'children',\n disabled: false,\n large: false,\n rounded: false,\n secondary: false,\n small: false,\n squared: false,\n tag: 'button',\n wide: false,\n ['data-testid']: 'test-story',\n};\n\nStory.argTypes = {\n onEnter: { action: 'onEnter' },\n onLeave: { action: 'onLeave' },\n onPress: { action: 'onPress' },\n};\n"],"mappings":";;;;;;;;;AAAA;;AAEA;;;;;;;;eAEe;EAAEA,KAAK,EAAE;AAAT,C;;;AAER,IAAMC,KAAK,GAAG,SAARA,KAAQ,CAACC,KAAD;EAAA,oBAAW,oBAAC,cAAD,EAAYA,KAAZ,CAAX;AAAA,CAAd;;;AAEPD,KAAK,CAACE,SAAN,GAAkB,QAAlB;AAEAF,KAAK,CAACG,IAAN;EACEC,IAAI,EAAE,KADR;EAEEC,QAAQ,EAAE,UAFZ;EAGEC,QAAQ,EAAE,KAHZ;EAIEC,KAAK,EAAE,KAJT;EAKEC,OAAO,EAAE,KALX;EAMEC,SAAS,EAAE,KANb;EAOEC,KAAK,EAAE,KAPT;EAQEC,OAAO,EAAE,KARX;EASEC,GAAG,EAAE,QATP;EAUEC,IAAI,EAAE;AAVR,GAWG,aAXH,EAWmB,YAXnB;AAcAb,KAAK,CAACc,QAAN,GAAiB;EACfC,OAAO,EAAE;IAAEC,MAAM,EAAE;EAAV,CADM;EAEfC,OAAO,EAAE;IAAED,MAAM,EAAE;EAAV,CAFM;EAGfE,OAAO,EAAE;IAAEF,MAAM,EAAE;EAAV;AAHM,CAAjB"}
|
|
@@ -34,7 +34,7 @@ exports.Story = Story;
|
|
|
34
34
|
var format = 'DD/MM/YYYY';
|
|
35
35
|
var today = new Date();
|
|
36
36
|
Story.storyName = 'Calendar';
|
|
37
|
-
Story.args = {
|
|
37
|
+
Story.args = _defineProperty({
|
|
38
38
|
captions: (_captions = {}, _defineProperty(_captions, (0, _locale.dateFormat)((0, _locale.dateCalc)(today, 6, 'days'), {
|
|
39
39
|
format: format
|
|
40
40
|
}), '10.95$'), _defineProperty(_captions, (0, _locale.dateFormat)((0, _locale.dateCalc)(today, 8, 'days'), {
|
|
@@ -112,7 +112,7 @@ Story.args = {
|
|
|
112
112
|
|
|
113
113
|
return (_console4 = console).log.apply(_console4, ['<Calendar>::onScroll'].concat(props));
|
|
114
114
|
}
|
|
115
|
-
};
|
|
115
|
+
}, 'data-testid', 'test-story');
|
|
116
116
|
Story.argTypes = {
|
|
117
117
|
locale: {
|
|
118
118
|
options: ['es-ES', 'en-GB', 'ja-JP', 'it-IT', 'pt-PT'],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Calendar.stories.js","names":["title","Story","props","format","today","Date","storyName","args","captions","disabledDates","disabledPast","from","highlights","locale","months","range","rangeMaxDays","rangeMinDays","to","value","onChange","console","log","onFocus","onNavigation","onScroll","argTypes","options","control","type","defaultValue"],"sources":["../../../src/components/Calendar/Calendar.stories.jsx"],"sourcesContent":["import { dateCalc, dateFormat } from '@mirai/locale';\nimport * as React from 'react';\n\nimport { Calendar } from './Calendar';\n\nexport default { title: 'Components' };\n\nexport const Story = (props) => <Calendar {...props} />;\n\nconst format = 'DD/MM/YYYY';\nconst today = new Date();\n\nStory.storyName = 'Calendar';\n\nStory.args = {\n captions: {\n [dateFormat(dateCalc(today, 6, 'days'), { format })]: '10.95$',\n [dateFormat(dateCalc(today, 8, 'days'), { format })]: '129510.95$',\n [dateFormat(dateCalc(today, 16, 'days'), { format })]: '10.95$',\n [dateFormat(dateCalc(today, 18, 'days'), { format })]: '9.95$',\n },\n disabledDates: [\n dateFormat(dateCalc(today, 20, 'days'), { format }),\n dateFormat(dateCalc(today, 21, 'days'), { format }),\n dateFormat(dateCalc(today, 22, 'days'), { format }),\n dateFormat(dateCalc(today, 23, 'days'), { format }),\n dateFormat(dateCalc(today, 24, 'days'), { format }),\n ],\n disabledPast: true,\n format,\n from: '',\n highlights: [\n dateFormat(dateCalc(today, 6, 'days'), { format }),\n dateFormat(dateCalc(today, 10, 'days'), { format }),\n dateFormat(dateCalc(today, 12, 'days'), { format }),\n dateFormat(dateCalc(today, 14, 'days'), { format }),\n dateFormat(dateCalc(today, 16, 'days'), { format }),\n ],\n locale: 'es-ES',\n months: 2,\n range: true,\n rangeMaxDays: 7,\n rangeMinDays: 3,\n to: dateFormat(dateCalc(today, 6, 'months')),\n value: [],\n onChange: (...props) => console.log('<Calendar>::onChange', ...props),\n onFocus: (...props) => console.log('<Calendar>::onFocus', ...props),\n onNavigation: (...props) => console.log('<Calendar>::onNavigation', ...props),\n onScroll: (...props) => console.log('<Calendar>::onScroll', ...props),\n};\n\nStory.argTypes = {\n locale: {\n options: ['es-ES', 'en-GB', 'ja-JP', 'it-IT', 'pt-PT'],\n control: { type: 'select' },\n defaultValue: 'es-ES',\n },\n};\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AAEA;;;;;;;;;;eAEe;EAAEA,KAAK,EAAE;AAAT,C;;;AAER,IAAMC,KAAK,GAAG,SAARA,KAAQ,CAACC,KAAD;EAAA,oBAAW,oBAAC,kBAAD,EAAcA,KAAd,CAAX;AAAA,CAAd;;;AAEP,IAAMC,MAAM,GAAG,YAAf;AACA,IAAMC,KAAK,GAAG,IAAIC,IAAJ,EAAd;AAEAJ,KAAK,CAACK,SAAN,GAAkB,UAAlB;AAEAL,KAAK,CAACM,IAAN
|
|
1
|
+
{"version":3,"file":"Calendar.stories.js","names":["title","Story","props","format","today","Date","storyName","args","captions","disabledDates","disabledPast","from","highlights","locale","months","range","rangeMaxDays","rangeMinDays","to","value","onChange","console","log","onFocus","onNavigation","onScroll","argTypes","options","control","type","defaultValue"],"sources":["../../../src/components/Calendar/Calendar.stories.jsx"],"sourcesContent":["import { dateCalc, dateFormat } from '@mirai/locale';\nimport * as React from 'react';\n\nimport { Calendar } from './Calendar';\n\nexport default { title: 'Components' };\n\nexport const Story = (props) => <Calendar {...props} />;\n\nconst format = 'DD/MM/YYYY';\nconst today = new Date();\n\nStory.storyName = 'Calendar';\n\nStory.args = {\n captions: {\n [dateFormat(dateCalc(today, 6, 'days'), { format })]: '10.95$',\n [dateFormat(dateCalc(today, 8, 'days'), { format })]: '129510.95$',\n [dateFormat(dateCalc(today, 16, 'days'), { format })]: '10.95$',\n [dateFormat(dateCalc(today, 18, 'days'), { format })]: '9.95$',\n },\n disabledDates: [\n dateFormat(dateCalc(today, 20, 'days'), { format }),\n dateFormat(dateCalc(today, 21, 'days'), { format }),\n dateFormat(dateCalc(today, 22, 'days'), { format }),\n dateFormat(dateCalc(today, 23, 'days'), { format }),\n dateFormat(dateCalc(today, 24, 'days'), { format }),\n ],\n disabledPast: true,\n format,\n from: '',\n highlights: [\n dateFormat(dateCalc(today, 6, 'days'), { format }),\n dateFormat(dateCalc(today, 10, 'days'), { format }),\n dateFormat(dateCalc(today, 12, 'days'), { format }),\n dateFormat(dateCalc(today, 14, 'days'), { format }),\n dateFormat(dateCalc(today, 16, 'days'), { format }),\n ],\n locale: 'es-ES',\n months: 2,\n range: true,\n rangeMaxDays: 7,\n rangeMinDays: 3,\n to: dateFormat(dateCalc(today, 6, 'months')),\n value: [],\n onChange: (...props) => console.log('<Calendar>::onChange', ...props),\n onFocus: (...props) => console.log('<Calendar>::onFocus', ...props),\n onNavigation: (...props) => console.log('<Calendar>::onNavigation', ...props),\n onScroll: (...props) => console.log('<Calendar>::onScroll', ...props),\n ['data-testid']: 'test-story',\n};\n\nStory.argTypes = {\n locale: {\n options: ['es-ES', 'en-GB', 'ja-JP', 'it-IT', 'pt-PT'],\n control: { type: 'select' },\n defaultValue: 'es-ES',\n },\n};\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AAEA;;;;;;;;;;eAEe;EAAEA,KAAK,EAAE;AAAT,C;;;AAER,IAAMC,KAAK,GAAG,SAARA,KAAQ,CAACC,KAAD;EAAA,oBAAW,oBAAC,kBAAD,EAAcA,KAAd,CAAX;AAAA,CAAd;;;AAEP,IAAMC,MAAM,GAAG,YAAf;AACA,IAAMC,KAAK,GAAG,IAAIC,IAAJ,EAAd;AAEAJ,KAAK,CAACK,SAAN,GAAkB,UAAlB;AAEAL,KAAK,CAACM,IAAN;EACEC,QAAQ,8CACL,wBAAW,sBAASJ,KAAT,EAAgB,CAAhB,EAAmB,MAAnB,CAAX,EAAuC;IAAED,MAAM,EAANA;EAAF,CAAvC,CADK,EACgD,QADhD,8BAEL,wBAAW,sBAASC,KAAT,EAAgB,CAAhB,EAAmB,MAAnB,CAAX,EAAuC;IAAED,MAAM,EAANA;EAAF,CAAvC,CAFK,EAEgD,YAFhD,8BAGL,wBAAW,sBAASC,KAAT,EAAgB,EAAhB,EAAoB,MAApB,CAAX,EAAwC;IAAED,MAAM,EAANA;EAAF,CAAxC,CAHK,EAGiD,QAHjD,8BAIL,wBAAW,sBAASC,KAAT,EAAgB,EAAhB,EAAoB,MAApB,CAAX,EAAwC;IAAED,MAAM,EAANA;EAAF,CAAxC,CAJK,EAIiD,OAJjD,aADV;EAOEM,aAAa,EAAE,CACb,wBAAW,sBAASL,KAAT,EAAgB,EAAhB,EAAoB,MAApB,CAAX,EAAwC;IAAED,MAAM,EAANA;EAAF,CAAxC,CADa,EAEb,wBAAW,sBAASC,KAAT,EAAgB,EAAhB,EAAoB,MAApB,CAAX,EAAwC;IAAED,MAAM,EAANA;EAAF,CAAxC,CAFa,EAGb,wBAAW,sBAASC,KAAT,EAAgB,EAAhB,EAAoB,MAApB,CAAX,EAAwC;IAAED,MAAM,EAANA;EAAF,CAAxC,CAHa,EAIb,wBAAW,sBAASC,KAAT,EAAgB,EAAhB,EAAoB,MAApB,CAAX,EAAwC;IAAED,MAAM,EAANA;EAAF,CAAxC,CAJa,EAKb,wBAAW,sBAASC,KAAT,EAAgB,EAAhB,EAAoB,MAApB,CAAX,EAAwC;IAAED,MAAM,EAANA;EAAF,CAAxC,CALa,CAPjB;EAcEO,YAAY,EAAE,IAdhB;EAeEP,MAAM,EAANA,MAfF;EAgBEQ,IAAI,EAAE,EAhBR;EAiBEC,UAAU,EAAE,CACV,wBAAW,sBAASR,KAAT,EAAgB,CAAhB,EAAmB,MAAnB,CAAX,EAAuC;IAAED,MAAM,EAANA;EAAF,CAAvC,CADU,EAEV,wBAAW,sBAASC,KAAT,EAAgB,EAAhB,EAAoB,MAApB,CAAX,EAAwC;IAAED,MAAM,EAANA;EAAF,CAAxC,CAFU,EAGV,wBAAW,sBAASC,KAAT,EAAgB,EAAhB,EAAoB,MAApB,CAAX,EAAwC;IAAED,MAAM,EAANA;EAAF,CAAxC,CAHU,EAIV,wBAAW,sBAASC,KAAT,EAAgB,EAAhB,EAAoB,MAApB,CAAX,EAAwC;IAAED,MAAM,EAANA;EAAF,CAAxC,CAJU,EAKV,wBAAW,sBAASC,KAAT,EAAgB,EAAhB,EAAoB,MAApB,CAAX,EAAwC;IAAED,MAAM,EAANA;EAAF,CAAxC,CALU,CAjBd;EAwBEU,MAAM,EAAE,OAxBV;EAyBEC,MAAM,EAAE,CAzBV;EA0BEC,KAAK,EAAE,IA1BT;EA2BEC,YAAY,EAAE,CA3BhB;EA4BEC,YAAY,EAAE,CA5BhB;EA6BEC,EAAE,EAAE,wBAAW,sBAASd,KAAT,EAAgB,CAAhB,EAAmB,QAAnB,CAAX,CA7BN;EA8BEe,KAAK,EAAE,EA9BT;EA+BEC,QAAQ,EAAE;IAAA;;IAAA,kCAAIlB,KAAJ;MAAIA,KAAJ;IAAA;;IAAA,OAAc,YAAAmB,OAAO,EAACC,GAAR,kBAAY,sBAAZ,SAAuCpB,KAAvC,EAAd;EAAA,CA/BZ;EAgCEqB,OAAO,EAAE;IAAA;;IAAA,mCAAIrB,KAAJ;MAAIA,KAAJ;IAAA;;IAAA,OAAc,aAAAmB,OAAO,EAACC,GAAR,mBAAY,qBAAZ,SAAsCpB,KAAtC,EAAd;EAAA,CAhCX;EAiCEsB,YAAY,EAAE;IAAA;;IAAA,mCAAItB,KAAJ;MAAIA,KAAJ;IAAA;;IAAA,OAAc,aAAAmB,OAAO,EAACC,GAAR,mBAAY,0BAAZ,SAA2CpB,KAA3C,EAAd;EAAA,CAjChB;EAkCEuB,QAAQ,EAAE;IAAA;;IAAA,mCAAIvB,KAAJ;MAAIA,KAAJ;IAAA;;IAAA,OAAc,aAAAmB,OAAO,EAACC,GAAR,mBAAY,sBAAZ,SAAuCpB,KAAvC,EAAd;EAAA;AAlCZ,GAmCG,aAnCH,EAmCmB,YAnCnB;AAsCAD,KAAK,CAACyB,QAAN,GAAiB;EACfb,MAAM,EAAE;IACNc,OAAO,EAAE,CAAC,OAAD,EAAU,OAAV,EAAmB,OAAnB,EAA4B,OAA5B,EAAqC,OAArC,CADH;IAENC,OAAO,EAAE;MAAEC,IAAI,EAAE;IAAR,CAFH;IAGNC,YAAY,EAAE;EAHR;AADO,CAAjB"}
|
|
@@ -17,6 +17,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
17
17
|
|
|
18
18
|
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; }
|
|
19
19
|
|
|
20
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
21
|
+
|
|
20
22
|
var _default = {
|
|
21
23
|
title: 'Components'
|
|
22
24
|
};
|
|
@@ -43,7 +45,7 @@ Story.args = {
|
|
|
43
45
|
showErrors: false,
|
|
44
46
|
validateOnMount: false
|
|
45
47
|
};
|
|
46
|
-
Story.argTypes = {
|
|
48
|
+
Story.argTypes = _defineProperty({
|
|
47
49
|
onBlur: {
|
|
48
50
|
action: 'onBlur'
|
|
49
51
|
},
|
|
@@ -59,5 +61,5 @@ Story.argTypes = {
|
|
|
59
61
|
onSubmit: {
|
|
60
62
|
action: 'onSubmit'
|
|
61
63
|
}
|
|
62
|
-
};
|
|
64
|
+
}, 'data-testid', 'test-story');
|
|
63
65
|
//# sourceMappingURL=Form.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Form.stories.js","names":["title","Story","props","storyName","args","debounce","schema","showErrors","validateOnMount","argTypes","onBlur","action","onChange","onError","onFocus","onSubmit"],"sources":["../../../src/components/Form/Form.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Button, InputText } from '../';\nimport { Form } from './Form';\n\nexport default { title: 'Components' };\n\nexport const Story = (props) => (\n <Form {...props}>\n <InputText name=\"username\" label=\"username\" />\n <InputText name=\"password\" label=\"password\" type=\"password\" />\n <Button wide>Submit</Button>\n </Form>\n);\n\nStory.storyName = 'Form';\n\nStory.args = {\n debounce: 0,\n schema: {},\n showErrors: false,\n validateOnMount: false,\n};\n\nStory.argTypes = {\n onBlur: { action: 'onBlur' },\n onChange: { action: 'onBlur' },\n onError: { action: 'onError' },\n onFocus: { action: 'onFocus' },\n onSubmit: { action: 'onSubmit' },\n};\n"],"mappings":";;;;;;;;;AAAA;;AAEA;;AACA
|
|
1
|
+
{"version":3,"file":"Form.stories.js","names":["title","Story","props","storyName","args","debounce","schema","showErrors","validateOnMount","argTypes","onBlur","action","onChange","onError","onFocus","onSubmit"],"sources":["../../../src/components/Form/Form.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Button, InputText } from '../';\nimport { Form } from './Form';\n\nexport default { title: 'Components' };\n\nexport const Story = (props) => (\n <Form {...props}>\n <InputText name=\"username\" label=\"username\" />\n <InputText name=\"password\" label=\"password\" type=\"password\" />\n <Button wide>Submit</Button>\n </Form>\n);\n\nStory.storyName = 'Form';\n\nStory.args = {\n debounce: 0,\n schema: {},\n showErrors: false,\n validateOnMount: false,\n};\n\nStory.argTypes = {\n onBlur: { action: 'onBlur' },\n onChange: { action: 'onBlur' },\n onError: { action: 'onError' },\n onFocus: { action: 'onFocus' },\n onSubmit: { action: 'onSubmit' },\n ['data-testid']: 'test-story',\n};\n"],"mappings":";;;;;;;;;AAAA;;AAEA;;AACA;;;;;;;;eAEe;EAAEA,KAAK,EAAE;AAAT,C;;;AAER,IAAMC,KAAK,GAAG,SAARA,KAAQ,CAACC,KAAD;EAAA,oBACnB,oBAAC,UAAD,EAAUA,KAAV,eACE,oBAAC,WAAD;IAAW,IAAI,EAAC,UAAhB;IAA2B,KAAK,EAAC;EAAjC,EADF,eAEE,oBAAC,WAAD;IAAW,IAAI,EAAC,UAAhB;IAA2B,KAAK,EAAC,UAAjC;IAA4C,IAAI,EAAC;EAAjD,EAFF,eAGE,oBAAC,QAAD;IAAQ,IAAI;EAAZ,YAHF,CADmB;AAAA,CAAd;;;AAQPD,KAAK,CAACE,SAAN,GAAkB,MAAlB;AAEAF,KAAK,CAACG,IAAN,GAAa;EACXC,QAAQ,EAAE,CADC;EAEXC,MAAM,EAAE,EAFG;EAGXC,UAAU,EAAE,KAHD;EAIXC,eAAe,EAAE;AAJN,CAAb;AAOAP,KAAK,CAACQ,QAAN;EACEC,MAAM,EAAE;IAAEC,MAAM,EAAE;EAAV,CADV;EAEEC,QAAQ,EAAE;IAAED,MAAM,EAAE;EAAV,CAFZ;EAGEE,OAAO,EAAE;IAAEF,MAAM,EAAE;EAAV,CAHX;EAIEG,OAAO,EAAE;IAAEH,MAAM,EAAE;EAAV,CAJX;EAKEI,QAAQ,EAAE;IAAEJ,MAAM,EAAE;EAAV;AALZ,GAMG,aANH,EAMmB,YANnB"}
|
|
@@ -15,6 +15,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
15
15
|
|
|
16
16
|
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; }
|
|
17
17
|
|
|
18
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
19
|
+
|
|
18
20
|
var _default = {
|
|
19
21
|
title: 'Components'
|
|
20
22
|
};
|
|
@@ -26,7 +28,7 @@ var Story = function Story(props) {
|
|
|
26
28
|
|
|
27
29
|
exports.Story = Story;
|
|
28
30
|
Story.storyName = 'InputDate';
|
|
29
|
-
Story.args = {
|
|
31
|
+
Story.args = _defineProperty({
|
|
30
32
|
disabled: false,
|
|
31
33
|
error: false,
|
|
32
34
|
format: 'DD/MM/YYYY',
|
|
@@ -73,6 +75,6 @@ Story.args = {
|
|
|
73
75
|
|
|
74
76
|
return (_console4 = console).log.apply(_console4, ['<InputDate>::onLeave'].concat(props));
|
|
75
77
|
}
|
|
76
|
-
};
|
|
78
|
+
}, 'data-testid', 'test-story');
|
|
77
79
|
Story.argTypes = {};
|
|
78
80
|
//# sourceMappingURL=InputDate.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputDate.stories.js","names":["title","Story","props","storyName","args","disabled","error","format","hint","label","max","min","name","required","value","onChange","console","log","onError","onEnter","onLeave","argTypes"],"sources":["../../../src/components/InputDate/InputDate.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { InputDate } from './InputDate';\n\nexport default { title: 'Components' };\n\nexport const Story = (props) => <InputDate {...props} />;\n\nStory.storyName = 'InputDate';\n\nStory.args = {\n disabled: false,\n error: false,\n format: 'DD/MM/YYYY',\n hint: 'hint',\n label: 'label',\n max: '10/04/2080',\n min: '10/04/1980',\n name: 'name',\n required: false,\n value: '06/05/2020',\n onChange: (...props) => console.log('<InputDate>::onBlur', ...props),\n onError: (...props) => console.log('<InputDate>::onError', ...props),\n onEnter: (...props) => console.log('<InputDate>::onEnter', ...props),\n onLeave: (...props) => console.log('<InputDate>::onLeave', ...props),\n};\n\nStory.argTypes = {};\n"],"mappings":";;;;;;;;;AAAA;;AAEA
|
|
1
|
+
{"version":3,"file":"InputDate.stories.js","names":["title","Story","props","storyName","args","disabled","error","format","hint","label","max","min","name","required","value","onChange","console","log","onError","onEnter","onLeave","argTypes"],"sources":["../../../src/components/InputDate/InputDate.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { InputDate } from './InputDate';\n\nexport default { title: 'Components' };\n\nexport const Story = (props) => <InputDate {...props} />;\n\nStory.storyName = 'InputDate';\n\nStory.args = {\n disabled: false,\n error: false,\n format: 'DD/MM/YYYY',\n hint: 'hint',\n label: 'label',\n max: '10/04/2080',\n min: '10/04/1980',\n name: 'name',\n required: false,\n value: '06/05/2020',\n onChange: (...props) => console.log('<InputDate>::onBlur', ...props),\n onError: (...props) => console.log('<InputDate>::onError', ...props),\n onEnter: (...props) => console.log('<InputDate>::onEnter', ...props),\n onLeave: (...props) => console.log('<InputDate>::onLeave', ...props),\n ['data-testid']: 'test-story',\n};\n\nStory.argTypes = {};\n"],"mappings":";;;;;;;;;AAAA;;AAEA;;;;;;;;eAEe;EAAEA,KAAK,EAAE;AAAT,C;;;AAER,IAAMC,KAAK,GAAG,SAARA,KAAQ,CAACC,KAAD;EAAA,oBAAW,oBAAC,oBAAD,EAAeA,KAAf,CAAX;AAAA,CAAd;;;AAEPD,KAAK,CAACE,SAAN,GAAkB,WAAlB;AAEAF,KAAK,CAACG,IAAN;EACEC,QAAQ,EAAE,KADZ;EAEEC,KAAK,EAAE,KAFT;EAGEC,MAAM,EAAE,YAHV;EAIEC,IAAI,EAAE,MAJR;EAKEC,KAAK,EAAE,OALT;EAMEC,GAAG,EAAE,YANP;EAOEC,GAAG,EAAE,YAPP;EAQEC,IAAI,EAAE,MARR;EASEC,QAAQ,EAAE,KATZ;EAUEC,KAAK,EAAE,YAVT;EAWEC,QAAQ,EAAE;IAAA;;IAAA,kCAAIb,KAAJ;MAAIA,KAAJ;IAAA;;IAAA,OAAc,YAAAc,OAAO,EAACC,GAAR,kBAAY,qBAAZ,SAAsCf,KAAtC,EAAd;EAAA,CAXZ;EAYEgB,OAAO,EAAE;IAAA;;IAAA,mCAAIhB,KAAJ;MAAIA,KAAJ;IAAA;;IAAA,OAAc,aAAAc,OAAO,EAACC,GAAR,mBAAY,sBAAZ,SAAuCf,KAAvC,EAAd;EAAA,CAZX;EAaEiB,OAAO,EAAE;IAAA;;IAAA,mCAAIjB,KAAJ;MAAIA,KAAJ;IAAA;;IAAA,OAAc,aAAAc,OAAO,EAACC,GAAR,mBAAY,sBAAZ,SAAuCf,KAAvC,EAAd;EAAA,CAbX;EAcEkB,OAAO,EAAE;IAAA;;IAAA,mCAAIlB,KAAJ;MAAIA,KAAJ;IAAA;;IAAA,OAAc,aAAAc,OAAO,EAACC,GAAR,mBAAY,sBAAZ,SAAuCf,KAAvC,EAAd;EAAA;AAdX,GAeG,aAfH,EAemB,YAfnB;AAkBAD,KAAK,CAACoB,QAAN,GAAiB,EAAjB"}
|
|
@@ -15,6 +15,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
15
15
|
|
|
16
16
|
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; }
|
|
17
17
|
|
|
18
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
19
|
+
|
|
18
20
|
var _default = {
|
|
19
21
|
title: 'Components'
|
|
20
22
|
};
|
|
@@ -26,7 +28,7 @@ var Story = function Story(props) {
|
|
|
26
28
|
|
|
27
29
|
exports.Story = Story;
|
|
28
30
|
Story.storyName = 'InputNumber';
|
|
29
|
-
Story.args = {
|
|
31
|
+
Story.args = _defineProperty({
|
|
30
32
|
disabled: false,
|
|
31
33
|
hint: 'hint',
|
|
32
34
|
label: 'label',
|
|
@@ -45,6 +47,6 @@ Story.args = {
|
|
|
45
47
|
|
|
46
48
|
return (_console = console).log.apply(_console, ['<InputNumber>::onChange'].concat(props));
|
|
47
49
|
}
|
|
48
|
-
};
|
|
50
|
+
}, 'data-testid', 'test-story');
|
|
49
51
|
Story.argTypes = {};
|
|
50
52
|
//# sourceMappingURL=InputNumber.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputNumber.stories.js","names":["title","Story","props","storyName","args","disabled","hint","label","max","min","name","rounded","step","value","onChange","console","log","argTypes"],"sources":["../../../src/components/InputNumber/InputNumber.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { InputNumber } from './InputNumber';\n\nexport default { title: 'Components' };\n\nexport const Story = (props) => <InputNumber {...props} />;\n\nStory.storyName = 'InputNumber';\n\nStory.args = {\n disabled: false,\n hint: 'hint',\n label: 'label',\n max: 8,\n min: 1,\n name: 'name',\n rounded: false,\n step: 1,\n value: 1,\n onChange: (...props) => console.log('<InputNumber>::onChange', ...props),\n};\n\nStory.argTypes = {};\n"],"mappings":";;;;;;;;;AAAA;;AAEA
|
|
1
|
+
{"version":3,"file":"InputNumber.stories.js","names":["title","Story","props","storyName","args","disabled","hint","label","max","min","name","rounded","step","value","onChange","console","log","argTypes"],"sources":["../../../src/components/InputNumber/InputNumber.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { InputNumber } from './InputNumber';\n\nexport default { title: 'Components' };\n\nexport const Story = (props) => <InputNumber {...props} />;\n\nStory.storyName = 'InputNumber';\n\nStory.args = {\n disabled: false,\n hint: 'hint',\n label: 'label',\n max: 8,\n min: 1,\n name: 'name',\n rounded: false,\n step: 1,\n value: 1,\n onChange: (...props) => console.log('<InputNumber>::onChange', ...props),\n ['data-testid']: 'test-story',\n};\n\nStory.argTypes = {};\n"],"mappings":";;;;;;;;;AAAA;;AAEA;;;;;;;;eAEe;EAAEA,KAAK,EAAE;AAAT,C;;;AAER,IAAMC,KAAK,GAAG,SAARA,KAAQ,CAACC,KAAD;EAAA,oBAAW,oBAAC,wBAAD,EAAiBA,KAAjB,CAAX;AAAA,CAAd;;;AAEPD,KAAK,CAACE,SAAN,GAAkB,aAAlB;AAEAF,KAAK,CAACG,IAAN;EACEC,QAAQ,EAAE,KADZ;EAEEC,IAAI,EAAE,MAFR;EAGEC,KAAK,EAAE,OAHT;EAIEC,GAAG,EAAE,CAJP;EAKEC,GAAG,EAAE,CALP;EAMEC,IAAI,EAAE,MANR;EAOEC,OAAO,EAAE,KAPX;EAQEC,IAAI,EAAE,CARR;EASEC,KAAK,EAAE,CATT;EAUEC,QAAQ,EAAE;IAAA;;IAAA,kCAAIZ,KAAJ;MAAIA,KAAJ;IAAA;;IAAA,OAAc,YAAAa,OAAO,EAACC,GAAR,kBAAY,yBAAZ,SAA0Cd,KAA1C,EAAd;EAAA;AAVZ,GAWG,aAXH,EAWmB,YAXnB;AAcAD,KAAK,CAACgB,QAAN,GAAiB,EAAjB"}
|
|
@@ -17,6 +17,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
17
17
|
|
|
18
18
|
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; }
|
|
19
19
|
|
|
20
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
21
|
+
|
|
20
22
|
var _default = {
|
|
21
23
|
title: 'Components'
|
|
22
24
|
};
|
|
@@ -28,7 +30,7 @@ var Story = function Story(props) {
|
|
|
28
30
|
|
|
29
31
|
exports.Story = Story;
|
|
30
32
|
Story.storyName = 'InputOption';
|
|
31
|
-
Story.args = {
|
|
33
|
+
Story.args = _defineProperty({
|
|
32
34
|
checked: true,
|
|
33
35
|
disabled: false,
|
|
34
36
|
indeterminate: false,
|
|
@@ -46,7 +48,7 @@ Story.args = {
|
|
|
46
48
|
|
|
47
49
|
return (_console = console).log.apply(_console, ['<InputOption>::onChange'].concat(props));
|
|
48
50
|
}
|
|
49
|
-
};
|
|
51
|
+
}, 'data-testid', 'test-story');
|
|
50
52
|
Story.argTypes = {
|
|
51
53
|
type: {
|
|
52
54
|
options: [_InputOption2.CHECKBOX, _InputOption2.RADIO, _InputOption2.SWITCH],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputOption.stories.js","names":["title","Story","props","storyName","args","checked","disabled","indeterminate","label","name","reverse","type","value","onChange","console","log","argTypes","options","CHECKBOX","RADIO","SWITCH","control","defaultValue"],"sources":["../../../src/components/InputOption/InputOption.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { InputOption } from './InputOption';\nimport { CHECKBOX, RADIO, SWITCH } from './InputOption.constants';\n\nexport default { title: 'Components' };\n\nexport const Story = (props) => <InputOption {...props} />;\n\nStory.storyName = 'InputOption';\n\nStory.args = {\n checked: true,\n disabled: false,\n indeterminate: false,\n label: 'label',\n name: 'name',\n reverse: false,\n type: 'checkbox',\n value: 'value',\n onChange: (...props) => console.log('<InputOption>::onChange', ...props),\n};\n\nStory.argTypes = {\n type: {\n options: [CHECKBOX, RADIO, SWITCH],\n control: { type: 'select' },\n defaultValue: CHECKBOX,\n },\n};\n"],"mappings":";;;;;;;;;AAAA;;AAEA;;AACA
|
|
1
|
+
{"version":3,"file":"InputOption.stories.js","names":["title","Story","props","storyName","args","checked","disabled","indeterminate","label","name","reverse","type","value","onChange","console","log","argTypes","options","CHECKBOX","RADIO","SWITCH","control","defaultValue"],"sources":["../../../src/components/InputOption/InputOption.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { InputOption } from './InputOption';\nimport { CHECKBOX, RADIO, SWITCH } from './InputOption.constants';\n\nexport default { title: 'Components' };\n\nexport const Story = (props) => <InputOption {...props} />;\n\nStory.storyName = 'InputOption';\n\nStory.args = {\n checked: true,\n disabled: false,\n indeterminate: false,\n label: 'label',\n name: 'name',\n reverse: false,\n type: 'checkbox',\n value: 'value',\n onChange: (...props) => console.log('<InputOption>::onChange', ...props),\n ['data-testid']: 'test-story',\n};\n\nStory.argTypes = {\n type: {\n options: [CHECKBOX, RADIO, SWITCH],\n control: { type: 'select' },\n defaultValue: CHECKBOX,\n },\n};\n"],"mappings":";;;;;;;;;AAAA;;AAEA;;AACA;;;;;;;;eAEe;EAAEA,KAAK,EAAE;AAAT,C;;;AAER,IAAMC,KAAK,GAAG,SAARA,KAAQ,CAACC,KAAD;EAAA,oBAAW,oBAAC,wBAAD,EAAiBA,KAAjB,CAAX;AAAA,CAAd;;;AAEPD,KAAK,CAACE,SAAN,GAAkB,aAAlB;AAEAF,KAAK,CAACG,IAAN;EACEC,OAAO,EAAE,IADX;EAEEC,QAAQ,EAAE,KAFZ;EAGEC,aAAa,EAAE,KAHjB;EAIEC,KAAK,EAAE,OAJT;EAKEC,IAAI,EAAE,MALR;EAMEC,OAAO,EAAE,KANX;EAOEC,IAAI,EAAE,UAPR;EAQEC,KAAK,EAAE,OART;EASEC,QAAQ,EAAE;IAAA;;IAAA,kCAAIX,KAAJ;MAAIA,KAAJ;IAAA;;IAAA,OAAc,YAAAY,OAAO,EAACC,GAAR,kBAAY,yBAAZ,SAA0Cb,KAA1C,EAAd;EAAA;AATZ,GAUG,aAVH,EAUmB,YAVnB;AAaAD,KAAK,CAACe,QAAN,GAAiB;EACfL,IAAI,EAAE;IACJM,OAAO,EAAE,CAACC,sBAAD,EAAWC,mBAAX,EAAkBC,oBAAlB,CADL;IAEJC,OAAO,EAAE;MAAEV,IAAI,EAAE;IAAR,CAFL;IAGJW,YAAY,EAAEJ;EAHV;AADS,CAAjB"}
|
|
@@ -15,6 +15,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
15
15
|
|
|
16
16
|
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; }
|
|
17
17
|
|
|
18
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
19
|
+
|
|
18
20
|
var _default = {
|
|
19
21
|
title: 'Components'
|
|
20
22
|
};
|
|
@@ -26,7 +28,7 @@ var Story = function Story(props) {
|
|
|
26
28
|
|
|
27
29
|
exports.Story = Story;
|
|
28
30
|
Story.storyName = 'InputSelect';
|
|
29
|
-
Story.args = {
|
|
31
|
+
Story.args = _defineProperty({
|
|
30
32
|
disabled: false,
|
|
31
33
|
error: false,
|
|
32
34
|
hint: 'hint',
|
|
@@ -61,6 +63,6 @@ Story.args = {
|
|
|
61
63
|
|
|
62
64
|
return (_console3 = console).log.apply(_console3, ['<InputSelect>::onLeave'].concat(props));
|
|
63
65
|
}
|
|
64
|
-
};
|
|
66
|
+
}, 'data-testid', 'test-story');
|
|
65
67
|
Story.argTypes = {};
|
|
66
68
|
//# sourceMappingURL=InputSelect.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputSelect.stories.js","names":["title","Story","props","storyName","args","disabled","error","hint","label","name","options","value","onChange","console","log","onEnter","onLeave","argTypes"],"sources":["../../../src/components/InputSelect/InputSelect.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { InputSelect } from './InputSelect';\n\nexport default { title: 'Components' };\n\nexport const Story = (props) => <InputSelect {...props} />;\n\nStory.storyName = 'InputSelect';\n\nStory.args = {\n disabled: false,\n error: false,\n hint: 'hint',\n label: 'label',\n name: 'name',\n options: ['one', 'two', 'three', 'four', 'five'],\n value: 'two',\n onChange: (...props) => console.log('<InputSelect>::onChange', ...props),\n onEnter: (...props) => console.log('<InputSelect>::onEnter', ...props),\n onLeave: (...props) => console.log('<InputSelect>::onLeave', ...props),\n};\n\nStory.argTypes = {};\n"],"mappings":";;;;;;;;;AAAA;;AAEA
|
|
1
|
+
{"version":3,"file":"InputSelect.stories.js","names":["title","Story","props","storyName","args","disabled","error","hint","label","name","options","value","onChange","console","log","onEnter","onLeave","argTypes"],"sources":["../../../src/components/InputSelect/InputSelect.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { InputSelect } from './InputSelect';\n\nexport default { title: 'Components' };\n\nexport const Story = (props) => <InputSelect {...props} />;\n\nStory.storyName = 'InputSelect';\n\nStory.args = {\n disabled: false,\n error: false,\n hint: 'hint',\n label: 'label',\n name: 'name',\n options: ['one', 'two', 'three', 'four', 'five'],\n value: 'two',\n onChange: (...props) => console.log('<InputSelect>::onChange', ...props),\n onEnter: (...props) => console.log('<InputSelect>::onEnter', ...props),\n onLeave: (...props) => console.log('<InputSelect>::onLeave', ...props),\n ['data-testid']: 'test-story',\n};\n\nStory.argTypes = {};\n"],"mappings":";;;;;;;;;AAAA;;AAEA;;;;;;;;eAEe;EAAEA,KAAK,EAAE;AAAT,C;;;AAER,IAAMC,KAAK,GAAG,SAARA,KAAQ,CAACC,KAAD;EAAA,oBAAW,oBAAC,wBAAD,EAAiBA,KAAjB,CAAX;AAAA,CAAd;;;AAEPD,KAAK,CAACE,SAAN,GAAkB,aAAlB;AAEAF,KAAK,CAACG,IAAN;EACEC,QAAQ,EAAE,KADZ;EAEEC,KAAK,EAAE,KAFT;EAGEC,IAAI,EAAE,MAHR;EAIEC,KAAK,EAAE,OAJT;EAKEC,IAAI,EAAE,MALR;EAMEC,OAAO,EAAE,CAAC,KAAD,EAAQ,KAAR,EAAe,OAAf,EAAwB,MAAxB,EAAgC,MAAhC,CANX;EAOEC,KAAK,EAAE,KAPT;EAQEC,QAAQ,EAAE;IAAA;;IAAA,kCAAIV,KAAJ;MAAIA,KAAJ;IAAA;;IAAA,OAAc,YAAAW,OAAO,EAACC,GAAR,kBAAY,yBAAZ,SAA0CZ,KAA1C,EAAd;EAAA,CARZ;EASEa,OAAO,EAAE;IAAA;;IAAA,mCAAIb,KAAJ;MAAIA,KAAJ;IAAA;;IAAA,OAAc,aAAAW,OAAO,EAACC,GAAR,mBAAY,wBAAZ,SAAyCZ,KAAzC,EAAd;EAAA,CATX;EAUEc,OAAO,EAAE;IAAA;;IAAA,mCAAId,KAAJ;MAAIA,KAAJ;IAAA;;IAAA,OAAc,aAAAW,OAAO,EAACC,GAAR,mBAAY,wBAAZ,SAAyCZ,KAAzC,EAAd;EAAA;AAVX,GAWG,aAXH,EAWmB,YAXnB;AAcAD,KAAK,CAACgB,QAAN,GAAiB,EAAjB"}
|
|
@@ -29,6 +29,8 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
29
29
|
|
|
30
30
|
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; }
|
|
31
31
|
|
|
32
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
33
|
+
|
|
32
34
|
function _extends() { _extends = Object.assign || 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); }
|
|
33
35
|
|
|
34
36
|
var _default = {
|
|
@@ -44,7 +46,7 @@ var Story = function Story(props) {
|
|
|
44
46
|
|
|
45
47
|
exports.Story = Story;
|
|
46
48
|
Story.storyName = 'InputText';
|
|
47
|
-
Story.args = {
|
|
49
|
+
Story.args = _defineProperty({
|
|
48
50
|
disabled: false,
|
|
49
51
|
error: false,
|
|
50
52
|
hint: 'hint',
|
|
@@ -84,7 +86,7 @@ Story.args = {
|
|
|
84
86
|
|
|
85
87
|
return (_console3 = console).log.apply(_console3, ['<InputText>::onLeave'].concat(props));
|
|
86
88
|
}
|
|
87
|
-
};
|
|
89
|
+
}, 'data-testid', 'test-story');
|
|
88
90
|
Story.argTypes = {
|
|
89
91
|
icon: {
|
|
90
92
|
options: [undefined].concat(_toConsumableArray(Object.keys(_primitives.ICON))),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputText.stories.js","names":["title","Story","props","ICON","icon","storyName","args","disabled","error","hint","undefined","label","multiLine","name","showState","success","type","value","warning","onChange","console","log","onEnter","onLeave","argTypes","options","Object","keys","control","defaultValue"],"sources":["../../../src/components/InputText/InputText.stories.jsx"],"sourcesContent":["/* eslint-disable react/prop-types */\nimport * as React from 'react';\n\nimport { ICON } from '../../primitives';\nimport { InputText } from './InputText';\n\nexport default { title: 'Components' };\n\nexport const Story = (props) => <InputText {...props} icon={ICON[props.icon]} />;\n\nStory.storyName = 'InputText';\n\nStory.args = {\n disabled: false,\n error: false,\n hint: 'hint',\n icon: undefined,\n label: 'label',\n multiLine: false,\n name: 'name',\n showState: true,\n success: false,\n type: 'text',\n value: 'value',\n warning: false,\n onChange: (...props) => console.log('<InputText>::onChange', ...props),\n onEnter: (...props) => console.log('<InputText>::onEnter', ...props),\n onLeave: (...props) => console.log('<InputText>::onLeave', ...props),\n};\n\nStory.argTypes = {\n icon: {\n options: [undefined, ...Object.keys(ICON)],\n control: { type: 'select' },\n defaultValue: undefined,\n },\n type: {\n options: ['text', 'password', 'number', 'email', 'date'],\n control: { type: 'select' },\n defaultValue: 'text',\n },\n};\n"],"mappings":";;;;;;;;;AACA;;AAEA;;AACA
|
|
1
|
+
{"version":3,"file":"InputText.stories.js","names":["title","Story","props","ICON","icon","storyName","args","disabled","error","hint","undefined","label","multiLine","name","showState","success","type","value","warning","onChange","console","log","onEnter","onLeave","argTypes","options","Object","keys","control","defaultValue"],"sources":["../../../src/components/InputText/InputText.stories.jsx"],"sourcesContent":["/* eslint-disable react/prop-types */\nimport * as React from 'react';\n\nimport { ICON } from '../../primitives';\nimport { InputText } from './InputText';\n\nexport default { title: 'Components' };\n\nexport const Story = (props) => <InputText {...props} icon={ICON[props.icon]} />;\n\nStory.storyName = 'InputText';\n\nStory.args = {\n disabled: false,\n error: false,\n hint: 'hint',\n icon: undefined,\n label: 'label',\n multiLine: false,\n name: 'name',\n showState: true,\n success: false,\n type: 'text',\n value: 'value',\n warning: false,\n onChange: (...props) => console.log('<InputText>::onChange', ...props),\n onEnter: (...props) => console.log('<InputText>::onEnter', ...props),\n onLeave: (...props) => console.log('<InputText>::onLeave', ...props),\n ['data-testid']: 'test-story',\n};\n\nStory.argTypes = {\n icon: {\n options: [undefined, ...Object.keys(ICON)],\n control: { type: 'select' },\n defaultValue: undefined,\n },\n type: {\n options: ['text', 'password', 'number', 'email', 'date'],\n control: { type: 'select' },\n defaultValue: 'text',\n },\n};\n"],"mappings":";;;;;;;;;AACA;;AAEA;;AACA;;;;;;;;;;;;;;;;;;;;;;eAEe;EAAEA,KAAK,EAAE;AAAT,C;;;AAER,IAAMC,KAAK,GAAG,SAARA,KAAQ,CAACC,KAAD;EAAA,oBAAW,oBAAC,oBAAD,eAAeA,KAAf;IAAsB,IAAI,EAAEC,iBAAKD,KAAK,CAACE,IAAX;EAA5B,GAAX;AAAA,CAAd;;;AAEPH,KAAK,CAACI,SAAN,GAAkB,WAAlB;AAEAJ,KAAK,CAACK,IAAN;EACEC,QAAQ,EAAE,KADZ;EAEEC,KAAK,EAAE,KAFT;EAGEC,IAAI,EAAE,MAHR;EAIEL,IAAI,EAAEM,SAJR;EAKEC,KAAK,EAAE,OALT;EAMEC,SAAS,EAAE,KANb;EAOEC,IAAI,EAAE,MAPR;EAQEC,SAAS,EAAE,IARb;EASEC,OAAO,EAAE,KATX;EAUEC,IAAI,EAAE,MAVR;EAWEC,KAAK,EAAE,OAXT;EAYEC,OAAO,EAAE,KAZX;EAaEC,QAAQ,EAAE;IAAA;;IAAA,kCAAIjB,KAAJ;MAAIA,KAAJ;IAAA;;IAAA,OAAc,YAAAkB,OAAO,EAACC,GAAR,kBAAY,uBAAZ,SAAwCnB,KAAxC,EAAd;EAAA,CAbZ;EAcEoB,OAAO,EAAE;IAAA;;IAAA,mCAAIpB,KAAJ;MAAIA,KAAJ;IAAA;;IAAA,OAAc,aAAAkB,OAAO,EAACC,GAAR,mBAAY,sBAAZ,SAAuCnB,KAAvC,EAAd;EAAA,CAdX;EAeEqB,OAAO,EAAE;IAAA;;IAAA,mCAAIrB,KAAJ;MAAIA,KAAJ;IAAA;;IAAA,OAAc,aAAAkB,OAAO,EAACC,GAAR,mBAAY,sBAAZ,SAAuCnB,KAAvC,EAAd;EAAA;AAfX,GAgBG,aAhBH,EAgBmB,YAhBnB;AAmBAD,KAAK,CAACuB,QAAN,GAAiB;EACfpB,IAAI,EAAE;IACJqB,OAAO,GAAGf,SAAH,4BAAiBgB,MAAM,CAACC,IAAP,CAAYxB,gBAAZ,CAAjB,EADH;IAEJyB,OAAO,EAAE;MAAEZ,IAAI,EAAE;IAAR,CAFL;IAGJa,YAAY,EAAEnB;EAHV,CADS;EAMfM,IAAI,EAAE;IACJS,OAAO,EAAE,CAAC,MAAD,EAAS,UAAT,EAAqB,QAArB,EAA+B,OAA/B,EAAwC,MAAxC,CADL;IAEJG,OAAO,EAAE;MAAEZ,IAAI,EAAE;IAAR,CAFL;IAGJa,YAAY,EAAE;EAHV;AANS,CAAjB"}
|
|
@@ -46,8 +46,9 @@ var Menu = function Menu(_ref) {
|
|
|
46
46
|
}), children, /*#__PURE__*/_react.default.createElement(_primitives.LayerContent, null, options.map(function () {
|
|
47
47
|
var option = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
48
48
|
var index = arguments.length > 1 ? arguments[1] : undefined;
|
|
49
|
-
return /*#__PURE__*/_react.default.createElement(Template, _extends({
|
|
50
|
-
"data-testid": others['data-testid'] ? "".concat(others['data-testid'], "-").concat(index) : undefined
|
|
49
|
+
return /*#__PURE__*/_react.default.createElement(Template, _extends({
|
|
50
|
+
"data-testid": others['data-testid'] ? "".concat(others['data-testid'], "-").concat(index) : undefined
|
|
51
|
+
}, option, {
|
|
51
52
|
key: index,
|
|
52
53
|
onPress: function onPress(event) {
|
|
53
54
|
return _onPress(option.value, event);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Menu.js","names":["Menu","children","options","Template","Option","visible","onPress","others","style","menu","className","map","option","index","undefined","event","value","displayName","propTypes","PropTypes","node","arrayOf","shape","disabled","bool","divider","icon","func","label","string","oneOfType","number"],"sources":["../../../src/components/Menu/Menu.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { styles } from '../../helpers';\nimport { Layer, LayerContent } from '../../primitives';\nimport style from './Menu.module.css';\nimport { Option } from './Menu.Option';\n\nconst Menu = ({ children, options = [], Template = Option, visible, onPress = () => {}, ...others }) => {\n return (\n <Layer\n forceRender={false}\n {...others}\n className={styles(style.menu, visible && style.visible, others.className)}\n visible={visible}\n >\n {children}\n <LayerContent>\n {options.map((option = {}, index) => (\n <Template\n
|
|
1
|
+
{"version":3,"file":"Menu.js","names":["Menu","children","options","Template","Option","visible","onPress","others","style","menu","className","map","option","index","undefined","event","value","displayName","propTypes","PropTypes","node","arrayOf","shape","disabled","bool","divider","icon","func","label","string","oneOfType","number"],"sources":["../../../src/components/Menu/Menu.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { styles } from '../../helpers';\nimport { Layer, LayerContent } from '../../primitives';\nimport style from './Menu.module.css';\nimport { Option } from './Menu.Option';\n\nconst Menu = ({ children, options = [], Template = Option, visible, onPress = () => {}, ...others }) => {\n return (\n <Layer\n forceRender={false}\n {...others}\n className={styles(style.menu, visible && style.visible, others.className)}\n visible={visible}\n >\n {children}\n <LayerContent>\n {options.map((option = {}, index) => (\n <Template\n data-testid={others['data-testid'] ? `${others['data-testid']}-${index}` : undefined}\n {...option}\n key={index}\n onPress={(event) => onPress(option.value, event)}\n />\n ))}\n </LayerContent>\n </Layer>\n );\n};\n\nMenu.displayName = 'Component:Menu';\n\nMenu.propTypes = {\n children: PropTypes.node,\n options: PropTypes.arrayOf(\n PropTypes.shape({\n children: PropTypes.node,\n disabled: PropTypes.bool,\n divider: PropTypes.bool,\n icon: PropTypes.func,\n label: PropTypes.string,\n value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n }),\n ),\n Template: PropTypes.node,\n visible: PropTypes.bool,\n onPress: PropTypes.func,\n};\n\nexport { Menu };\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;;;;;;;;;;;AAEA,IAAMA,IAAI,GAAG,SAAPA,IAAO,OAA2F;EAAA,IAAxFC,QAAwF,QAAxFA,QAAwF;EAAA,wBAA9EC,OAA8E;EAAA,IAA9EA,OAA8E,6BAApE,EAAoE;EAAA,yBAAhEC,QAAgE;EAAA,IAAhEA,QAAgE,8BAArDC,YAAqD;EAAA,IAA7CC,OAA6C,QAA7CA,OAA6C;EAAA,wBAApCC,OAAoC;EAAA,IAApCA,QAAoC,6BAA1B,YAAM,CAAE,CAAkB;EAAA,IAAbC,MAAa;;EACtG,oBACE,6BAAC,iBAAD;IACE,WAAW,EAAE;EADf,GAEMA,MAFN;IAGE,SAAS,EAAE,qBAAOC,oBAAMC,IAAb,EAAmBJ,OAAO,IAAIG,oBAAMH,OAApC,EAA6CE,MAAM,CAACG,SAApD,CAHb;IAIE,OAAO,EAAEL;EAJX,IAMGJ,QANH,eAOE,6BAAC,wBAAD,QACGC,OAAO,CAACS,GAAR,CAAY;IAAA,IAACC,MAAD,uEAAU,EAAV;IAAA,IAAcC,KAAd;IAAA,oBACX,6BAAC,QAAD;MACE,eAAaN,MAAM,CAAC,aAAD,CAAN,aAA2BA,MAAM,CAAC,aAAD,CAAjC,cAAoDM,KAApD,IAA8DC;IAD7E,GAEMF,MAFN;MAGE,GAAG,EAAEC,KAHP;MAIE,OAAO,EAAE,iBAACE,KAAD;QAAA,OAAWT,QAAO,CAACM,MAAM,CAACI,KAAR,EAAeD,KAAf,CAAlB;MAAA;IAJX,GADW;EAAA,CAAZ,CADH,CAPF,CADF;AAoBD,CArBD;;;AAuBAf,IAAI,CAACiB,WAAL,GAAmB,gBAAnB;AAEAjB,IAAI,CAACkB,SAAL,GAAiB;EACfjB,QAAQ,EAAEkB,mBAAUC,IADL;EAEflB,OAAO,EAAEiB,mBAAUE,OAAV,CACPF,mBAAUG,KAAV,CAAgB;IACdrB,QAAQ,EAAEkB,mBAAUC,IADN;IAEdG,QAAQ,EAAEJ,mBAAUK,IAFN;IAGdC,OAAO,EAAEN,mBAAUK,IAHL;IAIdE,IAAI,EAAEP,mBAAUQ,IAJF;IAKdC,KAAK,EAAET,mBAAUU,MALH;IAMdb,KAAK,EAAEG,mBAAUW,SAAV,CAAoB,CAACX,mBAAUU,MAAX,EAAmBV,mBAAUY,MAA7B,CAApB;EANO,CAAhB,CADO,CAFM;EAYf5B,QAAQ,EAAEgB,mBAAUC,IAZL;EAaff,OAAO,EAAEc,mBAAUK,IAbJ;EAcflB,OAAO,EAAEa,mBAAUQ;AAdJ,CAAjB"}
|
|
@@ -19,6 +19,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
19
19
|
|
|
20
20
|
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; }
|
|
21
21
|
|
|
22
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
23
|
+
|
|
22
24
|
var _default = {
|
|
23
25
|
title: 'Components'
|
|
24
26
|
};
|
|
@@ -32,7 +34,7 @@ var Story = function Story(props) {
|
|
|
32
34
|
|
|
33
35
|
exports.Story = Story;
|
|
34
36
|
Story.storyName = 'Menu';
|
|
35
|
-
Story.args = {
|
|
37
|
+
Story.args = _defineProperty({
|
|
36
38
|
options: [{
|
|
37
39
|
children: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_primitives.Text, {
|
|
38
40
|
bold: true
|
|
@@ -41,11 +43,11 @@ Story.args = {
|
|
|
41
43
|
}, {
|
|
42
44
|
label: 'Lorem Ipsum is simply dummy text...',
|
|
43
45
|
divider: true
|
|
44
|
-
}, {
|
|
46
|
+
}, _defineProperty({
|
|
45
47
|
icon: _primitives.ICON.ADD,
|
|
46
48
|
label: 'Item 1',
|
|
47
49
|
value: 'one'
|
|
48
|
-
}, {
|
|
50
|
+
}, 'data-testid', 'custom-test'), {
|
|
49
51
|
icon: _primitives.ICON.ADD,
|
|
50
52
|
label: 'Item 2',
|
|
51
53
|
disabled: true,
|
|
@@ -67,7 +69,7 @@ Story.args = {
|
|
|
67
69
|
}, "Logout")
|
|
68
70
|
}],
|
|
69
71
|
visible: true
|
|
70
|
-
};
|
|
72
|
+
}, 'data-testid', 'test-story');
|
|
71
73
|
Story.argTypes = {
|
|
72
74
|
onPress: {
|
|
73
75
|
action: 'onPress'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Menu.stories.js","names":["title","Story","props","storyName","args","options","children","divider","label","icon","ICON","ADD","value","disabled","visible","argTypes","onPress","action"],"sources":["../../../src/components/Menu/Menu.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Button } from '../';\nimport { ICON, Text } from '../../primitives';\nimport { Menu } from './Menu';\n\nexport default { title: 'Components' };\n\nexport const Story = (props) => (\n <Menu {...props}>\n <span className=\"children\">children</span>\n </Menu>\n);\n\nStory.storyName = 'Menu';\n\nStory.args = {\n options: [\n {\n children: (\n <>\n <Text bold>Lorem</Text>\n <Text>Ipsum is simply dummy text...</Text>\n </>\n ),\n divider: true,\n },\n { label: 'Lorem Ipsum is simply dummy text...', divider: true },\n { icon: ICON.ADD, label: 'Item 1', value: 'one' },\n { icon: ICON.ADD, label: 'Item 2', disabled: true, value: 'two' },\n { label: 'Item 3', divider: true, value: 'three' },\n { label: 'Item 4', children: <Button small>Add</Button>, value: 'four' },\n {\n children: (\n <Button secondary wide>\n Logout\n </Button>\n ),\n },\n ],\n visible: true,\n};\n\nStory.argTypes = {\n onPress: { action: 'onPress' },\n};\n"],"mappings":";;;;;;;;;AAAA;;AAEA;;AACA;;AACA
|
|
1
|
+
{"version":3,"file":"Menu.stories.js","names":["title","Story","props","storyName","args","options","children","divider","label","icon","ICON","ADD","value","disabled","visible","argTypes","onPress","action"],"sources":["../../../src/components/Menu/Menu.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Button } from '../';\nimport { ICON, Text } from '../../primitives';\nimport { Menu } from './Menu';\n\nexport default { title: 'Components' };\n\nexport const Story = (props) => (\n <Menu {...props}>\n <span className=\"children\">children</span>\n </Menu>\n);\n\nStory.storyName = 'Menu';\n\nStory.args = {\n options: [\n {\n children: (\n <>\n <Text bold>Lorem</Text>\n <Text>Ipsum is simply dummy text...</Text>\n </>\n ),\n divider: true,\n },\n { label: 'Lorem Ipsum is simply dummy text...', divider: true },\n { icon: ICON.ADD, label: 'Item 1', value: 'one', ['data-testid']: 'custom-test' },\n { icon: ICON.ADD, label: 'Item 2', disabled: true, value: 'two' },\n { label: 'Item 3', divider: true, value: 'three' },\n { label: 'Item 4', children: <Button small>Add</Button>, value: 'four' },\n {\n children: (\n <Button secondary wide>\n Logout\n </Button>\n ),\n },\n ],\n visible: true,\n ['data-testid']: 'test-story',\n};\n\nStory.argTypes = {\n onPress: { action: 'onPress' },\n};\n"],"mappings":";;;;;;;;;AAAA;;AAEA;;AACA;;AACA;;;;;;;;eAEe;EAAEA,KAAK,EAAE;AAAT,C;;;AAER,IAAMC,KAAK,GAAG,SAARA,KAAQ,CAACC,KAAD;EAAA,oBACnB,oBAAC,UAAD,EAAUA,KAAV,eACE;IAAM,SAAS,EAAC;EAAhB,cADF,CADmB;AAAA,CAAd;;;AAMPD,KAAK,CAACE,SAAN,GAAkB,MAAlB;AAEAF,KAAK,CAACG,IAAN;EACEC,OAAO,EAAE,CACP;IACEC,QAAQ,eACN,uDACE,oBAAC,gBAAD;MAAM,IAAI;IAAV,WADF,eAEE,oBAAC,gBAAD,wCAFF,CAFJ;IAOEC,OAAO,EAAE;EAPX,CADO,EAUP;IAAEC,KAAK,EAAE,qCAAT;IAAgDD,OAAO,EAAE;EAAzD,CAVO;IAWLE,IAAI,EAAEC,iBAAKC,GAXN;IAWWH,KAAK,EAAE,QAXlB;IAW4BI,KAAK,EAAE;EAXnC,GAW2C,aAX3C,EAW2D,aAX3D,GAYP;IAAEH,IAAI,EAAEC,iBAAKC,GAAb;IAAkBH,KAAK,EAAE,QAAzB;IAAmCK,QAAQ,EAAE,IAA7C;IAAmDD,KAAK,EAAE;EAA1D,CAZO,EAaP;IAAEJ,KAAK,EAAE,QAAT;IAAmBD,OAAO,EAAE,IAA5B;IAAkCK,KAAK,EAAE;EAAzC,CAbO,EAcP;IAAEJ,KAAK,EAAE,QAAT;IAAmBF,QAAQ,eAAE,oBAAC,QAAD;MAAQ,KAAK;IAAb,SAA7B;IAAyDM,KAAK,EAAE;EAAhE,CAdO,EAeP;IACEN,QAAQ,eACN,oBAAC,QAAD;MAAQ,SAAS,MAAjB;MAAkB,IAAI;IAAtB;EAFJ,CAfO,CADX;EAwBEQ,OAAO,EAAE;AAxBX,GAyBG,aAzBH,EAyBmB,YAzBnB;AA4BAb,KAAK,CAACc,QAAN,GAAiB;EACfC,OAAO,EAAE;IAAEC,MAAM,EAAE;EAAV;AADM,CAAjB"}
|
|
@@ -15,6 +15,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
15
15
|
|
|
16
16
|
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; }
|
|
17
17
|
|
|
18
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
19
|
+
|
|
18
20
|
var _default = {
|
|
19
21
|
title: 'Components'
|
|
20
22
|
};
|
|
@@ -28,12 +30,12 @@ var Story = function Story(props) {
|
|
|
28
30
|
|
|
29
31
|
exports.Story = Story;
|
|
30
32
|
Story.storyName = 'Modal';
|
|
31
|
-
Story.args = {
|
|
33
|
+
Story.args = _defineProperty({
|
|
32
34
|
overflow: true,
|
|
33
35
|
portal: false,
|
|
34
36
|
title: 'title',
|
|
35
37
|
visible: true
|
|
36
|
-
};
|
|
38
|
+
}, 'data-testid', 'test-story');
|
|
37
39
|
Story.argTypes = {
|
|
38
40
|
onBack: {
|
|
39
41
|
action: 'onBack'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.stories.js","names":["title","Story","props","storyName","args","overflow","portal","visible","argTypes","onBack","action","onClose"],"sources":["../../../src/components/Modal/Modal.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Modal } from './Modal';\n\nexport default { title: 'Components' };\n\nexport const Story = (props) => (\n <Modal {...props}>\n <span className=\"children\">children</span>\n </Modal>\n);\n\nStory.storyName = 'Modal';\n\nStory.args = {\n overflow: true,\n portal: false,\n title: 'title',\n visible: true,\n};\n\nStory.argTypes = {\n onBack: { action: 'onBack' },\n onClose: { action: 'onClose' },\n};\n"],"mappings":";;;;;;;;;AAAA;;AAEA
|
|
1
|
+
{"version":3,"file":"Modal.stories.js","names":["title","Story","props","storyName","args","overflow","portal","visible","argTypes","onBack","action","onClose"],"sources":["../../../src/components/Modal/Modal.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Modal } from './Modal';\n\nexport default { title: 'Components' };\n\nexport const Story = (props) => (\n <Modal {...props}>\n <span className=\"children\">children</span>\n </Modal>\n);\n\nStory.storyName = 'Modal';\n\nStory.args = {\n overflow: true,\n portal: false,\n title: 'title',\n visible: true,\n ['data-testid']: 'test-story',\n};\n\nStory.argTypes = {\n onBack: { action: 'onBack' },\n onClose: { action: 'onClose' },\n};\n"],"mappings":";;;;;;;;;AAAA;;AAEA;;;;;;;;eAEe;EAAEA,KAAK,EAAE;AAAT,C;;;AAER,IAAMC,KAAK,GAAG,SAARA,KAAQ,CAACC,KAAD;EAAA,oBACnB,oBAAC,YAAD,EAAWA,KAAX,eACE;IAAM,SAAS,EAAC;EAAhB,cADF,CADmB;AAAA,CAAd;;;AAMPD,KAAK,CAACE,SAAN,GAAkB,OAAlB;AAEAF,KAAK,CAACG,IAAN;EACEC,QAAQ,EAAE,IADZ;EAEEC,MAAM,EAAE,KAFV;EAGEN,KAAK,EAAE,OAHT;EAIEO,OAAO,EAAE;AAJX,GAKG,aALH,EAKmB,YALnB;AAQAN,KAAK,CAACO,QAAN,GAAiB;EACfC,MAAM,EAAE;IAAEC,MAAM,EAAE;EAAV,CADO;EAEfC,OAAO,EAAE;IAAED,MAAM,EAAE;EAAV;AAFM,CAAjB"}
|
|
@@ -15,6 +15,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
15
15
|
|
|
16
16
|
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; }
|
|
17
17
|
|
|
18
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
19
|
+
|
|
18
20
|
var _default = {
|
|
19
21
|
title: 'Components'
|
|
20
22
|
};
|
|
@@ -26,14 +28,14 @@ var Story = function Story(props) {
|
|
|
26
28
|
|
|
27
29
|
exports.Story = Story;
|
|
28
30
|
Story.storyName = 'Notification';
|
|
29
|
-
Story.args = {
|
|
31
|
+
Story.args = _defineProperty({
|
|
30
32
|
children: 'children',
|
|
31
33
|
error: false,
|
|
32
34
|
inline: false,
|
|
33
35
|
small: false,
|
|
34
36
|
success: false,
|
|
35
37
|
warning: false
|
|
36
|
-
};
|
|
38
|
+
}, 'data-testid', 'test-story');
|
|
37
39
|
Story.argTypes = {
|
|
38
40
|
onClose: {
|
|
39
41
|
action: 'onClose'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Notification.stories.js","names":["title","Story","props","storyName","args","children","error","inline","small","success","warning","argTypes","onClose","action"],"sources":["../../../src/components/Notification/Notification.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Notification } from './Notification';\n\nexport default { title: 'Components' };\n\nexport const Story = (props) => <Notification {...props} />;\n\nStory.storyName = 'Notification';\n\nStory.args = {\n children: 'children',\n error: false,\n inline: false,\n small: false,\n success: false,\n warning: false,\n};\n\nStory.argTypes = {\n onClose: { action: 'onClose' },\n};\n"],"mappings":";;;;;;;;;AAAA;;AAEA
|
|
1
|
+
{"version":3,"file":"Notification.stories.js","names":["title","Story","props","storyName","args","children","error","inline","small","success","warning","argTypes","onClose","action"],"sources":["../../../src/components/Notification/Notification.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Notification } from './Notification';\n\nexport default { title: 'Components' };\n\nexport const Story = (props) => <Notification {...props} />;\n\nStory.storyName = 'Notification';\n\nStory.args = {\n children: 'children',\n error: false,\n inline: false,\n small: false,\n success: false,\n warning: false,\n ['data-testid']: 'test-story',\n};\n\nStory.argTypes = {\n onClose: { action: 'onClose' },\n};\n"],"mappings":";;;;;;;;;AAAA;;AAEA;;;;;;;;eAEe;EAAEA,KAAK,EAAE;AAAT,C;;;AAER,IAAMC,KAAK,GAAG,SAARA,KAAQ,CAACC,KAAD;EAAA,oBAAW,oBAAC,0BAAD,EAAkBA,KAAlB,CAAX;AAAA,CAAd;;;AAEPD,KAAK,CAACE,SAAN,GAAkB,cAAlB;AAEAF,KAAK,CAACG,IAAN;EACEC,QAAQ,EAAE,UADZ;EAEEC,KAAK,EAAE,KAFT;EAGEC,MAAM,EAAE,KAHV;EAIEC,KAAK,EAAE,KAJT;EAKEC,OAAO,EAAE,KALX;EAMEC,OAAO,EAAE;AANX,GAOG,aAPH,EAOmB,YAPnB;AAUAT,KAAK,CAACU,QAAN,GAAiB;EACfC,OAAO,EAAE;IAAEC,MAAM,EAAE;EAAV;AADM,CAAjB"}
|
|
@@ -17,6 +17,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
17
17
|
|
|
18
18
|
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; }
|
|
19
19
|
|
|
20
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
21
|
+
|
|
20
22
|
var _default = {
|
|
21
23
|
title: 'Components'
|
|
22
24
|
};
|
|
@@ -28,7 +30,7 @@ var Story = function Story(props) {
|
|
|
28
30
|
|
|
29
31
|
exports.Story = Story;
|
|
30
32
|
Story.storyName = 'Table';
|
|
31
|
-
Story.args = {
|
|
33
|
+
Story.args = _defineProperty({
|
|
32
34
|
dataSource: [{
|
|
33
35
|
username: 'jose',
|
|
34
36
|
email: 'jose@mirai.com',
|
|
@@ -83,7 +85,7 @@ Story.args = {
|
|
|
83
85
|
}
|
|
84
86
|
},
|
|
85
87
|
search: ''
|
|
86
|
-
};
|
|
88
|
+
}, 'data-testid', 'test-story');
|
|
87
89
|
Story.argTypes = {
|
|
88
90
|
onPress: {
|
|
89
91
|
action: 'onPress'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.stories.js","names":["title","Story","props","storyName","args","dataSource","username","email","year","twitter","undefined","action","schema","label","type","search","argTypes","onPress","onSelect"],"sources":["../../../src/components/Table/Table.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Button } from '../';\nimport { Table } from './Table';\n\nexport default { title: 'Components' };\n\nexport const Story = (props) => <Table {...props} />;\n\nStory.storyName = 'Table';\n\nStory.args = {\n dataSource: [\n { username: 'jose', email: 'jose@mirai.com', year: 2012 },\n { username: 'mario/1', email: 'mario.1@mirai.com', year: 2005 },\n { username: 'carlos', email: 'carlos@mirai.com', year: 2012 },\n {\n username: 'svet',\n email: 'svet@mirai.com',\n year: 2021,\n twitter: undefined,\n action: <Button small>Click Me</Button>,\n },\n { username: 'javi', email: 'hi@soyjavi.com', year: 2022, twitter: 'soyjavi' },\n { username: 'victor', email: 'victor@mirai.com', year: 2021 },\n { username: 'mario/2', email: 'mario.2@mirai.com', year: 2022 },\n ],\n schema: {\n username: { label: 'User Name', type: 'text' },\n email: { label: 'Email' },\n year: { label: 'Year', type: 'number' },\n twitter: { label: 'Twitter' },\n action: { label: 'Action' },\n },\n search: '',\n};\n\nStory.argTypes = {\n onPress: { action: 'onPress' },\n onSelect: { action: 'onSelect' },\n};\n"],"mappings":";;;;;;;;;AAAA;;AAEA;;AACA
|
|
1
|
+
{"version":3,"file":"Table.stories.js","names":["title","Story","props","storyName","args","dataSource","username","email","year","twitter","undefined","action","schema","label","type","search","argTypes","onPress","onSelect"],"sources":["../../../src/components/Table/Table.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Button } from '../';\nimport { Table } from './Table';\n\nexport default { title: 'Components' };\n\nexport const Story = (props) => <Table {...props} />;\n\nStory.storyName = 'Table';\n\nStory.args = {\n dataSource: [\n { username: 'jose', email: 'jose@mirai.com', year: 2012 },\n { username: 'mario/1', email: 'mario.1@mirai.com', year: 2005 },\n { username: 'carlos', email: 'carlos@mirai.com', year: 2012 },\n {\n username: 'svet',\n email: 'svet@mirai.com',\n year: 2021,\n twitter: undefined,\n action: <Button small>Click Me</Button>,\n },\n { username: 'javi', email: 'hi@soyjavi.com', year: 2022, twitter: 'soyjavi' },\n { username: 'victor', email: 'victor@mirai.com', year: 2021 },\n { username: 'mario/2', email: 'mario.2@mirai.com', year: 2022 },\n ],\n schema: {\n username: { label: 'User Name', type: 'text' },\n email: { label: 'Email' },\n year: { label: 'Year', type: 'number' },\n twitter: { label: 'Twitter' },\n action: { label: 'Action' },\n },\n search: '',\n ['data-testid']: 'test-story',\n};\n\nStory.argTypes = {\n onPress: { action: 'onPress' },\n onSelect: { action: 'onSelect' },\n};\n"],"mappings":";;;;;;;;;AAAA;;AAEA;;AACA;;;;;;;;eAEe;EAAEA,KAAK,EAAE;AAAT,C;;;AAER,IAAMC,KAAK,GAAG,SAARA,KAAQ,CAACC,KAAD;EAAA,oBAAW,oBAAC,YAAD,EAAWA,KAAX,CAAX;AAAA,CAAd;;;AAEPD,KAAK,CAACE,SAAN,GAAkB,OAAlB;AAEAF,KAAK,CAACG,IAAN;EACEC,UAAU,EAAE,CACV;IAAEC,QAAQ,EAAE,MAAZ;IAAoBC,KAAK,EAAE,gBAA3B;IAA6CC,IAAI,EAAE;EAAnD,CADU,EAEV;IAAEF,QAAQ,EAAE,SAAZ;IAAuBC,KAAK,EAAE,mBAA9B;IAAmDC,IAAI,EAAE;EAAzD,CAFU,EAGV;IAAEF,QAAQ,EAAE,QAAZ;IAAsBC,KAAK,EAAE,kBAA7B;IAAiDC,IAAI,EAAE;EAAvD,CAHU,EAIV;IACEF,QAAQ,EAAE,MADZ;IAEEC,KAAK,EAAE,gBAFT;IAGEC,IAAI,EAAE,IAHR;IAIEC,OAAO,EAAEC,SAJX;IAKEC,MAAM,eAAE,oBAAC,QAAD;MAAQ,KAAK;IAAb;EALV,CAJU,EAWV;IAAEL,QAAQ,EAAE,MAAZ;IAAoBC,KAAK,EAAE,gBAA3B;IAA6CC,IAAI,EAAE,IAAnD;IAAyDC,OAAO,EAAE;EAAlE,CAXU,EAYV;IAAEH,QAAQ,EAAE,QAAZ;IAAsBC,KAAK,EAAE,kBAA7B;IAAiDC,IAAI,EAAE;EAAvD,CAZU,EAaV;IAAEF,QAAQ,EAAE,SAAZ;IAAuBC,KAAK,EAAE,mBAA9B;IAAmDC,IAAI,EAAE;EAAzD,CAbU,CADd;EAgBEI,MAAM,EAAE;IACNN,QAAQ,EAAE;MAAEO,KAAK,EAAE,WAAT;MAAsBC,IAAI,EAAE;IAA5B,CADJ;IAENP,KAAK,EAAE;MAAEM,KAAK,EAAE;IAAT,CAFD;IAGNL,IAAI,EAAE;MAAEK,KAAK,EAAE,MAAT;MAAiBC,IAAI,EAAE;IAAvB,CAHA;IAINL,OAAO,EAAE;MAAEI,KAAK,EAAE;IAAT,CAJH;IAKNF,MAAM,EAAE;MAAEE,KAAK,EAAE;IAAT;EALF,CAhBV;EAuBEE,MAAM,EAAE;AAvBV,GAwBG,aAxBH,EAwBmB,YAxBnB;AA2BAd,KAAK,CAACe,QAAN,GAAiB;EACfC,OAAO,EAAE;IAAEN,MAAM,EAAE;EAAV,CADM;EAEfO,QAAQ,EAAE;IAAEP,MAAM,EAAE;EAAV;AAFK,CAAjB"}
|
|
@@ -15,6 +15,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
15
15
|
|
|
16
16
|
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; }
|
|
17
17
|
|
|
18
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
19
|
+
|
|
18
20
|
var _default = {
|
|
19
21
|
title: 'Components'
|
|
20
22
|
};
|
|
@@ -26,10 +28,10 @@ var Story = function Story(props) {
|
|
|
26
28
|
|
|
27
29
|
exports.Story = Story;
|
|
28
30
|
Story.storyName = 'Tooltip';
|
|
29
|
-
Story.args = {
|
|
31
|
+
Story.args = _defineProperty({
|
|
30
32
|
text: 'children',
|
|
31
33
|
visible: false
|
|
32
|
-
};
|
|
34
|
+
}, 'data-testid', 'test-story');
|
|
33
35
|
Story.argTypes = {
|
|
34
36
|
onClose: {
|
|
35
37
|
action: 'onClose'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.stories.js","names":["title","Story","props","storyName","args","text","visible","argTypes","onClose","action"],"sources":["../../../src/components/Tooltip/Tooltip.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Tooltip } from './Tooltip';\n\nexport default { title: 'Components' };\n\nexport const Story = (props) => (\n <Tooltip {...props}>\n <span>hover me (prop:text)</span>\n </Tooltip>\n);\n\nStory.storyName = 'Tooltip';\n\nStory.args = {\n text: 'children',\n visible: false,\n};\n\nStory.argTypes = {\n onClose: { action: 'onClose' },\n};\n"],"mappings":";;;;;;;;;AAAA;;AAEA
|
|
1
|
+
{"version":3,"file":"Tooltip.stories.js","names":["title","Story","props","storyName","args","text","visible","argTypes","onClose","action"],"sources":["../../../src/components/Tooltip/Tooltip.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Tooltip } from './Tooltip';\n\nexport default { title: 'Components' };\n\nexport const Story = (props) => (\n <Tooltip {...props}>\n <span>hover me (prop:text)</span>\n </Tooltip>\n);\n\nStory.storyName = 'Tooltip';\n\nStory.args = {\n text: 'children',\n visible: false,\n ['data-testid']: 'test-story',\n};\n\nStory.argTypes = {\n onClose: { action: 'onClose' },\n};\n"],"mappings":";;;;;;;;;AAAA;;AAEA;;;;;;;;eAEe;EAAEA,KAAK,EAAE;AAAT,C;;;AAER,IAAMC,KAAK,GAAG,SAARA,KAAQ,CAACC,KAAD;EAAA,oBACnB,oBAAC,gBAAD,EAAaA,KAAb,eACE,yDADF,CADmB;AAAA,CAAd;;;AAMPD,KAAK,CAACE,SAAN,GAAkB,SAAlB;AAEAF,KAAK,CAACG,IAAN;EACEC,IAAI,EAAE,UADR;EAEEC,OAAO,EAAE;AAFX,GAGG,aAHH,EAGmB,YAHnB;AAMAL,KAAK,CAACM,QAAN,GAAiB;EACfC,OAAO,EAAE;IAAEC,MAAM,EAAE;EAAV;AADM,CAAjB"}
|
|
@@ -15,6 +15,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
15
15
|
|
|
16
16
|
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; }
|
|
17
17
|
|
|
18
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
19
|
+
|
|
18
20
|
var _default = {
|
|
19
21
|
title: 'Primitives'
|
|
20
22
|
};
|
|
@@ -26,13 +28,13 @@ var Story = function Story(props) {
|
|
|
26
28
|
|
|
27
29
|
exports.Story = Story;
|
|
28
30
|
Story.storyName = 'Checkbox';
|
|
29
|
-
Story.args = {
|
|
31
|
+
Story.args = _defineProperty({
|
|
30
32
|
checked: false,
|
|
31
33
|
children: 'children',
|
|
32
34
|
disabled: false,
|
|
33
35
|
name: 'checkbox',
|
|
34
36
|
value: 'value'
|
|
35
|
-
};
|
|
37
|
+
}, 'data-testid', 'test-story');
|
|
36
38
|
Story.argTypes = {
|
|
37
39
|
onChange: {
|
|
38
40
|
action: 'onChange'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.stories.js","names":["title","Story","props","storyName","args","checked","children","disabled","name","value","argTypes","onChange","action"],"sources":["../../../src/primitives/Checkbox/Checkbox.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Checkbox } from './Checkbox';\n\nexport default { title: 'Primitives' };\n\nexport const Story = (props) => <Checkbox {...props} />;\n\nStory.storyName = 'Checkbox';\n\nStory.args = {\n checked: false,\n children: 'children',\n disabled: false,\n name: 'checkbox',\n value: 'value',\n};\n\nStory.argTypes = {\n onChange: { action: 'onChange' },\n};\n"],"mappings":";;;;;;;;;AAAA;;AAEA
|
|
1
|
+
{"version":3,"file":"Checkbox.stories.js","names":["title","Story","props","storyName","args","checked","children","disabled","name","value","argTypes","onChange","action"],"sources":["../../../src/primitives/Checkbox/Checkbox.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Checkbox } from './Checkbox';\n\nexport default { title: 'Primitives' };\n\nexport const Story = (props) => <Checkbox {...props} />;\n\nStory.storyName = 'Checkbox';\n\nStory.args = {\n checked: false,\n children: 'children',\n disabled: false,\n name: 'checkbox',\n value: 'value',\n ['data-testid']: 'test-story',\n};\n\nStory.argTypes = {\n onChange: { action: 'onChange' },\n};\n"],"mappings":";;;;;;;;;AAAA;;AAEA;;;;;;;;eAEe;EAAEA,KAAK,EAAE;AAAT,C;;;AAER,IAAMC,KAAK,GAAG,SAARA,KAAQ,CAACC,KAAD;EAAA,oBAAW,oBAAC,kBAAD,EAAcA,KAAd,CAAX;AAAA,CAAd;;;AAEPD,KAAK,CAACE,SAAN,GAAkB,UAAlB;AAEAF,KAAK,CAACG,IAAN;EACEC,OAAO,EAAE,KADX;EAEEC,QAAQ,EAAE,UAFZ;EAGEC,QAAQ,EAAE,KAHZ;EAIEC,IAAI,EAAE,UAJR;EAKEC,KAAK,EAAE;AALT,GAMG,aANH,EAMmB,YANnB;AASAR,KAAK,CAACS,QAAN,GAAiB;EACfC,QAAQ,EAAE;IAAEC,MAAM,EAAE;EAAV;AADK,CAAjB"}
|
|
@@ -19,6 +19,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
19
19
|
|
|
20
20
|
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; }
|
|
21
21
|
|
|
22
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
23
|
+
|
|
22
24
|
function _extends() { _extends = Object.assign || 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); }
|
|
23
25
|
|
|
24
26
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
@@ -57,13 +59,13 @@ var Story = function Story(props) {
|
|
|
57
59
|
|
|
58
60
|
exports.Story = Story;
|
|
59
61
|
Story.storyName = 'Icon';
|
|
60
|
-
Story.args = {
|
|
62
|
+
Story.args = _defineProperty({
|
|
61
63
|
action: false,
|
|
62
64
|
headline: false,
|
|
63
65
|
level: 3,
|
|
64
66
|
paragraph: false,
|
|
65
67
|
small: false,
|
|
66
68
|
value: _.ICON.EYE_OPEN
|
|
67
|
-
};
|
|
69
|
+
}, 'data-testid', 'test-story');
|
|
68
70
|
Story.argTypes = {};
|
|
69
71
|
//# sourceMappingURL=Icon.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.stories.js","names":["title","Story","props","Object","entries","ICON","map","key","value","storyName","args","action","headline","level","paragraph","small","EYE_OPEN","argTypes"],"sources":["../../../src/primitives/Icon/Icon.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Text } from '../Text';\nimport { View } from '../View';\nimport { Icon, ICON } from './';\n\nexport default { title: 'Primitives' };\n\nexport const Story = (props) => (\n <>\n <Icon {...props} />\n {Object.entries(ICON).map(([key, value]) => (\n <View key={key} row>\n <Text small>{key}</Text>\n <Icon {...props} value={value} />\n </View>\n ))}\n </>\n);\n\nStory.storyName = 'Icon';\n\nStory.args = {\n action: false,\n headline: false,\n level: 3,\n paragraph: false,\n small: false,\n value: ICON.EYE_OPEN,\n};\n\nStory.argTypes = {};\n"],"mappings":";;;;;;;;;AAAA;;AAEA;;AACA;;AACA
|
|
1
|
+
{"version":3,"file":"Icon.stories.js","names":["title","Story","props","Object","entries","ICON","map","key","value","storyName","args","action","headline","level","paragraph","small","EYE_OPEN","argTypes"],"sources":["../../../src/primitives/Icon/Icon.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Text } from '../Text';\nimport { View } from '../View';\nimport { Icon, ICON } from './';\n\nexport default { title: 'Primitives' };\n\nexport const Story = (props) => (\n <>\n <Icon {...props} />\n {Object.entries(ICON).map(([key, value]) => (\n <View key={key} row>\n <Text small>{key}</Text>\n <Icon {...props} value={value} />\n </View>\n ))}\n </>\n);\n\nStory.storyName = 'Icon';\n\nStory.args = {\n action: false,\n headline: false,\n level: 3,\n paragraph: false,\n small: false,\n value: ICON.EYE_OPEN,\n ['data-testid']: 'test-story',\n};\n\nStory.argTypes = {};\n"],"mappings":";;;;;;;;;AAAA;;AAEA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;;;eAEe;EAAEA,KAAK,EAAE;AAAT,C;;;AAER,IAAMC,KAAK,GAAG,SAARA,KAAQ,CAACC,KAAD;EAAA,oBACnB,uDACE,oBAAC,MAAD,EAAUA,KAAV,CADF,EAEGC,MAAM,CAACC,OAAP,CAAeC,MAAf,EAAqBC,GAArB,CAAyB;IAAA;IAAA,IAAEC,GAAF;IAAA,IAAOC,KAAP;;IAAA,oBACxB,oBAAC,UAAD;MAAM,GAAG,EAAED,GAAX;MAAgB,GAAG;IAAnB,gBACE,oBAAC,UAAD;MAAM,KAAK;IAAX,GAAaA,GAAb,CADF,eAEE,oBAAC,MAAD,eAAUL,KAAV;MAAiB,KAAK,EAAEM;IAAxB,GAFF,CADwB;EAAA,CAAzB,CAFH,CADmB;AAAA,CAAd;;;AAYPP,KAAK,CAACQ,SAAN,GAAkB,MAAlB;AAEAR,KAAK,CAACS,IAAN;EACEC,MAAM,EAAE,KADV;EAEEC,QAAQ,EAAE,KAFZ;EAGEC,KAAK,EAAE,CAHT;EAIEC,SAAS,EAAE,KAJb;EAKEC,KAAK,EAAE,KALT;EAMEP,KAAK,EAAEH,OAAKW;AANd,GAOG,aAPH,EAOmB,YAPnB;AAUAf,KAAK,CAACgB,QAAN,GAAiB,EAAjB"}
|
|
@@ -15,6 +15,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
15
15
|
|
|
16
16
|
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; }
|
|
17
17
|
|
|
18
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
19
|
+
|
|
18
20
|
var _default = {
|
|
19
21
|
title: 'Primitives'
|
|
20
22
|
};
|
|
@@ -26,13 +28,13 @@ var Story = function Story(props) {
|
|
|
26
28
|
|
|
27
29
|
exports.Story = Story;
|
|
28
30
|
Story.storyName = 'Input';
|
|
29
|
-
Story.args = {
|
|
31
|
+
Story.args = _defineProperty({
|
|
30
32
|
disabled: false,
|
|
31
33
|
multiLine: false,
|
|
32
34
|
name: 'Input',
|
|
33
35
|
placeholder: 'placeholder',
|
|
34
36
|
type: 'text'
|
|
35
|
-
};
|
|
37
|
+
}, 'data-testid', 'test-story');
|
|
36
38
|
Story.argTypes = {
|
|
37
39
|
type: {
|
|
38
40
|
options: ['text', 'password', 'number', 'email', 'date'],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.stories.js","names":["title","Story","props","storyName","args","disabled","multiLine","name","placeholder","type","argTypes","options","control","defaultValue","onChange","action","onEnter","onError","onLeave"],"sources":["../../../src/primitives/Input/Input.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Input } from './Input';\n\nexport default { title: 'Primitives' };\n\nexport const Story = (props) => <Input {...props} />;\n\nStory.storyName = 'Input';\n\nStory.args = {\n disabled: false,\n multiLine: false,\n name: 'Input',\n placeholder: 'placeholder',\n type: 'text',\n};\n\nStory.argTypes = {\n type: {\n options: ['text', 'password', 'number', 'email', 'date'],\n control: { type: 'select' },\n defaultValue: 'text',\n },\n onChange: { action: 'onChange' },\n onEnter: { action: 'onEnter' },\n onError: { action: 'onError' },\n onLeave: { action: 'onLeave' },\n};\n"],"mappings":";;;;;;;;;AAAA;;AAEA
|
|
1
|
+
{"version":3,"file":"Input.stories.js","names":["title","Story","props","storyName","args","disabled","multiLine","name","placeholder","type","argTypes","options","control","defaultValue","onChange","action","onEnter","onError","onLeave"],"sources":["../../../src/primitives/Input/Input.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Input } from './Input';\n\nexport default { title: 'Primitives' };\n\nexport const Story = (props) => <Input {...props} />;\n\nStory.storyName = 'Input';\n\nStory.args = {\n disabled: false,\n multiLine: false,\n name: 'Input',\n placeholder: 'placeholder',\n type: 'text',\n ['data-testid']: 'test-story',\n};\n\nStory.argTypes = {\n type: {\n options: ['text', 'password', 'number', 'email', 'date'],\n control: { type: 'select' },\n defaultValue: 'text',\n },\n onChange: { action: 'onChange' },\n onEnter: { action: 'onEnter' },\n onError: { action: 'onError' },\n onLeave: { action: 'onLeave' },\n};\n"],"mappings":";;;;;;;;;AAAA;;AAEA;;;;;;;;eAEe;EAAEA,KAAK,EAAE;AAAT,C;;;AAER,IAAMC,KAAK,GAAG,SAARA,KAAQ,CAACC,KAAD;EAAA,oBAAW,oBAAC,YAAD,EAAWA,KAAX,CAAX;AAAA,CAAd;;;AAEPD,KAAK,CAACE,SAAN,GAAkB,OAAlB;AAEAF,KAAK,CAACG,IAAN;EACEC,QAAQ,EAAE,KADZ;EAEEC,SAAS,EAAE,KAFb;EAGEC,IAAI,EAAE,OAHR;EAIEC,WAAW,EAAE,aAJf;EAKEC,IAAI,EAAE;AALR,GAMG,aANH,EAMmB,YANnB;AASAR,KAAK,CAACS,QAAN,GAAiB;EACfD,IAAI,EAAE;IACJE,OAAO,EAAE,CAAC,MAAD,EAAS,UAAT,EAAqB,QAArB,EAA+B,OAA/B,EAAwC,MAAxC,CADL;IAEJC,OAAO,EAAE;MAAEH,IAAI,EAAE;IAAR,CAFL;IAGJI,YAAY,EAAE;EAHV,CADS;EAMfC,QAAQ,EAAE;IAAEC,MAAM,EAAE;EAAV,CANK;EAOfC,OAAO,EAAE;IAAED,MAAM,EAAE;EAAV,CAPM;EAQfE,OAAO,EAAE;IAAEF,MAAM,EAAE;EAAV,CARM;EASfG,OAAO,EAAE;IAAEH,MAAM,EAAE;EAAV;AATM,CAAjB"}
|
|
@@ -17,6 +17,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
17
17
|
|
|
18
18
|
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; }
|
|
19
19
|
|
|
20
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
21
|
+
|
|
20
22
|
function _extends() { _extends = Object.assign || 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); }
|
|
21
23
|
|
|
22
24
|
var _default = {
|
|
@@ -32,7 +34,7 @@ var Story = function Story(props) {
|
|
|
32
34
|
|
|
33
35
|
exports.Story = Story;
|
|
34
36
|
Story.storyName = 'Layer';
|
|
35
|
-
Story.args = {
|
|
37
|
+
Story.args = _defineProperty({
|
|
36
38
|
bottom: false,
|
|
37
39
|
centered: false,
|
|
38
40
|
forceRender: true,
|
|
@@ -40,5 +42,5 @@ Story.args = {
|
|
|
40
42
|
right: false,
|
|
41
43
|
top: false,
|
|
42
44
|
visible: false
|
|
43
|
-
};
|
|
45
|
+
}, 'data-testid', 'test-story');
|
|
44
46
|
//# sourceMappingURL=Layer.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Layer.stories.js","names":["title","Story","props","storyName","args","bottom","centered","forceRender","left","right","top","visible"],"sources":["../../../src/primitives/Layer/Layer.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Layer } from './Layer';\nimport { LayerContent } from './LayerContent';\n\nexport default { title: 'Primitives' };\n\nexport const Story = (props) => (\n <Layer className=\"children\" {...props}>\n <span>dispatcher</span>\n <LayerContent>\n <span>children</span>\n </LayerContent>\n </Layer>\n);\n\nStory.storyName = 'Layer';\n\nStory.args = {\n bottom: false,\n centered: false,\n forceRender: true,\n left: false,\n right: false,\n top: false,\n visible: false,\n};\n"],"mappings":";;;;;;;;;AAAA;;AAEA;;AACA
|
|
1
|
+
{"version":3,"file":"Layer.stories.js","names":["title","Story","props","storyName","args","bottom","centered","forceRender","left","right","top","visible"],"sources":["../../../src/primitives/Layer/Layer.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Layer } from './Layer';\nimport { LayerContent } from './LayerContent';\n\nexport default { title: 'Primitives' };\n\nexport const Story = (props) => (\n <Layer className=\"children\" {...props}>\n <span>dispatcher</span>\n <LayerContent>\n <span>children</span>\n </LayerContent>\n </Layer>\n);\n\nStory.storyName = 'Layer';\n\nStory.args = {\n bottom: false,\n centered: false,\n forceRender: true,\n left: false,\n right: false,\n top: false,\n visible: false,\n ['data-testid']: 'test-story',\n};\n"],"mappings":";;;;;;;;;AAAA;;AAEA;;AACA;;;;;;;;;;eAEe;EAAEA,KAAK,EAAE;AAAT,C;;;AAER,IAAMC,KAAK,GAAG,SAARA,KAAQ,CAACC,KAAD;EAAA,oBACnB,oBAAC,YAAD;IAAO,SAAS,EAAC;EAAjB,GAAgCA,KAAhC,gBACE,+CADF,eAEE,oBAAC,0BAAD,qBACE,6CADF,CAFF,CADmB;AAAA,CAAd;;;AASPD,KAAK,CAACE,SAAN,GAAkB,OAAlB;AAEAF,KAAK,CAACG,IAAN;EACEC,MAAM,EAAE,KADV;EAEEC,QAAQ,EAAE,KAFZ;EAGEC,WAAW,EAAE,IAHf;EAIEC,IAAI,EAAE,KAJR;EAKEC,KAAK,EAAE,KALT;EAMEC,GAAG,EAAE,KANP;EAOEC,OAAO,EAAE;AAPX,GAQG,aARH,EAQmB,YARnB"}
|
|
@@ -15,6 +15,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
15
15
|
|
|
16
16
|
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; }
|
|
17
17
|
|
|
18
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
19
|
+
|
|
18
20
|
var _default = {
|
|
19
21
|
title: 'Primitives'
|
|
20
22
|
};
|
|
@@ -28,11 +30,11 @@ var Story = function Story(props) {
|
|
|
28
30
|
|
|
29
31
|
exports.Story = Story;
|
|
30
32
|
Story.storyName = 'Pressable';
|
|
31
|
-
Story.args = {
|
|
33
|
+
Story.args = _defineProperty({
|
|
32
34
|
disabled: false,
|
|
33
35
|
preventDefault: false,
|
|
34
36
|
tag: 'button'
|
|
35
|
-
};
|
|
37
|
+
}, 'data-testid', 'test-story');
|
|
36
38
|
Story.argTypes = {
|
|
37
39
|
onEnter: {
|
|
38
40
|
action: 'onEnter'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pressable.stories.js","names":["title","Story","props","storyName","args","disabled","preventDefault","tag","argTypes","onEnter","action","onLeave","onPress"],"sources":["../../../src/primitives/Pressable/Pressable.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Pressable } from './Pressable';\n\nexport default { title: 'Primitives' };\n\nexport const Story = (props) => (\n <Pressable {...props}>\n <span className=\"children\">children</span>\n </Pressable>\n);\n\nStory.storyName = 'Pressable';\n\nStory.args = {\n disabled: false,\n preventDefault: false,\n tag: 'button',\n};\n\nStory.argTypes = {\n onEnter: { action: 'onEnter' },\n onLeave: { action: 'onLeave' },\n onPress: { action: 'onPress' },\n};\n"],"mappings":";;;;;;;;;AAAA;;AAEA
|
|
1
|
+
{"version":3,"file":"Pressable.stories.js","names":["title","Story","props","storyName","args","disabled","preventDefault","tag","argTypes","onEnter","action","onLeave","onPress"],"sources":["../../../src/primitives/Pressable/Pressable.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Pressable } from './Pressable';\n\nexport default { title: 'Primitives' };\n\nexport const Story = (props) => (\n <Pressable {...props}>\n <span className=\"children\">children</span>\n </Pressable>\n);\n\nStory.storyName = 'Pressable';\n\nStory.args = {\n disabled: false,\n preventDefault: false,\n tag: 'button',\n ['data-testid']: 'test-story',\n};\n\nStory.argTypes = {\n onEnter: { action: 'onEnter' },\n onLeave: { action: 'onLeave' },\n onPress: { action: 'onPress' },\n};\n"],"mappings":";;;;;;;;;AAAA;;AAEA;;;;;;;;eAEe;EAAEA,KAAK,EAAE;AAAT,C;;;AAER,IAAMC,KAAK,GAAG,SAARA,KAAQ,CAACC,KAAD;EAAA,oBACnB,oBAAC,oBAAD,EAAeA,KAAf,eACE;IAAM,SAAS,EAAC;EAAhB,cADF,CADmB;AAAA,CAAd;;;AAMPD,KAAK,CAACE,SAAN,GAAkB,WAAlB;AAEAF,KAAK,CAACG,IAAN;EACEC,QAAQ,EAAE,KADZ;EAEEC,cAAc,EAAE,KAFlB;EAGEC,GAAG,EAAE;AAHP,GAIG,aAJH,EAImB,YAJnB;AAOAN,KAAK,CAACO,QAAN,GAAiB;EACfC,OAAO,EAAE;IAAEC,MAAM,EAAE;EAAV,CADM;EAEfC,OAAO,EAAE;IAAED,MAAM,EAAE;EAAV,CAFM;EAGfE,OAAO,EAAE;IAAEF,MAAM,EAAE;EAAV;AAHM,CAAjB"}
|
|
@@ -15,6 +15,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
15
15
|
|
|
16
16
|
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; }
|
|
17
17
|
|
|
18
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
19
|
+
|
|
18
20
|
var _default = {
|
|
19
21
|
title: 'Primitives'
|
|
20
22
|
};
|
|
@@ -26,13 +28,13 @@ var Story = function Story(props) {
|
|
|
26
28
|
|
|
27
29
|
exports.Story = Story;
|
|
28
30
|
Story.storyName = 'Radio';
|
|
29
|
-
Story.args = {
|
|
31
|
+
Story.args = _defineProperty({
|
|
30
32
|
checked: false,
|
|
31
33
|
children: 'children',
|
|
32
34
|
disabled: false,
|
|
33
35
|
name: 'Radio',
|
|
34
36
|
value: 'value'
|
|
35
|
-
};
|
|
37
|
+
}, 'data-testid', 'test-story');
|
|
36
38
|
Story.argTypes = {
|
|
37
39
|
onChange: {
|
|
38
40
|
action: 'onChange'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Radio.stories.js","names":["title","Story","props","storyName","args","checked","children","disabled","name","value","argTypes","onChange","action"],"sources":["../../../src/primitives/Radio/Radio.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Radio } from './Radio';\n\nexport default { title: 'Primitives' };\n\nexport const Story = (props) => <Radio {...props} />;\n\nStory.storyName = 'Radio';\n\nStory.args = {\n checked: false,\n children: 'children',\n disabled: false,\n name: 'Radio',\n value: 'value',\n};\n\nStory.argTypes = {\n onChange: { action: 'onChange' },\n};\n"],"mappings":";;;;;;;;;AAAA;;AAEA
|
|
1
|
+
{"version":3,"file":"Radio.stories.js","names":["title","Story","props","storyName","args","checked","children","disabled","name","value","argTypes","onChange","action"],"sources":["../../../src/primitives/Radio/Radio.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Radio } from './Radio';\n\nexport default { title: 'Primitives' };\n\nexport const Story = (props) => <Radio {...props} />;\n\nStory.storyName = 'Radio';\n\nStory.args = {\n checked: false,\n children: 'children',\n disabled: false,\n name: 'Radio',\n value: 'value',\n ['data-testid']: 'test-story',\n};\n\nStory.argTypes = {\n onChange: { action: 'onChange' },\n};\n"],"mappings":";;;;;;;;;AAAA;;AAEA;;;;;;;;eAEe;EAAEA,KAAK,EAAE;AAAT,C;;;AAER,IAAMC,KAAK,GAAG,SAARA,KAAQ,CAACC,KAAD;EAAA,oBAAW,oBAAC,YAAD,EAAWA,KAAX,CAAX;AAAA,CAAd;;;AAEPD,KAAK,CAACE,SAAN,GAAkB,OAAlB;AAEAF,KAAK,CAACG,IAAN;EACEC,OAAO,EAAE,KADX;EAEEC,QAAQ,EAAE,UAFZ;EAGEC,QAAQ,EAAE,KAHZ;EAIEC,IAAI,EAAE,OAJR;EAKEC,KAAK,EAAE;AALT,GAMG,aANH,EAMmB,YANnB;AASAR,KAAK,CAACS,QAAN,GAAiB;EACfC,QAAQ,EAAE;IAAEC,MAAM,EAAE;EAAV;AADK,CAAjB"}
|
|
@@ -15,6 +15,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
15
15
|
|
|
16
16
|
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; }
|
|
17
17
|
|
|
18
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
19
|
+
|
|
18
20
|
function _extends() { _extends = Object.assign || 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); }
|
|
19
21
|
|
|
20
22
|
var _default = {
|
|
@@ -54,7 +56,7 @@ var Story = function Story(props) {
|
|
|
54
56
|
|
|
55
57
|
exports.Story = Story;
|
|
56
58
|
Story.storyName = 'Scrollview';
|
|
57
|
-
Story.args = {
|
|
59
|
+
Story.args = _defineProperty({
|
|
58
60
|
behavior: 'smooth',
|
|
59
61
|
height: 256,
|
|
60
62
|
horizontal: false,
|
|
@@ -73,7 +75,7 @@ Story.args = {
|
|
|
73
75
|
|
|
74
76
|
return (_console = console).log.apply(_console, ['<ScrollView>::onScroll'].concat(props));
|
|
75
77
|
}
|
|
76
|
-
};
|
|
78
|
+
}, 'data-testid', 'test-story');
|
|
77
79
|
Story.argTypes = {
|
|
78
80
|
behavior: {
|
|
79
81
|
options: ['auto', 'smooth', 'initial', 'inherit'],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScrollView.stories.js","names":["title","boxStyle","display","margin","minHeight","minWidth","Story","props","backgroundColor","storyName","args","behavior","height","horizontal","scrollEventThrottle","scrollIndicator","scrollTo","undefined","snap","tag","width","onScroll","console","log","argTypes","options","control","type","defaultValue"],"sources":["../../../src/primitives/ScrollView/ScrollView.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { ScrollView } from './ScrollView';\n\nexport default { title: 'Primitives' };\n\nconst boxStyle = { display: 'block', margin: '1rem', minHeight: 128, minWidth: 128 };\n\nexport const Story = (props) => (\n <ScrollView className=\"children\" style={{ backgroundColor: 'grey' }} {...props}>\n <div className=\"children\" style={boxStyle}>\n child-1\n </div>\n <div className=\"children\" style={boxStyle}>\n child-2\n </div>\n <div className=\"children\" style={boxStyle}>\n child-3\n </div>\n <div className=\"children\" style={boxStyle}>\n child-4\n </div>\n <div className=\"children\" style={boxStyle}>\n child-5\n </div>\n </ScrollView>\n);\n\nStory.storyName = 'Scrollview';\n\nStory.args = {\n behavior: 'smooth',\n height: 256,\n horizontal: false,\n scrollEventThrottle: 16,\n scrollIndicator: false,\n scrollTo: undefined,\n snap: true,\n tag: 'div',\n width: 256,\n onScroll: (...props) => console.log('<ScrollView>::onScroll', ...props),\n};\n\nStory.argTypes = {\n behavior: {\n options: ['auto', 'smooth', 'initial', 'inherit'],\n control: { type: 'select' },\n defaultValue: 'smooth',\n },\n // onScroll: { action: 'onScroll' },\n};\n"],"mappings":";;;;;;;;;AAAA;;AAEA
|
|
1
|
+
{"version":3,"file":"ScrollView.stories.js","names":["title","boxStyle","display","margin","minHeight","minWidth","Story","props","backgroundColor","storyName","args","behavior","height","horizontal","scrollEventThrottle","scrollIndicator","scrollTo","undefined","snap","tag","width","onScroll","console","log","argTypes","options","control","type","defaultValue"],"sources":["../../../src/primitives/ScrollView/ScrollView.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { ScrollView } from './ScrollView';\n\nexport default { title: 'Primitives' };\n\nconst boxStyle = { display: 'block', margin: '1rem', minHeight: 128, minWidth: 128 };\n\nexport const Story = (props) => (\n <ScrollView className=\"children\" style={{ backgroundColor: 'grey' }} {...props}>\n <div className=\"children\" style={boxStyle}>\n child-1\n </div>\n <div className=\"children\" style={boxStyle}>\n child-2\n </div>\n <div className=\"children\" style={boxStyle}>\n child-3\n </div>\n <div className=\"children\" style={boxStyle}>\n child-4\n </div>\n <div className=\"children\" style={boxStyle}>\n child-5\n </div>\n </ScrollView>\n);\n\nStory.storyName = 'Scrollview';\n\nStory.args = {\n behavior: 'smooth',\n height: 256,\n horizontal: false,\n scrollEventThrottle: 16,\n scrollIndicator: false,\n scrollTo: undefined,\n snap: true,\n tag: 'div',\n width: 256,\n onScroll: (...props) => console.log('<ScrollView>::onScroll', ...props),\n ['data-testid']: 'test-story',\n};\n\nStory.argTypes = {\n behavior: {\n options: ['auto', 'smooth', 'initial', 'inherit'],\n control: { type: 'select' },\n defaultValue: 'smooth',\n },\n // onScroll: { action: 'onScroll' },\n};\n"],"mappings":";;;;;;;;;AAAA;;AAEA;;;;;;;;;;eAEe;EAAEA,KAAK,EAAE;AAAT,C;;AAEf,IAAMC,QAAQ,GAAG;EAAEC,OAAO,EAAE,OAAX;EAAoBC,MAAM,EAAE,MAA5B;EAAoCC,SAAS,EAAE,GAA/C;EAAoDC,QAAQ,EAAE;AAA9D,CAAjB;;AAEO,IAAMC,KAAK,GAAG,SAARA,KAAQ,CAACC,KAAD;EAAA,oBACnB,oBAAC,sBAAD;IAAY,SAAS,EAAC,UAAtB;IAAiC,KAAK,EAAE;MAAEC,eAAe,EAAE;IAAnB;EAAxC,GAAyED,KAAzE,gBACE;IAAK,SAAS,EAAC,UAAf;IAA0B,KAAK,EAAEN;EAAjC,aADF,eAIE;IAAK,SAAS,EAAC,UAAf;IAA0B,KAAK,EAAEA;EAAjC,aAJF,eAOE;IAAK,SAAS,EAAC,UAAf;IAA0B,KAAK,EAAEA;EAAjC,aAPF,eAUE;IAAK,SAAS,EAAC,UAAf;IAA0B,KAAK,EAAEA;EAAjC,aAVF,eAaE;IAAK,SAAS,EAAC,UAAf;IAA0B,KAAK,EAAEA;EAAjC,aAbF,CADmB;AAAA,CAAd;;;AAoBPK,KAAK,CAACG,SAAN,GAAkB,YAAlB;AAEAH,KAAK,CAACI,IAAN;EACEC,QAAQ,EAAE,QADZ;EAEEC,MAAM,EAAE,GAFV;EAGEC,UAAU,EAAE,KAHd;EAIEC,mBAAmB,EAAE,EAJvB;EAKEC,eAAe,EAAE,KALnB;EAMEC,QAAQ,EAAEC,SANZ;EAOEC,IAAI,EAAE,IAPR;EAQEC,GAAG,EAAE,KARP;EASEC,KAAK,EAAE,GATT;EAUEC,QAAQ,EAAE;IAAA;;IAAA,kCAAId,KAAJ;MAAIA,KAAJ;IAAA;;IAAA,OAAc,YAAAe,OAAO,EAACC,GAAR,kBAAY,wBAAZ,SAAyChB,KAAzC,EAAd;EAAA;AAVZ,GAWG,aAXH,EAWmB,YAXnB;AAcAD,KAAK,CAACkB,QAAN,GAAiB;EACfb,QAAQ,EAAE;IACRc,OAAO,EAAE,CAAC,MAAD,EAAS,QAAT,EAAmB,SAAnB,EAA8B,SAA9B,CADD;IAERC,OAAO,EAAE;MAAEC,IAAI,EAAE;IAAR,CAFD;IAGRC,YAAY,EAAE;EAHN,CADK,CAMf;;AANe,CAAjB"}
|
|
@@ -15,6 +15,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
15
15
|
|
|
16
16
|
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; }
|
|
17
17
|
|
|
18
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
19
|
+
|
|
18
20
|
var _default = {
|
|
19
21
|
title: 'Primitives'
|
|
20
22
|
};
|
|
@@ -26,7 +28,7 @@ var Story = function Story(props) {
|
|
|
26
28
|
|
|
27
29
|
exports.Story = Story;
|
|
28
30
|
Story.storyName = 'Select';
|
|
29
|
-
Story.args = {
|
|
31
|
+
Story.args = _defineProperty({
|
|
30
32
|
disabled: false,
|
|
31
33
|
emptyOption: 'Select one option...',
|
|
32
34
|
name: 'Select',
|
|
@@ -68,6 +70,6 @@ Story.args = {
|
|
|
68
70
|
|
|
69
71
|
return (_console4 = console).log.apply(_console4, ['<Select>::onLeave'].concat(props));
|
|
70
72
|
}
|
|
71
|
-
};
|
|
73
|
+
}, 'data-testid', 'test-story');
|
|
72
74
|
Story.argTypes = {};
|
|
73
75
|
//# sourceMappingURL=Select.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.stories.js","names":["title","Story","props","storyName","args","disabled","emptyOption","name","options","value","onChange","console","log","onEnter","onError","onLeave","argTypes"],"sources":["../../../src/primitives/Select/Select.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Select } from './Select';\n\nexport default { title: 'Primitives' };\n\nexport const Story = (props) => <Select {...props} />;\n\nStory.storyName = 'Select';\n\nStory.args = {\n disabled: false,\n emptyOption: 'Select one option...',\n name: 'Select',\n options: ['one', 'two', 'three', 'four', 'five'],\n value: '',\n onChange: (...props) => console.log('<Select>::onChange', ...props),\n onEnter: (...props) => console.log('<Select>::onEnter', ...props),\n onError: (...props) => console.log('<Select>::onError', ...props),\n onLeave: (...props) => console.log('<Select>::onLeave', ...props),\n};\n\nStory.argTypes = {};\n"],"mappings":";;;;;;;;;AAAA;;AAEA
|
|
1
|
+
{"version":3,"file":"Select.stories.js","names":["title","Story","props","storyName","args","disabled","emptyOption","name","options","value","onChange","console","log","onEnter","onError","onLeave","argTypes"],"sources":["../../../src/primitives/Select/Select.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Select } from './Select';\n\nexport default { title: 'Primitives' };\n\nexport const Story = (props) => <Select {...props} />;\n\nStory.storyName = 'Select';\n\nStory.args = {\n disabled: false,\n emptyOption: 'Select one option...',\n name: 'Select',\n options: ['one', 'two', 'three', 'four', 'five'],\n value: '',\n onChange: (...props) => console.log('<Select>::onChange', ...props),\n onEnter: (...props) => console.log('<Select>::onEnter', ...props),\n onError: (...props) => console.log('<Select>::onError', ...props),\n onLeave: (...props) => console.log('<Select>::onLeave', ...props),\n ['data-testid']: 'test-story',\n};\n\nStory.argTypes = {};\n"],"mappings":";;;;;;;;;AAAA;;AAEA;;;;;;;;eAEe;EAAEA,KAAK,EAAE;AAAT,C;;;AAER,IAAMC,KAAK,GAAG,SAARA,KAAQ,CAACC,KAAD;EAAA,oBAAW,oBAAC,cAAD,EAAYA,KAAZ,CAAX;AAAA,CAAd;;;AAEPD,KAAK,CAACE,SAAN,GAAkB,QAAlB;AAEAF,KAAK,CAACG,IAAN;EACEC,QAAQ,EAAE,KADZ;EAEEC,WAAW,EAAE,sBAFf;EAGEC,IAAI,EAAE,QAHR;EAIEC,OAAO,EAAE,CAAC,KAAD,EAAQ,KAAR,EAAe,OAAf,EAAwB,MAAxB,EAAgC,MAAhC,CAJX;EAKEC,KAAK,EAAE,EALT;EAMEC,QAAQ,EAAE;IAAA;;IAAA,kCAAIR,KAAJ;MAAIA,KAAJ;IAAA;;IAAA,OAAc,YAAAS,OAAO,EAACC,GAAR,kBAAY,oBAAZ,SAAqCV,KAArC,EAAd;EAAA,CANZ;EAOEW,OAAO,EAAE;IAAA;;IAAA,mCAAIX,KAAJ;MAAIA,KAAJ;IAAA;;IAAA,OAAc,aAAAS,OAAO,EAACC,GAAR,mBAAY,mBAAZ,SAAoCV,KAApC,EAAd;EAAA,CAPX;EAQEY,OAAO,EAAE;IAAA;;IAAA,mCAAIZ,KAAJ;MAAIA,KAAJ;IAAA;;IAAA,OAAc,aAAAS,OAAO,EAACC,GAAR,mBAAY,mBAAZ,SAAoCV,KAApC,EAAd;EAAA,CARX;EASEa,OAAO,EAAE;IAAA;;IAAA,mCAAIb,KAAJ;MAAIA,KAAJ;IAAA;;IAAA,OAAc,aAAAS,OAAO,EAACC,GAAR,mBAAY,mBAAZ,SAAoCV,KAApC,EAAd;EAAA;AATX,GAUG,aAVH,EAUmB,YAVnB;AAaAD,KAAK,CAACe,QAAN,GAAiB,EAAjB"}
|
|
@@ -15,6 +15,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
15
15
|
|
|
16
16
|
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; }
|
|
17
17
|
|
|
18
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
19
|
+
|
|
18
20
|
var _default = {
|
|
19
21
|
title: 'Primitives'
|
|
20
22
|
};
|
|
@@ -26,11 +28,11 @@ var Story = function Story(props) {
|
|
|
26
28
|
|
|
27
29
|
exports.Story = Story;
|
|
28
30
|
Story.storyName = 'Switch';
|
|
29
|
-
Story.args = {
|
|
31
|
+
Story.args = _defineProperty({
|
|
30
32
|
checked: false,
|
|
31
33
|
disabled: false,
|
|
32
34
|
name: 'Switch'
|
|
33
|
-
};
|
|
35
|
+
}, 'data-testid', 'test-story');
|
|
34
36
|
Story.argTypes = {
|
|
35
37
|
onChange: {
|
|
36
38
|
action: 'onChange'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.stories.js","names":["title","Story","props","storyName","args","checked","disabled","name","argTypes","onChange","action"],"sources":["../../../src/primitives/Switch/Switch.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Switch } from './Switch';\n\nexport default { title: 'Primitives' };\n\nexport const Story = (props) => <Switch {...props} />;\n\nStory.storyName = 'Switch';\n\nStory.args = {\n checked: false,\n disabled: false,\n name: 'Switch',\n};\n\nStory.argTypes = {\n onChange: { action: 'onChange' },\n};\n"],"mappings":";;;;;;;;;AAAA;;AAEA
|
|
1
|
+
{"version":3,"file":"Switch.stories.js","names":["title","Story","props","storyName","args","checked","disabled","name","argTypes","onChange","action"],"sources":["../../../src/primitives/Switch/Switch.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Switch } from './Switch';\n\nexport default { title: 'Primitives' };\n\nexport const Story = (props) => <Switch {...props} />;\n\nStory.storyName = 'Switch';\n\nStory.args = {\n checked: false,\n disabled: false,\n name: 'Switch',\n ['data-testid']: 'test-story',\n};\n\nStory.argTypes = {\n onChange: { action: 'onChange' },\n};\n"],"mappings":";;;;;;;;;AAAA;;AAEA;;;;;;;;eAEe;EAAEA,KAAK,EAAE;AAAT,C;;;AAER,IAAMC,KAAK,GAAG,SAARA,KAAQ,CAACC,KAAD;EAAA,oBAAW,oBAAC,cAAD,EAAYA,KAAZ,CAAX;AAAA,CAAd;;;AAEPD,KAAK,CAACE,SAAN,GAAkB,QAAlB;AAEAF,KAAK,CAACG,IAAN;EACEC,OAAO,EAAE,KADX;EAEEC,QAAQ,EAAE,KAFZ;EAGEC,IAAI,EAAE;AAHR,GAIG,aAJH,EAImB,YAJnB;AAOAN,KAAK,CAACO,QAAN,GAAiB;EACfC,QAAQ,EAAE;IAAEC,MAAM,EAAE;EAAV;AADK,CAAjB"}
|
|
@@ -15,6 +15,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
15
15
|
|
|
16
16
|
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; }
|
|
17
17
|
|
|
18
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
19
|
+
|
|
18
20
|
var _default = {
|
|
19
21
|
title: 'Primitives'
|
|
20
22
|
};
|
|
@@ -26,7 +28,7 @@ var Story = function Story(props) {
|
|
|
26
28
|
|
|
27
29
|
exports.Story = Story;
|
|
28
30
|
Story.storyName = 'Text';
|
|
29
|
-
Story.args = {
|
|
31
|
+
Story.args = _defineProperty({
|
|
30
32
|
action: false,
|
|
31
33
|
bold: false,
|
|
32
34
|
children: 'children',
|
|
@@ -35,6 +37,6 @@ Story.args = {
|
|
|
35
37
|
small: false,
|
|
36
38
|
tag: 'span',
|
|
37
39
|
upperCase: false
|
|
38
|
-
};
|
|
40
|
+
}, 'data-testid', 'test-story');
|
|
39
41
|
Story.argTypes = {};
|
|
40
42
|
//# sourceMappingURL=Text.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.stories.js","names":["title","Story","props","storyName","args","action","bold","children","headline","level","small","tag","upperCase","argTypes"],"sources":["../../../src/primitives/Text/Text.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Text } from './Text';\n\nexport default { title: 'Primitives' };\n\nexport const Story = (props) => <Text {...props} />;\n\nStory.storyName = 'Text';\n\nStory.args = {\n action: false,\n bold: false,\n children: 'children',\n headline: false,\n level: 3,\n small: false,\n tag: 'span',\n upperCase: false,\n};\n\nStory.argTypes = {};\n"],"mappings":";;;;;;;;;AAAA;;AAEA
|
|
1
|
+
{"version":3,"file":"Text.stories.js","names":["title","Story","props","storyName","args","action","bold","children","headline","level","small","tag","upperCase","argTypes"],"sources":["../../../src/primitives/Text/Text.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { Text } from './Text';\n\nexport default { title: 'Primitives' };\n\nexport const Story = (props) => <Text {...props} />;\n\nStory.storyName = 'Text';\n\nStory.args = {\n action: false,\n bold: false,\n children: 'children',\n headline: false,\n level: 3,\n small: false,\n tag: 'span',\n upperCase: false,\n ['data-testid']: 'test-story',\n};\n\nStory.argTypes = {};\n"],"mappings":";;;;;;;;;AAAA;;AAEA;;;;;;;;eAEe;EAAEA,KAAK,EAAE;AAAT,C;;;AAER,IAAMC,KAAK,GAAG,SAARA,KAAQ,CAACC,KAAD;EAAA,oBAAW,oBAAC,UAAD,EAAUA,KAAV,CAAX;AAAA,CAAd;;;AAEPD,KAAK,CAACE,SAAN,GAAkB,MAAlB;AAEAF,KAAK,CAACG,IAAN;EACEC,MAAM,EAAE,KADV;EAEEC,IAAI,EAAE,KAFR;EAGEC,QAAQ,EAAE,UAHZ;EAIEC,QAAQ,EAAE,KAJZ;EAKEC,KAAK,EAAE,CALT;EAMEC,KAAK,EAAE,KANT;EAOEC,GAAG,EAAE,MAPP;EAQEC,SAAS,EAAE;AARb,GASG,aATH,EASmB,YATnB;AAYAX,KAAK,CAACY,QAAN,GAAiB,EAAjB"}
|
|
@@ -15,6 +15,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
15
15
|
|
|
16
16
|
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; }
|
|
17
17
|
|
|
18
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
19
|
+
|
|
18
20
|
var _default = {
|
|
19
21
|
title: 'Primitives'
|
|
20
22
|
};
|
|
@@ -30,10 +32,10 @@ var Story = function Story(props) {
|
|
|
30
32
|
|
|
31
33
|
exports.Story = Story;
|
|
32
34
|
Story.storyName = 'View';
|
|
33
|
-
Story.args = {
|
|
35
|
+
Story.args = _defineProperty({
|
|
34
36
|
fit: false,
|
|
35
37
|
row: false,
|
|
36
38
|
tag: 'div'
|
|
37
|
-
};
|
|
39
|
+
}, 'data-testid', 'test-story');
|
|
38
40
|
Story.argTypes = {};
|
|
39
41
|
//# sourceMappingURL=View.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"View.stories.js","names":["title","Story","props","storyName","args","fit","row","tag","argTypes"],"sources":["../../../src/primitives/View/View.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { View } from './View';\n\nexport default { title: 'Primitives' };\n\nexport const Story = (props) => (\n <View {...props}>\n <span className=\"children\">child:1</span>\n <span className=\"children\">child:2</span>\n </View>\n);\n\nStory.storyName = 'View';\n\nStory.args = {\n fit: false,\n row: false,\n tag: 'div',\n};\n\nStory.argTypes = {};\n"],"mappings":";;;;;;;;;AAAA;;AAEA
|
|
1
|
+
{"version":3,"file":"View.stories.js","names":["title","Story","props","storyName","args","fit","row","tag","argTypes"],"sources":["../../../src/primitives/View/View.stories.jsx"],"sourcesContent":["import * as React from 'react';\n\nimport { View } from './View';\n\nexport default { title: 'Primitives' };\n\nexport const Story = (props) => (\n <View {...props}>\n <span className=\"children\">child:1</span>\n <span className=\"children\">child:2</span>\n </View>\n);\n\nStory.storyName = 'View';\n\nStory.args = {\n fit: false,\n row: false,\n tag: 'div',\n ['data-testid']: 'test-story',\n};\n\nStory.argTypes = {};\n"],"mappings":";;;;;;;;;AAAA;;AAEA;;;;;;;;eAEe;EAAEA,KAAK,EAAE;AAAT,C;;;AAER,IAAMC,KAAK,GAAG,SAARA,KAAQ,CAACC,KAAD;EAAA,oBACnB,oBAAC,UAAD,EAAUA,KAAV,eACE;IAAM,SAAS,EAAC;EAAhB,aADF,eAEE;IAAM,SAAS,EAAC;EAAhB,aAFF,CADmB;AAAA,CAAd;;;AAOPD,KAAK,CAACE,SAAN,GAAkB,MAAlB;AAEAF,KAAK,CAACG,IAAN;EACEC,GAAG,EAAE,KADP;EAEEC,GAAG,EAAE,KAFP;EAGEC,GAAG,EAAE;AAHP,GAIG,aAJH,EAImB,YAJnB;AAOAN,KAAK,CAACO,QAAN,GAAiB,EAAjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.stories.js","names":[],"sources":["../../src/theme/theme.stories.jsx"],"sourcesContent":[""],"mappings":""}
|