@bolio-ui/core 3.0.0-alpha.2 → 3.0.0

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 (171) hide show
  1. package/dist/Alert/Alert.d.ts +20 -0
  2. package/dist/Alert/index.d.ts +3 -0
  3. package/dist/Alert/index.js +16 -0
  4. package/dist/BolioUIProvider/index.js +7 -6
  5. package/dist/Button/index.js +3 -3
  6. package/dist/ButtonDropdown/index.js +3 -2
  7. package/dist/Calendar/index.js +2 -2
  8. package/dist/Chip/Chip.d.ts +17 -0
  9. package/dist/Chip/ChipContext.d.ts +11 -0
  10. package/dist/Chip/ChipGroup.d.ts +16 -0
  11. package/dist/Chip/index.d.ts +9 -0
  12. package/dist/Chip/index.js +15 -0
  13. package/dist/ColorInput/index.js +3 -2
  14. package/dist/Combobox/index.js +3 -2
  15. package/dist/Command/index.js +9 -8
  16. package/dist/ContextMenu/index.js +5 -4
  17. package/dist/DatePicker/index.js +4 -3
  18. package/dist/DateRangePicker/index.js +4 -3
  19. package/dist/Drawer/index.js +6 -5
  20. package/dist/Grid/Grid.d.ts +16 -16
  21. package/dist/Grid/GridContainer.d.ts +16 -16
  22. package/dist/Mention/Mention.d.ts +25 -0
  23. package/dist/Mention/index.d.ts +3 -0
  24. package/dist/Mention/index.js +17 -0
  25. package/dist/Menu/index.js +4 -3
  26. package/dist/Modal/index.js +8 -7
  27. package/dist/Note/Note.d.ts +10 -0
  28. package/dist/Note/index.js +3 -2
  29. package/dist/Popover/index.js +4 -3
  30. package/dist/Select/index.js +7 -6
  31. package/dist/Table/index.js +3 -3
  32. package/dist/Toolbar/Toolbar.d.ts +11 -0
  33. package/dist/Toolbar/ToolbarSeparator.d.ts +4 -0
  34. package/dist/Toolbar/index.d.ts +9 -0
  35. package/dist/Toolbar/index.js +14 -0
  36. package/dist/Tooltip/index.js +3 -2
  37. package/dist/Tour/index.js +5 -4
  38. package/dist/{chunk-PGQYW6YF.js → chunk-25NFUHLR.js} +12 -8
  39. package/dist/{chunk-AFBCMW2I.js → chunk-26KDVRFS.js} +1 -3
  40. package/dist/{chunk-4ZGR7UMX.js → chunk-4DH6SOK4.js} +10 -6
  41. package/dist/chunk-CGS2MT3G.js +10 -0
  42. package/dist/{chunk-6ZBFUZSL.js → chunk-CU6SNPIM.js} +25 -22
  43. package/dist/chunk-CY5KTINE.js +107 -0
  44. package/dist/{chunk-IJGIEX5J.js → chunk-DEMQXB46.js} +6 -2
  45. package/dist/{chunk-3S6G7WGK.js → chunk-DYYSUJ35.js} +2 -2
  46. package/dist/chunk-EUYSKHRS.js +13 -0
  47. package/dist/{chunk-FL6J36B7.js → chunk-FLUNRVVG.js} +9 -5
  48. package/dist/chunk-FQWH4PDK.js +165 -0
  49. package/dist/chunk-FSO65ZAH.js +249 -0
  50. package/dist/{chunk-2EYJZXS4.js → chunk-ICACLCJR.js} +13 -8
  51. package/dist/{chunk-XF4TPE2W.js → chunk-IL7L3BEL.js} +7 -2
  52. package/dist/{chunk-MGHMAZRL.js → chunk-KRSISARC.js} +7 -3
  53. package/dist/{chunk-4QA7Z7VP.js → chunk-M64V32WO.js} +6 -3
  54. package/dist/chunk-Q3I54DUS.js +131 -0
  55. package/dist/{chunk-SGWX6H4Y.js → chunk-RWRFOGCU.js} +6 -2
  56. package/dist/{chunk-STYC6O24.js → chunk-SJVWKNGY.js} +10 -6
  57. package/dist/{chunk-P245HSVB.js → chunk-TLVSZCKU.js} +2 -1
  58. package/dist/{chunk-AG2NWQYL.js → chunk-WCTANCLG.js} +3 -1
  59. package/dist/{chunk-DIMJQLWY.js → chunk-XUNC7RB7.js} +9 -5
  60. package/dist/{chunk-GGCVPMXO.js → chunk-Y432C24Z.js} +2 -2
  61. package/dist/{chunk-BHQRX76X.js → chunk-YLLPYRJH.js} +12 -7
  62. package/dist/css/Alert.css +53 -0
  63. package/dist/css/Chip-ChipGroup.css +8 -0
  64. package/dist/css/Chip.css +65 -0
  65. package/dist/css/ColorInput.css +7 -1
  66. package/dist/css/ColorPicker.css +5 -1
  67. package/dist/css/Combobox.css +1 -0
  68. package/dist/css/DatePicker.css +1 -0
  69. package/dist/css/DateRangePicker.css +1 -0
  70. package/dist/css/Input.css +1 -0
  71. package/dist/css/Mention.css +93 -0
  72. package/dist/css/Modal-ModalAction.css +6 -1
  73. package/dist/css/Modal-ModalActions.css +9 -2
  74. package/dist/css/NumberInput.css +1 -0
  75. package/dist/css/PinInput.css +1 -0
  76. package/dist/css/TagsInput.css +1 -0
  77. package/dist/css/Textarea.css +1 -0
  78. package/dist/css/Toolbar.css +32 -0
  79. package/dist/index.d.ts +8 -0
  80. package/dist/index.js +78 -60
  81. package/dist/styles.css +3487 -3201
  82. package/dist/utils/surface.d.ts +6 -0
  83. package/esm/Alert/Alert.d.ts +20 -0
  84. package/esm/Alert/index.d.ts +3 -0
  85. package/esm/Alert/index.js +16 -0
  86. package/esm/BolioUIProvider/index.js +6 -5
  87. package/esm/Button/index.js +2 -2
  88. package/esm/ButtonDropdown/index.js +2 -1
  89. package/esm/Calendar/index.js +1 -1
  90. package/esm/Chip/Chip.d.ts +17 -0
  91. package/esm/Chip/ChipContext.d.ts +11 -0
  92. package/esm/Chip/ChipGroup.d.ts +16 -0
  93. package/esm/Chip/index.d.ts +9 -0
  94. package/esm/Chip/index.js +15 -0
  95. package/esm/ColorInput/index.js +2 -1
  96. package/esm/Combobox/index.js +2 -1
  97. package/esm/Command/index.js +8 -7
  98. package/esm/ContextMenu/index.js +4 -3
  99. package/esm/DatePicker/index.js +3 -2
  100. package/esm/DateRangePicker/index.js +3 -2
  101. package/esm/Drawer/index.js +5 -4
  102. package/esm/Grid/Grid.d.ts +16 -16
  103. package/esm/Grid/GridContainer.d.ts +16 -16
  104. package/esm/Mention/Mention.d.ts +25 -0
  105. package/esm/Mention/index.d.ts +3 -0
  106. package/esm/Mention/index.js +17 -0
  107. package/esm/Menu/index.js +3 -2
  108. package/esm/Modal/index.js +7 -6
  109. package/esm/Note/Note.d.ts +10 -0
  110. package/esm/Note/index.js +2 -1
  111. package/esm/Popover/index.js +3 -2
  112. package/esm/Select/index.js +6 -5
  113. package/esm/Table/index.js +2 -2
  114. package/esm/Toolbar/Toolbar.d.ts +11 -0
  115. package/esm/Toolbar/ToolbarSeparator.d.ts +4 -0
  116. package/esm/Toolbar/index.d.ts +9 -0
  117. package/esm/Toolbar/index.js +14 -0
  118. package/esm/Tooltip/index.js +2 -1
  119. package/esm/Tour/index.js +4 -3
  120. package/esm/{chunk-PGQYW6YF.js → chunk-25NFUHLR.js} +7 -3
  121. package/esm/{chunk-AFBCMW2I.js → chunk-26KDVRFS.js} +2 -4
  122. package/esm/{chunk-4ZGR7UMX.js → chunk-4DH6SOK4.js} +10 -6
  123. package/esm/chunk-CGS2MT3G.js +10 -0
  124. package/esm/{chunk-6ZBFUZSL.js → chunk-CU6SNPIM.js} +15 -12
  125. package/esm/chunk-CY5KTINE.js +107 -0
  126. package/esm/{chunk-IJGIEX5J.js → chunk-DEMQXB46.js} +6 -2
  127. package/esm/{chunk-3S6G7WGK.js → chunk-DYYSUJ35.js} +1 -1
  128. package/esm/chunk-EUYSKHRS.js +13 -0
  129. package/esm/{chunk-FL6J36B7.js → chunk-FLUNRVVG.js} +8 -4
  130. package/esm/chunk-FQWH4PDK.js +165 -0
  131. package/esm/chunk-FSO65ZAH.js +249 -0
  132. package/esm/{chunk-2EYJZXS4.js → chunk-ICACLCJR.js} +8 -3
  133. package/esm/{chunk-XF4TPE2W.js → chunk-IL7L3BEL.js} +7 -2
  134. package/esm/{chunk-MGHMAZRL.js → chunk-KRSISARC.js} +7 -3
  135. package/esm/{chunk-4QA7Z7VP.js → chunk-M64V32WO.js} +5 -2
  136. package/esm/chunk-Q3I54DUS.js +131 -0
  137. package/esm/{chunk-SGWX6H4Y.js → chunk-RWRFOGCU.js} +6 -2
  138. package/esm/{chunk-STYC6O24.js → chunk-SJVWKNGY.js} +7 -3
  139. package/esm/{chunk-P245HSVB.js → chunk-TLVSZCKU.js} +2 -1
  140. package/esm/{chunk-AG2NWQYL.js → chunk-WCTANCLG.js} +3 -1
  141. package/esm/{chunk-DIMJQLWY.js → chunk-XUNC7RB7.js} +9 -5
  142. package/esm/{chunk-GGCVPMXO.js → chunk-Y432C24Z.js} +1 -1
  143. package/esm/{chunk-BHQRX76X.js → chunk-YLLPYRJH.js} +8 -3
  144. package/esm/css/Alert.css +53 -0
  145. package/esm/css/Chip-ChipGroup.css +8 -0
  146. package/esm/css/Chip.css +65 -0
  147. package/esm/css/ColorInput.css +7 -1
  148. package/esm/css/ColorPicker.css +5 -1
  149. package/esm/css/Combobox.css +1 -0
  150. package/esm/css/DatePicker.css +1 -0
  151. package/esm/css/DateRangePicker.css +1 -0
  152. package/esm/css/Input.css +1 -0
  153. package/esm/css/Mention.css +93 -0
  154. package/esm/css/Modal-ModalAction.css +6 -1
  155. package/esm/css/Modal-ModalActions.css +9 -2
  156. package/esm/css/NumberInput.css +1 -0
  157. package/esm/css/PinInput.css +1 -0
  158. package/esm/css/TagsInput.css +1 -0
  159. package/esm/css/Textarea.css +1 -0
  160. package/esm/css/Toolbar.css +32 -0
  161. package/esm/index.d.ts +8 -0
  162. package/esm/index.js +94 -76
  163. package/esm/styles.css +3482 -3196
  164. package/esm/utils/surface.d.ts +6 -0
  165. package/package.json +1 -1
  166. package/dist/{chunk-DXHNQANX.js → chunk-TPZUTHTQ.js} +3 -3
  167. package/dist/{chunk-TKIUVNKP.js → chunk-XKJDF225.js} +2 -2
  168. package/dist/{chunk-ZNDN2VPZ.js → chunk-Y5CFWIGV.js} +2 -2
  169. package/esm/{chunk-DXHNQANX.js → chunk-TPZUTHTQ.js} +3 -3
  170. package/esm/{chunk-TKIUVNKP.js → chunk-XKJDF225.js} +3 -3
  171. package/esm/{chunk-ZNDN2VPZ.js → chunk-Y5CFWIGV.js} +3 -3
