@coveord/plasma-mantine 57.1.0 → 58.0.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/.turbo/turbo-build.log +4 -4
- package/.turbo/turbo-test.log +106 -102
- package/dist/.tsbuildinfo +1 -1
- package/dist/cjs/components/ActionIcon/ActionIcon.d.ts +3 -3
- package/dist/cjs/components/Alert/Alert.d.ts +3 -3
- package/dist/cjs/components/Alert/Alert.js +4 -12
- package/dist/cjs/components/Alert/Alert.js.map +1 -1
- package/dist/cjs/components/AppShell/AppShell.d.ts +8 -1
- package/dist/cjs/components/AppShell/AppShell.d.ts.map +1 -1
- package/dist/cjs/components/AppShell/AppShell.js +27 -1
- package/dist/cjs/components/AppShell/AppShell.js.map +1 -1
- package/dist/cjs/components/AppShell/AppShell.module.css +4 -0
- package/dist/cjs/components/Badge/Badge.d.ts +3 -3
- package/dist/cjs/components/BrowserPreview/BrowserPreview.d.ts +1 -1
- package/dist/cjs/components/BrowserPreview/BrowserPreview.d.ts.map +1 -1
- package/dist/cjs/components/BrowserPreview/BrowserPreview.js +1 -2
- package/dist/cjs/components/BrowserPreview/BrowserPreview.js.map +1 -1
- package/dist/cjs/components/Button/Button.d.ts +3 -3
- package/dist/cjs/components/ChildForm/ChildForm.d.ts +5 -4
- package/dist/cjs/components/ChildForm/ChildForm.d.ts.map +1 -1
- package/dist/cjs/components/ChildForm/ChildForm.js +4 -2
- package/dist/cjs/components/ChildForm/ChildForm.js.map +1 -1
- package/dist/cjs/components/Collection/Collection.d.ts +6 -6
- package/dist/cjs/components/Collection/CollectionAddButton.d.ts +1 -1
- package/dist/cjs/components/Collection/CollectionAddButton.d.ts.map +1 -1
- package/dist/cjs/components/Collection/CollectionContext.d.ts +1 -1
- package/dist/cjs/components/Collection/CollectionContext.d.ts.map +1 -1
- package/dist/cjs/components/Collection/layouts/CollectionLayouts.d.ts +5 -5
- package/dist/cjs/components/Collection/layouts/horizontal-layout/HorizontalLayout.d.ts +3 -3
- package/dist/cjs/components/Collection/layouts/horizontal-layout/HorizontalLayoutBody.d.ts +1 -1
- package/dist/cjs/components/Collection/layouts/horizontal-layout/HorizontalLayoutBody.d.ts.map +1 -1
- package/dist/cjs/components/Collection/layouts/horizontal-layout/HorizontalLayoutHeader.d.ts +1 -1
- package/dist/cjs/components/Collection/layouts/horizontal-layout/HorizontalLayoutHeader.d.ts.map +1 -1
- package/dist/cjs/components/Collection/layouts/shared/itemRenderer.d.ts +3 -3
- package/dist/cjs/components/Collection/layouts/vertical-layout/VerticalLayout.d.ts +2 -2
- package/dist/cjs/components/Collection/layouts/vertical-layout/VerticalLayoutBody.d.ts +1 -1
- package/dist/cjs/components/Collection/layouts/vertical-layout/VerticalLayoutBody.d.ts.map +1 -1
- package/dist/cjs/components/DateRangePicker/DateRangePickerInlineCalendar.d.ts +1 -1
- package/dist/cjs/components/DateRangePicker/DateRangePickerInlineCalendar.d.ts.map +1 -1
- package/dist/cjs/components/DateRangePicker/DateRangePickerPopoverCalendar.d.ts +1 -1
- package/dist/cjs/components/DateRangePicker/DateRangePickerPopoverCalendar.d.ts.map +1 -1
- package/dist/cjs/components/DateTimeRangePicker/DateTimeRangePicker.d.ts +1 -1
- package/dist/cjs/components/DateTimeRangePicker/DateTimeRangePicker.d.ts.map +1 -1
- package/dist/cjs/components/EllipsisText/EllipsisText.d.ts +3 -3
- package/dist/cjs/components/Header/Header.context.d.ts +1 -1
- package/dist/cjs/components/Header/Header.context.d.ts.map +1 -1
- package/dist/cjs/components/Header/Header.module.css +0 -5
- package/dist/cjs/components/Header/HeaderBreadcrumbs/HeaderBreadcrumbAnchor.d.ts +3 -3
- package/dist/cjs/components/Header/HeaderBreadcrumbs/HeaderBreadcrumbText.d.ts +3 -3
- package/dist/cjs/components/Header/HeaderDocAnchor/HeaderDocAnchor.js +2 -4
- package/dist/cjs/components/Header/HeaderDocAnchor/HeaderDocAnchor.js.map +1 -1
- package/dist/cjs/components/InfoToken/InfoToken.d.ts +26 -82
- package/dist/cjs/components/InfoToken/InfoToken.d.ts.map +1 -1
- package/dist/cjs/components/InfoToken/InfoToken.js +62 -55
- package/dist/cjs/components/InfoToken/InfoToken.js.map +1 -1
- package/dist/cjs/components/InfoToken/InfoToken.module.css +11 -3
- package/dist/cjs/components/InlineConfirm/InlineConfirmTarget.d.ts +3 -3
- package/dist/cjs/components/Input/Input.d.ts +14 -1
- package/dist/cjs/components/Input/Input.d.ts.map +1 -1
- package/dist/cjs/components/Input/Input.js +17 -5
- package/dist/cjs/components/Input/Input.js.map +1 -1
- package/dist/cjs/components/Input/InputLabelInfo.d.ts +17 -0
- package/dist/cjs/components/Input/InputLabelInfo.d.ts.map +1 -0
- package/dist/cjs/components/Input/InputLabelInfo.js +58 -0
- package/dist/cjs/components/Input/InputLabelInfo.js.map +1 -0
- package/dist/cjs/components/Input/InputLabelInfo.module.css +5 -0
- package/dist/cjs/components/Menu/Menu.d.ts +1 -1
- package/dist/cjs/components/Modal/Modal.js +1 -1
- package/dist/cjs/components/Modal/Modal.js.map +1 -1
- package/dist/cjs/components/Modal/ModalFooter.js +2 -0
- package/dist/cjs/components/Modal/ModalFooter.js.map +1 -1
- package/dist/cjs/components/Modal/ModalFooter.module.css +2 -2
- package/dist/cjs/components/Prompt/Prompt.context.d.ts +1 -1
- package/dist/cjs/components/Prompt/Prompt.context.d.ts.map +1 -1
- package/dist/cjs/components/Prompt/Prompt.d.ts +33 -33
- package/dist/cjs/components/Prompt/Prompt.d.ts.map +1 -1
- package/dist/cjs/components/Prompt/Prompt.js +38 -18
- package/dist/cjs/components/Prompt/Prompt.js.map +1 -1
- package/dist/cjs/components/Prompt/Prompt.module.css +0 -17
- package/dist/cjs/components/Prompt/PromptCancelButton.d.ts.map +1 -1
- package/dist/cjs/components/Prompt/PromptCancelButton.js +1 -0
- package/dist/cjs/components/Prompt/PromptCancelButton.js.map +1 -1
- package/dist/cjs/components/Prompt/PromptConfirmButton.d.ts.map +1 -1
- package/dist/cjs/components/Prompt/PromptConfirmButton.js +2 -1
- package/dist/cjs/components/Prompt/PromptConfirmButton.js.map +1 -1
- package/dist/cjs/components/StickyFooter/StickyFooter.js +1 -1
- package/dist/cjs/components/StickyFooter/StickyFooter.js.map +1 -1
- package/dist/cjs/components/Table/Table.d.ts +4 -4
- package/dist/cjs/components/Table/layouts/TableLayoutControl.d.ts +1 -1
- package/dist/cjs/components/Table/layouts/TableLayoutControl.d.ts.map +1 -1
- package/dist/cjs/components/Table/layouts/row-layout/RowLayoutBody.d.ts +1 -1
- package/dist/cjs/components/Table/layouts/row-layout/RowLayoutContext.d.ts +1 -1
- package/dist/cjs/components/Table/layouts/row-layout/RowLayoutContext.d.ts.map +1 -1
- package/dist/cjs/components/Table/layouts/row-layout/RowLayoutHeader.d.ts +1 -1
- package/dist/cjs/components/Table/table-actions/TableActionItem.d.ts +3 -3
- package/dist/cjs/components/Table/table-actions/TableActionsList.d.ts +2 -2
- package/dist/cjs/components/Table/table-header/Th.d.ts +1 -1
- package/dist/cjs/index.d.ts +3 -3
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +7 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/styles/AppShell.module.css +4 -0
- package/dist/cjs/styles/Breadcrumbs.module.css +0 -4
- package/dist/cjs/styles/Checkbox.module.css +0 -1
- package/dist/cjs/styles/InputWrapper.module.css +0 -4
- package/dist/cjs/styles/NavLink.module.css +0 -2
- package/dist/cjs/styles/Radio.module.css +0 -1
- package/dist/cjs/styles/RadioCard.module.css +0 -1
- package/dist/cjs/styles/Select.module.css +0 -2
- package/dist/cjs/styles/Tabs.module.css +2 -2
- package/dist/cjs/theme/Theme.d.ts.map +1 -1
- package/dist/cjs/theme/Theme.js +15 -4
- package/dist/cjs/theme/Theme.js.map +1 -1
- package/dist/cjs/theme/plasmaCSSVariablesResolver.d.ts.map +1 -1
- package/dist/cjs/theme/plasmaCSSVariablesResolver.js +3 -6
- package/dist/cjs/theme/plasmaCSSVariablesResolver.js.map +1 -1
- package/dist/esm/components/ActionIcon/ActionIcon.d.ts +3 -3
- package/dist/esm/components/Alert/Alert.d.ts +3 -3
- package/dist/esm/components/Alert/Alert.js +4 -12
- package/dist/esm/components/Alert/Alert.js.map +1 -1
- package/dist/esm/components/AppShell/AppShell.d.ts +8 -1
- package/dist/esm/components/AppShell/AppShell.d.ts.map +1 -1
- package/dist/esm/components/AppShell/AppShell.js +15 -3
- package/dist/esm/components/AppShell/AppShell.js.map +1 -1
- package/dist/esm/components/AppShell/AppShell.module.css +4 -0
- package/dist/esm/components/Badge/Badge.d.ts +3 -3
- package/dist/esm/components/BrowserPreview/BrowserPreview.js +1 -2
- package/dist/esm/components/BrowserPreview/BrowserPreview.js.map +1 -1
- package/dist/esm/components/Button/Button.d.ts +3 -3
- package/dist/esm/components/ChildForm/ChildForm.d.ts +5 -4
- package/dist/esm/components/ChildForm/ChildForm.d.ts.map +1 -1
- package/dist/esm/components/ChildForm/ChildForm.js +4 -2
- package/dist/esm/components/ChildForm/ChildForm.js.map +1 -1
- package/dist/esm/components/EllipsisText/EllipsisText.d.ts +3 -3
- package/dist/esm/components/Header/Header.module.css +0 -5
- package/dist/esm/components/Header/HeaderBreadcrumbs/HeaderBreadcrumbAnchor.d.ts +3 -3
- package/dist/esm/components/Header/HeaderBreadcrumbs/HeaderBreadcrumbText.d.ts +3 -3
- package/dist/esm/components/Header/HeaderDocAnchor/HeaderDocAnchor.js +2 -4
- package/dist/esm/components/Header/HeaderDocAnchor/HeaderDocAnchor.js.map +1 -1
- package/dist/esm/components/InfoToken/InfoToken.d.ts +26 -82
- package/dist/esm/components/InfoToken/InfoToken.d.ts.map +1 -1
- package/dist/esm/components/InfoToken/InfoToken.js +61 -57
- package/dist/esm/components/InfoToken/InfoToken.js.map +1 -1
- package/dist/esm/components/InfoToken/InfoToken.module.css +11 -3
- package/dist/esm/components/InlineConfirm/InlineConfirmTarget.d.ts +3 -3
- package/dist/esm/components/Input/Input.d.ts +14 -1
- package/dist/esm/components/Input/Input.d.ts.map +1 -1
- package/dist/esm/components/Input/Input.js +7 -2
- package/dist/esm/components/Input/Input.js.map +1 -1
- package/dist/esm/components/Input/InputLabelInfo.d.ts +17 -0
- package/dist/esm/components/Input/InputLabelInfo.d.ts.map +1 -0
- package/dist/esm/components/Input/InputLabelInfo.js +35 -0
- package/dist/esm/components/Input/InputLabelInfo.js.map +1 -0
- package/dist/esm/components/Input/InputLabelInfo.module.css +5 -0
- package/dist/esm/components/Modal/Modal.js +1 -1
- package/dist/esm/components/Modal/Modal.js.map +1 -1
- package/dist/esm/components/Modal/ModalFooter.js +2 -0
- package/dist/esm/components/Modal/ModalFooter.js.map +1 -1
- package/dist/esm/components/Modal/ModalFooter.module.css +2 -2
- package/dist/esm/components/Prompt/Prompt.d.ts +33 -33
- package/dist/esm/components/Prompt/Prompt.d.ts.map +1 -1
- package/dist/esm/components/Prompt/Prompt.js +38 -19
- package/dist/esm/components/Prompt/Prompt.js.map +1 -1
- package/dist/esm/components/Prompt/Prompt.module.css +0 -17
- package/dist/esm/components/Prompt/PromptCancelButton.d.ts.map +1 -1
- package/dist/esm/components/Prompt/PromptCancelButton.js +1 -0
- package/dist/esm/components/Prompt/PromptCancelButton.js.map +1 -1
- package/dist/esm/components/Prompt/PromptConfirmButton.d.ts.map +1 -1
- package/dist/esm/components/Prompt/PromptConfirmButton.js +2 -1
- package/dist/esm/components/Prompt/PromptConfirmButton.js.map +1 -1
- package/dist/esm/components/StickyFooter/StickyFooter.js +1 -1
- package/dist/esm/components/StickyFooter/StickyFooter.js.map +1 -1
- package/dist/esm/components/Table/Table.d.ts +3 -3
- package/dist/esm/components/Table/table-actions/TableActionItem.d.ts +3 -3
- package/dist/esm/index.d.ts +3 -3
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/styles/AppShell.module.css +4 -0
- package/dist/esm/styles/Breadcrumbs.module.css +0 -4
- package/dist/esm/styles/Checkbox.module.css +0 -1
- package/dist/esm/styles/InputWrapper.module.css +0 -4
- package/dist/esm/styles/NavLink.module.css +0 -2
- package/dist/esm/styles/Radio.module.css +0 -1
- package/dist/esm/styles/RadioCard.module.css +0 -1
- package/dist/esm/styles/Select.module.css +0 -2
- package/dist/esm/styles/Tabs.module.css +2 -2
- package/dist/esm/theme/Theme.d.ts.map +1 -1
- package/dist/esm/theme/Theme.js +15 -4
- package/dist/esm/theme/Theme.js.map +1 -1
- package/dist/esm/theme/plasmaCSSVariablesResolver.d.ts.map +1 -1
- package/dist/esm/theme/plasmaCSSVariablesResolver.js +3 -6
- package/dist/esm/theme/plasmaCSSVariablesResolver.js.map +1 -1
- package/package.json +23 -23
- package/src/components/Alert/Alert.tsx +4 -4
- package/src/components/AppShell/AppShell.module.css +4 -0
- package/src/components/AppShell/AppShell.tsx +27 -0
- package/src/components/BrowserPreview/BrowserPreview.tsx +1 -1
- package/src/components/ChildForm/ChildForm.tsx +10 -3
- package/src/components/ChildForm/__tests__/ChildForm.spec.tsx +29 -4
- package/src/components/Header/Header.module.css +0 -5
- package/src/components/Header/HeaderDocAnchor/HeaderDocAnchor.tsx +2 -2
- package/src/components/InfoToken/InfoToken.module.css +11 -3
- package/src/components/InfoToken/InfoToken.tsx +83 -67
- package/src/components/Input/Input.ts +24 -2
- package/src/components/Input/InputLabelInfo.module.css +5 -0
- package/src/components/Input/InputLabelInfo.tsx +43 -0
- package/src/components/Input/__tests__/Input.spec.tsx +33 -0
- package/src/components/Modal/Modal.tsx +1 -1
- package/src/components/Modal/ModalFooter.module.css +2 -2
- package/src/components/Modal/ModalFooter.tsx +3 -1
- package/src/components/Prompt/Prompt.module.css +0 -17
- package/src/components/Prompt/Prompt.tsx +48 -34
- package/src/components/Prompt/PromptCancelButton.tsx +3 -1
- package/src/components/Prompt/PromptConfirmButton.tsx +4 -2
- package/src/components/Prompt/__tests__/Prompt.spec.tsx +18 -16
- package/src/components/StickyFooter/StickyFooter.tsx +1 -1
- package/src/components/Switch/__tests__/Switch.spec.tsx +27 -0
- package/src/index.ts +12 -4
- package/src/styles/AppShell.module.css +4 -0
- package/src/styles/Breadcrumbs.module.css +0 -4
- package/src/styles/Checkbox.module.css +0 -1
- package/src/styles/InputWrapper.module.css +0 -4
- package/src/styles/NavLink.module.css +0 -2
- package/src/styles/Radio.module.css +0 -1
- package/src/styles/RadioCard.module.css +0 -1
- package/src/styles/Select.module.css +0 -2
- package/src/styles/Tabs.module.css +2 -2
- package/src/theme/Theme.tsx +10 -2
- package/src/theme/__tests__/plasmaCSSVariablesResolver.spec.ts +3 -6
- package/src/theme/plasmaCSSVariablesResolver.ts +3 -6
- package/dist/cjs/components/Prompt/icons/CriticalIcon.d.ts +0 -3
- package/dist/cjs/components/Prompt/icons/CriticalIcon.d.ts.map +0 -1
- package/dist/cjs/components/Prompt/icons/CriticalIcon.js +0 -29
- package/dist/cjs/components/Prompt/icons/CriticalIcon.js.map +0 -1
- package/dist/cjs/components/Prompt/icons/InfoIcon.d.ts +0 -3
- package/dist/cjs/components/Prompt/icons/InfoIcon.d.ts.map +0 -1
- package/dist/cjs/components/Prompt/icons/InfoIcon.js +0 -29
- package/dist/cjs/components/Prompt/icons/InfoIcon.js.map +0 -1
- package/dist/cjs/components/Prompt/icons/SuccessIcon.d.ts +0 -3
- package/dist/cjs/components/Prompt/icons/SuccessIcon.d.ts.map +0 -1
- package/dist/cjs/components/Prompt/icons/SuccessIcon.js +0 -29
- package/dist/cjs/components/Prompt/icons/SuccessIcon.js.map +0 -1
- package/dist/cjs/components/Prompt/icons/WarningIcon.d.ts +0 -3
- package/dist/cjs/components/Prompt/icons/WarningIcon.d.ts.map +0 -1
- package/dist/cjs/components/Prompt/icons/WarningIcon.js +0 -29
- package/dist/cjs/components/Prompt/icons/WarningIcon.js.map +0 -1
- package/dist/esm/components/Prompt/icons/CriticalIcon.d.ts +0 -3
- package/dist/esm/components/Prompt/icons/CriticalIcon.d.ts.map +0 -1
- package/dist/esm/components/Prompt/icons/CriticalIcon.js +0 -17
- package/dist/esm/components/Prompt/icons/CriticalIcon.js.map +0 -1
- package/dist/esm/components/Prompt/icons/InfoIcon.d.ts +0 -3
- package/dist/esm/components/Prompt/icons/InfoIcon.d.ts.map +0 -1
- package/dist/esm/components/Prompt/icons/InfoIcon.js +0 -17
- package/dist/esm/components/Prompt/icons/InfoIcon.js.map +0 -1
- package/dist/esm/components/Prompt/icons/SuccessIcon.d.ts +0 -3
- package/dist/esm/components/Prompt/icons/SuccessIcon.d.ts.map +0 -1
- package/dist/esm/components/Prompt/icons/SuccessIcon.js +0 -17
- package/dist/esm/components/Prompt/icons/SuccessIcon.js.map +0 -1
- package/dist/esm/components/Prompt/icons/WarningIcon.d.ts +0 -3
- package/dist/esm/components/Prompt/icons/WarningIcon.d.ts.map +0 -1
- package/dist/esm/components/Prompt/icons/WarningIcon.js +0 -17
- package/dist/esm/components/Prompt/icons/WarningIcon.js.map +0 -1
- package/src/components/AppShell/AppShell.ts +0 -11
- package/src/components/Prompt/icons/CriticalIcon.tsx +0 -18
- package/src/components/Prompt/icons/InfoIcon.tsx +0 -18
- package/src/components/Prompt/icons/SuccessIcon.tsx +0 -17
- package/src/components/Prompt/icons/WarningIcon.tsx +0 -18
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plasmaCSSVariablesResolver.d.ts","sourceRoot":"","sources":["../../../src/theme/plasmaCSSVariablesResolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAGH,oBAAoB,EAKvB,MAAM,eAAe,CAAC;AAEvB,eAAO,MAAM,0BAA0B,EAAE,
|
|
1
|
+
{"version":3,"file":"plasmaCSSVariablesResolver.d.ts","sourceRoot":"","sources":["../../../src/theme/plasmaCSSVariablesResolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAGH,oBAAoB,EAKvB,MAAM,eAAe,CAAC;AAEvB,eAAO,MAAM,0BAA0B,EAAE,oBAuFxC,CAAC"}
|
|
@@ -23,7 +23,7 @@ var plasmaCSSVariablesResolver = function plasmaCSSVariablesResolver(theme) {
|
|
|
23
23
|
},
|
|
24
24
|
dark: {
|
|
25
25
|
// custom colors
|
|
26
|
-
'--coveo-color-title': 'var(--mantine-color-
|
|
26
|
+
'--coveo-color-title': 'var(--mantine-color-text)',
|
|
27
27
|
'--coveo-app-background': theme.colors.dark[8],
|
|
28
28
|
'--coveo-color-input-border': theme.colors.dark[4],
|
|
29
29
|
'--coveo-color-text-readonly': theme.colors.dark[0],
|
|
@@ -50,7 +50,7 @@ var plasmaCSSVariablesResolver = function plasmaCSSVariablesResolver(theme) {
|
|
|
50
50
|
// custom colors
|
|
51
51
|
'--coveo-app-background': theme.colors.gray[0],
|
|
52
52
|
'--coveo-color-input-border': theme.colors.gray[3],
|
|
53
|
-
'--coveo-color-title':
|
|
53
|
+
'--coveo-color-title': 'var(--mantine-color-text)',
|
|
54
54
|
'--coveo-color-text-readonly': 'var(--mantine-color-text)',
|
|
55
55
|
'--coveo-color-bg-readonly': theme.colors.gray[1],
|
|
56
56
|
'--coveo-color-text-primary': 'var(--mantine-primary-color-filled)',
|
|
@@ -61,12 +61,9 @@ var plasmaCSSVariablesResolver = function plasmaCSSVariablesResolver(theme) {
|
|
|
61
61
|
'--mantine-color-default-border': theme.colors.gray[2],
|
|
62
62
|
'--mantine-color-default-hover': theme.colors.gray[1],
|
|
63
63
|
'--mantine-color-error': theme.colors.red[5],
|
|
64
|
-
'--mantine-color-text': theme.colors.gray[6],
|
|
65
64
|
'--mantine-color-dimmed': theme.colors.gray[5],
|
|
66
|
-
'--mantine-color-gray-filled': theme.colors.gray[4],
|
|
67
|
-
'--mantine-color-warning-filled': theme.colors.yellow[4],
|
|
68
65
|
'--mantine-color-placeholder': theme.colors.gray[4],
|
|
69
|
-
'--mantine-color-disabled':
|
|
66
|
+
'--mantine-color-disabled': theme.colors.gray[1],
|
|
70
67
|
'--mantine-color-disabled-color': theme.colors.gray[3]
|
|
71
68
|
}
|
|
72
69
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/theme/plasmaCSSVariablesResolver.ts"],"sourcesContent":["import {\n alpha,\n ConvertCSSVariablesInput,\n CSSVariablesResolver,\n defaultCssVariablesResolver,\n getPrimaryShade,\n MantineColor,\n MantineTheme,\n} from '@mantine/core';\n\nexport const plasmaCSSVariablesResolver: CSSVariablesResolver = (theme) => {\n // Get the default Mantine CSS variables\n const mantineVariables = defaultCssVariablesResolver(theme);\n\n // Define your custom variables\n const customVariables: ConvertCSSVariablesInput = {\n variables: {\n '--coveo-fw-light': '300',\n '--coveo-fw-normal': '400',\n '--coveo-fw-bold': '500',\n },\n dark: {\n // custom colors\n '--coveo-color-title': 'var(--mantine-color-
|
|
1
|
+
{"version":3,"sources":["../../../src/theme/plasmaCSSVariablesResolver.ts"],"sourcesContent":["import {\n alpha,\n ConvertCSSVariablesInput,\n CSSVariablesResolver,\n defaultCssVariablesResolver,\n getPrimaryShade,\n MantineColor,\n MantineTheme,\n} from '@mantine/core';\n\nexport const plasmaCSSVariablesResolver: CSSVariablesResolver = (theme) => {\n // Get the default Mantine CSS variables\n const mantineVariables = defaultCssVariablesResolver(theme);\n\n // Define your custom variables\n const customVariables: ConvertCSSVariablesInput = {\n variables: {\n '--coveo-fw-light': '300',\n '--coveo-fw-normal': '400',\n '--coveo-fw-bold': '500',\n },\n dark: {\n // custom colors\n '--coveo-color-title': 'var(--mantine-color-text)',\n '--coveo-app-background': theme.colors.dark[8],\n '--coveo-color-input-border': theme.colors.dark[4],\n '--coveo-color-text-readonly': theme.colors.dark[0],\n '--coveo-color-bg-readonly': theme.colors.dark[6],\n '--coveo-color-text-primary': 'var(--mantine-primary-color-4)',\n '--coveo-color-bg-dark-surface': 'var(--mantine-primary-color-3)',\n\n // mantine overrides\n '--mantine-primary-color-light': 'var(--mantine-primary-color-7)',\n '--mantine-color-body': theme.colors.dark[7],\n '--mantine-color-default': theme.colors.dark[7],\n '--mantine-color-default-border': theme.colors.dark[6],\n '--mantine-color-default-hover': theme.colors.dark[6],\n '--mantine-color-error': theme.colors.red[4],\n '--mantine-color-text': theme.colors.dark[0],\n '--mantine-color-dimmed': theme.colors.dark[1],\n '--mantine-color-gray-filled': theme.colors.dark[6],\n '--mantine-color-warning-filled': theme.colors.yellow[2],\n '--mantine-color-warning-light': theme.colors.yellow[6],\n '--mantine-color-placeholder': theme.colors.dark[2],\n '--mantine-color-disabled': theme.colors.dark[7],\n '--mantine-color-disabled-color': theme.colors.dark[3],\n },\n light: {\n // custom colors\n '--coveo-app-background': theme.colors.gray[0],\n '--coveo-color-input-border': theme.colors.gray[3],\n '--coveo-color-title': 'var(--mantine-color-text)', // @deprecated\n '--coveo-color-text-readonly': 'var(--mantine-color-text)',\n '--coveo-color-bg-readonly': theme.colors.gray[1],\n '--coveo-color-text-primary': 'var(--mantine-primary-color-filled)',\n '--coveo-color-bg-dark-surface': theme.colors.violet[9],\n\n // mantine overrides\n '--mantine-color-body': 'var(--mantine-color-white)',\n '--mantine-color-default': 'var(--mantine-color-white)',\n '--mantine-color-default-border': theme.colors.gray[2],\n '--mantine-color-default-hover': theme.colors.gray[1],\n '--mantine-color-error': theme.colors.red[5],\n '--mantine-color-dimmed': theme.colors.gray[5],\n '--mantine-color-placeholder': theme.colors.gray[4],\n '--mantine-color-disabled': theme.colors.gray[1],\n '--mantine-color-disabled-color': theme.colors.gray[3],\n },\n };\n\n Object.keys(theme.colors).forEach((color) => {\n Object.assign(\n customVariables.light,\n getVariantLightVariables({\n theme,\n color,\n colorScheme: 'light',\n }),\n );\n });\n // Merge Mantine variables with custom variables\n const result: ConvertCSSVariablesInput = {\n variables: {\n ...mantineVariables.variables,\n ...customVariables.variables,\n },\n dark: {\n ...mantineVariables.dark,\n ...customVariables.dark,\n },\n light: {\n ...mantineVariables.light,\n ...customVariables.light,\n },\n };\n\n return result;\n};\n\ninterface GetColorVariablesInput {\n theme: MantineTheme;\n color: MantineColor;\n colorScheme: 'light' | 'dark';\n}\n\nconst getVariantLightVariables = ({theme, color, colorScheme}: GetColorVariablesInput) => {\n if (!theme.colors[color]) {\n return {};\n }\n\n if (colorScheme === 'light') {\n const primaryShade = getPrimaryShade(theme, 'light');\n return {\n [`--mantine-color-${color}-light`]: alpha(theme.colors[color][primaryShade], 0.1),\n [`--mantine-color-${color}-light-hover`]: alpha(theme.colors[color][primaryShade], 0.16),\n };\n }\n};\n"],"names":["plasmaCSSVariablesResolver","theme","mantineVariables","defaultCssVariablesResolver","customVariables","variables","dark","colors","red","yellow","light","gray","violet","Object","keys","forEach","color","assign","getVariantLightVariables","colorScheme","result","primaryShade","getPrimaryShade","alpha"],"mappings":";;;;+BAUaA;;;eAAAA;;;;;oBAFN;AAEA,IAAMA,6BAAmD,oCAACC;IAC7D,wCAAwC;IACxC,IAAMC,mBAAmBC,IAAAA,iCAA2B,EAACF;IAErD,+BAA+B;IAC/B,IAAMG,kBAA4C;QAC9CC,WAAW;YACP,oBAAoB;YACpB,qBAAqB;YACrB,mBAAmB;QACvB;QACAC,MAAM;YACF,gBAAgB;YAChB,uBAAuB;YACvB,0BAA0BL,MAAMM,MAAM,CAACD,IAAI,CAAC,EAAE;YAC9C,8BAA8BL,MAAMM,MAAM,CAACD,IAAI,CAAC,EAAE;YAClD,+BAA+BL,MAAMM,MAAM,CAACD,IAAI,CAAC,EAAE;YACnD,6BAA6BL,MAAMM,MAAM,CAACD,IAAI,CAAC,EAAE;YACjD,8BAA8B;YAC9B,iCAAiC;YAEjC,oBAAoB;YACpB,iCAAiC;YACjC,wBAAwBL,MAAMM,MAAM,CAACD,IAAI,CAAC,EAAE;YAC5C,2BAA2BL,MAAMM,MAAM,CAACD,IAAI,CAAC,EAAE;YAC/C,kCAAkCL,MAAMM,MAAM,CAACD,IAAI,CAAC,EAAE;YACtD,iCAAiCL,MAAMM,MAAM,CAACD,IAAI,CAAC,EAAE;YACrD,yBAAyBL,MAAMM,MAAM,CAACC,GAAG,CAAC,EAAE;YAC5C,wBAAwBP,MAAMM,MAAM,CAACD,IAAI,CAAC,EAAE;YAC5C,0BAA0BL,MAAMM,MAAM,CAACD,IAAI,CAAC,EAAE;YAC9C,+BAA+BL,MAAMM,MAAM,CAACD,IAAI,CAAC,EAAE;YACnD,kCAAkCL,MAAMM,MAAM,CAACE,MAAM,CAAC,EAAE;YACxD,iCAAiCR,MAAMM,MAAM,CAACE,MAAM,CAAC,EAAE;YACvD,+BAA+BR,MAAMM,MAAM,CAACD,IAAI,CAAC,EAAE;YACnD,4BAA4BL,MAAMM,MAAM,CAACD,IAAI,CAAC,EAAE;YAChD,kCAAkCL,MAAMM,MAAM,CAACD,IAAI,CAAC,EAAE;QAC1D;QACAI,OAAO;YACH,gBAAgB;YAChB,0BAA0BT,MAAMM,MAAM,CAACI,IAAI,CAAC,EAAE;YAC9C,8BAA8BV,MAAMM,MAAM,CAACI,IAAI,CAAC,EAAE;YAClD,uBAAuB;YACvB,+BAA+B;YAC/B,6BAA6BV,MAAMM,MAAM,CAACI,IAAI,CAAC,EAAE;YACjD,8BAA8B;YAC9B,iCAAiCV,MAAMM,MAAM,CAACK,MAAM,CAAC,EAAE;YAEvD,oBAAoB;YACpB,wBAAwB;YACxB,2BAA2B;YAC3B,kCAAkCX,MAAMM,MAAM,CAACI,IAAI,CAAC,EAAE;YACtD,iCAAiCV,MAAMM,MAAM,CAACI,IAAI,CAAC,EAAE;YACrD,yBAAyBV,MAAMM,MAAM,CAACC,GAAG,CAAC,EAAE;YAC5C,0BAA0BP,MAAMM,MAAM,CAACI,IAAI,CAAC,EAAE;YAC9C,+BAA+BV,MAAMM,MAAM,CAACI,IAAI,CAAC,EAAE;YACnD,4BAA4BV,MAAMM,MAAM,CAACI,IAAI,CAAC,EAAE;YAChD,kCAAkCV,MAAMM,MAAM,CAACI,IAAI,CAAC,EAAE;QAC1D;IACJ;IAEAE,OAAOC,IAAI,CAACb,MAAMM,MAAM,EAAEQ,OAAO,CAAC,SAACC;QAC/BH,OAAOI,MAAM,CACTb,gBAAgBM,KAAK,EACrBQ,yBAAyB;YACrBjB,OAAAA;YACAe,OAAAA;YACAG,aAAa;QACjB;IAER;IACA,gDAAgD;IAChD,IAAMC,SAAmC;QACrCf,WAAW,qBACJH,iBAAiBG,SAAS,EAC1BD,gBAAgBC,SAAS;QAEhCC,MAAM,qBACCJ,iBAAiBI,IAAI,EACrBF,gBAAgBE,IAAI;QAE3BI,OAAO,qBACAR,iBAAiBQ,KAAK,EACtBN,gBAAgBM,KAAK;IAEhC;IAEA,OAAOU;AACX;AAQA,IAAMF,2BAA2B;QAAEjB,cAAAA,OAAOe,cAAAA,OAAOG,oBAAAA;IAC7C,IAAI,CAAClB,MAAMM,MAAM,CAACS,MAAM,EAAE;QACtB,OAAO,CAAC;IACZ;IAEA,IAAIG,gBAAgB,SAAS;QACzB,IAAME,eAAeC,IAAAA,qBAAe,EAACrB,OAAO;YACrC;QAAP,OAAO,WACH,mBADG,MACF,AAAC,mBAAwB,OAANe,OAAM,WAAUO,IAAAA,WAAK,EAACtB,MAAMM,MAAM,CAACS,MAAM,CAACK,aAAa,EAAE,OAC7E,mBAFG,MAEF,AAAC,mBAAwB,OAANL,OAAM,iBAAgBO,IAAAA,WAAK,EAACtB,MAAMM,MAAM,CAACS,MAAM,CAACK,aAAa,EAAE,QAFhF;IAIX;AACJ"}
|
|
@@ -16,7 +16,7 @@ export declare const ActionIcon: (<C = "button">(props: import("@mantine/core").
|
|
|
16
16
|
}) | (ActionIconProps & {
|
|
17
17
|
component: React.ElementType;
|
|
18
18
|
renderRoot?: (props: Record<string, any>) => any;
|
|
19
|
-
})>, never> & import("
|
|
19
|
+
})>, never> & import("@mantine/core").ThemeExtend<{
|
|
20
20
|
props: ActionIconProps;
|
|
21
21
|
defaultRef: HTMLButtonElement;
|
|
22
22
|
defaultComponent: "button";
|
|
@@ -34,7 +34,7 @@ export declare const ActionIcon: (<C = "button">(props: import("@mantine/core").
|
|
|
34
34
|
DestructiveTertiary: typeof ActionIconDestructiveTertiary;
|
|
35
35
|
DestructiveQuaternary: typeof ActionIconDestructiveQuaternary;
|
|
36
36
|
};
|
|
37
|
-
}> & import("
|
|
37
|
+
}> & import("@mantine/core").ComponentClasses<{
|
|
38
38
|
props: ActionIconProps;
|
|
39
39
|
defaultRef: HTMLButtonElement;
|
|
40
40
|
defaultComponent: "button";
|
|
@@ -52,7 +52,7 @@ export declare const ActionIcon: (<C = "button">(props: import("@mantine/core").
|
|
|
52
52
|
DestructiveTertiary: typeof ActionIconDestructiveTertiary;
|
|
53
53
|
DestructiveQuaternary: typeof ActionIconDestructiveQuaternary;
|
|
54
54
|
};
|
|
55
|
-
}> & import("
|
|
55
|
+
}> & import("@mantine/core").PolymorphicComponentWithProps<{
|
|
56
56
|
props: ActionIconProps;
|
|
57
57
|
defaultRef: HTMLButtonElement;
|
|
58
58
|
defaultComponent: "button";
|
|
@@ -7,7 +7,7 @@ export declare const Alert: (<C = "div">(props: import("@mantine/core").Polymorp
|
|
|
7
7
|
}) | (AlertProps & {
|
|
8
8
|
component: React.ElementType;
|
|
9
9
|
renderRoot?: (props: Record<string, any>) => any;
|
|
10
|
-
})>, never> & import("
|
|
10
|
+
})>, never> & import("@mantine/core").ThemeExtend<{
|
|
11
11
|
props: AlertProps;
|
|
12
12
|
defaultRef: HTMLDivElement;
|
|
13
13
|
defaultComponent: "div";
|
|
@@ -20,7 +20,7 @@ export declare const Alert: (<C = "div">(props: import("@mantine/core").Polymorp
|
|
|
20
20
|
Warning: typeof AlertWarning;
|
|
21
21
|
Critical: typeof AlertCritical;
|
|
22
22
|
};
|
|
23
|
-
}> & import("
|
|
23
|
+
}> & import("@mantine/core").ComponentClasses<{
|
|
24
24
|
props: AlertProps;
|
|
25
25
|
defaultRef: HTMLDivElement;
|
|
26
26
|
defaultComponent: "div";
|
|
@@ -33,7 +33,7 @@ export declare const Alert: (<C = "div">(props: import("@mantine/core").Polymorp
|
|
|
33
33
|
Warning: typeof AlertWarning;
|
|
34
34
|
Critical: typeof AlertCritical;
|
|
35
35
|
};
|
|
36
|
-
}> & import("
|
|
36
|
+
}> & import("@mantine/core").PolymorphicComponentWithProps<{
|
|
37
37
|
props: AlertProps;
|
|
38
38
|
defaultRef: HTMLDivElement;
|
|
39
39
|
defaultComponent: "div";
|
|
@@ -8,9 +8,7 @@ export const Alert = polymorphicFactory((props, ref)=>/*#__PURE__*/ _jsx(Mantine
|
|
|
8
8
|
Alert.displayName = 'Alert';
|
|
9
9
|
const AlertInformation = Alert.withProps({
|
|
10
10
|
color: 'gray',
|
|
11
|
-
icon: /*#__PURE__*/ _jsx(InfoToken, {
|
|
12
|
-
variant: "information"
|
|
13
|
-
}),
|
|
11
|
+
icon: /*#__PURE__*/ _jsx(InfoToken.Information, {}),
|
|
14
12
|
vars: ()=>({
|
|
15
13
|
root: {
|
|
16
14
|
'--alert-color': 'var(--mantine-color-text)',
|
|
@@ -20,9 +18,7 @@ const AlertInformation = Alert.withProps({
|
|
|
20
18
|
});
|
|
21
19
|
AlertInformation.displayName = 'Alert.Information';
|
|
22
20
|
const AlertAdvice = Alert.withProps({
|
|
23
|
-
icon: /*#__PURE__*/ _jsx(InfoToken, {
|
|
24
|
-
variant: "advice"
|
|
25
|
-
}),
|
|
21
|
+
icon: /*#__PURE__*/ _jsx(InfoToken.Advice, {}),
|
|
26
22
|
vars: ()=>({
|
|
27
23
|
root: {
|
|
28
24
|
'--alert-color': 'var(--mantine-primary-color-filled)',
|
|
@@ -33,9 +29,7 @@ const AlertAdvice = Alert.withProps({
|
|
|
33
29
|
AlertAdvice.displayName = 'Alert.Advice';
|
|
34
30
|
const AlertWarning = Alert.withProps({
|
|
35
31
|
color: 'warning',
|
|
36
|
-
icon: /*#__PURE__*/ _jsx(InfoToken, {
|
|
37
|
-
variant: "warning"
|
|
38
|
-
}),
|
|
32
|
+
icon: /*#__PURE__*/ _jsx(InfoToken.Warning, {}),
|
|
39
33
|
vars: ()=>({
|
|
40
34
|
root: {
|
|
41
35
|
'--alert-color': 'var(--mantine-color-warning-filled)',
|
|
@@ -45,9 +39,7 @@ const AlertWarning = Alert.withProps({
|
|
|
45
39
|
});
|
|
46
40
|
AlertWarning.displayName = 'Alert.Warning';
|
|
47
41
|
const AlertCritical = Alert.withProps({
|
|
48
|
-
icon: /*#__PURE__*/ _jsx(InfoToken, {
|
|
49
|
-
variant: "error"
|
|
50
|
-
}),
|
|
42
|
+
icon: /*#__PURE__*/ _jsx(InfoToken.Error, {}),
|
|
51
43
|
vars: ()=>({
|
|
52
44
|
root: {
|
|
53
45
|
'--alert-color': 'var(--mantine-color-error)',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/Alert/Alert.tsx"],"sourcesContent":["import {\n AlertCssVariables,\n AlertProps,\n AlertStylesNames,\n AlertVariant,\n Factory,\n Alert as MantineAlert,\n polymorphicFactory,\n} from '@mantine/core';\nimport {type ComponentType} from 'react';\nimport {InfoToken} from '../InfoToken/InfoToken.js';\n\ntype AlertOverloadFactory = Factory<{\n props: AlertProps;\n defaultRef: HTMLDivElement;\n defaultComponent: 'div';\n stylesNames: AlertStylesNames;\n vars: AlertCssVariables;\n variant: AlertVariant;\n staticComponents: {\n Information: typeof AlertInformation;\n Advice: typeof AlertAdvice;\n Warning: typeof AlertWarning;\n Critical: typeof AlertCritical;\n };\n}>;\n\nexport const Alert = polymorphicFactory<AlertOverloadFactory>((props, ref) => <MantineAlert {...props} ref={ref} />);\nAlert.displayName = 'Alert';\n\nconst AlertInformation = Alert.withProps({\n color: 'gray',\n icon: <InfoToken
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/Alert/Alert.tsx"],"sourcesContent":["import {\n AlertCssVariables,\n AlertProps,\n AlertStylesNames,\n AlertVariant,\n Factory,\n Alert as MantineAlert,\n polymorphicFactory,\n} from '@mantine/core';\nimport {type ComponentType} from 'react';\nimport {InfoToken} from '../InfoToken/InfoToken.js';\n\ntype AlertOverloadFactory = Factory<{\n props: AlertProps;\n defaultRef: HTMLDivElement;\n defaultComponent: 'div';\n stylesNames: AlertStylesNames;\n vars: AlertCssVariables;\n variant: AlertVariant;\n staticComponents: {\n Information: typeof AlertInformation;\n Advice: typeof AlertAdvice;\n Warning: typeof AlertWarning;\n Critical: typeof AlertCritical;\n };\n}>;\n\nexport const Alert = polymorphicFactory<AlertOverloadFactory>((props, ref) => <MantineAlert {...props} ref={ref} />);\nAlert.displayName = 'Alert';\n\nconst AlertInformation = Alert.withProps({\n color: 'gray',\n icon: <InfoToken.Information />,\n vars: () => ({\n root: {\n '--alert-color': 'var(--mantine-color-text)',\n '--alert-bg': 'var(--mantine-color-gray-light)',\n },\n }),\n});\n(AlertInformation as ComponentType).displayName = 'Alert.Information';\n\nconst AlertAdvice = Alert.withProps({\n icon: <InfoToken.Advice />,\n vars: () => ({\n root: {\n '--alert-color': 'var(--mantine-primary-color-filled)',\n '--alert-bg': 'var(--mantine-primary-color-light)',\n },\n }),\n});\n(AlertAdvice as ComponentType).displayName = 'Alert.Advice';\n\nconst AlertWarning = Alert.withProps({\n color: 'warning',\n icon: <InfoToken.Warning />,\n vars: () => ({\n root: {\n '--alert-color': 'var(--mantine-color-warning-filled)',\n '--alert-bg': 'var(--mantine-color-warning-light)',\n },\n }),\n});\n(AlertWarning as ComponentType).displayName = 'Alert.Warning';\n\nconst AlertCritical = Alert.withProps({\n icon: <InfoToken.Error />,\n vars: () => ({\n root: {\n '--alert-color': 'var(--mantine-color-error)',\n '--alert-bg': 'var(--mantine-color-red-light)',\n },\n }),\n});\n(AlertCritical as ComponentType).displayName = 'Alert.Critical';\n\nAlert.Information = AlertInformation;\nAlert.Advice = AlertAdvice;\nAlert.Warning = AlertWarning;\nAlert.Critical = AlertCritical;\n"],"names":["Alert","MantineAlert","polymorphicFactory","InfoToken","props","ref","displayName","AlertInformation","withProps","color","icon","Information","vars","root","AlertAdvice","Advice","AlertWarning","Warning","AlertCritical","Error","Critical"],"mappings":";AAAA,SAMIA,SAASC,YAAY,EACrBC,kBAAkB,QACf,gBAAgB;AAEvB,SAAQC,SAAS,QAAO,4BAA4B;AAiBpD,OAAO,MAAMH,QAAQE,mBAAyC,CAACE,OAAOC,oBAAQ,KAACJ;QAAc,GAAGG,KAAK;QAAEC,KAAKA;QAAS;AACrHL,MAAMM,WAAW,GAAG;AAEpB,MAAMC,mBAAmBP,MAAMQ,SAAS,CAAC;IACrCC,OAAO;IACPC,oBAAM,KAACP,UAAUQ,WAAW;IAC5BC,MAAM,IAAO,CAAA;YACTC,MAAM;gBACF,iBAAiB;gBACjB,cAAc;YAClB;QACJ,CAAA;AACJ;AACCN,iBAAmCD,WAAW,GAAG;AAElD,MAAMQ,cAAcd,MAAMQ,SAAS,CAAC;IAChCE,oBAAM,KAACP,UAAUY,MAAM;IACvBH,MAAM,IAAO,CAAA;YACTC,MAAM;gBACF,iBAAiB;gBACjB,cAAc;YAClB;QACJ,CAAA;AACJ;AACCC,YAA8BR,WAAW,GAAG;AAE7C,MAAMU,eAAehB,MAAMQ,SAAS,CAAC;IACjCC,OAAO;IACPC,oBAAM,KAACP,UAAUc,OAAO;IACxBL,MAAM,IAAO,CAAA;YACTC,MAAM;gBACF,iBAAiB;gBACjB,cAAc;YAClB;QACJ,CAAA;AACJ;AACCG,aAA+BV,WAAW,GAAG;AAE9C,MAAMY,gBAAgBlB,MAAMQ,SAAS,CAAC;IAClCE,oBAAM,KAACP,UAAUgB,KAAK;IACtBP,MAAM,IAAO,CAAA;YACTC,MAAM;gBACF,iBAAiB;gBACjB,cAAc;YAClB;QACJ,CAAA;AACJ;AACCK,cAAgCZ,WAAW,GAAG;AAE/CN,MAAMW,WAAW,GAAGJ;AACpBP,MAAMe,MAAM,GAAGD;AACfd,MAAMiB,OAAO,GAAGD;AAChBhB,MAAMoB,QAAQ,GAAGF"}
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { AppShellMainProps, Factory, AppShell } from '@mantine/core';
|
|
2
|
+
export type AppShellMainFactory = Factory<{
|
|
3
|
+
props: AppShellMainProps;
|
|
4
|
+
ref: HTMLElement;
|
|
5
|
+
compound: true;
|
|
6
|
+
}>;
|
|
7
|
+
export { AppShell };
|
|
8
|
+
export { type AppShellFactory, type AppShellProps } from '@mantine/core';
|
|
2
9
|
//# sourceMappingURL=AppShell.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppShell.d.ts","sourceRoot":"","sources":["../../../../src/components/AppShell/AppShell.
|
|
1
|
+
{"version":3,"file":"AppShell.d.ts","sourceRoot":"","sources":["../../../../src/components/AppShell/AppShell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,iBAAiB,EAAO,OAAO,EAAW,QAAQ,EAAC,MAAM,eAAe,CAAC;AAGjF,MAAM,MAAM,mBAAmB,GAAG,OAAO,CAAC;IACtC,KAAK,EAAE,iBAAiB,CAAC;IACzB,GAAG,EAAE,WAAW,CAAC;IACjB,QAAQ,EAAE,IAAI,CAAC;CAClB,CAAC,CAAC;AAiBH,OAAO,EAAC,QAAQ,EAAC,CAAC;AAElB,OAAO,EAAC,KAAK,eAAe,EAAE,KAAK,aAAa,EAAC,MAAM,eAAe,CAAC"}
|
|
@@ -1,11 +1,23 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Box, factory, AppShell } from '@mantine/core';
|
|
3
|
+
import classes from './AppShell.module.css';
|
|
4
|
+
const BaseAppShellMain = AppShell.Main;
|
|
5
|
+
const AppShellMain = factory(({ children, ...others }, ref)=>/*#__PURE__*/ _jsx(BaseAppShellMain, {
|
|
6
|
+
ref: ref,
|
|
7
|
+
...others,
|
|
8
|
+
children: /*#__PURE__*/ _jsx(Box, {
|
|
9
|
+
className: classes.content,
|
|
10
|
+
children: children
|
|
11
|
+
})
|
|
12
|
+
}));
|
|
13
|
+
AppShell.Main = AppShellMain;
|
|
14
|
+
AppShellMain.displayName = 'AppShell.Main';
|
|
2
15
|
AppShell.displayName = 'AppShell';
|
|
3
16
|
AppShell.Header.displayName = 'AppShell.Header';
|
|
4
17
|
AppShell.Navbar.displayName = 'AppShell.Navbar';
|
|
5
|
-
AppShell.Main.displayName = 'AppShell.Main';
|
|
6
18
|
AppShell.Aside.displayName = 'AppShell.Aside';
|
|
7
19
|
AppShell.Footer.displayName = 'AppShell.Footer';
|
|
8
20
|
AppShell.Section.displayName = 'AppShell.Section';
|
|
9
|
-
export { AppShell }
|
|
21
|
+
export { AppShell };
|
|
10
22
|
|
|
11
23
|
//# sourceMappingURL=AppShell.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/AppShell/AppShell.
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/AppShell/AppShell.tsx"],"sourcesContent":["import {AppShellMainProps, Box, Factory, factory, AppShell} from '@mantine/core';\nimport classes from './AppShell.module.css';\n\nexport type AppShellMainFactory = Factory<{\n props: AppShellMainProps;\n ref: HTMLElement;\n compound: true;\n}>;\nconst BaseAppShellMain = AppShell.Main;\nconst AppShellMain = factory<AppShellMainFactory>(({children, ...others}, ref) => (\n <BaseAppShellMain ref={ref} {...others}>\n <Box className={classes.content}>{children}</Box>\n </BaseAppShellMain>\n));\nAppShell.Main = AppShellMain;\nAppShellMain.displayName = 'AppShell.Main';\n\nAppShell.displayName = 'AppShell';\nAppShell.Header.displayName = 'AppShell.Header';\nAppShell.Navbar.displayName = 'AppShell.Navbar';\nAppShell.Aside.displayName = 'AppShell.Aside';\nAppShell.Footer.displayName = 'AppShell.Footer';\nAppShell.Section.displayName = 'AppShell.Section';\n\nexport {AppShell};\n\nexport {type AppShellFactory, type AppShellProps} from '@mantine/core';\n"],"names":["Box","factory","AppShell","classes","BaseAppShellMain","Main","AppShellMain","children","others","ref","className","content","displayName","Header","Navbar","Aside","Footer","Section"],"mappings":";AAAA,SAA2BA,GAAG,EAAWC,OAAO,EAAEC,QAAQ,QAAO,gBAAgB;AACjF,OAAOC,aAAa,wBAAwB;AAO5C,MAAMC,mBAAmBF,SAASG,IAAI;AACtC,MAAMC,eAAeL,QAA6B,CAAC,EAACM,QAAQ,EAAE,GAAGC,QAAO,EAAEC,oBACtE,KAACL;QAAiBK,KAAKA;QAAM,GAAGD,MAAM;kBAClC,cAAA,KAACR;YAAIU,WAAWP,QAAQQ,OAAO;sBAAGJ;;;AAG1CL,SAASG,IAAI,GAAGC;AAChBA,aAAaM,WAAW,GAAG;AAE3BV,SAASU,WAAW,GAAG;AACvBV,SAASW,MAAM,CAACD,WAAW,GAAG;AAC9BV,SAASY,MAAM,CAACF,WAAW,GAAG;AAC9BV,SAASa,KAAK,CAACH,WAAW,GAAG;AAC7BV,SAASc,MAAM,CAACJ,WAAW,GAAG;AAC9BV,SAASe,OAAO,CAACL,WAAW,GAAG;AAE/B,SAAQV,QAAQ,GAAE"}
|
|
@@ -41,7 +41,7 @@ export declare const Badge: (<C = "div">(props: PolymorphicComponentProps<C, Bad
|
|
|
41
41
|
}) | (BadgeProps & {
|
|
42
42
|
component: React.ElementType;
|
|
43
43
|
renderRoot?: (props: Record<string, any>) => any;
|
|
44
|
-
})>, never> & import("
|
|
44
|
+
})>, never> & import("@mantine/core").ThemeExtend<{
|
|
45
45
|
props: BadgeProps;
|
|
46
46
|
defaultRef: HTMLDivElement;
|
|
47
47
|
defaultComponent: "div";
|
|
@@ -56,7 +56,7 @@ export declare const Badge: (<C = "div">(props: PolymorphicComponentProps<C, Bad
|
|
|
56
56
|
Warning: SemanticBadge;
|
|
57
57
|
Disabled: SemanticBadge;
|
|
58
58
|
};
|
|
59
|
-
}> & import("
|
|
59
|
+
}> & import("@mantine/core").ComponentClasses<{
|
|
60
60
|
props: BadgeProps;
|
|
61
61
|
defaultRef: HTMLDivElement;
|
|
62
62
|
defaultComponent: "div";
|
|
@@ -71,7 +71,7 @@ export declare const Badge: (<C = "div">(props: PolymorphicComponentProps<C, Bad
|
|
|
71
71
|
Warning: SemanticBadge;
|
|
72
72
|
Disabled: SemanticBadge;
|
|
73
73
|
};
|
|
74
|
-
}> & import("
|
|
74
|
+
}> & import("@mantine/core").PolymorphicComponentWithProps<{
|
|
75
75
|
props: BadgeProps;
|
|
76
76
|
defaultRef: HTMLDivElement;
|
|
77
77
|
defaultComponent: "div";
|
|
@@ -31,8 +31,7 @@ export const BrowserPreview = ({ children, headerTooltip, title, className, ...o
|
|
|
31
31
|
label: headerTooltip,
|
|
32
32
|
position: "right",
|
|
33
33
|
maw: 400,
|
|
34
|
-
children: /*#__PURE__*/ _jsx(InfoToken, {
|
|
35
|
-
variant: "information",
|
|
34
|
+
children: /*#__PURE__*/ _jsx(InfoToken.Information, {
|
|
36
35
|
className: BrowserPreviewClasses.infoIcon
|
|
37
36
|
})
|
|
38
37
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/BrowserPreview/BrowserPreview.tsx"],"sourcesContent":["import {Flex, Group, Stack, StackProps, Text, Tooltip} from '@mantine/core';\nimport cx from 'clsx';\nimport {PropsWithChildren} from 'react';\nimport {InfoToken} from '../InfoToken/InfoToken.js';\nimport BrowserPreviewClasses from './BrowserPreview.module.css';\n\nexport interface BrowserPreviewProps extends StackProps {\n /**\n * Text to display in a tooltip in the header.\n *\n */\n headerTooltip?: string;\n /**\n * Custom title to be displayed at the center of the header.\n */\n title?: string;\n}\n\nexport const BrowserPreview = ({\n children,\n headerTooltip,\n title,\n className,\n ...others\n}: PropsWithChildren<BrowserPreviewProps>) => (\n <Stack className={cx(BrowserPreviewClasses.root, className)} gap={0} maw={544} mih={0} {...others}>\n <Group\n className={BrowserPreviewClasses.header}\n justify=\"space-between\"\n p=\"sm\"\n bg=\"var(--mantine-color-default-hover)\"\n wrap=\"nowrap\"\n >\n <Group gap=\"xs\" wrap=\"nowrap\">\n <Text c=\"dimmed\" fz=\"md\" lh=\"18px\">\n Preview\n </Text>\n {!!headerTooltip && (\n <Tooltip label={headerTooltip} position=\"right\" maw={400}>\n <InfoToken
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/BrowserPreview/BrowserPreview.tsx"],"sourcesContent":["import {Flex, Group, Stack, StackProps, Text, Tooltip} from '@mantine/core';\nimport cx from 'clsx';\nimport {PropsWithChildren} from 'react';\nimport {InfoToken} from '../InfoToken/InfoToken.js';\nimport BrowserPreviewClasses from './BrowserPreview.module.css';\n\nexport interface BrowserPreviewProps extends StackProps {\n /**\n * Text to display in a tooltip in the header.\n *\n */\n headerTooltip?: string;\n /**\n * Custom title to be displayed at the center of the header.\n */\n title?: string;\n}\n\nexport const BrowserPreview = ({\n children,\n headerTooltip,\n title,\n className,\n ...others\n}: PropsWithChildren<BrowserPreviewProps>) => (\n <Stack className={cx(BrowserPreviewClasses.root, className)} gap={0} maw={544} mih={0} {...others}>\n <Group\n className={BrowserPreviewClasses.header}\n justify=\"space-between\"\n p=\"sm\"\n bg=\"var(--mantine-color-default-hover)\"\n wrap=\"nowrap\"\n >\n <Group gap=\"xs\" wrap=\"nowrap\">\n <Text c=\"dimmed\" fz=\"md\" lh=\"18px\">\n Preview\n </Text>\n {!!headerTooltip && (\n <Tooltip label={headerTooltip} position=\"right\" maw={400}>\n <InfoToken.Information className={BrowserPreviewClasses.infoIcon} />\n </Tooltip>\n )}\n </Group>\n {title && (\n <Text lineClamp={1} c=\"dimmed\" fz=\"md\" lh=\"18px\">\n {title}\n </Text>\n )}\n </Group>\n <Flex className={BrowserPreviewClasses.content} p=\"lg\" direction=\"column\">\n {children}\n </Flex>\n </Stack>\n);\n"],"names":["Flex","Group","Stack","Text","Tooltip","cx","InfoToken","BrowserPreviewClasses","BrowserPreview","children","headerTooltip","title","className","others","root","gap","maw","mih","header","justify","p","bg","wrap","c","fz","lh","label","position","Information","infoIcon","lineClamp","content","direction"],"mappings":";AAAA,SAAQA,IAAI,EAAEC,KAAK,EAAEC,KAAK,EAAcC,IAAI,EAAEC,OAAO,QAAO,gBAAgB;AAC5E,OAAOC,QAAQ,OAAO;AAEtB,SAAQC,SAAS,QAAO,4BAA4B;AACpD,OAAOC,2BAA2B,8BAA8B;AAchE,OAAO,MAAMC,iBAAiB,CAAC,EAC3BC,QAAQ,EACRC,aAAa,EACbC,KAAK,EACLC,SAAS,EACT,GAAGC,QACkC,iBACrC,MAACX;QAAMU,WAAWP,GAAGE,sBAAsBO,IAAI,EAAEF;QAAYG,KAAK;QAAGC,KAAK;QAAKC,KAAK;QAAI,GAAGJ,MAAM;;0BAC7F,MAACZ;gBACGW,WAAWL,sBAAsBW,MAAM;gBACvCC,SAAQ;gBACRC,GAAE;gBACFC,IAAG;gBACHC,MAAK;;kCAEL,MAACrB;wBAAMc,KAAI;wBAAKO,MAAK;;0CACjB,KAACnB;gCAAKoB,GAAE;gCAASC,IAAG;gCAAKC,IAAG;0CAAO;;4BAGlC,CAAC,CAACf,+BACC,KAACN;gCAAQsB,OAAOhB;gCAAeiB,UAAS;gCAAQX,KAAK;0CACjD,cAAA,KAACV,UAAUsB,WAAW;oCAAChB,WAAWL,sBAAsBsB,QAAQ;;;;;oBAI3ElB,uBACG,KAACR;wBAAK2B,WAAW;wBAAGP,GAAE;wBAASC,IAAG;wBAAKC,IAAG;kCACrCd;;;;0BAIb,KAACX;gBAAKY,WAAWL,sBAAsBwB,OAAO;gBAAEX,GAAE;gBAAKY,WAAU;0BAC5DvB;;;OAGX"}
|
|
@@ -16,7 +16,7 @@ export declare const Button: (<C = "button">(props: import("@mantine/core").Poly
|
|
|
16
16
|
}) | (ButtonProps & {
|
|
17
17
|
component: React.ElementType;
|
|
18
18
|
renderRoot?: (props: Record<string, any>) => any;
|
|
19
|
-
})>, never> & import("
|
|
19
|
+
})>, never> & import("@mantine/core").ThemeExtend<{
|
|
20
20
|
props: ButtonProps;
|
|
21
21
|
defaultRef: HTMLButtonElement;
|
|
22
22
|
defaultComponent: "button";
|
|
@@ -34,7 +34,7 @@ export declare const Button: (<C = "button">(props: import("@mantine/core").Poly
|
|
|
34
34
|
DestructiveTertiary: typeof ButtonDestructiveTertiary;
|
|
35
35
|
DestructiveQuaternary: typeof ButtonDestructiveQuaternary;
|
|
36
36
|
};
|
|
37
|
-
}> & import("
|
|
37
|
+
}> & import("@mantine/core").ComponentClasses<{
|
|
38
38
|
props: ButtonProps;
|
|
39
39
|
defaultRef: HTMLButtonElement;
|
|
40
40
|
defaultComponent: "button";
|
|
@@ -52,7 +52,7 @@ export declare const Button: (<C = "button">(props: import("@mantine/core").Poly
|
|
|
52
52
|
DestructiveTertiary: typeof ButtonDestructiveTertiary;
|
|
53
53
|
DestructiveQuaternary: typeof ButtonDestructiveQuaternary;
|
|
54
54
|
};
|
|
55
|
-
}> & import("
|
|
55
|
+
}> & import("@mantine/core").PolymorphicComponentWithProps<{
|
|
56
56
|
props: ButtonProps;
|
|
57
57
|
defaultRef: HTMLButtonElement;
|
|
58
58
|
defaultComponent: "button";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CollapseProps, Factory, StylesApiProps } from '@mantine/core';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
2
3
|
export type ChildFormStylesNames = 'root' | 'paper';
|
|
3
4
|
export interface ChildFormProps extends CollapseProps, StylesApiProps<ChildFormFactory> {
|
|
4
5
|
/**
|
|
@@ -8,7 +9,7 @@ export interface ChildFormProps extends CollapseProps, StylesApiProps<ChildFormF
|
|
|
8
9
|
/**
|
|
9
10
|
* Description of the child form.
|
|
10
11
|
*/
|
|
11
|
-
description?:
|
|
12
|
+
description?: ReactNode;
|
|
12
13
|
}
|
|
13
14
|
type ChildFormFactory = Factory<{
|
|
14
15
|
props: ChildFormProps;
|
|
@@ -24,17 +25,17 @@ export declare const ChildForm: (<C = "div">(props: import("@mantine/core").Poly
|
|
|
24
25
|
}) | (ChildFormProps & {
|
|
25
26
|
component: React.ElementType;
|
|
26
27
|
renderRoot?: (props: Record<string, any>) => any;
|
|
27
|
-
})>, never> & import("
|
|
28
|
+
})>, never> & import("@mantine/core").ThemeExtend<{
|
|
28
29
|
props: ChildFormProps;
|
|
29
30
|
defaultRef: HTMLDivElement;
|
|
30
31
|
defaultComponent: "div";
|
|
31
32
|
stylesNames: ChildFormStylesNames;
|
|
32
|
-
}> & import("
|
|
33
|
+
}> & import("@mantine/core").ComponentClasses<{
|
|
33
34
|
props: ChildFormProps;
|
|
34
35
|
defaultRef: HTMLDivElement;
|
|
35
36
|
defaultComponent: "div";
|
|
36
37
|
stylesNames: ChildFormStylesNames;
|
|
37
|
-
}> & import("
|
|
38
|
+
}> & import("@mantine/core").PolymorphicComponentWithProps<{
|
|
38
39
|
props: ChildFormProps;
|
|
39
40
|
defaultRef: HTMLDivElement;
|
|
40
41
|
defaultComponent: "div";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChildForm.d.ts","sourceRoot":"","sources":["../../../../src/components/ChildForm/ChildForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEH,aAAa,EACb,OAAO,EAIP,cAAc,EAKjB,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"ChildForm.d.ts","sourceRoot":"","sources":["../../../../src/components/ChildForm/ChildForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEH,aAAa,EACb,OAAO,EAIP,cAAc,EAKjB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AAGhC,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,OAAO,CAAC;AAEpD,MAAM,WAAW,cAAe,SAAQ,aAAa,EAAE,cAAc,CAAC,gBAAgB,CAAC;IACnF;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;CAC3B;AAED,KAAK,gBAAgB,GAAG,OAAO,CAAC;IAC5B,KAAK,EAAE,cAAc,CAAC;IACtB,UAAU,EAAE,cAAc,CAAC;IAC3B,gBAAgB,EAAE,KAAK,CAAC;IACxB,WAAW,EAAE,oBAAoB,CAAC;CACrC,CAAC,CAAC;AAIH,eAAO,MAAM,SAAS;;;;;;;;;WARX,cAAc;gBACT,cAAc;sBACR,KAAK;iBACV,oBAAoB;;WAH1B,cAAc;gBACT,cAAc;sBACR,KAAK;iBACV,oBAAoB;;WAH1B,cAAc;gBACT,cAAc;sBACR,KAAK;iBACV,oBAAoB;EA2CnC,CAAC"}
|
|
@@ -4,6 +4,7 @@ import classes from './ChildForm.module.css';
|
|
|
4
4
|
const defaultProps = {};
|
|
5
5
|
export const ChildForm = polymorphicFactory((props, ref)=>{
|
|
6
6
|
const { className, children, style, classNames, styles, unstyled, vars, title, description, ...others } = useProps('ChildForm', defaultProps, props);
|
|
7
|
+
const hasDescription = description !== null && description !== undefined && description !== '' && typeof description !== 'boolean';
|
|
7
8
|
const getStyles = useStyles({
|
|
8
9
|
name: 'ChildForm',
|
|
9
10
|
classes,
|
|
@@ -23,7 +24,7 @@ export const ChildForm = polymorphicFactory((props, ref)=>{
|
|
|
23
24
|
p: "md",
|
|
24
25
|
...getStyles('paper'),
|
|
25
26
|
children: [
|
|
26
|
-
(title ||
|
|
27
|
+
(title || hasDescription) && /*#__PURE__*/ _jsxs(Stack, {
|
|
27
28
|
gap: 0,
|
|
28
29
|
mb: "md",
|
|
29
30
|
children: [
|
|
@@ -31,7 +32,8 @@ export const ChildForm = polymorphicFactory((props, ref)=>{
|
|
|
31
32
|
order: 5,
|
|
32
33
|
children: title
|
|
33
34
|
}),
|
|
34
|
-
|
|
35
|
+
hasDescription && /*#__PURE__*/ _jsx(Text, {
|
|
36
|
+
component: "div",
|
|
35
37
|
c: "gray.7",
|
|
36
38
|
children: description
|
|
37
39
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/ChildForm/ChildForm.tsx"],"sourcesContent":["import {\n Collapse,\n CollapseProps,\n Factory,\n Paper,\n polymorphicFactory,\n Stack,\n StylesApiProps,\n Text,\n Title,\n useProps,\n useStyles,\n} from '@mantine/core';\nimport classes from './ChildForm.module.css';\n\nexport type ChildFormStylesNames = 'root' | 'paper';\n\nexport interface ChildFormProps extends CollapseProps, StylesApiProps<ChildFormFactory> {\n /**\n * Title of the child form.\n */\n title?: string;\n /**\n * Description of the child form.\n */\n description?:
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/ChildForm/ChildForm.tsx"],"sourcesContent":["import {\n Collapse,\n CollapseProps,\n Factory,\n Paper,\n polymorphicFactory,\n Stack,\n StylesApiProps,\n Text,\n Title,\n useProps,\n useStyles,\n} from '@mantine/core';\nimport {ReactNode} from 'react';\nimport classes from './ChildForm.module.css';\n\nexport type ChildFormStylesNames = 'root' | 'paper';\n\nexport interface ChildFormProps extends CollapseProps, StylesApiProps<ChildFormFactory> {\n /**\n * Title of the child form.\n */\n title?: string;\n /**\n * Description of the child form.\n */\n description?: ReactNode;\n}\n\ntype ChildFormFactory = Factory<{\n props: ChildFormProps;\n defaultRef: HTMLDivElement;\n defaultComponent: 'div';\n stylesNames: ChildFormStylesNames;\n}>;\n\nconst defaultProps: Partial<ChildFormProps> = {};\n\nexport const ChildForm = polymorphicFactory<ChildFormFactory>((props, ref) => {\n const {className, children, style, classNames, styles, unstyled, vars, title, description, ...others} = useProps(\n 'ChildForm',\n defaultProps,\n props,\n );\n const hasDescription =\n description !== null && description !== undefined && description !== '' && typeof description !== 'boolean';\n\n const getStyles = useStyles<ChildFormFactory>({\n name: 'ChildForm',\n classes,\n props,\n className,\n style,\n classNames,\n styles,\n unstyled,\n vars,\n });\n\n return (\n <Collapse ref={ref} {...others} {...getStyles('root')}>\n <Paper p=\"md\" {...getStyles('paper')}>\n {(title || hasDescription) && (\n <Stack gap={0} mb=\"md\">\n {title && <Title order={5}>{title}</Title>}\n {hasDescription && (\n <Text component=\"div\" c=\"gray.7\">\n {description}\n </Text>\n )}\n </Stack>\n )}\n <Stack gap=\"md\">{children}</Stack>\n </Paper>\n </Collapse>\n );\n});\n\nChildForm.displayName = 'ChildForm';\n"],"names":["Collapse","Paper","polymorphicFactory","Stack","Text","Title","useProps","useStyles","classes","defaultProps","ChildForm","props","ref","className","children","style","classNames","styles","unstyled","vars","title","description","others","hasDescription","undefined","getStyles","name","p","gap","mb","order","component","c","displayName"],"mappings":";AAAA,SACIA,QAAQ,EAGRC,KAAK,EACLC,kBAAkB,EAClBC,KAAK,EAELC,IAAI,EACJC,KAAK,EACLC,QAAQ,EACRC,SAAS,QACN,gBAAgB;AAEvB,OAAOC,aAAa,yBAAyB;AAsB7C,MAAMC,eAAwC,CAAC;AAE/C,OAAO,MAAMC,YAAYR,mBAAqC,CAACS,OAAOC;IAClE,MAAM,EAACC,SAAS,EAAEC,QAAQ,EAAEC,KAAK,EAAEC,UAAU,EAAEC,MAAM,EAAEC,QAAQ,EAAEC,IAAI,EAAEC,KAAK,EAAEC,WAAW,EAAE,GAAGC,QAAO,GAAGhB,SACpG,aACAG,cACAE;IAEJ,MAAMY,iBACFF,gBAAgB,QAAQA,gBAAgBG,aAAaH,gBAAgB,MAAM,OAAOA,gBAAgB;IAEtG,MAAMI,YAAYlB,UAA4B;QAC1CmB,MAAM;QACNlB;QACAG;QACAE;QACAE;QACAC;QACAC;QACAC;QACAC;IACJ;IAEA,qBACI,KAACnB;QAASY,KAAKA;QAAM,GAAGU,MAAM;QAAG,GAAGG,UAAU,OAAO;kBACjD,cAAA,MAACxB;YAAM0B,GAAE;YAAM,GAAGF,UAAU,QAAQ;;gBAC9BL,CAAAA,SAASG,cAAa,mBACpB,MAACpB;oBAAMyB,KAAK;oBAAGC,IAAG;;wBACbT,uBAAS,KAACf;4BAAMyB,OAAO;sCAAIV;;wBAC3BG,gCACG,KAACnB;4BAAK2B,WAAU;4BAAMC,GAAE;sCACnBX;;;;8BAKjB,KAAClB;oBAAMyB,KAAI;8BAAMd;;;;;AAIjC,GAAG;AAEHJ,UAAUuB,WAAW,GAAG"}
|
|
@@ -19,17 +19,17 @@ export declare const EllipsisText: (<C = "div">(props: import("@mantine/core").P
|
|
|
19
19
|
}) | (EllipsisTextProps & {
|
|
20
20
|
component: React.ElementType;
|
|
21
21
|
renderRoot?: (props: Record<string, any>) => any;
|
|
22
|
-
})>, never> & import("
|
|
22
|
+
})>, never> & import("@mantine/core").ThemeExtend<{
|
|
23
23
|
props: EllipsisTextProps;
|
|
24
24
|
defaultRef: HTMLDivElement;
|
|
25
25
|
defaultComponent: "div";
|
|
26
26
|
stylesNames: EllipsisTextStylesNames;
|
|
27
|
-
}> & import("
|
|
27
|
+
}> & import("@mantine/core").ComponentClasses<{
|
|
28
28
|
props: EllipsisTextProps;
|
|
29
29
|
defaultRef: HTMLDivElement;
|
|
30
30
|
defaultComponent: "div";
|
|
31
31
|
stylesNames: EllipsisTextStylesNames;
|
|
32
|
-
}> & import("
|
|
32
|
+
}> & import("@mantine/core").PolymorphicComponentWithProps<{
|
|
33
33
|
props: EllipsisTextProps;
|
|
34
34
|
defaultRef: HTMLDivElement;
|
|
35
35
|
defaultComponent: "div";
|
|
@@ -25,21 +25,21 @@ export declare const HeaderBreadcrumbAnchor: (<C = "a">(props: import("@mantine/
|
|
|
25
25
|
}) | (HeaderBreadcrumbAnchorProps & {
|
|
26
26
|
component: React.ElementType;
|
|
27
27
|
renderRoot?: (props: Record<string, any>) => any;
|
|
28
|
-
})>, never> & import("
|
|
28
|
+
})>, never> & import("@mantine/core").ThemeExtend<{
|
|
29
29
|
props: HeaderBreadcrumbAnchorProps;
|
|
30
30
|
ref: HTMLAnchorElement;
|
|
31
31
|
stylesNames: HeaderBreadcrumbAnchorStyleNames;
|
|
32
32
|
compound: true;
|
|
33
33
|
defaultComponent: "a";
|
|
34
34
|
defaultRef: HTMLAnchorElement;
|
|
35
|
-
}> & import("
|
|
35
|
+
}> & import("@mantine/core").ComponentClasses<{
|
|
36
36
|
props: HeaderBreadcrumbAnchorProps;
|
|
37
37
|
ref: HTMLAnchorElement;
|
|
38
38
|
stylesNames: HeaderBreadcrumbAnchorStyleNames;
|
|
39
39
|
compound: true;
|
|
40
40
|
defaultComponent: "a";
|
|
41
41
|
defaultRef: HTMLAnchorElement;
|
|
42
|
-
}> & import("
|
|
42
|
+
}> & import("@mantine/core").PolymorphicComponentWithProps<{
|
|
43
43
|
props: HeaderBreadcrumbAnchorProps;
|
|
44
44
|
ref: HTMLAnchorElement;
|
|
45
45
|
stylesNames: HeaderBreadcrumbAnchorStyleNames;
|
|
@@ -16,21 +16,21 @@ export declare const HeaderBreadcrumbText: (<C = "p">(props: import("@mantine/co
|
|
|
16
16
|
}) | (TextProps & {
|
|
17
17
|
component: React.ElementType;
|
|
18
18
|
renderRoot?: (props: Record<string, any>) => any;
|
|
19
|
-
})>, never> & import("
|
|
19
|
+
})>, never> & import("@mantine/core").ThemeExtend<{
|
|
20
20
|
props: TextProps;
|
|
21
21
|
ref: HTMLParagraphElement;
|
|
22
22
|
stylesNames: HeaderBreadcrumbTextStyleNames;
|
|
23
23
|
compound: true;
|
|
24
24
|
defaultComponent: "p";
|
|
25
25
|
defaultRef: HTMLParagraphElement;
|
|
26
|
-
}> & import("
|
|
26
|
+
}> & import("@mantine/core").ComponentClasses<{
|
|
27
27
|
props: TextProps;
|
|
28
28
|
ref: HTMLParagraphElement;
|
|
29
29
|
stylesNames: HeaderBreadcrumbTextStyleNames;
|
|
30
30
|
compound: true;
|
|
31
31
|
defaultComponent: "p";
|
|
32
32
|
defaultRef: HTMLParagraphElement;
|
|
33
|
-
}> & import("
|
|
33
|
+
}> & import("@mantine/core").PolymorphicComponentWithProps<{
|
|
34
34
|
props: TextProps;
|
|
35
35
|
ref: HTMLParagraphElement;
|
|
36
36
|
stylesNames: HeaderBreadcrumbTextStyleNames;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Anchor, Tooltip, factory, useProps } from '@mantine/core';
|
|
3
|
-
import { useHeaderContext } from '../Header.context.js';
|
|
4
3
|
import { InfoToken } from '../../InfoToken/InfoToken.js';
|
|
4
|
+
import { useHeaderContext } from '../Header.context.js';
|
|
5
5
|
const defaultProps = {
|
|
6
6
|
position: 'right',
|
|
7
|
-
children: /*#__PURE__*/ _jsx(InfoToken, {
|
|
8
|
-
variant: "question"
|
|
9
|
-
})
|
|
7
|
+
children: /*#__PURE__*/ _jsx(InfoToken.Question, {})
|
|
10
8
|
};
|
|
11
9
|
export const HeaderDocAnchor = factory((_props, ref)=>{
|
|
12
10
|
const props = useProps('PlasmaHeaderActions', defaultProps, _props);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/components/Header/HeaderDocAnchor/HeaderDocAnchor.tsx"],"sourcesContent":["import {\n Anchor,\n AnchorProps,\n CompoundStylesApiProps,\n Factory,\n Tooltip,\n TooltipProps,\n factory,\n useProps,\n} from '@mantine/core';\nimport {ReactNode} from 'react';\nimport {
|
|
1
|
+
{"version":3,"sources":["../../../../../src/components/Header/HeaderDocAnchor/HeaderDocAnchor.tsx"],"sourcesContent":["import {\n Anchor,\n AnchorProps,\n CompoundStylesApiProps,\n Factory,\n Tooltip,\n TooltipProps,\n factory,\n useProps,\n} from '@mantine/core';\nimport {ReactNode} from 'react';\nimport {InfoToken} from '../../InfoToken/InfoToken.js';\nimport {useHeaderContext} from '../Header.context.js';\n\nexport type HeaderDocAnchorStyleNames = 'docAnchorTooltip' | 'docAnchor';\n\nexport interface HeaderDocAnchorProps\n extends\n Pick<TooltipProps, 'position'>,\n CompoundStylesApiProps<HeaderDocAnchorFactory>,\n Omit<AnchorProps, 'classNames' | 'styles' | 'variant' | 'vars'> {\n /**\n * A href pointing to documentation related to the current panel.\n * When provided, an info icon is rendered next to the title as link to this documentation\n */\n href: string;\n /**\n * The tooltip text shown when hovering over the doc link icon\n */\n label?: ReactNode;\n /**\n * React component to add the tooltip and anchor on\n */\n children?: ReactNode;\n}\n\nexport type HeaderDocAnchorFactory = Factory<{\n props: HeaderDocAnchorProps;\n ref: HTMLAnchorElement;\n stylesNames: HeaderDocAnchorStyleNames;\n compound: true;\n}>;\n\nconst defaultProps: Partial<HeaderDocAnchorProps> = {\n position: 'right',\n children: <InfoToken.Question />,\n};\n\nexport const HeaderDocAnchor = factory<HeaderDocAnchorFactory>((_props, ref) => {\n const props = useProps('PlasmaHeaderActions', defaultProps, _props);\n const {className, classNames, styles, style, children, label, position, vars, ...others} = props;\n\n const ctx = useHeaderContext();\n\n return (\n <Tooltip\n label={label}\n disabled={!label}\n position={position}\n classNames={{tooltip: ctx.getStyles('docAnchorTooltip', {classNames, styles, props}).className}}\n >\n <Anchor\n ref={ref}\n inline\n target=\"_blank\"\n {...ctx.getStyles('docAnchor', {classNames, styles, props, style, className})}\n {...others}\n >\n {children}\n </Anchor>\n </Tooltip>\n );\n});\n\nHeaderDocAnchor.displayName = 'Header.DocAnchor';\n"],"names":["Anchor","Tooltip","factory","useProps","InfoToken","useHeaderContext","defaultProps","position","children","Question","HeaderDocAnchor","_props","ref","props","className","classNames","styles","style","label","vars","others","ctx","disabled","tooltip","getStyles","inline","target","displayName"],"mappings":";AAAA,SACIA,MAAM,EAINC,OAAO,EAEPC,OAAO,EACPC,QAAQ,QACL,gBAAgB;AAEvB,SAAQC,SAAS,QAAO,+BAA+B;AACvD,SAAQC,gBAAgB,QAAO,uBAAuB;AA+BtD,MAAMC,eAA8C;IAChDC,UAAU;IACVC,wBAAU,KAACJ,UAAUK,QAAQ;AACjC;AAEA,OAAO,MAAMC,kBAAkBR,QAAgC,CAACS,QAAQC;IACpE,MAAMC,QAAQV,SAAS,uBAAuBG,cAAcK;IAC5D,MAAM,EAACG,SAAS,EAAEC,UAAU,EAAEC,MAAM,EAAEC,KAAK,EAAET,QAAQ,EAAEU,KAAK,EAAEX,QAAQ,EAAEY,IAAI,EAAE,GAAGC,QAAO,GAAGP;IAE3F,MAAMQ,MAAMhB;IAEZ,qBACI,KAACJ;QACGiB,OAAOA;QACPI,UAAU,CAACJ;QACXX,UAAUA;QACVQ,YAAY;YAACQ,SAASF,IAAIG,SAAS,CAAC,oBAAoB;gBAACT;gBAAYC;gBAAQH;YAAK,GAAGC,SAAS;QAAA;kBAE9F,cAAA,KAACd;YACGY,KAAKA;YACLa,MAAM;YACNC,QAAO;YACN,GAAGL,IAAIG,SAAS,CAAC,aAAa;gBAACT;gBAAYC;gBAAQH;gBAAOI;gBAAOH;YAAS,EAAE;YAC5E,GAAGM,MAAM;sBAETZ;;;AAIjB,GAAG;AAEHE,gBAAgBiB,WAAW,GAAG"}
|