@shoplflow/base 0.32.32 → 0.32.33

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.cjs CHANGED
@@ -4108,8 +4108,8 @@ var getHoverTabStyleByStyleVar = (styleVar) => {
4108
4108
  ::after {
4109
4109
  content: '';
4110
4110
  position: absolute;
4111
- left: 0;
4112
- right: 0;
4111
+ left: 0px;
4112
+ right: 0px;
4113
4113
  bottom: -2px;
4114
4114
  height: 2px;
4115
4115
  background: ${exports.colorTokens.neutral500};
@@ -4140,8 +4140,8 @@ var getActiveTriggerStyleByStyleVar = (styleVar) => {
4140
4140
  ::after {
4141
4141
  content: '';
4142
4142
  position: absolute;
4143
- left: 0;
4144
- right: 0;
4143
+ left: 0px;
4144
+ right: 0px;
4145
4145
  bottom: -2px;
4146
4146
  height: 2px;
4147
4147
  background: #000;
@@ -4153,17 +4153,32 @@ var getActiveTriggerStyleByStyleVar = (styleVar) => {
4153
4153
  }
4154
4154
  }
4155
4155
  };
4156
+ var getPaddingStyleByStyleVar = (styleVar) => {
4157
+ switch (styleVar) {
4158
+ case "NORMAL": {
4159
+ return react$1.css`
4160
+ padding: 12px 16px;
4161
+ `;
4162
+ }
4163
+ case "INFO": {
4164
+ return react$1.css`
4165
+ padding: 12px 0px;
4166
+ `;
4167
+ }
4168
+ }
4169
+ };
4156
4170
  var StyledTab = styled6__default.default.div`
4157
4171
  display: flex;
4158
4172
  flex-direction: row;
4159
4173
  align-items: center;
4160
- padding: 12px 16px;
4161
4174
  width: fit-content;
4162
4175
  cursor: pointer;
4163
4176
  position: relative;
4177
+ gap: 4px;
4164
4178
  user-select: none;
4165
4179
 
4166
4180
  ${({ styleVar }) => styleVar && getWrapperStyleByStyleVar(styleVar)};
4181
+ ${({ styleVar }) => styleVar && getPaddingStyleByStyleVar(styleVar)};
4167
4182
 
4168
4183
  /* hover style */
4169
4184
  ${({ isActive, isHover, styleVar }) => !isActive && isHover && styleVar && getHoverTabStyleByStyleVar(styleVar)}
@@ -4232,18 +4247,6 @@ var StyledTabText = styled6__default.default(exports.Text)`
4232
4247
  /* active style */
4233
4248
  ${({ isActive, styleVar, activeColor }) => isActive && styleVar && getActiveTextStyleByStyleVar(styleVar, activeColor)}
4234
4249
  `;
4235
- var StyledIndicator = styled6__default.default(framerMotion.motion.div)`
4236
- position: absolute;
4237
- bottom: -2px;
4238
- left: 0px;
4239
- right: 0px;
4240
- height: 2px;
4241
- background-color: black;
4242
- width: 100%;
4243
- `;
4244
- var Indicator = ({ layoutId }) => {
4245
- return /* @__PURE__ */ jsxRuntime.jsx(StyledIndicator, { layoutId, transition: { duration: 0.2 } });
4246
- };
4247
4250
  var Tab = (_a) => {
4248
4251
  var _b = _a, {
4249
4252
  value,
@@ -4313,8 +4316,7 @@ var Tab = (_a) => {
4313
4316
  children: label
4314
4317
  }
4315
4318
  ),
4316
- rightSource,
4317
- styleVar === "INFO" && isActive && /* @__PURE__ */ jsxRuntime.jsx(Indicator, { layoutId: "underline" })
4319
+ rightSource
4318
4320
  ]
4319
4321
  })
4320
4322
  );
@@ -4334,7 +4336,7 @@ var Tabs = ({ children, initialTab, onChange }) => {
4334
4336
  activeTab,
4335
4337
  setActiveTab
4336
4338
  },
4337
- children: /* @__PURE__ */ jsxRuntime.jsx(framerMotion.LayoutGroup, { children: /* @__PURE__ */ jsxRuntime.jsx(framerMotion.AnimatePresence, { children }) })
4339
+ children
4338
4340
  }
4339
4341
  );
4340
4342
  };
package/dist/index.d.cts CHANGED
@@ -1239,6 +1239,9 @@ interface TabsProps extends TabsOptionProps {
1239
1239
  onChange: (tab: string) => void;
1240
1240
  }
1241
1241
  interface TabsOptionProps extends ChildrenProps {
1242
+ /**
1243
+ * 처음에 선택될 탭을 설정합니다.
1244
+ */
1242
1245
  initialTab: string;
1243
1246
  }
1244
1247
  interface TabProps extends TabOptionProps {
package/dist/index.d.ts CHANGED
@@ -1239,6 +1239,9 @@ interface TabsProps extends TabsOptionProps {
1239
1239
  onChange: (tab: string) => void;
1240
1240
  }
1241
1241
  interface TabsOptionProps extends ChildrenProps {
1242
+ /**
1243
+ * 처음에 선택될 탭을 설정합니다.
1244
+ */
1242
1245
  initialTab: string;
1243
1246
  }
1244
1247
  interface TabProps extends TabOptionProps {
package/dist/index.js CHANGED
@@ -4081,8 +4081,8 @@ var getHoverTabStyleByStyleVar = (styleVar) => {
4081
4081
  ::after {
4082
4082
  content: '';
4083
4083
  position: absolute;
4084
- left: 0;
4085
- right: 0;
4084
+ left: 0px;
4085
+ right: 0px;
4086
4086
  bottom: -2px;
4087
4087
  height: 2px;
4088
4088
  background: ${colorTokens.neutral500};
@@ -4113,8 +4113,8 @@ var getActiveTriggerStyleByStyleVar = (styleVar) => {
4113
4113
  ::after {
4114
4114
  content: '';
4115
4115
  position: absolute;
4116
- left: 0;
4117
- right: 0;
4116
+ left: 0px;
4117
+ right: 0px;
4118
4118
  bottom: -2px;
4119
4119
  height: 2px;
4120
4120
  background: #000;
@@ -4126,17 +4126,32 @@ var getActiveTriggerStyleByStyleVar = (styleVar) => {
4126
4126
  }
4127
4127
  }
4128
4128
  };
4129
+ var getPaddingStyleByStyleVar = (styleVar) => {
4130
+ switch (styleVar) {
4131
+ case "NORMAL": {
4132
+ return css`
4133
+ padding: 12px 16px;
4134
+ `;
4135
+ }
4136
+ case "INFO": {
4137
+ return css`
4138
+ padding: 12px 0px;
4139
+ `;
4140
+ }
4141
+ }
4142
+ };
4129
4143
  var StyledTab = styled6.div`
4130
4144
  display: flex;
4131
4145
  flex-direction: row;
4132
4146
  align-items: center;
4133
- padding: 12px 16px;
4134
4147
  width: fit-content;
4135
4148
  cursor: pointer;
4136
4149
  position: relative;
4150
+ gap: 4px;
4137
4151
  user-select: none;
4138
4152
 
4139
4153
  ${({ styleVar }) => styleVar && getWrapperStyleByStyleVar(styleVar)};
4154
+ ${({ styleVar }) => styleVar && getPaddingStyleByStyleVar(styleVar)};
4140
4155
 
4141
4156
  /* hover style */
4142
4157
  ${({ isActive, isHover, styleVar }) => !isActive && isHover && styleVar && getHoverTabStyleByStyleVar(styleVar)}
@@ -4205,18 +4220,6 @@ var StyledTabText = styled6(Text_default)`
4205
4220
  /* active style */
4206
4221
  ${({ isActive, styleVar, activeColor }) => isActive && styleVar && getActiveTextStyleByStyleVar(styleVar, activeColor)}
4207
4222
  `;
4208
- var StyledIndicator = styled6(motion.div)`
4209
- position: absolute;
4210
- bottom: -2px;
4211
- left: 0px;
4212
- right: 0px;
4213
- height: 2px;
4214
- background-color: black;
4215
- width: 100%;
4216
- `;
4217
- var Indicator = ({ layoutId }) => {
4218
- return /* @__PURE__ */ jsx(StyledIndicator, { layoutId, transition: { duration: 0.2 } });
4219
- };
4220
4223
  var Tab = (_a) => {
4221
4224
  var _b = _a, {
4222
4225
  value,
@@ -4286,8 +4289,7 @@ var Tab = (_a) => {
4286
4289
  children: label
4287
4290
  }
4288
4291
  ),
4289
- rightSource,
4290
- styleVar === "INFO" && isActive && /* @__PURE__ */ jsx(Indicator, { layoutId: "underline" })
4292
+ rightSource
4291
4293
  ]
4292
4294
  })
4293
4295
  );
@@ -4307,7 +4309,7 @@ var Tabs = ({ children, initialTab, onChange }) => {
4307
4309
  activeTab,
4308
4310
  setActiveTab
4309
4311
  },
4310
- children: /* @__PURE__ */ jsx(LayoutGroup, { children: /* @__PURE__ */ jsx(AnimatePresence, { children }) })
4312
+ children
4311
4313
  }
4312
4314
  );
4313
4315
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shoplflow/base",
3
- "version": "0.32.32",
3
+ "version": "0.32.33",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/index.js",
@@ -90,8 +90,8 @@
90
90
  "react-datepicker": "^7.3.0",
91
91
  "react-dom": "^18.2.0",
92
92
  "simplebar-react": "^3.2.6",
93
- "@shoplflow/shopl-assets": "^0.11.0",
94
93
  "@shoplflow/hada-assets": "^0.1.3",
94
+ "@shoplflow/shopl-assets": "^0.11.0",
95
95
  "@shoplflow/utils": "^0.6.5"
96
96
  },
97
97
  "scripts": {