@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.
Files changed (207) hide show
  1. package/dist/App.js +15 -17
  2. package/dist/components/Dropdown/DropdownList.js +2 -2
  3. package/dist/components/Form/Textarea/Textarea.js +3 -3
  4. package/dist/components/List.js +2 -2
  5. package/dist/components/TreeSelect/Option.js +4 -4
  6. package/package.json +6 -3
  7. package/src/App.vue +16 -0
  8. package/src/EventEmmiter.js +19 -0
  9. package/src/assets/scss/mixins/dropdown-list-item.scss +57 -0
  10. package/src/assets/scss/mixins/tooltip-position.scss +154 -0
  11. package/src/assets/scss/mixins.scss +21 -0
  12. package/src/assets/scss/reset.scss +12 -0
  13. package/src/assets/scss/style.scss +73 -0
  14. package/src/assets/scss/typography.scss +155 -0
  15. package/src/assets/scss/variables/colors.json +418 -0
  16. package/src/assets/scss/variables/colors.scss +115 -0
  17. package/src/assets/scss/variables/shadows.json +42 -0
  18. package/src/assets/scss/variables/shadows.scss +12 -0
  19. package/src/components/Accordion/Accordion.scss +97 -0
  20. package/src/components/Accordion/Accordion.stories.js +41 -0
  21. package/src/components/Accordion/Accordion.vue +91 -0
  22. package/src/components/Accordion/Acordion.spec.js +75 -0
  23. package/src/components/Accordion/readme.mdx +38 -0
  24. package/src/components/Alert/Alert.spec.js +69 -0
  25. package/src/components/Alert/Alert.stories.js +66 -0
  26. package/src/components/Alert/Alert.vue +155 -0
  27. package/src/components/Alert/alert.scss +193 -0
  28. package/src/components/Alert/constants.js +7 -0
  29. package/src/components/Alert/readme.mdx +62 -0
  30. package/src/components/Avatar/Avatar.stories.js +27 -0
  31. package/src/components/Avatar/Avatar.vue +148 -0
  32. package/src/components/Avatar/constants.js +10 -0
  33. package/src/components/Badge/Badge.spec.js +37 -0
  34. package/src/components/Badge/Badge.stories.js +53 -0
  35. package/src/components/Badge/Badge.vue +58 -0
  36. package/src/components/Badge/readme.mdx +35 -0
  37. package/src/components/Breadcrumbs/Breadcrumbs.vue +113 -0
  38. package/src/components/Breadcrumbs/breadcrumbs.scss +77 -0
  39. package/src/components/Breadcrumbs/breadcrumbs.stories.js +37 -0
  40. package/src/components/Button/Button.spec.js +85 -0
  41. package/src/components/Button/Button.stories.js +124 -0
  42. package/src/components/Button/Button.vue +192 -0
  43. package/src/components/Button/button.scss +226 -0
  44. package/src/components/Button/constants.js +8 -0
  45. package/src/components/Button/readme.mdx +96 -0
  46. package/src/components/ButtonGroup/ButtonGroup.stories.js +30 -0
  47. package/src/components/ButtonGroup/ButtonGroup.vue +24 -0
  48. package/src/components/ButtonGroup/readme.mdx +8 -0
  49. package/src/components/Chips/Chips.stories.js +30 -0
  50. package/src/components/Chips/Chips.vue +125 -0
  51. package/src/components/Dropdown/Dropdown.spec.js +90 -0
  52. package/src/components/Dropdown/Dropdown.stories.js +48 -0
  53. package/src/components/Dropdown/Dropdown.vue +315 -0
  54. package/src/components/Dropdown/DropdownDivider.vue +15 -0
  55. package/src/components/Dropdown/DropdownItem.vue +81 -0
  56. package/src/components/Dropdown/DropdownList.stories.js +174 -0
  57. package/src/components/Dropdown/DropdownList.vue +97 -0
  58. package/src/components/Dropdown/constants.js +10 -0
  59. package/src/components/Dropdown/readme.mdx +88 -0
  60. package/src/components/Form/CharactersCount.vue +58 -0
  61. package/src/components/Form/Checkbox/Checkbox.scss +252 -0
  62. package/src/components/Form/Checkbox/Checkbox.stories.js +65 -0
  63. package/src/components/Form/Checkbox/Checkbox.vue +175 -0
  64. package/src/components/Form/Checkbox/readme.mdx +64 -0
  65. package/src/components/Form/CheckboxGroup/CheckboxGroup.stories.js +64 -0
  66. package/src/components/Form/CheckboxGroup/CheckboxGroup.vue +102 -0
  67. package/src/components/Form/CheckboxGroup/readme.mdx +48 -0
  68. package/src/components/Form/DatePicker/DatePicker.scss +570 -0
  69. package/src/components/Form/DatePicker/DatePicker.stories.js +78 -0
  70. package/src/components/Form/DatePicker/DatePicker.vue +339 -0
  71. package/src/components/Form/DatePicker/Icons/chevron-back.js +5 -0
  72. package/src/components/Form/DatePicker/Icons/chevron-forward.js +5 -0
  73. package/src/components/Form/DatePicker/readme.mdx +106 -0
  74. package/src/components/Form/FormGroup/FormGroup.stories.js +48 -0
  75. package/src/components/Form/FormGroup/FormGroup.vue +61 -0
  76. package/src/components/Form/FormGroup/FormGroupSet.stories.js +32 -0
  77. package/src/components/Form/FormGroup/FormGroupSet.vue +75 -0
  78. package/src/components/Form/Input/Input.stories.js +137 -0
  79. package/src/components/Form/Input/Input.vue +387 -0
  80. package/src/components/Form/Input/constants.js +6 -0
  81. package/src/components/Form/Input/input.scss +219 -0
  82. package/src/components/Form/Input/readme.mdx +59 -0
  83. package/src/components/Form/Label/Label.stories.js +36 -0
  84. package/src/components/Form/Label/Label.vue +136 -0
  85. package/src/components/Form/Label/readme.mdx +24 -0
  86. package/src/components/Form/PhoneInput/PhoneInput.stories.js +43 -0
  87. package/src/components/Form/PhoneInput/PhoneInput.vue +154 -0
  88. package/src/components/Form/PhoneInput/phoneInput.scss +230 -0
  89. package/src/components/Form/PhoneInput/readme.mdx +34 -0
  90. package/src/components/Form/Radio/Radio.stories.js +34 -0
  91. package/src/components/Form/Radio/Radio.vue +87 -0
  92. package/src/components/Form/Radio/radio.scss +190 -0
  93. package/src/components/Form/Radio/readme.mdx +47 -0
  94. package/src/components/Form/TextEditor/TextEditor.stories.js +58 -0
  95. package/src/components/Form/TextEditor/TextEditor.vue +259 -0
  96. package/src/components/Form/TextEditor/Toolbar.vue +723 -0
  97. package/src/components/Form/TextEditor/icons/svg/chevron-down.svg +3 -0
  98. package/src/components/Form/TextEditor/icons/toolbarIcons.js +119 -0
  99. package/src/components/Form/TextEditor/plugins/alphabetList.js +43 -0
  100. package/src/components/Form/TextEditor/plugins/imageBlot.js +23 -0
  101. package/src/components/Form/TextEditor/readme.mdx +52 -0
  102. package/src/components/Form/TextEditor/setupTextEditor.js +71 -0
  103. package/src/components/Form/TextEditor/textEditor.scss +360 -0
  104. package/src/components/Form/Textarea/Textarea.spec.js +107 -0
  105. package/src/components/Form/Textarea/Textarea.stories.js +68 -0
  106. package/src/components/Form/Textarea/Textarea.vue +120 -0
  107. package/src/components/Form/Textarea/readme.mdx +38 -0
  108. package/src/components/Form/Textarea/textarea.scss +112 -0
  109. package/src/components/Form/Toggle/Toggle.stories.js +44 -0
  110. package/src/components/Form/Toggle/Toggle.vue +126 -0
  111. package/src/components/Form/Toggle/readme.mdx +37 -0
  112. package/src/components/Form/Toggle/toggle.scss +166 -0
  113. package/src/components/Icon.vue +41 -0
  114. package/src/components/IconButton/IconButton.scss +109 -0
  115. package/src/components/IconButton/IconButton.stories.js +115 -0
  116. package/src/components/IconButton/IconButton.vue +108 -0
  117. package/src/components/IconButton/constants.js +14 -0
  118. package/src/components/IconButton/readme.mdx +56 -0
  119. package/src/components/List.vue +150 -0
  120. package/src/components/Modal/Modal.stories.js +55 -0
  121. package/src/components/Modal/Modal.vue +383 -0
  122. package/src/components/Modal/constants.js +6 -0
  123. package/src/components/Modal/readme.mdx +77 -0
  124. package/src/components/Pagination/LimitSelector.vue +76 -0
  125. package/src/components/Pagination/Pagination.stories.js +54 -0
  126. package/src/components/Pagination/Pagination.vue +269 -0
  127. package/src/components/Pagination/pagination.scss +199 -0
  128. package/src/components/Panel/Panel.stories.js +36 -0
  129. package/src/components/Panel/Panel.vue +181 -0
  130. package/src/components/Popover/Popover.stories.js +46 -0
  131. package/src/components/Popover/Popover.vue +124 -0
  132. package/src/components/Popover/constants.js +14 -0
  133. package/src/components/Popover/popover.scss +46 -0
  134. package/src/components/Popover/readme.mdx +42 -0
  135. package/src/components/ProgressBar/ProgressBar.stories.js +90 -0
  136. package/src/components/ProgressBar/ProgressBar.vue +71 -0
  137. package/src/components/ProgressBar/constants.js +7 -0
  138. package/src/components/ProgressBar/progressBar.scss +123 -0
  139. package/src/components/ProgressBar/readme.mdx +64 -0
  140. package/src/components/Sorting/Sorting.stories.js +45 -0
  141. package/src/components/Sorting/Sorting.vue +214 -0
  142. package/src/components/Sorting/constants.js +10 -0
  143. package/src/components/Sorting/sorting.scss +90 -0
  144. package/src/components/SplitButton/SplitButton.stories.js +39 -0
  145. package/src/components/SplitButton/SplitButton.vue +182 -0
  146. package/src/components/SplitButton/SplitButtonItem.vue +46 -0
  147. package/src/components/SplitButton/constants.js +4 -0
  148. package/src/components/SplitButton/readme.mdx +77 -0
  149. package/src/components/SplitButton/splitButton.scss +164 -0
  150. package/src/components/StatusIndicator/StatusIndicator.stories.js +40 -0
  151. package/src/components/StatusIndicator/StatusIndicator.vue +52 -0
  152. package/src/components/StatusIndicator/constants.js +10 -0
  153. package/src/components/StatusIndicator/icons.js +48 -0
  154. package/src/components/StatusIndicator/readme.mdx +21 -0
  155. package/src/components/Table/Cells/Cell.vue +71 -0
  156. package/src/components/Table/Cells/CheckboxCell.vue +48 -0
  157. package/src/components/Table/Row.vue +26 -0
  158. package/src/components/Table/Table.stories.js +59 -0
  159. package/src/components/Table/Table.vue +36 -0
  160. package/src/components/Tabs/Tab.vue +41 -0
  161. package/src/components/Tabs/TabDropdown.vue +93 -0
  162. package/src/components/Tabs/Tabs.stories.js +57 -0
  163. package/src/components/Tabs/Tabs.vue +132 -0
  164. package/src/components/Tabs/tabs.scss +163 -0
  165. package/src/components/TagPill/TagPill.stories.js +30 -0
  166. package/src/components/TagPill/TagPill.vue +139 -0
  167. package/src/components/TagPill/constants.js +9 -0
  168. package/src/components/TagPill/readme.mdx +36 -0
  169. package/src/components/ToggleTip/ToggleTip.stories.js +98 -0
  170. package/src/components/ToggleTip/ToggleTip.vue +112 -0
  171. package/src/components/ToggleTip/constants.js +14 -0
  172. package/src/components/ToggleTip/readme.mdx +45 -0
  173. package/src/components/ToggleTip/toggleTip.scss +55 -0
  174. package/src/components/Tooltip/Tooltip.stories.js +56 -0
  175. package/src/components/Tooltip/Tooltip.vue +165 -0
  176. package/src/components/Tooltip/readme.mdx +42 -0
  177. package/src/components/TreeSelect/Option.vue +374 -0
  178. package/src/components/TreeSelect/Select.stories.js +267 -0
  179. package/src/components/TreeSelect/Select.vue +1219 -0
  180. package/src/components/TreeSelect/TreeSelect.stories.js +270 -0
  181. package/src/components/TreeSelect/mixins/InfinityLoaderMixin.js +40 -0
  182. package/src/components/TreeSelect/scss/option.scss +239 -0
  183. package/src/components/TreeSelect/scss/select.scss +299 -0
  184. package/src/constants/events.js +2 -0
  185. package/src/constants/keyCodes.js +9 -0
  186. package/src/directives/outside/outside.js +81 -0
  187. package/src/directives/outside/outside.stories.js +29 -0
  188. package/src/directives/outside/readme.mdx +24 -0
  189. package/src/directives/tooltip/TooltipController.js +184 -0
  190. package/src/directives/tooltip/readme.mdx +17 -0
  191. package/src/directives/tooltip/textOverflowTooltip.js +35 -0
  192. package/src/directives/tooltip/tooltip.js +123 -0
  193. package/src/directives/tooltip/tooltip.stories.js +39 -0
  194. package/src/helpers/debounce.js +23 -0
  195. package/src/helpers/generateUID.js +3 -0
  196. package/src/helpers/getHrefFromID.js +3 -0
  197. package/src/helpers/multiLineOverflows.js +3 -0
  198. package/src/helpers/removeEvents.js +9 -0
  199. package/src/helpers/stripHtml.js +4 -0
  200. package/src/index.js +60 -0
  201. package/src/main.js +12 -0
  202. package/src/mixins/expandAnimation.js +38 -0
  203. package/src/scripts/parseScssVariables.js +96 -0
  204. package/src/stories/link.readme.mdx +53 -0
  205. package/src/stories/link.stories.js +59 -0
  206. package/src/stories/variables/colors.stories.js +25 -0
  207. package/src/stories/variables/shadows.stories.js +25 -0
