@coveord/plasma-mantine 59.7.1 → 59.8.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 +3 -3
- package/.turbo/turbo-test.log +101 -100
- package/dist/.tsbuildinfo +1 -1
- package/dist/cjs/components/Badge/Badge.js +2 -2
- package/dist/cjs/components/Badge/Badge.js.map +1 -1
- package/dist/cjs/components/BrowserPreview/BrowserPreview.d.ts +4 -1
- package/dist/cjs/components/BrowserPreview/BrowserPreview.d.ts.map +1 -1
- package/dist/cjs/components/BrowserPreview/BrowserPreview.js +14 -27
- package/dist/cjs/components/BrowserPreview/BrowserPreview.js.map +1 -1
- package/dist/cjs/components/Chip/Chip.d.ts +1 -11
- package/dist/cjs/components/Chip/Chip.d.ts.map +1 -1
- package/dist/cjs/components/Chip/Chip.js +16 -22
- package/dist/cjs/components/Chip/Chip.js.map +1 -1
- package/dist/cjs/components/DateRangePicker/DateRangePicker.d.ts +1 -1
- package/dist/cjs/components/DateRangePicker/DateRangePicker.d.ts.map +1 -1
- package/dist/cjs/components/DateRangePicker/DateRangePicker.js +2 -2
- package/dist/cjs/components/DateRangePicker/DateRangePicker.js.map +1 -1
- package/dist/cjs/components/DateRangePicker/EditableDateRangePicker.d.ts +1 -1
- package/dist/cjs/components/DateRangePicker/EditableDateRangePicker.d.ts.map +1 -1
- package/dist/cjs/components/DateRangePicker/EditableDateRangePicker.js.map +1 -1
- package/dist/cjs/components/PrerequisitesList/PrerequisitesList.d.ts +30 -0
- package/dist/cjs/components/PrerequisitesList/PrerequisitesList.d.ts.map +1 -0
- package/dist/cjs/components/PrerequisitesList/PrerequisitesList.js +62 -0
- package/dist/cjs/components/PrerequisitesList/PrerequisitesList.js.map +1 -0
- package/dist/cjs/components/PrerequisitesList/PrerequisitesList.module.css +16 -0
- package/dist/cjs/components/PrerequisitesList/PrerequisitesListContext.d.ts +11 -0
- package/dist/cjs/components/PrerequisitesList/PrerequisitesListContext.d.ts.map +1 -0
- package/dist/cjs/components/PrerequisitesList/PrerequisitesListContext.js +24 -0
- package/dist/cjs/components/PrerequisitesList/PrerequisitesListContext.js.map +1 -0
- package/dist/cjs/components/PrerequisitesList/PrerequisitesListIcon.d.ts +9 -0
- package/dist/cjs/components/PrerequisitesList/PrerequisitesListIcon.d.ts.map +1 -0
- package/dist/cjs/components/PrerequisitesList/PrerequisitesListIcon.js +52 -0
- package/dist/cjs/components/PrerequisitesList/PrerequisitesListIcon.js.map +1 -0
- package/dist/cjs/components/PrerequisitesList/PrerequisitesListItem.d.ts +23 -0
- package/dist/cjs/components/PrerequisitesList/PrerequisitesListItem.d.ts.map +1 -0
- package/dist/cjs/components/PrerequisitesList/PrerequisitesListItem.js +55 -0
- package/dist/cjs/components/PrerequisitesList/PrerequisitesListItem.js.map +1 -0
- package/dist/cjs/components/RadioCard/RadioCard.js +1 -1
- package/dist/cjs/components/RadioCard/RadioCard.js.map +1 -1
- package/dist/cjs/components/Table/table-columns-selector/TableColumnsSelector.js +1 -1
- package/dist/cjs/components/Table/table-columns-selector/TableColumnsSelector.js.map +1 -1
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/styles/Chip.module.css +13 -6
- package/dist/cjs/styles/NavLink.module.css +1 -1
- package/dist/cjs/styles/Pagination.module.css +2 -2
- package/dist/cjs/styles/Slider.module.css +1 -1
- package/dist/cjs/theme/Theme.d.ts.map +1 -1
- package/dist/cjs/theme/Theme.js +5 -2
- package/dist/cjs/theme/Theme.js.map +1 -1
- package/dist/esm/components/Badge/Badge.js +2 -2
- package/dist/esm/components/Badge/Badge.js.map +1 -1
- package/dist/esm/components/BrowserPreview/BrowserPreview.d.ts +4 -1
- package/dist/esm/components/BrowserPreview/BrowserPreview.d.ts.map +1 -1
- package/dist/esm/components/BrowserPreview/BrowserPreview.js +14 -27
- package/dist/esm/components/BrowserPreview/BrowserPreview.js.map +1 -1
- package/dist/esm/components/Chip/Chip.d.ts +1 -11
- package/dist/esm/components/Chip/Chip.d.ts.map +1 -1
- package/dist/esm/components/Chip/Chip.js +3 -7
- package/dist/esm/components/Chip/Chip.js.map +1 -1
- package/dist/esm/components/DateRangePicker/DateRangePicker.d.ts +1 -1
- package/dist/esm/components/DateRangePicker/DateRangePicker.d.ts.map +1 -1
- package/dist/esm/components/DateRangePicker/DateRangePicker.js +2 -2
- package/dist/esm/components/DateRangePicker/DateRangePicker.js.map +1 -1
- package/dist/esm/components/DateRangePicker/EditableDateRangePicker.d.ts +1 -1
- package/dist/esm/components/DateRangePicker/EditableDateRangePicker.d.ts.map +1 -1
- package/dist/esm/components/DateRangePicker/EditableDateRangePicker.js.map +1 -1
- package/dist/esm/components/PrerequisitesList/PrerequisitesList.d.ts +30 -0
- package/dist/esm/components/PrerequisitesList/PrerequisitesList.d.ts.map +1 -0
- package/dist/esm/components/PrerequisitesList/PrerequisitesList.js +40 -0
- package/dist/esm/components/PrerequisitesList/PrerequisitesList.js.map +1 -0
- package/dist/esm/components/PrerequisitesList/PrerequisitesList.module.css +16 -0
- package/dist/esm/components/PrerequisitesList/PrerequisitesListContext.d.ts +11 -0
- package/dist/esm/components/PrerequisitesList/PrerequisitesListContext.d.ts.map +1 -0
- package/dist/esm/components/PrerequisitesList/PrerequisitesListContext.js +4 -0
- package/dist/esm/components/PrerequisitesList/PrerequisitesListContext.js.map +1 -0
- package/dist/esm/components/PrerequisitesList/PrerequisitesListIcon.d.ts +9 -0
- package/dist/esm/components/PrerequisitesList/PrerequisitesListIcon.d.ts.map +1 -0
- package/dist/esm/components/PrerequisitesList/PrerequisitesListIcon.js +36 -0
- package/dist/esm/components/PrerequisitesList/PrerequisitesListIcon.js.map +1 -0
- package/dist/esm/components/PrerequisitesList/PrerequisitesListItem.d.ts +23 -0
- package/dist/esm/components/PrerequisitesList/PrerequisitesListItem.d.ts.map +1 -0
- package/dist/esm/components/PrerequisitesList/PrerequisitesListItem.js +35 -0
- package/dist/esm/components/PrerequisitesList/PrerequisitesListItem.js.map +1 -0
- package/dist/esm/components/RadioCard/RadioCard.js +1 -1
- package/dist/esm/components/RadioCard/RadioCard.js.map +1 -1
- package/dist/esm/components/Table/table-columns-selector/TableColumnsSelector.js +1 -1
- package/dist/esm/components/Table/table-columns-selector/TableColumnsSelector.js.map +1 -1
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/styles/Chip.module.css +13 -6
- package/dist/esm/styles/NavLink.module.css +1 -1
- package/dist/esm/styles/Pagination.module.css +2 -2
- package/dist/esm/styles/Slider.module.css +1 -1
- package/dist/esm/theme/Theme.d.ts.map +1 -1
- package/dist/esm/theme/Theme.js +5 -2
- package/dist/esm/theme/Theme.js.map +1 -1
- package/package.json +3 -3
- package/src/components/Badge/Badge.tsx +2 -2
- package/src/components/BrowserPreview/BrowserPreview.tsx +11 -16
- package/src/components/BrowserPreview/__tests__/BrowserPreview.spec.tsx +3 -3
- package/src/components/Chip/Chip.tsx +3 -3
- package/src/components/DateRangePicker/DateRangePicker.tsx +2 -2
- package/src/components/DateRangePicker/EditableDateRangePicker.tsx +1 -1
- package/src/components/PrerequisitesList/PrerequisitesList.module.css +16 -0
- package/src/components/PrerequisitesList/PrerequisitesList.tsx +60 -0
- package/src/components/PrerequisitesList/PrerequisitesListContext.tsx +10 -0
- package/src/components/PrerequisitesList/PrerequisitesListIcon.tsx +36 -0
- package/src/components/PrerequisitesList/PrerequisitesListItem.tsx +48 -0
- package/src/components/PrerequisitesList/__tests__/PrerequisitesList.spec.tsx +24 -0
- package/src/components/RadioCard/RadioCard.tsx +1 -1
- package/src/components/Table/table-columns-selector/TableColumnsSelector.tsx +1 -1
- package/src/index.ts +3 -0
- package/src/styles/Chip.module.css +13 -6
- package/src/styles/NavLink.module.css +1 -1
- package/src/styles/Pagination.module.css +2 -2
- package/src/styles/Slider.module.css +1 -1
- package/src/theme/Theme.tsx +4 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/PrerequisitesList/PrerequisitesListIcon.tsx"],"sourcesContent":["import {IconCircleCheckFilled, IconCircleDotFilled, TablerIcon} from '@coveord/plasma-react-icons';\nimport {Box, BoxProps, ElementProps, MantineColor, useProps} from '@mantine/core';\nimport {forwardRef} from 'react';\nimport {usePrerequisitesListContext} from './PrerequisitesListContext.js';\n\nexport type PrerequisitesListIconStylesNames = 'icon';\nexport type PrerequisitesListIconVariant = 'complete' | 'incomplete';\n\ninterface PrerequisitesListIconProps extends BoxProps, ElementProps<'div'> {\n variant: PrerequisitesListIconVariant;\n}\n\nconst defaultProps = {} satisfies Partial<PrerequisitesListIconProps>;\n\nconst iconMapping = {\n complete: IconCircleCheckFilled,\n incomplete: IconCircleDotFilled,\n} satisfies Record<PrerequisitesListIconVariant, TablerIcon>;\n\nconst colorMapping = {\n complete: 'green',\n incomplete: 'var(--mantine-color-placeholder)',\n} satisfies Record<PrerequisitesListIconVariant, MantineColor>;\n\nexport const PrerequisitesListIcon = forwardRef<HTMLDivElement, PrerequisitesListIconProps>((_props, ref) => {\n const props = useProps('PrerequisitesListIcon', defaultProps, _props);\n const {className, style, variant, ...others} = props;\n const ctx = usePrerequisitesListContext();\n const IconComponent = iconMapping[variant];\n\n return (\n <Box ref={ref} {...ctx.getStyles('icon', {className, style})} {...others} c={colorMapping[variant]}>\n <IconComponent size={24} role=\"img\" aria-label={variant} />\n </Box>\n );\n});\n"],"names":["PrerequisitesListIcon","defaultProps","iconMapping","complete","IconCircleCheckFilled","incomplete","IconCircleDotFilled","colorMapping","forwardRef","_props","ref","props","useProps","className","style","variant","others","ctx","usePrerequisitesListContext","IconComponent","Box","getStyles","c","size","role","aria-label"],"mappings":";;;;+BAwBaA;;;eAAAA;;;;;;;gCAxBwD;oBACH;qBACzC;wCACiB;AAS1C,IAAMC,eAAe,CAAC;AAEtB,IAAMC,cAAc;IAChBC,UAAUC,uCAAqB;IAC/BC,YAAYC,qCAAmB;AACnC;AAEA,IAAMC,eAAe;IACjBJ,UAAU;IACVE,YAAY;AAChB;AAEO,IAAML,sCAAwBQ,IAAAA,iBAAU,EAA6C,SAACC,QAAQC;IACjG,IAAMC,QAAQC,IAAAA,cAAQ,EAAC,yBAAyBX,cAAcQ;IAC9D,IAAOI,YAAwCF,MAAxCE,WAAWC,QAA6BH,MAA7BG,OAAOC,UAAsBJ,MAAtBI,SAAYC,sCAAUL;;;;;IAC/C,IAAMM,MAAMC,IAAAA,qDAA2B;IACvC,IAAMC,gBAAgBjB,WAAW,CAACa,QAAQ;IAE1C,qBACI,qBAACK,SAAG;QAACV,KAAKA;OAASO,IAAII,SAAS,CAAC,QAAQ;QAACR,WAAAA;QAAWC,OAAAA;IAAK,IAAQE;QAAQM,GAAGf,YAAY,CAACQ,QAAQ;kBAC9F,cAAA,qBAACI;YAAcI,MAAM;YAAIC,MAAK;YAAMC,cAAYV;;;AAG5D"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Factory, ListItemProps, StylesApiProps } from '@mantine/core';
|
|
2
|
+
import { type PrerequisitesListIconVariant } from './PrerequisitesListIcon.js';
|
|
3
|
+
export type PrerequisitesListItemStylesNames = 'item' | 'itemIcon';
|
|
4
|
+
export type PrerequisitesListItemStatus = PrerequisitesListIconVariant;
|
|
5
|
+
interface PrerequisitesListItemProps extends Omit<ListItemProps, 'classNames' | 'styles' | 'vars'>, StylesApiProps<PrerequisitesListItemFactory> {
|
|
6
|
+
status: PrerequisitesListItemStatus;
|
|
7
|
+
label: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
}
|
|
10
|
+
type PrerequisitesListItemFactory = Factory<{
|
|
11
|
+
props: PrerequisitesListItemProps;
|
|
12
|
+
ref: HTMLLIElement;
|
|
13
|
+
vars: never;
|
|
14
|
+
compound: true;
|
|
15
|
+
}>;
|
|
16
|
+
export declare const PrerequisitesListItem: import("@mantine/core").MantineComponent<{
|
|
17
|
+
props: PrerequisitesListItemProps;
|
|
18
|
+
ref: HTMLLIElement;
|
|
19
|
+
vars: never;
|
|
20
|
+
compound: true;
|
|
21
|
+
}>;
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=PrerequisitesListItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PrerequisitesListItem.d.ts","sourceRoot":"","sources":["../../../../src/components/PrerequisitesList/PrerequisitesListItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,OAAO,EAAQ,aAAa,EAAE,cAAc,EAAiB,MAAM,eAAe,CAAC;AAEpG,OAAO,EAAwB,KAAK,4BAA4B,EAAC,MAAM,4BAA4B,CAAC;AAEpG,MAAM,MAAM,gCAAgC,GAAG,MAAM,GAAG,UAAU,CAAC;AAEnE,MAAM,MAAM,2BAA2B,GAAG,4BAA4B,CAAC;AAEvE,UAAU,0BACN,SAAQ,IAAI,CAAC,aAAa,EAAE,YAAY,GAAG,QAAQ,GAAG,MAAM,CAAC,EAAE,cAAc,CAAC,4BAA4B,CAAC;IAC3G,MAAM,EAAE,2BAA2B,CAAC;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,KAAK,4BAA4B,GAAG,OAAO,CAAC;IACxC,KAAK,EAAE,0BAA0B,CAAC;IAClC,GAAG,EAAE,aAAa,CAAC;IACnB,IAAI,EAAE,KAAK,CAAC;IACZ,QAAQ,EAAE,IAAI,CAAC;CAClB,CAAC,CAAC;AAIH,eAAO,MAAM,qBAAqB;WARvB,0BAA0B;SAC5B,aAAa;UACZ,KAAK;cACD,IAAI;EA0BhB,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "PrerequisitesListItem", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return PrerequisitesListItem;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
var _object_spread = require("@swc/helpers/_/_object_spread");
|
|
12
|
+
var _object_spread_props = require("@swc/helpers/_/_object_spread_props");
|
|
13
|
+
var _object_without_properties = require("@swc/helpers/_/_object_without_properties");
|
|
14
|
+
var _jsxruntime = require("react/jsx-runtime");
|
|
15
|
+
var _core = require("@mantine/core");
|
|
16
|
+
var _PrerequisitesListContext = require("./PrerequisitesListContext.js");
|
|
17
|
+
var _PrerequisitesListIcon = require("./PrerequisitesListIcon.js");
|
|
18
|
+
var defaultProps = {};
|
|
19
|
+
var PrerequisitesListItem = (0, _core.factory)(function(_props, ref) {
|
|
20
|
+
var props = (0, _core.useProps)('PrerequisitesListItem', defaultProps, _props);
|
|
21
|
+
var className = props.className, style = props.style, label = props.label, description = props.description, status = props.status, _vars = props.vars, others = _object_without_properties._(props, [
|
|
22
|
+
"className",
|
|
23
|
+
"style",
|
|
24
|
+
"label",
|
|
25
|
+
"description",
|
|
26
|
+
"status",
|
|
27
|
+
"vars"
|
|
28
|
+
]);
|
|
29
|
+
var ctx = (0, _PrerequisitesListContext.usePrerequisitesListContext)();
|
|
30
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_core.List.Item, _object_spread_props._(_object_spread._(_object_spread_props._(_object_spread._({
|
|
31
|
+
ref: ref
|
|
32
|
+
}, ctx.getStyles('item', {
|
|
33
|
+
className: className,
|
|
34
|
+
style: style
|
|
35
|
+
})), {
|
|
36
|
+
icon: /*#__PURE__*/ (0, _jsxruntime.jsx)(_PrerequisitesListIcon.PrerequisitesListIcon, {
|
|
37
|
+
variant: status
|
|
38
|
+
}),
|
|
39
|
+
mod: {
|
|
40
|
+
state: status
|
|
41
|
+
}
|
|
42
|
+
}), others), {
|
|
43
|
+
children: [
|
|
44
|
+
label,
|
|
45
|
+
description && /*#__PURE__*/ (0, _jsxruntime.jsx)(_core.Text, {
|
|
46
|
+
fz: "xs",
|
|
47
|
+
c: "dimmed",
|
|
48
|
+
children: description
|
|
49
|
+
})
|
|
50
|
+
]
|
|
51
|
+
}));
|
|
52
|
+
});
|
|
53
|
+
PrerequisitesListItem.displayName = 'PrerequisitesList.Item';
|
|
54
|
+
|
|
55
|
+
//# sourceMappingURL=PrerequisitesListItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/PrerequisitesList/PrerequisitesListItem.tsx"],"sourcesContent":["import {factory, Factory, List, ListItemProps, StylesApiProps, Text, useProps} from '@mantine/core';\nimport {usePrerequisitesListContext} from './PrerequisitesListContext.js';\nimport {PrerequisitesListIcon, type PrerequisitesListIconVariant} from './PrerequisitesListIcon.js';\n\nexport type PrerequisitesListItemStylesNames = 'item' | 'itemIcon';\n\nexport type PrerequisitesListItemStatus = PrerequisitesListIconVariant;\n\ninterface PrerequisitesListItemProps\n extends Omit<ListItemProps, 'classNames' | 'styles' | 'vars'>, StylesApiProps<PrerequisitesListItemFactory> {\n status: PrerequisitesListItemStatus;\n label: string;\n description?: string;\n}\n\ntype PrerequisitesListItemFactory = Factory<{\n props: PrerequisitesListItemProps;\n ref: HTMLLIElement;\n vars: never;\n compound: true;\n}>;\n\nconst defaultProps = {} satisfies Partial<PrerequisitesListItemProps>;\n\nexport const PrerequisitesListItem = factory<PrerequisitesListItemFactory>((_props, ref) => {\n const props = useProps('PrerequisitesListItem', defaultProps, _props);\n const {className, style, label, description, status, vars: _vars, ...others} = props;\n const ctx = usePrerequisitesListContext();\n\n return (\n <List.Item\n ref={ref}\n {...ctx.getStyles('item', {className, style})}\n icon={<PrerequisitesListIcon variant={status} />}\n mod={{state: status}}\n {...others}\n >\n {label}\n {description && (\n <Text fz=\"xs\" c=\"dimmed\">\n {description}\n </Text>\n )}\n </List.Item>\n );\n});\n\nPrerequisitesListItem.displayName = 'PrerequisitesList.Item';\n"],"names":["PrerequisitesListItem","defaultProps","factory","_props","ref","props","useProps","className","style","label","description","status","vars","_vars","others","ctx","usePrerequisitesListContext","List","Item","getStyles","icon","PrerequisitesListIcon","variant","mod","state","Text","fz","c","displayName"],"mappings":";;;;+BAwBaA;;;eAAAA;;;;;;;oBAxBuE;wCAC1C;qCAC6B;AAoBvE,IAAMC,eAAe,CAAC;AAEf,IAAMD,wBAAwBE,IAAAA,aAAO,EAA+B,SAACC,QAAQC;IAChF,IAAMC,QAAQC,IAAAA,cAAQ,EAAC,yBAAyBL,cAAcE;IAC9D,IAAOI,YAAwEF,MAAxEE,WAAWC,QAA6DH,MAA7DG,OAAOC,QAAsDJ,MAAtDI,OAAOC,cAA+CL,MAA/CK,aAAaC,SAAkCN,MAAlCM,QAAQC,AAAMC,QAAoBR,MAA1BO,MAAgBE,sCAAUT;;;;;;;;IAC/E,IAAMU,MAAMC,IAAAA,qDAA2B;IAEvC,qBACI,sBAACC,UAAI,CAACC,IAAI;QACNd,KAAKA;OACDW,IAAII,SAAS,CAAC,QAAQ;QAACZ,WAAAA;QAAWC,OAAAA;IAAK;QAC3CY,oBAAM,qBAACC,4CAAqB;YAACC,SAASX;;QACtCY,KAAK;YAACC,OAAOb;QAAM;QACfG;;YAEHL;YACAC,6BACG,qBAACe,UAAI;gBAACC,IAAG;gBAAKC,GAAE;0BACXjB;;;;AAKrB;AAEAV,sBAAsB4B,WAAW,GAAG"}
|
|
@@ -15,7 +15,7 @@ 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 _RadioCardmodulecss = /*#__PURE__*/ _interop_require_default._(require("../../styles/RadioCard.module.css"));
|
|
18
|
-
var _Input = require("../Input/Input");
|
|
18
|
+
var _Input = require("../Input/Input.js");
|
|
19
19
|
var defaultProps = {};
|
|
20
20
|
var RadioCard = (0, _core.factory)(function(_props, ref) {
|
|
21
21
|
var _useProps = (0, _core.useProps)('RadioCard', defaultProps, _props), children = _useProps.children, classNames = _useProps.classNames, styles = _useProps.styles, style = _useProps.style, className = _useProps.className, vars = _useProps.vars, disabled = _useProps.disabled, label = _useProps.label, description = _useProps.description, disabledTooltip = _useProps.disabledTooltip, others = _object_without_properties._(_useProps, [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/RadioCard/RadioCard.tsx"],"sourcesContent":["import {\n Factory,\n RadioCardProps as MantineRadioCardProps,\n RadioCardStylesNames as MantineRadioCardStylesNames,\n Radio,\n RadioCardCssVariables,\n Stack,\n StylesApiProps,\n Tooltip,\n factory,\n useProps,\n useStyles,\n} from '@mantine/core';\nimport {ReactNode} from 'react';\nimport classes from '../../styles/RadioCard.module.css';\nimport {Input} from '../Input/Input';\n\nexport type RadioCardStylesNames = MantineRadioCardStylesNames | 'container' | 'indicator' | 'title' | 'description';\nexport type RadioCardFactory = Factory<{\n props: RadioCardProps;\n ref: HTMLButtonElement;\n stylesNames: RadioCardStylesNames;\n vars: RadioCardCssVariables;\n}>;\n\nexport type RadioCardProps = MantineRadioCardProps &\n StylesApiProps<RadioCardFactory> & {\n /**\n * The label of the card. Appears next to the radio indicator.\n */\n label: ReactNode;\n /**\n * The description of the card. Appears under the title.\n */\n description?: ReactNode;\n /**\n * If true, the radio card will be displayed in a read-only state.\n */\n readOnly?: boolean;\n /**\n * The tooltip message to display when disabled\n */\n disabledTooltip?: string;\n };\n\nconst defaultProps: Partial<RadioCardProps> = {};\n\nexport const RadioCard = factory<RadioCardFactory>((_props, ref) => {\n const {\n children,\n classNames,\n styles,\n style,\n className,\n vars,\n disabled,\n label,\n description,\n disabledTooltip,\n ...others\n } = useProps('RadioCard', defaultProps, _props);\n const getStyles = useStyles<RadioCardFactory>({\n name: 'RadioCard',\n classes,\n vars,\n classNames,\n className,\n style,\n props: _props,\n styles,\n });\n\n return (\n <Tooltip label={disabledTooltip} disabled={!disabled || !disabledTooltip}>\n <Radio.Card\n ref={ref}\n disabled={disabled}\n readOnly={_props.readOnly}\n {...getStyles('card', {className, style, classNames, styles})}\n {...others}\n >\n <Radio.Indicator disabled={disabled} {...getStyles('indicator', {classNames, styles})} />\n <Stack {...getStyles('container', {classNames, styles})}>\n <Input.Label {...getStyles('title', {classNames, styles})}>{label}</Input.Label>\n {description && (\n <Input.Description {...getStyles('description', {classNames, styles})}>\n {description}\n </Input.Description>\n )}\n {children}\n </Stack>\n </Radio.Card>\n </Tooltip>\n );\n});\nRadioCard.displayName = 'RadioCard';\n"],"names":["RadioCard","defaultProps","factory","_props","ref","useProps","children","classNames","styles","style","className","vars","disabled","label","description","disabledTooltip","others","getStyles","useStyles","name","classes","props","Tooltip","Radio","Card","readOnly","Indicator","Stack","Input","Label","Description","displayName"],"mappings":";;;;+BA+CaA;;;eAAAA;;;;;;;;oBAnCN;2EAEa;qBACA;AA8BpB,IAAMC,eAAwC,CAAC;AAExC,IAAMD,YAAYE,IAAAA,aAAO,EAAmB,SAACC,QAAQC;IACxD,IAYIC,YAAAA,IAAAA,cAAQ,EAAC,aAAaJ,cAAcE,SAXpCG,WAWAD,UAXAC,UACAC,aAUAF,UAVAE,YACAC,SASAH,UATAG,QACAC,QAQAJ,UARAI,OACAC,YAOAL,UAPAK,WACAC,OAMAN,UANAM,MACAC,WAKAP,UALAO,UACAC,QAIAR,UAJAQ,OACAC,cAGAT,UAHAS,aACAC,kBAEAV,UAFAU,iBACGC,sCACHX;;;;;;;;;;;;IACJ,IAAMY,YAAYC,IAAAA,eAAS,EAAmB;QAC1CC,MAAM;QACNC,SAAAA,2BAAO;QACPT,MAAAA;QACAJ,YAAAA;QACAG,WAAAA;QACAD,OAAAA;QACAY,OAAOlB;QACPK,QAAAA;IACJ;IAEA,qBACI,qBAACc,aAAO;QAACT,OAAOE;QAAiBH,UAAU,CAACA,YAAY,CAACG;kBACrD,cAAA,sBAACQ,WAAK,CAACC,IAAI;YACPpB,KAAKA;YACLQ,UAAUA;YACVa,UAAUtB,OAAOsB,QAAQ;WACrBR,UAAU,QAAQ;YAACP,WAAAA;YAAWD,OAAAA;YAAOF,YAAAA;YAAYC,QAAAA;QAAM,IACvDQ;;8BAEJ,qBAACO,WAAK,CAACG,SAAS;oBAACd,UAAUA;mBAAcK,UAAU,aAAa;oBAACV,YAAAA;oBAAYC,QAAAA;gBAAM;8BACnF,sBAACmB,WAAK,8CAAKV,UAAU,aAAa;oBAACV,YAAAA;oBAAYC,QAAAA;gBAAM;;sCACjD,qBAACoB,YAAK,CAACC,KAAK,8CAAKZ,UAAU,SAAS;4BAACV,YAAAA;4BAAYC,QAAAA;wBAAM;sCAAKK;;wBAC3DC,6BACG,qBAACc,YAAK,CAACE,WAAW,8CAAKb,UAAU,eAAe;4BAACV,YAAAA;4BAAYC,QAAAA;wBAAM;sCAC9DM;;wBAGRR;;;;;;AAKrB;AACAN,UAAU+B,WAAW,GAAG"}
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/RadioCard/RadioCard.tsx"],"sourcesContent":["import {\n Factory,\n RadioCardProps as MantineRadioCardProps,\n RadioCardStylesNames as MantineRadioCardStylesNames,\n Radio,\n RadioCardCssVariables,\n Stack,\n StylesApiProps,\n Tooltip,\n factory,\n useProps,\n useStyles,\n} from '@mantine/core';\nimport {ReactNode} from 'react';\nimport classes from '../../styles/RadioCard.module.css';\nimport {Input} from '../Input/Input.js';\n\nexport type RadioCardStylesNames = MantineRadioCardStylesNames | 'container' | 'indicator' | 'title' | 'description';\nexport type RadioCardFactory = Factory<{\n props: RadioCardProps;\n ref: HTMLButtonElement;\n stylesNames: RadioCardStylesNames;\n vars: RadioCardCssVariables;\n}>;\n\nexport type RadioCardProps = MantineRadioCardProps &\n StylesApiProps<RadioCardFactory> & {\n /**\n * The label of the card. Appears next to the radio indicator.\n */\n label: ReactNode;\n /**\n * The description of the card. Appears under the title.\n */\n description?: ReactNode;\n /**\n * If true, the radio card will be displayed in a read-only state.\n */\n readOnly?: boolean;\n /**\n * The tooltip message to display when disabled\n */\n disabledTooltip?: string;\n };\n\nconst defaultProps: Partial<RadioCardProps> = {};\n\nexport const RadioCard = factory<RadioCardFactory>((_props, ref) => {\n const {\n children,\n classNames,\n styles,\n style,\n className,\n vars,\n disabled,\n label,\n description,\n disabledTooltip,\n ...others\n } = useProps('RadioCard', defaultProps, _props);\n const getStyles = useStyles<RadioCardFactory>({\n name: 'RadioCard',\n classes,\n vars,\n classNames,\n className,\n style,\n props: _props,\n styles,\n });\n\n return (\n <Tooltip label={disabledTooltip} disabled={!disabled || !disabledTooltip}>\n <Radio.Card\n ref={ref}\n disabled={disabled}\n readOnly={_props.readOnly}\n {...getStyles('card', {className, style, classNames, styles})}\n {...others}\n >\n <Radio.Indicator disabled={disabled} {...getStyles('indicator', {classNames, styles})} />\n <Stack {...getStyles('container', {classNames, styles})}>\n <Input.Label {...getStyles('title', {classNames, styles})}>{label}</Input.Label>\n {description && (\n <Input.Description {...getStyles('description', {classNames, styles})}>\n {description}\n </Input.Description>\n )}\n {children}\n </Stack>\n </Radio.Card>\n </Tooltip>\n );\n});\nRadioCard.displayName = 'RadioCard';\n"],"names":["RadioCard","defaultProps","factory","_props","ref","useProps","children","classNames","styles","style","className","vars","disabled","label","description","disabledTooltip","others","getStyles","useStyles","name","classes","props","Tooltip","Radio","Card","readOnly","Indicator","Stack","Input","Label","Description","displayName"],"mappings":";;;;+BA+CaA;;;eAAAA;;;;;;;;oBAnCN;2EAEa;qBACA;AA8BpB,IAAMC,eAAwC,CAAC;AAExC,IAAMD,YAAYE,IAAAA,aAAO,EAAmB,SAACC,QAAQC;IACxD,IAYIC,YAAAA,IAAAA,cAAQ,EAAC,aAAaJ,cAAcE,SAXpCG,WAWAD,UAXAC,UACAC,aAUAF,UAVAE,YACAC,SASAH,UATAG,QACAC,QAQAJ,UARAI,OACAC,YAOAL,UAPAK,WACAC,OAMAN,UANAM,MACAC,WAKAP,UALAO,UACAC,QAIAR,UAJAQ,OACAC,cAGAT,UAHAS,aACAC,kBAEAV,UAFAU,iBACGC,sCACHX;;;;;;;;;;;;IACJ,IAAMY,YAAYC,IAAAA,eAAS,EAAmB;QAC1CC,MAAM;QACNC,SAAAA,2BAAO;QACPT,MAAAA;QACAJ,YAAAA;QACAG,WAAAA;QACAD,OAAAA;QACAY,OAAOlB;QACPK,QAAAA;IACJ;IAEA,qBACI,qBAACc,aAAO;QAACT,OAAOE;QAAiBH,UAAU,CAACA,YAAY,CAACG;kBACrD,cAAA,sBAACQ,WAAK,CAACC,IAAI;YACPpB,KAAKA;YACLQ,UAAUA;YACVa,UAAUtB,OAAOsB,QAAQ;WACrBR,UAAU,QAAQ;YAACP,WAAAA;YAAWD,OAAAA;YAAOF,YAAAA;YAAYC,QAAAA;QAAM,IACvDQ;;8BAEJ,qBAACO,WAAK,CAACG,SAAS;oBAACd,UAAUA;mBAAcK,UAAU,aAAa;oBAACV,YAAAA;oBAAYC,QAAAA;gBAAM;8BACnF,sBAACmB,WAAK,8CAAKV,UAAU,aAAa;oBAACV,YAAAA;oBAAYC,QAAAA;gBAAM;;sCACjD,qBAACoB,YAAK,CAACC,KAAK,8CAAKZ,UAAU,SAAS;4BAACV,YAAAA;4BAAYC,QAAAA;wBAAM;sCAAKK;;wBAC3DC,6BACG,qBAACc,YAAK,CAACE,WAAW,8CAAKb,UAAU,eAAe;4BAACV,YAAAA;4BAAYC,QAAAA;wBAAM;sCAC9DM;;wBAGRR;;;;;;AAKrB;AACAN,UAAU+B,WAAW,GAAG"}
|
|
@@ -13,7 +13,7 @@ var _jsxruntime = require("react/jsx-runtime");
|
|
|
13
13
|
var _plasmareacticons = require("@coveord/plasma-react-icons");
|
|
14
14
|
var _core = require("@mantine/core");
|
|
15
15
|
var _reacttable = require("@tanstack/react-table");
|
|
16
|
-
var _ActionIcon = require("../../ActionIcon/ActionIcon");
|
|
16
|
+
var _ActionIcon = require("../../ActionIcon/ActionIcon.js");
|
|
17
17
|
var DEFAULT_OPTIONS = {
|
|
18
18
|
footer: function footer(max) {
|
|
19
19
|
return "You can display up to ".concat(max, " columns.");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/components/Table/table-columns-selector/TableColumnsSelector.tsx"],"sourcesContent":["import {IconSettings} from '@coveord/plasma-react-icons';\nimport {Checkbox, Divider, Popover, ScrollArea, Stack, Text, Tooltip} from '@mantine/core';\nimport {flexRender, Header, Table} from '@tanstack/react-table';\nimport {ActionIcon} from '../../ActionIcon/ActionIcon';\n\nexport interface TableColumnsSelectorOptions {\n /**\n * The maximum number of columns that can be selected at the same time.\n * If defined a footer will render with the remaining number of columns that can be selected.\n * Must be a positive integer (greater than 0).\n */\n maxSelectableColumns?: number;\n /**\n * The content to display in the footer when maxSelectableColumns is defined.\n * Can be a string or a function that receives the maxSelectableColumns value.\n * @default (max) => `You can display up to ${max} columns.`\n */\n footer?: string | ((maxSelectableColumns: number) => string);\n /**\n * The tooltip to display when the user hovers over a disabled checkbox because of the limit.\n * @default 'You have reached the maximum display limit.'\n */\n limitReachedTooltip?: string;\n /**\n * The tooltip to display when the user hovers over a disabled checkbox because a column cannot be hidden.\n * @default 'This column is always visible.'\n */\n alwaysVisibleTooltip?: string;\n}\n\nexport interface TableColumnsSelectorProps {\n table: Table<unknown>;\n options?: TableColumnsSelectorOptions;\n}\n\nconst DEFAULT_OPTIONS: Omit<TableColumnsSelectorOptions, 'footer'> & {\n footer: (maxSelectableColumns: number) => string;\n} = {\n footer: (max) => `You can display up to ${max} columns.`,\n limitReachedTooltip: 'You have reached the maximum display limit.',\n alwaysVisibleTooltip: 'This column is always visible.',\n};\n\nexport const TableColumnsSelector = ({table, options}: TableColumnsSelectorProps) => {\n const {maxSelectableColumns, footer, limitReachedTooltip, alwaysVisibleTooltip} = {\n ...DEFAULT_OPTIONS,\n ...options,\n };\n\n const allColumns = table.getAllLeafColumns();\n const filteredColumns = allColumns.filter((column) => !column.columnDef.meta?.controlColumn);\n const selectedColumnsCount = filteredColumns.filter((column) => column.getIsVisible()).length;\n\n // Validate maxSelectableColumns - must be a positive integer to be effective\n const effectiveMaxColumns =\n maxSelectableColumns !== undefined && maxSelectableColumns > 0 ? maxSelectableColumns : undefined;\n\n if (filteredColumns.length <= 0) {\n return null;\n }\n\n const getColumnState = (column: (typeof filteredColumns)[number]) => {\n const alwaysVisible = !column.getCanHide();\n const isDisabled =\n (effectiveMaxColumns !== undefined &&\n selectedColumnsCount >= effectiveMaxColumns &&\n !column.getIsVisible()) ||\n alwaysVisible;\n const isVisible = column.getIsVisible() || alwaysVisible;\n return {alwaysVisible, isDisabled, isVisible};\n };\n\n const columnOptions = filteredColumns.map((column) => {\n const {alwaysVisible, isDisabled, isVisible} = getColumnState(column);\n\n return (\n <Tooltip\n label={alwaysVisible ? alwaysVisibleTooltip : limitReachedTooltip}\n disabled={!isDisabled}\n position=\"left\"\n key={column.id}\n >\n <div>\n <Checkbox\n label={flexRender(column.columnDef.header, {\n table,\n column,\n header: {column} as Header<unknown, unknown>,\n })}\n name={column.id}\n checked={isVisible}\n disabled={isDisabled}\n onChange={column.getToggleVisibilityHandler()}\n />\n </div>\n </Tooltip>\n );\n });\n\n return (\n <Popover position=\"bottom-end\" shadow=\"md\">\n <Popover.Target>\n <Tooltip label=\"Edit columns\">\n <ActionIcon.Tertiary aria-label=\"settings\">\n <IconSettings height={16} />\n </ActionIcon.Tertiary>\n </Tooltip>\n </Popover.Target>\n <Popover.Dropdown miw={270} pb=\"xs\">\n <ScrollArea.Autosize mah={200} type=\"auto\">\n <Stack gap=\"xs\">{columnOptions}</Stack>\n </ScrollArea.Autosize>\n {effectiveMaxColumns && (\n <>\n <Divider my=\"xs\" mx=\"-sm\" />\n <Text size=\"sm\" c=\"dimmed\">\n {typeof footer === 'function' ? footer(effectiveMaxColumns) : footer}\n </Text>\n </>\n )}\n </Popover.Dropdown>\n </Popover>\n );\n};\n"],"names":["TableColumnsSelector","DEFAULT_OPTIONS","footer","max","limitReachedTooltip","alwaysVisibleTooltip","table","options","maxSelectableColumns","allColumns","getAllLeafColumns","filteredColumns","filter","column","columnDef","meta","controlColumn","selectedColumnsCount","getIsVisible","length","effectiveMaxColumns","undefined","getColumnState","alwaysVisible","getCanHide","isDisabled","isVisible","columnOptions","map","Tooltip","label","disabled","position","div","Checkbox","flexRender","header","name","id","checked","onChange","getToggleVisibilityHandler","Popover","shadow","Target","ActionIcon","Tertiary","aria-label","IconSettings","height","Dropdown","miw","pb","ScrollArea","Autosize","mah","type","Stack","gap","Divider","my","mx","Text","size","c"],"mappings":";;;;+BA2CaA;;;eAAAA;;;;;gCA3Cc;oBACgD;0BACnC;0BACf;AAgCzB,IAAMC,kBAEF;IACAC,QAAQ,SAARA,OAASC;eAAQ,AAAC,yBAA4B,OAAJA,KAAI;;IAC9CC,qBAAqB;IACrBC,sBAAsB;AAC1B;AAEO,IAAML,uBAAuB;QAAEM,cAAAA,OAAOC,gBAAAA;IACzC,IAAkF,mBAAA,qBAC3EN,iBACAM,UAFAC,uBAA2E,iBAA3EA,sBAAsBN,SAAqD,iBAArDA,QAAQE,sBAA6C,iBAA7CA,qBAAqBC,uBAAwB,iBAAxBA;IAK1D,IAAMI,aAAaH,MAAMI,iBAAiB;IAC1C,IAAMC,kBAAkBF,WAAWG,MAAM,CAAC,SAACC;YAAYA;eAAD,GAACA,yBAAAA,OAAOC,SAAS,CAACC,IAAI,cAArBF,6CAAAA,uBAAuBG,aAAa;;IAC3F,IAAMC,uBAAuBN,gBAAgBC,MAAM,CAAC,SAACC;eAAWA,OAAOK,YAAY;OAAIC,MAAM;IAE7F,6EAA6E;IAC7E,IAAMC,sBACFZ,yBAAyBa,aAAab,uBAAuB,IAAIA,uBAAuBa;IAE5F,IAAIV,gBAAgBQ,MAAM,IAAI,GAAG;QAC7B,OAAO;IACX;IAEA,IAAMG,iBAAiB,wBAACT;QACpB,IAAMU,gBAAgB,CAACV,OAAOW,UAAU;QACxC,IAAMC,aACF,AAACL,wBAAwBC,aACrBJ,wBAAwBG,uBACxB,CAACP,OAAOK,YAAY,MACxBK;QACJ,IAAMG,Y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;;;;;;;;AAO1F"}
|
|
1
|
+
{"version":3,"sources":["../../../../../src/components/Table/table-columns-selector/TableColumnsSelector.tsx"],"sourcesContent":["import {IconSettings} from '@coveord/plasma-react-icons';\nimport {Checkbox, Divider, Popover, ScrollArea, Stack, Text, Tooltip} from '@mantine/core';\nimport {flexRender, Header, Table} from '@tanstack/react-table';\nimport {ActionIcon} from '../../ActionIcon/ActionIcon.js';\n\nexport interface TableColumnsSelectorOptions {\n /**\n * The maximum number of columns that can be selected at the same time.\n * If defined a footer will render with the remaining number of columns that can be selected.\n * Must be a positive integer (greater than 0).\n */\n maxSelectableColumns?: number;\n /**\n * The content to display in the footer when maxSelectableColumns is defined.\n * Can be a string or a function that receives the maxSelectableColumns value.\n * @default (max) => `You can display up to ${max} columns.`\n */\n footer?: string | ((maxSelectableColumns: number) => string);\n /**\n * The tooltip to display when the user hovers over a disabled checkbox because of the limit.\n * @default 'You have reached the maximum display limit.'\n */\n limitReachedTooltip?: string;\n /**\n * The tooltip to display when the user hovers over a disabled checkbox because a column cannot be hidden.\n * @default 'This column is always visible.'\n */\n alwaysVisibleTooltip?: string;\n}\n\nexport interface TableColumnsSelectorProps {\n table: Table<unknown>;\n options?: TableColumnsSelectorOptions;\n}\n\nconst DEFAULT_OPTIONS: Omit<TableColumnsSelectorOptions, 'footer'> & {\n footer: (maxSelectableColumns: number) => string;\n} = {\n footer: (max) => `You can display up to ${max} columns.`,\n limitReachedTooltip: 'You have reached the maximum display limit.',\n alwaysVisibleTooltip: 'This column is always visible.',\n};\n\nexport const TableColumnsSelector = ({table, options}: TableColumnsSelectorProps) => {\n const {maxSelectableColumns, footer, limitReachedTooltip, alwaysVisibleTooltip} = {\n ...DEFAULT_OPTIONS,\n ...options,\n };\n\n const allColumns = table.getAllLeafColumns();\n const filteredColumns = allColumns.filter((column) => !column.columnDef.meta?.controlColumn);\n const selectedColumnsCount = filteredColumns.filter((column) => column.getIsVisible()).length;\n\n // Validate maxSelectableColumns - must be a positive integer to be effective\n const effectiveMaxColumns =\n maxSelectableColumns !== undefined && maxSelectableColumns > 0 ? maxSelectableColumns : undefined;\n\n if (filteredColumns.length <= 0) {\n return null;\n }\n\n const getColumnState = (column: (typeof filteredColumns)[number]) => {\n const alwaysVisible = !column.getCanHide();\n const isDisabled =\n (effectiveMaxColumns !== undefined &&\n selectedColumnsCount >= effectiveMaxColumns &&\n !column.getIsVisible()) ||\n alwaysVisible;\n const isVisible = column.getIsVisible() || alwaysVisible;\n return {alwaysVisible, isDisabled, isVisible};\n };\n\n const columnOptions = filteredColumns.map((column) => {\n const {alwaysVisible, isDisabled, isVisible} = getColumnState(column);\n\n return (\n <Tooltip\n label={alwaysVisible ? alwaysVisibleTooltip : limitReachedTooltip}\n disabled={!isDisabled}\n position=\"left\"\n key={column.id}\n >\n <div>\n <Checkbox\n label={flexRender(column.columnDef.header, {\n table,\n column,\n header: {column} as Header<unknown, unknown>,\n })}\n name={column.id}\n checked={isVisible}\n disabled={isDisabled}\n onChange={column.getToggleVisibilityHandler()}\n />\n </div>\n </Tooltip>\n );\n });\n\n return (\n <Popover position=\"bottom-end\" shadow=\"md\">\n <Popover.Target>\n <Tooltip label=\"Edit columns\">\n <ActionIcon.Tertiary aria-label=\"settings\">\n <IconSettings height={16} />\n </ActionIcon.Tertiary>\n </Tooltip>\n </Popover.Target>\n <Popover.Dropdown miw={270} pb=\"xs\">\n <ScrollArea.Autosize mah={200} type=\"auto\">\n <Stack gap=\"xs\">{columnOptions}</Stack>\n </ScrollArea.Autosize>\n {effectiveMaxColumns && (\n <>\n <Divider my=\"xs\" mx=\"-sm\" />\n <Text size=\"sm\" c=\"dimmed\">\n {typeof footer === 'function' ? footer(effectiveMaxColumns) : footer}\n </Text>\n </>\n )}\n </Popover.Dropdown>\n </Popover>\n );\n};\n"],"names":["TableColumnsSelector","DEFAULT_OPTIONS","footer","max","limitReachedTooltip","alwaysVisibleTooltip","table","options","maxSelectableColumns","allColumns","getAllLeafColumns","filteredColumns","filter","column","columnDef","meta","controlColumn","selectedColumnsCount","getIsVisible","length","effectiveMaxColumns","undefined","getColumnState","alwaysVisible","getCanHide","isDisabled","isVisible","columnOptions","map","Tooltip","label","disabled","position","div","Checkbox","flexRender","header","name","id","checked","onChange","getToggleVisibilityHandler","Popover","shadow","Target","ActionIcon","Tertiary","aria-label","IconSettings","height","Dropdown","miw","pb","ScrollArea","Autosize","mah","type","Stack","gap","Divider","my","mx","Text","size","c"],"mappings":";;;;+BA2CaA;;;eAAAA;;;;;gCA3Cc;oBACgD;0BACnC;0BACf;AAgCzB,IAAMC,kBAEF;IACAC,QAAQ,SAARA,OAASC;eAAQ,AAAC,yBAA4B,OAAJA,KAAI;;IAC9CC,qBAAqB;IACrBC,sBAAsB;AAC1B;AAEO,IAAML,uBAAuB;QAAEM,cAAAA,OAAOC,gBAAAA;IACzC,IAAkF,mBAAA,qBAC3EN,iBACAM,UAFAC,uBAA2E,iBAA3EA,sBAAsBN,SAAqD,iBAArDA,QAAQE,sBAA6C,iBAA7CA,qBAAqBC,uBAAwB,iBAAxBA;IAK1D,IAAMI,aAAaH,MAAMI,iBAAiB;IAC1C,IAAMC,kBAAkBF,WAAWG,MAAM,CAAC,SAACC;YAAYA;eAAD,GAACA,yBAAAA,OAAOC,SAAS,CAACC,IAAI,cAArBF,6CAAAA,uBAAuBG,aAAa;;IAC3F,IAAMC,uBAAuBN,gBAAgBC,MAAM,CAAC,SAACC;eAAWA,OAAOK,YAAY;OAAIC,MAAM;IAE7F,6EAA6E;IAC7E,IAAMC,sBACFZ,yBAAyBa,aAAab,uBAAuB,IAAIA,uBAAuBa;IAE5F,IAAIV,gBAAgBQ,MAAM,IAAI,GAAG;QAC7B,OAAO;IACX;IAEA,IAAMG,iBAAiB,wBAACT;QACpB,IAAMU,gBAAgB,CAACV,OAAOW,UAAU;QACxC,IAAMC,aACF,AAACL,wBAAwBC,aACrBJ,wBAAwBG,uBACxB,CAACP,OAAOK,YAAY,MACxBK;QACJ,IAAMG,YAAYb,OAAOK,YA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"}
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -112,6 +112,7 @@ export * from './components/PillsInput/PillsInput.js';
|
|
|
112
112
|
export * from './components/PinInput/PinInput.js';
|
|
113
113
|
export * from './components/Popover/Popover.js';
|
|
114
114
|
export * from './components/Portal/Portal.js';
|
|
115
|
+
export * from './components/PrerequisitesList/PrerequisitesList.js';
|
|
115
116
|
export * from './components/Progress/Progress.js';
|
|
116
117
|
export * from './components/Prompt/Prompt.js';
|
|
117
118
|
export * from './components/Radio/Radio.js';
|
package/dist/cjs/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,kBAAkB,EAAE,IAAI,EAAC,MAAM,eAAe,CAAC;AACvD,OAAO,EAAC,KAAK,OAAO,EAAC,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAC,KAAK,YAAY,EAAC,MAAM,yBAAyB,CAAC;AAE1D,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AACzC,OAAO,EAAC,KAAK,eAAe,EAAC,MAAM,gBAAgB,CAAC;AACpD,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,OAAO,EAAC,KAAK,kBAAkB,EAAC,MAAM,wBAAwB,CAAC;AAC/D,cAAc,sBAAsB,CAAC;AAIrC,OAAO,EAAC,SAAS,EAAC,MAAM,qCAAqC,CAAC;AAG9D,OAAO,EAAC,UAAU,EAAE,KAAK,eAAe,EAAC,MAAM,uCAAuC,CAAC;AAGvF,cAAc,6BAA6B,CAAC;AAG5C,cAAc,+BAA+B,CAAC;AAG9C,cAAc,yCAAyC,CAAC;AAGxD,cAAc,mCAAmC,CAAC;AAGlD,cAAc,yCAAyC,CAAC;AAGxD,cAAc,2CAA2C,C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,CAAC;AAGxH,cAAc,iDAAiD,CAAC;AAGhE,cAAc,2BAA2B,CAAC;AAG1C,cAAc,qCAAqC,CAAC;AAGpD,cAAc,2BAA2B,CAAC;AAG1C,cAAc,qCAAqC,CAAC;AAGpD,cAAc,mCAAmC,CAAC;AAGlD,cAAc,qCAAqC,CAAC;AAGpD,cAAc,mCAAmC,CAAC;AAGlD,cAAc,6BAA6B,CAAC;AAG5C,cAAc,iCAAiC,CAAC;AAGhD,cAAc,uCAAuC,CAAC;AAGtD,cAAc,2BAA2B,CAAC;AAG1C,cAAc,uCAAuC,CAAC;AAGtD,cAAc,+CAA+C,CAAC;AAG9D,cAAc,+CAA+C,CAAC;AAE9D,OAAO,EAAC,IAAI,EAAC,CAAC;AAGd,OAAO,EAAC,KAAK,YAAY,EAAC,MAAM,yBAAyB,CAAC;AAC1D,cAAc,uCAAuC,CAAC;AACtD,cAAc,wBAAwB,CAAC;AAEvC,OAAO,QAAQ,eAAe,CAAC;IAC3B,UAAiB,0BAA0B;QACvC,MAAM,EAAE,MAAM,CAAC,MAAM,OAAO,YAAY,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,EAAE,kBAAkB,CAAC,CAAC;KACjF;CACJ;AAED,OAAO,QAAQ,uBAAuB,CAAC;IAEnC,UAAU,UAAU,CAAC,KAAK,SAAS,OAAO,EAAE,MAAM;QAC9C;;;;WAIG;QACH,aAAa,EAAE,OAAO,CAAC;KAC1B;CACJ"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -187,6 +187,7 @@ _export_star._(require("./components/PillsInput/PillsInput.js"), exports);
|
|
|
187
187
|
_export_star._(require("./components/PinInput/PinInput.js"), exports);
|
|
188
188
|
_export_star._(require("./components/Popover/Popover.js"), exports);
|
|
189
189
|
_export_star._(require("./components/Portal/Portal.js"), exports);
|
|
190
|
+
_export_star._(require("./components/PrerequisitesList/PrerequisitesList.js"), exports);
|
|
190
191
|
_export_star._(require("./components/Progress/Progress.js"), exports);
|
|
191
192
|
_export_star._(require("./components/Prompt/Prompt.js"), exports);
|
|
192
193
|
_export_star._(require("./components/Radio/Radio.js"), exports);
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["import {MantineColorsTuple, noop} from '@mantine/core';\nimport {type RowData} from '@tanstack/table-core';\nimport {type PlasmaColors} from './theme/PlasmaColors.js';\n\nexport * from '@mantine/carousel';\nexport * from '@mantine/core';\nexport {Pagination} from '@mantine/core';\nexport {type DatesRangeValue} from '@mantine/dates';\nexport * from '@mantine/form';\nexport * from '@mantine/hooks';\nexport * from '@mantine/notifications';\nexport {type NotificationsProps} from '@mantine/notifications';\nexport * from '@tanstack/table-core';\n\n// Export all components\n// Accordion\nexport {Accordion} from './components/Accordion/Accordion.js';\n\n// Action Icon - override Mantine ActionIcon\nexport {ActionIcon, type ActionIconProps} from './components/ActionIcon/ActionIcon.js';\n\n// Affix\nexport * from './components/Affix/Affix.js';\n\n// Anchor\nexport * from './components/Anchor/Anchor.js';\n\n// Angle Slider\nexport * from './components/AngleSlider/AngleSlider.js';\n\n// App Shell\nexport * from './components/AppShell/AppShell.js';\n\n// Aspect Ratio\nexport * from './components/AspectRatio/AspectRatio.js';\n\n// Autocomplete\nexport * from './components/Autocomplete/Autocomplete.js';\n\n// Avatar\nexport * from './components/Avatar/Avatar.js';\n\n// Background Image\nexport * from './components/BackgroundImage/BackgroundImage.js';\n\n// Alert - override Mantine Alert\nexport {Alert} from './components/Alert/Alert.js';\n\n// Badge - override Mantine Badge\nexport {\n Badge,\n type BadgeOverloadFactory,\n type SemanticBadge,\n type SemanticBadgeProps,\n} from './components/Badge/Badge.js';\n\n// Blockquote\nexport * from './components/Blockquote/Blockquote.js';\n\n// Blank Slate\nexport * from './components/BlankSlate/BlankSlate.js';\n\n// Box\nexport * from './components/Box/Box.js';\n\n// Breadcrumbs\nexport * from './components/Breadcrumbs/Breadcrumbs.js';\n\n// Browser Preview\nexport * from './components/BrowserPreview/BrowserPreview.js';\n\n// Burger\nexport * from './components/Burger/Burger.js';\n\n// Button - override Mantine Button\nexport {Button, type ButtonProps} from './components/Button/Button.js';\nexport {type ButtonWithDisabledTooltipProps} from './components/Button/ButtonWithDisabledTooltip.js';\nexport {type ClickHandler} from './hooks/useClickWithLoading.js';\n\n// Card\nexport * from './components/Card/Card.js';\n\n// Center\nexport * from './components/Center/Center.js';\n\n// Check Icon\nexport * from './components/CheckIcon/CheckIcon.js';\n\n// Checkbox\nexport * from './components/Checkbox/Checkbox.js';\n\n// Checkbox Icon\nexport * from './components/CheckboxIcon/CheckboxIcon.js';\n\n// Child Form\nexport * from './components/ChildForm/ChildForm.js';\n\n// Chip - override Mantine Chip\nexport {Chip} from './components/Chip/Chip.js';\n\n// Close Button\nexport * from './components/CloseButton/CloseButton.js';\n\n// Code\nexport * from './components/Code/Code.js';\n\n// Code Editor\nexport * from './components/CodeEditor/CodeEditor.js';\n\n// Collapse\nexport * from './components/Collapse/Collapse.js';\n\n// Collection\nexport * from './components/Collection/Collection.js';\nexport type {\n CollectionCellContext,\n CollectionColumnDef,\n CollectionHeaderContext,\n} from './components/Collection/CollectionColumn.types.js';\nexport {enhanceWithCollectionProps} from './components/Collection/enhanceWithCollectionProps.js';\nexport type {\n CollectionLayout,\n CollectionLayoutBodyProps,\n CollectionLayoutHeaderProps,\n} from './components/Collection/layouts/CollectionLayout.types.js';\n\n// Color Input\nexport * from './components/ColorInput/ColorInput.js';\n\n// Color Picker\nexport * from './components/ColorPicker/ColorPicker.js';\n\n// Color Swatch\nexport * from './components/ColorSwatch/ColorSwatch.js';\n\n// Combobox\nexport * from './components/Combobox/Combobox.js';\n\n// Container\nexport * from './components/Container/Container.js';\n\n// Copy Button\nexport * from './components/CopyButton/CopyButton.js';\n\n// Copy to Clipboard\nexport * from './components/CopyToClipboard/CopyToClipboard.js';\n\n// Date Range Picker\nexport * from './components/DateRangePicker/DateRangePicker.js';\nexport * from './components/DateRangePicker/DateRangePickerInlineCalendar.js';\nexport * from './components/DateRangePicker/DateRangePickerPopoverCalendar.js';\nexport * from './components/DateRangePicker/DateRangePickerPresetSelect.js';\n\n// Date Picker Input\nexport * from './components/DatePickerInput/DatePickerInput.js';\n\n// Date Time Range Picker\nexport * from './components/DateTimeRangePicker/DateTimeRangePicker.js';\n\n// Month Picker Input\nexport * from './components/MonthPickerInput/MonthPickerInput.js';\n\n// Time Picker\nexport * from './components/TimePicker/TimePicker.js';\n\n// Year Picker Input\nexport * from './components/YearPickerInput/YearPickerInput.js';\n\n// Dialog\nexport * from './components/Dialog/Dialog.js';\n\n// Divider\nexport * from './components/Divider/Divider.js';\n\n// Drawer\nexport * from './components/Drawer/Drawer.js';\n\n// Ellipsis Text\nexport * from './components/EllipsisText/EllipsisText.js';\n\n// Facet\nexport * from './components/Facet/Facet.js';\nexport * from './components/Facet/FacetTypes.js';\n\n// Fieldset\nexport * from './components/Fieldset/Fieldset.js';\n\n// File Button\nexport * from './components/FileButton/FileButton.js';\n\n// File Input\nexport * from './components/FileInput/FileInput.js';\n\n// Flex\nexport * from './components/Flex/Flex.js';\n\n// Floating Indicator\nexport * from './components/FloatingIndicator/FloatingIndicator.js';\n\n// Focus Trap\nexport * from './components/FocusTrap/FocusTrap.js';\n\n// Grid\nexport * from './components/Grid/Grid.js';\n\n// Group\nexport * from './components/Group/Group.js';\n\n// Header - override @tanstack/table-core Header\nexport {\n Header,\n type HeaderBreadcrumbsProps,\n type HeaderDocAnchorProps,\n type HeaderFactory,\n type HeaderProps,\n type HeaderRightProps,\n type HeaderStyleNames,\n type HeaderVariant,\n} from './components/Header/Header.js';\n\n// Highlight\nexport * from './components/Highlight/Highlight.js';\n\n// Hover Card\nexport * from './components/HoverCard/HoverCard.js';\n\n// Image\nexport * from './components/Image/Image.js';\n\n// Indicator\nexport * from './components/Indicator/Indicator.js';\n\n// Info Token\nexport * from './components/InfoToken/InfoToken.js';\n\n// Input\nexport {\n Input,\n InputLabelInfo,\n type InputFactory,\n type InputLabelInfoFactory,\n type InputLabelInfoProps,\n type InputLabelInfoStylesNames,\n type InputProps,\n} from './components/Input/Input.js';\n\n// Input Base\nexport * from './components/InputBase/InputBase.js';\n\n// Inline Confirm\nexport * from './components/InlineConfirm/InlineConfirm.js';\nexport * from './components/InlineConfirm/InlineConfirmContext.js';\n\n// Json Input\nexport * from './components/JsonInput/JsonInput.js';\n\n// Kbd\nexport * from './components/Kbd/Kbd.js';\n\n// Last Updated\nexport * from './components/LastUpdated/LastUpdated.js';\n\n// List\nexport * from './components/List/List.js';\n\n// Loader\nexport * from './components/Loader/Loader.js';\n\n// Loading Overlay\nexport * from './components/LoadingOverlay/LoadingOverlay.js';\n\n// Circle Loader\nexport * from './components/CircleLoader/CircleLoader.js';\n\n// Mark\nexport * from './components/Mark/Mark.js';\n\n// Menu - override Mantine Menu\nexport {Menu, type MenuItemProps} from './components/Menu/Menu.js';\n\n// Modal - override Mantine Modal\nexport {Modal, type ModalFactory, type ModalProps} from './components/Modal/Modal.js';\nexport * from './components/Modal/ModalFooter.js';\n\n// Modal Base\nexport * from './components/ModalBase/ModalBase.js';\n\n// Multi Select\nexport * from './components/MultiSelect/MultiSelect.js';\n\n// Native Select\nexport * from './components/NativeSelect/NativeSelect.js';\n\n// Nav Link\nexport * from './components/NavLink/NavLink.js';\n\n// Notification\nexport * from './components/Notification/Notification.js';\n\n// Number Formatter\nexport * from './components/NumberFormatter/NumberFormatter.js';\n\n// Number Input\nexport * from './components/NumberInput/NumberInput.js';\n\n// Overlay\nexport * from './components/Overlay/Overlay.js';\n\n// Pagination\nexport * from './components/Pagination/Pagination.js';\n\n// Paper\nexport * from './components/Paper/Paper.js';\n\n// Pill\nexport * from './components/Pill/Pill.js';\n\n// Pills Input\nexport * from './components/PillsInput/PillsInput.js';\n\n// Pin Input\nexport * from './components/PinInput/PinInput.js';\n\n// Popover\nexport * from './components/Popover/Popover.js';\n\n// Portal\nexport * from './components/Portal/Portal.js';\n\n// Progress\nexport * from './components/Progress/Progress.js';\n\n// Prompt\nexport * from './components/Prompt/Prompt.js';\n\n// Radio\nexport * from './components/Radio/Radio.js';\n\n// RadioCard - override Mantine RadioCard\nexport {RadioCard, type RadioCardProps} from './components/RadioCard/RadioCard.js';\n\n// Rating\nexport * from './components/Rating/Rating.js';\n\n// Ring Progress\nexport * from './components/RingProgress/RingProgress.js';\n\n// Scroll Area\nexport * from './components/ScrollArea/ScrollArea.js';\n\n// Segmented Control\nexport * from './components/SegmentedControl/SegmentedControl.js';\n\n// Semi Circle Progress\nexport * from './components/SemiCircleProgress/SemiCircleProgress.js';\n\n// Read Only - override Mantine PasswordInput and Select\nexport {PasswordInput} from './components/PasswordInput/PasswordInput.js';\nexport {Select} from './components/Select/Select.js';\n\n// Simple Grid\nexport * from './components/SimpleGrid/SimpleGrid.js';\n\n// Skeleton\nexport * from './components/Skeleton/Skeleton.js';\n\n// Slider\nexport * from './components/Slider/Slider.js';\n\n// Space\nexport * from './components/Space/Space.js';\n\n// Spoiler\nexport * from './components/Spoiler/Spoiler.js';\n\n// Stack\nexport * from './components/Stack/Stack.js';\n\n// Status Token\nexport * from './components/StatusToken/StatusToken.js';\n\n// Stepper\nexport * from './components/Stepper/Stepper.js';\n\n// Sticky Footer\n\nexport * from './components/StickyFooter/StickyFooter.js';\n\n// Switch\nexport * from './components/Switch/Switch.js';\n\n// Table - override Mantine Table\nexport {flexRender as renderTableCell} from '@tanstack/react-table';\nexport {TableActionsColumn} from './components/Table/table-column/TableActionsColumn.js';\nexport {type TablePredicateProps} from './components/Table/table-predicate/TablePredicate.js';\nexport {Table, TableComponentsOrder, type PlasmaTableFactory} from './components/Table/Table.js';\nexport {\n type TableAction,\n type TableLayout,\n type TableLayoutProps,\n type TableProps,\n} from './components/Table/Table.types.js';\nexport {useTableContext} from './components/Table/TableContext.js';\nexport {useTable, type TableState, type TableStore, type UseTableOptions} from './components/Table/use-table.js';\nexport {useUrlSyncedState, type SearchParamEntry, type UseUrlSyncedStateOptions} from './hooks/use-url-synced-state.js';\n\n// Table of Contents\nexport * from './components/TableOfContents/TableOfContents.js';\n\n// Tabs\nexport * from './components/Tabs/Tabs.js';\n\n// Tags Input\nexport * from './components/TagsInput/TagsInput.js';\n\n// Text\nexport * from './components/Text/Text.js';\n\n// Text Input\nexport * from './components/TextInput/TextInput.js';\n\n// Textarea\nexport * from './components/Textarea/Textarea.js';\n\n// Theme Icon\nexport * from './components/ThemeIcon/ThemeIcon.js';\n\n// Timeline\nexport * from './components/Timeline/Timeline.js';\n\n// Title\nexport * from './components/Title/Title.js';\n\n// Tooltip\nexport * from './components/Tooltip/Tooltip.js';\n\n// Transition\nexport * from './components/Transition/Transition.js';\n\n// Tree\nexport * from './components/Tree/Tree.js';\n\n// Typography\nexport * from './components/Typography/Typography.js';\n\n// Unstyled Button\nexport * from './components/UnstyledButton/UnstyledButton.js';\n\n// Visually Hidden\nexport * from './components/VisuallyHidden/VisuallyHidden.js';\n\nexport {noop};\n\n// Theme\nexport {type PlasmaColors} from './theme/PlasmaColors.js';\nexport * from './theme/plasmaCSSVariablesResolver.js';\nexport * from './theme/Plasmantine.js';\n\ndeclare module '@mantine/core' {\n export interface MantineThemeColorsOverride {\n colors: Record<keyof typeof PlasmaColors | (string & {}), MantineColorsTuple>;\n }\n}\n\ndeclare module '@tanstack/react-table' {\n // eslint-disable-next-line unused-imports/no-unused-vars\n interface ColumnMeta<TData extends RowData, TValue> {\n /**\n * Whether the column is a control column.\n * Control columns are columns that are not part of the data but are used to control the table.\n * For example, a column that contains checkboxes to select rows.\n */\n controlColumn: boolean;\n }\n}\n"],"names":["Accordion","ActionIcon","Alert","Badge","Button","Chip","Header","Input","InputLabelInfo","Menu","Modal","Pagination","PasswordInput","RadioCard","Select","Table","TableActionsColumn","TableComponentsOrder","enhanceWithCollectionProps","noop","renderTableCell","flexRender","useTable","useTableContext","useUrlSyncedState"],"mappings":";;;;;;;;;;;QAgBQA;eAAAA,oBAAS;;QAGTC;eAAAA,sBAAU;;QA2BVC;eAAAA,YAAK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;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;yBAG+B;uBAG/B;uBAGA;uBAGA;uBAGA;uBAGA;6BAGc;sBACP;uBAGP;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAIA;uBAGA;0BAG8B;kCACX;qBAEkC;4BAOrC;wBACiD;iCACO;uBAGxE;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAMA;uBACA"}
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["import {MantineColorsTuple, noop} from '@mantine/core';\nimport {type RowData} from '@tanstack/table-core';\nimport {type PlasmaColors} from './theme/PlasmaColors.js';\n\nexport * from '@mantine/carousel';\nexport * from '@mantine/core';\nexport {Pagination} from '@mantine/core';\nexport {type DatesRangeValue} from '@mantine/dates';\nexport * from '@mantine/form';\nexport * from '@mantine/hooks';\nexport * from '@mantine/notifications';\nexport {type NotificationsProps} from '@mantine/notifications';\nexport * from '@tanstack/table-core';\n\n// Export all components\n// Accordion\nexport {Accordion} from './components/Accordion/Accordion.js';\n\n// Action Icon - override Mantine ActionIcon\nexport {ActionIcon, type ActionIconProps} from './components/ActionIcon/ActionIcon.js';\n\n// Affix\nexport * from './components/Affix/Affix.js';\n\n// Anchor\nexport * from './components/Anchor/Anchor.js';\n\n// Angle Slider\nexport * from './components/AngleSlider/AngleSlider.js';\n\n// App Shell\nexport * from './components/AppShell/AppShell.js';\n\n// Aspect Ratio\nexport * from './components/AspectRatio/AspectRatio.js';\n\n// Autocomplete\nexport * from './components/Autocomplete/Autocomplete.js';\n\n// Avatar\nexport * from './components/Avatar/Avatar.js';\n\n// Background Image\nexport * from './components/BackgroundImage/BackgroundImage.js';\n\n// Alert - override Mantine Alert\nexport {Alert} from './components/Alert/Alert.js';\n\n// Badge - override Mantine Badge\nexport {\n Badge,\n type BadgeOverloadFactory,\n type SemanticBadge,\n type SemanticBadgeProps,\n} from './components/Badge/Badge.js';\n\n// Blockquote\nexport * from './components/Blockquote/Blockquote.js';\n\n// Blank Slate\nexport * from './components/BlankSlate/BlankSlate.js';\n\n// Box\nexport * from './components/Box/Box.js';\n\n// Breadcrumbs\nexport * from './components/Breadcrumbs/Breadcrumbs.js';\n\n// Browser Preview\nexport * from './components/BrowserPreview/BrowserPreview.js';\n\n// Burger\nexport * from './components/Burger/Burger.js';\n\n// Button - override Mantine Button\nexport {Button, type ButtonProps} from './components/Button/Button.js';\nexport {type ButtonWithDisabledTooltipProps} from './components/Button/ButtonWithDisabledTooltip.js';\nexport {type ClickHandler} from './hooks/useClickWithLoading.js';\n\n// Card\nexport * from './components/Card/Card.js';\n\n// Center\nexport * from './components/Center/Center.js';\n\n// Check Icon\nexport * from './components/CheckIcon/CheckIcon.js';\n\n// Checkbox\nexport * from './components/Checkbox/Checkbox.js';\n\n// Checkbox Icon\nexport * from './components/CheckboxIcon/CheckboxIcon.js';\n\n// Child Form\nexport * from './components/ChildForm/ChildForm.js';\n\n// Chip - override Mantine Chip\nexport {Chip} from './components/Chip/Chip.js';\n\n// Close Button\nexport * from './components/CloseButton/CloseButton.js';\n\n// Code\nexport * from './components/Code/Code.js';\n\n// Code Editor\nexport * from './components/CodeEditor/CodeEditor.js';\n\n// Collapse\nexport * from './components/Collapse/Collapse.js';\n\n// Collection\nexport * from './components/Collection/Collection.js';\nexport type {\n CollectionCellContext,\n CollectionColumnDef,\n CollectionHeaderContext,\n} from './components/Collection/CollectionColumn.types.js';\nexport {enhanceWithCollectionProps} from './components/Collection/enhanceWithCollectionProps.js';\nexport type {\n CollectionLayout,\n CollectionLayoutBodyProps,\n CollectionLayoutHeaderProps,\n} from './components/Collection/layouts/CollectionLayout.types.js';\n\n// Color Input\nexport * from './components/ColorInput/ColorInput.js';\n\n// Color Picker\nexport * from './components/ColorPicker/ColorPicker.js';\n\n// Color Swatch\nexport * from './components/ColorSwatch/ColorSwatch.js';\n\n// Combobox\nexport * from './components/Combobox/Combobox.js';\n\n// Container\nexport * from './components/Container/Container.js';\n\n// Copy Button\nexport * from './components/CopyButton/CopyButton.js';\n\n// Copy to Clipboard\nexport * from './components/CopyToClipboard/CopyToClipboard.js';\n\n// Date Range Picker\nexport * from './components/DateRangePicker/DateRangePicker.js';\nexport * from './components/DateRangePicker/DateRangePickerInlineCalendar.js';\nexport * from './components/DateRangePicker/DateRangePickerPopoverCalendar.js';\nexport * from './components/DateRangePicker/DateRangePickerPresetSelect.js';\n\n// Date Picker Input\nexport * from './components/DatePickerInput/DatePickerInput.js';\n\n// Date Time Range Picker\nexport * from './components/DateTimeRangePicker/DateTimeRangePicker.js';\n\n// Month Picker Input\nexport * from './components/MonthPickerInput/MonthPickerInput.js';\n\n// Time Picker\nexport * from './components/TimePicker/TimePicker.js';\n\n// Year Picker Input\nexport * from './components/YearPickerInput/YearPickerInput.js';\n\n// Dialog\nexport * from './components/Dialog/Dialog.js';\n\n// Divider\nexport * from './components/Divider/Divider.js';\n\n// Drawer\nexport * from './components/Drawer/Drawer.js';\n\n// Ellipsis Text\nexport * from './components/EllipsisText/EllipsisText.js';\n\n// Facet\nexport * from './components/Facet/Facet.js';\nexport * from './components/Facet/FacetTypes.js';\n\n// Fieldset\nexport * from './components/Fieldset/Fieldset.js';\n\n// File Button\nexport * from './components/FileButton/FileButton.js';\n\n// File Input\nexport * from './components/FileInput/FileInput.js';\n\n// Flex\nexport * from './components/Flex/Flex.js';\n\n// Floating Indicator\nexport * from './components/FloatingIndicator/FloatingIndicator.js';\n\n// Focus Trap\nexport * from './components/FocusTrap/FocusTrap.js';\n\n// Grid\nexport * from './components/Grid/Grid.js';\n\n// Group\nexport * from './components/Group/Group.js';\n\n// Header - override @tanstack/table-core Header\nexport {\n Header,\n type HeaderBreadcrumbsProps,\n type HeaderDocAnchorProps,\n type HeaderFactory,\n type HeaderProps,\n type HeaderRightProps,\n type HeaderStyleNames,\n type HeaderVariant,\n} from './components/Header/Header.js';\n\n// Highlight\nexport * from './components/Highlight/Highlight.js';\n\n// Hover Card\nexport * from './components/HoverCard/HoverCard.js';\n\n// Image\nexport * from './components/Image/Image.js';\n\n// Indicator\nexport * from './components/Indicator/Indicator.js';\n\n// Info Token\nexport * from './components/InfoToken/InfoToken.js';\n\n// Input\nexport {\n Input,\n InputLabelInfo,\n type InputFactory,\n type InputLabelInfoFactory,\n type InputLabelInfoProps,\n type InputLabelInfoStylesNames,\n type InputProps,\n} from './components/Input/Input.js';\n\n// Input Base\nexport * from './components/InputBase/InputBase.js';\n\n// Inline Confirm\nexport * from './components/InlineConfirm/InlineConfirm.js';\nexport * from './components/InlineConfirm/InlineConfirmContext.js';\n\n// Json Input\nexport * from './components/JsonInput/JsonInput.js';\n\n// Kbd\nexport * from './components/Kbd/Kbd.js';\n\n// Last Updated\nexport * from './components/LastUpdated/LastUpdated.js';\n\n// List\nexport * from './components/List/List.js';\n\n// Loader\nexport * from './components/Loader/Loader.js';\n\n// Loading Overlay\nexport * from './components/LoadingOverlay/LoadingOverlay.js';\n\n// Circle Loader\nexport * from './components/CircleLoader/CircleLoader.js';\n\n// Mark\nexport * from './components/Mark/Mark.js';\n\n// Menu - override Mantine Menu\nexport {Menu, type MenuItemProps} from './components/Menu/Menu.js';\n\n// Modal - override Mantine Modal\nexport {Modal, type ModalFactory, type ModalProps} from './components/Modal/Modal.js';\nexport * from './components/Modal/ModalFooter.js';\n\n// Modal Base\nexport * from './components/ModalBase/ModalBase.js';\n\n// Multi Select\nexport * from './components/MultiSelect/MultiSelect.js';\n\n// Native Select\nexport * from './components/NativeSelect/NativeSelect.js';\n\n// Nav Link\nexport * from './components/NavLink/NavLink.js';\n\n// Notification\nexport * from './components/Notification/Notification.js';\n\n// Number Formatter\nexport * from './components/NumberFormatter/NumberFormatter.js';\n\n// Number Input\nexport * from './components/NumberInput/NumberInput.js';\n\n// Overlay\nexport * from './components/Overlay/Overlay.js';\n\n// Pagination\nexport * from './components/Pagination/Pagination.js';\n\n// Paper\nexport * from './components/Paper/Paper.js';\n\n// Pill\nexport * from './components/Pill/Pill.js';\n\n// Pills Input\nexport * from './components/PillsInput/PillsInput.js';\n\n// Pin Input\nexport * from './components/PinInput/PinInput.js';\n\n// Popover\nexport * from './components/Popover/Popover.js';\n\n// Portal\nexport * from './components/Portal/Portal.js';\n\n// PrerequisitesList\nexport * from './components/PrerequisitesList/PrerequisitesList.js';\n\n// Progress\nexport * from './components/Progress/Progress.js';\n\n// Prompt\nexport * from './components/Prompt/Prompt.js';\n\n// Radio\nexport * from './components/Radio/Radio.js';\n\n// RadioCard - override Mantine RadioCard\nexport {RadioCard, type RadioCardProps} from './components/RadioCard/RadioCard.js';\n\n// Rating\nexport * from './components/Rating/Rating.js';\n\n// Ring Progress\nexport * from './components/RingProgress/RingProgress.js';\n\n// Scroll Area\nexport * from './components/ScrollArea/ScrollArea.js';\n\n// Segmented Control\nexport * from './components/SegmentedControl/SegmentedControl.js';\n\n// Semi Circle Progress\nexport * from './components/SemiCircleProgress/SemiCircleProgress.js';\n\n// Read Only - override Mantine PasswordInput and Select\nexport {PasswordInput} from './components/PasswordInput/PasswordInput.js';\nexport {Select} from './components/Select/Select.js';\n\n// Simple Grid\nexport * from './components/SimpleGrid/SimpleGrid.js';\n\n// Skeleton\nexport * from './components/Skeleton/Skeleton.js';\n\n// Slider\nexport * from './components/Slider/Slider.js';\n\n// Space\nexport * from './components/Space/Space.js';\n\n// Spoiler\nexport * from './components/Spoiler/Spoiler.js';\n\n// Stack\nexport * from './components/Stack/Stack.js';\n\n// Status Token\nexport * from './components/StatusToken/StatusToken.js';\n\n// Stepper\nexport * from './components/Stepper/Stepper.js';\n\n// Sticky Footer\n\nexport * from './components/StickyFooter/StickyFooter.js';\n\n// Switch\nexport * from './components/Switch/Switch.js';\n\n// Table - override Mantine Table\nexport {flexRender as renderTableCell} from '@tanstack/react-table';\nexport {TableActionsColumn} from './components/Table/table-column/TableActionsColumn.js';\nexport {type TablePredicateProps} from './components/Table/table-predicate/TablePredicate.js';\nexport {Table, TableComponentsOrder, type PlasmaTableFactory} from './components/Table/Table.js';\nexport {\n type TableAction,\n type TableLayout,\n type TableLayoutProps,\n type TableProps,\n} from './components/Table/Table.types.js';\nexport {useTableContext} from './components/Table/TableContext.js';\nexport {useTable, type TableState, type TableStore, type UseTableOptions} from './components/Table/use-table.js';\nexport {useUrlSyncedState, type SearchParamEntry, type UseUrlSyncedStateOptions} from './hooks/use-url-synced-state.js';\n\n// Table of Contents\nexport * from './components/TableOfContents/TableOfContents.js';\n\n// Tabs\nexport * from './components/Tabs/Tabs.js';\n\n// Tags Input\nexport * from './components/TagsInput/TagsInput.js';\n\n// Text\nexport * from './components/Text/Text.js';\n\n// Text Input\nexport * from './components/TextInput/TextInput.js';\n\n// Textarea\nexport * from './components/Textarea/Textarea.js';\n\n// Theme Icon\nexport * from './components/ThemeIcon/ThemeIcon.js';\n\n// Timeline\nexport * from './components/Timeline/Timeline.js';\n\n// Title\nexport * from './components/Title/Title.js';\n\n// Tooltip\nexport * from './components/Tooltip/Tooltip.js';\n\n// Transition\nexport * from './components/Transition/Transition.js';\n\n// Tree\nexport * from './components/Tree/Tree.js';\n\n// Typography\nexport * from './components/Typography/Typography.js';\n\n// Unstyled Button\nexport * from './components/UnstyledButton/UnstyledButton.js';\n\n// Visually Hidden\nexport * from './components/VisuallyHidden/VisuallyHidden.js';\n\nexport {noop};\n\n// Theme\nexport {type PlasmaColors} from './theme/PlasmaColors.js';\nexport * from './theme/plasmaCSSVariablesResolver.js';\nexport * from './theme/Plasmantine.js';\n\ndeclare module '@mantine/core' {\n export interface MantineThemeColorsOverride {\n colors: Record<keyof typeof PlasmaColors | (string & {}), MantineColorsTuple>;\n }\n}\n\ndeclare module '@tanstack/react-table' {\n // eslint-disable-next-line unused-imports/no-unused-vars\n interface ColumnMeta<TData extends RowData, TValue> {\n /**\n * Whether the column is a control column.\n * Control columns are columns that are not part of the data but are used to control the table.\n * For example, a column that contains checkboxes to select rows.\n */\n controlColumn: boolean;\n }\n}\n"],"names":["Accordion","ActionIcon","Alert","Badge","Button","Chip","Header","Input","InputLabelInfo","Menu","Modal","Pagination","PasswordInput","RadioCard","Select","Table","TableActionsColumn","TableComponentsOrder","enhanceWithCollectionProps","noop","renderTableCell","flexRender","useTable","useTableContext","useUrlSyncedState"],"mappings":";;;;;;;;;;;QAgBQA;eAAAA,oBAAS;;QAGTC;eAAAA,sBAAU;;QA2BVC;eAAAA,YAAK;;QAITC;eAAAA,YAAK;;QAyBDC;eAAAA,cAAM;;QAuBNC;eAAAA,UAAI;;QAgHRC;eAAAA,cAAM;;QA2BNC;eAAAA,YAAK;;QACLC;eAAAA,qBAAc;;QAwCVC;eAAAA,UAAI;;QAGJC;eAAAA,YAAK;;QAnRLC;eAAAA,gBAAU;;QAkWVC;eAAAA,4BAAa;;QAlBbC;eAAAA,oBAAS;;QAmBTC;eAAAA,cAAM;;QAqCNC;eAAAA,YAAK;;QAFLC;eAAAA,sCAAkB;;QAEXC;eAAAA,2BAAoB;;QAvR3BC;eAAAA,sDAA0B;;QA+U1BC;eAAAA,UAAI;;QA3DUC;eAAdC,sBAAU;;QAWVC;eAAAA,kBAAQ;;QADRC;eAAAA,6BAAe;;QAEfC;eAAAA,oCAAiB;;;;mCAvZc;uBAIzB;uBAIA;uBACA;uBACA;uBAEA;yBAIU;0BAGuB;uBAGjC;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;qBAGM;qBAQb;uBAGO;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;sBAGyB;uBAKzB;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;oBAGK;uBAGL;uBAGA;uBAGA;uBAGA;uBAGA;0CAM2B;uBAQ3B;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBACA;uBACA;uBACA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBACA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;sBAYP;uBAGO;uBAGA;uBAGA;uBAGA;uBAGA;qBAWP;uBAGO;uBAGA;uBACA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;oBAGyB;qBAGiB;uBAC1C;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;yBAG+B;uBAG/B;uBAGA;uBAGA;uBAGA;uBAGA;6BAGc;sBACP;uBAGP;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAIA;uBAGA;0BAG8B;kCACX;qBAEkC;4BAOrC;wBACiD;iCACO;uBAGxE;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAGA;uBAMA;uBACA"}
|
|
@@ -3,8 +3,15 @@
|
|
|
3
3
|
--chip-bg: var(--mantine-primary-color-light);
|
|
4
4
|
--chip-hover: var(--mantine-primary-color-filled-hover);
|
|
5
5
|
--chip-radius: var(--mantine-radius-lg);
|
|
6
|
-
--chip-
|
|
7
|
-
--chip-
|
|
6
|
+
--chip-size-xs: 24px;
|
|
7
|
+
--chip-icon-size-xs: 12px;
|
|
8
|
+
--chip-spacing-xs: var(--mantine-spacing-xs);
|
|
9
|
+
--chip-padding-xs: 12px;
|
|
10
|
+
--chip-checked-padding-xs: 6px 12px;
|
|
11
|
+
--chip-icon-size-sm: var(--mantine-spacing-sm);
|
|
12
|
+
--chip-spacing-sm: var(--mantine-spacing-xs);
|
|
13
|
+
--chip-padding-sm: var(--mantine-spacing-sm);
|
|
14
|
+
--chip-checked-padding-sm: var(--mantine-spacing-xs) var(--mantine-spacing-sm);
|
|
8
15
|
|
|
9
16
|
> .label {
|
|
10
17
|
&:not([data-checked]) {
|
|
@@ -15,8 +22,8 @@
|
|
|
15
22
|
@mixin hover {
|
|
16
23
|
&[data-disabled] {
|
|
17
24
|
border: none;
|
|
18
|
-
color: var(--
|
|
19
|
-
background-color: var(--
|
|
25
|
+
color: var(--mantine-color-disabled-color);
|
|
26
|
+
background-color: var(--mantine-color-disabled);
|
|
20
27
|
}
|
|
21
28
|
|
|
22
29
|
background-color: var(--mantine-color-gray-light);
|
|
@@ -34,8 +41,8 @@
|
|
|
34
41
|
|
|
35
42
|
&[data-disabled] {
|
|
36
43
|
border: none;
|
|
37
|
-
color: var(--
|
|
38
|
-
background-color: var(--
|
|
44
|
+
color: var(--mantine-color-disabled-color);
|
|
45
|
+
background-color: var(--mantine-color-disabled);
|
|
39
46
|
}
|
|
40
47
|
}
|
|
41
48
|
}
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
|
|
20
20
|
&[data-disabled] {
|
|
21
21
|
opacity: 1;
|
|
22
|
-
background-color: var(--
|
|
22
|
+
background-color: var(--mantine-color-disabled);
|
|
23
23
|
|
|
24
24
|
& + .icon {
|
|
25
|
-
color: var(--
|
|
25
|
+
color: var(--mantine-color-disabled-color);
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Theme.d.ts","sourceRoot":"","sources":["../../../src/theme/Theme.tsx"],"names":[],"mappings":"AAYA,OAAO,EAuBH,oBAAoB,EAuBvB,MAAM,eAAe,CAAC;AAgEvB,eAAO,MAAM,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"Theme.d.ts","sourceRoot":"","sources":["../../../src/theme/Theme.tsx"],"names":[],"mappings":"AAYA,OAAO,EAuBH,oBAAoB,EAuBvB,MAAM,eAAe,CAAC;AAgEvB,eAAO,MAAM,WAAW,EAAE,oBA0bxB,CAAC"}
|
package/dist/cjs/theme/Theme.js
CHANGED
|
@@ -251,7 +251,7 @@ var plasmaTheme = (0, _core.createTheme)({
|
|
|
251
251
|
Chip: _core.Chip.extend({
|
|
252
252
|
defaultProps: {
|
|
253
253
|
icon: /*#__PURE__*/ (0, _jsxruntime.jsx)(_plasmareacticons.IconCheck, {
|
|
254
|
-
size:
|
|
254
|
+
size: "var(--chip-icon-size)"
|
|
255
255
|
})
|
|
256
256
|
},
|
|
257
257
|
classNames: _Chipmodulecss.default
|
|
@@ -379,7 +379,10 @@ var plasmaTheme = (0, _core.createTheme)({
|
|
|
379
379
|
}
|
|
380
380
|
}),
|
|
381
381
|
List: _core.List.extend({
|
|
382
|
-
classNames: _Listmodulecss.default
|
|
382
|
+
classNames: _Listmodulecss.default,
|
|
383
|
+
defaultProps: {
|
|
384
|
+
size: 'sm'
|
|
385
|
+
}
|
|
383
386
|
}),
|
|
384
387
|
Modal: _core.Modal.extend({
|
|
385
388
|
classNames: _Modalmodulecss.default,
|