fluekit 2.5.0 → 2.5.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.
@@ -15,6 +15,10 @@ export declare namespace BoxConstraints {
15
15
  width: number;
16
16
  height: number;
17
17
  }) => BoxConstraints;
18
+ var tightFor: ({ width, height, }?: {
19
+ width?: number | string;
20
+ height?: number | string;
21
+ }) => BoxConstraints;
18
22
  var loose: (size: {
19
23
  width: number;
20
24
  height: number;
@@ -12,7 +12,7 @@ interface Props {
12
12
  thumbDecoration?: BoxDecoration;
13
13
  padding?: EdgeInsets;
14
14
  height?: number | string;
15
- labelTextStyleBuilder?: (value: string | number, disabled?: boolean) => TextStyle;
15
+ labelTextStyleBuilder?: (value: string | number, selected: boolean, disabled?: boolean) => TextStyle;
16
16
  }
17
17
  declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
18
18
  "update:modelValue": (value: string | number) => any;
package/dist/index.js CHANGED
@@ -236,6 +236,11 @@ BoxConstraints.tight = (e) => BoxConstraints({
236
236
  maxWidth: e.width,
237
237
  minHeight: e.height,
238
238
  maxHeight: e.height
239
+ }), BoxConstraints.tightFor = ({ width: e, height: p } = {}) => BoxConstraints({
240
+ minWidth: e,
241
+ maxWidth: e,
242
+ minHeight: p,
243
+ maxHeight: p
239
244
  }), BoxConstraints.loose = (e) => BoxConstraints({
240
245
  minWidth: 0,
241
246
  maxWidth: e.width,
@@ -6142,7 +6147,7 @@ var ImageColorBackground_default = /* @__PURE__ */ __plugin_vue_export_helper_de
6142
6147
  })]
6143
6148
  }));
6144
6149
  function C(e) {
6145
- let p = g.disabledKeys.includes(e), m = g.labelTextStyleBuilder?.(e, p) || { color: p ? "rgba(0,0,0,0.38)" : "#000000" };
6150
+ let p = g.disabledKeys.includes(e), m = g.labelTextStyleBuilder?.(e, g.modelValue == e, p) || { color: p ? "rgba(0,0,0,0.38)" : "#000000" };
6146
6151
  return TextStyle({
6147
6152
  fontSize: 12,
6148
6153
  fontWeight: FontWeight.w500,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fluekit",
3
- "version": "2.5.0",
3
+ "version": "2.5.2",
4
4
  "description": "A Flutter-style Layout UI kit for Vue",
5
5
  "homepage": "https://fi2zz.github.io/fluekit/",
6
6
  "repository": {