beyond-system 0.8.3 → 0.8.5

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.
Files changed (140) hide show
  1. package/dist/components/react/List/List.js +9 -7
  2. package/dist/components/react/List/List.js.map +1 -1
  3. package/dist/styles/global.css +18 -14
  4. package/package.json +83 -84
  5. package/dist/colors/base-colors.d.ts +0 -50
  6. package/dist/colors/gradients.d.ts +0 -7
  7. package/dist/colors/index.d.ts +0 -3
  8. package/dist/colors/shadows.d.ts +0 -7
  9. package/dist/components/react/Calendar/Calendar.d.ts +0 -5
  10. package/dist/components/react/Calendar/Calendar.stories.d.ts +0 -7
  11. package/dist/components/react/Calendar/Calendar.stories.js +0 -35
  12. package/dist/components/react/Calendar/Calendar.stories.js.map +0 -1
  13. package/dist/components/react/Calendar/index.d.ts +0 -1
  14. package/dist/components/react/Checkbox/Checkbox.d.ts +0 -9
  15. package/dist/components/react/Checkbox/Checkbox.stories.d.ts +0 -7
  16. package/dist/components/react/Checkbox/Checkbox.stories.js +0 -51
  17. package/dist/components/react/Checkbox/Checkbox.stories.js.map +0 -1
  18. package/dist/components/react/Checkbox/index.d.ts +0 -1
  19. package/dist/components/react/Chip/Chip.d.ts +0 -11
  20. package/dist/components/react/Chip/Chip.stories.d.ts +0 -10
  21. package/dist/components/react/Chip/Chip.stories.js +0 -74
  22. package/dist/components/react/Chip/Chip.stories.js.map +0 -1
  23. package/dist/components/react/Chip/index.d.ts +0 -1
  24. package/dist/components/react/DatePicker/DatePicker.d.ts +0 -15
  25. package/dist/components/react/DatePicker/DatePicker.stories.d.ts +0 -7
  26. package/dist/components/react/DatePicker/DatePicker.stories.js +0 -46
  27. package/dist/components/react/DatePicker/DatePicker.stories.js.map +0 -1
  28. package/dist/components/react/DatePicker/index.d.ts +0 -1
  29. package/dist/components/react/DateRangeCalendar/DateRangeCalendar.d.ts +0 -4
  30. package/dist/components/react/DateRangeCalendar/DateRangeCalendar.stories.d.ts +0 -7
  31. package/dist/components/react/DateRangeCalendar/DateRangeCalendar.stories.js +0 -44
  32. package/dist/components/react/DateRangeCalendar/DateRangeCalendar.stories.js.map +0 -1
  33. package/dist/components/react/DateRangeCalendar/index.d.ts +0 -1
  34. package/dist/components/react/DateRangeCalendarWithPanel/DateRangeCalendarWithPanel.d.ts +0 -4
  35. package/dist/components/react/DateRangeCalendarWithPanel/DateRangeCalendarWithPanel.stories.d.ts +0 -7
  36. package/dist/components/react/DateRangeCalendarWithPanel/DateRangeCalendarWithPanel.stories.js +0 -44
  37. package/dist/components/react/DateRangeCalendarWithPanel/DateRangeCalendarWithPanel.stories.js.map +0 -1
  38. package/dist/components/react/DateRangeCalendarWithPanel/index.d.ts +0 -1
  39. package/dist/components/react/DateRangePicker/DateRangePicker.d.ts +0 -25
  40. package/dist/components/react/DateRangePicker/DateRangePicker.stories.d.ts +0 -7
  41. package/dist/components/react/DateRangePicker/DateRangePicker.stories.js +0 -51
  42. package/dist/components/react/DateRangePicker/DateRangePicker.stories.js.map +0 -1
  43. package/dist/components/react/DateRangePicker/index.d.ts +0 -1
  44. package/dist/components/react/DefaultButton/DefaultButton.d.ts +0 -12
  45. package/dist/components/react/DefaultButton/DefaultButton.stories.d.ts +0 -7
  46. package/dist/components/react/DefaultButton/DefaultButton.stories.js +0 -86
  47. package/dist/components/react/DefaultButton/DefaultButton.stories.js.map +0 -1
  48. package/dist/components/react/DefaultButton/DefaultButton.styles.d.ts +0 -15
  49. package/dist/components/react/DefaultButton/DefaultButton.variants.d.ts +0 -45
  50. package/dist/components/react/DefaultButton/index.d.ts +0 -1
  51. package/dist/components/react/IconButton/IconButton.d.ts +0 -10
  52. package/dist/components/react/IconButton/IconButton.stories.d.ts +0 -7
  53. package/dist/components/react/IconButton/IconButton.stories.js +0 -68
  54. package/dist/components/react/IconButton/IconButton.stories.js.map +0 -1
  55. package/dist/components/react/IconButton/IconButton.styles.d.ts +0 -13
  56. package/dist/components/react/IconButton/IconButton.variants.d.ts +0 -36
  57. package/dist/components/react/IconButton/index.d.ts +0 -1
  58. package/dist/components/react/List/List.d.ts +0 -10
  59. package/dist/components/react/List/List.stories.d.ts +0 -8
  60. package/dist/components/react/List/List.stories.js +0 -46
  61. package/dist/components/react/List/List.stories.js.map +0 -1
  62. package/dist/components/react/List/index.d.ts +0 -1
  63. package/dist/components/react/Loader/Loader.d.ts +0 -11
  64. package/dist/components/react/Loader/Loader.stories.d.ts +0 -7
  65. package/dist/components/react/Loader/Loader.stories.js +0 -36
  66. package/dist/components/react/Loader/Loader.stories.js.map +0 -1
  67. package/dist/components/react/Loader/index.d.ts +0 -3
  68. package/dist/components/react/MonthPicker/MonthPicker.d.ts +0 -15
  69. package/dist/components/react/MonthPicker/MonthPicker.stories.d.ts +0 -7
  70. package/dist/components/react/MonthPicker/MonthPicker.stories.js +0 -34
  71. package/dist/components/react/MonthPicker/MonthPicker.stories.js.map +0 -1
  72. package/dist/components/react/MonthPicker/index.d.ts +0 -1
  73. package/dist/components/react/MultiSelect/MultiSelect.d.ts +0 -8
  74. package/dist/components/react/MultiSelect/MultiSelect.stories.d.ts +0 -7
  75. package/dist/components/react/MultiSelect/MultiSelect.stories.js +0 -37
  76. package/dist/components/react/MultiSelect/MultiSelect.stories.js.map +0 -1
  77. package/dist/components/react/MultiSelect/index.d.ts +0 -1
  78. package/dist/components/react/OutlineButton/OutlineButton.d.ts +0 -12
  79. package/dist/components/react/OutlineButton/OutlineButton.stories.d.ts +0 -7
  80. package/dist/components/react/OutlineButton/OutlineButton.stories.js +0 -86
  81. package/dist/components/react/OutlineButton/OutlineButton.stories.js.map +0 -1
  82. package/dist/components/react/OutlineButton/OutlineButton.styles.d.ts +0 -12
  83. package/dist/components/react/OutlineButton/OutlineButton.variants.d.ts +0 -36
  84. package/dist/components/react/OutlineButton/index.d.ts +0 -1
  85. package/dist/components/react/RadioInput/RadioInput.d.ts +0 -7
  86. package/dist/components/react/RadioInput/RadioInput.stories.d.ts +0 -7
  87. package/dist/components/react/RadioInput/RadioInput.stories.js +0 -53
  88. package/dist/components/react/RadioInput/RadioInput.stories.js.map +0 -1
  89. package/dist/components/react/RadioInput/RadioInput.styles.d.ts +0 -14
  90. package/dist/components/react/RadioInput/RadioInput.variants.d.ts +0 -21
  91. package/dist/components/react/RadioInput/index.d.ts +0 -1
  92. package/dist/components/react/Select/Select.d.ts +0 -8
  93. package/dist/components/react/Select/Select.stories.d.ts +0 -7
  94. package/dist/components/react/Select/Select.stories.js +0 -36
  95. package/dist/components/react/Select/Select.stories.js.map +0 -1
  96. package/dist/components/react/Select/index.d.ts +0 -1
  97. package/dist/components/react/Switch/Switch.d.ts +0 -10
  98. package/dist/components/react/Switch/Switch.stories.d.ts +0 -7
  99. package/dist/components/react/Switch/Switch.stories.js +0 -53
  100. package/dist/components/react/Switch/Switch.stories.js.map +0 -1
  101. package/dist/components/react/Switch/Switch.styles.d.ts +0 -13
  102. package/dist/components/react/Switch/Switch.variants.d.ts +0 -17
  103. package/dist/components/react/Switch/index.d.ts +0 -1
  104. package/dist/components/react/TextArea/TextArea.d.ts +0 -12
  105. package/dist/components/react/TextArea/TextArea.stories.d.ts +0 -5
  106. package/dist/components/react/TextArea/TextArea.stories.js +0 -22
  107. package/dist/components/react/TextArea/TextArea.stories.js.map +0 -1
  108. package/dist/components/react/TextArea/index.d.ts +0 -1
  109. package/dist/components/react/TextInput/TextInput.d.ts +0 -36
  110. package/dist/components/react/TextInput/TextInput.stories.d.ts +0 -8
  111. package/dist/components/react/TextInput/TextInput.stories.js +0 -85
  112. package/dist/components/react/TextInput/TextInput.stories.js.map +0 -1
  113. package/dist/components/react/TextInput/index.d.ts +0 -1
  114. package/dist/components/react/TransparentButton/TransparentButton.d.ts +0 -7
  115. package/dist/components/react/TransparentButton/TransparentButton.stories.d.ts +0 -7
  116. package/dist/components/react/TransparentButton/TransparentButton.stories.js +0 -53
  117. package/dist/components/react/TransparentButton/TransparentButton.stories.js.map +0 -1
  118. package/dist/components/react/TransparentButton/TransparentButton.styles.d.ts +0 -10
  119. package/dist/components/react/TransparentButton/TransparentButton.variants.d.ts +0 -32
  120. package/dist/components/react/TransparentButton/index.d.ts +0 -1
  121. package/dist/components/react/index.d.ts +0 -19
  122. package/dist/config/index.d.ts +0 -1
  123. package/dist/config/tailwind.config.d.ts +0 -2
  124. package/dist/index.d.ts +0 -3
  125. package/dist/initialize.d.ts +0 -3
  126. package/dist/stories/base-colors/base-colors.stories.d.ts +0 -4
  127. package/dist/stories/base-colors/base-colors.stories.js +0 -65
  128. package/dist/stories/base-colors/base-colors.stories.js.map +0 -1
  129. package/dist/stories/base-colors/base-colors.stories.styles.d.ts +0 -2
  130. package/dist/stories/gradients/gradients.stories.d.ts +0 -4
  131. package/dist/stories/gradients/gradients.stories.js +0 -28
  132. package/dist/stories/gradients/gradients.stories.js.map +0 -1
  133. package/dist/stories/gradients/gradients.stories.styles.d.ts +0 -2
  134. package/dist/stories/shadows/shadows.stories.d.ts +0 -4
  135. package/dist/stories/shadows/shadows.stories.js +0 -26
  136. package/dist/stories/shadows/shadows.stories.js.map +0 -1
  137. package/dist/stories/shadows/shadows.stories.styles.d.ts +0 -2
  138. package/dist/web/border.d.ts +0 -12
  139. package/dist/web/font.d.ts +0 -34
  140. package/dist/web/index.d.ts +0 -2
