@fibery/ui-kit 1.26.2 → 1.26.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fibery/ui-kit",
3
- "version": "1.26.2",
3
+ "version": "1.26.4",
4
4
  "private": false,
5
5
  "files": [
6
6
  "src/antd/styles.ts",
@@ -45,7 +45,7 @@
45
45
  "@types/ua-parser-js": "0.7.36",
46
46
  "antd": "4.24.7",
47
47
  "chroma-js": "2.1.2",
48
- "chrono-node": "^2.4.1",
48
+ "chrono-node": "^2.7.5",
49
49
  "classnames": "2.3.1",
50
50
  "cmdk": "0.2.0",
51
51
  "color-hash": "1.0.3",
@@ -103,8 +103,8 @@
103
103
  "svgo": "2.8.0",
104
104
  "typescript": "5.1.6",
105
105
  "unist-util-reduce": "0.2.2",
106
- "@fibery/eslint-config": "8.5.1",
107
- "@fibery/babel-preset": "7.4.0"
106
+ "@fibery/babel-preset": "7.4.0",
107
+ "@fibery/eslint-config": "8.5.1"
108
108
  },
109
109
  "jest": {
110
110
  "testEnvironment": "jsdom",
@@ -377,6 +377,9 @@ export const themeColors = {
377
377
  // :hover
378
378
  colorBgMenuItemSelectedHover: [indigo.indigo6, indigoDark.indigo6],
379
379
  // :focus, :focus:hover
380
+ colorBgPinnedFieldsLabel: [slate.slate11, slateDark.slate11],
381
+ colorBgObjectEditorSeparator: [slate.slate12, slateDark.slate12],
382
+ colorBgObjectEditorSeparatorButton: [slate.slate4, slateDark.slate4],
380
383
  colorBgMenuItemSelectedFocused: [indigo.indigo6, indigoDark.indigo6],
381
384
  colorBgFieldEditorContainer: [slate.slate2, slateDark.slate3],
382
385
  colorBgFieldEditorLinkEqualSign: [slate.slate6, slateDark.slate2],
@@ -424,10 +427,8 @@ export const themeColors = {
424
427
  ],
425
428
  modalBg: [getOpacities(slate.slate11).opacity20, getOpacities(slateDark.slate2).opacity50],
426
429
  modalContentBg: [whiteA.whiteA0, slateDark.slate3],
427
- progressIconBg: [getOpacities(slate.slate12).opacity10, getOpacities(slateDark.slate12).opacity10],
428
- progressIconFill: [getOpacities(slate.slate12).opacity80, getOpacities(slateDark.slate12).opacity80],
429
- progressIconDoneBg: [getOpacities(slate.slate12).opacity80, getOpacities(slateDark.slate12).opacity90],
430
- progressIconDoneFill: [getOpacities(slate.slate1).opacity95, getOpacities(slateDark.slate1).opacity80],
430
+ progressIconBg: [getOpacities(slate.slate8).opacity50, getOpacities(slateDark.slate10).opacity20],
431
+ progressIconFill: [slate.slate11, slateDark.slate11],
431
432
  instrumentsMenuBg: [getOpacities(whiteA.whiteA0).opacity95, getOpacities(slateDark.slate4).opacity95],
432
433
  instrumentsMenuShadow: [
433
434
  `0 0 0 1px ${getOpacities(slate.slate10).opacity10}, 0 2px 8px -6px ${getOpacities(slate.slate10).opacity30}`,
@@ -764,6 +765,7 @@ export const layout = {
764
765
  itemHeight: 36,
765
766
  itemWithSubtitleHeight: 52,
766
767
  groupTitleHeight: 30,
768
+ enumItemHeight: 32,
767
769
  menuItemHeight: 32,
768
770
  newMenuItemHeight: 30, // I'm ok
769
771
  viewHeaderHeight: space.s12 * 7,
@@ -0,0 +1,8 @@
1
+
2
+ // This icon file is generated automatically.
3
+
4
+ import { IconDefinition } from '../types';
5
+
6
+ const Question: IconDefinition = {"icon":{"type":"root","children":[{"type":"element","tagName":"svg","properties":{"width":20,"height":20},"children":[{"type":"element","tagName":"path","properties":{"d":"M10.24 11.805c.255 0 .449-.201.449-.45v-.45c0-.122.216-.337.5-.616.53-.525 1.291-1.278 1.291-2.084 0-1.217-.926-2.475-2.474-2.475-1.796 0-2.457 1.634-2.456 2.475 0 .02 1.336 0 1.336 0 .03-.24.202-1.125 1.12-1.125.922 0 1.125.812 1.125 1.125 0 .535-.636 1.134-1.195 1.66-.439.414-.83.782-.83 1.04v.45c0 .241.202.45.45.45h.684Zm-1.134 1.8a.9.9 0 1 0 1.8 0 .9.9 0 0 0-1.8 0Z"},"children":[]}],"metadata":""}]},"name":"question"};
7
+
8
+ export default Question;
@@ -146,6 +146,7 @@ export { default as People } from './People';
146
146
  export { default as Photo } from './Photo';
147
147
  export { default as Popup } from './Popup';
148
148
  export { default as Posts } from './Posts';
149
+ export { default as Question } from './Question';
149
150
  export { default as RemovePeople } from './RemovePeople';
150
151
  export { default as Remove } from './Remove';
151
152
  export { default as Reply } from './Reply';
@@ -0,0 +1,12 @@
1
+ // This icon file is generated automatically.
2
+
3
+ import QuestionSvg from '../ast/Question';
4
+ import { Icon } from '../Icon';
5
+ import { IconBaseProps } from '../types';
6
+
7
+ const Question = (
8
+ props: IconBaseProps,
9
+ ): JSX.Element => <Icon {...props} icon={QuestionSvg} />;
10
+
11
+ Question.displayName = 'Question';
12
+ export default Question;
@@ -146,6 +146,7 @@ export { default as People } from './People';
146
146
  export { default as Photo } from './Photo';
147
147
  export { default as Popup } from './Popup';
148
148
  export { default as Posts } from './Posts';
149
+ export { default as Question } from './Question';
149
150
  export { default as RemovePeople } from './RemovePeople';
150
151
  export { default as Remove } from './Remove';
151
152
  export { default as Reply } from './Reply';
@@ -15,21 +15,23 @@ import React, {
15
15
  import {Popup} from "../popup";
16
16
  import {$TSFixMe} from "../tsfixme";
17
17
  import {
18
+ ActionMeta,
18
19
  combineStyles,
19
20
  GroupBase,
21
+ OnChangeValue,
20
22
  OptionsOrGroups,
23
+ PropsValue,
21
24
  Select as ReactSelect,
22
25
  SelectProps,
23
26
  StylesConfig,
24
- OnChangeValue,
25
- ActionMeta,
26
- PropsValue,
27
27
  } from "./index";
28
28
  import {SelectControlSettingsProvider} from "./select-control-settings-context";
29
29
 
30
30
  const offset = [0, space.s4] as [number, number];
31
- const popupClassName = css`
31
+ const popupContainerClassName = css`
32
32
  z-index: 1050;
33
+ `;
34
+ const popupClassName = css`
33
35
  max-width: 360px;
34
36
  padding-top: ${space.s8}px;
35
37
  padding-bottom: ${space.s4}px;
@@ -72,7 +74,10 @@ export const selectInPopupStyles = {
72
74
  }),
73
75
  option: (props: $TSFixMe) => ({
74
76
  ...props,
77
+ padding: 0,
75
78
  borderRadius: border.radius4,
79
+ paddingLeft: 0,
80
+ paddingRight: 0,
76
81
  }),
77
82
  menu: (props: $TSFixMe) => ({
78
83
  ...props,
@@ -274,6 +279,7 @@ function SelectInPopoverInner<Option, IsMulti extends boolean, Group extends Gro
274
279
  {Boolean(triggerElement) && (
275
280
  <Popup
276
281
  offset={offset}
282
+ popupContainerClassName={popupContainerClassName}
277
283
  popupClassName={cx(popupClassName, popupStyles)}
278
284
  placement="bottom-start"
279
285
  renderInPortal={renderInPortal}