@avakhula/ui 0.0.337-alpha.1 → 0.0.338

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 (205) hide show
  1. package/.babelrc.json +0 -0
  2. package/.eslintrc.cjs +0 -0
  3. package/.nvmrc +0 -0
  4. package/.prettierrc.json +0 -0
  5. package/.storybook/intelliboardTheme.js +0 -0
  6. package/.storybook/main.js +0 -0
  7. package/.storybook/manager.js +0 -0
  8. package/.storybook/preview-head.html +0 -0
  9. package/.storybook/preview.js +0 -0
  10. package/.storybook/scss-loader.scss +0 -0
  11. package/.storybook/withSource.js +0 -0
  12. package/README.md +0 -0
  13. package/dist/index.js +3536 -3457
  14. package/dist/index.umd.cjs +69 -71
  15. package/dist/style.css +1 -1
  16. package/index.html +0 -0
  17. package/package.json +1 -1
  18. package/src/App.vue +5 -1
  19. package/src/EventEmmiter.js +0 -0
  20. package/src/assets/scss/mixins/tooltip-position.scss +0 -0
  21. package/src/assets/scss/mixins.scss +0 -0
  22. package/src/assets/scss/reset.scss +0 -0
  23. package/src/assets/scss/style.scss +0 -0
  24. package/src/assets/scss/typography.scss +0 -0
  25. package/src/assets/scss/variables/colors.json +0 -0
  26. package/src/assets/scss/variables/colors.scss +0 -0
  27. package/src/assets/scss/variables/shadows.json +0 -0
  28. package/src/assets/scss/variables/shadows.scss +0 -0
  29. package/src/components/Accordion/Accordion.scss +0 -0
  30. package/src/components/Accordion/Accordion.stories.js +0 -0
  31. package/src/components/Accordion/Accordion.vue +0 -0
  32. package/src/components/Accordion/Acordion.spec.js +0 -0
  33. package/src/components/Accordion/readme.mdx +0 -0
  34. package/src/components/Alert/Alert.spec.js +0 -0
  35. package/src/components/Alert/Alert.stories.js +0 -0
  36. package/src/components/Alert/Alert.vue +0 -0
  37. package/src/components/Alert/alert.scss +0 -0
  38. package/src/components/Alert/constants.js +0 -0
  39. package/src/components/Alert/readme.mdx +0 -0
  40. package/src/components/Avatar/Avatar.stories.js +0 -0
  41. package/src/components/Avatar/Avatar.vue +0 -0
  42. package/src/components/Avatar/constants.js +0 -0
  43. package/src/components/Badge/Badge.spec.js +0 -0
  44. package/src/components/Badge/Badge.stories.js +0 -0
  45. package/src/components/Badge/Badge.vue +0 -0
  46. package/src/components/Badge/readme.mdx +0 -0
  47. package/src/components/Breadcrumbs/Breadcrumbs.vue +0 -0
  48. package/src/components/Breadcrumbs/breadcrumbs.scss +0 -0
  49. package/src/components/Breadcrumbs/breadcrumbs.stories.js +0 -0
  50. package/src/components/Button/Button.spec.js +0 -0
  51. package/src/components/Button/Button.stories.js +0 -0
  52. package/src/components/Button/Button.vue +0 -0
  53. package/src/components/Button/constants.js +0 -0
  54. package/src/components/Button/readme.mdx +0 -0
  55. package/src/components/ButtonGroup/ButtonGroup.stories.js +0 -0
  56. package/src/components/ButtonGroup/ButtonGroup.vue +0 -0
  57. package/src/components/ButtonGroup/readme.mdx +0 -0
  58. package/src/components/Dropdown/Dropdown.spec.js +0 -0
  59. package/src/components/Dropdown/Dropdown.stories.js +0 -0
  60. package/src/components/Dropdown/Dropdown.vue +0 -0
  61. package/src/components/Dropdown/DropdownDivider.vue +0 -0
  62. package/src/components/Dropdown/DropdownList.stories.js +0 -0
  63. package/src/components/Dropdown/DropdownList.vue +0 -0
  64. package/src/components/Dropdown/constants.js +0 -0
  65. package/src/components/Dropdown/readme.mdx +0 -0
  66. package/src/components/Form/CharactersCount.vue +0 -0
  67. package/src/components/Form/Checkbox/Checkbox.scss +0 -0
  68. package/src/components/Form/Checkbox/Checkbox.stories.js +0 -0
  69. package/src/components/Form/Checkbox/Checkbox.vue +6 -3
  70. package/src/components/Form/Checkbox/readme.mdx +0 -0
  71. package/src/components/Form/CheckboxGroup/CheckboxGroup.stories.js +0 -0
  72. package/src/components/Form/CheckboxGroup/CheckboxGroup.vue +0 -11
  73. package/src/components/Form/CheckboxGroup/readme.mdx +0 -2
  74. package/src/components/Form/DatePicker/DatePicker.scss +0 -0
  75. package/src/components/Form/DatePicker/DatePicker.stories.js +0 -0
  76. package/src/components/Form/DatePicker/DatePicker.vue +0 -0
  77. package/src/components/Form/DatePicker/Icons/chevron-back.js +0 -0
  78. package/src/components/Form/DatePicker/Icons/chevron-forward.js +0 -0
  79. package/src/components/Form/DatePicker/readme.mdx +0 -0
  80. package/src/components/Form/FormGroup/FormGroup.stories.js +0 -0
  81. package/src/components/Form/FormGroup/FormGroup.vue +0 -0
  82. package/src/components/Form/FormGroup/FormGroupSet.stories.js +0 -0
  83. package/src/components/Form/FormGroup/FormGroupSet.vue +0 -0
  84. package/src/components/Form/Input/Input.stories.js +0 -0
  85. package/src/components/Form/Input/Input.vue +0 -0
  86. package/src/components/Form/Input/constants.js +0 -0
  87. package/src/components/Form/Input/input.scss +0 -0
  88. package/src/components/Form/Input/readme.mdx +0 -0
  89. package/src/components/Form/Label/Label.stories.js +0 -0
  90. package/src/components/Form/Label/readme.mdx +0 -0
  91. package/src/components/Form/PhoneInput/PhoneInput.stories.js +0 -0
  92. package/src/components/Form/PhoneInput/PhoneInput.vue +0 -0
  93. package/src/components/Form/PhoneInput/phoneInput.scss +0 -0
  94. package/src/components/Form/PhoneInput/readme.mdx +0 -0
  95. package/src/components/Form/Radio/Radio.stories.js +0 -0
  96. package/src/components/Form/Radio/Radio.vue +0 -1
  97. package/src/components/Form/Radio/radio.scss +0 -1
  98. package/src/components/Form/Radio/readme.mdx +0 -0
  99. package/src/components/Form/TextEditor/TextEditor.stories.js +0 -0
  100. package/src/components/Form/TextEditor/TextEditor.vue +0 -0
  101. package/src/components/Form/TextEditor/icons/svg/chevron-down.svg +0 -0
  102. package/src/components/Form/TextEditor/icons/toolbarIcons.js +0 -0
  103. package/src/components/Form/TextEditor/plugins/alphabetList.js +0 -0
  104. package/src/components/Form/TextEditor/readme.mdx +0 -0
  105. package/src/components/Form/TextEditor/textEditor.scss +0 -0
  106. package/src/components/Form/Textarea/Textarea.spec.js +0 -0
  107. package/src/components/Form/Textarea/Textarea.stories.js +0 -0
  108. package/src/components/Form/Textarea/Textarea.vue +0 -0
  109. package/src/components/Form/Textarea/readme.mdx +0 -0
  110. package/src/components/Form/Textarea/textarea.scss +0 -0
  111. package/src/components/Form/Toggle/Toggle.stories.js +0 -0
  112. package/src/components/Form/Toggle/Toggle.vue +0 -0
  113. package/src/components/Form/Toggle/readme.mdx +0 -0
  114. package/src/components/Form/Toggle/toggle.scss +0 -0
  115. package/src/components/Icon.vue +0 -0
  116. package/src/components/IconButton/IconButton.scss +0 -0
  117. package/src/components/IconButton/IconButton.stories.js +0 -0
  118. package/src/components/IconButton/constants.js +0 -0
  119. package/src/components/IconButton/readme.mdx +0 -0
  120. package/src/components/List.vue +0 -0
  121. package/src/components/Modal/Modal.stories.js +0 -0
  122. package/src/components/Modal/Modal.vue +0 -0
  123. package/src/components/Modal/constants.js +0 -0
  124. package/src/components/Modal/readme.mdx +0 -0
  125. package/src/components/Pagination/LimitSelector.vue +0 -0
  126. package/src/components/Pagination/Pagination.stories.js +0 -0
  127. package/src/components/Pagination/Pagination.vue +0 -0
  128. package/src/components/Pagination/pagination.scss +0 -0
  129. package/src/components/Panel/Panel.stories.js +0 -0
  130. package/src/components/Panel/Panel.vue +19 -4
  131. package/src/components/Popover/Popover.stories.js +0 -0
  132. package/src/components/Popover/constants.js +0 -0
  133. package/src/components/Popover/readme.mdx +0 -0
  134. package/src/components/ProgressBar/ProgressBar.stories.js +0 -0
  135. package/src/components/ProgressBar/ProgressBar.vue +0 -0
  136. package/src/components/ProgressBar/constants.js +0 -0
  137. package/src/components/ProgressBar/progressBar.scss +0 -0
  138. package/src/components/ProgressBar/readme.mdx +0 -0
  139. package/src/components/Sorting/Sorting.stories.js +0 -0
  140. package/src/components/Sorting/Sorting.vue +0 -0
  141. package/src/components/Sorting/constants.js +0 -0
  142. package/src/components/Sorting/sorting.scss +0 -0
  143. package/src/components/SplitButton/SplitButton.stories.js +0 -0
  144. package/src/components/SplitButton/SplitButton.vue +0 -0
  145. package/src/components/SplitButton/SplitButtonItem.vue +0 -0
  146. package/src/components/SplitButton/constants.js +0 -0
  147. package/src/components/SplitButton/readme.mdx +0 -0
  148. package/src/components/SplitButton/splitButton.scss +0 -0
  149. package/src/components/StatusIndicator/StatusIndicator.stories.js +0 -0
  150. package/src/components/StatusIndicator/StatusIndicator.vue +0 -0
  151. package/src/components/StatusIndicator/constants.js +0 -0
  152. package/src/components/StatusIndicator/icons.js +0 -0
  153. package/src/components/StatusIndicator/readme.mdx +0 -0
  154. package/src/components/Table/Cells/Cell.vue +0 -0
  155. package/src/components/Table/Cells/CheckboxCell.vue +0 -0
  156. package/src/components/Table/Row.vue +0 -0
  157. package/src/components/Table/Table.stories.js +0 -0
  158. package/src/components/Table/Table.vue +0 -0
  159. package/src/components/Tabs/Tab.vue +0 -0
  160. package/src/components/Tabs/TabDropdown.vue +0 -0
  161. package/src/components/Tabs/Tabs.stories.js +0 -0
  162. package/src/components/Tabs/Tabs.vue +0 -0
  163. package/src/components/Tabs/tabs.scss +0 -0
  164. package/src/components/TagPill/TagPill.stories.js +0 -0
  165. package/src/components/TagPill/TagPill.vue +0 -0
  166. package/src/components/TagPill/constants.js +0 -0
  167. package/src/components/TagPill/readme.mdx +0 -0
  168. package/src/components/ToggleTip/ToggleTip.stories.js +0 -0
  169. package/src/components/ToggleTip/ToggleTip.vue +0 -0
  170. package/src/components/ToggleTip/constants.js +0 -0
  171. package/src/components/ToggleTip/readme.mdx +0 -0
  172. package/src/components/ToggleTip/toggleTip.scss +0 -0
  173. package/src/components/Tooltip/Tooltip.stories.js +0 -0
  174. package/src/components/Tooltip/Tooltip.vue +0 -0
  175. package/src/components/Tooltip/readme.mdx +0 -0
  176. package/src/components/TreeSelect/Option.vue +0 -0
  177. package/src/components/TreeSelect/Select.stories.js +0 -0
  178. package/src/components/TreeSelect/Select.vue +9 -8
  179. package/src/components/TreeSelect/TreeSelect.stories.js +0 -0
  180. package/src/components/TreeSelect/scss/option.scss +0 -0
  181. package/src/components/TreeSelect/scss/select.scss +0 -0
  182. package/src/constants/events.js +0 -0
  183. package/src/constants/keyCodes.js +0 -0
  184. package/src/directives/outside/outside.js +0 -0
  185. package/src/directives/outside/outside.stories.js +0 -0
  186. package/src/directives/outside/readme.mdx +0 -0
  187. package/src/directives/tooltip/readme.mdx +0 -0
  188. package/src/directives/tooltip/textOverflowTooltip.js +0 -0
  189. package/src/directives/tooltip/tooltip.js +0 -0
  190. package/src/directives/tooltip/tooltip.stories.js +0 -0
  191. package/src/helpers/generateUID.js +0 -0
  192. package/src/helpers/getHrefFromID.js +0 -0
  193. package/src/helpers/multiLineOverflows.js +0 -0
  194. package/src/helpers/removeEvents.js +0 -0
  195. package/src/main.js +0 -0
  196. package/src/mixins/expandAnimation.js +0 -0
  197. package/src/scripts/parseScssVariables.js +0 -0
  198. package/src/stories/link.readme.mdx +0 -0
  199. package/src/stories/link.stories.js +0 -0
  200. package/src/stories/variables/colors.stories.js +0 -0
  201. package/src/stories/variables/shadows.stories.js +0 -0
  202. package/static/Logo.svg +0 -0
  203. package/static/docks/button.pdf +0 -0
  204. package/static/favicon.ico +0 -0
  205. package/vite.config.js +0 -0
