@fibery/ui-kit 9.0.2 → 9.1.1

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 (189) hide show
  1. package/lib/a11y-color.js +12 -10
  2. package/lib/actions-menu/actions-menu-props.d.ts +2 -0
  3. package/lib/actions-menu/actions-menu-sub-command-menu.js +5 -4
  4. package/lib/actions-menu/actions-menu.d.ts +1 -1
  5. package/lib/actions-menu/actions-menu.js +2 -1
  6. package/lib/actions-menu/contexts/actions-menu-context.js +12 -11
  7. package/lib/ai/max-tokens.js +6 -5
  8. package/lib/antd/ant-modal.d.ts +1 -1
  9. package/lib/antd/ant-modal.js +28 -1
  10. package/lib/antd/ant-upload.d.ts +1 -1
  11. package/lib/antd/ant-upload.js +23 -18
  12. package/lib/antd/input.js +5 -4
  13. package/lib/antd/utils.js +2 -1
  14. package/lib/avatar-colors.js +1 -1
  15. package/lib/avatar.d.ts +1 -10
  16. package/lib/avatar.js +48 -38
  17. package/lib/avatar.wyw-in-js.css +1 -1
  18. package/lib/banner/banner-action.js +2 -1
  19. package/lib/button/button.js +1 -1
  20. package/lib/button/icon-button.js +1 -1
  21. package/lib/canvas-colors.js +2 -2
  22. package/lib/card-container.d.ts +2 -6
  23. package/lib/card-container.js +4 -4
  24. package/lib/color-filter.js +2 -2
  25. package/lib/color-inspect.js +1 -1
  26. package/lib/color-picker/color-picker-or-loader.d.ts +2 -2
  27. package/lib/color-utils.js +1 -1
  28. package/lib/comment.d.ts +2 -1
  29. package/lib/comment.js +44 -27
  30. package/lib/comment.wyw-in-js.css +11 -8
  31. package/lib/context-menu/index.js +1 -0
  32. package/lib/context-menu/index.wyw-in-js.css +1 -1
  33. package/lib/date-picker/autocomplete.js +12 -10
  34. package/lib/date-picker/date-range-input.js +8 -6
  35. package/lib/date-picker/day-with-start-end-buttons.js +0 -2
  36. package/lib/date-picker/get-weekends-for-month.js +4 -2
  37. package/lib/date-picker/single-date-input.js +8 -6
  38. package/lib/day-select/day-select.js +2 -1
  39. package/lib/day-select/week-day-select.d.ts +2 -2
  40. package/lib/day-select/week-day-select.js +4 -3
  41. package/lib/design-system/alpha.js +5 -7
  42. package/lib/design-system/colors-charts.d.ts +4 -0
  43. package/lib/design-system/colors-charts.js +14 -0
  44. package/lib/design-system/colors-js.d.ts +2 -4
  45. package/lib/design-system/colors-js.js +8 -10
  46. package/lib/design-system/fns.enum.js +7 -4
  47. package/lib/design-system/fns.icon.js +1 -1
  48. package/lib/design-system/fns.js +7 -4
  49. package/lib/design-system/theme.d.ts +7 -7
  50. package/lib/design-system/theme.js +7 -12
  51. package/lib/design-system/vars.js +1 -2
  52. package/lib/design-system.d.ts +3 -2
  53. package/lib/design-system.js +3 -2
  54. package/lib/emoji-picker/primitives/content.js +10 -9
  55. package/lib/emoji-picker/primitives/emoji.js +22 -14
  56. package/lib/emoji-picker/primitives/emoji.wyw-in-js.css +4 -3
  57. package/lib/emoji-picker/primitives/grid.js +0 -1
  58. package/lib/emoji-picker/primitives/preview-provider.js +4 -3
  59. package/lib/emoji-picker/primitives/root.js +10 -9
  60. package/lib/emoji-picker/primitives/skin-provider.js +5 -4
  61. package/lib/emoji-picker/stores/emoji-data-store.d.ts +2 -2
  62. package/lib/emoji-picker/stores/emoji-data-store.js +8 -8
  63. package/lib/emoji-picker/stores/static-emoji-data-store.js +2 -1
  64. package/lib/emoji.js +5 -2
  65. package/lib/fibermoji-placeholder.js +5 -7
  66. package/lib/field-type-icon.js +2 -1
  67. package/lib/file-item/file-icon.js +2 -1
  68. package/lib/file-item.js +3 -10
  69. package/lib/highlight-colors.js +2 -1
  70. package/lib/hotkey-scope.js +2 -1
  71. package/lib/icons/ast/index.d.ts +1 -4
  72. package/lib/icons/ast/index.js +2 -5
  73. package/lib/icons/ast/spinner.js +1 -14
  74. package/lib/icons/icon.js +4 -3
  75. package/lib/icons/react/index.d.ts +1 -4
  76. package/lib/icons/react/index.js +2 -5
  77. package/lib/images-gallery/get-gallery-src.js +1 -1
  78. package/lib/images-gallery/slide-buttons.js +8 -4
  79. package/lib/images-gallery/thumbnails-mime-types-white-list.js +1 -1
  80. package/lib/integration-compact-info-button.js +1 -1
  81. package/lib/loading-sausage.js +7 -6
  82. package/lib/mobile-drawer.d.ts +2 -1
  83. package/lib/mobile-drawer.js +24 -12
  84. package/lib/mobile-drawer.wyw-in-js.css +3 -2
  85. package/lib/mobile-keyboard-aware-popup.js +6 -5
  86. package/lib/modal-menu/contexts/modal-menu-context.d.ts +1 -0
  87. package/lib/modal-menu/modal-menu-content.d.ts +1 -1
  88. package/lib/modal-menu/modal-menu-content.js +16 -6
  89. package/lib/modal-menu/modal-menu-drawer-content.d.ts +7 -0
  90. package/lib/modal-menu/modal-menu-drawer-content.js +13 -0
  91. package/lib/modal-menu/modal-menu-root.d.ts +2 -1
  92. package/lib/modal-menu/modal-menu-root.js +24 -21
  93. package/lib/modal-menu/modal-submenu.js +10 -9
  94. package/lib/nested-menu-item.d.ts +1 -1
  95. package/lib/number-input/number-input-inline-with-autosize.d.ts +1 -2
  96. package/lib/number-input/number-input-inline-with-autosize.js +9 -6
  97. package/lib/number-input/number-input-inline-with-autosize.wyw-in-js.css +0 -1
  98. package/lib/number-input/number-input.js +13 -11
  99. package/lib/number-input/styles.d.ts +1 -9
  100. package/lib/number-input/styles.js +3 -9
  101. package/lib/number-input/styles.wyw-in-js.css +2 -3
  102. package/lib/number-input/text-area-auto-sized.d.ts +1 -2
  103. package/lib/number-input/text-area-auto-sized.js +2 -2
  104. package/lib/number-input/text-input-auto-sized.d.ts +1 -2
  105. package/lib/number-input/text-input-auto-sized.js +2 -2
  106. package/lib/online-users.js +2 -2
  107. package/lib/open-popover-tracker.js +7 -6
  108. package/lib/palettes/neutral.js +1 -1
  109. package/lib/palettes/warm.js +1 -1
  110. package/lib/phone.js +1 -1
  111. package/lib/popover/index.d.ts +4 -2
  112. package/lib/popover/index.js +61 -59
  113. package/lib/popover/mobile-popover-context.js +12 -11
  114. package/lib/popover/mobile-popover.js +16 -15
  115. package/lib/popover/modifiers.js +4 -4
  116. package/lib/preference-setting.js +6 -8
  117. package/lib/reactions/reaction-button.js +36 -25
  118. package/lib/reactions/reaction-button.wyw-in-js.css +16 -16
  119. package/lib/reactions/reaction-picker.js +22 -10
  120. package/lib/reactions/reaction-picker.wyw-in-js.css +1 -0
  121. package/lib/reactions/tootltip.js +2 -1
  122. package/lib/select/components/option.js +2 -1
  123. package/lib/select/index.d.ts +2 -1
  124. package/lib/select/select-trigger.d.ts +4 -0
  125. package/lib/select/select-trigger.js +25 -0
  126. package/lib/select/select-trigger.wyw-in-js.css +1 -0
  127. package/lib/select/select.d.ts +6 -2
  128. package/lib/select/select.js +10 -5
  129. package/lib/spinner.d.ts +2 -6
  130. package/lib/spinner.js +11 -7
  131. package/lib/spinner.wyw-in-js.css +1 -0
  132. package/lib/tab-nav/tab-nav.d.ts +4 -2
  133. package/lib/tab-nav/tab-nav.js +2 -2
  134. package/lib/thematic.js +322 -321
  135. package/lib/theme-provider.d.ts +1 -3
  136. package/lib/toast/toast-action.js +2 -1
  137. package/lib/toast/toast-provider.d.ts +1 -2
  138. package/lib/toast/toast-queue.d.ts +1 -2
  139. package/lib/toast/toast-queue.js +7 -8
  140. package/lib/toast/toast.js +7 -6
  141. package/lib/toggle.js +3 -3
  142. package/lib/tooltip-if-overflown.js +2 -1
  143. package/lib/tooltip.js +1 -1
  144. package/lib/type-badge.d.ts +8 -28
  145. package/lib/type-badge.js +39 -50
  146. package/lib/type-badge.wyw-in-js.css +11 -10
  147. package/lib/unit/container.d.ts +12 -0
  148. package/lib/unit/container.js +50 -0
  149. package/lib/unit/context.d.ts +29 -0
  150. package/lib/unit/context.js +9 -0
  151. package/lib/unit/index.d.ts +4 -2
  152. package/lib/unit/index.js +2 -1
  153. package/lib/unit/nav-button.d.ts +12 -0
  154. package/lib/unit/nav-button.js +18 -0
  155. package/lib/unit/styles.d.ts +6 -9
  156. package/lib/unit/styles.js +13 -16
  157. package/lib/unit/styles.wyw-in-js.css +10 -16
  158. package/lib/unit/unit-content-layout.d.ts +4 -3
  159. package/lib/unit/unit-content-layout.js +9 -9
  160. package/lib/unit/unit-content.d.ts +6 -5
  161. package/lib/unit/unit-content.js +83 -18
  162. package/lib/unit/unit-content.wyw-in-js.css +6 -2
  163. package/lib/unit/unit.d.ts +38 -5
  164. package/lib/unit/unit.js +43 -12
  165. package/lib/workflow-progress-icon.js +2 -2
  166. package/package.json +6 -6
  167. package/lib/features.d.ts +0 -8
  168. package/lib/features.js +0 -15
  169. package/lib/flags.d.ts +0 -4
  170. package/lib/flags.js +0 -7
  171. package/lib/icons/ast/alert-triangle.d.ts +0 -5
  172. package/lib/icons/ast/alert-triangle.js +0 -25
  173. package/lib/icons/ast/field-units-large.d.ts +0 -5
  174. package/lib/icons/ast/field-units-large.js +0 -25
  175. package/lib/icons/ast/plus.d.ts +0 -5
  176. package/lib/icons/ast/plus.js +0 -25
  177. package/lib/icons/react/alert-triangle.d.ts +0 -15
  178. package/lib/icons/react/alert-triangle.js +0 -21
  179. package/lib/icons/react/field-units-large.d.ts +0 -15
  180. package/lib/icons/react/field-units-large.js +0 -21
  181. package/lib/icons/react/plus.d.ts +0 -15
  182. package/lib/icons/react/plus.js +0 -21
  183. package/lib/unit/primitive.d.ts +0 -5
  184. package/lib/unit/primitive.js +0 -108
  185. package/lib/unit/primitive.wyw-in-js.css +0 -3
  186. package/lib/unit/types.d.ts +0 -34
  187. package/lib/unit/types.js +0 -0
  188. package/lib/unit/unit-button-group.d.ts +0 -13
  189. package/lib/unit/unit-button-group.js +0 -23
