@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.
- package/.babelrc.json +0 -0
- package/.eslintrc.cjs +0 -0
- package/.nvmrc +0 -0
- package/.prettierrc.json +0 -0
- package/.storybook/intelliboardTheme.js +0 -0
- package/.storybook/main.js +0 -0
- package/.storybook/manager.js +0 -0
- package/.storybook/preview-head.html +0 -0
- package/.storybook/preview.js +0 -0
- package/.storybook/scss-loader.scss +0 -0
- package/.storybook/withSource.js +0 -0
- package/README.md +0 -0
- package/dist/index.js +3536 -3457
- package/dist/index.umd.cjs +69 -71
- package/dist/style.css +1 -1
- package/index.html +0 -0
- package/package.json +1 -1
- package/src/App.vue +5 -1
- package/src/EventEmmiter.js +0 -0
- package/src/assets/scss/mixins/tooltip-position.scss +0 -0
- package/src/assets/scss/mixins.scss +0 -0
- package/src/assets/scss/reset.scss +0 -0
- package/src/assets/scss/style.scss +0 -0
- package/src/assets/scss/typography.scss +0 -0
- package/src/assets/scss/variables/colors.json +0 -0
- package/src/assets/scss/variables/colors.scss +0 -0
- package/src/assets/scss/variables/shadows.json +0 -0
- package/src/assets/scss/variables/shadows.scss +0 -0
- package/src/components/Accordion/Accordion.scss +0 -0
- package/src/components/Accordion/Accordion.stories.js +0 -0
- package/src/components/Accordion/Accordion.vue +0 -0
- package/src/components/Accordion/Acordion.spec.js +0 -0
- package/src/components/Accordion/readme.mdx +0 -0
- package/src/components/Alert/Alert.spec.js +0 -0
- package/src/components/Alert/Alert.stories.js +0 -0
- package/src/components/Alert/Alert.vue +0 -0
- package/src/components/Alert/alert.scss +0 -0
- package/src/components/Alert/constants.js +0 -0
- package/src/components/Alert/readme.mdx +0 -0
- package/src/components/Avatar/Avatar.stories.js +0 -0
- package/src/components/Avatar/Avatar.vue +0 -0
- package/src/components/Avatar/constants.js +0 -0
- package/src/components/Badge/Badge.spec.js +0 -0
- package/src/components/Badge/Badge.stories.js +0 -0
- package/src/components/Badge/Badge.vue +0 -0
- package/src/components/Badge/readme.mdx +0 -0
- package/src/components/Breadcrumbs/Breadcrumbs.vue +0 -0
- package/src/components/Breadcrumbs/breadcrumbs.scss +0 -0
- package/src/components/Breadcrumbs/breadcrumbs.stories.js +0 -0
- package/src/components/Button/Button.spec.js +0 -0
- package/src/components/Button/Button.stories.js +0 -0
- package/src/components/Button/Button.vue +0 -0
- package/src/components/Button/constants.js +0 -0
- package/src/components/Button/readme.mdx +0 -0
- package/src/components/ButtonGroup/ButtonGroup.stories.js +0 -0
- package/src/components/ButtonGroup/ButtonGroup.vue +0 -0
- package/src/components/ButtonGroup/readme.mdx +0 -0
- package/src/components/Dropdown/Dropdown.spec.js +0 -0
- package/src/components/Dropdown/Dropdown.stories.js +0 -0
- package/src/components/Dropdown/Dropdown.vue +0 -0
- package/src/components/Dropdown/DropdownDivider.vue +0 -0
- package/src/components/Dropdown/DropdownList.stories.js +0 -0
- package/src/components/Dropdown/DropdownList.vue +0 -0
- package/src/components/Dropdown/constants.js +0 -0
- package/src/components/Dropdown/readme.mdx +0 -0
- package/src/components/Form/CharactersCount.vue +0 -0
- package/src/components/Form/Checkbox/Checkbox.scss +0 -0
- package/src/components/Form/Checkbox/Checkbox.stories.js +0 -0
- package/src/components/Form/Checkbox/Checkbox.vue +6 -3
- package/src/components/Form/Checkbox/readme.mdx +0 -0
- package/src/components/Form/CheckboxGroup/CheckboxGroup.stories.js +0 -0
- package/src/components/Form/CheckboxGroup/CheckboxGroup.vue +0 -11
- package/src/components/Form/CheckboxGroup/readme.mdx +0 -2
- package/src/components/Form/DatePicker/DatePicker.scss +0 -0
- package/src/components/Form/DatePicker/DatePicker.stories.js +0 -0
- package/src/components/Form/DatePicker/DatePicker.vue +0 -0
- package/src/components/Form/DatePicker/Icons/chevron-back.js +0 -0
- package/src/components/Form/DatePicker/Icons/chevron-forward.js +0 -0
- package/src/components/Form/DatePicker/readme.mdx +0 -0
- package/src/components/Form/FormGroup/FormGroup.stories.js +0 -0
- package/src/components/Form/FormGroup/FormGroup.vue +0 -0
- package/src/components/Form/FormGroup/FormGroupSet.stories.js +0 -0
- package/src/components/Form/FormGroup/FormGroupSet.vue +0 -0
- package/src/components/Form/Input/Input.stories.js +0 -0
- package/src/components/Form/Input/Input.vue +0 -0
- package/src/components/Form/Input/constants.js +0 -0
- package/src/components/Form/Input/input.scss +0 -0
- package/src/components/Form/Input/readme.mdx +0 -0
- package/src/components/Form/Label/Label.stories.js +0 -0
- package/src/components/Form/Label/readme.mdx +0 -0
- package/src/components/Form/PhoneInput/PhoneInput.stories.js +0 -0
- package/src/components/Form/PhoneInput/PhoneInput.vue +0 -0
- package/src/components/Form/PhoneInput/phoneInput.scss +0 -0
- package/src/components/Form/PhoneInput/readme.mdx +0 -0
- package/src/components/Form/Radio/Radio.stories.js +0 -0
- package/src/components/Form/Radio/Radio.vue +0 -1
- package/src/components/Form/Radio/radio.scss +0 -1
- package/src/components/Form/Radio/readme.mdx +0 -0
- package/src/components/Form/TextEditor/TextEditor.stories.js +0 -0
- package/src/components/Form/TextEditor/TextEditor.vue +0 -0
- package/src/components/Form/TextEditor/icons/svg/chevron-down.svg +0 -0
- package/src/components/Form/TextEditor/icons/toolbarIcons.js +0 -0
- package/src/components/Form/TextEditor/plugins/alphabetList.js +0 -0
- package/src/components/Form/TextEditor/readme.mdx +0 -0
- package/src/components/Form/TextEditor/textEditor.scss +0 -0
- package/src/components/Form/Textarea/Textarea.spec.js +0 -0
- package/src/components/Form/Textarea/Textarea.stories.js +0 -0
- package/src/components/Form/Textarea/Textarea.vue +0 -0
- package/src/components/Form/Textarea/readme.mdx +0 -0
- package/src/components/Form/Textarea/textarea.scss +0 -0
- package/src/components/Form/Toggle/Toggle.stories.js +0 -0
- package/src/components/Form/Toggle/Toggle.vue +0 -0
- package/src/components/Form/Toggle/readme.mdx +0 -0
- package/src/components/Form/Toggle/toggle.scss +0 -0
- package/src/components/Icon.vue +0 -0
- package/src/components/IconButton/IconButton.scss +0 -0
- package/src/components/IconButton/IconButton.stories.js +0 -0
- package/src/components/IconButton/constants.js +0 -0
- package/src/components/IconButton/readme.mdx +0 -0
- package/src/components/List.vue +0 -0
- package/src/components/Modal/Modal.stories.js +0 -0
- package/src/components/Modal/Modal.vue +0 -0
- package/src/components/Modal/constants.js +0 -0
- package/src/components/Modal/readme.mdx +0 -0
- package/src/components/Pagination/LimitSelector.vue +0 -0
- package/src/components/Pagination/Pagination.stories.js +0 -0
- package/src/components/Pagination/Pagination.vue +0 -0
- package/src/components/Pagination/pagination.scss +0 -0
- package/src/components/Panel/Panel.stories.js +0 -0
- package/src/components/Panel/Panel.vue +19 -4
- package/src/components/Popover/Popover.stories.js +0 -0
- package/src/components/Popover/constants.js +0 -0
- package/src/components/Popover/readme.mdx +0 -0
- package/src/components/ProgressBar/ProgressBar.stories.js +0 -0
- package/src/components/ProgressBar/ProgressBar.vue +0 -0
- package/src/components/ProgressBar/constants.js +0 -0
- package/src/components/ProgressBar/progressBar.scss +0 -0
- package/src/components/ProgressBar/readme.mdx +0 -0
- package/src/components/Sorting/Sorting.stories.js +0 -0
- package/src/components/Sorting/Sorting.vue +0 -0
- package/src/components/Sorting/constants.js +0 -0
- package/src/components/Sorting/sorting.scss +0 -0
- package/src/components/SplitButton/SplitButton.stories.js +0 -0
- package/src/components/SplitButton/SplitButton.vue +0 -0
- package/src/components/SplitButton/SplitButtonItem.vue +0 -0
- package/src/components/SplitButton/constants.js +0 -0
- package/src/components/SplitButton/readme.mdx +0 -0
- package/src/components/SplitButton/splitButton.scss +0 -0
- package/src/components/StatusIndicator/StatusIndicator.stories.js +0 -0
- package/src/components/StatusIndicator/StatusIndicator.vue +0 -0
- package/src/components/StatusIndicator/constants.js +0 -0
- package/src/components/StatusIndicator/icons.js +0 -0
- package/src/components/StatusIndicator/readme.mdx +0 -0
- package/src/components/Table/Cells/Cell.vue +0 -0
- package/src/components/Table/Cells/CheckboxCell.vue +0 -0
- package/src/components/Table/Row.vue +0 -0
- package/src/components/Table/Table.stories.js +0 -0
- package/src/components/Table/Table.vue +0 -0
- package/src/components/Tabs/Tab.vue +0 -0
- package/src/components/Tabs/TabDropdown.vue +0 -0
- package/src/components/Tabs/Tabs.stories.js +0 -0
- package/src/components/Tabs/Tabs.vue +0 -0
- package/src/components/Tabs/tabs.scss +0 -0
- package/src/components/TagPill/TagPill.stories.js +0 -0
- package/src/components/TagPill/TagPill.vue +0 -0
- package/src/components/TagPill/constants.js +0 -0
- package/src/components/TagPill/readme.mdx +0 -0
- package/src/components/ToggleTip/ToggleTip.stories.js +0 -0
- package/src/components/ToggleTip/ToggleTip.vue +0 -0
- package/src/components/ToggleTip/constants.js +0 -0
- package/src/components/ToggleTip/readme.mdx +0 -0
- package/src/components/ToggleTip/toggleTip.scss +0 -0
- package/src/components/Tooltip/Tooltip.stories.js +0 -0
- package/src/components/Tooltip/Tooltip.vue +0 -0
- package/src/components/Tooltip/readme.mdx +0 -0
- package/src/components/TreeSelect/Option.vue +0 -0
- package/src/components/TreeSelect/Select.stories.js +0 -0
- package/src/components/TreeSelect/Select.vue +9 -8
- package/src/components/TreeSelect/TreeSelect.stories.js +0 -0
- package/src/components/TreeSelect/scss/option.scss +0 -0
- package/src/components/TreeSelect/scss/select.scss +0 -0
- package/src/constants/events.js +0 -0
- package/src/constants/keyCodes.js +0 -0
- package/src/directives/outside/outside.js +0 -0
- package/src/directives/outside/outside.stories.js +0 -0
- package/src/directives/outside/readme.mdx +0 -0
- package/src/directives/tooltip/readme.mdx +0 -0
- package/src/directives/tooltip/textOverflowTooltip.js +0 -0
- package/src/directives/tooltip/tooltip.js +0 -0
- package/src/directives/tooltip/tooltip.stories.js +0 -0
- package/src/helpers/generateUID.js +0 -0
- package/src/helpers/getHrefFromID.js +0 -0
- package/src/helpers/multiLineOverflows.js +0 -0
- package/src/helpers/removeEvents.js +0 -0
- package/src/main.js +0 -0
- package/src/mixins/expandAnimation.js +0 -0
- package/src/scripts/parseScssVariables.js +0 -0
- package/src/stories/link.readme.mdx +0 -0
- package/src/stories/link.stories.js +0 -0
- package/src/stories/variables/colors.stories.js +0 -0
- package/src/stories/variables/shadows.stories.js +0 -0
- package/static/Logo.svg +0 -0
- package/static/docks/button.pdf +0 -0
- package/static/favicon.ico +0 -0
- package/vite.config.js +0 -0
package/index.html
CHANGED
|
File without changes
|
package/package.json
CHANGED
package/src/App.vue
CHANGED
package/src/EventEmmiter.js
CHANGED
|
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
|
|
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)
|
|
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
|
|
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
|
|
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
|
package/src/components/Icon.vue
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/src/components/List.vue
CHANGED
|
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
|
|
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="
|
|
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
|
-
|
|
397
|
-
|
|
398
|
-
|
|
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
|
-
|
|
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.
|
|
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.
|
|
955
|
+
this.verticalVal = "top";
|
|
955
956
|
}
|
|
956
957
|
})
|
|
957
958
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/src/constants/events.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|