@fibery/ui-kit 9.0.0 → 9.0.2
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 +1 -1
- package/lib/actions-menu/actions-menu-separator.d.ts +2 -2
- package/lib/actions-menu/index.d.ts +3 -3
- package/lib/antd/input-number.js +2 -2
- package/lib/antd/input.js +2 -2
- package/lib/board-table-loader.js +1 -1
- package/lib/card-container.js +1 -1
- package/lib/copy-to-clipboard.js +2 -1
- package/lib/date-picker/date-range-input.js +1 -1
- package/lib/date-picker/relative-date-picker.js +5 -3
- package/lib/date-picker/single-date-input.js +1 -1
- 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/design-system/alpha.d.ts +6 -0
- package/lib/design-system/alpha.js +6 -0
- package/lib/embed.js +20 -35
- package/lib/embed.wyw-in-js.css +1 -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/errors.d.ts +2 -3
- package/lib/guide-link.js +1 -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 -1
- package/lib/icons/ast/index.js +5 -4
- package/lib/icons/ast/spinner.js +7 -1
- package/lib/icons/react/build.d.ts +15 -0
- package/lib/icons/react/build.js +21 -0
- package/lib/icons/react/index.d.ts +2 -1
- package/lib/icons/react/index.js +5 -4
- 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/mobile-drawer.wyw-in-js.css +2 -2
- package/lib/popover/index.d.ts +5 -10
- package/lib/popover/index.js +11 -22
- package/lib/popover/mobile-popover.d.ts +2 -2
- package/lib/popover/popup-modifiers-context.d.ts +3 -5
- package/lib/root-theme-provider.d.ts +11 -0
- package/lib/root-theme-provider.js +107 -0
- package/lib/root-theme-provider.wyw-in-js.css +1 -0
- package/lib/select/components/drop-down-indicator.js +1 -1
- package/lib/select/components/menu-list-virtualized.js +1 -1
- package/lib/select/select-in-popover.js +1 -1
- package/lib/select/select.js +3 -3
- package/lib/select/styles.js +2 -2
- package/lib/spinner.d.ts +9 -0
- package/lib/spinner.js +13 -0
- package/lib/thematic-state.js +1 -1
- package/lib/thematic.js +1 -1
- package/lib/theme-provider.d.ts +4 -8
- package/lib/theme-provider.js +5 -96
- package/lib/theme-provider.wyw-in-js.css +1 -2
- 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/unit/primitive.js +56 -51
- package/lib/unit/primitive.wyw-in-js.css +2 -2
- 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/package.json +6 -3
- 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/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
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/icons/react/build.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* This file was automatically generated. Do not edit manually.
|
|
4
|
+
*
|
|
5
|
+
* @see import("../svg/build.svg")
|
|
6
|
+
* @see import("../../scripts/generate-icons.ts")
|
|
7
|
+
*/
|
|
8
|
+
declare const Build: 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 { Build as default };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Icon } from "../icon.js";
|
|
2
|
+
import Build$1 from "../ast/build.js";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { forwardRef } from "react";
|
|
5
|
+
//#region src/icons/react/build.tsx
|
|
6
|
+
/**
|
|
7
|
+
* This file was automatically generated. Do not edit manually.
|
|
8
|
+
*
|
|
9
|
+
* @see import("../svg/build.svg")
|
|
10
|
+
* @see import("../../scripts/generate-icons.ts")
|
|
11
|
+
*/
|
|
12
|
+
var Build = forwardRef(function Build(props, ref) {
|
|
13
|
+
return /* @__PURE__ */ jsx(Icon, {
|
|
14
|
+
...props,
|
|
15
|
+
className: props.className,
|
|
16
|
+
ref,
|
|
17
|
+
icon: Build$1
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
//#endregion
|
|
21
|
+
export { Build as default };
|
|
@@ -42,6 +42,7 @@ import BellRinging from "./bell-ringing.js";
|
|
|
42
42
|
import BellX from "./bell-x.js";
|
|
43
43
|
import BringForward from "./bring-forward.js";
|
|
44
44
|
import BringToFront from "./bring-to-front.js";
|
|
45
|
+
import Build from "./build.js";
|
|
45
46
|
import Cards from "./cards.js";
|
|
46
47
|
import ChatBubble from "./chat-bubble.js";
|
|
47
48
|
import ChatFloat from "./chat-float.js";
|
|
@@ -363,4 +364,4 @@ import IntegrationFigma from "./integration-figma.js";
|
|
|
363
364
|
import IntegrationFibery from "./integration-fibery.js";
|
|
364
365
|
import IntegrationDiscourse from "./integration-discourse.js";
|
|
365
366
|
import IntegrationAdd from "./integration-add.js";
|
|
366
|
-
export { Abort, AccessTemplate, Activity, ActivityFilled, ActivityLog, Add, AddAfter, AddBefore, AddCompact, AiAssistant, AiAssistantFilled, AiFiberyBuild, AlertTriangle, App, AppearanceAuto, AppearanceDark, AppearanceLight, Architect, ArrowBack, ArrowBarDown, ArrowBarLeft, ArrowBarRight, ArrowBarUp, ArrowCollapse, ArrowCollapseVertical, ArrowDown, ArrowForward, ArrowLeft, ArrowRight, ArrowSend, ArrowUp, ArrowUpCircle, ArrowsRightLeft, AskForInput, Asterisk, Atom, Avatar, Backlog, BellCircle, BellOff, BellRinging, BellX, BringForward, BringToFront, Cards, ChatBubble, ChatFloat, ChatSidebar, Checked, CircleCheck, CircleCheckFilled, CircleCross, CircleCrossFilled, CircleInfo, CircleInfoFilled, CirclePause, CirclePlay, Clear, ClearInputFilled, Clock, ClockAlarm, ClockForward, Close, CollapseAll, CollapseAllHorizontal, ColorCoding, Columns, Columns2, Columns4, CommentBubble, Comments, Copy, CreditsFilled, Crosshair, Database, DatabaseAdd, DatabaseOutline, DateRange, Delete, DragBlockHandle, DragHandle, Duplicate, DynamicFilterValue, Email, EmojiDelete, EntityCreate, EntityCreateFilled, EntityMerge, Equation, ExpandAll, ExpandAllHorizontal, Export, Eye, EyeOff, Favorites, FavoritesFilled, FavoritesOff, FiberyMono, FieldUnitsLarge, Fields, FileArchive, FileCounter, FileDocument, FileDownload, FileImage, FileMultiple, FileOther, FilePresentation, FileTable, FileUpload, FileVideo, Files, Filter, FitToScreen, FocusMode, FocusModeOff, Folder, FolderFavorite, FolderSmart, FormWithCover, FormWithoutCover, FullscreenModeOff, FullscreenModeOn, Gift, GlobeSimple, GlobeUnpublish, GoTo, GraduationCapFilled, GroupAdd, Headphones, HeadphonesAi, Highlights, Hint, Home, HomeFilled, ImageError, Import, ImportFilled, Integration, IntegrationAdd, IntegrationDiscourse, IntegrationFibery, IntegrationFigma, IntegrationGithub, IntegrationGitlab, IntegrationGoogleDrive, IntegrationGoogleMap, IntegrationIntercom, IntegrationJira, IntegrationLoom, IntegrationMiro, IntegrationMixpanel, IntegrationSlack, IntegrationSuggest, IntegrationTwitter, IntegrationUnsplash, IntegrationYoutube, IntegrationZendesk, IntegrationsFilled, Items, ItemsTimeline, Key, KeyboardHideDown, Lab, LayoutDouble, LayoutMultiple, LayoutSingle, Levels, Limits, LineDivider, LineJump, Link, LocationEdit, Lock, LockFilled, Logout, LoupeZoomIn, LoupeZoomOut, MapMode, Markdown, MenuCollapser, Mermaid, MessagePlus, Milestones, Minus, MirrorOff, MirrorOn, Monitor, More, MoreCompact, MoveDown, MoveLeft, MoveRight, MoveUp, NoBorder, NoFill, ObjChild, ObjM2M, ObjO2O, ObjParent, ObjSelf, OnSchedule, OpenInPanel, OpenLink, PageRegularMode, PageWideMode, PanelAdd, Pencil, People, PeopleAll, PeopleCheck, PeopleEdit, PeopleGroup, PeopleGroupRemove, PeopleInvite, PeopleRemove, PeopleRole, PeopleX, Photo, Pin, PinFilled, Plus, Preferences, PresentPlay, PresentStop, Print, PrivateItems, Propagate, Question, ReactionsAdd, ReadOnly, Redo, References, Refresh, Remove, ResetPassword, RicheditorBlockCallout, RicheditorBlockCode, RicheditorBlockEmbed, RicheditorBlockEntity, RicheditorBlockFile, RicheditorBlockH1, RicheditorBlockH2, RicheditorBlockH3, RicheditorBlockH4, RicheditorBlockMention, RicheditorBlockParagraph, RicheditorBlockQuote, RicheditorChecklistCreate, RicheditorImage, RicheditorImageAlignCenter, RicheditorImageAlignLeft, RicheditorImageAlignRight, RicheditorLinkedhighlightCreate, RicheditorListBullet, RicheditorListIndent, RicheditorListOrdered, RicheditorListUnindent, RicheditorMarkCode, RicheditorMarkEm, RicheditorMarkHighlight, RicheditorMarkStrike, RicheditorMarkStrong, RicheditorMarkTextBackgroundColor, RicheditorMarkUnderline, RicheditorTableCreate, RicheditorVideoUpload, Rows, Rule, Search, SearchAdd, SearchFilled, SearchRemove, SelfReferenceOff, SelfReferenceOn, SendBackward, SendToBack, Settings, SettingsFilled, Share, ShieldKeyhole, ShowAuthor, SimpleCompass, SlideMenu, SlideMenuFilled, Sort, SpaceAdd, SpaceApp, SpaceGenerate, SpaceMove, SpaceScratch, SpaceTemplate, Spinner, SwitchToText, SwitchToWidget, TableLayout, Templates, TemplatesFilled, Terminal, TextNoWrap, TextToolAlignBottom, TextToolAlignMiddle, TextToolAlignTop, TextWrap, Toc, TypeButton, TypeCheckbox, TypeDate, TypeEmail, TypeEmoji, TypeFormula, TypeLocation, TypeLookup, TypeMoney, TypeMultiSelect, TypeNumber, TypePercent, TypePhone, TypeRelation, TypeRichText, TypeSingleSelect, TypeText, Undo, UnitsAvatar, UnitsCollection, UnitsCounter, UnitsDate, UnitsField, UnitsFieldIconButton, UnitsInput, UnitsNormal, UnitsProgressBar, UnitsRichText, UnitsSnippet, Unlink, Unlock, UnlockFilled, UsbFlashDrive, ValueClear, ValueEdit, ViewAi, ViewApp, ViewBoard, ViewCalendar, ViewCanvas, ViewChart, ViewDashboard, ViewDetails, ViewDocument, ViewEmbed, ViewFeed, ViewForm, ViewGallery, ViewGantt, ViewList, ViewMap, ViewPage, ViewTable, ViewTimeline, Views, Warning, WarningTriangle, WarningTriangleFilled, Webhooks, Workflow };
|
|
367
|
+
export { Abort, AccessTemplate, Activity, ActivityFilled, ActivityLog, Add, AddAfter, AddBefore, AddCompact, AiAssistant, AiAssistantFilled, AiFiberyBuild, AlertTriangle, App, AppearanceAuto, AppearanceDark, AppearanceLight, Architect, ArrowBack, ArrowBarDown, ArrowBarLeft, ArrowBarRight, ArrowBarUp, ArrowCollapse, ArrowCollapseVertical, ArrowDown, ArrowForward, ArrowLeft, ArrowRight, ArrowSend, ArrowUp, ArrowUpCircle, ArrowsRightLeft, AskForInput, Asterisk, Atom, Avatar, Backlog, BellCircle, BellOff, BellRinging, BellX, BringForward, BringToFront, Build, Cards, ChatBubble, ChatFloat, ChatSidebar, Checked, CircleCheck, CircleCheckFilled, CircleCross, CircleCrossFilled, CircleInfo, CircleInfoFilled, CirclePause, CirclePlay, Clear, ClearInputFilled, Clock, ClockAlarm, ClockForward, Close, CollapseAll, CollapseAllHorizontal, ColorCoding, Columns, Columns2, Columns4, CommentBubble, Comments, Copy, CreditsFilled, Crosshair, Database, DatabaseAdd, DatabaseOutline, DateRange, Delete, DragBlockHandle, DragHandle, Duplicate, DynamicFilterValue, Email, EmojiDelete, EntityCreate, EntityCreateFilled, EntityMerge, Equation, ExpandAll, ExpandAllHorizontal, Export, Eye, EyeOff, Favorites, FavoritesFilled, FavoritesOff, FiberyMono, FieldUnitsLarge, Fields, FileArchive, FileCounter, FileDocument, FileDownload, FileImage, FileMultiple, FileOther, FilePresentation, FileTable, FileUpload, FileVideo, Files, Filter, FitToScreen, FocusMode, FocusModeOff, Folder, FolderFavorite, FolderSmart, FormWithCover, FormWithoutCover, FullscreenModeOff, FullscreenModeOn, Gift, GlobeSimple, GlobeUnpublish, GoTo, GraduationCapFilled, GroupAdd, Headphones, HeadphonesAi, Highlights, Hint, Home, HomeFilled, ImageError, Import, ImportFilled, Integration, IntegrationAdd, IntegrationDiscourse, IntegrationFibery, IntegrationFigma, IntegrationGithub, IntegrationGitlab, IntegrationGoogleDrive, IntegrationGoogleMap, IntegrationIntercom, IntegrationJira, IntegrationLoom, IntegrationMiro, IntegrationMixpanel, IntegrationSlack, IntegrationSuggest, IntegrationTwitter, IntegrationUnsplash, IntegrationYoutube, IntegrationZendesk, IntegrationsFilled, Items, ItemsTimeline, Key, KeyboardHideDown, Lab, LayoutDouble, LayoutMultiple, LayoutSingle, Levels, Limits, LineDivider, LineJump, Link, LocationEdit, Lock, LockFilled, Logout, LoupeZoomIn, LoupeZoomOut, MapMode, Markdown, MenuCollapser, Mermaid, MessagePlus, Milestones, Minus, MirrorOff, MirrorOn, Monitor, More, MoreCompact, MoveDown, MoveLeft, MoveRight, MoveUp, NoBorder, NoFill, ObjChild, ObjM2M, ObjO2O, ObjParent, ObjSelf, OnSchedule, OpenInPanel, OpenLink, PageRegularMode, PageWideMode, PanelAdd, Pencil, People, PeopleAll, PeopleCheck, PeopleEdit, PeopleGroup, PeopleGroupRemove, PeopleInvite, PeopleRemove, PeopleRole, PeopleX, Photo, Pin, PinFilled, Plus, Preferences, PresentPlay, PresentStop, Print, PrivateItems, Propagate, Question, ReactionsAdd, ReadOnly, Redo, References, Refresh, Remove, ResetPassword, RicheditorBlockCallout, RicheditorBlockCode, RicheditorBlockEmbed, RicheditorBlockEntity, RicheditorBlockFile, RicheditorBlockH1, RicheditorBlockH2, RicheditorBlockH3, RicheditorBlockH4, RicheditorBlockMention, RicheditorBlockParagraph, RicheditorBlockQuote, RicheditorChecklistCreate, RicheditorImage, RicheditorImageAlignCenter, RicheditorImageAlignLeft, RicheditorImageAlignRight, RicheditorLinkedhighlightCreate, RicheditorListBullet, RicheditorListIndent, RicheditorListOrdered, RicheditorListUnindent, RicheditorMarkCode, RicheditorMarkEm, RicheditorMarkHighlight, RicheditorMarkStrike, RicheditorMarkStrong, RicheditorMarkTextBackgroundColor, RicheditorMarkUnderline, RicheditorTableCreate, RicheditorVideoUpload, Rows, Rule, Search, SearchAdd, SearchFilled, SearchRemove, SelfReferenceOff, SelfReferenceOn, SendBackward, SendToBack, Settings, SettingsFilled, Share, ShieldKeyhole, ShowAuthor, SimpleCompass, SlideMenu, SlideMenuFilled, Sort, SpaceAdd, SpaceApp, SpaceGenerate, SpaceMove, SpaceScratch, SpaceTemplate, Spinner, SwitchToText, SwitchToWidget, TableLayout, Templates, TemplatesFilled, Terminal, TextNoWrap, TextToolAlignBottom, TextToolAlignMiddle, TextToolAlignTop, TextWrap, Toc, TypeButton, TypeCheckbox, TypeDate, TypeEmail, TypeEmoji, TypeFormula, TypeLocation, TypeLookup, TypeMoney, TypeMultiSelect, TypeNumber, TypePercent, TypePhone, TypeRelation, TypeRichText, TypeSingleSelect, TypeText, Undo, UnitsAvatar, UnitsCollection, UnitsCounter, UnitsDate, UnitsField, UnitsFieldIconButton, UnitsInput, UnitsNormal, UnitsProgressBar, UnitsRichText, UnitsSnippet, Unlink, Unlock, UnlockFilled, UsbFlashDrive, ValueClear, ValueEdit, ViewAi, ViewApp, ViewBoard, ViewCalendar, ViewCanvas, ViewChart, ViewDashboard, ViewDetails, ViewDocument, ViewEmbed, ViewFeed, ViewForm, ViewGallery, ViewGantt, ViewList, ViewMap, ViewPage, ViewTable, ViewTimeline, Views, Warning, WarningTriangle, WarningTriangleFilled, Webhooks, Workflow };
|
package/lib/icons/react/index.js
CHANGED
|
@@ -14,7 +14,6 @@ import AppearanceLight from "./appearance-light.js";
|
|
|
14
14
|
import ImageError from "./image-error.js";
|
|
15
15
|
import LockFilled from "./lock-filled.js";
|
|
16
16
|
import ArrowLeft from "./arrow-left.js";
|
|
17
|
-
import CircleCross from "./circle-cross.js";
|
|
18
17
|
import WarningTriangle from "./warning-triangle.js";
|
|
19
18
|
import Hint from "./hint.js";
|
|
20
19
|
import Checked from "./checked.js";
|
|
@@ -68,11 +67,12 @@ import FocusMode from "./focus-mode.js";
|
|
|
68
67
|
import FavoritesFilled from "./favorites-filled.js";
|
|
69
68
|
import Favorites from "./favorites.js";
|
|
70
69
|
import DragHandle from "./drag-handle.js";
|
|
71
|
-
import Remove from "./remove.js";
|
|
72
|
-
import ArrowCollapseVertical from "./arrow-collapse-vertical.js";
|
|
73
70
|
import AlertTriangle from "./alert-triangle.js";
|
|
74
71
|
import CircleCheckFilled from "./circle-check-filled.js";
|
|
72
|
+
import Remove from "./remove.js";
|
|
73
|
+
import ArrowCollapseVertical from "./arrow-collapse-vertical.js";
|
|
75
74
|
import ReactionsAdd from "./reactions-add.js";
|
|
75
|
+
import CircleCross from "./circle-cross.js";
|
|
76
76
|
import ArrowBack from "./arrow-back.js";
|
|
77
77
|
import ArrowForward from "./arrow-forward.js";
|
|
78
78
|
import LoupeZoomIn from "./loupe-zoom-in.js";
|
|
@@ -332,6 +332,7 @@ import ChatSidebar from "./chat-sidebar.js";
|
|
|
332
332
|
import ChatFloat from "./chat-float.js";
|
|
333
333
|
import ChatBubble from "./chat-bubble.js";
|
|
334
334
|
import Cards from "./cards.js";
|
|
335
|
+
import Build from "./build.js";
|
|
335
336
|
import BringToFront from "./bring-to-front.js";
|
|
336
337
|
import BringForward from "./bring-forward.js";
|
|
337
338
|
import BellX from "./bell-x.js";
|
|
@@ -363,4 +364,4 @@ import ActivityLog from "./activity-log.js";
|
|
|
363
364
|
import ActivityFilled from "./activity-filled.js";
|
|
364
365
|
import AccessTemplate from "./access-template.js";
|
|
365
366
|
import Abort from "./abort.js";
|
|
366
|
-
export { Abort, AccessTemplate, Activity, ActivityFilled, ActivityLog, Add, AddAfter, AddBefore, AddCompact, AiAssistant, AiAssistantFilled, AiFiberyBuild, AlertTriangle, App, AppearanceAuto, AppearanceDark, AppearanceLight, Architect, ArrowBack, ArrowBarDown, ArrowBarLeft, ArrowBarRight, ArrowBarUp, ArrowCollapse, ArrowCollapseVertical, ArrowDown, ArrowForward, ArrowLeft, ArrowRight, ArrowSend, ArrowUp, ArrowUpCircle, ArrowsRightLeft, AskForInput, Asterisk, Atom, Avatar, Backlog, BellCircle, BellOff, BellRinging, BellX, BringForward, BringToFront, Cards, ChatBubble, ChatFloat, ChatSidebar, Checked, CircleCheck, CircleCheckFilled, CircleCross, CircleCrossFilled, CircleInfo, CircleInfoFilled, CirclePause, CirclePlay, Clear, ClearInputFilled, Clock, ClockAlarm, ClockForward, Close, CollapseAll, CollapseAllHorizontal, ColorCoding, Columns, Columns2, Columns4, CommentBubble, Comments, Copy, CreditsFilled, Crosshair, Database, DatabaseAdd, DatabaseOutline, DateRange, Delete, DragBlockHandle, DragHandle, Duplicate, DynamicFilterValue, Email, EmojiDelete, EntityCreate, EntityCreateFilled, EntityMerge, Equation, ExpandAll, ExpandAllHorizontal, Export, Eye, EyeOff, Favorites, FavoritesFilled, FavoritesOff, FiberyMono, FieldUnitsLarge, Fields, FileArchive, FileCounter, FileDocument, FileDownload, FileImage, FileMultiple, FileOther, FilePresentation, FileTable, FileUpload, FileVideo, Files, Filter, FitToScreen, FocusMode, FocusModeOff, Folder, FolderFavorite, FolderSmart, FormWithCover, FormWithoutCover, FullscreenModeOff, FullscreenModeOn, Gift, GlobeSimple, GlobeUnpublish, GoTo, GraduationCapFilled, GroupAdd, Headphones, HeadphonesAi, Highlights, Hint, Home, HomeFilled, ImageError, Import, ImportFilled, Integration, IntegrationAdd, IntegrationDiscourse, IntegrationFibery, IntegrationFigma, IntegrationGithub, IntegrationGitlab, IntegrationGoogleDrive, IntegrationGoogleMap, IntegrationIntercom, IntegrationJira, IntegrationLoom, IntegrationMiro, IntegrationMixpanel, IntegrationSlack, IntegrationSuggest, IntegrationTwitter, IntegrationUnsplash, IntegrationYoutube, IntegrationZendesk, IntegrationsFilled, Items, ItemsTimeline, Key, KeyboardHideDown, Lab, LayoutDouble, LayoutMultiple, LayoutSingle, Levels, Limits, LineDivider, LineJump, Link, LocationEdit, Lock, LockFilled, Logout, LoupeZoomIn, LoupeZoomOut, MapMode, Markdown, MenuCollapser, Mermaid, MessagePlus, Milestones, Minus, MirrorOff, MirrorOn, Monitor, More, MoreCompact, MoveDown, MoveLeft, MoveRight, MoveUp, NoBorder, NoFill, ObjChild, ObjM2M, ObjO2O, ObjParent, ObjSelf, OnSchedule, OpenInPanel, OpenLink, PageRegularMode, PageWideMode, PanelAdd, Pencil, People, PeopleAll, PeopleCheck, PeopleEdit, PeopleGroup, PeopleGroupRemove, PeopleInvite, PeopleRemove, PeopleRole, PeopleX, Photo, Pin, PinFilled, Plus, Preferences, PresentPlay, PresentStop, Print, PrivateItems, Propagate, Question, ReactionsAdd, ReadOnly, Redo, References, Refresh, Remove, ResetPassword, RicheditorBlockCallout, RicheditorBlockCode, RicheditorBlockEmbed, RicheditorBlockEntity, RicheditorBlockFile, RicheditorBlockH1, RicheditorBlockH2, RicheditorBlockH3, RicheditorBlockH4, RicheditorBlockMention, RicheditorBlockParagraph, RicheditorBlockQuote, RicheditorChecklistCreate, RicheditorImage, RicheditorImageAlignCenter, RicheditorImageAlignLeft, RicheditorImageAlignRight, RicheditorLinkedhighlightCreate, RicheditorListBullet, RicheditorListIndent, RicheditorListOrdered, RicheditorListUnindent, RicheditorMarkCode, RicheditorMarkEm, RicheditorMarkHighlight, RicheditorMarkStrike, RicheditorMarkStrong, RicheditorMarkTextBackgroundColor, RicheditorMarkUnderline, RicheditorTableCreate, RicheditorVideoUpload, Rows, Rule, Search, SearchAdd, SearchFilled, SearchRemove, SelfReferenceOff, SelfReferenceOn, SendBackward, SendToBack, Settings, SettingsFilled, Share, ShieldKeyhole, ShowAuthor, SimpleCompass, SlideMenu, SlideMenuFilled, Sort, SpaceAdd, SpaceApp, SpaceGenerate, SpaceMove, SpaceScratch, SpaceTemplate, Spinner, SwitchToText, SwitchToWidget, TableLayout, Templates, TemplatesFilled, Terminal, TextNoWrap, TextToolAlignBottom, TextToolAlignMiddle, TextToolAlignTop, TextWrap, Toc, TypeButton, TypeCheckbox, TypeDate, TypeEmail, TypeEmoji, TypeFormula, TypeLocation, TypeLookup, TypeMoney, TypeMultiSelect, TypeNumber, TypePercent, TypePhone, TypeRelation, TypeRichText, TypeSingleSelect, TypeText, Undo, UnitsAvatar, UnitsCollection, UnitsCounter, UnitsDate, UnitsField, UnitsFieldIconButton, UnitsInput, UnitsNormal, UnitsProgressBar, UnitsRichText, UnitsSnippet, Unlink, Unlock, UnlockFilled, UsbFlashDrive, ValueClear, ValueEdit, ViewAi, ViewApp, ViewBoard, ViewCalendar, ViewCanvas, ViewChart, ViewDashboard, ViewDetails, ViewDocument, ViewEmbed, ViewFeed, ViewForm, ViewGallery, ViewGantt, ViewList, ViewMap, ViewPage, ViewTable, ViewTimeline, Views, Warning, WarningTriangle, WarningTriangleFilled, Webhooks, Workflow };
|
|
367
|
+
export { Abort, AccessTemplate, Activity, ActivityFilled, ActivityLog, Add, AddAfter, AddBefore, AddCompact, AiAssistant, AiAssistantFilled, AiFiberyBuild, AlertTriangle, App, AppearanceAuto, AppearanceDark, AppearanceLight, Architect, ArrowBack, ArrowBarDown, ArrowBarLeft, ArrowBarRight, ArrowBarUp, ArrowCollapse, ArrowCollapseVertical, ArrowDown, ArrowForward, ArrowLeft, ArrowRight, ArrowSend, ArrowUp, ArrowUpCircle, ArrowsRightLeft, AskForInput, Asterisk, Atom, Avatar, Backlog, BellCircle, BellOff, BellRinging, BellX, BringForward, BringToFront, Build, Cards, ChatBubble, ChatFloat, ChatSidebar, Checked, CircleCheck, CircleCheckFilled, CircleCross, CircleCrossFilled, CircleInfo, CircleInfoFilled, CirclePause, CirclePlay, Clear, ClearInputFilled, Clock, ClockAlarm, ClockForward, Close, CollapseAll, CollapseAllHorizontal, ColorCoding, Columns, Columns2, Columns4, CommentBubble, Comments, Copy, CreditsFilled, Crosshair, Database, DatabaseAdd, DatabaseOutline, DateRange, Delete, DragBlockHandle, DragHandle, Duplicate, DynamicFilterValue, Email, EmojiDelete, EntityCreate, EntityCreateFilled, EntityMerge, Equation, ExpandAll, ExpandAllHorizontal, Export, Eye, EyeOff, Favorites, FavoritesFilled, FavoritesOff, FiberyMono, FieldUnitsLarge, Fields, FileArchive, FileCounter, FileDocument, FileDownload, FileImage, FileMultiple, FileOther, FilePresentation, FileTable, FileUpload, FileVideo, Files, Filter, FitToScreen, FocusMode, FocusModeOff, Folder, FolderFavorite, FolderSmart, FormWithCover, FormWithoutCover, FullscreenModeOff, FullscreenModeOn, Gift, GlobeSimple, GlobeUnpublish, GoTo, GraduationCapFilled, GroupAdd, Headphones, HeadphonesAi, Highlights, Hint, Home, HomeFilled, ImageError, Import, ImportFilled, Integration, IntegrationAdd, IntegrationDiscourse, IntegrationFibery, IntegrationFigma, IntegrationGithub, IntegrationGitlab, IntegrationGoogleDrive, IntegrationGoogleMap, IntegrationIntercom, IntegrationJira, IntegrationLoom, IntegrationMiro, IntegrationMixpanel, IntegrationSlack, IntegrationSuggest, IntegrationTwitter, IntegrationUnsplash, IntegrationYoutube, IntegrationZendesk, IntegrationsFilled, Items, ItemsTimeline, Key, KeyboardHideDown, Lab, LayoutDouble, LayoutMultiple, LayoutSingle, Levels, Limits, LineDivider, LineJump, Link, LocationEdit, Lock, LockFilled, Logout, LoupeZoomIn, LoupeZoomOut, MapMode, Markdown, MenuCollapser, Mermaid, MessagePlus, Milestones, Minus, MirrorOff, MirrorOn, Monitor, More, MoreCompact, MoveDown, MoveLeft, MoveRight, MoveUp, NoBorder, NoFill, ObjChild, ObjM2M, ObjO2O, ObjParent, ObjSelf, OnSchedule, OpenInPanel, OpenLink, PageRegularMode, PageWideMode, PanelAdd, Pencil, People, PeopleAll, PeopleCheck, PeopleEdit, PeopleGroup, PeopleGroupRemove, PeopleInvite, PeopleRemove, PeopleRole, PeopleX, Photo, Pin, PinFilled, Plus, Preferences, PresentPlay, PresentStop, Print, PrivateItems, Propagate, Question, ReactionsAdd, ReadOnly, Redo, References, Refresh, Remove, ResetPassword, RicheditorBlockCallout, RicheditorBlockCode, RicheditorBlockEmbed, RicheditorBlockEntity, RicheditorBlockFile, RicheditorBlockH1, RicheditorBlockH2, RicheditorBlockH3, RicheditorBlockH4, RicheditorBlockMention, RicheditorBlockParagraph, RicheditorBlockQuote, RicheditorChecklistCreate, RicheditorImage, RicheditorImageAlignCenter, RicheditorImageAlignLeft, RicheditorImageAlignRight, RicheditorLinkedhighlightCreate, RicheditorListBullet, RicheditorListIndent, RicheditorListOrdered, RicheditorListUnindent, RicheditorMarkCode, RicheditorMarkEm, RicheditorMarkHighlight, RicheditorMarkStrike, RicheditorMarkStrong, RicheditorMarkTextBackgroundColor, RicheditorMarkUnderline, RicheditorTableCreate, RicheditorVideoUpload, Rows, Rule, Search, SearchAdd, SearchFilled, SearchRemove, SelfReferenceOff, SelfReferenceOn, SendBackward, SendToBack, Settings, SettingsFilled, Share, ShieldKeyhole, ShowAuthor, SimpleCompass, SlideMenu, SlideMenuFilled, Sort, SpaceAdd, SpaceApp, SpaceGenerate, SpaceMove, SpaceScratch, SpaceTemplate, Spinner, SwitchToText, SwitchToWidget, TableLayout, Templates, TemplatesFilled, Terminal, TextNoWrap, TextToolAlignBottom, TextToolAlignMiddle, TextToolAlignTop, TextWrap, Toc, TypeButton, TypeCheckbox, TypeDate, TypeEmail, TypeEmoji, TypeFormula, TypeLocation, TypeLookup, TypeMoney, TypeMultiSelect, TypeNumber, TypePercent, TypePhone, TypeRelation, TypeRichText, TypeSingleSelect, TypeText, Undo, UnitsAvatar, UnitsCollection, UnitsCounter, UnitsDate, UnitsField, UnitsFieldIconButton, UnitsInput, UnitsNormal, UnitsProgressBar, UnitsRichText, UnitsSnippet, Unlink, Unlock, UnlockFilled, UsbFlashDrive, ValueClear, ValueEdit, ViewAi, ViewApp, ViewBoard, ViewCalendar, ViewCanvas, ViewChart, ViewDashboard, ViewDetails, ViewDocument, ViewEmbed, ViewFeed, ViewForm, ViewGallery, ViewGantt, ViewList, ViewMap, ViewPage, ViewTable, ViewTimeline, Views, Warning, WarningTriangle, WarningTriangleFilled, Webhooks, Workflow };
|
|
@@ -3,7 +3,7 @@ import { textClasses } from "./design-system/typography.js";
|
|
|
3
3
|
import { useTheme } from "./theme-provider.js";
|
|
4
4
|
import { Tooltip } from "./tooltip.js";
|
|
5
5
|
import { BaseButton } from "./button/base-button.js";
|
|
6
|
-
import { Spinner } from "./
|
|
6
|
+
import { Spinner } from "./spinner.js";
|
|
7
7
|
import WarningTriangle from "./icons/react/warning-triangle.js";
|
|
8
8
|
/* empty css */
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -21,7 +21,6 @@ var IntegrationCompactInfoButton = ({ onClick, loading, icon, name, title, error
|
|
|
21
21
|
});
|
|
22
22
|
else if (loading) iconNode = /* @__PURE__ */ jsx(Spinner, {
|
|
23
23
|
color: theme.colors.accentTextColor,
|
|
24
|
-
backgroundColor: theme.colors.mainBg,
|
|
25
24
|
iconSize: 16,
|
|
26
25
|
containerSize: 24
|
|
27
26
|
});
|
package/lib/is-in-popup.d.ts
CHANGED
package/lib/is-in-popup.js
CHANGED
|
@@ -7,7 +7,13 @@ var selectors = [
|
|
|
7
7
|
`.${basicPopupContainerClassName}`,
|
|
8
8
|
`.${basicPopupClassName}`
|
|
9
9
|
];
|
|
10
|
+
var isMatchableTarget = (target) => {
|
|
11
|
+
if (!target) return false;
|
|
12
|
+
const candidate = target;
|
|
13
|
+
return typeof candidate.matches === "function" && typeof candidate.closest === "function";
|
|
14
|
+
};
|
|
10
15
|
function isInPopup(el) {
|
|
16
|
+
if (!isMatchableTarget(el)) return false;
|
|
11
17
|
return selectors.some((selector) => el.matches(selector) || el.closest(selector));
|
|
12
18
|
}
|
|
13
19
|
//#endregion
|
package/lib/loaders.d.ts
CHANGED
|
@@ -17,14 +17,6 @@ declare const LoadingApp: ({ backgroundColor, appName }: {
|
|
|
17
17
|
backgroundColor?: string;
|
|
18
18
|
appName: string;
|
|
19
19
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
-
type Props = {
|
|
21
|
-
iconSize?: number;
|
|
22
|
-
containerSize?: number;
|
|
23
|
-
width?: number;
|
|
24
|
-
color?: string;
|
|
25
|
-
backgroundColor?: string;
|
|
26
|
-
};
|
|
27
|
-
declare const Spinner: import("react").NamedExoticComponent<Props>;
|
|
28
20
|
declare const LoadingTreeMenuItem: ({ color, Icon, level, children }: {
|
|
29
21
|
color?: string;
|
|
30
22
|
Icon: React.FC<IconBaseProps>;
|
|
@@ -32,4 +24,4 @@ declare const LoadingTreeMenuItem: ({ color, Icon, level, children }: {
|
|
|
32
24
|
children?: ReactNode;
|
|
33
25
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
34
26
|
//#endregion
|
|
35
|
-
export { LoadingApp, LoadingHeader, LoadingPage, LoadingTreeMenuItem, LoadingView, SidebarLoadingPage
|
|
27
|
+
export { LoadingApp, LoadingHeader, LoadingPage, LoadingTreeMenuItem, LoadingView, SidebarLoadingPage };
|
package/lib/loaders.js
CHANGED
|
@@ -4,10 +4,8 @@ import { layout, space } from "./design-system/layout.js";
|
|
|
4
4
|
import { textClasses } from "./design-system/typography.js";
|
|
5
5
|
import { useTheme } from "./theme-provider.js";
|
|
6
6
|
import { LoadingSausage } from "./loading-sausage.js";
|
|
7
|
-
import { getShiftStyle } from "./icons/get-shift-style.js";
|
|
8
7
|
/* empty css */
|
|
9
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
-
import { memo, useMemo } from "react";
|
|
11
9
|
import { cx } from "@linaria/core";
|
|
12
10
|
import { styled } from "@linaria/react";
|
|
13
11
|
//#region src/loaders.tsx
|
|
@@ -57,45 +55,10 @@ var LoadingApp = ({ backgroundColor = "transparent", appName }) => /* @__PURE__
|
|
|
57
55
|
maxWidth: 100
|
|
58
56
|
})]
|
|
59
57
|
});
|
|
60
|
-
var spinner = "s1h2eo35-spinner";
|
|
61
|
-
var _exp13 = () => ((props) => props.containerSize);
|
|
62
|
-
var ContainerSpinner = /*#__PURE__*/ styled("div")({
|
|
63
|
-
name: "ContainerSpinner",
|
|
64
|
-
class: "co2bhfe-ContainerSpinner",
|
|
65
|
-
propsAsIs: false,
|
|
66
|
-
vars: { "co2bhfe-0": [_exp13(), "px"] }
|
|
67
|
-
});
|
|
68
|
-
var Spinner = memo(({ iconSize = 20, containerSize = 15, width = 2, color = themeVars.iconColor, backgroundColor = themeVars.badgeBgColor }) => {
|
|
69
|
-
return /* @__PURE__ */ jsx(ContainerSpinner, {
|
|
70
|
-
containerSize,
|
|
71
|
-
children: jsx("div", {
|
|
72
|
-
style: useMemo(() => {
|
|
73
|
-
return {
|
|
74
|
-
width: iconSize,
|
|
75
|
-
height: iconSize,
|
|
76
|
-
...getShiftStyle({
|
|
77
|
-
elementSize: iconSize,
|
|
78
|
-
containerSize
|
|
79
|
-
}),
|
|
80
|
-
borderWidth: width,
|
|
81
|
-
borderColor: backgroundColor,
|
|
82
|
-
borderTopColor: color
|
|
83
|
-
};
|
|
84
|
-
}, [
|
|
85
|
-
backgroundColor,
|
|
86
|
-
color,
|
|
87
|
-
containerSize,
|
|
88
|
-
iconSize,
|
|
89
|
-
width
|
|
90
|
-
]),
|
|
91
|
-
className: spinner
|
|
92
|
-
})
|
|
93
|
-
});
|
|
94
|
-
});
|
|
95
58
|
var LoadingTreeMenuItem = ({ color, Icon, level, children }) => {
|
|
96
59
|
const theme = useTheme();
|
|
97
60
|
return /* @__PURE__ */ jsxs("div", {
|
|
98
|
-
className: cx("
|
|
61
|
+
className: cx("c1h2eo35", level === 0 && "co2bhfe"),
|
|
99
62
|
children: [/* @__PURE__ */ jsx(Icon, {
|
|
100
63
|
color,
|
|
101
64
|
containerSize: layout.newMenuItemHeight,
|
|
@@ -107,4 +70,4 @@ var LoadingTreeMenuItem = ({ color, Icon, level, children }) => {
|
|
|
107
70
|
});
|
|
108
71
|
};
|
|
109
72
|
//#endregion
|
|
110
|
-
export { LoadingApp, LoadingHeader, LoadingPage, LoadingTreeMenuItem, LoadingView, SidebarLoadingPage
|
|
73
|
+
export { LoadingApp, LoadingHeader, LoadingPage, LoadingTreeMenuItem, LoadingView, SidebarLoadingPage };
|
|
@@ -3,7 +3,5 @@
|
|
|
3
3
|
.com8x8n{width:30vw;min-width:480px;padding-bottom:24px;overflow-y:scroll;height:100%;}
|
|
4
4
|
.lj4xy9w-loaderWrapper{padding:48px;height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;margin-left:12px;margin-right:12px;border-radius:6px;}
|
|
5
5
|
.lmoaxkm-loader{padding-bottom:6px;}
|
|
6
|
-
.
|
|
7
|
-
.co2bhfe
|
|
8
|
-
.c1xwgiiw{display:flex;gap:0;align-items:center;height:28px;}
|
|
9
|
-
.c1ycmczd{padding-left:5px;gap:6px;}
|
|
6
|
+
.c1h2eo35{display:flex;gap:0;align-items:center;height:28px;}
|
|
7
|
+
.co2bhfe{padding-left:5px;gap:6px;}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.ojyfzum-overlay{position:fixed;inset:0;z-index:1002;background:var(--modalBg);}
|
|
2
|
-
.c1vy11tb-content{position:fixed;left:0;right:0;bottom:0;z-index:1002;display:grid;grid-template-rows:auto 60px 1fr;height:calc(100% - var(--safe-area-inset-top) - 24px);background:var(--actionMenuBg);border-top-left-radius:
|
|
2
|
+
.c1vy11tb-content{position:fixed;left:0;right:0;bottom:0;z-index:1002;display:grid;grid-template-rows:auto 60px 1fr;height:calc(100% - var(--safe-area-inset-top) - 24px);background:var(--actionMenuBg);border-top-left-radius:16px;border-top-right-radius:16px;}
|
|
3
3
|
.h18829ip-handle{margin:8px auto 0;width:36px;height:4px;border-radius:2px;background:var(--borderSeparator);}
|
|
4
4
|
.hosmc1y-header{display:flex;align-items:center;gap:8px;padding:8px 8px 8px 20px;min-width:0;}
|
|
5
|
-
.tuxrkcm-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
|
|
5
|
+
.tuxrkcm-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0;}
|
|
6
6
|
.b1hd7yu8-body{border-top:var(--borderSeparatorDimmed);min-width:0;overflow-y:auto;padding-bottom:var(--safe-area-inset-bottom);}
|
package/lib/popover/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { $TSFixMe } from "../tsfixme.js";
|
|
2
1
|
import { Reference } from "./reference.js";
|
|
3
|
-
import { CSSProperties,
|
|
2
|
+
import { CSSProperties, ReactNode } from "react";
|
|
4
3
|
import { Modifier, Placement, State, createPopper } from "@popperjs/core";
|
|
5
4
|
import { Options } from "@popperjs/core/lib/modifiers/flip";
|
|
6
5
|
import { Options as Options$1 } from "@popperjs/core/lib/modifiers/preventOverflow";
|
|
@@ -10,9 +9,6 @@ type PopoverRootProps = {
|
|
|
10
9
|
children: ReactNode;
|
|
11
10
|
open: boolean;
|
|
12
11
|
disabled?: boolean;
|
|
13
|
-
triggerElement?: Reference;
|
|
14
|
-
setTriggerElement?: (value: Reference) => void;
|
|
15
|
-
popupElement?: HTMLDivElement | null;
|
|
16
12
|
setPopupElement?: (value: HTMLDivElement | null) => void;
|
|
17
13
|
onOpenChange?: (value: boolean) => void;
|
|
18
14
|
/** @deprecated Use onOpenChange prop instead **/
|
|
@@ -35,16 +31,15 @@ type PopoverTriggerProps = {
|
|
|
35
31
|
type PopoverContentProps = {
|
|
36
32
|
children: ReactNode;
|
|
37
33
|
placement?: Placement;
|
|
38
|
-
popupStyle?:
|
|
34
|
+
popupStyle?: CSSProperties;
|
|
39
35
|
popupClassName?: string;
|
|
40
36
|
popupContainerClassName?: string;
|
|
41
37
|
offset?: [number, number];
|
|
42
|
-
padding?: number;
|
|
43
38
|
renderBackdrop?: boolean;
|
|
44
39
|
backdropClassName?: string;
|
|
45
40
|
preventOverflowOptions?: Partial<Options$1>;
|
|
46
41
|
flipOptions?: Partial<Options>;
|
|
47
|
-
additionalModifiers?:
|
|
42
|
+
additionalModifiers?: PopoverModifier[];
|
|
48
43
|
hidePopupWhenTriggerIsHidden?: boolean;
|
|
49
44
|
shrinkable?: boolean;
|
|
50
45
|
supportMobile?: boolean;
|
|
@@ -63,7 +58,6 @@ type PopoverContentProps = {
|
|
|
63
58
|
fixStackingContextAfterOpen?: boolean;
|
|
64
59
|
/** ran after Popup positioned the element the first time */
|
|
65
60
|
onFirstUpdate?: () => void;
|
|
66
|
-
onMouseLeave?: (e: MouseEvent<HTMLDivElement>) => void;
|
|
67
61
|
/**
|
|
68
62
|
* Event handler called when auto-focusing on open.
|
|
69
63
|
* Can be prevented.
|
|
@@ -75,6 +69,7 @@ type PopoverContentProps = {
|
|
|
75
69
|
*/
|
|
76
70
|
onCloseAutoFocus?: FocusScopeProps["onUnmountAutoFocus"];
|
|
77
71
|
} & React.ComponentProps<"div">;
|
|
72
|
+
type PopoverModifier = Partial<Modifier<string, Record<string, unknown>>>;
|
|
78
73
|
type ContentRef = {
|
|
79
74
|
update: (() => Promise<unknown>) | null;
|
|
80
75
|
};
|
|
@@ -91,4 +86,4 @@ declare const Popover: {
|
|
|
91
86
|
Content: import("react").ForwardRefExoticComponent<Omit<PopoverContentProps, "ref"> & import("react").RefAttributes<ContentRef>>;
|
|
92
87
|
};
|
|
93
88
|
//#endregion
|
|
94
|
-
export { ContentRef, type Placement, Popover, type PopoverContentProps, type PopoverPortalProps, type PopoverRootProps, type PopoverTriggerProps, type Reference, type State, createPopper };
|
|
89
|
+
export { ContentRef, type Placement, Popover, type PopoverContentProps, PopoverModifier, type PopoverPortalProps, type PopoverRootProps, type PopoverTriggerProps, type Reference, type State, createPopper };
|
package/lib/popover/index.js
CHANGED
|
@@ -27,6 +27,7 @@ import { createPopper } from "@popperjs/core";
|
|
|
27
27
|
import { FocusScope } from "@radix-ui/react-focus-scope";
|
|
28
28
|
import { usePopper } from "react-popper";
|
|
29
29
|
//#region src/popover/index.tsx
|
|
30
|
+
var POPUP_OVERFLOW_PADDING = space.s8;
|
|
30
31
|
var [PopoverProvider, usePopoverContext] = createContext$1("PopoverContext");
|
|
31
32
|
var PopoverRoot = (props) => {
|
|
32
33
|
const { children, open, disabled = false, onOpenChange, onOpen, onClose, ...rest } = props;
|
|
@@ -44,15 +45,8 @@ var PopoverRoot = (props) => {
|
|
|
44
45
|
onOpenPopoverChange(open);
|
|
45
46
|
return () => onOpenPopoverChange(false);
|
|
46
47
|
}, [open, onOpenPopoverChange]);
|
|
47
|
-
const [triggerElement, setTriggerElement] = useControllableState({
|
|
48
|
-
|
|
49
|
-
onChange: rest.setTriggerElement
|
|
50
|
-
});
|
|
51
|
-
const [popupElement, setPopupElement] = useControllableState({
|
|
52
|
-
value: rest.popupElement,
|
|
53
|
-
onChange: rest.setPopupElement
|
|
54
|
-
});
|
|
55
|
-
const composedSetTriggerElement = useComposedRefs(setTriggerElement, rest.setTriggerElement);
|
|
48
|
+
const [triggerElement, setTriggerElement] = useControllableState({});
|
|
49
|
+
const [popupElement, setPopupElement] = useControllableState({ onChange: rest.setPopupElement });
|
|
56
50
|
const composedSetPopupElement = useComposedRefs(setPopupElement, rest.setPopupElement);
|
|
57
51
|
return /* @__PURE__ */ jsx(PopoverProvider, {
|
|
58
52
|
value: useMemo(() => {
|
|
@@ -60,7 +54,7 @@ var PopoverRoot = (props) => {
|
|
|
60
54
|
contentId,
|
|
61
55
|
disabled,
|
|
62
56
|
triggerElement,
|
|
63
|
-
setTriggerElement
|
|
57
|
+
setTriggerElement,
|
|
64
58
|
popupElement,
|
|
65
59
|
setPopupElement: composedSetPopupElement,
|
|
66
60
|
open,
|
|
@@ -71,7 +65,7 @@ var PopoverRoot = (props) => {
|
|
|
71
65
|
contentId,
|
|
72
66
|
disabled,
|
|
73
67
|
triggerElement,
|
|
74
|
-
|
|
68
|
+
setTriggerElement,
|
|
75
69
|
popupElement,
|
|
76
70
|
composedSetPopupElement,
|
|
77
71
|
open,
|
|
@@ -137,7 +131,7 @@ var Popover = {
|
|
|
137
131
|
}),
|
|
138
132
|
Portal: PopoverPortal,
|
|
139
133
|
Content: forwardRef((props, ref) => {
|
|
140
|
-
const { children, placement, popupStyle, popupContainerClassName, popupClassName, offset = [0, 0],
|
|
134
|
+
const { children, placement, popupStyle, popupContainerClassName, popupClassName, offset = [0, 0], renderBackdrop, backdropClassName, preventOverflowOptions = {}, flipOptions = {}, additionalModifiers = [], hidePopupWhenTriggerIsHidden = true, shrinkable, supportMobile = false, title = "", mobilePopupStyle, mobilePopupContentClassName, fixStackingContextAfterOpen = false, transform, onFirstUpdate, onOpenAutoFocus, onCloseAutoFocus, ...rest } = props;
|
|
141
135
|
const { contentId, open, onClose, triggerElement, popupElement, setPopupElement } = usePopoverContext();
|
|
142
136
|
const popupModifiers = usePopupModifiers();
|
|
143
137
|
const isPhone = useIsPhone();
|
|
@@ -181,14 +175,10 @@ var Popover = {
|
|
|
181
175
|
]);
|
|
182
176
|
const shrinkableModifiers = useMemo(() => {
|
|
183
177
|
return shrinkable ? [makeMaxSizeModifier({
|
|
184
|
-
padding,
|
|
178
|
+
padding: POPUP_OVERFLOW_PADDING,
|
|
185
179
|
...preventOverflowOptions
|
|
186
180
|
}), applyMaxSize] : [];
|
|
187
|
-
}, [
|
|
188
|
-
padding,
|
|
189
|
-
preventOverflowOptions,
|
|
190
|
-
shrinkable
|
|
191
|
-
]);
|
|
181
|
+
}, [preventOverflowOptions, shrinkable]);
|
|
192
182
|
const { styles, attributes, update } = usePopper(triggerElement, popupElement, {
|
|
193
183
|
placement,
|
|
194
184
|
onFirstUpdate,
|
|
@@ -197,7 +187,7 @@ var Popover = {
|
|
|
197
187
|
{
|
|
198
188
|
name: "flip",
|
|
199
189
|
options: {
|
|
200
|
-
padding,
|
|
190
|
+
padding: POPUP_OVERFLOW_PADDING,
|
|
201
191
|
...popupModifiers.flipOptions,
|
|
202
192
|
...flipOptions
|
|
203
193
|
}
|
|
@@ -206,7 +196,7 @@ var Popover = {
|
|
|
206
196
|
name: "preventOverflow",
|
|
207
197
|
options: {
|
|
208
198
|
tether: false,
|
|
209
|
-
padding,
|
|
199
|
+
padding: POPUP_OVERFLOW_PADDING,
|
|
210
200
|
...popupModifiers.preventOverflowOptions,
|
|
211
201
|
...preventOverflowOptions
|
|
212
202
|
}
|
|
@@ -228,7 +218,6 @@ var Popover = {
|
|
|
228
218
|
additionalModifiers,
|
|
229
219
|
flipOptions,
|
|
230
220
|
offset,
|
|
231
|
-
padding,
|
|
232
221
|
popupModifiers,
|
|
233
222
|
preventOverflowOptions,
|
|
234
223
|
shrinkableModifiers,
|
|
@@ -256,7 +245,7 @@ var Popover = {
|
|
|
256
245
|
if (!open) return null;
|
|
257
246
|
if (!transform && !triggerElement) return null;
|
|
258
247
|
if (isPhone && supportMobile) return /* @__PURE__ */ jsx(MobilePopoverProvider, { children: jsx(MobilePopover, {
|
|
259
|
-
onClose,
|
|
248
|
+
onClose: (event) => onClose(event.nativeEvent),
|
|
260
249
|
title,
|
|
261
250
|
mobilePopupContentClassName,
|
|
262
251
|
mobilePopupStyle,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CSSProperties, ReactNode } from "react";
|
|
1
|
+
import { CSSProperties, MouseEventHandler, ReactNode } from "react";
|
|
2
2
|
//#region src/popover/mobile-popover.d.ts
|
|
3
3
|
declare const mobileZIndex = 1002;
|
|
4
4
|
declare function MobilePopover({ content, mobilePopupStyle, mobilePopupContentClassName, title, onClose, height, onNavigateBack }: {
|
|
@@ -7,7 +7,7 @@ declare function MobilePopover({ content, mobilePopupStyle, mobilePopupContentCl
|
|
|
7
7
|
mobilePopupContentClassName?: string;
|
|
8
8
|
title: string;
|
|
9
9
|
height?: string;
|
|
10
|
-
onClose?:
|
|
10
|
+
onClose?: MouseEventHandler<HTMLElement>;
|
|
11
11
|
onNavigateBack?: () => void;
|
|
12
12
|
}): import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
//#endregion
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { PopoverContentProps } from "./index.js";
|
|
3
|
-
import { Modifier } from "react-popper";
|
|
1
|
+
import { PopoverContentProps, PopoverModifier } from "./index.js";
|
|
4
2
|
//#region src/popover/popup-modifiers-context.d.ts
|
|
5
3
|
declare const PopupModifiersProvider: import("react").Provider<{
|
|
6
4
|
getPopupContainer: () => HTMLElement;
|
|
7
|
-
additionalModifiers?:
|
|
5
|
+
additionalModifiers?: PopoverModifier[];
|
|
8
6
|
preventOverflowOptions?: PopoverContentProps["preventOverflowOptions"];
|
|
9
7
|
flipOptions?: PopoverContentProps["flipOptions"];
|
|
10
8
|
}>, usePopupModifiers: () => {
|
|
11
9
|
getPopupContainer: () => HTMLElement;
|
|
12
|
-
additionalModifiers?:
|
|
10
|
+
additionalModifiers?: PopoverModifier[];
|
|
13
11
|
preventOverflowOptions?: PopoverContentProps["preventOverflowOptions"];
|
|
14
12
|
flipOptions?: PopoverContentProps["flipOptions"];
|
|
15
13
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ThemeMode, ThemePreference } from "./theme-settings-core.js";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
//#region src/root-theme-provider.d.ts
|
|
4
|
+
declare function RootThemeProvider({ initialThemeMode, initialPreference, isArchitect, children }: {
|
|
5
|
+
initialThemeMode: ThemeMode;
|
|
6
|
+
initialPreference: ThemePreference;
|
|
7
|
+
isArchitect?: boolean;
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
}): JSX.Element;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { RootThemeProvider };
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import "./root-theme-provider.wyw-in-js.css";
|
|
2
|
+
import { selectPalette } from "./palette-generator.js";
|
|
3
|
+
import { neutralStyles, warmStyles } from "./theming.generated.js";
|
|
4
|
+
import { themeFromPalette } from "./design-system/theme.js";
|
|
5
|
+
import { locateThemeBundle } from "./theme-styles.js";
|
|
6
|
+
import { RootThemeStylesContext, ThematicContext, ThemeContext, ThemePaletteContext, ThemePreferenceContext, ThemeProvider, ThemeStylesContext } from "./theme-provider.js";
|
|
7
|
+
import { subscribeOnThemeModeChange, subscribeOnThemePreferenceChange } from "./theme-settings-core.js";
|
|
8
|
+
import { useWarmPreference } from "./theme-settings.js";
|
|
9
|
+
import { globalOverrides } from "./antd/global-overrides.js";
|
|
10
|
+
import { layoutStyles } from "./layout-styles.js";
|
|
11
|
+
/* empty css */
|
|
12
|
+
import { jsx } from "react/jsx-runtime";
|
|
13
|
+
import { useEffect, useInsertionEffect, useLayoutEffect, useMemo, useState } from "react";
|
|
14
|
+
//#region src/root-theme-provider.tsx
|
|
15
|
+
var darkClassName = "dark-theme";
|
|
16
|
+
var warmClassName = "warm-palette";
|
|
17
|
+
var warmStickyClassName = "warm-palette-sticky";
|
|
18
|
+
/**
|
|
19
|
+
* Document-level theming. Kept out of `theme-provider.tsx` so that importing a context or a
|
|
20
|
+
* `ThemeProvider` never drags these `:global()` blocks into an embedding host's document.
|
|
21
|
+
*/
|
|
22
|
+
var globals = "g16cgj2y-globals";
|
|
23
|
+
function chooseGlobalStyles(themeMode, warm) {
|
|
24
|
+
const htmlElement = document.documentElement;
|
|
25
|
+
htmlElement.classList.toggle(darkClassName, themeMode === "dark");
|
|
26
|
+
htmlElement.classList.toggle(warmClassName, warm || htmlElement.classList.contains(warmStickyClassName));
|
|
27
|
+
const colorScheme = themeMode === "dark" ? "dark" : "light";
|
|
28
|
+
htmlElement.style.colorScheme = colorScheme;
|
|
29
|
+
document.querySelector("meta[name=\"color-scheme\"]")?.setAttribute("content", colorScheme);
|
|
30
|
+
htmlElement.classList.add(globals);
|
|
31
|
+
htmlElement.classList.add(globalOverrides);
|
|
32
|
+
}
|
|
33
|
+
function useUpdateBrowserThemeColor(light, dark) {
|
|
34
|
+
useEffect(() => {
|
|
35
|
+
const lightEl = document.querySelector("meta[name=\"theme-color\"][media*=\"light\"]");
|
|
36
|
+
const darkEl = document.querySelector("meta[name=\"theme-color\"][media*=\"dark\"]");
|
|
37
|
+
lightEl?.setAttribute("content", light.colors.mainBg);
|
|
38
|
+
darkEl?.setAttribute("content", dark.colors.mainBg);
|
|
39
|
+
}, [light.colors.mainBg, dark.colors.mainBg]);
|
|
40
|
+
}
|
|
41
|
+
function RootThemeProvider({ initialThemeMode, initialPreference, isArchitect = false, children }) {
|
|
42
|
+
const [mode, setMode] = useState(initialThemeMode);
|
|
43
|
+
useEffect(() => subscribeOnThemeModeChange(setMode), []);
|
|
44
|
+
const dark = mode === "dark";
|
|
45
|
+
const [warm] = useWarmPreference();
|
|
46
|
+
useInsertionEffect(() => chooseGlobalStyles(mode, warm), [mode, warm]);
|
|
47
|
+
const [paletteOverride, setPaletteOverride] = useState(null);
|
|
48
|
+
const truePalette = useMemo(() => selectPalette({
|
|
49
|
+
warmLook: warm,
|
|
50
|
+
isArchitect
|
|
51
|
+
}), [warm, isArchitect]);
|
|
52
|
+
const palette = useMemo(() => paletteOverride ?? truePalette, [paletteOverride, truePalette]);
|
|
53
|
+
let res = /* @__PURE__ */ jsx(ThemeProvider, {
|
|
54
|
+
theme: themeFromPalette(palette, mode),
|
|
55
|
+
children
|
|
56
|
+
});
|
|
57
|
+
const { themes: [lightThemeColors, darkThemeColors] } = locateThemeBundle(warm);
|
|
58
|
+
const styleBundle = warm ? warmStyles : neutralStyles;
|
|
59
|
+
const cssThemeColors = dark ? darkThemeColors : lightThemeColors;
|
|
60
|
+
const cssThemeStyles = dark ? styleBundle.dark : styleBundle.light;
|
|
61
|
+
res = /* @__PURE__ */ jsx(ThemeStylesContext.Provider, {
|
|
62
|
+
value: cssThemeStyles,
|
|
63
|
+
children: res
|
|
64
|
+
});
|
|
65
|
+
res = /* @__PURE__ */ jsx(RootThemeStylesContext.Provider, {
|
|
66
|
+
value: cssThemeStyles,
|
|
67
|
+
children: res
|
|
68
|
+
});
|
|
69
|
+
res = /* @__PURE__ */ jsx(ThemeContext.Provider, {
|
|
70
|
+
value: cssThemeColors,
|
|
71
|
+
children: res
|
|
72
|
+
});
|
|
73
|
+
useUpdateBrowserThemeColor(lightThemeColors, darkThemeColors);
|
|
74
|
+
res = /* @__PURE__ */ jsx(ThemePaletteContext.Provider, {
|
|
75
|
+
value: palette,
|
|
76
|
+
children: res
|
|
77
|
+
});
|
|
78
|
+
const thematicContextValue = useMemo(() => ({
|
|
79
|
+
palette,
|
|
80
|
+
truePalette,
|
|
81
|
+
setPalette: setPaletteOverride
|
|
82
|
+
}), [
|
|
83
|
+
palette,
|
|
84
|
+
truePalette,
|
|
85
|
+
setPaletteOverride
|
|
86
|
+
]);
|
|
87
|
+
res = /* @__PURE__ */ jsx(ThematicContext.Provider, {
|
|
88
|
+
value: thematicContextValue,
|
|
89
|
+
children: res
|
|
90
|
+
});
|
|
91
|
+
const [themePreference, setThemePreference] = useState(initialPreference);
|
|
92
|
+
useEffect(() => subscribeOnThemePreferenceChange(setThemePreference), []);
|
|
93
|
+
res = /* @__PURE__ */ jsx(ThemePreferenceContext.Provider, {
|
|
94
|
+
value: themePreference,
|
|
95
|
+
children: res
|
|
96
|
+
});
|
|
97
|
+
useLayoutEffect(() => {
|
|
98
|
+
const documentElement = document.documentElement;
|
|
99
|
+
documentElement.classList.add(layoutStyles);
|
|
100
|
+
return () => {
|
|
101
|
+
documentElement.classList.remove(layoutStyles);
|
|
102
|
+
};
|
|
103
|
+
}, []);
|
|
104
|
+
return res;
|
|
105
|
+
}
|
|
106
|
+
//#endregion
|
|
107
|
+
export { RootThemeProvider };
|