@ctlyst.id/internal-ui 2.1.19 → 2.1.20

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.mjs CHANGED
@@ -920,13 +920,12 @@ var getCommonPinningStyles = (column) => {
920
920
  "&:after": {
921
921
  content: "''",
922
922
  position: "absolute",
923
- width: "20%",
924
- height: "100%",
923
+ width: "30px",
925
924
  right: "0px",
925
+ bottom: "-1px",
926
926
  top: 0,
927
- zIndex: -1,
928
- boxShadow: "-10px 0px 20px 10px #00000010",
929
- clipPath: "inset(0px -38px 0px 0px)"
927
+ transform: "translateX(100%)",
928
+ boxShadow: "inset 14px 0px 20px -10px #00000010"
930
929
  }
931
930
  } : {},
932
931
  ...isFirstRightPinnedColumn ? {
@@ -934,13 +933,12 @@ var getCommonPinningStyles = (column) => {
934
933
  "&:after": {
935
934
  content: "''",
936
935
  position: "absolute",
937
- width: "20%",
938
- height: "100%",
936
+ width: "30px",
939
937
  left: "0%",
940
938
  top: 0,
941
- zIndex: -1,
942
- boxShadow: "10px 0px 20px 10px #00000010",
943
- clipPath: "inset(0px 0px 0px -38px )"
939
+ bottom: "-1px",
940
+ transform: "translateX(-100%)",
941
+ boxShadow: "inset -14px 0px 20px -10px #00000010"
944
942
  }
945
943
  } : {}
946
944
  };
