@coveord/plasma-mantine 59.6.0 → 59.7.1
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 -90
- package/dist/.tsbuildinfo +1 -1
- package/dist/cjs/components/ActionIcon/ActionIcon.js +21 -3
- package/dist/cjs/components/ActionIcon/ActionIcon.js.map +1 -1
- package/dist/cjs/components/Alert/Alert.d.ts.map +1 -1
- package/dist/cjs/components/Alert/Alert.js +6 -8
- package/dist/cjs/components/Alert/Alert.js.map +1 -1
- package/dist/cjs/components/Header/Header.context.d.ts +2 -1
- package/dist/cjs/components/Header/Header.context.d.ts.map +1 -1
- package/dist/cjs/components/Header/Header.context.js.map +1 -1
- package/dist/cjs/components/Header/Header.js +2 -1
- package/dist/cjs/components/Header/Header.js.map +1 -1
- package/dist/cjs/components/Header/Header.module.css +0 -1
- package/dist/cjs/components/Header/HeaderDocAnchor/HeaderDocAnchor.d.ts.map +1 -1
- package/dist/cjs/components/Header/HeaderDocAnchor/HeaderDocAnchor.js +12 -7
- package/dist/cjs/components/Header/HeaderDocAnchor/HeaderDocAnchor.js.map +1 -1
- package/dist/cjs/components/InfoToken/InfoToken.d.ts.map +1 -1
- package/dist/cjs/components/InfoToken/InfoToken.js +8 -6
- package/dist/cjs/components/InfoToken/InfoToken.js.map +1 -1
- package/dist/cjs/components/Input/InputLabelInfo.js +1 -1
- package/dist/cjs/components/Input/InputLabelInfo.js.map +1 -1
- package/dist/cjs/components/Table/Table.d.ts +46 -0
- package/dist/cjs/components/Table/Table.d.ts.map +1 -1
- package/dist/cjs/components/Table/Table.js +48 -17
- package/dist/cjs/components/Table/Table.js.map +1 -1
- package/dist/cjs/theme/Plasmantine.d.ts.map +1 -1
- package/dist/cjs/theme/Plasmantine.js +24 -4
- package/dist/cjs/theme/Plasmantine.js.map +1 -1
- package/dist/cjs/theme/Theme.d.ts.map +1 -1
- package/dist/cjs/theme/Theme.js +1 -9
- package/dist/cjs/theme/Theme.js.map +1 -1
- package/dist/esm/components/ActionIcon/ActionIcon.js +15 -3
- package/dist/esm/components/ActionIcon/ActionIcon.js.map +1 -1
- package/dist/esm/components/Alert/Alert.d.ts.map +1 -1
- package/dist/esm/components/Alert/Alert.js +6 -8
- package/dist/esm/components/Alert/Alert.js.map +1 -1
- package/dist/esm/components/Header/Header.context.d.ts +2 -1
- package/dist/esm/components/Header/Header.context.d.ts.map +1 -1
- package/dist/esm/components/Header/Header.context.js.map +1 -1
- package/dist/esm/components/Header/Header.js +2 -1
- package/dist/esm/components/Header/Header.js.map +1 -1
- package/dist/esm/components/Header/Header.module.css +0 -1
- package/dist/esm/components/Header/HeaderDocAnchor/HeaderDocAnchor.d.ts.map +1 -1
- package/dist/esm/components/Header/HeaderDocAnchor/HeaderDocAnchor.js +10 -6
- package/dist/esm/components/Header/HeaderDocAnchor/HeaderDocAnchor.js.map +1 -1
- package/dist/esm/components/InfoToken/InfoToken.d.ts.map +1 -1
- package/dist/esm/components/InfoToken/InfoToken.js +8 -6
- package/dist/esm/components/InfoToken/InfoToken.js.map +1 -1
- package/dist/esm/components/Input/InputLabelInfo.js +1 -1
- package/dist/esm/components/Input/InputLabelInfo.js.map +1 -1
- package/dist/esm/components/Table/Table.d.ts +46 -0
- package/dist/esm/components/Table/Table.d.ts.map +1 -1
- package/dist/esm/components/Table/Table.js +48 -17
- package/dist/esm/components/Table/Table.js.map +1 -1
- package/dist/esm/theme/Plasmantine.d.ts.map +1 -1
- package/dist/esm/theme/Plasmantine.js +22 -3
- package/dist/esm/theme/Plasmantine.js.map +1 -1
- package/dist/esm/theme/Theme.d.ts.map +1 -1
- package/dist/esm/theme/Theme.js +1 -9
- package/dist/esm/theme/Theme.js.map +1 -1
- package/package.json +3 -3
- package/src/__tests__/Utils.tsx +1 -17
- package/src/components/ActionIcon/ActionIcon.tsx +3 -3
- package/src/components/Alert/Alert.tsx +6 -8
- package/src/components/DateRangePicker/__tests__/DateRangePicker.spec.tsx +2 -2
- package/src/components/DateRangePicker/__tests__/DateRangePickerPopoverCalendar.spec.tsx +2 -2
- package/src/components/Header/Header.context.ts +2 -1
- package/src/components/Header/Header.module.css +0 -1
- package/src/components/Header/Header.tsx +3 -3
- package/src/components/Header/HeaderDocAnchor/HeaderDocAnchor.tsx +11 -16
- package/src/components/Header/__tests__/Header.spec.tsx +1 -1
- package/src/components/InfoToken/InfoToken.tsx +8 -6
- package/src/components/Input/InputLabelInfo.tsx +1 -1
- package/src/components/Input/__tests__/Input.spec.tsx +1 -1
- package/src/components/Switch/__tests__/Switch.spec.tsx +1 -1
- package/src/components/Table/Table.tsx +54 -6
- package/src/components/Table/__tests__/Table.spec.tsx +36 -0
- package/src/theme/Plasmantine.tsx +21 -3
- package/src/theme/Theme.tsx +0 -4
- package/src/theme/__tests__/Plasmantine.spec.tsx +48 -0
|
@@ -49,15 +49,33 @@ var ActionIconPrimary = ActionIcon.withProps({
|
|
|
49
49
|
});
|
|
50
50
|
var ActionIconSecondary = ActionIcon.withProps({
|
|
51
51
|
variant: 'light',
|
|
52
|
-
|
|
52
|
+
vars: function vars() {
|
|
53
|
+
return {
|
|
54
|
+
root: {
|
|
55
|
+
'--ai-color': 'var(--mantine-primary-color-filled)'
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
}
|
|
53
59
|
});
|
|
54
60
|
var ActionIconTertiary = ActionIcon.withProps({
|
|
55
61
|
variant: 'default',
|
|
56
|
-
|
|
62
|
+
vars: function vars() {
|
|
63
|
+
return {
|
|
64
|
+
root: {
|
|
65
|
+
'--ai-color': 'var(--mantine-primary-color-filled)'
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
}
|
|
57
69
|
});
|
|
58
70
|
var ActionIconQuaternary = ActionIcon.withProps({
|
|
59
71
|
variant: 'subtle',
|
|
60
|
-
|
|
72
|
+
vars: function vars() {
|
|
73
|
+
return {
|
|
74
|
+
root: {
|
|
75
|
+
'--ai-color': 'var(--mantine-primary-color-filled)'
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
}
|
|
61
79
|
});
|
|
62
80
|
var ActionIconDestructive = ActionIcon.withProps({
|
|
63
81
|
variant: 'filled',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/ActionIcon/ActionIcon.tsx"],"sourcesContent":["import {\n ActionIconCssVariables,\n ActionIconStylesNames,\n ActionIconVariant,\n Factory,\n ActionIcon as MantineActionIcon,\n polymorphicFactory,\n type ActionIconGroup,\n type ActionIconProps as MantineActionIconProps,\n} from '@mantine/core';\nimport {ComponentType} from 'react';\nimport {ClickHandler, useClickWithLoading} from '../../hooks/useClickWithLoading.js';\nimport {ButtonWithDisabledTooltip, ButtonWithDisabledTooltipProps} from '../Button/ButtonWithDisabledTooltip.js';\n\nexport interface ActionIconProps extends MantineActionIconProps, ButtonWithDisabledTooltipProps {\n /**\n * Handler executed on click.\n * Supports async handlers - the button will show a loading state while the promise resolves.\n */\n onClick?: ClickHandler<HTMLButtonElement>;\n}\n\ntype ActionIconOverloadFactory = Factory<{\n props: ActionIconProps;\n defaultRef: HTMLButtonElement;\n defaultComponent: 'button';\n stylesNames: ActionIconStylesNames;\n vars: ActionIconCssVariables;\n variant: ActionIconVariant;\n staticComponents: {\n Group: typeof ActionIconGroup;\n Primary: typeof ActionIconPrimary;\n Secondary: typeof ActionIconSecondary;\n Tertiary: typeof ActionIconTertiary;\n Quaternary: typeof ActionIconQuaternary;\n DestructivePrimary: typeof ActionIconDestructive;\n DestructiveSecondary: typeof ActionIconDestructiveSecondary;\n DestructiveTertiary: typeof ActionIconDestructiveTertiary;\n DestructiveQuaternary: typeof ActionIconDestructiveQuaternary;\n };\n}>;\n\nexport const ActionIcon = polymorphicFactory<ActionIconOverloadFactory>(\n ({disabledTooltip, disabled, disabledTooltipProps, loading, onClick, ...others}, ref) => {\n const {isLoading, handleClick} = useClickWithLoading(onClick);\n return (\n <ButtonWithDisabledTooltip\n disabled={disabled}\n disabledTooltip={disabledTooltip}\n disabledTooltipProps={disabledTooltipProps}\n fullWidth={others.fullWidth}\n >\n <MantineActionIcon\n loaderProps={{type: 'oval'}}\n ref={ref}\n loading={isLoading || loading}\n onClick={handleClick}\n disabled={disabled}\n {...others}\n />\n </ButtonWithDisabledTooltip>\n );\n },\n);\n\nconst ActionIconPrimary = ActionIcon.withProps({\n variant: 'filled',\n});\nconst ActionIconSecondary = ActionIcon.withProps({\n variant: 'light',\n color: 'var(--
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/ActionIcon/ActionIcon.tsx"],"sourcesContent":["import {\n ActionIconCssVariables,\n ActionIconStylesNames,\n ActionIconVariant,\n Factory,\n ActionIcon as MantineActionIcon,\n polymorphicFactory,\n type ActionIconGroup,\n type ActionIconProps as MantineActionIconProps,\n} from '@mantine/core';\nimport {ComponentType} from 'react';\nimport {ClickHandler, useClickWithLoading} from '../../hooks/useClickWithLoading.js';\nimport {ButtonWithDisabledTooltip, ButtonWithDisabledTooltipProps} from '../Button/ButtonWithDisabledTooltip.js';\n\nexport interface ActionIconProps extends MantineActionIconProps, ButtonWithDisabledTooltipProps {\n /**\n * Handler executed on click.\n * Supports async handlers - the button will show a loading state while the promise resolves.\n */\n onClick?: ClickHandler<HTMLButtonElement>;\n}\n\ntype ActionIconOverloadFactory = Factory<{\n props: ActionIconProps;\n defaultRef: HTMLButtonElement;\n defaultComponent: 'button';\n stylesNames: ActionIconStylesNames;\n vars: ActionIconCssVariables;\n variant: ActionIconVariant;\n staticComponents: {\n Group: typeof ActionIconGroup;\n Primary: typeof ActionIconPrimary;\n Secondary: typeof ActionIconSecondary;\n Tertiary: typeof ActionIconTertiary;\n Quaternary: typeof ActionIconQuaternary;\n DestructivePrimary: typeof ActionIconDestructive;\n DestructiveSecondary: typeof ActionIconDestructiveSecondary;\n DestructiveTertiary: typeof ActionIconDestructiveTertiary;\n DestructiveQuaternary: typeof ActionIconDestructiveQuaternary;\n };\n}>;\n\nexport const ActionIcon = polymorphicFactory<ActionIconOverloadFactory>(\n ({disabledTooltip, disabled, disabledTooltipProps, loading, onClick, ...others}, ref) => {\n const {isLoading, handleClick} = useClickWithLoading(onClick);\n return (\n <ButtonWithDisabledTooltip\n disabled={disabled}\n disabledTooltip={disabledTooltip}\n disabledTooltipProps={disabledTooltipProps}\n fullWidth={others.fullWidth}\n >\n <MantineActionIcon\n loaderProps={{type: 'oval'}}\n ref={ref}\n loading={isLoading || loading}\n onClick={handleClick}\n disabled={disabled}\n {...others}\n />\n </ButtonWithDisabledTooltip>\n );\n },\n);\n\nconst ActionIconPrimary = ActionIcon.withProps({\n variant: 'filled',\n});\nconst ActionIconSecondary = ActionIcon.withProps({\n variant: 'light',\n vars: () => ({root: {'--ai-color': 'var(--mantine-primary-color-filled)'}}),\n});\nconst ActionIconTertiary = ActionIcon.withProps({\n variant: 'default',\n vars: () => ({root: {'--ai-color': 'var(--mantine-primary-color-filled)'}}),\n});\nconst ActionIconQuaternary = ActionIcon.withProps({\n variant: 'subtle',\n vars: () => ({root: {'--ai-color': 'var(--mantine-primary-color-filled)'}}),\n});\n\nconst ActionIconDestructive = ActionIcon.withProps({variant: 'filled', color: 'var(--mantine-color-error)'});\nconst ActionIconDestructiveSecondary = ActionIcon.withProps({variant: 'light', color: 'var(--mantine-color-error)'});\nconst ActionIconDestructiveTertiary = ActionIcon.withProps({\n variant: 'default',\n vars: () => ({root: {'--ai-color': 'var(--mantine-color-error)'}}),\n});\nconst ActionIconDestructiveQuaternary = ActionIcon.withProps({variant: 'subtle', color: 'var(--mantine-color-error)'});\n\nActionIcon.Group = MantineActionIcon.Group;\nActionIcon.Primary = ActionIconPrimary;\nActionIcon.Secondary = ActionIconSecondary;\nActionIcon.Tertiary = ActionIconTertiary;\nActionIcon.Quaternary = ActionIconQuaternary;\nActionIcon.DestructivePrimary = ActionIconDestructive;\nActionIcon.DestructiveSecondary = ActionIconDestructiveSecondary;\nActionIcon.DestructiveTertiary = ActionIconDestructiveTertiary;\nActionIcon.DestructiveQuaternary = ActionIconDestructiveQuaternary;\n\nActionIcon.displayName = 'ActionIcon';\nActionIcon.Group.displayName = 'ActionIcon.Group';\n(ActionIconPrimary as ComponentType).displayName = 'ActionIcon.Primary';\n(ActionIconSecondary as ComponentType).displayName = 'ActionIcon.Secondary';\n(ActionIconTertiary as ComponentType).displayName = 'ActionIcon.Tertiary';\n(ActionIconQuaternary as ComponentType).displayName = 'ActionIcon.Quaternary';\n(ActionIconDestructive as ComponentType).displayName = 'ActionIcon.DestructivePrimary';\n(ActionIconDestructiveSecondary as ComponentType).displayName = 'ActionIcon.DestructiveSecondary';\n(ActionIconDestructiveTertiary as ComponentType).displayName = 'ActionIcon.DestructiveTertiary';\n(ActionIconDestructiveQuaternary as ComponentType).displayName = 'ActionIcon.DestructiveQuaternary';\n"],"names":["ActionIcon","polymorphicFactory","disabledTooltip","disabled","disabledTooltipProps","loading","onClick","others","ref","useClickWithLoading","isLoading","handleClick","ButtonWithDisabledTooltip","fullWidth","MantineActionIcon","loaderProps","type","ActionIconPrimary","withProps","variant","ActionIconSecondary","vars","root","ActionIconTertiary","ActionIconQuaternary","ActionIconDestructive","color","ActionIconDestructiveSecondary","ActionIconDestructiveTertiary","ActionIconDestructiveQuaternary","Group","Primary","Secondary","Tertiary","Quaternary","DestructivePrimary","DestructiveSecondary","DestructiveTertiary","DestructiveQuaternary","displayName"],"mappings":";;;;+BA0CaA;;;eAAAA;;;;;;;;oBAjCN;mCAEyC;yCACwB;AA8BjE,IAAMA,aAAaC,IAAAA,wBAAkB,EACxC;;;;4EAAEC,wBAAAA,iBAAiBC,iBAAAA,UAAUC,6BAAAA,sBAAsBC,gBAAAA,SAASC,gBAAAA,SAAYC;;;;;;+CAASC;IAC7E,IAAiCC,wBAAAA,IAAAA,wCAAmB,EAACH,UAA9CI,YAA0BD,sBAA1BC,WAAWC,cAAeF,sBAAfE;IAClB,qBACI,qBAACC,oDAAyB;QACtBT,UAAUA;QACVD,iBAAiBA;QACjBE,sBA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E,OAAO,WAAW,CAAC;QAC3B,OAAO,EAAE,OAAO,YAAY,CAAC;QAC7B,QAAQ,EAAE,OAAO,aAAa,CAAC;QAC/B,OAAO,EAAE,OAAO,YAAY,CAAC;KAChC;;iBALgB,OAAO,gBAAgB;YAC5B,OAAO,WAAW;aACjB,OAAO,YAAY;cAClB,OAAO,aAAa;aACrB,OAAO,YAAY;CAIgF,CAAC;AAGrH,QAAA,MAAM,gBAAgB,4GAUpB,CAAC;AAGH,QAAA,MAAM,WAAW,4GAUf,CAAC;AAGH,QAAA,MAAM,YAAY,4GAUhB,CAAC;AAGH,QAAA,MAAM,YAAY,4GAUhB,CAAC;AAGH,QAAA,MAAM,aAAa,4GAUjB,CAAC"}
|
|
@@ -20,16 +20,15 @@ var Alert = (0, _core.polymorphicFactory)(function(props, ref) {
|
|
|
20
20
|
});
|
|
21
21
|
Alert.displayName = 'Alert';
|
|
22
22
|
var AlertInformation = Alert.withProps({
|
|
23
|
-
color: 'gray',
|
|
24
23
|
icon: /*#__PURE__*/ (0, _jsxruntime.jsx)(_InfoToken.InfoToken.Information, {
|
|
25
24
|
size: "md"
|
|
26
25
|
}),
|
|
27
26
|
vars: function vars() {
|
|
28
27
|
return {
|
|
29
28
|
root: {
|
|
30
|
-
'--alert-color': 'var(--mantine-color-
|
|
31
|
-
'--alert-bg': 'var(--mantine-color-
|
|
32
|
-
'--alert-bd': '2px solid var(--mantine-color-
|
|
29
|
+
'--alert-color': 'var(--mantine-color-blue-filled)',
|
|
30
|
+
'--alert-bg': 'var(--mantine-color-blue-light)',
|
|
31
|
+
'--alert-bd': '2px solid var(--mantine-color-blue-light)',
|
|
33
32
|
'--alert-radius': 'var(--mantine-radius-sm)'
|
|
34
33
|
}
|
|
35
34
|
};
|
|
@@ -43,9 +42,9 @@ var AlertAdvice = Alert.withProps({
|
|
|
43
42
|
vars: function vars() {
|
|
44
43
|
return {
|
|
45
44
|
root: {
|
|
46
|
-
'--alert-color': 'var(--mantine-
|
|
47
|
-
'--alert-bg': 'var(--mantine-
|
|
48
|
-
'--alert-bd': '2px solid var(--mantine-
|
|
45
|
+
'--alert-color': 'var(--mantine-color-violet-filled)',
|
|
46
|
+
'--alert-bg': 'var(--mantine-color-violet-light)',
|
|
47
|
+
'--alert-bd': '2px solid var(--mantine-color-violet-light)',
|
|
49
48
|
'--alert-radius': 'var(--mantine-radius-sm)'
|
|
50
49
|
}
|
|
51
50
|
};
|
|
@@ -69,7 +68,6 @@ var AlertSuccess = Alert.withProps({
|
|
|
69
68
|
});
|
|
70
69
|
AlertSuccess.displayName = 'Alert.Success';
|
|
71
70
|
var AlertWarning = Alert.withProps({
|
|
72
|
-
color: 'warning',
|
|
73
71
|
icon: /*#__PURE__*/ (0, _jsxruntime.jsx)(_InfoToken.InfoToken.Warning, {
|
|
74
72
|
size: "md"
|
|
75
73
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/Alert/Alert.tsx"],"sourcesContent":["import {\n AlertCssVariables,\n AlertProps,\n AlertStylesNames,\n AlertVariant,\n Factory,\n Alert as MantineAlert,\n polymorphicFactory,\n} from '@mantine/core';\nimport {type ComponentType} from 'react';\nimport {InfoToken} from '../InfoToken/InfoToken.js';\n\ntype AlertOverloadFactory = Factory<{\n props: AlertProps;\n defaultRef: HTMLDivElement;\n defaultComponent: 'div';\n stylesNames: AlertStylesNames;\n vars: AlertCssVariables;\n variant: AlertVariant;\n staticComponents: {\n Information: typeof AlertInformation;\n Advice: typeof AlertAdvice;\n Warning: typeof AlertWarning;\n Critical: typeof AlertCritical;\n Success: typeof AlertSuccess;\n };\n}>;\n\nexport const Alert = polymorphicFactory<AlertOverloadFactory>((props, ref) => <MantineAlert {...props} ref={ref} />);\nAlert.displayName = 'Alert';\n\nconst AlertInformation = Alert.withProps({\n
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/Alert/Alert.tsx"],"sourcesContent":["import {\n AlertCssVariables,\n AlertProps,\n AlertStylesNames,\n AlertVariant,\n Factory,\n Alert as MantineAlert,\n polymorphicFactory,\n} from '@mantine/core';\nimport {type ComponentType} from 'react';\nimport {InfoToken} from '../InfoToken/InfoToken.js';\n\ntype AlertOverloadFactory = Factory<{\n props: AlertProps;\n defaultRef: HTMLDivElement;\n defaultComponent: 'div';\n stylesNames: AlertStylesNames;\n vars: AlertCssVariables;\n variant: AlertVariant;\n staticComponents: {\n Information: typeof AlertInformation;\n Advice: typeof AlertAdvice;\n Warning: typeof AlertWarning;\n Critical: typeof AlertCritical;\n Success: typeof AlertSuccess;\n };\n}>;\n\nexport const Alert = polymorphicFactory<AlertOverloadFactory>((props, ref) => <MantineAlert {...props} ref={ref} />);\nAlert.displayName = 'Alert';\n\nconst AlertInformation = Alert.withProps({\n icon: <InfoToken.Information size=\"md\" />,\n vars: () => ({\n root: {\n '--alert-color': 'var(--mantine-color-blue-filled)',\n '--alert-bg': 'var(--mantine-color-blue-light)',\n '--alert-bd': '2px solid var(--mantine-color-blue-light)',\n '--alert-radius': 'var(--mantine-radius-sm)',\n },\n }),\n});\n(AlertInformation as ComponentType).displayName = 'Alert.Information';\n\nconst AlertAdvice = Alert.withProps({\n icon: <InfoToken.Advice size=\"md\" />,\n vars: () => ({\n root: {\n '--alert-color': 'var(--mantine-color-violet-filled)',\n '--alert-bg': 'var(--mantine-color-violet-light)',\n '--alert-bd': '2px solid var(--mantine-color-violet-light)',\n '--alert-radius': 'var(--mantine-radius-sm)',\n },\n }),\n});\n(AlertAdvice as ComponentType).displayName = 'Alert.Advice';\n\nconst AlertSuccess = Alert.withProps({\n icon: <InfoToken.Success size=\"md\" />,\n vars: () => ({\n root: {\n '--alert-color': 'var(--mantine-color-green-filled)',\n '--alert-bg': 'var(--mantine-color-green-light)',\n '--alert-bd': '2px solid var(--mantine-color-green-light)',\n '--alert-radius': 'var(--mantine-radius-sm)',\n },\n }),\n});\n(AlertSuccess as ComponentType).displayName = 'Alert.Success';\n\nconst AlertWarning = Alert.withProps({\n icon: <InfoToken.Warning size=\"md\" />,\n vars: () => ({\n root: {\n '--alert-color': 'var(--mantine-color-yellow-text)',\n '--alert-bg': 'var(--mantine-color-yellow-light)',\n '--alert-bd': '2px solid var(--mantine-color-yellow-light)',\n '--alert-radius': 'var(--mantine-radius-sm)',\n },\n }),\n});\n(AlertWarning as ComponentType).displayName = 'Alert.Warning';\n\nconst AlertCritical = Alert.withProps({\n icon: <InfoToken.Error size=\"md\" />,\n vars: () => ({\n root: {\n '--alert-color': 'var(--mantine-color-error)',\n '--alert-bg': 'var(--mantine-color-red-light)',\n '--alert-bd': '2px solid var(--mantine-color-red-light)',\n '--alert-radius': 'var(--mantine-radius-sm)',\n },\n }),\n});\n(AlertCritical as ComponentType).displayName = 'Alert.Critical';\n\nAlert.Information = AlertInformation;\nAlert.Advice = AlertAdvice;\nAlert.Warning = AlertWarning;\nAlert.Critical = AlertCritical;\nAlert.Success = AlertSuccess;\n"],"names":["Alert","polymorphicFactory","props","ref","MantineAlert","displayName","AlertInformation","withProps","icon","InfoToken","Information","size","vars","root","AlertAdvice","Advice","AlertSuccess","Success","AlertWarning","Warning","AlertCritical","Error","Critical"],"mappings":";;;;+BA4BaA;;;eAAAA;;;;;;oBApBN;yBAEiB;AAkBjB,IAAMA,QAAQC,IAAAA,wBAAkB,EAAuB,SAACC,OAAOC;yBAAQ,qBAACC,WAAY,8CAAKF;QAAOC,KAAKA;;;AAC5GH,MAAMK,WAAW,GAAG;AAEpB,IAAMC,mBAAmBN,MAAMO,SAAS,CAAC;IACrCC,oBAAM,qBAACC,oBAAS,CAACC,WAAW;QAACC,MAAK;;IAClCC,MAAM,SAANA;eAAa;YACTC,MAAM;gBACF,iBAAiB;gBACjB,cAAc;gBACd,cAAc;gBACd,kBAAkB;YACtB;QACJ;;AACJ;AACCP,iBAAmCD,WAAW,GAAG;AAElD,IAAMS,cAAcd,MAAMO,SAAS,CAAC;IAChCC,oBAAM,qBAACC,oBAAS,CAACM,MAAM;QAACJ,MAAK;;IAC7BC,MAAM,SAANA;eAAa;YACTC,MAAM;gBACF,iBAAiB;gBACjB,cAAc;gBACd,cAAc;gBACd,kBAAkB;YACtB;QACJ;;AACJ;AACCC,YAA8BT,WAAW,GAAG;AAE7C,IAAMW,eAAehB,MAAMO,SAAS,CAAC;IACjCC,oBAAM,qBAACC,oBAAS,CAACQ,OAAO;QAACN,MAAK;;IAC9BC,MAAM,SAANA;eAAa;YACTC,MAAM;gBACF,iBAAiB;gBACjB,cAAc;gBACd,cAAc;gBACd,kBAAkB;YACtB;QACJ;;AACJ;AACCG,aAA+BX,WAAW,GAAG;AAE9C,IAAMa,eAAelB,MAAMO,SAAS,CAAC;IACjCC,oBAAM,qBAACC,oBAAS,CAACU,OAAO;QAACR,MAAK;;IAC9BC,MAAM,SAANA;eAAa;YACTC,MAAM;gBACF,iBAAiB;gBACjB,cAAc;gBACd,cAAc;gBACd,kBAAkB;YACtB;QACJ;;AACJ;AACCK,aAA+Bb,WAAW,GAAG;AAE9C,IAAMe,gBAAgBpB,MAAMO,SAAS,CAAC;IAClCC,oBAAM,qBAACC,oBAAS,CAACY,KAAK;QAACV,MAAK;;IAC5BC,MAAM,SAANA;eAAa;YACTC,MAAM;gBACF,iBAAiB;gBACjB,cAAc;gBACd,cAAc;gBACd,kBAAkB;YACtB;QACJ;;AACJ;AACCO,cAAgCf,WAAW,GAAG;AAE/CL,MAAMU,WAAW,GAAGJ;AACpBN,MAAMe,MAAM,GAAGD;AACfd,MAAMmB,OAAO,GAAGD;AAChBlB,MAAMsB,QAAQ,GAAGF;AACjBpB,MAAMiB,OAAO,GAAGD"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { GetStylesApi } from '@mantine/core';
|
|
2
|
-
import type { HeaderFactory } from './Header.js';
|
|
2
|
+
import type { HeaderFactory, HeaderVariant } from './Header.js';
|
|
3
3
|
export interface HeaderContextValue {
|
|
4
4
|
getStyles: GetStylesApi<HeaderFactory>;
|
|
5
|
+
variant: HeaderVariant;
|
|
5
6
|
}
|
|
6
7
|
export declare const HeaderProvider: ({ children, value }: {
|
|
7
8
|
value: HeaderContextValue;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.context.d.ts","sourceRoot":"","sources":["../../../../src/components/Header/Header.context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAoB,MAAM,eAAe,CAAC;AAC9D,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"Header.context.d.ts","sourceRoot":"","sources":["../../../../src/components/Header/Header.context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAoB,MAAM,eAAe,CAAC;AAC9D,OAAO,KAAK,EAAC,aAAa,EAAE,aAAa,EAAC,MAAM,aAAa,CAAC;AAE9D,MAAM,WAAW,kBAAkB;IAC/B,SAAS,EAAE,YAAY,CAAC,aAAa,CAAC,CAAC;IACvC,OAAO,EAAE,aAAa,CAAC;CAC1B;AAED,eAAO,MAAO,cAAc;;;+CAAE,gBAAgB,0BAE7C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/Header/Header.context.ts"],"sourcesContent":["import {GetStylesApi, createSafeContext} from '@mantine/core';\nimport type {HeaderFactory} from './Header.js';\n\nexport interface HeaderContextValue {\n getStyles: GetStylesApi<HeaderFactory>;\n}\n\nexport const [HeaderProvider, useHeaderContext] = createSafeContext<HeaderContextValue>(\n 'Header component was not found in tree',\n);\n"],"names":["HeaderProvider","useHeaderContext","createSafeContext"],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/Header/Header.context.ts"],"sourcesContent":["import {GetStylesApi, createSafeContext} from '@mantine/core';\nimport type {HeaderFactory, HeaderVariant} from './Header.js';\n\nexport interface HeaderContextValue {\n getStyles: GetStylesApi<HeaderFactory>;\n variant: HeaderVariant;\n}\n\nexport const [HeaderProvider, useHeaderContext] = createSafeContext<HeaderContextValue>(\n 'Header component was not found in tree',\n);\n"],"names":["HeaderProvider","useHeaderContext","createSafeContext"],"mappings":";;;;;;;;;;;QAQcA;eAAAA;;QAAgBC;eAAAA;;;;oBARgB;IAQIC,wCAAAA,IAAAA,uBAAiB,EAC/D;AADG,IAAOF,iBAAoCE,uBAApBD,mBAAoBC"}
|
|
@@ -75,7 +75,8 @@ var Header = (0, _core.factory)(function(_props, ref) {
|
|
|
75
75
|
});
|
|
76
76
|
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Headercontext.HeaderProvider, {
|
|
77
77
|
value: {
|
|
78
|
-
getStyles: getStyles
|
|
78
|
+
getStyles: getStyles,
|
|
79
|
+
variant: variant
|
|
79
80
|
},
|
|
80
81
|
children: [
|
|
81
82
|
/*#__PURE__*/ (0, _jsxruntime.jsxs)(_core.Group, _object_spread_props._(_object_spread._({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/Header/Header.tsx"],"sourcesContent":["import {\n Divider,\n Factory,\n Group,\n GroupProps,\n Stack,\n StylesApiProps,\n Text,\n Title,\n factory,\n useProps,\n useStyles,\n} from '@mantine/core';\nimport {Children, ElementType, ReactElement, ReactNode} from 'react';\nimport {HeaderProvider} from './Header.context.js';\nimport classes from './Header.module.css';\nimport {\n HeaderBreadcrumbAnchor,\n type HeaderBreadcrumbAnchorStyleNames,\n} from './HeaderBreadcrumbs/HeaderBreadcrumbAnchor.js';\nimport {HeaderBreadcrumbs, HeaderBreadcrumbsStyleNames} from './HeaderBreadcrumbs/HeaderBreadcrumbs.js';\nimport {HeaderBreadcrumbText, HeaderBreadcrumbTextStyleNames} from './HeaderBreadcrumbs/HeaderBreadcrumbText.js';\nimport {HeaderDocAnchor, HeaderDocAnchorStyleNames} from './HeaderDocAnchor/HeaderDocAnchor.js';\nimport {HeaderRight, HeaderRightStyleNames} from './HeaderRight/HeaderRight.js';\n\nexport type {HeaderBreadcrumbsProps} from './HeaderBreadcrumbs/HeaderBreadcrumbs.js';\nexport type {HeaderDocAnchorProps} from './HeaderDocAnchor/HeaderDocAnchor.js';\nexport type {HeaderRightProps} from './HeaderRight/HeaderRight.js';\n\nexport type HeaderVariant = 'primary' | 'secondary';\nexport type HeaderStyleNames =\n | 'root'\n | 'title'\n | 'description'\n | 'divider'\n | 'body'\n | HeaderDocAnchorStyleNames\n | HeaderBreadcrumbsStyleNames\n | HeaderBreadcrumbAnchorStyleNames\n | HeaderBreadcrumbTextStyleNames\n | HeaderRightStyleNames;\n\nexport interface HeaderProps\n extends\n StylesApiProps<HeaderFactory>,\n Omit<GroupProps, 'classNames' | 'styles' | 'vars' | 'variant' | 'attributes'> {\n /**\n * The description text displayed inside the header underneath the title\n */\n description?: ReactNode;\n /**\n * Whether the header should have a border on the bottom\n */\n borderBottom?: boolean;\n /**\n * Use the primary variant for page header and secondary variant elsewhere\n *\n * @default 'primary'\n */\n variant?: 'primary' | 'secondary';\n /**\n * The title of the header.\n */\n children: ReactNode;\n /**\n * The component used to render the title.\n *\n * @default Title\n * @example 'h2'\n */\n titleComponent?: ElementType;\n}\n\nexport type HeaderFactory = Factory<{\n props: HeaderProps;\n ref: HTMLDivElement;\n variant: HeaderVariant;\n stylesNames: HeaderStyleNames;\n staticComponents: {\n Breadcrumbs: typeof HeaderBreadcrumbs;\n BreadcrumbAnchor: typeof HeaderBreadcrumbAnchor;\n BreadcrumbText: typeof HeaderBreadcrumbText;\n Right: typeof HeaderRight;\n DocAnchor: typeof HeaderDocAnchor;\n };\n}>;\n\nconst defaultProps
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/Header/Header.tsx"],"sourcesContent":["import {\n Divider,\n Factory,\n Group,\n GroupProps,\n Stack,\n StylesApiProps,\n Text,\n Title,\n factory,\n useProps,\n useStyles,\n} from '@mantine/core';\nimport {Children, ElementType, ReactElement, ReactNode} from 'react';\nimport {HeaderProvider} from './Header.context.js';\nimport classes from './Header.module.css';\nimport {\n HeaderBreadcrumbAnchor,\n type HeaderBreadcrumbAnchorStyleNames,\n} from './HeaderBreadcrumbs/HeaderBreadcrumbAnchor.js';\nimport {HeaderBreadcrumbs, HeaderBreadcrumbsStyleNames} from './HeaderBreadcrumbs/HeaderBreadcrumbs.js';\nimport {HeaderBreadcrumbText, HeaderBreadcrumbTextStyleNames} from './HeaderBreadcrumbs/HeaderBreadcrumbText.js';\nimport {HeaderDocAnchor, HeaderDocAnchorStyleNames} from './HeaderDocAnchor/HeaderDocAnchor.js';\nimport {HeaderRight, HeaderRightStyleNames} from './HeaderRight/HeaderRight.js';\n\nexport type {HeaderBreadcrumbsProps} from './HeaderBreadcrumbs/HeaderBreadcrumbs.js';\nexport type {HeaderDocAnchorProps} from './HeaderDocAnchor/HeaderDocAnchor.js';\nexport type {HeaderRightProps} from './HeaderRight/HeaderRight.js';\n\nexport type HeaderVariant = 'primary' | 'secondary';\nexport type HeaderStyleNames =\n | 'root'\n | 'title'\n | 'description'\n | 'divider'\n | 'body'\n | HeaderDocAnchorStyleNames\n | HeaderBreadcrumbsStyleNames\n | HeaderBreadcrumbAnchorStyleNames\n | HeaderBreadcrumbTextStyleNames\n | HeaderRightStyleNames;\n\nexport interface HeaderProps\n extends\n StylesApiProps<HeaderFactory>,\n Omit<GroupProps, 'classNames' | 'styles' | 'vars' | 'variant' | 'attributes'> {\n /**\n * The description text displayed inside the header underneath the title\n */\n description?: ReactNode;\n /**\n * Whether the header should have a border on the bottom\n */\n borderBottom?: boolean;\n /**\n * Use the primary variant for page header and secondary variant elsewhere\n *\n * @default 'primary'\n */\n variant?: 'primary' | 'secondary';\n /**\n * The title of the header.\n */\n children: ReactNode;\n /**\n * The component used to render the title.\n *\n * @default Title\n * @example 'h2'\n */\n titleComponent?: ElementType;\n}\n\nexport type HeaderFactory = Factory<{\n props: HeaderProps;\n ref: HTMLDivElement;\n variant: HeaderVariant;\n stylesNames: HeaderStyleNames;\n staticComponents: {\n Breadcrumbs: typeof HeaderBreadcrumbs;\n BreadcrumbAnchor: typeof HeaderBreadcrumbAnchor;\n BreadcrumbText: typeof HeaderBreadcrumbText;\n Right: typeof HeaderRight;\n DocAnchor: typeof HeaderDocAnchor;\n };\n}>;\n\nconst defaultProps = {\n variant: 'primary',\n justify: 'space-between',\n wrap: 'nowrap',\n} satisfies Partial<HeaderProps>;\n\nconst getSpacing = (variant: HeaderVariant) => (variant === 'secondary' ? 'xxs' : 'xs');\n\nexport const Header = factory<HeaderFactory>((_props, ref) => {\n const props = useProps('PlasmaHeader', defaultProps, _props);\n const {\n className,\n description,\n borderBottom,\n variant,\n children,\n style,\n classNames,\n unstyled,\n vars,\n styles,\n titleComponent: TitleComponent,\n ...others\n } = props;\n const getStyles = useStyles<HeaderFactory>({\n name: 'PlasmaHeader',\n props,\n classes,\n className,\n style,\n classNames,\n styles,\n unstyled,\n vars,\n });\n const stylesApiProps = {classNames, styles};\n\n const convertedChildren = Children.toArray(children) as ReactElement[];\n const breadcrumbs = convertedChildren.find((child) => child.type === HeaderBreadcrumbs);\n const right = convertedChildren.find((child) => child.type === HeaderRight);\n const docAnchor = convertedChildren.find((child) => child.type === HeaderDocAnchor);\n const otherChildren = convertedChildren.filter(\n (child) => child.type !== HeaderBreadcrumbs && child.type !== HeaderRight && child.type !== HeaderDocAnchor,\n );\n return (\n <HeaderProvider value={{getStyles, variant}}>\n <Group ref={ref} variant={variant} {...getStyles('root')} {...others}>\n <Stack gap={getSpacing(variant)}>\n {breadcrumbs}\n <Title\n variant={variant}\n component={TitleComponent}\n order={variant === 'primary' ? 1 : 3}\n {...getStyles('title', stylesApiProps)}\n >\n {otherChildren}\n {docAnchor}\n </Title>\n <Text\n component=\"div\"\n {...getStyles('description', stylesApiProps)}\n size={variant === 'primary' ? 'md' : 'sm'}\n >\n {description}\n </Text>\n </Stack>\n {right}\n </Group>\n {borderBottom ? <Divider {...getStyles('divider', stylesApiProps)} size=\"xs\" /> : null}\n </HeaderProvider>\n );\n});\n\nHeader.displayName = 'Header';\nHeader.Breadcrumbs = HeaderBreadcrumbs;\nHeader.BreadcrumbAnchor = HeaderBreadcrumbAnchor;\nHeader.BreadcrumbText = HeaderBreadcrumbText;\nHeader.Right = HeaderRight;\nHeader.DocAnchor = HeaderDocAnchor;\n"],"names":["Header","defaultProps","variant","justify","wrap","getSpacing","factory","_props","ref","props","useProps","className","description","borderBottom","children","style","classNames","unstyled","vars","styles","titleComponent","TitleComponent","others","getStyles","useStyles","name","classes","stylesApiProps","convertedChildren","Children","toArray","breadcrumbs","find","child","type","HeaderBreadcrumbs","right","HeaderRight","docAnchor","HeaderDocAnchor","otherChildren","filter","HeaderProvider","value","Group","Stack","gap","Title","component","order","Text","size","Divider","displayName","Breadcrumbs","BreadcrumbAnchor","HeaderBreadcrumbAnchor","BreadcrumbText","HeaderBreadcrumbText","Right","DocAnchor"],"mappings":";;;;+BA+FaA;;;eAAAA;;;;;;;;oBAnFN;qBACsD;6BAChC;wEACT;sCAIb;iCACsD;oCACM;+BACV;2BACR;AAgEjD,IAAMC,eAAe;IACjBC,SAAS;IACTC,SAAS;IACTC,MAAM;AACV;AAEA,IAAMC,aAAa,oBAACH;WAA4BA,YAAY,cAAc,QAAQ;;AAE3E,IAAMF,SAASM,IAAAA,aAAO,EAAgB,SAACC,QAAQC;IAClD,IAAMC,QAAQC,IAAAA,cAAQ,EAAC,gBAAgBT,cAAcM;IACrD,IACII,YAYAF,MAZAE,WACAC,cAWAH,MAXAG,aACAC,eAUAJ,MAVAI,cACAX,UASAO,MATAP,SACAY,WAQAL,MARAK,UACAC,QAOAN,MAPAM,OACAC,aAMAP,MANAO,YACAC,WAKAR,MALAQ,UACAC,OAIAT,MAJAS,MACAC,SAGAV,MAHAU,QACAC,AAAgBC,iBAEhBZ,MAFAW,gBACGE,sCACHb;;;;;;;;;;;;;IACJ,IAAMc,YAAYC,IAAAA,eAAS,EAAgB;QACvCC,MAAM;QACNhB,OAAAA;QACAiB,SAAAA,wBAAO;QACPf,WAAAA;QACAI,OAAAA;QACAC,YAAAA;QACAG,QAAAA;QACAF,UAAAA;QACAC,MAAAA;IACJ;IACA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AK,GAAGtB,wBAAW;AAC1BrC,OAAO4D,SAAS,GAAGrB,gCAAe"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderDocAnchor.d.ts","sourceRoot":"","sources":["../../../../../src/components/Header/HeaderDocAnchor/HeaderDocAnchor.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HeaderDocAnchor.d.ts","sourceRoot":"","sources":["../../../../../src/components/Header/HeaderDocAnchor/HeaderDocAnchor.tsx"],"names":[],"mappings":"AACA,OAAO,EAAC,WAAW,EAAE,sBAAsB,EAAE,OAAO,EAAW,YAAY,EAAoB,MAAM,eAAe,CAAC;AACrH,OAAO,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AAIhC,MAAM,MAAM,yBAAyB,GAAG,kBAAkB,GAAG,WAAW,CAAC;AAEzE,MAAM,WAAW,oBACb,SACI,IAAI,CAAC,YAAY,EAAE,UAAU,CAAC,EAC9B,sBAAsB,CAAC,sBAAsB,CAAC,EAC9C,IAAI,CAAC,WAAW,EAAE,YAAY,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAC;IACnE;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB;AAED,MAAM,MAAM,sBAAsB,GAAG,OAAO,CAAC;IACzC,KAAK,EAAE,oBAAoB,CAAC;IAC5B,GAAG,EAAE,iBAAiB,CAAC;IACvB,WAAW,EAAE,yBAAyB,CAAC;IACvC,QAAQ,EAAE,IAAI,CAAC;CAClB,CAAC,CAAC;AAOH,eAAO,MAAM,eAAe;WAXjB,oBAAoB;SACtB,iBAAiB;iBACT,yBAAyB;cAC5B,IAAI;EAmChB,CAAC"}
|
|
@@ -12,16 +12,17 @@ var _object_spread = require("@swc/helpers/_/_object_spread");
|
|
|
12
12
|
var _object_spread_props = require("@swc/helpers/_/_object_spread_props");
|
|
13
13
|
var _object_without_properties = require("@swc/helpers/_/_object_without_properties");
|
|
14
14
|
var _jsxruntime = require("react/jsx-runtime");
|
|
15
|
+
var _plasmareacticons = require("@coveord/plasma-react-icons");
|
|
15
16
|
var _core = require("@mantine/core");
|
|
16
|
-
var
|
|
17
|
+
var _ActionIcon = require("../../ActionIcon/ActionIcon.js");
|
|
17
18
|
var _Headercontext = require("../Header.context.js");
|
|
18
19
|
var defaultProps = {
|
|
19
20
|
position: 'right',
|
|
20
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
21
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_plasmareacticons.IconExternalLink, {})
|
|
21
22
|
};
|
|
22
23
|
var HeaderDocAnchor = (0, _core.factory)(function(_props, ref) {
|
|
23
24
|
var props = (0, _core.useProps)('PlasmaHeaderActions', defaultProps, _props);
|
|
24
|
-
var className = props.className, classNames = props.classNames, styles = props.styles, style = props.style, children = props.children, label = props.label, position = props.position, vars = props.vars, others = _object_without_properties._(props, [
|
|
25
|
+
var className = props.className, classNames = props.classNames, styles = props.styles, style = props.style, children = props.children, label = props.label, position = props.position, vars = props.vars, size = props.size, others = _object_without_properties._(props, [
|
|
25
26
|
"className",
|
|
26
27
|
"classNames",
|
|
27
28
|
"styles",
|
|
@@ -29,7 +30,8 @@ var HeaderDocAnchor = (0, _core.factory)(function(_props, ref) {
|
|
|
29
30
|
"children",
|
|
30
31
|
"label",
|
|
31
32
|
"position",
|
|
32
|
-
"vars"
|
|
33
|
+
"vars",
|
|
34
|
+
"size"
|
|
33
35
|
]);
|
|
34
36
|
var ctx = (0, _Headercontext.useHeaderContext)();
|
|
35
37
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_core.Tooltip, {
|
|
@@ -43,10 +45,13 @@ var HeaderDocAnchor = (0, _core.factory)(function(_props, ref) {
|
|
|
43
45
|
props: props
|
|
44
46
|
}).className
|
|
45
47
|
},
|
|
46
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(
|
|
48
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_ActionIcon.ActionIcon.Tertiary, _object_spread_props._(_object_spread._({
|
|
47
49
|
ref: ref,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
+
size: ctx.variant === 'primary' ? 'lg' : 'md',
|
|
51
|
+
component: "a",
|
|
52
|
+
target: "_blank",
|
|
53
|
+
rel: "noopener noreferrer",
|
|
54
|
+
"aria-label": "external"
|
|
50
55
|
}, ctx.getStyles('docAnchor', {
|
|
51
56
|
classNames: classNames,
|
|
52
57
|
styles: styles,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/components/Header/HeaderDocAnchor/HeaderDocAnchor.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"sources":["../../../../../src/components/Header/HeaderDocAnchor/HeaderDocAnchor.tsx"],"sourcesContent":["import {IconExternalLink} from '@coveord/plasma-react-icons';\nimport {AnchorProps, CompoundStylesApiProps, Factory, Tooltip, TooltipProps, factory, useProps} from '@mantine/core';\nimport {ReactNode} from 'react';\nimport {ActionIcon} from '../../ActionIcon/ActionIcon.js';\nimport {useHeaderContext} from '../Header.context.js';\n\nexport type HeaderDocAnchorStyleNames = 'docAnchorTooltip' | 'docAnchor';\n\nexport interface HeaderDocAnchorProps\n extends\n Pick<TooltipProps, 'position'>,\n CompoundStylesApiProps<HeaderDocAnchorFactory>,\n Omit<AnchorProps, 'classNames' | 'styles' | 'variant' | 'vars'> {\n /**\n * A href pointing to documentation related to the current panel.\n * When provided, an info icon is rendered next to the title as link to this documentation\n */\n href: string;\n /**\n * The tooltip text shown when hovering over the doc link icon\n */\n label?: ReactNode;\n /**\n * React component to add the tooltip and anchor on\n */\n children?: ReactNode;\n}\n\nexport type HeaderDocAnchorFactory = Factory<{\n props: HeaderDocAnchorProps;\n ref: HTMLAnchorElement;\n stylesNames: HeaderDocAnchorStyleNames;\n compound: true;\n}>;\n\nconst defaultProps: Partial<HeaderDocAnchorProps> = {\n position: 'right',\n children: <IconExternalLink />,\n};\n\nexport const HeaderDocAnchor = factory<HeaderDocAnchorFactory>((_props, ref) => {\n const props = useProps('PlasmaHeaderActions', defaultProps, _props);\n const {className, classNames, styles, style, children, label, position, vars, size, ...others} = props;\n\n const ctx = useHeaderContext();\n\n return (\n <Tooltip\n label={label}\n disabled={!label}\n position={position}\n classNames={{tooltip: ctx.getStyles('docAnchorTooltip', {classNames, styles, props}).className}}\n >\n <ActionIcon.Tertiary\n ref={ref}\n size={ctx.variant === 'primary' ? 'lg' : 'md'}\n component=\"a\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n aria-label=\"external\"\n {...ctx.getStyles('docAnchor', {classNames, styles, props, style, className})}\n {...others}\n >\n {children}\n </ActionIcon.Tertiary>\n </Tooltip>\n );\n});\n\nHeaderDocAnchor.displayName = 'Header.DocAnchor';\n"],"names":["HeaderDocAnchor","defaultProps","position","children","IconExternalLink","factory","_props","ref","props","useProps","className","classNames","styles","style","label","vars","size","others","ctx","useHeaderContext","Tooltip","disabled","tooltip","getStyles","ActionIcon","Tertiary","variant","component","target","rel","aria-label","displayName"],"mappings":";;;;+BAwCaA;;;eAAAA;;;;;;;gCAxCkB;oBACsE;0BAE5E;6BACM;AA+B/B,IAAMC,eAA8C;IAChDC,UAAU;IACVC,wBAAU,qBAACC,kCAAgB;AAC/B;AAEO,IAAMJ,kBAAkBK,IAAAA,aAAO,EAAyB,SAACC,QAAQC;IACpE,IAAMC,QAAQC,IAAAA,cAAQ,EAAC,uBAAuBR,cAAcK;IAC5D,IAAOI,YAA0FF,MAA1FE,WAAWC,aAA+EH,MAA/EG,YAAYC,SAAmEJ,MAAnEI,QAAQC,QAA2DL,MAA3DK,OAAOV,WAAoDK,MAApDL,UAAUW,QAA0CN,MAA1CM,OAAOZ,WAAmCM,MAAnCN,UAAUa,OAAyBP,MAAzBO,MAAMC,OAAmBR,MAAnBQ,MAASC,sCAAUT;;;;;;;;;;;IAE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gBAAgB,CAAC;CAC7B,CAAC,CAAC;AACH,MAAM,MAAM,6BAA6B,GAAG,MAAM,CAAC;AACnD,MAAM,MAAM,aAAa,GAAG,aAAa,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,CAAC;AACpG,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,OAAO,CAAC;AACnD,MAAM,MAAM,cAAc,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AACvD,MAAM,MAAM,qBAAqB,GAAG;IAChC,IAAI,EAAE,YAAY,GAAG,SAAS,CAAC;CAClC,CAAC;AAEF,UAAU,sBAAuB,SAAQ,QAAQ,EAAE,cAAc,CAAC,gBAAgB,CAAC;IAC/E;;;;OAIG;IACH,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B;;;;OAIG;IACH,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB;;;;OAIG;IACH,IAAI,CAAC,EAAE,cAAc,CAAC;CACzB;AAED,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,sBAAsB,EAAE,MAAM,CAAC,CAAC;AAElE,KAAK,0BAA0B,GAAG,CAAC,CAAC,CAAC,GAAG,KAAK,EAAE,KAAK,EAAE,yBAAyB,CAAC,CAAC,EAAE,cAAc,CAAC,KAAK,YAAY,CAAC,GAChH,IAAI,CAAC,iBAAiB,CAAC,yBAAyB,CAAC,GAAG,EAAE,cAAc,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;AA6HnF,eAAO,MAAM,SAAS;;;;;;;CAOZ,CAAC"}
|
|
@@ -26,14 +26,15 @@ var colorResolver = function colorResolver(type) {
|
|
|
26
26
|
switch(type){
|
|
27
27
|
case 'error':
|
|
28
28
|
return 'var(--mantine-color-error)';
|
|
29
|
+
case 'information':
|
|
30
|
+
return 'var(--mantine-color-blue-text)';
|
|
29
31
|
case 'advice':
|
|
30
|
-
|
|
31
|
-
return 'var(--coveo-color-text-primary)';
|
|
32
|
+
return 'var(--mantine-color-violet-text)';
|
|
32
33
|
case 'warning':
|
|
33
34
|
return 'var(--mantine-color-yellow-text)';
|
|
34
35
|
case 'success':
|
|
35
36
|
return 'var(--mantine-color-green-text)';
|
|
36
|
-
case '
|
|
37
|
+
case 'question':
|
|
37
38
|
default:
|
|
38
39
|
return 'var(--mantine-color-gray-text)';
|
|
39
40
|
}
|
|
@@ -42,14 +43,15 @@ var bgColorResolver = function bgColorResolver(type) {
|
|
|
42
43
|
switch(type){
|
|
43
44
|
case 'error':
|
|
44
45
|
return 'var(--mantine-color-red-light)';
|
|
46
|
+
case 'information':
|
|
47
|
+
return 'var(--mantine-color-blue-light)';
|
|
45
48
|
case 'advice':
|
|
46
|
-
|
|
47
|
-
return 'var(--mantine-primary-color-light)';
|
|
49
|
+
return 'var(--mantine-color-violet-light)';
|
|
48
50
|
case 'warning':
|
|
49
51
|
return 'var(--mantine-color-yellow-light)';
|
|
50
52
|
case 'success':
|
|
51
53
|
return 'var(--mantine-color-green-light)';
|
|
52
|
-
case '
|
|
54
|
+
case 'question':
|
|
53
55
|
default:
|
|
54
56
|
return 'var(--mantine-color-gray-light)';
|
|
55
57
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/InfoToken/InfoToken.tsx"],"sourcesContent":["import {\n IconAlertSquare,\n IconAlertTriangle,\n IconBulb,\n IconCheck,\n IconHelpCircle,\n IconInfoCircle,\n TablerIcon,\n} from '@coveord/plasma-react-icons';\nimport {\n Box,\n BoxProps,\n createPolymorphicComponent,\n createVarsResolver,\n Factory,\n PolymorphicComponentProps,\n polymorphicFactory,\n StylesApiProps,\n useProps,\n useStyles,\n} from '@mantine/core';\nimport {forwardRef, FunctionComponent, ReactElement} from 'react';\nimport classes from './InfoToken.module.css';\n\nexport type InfoTokenFactory = Factory<{\n props: InfoTokenInternalProps;\n defaultRef: HTMLDivElement;\n defaultComponent: 'div';\n stylesNames: InfoTokenComponentStylesNames;\n vars: InfoTokenCssVariables;\n variant: InfoTokenVariant;\n}>;\nexport type InfoTokenComponentStylesNames = 'root';\nexport type InfoTokenType = 'information' | 'advice' | 'warning' | 'error' | 'question' | 'success';\nexport type InfoTokenVariant = 'outline' | 'light';\nexport type InfoTokenSizes = 'xs' | 'sm' | 'md' | 'lg';\nexport type InfoTokenCssVariables = {\n root: '--it-color' | '--it-bg';\n};\n\ninterface InfoTokenInternalProps extends BoxProps, StylesApiProps<InfoTokenFactory> {\n /**\n * The variant of the token.\n *\n * @default 'outline'\n */\n variant?: InfoTokenVariant;\n /**\n * The semantic type of the token\n *\n * @default 'information'\n */\n type?: InfoTokenType;\n /**\n * The size of the info token.\n *\n * @default 'xs'\n */\n size?: InfoTokenSizes;\n}\n\nexport type InfoTokenProps = Omit<InfoTokenInternalProps, 'type'>;\n\ntype InfoTokenCompoundComponent = (<C = 'div'>(props: PolymorphicComponentProps<C, InfoTokenProps>) => ReactElement) &\n Omit<FunctionComponent<PolymorphicComponentProps<any, InfoTokenProps>>, never>;\n\nconst defaultProps: Partial<InfoTokenInternalProps> = {variant: 'outline', type: 'information', size: 'xs'};\n\nconst colorResolver = (type: InfoTokenType): string => {\n switch (type) {\n case 'error':\n return 'var(--mantine-color-error)';\n case '
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/InfoToken/InfoToken.tsx"],"sourcesContent":["import {\n IconAlertSquare,\n IconAlertTriangle,\n IconBulb,\n IconCheck,\n IconHelpCircle,\n IconInfoCircle,\n TablerIcon,\n} from '@coveord/plasma-react-icons';\nimport {\n Box,\n BoxProps,\n createPolymorphicComponent,\n createVarsResolver,\n Factory,\n PolymorphicComponentProps,\n polymorphicFactory,\n StylesApiProps,\n useProps,\n useStyles,\n} from '@mantine/core';\nimport {forwardRef, FunctionComponent, ReactElement} from 'react';\nimport classes from './InfoToken.module.css';\n\nexport type InfoTokenFactory = Factory<{\n props: InfoTokenInternalProps;\n defaultRef: HTMLDivElement;\n defaultComponent: 'div';\n stylesNames: InfoTokenComponentStylesNames;\n vars: InfoTokenCssVariables;\n variant: InfoTokenVariant;\n}>;\nexport type InfoTokenComponentStylesNames = 'root';\nexport type InfoTokenType = 'information' | 'advice' | 'warning' | 'error' | 'question' | 'success';\nexport type InfoTokenVariant = 'outline' | 'light';\nexport type InfoTokenSizes = 'xs' | 'sm' | 'md' | 'lg';\nexport type InfoTokenCssVariables = {\n root: '--it-color' | '--it-bg';\n};\n\ninterface InfoTokenInternalProps extends BoxProps, StylesApiProps<InfoTokenFactory> {\n /**\n * The variant of the token.\n *\n * @default 'outline'\n */\n variant?: InfoTokenVariant;\n /**\n * The semantic type of the token\n *\n * @default 'information'\n */\n type?: InfoTokenType;\n /**\n * The size of the info token.\n *\n * @default 'xs'\n */\n size?: InfoTokenSizes;\n}\n\nexport type InfoTokenProps = Omit<InfoTokenInternalProps, 'type'>;\n\ntype InfoTokenCompoundComponent = (<C = 'div'>(props: PolymorphicComponentProps<C, InfoTokenProps>) => ReactElement) &\n Omit<FunctionComponent<PolymorphicComponentProps<any, InfoTokenProps>>, never>;\n\nconst defaultProps: Partial<InfoTokenInternalProps> = {variant: 'outline', type: 'information', size: 'xs'};\n\nconst colorResolver = (type: InfoTokenType): string => {\n switch (type) {\n case 'error':\n return 'var(--mantine-color-error)';\n case 'information':\n return 'var(--mantine-color-blue-text)';\n case 'advice':\n return 'var(--mantine-color-violet-text)';\n case 'warning':\n return 'var(--mantine-color-yellow-text)';\n case 'success':\n return 'var(--mantine-color-green-text)';\n case 'question':\n default:\n return 'var(--mantine-color-gray-text)';\n }\n};\n\nconst bgColorResolver = (type: InfoTokenType): string => {\n switch (type) {\n case 'error':\n return 'var(--mantine-color-red-light)';\n case 'information':\n return 'var(--mantine-color-blue-light)';\n case 'advice':\n return 'var(--mantine-color-violet-light)';\n case 'warning':\n return 'var(--mantine-color-yellow-light)';\n case 'success':\n return 'var(--mantine-color-green-light)';\n case 'question':\n default:\n return 'var(--mantine-color-gray-light)';\n }\n};\n\nconst sizeResolver = (size: InfoTokenSizes): number => {\n switch (size) {\n case 'sm':\n return 20;\n case 'md':\n return 24;\n case 'lg':\n return 32;\n case 'xs':\n default:\n return 16;\n }\n};\n\nconst iconResolver = (type: InfoTokenType): TablerIcon => {\n switch (type) {\n case 'error':\n return IconAlertSquare;\n case 'question':\n return IconHelpCircle;\n case 'warning':\n return IconAlertTriangle;\n case 'advice':\n return IconBulb;\n case 'success':\n return IconCheck;\n default:\n return IconInfoCircle;\n }\n};\n\nconst varsResolver = createVarsResolver<InfoTokenFactory>((_theme, {type}) => {\n const color = colorResolver(type);\n const bgColor = bgColorResolver(type);\n return {\n root: {\n '--it-color': color,\n '--it-bg': bgColor,\n },\n };\n});\n\nconst _InfoToken = polymorphicFactory<InfoTokenFactory>((_props, ref) => {\n const props = useProps('InfoToken', defaultProps, _props);\n const {variant, type, vars, className, style, unstyled, styles, classNames, size, ...others} = props;\n const getStyles = useStyles<InfoTokenFactory>({\n name: 'InfoToken',\n classes,\n className,\n props,\n style,\n styles,\n unstyled,\n vars,\n varsResolver,\n });\n const IconComponent = iconResolver(type);\n return (\n <Box\n ref={ref}\n variant={variant}\n role=\"img\"\n aria-label={type}\n size={size}\n {...getStyles('root', {\n className,\n style,\n styles,\n classNames,\n })}\n {...others}\n >\n <IconComponent size={sizeResolver(size)} />\n </Box>\n );\n});\n\nconst createInfoTokenCompound = (type: InfoTokenType, displayName: string): InfoTokenCompoundComponent => {\n const Component: InfoTokenCompoundComponent = createPolymorphicComponent<'div', InfoTokenProps>(\n forwardRef<any, InfoTokenProps>((props, ref) => <_InfoToken ref={ref} {...props} type={type} />),\n );\n Component.displayName = displayName;\n return Component;\n};\n\nexport const InfoToken = {\n Information: createInfoTokenCompound('information', 'InfoToken.Information'),\n Advice: createInfoTokenCompound('advice', 'InfoToken.Advice'),\n Warning: createInfoTokenCompound('warning', 'InfoToken.Warning'),\n Error: createInfoTokenCompound('error', 'InfoToken.Error'),\n Question: createInfoTokenCompound('question', 'InfoToken.Question'),\n Success: createInfoTokenCompound('success', 'InfoToken.Success'),\n} as const;\n"],"names":["InfoToken","defaultProps","variant","type","size","colorResolver","bgColorResolver","sizeResolver","iconResolver","IconAlertSquare","IconHelpCircle","IconAlertTriangle","IconBulb","IconCheck","IconInfoCircle","varsResolver","createVarsResolver","_theme","color","bgColor","root","_InfoToken","polymorphicFactory","_props","ref","props","useProps","vars","className","style","unstyled","styles","classNames","others","getStyles","useStyles","name","classes","IconComponent","Box","role","aria-label","createInfoTokenCompound","displayName","Component","createPolymorphicComponent","forwardRef","Information","Advice","Warning","Error","Question","Success"],"mappings":";;;;+BA6LaA;;;eAAAA;;;;;;;;gCArLN;oBAYA;qBACmD;2EACtC;AA4CpB,IAAMC,eAAgD;IAACC,SAAS;IAAWC,MAAM;IAAeC,MAAM;AAAI;AAE1G,IAAMC,gBAAgB,uBAACF;IACnB,OAAQA;QACJ,KAAK;YACD,OAAO;QACX,KAAK;YACD,OAAO;QACX,KAAK;YACD,OAAO;QACX,KAAK;YACD,OAAO;QACX,KAAK;YACD,OAAO;QACX,KAAK;QACL;YACI,OAAO;IACf;AACJ;AAEA,IAAMG,kBAAkB,yBAACH;IACrB,OAAQA;QACJ,KAAK;YACD,OAAO;QACX,KAAK;YACD,OAAO;QACX,KAAK;YACD,OAAO;QACX,KAAK;YACD,OAAO;QACX,KAAK;YACD,OAAO;QACX,KAAK;QACL;YACI,OAAO;IACf;AACJ;AAEA,IAAMI,eAAe,sBAACH;IAClB,OAAQA;QACJ,KAAK;YACD,OAAO;QACX,KAAK;YACD,OAAO;QACX,KAAK;YACD,OAAO;QACX,KAAK;QACL;YACI,OAAO;IACf;AACJ;AAEA,IAAMI,eAAe,sBAACL;IAClB,OAAQA;QACJ,KAAK;YACD,OAAOM,iCAAe;QAC1B,KAAK;YACD,OAAOC,gCAAc;QACzB,KAAK;YACD,OAAOC,mCAAiB;QAC5B,KAAK;YACD,OAAOC,0BAAQ;QACnB,KAAK;YACD,OAAOC,2BAAS;QACpB;YACI,OAAOC,gCAAc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,OAAOC;AACX;AAEO,IAAM5C,YAAY;IACrB+C,aAAaL,wBAAwB,eAAe;IACpDM,QAAQN,wBAAwB,UAAU;IAC1CO,SAASP,wBAAwB,WAAW;IAC5CQ,OAAOR,wBAAwB,SAAS;IACxCS,UAAUT,wBAAwB,YAAY;IAC9CU,SAASV,wBAAwB,WAAW;AAChD"}
|
|
@@ -44,7 +44,7 @@ var InputLabelInfo = (0, _core.factory)(function(_props, ref) {
|
|
|
44
44
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_core.Tooltip, _object_spread_props._(_object_spread._({
|
|
45
45
|
label: children
|
|
46
46
|
}, others), {
|
|
47
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_InfoToken.InfoToken.
|
|
47
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_InfoToken.InfoToken.Question, _object_spread_props._(_object_spread._({
|
|
48
48
|
component: "span"
|
|
49
49
|
}, getStyles('labelInfo', {
|
|
50
50
|
className: className,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/Input/InputLabelInfo.tsx"],"sourcesContent":["import {factory, StylesApiProps, Tooltip, useProps, useStyles, type Factory, type TooltipProps} from '@mantine/core';\nimport {type MouseEvent, type ReactNode} from 'react';\nimport {InfoToken} from '../InfoToken/InfoToken.js';\nimport classes from './InputLabelInfo.module.css';\n\nexport type InputLabelInfoStylesNames = 'labelInfo';\n\nexport interface InputLabelInfoProps\n extends\n Omit<TooltipProps, 'label' | 'classNames' | 'attributes' | 'styles' | 'vars'>,\n StylesApiProps<InputLabelInfoFactory> {\n children: ReactNode;\n}\n\nexport type InputLabelInfoFactory = Factory<{\n props: InputLabelInfoProps;\n ref: HTMLSpanElement;\n stylesNames: InputLabelInfoStylesNames;\n}>;\n\nconst defaultProps = {} satisfies Partial<InputLabelInfoProps>;\n\nexport const InputLabelInfo = factory<InputLabelInfoFactory>((_props, ref) => {\n const props = useProps('InputLabelInfo', defaultProps, _props);\n const {classNames, className, style, styles, unstyled, vars, children, attributes, ...others} = props;\n const getStyles = useStyles<InputLabelInfoFactory>({\n name: 'InputLabelInfo',\n props,\n style,\n styles,\n unstyled,\n attributes,\n className,\n classes,\n classNames,\n vars,\n });\n return (\n <Tooltip label={children} {...others}>\n <InfoToken.
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/Input/InputLabelInfo.tsx"],"sourcesContent":["import {factory, StylesApiProps, Tooltip, useProps, useStyles, type Factory, type TooltipProps} from '@mantine/core';\nimport {type MouseEvent, type ReactNode} from 'react';\nimport {InfoToken} from '../InfoToken/InfoToken.js';\nimport classes from './InputLabelInfo.module.css';\n\nexport type InputLabelInfoStylesNames = 'labelInfo';\n\nexport interface InputLabelInfoProps\n extends\n Omit<TooltipProps, 'label' | 'classNames' | 'attributes' | 'styles' | 'vars'>,\n StylesApiProps<InputLabelInfoFactory> {\n children: ReactNode;\n}\n\nexport type InputLabelInfoFactory = Factory<{\n props: InputLabelInfoProps;\n ref: HTMLSpanElement;\n stylesNames: InputLabelInfoStylesNames;\n}>;\n\nconst defaultProps = {} satisfies Partial<InputLabelInfoProps>;\n\nexport const InputLabelInfo = factory<InputLabelInfoFactory>((_props, ref) => {\n const props = useProps('InputLabelInfo', defaultProps, _props);\n const {classNames, className, style, styles, unstyled, vars, children, attributes, ...others} = props;\n const getStyles = useStyles<InputLabelInfoFactory>({\n name: 'InputLabelInfo',\n props,\n style,\n styles,\n unstyled,\n attributes,\n className,\n classes,\n classNames,\n vars,\n });\n return (\n <Tooltip label={children} {...others}>\n <InfoToken.Question\n component=\"span\"\n {...getStyles('labelInfo', {className, style})}\n ref={ref}\n onClick={(e: MouseEvent) => e.preventDefault()}\n />\n </Tooltip>\n );\n});\n"],"names":["InputLabelInfo","defaultProps","factory","_props","ref","props","useProps","classNames","className","style","styles","unstyled","vars","children","attributes","others","getStyles","useStyles","name","classes","Tooltip","label","InfoToken","Question","component","onClick","e","preventDefault"],"mappings":";;;;+BAsBaA;;;eAAAA;;;;;;;;oBAtBwF;yBAE7E;gFACJ;AAiBpB,IAAMC,eAAe,CAAC;AAEf,IAAMD,iBAAiBE,IAAAA,aAAO,EAAwB,SAACC,QAAQC;IAClE,IAAMC,QAAQC,IAAAA,cAAQ,EAAC,kBAAkBL,cAAcE;IACvD,IAAOI,aAAyFF,MAAzFE,YAAYC,YAA6EH,MAA7EG,WAAWC,QAAkEJ,MAAlEI,OAAOC,SAA2DL,MAA3DK,QAAQC,WAAmDN,MAAnDM,UAAUC,OAAyCP,MAAzCO,MAAMC,WAAmCR,MAAnCQ,UAAUC,aAAyBT,MAAzBS,YAAeC,sCAAUV;;;;;;;;;;IAChG,IAAMW,YAAYC,IAAAA,eAAS,EAAwB;QAC/CC,MAAM;QACNb,OAAAA;QACAI,OAAAA;QACAC,QAAAA;QACAC,UAAAA;QACAG,YAAAA;QACAN,WAAAA;QACAW,SAAAA,gCAAO;QACPZ,YAAAA;QACAK,MAAAA;IACJ;IACA,qBACI,qBAACQ,aAAO;QAACC,OAAOR;OAAcE;kBAC1B,cAAA,qBAACO,oBAAS,CAACC,QAAQ;YACfC,WAAU;WACNR,UAAU,aAAa;YAACR,WAAAA;YAAWC,OAAAA;QAAK;YAC5CL,KAAKA;YACLqB,SAAS,SAATA,QAAUC;uBAAkBA,EAAEC,cAAc;;;;AAI5D"}
|
|
@@ -47,8 +47,17 @@ export declare const Table: {
|
|
|
47
47
|
<T>(props: TableProps<T> & {
|
|
48
48
|
ref?: ForwardedRef<HTMLDivElement>;
|
|
49
49
|
}): import("react/jsx-runtime").JSX.Element;
|
|
50
|
+
/**
|
|
51
|
+
* Generic column to use when your table needs an accordion (collapsible rows, but only one open at a time).
|
|
52
|
+
*/
|
|
50
53
|
AccordionColumn: ColumnDef<unknown>;
|
|
54
|
+
/**
|
|
55
|
+
* Generic column to use when your table needs actions on rows
|
|
56
|
+
*/
|
|
51
57
|
ActionsColumn: ColumnDef<unknown>;
|
|
58
|
+
/**
|
|
59
|
+
* An action to display when a row is selected in the table. Can be displayed as a primary action or menu item.
|
|
60
|
+
*/
|
|
52
61
|
ActionItem: (<C = "button">(props: import("@mantine/core").PolymorphicComponentProps<C, import("./table-actions/TableActionItem.js").TableActionItemProps>) => React.ReactElement) & Omit<import("react").FunctionComponent<(import("./table-actions/TableActionItem.js").TableActionItemProps & {
|
|
53
62
|
component?: any;
|
|
54
63
|
} & Omit<Omit<any, "ref">, "component" | keyof import("./table-actions/TableActionItem.js").TableActionItemProps> & {
|
|
@@ -76,32 +85,54 @@ export declare const Table: {
|
|
|
76
85
|
stylesNames: TableActionItemStylesNames;
|
|
77
86
|
compound: true;
|
|
78
87
|
}>;
|
|
88
|
+
/**
|
|
89
|
+
* Generic column to use when your table needs collapsible rows
|
|
90
|
+
*/
|
|
79
91
|
CollapsibleColumn: ColumnDef<unknown>;
|
|
92
|
+
/**
|
|
93
|
+
* A date range picker integrated with the table store that resets pagination on change.
|
|
94
|
+
*/
|
|
80
95
|
DateRangePicker: import("@mantine/core").MantineComponent<{
|
|
81
96
|
props: import("./table-date-range-picker/TableDateRangePicker.js").TableDateRangePickerProps;
|
|
82
97
|
ref: HTMLDivElement;
|
|
83
98
|
stylesNames: TableDateRangePickerStylesNames;
|
|
84
99
|
compound: true;
|
|
85
100
|
}>;
|
|
101
|
+
/**
|
|
102
|
+
* A search input that filters table rows by matching against any field.
|
|
103
|
+
* The filter value is debounced and resets pagination to the first page on change.
|
|
104
|
+
*/
|
|
86
105
|
Filter: import("@mantine/core").MantineComponent<{
|
|
87
106
|
props: import("./table-filter/TableFilter.js").TableFilterProps;
|
|
88
107
|
ref: HTMLDivElement;
|
|
89
108
|
stylesNames: TableFilterStylesNames;
|
|
90
109
|
compound: true;
|
|
91
110
|
}>;
|
|
111
|
+
/**
|
|
112
|
+
* Container for elements displayed below the table body, typically pagination and per-page controls.
|
|
113
|
+
*/
|
|
92
114
|
Footer: import("react").FunctionComponent<import("./table-footer/TableFooter.js").TableFooterProps>;
|
|
115
|
+
/**
|
|
116
|
+
* Container for elements displayed above the table body such as filters, predicates, and actions.
|
|
117
|
+
*/
|
|
93
118
|
Header: import("@mantine/core").MantineComponent<{
|
|
94
119
|
props: import("./table-header/TableHeader.js").TableHeaderProps;
|
|
95
120
|
ref: HTMLDivElement;
|
|
96
121
|
stylesNames: TableHeaderStylesNames;
|
|
97
122
|
compound: true;
|
|
98
123
|
}>;
|
|
124
|
+
/**
|
|
125
|
+
* Displays the time of the last data update, automatically refreshing when table data changes.
|
|
126
|
+
*/
|
|
99
127
|
LastUpdated: import("@mantine/core").MantineComponent<{
|
|
100
128
|
props: import("./table-last-updated/TableLastUpdated.js").TableLastUpdatedProps;
|
|
101
129
|
ref: HTMLDivElement;
|
|
102
130
|
stylesNames: TableLastUpdatedStylesNames;
|
|
103
131
|
compound: true;
|
|
104
132
|
}>;
|
|
133
|
+
/**
|
|
134
|
+
* Available table layout configurations (e.g., Rows, Cards).
|
|
135
|
+
*/
|
|
105
136
|
Layouts: {
|
|
106
137
|
Rows: import("@mantine/core").MantineComponent<{
|
|
107
138
|
ref?: never;
|
|
@@ -110,12 +141,27 @@ export declare const Table: {
|
|
|
110
141
|
staticComponents: TableLayout;
|
|
111
142
|
}>;
|
|
112
143
|
};
|
|
144
|
+
/**
|
|
145
|
+
* Skeleton overlay displayed while the table data is loading.
|
|
146
|
+
*/
|
|
113
147
|
Loading: import("react").FunctionComponent<import("@mantine/core").SkeletonProps>;
|
|
148
|
+
/**
|
|
149
|
+
* Container displayed when the table has no data to show.
|
|
150
|
+
*/
|
|
114
151
|
NoData: import("react").FunctionComponent<import("./table-no-data/TableNoData.js").TableNoDataProps>;
|
|
152
|
+
/**
|
|
153
|
+
* Page navigation control that syncs with the table store and scrolls to the table on page change.
|
|
154
|
+
*/
|
|
115
155
|
Pagination: import("react").FunctionComponent<import("./table-pagination/TablePagination.types.js").TablePaginationProps>;
|
|
156
|
+
/**
|
|
157
|
+
* Control allowing users to choose how many results are displayed per page.
|
|
158
|
+
*/
|
|
116
159
|
PerPage: import("react").FunctionComponent<import("./table-per-page/TablePerPage.types.js").TablePerPageProps> & {
|
|
117
160
|
DEFAULT_SIZE: number;
|
|
118
161
|
};
|
|
162
|
+
/**
|
|
163
|
+
* A dropdown that filters table data by a predefined set of values and resets pagination on change.
|
|
164
|
+
*/
|
|
119
165
|
Predicate: import("react").FunctionComponent<import("./table-predicate/TablePredicate.js").TablePredicateProps>;
|
|
120
166
|
extend: CustomComponentThemeExtend<{
|
|
121
167
|
props: TableProps<unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,OAAO,EAA8B,MAAM,eAAe,CAAC;AAEhF,OAAO,EACH,SAAS,EAMZ,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAW,YAAY,EAAkC,MAAM,OAAO,CAAC;AAC9E,OAAO,EAAC,0BAA0B,EAAW,MAAM,uCAAuC,CAAC;AAE3F,OAAO,EAAC,WAAW,EAAE,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAEzD,OAAO,EAAC,YAAY,EAAC,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAC,eAAe,EAAE,0BAA0B,EAAC,MAAM,oCAAoC,CAAC;AAC/F,OAAO,EAAC,2BAA2B,EAAC,MAAM,qCAAqC,CAAC;AAChF,OAAO,EAAC,6BAA6B,EAAC,MAAM,uCAAuC,CAAC;AACpF,OAAO,EAAC,kBAAkB,EAAC,MAAM,sCAAsC,CAAC;AACxE,OAAO,EACH,oBAAoB,EACpB,sBAAsB,EACtB,iCAAiC,EACpC,MAAM,0CAA0C,CAAC;AAElD,OAAO,EAAC,oBAAoB,EAAE,+BAA+B,EAAC,MAAM,mDAAmD,CAAC;AACxH,OAAO,EAAC,WAAW,EAAE,sBAAsB,EAAC,MAAM,+BAA+B,CAAC;AAClF,OAAO,EAAC,WAAW,EAAC,MAAM,+BAA+B,CAAC;AAC1D,OA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