@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
@@ -6,12 +6,15 @@ var _chunkKBZEYKCZjs = require('./chunk-KBZEYKCZ.js');
6
6
 
7
7
 
8
8
 
9
- var _chunkP245HSVBjs = require('./chunk-P245HSVB.js');
9
+ var _chunkTLVSZCKUjs = require('./chunk-TLVSZCKU.js');
10
10
 
11
11
 
12
12
  var _chunkDGXZP4VJjs = require('./chunk-DGXZP4VJ.js');
13
13
 
14
14
 
15
+ var _chunkEUYSKHRSjs = require('./chunk-EUYSKHRS.js');
16
+
17
+
15
18
 
16
19
  var _chunkMAICNLTYjs = require('./chunk-MAICNLTY.js');
17
20
 
@@ -52,6 +55,7 @@ var DatePickerComponent = _react2.default.forwardRef(
52
55
  ...props
53
56
  }, ref) => {
54
57
  const theme = _chunkV5I4ORQQjs.use_theme_default.call(void 0, );
58
+ const surface = _chunkEUYSKHRSjs.getSurface.call(void 0, theme);
55
59
  const { SCALES } = _chunkMAICNLTYjs.use_scale_default.call(void 0, );
56
60
  const colors = _chunkKBZEYKCZjs.getColors.call(void 0, theme.palette, type, disabled, {
57
61
  filled,
@@ -62,7 +66,7 @@ var DatePickerComponent = _react2.default.forwardRef(
62
66
  const isControlled = customValue !== void 0;
63
67
  const [selfValue, setSelfValue] = _react.useState.call(void 0, initialValue);
64
68
  const selected = isControlled ? customValue : selfValue;
65
- const selectedText = selected ? _chunkP245HSVBjs.toISO.call(void 0, selected) : "";
69
+ const selectedText = selected ? _chunkTLVSZCKUjs.toISO.call(void 0, selected) : "";
66
70
  const [text, setText] = _react.useState.call(void 0, selectedText);
67
71
  const [open, setOpen] = _react.useState.call(void 0, false);
68
72
  _react.useEffect.call(void 0, () => {
@@ -73,7 +77,7 @@ var DatePickerComponent = _react2.default.forwardRef(
73
77
  const buttonRef = _react.useRef.call(void 0, null);
74
78
  _react.useImperativeHandle.call(void 0, ref, () => inputRef.current);
75
79
  _chunkDGXZP4VJjs.use_click_away_default.call(void 0, rootRef, () => setOpen(false));
76
- const isInRange = (date) => !(min && date < _chunkP245HSVBjs.startOfDay.call(void 0, min) || max && date > _chunkP245HSVBjs.startOfDay.call(void 0, max));
80
+ const isInRange = (date) => !(min && date < _chunkTLVSZCKUjs.startOfDay.call(void 0, min) || max && date > _chunkTLVSZCKUjs.startOfDay.call(void 0, max));
77
81
  const commit = (date) => {
78
82
  if (!isControlled) setSelfValue(date);
79
83
  if (onChange) onChange(date);
@@ -82,7 +86,7 @@ var DatePickerComponent = _react2.default.forwardRef(
82
86
  const next = event.target.value;
83
87
  setText(next);
84
88
  if (next === "") return commit(null);
85
- const date = _chunkP245HSVBjs.fromISO.call(void 0, next);
89
+ const date = _chunkTLVSZCKUjs.fromISO.call(void 0, next);
86
90
  if (date && isInRange(date)) commit(date);
87
91
  };
88
92
  const blurHandler = (event) => {
@@ -92,7 +96,7 @@ var DatePickerComponent = _react2.default.forwardRef(
92
96
  const pick = (date) => {
93
97
  var _a;
94
98
  commit(date);
95
- setText(_chunkP245HSVBjs.toISO.call(void 0, date));
99
+ setText(_chunkTLVSZCKUjs.toISO.call(void 0, date));
96
100
  setOpen(false);
97
101
  (_a = inputRef.current) == null ? void 0 : _a.focus();
98
102
  };
@@ -117,7 +121,8 @@ var DatePickerComponent = _react2.default.forwardRef(
117
121
  "--datepicker-margin-bottom": SCALES.mb(0),
118
122
  "--datepicker-margin-left": SCALES.ml(0),
119
123
  "--datepicker-text-color": theme.palette.foreground,
120
- "--datepicker-bg": theme.palette.background,
124
+ "--datepicker-bg": surface.bg,
125
+ "--calendar-popup-hover": surface.hover,
121
126
  "--datepicker-border-color": theme.palette.border,
122
127
  "--datepicker-radius": rounded ? "25px" : theme.layout.radius,
123
128
  "--datepicker-popup-radius": theme.layout.radius,
@@ -131,7 +136,7 @@ var DatePickerComponent = _react2.default.forwardRef(
131
136
  "--datepicker-toggle-color": colors.iconColor,
132
137
  "--datepicker-toggle-hover-color": colors.color,
133
138
  "--datepicker-toggle-disabled-color": colors.iconColor,
134
- "--datepicker-shadow": theme.expressiveness.shadowMedium
139
+ "--datepicker-shadow": surface.shadow
135
140
  };
136
141
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
137
142
  "div",
@@ -195,7 +200,7 @@ var DatePickerComponent = _react2.default.forwardRef(
195
200
  className: DatePicker_module_css_default.popup,
196
201
  onKeyDown: keyDownHandler,
197
202
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
198
- _chunkP245HSVBjs.Calendar_default,
203
+ _chunkTLVSZCKUjs.Calendar_default,
199
204
  {
200
205
  autoFocus: true,
201
206
  value: selected,
@@ -22,6 +22,9 @@ var _chunkGJZT47MPjs = require('./chunk-GJZT47MP.js');
22
22
  var _chunkDGXZP4VJjs = require('./chunk-DGXZP4VJ.js');
23
23
 
24
24
 
25
+ var _chunkEUYSKHRSjs = require('./chunk-EUYSKHRS.js');
26
+
27
+
25
28
 
26
29
  var _chunkMAICNLTYjs = require('./chunk-MAICNLTY.js');
27
30
 
@@ -319,6 +322,8 @@ var TooltipContent = ({
319
322
  [type, theme.palette, light, ghost, subtle]
320
323
  );
321
324
  const hasShadow = type === "default";
325
+ const surface = _chunkEUYSKHRSjs.getSurface.call(void 0, theme);
326
+ const bgColor = hasShadow && colors.bgColor === theme.palette.background ? surface.bg : colors.bgColor;
322
327
  const classes = _chunk5KUROAEPjs.use_classes_default.call(void 0,
323
328
  "tooltip-content",
324
329
  TooltipContent_module_css_default.tooltipContent,
@@ -350,14 +355,14 @@ var TooltipContent = ({
350
355
  const contentStyle = {
351
356
  "--tooltip-icon-offset-x": iconOffset.x,
352
357
  "--tooltip-icon-offset-y": iconOffset.y,
353
- "--tooltip-content-bg": colors.bgColor,
358
+ "--tooltip-content-bg": bgColor,
354
359
  top: rect.top,
355
360
  left: rect.left,
356
361
  transform: rect.transform,
357
362
  color: colors.color,
358
363
  border: `1px solid ${colors.borderColor}`,
359
364
  borderRadius: theme.layout.radius,
360
- boxShadow: hasShadow ? theme.expressiveness.shadowMedium : "none",
365
+ boxShadow: hasShadow ? surface.shadow : "none",
361
366
  width: SCALES.width(1, "auto"),
362
367
  height: SCALES.height(1, "auto")
363
368
  };
@@ -3,6 +3,9 @@
3
3
  var _chunkKBZEYKCZjs = require('./chunk-KBZEYKCZ.js');
4
4
 
5
5
 
6
+ var _chunkEUYSKHRSjs = require('./chunk-EUYSKHRS.js');
7
+
8
+
6
9
 
7
10
  var _chunkMAICNLTYjs = require('./chunk-MAICNLTY.js');
8
11
 
@@ -50,6 +53,7 @@ var ComboboxComponent = _react2.default.forwardRef(
50
53
  ...props
51
54
  }, ref) => {
52
55
  const theme = _chunkV5I4ORQQjs.use_theme_default.call(void 0, );
56
+ const surface = _chunkEUYSKHRSjs.getSurface.call(void 0, theme);
53
57
  const { SCALES } = _chunkMAICNLTYjs.use_scale_default.call(void 0, );
54
58
  const colors = _chunkKBZEYKCZjs.getColors.call(void 0, theme.palette, type, disabled, {
55
59
  filled,
@@ -148,7 +152,7 @@ var ComboboxComponent = _react2.default.forwardRef(
148
152
  "--combobox-margin-bottom": SCALES.mb(0),
149
153
  "--combobox-margin-left": SCALES.ml(0),
150
154
  "--combobox-text-color": theme.palette.foreground,
151
- "--combobox-bg": theme.palette.background,
155
+ "--combobox-bg": surface.bg,
152
156
  "--combobox-border-color": theme.palette.border,
153
157
  "--combobox-radius": rounded ? "25px" : theme.layout.radius,
154
158
  "--combobox-popup-radius": theme.layout.radius,
@@ -160,8 +164,8 @@ var ComboboxComponent = _react2.default.forwardRef(
160
164
  "--combobox-focus-border-color": colors.focusBorder,
161
165
  "--combobox-placeholder-color": colors.placeholderColor,
162
166
  "--combobox-disabled-color": theme.palette.accents_4,
163
- "--combobox-shadow": theme.expressiveness.shadowMedium,
164
- "--combobox-active-bg": theme.palette.accents_2,
167
+ "--combobox-shadow": surface.shadow,
168
+ "--combobox-active-bg": surface.hover,
165
169
  "--combobox-empty-color": theme.palette.accents_5
166
170
  };
167
171
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -1,11 +1,14 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk6ZBFUZSLjs = require('./chunk-6ZBFUZSL.js');
3
+ var _chunkCU6SNPIMjs = require('./chunk-CU6SNPIM.js');
4
4
 
5
5
 
6
6
  var _chunkNEG5UNM6js = require('./chunk-NEG5UNM6.js');
7
7
 
8
8
 
9
+ var _chunkEUYSKHRSjs = require('./chunk-EUYSKHRS.js');
10
+
11
+
9
12
  var _chunkV5I4ORQQjs = require('./chunk-V5I4ORQQ.js');
10
13
 
11
14
 
@@ -57,7 +60,7 @@ var Command = ({
57
60
  }
58
61
  };
59
62
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
60
- _chunk6ZBFUZSLjs.Modal_default,
63
+ _chunkCU6SNPIMjs.Modal_default,
61
64
  {
62
65
  visible,
63
66
  onClose,
@@ -97,7 +100,7 @@ var Command = ({
97
100
  "aria-selected": index === active,
98
101
  className: Command_module_css_default.item,
99
102
  style: {
100
- backgroundColor: index === active ? theme.palette.accents_2 : void 0
103
+ backgroundColor: index === active ? _chunkEUYSKHRSjs.getSurface.call(void 0, theme).hover : void 0
101
104
  },
102
105
  onMouseEnter: () => setActive(index),
103
106
  onClick: () => select(item),
@@ -0,0 +1,131 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2
+
3
+
4
+ var _chunkMAICNLTYjs = require('./chunk-MAICNLTY.js');
5
+
6
+
7
+ var _chunkV5I4ORQQjs = require('./chunk-V5I4ORQQ.js');
8
+
9
+
10
+ var _chunk5KUROAEPjs = require('./chunk-5KUROAEP.js');
11
+
12
+ // core/Toolbar/Toolbar.tsx
13
+ var _react = require('react'); var _react2 = _interopRequireDefault(_react);
14
+
15
+ // css-module-source:/Users/brunnoandrade/Desktop/BolioUI/bolio-ui/core/Toolbar/Toolbar.module.css.bolio-css-module-source
16
+ var Toolbar_module_css_default = { "toolbar": "Toolbar-module_toolbar__GZv6U", "vertical": "Toolbar-module_vertical__bTAsV", "separator": "Toolbar-module_separator__Gs9-M" };
17
+
18
+ // core/Toolbar/Toolbar.tsx
19
+ var _jsxruntime = require('react/jsx-runtime');
20
+ var ITEMS = "button, a[href], input, select, textarea";
21
+ var ToolbarComponent = _react2.default.forwardRef(
22
+ ({
23
+ orientation = "horizontal",
24
+ className = "",
25
+ children,
26
+ onKeyDown,
27
+ onFocus,
28
+ style,
29
+ ...props
30
+ }, innerRef) => {
31
+ const theme = _chunkV5I4ORQQjs.use_theme_default.call(void 0, );
32
+ const { SCALES } = _chunkMAICNLTYjs.use_scale_default.call(void 0, );
33
+ const ref = _react.useRef.call(void 0, null);
34
+ const current = _react.useRef.call(void 0, null);
35
+ const getItems = () => {
36
+ var _a, _b;
37
+ return Array.from(
38
+ (_b = (_a = ref.current) == null ? void 0 : _a.querySelectorAll(ITEMS)) != null ? _b : []
39
+ ).filter(
40
+ (item) => !item.disabled && item.getAttribute("role") !== "separator"
41
+ );
42
+ };
43
+ _react.useEffect.call(void 0, () => {
44
+ var _a;
45
+ const items = getItems();
46
+ const active = (_a = items.find((item) => item === current.current)) != null ? _a : items[0];
47
+ items.forEach(
48
+ (item) => item.setAttribute("tabindex", item === active ? "0" : "-1")
49
+ );
50
+ });
51
+ const setRef = (node) => {
52
+ ref.current = node;
53
+ if (typeof innerRef === "function") innerRef(node);
54
+ else if (innerRef) innerRef.current = node;
55
+ };
56
+ const focusHandler = (event) => {
57
+ if (onFocus) onFocus(event);
58
+ const items = getItems();
59
+ if (items.includes(event.target)) {
60
+ current.current = event.target;
61
+ items.forEach(
62
+ (item) => item.setAttribute("tabindex", item === event.target ? "0" : "-1")
63
+ );
64
+ }
65
+ };
66
+ const keyHandler = (event) => {
67
+ if (onKeyDown) onKeyDown(event);
68
+ if (event.defaultPrevented) return;
69
+ const vertical = orientation === "vertical";
70
+ const items = getItems();
71
+ const index = items.indexOf(event.target);
72
+ if (index === -1) return;
73
+ let next = -1;
74
+ if (event.key === (vertical ? "ArrowDown" : "ArrowRight"))
75
+ next = (index + 1) % items.length;
76
+ else if (event.key === (vertical ? "ArrowUp" : "ArrowLeft"))
77
+ next = (index - 1 + items.length) % items.length;
78
+ else if (event.key === "Home") next = 0;
79
+ else if (event.key === "End") next = items.length - 1;
80
+ if (next === -1) return;
81
+ event.preventDefault();
82
+ items[next].focus();
83
+ };
84
+ const toolbarStyle = {
85
+ margin: `${SCALES.mt(0)} ${SCALES.mr(0)} ${SCALES.mb(0)} ${SCALES.ml(0)}`,
86
+ "--toolbar-border": theme.palette.border,
87
+ "--toolbar-radius": theme.layout.radius,
88
+ ...style
89
+ };
90
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
91
+ "div",
92
+ {
93
+ ref: setRef,
94
+ role: "toolbar",
95
+ "aria-orientation": orientation,
96
+ className: _chunk5KUROAEPjs.use_classes_default.call(void 0, Toolbar_module_css_default.toolbar, Toolbar_module_css_default[orientation], className),
97
+ onKeyDown: keyHandler,
98
+ onFocus: focusHandler,
99
+ ...props,
100
+ style: toolbarStyle,
101
+ children
102
+ }
103
+ );
104
+ }
105
+ );
106
+ ToolbarComponent.displayName = "BolioUIToolbar";
107
+ var Toolbar = _chunkMAICNLTYjs.with_scale_default.call(void 0, ToolbarComponent);
108
+ var Toolbar_default = Toolbar;
109
+
110
+ // core/Toolbar/ToolbarSeparator.tsx
111
+
112
+
113
+ var ToolbarSeparator = _react2.default.forwardRef(({ className = "", ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
114
+ "div",
115
+ {
116
+ ref,
117
+ role: "separator",
118
+ className: _chunk5KUROAEPjs.use_classes_default.call(void 0, Toolbar_module_css_default.separator, className),
119
+ ...props
120
+ }
121
+ ));
122
+ ToolbarSeparator.displayName = "BolioUIToolbarSeparator";
123
+ var ToolbarSeparator_default = ToolbarSeparator;
124
+
125
+ // core/Toolbar/index.ts
126
+ Toolbar_default.Separator = ToolbarSeparator_default;
127
+ var Toolbar_default2 = Toolbar_default;
128
+
129
+
130
+
131
+ exports.Toolbar_default = Toolbar_default2;
@@ -3,6 +3,9 @@
3
3
  var _chunkDGXZP4VJjs = require('./chunk-DGXZP4VJ.js');
4
4
 
5
5
 
6
+ var _chunkEUYSKHRSjs = require('./chunk-EUYSKHRS.js');
7
+
8
+
6
9
  var _chunkLMDBE6T6js = require('./chunk-LMDBE6T6.js');
7
10
 
8
11
 
@@ -231,6 +234,7 @@ var ButtonDropdownComponent = _react2.default.forwardRef(
231
234
  const innerRef = _react.useRef.call(void 0, null);
232
235
  _react.useImperativeHandle.call(void 0, ref, () => innerRef.current);
233
236
  const theme = _chunkV5I4ORQQjs.use_theme_default.call(void 0, );
237
+ const surface = _chunkEUYSKHRSjs.getSurface.call(void 0, theme);
234
238
  const colors = getColor(theme.palette, type);
235
239
  const itemChildren = _chunkUX2B3G6Ujs.pickChild.call(void 0, children, ButtonDropdownItem_default)[1];
236
240
  const [itemChildrenWithoutMain, mainItemChildren] = _chunkUX2B3G6Ujs.pickChildByProps.call(void 0,
@@ -328,9 +332,9 @@ var ButtonDropdownComponent = _react2.default.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 @@ var _chunkBXDUHMWSjs = require('./chunk-BXDUHMWS.js');
9
9
  var _chunkZRORQ2WHjs = require('./chunk-ZRORQ2WH.js');
10
10
 
11
11
 
12
- var _chunkDXHNQANXjs = require('./chunk-DXHNQANX.js');
12
+ var _chunkTPZUTHTQjs = require('./chunk-TPZUTHTQ.js');
13
+
14
+
15
+ var _chunkEUYSKHRSjs = require('./chunk-EUYSKHRS.js');
13
16
 
14
17
 
15
18
  var _chunkV5I4ORQQjs = require('./chunk-V5I4ORQQ.js');
@@ -140,12 +143,13 @@ var Tour = _react2.default.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 = _chunkEUYSKHRSjs.getSurface.call(void 0, 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
  };
@@ -187,10 +191,10 @@ var Tour = _react2.default.forwardRef(
187
191
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { id: `${id}-title`, className: Tour_module_css_default.title, children: step.title }),
188
192
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { id: `${id}-content`, className: Tour_module_css_default.content, children: step.content }),
189
193
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: Tour_module_css_default.actions, children: [
190
- !last && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDXHNQANXjs.Button_default, { auto: true, scale: 0.75, effect: false, onClick: onClose, children: skipLabel }),
194
+ !last && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTPZUTHTQjs.Button_default, { auto: true, scale: 0.75, effect: false, onClick: onClose, children: skipLabel }),
191
195
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: Tour_module_css_default.spacer }),
192
196
  current > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
193
- _chunkDXHNQANXjs.Button_default,
197
+ _chunkTPZUTHTQjs.Button_default,
194
198
  {
195
199
  auto: true,
196
200
  scale: 0.75,
@@ -200,7 +204,7 @@ var Tour = _react2.default.forwardRef(
200
204
  }
201
205
  ),
202
206
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
203
- _chunkDXHNQANXjs.Button_default,
207
+ _chunkTPZUTHTQjs.Button_default,
204
208
  {
205
209
  auto: true,
206
210
  scale: 0.75,
@@ -273,7 +273,8 @@ var CalendarComponent = _react2.default.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 = _react2.default.memo(
83
83
  width: nativeWidth,
84
84
  elementTop
85
85
  } = _chunkDSX6YDJMjs.getRefRect.call(void 0, 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
  _chunkJJFOGZ6Vjs.use_resize_default.call(void 0, updateRect);
89
91
  _chunkV57PNXMDjs.use_click_anywhere_default.call(void 0, () => {
@@ -3,10 +3,10 @@
3
3
  var _chunkJFNYQSEZjs = require('./chunk-JFNYQSEZ.js');
4
4
 
5
5
 
6
- var _chunkAG2NWQYLjs = require('./chunk-AG2NWQYL.js');
6
+ var _chunkKBZEYKCZjs = require('./chunk-KBZEYKCZ.js');
7
7
 
8
8
 
9
- var _chunkKBZEYKCZjs = require('./chunk-KBZEYKCZ.js');
9
+ var _chunkWCTANCLGjs = require('./chunk-WCTANCLG.js');
10
10
 
11
11
 
12
12
  var _chunkAXYDJGTNjs = require('./chunk-AXYDJGTN.js');
@@ -15,6 +15,9 @@ var _chunkAXYDJGTNjs = require('./chunk-AXYDJGTN.js');
15
15
  var _chunk33BUV2RXjs = require('./chunk-33BUV2RX.js');
16
16
 
17
17
 
18
+ var _chunkEUYSKHRSjs = require('./chunk-EUYSKHRS.js');
19
+
20
+
18
21
 
19
22
  var _chunkMAICNLTYjs = require('./chunk-MAICNLTY.js');
20
23
 
@@ -93,6 +96,7 @@ var SelectDropdown = _react2.default.forwardRef(
93
96
  getPopupContainer
94
97
  }, dropdownRef) => {
95
98
  const theme = _chunkV5I4ORQQjs.use_theme_default.call(void 0, );
99
+ const surface = _chunkEUYSKHRSjs.getSurface.call(void 0, theme);
96
100
  const internalDropdownRef = _react.useRef.call(void 0, null);
97
101
  const { ref } = useSelectContext();
98
102
  const classes = _chunk5KUROAEPjs.use_classes_default.call(void 0, SelectDropdown_module_css_default.selectDropdown, className);
@@ -101,7 +105,7 @@ var SelectDropdown = _react2.default.forwardRef(
101
105
  () => internalDropdownRef.current
102
106
  );
103
107
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
104
- _chunkAG2NWQYLjs.dropdown_default,
108
+ _chunkWCTANCLGjs.dropdown_default,
105
109
  {
106
110
  parent: ref,
107
111
  visible,
@@ -114,8 +118,8 @@ var SelectDropdown = _react2.default.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
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2
2
 
3
- var _chunkXF4TPE2Wjs = require('./chunk-XF4TPE2W.js');
3
+ var _chunkIL7L3BELjs = require('./chunk-IL7L3BEL.js');
4
4
 
5
5
 
6
6
  var _chunkZRORQ2WHjs = require('./chunk-ZRORQ2WH.js');
@@ -92,7 +92,7 @@ var PopoverComponent = _react2.default.forwardRef((popoverProps, ref) => {
92
92
  latestChange.current(customVisible);
93
93
  }, [customVisible, latestChange]);
94
94
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PopoverContext.Provider, { value, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
95
- _chunkXF4TPE2Wjs.Tooltip_default,
95
+ _chunkIL7L3BELjs.Tooltip_default,
96
96
  {
97
97
  ref,
98
98
  initialVisible: false,
@@ -6,12 +6,15 @@ var _chunkKBZEYKCZjs = require('./chunk-KBZEYKCZ.js');
6
6
 
7
7
 
8
8
 
9
- var _chunkP245HSVBjs = require('./chunk-P245HSVB.js');
9
+ var _chunkTLVSZCKUjs = require('./chunk-TLVSZCKU.js');
10
10
 
11
11
 
12
12
  var _chunkDGXZP4VJjs = require('./chunk-DGXZP4VJ.js');
13
13
 
14
14
 
15
+ var _chunkEUYSKHRSjs = require('./chunk-EUYSKHRS.js');
16
+
17
+
15
18
 
16
19
  var _chunkMAICNLTYjs = require('./chunk-MAICNLTY.js');
17
20
 
@@ -33,7 +36,7 @@ var _jsxruntime = require('react/jsx-runtime');
33
36
  var TWO_MONTHS_EM = 46;
34
37
  var ONE_MONTH_EM = 22;
35
38
  var emptyRange = [null, null];
36
- var format = (date) => date ? _chunkP245HSVBjs.toISO.call(void 0, date) : "";
39
+ var format = (date) => date ? _chunkTLVSZCKUjs.toISO.call(void 0, date) : "";
37
40
  var DateRangePickerComponent = _react2.default.forwardRef(
38
41
  ({
39
42
  value: customValue,
@@ -60,6 +63,7 @@ var DateRangePickerComponent = _react2.default.forwardRef(
60
63
  ...props
61
64
  }, ref) => {
62
65
  const theme = _chunkV5I4ORQQjs.use_theme_default.call(void 0, );
66
+ const surface = _chunkEUYSKHRSjs.getSurface.call(void 0, theme);
63
67
  const { SCALES } = _chunkMAICNLTYjs.use_scale_default.call(void 0, );
64
68
  const colors = _chunkKBZEYKCZjs.getColors.call(void 0, theme.palette, type, disabled, {
65
69
  filled,
@@ -83,7 +87,7 @@ var DateRangePickerComponent = _react2.default.forwardRef(
83
87
  const endRef = _react.useRef.call(void 0, null);
84
88
  const buttonRef = _react.useRef.call(void 0, null);
85
89
  _chunkDGXZP4VJjs.use_click_away_default.call(void 0, rootRef, () => setOpen(false));
86
- const isInBounds = (date) => !(min && date < _chunkP245HSVBjs.startOfDay.call(void 0, min) || max && date > _chunkP245HSVBjs.startOfDay.call(void 0, max));
90
+ const isInBounds = (date) => !(min && date < _chunkTLVSZCKUjs.startOfDay.call(void 0, min) || max && date > _chunkTLVSZCKUjs.startOfDay.call(void 0, max));
87
91
  const commit = (next) => {
88
92
  if (!isControlled) setSelfValue(next);
89
93
  if (onChange) onChange(next);
@@ -95,7 +99,7 @@ var DateRangePickerComponent = _react2.default.forwardRef(
95
99
  if (next === "") {
96
100
  return commit(edge === "start" ? [null, other] : [other, null]);
97
101
  }
98
- const date = _chunkP245HSVBjs.fromISO.call(void 0, next);
102
+ const date = _chunkTLVSZCKUjs.fromISO.call(void 0, next);
99
103
  if (!date || !isInBounds(date)) return;
100
104
  if (other && (edge === "start" ? date > other : date < other)) return;
101
105
  commit(edge === "start" ? [date, other] : [other, date]);
@@ -140,7 +144,8 @@ var DateRangePickerComponent = _react2.default.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 = _react2.default.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 = {
@@ -243,7 +248,7 @@ var DateRangePickerComponent = _react2.default.forwardRef(
243
248
  }),
244
249
  onKeyDown: keyDownHandler,
245
250
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
246
- _chunkP245HSVBjs.Calendar_default,
251
+ _chunkTLVSZCKUjs.Calendar_default,
247
252
  {
248
253
  mode: "range",
249
254
  numberOfMonths: fit.months,
@@ -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
+ }