fluekit 2.2.6 → 2.2.9
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/Icons.d.ts +1 -0
- package/dist/TextButtonWithIcon.d.ts +35 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +91 -2
- package/package.json +1 -1
package/dist/Icons.d.ts
CHANGED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Component } from 'vue';
|
|
2
|
+
import { ButtonStyle } from './ButtonStyle';
|
|
3
|
+
import { Color } from './Color';
|
|
4
|
+
import { EdgeInsets } from './EdgeInsets';
|
|
5
|
+
import { TextStyle } from './TextStyle';
|
|
6
|
+
interface Props {
|
|
7
|
+
icon: string | Component;
|
|
8
|
+
label?: string;
|
|
9
|
+
iconPosition?: "left" | "right";
|
|
10
|
+
iconSize?: number;
|
|
11
|
+
iconColor?: string | Color;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
padding?: EdgeInsets;
|
|
14
|
+
style?: ButtonStyle;
|
|
15
|
+
textStyle?: TextStyle;
|
|
16
|
+
}
|
|
17
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
18
|
+
"long-press": () => any;
|
|
19
|
+
pressed: () => any;
|
|
20
|
+
"tap-down": (payload: any) => any;
|
|
21
|
+
"tap-up": (payload: any) => any;
|
|
22
|
+
"tap-cancel": (payload: any) => any;
|
|
23
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
24
|
+
"onLong-press"?: (() => any) | undefined;
|
|
25
|
+
onPressed?: (() => any) | undefined;
|
|
26
|
+
"onTap-down"?: ((payload: any) => any) | undefined;
|
|
27
|
+
"onTap-up"?: ((payload: any) => any) | undefined;
|
|
28
|
+
"onTap-cancel"?: ((payload: any) => any) | undefined;
|
|
29
|
+
}>, {
|
|
30
|
+
padding: EdgeInsets;
|
|
31
|
+
disabled: boolean;
|
|
32
|
+
iconSize: number;
|
|
33
|
+
iconPosition: "left" | "right";
|
|
34
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
35
|
+
export default _default;
|
package/dist/index.d.ts
CHANGED
|
@@ -67,6 +67,7 @@ export { default as CupertinoActivityIndicator } from './CupertinoActivityIndica
|
|
|
67
67
|
export { default as Drawer } from './Drawer';
|
|
68
68
|
export { default as ElevatedButton } from './ElevatedButton';
|
|
69
69
|
export { default as TextButton } from './TextButton';
|
|
70
|
+
export { default as TextButtonWithIcon } from './TextButtonWithIcon';
|
|
70
71
|
export { default as OutlinedButton } from './OutlinedButton';
|
|
71
72
|
export { default as IconButton } from './IconButton';
|
|
72
73
|
export { default as Overlay } from './Overlay';
|
package/dist/index.js
CHANGED
|
@@ -4774,7 +4774,8 @@ const Icons = {
|
|
|
4774
4774
|
settings: "M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.3-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.5.45l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.23-.09-.49 0-.61.22l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.12.22.39.3.61.22l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.04.27.25.45.5.45h4c.25 0 .46-.18.5-.45l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.23.09.49 0 .61-.22l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zM12 15.5c-1.93 0-3.5-1.57-3.5-3.5s1.57-3.5 3.5-3.5 3.5 1.57 3.5 3.5-1.57 3.5-3.5 3.5z",
|
|
4775
4775
|
star: "M12 17.27l4.15 2.51c.76.46 1.69-.22 1.49-1.08l-1.1-4.72 3.67-3.18c.67-.58.31-1.68-.57-1.75l-4.83-.41-1.89-4.46c-.34-.81-1.5-.81-1.84 0L9.19 8.63l-4.83.41c-.88.07-1.24 1.17-.57 1.75l3.67 3.18-1.1 4.72c-.2.86.73 1.54 1.49 1.08l4.15-2.5z",
|
|
4776
4776
|
starBorder: "M19.65 9.04l-4.84-.42-1.89-4.45c-.34-.81-1.5-.81-1.84 0L9.19 8.63l-4.83.41c-.88.07-1.24 1.17-.57 1.75l3.67 3.18-1.1 4.72c-.2.86.73 1.54 1.49 1.08l4.15-2.5 4.15 2.51c.76.46 1.69-.22 1.49-1.08l-1.1-4.73 3.68-3.18c.67-.58.32-1.68-.56-1.75zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.01 4.38.38-3.32 2.88 1 4.28L12 15.4z",
|
|
4777
|
-
starHalf: "M19.65 9.04l-4.84-.42-1.89-4.45c-.34-.81-1.5-.81-1.84 0L9.19 8.63l-4.83.41c-.88.07-1.24 1.17-.57 1.75l3.67 3.18-1.1 4.72c-.2.86.73 1.54 1.49 1.08l4.15-2.5 4.15 2.51c.76.46 1.69-.22 1.49-1.08l-1.1-4.73 3.68-3.18c.67-.58.32-1.68-.56-1.75zM12 15.4V6.1l1.71 4.01 4.38.38-3.32 2.88 1 4.28L12 15.4z"
|
|
4777
|
+
starHalf: "M19.65 9.04l-4.84-.42-1.89-4.45c-.34-.81-1.5-.81-1.84 0L9.19 8.63l-4.83.41c-.88.07-1.24 1.17-.57 1.75l3.67 3.18-1.1 4.72c-.2.86.73 1.54 1.49 1.08l4.15-2.5 4.15 2.51c.76.46 1.69-.22 1.49-1.08l-1.1-4.73 3.68-3.18c.67-.58.32-1.68-.56-1.75zM12 15.4V6.1l1.71 4.01 4.38.38-3.32 2.88 1 4.28L12 15.4z",
|
|
4778
|
+
monitor: "M20 3H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h3l-1 1v2h12v-2l-1-1h3c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 13H4V5h16v11z"
|
|
4778
4779
|
};
|
|
4779
4780
|
var _hoisted_1$5 = {
|
|
4780
4781
|
key: 0,
|
|
@@ -5398,6 +5399,94 @@ var ImageColorBackground_default = /* @__PURE__ */ __plugin_vue_export_helper_de
|
|
|
5398
5399
|
"disabled"
|
|
5399
5400
|
]));
|
|
5400
5401
|
}
|
|
5402
|
+
}), TextButtonWithIcon_default = /* @__PURE__ */ defineComponent({
|
|
5403
|
+
inheritAttrs: !1,
|
|
5404
|
+
__name: "TextButtonWithIcon",
|
|
5405
|
+
props: {
|
|
5406
|
+
icon: {},
|
|
5407
|
+
label: {},
|
|
5408
|
+
iconPosition: { default: "left" },
|
|
5409
|
+
iconSize: { default: 24 },
|
|
5410
|
+
iconColor: {},
|
|
5411
|
+
disabled: {
|
|
5412
|
+
type: Boolean,
|
|
5413
|
+
default: !1
|
|
5414
|
+
},
|
|
5415
|
+
padding: { default: () => EdgeInsets.symmetric({
|
|
5416
|
+
vertical: 8,
|
|
5417
|
+
horizontal: 16
|
|
5418
|
+
}) },
|
|
5419
|
+
style: {},
|
|
5420
|
+
textStyle: {}
|
|
5421
|
+
},
|
|
5422
|
+
emits: [
|
|
5423
|
+
"pressed",
|
|
5424
|
+
"long-press",
|
|
5425
|
+
"tap-down",
|
|
5426
|
+
"tap-up",
|
|
5427
|
+
"tap-cancel"
|
|
5428
|
+
],
|
|
5429
|
+
setup(e, { emit: f }) {
|
|
5430
|
+
let p = e, m = f, g = computed(() => ButtonStyle({
|
|
5431
|
+
backgroundColor: "transparent",
|
|
5432
|
+
foregroundColor: p.disabled ? "rgba(0,0,0,0.38)" : "rgba(0,0,0,0.54)",
|
|
5433
|
+
elevation: 0,
|
|
5434
|
+
padding: p.padding,
|
|
5435
|
+
shape: BorderRadius.circular(4),
|
|
5436
|
+
minimumSize: {
|
|
5437
|
+
width: 64,
|
|
5438
|
+
height: 36
|
|
5439
|
+
},
|
|
5440
|
+
...p.style
|
|
5441
|
+
}));
|
|
5442
|
+
return (f, p) => (openBlock(), createBlock(Button_default, {
|
|
5443
|
+
style: normalizeStyle(g.value),
|
|
5444
|
+
disabled: e.disabled,
|
|
5445
|
+
onPressed: p[0] ||= (e) => m("pressed"),
|
|
5446
|
+
onLongPress: p[1] ||= (e) => m("long-press"),
|
|
5447
|
+
onTapDown: p[2] ||= (e) => m("tap-down", e),
|
|
5448
|
+
onTapUp: p[3] ||= (e) => m("tap-up", e),
|
|
5449
|
+
onTapCancel: p[4] ||= (e) => m("tap-cancel", e)
|
|
5450
|
+
}, {
|
|
5451
|
+
default: withCtx(() => [createVNode(Row_default, {
|
|
5452
|
+
mainAxisSize: unref(MainAxisSize).min,
|
|
5453
|
+
crossAxisAlignment: unref(CrossAxisAlignment).center,
|
|
5454
|
+
gap: 8
|
|
5455
|
+
}, {
|
|
5456
|
+
default: withCtx(() => [
|
|
5457
|
+
e.iconPosition === "left" ? (openBlock(), createBlock(Icon_default, {
|
|
5458
|
+
key: 0,
|
|
5459
|
+
icon: e.icon,
|
|
5460
|
+
size: e.iconSize,
|
|
5461
|
+
color: e.iconColor || g.value.foregroundColor
|
|
5462
|
+
}, null, 8, [
|
|
5463
|
+
"icon",
|
|
5464
|
+
"size",
|
|
5465
|
+
"color"
|
|
5466
|
+
])) : createCommentVNode("", !0),
|
|
5467
|
+
e.label ? (openBlock(), createBlock(Text_default, {
|
|
5468
|
+
key: 1,
|
|
5469
|
+
style: normalizeStyle(e.textStyle)
|
|
5470
|
+
}, {
|
|
5471
|
+
default: withCtx(() => [createTextVNode(toDisplayString(e.label), 1)]),
|
|
5472
|
+
_: 1
|
|
5473
|
+
}, 8, ["style"])) : createCommentVNode("", !0),
|
|
5474
|
+
e.iconPosition === "right" ? (openBlock(), createBlock(Icon_default, {
|
|
5475
|
+
key: 2,
|
|
5476
|
+
icon: e.icon,
|
|
5477
|
+
size: e.iconSize,
|
|
5478
|
+
color: e.iconColor || g.value.foregroundColor
|
|
5479
|
+
}, null, 8, [
|
|
5480
|
+
"icon",
|
|
5481
|
+
"size",
|
|
5482
|
+
"color"
|
|
5483
|
+
])) : createCommentVNode("", !0)
|
|
5484
|
+
]),
|
|
5485
|
+
_: 1
|
|
5486
|
+
}, 8, ["mainAxisSize", "crossAxisAlignment"])]),
|
|
5487
|
+
_: 1
|
|
5488
|
+
}, 8, ["style", "disabled"]));
|
|
5489
|
+
}
|
|
5401
5490
|
}), OutlinedButton_default = /* @__PURE__ */ defineComponent({
|
|
5402
5491
|
inheritAttrs: !1,
|
|
5403
5492
|
__name: "OutlinedButton",
|
|
@@ -6533,4 +6622,4 @@ function setDefaultVW(e) {
|
|
|
6533
6622
|
function setTransform(e) {
|
|
6534
6623
|
console.warn("setTransform is no longer supported. Please use <FlueConfigProvider :transform='transform'/> instead.");
|
|
6535
6624
|
}
|
|
6536
|
-
export { ActionChip_default as ActionChip, AlertDialog_default as AlertDialog, Align_default as Align, Alignment, AnimatedContainer_default as AnimatedContainer, AnimatedOpacity_default as AnimatedOpacity, AppBar_default as AppBar, AspectRatio_default as AspectRatio, AssetImage, BackdropFilter_default as BackdropFilter, BlurStyle, Border, BorderRadius, BorderSide, BottomNavigationBar_default as BottomNavigationBar, BottomSheet_default as BottomSheet, Box_default as Box, BoxAlignment, BoxConstraints, BoxDecoration, BoxFit, BoxShadow, BoxShape, Builder_default as Builder, Button_default as Button, ButtonStyle, ButtonStylePreset, Card_default as Card, Center_default as Center, Checkbox_default as Checkbox, CheckboxGroup_default as CheckboxGroup, Chip_default as Chip, ChoiceChip_default as ChoiceChip, CircleAvatar_default as CircleAvatar, CircularProgressIndicator_default as CircularProgressIndicator, Clip, ClipOval_default as ClipOval, ClipRRect_default as ClipRRect, Color, ColorUtils, Colors, Column_default as Column, ConstrainedBox_default as ConstrainedBox, Container_default as Container, CrossAxisAlignment, CupertinoActivityIndicator_default as CupertinoActivityIndicator, CupertinoColors, CupertinoContextMenu_default as CupertinoContextMenu, CupertinoNavigationBar_default as CupertinoNavigationBar, CupertinoPageScaffold_default as CupertinoPageScaffold, DecorationImage, Divider_default as Divider, Drawer_default as Drawer, EdgeInsets, ElevatedButton_default as ElevatedButton, Expanded_default as Expanded, Fixed_default as Fixed, FlexBox_default as FlexBox, FloatingLabelBehavior, FlueConfigProvider_default as FlueConfigProvider, FontStyle, FontWeight, GestureDetector_default as GestureDetector, GridView_default as GridView, Icon_default as Icon, IconButton_default as IconButton, Icons, IgnorePointer_default as IgnorePointer, Image_default as Image, ImageColorBackground_default as ImageColorBackground, ImageFilter, ImageProvider, ImageUtils, InkWell_default as InkWell, InputDecoration, LayoutBuilder_default as LayoutBuilder, LinearGradient, LinearProgressIndicator_default as LinearProgressIndicator, ListTile_default as ListTile, ListView_default as ListView, MainAxisAlignment, Matrix4, MediaQuery_default as MediaQuery, MediaQueryKey, MemoryImage, NetworkImage, Opacity_default as Opacity, Orientation, OutlineInputBorder, OutlinedButton_default as OutlinedButton, Overlay_default as Overlay, Padding_default as Padding, PopupMenuButton_default as PopupMenuButton, Positioned_default as Positioned, RadialGradient, Radio_default as Radio, RadioGroup_default as RadioGroup, RadioListTile_default as RadioListTile, RangeSlider_default as RangeSlider, RatingBar_default as RatingBar, RefreshIndicator_default as RefreshIndicator, Row_default as Row, SafeArea_default as SafeArea, Scaffold_default as Scaffold, ScrollView_default as ScrollView, SegmentedControl_default as SegmentedControl, Size, SizedBox_default as SizedBox, Slider_default as Slider, SlidingSegmentedControl_default as SlidingSegmentedControl, SnackBar, Spacer_default as Spacer, Stack_default as Stack, StackFit, Sticky_default as Sticky, Switch_default as Switch, TabBar_default as TabBar, TabBarView_default as TabBarView, Text_default as Text, TextAlign, TextArea_default as TextArea, TextBaseline, TextButton_default as TextButton, TextDecoration, TextDecorationStyle, TextDirection, TextField_default as TextField, TextOverflow, TextStyle, TextStylePreset, TileMode, Transform_default as Transform, UnderlineInputBorder, Wrap_default as Wrap, borderRadiusToStyle, borderSideToStyle, borderToStyle, boxConstraintsToStyle, boxDecorationToStyle, boxShadowToCSS, buttonStyleToStyle, computeLuminance, createAssetImageProvider, createNetworkImageProvider, darken, decorationImageToStyle, edgeInsetsToStyle, extractDominantColor, isBorderRadius, isBorderSide, isBorders, isBoxConstraints, isBoxDecoration, isBoxShadow, isEdgeInsets, isImageFilter, isImageProvider, isTextStyle, keep, lighten, marginToStyle, matrix4ToCSSStyle, normalizeSrc, paddingToStyle, px2vw, resolveColor, setAssetBaseURL, setDefaultVW, setTransform, sizeToStyle, toCSSStyle as textStyleToCSSStyle, toCSSStyle, useMediaQuery, withAlpha, withBlue, withGreen, withOpacity, withRed };
|
|
6625
|
+
export { ActionChip_default as ActionChip, AlertDialog_default as AlertDialog, Align_default as Align, Alignment, AnimatedContainer_default as AnimatedContainer, AnimatedOpacity_default as AnimatedOpacity, AppBar_default as AppBar, AspectRatio_default as AspectRatio, AssetImage, BackdropFilter_default as BackdropFilter, BlurStyle, Border, BorderRadius, BorderSide, BottomNavigationBar_default as BottomNavigationBar, BottomSheet_default as BottomSheet, Box_default as Box, BoxAlignment, BoxConstraints, BoxDecoration, BoxFit, BoxShadow, BoxShape, Builder_default as Builder, Button_default as Button, ButtonStyle, ButtonStylePreset, Card_default as Card, Center_default as Center, Checkbox_default as Checkbox, CheckboxGroup_default as CheckboxGroup, Chip_default as Chip, ChoiceChip_default as ChoiceChip, CircleAvatar_default as CircleAvatar, CircularProgressIndicator_default as CircularProgressIndicator, Clip, ClipOval_default as ClipOval, ClipRRect_default as ClipRRect, Color, ColorUtils, Colors, Column_default as Column, ConstrainedBox_default as ConstrainedBox, Container_default as Container, CrossAxisAlignment, CupertinoActivityIndicator_default as CupertinoActivityIndicator, CupertinoColors, CupertinoContextMenu_default as CupertinoContextMenu, CupertinoNavigationBar_default as CupertinoNavigationBar, CupertinoPageScaffold_default as CupertinoPageScaffold, DecorationImage, Divider_default as Divider, Drawer_default as Drawer, EdgeInsets, ElevatedButton_default as ElevatedButton, Expanded_default as Expanded, Fixed_default as Fixed, FlexBox_default as FlexBox, FloatingLabelBehavior, FlueConfigProvider_default as FlueConfigProvider, FontStyle, FontWeight, GestureDetector_default as GestureDetector, GridView_default as GridView, Icon_default as Icon, IconButton_default as IconButton, Icons, IgnorePointer_default as IgnorePointer, Image_default as Image, ImageColorBackground_default as ImageColorBackground, ImageFilter, ImageProvider, ImageUtils, InkWell_default as InkWell, InputDecoration, LayoutBuilder_default as LayoutBuilder, LinearGradient, LinearProgressIndicator_default as LinearProgressIndicator, ListTile_default as ListTile, ListView_default as ListView, MainAxisAlignment, Matrix4, MediaQuery_default as MediaQuery, MediaQueryKey, MemoryImage, NetworkImage, Opacity_default as Opacity, Orientation, OutlineInputBorder, OutlinedButton_default as OutlinedButton, Overlay_default as Overlay, Padding_default as Padding, PopupMenuButton_default as PopupMenuButton, Positioned_default as Positioned, RadialGradient, Radio_default as Radio, RadioGroup_default as RadioGroup, RadioListTile_default as RadioListTile, RangeSlider_default as RangeSlider, RatingBar_default as RatingBar, RefreshIndicator_default as RefreshIndicator, Row_default as Row, SafeArea_default as SafeArea, Scaffold_default as Scaffold, ScrollView_default as ScrollView, SegmentedControl_default as SegmentedControl, Size, SizedBox_default as SizedBox, Slider_default as Slider, SlidingSegmentedControl_default as SlidingSegmentedControl, SnackBar, Spacer_default as Spacer, Stack_default as Stack, StackFit, Sticky_default as Sticky, Switch_default as Switch, TabBar_default as TabBar, TabBarView_default as TabBarView, Text_default as Text, TextAlign, TextArea_default as TextArea, TextBaseline, TextButton_default as TextButton, TextButtonWithIcon_default as TextButtonWithIcon, TextDecoration, TextDecorationStyle, TextDirection, TextField_default as TextField, TextOverflow, TextStyle, TextStylePreset, TileMode, Transform_default as Transform, UnderlineInputBorder, Wrap_default as Wrap, borderRadiusToStyle, borderSideToStyle, borderToStyle, boxConstraintsToStyle, boxDecorationToStyle, boxShadowToCSS, buttonStyleToStyle, computeLuminance, createAssetImageProvider, createNetworkImageProvider, darken, decorationImageToStyle, edgeInsetsToStyle, extractDominantColor, isBorderRadius, isBorderSide, isBorders, isBoxConstraints, isBoxDecoration, isBoxShadow, isEdgeInsets, isImageFilter, isImageProvider, isTextStyle, keep, lighten, marginToStyle, matrix4ToCSSStyle, normalizeSrc, paddingToStyle, px2vw, resolveColor, setAssetBaseURL, setDefaultVW, setTransform, sizeToStyle, toCSSStyle as textStyleToCSSStyle, toCSSStyle, useMediaQuery, withAlpha, withBlue, withGreen, withOpacity, withRed };
|