@fibery/ui-kit 9.0.1 → 9.1.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/a11y-color.js +12 -10
- package/lib/actions-menu/actions-menu-item.js +1 -1
- package/lib/actions-menu/actions-menu-props.d.ts +2 -0
- package/lib/actions-menu/actions-menu-separator.d.ts +2 -2
- package/lib/actions-menu/actions-menu-sub-command-menu.js +5 -4
- package/lib/actions-menu/actions-menu.d.ts +1 -1
- package/lib/actions-menu/actions-menu.js +2 -1
- package/lib/actions-menu/contexts/actions-menu-context.js +12 -11
- package/lib/actions-menu/index.d.ts +3 -3
- package/lib/ai/max-tokens.js +6 -5
- package/lib/antd/ant-modal.d.ts +1 -1
- package/lib/antd/ant-modal.js +28 -1
- package/lib/antd/ant-upload.d.ts +1 -1
- package/lib/antd/ant-upload.js +23 -18
- package/lib/antd/input-number.js +2 -2
- package/lib/antd/input.js +7 -6
- package/lib/antd/utils.js +2 -1
- package/lib/avatar-colors.js +1 -1
- package/lib/avatar.d.ts +1 -10
- package/lib/avatar.js +48 -38
- package/lib/avatar.wyw-in-js.css +1 -1
- package/lib/banner/banner-action.js +2 -1
- package/lib/board-table-loader.js +1 -1
- package/lib/button/button.js +1 -1
- package/lib/button/icon-button.js +1 -1
- package/lib/canvas-colors.js +2 -2
- package/lib/card-container.d.ts +2 -6
- package/lib/card-container.js +5 -5
- package/lib/color-filter.js +2 -2
- package/lib/color-inspect.js +1 -1
- package/lib/color-picker/color-picker-or-loader.d.ts +2 -2
- package/lib/color-utils.js +1 -1
- package/lib/comment.d.ts +1 -0
- package/lib/comment.js +29 -20
- package/lib/comment.wyw-in-js.css +9 -7
- package/lib/context-menu/index.js +1 -0
- package/lib/context-menu/index.wyw-in-js.css +1 -1
- package/lib/copy-to-clipboard.js +2 -1
- package/lib/date-picker/autocomplete.js +12 -10
- package/lib/date-picker/date-range-input.js +9 -7
- package/lib/date-picker/day-with-start-end-buttons.js +0 -2
- package/lib/date-picker/get-weekends-for-month.js +4 -2
- package/lib/date-picker/relative-date-picker.js +5 -3
- package/lib/date-picker/single-date-input.js +9 -7
- package/lib/date-picker/single-date-picker.d.ts +1 -2
- package/lib/date-picker/single-date-picker.js +2 -1
- package/lib/date-picker/types.d.ts +1 -2
- package/lib/day-select/day-select.js +2 -1
- package/lib/day-select/week-day-select.d.ts +2 -2
- package/lib/day-select/week-day-select.js +4 -3
- package/lib/design-system/alpha.d.ts +6 -0
- package/lib/design-system/alpha.js +11 -7
- package/lib/design-system/colors-charts.d.ts +4 -0
- package/lib/design-system/colors-charts.js +14 -0
- package/lib/design-system/colors-js.d.ts +2 -4
- package/lib/design-system/colors-js.js +8 -10
- package/lib/design-system/fns.enum.js +7 -4
- package/lib/design-system/fns.icon.js +1 -1
- package/lib/design-system/fns.js +7 -4
- package/lib/design-system/theme.d.ts +7 -7
- package/lib/design-system/theme.js +7 -12
- package/lib/design-system/vars.js +1 -2
- package/lib/design-system.d.ts +3 -2
- package/lib/design-system.js +3 -2
- package/lib/emoji-picker/app-icon-picker.d.ts +2 -2
- package/lib/emoji-picker/emoji-picker-content-with-color.d.ts +2 -2
- package/lib/emoji-picker/emoji-picker.d.ts +2 -2
- package/lib/emoji-picker/icon-emoji-picker.d.ts +1 -2
- package/lib/emoji-picker/primitives/content.js +10 -9
- package/lib/emoji-picker/primitives/emoji.js +22 -14
- package/lib/emoji-picker/primitives/emoji.wyw-in-js.css +4 -3
- package/lib/emoji-picker/primitives/grid.js +0 -1
- package/lib/emoji-picker/primitives/preview-provider.js +4 -3
- package/lib/emoji-picker/primitives/root.js +10 -9
- package/lib/emoji-picker/primitives/skin-provider.js +5 -4
- package/lib/emoji-picker/stores/emoji-data-store.d.ts +2 -2
- package/lib/emoji-picker/stores/emoji-data-store.js +8 -8
- package/lib/emoji-picker/stores/static-emoji-data-store.js +2 -1
- package/lib/emoji.js +5 -2
- package/lib/errors.d.ts +2 -3
- package/lib/fibermoji-placeholder.js +5 -7
- package/lib/field-type-icon.js +2 -1
- package/lib/file-item/file-icon.js +2 -1
- package/lib/file-item.js +3 -10
- package/lib/guide-link.js +1 -1
- package/lib/highlight-colors.js +2 -1
- package/lib/hotkey-scope.js +2 -1
- package/lib/icons/ast/build.d.ts +5 -0
- package/lib/icons/ast/build.js +25 -0
- package/lib/icons/ast/index.d.ts +2 -4
- package/lib/icons/ast/index.js +5 -7
- package/lib/icons/ast/spinner.js +8 -15
- package/lib/icons/icon.js +4 -3
- package/lib/icons/react/{plus.d.ts → build.d.ts} +4 -4
- package/lib/icons/react/{plus.js → build.js} +6 -6
- package/lib/icons/react/index.d.ts +2 -4
- package/lib/icons/react/index.js +5 -7
- package/lib/images-gallery/get-gallery-src.js +1 -1
- package/lib/images-gallery/slide-buttons.js +8 -4
- package/lib/images-gallery/thumbnails-mime-types-white-list.js +1 -1
- package/lib/integration-compact-info-button.js +1 -2
- package/lib/is-in-popup.d.ts +1 -2
- package/lib/is-in-popup.js +6 -0
- package/lib/loaders.d.ts +1 -9
- package/lib/loaders.js +2 -39
- package/lib/loaders.wyw-in-js.css +2 -4
- package/lib/loading-sausage.js +7 -6
- package/lib/mobile-drawer.d.ts +2 -1
- package/lib/mobile-drawer.js +24 -12
- package/lib/mobile-drawer.wyw-in-js.css +4 -3
- package/lib/mobile-keyboard-aware-popup.js +6 -5
- package/lib/modal-menu/contexts/modal-menu-context.d.ts +1 -0
- package/lib/modal-menu/modal-menu-content.d.ts +1 -1
- package/lib/modal-menu/modal-menu-content.js +16 -6
- package/lib/modal-menu/modal-menu-drawer-content.d.ts +7 -0
- package/lib/modal-menu/modal-menu-drawer-content.js +13 -0
- package/lib/modal-menu/modal-menu-root.d.ts +2 -1
- package/lib/modal-menu/modal-menu-root.js +24 -21
- package/lib/modal-menu/modal-submenu.js +10 -9
- package/lib/nested-menu-item.d.ts +1 -1
- package/lib/number-input/number-input-inline-with-autosize.d.ts +1 -2
- package/lib/number-input/number-input-inline-with-autosize.js +9 -6
- package/lib/number-input/number-input-inline-with-autosize.wyw-in-js.css +0 -1
- package/lib/number-input/number-input.js +13 -11
- package/lib/number-input/styles.d.ts +1 -9
- package/lib/number-input/styles.js +3 -9
- package/lib/number-input/styles.wyw-in-js.css +2 -3
- package/lib/number-input/text-area-auto-sized.d.ts +1 -2
- package/lib/number-input/text-area-auto-sized.js +2 -2
- package/lib/number-input/text-input-auto-sized.d.ts +1 -2
- package/lib/number-input/text-input-auto-sized.js +2 -2
- package/lib/online-users.js +2 -2
- package/lib/open-popover-tracker.js +7 -6
- package/lib/palettes/neutral.js +1 -1
- package/lib/palettes/warm.js +1 -1
- package/lib/phone.js +1 -1
- package/lib/popover/index.d.ts +9 -12
- package/lib/popover/index.js +66 -75
- package/lib/popover/mobile-popover-context.js +12 -11
- package/lib/popover/mobile-popover.d.ts +2 -2
- package/lib/popover/mobile-popover.js +16 -15
- package/lib/popover/modifiers.js +4 -4
- package/lib/popover/popup-modifiers-context.d.ts +3 -5
- package/lib/preference-setting.js +6 -8
- package/lib/reactions/reaction-button.js +36 -25
- package/lib/reactions/reaction-button.wyw-in-js.css +16 -16
- package/lib/reactions/reaction-picker.js +22 -10
- package/lib/reactions/reaction-picker.wyw-in-js.css +1 -0
- package/lib/reactions/tootltip.js +2 -1
- package/lib/select/components/drop-down-indicator.js +1 -1
- package/lib/select/components/menu-list-virtualized.js +1 -1
- package/lib/select/components/option.js +2 -1
- package/lib/select/index.d.ts +2 -1
- package/lib/select/select-in-popover.js +1 -1
- package/lib/select/select-trigger.d.ts +4 -0
- package/lib/select/select-trigger.js +25 -0
- package/lib/select/select-trigger.wyw-in-js.css +1 -0
- package/lib/select/select.d.ts +6 -2
- package/lib/select/select.js +13 -8
- package/lib/select/styles.js +2 -2
- package/lib/spinner.d.ts +5 -0
- package/lib/spinner.js +17 -0
- package/lib/spinner.wyw-in-js.css +1 -0
- package/lib/tab-nav/tab-nav.d.ts +4 -2
- package/lib/tab-nav/tab-nav.js +2 -2
- package/lib/thematic.js +322 -321
- package/lib/theme-provider.d.ts +1 -3
- package/lib/theme-settings-core.d.ts +13 -1
- package/lib/theme-settings-core.js +37 -1
- package/lib/theme-settings.d.ts +3 -2
- package/lib/theme-settings.js +7 -2
- package/lib/toast/toast-action.js +2 -1
- package/lib/toast/toast-provider.d.ts +1 -2
- package/lib/toast/toast-queue.d.ts +1 -2
- package/lib/toast/toast-queue.js +7 -8
- package/lib/toast/toast.js +7 -6
- package/lib/toggle.js +3 -3
- package/lib/tooltip-if-overflown.js +2 -1
- package/lib/tooltip.js +1 -1
- package/lib/type-badge.d.ts +8 -28
- package/lib/type-badge.js +39 -50
- package/lib/type-badge.wyw-in-js.css +11 -10
- package/lib/unit/container.d.ts +12 -0
- package/lib/unit/container.js +50 -0
- package/lib/unit/context.d.ts +29 -0
- package/lib/unit/context.js +9 -0
- package/lib/unit/index.d.ts +4 -2
- package/lib/unit/index.js +2 -1
- package/lib/unit/nav-button.d.ts +12 -0
- package/lib/unit/nav-button.js +18 -0
- package/lib/unit/styles.d.ts +6 -9
- package/lib/unit/styles.js +13 -16
- package/lib/unit/styles.wyw-in-js.css +10 -16
- package/lib/unit/unit-content-layout.d.ts +4 -3
- package/lib/unit/unit-content-layout.js +9 -9
- package/lib/unit/unit-content.d.ts +6 -5
- package/lib/unit/unit-content.js +83 -18
- package/lib/unit/unit-content.wyw-in-js.css +6 -2
- package/lib/unit/unit.d.ts +38 -5
- package/lib/unit/unit.js +43 -12
- package/lib/use-long-press.d.ts +6 -6
- package/lib/with-data.d.ts +35 -37
- package/lib/with-data.js +23 -22
- package/lib/workflow-progress-icon.js +2 -2
- package/package.json +4 -4
- package/lib/beta-badge.d.ts +0 -8
- package/lib/beta-badge.js +0 -13
- package/lib/beta-badge.wyw-in-js.css +0 -1
- package/lib/checkbox-multi-select.d.ts +0 -21
- package/lib/checkbox-multi-select.js +0 -41
- package/lib/checkbox-multi-select.wyw-in-js.css +0 -3
- package/lib/country-selector.d.ts +0 -9
- package/lib/country-selector.js +0 -21
- package/lib/features.d.ts +0 -8
- package/lib/features.js +0 -15
- package/lib/flags.d.ts +0 -4
- package/lib/flags.js +0 -7
- package/lib/icons/ast/alert-triangle.d.ts +0 -5
- package/lib/icons/ast/alert-triangle.js +0 -25
- package/lib/icons/ast/field-units-large.d.ts +0 -5
- package/lib/icons/ast/field-units-large.js +0 -25
- package/lib/icons/ast/plus.d.ts +0 -5
- package/lib/icons/ast/plus.js +0 -25
- package/lib/icons/react/alert-triangle.d.ts +0 -15
- package/lib/icons/react/alert-triangle.js +0 -21
- package/lib/icons/react/field-units-large.d.ts +0 -15
- package/lib/icons/react/field-units-large.js +0 -21
- package/lib/layout.d.ts +0 -28
- package/lib/layout.js +0 -66
- package/lib/layout.wyw-in-js.css +0 -2
- package/lib/new-card-placeholder.d.ts +0 -26
- package/lib/new-card-placeholder.js +0 -141
- package/lib/new-card-placeholder.wyw-in-js.css +0 -5
- package/lib/unit/primitive.d.ts +0 -5
- package/lib/unit/primitive.js +0 -108
- package/lib/unit/primitive.wyw-in-js.css +0 -3
- package/lib/unit/types.d.ts +0 -34
- package/lib/unit/types.js +0 -0
- package/lib/unit/unit-button-group.d.ts +0 -13
- package/lib/unit/unit-button-group.js +0 -23
package/lib/with-data.js
CHANGED
|
@@ -3,37 +3,38 @@ import { mapValues, noop } from "@fibery/helpers/src/_";
|
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { PureComponent } from "react";
|
|
5
5
|
//#region src/with-data.tsx
|
|
6
|
+
var makeInitialState = (sources) => mapValues(sources, () => ({
|
|
7
|
+
fetchState: ":fetch-state/start",
|
|
8
|
+
fetchValue: null,
|
|
9
|
+
fetchError: null
|
|
10
|
+
}));
|
|
6
11
|
function provideData({ sources }) {
|
|
7
12
|
return (Component) => class DataProvider extends PureComponent {
|
|
8
|
-
state =
|
|
9
|
-
fetchState: ":fetch-state/start",
|
|
10
|
-
fetchValue: null,
|
|
11
|
-
fetchError: null
|
|
12
|
-
}));
|
|
13
|
+
state = makeInitialState(sources);
|
|
13
14
|
_prefetch = async (key, fetch) => {
|
|
14
15
|
try {
|
|
15
16
|
const fetchValue = await fetch();
|
|
16
|
-
this.
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
fetchError: null
|
|
22
|
-
}
|
|
23
|
-
}));
|
|
17
|
+
this.setSourceState(key, {
|
|
18
|
+
fetchState: ":fetch-state/success",
|
|
19
|
+
fetchValue,
|
|
20
|
+
fetchError: null
|
|
21
|
+
});
|
|
24
22
|
} catch (fetchError) {
|
|
25
|
-
this.
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
fetchError: asError(fetchError)
|
|
31
|
-
}
|
|
32
|
-
}));
|
|
23
|
+
this.setSourceState(key, {
|
|
24
|
+
fetchState: ":fetch-state/error",
|
|
25
|
+
fetchValue: null,
|
|
26
|
+
fetchError: asError(fetchError)
|
|
27
|
+
});
|
|
33
28
|
}
|
|
34
29
|
};
|
|
30
|
+
setSourceState(key, value) {
|
|
31
|
+
this.setStateIfMounted((state) => ({
|
|
32
|
+
...state,
|
|
33
|
+
[key]: value
|
|
34
|
+
}));
|
|
35
|
+
}
|
|
35
36
|
componentDidMount() {
|
|
36
|
-
Object.
|
|
37
|
+
Object.keys(sources).forEach((key) => this._prefetch(key, sources[key]));
|
|
37
38
|
}
|
|
38
39
|
setStateIfMounted(updater) {
|
|
39
40
|
return this.setState(updater);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./workflow-progress-icon.wyw-in-js.css";
|
|
2
2
|
import { themeVars } from "./theming.generated.js";
|
|
3
3
|
/* empty css */
|
|
4
|
-
import {
|
|
4
|
+
import { memoizeLeak } from "@fibery/helpers/src/_";
|
|
5
5
|
import { arc } from "d3-shape";
|
|
6
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
//#region src/workflow-progress-icon.tsx
|
|
@@ -32,7 +32,7 @@ var WorkflowProgressIcon = ({ size, index, total, fillProgress = themeVars.progr
|
|
|
32
32
|
})
|
|
33
33
|
});
|
|
34
34
|
};
|
|
35
|
-
var getPath =
|
|
35
|
+
var getPath = memoizeLeak((index, total, size) => {
|
|
36
36
|
return arc().innerRadius(size / 2.75).outerRadius(size / 2).startAngle(0).endAngle(2 * (index / total) * Math.PI).cornerRadius(1)();
|
|
37
37
|
}, (...args) => args.join("/"));
|
|
38
38
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fibery/ui-kit",
|
|
3
|
-
"version": "9.0
|
|
3
|
+
"version": "9.1.0",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"files": [
|
|
6
6
|
"lib"
|
|
@@ -145,10 +145,10 @@
|
|
|
145
145
|
"screenfull": "6.0.2",
|
|
146
146
|
"tabbable": "5.2.1",
|
|
147
147
|
"vaul": "1.1.2",
|
|
148
|
-
"virtua": "0.
|
|
148
|
+
"virtua": "0.50.4",
|
|
149
149
|
"@fibery/emoji-data": "3.0.0",
|
|
150
|
-
"@fibery/
|
|
151
|
-
"@fibery/
|
|
150
|
+
"@fibery/react": "2.0.1",
|
|
151
|
+
"@fibery/helpers": "3.3.0"
|
|
152
152
|
},
|
|
153
153
|
"peerDependencies": {
|
|
154
154
|
"react": "18.3.1",
|
package/lib/beta-badge.d.ts
DELETED
package/lib/beta-badge.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import "./beta-badge.wyw-in-js.css";
|
|
2
|
-
import { textClasses } from "./design-system/typography.js";
|
|
3
|
-
/* empty css */
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
import { cx } from "@linaria/core";
|
|
6
|
-
//#region src/beta-badge.tsx
|
|
7
|
-
var betaBadgeStyle = "b15i7tcu-betaBadge";
|
|
8
|
-
var BetaBadge = ({ children, className }) => /* @__PURE__ */ jsx("span", {
|
|
9
|
-
className: cx(textClasses.heading8, betaBadgeStyle, className),
|
|
10
|
-
children
|
|
11
|
-
});
|
|
12
|
-
//#endregion
|
|
13
|
-
export { BetaBadge };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.b15i7tcu-betaBadge{display:inline-block;padding:2px 5px;color:var(--colorAI);background-color:var(--colorBgAI);vertical-align:text-top;border-radius:4px;}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Theme } from "./design-system/theme.js";
|
|
2
|
-
import "./design-system.js";
|
|
3
|
-
import { FC } from "react";
|
|
4
|
-
//#region src/checkbox-multi-select.d.ts
|
|
5
|
-
type Option = {
|
|
6
|
-
color?: string;
|
|
7
|
-
label?: string;
|
|
8
|
-
title?: string;
|
|
9
|
-
checked?: boolean;
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
onToggle: () => void;
|
|
12
|
-
};
|
|
13
|
-
interface CheckboxMultiSelectProps {
|
|
14
|
-
theme: Theme;
|
|
15
|
-
color?: string;
|
|
16
|
-
options: Option[];
|
|
17
|
-
}
|
|
18
|
-
declare const CheckboxMultiSelect: FC<CheckboxMultiSelectProps>;
|
|
19
|
-
declare const ThemedCheckboxMultiSelect: FC<Omit<CheckboxMultiSelectProps, "theme">>;
|
|
20
|
-
//#endregion
|
|
21
|
-
export { CheckboxMultiSelect, ThemedCheckboxMultiSelect };
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import "./checkbox-multi-select.wyw-in-js.css";
|
|
2
|
-
import { textClasses } from "./design-system/typography.js";
|
|
3
|
-
import { useTheme } from "./theme-provider.js";
|
|
4
|
-
import { Checkbox } from "./checkbox.js";
|
|
5
|
-
/* empty css */
|
|
6
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
import { cx } from "@linaria/core";
|
|
8
|
-
//#region src/checkbox-multi-select.tsx
|
|
9
|
-
var labelStyle = "l1h8scft-label";
|
|
10
|
-
var labelWrapperStyle = "l1lwjtjf-labelWrapper";
|
|
11
|
-
var optionsWrapperStyle = "oa8vb22-optionsWrapper";
|
|
12
|
-
var CheckboxMultiSelect = ({ options, color, theme }) => {
|
|
13
|
-
return /* @__PURE__ */ jsx("div", {
|
|
14
|
-
className: optionsWrapperStyle,
|
|
15
|
-
children: options.map(({ checked, onToggle, label, disabled, title, color: optionColor }, index) => {
|
|
16
|
-
return /* @__PURE__ */ jsxs("label", {
|
|
17
|
-
style: { cursor: disabled ? "not-allowed" : "pointer" },
|
|
18
|
-
className: labelWrapperStyle,
|
|
19
|
-
title,
|
|
20
|
-
children: [/* @__PURE__ */ jsx(Checkbox, {
|
|
21
|
-
checked,
|
|
22
|
-
onChange: onToggle,
|
|
23
|
-
disabled,
|
|
24
|
-
color: optionColor || color || theme.colors.colorAccent
|
|
25
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
26
|
-
className: cx(textClasses.regular, labelStyle),
|
|
27
|
-
children: label
|
|
28
|
-
})]
|
|
29
|
-
}, index);
|
|
30
|
-
})
|
|
31
|
-
});
|
|
32
|
-
};
|
|
33
|
-
var ThemedCheckboxMultiSelect = (props) => {
|
|
34
|
-
const theme = useTheme();
|
|
35
|
-
return /* @__PURE__ */ jsx(CheckboxMultiSelect, {
|
|
36
|
-
...props,
|
|
37
|
-
theme
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
|
-
//#endregion
|
|
41
|
-
export { CheckboxMultiSelect, ThemedCheckboxMultiSelect };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
//#region src/country-selector.d.ts
|
|
3
|
-
interface CountrySelectorProps {
|
|
4
|
-
value?: string;
|
|
5
|
-
onChange?: (value: string) => void;
|
|
6
|
-
}
|
|
7
|
-
declare const CountrySelector: FC<CountrySelectorProps>;
|
|
8
|
-
//#endregion
|
|
9
|
-
export { CountrySelector };
|
package/lib/country-selector.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Select } from "./select/index.js";
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import countryList from "react-select-country-list";
|
|
4
|
-
//#region src/country-selector.tsx
|
|
5
|
-
var restrictedCountries = "RU,BY,KP,SY,IR,SD,CU".split(",");
|
|
6
|
-
var options = countryList().getData().filter((x) => !restrictedCountries.includes(x.value));
|
|
7
|
-
var countryMap = /* @__PURE__ */ new Map();
|
|
8
|
-
options.forEach((option) => {
|
|
9
|
-
countryMap.set(option.value, option);
|
|
10
|
-
});
|
|
11
|
-
var CountrySelector = ({ onChange = () => null, value }) => {
|
|
12
|
-
return /* @__PURE__ */ jsx(Select, {
|
|
13
|
-
isSearchable: true,
|
|
14
|
-
options,
|
|
15
|
-
value: countryMap.get(value) ?? null,
|
|
16
|
-
placeholder: "Select your country",
|
|
17
|
-
onChange: ({ value }) => onChange(value)
|
|
18
|
-
});
|
|
19
|
-
};
|
|
20
|
-
//#endregion
|
|
21
|
-
export { CountrySelector };
|
package/lib/features.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
//#region src/features.d.ts
|
|
2
|
-
declare function FeaturesProvider({ children, value }: {
|
|
3
|
-
children: React.ReactNode;
|
|
4
|
-
value: unknown;
|
|
5
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
declare function useFeatures<T = unknown>(): T;
|
|
7
|
-
//#endregion
|
|
8
|
-
export { FeaturesProvider, useFeatures };
|
package/lib/features.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { createContext, useContext } from "react";
|
|
3
|
-
//#region src/features.tsx
|
|
4
|
-
var featuresContext = createContext({});
|
|
5
|
-
function FeaturesProvider({ children, value }) {
|
|
6
|
-
return /* @__PURE__ */ jsx(featuresContext.Provider, {
|
|
7
|
-
value,
|
|
8
|
-
children
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
function useFeatures() {
|
|
12
|
-
return useContext(featuresContext);
|
|
13
|
-
}
|
|
14
|
-
//#endregion
|
|
15
|
-
export { FeaturesProvider, useFeatures };
|
package/lib/flags.d.ts
DELETED
package/lib/flags.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
//#region src/icons/ast/alert-triangle.ts
|
|
2
|
-
var AlertTriangle = {
|
|
3
|
-
"icon": {
|
|
4
|
-
"type": "root",
|
|
5
|
-
"children": [{
|
|
6
|
-
"type": "element",
|
|
7
|
-
"tagName": "svg",
|
|
8
|
-
"properties": { "viewBox": "0 0 20 20" },
|
|
9
|
-
"children": [{
|
|
10
|
-
"type": "element",
|
|
11
|
-
"tagName": "path",
|
|
12
|
-
"properties": {
|
|
13
|
-
"fillRule": "evenodd",
|
|
14
|
-
"d": "M18.892 14.558 12.183 2.892a2.5 2.5 0 0 0-4.366 0L1.15 14.558a2.5 2.5 0 0 0 2.133 3.775h13.434a2.5 2.5 0 0 0 2.175-3.775M10 6.667a.833.833 0 0 0-.833.833v3.333a.833.833 0 0 0 1.666 0V7.5A.834.834 0 0 0 10 6.667m-.463 6.807a.833.833 0 1 1 .926 1.385.833.833 0 0 1-.926-1.385",
|
|
15
|
-
"clipRule": "evenodd"
|
|
16
|
-
},
|
|
17
|
-
"children": []
|
|
18
|
-
}],
|
|
19
|
-
"metadata": ""
|
|
20
|
-
}]
|
|
21
|
-
},
|
|
22
|
-
"name": "alert-triangle"
|
|
23
|
-
};
|
|
24
|
-
//#endregion
|
|
25
|
-
export { AlertTriangle as default };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
//#region src/icons/ast/field-units-large.ts
|
|
2
|
-
var FieldUnitsLarge = {
|
|
3
|
-
"icon": {
|
|
4
|
-
"type": "root",
|
|
5
|
-
"children": [{
|
|
6
|
-
"type": "element",
|
|
7
|
-
"tagName": "svg",
|
|
8
|
-
"properties": { "viewBox": "0 0 20 20" },
|
|
9
|
-
"children": [{
|
|
10
|
-
"type": "element",
|
|
11
|
-
"tagName": "path",
|
|
12
|
-
"properties": {
|
|
13
|
-
"fillRule": "evenodd",
|
|
14
|
-
"d": "M2 12.75A2.25 2.25 0 0 0 4.25 15h11.5A2.25 2.25 0 0 0 18 12.75v-5.5A2.25 2.25 0 0 0 15.75 5H4.25A2.25 2.25 0 0 0 2 7.25zm1.5 0c0 .414.336.75.75.75h11.5a.75.75 0 0 0 .75-.75v-5.5a.75.75 0 0 0-.75-.75H4.25a.75.75 0 0 0-.75.75zm6.75-3.5a.75.75 0 0 0 0 1.5h3.5a.75.75 0 0 0 0-1.5zM6 8.5a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1v-1a1 1 0 0 0-1-1z",
|
|
15
|
-
"clipRule": "evenodd"
|
|
16
|
-
},
|
|
17
|
-
"children": []
|
|
18
|
-
}],
|
|
19
|
-
"metadata": ""
|
|
20
|
-
}]
|
|
21
|
-
},
|
|
22
|
-
"name": "field-units-large"
|
|
23
|
-
};
|
|
24
|
-
//#endregion
|
|
25
|
-
export { FieldUnitsLarge as default };
|
package/lib/icons/ast/plus.d.ts
DELETED
package/lib/icons/ast/plus.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
//#region src/icons/ast/plus.ts
|
|
2
|
-
var Plus = {
|
|
3
|
-
"icon": {
|
|
4
|
-
"type": "root",
|
|
5
|
-
"children": [{
|
|
6
|
-
"type": "element",
|
|
7
|
-
"tagName": "svg",
|
|
8
|
-
"properties": { "viewBox": "0 0 20 20" },
|
|
9
|
-
"children": [{
|
|
10
|
-
"type": "element",
|
|
11
|
-
"tagName": "path",
|
|
12
|
-
"properties": {
|
|
13
|
-
"fillRule": "evenodd",
|
|
14
|
-
"d": "M10 4.25a.75.75 0 0 1 .75.75v4.25H15a.75.75 0 0 1 0 1.5h-4.25V15a.75.75 0 0 1-1.5 0v-4.25H5a.75.75 0 0 1 0-1.5h4.25V5a.75.75 0 0 1 .75-.75",
|
|
15
|
-
"clipRule": "evenodd"
|
|
16
|
-
},
|
|
17
|
-
"children": []
|
|
18
|
-
}],
|
|
19
|
-
"metadata": ""
|
|
20
|
-
}]
|
|
21
|
-
},
|
|
22
|
-
"name": "plus"
|
|
23
|
-
};
|
|
24
|
-
//#endregion
|
|
25
|
-
export { Plus as default };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
//#region src/icons/react/alert-triangle.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* This file was automatically generated. Do not edit manually.
|
|
4
|
-
*
|
|
5
|
-
* @see import("../svg/alert-triangle.svg")
|
|
6
|
-
* @see import("../../scripts/generate-icons.ts")
|
|
7
|
-
*/
|
|
8
|
-
declare const AlertTriangle: import("react").ForwardRefExoticComponent<Omit<import("react").SVGProps<SVGSVGElement>, "color" | "ref"> & {
|
|
9
|
-
containerSize?: number;
|
|
10
|
-
iconSize?: number;
|
|
11
|
-
color?: string | null | undefined;
|
|
12
|
-
colorProcessed?: boolean;
|
|
13
|
-
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
14
|
-
//#endregion
|
|
15
|
-
export { AlertTriangle as default };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Icon } from "../icon.js";
|
|
2
|
-
import AlertTriangle$1 from "../ast/alert-triangle.js";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
import { forwardRef } from "react";
|
|
5
|
-
//#region src/icons/react/alert-triangle.tsx
|
|
6
|
-
/**
|
|
7
|
-
* This file was automatically generated. Do not edit manually.
|
|
8
|
-
*
|
|
9
|
-
* @see import("../svg/alert-triangle.svg")
|
|
10
|
-
* @see import("../../scripts/generate-icons.ts")
|
|
11
|
-
*/
|
|
12
|
-
var AlertTriangle = forwardRef(function AlertTriangle(props, ref) {
|
|
13
|
-
return /* @__PURE__ */ jsx(Icon, {
|
|
14
|
-
...props,
|
|
15
|
-
className: props.className,
|
|
16
|
-
ref,
|
|
17
|
-
icon: AlertTriangle$1
|
|
18
|
-
});
|
|
19
|
-
});
|
|
20
|
-
//#endregion
|
|
21
|
-
export { AlertTriangle as default };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
//#region src/icons/react/field-units-large.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* This file was automatically generated. Do not edit manually.
|
|
4
|
-
*
|
|
5
|
-
* @see import("../svg/field-units-large.svg")
|
|
6
|
-
* @see import("../../scripts/generate-icons.ts")
|
|
7
|
-
*/
|
|
8
|
-
declare const FieldUnitsLarge: import("react").ForwardRefExoticComponent<Omit<import("react").SVGProps<SVGSVGElement>, "color" | "ref"> & {
|
|
9
|
-
containerSize?: number;
|
|
10
|
-
iconSize?: number;
|
|
11
|
-
color?: string | null | undefined;
|
|
12
|
-
colorProcessed?: boolean;
|
|
13
|
-
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
14
|
-
//#endregion
|
|
15
|
-
export { FieldUnitsLarge as default };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Icon } from "../icon.js";
|
|
2
|
-
import FieldUnitsLarge$1 from "../ast/field-units-large.js";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
import { forwardRef } from "react";
|
|
5
|
-
//#region src/icons/react/field-units-large.tsx
|
|
6
|
-
/**
|
|
7
|
-
* This file was automatically generated. Do not edit manually.
|
|
8
|
-
*
|
|
9
|
-
* @see import("../svg/field-units-large.svg")
|
|
10
|
-
* @see import("../../scripts/generate-icons.ts")
|
|
11
|
-
*/
|
|
12
|
-
var FieldUnitsLarge = forwardRef(function FieldUnitsLarge(props, ref) {
|
|
13
|
-
return /* @__PURE__ */ jsx(Icon, {
|
|
14
|
-
...props,
|
|
15
|
-
className: props.className,
|
|
16
|
-
ref,
|
|
17
|
-
icon: FieldUnitsLarge$1
|
|
18
|
-
});
|
|
19
|
-
});
|
|
20
|
-
//#endregion
|
|
21
|
-
export { FieldUnitsLarge as default };
|
package/lib/layout.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { ComponentProps } from "react";
|
|
2
|
-
//#region src/layout.d.ts
|
|
3
|
-
declare const verticalAlignmentsToAlignItems: {
|
|
4
|
-
top: string;
|
|
5
|
-
center: string;
|
|
6
|
-
bottom: string;
|
|
7
|
-
};
|
|
8
|
-
declare const verticalAlignments: Array<keyof typeof verticalAlignmentsToAlignItems>;
|
|
9
|
-
interface HStackProps extends ComponentProps<"div"> {
|
|
10
|
-
alignment: keyof typeof verticalAlignmentsToAlignItems;
|
|
11
|
-
spacing?: number;
|
|
12
|
-
padding?: number;
|
|
13
|
-
}
|
|
14
|
-
declare const HStack: import("react").ForwardRefExoticComponent<Omit<HStackProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
15
|
-
declare const horizontalAlignmentsToAlignItems: {
|
|
16
|
-
leading: string;
|
|
17
|
-
center: string;
|
|
18
|
-
trailing: string;
|
|
19
|
-
};
|
|
20
|
-
declare const horizontalAlignments: Array<keyof typeof horizontalAlignmentsToAlignItems>;
|
|
21
|
-
interface VStackProps extends ComponentProps<"div"> {
|
|
22
|
-
alignment: keyof typeof horizontalAlignmentsToAlignItems;
|
|
23
|
-
spacing?: number;
|
|
24
|
-
padding?: number;
|
|
25
|
-
}
|
|
26
|
-
declare const VStack: import("react").ForwardRefExoticComponent<Omit<VStackProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
27
|
-
//#endregion
|
|
28
|
-
export { HStack, VStack, horizontalAlignments, verticalAlignments };
|
package/lib/layout.js
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import "./layout.wyw-in-js.css";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
import { forwardRef } from "react";
|
|
5
|
-
import { styled } from "@linaria/react";
|
|
6
|
-
//#region src/layout.tsx
|
|
7
|
-
var verticalAlignmentsToAlignItems = {
|
|
8
|
-
top: "flex-start",
|
|
9
|
-
center: "center",
|
|
10
|
-
bottom: "flex-end"
|
|
11
|
-
};
|
|
12
|
-
var verticalAlignments = Object.keys(verticalAlignmentsToAlignItems);
|
|
13
|
-
var _exp = () => (({ alignItemsType }) => alignItemsType);
|
|
14
|
-
var _exp2 = () => (({ paddingStyle = 0 }) => paddingStyle);
|
|
15
|
-
var _exp3 = () => (({ spacingStyle = 0 }) => spacingStyle);
|
|
16
|
-
var HStackStyle = /*#__PURE__*/ styled("div")({
|
|
17
|
-
name: "HStackStyle",
|
|
18
|
-
class: "highyvt-HStack",
|
|
19
|
-
propsAsIs: false,
|
|
20
|
-
vars: {
|
|
21
|
-
"highyvt-0": [_exp()],
|
|
22
|
-
"highyvt-1": [_exp2(), "px"],
|
|
23
|
-
"highyvt-2": [_exp3(), "px"]
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
var HStack = forwardRef(({ alignment, spacing, padding, children, ...rest }, ref) => {
|
|
27
|
-
return /* @__PURE__ */ jsx(HStackStyle, {
|
|
28
|
-
ref,
|
|
29
|
-
alignItemsType: verticalAlignmentsToAlignItems[alignment],
|
|
30
|
-
paddingStyle: padding,
|
|
31
|
-
spacingStyle: spacing,
|
|
32
|
-
...rest,
|
|
33
|
-
children
|
|
34
|
-
});
|
|
35
|
-
});
|
|
36
|
-
var horizontalAlignmentsToAlignItems = {
|
|
37
|
-
leading: "flex-start",
|
|
38
|
-
center: "center",
|
|
39
|
-
trailing: "flex-end"
|
|
40
|
-
};
|
|
41
|
-
var horizontalAlignments = Object.keys(horizontalAlignmentsToAlignItems);
|
|
42
|
-
var _exp4 = () => (({ alignItemsType }) => alignItemsType);
|
|
43
|
-
var _exp5 = () => (({ paddingStyle = 0 }) => paddingStyle);
|
|
44
|
-
var _exp6 = () => (({ spacingStyle = 0 }) => spacingStyle);
|
|
45
|
-
var VStackStyle = /*#__PURE__*/ styled("div")({
|
|
46
|
-
name: "VStackStyle",
|
|
47
|
-
class: "vsoocrd-VStack",
|
|
48
|
-
propsAsIs: false,
|
|
49
|
-
vars: {
|
|
50
|
-
"vsoocrd-0": [_exp4()],
|
|
51
|
-
"vsoocrd-1": [_exp5(), "px"],
|
|
52
|
-
"vsoocrd-2": [_exp6(), "px"]
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
var VStack = forwardRef(({ alignment, spacing, children, padding, ...rest }, ref) => {
|
|
56
|
-
return /* @__PURE__ */ jsx(VStackStyle, {
|
|
57
|
-
ref,
|
|
58
|
-
alignItemsType: horizontalAlignmentsToAlignItems[alignment],
|
|
59
|
-
paddingStyle: padding,
|
|
60
|
-
spacingStyle: spacing,
|
|
61
|
-
...rest,
|
|
62
|
-
children
|
|
63
|
-
});
|
|
64
|
-
});
|
|
65
|
-
//#endregion
|
|
66
|
-
export { HStack, VStack, horizontalAlignments, verticalAlignments };
|
package/lib/layout.wyw-in-js.css
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
.highyvt-HStack{display:flex;flex-direction:row;align-items:var(--highyvt-0);padding:var(--highyvt-1);}.highyvt-HStack>*+*{margin-left:var(--highyvt-2);}
|
|
2
|
-
.vsoocrd-VStack{display:flex;flex-direction:column;align-items:var(--vsoocrd-0);padding:var(--vsoocrd-1);}.vsoocrd-VStack>*+*{margin-top:var(--vsoocrd-2);}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { $TSFixMe } from "./tsfixme.js";
|
|
2
|
-
import { CardSize } from "./card-container.js";
|
|
3
|
-
import { CSSProperties, FC, ReactNode, RefObject } from "react";
|
|
4
|
-
//#region src/new-card-placeholder.d.ts
|
|
5
|
-
declare const outlineNoneClassName: import("@linaria/core").LinariaClassName;
|
|
6
|
-
interface NewCardPlaceholderProps {
|
|
7
|
-
typeTitle?: string;
|
|
8
|
-
size: CardSize;
|
|
9
|
-
containerClassName?: string;
|
|
10
|
-
inputStyle?: CSSProperties;
|
|
11
|
-
leftContainer?: ReactNode;
|
|
12
|
-
scrollToInput?: boolean;
|
|
13
|
-
bypassedRef: RefObject<HTMLDivElement>;
|
|
14
|
-
referenceSelector?: ReactNode;
|
|
15
|
-
selectorOpen?: boolean;
|
|
16
|
-
readOnly?: boolean;
|
|
17
|
-
onSubmit: (v: {
|
|
18
|
-
event: $TSFixMe;
|
|
19
|
-
title: string;
|
|
20
|
-
}) => Promise<void>;
|
|
21
|
-
onHide: () => void;
|
|
22
|
-
onHideByEsc?: () => void;
|
|
23
|
-
}
|
|
24
|
-
declare const NewCardPlaceholder: FC<NewCardPlaceholderProps>;
|
|
25
|
-
//#endregion
|
|
26
|
-
export { NewCardPlaceholder, outlineNoneClassName };
|