@fibery/ui-kit 3.0.0 → 4.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 (64) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/package.json +14 -8
  3. package/src/actions-menu/actions-menu-item.tsx +1 -0
  4. package/src/actions-menu/actions-menu.tsx +1 -3
  5. package/src/antd/ant-modal.tsx +156 -7
  6. package/src/antd/ant-upload.tsx +285 -27
  7. package/src/antd/auto-complete.tsx +145 -0
  8. package/src/antd/auto-width-transparent-textarea.tsx +9 -2
  9. package/src/antd/global-overrides.ts +352 -0
  10. package/src/antd/index.tsx +3 -2
  11. package/src/antd/input-number.tsx +97 -11
  12. package/src/antd/input.tsx +127 -8
  13. package/src/antd/styles.ts +90 -32
  14. package/src/antd/tabs.tsx +139 -27
  15. package/src/avatar.tsx +2 -56
  16. package/src/color-adjuster.ts +24 -1
  17. package/src/count-badge.tsx +10 -1
  18. package/src/date-picker/date-range-picker.tsx +6 -6
  19. package/src/date-picker/single-date-picker.tsx +2 -3
  20. package/src/date-picker/types.ts +1 -1
  21. package/src/date-picker/with-popup-control.tsx +3 -9
  22. package/src/design-system/colors-callout.warm-dark.test.ts +22 -22
  23. package/src/design-system/colors-callout.warm-light.test.ts +19 -19
  24. package/src/design-system/colors-css.ts +1 -1
  25. package/src/design-system/colors-enum.dark.warm.test.ts +63 -63
  26. package/src/design-system/colors-enum.light.warm.test.ts +54 -54
  27. package/src/design-system/colors-highlight.warm-dark.test.ts +21 -21
  28. package/src/design-system/colors-highlight.warm-light.test.ts +21 -21
  29. package/src/design-system/colors.ts +1 -1
  30. package/src/design-system/fns.badge.dark.warm.test.ts +34 -34
  31. package/src/design-system/fns.badge.light.warm.test.ts +31 -31
  32. package/src/design-system/fns.deneutralize.test.ts +44 -0
  33. package/src/design-system/fns.icon.dark.warm.test.ts +21 -21
  34. package/src/design-system/fns.icon.light.warm.test.ts +17 -17
  35. package/src/design-system/fns.icon.ts +21 -13
  36. package/src/design-system/fns.ts +27 -3
  37. package/src/design-system/typography.ts +1 -1
  38. package/src/design-system.ts +1 -1
  39. package/src/fibermoji-placeholder.tsx +2 -3
  40. package/src/icons/icon.tsx +11 -1
  41. package/src/icons/types.ts +1 -1
  42. package/src/layout-styles.ts +5 -1
  43. package/src/link-input/components/ant-text-area-with-custom-read-state.tsx +2 -1
  44. package/src/media-query-utils.ts +4 -13
  45. package/src/palettes/inspect.defs.colors.warm-arch.test.ts +137 -137
  46. package/src/palettes/inspect.defs.colors.warm-user.test.ts +137 -137
  47. package/src/palettes/warm.ts +2 -0
  48. package/src/root-theme-provider.test.tsx +1 -1
  49. package/src/select/index.tsx +3 -3
  50. package/src/select/select-in-popover.tsx +34 -51
  51. package/src/select/select.tsx +2 -2
  52. package/src/theme-provider.test.tsx +1 -1
  53. package/src/theme-provider.tsx +3 -9
  54. package/src/theme-snapshots.test.ts +9 -13
  55. package/src/{theming/build.ts → theming.build.ts} +6 -9
  56. package/src/{theming/theming-fibery.snapshot.css → theming.generated.css} +52 -52
  57. package/src/{theming/theming-fibery.snapshot.ts → theming.generated.ts} +52 -52
  58. package/src/{themed-ink.tsx → type-label.tsx} +2 -5
  59. package/src/antd/auto-complete.d.ts +0 -2
  60. package/src/antd/auto-complete.ts +0 -37
  61. package/src/antd/tabs.d.ts +0 -5
  62. package/src/theming/index.ts +0 -20
  63. package/src/theming/theming-vzdbery.snapshot.css +0 -2001
  64. package/src/theming/theming-vzdbery.snapshot.ts +0 -2519
@@ -11,16 +11,8 @@ import {Popover} from "../popover";
11
11
  import {useIsPhone} from "../use-is-phone";
12
12
  import {MenuTransparent} from "./components/menu";
13
13
  import {SELECT_IN_POPOVER_VALUE_MAX_HEIGHT} from "./constants";
14
- import type {
15
- ActionMeta,
16
- GroupBase,
17
- OnChangeValue,
18
- OptionsOrGroups,
19
- PropsValue,
20
- SelectProps,
21
- StylesConfig,
22
- } from "./select";
23
- import {combineStyles, SelectComponent as ReactSelect} from "./select";
14
+ import type {ActionMeta, GroupBase, OnChangeValue, SelectProps, StylesConfig} from "./select";
15
+ import {composeStyles, SelectComponent as ReactSelect} from "./select";
24
16
  import {SelectControlSettingsProvider} from "./select-control-settings-context";
25
17
  import {makeSelectInPopoverStyles} from "./styles";
26
18
 
@@ -66,16 +58,12 @@ export type SelectInPopoverRef<T, U extends boolean, V extends GroupBase<T>> = {
66
58
  };
67
59
 
