@tesouro/embedded-components-react 0.2.161 → 0.2.164
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 +21 -0
- package/dist/lib/ReceivablesWidget.js +28 -28
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index13.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +28 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +88 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index2.js +28 -10
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +25 -25
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index2.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index4.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index6.js +16 -53
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index7.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index8.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index9.js +15 -16
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index4.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index11.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index12.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +24 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +23 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +2 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +2 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index130.js +7 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +26 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +99 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +56 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +79 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +6 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +9 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +33 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +30 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index14.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +12 -121
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +25 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +13 -217
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +119 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +215 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +10 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +6 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +46 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +49 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index15.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +14 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +41 -147
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +14 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +10 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +152 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +54 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +71 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +20 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +3 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +60 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +39 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +82 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +5 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +25 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +10 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +20 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +19 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +2 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +11 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +20 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +22 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +24 -219
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +109 -461
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +66 -106
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +11 -534
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +12 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +9 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +46 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +75 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +54 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +14 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +22 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +78 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +28 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +39 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +7 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +221 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +467 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +110 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +535 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index19.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +23 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +59 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +398 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +67 -115
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +2 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +406 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +26 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +93 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +100 -397
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +17 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index2.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +13 -406
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +36 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +52 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +29 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +4 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +77 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +32 -348
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +20 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +36 -117
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +50 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +82 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +34 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +66 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +347 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +2 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +117 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +16 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +8 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +7 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +14 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +12 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index24.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +21 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +18 -103
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +27 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +37 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +35 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +15 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +24 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +17 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +107 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +11 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index25.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +18 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +23 -144
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +36 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +56 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +46 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +30 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +98 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +43 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +147 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +106 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index26.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +37 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +344 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +294 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +99 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +158 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +260 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +22 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +20 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +5 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +21 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index27.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +56 -212
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +29 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +60 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +20 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +2 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +94 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +96 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +211 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +491 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +161 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index28.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +19 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +39 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +14 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +80 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +42 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +59 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +31 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +118 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +22 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +42 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index29.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +56 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +19 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +27 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +38 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +63 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +96 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +102 -118
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +83 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +149 -118
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +10 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index3.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index30.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +19 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +6 -203
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +20 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +15 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +19 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +171 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +132 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +157 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +7 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +18 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index31.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +61 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +66 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +59 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +6 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +10 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +59 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +24 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +58 -486
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +14 -168
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +62 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index32.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +23 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +33 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +61 -165
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +72 -133
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +44 -162
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +25 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +127 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +45 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +112 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +102 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index33.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +48 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +202 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +67 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +158 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +28 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +29 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +78 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +28 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +4 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +16 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index34.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +37 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +28 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +31 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +29 -344
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +42 -295
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +11 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +76 -161
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +41 -264
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +25 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +127 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +6 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +43 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +24 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +26 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +41 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +23 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +65 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +93 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index36.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +36 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +9 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +10 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +11 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +22 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +50 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +9 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +32 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +31 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +4 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index37.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +126 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +7 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +53 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +18 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +91 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +31 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +27 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +118 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +18 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +16 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index38.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +16 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +16 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +16 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +71 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +16 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +16 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +3 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +11 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +53 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +36 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +23 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +32 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +22 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +24 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +34 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +85 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +17 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +83 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +260 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index4.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index40.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +39 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +65 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +43 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +25 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +141 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +108 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +81 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +96 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +17 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index41.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +8 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +12 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +2 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +278 -262
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +47 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +15 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +22 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +10 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +35 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +46 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index42.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +66 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +19 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +18 -282
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +14 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +21 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +11 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +65 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +21 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +2 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +66 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +45 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +26 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +5 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +80 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +39 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +29 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +14 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +29 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +66 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +55 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +39 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +96 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +14 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +75 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +18 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +9 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +57 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +70 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +21 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +42 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +35 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +13 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +18 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +49 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +56 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +29 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +8 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +51 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +69 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +85 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +51 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +49 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +55 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +38 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +44 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +52 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +20 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +32 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +33 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +85 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +24 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +101 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +108 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +72 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +65 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +38 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +12 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +28 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +23 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +38 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +9 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +65 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +36 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +49 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +48 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +40 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +48 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index5.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index58.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index6.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index78.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index79.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index8.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index9.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index94.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +27 -27
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js +165 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/queryKeys.js +20 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/ApprovalPoliciesSettings.js +71 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/labels.js +37 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/policyViewModel.js +125 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/useApprovalPolicyRules.js +327 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/useApproverOptions.js +58 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index10.js +130 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index11.js +20 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index12.js +170 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index13.js +15 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index14.js +65 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index15.js +9 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index16.js +99 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index17.js +9 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index18.js +236 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index2.js +117 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index3.js +13 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index4.js +46 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index5.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index6.js +52 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index7.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index8.js +41 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index9.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/util/dist/lib/amountCoverage.js +39 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/util/dist/lib/amountInput.js +18 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/util/dist/lib/policyPriority.js +14 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/util/dist/lib/policyScript.js +98 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/util/dist/lib/policyTrigger.js +136 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/util/dist/lib/validatePolicyDraft.js +32 -0
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js +59 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +28 -28
- package/dist/packages/shared-ui-shadcn/dist/index.js +1668 -1662
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index10.js +0 -23
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { jsx as t, jsxs as e } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as I, Fragment as h } from "react";
|
|
3
|
+
import { SquarePen as L, Trash2 as M } from "lucide-react";
|
|
4
|
+
import { Button as d, Typography as n, TooltipProvider as $, Tooltip as q, TooltipTrigger as z, TooltipContent as O, Badge as U } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
5
|
+
import { AmountConditionBuilder as H } from "./index2.js";
|
|
6
|
+
import { ApproverGroupsBuilder as J } from "./index10.js";
|
|
7
|
+
import { PolicyCardDefaultLabels as p } from "./index13.js";
|
|
8
|
+
const _ = ({
|
|
9
|
+
id: o,
|
|
10
|
+
title: f,
|
|
11
|
+
sentence: x,
|
|
12
|
+
approverSteps: c,
|
|
13
|
+
approverOptions: g,
|
|
14
|
+
amountCondition: C,
|
|
15
|
+
onAmountConditionChange: A,
|
|
16
|
+
onAmountFieldBlur: y,
|
|
17
|
+
amountConditionErrors: S,
|
|
18
|
+
onApproverStepsChange: B,
|
|
19
|
+
onAddApproverStep: N,
|
|
20
|
+
onRemoveApproverStep: D,
|
|
21
|
+
approverErrors: P,
|
|
22
|
+
addApproverStepDisabled: T,
|
|
23
|
+
isEditing: s,
|
|
24
|
+
onEdit: E,
|
|
25
|
+
onCancel: G,
|
|
26
|
+
onSave: k,
|
|
27
|
+
onDelete: u,
|
|
28
|
+
saveDisabled: m,
|
|
29
|
+
saveDisabledReasons: w,
|
|
30
|
+
disabled: a,
|
|
31
|
+
labels: l
|
|
32
|
+
}) => {
|
|
33
|
+
const r = I(
|
|
34
|
+
() => ({
|
|
35
|
+
...p,
|
|
36
|
+
...l,
|
|
37
|
+
AmountConditionBuilder: {
|
|
38
|
+
...p.AmountConditionBuilder,
|
|
39
|
+
...l?.AmountConditionBuilder
|
|
40
|
+
},
|
|
41
|
+
ApproverGroupsBuilder: {
|
|
42
|
+
...p.ApproverGroupsBuilder,
|
|
43
|
+
...l?.ApproverGroupsBuilder
|
|
44
|
+
}
|
|
45
|
+
}),
|
|
46
|
+
[l]
|
|
47
|
+
), v = /* @__PURE__ */ t(
|
|
48
|
+
d,
|
|
49
|
+
{
|
|
50
|
+
type: "button",
|
|
51
|
+
onClick: k,
|
|
52
|
+
disabled: a || m,
|
|
53
|
+
"data-testid": `policy-card-save-button-${o}`,
|
|
54
|
+
children: r.Save
|
|
55
|
+
}
|
|
56
|
+
), j = {
|
|
57
|
+
steps: c,
|
|
58
|
+
options: g,
|
|
59
|
+
onStepsChange: B,
|
|
60
|
+
onAddStep: N,
|
|
61
|
+
onRemoveStep: D,
|
|
62
|
+
errors: P,
|
|
63
|
+
addStepDisabled: T,
|
|
64
|
+
disabled: a,
|
|
65
|
+
labels: r.ApproverGroupsBuilder
|
|
66
|
+
};
|
|
67
|
+
return /* @__PURE__ */ e(
|
|
68
|
+
"div",
|
|
69
|
+
{
|
|
70
|
+
"data-testid": `policy-card-${o}`,
|
|
71
|
+
className: `ttw:flex ttw:w-full ttw:flex-col ttw:gap-4 ttw:rounded-xl ttw:border ttw:bg-card ttw:p-6 ${s ? "ttw:border-primary" : "ttw:border-border"}`,
|
|
72
|
+
children: [
|
|
73
|
+
s ? null : /* @__PURE__ */ e("div", { className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-4", children: [
|
|
74
|
+
/* @__PURE__ */ t(n, { variant: "body1", children: f }),
|
|
75
|
+
/* @__PURE__ */ t(
|
|
76
|
+
d,
|
|
77
|
+
{
|
|
78
|
+
type: "button",
|
|
79
|
+
variant: "ghost",
|
|
80
|
+
size: "icon-sm",
|
|
81
|
+
"aria-label": r.EditAriaLabel,
|
|
82
|
+
onClick: E,
|
|
83
|
+
disabled: a,
|
|
84
|
+
"data-testid": `policy-card-edit-button-${o}`,
|
|
85
|
+
children: /* @__PURE__ */ t(L, {})
|
|
86
|
+
}
|
|
87
|
+
)
|
|
88
|
+
] }),
|
|
89
|
+
s ? /* @__PURE__ */ e("div", { className: "ttw:flex ttw:flex-col ttw:gap-4", children: [
|
|
90
|
+
/* @__PURE__ */ t(
|
|
91
|
+
H,
|
|
92
|
+
{
|
|
93
|
+
value: C,
|
|
94
|
+
onChange: A,
|
|
95
|
+
onFieldBlur: y,
|
|
96
|
+
errors: S,
|
|
97
|
+
disabled: a,
|
|
98
|
+
labels: r.AmountConditionBuilder
|
|
99
|
+
}
|
|
100
|
+
),
|
|
101
|
+
/* @__PURE__ */ t(J, { ...j }),
|
|
102
|
+
/* @__PURE__ */ e("div", { className: "ttw:flex ttw:items-center ttw:gap-4 ttw:pt-2", children: [
|
|
103
|
+
u ? /* @__PURE__ */ e(
|
|
104
|
+
d,
|
|
105
|
+
{
|
|
106
|
+
type: "button",
|
|
107
|
+
variant: "ghost",
|
|
108
|
+
onClick: u,
|
|
109
|
+
disabled: a,
|
|
110
|
+
className: "ttw:w-fit ttw:px-0 ttw:text-destructive ttw:hover:text-destructive",
|
|
111
|
+
"data-testid": `policy-card-delete-button-${o}`,
|
|
112
|
+
children: [
|
|
113
|
+
/* @__PURE__ */ t(M, {}),
|
|
114
|
+
r.Delete
|
|
115
|
+
]
|
|
116
|
+
}
|
|
117
|
+
) : null,
|
|
118
|
+
/* @__PURE__ */ e("div", { className: "ttw:ml-auto ttw:flex ttw:items-center ttw:gap-2", children: [
|
|
119
|
+
/* @__PURE__ */ t(
|
|
120
|
+
d,
|
|
121
|
+
{
|
|
122
|
+
type: "button",
|
|
123
|
+
variant: "outline",
|
|
124
|
+
onClick: G,
|
|
125
|
+
disabled: a,
|
|
126
|
+
"data-testid": `policy-card-cancel-button-${o}`,
|
|
127
|
+
children: r.Cancel
|
|
128
|
+
}
|
|
129
|
+
),
|
|
130
|
+
m && w?.length ? /* @__PURE__ */ t($, { children: /* @__PURE__ */ e(q, { children: [
|
|
131
|
+
/* @__PURE__ */ t(z, { asChild: !0, children: /* @__PURE__ */ t(
|
|
132
|
+
"span",
|
|
133
|
+
{
|
|
134
|
+
tabIndex: 0,
|
|
135
|
+
className: "ttw:inline-flex ttw:cursor-not-allowed ttw:rounded-md",
|
|
136
|
+
"data-testid": `policy-card-save-blocked-${o}`,
|
|
137
|
+
children: v
|
|
138
|
+
}
|
|
139
|
+
) }),
|
|
140
|
+
/* @__PURE__ */ t(
|
|
141
|
+
O,
|
|
142
|
+
{
|
|
143
|
+
side: "top",
|
|
144
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
145
|
+
children: w.map((i) => /* @__PURE__ */ t("span", { children: i }, i))
|
|
146
|
+
}
|
|
147
|
+
)
|
|
148
|
+
] }) }) : v
|
|
149
|
+
] })
|
|
150
|
+
] })
|
|
151
|
+
] }) : /* @__PURE__ */ e("div", { className: "ttw:flex ttw:flex-col ttw:gap-2.5", children: [
|
|
152
|
+
/* @__PURE__ */ t(n, { variant: "body2", color: "muted", className: "ttw:font-medium", children: x }),
|
|
153
|
+
c.map((i, F) => /* @__PURE__ */ e(h, { children: [
|
|
154
|
+
F > 0 ? /* @__PURE__ */ e("div", { className: "ttw:flex ttw:items-center ttw:gap-2.5 ttw:pl-1", children: [
|
|
155
|
+
/* @__PURE__ */ t(n, { variant: "caption", color: "muted", children: r.GroupConnector }),
|
|
156
|
+
/* @__PURE__ */ t("div", { className: "ttw:h-px ttw:flex-1 ttw:bg-border" })
|
|
157
|
+
] }) : null,
|
|
158
|
+
/* @__PURE__ */ t("div", { className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-1.5", children: i.selectedItems.map((b, R) => /* @__PURE__ */ e(h, { children: [
|
|
159
|
+
R > 0 ? /* @__PURE__ */ t(n, { variant: "body2", color: "muted", children: r.ApproverConnector }) : null,
|
|
160
|
+
/* @__PURE__ */ t(U, { variant: "outline", children: b.label })
|
|
161
|
+
] }, b.id)) })
|
|
162
|
+
] }, i.id))
|
|
163
|
+
] })
|
|
164
|
+
]
|
|
165
|
+
}
|
|
166
|
+
);
|
|
167
|
+
};
|
|
168
|
+
export {
|
|
169
|
+
_ as PolicyCard
|
|
170
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AmountConditionBuilderDefaultLabels as e } from "./index3.js";
|
|
2
|
+
import { APPROVER_GROUPS_BUILDER_LABELS_EN as o } from "./index11.js";
|
|
3
|
+
const l = {
|
|
4
|
+
EditAriaLabel: "Edit rule",
|
|
5
|
+
Delete: "Delete",
|
|
6
|
+
Cancel: "Cancel",
|
|
7
|
+
Save: "Save",
|
|
8
|
+
ApproverConnector: "or",
|
|
9
|
+
GroupConnector: "And",
|
|
10
|
+
AmountConditionBuilder: e,
|
|
11
|
+
ApproverGroupsBuilder: o
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
l as PolicyCardDefaultLabels
|
|
15
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { jsx as e, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as m } from "react";
|
|
3
|
+
import { Trash2 as s } from "lucide-react";
|
|
4
|
+
import { AlertDialog as u, AlertDialogContent as D, AlertDialogHeader as g, AlertDialogTitle as w, AlertDialogDescription as f, AlertDialogFooter as h, Button as n } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
5
|
+
import { DeleteRuleDialogDefaultLabels as p } from "./index15.js";
|
|
6
|
+
const j = ({
|
|
7
|
+
open: r,
|
|
8
|
+
onOpenChange: o,
|
|
9
|
+
onConfirm: c,
|
|
10
|
+
onCancel: d,
|
|
11
|
+
isDeleting: a,
|
|
12
|
+
labels: i
|
|
13
|
+
}) => {
|
|
14
|
+
const t = m(
|
|
15
|
+
() => ({ ...p, ...i }),
|
|
16
|
+
[i]
|
|
17
|
+
);
|
|
18
|
+
return /* @__PURE__ */ e(u, { open: r, onOpenChange: o, children: /* @__PURE__ */ l(
|
|
19
|
+
D,
|
|
20
|
+
{
|
|
21
|
+
"data-testid": "delete-rule-dialog",
|
|
22
|
+
className: "ttw:sm:max-w-sm",
|
|
23
|
+
children: [
|
|
24
|
+
/* @__PURE__ */ l(g, { className: "ttw:items-center ttw:text-center", children: [
|
|
25
|
+
/* @__PURE__ */ e("div", { className: "ttw:flex ttw:size-11 ttw:items-center ttw:justify-center ttw:rounded-full ttw:bg-destructive", children: /* @__PURE__ */ e(s, { className: "ttw:size-4 ttw:text-white", "aria-hidden": "true" }) }),
|
|
26
|
+
/* @__PURE__ */ e(w, { children: t.Title }),
|
|
27
|
+
/* @__PURE__ */ e(f, { children: t.Description })
|
|
28
|
+
] }),
|
|
29
|
+
/* @__PURE__ */ l(h, { className: "ttw:sm:justify-center", children: [
|
|
30
|
+
/* @__PURE__ */ e(
|
|
31
|
+
n,
|
|
32
|
+
{
|
|
33
|
+
type: "button",
|
|
34
|
+
variant: "outline",
|
|
35
|
+
onClick: d,
|
|
36
|
+
disabled: a,
|
|
37
|
+
className: "ttw:flex-1",
|
|
38
|
+
"data-testid": "delete-rule-dialog-cancel-button",
|
|
39
|
+
children: t.Cancel
|
|
40
|
+
}
|
|
41
|
+
),
|
|
42
|
+
/* @__PURE__ */ l(
|
|
43
|
+
n,
|
|
44
|
+
{
|
|
45
|
+
type: "button",
|
|
46
|
+
variant: "destructive",
|
|
47
|
+
onClick: c,
|
|
48
|
+
disabled: a,
|
|
49
|
+
loading: a,
|
|
50
|
+
className: "ttw:flex-1",
|
|
51
|
+
"data-testid": "delete-rule-dialog-confirm-button",
|
|
52
|
+
children: [
|
|
53
|
+
/* @__PURE__ */ e(s, {}),
|
|
54
|
+
t.Delete
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
)
|
|
58
|
+
] })
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
) });
|
|
62
|
+
};
|
|
63
|
+
export {
|
|
64
|
+
j as DeleteRuleDialog
|
|
65
|
+
};
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { jsx as t, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as b } from "react";
|
|
3
|
+
import { Skeleton as r } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
4
|
+
import { GapCoverageAlert as u } from "./index6.js";
|
|
5
|
+
import { NoPolicyBanner as v } from "./index4.js";
|
|
6
|
+
import { PolicyCard as N } from "./index12.js";
|
|
7
|
+
import { ApprovalPoliciesListDefaultLabels as n } from "./index17.js";
|
|
8
|
+
const B = ({
|
|
9
|
+
items: o,
|
|
10
|
+
editingId: d,
|
|
11
|
+
onAddRule: m,
|
|
12
|
+
gaps: w,
|
|
13
|
+
onSelectGap: f,
|
|
14
|
+
isLoading: g,
|
|
15
|
+
disabled: s,
|
|
16
|
+
labels: e
|
|
17
|
+
}) => {
|
|
18
|
+
const c = b(
|
|
19
|
+
() => ({
|
|
20
|
+
...n,
|
|
21
|
+
...e,
|
|
22
|
+
GapCoverageAlert: {
|
|
23
|
+
...n.GapCoverageAlert,
|
|
24
|
+
...e?.GapCoverageAlert
|
|
25
|
+
},
|
|
26
|
+
NoPolicyBanner: {
|
|
27
|
+
...n.NoPolicyBanner,
|
|
28
|
+
...e?.NoPolicyBanner
|
|
29
|
+
}
|
|
30
|
+
}),
|
|
31
|
+
[e]
|
|
32
|
+
);
|
|
33
|
+
if (g && o.length === 0)
|
|
34
|
+
return /* @__PURE__ */ t(
|
|
35
|
+
"div",
|
|
36
|
+
{
|
|
37
|
+
"data-testid": "approval-policies-loading",
|
|
38
|
+
className: "ttw:flex ttw:w-full ttw:flex-col ttw:gap-4",
|
|
39
|
+
children: Array.from({ length: 2 }).map((l, a) => /* @__PURE__ */ i(
|
|
40
|
+
"div",
|
|
41
|
+
{
|
|
42
|
+
className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:rounded-xl ttw:border ttw:border-border ttw:bg-card ttw:p-6",
|
|
43
|
+
children: [
|
|
44
|
+
/* @__PURE__ */ i("div", { className: "ttw:flex ttw:items-center ttw:justify-between", children: [
|
|
45
|
+
/* @__PURE__ */ t(r, { className: "ttw:h-5 ttw:w-64" }),
|
|
46
|
+
/* @__PURE__ */ t(r, { className: "ttw:h-8 ttw:w-8" })
|
|
47
|
+
] }),
|
|
48
|
+
/* @__PURE__ */ t(r, { className: "ttw:h-4 ttw:w-80" }),
|
|
49
|
+
/* @__PURE__ */ t(r, { className: "ttw:h-6 ttw:w-32" })
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
a
|
|
53
|
+
))
|
|
54
|
+
}
|
|
55
|
+
);
|
|
56
|
+
if (o.length === 0)
|
|
57
|
+
return /* @__PURE__ */ t(
|
|
58
|
+
v,
|
|
59
|
+
{
|
|
60
|
+
onCreateRule: m,
|
|
61
|
+
disabled: s,
|
|
62
|
+
labels: c.NoPolicyBanner
|
|
63
|
+
}
|
|
64
|
+
);
|
|
65
|
+
const p = d !== null;
|
|
66
|
+
return /* @__PURE__ */ i(
|
|
67
|
+
"div",
|
|
68
|
+
{
|
|
69
|
+
"data-testid": "approval-policies-list",
|
|
70
|
+
className: "ttw:flex ttw:w-full ttw:flex-col ttw:gap-4",
|
|
71
|
+
children: [
|
|
72
|
+
/* @__PURE__ */ t("div", { className: "ttw:flex ttw:flex-col ttw:gap-4", children: o.map((l) => {
|
|
73
|
+
const a = l.id === d;
|
|
74
|
+
return /* @__PURE__ */ t(
|
|
75
|
+
N,
|
|
76
|
+
{
|
|
77
|
+
...l,
|
|
78
|
+
isEditing: a,
|
|
79
|
+
disabled: s || p && !a
|
|
80
|
+
},
|
|
81
|
+
l.id
|
|
82
|
+
);
|
|
83
|
+
}) }),
|
|
84
|
+
w.length > 0 ? /* @__PURE__ */ t(
|
|
85
|
+
u,
|
|
86
|
+
{
|
|
87
|
+
gaps: w,
|
|
88
|
+
onSelectGap: f,
|
|
89
|
+
disabled: s || p,
|
|
90
|
+
labels: c.GapCoverageAlert
|
|
91
|
+
}
|
|
92
|
+
) : null
|
|
93
|
+
]
|
|
94
|
+
}
|
|
95
|
+
);
|
|
96
|
+
};
|
|
97
|
+
export {
|
|
98
|
+
B as ApprovalPoliciesList
|
|
99
|
+
};
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
import { jsx as e, jsxs as r, Fragment as C } from "react/jsx-runtime";
|
|
2
|
+
import { useState as k, useId as $, useRef as S, useMemo as P, Fragment as H } from "react";
|
|
3
|
+
import { X as j, CircleAlert as I, ChevronDown as U } from "lucide-react";
|
|
4
|
+
import { TooltipProvider as B, Popover as K, PopoverAnchor as W, Badge as X, Tooltip as T, TooltipTrigger as D, TooltipContent as M, PopoverContent as _, Typography as u, Checkbox as q } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
5
|
+
function E({
|
|
6
|
+
id: a,
|
|
7
|
+
label: o
|
|
8
|
+
}) {
|
|
9
|
+
return { id: a, label: o };
|
|
10
|
+
}
|
|
11
|
+
function G({
|
|
12
|
+
option: a,
|
|
13
|
+
isSelected: o,
|
|
14
|
+
isDisabled: s,
|
|
15
|
+
reason: c,
|
|
16
|
+
onToggle: d
|
|
17
|
+
}) {
|
|
18
|
+
const i = /* @__PURE__ */ r(
|
|
19
|
+
"label",
|
|
20
|
+
{
|
|
21
|
+
"data-testid": `approver-option-${a.id}`,
|
|
22
|
+
"aria-selected": o,
|
|
23
|
+
"aria-disabled": s,
|
|
24
|
+
className: `ttw:flex ttw:w-full ttw:items-center ttw:gap-2 ttw:rounded-sm ttw:px-2 ttw:py-1.5 ttw:text-sm ${s ? "ttw:cursor-not-allowed ttw:opacity-50" : "ttw:cursor-pointer hover:ttw:bg-accent hover:ttw:text-accent-foreground"}`,
|
|
25
|
+
children: [
|
|
26
|
+
/* @__PURE__ */ e(
|
|
27
|
+
q,
|
|
28
|
+
{
|
|
29
|
+
checked: o,
|
|
30
|
+
onCheckedChange: () => {
|
|
31
|
+
s && !o || d();
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
),
|
|
35
|
+
/* @__PURE__ */ e("span", { className: "ttw:min-w-0 ttw:flex-1 ttw:truncate", children: a.label }),
|
|
36
|
+
a.sublabel ? /* @__PURE__ */ e("span", { className: "ttw:shrink-0 ttw:text-xs ttw:text-muted-foreground", children: a.sublabel }) : null
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
);
|
|
40
|
+
return c ? /* @__PURE__ */ r(T, { children: [
|
|
41
|
+
/* @__PURE__ */ e(D, { asChild: !0, children: i }),
|
|
42
|
+
/* @__PURE__ */ e(M, { side: "right", children: c })
|
|
43
|
+
] }) : i;
|
|
44
|
+
}
|
|
45
|
+
const Z = ({
|
|
46
|
+
value: a,
|
|
47
|
+
options: o,
|
|
48
|
+
onChange: s,
|
|
49
|
+
lockedSections: c,
|
|
50
|
+
disabled: d,
|
|
51
|
+
error: i,
|
|
52
|
+
labels: l,
|
|
53
|
+
testId: A
|
|
54
|
+
}) => {
|
|
55
|
+
const [R, w] = k(!1), [p, h] = k(""), m = $(), b = S(null), x = S(null), N = P(
|
|
56
|
+
() => new Set(a.map((t) => t.id)),
|
|
57
|
+
[a]
|
|
58
|
+
), g = P(() => {
|
|
59
|
+
const t = p.trim().toLowerCase();
|
|
60
|
+
return t ? o.filter(
|
|
61
|
+
(n) => n.label.toLowerCase().includes(t) || n.sublabel?.toLowerCase().includes(t)
|
|
62
|
+
) : o;
|
|
63
|
+
}, [o, p]), f = g.filter(
|
|
64
|
+
(t) => t.section === "roles"
|
|
65
|
+
), v = g.filter(
|
|
66
|
+
(t) => t.section === "teamMembers"
|
|
67
|
+
), y = (t) => {
|
|
68
|
+
const n = c?.[t.section];
|
|
69
|
+
return /* @__PURE__ */ e(
|
|
70
|
+
G,
|
|
71
|
+
{
|
|
72
|
+
option: t,
|
|
73
|
+
isSelected: N.has(t.id),
|
|
74
|
+
isDisabled: !!t.disabled || !!n,
|
|
75
|
+
reason: t.disabledReason ?? n,
|
|
76
|
+
onToggle: () => F(t)
|
|
77
|
+
},
|
|
78
|
+
t.id
|
|
79
|
+
);
|
|
80
|
+
}, F = (t) => {
|
|
81
|
+
N.has(t.id) ? s(a.filter((n) => n.id !== t.id)) : s([...a, E(t)]), h(""), b.current?.focus();
|
|
82
|
+
}, L = (t) => {
|
|
83
|
+
s(a.filter((n) => n.id !== t));
|
|
84
|
+
}, O = f.length > 0 && v.length > 0;
|
|
85
|
+
return /* @__PURE__ */ e(B, { children: /* @__PURE__ */ r(
|
|
86
|
+
K,
|
|
87
|
+
{
|
|
88
|
+
open: R,
|
|
89
|
+
onOpenChange: (t) => {
|
|
90
|
+
w(t), t || h("");
|
|
91
|
+
},
|
|
92
|
+
children: [
|
|
93
|
+
/* @__PURE__ */ e(W, { asChild: !0, children: /* @__PURE__ */ r(
|
|
94
|
+
"div",
|
|
95
|
+
{
|
|
96
|
+
ref: x,
|
|
97
|
+
onPointerDown: () => {
|
|
98
|
+
d || w(!0);
|
|
99
|
+
},
|
|
100
|
+
onClick: () => {
|
|
101
|
+
d || b.current?.focus();
|
|
102
|
+
},
|
|
103
|
+
className: `ttw:flex ttw:min-h-9 ttw:w-full ttw:cursor-text ttw:flex-wrap ttw:items-center ttw:gap-1.5 ttw:rounded-md ttw:border ttw:bg-transparent ttw:px-2.5 ttw:py-1.5 ttw:has-[:disabled]:cursor-not-allowed ttw:has-[:disabled]:opacity-60 ${i ? "ttw:border-destructive" : "ttw:border-input"}`,
|
|
104
|
+
children: [
|
|
105
|
+
a.map((t, n) => /* @__PURE__ */ r(H, { children: [
|
|
106
|
+
n > 0 ? /* @__PURE__ */ e("span", { className: "ttw:text-xs ttw:text-muted-foreground", children: l.ApproverConnector }) : null,
|
|
107
|
+
/* @__PURE__ */ r(X, { variant: "outline", className: "ttw:gap-1 ttw:pr-1", children: [
|
|
108
|
+
t.label,
|
|
109
|
+
/* @__PURE__ */ e(
|
|
110
|
+
"button",
|
|
111
|
+
{
|
|
112
|
+
type: "button",
|
|
113
|
+
"aria-label": l.RemoveApproverAriaLabel.replace(
|
|
114
|
+
"{name}",
|
|
115
|
+
t.label
|
|
116
|
+
),
|
|
117
|
+
onClick: (z) => {
|
|
118
|
+
z.stopPropagation(), L(t.id);
|
|
119
|
+
},
|
|
120
|
+
disabled: d,
|
|
121
|
+
className: "ttw:inline-flex ttw:size-3.5 ttw:shrink-0 ttw:items-center ttw:justify-center ttw:rounded-sm ttw:opacity-70 ttw:disabled:cursor-not-allowed hover:ttw:opacity-100",
|
|
122
|
+
children: /* @__PURE__ */ e(j, { className: "ttw:size-3" })
|
|
123
|
+
}
|
|
124
|
+
)
|
|
125
|
+
] })
|
|
126
|
+
] }, t.id)),
|
|
127
|
+
/* @__PURE__ */ e(
|
|
128
|
+
"input",
|
|
129
|
+
{
|
|
130
|
+
ref: b,
|
|
131
|
+
type: "text",
|
|
132
|
+
value: p,
|
|
133
|
+
onChange: (t) => {
|
|
134
|
+
h(t.target.value), w(!0);
|
|
135
|
+
},
|
|
136
|
+
onFocus: () => w(!0),
|
|
137
|
+
disabled: d,
|
|
138
|
+
placeholder: a.length === 0 ? l.ChoosePlaceholder : "",
|
|
139
|
+
"aria-label": l.ChoosePlaceholder,
|
|
140
|
+
"aria-invalid": !!i,
|
|
141
|
+
"aria-describedby": i ? m : void 0,
|
|
142
|
+
"data-testid": A,
|
|
143
|
+
className: "ttw:min-w-16 ttw:flex-1 ttw:bg-transparent ttw:text-sm ttw:outline-none ttw:placeholder:text-muted-foreground ttw:disabled:cursor-not-allowed"
|
|
144
|
+
}
|
|
145
|
+
),
|
|
146
|
+
i ? /* @__PURE__ */ r(C, { children: [
|
|
147
|
+
/* @__PURE__ */ r(T, { children: [
|
|
148
|
+
/* @__PURE__ */ e(D, { asChild: !0, children: /* @__PURE__ */ e(
|
|
149
|
+
"button",
|
|
150
|
+
{
|
|
151
|
+
type: "button",
|
|
152
|
+
"aria-labelledby": m,
|
|
153
|
+
onClick: (t) => t.stopPropagation(),
|
|
154
|
+
className: "ttw:ml-auto ttw:inline-flex ttw:shrink-0 ttw:items-center ttw:rounded",
|
|
155
|
+
children: /* @__PURE__ */ e(I, { className: "ttw:size-4 ttw:text-destructive" })
|
|
156
|
+
}
|
|
157
|
+
) }),
|
|
158
|
+
/* @__PURE__ */ e(M, { side: "top", children: i })
|
|
159
|
+
] }),
|
|
160
|
+
/* @__PURE__ */ e("span", { id: m, role: "alert", className: "ttw:sr-only", children: i })
|
|
161
|
+
] }) : null,
|
|
162
|
+
/* @__PURE__ */ e(
|
|
163
|
+
U,
|
|
164
|
+
{
|
|
165
|
+
"aria-hidden": "true",
|
|
166
|
+
className: `ttw:size-4 ttw:shrink-0 ttw:text-muted-foreground ${i ? "ttw:ml-1" : "ttw:ml-auto"}`
|
|
167
|
+
}
|
|
168
|
+
)
|
|
169
|
+
]
|
|
170
|
+
}
|
|
171
|
+
) }),
|
|
172
|
+
/* @__PURE__ */ e(
|
|
173
|
+
_,
|
|
174
|
+
{
|
|
175
|
+
align: "start",
|
|
176
|
+
sideOffset: 4,
|
|
177
|
+
onOpenAutoFocus: (t) => t.preventDefault(),
|
|
178
|
+
onInteractOutside: (t) => {
|
|
179
|
+
t.target instanceof Node && x.current?.contains(t.target) && t.preventDefault();
|
|
180
|
+
},
|
|
181
|
+
className: "ttw:w-[var(--radix-popover-trigger-width)] ttw:min-w-80 ttw:p-2",
|
|
182
|
+
children: /* @__PURE__ */ e("div", { className: "ttw:max-h-64 ttw:overflow-y-auto", children: g.length === 0 ? /* @__PURE__ */ e(
|
|
183
|
+
u,
|
|
184
|
+
{
|
|
185
|
+
variant: "body2",
|
|
186
|
+
color: "muted",
|
|
187
|
+
className: "ttw:px-2 ttw:py-1.5",
|
|
188
|
+
children: o.length === 0 ? l.NoOptionsMessage : l.NoResultsMessage
|
|
189
|
+
}
|
|
190
|
+
) : /* @__PURE__ */ r(C, { children: [
|
|
191
|
+
f.length > 0 ? /* @__PURE__ */ r("div", { role: "group", "aria-label": l.RolesSectionHeading, children: [
|
|
192
|
+
/* @__PURE__ */ e(
|
|
193
|
+
u,
|
|
194
|
+
{
|
|
195
|
+
variant: "body2",
|
|
196
|
+
color: "muted",
|
|
197
|
+
className: "ttw:block ttw:px-2 ttw:py-1",
|
|
198
|
+
children: l.RolesSectionHeading
|
|
199
|
+
}
|
|
200
|
+
),
|
|
201
|
+
f.map(y)
|
|
202
|
+
] }) : null,
|
|
203
|
+
O ? /* @__PURE__ */ r("div", { className: "ttw:my-1 ttw:flex ttw:items-center ttw:gap-2 ttw:px-2", children: [
|
|
204
|
+
/* @__PURE__ */ e("div", { className: "ttw:h-px ttw:flex-1 ttw:bg-border" }),
|
|
205
|
+
/* @__PURE__ */ e(u, { variant: "caption", color: "muted", children: l.OrDividerLabel }),
|
|
206
|
+
/* @__PURE__ */ e("div", { className: "ttw:h-px ttw:flex-1 ttw:bg-border" })
|
|
207
|
+
] }) : null,
|
|
208
|
+
v.length > 0 ? /* @__PURE__ */ r(
|
|
209
|
+
"div",
|
|
210
|
+
{
|
|
211
|
+
role: "group",
|
|
212
|
+
"aria-label": l.TeamMembersSectionHeading,
|
|
213
|
+
children: [
|
|
214
|
+
/* @__PURE__ */ e(
|
|
215
|
+
u,
|
|
216
|
+
{
|
|
217
|
+
variant: "body2",
|
|
218
|
+
color: "muted",
|
|
219
|
+
className: "ttw:block ttw:px-2 ttw:py-1",
|
|
220
|
+
children: l.TeamMembersSectionHeading
|
|
221
|
+
}
|
|
222
|
+
),
|
|
223
|
+
v.map(y)
|
|
224
|
+
]
|
|
225
|
+
}
|
|
226
|
+
) : null
|
|
227
|
+
] }) })
|
|
228
|
+
}
|
|
229
|
+
)
|
|
230
|
+
]
|
|
231
|
+
}
|
|
232
|
+
) });
|
|
233
|
+
};
|
|
234
|
+
export {
|
|
235
|
+
Z as ApproverPicker
|
|
236
|
+
};
|