@ctlyst.id/internal-ui 2.0.5 → 2.0.7
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/layouting/components/button-group.d.ts +4 -0
- package/dist/components/layouting/components/list.d.ts +6 -0
- package/dist/components/layouting/components/stack.d.ts +2 -1
- package/dist/components/layouting/index.d.ts +4 -0
- package/dist/config/theme/components/chips.d.ts +3 -0
- package/dist/config/theme/components/form-label.d.ts +1 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/useDisclosure.d.ts +4 -0
- package/dist/internal-ui.cjs.development.js +53 -14
- package/dist/internal-ui.cjs.development.js.map +1 -1
- package/dist/internal-ui.cjs.production.min.js +3 -3
- package/dist/internal-ui.cjs.production.min.js.map +1 -1
- package/dist/internal-ui.esm.js +36 -17
- package/dist/internal-ui.esm.js.map +1 -1
- package/package.json +3 -3
@@ -0,0 +1,6 @@
|
|
1
|
+
import type { ListItemProps as ListItemPropsChakra, ListProps as ListPropsChakra } from '@chakra-ui/react';
|
2
|
+
import { List, ListItem } from '@chakra-ui/react';
|
3
|
+
export declare type ListProps = ListPropsChakra;
|
4
|
+
export declare type ListItemProps = ListItemPropsChakra;
|
5
|
+
export { ListItem };
|
6
|
+
export default List;
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import type { StackProps as StackPropsChakra } from '@chakra-ui/react';
|
2
|
-
import { Stack } from '@chakra-ui/react';
|
2
|
+
import { HStack, Stack, VStack } from '@chakra-ui/react';
|
3
3
|
export declare type StackProps = StackPropsChakra;
|
4
|
+
export { HStack, VStack };
|
4
5
|
export default Stack;
|
@@ -1,11 +1,15 @@
|
|
1
1
|
export { default as Box } from './components/box';
|
2
2
|
export * from './components/box';
|
3
|
+
export { default as ButtonGroup } from './components/button-group';
|
4
|
+
export * from './components/button-group';
|
3
5
|
export { default as Container } from './components/container';
|
4
6
|
export * from './components/container';
|
5
7
|
export { default as Flex } from './components/flex';
|
6
8
|
export * from './components/flex';
|
7
9
|
export { default as Grid } from './components/grid';
|
8
10
|
export * from './components/grid';
|
11
|
+
export { default as List } from './components/list';
|
12
|
+
export * from './components/list';
|
9
13
|
export { default as Stack } from './components/stack';
|
10
14
|
export * from './components/stack';
|
11
15
|
export { default as Wrap } from './components/wrap';
|
package/dist/hooks/index.d.ts
CHANGED
@@ -2150,20 +2150,26 @@ const InputAddonLeft = ({
|
|
2150
2150
|
children
|
2151
2151
|
}) => {
|
2152
2152
|
return /*#__PURE__*/React__default.createElement(react.InputLeftAddon, {
|
2153
|
-
borderLeftRadius: "md",
|
2154
2153
|
backgroundColor: "neutral.200",
|
2155
2154
|
px: 3,
|
2156
|
-
py: 2.5
|
2155
|
+
py: 2.5,
|
2156
|
+
style: {
|
2157
|
+
border: 0,
|
2158
|
+
marginInlineEnd: 0
|
2159
|
+
}
|
2157
2160
|
}, children);
|
2158
2161
|
};
|
2159
2162
|
const InputAddonRight = ({
|
2160
2163
|
children
|
2161
2164
|
}) => {
|
2162
2165
|
return /*#__PURE__*/React__default.createElement(react.InputRightAddon, {
|
2163
|
-
borderRightRadius: "md",
|
2164
2166
|
backgroundColor: "neutral.200",
|
2165
2167
|
px: 3,
|
2166
|
-
py: 2.5
|
2168
|
+
py: 2.5,
|
2169
|
+
style: {
|
2170
|
+
border: 0,
|
2171
|
+
marginInlineStart: 0
|
2172
|
+
}
|
2167
2173
|
}, children);
|
2168
2174
|
};
|
2169
2175
|
|
@@ -2349,7 +2355,8 @@ const Profile = ({
|
|
2349
2355
|
}, (data === null || data === void 0 ? void 0 : data.office) && /*#__PURE__*/React.createElement(react.Text, {
|
2350
2356
|
color: "neutral.700",
|
2351
2357
|
display: "inline-block",
|
2352
|
-
mr: 0.5
|
2358
|
+
mr: 0.5,
|
2359
|
+
as: "span"
|
2353
2360
|
}, data.office, " |", ' '), data === null || data === void 0 ? void 0 : data.userRole)), /*#__PURE__*/React.createElement(react.PopoverTrigger, null, /*#__PURE__*/React.createElement(react.Avatar, {
|
2354
2361
|
size: 'sm',
|
2355
2362
|
bg: "primary.500",
|
@@ -3157,9 +3164,6 @@ function SelectCreatable({
|
|
3157
3164
|
*/
|
3158
3165
|
const Switch = /*#__PURE__*/react.forwardRef(function Switch(props, ref) {
|
3159
3166
|
const styles = react.useMultiStyleConfig('Switch', props);
|
3160
|
-
const {
|
3161
|
-
size = 'md'
|
3162
|
-
} = props;
|
3163
3167
|
const {
|
3164
3168
|
spacing = '0.5rem',
|
3165
3169
|
children,
|
@@ -3221,10 +3225,10 @@ const Switch = /*#__PURE__*/react.forwardRef(function Switch(props, ref) {
|
|
3221
3225
|
transform: "translate(-50%, -50%)"
|
3222
3226
|
}, /*#__PURE__*/React__default.createElement(internalIcon.Check, {
|
3223
3227
|
color: "white",
|
3224
|
-
size: getIconSize(size)
|
3228
|
+
size: getIconSize(props.size)
|
3225
3229
|
}), /*#__PURE__*/React__default.createElement(internalIcon.Close, {
|
3226
3230
|
color: state.isDisabled ? 'neutral.600' : 'neutral.900',
|
3227
|
-
size: getIconSize(size)
|
3231
|
+
size: getIconSize(props.size)
|
3228
3232
|
})), /*#__PURE__*/React__default.createElement(react.chakra.span, {
|
3229
3233
|
__css: styles.thumb,
|
3230
3234
|
className: "chakra-switch__thumb",
|
@@ -3237,6 +3241,9 @@ const Switch = /*#__PURE__*/react.forwardRef(function Switch(props, ref) {
|
|
3237
3241
|
__css: labelStyles
|
3238
3242
|
}), children));
|
3239
3243
|
});
|
3244
|
+
Switch.defaultProps = {
|
3245
|
+
size: 'sm'
|
3246
|
+
};
|
3240
3247
|
|
3241
3248
|
const Tab = /*#__PURE__*/react.forwardRef((props, ref) => {
|
3242
3249
|
var _props$leftAddon, _props$rightAddon;
|
@@ -3502,6 +3509,10 @@ const Badge$1 = {
|
|
3502
3509
|
color: 'white'
|
3503
3510
|
},
|
3504
3511
|
'neutral-solid': {
|
3512
|
+
bg: 'neutral.900',
|
3513
|
+
color: 'white'
|
3514
|
+
},
|
3515
|
+
'disabled-solid': {
|
3505
3516
|
bg: 'neutral.600',
|
3506
3517
|
color: 'white'
|
3507
3518
|
},
|
@@ -3526,7 +3537,11 @@ const Badge$1 = {
|
|
3526
3537
|
color: 'danger.500'
|
3527
3538
|
},
|
3528
3539
|
'neutral-light': {
|
3529
|
-
bg: 'neutral.
|
3540
|
+
bg: 'neutral.200',
|
3541
|
+
color: 'neutral.900'
|
3542
|
+
},
|
3543
|
+
'disabled-light': {
|
3544
|
+
bg: 'neutral.200',
|
3530
3545
|
color: 'neutral.600'
|
3531
3546
|
}
|
3532
3547
|
},
|
@@ -3949,10 +3964,13 @@ const Chips = /*#__PURE__*/styledSystem.defineStyleConfig({
|
|
3949
3964
|
},
|
3950
3965
|
sizes: {
|
3951
3966
|
sm: {
|
3952
|
-
fontSize: '12px'
|
3967
|
+
fontSize: '12px',
|
3968
|
+
lineHeight: 4
|
3953
3969
|
},
|
3954
3970
|
md: {
|
3955
|
-
fontSize: '14px'
|
3971
|
+
fontSize: '14px',
|
3972
|
+
paddingY: 2,
|
3973
|
+
lineHeight: 5
|
3956
3974
|
}
|
3957
3975
|
},
|
3958
3976
|
defaultProps: {
|
@@ -3962,6 +3980,7 @@ const Chips = /*#__PURE__*/styledSystem.defineStyleConfig({
|
|
3962
3980
|
|
3963
3981
|
const baseStyle$2 = /*#__PURE__*/styledSystem.defineStyle({
|
3964
3982
|
fontSize: 'field.sm',
|
3983
|
+
fontWeight: 'normal',
|
3965
3984
|
marginEnd: 1,
|
3966
3985
|
mb: 1
|
3967
3986
|
});
|
@@ -4011,7 +4030,7 @@ const size = {
|
|
4011
4030
|
}),
|
4012
4031
|
sm: /*#__PURE__*/styledSystem.defineStyle({
|
4013
4032
|
fontSize: 'text.sm',
|
4014
|
-
h: 9
|
4033
|
+
h: 9,
|
4015
4034
|
borderRadius: 'md'
|
4016
4035
|
})
|
4017
4036
|
};
|
@@ -4591,6 +4610,12 @@ Object.defineProperty(exports, 'DrawerOverlay', {
|
|
4591
4610
|
return react.ModalOverlay;
|
4592
4611
|
}
|
4593
4612
|
});
|
4613
|
+
Object.defineProperty(exports, 'HStack', {
|
4614
|
+
enumerable: true,
|
4615
|
+
get: function () {
|
4616
|
+
return react.HStack;
|
4617
|
+
}
|
4618
|
+
});
|
4594
4619
|
Object.defineProperty(exports, 'InputElementLeft', {
|
4595
4620
|
enumerable: true,
|
4596
4621
|
get: function () {
|
@@ -4603,6 +4628,12 @@ Object.defineProperty(exports, 'InputElementRight', {
|
|
4603
4628
|
return react.InputRightElement;
|
4604
4629
|
}
|
4605
4630
|
});
|
4631
|
+
Object.defineProperty(exports, 'ListItem', {
|
4632
|
+
enumerable: true,
|
4633
|
+
get: function () {
|
4634
|
+
return react.ListItem;
|
4635
|
+
}
|
4636
|
+
});
|
4606
4637
|
Object.defineProperty(exports, 'Modal', {
|
4607
4638
|
enumerable: true,
|
4608
4639
|
get: function () {
|
@@ -4663,6 +4694,12 @@ Object.defineProperty(exports, 'TabsProvider', {
|
|
4663
4694
|
return react.TabsProvider;
|
4664
4695
|
}
|
4665
4696
|
});
|
4697
|
+
Object.defineProperty(exports, 'VStack', {
|
4698
|
+
enumerable: true,
|
4699
|
+
get: function () {
|
4700
|
+
return react.VStack;
|
4701
|
+
}
|
4702
|
+
});
|
4666
4703
|
Object.defineProperty(exports, 'useDrawerContext', {
|
4667
4704
|
enumerable: true,
|
4668
4705
|
get: function () {
|
@@ -4763,6 +4800,7 @@ exports.Badge = Badge;
|
|
4763
4800
|
exports.Box = react.Box;
|
4764
4801
|
exports.BreadCrumb = BreadCrumb;
|
4765
4802
|
exports.Button = Button;
|
4803
|
+
exports.ButtonGroup = react.ButtonGroup;
|
4766
4804
|
exports.Card = CardCustom;
|
4767
4805
|
exports.Checkbox = CheckboxComponent;
|
4768
4806
|
exports.CheckboxGroup = CheckboxGroupComponent;
|
@@ -4777,6 +4815,7 @@ exports.Header = Header;
|
|
4777
4815
|
exports.InputAddonLeft = InputAddonLeft;
|
4778
4816
|
exports.InputAddonRight = InputAddonRight;
|
4779
4817
|
exports.InputField = InputField;
|
4818
|
+
exports.List = react.List;
|
4780
4819
|
exports.Loader = Loader;
|
4781
4820
|
exports.MainMenu = Navigation;
|
4782
4821
|
exports.ModalBody = ModalBody;
|