package/dist/App.js CHANGED
@@ -1,25 +1,23 @@
1
- import o from "./components/Form/Textarea/Textarea.js";
2
- import { resolveComponent as n, createElementBlock as r, openBlock as s, createVNode as c, withCtx as i, createElementVNode as a } from "vue";
3
- import { _ as l } from "./chunks/_plugin-vue_export-helper-CHgC5LLL.js";
4
- const p = {
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
- IbTextarea: o
6
+ IbSelect: t
7
7
  }
8
- }, _ = { style: { display: "flex", "flex-direction": "column", "align-items": "center", "justify-content": "center", height: "100vh" } }, m = /* @__PURE__ */ a("button", null, "test", -1);
9
- function d(f, t, u, x, h, $) {
10
- const e = n("ib-textarea");
11
- return s(), r("div", _, [
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
- onBlur: t[0] || (t[0] = (b) => console.log("test"))
14
- }, {
15
- actions: i(() => [
16
- m
17
- ]),
18
- _: 1
13
+ "data-testid": "tests",
14
+ "data-foo": "sdf",
15
+ dusk: "asd",
16
+ options: []
19
17
  })
20
18
  ]);
21
19
  }
22
- const B = /* @__PURE__ */ l(p, [["render", d]]);
20
+ const b = /* @__PURE__ */ r(i, [["render", a]]);
23
21
  export {
24
- B as default
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 L = /* @__PURE__ */ y(O, [["render", v]]);
91
+ const P = /* @__PURE__ */ y(O, [["render", v]]);
92
92
  export {
93
- L as default
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 I, createCommentVNode as y, 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";
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(), I(g, {
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"])) : y("", !0),
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)
@@ -60,7 +60,7 @@ function y(o, i, d, a, l, r) {
60
60
  E(o.$slots, "default")
61
61
  ], 34);
62
62
  }
63
- const b = /* @__PURE__ */ h(C, [["render", y]]);
63
+ const _ = /* @__PURE__ */ h(C, [["render", y]]);
64
64
  export {
65
- b as default
65
+ _ as default
66
66
  };
@@ -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 N from "../../helpers/multiLineOverflows.js";
9
- import { SPACE_KEY_CODE as L, ARROW_RIGHT_KEY_CODE as K, ARROW_LEFT_KEY_CODE as x } from "../../constants/keyCodes.js";
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 : N(this.$el.querySelector(".option-label")) && (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 === L && (t.preventDefault(), this.onChange()), this.hasVisibleChildren && (t.keyCode === K && (this.option.isChildrenVisible = !0), t.keyCode === x && (this.option.isChildrenVisible = !1));
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.04",
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
- "files": [ "dist" ],
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,12 @@
1
+ *,
2
+ *::before,
3
+ *::after {
4
+ box-sizing: border-box;
5
+ box-sizing: border-box;
6
+ -moz-box-sizing: border-box;
7
+ -webkit-box-sizing: border-box;
8
+ }
9
+
10
+ p {
11
+ margin: 0;
12
+ }
@@ -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
+ }