package/index.html CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avakhula/ui",
3
- "version": "0.0.337-alpha.1",
3
+ "version": "0.0.338",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.umd.cjs",
6
6
  "source": "src/index.js",
package/src/App.vue CHANGED
@@ -1,5 +1,9 @@
1
1
  <template>
2
- <ib-select :options="opt"/>
2
+ <ib-select :options="opt">
3
+ <template v-slot:triggerContent="{ selectedCount }">
4
+ {{ selectedCount }}
5
+ </template>
6
+ </ib-select>
3
7
 
4
8
  </template>
5
9
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -15,7 +15,7 @@
15
15
  :disabled="disabled"
16
16
  :required="required"
17
17
  v-model="checked"
18
- @click.prevent="onChange"
18
+ @click="onChange"
19
19
  />
20
20
  <div class="ib-checkbox-body">
21
21
  <span
@@ -116,8 +116,11 @@ export default {
116
116
  };
117
117
  },
118
118
  methods: {
119
- onChange() {
120
- if (this.readonly) return;
119
+ onChange(e) {
120
+ if (this.readonly) {
121
+ e.preventDefault();
122
+ return;
123
+ };
121
124
 
122
125
  this.checked = !this.checked;
123
126
  this.$emit("update:modelValue", this.checked);
File without changes
@@ -7,7 +7,6 @@
7
7
  v-if="labelText.length"
8
8
  class="ib-checkbox-group-label"
9
9
  :required="required"
10
- :info-text="infoText"
11
10
  >
12
11
  {{ labelText }}
13
12
  </ib-label>
@@ -45,14 +44,6 @@ export default {
45
44
  type: String,
46
45
  default: "",
47
46
  },
48
- infoText: {
49
- type: String,
50
- default: ""
51
- },
52
- height: {
53
- type: String,
54
- default: '290px'
55
- }
56
47
  },
57
48
  components: {
58
49
  IbLabel,
@@ -71,8 +62,6 @@ export default {
71
62
  .ib-checkbox-group-content {
72
63
  display: flex;
73
64
  flex-direction: column;
74
- flex-wrap: wrap;
75
- max-height: v-bind(height);
76
65
  .ib-radio:not(:last-child),
77
66
  .ib-checkbox:not(:last-child) {
78
67
  margin-bottom: 10px;
@@ -17,8 +17,6 @@ The IbCheckboxGroup component is a wrapper component that helps to group and dis
17
17
  | required | Boolean | false | If true, a required indicator will be displayed next to the label |
18
18
  | horizontal | Boolean | false | If true, the checkboxes or radio buttons will be displayed horizontally |
19
19
  | errorMessage | String | '' | Responsible for displaying an error |
20
- | infoText | String | '' | The text that will be displayed inside the tooltip when the information button is hover or have focus. |
21
- | maxHeight | String | '290px' | Max height of container with radio elements. |
22
20
 
23
21
  ### Slots
24
22
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -4,7 +4,6 @@
4
4
  :class="classes"
5
5
  :for="id"
6
6
  :aria-checked="checked"
7
- @click.prevent="onClick"
8
7
  >
9
8
  <input
10
9
  type="radio"
@@ -38,7 +38,6 @@ $radio-border-filled-disabled: $neutral-500;
38
38
  width: 1px;
39
39
  height: 1px;
40
40
 
41
-
42
41
  &:focus + .ib-radio-body {
43
42
  border-radius: 4px;
44
43
  @include outline(2px);
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="panel" :class="{ 'panel-error': error }">
2
+ <div class="ib-panel" :class="{ 'panel-error': error }">
3
3
  <div class="panel-head">
4
4
  <div class="head-title">
5
5
  <slot name="title" />
@@ -60,9 +60,8 @@ $panel-border-color: $gray-200;
60
60
  $panel-error-outline-color: $red-800;
61
61
  $panel-title-color: $neutral-900;
62
62
  $panel-divider-color: $gray-300;
63
- $description-color: $gray-700;
64
63
 
65
- .panel {
64
+ .ib-panel {
66
65
  border: 1px solid $panel-border-color;
67
66
  border-radius: 4px;
68
67
 
@@ -91,9 +90,25 @@ $description-color: $gray-700;
91
90
  }
92
91
 
93
92
  .head-content {
93
+ width: 100%;
94
94
  @include Ib-H4-regular;
95
+ }
96
+ }
97
+ }
98
+ </style>
99
+
100
+ <style lang="scss">
101
+ @import "../../assets/scss/variables/colors.scss";
102
+ @import "../../assets/scss/typography.scss";
103
+
104
+ $description-color: $gray-700;
105
+
106
+ .ib-panel {
107
+ .head-content {
108
+ width: 100%;
109
+ @include Ib-H4-regular;
110
+ p {
95
111
  color: $description-color;
96
- width: 100%;
97
112
  }
98
113
  }
99
114
  }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -12,7 +12,7 @@
12
12
  <ib-dropdown
13
13
  :disabled="isLoading"
14
14
  :is-resizable="isResizable"
15
- :vertical="vertical"
15
+ :vertical="verticalVal"
16
16
  ref="dropdown"
17
17
  @close="onClose"
18
18
  @open="onOpen"
@@ -393,10 +393,9 @@ export default {
393
393
  type: Boolean,
394
394
  default: false,
395
395
  },
396
- // vertical: {
397
- // type: String,
398
- // default: "bottom"
399
- // },
396
+ vertical: {
397
+ type: String,
398
+ },
400
399
  emptyMessage: {
401
400
  type: String,
402
401
  default: "",
@@ -545,7 +544,7 @@ export default {
545
544
  actualBookmarkedOptions: {},
546
545
  selected: [],
547
546
  isOpen: false,
548
- vertical: "bottom",
547
+ verticalVal: this.vertical ?? "bottom",
549
548
  allOptionsIsChecked: true,
550
549
  hasTreeChildren: false,
551
550
  uid: `f${(~~(Math.random() * 1e8)).toString(16)}`,
@@ -942,16 +941,18 @@ export default {
942
941
  this.$emit("close", Object.keys(this.selected)[0]);
943
942
  }
944
943
  this.$emit("blur");
945
- this.vertical = "bottom";
944
+ this.verticalVal = this.vertical ?? "bottom";
946
945
  },
947
946
  onOpen() {
948
947
  const screenHeight = document.documentElement.scrollHeight;
949
948
  this.isOpen = true;
950
949
 
950
+ if (this.vertical === "bottom") return;
951
+
951
952
  this.$nextTick(() => {
952
953
  const newScreenHeight = document.documentElement.scrollHeight
953
954
  if(newScreenHeight > screenHeight) {
954
- this.vertical = "top";
955
+ this.verticalVal = "top";
955
956
  }
956
957
  })
957
958
  }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes