@tesouro/embedded-components-react 0.7.57 → 0.7.59
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.css +0 -28
- package/dist/lib/monite-sdk.d.ts +1411 -3171
- package/dist/lib/monite-sdk.js +53 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +58 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index100.js +51 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index102.js +150 -103
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +1224 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index104.js +174 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index105.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index106.js +15 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index107.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +48 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index110.js +3 -153
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +1 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index112.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +10 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index114.js +56 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +41 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index116.js +71 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +39 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +12 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +10 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index12.js +50 -1222
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +66 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +168 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +6 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +2 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +64 -167
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +0 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +78 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +1 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +35 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +0 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +2 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index130.js +57 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +40 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +564 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +1 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +148 -557
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +27 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +0 -159
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index14.js +18 -173
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +10 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +16 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +19 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +27 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +1 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +23 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +17 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +71 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index15.js +162 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +24 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +6 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +41 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +49 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +60 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +1 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +27 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +39 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +80 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +3 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index16.js +3 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +2 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +37 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +81 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +113 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +4 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +10 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +10 -123
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +18 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +75 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index17.js +59 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +125 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +1 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +13 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +50 -123
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +17 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +1 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +64 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +119 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +24 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index18.js +20 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +5 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +34 -119
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +7 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +56 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +73 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +26 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +1 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +57 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +18 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +22 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index19.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +182 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +1 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +29 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +3 -185
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +35 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +16 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +17 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +5 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index20.js +8 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +15 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +21 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +20 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +5 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +14 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +17 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +9 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +23 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +10 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index21.js +15 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +8 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +23 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +14 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +81 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +14 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +97 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +42 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +30 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +1 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +101 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index22.js +89 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +34 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +173 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +11 -197
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +4 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +68 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +24 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +209 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +89 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +20 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +1 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index23.js +23 -164
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +17 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +158 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +95 -352
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +46 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +4 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +20 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +73 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +16 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +20 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +6 -182
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index24.js +6 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +9 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +13 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +131 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +5 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +5 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +215 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +34 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +14 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +33 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index25.js +12 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +22 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +72 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +184 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +14 -160
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +206 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +100 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +63 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +54 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +91 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +40 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index26.js +7 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +76 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +85 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +12 -305
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +26 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +17 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +22 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +32 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index27.js +10 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +2 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +23 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +15 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +28 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +29 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +2 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index28.js +5 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index29.js +156 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index30.js +1 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index31.js +9 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index32.js +10 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index33.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index34.js +827 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index35.js +21 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index36.js +71 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index37.js +5 -155
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index38.js +9 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +6 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index40.js +6 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index41.js +14 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index42.js +14 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +42 -929
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +23 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +5 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +32 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index49.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +9 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index51.js +5 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +12 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +1 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index56.js +4 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index57.js +6 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index58.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index59.js +19 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index60.js +30 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index61.js +12 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index62.js +69 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index63.js +52 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index65.js +19 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index66.js +47 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index67.js +13 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index68.js +15 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index69.js +1 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index70.js +46 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index71.js +37 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index72.js +63 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index73.js +36 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index74.js +37 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index75.js +22 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index76.js +12 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index77.js +17 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index78.js +53 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index79.js +12 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index80.js +24 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index81.js +69 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index82.js +78 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index83.js +1 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index84.js +8 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index85.js +26 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js +2 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +19 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +3 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +2 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index90.js +55 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index91.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index92.js +37 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index93.js +1 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index94.js +104 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index95.js +1 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index96.js +54 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index97.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index98.js +52 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index99.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +0 -189
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +0 -134
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +0 -211
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +0 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +0 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +0 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +0 -242
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +0 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +0 -142
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +0 -167
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +0 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +0 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +0 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +0 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +0 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +0 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +0 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +0 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +0 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +0 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +0 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +0 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +0 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +0 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +0 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +0 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +0 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +0 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +0 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +0 -106
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +0 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +0 -173
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +0 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +0 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +0 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +0 -212
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +0 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +0 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +0 -160
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +0 -104
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +0 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +0 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +0 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +0 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +0 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +0 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +0 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +0 -133
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +0 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +0 -222
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +0 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +0 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +0 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +0 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +0 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +0 -184
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +0 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +0 -206
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +0 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +0 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +0 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +0 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +0 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +0 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +0 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +0 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +0 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +0 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +0 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +0 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +0 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +0 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +0 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +0 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +0 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +0 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +0 -97
|
@@ -1,21 +1,92 @@
|
|
|
1
|
-
import { compileMessage as e } from "@lingui/message-utils/compileMessage";
|
|
2
|
-
import { generateMessageId as t } from "@lingui/message-utils/generateMessageId";
|
|
3
1
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index22.js
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
var e = (e) => ({
|
|
3
|
+
borderRadius: e.borderRadius ?? 6,
|
|
4
|
+
buttonBorderRadius: 8,
|
|
5
|
+
spacing: e.spacing ?? 8,
|
|
6
|
+
colors: {
|
|
7
|
+
primary: e.colors?.primary || "#4338CA",
|
|
8
|
+
primaryForeground: e.colors?.primaryForeground || "#E0E7FF",
|
|
9
|
+
secondary: e.colors?.secondary || "#F4F4F5",
|
|
10
|
+
neutral: e.colors?.neutral || "#71717A",
|
|
11
|
+
info: e.colors?.info || "#1447E6",
|
|
12
|
+
success: e.colors?.success || "#15803D",
|
|
13
|
+
warning: e.colors?.warning || "#B45309",
|
|
14
|
+
error: e.colors?.error || "#DC2626",
|
|
15
|
+
background: e.colors?.background || "#FFFFFF",
|
|
16
|
+
text: e.colors?.text || "#09090B",
|
|
17
|
+
rowBorder: e.colors?.rowBorder || "#E4E4E7"
|
|
18
|
+
},
|
|
19
|
+
typography: {
|
|
20
|
+
fontFamily: e?.typography?.fontFamily || "\"Inter\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\", \"Cantarell\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif",
|
|
21
|
+
fontSize: e?.typography?.fontSize ?? 16,
|
|
22
|
+
h1: {
|
|
23
|
+
fontSize: e.typography?.h1?.fontSize ?? 48,
|
|
24
|
+
fontWeight: e.typography?.h1?.fontWeight ?? 600,
|
|
25
|
+
lineHeight: e.typography?.h1?.lineHeight ?? "68px",
|
|
26
|
+
textTransform: e.typography?.h1?.textTransform ?? "none"
|
|
27
|
+
},
|
|
28
|
+
h2: {
|
|
29
|
+
fontSize: e.typography?.h2?.fontSize ?? 34,
|
|
30
|
+
fontWeight: e.typography?.h2?.fontWeight ?? 640,
|
|
31
|
+
lineHeight: e.typography?.h2?.lineHeight ?? "40px",
|
|
32
|
+
textTransform: e.typography?.h2?.textTransform ?? "none"
|
|
33
|
+
},
|
|
34
|
+
h3: {
|
|
35
|
+
fontSize: e.typography?.h3?.fontSize ?? 24,
|
|
36
|
+
fontWeight: e.typography?.h3?.fontWeight ?? 600,
|
|
37
|
+
lineHeight: e.typography?.h3?.lineHeight ?? "32px",
|
|
38
|
+
textTransform: e.typography?.h3?.textTransform ?? "none"
|
|
39
|
+
},
|
|
40
|
+
subtitle1: {
|
|
41
|
+
fontSize: e.typography?.subtitle1?.fontSize ?? 20,
|
|
42
|
+
fontWeight: e.typography?.subtitle1?.fontWeight ?? 600,
|
|
43
|
+
lineHeight: e.typography?.subtitle1?.lineHeight ?? "24px",
|
|
44
|
+
textTransform: e.typography?.subtitle1?.textTransform ?? "none"
|
|
45
|
+
},
|
|
46
|
+
subtitle2: {
|
|
47
|
+
fontSize: e.typography?.subtitle2?.fontSize ?? 18,
|
|
48
|
+
fontWeight: e.typography?.subtitle2?.fontWeight ?? 600,
|
|
49
|
+
lineHeight: e.typography?.subtitle2?.lineHeight ?? "24px",
|
|
50
|
+
textTransform: e.typography?.subtitle2?.textTransform ?? "none"
|
|
51
|
+
},
|
|
52
|
+
body1: {
|
|
53
|
+
fontSize: e.typography?.body1?.fontSize ?? 16,
|
|
54
|
+
fontWeight: e.typography?.body1?.fontWeight ?? 500,
|
|
55
|
+
lineHeight: e.typography?.body1?.lineHeight ?? "24px"
|
|
56
|
+
},
|
|
57
|
+
body2: {
|
|
58
|
+
fontSize: e.typography?.body2?.fontSize ?? 14,
|
|
59
|
+
fontWeight: e.typography?.body2?.fontWeight ?? 400,
|
|
60
|
+
lineHeight: e.typography?.body2?.lineHeight ?? "20px"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
components: {
|
|
64
|
+
invoiceStatusChip: {
|
|
65
|
+
icon: e.components?.invoiceStatusChip?.icon || !1,
|
|
66
|
+
size: e.components?.invoiceStatusChip?.size || "small",
|
|
67
|
+
variant: e.components?.invoiceStatusChip?.variant || "filled"
|
|
68
|
+
},
|
|
69
|
+
approvalRequestStatusChip: {
|
|
70
|
+
icon: e.components?.approvalRequestStatusChip?.icon || !1,
|
|
71
|
+
size: e.components?.approvalRequestStatusChip?.size || "small",
|
|
72
|
+
variant: e.components?.approvalRequestStatusChip?.variant || "filled"
|
|
73
|
+
},
|
|
74
|
+
invoiceRecurrenceStatusChip: {
|
|
75
|
+
icon: e.components?.invoiceRecurrenceStatusChip?.icon || !1,
|
|
76
|
+
size: e.components?.invoiceRecurrenceStatusChip?.size || "small",
|
|
77
|
+
variant: e.components?.invoiceRecurrenceStatusChip?.variant || "filled"
|
|
78
|
+
},
|
|
79
|
+
invoiceRecurrenceIterationStatusChip: {
|
|
80
|
+
icon: e.components?.invoiceRecurrenceIterationStatusChip?.icon || !1,
|
|
81
|
+
size: e.components?.invoiceRecurrenceIterationStatusChip?.size || "small",
|
|
82
|
+
variant: e.components?.invoiceRecurrenceIterationStatusChip?.variant || "filled"
|
|
83
|
+
},
|
|
84
|
+
approvalStatusChip: {
|
|
85
|
+
icon: e.components?.approvalStatusChip?.icon || !1,
|
|
86
|
+
size: e.components?.approvalStatusChip?.size || "small",
|
|
87
|
+
variant: e.components?.approvalStatusChip?.variant || "filled"
|
|
88
|
+
}
|
|
9
89
|
}
|
|
10
|
-
|
|
11
|
-
let t = e(o || a);
|
|
12
|
-
n[i(a, void 0)] = t, n[a] = t;
|
|
13
|
-
} else Array.isArray(o) && (n[a] = o);
|
|
14
|
-
return n;
|
|
15
|
-
}
|
|
16
|
-
var r = (e) => !e || typeof e != "object" || !("msgstr" in e) ? !1 : Object.keys(e).every((e) => e === "msgctxt" || e === "msgstr");
|
|
17
|
-
function i(e, n = "") {
|
|
18
|
-
return t(e, n);
|
|
19
|
-
}
|
|
90
|
+
});
|
|
20
91
|
//#endregion
|
|
21
|
-
export {
|
|
92
|
+
export { e as getTheme };
|
|
@@ -1,66 +1,39 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { Autocomplete as o, CircularProgress as s, FormControl as c, TextField as l, Typography as u } from "@mui/material";
|
|
7
|
-
import { useLingui as d } from "@lingui/react";
|
|
8
|
-
import { createElement as f } from "@emotion/react";
|
|
1
|
+
import { Button as e } from "./index117.js";
|
|
2
|
+
import { Sheet as t, SheetContent as n, SheetDescription as r, SheetFooter as i, SheetHeader as a, SheetTitle as o } from "./index213.js";
|
|
3
|
+
import { ManageMeasureUnitsForm as s } from "./index219.js";
|
|
4
|
+
import { jsx as c, jsxs as l } from "@emotion/react/jsx-runtime";
|
|
5
|
+
import { useLingui as u } from "@lingui/react";
|
|
9
6
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js
|
|
10
|
-
var
|
|
11
|
-
let { i18n:
|
|
12
|
-
return
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
children: /* @__PURE__ */
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
7
|
+
var d = ({ handleClose: d, open: f }) => {
|
|
8
|
+
let { i18n: p } = u();
|
|
9
|
+
return /* @__PURE__ */ c(t, {
|
|
10
|
+
open: f,
|
|
11
|
+
onOpenChange: d,
|
|
12
|
+
children: /* @__PURE__ */ l(n, {
|
|
13
|
+
side: "right",
|
|
14
|
+
className: "ttw:gap-0 ttw:p-0",
|
|
15
|
+
children: [
|
|
16
|
+
/* @__PURE__ */ l(a, {
|
|
17
|
+
className: "ttw:border-b ttw:border-border",
|
|
18
|
+
children: [/* @__PURE__ */ c(o, { children: p._("Manage measure units") }), /* @__PURE__ */ c(r, {
|
|
19
|
+
hidden: !0,
|
|
20
|
+
children: p._("Manage measure units")
|
|
21
|
+
})]
|
|
22
|
+
}),
|
|
23
|
+
/* @__PURE__ */ c("div", {
|
|
24
|
+
className: "ttw:flex-1 ttw:overflow-y-auto ttw:px-6 ttw:py-4",
|
|
25
|
+
children: /* @__PURE__ */ c(s, {})
|
|
26
|
+
}),
|
|
27
|
+
/* @__PURE__ */ c(i, {
|
|
28
|
+
className: "ttw:border-t ttw:border-border ttw:flex-row ttw:justify-end",
|
|
29
|
+
children: /* @__PURE__ */ c(e, {
|
|
30
|
+
onClick: d,
|
|
31
|
+
children: p._("Done")
|
|
32
|
+
})
|
|
33
|
+
})
|
|
34
|
+
]
|
|
21
35
|
})
|
|
22
|
-
}) : /* @__PURE__ */ i(o, {
|
|
23
|
-
options: w,
|
|
24
|
-
value: T,
|
|
25
|
-
onChange: (e, t) => v(t?.id || null),
|
|
26
|
-
getOptionLabel: (e) => e.nominal_code && e.type ? `${e.nominal_code} — ${e.type}` : e.nominal_code || e.type || e.name || "",
|
|
27
|
-
isOptionEqualToValue: (e, t) => e.id === t.id,
|
|
28
|
-
loading: x,
|
|
29
|
-
disabled: g || x,
|
|
30
|
-
slotProps: { popper: { container: C } },
|
|
31
|
-
renderInput: (e) => /* @__PURE__ */ i(l, {
|
|
32
|
-
...e,
|
|
33
|
-
label: y._("GL Code"),
|
|
34
|
-
variant: "standard",
|
|
35
|
-
fullWidth: !0,
|
|
36
|
-
error: m,
|
|
37
|
-
helperText: h,
|
|
38
|
-
placeholder: _,
|
|
39
|
-
InputProps: {
|
|
40
|
-
...e.InputProps,
|
|
41
|
-
endAdornment: /* @__PURE__ */ a(r, { children: [x ? /* @__PURE__ */ i(s, {
|
|
42
|
-
color: "inherit",
|
|
43
|
-
size: 20
|
|
44
|
-
}) : null, e.InputProps.endAdornment] })
|
|
45
|
-
}
|
|
46
|
-
}),
|
|
47
|
-
renderOption: (e, t) => /* @__PURE__ */ f("li", {
|
|
48
|
-
...e,
|
|
49
|
-
key: t.id
|
|
50
|
-
}, /* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i(u, {
|
|
51
|
-
variant: "body2",
|
|
52
|
-
color: "text.secondary",
|
|
53
|
-
component: "div",
|
|
54
|
-
fontWeight: 600,
|
|
55
|
-
children: t.nominal_code && t.type ? `${t.nominal_code} — ${t.type}` : t.nominal_code || t.type
|
|
56
|
-
}), t.subtype && /* @__PURE__ */ i(u, {
|
|
57
|
-
variant: "body2",
|
|
58
|
-
component: "div",
|
|
59
|
-
fontWeight: 400,
|
|
60
|
-
children: t.subtype
|
|
61
|
-
})] })),
|
|
62
|
-
noOptionsText: y._("No GL codes found")
|
|
63
36
|
});
|
|
64
37
|
};
|
|
65
38
|
//#endregion
|
|
66
|
-
export {
|
|
39
|
+
export { d as ManageMeasureUnits };
|
|
@@ -1 +1,173 @@
|
|
|
1
|
-
import "
|
|
1
|
+
import { Scope as e } from "../../shared/data-access/dist/lib/scopes.js";
|
|
2
|
+
import "../../shared/data-access/dist/index.js";
|
|
3
|
+
import { useMoniteContext as t } from "./index36.js";
|
|
4
|
+
import { useCurrencies as n } from "./index66.js";
|
|
5
|
+
import "./index79.js";
|
|
6
|
+
import { Button as r } from "./index117.js";
|
|
7
|
+
import { MoniteScopedProviders as i } from "./index150.js";
|
|
8
|
+
import { useUserPermissions as a } from "./index151.js";
|
|
9
|
+
import { GetNoRowsOverlay as o } from "./index156.js";
|
|
10
|
+
import { AccessRestriction as s } from "./index157.js";
|
|
11
|
+
import "./index160.js";
|
|
12
|
+
import { DataTable as c } from "./index163.js";
|
|
13
|
+
import { hasSelectedText as l } from "./index164.js";
|
|
14
|
+
import { useGetProducts as u } from "./index203.js";
|
|
15
|
+
import "./index207.js";
|
|
16
|
+
import { ProductDeleteModal as d } from "./index208.js";
|
|
17
|
+
import { ProductType as f } from "./index209.js";
|
|
18
|
+
import { FILTER_TYPE_SEARCH as p } from "./index210.js";
|
|
19
|
+
import { Filters as m } from "./index211.js";
|
|
20
|
+
import { MeasureUnit as ee } from "./index212.js";
|
|
21
|
+
import { ManageMeasureUnits as h } from "./index220.js";
|
|
22
|
+
import { useCallback as g, useMemo as _, useState as v } from "react";
|
|
23
|
+
import { ArrowDown as y, ArrowUp as b, ArrowUpDown as x, Plus as S } from "lucide-react";
|
|
24
|
+
import { Fragment as C, jsx as w, jsxs as T } from "@emotion/react/jsx-runtime";
|
|
25
|
+
import { useLingui as E } from "@lingui/react";
|
|
26
|
+
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js
|
|
27
|
+
var D = (e) => /* @__PURE__ */ w(i, { children: /* @__PURE__ */ w(O, { ...e }) }), O = ({ onFilterChanged: i, onSortChanged: D, onRowClick: O, onDeleted: k, openCreateModal: A }) => {
|
|
28
|
+
let { i18n: j } = E(), { componentSettings: M } = t(), { formatCurrencyToDisplay: N } = n(), [P, F] = v(!1), [I, L] = v(void 0), [R, z] = v(M.products.pageSizeOptions[0]), [B, te] = v({}), [V, H] = v(), [U, W] = v({
|
|
29
|
+
open: !1,
|
|
30
|
+
id: null
|
|
31
|
+
}), G = a(), K = G.has(e.InvoiceWriteOrg), q = G.has(e.InvoiceReadOrg), { data: J, isLoading: Y, isError: X, refetch: Z } = u({
|
|
32
|
+
sort: V?.field,
|
|
33
|
+
order: V?.sort,
|
|
34
|
+
limit: R,
|
|
35
|
+
pagination_token: I,
|
|
36
|
+
name__icontains: B.search || void 0
|
|
37
|
+
}), Q = (e, t) => {
|
|
38
|
+
L(void 0), te((n) => ({
|
|
39
|
+
...n,
|
|
40
|
+
[e]: t === "all" ? null : t
|
|
41
|
+
})), i?.({
|
|
42
|
+
field: e,
|
|
43
|
+
value: t
|
|
44
|
+
});
|
|
45
|
+
}, $ = _(() => V ? [{
|
|
46
|
+
id: V.field,
|
|
47
|
+
desc: V.sort === "desc"
|
|
48
|
+
}] : [], [V]), ne = g((e) => {
|
|
49
|
+
let t = typeof e == "function" ? e($) : e;
|
|
50
|
+
if (t.length > 0) {
|
|
51
|
+
let e = {
|
|
52
|
+
field: t[0].id,
|
|
53
|
+
sort: t[0].desc ? "desc" : "asc"
|
|
54
|
+
};
|
|
55
|
+
H(e), D?.(e);
|
|
56
|
+
} else H(void 0);
|
|
57
|
+
L(void 0);
|
|
58
|
+
}, [$, D]), re = _(() => [
|
|
59
|
+
{
|
|
60
|
+
accessorKey: "name",
|
|
61
|
+
header: ({ column: e }) => {
|
|
62
|
+
let t = e.getIsSorted();
|
|
63
|
+
return /* @__PURE__ */ T("div", {
|
|
64
|
+
className: "ttw:flex ttw:items-center ttw:gap-2 ttw:text-inherit",
|
|
65
|
+
children: [j._("Name"), /* @__PURE__ */ w(r, {
|
|
66
|
+
variant: "ghost",
|
|
67
|
+
onClick: () => e.toggleSorting(t === "asc"),
|
|
68
|
+
children: w(t === "asc" ? b : t === "desc" ? y : x, { className: "ttw:size-4" })
|
|
69
|
+
})]
|
|
70
|
+
});
|
|
71
|
+
},
|
|
72
|
+
cell: ({ row: e }) => /* @__PURE__ */ w("span", { children: e.original.name })
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
accessorKey: "type",
|
|
76
|
+
header: j._("Type"),
|
|
77
|
+
cell: ({ row: e }) => e.original.type ? /* @__PURE__ */ w(f, { type: e.original.type }) : null
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
accessorKey: "description",
|
|
81
|
+
header: j._("Description"),
|
|
82
|
+
cell: ({ row: e }) => /* @__PURE__ */ w("div", {
|
|
83
|
+
className: "ttw:w-120",
|
|
84
|
+
children: /* @__PURE__ */ w("span", {
|
|
85
|
+
className: "ttw:w-full ttw:inline-block ttw:truncate",
|
|
86
|
+
children: e.original?.description
|
|
87
|
+
})
|
|
88
|
+
})
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
accessorKey: "price",
|
|
92
|
+
header: () => /* @__PURE__ */ w("div", {
|
|
93
|
+
className: "ttw:text-right",
|
|
94
|
+
children: j._("Price per unit")
|
|
95
|
+
}),
|
|
96
|
+
cell: ({ row: e }) => {
|
|
97
|
+
let t = e.original.price;
|
|
98
|
+
return /* @__PURE__ */ T("div", {
|
|
99
|
+
className: "ttw:justify-end ttw:flex ttw:gap-1 ttw:items-center",
|
|
100
|
+
children: [t ? N(t.value, t.currency) : "", /* @__PURE__ */ w(ee, { unitId: e.original.measure_unit_id ?? "" })]
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
], [j, N]), ie = Object.keys(B).some((e) => B[e] !== null && B[e] !== void 0), ae = !!B[p];
|
|
105
|
+
return q ? /* @__PURE__ */ T(C, { children: [
|
|
106
|
+
/* @__PURE__ */ w("div", {
|
|
107
|
+
className: "ttw:flex ttw:flex-col ttw:overflow-hidden ttw:min-h-125",
|
|
108
|
+
children: /* @__PURE__ */ w(c, {
|
|
109
|
+
columns: re,
|
|
110
|
+
data: J?.data ?? [],
|
|
111
|
+
sorting: $,
|
|
112
|
+
onSortingChange: ne,
|
|
113
|
+
pageSize: R,
|
|
114
|
+
onPageSizeChange: z,
|
|
115
|
+
nextPaginationToken: J?.next_pagination_token ?? void 0,
|
|
116
|
+
prevPaginationToken: J?.prev_pagination_token ?? void 0,
|
|
117
|
+
onPaginationTokenChange: L,
|
|
118
|
+
onRowClick: (e) => {
|
|
119
|
+
l() || O?.(e.id);
|
|
120
|
+
},
|
|
121
|
+
filterComponent: /* @__PURE__ */ T("div", {
|
|
122
|
+
className: "ttw:flex ttw:items-center ttw:justify-between ttw:px-4",
|
|
123
|
+
children: [/* @__PURE__ */ w(m, { onChangeFilter: Q }), /* @__PURE__ */ T("div", {
|
|
124
|
+
className: "ttw:flex ttw:gap-2",
|
|
125
|
+
children: [/* @__PURE__ */ w(r, {
|
|
126
|
+
variant: "ghost",
|
|
127
|
+
onClick: () => F(!0),
|
|
128
|
+
className: "ttw:py-0 ttw:text-primary ttw:hover:text-primary",
|
|
129
|
+
children: j._("Manage units of measure")
|
|
130
|
+
}), /* @__PURE__ */ T(r, {
|
|
131
|
+
disabled: !K,
|
|
132
|
+
onClick: A,
|
|
133
|
+
className: "ttw:py-0",
|
|
134
|
+
children: [/* @__PURE__ */ w(S, {}), j._("Add product or service")]
|
|
135
|
+
})]
|
|
136
|
+
})]
|
|
137
|
+
}),
|
|
138
|
+
children: /* @__PURE__ */ w(o, {
|
|
139
|
+
isLoading: Y,
|
|
140
|
+
dataLength: J?.data.length || 0,
|
|
141
|
+
isFiltering: ie,
|
|
142
|
+
isSearching: ae,
|
|
143
|
+
isError: X,
|
|
144
|
+
onCreate: A,
|
|
145
|
+
refetch: Z,
|
|
146
|
+
filterTitle: j._("No product or service found"),
|
|
147
|
+
filterDescription1: j._("Try adjusting your search or filter criteria"),
|
|
148
|
+
entityName: j._("products or services"),
|
|
149
|
+
actionButtonLabel: j._("Add your first product or service"),
|
|
150
|
+
actionOptions: [j._("Product")],
|
|
151
|
+
noDataTitle: j._("Build your products & services list."),
|
|
152
|
+
noDataDescription1: j._("Save the products and services you sell so you can quickly add them as line items on invoices."),
|
|
153
|
+
type: "no-data"
|
|
154
|
+
})
|
|
155
|
+
})
|
|
156
|
+
}),
|
|
157
|
+
U.id && /* @__PURE__ */ w(d, {
|
|
158
|
+
id: U.id,
|
|
159
|
+
open: U.open,
|
|
160
|
+
onDeleted: k,
|
|
161
|
+
onClose: () => W((e) => ({
|
|
162
|
+
...e,
|
|
163
|
+
open: !1
|
|
164
|
+
}))
|
|
165
|
+
}),
|
|
166
|
+
P && /* @__PURE__ */ w(h, {
|
|
167
|
+
open: P,
|
|
168
|
+
handleClose: () => F(!1)
|
|
169
|
+
})
|
|
170
|
+
] }) : /* @__PURE__ */ w(s, {});
|
|
171
|
+
};
|
|
172
|
+
//#endregion
|
|
173
|
+
export { D as ProductsTable };
|
|
@@ -1,200 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import "
|
|
5
|
-
import { jsx as r, jsxs as i } from "@emotion/react/jsx-runtime";
|
|
6
|
-
import { Button as a, Grid as o, IconButton as s, TextField as c, Typography as l } from "@mui/material";
|
|
7
|
-
import { useLingui as u } from "@lingui/react";
|
|
8
|
-
import { Controller as d, useFieldArray as f, useFormContext as p } from "react-hook-form";
|
|
9
|
-
import m from "@mui/icons-material/Add";
|
|
10
|
-
import h from "@mui/icons-material/DeleteForever";
|
|
1
|
+
import { cn as e } from "./index53.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { jsx as t } from "@emotion/react/jsx-runtime";
|
|
4
|
+
import * as n from "@radix-ui/react-label";
|
|
11
5
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
return /* @__PURE__ */ i(o, {
|
|
18
|
-
container: !0,
|
|
19
|
-
direction: "column",
|
|
20
|
-
spacing: 4,
|
|
21
|
-
children: [C.map((e, a) => /* @__PURE__ */ i(o, {
|
|
22
|
-
item: !0,
|
|
23
|
-
container: !0,
|
|
24
|
-
gap: 2,
|
|
25
|
-
className: "Monite-PayableDetailsForm-Item",
|
|
26
|
-
children: [
|
|
27
|
-
/* @__PURE__ */ i(o, {
|
|
28
|
-
item: !0,
|
|
29
|
-
xs: 12,
|
|
30
|
-
gap: 2,
|
|
31
|
-
container: !0,
|
|
32
|
-
flexWrap: "nowrap",
|
|
33
|
-
children: [
|
|
34
|
-
/* @__PURE__ */ r(o, {
|
|
35
|
-
item: !0,
|
|
36
|
-
xs: 8,
|
|
37
|
-
children: /* @__PURE__ */ r(d, {
|
|
38
|
-
name: `lineItems.${a}.name`,
|
|
39
|
-
control: x,
|
|
40
|
-
render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ r(c, {
|
|
41
|
-
...e,
|
|
42
|
-
id: e.name,
|
|
43
|
-
label: _._("Name"),
|
|
44
|
-
variant: "standard",
|
|
45
|
-
error: !!t,
|
|
46
|
-
helperText: t?.message,
|
|
47
|
-
fullWidth: !0
|
|
48
|
-
})
|
|
49
|
-
})
|
|
50
|
-
}),
|
|
51
|
-
/* @__PURE__ */ r(o, {
|
|
52
|
-
item: !0,
|
|
53
|
-
xs: 3,
|
|
54
|
-
children: /* @__PURE__ */ r(d, {
|
|
55
|
-
name: `lineItems.${a}.quantity`,
|
|
56
|
-
control: x,
|
|
57
|
-
render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ r(c, {
|
|
58
|
-
...e,
|
|
59
|
-
id: e.name,
|
|
60
|
-
label: _._("Quantity"),
|
|
61
|
-
variant: "standard",
|
|
62
|
-
type: "number",
|
|
63
|
-
inputProps: { min: 1 },
|
|
64
|
-
error: !!t,
|
|
65
|
-
helperText: t?.message,
|
|
66
|
-
fullWidth: !0
|
|
67
|
-
})
|
|
68
|
-
})
|
|
69
|
-
}),
|
|
70
|
-
/* @__PURE__ */ r(o, {
|
|
71
|
-
item: !0,
|
|
72
|
-
xs: 1,
|
|
73
|
-
container: !0,
|
|
74
|
-
sx: {
|
|
75
|
-
justifyContent: "flex-end",
|
|
76
|
-
alignItems: "center"
|
|
77
|
-
},
|
|
78
|
-
children: /* @__PURE__ */ r(s, {
|
|
79
|
-
"aria-label": "delete",
|
|
80
|
-
onClick: () => T(a),
|
|
81
|
-
disabled: C.length === 1,
|
|
82
|
-
children: /* @__PURE__ */ r(h, {})
|
|
83
|
-
})
|
|
84
|
-
})
|
|
85
|
-
]
|
|
86
|
-
}),
|
|
87
|
-
g && /* @__PURE__ */ i(o, {
|
|
88
|
-
item: !0,
|
|
89
|
-
xs: 12,
|
|
90
|
-
gap: 2,
|
|
91
|
-
container: !0,
|
|
92
|
-
flexWrap: "nowrap",
|
|
93
|
-
children: [/* @__PURE__ */ r(o, {
|
|
94
|
-
item: !0,
|
|
95
|
-
xs: 11,
|
|
96
|
-
children: /* @__PURE__ */ r(d, {
|
|
97
|
-
name: `lineItems.${a}.ledger_account_id`,
|
|
98
|
-
control: x,
|
|
99
|
-
render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ r(n, {
|
|
100
|
-
value: e.value ?? void 0,
|
|
101
|
-
onChange: (t) => e.onChange(t ?? void 0),
|
|
102
|
-
error: !!t,
|
|
103
|
-
helperText: t?.message
|
|
104
|
-
})
|
|
105
|
-
})
|
|
106
|
-
}), /* @__PURE__ */ r(o, {
|
|
107
|
-
item: !0,
|
|
108
|
-
xs: 1
|
|
109
|
-
})]
|
|
110
|
-
}),
|
|
111
|
-
/* @__PURE__ */ i(o, {
|
|
112
|
-
item: !0,
|
|
113
|
-
xs: 12,
|
|
114
|
-
gap: 2,
|
|
115
|
-
container: !0,
|
|
116
|
-
flexWrap: "nowrap",
|
|
117
|
-
justifyContent: "flex-end",
|
|
118
|
-
children: [
|
|
119
|
-
/* @__PURE__ */ r(o, {
|
|
120
|
-
item: !0,
|
|
121
|
-
xs: 8,
|
|
122
|
-
children: /* @__PURE__ */ r(d, {
|
|
123
|
-
name: `lineItems.${a}.price`,
|
|
124
|
-
control: x,
|
|
125
|
-
render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ r(c, {
|
|
126
|
-
...e,
|
|
127
|
-
id: e.name,
|
|
128
|
-
label: _._("Price"),
|
|
129
|
-
variant: "standard",
|
|
130
|
-
type: "number",
|
|
131
|
-
inputProps: { min: 0 },
|
|
132
|
-
error: !!t,
|
|
133
|
-
helperText: t?.message,
|
|
134
|
-
fullWidth: !0,
|
|
135
|
-
InputProps: { endAdornment: v(S("currency")) }
|
|
136
|
-
})
|
|
137
|
-
})
|
|
138
|
-
}),
|
|
139
|
-
/* @__PURE__ */ r(o, {
|
|
140
|
-
item: !0,
|
|
141
|
-
xs: 3,
|
|
142
|
-
children: /* @__PURE__ */ r(d, {
|
|
143
|
-
name: `lineItems.${a}.tax`,
|
|
144
|
-
control: x,
|
|
145
|
-
render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ r(c, {
|
|
146
|
-
...e,
|
|
147
|
-
id: e.name,
|
|
148
|
-
label: _._("Tax"),
|
|
149
|
-
variant: "standard",
|
|
150
|
-
type: "number",
|
|
151
|
-
inputProps: {
|
|
152
|
-
min: 0,
|
|
153
|
-
max: 100
|
|
154
|
-
},
|
|
155
|
-
error: !!t,
|
|
156
|
-
helperText: t?.message,
|
|
157
|
-
fullWidth: !0,
|
|
158
|
-
InputProps: { endAdornment: "%" }
|
|
159
|
-
})
|
|
160
|
-
})
|
|
161
|
-
}),
|
|
162
|
-
/* @__PURE__ */ r(o, {
|
|
163
|
-
item: !0,
|
|
164
|
-
xs: 1
|
|
165
|
-
})
|
|
166
|
-
]
|
|
167
|
-
}),
|
|
168
|
-
D?.[a] && E && /* @__PURE__ */ r(o, {
|
|
169
|
-
item: !0,
|
|
170
|
-
xs: 12,
|
|
171
|
-
gap: 2,
|
|
172
|
-
className: "Monite-PayableDetailsForm-Item-Total",
|
|
173
|
-
children: /* @__PURE__ */ r(l, {
|
|
174
|
-
fontWeight: "bold",
|
|
175
|
-
align: "right",
|
|
176
|
-
children: y(b(t(D?.[a]), E) || 0, E)
|
|
177
|
-
})
|
|
178
|
-
})
|
|
179
|
-
]
|
|
180
|
-
}, e.id)), /* @__PURE__ */ r(o, {
|
|
181
|
-
item: !0,
|
|
182
|
-
xs: 12,
|
|
183
|
-
gap: 2,
|
|
184
|
-
children: /* @__PURE__ */ r(a, {
|
|
185
|
-
variant: "text",
|
|
186
|
-
startIcon: /* @__PURE__ */ r(m, {}),
|
|
187
|
-
onClick: () => w({
|
|
188
|
-
id: "",
|
|
189
|
-
name: "",
|
|
190
|
-
quantity: 1,
|
|
191
|
-
price: 0,
|
|
192
|
-
tax: 19
|
|
193
|
-
}),
|
|
194
|
-
children: _._("Add item")
|
|
195
|
-
})
|
|
196
|
-
})]
|
|
6
|
+
function r({ className: r, ...i }) {
|
|
7
|
+
return /* @__PURE__ */ t(n.Root, {
|
|
8
|
+
"data-slot": "label",
|
|
9
|
+
className: e("ttw:flex ttw:items-center ttw:gap-2 ttw:text-sm ttw:leading-none ttw:font-medium ttw:select-none ttw:group-data-[disabled=true]:pointer-events-none ttw:group-data-[disabled=true]:opacity-50 ttw:peer-disabled:cursor-not-allowed ttw:peer-disabled:opacity-50", r),
|
|
10
|
+
...i
|
|
197
11
|
});
|
|
198
|
-
}
|
|
12
|
+
}
|
|
199
13
|
//#endregion
|
|
200
|
-
export {
|
|
14
|
+
export { r as Label };
|
|
@@ -1,8 +1,70 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { cn as e } from "./index53.js";
|
|
2
|
+
import { Label as t } from "./index222.js";
|
|
3
|
+
import "./index223.js";
|
|
4
|
+
import { useMemo as n } from "react";
|
|
5
|
+
import { jsx as r, jsxs as i } from "@emotion/react/jsx-runtime";
|
|
6
|
+
import { cva as a } from "class-variance-authority";
|
|
2
7
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
8
|
+
var o = a("ttw:group/field ttw:flex ttw:w-full ttw:gap-3 ttw:data-[invalid=true]:text-destructive", {
|
|
9
|
+
variants: { orientation: {
|
|
10
|
+
vertical: ["flex-col [&>*]:w-full [&>.sr-only]:w-auto"],
|
|
11
|
+
horizontal: [
|
|
12
|
+
"flex-row items-center",
|
|
13
|
+
"[&>[data-slot=field-label]]:flex-auto",
|
|
14
|
+
"has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"
|
|
15
|
+
],
|
|
16
|
+
responsive: [
|
|
17
|
+
"flex-col @md/field-group:flex-row @md/field-group:items-center [&>*]:w-full @md/field-group:[&>*]:w-auto [&>.sr-only]:w-auto",
|
|
18
|
+
"@md/field-group:[&>[data-slot=field-label]]:flex-auto",
|
|
19
|
+
"@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"
|
|
20
|
+
]
|
|
21
|
+
} },
|
|
22
|
+
defaultVariants: { orientation: "vertical" }
|
|
23
|
+
});
|
|
24
|
+
function s({ className: t, orientation: n = "vertical", ...i }) {
|
|
25
|
+
return /* @__PURE__ */ r("div", {
|
|
26
|
+
role: "group",
|
|
27
|
+
"data-slot": "field",
|
|
28
|
+
"data-orientation": n,
|
|
29
|
+
className: e(o({ orientation: n }), t),
|
|
30
|
+
...i
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
function c({ className: t, ...n }) {
|
|
34
|
+
return /* @__PURE__ */ r("div", {
|
|
35
|
+
"data-slot": "field-content",
|
|
36
|
+
className: e("ttw:group/field-content ttw:flex ttw:flex-1 ttw:flex-col ttw:gap-1.5 ttw:leading-snug", t),
|
|
37
|
+
...n
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
function l({ className: n, required: a, children: o, ...s }) {
|
|
41
|
+
return /* @__PURE__ */ i(t, {
|
|
42
|
+
"data-slot": "field-label",
|
|
43
|
+
className: e("ttw:group/field-label ttw:peer/field-label ttw:flex ttw:w-fit ttw:items-center ttw:gap-2 ttw:leading-snug ttw:group-data-[disabled=true]/field:opacity-50", "ttw:has-[>[data-slot=field]]:w-full ttw:has-[>[data-slot=field]]:flex-col ttw:has-[>[data-slot=field]]:rounded-md ttw:has-[>[data-slot=field]]:border ttw:[&>*]:data-[slot=field]:p-4", "ttw:has-data-[state=checked]:border-primary ttw:has-data-[state=checked]:bg-primary/5 ttw:dark:has-data-[state=checked]:bg-primary/10", n),
|
|
44
|
+
...s,
|
|
45
|
+
children: [o, a && /* @__PURE__ */ r("span", {
|
|
46
|
+
"aria-hidden": "true",
|
|
47
|
+
className: "ttw:size-2 ttw:-ml-1 ttw:block ttw:-mt-1 ttw:rounded-full ttw:bg-destructive ttw:shrink-0"
|
|
48
|
+
})]
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
function u({ className: t, children: i, errors: a, ...o }) {
|
|
52
|
+
let s = n(() => {
|
|
53
|
+
if (i) return i;
|
|
54
|
+
if (!a?.length) return null;
|
|
55
|
+
let e = [...new Map(a.map((e) => [e?.message, e])).values()];
|
|
56
|
+
return e?.length == 1 ? e[0]?.message : /* @__PURE__ */ r("ul", {
|
|
57
|
+
className: "ttw:ml-4 ttw:flex ttw:list-disc ttw:flex-col ttw:gap-1",
|
|
58
|
+
children: e.map((e, t) => e?.message && /* @__PURE__ */ r("li", { children: e.message }, t))
|
|
59
|
+
});
|
|
60
|
+
}, [i, a]);
|
|
61
|
+
return s ? /* @__PURE__ */ r("div", {
|
|
62
|
+
role: "alert",
|
|
63
|
+
"data-slot": "field-error",
|
|
64
|
+
className: e("ttw:text-sm ttw:font-normal ttw:text-destructive", t),
|
|
65
|
+
...o,
|
|
66
|
+
children: s
|
|
67
|
+
}) : null;
|
|
68
|
+
}
|
|
7
69
|
//#endregion
|
|
8
|
-
export {
|
|
70
|
+
export { s as Field, c as FieldContent, u as FieldError, l as FieldLabel };
|