@sarasanalytics-com/design-system 0.0.3 → 0.0.4

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 (181) hide show
  1. package/README.md +9 -12
  2. package/esm2022/interfaces/avatar-interface.mjs +2 -0
  3. package/esm2022/interfaces/button-interface.mjs +2 -0
  4. package/esm2022/interfaces/chip-interface.mjs +2 -0
  5. package/esm2022/interfaces/grid-interface.mjs +2 -0
  6. package/esm2022/interfaces/select-interface.mjs +2 -0
  7. package/esm2022/interfaces/tab-interface.mjs +2 -0
  8. package/esm2022/lib/avatar/avatar.component.mjs +56 -0
  9. package/esm2022/lib/button/button.component.mjs +84 -0
  10. package/esm2022/lib/calendar-header/calendar-header.component.mjs +170 -0
  11. package/esm2022/lib/chips/chips.component.mjs +62 -0
  12. package/esm2022/lib/component-library.component.mjs +19 -0
  13. package/esm2022/lib/component-library.service.mjs +14 -0
  14. package/esm2022/lib/datepicker/datepicker.component.mjs +39 -0
  15. package/esm2022/lib/form-select/form-select.component.mjs +59 -0
  16. package/esm2022/lib/grid-cell/grid-cell.component.mjs +84 -0
  17. package/esm2022/lib/header/header.component.mjs +37 -0
  18. package/esm2022/lib/stepper/stepper.component.mjs +64 -0
  19. package/esm2022/lib/tabs/tabs.component.mjs +38 -0
  20. package/esm2022/lib/toast/toast.component.mjs +54 -0
  21. package/esm2022/lib/tool-tip/tool-tip.component.mjs +41 -0
  22. package/esm2022/public-api.mjs +23 -0
  23. package/esm2022/sarasanalytics-com-design-system.mjs +5 -0
  24. package/fesm2022/sarasanalytics-com-design-system.mjs +760 -0
  25. package/fesm2022/sarasanalytics-com-design-system.mjs.map +1 -0
  26. package/index.d.ts +5 -0
  27. package/interfaces/avatar-interface.d.ts +6 -0
  28. package/interfaces/button-interface.d.ts +12 -0
  29. package/interfaces/chip-interface.d.ts +11 -0
  30. package/interfaces/grid-interface.d.ts +24 -0
  31. package/interfaces/select-interface.d.ts +19 -0
  32. package/interfaces/tab-interface.d.ts +6 -0
  33. package/lib/avatar/avatar.component.d.ts +18 -0
  34. package/lib/button/button.component.d.ts +26 -0
  35. package/lib/calendar-header/calendar-header.component.d.ts +31 -0
  36. package/lib/chips/chips.component.d.ts +22 -0
  37. package/lib/component-library.component.d.ts +5 -0
  38. package/lib/component-library.service.d.ts +6 -0
  39. package/lib/datepicker/datepicker.component.d.ts +9 -0
  40. package/lib/form-select/form-select.component.d.ts +17 -0
  41. package/lib/grid-cell/grid-cell.component.d.ts +20 -0
  42. package/lib/header/header.component.d.ts +14 -0
  43. package/lib/stepper/stepper.component.d.ts +17 -0
  44. package/lib/tabs/tabs.component.d.ts +15 -0
  45. package/lib/toast/toast.component.d.ts +18 -0
  46. package/lib/tool-tip/tool-tip.component.d.ts +15 -0
  47. package/package.json +19 -68
  48. package/{projects/component-library/src/public-api.ts → public-api.d.ts} +1 -7
  49. package/.editorconfig +0 -16
  50. package/.eslintrc.json +0 -22
  51. package/.storybook/main.ts +0 -21
  52. package/.storybook/manager.ts +0 -17
  53. package/.storybook/preview-head.html +0 -5
  54. package/.storybook/preview.ts +0 -65
  55. package/.storybook/tsconfig.doc.json +0 -10
  56. package/.storybook/tsconfig.json +0 -11
  57. package/.storybook/typings.d.ts +0 -4
  58. package/.vscode/extensions.json +0 -7
  59. package/.vscode/launch.json +0 -20
  60. package/.vscode/settings.json +0 -13
  61. package/.vscode/tasks.json +0 -42
  62. package/angular.json +0 -189
  63. package/build-storybook.log +0 -39
  64. package/documentation.json +0 -0
  65. package/projects/component-library/README.md +0 -24
  66. package/projects/component-library/ng-package.json +0 -8
  67. package/projects/component-library/package.json +0 -12
  68. package/projects/component-library/src/interfaces/avatar-interface.ts +0 -6
  69. package/projects/component-library/src/interfaces/button-interface.ts +0 -12
  70. package/projects/component-library/src/interfaces/chip-interface.ts +0 -11
  71. package/projects/component-library/src/interfaces/grid-interface.ts +0 -24
  72. package/projects/component-library/src/interfaces/select-interface.ts +0 -19
  73. package/projects/component-library/src/interfaces/tab-interface.ts +0 -6
  74. package/projects/component-library/src/lib/avatar/avatar.component.css +0 -48
  75. package/projects/component-library/src/lib/avatar/avatar.component.html +0 -5
  76. package/projects/component-library/src/lib/avatar/avatar.component.spec.ts +0 -23
  77. package/projects/component-library/src/lib/avatar/avatar.component.ts +0 -50
  78. package/projects/component-library/src/lib/button/button.component.css +0 -145
  79. package/projects/component-library/src/lib/button/button.component.html +0 -11
  80. package/projects/component-library/src/lib/button/button.component.spec.ts +0 -23
  81. package/projects/component-library/src/lib/button/button.component.ts +0 -68
  82. package/projects/component-library/src/lib/calendar-header/calendar-header.component.css +0 -67
  83. package/projects/component-library/src/lib/calendar-header/calendar-header.component.html +0 -20
  84. package/projects/component-library/src/lib/calendar-header/calendar-header.component.spec.ts +0 -23
  85. package/projects/component-library/src/lib/calendar-header/calendar-header.component.ts +0 -196
  86. package/projects/component-library/src/lib/chips/chips.component.css +0 -129
  87. package/projects/component-library/src/lib/chips/chips.component.html +0 -17
  88. package/projects/component-library/src/lib/chips/chips.component.spec.ts +0 -23
  89. package/projects/component-library/src/lib/chips/chips.component.ts +0 -55
  90. package/projects/component-library/src/lib/component-library.component.spec.ts +0 -23
  91. package/projects/component-library/src/lib/component-library.component.ts +0 -16
  92. package/projects/component-library/src/lib/component-library.service.spec.ts +0 -16
  93. package/projects/component-library/src/lib/component-library.service.ts +0 -9
  94. package/projects/component-library/src/lib/datepicker/datepicker.component.css +0 -33
  95. package/projects/component-library/src/lib/datepicker/datepicker.component.html +0 -11
  96. package/projects/component-library/src/lib/datepicker/datepicker.component.spec.ts +0 -23
  97. package/projects/component-library/src/lib/datepicker/datepicker.component.ts +0 -37
  98. package/projects/component-library/src/lib/form-select/form-select.component.css +0 -156
  99. package/projects/component-library/src/lib/form-select/form-select.component.html +0 -38
  100. package/projects/component-library/src/lib/form-select/form-select.component.spec.ts +0 -23
  101. package/projects/component-library/src/lib/form-select/form-select.component.ts +0 -54
  102. package/projects/component-library/src/lib/grid-cell/grid-cell.component.css +0 -78
  103. package/projects/component-library/src/lib/grid-cell/grid-cell.component.html +0 -31
  104. package/projects/component-library/src/lib/grid-cell/grid-cell.component.spec.ts +0 -23
  105. package/projects/component-library/src/lib/grid-cell/grid-cell.component.ts +0 -89
  106. package/projects/component-library/src/lib/header/header.component.css +0 -62
  107. package/projects/component-library/src/lib/header/header.component.html +0 -23
  108. package/projects/component-library/src/lib/header/header.component.spec.ts +0 -23
  109. package/projects/component-library/src/lib/header/header.component.ts +0 -28
  110. package/projects/component-library/src/lib/stepper/stepper.component.css +0 -96
  111. package/projects/component-library/src/lib/stepper/stepper.component.html +0 -14
  112. package/projects/component-library/src/lib/stepper/stepper.component.spec.ts +0 -23
  113. package/projects/component-library/src/lib/stepper/stepper.component.ts +0 -61
  114. package/projects/component-library/src/lib/tabs/tabs.component.css +0 -100
  115. package/projects/component-library/src/lib/tabs/tabs.component.html +0 -16
  116. package/projects/component-library/src/lib/tabs/tabs.component.spec.ts +0 -23
  117. package/projects/component-library/src/lib/tabs/tabs.component.ts +0 -37
  118. package/projects/component-library/src/lib/toast/toast.component.css +0 -108
  119. package/projects/component-library/src/lib/toast/toast.component.html +0 -25
  120. package/projects/component-library/src/lib/toast/toast.component.spec.ts +0 -23
  121. package/projects/component-library/src/lib/toast/toast.component.ts +0 -37
  122. package/projects/component-library/src/lib/tool-tip/tool-tip.component.css +0 -139
  123. package/projects/component-library/src/lib/tool-tip/tool-tip.component.html +0 -31
  124. package/projects/component-library/src/lib/tool-tip/tool-tip.component.spec.ts +0 -23
  125. package/projects/component-library/src/lib/tool-tip/tool-tip.component.ts +0 -37
  126. package/projects/component-library/tsconfig.lib.json +0 -14
  127. package/projects/component-library/tsconfig.lib.prod.json +0 -10
  128. package/projects/component-library/tsconfig.spec.json +0 -14
  129. package/src/Saras-logo.svg +0 -15
  130. package/src/app/app.component.css +0 -13
  131. package/src/app/app.component.html +0 -77
  132. package/src/app/app.component.spec.ts +0 -29
  133. package/src/app/app.component.ts +0 -505
  134. package/src/app/app.config.ts +0 -27
  135. package/src/app/app.routes.ts +0 -3
  136. package/src/app/data.ts +0 -52
  137. package/src/app/kitchen-sink/kitchen-sink.component.css +0 -29
  138. package/src/app/kitchen-sink/kitchen-sink.component.html +0 -7
  139. package/src/app/kitchen-sink/kitchen-sink.component.spec.ts +0 -23
  140. package/src/app/kitchen-sink/kitchen-sink.component.ts +0 -92
  141. package/src/assets/.gitkeep +0 -0
  142. package/src/assets/Chevron.svg +0 -5
  143. package/src/assets/Frame.svg +0 -5
  144. package/src/assets/Grid.svg +0 -5
  145. package/src/assets/Location.svg +0 -5
  146. package/src/assets/Mail.svg +0 -5
  147. package/src/assets/Person.svg +0 -5
  148. package/src/assets/Scan.svg +0 -5
  149. package/src/assets/Sources.svg +0 -5
  150. package/src/assets/arrow.svg +0 -5
  151. package/src/assets/avatar.svg +0 -12
  152. package/src/assets/checkmark.svg +0 -5
  153. package/src/assets/crossmark.svg +0 -5
  154. package/src/assets/dot.svg +0 -5
  155. package/src/assets/negativemark.svg +0 -5
  156. package/src/assets/pointer-polygon.svg +0 -3
  157. package/src/assets/tick-icon.svg +0 -5
  158. package/src/assets/tick.svg +0 -8
  159. package/src/assets/warningmark.svg +0 -5
  160. package/src/custom-theme.scss +0 -37
  161. package/src/favicon.ico +0 -0
  162. package/src/index.html +0 -23
  163. package/src/main.ts +0 -6
  164. package/src/stories/GettingStarted.mdx +0 -233
  165. package/src/stories/KitchenSink.stories.ts +0 -86
  166. package/src/stories/avatar.stories.ts +0 -45
  167. package/src/stories/chips.stories.ts +0 -61
  168. package/src/stories/custom-button.stories.ts +0 -74
  169. package/src/stories/datepicker.stories.ts +0 -78
  170. package/src/stories/gridCell.stories.ts +0 -234
  171. package/src/stories/header.stories.ts +0 -61
  172. package/src/stories/selectInput.stories.ts +0 -158
  173. package/src/stories/stepper.stories.ts +0 -92
  174. package/src/stories/tabs.stories.ts +0 -97
  175. package/src/stories/toast.stories.ts +0 -54
  176. package/src/stories/tool-tip.stories.ts +0 -45
  177. package/src/styles.css +0 -204
  178. package/src/svg.d.ts +0 -1
  179. package/tsconfig.app.json +0 -14
  180. package/tsconfig.json +0 -42
  181. package/tsconfig.spec.json +0 -14
