@symbo.ls/uikit 2.11.99 → 2.11.101
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/index.cjs.js +135 -105
- package/dist/index.cjs.js.map +3 -3
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -10059,6 +10059,7 @@ __export(domql_exports, {
|
|
|
10059
10059
|
Caption: () => Caption,
|
|
10060
10060
|
CheckBoxWithLabel: () => CheckBoxWithLabel,
|
|
10061
10061
|
Checkbox: () => Checkbox,
|
|
10062
|
+
Circle: () => Circle,
|
|
10062
10063
|
CircleButton: () => CircleButton,
|
|
10063
10064
|
Clickable: () => Clickable,
|
|
10064
10065
|
Collection: () => Collection,
|
|
@@ -10097,7 +10098,7 @@ __export(domql_exports, {
|
|
|
10097
10098
|
IconText: () => IconText,
|
|
10098
10099
|
Iframe: () => Iframe,
|
|
10099
10100
|
Img: () => Img,
|
|
10100
|
-
Input: () =>
|
|
10101
|
+
Input: () => Input2,
|
|
10101
10102
|
Interaction: () => Interaction,
|
|
10102
10103
|
Italic: () => Italic,
|
|
10103
10104
|
KangorooButton: () => KangorooButton,
|
|
@@ -10165,7 +10166,7 @@ var Block = {
|
|
|
10165
10166
|
boxSizing: "border-box"
|
|
10166
10167
|
},
|
|
10167
10168
|
display: ({ props: props6 }) => props6.display && { display: props6.display },
|
|
10168
|
-
hide: ({ props: props6 }) => props6.hide && { display: "none" },
|
|
10169
|
+
hide: ({ props: props6 }) => props6.hide && { display: "none !important" },
|
|
10169
10170
|
width: ({ props: props6 }) => props6.width && (0, import_scratch.getSpacingBasedOnRatio)(props6, "width"),
|
|
10170
10171
|
height: ({ props: props6 }) => props6.height && (0, import_scratch.getSpacingBasedOnRatio)(props6, "height"),
|
|
10171
10172
|
boxSize: ({ props: props6 }) => {
|
|
@@ -10712,6 +10713,9 @@ var Theme = {
|
|
|
10712
10713
|
},
|
|
10713
10714
|
columnRule: ({ props: props6 }) => props6.columnRule && {
|
|
10714
10715
|
columnRule: (0, import_scratch5.transformBorder)(props6.columnRule)
|
|
10716
|
+
},
|
|
10717
|
+
appearance: ({ props: props6 }) => props6.appearance && {
|
|
10718
|
+
appearance: props6.appearance
|
|
10715
10719
|
}
|
|
10716
10720
|
}
|
|
10717
10721
|
};
|
|
@@ -12687,7 +12691,21 @@ var Box = {
|
|
|
12687
12691
|
Animation
|
|
12688
12692
|
],
|
|
12689
12693
|
attr: {
|
|
12690
|
-
id: ({ props: props6 }) => props6.id
|
|
12694
|
+
id: ({ props: props6 }) => props6.id,
|
|
12695
|
+
contenteditable: ({ props: props6 }) => props6.contenteditable,
|
|
12696
|
+
dir: ({ props: props6 }) => props6.dir,
|
|
12697
|
+
draggable: ({ props: props6 }) => props6.draggable,
|
|
12698
|
+
hidden: ({ props: props6 }) => props6.hidden,
|
|
12699
|
+
lang: ({ props: props6 }) => props6.lang,
|
|
12700
|
+
spellcheck: ({ props: props6 }) => props6.spellcheck,
|
|
12701
|
+
tabindex: ({ props: props6 }) => props6.tabindex,
|
|
12702
|
+
title: ({ props: props6 }) => props6.title,
|
|
12703
|
+
translate: ({ props: props6 }) => props6.translate
|
|
12704
|
+
}
|
|
12705
|
+
};
|
|
12706
|
+
var Circle = {
|
|
12707
|
+
props: {
|
|
12708
|
+
round: "100%"
|
|
12691
12709
|
}
|
|
12692
12710
|
};
|
|
12693
12711
|
|
|
@@ -12871,11 +12889,11 @@ var AvatarChooser = {
|
|
|
12871
12889
|
padding: "0 A 0 B1+X"
|
|
12872
12890
|
},
|
|
12873
12891
|
attr: { name: "avatar-chooser", id: "avatar-chooser" },
|
|
12874
|
-
childExtend: { tag: "option"
|
|
12875
|
-
$
|
|
12892
|
+
childExtend: { tag: "option" },
|
|
12893
|
+
$setPropsCollection: ({ parent }) => parent.props.options,
|
|
12876
12894
|
on: {
|
|
12877
12895
|
change: (ev, { parent }) => {
|
|
12878
|
-
parent.
|
|
12896
|
+
parent.Avatar.update({ key: ev.target.value });
|
|
12879
12897
|
}
|
|
12880
12898
|
}
|
|
12881
12899
|
}
|
|
@@ -13623,53 +13641,74 @@ var FieldLabel = {
|
|
|
13623
13641
|
};
|
|
13624
13642
|
|
|
13625
13643
|
// Form/Checkbox.js
|
|
13626
|
-
var
|
|
13627
|
-
|
|
13628
|
-
|
|
13629
|
-
|
|
13630
|
-
|
|
13631
|
-
|
|
13632
|
-
|
|
13633
|
-
|
|
13634
|
-
|
|
13635
|
-
|
|
13644
|
+
var Input = {
|
|
13645
|
+
props: {
|
|
13646
|
+
type: "checkbox",
|
|
13647
|
+
hide: true
|
|
13648
|
+
},
|
|
13649
|
+
attr: {
|
|
13650
|
+
name: ({ parent }) => parent.props.name,
|
|
13651
|
+
checked: ({ state, parent }) => state.checked || parent.props.checked,
|
|
13652
|
+
type: "checkbox"
|
|
13653
|
+
},
|
|
13654
|
+
on: {
|
|
13655
|
+
render: ({ state, parent, node: node2 }) => {
|
|
13656
|
+
const { indeterminate } = parent.props;
|
|
13657
|
+
node2.indeterminate = indeterminate;
|
|
13658
|
+
},
|
|
13659
|
+
update: ({ parent, node: node2 }) => {
|
|
13660
|
+
const { indeterminate } = parent.props;
|
|
13661
|
+
node2.indeterminate = indeterminate;
|
|
13636
13662
|
},
|
|
13637
|
-
|
|
13663
|
+
change: (event, { state, node: node2 }) => {
|
|
13664
|
+
state.update({
|
|
13665
|
+
checked: node2.checked
|
|
13666
|
+
});
|
|
13667
|
+
}
|
|
13638
13668
|
}
|
|
13639
13669
|
};
|
|
13640
13670
|
var Checkbox = {
|
|
13671
|
+
extend: Focusable,
|
|
13641
13672
|
tag: "label",
|
|
13642
|
-
props:
|
|
13643
|
-
|
|
13644
|
-
|
|
13645
|
-
|
|
13646
|
-
|
|
13647
|
-
}
|
|
13648
|
-
on: {
|
|
13649
|
-
render: ({ parent, node: node2 }) => {
|
|
13650
|
-
const { indeterminate } = parent.props;
|
|
13651
|
-
node2.indeterminate = indeterminate;
|
|
13652
|
-
},
|
|
13653
|
-
update: ({ parent, node: node2 }) => {
|
|
13654
|
-
const { indeterminate } = parent.props;
|
|
13655
|
-
console.log(indeterminate);
|
|
13656
|
-
node2.indeterminate = indeterminate;
|
|
13657
|
-
}
|
|
13658
|
-
}
|
|
13673
|
+
props: {
|
|
13674
|
+
padding: "Z",
|
|
13675
|
+
round: "100%",
|
|
13676
|
+
boxSize: "fit-content",
|
|
13677
|
+
":hover": { background: "gray .1" },
|
|
13678
|
+
":active": { background: "gray .35" }
|
|
13659
13679
|
},
|
|
13680
|
+
state: ({ props: props6 }) => ({
|
|
13681
|
+
checked: props6.checked
|
|
13682
|
+
}),
|
|
13683
|
+
Input,
|
|
13660
13684
|
Flex: {
|
|
13661
13685
|
props: {
|
|
13662
13686
|
align: "center center",
|
|
13663
|
-
|
|
13664
|
-
|
|
13665
|
-
|
|
13687
|
+
boxSize: "B",
|
|
13688
|
+
round: "Y",
|
|
13689
|
+
transition: "Z defaultBezier",
|
|
13690
|
+
transitionProperty: "background, color, border",
|
|
13691
|
+
borderWidth: "1px",
|
|
13692
|
+
borderStyle: "solid",
|
|
13693
|
+
"@dark": { color: "white" },
|
|
13694
|
+
"@light": { color: "black" },
|
|
13695
|
+
".checked": {
|
|
13696
|
+
theme: "primary",
|
|
13697
|
+
borderColor: "transparent"
|
|
13698
|
+
},
|
|
13699
|
+
"!checked": {
|
|
13700
|
+
"@dark": { borderColor: "white" },
|
|
13701
|
+
"@light": { borderColor: "black" }
|
|
13702
|
+
}
|
|
13666
13703
|
},
|
|
13667
13704
|
Icon: {
|
|
13668
13705
|
height: "Z Z2",
|
|
13669
|
-
color: "white",
|
|
13670
13706
|
name: "check",
|
|
13671
13707
|
opacity: "0",
|
|
13672
|
-
transition: "opacity
|
|
13708
|
+
transition: "opacity A defaultBezier",
|
|
13709
|
+
".checked": {
|
|
13710
|
+
opacity: "1"
|
|
13711
|
+
}
|
|
13673
13712
|
}
|
|
13674
13713
|
}
|
|
13675
13714
|
};
|
|
@@ -13680,33 +13719,31 @@ var CheckBoxWithLabel = {
|
|
|
13680
13719
|
width: "fit-content",
|
|
13681
13720
|
fieldLabel: { padding: "Z - - -" }
|
|
13682
13721
|
},
|
|
13683
|
-
|
|
13684
|
-
|
|
13722
|
+
Checkbox,
|
|
13723
|
+
FieldLabel
|
|
13685
13724
|
};
|
|
13686
13725
|
|
|
13687
13726
|
// Form/Radio.js
|
|
13688
|
-
var
|
|
13689
|
-
|
|
13727
|
+
var Radio = {
|
|
13728
|
+
extend: Checkbox,
|
|
13729
|
+
Input: {
|
|
13730
|
+
props: { type: "radio" }
|
|
13731
|
+
},
|
|
13690
13732
|
Flex: {
|
|
13691
|
-
round: "100%",
|
|
13692
|
-
|
|
13733
|
+
props: { round: "100%" },
|
|
13734
|
+
Icon: null,
|
|
13735
|
+
Circle: {
|
|
13693
13736
|
boxSize: "Y2 Y2",
|
|
13694
|
-
background: "
|
|
13737
|
+
background: "currentColor",
|
|
13695
13738
|
round: "100%",
|
|
13696
13739
|
opacity: "0",
|
|
13697
|
-
transition: "opacity .15s ease"
|
|
13740
|
+
transition: "opacity .15s ease",
|
|
13741
|
+
".checked": {
|
|
13742
|
+
opacity: "1"
|
|
13743
|
+
}
|
|
13698
13744
|
}
|
|
13699
13745
|
}
|
|
13700
13746
|
};
|
|
13701
|
-
var Radio = {
|
|
13702
|
-
extend: Checkbox,
|
|
13703
|
-
props: templateDefault2,
|
|
13704
|
-
input: { attr: { type: "radio" } },
|
|
13705
|
-
Flex: {
|
|
13706
|
-
Icon: null,
|
|
13707
|
-
circle: {}
|
|
13708
|
-
}
|
|
13709
|
-
};
|
|
13710
13747
|
var RadioWithLabel = {
|
|
13711
13748
|
extend: Flex,
|
|
13712
13749
|
props: {
|
|
@@ -13714,56 +13751,51 @@ var RadioWithLabel = {
|
|
|
13714
13751
|
width: "fit-content",
|
|
13715
13752
|
fieldLabel: { padding: "Z - - -" }
|
|
13716
13753
|
},
|
|
13717
|
-
|
|
13718
|
-
|
|
13754
|
+
Radio,
|
|
13755
|
+
FieldLabel
|
|
13719
13756
|
};
|
|
13720
13757
|
|
|
13721
13758
|
// Form/ToggleSwitch.js
|
|
13722
|
-
var
|
|
13723
|
-
|
|
13724
|
-
|
|
13725
|
-
|
|
13726
|
-
|
|
13727
|
-
|
|
13728
|
-
theme: "primary"
|
|
13729
|
-
}
|
|
13759
|
+
var ToggleSwitch = {
|
|
13760
|
+
extend: Checkbox,
|
|
13761
|
+
props: {
|
|
13762
|
+
padding: "Y",
|
|
13763
|
+
round: "B",
|
|
13764
|
+
":hover > div": { opacity: "1" }
|
|
13730
13765
|
},
|
|
13731
|
-
|
|
13766
|
+
Input: {},
|
|
13732
13767
|
Flex: {
|
|
13733
|
-
|
|
13734
|
-
|
|
13735
|
-
|
|
13736
|
-
|
|
13737
|
-
|
|
13738
|
-
|
|
13739
|
-
|
|
13740
|
-
|
|
13741
|
-
|
|
13768
|
+
props: {
|
|
13769
|
+
boxSize: "B C",
|
|
13770
|
+
padding: "- W",
|
|
13771
|
+
round: "D",
|
|
13772
|
+
opacity: ".5",
|
|
13773
|
+
align: "center flex-start",
|
|
13774
|
+
background: "#CFCFD1",
|
|
13775
|
+
border: "none",
|
|
13776
|
+
transition: "opacity .15s ease",
|
|
13777
|
+
".checked": {
|
|
13778
|
+
justifyContent: "flex-end",
|
|
13779
|
+
theme: "primary"
|
|
13780
|
+
}
|
|
13781
|
+
},
|
|
13782
|
+
Icon: null,
|
|
13783
|
+
Circle: {
|
|
13742
13784
|
boxSize: "A1 A1",
|
|
13743
13785
|
round: "100%",
|
|
13744
|
-
background: "
|
|
13745
|
-
boxShadow: "1px, 1px,
|
|
13786
|
+
background: "currentColor",
|
|
13787
|
+
boxShadow: "1px, 1px, Z, gray .2"
|
|
13746
13788
|
}
|
|
13747
13789
|
}
|
|
13748
13790
|
};
|
|
13749
|
-
var ToggleSwitch = {
|
|
13750
|
-
extend: Checkbox,
|
|
13751
|
-
props: templateDefault3,
|
|
13752
|
-
input: {},
|
|
13753
|
-
Flex: {
|
|
13754
|
-
Icon: null,
|
|
13755
|
-
circle: {}
|
|
13756
|
-
}
|
|
13757
|
-
};
|
|
13758
13791
|
var ToggleSwithWithLabel = {
|
|
13759
13792
|
extend: Flex,
|
|
13760
13793
|
props: {
|
|
13761
13794
|
gap: "A",
|
|
13762
|
-
width: "fit-content"
|
|
13763
|
-
fieldLabel: { padding: "Z - - -" }
|
|
13795
|
+
width: "fit-content"
|
|
13764
13796
|
},
|
|
13765
|
-
|
|
13766
|
-
|
|
13797
|
+
ToggleSwitch: {},
|
|
13798
|
+
FieldLabel: { padding: "Z - - -" }
|
|
13767
13799
|
};
|
|
13768
13800
|
|
|
13769
13801
|
// Link/index.js
|
|
@@ -13814,7 +13846,7 @@ var RouteLink = {
|
|
|
13814
13846
|
};
|
|
13815
13847
|
|
|
13816
13848
|
// Input/index.js
|
|
13817
|
-
var
|
|
13849
|
+
var Input2 = {
|
|
13818
13850
|
extend: [Focusable],
|
|
13819
13851
|
tag: "input",
|
|
13820
13852
|
props: {
|
|
@@ -13842,7 +13874,7 @@ var Input = {
|
|
|
13842
13874
|
}
|
|
13843
13875
|
};
|
|
13844
13876
|
var NumberInput = {
|
|
13845
|
-
extend:
|
|
13877
|
+
extend: Input2,
|
|
13846
13878
|
props: {
|
|
13847
13879
|
type: "number"
|
|
13848
13880
|
},
|
|
@@ -13864,15 +13896,13 @@ var Field = {
|
|
|
13864
13896
|
round: "C",
|
|
13865
13897
|
type: "text",
|
|
13866
13898
|
position: "relative",
|
|
13867
|
-
width: "
|
|
13868
|
-
|
|
13869
|
-
|
|
13870
|
-
|
|
13871
|
-
|
|
13872
|
-
|
|
13873
|
-
|
|
13874
|
-
boxSizing: "border-box"
|
|
13875
|
-
},
|
|
13899
|
+
width: "G",
|
|
13900
|
+
appearance: "none",
|
|
13901
|
+
outline: 0,
|
|
13902
|
+
border: "none",
|
|
13903
|
+
cursor: "pointer",
|
|
13904
|
+
fontFamily: "inherit",
|
|
13905
|
+
boxSizing: "border-box",
|
|
13876
13906
|
input: {
|
|
13877
13907
|
width: "100%",
|
|
13878
13908
|
height: "100%",
|
|
@@ -13880,10 +13910,10 @@ var Field = {
|
|
|
13880
13910
|
},
|
|
13881
13911
|
svg: {
|
|
13882
13912
|
position: "absolute",
|
|
13883
|
-
right: "
|
|
13913
|
+
right: "A"
|
|
13884
13914
|
}
|
|
13885
13915
|
}),
|
|
13886
|
-
input: { extend: [Focusable,
|
|
13916
|
+
input: { extend: [Focusable, Input2] }
|
|
13887
13917
|
};
|
|
13888
13918
|
|
|
13889
13919
|
// Video/index.js
|
|
@@ -14224,7 +14254,7 @@ var TooltipParent = {
|
|
|
14224
14254
|
|
|
14225
14255
|
// Textarea/index.js
|
|
14226
14256
|
var Textarea = {
|
|
14227
|
-
extend: [
|
|
14257
|
+
extend: [Input2],
|
|
14228
14258
|
tag: "textarea",
|
|
14229
14259
|
props: {
|
|
14230
14260
|
theme: "tertiary",
|