@ctlyst.id/internal-ui 3.1.24 → 3.2.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +27 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +35 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -5137,7 +5137,11 @@ import {
|
|
5137
5137
|
} from "@chakra-ui/react";
|
5138
5138
|
|
5139
5139
|
// src/config/theme/themeConfiguration.ts
|
5140
|
-
import {
|
5140
|
+
import {
|
5141
|
+
extendTheme as _chakraExtendTheme,
|
5142
|
+
isChakraTheme,
|
5143
|
+
mergeThemeOverride
|
5144
|
+
} from "@chakra-ui/react";
|
5141
5145
|
|
5142
5146
|
// src/config/theme/components/index.ts
|
5143
5147
|
var components_exports = {};
|
@@ -6433,7 +6437,7 @@ var baseStyle11 = definePartsStyle10({
|
|
6433
6437
|
td: {
|
6434
6438
|
// backgroundColor: 'neutral.50',
|
6435
6439
|
textAlign: "start",
|
6436
|
-
|
6440
|
+
minHeight: "56px",
|
6437
6441
|
_disabled: {
|
6438
6442
|
opacity: 0.5
|
6439
6443
|
}
|
@@ -6715,8 +6719,32 @@ var config = {
|
|
6715
6719
|
initialColorMode: "light",
|
6716
6720
|
useSystemColorMode: false
|
6717
6721
|
};
|
6722
|
+
function isFunction(value) {
|
6723
|
+
return typeof value === "function";
|
6724
|
+
}
|
6725
|
+
function pipe(...fns) {
|
6726
|
+
return (v) => fns.reduce((a, b) => b(a), v);
|
6727
|
+
}
|
6728
|
+
var createExtendTheme = (theme5) => {
|
6729
|
+
return function extendTheme2(...extensions) {
|
6730
|
+
let overrides = [...extensions];
|
6731
|
+
let activeTheme = extensions[extensions.length - 1];
|
6732
|
+
if (isChakraTheme(activeTheme) && // this ensures backward compatibility
|
6733
|
+
// previously only `extendTheme(override, activeTheme?)` was allowed
|
6734
|
+
overrides.length > 1) {
|
6735
|
+
overrides = overrides.slice(0, overrides.length - 1);
|
6736
|
+
} else {
|
6737
|
+
activeTheme = theme5;
|
6738
|
+
}
|
6739
|
+
return pipe(
|
6740
|
+
...overrides.map(
|
6741
|
+
(extension) => (prevTheme) => isFunction(extension) ? extension(prevTheme) : mergeThemeOverride(prevTheme, extension)
|
6742
|
+
)
|
6743
|
+
)(activeTheme);
|
6744
|
+
};
|
6745
|
+
};
|
6718
6746
|
var getTheme = (foundations) => {
|
6719
|
-
return
|
6747
|
+
return _chakraExtendTheme({
|
6720
6748
|
...foundations,
|
6721
6749
|
components: {
|
6722
6750
|
...components_exports
|
@@ -6733,7 +6761,7 @@ var getTheme = (foundations) => {
|
|
6733
6761
|
config
|
6734
6762
|
});
|
6735
6763
|
};
|
6736
|
-
var theme4 =
|
6764
|
+
var theme4 = _chakraExtendTheme({
|
6737
6765
|
components: {
|
6738
6766
|
...components_exports
|
6739
6767
|
},
|
@@ -6836,7 +6864,7 @@ import {
|
|
6836
6864
|
} from "@chakra-ui/react";
|
6837
6865
|
|
6838
6866
|
// src/index.ts
|
6839
|
-
import { extendTheme
|
6867
|
+
import { extendTheme, forwardRef as forwardRef12 } from "@chakra-ui/react";
|
6840
6868
|
export {
|
6841
6869
|
Accordion,
|
6842
6870
|
AccordionButton,
|
@@ -7147,7 +7175,8 @@ export {
|
|
7147
7175
|
WrapItemProps,
|
7148
7176
|
WrapProps,
|
7149
7177
|
XMSLogo,
|
7150
|
-
|
7178
|
+
createExtendTheme,
|
7179
|
+
extendTheme,
|
7151
7180
|
forwardRef12 as forwardRef,
|
7152
7181
|
getSelectAllCheckboxState,
|
7153
7182
|
getTheme,
|