@coveord/plasma-mantine 55.7.2-next.21 → 55.7.2-next.23
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 +53 -51
- package/__mocks__/@monaco-editor/react.tsx +1 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/cjs/components/checkbox/CheckboxIcon.d.ts +7 -0
- package/dist/cjs/components/checkbox/CheckboxIcon.d.ts.map +1 -0
- package/dist/cjs/components/checkbox/CheckboxIcon.js +29 -0
- package/dist/cjs/components/checkbox/CheckboxIcon.js.map +1 -0
- package/dist/cjs/components/checkbox/index.d.ts +2 -0
- package/dist/cjs/components/checkbox/index.d.ts.map +1 -0
- package/dist/cjs/components/checkbox/index.js +8 -0
- package/dist/cjs/components/checkbox/index.js.map +1 -0
- package/dist/cjs/components/code-editor/CodeEditor.d.ts.map +1 -1
- package/dist/cjs/components/code-editor/CodeEditor.js +19 -21
- package/dist/cjs/components/code-editor/CodeEditor.js.map +1 -1
- package/dist/cjs/components/code-editor/CodeEditor.module.css +10 -6
- package/dist/cjs/components/collection/CollectionItem.d.ts.map +1 -1
- package/dist/cjs/components/collection/CollectionItem.js +9 -4
- package/dist/cjs/components/collection/CollectionItem.js.map +1 -1
- package/dist/cjs/components/index.d.ts +2 -0
- package/dist/cjs/components/index.d.ts.map +1 -1
- package/dist/cjs/components/index.js +2 -0
- package/dist/cjs/components/index.js.map +1 -1
- package/dist/cjs/components/loader/CircleLoader.d.ts +3 -0
- package/dist/cjs/components/loader/CircleLoader.d.ts.map +1 -0
- package/dist/cjs/components/loader/CircleLoader.js +32 -0
- package/dist/cjs/components/loader/CircleLoader.js.map +1 -0
- package/dist/cjs/components/loader/CircleLoader.module.css +29 -0
- package/dist/cjs/components/loader/index.d.ts +2 -0
- package/dist/cjs/components/loader/index.d.ts.map +1 -0
- package/dist/cjs/components/loader/index.js +8 -0
- package/dist/cjs/components/loader/index.js.map +1 -0
- package/dist/cjs/components/read-only/ReadOnlyInputStyles.js +2 -2
- package/dist/cjs/components/read-only/ReadOnlyInputStyles.js.map +1 -1
- package/dist/cjs/components/table/layouts/row-layout/RowLayout.module.css +1 -1
- package/dist/cjs/styles/Badge.module.css +2 -0
- package/dist/cjs/styles/Checkbox.module.css +41 -5
- package/dist/cjs/styles/CheckboxIndicator.module.css +8 -1
- package/dist/cjs/styles/Input.module.css +8 -2
- package/dist/cjs/styles/Pagination.module.css +10 -1
- package/dist/cjs/styles/Radio.module.css +30 -2
- package/dist/cjs/styles/ReadOnlyInput.module.css +7 -3
- package/dist/cjs/styles/Select.module.css +46 -0
- package/dist/cjs/theme/Theme.d.ts.map +1 -1
- package/dist/cjs/theme/Theme.js +16 -19
- 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 +6 -1
- package/dist/cjs/theme/plasmaCSSVariablesResolver.js.map +1 -1
- package/dist/esm/components/checkbox/CheckboxIcon.d.ts +7 -0
- package/dist/esm/components/checkbox/CheckboxIcon.d.ts.map +1 -0
- package/dist/esm/components/checkbox/CheckboxIcon.js +16 -0
- package/dist/esm/components/checkbox/CheckboxIcon.js.map +1 -0
- package/dist/esm/components/checkbox/index.d.ts +2 -0
- package/dist/esm/components/checkbox/index.d.ts.map +1 -0
- package/dist/esm/components/checkbox/index.js +3 -0
- package/dist/esm/components/checkbox/index.js.map +1 -0
- package/dist/esm/components/code-editor/CodeEditor.d.ts.map +1 -1
- package/dist/esm/components/code-editor/CodeEditor.js +18 -19
- package/dist/esm/components/code-editor/CodeEditor.js.map +1 -1
- package/dist/esm/components/code-editor/CodeEditor.module.css +10 -6
- package/dist/esm/components/collection/CollectionItem.d.ts.map +1 -1
- package/dist/esm/components/collection/CollectionItem.js +5 -2
- package/dist/esm/components/collection/CollectionItem.js.map +1 -1
- package/dist/esm/components/index.d.ts +2 -0
- package/dist/esm/components/index.d.ts.map +1 -1
- package/dist/esm/components/index.js +2 -0
- package/dist/esm/components/index.js.map +1 -1
- package/dist/esm/components/loader/CircleLoader.d.ts +3 -0
- package/dist/esm/components/loader/CircleLoader.d.ts.map +1 -0
- package/dist/esm/components/loader/CircleLoader.js +13 -0
- package/dist/esm/components/loader/CircleLoader.js.map +1 -0
- package/dist/esm/components/loader/CircleLoader.module.css +29 -0
- package/dist/esm/components/loader/index.d.ts +2 -0
- package/dist/esm/components/loader/index.d.ts.map +1 -0
- package/dist/esm/components/loader/index.js +3 -0
- package/dist/esm/components/loader/index.js.map +1 -0
- package/dist/esm/components/read-only/ReadOnlyInputStyles.js +2 -2
- package/dist/esm/components/read-only/ReadOnlyInputStyles.js.map +1 -1
- package/dist/esm/components/table/layouts/row-layout/RowLayout.module.css +1 -1
- package/dist/esm/styles/Badge.module.css +2 -0
- package/dist/esm/styles/Checkbox.module.css +41 -5
- package/dist/esm/styles/CheckboxIndicator.module.css +8 -1
- package/dist/esm/styles/Input.module.css +8 -2
- package/dist/esm/styles/Pagination.module.css +10 -1
- package/dist/esm/styles/Radio.module.css +30 -2
- package/dist/esm/styles/ReadOnlyInput.module.css +7 -3
- package/dist/esm/styles/Select.module.css +46 -0
- package/dist/esm/theme/Theme.d.ts.map +1 -1
- package/dist/esm/theme/Theme.js +17 -20
- 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 +6 -1
- package/dist/esm/theme/plasmaCSSVariablesResolver.js.map +1 -1
- package/package.json +3 -3
- package/src/components/checkbox/CheckboxIcon.tsx +14 -0
- package/src/components/checkbox/index.ts +1 -0
- package/src/components/code-editor/CodeEditor.module.css +10 -6
- package/src/components/code-editor/CodeEditor.tsx +23 -26
- package/src/components/collection/CollectionItem.tsx +9 -3
- package/src/components/collection/__tests__/Collection.spec.tsx +140 -44
- package/src/components/index.ts +2 -0
- package/src/components/loader/CircleLoader.module.css +29 -0
- package/src/components/loader/CircleLoader.tsx +8 -0
- package/src/components/loader/index.ts +1 -0
- package/src/components/read-only/ReadOnlyInputStyles.ts +2 -2
- package/src/components/table/layouts/row-layout/RowLayout.module.css +1 -1
- package/src/styles/Badge.module.css +2 -0
- package/src/styles/Checkbox.module.css +41 -5
- package/src/styles/CheckboxIndicator.module.css +8 -1
- package/src/styles/Input.module.css +8 -2
- package/src/styles/Pagination.module.css +10 -1
- package/src/styles/Radio.module.css +30 -2
- package/src/styles/ReadOnlyInput.module.css +7 -3
- package/src/styles/Select.module.css +46 -0
- package/src/theme/Theme.tsx +9 -14
- package/src/theme/plasmaCSSVariablesResolver.ts +11 -1
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
outline-width: thin;
|
|
7
7
|
|
|
8
8
|
@mixin light {
|
|
9
|
-
background-color: var(--mantine-color-
|
|
9
|
+
background-color: var(--mantine-color-gray-0);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
@mixin dark {
|
|
@@ -20,16 +20,20 @@
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
.error {
|
|
23
|
-
outline-color: var(--mantine-color-
|
|
23
|
+
outline-color: var(--mantine-color-error);
|
|
24
24
|
outline-style: solid;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.disabled {
|
|
28
28
|
@mixin light {
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
border: 1px solid var(--mantine-color-gray-1);
|
|
30
|
+
background-color: var(--mantine-color-gray-1);
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
:global {
|
|
33
|
+
.monaco-editor {
|
|
34
|
+
--vscode-editor-background: var(--mantine-color-gray-1);
|
|
35
|
+
--vscode-editorGutter-background: var(--mantine-color-gray-1);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
34
38
|
}
|
|
35
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CollectionItem.d.ts","sourceRoot":"","sources":["../../../../src/components/collection/CollectionItem.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAQ,UAAU,EAAC,MAAM,eAAe,CAAC;AAChD,OAAO,EAAC,iBAAiB,EAAE,iBAAiB,EAAC,MAAM,OAAO,CAAC;AAK3D,UAAU,mBAAoB,SAAQ,yBAAyB;IAC3D,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;CACrB;AAED,UAAU,yBAA0B,SAAQ,UAAU;IAClD,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IACtD,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB;
|
|
1
|
+
{"version":3,"file":"CollectionItem.d.ts","sourceRoot":"","sources":["../../../../src/components/collection/CollectionItem.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAQ,UAAU,EAAC,MAAM,eAAe,CAAC;AAChD,OAAO,EAAC,iBAAiB,EAAE,iBAAiB,EAAC,MAAM,OAAO,CAAC;AAK3D,UAAU,mBAAoB,SAAQ,yBAAyB;IAC3D,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;CACrB;AAED,UAAU,yBAA0B,SAAQ,UAAU;IAClD,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IACtD,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB;AAyED,eAAO,MAAM,cAAc,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,mBAAmB,CAAC,CAYpF,CAAC"}
|
|
@@ -20,12 +20,13 @@ const RemoveButtonPlaceholder = ()=>/*#__PURE__*/ _jsx("div", {
|
|
|
20
20
|
width: 28
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
|
-
const StaticCollectionItem = ({ onRemove, removable = true, children })=>{
|
|
23
|
+
const StaticCollectionItem = ({ onRemove, removable = true, id, children })=>{
|
|
24
24
|
const ctx = useCollectionContext();
|
|
25
25
|
const removeButton = removable && onRemove ? /*#__PURE__*/ _jsx(RemoveButton, {
|
|
26
26
|
onClick: onRemove
|
|
27
27
|
}) : /*#__PURE__*/ _jsx(RemoveButtonPlaceholder, {});
|
|
28
28
|
return /*#__PURE__*/ _jsxs(Group, {
|
|
29
|
+
"data-testid": `item-${id}`,
|
|
29
30
|
...ctx.getStyles('item'),
|
|
30
31
|
children: [
|
|
31
32
|
children,
|
|
@@ -33,9 +34,10 @@ const StaticCollectionItem = ({ onRemove, removable = true, children })=>{
|
|
|
33
34
|
]
|
|
34
35
|
});
|
|
35
36
|
};
|
|
36
|
-
const DisabledCollectionItem = ({ children })=>{
|
|
37
|
+
const DisabledCollectionItem = ({ id, children })=>{
|
|
37
38
|
const ctx = useCollectionContext();
|
|
38
39
|
return /*#__PURE__*/ _jsx(Group, {
|
|
40
|
+
"data-testid": `item-${id}`,
|
|
39
41
|
...ctx.getStyles('item'),
|
|
40
42
|
children: children
|
|
41
43
|
});
|
|
@@ -49,6 +51,7 @@ const DraggableCollectionItem = ({ id, onRemove, removable = true, children })=>
|
|
|
49
51
|
id
|
|
50
52
|
});
|
|
51
53
|
return /*#__PURE__*/ _jsxs(Group, {
|
|
54
|
+
"data-testid": `item-${id}`,
|
|
52
55
|
ref: setNodeRef,
|
|
53
56
|
...ctx.getStyles('item', {
|
|
54
57
|
style: transform ? {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/collection/CollectionItem.tsx"],"sourcesContent":["import {DragAndDropSize24Px, IconCircleMinus} from '@coveord/plasma-react-icons';\nimport {useSortable} from '@dnd-kit/sortable';\nimport {CSS} from '@dnd-kit/utilities';\nimport {Group, GroupProps} from '@mantine/core';\nimport {FunctionComponent, PropsWithChildren} from 'react';\n\nimport {ActionIcon} from '../action-icon';\nimport {useCollectionContext} from './CollectionContext';\n\ninterface CollectionItemProps extends CollectionItemSharedProps {\n draggable?: boolean;\n disabled: boolean;\n}\n\ninterface CollectionItemSharedProps extends GroupProps {\n id: string;\n onRemove?: React.MouseEventHandler<HTMLButtonElement>;\n removable?: boolean;\n}\n\nconst RemoveButton: FunctionComponent<{\n onClick: React.MouseEventHandler<HTMLButtonElement>;\n}> = ({onClick}) => (\n <ActionIcon.Quaternary style={{alignSelf: 'center'}} onClick={onClick}>\n <IconCircleMinus aria-label=\"Remove\" size={20} />\n </ActionIcon.Quaternary>\n);\n\nconst RemoveButtonPlaceholder = () => <div style={{width: 28}} />;\n\nconst StaticCollectionItem: FunctionComponent<PropsWithChildren<CollectionItemSharedProps>> = ({\n onRemove,\n removable = true,\n children,\n}) => {\n const ctx = useCollectionContext();\n const removeButton = removable && onRemove ? <RemoveButton onClick={onRemove} /> : <RemoveButtonPlaceholder />;\n\n return (\n <Group {...ctx.getStyles('item')}>\n {children}\n {removeButton}\n </Group>\n );\n};\n\nconst DisabledCollectionItem: FunctionComponent<PropsWithChildren<CollectionItemSharedProps>> = ({children}) => {\n const ctx = useCollectionContext();\n return <Group {...ctx.getStyles('item')}
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/collection/CollectionItem.tsx"],"sourcesContent":["import {DragAndDropSize24Px, IconCircleMinus} from '@coveord/plasma-react-icons';\nimport {useSortable} from '@dnd-kit/sortable';\nimport {CSS} from '@dnd-kit/utilities';\nimport {Group, GroupProps} from '@mantine/core';\nimport {FunctionComponent, PropsWithChildren} from 'react';\n\nimport {ActionIcon} from '../action-icon';\nimport {useCollectionContext} from './CollectionContext';\n\ninterface CollectionItemProps extends CollectionItemSharedProps {\n draggable?: boolean;\n disabled: boolean;\n}\n\ninterface CollectionItemSharedProps extends GroupProps {\n id: string;\n onRemove?: React.MouseEventHandler<HTMLButtonElement>;\n removable?: boolean;\n}\n\nconst RemoveButton: FunctionComponent<{\n onClick: React.MouseEventHandler<HTMLButtonElement>;\n}> = ({onClick}) => (\n <ActionIcon.Quaternary style={{alignSelf: 'center'}} onClick={onClick}>\n <IconCircleMinus aria-label=\"Remove\" size={20} />\n </ActionIcon.Quaternary>\n);\n\nconst RemoveButtonPlaceholder = () => <div style={{width: 28}} />;\n\nconst StaticCollectionItem: FunctionComponent<PropsWithChildren<CollectionItemSharedProps>> = ({\n onRemove,\n removable = true,\n id,\n children,\n}) => {\n const ctx = useCollectionContext();\n const removeButton = removable && onRemove ? <RemoveButton onClick={onRemove} /> : <RemoveButtonPlaceholder />;\n\n return (\n <Group data-testid={`item-${id}`} {...ctx.getStyles('item')}>\n {children}\n {removeButton}\n </Group>\n );\n};\n\nconst DisabledCollectionItem: FunctionComponent<PropsWithChildren<CollectionItemSharedProps>> = ({id, children}) => {\n const ctx = useCollectionContext();\n return (\n <Group data-testid={`item-${id}`} {...ctx.getStyles('item')}>\n {children}\n </Group>\n );\n};\n\nconst DraggableCollectionItem: FunctionComponent<PropsWithChildren<CollectionItemSharedProps>> = ({\n id,\n onRemove,\n removable = true,\n children,\n}) => {\n const ctx = useCollectionContext();\n const removeButton = removable && onRemove ? <RemoveButton onClick={onRemove} /> : null;\n const {attributes, listeners, setNodeRef, transform, transition, isDragging, setActivatorNodeRef} = useSortable({\n id,\n });\n\n return (\n <Group\n data-testid={`item-${id}`}\n ref={setNodeRef}\n {...ctx.getStyles('item', {\n style: transform\n ? {\n transform: CSS.Transform.toString(transform),\n transition,\n }\n : undefined,\n })}\n data-isdragging={isDragging}\n >\n <div ref={setActivatorNodeRef} {...listeners} {...attributes} {...ctx.getStyles('dragHandle')}>\n <DragAndDropSize24Px height={16} />\n </div>\n {children}\n {removeButton}\n </Group>\n );\n};\n\nexport const CollectionItem: FunctionComponent<PropsWithChildren<CollectionItemProps>> = ({\n draggable,\n disabled,\n ...otherProps\n}) => {\n if (disabled) {\n return <DisabledCollectionItem {...otherProps} />;\n }\n if (draggable) {\n return <DraggableCollectionItem {...otherProps} />;\n }\n return <StaticCollectionItem {...otherProps} />;\n};\n"],"names":["DragAndDropSize24Px","IconCircleMinus","useSortable","CSS","Group","ActionIcon","useCollectionContext","RemoveButton","onClick","Quaternary","style","alignSelf","aria-label","size","RemoveButtonPlaceholder","div","width","StaticCollectionItem","onRemove","removable","id","children","ctx","removeButton","data-testid","getStyles","DisabledCollectionItem","DraggableCollectionItem","attributes","listeners","setNodeRef","transform","transition","isDragging","setActivatorNodeRef","ref","Transform","toString","undefined","data-isdragging","height","CollectionItem","draggable","disabled","otherProps"],"mappings":";AAAA,SAAQA,mBAAmB,EAAEC,eAAe,QAAO,8BAA8B;AACjF,SAAQC,WAAW,QAAO,oBAAoB;AAC9C,SAAQC,GAAG,QAAO,qBAAqB;AACvC,SAAQC,KAAK,QAAmB,gBAAgB;AAGhD,SAAQC,UAAU,QAAO,iBAAiB;AAC1C,SAAQC,oBAAoB,QAAO,sBAAsB;AAazD,MAAMC,eAED,CAAC,EAACC,OAAO,EAAC,iBACX,KAACH,WAAWI,UAAU;QAACC,OAAO;YAACC,WAAW;QAAQ;QAAGH,SAASA;kBAC1D,cAAA,KAACP;YAAgBW,cAAW;YAASC,MAAM;;;AAInD,MAAMC,0BAA0B,kBAAM,KAACC;QAAIL,OAAO;YAACM,OAAO;QAAE;;AAE5D,MAAMC,uBAAwF,CAAC,EAC3FC,QAAQ,EACRC,YAAY,IAAI,EAChBC,EAAE,EACFC,QAAQ,EACX;IACG,MAAMC,MAAMhB;IACZ,MAAMiB,eAAeJ,aAAaD,yBAAW,KAACX;QAAaC,SAASU;uBAAe,KAACJ;IAEpF,qBACI,MAACV;QAAMoB,eAAa,CAAC,KAAK,EAAEJ,IAAI;QAAG,GAAGE,IAAIG,SAAS,CAAC,OAAO;;YACtDJ;YACAE;;;AAGb;AAEA,MAAMG,yBAA0F,CAAC,EAACN,EAAE,EAAEC,QAAQ,EAAC;IAC3G,MAAMC,MAAMhB;IACZ,qBACI,KAACF;QAAMoB,eAAa,CAAC,KAAK,EAAEJ,IAAI;QAAG,GAAGE,IAAIG,SAAS,CAAC,OAAO;kBACtDJ;;AAGb;AAEA,MAAMM,0BAA2F,CAAC,EAC9FP,EAAE,EACFF,QAAQ,EACRC,YAAY,IAAI,EAChBE,QAAQ,EACX;IACG,MAAMC,MAAMhB;IACZ,MAAMiB,eAAeJ,aAAaD,yBAAW,KAACX;QAAaC,SAASU;SAAe;IACnF,MAAM,EAACU,UAAU,EAAEC,SAAS,EAAEC,UAAU,EAAEC,SAAS,EAAEC,UAAU,EAAEC,UAAU,EAAEC,mBAAmB,EAAC,GAAGhC,YAAY;QAC5GkB;IACJ;IAEA,qBACI,MAAChB;QACGoB,eAAa,CAAC,KAAK,EAAEJ,IAAI;QACzBe,KAAKL;QACJ,GAAGR,IAAIG,SAAS,CAAC,QAAQ;YACtBf,OAAOqB,YACD;gBACIA,WAAW5B,IAAIiC,SAAS,CAACC,QAAQ,CAACN;gBAClCC;YACJ,IACAM;QACV,EAAE;QACFC,mBAAiBN;;0BAEjB,KAAClB;gBAAIoB,KAAKD;gBAAsB,GAAGL,SAAS;gBAAG,GAAGD,UAAU;gBAAG,GAAGN,IAAIG,SAAS,CAAC,aAAa;0BACzF,cAAA,KAACzB;oBAAoBwC,QAAQ;;;YAEhCnB;YACAE;;;AAGb;AAEA,OAAO,MAAMkB,iBAA4E,CAAC,EACtFC,SAAS,EACTC,QAAQ,EACR,GAAGC,YACN;IACG,IAAID,UAAU;QACV,qBAAO,KAACjB;YAAwB,GAAGkB,UAAU;;IACjD;IACA,IAAIF,WAAW;QACX,qBAAO,KAACf;YAAyB,GAAGiB,UAAU;;IAClD;IACA,qBAAO,KAAC3B;QAAsB,GAAG2B,UAAU;;AAC/C,EAAE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/index.ts"],"sourcesContent":["export * from './accordion';\nexport * from './action-icon';\nexport * from './alert';\nexport * from './badge';\nexport * from './blank-slate';\nexport * from './browser-preview';\nexport * from './button';\nexport * from './code-editor';\nexport * from './collection';\nexport * from './copyToClipboard';\nexport * from './date-range-picker';\nexport * from './ellipsis-text';\nexport * from './header';\nexport * from './info-token';\nexport * from './inline-confirm';\nexport * from './menu';\nexport * from './modal';\nexport * from './prompt';\nexport * from './read-only';\nexport * from './sticky-footer';\nexport * from './table';\nexport * from './child-form';\n"],"names":[],"mappings":"AAAA,cAAc,cAAc;AAC5B,cAAc,gBAAgB;AAC9B,cAAc,UAAU;AACxB,cAAc,UAAU;AACxB,cAAc,gBAAgB;AAC9B,cAAc,oBAAoB;AAClC,cAAc,WAAW;AACzB,cAAc,gBAAgB;AAC9B,cAAc,eAAe;AAC7B,cAAc,oBAAoB;AAClC,cAAc,sBAAsB;AACpC,cAAc,kBAAkB;AAChC,cAAc,WAAW;AACzB,cAAc,eAAe;AAC7B,cAAc,mBAAmB;AACjC,cAAc,SAAS;AACvB,cAAc,UAAU;AACxB,cAAc,WAAW;AACzB,cAAc,cAAc;AAC5B,cAAc,kBAAkB;AAChC,cAAc,UAAU;AACxB,cAAc,eAAe"}
|
|
1
|
+
{"version":3,"sources":["../../../src/components/index.ts"],"sourcesContent":["export * from './accordion';\nexport * from './action-icon';\nexport * from './alert';\nexport * from './badge';\nexport * from './blank-slate';\nexport * from './browser-preview';\nexport * from './button';\nexport * from './code-editor';\nexport * from './collection';\nexport * from './copyToClipboard';\nexport * from './date-range-picker';\nexport * from './ellipsis-text';\nexport * from './header';\nexport * from './info-token';\nexport * from './inline-confirm';\nexport * from './menu';\nexport * from './modal';\nexport * from './prompt';\nexport * from './read-only';\nexport * from './sticky-footer';\nexport * from './table';\nexport * from './child-form';\nexport * from './checkbox';\nexport * from './loader';\n"],"names":[],"mappings":"AAAA,cAAc,cAAc;AAC5B,cAAc,gBAAgB;AAC9B,cAAc,UAAU;AACxB,cAAc,UAAU;AACxB,cAAc,gBAAgB;AAC9B,cAAc,oBAAoB;AAClC,cAAc,WAAW;AACzB,cAAc,gBAAgB;AAC9B,cAAc,eAAe;AAC7B,cAAc,oBAAoB;AAClC,cAAc,sBAAsB;AACpC,cAAc,kBAAkB;AAChC,cAAc,WAAW;AACzB,cAAc,eAAe;AAC7B,cAAc,mBAAmB;AACjC,cAAc,SAAS;AACvB,cAAc,UAAU;AACxB,cAAc,WAAW;AACzB,cAAc,cAAc;AAC5B,cAAc,kBAAkB;AAChC,cAAc,UAAU;AACxB,cAAc,eAAe;AAC7B,cAAc,aAAa;AAC3B,cAAc,WAAW"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CircleLoader.d.ts","sourceRoot":"","sources":["../../../../src/components/loader/CircleLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAM,sBAAsB,EAAC,MAAM,eAAe,CAAC;AAK1D,eAAO,MAAM,YAAY,EAAE,sBAEzB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Box } from '@mantine/core';
|
|
3
|
+
import cx from 'clsx';
|
|
4
|
+
import { forwardRef } from 'react';
|
|
5
|
+
import classes from './CircleLoader.module.css';
|
|
6
|
+
export const CircleLoader = /*#__PURE__*/ forwardRef(({ className, ...others }, ref)=>/*#__PURE__*/ _jsx(Box, {
|
|
7
|
+
component: "span",
|
|
8
|
+
className: cx(classes.root, className),
|
|
9
|
+
...others,
|
|
10
|
+
ref: ref
|
|
11
|
+
}));
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=CircleLoader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/loader/CircleLoader.tsx"],"sourcesContent":["import {Box, MantineLoaderComponent} from '@mantine/core';\nimport cx from 'clsx';\nimport {forwardRef} from 'react';\nimport classes from './CircleLoader.module.css';\n\nexport const CircleLoader: MantineLoaderComponent = forwardRef(({className, ...others}, ref) => (\n <Box component=\"span\" className={cx(classes.root, className)} {...others} ref={ref} />\n));\n"],"names":["Box","cx","forwardRef","classes","CircleLoader","className","others","ref","component","root"],"mappings":";AAAA,SAAQA,GAAG,QAA+B,gBAAgB;AAC1D,OAAOC,QAAQ,OAAO;AACtB,SAAQC,UAAU,QAAO,QAAQ;AACjC,OAAOC,aAAa,4BAA4B;AAEhD,OAAO,MAAMC,6BAAuCF,WAAW,CAAC,EAACG,SAAS,EAAE,GAAGC,QAAO,EAAEC,oBACpF,KAACP;QAAIQ,WAAU;QAAOH,WAAWJ,GAAGE,QAAQM,IAAI,EAAEJ;QAAa,GAAGC,MAAM;QAAEC,KAAKA;QAChF"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
.root {
|
|
2
|
+
--loader-light-color: var(--mantine-primary-color-light);
|
|
3
|
+
|
|
4
|
+
display: inline-block;
|
|
5
|
+
width: var(--loader-size);
|
|
6
|
+
height: var(--loader-size);
|
|
7
|
+
|
|
8
|
+
&::after {
|
|
9
|
+
content: '';
|
|
10
|
+
display: block;
|
|
11
|
+
width: var(--loader-size);
|
|
12
|
+
height: var(--loader-size);
|
|
13
|
+
border-radius: 10000px;
|
|
14
|
+
border-width: calc(var(--loader-size) / 8);
|
|
15
|
+
border-style: solid;
|
|
16
|
+
border-color: var(--loader-light-color) var(--loader-light-color) var(--loader-light-color) var(--loader-color);
|
|
17
|
+
animation: circle-loader-animation 1.2s linear infinite;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@keyframes circle-loader-animation {
|
|
22
|
+
0% {
|
|
23
|
+
transform: rotate(0deg);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
100% {
|
|
27
|
+
transform: rotate(360deg);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/loader/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/loader/index.ts"],"sourcesContent":["export * from './CircleLoader';\n"],"names":[],"mappings":"AAAA,cAAc,iBAAiB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export const readOnlyInputStyles = (theme)=>({
|
|
2
2
|
wrapper: {
|
|
3
|
-
'--input-bd': '
|
|
4
|
-
'--input-bg': theme.colors.gray[
|
|
3
|
+
'--input-bd': 'var(--mantine-color-default-border)',
|
|
4
|
+
'--input-bg': theme.colors.gray[1],
|
|
5
5
|
'--input-color': theme.colors.gray[7],
|
|
6
6
|
'--input-placeholder-color': theme.colors.gray[7]
|
|
7
7
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/read-only/ReadOnlyInputStyles.ts"],"sourcesContent":["import {type MantineTheme} from '@mantine/core';\n\nexport const readOnlyInputStyles = (theme: MantineTheme) => ({\n wrapper: {\n '--input-bd': '
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/read-only/ReadOnlyInputStyles.ts"],"sourcesContent":["import {type MantineTheme} from '@mantine/core';\n\nexport const readOnlyInputStyles = (theme: MantineTheme) => ({\n wrapper: {\n '--input-bd': 'var(--mantine-color-default-border)',\n '--input-bg': theme.colors.gray[1],\n '--input-color': theme.colors.gray[7],\n '--input-placeholder-color': theme.colors.gray[7],\n },\n label: {\n '--input-asterisk-color': theme.colors.red[2],\n },\n input: {\n cursor: 'text',\n },\n});\n"],"names":["readOnlyInputStyles","theme","wrapper","colors","gray","label","red","input","cursor"],"mappings":"AAEA,OAAO,MAAMA,sBAAsB,CAACC,QAAyB,CAAA;QACzDC,SAAS;YACL,cAAc;YACd,cAAcD,MAAME,MAAM,CAACC,IAAI,CAAC,EAAE;YAClC,iBAAiBH,MAAME,MAAM,CAACC,IAAI,CAAC,EAAE;YACrC,6BAA6BH,MAAME,MAAM,CAACC,IAAI,CAAC,EAAE;QACrD;QACAC,OAAO;YACH,0BAA0BJ,MAAME,MAAM,CAACG,GAAG,CAAC,EAAE;QACjD;QACAC,OAAO;YACHC,QAAQ;QACZ;IACJ,CAAA,EAAG"}
|
|
@@ -1,9 +1,45 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/*
|
|
2
|
+
`readonly` state on checkboxes is not something that exists in Mantine.
|
|
3
|
+
So we are allowing ourselves some custom style to achieve the desired effect
|
|
4
|
+
*/
|
|
5
|
+
.input {
|
|
6
|
+
@mixin light {
|
|
7
|
+
/* targets the default checkbox without overiding mantine's base rules */
|
|
8
|
+
&:not([data-indeterminate], :checked, [readonly], :disabled, [data-error='true']) {
|
|
9
|
+
border-color: var(--coveo-color-input-border);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/* mantine doesn't have a concept of readonly checkbox */
|
|
13
|
+
&[readonly] {
|
|
14
|
+
border-color: var(--mantine-color-default-border);
|
|
15
|
+
background-color: var(--coveo-color-bg-readonly);
|
|
16
|
+
color: var(--coveo-color-text-readonly);
|
|
17
|
+
|
|
18
|
+
& + .icon {
|
|
19
|
+
color: var(--coveo-color-text-readonly);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* mantine hardcodes disabled styles so we need to write custom styles */
|
|
24
|
+
&:disabled {
|
|
25
|
+
border-color: var(--mantine-color-default-border);
|
|
26
|
+
background-color: var(--coveo-color-bg-disabled);
|
|
27
|
+
color: var(--coveo-color-text-disabled);
|
|
28
|
+
|
|
29
|
+
& + .icon {
|
|
30
|
+
color: var(--coveo-color-text-disabled);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
3
34
|
}
|
|
4
35
|
|
|
5
|
-
.
|
|
6
|
-
@mixin
|
|
7
|
-
|
|
36
|
+
.labelWrapper {
|
|
37
|
+
@mixin light {
|
|
38
|
+
&[data-disabled] {
|
|
39
|
+
.label,
|
|
40
|
+
.description {
|
|
41
|
+
color: var(--coveo-color-text-disabled);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
8
44
|
}
|
|
9
45
|
}
|
|
@@ -1,5 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
`readonly` state on checkboxes is not something that exists in Mantine.
|
|
3
|
+
So we are allowing ourselves some custom style to achieve the desired effect
|
|
4
|
+
*/
|
|
1
5
|
.indicator {
|
|
2
6
|
@mixin where-light {
|
|
3
|
-
|
|
7
|
+
&[readonly] {
|
|
8
|
+
border-color: var(--coveo-color-input-border);
|
|
9
|
+
background-color: var(--checkbox-color);
|
|
10
|
+
}
|
|
4
11
|
}
|
|
5
12
|
}
|
|
@@ -10,10 +10,16 @@
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
&[data-disabled] {
|
|
13
|
-
|
|
13
|
+
> .section {
|
|
14
|
+
> svg {
|
|
15
|
+
color: var(--input-disabled-color);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
14
18
|
}
|
|
15
19
|
}
|
|
16
20
|
|
|
17
21
|
.section {
|
|
18
|
-
|
|
22
|
+
> svg {
|
|
23
|
+
color: var(--mantine-color-gray-3);
|
|
24
|
+
}
|
|
19
25
|
}
|
|
@@ -1,5 +1,14 @@
|
|
|
1
|
+
.root {
|
|
2
|
+
--pagination-active-bg: var(--mantine-primary-color-light);
|
|
3
|
+
--pagination-active-color: var(--mantine-primary-color-filled);
|
|
4
|
+
}
|
|
5
|
+
|
|
1
6
|
.control {
|
|
2
7
|
@mixin where-light {
|
|
3
|
-
border-color: var(--
|
|
8
|
+
border-color: var(--mantine-color-default-border);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&[data-active] {
|
|
12
|
+
border: none;
|
|
4
13
|
}
|
|
5
14
|
}
|
|
@@ -1,10 +1,38 @@
|
|
|
1
1
|
.labelWrapper {
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: flex-start;
|
|
4
|
+
|
|
5
|
+
@mixin light {
|
|
6
|
+
color: var(--coveo-color-title);
|
|
7
|
+
|
|
8
|
+
&[data-disabled] {
|
|
9
|
+
.label,
|
|
10
|
+
.description {
|
|
11
|
+
color: var(--coveo-color-text-disabled);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
4
15
|
}
|
|
5
16
|
|
|
6
17
|
.radio {
|
|
7
|
-
@mixin
|
|
8
|
-
|
|
18
|
+
@mixin light {
|
|
19
|
+
&:not([data-disabled]) {
|
|
20
|
+
border-color: var(--coveo-color-input-border);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&:disabled {
|
|
24
|
+
background-color: var(--coveo-color-bg-disabled);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* mantine hardcodes disabled styles so we need to write custom styles */
|
|
28
|
+
&[readonly] {
|
|
29
|
+
border-color: var(--mantine-color-default-border);
|
|
30
|
+
background-color: var(--coveo-color-bg-readonly);
|
|
31
|
+
color: var(--coveo-color-text-readonly);
|
|
32
|
+
|
|
33
|
+
& + .icon {
|
|
34
|
+
color: var(--coveo-color-text-readonly);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
9
37
|
}
|
|
10
38
|
}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
.input {
|
|
2
2
|
cursor: text;
|
|
3
3
|
|
|
4
|
-
--input-bd:
|
|
5
|
-
--input-bg: var(--mantine-color-
|
|
4
|
+
--input-bd: var(--mantine-color-default-border);
|
|
5
|
+
--input-bg: var(--mantine-color-gray-1);
|
|
6
6
|
--input-color: var(--mantine-color-text);
|
|
7
|
-
--input-placeholder-color: var(--mantine-color-
|
|
7
|
+
--input-placeholder-color: var(--mantine-color-placeholder);
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.section {
|
|
11
11
|
--input-section-color: var(--mantine-color-text);
|
|
12
|
+
|
|
13
|
+
> svg {
|
|
14
|
+
color: var(--mantine-color-gray-3);
|
|
15
|
+
}
|
|
12
16
|
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
.option {
|
|
2
|
+
@mixin light {
|
|
3
|
+
color: var(--coveo-color-title);
|
|
4
|
+
border-radius: var(--mantine-radius-sm);
|
|
5
|
+
|
|
6
|
+
@mixin hover {
|
|
7
|
+
&:not([data-combobox-disabled], [data-checked], [data-combobox-selected]) {
|
|
8
|
+
background-color: var(--mantine-color-default-hover);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&[data-combobox-disabled] {
|
|
13
|
+
opacity: 1;
|
|
14
|
+
color: var(--coveo-color-text-disabled);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&[data-combobox-active='true'] {
|
|
18
|
+
background-color: var(--mantine-primary-color-light);
|
|
19
|
+
color: var(--mantine-primary-color-filled);
|
|
20
|
+
|
|
21
|
+
+ svg {
|
|
22
|
+
opacity: 1;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&[data-combobox-selected] {
|
|
27
|
+
background-color: var(--mantine-primary-color-filled);
|
|
28
|
+
color: white;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.groupLabel {
|
|
34
|
+
@mixin light {
|
|
35
|
+
color: var(--mantine-color-placeholder);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.input {
|
|
40
|
+
@mixin light {
|
|
41
|
+
&[data-disabled] {
|
|
42
|
+
--input-disabled-bg: var(--coveo-color-bg-disabled);
|
|
43
|
+
--input-bd: var(--mantine-color-default-border);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Theme.d.ts","sourceRoot":"","sources":["../../../src/theme/Theme.tsx"],"names":[],"mappings":"AAUA,OAAO,EAmBH,oBAAoB,EAkBvB,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"Theme.d.ts","sourceRoot":"","sources":["../../../src/theme/Theme.tsx"],"names":[],"mappings":"AAUA,OAAO,EAmBH,oBAAoB,EAkBvB,MAAM,eAAe,CAAC;AA8BvB,eAAO,MAAM,WAAW,EAAE,oBAoUxB,CAAC"}
|
package/dist/esm/theme/Theme.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { ArrowHeadLeftSize16Px, ArrowHeadRightSize16Px, CheckSize16Px, CrossSize16Px, FilterSize16Px, IconSlash, InfoSize24Px } from '@coveord/plasma-react-icons';
|
|
3
3
|
import { color } from '@coveord/plasma-tokens';
|
|
4
4
|
import { ActionIcon, Alert, AppShell, Badge, Breadcrumbs, Button, Checkbox, CloseButton, ColorSwatch, Combobox, ComboboxSearch, createTheme, deepMerge, Divider, Input, InputWrapper, List, Loader, Modal, MultiSelect, NavLink, Notification, Pagination, Popover, Radio, ScrollArea, SegmentedControl, Select, Skeleton, Stepper, Switch, Table, Tabs, Text, Tooltip } from '@mantine/core';
|
|
5
|
-
import { InfoToken } from '../components';
|
|
5
|
+
import { CheckboxIcon, CircleLoader, InfoToken } from '../components';
|
|
6
6
|
import ActionIconClasses from '../styles/ActionIcon.module.css';
|
|
7
7
|
import AlertClasses from '../styles/Alert.module.css';
|
|
8
8
|
import BadgeClasses from '../styles/Badge.module.css';
|
|
@@ -22,6 +22,7 @@ import ReadOnlyInputClasses from '../styles/ReadOnlyInput.module.css';
|
|
|
22
22
|
import ReadOnlyStateClasses from '../styles/ReadOnlyState.module.css';
|
|
23
23
|
import ScrollAreaClasses from '../styles/ScrollArea.module.css';
|
|
24
24
|
import SegmentedControlClasses from '../styles/SegmentedControl.module.css';
|
|
25
|
+
import SelectClasses from '../styles/Select.module.css';
|
|
25
26
|
import SkeletonClasses from '../styles/Skeleton.module.css';
|
|
26
27
|
import StepperClasses from '../styles/Stepper.module.css';
|
|
27
28
|
import TableClasses from '../styles/Table.module.css';
|
|
@@ -134,7 +135,8 @@ export const plasmaTheme = createTheme({
|
|
|
134
135
|
Badge: Badge.extend({
|
|
135
136
|
classNames: BadgeClasses,
|
|
136
137
|
defaultProps: {
|
|
137
|
-
variant: 'light'
|
|
138
|
+
variant: 'light',
|
|
139
|
+
tt: 'none'
|
|
138
140
|
}
|
|
139
141
|
}),
|
|
140
142
|
Breadcrumbs: Breadcrumbs.extend({
|
|
@@ -155,31 +157,20 @@ export const plasmaTheme = createTheme({
|
|
|
155
157
|
}),
|
|
156
158
|
Checkbox: Checkbox.extend({
|
|
157
159
|
defaultProps: {
|
|
158
|
-
radius: 'sm'
|
|
160
|
+
radius: 'sm',
|
|
161
|
+
icon: CheckboxIcon
|
|
159
162
|
},
|
|
160
163
|
classNames: (theme, props)=>{
|
|
161
164
|
if (props.readOnly && !props.disabled) {
|
|
162
165
|
return deepMerge(CheckboxClasses, ReadOnlyStateClasses);
|
|
163
166
|
}
|
|
164
167
|
return CheckboxClasses;
|
|
165
|
-
},
|
|
166
|
-
vars: (theme, props)=>{
|
|
167
|
-
if (props.readOnly && !props.disabled) {
|
|
168
|
-
return {
|
|
169
|
-
root: {
|
|
170
|
-
'--checkbox-icon-color': theme.colors.gray[7],
|
|
171
|
-
'--checkbox-color': theme.colors.gray[2]
|
|
172
|
-
}
|
|
173
|
-
};
|
|
174
|
-
}
|
|
175
|
-
return {
|
|
176
|
-
root: {}
|
|
177
|
-
};
|
|
178
168
|
}
|
|
179
169
|
}),
|
|
180
170
|
CheckboxIndicator: Checkbox.Indicator.extend({
|
|
181
171
|
defaultProps: {
|
|
182
|
-
radius: 'sm'
|
|
172
|
+
radius: 'sm',
|
|
173
|
+
icon: CheckboxIcon
|
|
183
174
|
},
|
|
184
175
|
classNames: CheckboxIndicatorClasses
|
|
185
176
|
}),
|
|
@@ -260,7 +251,11 @@ export const plasmaTheme = createTheme({
|
|
|
260
251
|
}),
|
|
261
252
|
Loader: Loader.extend({
|
|
262
253
|
defaultProps: {
|
|
263
|
-
|
|
254
|
+
loaders: {
|
|
255
|
+
...Loader.defaultLoaders,
|
|
256
|
+
circle: CircleLoader
|
|
257
|
+
},
|
|
258
|
+
type: 'circle',
|
|
264
259
|
role: 'presentation'
|
|
265
260
|
}
|
|
266
261
|
}),
|
|
@@ -353,8 +348,10 @@ export const plasmaTheme = createTheme({
|
|
|
353
348
|
}),
|
|
354
349
|
Select: Select.extend({
|
|
355
350
|
defaultProps: {
|
|
356
|
-
allowDeselect: false
|
|
357
|
-
|
|
351
|
+
allowDeselect: false,
|
|
352
|
+
withCheckIcon: false
|
|
353
|
+
},
|
|
354
|
+
classNames: SelectClasses
|
|
358
355
|
}),
|
|
359
356
|
Skeleton: Skeleton.extend({
|
|
360
357
|
classNames: SkeletonClasses
|