@fibery/ui-kit 13.0.1 → 14.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 (66) hide show
  1. package/lib/actions-menu/actions-menu-item.js +4 -3
  2. package/lib/actions-menu/actions-menu.js +2 -2
  3. package/lib/actions-menu/context-actions-menu.js +2 -2
  4. package/lib/banner/banner.wyw-in-js.css +2 -2
  5. package/lib/button/button.js +2 -1
  6. package/lib/color-picker/color-picker-or-loader.d.ts +5 -0
  7. package/lib/color-picker/color-picker-or-loader.js +18 -5
  8. package/lib/color-picker/color-picker-or-loader.wyw-in-js.css +1 -1
  9. package/lib/color-picker/index.js +5 -5
  10. package/lib/color-picker/index.wyw-in-js.css +4 -5
  11. package/lib/color-picker/swatch-grid.d.ts +11 -0
  12. package/lib/color-picker/swatch-grid.js +14 -0
  13. package/lib/color-picker/swatch-grid.wyw-in-js.css +1 -0
  14. package/lib/color-picker/swatch.js +2 -9
  15. package/lib/command-menu/nested-command-menu.js +1 -1
  16. package/lib/date-picker/date-range-picker-popup-content.js +7 -3
  17. package/lib/date-picker/date-range-picker.js +3 -2
  18. package/lib/date-picker/single-date-picker-popup-content.js +1 -1
  19. package/lib/date-picker/single-date-picker.js +3 -2
  20. package/lib/emoji-picker/utils/store.js +3 -2
  21. package/lib/file-item/file-item-preview.d.ts +7 -0
  22. package/lib/file-item/file-item-preview.js +31 -0
  23. package/lib/file-item/file-item-preview.wyw-in-js.css +4 -0
  24. package/lib/form-field-loader.d.ts +5 -6
  25. package/lib/form-field-loader.js +7 -10
  26. package/lib/form-field-loader.wyw-in-js.css +2 -1
  27. package/lib/lists/list-row-surface.wyw-in-js.css +1 -1
  28. package/lib/open-popover-tracker.d.ts +2 -4
  29. package/lib/open-popover-tracker.js +14 -22
  30. package/lib/popover/index.js +2 -2
  31. package/lib/preference-setting.d.ts +2 -1
  32. package/lib/preference-setting.js +4 -4
  33. package/lib/rich-text-skeleton.d.ts +9 -0
  34. package/lib/rich-text-skeleton.js +32 -0
  35. package/lib/rich-text-skeleton.wyw-in-js.css +2 -0
  36. package/lib/select/components/menu-list-virtua.js +2 -1
  37. package/lib/select/components/menu-list-virtualized.js +19 -12
  38. package/lib/select/components/menu.d.ts +1 -4
  39. package/lib/select/components/menu.js +2 -9
  40. package/lib/select/components/option.js +5 -2
  41. package/lib/select/select-loader.js +5 -2
  42. package/lib/select/select.d.ts +1 -1
  43. package/lib/select/select.js +2 -2
  44. package/lib/select/styles.js +4 -3
  45. package/lib/select/util.d.ts +2 -0
  46. package/lib/select/util.js +3 -1
  47. package/lib/storage-keys.d.ts +12 -0
  48. package/lib/storage-keys.js +20 -0
  49. package/lib/storage.d.ts +9 -0
  50. package/lib/storage.js +5 -0
  51. package/lib/text.d.ts +5 -0
  52. package/lib/text.js +5 -0
  53. package/lib/thematic-cvd.js +2 -2
  54. package/lib/thematic-state.js +1 -0
  55. package/lib/thematic.js +8 -18
  56. package/lib/theme-bootstrap.js +3 -1
  57. package/lib/theme-css-fallback.d.ts +5 -0
  58. package/lib/theme-css-fallback.js +29 -0
  59. package/lib/theme-css-snapshot.d.ts +8 -1
  60. package/lib/theme-css-snapshot.js +34 -8
  61. package/lib/theme-settings-core.js +7 -8
  62. package/lib/theme-styles.js +5 -8
  63. package/package.json +4 -4
  64. package/lib/rich-input-loader.d.ts +0 -7
  65. package/lib/rich-input-loader.js +0 -34
  66. package/lib/rich-input-loader.wyw-in-js.css +0 -2
@@ -3,7 +3,6 @@ import { displayGamutKey, getCssGamut } from "./color-gamut.js";
3
3
  import { makeColorTransform } from "./color-filter-base.js";
4
4
  import { makeSelect } from "./design-system/colors-js.js";
