@teamturing/react-kit 2.19.34 → 2.19.36

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.
@@ -6,11 +6,11 @@ import { ViewProps } from '../View';
6
6
  type Props = {
7
7
  gapX?: ResponsiveValue<SpaceKey>;
8
8
  gapY?: ResponsiveValue<SpaceKey>;
9
- } & Pick<ViewProps, 'alignItems' | 'justifyContent' | 'sx'> & AsProp;
9
+ } & Pick<ViewProps, 'alignItems' | 'justifyContent'> & SxProp & AsProp;
10
10
  declare const _default: import("react").ForwardRefExoticComponent<{
11
11
  gapX?: ResponsiveValue<0 | 1 | 20 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 10 | 12 | 14 | 16 | 18 | "-80" | "-50" | "-48" | "-40" | "-32" | "-30" | "-28" | "-24" | "-20" | "-18" | "-16" | "-14" | "-12" | "-10" | "-8" | "-7" | "-6" | "-5" | "-4" | "-3" | "-2" | "-1" | "-0.5" | "-0.25" | 0.25 | 0.5 | 24 | 28 | 30 | 32 | 40 | 48 | 50 | 80> | undefined;
12
12
  gapY?: ResponsiveValue<0 | 1 | 20 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 10 | 12 | 14 | 16 | 18 | "-80" | "-50" | "-48" | "-40" | "-32" | "-30" | "-28" | "-24" | "-20" | "-18" | "-16" | "-14" | "-12" | "-10" | "-8" | "-7" | "-6" | "-5" | "-4" | "-3" | "-2" | "-1" | "-0.5" | "-0.25" | 0.25 | 0.5 | 24 | 28 | 30 | 32 | 40 | 48 | 50 | 80> | undefined;
13
- } & Pick<ViewProps, "alignItems" | "justifyContent" | "sx"> & AsProp & {
13
+ } & Pick<ViewProps, "alignItems" | "justifyContent"> & SxProp & AsProp & {
14
14
  children?: import("react").ReactNode;
15
15
  } & import("react").RefAttributes<HTMLDivElement>> & {
16
16
  Item: ({ children, ...props }: PropsWithChildren<SxProp>) => import("react/jsx-runtime").JSX.Element;
package/dist/index.js CHANGED
@@ -23543,7 +23543,7 @@ const Pagination = ({
23543
23543
  previousPageDirectionProps: {
23544
23544
  type: 'button',
23545
23545
  onClick: () => onPreviousClick(currentPageIndex),
23546
- disabled: currentPageIndex === 0
23546
+ disabled: pages.length === 0 || currentPageIndex === 0
23547
23547
  }
23548
23548
  }), !isTruncationNeeded ? pages.map(({
23549
23549
  page,
@@ -23581,7 +23581,7 @@ const Pagination = ({
23581
23581
  nextPageDirectionProps: {
23582
23582
  type: 'button',
23583
23583
  onClick: () => onNextClick(currentPageIndex),
23584
- disabled: currentPageIndex === totalPageCount - 1
23584
+ disabled: pages.length === 0 || currentPageIndex === totalPageCount - 1
23585
23585
  }
23586
23586
  })]
23587
23587
  });
@@ -23964,12 +23964,14 @@ const Stack = /*#__PURE__*/React.forwardRef(({
23964
23964
  gapY = 0,
23965
23965
  children,
23966
23966
  alignItems = 'center',
23967
+ sx,
23967
23968
  ...props
23968
23969
  }, ref) => /*#__PURE__*/jsxRuntimeExports.jsx(BaseStack, {
23969
23970
  ref: ref,
23970
23971
  alignItems: alignItems,
23971
23972
  gapX: gapX,
23972
23973
  gapY: gapY,
23974
+ sx: sx,
23973
23975
  ...props,
23974
23976
  children: children
23975
23977
  }));
@@ -23999,7 +24001,7 @@ const BaseStack = styled__default.default(View)({
23999
24001
  };
24000
24002
  return [key, styleValue];
24001
24003
  }))
24002
- }));
24004
+ }), sx);
24003
24005
  const Item = ({
24004
24006
  children,
24005
24007
  ...props
@@ -65,7 +65,7 @@ const Pagination = ({
65
65
  previousPageDirectionProps: {
66
66
  type: 'button',
67
67
  onClick: () => onPreviousClick(currentPageIndex),
68
- disabled: currentPageIndex === 0
68
+ disabled: pages.length === 0 || currentPageIndex === 0
69
69
  }
70
70
  }), !isTruncationNeeded ? pages.map(({
71
71
  page,
@@ -103,7 +103,7 @@ const Pagination = ({
103
103
  nextPageDirectionProps: {
104
104
  type: 'button',
105
105
  onClick: () => onNextClick(currentPageIndex),
106
- disabled: currentPageIndex === totalPageCount - 1
106
+ disabled: pages.length === 0 || currentPageIndex === totalPageCount - 1
107
107
  }
108
108
  })]
109
109
  });
@@ -4,6 +4,7 @@ import { forcePixelValue } from '../../packages/utils/esm/forcePixelValue.js';
4
4
  import { forwardRef } from 'react';
5
5
  import styled from 'styled-components';
6
6
  import '../../node_modules/styled-system/dist/index.esm.js';
7
+ import { sx } from '../../utils/styled-system/index.js';
7
8
  import View from '../View/index.js';
8
9
  import { j as jsxRuntimeExports } from '../../node_modules/react/jsx-runtime.js';
9
10
  import { variant } from '../../node_modules/@styled-system/variant/dist/index.esm.js';
@@ -13,12 +14,14 @@ const Stack = /*#__PURE__*/forwardRef(({
13
14
  gapY = 0,
14
15
  children,
15
16
  alignItems = 'center',
17
+ sx,
16
18
  ...props
17
19
  }, ref) => /*#__PURE__*/jsxRuntimeExports.jsx(BaseStack, {
18
20
  ref: ref,
19
21
  alignItems: alignItems,
20
22
  gapX: gapX,
21
23
  gapY: gapY,
24
+ sx: sx,
22
25
  ...props,
23
26
  children: children
24
27
  }));
@@ -48,7 +51,7 @@ const BaseStack = styled(View)({
48
51
  };
49
52
  return [key, styleValue];
50
53
  }))
51
- }));
54
+ }), sx);
52
55
  const Item = ({
53
56
  children,
54
57
  ...props
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamturing/react-kit",
3
- "version": "2.19.34",
3
+ "version": "2.19.36",
4
4
  "description": "React components, hooks for create teamturing web application",
5
5
  "author": "Sungchang Park <psch300@gmail.com> (https://github.com/psch300)",
6
6
  "homepage": "https://github.com/weareteamturing/bombe#readme",
@@ -65,5 +65,5 @@
65
65
  "react-textarea-autosize": "^8.5.3",
66
66
  "styled-system": "^5.1.5"
67
67
  },
68
- "gitHead": "db40f13223202357ef49872c1bc30ae387d93fb1"
68
+ "gitHead": "5b4724f00eeef00ec84941d54e5b6f8e3083e941"
69
69
  }