toku-ui 0.2.0 → 0.3.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.
@@ -2,14 +2,16 @@ import { PropType } from 'vue';
2
2
  export declare const TIconButton: import("vue").DefineComponent<{
3
3
  variant: PropType<"primary" | "secondary" | "tertiary">;
4
4
  size: PropType<"medium" | "large" | "small">;
5
- disabled: PropType<boolean>;
5
+ disabled: PropType<boolean | undefined>;
6
6
  icon: PropType<string>;
7
7
  type: PropType<"button" | "submit" | "reset" | undefined>;
8
+ rounded: PropType<boolean | undefined>;
8
9
  }, () => JSX.Element, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "click"[], string, Readonly<import("vue").ExtractPropTypes<{
9
10
  variant: PropType<"primary" | "secondary" | "tertiary">;
10
11
  size: PropType<"medium" | "large" | "small">;
11
- disabled: PropType<boolean>;
12
+ disabled: PropType<boolean | undefined>;
12
13
  icon: PropType<string>;
13
14
  type: PropType<"button" | "submit" | "reset" | undefined>;
15
+ rounded: PropType<boolean | undefined>;
14
16
  }>>, {}>;
15
17
  //# sourceMappingURL=TIconButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TIconButton.d.ts","sourceRoot":"","sources":["../../../src/components/TIconButton/TIconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAA6B,MAAM,KAAK,CAAC;AAe1D,eAAO,MAAM,WAAW;;;;;;;;;;;;QAwCtB,CAAC"}
1
+ {"version":3,"file":"TIconButton.d.ts","sourceRoot":"","sources":["../../../src/components/TIconButton/TIconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAA6B,MAAM,KAAK,CAAC;AAc1D,eAAO,MAAM,WAAW;;;;;;;;;;;;;;QA4CtB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TIconButton.styles.d.ts","sourceRoot":"","sources":["../../../src/components/TIconButton/TIconButton.styles.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,SAAS;;;CA0GrB,CAAC"}
1
+ {"version":3,"file":"TIconButton.styles.d.ts","sourceRoot":"","sources":["../../../src/components/TIconButton/TIconButton.styles.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,SAAS;;;CA6GrB,CAAC"}
@@ -4,6 +4,7 @@ export interface TIconButtonProps extends ButtonHTMLAttributes {
4
4
  size: 'large' | 'medium' | 'small';
5
5
  ariaLabel: string;
6
6
  icon: string;
7
- disabled: boolean;
7
+ disabled?: boolean;
8
+ rounded?: boolean;
8
9
  }
9
10
  //# sourceMappingURL=TIconButton.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TIconButton.types.d.ts","sourceRoot":"","sources":["../../../src/components/TIconButton/TIconButton.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAErD,MAAM,WAAW,gBAAiB,SAAQ,oBAAoB;IAC5D,OAAO,EAAE,SAAS,GAAG,WAAW,GAAG,UAAU,CAAC;IAC9C,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;CACnB"}
1
+ {"version":3,"file":"TIconButton.types.d.ts","sourceRoot":"","sources":["../../../src/components/TIconButton/TIconButton.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAErD,MAAM,WAAW,gBAAiB,SAAQ,oBAAoB;IAC5D,OAAO,EAAE,SAAS,GAAG,WAAW,GAAG,UAAU,CAAC;IAC9C,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB"}
package/dist/index.es.js CHANGED
@@ -4931,6 +4931,9 @@ const w0 = (l, s) => m0(
4931
4931
  width: "2rem",
4932
4932
  lineHeight: "1.25rem",
4933
4933
  fontSize: "0.875rem"
4934
+ },
4935
+ "&--rounded": {
4936
+ borderRadius: "50%"
4934
4937
  }
4935
4938
  })), u = X(() => _n({
4936
4939
  margin: 0,
@@ -4952,7 +4955,6 @@ const w0 = (l, s) => m0(
4952
4955
  }, F0 = {
4953
4956
  variant: "primary",
4954
4957
  size: "medium",
4955
- disabled: !1,
4956
4958
  icon: "academic-cap",
4957
4959
  type: "button"
4958
4960
  }, N0 = mn({
@@ -4962,7 +4964,8 @@ const w0 = (l, s) => m0(
4962
4964
  size: String,
4963
4965
  disabled: Boolean,
4964
4966
  icon: String,
4965
- type: String
4967
+ type: String,
4968
+ rounded: Boolean
4966
4969
  },
4967
4970
  emits: ["click"],
4968
4971
  setup(l, {
@@ -4972,7 +4975,9 @@ const w0 = (l, s) => m0(
4972
4975
  const g = X(() => Me.merge({}, F0, l, s)), {
4973
4976
  baseClass: _,
4974
4977
  iconClass: I
4975
- } = E0(), x = ze(), W = X(() => [_.value, `${_.value}--${g.value.variant}`, `${_.value}--${g.value.size}`]), D = X(() => [I.value, `${I.value}--${g.value.variant}`, `${I.value}--${g.value.size}`]);
4978
+ } = E0(), x = ze(), W = X(() => [_.value, `${_.value}--${g.value.variant}`, `${_.value}--${g.value.size}`, {
4979
+ [`${_.value}--rounded`]: g.value.rounded
4980
+ }]), D = X(() => [I.value, `${I.value}--${g.value.variant}`, `${I.value}--${g.value.size}`]);
4976
4981
  return () => K("button", Qi([{
4977
4982
  class: W.value,
4978
4983
  attrs: {