5
5
  import { colorFnsForGamut, createColorFnsForMode } from "./design-system/fns.js";
6
- import { archThemeClassName, builtinThemeClassName, darkThemeClassName, warmThemeClassName } from "./theme-bootstrap.js";
7
6
  import { registerThemeValues } from "./theme-values.js";
8
7
  import { themeCssValues } from "./theme-css-snapshot.js";
9
8
  import "./styles.neutral-dark.generated.css";
@@ -15,13 +14,11 @@ function make(palette, gamut) {
15
14
  function makeTheme(mode) {
16
15
  let fns;
17
16
  const key = displayGamutKey(`${palette.key}-${mode}`, gamut);
18
- const className = [
19
- builtinThemeClassName,
20
- palette.warm ? warmThemeClassName : "",
21
- palette.arch ? archThemeClassName : "",
22
- mode === "dark" ? darkThemeClassName : ""
23
- ].join(" ");
24
- const values = themeCssValues(key, className, gamut);
17
+ const values = themeCssValues(key, {
18
+ warm: palette.warm,
19
+ arch: palette.arch,
20
+ mode
21
+ }, gamut);
25
22
  const theme = {
26
23
  key,
27
24
  mode,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fibery/ui-kit",
3
- "version": "13.0.1",
3
+ "version": "14.0.0",
4
4
  "license": "UNLICENSED",
5
5
  "files": [
6
6
  "lib"
@@ -85,9 +85,9 @@
85
85
  },
86
86
  "dependencies": {
87
87
  "@fibery/emoji-data": "4.0.0",
88
- "@fibery/helpers": "5.1.0",
88
+ "@fibery/helpers": "5.2.0",
89
89
  "@fibery/icons": "0.1.0",
90
- "@fibery/react": "3.1.1",
90
+ "@fibery/react": "3.1.2",
91
91
  "@linaria/core": "8.2.0",
92
92
  "@linaria/react": "8.2.0",
93
93
  "@popperjs/core": "2.11.6",
@@ -110,7 +110,7 @@
110
110
  "cmdk": "1.1.1",
111
111
  "color-hash": "1.0.3",
112
112
  "culori": "4.0.2",
113
- "date-fns": "2.29.2",
113
+ "date-fns": "3.6.0",
114
114
  "invariant": "2.2.4",
115
115
  "lru-cache": "11.5.3",
116
116
  "moment": "2.31.0",
@@ -1,7 +0,0 @@
1
- //#region src/rich-input-loader.d.ts
2
- interface LoaderProps {
3
- className?: string;
4
- }
5
- export declare const RichInputLoader: import("react").NamedExoticComponent<LoaderProps>;
6
- export declare function RichFieldLoader(): import("react").JSX.Element;
7
- //#endregion
@@ -1,34 +0,0 @@
1
- import "./rich-input-loader.wyw-in-js.css";
2
- import { SkeletonList, SkeletonTextLine } from "./skeleton.js";
3
- import { regularRichEditorHTMLStyles } from "./html-styles.js";
4
- /* empty css */
5
- import { cx } from "@linaria/core";
6
- import { jsx, jsxs } from "react/jsx-runtime";
7
- import { memo } from "react";
8
- //#region src/rich-input-loader.tsx
9
- var RichInputLoader = memo(function RichInputLoaderComponent({ className = "" }) {
10
- return /* @__PURE__ */ jsx("div", {
11
- className,
12
- children: jsx(SkeletonList, {
13
- amount: 3,
14
- WrapperComponent: SkeletonTextLine
15
- })
16
- });
17
- });
18
- function RichFieldLoader() {
19
- return /* @__PURE__ */ jsxs("div", {
20
- className: cx("ProseMirror", regularRichEditorHTMLStyles, "cgnhmrn"),
21
- children: [/* @__PURE__ */ jsx("p", {
22
- className: "empty-node",
23
- children: /* @__PURE__ */ jsx("br", { className: "ProseMirror-trailingBreak" })
24
- }), /* @__PURE__ */ jsx("div", {
25
- className: "czwej5w",
26
- children: /* @__PURE__ */ jsx(SkeletonList, {
27
- amount: 1,
28
- WrapperComponent: SkeletonTextLine
29
- })
30
- })]
31
- });
32
- }
33
- //#endregion
34
- export { RichFieldLoader, RichInputLoader };
@@ -1,2 +0,0 @@
1
- .cgnhmrn{position:relative;}
2
- .czwej5w{position:absolute;inset:0;display:grid;align-content:center;}