se-design 1.0.99 → 1.1.1-dev
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/assets/icons/reminder-clock.svg +6 -0
- package/dist/assets/style.css +1 -1
- package/dist/components/GetStartedWidget/index.d.ts +6 -0
- package/dist/index100.js +1 -1
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +1 -1
- package/dist/index101.js.map +1 -1
- package/dist/index102.js +1 -1
- package/dist/index102.js.map +1 -1
- package/dist/index103.js +1 -1
- package/dist/index103.js.map +1 -1
- package/dist/index104.js +1 -1
- package/dist/index104.js.map +1 -1
- package/dist/index105.js +1 -1
- package/dist/index105.js.map +1 -1
- package/dist/index106.js +1 -1
- package/dist/index106.js.map +1 -1
- package/dist/index107.js +1 -1
- package/dist/index107.js.map +1 -1
- package/dist/index108.js +1 -1
- package/dist/index108.js.map +1 -1
- package/dist/index109.js +1 -1
- package/dist/index109.js.map +1 -1
- package/dist/index110.js +1 -1
- package/dist/index110.js.map +1 -1
- package/dist/index111.js +1 -1
- package/dist/index111.js.map +1 -1
- package/dist/index112.js +1 -1
- package/dist/index112.js.map +1 -1
- package/dist/index113.js +1 -1
- package/dist/index113.js.map +1 -1
- package/dist/index114.js +1 -1
- package/dist/index114.js.map +1 -1
- package/dist/index115.js +1 -1
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +1 -1
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +1 -1
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +1 -1
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +1 -1
- package/dist/index119.js.map +1 -1
- package/dist/index12.js +2 -2
- package/dist/index120.js +2 -2
- package/dist/index120.js.map +1 -1
- package/dist/index121.js +1 -1
- package/dist/index121.js.map +1 -1
- package/dist/index122.js +2 -2
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +1 -1
- package/dist/index123.js.map +1 -1
- package/dist/index124.js +1 -1
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +2 -2
- package/dist/index125.js.map +1 -1
- package/dist/index126.js +1 -1
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +2 -2
- package/dist/index127.js.map +1 -1
- package/dist/index128.js +1 -1
- package/dist/index128.js.map +1 -1
- package/dist/index129.js +1 -1
- package/dist/index129.js.map +1 -1
- package/dist/index13.js +2 -2
- package/dist/index130.js +1 -1
- package/dist/index130.js.map +1 -1
- package/dist/index131.js +1 -1
- package/dist/index131.js.map +1 -1
- package/dist/index132.js +1 -1
- package/dist/index132.js.map +1 -1
- package/dist/index133.js +1 -1
- package/dist/index133.js.map +1 -1
- package/dist/index134.js +2 -2
- package/dist/index134.js.map +1 -1
- package/dist/index135.js +1 -1
- package/dist/index135.js.map +1 -1
- package/dist/index136.js +2 -2
- package/dist/index136.js.map +1 -1
- package/dist/index137.js +2 -2
- package/dist/index137.js.map +1 -1
- package/dist/index138.js +1 -1
- package/dist/index138.js.map +1 -1
- package/dist/index139.js +2 -2
- package/dist/index139.js.map +1 -1
- package/dist/index140.js +2 -2
- package/dist/index140.js.map +1 -1
- package/dist/index141.js +1 -1
- package/dist/index141.js.map +1 -1
- package/dist/index142.js +1 -1
- package/dist/index142.js.map +1 -1
- package/dist/index143.js +1 -1
- package/dist/index143.js.map +1 -1
- package/dist/index144.js +2 -2
- package/dist/index144.js.map +1 -1
- package/dist/index145.js +2 -2
- package/dist/index145.js.map +1 -1
- package/dist/index146.js +2 -2
- package/dist/index146.js.map +1 -1
- package/dist/index147.js +1 -1
- package/dist/index147.js.map +1 -1
- package/dist/index148.js +1 -1
- package/dist/index148.js.map +1 -1
- package/dist/index149.js +1 -1
- package/dist/index149.js.map +1 -1
- package/dist/index150.js +1 -1
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +1 -1
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +1 -1
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +1 -1
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +1 -1
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +1 -1
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +2 -2
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +2 -2
- package/dist/index157.js.map +1 -1
- package/dist/index158.js +1 -1
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +1 -1
- package/dist/index159.js.map +1 -1
- package/dist/index16.js +1 -1
- package/dist/index160.js +1 -1
- package/dist/index160.js.map +1 -1
- package/dist/index161.js +1 -1
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +1 -1
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +1 -1
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +1 -1
- package/dist/index164.js.map +1 -1
- package/dist/index165.js +1 -1
- package/dist/index165.js.map +1 -1
- package/dist/index166.js +1 -1
- package/dist/index166.js.map +1 -1
- package/dist/index167.js +2 -2
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +1 -1
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +2 -2
- package/dist/index169.js.map +1 -1
- package/dist/index170.js +2 -2
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +2 -2
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +2 -2
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +1 -1
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +1 -1
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +1 -1
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +1 -1
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +1 -1
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +1 -1
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +1 -1
- package/dist/index179.js.map +1 -1
- package/dist/index180.js +2 -2
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +1 -1
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +2 -2
- package/dist/index182.js.map +1 -1
- package/dist/index183.js +1 -1
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +1 -1
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +1 -1
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +1 -1
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +1 -1
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +1 -1
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +1 -1
- package/dist/index189.js.map +1 -1
- package/dist/index19.js +1 -1
- package/dist/index190.js +1 -1
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +1 -1
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +1 -1
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +1 -1
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +1 -1
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +1 -1
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +1 -1
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +1 -1
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +1 -1
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +1 -1
- package/dist/index199.js.map +1 -1
- package/dist/index200.js +1 -1
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +2 -2
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +1 -1
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +2 -2
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +1 -1
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +2 -2
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +1 -1
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +2 -2
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +1 -1
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +1 -1
- package/dist/index209.js.map +1 -1
- package/dist/index210.js +2 -2
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +1 -1
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +2 -2
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +1 -1
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +1 -1
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +1 -1
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +1 -1
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +1 -1
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +1 -1
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +2 -2
- package/dist/index219.js.map +1 -1
- package/dist/index220.js +1 -1
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +2 -2
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +2 -2
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +1 -1
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +2 -149
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +2 -9
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +149 -6
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +8 -42
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +5 -20
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +46 -0
- package/dist/index229.js.map +1 -0
- package/dist/index230.js +24 -0
- package/dist/index230.js.map +1 -0
- package/dist/{index235.js → index237.js} +1 -1
- package/dist/{index235.js.map → index237.js.map} +1 -1
- package/dist/{index236.js → index238.js} +1 -1
- package/dist/{index236.js.map → index238.js.map} +1 -1
- package/dist/index24.js +1 -1
- package/dist/index245.js +4 -11
- package/dist/index245.js.map +1 -1
- package/dist/index247.js +15 -0
- package/dist/index247.js.map +1 -0
- package/dist/{index254.js → index256.js} +1 -1
- package/dist/{index254.js.map → index256.js.map} +1 -1
- package/dist/{index257.js → index259.js} +1 -1
- package/dist/{index257.js.map → index259.js.map} +1 -1
- package/dist/index26.js +1 -1
- package/dist/{index266.js → index268.js} +1 -1
- package/dist/{index266.js.map → index268.js.map} +1 -1
- package/dist/index269.js +3 -18
- package/dist/index269.js.map +1 -1
- package/dist/index271.js +9 -9
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +9 -4
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +5 -170
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +170 -11
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +11 -6
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +5 -5
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +5 -37
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +38 -2
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +2 -8
- package/dist/index279.js.map +1 -1
- package/dist/index280.js +7 -326
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +324 -47
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +50 -2
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +2 -76
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +65 -82
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +89 -48
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +51 -7
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +7 -4
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +4 -51
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +52 -2
- package/dist/index289.js.map +1 -1
- package/dist/index29.js +2 -2
- package/dist/index290.js +2 -2
- package/dist/index291.js +5 -0
- package/dist/index291.js.map +1 -0
- package/dist/index30.js +1 -1
- package/dist/index31.js +1 -1
- package/dist/index33.js +1 -1
- package/dist/index33.js.map +1 -1
- package/dist/index34.js +1 -1
- package/dist/index36.js +1 -1
- package/dist/index37.js +25 -25
- package/dist/index37.js.map +1 -1
- package/dist/index38.js +1 -1
- package/dist/index39.js +1 -1
- package/dist/index40.js +2 -2
- package/dist/index41.js +1 -1
- package/dist/index43.js +58 -51
- package/dist/index43.js.map +1 -1
- package/dist/index44.js +1 -1
- package/dist/index45.js +1 -1
- package/dist/index47.js +1 -1
- package/dist/index52.js +2 -2
- package/dist/index55.js +1 -1
- package/dist/index57.js +1 -1
- package/dist/index58.js +1 -1
- package/dist/index59.js +1 -1
- package/dist/index6.js +194 -192
- package/dist/index6.js.map +1 -1
- package/dist/index63.js +1 -1
- package/dist/index67.js +1 -1
- package/dist/index69.js +1 -1
- package/dist/index7.js +1 -1
- package/dist/index71.js +1 -1
- package/dist/index85.js +1 -1
- package/dist/index87.js +1 -1
- package/dist/index88.js +22 -0
- package/dist/index88.js.map +1 -0
- package/dist/index9.js +1 -1
- package/dist/index90.js +2 -2
- package/dist/index90.js.map +1 -1
- package/dist/index91.js +2 -2
- package/dist/index91.js.map +1 -1
- package/dist/index92.js +2 -2
- package/dist/index92.js.map +1 -1
- package/dist/index93.js +2 -2
- package/dist/index93.js.map +1 -1
- package/dist/index94.js +1 -1
- package/dist/index94.js.map +1 -1
- package/dist/index95.js +1 -1
- package/dist/index95.js.map +1 -1
- package/dist/index96.js +1 -1
- package/dist/index96.js.map +1 -1
- package/dist/index97.js +1 -1
- package/dist/index97.js.map +1 -1
- package/dist/index98.js +1 -1
- package/dist/index98.js.map +1 -1
- package/dist/index99.js +1 -1
- package/dist/index99.js.map +1 -1
- package/package.json +1 -1
- package/dist/index243.js +0 -8
- package/dist/index243.js.map +0 -1
- package/dist/index267.js +0 -7
- package/dist/index267.js.map +0 -1
- package/dist/index270.js +0 -13
- package/dist/index270.js.map +0 -1
- package/dist/index89.js +0 -5
- package/dist/index89.js.map +0 -1
package/dist/index6.js
CHANGED
|
@@ -1,142 +1,143 @@
|
|
|
1
|
-
import L from "./
|
|
2
|
-
import R from "./
|
|
3
|
-
import F from "./
|
|
4
|
-
import B from "./
|
|
5
|
-
import D from "./
|
|
6
|
-
import M from "./
|
|
7
|
-
import q from "./
|
|
8
|
-
import G from "./
|
|
9
|
-
import V from "./
|
|
10
|
-
import z from "./
|
|
11
|
-
import H from "./
|
|
12
|
-
import J from "./
|
|
13
|
-
import K from "./
|
|
14
|
-
import Q from "./
|
|
15
|
-
import U from "./
|
|
16
|
-
import W from "./
|
|
17
|
-
import X from "./
|
|
18
|
-
import Y from "./
|
|
19
|
-
import Z from "./
|
|
20
|
-
import ss from "./
|
|
21
|
-
import os from "./
|
|
22
|
-
import _s from "./
|
|
23
|
-
import ts from "./
|
|
24
|
-
import is from "./
|
|
25
|
-
import rs from "./
|
|
26
|
-
import es from "./
|
|
27
|
-
import cs from "./
|
|
28
|
-
import ms from "./
|
|
29
|
-
import as from "./
|
|
30
|
-
import gs from "./
|
|
31
|
-
import vs from "./
|
|
32
|
-
import ns from "./
|
|
33
|
-
import ls from "./
|
|
34
|
-
import fs from "./
|
|
35
|
-
import bs from "./
|
|
36
|
-
import ps from "./
|
|
37
|
-
import ds from "./
|
|
38
|
-
import us from "./
|
|
39
|
-
import hs from "./
|
|
40
|
-
import ks from "./
|
|
41
|
-
import xs from "./
|
|
42
|
-
import As from "./
|
|
43
|
-
import Is from "./
|
|
44
|
-
import ys from "./
|
|
45
|
-
import ws from "./
|
|
46
|
-
import Ps from "./
|
|
47
|
-
import Ns from "./
|
|
48
|
-
import Cs from "./
|
|
49
|
-
import Os from "./
|
|
50
|
-
import $s from "./
|
|
51
|
-
import Es from "./
|
|
52
|
-
import Ss from "./
|
|
53
|
-
import Ts from "./
|
|
54
|
-
import js from "./
|
|
55
|
-
import Ls from "./
|
|
56
|
-
import Rs from "./
|
|
57
|
-
import Fs from "./
|
|
58
|
-
import Bs from "./
|
|
59
|
-
import Ds from "./
|
|
60
|
-
import Ms from "./
|
|
61
|
-
import qs from "./
|
|
62
|
-
import Gs from "./
|
|
63
|
-
import Vs from "./
|
|
64
|
-
import zs from "./
|
|
65
|
-
import Hs from "./
|
|
66
|
-
import Js from "./
|
|
67
|
-
import Ks from "./
|
|
68
|
-
import Qs from "./
|
|
69
|
-
import Us from "./
|
|
70
|
-
import Ws from "./
|
|
71
|
-
import Xs from "./
|
|
72
|
-
import Ys from "./
|
|
73
|
-
import Zs from "./
|
|
74
|
-
import so from "./
|
|
75
|
-
import oo from "./
|
|
76
|
-
import _o from "./
|
|
77
|
-
import to from "./
|
|
78
|
-
import io from "./
|
|
79
|
-
import ro from "./
|
|
80
|
-
import eo from "./
|
|
81
|
-
import co from "./
|
|
82
|
-
import mo from "./
|
|
83
|
-
import ao from "./
|
|
84
|
-
import go from "./
|
|
85
|
-
import vo from "./
|
|
86
|
-
import no from "./
|
|
87
|
-
import lo from "./
|
|
88
|
-
import fo from "./
|
|
89
|
-
import bo from "./
|
|
90
|
-
import po from "./
|
|
91
|
-
import uo from "./
|
|
92
|
-
import ho from "./
|
|
93
|
-
import ko from "./
|
|
94
|
-
import xo from "./
|
|
95
|
-
import Ao from "./
|
|
96
|
-
import Io from "./
|
|
97
|
-
import yo from "./
|
|
98
|
-
import wo from "./
|
|
99
|
-
import Po from "./
|
|
100
|
-
import No from "./
|
|
101
|
-
import Co from "./
|
|
102
|
-
import Oo from "./
|
|
103
|
-
import $o from "./
|
|
104
|
-
import Eo from "./
|
|
105
|
-
import So from "./
|
|
106
|
-
import To from "./
|
|
107
|
-
import jo from "./
|
|
108
|
-
import Lo from "./
|
|
109
|
-
import Ro from "./
|
|
110
|
-
import Fo from "./
|
|
111
|
-
import Bo from "./
|
|
112
|
-
import Do from "./
|
|
113
|
-
import Mo from "./
|
|
114
|
-
import qo from "./
|
|
115
|
-
import Go from "./
|
|
116
|
-
import Vo from "./
|
|
117
|
-
import zo from "./
|
|
118
|
-
import Ho from "./
|
|
119
|
-
import Jo from "./
|
|
120
|
-
import Ko from "./
|
|
121
|
-
import Qo from "./
|
|
122
|
-
import Uo from "./
|
|
123
|
-
import Wo from "./
|
|
124
|
-
import Xo from "./
|
|
125
|
-
import Yo from "./
|
|
126
|
-
import Zo from "./
|
|
127
|
-
import s_ from "./
|
|
128
|
-
import o_ from "./
|
|
129
|
-
import __ from "./
|
|
130
|
-
import t_ from "./
|
|
131
|
-
import i_ from "./
|
|
132
|
-
import r_ from "./
|
|
133
|
-
import e_ from "./
|
|
134
|
-
import c_ from "./
|
|
135
|
-
import m_ from "./
|
|
1
|
+
import L from "./index90.js";
|
|
2
|
+
import R from "./index91.js";
|
|
3
|
+
import F from "./index92.js";
|
|
4
|
+
import B from "./index93.js";
|
|
5
|
+
import D from "./index94.js";
|
|
6
|
+
import M from "./index95.js";
|
|
7
|
+
import q from "./index96.js";
|
|
8
|
+
import G from "./index97.js";
|
|
9
|
+
import V from "./index98.js";
|
|
10
|
+
import z from "./index99.js";
|
|
11
|
+
import H from "./index100.js";
|
|
12
|
+
import J from "./index101.js";
|
|
13
|
+
import K from "./index102.js";
|
|
14
|
+
import Q from "./index103.js";
|
|
15
|
+
import U from "./index104.js";
|
|
16
|
+
import W from "./index105.js";
|
|
17
|
+
import X from "./index106.js";
|
|
18
|
+
import Y from "./index107.js";
|
|
19
|
+
import Z from "./index108.js";
|
|
20
|
+
import ss from "./index109.js";
|
|
21
|
+
import os from "./index110.js";
|
|
22
|
+
import _s from "./index111.js";
|
|
23
|
+
import ts from "./index112.js";
|
|
24
|
+
import is from "./index113.js";
|
|
25
|
+
import rs from "./index114.js";
|
|
26
|
+
import es from "./index115.js";
|
|
27
|
+
import cs from "./index116.js";
|
|
28
|
+
import ms from "./index117.js";
|
|
29
|
+
import as from "./index118.js";
|
|
30
|
+
import gs from "./index119.js";
|
|
31
|
+
import vs from "./index120.js";
|
|
32
|
+
import ns from "./index121.js";
|
|
33
|
+
import ls from "./index122.js";
|
|
34
|
+
import fs from "./index123.js";
|
|
35
|
+
import bs from "./index124.js";
|
|
36
|
+
import ps from "./index125.js";
|
|
37
|
+
import ds from "./index126.js";
|
|
38
|
+
import us from "./index127.js";
|
|
39
|
+
import hs from "./index128.js";
|
|
40
|
+
import ks from "./index129.js";
|
|
41
|
+
import xs from "./index130.js";
|
|
42
|
+
import As from "./index131.js";
|
|
43
|
+
import Is from "./index132.js";
|
|
44
|
+
import ys from "./index133.js";
|
|
45
|
+
import ws from "./index134.js";
|
|
46
|
+
import Ps from "./index135.js";
|
|
47
|
+
import Ns from "./index136.js";
|
|
48
|
+
import Cs from "./index137.js";
|
|
49
|
+
import Os from "./index138.js";
|
|
50
|
+
import $s from "./index139.js";
|
|
51
|
+
import Es from "./index140.js";
|
|
52
|
+
import Ss from "./index141.js";
|
|
53
|
+
import Ts from "./index142.js";
|
|
54
|
+
import js from "./index143.js";
|
|
55
|
+
import Ls from "./index144.js";
|
|
56
|
+
import Rs from "./index145.js";
|
|
57
|
+
import Fs from "./index146.js";
|
|
58
|
+
import Bs from "./index147.js";
|
|
59
|
+
import Ds from "./index148.js";
|
|
60
|
+
import Ms from "./index149.js";
|
|
61
|
+
import qs from "./index150.js";
|
|
62
|
+
import Gs from "./index151.js";
|
|
63
|
+
import Vs from "./index152.js";
|
|
64
|
+
import zs from "./index153.js";
|
|
65
|
+
import Hs from "./index154.js";
|
|
66
|
+
import Js from "./index155.js";
|
|
67
|
+
import Ks from "./index156.js";
|
|
68
|
+
import Qs from "./index157.js";
|
|
69
|
+
import Us from "./index158.js";
|
|
70
|
+
import Ws from "./index159.js";
|
|
71
|
+
import Xs from "./index160.js";
|
|
72
|
+
import Ys from "./index161.js";
|
|
73
|
+
import Zs from "./index162.js";
|
|
74
|
+
import so from "./index163.js";
|
|
75
|
+
import oo from "./index164.js";
|
|
76
|
+
import _o from "./index165.js";
|
|
77
|
+
import to from "./index166.js";
|
|
78
|
+
import io from "./index167.js";
|
|
79
|
+
import ro from "./index168.js";
|
|
80
|
+
import eo from "./index169.js";
|
|
81
|
+
import co from "./index170.js";
|
|
82
|
+
import mo from "./index171.js";
|
|
83
|
+
import ao from "./index172.js";
|
|
84
|
+
import go from "./index173.js";
|
|
85
|
+
import vo from "./index174.js";
|
|
86
|
+
import no from "./index175.js";
|
|
87
|
+
import lo from "./index176.js";
|
|
88
|
+
import fo from "./index177.js";
|
|
89
|
+
import bo from "./index178.js";
|
|
90
|
+
import po from "./index179.js";
|
|
91
|
+
import uo from "./index180.js";
|
|
92
|
+
import ho from "./index181.js";
|
|
93
|
+
import ko from "./index182.js";
|
|
94
|
+
import xo from "./index183.js";
|
|
95
|
+
import Ao from "./index184.js";
|
|
96
|
+
import Io from "./index185.js";
|
|
97
|
+
import yo from "./index186.js";
|
|
98
|
+
import wo from "./index187.js";
|
|
99
|
+
import Po from "./index188.js";
|
|
100
|
+
import No from "./index189.js";
|
|
101
|
+
import Co from "./index190.js";
|
|
102
|
+
import Oo from "./index191.js";
|
|
103
|
+
import $o from "./index192.js";
|
|
104
|
+
import Eo from "./index193.js";
|
|
105
|
+
import So from "./index194.js";
|
|
106
|
+
import To from "./index195.js";
|
|
107
|
+
import jo from "./index196.js";
|
|
108
|
+
import Lo from "./index197.js";
|
|
109
|
+
import Ro from "./index198.js";
|
|
110
|
+
import Fo from "./index199.js";
|
|
111
|
+
import Bo from "./index200.js";
|
|
112
|
+
import Do from "./index201.js";
|
|
113
|
+
import Mo from "./index202.js";
|
|
114
|
+
import qo from "./index203.js";
|
|
115
|
+
import Go from "./index204.js";
|
|
116
|
+
import Vo from "./index205.js";
|
|
117
|
+
import zo from "./index206.js";
|
|
118
|
+
import Ho from "./index207.js";
|
|
119
|
+
import Jo from "./index208.js";
|
|
120
|
+
import Ko from "./index209.js";
|
|
121
|
+
import Qo from "./index210.js";
|
|
122
|
+
import Uo from "./index211.js";
|
|
123
|
+
import Wo from "./index212.js";
|
|
124
|
+
import Xo from "./index213.js";
|
|
125
|
+
import Yo from "./index214.js";
|
|
126
|
+
import Zo from "./index215.js";
|
|
127
|
+
import s_ from "./index216.js";
|
|
128
|
+
import o_ from "./index217.js";
|
|
129
|
+
import __ from "./index218.js";
|
|
130
|
+
import t_ from "./index219.js";
|
|
131
|
+
import i_ from "./index220.js";
|
|
132
|
+
import r_ from "./index221.js";
|
|
133
|
+
import e_ from "./index222.js";
|
|
134
|
+
import c_ from "./index223.js";
|
|
135
|
+
import m_ from "./index224.js";
|
|
136
|
+
import a_ from "./index225.js";
|
|
136
137
|
import m from "react";
|
|
137
|
-
import { ReactSVG as
|
|
138
|
-
import { getA11yNameAttributes as
|
|
139
|
-
import { useAccessiblePress as
|
|
138
|
+
import { ReactSVG as g_ } from "./index226.js";
|
|
139
|
+
import { getA11yNameAttributes as v_ } from "./index87.js";
|
|
140
|
+
import { useAccessiblePress as n_ } from "./index73.js";
|
|
140
141
|
import "./index78.js";
|
|
141
142
|
function a() {
|
|
142
143
|
return a = Object.assign ? Object.assign.bind() : function(s) {
|
|
@@ -147,7 +148,7 @@ function a() {
|
|
|
147
148
|
return s;
|
|
148
149
|
}, a.apply(null, arguments);
|
|
149
150
|
}
|
|
150
|
-
const
|
|
151
|
+
const l_ = /* @__PURE__ */ Object.assign({
|
|
151
152
|
"/src/assets/icons/ai-off.svg": L,
|
|
152
153
|
"/src/assets/icons/ai-re-run.svg": R,
|
|
153
154
|
"/src/assets/icons/ai-search.svg": F,
|
|
@@ -237,57 +238,58 @@ const n_ = /* @__PURE__ */ Object.assign({
|
|
|
237
238
|
"/src/assets/icons/radio-field.svg": lo,
|
|
238
239
|
"/src/assets/icons/radio-filled.svg": fo,
|
|
239
240
|
"/src/assets/icons/radio.svg": bo,
|
|
240
|
-
"/src/assets/icons/
|
|
241
|
-
"/src/assets/icons/reports.svg": uo,
|
|
242
|
-
"/src/assets/icons/
|
|
243
|
-
"/src/assets/icons/repository.svg": ko,
|
|
244
|
-
"/src/assets/icons/
|
|
245
|
-
"/src/assets/icons/
|
|
246
|
-
"/src/assets/icons/
|
|
247
|
-
"/src/assets/icons/
|
|
248
|
-
"/src/assets/icons/
|
|
249
|
-
"/src/assets/icons/rotate-
|
|
250
|
-
"/src/assets/icons/
|
|
251
|
-
"/src/assets/icons/
|
|
252
|
-
"/src/assets/icons/
|
|
253
|
-
"/src/assets/icons/
|
|
254
|
-
"/src/assets/icons/
|
|
255
|
-
"/src/assets/icons/shield.svg": So,
|
|
256
|
-
"/src/assets/icons/
|
|
257
|
-
"/src/assets/icons/shipment.svg": jo,
|
|
258
|
-
"/src/assets/icons/
|
|
259
|
-
"/src/assets/icons/
|
|
260
|
-
"/src/assets/icons/
|
|
261
|
-
"/src/assets/icons/
|
|
262
|
-
"/src/assets/icons/
|
|
263
|
-
"/src/assets/icons/
|
|
264
|
-
"/src/assets/icons/
|
|
265
|
-
"/src/assets/icons/sort-
|
|
266
|
-
"/src/assets/icons/sort.svg": Vo,
|
|
267
|
-
"/src/assets/icons/
|
|
268
|
-
"/src/assets/icons/
|
|
269
|
-
"/src/assets/icons/
|
|
270
|
-
"/src/assets/icons/
|
|
271
|
-
"/src/assets/icons/
|
|
272
|
-
"/src/assets/icons/
|
|
273
|
-
"/src/assets/icons/
|
|
274
|
-
"/src/assets/icons/
|
|
275
|
-
"/src/assets/icons/
|
|
276
|
-
"/src/assets/icons/
|
|
277
|
-
"/src/assets/icons/upload.svg": s_,
|
|
278
|
-
"/src/assets/icons/
|
|
279
|
-
"/src/assets/icons/views.svg": __,
|
|
280
|
-
"/src/assets/icons/
|
|
281
|
-
"/src/assets/icons/
|
|
282
|
-
"/src/assets/icons/
|
|
283
|
-
"/src/assets/icons/
|
|
284
|
-
"/src/assets/icons/
|
|
285
|
-
"/src/assets/icons/zoom-
|
|
241
|
+
"/src/assets/icons/reminder-clock.svg": po,
|
|
242
|
+
"/src/assets/icons/reports-outline.svg": uo,
|
|
243
|
+
"/src/assets/icons/reports.svg": ho,
|
|
244
|
+
"/src/assets/icons/repository-outline.svg": ko,
|
|
245
|
+
"/src/assets/icons/repository.svg": xo,
|
|
246
|
+
"/src/assets/icons/reset.svg": Ao,
|
|
247
|
+
"/src/assets/icons/return.svg": Io,
|
|
248
|
+
"/src/assets/icons/right-align.svg": yo,
|
|
249
|
+
"/src/assets/icons/rightSide.svg": wo,
|
|
250
|
+
"/src/assets/icons/rotate-left.svg": Po,
|
|
251
|
+
"/src/assets/icons/rotate-right.svg": No,
|
|
252
|
+
"/src/assets/icons/rounded-plus.svg": Co,
|
|
253
|
+
"/src/assets/icons/search.svg": Oo,
|
|
254
|
+
"/src/assets/icons/select-files.svg": $o,
|
|
255
|
+
"/src/assets/icons/share.svg": Eo,
|
|
256
|
+
"/src/assets/icons/shield-with-tick.svg": So,
|
|
257
|
+
"/src/assets/icons/shield.svg": To,
|
|
258
|
+
"/src/assets/icons/shipment-private.svg": jo,
|
|
259
|
+
"/src/assets/icons/shipment.svg": Lo,
|
|
260
|
+
"/src/assets/icons/sidebar.svg": Ro,
|
|
261
|
+
"/src/assets/icons/sign-doc.svg": Fo,
|
|
262
|
+
"/src/assets/icons/signature-field.svg": Bo,
|
|
263
|
+
"/src/assets/icons/signer.svg": Do,
|
|
264
|
+
"/src/assets/icons/slideout.svg": Mo,
|
|
265
|
+
"/src/assets/icons/sms.svg": qo,
|
|
266
|
+
"/src/assets/icons/sort-asc.svg": Go,
|
|
267
|
+
"/src/assets/icons/sort-desc.svg": Vo,
|
|
268
|
+
"/src/assets/icons/sort.svg": zo,
|
|
269
|
+
"/src/assets/icons/space.svg": Ho,
|
|
270
|
+
"/src/assets/icons/stamp-field.svg": Jo,
|
|
271
|
+
"/src/assets/icons/stop.svg": Ko,
|
|
272
|
+
"/src/assets/icons/success-check.svg": Qo,
|
|
273
|
+
"/src/assets/icons/tag.svg": Uo,
|
|
274
|
+
"/src/assets/icons/template.svg": Wo,
|
|
275
|
+
"/src/assets/icons/text-field.svg": Xo,
|
|
276
|
+
"/src/assets/icons/tick.svg": Yo,
|
|
277
|
+
"/src/assets/icons/title-field.svg": Zo,
|
|
278
|
+
"/src/assets/icons/upload-csv.svg": s_,
|
|
279
|
+
"/src/assets/icons/upload.svg": o_,
|
|
280
|
+
"/src/assets/icons/views-outline.svg": __,
|
|
281
|
+
"/src/assets/icons/views.svg": t_,
|
|
282
|
+
"/src/assets/icons/warning.svg": i_,
|
|
283
|
+
"/src/assets/icons/webinar-widget.svg": r_,
|
|
284
|
+
"/src/assets/icons/white-close.svg": e_,
|
|
285
|
+
"/src/assets/icons/widget-demo-image.svg": c_,
|
|
286
|
+
"/src/assets/icons/zoom-in.svg": m_,
|
|
287
|
+
"/src/assets/icons/zoom-out.svg": a_
|
|
286
288
|
}), l = (s, t, o, _) => {
|
|
287
289
|
t && s.hasAttribute("fill") && s.getAttribute("fill") !== "none" && s.setAttribute("fill", t), o && s.hasAttribute("stroke") && s.setAttribute("stroke", o), _ && s.hasAttribute("width") && s.setAttribute("width", _.toString()), _ && s.hasAttribute("height") && s.setAttribute("height", _.toString()), Array.from(s.children).forEach((e) => {
|
|
288
290
|
l(e, t, o);
|
|
289
291
|
});
|
|
290
|
-
},
|
|
292
|
+
}, f_ = /* @__PURE__ */ m.forwardRef((s, t) => {
|
|
291
293
|
const {
|
|
292
294
|
name: o = "",
|
|
293
295
|
id: _,
|
|
@@ -315,7 +317,7 @@ const n_ = /* @__PURE__ */ Object.assign({
|
|
|
315
317
|
225: "rotate-[225deg]",
|
|
316
318
|
270: "-rotate-90",
|
|
317
319
|
315: "-rotate-45"
|
|
318
|
-
}, v =
|
|
320
|
+
}, v = l_[`/src/assets/icons/${o}.svg`];
|
|
319
321
|
if (!v)
|
|
320
322
|
return console.error(`Icon "${o}" not found in ICON_MAP.`), null;
|
|
321
323
|
const i = typeof g == "function", C = f || o, c = s.tabIndex !== void 0, {
|
|
@@ -323,13 +325,13 @@ const n_ = /* @__PURE__ */ Object.assign({
|
|
|
323
325
|
role: $,
|
|
324
326
|
tabIndex: E,
|
|
325
327
|
isDisabled: S
|
|
326
|
-
} =
|
|
328
|
+
} = n_({
|
|
327
329
|
isNative: !1,
|
|
328
330
|
onClick: i ? (r) => g?.(r) : void 0,
|
|
329
331
|
disabled: i ? w : !1,
|
|
330
332
|
tabIndex: s.tabIndex ?? 0,
|
|
331
333
|
stopPropagation: y
|
|
332
|
-
}), n =
|
|
334
|
+
}), n = v_({
|
|
333
335
|
ariaLabel: C,
|
|
334
336
|
ariaLabelledBy: b,
|
|
335
337
|
ariaDescribedBy: p
|
|
@@ -353,7 +355,7 @@ const n_ = /* @__PURE__ */ Object.assign({
|
|
|
353
355
|
...n
|
|
354
356
|
}, {
|
|
355
357
|
"data-automation-id": s?.automationId
|
|
356
|
-
}), /* @__PURE__ */ m.createElement(
|
|
358
|
+
}), /* @__PURE__ */ m.createElement(g_, {
|
|
357
359
|
src: v,
|
|
358
360
|
wrapper: "span",
|
|
359
361
|
beforeInjection: (r) => {
|
|
@@ -361,8 +363,8 @@ const n_ = /* @__PURE__ */ Object.assign({
|
|
|
361
363
|
}
|
|
362
364
|
}));
|
|
363
365
|
});
|
|
364
|
-
|
|
366
|
+
f_.displayName = "Icon";
|
|
365
367
|
export {
|
|
366
|
-
|
|
368
|
+
f_ as Icon
|
|
367
369
|
};
|
|
368
370
|
//# sourceMappingURL=index6.js.map
|
package/dist/index6.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index6.js","sources":["../src/components/Icon/index.tsx"],"sourcesContent":["// TODO: `applyAttributesToElement` recursion drops `size` for nested elements (pre-existing).\nimport React from 'react';\nimport { ReactSVG } from 'react-svg';\nimport { getA11yNameAttributes, useAccessiblePress } from '../../utils/a11y';\n\n// Dynamically import icons using Vite's asset handling\nconst ICON_MAP: Record<string, string> = (import.meta as any).glob('/src/assets/icons/*.svg', {\n eager: true,\n query: '?url',\n import: 'default'\n});\n\nexport type RotationTypes = '0' | '45' | '90' | '135' | '180' | '225' | '270' | '315';\n\nexport type IconProps = {\n name: string;\n id?: string;\n className?: string;\n onClick?: (e?: React.MouseEvent<HTMLElement>) => void;\n /**\n * Accessible name when Icon is interactive (onClick is provided).\n * If omitted, we fall back to `name` and warn in development.\n */\n ariaLabel?: string;\n /**\n * ID(s) of visible element(s) that label this Icon when interactive.\n * Preferred over ariaLabel when a visible label exists (keeps SR and visual text in sync).\n */\n ariaLabelledBy?: string;\n /**\n * ID(s) of element(s) that describe this Icon when interactive (additional context).\n */\n ariaDescribedBy?: string;\n /**\n * Toggle state when Icon is used as a button (e.g., show/hide sidebar).\n * Only applies when `onClick` is provided (interactive icon).\n */\n ariaPressed?: boolean;\n /**\n * Expansion state when Icon controls a collapsible region/panel.\n * Only applies when `onClick` is provided (interactive icon).\n */\n ariaExpanded?: boolean;\n /**\n * ID of the element controlled by this Icon (for aria-controls).\n * Only applies when `onClick` is provided (interactive icon).\n */\n ariaControls?: string;\n fill?: string;\n stroke?: string;\n rotation?: RotationTypes;\n size?: number;\n shouldStopPropagation?: boolean;\n automationId?: string;\n /**\n * Disables the icon interaction while keeping it visible to AT with aria-disabled=\"true\".\n * Only applies when `onClick` is provided (interactive icon).\n */\n disabled?: boolean;\n /**\n * Native HTML title attribute — renders as a browser tooltip on hover.\n * For mouse users only; does not replace ariaLabel for screen readers.\n */\n htmlTitle?: string;\n /**\n * Override tab order. Pass tabIndex={0} to make a non-interactive or disabled icon\n * focusable (e.g. for tooltip access). Overrides the hook's default when provided.\n */\n tabIndex?: number;\n};\n\nconst applyAttributesToElement = (element: Element, fill?: string, stroke?: string, size?: number) => {\n // Only modify existing attributes\n if (fill && element.hasAttribute('fill')) {\n const currentFill = element.getAttribute('fill');\n // Only update if the current fill is not \"none\"\n if (currentFill !== 'none') {\n element.setAttribute('fill', fill);\n }\n }\n\n if (stroke && element.hasAttribute('stroke')) {\n element.setAttribute('stroke', stroke);\n }\n\n if (size && element.hasAttribute('width')) {\n element.setAttribute('width', size.toString());\n }\n\n if (size && element.hasAttribute('height')) {\n element.setAttribute('height', size.toString());\n }\n\n // Recursively apply to all child elements\n Array.from(element.children).forEach((child) => {\n applyAttributesToElement(child, fill, stroke);\n });\n};\n\nexport const Icon = React.forwardRef<HTMLDivElement, IconProps>((props, ref) => {\n const {\n name = '',\n id,\n className = '',\n onClick,\n ariaLabel,\n ariaLabelledBy,\n ariaDescribedBy,\n ariaPressed,\n ariaExpanded,\n ariaControls,\n fill,\n stroke,\n rotation = '0',\n size,\n shouldStopPropagation = false,\n disabled = false,\n htmlTitle\n } = props;\n const iconRotationClasses = {\n '0': 'rotate-0',\n '45': 'rotate-45',\n '90': 'rotate-90',\n '135': 'rotate-[135deg]',\n '180': 'rotate-180',\n '225': 'rotate-[225deg]',\n '270': '-rotate-90',\n '315': '-rotate-45'\n };\n const src = ICON_MAP[`/src/assets/icons/${name}.svg`];\n\n if (!src) {\n console.error(`Icon \"${name}\" not found in ICON_MAP.`);\n return null;\n }\n\n const isInteractive = typeof onClick === 'function';\n const computedAriaLabel = ariaLabel || name;\n\n if (isInteractive && !ariaLabel && (import.meta as { env?: { DEV?: boolean } }).env?.DEV) {\n // eslint-disable-next-line no-console\n console.warn(\n `[se-design/Icon] Missing ariaLabel for clickable icon \"${name}\". ` +\n `Falling back to aria-label=\"${computedAriaLabel}\".`\n );\n }\n\n const hasTabIndex = props.tabIndex !== undefined;\n const { pressProps, role, tabIndex: hookTabIndex, isDisabled } = useAccessiblePress({\n isNative: false,\n onClick: isInteractive ? (e: React.MouseEvent<HTMLElement>) => onClick?.(e) : undefined,\n disabled: isInteractive ? disabled : false,\n tabIndex: props.tabIndex ?? 0,\n stopPropagation: shouldStopPropagation\n });\n\n // Compute accessible name/description props with correct precedence (aligns with Button/Link).\n const accessibleNameProps = getA11yNameAttributes({\n ariaLabel: computedAriaLabel,\n ariaLabelledBy,\n ariaDescribedBy\n });\n\n const finalTabIndex = hasTabIndex ? props.tabIndex : hookTabIndex;\n const interactiveProps = isInteractive\n ? {\n ...pressProps,\n role,\n tabIndex: finalTabIndex,\n ...accessibleNameProps,\n 'aria-pressed': ariaPressed,\n 'aria-expanded': ariaExpanded,\n 'aria-controls': ariaControls || undefined\n }\n : undefined;\n\n return (\n <div\n ref={ref}\n id={id}\n className={`se-design-svg-wrapper transition-transform duration-250 ease-linear rounded-[3px] ${\n isInteractive ? `${isDisabled ? 'opacity-50 cursor-default' : 'cursor-pointer focus-outline'}` : ''\n } ${className} ${iconRotationClasses[rotation]}`}\n aria-hidden={!isInteractive && !hasTabIndex ? 'true' : undefined}\n title={htmlTitle}\n {...interactiveProps}\n {...(!isInteractive && hasTabIndex && { tabIndex: props.tabIndex, ...accessibleNameProps })}\n data-automation-id={props?.automationId}\n >\n <ReactSVG\n src={src}\n wrapper=\"span\"\n beforeInjection={(svg) => {\n svg.setAttribute('aria-hidden', 'true');\n svg.setAttribute('role', 'none');\n applyAttributesToElement(svg, fill, stroke, size);\n }}\n />\n </div>\n );\n});\n\nIcon.displayName = 'Icon';\n"],"names":["ICON_MAP","import","applyAttributesToElement","element","fill","stroke","size","hasAttribute","getAttribute","setAttribute","toString","Array","from","children","forEach","child","Icon","React","forwardRef","props","ref","name","id","className","onClick","ariaLabel","ariaLabelledBy","ariaDescribedBy","ariaPressed","ariaExpanded","ariaControls","rotation","shouldStopPropagation","disabled","htmlTitle","iconRotationClasses","src","console","error","isInteractive","computedAriaLabel","hasTabIndex","tabIndex","undefined","pressProps","role","hookTabIndex","isDisabled","useAccessiblePress","isNative","e","stopPropagation","accessibleNameProps","getA11yNameAttributes","finalTabIndex","interactiveProps","createElement","_extends","title","automationId","ReactSVG","wrapper","beforeInjection","svg","displayName"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,MAAMA,KAAoCC,uBAAAA,OAAAA;AAAAA,EAAAA,gCAAAA;AAAAA,EAAAA,mCAAAA;AAAAA,EAAAA,mCAAAA;AAAAA,EAAAA,kCAAAA;AAAAA,EAAAA,4BAAAA;AAAAA,EAAAA,mCAAAA;AAAAA,EAAAA,oCAAAA;AAAAA,EAAAA,oCAAAA;AAAAA,EAAAA,8BAAAA;AAAAA,EAAAA,yCAAAA;AAAAA,EAAAA,2CAAAA;AAAAA,EAAAA,8BAAAA;AAAAA,EAAAA,sCAAAA;AAAAA,EAAAA,8BAAAA;AAAAA,EAAAA,iDAAAA;AAAAA,EAAAA,gDAAAA;AAAAA,EAAAA,2CAAAA;AAAAA,EAAAA,wCAAAA;AAAAA,EAAAA,uCAAAA;AAAAA,EAAAA,6CAAAA;AAAAA,EAAAA,8CAAAA;AAAAA,EAAAA,6CAAAA;AAAAA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xB;AAAAA,EAAAA,GACHqB,GACC,CAAChB,KAAiBE,KAAe;AAAA,IAAEC,UAAUvB,EAAMuB;AAAAA,IAAU,GAAGU;AAAAA,EAAAA,GAAqB;AAAA,IAC1F,sBAAoBjC,GAAOwC;AAAAA,EAAAA,CAAa,GAExC1C,gBAAAA,EAAAuC,cAACI,IAAQ;AAAA,IACPxB,KAAAA;AAAAA,IACAyB,SAAQ;AAAA,IACRC,iBAAkBC,CAAAA,MAAQ;AACxBA,MAAAA,EAAItD,aAAa,eAAe,MAAM,GACtCsD,EAAItD,aAAa,QAAQ,MAAM,GAC/BP,EAAyB6D,GAAK3D,GAAMC,GAAQC,CAAI;AAAA,IAClD;AAAA,EAAA,CACD,CACE;AAET,CAAC;AAEDU,GAAKgD,cAAc;"}
|
|
1
|
+
{"version":3,"file":"index6.js","sources":["../src/components/Icon/index.tsx"],"sourcesContent":["// TODO: `applyAttributesToElement` recursion drops `size` for nested elements (pre-existing).\nimport React from 'react';\nimport { ReactSVG } from 'react-svg';\nimport { getA11yNameAttributes, useAccessiblePress } from '../../utils/a11y';\n\n// Dynamically import icons using Vite's asset handling\nconst ICON_MAP: Record<string, string> = (import.meta as any).glob('/src/assets/icons/*.svg', {\n eager: true,\n query: '?url',\n import: 'default'\n});\n\nexport type RotationTypes = '0' | '45' | '90' | '135' | '180' | '225' | '270' | '315';\n\nexport type IconProps = {\n name: string;\n id?: string;\n className?: string;\n onClick?: (e?: React.MouseEvent<HTMLElement>) => void;\n /**\n * Accessible name when Icon is interactive (onClick is provided).\n * If omitted, we fall back to `name` and warn in development.\n */\n ariaLabel?: string;\n /**\n * ID(s) of visible element(s) that label this Icon when interactive.\n * Preferred over ariaLabel when a visible label exists (keeps SR and visual text in sync).\n */\n ariaLabelledBy?: string;\n /**\n * ID(s) of element(s) that describe this Icon when interactive (additional context).\n */\n ariaDescribedBy?: string;\n /**\n * Toggle state when Icon is used as a button (e.g., show/hide sidebar).\n * Only applies when `onClick` is provided (interactive icon).\n */\n ariaPressed?: boolean;\n /**\n * Expansion state when Icon controls a collapsible region/panel.\n * Only applies when `onClick` is provided (interactive icon).\n */\n ariaExpanded?: boolean;\n /**\n * ID of the element controlled by this Icon (for aria-controls).\n * Only applies when `onClick` is provided (interactive icon).\n */\n ariaControls?: string;\n fill?: string;\n stroke?: string;\n rotation?: RotationTypes;\n size?: number;\n shouldStopPropagation?: boolean;\n automationId?: string;\n /**\n * Disables the icon interaction while keeping it visible to AT with aria-disabled=\"true\".\n * Only applies when `onClick` is provided (interactive icon).\n */\n disabled?: boolean;\n /**\n * Native HTML title attribute — renders as a browser tooltip on hover.\n * For mouse users only; does not replace ariaLabel for screen readers.\n */\n htmlTitle?: string;\n /**\n * Override tab order. Pass tabIndex={0} to make a non-interactive or disabled icon\n * focusable (e.g. for tooltip access). Overrides the hook's default when provided.\n */\n tabIndex?: number;\n};\n\nconst applyAttributesToElement = (element: Element, fill?: string, stroke?: string, size?: number) => {\n // Only modify existing attributes\n if (fill && element.hasAttribute('fill')) {\n const currentFill = element.getAttribute('fill');\n // Only update if the current fill is not \"none\"\n if (currentFill !== 'none') {\n element.setAttribute('fill', fill);\n }\n }\n\n if (stroke && element.hasAttribute('stroke')) {\n element.setAttribute('stroke', stroke);\n }\n\n if (size && element.hasAttribute('width')) {\n element.setAttribute('width', size.toString());\n }\n\n if (size && element.hasAttribute('height')) {\n element.setAttribute('height', size.toString());\n }\n\n // Recursively apply to all child elements\n Array.from(element.children).forEach((child) => {\n applyAttributesToElement(child, fill, stroke);\n });\n};\n\nexport const Icon = React.forwardRef<HTMLDivElement, IconProps>((props, ref) => {\n const {\n name = '',\n id,\n className = '',\n onClick,\n ariaLabel,\n ariaLabelledBy,\n ariaDescribedBy,\n ariaPressed,\n ariaExpanded,\n ariaControls,\n fill,\n stroke,\n rotation = '0',\n size,\n shouldStopPropagation = false,\n disabled = false,\n htmlTitle\n } = props;\n const iconRotationClasses = {\n '0': 'rotate-0',\n '45': 'rotate-45',\n '90': 'rotate-90',\n '135': 'rotate-[135deg]',\n '180': 'rotate-180',\n '225': 'rotate-[225deg]',\n '270': '-rotate-90',\n '315': '-rotate-45'\n };\n const src = ICON_MAP[`/src/assets/icons/${name}.svg`];\n\n if (!src) {\n console.error(`Icon \"${name}\" not found in ICON_MAP.`);\n return null;\n }\n\n const isInteractive = typeof onClick === 'function';\n const computedAriaLabel = ariaLabel || name;\n\n if (isInteractive && !ariaLabel && (import.meta as { env?: { DEV?: boolean } }).env?.DEV) {\n // eslint-disable-next-line no-console\n console.warn(\n `[se-design/Icon] Missing ariaLabel for clickable icon \"${name}\". ` +\n `Falling back to aria-label=\"${computedAriaLabel}\".`\n );\n }\n\n const hasTabIndex = props.tabIndex !== undefined;\n const { pressProps, role, tabIndex: hookTabIndex, isDisabled } = useAccessiblePress({\n isNative: false,\n onClick: isInteractive ? (e: React.MouseEvent<HTMLElement>) => onClick?.(e) : undefined,\n disabled: isInteractive ? disabled : false,\n tabIndex: props.tabIndex ?? 0,\n stopPropagation: shouldStopPropagation\n });\n\n // Compute accessible name/description props with correct precedence (aligns with Button/Link).\n const accessibleNameProps = getA11yNameAttributes({\n ariaLabel: computedAriaLabel,\n ariaLabelledBy,\n ariaDescribedBy\n });\n\n const finalTabIndex = hasTabIndex ? props.tabIndex : hookTabIndex;\n const interactiveProps = isInteractive\n ? {\n ...pressProps,\n role,\n tabIndex: finalTabIndex,\n ...accessibleNameProps,\n 'aria-pressed': ariaPressed,\n 'aria-expanded': ariaExpanded,\n 'aria-controls': ariaControls || undefined\n }\n : undefined;\n\n return (\n <div\n ref={ref}\n id={id}\n className={`se-design-svg-wrapper transition-transform duration-250 ease-linear rounded-[3px] ${\n isInteractive ? `${isDisabled ? 'opacity-50 cursor-default' : 'cursor-pointer focus-outline'}` : ''\n } ${className} ${iconRotationClasses[rotation]}`}\n aria-hidden={!isInteractive && !hasTabIndex ? 'true' : undefined}\n title={htmlTitle}\n {...interactiveProps}\n {...(!isInteractive && hasTabIndex && { tabIndex: props.tabIndex, ...accessibleNameProps })}\n data-automation-id={props?.automationId}\n >\n <ReactSVG\n src={src}\n wrapper=\"span\"\n beforeInjection={(svg) => {\n svg.setAttribute('aria-hidden', 'true');\n svg.setAttribute('role', 'none');\n applyAttributesToElement(svg, fill, stroke, size);\n }}\n />\n </div>\n );\n});\n\nIcon.displayName = 'Icon';\n"],"names":["ICON_MAP","import","applyAttributesToElement","element","fill","stroke","size","hasAttribute","getAttribute","setAttribute","toString","Array","from","children","forEach","child","Icon","React","forwardRef","props","ref","name","id","className","onClick","ariaLabel","ariaLabelledBy","ariaDescribedBy","ariaPressed","ariaExpanded","ariaControls","rotation","shouldStopPropagation","disabled","htmlTitle","iconRotationClasses","src","console","error","isInteractive","computedAriaLabel","hasTabIndex","tabIndex","undefined","pressProps","role","hookTabIndex","isDisabled","useAccessiblePress","isNative","e","stopPropagation","accessibleNameProps","getA11yNameAttributes","finalTabIndex","interactiveProps","createElement","_extends","title","automationId","ReactSVG","wrapper","beforeInjection","svg","displayName"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,MAAMA,KAAoCC,uBAAAA,OAAAA;AAAAA,EAAAA,gCAAAA;AAAAA,EAAAA,mCAAAA;AAAAA,EAAAA,mCAAAA;AAAAA,EAAAA,kCAAAA;AAAAA,EAAAA,4BAAAA;AAAAA,EAAAA,mCAAAA;AAAAA,EAAAA,oCAAAA;AAAAA,EAAAA,oCAAAA;AAAAA,EAAAA,8BAAAA;AAAAA,EAAAA,yCAAAA;AAAAA,EAAAA,2CAAAA;AAAAA,EAAAA,8BAAAA;AAAAA,EAAAA,sCAAAA;AAAAA,EAAAA,8BAAAA;AAAAA,EAAAA,iDAAAA;AAAAA,EAAAA,gDAAAA;AAAAA,EAAAA,2CAAAA;AAA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8B,8BAA8B,KAAK,EAAE,IACjGxB,CAAS,IAAIY,EAAoBJ,CAAQ,CAAC;AAAA,IAC9C,eAAa,CAACQ,KAAiB,CAACE,IAAc,SAASE;AAAAA,IACvDe,OAAOxB;AAAAA,EAAAA,GACHqB,GACC,CAAChB,KAAiBE,KAAe;AAAA,IAAEC,UAAUvB,EAAMuB;AAAAA,IAAU,GAAGU;AAAAA,EAAAA,GAAqB;AAAA,IAC1F,sBAAoBjC,GAAOwC;AAAAA,EAAAA,CAAa,GAExC1C,gBAAAA,EAAAuC,cAACI,IAAQ;AAAA,IACPxB,KAAAA;AAAAA,IACAyB,SAAQ;AAAA,IACRC,iBAAkBC,CAAAA,MAAQ;AACxBA,MAAAA,EAAItD,aAAa,eAAe,MAAM,GACtCsD,EAAItD,aAAa,QAAQ,MAAM,GAC/BP,EAAyB6D,GAAK3D,GAAMC,GAAQC,CAAI;AAAA,IAClD;AAAA,EAAA,CACD,CACE;AAET,CAAC;AAEDU,GAAKgD,cAAc;"}
|
package/dist/index63.js
CHANGED
package/dist/index67.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import n, { useState as u, useCallback as y, useEffect as P } from "react";
|
|
2
2
|
import { Popover as I } from "./index19.js";
|
|
3
|
-
import { useStableId as k } from "./
|
|
3
|
+
import { useStableId as k } from "./index228.js";
|
|
4
4
|
/* empty css */
|
|
5
5
|
function p() {
|
|
6
6
|
return p = Object.assign ? Object.assign.bind() : function(r) {
|
package/dist/index69.js
CHANGED
|
@@ -2,7 +2,7 @@ import F, { useState as ot, useRef as X, useEffect as $ } from "react";
|
|
|
2
2
|
import { createPortal as nt } from "react-dom";
|
|
3
3
|
import { Icon as it } from "./index6.js";
|
|
4
4
|
import { Button as rt } from "./index4.js";
|
|
5
|
-
import { debounce as lt } from "./
|
|
5
|
+
import { debounce as lt } from "./index247.js";
|
|
6
6
|
const q = 500, S = 50, U = 150, st = {
|
|
7
7
|
"top-left": {
|
|
8
8
|
rotate: "315",
|
package/dist/index7.js
CHANGED
package/dist/index71.js
CHANGED
|
@@ -4,7 +4,7 @@ import { Badge as j } from "./index10.js";
|
|
|
4
4
|
import { Icon as q } from "./index6.js";
|
|
5
5
|
import { Link as N } from "./index70.js";
|
|
6
6
|
import { CustomModal as G } from "./index13.js";
|
|
7
|
-
import { useStableId as J } from "./
|
|
7
|
+
import { useStableId as J } from "./index228.js";
|
|
8
8
|
/* empty css */
|
|
9
9
|
const K = {
|
|
10
10
|
lg: {
|
package/dist/index85.js
CHANGED
package/dist/index87.js
CHANGED
package/dist/index88.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { useEffect as s } from "react";
|
|
2
|
+
const u = {
|
|
3
|
+
block: "nearest"
|
|
4
|
+
};
|
|
5
|
+
function m({
|
|
6
|
+
containerRef: t,
|
|
7
|
+
activeIndex: o,
|
|
8
|
+
itemSelector: r = '[role="option"]',
|
|
9
|
+
enabled: c = !0,
|
|
10
|
+
scrollOptions: e = u
|
|
11
|
+
}) {
|
|
12
|
+
s(() => {
|
|
13
|
+
if (!c || o < 0 || !t?.current)
|
|
14
|
+
return;
|
|
15
|
+
const n = t.current.querySelectorAll(r)[o];
|
|
16
|
+
n && n.scrollIntoView(e);
|
|
17
|
+
}, [o, t, r, c, e]);
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
m as useScrollActiveIntoView
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=index88.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index88.js","sources":["../src/utils/a11y/useScrollActiveIntoView.ts"],"sourcesContent":["import { useEffect } from 'react';\nimport type { RefObject } from 'react';\n\nconst DEFAULT_SCROLL_OPTIONS: ScrollIntoViewOptions = { block: 'nearest' };\n\nexport interface UseScrollActiveIntoViewOptions {\n /**\n * Ref to the container element\n */\n containerRef?: RefObject<HTMLElement | null>;\n \n /**\n * Index of the currently active/highlighted item (-1 if none)\n */\n activeIndex: number;\n \n /**\n * CSS selector for item elements\n * Default: '[role=\"option\"]'\n */\n itemSelector?: string;\n \n /**\n * Whether scrolling is enabled\n * Default: true\n */\n enabled?: boolean;\n \n /**\n * ScrollIntoView options\n * Default: { block: 'nearest' }\n */\n scrollOptions?: ScrollIntoViewOptions;\n}\n\n/**\n * Hook to automatically scroll the active item into view.\n * \n * Useful for aria-activedescendant patterns where DOM focus stays\n * on the container (e.g., input field) but we need to visually show\n * which descendant option is logically active.\n * \n * Common use cases:\n * - Combobox dropdown options\n * - Menu items with virtual focus\n * - Grid cells with keyboard navigation\n * - Tree view items\n * - Listbox options\n * \n * @example\n * ```tsx\n * const [highlightedIndex, setHighlightedIndex] = useState(-1);\n * const listboxRef = useRef<HTMLDivElement>(null);\n * \n * useScrollActiveIntoView({\n * containerRef: listboxRef,\n * activeIndex: highlightedIndex,\n * itemSelector: '[role=\"option\"]'\n * });\n * \n * // Now when highlightedIndex changes, the item scrolls into view\n * ```\n * \n * @example Custom scroll behavior\n * ```tsx\n * useScrollActiveIntoView({\n * containerRef: menuRef,\n * activeIndex: activeMenuIndex,\n * itemSelector: '[role=\"menuitem\"]',\n * scrollOptions: { block: 'center', behavior: 'smooth' }\n * });\n * ```\n */\nexport function useScrollActiveIntoView({\n containerRef,\n activeIndex,\n itemSelector = '[role=\"option\"]',\n enabled = true,\n scrollOptions = DEFAULT_SCROLL_OPTIONS\n}: UseScrollActiveIntoViewOptions): void {\n useEffect(() => {\n // Early returns for disabled states\n if (!enabled || activeIndex < 0 || !containerRef?.current) {\n return;\n }\n \n const container = containerRef.current;\n const items = container.querySelectorAll(itemSelector);\n const activeItem = items[activeIndex] as HTMLElement;\n \n if (activeItem) {\n activeItem.scrollIntoView(scrollOptions);\n }\n }, [activeIndex, containerRef, itemSelector, enabled, scrollOptions]);\n}\n"],"names":["useEffect","DEFAULT_SCROLL_OPTIONS","block","useScrollActiveIntoView","containerRef","activeIndex","itemSelector","enabled","scrollOptions","current","activeItem","querySelectorAll","scrollIntoView"],"mappings":"AAGA,SAAA,aAAAA,SAAA;AAAA,MAAMC,IAAgD;AAAA,EAAEC,OAAO;AAAU;AAsElE,SAASC,EAAwB;AAAA,EACtCC,cAAAA;AAAAA,EACAC,aAAAA;AAAAA,EACAC,cAAAA,IAAe;AAAA,EACfC,SAAAA,IAAU;AAAA,EACVC,eAAAA,IAAgBP;AACc,GAAS;AACvCD,EAAAA,EAAU,MAAM;AAEd,QAAI,CAACO,KAAWF,IAAc,KAAK,CAACD,GAAcK;AAChD;AAKF,UAAMC,IAFYN,EAAaK,QACPE,iBAAiBL,CAAY,EAC5BD,CAAW;AAEpC,IAAIK,KACFA,EAAWE,eAAeJ,CAAa;AAAA,EAE3C,GAAG,CAACH,GAAaD,GAAcE,GAAcC,GAASC,CAAa,CAAC;AACtE;"}
|
package/dist/index9.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import o from "react";
|
|
2
|
-
import { useStableId as A } from "./
|
|
2
|
+
import { useStableId as A } from "./index228.js";
|
|
3
3
|
import { getA11yNameAttributes as O } from "./index87.js";
|
|
4
4
|
import { useAccessiblePress as C } from "./index73.js";
|
|
5
5
|
import "./index78.js";
|