@@ -1,158 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/angular';
2
- import { argsToTemplate } from '@storybook/angular';
3
- import { moduleMetadata } from '@storybook/angular';
4
- import { ReactiveFormsModule } from '@angular/forms';
5
- import { FormlyForm, FormlyModule } from '@ngx-formly/core';
6
- import { FormSelectComponent } from '../../projects/component-library/src/lib/form-select/form-select.component';
7
- import { ButtonComponent } from '../../projects/component-library/src/public-api';
8
- import { SelectInterface } from '../../projects/component-library/src/interfaces/select-interface';
9
-
10
- const meta: Meta<FormlyForm> = {
11
- title: 'Select Input',
12
- component: FormlyForm,
13
- tags: ['autodocs'],
14
- decorators: [
15
- moduleMetadata({
16
- imports: [
17
- FormlyModule,
18
- FormSelectComponent,
19
- ReactiveFormsModule,
20
- ButtonComponent,
21
- FormlyModule.forRoot({
22
- types: [
23
- {
24
- name: 'sa-select', // always use this `name` to reference component, otherwise storybook breaks.
25
- component: FormSelectComponent,
26
- },
27
- ],
28
- })
29
- ],
30
- }),
31
- ],
32
- argTypes: {
33
- fields: {
34
- description: [
35
- "**This component is expected to be used with formly form.**",
36
- "`Fields` is an array of objects. Each object (lets say `fieldObj`) represents a field in the form.",
37
- "To use this component as a form field, set `type: 'sa-select'` in `fieldObj`.",
38
- "`Key` represents the name of this field.",
39
- "`props` is an object that will be used to pass data and configure this component.",
40
- "**Please use `SelectInterface` to pass props.**"
41
- ].join(" ")
42
- },
43
- model: {
44
- description: [
45
- "It is an object, each `key-value` pair represents a field.",
46
- "`key` for the name of the field",
47
- "`value` for default selections of that field."
48
- ].join(" ")
49
- },
50
- modelChange: {
51
- action: 'modelChange'
52
- }
53
- },
54
- render: (args) => ({
55
- props: {
56
- ...args,
57
- },
58
- template: `
59
- <form>
60
- <formly-form ${argsToTemplate(args)}>
61
- </formly-form>
62
- </form>
63
- `
64
- }),
65
- };
66
-
67
-
68
-
69
- const default_props: SelectInterface = {
70
- options: [
71
- { id: 1, name: 'One' },
72
- { id: 2, name: 'Two' },
73
- { id: 3, name: 'Three' },
74
- { id: 4, name: 'Four' },
75
- { id: 5, name: 'Five' },
76
- ],
77
- disabled: false,
78
- params: {
79
- label: 'Label',
80
- supportText: "Supporting text",
81
- dropIcon: '../assets/Chevron.svg',
82
- dropIconPosition: "both",
83
- multiple: true,
84
- iconPath: "../assets/Frame.svg",
85
- type: "regular",
86
- state: "primary",
87
- filling: "filled",
88
- iconPosition: "left"
89
- }
90
- }
91
-
92
- export default meta;
93
- type Story = StoryObj<FormlyForm>;
94
- export const Regular: Story = {
95
- args: {
96
- fields: [
97
- {
98
- key: 'Test',
99
- type: 'sa-select', // storybook breaks (change in params won't reflect in component) if `FormSelectComponent` is used.
100
- props: default_props,
101
- }
102
- ],
103
- model: {},
104
- }
105
- };
106
-
107
- export const Disabled: Story = {
108
- args: {
109
- fields: [{
110
- key: 'Test',
111
- type: 'sa-select',
112
- props: {
113
- ...default_props,
114
- disabled: true
115
- }
116
- }
117
- ],
118
- model: {}
119
- }
120
- };
121
-
122
- export const Regular_Default_Value: Story = {
123
- args: {
124
- fields: [
125
- {
126
- key: 'Test',
127
- type: 'sa-select',
128
- props: default_props,
129
- }
130
- ],
131
- model: {
132
- "Test": [{
133
- "id": 1,
134
- "name": "One"
135
- }]
136
- },
137
- }
138
- };
139
-
140
- export const Disabled_Default_Value: Story = {
141
- args: {
142
- fields: [{
143
- key: 'Test',
144
- type: 'sa-select',
145
- props: {
146
- ...default_props,
147
- disabled: true
148
- }
149
- }
150
- ],
151
- model: {
152
- "Test": [{
153
- "id": 1,
154
- "name": "One"
155
- }]
156
- }
157
- }
158
- };
@@ -1,92 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/angular';
2
- import { argsToTemplate } from '@storybook/angular';
3
- import { moduleMetadata } from '@storybook/angular';
4
- import { ReactiveFormsModule } from '@angular/forms';
5
- import { FormlyForm, FormlyModule } from '@ngx-formly/core';
6
- import { StepperComponent } from '../../projects/component-library/src/lib/stepper/stepper.component';
7
-
8
- const meta: Meta<FormlyForm> = {
9
- title: 'Stepper',
10
- component: FormlyForm,
11
- tags: ['autodocs'],
12
- decorators: [
13
- moduleMetadata({
14
- imports: [
15
- FormlyModule,
16
- StepperComponent,
17
- ReactiveFormsModule,
18
- FormlyModule.forRoot({
19
- types: [
20
- {
21
- name: 'sa-stepper', // always use this `name` to reference component, otherwise storybook breaks.
22
- component: StepperComponent,
23
- },
24
- ],
25
- })
26
- ],
27
- }),
28
- ],
29
- argTypes: {
30
- modelChange: {
31
- action: 'modelChange'
32
- }
33
- },
34
- render: (args) => ({
35
- props: {
36
- ...args,
37
- },
38
- template: `
39
- <form>
40
- <formly-form ${argsToTemplate(args)}>
41
- </formly-form>
42
- </form>
43
- `
44
- }),
45
- };
46
-
47
-
48
- const default_props = {
49
- disabled: false,
50
- options: [
51
- { id: 0, name: 'Zero' },
52
- { id: 1, name: 'One' },
53
- { id: 2, name: 'Two' },
54
- { id: 3, name: 'Three' },
55
- ],
56
- params: {
57
- editable: true,
58
- doneIcon: "../assets/tick-icon.svg"
59
- }
60
- }
61
-
62
- export default meta;
63
- type Story = StoryObj<FormlyForm>;
64
- export const Default: Story = {
65
- args: {
66
- model: {},
67
- fields: [
68
- {
69
- key: 'Test-stepper',
70
- type: 'sa-stepper', // storybook breaks (change in params won't reflect in component) if `StepperComponent` is used.
71
- props: default_props,
72
- }
73
- ]
74
- }
75
- };
76
-
77
- export const Default_selection: Story = {
78
- args: {
79
- model: {
80
- "Test-stepper": {
81
- "id": 2,
82
- }
83
- },
84
- fields: [
85
- {
86
- key: 'Test-stepper',
87
- type: 'sa-stepper',
88
- props: default_props,
89
- }
90
- ]
91
- }
92
- };
@@ -1,97 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/angular';
2
- import { argsToTemplate } from '@storybook/angular';
3
- import { TabsComponent } from '../../projects/component-library/src/lib/tabs/tabs.component';
4
- import { TabInterface } from '../../projects/component-library/src/interfaces/tab-interface';
5
-
6
- const meta: Meta<TabsComponent> = {
7
- title: 'Tabs',
8
- component: TabsComponent,
9
- tags: ['autodocs'],
10
- argTypes: {
11
- tabs: {
12
- description: [
13
- "array of `TabInterface` objects. Each one to configure one tab."
14
- ].join(" ")
15
- },
16
- type: {
17
- options: ['inline', 'box'],
18
- control: { type: 'radio' }
19
- },
20
- tabChanged: {
21
- action: "tabChanged"
22
- }
23
- },
24
- render: (args) => ({
25
- props: {
26
- ...args,
27
- },
28
- template: `<sa-tabs ${argsToTemplate(args)}></sa-tabs>`
29
- }),
30
- };
31
-
32
- export default meta;
33
- type Story = StoryObj<TabsComponent>;
34
-
35
- const tabs: TabInterface[] = [
36
- {
37
- tabName: "Tab 1",
38
- tabIcon: "../assets/Sources.svg",
39
- iconPosition: "left",
40
- badgeContent: "3 new",
41
- },
42
- {
43
- tabName: "Tab 2",
44
- tabIcon: "../assets/Grid.svg",
45
- iconPosition: "left",
46
- badgeContent: "9 new",
47
- },
48
- {
49
- tabName: "Tab 3",
50
- tabIcon: "../assets/warningmark.svg",
51
- iconPosition: "left",
52
- badgeContent: "17 new",
53
- },
54
- {
55
- tabName: "Tab 4",
56
- tabIcon: "../assets/Person.svg",
57
- iconPosition: "left",
58
- },
59
- {
60
- tabName: "Tab 5",
61
- tabIcon: "../assets/Mail.svg",
62
- badgeContent: "6 new",
63
- iconPosition: "left",
64
- }
65
- ];
66
-
67
- export const Inline_tabs_default: Story = {
68
- args: {
69
- tabs: tabs,
70
- type: "inline",
71
- defaultTab: -1,
72
- }
73
- };
74
-
75
- export const inline_tabs_selected: Story = {
76
- args: {
77
- tabs: tabs,
78
- defaultTab: 2,
79
- type: "inline"
80
- }
81
- };
82
-
83
- export const box_tabs_default: Story = {
84
- args: {
85
- tabs: tabs,
86
- type: "box"
87
- }
88
- };
89
-
90
- export const box_tabs_selected: Story = {
91
- args: {
92
- tabs: tabs,
93
- defaultTab: 2,
94
- type: "box"
95
- }
96
- };
97
-
@@ -1,54 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/angular';
2
- import { argsToTemplate } from '@storybook/angular';
3
- import { ToastComponent } from '../../projects/component-library/src/lib/toast/toast.component';
4
- import { min } from 'rxjs';
5
-
6
- const meta: Meta<ToastComponent> = {
7
- title: 'Toast',
8
- component: ToastComponent,
9
- tags: ['autodocs'],
10
- argTypes: {
11
- firstButton: {
12
- action: "firstButton"
13
- },
14
- secondButton: {
15
- action: "secondButton"
16
- },
17
- closed: {
18
- action: "closed"
19
- },
20
- status: {
21
- options: ['positive', 'negative', 'tentative'],
22
- control: { type: 'radio' }
23
- },
24
- finishPercentage: {
25
- control: {
26
- type: 'range',
27
- min: -10,
28
- max: 100,
29
- step: 1,
30
- }
31
- }
32
- },
33
- render: (args) => ({
34
- props: {
35
- ...args,
36
- },
37
- template: `<sa-toast ${argsToTemplate(args)}></sa-toast>`
38
- }),
39
- };
40
-
41
- export default meta;
42
- type Story = StoryObj<ToastComponent>;
43
-
44
- export const toast: Story = {
45
- args: {
46
- heading: 'Heading',
47
- subHeading: 'Subheading text',
48
- status: 'positive',
49
- statusIcon: "../assets/warningmark.svg",
50
- finishPercentage: 30,
51
- firstButtonName: "Button",
52
- secondButtonName: "Button",
53
- }
54
- };
@@ -1,45 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/angular';
2
- import { argsToTemplate } from '@storybook/angular';
3
- import { ToolTipComponent } from '../../projects/component-library/src/public-api';
4
-
5
-
6
- const meta: Meta<ToolTipComponent> = {
7
- title: 'ToolTip',
8
- component: ToolTipComponent,
9
- tags: ['autodocs'],
10
- argTypes: {
11
- pointerPosition: {
12
- options: ['left', 'right', 'top', 'bottom'],
13
- control: { type: 'radio' }
14
- },
15
- toolTipSeen: {
16
- action: "toolTipSeen"
17
- },
18
- toolTipSkipped: {
19
- action: "toolTipSkipped"
20
- }
21
- },
22
- render: (args) => ({
23
- props: {
24
- ...args,
25
- },
26
- template: `<sa-tool-tip ${argsToTemplate(args)}></sa-tool-tip>`
27
- }),
28
- };
29
-
30
- export default meta;
31
- type Story = StoryObj<ToolTipComponent>;
32
-
33
- const messages: string[] = [
34
- "This first line can act as the subheading of this onboarding tooltip",
35
- "This second line can act as the subheading of this onboarding tooltip",
36
- "This third line can act as the subheading of this onboarding tooltip",
37
- "This fourth line can act as the subheading of this onboarding tooltip",
38
- ]
39
-
40
- export const toolTip: Story = {
41
- args: {
42
- pointerPosition: 'left',
43
- messages: messages,
44
- }
45
- };
package/src/styles.css DELETED
@@ -1,204 +0,0 @@
1
- @import 'ag-grid-community/styles/ag-grid.css';
2
- @import 'ag-grid-community/styles/ag-theme-quartz.css';
3
- @import "@ng-select/ng-select/themes/default.theme.css";
4
-
5
- html,
6
- body {
7
- height: 100%;
8
- }
9
-
10
- body {
11
- margin: 0;
12
- font-family: Roboto, "Helvetica Neue", sans-serif;
13
- }
14
-
15
- :root {
16
- --font: 'Roboto';
17
- --small-4px: 4px;
18
- --small-6px: 6px;
19
- --small-8px: 8px;
20
- --small-12px: 12px;
21
- --small-14px: 14px;
22
- --small-16px: 16px;
23
- --small-18px: 18px;
24
- --medium-20px: 20px;
25
- --medium-24px: 24px;
26
- }
27
-
28
- .insights-theme {
29
- --primary-50: #EAFFFD;
30
- --primary-100: #CAFFFB;
31
- --primary-200: #9CFFFA;
32
- --primary-300: #00DDEA;
33
- --primary-400: #00AFC4;
34
- --primary-500: #008597;
35
- --primary-600: #0B6E7F;
36
- --primary-700: #0E5B6B;
37
- --primary-800: #023D4A;
38
- --primary-900: #01303A;
39
- --secondary-50: #FFF3EB;
40
- --secondary-100: #FFD8C0;
41
- --secondary-200: #FFC6A2;
42
- --secondary-300: #FEAB78;
43
- --secondary-400: #FE9B5D;
44
- --secondary-500: #FE8235;
45
- --secondary-600: #E77630;
46
- --secondary-700: #B45C26;
47
- --secondary-800: #8C481D;
48
- --secondary-900: #6B3716;
49
- --grey-50: #E9EAEB;
50
- --grey-100: #BAC0C1;
51
- --grey-200: #98A1A3;
52
- --grey-300: #697779;
53
- --grey-400: #4C5C5F;
54
- --grey-500: #1F3437;
55
- --grey-600: #1C2F32;
56
- --grey-700: #162527;
57
- --grey-800: #111C1E;
58
- --grey-900: #0D1517;
59
- --semantic-success-50: #EBF5E9;
60
- --semantic-success-100: #C0DEBA;
61
- --semantic-success-200: #A1CF98;
62
- --semantic-success-300: #76B969;
63
- --semantic-success-400: #5CAB4C;
64
- --semantic-success-500: #33961F;
65
- --semantic-success-600: #2E891C;
66
- --semantic-success-700: #246B16;
67
- --semantic-success-800: #1C5311;
68
- --semantic-success-900: #153F0D;
69
- --semantic-error-50: #F8E9E9;
70
- --semantic-error-100: #EBBCB9;
71
- --semantic-error-200: #E19C98;
72
- --semantic-error-300: #D36E68;
73
- --semantic-error-400: #CA524B;
74
- --semantic-error-500: #BD271E;
75
- --semantic-error-600: #AC231B;
76
- --semantic-error-700: #861C15;
77
- --semantic-error-800: #681511;
78
- --semantic-error-900: #4F100D;
79
- --semantic-purple-50: #F3EFFD;
80
- --semantic-purple-100: #D8CCFA;
81
- --semantic-purple-200: #C6B4F7;
82
- --semantic-purple-300: #AB92F4;
83
- --semantic-purple-400: #9B7DF1;
84
- --semantic-purple-500: #815BED;
85
- --semantic-purple-600: #7654D9;
86
- --semantic-purple-700: #5C41A9;
87
- --semantic-purple-800: #483383;
88
- --semantic-purple-900: #372764;
89
- --semantic-yellow-50: #FEF6E6;
90
- --semantic-yellow-100: #FBE2B3;
91
- --semantic-yellow-200: #F9D58E;
92
- --semantic-yellow-300: #F6C15A;
93
- --semantic-yellow-400: #F5B53A;
94
- --text-highemphasis: #1B1F20;
95
- --text-mediumemphasis: #697779;
96
- --text-lowemphasis: #98A2A3;
97
- --text-white: #FFFFFF;
98
- --semantic-yellow-500: #F2A209;
99
- --semantic-yellow-600: #DC9408;
100
- --semantic-yellow-700: #AC7406;
101
- --semantic-yellow-800: #855A05;
102
- --structural-white: #FFFFFF;
103
- --icon-grey1: #757575;
104
- --structural-neutral1: #F9F9F9;
105
- }
106
-
107
- .saras-theme {
108
- --primary-50: #E8F1FC;
109
- --primary-100: #B8D4F7;
110
- --primary-200: #96C0F3;
111
- --primary-300: #66A2ED;
112
- --primary-400: #4992E9;
113
- --primary-500: #1B77E4;
114
- --primary-600: #196CCF;
115
- --primary-700: #1354A2;
116
- --primary-800: #0F417D;
117
- --primary-900: #0B3160;
118
- --secondary-50: #FFF3EB;
119
- --secondary-100: #FFD8C0;
120
- --secondary-200: #FFC6A2;
121
- --secondary-300: #FEAB78;
122
- --secondary-400: #FE9B5D;
123
- --secondary-500: #FE8235;
124
- --secondary-600: #E77630;
125
- --secondary-700: #B45C26;
126
- --secondary-800: #8C481D;
127
- --secondary-900: #6B3716;
128
- --grey-50: #E9E9EB;
129
- --grey-100: #BABDC1;
130
- --grey-200: #989CA3;
131
- --grey-300: #697079;
132
- --grey-400: #4C545F;
133
- --grey-500: #1F2937;
134
- --grey-600: #1C2532;
135
- --grey-700: #161D27;
136
- --grey-800: #11161E;
137
- --grey-900: #0D1117;
138
- --semantic-success-50: #EBF5E9;
139
- --semantic-success-100: #C0DEBA;
140
- --semantic-success-200: #A1CF98;
141
- --semantic-success-300: #76B969;
142
- --semantic-success-400: #5CAB4C;
143
- --semantic-success-500: #33961F;
144
- --semantic-success-600: #2E891C;
145
- --semantic-success-700: #246B16;
146
- --semantic-success-800: #1C5311;
147
- --semantic-success-900: #153F0D;
148
- --semantic-error-50: #F8E9E9;
149
- --semantic-error-100: #EBBCB9;
150
- --semantic-error-200: #E19C98;
151
- --semantic-error-300: #D36E68;
152
- --semantic-error-400: #CA524B;
153
- --semantic-error-500: #BD271E;
154
- --semantic-error-600: #AC231B;
155
- --semantic-error-700: #861C15;
156
- --semantic-error-800: #681511;
157
- --semantic-error-900: #4F100D;
158
- --semantic-purple-50: #F3EFFD;
159
- --semantic-purple-100: #D8CCFA;
160
- --semantic-purple-200: #C6B4F7;
161
- --semantic-purple-300: #AB92F4;
162
- --semantic-purple-400: #9B7DF1;
163
- --semantic-purple-500: #815BED;
164
- --semantic-purple-600: #7654D9;
165
- --semantic-purple-700: #5C41A9;
166
- --semantic-purple-800: #483383;
167
- --semantic-purple-900: #372764;
168
- --semantic-yellow-50: #FEF6E6;
169
- --semantic-yellow-100: #FBE2B3;
170
- --semantic-yellow-200: #F9D58E;
171
- --semantic-yellow-300: #F6C15A;
172
- --semantic-yellow-400: #F5B53A;
173
- --text-highemphasis: #1B1D20;
174
- --text-mediumemphasis: #697079;
175
- --text-lowemphasis: #989CA3;
176
- --text-white: #FFFFFF;
177
- --semantic-yellow-500: #F2A209;
178
- --semantic-yellow-600: #DC9408;
179
- --semantic-yellow-700: #AC7406;
180
- --semantic-yellow-800: #855A05;
181
- --structural-white: #FFFFFF;
182
- --icon-grey1: #757575;
183
- --structural-neutral1: #F9F9F9;
184
- }
185
-
186
- .ag-header {
187
- font-family: var(--font);
188
- font-size: 14px;
189
- font-weight: 400;
190
- height: 20px;
191
- line-height: 20px;
192
- }
193
-
194
- .ag-header-cell lib-grid-cell {
195
- width: 100%;
196
- }
197
-
198
- .ag-header-cell-label {
199
- font-family: var(--font);
200
- font-size: 14px;
201
- font-weight: 400;
202
- line-height: 20px;
203
- margin-left: 10px;
204
- }
package/src/svg.d.ts DELETED
@@ -1 +0,0 @@
1
- declare module '*.svg';
package/tsconfig.app.json DELETED
@@ -1,14 +0,0 @@
1
- /* To learn more about this file see: https://angular.io/config/tsconfig. */
2
- {
3
- "extends": "./tsconfig.json",
4
- "compilerOptions": {
5
- "outDir": "./out-tsc/app",
6
- "types": []
7
- },
8
- "files": [
9
- "src/main.ts"
10
- ],
11
- "include": [
12
- "src/**/*.d.ts"
13
- ]
14
- }