@seeqdev/qomponents 0.0.95 → 0.0.96

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 (169) hide show
  1. package/dist/TextArea/TextArea.types.d.ts +2 -0
  2. package/dist/TextField/TextField.types.d.ts +1 -0
  3. package/dist/index.esm.js +4 -4
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/index.js +4 -4
  6. package/dist/index.js.map +1 -1
  7. package/package.json +1 -1
  8. package/dist/Accordion/Accordion.js +0 -9
  9. package/dist/Accordion/Accordion.js.map +0 -1
  10. package/dist/Accordion/Accordion.stories.js +0 -115
  11. package/dist/Accordion/Accordion.stories.js.map +0 -1
  12. package/dist/Accordion/Accordion.test.js +0 -55
  13. package/dist/Accordion/Accordion.test.js.map +0 -1
  14. package/dist/Accordion/Accordion.types.js +0 -2
  15. package/dist/Accordion/Accordion.types.js.map +0 -1
  16. package/dist/Accordion/index.js +0 -2
  17. package/dist/Accordion/index.js.map +0 -1
  18. package/dist/Button/Button.js +0 -90
  19. package/dist/Button/Button.js.map +0 -1
  20. package/dist/Button/Button.stories.js +0 -98
  21. package/dist/Button/Button.stories.js.map +0 -1
  22. package/dist/Button/Button.test.js +0 -49
  23. package/dist/Button/Button.test.js.map +0 -1
  24. package/dist/Button/Button.types.js +0 -5
  25. package/dist/Button/Button.types.js.map +0 -1
  26. package/dist/Button/index.js +0 -2
  27. package/dist/Button/index.js.map +0 -1
  28. package/dist/ButtonWithDropdown/ButtonWithDropdown.js +0 -66
  29. package/dist/ButtonWithDropdown/ButtonWithDropdown.js.map +0 -1
  30. package/dist/ButtonWithDropdown/ButtonWithDropdown.stories.js +0 -96
  31. package/dist/ButtonWithDropdown/ButtonWithDropdown.stories.js.map +0 -1
  32. package/dist/ButtonWithDropdown/ButtonWithDropdown.test.js +0 -72
  33. package/dist/ButtonWithDropdown/ButtonWithDropdown.test.js.map +0 -1
  34. package/dist/ButtonWithDropdown/ButtonWithDropdown.types.js +0 -2
  35. package/dist/ButtonWithDropdown/ButtonWithDropdown.types.js.map +0 -1
  36. package/dist/ButtonWithDropdown/index.js +0 -2
  37. package/dist/ButtonWithDropdown/index.js.map +0 -1
  38. package/dist/ButtonWithPopover/ButtonWithPopover.js +0 -53
  39. package/dist/ButtonWithPopover/ButtonWithPopover.js.map +0 -1
  40. package/dist/ButtonWithPopover/ButtonWithPopover.stories.js +0 -75
  41. package/dist/ButtonWithPopover/ButtonWithPopover.stories.js.map +0 -1
  42. package/dist/ButtonWithPopover/ButtonWithPopover.test.js +0 -82
  43. package/dist/ButtonWithPopover/ButtonWithPopover.test.js.map +0 -1
  44. package/dist/ButtonWithPopover/ButtonWithPopover.types.js +0 -2
  45. package/dist/ButtonWithPopover/ButtonWithPopover.types.js.map +0 -1
  46. package/dist/ButtonWithPopover/index.js +0 -2
  47. package/dist/ButtonWithPopover/index.js.map +0 -1
  48. package/dist/Checkbox/Checkbox.js +0 -26
  49. package/dist/Checkbox/Checkbox.js.map +0 -1
  50. package/dist/Checkbox/Checkbox.stories.js +0 -34
  51. package/dist/Checkbox/Checkbox.stories.js.map +0 -1
  52. package/dist/Checkbox/Checkbox.test.js +0 -94
  53. package/dist/Checkbox/Checkbox.test.js.map +0 -1
  54. package/dist/Checkbox/Checkbox.types.js +0 -2
  55. package/dist/Checkbox/Checkbox.types.js.map +0 -1
  56. package/dist/Checkbox/index.js +0 -2
  57. package/dist/Checkbox/index.js.map +0 -1
  58. package/dist/Icon/Icon.js +0 -55
  59. package/dist/Icon/Icon.js.map +0 -1
  60. package/dist/Icon/Icon.stories.js +0 -45
  61. package/dist/Icon/Icon.stories.js.map +0 -1
  62. package/dist/Icon/Icon.test.js +0 -55
  63. package/dist/Icon/Icon.test.js.map +0 -1
  64. package/dist/Icon/Icon.types.js +0 -16
  65. package/dist/Icon/Icon.types.js.map +0 -1
  66. package/dist/Icon/index.js +0 -2
  67. package/dist/Icon/index.js.map +0 -1
  68. package/dist/Modal/Modal.js +0 -100
  69. package/dist/Modal/Modal.js.map +0 -1
  70. package/dist/Modal/Modal.stories.js +0 -127
  71. package/dist/Modal/Modal.stories.js.map +0 -1
  72. package/dist/Modal/Modal.test.js +0 -108
  73. package/dist/Modal/Modal.test.js.map +0 -1
  74. package/dist/Modal/Modal.types.js +0 -2
  75. package/dist/Modal/Modal.types.js.map +0 -1
  76. package/dist/Modal/index.js +0 -2
  77. package/dist/Modal/index.js.map +0 -1
  78. package/dist/SeeqActionDropdown/SeeqActionDropdown.js +0 -48
  79. package/dist/SeeqActionDropdown/SeeqActionDropdown.js.map +0 -1
  80. package/dist/SeeqActionDropdown/SeeqActionDropdown.stories.js +0 -80
  81. package/dist/SeeqActionDropdown/SeeqActionDropdown.stories.js.map +0 -1
  82. package/dist/SeeqActionDropdown/SeeqActionDropdown.test.js +0 -73
  83. package/dist/SeeqActionDropdown/SeeqActionDropdown.test.js.map +0 -1
  84. package/dist/SeeqActionDropdown/SeeqActionDropdown.types.js +0 -2
  85. package/dist/SeeqActionDropdown/SeeqActionDropdown.types.js.map +0 -1
  86. package/dist/SeeqActionDropdown/index.js +0 -2
  87. package/dist/SeeqActionDropdown/index.js.map +0 -1
  88. package/dist/SeeqActionDropdown/variants.js +0 -23
  89. package/dist/SeeqActionDropdown/variants.js.map +0 -1
  90. package/dist/Select/Select.js +0 -174
  91. package/dist/Select/Select.js.map +0 -1
  92. package/dist/Select/Select.stories.js +0 -80
  93. package/dist/Select/Select.stories.js.map +0 -1
  94. package/dist/Select/Select.test.js +0 -182
  95. package/dist/Select/Select.test.js.map +0 -1
  96. package/dist/Select/Select.types.js +0 -2
  97. package/dist/Select/Select.types.js.map +0 -1
  98. package/dist/Select/index.js +0 -3
  99. package/dist/Select/index.js.map +0 -1
  100. package/dist/Tabs/Tabs.js +0 -22
  101. package/dist/Tabs/Tabs.js.map +0 -1
  102. package/dist/Tabs/Tabs.stories.js +0 -91
  103. package/dist/Tabs/Tabs.stories.js.map +0 -1
  104. package/dist/Tabs/Tabs.test.js +0 -91
  105. package/dist/Tabs/Tabs.test.js.map +0 -1
  106. package/dist/Tabs/Tabs.types.js +0 -2
  107. package/dist/Tabs/Tabs.types.js.map +0 -1
  108. package/dist/Tabs/index.js +0 -2
  109. package/dist/Tabs/index.js.map +0 -1
  110. package/dist/TextArea/TextArea.js +0 -25
  111. package/dist/TextArea/TextArea.js.map +0 -1
  112. package/dist/TextArea/TextArea.stories.js +0 -42
  113. package/dist/TextArea/TextArea.stories.js.map +0 -1
  114. package/dist/TextArea/TextArea.test.js +0 -68
  115. package/dist/TextArea/TextArea.test.js.map +0 -1
  116. package/dist/TextArea/TextArea.types.js +0 -2
  117. package/dist/TextArea/TextArea.types.js.map +0 -1
  118. package/dist/TextArea/index.js +0 -2
  119. package/dist/TextArea/index.js.map +0 -1
  120. package/dist/TextField/TextField.js +0 -77
  121. package/dist/TextField/TextField.js.map +0 -1
  122. package/dist/TextField/TextField.stories.js +0 -48
  123. package/dist/TextField/TextField.stories.js.map +0 -1
  124. package/dist/TextField/TextField.test.js +0 -39
  125. package/dist/TextField/TextField.test.js.map +0 -1
  126. package/dist/TextField/TextField.types.js +0 -2
  127. package/dist/TextField/TextField.types.js.map +0 -1
  128. package/dist/TextField/index.js +0 -2
  129. package/dist/TextField/index.js.map +0 -1
  130. package/dist/ToolbarButton/ToolbarButton.js +0 -75
  131. package/dist/ToolbarButton/ToolbarButton.js.map +0 -1
  132. package/dist/ToolbarButton/ToolbarButton.stories.js +0 -94
  133. package/dist/ToolbarButton/ToolbarButton.stories.js.map +0 -1
  134. package/dist/ToolbarButton/ToolbarButton.test.js +0 -93
  135. package/dist/ToolbarButton/ToolbarButton.test.js.map +0 -1
  136. package/dist/ToolbarButton/ToolbarButton.types.js +0 -2
  137. package/dist/ToolbarButton/ToolbarButton.types.js.map +0 -1
  138. package/dist/ToolbarButton/index.js +0 -2
  139. package/dist/ToolbarButton/index.js.map +0 -1
  140. package/dist/Tooltip/QTip.stories.js +0 -45
  141. package/dist/Tooltip/QTip.stories.js.map +0 -1
  142. package/dist/Tooltip/QTip.types.js +0 -2
  143. package/dist/Tooltip/QTip.types.js.map +0 -1
  144. package/dist/Tooltip/QTipPerformance.stories.js +0 -30
  145. package/dist/Tooltip/QTipPerformance.stories.js.map +0 -1
  146. package/dist/Tooltip/Qtip.js +0 -155
  147. package/dist/Tooltip/Qtip.js.map +0 -1
  148. package/dist/Tooltip/Tooltip.js +0 -36
  149. package/dist/Tooltip/Tooltip.js.map +0 -1
  150. package/dist/Tooltip/Tooltip.stories.js +0 -32
  151. package/dist/Tooltip/Tooltip.stories.js.map +0 -1
  152. package/dist/Tooltip/Tooltip.types.js +0 -3
  153. package/dist/Tooltip/Tooltip.types.js.map +0 -1
  154. package/dist/Tooltip/TooltipPerformance.stories.js +0 -30
  155. package/dist/Tooltip/TooltipPerformance.stories.js.map +0 -1
  156. package/dist/Tooltip/index.js +0 -3
  157. package/dist/Tooltip/index.js.map +0 -1
  158. package/dist/Tooltip/qTip.utilities.js +0 -11
  159. package/dist/Tooltip/qTip.utilities.js.map +0 -1
  160. package/dist/types.js +0 -2
  161. package/dist/types.js.map +0 -1
  162. package/dist/utils/browserId.js +0 -29
  163. package/dist/utils/browserId.js.map +0 -1
  164. package/dist/utils/svg.js +0 -20
  165. package/dist/utils/svg.js.map +0 -1
  166. package/dist/utils/validateStyleDimension.js +0 -14
  167. package/dist/utils/validateStyleDimension.js.map +0 -1
  168. package/dist/utils/validateStyleDimension.test.js +0 -20
  169. package/dist/utils/validateStyleDimension.test.js.map +0 -1
