@teamturing/react-kit 2.53.0 → 2.53.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/dist/index.js CHANGED
@@ -4023,7 +4023,9 @@ const BaseIconButton = styled__default.default(UnstyledButton)(({
4023
4023
 
4024
4024
  const MotionView = framerMotion.motion(View);
4025
4025
 
4026
- const UnstyledDialogBody = styled__default.default.div`
4026
+ const UnstyledDialogBody = styled__default.default.div.attrs({
4027
+ className: 'trk-dialog_body'
4028
+ })`
4027
4029
  flex-grow: 1;
4028
4030
  flex-shrink: 1;
4029
4031
  flex-basis: auto;
@@ -4045,7 +4047,9 @@ const DialogBody = ({
4045
4047
  children: children
4046
4048
  });
4047
4049
 
4048
- const UnstyledDialogFooter = styled__default.default.div`
4050
+ const UnstyledDialogFooter = styled__default.default.div.attrs({
4051
+ className: 'trk-dialog_footer'
4052
+ })`
4049
4053
  flex-grow: 0;
4050
4054
  flex-shrink: 0;
4051
4055
  flex-basis: auto;
@@ -4076,7 +4080,9 @@ const DialogFooter = ({
4076
4080
  children: children
4077
4081
  });
4078
4082
 
4079
- const UnstyledDialogHeader = styled__default.default.div`
4083
+ const UnstyledDialogHeader = styled__default.default.div.attrs({
4084
+ className: 'trk-dialog_header'
4085
+ })`
4080
4086
  flex-grow: 0;
4081
4087
  flex-shrink: 0;
4082
4088
  flex-basis: auto;
@@ -4106,6 +4112,7 @@ const DialogHeaderSubtitle = ({
4106
4112
  color = 'text/neutral/subtler',
4107
4113
  ...props
4108
4114
  }) => /*#__PURE__*/jsxRuntime.jsx(Text, {
4115
+ className: 'trk-dialog_header_subtitle',
4109
4116
  typography: typography,
4110
4117
  color: color,
4111
4118
  ...props
@@ -4116,6 +4123,7 @@ const DialogHeaderTitle = ({
4116
4123
  color = 'text/neutral',
4117
4124
  ...props
4118
4125
  }) => /*#__PURE__*/jsxRuntime.jsx(Text, {
4126
+ className: 'trk-dialog_header_title',
4119
4127
  typography: typography,
4120
4128
  color: color,
4121
4129
  ...props
@@ -4198,6 +4206,7 @@ const Dialog = ({
4198
4206
  width: '100%',
4199
4207
  height: '100%',
4200
4208
  children: /*#__PURE__*/jsxRuntime.jsxs(BaseDialog, {
4209
+ className: `rkt-dialog--${size}`,
4201
4210
  ref: dialogRef,
4202
4211
  "aria-modal": 'true',
4203
4212
  role: 'dialog',
@@ -4242,6 +4251,7 @@ const Dialog = ({
4242
4251
  right: 3
4243
4252
  },
4244
4253
  children: /*#__PURE__*/jsxRuntime.jsx(IconButton, {
4254
+ className: 'trk-dialog__close_button',
4245
4255
  ref: closeButtonRef,
4246
4256
  icon: icons.CloseIcon,
4247
4257
  variant: 'plain',
@@ -4293,7 +4303,9 @@ var index$8 = Object.assign( /*#__PURE__*/React.forwardRef(Dialog), {
4293
4303
  Footer: DialogFooter
4294
4304
  });
4295
4305
 
4296
- const UnstyledDrawerBody = styled__default.default.div`
4306
+ const UnstyledDrawerBody = styled__default.default.div.attrs({
4307
+ className: 'trk-drawer_body'
4308
+ })`
4297
4309
  flex-grow: 1;
4298
4310
  flex-shrink: 1;
4299
4311
  flex-basis: auto;
@@ -4315,7 +4327,9 @@ const DrawerBody = ({
4315
4327
  children: children
4316
4328
  });
4317
4329
 
4318
- const UnstyledDrawerFooter = styled__default.default.div`
4330
+ const UnstyledDrawerFooter = styled__default.default.div.attrs({
4331
+ className: 'trk-drawer_footer'
4332
+ })`
4319
4333
  flex-grow: 0;
4320
4334
  flex-shrink: 0;
4321
4335
  flex-basis: auto;
@@ -4346,7 +4360,9 @@ const DrawerFooter = ({
4346
4360
  children: children
4347
4361
  });
4348
4362
 
4349
- const UnstyledDrawerHeader = styled__default.default.div`
4363
+ const UnstyledDrawerHeader = styled__default.default.div.attrs({
4364
+ className: 'trk-drawer_header'
4365
+ })`
4350
4366
  flex-grow: 0;
4351
4367
  flex-shrink: 0;
4352
4368
  flex-basis: auto;
@@ -4498,6 +4514,7 @@ const Drawer = ({
4498
4514
  } : {})
4499
4515
  },
4500
4516
  children: /*#__PURE__*/jsxRuntime.jsxs(BaseDrawer, {
4517
+ className: `trk-drawer--${size}`,
4501
4518
  ref: drawerRef,
4502
4519
  "aria-modal": 'true',
4503
4520
  role: 'dialog',
@@ -4513,6 +4530,7 @@ const Drawer = ({
4513
4530
  right: 5
4514
4531
  },
4515
4532
  children: /*#__PURE__*/jsxRuntime.jsx(IconButton, {
4533
+ className: 'trk-drawer__close_button',
4516
4534
  ref: closeButtonRef,
4517
4535
  icon: icons.CloseIcon,
4518
4536
  variant: 'plain-bold',
@@ -6,6 +6,7 @@ const DialogHeaderSubtitle = ({
6
6
  color = 'text/neutral/subtler',
7
7
  ...props
8
8
  }) => /*#__PURE__*/jsx(Text, {
9
+ className: 'trk-dialog_header_subtitle',
9
10
  typography: typography,
10
11
  color: color,
11
12
  ...props
@@ -6,6 +6,7 @@ const DialogHeaderTitle = ({
6
6
  color = 'text/neutral',
7
7
  ...props
8
8
  }) => /*#__PURE__*/jsx(Text, {
9
+ className: 'trk-dialog_header_title',
9
10
  typography: typography,
10
11
  color: color,
11
12
  ...props
@@ -1,7 +1,9 @@
1
1
  import styled from 'styled-components';
2
2
  import { sx } from '../../utils/styled-system/index.js';
3
3
 
4
- const UnstyledDialogBody = styled.div`
4
+ const UnstyledDialogBody = styled.div.attrs({
5
+ className: 'trk-dialog_body'
6
+ })`
5
7
  flex-grow: 1;
6
8
  flex-shrink: 1;
7
9
  flex-basis: auto;
@@ -1,7 +1,9 @@
1
1
  import styled from 'styled-components';
2
2
  import { sx } from '../../utils/styled-system/index.js';
3
3
 
4
- const UnstyledDialogFooter = styled.div`
4
+ const UnstyledDialogFooter = styled.div.attrs({
5
+ className: 'trk-dialog_footer'
6
+ })`
5
7
  flex-grow: 0;
6
8
  flex-shrink: 0;
7
9
  flex-basis: auto;
@@ -1,7 +1,9 @@
1
1
  import styled from 'styled-components';
2
2
  import { sx } from '../../utils/styled-system/index.js';
3
3
 
4
- const UnstyledDialogHeader = styled.div`
4
+ const UnstyledDialogHeader = styled.div.attrs({
5
+ className: 'trk-dialog_header'
6
+ })`
5
7
  flex-grow: 0;
6
8
  flex-shrink: 0;
7
9
  flex-basis: auto;
@@ -94,6 +94,7 @@ const Dialog = ({
94
94
  width: '100%',
95
95
  height: '100%',
96
96
  children: /*#__PURE__*/jsxs(BaseDialog, {
97
+ className: `rkt-dialog--${size}`,
97
98
  ref: dialogRef,
98
99
  "aria-modal": 'true',
99
100
  role: 'dialog',
@@ -138,6 +139,7 @@ const Dialog = ({
138
139
  right: 3
139
140
  },
140
141
  children: /*#__PURE__*/jsx(IconButton, {
142
+ className: 'trk-dialog__close_button',
141
143
  ref: closeButtonRef,
142
144
  icon: CloseIcon,
143
145
  variant: 'plain',
@@ -1,7 +1,9 @@
1
1
  import styled from 'styled-components';
2
2
  import { sx } from '../../utils/styled-system/index.js';
3
3
 
4
- const UnstyledDrawerBody = styled.div`
4
+ const UnstyledDrawerBody = styled.div.attrs({
5
+ className: 'trk-drawer_body'
6
+ })`
5
7
  flex-grow: 1;
6
8
  flex-shrink: 1;
7
9
  flex-basis: auto;
@@ -1,7 +1,9 @@
1
1
  import styled from 'styled-components';
2
2
  import { sx } from '../../utils/styled-system/index.js';
3
3
 
4
- const UnstyledDrawerFooter = styled.div`
4
+ const UnstyledDrawerFooter = styled.div.attrs({
5
+ className: 'trk-drawer_footer'
6
+ })`
5
7
  flex-grow: 0;
6
8
  flex-shrink: 0;
7
9
  flex-basis: auto;
@@ -1,7 +1,9 @@
1
1
  import styled from 'styled-components';
2
2
  import { sx } from '../../utils/styled-system/index.js';
3
3
 
4
- const UnstyledDrawerHeader = styled.div`
4
+ const UnstyledDrawerHeader = styled.div.attrs({
5
+ className: 'trk-drawer_header'
6
+ })`
5
7
  flex-grow: 0;
6
8
  flex-shrink: 0;
7
9
  flex-basis: auto;
@@ -129,6 +129,7 @@ const Drawer = ({
129
129
  } : {})
130
130
  },
131
131
  children: /*#__PURE__*/jsxs(BaseDrawer, {
132
+ className: `trk-drawer--${size}`,
132
133
  ref: drawerRef,
133
134
  "aria-modal": 'true',
134
135
  role: 'dialog',
@@ -144,6 +145,7 @@ const Drawer = ({
144
145
  right: 5
145
146
  },
146
147
  children: /*#__PURE__*/jsx(IconButton, {
148
+ className: 'trk-drawer__close_button',
147
149
  ref: closeButtonRef,
148
150
  icon: CloseIcon,
149
151
  variant: 'plain-bold',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamturing/react-kit",
3
- "version": "2.53.0",
3
+ "version": "2.53.1",
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",
@@ -66,5 +66,5 @@
66
66
  "react-textarea-autosize": "^8.5.3",
67
67
  "styled-system": "^5.1.5"
68
68
  },
69
- "gitHead": "abcc2cc8d11799d8c8895282864db9a41b34bb57"
69
+ "gitHead": "0b981b1312cf772c8bdd7aff43aa6f6e36620c87"
70
70
  }