period-ui 0.1.78 → 0.2.0

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.
@@ -1 +1 @@
1
- {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/button/button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAc,MAAM,OAAO,CAAC;AACnD,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAI7D,QAAA,MAAM,YAAY;;mFAsBjB,CAAC;AAEF,KAAK,KAAK,GAAG,cAAc,CAAC,QAAQ,CAAC,GAAG,YAAY,CAAC,OAAO,YAAY,CAAC,CAAC;AAkB1E,eAAO,MAAM,MAAM,EAAgB,KAAK,CAAC,yBAAyB,CAChE,KAAK,GAAG,KAAK,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAC/C,CAAC;AAEF,YAAY,EAAE,KAAK,IAAI,WAAW,EAAE,CAAC"}
1
+ {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/button/button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAc,MAAM,OAAO,CAAC;AACnD,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAK7D,QAAA,MAAM,YAAY;;mFAejB,CAAC;AAEF,KAAK,KAAK,GAAG,cAAc,CAAC,QAAQ,CAAC,GAAG,YAAY,CAAC,OAAO,YAAY,CAAC,CAAC;AAsB1E,eAAO,MAAM,MAAM,EAAgB,KAAK,CAAC,yBAAyB,CAChE,KAAK,GAAG,KAAK,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAC/C,CAAC;AAEF,YAAY,EAAE,KAAK,IAAI,WAAW,EAAE,CAAC"}
@@ -6,14 +6,8 @@ const react_1 = require("react");
6
6
  const class_variance_authority_1 = require("class-variance-authority");
7
7
  const tailwind_utils_1 = require("../../../utils/tailwind-utils");
8
8
  const button_types_1 = require("./button-types");
9
- const buttonStyles = (0, class_variance_authority_1.cva)([
10
- 'w-full md:w-fit',
11
- 'py-4 md:px-8',
12
- 'rounded-lg',
13
- 'sm:font-semibold md:font-semibold',
14
- 'sm:font-semibold md:font-semibold',
15
- 'disabled:cursor-not-allowed',
16
- ], {
9
+ const text_1 = require("../text");
10
+ const buttonStyles = (0, class_variance_authority_1.cva)(['w-full md:w-fit', 'py-4 px-8', 'rounded-lg', 'font-semibold', 'disabled:cursor-not-allowed'], {
17
11
  variants: {
18
12
  variant: {
19
13
  primary: 'bg-blue-01 text-white shadow-blue-two hover:bg-blue-02 active:bg-blue-00 disabled:bg-blue-03 disabled:shadow-none',
@@ -24,7 +18,7 @@ const buttonStyles = (0, class_variance_authority_1.cva)([
24
18
  defaultVariants: { variant: 'primary' },
25
19
  });
26
20
  const RawButton = (0, react_1.forwardRef)(({ variant = button_types_1.ButtonVariant.PRIMARY, className, ...props }, ref) => {
27
- return ((0, jsx_runtime_1.jsx)("button", { ref: ref, type: props.type ?? 'button', className: (0, tailwind_utils_1.tailwind)(buttonStyles({ variant, className })), ...props }));
21
+ return ((0, jsx_runtime_1.jsx)("button", { ref: ref, type: props.type ?? 'button', className: (0, tailwind_utils_1.tailwind)(text_1.TextStyle[text_1.TextVariant.BODY_SEMIBOLD], buttonStyles({ variant }), className), ...props }));
28
22
  });
29
23
  RawButton.displayName = 'Button';
30
24
  exports.Button = RawButton;
@@ -1 +1 @@
1
- {"version":3,"file":"button.js","sourceRoot":"","sources":["../../../../src/components/atoms/button/button.tsx"],"names":[],"mappings":";;;;AAAA,iCAAmD;AACnD,uEAA6D;AAC7D,kEAAyD;AACzD,iDAA+C;AAE/C,MAAM,YAAY,GAAG,IAAA,8BAAG,EACtB;IACE,iBAAiB;IACjB,cAAc;IACd,YAAY;IACZ,mCAAmC;IACnC,mCAAmC;IACnC,6BAA6B;CAC9B,EACD;IACE,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,OAAO,EACL,mHAAmH;YACrH,SAAS,EACP,6JAA6J;YAC/J,WAAW,EACT,8GAA8G;SACjH;KACF;IACD,eAAe,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;CACxC,CACF,CAAC;AAIF,MAAM,SAAS,GAAG,IAAA,kBAAU,EAC1B,CAAC,EAAE,OAAO,GAAG,4BAAa,CAAC,OAAO,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IAChE,OAAO,CACL,mCACE,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,KAAK,CAAC,IAAI,IAAI,QAAQ,EAC5B,SAAS,EAAE,IAAA,yBAAQ,EAAC,YAAY,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,CAAC,KACrD,KAAK,GACT,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,SAAS,CAAC,WAAW,GAAG,QAAQ,CAAC;AAGpB,QAAA,MAAM,GAAG,SAErB,CAAC"}
1
+ {"version":3,"file":"button.js","sourceRoot":"","sources":["../../../../src/components/atoms/button/button.tsx"],"names":[],"mappings":";;;;AAAA,iCAAmD;AACnD,uEAA6D;AAC7D,kEAAyD;AACzD,iDAA+C;AAC/C,kCAAiD;AAEjD,MAAM,YAAY,GAAG,IAAA,8BAAG,EACtB,CAAC,iBAAiB,EAAE,WAAW,EAAE,YAAY,EAAE,eAAe,EAAE,6BAA6B,CAAC,EAC9F;IACE,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,OAAO,EACL,mHAAmH;YACrH,SAAS,EACP,6JAA6J;YAC/J,WAAW,EACT,8GAA8G;SACjH;KACF;IACD,eAAe,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;CACxC,CACF,CAAC;AAIF,MAAM,SAAS,GAAG,IAAA,kBAAU,EAC1B,CAAC,EAAE,OAAO,GAAG,4BAAa,CAAC,OAAO,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IAChE,OAAO,CACL,mCACE,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,KAAK,CAAC,IAAI,IAAI,QAAQ,EAC5B,SAAS,EAAE,IAAA,yBAAQ,EACjB,gBAAS,CAAC,kBAAW,CAAC,aAAa,CAAC,EACpC,YAAY,CAAC,EAAE,OAAO,EAAE,CAAC,EACzB,SAAS,CACV,KACG,KAAK,GACT,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,SAAS,CAAC,WAAW,GAAG,QAAQ,CAAC;AAGpB,QAAA,MAAM,GAAG,SAErB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "period-ui",
3
- "version": "0.1.78",
3
+ "version": "0.2.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "style": "dist/index.css",