@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":"Input.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/Input.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/Input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,IAAI,YAAY,EAAE,KAAK,YAAY,IAAI,mBAAmB,EAAE,KAAK,UAAU,EAAC,MAAM,eAAe,CAAC;AAC/G,OAAO,EACH,cAAc,EACd,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EACjC,MAAM,qBAAqB,CAAC;AAE7B,KAAK,kBAAkB,GAAG,IAAI,CAAC,mBAAmB,EAAE,kBAAkB,CAAC,GAAG;IACtE,gBAAgB,EAAE,mBAAmB,CAAC,kBAAkB,CAAC,GAAG;QACxD,SAAS,EAAE,OAAO,cAAc,CAAC;KACpC,CAAC;CACL,CAAC;AAEF,QAAA,MAAM,KAAK,EAAmB,OAAO,YAAY,GAAG;IAChD,SAAS,EAAE,OAAO,cAAc,CAAC;CACpC,CAAC;AAOF,OAAO,EAAC,KAAK,EAAC,CAAC;AACf,MAAM,MAAM,YAAY,GAAG,kBAAkB,CAAC;AAC9C,YAAY,EAAC,UAAU,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,yBAAyB,EAAC,CAAC;AAChG,OAAO,EAAC,cAAc,EAAC,CAAC"}
|
|
@@ -2,13 +2,25 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", {
|
|
3
3
|
value: true
|
|
4
4
|
});
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
function _export(target, all) {
|
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
_export(exports, {
|
|
12
|
+
get Input () {
|
|
13
|
+
return Input;
|
|
14
|
+
},
|
|
15
|
+
get InputLabelInfo () {
|
|
16
|
+
return _InputLabelInfo.InputLabelInfo;
|
|
9
17
|
}
|
|
10
18
|
});
|
|
11
19
|
var _core = require("@mantine/core");
|
|
12
|
-
|
|
20
|
+
var _InputLabelInfo = require("./InputLabelInfo.js");
|
|
21
|
+
var Input = _core.Input;
|
|
22
|
+
Input.displayName = 'Input';
|
|
23
|
+
Input.LabelInfo = _InputLabelInfo.InputLabelInfo;
|
|
24
|
+
_InputLabelInfo.InputLabelInfo.displayName = 'Input.LabelInfo';
|
|
13
25
|
|
|
14
26
|
//# sourceMappingURL=Input.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/Input/Input.ts"],"sourcesContent":["import {Input} from '@mantine/core';\n\nInput.displayName = 'Input';\n\nexport {Input
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/Input/Input.ts"],"sourcesContent":["import {Input as MantineInput, type InputFactory as MantineInputFactory, type InputProps} from '@mantine/core';\nimport {\n InputLabelInfo,\n type InputLabelInfoFactory,\n type InputLabelInfoProps,\n type InputLabelInfoStylesNames,\n} from './InputLabelInfo.js';\n\ntype PlasmaInputFactory = Omit<MantineInputFactory, 'staticComponents'> & {\n staticComponents: MantineInputFactory['staticComponents'] & {\n LabelInfo: typeof InputLabelInfo;\n };\n};\n\nconst Input = MantineInput as typeof MantineInput & {\n LabelInfo: typeof InputLabelInfo;\n};\n\nInput.displayName = 'Input';\nInput.LabelInfo = InputLabelInfo;\n\nInputLabelInfo.displayName = 'Input.LabelInfo';\n\nexport {Input};\nexport type InputFactory = PlasmaInputFactory;\nexport type {InputProps, InputLabelInfoFactory, InputLabelInfoProps, InputLabelInfoStylesNames};\nexport {InputLabelInfo};\n"],"names":["Input","InputLabelInfo","MantineInput","displayName","LabelInfo"],"mappings":";;;;;;;;;;;QAuBQA;eAAAA;;QAGAC;eAAAA,8BAAc;;;oBA1ByE;8BAMxF;AAQP,IAAMD,QAAQE,WAAY;AAI1BF,MAAMG,WAAW,GAAG;AACpBH,MAAMI,SAAS,GAAGH,8BAAc;AAEhCA,8BAAc,CAACE,WAAW,GAAG"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { StylesApiProps, type Factory, type TooltipProps } from '@mantine/core';
|
|
2
|
+
import { type ReactNode } from 'react';
|
|
3
|
+
export type InputLabelInfoStylesNames = 'labelInfo';
|
|
4
|
+
export interface InputLabelInfoProps extends Omit<TooltipProps, 'label' | 'classNames' | 'attributes' | 'styles' | 'vars'>, StylesApiProps<InputLabelInfoFactory> {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export type InputLabelInfoFactory = Factory<{
|
|
8
|
+
props: InputLabelInfoProps;
|
|
9
|
+
ref: HTMLSpanElement;
|
|
10
|
+
stylesNames: InputLabelInfoStylesNames;
|
|
11
|
+
}>;
|
|
12
|
+
export declare const InputLabelInfo: import("@mantine/core").MantineComponent<{
|
|
13
|
+
props: InputLabelInfoProps;
|
|
14
|
+
ref: HTMLSpanElement;
|
|
15
|
+
stylesNames: InputLabelInfoStylesNames;
|
|
16
|
+
}>;
|
|
17
|
+
//# sourceMappingURL=InputLabelInfo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InputLabelInfo.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/InputLabelInfo.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,cAAc,EAAgC,KAAK,OAAO,EAAE,KAAK,YAAY,EAAC,MAAM,eAAe,CAAC;AACrH,OAAO,EAAC,KAAK,SAAS,EAAC,MAAM,OAAO,CAAC;AAIrC,MAAM,MAAM,yBAAyB,GAAG,WAAW,CAAC;AAEpD,MAAM,WAAW,mBACb,SACI,IAAI,CAAC,YAAY,EAAE,OAAO,GAAG,YAAY,GAAG,YAAY,GAAG,QAAQ,GAAG,MAAM,CAAC,EAC7E,cAAc,CAAC,qBAAqB,CAAC;IACzC,QAAQ,EAAE,SAAS,CAAC;CACvB;AAED,MAAM,MAAM,qBAAqB,GAAG,OAAO,CAAC;IACxC,KAAK,EAAE,mBAAmB,CAAC;IAC3B,GAAG,EAAE,eAAe,CAAC;IACrB,WAAW,EAAE,yBAAyB,CAAC;CAC1C,CAAC,CAAC;AAIH,eAAO,MAAM,cAAc;WAPhB,mBAAmB;SACrB,eAAe;iBACP,yBAAyB;EAyBxC,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "InputLabelInfo", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return InputLabelInfo;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
var _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
12
|
+
var _object_spread = require("@swc/helpers/_/_object_spread");
|
|
13
|
+
var _object_spread_props = require("@swc/helpers/_/_object_spread_props");
|
|
14
|
+
var _object_without_properties = require("@swc/helpers/_/_object_without_properties");
|
|
15
|
+
var _jsxruntime = require("react/jsx-runtime");
|
|
16
|
+
var _core = require("@mantine/core");
|
|
17
|
+
var _InfoToken = require("../InfoToken/InfoToken.js");
|
|
18
|
+
var _InputLabelInfomodulecss = /*#__PURE__*/ _interop_require_default._(require("./InputLabelInfo.module.css"));
|
|
19
|
+
var defaultProps = {};
|
|
20
|
+
var InputLabelInfo = (0, _core.factory)(function(_props, ref) {
|
|
21
|
+
var props = (0, _core.useProps)('InputLabelInfo', defaultProps, _props);
|
|
22
|
+
var classNames = props.classNames, className = props.className, style = props.style, styles = props.styles, unstyled = props.unstyled, vars = props.vars, children = props.children, attributes = props.attributes, others = _object_without_properties._(props, [
|
|
23
|
+
"classNames",
|
|
24
|
+
"className",
|
|
25
|
+
"style",
|
|
26
|
+
"styles",
|
|
27
|
+
"unstyled",
|
|
28
|
+
"vars",
|
|
29
|
+
"children",
|
|
30
|
+
"attributes"
|
|
31
|
+
]);
|
|
32
|
+
var getStyles = (0, _core.useStyles)({
|
|
33
|
+
name: 'InputLabelInfo',
|
|
34
|
+
props: props,
|
|
35
|
+
style: style,
|
|
36
|
+
styles: styles,
|
|
37
|
+
unstyled: unstyled,
|
|
38
|
+
attributes: attributes,
|
|
39
|
+
className: className,
|
|
40
|
+
classes: _InputLabelInfomodulecss.default,
|
|
41
|
+
classNames: classNames,
|
|
42
|
+
vars: vars
|
|
43
|
+
});
|
|
44
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_core.Tooltip, _object_spread_props._(_object_spread._({
|
|
45
|
+
label: children
|
|
46
|
+
}, others), {
|
|
47
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_InfoToken.InfoToken.Information, _object_spread_props._(_object_spread._({
|
|
48
|
+
component: "span"
|
|
49
|
+
}, getStyles('labelInfo', {
|
|
50
|
+
className: className,
|
|
51
|
+
style: style
|
|
52
|
+
})), {
|
|
53
|
+
ref: ref
|
|
54
|
+
}))
|
|
55
|
+
}));
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
//# sourceMappingURL=InputLabelInfo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/Input/InputLabelInfo.tsx"],"sourcesContent":["import {factory, StylesApiProps, Tooltip, useProps, useStyles, type Factory, type TooltipProps} from '@mantine/core';\nimport {type ReactNode} from 'react';\nimport {InfoToken} from '../InfoToken/InfoToken.js';\nimport classes from './InputLabelInfo.module.css';\n\nexport type InputLabelInfoStylesNames = 'labelInfo';\n\nexport interface InputLabelInfoProps\n extends\n Omit<TooltipProps, 'label' | 'classNames' | 'attributes' | 'styles' | 'vars'>,\n StylesApiProps<InputLabelInfoFactory> {\n children: ReactNode;\n}\n\nexport type InputLabelInfoFactory = Factory<{\n props: InputLabelInfoProps;\n ref: HTMLSpanElement;\n stylesNames: InputLabelInfoStylesNames;\n}>;\n\nconst defaultProps = {} satisfies Partial<InputLabelInfoProps>;\n\nexport const InputLabelInfo = factory<InputLabelInfoFactory>((_props, ref) => {\n const props = useProps('InputLabelInfo', defaultProps, _props);\n const {classNames, className, style, styles, unstyled, vars, children, attributes, ...others} = props;\n const getStyles = useStyles<InputLabelInfoFactory>({\n name: 'InputLabelInfo',\n props,\n style,\n styles,\n unstyled,\n attributes,\n className,\n classes,\n classNames,\n vars,\n });\n return (\n <Tooltip label={children} {...others}>\n <InfoToken.Information component=\"span\" {...getStyles('labelInfo', {className, style})} ref={ref} />\n </Tooltip>\n );\n});\n"],"names":["InputLabelInfo","defaultProps","factory","_props","ref","props","useProps","classNames","className","style","styles","unstyled","vars","children","attributes","others","getStyles","useStyles","name","classes","Tooltip","label","InfoToken","Information","component"],"mappings":";;;;+BAsBaA;;;eAAAA;;;;;;;;oBAtBwF;yBAE7E;gFACJ;AAiBpB,IAAMC,eAAe,CAAC;AAEf,IAAMD,iBAAiBE,IAAAA,aAAO,EAAwB,SAACC,QAAQC;IAClE,IAAMC,QAAQC,IAAAA,cAAQ,EAAC,kBAAkBL,cAAcE;IACvD,IAAOI,aAAyFF,MAAzFE,YAAYC,YAA6EH,MAA7EG,WAAWC,QAAkEJ,MAAlEI,OAAOC,SAA2DL,MAA3DK,QAAQC,WAAmDN,MAAnDM,UAAUC,OAAyCP,MAAzCO,MAAMC,WAAmCR,MAAnCQ,UAAUC,aAAyBT,MAAzBS,YAAeC,sCAAUV;;;;;;;;;;IAChG,IAAMW,YAAYC,IAAAA,eAAS,EAAwB;QAC/CC,MAAM;QACNb,OAAAA;QACAI,OAAAA;QACAC,QAAAA;QACAC,UAAAA;QACAG,YAAAA;QACAN,WAAAA;QACAW,SAAAA,gCAAO;QACPZ,YAAAA;QACAK,MAAAA;IACJ;IACA,qBACI,qBAACQ,aAAO;QAACC,OAAOR;OAAcE;kBAC1B,cAAA,qBAACO,oBAAS,CAACC,WAAW;YAACC,WAAU;WAAWR,UAAU,aAAa;YAACR,WAAAA;YAAWC,OAAAA;QAAK;YAAIL,KAAKA;;;AAGzG"}
|
|
@@ -2,7 +2,7 @@ import { Menu as MantineMenu, MenuItemProps as MantineMenuItemProps } from '@man
|
|
|
2
2
|
import { ButtonWithDisabledTooltipProps } from '../Button/ButtonWithDisabledTooltip.js';
|
|
3
3
|
export interface MenuItemProps extends MantineMenuItemProps, ButtonWithDisabledTooltipProps {
|
|
4
4
|
}
|
|
5
|
-
export declare const Menu: ((_props: import("@mantine/core").MenuProps) => import("react/jsx-runtime
|
|
5
|
+
export declare const Menu: ((_props: import("@mantine/core").MenuProps) => import("react/jsx-runtime").JSX.Element) & typeof MantineMenu & {
|
|
6
6
|
displayName: string;
|
|
7
7
|
Item: (<C = "button">(props: import("@mantine/utils").PolymorphicComponentProps<C, MenuItemProps>) => React.ReactElement) & Omit<import("react").FunctionComponent<(MenuItemProps & {
|
|
8
8
|
component?: any;
|
|
@@ -39,7 +39,7 @@ var PlasmaModal = (0, _core.factory)(function(_0, _1) {
|
|
|
39
39
|
title: header
|
|
40
40
|
}, otherProps));
|
|
41
41
|
});
|
|
42
|
-
PlasmaModal.displayName = '
|
|
42
|
+
PlasmaModal.displayName = 'Modal';
|
|
43
43
|
PlasmaModal.Root = _core.Modal.Root;
|
|
44
44
|
PlasmaModal.Body = _core.Modal.Body;
|
|
45
45
|
PlasmaModal.Overlay = _core.Modal.Overlay;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/Modal/Modal.tsx"],"sourcesContent":["import {\n factory,\n Modal as MantineModal,\n ModalFactory as MantineModalFactory,\n ModalProps as MantineModalProps,\n} from '@mantine/core';\nimport {Header, type HeaderDocAnchorProps, type HeaderProps} from '../Header/Header.js';\nimport {ModalFooter as PlasmaModalFooter} from './ModalFooter.js';\n\ninterface PlasmaModalProps extends MantineModalProps {\n /**\n * Description of the modal, displayed below the title.\n */\n description?: HeaderProps['description'];\n /**\n * Help link for the modal, displayed in the header.\n * Usually provides a link to external documentation or help resources.\n */\n help?: HeaderDocAnchorProps;\n}\n\n// Need to redeclare the factory to override and add footer to the props type\ntype PlasmaModalFactory = Omit<MantineModalFactory, 'staticComponents'> & {\n props: PlasmaModalProps;\n staticComponents: MantineModalFactory['staticComponents'] & {\n Footer: typeof PlasmaModalFooter;\n };\n};\n\nconst PlasmaModal = factory<PlasmaModalFactory>(({title, description, help, ...otherProps}, ref) => {\n const header =\n typeof title === 'string' ? (\n <Header titleComponent=\"div\" variant=\"secondary\" description={description}>\n {title}\n {help && <Header.DocAnchor {...help} />}\n </Header>\n ) : (\n title\n );\n return <MantineModal ref={ref} title={header} {...otherProps} />;\n});\n\nPlasmaModal.displayName = '
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/Modal/Modal.tsx"],"sourcesContent":["import {\n factory,\n Modal as MantineModal,\n ModalFactory as MantineModalFactory,\n ModalProps as MantineModalProps,\n} from '@mantine/core';\nimport {Header, type HeaderDocAnchorProps, type HeaderProps} from '../Header/Header.js';\nimport {ModalFooter as PlasmaModalFooter} from './ModalFooter.js';\n\ninterface PlasmaModalProps extends MantineModalProps {\n /**\n * Description of the modal, displayed below the title.\n */\n description?: HeaderProps['description'];\n /**\n * Help link for the modal, displayed in the header.\n * Usually provides a link to external documentation or help resources.\n */\n help?: HeaderDocAnchorProps;\n}\n\n// Need to redeclare the factory to override and add footer to the props type\ntype PlasmaModalFactory = Omit<MantineModalFactory, 'staticComponents'> & {\n props: PlasmaModalProps;\n staticComponents: MantineModalFactory['staticComponents'] & {\n Footer: typeof PlasmaModalFooter;\n };\n};\n\nconst PlasmaModal = factory<PlasmaModalFactory>(({title, description, help, ...otherProps}, ref) => {\n const header =\n typeof title === 'string' ? (\n <Header titleComponent=\"div\" variant=\"secondary\" description={description}>\n {title}\n {help && <Header.DocAnchor {...help} />}\n </Header>\n ) : (\n title\n );\n return <MantineModal ref={ref} title={header} {...otherProps} />;\n});\n\nPlasmaModal.displayName = 'Modal';\nPlasmaModal.Root = MantineModal.Root;\nPlasmaModal.Body = MantineModal.Body;\nPlasmaModal.Overlay = MantineModal.Overlay;\nPlasmaModal.Content = MantineModal.Content;\nPlasmaModal.Header = MantineModal.Header;\nPlasmaModal.Title = MantineModal.Title;\nPlasmaModal.CloseButton = MantineModal.CloseButton;\nPlasmaModal.Stack = MantineModal.Stack;\nPlasmaModal.Footer = PlasmaModalFooter;\n\nexport const Modal = PlasmaModal;\nexport type ModalProps = PlasmaModalProps;\n\nexport type ModalFactory = PlasmaModalFactory;\nexport type {ModalRootProps, ModalCssVariables, ModalStylesNames} from '@mantine/core';\n"],"names":["Modal","PlasmaModal","factory","title","description","help","otherProps","ref","header","Header","titleComponent","variant","DocAnchor","MantineModal","displayName","Root","Body","Overlay","Content","Title","CloseButton","Stack","Footer","PlasmaModalFooter"],"mappings":";;;;+BAqDaA;;;eAAAA;;;;;;;;oBAhDN;sBAC2D;2BACnB;AAsB/C,IAAMC,cAAcC,IAAAA,aAAO,EAAqB;;;;4EAAEC,cAAAA,OAAOC,oBAAAA,aAAaC,aAAAA,MAASC;;;;+CAAaC;IACxF,IAAMC,SACF,OAAOL,UAAU,yBACb,sBAACM,cAAM;QAACC,gBAAe;QAAMC,SAAQ;QAAYP,aAAaA;;YACzDD;YACAE,sBAAQ,qBAACI,cAAM,CAACG,SAAS,uBAAKP;;SAGnCF;IAER,qBAAO,qBAACU,WAAY;QAACN,KAAKA;QAAKJ,OAAOK;OAAYF;AACtD;AAEAL,YAAYa,WAAW,GAAG;AAC1Bb,YAAYc,IAAI,GAAGF,WAAY,CAACE,IAAI;AACpCd,YAAYe,IAAI,GAAGH,WAAY,CAACG,IAAI;AACpCf,YAAYgB,OAAO,GAAGJ,WAAY,CAACI,OAAO;AAC1ChB,YAAYiB,OAAO,GAAGL,WAAY,CAACK,OAAO;AAC1CjB,YAAYQ,MAAM,GAAGI,WAAY,CAACJ,MAAM;AACxCR,YAAYkB,KAAK,GAAGN,WAAY,CAACM,KAAK;AACtClB,YAAYmB,WAAW,GAAGP,WAAY,CAACO,WAAW;AAClDnB,YAAYoB,KAAK,GAAGR,WAAY,CAACQ,KAAK;AACtCpB,YAAYqB,MAAM,GAAGC,wBAAiB;AAE/B,IAAMvB,QAAQC"}
|
|
@@ -32,9 +32,11 @@ var ModalFooter = (0, _core.factory)(function(props, ref) {
|
|
|
32
32
|
props.h
|
|
33
33
|
]);
|
|
34
34
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_StickyFooter.StickyFooter, _object_spread._({
|
|
35
|
+
borderTop: true,
|
|
35
36
|
className: _ModalFootermodulecss.default.root,
|
|
36
37
|
ref: footerRef
|
|
37
38
|
}, props));
|
|
38
39
|
});
|
|
40
|
+
ModalFooter.displayName = 'Modal.Footer';
|
|
39
41
|
|
|
40
42
|
//# sourceMappingURL=ModalFooter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/Modal/ModalFooter.tsx"],"sourcesContent":["import {useRef, useEffect} from 'react';\nimport {Factory, factory} from '@mantine/core';\nimport {StickyFooter, type StickyFooterProps, type StickyFooterStylesNames} from '../StickyFooter/StickyFooter.js';\nimport classes from './ModalFooter.module.css';\n\nexport interface ModalFooterProps extends Omit<StickyFooterProps, 'variant'> {}\n\nexport type ModalFooterStylesNames = StickyFooterStylesNames;\n\nexport type ModalFooterFactory = Factory<{\n props: ModalFooterProps;\n ref: HTMLDivElement;\n stylesNames: ModalFooterStylesNames;\n}>;\n\nconst ensuresFooterHasEvenHeight = (footer: HTMLElement) => {\n const remainder = footer.offsetHeight % 2;\n footer.style.height = `${footer.offsetHeight - remainder + 2}px`;\n};\n\nexport const ModalFooter = factory<ModalFooterFactory>((props, ref) => {\n const _ref = useRef<HTMLDivElement>(null);\n\n const footerRef = ref || _ref;\n\n useEffect(() => {\n if (typeof footerRef !== 'function' && footerRef.current) {\n ensuresFooterHasEvenHeight(footerRef.current);\n }\n\n // if ref === 'function', this is a callback ref. Haven't found any solution for adjusting the height in this case\n }, [ref, props.h]);\n\n return <StickyFooter className={classes.root} ref={footerRef} {...props} />;\n});\n"],"names":["ModalFooter","ensuresFooterHasEvenHeight","footer","remainder","offsetHeight","style","height","factory","props","ref","_ref","useRef","footerRef","useEffect","current","h","StickyFooter","className","classes","root"],"mappings":";;;;+BAoBaA;;;eAAAA;;;;;;qBApBmB;oBACD;4BACkD;6EAC7D;AAYpB,IAAMC,6BAA6B,oCAACC;IAChC,IAAMC,YAAYD,OAAOE,YAAY,GAAG;IACxCF,OAAOG,KAAK,CAACC,MAAM,GAAG,AAAC,GAAsC,OAApCJ,OAAOE,YAAY,GAAGD,YAAY,GAAE;AACjE;AAEO,IAAMH,cAAcO,IAAAA,aAAO,EAAqB,SAACC,OAAOC;IAC3D,IAAMC,OAAOC,IAAAA,aAAM,EAAiB;IAEpC,IAAMC,YAAYH,OAAOC;IAEzBG,IAAAA,gBAAS,EAAC;QACN,IAAI,OAAOD,cAAc,cAAcA,UAAUE,OAAO,EAAE;YACtDb,2BAA2BW,UAAUE,OAAO;QAChD;IAEA,kHAAkH;IACtH,GAAG;QAACL;QAAKD,MAAMO,CAAC;KAAC;IAEjB,qBAAO,qBAACC,0BAAY;QAACC,WAAWC,6BAAO,CAACC,IAAI;
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/Modal/ModalFooter.tsx"],"sourcesContent":["import {useRef, useEffect} from 'react';\nimport {Factory, factory} from '@mantine/core';\nimport {StickyFooter, type StickyFooterProps, type StickyFooterStylesNames} from '../StickyFooter/StickyFooter.js';\nimport classes from './ModalFooter.module.css';\n\nexport interface ModalFooterProps extends Omit<StickyFooterProps, 'variant'> {}\n\nexport type ModalFooterStylesNames = StickyFooterStylesNames;\n\nexport type ModalFooterFactory = Factory<{\n props: ModalFooterProps;\n ref: HTMLDivElement;\n stylesNames: ModalFooterStylesNames;\n}>;\n\nconst ensuresFooterHasEvenHeight = (footer: HTMLElement) => {\n const remainder = footer.offsetHeight % 2;\n footer.style.height = `${footer.offsetHeight - remainder + 2}px`;\n};\n\nexport const ModalFooter = factory<ModalFooterFactory>((props, ref) => {\n const _ref = useRef<HTMLDivElement>(null);\n\n const footerRef = ref || _ref;\n\n useEffect(() => {\n if (typeof footerRef !== 'function' && footerRef.current) {\n ensuresFooterHasEvenHeight(footerRef.current);\n }\n\n // if ref === 'function', this is a callback ref. Haven't found any solution for adjusting the height in this case\n }, [ref, props.h]);\n\n return <StickyFooter borderTop className={classes.root} ref={footerRef} {...props} />;\n});\n\nModalFooter.displayName = 'Modal.Footer';\n"],"names":["ModalFooter","ensuresFooterHasEvenHeight","footer","remainder","offsetHeight","style","height","factory","props","ref","_ref","useRef","footerRef","useEffect","current","h","StickyFooter","borderTop","className","classes","root","displayName"],"mappings":";;;;+BAoBaA;;;eAAAA;;;;;;qBApBmB;oBACD;4BACkD;6EAC7D;AAYpB,IAAMC,6BAA6B,oCAACC;IAChC,IAAMC,YAAYD,OAAOE,YAAY,GAAG;IACxCF,OAAOG,KAAK,CAACC,MAAM,GAAG,AAAC,GAAsC,OAApCJ,OAAOE,YAAY,GAAGD,YAAY,GAAE;AACjE;AAEO,IAAMH,cAAcO,IAAAA,aAAO,EAAqB,SAACC,OAAOC;IAC3D,IAAMC,OAAOC,IAAAA,aAAM,EAAiB;IAEpC,IAAMC,YAAYH,OAAOC;IAEzBG,IAAAA,gBAAS,EAAC;QACN,IAAI,OAAOD,cAAc,cAAcA,UAAUE,OAAO,EAAE;YACtDb,2BAA2BW,UAAUE,OAAO;QAChD;IAEA,kHAAkH;IACtH,GAAG;QAACL;QAAKD,MAAMO,CAAC;KAAC;IAEjB,qBAAO,qBAACC,0BAAY;QAACC,SAAS;QAACC,WAAWC,6BAAO,CAACC,IAAI;QAAEX,KAAKG;OAAeJ;AAChF;AAEAR,YAAYqB,WAAW,GAAG"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
:global(.mantine-Modal-body) {
|
|
2
2
|
.root {
|
|
3
3
|
margin: calc(-1 * var(--mb-padding));
|
|
4
|
-
margin-top:
|
|
4
|
+
margin-top: var(--mb-padding);
|
|
5
5
|
}
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.root {
|
|
9
|
-
padding: var(--mb-padding, var(--mantine-spacing-
|
|
9
|
+
padding: var(--mb-padding, var(--mantine-spacing-md, 24px));
|
|
10
10
|
}
|
|
@@ -7,6 +7,6 @@ interface PromptContext {
|
|
|
7
7
|
export declare const PromptContextProvider: ({ children, value }: {
|
|
8
8
|
value: PromptContext;
|
|
9
9
|
children: React.ReactNode;
|
|
10
|
-
}) => import("react/jsx-runtime
|
|
10
|
+
}) => import("react/jsx-runtime").JSX.Element, usePromptContext: () => PromptContext;
|
|
11
11
|
export {};
|
|
12
12
|
//# sourceMappingURL=Prompt.context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Prompt.context.d.ts","sourceRoot":"","sources":["../../../../src/components/Prompt/Prompt.context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,YAAY,EAAC,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAC,aAAa,EAAE,aAAa,EAAC,MAAM,aAAa,CAAC;AAEzD,UAAU,aAAa;IACnB,OAAO,EAAE,aAAa,CAAC;IACvB,SAAS,EAAE,YAAY,CAAC,aAAa,CAAC,CAAC;CAC1C;AAED,eAAO,MAAO,qBAAqB
|
|
1
|
+
{"version":3,"file":"Prompt.context.d.ts","sourceRoot":"","sources":["../../../../src/components/Prompt/Prompt.context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,YAAY,EAAC,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAC,aAAa,EAAE,aAAa,EAAC,MAAM,aAAa,CAAC;AAEzD,UAAU,aAAa;IACnB,OAAO,EAAE,aAAa,CAAC;IACvB,SAAS,EAAE,YAAY,CAAC,aAAa,CAAC,CAAC;CAC1C;AAED,eAAO,MAAO,qBAAqB;;;+CAAE,gBAAgB,qBAEpD,CAAC"}
|
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
import { Factory, ModalRootProps, ModalStylesNames, StylesApiProps } from '@mantine/core';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
export type PromptVariant = 'success' | 'warning' | 'critical' | '
|
|
2
|
+
import { FunctionComponent, ReactElement, ReactNode } from 'react';
|
|
3
|
+
import { PromptCancelButtonStylesNamesVariant } from './PromptCancelButton.js';
|
|
4
|
+
import { PromptConfirmButtonStylesNamesVariant } from './PromptConfirmButton.js';
|
|
5
|
+
export type PromptVariant = 'success' | 'warning' | 'critical' | 'information';
|
|
6
6
|
export type PromptVars = {
|
|
7
7
|
root: '--prompt-icon-size';
|
|
8
8
|
};
|
|
9
9
|
export type PromptStylesNames = Exclude<ModalStylesNames, 'title'> | 'icon' | PromptCancelButtonStylesNamesVariant | PromptConfirmButtonStylesNamesVariant;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
* Controls prompt appearance
|
|
13
|
-
*
|
|
14
|
-
* @default "info"
|
|
15
|
-
*/
|
|
16
|
-
variant?: PromptVariant;
|
|
10
|
+
type PromptStylesApiProps = Omit<StylesApiProps<PromptFactory>, 'variant'>;
|
|
11
|
+
export interface PromptProps extends PromptStylesApiProps, Omit<ModalRootProps, 'classNames' | 'styles' | 'vars' | 'attributes' | 'variant'> {
|
|
17
12
|
children: ReactNode;
|
|
18
13
|
title: ReactNode;
|
|
19
14
|
}
|
|
15
|
+
interface PromptInternalProps extends PromptProps {
|
|
16
|
+
variant?: PromptVariant;
|
|
17
|
+
}
|
|
20
18
|
export type PromptFactory = Factory<{
|
|
21
|
-
props:
|
|
22
|
-
ref: HTMLDivElement;
|
|
23
|
-
vars: PromptVars;
|
|
24
|
-
variant: PromptVariant;
|
|
25
|
-
stylesNames: PromptStylesNames;
|
|
26
|
-
staticComponents: {
|
|
27
|
-
CancelButton: typeof PromptCancelButton;
|
|
28
|
-
ConfirmButton: typeof PromptConfirmButton;
|
|
29
|
-
Footer: typeof PromptFooter;
|
|
30
|
-
};
|
|
31
|
-
}>;
|
|
32
|
-
export declare const Prompt: import("@mantine/core").MantineComponent<{
|
|
33
|
-
props: PromptProps;
|
|
19
|
+
props: PromptInternalProps;
|
|
34
20
|
ref: HTMLDivElement;
|
|
35
21
|
vars: PromptVars;
|
|
36
22
|
variant: PromptVariant;
|
|
37
23
|
stylesNames: PromptStylesNames;
|
|
38
|
-
staticComponents: {
|
|
39
|
-
CancelButton: typeof PromptCancelButton;
|
|
40
|
-
ConfirmButton: typeof PromptConfirmButton;
|
|
41
|
-
Footer: typeof PromptFooter;
|
|
42
|
-
};
|
|
43
|
-
}>;
|
|
44
|
-
declare const PromptFooter: import("react").ForwardRefExoticComponent<import("../Modal/ModalFooter.js").ModalFooterProps & import("react").RefAttributes<HTMLDivElement> & {
|
|
45
|
-
component?: any;
|
|
46
|
-
renderRoot?: (props: Record<string, any>) => React.ReactNode;
|
|
47
24
|
}>;
|
|
25
|
+
type PromptCompoundComponent = ((props: PromptProps) => ReactElement) & Omit<FunctionComponent<PromptProps>, never>;
|
|
26
|
+
export declare const Prompt: {
|
|
27
|
+
readonly Information: PromptCompoundComponent;
|
|
28
|
+
readonly Success: PromptCompoundComponent;
|
|
29
|
+
readonly Warning: PromptCompoundComponent;
|
|
30
|
+
readonly Critical: PromptCompoundComponent;
|
|
31
|
+
readonly CancelButton: import("@mantine/core").MantineComponent<{
|
|
32
|
+
props: import("./PromptCancelButton.js").PromptCancelButtonProps;
|
|
33
|
+
ref: HTMLButtonElement;
|
|
34
|
+
stylesNames: PromptCancelButtonStylesNamesVariant;
|
|
35
|
+
compound: true;
|
|
36
|
+
}>;
|
|
37
|
+
readonly ConfirmButton: import("@mantine/core").MantineComponent<{
|
|
38
|
+
props: import("./PromptConfirmButton.js").PromptConfirmButtonProps;
|
|
39
|
+
ref: HTMLButtonElement;
|
|
40
|
+
stylesNames: PromptConfirmButtonStylesNamesVariant;
|
|
41
|
+
compound: true;
|
|
42
|
+
}>;
|
|
43
|
+
readonly Footer: FunctionComponent<import("../Modal/ModalFooter.js").ModalFooterProps & import("react").RefAttributes<HTMLDivElement> & {
|
|
44
|
+
component?: any;
|
|
45
|
+
renderRoot?: (props: Record<string, any>) => React.ReactNode;
|
|
46
|
+
}>;
|
|
47
|
+
};
|
|
48
48
|
export {};
|
|
49
49
|
//# sourceMappingURL=Prompt.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Prompt.d.ts","sourceRoot":"","sources":["../../../../src/components/Prompt/Prompt.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGH,OAAO,EACP,cAAc,EACd,gBAAgB,EAChB,cAAc,EAIjB,MAAM,eAAe,CAAC;AACvB,OAAO,
|
|
1
|
+
{"version":3,"file":"Prompt.d.ts","sourceRoot":"","sources":["../../../../src/components/Prompt/Prompt.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGH,OAAO,EACP,cAAc,EACd,gBAAgB,EAChB,cAAc,EAIjB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAsD,iBAAiB,EAAE,YAAY,EAAE,SAAS,EAAC,MAAM,OAAO,CAAC;AAKtH,OAAO,EAAqB,oCAAoC,EAAC,MAAM,yBAAyB,CAAC;AACjG,OAAO,EAAsB,qCAAqC,EAAC,MAAM,0BAA0B,CAAC;AAEpG,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,aAAa,CAAC;AAC/E,MAAM,MAAM,UAAU,GAAG;IAAC,IAAI,EAAE,oBAAoB,CAAA;CAAC,CAAC;AACtD,MAAM,MAAM,iBAAiB,GACvB,OAAO,CAAC,gBAAgB,EAAE,OAAO,CAAC,GAClC,MAAM,GACN,oCAAoC,GACpC,qCAAqC,CAAC;AAE5C,KAAK,oBAAoB,GAAG,IAAI,CAAC,cAAc,CAAC,aAAa,CAAC,EAAE,SAAS,CAAC,CAAC;AAE3E,MAAM,WAAW,WACb,SAAQ,oBAAoB,EAAE,IAAI,CAAC,cAAc,EAAE,YAAY,GAAG,QAAQ,GAAG,MAAM,GAAG,YAAY,GAAG,SAAS,CAAC;IAC/G,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,EAAE,SAAS,CAAC;CACpB;AAED,UAAU,mBAAoB,SAAQ,WAAW;IAC7C,OAAO,CAAC,EAAE,aAAa,CAAC;CAC3B;AAED,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC;IAChC,KAAK,EAAE,mBAAmB,CAAC;IAC3B,GAAG,EAAE,cAAc,CAAC;IACpB,IAAI,EAAE,UAAU,CAAC;IACjB,OAAO,EAAE,aAAa,CAAC;IACvB,WAAW,EAAE,iBAAiB,CAAC;CAClC,CAAC,CAAC;AAiFH,KAAK,uBAAuB,GAAG,CAAC,CAAC,KAAK,EAAE,WAAW,KAAK,YAAY,CAAC,GAAG,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,EAAE,KAAK,CAAC,CAAC;AAapH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;CAQT,CAAC"}
|
|
@@ -15,26 +15,23 @@ var _object_without_properties = require("@swc/helpers/_/_object_without_propert
|
|
|
15
15
|
var _jsxruntime = require("react/jsx-runtime");
|
|
16
16
|
var _core = require("@mantine/core");
|
|
17
17
|
var _react = require("react");
|
|
18
|
+
var _InfoToken = require("../InfoToken/InfoToken.js");
|
|
18
19
|
var _Modal = require("../Modal/Modal.js");
|
|
19
20
|
var _Promptcontext = require("./Prompt.context.js");
|
|
20
21
|
var _Promptmodulecss = /*#__PURE__*/ _interop_require_default._(require("./Prompt.module.css"));
|
|
21
22
|
var _PromptCancelButton = require("./PromptCancelButton.js");
|
|
22
23
|
var _PromptConfirmButton = require("./PromptConfirmButton.js");
|
|
23
|
-
var _CriticalIcon = /*#__PURE__*/ _interop_require_default._(require("./icons/CriticalIcon.js"));
|
|
24
|
-
var _InfoIcon = /*#__PURE__*/ _interop_require_default._(require("./icons/InfoIcon.js"));
|
|
25
|
-
var _SuccessIcon = /*#__PURE__*/ _interop_require_default._(require("./icons/SuccessIcon.js"));
|
|
26
|
-
var _WarningIcon = /*#__PURE__*/ _interop_require_default._(require("./icons/WarningIcon.js"));
|
|
27
24
|
var PromptVariantIconsMapping = {
|
|
28
|
-
success:
|
|
29
|
-
warning:
|
|
30
|
-
critical:
|
|
31
|
-
|
|
25
|
+
success: _InfoToken.InfoToken.Success,
|
|
26
|
+
warning: _InfoToken.InfoToken.Warning,
|
|
27
|
+
critical: _InfoToken.InfoToken.Error,
|
|
28
|
+
information: _InfoToken.InfoToken.Information
|
|
32
29
|
};
|
|
33
30
|
var defaultProps = {
|
|
34
|
-
variant: '
|
|
31
|
+
variant: 'information',
|
|
35
32
|
centered: true
|
|
36
33
|
};
|
|
37
|
-
var
|
|
34
|
+
var _Prompt = (0, _core.factory)(function(_props, ref) {
|
|
38
35
|
var props = (0, _core.useProps)('Prompt', defaultProps, _props);
|
|
39
36
|
var variant = props.variant, title = props.title, children = props.children, className = props.className, classNames = props.classNames, style = props.style, styles = props.styles, unstyled = props.unstyled, vars = props.vars, _attributes = props.attributes, others = _object_without_properties._(props, [
|
|
40
37
|
"variant",
|
|
@@ -66,7 +63,7 @@ var Prompt = (0, _core.factory)(function(_props, ref) {
|
|
|
66
63
|
var footers = [];
|
|
67
64
|
var otherChildren = [];
|
|
68
65
|
_react.Children.forEach(children, function(child) {
|
|
69
|
-
(child.type ===
|
|
66
|
+
(child.type === PromptFooter ? footers : otherChildren).push(child);
|
|
70
67
|
});
|
|
71
68
|
var IconComponent = PromptVariantIconsMapping[variant];
|
|
72
69
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_Promptcontext.PromptContextProvider, {
|
|
@@ -85,7 +82,11 @@ var Prompt = (0, _core.factory)(function(_props, ref) {
|
|
|
85
82
|
children: [
|
|
86
83
|
/*#__PURE__*/ (0, _jsxruntime.jsxs)(_Modal.Modal.Header, _object_spread_props._(_object_spread._({}, getStyles('header', stylesApiProps)), {
|
|
87
84
|
children: [
|
|
88
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(IconComponent, {}),
|
|
85
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(IconComponent, _object_spread_props._(_object_spread._({}, getStyles('icon', stylesApiProps)), {
|
|
86
|
+
variant: "light",
|
|
87
|
+
size: "sm",
|
|
88
|
+
"aria-label": variant
|
|
89
|
+
})),
|
|
89
90
|
/*#__PURE__*/ (0, _jsxruntime.jsx)(_Modal.Modal.Title, {
|
|
90
91
|
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_core.Title, {
|
|
91
92
|
order: 3,
|
|
@@ -108,11 +109,30 @@ var Prompt = (0, _core.factory)(function(_props, ref) {
|
|
|
108
109
|
}))
|
|
109
110
|
});
|
|
110
111
|
});
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
});
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
112
|
+
_Prompt.displayName = 'Prompt';
|
|
113
|
+
var PromptFooter = function PromptFooter(props) {
|
|
114
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_Modal.Modal.Footer, _object_spread._({}, props));
|
|
115
|
+
};
|
|
116
|
+
PromptFooter.displayName = 'Prompt.Footer';
|
|
117
|
+
var createPromptCompound = function createPromptCompound(variant, displayName) {
|
|
118
|
+
var Component = /*#__PURE__*/ (0, _react.forwardRef)(function(props, ref) {
|
|
119
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_Prompt, _object_spread_props._(_object_spread._({
|
|
120
|
+
ref: ref
|
|
121
|
+
}, props), {
|
|
122
|
+
variant: variant
|
|
123
|
+
}));
|
|
124
|
+
});
|
|
125
|
+
Component.displayName = displayName;
|
|
126
|
+
return Component;
|
|
127
|
+
};
|
|
128
|
+
var Prompt = {
|
|
129
|
+
Information: createPromptCompound('information', 'Prompt.Information'),
|
|
130
|
+
Success: createPromptCompound('success', 'Prompt.Success'),
|
|
131
|
+
Warning: createPromptCompound('warning', 'Prompt.Warning'),
|
|
132
|
+
Critical: createPromptCompound('critical', 'Prompt.Critical'),
|
|
133
|
+
CancelButton: _PromptCancelButton.PromptCancelButton,
|
|
134
|
+
ConfirmButton: _PromptConfirmButton.PromptConfirmButton,
|
|
135
|
+
Footer: PromptFooter
|
|
136
|
+
};
|
|
117
137
|
|
|
118
138
|
//# sourceMappingURL=Prompt.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/Prompt/Prompt.tsx"],"sourcesContent":["import {\n Box,\n factory,\n Factory,\n ModalRootProps,\n ModalStylesNames,\n StylesApiProps,\n Title,\n useProps,\n useStyles,\n} from '@mantine/core';\nimport {Children, ComponentType, ReactElement, ReactNode} from 'react';\nimport {Modal} from '../Modal/Modal.js';\nimport {PromptContextProvider} from './Prompt.context.js';\nimport classes from './Prompt.module.css';\nimport {PromptCancelButton, PromptCancelButtonStylesNamesVariant} from './PromptCancelButton.js';\nimport {PromptConfirmButton, PromptConfirmButtonStylesNamesVariant} from './PromptConfirmButton.js';\
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/Prompt/Prompt.tsx"],"sourcesContent":["import {\n Box,\n factory,\n Factory,\n ModalRootProps,\n ModalStylesNames,\n StylesApiProps,\n Title,\n useProps,\n useStyles,\n} from '@mantine/core';\nimport {Children, ComponentProps, ComponentType, forwardRef, FunctionComponent, ReactElement, ReactNode} from 'react';\nimport {InfoToken} from '../InfoToken/InfoToken.js';\nimport {Modal} from '../Modal/Modal.js';\nimport {PromptContextProvider} from './Prompt.context.js';\nimport classes from './Prompt.module.css';\nimport {PromptCancelButton, PromptCancelButtonStylesNamesVariant} from './PromptCancelButton.js';\nimport {PromptConfirmButton, PromptConfirmButtonStylesNamesVariant} from './PromptConfirmButton.js';\n\nexport type PromptVariant = 'success' | 'warning' | 'critical' | 'information';\nexport type PromptVars = {root: '--prompt-icon-size'};\nexport type PromptStylesNames =\n | Exclude<ModalStylesNames, 'title'>\n | 'icon'\n | PromptCancelButtonStylesNamesVariant\n | PromptConfirmButtonStylesNamesVariant;\n\ntype PromptStylesApiProps = Omit<StylesApiProps<PromptFactory>, 'variant'>;\n\nexport interface PromptProps\n extends PromptStylesApiProps, Omit<ModalRootProps, 'classNames' | 'styles' | 'vars' | 'attributes' | 'variant'> {\n children: ReactNode;\n title: ReactNode;\n}\n\ninterface PromptInternalProps extends PromptProps {\n variant?: PromptVariant;\n}\n\nexport type PromptFactory = Factory<{\n props: PromptInternalProps;\n ref: HTMLDivElement;\n vars: PromptVars;\n variant: PromptVariant;\n stylesNames: PromptStylesNames;\n}>;\n\nconst PromptVariantIconsMapping: Record<PromptVariant, typeof InfoToken.Information> = {\n success: InfoToken.Success,\n warning: InfoToken.Warning,\n critical: InfoToken.Error,\n information: InfoToken.Information,\n};\n\nconst defaultProps: Partial<PromptInternalProps> = {\n variant: 'information',\n centered: true,\n};\n\nconst _Prompt = factory<PromptFactory>((_props, ref) => {\n const props = useProps('Prompt', defaultProps, _props);\n const {\n variant,\n title,\n children,\n className,\n classNames,\n style,\n styles,\n unstyled,\n vars,\n attributes: _attributes,\n ...others\n } = props;\n const getStyles = useStyles<PromptFactory>({\n name: 'Prompt',\n props,\n classes,\n className,\n style,\n classNames,\n styles,\n unstyled,\n vars,\n });\n const stylesApiProps = {classNames, styles};\n\n const footers: ReactElement[] = [];\n const otherChildren: ReactElement[] = [];\n\n Children.forEach(children, (child: ReactElement) => {\n (child.type === PromptFooter ? footers : otherChildren).push(child);\n });\n\n const IconComponent = PromptVariantIconsMapping[variant];\n\n return (\n <PromptContextProvider value={{variant, getStyles}}>\n <Modal.Root ref={ref} variant=\"prompt\" size=\"sm\" {...others} {...getStyles('root')}>\n <Modal.Overlay {...getStyles('overlay', stylesApiProps)} />\n <Modal.Content {...getStyles('content', stylesApiProps)}>\n <Modal.Header {...getStyles('header', stylesApiProps)}>\n <IconComponent\n {...getStyles('icon', stylesApiProps)}\n variant=\"light\"\n size=\"sm\"\n aria-label={variant}\n />\n <Modal.Title>\n <Title order={3} component=\"div\">\n {title}\n </Title>\n </Modal.Title>\n <Modal.CloseButton {...getStyles('close', stylesApiProps)} />\n </Modal.Header>\n <Modal.Body {...getStyles('body', stylesApiProps)}>\n <Box {...getStyles('inner', stylesApiProps)}>{otherChildren}</Box>\n </Modal.Body>\n {footers}\n </Modal.Content>\n </Modal.Root>\n </PromptContextProvider>\n );\n});\n_Prompt.displayName = 'Prompt';\n\ntype PromptCompoundComponent = ((props: PromptProps) => ReactElement) & Omit<FunctionComponent<PromptProps>, never>;\n\nconst PromptFooter: ComponentType<ComponentProps<typeof Modal.Footer>> = (props) => <Modal.Footer {...props} />;\nPromptFooter.displayName = 'Prompt.Footer';\n\nconst createPromptCompound = (variant: PromptVariant, displayName: string): PromptCompoundComponent => {\n const Component = forwardRef<HTMLDivElement, PromptProps>((props, ref) => (\n <_Prompt ref={ref} {...props} variant={variant} />\n ));\n Component.displayName = displayName;\n return Component as PromptCompoundComponent;\n};\n\nexport const Prompt = {\n Information: createPromptCompound('information', 'Prompt.Information'),\n Success: createPromptCompound('success', 'Prompt.Success'),\n Warning: createPromptCompound('warning', 'Prompt.Warning'),\n Critical: createPromptCompound('critical', 'Prompt.Critical'),\n CancelButton: PromptCancelButton,\n ConfirmButton: PromptConfirmButton,\n Footer: PromptFooter,\n} as const;\n"],"names":["Prompt","PromptVariantIconsMapping","success","InfoToken","Success","warning","Warning","critical","Error","information","Information","defaultProps","variant","centered","_Prompt","factory","_props","ref","props","useProps","title","children","className","classNames","style","styles","unstyled","vars","attributes","_attributes","others","getStyles","useStyles","name","classes","stylesApiProps","footers","otherChildren","Children","forEach","child","type","PromptFooter","push","IconComponent","PromptContextProvider","value","Modal","Root","size","Overlay","Content","Header","aria-label","Title","order","component","CloseButton","Body","Box","displayName","Footer","createPromptCompound","Component","forwardRef","Critical","CancelButton","PromptCancelButton","ConfirmButton","PromptConfirmButton"],"mappings":";;;;+BA2IaA;;;eAAAA;;;;;;;;oBAjIN;qBACuG;yBACtF;qBACJ;6BACgB;wEAChB;kCACmD;mCACE;AA8BzE,IAAMC,4BAAiF;IACnFC,SAASC,oBAAS,CAACC,OAAO;IAC1BC,SAASF,oBAAS,CAACG,OAAO;IAC1BC,UAAUJ,oBAAS,CAACK,KAAK;IACzBC,aAAaN,oBAAS,CAACO,WAAW;AACtC;AAEA,IAAMC,eAA6C;IAC/CC,SAAS;IACTC,UAAU;AACd;AAEA,IAAMC,UAAUC,IAAAA,aAAO,EAAgB,SAACC,QAAQC;IAC5C,IAAMC,QAAQC,IAAAA,cAAQ,EAAC,UAAUR,cAAcK;IAC/C,IACIJ,UAWAM,MAXAN,SACAQ,QAUAF,MAVAE,OACAC,WASAH,MATAG,UACAC,YAQAJ,MARAI,WACAC,aAOAL,MAPAK,YACAC,QAMAN,MANAM,OACAC,SAKAP,MALAO,QACAC,WAIAR,MAJAQ,UACAC,OAGAT,MAHAS,MACAC,AAAYC,cAEZX,MAFAU,YACGE,sCACHZ;;;;;;;;;;;;IACJ,IAAMa,YAAYC,IAAAA,eAAS,EAAgB;QACvCC,MAAM;QACNf,OAAAA;QACAgB,SAAAA,wBAAO;QACPZ,WAAAA;QACAE,OAAAA;QACAD,YAAAA;QACAE,QAAAA;QACAC,UAAAA;QACAC,MAAAA;IACJ;IACA,IAAMQ,iBAAiB;QAACZ,YAAAA;QAAYE,QAAAA;IAAM;IAE1C,IAAMW,UAA0B,EAAE;IAClC,IAAMC,gBAAgC,EAAE;IAExCC,eAAQ,CAACC,OAAO,CAAClB,UAAU,SAACmB;QACvBA,CAAAA,MAAMC,IAAI,KAAKC,eAAeN,UAAUC,aAAY,EAAGM,IAAI,CAACH;IACjE;IAEA,IAAMI,gBAAgB3C,yBAAyB,CAACW,QAAQ;IAExD,qBACI,qBAACiC,oCAAqB;QAACC,OAAO;YAAClC,SAAAA;YAASmB,WAAAA;QAAS;kBAC7C,cAAA,sBAACgB,YAAK,CAACC,IAAI;YAAC/B,KAAKA;YAAKL,SAAQ;YAASqC,MAAK;WAASnB,QAAYC,UAAU;;8BACvE,qBAACgB,YAAK,CAACG,OAAO,uBAAKnB,UAAU,WAAWI;8BACxC,sBAACY,YAAK,CAACI,OAAO,8CAAKpB,UAAU,WAAWI;;sCACpC,sBAACY,YAAK,CAACK,MAAM,8CAAKrB,UAAU,UAAUI;;8CAClC,qBAACS,2DACOb,UAAU,QAAQI;oCACtBvB,SAAQ;oCACRqC,MAAK;oCACLI,cAAYzC;;8CAEhB,qBAACmC,YAAK,CAACO,KAAK;8CACR,cAAA,qBAACA,WAAK;wCAACC,OAAO;wCAAGC,WAAU;kDACtBpC;;;8CAGT,qBAAC2B,YAAK,CAACU,WAAW,uBAAK1B,UAAU,SAASI;;;sCAE9C,qBAACY,YAAK,CAACW,IAAI,8CAAK3B,UAAU,QAAQI;sCAC9B,cAAA,qBAACwB,SAAG,8CAAK5B,UAAU,SAASI;0CAAkBE;;;wBAEjDD;;;;;;AAKrB;AACAtB,QAAQ8C,WAAW,GAAG;AAItB,IAAMlB,eAAmE,sBAACxB;yBAAU,qBAAC6B,YAAK,CAACc,MAAM,uBAAK3C;;AACtGwB,aAAakB,WAAW,GAAG;AAE3B,IAAME,uBAAuB,8BAAClD,SAAwBgD;IAClD,IAAMG,0BAAYC,IAAAA,iBAAU,EAA8B,SAAC9C,OAAOD;6BAC9D,qBAACH;YAAQG,KAAKA;WAASC;YAAON,SAASA;;;IAE3CmD,UAAUH,WAAW,GAAGA;IACxB,OAAOG;AACX;AAEO,IAAM/D,SAAS;IAClBU,aAAaoD,qBAAqB,eAAe;IACjD1D,SAAS0D,qBAAqB,WAAW;IACzCxD,SAASwD,qBAAqB,WAAW;IACzCG,UAAUH,qBAAqB,YAAY;IAC3CI,cAAcC,sCAAkB;IAChCC,eAAeC,wCAAmB;IAClCR,QAAQnB;AACZ"}
|
|
@@ -1,20 +1,3 @@
|
|
|
1
|
-
.root {
|
|
2
|
-
--prompt-icon-size: 32px;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.body {
|
|
6
|
-
padding-left: calc(var(--prompt-icon-size) + var(--mantine-spacing-sm) + var(--mb-padding));
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.icon {
|
|
10
|
-
width: var(--prompt-icon-size);
|
|
11
|
-
height: var(--prompt-icon-size);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
1
|
.header {
|
|
15
2
|
gap: var(--mantine-spacing-sm);
|
|
16
3
|
}
|
|
17
|
-
|
|
18
|
-
.inner {
|
|
19
|
-
color: var(--mantine-color-dimmed);
|
|
20
|
-
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PromptCancelButton.d.ts","sourceRoot":"","sources":["../../../../src/components/Prompt/PromptCancelButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,sBAAsB,EAAW,OAAO,EAAW,MAAM,eAAe,CAAC;AACjF,OAAO,EAAS,WAAW,EAAC,MAAM,qBAAqB,CAAC;AAGxD,MAAM,MAAM,oCAAoC,GAAG,QAAQ,CAAC;AAE5D,MAAM,WAAW,uBACb,
|
|
1
|
+
{"version":3,"file":"PromptCancelButton.d.ts","sourceRoot":"","sources":["../../../../src/components/Prompt/PromptCancelButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,sBAAsB,EAAW,OAAO,EAAW,MAAM,eAAe,CAAC;AACjF,OAAO,EAAS,WAAW,EAAC,MAAM,qBAAqB,CAAC;AAGxD,MAAM,MAAM,oCAAoC,GAAG,QAAQ,CAAC;AAE5D,MAAM,WAAW,uBACb,SACI,sBAAsB,CAAC,yBAAyB,CAAC,EACjD,IAAI,CAAC,WAAW,EAAE,SAAS,GAAG,YAAY,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC;CAAG;AAEtF,MAAM,MAAM,yBAAyB,GAAG,OAAO,CAAC;IAC5C,KAAK,EAAE,uBAAuB,CAAC;IAC/B,GAAG,EAAE,iBAAiB,CAAC;IACvB,WAAW,EAAE,oCAAoC,CAAC;IAClD,QAAQ,EAAE,IAAI,CAAC;CAClB,CAAC,CAAC;AAIH,eAAO,MAAM,kBAAkB;WARpB,uBAAuB;SACzB,iBAAiB;iBACT,oCAAoC;cACvC,IAAI;EAWhB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/Prompt/PromptCancelButton.tsx"],"sourcesContent":["import {CompoundStylesApiProps, factory, Factory, useProps} from '@mantine/core';\nimport {Button, ButtonProps} from '../Button/Button.js';\nimport {usePromptContext} from './Prompt.context.js';\n\nexport type PromptCancelButtonStylesNamesVariant = 'cancel';\n\nexport interface PromptCancelButtonProps\n extends
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/Prompt/PromptCancelButton.tsx"],"sourcesContent":["import {CompoundStylesApiProps, factory, Factory, useProps} from '@mantine/core';\nimport {Button, ButtonProps} from '../Button/Button.js';\nimport {usePromptContext} from './Prompt.context.js';\n\nexport type PromptCancelButtonStylesNamesVariant = 'cancel';\n\nexport interface PromptCancelButtonProps\n extends\n CompoundStylesApiProps<PromptCancelButtonFactory>,\n Omit<ButtonProps, 'primary' | 'classNames' | 'styles' | 'vars' | 'variant'> {}\n\nexport type PromptCancelButtonFactory = Factory<{\n props: PromptCancelButtonProps;\n ref: HTMLButtonElement;\n stylesNames: PromptCancelButtonStylesNamesVariant;\n compound: true;\n}>;\n\nconst defaultProps: Partial<PromptCancelButtonProps> = {};\n\nexport const PromptCancelButton = factory<PromptCancelButtonFactory>((_props, ref) => {\n const {getStyles} = usePromptContext();\n const props = useProps('PromptCancelButton', defaultProps, _props);\n const {className, classNames, style, styles, unstyled, vars, ...others} = props;\n\n return <Button.Tertiary ref={ref} {...others} {...getStyles('cancel', {style, styles, className, classNames})} />;\n});\nPromptCancelButton.displayName = 'Prompt.CancelButton';\n"],"names":["PromptCancelButton","defaultProps","factory","_props","ref","getStyles","usePromptContext","props","useProps","className","classNames","style","styles","unstyled","vars","others","Button","Tertiary","displayName"],"mappings":";;;;+BAoBaA;;;eAAAA;;;;;;oBApBoD;sBAC/B;6BACH;AAgB/B,IAAMC,eAAiD,CAAC;AAEjD,IAAMD,qBAAqBE,IAAAA,aAAO,EAA4B,SAACC,QAAQC;IAC1E,IAAM,AAACC,YAAaC,IAAAA,+BAAgB,IAA7BD;IACP,IAAME,QAAQC,IAAAA,cAAQ,EAAC,sBAAsBP,cAAcE;IAC3D,IAAOM,YAAmEF,MAAnEE,WAAWC,aAAwDH,MAAxDG,YAAYC,QAA4CJ,MAA5CI,OAAOC,SAAqCL,MAArCK,QAAQC,WAA6BN,MAA7BM,UAAUC,OAAmBP,MAAnBO,MAASC,sCAAUR;;;;;;;;IAE1E,qBAAO,qBAACS,cAAM,CAACC,QAAQ;QAACb,KAAKA;OAASW,QAAYV,UAAU,UAAU;QAACM,OAAAA;QAAOC,QAAAA;QAAQH,WAAAA;QAAWC,YAAAA;IAAU;AAC/G;AACAV,mBAAmBkB,WAAW,GAAG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PromptConfirmButton.d.ts","sourceRoot":"","sources":["../../../../src/components/Prompt/PromptConfirmButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,sBAAsB,EAAW,OAAO,EAAsC,MAAM,eAAe,CAAC;AAE5G,OAAO,EAAS,WAAW,EAAC,MAAM,qBAAqB,CAAC;AAIxD,MAAM,MAAM,qCAAqC,GAAG,SAAS,CAAC;AAE9D,MAAM,WAAW,wBACb,
|
|
1
|
+
{"version":3,"file":"PromptConfirmButton.d.ts","sourceRoot":"","sources":["../../../../src/components/Prompt/PromptConfirmButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,sBAAsB,EAAW,OAAO,EAAsC,MAAM,eAAe,CAAC;AAE5G,OAAO,EAAS,WAAW,EAAC,MAAM,qBAAqB,CAAC;AAIxD,MAAM,MAAM,qCAAqC,GAAG,SAAS,CAAC;AAE9D,MAAM,WAAW,wBACb,SACI,sBAAsB,CAAC,0BAA0B,CAAC,EAClD,IAAI,CAAC,WAAW,EAAE,SAAS,GAAG,YAAY,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC;CAAG;AAEtF,MAAM,MAAM,0BAA0B,GAAG,OAAO,CAAC;IAC7C,KAAK,EAAE,wBAAwB,CAAC;IAChC,GAAG,EAAE,iBAAiB,CAAC;IACvB,WAAW,EAAE,qCAAqC,CAAC;IACnD,QAAQ,EAAE,IAAI,CAAC;CAClB,CAAC,CAAC;AAgBH,eAAO,MAAM,mBAAmB;WApBrB,wBAAwB;SAC1B,iBAAiB;iBACT,qCAAqC;cACxC,IAAI;EA2ChB,CAAC"}
|
|
@@ -16,7 +16,7 @@ var _Button = require("../Button/Button.js");
|
|
|
16
16
|
var _Promptcontext = require("./Prompt.context.js");
|
|
17
17
|
var COMPONENT_BY_VARIANT = {
|
|
18
18
|
success: _Button.Button.Primary,
|
|
19
|
-
|
|
19
|
+
information: _Button.Button.Primary,
|
|
20
20
|
warning: _Button.Button.DestructivePrimary,
|
|
21
21
|
critical: _Button.Button.DestructivePrimary
|
|
22
22
|
};
|
|
@@ -48,5 +48,6 @@ var PromptConfirmButton = (0, _core.factory)(function(_props, ref) {
|
|
|
48
48
|
classNames: classNames
|
|
49
49
|
})));
|
|
50
50
|
});
|
|
51
|
+
PromptConfirmButton.displayName = 'Prompt.ConfirmButton';
|
|
51
52
|
|
|
52
53
|
//# sourceMappingURL=PromptConfirmButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/Prompt/PromptConfirmButton.tsx"],"sourcesContent":["import {CompoundStylesApiProps, factory, Factory, PolymorphicComponentProps, useProps} from '@mantine/core';\nimport {JSXElementConstructor, ReactElement} from 'react';\nimport {Button, ButtonProps} from '../Button/Button.js';\nimport {PromptVariant} from './Prompt.js';\nimport {usePromptContext} from './Prompt.context.js';\n\nexport type PromptConfirmButtonStylesNamesVariant = 'confirm';\n\nexport interface PromptConfirmButtonProps\n extends
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/Prompt/PromptConfirmButton.tsx"],"sourcesContent":["import {CompoundStylesApiProps, factory, Factory, PolymorphicComponentProps, useProps} from '@mantine/core';\nimport {JSXElementConstructor, ReactElement} from 'react';\nimport {Button, ButtonProps} from '../Button/Button.js';\nimport {PromptVariant} from './Prompt.js';\nimport {usePromptContext} from './Prompt.context.js';\n\nexport type PromptConfirmButtonStylesNamesVariant = 'confirm';\n\nexport interface PromptConfirmButtonProps\n extends\n CompoundStylesApiProps<PromptConfirmButtonFactory>,\n Omit<ButtonProps, 'primary' | 'classNames' | 'styles' | 'vars' | 'variant'> {}\n\nexport type PromptConfirmButtonFactory = Factory<{\n props: PromptConfirmButtonProps;\n ref: HTMLButtonElement;\n stylesNames: PromptConfirmButtonStylesNamesVariant;\n compound: true;\n}>;\n\nconst COMPONENT_BY_VARIANT: Record<\n PromptVariant,\n <L = 'button'>(\n props: PolymorphicComponentProps<L, ButtonProps>,\n ) => ReactElement<any, string | JSXElementConstructor<any>>\n> = {\n success: Button.Primary,\n information: Button.Primary,\n warning: Button.DestructivePrimary,\n critical: Button.DestructivePrimary,\n};\n\nconst defaultProps: Partial<PromptConfirmButtonProps> = {};\n\nexport const PromptConfirmButton = factory<PromptConfirmButtonFactory>((_props, ref) => {\n const {variant, getStyles} = usePromptContext();\n const props = useProps('PromptConfirmButton', defaultProps, _props);\n const {\n className,\n classNames,\n style,\n styles,\n unstyled,\n vars,\n disabled,\n disabledTooltip,\n disabledTooltipProps,\n ...others\n } = props;\n const Component = COMPONENT_BY_VARIANT[variant];\n return (\n <Component\n ref={ref}\n disabled={disabled}\n disabledTooltip={disabledTooltip}\n disabledTooltipProps={disabledTooltipProps}\n {...others}\n {...getStyles('confirm', {style, styles, className, classNames})}\n />\n );\n});\nPromptConfirmButton.displayName = 'Prompt.ConfirmButton';\n"],"names":["PromptConfirmButton","COMPONENT_BY_VARIANT","success","Button","Primary","information","warning","DestructivePrimary","critical","defaultProps","factory","_props","ref","usePromptContext","variant","getStyles","props","useProps","className","classNames","style","styles","unstyled","vars","disabled","disabledTooltip","disabledTooltipProps","others","Component","displayName"],"mappings":";;;;+BAkCaA;;;eAAAA;;;;;;oBAlC+E;sBAE1D;6BAEH;AAgB/B,IAAMC,uBAKF;IACAC,SAASC,cAAM,CAACC,OAAO;IACvBC,aAAaF,cAAM,CAACC,OAAO;IAC3BE,SAASH,cAAM,CAACI,kBAAkB;IAClCC,UAAUL,cAAM,CAACI,kBAAkB;AACvC;AAEA,IAAME,eAAkD,CAAC;AAElD,IAAMT,sBAAsBU,IAAAA,aAAO,EAA6B,SAACC,QAAQC;IAC5E,IAA6BC,oBAAAA,IAAAA,+BAAgB,KAAtCC,UAAsBD,kBAAtBC,SAASC,YAAaF,kBAAbE;IAChB,IAAMC,QAAQC,IAAAA,cAAQ,EAAC,uBAAuBR,cAAcE;IAC5D,IACIO,YAUAF,MAVAE,WACAC,aASAH,MATAG,YACAC,QAQAJ,MARAI,OACAC,SAOAL,MAPAK,QACAC,WAMAN,MANAM,UACAC,OAKAP,MALAO,MACAC,WAIAR,MAJAQ,UACAC,kBAGAT,MAHAS,iBACAC,uBAEAV,MAFAU,sBACGC,sCACHX;;;;;;;;;;;IACJ,IAAMY,YAAY3B,oBAAoB,CAACa,QAAQ;IAC/C,qBACI,qBAACc;QACGhB,KAAKA;QACLY,UAAUA;QACVC,iBAAiBA;QACjBC,sBAAsBA;OAClBC,QACAZ,UAAU,WAAW;QAACK,OAAAA;QAAOC,QAAAA;QAAQH,WAAAA;QAAWC,YAAAA;IAAU;AAG1E;AACAnB,oBAAoB6B,WAAW,GAAG"}
|
|
@@ -18,7 +18,7 @@ var _core = require("@mantine/core");
|
|
|
18
18
|
var _clsx = /*#__PURE__*/ _interop_require_default._(require("clsx"));
|
|
19
19
|
var _StickyFootermodulecss = /*#__PURE__*/ _interop_require_default._(require("./StickyFooter.module.css"));
|
|
20
20
|
var defaultProps = {
|
|
21
|
-
gap: '
|
|
21
|
+
gap: 'xs',
|
|
22
22
|
justify: 'flex-end'
|
|
23
23
|
};
|
|
24
24
|
var StickyFooter = (0, _core.factory)(function(props, ref) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/StickyFooter/StickyFooter.tsx"],"sourcesContent":["import {Factory, Group, GroupProps, StylesApiProps, factory, useProps, useStyles} from '@mantine/core';\nimport clsx from 'clsx';\nimport {ReactNode} from 'react';\nimport classes from './StickyFooter.module.css';\n\nexport interface StickyFooterProps\n extends Omit<GroupProps, 'classNames' | 'styles' | 'vars' | 'variant'>, StylesApiProps<StickyFooterFactory> {\n /**\n * Whether a border is render on top of the footer\n */\n borderTop?: boolean;\n /**\n * Footer's children, usually buttons\n */\n children?: ReactNode;\n /**\n * Use variant 'modal-footer' when rendering the `StickyFooter` inside `Modal`.\n *\n * The 'modal-footer' removes the modal's default padding so that the footer properly hugs the bottom of the modal.\n * It also adds a border on top of the footer.\n *\n * @deprecated Use Modal.Footer from @coveord/plasma-mantine/Modal for modal footers. For other cases, the 'default' variant should suffice.\n */\n variant?: 'default' | 'modal-footer';\n}\n\nexport type StickyFooterStylesNames = 'root';\n\nexport type StickyFooterFactory = Factory<{\n props: StickyFooterProps;\n ref: HTMLDivElement;\n stylesNames: StickyFooterStylesNames;\n}>;\n\nconst defaultProps: Partial<StickyFooterProps> = {\n gap: '
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/StickyFooter/StickyFooter.tsx"],"sourcesContent":["import {Factory, Group, GroupProps, StylesApiProps, factory, useProps, useStyles} from '@mantine/core';\nimport clsx from 'clsx';\nimport {ReactNode} from 'react';\nimport classes from './StickyFooter.module.css';\n\nexport interface StickyFooterProps\n extends Omit<GroupProps, 'classNames' | 'styles' | 'vars' | 'variant'>, StylesApiProps<StickyFooterFactory> {\n /**\n * Whether a border is render on top of the footer\n */\n borderTop?: boolean;\n /**\n * Footer's children, usually buttons\n */\n children?: ReactNode;\n /**\n * Use variant 'modal-footer' when rendering the `StickyFooter` inside `Modal`.\n *\n * The 'modal-footer' removes the modal's default padding so that the footer properly hugs the bottom of the modal.\n * It also adds a border on top of the footer.\n *\n * @deprecated Use Modal.Footer from @coveord/plasma-mantine/Modal for modal footers. For other cases, the 'default' variant should suffice.\n */\n variant?: 'default' | 'modal-footer';\n}\n\nexport type StickyFooterStylesNames = 'root';\n\nexport type StickyFooterFactory = Factory<{\n props: StickyFooterProps;\n ref: HTMLDivElement;\n stylesNames: StickyFooterStylesNames;\n}>;\n\nconst defaultProps: Partial<StickyFooterProps> = {\n gap: 'xs',\n justify: 'flex-end',\n};\n\nexport const StickyFooter = factory<StickyFooterFactory>((props, ref) => {\n const {borderTop, justify, gap, children, className, classNames, style, styles, unstyled, vars, ...others} =\n useProps('StickyFooter', defaultProps, props);\n const getStyles = useStyles<StickyFooterFactory>({\n name: 'StickyFooter',\n classes,\n props,\n className,\n style,\n classNames,\n styles,\n unstyled,\n });\n\n const css = getStyles('root');\n\n return (\n <Group\n justify={justify}\n gap={gap}\n className={clsx(css.className, {[classes.border]: !!borderTop})}\n style={css.style}\n ref={ref}\n {...others}\n >\n {children}\n </Group>\n );\n});\n\nStickyFooter.displayName = 'StickyFooter';\n"],"names":["StickyFooter","defaultProps","gap","justify","factory","props","ref","useProps","borderTop","children","className","classNames","style","styles","unstyled","vars","others","getStyles","useStyles","name","classes","css","Group","clsx","border","displayName"],"mappings":";;;;+BAuCaA;;;eAAAA;;;;;;;;;oBAvC0E;6DACtE;8EAEG;AA+BpB,IAAMC,eAA2C;IAC7CC,KAAK;IACLC,SAAS;AACb;AAEO,IAAMH,eAAeI,IAAAA,aAAO,EAAsB,SAACC,OAAOC;IAC7D,IACIC,YAAAA,IAAAA,cAAQ,EAAC,gBAAgBN,cAAcI,QADpCG,YACHD,UADGC,WAAWL,UACdI,UADcJ,SAASD,MACvBK,UADuBL,KAAKO,WAC5BF,UAD4BE,UAAUC,YACtCH,UADsCG,WAAWC,aACjDJ,UADiDI,YAAYC,QAC7DL,UAD6DK,OAAOC,SACpEN,UADoEM,QAAQC,WAC5EP,UAD4EO,UAAUC,OACtFR,UADsFQ,MAASC,sCAC/FT;;;;;;;;;;;;IACJ,IAAMU,YAAYC,IAAAA,eAAS,EAAsB;QAC7CC,MAAM;QACNC,SAAAA,8BAAO;QACPf,OAAAA;QACAK,WAAAA;QACAE,OAAAA;QACAD,YAAAA;QACAE,QAAAA;QACAC,UAAAA;IACJ;IAEA,IAAMO,MAAMJ,UAAU;IAEtB,qBACI,qBAACK,WAAK;QACFnB,SAASA;QACTD,KAAKA;QACLQ,WAAWa,IAAAA,aAAI,EAACF,IAAIX,SAAS,EAAG,uBAACU,8BAAO,CAACI,MAAM,EAAG,CAAC,CAAChB;QACpDI,OAAOS,IAAIT,KAAK;QAChBN,KAAKA;OACDU;kBAEHP;;AAGb;AAEAT,aAAayB,WAAW,GAAG"}
|