@@ -5,10 +5,11 @@ import { alphaCoefficients } from "./design-system/alpha-coefficients.js";
5
5
  import { durations, tooltipDelay, transition, transitionDuration, transitions } from "./design-system/animation.js";
6
6
  import { ThemeDefs, cardTypeColors } from "./design-system/colors.js";
7
7
  import { dropCursorColor, getBgSwatchBorderColor, getBgSwatchFillColor, getEnumTextColor, getLinearGradient, shadows } from "./design-system/colors-css.js";
8
- import { getDarkenColor, getObjectColorMemoized, getTextColor } from "./design-system/colors-js.js";
8
+ import { getDarkenColor, getObjectColor } from "./design-system/colors-js.js";
9
+ import { palette } from "./design-system/colors-charts.js";
9
10
  import { dateFormat, dateTimeFormat, timeFormat } from "./design-system/date.js";
10
11
  import { border, iconSize, layout, minPanelWidth, space, spaceNestedTreeInterval, spaceNestedTreeLevel, viewBoxSize } from "./design-system/layout.js";
11
12
  import { Styles, Theme, stylesFromTheme, themeFromPalette } from "./design-system/theme.js";
12
13
  import { fontFamily, fontFamilyCode, fontSize, fontWeight, lineHeight, tabularNumsClasses, tabularNumsOff, tabularNumsOn, textClasses, textStyles } from "./design-system/typography.js";
13
14
  import { layoutVars, listRowSurfaceFontSizeVar, menuItemHeightVar, sidebarMenuIconSizeVar, sidebarMenuItemHeightVar, themeVars } from "./theming.generated.js";
14
- export { type ColorScale, type Def, type DefMapper, type Defs, type EnumDefs, type HighlightDefs, type HighlightHueName, type HighlightHueNameCap, type ModeDef, type OneBasedScale, type Styles, Swatch, type Theme, type ThemeDefs, type ThemePalette, type ThemePaletteBase, type ThemePaletteCore, type ZeroBasedScale, alpha, alphaCoefficients, border, cardTypeColors, dateFormat, dateTimeFormat, defineAlphaCoefficient, dropCursorColor, durations, fontFamily, fontFamilyCode, fontSize, fontWeight, getBgSwatchBorderColor, getBgSwatchFillColor, getDarkenColor, getEnumTextColor, getLinearGradient, getObjectColorMemoized, getTextColor, iconSize, layout, layoutVars, lineHeight, listRowSurfaceFontSizeVar, menuItemHeightVar, minPanelWidth, opacity, shadows, sidebarMenuIconSizeVar, sidebarMenuItemHeightVar, space, spaceNestedTreeInterval, spaceNestedTreeLevel, stylesFromTheme, swatches, tabularNumsClasses, tabularNumsOff, tabularNumsOn, textClasses, textStyles, themeFromPalette, themeVars, timeFormat, tooltipDelay, transition, transitionDuration, transitions, viewBoxSize };
15
+ export { type ColorScale, type Def, type DefMapper, type Defs, type EnumDefs, type HighlightDefs, type HighlightHueName, type HighlightHueNameCap, type ModeDef, type OneBasedScale, type Styles, Swatch, type Theme, type ThemeDefs, type ThemePalette, type ThemePaletteBase, type ThemePaletteCore, type ZeroBasedScale, alpha, alphaCoefficients, border, cardTypeColors, palette as chartColorPalette, dateFormat, dateTimeFormat, defineAlphaCoefficient, dropCursorColor, durations, fontFamily, fontFamilyCode, fontSize, fontWeight, getBgSwatchBorderColor, getBgSwatchFillColor, getDarkenColor, getEnumTextColor, getLinearGradient, getObjectColor, iconSize, layout, layoutVars, lineHeight, listRowSurfaceFontSizeVar, menuItemHeightVar, minPanelWidth, opacity, shadows, sidebarMenuIconSizeVar, sidebarMenuItemHeightVar, space, spaceNestedTreeInterval, spaceNestedTreeLevel, stylesFromTheme, swatches, tabularNumsClasses, tabularNumsOff, tabularNumsOn, textClasses, textStyles, themeFromPalette, themeVars, timeFormat, tooltipDelay, transition, transitionDuration, transitions, viewBoxSize };
@@ -2,12 +2,13 @@ import { alpha, defineAlphaCoefficient, opacity } from "./design-system/alpha.js
2
2
  import { Swatch, swatches } from "./design-system/colors-swatches.js";
3
3
  import { alphaCoefficients } from "./design-system/alpha-coefficients.js";
4
4
  import { durations, tooltipDelay, transition, transitionDuration, transitions } from "./design-system/animation.js";
5
- import { getDarkenColor, getObjectColorMemoized, getTextColor } from "./design-system/colors-js.js";
5
+ import { getDarkenColor, getObjectColor } from "./design-system/colors-js.js";
6
6
  import { cardTypeColors } from "./design-system/colors.js";
7
7
  import { layoutVars, listRowSurfaceFontSizeVar, menuItemHeightVar, sidebarMenuIconSizeVar, sidebarMenuItemHeightVar, themeVars } from "./theming.generated.js";
8
8
  import { dropCursorColor, getBgSwatchBorderColor, getBgSwatchFillColor, getEnumTextColor, getLinearGradient, shadows } from "./design-system/colors-css.js";
9
+ import { palette } from "./design-system/colors-charts.js";
9
10
  import { dateFormat, dateTimeFormat, timeFormat } from "./design-system/date.js";
10
11
  import { border, iconSize, layout, minPanelWidth, space, spaceNestedTreeInterval, spaceNestedTreeLevel, viewBoxSize } from "./design-system/layout.js";
11
12
  import { stylesFromTheme, themeFromPalette } from "./design-system/theme.js";
12
13
  import { fontFamily, fontFamilyCode, fontSize, fontWeight, lineHeight, tabularNumsClasses, tabularNumsOff, tabularNumsOn, textClasses, textStyles } from "./design-system/typography.js";