@@ -1,6 +1,9 @@
1
1
  import {
2
2
  use_click_away_default
3
3
  } from "./chunk-DGXZP4VJ.js";
4
+ import {
5
+ getSurface
6
+ } from "./chunk-EUYSKHRS.js";
4
7
  import {
5
8
  Loading_default
6
9
  } from "./chunk-LMDBE6T6.js";
@@ -231,6 +234,7 @@ var ButtonDropdownComponent = React3.forwardRef(
231
234
  const innerRef = useRef(null);
232
235
  useImperativeHandle(ref, () => innerRef.current);
233
236
  const theme = use_theme_default();
237
+ const surface = getSurface(theme);
234
238
  const colors = getColor(theme.palette, type);
235
239
  const itemChildren = pickChild(children, ButtonDropdownItem_default)[1];
236
240
  const [itemChildrenWithoutMain, mainItemChildren] = pickChildByProps(
@@ -328,9 +332,9 @@ var ButtonDropdownComponent = React3.forwardRef(
328
332
  {
329
333
  className: ButtonDropdown_module_css_default.content,
330
334
  style: {
331
- boxShadow: theme.expressiveness.shadowMedium,
335
+ boxShadow: surface.shadow,
332
336
  transform: "translateY(4px)",
333
- backgroundColor: type === "default" ? theme.palette.background : colors.bgColor
337
+ backgroundColor: type === "default" ? surface.bg : colors.bgColor
334
338
  },
335
339
  children: itemChildrenWithoutMain
336
340
  }
@@ -9,7 +9,10 @@ import {
9
9
  } from "./chunk-ZRORQ2WH.js";
10
10
  import {
11
11
  Button_default
12
- } from "./chunk-DXHNQANX.js";
12
+ } from "./chunk-TPZUTHTQ.js";
13
+ import {
14
+ getSurface
15
+ } from "./chunk-EUYSKHRS.js";
13
16
  import {
14
17
  use_theme_default
15
18
  } from "./chunk-V5I4ORQQ.js";
@@ -140,12 +143,13 @@ var Tour = React.forwardRef(
140
143
  ...above ? { bottom: window.innerHeight - rect.top + spotlightPadding + GAP } : { top: rect.bottom + spotlightPadding + GAP }
141
144
  } : { width };
142
145
  const dark = theme.type === "dark";
146
+ const surface = getSurface(theme);
143
147
  const tourStyle = {
144
148
  "--tour-color": theme.palette.foreground,
145
149
  "--tour-muted": theme.palette.accents_5,
146
150
  "--tour-radius": theme.layout.radius,
147
- "--tour-bg": dark ? theme.palette.accents_3 : theme.palette.background,
148
- "--tour-shadow": theme.expressiveness.shadowMedium,
151
+ "--tour-bg": surface.bg,
152
+ "--tour-shadow": surface.shadow,
149
153
  "--tour-dim": dark ? "rgb(0 0 0 / 60%)" : "rgb(0 0 0 / 55%)",
150
154
  ...style
151
155
  };
@@ -273,7 +273,8 @@ var CalendarComponent = React.forwardRef(
273
273
  "--calendar-margin-left": SCALES.ml(0),
274
274
  "--calendar-weekday-color": theme.palette.accents_5,
275
275
  "--calendar-radius": theme.layout.radius,
276
- "--calendar-hover-bg": theme.palette.accents_2,
276
+ // a popup around the calendar (DatePicker) sets its own, lighter hover
277
+ "--calendar-hover-bg": `var(--calendar-popup-hover, ${theme.palette.accents_2})`,
277
278
  "--calendar-focus-outline": theme.palette.primary,
278
279
  "--calendar-disabled-color": theme.palette.accents_3,
279
280
  "--calendar-today-border": theme.palette.accents_4,
@@ -83,7 +83,9 @@ var Dropdown = React.memo(
83
83
  width: nativeWidth,
84
84
  elementTop
85
85
  } = getRefRect(parent, getPopupContainer);
86
- setRect({ top, left, right, width: nativeWidth, elementTop });
86
+ setRect(
87
+ (prev) => prev.top === top && prev.left === left && prev.right === right && prev.width === nativeWidth && prev.elementTop === elementTop ? prev : { top, left, right, width: nativeWidth, elementTop }
88
+ );
87
89
  };
88
90
  use_resize_default(updateRect);
89
91
  use_click_anywhere_default(() => {
@@ -1,18 +1,21 @@
1
1
  import {
2
2
  Grid_default
3
3
  } from "./chunk-JFNYQSEZ.js";
4
- import {
5
- dropdown_default
6
- } from "./chunk-AG2NWQYL.js";
7
4
  import {
8
5
  getColors
9
6
  } from "./chunk-KBZEYKCZ.js";
7
+ import {
8
+ dropdown_default
9
+ } from "./chunk-WCTANCLG.js";
10
10
  import {
11
11
  log_warning_default
12
12
  } from "./chunk-AXYDJGTN.js";
13
13
  import {
14
14
  use_current_state_default
15
15
  } from "./chunk-33BUV2RX.js";
16
+ import {
17
+ getSurface
18
+ } from "./chunk-EUYSKHRS.js";
16
19
  import {
17
20
  use_scale_default,
18
21
  with_scale_default
@@ -93,6 +96,7 @@ var SelectDropdown = React3.forwardRef(
93
96
  getPopupContainer
94
97
  }, dropdownRef) => {
95
98
  const theme = use_theme_default();
99
+ const surface = getSurface(theme);
96
100
  const internalDropdownRef = useRef(null);
97
101
  const { ref } = useSelectContext();
98
102
  const classes = use_classes_default(SelectDropdown_module_css_default.selectDropdown, className);
@@ -114,8 +118,8 @@ var SelectDropdown = React3.forwardRef(
114
118
  className: classes,
115
119
  style: {
116
120
  "--select-dropdown-radius": theme.layout.radius,
117
- "--select-dropdown-shadow": theme.expressiveness.shadowMedium,
118
- "--select-dropdown-bg": colors.bgColor,
121
+ "--select-dropdown-shadow": surface.shadow,
122
+ "--select-dropdown-bg": colors.bgColor === theme.palette.background ? surface.bg : colors.bgColor,
119
123
  "--select-dropdown-border": colors.borderColor,
120
124
  "--select-dropdown-color": colors.color,
121
125
  ...dropdownStyle
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Tooltip_default
3
- } from "./chunk-XF4TPE2W.js";
3
+ } from "./chunk-IL7L3BEL.js";
4
4
  import {
5
5
  use_latest_default
6
6
  } from "./chunk-ZRORQ2WH.js";
@@ -6,10 +6,13 @@ import {
6
6
  fromISO,
7
7
  startOfDay,
8
8
  toISO
9
- } from "./chunk-P245HSVB.js";
9
+ } from "./chunk-TLVSZCKU.js";
10
10
  import {
11
11
  use_click_away_default
12
12
  } from "./chunk-DGXZP4VJ.js";
13
+ import {
14
+ getSurface
15
+ } from "./chunk-EUYSKHRS.js";
13
16
  import {
14
17
  use_scale_default,
15
18
  with_scale_default
@@ -60,6 +63,7 @@ var DateRangePickerComponent = React.forwardRef(
60
63
  ...props
61
64
  }, ref) => {
62
65
  const theme = use_theme_default();
66
+ const surface = getSurface(theme);
63
67
  const { SCALES } = use_scale_default();
64
68
  const colors = getColors(theme.palette, type, disabled, {
65
69
  filled,
@@ -140,7 +144,8 @@ var DateRangePickerComponent = React.forwardRef(
140
144
  "--daterange-margin-right": SCALES.mr(0),
141
145
  "--daterange-margin-bottom": SCALES.mb(0),
142
146
  "--daterange-margin-left": SCALES.ml(0),
143
- "--daterange-bg": theme.palette.background,
147
+ "--daterange-bg": surface.bg,
148
+ "--calendar-popup-hover": surface.hover,
144
149
  "--daterange-border-color": theme.palette.border,
145
150
  "--daterange-radius": rounded ? "25px" : theme.layout.radius,
146
151
  "--daterange-popup-radius": theme.layout.radius,
@@ -154,7 +159,7 @@ var DateRangePickerComponent = React.forwardRef(
154
159
  "--daterange-separator-color": colors.iconColor,
155
160
  "--daterange-toggle-color": colors.iconColor,
156
161
  "--daterange-toggle-hover-color": colors.color,
157
- "--daterange-shadow": theme.expressiveness.shadowMedium,
162
+ "--daterange-shadow": surface.shadow,
158
163
  ...style
159
164
  };
160
165
  const inputProps = {
@@ -0,0 +1,53 @@
1
+ @layer Alert {
2
+ .Alert-module_alert__Ghxl7 {
3
+ display: flex;
4
+ align-items: flex-start;
5
+ gap: 0.75em;
6
+ box-sizing: border-box;
7
+ line-height: 1.6;
8
+ }
9
+
10
+ .Alert-module_alert__Ghxl7 p {
11
+ margin: 0;
12
+ }
13
+
14
+ .Alert-module_icon__hcZdu {
15
+ display: inline-flex;
16
+ flex: none;
17
+ margin-top: 0.2em;
18
+ }
19
+
20
+ .Alert-module_body__SuUYD {
21
+ flex: 1;
22
+ min-width: 0;
23
+ }
24
+
25
+ .Alert-module_title__8yipK {
26
+ font-weight: 600;
27
+ }
28
+
29
+ .Alert-module_close__ZPg5d {
30
+ display: inline-flex;
31
+ flex: none;
32
+ align-items: center;
33
+ justify-content: center;
34
+ margin: 0.15em -0.25em 0 0;
35
+ padding: 0.25em;
36
+ color: inherit;
37
+ background: none;
38
+ border: 0;
39
+ border-radius: 4px;
40
+ opacity: 0.7;
41
+ cursor: pointer;
42
+ }
43
+
44
+ .Alert-module_close__ZPg5d:hover {
45
+ opacity: 1;
46
+ }
47
+
48
+ .Alert-module_close__ZPg5d:focus-visible {
49
+ outline: 2px solid currentColor;
50
+ outline-offset: 1px;
51
+ }
52
+
53
+ }
@@ -0,0 +1,8 @@
1
+ @layer Chip-ChipGroup {
2
+ .ChipGroup-module_group__6ARIk {
3
+ display: flex;
4
+ flex-wrap: wrap;
5
+ gap: 0.5em;
6
+ }
7
+
8
+ }
@@ -0,0 +1,65 @@
1
+ @layer Chip {
2
+ .Chip-module_chip__r494r {
3
+ position: relative;
4
+ display: inline-flex;
5
+ }
6
+
7
+ .Chip-module_input__GhNGk {
8
+ position: absolute;
9
+ opacity: 0;
10
+ overflow: hidden;
11
+ width: 1px;
12
+ height: 1px;
13
+ margin: 0;
14
+ font-size: 0;
15
+ }
16
+
17
+ .Chip-module_text__sYRMh {
18
+ display: inline-flex;
19
+ align-items: center;
20
+ gap: 0.4em;
21
+ box-sizing: border-box;
22
+ height: 100%;
23
+ padding: 0 0.875em;
24
+ font-weight: 500;
25
+ white-space: nowrap;
26
+ color: var(--chip-color);
27
+ border: 1px solid var(--chip-border);
28
+ border-radius: 999px;
29
+ cursor: pointer;
30
+ user-select: none;
31
+ transition:
32
+ color 0.15s ease,
33
+ background-color 0.15s ease,
34
+ border-color 0.15s ease;
35
+ }
36
+
37
+ .Chip-module_text__sYRMh:hover {
38
+ background-color: var(--chip-hover-bg);
39
+ }
40
+
41
+ .Chip-module_input__GhNGk:checked + .Chip-module_text__sYRMh {
42
+ color: var(--chip-checked-color);
43
+ background-color: var(--chip-checked-bg);
44
+ border-color: var(--chip-checked-border);
45
+ }
46
+
47
+ .Chip-module_input__GhNGk:focus-visible + .Chip-module_text__sYRMh {
48
+ outline: 2px solid var(--chip-focus);
49
+ outline-offset: 2px;
50
+ }
51
+
52
+ .Chip-module_input__GhNGk:disabled + .Chip-module_text__sYRMh {
53
+ opacity: 0.5;
54
+ cursor: not-allowed;
55
+ }
56
+
57
+ .Chip-module_input__GhNGk:disabled + .Chip-module_text__sYRMh:hover {
58
+ background-color: transparent;
59
+ }
60
+
61
+ .Chip-module_input__GhNGk:disabled:checked + .Chip-module_text__sYRMh:hover {
62
+ background-color: var(--chip-checked-bg);
63
+ }
64
+
65
+ }
@@ -31,6 +31,7 @@
31
31
 
32
32
  .ColorInput-module_field__JQwJJ:focus-within {
33
33
  border-color: var(--colorinput-focus-border);
34
+ background-clip: padding-box;
34
35
  }
35
36
 
36
37
  .ColorInput-module_swatch__sLvyf {
@@ -41,10 +42,15 @@
41
42
  margin: 0;
42
43
  padding: 0;
43
44
  cursor: pointer;
44
- border: 1px solid var(--colorinput-popup-border);
45
+ border: 0;
45
46
  border-radius: 6px;
46
47
  appearance: none;
47
48
  -webkit-appearance: none;
49
+ transition: transform 0.15s ease;
50
+ }
51
+
52
+ .ColorInput-module_swatch__sLvyf:not(:disabled):active {
53
+ transform: scale(0.9);
48
54
  }
49
55
 
50
56
  .ColorInput-module_swatch__sLvyf:focus-visible {
@@ -19,7 +19,6 @@
19
19
  height: 10em;
20
20
  cursor: crosshair;
21
21
  touch-action: none;
22
- border: 1px solid var(--picker-border);
23
22
  border-radius: var(--picker-radius);
24
23
  background-image:
25
24
  linear-gradient(to top, #000, transparent),
@@ -40,6 +39,11 @@
40
39
  border-radius: 50%;
41
40
  box-shadow: 0 0 0 1px rgb(0 0 0 / 40%);
42
41
  outline: none;
42
+ transition: transform 0.15s ease;
43
+ }
44
+
45
+ .ColorPicker-module_picker__b-U0f:not(.ColorPicker-module_disabled__jM1X3) .ColorPicker-module_panel__kComH:active .ColorPicker-module_thumb__Vi5yp {
46
+ transform: scale(1.2);
43
47
  }
44
48
 
45
49
  .ColorPicker-module_thumb__Vi5yp:focus-visible {
@@ -39,6 +39,7 @@
39
39
 
40
40
  .Combobox-module_input__ti3bv:focus {
41
41
  border-color: var(--combobox-focus-border-color);
42
+ background-clip: padding-box;
42
43
  }
43
44
 
44
45
  .Combobox-module_input__ti3bv:disabled {
@@ -39,6 +39,7 @@
39
39
 
40
40
  .DatePicker-module_input__e7dhN:focus {
41
41
  border-color: var(--datepicker-focus-border-color);
42
+ background-clip: padding-box;
42
43
  }
43
44
 
44
45
  .DatePicker-module_input__e7dhN:disabled {
@@ -33,6 +33,7 @@
33
33
 
34
34
  .DateRangePicker-module_field__4UZhH:focus-within {
35
35
  border-color: var(--daterange-focus-border-color);
36
+ background-clip: padding-box;
36
37
  }
37
38
 
38
39
  .DateRangePicker-module_input__h9sDj {
package/esm/css/Input.css CHANGED
@@ -53,6 +53,7 @@
53
53
 
54
54
  .Input-module_inputWrapper__WpYTp.Input-module_hover__Gq-MR {
55
55
  border-color: var(--input-focus-border);
56
+ background-clip: padding-box;
56
57
  }
57
58
 
58
59
  .Input-module_input__hCma0 {
@@ -0,0 +1,93 @@
1
+ @layer Mention {
2
+ .Mention-module_mention__R3-5t {
3
+ position: relative;
4
+ display: inline-block;
5
+ box-sizing: border-box;
6
+ font-size: var(--mention-font-size);
7
+ width: var(--mention-width);
8
+ height: var(--mention-height);
9
+ margin: var(--mention-margin-top) var(--mention-margin-right)
10
+ var(--mention-margin-bottom) var(--mention-margin-left);
11
+ }
12
+
13
+ .Mention-module_field__U5FXf {
14
+ display: block;
15
+ box-sizing: border-box;
16
+ width: 100%;
17
+ min-width: 12.5em;
18
+ padding: 0.625em 0.875em;
19
+ font: inherit;
20
+ line-height: 1.5;
21
+ color: var(--mention-field-color);
22
+ background-color: var(--mention-field-bg);
23
+ border: 1px solid var(--mention-field-border);
24
+ border-radius: var(--mention-radius);
25
+ outline: none;
26
+ resize: vertical;
27
+ transition:
28
+ border-color 0.15s ease,
29
+ background-color 0.15s ease;
30
+ }
31
+
32
+ .Mention-module_field__U5FXf::placeholder {
33
+ color: var(--mention-placeholder-color);
34
+ }
35
+
36
+ .Mention-module_field__U5FXf:hover {
37
+ border-color: var(--mention-field-hover-border);
38
+ background-color: var(--mention-field-hover-bg);
39
+ }
40
+
41
+ .Mention-module_field__U5FXf:focus {
42
+ border-color: var(--mention-focus-border-color);
43
+ background-clip: padding-box;
44
+ }
45
+
46
+ .Mention-module_field__U5FXf:disabled {
47
+ cursor: not-allowed;
48
+ }
49
+
50
+ .Mention-module_list__QQ5RM,
51
+ .Mention-module_empty__YkZOO {
52
+ position: absolute;
53
+ top: calc(100% + 4px);
54
+ left: 0;
55
+ right: 0;
56
+ z-index: 1100;
57
+ box-sizing: border-box;
58
+ background-color: var(--mention-bg);
59
+ border: 1px solid var(--mention-border-color);
60
+ border-radius: var(--mention-radius);
61
+ box-shadow: var(--mention-shadow);
62
+ }
63
+
64
+ .Mention-module_list__QQ5RM {
65
+ max-height: 15em;
66
+ overflow-y: auto;
67
+ margin: 0;
68
+ padding: 0.25em;
69
+ list-style: none;
70
+ }
71
+
72
+ .Mention-module_option__8CupI {
73
+ padding: 0.5em 0.75em;
74
+ border-radius: 4px;
75
+ cursor: pointer;
76
+ color: var(--mention-text-color);
77
+ }
78
+
79
+ .Mention-module_active__8GmDl {
80
+ background-color: var(--mention-active-bg);
81
+ }
82
+
83
+ .Mention-module_disabled__4PL94 {
84
+ cursor: not-allowed;
85
+ color: var(--mention-empty-color);
86
+ }
87
+
88
+ .Mention-module_empty__YkZOO {
89
+ padding: 0.75em;
90
+ color: var(--mention-empty-color);
91
+ }
92
+
93
+ }
@@ -1,8 +1,13 @@
1
1
  @layer Modal-ModalAction {
2
2
  .ModalAction-module_action__hEtmQ.ModalAction-module_btn__If5jI:hover,
3
- .ModalAction-module_action__hEtmQ.ModalAction-module_btn__If5jI:focus {
3
+ .ModalAction-module_action__hEtmQ.ModalAction-module_btn__If5jI:focus-visible {
4
4
  color: var(--modal-action-hover-color);
5
5
  background-color: var(--modal-action-hover-bg);
6
6
  }
7
7
 
8
+ /* Shrinking the pressed action exposes the footer around it as an edge */
9
+ .ModalAction-module_action__hEtmQ.btn:active {
10
+ transform: none;
11
+ }
12
+
8
13
  }
@@ -10,8 +10,15 @@
10
10
  right: 0;
11
11
  }
12
12
 
13
- .ModalActions-module_footer__gDr-2 > button.btn + button.btn {
14
- border-left: 1px solid var(--modal-actions-border);
13
+ /* The action sets its border inline, so the divider is drawn as a pseudo-element */
14
+ .ModalActions-module_footer__gDr-2 > button.btn + button.btn::before {
15
+ content: '';
16
+ position: absolute;
17
+ top: 0;
18
+ bottom: 0;
19
+ left: 0;
20
+ width: 1px;
21
+ background-color: var(--modal-actions-border);
15
22
  }
16
23
 
17
24
  .ModalActions-module_spacer__zek5w {
@@ -22,6 +22,7 @@
22
22
 
23
23
  .NumberInput-module_numberInput__hOY3x:focus-within {
24
24
  border-color: var(--input-focus-border);
25
+ background-clip: padding-box;
25
26
  }
26
27
 
27
28
  .NumberInput-module_numberInput__hOY3x.NumberInput-module_disabled__gDhCu {
@@ -31,6 +31,7 @@
31
31
 
32
32
  .PinInput-module_box__DIU85:focus {
33
33
  border-color: var(--input-focus-border);
34
+ background-clip: padding-box;
34
35
  }
35
36
 
36
37
  .PinInput-module_box__DIU85:disabled {
@@ -26,6 +26,7 @@
26
26
 
27
27
  .TagsInput-module_field__ieR7N:focus-within {
28
28
  border-color: var(--input-focus-border);
29
+ background-clip: padding-box;
29
30
  }
30
31
 
31
32
  .TagsInput-module_field__ieR7N.TagsInput-module_disabled__cCN-w {
@@ -22,6 +22,7 @@
22
22
 
23
23
  .Textarea-module_wrapper__AgIvs.Textarea-module_hover__pK4xh {
24
24
  border-color: var(--textarea-focus-border);
25
+ background-clip: padding-box;
25
26
  }
26
27
 
27
28
  .Textarea-module_wrapper__AgIvs.Textarea-module_disabled__M-zKD {
@@ -0,0 +1,32 @@
1
+ @layer Toolbar {
2
+ .Toolbar-module_toolbar__GZv6U {
3
+ display: flex;
4
+ align-items: center;
5
+ gap: 0.25em;
6
+ box-sizing: border-box;
7
+ width: fit-content;
8
+ padding: 0.25em;
9
+ border: 1px solid var(--toolbar-border);
10
+ border-radius: var(--toolbar-radius);
11
+ }
12
+
13
+ .Toolbar-module_vertical__bTAsV {
14
+ flex-direction: column;
15
+ align-items: stretch;
16
+ }
17
+
18
+ .Toolbar-module_separator__Gs9-M {
19
+ flex: none;
20
+ align-self: stretch;
21
+ width: 1px;
22
+ margin: 0.125em 0.25em;
23
+ background: var(--toolbar-border);
24
+ }
25
+
26
+ .Toolbar-module_vertical__bTAsV .Toolbar-module_separator__Gs9-M {
27
+ width: auto;
28
+ height: 1px;
29
+ margin: 0.25em 0.125em;
30
+ }
31
+
32
+ }
package/esm/index.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ export { default as Alert } from './Alert';
2
+ export type { AlertProps } from './Alert';
1
3
  export { default as Avatar } from './Avatar';
2
4
  export type { AvatarProps, AvatarGroupProps } from './Avatar';
3
5
  export { default as Badge } from './Badge';
@@ -22,6 +24,8 @@ export { default as Carousel } from './Carousel';
22
24
  export type { CarouselProps } from './Carousel';
23
25
  export { default as Checkbox } from './Checkbox';
24
26
  export type { CheckboxProps, CheckboxGroupProps } from './Checkbox';
27
+ export { default as Chip } from './Chip';
28
+ export type { ChipProps, ChipGroupProps } from './Chip';
25
29
  export { default as Code } from './Code';
26
30
  export type { CodeProps } from './Code';
27
31
  export { default as Col } from './Col';
@@ -70,6 +74,8 @@ export { default as Link } from './Link';
70
74
  export type { LinkProps } from './Link';
71
75
  export { default as Loading } from './Loading';
72
76
  export type { LoadingProps } from './Loading';
77
+ export { default as Mention } from './Mention';
78
+ export type { MentionProps, MentionOption } from './Mention';
73
79
  export { default as Menu } from './Menu';
74
80
  export type { MenuProps, MenuItemProps, MenuCheckboxItemProps, MenuRadioItemProps, MenuRadioGroupProps, MenuLabelProps, MenuDividerProps, MenuSubProps } from './Menu';
75
81
  export { default as Modal } from './Modal';
@@ -128,6 +134,8 @@ export { default as Textarea } from './Textarea';
128
134
  export type { TextareaProps } from './Textarea';
129
135
  export { default as Themes } from './Themes';
130
136
  export type { BolioUIThemes, BolioUIUserTheme } from './Themes';
137
+ export { default as Toolbar } from './Toolbar';
138
+ export type { ToolbarProps, ToolbarSeparatorProps } from './Toolbar';
131
139
  export { default as Tour } from './Tour';
132
140
  export type { TourProps, TourStep } from './Tour';
133
141
  export { default as Tree } from './Tree';