goobs-frontend 0.9.35 → 0.122.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/README.md +136 -335
- package/package.json +36 -26
- package/src/components/Accordion/accordion.stories.tsx +1150 -239
- package/src/components/Accordion/index.tsx +350 -610
- package/src/components/Alert/alert.stories.tsx +238 -0
- package/src/components/Alert/index.tsx +143 -0
- package/src/components/AppBar/index.tsx +285 -0
- package/src/components/Avatar/index.tsx +48 -0
- package/src/components/Badge/badge.stories.tsx +1020 -0
- package/src/components/Badge/index.tsx +23 -0
- package/src/components/Breadcrumb/breadcrumb.stories.tsx +83 -0
- package/src/components/Breadcrumb/index.tsx +220 -0
- package/src/components/Button/button.stories.tsx +331 -108
- package/src/components/Button/index.tsx +290 -367
- package/src/components/Card/index.tsx +316 -322
- package/src/components/Checkbox/checkbox.stories.tsx +71 -93
- package/src/components/Checkbox/index.tsx +256 -237
- package/src/components/Chip/chip.stories.tsx +180 -0
- package/src/components/Chip/index.tsx +105 -0
- package/src/components/CodeCopy/codecopy.stories.tsx +217 -124
- package/src/components/CodeCopy/index.tsx +232 -345
- package/src/components/ComplexTextEditor/MarkdownEditor/index.tsx +113 -130
- package/src/components/ComplexTextEditor/RichEditor/index.tsx +134 -327
- package/src/components/ComplexTextEditor/SimpleEditor/index.tsx +152 -141
- package/src/components/ComplexTextEditor/Toolbars/Complex/index.tsx +56 -175
- package/src/components/ComplexTextEditor/Toolbars/Editor/index.tsx +385 -425
- package/src/components/ComplexTextEditor/editor.stories.tsx +692 -198
- package/src/components/ComplexTextEditor/index.tsx +184 -237
- package/src/components/ComplexTextEditor/theme.ts +410 -0
- package/src/components/ComplexTextEditor/utils/conversion.ts +83 -0
- package/src/components/ComplexTextEditor/utils/useMarkdownEditor.tsx +23 -8
- package/src/components/ConfirmationCodeInput/codeinput.stories.tsx +306 -562
- package/src/components/ConfirmationCodeInput/index.tsx +279 -531
- package/src/components/Container/index.tsx +48 -0
- package/src/components/Content/Structure/CVV/useCVV.tsx +13 -25
- package/src/components/Content/Structure/CreditCardNumber/useCreditCardNumber.tsx +13 -25
- package/src/components/Content/Structure/DateRange/useDateRange.tsx +5 -8
- package/src/components/Content/Structure/USD/useUSD.tsx +18 -30
- package/src/components/Content/Structure/animations.tsx +78 -57
- package/src/components/Content/Structure/button/useButton.tsx +3 -3
- package/src/components/Content/Structure/checkbox/useCheckbox.tsx +3 -9
- package/src/components/Content/Structure/datefield/useDateField.tsx +9 -19
- package/src/components/Content/Structure/externalIncremementNumberField/useIncremementNumberField.tsx +30 -0
- package/src/components/Content/Structure/link/useLink.tsx +9 -4
- package/src/components/Content/Structure/phoneNumber/usePhoneNumber.tsx +5 -4
- package/src/components/Content/Structure/searchableDropdown/useSearchableDropdown.tsx +6 -6
- package/src/components/Content/Structure/searchableHistory/useSearchableHistory.tsx +33 -0
- package/src/components/Content/Structure/stepper/useStepper.tsx +4 -4
- package/src/components/Content/Structure/typography/useTypography.tsx +3 -13
- package/src/components/Content/index.tsx +28 -31
- package/src/components/DataGrid/FilterSection/index.tsx +338 -180
- package/src/components/DataGrid/Footer/index.tsx +376 -216
- package/src/components/DataGrid/ManageColumnsSimple/index.tsx +152 -0
- package/src/components/DataGrid/ManageRow/index.tsx +301 -319
- package/src/components/DataGrid/MetricCard/index.tsx +384 -328
- package/src/components/DataGrid/MetricSection/index.tsx +104 -39
- package/src/components/DataGrid/Table/ColumnHeaderRow/index.tsx +349 -228
- package/src/components/DataGrid/Table/CreationRow/index.tsx +452 -0
- package/src/components/DataGrid/Table/Rows/index.tsx +516 -932
- package/src/components/DataGrid/Table/index.tsx +194 -182
- package/src/components/DataGrid/VerticalDivider/index.tsx +21 -13
- package/src/components/DataGrid/datagrid.stories.tsx +1511 -387
- package/src/components/DataGrid/index.tsx +571 -348
- package/src/components/DataGrid/types/index.ts +120 -9
- package/src/components/DataGrid/utils/useColumnResize.tsx +137 -0
- package/src/components/DataGrid/utils/useComputeTableResize.tsx +11 -5
- package/src/components/DataGrid/utils/useIsMobile.tsx +16 -0
- package/src/components/DataGrid/utils/useToolbarSearchbar.tsx +0 -5
- package/src/components/Dialog/dialog.stories.tsx +1196 -0
- package/src/components/Dialog/index.tsx +120 -0
- package/src/components/Divider/index.tsx +56 -0
- package/src/components/Drawer/index.tsx +350 -0
- package/src/components/Fade/index.tsx +48 -0
- package/src/components/Field/Date/DateField/DateField.stories.tsx +171 -0
- package/src/components/Field/Date/DateField/index.tsx +563 -714
- package/src/components/Field/Date/DateRange/DateRange.stories.tsx +606 -0
- package/src/components/Field/Date/DateRange/index.tsx +666 -812
- package/src/components/Field/Dropdown/MultiSelect/index.tsx +245 -512
- package/src/components/Field/Dropdown/MultiSelect/multiselect.stories.tsx +480 -96
- package/src/components/Field/Dropdown/Regular/dropdown.stories.tsx +614 -210
- package/src/components/Field/Dropdown/Regular/index.tsx +336 -489
- package/src/components/Field/Dropdown/SearchableHistory/index.tsx +443 -0
- package/src/components/Field/Dropdown/SearchableHistory/searchablehistory.stories.tsx +894 -0
- package/src/components/Field/Dropdown/SearchableSimple/index.tsx +212 -0
- package/src/components/Field/Dropdown/SearchableSimple/searchablesimple.stories.tsx +680 -0
- package/src/components/Field/IPAM/Address/Address.stories.tsx +265 -102
- package/src/components/Field/IPAM/Address/index.tsx +353 -846
- package/src/components/Field/IPAM/CIDR/CIDR.stories.tsx +254 -154
- package/src/components/Field/IPAM/CIDR/index.tsx +231 -144
- package/src/components/Field/IPAM/MACAddress/Address.stories.tsx +268 -33
- package/src/components/Field/IPAM/MACAddress/index.tsx +118 -44
- package/src/components/Field/IPAM/Subnet/Subnet.stories.tsx +259 -101
- package/src/components/Field/IPAM/Subnet/index.tsx +276 -312
- package/src/components/Field/IPAM/Supernet/Supernet.stories.tsx +273 -111
- package/src/components/Field/IPAM/Supernet/index.tsx +4 -0
- package/src/components/Field/IPAM/VLAN/VLAN.stories.tsx +283 -93
- package/src/components/Field/IPAM/VLAN/index.tsx +7 -1
- package/src/components/Field/Number/AccountNumber/AccountNumber.stories.tsx +313 -0
- package/src/components/Field/Number/AccountNumber/index.tsx +137 -151
- package/src/components/Field/Number/CVV/CVV.stories.tsx +320 -0
- package/src/components/Field/Number/CVV/index.tsx +147 -164
- package/src/components/Field/Number/CreditCardNumber/CreditCardNumber.stories.tsx +358 -0
- package/src/components/Field/Number/CreditCardNumber/index.tsx +157 -240
- package/src/components/Field/Number/ExternalIncrement/ExternalIncrement.stories.tsx +188 -0
- package/src/components/Field/Number/ExternalIncrement/index.tsx +143 -88
- package/src/components/Field/Number/InternalIncrement/InternalIncrement.stories.tsx +326 -0
- package/src/components/Field/Number/InternalIncrement/index.tsx +225 -240
- package/src/components/Field/Number/RoutingNumber/RoutingNumber.stories.tsx +349 -0
- package/src/components/Field/Number/RoutingNumber/index.tsx +155 -182
- package/src/components/Field/Password/index.tsx +149 -176
- package/src/components/Field/Password/passwordfield.stories.tsx +601 -88
- package/src/components/Field/Percentage/index.tsx +256 -237
- package/src/components/Field/Percentage/percentagefield.stories.tsx +579 -141
- package/src/components/Field/PhoneNumber/index.tsx +172 -140
- package/src/components/Field/PhoneNumber/phonenumberfield.stories.tsx +575 -103
- package/src/components/Field/Search/index.tsx +170 -248
- package/src/components/Field/Search/searchbar.stories.tsx +616 -114
- package/src/components/Field/Slider/index.tsx +76 -0
- package/src/components/Field/Text/index.tsx +201 -301
- package/src/components/Field/Text/textfield.stories.tsx +915 -176
- package/src/components/Field/Time/TimeRange/TimeRange.stories.tsx +369 -0
- package/src/components/Field/Time/TimeRange/index.tsx +609 -1269
- package/src/components/Field/USD/index.tsx +262 -290
- package/src/components/Field/USD/usd.stories.tsx +453 -144
- package/src/components/Form/DataGrid/index.tsx +187 -493
- package/src/components/Form/Dialog/index.tsx +140 -296
- package/src/components/Form/Popup/index.tsx +256 -476
- package/src/components/Form/ProjectBoard/index.tsx +260 -349
- package/src/components/FormControl/index.tsx +95 -0
- package/src/components/FormControlLabel/index.tsx +168 -0
- package/src/components/Grid/Grid.tsx +118 -0
- package/src/components/Grid/index.ts +2 -0
- package/src/components/IconButton/index.tsx +85 -0
- package/src/components/Icons/AccessTime.tsx +67 -0
- package/src/components/Icons/AccountBalance.tsx +67 -0
- package/src/components/Icons/AccountBalanceWallet.tsx +67 -0
- package/src/components/Icons/AccountTree.tsx +67 -0
- package/src/components/Icons/Add.tsx +63 -0
- package/src/components/Icons/AddCircle.tsx +67 -0
- package/src/components/Icons/AddCircleOutline.tsx +67 -0
- package/src/components/Icons/AddPhotoAlternate.tsx +72 -0
- package/src/components/Icons/AddShoppingCart.tsx +67 -0
- package/src/components/Icons/AddTask.tsx +67 -0
- package/src/components/Icons/AdminPanelSettings.tsx +67 -0
- package/src/components/Icons/AllIcons.stories.tsx +778 -0
- package/src/components/Icons/Analytics.tsx +67 -0
- package/src/components/Icons/Animation.tsx +60 -0
- package/src/components/Icons/Apartment.tsx +67 -0
- package/src/components/Icons/Apple.tsx +60 -0
- package/src/components/Icons/ArrowBack.tsx +67 -0
- package/src/components/Icons/ArrowDropDown.tsx +67 -0
- package/src/components/Icons/ArrowDropDownCircle.tsx +67 -0
- package/src/components/Icons/ArrowDropUp.tsx +67 -0
- package/src/components/Icons/ArrowForward.tsx +67 -0
- package/src/components/Icons/Article.tsx +67 -0
- package/src/components/Icons/Assessment.tsx +67 -0
- package/src/components/Icons/Assignment.tsx +67 -0
- package/src/components/Icons/AttachFile.tsx +60 -0
- package/src/components/Icons/AttachMoney.tsx +60 -0
- package/src/components/Icons/Attachment.tsx +60 -0
- package/src/components/Icons/AutoAwesome.tsx +60 -0
- package/src/components/Icons/AutoGraph.tsx +67 -0
- package/src/components/Icons/Autorenew.tsx +67 -0
- package/src/components/Icons/Bank.tsx +60 -0
- package/src/components/Icons/BarChart.tsx +60 -0
- package/src/components/Icons/Block.tsx +60 -0
- package/src/components/Icons/BugReport.tsx +60 -0
- package/src/components/Icons/Build.tsx +67 -0
- package/src/components/Icons/Business.tsx +67 -0
- package/src/components/Icons/BusinessCenter.tsx +67 -0
- package/src/components/Icons/Calculate.tsx +67 -0
- package/src/components/Icons/Calendar.tsx +56 -28
- package/src/components/Icons/CalendarMonth.tsx +67 -0
- package/src/components/Icons/CalendarToday.tsx +67 -0
- package/src/components/Icons/Campaign.tsx +67 -0
- package/src/components/Icons/Cancel.tsx +67 -0
- package/src/components/Icons/CardGiftcard.tsx +67 -0
- package/src/components/Icons/CardMembership.tsx +67 -0
- package/src/components/Icons/Category.tsx +70 -0
- package/src/components/Icons/Chat.tsx +67 -0
- package/src/components/Icons/Check.tsx +67 -0
- package/src/components/Icons/CheckBoxIcon.tsx +67 -0
- package/src/components/Icons/CheckCircle.tsx +67 -0
- package/src/components/Icons/CheckCircleOutline.tsx +67 -0
- package/src/components/Icons/ChevronLeft.tsx +67 -0
- package/src/components/Icons/ChevronRight.tsx +67 -0
- package/src/components/Icons/CircleOutline.tsx +67 -0
- package/src/components/Icons/Clear.tsx +67 -0
- package/src/components/Icons/Close.tsx +67 -0
- package/src/components/Icons/CloudSync.tsx +67 -0
- package/src/components/Icons/CloudUpload.tsx +67 -0
- package/src/components/Icons/Code.tsx +67 -0
- package/src/components/Icons/CompareArrows.tsx +67 -0
- package/src/components/Icons/Construction.tsx +67 -0
- package/src/components/Icons/Contacts.tsx +67 -0
- package/src/components/Icons/ContentCopy.tsx +67 -0
- package/src/components/Icons/ContractIcon.tsx +67 -0
- package/src/components/Icons/Create.tsx +67 -0
- package/src/components/Icons/CreateNewFolder.tsx +67 -0
- package/src/components/Icons/CreditCard.tsx +67 -0
- package/src/components/Icons/CreditCardOff.tsx +67 -0
- package/src/components/Icons/CurrencyExchange.tsx +67 -0
- package/src/components/Icons/Dashboard.tsx +67 -0
- package/src/components/Icons/DateRange.tsx +67 -0
- package/src/components/Icons/Delete.tsx +67 -0
- package/src/components/Icons/Description.tsx +67 -0
- package/src/components/Icons/DesktopWindows.tsx +67 -0
- package/src/components/Icons/DeviceHub.tsx +67 -0
- package/src/components/Icons/Devices.tsx +67 -0
- package/src/components/Icons/Dns.tsx +63 -0
- package/src/components/Icons/Domain.tsx +67 -0
- package/src/components/Icons/Download.tsx +67 -0
- package/src/components/Icons/Drag.tsx +60 -19
- package/src/components/Icons/DragIndicator.tsx +67 -0
- package/src/components/Icons/DuplicateIcon.tsx +67 -0
- package/src/components/Icons/Edit.tsx +67 -0
- package/src/components/Icons/Email.tsx +67 -0
- package/src/components/Icons/EmojiEvents.tsx +67 -0
- package/src/components/Icons/Engineering.tsx +75 -0
- package/src/components/Icons/Error.tsx +67 -0
- package/src/components/Icons/ErrorOutline.tsx +67 -0
- package/src/components/Icons/Event.tsx +67 -0
- package/src/components/Icons/EventAvailable.tsx +67 -0
- package/src/components/Icons/EventBusy.tsx +67 -0
- package/src/components/Icons/ExpandLess.tsx +67 -0
- package/src/components/Icons/ExpandMore.tsx +67 -0
- package/src/components/Icons/Extension.tsx +67 -0
- package/src/components/Icons/Favorite.tsx +67 -0
- package/src/components/Icons/FavoriteBorder.tsx +67 -0
- package/src/components/Icons/FavoriteBorderIcon.tsx +67 -0
- package/src/components/Icons/FavoriteIcon.tsx +50 -56
- package/src/components/Icons/Feedback.tsx +67 -0
- package/src/components/Icons/FileCopy.tsx +67 -0
- package/src/components/Icons/Filing.tsx +67 -0
- package/src/components/Icons/FilterList.tsx +67 -0
- package/src/components/Icons/Fingerprint.tsx +67 -0
- package/src/components/Icons/FirstPage.tsx +67 -0
- package/src/components/Icons/FormatAlignCenter.tsx +67 -0
- package/src/components/Icons/FormatAlignLeft.tsx +67 -0
- package/src/components/Icons/FormatAlignRight.tsx +67 -0
- package/src/components/Icons/FormatBold.tsx +67 -0
- package/src/components/Icons/FormatItalic.tsx +67 -0
- package/src/components/Icons/FormatListBulleted.tsx +72 -0
- package/src/components/Icons/FormatListNumbered.tsx +85 -0
- package/src/components/Icons/FormatUnderlined.tsx +67 -0
- package/src/components/Icons/Gavel.tsx +67 -0
- package/src/components/Icons/Gesture.tsx +67 -0
- package/src/components/Icons/Google.tsx +67 -0
- package/src/components/Icons/GridView.tsx +67 -0
- package/src/components/Icons/GridViewIcon.tsx +67 -0
- package/src/components/Icons/Group.tsx +67 -0
- package/src/components/Icons/GroupWork.tsx +67 -0
- package/src/components/Icons/Groups.tsx +67 -0
- package/src/components/Icons/Handshake.tsx +67 -0
- package/src/components/Icons/Help.tsx +67 -0
- package/src/components/Icons/History.tsx +67 -0
- package/src/components/Icons/Home.tsx +67 -0
- package/src/components/Icons/HomeWork.tsx +67 -0
- package/src/components/Icons/HourglassEmpty.tsx +67 -0
- package/src/components/Icons/Hub.tsx +65 -0
- package/src/components/Icons/ICON_THEME_MIGRATION.md +383 -0
- package/src/components/Icons/ImageIcon.tsx +67 -0
- package/src/components/Icons/IndeterminateCheckBox.tsx +67 -0
- package/src/components/Icons/Info.tsx +76 -22
- package/src/components/Icons/InfoOutline.tsx +67 -0
- package/src/components/Icons/Insights.tsx +67 -0
- package/src/components/Icons/IntegrationInstructions.tsx +66 -0
- package/src/components/Icons/Inventory.tsx +67 -0
- package/src/components/Icons/KeyboardArrowDown.tsx +67 -0
- package/src/components/Icons/KeyboardArrowLeft.tsx +67 -0
- package/src/components/Icons/KeyboardArrowRight.tsx +67 -0
- package/src/components/Icons/KeyboardReturn.tsx +67 -0
- package/src/components/Icons/Lan.tsx +66 -0
- package/src/components/Icons/LastPage.tsx +67 -0
- package/src/components/Icons/Launch.tsx +67 -0
- package/src/components/Icons/Layers.tsx +67 -0
- package/src/components/Icons/Link.tsx +67 -0
- package/src/components/Icons/ListAlt.tsx +67 -0
- package/src/components/Icons/LocalGasStation.tsx +67 -0
- package/src/components/Icons/LocalOffer.tsx +67 -0
- package/src/components/Icons/LocalShipping.tsx +67 -0
- package/src/components/Icons/LocationCity.tsx +67 -0
- package/src/components/Icons/LocationIcon.tsx +67 -0
- package/src/components/Icons/LocationOn.tsx +66 -0
- package/src/components/Icons/LocationSearching.tsx +67 -0
- package/src/components/Icons/Lock.tsx +67 -0
- package/src/components/Icons/Login.tsx +67 -0
- package/src/components/Icons/LogoutRounded.tsx +67 -0
- package/src/components/Icons/LooksFour.tsx +67 -0
- package/src/components/Icons/LooksOne.tsx +67 -0
- package/src/components/Icons/LooksThree.tsx +67 -0
- package/src/components/Icons/LooksTwo.tsx +67 -0
- package/src/components/Icons/Loop.tsx +67 -0
- package/src/components/Icons/LowPriority.tsx +70 -0
- package/src/components/Icons/Loyalty.tsx +67 -0
- package/src/components/Icons/Map.tsx +63 -0
- package/src/components/Icons/Menu.tsx +67 -0
- package/src/components/Icons/MenuBook.tsx +60 -0
- package/src/components/Icons/MonetizationOn.tsx +60 -0
- package/src/components/Icons/Money.tsx +60 -0
- package/src/components/Icons/MoreHoriz.tsx +67 -0
- package/src/components/Icons/MoreVert.tsx +60 -0
- package/src/components/Icons/Mouse.tsx +62 -0
- package/src/components/Icons/Navigation.tsx +60 -0
- package/src/components/Icons/NetworkCheck.tsx +64 -0
- package/src/components/Icons/NotificationActive.tsx +60 -0
- package/src/components/Icons/NotificationImportant.tsx +60 -0
- package/src/components/Icons/Notifications.tsx +60 -0
- package/src/components/Icons/Outlook.tsx +60 -0
- package/src/components/Icons/Pause.tsx +60 -0
- package/src/components/Icons/Payment.tsx +60 -0
- package/src/components/Icons/PdfIcon.tsx +56 -0
- package/src/components/Icons/PendingActions.tsx +60 -0
- package/src/components/Icons/People.tsx +65 -0
- package/src/components/Icons/Person.tsx +67 -0
- package/src/components/Icons/PersonAdd.tsx +67 -0
- package/src/components/Icons/PersonOutline.tsx +60 -0
- package/src/components/Icons/Phone.tsx +60 -0
- package/src/components/Icons/PlayArrow.tsx +60 -0
- package/src/components/Icons/PlaylistAddCheck.tsx +60 -0
- package/src/components/Icons/PointOfSale.tsx +60 -0
- package/src/components/Icons/Policy.tsx +60 -0
- package/src/components/Icons/PostAdd.tsx +61 -0
- package/src/components/Icons/PrecisionManufacturing.tsx +68 -0
- package/src/components/Icons/Preview.tsx +60 -0
- package/src/components/Icons/Print.tsx +60 -0
- package/src/components/Icons/PriorityHigh.tsx +62 -0
- package/src/components/Icons/Psychology.tsx +60 -0
- package/src/components/Icons/Public.tsx +60 -0
- package/src/components/Icons/QrCode.tsx +76 -0
- package/src/components/Icons/QrCodeScanner.tsx +67 -0
- package/src/components/Icons/RadioButtonChecked.tsx +60 -0
- package/src/components/Icons/RateReview.tsx +60 -0
- package/src/components/Icons/Receipt.tsx +60 -0
- package/src/components/Icons/Redo.tsx +60 -0
- package/src/components/Icons/Refresh.tsx +67 -0
- package/src/components/Icons/Remove.tsx +60 -0
- package/src/components/Icons/Repeat.tsx +60 -0
- package/src/components/Icons/ReportProblem.tsx +61 -0
- package/src/components/Icons/RequestQuote.tsx +62 -0
- package/src/components/Icons/Restore.tsx +59 -0
- package/src/components/Icons/Router.tsx +60 -0
- package/src/components/Icons/Save.tsx +67 -0
- package/src/components/Icons/Schedule.tsx +60 -0
- package/src/components/Icons/School.tsx +60 -0
- package/src/components/Icons/ScreenRotation.tsx +60 -0
- package/src/components/Icons/Search.tsx +59 -39
- package/src/components/Icons/Security.tsx +60 -0
- package/src/components/Icons/Send.tsx +60 -0
- package/src/components/Icons/Settings.tsx +67 -0
- package/src/components/Icons/Shield.tsx +60 -0
- package/src/components/Icons/ShoppingBasket.tsx +67 -0
- package/src/components/Icons/ShowChart.tsx +60 -0
- package/src/components/Icons/ShowHideEye.tsx +117 -22
- package/src/components/Icons/SkipNext.tsx +60 -0
- package/src/components/Icons/SmartButtonIcon.tsx +67 -0
- package/src/components/Icons/Smartphone.tsx +60 -0
- package/src/components/Icons/Sms.tsx +56 -0
- package/src/components/Icons/Sort.tsx +65 -0
- package/src/components/Icons/Spa.tsx +63 -0
- package/src/components/Icons/Speed.tsx +66 -0
- package/src/components/Icons/Star.tsx +65 -0
- package/src/components/Icons/StarBorder.tsx +65 -0
- package/src/components/Icons/StarIcon.tsx +65 -0
- package/src/components/Icons/Stop.tsx +67 -0
- package/src/components/Icons/Storage.tsx +65 -0
- package/src/components/Icons/Store.tsx +65 -0
- package/src/components/Icons/StoreMallDirectory.tsx +65 -0
- package/src/components/Icons/StrikethroughS.tsx +65 -0
- package/src/components/Icons/SupervisedUserCircle.tsx +65 -0
- package/src/components/Icons/Support.tsx +65 -0
- package/src/components/Icons/Sync.tsx +65 -0
- package/src/components/Icons/TableIcon.tsx +65 -0
- package/src/components/Icons/Tablet.tsx +65 -0
- package/src/components/Icons/TemplateIcon.tsx +65 -0
- package/src/components/Icons/TextFieldsIcon.tsx +67 -0
- package/src/components/Icons/ThumbUp.tsx +65 -0
- package/src/components/Icons/Timeline.tsx +65 -0
- package/src/components/Icons/Timer.tsx +65 -0
- package/src/components/Icons/Transfer.tsx +65 -0
- package/src/components/Icons/TrendingDown.tsx +65 -0
- package/src/components/Icons/TrendingUp.tsx +65 -0
- package/src/components/Icons/Undo.tsx +65 -0
- package/src/components/Icons/VerifiedUser.tsx +65 -0
- package/src/components/Icons/VideoLibraryIcon.tsx +67 -0
- package/src/components/Icons/Videocam.tsx +66 -0
- package/src/components/Icons/ViewCompact.tsx +67 -0
- package/src/components/Icons/ViewCompactIcon.tsx +65 -0
- package/src/components/Icons/ViewHeadlineIcon.tsx +67 -0
- package/src/components/Icons/ViewIcon.tsx +65 -0
- package/src/components/Icons/ViewList.tsx +65 -0
- package/src/components/Icons/ViewModule.tsx +65 -0
- package/src/components/Icons/ViewSidebar.tsx +65 -0
- package/src/components/Icons/Visibility.tsx +65 -0
- package/src/components/Icons/VisibilityOff.tsx +65 -0
- package/src/components/Icons/VpnKey.tsx +65 -0
- package/src/components/Icons/VpnLock.tsx +65 -0
- package/src/components/Icons/Warning.tsx +65 -0
- package/src/components/Icons/WarningAmber.tsx +69 -0
- package/src/components/Icons/WaterDrop.tsx +67 -0
- package/src/components/Icons/Web.tsx +61 -0
- package/src/components/Icons/Widgets.tsx +65 -0
- package/src/components/Icons/Wifi.tsx +67 -0
- package/src/components/Icons/WifiOff.tsx +67 -0
- package/src/components/Icons/Work.tsx +67 -0
- package/src/components/Icons/WorkspacePremium.tsx +67 -0
- package/src/components/Icons/index.ts +261 -0
- package/src/components/InputLabel/index.tsx +137 -0
- package/src/components/List/index.tsx +77 -0
- package/src/components/MenuItem/index.tsx +147 -0
- package/src/components/Pagination/index.tsx +455 -0
- package/src/components/Paper/index.tsx +93 -0
- package/src/components/Popover/index.tsx +65 -0
- package/src/components/Popover/popover.stories.tsx +455 -0
- package/src/components/PricingTable/index.tsx +488 -337
- package/src/components/PricingTable/pricingtable.stories.tsx +66 -130
- package/src/components/ProgressBar/index.tsx +104 -0
- package/src/components/ProgressBar/progressbar.stories.tsx +641 -0
- package/src/components/ProjectBoard/ShowTask.stories.tsx +218 -0
- package/src/components/ProjectBoard/administratorCompanyDropdown.stories.tsx +213 -0
- package/src/components/ProjectBoard/administratorCompanyProvided.stories.tsx +205 -0
- package/src/components/ProjectBoard/board/board.stories.tsx +516 -0
- package/src/components/ProjectBoard/board/index.tsx +836 -41
- package/src/components/ProjectBoard/companyCustomerDropdown.stories.tsx +228 -0
- package/src/components/ProjectBoard/companyCustomerProvided.stories.tsx +206 -0
- package/src/components/ProjectBoard/customer.stories.tsx +154 -0
- package/src/components/ProjectBoard/forms/AddTask/administrator/companyDropdown/index.tsx +346 -450
- package/src/components/ProjectBoard/forms/AddTask/administrator/companyProvided/index.tsx +337 -432
- package/src/components/ProjectBoard/forms/AddTask/company/customerDropdown/index.tsx +363 -471
- package/src/components/ProjectBoard/forms/AddTask/company/customerProvided/index.tsx +336 -436
- package/src/components/ProjectBoard/forms/AddTask/customer/index.tsx +238 -314
- package/src/components/ProjectBoard/forms/AddTask/noUser/index.tsx +71 -147
- package/src/components/ProjectBoard/forms/ShowTask/client.tsx +639 -974
- package/src/components/ProjectBoard/index.tsx +193 -365
- package/src/components/ProjectBoard/noUser.stories.tsx +141 -0
- package/src/components/ProjectBoard/types/index.tsx +5 -2
- package/src/components/ProjectBoard/utils/useDragandDrop/columns.tsx +115 -42
- package/src/components/ProjectBoard/utils/useDragandDrop/tasks.tsx +146 -56
- package/src/components/QRCode/index.tsx +97 -262
- package/src/components/QRCode/qrcode.stories.tsx +510 -79
- package/src/components/RadioGroup/index.tsx +74 -125
- package/src/components/RadioGroup/radiogroup.stories.tsx +456 -66
- package/src/components/Select/index.tsx +183 -0
- package/src/components/Slide/index.tsx +49 -0
- package/src/components/Slide/slide.stories.tsx +327 -0
- package/src/components/Snackbar/index.tsx +65 -0
- package/src/components/Snackbar/snackbar.stories.tsx +834 -0
- package/src/components/Stack/index.tsx +162 -0
- package/src/components/Stepper/index.tsx +371 -245
- package/src/components/Stepper/stepper.stories.tsx +792 -215
- package/src/components/Switch/index.tsx +138 -0
- package/src/components/Switch/switch.stories.tsx +1000 -0
- package/src/components/Table/Table.stories.tsx +123 -0
- package/src/components/Table/index.tsx +262 -0
- package/src/components/Tabs/index.tsx +112 -172
- package/src/components/Tabs/tabs.stories.tsx +131 -158
- package/src/components/ToggleButton/index.tsx +267 -0
- package/src/components/ToggleButton/togglebutton.stories.tsx +637 -0
- package/src/components/Toolbar/index.tsx +156 -156
- package/src/components/Toolbar/left/index.tsx +52 -47
- package/src/components/Toolbar/leftCenter/index.tsx +109 -71
- package/src/components/Toolbar/right/index.tsx +29 -29
- package/src/components/Toolbar/rightCenter/index.tsx +22 -17
- package/src/components/Toolbar/toolbar.stories.tsx +134 -71
- package/src/components/Tooltip/index.tsx +224 -76
- package/src/components/Tooltip/tooltip.stories.tsx +97 -137
- package/src/components/TransferList/index.tsx +313 -354
- package/src/components/TransferList/transferlist.stories.tsx +191 -157
- package/src/components/TreeView/index.tsx +1205 -0
- package/src/components/TreeView/treeview.stories.tsx +788 -0
- package/src/components/Typography/index.tsx +53 -390
- package/src/components/Typography/typography.stories.tsx +260 -101
- package/src/components/Zoom/index.tsx +48 -0
- package/src/index.ts +194 -40
- package/src/stories/Button.stories.ts +1 -1
- package/src/stories/Header.stories.ts +1 -1
- package/src/stories/Page.stories.ts +1 -1
- package/src/theme/accordion.ts +784 -0
- package/src/theme/alert.ts +619 -0
- package/src/theme/appbar.ts +297 -0
- package/src/theme/avatar.ts +188 -0
- package/src/theme/badge.ts +166 -0
- package/src/theme/breadcrumb.ts +315 -0
- package/src/theme/button.ts +403 -0
- package/src/theme/card.ts +382 -0
- package/src/theme/checkbox.ts +538 -0
- package/src/theme/chip.ts +656 -0
- package/src/theme/codecopy.ts +427 -0
- package/src/theme/complextexteditor.ts +508 -0
- package/src/theme/confirmationcodeinput.ts +687 -0
- package/src/theme/container.ts +175 -0
- package/src/theme/datagrid.ts +784 -0
- package/src/theme/dialog.ts +465 -0
- package/src/theme/divider.ts +205 -0
- package/src/theme/drawer.ts +358 -0
- package/src/theme/dropdown.ts +733 -0
- package/src/theme/fade.ts +132 -0
- package/src/theme/formField.ts +388 -0
- package/src/theme/icon.ts +308 -0
- package/src/theme/index.ts +558 -0
- package/src/theme/list.ts +160 -0
- package/src/theme/nav.ts +1111 -0
- package/src/theme/pagination.ts +368 -0
- package/src/theme/paper.ts +269 -0
- package/src/theme/popover.ts +178 -0
- package/src/theme/pricingtable.ts +693 -0
- package/src/theme/progressbar.ts +433 -0
- package/src/theme/projectboard.ts +291 -0
- package/src/theme/qrcode.ts +485 -0
- package/src/theme/radiogroup.ts +424 -0
- package/src/theme/shared.ts +222 -0
- package/src/theme/slide.ts +161 -0
- package/src/theme/stepper.ts +849 -0
- package/src/theme/switch.ts +567 -0
- package/src/theme/tabs.ts +552 -0
- package/src/theme/toolbar.ts +238 -0
- package/src/theme/tooltip.ts +232 -0
- package/src/theme/treeview.ts +1239 -0
- package/src/theme/typography.ts +812 -0
- package/src/theme/zoom.ts +166 -0
- package/src/utils/alpha.ts +34 -0
- package/src/utils/keyframes.ts +81 -0
- package/src/components/Card/card.stories.tsx +0 -337
- package/src/components/Card/variants/defaultconfig/index.tsx +0 -236
- package/src/components/Card/variants/detailedpricingsummary/index.tsx +0 -270
- package/src/components/Card/variants/inventory/index.tsx +0 -289
- package/src/components/Card/variants/product/index.tsx +0 -378
- package/src/components/Card/variants/productsummary/index.tsx +0 -274
- package/src/components/Card/variants/simplepricingsummary/index.tsx +0 -215
- package/src/components/Card/variants/task/index.tsx +0 -197
- package/src/components/ComplexTextEditor/utils/useRichtextEditor.tsx +0 -440
- package/src/components/Content/Structure/CreditCardExpiration/useCreditCardExpiration.tsx +0 -62
- package/src/components/Content/Structure/card/useCard.tsx +0 -24
- package/src/components/Content/Structure/incremementNumberField/useIncremementNumberField.tsx +0 -33
- package/src/components/DataGrid/ManageColumn/index.tsx +0 -331
- package/src/components/Field/Date/CreditCardExpiration/index.tsx +0 -1304
- package/src/components/Field/Dropdown/Searchable/index.tsx +0 -1711
- package/src/components/Field/Dropdown/Searchable/searchabledropdown.stories.tsx +0 -746
- package/src/components/Field/IPAM/NetworkAddress/index.tsx +0 -499
- package/src/components/Field/Number/ExternalIncrement/incrementnumberfield.stories.tsx +0 -152
- package/src/components/Field/Number/InternalIncrement/numberfield.stories.tsx +0 -228
- package/src/components/Nav/VerticalVariant/mainNav/expanding.tsx +0 -168
- package/src/components/Nav/VerticalVariant/mainNav/list.tsx +0 -160
- package/src/components/Nav/VerticalVariant/subNav/expanding.tsx +0 -159
- package/src/components/Nav/VerticalVariant/subNav/list.tsx +0 -120
- package/src/components/Nav/VerticalVariant/subSubViewNav/list.tsx +0 -133
- package/src/components/Nav/VerticalVariant/subViewNav/expanding.tsx +0 -175
- package/src/components/Nav/VerticalVariant/subViewNav/list.tsx +0 -133
- package/src/components/Nav/VerticalVariant/viewNav/expanding.tsx +0 -164
- package/src/components/Nav/VerticalVariant/viewNav/index.tsx +0 -124
- package/src/components/Nav/index.tsx +0 -1056
- package/src/components/Nav/nav.stories.tsx +0 -473
- package/src/components/ProjectBoard/board/desktop/index.tsx +0 -487
- package/src/components/ProjectBoard/board/mobile/index.tsx +0 -515
- package/src/components/ProjectBoard/board/tablet/index.tsx +0 -496
- package/src/components/ProjectBoard/projectboard.stories.tsx +0 -881
- package/src/components/Widget/index.tsx +0 -343
- package/src/stories/Configure.mdx +0 -451
- package/src/styles/Form/index.ts +0 -7
- package/src/styles/palette.ts +0 -143
- package/src/styles/typography.ts +0 -185
- package/src/types/react-datepicker.d.ts +0 -75
|
@@ -0,0 +1,358 @@
|
|
|
1
|
+
// --------------------------------------------------------------------------
|
|
2
|
+
// DRAWER THEME SYSTEM
|
|
3
|
+
// --------------------------------------------------------------------------
|
|
4
|
+
import React from 'react'
|
|
5
|
+
import { TRANSITIONS, SHADOWS } from './shared'
|
|
6
|
+
|
|
7
|
+
export interface DrawerTheme {
|
|
8
|
+
permanent: {
|
|
9
|
+
background: string
|
|
10
|
+
borderRight: string
|
|
11
|
+
borderLeft: string
|
|
12
|
+
boxShadow: string
|
|
13
|
+
backdropFilter: string
|
|
14
|
+
backgroundImage?: string
|
|
15
|
+
}
|
|
16
|
+
temporary: {
|
|
17
|
+
background: string
|
|
18
|
+
borderRight: string
|
|
19
|
+
borderLeft: string
|
|
20
|
+
boxShadow: string
|
|
21
|
+
backdropFilter: string
|
|
22
|
+
backgroundImage?: string
|
|
23
|
+
}
|
|
24
|
+
backdrop: {
|
|
25
|
+
backgroundColor: string
|
|
26
|
+
backdropFilter: string
|
|
27
|
+
}
|
|
28
|
+
transition: string
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface DrawerStyles {
|
|
32
|
+
// Theme selection
|
|
33
|
+
theme?: 'light' | 'dark' | 'sacred'
|
|
34
|
+
|
|
35
|
+
// Permanent drawer styling
|
|
36
|
+
permanentBackground?: string
|
|
37
|
+
permanentBorderRight?: string
|
|
38
|
+
permanentBorderLeft?: string
|
|
39
|
+
permanentBoxShadow?: string
|
|
40
|
+
permanentBackdropFilter?: string
|
|
41
|
+
permanentBackgroundImage?: string
|
|
42
|
+
|
|
43
|
+
// Temporary drawer styling
|
|
44
|
+
temporaryBackground?: string
|
|
45
|
+
temporaryBorderRight?: string
|
|
46
|
+
temporaryBorderLeft?: string
|
|
47
|
+
temporaryBoxShadow?: string
|
|
48
|
+
temporaryBackdropFilter?: string
|
|
49
|
+
temporaryBackgroundImage?: string
|
|
50
|
+
|
|
51
|
+
// Backdrop styling
|
|
52
|
+
backdropBackgroundColor?: string
|
|
53
|
+
backdropBackdropFilter?: string
|
|
54
|
+
|
|
55
|
+
// Layout and spacing
|
|
56
|
+
width?: string
|
|
57
|
+
height?: string
|
|
58
|
+
top?: string | number
|
|
59
|
+
padding?: string
|
|
60
|
+
margin?: string
|
|
61
|
+
zIndex?: number
|
|
62
|
+
backdropZIndex?: number
|
|
63
|
+
|
|
64
|
+
// Transitions
|
|
65
|
+
transitionDuration?: string
|
|
66
|
+
transitionEasing?: string
|
|
67
|
+
|
|
68
|
+
// States
|
|
69
|
+
disabled?: boolean
|
|
70
|
+
outline?: boolean
|
|
71
|
+
|
|
72
|
+
// Dimensions
|
|
73
|
+
maxWidth?: string
|
|
74
|
+
minWidth?: string
|
|
75
|
+
maxHeight?: string
|
|
76
|
+
minHeight?: string
|
|
77
|
+
|
|
78
|
+
// Force positioning
|
|
79
|
+
forceLeft?: boolean
|
|
80
|
+
forceRight?: boolean
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export const drawerThemes: Record<'light' | 'dark' | 'sacred', DrawerTheme> = {
|
|
84
|
+
light: {
|
|
85
|
+
permanent: {
|
|
86
|
+
background: 'rgba(255, 255, 255, 0.95)',
|
|
87
|
+
borderRight: '1px solid rgba(226, 232, 240, 0.8)',
|
|
88
|
+
borderLeft: 'none',
|
|
89
|
+
boxShadow: SHADOWS.light.medium,
|
|
90
|
+
backdropFilter: 'blur(8px)',
|
|
91
|
+
},
|
|
92
|
+
temporary: {
|
|
93
|
+
background: 'rgba(255, 255, 255, 0.95)',
|
|
94
|
+
borderRight: '1px solid rgba(226, 232, 240, 0.8)',
|
|
95
|
+
borderLeft: 'none',
|
|
96
|
+
boxShadow: SHADOWS.light.large,
|
|
97
|
+
backdropFilter: 'blur(8px)',
|
|
98
|
+
},
|
|
99
|
+
backdrop: {
|
|
100
|
+
backgroundColor: 'rgba(0, 0, 0, 0.5)',
|
|
101
|
+
backdropFilter: 'blur(2px)',
|
|
102
|
+
},
|
|
103
|
+
transition: TRANSITIONS.medium,
|
|
104
|
+
},
|
|
105
|
+
dark: {
|
|
106
|
+
permanent: {
|
|
107
|
+
background: 'rgba(31, 41, 55, 0.95)',
|
|
108
|
+
borderRight: '1px solid rgba(75, 85, 99, 0.8)',
|
|
109
|
+
borderLeft: 'none',
|
|
110
|
+
boxShadow: '0 4px 12px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.3)',
|
|
111
|
+
backdropFilter: 'blur(8px)',
|
|
112
|
+
},
|
|
113
|
+
temporary: {
|
|
114
|
+
background: 'rgba(31, 41, 55, 0.95)',
|
|
115
|
+
borderRight: '1px solid rgba(75, 85, 99, 0.8)',
|
|
116
|
+
borderLeft: 'none',
|
|
117
|
+
boxShadow: '0 8px 25px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.4)',
|
|
118
|
+
backdropFilter: 'blur(8px)',
|
|
119
|
+
},
|
|
120
|
+
backdrop: {
|
|
121
|
+
backgroundColor: 'rgba(0, 0, 0, 0.7)',
|
|
122
|
+
backdropFilter: 'blur(2px)',
|
|
123
|
+
},
|
|
124
|
+
transition: TRANSITIONS.medium,
|
|
125
|
+
},
|
|
126
|
+
sacred: {
|
|
127
|
+
permanent: {
|
|
128
|
+
background: 'rgba(10, 10, 10, 0.95)',
|
|
129
|
+
borderRight: '2px solid rgba(255, 215, 0, 0.4)',
|
|
130
|
+
borderLeft: 'none',
|
|
131
|
+
boxShadow: SHADOWS.sacred.large,
|
|
132
|
+
backdropFilter: 'blur(8px)',
|
|
133
|
+
backgroundImage: `
|
|
134
|
+
radial-gradient(circle at top right, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
|
|
135
|
+
radial-gradient(circle at bottom left, rgba(255, 215, 0, 0.03) 0%, transparent 50%)
|
|
136
|
+
`,
|
|
137
|
+
},
|
|
138
|
+
temporary: {
|
|
139
|
+
background: 'rgba(10, 10, 10, 0.95)',
|
|
140
|
+
borderRight: '2px solid rgba(255, 215, 0, 0.6)',
|
|
141
|
+
borderLeft: 'none',
|
|
142
|
+
boxShadow: SHADOWS.sacred.large,
|
|
143
|
+
backdropFilter: 'blur(8px)',
|
|
144
|
+
backgroundImage: `
|
|
145
|
+
radial-gradient(circle at top right, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
|
|
146
|
+
radial-gradient(circle at bottom left, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
|
|
147
|
+
linear-gradient(135deg, rgba(255, 215, 0, 0.02) 0%, transparent 50%)
|
|
148
|
+
`,
|
|
149
|
+
},
|
|
150
|
+
backdrop: {
|
|
151
|
+
backgroundColor: 'rgba(0, 0, 0, 0.8)',
|
|
152
|
+
backdropFilter: 'blur(4px)',
|
|
153
|
+
},
|
|
154
|
+
transition: TRANSITIONS.slow,
|
|
155
|
+
},
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
// Helper function to get computed theme with custom style overrides
|
|
159
|
+
export const getDrawerTheme = (styles?: DrawerStyles): DrawerTheme => {
|
|
160
|
+
const theme = styles?.theme || 'light'
|
|
161
|
+
const baseTheme = drawerThemes[theme]
|
|
162
|
+
|
|
163
|
+
if (!styles) {
|
|
164
|
+
return baseTheme
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
return {
|
|
168
|
+
permanent: {
|
|
169
|
+
background: styles.permanentBackground || baseTheme.permanent.background,
|
|
170
|
+
borderRight:
|
|
171
|
+
styles.permanentBorderRight || baseTheme.permanent.borderRight,
|
|
172
|
+
borderLeft: styles.permanentBorderLeft || baseTheme.permanent.borderLeft,
|
|
173
|
+
boxShadow: styles.permanentBoxShadow || baseTheme.permanent.boxShadow,
|
|
174
|
+
backdropFilter:
|
|
175
|
+
styles.permanentBackdropFilter || baseTheme.permanent.backdropFilter,
|
|
176
|
+
backgroundImage:
|
|
177
|
+
styles.permanentBackgroundImage || baseTheme.permanent.backgroundImage,
|
|
178
|
+
},
|
|
179
|
+
temporary: {
|
|
180
|
+
background: styles.temporaryBackground || baseTheme.temporary.background,
|
|
181
|
+
borderRight:
|
|
182
|
+
styles.temporaryBorderRight || baseTheme.temporary.borderRight,
|
|
183
|
+
borderLeft: styles.temporaryBorderLeft || baseTheme.temporary.borderLeft,
|
|
184
|
+
boxShadow: styles.temporaryBoxShadow || baseTheme.temporary.boxShadow,
|
|
185
|
+
backdropFilter:
|
|
186
|
+
styles.temporaryBackdropFilter || baseTheme.temporary.backdropFilter,
|
|
187
|
+
backgroundImage:
|
|
188
|
+
styles.temporaryBackgroundImage || baseTheme.temporary.backgroundImage,
|
|
189
|
+
},
|
|
190
|
+
backdrop: {
|
|
191
|
+
backgroundColor:
|
|
192
|
+
styles.backdropBackgroundColor || baseTheme.backdrop.backgroundColor,
|
|
193
|
+
backdropFilter:
|
|
194
|
+
styles.backdropBackdropFilter || baseTheme.backdrop.backdropFilter,
|
|
195
|
+
},
|
|
196
|
+
transition: styles.transitionDuration
|
|
197
|
+
? `transform ${styles.transitionDuration} ${styles.transitionEasing || 'ease-in-out'}`
|
|
198
|
+
: baseTheme.transition,
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
// Main style generator function
|
|
203
|
+
export const getDrawerStyles = (
|
|
204
|
+
styles?: DrawerStyles,
|
|
205
|
+
open?: boolean,
|
|
206
|
+
anchor?: 'left' | 'right' | 'top' | 'bottom',
|
|
207
|
+
_variant?: 'permanent' | 'temporary'
|
|
208
|
+
) => {
|
|
209
|
+
const themeConfig = getDrawerTheme(styles)
|
|
210
|
+
const anchorSide = anchor || 'left'
|
|
211
|
+
const isHorizontal = anchorSide === 'top' || anchorSide === 'bottom'
|
|
212
|
+
|
|
213
|
+
// Determine actual anchor side (allow force overrides)
|
|
214
|
+
const effectiveAnchor = styles?.forceLeft
|
|
215
|
+
? 'left'
|
|
216
|
+
: styles?.forceRight
|
|
217
|
+
? 'right'
|
|
218
|
+
: anchorSide
|
|
219
|
+
|
|
220
|
+
const permanentStyle: React.CSSProperties = {
|
|
221
|
+
height: isHorizontal ? styles?.height || '240px' : styles?.height || '100%',
|
|
222
|
+
width: isHorizontal ? styles?.width || '100%' : styles?.width || '240px',
|
|
223
|
+
position: 'fixed',
|
|
224
|
+
top: isHorizontal
|
|
225
|
+
? effectiveAnchor === 'top'
|
|
226
|
+
? 0
|
|
227
|
+
: 'auto'
|
|
228
|
+
: styles?.top || 0,
|
|
229
|
+
bottom: effectiveAnchor === 'bottom' ? 0 : 'auto',
|
|
230
|
+
left: effectiveAnchor === 'left' ? 0 : 'auto',
|
|
231
|
+
right: effectiveAnchor === 'right' ? 0 : 'auto',
|
|
232
|
+
maxWidth: styles?.maxWidth,
|
|
233
|
+
minWidth: styles?.minWidth,
|
|
234
|
+
maxHeight: styles?.maxHeight,
|
|
235
|
+
minHeight: styles?.minHeight,
|
|
236
|
+
padding: styles?.padding,
|
|
237
|
+
margin: styles?.margin,
|
|
238
|
+
background: themeConfig.permanent.background,
|
|
239
|
+
...(effectiveAnchor === 'left' && {
|
|
240
|
+
borderRight: themeConfig.permanent.borderRight,
|
|
241
|
+
}),
|
|
242
|
+
...(effectiveAnchor === 'right' && {
|
|
243
|
+
borderLeft: themeConfig.permanent.borderLeft,
|
|
244
|
+
}),
|
|
245
|
+
...(effectiveAnchor === 'top' && {
|
|
246
|
+
borderBottom: themeConfig.permanent.borderRight,
|
|
247
|
+
}),
|
|
248
|
+
...(effectiveAnchor === 'bottom' && {
|
|
249
|
+
borderTop: themeConfig.permanent.borderLeft,
|
|
250
|
+
}),
|
|
251
|
+
boxShadow: themeConfig.permanent.boxShadow,
|
|
252
|
+
backdropFilter: themeConfig.permanent.backdropFilter,
|
|
253
|
+
backgroundImage: themeConfig.permanent.backgroundImage,
|
|
254
|
+
zIndex: styles?.zIndex || 30,
|
|
255
|
+
opacity: styles?.disabled ? 0.5 : 1,
|
|
256
|
+
pointerEvents: styles?.disabled ? 'none' : 'auto',
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
const temporaryBackdropStyle: React.CSSProperties = {
|
|
260
|
+
position: 'fixed',
|
|
261
|
+
inset: 0,
|
|
262
|
+
backgroundColor: themeConfig.backdrop.backgroundColor,
|
|
263
|
+
backdropFilter: themeConfig.backdrop.backdropFilter,
|
|
264
|
+
zIndex: styles?.backdropZIndex || 40,
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
const temporaryDrawerStyle: React.CSSProperties = {
|
|
268
|
+
position: 'fixed',
|
|
269
|
+
top: 0,
|
|
270
|
+
height: styles?.height || '100%',
|
|
271
|
+
width: styles?.width || '240px',
|
|
272
|
+
maxWidth: styles?.maxWidth,
|
|
273
|
+
minWidth: styles?.minWidth,
|
|
274
|
+
maxHeight: styles?.maxHeight,
|
|
275
|
+
minHeight: styles?.minHeight,
|
|
276
|
+
padding: styles?.padding,
|
|
277
|
+
margin: styles?.margin,
|
|
278
|
+
background: themeConfig.temporary.background,
|
|
279
|
+
[effectiveAnchor === 'left' ? 'borderRight' : 'borderLeft']:
|
|
280
|
+
effectiveAnchor === 'left'
|
|
281
|
+
? themeConfig.temporary.borderRight
|
|
282
|
+
: themeConfig.temporary.borderLeft,
|
|
283
|
+
boxShadow: themeConfig.temporary.boxShadow,
|
|
284
|
+
backdropFilter: themeConfig.temporary.backdropFilter,
|
|
285
|
+
backgroundImage: themeConfig.temporary.backgroundImage,
|
|
286
|
+
zIndex: styles?.zIndex || 50,
|
|
287
|
+
transition: themeConfig.transition,
|
|
288
|
+
[effectiveAnchor]: 0,
|
|
289
|
+
transform: open
|
|
290
|
+
? 'translateX(0)'
|
|
291
|
+
: effectiveAnchor === 'left'
|
|
292
|
+
? 'translateX(-100%)'
|
|
293
|
+
: 'translateX(100%)',
|
|
294
|
+
opacity: styles?.disabled ? 0.5 : 1,
|
|
295
|
+
pointerEvents: styles?.disabled ? 'none' : 'auto',
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
// Paper style (main content area)
|
|
299
|
+
const paperStyle: React.CSSProperties = {
|
|
300
|
+
position: 'fixed',
|
|
301
|
+
height: isHorizontal ? styles?.height || '240px' : styles?.height || '100%',
|
|
302
|
+
width: isHorizontal ? styles?.width || '100%' : styles?.width || '280px',
|
|
303
|
+
top: isHorizontal
|
|
304
|
+
? effectiveAnchor === 'top'
|
|
305
|
+
? 0
|
|
306
|
+
: 'auto'
|
|
307
|
+
: styles?.top || 0,
|
|
308
|
+
bottom: effectiveAnchor === 'bottom' ? 0 : 'auto',
|
|
309
|
+
left: effectiveAnchor === 'left' ? 0 : 'auto',
|
|
310
|
+
right: effectiveAnchor === 'right' ? 0 : 'auto',
|
|
311
|
+
maxWidth: styles?.maxWidth,
|
|
312
|
+
minWidth: styles?.minWidth,
|
|
313
|
+
maxHeight: styles?.maxHeight,
|
|
314
|
+
minHeight: styles?.minHeight,
|
|
315
|
+
padding: styles?.padding,
|
|
316
|
+
margin: styles?.margin,
|
|
317
|
+
background: themeConfig.temporary.background,
|
|
318
|
+
...(effectiveAnchor === 'left' && {
|
|
319
|
+
borderRight: themeConfig.temporary.borderRight,
|
|
320
|
+
}),
|
|
321
|
+
...(effectiveAnchor === 'right' && {
|
|
322
|
+
borderLeft: themeConfig.temporary.borderLeft,
|
|
323
|
+
}),
|
|
324
|
+
...(effectiveAnchor === 'top' && {
|
|
325
|
+
borderBottom: themeConfig.temporary.borderRight,
|
|
326
|
+
}),
|
|
327
|
+
...(effectiveAnchor === 'bottom' && {
|
|
328
|
+
borderTop: themeConfig.temporary.borderLeft,
|
|
329
|
+
}),
|
|
330
|
+
boxShadow: themeConfig.temporary.boxShadow,
|
|
331
|
+
backdropFilter: themeConfig.temporary.backdropFilter,
|
|
332
|
+
backgroundImage: themeConfig.temporary.backgroundImage,
|
|
333
|
+
zIndex: styles?.zIndex || 50,
|
|
334
|
+
transition: themeConfig.transition,
|
|
335
|
+
transform: open
|
|
336
|
+
? isHorizontal
|
|
337
|
+
? 'translateY(0)'
|
|
338
|
+
: 'translateX(0)'
|
|
339
|
+
: isHorizontal
|
|
340
|
+
? effectiveAnchor === 'top'
|
|
341
|
+
? 'translateY(-100%)'
|
|
342
|
+
: 'translateY(100%)'
|
|
343
|
+
: effectiveAnchor === 'left'
|
|
344
|
+
? 'translateX(-100%)'
|
|
345
|
+
: 'translateX(100%)',
|
|
346
|
+
opacity: styles?.disabled ? 0.5 : 1,
|
|
347
|
+
pointerEvents: styles?.disabled ? 'none' : 'auto',
|
|
348
|
+
overflow: 'auto',
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
return {
|
|
352
|
+
permanent: permanentStyle,
|
|
353
|
+
temporaryBackdrop: temporaryBackdropStyle,
|
|
354
|
+
temporaryDrawer: temporaryDrawerStyle,
|
|
355
|
+
paper: paperStyle,
|
|
356
|
+
backdrop: temporaryBackdropStyle,
|
|
357
|
+
}
|
|
358
|
+
}
|