@@ -1,46 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DatePicker = void 0;
4
- var tslib_1 = require("tslib");
5
- var react_1 = tslib_1.__importDefault(require("react"));
6
- var DatePicker_1 = tslib_1.__importDefault(require("./DatePicker"));
7
- var DatePicker = function (props) {
8
- return react_1.default.createElement(DatePicker_1.default, tslib_1.__assign({}, props, { date: new Date(), className: "w-56" }));
9
- };
10
- exports.DatePicker = DatePicker;
11
- exports.default = {
12
- title: 'Date Inputs/DatePicker',
13
- component: exports.DatePicker,
14
- args: {
15
- shape: 'round',
16
- placeholder: 'dd/mm/yyyy',
17
- closeOnSelect: true,
18
- fill: false,
19
- isValid: false,
20
- isErrored: false,
21
- leftIcon: true,
22
- rightIcon: false,
23
- paintLeftIcon: true,
24
- paintRightIcon: false,
25
- },
26
- argTypes: {
27
- shape: {
28
- control: {
29
- type: 'select',
30
- options: ['square', 'round', 'line', 'none'],
31
- },
32
- },
33
- leftIcon: {
34
- control: {
35
- type: 'boolean',
36
- },
37
- },
38
- rightIcon: {
39
- control: {
40
- type: 'boolean',
41
- },
42
- },
43
- onChange: { action: 'changed' },
44
- },
45
- };
46
- //# sourceMappingURL=DatePicker.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DatePicker.stories.js","sourceRoot":"","sources":["../../../../src/components/react/DatePicker/DatePicker.stories.tsx"],"names":[],"mappings":";;;;AAAA,wDAAyB;AAGzB,oEAA8C;AAIvC,IAAM,UAAU,GAAG,UAAC,KAAY;IACrC,OAAO,8BAAC,oBAAmB,uBAAK,KAAK,IAAE,IAAI,EAAE,IAAI,IAAI,EAAE,EAAE,SAAS,EAAC,MAAM,IAAG,CAAA;AAC9E,CAAC,CAAA;AAFY,QAAA,UAAU,cAEtB;AAED,kBAAe;IACb,KAAK,EAAE,wBAAwB;IAC/B,SAAS,EAAE,kBAAU;IACrB,IAAI,EAAE;QACJ,KAAK,EAAE,OAAO;QACd,WAAW,EAAE,YAAY;QACzB,aAAa,EAAE,IAAI;QACnB,IAAI,EAAE,KAAK;QACX,OAAO,EAAE,KAAK;QACd,SAAS,EAAE,KAAK;QAChB,QAAQ,EAAE,IAAI;QACd,SAAS,EAAE,KAAK;QAChB,aAAa,EAAE,IAAI;QACnB,cAAc,EAAE,KAAK;KACtB;IACD,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC;aAC7C;SACF;QACD,QAAQ,EAAE;YACR,OAAO,EAAE;gBACP,IAAI,EAAE,SAAS;aAChB;SACF;QACD,SAAS,EAAE;YACT,OAAO,EAAE;gBACP,IAAI,EAAE,SAAS;aAChB;SACF;QACD,QAAQ,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE;KAChC;CACM,CAAA"}
@@ -1 +0,0 @@
1
- export { default } from './DatePicker';
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { DateRange } from 'react-date-range';
3
- declare const DateRangeCalendar: (props: React.ComponentProps<typeof DateRange>) => JSX.Element;
4
- export default DateRangeCalendar;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import { Meta } from '@storybook/react/types-6-0';
3
- import DateRangeCalendarComponent from './DateRangeCalendar';
4
- type Props = React.ComponentProps<typeof DateRangeCalendarComponent>;
5
- export declare const DateRangeCalendar: (props: Props) => JSX.Element;
6
- declare const _default: Meta;
7
- export default _default;
@@ -1,44 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DateRangeCalendar = void 0;
4
- var tslib_1 = require("tslib");
5
- var react_1 = tslib_1.__importDefault(require("react"));
6
- var moment_1 = tslib_1.__importDefault(require("moment"));
7
- var DateRangeCalendar_1 = tslib_1.__importDefault(require("./DateRangeCalendar"));
8
- var DateRangeCalendar = function (props) {
9
- var _a = react_1.default.useState({
10
- startDate: (0, moment_1.default)().startOf('week').toDate(),
11
- endDate: (0, moment_1.default)().endOf('week').toDate(),
12
- key: 'selection',
13
- }), range = _a[0], setRange = _a[1];
14
- return (react_1.default.createElement(DateRangeCalendar_1.default, tslib_1.__assign({}, props, { ranges: [range], onChange: function (item) {
15
- var _a;
16
- setRange(item.selection);
17
- (_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, item);
18
- } })));
19
- };
20
- exports.DateRangeCalendar = DateRangeCalendar;
21
- exports.default = {
22
- title: 'Date Inputs/DateRangeCalendar',
23
- component: exports.DateRangeCalendar,
24
- args: {
25
- direction: 'horizontal',
26
- months: 2,
27
- },
28
- argTypes: {
29
- direction: {
30
- control: {
31
- type: 'select',
32
- options: ['horizontal', 'vertical', undefined],
33
- },
34
- },
35
- months: {
36
- control: {
37
- type: 'number',
38
- min: 1,
39
- },
40
- },
41
- onChange: { action: 'changed' },
42
- },
43
- };
44
- //# sourceMappingURL=DateRangeCalendar.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DateRangeCalendar.stories.js","sourceRoot":"","sources":["../../../../src/components/react/DateRangeCalendar/DateRangeCalendar.stories.tsx"],"names":[],"mappings":";;;;AAAA,wDAAyB;AAGzB,0DAA2B;AAE3B,kFAA4D;AAIrD,IAAM,iBAAiB,GAAG,UAAC,KAAY;IACtC,IAAA,KAAoB,eAAK,CAAC,QAAQ,CAAQ;QAC9C,SAAS,EAAE,IAAA,gBAAM,GAAE,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE;QAC5C,OAAO,EAAE,IAAA,gBAAM,GAAE,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE;QACxC,GAAG,EAAE,WAAW;KACjB,CAAC,EAJK,KAAK,QAAA,EAAE,QAAQ,QAIpB,CAAA;IAEF,OAAO,CACL,8BAAC,2BAA0B,uBACrB,KAAK,IACT,MAAM,EAAE,CAAC,KAAK,CAAC,EACf,QAAQ,EAAE,UAAC,IAAI;;YACb,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;YACxB,MAAA,KAAK,CAAC,QAAQ,sDAAG,IAAI,CAAC,CAAA;QACxB,CAAC,IACD,CACH,CAAA;AACH,CAAC,CAAA;AAjBY,QAAA,iBAAiB,qBAiB7B;AAED,kBAAe;IACb,KAAK,EAAE,+BAA+B;IACtC,SAAS,EAAE,yBAAiB;IAC5B,IAAI,EAAE;QACJ,SAAS,EAAE,YAAY;QACvB,MAAM,EAAE,CAAC;KACV;IACD,QAAQ,EAAE;QACR,SAAS,EAAE;YACT,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,CAAC,YAAY,EAAE,UAAU,EAAE,SAAS,CAAC;aAC/C;SACF;QACD,MAAM,EAAE;YACN,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,GAAG,EAAE,CAAC;aACP;SACF;QACD,QAAQ,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE;KAChC;CACM,CAAA"}
@@ -1 +0,0 @@
1
- export { default } from './DateRangeCalendar';
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { DateRangePicker } from 'react-date-range';
3
- declare const DateRangeCalendarWithPanel: (props: React.ComponentProps<typeof DateRangePicker>) => JSX.Element;
4
- export default DateRangeCalendarWithPanel;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import { Meta } from '@storybook/react/types-6-0';
3
- import DateRangeCalendarWithPanelComponent from './DateRangeCalendarWithPanel';
4
- type Props = React.ComponentProps<typeof DateRangeCalendarWithPanelComponent>;
5
- export declare const DateRangeCalendarWithPanel: (props: Props) => JSX.Element;
6
- declare const _default: Meta;
7
- export default _default;
@@ -1,44 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DateRangeCalendarWithPanel = void 0;
4
- var tslib_1 = require("tslib");
5
- var react_1 = tslib_1.__importDefault(require("react"));
6
- var moment_1 = tslib_1.__importDefault(require("moment"));
7
- var DateRangeCalendarWithPanel_1 = tslib_1.__importDefault(require("./DateRangeCalendarWithPanel"));
8
- var DateRangeCalendarWithPanel = function (props) {
9
- var _a = react_1.default.useState({
10
- startDate: (0, moment_1.default)().startOf('week').toDate(),
11
- endDate: (0, moment_1.default)().endOf('week').toDate(),
12
- key: 'selection',
13
- }), range = _a[0], setRange = _a[1];
14
- return (react_1.default.createElement(DateRangeCalendarWithPanel_1.default, tslib_1.__assign({}, props, { ranges: [range], onChange: function (item) {
15
- var _a;
16
- setRange(item.selection);
17
- (_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, item);
18
- } })));
19
- };
20
- exports.DateRangeCalendarWithPanel = DateRangeCalendarWithPanel;
21
- exports.default = {
22
- title: 'Date Inputs/DateRangeCalendarWithPanel',
23
- component: exports.DateRangeCalendarWithPanel,
24
- args: {
25
- direction: 'horizontal',
26
- months: 2,
27
- },
28
- argTypes: {
29
- direction: {
30
- control: {
31
- type: 'select',
32
- options: ['horizontal', 'vertical', undefined],
33
- },
34
- },
35
- months: {
36
- control: {
37
- type: 'number',
38
- min: 1,
39
- },
40
- },
41
- onChange: { action: 'changed' },
42
- },
43
- };
44
- //# sourceMappingURL=DateRangeCalendarWithPanel.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DateRangeCalendarWithPanel.stories.js","sourceRoot":"","sources":["../../../../src/components/react/DateRangeCalendarWithPanel/DateRangeCalendarWithPanel.stories.tsx"],"names":[],"mappings":";;;;AAAA,wDAAyB;AAGzB,0DAA2B;AAE3B,oGAA8E;AAIvE,IAAM,0BAA0B,GAAG,UAAC,KAAY;IAC/C,IAAA,KAAoB,eAAK,CAAC,QAAQ,CAAQ;QAC9C,SAAS,EAAE,IAAA,gBAAM,GAAE,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE;QAC5C,OAAO,EAAE,IAAA,gBAAM,GAAE,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE;QACxC,GAAG,EAAE,WAAW;KACjB,CAAC,EAJK,KAAK,QAAA,EAAE,QAAQ,QAIpB,CAAA;IAEF,OAAO,CACL,8BAAC,oCAAmC,uBAC9B,KAAK,IACT,MAAM,EAAE,CAAC,KAAK,CAAC,EACf,QAAQ,EAAE,UAAC,IAAI;;YACb,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;YACxB,MAAA,KAAK,CAAC,QAAQ,sDAAG,IAAI,CAAC,CAAA;QACxB,CAAC,IACD,CACH,CAAA;AACH,CAAC,CAAA;AAjBY,QAAA,0BAA0B,8BAiBtC;AAED,kBAAe;IACb,KAAK,EAAE,wCAAwC;IAC/C,SAAS,EAAE,kCAA0B;IACrC,IAAI,EAAE;QACJ,SAAS,EAAE,YAAY;QACvB,MAAM,EAAE,CAAC;KACV;IACD,QAAQ,EAAE;QACR,SAAS,EAAE;YACT,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,CAAC,YAAY,EAAE,UAAU,EAAE,SAAS,CAAC;aAC/C;SACF;QACD,MAAM,EAAE;YACN,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,GAAG,EAAE,CAAC;aACP;SACF;QACD,QAAQ,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE;KAChC;CACM,CAAA"}
@@ -1 +0,0 @@
1
- export { default } from './DateRangeCalendarWithPanel';
@@ -1,25 +0,0 @@
1
- import React from 'react';
2
- import moment from 'moment';
3
- import { Range } from 'react-date-range';
4
- import DateRangeCalendarWithPanel from '../DateRangeCalendarWithPanel';
5
- type DateRangeCalendarProps = Omit<React.ComponentProps<typeof DateRangeCalendarWithPanel>, 'onChange'>;
6
- interface DateRangePickerProps extends DateRangeCalendarProps {
7
- fill?: boolean;
8
- shape?: 'square' | 'round' | 'line' | 'none';
9
- leftIcon?: boolean | React.ReactNode;
10
- rightIcon?: boolean | React.ReactNode;
11
- isValid?: boolean;
12
- isErrored?: boolean;
13
- paintLeftIcon?: boolean;
14
- paintRightIcon?: boolean;
15
- onChange: (r: Range & {
16
- isSelecting: boolean;
17
- }) => void;
18
- range: {
19
- startDate: moment.MomentInput;
20
- endDate: moment.MomentInput;
21
- };
22
- closeOnSelect?: boolean;
23
- }
24
- declare const DateRangePicker: (props: DateRangePickerProps) => JSX.Element;
25
- export default DateRangePicker;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import { Meta } from '@storybook/react/types-6-0';
3
- import DateRangePickerComponent from './DateRangePicker';
4
- type Props = React.ComponentProps<typeof DateRangePickerComponent>;
5
- export declare const DateRangePicker: (props: Props) => JSX.Element;
6
- declare const _default: Meta;
7
- export default _default;
@@ -1,51 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DateRangePicker = void 0;
4
- var tslib_1 = require("tslib");
5
- var react_1 = tslib_1.__importDefault(require("react"));
6
- var DateRangePicker_1 = tslib_1.__importDefault(require("./DateRangePicker"));
7
- var moment_1 = tslib_1.__importDefault(require("moment"));
8
- var DateRangePicker = function (props) {
9
- var defaultRange = {
10
- startDate: (0, moment_1.default)().startOf('week'),
11
- endDate: (0, moment_1.default)().endOf('week'),
12
- };
13
- return (react_1.default.createElement(DateRangePicker_1.default, tslib_1.__assign({}, props, { range: defaultRange, className: "w-56" })));
14
- };
15
- exports.DateRangePicker = DateRangePicker;
16
- exports.default = {
17
- title: 'Date Inputs/DateRangePicker',
18
- component: exports.DateRangePicker,
19
- args: {
20
- shape: 'round',
21
- placeholder: 'dd/mm/yyyy',
22
- closeOnSelect: true,
23
- fill: false,
24
- isValid: false,
25
- isErrored: false,
26
- leftIcon: true,
27
- rightIcon: false,
28
- paintLeftIcon: true,
29
- paintRightIcon: false,
30
- },
31
- argTypes: {
32
- shape: {
33
- control: {
34
- type: 'select',
35
- options: ['square', 'round', 'line', 'none'],
36
- },
37
- },
38
- leftIcon: {
39
- control: {
40
- type: 'boolean',
41
- },
42
- },
43
- rightIcon: {
44
- control: {
45
- type: 'boolean',
46
- },
47
- },
48
- onChange: { action: 'changed' },
49
- },
50
- };
51
- //# sourceMappingURL=DateRangePicker.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DateRangePicker.stories.js","sourceRoot":"","sources":["../../../../src/components/react/DateRangePicker/DateRangePicker.stories.tsx"],"names":[],"mappings":";;;;AAAA,wDAAyB;AAGzB,8EAAwD;AACxD,0DAA2B;AAIpB,IAAM,eAAe,GAAG,UAAC,KAAY;IAC1C,IAAM,YAAY,GAAG;QACnB,SAAS,EAAE,IAAA,gBAAM,GAAE,CAAC,OAAO,CAAC,MAAM,CAAC;QACnC,OAAO,EAAE,IAAA,gBAAM,GAAE,CAAC,KAAK,CAAC,MAAM,CAAC;KAChC,CAAA;IAED,OAAO,CACL,8BAAC,yBAAwB,uBACnB,KAAK,IACT,KAAK,EAAE,YAAY,EACnB,SAAS,EAAC,MAAM,IAChB,CACH,CAAA;AACH,CAAC,CAAA;AAbY,QAAA,eAAe,mBAa3B;AAED,kBAAe;IACb,KAAK,EAAE,6BAA6B;IACpC,SAAS,EAAE,uBAAe;IAC1B,IAAI,EAAE;QACJ,KAAK,EAAE,OAAO;QACd,WAAW,EAAE,YAAY;QACzB,aAAa,EAAE,IAAI;QACnB,IAAI,EAAE,KAAK;QACX,OAAO,EAAE,KAAK;QACd,SAAS,EAAE,KAAK;QAChB,QAAQ,EAAE,IAAI;QACd,SAAS,EAAE,KAAK;QAChB,aAAa,EAAE,IAAI;QACnB,cAAc,EAAE,KAAK;KACtB;IACD,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC;aAC7C;SACF;QACD,QAAQ,EAAE;YACR,OAAO,EAAE;gBACP,IAAI,EAAE,SAAS;aAChB;SACF;QACD,SAAS,EAAE;YACT,OAAO,EAAE;gBACP,IAAI,EAAE,SAAS;aAChB;SACF;QACD,QAAQ,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE;KAChC;CACM,CAAA"}
@@ -1 +0,0 @@
1
- export { default } from './DateRangePicker';
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- declare const DefaultButton: React.ForwardRefExoticComponent<{
3
- text: string;
4
- variant?: "primary" | "light" | "dark" | undefined;
5
- size?: "SM" | "MD" | undefined;
6
- shape?: "square" | "round" | undefined;
7
- leftIcon?: React.ReactNode;
8
- rightIcon?: React.ReactNode;
9
- fullWidth?: boolean | undefined;
10
- loading?: boolean | undefined;
11
- } & React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
12
- export default DefaultButton;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import { Meta } from '@storybook/react/types-6-0';
3
- import ButtonComponent from './DefaultButton';
4
- type Props = React.ComponentProps<typeof ButtonComponent>;
5
- export declare const DefaultButton: (props: Props) => JSX.Element;
6
- declare const _default: Meta;
7
- export default _default;
@@ -1,86 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DefaultButton = void 0;
4
- var tslib_1 = require("tslib");
5
- var react_1 = tslib_1.__importDefault(require("react"));
6
- var styled_components_1 = tslib_1.__importDefault(require("styled-components"));
7
- var md_1 = require("react-icons/md");
8
- var DefaultButton_1 = tslib_1.__importDefault(require("./DefaultButton"));
9
- var DefaultButton_variants_1 = require("./DefaultButton.variants");
10
- var Container = styled_components_1.default.div(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 1rem;\n"], ["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 1rem;\n"])));
11
- var DefaultButton = function (props) {
12
- return (react_1.default.createElement(Container, null,
13
- react_1.default.createElement(DefaultButton_1.default, tslib_1.__assign({}, props)),
14
- react_1.default.createElement(DefaultButton_1.default, tslib_1.__assign({}, props, { leftIcon: react_1.default.createElement(md_1.MdCheck, null) })),
15
- react_1.default.createElement(DefaultButton_1.default, tslib_1.__assign({}, props, { rightIcon: react_1.default.createElement(md_1.MdCheck, null) })),
16
- react_1.default.createElement(DefaultButton_1.default, tslib_1.__assign({}, props, { leftIcon: react_1.default.createElement(md_1.MdCheck, null), rightIcon: react_1.default.createElement(md_1.MdCheck, null) }))));
17
- };
18
- exports.DefaultButton = DefaultButton;
19
- exports.default = {
20
- title: 'Buttons/DefaultButton',
21
- parameters: {
22
- component: exports.DefaultButton,
23
- },
24
- args: {
25
- text: 'Button',
26
- variant: 'primary',
27
- size: 'MD',
28
- shape: 'square',
29
- fullWidth: false,
30
- disabled: false,
31
- loading: false,
32
- },
33
- argTypes: {
34
- text: {
35
- control: {
36
- type: 'text',
37
- },
38
- },
39
- leftIcon: {
40
- control: {},
41
- },
42
- rightIcon: {
43
- control: {},
44
- },
45
- variant: {
46
- control: {
47
- type: 'select',
48
- options: Object.keys(DefaultButton_variants_1.DEFAULT_BUTTON_VARIANTS.color),
49
- },
50
- },
51
- size: {
52
- control: {
53
- type: 'select',
54
- options: Object.keys(DefaultButton_variants_1.DEFAULT_BUTTON_VARIANTS.size),
55
- },
56
- },
57
- shape: {
58
- control: {
59
- type: 'select',
60
- options: Object.keys(DefaultButton_variants_1.DEFAULT_BUTTON_VARIANTS.shape),
61
- },
62
- },
63
- loading: {
64
- control: {
65
- type: 'boolean',
66
- },
67
- },
68
- fullWidth: {
69
- control: {
70
- type: 'boolean',
71
- },
72
- },
73
- disabled: {
74
- control: {
75
- type: 'boolean',
76
- },
77
- },
78
- onClick: {
79
- control: {
80
- action: 'clicked',
81
- },
82
- },
83
- },
84
- };
85
- var templateObject_1;
86
- //# sourceMappingURL=DefaultButton.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DefaultButton.stories.js","sourceRoot":"","sources":["../../../../src/components/react/DefaultButton/DefaultButton.stories.tsx"],"names":[],"mappings":";;;;AAAA,wDAAyB;AACzB,gFAAsC;AAEtC,qCAAwC;AAExC,0EAA6C;AAC7C,mEAAkE;AAIlE,IAAM,SAAS,GAAG,2BAAM,CAAC,GAAG,sKAAA,2FAK3B,IAAA,CAAA;AAEM,IAAM,aAAa,GAAG,UAAC,KAAY;IACxC,OAAO,CACL,8BAAC,SAAS;QACR,8BAAC,uBAAe,uBAAK,KAAK,EAAI;QAC9B,8BAAC,uBAAe,uBAAK,KAAK,IAAE,QAAQ,EAAE,8BAAC,YAAO,OAAG,IAAI;QACrD,8BAAC,uBAAe,uBAAK,KAAK,IAAE,SAAS,EAAE,8BAAC,YAAO,OAAG,IAAI;QACtD,8BAAC,uBAAe,uBACV,KAAK,IACT,QAAQ,EAAE,8BAAC,YAAO,OAAG,EACrB,SAAS,EAAE,8BAAC,YAAO,O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}
@@ -1,15 +0,0 @@
1
- type StyledButtonProps = {
2
- padding: string;
3
- color: string;
4
- backgroundColor: string;
5
- borderRadius: string;
6
- borderColor: string;
7
- fontSize: string;
8
- gap: string;
9
- hoverBackgroundColor: string;
10
- activeBackgroundColor: string;
11
- fullWidth: boolean;
12
- loading: boolean;
13
- };
14
- export declare const StyledButtonContainer: import("styled-components").StyledComponent<"button", any, StyledButtonProps, never>;
15
- export {};
@@ -1,45 +0,0 @@
1
- export declare const DEFAULT_BUTTON_VARIANTS: {
2
- color: {
3
- primary: {
4
- color: string;
5
- borderColor: string;
6
- backgroundColor: string;
7
- hoverBackgroundColor: string;
8
- activeBackgroundColor: string;
9
- };
10
- light: {
11
- color: string;
12
- borderColor: string;
13
- backgroundColor: string;
14
- hoverBackgroundColor: string;
15
- activeBackgroundColor: string;
16
- };
17
- dark: {
18
- color: string;
19
- borderColor: string;
20
- backgroundColor: string;
21
- hoverBackgroundColor: string;
22
- activeBackgroundColor: string;
23
- };
24
- };
25
- size: {
26
- SM: {
27
- fontSize: string;
28
- padding: string;
29
- gap: string;
30
- };
31
- MD: {
32
- fontSize: string;
33
- padding: string;
34
- gap: string;
35
- };
36
- };
37
- shape: {
38
- square: {
39
- borderRadius: string;
40
- };
41
- round: {
42
- borderRadius: string;
43
- };
44
- };
45
- };
@@ -1 +0,0 @@
1
- export { default } from './DefaultButton';
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- declare const IconButton: React.ForwardRefExoticComponent<{
3
- children: React.ReactNode;
4
- variant?: "primary" | "light" | undefined;
5
- size?: "SM" | "MD" | undefined;
6
- shape?: "square" | "round" | undefined;
7
- fullWidth?: boolean | undefined;
8
- loading?: boolean | undefined;
9
- } & React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
10
- export default IconButton;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import { Meta } from '@storybook/react/types-6-0';
3
- import ButtonComponent from './IconButton';
4
- type Props = React.ComponentProps<typeof ButtonComponent>;
5
- export declare const IconButton: (props: Props) => JSX.Element;
6
- declare const _default: Meta;
7
- export default _default;
@@ -1,68 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IconButton = void 0;
4
- var tslib_1 = require("tslib");
5
- var react_1 = tslib_1.__importDefault(require("react"));
6
- var md_1 = require("react-icons/md");
7
- var IconButton_1 = tslib_1.__importDefault(require("./IconButton"));
8
- var IconButton_variants_1 = require("./IconButton.variants");
9
- var IconButton = function (props) {
10
- return (react_1.default.createElement(IconButton_1.default, tslib_1.__assign({}, props),
11
- react_1.default.createElement(md_1.MdCheck, null)));
12
- };
13
- exports.IconButton = IconButton;
14
- exports.default = {
15
- title: 'Buttons/IconButton',
16
- parameters: {
17
- component: exports.IconButton,
18
- },
19
- args: {
20
- children: 'Button',
21
- variant: 'primary',
22
- size: 'MD',
23
- shape: 'square',
24
- disabled: false,
25
- loading: false,
26
- },
27
- argTypes: {
28
- children: {
29
- control: {
30
- type: 'text',
31
- },
32
- },
33
- variant: {
34
- control: {
35
- type: 'select',
36
- options: Object.keys(IconButton_variants_1.ICON_BUTTON_VARIANTS.color),
37
- },
38
- },
39
- size: {
40
- control: {
41
- type: 'select',
42
- options: Object.keys(IconButton_variants_1.ICON_BUTTON_VARIANTS.size),
43
- },
44
- },
45
- shape: {
46
- control: {
47
- type: 'select',
48
- options: Object.keys(IconButton_variants_1.ICON_BUTTON_VARIANTS.shape),
49
- },
50
- },
51
- loading: {
52
- control: {
53
- type: 'boolean',
54
- },
55
- },
56
- disabled: {
57
- control: {
58
- type: 'boolean',
59
- },
60
- },
61
- onClick: {
62
- control: {
63
- action: 'clicked',
64
- },
65
- },
66
- },
67
- };
68
- //# sourceMappingURL=IconButton.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IconButton.stories.js","sourceRoot":"","sources":["../../../../src/components/react/IconButton/IconButton.stories.tsx"],"names":[],"mappings":";;;;AAAA,wDAAyB;AAEzB,q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3
- color: string;
4
- backgroundColor: string;
5
- borderRadius: string;
6
- borderColor: string;
7
- fontSize: string;
8
- hoverBackgroundColor: string;
9
- activeBackgroundColor: string;
10
- loading: boolean;
11
- };
12
- export declare const StyledButtonContainer: import("styled-components").StyledComponent<"button", any, StyledButtonProps, never>;
13
- export {};
@@ -1,36 +0,0 @@
1
- export declare const ICON_BUTTON_VARIANTS: {
2
- color: {
3
- primary: {
4
- color: string;
5
- borderColor: string;
6
- backgroundColor: string;
7
- hoverBackgroundColor: string;
8
- activeBackgroundColor: string;
9
- };
10
- light: {
11
- color: string;
12
- borderColor: string;
13
- backgroundColor: string;
14
- hoverBackgroundColor: string;
15
- activeBackgroundColor: string;
16
- };
17
- };
18
- size: {
19
- SM: {
20
- fontSize: string;
21
- padding: string;
22
- };
23
- MD: {
24
- fontSize: string;
25
- padding: string;
26
- };
27
- };
28
- shape: {
29
- square: {
30
- borderRadius: string;
31
- };
32
- round: {
33
- borderRadius: string;
34
- };
35
- };
36
- };
@@ -1 +0,0 @@
1
- export { default } from './IconButton';
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- interface ListItemProps extends React.ComponentProps<'button'> {
3
- selected?: boolean;
4
- as?: React.ElementType | JSX.Element;
5
- }
6
- declare const List: {
7
- Container: (props: React.ComponentProps<'div'>) => JSX.Element;
8
- Item: ({ selected, as, ...props }: ListItemProps) => JSX.Element;
9
- };
10
- export default List;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import { Meta } from '@storybook/react/types-6-0';
3
- import ListComponent from './List';
4
- type Props = React.ComponentProps<typeof ListComponent.Item>;
5
- export declare const List: (props: Props) => JSX.Element;
6
- export declare const ListItem: (props: Props) => JSX.Element;
7
- declare const _default: Meta;
8
- export default _default;