13
- export { Swatch, alpha, alphaCoefficients, border, cardTypeColors, dateFormat, dateTimeFormat, defineAlphaCoefficient, dropCursorColor, durations, fontFamily, fontFamilyCode, fontSize, fontWeight, getBgSwatchBorderColor, getBgSwatchFillColor, getDarkenColor, getEnumTextColor, getLinearGradient, getObjectColorMemoized, getTextColor, iconSize, layout, layoutVars, lineHeight, listRowSurfaceFontSizeVar, menuItemHeightVar, minPanelWidth, opacity, shadows, sidebarMenuIconSizeVar, sidebarMenuItemHeightVar, space, spaceNestedTreeInterval, spaceNestedTreeLevel, stylesFromTheme, swatches, tabularNumsClasses, tabularNumsOff, tabularNumsOn, textClasses, textStyles, themeFromPalette, themeVars, timeFormat, tooltipDelay, transition, transitionDuration, transitions, viewBoxSize };
14
+ export { Swatch, alpha, alphaCoefficients, border, cardTypeColors, palette as chartColorPalette, dateFormat, dateTimeFormat, defineAlphaCoefficient, dropCursorColor, durations, fontFamily, fontFamilyCode, fontSize, fontWeight, getBgSwatchBorderColor, getBgSwatchFillColor, getDarkenColor, getEnumTextColor, getLinearGradient, getObjectColor, iconSize, layout, layoutVars, lineHeight, listRowSurfaceFontSizeVar, menuItemHeightVar, minPanelWidth, opacity, shadows, sidebarMenuIconSizeVar, sidebarMenuItemHeightVar, space, spaceNestedTreeInterval, spaceNestedTreeLevel, stylesFromTheme, swatches, tabularNumsClasses, tabularNumsOff, tabularNumsOn, textClasses, textStyles, themeFromPalette, themeVars, timeFormat, tooltipDelay, transition, transitionDuration, transitions, viewBoxSize };
@@ -11,16 +11,17 @@ var [Provider, useCtx] = createContext$1("EmojiPickerContentSettings");
11
11
  var EmojiPickerContent = ({ emojiHoverColor, perLine = 9, emojiSize = 20, children }) => {
12
12
  const width = perLine * (emojiSize + emojiPadding * 2) + contentHorizontalPadding * 2 + measureScrollbar();
13
13
  const emojiContainerSize = emojiSize + emojiPadding * 2;
14
+ const contentSettings = useMemo(() => ({
15
+ emojiContainerSize,
16
+ emojiSize,
17
+ perLine
18
+ }), [
19
+ emojiContainerSize,
20
+ emojiSize,
21
+ perLine
22
+ ]);
14
23
  return /* @__PURE__ */ jsx(Provider, {
15
- value: useMemo(() => ({
16
- emojiContainerSize,
17
- emojiSize,
18
- perLine
19
- }), [
20
- emojiContainerSize,
21
- emojiSize,
22
- perLine
23
- ]),
24
+ value: contentSettings,
24
25
  children: jsx("div", {
25
26
  style: {
26
27
  "--fibery-emoji-container-size": `${emojiContainerSize}px`,
@@ -9,8 +9,11 @@ import { traceError } from "@fibery/helpers/utils/trace";
9
9
  //#region src/emoji-picker/primitives/emoji.tsx
10
10
  var emojiWrapperCss = "e1tcs44j-emojiWrapper";
11
11
  var emojiWrapperSizedCss = "e1tcpvam-emojiWrapperSized";
12
- var emojiInlineImgCss = "e1ufy8i3-emojiInlineImg";
13
- var emojiSizedImgCss = "e1im6ocj-emojiSizedImg";
12
+ var nativeStrikePx = 32;
13
+ var scaleNativeBelowPx = 24;
14
+ var nativeScaledCss = "n1ufy8i3-nativeScaled";
15
+ var emojiInlineImgCss = "e1im6ocj-emojiInlineImg";
16
+ var emojiSizedImgCss = "e1tco1tx-emojiSizedImg";
14
17
  var emptyPixel = "data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==";
15
18
  function getTitle(emoji) {
16
19
  if (emoji.native) return emoji.colons;
@@ -22,18 +25,23 @@ var Emoji = forwardRef(({ className, emoji: idOrColons, size, version = 14, fall
22
25
  const config = useEmojiRenderConfig();
23
26
  if (!emoji) return fallback === "shortcode" ? /* @__PURE__ */ jsx(Fragment, { children: idOrColons }) : null;
24
27
  let emojiNode;
25
- if ("native" in emoji) if (native && version >= emoji.version) emojiNode = emoji.native;
26
- else emojiNode = /* @__PURE__ */ jsx("img", {
27
- alt: emoji.name,
28
- className: cx(size ? emojiSizedImgCss : emojiInlineImgCss),
29
- src: emptyPixel,
30
- style: {
31
- backgroundImage: `url(${emoji.sprite.src})`,
32
- backgroundSize: emoji.sprite.size,
33
- backgroundPosition: emoji.sprite.position
34
- }
35
- });
36
- else emojiNode = /* @__PURE__ */ jsx("img", {
28
+ if ("native" in emoji) {
29
+ if (native && version >= emoji.version) emojiNode = size && size < scaleNativeBelowPx ? /* @__PURE__ */ jsx("span", {
30
+ className: nativeScaledCss,
31
+ style: { "--fibery-emoji-native-scale": size / nativeStrikePx },
32
+ children: emoji.native
33
+ }) : emoji.native;
34
+ else emojiNode = /* @__PURE__ */ jsx("img", {
35
+ alt: emoji.name,
36
+ className: cx(size ? emojiSizedImgCss : emojiInlineImgCss),
37
+ src: emptyPixel,
38
+ style: {
39
+ backgroundImage: `url(${emoji.sprite.src})`,
40
+ backgroundSize: emoji.sprite.size,
41
+ backgroundPosition: emoji.sprite.position
42
+ }
43
+ });
44
+ } else emojiNode = /* @__PURE__ */ jsx("img", {
37
45
  alt: emoji.name,
38
46
  loading: config.loading,
39
47
  draggable: config.draggable,
@@ -1,4 +1,5 @@
1
1
  .e1tcs44j-emojiWrapper{color:var(--textColor);font-family:"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Segoe UI","Twemoji Mozilla","Noto Color Emoji","Android Emoji";line-height:1;}
2
- .e1tcpvam-emojiWrapperSized{display:inline-flex;align-items:center;justify-content:center;}
3
- .e1ufy8i3-emojiInlineImg{display:inline-block;width:1em;height:1em;vertical-align:-0.1em;object-fit:contain;overflow:hidden;-webkit-touch-callout:none;}
4
- .e1im6ocj-emojiSizedImg{width:100%;height:100%;object-fit:contain;overflow:hidden;-webkit-touch-callout:none;}
2
+ .e1tcpvam-emojiWrapperSized{position:relative;display:inline-flex;align-items:center;justify-content:center;}
3
+ @supports (-webkit-hyphens: none){.n1ufy8i3-nativeScaled{position:absolute;top:50%;left:50%;font-size:32px;line-height:1;transform-origin:center;transform:translate(-50%, -50%) scale(var(--fibery-emoji-native-scale));}}
4
+ .e1im6ocj-emojiInlineImg{display:inline-block;width:1em;height:1em;vertical-align:-0.1em;object-fit:contain;overflow:hidden;-webkit-touch-callout:none;}
5
+ .e1tco1tx-emojiSizedImg{width:100%;height:100%;object-fit:contain;overflow:hidden;-webkit-touch-callout:none;}
@@ -198,7 +198,6 @@ var EmojiPickerGrid = forwardRef(({ disableScroll, renderEmoji }, ref) => {
198
198
  });
199
199
  return true;
200
200
  }
201
- default: break;
202
201
  }
203
202
  return false;
204
203
  }
@@ -6,10 +6,11 @@ var [SetterProvider, useSetterCtx] = createContext$1("EmojiPreviewSetterProvider
6
6
  var [ValueProvider, useValueCtx] = createContext$1("EmojiPreviewProvider");
7
7
  var EmojiPreviewProvider = ({ children }) => {
8
8
  const [preview, setPreview] = useState(null);
9
+ const setter = useCallback((v) => {
10
+ setPreview(v);
11
+ }, []);
9
12
  return /* @__PURE__ */ jsx(SetterProvider, {
10
- value: useCallback((v) => {
11
- setPreview(v);
12
- }, []),
13
+ value: setter,
13
14
  children: /* @__PURE__ */ jsx(ValueProvider, {
14
15
  value: preview,
15
16
  children
@@ -46,16 +46,17 @@ var EmojiPickerRoot = ({ i18n, onEmojiSelect, onCustomCategorySettings, children
46
46
  }), [i18n]);
47
47
  const onEmojiSelectCb = useCallbackRef(onEmojiSelect);
48
48
  const onCustomCategorySettingsCb = useCallbackRef(onCustomCategorySettings);
49
+ const emojiPickerCtx = useMemo(() => ({
50
+ version: detectEmojiSupportLevel(),
51
+ native: isApple(),
52
+ onCustomCategorySettings: onCustomCategorySettingsCb,
53
+ onEmojiSelect(emoji) {
54
+ onEmojiSelectCb(emoji);
55
+ add(emoji.id);
56
+ }
57
+ }), [onEmojiSelectCb, onCustomCategorySettingsCb]);
49
58
  return /* @__PURE__ */ jsx(Provider, {
50
- value: useMemo(() => ({
51
- version: detectEmojiSupportLevel(),
52
- native: isApple(),
53
- onCustomCategorySettings: onCustomCategorySettingsCb,
54
- onEmojiSelect(emoji) {
55
- onEmojiSelectCb(emoji);
56
- add(emoji.id);
57
- }
58
- }), [onEmojiSelectCb, onCustomCategorySettingsCb]),
59
+ value: emojiPickerCtx,
59
60
  children: /* @__PURE__ */ jsx(EmojiPreviewProvider, { children: /* @__PURE__ */ jsx(EmojiSkinProvider, { children: /* @__PURE__ */ jsx(EmojiPickerSearchProvider, { children: /* @__PURE__ */ jsx(I18NProvider, {
60
61
  value: mergedI18N,
61
62
  children
@@ -7,11 +7,12 @@ var [SetterProvider, useSetterCtx] = createContext$1("EmojiSkinSetterProvider");
7
7
  var [ValueProvider, useValueCtx] = createContext$1("EmojiSkinProvider");
8
8
  var EmojiSkinProvider = ({ children }) => {
9
9
  const [skin, setSkin] = useState(() => get("skin") || 1);
10
+ const setter = useCallback((v) => {
11
+ update({ skin: v });
12
+ setSkin(v);
13
+ }, []);
10
14
  return /* @__PURE__ */ jsx(SetterProvider, {
11
- value: useCallback((v) => {
12
- update({ skin: v });
13
- setSkin(v);
14
- }, []),
15
+ value: setter,
15
16
  children: /* @__PURE__ */ jsx(ValueProvider, {
16
17
  value: skin,
17
18
  children
@@ -1,8 +1,8 @@
1
1
  import { EmojiData } from "@fibery/emoji-data";
2
- import { PubSub } from "@fibery/helpers/utils/pub-sub";
2
+ import { Subject } from "@fibery/helpers/src/subject";
3
3
  //#region src/emoji-picker/stores/emoji-data-store.d.ts
4
4
  type EmojiDataStore = EmojiData & {
5
- pubSub: PubSub;
5
+ subject: Subject;
6
6
  };
7
7
  declare const makeEmojiDataStore: (emojiData: EmojiData) => EmojiDataStore;
8
8
  declare const EmojiDataStoreProvider: import("react").Provider<EmojiDataStore>;
@@ -1,28 +1,28 @@
1
1
  import { useSyncExternalStore } from "react";
2
2
  import { createContext as createContext$1 } from "@fibery/react/src/create-context";
3
- import { makePubSub } from "@fibery/helpers/utils/pub-sub";
3
+ import { makeSubject } from "@fibery/helpers/src/subject";
4
4
  //#region src/emoji-picker/stores/emoji-data-store.tsx
5
5
  var makeEmojiDataStore = (emojiData) => {
6
- const pubSub = makePubSub();
6
+ const subject = makeSubject();
7
7
  return {
8
8
  ...emojiData,
9
9
  setData(...args) {
10
10
  emojiData.setData(...args);
11
- pubSub.publish();
11
+ subject.publish();
12
12
  },
13
13
  setCustom(...args) {
14
14
  emojiData.setCustom(...args);
15
- pubSub.publish();
15
+ subject.publish();
16
16
  },
17
17
  addCustomEmoji(...args) {
18
18
  emojiData.addCustomEmoji(...args);
19
- pubSub.publish();
19
+ subject.publish();
20
20
  },
21
21
  removeCustomEmoji(...args) {
22
22
  emojiData.removeCustomEmoji(...args);
23
- pubSub.publish();
23
+ subject.publish();
24
24
  },
25
- pubSub
25
+ subject
26
26
  };
27
27
  };
28
28
  var [DataStoreProvider, useDataStoreCtx] = createContext$1("EmojiDataStore");
@@ -30,7 +30,7 @@ var EmojiDataStoreProvider = DataStoreProvider;
30
30
  var useEmojiDataStore = useDataStoreCtx;
31
31
  var useEmojiDataStoreSelector = (getter) => {
32
32
  const dataStore = useDataStoreCtx();
33
- return useSyncExternalStore(dataStore.pubSub.subscribe, () => getter(dataStore));
33
+ return useSyncExternalStore(dataStore.subject.subscribe, () => getter(dataStore));
34
34
  };
35
35
  var getIsInitialized = (store) => store.getIsInitialized();
36
36
  var useIsInitializedEmojiDataStore = () => useEmojiDataStoreSelector(getIsInitialized);
@@ -12,8 +12,9 @@ import rawData from "@fibery/emoji-data/data";
12
12
  */
13
13
  var StaticEmojiDataStore = ({ children }) => {
14
14
  const emojiData = useMemo(() => makeEmojiData(rawData, { set: getEmojiSet() }), []);
15
+ const emojiDataStore = useMemo(() => makeEmojiDataStore(emojiData), [emojiData]);
15
16
  return /* @__PURE__ */ jsx(EmojiDataStoreProvider, {
16
- value: useMemo(() => makeEmojiDataStore(emojiData), [emojiData]),
17
+ value: emojiDataStore,
17
18
  children
18
19
  });
19
20
  };
package/lib/emoji.js CHANGED
@@ -18,13 +18,16 @@ var StyledEmoji = /*#__PURE__*/ styled("span")({
18
18
  });
19
19
  /** @deprecated Use Emoji from emoji-picker instead */
20
20
  var Emoji = ({ symbol, label = "", size = 1.4, inline = true, onClick }) => {
21
+ const ariaLabelProps = {
22
+ ...label && { label },
23
+ ...!label && { "aria-hidden": true }
24
+ };
21
25
  return /* @__PURE__ */ jsx(StyledEmoji, {
22
26
  size,
23
27
  inline,
24
28
  role: "img",
25
29
  onClick,
26
- ...label && { label },
27
- ...!label && { "aria-hidden": true },
30
+ ...ariaLabelProps,
28
31
  children: symbol
29
32
  });
30
33
  };
@@ -3,10 +3,9 @@ import { textClasses } from "./design-system/typography.js";
3
3
  import { useTheme } from "./theme-provider.js";
4
4
  import { abbreviateName } from "./abbreviate-name.js";
5
5
  import { cyrb53, getAvatarColors, getAvatarNeutralColors } from "./avatar-colors.js";
6
- import { useFeatures } from "./features.js";
7
6
  import LockFilled from "./icons/react/lock-filled.js";
8
7
  /* empty css */
9
- import { memoize } from "@fibery/helpers/src/_";
8
+ import { isFlagPresent } from "@fibery/helpers/src/flags";
10
9
  import { jsx, jsxs } from "react/jsx-runtime";
11
10
  import { useEffect, useRef } from "react";
12
11
  import { cx } from "@linaria/core";
@@ -16,19 +15,18 @@ var mouths = [
16
15
  `<svg xmlns="http://www.w3.org/2000/svg" width="32" height="16" viewBox="0 0 32 16" fill="none"><ellipse cx="16" cy="10" rx="8" ry="6" fill="currentColor"/></svg>`,
17
16
  `<svg xmlns="http://www.w3.org/2000/svg" width="32" height="16" viewBox="0 0 32 16" fill="none"><g clip-path="url(#clip0_31_1134)"><path d="M4.23177 12.4853C2.41601 11.1761 1.06315 9.59547 0.249133 7.87572C-0.702621 5.86498 1.22002 4 3.51791 4L7 4C7.55229 4 8 4.44772 8 5V13.0522C8 13.7579 7.28869 14.2398 6.6548 13.9296C5.79179 13.5074 4.97984 13.0247 4.23177 12.4853Z" fill="currentColor"/><path d="M31.7509 7.87572C30.9369 9.59547 29.584 11.1761 27.7682 12.4853C27.0202 13.0247 26.2082 13.5074 25.3452 13.9296C24.7113 14.2398 24 13.7579 24 13.0522L24 5C24 4.44772 24.4477 4 25 4L28.4821 4C30.78 4 32.7026 5.86498 31.7509 7.87572Z" fill="currentColor"/><path d="M16 16C14.564 16 13.1472 15.8662 11.7816 15.6082C11.3227 15.5215 11 15.1143 11 14.6473V5C11 4.44772 11.4477 4 12 4L20 4C20.5523 4 21 4.44772 21 5V14.6473C21 15.1143 20.6773 15.5215 20.2184 15.6082C18.8528 15.8662 17.436 16 16 16Z" fill="currentColor"/></g><defs><clipPath id="clip0_31_1134"><rect width="32" height="16" fill="white"/></clipPath></defs></svg>`
18
17
  ];
19
- var getMouth = memoize((v) => {
18
+ function getMouth(v) {
20
19
  const salted = v + "::mouth";
21
20
  return mouths[Math.floor(cyrb53(salted) / Math.pow(2, 53) * mouths.length)];
22
- });
21
+ }
23
22
  var FibermojiPlaceholder = ({ size, radius = "50%", title, hasAccess = true, seed = title ?? "unknown" }) => {
24
23
  const eyes = useRef(null);
25
24
  const theme = useTheme();
26
25
  const { fg, bg } = hasAccess ? getAvatarColors(seed, theme) : getAvatarNeutralColors(theme);
27
26
  const mouth = getMouth(seed);
28
27
  const letters = abbreviateName(title).split("");
29
- const features = useFeatures();
30
28
  useEffect(() => {
31
- if (!features.enableAnimatedAvatarPlaceholders) return;
29
+ if (!isFlagPresent("animate-avatar-placeholders")) return;
32
30
  if (window.matchMedia(`(prefers-reduced-motion: reduce)`).matches) return;
33
31
  const listener = (event) => {
34
32
  if (!eyes.current) return;
@@ -49,7 +47,7 @@ var FibermojiPlaceholder = ({ size, radius = "50%", title, hasAccess = true, see
49
47
  };
50
48
  window.addEventListener("mousemove", listener);
51
49
  return () => window.removeEventListener("mousemove", listener);
52
- }, [size, features]);
50
+ }, [size]);
53
51
  if (!hasAccess) return /* @__PURE__ */ jsx("div", {
54
52
  className: "c12gmwzq",
55
53
  style: {
@@ -66,7 +66,8 @@ function getFieldIconComponent(iconName) {
66
66
  return iconName && iconNameToComponent[iconName] || App;
67
67
  }
68
68
  function FieldTypeIcon({ iconName, color, containerSize, iconSize }) {
69
- return /* @__PURE__ */ jsx(getFieldIconComponent(iconName), {
69
+ const Icon = getFieldIconComponent(iconName);
70
+ return /* @__PURE__ */ jsx(Icon, {
70
71
  color,
71
72
  containerSize,
72
73
  iconSize
@@ -18,7 +18,8 @@ function getFileIconComponent(contentType) {
18
18
  return FileOther;
19
19
  }
20
20
  function FileIcon({ contentType }) {
21
- return /* @__PURE__ */ jsx(getFileIconComponent(contentType), {});
21
+ const Component = getFileIconComponent(contentType);
22
+ return /* @__PURE__ */ jsx(Component, {});
22
23
  }
23
24
  var ArchiveContentTypes = [
24
25
  "application/zip",
package/lib/file-item.js CHANGED
@@ -1,10 +1,8 @@
1
1
  import "./file-item.wyw-in-js.css";
2
- import { useTheme } from "./theme-provider.js";
3
2
  import { Icon } from "./icons/icon.js";
4
- import Spinner from "./icons/react/spinner.js";
3
+ import { Spinner } from "./spinner.js";
5
4
  import { ActionsMenu } from "./actions-menu/actions-menu.js";
6
5
  import { ActionsButtonCompact } from "./button/actions-button-compact.js";
7
- import { makeButtonColors } from "./button/make-button-colors.js";
8
6
  import { FileIcon } from "./file-item/file-icon.js";
9
7
  import { FileMenuItems } from "./file-item/file-menu-items.js";
10
8
  import { FileTitle as FileTitle$1 } from "./file-item/file-title.js";
@@ -22,7 +20,6 @@ var fileOverlayStyle = "fwpg240-fileOverlay";
22
20
  var actionsButtonStyle = "a5now68-actionsButton";
23
21
  var minFileTileWidth = 120;
24
22
  function FileItem(props) {
25
- const theme = useTheme();
26
23
  const { onDownloadClick, onRemoveClick, onClick } = props;
27
24
  const { name, thumbnailUrl, status, contentType } = props.data;
28
25
  const isPending = status === "uploading" || status === "deleting";
@@ -78,7 +75,6 @@ function FileItem(props) {
78
75
  setIsActionsOpened,
79
76
  data: props.data,
80
77
  disabled: props.disabled,
81
- actionsButtonStyle: isBackgroundReady ? makeButtonColors(theme.colors.inversedTextColor, "ghost", theme) : void 0,
82
78
  onDownloadClick,
83
79
  onRemoveClick: props.onRemoveClick,
84
80
  onRenameClick: props.onRenameClick
@@ -98,15 +94,12 @@ function FileItem(props) {
98
94
  }) : null]
99
95
  }) });
100
96
  }
101
- function FileActionsMenu({ data, disabled, setIsActionsOpened, onDownloadClick, onRemoveClick, onRenameClick, actionsButtonStyle }) {
97
+ function FileActionsMenu({ data, disabled, setIsActionsOpened, onDownloadClick, onRemoveClick, onRenameClick }) {
102
98
  return /* @__PURE__ */ jsx(ActionsMenu, {
103
99
  onOpenChange: setIsActionsOpened,
104
100
  supportsMobile: true,
105
101
  mobileTitle: data.name,
106
- trigger: jsx(ActionsButtonCompact, {
107
- className: "c1oq0oxn",
108
- style: actionsButtonStyle
109
- }),
102
+ trigger: jsx(ActionsButtonCompact, { className: "c1oq0oxn" }),
110
103
  children: jsx(FileMenuItems, {
111
104
  file: data,
112
105
  disabled,
@@ -42,7 +42,8 @@ function highlightColors({ bg, fg, hues, overrides }, surface, deneutralize) {
42
42
  for (const hueName of highlightHueNames) {
43
43
  const hue = hues[hueName];
44
44
  const ov = overrides?.[hueName];
45
- const bgs = mapDef(extendDef(bg, ov?.bg), (b, i) => colorFromLcCompensated(surface[i], b.Lc, b.c, hue, deneutralize[i], bg[i].c));
45
+ const mergedBg = extendDef(bg, ov?.bg);
46
+ const bgs = mapDef(mergedBg, (b, i) => colorFromLcCompensated(surface[i], b.Lc, b.c, hue, deneutralize[i], bg[i].c));
46
47
  defs[bgKeyFrom(hueName)] = bgs;
47
48
  const mergedFg = extendDef(fg, ov?.fg);
48
49
  defs[fgKeyFrom(hueName)] = mapDef(mergedFg, (fg, i) => colorFromLcCompensated(surface[i], fg.Lc, fg.c, hue, deneutralize[i]));
@@ -10,10 +10,11 @@ import { useHotkey } from "@tanstack/react-hotkeys";
10
10
  //#region src/hotkey-scope.tsx
11
11
  var baseCss = "b12qy84w-base";
12
12
  var HotkeyScope = forwardRef(({ className, children, ...props }, ref) => {
13
+ const debugClassName = "__area=" + props["data-area"];
13
14
  return /* @__PURE__ */ jsx("div", {
14
15
  ref,
15
16
  tabIndex: -1,
16
- className: cx(baseCss, className),
17
+ className: cx(debugClassName, baseCss, className),
17
18
  ...props,
18
19
  children
19
20
  });
@@ -10,7 +10,6 @@ import Add from "./add.js";
10
10
  import AiAssistantFilled from "./ai-assistant-filled.js";
11
11
  import AiAssistant from "./ai-assistant.js";
12
12
  import AiFiberyBuild from "./ai-fibery-build.js";
13
- import AlertTriangle from "./alert-triangle.js";
14
13
  import App from "./app.js";
15
14
  import AppearanceAuto from "./appearance-auto.js";
16
15
  import AppearanceDark from "./appearance-dark.js";
@@ -97,7 +96,6 @@ import FavoritesFilled from "./favorites-filled.js";
97
96
  import FavoritesOff from "./favorites-off.js";
98
97
  import Favorites from "./favorites.js";
99
98
  import FiberyMono from "./fibery-mono.js";
100
- import FieldUnitsLarge from "./field-units-large.js";
101
99
  import Fields from "./fields.js";
102
100
  import FileArchive from "./file-archive.js";
103
101
  import FileCounter from "./file-counter.js";
@@ -280,7 +278,6 @@ import Print from "./print.js";
280
278
  import PresentStop from "./present-stop.js";
281
279
  import PresentPlay from "./present-play.js";
282
280
  import Preferences from "./preferences.js";
283
- import Plus from "./plus.js";
284
281
  import Pin from "./pin.js";
285
282
  import PinFilled from "./pin-filled.js";
286
283
  import Photo from "./photo.js";
@@ -364,4 +361,4 @@ import IntegrationFigma from "./integration-figma.js";
364
361
  import IntegrationFibery from "./integration-fibery.js";
365
362
  import IntegrationDiscourse from "./integration-discourse.js";
366
363
  import IntegrationAdd from "./integration-add.js";
367
- export { Abort, AccessTemplate, Activity, ActivityFilled, ActivityLog, Add, AddAfter, AddBefore, AddCompact, AiAssistant, AiAssistantFilled, AiFiberyBuild, AlertTriangle, App, AppearanceAuto, AppearanceDark, AppearanceLight, Architect, ArrowBack, ArrowBarDown, ArrowBarLeft, ArrowBarRight, ArrowBarUp, ArrowCollapse, ArrowCollapseVertical, ArrowDown, ArrowForward, ArrowLeft, ArrowRight, ArrowSend, ArrowUp, ArrowUpCircle, ArrowsRightLeft, AskForInput, Asterisk, Atom, Avatar, Backlog, BellCircle, BellOff, BellRinging, BellX, BringForward, BringToFront, Build, Cards, ChatBubble, ChatFloat, ChatSidebar, Checked, CircleCheck, CircleCheckFilled, CircleCross, CircleCrossFilled, CircleInfo, CircleInfoFilled, CirclePause, CirclePlay, Clear, ClearInputFilled, Clock, ClockAlarm, ClockForward, Close, CollapseAll, CollapseAllHorizontal, ColorCoding, Columns, Columns2, Columns4, CommentBubble, Comments, Copy, CreditsFilled, Crosshair, Database, DatabaseAdd, DatabaseOutline, DateRange, Delete, DragBlockHandle, DragHandle, Duplicate, DynamicFilterValue, Email, EmojiDelete, EntityCreate, EntityCreateFilled, EntityMerge, Equation, ExpandAll, ExpandAllHorizontal, Export, Eye, EyeOff, Favorites, FavoritesFilled, FavoritesOff, FiberyMono, FieldUnitsLarge, Fields, FileArchive, FileCounter, FileDocument, FileDownload, FileImage, FileMultiple, FileOther, FilePresentation, FileTable, FileUpload, FileVideo, Files, Filter, FitToScreen, FocusMode, FocusModeOff, Folder, FolderFavorite, FolderSmart, FormWithCover, FormWithoutCover, FullscreenModeOff, FullscreenModeOn, Gift, GlobeSimple, GlobeUnpublish, GoTo, GraduationCapFilled, GroupAdd, Headphones, HeadphonesAi, Highlights, Hint, Home, HomeFilled, ImageError, Import, ImportFilled, Integration, IntegrationAdd, IntegrationDiscourse, IntegrationFibery, IntegrationFigma, IntegrationGithub, IntegrationGitlab, IntegrationGoogleDrive, IntegrationGoogleMap, IntegrationIntercom, IntegrationJira, IntegrationLoom, IntegrationMiro, IntegrationMixpanel, IntegrationSlack, IntegrationSuggest, IntegrationTwitter, IntegrationUnsplash, IntegrationYoutube, IntegrationZendesk, IntegrationsFilled, Items, ItemsTimeline, Key, KeyboardHideDown, Lab, LayoutDouble, LayoutMultiple, LayoutSingle, Levels, Limits, LineDivider, LineJump, Link, LocationEdit, Lock, LockFilled, Logout, LoupeZoomIn, LoupeZoomOut, MapMode, Markdown, MenuCollapser, Mermaid, MessagePlus, Milestones, Minus, MirrorOff, MirrorOn, Monitor, More, MoreCompact, MoveDown, MoveLeft, MoveRight, MoveUp, NoBorder, NoFill, ObjChild, ObjM2M, ObjO2O, ObjParent, ObjSelf, OnSchedule, OpenInPanel, OpenLink, PageRegularMode, PageWideMode, PanelAdd, Pencil, People, PeopleAll, PeopleCheck, PeopleEdit, PeopleGroup, PeopleGroupRemove, PeopleInvite, PeopleRemove, PeopleRole, PeopleX, Photo, Pin, PinFilled, Plus, Preferences, PresentPlay, PresentStop, Print, PrivateItems, Propagate, Question, ReactionsAdd, ReadOnly, Redo, References, Refresh, Remove, ResetPassword, RicheditorBlockCallout, RicheditorBlockCode, RicheditorBlockEmbed, RicheditorBlockEntity, RicheditorBlockFile, RicheditorBlockH1, RicheditorBlockH2, RicheditorBlockH3, RicheditorBlockH4, RicheditorBlockMention, RicheditorBlockParagraph, RicheditorBlockQuote, RicheditorChecklistCreate, RicheditorImage, RicheditorImageAlignCenter, RicheditorImageAlignLeft, RicheditorImageAlignRight, RicheditorLinkedhighlightCreate, RicheditorListBullet, RicheditorListIndent, RicheditorListOrdered, RicheditorListUnindent, RicheditorMarkCode, RicheditorMarkEm, RicheditorMarkHighlight, RicheditorMarkStrike, RicheditorMarkStrong, RicheditorMarkTextBackgroundColor, RicheditorMarkUnderline, RicheditorTableCreate, RicheditorVideoUpload, Rows, Rule, Search, SearchAdd, SearchFilled, SearchRemove, SelfReferenceOff, SelfReferenceOn, SendBackward, SendToBack, Settings, SettingsFilled, Share, ShieldKeyhole, ShowAuthor, SimpleCompass, SlideMenu, SlideMenuFilled, Sort, SpaceAdd, SpaceApp, SpaceGenerate, SpaceMove, SpaceScratch, SpaceTemplate, Spinner, SwitchToText, SwitchToWidget, TableLayout, Templates, TemplatesFilled, Terminal, TextNoWrap, TextToolAlignBottom, TextToolAlignMiddle, TextToolAlignTop, TextWrap, Toc, TypeButton, TypeCheckbox, TypeDate, TypeEmail, TypeEmoji, TypeFormula, TypeLocation, TypeLookup, TypeMoney, TypeMultiSelect, TypeNumber, TypePercent, TypePhone, TypeRelation, TypeRichText, TypeSingleSelect, TypeText, Undo, UnitsAvatar, UnitsCollection, UnitsCounter, UnitsDate, UnitsField, UnitsFieldIconButton, UnitsInput, UnitsNormal, UnitsProgressBar, UnitsRichText, UnitsSnippet, Unlink, Unlock, UnlockFilled, UsbFlashDrive, ValueClear, ValueEdit, ViewAi, ViewApp, ViewBoard, ViewCalendar, ViewCanvas, ViewChart, ViewDashboard, ViewDetails, ViewDocument, ViewEmbed, ViewFeed, ViewForm, ViewGallery, ViewGantt, ViewList, ViewMap, ViewPage, ViewTable, ViewTimeline, Views, Warning, WarningTriangle, WarningTriangleFilled, Webhooks, Workflow };
364
+ export { Abort, AccessTemplate, Activity, ActivityFilled, ActivityLog, Add, AddAfter, AddBefore, AddCompact, AiAssistant, AiAssistantFilled, AiFiberyBuild, App, AppearanceAuto, AppearanceDark, AppearanceLight, Architect, ArrowBack, ArrowBarDown, ArrowBarLeft, ArrowBarRight, ArrowBarUp, ArrowCollapse, ArrowCollapseVertical, ArrowDown, ArrowForward, ArrowLeft, ArrowRight, ArrowSend, ArrowUp, ArrowUpCircle, ArrowsRightLeft, AskForInput, Asterisk, Atom, Avatar, Backlog, BellCircle, BellOff, BellRinging, BellX, BringForward, BringToFront, Build, Cards, ChatBubble, ChatFloat, ChatSidebar, Checked, CircleCheck, CircleCheckFilled, CircleCross, CircleCrossFilled, CircleInfo, CircleInfoFilled, CirclePause, CirclePlay, Clear, ClearInputFilled, Clock, ClockAlarm, ClockForward, Close, CollapseAll, CollapseAllHorizontal, ColorCoding, Columns, Columns2, Columns4, CommentBubble, Comments, Copy, CreditsFilled, Crosshair, Database, DatabaseAdd, DatabaseOutline, DateRange, Delete, DragBlockHandle, DragHandle, Duplicate, DynamicFilterValue, Email, EmojiDelete, EntityCreate, EntityCreateFilled, EntityMerge, Equation, ExpandAll, ExpandAllHorizontal, Export, Eye, EyeOff, Favorites, FavoritesFilled, FavoritesOff, FiberyMono, Fields, FileArchive, FileCounter, FileDocument, FileDownload, FileImage, FileMultiple, FileOther, FilePresentation, FileTable, FileUpload, FileVideo, Files, Filter, FitToScreen, FocusMode, FocusModeOff, Folder, FolderFavorite, FolderSmart, FormWithCover, FormWithoutCover, FullscreenModeOff, FullscreenModeOn, Gift, GlobeSimple, GlobeUnpublish, GoTo, GraduationCapFilled, GroupAdd, Headphones, HeadphonesAi, Highlights, Hint, Home, HomeFilled, ImageError, Import, ImportFilled, Integration, IntegrationAdd, IntegrationDiscourse, IntegrationFibery, IntegrationFigma, IntegrationGithub, IntegrationGitlab, IntegrationGoogleDrive, IntegrationGoogleMap, IntegrationIntercom, IntegrationJira, IntegrationLoom, IntegrationMiro, IntegrationMixpanel, IntegrationSlack, IntegrationSuggest, IntegrationTwitter, IntegrationUnsplash, IntegrationYoutube, IntegrationZendesk, IntegrationsFilled, Items, ItemsTimeline, Key, KeyboardHideDown, Lab, LayoutDouble, LayoutMultiple, LayoutSingle, Levels, Limits, LineDivider, LineJump, Link, LocationEdit, Lock, LockFilled, Logout, LoupeZoomIn, LoupeZoomOut, MapMode, Markdown, MenuCollapser, Mermaid, MessagePlus, Milestones, Minus, MirrorOff, MirrorOn, Monitor, More, MoreCompact, MoveDown, MoveLeft, MoveRight, MoveUp, NoBorder, NoFill, ObjChild, ObjM2M, ObjO2O, ObjParent, ObjSelf, OnSchedule, OpenInPanel, OpenLink, PageRegularMode, PageWideMode, PanelAdd, Pencil, People, PeopleAll, PeopleCheck, PeopleEdit, PeopleGroup, PeopleGroupRemove, PeopleInvite, PeopleRemove, PeopleRole, PeopleX, Photo, Pin, PinFilled, Preferences, PresentPlay, PresentStop, Print, PrivateItems, Propagate, Question, ReactionsAdd, ReadOnly, Redo, References, Refresh, Remove, ResetPassword, RicheditorBlockCallout, RicheditorBlockCode, RicheditorBlockEmbed, RicheditorBlockEntity, RicheditorBlockFile, RicheditorBlockH1, RicheditorBlockH2, RicheditorBlockH3, RicheditorBlockH4, RicheditorBlockMention, RicheditorBlockParagraph, RicheditorBlockQuote, RicheditorChecklistCreate, RicheditorImage, RicheditorImageAlignCenter, RicheditorImageAlignLeft, RicheditorImageAlignRight, RicheditorLinkedhighlightCreate, RicheditorListBullet, RicheditorListIndent, RicheditorListOrdered, RicheditorListUnindent, RicheditorMarkCode, RicheditorMarkEm, RicheditorMarkHighlight, RicheditorMarkStrike, RicheditorMarkStrong, RicheditorMarkTextBackgroundColor, RicheditorMarkUnderline, RicheditorTableCreate, RicheditorVideoUpload, Rows, Rule, Search, SearchAdd, SearchFilled, SearchRemove, SelfReferenceOff, SelfReferenceOn, SendBackward, SendToBack, Settings, SettingsFilled, Share, ShieldKeyhole, ShowAuthor, SimpleCompass, SlideMenu, SlideMenuFilled, Sort, SpaceAdd, SpaceApp, SpaceGenerate, SpaceMove, SpaceScratch, SpaceTemplate, Spinner, SwitchToText, SwitchToWidget, TableLayout, Templates, TemplatesFilled, Terminal, TextNoWrap, TextToolAlignBottom, TextToolAlignMiddle, TextToolAlignTop, TextWrap, Toc, TypeButton, TypeCheckbox, TypeDate, TypeEmail, TypeEmoji, TypeFormula, TypeLocation, TypeLookup, TypeMoney, TypeMultiSelect, TypeNumber, TypePercent, TypePhone, TypeRelation, TypeRichText, TypeSingleSelect, TypeText, Undo, UnitsAvatar, UnitsCollection, UnitsCounter, UnitsDate, UnitsField, UnitsFieldIconButton, UnitsInput, UnitsNormal, UnitsProgressBar, UnitsRichText, UnitsSnippet, Unlink, Unlock, UnlockFilled, UsbFlashDrive, ValueClear, ValueEdit, ViewAi, ViewApp, ViewBoard, ViewCalendar, ViewCanvas, ViewChart, ViewDashboard, ViewDetails, ViewDocument, ViewEmbed, ViewFeed, ViewForm, ViewGallery, ViewGantt, ViewList, ViewMap, ViewPage, ViewTable, ViewTimeline, Views, Warning, WarningTriangle, WarningTriangleFilled, Webhooks, Workflow };
@@ -73,8 +73,8 @@ import FocusMode from "./focus-mode.js";
73
73
  import FavoritesFilled from "./favorites-filled.js";
74
74
  import Favorites from "./favorites.js";
75
75
  import DragHandle from "./drag-handle.js";
76
- import AlertTriangle from "./alert-triangle.js";
77
76
  import CircleCheckFilled from "./circle-check-filled.js";
77
+ import WarningTriangleFilled from "./warning-triangle-filled.js";
78
78
  import Remove from "./remove.js";
79
79
  import ArrowCollapseVertical from "./arrow-collapse-vertical.js";
80
80
  import ReactionsAdd from "./reactions-add.js";
@@ -85,7 +85,6 @@ import LoupeZoomIn from "./loupe-zoom-in.js";
85
85
  import LoupeZoomOut from "./loupe-zoom-out.js";
86
86
  import Webhooks from "./webhooks.js";
87
87
  import Warning from "./warning.js";
88
- import WarningTriangleFilled from "./warning-triangle-filled.js";
89
88
  import Views from "./views.js";
90
89
  import ViewTimeline from "./view-timeline.js";
91
90
  import ViewTable from "./view-table.js";
@@ -198,7 +197,6 @@ import Print from "./print.js";
198
197
  import PresentStop from "./present-stop.js";
199
198
  import PresentPlay from "./present-play.js";
200
199
  import Preferences from "./preferences.js";
201
- import Plus from "./plus.js";
202
200
  import Photo from "./photo.js";
203
201
  import PeopleX from "./people-x.js";
204
202
  import PeopleRemove from "./people-remove.js";
@@ -289,7 +287,6 @@ import Filter from "./filter.js";
289
287
  import FileMultiple from "./file-multiple.js";
290
288
  import FileCounter from "./file-counter.js";
291
289
  import Fields from "./fields.js";
292
- import FieldUnitsLarge from "./field-units-large.js";
293
290
  import FiberyMono from "./fibery-mono.js";
294
291
  import FavoritesOff from "./favorites-off.js";
295
292
  import Eye from "./eye.js";
@@ -364,4 +361,4 @@ import ActivityLog from "./activity-log.js";
364
361
  import ActivityFilled from "./activity-filled.js";
365
362
  import AccessTemplate from "./access-template.js";
366
363
  import Abort from "./abort.js";
367
- export { Abort, AccessTemplate, Activity, ActivityFilled, ActivityLog, Add, AddAfter, AddBefore, AddCompact, AiAssistant, AiAssistantFilled, AiFiberyBuild, AlertTriangle, App, AppearanceAuto, AppearanceDark, AppearanceLight, Architect, ArrowBack, ArrowBarDown, ArrowBarLeft, ArrowBarRight, ArrowBarUp, ArrowCollapse, ArrowCollapseVertical, ArrowDown, ArrowForward, ArrowLeft, ArrowRight, ArrowSend, ArrowUp, ArrowUpCircle, ArrowsRightLeft, AskForInput, Asterisk, Atom, Avatar, Backlog, BellCircle, BellOff, BellRinging, BellX, BringForward, BringToFront, Build, Cards, ChatBubble, ChatFloat, ChatSidebar, Checked, CircleCheck, CircleCheckFilled, CircleCross, CircleCrossFilled, CircleInfo, CircleInfoFilled, CirclePause, CirclePlay, Clear, ClearInputFilled, Clock, ClockAlarm, ClockForward, Close, CollapseAll, CollapseAllHorizontal, ColorCoding, Columns, Columns2, Columns4, CommentBubble, Comments, Copy, CreditsFilled, Crosshair, Database, DatabaseAdd, DatabaseOutline, DateRange, Delete, DragBlockHandle, DragHandle, Duplicate, DynamicFilterValue, Email, EmojiDelete, EntityCreate, EntityCreateFilled, EntityMerge, Equation, ExpandAll, ExpandAllHorizontal, Export, Eye, EyeOff, Favorites, FavoritesFilled, FavoritesOff, FiberyMono, FieldUnitsLarge, Fields, FileArchive, FileCounter, FileDocument, FileDownload, FileImage, FileMultiple, FileOther, FilePresentation, FileTable, FileUpload, FileVideo, Files, Filter, FitToScreen, FocusMode, FocusModeOff, Folder, FolderFavorite, FolderSmart, FormWithCover, FormWithoutCover, FullscreenModeOff, FullscreenModeOn, Gift, GlobeSimple, GlobeUnpublish, GoTo, GraduationCapFilled, GroupAdd, Headphones, HeadphonesAi, Highlights, Hint, Home, HomeFilled, ImageError, Import, ImportFilled, Integration, IntegrationAdd, IntegrationDiscourse, IntegrationFibery, IntegrationFigma, IntegrationGithub, IntegrationGitlab, IntegrationGoogleDrive, IntegrationGoogleMap, IntegrationIntercom, IntegrationJira, IntegrationLoom, IntegrationMiro, IntegrationMixpanel, IntegrationSlack, IntegrationSuggest, IntegrationTwitter, IntegrationUnsplash, IntegrationYoutube, IntegrationZendesk, IntegrationsFilled, Items, ItemsTimeline, Key, KeyboardHideDown, Lab, LayoutDouble, LayoutMultiple, LayoutSingle, Levels, Limits, LineDivider, LineJump, Link, LocationEdit, Lock, LockFilled, Logout, LoupeZoomIn, LoupeZoomOut, MapMode, Markdown, MenuCollapser, Mermaid, MessagePlus, Milestones, Minus, MirrorOff, MirrorOn, Monitor, More, MoreCompact, MoveDown, MoveLeft, MoveRight, MoveUp, NoBorder, NoFill, ObjChild, ObjM2M, ObjO2O, ObjParent, ObjSelf, OnSchedule, OpenInPanel, OpenLink, PageRegularMode, PageWideMode, PanelAdd, Pencil, People, PeopleAll, PeopleCheck, PeopleEdit, PeopleGroup, PeopleGroupRemove, PeopleInvite, PeopleRemove, PeopleRole, PeopleX, Photo, Pin, PinFilled, Plus, Preferences, PresentPlay, PresentStop, Print, PrivateItems, Propagate, Question, ReactionsAdd, ReadOnly, Redo, References, Refresh, Remove, ResetPassword, RicheditorBlockCallout, RicheditorBlockCode, RicheditorBlockEmbed, RicheditorBlockEntity, RicheditorBlockFile, RicheditorBlockH1, RicheditorBlockH2, RicheditorBlockH3, RicheditorBlockH4, RicheditorBlockMention, RicheditorBlockParagraph, RicheditorBlockQuote, RicheditorChecklistCreate, RicheditorImage, RicheditorImageAlignCenter, RicheditorImageAlignLeft, RicheditorImageAlignRight, RicheditorLinkedhighlightCreate, RicheditorListBullet, RicheditorListIndent, RicheditorListOrdered, RicheditorListUnindent, RicheditorMarkCode, RicheditorMarkEm, RicheditorMarkHighlight, RicheditorMarkStrike, RicheditorMarkStrong, RicheditorMarkTextBackgroundColor, RicheditorMarkUnderline, RicheditorTableCreate, RicheditorVideoUpload, Rows, Rule, Search, SearchAdd, SearchFilled, SearchRemove, SelfReferenceOff, SelfReferenceOn, SendBackward, SendToBack, Settings, SettingsFilled, Share, ShieldKeyhole, ShowAuthor, SimpleCompass, SlideMenu, SlideMenuFilled, Sort, SpaceAdd, SpaceApp, SpaceGenerate, SpaceMove, SpaceScratch, SpaceTemplate, Spinner, SwitchToText, SwitchToWidget, TableLayout, Templates, TemplatesFilled, Terminal, TextNoWrap, TextToolAlignBottom, TextToolAlignMiddle, TextToolAlignTop, TextWrap, Toc, TypeButton, TypeCheckbox, TypeDate, TypeEmail, TypeEmoji, TypeFormula, TypeLocation, TypeLookup, TypeMoney, TypeMultiSelect, TypeNumber, TypePercent, TypePhone, TypeRelation, TypeRichText, TypeSingleSelect, TypeText, Undo, UnitsAvatar, UnitsCollection, UnitsCounter, UnitsDate, UnitsField, UnitsFieldIconButton, UnitsInput, UnitsNormal, UnitsProgressBar, UnitsRichText, UnitsSnippet, Unlink, Unlock, UnlockFilled, UsbFlashDrive, ValueClear, ValueEdit, ViewAi, ViewApp, ViewBoard, ViewCalendar, ViewCanvas, ViewChart, ViewDashboard, ViewDetails, ViewDocument, ViewEmbed, ViewFeed, ViewForm, ViewGallery, ViewGantt, ViewList, ViewMap, ViewPage, ViewTable, ViewTimeline, Views, Warning, WarningTriangle, WarningTriangleFilled, Webhooks, Workflow };
364
+ export { Abort, AccessTemplate, Activity, ActivityFilled, ActivityLog, Add, AddAfter, AddBefore, AddCompact, AiAssistant, AiAssistantFilled, AiFiberyBuild, App, AppearanceAuto, AppearanceDark, AppearanceLight, Architect, ArrowBack, ArrowBarDown, ArrowBarLeft, ArrowBarRight, ArrowBarUp, ArrowCollapse, ArrowCollapseVertical, ArrowDown, ArrowForward, ArrowLeft, ArrowRight, ArrowSend, ArrowUp, ArrowUpCircle, ArrowsRightLeft, AskForInput, Asterisk, Atom, Avatar, Backlog, BellCircle, BellOff, BellRinging, BellX, BringForward, BringToFront, Build, Cards, ChatBubble, ChatFloat, ChatSidebar, Checked, CircleCheck, CircleCheckFilled, CircleCross, CircleCrossFilled, CircleInfo, CircleInfoFilled, CirclePause, CirclePlay, Clear, ClearInputFilled, Clock, ClockAlarm, ClockForward, Close, CollapseAll, CollapseAllHorizontal, ColorCoding, Columns, Columns2, Columns4, CommentBubble, Comments, Copy, CreditsFilled, Crosshair, Database, DatabaseAdd, DatabaseOutline, DateRange, Delete, DragBlockHandle, DragHandle, Duplicate, DynamicFilterValue, Email, EmojiDelete, EntityCreate, EntityCreateFilled, EntityMerge, Equation, ExpandAll, ExpandAllHorizontal, Export, Eye, EyeOff, Favorites, FavoritesFilled, FavoritesOff, FiberyMono, Fields, FileArchive, FileCounter, FileDocument, FileDownload, FileImage, FileMultiple, FileOther, FilePresentation, FileTable, FileUpload, FileVideo, Files, Filter, FitToScreen, FocusMode, FocusModeOff, Folder, FolderFavorite, FolderSmart, FormWithCover, FormWithoutCover, FullscreenModeOff, FullscreenModeOn, Gift, GlobeSimple, GlobeUnpublish, GoTo, GraduationCapFilled, GroupAdd, Headphones, HeadphonesAi, Highlights, Hint, Home, HomeFilled, ImageError, Import, ImportFilled, Integration, IntegrationAdd, IntegrationDiscourse, IntegrationFibery, IntegrationFigma, IntegrationGithub, IntegrationGitlab, IntegrationGoogleDrive, IntegrationGoogleMap, IntegrationIntercom, IntegrationJira, IntegrationLoom, IntegrationMiro, IntegrationMixpanel, IntegrationSlack, IntegrationSuggest, IntegrationTwitter, IntegrationUnsplash, IntegrationYoutube, IntegrationZendesk, IntegrationsFilled, Items, ItemsTimeline, Key, KeyboardHideDown, Lab, LayoutDouble, LayoutMultiple, LayoutSingle, Levels, Limits, LineDivider, LineJump, Link, LocationEdit, Lock, LockFilled, Logout, LoupeZoomIn, LoupeZoomOut, MapMode, Markdown, MenuCollapser, Mermaid, MessagePlus, Milestones, Minus, MirrorOff, MirrorOn, Monitor, More, MoreCompact, MoveDown, MoveLeft, MoveRight, MoveUp, NoBorder, NoFill, ObjChild, ObjM2M, ObjO2O, ObjParent, ObjSelf, OnSchedule, OpenInPanel, OpenLink, PageRegularMode, PageWideMode, PanelAdd, Pencil, People, PeopleAll, PeopleCheck, PeopleEdit, PeopleGroup, PeopleGroupRemove, PeopleInvite, PeopleRemove, PeopleRole, PeopleX, Photo, Pin, PinFilled, Preferences, PresentPlay, PresentStop, Print, PrivateItems, Propagate, Question, ReactionsAdd, ReadOnly, Redo, References, Refresh, Remove, ResetPassword, RicheditorBlockCallout, RicheditorBlockCode, RicheditorBlockEmbed, RicheditorBlockEntity, RicheditorBlockFile, RicheditorBlockH1, RicheditorBlockH2, RicheditorBlockH3, RicheditorBlockH4, RicheditorBlockMention, RicheditorBlockParagraph, RicheditorBlockQuote, RicheditorChecklistCreate, RicheditorImage, RicheditorImageAlignCenter, RicheditorImageAlignLeft, RicheditorImageAlignRight, RicheditorLinkedhighlightCreate, RicheditorListBullet, RicheditorListIndent, RicheditorListOrdered, RicheditorListUnindent, RicheditorMarkCode, RicheditorMarkEm, RicheditorMarkHighlight, RicheditorMarkStrike, RicheditorMarkStrong, RicheditorMarkTextBackgroundColor, RicheditorMarkUnderline, RicheditorTableCreate, RicheditorVideoUpload, Rows, Rule, Search, SearchAdd, SearchFilled, SearchRemove, SelfReferenceOff, SelfReferenceOn, SendBackward, SendToBack, Settings, SettingsFilled, Share, ShieldKeyhole, ShowAuthor, SimpleCompass, SlideMenu, SlideMenuFilled, Sort, SpaceAdd, SpaceApp, SpaceGenerate, SpaceMove, SpaceScratch, SpaceTemplate, Spinner, SwitchToText, SwitchToWidget, TableLayout, Templates, TemplatesFilled, Terminal, TextNoWrap, TextToolAlignBottom, TextToolAlignMiddle, TextToolAlignTop, TextWrap, Toc, TypeButton, TypeCheckbox, TypeDate, TypeEmail, TypeEmoji, TypeFormula, TypeLocation, TypeLookup, TypeMoney, TypeMultiSelect, TypeNumber, TypePercent, TypePhone, TypeRelation, TypeRichText, TypeSingleSelect, TypeText, Undo, UnitsAvatar, UnitsCollection, UnitsCounter, UnitsDate, UnitsField, UnitsFieldIconButton, UnitsInput, UnitsNormal, UnitsProgressBar, UnitsRichText, UnitsSnippet, Unlink, Unlock, UnlockFilled, UsbFlashDrive, ValueClear, ValueEdit, ViewAi, ViewApp, ViewBoard, ViewCalendar, ViewCanvas, ViewChart, ViewDashboard, ViewDetails, ViewDocument, ViewEmbed, ViewFeed, ViewForm, ViewGallery, ViewGantt, ViewList, ViewMap, ViewPage, ViewTable, ViewTimeline, Views, Warning, WarningTriangle, WarningTriangleFilled, Webhooks, Workflow };
@@ -16,20 +16,7 @@ var Spinner = {
16
16
  "strokeWidth": 1.627,
17
17
  "d": "M3.34 10a6.66 6.66 0 0 1 13.32 0"
18
18
  },
19
- "children": [{
20
- "type": "element",
21
- "tagName": "animateTransform",
22
- "properties": {
23
- "attributeName": "transform",
24
- "attributeType": "xml",
25
- "dur": "0.5s",
26
- "from": "0 10 10",
27
- "repeatCount": "indefinite",
28
- "to": "360 10 10",
29
- "type": "rotate"
30
- },
31
- "children": []
32
- }]
19
+ "children": []
33
20
  }],
34
21
  "metadata": ""
35
22
  }]
package/lib/icons/icon.js CHANGED
@@ -22,9 +22,10 @@ var inheritColor = "ir5wii5-inheritColor";
22
22
  var Icon = forwardRef(function Icon({ icon, iconSize, containerSize, viewBox = viewBoxSize, children, style, color, colorProcessed, className, ...rest }, ref) {
23
23
  const theme = useTheme();
24
24
  let resolvedColor;
25
- if (typeof color === "string" && !colorProcessed && !color.startsWith("var(") && color !== "currentColor") if (icon === Database || icon === ObjSelf || icon === ObjO2O || icon === ObjChild || icon === ObjParent || icon === ObjM2M) resolvedColor = theme.fns.badge(color).bg;
26
- else resolvedColor = theme.fns.icon(color).fg;
27
- else resolvedColor = color;
25
+ if (typeof color === "string" && !colorProcessed && !color.startsWith("var(") && color !== "currentColor") {
26
+ if (icon === Database || icon === ObjSelf || icon === ObjO2O || icon === ObjChild || icon === ObjParent || icon === ObjM2M) resolvedColor = theme.fns.badge(color).bg;
27
+ else resolvedColor = theme.fns.icon(color).fg;
28
+ } else resolvedColor = color;
28
29
  const iconStyle = {
29
30
  [iconColorVar]: resolvedColor,
30
31
  [iconContainerSizeVar]: containerSize ? containerSize + "px" : void 0,