@karmo-co/drift-kit-public 25.10.0 → 25.12.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.
- package/components.js +263 -0
- package/drift-kit.min.css +2 -2
- package/package.json +1 -1
package/components.js
CHANGED
|
@@ -7785,6 +7785,251 @@
|
|
|
7785
7785
|
document.addEventListener('DOMContentLoaded', function () { init(document); });
|
|
7786
7786
|
})();
|
|
7787
7787
|
})(typeof window !== 'undefined' ? window : undefined);
|
|
7788
|
+
(function (w) {
|
|
7789
|
+
if (!w)
|
|
7790
|
+
return;
|
|
7791
|
+
var d = (w.dk = w.dk || {});
|
|
7792
|
+
d.__loaded = d.__loaded || {};
|
|
7793
|
+
if (d.__loaded['components/illustration/vectors.js'])
|
|
7794
|
+
return;
|
|
7795
|
+
d.__loaded['components/illustration/vectors.js'] = true;
|
|
7796
|
+
(function () {
|
|
7797
|
+
var dk = window.dk = window.dk || {};
|
|
7798
|
+
dk.component = dk.component || {};
|
|
7799
|
+
dk.component.illustration = dk.component.illustration || {};
|
|
7800
|
+
dk.component.illustration.vectors = {
|
|
7801
|
+
"cards": {
|
|
7802
|
+
"viewBox": "0 -6 145 105",
|
|
7803
|
+
"shadow": {
|
|
7804
|
+
"dy": "1.01",
|
|
7805
|
+
"blur": "2.53",
|
|
7806
|
+
"opacity": "0.16"
|
|
7807
|
+
},
|
|
7808
|
+
"layers": [
|
|
7809
|
+
{
|
|
7810
|
+
"layer": "back",
|
|
7811
|
+
"transform": "translate(34 0) rotate(-6 53 38)"
|
|
7812
|
+
},
|
|
7813
|
+
{
|
|
7814
|
+
"layer": "middle",
|
|
7815
|
+
"transform": "translate(18 10) rotate(-2 53 38)"
|
|
7816
|
+
},
|
|
7817
|
+
{
|
|
7818
|
+
"layer": "front",
|
|
7819
|
+
"transform": "translate(0 22)"
|
|
7820
|
+
}
|
|
7821
|
+
],
|
|
7822
|
+
"gradients": {
|
|
7823
|
+
"body": {
|
|
7824
|
+
"x1": "4.06",
|
|
7825
|
+
"y1": "0.50",
|
|
7826
|
+
"x2": "85.76",
|
|
7827
|
+
"y2": "73.71"
|
|
7828
|
+
},
|
|
7829
|
+
"edge": {
|
|
7830
|
+
"x1": "89.57",
|
|
7831
|
+
"y1": "9.51",
|
|
7832
|
+
"x2": "90.40",
|
|
7833
|
+
"y2": "65.38"
|
|
7834
|
+
}
|
|
7835
|
+
},
|
|
7836
|
+
"shadows": [
|
|
7837
|
+
{
|
|
7838
|
+
"x": "45.90",
|
|
7839
|
+
"y": "39.53",
|
|
7840
|
+
"width": "25.91",
|
|
7841
|
+
"height": "15.46"
|
|
7842
|
+
},
|
|
7843
|
+
{
|
|
7844
|
+
"x": "26.73",
|
|
7845
|
+
"y": "38.13",
|
|
7846
|
+
"width": "25.62",
|
|
7847
|
+
"height": "15.44"
|
|
7848
|
+
},
|
|
7849
|
+
{
|
|
7850
|
+
"x": "7.67",
|
|
7851
|
+
"y": "36.78",
|
|
7852
|
+
"width": "25.50",
|
|
7853
|
+
"height": "15.36"
|
|
7854
|
+
}
|
|
7855
|
+
],
|
|
7856
|
+
"paths": [
|
|
7857
|
+
{
|
|
7858
|
+
"d": "M13.12 0.40C15.97 0.52 18.81 0.68 21.65 0.87C22.59 0.94 23.52 1.08 24.46 1.13L66.87 3.67L87.62 4.88L94.94 5.28C98.39 5.46 100.97 5.34 103.71 7.91C105.52 9.60 106.39 11.63 106.51 14.10C106.55 15.13 106.40 16.16 106.35 17.19C106.29 19.45 105.95 21.65 105.74 23.88L104.43 38.94L102.73 59.38C102.54 61.60 102.42 63.80 102.18 66.01C102.06 67.08 102 68.12 101.78 69.17C101.49 70.71 100.76 72.14 99.69 73.30C98.04 75.05 95.94 75.93 93.55 76.00C93.09 76.00 92.64 75.88 92.19 75.86C91.30 75.82 90.45 75.72 89.57 75.63L82.12 74.86L55.29 72.29L33.14 70.22C28.69 69.82 24.28 69.53 19.83 69.00C15.96 68.53 12.10 68.47 8.23 67.85C3.99 67.16 0.55 64.00 0.38 59.57C0.35 58.60 0.47 57.86 0.52 56.91C0.70 54.14 0.94 51.38 1.25 48.62C1.59 45.20 1.74 41.68 2.05 38.25C2.13 37.37 2.31 36.50 2.38 35.65L4.02 15.60C4.24 13.06 4.25 10.41 4.64 7.91C4.87 6.47 5.70 4.38 6.69 3.29C7.83 2.02 9.51 0.98 11.18 0.59C11.73 0.47 12.54 0.44 13.12 0.40Z",
|
|
7859
|
+
"part": "body"
|
|
7860
|
+
},
|
|
7861
|
+
{
|
|
7862
|
+
"d": "M75.49 4.18L94.94 5.28C97.26 5.37 102.26 6.01 103.71 7.91C105.52 9.60 106.39 11.63 106.51 14.1C106.55 15.13 106.40 16.16 106.35 17.19C106.29 19.45 105.95 21.65 105.74 23.88L104.43 38.94L102.74 59.38C102.55 61.59 102.43 63.80 102.18 66.01C102.06 67.08 102.00 68.12 101.78 69.17C101.49 70.71 100.76 72.14 99.69 73.30C98.05 75.05 95.95 75.93 93.56 76.00C93.09 76.00 92.64 75.88 92.20 75.86C91.36 75.82 90.55 75.74 89.73 75.65L89.57 75.63L82.12 74.86L55.29 72.29L19.83 69.00C15.97 68.53 12.10 68.47 8.23 67.85C1.92 67.21 0.37 62.06 0.39 59.57L0.41 59.16C0.40 58.33 0.47 57.56 0.52 56.91L0.41 59.16C0.44 62.25 1.53 66.08 8.23 66.98C14.12 67.78 64.91 72.52 89.57 74.86C93.20 75.22 100.58 73.96 101.12 66.01C101.65 58.06 104.05 28.09 105.18 14.1C105.41 11.64 103.79 6.14 95.03 5.83L75.49 4.18Z",
|
|
7863
|
+
"part": "edge"
|
|
7864
|
+
},
|
|
7865
|
+
{
|
|
7866
|
+
"d": "M14.62 22.14C14.67 21.49 14.70 20.82 14.78 20.18C15.24 16.58 18.19 17.52 20.67 17.49L20.94 17.54C22.55 17.68 24.18 17.72 25.79 17.83C27.40 17.94 29.11 17.79 30.26 19.15C31.26 20.34 30.83 21.75 30.76 23.15C30.75 23.31 30.74 23.58 30.72 23.73C30.65 24.90 30.59 26.49 30.44 27.64C30.43 27.87 30.44 28.09 30.38 28.31C30.33 29.13 30.27 29.98 30.08 30.78C29.82 31.58 29.69 31.79 29.03 32.35C28.21 33.05 25.78 33.12 24.83 32.74C24.16 32.65 23.49 32.66 22.81 32.53C21.99 32.51 20.75 32.44 19.94 32.36C19.70 32.33 19.45 32.32 19.21 32.31C18.10 32.17 16.82 32.36 15.74 31.99C15.22 31.82 15.00 31.52 14.67 31.11C14.63 31.06 14.58 31.01 14.54 30.95C13.77 30.01 14.04 28.34 14.16 27.16C14.15 26.96 14.18 26.78 14.20 26.57C14.25 25.22 14.41 23.92 14.57 22.57L14.62 22.14Z",
|
|
7867
|
+
"part": "chip"
|
|
7868
|
+
},
|
|
7869
|
+
{
|
|
7870
|
+
"d": "M14.62 22.14C14.67 21.49 14.70 20.82 14.78 20.18C15.24 16.58 18.19 17.52 20.67 17.49L20.94 17.54C21.11 18.26 20.95 20.26 20.90 21.10C20.73 23.75 20.31 26.35 20.16 29.00C20.09 30.13 19.91 31.19 19.94 32.36C19.70 32.33 19.45 32.32 19.21 32.31C18.10 32.17 16.82 32.36 15.74 31.99C15.22 31.82 15.00 31.52 14.67 31.11C14.63 31.06 14.58 31.01 14.54 30.95C13.77 30.01 14.04 28.34 14.16 27.16C14.15 26.96 14.18 26.78 14.20 26.57C14.25 25.22 14.41 23.92 14.57 22.57L14.62 22.14Z",
|
|
7871
|
+
"part": "chip"
|
|
7872
|
+
},
|
|
7873
|
+
{
|
|
7874
|
+
"d": "M14.16 27.17C15.16 27.23 16.16 27.26 17.16 27.32C18.00 27.36 19.01 27.47 19.85 27.46C19.58 29.02 19.76 30.53 19.52 32.09C19.42 32.18 19.33 32.26 19.21 32.31C18.10 32.17 16.82 32.36 15.74 31.99C15.22 31.82 15.00 31.52 14.67 31.11C14.63 31.06 14.58 31.01 14.54 30.95C13.77 30.02 14.04 28.34 14.16 27.17Z",
|
|
7875
|
+
"part": "chip"
|
|
7876
|
+
},
|
|
7877
|
+
{
|
|
7878
|
+
"d": "M14.67 31.11L14.84 30.99C15.06 31.06 15.37 31.27 15.58 31.40C16.73 32.09 18.28 31.70 19.52 32.09C19.41 32.18 19.33 32.26 19.20 32.31C18.10 32.17 16.82 32.36 15.74 31.99C15.22 31.82 15.00 31.52 14.67 31.11Z",
|
|
7879
|
+
"part": "shine"
|
|
7880
|
+
},
|
|
7881
|
+
{
|
|
7882
|
+
"d": "M14.62 22.14C14.67 21.49 14.69 20.82 14.78 20.18C15.24 16.58 18.19 17.52 20.67 17.49L20.79 17.61C20.27 19.04 20.31 20.87 20.17 22.41C19.63 22.39 14.83 22.23 14.62 22.14Z",
|
|
7883
|
+
"part": "chip"
|
|
7884
|
+
},
|
|
7885
|
+
{
|
|
7886
|
+
"d": "M20.67 17.49L20.94 17.54C21.10 18.26 20.95 20.26 20.90 21.10C20.73 23.75 20.31 26.35 20.15 29.00C20.09 30.13 19.91 31.19 19.94 32.36C19.69 32.33 19.45 32.32 19.20 32.31C19.33 32.26 19.41 32.18 19.52 32.09C19.76 30.53 19.57 29.02 19.85 27.46C19.01 27.47 18.00 27.36 17.16 27.32C16.16 27.26 15.15 27.23 14.15 27.17C14.15 26.96 14.17 26.78 14.20 26.57C14.42 26.57 14.65 26.61 14.86 26.64C16.54 26.91 18.21 26.86 19.89 27.08C19.90 25.85 20.04 24.28 20.13 23.03C18.20 22.83 16.51 22.68 14.57 22.57L14.62 22.14C14.83 22.23 19.63 22.39 20.17 22.41C20.31 20.87 20.27 19.04 20.79 17.61L20.67 17.49Z",
|
|
7887
|
+
"part": "line"
|
|
7888
|
+
},
|
|
7889
|
+
{
|
|
7890
|
+
"d": "M25.59 22.84C27.21 22.75 29.35 23.31 30.76 23.15C30.75 23.31 30.74 23.58 30.71 23.73C30.65 24.90 30.59 26.49 30.44 27.64C30.43 27.87 30.43 28.09 30.38 28.31C30.33 29.14 30.27 29.98 30.07 30.78C29.82 31.58 29.68 31.79 29.02 32.35C28.20 33.05 25.78 33.12 24.83 32.74L24.82 32.38C24.82 30.90 25.12 29.60 25.05 28.01L24.74 27.95C24.74 27.82 24.74 27.69 24.75 27.56C24.80 26.39 24.85 24.38 25.22 23.26C25.25 23.15 25.50 22.92 25.59 22.84Z",
|
|
7891
|
+
"part": "chip"
|
|
7892
|
+
},
|
|
7893
|
+
{
|
|
7894
|
+
"d": "M25.05 28.01C25.48 27.90 29.71 28.21 30.38 28.31C30.33 29.14 30.27 29.98 30.07 30.78C29.82 31.58 29.68 31.79 29.02 32.35C28.20 33.05 25.78 33.12 24.83 32.74L24.82 32.38C24.82 30.90 25.12 29.60 25.05 28.01Z",
|
|
7895
|
+
"part": "chip"
|
|
7896
|
+
},
|
|
7897
|
+
{
|
|
7898
|
+
"d": "M24.82 32.38C26.50 32.32 28.75 33.08 29.66 30.94C29.80 30.60 29.79 30.85 30.07 30.78C29.82 31.58 29.68 31.79 29.02 32.35C28.20 33.05 25.78 33.12 24.83 32.74L24.82 32.38Z",
|
|
7899
|
+
"part": "line"
|
|
7900
|
+
},
|
|
7901
|
+
{
|
|
7902
|
+
"d": "M25.59 22.84C27.21 22.75 29.35 23.31 30.76 23.15C30.75 23.31 30.74 23.58 30.71 23.73C28.83 23.51 27.37 23.52 25.49 23.46C25.53 24.22 25.31 26.62 25.20 27.41C26.02 27.33 29.49 27.53 30.44 27.64C30.43 27.87 30.43 28.09 30.38 28.31C29.71 28.21 25.48 27.90 25.05 28.01L24.74 27.95C24.74 27.82 24.74 27.69 24.75 27.56C24.80 26.39 24.85 24.38 25.22 23.26C25.25 23.15 25.50 22.92 25.59 22.84Z",
|
|
7903
|
+
"part": "line"
|
|
7904
|
+
},
|
|
7905
|
+
{
|
|
7906
|
+
"d": "M24.74 27.95L25.05 28.01C25.12 29.60 24.82 30.90 24.82 32.38L24.83 32.74C24.16 32.65 23.49 32.66 22.81 32.53C23.35 32.47 23.95 32.34 24.46 32.44C24.57 30.93 24.60 29.47 24.74 27.95Z",
|
|
7907
|
+
"part": "line"
|
|
7908
|
+
},
|
|
7909
|
+
{
|
|
7910
|
+
"d": "M76.49 54.22C78.63 53.44 81.45 53.97 82.54 56.14L82.51 56.31C83.88 57.38 83.79 61.13 82.65 62.39C82.50 62.55 82.23 62.87 82.13 63.03L82.14 63.10L82.12 63.14C81.94 63.47 82.05 63.50 81.71 63.76C80.91 64.36 80.18 64.88 79.15 64.91C79.13 64.92 79.11 64.94 79.08 64.95C77.81 65.19 76.36 64.72 75.37 63.93C75.22 63.81 75.16 63.56 75.11 63.38C75.09 63.34 74.74 62.94 74.69 62.90C72.95 61.22 72.92 58.30 74.06 56.29C74.44 55.63 75.68 54.40 76.49 54.22Z",
|
|
7911
|
+
"part": "shine"
|
|
7912
|
+
},
|
|
7913
|
+
{
|
|
7914
|
+
"d": "M76.49 54.22C78.63 53.44 81.45 53.97 82.54 56.14L82.50 56.31C82.37 56.23 82.09 55.91 81.95 55.77C81.15 54.96 80.17 54.25 79.00 54.12C78.19 54.02 77.45 54.23 76.67 54.32C76.67 54.32 76.51 54.23 76.49 54.22Z",
|
|
7915
|
+
"part": "line"
|
|
7916
|
+
},
|
|
7917
|
+
{
|
|
7918
|
+
"d": "M75.11 63.38C76.39 64.26 77.20 64.60 78.76 64.60L78.44 64.67L78.47 64.66L78.47 64.71L78.55 64.78L77.87 64.78C78.26 64.81 78.77 64.88 79.15 64.91C79.13 64.92 79.11 64.94 79.08 64.95C77.82 65.19 76.37 64.73 75.38 63.93C75.23 63.81 75.17 63.56 75.11 63.38Z",
|
|
7919
|
+
"part": "mark"
|
|
7920
|
+
},
|
|
7921
|
+
{
|
|
7922
|
+
"d": "M78.76 64.60C79.83 64.52 80.69 64.10 81.55 63.49C81.76 63.34 81.91 63.17 82.13 63.03L82.14 63.10L82.12 63.14C81.94 63.47 82.05 63.50 81.71 63.76C80.92 64.36 80.18 64.88 79.15 64.91C78.77 64.88 78.26 64.81 77.87 64.78L78.55 64.78L78.46 64.71L78.47 64.66L78.44 64.67L78.76 64.60Z",
|
|
7923
|
+
"part": "mark"
|
|
7924
|
+
},
|
|
7925
|
+
{
|
|
7926
|
+
"d": "M82.54 56.14C85.42 52.56 91.10 54.71 91.52 59.11C91.78 61.93 89.70 64.97 86.76 65.11C84.82 65.24 83.34 64.60 82.14 63.10L82.13 63.03C82.23 62.87 82.50 62.55 82.65 62.39C83.79 61.13 83.88 57.38 82.51 56.31L82.54 56.14Z",
|
|
7927
|
+
"part": "gold"
|
|
7928
|
+
},
|
|
7929
|
+
{
|
|
7930
|
+
"d": "M52.93 43.59C53.31 43.57 54.10 43.67 54.50 43.71C55.33 43.78 56.15 43.85 56.97 43.90L61.69 44.22C62.48 44.27 65.26 44.34 65.76 44.71C67.36 45.89 66.96 48.49 64.86 48.91C62.28 48.94 59.40 48.49 56.82 48.30C55.53 48.21 54.24 48.12 52.94 48.01C52.04 47.98 51.33 47.45 51.08 46.54C50.66 45.00 51.59 43.99 52.93 43.59Z",
|
|
7931
|
+
"part": "line",
|
|
7932
|
+
"shadow": 0
|
|
7933
|
+
},
|
|
7934
|
+
{
|
|
7935
|
+
"d": "M33.55 42.20C34.78 42.15 36.31 42.47 37.58 42.54C39.87 42.72 42.18 42.81 44.46 43.00C45.69 43.11 46.55 43.07 47.08 44.33C47.68 45.80 46.88 46.90 45.55 47.47C45.16 47.51 44.62 47.48 44.23 47.44C40.81 47.07 37.38 46.92 33.96 46.65C33.71 46.63 32.99 46.52 32.80 46.43C31.80 45.96 31.61 44.42 31.98 43.49C32.28 42.76 32.92 42.47 33.55 42.20Z",
|
|
7936
|
+
"part": "line",
|
|
7937
|
+
"shadow": 1
|
|
7938
|
+
},
|
|
7939
|
+
{
|
|
7940
|
+
"d": "M14.48 40.86C15.04 40.81 15.95 40.90 16.53 40.94C17.77 41.04 19.00 41.14 20.23 41.26C22.12 41.42 24.01 41.54 25.90 41.69C26.12 41.73 26.76 41.77 26.93 41.89C28.81 43.09 28.27 45.32 26.36 46.04C26.03 46.07 25.67 46.07 25.34 46.04C21.87 45.72 18.39 45.53 14.91 45.30C13.11 45.18 12.32 43.72 12.96 42.11C13.14 41.66 14.01 40.99 14.48 40.86Z",
|
|
7941
|
+
"part": "line",
|
|
7942
|
+
"shadow": 2
|
|
7943
|
+
}
|
|
7944
|
+
]
|
|
7945
|
+
}
|
|
7946
|
+
};
|
|
7947
|
+
})();
|
|
7948
|
+
})(typeof window !== 'undefined' ? window : undefined);
|
|
7949
|
+
(function (w) {
|
|
7950
|
+
if (!w)
|
|
7951
|
+
return;
|
|
7952
|
+
var d = (w.dk = w.dk || {});
|
|
7953
|
+
d.__loaded = d.__loaded || {};
|
|
7954
|
+
if (d.__loaded['components/illustration/behaviour.js'])
|
|
7955
|
+
return;
|
|
7956
|
+
d.__loaded['components/illustration/behaviour.js'] = true;
|
|
7957
|
+
(function () {
|
|
7958
|
+
'use strict';
|
|
7959
|
+
var dk = window.dk = window.dk || {};
|
|
7960
|
+
dk.component = dk.component || {};
|
|
7961
|
+
var api = dk.component.illustration = dk.component.illustration || {};
|
|
7962
|
+
var NS = 'http://www.w3.org/2000/svg';
|
|
7963
|
+
var uid = 0;
|
|
7964
|
+
function el(name, attrs, parent) {
|
|
7965
|
+
var n = document.createElementNS(NS, name);
|
|
7966
|
+
for (var k in attrs)
|
|
7967
|
+
if (attrs[k] !== undefined)
|
|
7968
|
+
n.setAttribute(k, attrs[k]);
|
|
7969
|
+
if (parent)
|
|
7970
|
+
parent.appendChild(n);
|
|
7971
|
+
return n;
|
|
7972
|
+
}
|
|
7973
|
+
function render(host) {
|
|
7974
|
+
var v = api.vectors && api.vectors[host.getAttribute('data-name')];
|
|
7975
|
+
if (!v || host.querySelector('svg'))
|
|
7976
|
+
return;
|
|
7977
|
+
var base = 'dk-illustration-' + (++uid);
|
|
7978
|
+
var svg = el('svg', { viewBox: v.viewBox, fill: 'none', 'aria-hidden': 'true', focusable: 'false' });
|
|
7979
|
+
var defs = el('defs', {}, svg);
|
|
7980
|
+
v.shadows.forEach(function (s, i) {
|
|
7981
|
+
var f = el('filter', { id: base + '-shadow-' + i, x: s.x, y: s.y, width: s.width, height: s.height,
|
|
7982
|
+
filterUnits: 'userSpaceOnUse', 'color-interpolation-filters': 'sRGB' }, defs);
|
|
7983
|
+
el('feFlood', { 'flood-opacity': '0', result: 'BackgroundImageFix' }, f);
|
|
7984
|
+
el('feColorMatrix', { 'in': 'SourceAlpha', type: 'matrix', values: '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0', result: 'hardAlpha' }, f);
|
|
7985
|
+
el('feOffset', { dy: v.shadow.dy }, f);
|
|
7986
|
+
el('feGaussianBlur', { stdDeviation: v.shadow.blur }, f);
|
|
7987
|
+
el('feColorMatrix', { type: 'matrix', values: '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ' + v.shadow.opacity + ' 0' }, f);
|
|
7988
|
+
el('feBlend', { mode: 'normal', in2: 'BackgroundImageFix', result: 'shadow' }, f);
|
|
7989
|
+
el('feBlend', { mode: 'normal', 'in': 'SourceGraphic', in2: 'shadow', result: 'shape' }, f);
|
|
7990
|
+
});
|
|
7991
|
+
v.layers.forEach(function (l) {
|
|
7992
|
+
['body', 'edge'].forEach(function (g) {
|
|
7993
|
+
var c = v.gradients[g];
|
|
7994
|
+
var lg = el('linearGradient', { id: base + '-' + l.layer + '-' + g, x1: c.x1, y1: c.y1, x2: c.x2, y2: c.y2, gradientUnits: 'userSpaceOnUse' }, defs);
|
|
7995
|
+
el('stop', { 'data-stop': l.layer + '-' + g + '-start' }, lg);
|
|
7996
|
+
el('stop', { offset: '1', 'data-stop': l.layer + '-' + g + '-end' }, lg);
|
|
7997
|
+
});
|
|
7998
|
+
});
|
|
7999
|
+
v.layers.forEach(function (l) {
|
|
8000
|
+
var g = el('g', { 'data-layer': l.layer, transform: l.transform }, svg);
|
|
8001
|
+
v.paths.forEach(function (p) {
|
|
8002
|
+
var fill = p.part === 'body' || p.part === 'edge' ? 'url(#' + base + '-' + l.layer + '-' + p.part + ')' : undefined;
|
|
8003
|
+
var at = p.shadow === undefined ? g : el('g', { filter: 'url(#' + base + '-shadow-' + p.shadow + ')' }, g);
|
|
8004
|
+
el('path', { d: p.d, 'data-part': p.part, fill: fill }, at);
|
|
8005
|
+
});
|
|
8006
|
+
});
|
|
8007
|
+
host.appendChild(svg);
|
|
8008
|
+
}
|
|
8009
|
+
function a11y(host) {
|
|
8010
|
+
if (host.hasAttribute('aria-label') || host.hasAttribute('aria-labelledby')) {
|
|
8011
|
+
if (!host.hasAttribute('role'))
|
|
8012
|
+
host.setAttribute('role', 'img');
|
|
8013
|
+
}
|
|
8014
|
+
else if (!host.hasAttribute('aria-hidden'))
|
|
8015
|
+
host.setAttribute('aria-hidden', 'true');
|
|
8016
|
+
}
|
|
8017
|
+
function init(scope) {
|
|
8018
|
+
var root = scope && scope.querySelectorAll ? scope : document;
|
|
8019
|
+
var one = function (host) { render(host); a11y(host); };
|
|
8020
|
+
var list = root.querySelectorAll('.dk-component-illustration');
|
|
8021
|
+
for (var i = 0; i < list.length; i++)
|
|
8022
|
+
one(list[i]);
|
|
8023
|
+
if (root !== document && root.matches && root.matches('.dk-component-illustration'))
|
|
8024
|
+
one(root);
|
|
8025
|
+
}
|
|
8026
|
+
api.init = init;
|
|
8027
|
+
if (document.readyState !== 'loading')
|
|
8028
|
+
init(document);
|
|
8029
|
+
else
|
|
8030
|
+
document.addEventListener('DOMContentLoaded', function () { init(document); });
|
|
8031
|
+
})();
|
|
8032
|
+
})(typeof window !== 'undefined' ? window : undefined);
|
|
7788
8033
|
(function (w) {
|
|
7789
8034
|
if (!w)
|
|
7790
8035
|
return;
|
|
@@ -9989,6 +10234,16 @@
|
|
|
9989
10234
|
var pool = root ? itemsOf(root) : Array.prototype.slice.call(document.querySelectorAll('.' + ITEM));
|
|
9990
10235
|
return pool.filter(function (o) { return o !== item && o.getAttribute('data-group') === name && rootOf(o) === root; });
|
|
9991
10236
|
}
|
|
10237
|
+
var NATIVE = 'a[href], button, input, select, textarea, label, [contenteditable=""], [contenteditable="true"]';
|
|
10238
|
+
var OWN = NATIVE + ', .dk-component-button, .dk-component-icon-button, .dk-component-dropdown__trigger, ' +
|
|
10239
|
+
'.dk-component-select__trigger, .dk-component-checkbox, .dk-component-radio, .dk-component-switch, ' +
|
|
10240
|
+
'.dk-component-input__field, [data-interactive], [role="button"], [role="link"], [role="switch"], ' +
|
|
10241
|
+
'[role="checkbox"], [role="radio"], [role="menuitem"], [role="tab"], [role="slider"], [role="combobox"]';
|
|
10242
|
+
function ownControl(summary, target) {
|
|
10243
|
+
var el = target && target.nodeType === 1 ? target : target && target.parentElement;
|
|
10244
|
+
var hit = el && el.closest ? el.closest(OWN) : null;
|
|
10245
|
+
return hit && hit !== summary && summary.contains(hit) ? hit : null;
|
|
10246
|
+
}
|
|
9992
10247
|
function announce(item, open) {
|
|
9993
10248
|
item.dispatchEvent(new CustomEvent('dk-component-accordion:toggle', { detail: { open: open }, bubbles: true }));
|
|
9994
10249
|
}
|
|
@@ -10071,6 +10326,8 @@
|
|
|
10071
10326
|
var keys = { ArrowDown: 1, ArrowUp: -1, Home: 'first', End: 'last' };
|
|
10072
10327
|
if (!(e.key in keys))
|
|
10073
10328
|
return;
|
|
10329
|
+
if (ownControl(e.currentTarget, e.target))
|
|
10330
|
+
return;
|
|
10074
10331
|
var item = e.currentTarget.parentElement, root = item && rootOf(item);
|
|
10075
10332
|
if (!root)
|
|
10076
10333
|
return;
|
|
@@ -10100,6 +10357,12 @@
|
|
|
10100
10357
|
summary.insertAdjacentHTML('beforeend', root && root.getAttribute('data-icon') === 'plus' ? PLUS : CHEVRON);
|
|
10101
10358
|
}
|
|
10102
10359
|
summary.addEventListener('click', function (e) {
|
|
10360
|
+
var own = ownControl(summary, e.target);
|
|
10361
|
+
if (own) {
|
|
10362
|
+
if (!own.matches(NATIVE))
|
|
10363
|
+
e.preventDefault();
|
|
10364
|
+
return;
|
|
10365
|
+
}
|
|
10103
10366
|
e.preventDefault();
|
|
10104
10367
|
toggle(item);
|
|
10105
10368
|
});
|