@avakhula/ui 0.0.510-alpha-spa.4 → 0.0.510-alpha-spa.6
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/dist/App.js +15 -17
- package/dist/components/Dropdown/DropdownList.js +2 -2
- package/dist/components/Form/Textarea/Textarea.js +3 -3
- package/dist/components/List.js +2 -2
- package/dist/components/TreeSelect/Option.js +4 -4
- package/package.json +6 -3
- package/src/App.vue +16 -0
- package/src/EventEmmiter.js +19 -0
- package/src/assets/scss/mixins/dropdown-list-item.scss +57 -0
- package/src/assets/scss/mixins/tooltip-position.scss +154 -0
- package/src/assets/scss/mixins.scss +21 -0
- package/src/assets/scss/reset.scss +12 -0
- package/src/assets/scss/style.scss +73 -0
- package/src/assets/scss/typography.scss +155 -0
- package/src/assets/scss/variables/colors.json +418 -0
- package/src/assets/scss/variables/colors.scss +115 -0
- package/src/assets/scss/variables/shadows.json +42 -0
- package/src/assets/scss/variables/shadows.scss +12 -0
- package/src/components/Accordion/Accordion.scss +97 -0
- package/src/components/Accordion/Accordion.stories.js +41 -0
- package/src/components/Accordion/Accordion.vue +91 -0
- package/src/components/Accordion/Acordion.spec.js +75 -0
- package/src/components/Accordion/readme.mdx +38 -0
- package/src/components/Alert/Alert.spec.js +69 -0
- package/src/components/Alert/Alert.stories.js +66 -0
- package/src/components/Alert/Alert.vue +155 -0
- package/src/components/Alert/alert.scss +193 -0
- package/src/components/Alert/constants.js +7 -0
- package/src/components/Alert/readme.mdx +62 -0
- package/src/components/Avatar/Avatar.stories.js +27 -0
- package/src/components/Avatar/Avatar.vue +148 -0
- package/src/components/Avatar/constants.js +10 -0
- package/src/components/Badge/Badge.spec.js +37 -0
- package/src/components/Badge/Badge.stories.js +53 -0
- package/src/components/Badge/Badge.vue +58 -0
- package/src/components/Badge/readme.mdx +35 -0
- package/src/components/Breadcrumbs/Breadcrumbs.vue +113 -0
- package/src/components/Breadcrumbs/breadcrumbs.scss +77 -0
- package/src/components/Breadcrumbs/breadcrumbs.stories.js +37 -0
- package/src/components/Button/Button.spec.js +85 -0
- package/src/components/Button/Button.stories.js +124 -0
- package/src/components/Button/Button.vue +192 -0
- package/src/components/Button/button.scss +226 -0
- package/src/components/Button/constants.js +8 -0
- package/src/components/Button/readme.mdx +96 -0
- package/src/components/ButtonGroup/ButtonGroup.stories.js +30 -0
- package/src/components/ButtonGroup/ButtonGroup.vue +24 -0
- package/src/components/ButtonGroup/readme.mdx +8 -0
- package/src/components/Chips/Chips.stories.js +30 -0
- package/src/components/Chips/Chips.vue +125 -0
- package/src/components/Dropdown/Dropdown.spec.js +90 -0
- package/src/components/Dropdown/Dropdown.stories.js +48 -0
- package/src/components/Dropdown/Dropdown.vue +315 -0
- package/src/components/Dropdown/DropdownDivider.vue +15 -0
- package/src/components/Dropdown/DropdownItem.vue +81 -0
- package/src/components/Dropdown/DropdownList.stories.js +174 -0
- package/src/components/Dropdown/DropdownList.vue +97 -0
- package/src/components/Dropdown/constants.js +10 -0
- package/src/components/Dropdown/readme.mdx +88 -0
- package/src/components/Form/CharactersCount.vue +58 -0
- package/src/components/Form/Checkbox/Checkbox.scss +252 -0
- package/src/components/Form/Checkbox/Checkbox.stories.js +65 -0
- package/src/components/Form/Checkbox/Checkbox.vue +175 -0
- package/src/components/Form/Checkbox/readme.mdx +64 -0
- package/src/components/Form/CheckboxGroup/CheckboxGroup.stories.js +64 -0
- package/src/components/Form/CheckboxGroup/CheckboxGroup.vue +102 -0
- package/src/components/Form/CheckboxGroup/readme.mdx +48 -0
- package/src/components/Form/DatePicker/DatePicker.scss +570 -0
- package/src/components/Form/DatePicker/DatePicker.stories.js +78 -0
- package/src/components/Form/DatePicker/DatePicker.vue +339 -0
- package/src/components/Form/DatePicker/Icons/chevron-back.js +5 -0
- package/src/components/Form/DatePicker/Icons/chevron-forward.js +5 -0
- package/src/components/Form/DatePicker/readme.mdx +106 -0
- package/src/components/Form/FormGroup/FormGroup.stories.js +48 -0
- package/src/components/Form/FormGroup/FormGroup.vue +61 -0
- package/src/components/Form/FormGroup/FormGroupSet.stories.js +32 -0
- package/src/components/Form/FormGroup/FormGroupSet.vue +75 -0
- package/src/components/Form/Input/Input.stories.js +137 -0
- package/src/components/Form/Input/Input.vue +387 -0
- package/src/components/Form/Input/constants.js +6 -0
- package/src/components/Form/Input/input.scss +219 -0
- package/src/components/Form/Input/readme.mdx +59 -0
- package/src/components/Form/Label/Label.stories.js +36 -0
- package/src/components/Form/Label/Label.vue +136 -0
- package/src/components/Form/Label/readme.mdx +24 -0
- package/src/components/Form/PhoneInput/PhoneInput.stories.js +43 -0
- package/src/components/Form/PhoneInput/PhoneInput.vue +154 -0
- package/src/components/Form/PhoneInput/phoneInput.scss +230 -0
- package/src/components/Form/PhoneInput/readme.mdx +34 -0
- package/src/components/Form/Radio/Radio.stories.js +34 -0
- package/src/components/Form/Radio/Radio.vue +87 -0
- package/src/components/Form/Radio/radio.scss +190 -0
- package/src/components/Form/Radio/readme.mdx +47 -0
- package/src/components/Form/TextEditor/TextEditor.stories.js +58 -0
- package/src/components/Form/TextEditor/TextEditor.vue +259 -0
- package/src/components/Form/TextEditor/Toolbar.vue +723 -0
- package/src/components/Form/TextEditor/icons/svg/chevron-down.svg +3 -0
- package/src/components/Form/TextEditor/icons/toolbarIcons.js +119 -0
- package/src/components/Form/TextEditor/plugins/alphabetList.js +43 -0
- package/src/components/Form/TextEditor/plugins/imageBlot.js +23 -0
- package/src/components/Form/TextEditor/readme.mdx +52 -0
- package/src/components/Form/TextEditor/setupTextEditor.js +71 -0
- package/src/components/Form/TextEditor/textEditor.scss +360 -0
- package/src/components/Form/Textarea/Textarea.spec.js +107 -0
- package/src/components/Form/Textarea/Textarea.stories.js +68 -0
- package/src/components/Form/Textarea/Textarea.vue +120 -0
- package/src/components/Form/Textarea/readme.mdx +38 -0
- package/src/components/Form/Textarea/textarea.scss +112 -0
- package/src/components/Form/Toggle/Toggle.stories.js +44 -0
- package/src/components/Form/Toggle/Toggle.vue +126 -0
- package/src/components/Form/Toggle/readme.mdx +37 -0
- package/src/components/Form/Toggle/toggle.scss +166 -0
- package/src/components/Icon.vue +41 -0
- package/src/components/IconButton/IconButton.scss +109 -0
- package/src/components/IconButton/IconButton.stories.js +115 -0
- package/src/components/IconButton/IconButton.vue +108 -0
- package/src/components/IconButton/constants.js +14 -0
- package/src/components/IconButton/readme.mdx +56 -0
- package/src/components/List.vue +150 -0
- package/src/components/Modal/Modal.stories.js +55 -0
- package/src/components/Modal/Modal.vue +383 -0
- package/src/components/Modal/constants.js +6 -0
- package/src/components/Modal/readme.mdx +77 -0
- package/src/components/Pagination/LimitSelector.vue +76 -0
- package/src/components/Pagination/Pagination.stories.js +54 -0
- package/src/components/Pagination/Pagination.vue +269 -0
- package/src/components/Pagination/pagination.scss +199 -0
- package/src/components/Panel/Panel.stories.js +36 -0
- package/src/components/Panel/Panel.vue +181 -0
- package/src/components/Popover/Popover.stories.js +46 -0
- package/src/components/Popover/Popover.vue +124 -0
- package/src/components/Popover/constants.js +14 -0
- package/src/components/Popover/popover.scss +46 -0
- package/src/components/Popover/readme.mdx +42 -0
- package/src/components/ProgressBar/ProgressBar.stories.js +90 -0
- package/src/components/ProgressBar/ProgressBar.vue +71 -0
- package/src/components/ProgressBar/constants.js +7 -0
- package/src/components/ProgressBar/progressBar.scss +123 -0
- package/src/components/ProgressBar/readme.mdx +64 -0
- package/src/components/Sorting/Sorting.stories.js +45 -0
- package/src/components/Sorting/Sorting.vue +214 -0
- package/src/components/Sorting/constants.js +10 -0
- package/src/components/Sorting/sorting.scss +90 -0
- package/src/components/SplitButton/SplitButton.stories.js +39 -0
- package/src/components/SplitButton/SplitButton.vue +182 -0
- package/src/components/SplitButton/SplitButtonItem.vue +46 -0
- package/src/components/SplitButton/constants.js +4 -0
- package/src/components/SplitButton/readme.mdx +77 -0
- package/src/components/SplitButton/splitButton.scss +164 -0
- package/src/components/StatusIndicator/StatusIndicator.stories.js +40 -0
- package/src/components/StatusIndicator/StatusIndicator.vue +52 -0
- package/src/components/StatusIndicator/constants.js +10 -0
- package/src/components/StatusIndicator/icons.js +48 -0
- package/src/components/StatusIndicator/readme.mdx +21 -0
- package/src/components/Table/Cells/Cell.vue +71 -0
- package/src/components/Table/Cells/CheckboxCell.vue +48 -0
- package/src/components/Table/Row.vue +26 -0
- package/src/components/Table/Table.stories.js +59 -0
- package/src/components/Table/Table.vue +36 -0
- package/src/components/Tabs/Tab.vue +41 -0
- package/src/components/Tabs/TabDropdown.vue +93 -0
- package/src/components/Tabs/Tabs.stories.js +57 -0
- package/src/components/Tabs/Tabs.vue +132 -0
- package/src/components/Tabs/tabs.scss +163 -0
- package/src/components/TagPill/TagPill.stories.js +30 -0
- package/src/components/TagPill/TagPill.vue +139 -0
- package/src/components/TagPill/constants.js +9 -0
- package/src/components/TagPill/readme.mdx +36 -0
- package/src/components/ToggleTip/ToggleTip.stories.js +98 -0
- package/src/components/ToggleTip/ToggleTip.vue +112 -0
- package/src/components/ToggleTip/constants.js +14 -0
- package/src/components/ToggleTip/readme.mdx +45 -0
- package/src/components/ToggleTip/toggleTip.scss +55 -0
- package/src/components/Tooltip/Tooltip.stories.js +56 -0
- package/src/components/Tooltip/Tooltip.vue +165 -0
- package/src/components/Tooltip/readme.mdx +42 -0
- package/src/components/TreeSelect/Option.vue +374 -0
- package/src/components/TreeSelect/Select.stories.js +267 -0
- package/src/components/TreeSelect/Select.vue +1219 -0
- package/src/components/TreeSelect/TreeSelect.stories.js +270 -0
- package/src/components/TreeSelect/mixins/InfinityLoaderMixin.js +40 -0
- package/src/components/TreeSelect/scss/option.scss +239 -0
- package/src/components/TreeSelect/scss/select.scss +299 -0
- package/src/constants/events.js +2 -0
- package/src/constants/keyCodes.js +9 -0
- package/src/directives/outside/outside.js +81 -0
- package/src/directives/outside/outside.stories.js +29 -0
- package/src/directives/outside/readme.mdx +24 -0
- package/src/directives/tooltip/TooltipController.js +184 -0
- package/src/directives/tooltip/readme.mdx +17 -0
- package/src/directives/tooltip/textOverflowTooltip.js +35 -0
- package/src/directives/tooltip/tooltip.js +123 -0
- package/src/directives/tooltip/tooltip.stories.js +39 -0
- package/src/helpers/debounce.js +23 -0
- package/src/helpers/generateUID.js +3 -0
- package/src/helpers/getHrefFromID.js +3 -0
- package/src/helpers/multiLineOverflows.js +3 -0
- package/src/helpers/removeEvents.js +9 -0
- package/src/helpers/stripHtml.js +4 -0
- package/src/index.js +60 -0
- package/src/main.js +12 -0
- package/src/mixins/expandAnimation.js +38 -0
- package/src/scripts/parseScssVariables.js +96 -0
- package/src/stories/link.readme.mdx +53 -0
- package/src/stories/link.stories.js +59 -0
- package/src/stories/variables/colors.stories.js +25 -0
- package/src/stories/variables/shadows.stories.js +25 -0
package/dist/App.js
CHANGED
|
@@ -1,25 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { resolveComponent as
|
|
3
|
-
import { _ as
|
|
4
|
-
const
|
|
1
|
+
import t from "./components/TreeSelect/Select.js";
|
|
2
|
+
import { resolveComponent as o, createElementBlock as s, openBlock as n, createVNode as c } from "vue";
|
|
3
|
+
import { _ as r } from "./chunks/_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
+
const i = {
|
|
5
5
|
components: {
|
|
6
|
-
|
|
6
|
+
IbSelect: t
|
|
7
7
|
}
|
|
8
|
-
},
|
|
9
|
-
function d
|
|
10
|
-
const e =
|
|
11
|
-
return
|
|
8
|
+
}, p = { style: { display: "flex", "flex-direction": "column", "align-items": "center", "justify-content": "center", height: "100vh" } };
|
|
9
|
+
function a(d, l, _, f, m, u) {
|
|
10
|
+
const e = o("ib-select");
|
|
11
|
+
return n(), s("div", p, [
|
|
12
12
|
c(e, {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
]),
|
|
18
|
-
_: 1
|
|
13
|
+
"data-testid": "tests",
|
|
14
|
+
"data-foo": "sdf",
|
|
15
|
+
dusk: "asd",
|
|
16
|
+
options: []
|
|
19
17
|
})
|
|
20
18
|
]);
|
|
21
19
|
}
|
|
22
|
-
const
|
|
20
|
+
const b = /* @__PURE__ */ r(i, [["render", a]]);
|
|
23
21
|
export {
|
|
24
|
-
|
|
22
|
+
b as default
|
|
25
23
|
};
|
|
@@ -88,7 +88,7 @@ function v(e, w, t, k, C, s) {
|
|
|
88
88
|
]), 1040, ["horizontal", "vertical", "isOpened", "closeOnClick", "disabled", "onAll"])
|
|
89
89
|
], 2);
|
|
90
90
|
}
|
|
91
|
-
const
|
|
91
|
+
const P = /* @__PURE__ */ y(O, [["render", v]]);
|
|
92
92
|
export {
|
|
93
|
-
|
|
93
|
+
P as default
|
|
94
94
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import b from "../../../helpers/generateUID.js";
|
|
2
2
|
import p from "../../Alert/Alert.js";
|
|
3
3
|
import _ from "../CharactersCount.js";
|
|
4
|
-
import { resolveComponent as o, createElementBlock as L, openBlock as c, normalizeClass as x, createBlock as
|
|
4
|
+
import { resolveComponent as o, createElementBlock as L, openBlock as c, normalizeClass as x, createBlock as y, createCommentVNode as I, withDirectives as s, createElementVNode as u, createVNode as d, withCtx as h, createTextVNode as m, toDisplayString as f, vShow as v, mergeProps as M, vModelText as S, renderSlot as C } from "vue";
|
|
5
5
|
import { _ as O } from "../../../chunks/_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const w = {
|
|
7
7
|
name: "IbTextarea",
|
|
@@ -80,11 +80,11 @@ function N(t, r, e, T, l, a) {
|
|
|
80
80
|
class: x(["textarea-wrapper", { disabled: e.disabled, hasActins: t.$slots.actions }]),
|
|
81
81
|
onFocusout: r[2] || (r[2] = (...i) => a.onFocusOut && a.onFocusOut(...i))
|
|
82
82
|
}, [
|
|
83
|
-
e.characterLimit ? (c(),
|
|
83
|
+
e.characterLimit ? (c(), y(g, {
|
|
84
84
|
key: 0,
|
|
85
85
|
"character-limit": e.characterLimit,
|
|
86
86
|
"character-length": l.val.length
|
|
87
|
-
}, null, 8, ["character-limit", "character-length"])) :
|
|
87
|
+
}, null, 8, ["character-limit", "character-length"])) : I("", !0),
|
|
88
88
|
s(d(n, null, {
|
|
89
89
|
default: h(() => [
|
|
90
90
|
m(f(e.errorMessage), 1)
|
package/dist/components/List.js
CHANGED
|
@@ -5,8 +5,8 @@ import E from "../Icon.js";
|
|
|
5
5
|
import S from "../IconButton/IconButton.js";
|
|
6
6
|
import { TooltipDirective as A } from "../../directives/tooltip/tooltip.js";
|
|
7
7
|
import O from "../../helpers/generateUID.js";
|
|
8
|
-
import
|
|
9
|
-
import { SPACE_KEY_CODE as
|
|
8
|
+
import L from "../../helpers/multiLineOverflows.js";
|
|
9
|
+
import { SPACE_KEY_CODE as N, ARROW_RIGHT_KEY_CODE as K, ARROW_LEFT_KEY_CODE as x } from "../../constants/keyCodes.js";
|
|
10
10
|
import { resolveComponent as d, resolveDirective as H, createElementBlock as l, openBlock as n, withDirectives as r, withModifiers as u, normalizeClass as f, createElementVNode as _, createCommentVNode as v, createVNode as p, withCtx as C, vShow as m, createBlock as c, resolveDynamicComponent as P, toDisplayString as b, Fragment as T, createTextVNode as R, renderList as F } from "vue";
|
|
11
11
|
import { _ as Y } from "../../chunks/_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
12
|
const z = {
|
|
@@ -62,7 +62,7 @@ const z = {
|
|
|
62
62
|
},
|
|
63
63
|
updated() {
|
|
64
64
|
this.$nextTick(() => {
|
|
65
|
-
this.option.showTooltipByDefault ? this.showTooltip = !0 :
|
|
65
|
+
this.option.showTooltipByDefault ? this.showTooltip = !0 : L(this.$el.querySelector(".option-label")) && (this.showTooltip = !0);
|
|
66
66
|
});
|
|
67
67
|
},
|
|
68
68
|
data() {
|
|
@@ -73,7 +73,7 @@ const z = {
|
|
|
73
73
|
},
|
|
74
74
|
methods: {
|
|
75
75
|
onKeydown(t) {
|
|
76
|
-
t.keyCode ===
|
|
76
|
+
t.keyCode === N && (t.preventDefault(), this.onChange()), this.hasVisibleChildren && (t.keyCode === K && (this.option.isChildrenVisible = !0), t.keyCode === x && (this.option.isChildrenVisible = !1));
|
|
77
77
|
},
|
|
78
78
|
onChange() {
|
|
79
79
|
var t, i;
|
package/package.json
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@avakhula/ui",
|
|
3
|
-
"version": "0.0.510-alpha-spa.
|
|
3
|
+
"version": "0.0.510-alpha-spa.06",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
|
-
"sideEffects": false,
|
|
7
6
|
"private": false,
|
|
8
|
-
"
|
|
7
|
+
"sideEffects": [
|
|
8
|
+
"*.css",
|
|
9
|
+
"*.scss"
|
|
10
|
+
],
|
|
11
|
+
"files": [ "dist", "src" ],
|
|
9
12
|
"publishConfig": {
|
|
10
13
|
"access": "public",
|
|
11
14
|
"registry": "https://registry.npmjs.org/"
|
package/src/App.vue
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div style="display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh;">
|
|
3
|
+
<ib-select data-testid="tests" data-foo="sdf" dusk="asd" :options="[]" />
|
|
4
|
+
</div>
|
|
5
|
+
|
|
6
|
+
</template>
|
|
7
|
+
|
|
8
|
+
<script>
|
|
9
|
+
import IbSelect from "./components/TreeSelect/Select.vue";
|
|
10
|
+
|
|
11
|
+
export default {
|
|
12
|
+
components: {
|
|
13
|
+
IbSelect,
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
</script>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import mitt from "mitt";
|
|
2
|
+
|
|
3
|
+
export default class {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.provider = mitt();
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
$on(event, callback) {
|
|
9
|
+
this.provider.on(event, callback);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
$off(event, callback) {
|
|
13
|
+
this.provider.off(event, callback);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
$emit(event, args) {
|
|
17
|
+
this.provider.emit(event, args);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
@use "../variables/colors.scss" as *;
|
|
2
|
+
@use "../typography.scss" as *;
|
|
3
|
+
@use "../mixins.scss" as *;
|
|
4
|
+
|
|
5
|
+
@mixin DropdownListItem {
|
|
6
|
+
.ib-dropdown-item {
|
|
7
|
+
@include Ib-H4-regular;
|
|
8
|
+
padding: 8.5px 15px;
|
|
9
|
+
background-color: transparent;
|
|
10
|
+
border: none;
|
|
11
|
+
border-left: 2px solid transparent;
|
|
12
|
+
display: inline-block;
|
|
13
|
+
text-decoration: none;
|
|
14
|
+
text-align: start;
|
|
15
|
+
outline: none;
|
|
16
|
+
color: $neutral-900;
|
|
17
|
+
min-width: 100%;
|
|
18
|
+
width: max-content;
|
|
19
|
+
max-width: inherit;
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
transition: background-color 0.3s, border-color 0.3s;
|
|
22
|
+
@include lineClamp(1);
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
|
|
26
|
+
ion-icon {
|
|
27
|
+
font-size: 16px;
|
|
28
|
+
margin-right: 15px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
p {
|
|
32
|
+
@include lineClamp(1);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&:hover {
|
|
36
|
+
background-color: $gray-100;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&:disabled {
|
|
40
|
+
cursor: not-allowed;
|
|
41
|
+
color: $neutral-500;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&:focus {
|
|
45
|
+
@include focus();
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&.active {
|
|
49
|
+
background-color: $gray-100;
|
|
50
|
+
border-left-color: $blue-900;
|
|
51
|
+
|
|
52
|
+
&:hover {
|
|
53
|
+
background-color: $blue-50;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
@use "../variables/colors.scss" as *;
|
|
2
|
+
@use "../variables/shadows.scss" as *;
|
|
3
|
+
|
|
4
|
+
$background: $white;
|
|
5
|
+
$textColor: $neutral-900;
|
|
6
|
+
$shadow: $ib-shadow-3;
|
|
7
|
+
|
|
8
|
+
@mixin TooltipPosition {
|
|
9
|
+
&::before {
|
|
10
|
+
content: "";
|
|
11
|
+
width: 0;
|
|
12
|
+
height: 0;
|
|
13
|
+
border-style: solid;
|
|
14
|
+
border-width: 4px 4px 0 4px;
|
|
15
|
+
border-color: $background transparent transparent transparent;
|
|
16
|
+
position: absolute;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&.ib {
|
|
20
|
+
&-top-left {
|
|
21
|
+
bottom: calc(100% + 5px);
|
|
22
|
+
right: calc(50% - 14px);
|
|
23
|
+
|
|
24
|
+
&::before {
|
|
25
|
+
bottom: -4px;
|
|
26
|
+
right: 10px;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&-top-center {
|
|
31
|
+
bottom: calc(100% + 5px);
|
|
32
|
+
right: 50%;
|
|
33
|
+
transform: translateX(50%);
|
|
34
|
+
|
|
35
|
+
&::before {
|
|
36
|
+
bottom: -4px;
|
|
37
|
+
right: 50%;
|
|
38
|
+
transform: translateX(50%);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&-top-right {
|
|
43
|
+
bottom: calc(100% + 5px);
|
|
44
|
+
left: calc(50% - 14px);
|
|
45
|
+
|
|
46
|
+
&::before {
|
|
47
|
+
bottom: -4px;
|
|
48
|
+
left: 10px;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&-right-top {
|
|
53
|
+
left: calc(100% + 5px);
|
|
54
|
+
bottom: calc(50% - 14px);
|
|
55
|
+
|
|
56
|
+
&::before {
|
|
57
|
+
left: -6px;
|
|
58
|
+
bottom: 10px;
|
|
59
|
+
transform: rotate(90deg);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&-right-center {
|
|
64
|
+
bottom: 50%;
|
|
65
|
+
transform: translateY(50%);
|
|
66
|
+
left: calc(100% + 5px);
|
|
67
|
+
|
|
68
|
+
&::before {
|
|
69
|
+
left: -8px;
|
|
70
|
+
top: 50%;
|
|
71
|
+
transform: rotate(90deg) translateY(-50%);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&-right-bottom {
|
|
76
|
+
left: calc(100% + 5px);
|
|
77
|
+
top: calc(50% - 10px);
|
|
78
|
+
|
|
79
|
+
&::before {
|
|
80
|
+
top: 10px;
|
|
81
|
+
left: -6px;
|
|
82
|
+
transform: rotate(90deg);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&-bottom-left {
|
|
87
|
+
top: calc(100% + 5px);
|
|
88
|
+
right: calc(50% - 14px);
|
|
89
|
+
|
|
90
|
+
&::before {
|
|
91
|
+
top: -4px;
|
|
92
|
+
right: 10px;
|
|
93
|
+
transform: rotate(180deg);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&-bottom-center {
|
|
98
|
+
top: calc(100% + 5px);
|
|
99
|
+
right: 50%;
|
|
100
|
+
transform: translateX(50%);
|
|
101
|
+
|
|
102
|
+
&::before {
|
|
103
|
+
top: -4px;
|
|
104
|
+
right: 50%;
|
|
105
|
+
transform: rotate(180deg) translateX(-50%);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
&-bottom-right {
|
|
110
|
+
top: calc(100% + 5px);
|
|
111
|
+
left: calc(50% - 14px);
|
|
112
|
+
|
|
113
|
+
&::before {
|
|
114
|
+
top: -4px;
|
|
115
|
+
left: 10px;
|
|
116
|
+
transform: rotate(180deg);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&-left-top {
|
|
121
|
+
right: calc(100% + 5px);
|
|
122
|
+
bottom: calc(50% - 14px);
|
|
123
|
+
|
|
124
|
+
&::before {
|
|
125
|
+
right: -6px;
|
|
126
|
+
bottom: 10px;
|
|
127
|
+
transform: rotate(-90deg);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
&-left-center {
|
|
132
|
+
bottom: 50%;
|
|
133
|
+
transform: translateY(50%);
|
|
134
|
+
right: calc(100% + 5px);
|
|
135
|
+
|
|
136
|
+
&::before {
|
|
137
|
+
right: -8px;
|
|
138
|
+
top: 50%;
|
|
139
|
+
transform: rotate(-90deg) translateY(-50%);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&-left-bottom {
|
|
144
|
+
right: calc(100% + 5px);
|
|
145
|
+
top: calc(50% - 10px);
|
|
146
|
+
|
|
147
|
+
&::before {
|
|
148
|
+
top: 10px;
|
|
149
|
+
right: -6px;
|
|
150
|
+
transform: rotate(-90deg);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
@use "./variables/colors.scss" as *;
|
|
2
|
+
|
|
3
|
+
@mixin outline($offset: -2px, $color: $blue-700) {
|
|
4
|
+
outline-offset: $offset;
|
|
5
|
+
outline: 2px solid $color!important;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@mixin focus($offset: -2px, $color: $blue-700) {
|
|
9
|
+
@include outline($offset, $color);
|
|
10
|
+
|
|
11
|
+
&:not(:focus-visible) {
|
|
12
|
+
outline: none!important;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@mixin lineClamp($lines: 2) {
|
|
17
|
+
display: -webkit-box;
|
|
18
|
+
-webkit-box-orient: vertical;
|
|
19
|
+
-webkit-line-clamp: $lines;
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
@use "./reset.scss" as *;
|
|
2
|
+
@use "./mixins.scss" as *;
|
|
3
|
+
@use "./variables/colors.scss" as *;
|
|
4
|
+
@use "./typography.scss" as *;
|
|
5
|
+
|
|
6
|
+
body,
|
|
7
|
+
textarea::placeholder,
|
|
8
|
+
input::placeholder,
|
|
9
|
+
textarea,
|
|
10
|
+
button {
|
|
11
|
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
|
12
|
+
"Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
|
|
13
|
+
"Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.ib-link {
|
|
17
|
+
@include Ib-P1-regular;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.ib-standalone-link {
|
|
21
|
+
text-decoration: none;
|
|
22
|
+
@include Ib-H4-medium;
|
|
23
|
+
height: 36px;
|
|
24
|
+
border-bottom: 1px solid transparent;
|
|
25
|
+
display: inline-flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
|
|
28
|
+
.ib-icon {
|
|
29
|
+
margin-left: 5px;
|
|
30
|
+
font-size: 16px;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.ib-standalone-link,
|
|
35
|
+
.ib-link {
|
|
36
|
+
color: $blue-800;
|
|
37
|
+
transition: color 0.3s;
|
|
38
|
+
text-underline-offset: 4px;
|
|
39
|
+
text-decoration-color: $blue-800;
|
|
40
|
+
|
|
41
|
+
&:hover {
|
|
42
|
+
text-decoration: underline;
|
|
43
|
+
text-decoration-color: $blue-700;
|
|
44
|
+
color: $blue-700;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&:active {
|
|
48
|
+
text-decoration: underline;
|
|
49
|
+
text-decoration-color: $blue-900;
|
|
50
|
+
color: $blue-900;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&:focus {
|
|
54
|
+
text-decoration: underline;
|
|
55
|
+
border-radius: 4px;
|
|
56
|
+
@include outline(4px);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&:visited {
|
|
60
|
+
color: $purple-500;
|
|
61
|
+
text-decoration-color: $purple-500;
|
|
62
|
+
|
|
63
|
+
&:hover {
|
|
64
|
+
text-decoration-color: $purple-400;
|
|
65
|
+
color: $purple-400;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&:active {
|
|
69
|
+
color: $purple-800;
|
|
70
|
+
text-decoration-color: $purple-800;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
@mixin Ib-H1-medium {
|
|
2
|
+
font-weight: 500;
|
|
3
|
+
font-size: 26px;
|
|
4
|
+
line-height: 35px;
|
|
5
|
+
letter-spacing: 0.02em;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@mixin Ib-H2-medium {
|
|
9
|
+
font-weight: 500;
|
|
10
|
+
font-size: 20px;
|
|
11
|
+
line-height: 27px;
|
|
12
|
+
letter-spacing: 0.02em;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@mixin Ib-H3-medium {
|
|
16
|
+
font-weight: 500;
|
|
17
|
+
font-size: 16px;
|
|
18
|
+
line-height: 21px;
|
|
19
|
+
letter-spacing: 0.02em;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@mixin Ib-H4 {
|
|
23
|
+
font-style: normal;
|
|
24
|
+
font-size: 14px;
|
|
25
|
+
line-height: 19px;
|
|
26
|
+
letter-spacing: 0.02em;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@mixin Ib-H4-regular {
|
|
30
|
+
@include Ib-H4;
|
|
31
|
+
font-weight: 400;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@mixin Ib-H4-medium {
|
|
35
|
+
@include Ib-H4;
|
|
36
|
+
font-weight: 500;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@mixin Ib-H4-regular-italic {
|
|
40
|
+
@include Ib-H4;
|
|
41
|
+
font-style: italic;
|
|
42
|
+
font-weight: 400;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@mixin Ib-H5 {
|
|
46
|
+
font-style: normal;
|
|
47
|
+
font-size: 12px;
|
|
48
|
+
line-height: 16px;
|
|
49
|
+
letter-spacing: 0.02em;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@mixin Ib-H5-regular {
|
|
53
|
+
@include Ib-H5;
|
|
54
|
+
font-weight: 400;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@mixin Ib-H5-medium {
|
|
58
|
+
@include Ib-H5;
|
|
59
|
+
font-weight: 500;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@mixin Ib-H6 {
|
|
63
|
+
font-style: normal;
|
|
64
|
+
font-size: 10px;
|
|
65
|
+
line-height: 12px;
|
|
66
|
+
letter-spacing: 0.02em;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@mixin Ib-H6-regular {
|
|
70
|
+
@include Ib-H6;
|
|
71
|
+
font-weight: 400;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@mixin Ib-H6-medium {
|
|
75
|
+
@include Ib-H6;
|
|
76
|
+
font-weight: 500;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
@mixin Ib-P1 {
|
|
81
|
+
font-style: normal;
|
|
82
|
+
font-size: 14px;
|
|
83
|
+
line-height: 22px;
|
|
84
|
+
letter-spacing: 0.02em;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
@mixin Ib-P1-regular {
|
|
88
|
+
@include Ib-P1;
|
|
89
|
+
font-weight: 400;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
@mixin Ib-P1-medium {
|
|
93
|
+
@include Ib-P1;
|
|
94
|
+
font-weight: 500;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.Ib-H1-medium {
|
|
98
|
+
@include Ib-H1-medium;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.Ib-H2-medium {
|
|
102
|
+
@include Ib-H2-medium;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.Ib-H3-medium {
|
|
106
|
+
@include Ib-H3-medium;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.Ib-H4 {
|
|
110
|
+
@include Ib-H4;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.Ib-H4-regular {
|
|
114
|
+
@include Ib-H4-regular;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.Ib-H4-medium {
|
|
118
|
+
@include Ib-H4-medium;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.Ib-H4-regular-italic {
|
|
122
|
+
@include Ib-H4-regular-italic;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.Ib-H5 {
|
|
126
|
+
@include Ib-H5;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.Ib-H5-regular {
|
|
130
|
+
@include Ib-H5-regular;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.Ib-H5-medium {
|
|
134
|
+
@include Ib-H5-medium;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.Ib-H6 {
|
|
138
|
+
@include Ib-H6;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.Ib-H6-regular {
|
|
142
|
+
@include Ib-H6-regular;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.Ib-H6-medium {
|
|
146
|
+
@include Ib-H6-medium;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.Ib-P1-medium {
|
|
150
|
+
@include Ib-P1-medium;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.Ib-P1-regular {
|
|
154
|
+
@include Ib-P1-regular;
|
|
155
|
+
}
|