68
60
  type Props<T, U extends boolean, V extends GroupBase<T>> = {
69
- value?: PropsValue<T>;
70
- isSearchable?: boolean;
71
61
  menuIsOpen?: boolean;
72
- options: OptionsOrGroups<T, V>;
73
62
  disabled?: boolean;
74
63
  isCollectionMode?: U;
75
64
  isClearable?: boolean;
76
65
  trigger?: ReactNode;
77
66
  title?: string;
78
- maxMenuHeight?: number;
79
67
  hideOnChange?: boolean | ((newValue: OnChangeValue<T, U>, actionMeta: ActionMeta<T>) => boolean);
80
68
  renderInPortal?: boolean;
81
69
  popupContainerClassName?: string;
@@ -89,6 +77,8 @@ type Props<T, U extends boolean, V extends GroupBase<T>> = {
89
77
  popoverPlacement?: Placement;
90
78
  } & Pick<
91
79
  SelectProps<T, U, V>,
80
+ | "value"
81
+ | "options"
92
82
  | "placeholder"
93
83
  | "autoFocus"
94
84
  | "inputValue"
@@ -104,16 +94,15 @@ type Props<T, U extends boolean, V extends GroupBase<T>> = {
104
94
  | "onChange"
105
95
  | "onFocus"
106
96
  | "components"
97
+ | "isSearchable"
107
98
  >;
108
99
 
109
100
  function SelectInPopoverInner<T, U extends boolean, V extends GroupBase<T>>(
110
- props: Omit<Props<T, U, V>, "maxMenuHeight">,
101
+ props: Props<T, U, V>,
111
102
  forwardedRef: ForwardedRef<SelectInPopoverRef<T, U, V>>
112
103
  ) {
113
104
  const {
114
- value,
115
105
  menuIsOpen,
116
- options,
117
106
  disabled,
118
107
  isCollectionMode,
119
108
  isClearable = true,
@@ -131,7 +120,6 @@ function SelectInPopoverInner<T, U extends boolean, V extends GroupBase<T>>(
131
120
  getPopupContainer,
132
121
  onSelectKeyDown,
133
122
  otherSelectProps,
134
- isSearchable = true,
135
123
  popoverPlacement = "bottom-start",
136
124
  ...rest
137
125
  } = props;
@@ -151,41 +139,42 @@ function SelectInPopoverInner<T, U extends boolean, V extends GroupBase<T>>(
151
139
  selectRef,
152
140
  }));
153
141
 
154
- const onHide = useCallback(() => {
155
- const wasClosed = onMenuClose?.();
156
- if (wasClosed === false) {
157
- return;
158
- }
159
- setVisible(false);
160
- }, [onMenuClose, setVisible]);
161
-
162
- const onShow = useCallback(() => {
163
- if (disabled) {
164
- return;
165
- }
166
-
167
- setVisible(true);
168
- if (onMenuOpen) {
169
- onMenuOpen();
170
- }
171
- }, [disabled, onMenuOpen, setVisible]);
142
+ const onOpenChange = useCallback(
143
+ (value: boolean) => {
144
+ if (value) {
145
+ if (disabled) {
146
+ return;
147
+ }
148
+ setVisible(true);
149
+ onMenuOpen?.();
150
+ } else {
151
+ const wasClosed = onMenuClose?.();
152
+ if (wasClosed === false) {
153
+ return;
154
+ }
155
+ setVisible(false);
156
+ }
157
+ },
158
+ [disabled, onMenuOpen, setVisible, onMenuClose]
159
+ );
172
160
 
173
- const styles = useMemo(() => {
174
- return combineStyles<T, U, V>([makeSelectInPopoverStyles(isPhone), selectStyles]);
175
- }, [selectStyles, isPhone]);
161
+ const composedStyles = useMemo(
162
+ () => composeStyles<T, U, V>([makeSelectInPopoverStyles(isPhone), selectStyles]),
163
+ [selectStyles, isPhone]
164
+ );
176
165
 
177
166
  const handleChange = useCallback(
178
167
  (newValue: OnChangeValue<T, U>, actionMeta: ActionMeta<T>) => {
179
168
  if (typeof hideOnChange === "function") {
180
169
  if (hideOnChange(newValue, actionMeta)) {
181
- onHide();
170
+ onOpenChange(false);
182
171
  }
183
172
  } else if (hideOnChange) {
184
- onHide();
173
+ onOpenChange(false);
185
174
  }
186
175
  onChange?.(newValue, actionMeta);
187
176
  },
188
- [hideOnChange, onChange, onHide]
177
+ [hideOnChange, onChange, onOpenChange]
189
178
  );
190
179
 
191
180
  const paddingPopup = popupPaddingTop + popupPaddingBottom;
@@ -206,7 +195,7 @@ function SelectInPopoverInner<T, U extends boolean, V extends GroupBase<T>>(
206
195
  };
207
196
 
208
197
  return (
209
- <Popover.Root open={visible} onOpen={() => onShow()} onClose={() => onHide()}>
198
+ <Popover.Root open={visible} onOpenChange={onOpenChange}>
210
199
  <Popover.Trigger ref={setTriggerElement} asChild triggerEvent="click">
211
200
  {trigger}
212
201
  </Popover.Trigger>
@@ -228,21 +217,15 @@ function SelectInPopoverInner<T, U extends boolean, V extends GroupBase<T>>(
228
217
  <ReactSelect<T, U, V>
229
218
  {...rest}
230
219
  ref={selectRef}
231
- styles={styles}
232
- isSearchable={isSearchable}
220
+ styles={composedStyles}
233
221
  onKeyDown={onSelectKeyDown}
234
- value={value}
235
- controlShouldRenderValue
236
- closeMenuOnScroll={false}
237
222
  closeMenuOnSelect={false}
238
223
  onChange={handleChange}
239
- options={options || []}
240
224
  menuIsOpen
241
225
  maxMenuHeight={maxMenuHeight}
242
226
  disabled={disabled}
243
227
  isCollectionMode={isCollectionMode}
244
228
  isClearable={!isCollectionMode && isClearable}
245
- menuShouldBlockScroll={false}
246
229
  {...otherSelectProps}
247
230
  components={selectComponents}
248
231
  inline
@@ -255,7 +238,7 @@ function SelectInPopoverInner<T, U extends boolean, V extends GroupBase<T>>(
255
238
  }
256
239
 
257
240
  type SelectInPopoverType = <T, U extends boolean, V extends GroupBase<T>>(
258
- props: Omit<Props<T, U, V>, "maxMenuHeight"> & {ref?: ForwardedRef<SelectInPopoverRef<T, U, V>>}
241
+ props: Props<T, U, V> & {ref?: ForwardedRef<SelectInPopoverRef<T, U, V>>}
259
242
  ) => ReturnType<typeof SelectInPopoverInner>;
260
243
 
261
244
  export const SelectInPopover = forwardRef(SelectInPopoverInner) as SelectInPopoverType;
@@ -62,7 +62,7 @@ function GroupVirtualized() {
62
62
  return null;
63
63
  }
64
64
 
65
- export function combineStyles<T, U extends boolean, V extends GroupBase<T>>(styles: StylesConfig<T, U, V>[]) {
65
+ export function composeStyles<T, U extends boolean, V extends GroupBase<T>>(styles: StylesConfig<T, U, V>[]) {
66
66
  return styles.reduce(mergeStyles, {});
67
67
  }
68
68
 
@@ -127,7 +127,7 @@ function useSelectStyles<T, U extends boolean, V extends GroupBase<T>>({
127
127
  styles?: SelectProps<T, U, V>["styles"];
128
128
  }) {
129
129
  return useMemo(() => {
130
- return combineStyles<T, U, V>(
130
+ return composeStyles<T, U, V>(
131
131
  compact([
132
132
  makeComponentsStyles<T, U, V>(),
133
133
  virtualized ? makeVirtualizedStyles<T, U, V>() : makeNonVirtualizedStyles<T, U, V>(),
@@ -11,7 +11,7 @@ import {
11
11
  useThemeStyles,
12
12
  } from "./theme-provider";
13
13
  import {locateThemeBundle} from "./theme-styles";
14
- import {neutralStyles, prefix as themePrefix} from "./theming";
14
+ import {neutralStyles, prefix as themePrefix} from "./theming.generated";
15
15
 
16
16
  const {
17
17
  palette,
@@ -3,6 +3,7 @@ import invariant from "invariant";
3
3
  import type {PropsWithChildren, ReactNode} from "react";
4
4
  import {createContext, forwardRef, useContext, useEffect, useLayoutEffect, useMemo, useState} from "react";
5
5
 
6
+ import {globalOverrides} from "./antd/global-overrides";
6
7
  import type {Styles, Theme} from "./design-system/theme";
7
8
  import {stylesFromTheme, themeFromPalette} from "./design-system/theme";
8
9
  import type {ThemePalette} from "./design-system/types";
@@ -11,7 +12,7 @@ import {selectPalette} from "./palette-generator";
11
12
  import type {ThemeMode, ThemePreference} from "./theme-settings";
12
13
  import {subscribeOnThemeModeChange, subscribeOnThemePreferenceChange, useWarmPreference} from "./theme-settings";
13
14
  import {locateThemeBundle} from "./theme-styles";
14
- import {neutralStyles, prefix as themePrefix, warmStyles} from "./theming";
15
+ import {neutralStyles, prefix as themePrefix, warmStyles} from "./theming.generated";
15
16
 
16
17
  const darkClassName = "dark-theme";
17
18
  const warmClassName = "warm-palette";
@@ -50,6 +51,7 @@ function chooseGlobalStyles(themeMode: ThemeMode, warm: boolean) {
50
51
  colorSchemeMeta?.setAttribute("content", colorScheme);
51
52
 
52
53
  htmlElement.classList.add(globals);
54
+ htmlElement.classList.add(globalOverrides);
53
55
  }
54
56
 
55
57
  const ThemePreferenceContext = createContext<ThemePreference | null>(null);
@@ -76,14 +78,6 @@ export function useThemeMode(): ThemeMode {
76
78
  return theme.mode;
77
79
  }
78
80
 
79
- /** @deprecated Use `useThemedColor` instead */
80
- export const useNeutralColor = useThemedColor;
81
-
82
- export function useThemedColor(color: string) {
83
- const theme = useTheme();
84
- return theme.fns.deneutralize(color);
85
- }
86
-
87
81
  const RootThemeStylesContext = createContext<Styles>(coolLightThemeStyles);
88
82
  const ThemeStylesContext = createContext<Styles>(coolLightThemeStyles);
89
83
 
@@ -1,9 +1,7 @@
1
1
  import {format, type FormatConfig} from "oxfmt";
2
2
 
3
3
  import oxfmtConfig from "../../../.oxfmtrc.json" with {type: "json"};
4
- import {buildThemingSnapshot} from "./theming/build";
5
-
6
- const PREFIXES = ["fibery", "vzdbery"] as const;
4
+ import {buildThemingSnapshot} from "./theming.build";
7
5
 
8
6
  async function renderTs(prefix: string): Promise<string> {
9
7
  const s = buildThemingSnapshot(prefix);
@@ -49,14 +47,12 @@ async function renderCss(prefix: string): Promise<string> {
49
47
  return code;
50
48
  }
51
49
 
52
- for (const prefix of PREFIXES) {
53
- test(`theming-${prefix}.snapshot.ts`, async () => {
54
- const source = await renderTs(prefix);
55
- await expect(source).toMatchFileSnapshot(`./theming/theming-${prefix}.snapshot.ts`);
56
- });
50
+ test(`theming-fibery.generated.ts`, async () => {
51
+ const source = await renderTs("fibery");
52
+ await expect(source).toMatchFileSnapshot(`./theming.generated.ts`);
53
+ });
57
54
 
58
- test(`theming-${prefix}.snapshot.css`, async () => {
59
- const source = await renderCss(prefix);
60
- await expect(source).toMatchFileSnapshot(`./theming/theming-${prefix}.snapshot.css`);
61
- });
62
- }
55
+ test(`theming-fibery.generated.css`, async () => {
56
+ const source = await renderCss("fibery");
57
+ await expect(source).toMatchFileSnapshot(`./theming.generated.css`);
58
+ });
@@ -1,13 +1,10 @@
1
- // Builder for prefix-baked theming snapshots. Internal to ui-kit;
2
- // not re-exported through ./theming/index.ts. The snapshot test in
3
- // theme-snapshots.test.ts is the only intended caller — it freezes
4
- // the output into theming-<prefix>.snapshot.{ts,css} files.
1
+ // Builder for prefix-baked theming snapshots. Internal to ui-kit.
5
2
 
6
- import type {Theme} from "../design-system/theme";
7
- import {stylesFromTheme} from "../design-system/theme";
8
- import type {LayoutVarNames, LayoutVars, ThemeVars} from "../design-system/vars";
9
- import {layoutVarNamesFromPrefix, layoutVarsFromPrefix, varsFromTheme} from "../design-system/vars";
10
- import {locateThemeBundle} from "../theme-styles";
3
+ import type {Theme} from "./design-system/theme";
4
+ import {stylesFromTheme} from "./design-system/theme";
5
+ import type {LayoutVarNames, LayoutVars, ThemeVars} from "./design-system/vars";
6
+ import {layoutVarNamesFromPrefix, layoutVarsFromPrefix, varsFromTheme} from "./design-system/vars";
7
+ import {locateThemeBundle} from "./theme-styles";
11
8
 
12
9
  export type ThemingSnapshot = LayoutVarNames & {
13
10
  prefix: string;
@@ -1016,30 +1016,30 @@
1016
1016
  --fibery-color-shadowPopup:
1017
1017
  0 0 2px 0 rgba(99, 94, 87, 0.3), 0 4px 6px 0 rgba(99, 94, 87, 0.05), 0 10px 26px 0 rgba(99, 94, 87, 0.15);
1018
1018
  --fibery-color-shadowSidebar: -3px 0 10px 0 rgba(125, 119, 112, 0.1);
1019
- --fibery-color-highlightBgYellow: rgb(253, 234, 192);
1020
- --fibery-color-highlightFgYellow: rgb(155, 129, 49);
1021
- --fibery-color-highlightFgOnBgYellow: rgb(126, 104, 40);
1022
- --fibery-color-highlightBgGreen: rgb(218, 244, 203);
1023
- --fibery-color-highlightFgGreen: rgb(94, 142, 43);
1024
- --fibery-color-highlightFgOnBgGreen: rgb(78, 118, 36);
1025
- --fibery-color-highlightBgAquamarine: rgb(198, 246, 220);
1026
- --fibery-color-highlightFgAquamarine: rgb(66, 144, 100);
1027
- --fibery-color-highlightFgOnBgAquamarine: rgb(54, 118, 82);
1028
- --fibery-color-highlightBgAqua: rgb(188, 247, 236);
1029
- --fibery-color-highlightFgAqua: rgb(61, 143, 123);
1030
- --fibery-color-highlightFgOnBgAqua: rgb(50, 118, 102);
1031
- --fibery-color-highlightBgBlue: rgb(224, 237, 254);
1032
- --fibery-color-highlightFgBlue: rgb(79, 129, 210);
1033
- --fibery-color-highlightFgOnBgBlue: rgb(65, 106, 172);
1019
+ --fibery-color-highlightBgYellow: rgb(254, 234, 191);
1020
+ --fibery-color-highlightFgYellow: rgb(156, 125, 38);
1021
+ --fibery-color-highlightFgOnBgYellow: rgb(130, 104, 30);
1022
+ --fibery-color-highlightBgGreen: rgb(218, 245, 202);
1023
+ --fibery-color-highlightFgGreen: rgb(93, 143, 39);
1024
+ --fibery-color-highlightFgOnBgGreen: rgb(76, 119, 31);
1025
+ --fibery-color-highlightBgAquamarine: rgb(196, 247, 221);
1026
+ --fibery-color-highlightFgAquamarine: rgb(55, 145, 100);
1027
+ --fibery-color-highlightFgOnBgAquamarine: rgb(43, 120, 82);
1028
+ --fibery-color-highlightBgAqua: rgb(186, 248, 238);
1029
+ --fibery-color-highlightFgAqua: rgb(46, 144, 127);
1030
+ --fibery-color-highlightFgOnBgAqua: rgb(36, 119, 105);
1031
+ --fibery-color-highlightBgBlue: rgb(223, 237, 255);
1032
+ --fibery-color-highlightFgBlue: rgb(76, 129, 213);
1033
+ --fibery-color-highlightFgOnBgBlue: rgb(60, 107, 177);
1034
1034
  --fibery-color-highlightBgPurple: rgb(244, 231, 255);
1035
1035
  --fibery-color-highlightFgPurple: rgb(176, 89, 226);
1036
1036
  --fibery-color-highlightFgOnBgPurple: rgb(151, 63, 199);
1037
- --fibery-color-highlightBgPink: rgb(254, 229, 242);
1037
+ --fibery-color-highlightBgPink: rgb(255, 229, 242);
1038
1038
  --fibery-color-highlightFgPink: rgb(212, 73, 166);
1039
1039
  --fibery-color-highlightFgOnBgPink: rgb(178, 56, 139);
1040
- --fibery-color-highlightBgRed: rgb(252, 231, 229);
1040
+ --fibery-color-highlightBgRed: rgb(254, 230, 227);
1041
1041
  --fibery-color-highlightFgRed: rgb(227, 70, 74);
1042
- --fibery-color-highlightFgOnBgRed: rgb(193, 51, 56);
1042
+ --fibery-color-highlightFgOnBgRed: rgb(191, 50, 55);
1043
1043
  --fibery-color-highlightBgGrey: rgb(236, 235, 235);
1044
1044
  --fibery-color-highlightFgGrey: rgb(135, 128, 128);
1045
1045
  --fibery-color-highlightFgOnBgGrey: rgb(111, 105, 104);
@@ -1219,11 +1219,11 @@
1219
1219
  --fibery-color-allowedDropColor: rgb(243, 236, 229);
1220
1220
  --fibery-color-relationViewBgColor: rgb(253, 246, 239);
1221
1221
  --fibery-color-mySpaceIconColor: rgb(129, 133, 137);
1222
- --fibery-color-mySpaceIconBg: rgba(122, 133, 148, 0.2);
1223
- --fibery-color-privateIconColor: rgb(120, 166, 105);
1224
- --fibery-color-privateIconBg: rgba(120, 166, 105, 0.2);
1225
- --fibery-color-favoritesIconColor: rgb(232, 171, 73);
1226
- --fibery-color-favoritesIconBg: rgba(232, 171, 73, 0.2);
1222
+ --fibery-color-mySpaceIconBg: rgba(112, 132, 153, 0.2);
1223
+ --fibery-color-privateIconColor: rgb(116, 168, 101);
1224
+ --fibery-color-privateIconBg: rgba(116, 168, 101, 0.2);
1225
+ --fibery-color-favoritesIconColor: rgb(235, 169, 68);
1226
+ --fibery-color-favoritesIconBg: rgba(235, 169, 68, 0.2);
1227
1227
  --fibery-color-swatchDefault: #1fbed3;
1228
1228
  --fibery-color-unitBg: rgb(250, 244, 236);
1229
1229
  --fibery-color-unitBgHover: rgb(243, 236, 229);
@@ -1515,30 +1515,30 @@
1515
1515
  --fibery-color-shadowPopup:
1516
1516
  0 0 0 1px rgb(55, 50, 48), 0 4px 6px 0 rgba(26, 22, 20, 0.05), 0 10px 26px 0 rgba(26, 22, 20, 0.15);
1517
1517
  --fibery-color-shadowSidebar: -3px 0 10px 0 rgba(26, 22, 20, 0.8);
1518
- --fibery-color-highlightBgYellow: rgb(77, 66, 35);
1519
- --fibery-color-highlightFgYellow: rgb(211, 185, 113);
1520
- --fibery-color-highlightFgOnBgYellow: rgb(231, 202, 125);
1521
- --fibery-color-highlightBgGreen: rgb(56, 70, 44);
1522
- --fibery-color-highlightFgGreen: rgb(163, 198, 135);
1523
- --fibery-color-highlightFgOnBgGreen: rgb(178, 214, 149);
1524
- --fibery-color-highlightBgAquamarine: rgb(42, 72, 54);
1525
- --fibery-color-highlightFgAquamarine: rgb(133, 202, 160);
1526
- --fibery-color-highlightFgOnBgAquamarine: rgb(145, 220, 175);
1527
- --fibery-color-highlightBgAqua: rgb(33, 72, 63);
1528
- --fibery-color-highlightFgAqua: rgb(111, 204, 180);
1529
- --fibery-color-highlightFgOnBgAqua: rgb(120, 221, 197);
1530
- --fibery-color-highlightBgBlue: rgb(53, 66, 85);
1531
- --fibery-color-highlightFgBlue: rgb(160, 189, 235);
1532
- --fibery-color-highlightFgOnBgBlue: rgb(182, 205, 239);
1533
- --fibery-color-highlightBgPurple: rgb(74, 60, 85);
1534
- --fibery-color-highlightFgPurple: rgb(210, 175, 234);
1535
- --fibery-color-highlightFgOnBgPurple: rgb(224, 191, 247);
1536
- --fibery-color-highlightBgPink: rgb(83, 58, 72);
1537
- --fibery-color-highlightFgPink: rgb(231, 170, 205);
1538
- --fibery-color-highlightFgOnBgPink: rgb(244, 187, 220);
1539
- --fibery-color-highlightBgRed: rgb(87, 58, 56);
1540
- --fibery-color-highlightFgRed: rgb(231, 174, 169);
1541
- --fibery-color-highlightFgOnBgRed: rgb(238, 193, 189);
1518
+ --fibery-color-highlightBgYellow: rgb(78, 64, 26);
1519
+ --fibery-color-highlightFgYellow: rgb(215, 184, 106);
1520
+ --fibery-color-highlightFgOnBgYellow: rgb(232, 200, 119);
1521
+ --fibery-color-highlightBgGreen: rgb(53, 71, 39);
1522
+ --fibery-color-highlightFgGreen: rgb(160, 199, 130);
1523
+ --fibery-color-highlightFgOnBgGreen: rgb(175, 216, 146);
1524
+ --fibery-color-highlightBgAquamarine: rgb(41, 80, 60);
1525
+ --fibery-color-highlightFgAquamarine: rgb(124, 205, 160);
1526
+ --fibery-color-highlightFgOnBgAquamarine: rgb(140, 225, 180);
1527
+ --fibery-color-highlightBgAqua: rgb(18, 73, 64);
1528
+ --fibery-color-highlightFgAqua: rgb(98, 205, 183);
1529
+ --fibery-color-highlightFgOnBgAqua: rgb(112, 222, 200);
1530
+ --fibery-color-highlightBgBlue: rgb(47, 66, 94);
1531
+ --fibery-color-highlightFgBlue: rgb(152, 189, 243);
1532
+ --fibery-color-highlightFgOnBgBlue: rgb(175, 206, 248);
1533
+ --fibery-color-highlightBgPurple: rgb(77, 58, 89);
1534
+ --fibery-color-highlightFgPurple: rgb(211, 172, 239);
1535
+ --fibery-color-highlightFgOnBgPurple: rgb(224, 190, 250);
1536
+ --fibery-color-highlightBgPink: rgb(88, 55, 75);
1537
+ --fibery-color-highlightFgPink: rgb(237, 167, 207);
1538
+ --fibery-color-highlightFgOnBgPink: rgb(249, 184, 221);
1539
+ --fibery-color-highlightBgRed: rgb(93, 55, 53);
1540
+ --fibery-color-highlightFgRed: rgb(240, 170, 164);
1541
+ --fibery-color-highlightFgOnBgRed: rgb(246, 190, 185);
1542
1542
  --fibery-color-highlightBgGrey: rgb(70, 64, 64);
1543
1543
  --fibery-color-highlightFgGrey: rgb(193, 186, 186);
1544
1544
  --fibery-color-highlightFgOnBgGrey: rgb(208, 202, 202);
@@ -1718,11 +1718,11 @@
1718
1718
  --fibery-color-allowedDropColor: rgb(45, 40, 38);
1719
1719
  --fibery-color-relationViewBgColor: rgb(39, 35, 33);
1720
1720
  --fibery-color-mySpaceIconColor: rgb(129, 133, 137);
1721
- --fibery-color-mySpaceIconBg: rgba(122, 133, 148, 0.2);
1722
- --fibery-color-privateIconColor: rgb(120, 166, 105);
1723
- --fibery-color-privateIconBg: rgba(120, 166, 105, 0.2);
1724
- --fibery-color-favoritesIconColor: rgb(232, 171, 73);
1725
- --fibery-color-favoritesIconBg: rgba(232, 171, 73, 0.2);
1721
+ --fibery-color-mySpaceIconBg: rgba(112, 132, 153, 0.2);
1722
+ --fibery-color-privateIconColor: rgb(116, 168, 101);
1723
+ --fibery-color-privateIconBg: rgba(116, 168, 101, 0.2);
1724
+ --fibery-color-favoritesIconColor: rgb(235, 169, 68);
1725
+ --fibery-color-favoritesIconBg: rgba(235, 169, 68, 0.2);
1726
1726
  --fibery-color-swatchDefault: #1fbed3;
1727
1727
  --fibery-color-unitBg: rgb(55, 50, 48);
1728
1728
  --fibery-color-unitBgHover: rgb(65, 60, 58);
@@ -1529,30 +1529,30 @@ export const warmStyles = {
1529
1529
  "--fibery-color-shadowPopup":
1530
1530
  "0 0 2px 0 rgba(99, 94, 87, 0.3), 0 4px 6px 0 rgba(99, 94, 87, 0.05), 0 10px 26px 0 rgba(99, 94, 87, 0.15)",
1531
1531
  "--fibery-color-shadowSidebar": "-3px 0 10px 0 rgba(125, 119, 112, 0.1)",
1532
- "--fibery-color-highlightBgYellow": "rgb(253, 234, 192)",
1533
- "--fibery-color-highlightFgYellow": "rgb(155, 129, 49)",
1534
- "--fibery-color-highlightFgOnBgYellow": "rgb(126, 104, 40)",
1535
- "--fibery-color-highlightBgGreen": "rgb(218, 244, 203)",
1536
- "--fibery-color-highlightFgGreen": "rgb(94, 142, 43)",
1537
- "--fibery-color-highlightFgOnBgGreen": "rgb(78, 118, 36)",
1538
- "--fibery-color-highlightBgAquamarine": "rgb(198, 246, 220)",
1539
- "--fibery-color-highlightFgAquamarine": "rgb(66, 144, 100)",
1540
- "--fibery-color-highlightFgOnBgAquamarine": "rgb(54, 118, 82)",
1541
- "--fibery-color-highlightBgAqua": "rgb(188, 247, 236)",
1542
- "--fibery-color-highlightFgAqua": "rgb(61, 143, 123)",
1543
- "--fibery-color-highlightFgOnBgAqua": "rgb(50, 118, 102)",
1544
- "--fibery-color-highlightBgBlue": "rgb(224, 237, 254)",
1545
- "--fibery-color-highlightFgBlue": "rgb(79, 129, 210)",
1546
- "--fibery-color-highlightFgOnBgBlue": "rgb(65, 106, 172)",
1532
+ "--fibery-color-highlightBgYellow": "rgb(254, 234, 191)",
1533
+ "--fibery-color-highlightFgYellow": "rgb(156, 125, 38)",
1534
+ "--fibery-color-highlightFgOnBgYellow": "rgb(130, 104, 30)",
1535
+ "--fibery-color-highlightBgGreen": "rgb(218, 245, 202)",
1536
+ "--fibery-color-highlightFgGreen": "rgb(93, 143, 39)",
1537
+ "--fibery-color-highlightFgOnBgGreen": "rgb(76, 119, 31)",
1538
+ "--fibery-color-highlightBgAquamarine": "rgb(196, 247, 221)",
1539
+ "--fibery-color-highlightFgAquamarine": "rgb(55, 145, 100)",
1540
+ "--fibery-color-highlightFgOnBgAquamarine": "rgb(43, 120, 82)",
1541
+ "--fibery-color-highlightBgAqua": "rgb(186, 248, 238)",
1542
+ "--fibery-color-highlightFgAqua": "rgb(46, 144, 127)",
1543
+ "--fibery-color-highlightFgOnBgAqua": "rgb(36, 119, 105)",
1544
+ "--fibery-color-highlightBgBlue": "rgb(223, 237, 255)",
1545
+ "--fibery-color-highlightFgBlue": "rgb(76, 129, 213)",
1546
+ "--fibery-color-highlightFgOnBgBlue": "rgb(60, 107, 177)",
1547
1547
  "--fibery-color-highlightBgPurple": "rgb(244, 231, 255)",
1548
1548
  "--fibery-color-highlightFgPurple": "rgb(176, 89, 226)",
1549
1549
  "--fibery-color-highlightFgOnBgPurple": "rgb(151, 63, 199)",
1550
- "--fibery-color-highlightBgPink": "rgb(254, 229, 242)",
1550
+ "--fibery-color-highlightBgPink": "rgb(255, 229, 242)",
1551
1551
  "--fibery-color-highlightFgPink": "rgb(212, 73, 166)",
1552
1552
  "--fibery-color-highlightFgOnBgPink": "rgb(178, 56, 139)",
1553
- "--fibery-color-highlightBgRed": "rgb(252, 231, 229)",
1553
+ "--fibery-color-highlightBgRed": "rgb(254, 230, 227)",
1554
1554
  "--fibery-color-highlightFgRed": "rgb(227, 70, 74)",
1555
- "--fibery-color-highlightFgOnBgRed": "rgb(193, 51, 56)",
1555
+ "--fibery-color-highlightFgOnBgRed": "rgb(191, 50, 55)",
1556
1556
  "--fibery-color-highlightBgGrey": "rgb(236, 235, 235)",
1557
1557
  "--fibery-color-highlightFgGrey": "rgb(135, 128, 128)",
1558
1558
  "--fibery-color-highlightFgOnBgGrey": "rgb(111, 105, 104)",
@@ -1737,11 +1737,11 @@ export const warmStyles = {
1737
1737
  "--fibery-color-allowedDropColor": "rgb(243,236,229)",
1738
1738
  "--fibery-color-relationViewBgColor": "rgb(253,246,239)",
1739
1739
  "--fibery-color-mySpaceIconColor": "rgb(129, 133, 137)",
1740
- "--fibery-color-mySpaceIconBg": "rgba(122, 133, 148, 0.2)",
1741
- "--fibery-color-privateIconColor": "rgb(120, 166, 105)",
1742
- "--fibery-color-privateIconBg": "rgba(120, 166, 105, 0.2)",
1743
- "--fibery-color-favoritesIconColor": "rgb(232, 171, 73)",
1744
- "--fibery-color-favoritesIconBg": "rgba(232, 171, 73, 0.2)",
1740
+ "--fibery-color-mySpaceIconBg": "rgba(112, 132, 153, 0.2)",
1741
+ "--fibery-color-privateIconColor": "rgb(116, 168, 101)",
1742
+ "--fibery-color-privateIconBg": "rgba(116, 168, 101, 0.2)",
1743
+ "--fibery-color-favoritesIconColor": "rgb(235, 169, 68)",
1744
+ "--fibery-color-favoritesIconBg": "rgba(235, 169, 68, 0.2)",
1745
1745
  "--fibery-color-swatchDefault": "#1FBED3",
1746
1746
  "--fibery-color-unitBg": "rgb(250,244,236)",
1747
1747
  "--fibery-color-unitBgHover": "rgb(243,236,229)",
@@ -2033,30 +2033,30 @@ export const warmStyles = {
2033
2033
  "--fibery-color-shadowPopup":
2034
2034
  "0 0 0 1px rgb(55,50,48), 0 4px 6px 0 rgba(26, 22, 20, 0.05), 0 10px 26px 0 rgba(26, 22, 20, 0.15)",
2035
2035
  "--fibery-color-shadowSidebar": "-3px 0 10px 0 rgba(26, 22, 20, 0.8)",
2036
- "--fibery-color-highlightBgYellow": "rgb(77, 66, 35)",
2037
- "--fibery-color-highlightFgYellow": "rgb(211, 185, 113)",
2038
- "--fibery-color-highlightFgOnBgYellow": "rgb(231, 202, 125)",
2039
- "--fibery-color-highlightBgGreen": "rgb(56, 70, 44)",
2040
- "--fibery-color-highlightFgGreen": "rgb(163, 198, 135)",
2041
- "--fibery-color-highlightFgOnBgGreen": "rgb(178, 214, 149)",
2042
- "--fibery-color-highlightBgAquamarine": "rgb(42, 72, 54)",
2043
- "--fibery-color-highlightFgAquamarine": "rgb(133, 202, 160)",
2044
- "--fibery-color-highlightFgOnBgAquamarine": "rgb(145, 220, 175)",
2045
- "--fibery-color-highlightBgAqua": "rgb(33, 72, 63)",
2046
- "--fibery-color-highlightFgAqua": "rgb(111, 204, 180)",
2047
- "--fibery-color-highlightFgOnBgAqua": "rgb(120, 221, 197)",
2048
- "--fibery-color-highlightBgBlue": "rgb(53, 66, 85)",
2049
- "--fibery-color-highlightFgBlue": "rgb(160, 189, 235)",
2050
- "--fibery-color-highlightFgOnBgBlue": "rgb(182, 205, 239)",
2051
- "--fibery-color-highlightBgPurple": "rgb(74, 60, 85)",
2052
- "--fibery-color-highlightFgPurple": "rgb(210, 175, 234)",
2053
- "--fibery-color-highlightFgOnBgPurple": "rgb(224, 191, 247)",
2054
- "--fibery-color-highlightBgPink": "rgb(83, 58, 72)",
2055
- "--fibery-color-highlightFgPink": "rgb(231, 170, 205)",
2056
- "--fibery-color-highlightFgOnBgPink": "rgb(244, 187, 220)",
2057
- "--fibery-color-highlightBgRed": "rgb(87, 58, 56)",
2058
- "--fibery-color-highlightFgRed": "rgb(231, 174, 169)",
2059
- "--fibery-color-highlightFgOnBgRed": "rgb(238, 193, 189)",
2036
+ "--fibery-color-highlightBgYellow": "rgb(78, 64, 26)",
2037
+ "--fibery-color-highlightFgYellow": "rgb(215, 184, 106)",
2038
+ "--fibery-color-highlightFgOnBgYellow": "rgb(232, 200, 119)",
2039
+ "--fibery-color-highlightBgGreen": "rgb(53, 71, 39)",
2040
+ "--fibery-color-highlightFgGreen": "rgb(160, 199, 130)",
2041
+ "--fibery-color-highlightFgOnBgGreen": "rgb(175, 216, 146)",
2042
+ "--fibery-color-highlightBgAquamarine": "rgb(41, 80, 60)",
2043
+ "--fibery-color-highlightFgAquamarine": "rgb(124, 205, 160)",
2044
+ "--fibery-color-highlightFgOnBgAquamarine": "rgb(140, 225, 180)",
2045
+ "--fibery-color-highlightBgAqua": "rgb(18, 73, 64)",
2046
+ "--fibery-color-highlightFgAqua": "rgb(98, 205, 183)",
2047
+ "--fibery-color-highlightFgOnBgAqua": "rgb(112, 222, 200)",
2048
+ "--fibery-color-highlightBgBlue": "rgb(47, 66, 94)",
2049
+ "--fibery-color-highlightFgBlue": "rgb(152, 189, 243)",
2050
+ "--fibery-color-highlightFgOnBgBlue": "rgb(175, 206, 248)",
2051
+ "--fibery-color-highlightBgPurple": "rgb(77, 58, 89)",
2052
+ "--fibery-color-highlightFgPurple": "rgb(211, 172, 239)",
2053
+ "--fibery-color-highlightFgOnBgPurple": "rgb(224, 190, 250)",
2054
+ "--fibery-color-highlightBgPink": "rgb(88, 55, 75)",
2055
+ "--fibery-color-highlightFgPink": "rgb(237, 167, 207)",
2056
+ "--fibery-color-highlightFgOnBgPink": "rgb(249, 184, 221)",
2057
+ "--fibery-color-highlightBgRed": "rgb(93, 55, 53)",
2058
+ "--fibery-color-highlightFgRed": "rgb(240, 170, 164)",
2059
+ "--fibery-color-highlightFgOnBgRed": "rgb(246, 190, 185)",
2060
2060
  "--fibery-color-highlightBgGrey": "rgb(70, 64, 64)",
2061
2061
  "--fibery-color-highlightFgGrey": "rgb(193, 186, 186)",
2062
2062
  "--fibery-color-highlightFgOnBgGrey": "rgb(208, 202, 202)",
@@ -2236,11 +2236,11 @@ export const warmStyles = {
2236
2236
  "--fibery-color-allowedDropColor": "rgb(45,40,38)",
2237
2237
  "--fibery-color-relationViewBgColor": "rgb(39,35,33)",
2238
2238
  "--fibery-color-mySpaceIconColor": "rgb(129, 133, 137)",
2239
- "--fibery-color-mySpaceIconBg": "rgba(122, 133, 148, 0.2)",
2240
- "--fibery-color-privateIconColor": "rgb(120, 166, 105)",
2241
- "--fibery-color-privateIconBg": "rgba(120, 166, 105, 0.2)",
2242
- "--fibery-color-favoritesIconColor": "rgb(232, 171, 73)",
2243
- "--fibery-color-favoritesIconBg": "rgba(232, 171, 73, 0.2)",
2239
+ "--fibery-color-mySpaceIconBg": "rgba(112, 132, 153, 0.2)",
2240
+ "--fibery-color-privateIconColor": "rgb(116, 168, 101)",
2241
+ "--fibery-color-privateIconBg": "rgba(116, 168, 101, 0.2)",
2242
+ "--fibery-color-favoritesIconColor": "rgb(235, 169, 68)",
2243
+ "--fibery-color-favoritesIconBg": "rgba(235, 169, 68, 0.2)",
2244
2244
  "--fibery-color-swatchDefault": "#1FBED3",
2245
2245
  "--fibery-color-unitBg": "rgb(55,50,48)",
2246
2246
  "--fibery-color-unitBgHover": "rgb(65,60,58)",
@@ -5,21 +5,18 @@ import {useTheme} from "./theme-provider";
5
5
  type ThemedInkProps = {
6
6
  as?: "span" | "div";
7
7
  fg?: string;
8
- bg?: string;
9
8
  style?: CSSProperties;
10
9
  className?: string;
11
10
  children?: ReactNode;
12
11
  };
13
12
 
14
- export const ThemedInk = ({as: Tag = "span", fg, bg, style, ...rest}: ThemedInkProps) => {
13
+ export const TypeLabel = ({as: Tag = "span", fg, style, ...rest}: ThemedInkProps) => {
15
14
  const theme = useTheme();
16
- const dn = theme.fns.deneutralize;
17
15
  return (
18
16
  <Tag
19
17
  style={{
20
18
  ...style,
21
- ...(fg && {color: dn(fg)}),
22
- ...(bg && {backgroundColor: dn(bg)}),
19
+ ...(fg && {color: theme.fns.typeLabelFg(fg)}),
23
20
  }}
24
21
  {...rest}
25
22
  />
@@ -1,2 +0,0 @@
1
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
2
- export const AntAutoComplete: FunctionComponent<any>;