@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.
- package/lib/actions-menu/actions-menu-item.js +4 -3
- package/lib/actions-menu/actions-menu.js +2 -2
- package/lib/actions-menu/context-actions-menu.js +2 -2
- package/lib/banner/banner.wyw-in-js.css +2 -2
- package/lib/button/button.js +2 -1
- package/lib/color-picker/color-picker-or-loader.d.ts +5 -0
- package/lib/color-picker/color-picker-or-loader.js +18 -5
- package/lib/color-picker/color-picker-or-loader.wyw-in-js.css +1 -1
- package/lib/color-picker/index.js +5 -5
- package/lib/color-picker/index.wyw-in-js.css +4 -5
- package/lib/color-picker/swatch-grid.d.ts +11 -0
- package/lib/color-picker/swatch-grid.js +14 -0
- package/lib/color-picker/swatch-grid.wyw-in-js.css +1 -0
- package/lib/color-picker/swatch.js +2 -9
- package/lib/command-menu/nested-command-menu.js +1 -1
- package/lib/date-picker/date-range-picker-popup-content.js +7 -3
- package/lib/date-picker/date-range-picker.js +3 -2
- package/lib/date-picker/single-date-picker-popup-content.js +1 -1
- package/lib/date-picker/single-date-picker.js +3 -2
- package/lib/emoji-picker/utils/store.js +3 -2
- package/lib/file-item/file-item-preview.d.ts +7 -0
- package/lib/file-item/file-item-preview.js +31 -0
- package/lib/file-item/file-item-preview.wyw-in-js.css +4 -0
- package/lib/form-field-loader.d.ts +5 -6
- package/lib/form-field-loader.js +7 -10
- package/lib/form-field-loader.wyw-in-js.css +2 -1
- package/lib/lists/list-row-surface.wyw-in-js.css +1 -1
- package/lib/open-popover-tracker.d.ts +2 -4
- package/lib/open-popover-tracker.js +14 -22
- package/lib/popover/index.js +2 -2
- package/lib/preference-setting.d.ts +2 -1
- package/lib/preference-setting.js +4 -4
- package/lib/rich-text-skeleton.d.ts +9 -0
- package/lib/rich-text-skeleton.js +32 -0
- package/lib/rich-text-skeleton.wyw-in-js.css +2 -0
- package/lib/select/components/menu-list-virtua.js +2 -1
- package/lib/select/components/menu-list-virtualized.js +19 -12
- package/lib/select/components/menu.d.ts +1 -4
- package/lib/select/components/menu.js +2 -9
- package/lib/select/components/option.js +5 -2
- package/lib/select/select-loader.js +5 -2
- package/lib/select/select.d.ts +1 -1
- package/lib/select/select.js +2 -2
- package/lib/select/styles.js +4 -3
- package/lib/select/util.d.ts +2 -0
- package/lib/select/util.js +3 -1
- package/lib/storage-keys.d.ts +12 -0
- package/lib/storage-keys.js +20 -0
- package/lib/storage.d.ts +9 -0
- package/lib/storage.js +5 -0
- package/lib/text.d.ts +5 -0
- package/lib/text.js +5 -0
- package/lib/thematic-cvd.js +2 -2
- package/lib/thematic-state.js +1 -0
- package/lib/thematic.js +8 -18
- package/lib/theme-bootstrap.js +3 -1
- package/lib/theme-css-fallback.d.ts +5 -0
- package/lib/theme-css-fallback.js +29 -0
- package/lib/theme-css-snapshot.d.ts +8 -1
- package/lib/theme-css-snapshot.js +34 -8
- package/lib/theme-settings-core.js +7 -8
- package/lib/theme-styles.js +5 -8
- package/package.json +4 -4
- package/lib/rich-input-loader.d.ts +0 -7
- package/lib/rich-input-loader.js +0 -34
- package/lib/rich-input-loader.wyw-in-js.css +0 -2
package/lib/theme-styles.js
CHANGED
|
@@ -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
|
|
19
|
-
|
|
20
|
-
palette.
|
|
21
|
-
|
|
22
|
-
|
|
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": "
|
|
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.
|
|
88
|
+
"@fibery/helpers": "5.2.0",
|
|
89
89
|
"@fibery/icons": "0.1.0",
|
|
90
|
-
"@fibery/react": "3.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": "
|
|
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
|
package/lib/rich-input-loader.js
DELETED
|
@@ -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 };
|