@@ -1,94 +0,0 @@
1
- import React from 'react';
2
- import '@testing-library/jest-dom';
3
- import { render, screen } from '@testing-library/react';
4
- import { Checkbox } from './Checkbox';
5
- import userEvent from '@testing-library/user-event';
6
- describe('Checkbox', () => {
7
- class Context {
8
- testId = 'checkboxTestId';
9
- props = {
10
- onChange: jest.fn(),
11
- checked: false,
12
- testId: this.testId,
13
- };
14
- }
15
- let tc;
16
- beforeEach(() => {
17
- tc = new Context();
18
- });
19
- const renderCheckbox = (props) => render(React.createElement(Checkbox, { ...props }));
20
- it('renders checkbox', () => {
21
- renderCheckbox(tc.props);
22
- expect(screen.getByTestId(tc.testId)).toBeInTheDocument();
23
- });
24
- it('renders radio', () => {
25
- renderCheckbox({ ...tc.props, type: 'radio' });
26
- expect(screen.getByTestId(tc.testId)).toHaveProperty('type', 'radio');
27
- });
28
- it('renders label', () => {
29
- const label = 'look at this checkbox!';
30
- renderCheckbox({ ...tc.props, label });
31
- expect(screen.getByText(label)).toBeInTheDocument();
32
- });
33
- it('respects checked', () => {
34
- renderCheckbox({ ...tc.props, checked: true });
35
- expect(screen.getByTestId(tc.testId)).toBeChecked();
36
- });
37
- it('calls onChange handler', async () => {
38
- const onChange = jest.fn();
39
- renderCheckbox({ ...tc.props, onChange });
40
- await userEvent.click(screen.getByTestId(tc.testId));
41
- expect(onChange).toHaveBeenCalled();
42
- });
43
- it('calls onKeyDown handler', async () => {
44
- const onKeyDown = jest.fn();
45
- renderCheckbox({ ...tc.props, onKeyDown });
46
- await userEvent.type(screen.getByTestId(tc.testId), 'a');
47
- expect(onKeyDown).toHaveBeenCalled();
48
- });
49
- it('calls onClickHandler handler', async () => {
50
- const onClick = jest.fn();
51
- renderCheckbox({ ...tc.props, onClick });
52
- await userEvent.click(screen.getByTestId(tc.testId));
53
- expect(onClick).toHaveBeenCalled();
54
- });
55
- it('respects disabled', () => {
56
- renderCheckbox({ ...tc.props, disabled: true });
57
- expect(screen.getByTestId(tc.testId)).not.toBeEnabled();
58
- });
59
- it('renders label clickable', async () => {
60
- const label = 'amazing checkbox';
61
- const onClick = jest.fn();
62
- renderCheckbox({ ...tc.props, label, onClick });
63
- expect(screen.getByTestId(tc.testId)).not.toBeChecked();
64
- await userEvent.click(screen.getByText(label));
65
- expect(onClick).toHaveBeenCalled();
66
- });
67
- it('respects id', () => {
68
- const id = 'checkboxId';
69
- renderCheckbox({ ...tc.props, id });
70
- expect(screen.getByTestId(tc.testId)).toHaveProperty('id', id);
71
- });
72
- it('respects name', () => {
73
- const name = 'checkboxName';
74
- renderCheckbox({ ...tc.props, name });
75
- expect(screen.getByTestId(tc.testId)).toHaveProperty('name', name);
76
- });
77
- it('respects name', () => {
78
- const value = 'priceless';
79
- renderCheckbox({ ...tc.props, value });
80
- expect(screen.getByTestId(tc.testId)).toHaveProperty('value', value);
81
- });
82
- it('applies extraClassNames', () => {
83
- const extraClassNames = 'extra styling so fancy';
84
- renderCheckbox({ ...tc.props, extraClassNames });
85
- expect(screen.getByTestId(tc.testId).parentNode).toHaveClass(extraClassNames);
86
- });
87
- it('applies extraLabelClassNames', () => {
88
- const extraLabelClassNames = 'special label';
89
- const label = 'amazing checkbox';
90
- renderCheckbox({ ...tc.props, extraLabelClassNames, label });
91
- expect(screen.getByText(label)).toHaveClass(extraLabelClassNames);
92
- });
93
- });
94
- //# sourceMappingURL=Checkbox.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Checkbox.test.js","sourceRoot":"","sources":["../../src/Checkbox/Checkbox.test.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,2BAA2B,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAGxD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,SAAS,MAAM,6BAA6B,CAAC;AAEpD,QAAQ,CAAC,UAAU,EAAE,GAAG,EAAE;IACxB,MAAM,OAAO;QACX,MAAM,GAAG,gBAAgB,CAAC;QAC1B,KAAK,GAAkB;YACrB,QAAQ,EAAE,IAAI,CAAC,EAAE,EAAE;YACnB,OAAO,EAAE,KAAK;YACd,MAAM,EAAE,IAAI,CAAC,MAAM;SACpB,CAAC;KACH;IAED,IAAI,EAAW,CAAC;IAChB,UAAU,CAAC,GAAG,EAAE;QACd,EAAE,GAAG,IAAI,OAAO,EAAE,CAAC;IACrB,CAAC,CAAC,CAAC;IACH,MAAM,cAAc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AAC,EAAE,GAAG,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;QACvC,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,cAAc,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IACvE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,yBAAyB,EAAE,GAAG,EAAE;QACjC,MAAM,eAAe,GAAG,wBAAwB,CAAC;QACjD,cAAc,CAAC,EAAE,GAAG,EAAE,CAAC,KAAK,EAAE,eAAe,EAAE,CAAC,CAAC;QACjD,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,UAAU,CAAC,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;IAChF,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,8BAA8B,EAAE,GAAG,EAAE;QACtC,MAAM,oBAAoB,GAAG,eAAe,CAAC;QAC7C,MAAM,KAAK,GAAG,kBAAkB,CAAC;QACjC,cAAc,CAAC,EAAE,GAAG,EAAE,CAAC,KAAK,EAAE,oBAAoB,EAAE,KAAK,EAAE,CAAC,CAAC;QAC7D,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC;IACpE,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=Checkbox.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Checkbox.types.js","sourceRoot":"","sources":["../../src/Checkbox/Checkbox.types.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export { Checkbox as default } from './Checkbox';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Checkbox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,OAAO,EAAE,MAAM,YAAY,CAAC"}
package/dist/Icon/Icon.js DELETED
@@ -1,55 +0,0 @@
1
- import React from 'react';
2
- import '../styles.css';
3
- import { getQTipData } from '../Tooltip/qTip.utilities';
4
- const colorClassesThemeLight = {
5
- 'theme': 'tw-text-sq-color-dark',
6
- 'white': 'tw-text-white',
7
- 'dark-gray': 'tw-text-sq-fairly-dark-gray',
8
- 'warning': 'tw-text-sq-warning-color',
9
- 'darkish-gray': 'tw-text-sq-darkish-gray',
10
- 'gray': 'tw-text-sq-disabled-gray',
11
- 'color': '',
12
- 'info': 'tw-text-sq-link',
13
- 'text': 'tw-text-sq-text-color',
14
- 'inherit': '',
15
- 'danger': 'tw-text-sq-danger-color',
16
- 'theme-light': 'tw-text-sq-color-light',
17
- 'success': 'tw-text-sq-success-color',
18
- };
19
- const colorClassesThemeDark = {
20
- 'theme': 'dark:tw-text-sq-color-dark-dark',
21
- 'white': '',
22
- 'dark-gray': 'tw-text-sq-fairly-dark-gray',
23
- 'warning': '',
24
- 'darkish-gray': 'tw-text-sq-darkish-gray',
25
- 'gray': 'dark:tw-text-sq-dark-disabled-gray',
26
- 'color': '',
27
- 'info': 'dark:tw-text-sq-link-dark',
28
- 'text': 'dark:tw-text-sq-dark-text',
29
- 'inherit': '',
30
- 'danger': 'tw-text-sq-danger-color',
31
- 'theme-light': 'tw-text-sq-color-light',
32
- 'success': 'tw-text-sq-success-color',
33
- };
34
- /**
35
- * Icon:
36
- * - access to Seeq custom icons by providing the desired icon
37
- * - leverage "type" to style your icon
38
- */
39
- const Icon = ({ onClick, icon, iconPrefix = undefined, type = 'theme', extraClassNames, id, large, small, color, testId, customId, number, ...tooltipProps }) => {
40
- if ((type === 'color' && (color === undefined || color === '')) || (color && type !== 'color')) {
41
- const errorMessage = color === undefined || color === ''
42
- ? 'Icon with type="color" must have prop color specified.'
43
- : 'Icon with prop color must have type="color".';
44
- return React.createElement("div", { className: "tw-text-sq-danger-color" }, errorMessage);
45
- }
46
- const fontAwesomePrefix = iconPrefix ? iconPrefix : 'fa-sharp fa-regular';
47
- const iconPrefixString = icon.startsWith('fc') ? 'fc' : fontAwesomePrefix;
48
- const style = type === 'color' && color ? { color } : {};
49
- const appliedClassNames = `${iconPrefixString} ${icon} ${small ? 'fa-sm' : ''} ${large ? 'fa-lg' : ''}
50
- ${colorClassesThemeLight[type]} ${colorClassesThemeDark[type]} ${onClick ? 'cursor-pointer' : ''} ${extraClassNames} focus:tw-outline-none focus-visible:tw-outline-none tw-outline-none`;
51
- const tooltipData = getQTipData(tooltipProps);
52
- return (React.createElement("i", { className: appliedClassNames, style: style, onClick: onClick, "data-testid": testId, "data-customid": customId, id: id, "data-number": number, ...tooltipData }));
53
- };
54
- export default Icon;
55
- //# sourceMappingURL=Icon.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Icon.js","sourceRoot":"","sources":["../../src/Icon/Icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,eAAe,CAAC;AAEvB,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAExD,MAAM,sBAAsB,GAAG;IAC7B,OAAO,EAAE,uBAAuB;IAChC,OAAO,EAAE,eAAe;IACxB,WAAW,EAAE,6BAA6B;IAC1C,SAAS,EAAE,0BAA0B;IACrC,cAAc,EAAE,yBAAyB;IACzC,MAAM,EAAE,0BAA0B;IAClC,OAAO,EAAE,EAAE;IACX,MAAM,EAAE,iBAAiB;IACzB,MAAM,EAAE,uBAAuB;IAC/B,SAAS,EAAE,EAAE;IACb,QAAQ,EAAE,yBAAyB;IACnC,aAAa,EAAE,wBAAwB;IACvC,SAAS,EAAE,0BAA0B;CACtC,CAAC;AAEF,MAAM,qBAAqB,GAAG;IAC5B,OAAO,EAAE,iCAAiC;IAC1C,OAAO,EAAE,EAAE;IACX,WAAW,EAAE,6BAA6B;IAC1C,SAAS,EAAE,EAAE;IACb,cAAc,EAAE,yBAAyB;IACzC,MAAM,EAAE,o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E,IAAI,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;IACnG,sBAAsB,CAAC,IAAI,CAAC,IAAI,qBAAqB,CAAC,IAAI,CAAC,IAC3D,OAAO,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAC/B,IAAI,eAAe,sEAAsE,CAAC;IAE1F,MAAM,WAAW,GAAG,WAAW,CAAC,YAAY,CAAC,CAAC;IAE9C,OAAO,CACL,2BACE,SAAS,EAAE,iBAAiB,EAC5B,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,iBACH,MAAM,mBACJ,QAAQ,EACvB,EAAE,EAAE,EAAE,iBACO,MAAM,KACf,WAAW,GACf,CACH,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,IAAI,CAAC"}
@@ -1,45 +0,0 @@
1
- import React from 'react';
2
- import Icon from './Icon';
3
- import { iconTypes } from './Icon.types';
4
- export default {
5
- title: 'Icons',
6
- };
7
- export const AllIcons = () => {
8
- const renderAllVariations = () => {
9
- return (React.createElement(React.Fragment, null,
10
- React.createElement("br", null),
11
- React.createElement("br", null),
12
- iconTypes.map((iconType) => {
13
- return (React.createElement("div", { key: `${iconType}` },
14
- React.createElement("b", null,
15
- "type=",
16
- iconType),
17
- React.createElement("br", null),
18
- React.createElement("div", null,
19
- React.createElement(Icon, { icon: "fc-genai-chat", small: true, extraClassNames: 'tw-p-2', type: iconType, color: iconType === 'color' ? 'purple' : undefined }),
20
- React.createElement(Icon, { icon: "fc-formula-ai", extraClassNames: 'tw-p-2', type: iconType, color: iconType === 'color' ? '#928378' : undefined }),
21
- React.createElement(Icon, { icon: "fc-datalab-ai", extraClassNames: 'tw-p-2', type: iconType, color: iconType === 'color' ? 'pink' : undefined }),
22
- React.createElement(Icon, { icon: "fc-workbook-ai", extraClassNames: 'tw-p-2', type: iconType, color: iconType === 'color' ? 'pink' : undefined }),
23
- React.createElement(Icon, { icon: "fc-vantage", extraClassNames: 'tw-p-2', type: iconType, color: iconType === 'color' ? 'pink' : undefined })),
24
- React.createElement("div", { className: "tw-dark tw-bg-sq-dark-background" },
25
- React.createElement(Icon, { icon: "fc-announcements", small: true, extraClassNames: 'tw-p-2', type: iconType, color: iconType === 'color' ? 'purple' : undefined }),
26
- React.createElement(Icon, { icon: "fc-announcements", extraClassNames: 'tw-p-2', type: iconType, color: iconType === 'color' ? '#928378' : undefined }),
27
- React.createElement(Icon, { icon: "fc-announcements", large: true, extraClassNames: 'tw-p-2', type: iconType, color: iconType === 'color' ? 'pink' : undefined })),
28
- React.createElement("br", null)));
29
- })));
30
- };
31
- return (React.createElement("div", { className: "tw-grid tw-grid-cols-4 tw-gap-4" },
32
- React.createElement("div", { className: "color_topic" },
33
- React.createElement("b", null, "Topic Colors"),
34
- renderAllVariations()),
35
- React.createElement("div", { className: "color_analysis" },
36
- React.createElement("b", null, "Analysis Colors"),
37
- renderAllVariations()),
38
- React.createElement("div", { className: "color_datalab" },
39
- React.createElement("b", null, "Datalab Colors"),
40
- renderAllVariations()),
41
- React.createElement("div", { className: "color_vantage" },
42
- React.createElement("b", null, "Vantage Colors"),
43
- renderAllVariations())));
44
- };
45
- //# sourceMappingURL=Icon.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Icon.stories.js","sourceRoot":"","sources":["../../src/Icon/Icon.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,eAAe;IACb,KAAK,EAAE,OAAO;CACf,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,EAAE;IAC3B,MAAM,mBAAmB,GAAG,GAAG,EAAE;QAC/B,OAAO,CACL;YACE,+BAAM;YACN,+BAAM;YACL,SAAS,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE;gBAC1B,OAAO,CACL,6BAAK,GAAG,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Q,CAAC,CAAC,CAAC,SAAS,GAClD;wBACF,oBAAC,IAAI,IACH,IAAI,EAAC,kBAAkB,EACvB,eAAe,EAAE,QAAQ,EACzB,IAAI,EAAE,QAAQ,EACd,KAAK,EAAE,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,GACnD;wBACF,oBAAC,IAAI,IACH,IAAI,EAAC,kBAAkB,EACvB,KAAK,EAAE,IAAI,EACX,eAAe,EAAE,QAAQ,EACzB,IAAI,EAAE,QAAQ,EACd,KAAK,EAAE,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,GAChD,CACE;oBACN,+BAAM,CACF,CACP,CAAC;YACJ,CAAC,CAAC,CACD,CACJ,CAAC;IACJ,CAAC,CAAC;IACF,OAAO,CACL,6BAAK,SAAS,EAAC,iCAAiC;QAC9C,6BAAK,SAAS,EAAC,aAAa;YAC1B,8CAAmB;YAClB,mBAAmB,EAAE,CAClB;QAEN,6BAAK,SAAS,EAAC,gBAAgB;YAC7B,iDAAsB;YACrB,mBAAmB,EAAE,CAClB;QAEN,6BAAK,SAAS,EAAC,eAAe;YAC5B,gDAAqB;YACpB,mBAAmB,EAAE,CAClB;QAEN,6BAAK,SAAS,EAAC,eAAe;YAC5B,gDAAqB;YACpB,mBAAmB,EAAE,CAClB,CACF,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -1,55 +0,0 @@
1
- import React from 'react';
2
- import '@testing-library/jest-dom';
3
- import { render, screen } from '@testing-library/react';
4
- import Icon from './Icon';
5
- describe('Icon', () => {
6
- class Context {
7
- testId = 'iconTestId';
8
- icon = 'testIcon';
9
- props = {
10
- icon: this.icon,
11
- onClick: jest.fn(),
12
- testId: this.testId,
13
- };
14
- }
15
- let tc;
16
- beforeEach(() => {
17
- tc = new Context();
18
- });
19
- const renderIcon = (props) => render(React.createElement(Icon, { ...props }));
20
- it('renders icon', () => {
21
- renderIcon(tc.props);
22
- expect(screen.getByTestId(tc.testId)).toHaveClass(tc.icon);
23
- });
24
- it('renders large icon', () => {
25
- renderIcon({ ...tc.props, large: true });
26
- expect(screen.getByTestId(tc.testId)).toHaveClass('fa-lg');
27
- });
28
- it('renders small icon', () => {
29
- renderIcon({ ...tc.props, small: true });
30
- expect(screen.getByTestId(tc.testId)).toHaveClass('fa-sm');
31
- });
32
- describe('icon types', () => {
33
- it('renders the theme type by default', () => {
34
- renderIcon(tc.props);
35
- expect(screen.getByTestId(tc.testId)).toHaveClass('tw-text-sq-color-dark');
36
- });
37
- it('renders the white icon', () => {
38
- renderIcon({ ...tc.props, type: 'white' });
39
- expect(screen.getByTestId(tc.testId)).toHaveClass('tw-text-white');
40
- });
41
- it('renders the text-type icon', () => {
42
- renderIcon({ ...tc.props, type: 'text' });
43
- expect(screen.getByTestId(tc.testId)).toHaveClass('tw-text-sq-text-color');
44
- });
45
- it('renders the color-type icon', () => {
46
- renderIcon({ ...tc.props, type: 'color', color: '#AABBFF' });
47
- expect(screen.getByTestId(tc.testId)).toHaveStyle('color: #AABBFF');
48
- });
49
- it('renders a warning if type=color and no color is provided', () => {
50
- renderIcon({ ...tc.props, type: 'color' });
51
- expect(screen.getByText('Icon with type="color" must have prop color specified.')).toBeInTheDocument();
52
- });
53
- });
54
- });
55
- //# sourceMappingURL=Icon.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Icon.test.js","sourceRoot":"","sources":["../../src/Icon/Icon.test.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,2BAA2B,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,IAAI,MAAM,QAAQ,CAAC;AAG1B,QAAQ,CAAC,MAAM,EAAE,GAAG,EAAE;IACpB,MAAM,OAAO;QACX,MAAM,GAAG,YAAY,CAAC;QACtB,IAAI,GAAG,UAAU,CAAC;QAClB,KAAK,GAA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CAAC;QACzG,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,16 +0,0 @@
1
- export const iconTypes = [
2
- 'theme',
3
- 'white',
4
- 'dark-gray',
5
- 'darkish-gray',
6
- 'gray',
7
- 'color',
8
- 'info',
9
- 'text',
10
- 'warning',
11
- 'inherit',
12
- 'danger',
13
- 'theme-light',
14
- 'success',
15
- ];
16
- //# sourceMappingURL=Icon.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Icon.types.js","sourceRoot":"","sources":["../../src/Icon/Icon.types.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,OAAO;IACP,OAAO;IACP,WAAW;IACX,cAAc;IACd,MAAM;IACN,OAAO;IACP,MAAM;IACN,MAAM;IACN,SAAS;IACT,SAAS;IACT,QAAQ;IACR,aAAa;IACb,SAAS;CACD,CAAC"}
@@ -1,2 +0,0 @@
1
- export { default } from './Icon';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Icon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC"}
@@ -1,100 +0,0 @@
1
- import React, { useEffect, useState } from 'react';
2
- import * as DialogPrimitive from '@radix-ui/react-dialog';
3
- import classNames from 'classnames';
4
- import '../styles.css';
5
- import Button from '../Button';
6
- import Icon from '../Icon';
7
- import TextField from '../TextField';
8
- const Dialog = DialogPrimitive.Root;
9
- const DialogPortal = DialogPrimitive.Portal;
10
- const DialogClose = DialogPrimitive.Close;
11
- const DialogContent = React.forwardRef(({ className, children, ...props }, ref) => (React.createElement(DialogPortal, null,
12
- React.createElement("div", { className: "tw-select-none tw-fixed tw-w-full tw-h-full tw-opacity-50 tw-inset-0 tw-z-[1009] tw-bg-sq-dark-background\n data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0\n data-[state=open]:fade-in-0 " }),
13
- React.createElement(DialogPrimitive.Content, { ref: ref, className: `tw-fixed tw-left-[50%] tw-top-0 tw-my-6 tw-translate-x-[-50%] tw-z-[1010] tw-grid
14
- tw-gap-4 tw-border tw-bg-sq-white dark:tw-bg-sq-dark-background tw-p-6 tw-shadow-lg tw-duration-200
15
- tw-rounded-lg ${className}`, ...props }, children))));
16
- DialogContent.displayName = DialogPrimitive.Content.displayName;
17
- const DialogHeader = (props) => (React.createElement("div", { className: "tw-w-full tw-justify-between" },
18
- React.createElement("div", { ...props })));
19
- DialogHeader.displayName = 'DialogHeader';
20
- const DialogFooter = (props) => React.createElement("div", { ...props });
21
- DialogFooter.displayName = 'DialogFooter';
22
- const DialogTitle = React.forwardRef((props, ref) => React.createElement(DialogPrimitive.Title, { ref: ref, ...props }));
23
- DialogTitle.displayName = DialogPrimitive.Title.displayName;
24
- const DialogDescription = React.forwardRef((props, ref) => React.createElement(DialogPrimitive.Description, { ref: ref, ...props }));
25
- DialogDescription.displayName = DialogPrimitive.Description.displayName;
26
- const Modal = ({ titleIcon, title = 'Modal title example', titleSuffixLabel, subtitle, children, open = false, onClose, customButton = false, customButtonLabel = 'Back', onClickCustomButton, submitButtonLabel = 'Submit', cancelButtonLabel = 'Cancel', disableSubmitButton = false, stopPropagationSubmitButton = false, onSubmit, isTitleEditable = false, onTitleChanged, inputExtraClassNames, hideCloseIcon = false, size = 'xl', titleIconPosition = 'left', hideFooterButtons = false, hideSubmitButton = false, hideCancelButton = false, testId = 'modal', modalFooter, dialogClassName, titlePlaceholder, titleRequired, titleError, submitButtonTooltip, cancelButtonTooltip, disableCustomButton, customHeader, middleFooterSection = React.createElement(React.Fragment, null), customButtonVariant = 'outline', submitButtonVariant = 'theme', keepFocusInsideModal = true, onPointerDownOutside, }) => {
27
- const [isLoading, setIsLoading] = useState(false);
28
- // the Dialog is adding pointerEvents: none to body and the dropdowns from the modal does not work anymore
29
- useEffect(() => {
30
- if (open) {
31
- // Pushing the change to the end of the call stack
32
- const timer = setTimeout(() => {
33
- document.body.style.pointerEvents = '';
34
- }, 0);
35
- return () => clearTimeout(timer);
36
- }
37
- else {
38
- document.body.style.pointerEvents = 'auto';
39
- }
40
- }, [open]);
41
- const handleSubmit = async (e) => {
42
- if (!onSubmit)
43
- return;
44
- try {
45
- setIsLoading(true);
46
- await onSubmit(e);
47
- }
48
- finally {
49
- setIsLoading(false);
50
- }
51
- };
52
- const renderTitle = () => {
53
- let titleIconElement = React.createElement(React.Fragment, null);
54
- if (titleIcon) {
55
- if (typeof titleIcon === 'string') {
56
- titleIconElement = (React.createElement(Icon, { icon: titleIcon, testId: "modalTitleIcon", extraClassNames: "tw-flex tw-text-xl tw-mt-1" }));
57
- }
58
- else {
59
- titleIconElement = React.createElement("div", { className: "tw-mt-1.5" }, titleIcon);
60
- }
61
- }
62
- return (React.createElement(React.Fragment, null,
63
- titleIcon && titleIconPosition === 'left' ? React.createElement("div", { className: "tw-flex tw-mr-2" }, titleIconElement) : React.createElement(React.Fragment, null),
64
- React.createElement(DialogTitle, { asChild: true }, isTitleEditable ? (React.createElement("div", { className: "tw-flex tw-w-full tw-items-center" },
65
- React.createElement(TextField, { extraClassNames: inputExtraClassNames, value: title, type: "text", testId: "modalTitle", onChange: onTitleChanged, placeholder: titlePlaceholder, required: titleRequired, showError: !!titleError }),
66
- titleError && React.createElement("p", { className: "tw-text-sq-danger-color tw-min-w-fit tw-pl-2 tw-mb-0" }, titleError))) : (customHeader ?? (React.createElement("div", { "data-testid": "modalTitle", className: "modal-title" },
67
- React.createElement("div", { className: "tw-flex tw-items-center" },
68
- React.createElement("h3", null, title),
69
- titleSuffixLabel && React.createElement("span", { className: "tw-text-xl tw-pl-0.5" }, titleSuffixLabel)),
70
- subtitle && (React.createElement("div", { className: "tw-italic tw-text-sm tw-text-left tw-mt-1", "data-testid": "modal-subtitle" }, subtitle)))))),
71
- titleIcon && titleIconPosition === 'right' ? React.createElement("div", { className: "tw-flex tw-ml-4" }, titleIconElement) : React.createElement(React.Fragment, null)));
72
- };
73
- return open ? (React.createElement(Dialog, { open: true, onOpenChange: onClose, modal: keepFocusInsideModal },
74
- React.createElement(DialogContent, { onPointerDownOutside: (e) => (onPointerDownOutside ? onPointerDownOutside(e) : e.preventDefault()), "data-testid": testId, className: classNames(`modalContent tw-w-full !tw-p-0 tw-border-none tw-shadow-none dark:tw-text-sq-dark-text !tw-gap-0`, {
75
- 'tw-max-w-xs': size === 'xs',
76
- 'tw-max-w-sm': size === 'sm',
77
- 'tw-max-w-md': size === 'md',
78
- 'tw-max-w-lg': size === 'lg',
79
- 'tw-max-w-xl': size === 'xl',
80
- 'tw-max-w-2xl': size === '2xl',
81
- 'tw-max-w-3xl': size === '3xl',
82
- 'tw-max-w-4xl': size === '4xl',
83
- 'tw-max-w-5xl': size === '5xl',
84
- 'tw-max-w-6xl': size === '6xl',
85
- }, dialogClassName) },
86
- React.createElement(DialogHeader, { className: "modal-header tw-flex tw-w-full tw-justify-between tw-border-sq-disabled-gray\n dark:tw-border-sq-dark-disabled-gray tw-border-0 tw-border-b tw-px-6 tw-py-4" },
87
- React.createElement("div", { className: "tw-flex tw-w-full" }, renderTitle()),
88
- !hideCloseIcon && (React.createElement(DialogClose, { autoFocus: false, className: "[&:has(:focus-visible)]:none tw-opacity-70 tw-bg-transparent hover:tw-opacity-100 close tw-cursor-pointer tw-ml-4", "data-testid": "closeButton" },
89
- React.createElement("span", { className: "tw-cursor-pointer" }, "\u00D7")))),
90
- React.createElement(DialogDescription, { className: "modal-body tw-px-6 tw-py-4 tw-overflow-y-auto", asChild: true }, children),
91
- !hideFooterButtons && (React.createElement(DialogFooter, { className: "modal-footer tw-px-6 tw-py-4" }, modalFooter ?? (React.createElement("div", { className: "tw-flex tw-w-full tw-justify-between", "data-testid": "modalFooter" },
92
- React.createElement("div", { className: "tw-flex tw-justify-start" }, customButton && (React.createElement(Button, { label: customButtonLabel, onClick: onClickCustomButton, disabled: disableCustomButton, extraClassNames: "tw-justify-start tw-min-w-[100px]", testId: "customButton", variant: customButtonVariant }))),
93
- React.createElement("div", { className: "tw-flex tw-justify-end" },
94
- React.createElement("div", { className: "tw-flex tw-items-center" }, middleFooterSection),
95
- !hideCancelButton && (React.createElement(DialogClose, { asChild: true },
96
- React.createElement(Button, { label: cancelButtonLabel, extraClassNames: "tw-mr-5 tw-min-w-[100px]", tooltip: cancelButtonTooltip, variant: "outline", stopPropagation: false, testId: "cancelButton" }))),
97
- !hideSubmitButton && (React.createElement(Button, { label: submitButtonLabel, onClick: handleSubmit, disabled: disableSubmitButton || isLoading, variant: submitButtonVariant, stopPropagation: stopPropagationSubmitButton, tooltip: submitButtonTooltip, icon: isLoading ? 'fc-loading-notch tw-animate-spin' : undefined, iconPosition: "left", testId: "submitButton", extraClassNames: "tw-min-w-[100px]" })))))))))) : (React.createElement(React.Fragment, null));
98
- };
99
- export default Modal;
100
- //# sourceMappingURL=Modal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Modal.js","sourceRoot":"","sources":["../../src/Modal/Modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,eAAe,CAAC;AAEvB,OAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,SAAS,MAAM,cAAc,CAAC;AAErC,MAAM,MAAM,GAAG,eAAe,CAAC,IAAI,CAAC;AAEpC,MAAM,YAAY,GAAG,eAAe,CAAC,MAAM,CAAC;AAE5C,MAAM,WAAW,GAAG,eAAe,CAAC,KAAK,CAAC;AAE1C,MAAM,aAAa,GAAG,KAAK,CAAC,UAAU,CAGpC,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC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CAAC,SAAS,EAChE,YAAY,EAAC,MAAM,EACnB,MAAM,EAAC,cAAc,EACrB,eAAe,EAAC,kBAAkB,GAClC,CACH,CACG,CACF,CACP,CACY,CAChB,CACa,CACT,CACV,CAAC,CAAC,CAAC,CACF,yCAAK,CACN,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -1,127 +0,0 @@
1
- import React, { useEffect, useState } from 'react';
2
- import Modal from './Modal';
3
- import Button from '../Button';
4
- export default {
5
- title: 'Modal',
6
- };
7
- const modalBody = (React.createElement("div", null, "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."));
8
- const waitUntil = async (timeout) => {
9
- return new Promise((resolve) => {
10
- setTimeout(() => resolve('yes'), timeout);
11
- });
12
- };
13
- const ModalComponent = ({ bodyClass = '', title: originalTitle, titleIcon, isTitleEditable, children, hideCloseIcon, disableSubmitButton, size, buttonLabel = 'Open Modal', customButton, customButtonLabel, submitButtonVariant, onSubmit, }) => {
14
- const [open, setOpen] = useState(false);
15
- const [title, setTitle] = useState(originalTitle);
16
- useEffect(() => {
17
- return () => {
18
- document.body.className = '';
19
- };
20
- }, []);
21
- const onClose = () => {
22
- document.body.className = '';
23
- setOpen(false);
24
- };
25
- return (React.createElement("div", { className: "tw-p-4" },
26
- React.createElement(Button, { onClick: () => {
27
- document.body.className = bodyClass;
28
- setOpen(true);
29
- }, label: buttonLabel }),
30
- React.createElement(Modal, { open: open, onClose: onClose, title: title, titleIcon: titleIcon, isTitleEditable: isTitleEditable, onTitleChanged: (event) => setTitle(event.target.value), hideCloseIcon: hideCloseIcon, disableSubmitButton: disableSubmitButton, size: size, onSubmit: onSubmit, customButton: customButton, submitButtonVariant: submitButtonVariant, onPointerDownOutside: onClose, customButtonLabel: customButtonLabel }, children)));
31
- };
32
- export const AllModalsVariants = () => {
33
- const colors = ['Topic', 'Analysis', 'Datalab', 'Vantage'];
34
- const sizes = ['xs', 'sm', 'md', 'lg', 'xl', '2xl', '3xl', '4xl', '5xl', '6xl'];
35
- return (React.createElement("div", { className: "tw-grid tw-grid-cols-4 tw-gap-4" }, colors.map((color) => (React.createElement("div", { key: color },
36
- React.createElement("b", null,
37
- color,
38
- " colors"),
39
- React.createElement("div", { className: "tw-p-4 light" }, sizes.map((size) => (React.createElement(ModalComponent, { key: `${size}_${color}`, bodyClass: `color_${color.toLowerCase()}`, title: "Modal example", children: modalBody, size: size, buttonLabel: `Open ${size} size modal` })))),
40
- React.createElement("div", { className: "tw-p-4 tw-dark tw-bg-sq-dark-background" }, sizes.map((size) => (React.createElement(ModalComponent, { key: `${size}_${color}_dark`, bodyClass: `color_${color.toLowerCase()} tw-dark color_${color.toLowerCase()}_dark`, title: "Modal example", children: modalBody, size: size, buttonLabel: `Open ${size} size modal` })))))))));
41
- };
42
- export const ModalsWithDisabledSubmit = () => (React.createElement("div", { className: "tw-grid tw-grid-cols-4 tw-gap-4" },
43
- React.createElement("div", null,
44
- React.createElement("b", null, "Topic Colors"),
45
- React.createElement("div", { className: "tw-p-4 light" },
46
- React.createElement(ModalComponent, { bodyClass: "color_topic", title: "Disabled submit button example", disableSubmitButton: true, children: modalBody })),
47
- React.createElement("div", { className: "tw-p-4 tw-dark tw-bg-sq-dark-background" },
48
- React.createElement(ModalComponent, { bodyClass: "color_topic tw-dark color_analysis_dark", title: "Disabled submit button example", disableSubmitButton: true, children: modalBody }))),
49
- React.createElement("div", null,
50
- React.createElement("b", null, "Analysis Colors"),
51
- React.createElement("div", { className: "tw-p-4 light" },
52
- React.createElement(ModalComponent, { bodyClass: "color_analysis", title: "Disabled submit button example", disableSubmitButton: true, children: modalBody })),
53
- React.createElement("div", { className: "tw-p-4 tw-dark tw-bg-sq-dark-background" },
54
- React.createElement(ModalComponent, { bodyClass: "color_analysis tw-dark color_analysis_dark", title: "Disabled submit button example", disableSubmitButton: true, children: modalBody }))),
55
- React.createElement("div", null,
56
- React.createElement("b", null, "Datalab Colors"),
57
- React.createElement("div", { className: "tw-p-4 light" },
58
- React.createElement(ModalComponent, { bodyClass: "color_datalab", title: "Disabled submit button example", disableSubmitButton: true, children: modalBody })),
59
- React.createElement("div", { className: "tw-p-4 tw-dark tw-bg-sq-dark-background" },
60
- React.createElement(ModalComponent, { bodyClass: "color_datalab tw-dark color_analysis_dark", title: "Disabled submit button example", disableSubmitButton: true, children: modalBody }))),
61
- React.createElement("div", null,
62
- React.createElement("b", null, "Vantage Colors"),
63
- React.createElement("div", { className: "tw-p-4 light" },
64
- React.createElement(ModalComponent, { bodyClass: "color_vantage", title: "Disabled submit button example", disableSubmitButton: true, children: modalBody })),
65
- React.createElement("div", { className: "tw-p-4 tw-dark tw-bg-sq-dark-background" },
66
- React.createElement(ModalComponent, { bodyClass: "color_vantage tw-dark color_vantage_dark", title: "Disabled submit button example", disableSubmitButton: true, children: modalBody })))));
67
- export const ModalsWithEditableTitle = () => {
68
- const colors = ['Topic', 'Analysis', 'Datalab', 'Vantage'];
69
- const sizes = ['xs', 'sm', 'md', 'lg', 'xl', '2xl', '3xl', '4xl', '5xl', '6xl'];
70
- return (React.createElement("div", { className: "tw-grid tw-grid-cols-4 tw-gap-4" }, colors.map((color) => (React.createElement("div", { key: color },
71
- React.createElement("b", null,
72
- color,
73
- " colors"),
74
- React.createElement("div", { className: "tw-p-4 light" }, sizes.map((size) => (React.createElement(ModalComponent, { key: `${size}_${color}`, bodyClass: `color_${color.toLowerCase()}`, title: "Editable title example", isTitleEditable: true, titleIcon: "fc-check", children: modalBody, size: size, buttonLabel: `Open ${size} size modal` })))),
75
- React.createElement("div", { className: "tw-p-4 tw-dark tw-bg-sq-dark-background" }, sizes.map((size) => (React.createElement(ModalComponent, { key: `${size}_${color}_dark`, bodyClass: `color_${color.toLowerCase()} tw-dark color_${color.toLowerCase()}_dark`, title: "Editable title example", isTitleEditable: true, titleIcon: "fc-check", children: modalBody, size: size, buttonLabel: `Open ${size} size modal` })))))))));
76
- };
77
- export const ModalsWithCustomButton = () => (React.createElement("div", { className: "tw-grid tw-grid-cols-4 tw-gap-4" },
78
- React.createElement("div", null,
79
- React.createElement("b", null, "Topic Colors"),
80
- React.createElement("div", { className: "tw-p-4 light" },
81
- React.createElement(ModalComponent, { bodyClass: "color_topic", title: "Modal with custom button", children: modalBody, customButton: true, customButtonLabel: "Back" })),
82
- React.createElement("div", { className: "tw-p-4 tw-dark tw-bg-sq-dark-background" },
83
- React.createElement(ModalComponent, { bodyClass: "color_topic tw-dark color_analysis_dark", title: "Modal with custom button", children: modalBody, customButton: true, customButtonLabel: "Back" }))),
84
- React.createElement("div", null,
85
- React.createElement("b", null, "Analysis Colors"),
86
- React.createElement("div", { className: "tw-p-4 light" },
87
- React.createElement(ModalComponent, { bodyClass: "color_analysis", title: "Modal with custom button", children: modalBody, customButton: true, customButtonLabel: "Back" })),
88
- React.createElement("div", { className: "tw-p-4 tw-dark tw-bg-sq-dark-background" },
89
- React.createElement(ModalComponent, { bodyClass: "color_analysis tw-dark color_analysis_dark", title: "Modal with custom button", children: modalBody, customButton: true, customButtonLabel: "Back" }))),
90
- React.createElement("div", null,
91
- React.createElement("b", null, "Datalab Colors"),
92
- React.createElement("div", { className: "tw-p-4 light" },
93
- React.createElement(ModalComponent, { bodyClass: "color_datalab", title: "Modal with custom button", children: modalBody, customButton: true, customButtonLabel: "Back" })),
94
- React.createElement("div", { className: "tw-p-4 tw-dark tw-bg-sq-dark-background" },
95
- React.createElement(ModalComponent, { bodyClass: "color_datalab tw-dark color_analysis_dark", title: "Modal with custom button", children: modalBody, customButton: true, customButtonLabel: "Back" }))),
96
- React.createElement("div", null,
97
- React.createElement("b", null, "Vantage Colors"),
98
- React.createElement("div", { className: "tw-p-4 light" },
99
- React.createElement(ModalComponent, { bodyClass: "color_vantage", title: "Modal with custom button", children: modalBody, customButton: true, customButtonLabel: "Back" })),
100
- React.createElement("div", { className: "tw-p-4 tw-dark tw-bg-sq-dark-background" },
101
- React.createElement(ModalComponent, { bodyClass: "color_vantage tw-dark color_vantage_dark", title: "Modal with custom button", children: modalBody, customButton: true, customButtonLabel: "Back" })))));
102
- export const ModalsWithVariantButton = () => (React.createElement("div", { className: "tw-grid tw-grid-cols-4 tw-gap-4" },
103
- React.createElement("div", null,
104
- React.createElement("b", null, "Topic Colors"),
105
- React.createElement("div", { className: "tw-p-4 light" },
106
- React.createElement(ModalComponent, { bodyClass: "color_topic", title: "Modal with custom button", children: modalBody, customButton: true, customButtonLabel: "Back", submitButtonVariant: "theme" })),
107
- React.createElement("div", { className: "tw-p-4 tw-dark tw-bg-sq-dark-background" },
108
- React.createElement(ModalComponent, { bodyClass: "color_topic tw-dark color_analysis_dark", title: "Modal with custom button", children: modalBody, customButton: true, customButtonLabel: "Back", submitButtonVariant: "theme-light" }))),
109
- React.createElement("div", null,
110
- React.createElement("b", null, "Analysis Colors"),
111
- React.createElement("div", { className: "tw-p-4 light" },
112
- React.createElement(ModalComponent, { bodyClass: "color_analysis", title: "Modal with custom button", children: modalBody, customButton: true, customButtonLabel: "Back", submitButtonVariant: "warning" })),
113
- React.createElement("div", { className: "tw-p-4 tw-dark tw-bg-sq-dark-background" },
114
- React.createElement(ModalComponent, { bodyClass: "color_analysis tw-dark color_analysis_dark", title: "Modal with custom button", children: modalBody, customButton: true, submitButtonVariant: "danger", customButtonLabel: "Back" }))),
115
- React.createElement("div", null,
116
- React.createElement("b", null, "Datalab Colors"),
117
- React.createElement("div", { className: "tw-p-4 light" },
118
- React.createElement(ModalComponent, { bodyClass: "color_datalab", title: "Modal with custom button", children: modalBody, customButton: true, customButtonLabel: "Back", submitButtonVariant: "outline" })),
119
- React.createElement("div", { className: "tw-p-4 tw-dark tw-bg-sq-dark-background" },
120
- React.createElement(ModalComponent, { bodyClass: "color_datalab tw-dark color_analysis_dark", title: "Modal with custom button", children: modalBody, customButton: true, submitButtonVariant: "no-border", customButtonLabel: "Back" }))),
121
- React.createElement("div", null,
122
- React.createElement("b", null, "Vantage Colors"),
123
- React.createElement("div", { className: "tw-p-4 light" },
124
- React.createElement(ModalComponent, { bodyClass: "color_vantage", title: "Modal with custom button", children: modalBody, customButton: true, submitButtonVariant: "theme", customButtonLabel: "Back" })),
125
- React.createElement("div", { className: "tw-p-4 tw-dark tw-bg-sq-dark-background" },
126
- React.createElement(ModalComponent, { bodyClass: "color_vantage tw-dark color_vantage_dark", title: "Modal with custom button", children: modalBody, submitButtonVariant: "outline", customButton: true, customButtonLabel: "Back" })))));
127
- //# sourceMappingURL=Modal.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Modal.stories.js","sourceRoot":"","sources":["../../src/Modal/Modal.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,MAAM,MAAM,WAAW,CAAC;AAG/B,eAAe;IACb,KAAK,EAAE,OAAO;CACf,CAAC;AAEF,MAAM,SAAS,GAAG,CAChB,kmBAOM,CACP,CAAC;AAQF,MAAM,SAAS,GAAG,KAAK,EAAE,OAAe,EAAE,EAAE;IAC1C,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QAC7B,UAAU,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,CAAC;IAC5C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,MAAM,cAAc,GAAiD,CAAC,EACpE,SAAS,GAAG,EAAE,EACd,KAAK,EAAE,aAAa,EACpB,SAAS,EACT,eAAe,EACf,QAAQ,EACR,aAAa,EACb,mBAAmB,EACnB,IAAI,EACJ,WAAW,GAAG,YAAY,EAC1B,YAAY,EACZ,iBA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