toku-ui 0.14.1 → 0.14.2

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.
@@ -10,6 +10,7 @@ export declare const TTextInput: import("vue").DefineComponent<{
10
10
  value: PropType<string | undefined>;
11
11
  fullWidth: PropType<boolean | undefined>;
12
12
  id: PropType<string | undefined>;
13
+ type: PropType<string | undefined>;
13
14
  }, () => JSX.Element, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, ("input" | "change" | "focus" | "blur")[], string, Readonly<import("vue").ExtractPropTypes<{
14
15
  error: PropType<boolean | undefined>;
15
16
  disabled: PropType<boolean | undefined>;
@@ -21,5 +22,6 @@ export declare const TTextInput: import("vue").DefineComponent<{
21
22
  value: PropType<string | undefined>;
22
23
  fullWidth: PropType<boolean | undefined>;
23
24
  id: PropType<string | undefined>;
25
+ type: PropType<string | undefined>;
24
26
  }>>, {}>;
25
27
  //# sourceMappingURL=TTextInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TTextInput.d.ts","sourceRoot":"","sources":["../../../src/components/TTextInput/TTextInput.tsx"],"names":[],"mappings":"AACA,OAAO,EAA6B,QAAQ,EAAE,MAAM,KAAK,CAAC;AAM1D,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;QA2FrB,CAAC"}
1
+ {"version":3,"file":"TTextInput.d.ts","sourceRoot":"","sources":["../../../src/components/TTextInput/TTextInput.tsx"],"names":[],"mappings":"AACA,OAAO,EAA6B,QAAQ,EAAE,MAAM,KAAK,CAAC;AAU1D,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;QA6FrB,CAAC"}
@@ -9,5 +9,6 @@ export interface TTextInputProps extends InputHTMLAttributes {
9
9
  label?: string;
10
10
  value?: string;
11
11
  fullWidth?: boolean;
12
+ type?: string;
12
13
  }
13
14
  //# sourceMappingURL=TTextInput.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TTextInput.types.d.ts","sourceRoot":"","sources":["../../../src/components/TTextInput/TTextInput.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,MAAM,WAAW,eAAgB,SAAQ,mBAAmB;IAC1D,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB"}
1
+ {"version":3,"file":"TTextInput.types.d.ts","sourceRoot":"","sources":["../../../src/components/TTextInput/TTextInput.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,MAAM,WAAW,eAAgB,SAAQ,mBAAmB;IAC1D,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}
package/dist/index.es.js CHANGED
@@ -4482,7 +4482,7 @@ const Vi = {
4482
4482
  desktop: 800
4483
4483
  },
4484
4484
  iconSet: "heroicons"
4485
- }, J0 = (s) => {
4485
+ }, Q0 = (s) => {
4486
4486
  var h, g;
4487
4487
  const l = ne.merge(Vi, s), a = (g = (h = s.colors) == null ? void 0 : h.primary) == null ? void 0 : g.main;
4488
4488
  return a && (l.colors.primary.ultraDark = ku(0.15, a), l.colors.primary.dark = a, l.colors.primary.toku = sn(0.1, a), l.colors.primary.light1 = sn(0.15, a), l.colors.primary.light2 = sn(0.2, a), l.colors.primary.light3 = sn(0.25, a), l.colors.primary.light4 = sn(0.3, a), l.colors.primary.light5 = sn(0.35, a)), l;
@@ -4612,7 +4612,7 @@ const Vi = {
4612
4612
  size: "medium",
4613
4613
  type: "button",
4614
4614
  color: "primary"
4615
- }, Q0 = be({
4615
+ }, V0 = be({
4616
4616
  name: "TButton",
4617
4617
  props: {
4618
4618
  variant: String,
@@ -4664,7 +4664,7 @@ const Vi = {
4664
4664
  })]);
4665
4665
  };
4666
4666
  }
4667
- }), V0 = be({
4667
+ }), j0 = be({
4668
4668
  name: "TThemeProvider",
4669
4669
  props: {
4670
4670
  theme: {
@@ -4791,7 +4791,7 @@ const Vi = {
4791
4791
  fontStyle: "normal",
4792
4792
  fontWeight: "regular",
4793
4793
  variant: "b0"
4794
- }, j0 = be({
4794
+ }, ev = be({
4795
4795
  name: "TTypography",
4796
4796
  props: {
4797
4797
  fontStyle: String,
@@ -4963,7 +4963,7 @@ const Vi = {
4963
4963
  size: "medium",
4964
4964
  icon: "academic-cap",
4965
4965
  type: "button"
4966
- }, ev = be({
4966
+ }, nv = be({
4967
4967
  name: "TIconButton",
4968
4968
  props: {
4969
4969
  variant: String,
@@ -5103,7 +5103,9 @@ const Vi = {
5103
5103
  }
5104
5104
  })
5105
5105
  );
5106
- }, nv = be({
5106
+ }, O0 = {
5107
+ type: "text"
5108
+ }, rv = be({
5107
5109
  name: "TTextInput",
5108
5110
  emits: ["input", "change", "focus", "blur"],
5109
5111
  props: {
@@ -5116,13 +5118,14 @@ const Vi = {
5116
5118
  helperText: String,
5117
5119
  value: String,
5118
5120
  fullWidth: Boolean,
5119
- id: String
5121
+ id: String,
5122
+ type: String
5120
5123
  },
5121
5124
  setup(s, {
5122
5125
  attrs: l,
5123
5126
  emit: a
5124
5127
  }) {
5125
- const h = T(() => ne.merge({}, s, l)), g = P0(), w = ue(), x = (D) => {
5128
+ const h = T(() => ne.merge({}, O0, s, l)), g = P0(), w = ue(), x = (D) => {
5126
5129
  a("input", D.target.value), a("change", D.target.value);
5127
5130
  }, R = (D) => {
5128
5131
  a("focus", D);
@@ -5149,6 +5152,7 @@ const Vi = {
5149
5152
  }), L("input", Qn([{}, l, {
5150
5153
  attrs: {
5151
5154
  id: h.value.id,
5155
+ type: h.value.type,
5152
5156
  placeholder: h.value.placeholder,
5153
5157
  disabled: h.value.disabled
5154
5158
  },
@@ -5173,7 +5177,7 @@ const Vi = {
5173
5177
  class: `${g.value}__helper-text`
5174
5178
  }, [h.value.helperText])]);
5175
5179
  }
5176
- }), O0 = () => {
5180
+ }), L0 = () => {
5177
5181
  const s = ue();
5178
5182
  return T(
5179
5183
  () => Ae({
@@ -5231,9 +5235,9 @@ const Vi = {
5231
5235
  }
5232
5236
  })
5233
5237
  );
5234
- }, L0 = {
5238
+ }, W0 = {
5235
5239
  labelPosition: "right"
5236
- }, rv = be({
5240
+ }, tv = be({
5237
5241
  name: "TSwitch",
5238
5242
  props: {
5239
5243
  label: String,
@@ -5247,7 +5251,7 @@ const Vi = {
5247
5251
  attrs: l,
5248
5252
  emit: a
5249
5253
  }) {
5250
- const h = T(() => ne.merge({}, L0, s, l)), g = Ji(h.value.value);
5254
+ const h = T(() => ne.merge({}, W0, s, l)), g = Ji(h.value.value);
5251
5255
  Qi(() => h.value.value, () => {
5252
5256
  g.value = h.value.value;
5253
5257
  });
@@ -5260,7 +5264,7 @@ const Vi = {
5260
5264
  key: U
5261
5265
  } = Y;
5262
5266
  h.value.disabled || U !== "Enter" && U !== " " ? Y.preventDefault() : w();
5263
- }, $ = O0(), D = T(() => [$.value, `${$.value}--label-${h.value.labelPosition}`, {
5267
+ }, $ = L0(), D = T(() => [$.value, `${$.value}--label-${h.value.labelPosition}`, {
5264
5268
  [`${$.value}--checked`]: g.value,
5265
5269
  [`${$.value}--disabled`]: h.value.disabled
5266
5270
  }]);
@@ -5286,7 +5290,7 @@ const Vi = {
5286
5290
  }
5287
5291
  }, [h.value.label])]);
5288
5292
  }
5289
- }), W0 = () => {
5293
+ }), B0 = () => {
5290
5294
  const s = ue();
5291
5295
  return T(() => Ae({
5292
5296
  "&, *": {
@@ -5382,7 +5386,7 @@ const Vi = {
5382
5386
  width: "100%"
5383
5387
  }
5384
5388
  }));
5385
- }, tv = be({
5389
+ }, iv = be({
5386
5390
  name: "TSelect",
5387
5391
  emits: ["input", "change", "focus", "blur"],
5388
5392
  props: {
@@ -5401,7 +5405,7 @@ const Vi = {
5401
5405
  emit: a,
5402
5406
  slots: h
5403
5407
  }) {
5404
- const g = T(() => ne.merge({}, s, l)), w = ue(), x = W0(), R = T(() => [x.value, `${x.value}__container`, {
5408
+ const g = T(() => ne.merge({}, s, l)), w = ue(), x = B0(), R = T(() => [x.value, `${x.value}__container`, {
5405
5409
  [`${x.value}--error`]: g.value.error,
5406
5410
  [`${x.value}--full-width`]: g.value.fullWidth
5407
5411
  }]), $ = (U) => {
@@ -5455,7 +5459,7 @@ const Vi = {
5455
5459
  }, [g.value.helperText])]);
5456
5460
  };
5457
5461
  }
5458
- }), B0 = () => {
5462
+ }), z0 = () => {
5459
5463
  const s = ue();
5460
5464
  return T(
5461
5465
  () => Ae({
@@ -5557,10 +5561,10 @@ const Vi = {
5557
5561
  }
5558
5562
  })
5559
5563
  );
5560
- }, z0 = {
5564
+ }, D0 = {
5561
5565
  position: "right",
5562
5566
  size: "medium"
5563
- }, iv = be({
5567
+ }, av = be({
5564
5568
  name: "TTooltip",
5565
5569
  props: {
5566
5570
  label: String,
@@ -5572,7 +5576,7 @@ const Vi = {
5572
5576
  slots: l,
5573
5577
  attrs: a
5574
5578
  }) {
5575
- const h = T(() => ne.merge({}, z0, s, a)), g = B0(), w = T(() => [g.value, `${g.value}--${h.value.position}`, {
5579
+ const h = T(() => ne.merge({}, D0, s, a)), g = z0(), w = T(() => [g.value, `${g.value}--${h.value.position}`, {
5576
5580
  [`${g.value}--multilined`]: h.value.multilined,
5577
5581
  [`${g.value}--${h.value.size}`]: h.value.multilined
5578
5582
  }]);
@@ -5588,11 +5592,11 @@ const Vi = {
5588
5592
  }, [((R = l.label) == null ? void 0 : R.call(l)) || h.value.label])]);
5589
5593
  };
5590
5594
  }
5591
- }), D0 = {
5595
+ }), M0 = {
5592
5596
  color: "#000",
5593
5597
  size: "medium",
5594
5598
  variant: "outline"
5595
- }, av = be({
5599
+ }, ov = be({
5596
5600
  name: "TIcon",
5597
5601
  props: {
5598
5602
  icon: {
@@ -5606,7 +5610,7 @@ const Vi = {
5606
5610
  setup(s, {
5607
5611
  attrs: l
5608
5612
  }) {
5609
- const a = T(() => ne.merge({}, D0, s, l)), h = ue(), g = T(() => ne.get(h.value.colors, a.value.color) || a.value.color), w = T(() => `${h.value.iconSet}:${a.value.icon}${a.value.variant === "solid" ? "-solid" : ""}`), x = {
5613
+ const a = T(() => ne.merge({}, M0, s, l)), h = ue(), g = T(() => ne.get(h.value.colors, a.value.color) || a.value.color), w = T(() => `${h.value.iconSet}:${a.value.icon}${a.value.variant === "solid" ? "-solid" : ""}`), x = {
5610
5614
  miniature: "0.375em",
5611
5615
  "extra-small": "0.625em",
5612
5616
  small: "1em",
@@ -5623,7 +5627,7 @@ const Vi = {
5623
5627
  }
5624
5628
  });
5625
5629
  }
5626
- }), M0 = () => {
5630
+ }), k0 = () => {
5627
5631
  const s = ue();
5628
5632
  return T(() => Ae({
5629
5633
  margin: 0,
@@ -5657,10 +5661,10 @@ const Vi = {
5657
5661
  fontSize: "0.875rem"
5658
5662
  }
5659
5663
  }));
5660
- }, k0 = {
5664
+ }, H0 = {
5661
5665
  variant: "primary",
5662
5666
  size: "medium"
5663
- }, ov = be({
5667
+ }, uv = be({
5664
5668
  name: "TButton",
5665
5669
  props: {
5666
5670
  variant: String,
@@ -5673,7 +5677,7 @@ const Vi = {
5673
5677
  attrs: l,
5674
5678
  slots: a
5675
5679
  }) {
5676
- const h = T(() => ne.merge({}, k0, s, l)), g = M0(), w = ue(), x = T(() => [g.value, `${g.value}--${h.value.variant}`, `${g.value}--${h.value.size}`]);
5680
+ const h = T(() => ne.merge({}, H0, s, l)), g = k0(), w = ue(), x = T(() => [g.value, `${g.value}--${h.value.variant}`, `${g.value}--${h.value.size}`]);
5677
5681
  return () => L("a", Qn([{
5678
5682
  class: x.value,
5679
5683
  attrs: {
@@ -5689,7 +5693,7 @@ const Vi = {
5689
5693
  }
5690
5694
  }) : null]);
5691
5695
  }
5692
- }), H0 = () => {
5696
+ }), U0 = () => {
5693
5697
  const s = ue(), l = s.value.colors.gray.light1, a = (g, w) => {
5694
5698
  switch (w) {
5695
5699
  case "large":
@@ -5799,11 +5803,11 @@ const Vi = {
5799
5803
  }
5800
5804
  }
5801
5805
  }));
5802
- }, U0 = () => `checkbox-${Math.random().toString(36).substring(2, 9)}-${Date.now()}`, N0 = {
5806
+ }, N0 = () => `checkbox-${Math.random().toString(36).substring(2, 9)}-${Date.now()}`, G0 = {
5803
5807
  size: "large",
5804
5808
  value: !1,
5805
- id: U0()
5806
- }, uv = be({
5809
+ id: N0()
5810
+ }, lv = be({
5807
5811
  name: "TCheckbox",
5808
5812
  props: {
5809
5813
  labelPosition: String,
@@ -5818,7 +5822,7 @@ const Vi = {
5818
5822
  slots: a,
5819
5823
  emit: h
5820
5824
  }) {
5821
- const g = T(() => ne.merge({}, N0, s, l)), w = H0(), x = T(() => [w.value, `${w.value}--${g.value.size}`]), R = T(() => [w.value, `${w.value}--${g.value.size}`, {
5825
+ const g = T(() => ne.merge({}, G0, s, l)), w = U0(), x = T(() => [w.value, `${w.value}--${g.value.size}`]), R = T(() => [w.value, `${w.value}--${g.value.size}`, {
5822
5826
  [`${w.value}--disabled`]: g.value.disabled
5823
5827
  }]), $ = Ji(g.value.value);
5824
5828
  Qi(() => g.value.value, () => {
@@ -5857,7 +5861,7 @@ const Vi = {
5857
5861
  }, [a.default()])]);
5858
5862
  };
5859
5863
  }
5860
- }), G0 = () => {
5864
+ }), q0 = () => {
5861
5865
  const s = ue();
5862
5866
  return T(
5863
5867
  () => Ae({
@@ -5910,7 +5914,7 @@ const Vi = {
5910
5914
  }
5911
5915
  })
5912
5916
  );
5913
- }, lv = be({
5917
+ }, sv = be({
5914
5918
  name: "TTabBar",
5915
5919
  emits: ["input"],
5916
5920
  props: {
@@ -5921,7 +5925,7 @@ const Vi = {
5921
5925
  attrs: l,
5922
5926
  emit: a
5923
5927
  }) {
5924
- const h = T(() => ne.merge({}, s, l)), g = G0(), w = Ji(h.value.value);
5928
+ const h = T(() => ne.merge({}, s, l)), g = q0(), w = Ji(h.value.value);
5925
5929
  Qi(() => h.value.value, () => {
5926
5930
  w.value = h.value.value;
5927
5931
  });
@@ -5954,7 +5958,7 @@ const Vi = {
5954
5958
  }, [$])]))])]);
5955
5959
  };
5956
5960
  }
5957
- }), q0 = () => T(
5961
+ }), K0 = () => T(
5958
5962
  () => Ae({
5959
5963
  bottom: 0,
5960
5964
  left: 0,
@@ -5975,9 +5979,9 @@ const Vi = {
5975
5979
  zIndex: 999
5976
5980
  }
5977
5981
  })
5978
- ), K0 = {
5982
+ ), Y0 = {
5979
5983
  size: "auto"
5980
- }, sv = be({
5984
+ }, fv = be({
5981
5985
  name: "TLoading",
5982
5986
  props: {
5983
5987
  active: Boolean,
@@ -5987,7 +5991,7 @@ const Vi = {
5987
5991
  setup(s, {
5988
5992
  attrs: l
5989
5993
  }) {
5990
- const a = T(() => ne.merge({}, K0, s, l)), h = q0(), g = T(() => [h.value, {
5994
+ const a = T(() => ne.merge({}, Y0, s, l)), h = K0(), g = T(() => [h.value, {
5991
5995
  [`${h.value}--active`]: a.value.active,
5992
5996
  [`${h.value}--full-page`]: a.value.fullPage
5993
5997
  }]);
@@ -6001,22 +6005,22 @@ const Vi = {
6001
6005
  }
6002
6006
  });
6003
6007
  export {
6004
- Q0 as TButton,
6005
- uv as TCheckbox,
6006
- av as TIcon,
6007
- ev as TIconButton,
6008
- ov as TLink,
6009
- sv as TLoading,
6010
- tv as TSelect,
6008
+ V0 as TButton,
6009
+ lv as TCheckbox,
6010
+ ov as TIcon,
6011
+ nv as TIconButton,
6012
+ uv as TLink,
6013
+ fv as TLoading,
6014
+ iv as TSelect,
6011
6015
  $0 as TSpinner,
6012
- rv as TSwitch,
6013
- lv as TTabBar,
6014
- nv as TTextInput,
6015
- V0 as TThemeProvider,
6016
- iv as TTooltip,
6017
- j0 as TTypography,
6016
+ tv as TSwitch,
6017
+ sv as TTabBar,
6018
+ rv as TTextInput,
6019
+ j0 as TThemeProvider,
6020
+ av as TTooltip,
6021
+ ev as TTypography,
6018
6022
  Vi as baseTheme,
6019
- J0 as createTheme,
6023
+ Q0 as createTheme,
6020
6024
  Hu as injectionKey,
6021
6025
  ue as useTheme
6022
6026
  };