@plumile/ui 0.1.56 → 0.1.57
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/esm/atomic/atoms/badge/Badge.js +17 -16
- package/lib/esm/atomic/atoms/badge/Badge.js.map +1 -1
- package/lib/esm/atomic/atoms/badge/badge.css.js +30 -8
- package/lib/esm/atomic/atoms/badge/badge.css.js.map +1 -1
- package/lib/esm/atomic/atoms/button/Button.js +46 -58
- package/lib/esm/atomic/atoms/button/Button.js.map +1 -1
- package/lib/esm/atomic/atoms/button/LinkButton.js +48 -62
- package/lib/esm/atomic/atoms/button/LinkButton.js.map +1 -1
- package/lib/esm/atomic/atoms/button/button.css.js +95 -16
- package/lib/esm/atomic/atoms/button/button.css.js.map +1 -1
- package/lib/esm/atomic/atoms/checkbox/Checkbox.js +37 -40
- package/lib/esm/atomic/atoms/checkbox/Checkbox.js.map +1 -1
- package/lib/esm/atomic/atoms/checkbox/checkbox.css.js +26 -11
- package/lib/esm/atomic/atoms/checkbox/checkbox.css.js.map +1 -1
- package/lib/esm/atomic/atoms/formatted-date/FormattedDate.js +32 -31
- package/lib/esm/atomic/atoms/formatted-date/FormattedDate.js.map +1 -1
- package/lib/esm/atomic/atoms/icon-button/IconMenuButton.js +18 -25
- package/lib/esm/atomic/atoms/icon-button/IconMenuButton.js.map +1 -1
- package/lib/esm/atomic/atoms/input/Input.js +46 -40
- package/lib/esm/atomic/atoms/input/Input.js.map +1 -1
- package/lib/esm/atomic/atoms/input/input.css.js +32 -14
- package/lib/esm/atomic/atoms/input/input.css.js.map +1 -1
- package/lib/esm/atomic/atoms/label/Label.js +23 -16
- package/lib/esm/atomic/atoms/label/Label.js.map +1 -1
- package/lib/esm/atomic/atoms/label/label.css.js +27 -9
- package/lib/esm/atomic/atoms/label/label.css.js.map +1 -1
- package/lib/esm/atomic/atoms/textarea/Textarea.js +19 -18
- package/lib/esm/atomic/atoms/textarea/Textarea.js.map +1 -1
- package/lib/esm/atomic/atoms/textarea/textarea.css.js +32 -8
- package/lib/esm/atomic/atoms/textarea/textarea.css.js.map +1 -1
- package/lib/esm/atomic/molecules/breadcrumb_navigation/BreadcrumbMenuDropdown.js +47 -54
- package/lib/esm/atomic/molecules/breadcrumb_navigation/BreadcrumbMenuDropdown.js.map +1 -1
- package/lib/esm/atomic/molecules/breadcrumb_navigation/BreadcrumbMenuPopover.js +53 -60
- package/lib/esm/atomic/molecules/breadcrumb_navigation/BreadcrumbMenuPopover.js.map +1 -1
- package/lib/esm/atomic/molecules/breadcrumb_navigation/BreadcrumbNavigation.js +62 -63
- package/lib/esm/atomic/molecules/breadcrumb_navigation/BreadcrumbNavigation.js.map +1 -1
- package/lib/esm/atomic/molecules/breadcrumb_navigation/breadcrumbNavigation.css.js +8 -30
- package/lib/esm/atomic/molecules/breadcrumb_navigation/breadcrumbNavigation.css.js.map +1 -1
- package/lib/esm/atomic/molecules/breadcrumb_navigation/types.js +0 -2
- package/lib/esm/atomic/molecules/card/Card.css.js +8 -10
- package/lib/esm/atomic/molecules/card/Card.css.js.map +1 -1
- package/lib/esm/atomic/molecules/card/Card.js +24 -17
- package/lib/esm/atomic/molecules/card/Card.js.map +1 -1
- package/lib/esm/atomic/molecules/dropdown/Dropdown.js +148 -177
- package/lib/esm/atomic/molecules/dropdown/Dropdown.js.map +1 -1
- package/lib/esm/atomic/molecules/dropdown/dropdown.css.js +8 -13
- package/lib/esm/atomic/molecules/dropdown/dropdown.css.js.map +1 -1
- package/lib/esm/atomic/molecules/form-actions/FormActions.js +31 -56
- package/lib/esm/atomic/molecules/form-actions/FormActions.js.map +1 -1
- package/lib/esm/atomic/molecules/tabs/Tabs.js +34 -33
- package/lib/esm/atomic/molecules/tabs/Tabs.js.map +1 -1
- package/lib/esm/atomic/molecules/tabs/tabs.css.js +18 -9
- package/lib/esm/atomic/molecules/tabs/tabs.css.js.map +1 -1
- package/lib/esm/atomic/molecules/toast/ToastProvider.js +82 -77
- package/lib/esm/atomic/molecules/toast/ToastProvider.js.map +1 -1
- package/lib/esm/atomic/molecules/toast/ToastViewport.js +75 -70
- package/lib/esm/atomic/molecules/toast/ToastViewport.js.map +1 -1
- package/lib/esm/atomic/molecules/toast/constants.js +6 -5
- package/lib/esm/atomic/molecules/toast/constants.js.map +1 -1
- package/lib/esm/atomic/molecules/toast/toast.css.js +18 -17
- package/lib/esm/atomic/molecules/toast/toast.css.js.map +1 -1
- package/lib/esm/components/charts/BillingUsageLineChart.js +140 -173
- package/lib/esm/components/charts/BillingUsageLineChart.js.map +1 -1
- package/lib/esm/components/charts/billingUsageLineChart.css.js +8 -12
- package/lib/esm/components/charts/billingUsageLineChart.css.js.map +1 -1
- package/lib/esm/components/data-table/DataTable.css.js +84 -24
- package/lib/esm/components/data-table/DataTable.css.js.map +1 -1
- package/lib/esm/components/data-table/DataTable.js +73 -140
- package/lib/esm/components/data-table/DataTable.js.map +1 -1
- package/lib/esm/components/data-table/TableCell.css.js +18 -15
- package/lib/esm/components/data-table/TableCell.css.js.map +1 -1
- package/lib/esm/components/data-table/TableCell.js +74 -73
- package/lib/esm/components/data-table/TableCell.js.map +1 -1
- package/lib/esm/components/data-table/TableCellBase.js +18 -15
- package/lib/esm/components/data-table/TableCellBase.js.map +1 -1
- package/lib/esm/components/data-table/VirtualizedConnectionTable.css.js +8 -10
- package/lib/esm/components/data-table/VirtualizedConnectionTable.css.js.map +1 -1
- package/lib/esm/components/data-table/VirtualizedConnectionTable.js +190 -248
- package/lib/esm/components/data-table/VirtualizedConnectionTable.js.map +1 -1
- package/lib/esm/components/data-table/tableBreakpoints.js +28 -34
- package/lib/esm/components/data-table/tableBreakpoints.js.map +1 -1
- package/lib/esm/components/layout/ContentLayout.css.js +8 -18
- package/lib/esm/components/layout/ContentLayout.css.js.map +1 -1
- package/lib/esm/components/layout/ContentLayout.js +68 -78
- package/lib/esm/components/layout/ContentLayout.js.map +1 -1
- package/lib/esm/components/layout/TabsContentLayout.css.js +8 -11
- package/lib/esm/components/layout/TabsContentLayout.css.js.map +1 -1
- package/lib/esm/components/layout/TabsContentLayout.js +30 -13
- package/lib/esm/components/layout/TabsContentLayout.js.map +1 -1
- package/lib/esm/components/select/SimpleSelect.css.js +17 -22
- package/lib/esm/components/select/SimpleSelect.css.js.map +1 -1
- package/lib/esm/components/select/SimpleSelect.js +184 -184
- package/lib/esm/components/select/SimpleSelect.js.map +1 -1
- package/lib/esm/components/subscriptions/RefetchNeededBanner.css.js +8 -10
- package/lib/esm/components/subscriptions/RefetchNeededBanner.css.js.map +1 -1
- package/lib/esm/components/subscriptions/RefetchNeededBanner.js +31 -23
- package/lib/esm/components/subscriptions/RefetchNeededBanner.js.map +1 -1
- package/lib/esm/components/tile/InfoTile.css.js +8 -18
- package/lib/esm/components/tile/InfoTile.css.js.map +1 -1
- package/lib/esm/components/tile/InfoTile.js +62 -67
- package/lib/esm/components/tile/InfoTile.js.map +1 -1
- package/lib/esm/i18n/useUiTranslation.js +8 -7
- package/lib/esm/i18n/useUiTranslation.js.map +1 -1
- package/lib/esm/icons/BanSvg.js +29 -44
- package/lib/esm/icons/BanSvg.js.map +1 -1
- package/lib/esm/icons/ButtonLoadingSpinnerSvg.js +26 -41
- package/lib/esm/icons/ButtonLoadingSpinnerSvg.js.map +1 -1
- package/lib/esm/icons/ChatCheckSvg.js +27 -42
- package/lib/esm/icons/ChatCheckSvg.js.map +1 -1
- package/lib/esm/icons/ChatSizeLargeSvg.js +49 -70
- package/lib/esm/icons/ChatSizeLargeSvg.js.map +1 -1
- package/lib/esm/icons/ChatSizeMediumSvg.js +43 -61
- package/lib/esm/icons/ChatSizeMediumSvg.js.map +1 -1
- package/lib/esm/icons/ChatSizeSmallSvg.js +37 -52
- package/lib/esm/icons/ChatSizeSmallSvg.js.map +1 -1
- package/lib/esm/icons/ChatXSvg.js +27 -42
- package/lib/esm/icons/ChatXSvg.js.map +1 -1
- package/lib/esm/icons/CheckSvg.js +21 -30
- package/lib/esm/icons/CheckSvg.js.map +1 -1
- package/lib/esm/icons/ChevronDownSvg.js +21 -30
- package/lib/esm/icons/ChevronDownSvg.js.map +1 -1
- package/lib/esm/icons/ChevronLeftSvg.js +21 -30
- package/lib/esm/icons/ChevronLeftSvg.js.map +1 -1
- package/lib/esm/icons/ChevronRightSvg.js +21 -30
- package/lib/esm/icons/ChevronRightSvg.js.map +1 -1
- package/lib/esm/icons/ClockSvg.js +29 -44
- package/lib/esm/icons/ClockSvg.js.map +1 -1
- package/lib/esm/icons/CoinOffSvg.js +47 -65
- package/lib/esm/icons/CoinOffSvg.js.map +1 -1
- package/lib/esm/icons/CoinSvg.js +40 -55
- package/lib/esm/icons/CoinSvg.js.map +1 -1
- package/lib/esm/icons/DatabaseCheckSvg.js +47 -65
- package/lib/esm/icons/DatabaseCheckSvg.js.map +1 -1
- package/lib/esm/icons/DatabaseXSvg.js +47 -65
- package/lib/esm/icons/DatabaseXSvg.js.map +1 -1
- package/lib/esm/icons/DevModeSvg.js +21 -30
- package/lib/esm/icons/DevModeSvg.js.map +1 -1
- package/lib/esm/icons/EyeSvg.js +27 -33
- package/lib/esm/icons/EyeSvg.js.map +1 -1
- package/lib/esm/icons/FormErrorAlertSvg.js +37 -29
- package/lib/esm/icons/FormErrorAlertSvg.js.map +1 -1
- package/lib/esm/icons/GlobeSvg.js +18 -27
- package/lib/esm/icons/GlobeSvg.js.map +1 -1
- package/lib/esm/icons/GripDotsSvg.js +52 -29
- package/lib/esm/icons/GripDotsSvg.js.map +1 -1
- package/lib/esm/icons/HomeActivityAssignUserSvg.js +44 -62
- package/lib/esm/icons/HomeActivityAssignUserSvg.js.map +1 -1
- package/lib/esm/icons/HomeStatsCheckBadgeSvg.js +27 -42
- package/lib/esm/icons/HomeStatsCheckBadgeSvg.js.map +1 -1
- package/lib/esm/icons/HomeStatsClipboardSvg.js +27 -42
- package/lib/esm/icons/HomeStatsClipboardSvg.js.map +1 -1
- package/lib/esm/icons/HomeStatsClockSvg.js +27 -42
- package/lib/esm/icons/HomeStatsClockSvg.js.map +1 -1
- package/lib/esm/icons/KeyOffSvg.js +39 -54
- package/lib/esm/icons/KeyOffSvg.js.map +1 -1
- package/lib/esm/icons/KeySvg.js +39 -54
- package/lib/esm/icons/KeySvg.js.map +1 -1
- package/lib/esm/icons/KronexSvg.js +28 -43
- package/lib/esm/icons/KronexSvg.js.map +1 -1
- package/lib/esm/icons/LinkCheckSvg.js +37 -52
- package/lib/esm/icons/LinkCheckSvg.js.map +1 -1
- package/lib/esm/icons/LinkSvg.js +27 -42
- package/lib/esm/icons/LinkSvg.js.map +1 -1
- package/lib/esm/icons/LinkXSvg.js +37 -52
- package/lib/esm/icons/LinkXSvg.js.map +1 -1
- package/lib/esm/icons/LockOpenSvg.js +31 -46
- package/lib/esm/icons/LockOpenSvg.js.map +1 -1
- package/lib/esm/icons/LockSvg.js +31 -46
- package/lib/esm/icons/LockSvg.js.map +1 -1
- package/lib/esm/icons/MailCheckSvg.js +41 -56
- package/lib/esm/icons/MailCheckSvg.js.map +1 -1
- package/lib/esm/icons/MailSvg.js +31 -46
- package/lib/esm/icons/MailSvg.js.map +1 -1
- package/lib/esm/icons/MailXSvg.js +41 -56
- package/lib/esm/icons/MailXSvg.js.map +1 -1
- package/lib/esm/icons/ModalCloseSvg.js +27 -42
- package/lib/esm/icons/ModalCloseSvg.js.map +1 -1
- package/lib/esm/icons/PencilSvg.js +14 -20
- package/lib/esm/icons/PencilSvg.js.map +1 -1
- package/lib/esm/icons/PinFilledSvg.js +24 -40
- package/lib/esm/icons/PinFilledSvg.js.map +1 -1
- package/lib/esm/icons/PinSvg.js +27 -43
- package/lib/esm/icons/PinSvg.js.map +1 -1
- package/lib/esm/icons/ProfileDropdownLogoutSvg.js +37 -52
- package/lib/esm/icons/ProfileDropdownLogoutSvg.js.map +1 -1
- package/lib/esm/icons/ProfileDropdownOrganizationSvg.js +27 -42
- package/lib/esm/icons/ProfileDropdownOrganizationSvg.js.map +1 -1
- package/lib/esm/icons/ProjectsFolderSvg.js +21 -30
- package/lib/esm/icons/ProjectsFolderSvg.js.map +1 -1
- package/lib/esm/icons/RobotCheckSvg.js +60 -68
- package/lib/esm/icons/RobotCheckSvg.js.map +1 -1
- package/lib/esm/icons/RobotSvg.js +53 -58
- package/lib/esm/icons/RobotSvg.js.map +1 -1
- package/lib/esm/icons/RobotXSvg.js +60 -68
- package/lib/esm/icons/RobotXSvg.js.map +1 -1
- package/lib/esm/icons/RocketOffSvg.js +58 -83
- package/lib/esm/icons/RocketOffSvg.js.map +1 -1
- package/lib/esm/icons/RocketSvg.js +51 -73
- package/lib/esm/icons/RocketSvg.js.map +1 -1
- package/lib/esm/icons/SendCheckSvg.js +40 -55
- package/lib/esm/icons/SendCheckSvg.js.map +1 -1
- package/lib/esm/icons/SendMessageSvg.js +30 -45
- package/lib/esm/icons/SendMessageSvg.js.map +1 -1
- package/lib/esm/icons/SendXSvg.js +40 -55
- package/lib/esm/icons/SendXSvg.js.map +1 -1
- package/lib/esm/icons/SettingsCheckSvg.js +37 -52
- package/lib/esm/icons/SettingsCheckSvg.js.map +1 -1
- package/lib/esm/icons/SettingsXSvg.js +37 -52
- package/lib/esm/icons/SettingsXSvg.js.map +1 -1
- package/lib/esm/icons/ShieldLockSvg.js +41 -56
- package/lib/esm/icons/ShieldLockSvg.js.map +1 -1
- package/lib/esm/icons/ShieldOffSvg.js +27 -42
- package/lib/esm/icons/ShieldOffSvg.js.map +1 -1
- package/lib/esm/icons/SidebarHomeSvg.js +27 -42
- package/lib/esm/icons/SidebarHomeSvg.js.map +1 -1
- package/lib/esm/icons/SidebarInitiativesSvg.js +37 -52
- package/lib/esm/icons/SidebarInitiativesSvg.js.map +1 -1
- package/lib/esm/icons/SidebarPlusSvg.js +27 -42
- package/lib/esm/icons/SidebarPlusSvg.js.map +1 -1
- package/lib/esm/icons/SidebarSearchSvg.js +27 -42
- package/lib/esm/icons/SidebarSearchSvg.js.map +1 -1
- package/lib/esm/icons/SidebarSettingsSvg.js +27 -42
- package/lib/esm/icons/SidebarSettingsSvg.js.map +1 -1
- package/lib/esm/icons/SidebarTasksSvg.js +27 -42
- package/lib/esm/icons/SidebarTasksSvg.js.map +1 -1
- package/lib/esm/icons/SidebarTeamSvg.js +44 -62
- package/lib/esm/icons/SidebarTeamSvg.js.map +1 -1
- package/lib/esm/icons/TaskAttachmentSvg.js +21 -30
- package/lib/esm/icons/TaskAttachmentSvg.js.map +1 -1
- package/lib/esm/icons/TaskCalendarSvg.js +44 -62
- package/lib/esm/icons/TaskCalendarSvg.js.map +1 -1
- package/lib/esm/icons/TaskCommentBubbleSvg.js +21 -30
- package/lib/esm/icons/TaskCommentBubbleSvg.js.map +1 -1
- package/lib/esm/icons/TaskDeleteSvg.js +27 -42
- package/lib/esm/icons/TaskDeleteSvg.js.map +1 -1
- package/lib/esm/icons/TaskDependencyBlockedSvg.js +27 -43
- package/lib/esm/icons/TaskDependencyBlockedSvg.js.map +1 -1
- package/lib/esm/icons/TaskDependencyReadySvg.js +27 -43
- package/lib/esm/icons/TaskDependencyReadySvg.js.map +1 -1
- package/lib/esm/icons/TaskMenuDotsSvg.js +37 -52
- package/lib/esm/icons/TaskMenuDotsSvg.js.map +1 -1
- package/lib/esm/icons/TaskTagSvg.js +27 -42
- package/lib/esm/icons/TaskTagSvg.js.map +1 -1
- package/lib/esm/icons/TeamMemberEmailSvg.js +27 -42
- package/lib/esm/icons/TeamMemberEmailSvg.js.map +1 -1
- package/lib/esm/icons/TeamMemberLocationSvg.js +27 -42
- package/lib/esm/icons/TeamMemberLocationSvg.js.map +1 -1
- package/lib/esm/icons/WrenchSvg.js +21 -30
- package/lib/esm/icons/WrenchSvg.js.map +1 -1
- package/lib/esm/icons/XBadgeSvg.js +27 -42
- package/lib/esm/icons/XBadgeSvg.js.map +1 -1
- package/lib/esm/icons/markdown/MarkdownCheckboxCheckedSvg.js +30 -42
- package/lib/esm/icons/markdown/MarkdownCheckboxCheckedSvg.js.map +1 -1
- package/lib/esm/icons/markdown/MarkdownCheckboxUncheckedSvg.js +22 -28
- package/lib/esm/icons/markdown/MarkdownCheckboxUncheckedSvg.js.map +1 -1
- package/lib/esm/icons/markdown/MarkdownCopySuccessSvg.js +41 -53
- package/lib/esm/icons/markdown/MarkdownCopySuccessSvg.js.map +1 -1
- package/lib/esm/icons/markdown/MarkdownCopySvg.js +30 -42
- package/lib/esm/icons/markdown/MarkdownCopySvg.js.map +1 -1
- package/lib/esm/icons/markdown/MarkdownExternalLinkSvg.js +39 -51
- package/lib/esm/icons/markdown/MarkdownExternalLinkSvg.js.map +1 -1
- package/lib/esm/index.js +34 -77
- package/lib/esm/style.css +2 -0
- package/lib/esm/style.js +4 -0
- package/lib/esm/styles/slots.js +0 -2
- package/lib/esm/svg/ChevronDownIcon.js +11 -10
- package/lib/esm/svg/ChevronDownIcon.js.map +1 -1
- package/lib/esm/svg/ChevronRightIcon.js +11 -9
- package/lib/esm/svg/ChevronRightIcon.js.map +1 -1
- package/lib/esm/svg/GlobeIcon.js +11 -6
- package/lib/esm/svg/GlobeIcon.js.map +1 -1
- package/lib/esm/theme/ThemeProvider.js +33 -37
- package/lib/esm/theme/ThemeProvider.js.map +1 -1
- package/lib/esm/theme/VisuallyHidden.js +12 -8
- package/lib/esm/theme/VisuallyHidden.js.map +1 -1
- package/lib/esm/theme/accessibility.css.js +7 -8
- package/lib/esm/theme/accessibility.css.js.map +1 -1
- package/lib/esm/theme/colors.js +101 -100
- package/lib/esm/theme/colors.js.map +1 -1
- package/lib/esm/theme/common.js +122 -123
- package/lib/esm/theme/common.js.map +1 -1
- package/lib/esm/theme/containerQueries.js +14 -13
- package/lib/esm/theme/containerQueries.js.map +1 -1
- package/lib/esm/theme/global.css.js +1 -2
- package/lib/esm/theme/index.js +9 -28
- package/lib/esm/theme/sprinkles.css.js +68484 -9
- package/lib/esm/theme/sprinkles.css.js.map +1 -1
- package/lib/esm/theme/theme.css.js +1 -2
- package/lib/esm/theme/themeContract.js +1025 -1035
- package/lib/esm/theme/themeContract.js.map +1 -1
- package/lib/esm/theme/tools.js +16 -19
- package/lib/esm/theme/tools.js.map +1 -1
- package/lib/style.d.ts +5 -0
- package/lib/style.d.ts.map +1 -0
- package/lib/style.js +5 -0
- package/lib/types/style.d.ts +5 -0
- package/lib/types/style.d.ts.map +1 -0
- package/package.json +4 -3
- package/lib/esm/atomic/atoms/badge/badge.css.ts.vanilla-BxMgYgcH.css +0 -1
- package/lib/esm/atomic/atoms/button/button.css.ts.vanilla-BYFxDZro.css +0 -1
- package/lib/esm/atomic/atoms/checkbox/checkbox.css.ts.vanilla-D6TvWxlo.css +0 -1
- package/lib/esm/atomic/atoms/input/input.css.ts.vanilla-D_X5_tcn.css +0 -1
- package/lib/esm/atomic/atoms/textarea/textarea.css.ts.vanilla-IrvNTQEt.css +0 -1
- package/lib/esm/atomic/molecules/breadcrumb_navigation/breadcrumbNavigation.css.ts.vanilla-Bhz61Foa.css +0 -1
- package/lib/esm/atomic/molecules/breadcrumb_navigation/types.js.map +0 -1
- package/lib/esm/atomic/molecules/tabs/tabs.css.ts.vanilla-DQm5wO0K.css +0 -1
- package/lib/esm/atomic/molecules/toast/toast.css.ts.vanilla-2GtcGJsi.css +0 -1
- package/lib/esm/components/charts/billingUsageLineChart.css.ts.vanilla-7e3dy1Dj.css +0 -1
- package/lib/esm/components/data-table/DataTable.css.ts.vanilla-BLE98fwj.css +0 -1
- package/lib/esm/components/data-table/TableCell.css.ts.vanilla-i5QJvdbl.css +0 -1
- package/lib/esm/components/layout/ContentLayout.css.ts.vanilla-tn0RQdqM.css +0 -0
- package/lib/esm/components/select/SimpleSelect.css.ts.vanilla-Bil1v8q6.css +0 -1
- package/lib/esm/components/tile/InfoTile.css.ts.vanilla-ByCg4UKz.css +0 -1
- package/lib/esm/index.js.map +0 -1
- package/lib/esm/styles/slots.js.map +0 -1
- package/lib/esm/theme/accessibility.css.ts.vanilla-D6gfeWvf.css +0 -1
- package/lib/esm/theme/global.css.js.map +0 -1
- package/lib/esm/theme/global.css.ts.vanilla-ClXnHnoy.css +0 -1
- package/lib/esm/theme/index.js.map +0 -1
- package/lib/esm/theme/sprinkles.css.ts.vanilla-DOI5FNoi.css +0 -1
- package/lib/esm/theme/theme.css.js.map +0 -1
- package/lib/esm/theme/theme.css.ts.vanilla-a3SsXff5.css +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tableBreakpoints.js","sources":["../../../../src/components/data-table/tableBreakpoints.ts"],"sourcesContent":["import { containerQueries } from '../../theme/containerQueries.js';\n\n/**\n * Les tableaux reposent sur les mêmes largeurs minimales que les container queries\n * globales. On dérive donc les valeurs dynamiquement afin d'éviter tout décalage\n * entre la visibilité des colonnes (minVisibleAt) et la grille CSS des composants\n * qui consomment DataTable.\n */\n\nconst MIN_WIDTH_REGEX = /\\(min-width:\\s*(\\d+(?:\\.\\d+)?)px\\)/i;\n\nconst DATA_TABLE_BREAKPOINT_KEYS = ['sm', 'md', 'lg', 'xl', 'xxl'] as const;\n\nexport type DataTableBreakpoint = (typeof DATA_TABLE_BREAKPOINT_KEYS)[number];\n\n/**\n * Extrait la valeur numérique d'une media query `(min-width: XXXpx)`.\n */\nfunction parseMinWidth(key: DataTableBreakpoint, query: string): number {\n const match = MIN_WIDTH_REGEX.exec(query);\n if (match == null) {\n throw new Error(\n `[DataTable] Format de media query inattendu pour le point de rupture « ${key} » : ${query}`,\n );\n }\n\n const [, value] = match;\n if (value == null) {\n throw new Error(\n `[DataTable] Impossible d'extraire la valeur numérique pour le point de rupture « ${key} » à partir de la media query : ${query}`,\n );\n }\n return Number.parseFloat(value);\n}\n\n/**\n * Retourne la media query déclarée pour un point de rupture donné, avec\n * diagnostic explicite si elle est absente.\n */\nfunction requireContainerQuery(key: DataTableBreakpoint): string {\n const query = containerQueries[key] as string | undefined;\n if (query == null) {\n throw new Error(\n `[DataTable] Aucun container query défini pour le point de rupture « ${key} ».`,\n );\n }\n\n return query;\n}\n\n/**\n * Construit le mapping des breakpoints DataTable en se synchronisant sur les\n * container queries globales.\n */\nfunction computeBreakpoints(): Record<DataTableBreakpoint, number> {\n const result = {} as Record<DataTableBreakpoint, number>;\n\n for (const key of DATA_TABLE_BREAKPOINT_KEYS) {\n const query = requireContainerQuery(key);\n result[key] = parseMinWidth(key, query);\n }\n\n return result;\n}\n\nexport const DATA_TABLE_BREAKPOINTS = Object.freeze(computeBreakpoints());\n\nexport const DATA_TABLE_BREAKPOINT_ENTRIES: readonly [\n DataTableBreakpoint,\n number,\n][] = Object.entries(DATA_TABLE_BREAKPOINTS).map(([key, value]) => {\n return [key as DataTableBreakpoint, value];\n});\n"],"
|
|
1
|
+
{"version":3,"file":"tableBreakpoints.js","names":[],"sources":["../../../../src/components/data-table/tableBreakpoints.ts"],"sourcesContent":["import { containerQueries } from '../../theme/containerQueries.js';\n\n/**\n * Les tableaux reposent sur les mêmes largeurs minimales que les container queries\n * globales. On dérive donc les valeurs dynamiquement afin d'éviter tout décalage\n * entre la visibilité des colonnes (minVisibleAt) et la grille CSS des composants\n * qui consomment DataTable.\n */\n\nconst MIN_WIDTH_REGEX = /\\(min-width:\\s*(\\d+(?:\\.\\d+)?)px\\)/i;\n\nconst DATA_TABLE_BREAKPOINT_KEYS = ['sm', 'md', 'lg', 'xl', 'xxl'] as const;\n\nexport type DataTableBreakpoint = (typeof DATA_TABLE_BREAKPOINT_KEYS)[number];\n\n/**\n * Extrait la valeur numérique d'une media query `(min-width: XXXpx)`.\n */\nfunction parseMinWidth(key: DataTableBreakpoint, query: string): number {\n const match = MIN_WIDTH_REGEX.exec(query);\n if (match == null) {\n throw new Error(\n `[DataTable] Format de media query inattendu pour le point de rupture « ${key} » : ${query}`,\n );\n }\n\n const [, value] = match;\n if (value == null) {\n throw new Error(\n `[DataTable] Impossible d'extraire la valeur numérique pour le point de rupture « ${key} » à partir de la media query : ${query}`,\n );\n }\n return Number.parseFloat(value);\n}\n\n/**\n * Retourne la media query déclarée pour un point de rupture donné, avec\n * diagnostic explicite si elle est absente.\n */\nfunction requireContainerQuery(key: DataTableBreakpoint): string {\n const query = containerQueries[key] as string | undefined;\n if (query == null) {\n throw new Error(\n `[DataTable] Aucun container query défini pour le point de rupture « ${key} ».`,\n );\n }\n\n return query;\n}\n\n/**\n * Construit le mapping des breakpoints DataTable en se synchronisant sur les\n * container queries globales.\n */\nfunction computeBreakpoints(): Record<DataTableBreakpoint, number> {\n const result = {} as Record<DataTableBreakpoint, number>;\n\n for (const key of DATA_TABLE_BREAKPOINT_KEYS) {\n const query = requireContainerQuery(key);\n result[key] = parseMinWidth(key, query);\n }\n\n return result;\n}\n\nexport const DATA_TABLE_BREAKPOINTS = Object.freeze(computeBreakpoints());\n\nexport const DATA_TABLE_BREAKPOINT_ENTRIES: readonly [\n DataTableBreakpoint,\n number,\n][] = Object.entries(DATA_TABLE_BREAKPOINTS).map(([key, value]) => {\n return [key as DataTableBreakpoint, value];\n});\n"],"mappings":";;AASA,IAAM,IAAkB,uCAElB,IAA6B;CAAC;CAAM;CAAM;CAAM;CAAM;CAAM;AAOlE,SAAS,EAAc,GAA0B,GAAuB;CACtE,IAAM,IAAQ,EAAgB,KAAK,EAAM;AACzC,KAAI,KAAS,KACX,OAAU,MACR,0EAA0E,EAAI,OAAO,IACtF;CAGH,IAAM,GAAG,KAAS;AAClB,KAAI,KAAS,KACX,OAAU,MACR,oFAAoF,EAAI,kCAAkC,IAC3H;AAEH,QAAO,OAAO,WAAW,EAAM;;AAOjC,SAAS,EAAsB,GAAkC;CAC/D,IAAM,IAAQ,EAAiB;AAC/B,KAAI,KAAS,KACX,OAAU,MACR,uEAAuE,EAAI,KAC5E;AAGH,QAAO;;AAOT,SAAS,IAA0D;CACjE,IAAM,IAAS,EAAE;AAEjB,MAAK,IAAM,KAAO,EAEhB,GAAO,KAAO,EAAc,GADd,EAAsB,EAAI,CACD;AAGzC,QAAO;;AAGT,IAAa,IAAyB,OAAO,OAAO,GAAoB,CAAC,EAE5D,IAGP,OAAO,QAAQ,EAAuB,CAAC,KAAK,CAAC,GAAK,OAC/C,CAAC,GAA4B,EAAM,CAC1C"}
|
|
@@ -1,18 +1,8 @@
|
|
|
1
|
-
/* empty css
|
|
2
|
-
/* empty css
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
n as bottomFloatContent,
|
|
10
|
-
x as header,
|
|
11
|
-
o as headingGroup,
|
|
12
|
-
q as inner,
|
|
13
|
-
r as metaRow,
|
|
14
|
-
v as section,
|
|
15
|
-
i as subheader,
|
|
16
|
-
a as title
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=ContentLayout.css.js.map
|
|
1
|
+
/* empty css */
|
|
2
|
+
/* empty css */
|
|
3
|
+
//#region src/components/layout/ContentLayout.css.ts
|
|
4
|
+
var e = "_17ichq70 txvbqbu6f txvbqb9io txvbqbdof", t = "_17ichq71 txvbqbu6f txvbqb9io txvbqbai6 txvbqbap6", n = "_17ichq72 txvbqb9io txvbqbajx txvbqbaoo txvbqbcf txvbqbdoo", r = "_17ichq73 txvbqb9io txvbqbai6 txvbqbanx txvbqbk4x", i = "_17ichq74 txvbqb9x txvbqbf76 txvbqbamo txvbqbv8p txvbqbfbo", a = "_17ichq75 txvbqb96 txvbqbv8r txvbqbfbo", o = "_17ichq76 txvbqb9io txvbqbco txvbqbajx txvbqbao6", s = "_17ichq77 txvbqb9io txvbqbajx txvbqbao6 txvbqbdo6", c = "_17ichq78 txvbqb9jf", l = "_17ichq79 txvbqb9io txvbqbai6 txvbqbap6", u = "_17ichq7a txvbqbpso txvbqbdpf txvbqb83o txvbqbu6f txvbqb9io txvbqbdnx txvbqb2k txvbqbn86", d = "_17ichq7b txvbqb2l";
|
|
5
|
+
//#endregion
|
|
6
|
+
export { s as actionCluster, c as actionClusterItem, l as body, u as bottomFloatArea, d as bottomFloatContent, n as header, r as headingGroup, t as inner, o as metaRow, e as section, a as subheader, i as title };
|
|
7
|
+
|
|
8
|
+
//# sourceMappingURL=ContentLayout.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentLayout.css.js","
|
|
1
|
+
{"version":3,"file":"ContentLayout.css.js","names":[],"sources":["../../../../src/components/layout/ContentLayout.css.ts"],"sourcesContent":["import { sprinkles } from '../../theme/sprinkles.css.js';\n\nexport const section = sprinkles({\n width: 'full',\n display: 'flex',\n justifyContent: 'flex-start',\n});\n\nexport const inner = sprinkles({\n width: 'full',\n display: 'flex',\n flexDirection: 'column',\n gap: 6,\n});\n\nexport const header = sprinkles({\n display: 'flex',\n flexWrap: 'wrap',\n gap: 4,\n alignItems: 'flex-start',\n justifyContent: 'space-between',\n});\n\nexport const headingGroup = sprinkles({\n display: 'flex',\n flexDirection: 'column',\n gap: 1,\n minWidth: 0,\n});\n\nexport const title = sprinkles({\n fontSize: '2xl',\n lineHeight: '2xl',\n fontWeight: 'semibold',\n color: 'text',\n margin: 0,\n});\n\nexport const subheader = sprinkles({\n fontSize: 'base',\n color: 'textSecondary',\n margin: 0,\n});\n\nexport const metaRow = sprinkles({\n display: 'flex',\n alignItems: 'center',\n flexWrap: 'wrap',\n gap: 2,\n});\n\nexport const actionCluster = sprinkles({\n display: 'flex',\n flexWrap: 'wrap',\n gap: 2,\n justifyContent: 'flex-end',\n});\n\nexport const actionClusterItem = sprinkles({\n display: 'inline-flex',\n});\n\nexport const body = sprinkles({\n display: 'flex',\n flexDirection: 'column',\n gap: 6,\n});\n\nexport const bottomFloatArea = sprinkles({\n position: 'fixed',\n left: 0,\n bottom: 6,\n width: 'full',\n display: 'flex',\n justifyContent: 'center',\n pointerEvents: 'none',\n paddingInline: 4,\n});\n\nexport const bottomFloatContent = sprinkles({\n pointerEvents: 'auto',\n});\n"],"mappings":""}
|
|
@@ -1,79 +1,69 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
C
|
|
66
|
-
] }),
|
|
67
|
-
v
|
|
68
|
-
] }),
|
|
69
|
-
/* @__PURE__ */ o("div", { className: n(M, t?.body), children: y })
|
|
70
|
-
] }),
|
|
71
|
-
p
|
|
72
|
-
]
|
|
73
|
-
}
|
|
74
|
-
);
|
|
1
|
+
import { cx as e } from "../../theme/tools.js";
|
|
2
|
+
import { actionCluster as t, actionClusterItem as n, body as r, bottomFloatArea as i, bottomFloatContent as a, inner as o, metaRow as s, section as c, subheader as l, title as u } from "./ContentLayout.css.js";
|
|
3
|
+
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/layout/ContentLayout.tsx
|
|
5
|
+
var p = 320, m = 48, h = (e, t) => e == null ? null : d(typeof e == "string" || typeof e == "number" ? "h1" : "div", {
|
|
6
|
+
className: t,
|
|
7
|
+
children: e
|
|
8
|
+
}), g = (e, t) => e == null ? null : d(typeof e == "string" || typeof e == "number" ? "p" : "div", {
|
|
9
|
+
className: t,
|
|
10
|
+
children: e
|
|
11
|
+
}), _ = (_) => {
|
|
12
|
+
let { bottomFloat: v, classes: y, children: b, className: x, contentClassName: S, mainAction: C, meta: w, secondaryActions: T = [], subheader: E, title: D } = _, O = 0;
|
|
13
|
+
if (v != null) {
|
|
14
|
+
let e = v.reservedHeight ?? p;
|
|
15
|
+
O = Math.max(e, 0);
|
|
16
|
+
}
|
|
17
|
+
let k;
|
|
18
|
+
O > 0 && (k = { paddingBottom: O + m });
|
|
19
|
+
let A = C != null || T.length > 0, j = null;
|
|
20
|
+
C != null && (j = /* @__PURE__ */ d("div", {
|
|
21
|
+
className: e(n, y?.actionClusterItem),
|
|
22
|
+
children: C
|
|
23
|
+
}));
|
|
24
|
+
let M = null;
|
|
25
|
+
v != null && (M = /* @__PURE__ */ d("div", {
|
|
26
|
+
className: e(i, y?.bottomFloatArea),
|
|
27
|
+
children: /* @__PURE__ */ d("div", {
|
|
28
|
+
className: e(a, y?.bottomFloatContent),
|
|
29
|
+
children: v.node
|
|
30
|
+
})
|
|
31
|
+
}));
|
|
32
|
+
let N = null;
|
|
33
|
+
A && (N = /* @__PURE__ */ f("div", {
|
|
34
|
+
className: e(t, y?.actionCluster),
|
|
35
|
+
children: [T.map((t, r) => /* @__PURE__ */ d("div", {
|
|
36
|
+
className: e(n, y?.actionClusterItem),
|
|
37
|
+
children: t
|
|
38
|
+
}, `secondary-${r}`)), j]
|
|
39
|
+
}));
|
|
40
|
+
let P = e(u, y?.title), F = e(l, y?.subheader), I = e(s, y?.metaRow), L = null;
|
|
41
|
+
return w != null && (L = /* @__PURE__ */ d("div", {
|
|
42
|
+
className: I,
|
|
43
|
+
children: w
|
|
44
|
+
})), /* @__PURE__ */ f("section", {
|
|
45
|
+
className: e(c, y?.section, x),
|
|
46
|
+
style: k,
|
|
47
|
+
children: [/* @__PURE__ */ f("div", {
|
|
48
|
+
className: e(o, y?.inner, S),
|
|
49
|
+
children: [(D != null || E != null || w != null || A) && /* @__PURE__ */ f("div", {
|
|
50
|
+
className: e("_17ichq72 txvbqb9io txvbqbajx txvbqbaoo txvbqbcf txvbqbdoo", y?.header),
|
|
51
|
+
children: [/* @__PURE__ */ f("div", {
|
|
52
|
+
className: e("_17ichq73 txvbqb9io txvbqbai6 txvbqbanx txvbqbk4x", y?.headingGroup),
|
|
53
|
+
children: [
|
|
54
|
+
h(D, P),
|
|
55
|
+
g(E, F),
|
|
56
|
+
L
|
|
57
|
+
]
|
|
58
|
+
}), N]
|
|
59
|
+
}), /* @__PURE__ */ d("div", {
|
|
60
|
+
className: e(r, y?.body),
|
|
61
|
+
children: b
|
|
62
|
+
})]
|
|
63
|
+
}), M]
|
|
64
|
+
});
|
|
75
65
|
};
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
//# sourceMappingURL=ContentLayout.js.map
|
|
66
|
+
//#endregion
|
|
67
|
+
export { _ as ContentLayout };
|
|
68
|
+
|
|
69
|
+
//# sourceMappingURL=ContentLayout.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentLayout.js","sources":["../../../../src/components/layout/ContentLayout.tsx"],"sourcesContent":["import { type CSSProperties, type JSX, type ReactNode } from 'react';\n\nimport * as styles from './ContentLayout.css.js';\nimport { cx } from '../../theme/tools.js';\n\nexport type BottomFloatConfig = {\n node: ReactNode;\n reservedHeight?: number;\n};\n\ntype ContentLayoutSlot =\n | 'section'\n | 'inner'\n | 'header'\n | 'headingGroup'\n | 'title'\n | 'subheader'\n | 'metaRow'\n | 'actionCluster'\n | 'actionClusterItem'\n | 'body'\n | 'bottomFloatArea'\n | 'bottomFloatContent';\n\ntype SlotClasses<TSlot extends string> = Partial<Record<TSlot, string>>;\n\nexport type ContentLayoutProps = {\n title?: ReactNode;\n subheader?: ReactNode;\n mainAction?: ReactNode;\n secondaryActions?: ReactNode[];\n meta?: ReactNode;\n children: ReactNode;\n bottomFloat?: BottomFloatConfig;\n className?: string;\n contentClassName?: string;\n classes?: SlotClasses<ContentLayoutSlot>;\n};\n\nconst DEFAULT_BOTTOM_FLOAT_HEIGHT = 320;\nconst BOTTOM_FLOAT_BUFFER = 48;\n\nconst renderTitle = (\n title: ReactNode | undefined,\n className: string,\n): ReactNode => {\n if (title == null) {\n return null;\n }\n\n if (typeof title === 'string' || typeof title === 'number') {\n return <h1 className={className}>{title}</h1>;\n }\n\n return <div className={className}>{title}</div>;\n};\n\nconst renderSubheader = (\n subheader: ReactNode | undefined,\n className: string,\n): ReactNode => {\n if (subheader == null) {\n return null;\n }\n\n if (typeof subheader === 'string' || typeof subheader === 'number') {\n return <p className={className}>{subheader}</p>;\n }\n\n return <div className={className}>{subheader}</div>;\n};\n\nexport const ContentLayout = (props: ContentLayoutProps): JSX.Element => {\n const {\n bottomFloat,\n classes,\n children,\n className,\n contentClassName,\n mainAction,\n meta,\n secondaryActions = [],\n subheader,\n title,\n } = props;\n\n let reservedHeight = 0;\n if (bottomFloat != null) {\n const floatHeight =\n bottomFloat.reservedHeight ?? DEFAULT_BOTTOM_FLOAT_HEIGHT;\n reservedHeight = Math.max(floatHeight, 0);\n }\n\n let paddingStyles: CSSProperties | undefined;\n if (reservedHeight > 0) {\n paddingStyles = {\n paddingBottom: reservedHeight + BOTTOM_FLOAT_BUFFER,\n };\n }\n\n const shouldRenderActions = mainAction != null || secondaryActions.length > 0;\n let mainActionNode: JSX.Element | null = null;\n if (mainAction != null) {\n mainActionNode = (\n <div className={cx(styles.actionClusterItem, classes?.actionClusterItem)}>\n {mainAction}\n </div>\n );\n }\n\n let bottomFloatNode: JSX.Element | null = null;\n if (bottomFloat != null) {\n bottomFloatNode = (\n <div className={cx(styles.bottomFloatArea, classes?.bottomFloatArea)}>\n <div\n className={cx(styles.bottomFloatContent, classes?.bottomFloatContent)}\n >\n {bottomFloat.node}\n </div>\n </div>\n );\n }\n\n let actionClusterNode: JSX.Element | null = null;\n if (shouldRenderActions) {\n actionClusterNode = (\n <div className={cx(styles.actionCluster, classes?.actionCluster)}>\n {secondaryActions.map((action, index) => {\n return (\n <div\n key={`secondary-${index}`}\n className={cx(\n styles.actionClusterItem,\n classes?.actionClusterItem,\n )}\n >\n {action}\n </div>\n );\n })}\n {mainActionNode}\n </div>\n );\n }\n\n const titleClassName = cx(styles.title, classes?.title);\n const subheaderClassName = cx(styles.subheader, classes?.subheader);\n const metaClassName = cx(styles.metaRow, classes?.metaRow);\n let metaNode: ReactNode | null = null;\n if (meta != null) {\n metaNode = <div className={metaClassName}>{meta}</div>;\n }\n\n return (\n <section\n className={cx(styles.section, classes?.section, className)}\n style={paddingStyles}\n >\n <div className={cx(styles.inner, classes?.inner, contentClassName)}>\n {(title != null ||\n subheader != null ||\n meta != null ||\n shouldRenderActions) && (\n <div className={cx(styles.header, classes?.header)}>\n <div className={cx(styles.headingGroup, classes?.headingGroup)}>\n {renderTitle(title, titleClassName)}\n {renderSubheader(subheader, subheaderClassName)}\n {metaNode}\n </div>\n {actionClusterNode}\n </div>\n )}\n\n <div className={cx(styles.body, classes?.body)}>{children}</div>\n </div>\n\n {bottomFloatNode}\n </section>\n );\n};\n"],"
|
|
1
|
+
{"version":3,"file":"ContentLayout.js","names":[],"sources":["../../../../src/components/layout/ContentLayout.tsx"],"sourcesContent":["import { type CSSProperties, type JSX, type ReactNode } from 'react';\n\nimport * as styles from './ContentLayout.css.js';\nimport { cx } from '../../theme/tools.js';\n\nexport type BottomFloatConfig = {\n node: ReactNode;\n reservedHeight?: number;\n};\n\ntype ContentLayoutSlot =\n | 'section'\n | 'inner'\n | 'header'\n | 'headingGroup'\n | 'title'\n | 'subheader'\n | 'metaRow'\n | 'actionCluster'\n | 'actionClusterItem'\n | 'body'\n | 'bottomFloatArea'\n | 'bottomFloatContent';\n\ntype SlotClasses<TSlot extends string> = Partial<Record<TSlot, string>>;\n\nexport type ContentLayoutProps = {\n title?: ReactNode;\n subheader?: ReactNode;\n mainAction?: ReactNode;\n secondaryActions?: ReactNode[];\n meta?: ReactNode;\n children: ReactNode;\n bottomFloat?: BottomFloatConfig;\n className?: string;\n contentClassName?: string;\n classes?: SlotClasses<ContentLayoutSlot>;\n};\n\nconst DEFAULT_BOTTOM_FLOAT_HEIGHT = 320;\nconst BOTTOM_FLOAT_BUFFER = 48;\n\nconst renderTitle = (\n title: ReactNode | undefined,\n className: string,\n): ReactNode => {\n if (title == null) {\n return null;\n }\n\n if (typeof title === 'string' || typeof title === 'number') {\n return <h1 className={className}>{title}</h1>;\n }\n\n return <div className={className}>{title}</div>;\n};\n\nconst renderSubheader = (\n subheader: ReactNode | undefined,\n className: string,\n): ReactNode => {\n if (subheader == null) {\n return null;\n }\n\n if (typeof subheader === 'string' || typeof subheader === 'number') {\n return <p className={className}>{subheader}</p>;\n }\n\n return <div className={className}>{subheader}</div>;\n};\n\nexport const ContentLayout = (props: ContentLayoutProps): JSX.Element => {\n const {\n bottomFloat,\n classes,\n children,\n className,\n contentClassName,\n mainAction,\n meta,\n secondaryActions = [],\n subheader,\n title,\n } = props;\n\n let reservedHeight = 0;\n if (bottomFloat != null) {\n const floatHeight =\n bottomFloat.reservedHeight ?? DEFAULT_BOTTOM_FLOAT_HEIGHT;\n reservedHeight = Math.max(floatHeight, 0);\n }\n\n let paddingStyles: CSSProperties | undefined;\n if (reservedHeight > 0) {\n paddingStyles = {\n paddingBottom: reservedHeight + BOTTOM_FLOAT_BUFFER,\n };\n }\n\n const shouldRenderActions = mainAction != null || secondaryActions.length > 0;\n let mainActionNode: JSX.Element | null = null;\n if (mainAction != null) {\n mainActionNode = (\n <div className={cx(styles.actionClusterItem, classes?.actionClusterItem)}>\n {mainAction}\n </div>\n );\n }\n\n let bottomFloatNode: JSX.Element | null = null;\n if (bottomFloat != null) {\n bottomFloatNode = (\n <div className={cx(styles.bottomFloatArea, classes?.bottomFloatArea)}>\n <div\n className={cx(styles.bottomFloatContent, classes?.bottomFloatContent)}\n >\n {bottomFloat.node}\n </div>\n </div>\n );\n }\n\n let actionClusterNode: JSX.Element | null = null;\n if (shouldRenderActions) {\n actionClusterNode = (\n <div className={cx(styles.actionCluster, classes?.actionCluster)}>\n {secondaryActions.map((action, index) => {\n return (\n <div\n key={`secondary-${index}`}\n className={cx(\n styles.actionClusterItem,\n classes?.actionClusterItem,\n )}\n >\n {action}\n </div>\n );\n })}\n {mainActionNode}\n </div>\n );\n }\n\n const titleClassName = cx(styles.title, classes?.title);\n const subheaderClassName = cx(styles.subheader, classes?.subheader);\n const metaClassName = cx(styles.metaRow, classes?.metaRow);\n let metaNode: ReactNode | null = null;\n if (meta != null) {\n metaNode = <div className={metaClassName}>{meta}</div>;\n }\n\n return (\n <section\n className={cx(styles.section, classes?.section, className)}\n style={paddingStyles}\n >\n <div className={cx(styles.inner, classes?.inner, contentClassName)}>\n {(title != null ||\n subheader != null ||\n meta != null ||\n shouldRenderActions) && (\n <div className={cx(styles.header, classes?.header)}>\n <div className={cx(styles.headingGroup, classes?.headingGroup)}>\n {renderTitle(title, titleClassName)}\n {renderSubheader(subheader, subheaderClassName)}\n {metaNode}\n </div>\n {actionClusterNode}\n </div>\n )}\n\n <div className={cx(styles.body, classes?.body)}>{children}</div>\n </div>\n\n {bottomFloatNode}\n </section>\n );\n};\n"],"mappings":";;;;AAuCA,IAAM,IAA8B,KAC9B,IAAsB,IAEtB,KACJ,GACA,MAEI,KAAS,OACJ,OAIA,EADL,OAAO,KAAU,YAAY,OAAO,KAAU,WACxC,OAGF,OAHC;CAAe;WAAY;CAAW,CAAA,EAM3C,KACJ,GACA,MAEI,KAAa,OACR,OAIA,EADL,OAAO,KAAc,YAAY,OAAO,KAAc,WAChD,MAGF,OAHC;CAAc;WAAY;CAAc,CAAA,EAMtC,KAAiB,MAA2C;CACvE,IAAM,EACJ,gBACA,YACA,aACA,cACA,qBACA,eACA,SACA,sBAAmB,EAAE,EACrB,WAAA,GACA,OAAA,MACE,GAEA,IAAiB;AACrB,KAAI,KAAe,MAAM;EACvB,IAAM,IACJ,EAAY,kBAAkB;AAChC,MAAiB,KAAK,IAAI,GAAa,EAAE;;CAG3C,IAAI;AACJ,CAAI,IAAiB,MACnB,IAAgB,EACd,eAAe,IAAiB,GACjC;CAGH,IAAM,IAAsB,KAAc,QAAQ,EAAiB,SAAS,GACxE,IAAqC;AACzC,CAAI,KAAc,SAChB,IACE,kBAAC,OAAD;EAAK,WAAW,EAAG,GAA0B,GAAS,kBAAkB;YACrE;EACG,CAAA;CAIV,IAAI,IAAsC;AAC1C,CAAI,KAAe,SACjB,IACE,kBAAC,OAAD;EAAK,WAAW,EAAG,GAAwB,GAAS,gBAAgB;YAClE,kBAAC,OAAD;GACE,WAAW,EAAG,GAA2B,GAAS,mBAAmB;aAEpE,EAAY;GACT,CAAA;EACF,CAAA;CAIV,IAAI,IAAwC;AAC5C,CAAI,MACF,IACE,kBAAC,OAAD;EAAK,WAAW,EAAG,GAAsB,GAAS,cAAc;YAAhE,CACG,EAAiB,KAAK,GAAQ,MAE3B,kBAAC,OAAD;GAEE,WAAW,EACT,GACA,GAAS,kBACV;aAEA;GACG,EAPC,aAAa,IAOd,CAER,EACD,EACG;;CAIV,IAAM,IAAiB,EAAG,GAAc,GAAS,MAAM,EACjD,IAAqB,EAAG,GAAkB,GAAS,UAAU,EAC7D,IAAgB,EAAG,GAAgB,GAAS,QAAQ,EACtD,IAA6B;AAKjC,QAJI,KAAQ,SACV,IAAW,kBAAC,OAAD;EAAK,WAAW;YAAgB;EAAW,CAAA,GAItD,kBAAC,WAAD;EACE,WAAW,EAAG,GAAgB,GAAS,SAAS,EAAU;EAC1D,OAAO;YAFT,CAIE,kBAAC,OAAD;GAAK,WAAW,EAAG,GAAc,GAAS,OAAO,EAAiB;aAAlE,EACI,KAAS,QACT,KAAa,QACb,KAAQ,QACR,MACA,kBAAC,OAAD;IAAK,WAAW,EAAG,8DAAe,GAAS,OAAO;cAAlD,CACE,kBAAC,OAAD;KAAK,WAAW,EAAG,qDAAqB,GAAS,aAAa;eAA9D;MACG,EAAY,GAAO,EAAe;MAClC,EAAgB,GAAW,EAAmB;MAC9C;MACG;QACL,EACG;OAGR,kBAAC,OAAD;IAAK,WAAW,EAAG,GAAa,GAAS,KAAK;IAAG;IAAe,CAAA,CAC5D;MAEL,EACO"}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
/* empty css
|
|
2
|
-
/* empty css
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
v as wrapper
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=TabsContentLayout.css.js.map
|
|
1
|
+
/* empty css */
|
|
2
|
+
/* empty css */
|
|
3
|
+
//#region src/components/layout/TabsContentLayout.css.ts
|
|
4
|
+
var e = "b55nf40 txvbqb9io txvbqbai6 txvbqbaoo txvbqbu6f", t = "b55nf41 txvbqbu6f txvbqb9io txvbqbdnx", n = "b55nf42 txvbqbu6f txvbqb9io txvbqbdnx", r = "b55nf43 txvbqbu6f", i = "b55nf44 txvbqbu6f";
|
|
5
|
+
//#endregion
|
|
6
|
+
export { i as panel, r as panels, t as tabsBar, n as tabsInner, e as wrapper };
|
|
7
|
+
|
|
8
|
+
//# sourceMappingURL=TabsContentLayout.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabsContentLayout.css.js","
|
|
1
|
+
{"version":3,"file":"TabsContentLayout.css.js","names":[],"sources":["../../../../src/components/layout/TabsContentLayout.css.ts"],"sourcesContent":["import { sprinkles } from '../../theme/sprinkles.css.js';\n\nexport const wrapper = sprinkles({\n display: 'flex',\n flexDirection: 'column',\n gap: 4,\n width: 'full',\n});\n\nexport const tabsBar = sprinkles({\n width: 'full',\n display: 'flex',\n justifyContent: 'center',\n});\n\nexport const tabsInner = sprinkles({\n width: 'full',\n display: 'flex',\n justifyContent: 'center',\n});\n\nexport const panels = sprinkles({\n width: 'full',\n});\n\nexport const panel = sprinkles({\n width: 'full',\n});\n"],"mappings":""}
|
|
@@ -1,14 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { Tabs as e } from "../../atomic/molecules/tabs/Tabs.js";
|
|
2
|
+
import { panel as t, panels as n, tabsBar as r, tabsInner as i, wrapper as a } from "./TabsContentLayout.css.js";
|
|
3
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/layout/TabsContentLayout.tsx
|
|
5
|
+
var c = (c) => {
|
|
6
|
+
let { ariaLabel: l, children: u, tabs: d } = c;
|
|
7
|
+
return /* @__PURE__ */ s("div", {
|
|
8
|
+
className: a,
|
|
9
|
+
children: [/* @__PURE__ */ o("div", {
|
|
10
|
+
className: r,
|
|
11
|
+
children: /* @__PURE__ */ o("div", {
|
|
12
|
+
className: i,
|
|
13
|
+
children: /* @__PURE__ */ o(e, {
|
|
14
|
+
items: d,
|
|
15
|
+
ariaLabel: l
|
|
16
|
+
})
|
|
17
|
+
})
|
|
18
|
+
}), /* @__PURE__ */ o("div", {
|
|
19
|
+
className: n,
|
|
20
|
+
children: /* @__PURE__ */ o("section", {
|
|
21
|
+
role: "tabpanel",
|
|
22
|
+
className: t,
|
|
23
|
+
children: u
|
|
24
|
+
})
|
|
25
|
+
})]
|
|
26
|
+
});
|
|
10
27
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
//# sourceMappingURL=TabsContentLayout.js.map
|
|
28
|
+
//#endregion
|
|
29
|
+
export { c as TabsContentLayout };
|
|
30
|
+
|
|
31
|
+
//# sourceMappingURL=TabsContentLayout.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabsContentLayout.js","sources":["../../../../src/components/layout/TabsContentLayout.tsx"],"sourcesContent":["import { type JSX, type ReactNode } from 'react';\n\nimport { Tabs, type TabItem } from '../../atomic/molecules/tabs/Tabs.js';\nimport * as styles from './TabsContentLayout.css.js';\n\nexport type TabsContentLayoutProps = {\n tabs: TabItem[];\n ariaLabel?: string;\n children: ReactNode;\n};\n\nexport const TabsContentLayout = (\n props: TabsContentLayoutProps,\n): JSX.Element => {\n const { ariaLabel, children, tabs } = props;\n\n return (\n <div className={styles.wrapper}>\n <div className={styles.tabsBar}>\n <div className={styles.tabsInner}>\n <Tabs items={tabs} ariaLabel={ariaLabel} />\n </div>\n </div>\n <div className={styles.panels}>\n <section role=\"tabpanel\" className={styles.panel}>\n {children}\n </section>\n </div>\n </div>\n );\n};\n"],"
|
|
1
|
+
{"version":3,"file":"TabsContentLayout.js","names":[],"sources":["../../../../src/components/layout/TabsContentLayout.tsx"],"sourcesContent":["import { type JSX, type ReactNode } from 'react';\n\nimport { Tabs, type TabItem } from '../../atomic/molecules/tabs/Tabs.js';\nimport * as styles from './TabsContentLayout.css.js';\n\nexport type TabsContentLayoutProps = {\n tabs: TabItem[];\n ariaLabel?: string;\n children: ReactNode;\n};\n\nexport const TabsContentLayout = (\n props: TabsContentLayoutProps,\n): JSX.Element => {\n const { ariaLabel, children, tabs } = props;\n\n return (\n <div className={styles.wrapper}>\n <div className={styles.tabsBar}>\n <div className={styles.tabsInner}>\n <Tabs items={tabs} ariaLabel={ariaLabel} />\n </div>\n </div>\n <div className={styles.panels}>\n <section role=\"tabpanel\" className={styles.panel}>\n {children}\n </section>\n </div>\n </div>\n );\n};\n"],"mappings":";;;;AAWA,IAAa,KACX,MACgB;CAChB,IAAM,EAAE,cAAW,aAAU,YAAS;AAEtC,QACE,kBAAC,OAAD;EAAK,WAAW;YAAhB,CACE,kBAAC,OAAD;GAAK,WAAW;aACd,kBAAC,OAAD;IAAK,WAAW;cACd,kBAAC,GAAD;KAAM,OAAO;KAAiB;KAAa,CAAA;IACvC,CAAA;GACF,CAAA,EACN,kBAAC,OAAD;GAAK,WAAW;aACd,kBAAC,WAAD;IAAS,MAAK;IAAW,WAAW;IACjC;IACO,CAAA;GACN,CAAA,CACF"}
|
|
@@ -1,22 +1,17 @@
|
|
|
1
|
-
/* empty css
|
|
2
|
-
/* empty css
|
|
3
|
-
import { createRuntimeFn as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
n as triggerIconOpen,
|
|
19
|
-
p as triggerOpen,
|
|
20
|
-
r as valueText
|
|
21
|
-
};
|
|
22
|
-
//# sourceMappingURL=SimpleSelect.css.js.map
|
|
1
|
+
/* empty css */
|
|
2
|
+
/* empty css */
|
|
3
|
+
import { createRuntimeFn as e } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
4
|
+
//#region src/components/select/SimpleSelect.css.ts
|
|
5
|
+
var t = "_11ypmks0 txvbqbpsf txvbqbu6f", n = "_11ypmks1 txvbqb9i6 txvbqbfzf txvbqb8o txvbqbamo txvbqbedx txvbqb66 txvbqbv8t", r = e({
|
|
6
|
+
defaultClassName: "_11ypmks7 _11ypmks3 _11ypmks2 txvbqbnv6 txvbqboif txvbqbp5f txvbqblx6 txvbqbu6f txvbqb9io txvbqbco txvbqbdoo txvbqbao6 txvbqb1rx txvbqb8x txvbqbamo txvbqbt5o txvbqbv txvbqb78 txvbqb6x txvbqb7k",
|
|
7
|
+
variantClassNames: { variant: {
|
|
8
|
+
default: "_11ypmks8 _11ypmks4 txvbqb1df txvbqb1qf txvbqbwf txvbqbuzn txvbqbv8p",
|
|
9
|
+
brand: "_11ypmks9 _11ypmks6 _11ypmks5 txvbqbv9z txvbqb1co txvbqb1qf txvbqb106 txvbqbuy6"
|
|
10
|
+
} },
|
|
11
|
+
defaultVariants: { variant: "default" },
|
|
12
|
+
compoundVariants: []
|
|
13
|
+
}), i = "_11ypmksa txvbqb7bo txvbqb78x", a = "_11ypmksb txvbqb9mx txvbqbk4x txvbqbuw6 txvbqbl6f txvbqbt6f", o = "_11ypmksc txvbqb9ix txvbqbco txvbqbdnx txvbqbtw6 txvbqbc5o txvbqbv8t txvbqb77 txvbqb6x txvbqb7k", s = "_11ypmksd txvbqb2w txvbqbv8p", c = "_11ypmkse txvbqbv9z", l = "_11ypmksf txvbqbps6 txvbqbthf txvbqbdpf txvbqbptf txvbqbuuf txvbqb9io txvbqbai6 txvbqbanx txvbqbl9o txvbqb1rx txvbqb1co txvbqb1qf txvbqbwf txvbqbuzn txvbqb8q6 txvbqbis6 txvbqbl7o", u = "_11ypmksg txvbqb766 txvbqb73f txvbqbi7o", d = "_11ypmksh txvbqbnv6 txvbqboif txvbqbp5f txvbqblx6 txvbqb9io txvbqbai6 txvbqbcf txvbqbanx txvbqbu6f txvbqb12f txvbqb1px txvbqb1ro txvbqbuzj txvbqb8x txvbqbamf txvbqbv8p txvbqbt5o txvbqbv txvbqb78 txvbqb6w txvbqb7k", f = "_11ypmksi txvbqbv8p", p = "_11ypmksj txvbqb8o txvbqbv8t", m = "_11ypmksk txvbqbgmo txvbqbh9x txvbqbhwx txvbqbfz6 txvbqbcfo txvbqbv3d", h = "_11ypmksl txvbqbnux txvbqboi6 txvbqbp56 txvbqblwx";
|
|
14
|
+
//#endregion
|
|
15
|
+
export { h as actionsContainer, t as container, n as label, l as menu, u as menuOpen, m as menuSeparator, d as optionButton, p as optionDescription, f as optionSelected, r as trigger, o as triggerIcon, c as triggerIconBrand, s as triggerIconOpen, i as triggerOpen, a as valueText };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=SimpleSelect.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleSelect.css.js","
|
|
1
|
+
{"version":3,"file":"SimpleSelect.css.js","names":[],"sources":["../../../../src/components/select/SimpleSelect.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\nimport { recipe, type RecipeVariants } from '@vanilla-extract/recipes';\n\nimport { sprinkles } from '../../theme/sprinkles.css.js';\nimport { vars } from '../../theme/themeContract.js';\n\nexport const container = sprinkles({\n position: 'relative',\n width: 'full',\n});\n\nexport const label = sprinkles({\n display: 'block',\n marginBottom: 2,\n fontSize: 'xs',\n fontWeight: 'semibold',\n letterSpacing: 'wider',\n textTransform: 'uppercase',\n color: 'textMuted',\n});\n\nconst triggerBase = style([\n sprinkles({\n width: 'full',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n gap: 2,\n paddingY: 2,\n paddingX: 3,\n borderRadius: 'xl',\n fontSize: 'sm',\n fontWeight: 'semibold',\n textAlign: 'left',\n cursor: 'pointer',\n transitionProperty: 'colors',\n transitionDuration: 150,\n transitionTimingFunction: 'ease',\n }),\n {\n selectors: {\n '&:disabled': {\n opacity: 0.6,\n cursor: 'not-allowed',\n },\n },\n },\n]);\n\nconst defaultTrigger = sprinkles({\n borderWidth: 'px',\n borderStyle: 'solid',\n borderColor: 'border',\n backgroundColor: 'white',\n color: 'text',\n});\n\nconst brandTrigger = style([\n sprinkles({\n color: 'brandWhite',\n borderWidth: 'default',\n borderStyle: 'solid',\n borderColor: 'brandPrimaryRed',\n backgroundImage: 'brandDiagonal',\n }),\n {\n // boxShadow: `0 0 0 1px ${vars.colors.brandPrimaryRed}`,\n selectors: {\n '&:hover': {\n filter: 'brightness(0.98)',\n },\n '&:focus-visible': {\n outline: 'none',\n // borderColor: vars.colors.brandPrimaryRed,\n boxShadow: `0 0 0 2px ${vars.colors.brandSecondaryOrange}`,\n },\n },\n },\n]);\n\nexport const trigger = recipe({\n base: triggerBase,\n variants: {\n variant: {\n default: defaultTrigger,\n brand: brandTrigger,\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n});\n\nexport const triggerOpen = sprinkles({\n borderBottomLeftRadius: 'none',\n borderBottomRightRadius: 'none',\n});\n\nexport const valueText = sprinkles({\n flex: 1,\n minWidth: 0,\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n});\n\nexport const triggerIcon = sprinkles({\n display: 'grid',\n alignItems: 'center',\n justifyContent: 'center',\n width: 4,\n height: 4,\n color: 'textMuted',\n transitionProperty: 'default',\n transitionDuration: 150,\n transitionTimingFunction: 'ease',\n});\n\nexport const triggerIconOpen = sprinkles({\n rotate: 180,\n color: 'text',\n});\n\nexport const triggerIconBrand = sprinkles({\n color: 'brandWhite',\n});\n\nexport const menu = sprinkles({\n position: 'absolute',\n top: 'full',\n left: 0,\n right: 0,\n zIndex: 10,\n display: 'flex',\n flexDirection: 'column',\n gap: 1,\n padding: 1,\n borderRadius: 'xl',\n borderWidth: 'default',\n borderStyle: 'solid',\n borderColor: 'border',\n backgroundColor: 'white',\n boxShadow: 'lg',\n maxHeight: 72,\n overflowY: 'auto',\n});\n\nexport const menuOpen = sprinkles({\n borderTopLeftRadius: 'none',\n borderTopRightRadius: 'none',\n marginTop: '-px',\n});\n\nexport const optionButton = sprinkles({\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'flex-start',\n gap: 1,\n width: 'full',\n borderWidth: 0,\n borderStyle: 'none',\n borderRadius: 'lg',\n backgroundColor: 'transparent',\n paddingY: 2,\n paddingX: 3,\n fontSize: 'sm',\n fontWeight: 'medium',\n color: 'text',\n textAlign: 'left',\n cursor: 'pointer',\n transitionProperty: 'colors',\n transitionDuration: 120,\n transitionTimingFunction: 'ease',\n});\n\nexport const optionSelected = sprinkles({\n // backgroundColor: vars.colors['slate-100'],\n color: 'text',\n});\n\nexport const optionDescription = sprinkles({\n fontSize: 'xs',\n color: 'textMuted',\n});\n\nexport const menuSeparator = sprinkles({\n height: 'px',\n marginY: 1,\n marginX: 2,\n backgroundColor: 'border',\n});\n\nexport const actionsContainer = sprinkles({\n paddingY: 1,\n paddingX: 2,\n});\n\nexport type SimpleSelectVariants = RecipeVariants<typeof trigger>;\n"],"mappings":""}
|