@@ -3965,6 +3963,7 @@ __export(components_exports, {
3965
3963
  Input: () => input_default,
3966
3964
  LoaderStyle: () => loader_default2,
3967
3965
  Modal: () => modal_default,
3966
+ Popover: () => popover_default,
3968
3967
  Radio: () => radio_default,
3969
3968
  Switch: () => switch_default2,
3970
3969
  Table: () => table_default,
@@ -4905,11 +4904,23 @@ var Modal3 = defineStyleConfig6({
4905
4904
  });
4906
4905
  var modal_default = Modal3;
4907
4906
 
4908
- // src/config/theme/components/radio.ts
4909
- import { radioAnatomy } from "@chakra-ui/anatomy";
4907
+ // src/config/theme/components/popover.ts
4908
+ import { popoverAnatomy as parts4 } from "@chakra-ui/anatomy";
4910
4909
  import { createMultiStyleConfigHelpers as createMultiStyleConfigHelpers5 } from "@chakra-ui/react";
4911
- var { definePartsStyle: definePartsStyle5, defineMultiStyleConfig: defineMultiStyleConfig5 } = createMultiStyleConfigHelpers5(radioAnatomy.keys);
4910
+ var { definePartsStyle: definePartsStyle5, defineMultiStyleConfig: defineMultiStyleConfig5 } = createMultiStyleConfigHelpers5(parts4.keys);
4912
4911
  var baseStyle6 = definePartsStyle5({
4912
+ content: {
4913
+ bg: "white"
4914
+ }
4915
+ });
4916
+ var popoverTheme = defineMultiStyleConfig5({ baseStyle: baseStyle6 });
4917
+ var popover_default = popoverTheme;
4918
+
4919
+ // src/config/theme/components/radio.ts
4920
+ import { radioAnatomy } from "@chakra-ui/anatomy";
4921
+ import { createMultiStyleConfigHelpers as createMultiStyleConfigHelpers6 } from "@chakra-ui/react";
4922
+ var { definePartsStyle: definePartsStyle6, defineMultiStyleConfig: defineMultiStyleConfig6 } = createMultiStyleConfigHelpers6(radioAnatomy.keys);
4923
+ var baseStyle7 = definePartsStyle6({
4913
4924
  control: {
4914
4925
  border: "1px solid",
4915
4926
  width: "16px",
@@ -4925,7 +4936,7 @@ var baseStyle6 = definePartsStyle5({
4925
4936
  }
4926
4937
  }
4927
4938
  });
4928
- var errors2 = definePartsStyle5({
4939
+ var errors2 = definePartsStyle6({
4929
4940
  control: {
4930
4941
  borderColor: "danger.500",
4931
4942
  _checked: {
@@ -4960,7 +4971,7 @@ var errors2 = definePartsStyle5({
4960
4971
  fontSize: "12px"
4961
4972
  }
4962
4973
  });
4963
- var unstyled3 = definePartsStyle5({
4974
+ var unstyled3 = definePartsStyle6({
4964
4975
  control: {
4965
4976
  borderColor: "neutral.600",
4966
4977
  _checked: {
@@ -4999,8 +5010,8 @@ var variants4 = {
4999
5010
  errors: errors2,
5000
5011
  unstyled: unstyled3
5001
5012
  };
5002
- var Radio2 = defineMultiStyleConfig5({
5003
- baseStyle: baseStyle6,
5013
+ var Radio2 = defineMultiStyleConfig6({
5014
+ baseStyle: baseStyle7,
5004
5015
  variants: variants4,
5005
5016
  defaultProps: {
5006
5017
  variant: "unstyled"
@@ -5009,10 +5020,10 @@ var Radio2 = defineMultiStyleConfig5({
5009
5020
  var radio_default = Radio2;
5010
5021
 
5011
5022
  // src/config/theme/components/switch.ts
5012
- import { switchAnatomy as parts4 } from "@chakra-ui/anatomy";
5013
- import { createMultiStyleConfigHelpers as createMultiStyleConfigHelpers6, defineStyle as defineStyle4 } from "@chakra-ui/styled-system";
5023
+ import { switchAnatomy as parts5 } from "@chakra-ui/anatomy";
5024
+ import { createMultiStyleConfigHelpers as createMultiStyleConfigHelpers7, defineStyle as defineStyle4 } from "@chakra-ui/styled-system";
5014
5025
  import { calc, cssVar as cssVar2 } from "@chakra-ui/theme-tools";
5015
- var { defineMultiStyleConfig: defineMultiStyleConfig6, definePartsStyle: definePartsStyle6 } = createMultiStyleConfigHelpers6(parts4.keys);
5026
+ var { defineMultiStyleConfig: defineMultiStyleConfig7, definePartsStyle: definePartsStyle7 } = createMultiStyleConfigHelpers7(parts5.keys);
5016
5027
  var $width = cssVar2("switch-track-width");
5017
5028
  var $height = cssVar2("switch-track-height");
5018
5029
  var $diff = cssVar2("switch-track-diff");
@@ -5029,7 +5040,7 @@ var baseStyleThumb = defineStyle4({
5029
5040
  transform: `translateX(${$translateX.reference})`
5030
5041
  }
5031
5042
  });
5032
- var baseStyle7 = definePartsStyle6(() => ({
5043
+ var baseStyle8 = definePartsStyle7(() => ({
5033
5044
  container: {
5034
5045
  [$diff.variable]: diffValue,
5035
5046
  [$translateX.variable]: $diff.reference,
@@ -5054,7 +5065,7 @@ var baseStyle7 = definePartsStyle6(() => ({
5054
5065
  thumb: baseStyleThumb
5055
5066
  }));
5056
5067
  var sizes3 = {
5057
- sm: definePartsStyle6({
5068
+ sm: definePartsStyle7({
5058
5069
  container: {
5059
5070
  [$width.variable]: "1.875rem",
5060
5071
  [$height.variable]: "0.75rem"
@@ -5064,7 +5075,7 @@ var sizes3 = {
5064
5075
  [$height.variable]: "0.75rem"
5065
5076
  }
5066
5077
  }),
5067
- md: definePartsStyle6({
5078
+ md: definePartsStyle7({
5068
5079
  container: {
5069
5080
  [$width.variable]: "2.375rem",
5070
5081
  [$height.variable]: "1rem"
@@ -5074,7 +5085,7 @@ var sizes3 = {
5074
5085
  [$height.variable]: "1rem"
5075
5086
  }
5076
5087
  }),
5077
- lg: definePartsStyle6({
5088
+ lg: definePartsStyle7({
5078
5089
  container: {
5079
5090
  [$width.variable]: "3.25rem",
5080
5091
  [$height.variable]: "1.375rem"
@@ -5085,8 +5096,8 @@ var sizes3 = {
5085
5096
  }
5086
5097
  })
5087
5098
  };
5088
- var Switch3 = defineMultiStyleConfig6({
5089
- baseStyle: baseStyle7,
5099
+ var Switch3 = defineMultiStyleConfig7({
5100
+ baseStyle: baseStyle8,
5090
5101
  sizes: sizes3,
5091
5102
  defaultProps: {
5092
5103
  size: "md"
@@ -5095,14 +5106,15 @@ var Switch3 = defineMultiStyleConfig6({
5095
5106
  var switch_default2 = Switch3;
5096
5107
 
5097
5108
  // src/config/theme/components/table.ts
5098
- import { tableAnatomy as parts5 } from "@chakra-ui/anatomy";
5099
- import { createMultiStyleConfigHelpers as createMultiStyleConfigHelpers7, defineStyle as defineStyle5 } from "@chakra-ui/styled-system";
5109
+ import { tableAnatomy as parts6 } from "@chakra-ui/anatomy";
5110
+ import { createMultiStyleConfigHelpers as createMultiStyleConfigHelpers8, defineStyle as defineStyle5 } from "@chakra-ui/styled-system";
5100
5111
  import { mode as mode2 } from "@chakra-ui/theme-tools";
5101
- var { defineMultiStyleConfig: defineMultiStyleConfig7, definePartsStyle: definePartsStyle7 } = createMultiStyleConfigHelpers7(parts5.keys);
5102
- var baseStyle8 = definePartsStyle7({
5112
+ var { defineMultiStyleConfig: defineMultiStyleConfig8, definePartsStyle: definePartsStyle8 } = createMultiStyleConfigHelpers8(parts6.keys);
5113
+ var baseStyle9 = definePartsStyle8({
5103
5114
  table: {
5104
5115
  fontVariantNumeric: "lining-nums tabular-nums",
5105
- borderCollapse: "collapse",
5116
+ borderCollapse: "separate",
5117
+ borderSpacing: 0,
5106
5118
  width: "full",
5107
5119
  tableLayout: "fixed"
5108
5120
  },
@@ -5128,15 +5140,25 @@ var baseStyle8 = definePartsStyle7({
5128
5140
  tr: {
5129
5141
  cursor: "pointer",
5130
5142
  _hover: {
5131
- backgroundColor: "neutral.200"
5143
+ td: {
5144
+ backgroundColor: "neutral.200",
5145
+ "&>div": {
5146
+ backgroundColor: "neutral.200"
5147
+ }
5148
+ }
5132
5149
  },
5133
5150
  '&[data-active="true"]': {
5134
- backgroundColor: "neutral.100"
5151
+ td: {
5152
+ backgroundColor: "neutral.100",
5153
+ "&>div": {
5154
+ backgroundColor: "neutral.200"
5155
+ }
5156
+ }
5135
5157
  }
5136
5158
  }
5137
5159
  },
5138
5160
  td: {
5139
- backgroundColor: "neutral.50",
5161
+ // backgroundColor: 'neutral.50',
5140
5162
  textAlign: "start",
5141
5163
  height: "56px",
5142
5164
  "&:first-of-type": {
@@ -5161,7 +5183,7 @@ var numericStyles = defineStyle5({
5161
5183
  textAlign: "end"
5162
5184
  }
5163
5185
  });
5164
- var variantSimple = definePartsStyle7((props) => {
5186
+ var variantSimple = definePartsStyle8((props) => {
5165
5187
  const { colorScheme: c } = props;
5166
5188
  return {
5167
5189
  th: {
@@ -5187,7 +5209,7 @@ var variantSimple = definePartsStyle7((props) => {
5187
5209
  }
5188
5210
  };
5189
5211
  });
5190
- var variantStripe = definePartsStyle7((props) => {
5212
+ var variantStripe = definePartsStyle8((props) => {
5191
5213
  const { colorScheme: c } = props;
5192
5214
  return {
5193
5215
  th: {
@@ -5232,7 +5254,7 @@ var variants5 = {
5232
5254
  unstyled: defineStyle5({})
5233
5255
  };
5234
5256
  var sizes4 = {
5235
- sm: definePartsStyle7({
5257
+ sm: definePartsStyle8({
5236
5258
  th: {
5237
5259
  px: "2",
5238
5260
  py: "4",
@@ -5251,7 +5273,7 @@ var sizes4 = {
5251
5273
  fontSize: "xs"
5252
5274
  }
5253
5275
  }),
5254
- md: definePartsStyle7({
5276
+ md: definePartsStyle8({
5255
5277
  th: {
5256
5278
  px: "2",
5257
5279
  py: "4",
@@ -5269,7 +5291,7 @@ var sizes4 = {
5269
5291
  fontSize: "sm"
5270
5292
  }
5271
5293
  }),
5272
- lg: definePartsStyle7({
5294
+ lg: definePartsStyle8({
5273
5295
  th: {
5274
5296
  px: "2",
5275
5297
  py: "4",
@@ -5288,8 +5310,8 @@ var sizes4 = {
5288
5310
  }
5289
5311
  })
5290
5312
  };
5291
- var tableTheme = defineMultiStyleConfig7({
5292
- baseStyle: baseStyle8,
5313
+ var tableTheme = defineMultiStyleConfig8({
5314
+ baseStyle: baseStyle9,
5293
5315
  variants: variants5,
5294
5316
  sizes: sizes4,
5295
5317
  defaultProps: {
@@ -5301,10 +5323,10 @@ var tableTheme = defineMultiStyleConfig7({
5301
5323
  var table_default = tableTheme;
5302
5324
 
5303
5325
  // src/config/theme/components/tabs.ts
5304
- import { tabsAnatomy as parts6 } from "@chakra-ui/anatomy";
5305
- import { createMultiStyleConfigHelpers as createMultiStyleConfigHelpers8 } from "@chakra-ui/styled-system";
5306
- var { defineMultiStyleConfig: defineMultiStyleConfig8, definePartsStyle: definePartsStyle8 } = createMultiStyleConfigHelpers8(parts6.keys);
5307
- var variantLine = definePartsStyle8((props) => {
5326
+ import { tabsAnatomy as parts7 } from "@chakra-ui/anatomy";
5327
+ import { createMultiStyleConfigHelpers as createMultiStyleConfigHelpers9 } from "@chakra-ui/styled-system";
5328
+ var { defineMultiStyleConfig: defineMultiStyleConfig9, definePartsStyle: definePartsStyle9 } = createMultiStyleConfigHelpers9(parts7.keys);
5329
+ var variantLine = definePartsStyle9((props) => {
5308
5330
  const { orientation } = props;
5309
5331
  const isVertical = orientation === "vertical";
5310
5332
  const borderProp = isVertical ? "borderStart" : "borderBottom";
@@ -5321,12 +5343,12 @@ var variantLine = definePartsStyle8((props) => {
5321
5343
  }
5322
5344
  };
5323
5345
  });
5324
- var variantUnstyled = definePartsStyle8({});
5346
+ var variantUnstyled = definePartsStyle9({});
5325
5347
  var variants6 = {
5326
5348
  line: variantLine,
5327
5349
  unstyled: variantUnstyled
5328
5350
  };
5329
- var tabsTheme = defineMultiStyleConfig8({
5351
+ var tabsTheme = defineMultiStyleConfig9({
5330
5352
  variants: variants6,
5331
5353
  defaultProps: {
5332
5354
  size: "md",
@@ -5411,12 +5433,12 @@ var textarea_default2 = Textarea;
5411
5433
  // src/config/theme/components/tooltip.ts
5412
5434
  import { cssVar as cssVar3, defineStyleConfig as defineStyleConfig8 } from "@chakra-ui/react";
5413
5435
  var $arrowBg = cssVar3("popper-arrow-bg");
5414
- var baseStyle9 = {
5436
+ var baseStyle10 = {
5415
5437
  bg: "neutral.700",
5416
5438
  fontSize: "text.sm",
5417
5439
  [$arrowBg.variable]: "var(--chakra-colors-neutral-700)"
5418
5440
  };
5419
- var Tooltip2 = defineStyleConfig8({ baseStyle: baseStyle9 });
5441
+ var Tooltip2 = defineStyleConfig8({ baseStyle: baseStyle10 });
5420
5442
  var tooltip_default = Tooltip2;
5421
5443
 
5422
5444
  // src/config/theme/themeConfiguration.ts